From 82a2fb169e3493440d66783e5d2f552b810479b9 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 28 Mar 2022 19:55:01 -0400 Subject: 将acm32并入一个文件夹中 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0e96b7a634..899cfc6723 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -29,7 +29,8 @@ jobs: fail-fast: false matrix: legs: - - {RTT_BSP: "acm32f0x0-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "acm32/acm32f0x0-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "acm32/acm32f4xx-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "CME_M7", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "apm32/apm32f103xe-minibroard", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "apollo2", RTT_TOOL_CHAIN: "sourcery-arm"} -- cgit v1.3.1 From 8003788ad51ff044ba2673cf58a1e214891bd4ee Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 28 Mar 2022 20:06:03 -0400 Subject: 将龙芯bsp并入loongson文件夹中 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/action.yml | 6 +- bsp/loongson/ls1bdev/.config | 670 ++++ bsp/loongson/ls1bdev/.gitignore | 0 bsp/loongson/ls1bdev/Kconfig | 60 + bsp/loongson/ls1bdev/SConscript | 12 + bsp/loongson/ls1bdev/SConstruct | 34 + bsp/loongson/ls1bdev/applications/SConscript | 9 + bsp/loongson/ls1bdev/applications/main.c | 17 + bsp/loongson/ls1bdev/drivers/SConscript | 14 + bsp/loongson/ls1bdev/drivers/board.c | 85 + bsp/loongson/ls1bdev/drivers/board.h | 21 + bsp/loongson/ls1bdev/drivers/display_controller.c | 230 ++ bsp/loongson/ls1bdev/drivers/display_controller.h | 54 + bsp/loongson/ls1bdev/drivers/drv_uart.c | 222 ++ bsp/loongson/ls1bdev/drivers/drv_uart.h | 100 + bsp/loongson/ls1bdev/libraries/SConscript | 10 + bsp/loongson/ls1bdev/libraries/ls1b_clock.c | 114 + bsp/loongson/ls1bdev/libraries/ls1b_clock.h | 55 + bsp/loongson/ls1bdev/libraries/ls1b_gpio.c | 238 ++ bsp/loongson/ls1bdev/libraries/ls1b_gpio.h | 108 + bsp/loongson/ls1bdev/libraries/ls1b_pin.c | 165 + bsp/loongson/ls1bdev/libraries/ls1b_pin.h | 54 + bsp/loongson/ls1bdev/libraries/ls1b_public.c | 193 + bsp/loongson/ls1bdev/libraries/ls1b_public.h | 121 + bsp/loongson/ls1bdev/libraries/ls1b_regs.h | 148 + bsp/loongson/ls1bdev/libraries/ls1b_uart.c | 251 ++ bsp/loongson/ls1bdev/libraries/ls1b_uart.h | 181 + bsp/loongson/ls1bdev/ls1b_ram.lds | 141 + bsp/loongson/ls1bdev/readme.md | 4 + bsp/loongson/ls1bdev/rtconfig.h | 206 ++ bsp/loongson/ls1bdev/rtconfig.py | 55 + bsp/loongson/ls1cdev/.config | 769 ++++ bsp/loongson/ls1cdev/Kconfig | 126 + bsp/loongson/ls1cdev/README.md | 97 + bsp/loongson/ls1cdev/SConscript | 12 + bsp/loongson/ls1cdev/SConstruct | 47 + bsp/loongson/ls1cdev/applications/SConscript | 9 + bsp/loongson/ls1cdev/applications/main.c | 17 + bsp/loongson/ls1cdev/drivers/SConscript | 20 + bsp/loongson/ls1cdev/drivers/board.c | 66 + bsp/loongson/ls1cdev/drivers/board.h | 62 + bsp/loongson/ls1cdev/drivers/display_controller.c | 268 ++ bsp/loongson/ls1cdev/drivers/display_controller.h | 55 + bsp/loongson/ls1cdev/drivers/drv_can.c | 527 +++ bsp/loongson/ls1cdev/drivers/drv_can.h | 16 + bsp/loongson/ls1cdev/drivers/drv_gpio.c | 142 + bsp/loongson/ls1cdev/drivers/drv_gpio.h | 20 + bsp/loongson/ls1cdev/drivers/drv_i2c.c | 115 + bsp/loongson/ls1cdev/drivers/drv_i2c.h | 17 + bsp/loongson/ls1cdev/drivers/drv_pwm.c | 178 + bsp/loongson/ls1cdev/drivers/drv_pwm.h | 16 + bsp/loongson/ls1cdev/drivers/drv_rtc.c | 178 + bsp/loongson/ls1cdev/drivers/drv_rtc.h | 19 + bsp/loongson/ls1cdev/drivers/drv_spi.c | 307 ++ bsp/loongson/ls1cdev/drivers/drv_spi.h | 41 + bsp/loongson/ls1cdev/drivers/drv_touch.c | 270 ++ bsp/loongson/ls1cdev/drivers/drv_touch.h | 54 + bsp/loongson/ls1cdev/drivers/drv_touch_gt9xx.c | 234 ++ bsp/loongson/ls1cdev/drivers/drv_uart.c | 224 ++ bsp/loongson/ls1cdev/drivers/drv_uart.h | 100 + bsp/loongson/ls1cdev/drivers/drv_wdt.c | 199 ++ bsp/loongson/ls1cdev/drivers/drv_wdt.h | 23 + bsp/loongson/ls1cdev/drivers/hw_i2c.c | 162 + bsp/loongson/ls1cdev/drivers/hw_i2c.h | 18 + bsp/loongson/ls1cdev/drivers/net/SConscript | 17 + bsp/loongson/ls1cdev/drivers/net/mii.c | 136 + bsp/loongson/ls1cdev/drivers/net/mii.h | 231 ++ bsp/loongson/ls1cdev/drivers/net/synopGMAC.c | 964 +++++ bsp/loongson/ls1cdev/drivers/net/synopGMAC.h | 23 + bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.c | 3679 +++++++++++++++++++ bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.h | 1747 +++++++++ bsp/loongson/ls1cdev/drivers/net/synopGMAC_Host.h | 74 + bsp/loongson/ls1cdev/drivers/net/synopGMAC_debug.h | 23 + .../drivers/net/synopGMAC_network_interface.h | 78 + bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.c | 123 + bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.h | 251 ++ bsp/loongson/ls1cdev/drivers/net/synopGMAC_types.h | 25 + bsp/loongson/ls1cdev/drivers/selfboot.h | 168 + bsp/loongson/ls1cdev/drivers/selfboot_gcc.S | 549 +++ bsp/loongson/ls1cdev/drivers/touch.c | 598 ++++ bsp/loongson/ls1cdev/drivers/touch.h | 29 + bsp/loongson/ls1cdev/libraries/SConscript | 10 + bsp/loongson/ls1cdev/libraries/ls1c_can.c | 447 +++ bsp/loongson/ls1cdev/libraries/ls1c_can.h | 212 ++ bsp/loongson/ls1cdev/libraries/ls1c_clock.c | 159 + bsp/loongson/ls1cdev/libraries/ls1c_clock.h | 55 + bsp/loongson/ls1cdev/libraries/ls1c_delay.c | 89 + bsp/loongson/ls1cdev/libraries/ls1c_delay.h | 41 + bsp/loongson/ls1cdev/libraries/ls1c_gpio.c | 277 ++ bsp/loongson/ls1cdev/libraries/ls1c_gpio.h | 108 + bsp/loongson/ls1cdev/libraries/ls1c_i2c.c | 359 ++ bsp/loongson/ls1cdev/libraries/ls1c_i2c.h | 120 + bsp/loongson/ls1cdev/libraries/ls1c_pin.c | 164 + bsp/loongson/ls1cdev/libraries/ls1c_pin.h | 54 + bsp/loongson/ls1cdev/libraries/ls1c_public.c | 192 + bsp/loongson/ls1cdev/libraries/ls1c_public.h | 121 + bsp/loongson/ls1cdev/libraries/ls1c_pwm.c | 201 ++ bsp/loongson/ls1cdev/libraries/ls1c_pwm.h | 86 + bsp/loongson/ls1cdev/libraries/ls1c_regs.h | 157 + bsp/loongson/ls1cdev/libraries/ls1c_rtc.c | 102 + bsp/loongson/ls1cdev/libraries/ls1c_rtc.h | 41 + bsp/loongson/ls1cdev/libraries/ls1c_spi.c | 281 ++ bsp/loongson/ls1cdev/libraries/ls1c_spi.h | 132 + bsp/loongson/ls1cdev/libraries/ls1c_timer.c | 301 ++ bsp/loongson/ls1cdev/libraries/ls1c_timer.h | 89 + bsp/loongson/ls1cdev/libraries/ls1c_uart.c | 325 ++ bsp/loongson/ls1cdev/libraries/ls1c_uart.h | 189 + bsp/loongson/ls1cdev/libraries/ls1c_wdog.c | 91 + bsp/loongson/ls1cdev/libraries/ls1c_wdog.h | 32 + bsp/loongson/ls1cdev/ls1c_ram.lds | 142 + bsp/loongson/ls1cdev/rtconfig.h | 278 ++ bsp/loongson/ls1cdev/rtconfig.py | 58 + bsp/loongson/ls2kdev/.config | 768 ++++ bsp/loongson/ls2kdev/Kconfig | 41 + bsp/loongson/ls2kdev/README.md | 150 + bsp/loongson/ls2kdev/SConscript | 12 + bsp/loongson/ls2kdev/SConstruct | 39 + bsp/loongson/ls2kdev/applications/SConscript | 8 + bsp/loongson/ls2kdev/applications/main.c | 17 + bsp/loongson/ls2kdev/applications/mnt.c | 47 + bsp/loongson/ls2kdev/drivers/SConscript | 20 + bsp/loongson/ls2kdev/drivers/ata/SConscript | 14 + bsp/loongson/ls2kdev/drivers/ata/ahci.h | 281 ++ bsp/loongson/ls2kdev/drivers/ata/ata_debug.h | 20 + bsp/loongson/ls2kdev/drivers/ata/ata_interface.h | 101 + bsp/loongson/ls2kdev/drivers/ata/blk_device.c | 127 + bsp/loongson/ls2kdev/drivers/ata/blk_device.h | 48 + bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.c | 1234 +++++++ bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.h | 25 + bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata_priv.h | 323 ++ bsp/loongson/ls2kdev/drivers/ata/fis.h | 152 + bsp/loongson/ls2kdev/drivers/ata/libata.c | 150 + bsp/loongson/ls2kdev/drivers/ata/libata.h | 653 ++++ bsp/loongson/ls2kdev/drivers/board.c | 109 + bsp/loongson/ls2kdev/drivers/board.h | 24 + bsp/loongson/ls2kdev/drivers/clk.c | 100 + bsp/loongson/ls2kdev/drivers/clk.h | 23 + bsp/loongson/ls2kdev/drivers/drv_gpio.c | 267 ++ bsp/loongson/ls2kdev/drivers/drv_gpio.h | 40 + bsp/loongson/ls2kdev/drivers/drv_pwm.c | 141 + bsp/loongson/ls2kdev/drivers/drv_rtc.c | 186 + bsp/loongson/ls2kdev/drivers/drv_spi.c | 239 ++ bsp/loongson/ls2kdev/drivers/drv_spi.h | 43 + bsp/loongson/ls2kdev/drivers/drv_uart.c | 187 + bsp/loongson/ls2kdev/drivers/drv_uart.h | 113 + bsp/loongson/ls2kdev/drivers/interrupt.c | 237 ++ bsp/loongson/ls2kdev/drivers/interrupt.h | 85 + bsp/loongson/ls2kdev/drivers/ls2k1000.h | 54 + bsp/loongson/ls2kdev/drivers/net/SConscript | 16 + bsp/loongson/ls2kdev/drivers/net/mii.c | 140 + bsp/loongson/ls2kdev/drivers/net/mii.h | 229 ++ bsp/loongson/ls2kdev/drivers/net/synopGMAC.c | 988 ++++++ bsp/loongson/ls2kdev/drivers/net/synopGMAC.h | 23 + bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.c | 3750 ++++++++++++++++++++ bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.h | 1717 +++++++++ bsp/loongson/ls2kdev/drivers/net/synopGMAC_Host.h | 60 + bsp/loongson/ls2kdev/drivers/net/synopGMAC_debug.h | 22 + .../drivers/net/synopGMAC_network_interface.h | 65 + bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.c | 133 + bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.h | 242 ++ bsp/loongson/ls2kdev/drivers/net/synopGMAC_types.h | 23 + bsp/loongson/ls2kdev/drivers/pci/SConscript | 10 + bsp/loongson/ls2kdev/drivers/pci/pci.c | 20 + bsp/loongson/ls2kdev/drivers/pci/pci.h | 42 + bsp/loongson/ls2kdev/figures/loongsonpi.png | Bin 0 -> 479916 bytes bsp/loongson/ls2kdev/ls2k_ram.lds | 158 + bsp/loongson/ls2kdev/rtconfig.h | 282 ++ bsp/loongson/ls2kdev/rtconfig.py | 61 + bsp/ls1bdev/.config | 670 ---- bsp/ls1bdev/.gitignore | 0 bsp/ls1bdev/Kconfig | 60 - bsp/ls1bdev/SConscript | 12 - bsp/ls1bdev/SConstruct | 34 - bsp/ls1bdev/applications/SConscript | 9 - bsp/ls1bdev/applications/main.c | 17 - bsp/ls1bdev/drivers/SConscript | 14 - bsp/ls1bdev/drivers/board.c | 85 - bsp/ls1bdev/drivers/board.h | 21 - bsp/ls1bdev/drivers/display_controller.c | 230 -- bsp/ls1bdev/drivers/display_controller.h | 54 - bsp/ls1bdev/drivers/drv_uart.c | 222 -- bsp/ls1bdev/drivers/drv_uart.h | 100 - bsp/ls1bdev/libraries/SConscript | 10 - bsp/ls1bdev/libraries/ls1b_clock.c | 114 - bsp/ls1bdev/libraries/ls1b_clock.h | 55 - bsp/ls1bdev/libraries/ls1b_gpio.c | 238 -- bsp/ls1bdev/libraries/ls1b_gpio.h | 108 - bsp/ls1bdev/libraries/ls1b_pin.c | 165 - bsp/ls1bdev/libraries/ls1b_pin.h | 54 - bsp/ls1bdev/libraries/ls1b_public.c | 193 - bsp/ls1bdev/libraries/ls1b_public.h | 121 - bsp/ls1bdev/libraries/ls1b_regs.h | 148 - bsp/ls1bdev/libraries/ls1b_uart.c | 251 -- bsp/ls1bdev/libraries/ls1b_uart.h | 181 - bsp/ls1bdev/ls1b_ram.lds | 141 - bsp/ls1bdev/readme.md | 4 - bsp/ls1bdev/rtconfig.h | 206 -- bsp/ls1bdev/rtconfig.py | 55 - bsp/ls1cdev/.config | 769 ---- bsp/ls1cdev/Kconfig | 126 - bsp/ls1cdev/README.md | 97 - bsp/ls1cdev/SConscript | 12 - bsp/ls1cdev/SConstruct | 47 - bsp/ls1cdev/applications/SConscript | 9 - bsp/ls1cdev/applications/main.c | 17 - bsp/ls1cdev/drivers/SConscript | 20 - bsp/ls1cdev/drivers/board.c | 66 - bsp/ls1cdev/drivers/board.h | 62 - bsp/ls1cdev/drivers/display_controller.c | 268 -- bsp/ls1cdev/drivers/display_controller.h | 55 - bsp/ls1cdev/drivers/drv_can.c | 527 --- bsp/ls1cdev/drivers/drv_can.h | 16 - bsp/ls1cdev/drivers/drv_gpio.c | 142 - bsp/ls1cdev/drivers/drv_gpio.h | 20 - bsp/ls1cdev/drivers/drv_i2c.c | 115 - bsp/ls1cdev/drivers/drv_i2c.h | 17 - bsp/ls1cdev/drivers/drv_pwm.c | 178 - bsp/ls1cdev/drivers/drv_pwm.h | 16 - bsp/ls1cdev/drivers/drv_rtc.c | 178 - bsp/ls1cdev/drivers/drv_rtc.h | 19 - bsp/ls1cdev/drivers/drv_spi.c | 307 -- bsp/ls1cdev/drivers/drv_spi.h | 41 - bsp/ls1cdev/drivers/drv_touch.c | 270 -- bsp/ls1cdev/drivers/drv_touch.h | 54 - bsp/ls1cdev/drivers/drv_touch_gt9xx.c | 234 -- bsp/ls1cdev/drivers/drv_uart.c | 224 -- bsp/ls1cdev/drivers/drv_uart.h | 100 - bsp/ls1cdev/drivers/drv_wdt.c | 199 -- bsp/ls1cdev/drivers/drv_wdt.h | 23 - bsp/ls1cdev/drivers/hw_i2c.c | 162 - bsp/ls1cdev/drivers/hw_i2c.h | 18 - bsp/ls1cdev/drivers/net/SConscript | 17 - bsp/ls1cdev/drivers/net/mii.c | 136 - bsp/ls1cdev/drivers/net/mii.h | 231 -- bsp/ls1cdev/drivers/net/synopGMAC.c | 964 ----- bsp/ls1cdev/drivers/net/synopGMAC.h | 23 - bsp/ls1cdev/drivers/net/synopGMAC_Dev.c | 3679 ------------------- bsp/ls1cdev/drivers/net/synopGMAC_Dev.h | 1747 --------- bsp/ls1cdev/drivers/net/synopGMAC_Host.h | 74 - bsp/ls1cdev/drivers/net/synopGMAC_debug.h | 23 - .../drivers/net/synopGMAC_network_interface.h | 78 - bsp/ls1cdev/drivers/net/synopGMAC_plat.c | 123 - bsp/ls1cdev/drivers/net/synopGMAC_plat.h | 251 -- bsp/ls1cdev/drivers/net/synopGMAC_types.h | 25 - bsp/ls1cdev/drivers/selfboot.h | 168 - bsp/ls1cdev/drivers/selfboot_gcc.S | 549 --- bsp/ls1cdev/drivers/touch.c | 598 ---- bsp/ls1cdev/drivers/touch.h | 29 - bsp/ls1cdev/libraries/SConscript | 10 - bsp/ls1cdev/libraries/ls1c_can.c | 447 --- bsp/ls1cdev/libraries/ls1c_can.h | 212 -- bsp/ls1cdev/libraries/ls1c_clock.c | 159 - bsp/ls1cdev/libraries/ls1c_clock.h | 55 - bsp/ls1cdev/libraries/ls1c_delay.c | 89 - bsp/ls1cdev/libraries/ls1c_delay.h | 41 - bsp/ls1cdev/libraries/ls1c_gpio.c | 277 -- bsp/ls1cdev/libraries/ls1c_gpio.h | 108 - bsp/ls1cdev/libraries/ls1c_i2c.c | 359 -- bsp/ls1cdev/libraries/ls1c_i2c.h | 120 - bsp/ls1cdev/libraries/ls1c_pin.c | 164 - bsp/ls1cdev/libraries/ls1c_pin.h | 54 - bsp/ls1cdev/libraries/ls1c_public.c | 192 - bsp/ls1cdev/libraries/ls1c_public.h | 121 - bsp/ls1cdev/libraries/ls1c_pwm.c | 201 -- bsp/ls1cdev/libraries/ls1c_pwm.h | 86 - bsp/ls1cdev/libraries/ls1c_regs.h | 157 - bsp/ls1cdev/libraries/ls1c_rtc.c | 102 - bsp/ls1cdev/libraries/ls1c_rtc.h | 41 - bsp/ls1cdev/libraries/ls1c_spi.c | 281 -- bsp/ls1cdev/libraries/ls1c_spi.h | 132 - bsp/ls1cdev/libraries/ls1c_timer.c | 301 -- bsp/ls1cdev/libraries/ls1c_timer.h | 89 - bsp/ls1cdev/libraries/ls1c_uart.c | 325 -- bsp/ls1cdev/libraries/ls1c_uart.h | 189 - bsp/ls1cdev/libraries/ls1c_wdog.c | 91 - bsp/ls1cdev/libraries/ls1c_wdog.h | 32 - bsp/ls1cdev/ls1c_ram.lds | 142 - bsp/ls1cdev/rtconfig.h | 278 -- bsp/ls1cdev/rtconfig.py | 58 - bsp/ls2kdev/.config | 768 ---- bsp/ls2kdev/Kconfig | 41 - bsp/ls2kdev/README.md | 150 - bsp/ls2kdev/SConscript | 12 - bsp/ls2kdev/SConstruct | 39 - bsp/ls2kdev/applications/SConscript | 8 - bsp/ls2kdev/applications/main.c | 17 - bsp/ls2kdev/applications/mnt.c | 47 - bsp/ls2kdev/drivers/SConscript | 20 - bsp/ls2kdev/drivers/ata/SConscript | 14 - bsp/ls2kdev/drivers/ata/ahci.h | 281 -- bsp/ls2kdev/drivers/ata/ata_debug.h | 20 - bsp/ls2kdev/drivers/ata/ata_interface.h | 101 - bsp/ls2kdev/drivers/ata/blk_device.c | 127 - bsp/ls2kdev/drivers/ata/blk_device.h | 48 - bsp/ls2kdev/drivers/ata/dwc_ahsata.c | 1234 ------- bsp/ls2kdev/drivers/ata/dwc_ahsata.h | 25 - bsp/ls2kdev/drivers/ata/dwc_ahsata_priv.h | 323 -- bsp/ls2kdev/drivers/ata/fis.h | 152 - bsp/ls2kdev/drivers/ata/libata.c | 150 - bsp/ls2kdev/drivers/ata/libata.h | 653 ---- bsp/ls2kdev/drivers/board.c | 109 - bsp/ls2kdev/drivers/board.h | 24 - bsp/ls2kdev/drivers/clk.c | 100 - bsp/ls2kdev/drivers/clk.h | 23 - bsp/ls2kdev/drivers/drv_gpio.c | 267 -- bsp/ls2kdev/drivers/drv_gpio.h | 40 - bsp/ls2kdev/drivers/drv_pwm.c | 141 - bsp/ls2kdev/drivers/drv_rtc.c | 186 - bsp/ls2kdev/drivers/drv_spi.c | 239 -- bsp/ls2kdev/drivers/drv_spi.h | 43 - bsp/ls2kdev/drivers/drv_uart.c | 187 - bsp/ls2kdev/drivers/drv_uart.h | 113 - bsp/ls2kdev/drivers/interrupt.c | 237 -- bsp/ls2kdev/drivers/interrupt.h | 85 - bsp/ls2kdev/drivers/ls2k1000.h | 54 - bsp/ls2kdev/drivers/net/SConscript | 16 - bsp/ls2kdev/drivers/net/mii.c | 140 - bsp/ls2kdev/drivers/net/mii.h | 229 -- bsp/ls2kdev/drivers/net/synopGMAC.c | 988 ------ bsp/ls2kdev/drivers/net/synopGMAC.h | 23 - bsp/ls2kdev/drivers/net/synopGMAC_Dev.c | 3750 -------------------- bsp/ls2kdev/drivers/net/synopGMAC_Dev.h | 1717 --------- bsp/ls2kdev/drivers/net/synopGMAC_Host.h | 60 - bsp/ls2kdev/drivers/net/synopGMAC_debug.h | 22 - .../drivers/net/synopGMAC_network_interface.h | 65 - bsp/ls2kdev/drivers/net/synopGMAC_plat.c | 133 - bsp/ls2kdev/drivers/net/synopGMAC_plat.h | 242 -- bsp/ls2kdev/drivers/net/synopGMAC_types.h | 23 - bsp/ls2kdev/drivers/pci/SConscript | 10 - bsp/ls2kdev/drivers/pci/pci.c | 20 - bsp/ls2kdev/drivers/pci/pci.h | 42 - bsp/ls2kdev/figures/loongsonpi.png | Bin 479916 -> 0 bytes bsp/ls2kdev/ls2k_ram.lds | 158 - bsp/ls2kdev/rtconfig.h | 282 -- bsp/ls2kdev/rtconfig.py | 61 - 335 files changed, 35670 insertions(+), 35670 deletions(-) create mode 100644 bsp/loongson/ls1bdev/.config create mode 100644 bsp/loongson/ls1bdev/.gitignore create mode 100644 bsp/loongson/ls1bdev/Kconfig create mode 100644 bsp/loongson/ls1bdev/SConscript create mode 100644 bsp/loongson/ls1bdev/SConstruct create mode 100644 bsp/loongson/ls1bdev/applications/SConscript create mode 100644 bsp/loongson/ls1bdev/applications/main.c create mode 100644 bsp/loongson/ls1bdev/drivers/SConscript create mode 100644 bsp/loongson/ls1bdev/drivers/board.c create mode 100644 bsp/loongson/ls1bdev/drivers/board.h create mode 100644 bsp/loongson/ls1bdev/drivers/display_controller.c create mode 100644 bsp/loongson/ls1bdev/drivers/display_controller.h create mode 100644 bsp/loongson/ls1bdev/drivers/drv_uart.c create mode 100644 bsp/loongson/ls1bdev/drivers/drv_uart.h create mode 100644 bsp/loongson/ls1bdev/libraries/SConscript create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_clock.c create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_clock.h create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_gpio.c create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_gpio.h create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_pin.c create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_pin.h create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_public.c create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_public.h create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_regs.h create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_uart.c create mode 100644 bsp/loongson/ls1bdev/libraries/ls1b_uart.h create mode 100644 bsp/loongson/ls1bdev/ls1b_ram.lds create mode 100644 bsp/loongson/ls1bdev/readme.md create mode 100644 bsp/loongson/ls1bdev/rtconfig.h create mode 100644 bsp/loongson/ls1bdev/rtconfig.py create mode 100644 bsp/loongson/ls1cdev/.config create mode 100644 bsp/loongson/ls1cdev/Kconfig create mode 100644 bsp/loongson/ls1cdev/README.md create mode 100644 bsp/loongson/ls1cdev/SConscript create mode 100644 bsp/loongson/ls1cdev/SConstruct create mode 100644 bsp/loongson/ls1cdev/applications/SConscript create mode 100644 bsp/loongson/ls1cdev/applications/main.c create mode 100644 bsp/loongson/ls1cdev/drivers/SConscript create mode 100644 bsp/loongson/ls1cdev/drivers/board.c create mode 100644 bsp/loongson/ls1cdev/drivers/board.h create mode 100644 bsp/loongson/ls1cdev/drivers/display_controller.c create mode 100644 bsp/loongson/ls1cdev/drivers/display_controller.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_can.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_can.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_gpio.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_gpio.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_i2c.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_i2c.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_pwm.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_pwm.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_rtc.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_rtc.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_spi.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_spi.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_touch.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_touch.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_touch_gt9xx.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_uart.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_uart.h create mode 100644 bsp/loongson/ls1cdev/drivers/drv_wdt.c create mode 100644 bsp/loongson/ls1cdev/drivers/drv_wdt.h create mode 100644 bsp/loongson/ls1cdev/drivers/hw_i2c.c create mode 100644 bsp/loongson/ls1cdev/drivers/hw_i2c.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/SConscript create mode 100644 bsp/loongson/ls1cdev/drivers/net/mii.c create mode 100644 bsp/loongson/ls1cdev/drivers/net/mii.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC.c create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.c create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_Host.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_debug.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_network_interface.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.c create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.h create mode 100644 bsp/loongson/ls1cdev/drivers/net/synopGMAC_types.h create mode 100644 bsp/loongson/ls1cdev/drivers/selfboot.h create mode 100644 bsp/loongson/ls1cdev/drivers/selfboot_gcc.S create mode 100644 bsp/loongson/ls1cdev/drivers/touch.c create mode 100644 bsp/loongson/ls1cdev/drivers/touch.h create mode 100644 bsp/loongson/ls1cdev/libraries/SConscript create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_can.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_can.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_clock.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_clock.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_delay.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_delay.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_gpio.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_gpio.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_i2c.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_i2c.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_pin.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_pin.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_public.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_public.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_pwm.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_pwm.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_regs.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_rtc.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_rtc.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_spi.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_spi.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_timer.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_timer.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_uart.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_uart.h create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_wdog.c create mode 100644 bsp/loongson/ls1cdev/libraries/ls1c_wdog.h create mode 100644 bsp/loongson/ls1cdev/ls1c_ram.lds create mode 100644 bsp/loongson/ls1cdev/rtconfig.h create mode 100644 bsp/loongson/ls1cdev/rtconfig.py create mode 100644 bsp/loongson/ls2kdev/.config create mode 100644 bsp/loongson/ls2kdev/Kconfig create mode 100644 bsp/loongson/ls2kdev/README.md create mode 100644 bsp/loongson/ls2kdev/SConscript create mode 100644 bsp/loongson/ls2kdev/SConstruct create mode 100644 bsp/loongson/ls2kdev/applications/SConscript create mode 100644 bsp/loongson/ls2kdev/applications/main.c create mode 100644 bsp/loongson/ls2kdev/applications/mnt.c create mode 100644 bsp/loongson/ls2kdev/drivers/SConscript create mode 100644 bsp/loongson/ls2kdev/drivers/ata/SConscript create mode 100644 bsp/loongson/ls2kdev/drivers/ata/ahci.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/ata_debug.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/ata_interface.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/blk_device.c create mode 100644 bsp/loongson/ls2kdev/drivers/ata/blk_device.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.c create mode 100644 bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata_priv.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/fis.h create mode 100644 bsp/loongson/ls2kdev/drivers/ata/libata.c create mode 100644 bsp/loongson/ls2kdev/drivers/ata/libata.h create mode 100644 bsp/loongson/ls2kdev/drivers/board.c create mode 100644 bsp/loongson/ls2kdev/drivers/board.h create mode 100644 bsp/loongson/ls2kdev/drivers/clk.c create mode 100644 bsp/loongson/ls2kdev/drivers/clk.h create mode 100644 bsp/loongson/ls2kdev/drivers/drv_gpio.c create mode 100644 bsp/loongson/ls2kdev/drivers/drv_gpio.h create mode 100644 bsp/loongson/ls2kdev/drivers/drv_pwm.c create mode 100644 bsp/loongson/ls2kdev/drivers/drv_rtc.c create mode 100644 bsp/loongson/ls2kdev/drivers/drv_spi.c create mode 100644 bsp/loongson/ls2kdev/drivers/drv_spi.h create mode 100644 bsp/loongson/ls2kdev/drivers/drv_uart.c create mode 100644 bsp/loongson/ls2kdev/drivers/drv_uart.h create mode 100644 bsp/loongson/ls2kdev/drivers/interrupt.c create mode 100644 bsp/loongson/ls2kdev/drivers/interrupt.h create mode 100644 bsp/loongson/ls2kdev/drivers/ls2k1000.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/SConscript create mode 100644 bsp/loongson/ls2kdev/drivers/net/mii.c create mode 100644 bsp/loongson/ls2kdev/drivers/net/mii.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC.c create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.c create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_Host.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_debug.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_network_interface.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.c create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.h create mode 100644 bsp/loongson/ls2kdev/drivers/net/synopGMAC_types.h create mode 100644 bsp/loongson/ls2kdev/drivers/pci/SConscript create mode 100644 bsp/loongson/ls2kdev/drivers/pci/pci.c create mode 100644 bsp/loongson/ls2kdev/drivers/pci/pci.h create mode 100644 bsp/loongson/ls2kdev/figures/loongsonpi.png create mode 100644 bsp/loongson/ls2kdev/ls2k_ram.lds create mode 100644 bsp/loongson/ls2kdev/rtconfig.h create mode 100644 bsp/loongson/ls2kdev/rtconfig.py delete mode 100644 bsp/ls1bdev/.config delete mode 100644 bsp/ls1bdev/.gitignore delete mode 100644 bsp/ls1bdev/Kconfig delete mode 100644 bsp/ls1bdev/SConscript delete mode 100644 bsp/ls1bdev/SConstruct delete mode 100644 bsp/ls1bdev/applications/SConscript delete mode 100644 bsp/ls1bdev/applications/main.c delete mode 100644 bsp/ls1bdev/drivers/SConscript delete mode 100644 bsp/ls1bdev/drivers/board.c delete mode 100644 bsp/ls1bdev/drivers/board.h delete mode 100644 bsp/ls1bdev/drivers/display_controller.c delete mode 100644 bsp/ls1bdev/drivers/display_controller.h delete mode 100644 bsp/ls1bdev/drivers/drv_uart.c delete mode 100644 bsp/ls1bdev/drivers/drv_uart.h delete mode 100644 bsp/ls1bdev/libraries/SConscript delete mode 100644 bsp/ls1bdev/libraries/ls1b_clock.c delete mode 100644 bsp/ls1bdev/libraries/ls1b_clock.h delete mode 100644 bsp/ls1bdev/libraries/ls1b_gpio.c delete mode 100644 bsp/ls1bdev/libraries/ls1b_gpio.h delete mode 100644 bsp/ls1bdev/libraries/ls1b_pin.c delete mode 100644 bsp/ls1bdev/libraries/ls1b_pin.h delete mode 100644 bsp/ls1bdev/libraries/ls1b_public.c delete mode 100644 bsp/ls1bdev/libraries/ls1b_public.h delete mode 100644 bsp/ls1bdev/libraries/ls1b_regs.h delete mode 100644 bsp/ls1bdev/libraries/ls1b_uart.c delete mode 100644 bsp/ls1bdev/libraries/ls1b_uart.h delete mode 100644 bsp/ls1bdev/ls1b_ram.lds delete mode 100644 bsp/ls1bdev/readme.md delete mode 100644 bsp/ls1bdev/rtconfig.h delete mode 100644 bsp/ls1bdev/rtconfig.py delete mode 100644 bsp/ls1cdev/.config delete mode 100644 bsp/ls1cdev/Kconfig delete mode 100644 bsp/ls1cdev/README.md delete mode 100644 bsp/ls1cdev/SConscript delete mode 100644 bsp/ls1cdev/SConstruct delete mode 100644 bsp/ls1cdev/applications/SConscript delete mode 100644 bsp/ls1cdev/applications/main.c delete mode 100644 bsp/ls1cdev/drivers/SConscript delete mode 100644 bsp/ls1cdev/drivers/board.c delete mode 100644 bsp/ls1cdev/drivers/board.h delete mode 100644 bsp/ls1cdev/drivers/display_controller.c delete mode 100644 bsp/ls1cdev/drivers/display_controller.h delete mode 100644 bsp/ls1cdev/drivers/drv_can.c delete mode 100644 bsp/ls1cdev/drivers/drv_can.h delete mode 100644 bsp/ls1cdev/drivers/drv_gpio.c delete mode 100644 bsp/ls1cdev/drivers/drv_gpio.h delete mode 100644 bsp/ls1cdev/drivers/drv_i2c.c delete mode 100644 bsp/ls1cdev/drivers/drv_i2c.h delete mode 100644 bsp/ls1cdev/drivers/drv_pwm.c delete mode 100644 bsp/ls1cdev/drivers/drv_pwm.h delete mode 100644 bsp/ls1cdev/drivers/drv_rtc.c delete mode 100644 bsp/ls1cdev/drivers/drv_rtc.h delete mode 100644 bsp/ls1cdev/drivers/drv_spi.c delete mode 100644 bsp/ls1cdev/drivers/drv_spi.h delete mode 100644 bsp/ls1cdev/drivers/drv_touch.c delete mode 100644 bsp/ls1cdev/drivers/drv_touch.h delete mode 100644 bsp/ls1cdev/drivers/drv_touch_gt9xx.c delete mode 100644 bsp/ls1cdev/drivers/drv_uart.c delete mode 100644 bsp/ls1cdev/drivers/drv_uart.h delete mode 100644 bsp/ls1cdev/drivers/drv_wdt.c delete mode 100644 bsp/ls1cdev/drivers/drv_wdt.h delete mode 100644 bsp/ls1cdev/drivers/hw_i2c.c delete mode 100644 bsp/ls1cdev/drivers/hw_i2c.h delete mode 100644 bsp/ls1cdev/drivers/net/SConscript delete mode 100644 bsp/ls1cdev/drivers/net/mii.c delete mode 100644 bsp/ls1cdev/drivers/net/mii.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC.c delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_Dev.c delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_Dev.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_Host.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_debug.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_network_interface.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_plat.c delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_plat.h delete mode 100644 bsp/ls1cdev/drivers/net/synopGMAC_types.h delete mode 100644 bsp/ls1cdev/drivers/selfboot.h delete mode 100644 bsp/ls1cdev/drivers/selfboot_gcc.S delete mode 100644 bsp/ls1cdev/drivers/touch.c delete mode 100644 bsp/ls1cdev/drivers/touch.h delete mode 100644 bsp/ls1cdev/libraries/SConscript delete mode 100644 bsp/ls1cdev/libraries/ls1c_can.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_can.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_clock.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_clock.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_delay.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_delay.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_gpio.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_gpio.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_i2c.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_i2c.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_pin.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_pin.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_public.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_public.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_pwm.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_pwm.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_regs.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_rtc.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_rtc.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_spi.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_spi.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_timer.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_timer.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_uart.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_uart.h delete mode 100644 bsp/ls1cdev/libraries/ls1c_wdog.c delete mode 100644 bsp/ls1cdev/libraries/ls1c_wdog.h delete mode 100644 bsp/ls1cdev/ls1c_ram.lds delete mode 100644 bsp/ls1cdev/rtconfig.h delete mode 100644 bsp/ls1cdev/rtconfig.py delete mode 100644 bsp/ls2kdev/.config delete mode 100644 bsp/ls2kdev/Kconfig delete mode 100644 bsp/ls2kdev/README.md delete mode 100644 bsp/ls2kdev/SConscript delete mode 100644 bsp/ls2kdev/SConstruct delete mode 100644 bsp/ls2kdev/applications/SConscript delete mode 100644 bsp/ls2kdev/applications/main.c delete mode 100644 bsp/ls2kdev/applications/mnt.c delete mode 100644 bsp/ls2kdev/drivers/SConscript delete mode 100644 bsp/ls2kdev/drivers/ata/SConscript delete mode 100644 bsp/ls2kdev/drivers/ata/ahci.h delete mode 100644 bsp/ls2kdev/drivers/ata/ata_debug.h delete mode 100644 bsp/ls2kdev/drivers/ata/ata_interface.h delete mode 100644 bsp/ls2kdev/drivers/ata/blk_device.c delete mode 100644 bsp/ls2kdev/drivers/ata/blk_device.h delete mode 100644 bsp/ls2kdev/drivers/ata/dwc_ahsata.c delete mode 100644 bsp/ls2kdev/drivers/ata/dwc_ahsata.h delete mode 100644 bsp/ls2kdev/drivers/ata/dwc_ahsata_priv.h delete mode 100644 bsp/ls2kdev/drivers/ata/fis.h delete mode 100644 bsp/ls2kdev/drivers/ata/libata.c delete mode 100644 bsp/ls2kdev/drivers/ata/libata.h delete mode 100644 bsp/ls2kdev/drivers/board.c delete mode 100644 bsp/ls2kdev/drivers/board.h delete mode 100644 bsp/ls2kdev/drivers/clk.c delete mode 100644 bsp/ls2kdev/drivers/clk.h delete mode 100644 bsp/ls2kdev/drivers/drv_gpio.c delete mode 100644 bsp/ls2kdev/drivers/drv_gpio.h delete mode 100644 bsp/ls2kdev/drivers/drv_pwm.c delete mode 100644 bsp/ls2kdev/drivers/drv_rtc.c delete mode 100644 bsp/ls2kdev/drivers/drv_spi.c delete mode 100644 bsp/ls2kdev/drivers/drv_spi.h delete mode 100644 bsp/ls2kdev/drivers/drv_uart.c delete mode 100644 bsp/ls2kdev/drivers/drv_uart.h delete mode 100644 bsp/ls2kdev/drivers/interrupt.c delete mode 100644 bsp/ls2kdev/drivers/interrupt.h delete mode 100644 bsp/ls2kdev/drivers/ls2k1000.h delete mode 100644 bsp/ls2kdev/drivers/net/SConscript delete mode 100644 bsp/ls2kdev/drivers/net/mii.c delete mode 100644 bsp/ls2kdev/drivers/net/mii.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC.c delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_Dev.c delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_Dev.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_Host.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_debug.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_network_interface.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_plat.c delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_plat.h delete mode 100644 bsp/ls2kdev/drivers/net/synopGMAC_types.h delete mode 100644 bsp/ls2kdev/drivers/pci/SConscript delete mode 100644 bsp/ls2kdev/drivers/pci/pci.c delete mode 100644 bsp/ls2kdev/drivers/pci/pci.h delete mode 100644 bsp/ls2kdev/figures/loongsonpi.png delete mode 100644 bsp/ls2kdev/ls2k_ram.lds delete mode 100644 bsp/ls2kdev/rtconfig.h delete mode 100644 bsp/ls2kdev/rtconfig.py (limited to '.github/workflows') diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 899cfc6723..1eee8e8f2a 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -71,9 +71,9 @@ jobs: - {RTT_BSP: "lpc2478", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "lpc5410x", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "lpc54114-lite", RTT_TOOL_CHAIN: "sourcery-arm"} - - {RTT_BSP: "ls1bdev", RTT_TOOL_CHAIN: "sourcery-mips"} - - {RTT_BSP: "ls1cdev", RTT_TOOL_CHAIN: "sourcery-mips"} - - {RTT_BSP: "ls2kdev", RTT_TOOL_CHAIN: "sourcery-mips"} + - {RTT_BSP: "loongson/ls1bdev", RTT_TOOL_CHAIN: "sourcery-mips"} + - {RTT_BSP: "loongson/ls1cdev", RTT_TOOL_CHAIN: "sourcery-mips"} + - {RTT_BSP: "loongson/ls2kdev", RTT_TOOL_CHAIN: "sourcery-mips"} - {RTT_BSP: "mb9bf500r", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "mb9bf506r", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "mb9bf618s", RTT_TOOL_CHAIN: "sourcery-arm"} diff --git a/bsp/loongson/ls1bdev/.config b/bsp/loongson/ls1bdev/.config new file mode 100644 index 0000000000..22ce711409 --- /dev/null +++ b/bsp/loongson/ls1bdev/.config @@ -0,0 +1,670 @@ +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# + +# +# RT-Thread Kernel +# +CONFIG_RT_NAME_MAX=8 +# CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMP is not set +CONFIG_RT_ALIGN_SIZE=4 +# CONFIG_RT_THREAD_PRIORITY_8 is not set +CONFIG_RT_THREAD_PRIORITY_32=y +# CONFIG_RT_THREAD_PRIORITY_256 is not set +CONFIG_RT_THREAD_PRIORITY_MAX=32 +CONFIG_RT_TICK_PER_SECOND=1000 +CONFIG_RT_USING_OVERFLOW_CHECK=y +CONFIG_RT_USING_HOOK=y +CONFIG_RT_HOOK_USING_FUNC_PTR=y +CONFIG_RT_USING_IDLE_HOOK=y +CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 +CONFIG_IDLE_THREAD_STACK_SIZE=256 +CONFIG_RT_USING_TIMER_SOFT=y +CONFIG_RT_TIMER_THREAD_PRIO=4 +CONFIG_RT_TIMER_THREAD_STACK_SIZE=512 + +# +# kservice optimization +# +# CONFIG_RT_KSERVICE_USING_STDLIB is not set +# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set +# CONFIG_RT_USING_TINY_FFS is not set +# CONFIG_RT_PRINTF_LONGLONG is not set +CONFIG_RT_DEBUG=y +# CONFIG_RT_DEBUG_COLOR is not set +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set + +# +# Inter-Thread communication +# +CONFIG_RT_USING_SEMAPHORE=y +CONFIG_RT_USING_MUTEX=y +CONFIG_RT_USING_EVENT=y +CONFIG_RT_USING_MAILBOX=y +CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_SIGNALS is not set + +# +# Memory Management +# +CONFIG_RT_USING_MEMPOOL=y +CONFIG_RT_USING_SMALL_MEM=y +# CONFIG_RT_USING_SLAB is not set +# CONFIG_RT_USING_MEMHEAP is not set +CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y +# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_SLAB_AS_HEAP is not set +# CONFIG_RT_USING_USERHEAP is not set +# CONFIG_RT_USING_NOHEAP is not set +# CONFIG_RT_USING_MEMTRACE is not set +# CONFIG_RT_USING_HEAP_ISR is not set +CONFIG_RT_USING_HEAP=y + +# +# Kernel Device Object +# +CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set +# CONFIG_RT_USING_INTERRUPT_INFO is not set +CONFIG_RT_USING_CONSOLE=y +CONFIG_RT_CONSOLEBUF_SIZE=128 +CONFIG_RT_CONSOLE_DEVICE_NAME="uart5" +CONFIG_RT_VER_NUM=0x40100 +# CONFIG_RT_USING_CPU_FFS is not set +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set + +# +# RT-Thread Components +# +CONFIG_RT_USING_COMPONENTS_INIT=y +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 +# CONFIG_RT_USING_LEGACY is not set + +# +# C++ features +# +# CONFIG_RT_USING_CPLUSPLUS is not set + +# +# Command shell +# +CONFIG_RT_USING_FINSH=y +CONFIG_RT_USING_MSH=y +CONFIG_FINSH_USING_MSH=y +CONFIG_FINSH_THREAD_NAME="tshell" +CONFIG_FINSH_THREAD_PRIORITY=20 +CONFIG_FINSH_THREAD_STACK_SIZE=4096 +CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 +CONFIG_FINSH_USING_SYMTAB=y +CONFIG_FINSH_CMD_SIZE=80 +CONFIG_MSH_USING_BUILT_IN_COMMANDS=y +CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set +# CONFIG_FINSH_USING_AUTH is not set +CONFIG_FINSH_ARG_MAX=10 + +# +# Device virtual file system +# +CONFIG_RT_USING_DFS=y +CONFIG_DFS_USING_POSIX=y +CONFIG_DFS_USING_WORKDIR=y +CONFIG_DFS_FILESYSTEMS_MAX=4 +CONFIG_DFS_FILESYSTEM_TYPES_MAX=4 +CONFIG_DFS_FD_MAX=16 +# CONFIG_RT_USING_DFS_MNTTABLE is not set +# CONFIG_RT_USING_DFS_ELMFAT is not set +CONFIG_RT_USING_DFS_DEVFS=y +# CONFIG_RT_USING_DFS_ROMFS is not set +# CONFIG_RT_USING_DFS_RAMFS is not set + +# +# Device Drivers +# +CONFIG_RT_USING_DEVICE_IPC=y +# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set +CONFIG_RT_USING_SERIAL=y +CONFIG_RT_USING_SERIAL_V1=y +# CONFIG_RT_USING_SERIAL_V2 is not set +CONFIG_RT_SERIAL_USING_DMA=y +CONFIG_RT_SERIAL_RB_BUFSZ=64 +# CONFIG_RT_USING_CAN is not set +# CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set +# CONFIG_RT_USING_I2C is not set +# CONFIG_RT_USING_PHY is not set +CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_ADC is not set +# CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_PWM is not set +# CONFIG_RT_USING_MTD_NOR is not set +# CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_RTC is not set +# CONFIG_RT_USING_SDIO is not set +# CONFIG_RT_USING_SPI is not set +# CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_AUDIO is not set +# CONFIG_RT_USING_SENSOR is not set +# CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_HWCRYPTO is not set +# CONFIG_RT_USING_PULSE_ENCODER is not set +# CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_WIFI is not set + +# +# Using USB +# +# CONFIG_RT_USING_USB is not set +# CONFIG_RT_USING_USB_HOST is not set +# CONFIG_RT_USING_USB_DEVICE is not set + +# +# POSIX layer and C standard library +# +CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# POSIX (Portable Operating System Interface) layer +# +# CONFIG_RT_USING_POSIX_FS is not set +# CONFIG_RT_USING_POSIX_DELAY is not set +# CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set +# CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set + +# +# Interprocess Communication (IPC) +# +# CONFIG_RT_USING_POSIX_PIPE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set + +# +# Socket is in the 'Network' category +# + +# +# Network +# + +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + +# +# Network interface device +# +# CONFIG_RT_USING_NETDEV is not set + +# +# light weight TCP/IP stack +# +# CONFIG_RT_USING_LWIP is not set + +# +# AT commands +# +# CONFIG_RT_USING_AT is not set + +# +# VBUS(Virtual Software BUS) +# +# CONFIG_RT_USING_VBUS is not set + +# +# Utilities +# +# CONFIG_RT_USING_RYM is not set +# CONFIG_RT_USING_ULOG is not set +# CONFIG_RT_USING_UTEST is not set +# CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RT_LINK is not set + +# +# RT-Thread Utestcases +# +# CONFIG_RT_USING_UTESTCASES is not set + +# +# RT-Thread online packages +# + +# +# IoT - internet of things +# +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set +# CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set +# CONFIG_PKG_USING_WEBCLIENT is not set +# CONFIG_PKG_USING_WEBNET is not set +# CONFIG_PKG_USING_MONGOOSE is not set +# CONFIG_PKG_USING_MYMQTT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set +# CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_LIBMODBUS is not set +# CONFIG_PKG_USING_FREEMODBUS is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_NANOPB is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_RW007 is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set +# CONFIG_PKG_USING_PPP_DEVICE is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_ATSRV_SOCKET is not set +# CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set + +# +# IoT Cloud +# +# CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set +# CONFIG_PKG_USING_JIOT-C-SDK is not set +# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_OTA_DOWNLOADER is not set +# CONFIG_PKG_USING_IPMSG is not set +# CONFIG_PKG_USING_LSSDP is not set +# CONFIG_PKG_USING_AIRKISS_OPEN is not set +# CONFIG_PKG_USING_LIBRWS is not set +# CONFIG_PKG_USING_TCPSERVER is not set +# CONFIG_PKG_USING_PROTOBUF_C is not set +# CONFIG_PKG_USING_DLT645 is not set +# CONFIG_PKG_USING_QXWZ is not set +# CONFIG_PKG_USING_SMTP_CLIENT is not set +# CONFIG_PKG_USING_ABUP_FOTA is not set +# CONFIG_PKG_USING_LIBCURL2RTT is not set +# CONFIG_PKG_USING_CAPNP is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set + +# +# security packages +# +# CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_TINYCRYPT is not set +# CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set + +# +# language packages +# +# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_LUA is not set +# CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set + +# +# multimedia packages +# + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set +# CONFIG_PKG_USING_OPENMV is not set +# CONFIG_PKG_USING_MUPDF is not set +# CONFIG_PKG_USING_STEMWIN is not set +# CONFIG_PKG_USING_WAVPLAYER is not set +# CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set + +# +# tools packages +# +# CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set +# CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set +# CONFIG_PKG_USING_RDB is not set +# CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set +# CONFIG_PKG_USING_ADBD is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set +# CONFIG_PKG_USING_NR_MICRO_SHELL is not set +# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set +# CONFIG_PKG_USING_LUNAR_CALENDAR is not set +# CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set + +# +# system packages +# + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# POSIX extension functions +# +# CONFIG_PKG_USING_POSIX_GETLINE is not set +# CONFIG_PKG_USING_POSIX_WCWIDTH is not set +# CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_RT_USING_ARDUINO is not set +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_CAIRO is not set +# CONFIG_PKG_USING_PIXMAN is not set +# CONFIG_PKG_USING_PARTITION is not set +# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_FLASHDB is not set +# CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set +# CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set +# CONFIG_PKG_USING_THREAD_POOL is not set +# CONFIG_PKG_USING_ROBOTS is not set +# CONFIG_PKG_USING_EV is not set +# CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_USB_STACK is not set + +# +# peripheral libraries and drivers +# +# CONFIG_PKG_USING_SENSORS_DRIVERS is not set +# CONFIG_PKG_USING_REALTEK_AMEBA is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_BUTTON is not set +# CONFIG_PKG_USING_PCF8574 is not set +# CONFIG_PKG_USING_SX12XX is not set +# CONFIG_PKG_USING_SIGNAL_LED is not set +# CONFIG_PKG_USING_LEDBLINK is not set +# CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set +# CONFIG_PKG_USING_WM_LIBRARIES is not set +# CONFIG_PKG_USING_KENDRYTE_SDK is not set +# CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_AGILE_BUTTON is not set +# CONFIG_PKG_USING_AGILE_LED is not set +# CONFIG_PKG_USING_AT24CXX is not set +# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set +# CONFIG_PKG_USING_AD7746 is not set +# CONFIG_PKG_USING_PCA9685 is not set +# CONFIG_PKG_USING_I2C_TOOLS is not set +# CONFIG_PKG_USING_NRF24L01 is not set +# CONFIG_PKG_USING_TOUCH_DRIVERS is not set +# CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_RPLIDAR is not set +# CONFIG_PKG_USING_AS608 is not set +# CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set +# CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set + +# +# miscellaneous packages +# + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set +# CONFIG_PKG_USING_HELLO is not set +# CONFIG_PKG_USING_VI is not set +# CONFIG_PKG_USING_KI is not set +# CONFIG_PKG_USING_ARMv7M_DWT is not set +# CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +CONFIG_SOC_LS1B=y +CONFIG_RT_MEM_SIZE=256 +CONFIG_RT_OSC_CLK=25000000 +# CONFIG_RT_USING_UART0 is not set +# CONFIG_RT_USING_UART1 is not set +# CONFIG_RT_USING_UART2 is not set +# CONFIG_RT_USING_UART3 is not set +# CONFIG_RT_USING_UART4 is not set +CONFIG_RT_USING_UART5=y +CONFIG_RT_UART_RX_BUFFER_SIZE=64 diff --git a/bsp/loongson/ls1bdev/.gitignore b/bsp/loongson/ls1bdev/.gitignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bsp/loongson/ls1bdev/Kconfig b/bsp/loongson/ls1bdev/Kconfig new file mode 100644 index 0000000000..b02aee337a --- /dev/null +++ b/bsp/loongson/ls1bdev/Kconfig @@ -0,0 +1,60 @@ +mainmenu "RT-Thread Configuration" + +config BSP_DIR + string + option env="BSP_ROOT" + default "." + +config RTT_DIR + string + option env="RTT_ROOT" + default "../.." + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" + +config SOC_LS1B + bool + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + default y + +config RT_MEM_SIZE + int "Memory Size (MByte)" + default 256 + +config RT_OSC_CLK + int "Oscillator Clock (Hz)" + default 25000000 + +if RT_USING_SERIAL +config RT_USING_UART0 + bool "Using RT_USING_UART0" + default n +config RT_USING_UART1 + bool "Using RT_USING_UART1" + default n +config RT_USING_UART2 + bool "Using RT_USING_UART2" + default n +config RT_USING_UART3 + bool "Using RT_USING_UART3" + default n +config RT_USING_UART4 + bool "Using RT_USING_UART4" + default n +config RT_USING_UART5 + bool "Using RT_USING_UART5" + default y + +config RT_UART_RX_BUFFER_SIZE + int "The rx buffer size" + default 64 if RT_USING_SERIAL + default 64 +endif + diff --git a/bsp/loongson/ls1bdev/SConscript b/bsp/loongson/ls1bdev/SConscript new file mode 100644 index 0000000000..0992612410 --- /dev/null +++ b/bsp/loongson/ls1bdev/SConscript @@ -0,0 +1,12 @@ +from building import * + +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/loongson/ls1bdev/SConstruct b/bsp/loongson/ls1bdev/SConstruct new file mode 100644 index 0000000000..38fe7234b9 --- /dev/null +++ b/bsp/loongson/ls1bdev/SConstruct @@ -0,0 +1,34 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) +env['ASCOM'] = env['ASPPCOM'] + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +if GetDepend('RT_USING_RTGUI'): + objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/loongson/ls1bdev/applications/SConscript b/bsp/loongson/ls1bdev/applications/SConscript new file mode 100644 index 0000000000..4ccb177207 --- /dev/null +++ b/bsp/loongson/ls1bdev/applications/SConscript @@ -0,0 +1,9 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls1bdev/applications/main.c b/bsp/loongson/ls1bdev/applications/main.c new file mode 100644 index 0000000000..fac004d832 --- /dev/null +++ b/bsp/loongson/ls1bdev/applications/main.c @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-10 zhuangwei first version + */ + +#include + +int main(int argc, char** argv) +{ + + return 0; +} diff --git a/bsp/loongson/ls1bdev/drivers/SConscript b/bsp/loongson/ls1bdev/drivers/SConscript new file mode 100644 index 0000000000..5e1060d78e --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/SConscript @@ -0,0 +1,14 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +# remove no need file. +if GetDepend('RT_USING_RTGUI') == False: + SrcRemove(src, 'display_controller.c') + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls1bdev/drivers/board.c b/bsp/loongson/ls1bdev/drivers/board.c new file mode 100644 index 0000000000..933c54a172 --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/board.c @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2010-06-25 Bernard first version + * 2011-08-08 lgnq modified for Loongson LS1B + * 2019-12-04 Jiaxun Yang Adapt new MIPS generic code + */ + +#include +#include +#include + +#include "board.h" +#include "drv_uart.h" +#include "ls1b.h" + +#ifdef RT_USING_RTGUI +#include +rt_device_t dc; +extern void rt_hw_dc_init(void); +#endif + +extern unsigned char __bss_end; + +/** + * @addtogroup Loongson LS1B + */ + +/*@{*/ + +/** + * This function will initial sam7s64 board. + */ +void rt_hw_board_init(void) +{ + /* init hardware interrupt */ + rt_hw_exception_init(); + + /* init hardware interrupt */ + rt_hw_interrupt_init(); + +#ifdef RT_USING_HEAP + rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END); +#endif + +#ifdef RT_USING_SERIAL + /* init hardware UART device */ + rt_hw_uart_init(); +#endif + +#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) + /* set console device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + /* init operating system timer */ + rt_hw_timer_init(); + +#ifdef RT_USING_FPU + /* init hardware fpu */ + rt_hw_fpu_init(); +#endif + +#ifdef RT_USING_RTGUI + rt_device_t dc; + + /* init Display Controller */ + rt_hw_dc_init(); + + /* find Display Controller device */ + dc = rt_device_find("dc"); + + /* set Display Controller device as rtgui graphic driver */ + rtgui_graphic_set_device(dc); +#endif + +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif + rt_kprintf("current sr: 0x%08x\n", read_c0_status()); +} +/*@}*/ diff --git a/bsp/loongson/ls1bdev/drivers/board.h b/bsp/loongson/ls1bdev/drivers/board.h new file mode 100644 index 0000000000..7d7002892c --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/board.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2010-06-25 Bernard first version + * 2011-08-08 lgnq modified for Loongson LS1B + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +void rt_hw_board_init(void); + +/* 64M SDRAM */ +#define RT_HW_HEAP_END (0x80000000 + RT_MEM_SIZE * 1024 * 1024) +#define CPU_HZ (125 * 1000000) + +#endif diff --git a/bsp/loongson/ls1bdev/drivers/display_controller.c b/bsp/loongson/ls1bdev/drivers/display_controller.c new file mode 100644 index 0000000000..5dba114b69 --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/display_controller.c @@ -0,0 +1,230 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-08-09 lgnq first version for LS1B DC + */ + +#include +#include "display_controller.h" + +struct vga_struct vga_mode[] = +{ + {/*"640x480_70.00"*/ 28560, 640, 664, 728, 816, 480, 481, 484, 500, }, + {/*"640x640_60.00"*/ 33100, 640, 672, 736, 832, 640, 641, 644, 663, }, + {/*"640x768_60.00"*/ 39690, 640, 672, 736, 832, 768, 769, 772, 795, }, + {/*"640x800_60.00"*/ 42130, 640, 680, 744, 848, 800, 801, 804, 828, }, + {/*"800x480_70.00"*/ 35840, 800, 832, 912, 1024, 480, 481, 484, 500, }, + {/*"800x600_60.00"*/ 38220, 800, 832, 912, 1024, 600, 601, 604, 622, }, + {/*"800x640_60.00"*/ 40730, 800, 832, 912, 1024, 640, 641, 644, 663, }, + {/*"832x600_60.00"*/ 40010, 832, 864, 952, 1072, 600, 601, 604, 622, }, + {/*"832x608_60.00"*/ 40520, 832, 864, 952, 1072, 608, 609, 612, 630, }, + {/*"1024x480_60.00"*/ 38170, 1024, 1048, 1152, 1280, 480, 481, 484, 497, }, + {/*"1024x600_60.00"*/ 48960, 1024, 1064, 1168, 1312, 600, 601, 604, 622, }, + {/*"1024x640_60.00"*/ 52830, 1024, 1072, 1176, 1328, 640, 641, 644, 663, }, + {/*"1024x768_60.00"*/ 64110, 1024, 1080, 1184, 1344, 768, 769, 772, 795, }, + {/*"1152x764_60.00"*/ 71380, 1152, 1208, 1328, 1504, 764, 765, 768, 791, }, + {/*"1280x800_60.00"*/ 83460, 1280, 1344, 1480, 1680, 800, 801, 804, 828, }, + {/*"1280x1024_55.00"*/ 98600, 1280, 1352, 1488, 1696, 1024, 1025, 1028, 1057, }, + {/*"1440x800_60.00"*/ 93800, 1440, 1512, 1664, 1888, 800, 801, 804, 828, }, + {/*"1440x900_67.00"*/ 120280, 1440, 1528, 1680, 1920, 900, 901, 904, 935, }, +}; + +ALIGN(16) +volatile rt_uint16_t _rt_framebuffer[FB_YSIZE][FB_XSIZE]; +static struct rt_device_graphic_info _dc_info; + +#define abs(x) ((x<0)?(-x):x) +#define min(a,b) ((atype = RT_Device_Class_Graphic; + dc->init = rt_dc_init; + dc->open = RT_NULL; + dc->close = RT_NULL; + dc->control = rt_dc_control; + dc->user_data = (void*)&_dc_info; + + /* register Display Controller device to RT-Thread */ + rt_device_register(dc, "dc", RT_DEVICE_FLAG_RDWR); +} diff --git a/bsp/loongson/ls1bdev/drivers/display_controller.h b/bsp/loongson/ls1bdev/drivers/display_controller.h new file mode 100644 index 0000000000..1fa6243a72 --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/display_controller.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-08-08 lgnq first version for LS1B + */ + +#ifndef __DISPLAY_CONTROLLER_H__ +#define __DISPLAY_CONTROLLER_H__ + +#include +#include "ls1b.h" + +#define DC_BASE 0xBC301240 //Display Controller + +/* Frame Buffer registers */ +#define DC_FB_CONFIG __REG32(DC_BASE + 0x000) +#define DC_FB_BUFFER_ADDR0 __REG32(DC_BASE + 0x020) +#define DC_FB_BUFFER_STRIDE __REG32(DC_BASE + 0x040) +#define DC_FB_BUFFER_ORIGIN __REG32(DC_BASE + 0x060) +#define DC_DITHER_CONFIG __REG32(DC_BASE + 0x120) +#define DC_DITHER_TABLE_LOW __REG32(DC_BASE + 0x140) +#define DC_DITHER_TABLE_HIGH __REG32(DC_BASE + 0x160) +#define DC_PANEL_CONFIG __REG32(DC_BASE + 0x180) +#define DC_PANEL_TIMING __REG32(DC_BASE + 0x1A0) +#define DC_HDISPLAY __REG32(DC_BASE + 0x1C0) +#define DC_HSYNC __REG32(DC_BASE + 0x1E0) +#define DC_VDISPLAY __REG32(DC_BASE + 0x240) +#define DC_VSYNC __REG32(DC_BASE + 0x260) +#define DC_FB_BUFFER_ADDR1 __REG32(DC_BASE + 0x340) + +/* Display Controller driver for 1024x768 16bit */ +#define FB_XSIZE 1024 +#define FB_YSIZE 768 +#define CONFIG_VIDEO_16BPP + +#define APB_CLK 33333333 + +#define K1BASE 0xA0000000 +#define KSEG1(addr) ((void *)(K1BASE | (rt_uint32_t)(addr))) +#define HW_FB_ADDR KSEG1(_rt_framebuffer) +#define HW_FB_PIXEL(x, y) *(volatile rt_uint16_t*)((rt_uint8_t*)HW_FB_ADDR + (y * FB_XSIZE * 2) + x * 2) + +struct vga_struct +{ + long pclk; + int hr,hss,hse,hfl; + int vr,vss,vse,vfl; +}; + +#endif diff --git a/bsp/loongson/ls1bdev/drivers/drv_uart.c b/bsp/loongson/ls1bdev/drivers/drv_uart.c new file mode 100644 index 0000000000..8f469f26ed --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/drv_uart.c @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-08 zhuangwei the first version + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ +#include +#include +#include +#include "drv_uart.h" +#include "ls1b_pin.h" +#include "ls1b_uart.h" + +/* STM32 uart driver */ +struct rt_uart_ls1b +{ + ls1b_uart_t UARTx; + rt_uint32_t IRQ; +}; + +static rt_err_t ls1b_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + struct rt_uart_ls1b *uart_dev = RT_NULL; + ls1b_uart_info_t uart_info = {0}; + + RT_ASSERT(serial != RT_NULL); + RT_ASSERT(cfg != RT_NULL); + + uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; + + // 初始化串口 + uart_info.UARTx = uart_dev->UARTx; + uart_info.baudrate = cfg->baud_rate; + uart_info.rx_enable = TRUE; + uart_init(&uart_info); + + return RT_EOK; + +} + +static rt_err_t ls1b_uart_control(struct rt_serial_device *serial, int cmd, void *arg) +{ + struct rt_uart_ls1b *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: /* disable rx irq */ + rt_hw_interrupt_mask(uart_dev->IRQ); + break; + + case RT_DEVICE_CTRL_SET_INT: /* enable rx irq */ + rt_hw_interrupt_umask(uart_dev->IRQ); + break; + + default: + break; + } + + return RT_EOK; + +} + +static int ls1b_uart_putc(struct rt_serial_device *serial, char c) +{ + struct rt_uart_ls1b *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + + uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; + uart_putc(uart_dev->UARTx, c); + + return 1; +} + +static int ls1b_uart_getc(struct rt_serial_device *serial) +{ + struct rt_uart_ls1b *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + + uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; + void *uart_base = uart_get_base(uart_dev->UARTx); + + if (LSR_RXRDY & reg_read_8(uart_base + LS1B_UART_LSR_OFFSET)) + { + return reg_read_8(uart_base + LS1B_UART_DAT_OFFSET); + } + + return -1; +} + +/* UART interrupt handler */ +static void uart_irq_handler(int vector, void *param) +{ + struct rt_serial_device *serial = (struct rt_serial_device *)param; + struct rt_uart_ls1b *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + + uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; + void *uart_base = uart_get_base(uart_dev->UARTx); + unsigned char iir = reg_read_8(uart_base + LS1B_UART_IIR_OFFSET); + + // 判断是否为接收超时或接收到有效数据 + if ((IIR_RXTOUT & iir) || (IIR_RXRDY & iir)) + { + rt_interrupt_enter(); + rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); + rt_interrupt_leave(); + } + +} + +static const struct rt_uart_ops ls1b_uart_ops = +{ + ls1b_uart_configure, + ls1b_uart_control, + ls1b_uart_putc, + ls1b_uart_getc, +}; + + +#if defined(RT_USING_UART1) +struct rt_uart_ls1b uart1 = +{ + LS1B_UART1, + LS1B_UART1_IRQ, +}; +struct rt_serial_device serial1; +#endif /* RT_USING_UART1 */ + +#if defined(RT_USING_UART2) +struct rt_uart_ls1b uart2 = +{ + LS1B_UART2, + LS1B_UART2_IRQ, +}; +struct rt_serial_device serial2; +#endif /* RT_USING_UART2 */ + + +#if defined(RT_USING_UART3) +struct rt_uart_ls1b uart3 = +{ + LS1B_UART3, + LS1B_UART3_IRQ, +}; +struct rt_serial_device serial3; +#endif /* RT_USING_UART3 */ + +#if defined(RT_USING_UART4) +struct rt_uart_ls1b uart4 = +{ + LS1B_UART4, + LS1B_UART4_IRQ, +}; +struct rt_serial_device serial4; +#endif /* RT_USING_UART4 */ + +#if defined(RT_USING_UART5) +struct rt_uart_ls1b uart5 = +{ + LS1B_UART5, + LS1B_UART5_IRQ, +}; +struct rt_serial_device serial5; +#endif /* RT_USING_UART5 */ + + + +void rt_hw_uart_init(void) +{ + struct rt_uart_ls1b *uart; + struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; + +#ifdef RT_USING_UART5 + uart = &uart5; + + serial5.ops = &ls1b_uart_ops; + serial5.config = config; + + rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial5, "UART5"); + + /* register UART5 device */ + rt_hw_serial_register(&serial5, + "uart5", + //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + uart); +#endif /* RT_USING_UART5 */ + + +#ifdef RT_USING_UART2 + uart = &uart2; + + serial2.ops = &ls1b_uart_ops; + serial2.config = config; + + pin_set_purpose(36, PIN_PURPOSE_OTHER); + pin_set_purpose(37, PIN_PURPOSE_OTHER); + pin_set_remap(36, PIN_REMAP_SECOND); + pin_set_remap(37, PIN_REMAP_SECOND); + + rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial2, "UART2"); + + /* register UART2 device */ + rt_hw_serial_register(&serial2, + "uart2", + //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + uart); +#endif /* RT_USING_UART2 */ + +} + diff --git a/bsp/loongson/ls1bdev/drivers/drv_uart.h b/bsp/loongson/ls1bdev/drivers/drv_uart.h new file mode 100644 index 0000000000..01dfd9aae0 --- /dev/null +++ b/bsp/loongson/ls1bdev/drivers/drv_uart.h @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-08 zhuangwei the first version + */ + +#ifndef __DRV_UART_H__ +#define __DRV_UART_H__ + +#include "ls1b.h" +#include + +#define DEV_CLK 252000000 // 252MHz +#define UART_BAUDRATE 115200 + +#define UART0_BASE 0xBFE40000 +//#define UART0_1_BASE 0xBFE41000 +#define UART1_BASE 0xBFE44000 +#define UART2_BASE 0xBFE48000 +#define UART3_BASE 0xBFE4C000 +#define UART4_BASE 0xBFE4C400 +#define UART5_BASE 0xBFE4C500 +#define UART6_BASE 0xBFE4C600 +#define UART7_BASE 0xBFE4C700 +#define UART8_BASE 0xBFE4C800 +#define UART9_BASE 0xBFE4C900 +#define UART10_BASE 0xBFE4Ca00 +#define UART11_BASE 0xBFE4Cb00 + +/* UART registers */ +#define UART_DAT(base) HWREG8(base + 0x00) +#define UART_IER(base) HWREG8(base + 0x01) +#define UART_IIR(base) HWREG8(base + 0x02) +#define UART_FCR(base) HWREG8(base + 0x02) +#define UART_LCR(base) HWREG8(base + 0x03) +#define UART_MCR(base) HWREG8(base + 0x04) +#define UART_LSR(base) HWREG8(base + 0x05) +#define UART_MSR(base) HWREG8(base + 0x06) + +#define UART_LSB(base) HWREG8(base + 0x00) +#define UART_MSB(base) HWREG8(base + 0x01) + +/* UART0 registers */ +#define UART0_DAT HWREG8(UART0_BASE + 0x00) +#define UART0_IER HWREG8(UART0_BASE + 0x01) +#define UART0_IIR HWREG8(UART0_BASE + 0x02) +#define UART0_FCR HWREG8(UART0_BASE + 0x02) +#define UART0_LCR HWREG8(UART0_BASE + 0x03) +#define UART0_MCR HWREG8(UART0_BASE + 0x04) +#define UART0_LSR HWREG8(UART0_BASE + 0x05) +#define UART0_MSR HWREG8(UART0_BASE + 0x06) + +#define UART0_LSB HWREG8(UART0_BASE + 0x00) +#define UART0_MSB HWREG8(UART0_BASE + 0x01) + +/* UART1 registers */ +#define UART1_DAT HWREG8(UART1_BASE + 0x00) +#define UART1_IER HWREG8(UART1_BASE + 0x01) +#define UART1_IIR HWREG8(UART1_BASE + 0x02) +#define UART1_FCR HWREG8(UART1_BASE + 0x02) +#define UART1_LCR HWREG8(UART1_BASE + 0x03) +#define UART1_MCR HWREG8(UART1_BASE + 0x04) +#define UART1_LSR HWREG8(UART1_BASE + 0x05) +#define UART1_MSR HWREG8(UART1_BASE + 0x06) + +#define UART1_LSB HWREG8(UART1_BASE + 0x00) +#define UART1_MSB HWREG8(UART1_BASE + 0x01) + +/* UART interrupt enable register value */ +#define UARTIER_IME (1 << 3) +#define UARTIER_ILE (1 << 2) +#define UARTIER_ITXE (1 << 1) +#define UARTIER_IRXE (1 << 0) + +/* UART line control register value */ +#define UARTLCR_DLAB (1 << 7) +#define UARTLCR_BCB (1 << 6) +#define UARTLCR_SPB (1 << 5) +#define UARTLCR_EPS (1 << 4) +#define UARTLCR_PE (1 << 3) +#define UARTLCR_SB (1 << 2) + +/* UART line status register value */ +#define UARTLSR_ERROR (1 << 7) +#define UARTLSR_TE (1 << 6) +#define UARTLSR_TFE (1 << 5) +#define UARTLSR_BI (1 << 4) +#define UARTLSR_FE (1 << 3) +#define UARTLSR_PE (1 << 2) +#define UARTLSR_OE (1 << 1) +#define UARTLSR_DR (1 << 0) + +void rt_hw_uart_init(void); + + +#endif diff --git a/bsp/loongson/ls1bdev/libraries/SConscript b/bsp/loongson/ls1bdev/libraries/SConscript new file mode 100644 index 0000000000..78797ef273 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/SConscript @@ -0,0 +1,10 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +CPPPATH = [cwd] + +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_clock.c b/bsp/loongson/ls1bdev/libraries/ls1b_clock.c new file mode 100644 index 0000000000..05547a158c --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_clock.c @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ + + +#include "rtconfig.h" +#include "ls1b_regs.h" +#include "ls1b_public.h" + + +// 晶振的频率 +#define AHB_CLK (RT_OSC_CLK) +#define APB_CLK (AHB_CLK) + +#define DIV_DC_EN (0x1 << 31) +#define DIV_DC (0x1f << 26) +#define DIV_CPU_EN (0x1 << 25) +#define DIV_CPU (0x1f << 20) +#define DIV_DDR_EN (0x1 << 19) +#define DIV_DDR (0x1f << 14) + +#define DIV_DC_SHIFT 26 +#define DIV_CPU_SHIFT 20 +#define DIV_DDR_SHIFT 14 + + +/* + * 获取PLL频率 + * @ret PLL频率 + */ +unsigned long clk_get_pll_rate(void) +{ + unsigned int ctrl; + unsigned long pll_rate = 0; + + ctrl = reg_read_32((volatile unsigned int *)LS1B_START_FREQ); + pll_rate = (12 + (ctrl & 0x3f)) * APB_CLK / 2 + + ((ctrl >> 8) & 0x3ff) * APB_CLK / 1024 / 2; + + return pll_rate; +} + + +/* + * 获取CPU频率 + * @ret CPU频率 + */ +unsigned long clk_get_cpu_rate(void) +{ + unsigned long pll_rate, cpu_rate; + unsigned int ctrl; + + pll_rate = clk_get_pll_rate(); + ctrl = reg_read_32((volatile unsigned int *)LS1B_CLK_DIV_PARAM); + cpu_rate = pll_rate / ((ctrl & DIV_CPU) >> DIV_CPU_SHIFT); + + return cpu_rate; +} + + +/* + * 获取DDR频率 + * @ret DDR频率 + */ +unsigned long clk_get_ddr_rate(void) +{ + unsigned long pll_rate, ddr_rate; + unsigned int ctrl; + + pll_rate = clk_get_pll_rate(); + ctrl = reg_read_32((volatile unsigned int *)LS1B_CLK_DIV_PARAM); + + ddr_rate = pll_rate / ((ctrl & DIV_DDR) >> DIV_DDR_SHIFT); + + return ddr_rate; +} + + +/* + * 获取APB频率 + * @ret APB频率 + */ +unsigned long clk_get_apb_rate(void) +{ + return clk_get_ddr_rate() / 2; +} + + +/* + * 获取DC频率 + * @ret DC频率 + */ +unsigned long clk_get_dc_rate(void) +{ + unsigned long pll_rate, dc_rate; + unsigned int ctrl; + + pll_rate = clk_get_pll_rate(); + ctrl = reg_read_32((volatile unsigned int *)LS1B_CLK_DIV_PARAM); + + dc_rate = pll_rate ; + + return dc_rate; +} + + + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_clock.h b/bsp/loongson/ls1bdev/libraries/ls1b_clock.h new file mode 100644 index 0000000000..bd22986e4c --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_clock.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + + +#ifndef __LOONGSON_CLOCK_H +#define __LOONGSON_CLOCK_H + + + +/* + * »ñȡPLLƵÂÊ + * @ret PLLƵÂÊ + */ +unsigned long clk_get_pll_rate(void); + + +/* + * »ñȡCPUƵÂÊ + * @ret CPUƵÂÊ + */ +unsigned long clk_get_cpu_rate(void); + + + +/* + * »ñȡDDRƵÂÊ + * @ret DDRƵÂÊ + */ +unsigned long clk_get_ddr_rate(void); + + +/* + * »ñȡAPBƵÂÊ + * @ret APBƵÂÊ + */ +unsigned long clk_get_apb_rate(void); + + +/* + * »ñȡDCƵÂÊ + * @ret DCƵÂÊ + */ +unsigned long clk_get_dc_rate(void); + + + +#endif + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_gpio.c b/bsp/loongson/ls1bdev/libraries/ls1b_gpio.c new file mode 100644 index 0000000000..2e100e7122 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_gpio.c @@ -0,0 +1,238 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ + + +#include "ls1b_public.h" +#include "ls1b_regs.h" +#include "ls1b_gpio.h" +#include "ls1b_pin.h" + + +/* + * 获取指定gpio的CFG寄存器 + * @gpio gpio编号 + * @ret CFG寄存器 + */ +volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio) +{ + volatile unsigned int *gpio_cfgx = NULL; // GPIO_CFGx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + + switch (port) + { + case 0: + gpio_cfgx = (volatile unsigned int *)LS1B_GPIO_CFG0; + break; + + case 1: + gpio_cfgx = (volatile unsigned int *)LS1B_GPIO_CFG1; + break; + default: + gpio_cfgx = NULL; + break; + } + + return gpio_cfgx; +} + + +/* + * 获取指定gpio的EN寄存器 + * @gpio gpio编号 + * @ret EN寄存器 + */ +volatile unsigned int *gpio_get_en_reg(unsigned int gpio) +{ + volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + + switch (port) + { + case 0: + gpio_enx = (volatile unsigned int *)LS1B_GPIO_EN0; + break; + + case 1: + gpio_enx = (volatile unsigned int *)LS1B_GPIO_EN1; + break; + default: + gpio_enx = NULL; + return gpio_enx; + } + + return gpio_enx; +} + +/* + * gpio初始化 + * @gpio gpio引脚,取值范围[0, 127] + * @mode gpio的工作模式(输入、输出) + * + * 例: 将gpio50初始化为输出 + * gpio_init(50, gpio_mode_output); + */ +void gpio_init(unsigned int gpio, gpio_mode_t mode) +{ + volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 + unsigned int pin = GPIO_GET_PIN(gpio); + + // 将pin设为普通GPIO + pin_set_purpose(gpio, PIN_PURPOSE_GPIO); + + // 设置gpio工作模式(输入、输出) + gpio_enx = gpio_get_en_reg(gpio); + if (gpio_mode_output == mode) // 输出 + { + reg_clr_one_bit(gpio_enx, pin); + } + else // 输入 + { + reg_set_one_bit(gpio_enx, pin); + } + + return ; +} + + +/* + * 在指定gpio输出高电平或低电平 + * @gpio gpio引脚,取值范围[0, 127] + * @level 电平值 + * + * 例: 在gpio50上输出低电平 + * gpio_set(50, gpio_level_low); + */ +void gpio_set(unsigned int gpio, gpio_level_t level) +{ + volatile unsigned int *gpio_outx = NULL; // GPIO_OUTx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + + // 获取寄存器地址 + switch (port) + { + case 0: + gpio_outx = (volatile unsigned int *)LS1B_GPIO_OUT0; + break; + + case 1: + gpio_outx = (volatile unsigned int *)LS1B_GPIO_OUT1; + break; + default: // 正确的程序不应该走到这里,直接返回 + return ; + } + + // 输出 + if (gpio_level_low == level) + { + reg_clr_one_bit(gpio_outx, pin); + } + else + { + reg_set_one_bit(gpio_outx, pin); + } + + return ; +} + + +/* + * 读取指定gpio引脚的值 + * @gpio gpio引脚,取值范围[0,127] + * + * 例: 读取gpio50引脚上的值 + * gpio_level_t level; + * level = gpio_get(50); + */ +unsigned int gpio_get(unsigned int gpio) +{ + volatile unsigned int *gpio_inx = NULL; // GPIO_INx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + + // 获取寄存器地址 + switch (port) + { + case 0: + gpio_inx = (volatile unsigned int *)LS1B_GPIO_IN0; + break; + + case 1: + gpio_inx = (volatile unsigned int *)LS1B_GPIO_IN1; + break; + default: // 正常的流程不应该走到这里,直接返回 + return 0; + } + + // 读取 + return reg_get_bit(gpio_inx, pin); +} + + +/** + * 设置中断类型 + * @gpio gpio引脚 + * @type 触发中断的条件。高电平触发、低电平触发、上升沿触发 or 下降沿触发 + */ +void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type) +{ + volatile unsigned int *int_pol = NULL; // 中断极性选择寄存器 + volatile unsigned int *int_edge = NULL; // 中断边沿选择寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + + // 获取寄存器地址 + switch (port) + { + case 0: // GPIO[31:0] + int_pol = (volatile unsigned int *)LS1B_INT2_POL; + int_edge = (volatile unsigned int *)LS1B_INT2_EDGE; + break; + + case 1: // GPIO[63:32] + int_pol = (volatile unsigned int *)LS1B_INT3_POL; + int_edge = (volatile unsigned int *)LS1B_INT3_EDGE; + break; + + } + + // 设置中断类型 + switch (type) + { + case IRQ_TYPE_EDGE_RISING: + *int_pol |= (1 << pin); + *int_edge |= (1 << pin); + break; + + case IRQ_TYPE_EDGE_FALLING: + *int_pol &= ~(1 << pin); + *int_edge |= (1 << pin); + break; + + case IRQ_TYPE_LEVEL_HIGH: + *int_pol |= (1 << pin); + *int_edge &= ~(1 << pin); + break; + + case IRQ_TYPE_LEVEL_LOW: + *int_pol &= ~(1 << pin); + *int_edge &= ~(1 << pin); + break; + + default: + break; + } + + return ; +} + + + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_gpio.h b/bsp/loongson/ls1bdev/libraries/ls1b_gpio.h new file mode 100644 index 0000000000..cfbe148020 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_gpio.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + + +#ifndef __LOONGSON_GPIO_H +#define __LOONGSON_GPIO_H + + + +// 龙芯1c的gpio是按照0,1,2,3,4...这样的顺序编号的, +// 但在操作寄存器的时候,又是按照每32个一组来分的 +// 这里利用这个特性,将每组的32个gpio叫做一个"port",每个gpio在每组中的索引叫"pin" +// port = gpio / 32 +// pin = gpio % 32 +// 例如GPIO50,port=1,pin=18 +#define GPIO_GET_PORT(gpio) ((gpio) / 32) +#define GPIO_GET_PIN(gpio) ((gpio) % 32) + + +// gpio的工作模式--输入、输出 +typedef enum{ + gpio_mode_output = 0, // 输出 + gpio_mode_input = 1 // 输入 +}gpio_mode_t; + + +// gpio高低电平值 +typedef enum{ + gpio_level_low = 0, // 低电平 + gpio_level_high = 1 // 高电平 +}gpio_level_t; + + +typedef enum { + // 上升沿触发 + IRQ_TYPE_EDGE_RISING = 0x00000001, + // 下降沿触发 + IRQ_TYPE_EDGE_FALLING = 0x00000002, + IRQ_TYPE_EDGE_BOTH = (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING), + // 高电平触发 + IRQ_TYPE_LEVEL_HIGH = 0x00000004, + // 低电平触发 + IRQ_TYPE_LEVEL_LOW = 0x00000008, + IRQ_TYPE_LEVEL_MASK = (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH), +}gpio_irq_type_t; + + + +/* + * 获取指定gpio的CFG寄存器 + * @gpio gpio编号 + * @ret CFG寄存器 + */ +volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio); + +/* + * gpio初始化 + * @gpio gpio引脚,取值范围[0, 127] + * @mode gpio的工作模式(输入、输出) + * + * 例: 将gpio50初始化为输出 + * gpio_init(50, gpio_mode_output); + */ +void gpio_init(unsigned int gpio, gpio_mode_t mode); + + +/* + * 在指定gpio输出高电平或低电平 + * @gpio gpio引脚,取值范围[0, 127] + * @level 电平值 + * + * 例: 在gpio50上输出低电平 + * gpio_set(50, gpio_level_low); + */ +void gpio_set(unsigned int gpio, gpio_level_t level); + + + +/* + * 读取指定gpio引脚的值 + * @gpio gpio引脚,取值范围[0,127] + * + * 例: 读取gpio50引脚上的值 + * gpio_level_t level; + * level = gpio_get(50); + */ +unsigned int gpio_get(unsigned int gpio); + + + +/** + * 设置中断类型 + * @gpio gpio引脚 + * @type 触发中断的条件。高电平触发、低电平触发、上升沿触发 or 下降沿触发 + */ +void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type); + + + +#endif + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_pin.c b/bsp/loongson/ls1bdev/libraries/ls1b_pin.c new file mode 100644 index 0000000000..58d9e7e46c --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_pin.c @@ -0,0 +1,165 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ + +// 引脚功能(普通gpio,pwm,复用等)相关接口 + + +#include "ls1b_public.h" +#include "ls1b_regs.h" +#include "ls1b_gpio.h" +#include "ls1b_pin.h" + + +/* + * 把指定pin设置为指定用途(普通gpio,非gpio) + * @gpio gpio引脚编号 + * @purpose 用途 + */ +void pin_set_purpose(unsigned int gpio, pin_purpose_t purpose) +{ + volatile unsigned int *gpio_cfgx; // GPIO_CFGx寄存器 + unsigned int pin = GPIO_GET_PIN(gpio); + + gpio_cfgx = gpio_get_cfg_reg(gpio); + if (PIN_PURPOSE_GPIO == purpose) // 引脚用作普通gpio + { + reg_set_one_bit(gpio_cfgx, pin); + } + else // 引脚用作其它功能(非gpio) + { + reg_clr_one_bit(gpio_cfgx, pin); + } + + return ; +} + + + +/* + * 设置指定pin为第n复用 + * @gpio gpio编号 + * @remap 第n复用 + */ +void pin_set_remap(unsigned int gpio, pin_remap_t remap) +{ + volatile unsigned int *reg = NULL; // 复用寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + int i; + + /*指定全部pin复用为0*/ + for (i = 0; i <= 4; i++) + { + reg = (volatile unsigned int *)((LS1B_CBUS_FIRST0) + ((port) * 0x04) + ((i) * 0x10)); + // 置0 + reg_clr_one_bit(reg, pin); + } + + if (remap == PIN_REMAP_DEFAULT) return; + + switch (port) + { + case 0: + switch (remap) + { + case PIN_REMAP_FIRST: + reg = (volatile unsigned int *)LS1B_CBUS_FIRST0; + break; + case PIN_REMAP_SECOND: + reg = (volatile unsigned int *)LS1B_CBUS_SECOND0; + break; + case PIN_REMAP_THIRD: + reg = (volatile unsigned int *)LS1B_CBUS_THIRD0; + break; + case PIN_REMAP_FOURTH: + reg = (volatile unsigned int *)LS1B_CBUS_FOURTH0; + break; + case PIN_REMAP_FIFTH: + reg = (volatile unsigned int *)LS1B_CBUS_FIFTH0; + break; + } + break; + + case 1: + switch (remap) + { + case PIN_REMAP_FIRST: + reg = (volatile unsigned int *)LS1B_CBUS_FIRST1; + break; + case PIN_REMAP_SECOND: + reg = (volatile unsigned int *)LS1B_CBUS_SECOND1; + break; + case PIN_REMAP_THIRD: + reg = (volatile unsigned int *)LS1B_CBUS_THIRD1; + break; + case PIN_REMAP_FOURTH: + reg = (volatile unsigned int *)LS1B_CBUS_FOURTH1; + break; + case PIN_REMAP_FIFTH: + reg = (volatile unsigned int *)LS1B_CBUS_FIFTH1; + break; + } + break; + + case 2: + switch (remap) + { + case PIN_REMAP_FIRST: + reg = (volatile unsigned int *)LS1B_CBUS_FIRST2; + break; + case PIN_REMAP_SECOND: + reg = (volatile unsigned int *)LS1B_CBUS_SECOND2; + break; + case PIN_REMAP_THIRD: + reg = (volatile unsigned int *)LS1B_CBUS_THIRD2; + break; + case PIN_REMAP_FOURTH: + reg = (volatile unsigned int *)LS1B_CBUS_FOURTH2; + break; + case PIN_REMAP_FIFTH: + reg = (volatile unsigned int *)LS1B_CBUS_FIFTH2; + break; + } + break; + + case 3: + switch (remap) + { + case PIN_REMAP_FIRST: + reg = (volatile unsigned int *)LS1B_CBUS_FIRST3; + break; + case PIN_REMAP_SECOND: + reg = (volatile unsigned int *)LS1B_CBUS_SECOND3; + break; + case PIN_REMAP_THIRD: + reg = (volatile unsigned int *)LS1B_CBUS_THIRD3; + break; + case PIN_REMAP_FOURTH: + reg = (volatile unsigned int *)LS1B_CBUS_FOURTH3; + break; + case PIN_REMAP_FIFTH: + reg = (volatile unsigned int *)LS1B_CBUS_FIFTH3; + break; + } + break; + + default: + return ; + } + + // 置1 + reg_set_one_bit(reg, pin); + + return ; +} + + + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_pin.h b/bsp/loongson/ls1bdev/libraries/ls1b_pin.h new file mode 100644 index 0000000000..af63ba4187 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_pin.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + +// 引脚功能(普通gpio,pwm,复用等)相关接口 + +#ifndef __LOONGSON_PIN_H +#define __LOONGSON_PIN_H + + +// 引脚用途 +typedef enum +{ + PIN_PURPOSE_GPIO = 0, // 引脚用作普通gpio + PIN_PURPOSE_OTHER, // 引脚用作其它功能(非gpio) +}pin_purpose_t; + + +// 引脚复用 +typedef enum +{ + PIN_REMAP_FIRST = 0, // 第一复用 + PIN_REMAP_SECOND, // 第二复用 + PIN_REMAP_THIRD, // 第三复用 + PIN_REMAP_FOURTH, // 第四复用 + PIN_REMAP_FIFTH, // 第五复用 + PIN_REMAP_DEFAULT, //缺省复用 +}pin_remap_t; + + +/* + * 把指定pin设置为指定用途(普通gpio,非gpio) + * @gpio gpio引脚编号 + * @purpose 用途 + */ +void pin_set_purpose(unsigned int gpio, pin_purpose_t purpose); + + +/* + * 设置指定pin为第n复用 + * @gpio gpio编号 + * @remap 第n复用 + */ +void pin_set_remap(unsigned int gpio, pin_remap_t remap); + + +#endif + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_public.c b/bsp/loongson/ls1bdev/libraries/ls1b_public.c new file mode 100644 index 0000000000..b48d59a851 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_public.c @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ + +// 一些常用的、共用的接口 + +/* + * 将指定寄存器的指定位置1 + * @reg 寄存器地址 + * @bit 需要置1的那一bit + */ +void reg_set_one_bit(volatile unsigned int *reg, unsigned int bit) +{ + unsigned int temp, mask; + + mask = 1 << bit; + temp = *reg; + temp |= mask; + *reg = temp; + + return ; +} + + +/* + * 将指定寄存器的指定位清零 + * @reg 寄存器地址 + * @bit 需要清零的那一bit + */ +void reg_clr_one_bit(volatile unsigned int *reg, unsigned int bit) +{ + unsigned int temp, mask; + + mask = 1 << bit; + temp = *reg; + temp &= ~mask; + *reg = temp; + + return ; +} + + + +/* + * 获取指定寄存器的指定位的值 + * @reg 寄存器地址 + * @bit 需要读取值的那一bit + * @ret 指定位的值 + */ +unsigned int reg_get_bit(volatile unsigned int *reg, unsigned int bit) +{ + unsigned int temp; + + temp = *reg; + temp = (temp >> bit) & 1; + + return temp; +} + + +/* + * 向寄存器中写入8bit(一个字节)数据 + * @data 待写入的数据 + * @addr 寄存器地址 + */ +void reg_write_8(unsigned char data, volatile unsigned char *addr) +{ + *addr = data; +} + + +/* + * 从寄存器读出8bit(一个字节)数据 + * @addr 寄存器地址 + * @ret 读出的数据 + */ +unsigned char reg_read_8(volatile unsigned char *addr) +{ + return (*addr); +} + + +/* + * 向寄存器中写一个32bit的数据 + * @data 待写入的数据 + * @addr 寄存器地址 + */ +void reg_write_32(unsigned int data, volatile unsigned int *addr) +{ + *addr = data; +} + + +/* + * 从寄存器读出一个32bit数据 + * @addr 寄存器地址 + * @ret 读出的数据 + */ +unsigned int reg_read_32(volatile unsigned int *addr) +{ + return (*addr); +} + + + +/** + * ffs - find first bit set + * @x: the word to search + * + * This is defined the same way as + * the libc and compiler builtin ffs routines, therefore + * differs in spirit from the above ffz (man ffs). + */ +int ls1b_ffs(int x) +{ + int r = 1; + + if (!x) + return 0; + if (!(x & 0xffff)) { + x >>= 16; + r += 16; + } + if (!(x & 0xff)) { + x >>= 8; + r += 8; + } + if (!(x & 0xf)) { + x >>= 4; + r += 4; + } + if (!(x & 3)) { + x >>= 2; + r += 2; + } + if (!(x & 1)) { + x >>= 1; + r += 1; + } + return r; +} + + +/* + * fls - find last (most-significant) bit set + * @x: the word to search + * + * This is defined the same way as ffs. + * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. + */ +int ls1b_fls(int x) +{ + int r = 32; + + if (!x) + return 0; + if (!(x & 0xffff0000u)) + { + x <<= 16; + r -= 16; + } + if (!(x & 0xff000000u)) + { + x <<= 8; + r -= 8; + } + if (!(x & 0xf0000000u)) + { + x <<= 4; + r -= 4; + } + if (!(x & 0xc0000000u)) + { + x <<= 2; + r -= 2; + } + if (!(x & 0x80000000u)) + { + x <<= 1; + r -= 1; + } + + return r; +} + + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_public.h b/bsp/loongson/ls1bdev/libraries/ls1b_public.h new file mode 100644 index 0000000000..875f413062 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_public.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + +// 一些常用的、共用的接口 + +#ifndef __LOONGSON_PUBLIC_H +#define __LOONGSON_PUBLIC_H + + +#include + + +// pmon提供的打印函数,见main()函数 +struct callvectors { + int (*open) (char *, int, int); + int (*close) (int); + int (*read) (int, void *, int); + int (*write) (int, void *, int); + long long (*lseek) (int, long long, int); + int (*printf) (const char *, ...); + void (*cacheflush) (void); + char *(*gets) (char *); +}; +#define myprintf (*callvec->printf) +#define mygets (*callvec->gets) +extern struct callvectors *callvec; + + +#define MIN(a, b) ((a) > (b) ? (b) : (a)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) + +typedef enum +{ + FALSE=0, + TRUE=1 +}BOOL; + +/* + * 将指定寄存器的指定位置1 + * @reg 寄存器地址 + * @bit 需要置1的那一bit + */ +void reg_set_one_bit(volatile unsigned int *reg, unsigned int bit); + + +/* + * 将指定寄存器的指定位清零 + * @reg 寄存器地址 + * @bit 需要清零的那一bit + */ +void reg_clr_one_bit(volatile unsigned int *reg, unsigned int bit); + + +/* + * 获取指定寄存器的指定位的值 + * @reg 寄存器地址 + * @bit 需要读取值的那一bit + * @ret 指定位的值 + */ +unsigned int reg_get_bit(volatile unsigned int *reg, unsigned int bit); + + +/* + * 向寄存器中写入8bit(一个字节)数据 + * @data 待写入的数据 + * @addr 寄存器地址 + */ +void reg_write_8(unsigned char data, volatile unsigned char *addr); + + +/* + * 从寄存器读出8bit(一个字节)数据 + * @addr 寄存器地址 + * @ret 读出的数据 + */ +unsigned char reg_read_8(volatile unsigned char *addr); + + +/* + * 向寄存器中写一个32bit的数据 + * @data 待写入的数据 + * @addr 寄存器地址 + */ +void reg_write_32(unsigned int data, volatile unsigned int *addr); + + +/* + * 从寄存器读出一个32bit数据 + * @addr 寄存器地址 + * @ret 读出的数据 + */ +unsigned int reg_read_32(volatile unsigned int *addr); + + +/** + * ffs - find first bit set + * @x: the word to search + */ +int ls1b_ffs(int x); + +/* + * fls - find last (most-significant) bit set + * @x: the word to search + * + * This is defined the same way as ffs. + * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. + */ +int ls1b_fls(int x); + + +#endif + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_regs.h b/bsp/loongson/ls1bdev/libraries/ls1b_regs.h new file mode 100644 index 0000000000..6dad9c29bb --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_regs.h @@ -0,0 +1,148 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ + +// 龙芯1b外设寄存器 + + +#ifndef __LOONGSON_LS1B_REGS_H +#define __LOONGSON_LS1B_REGS_H + + + + +// 时钟相关寄存器地址 +#define LS1B_START_FREQ (0xbfe78030) +#define LS1B_CLK_DIV_PARAM (0xbfe78034) + + +// gpio相关寄存器地址 +#define LS1B_GPIO_CFG0 (0xbfd010c0) +#define LS1B_GPIO_EN0 (0xbfd010d0) +#define LS1B_GPIO_IN0 (0xbfd010e0) +#define LS1B_GPIO_OUT0 (0xbfd010f0) + +#define LS1B_GPIO_CFG1 (0xbfd010c4) +#define LS1B_GPIO_EN1 (0xbfd010d4) +#define LS1B_GPIO_IN1 (0xbfd010e4) +#define LS1B_GPIO_OUT1 (0xbfd010f4) + + + +// 复用相关寄存器 +#define LS1B_CBUS_FIRST0 (0xbfd011c0) +#define LS1B_CBUS_SECOND0 (0xbfd011d0) +#define LS1B_CBUS_THIRD0 (0xbfd011e0) +#define LS1B_CBUS_FOURTH0 (0xbfd011f0) +#define LS1B_CBUS_FIFTH0 (0xbfd01200) + +#define LS1B_CBUS_FIRST1 (0xbfd011c4) +#define LS1B_CBUS_SECOND1 (0xbfd011d4) +#define LS1B_CBUS_THIRD1 (0xbfd011e4) +#define LS1B_CBUS_FOURTH1 (0xbfd011f4) +#define LS1B_CBUS_FIFTH1 (0xbfd01204) + +#define LS1B_CBUS_FIRST2 (0xbfd011c8) +#define LS1B_CBUS_SECOND2 (0xbfd011d8) +#define LS1B_CBUS_THIRD2 (0xbfd011e8) +#define LS1B_CBUS_FOURTH2 (0xbfd011f8) +#define LS1B_CBUS_FIFTH2 (0xbfd01208) + +#define LS1B_CBUS_FIRST3 (0xbfd011cc) +#define LS1B_CBUS_SECOND3 (0xbfd011dc) +#define LS1B_CBUS_THIRD3 (0xbfd011ec) +#define LS1B_CBUS_FOURTH3 (0xbfd011fc) +#define LS1B_CBUS_FIFTH3 (0xbfd0120c) + + +// PWM寄存器偏移 +#define LS1B_PWM_CNTR (0x0) +#define LS1B_PWM_HRC (0x4) +#define LS1B_PWM_LRC (0x8) +#define LS1B_PWM_CTRL (0xC) +// PWM基地址 +#define LS1B_REG_BASE_PWM0 (0xbfe5c000) +#define LS1B_REG_BASE_PWM1 (0xbfe5c010) +#define LS1B_REG_BASE_PWM2 (0xbfe5c020) +#define LS1B_REG_BASE_PWM3 (0xbfe5c030) + +//CAN基地址 +#define LS1B_REG_BASE_CAN0 (0xbfe50000) +#define LS1B_REG_BASE_CAN1 (0xbfe54000) + +// 中断配置寄存器 +#define LS1B_INT0_SR (0xbfd01040) +#define LS1B_INT0_EN (0xbfd01044) +#define LS1B_INT0_SET (0xbfd01048) +#define LS1B_INT0_CLR (0xbfd0104c) +#define LS1B_INT0_POL (0xbfd01050) +#define LS1B_INT0_EDGE (0xbfd01054) + +#define LS1B_INT1_SR (0xbfd01058) +#define LS1B_INT1_EN (0xbfd0105c) +#define LS1B_INT1_SET (0xbfd01060) +#define LS1B_INT1_CLR (0xbfd01064) +#define LS1B_INT1_POL (0xbfd01068) +#define LS1B_INT1_EDGE (0xbfd0106c) + +#define LS1B_INT2_SR (0xbfd01070) +#define LS1B_INT2_EN (0xbfd01074) +#define LS1B_INT2_SET (0xbfd01078) +#define LS1B_INT2_CLR (0xbfd0107c) +#define LS1B_INT2_POL (0xbfd01080) +#define LS1B_INT2_EDGE (0xbfd01084) + +#define LS1B_INT3_SR (0xbfd01088) +#define LS1B_INT3_EN (0xbfd0108c) +#define LS1B_INT3_SET (0xbfd01090) +#define LS1B_INT3_CLR (0xbfd01094) +#define LS1B_INT3_POL (0xbfd01098) +#define LS1B_INT3_EDGE (0xbfd0109c) + +#define LS1B_INT4_SR (0xbfd010a0) +#define LS1B_INT4_EN (0xbfd010a4) +#define LS1B_INT4_SET (0xbfd010a8) +#define LS1B_INT4_CLR (0xbfd010ac) +#define LS1B_INT4_POL (0xbfd010b0) +#define LS1B_INT4_EDGE (0xbfd010b4) + + +// I2C寄存器 +#define LS1B_I2C0_BASE (0xbfe58000) +#define LS1B_I2C1_BASE (0xbfe68000) +#define LS1B_I2C2_BASE (0xbfe70000) + + +// SPI寄存器 +#define LS1B_SPI0_BASE (0xbfe80000) +#define LS1B_SPI1_BASE (0xbfec0000) + + +// 串口寄存器 +#define LS1B_UART00_BASE (0xbfe40000) +#define LS1B_UART01_BASE (0xbfe41000) +#define LS1B_UART1_BASE (0xbfe44000) +#define LS1B_UART2_BASE (0xbfe48000) +#define LS1B_UART3_BASE (0xbfe4c000) +#define LS1B_UART4_BASE (0xbfe6c000) +#define LS1B_UART5_BASE (0xbfe7c000) +#define LS1B_UART6_BASE (0xbfe41000) +#define LS1B_UART7_BASE (0xbfe42000) +#define LS1B_UART8_BASE (0xbfe43000) +#define LS1B_UART9_BASE (0xbfe45000) +#define LS1B_UART10_BASE (0xbfe46000) +#define LS1B_UART11_BASE (0xbfe47000) + +//RTC寄存器 +#define LS1B_RTC_BASE (0xbfe64024) + + +#endif + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_uart.c b/bsp/loongson/ls1bdev/libraries/ls1b_uart.c new file mode 100644 index 0000000000..73d88438f5 --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_uart.c @@ -0,0 +1,251 @@ + /* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ +// 串口相关源码 + +#include +#include +#include "ls1b_public.h" +#include "ls1b_regs.h" +#include "ls1b_pin.h" +#include "ls1b_uart.h" +#include "ls1b_clock.h" +#include "ls1b.h" + + +// 串口线路状态寄存器的位域 +#define LS1B_UART_LSR_TE (1 << 6) +#define LS1B_UART_LSR_TFE (1 << 5) + + +// 打印缓存的大小 +#define LS1B_UART_PRINT_BUF_SIZE (256) + + +// 调试串口信息 +ls1b_uart_info_t debug_uart_info = {0}; + + +/* + * 获取指定串口模块的基地址 + * @UARTx 串口编号 + * @ret 基地址 + */ +void *uart_get_base(ls1b_uart_t UARTx) +{ + void *base = NULL; + + switch (UARTx) + { + case LS1B_UART00: + base = (void *)LS1B_UART00_BASE; + break; + case LS1B_UART01: + base = (void *)LS1B_UART01_BASE; + break; + + case LS1B_UART1: + base = (void *)LS1B_UART1_BASE; + break; + + case LS1B_UART2: + base = (void *)LS1B_UART2_BASE; + break; + + case LS1B_UART3: + base = (void *)LS1B_UART3_BASE; + break; + + case LS1B_UART4: + base = (void *)LS1B_UART4_BASE; + break; + + case LS1B_UART5: + base = (void *)LS1B_UART5_BASE; + break; + + case LS1B_UART6: + base = (void *)LS1B_UART6_BASE; + break; + + case LS1B_UART7: + base = (void *)LS1B_UART7_BASE; + break; + + case LS1B_UART8: + base = (void *)LS1B_UART8_BASE; + break; + + case LS1B_UART9: + base = (void *)LS1B_UART9_BASE; + break; + + case LS1B_UART10: + base = (void *)LS1B_UART10_BASE; + break; + + case LS1B_UART11: + base = (void *)LS1B_UART11_BASE; + break; + + default: + break; + } + + return base; +} + + +/* + * 初始化指定的串口模块 + * @uart_info_p 串口模块信息 + */ +void uart_init(ls1b_uart_info_t *uart_info_p) +{ + void *uart_base = uart_get_base(uart_info_p->UARTx); + unsigned long baudrate_div = 0; + + // 禁止所有中断 + reg_write_8(0, uart_base + LS1B_UART_IER_OFFSET); + + // 接收FIFO的中断申请Trigger为14字节,清空发送和接收FIFO,并复位 + reg_write_8(0xc3, uart_base + LS1B_UART_FCR_OFFSET); + + // 设置波特率 + reg_write_8(0x80, uart_base + LS1B_UART_LCR_OFFSET); + baudrate_div = clk_get_apb_rate() / 16 / uart_info_p->baudrate; + reg_write_8((baudrate_div >> 8) & 0xff, uart_base + LS1B_UART_MSB_OFFSET); + reg_write_8(baudrate_div & 0xff, uart_base + LS1B_UART_LSB_OFFSET); + + // 8个数据位,1个停止位,无校验 + reg_write_8(0x03, uart_base + LS1B_UART_LCR_OFFSET); + + // 使能接收中断 + if (TRUE == uart_info_p->rx_enable) + { + reg_write_8(IER_IRxE|IER_ILE , uart_base + LS1B_UART_IER_OFFSET); + } + + return ; +} + + +/* + * 判断FIFO是否为空 + * @uartx 串口号 + * @ret TRUE or FALSE + */ +BOOL uart_is_transmit_empty(ls1b_uart_t uartx) +{ + void *uart_base = uart_get_base(uartx); + unsigned char status = reg_read_8(uart_base + LS1B_UART_LSR_OFFSET); + + if (status & (LS1B_UART_LSR_TE | LS1B_UART_LSR_TFE)) + { + return TRUE; + } + else + { + return FALSE; + } +} + + +/* + * 发送一个字节 + * @uartx 串口号 + * @ch 待发送的字符串 + */ +void uart_putc(ls1b_uart_t uartx, unsigned char ch) +{ + void *uart_base = uart_get_base(uartx); + + // 等待 + while (FALSE == uart_is_transmit_empty(uartx)) + ; + + // 发送 + reg_write_8(ch, uart_base + LS1B_UART_DAT_OFFSET); + + return ; +} + + +/* + * 打印一个字符串到指定串口 + * @uartx 串口号 + * @str 待打印的字符串 + */ +void uart_print(ls1b_uart_t uartx, const char *str) +{ + while ('\0' != *str) // 判断是否为字符串结束符 + { + uart_putc(uartx, *str); // 发送一个字符 + str++; + } + + return ; +} + + +/* + * 初始化串口2 + */ +void uart2_init(void) +{ + unsigned int tx_gpio = 37; + unsigned int rx_gpio = 36; + + // 设置复用 + pin_set_remap(tx_gpio, PIN_REMAP_SECOND); + pin_set_remap(rx_gpio, PIN_REMAP_SECOND); + + // 初始化相关寄存器 + debug_uart_info.UARTx = LS1B_UART2; + debug_uart_info.baudrate = 115200; + debug_uart_info.rx_enable = FALSE; // 调试串口只需要打印(发送)功能,不需要接收功能 + uart_init(&debug_uart_info); + + return ; +} + + +/* + * 在串口2上打印字符串 + * @str 待打印的字符串 + */ +void uart2_print(const char *str) +{ + uart_print(LS1B_UART2, str); + return ; +} + + +/* + * 在调试串口打印字符串 + * @str 待打印的字符串 + */ +void uart_debug_print(const char *str) +{ + uart_print(debug_uart_info.UARTx, str); + return ; +} + + +/* + * 在调试串口打印一个字符 + * @ch 待打印的字符 + */ +void uart_debug_putc(unsigned char ch) +{ + uart_putc(debug_uart_info.UARTx, ch); + return ; +} + + diff --git a/bsp/loongson/ls1bdev/libraries/ls1b_uart.h b/bsp/loongson/ls1bdev/libraries/ls1b_uart.h new file mode 100644 index 0000000000..88ee2793ad --- /dev/null +++ b/bsp/loongson/ls1bdev/libraries/ls1b_uart.h @@ -0,0 +1,181 @@ + /* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-02-02 michael5hzg@gmail.com adapt to ls1b + */ +// 串口相关头文件 + + +#ifndef __LOONGSON_UART_H +#define __LOONGSON_UART_H + + +#include "ls1b_public.h" + + +// 串口各寄存器相对基地址的偏移 +#define LS1B_UART_DAT_OFFSET (0) +#define LS1B_UART_IER_OFFSET (1) +#define LS1B_UART_IIR_OFFSET (2) +#define LS1B_UART_FCR_OFFSET (2) +#define LS1B_UART_LCR_OFFSET (3) +#define LS1B_UART_MCR_OFFSET (4) +#define LS1B_UART_LSR_OFFSET (5) +#define LS1B_UART_MSR_OFFSET (6) + +#define LS1B_UART_LSB_OFFSET (0) // 分频锁存器1 +#define LS1B_UART_MSB_OFFSET (1) // 分频锁存器2 + +/* interrupt enable register */ +#define IER_IRxE 0x1 /* 接收有效数据中断使能 */ +#define IER_ITxE 0x2 /* 传输保存寄存器为空中断使能 */ +#define IER_ILE 0x4 /* 接收器线路状态中断使能 */ +#define IER_IME 0x8 /* Modem状态中断使能 */ + +/* interrupt identification register */ +#define IIR_IMASK 0xf /* mask */ +#define IIR_RXTOUT 0xc /* receive timeout */ +#define IIR_RLS 0x6 /* receive line status */ +#define IIR_RXRDY 0x4 /* receive ready */ +#define IIR_TXRDY 0x2 /* transmit ready */ +#define IIR_NOPEND 0x1 /* nothing */ +#define IIR_MLSC 0x0 /* modem status */ +#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ + +/* fifo control register */ +#define FIFO_ENABLE 0x01 /* enable fifo */ +#define FIFO_RCV_RST 0x02 /* reset receive fifo */ +#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ +#define FIFO_DMA_MODE 0x08 /* enable dma mode */ +#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ +#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ +#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ +#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ + +// 线路控制寄存器 +/* character format control register */ +#define CFCR_DLAB 0x80 /* divisor latch */ +#define CFCR_SBREAK 0x40 /* send break */ +#define CFCR_PZERO 0x30 /* zero parity */ +#define CFCR_PONE 0x20 /* one parity */ +#define CFCR_PEVEN 0x10 /* even parity */ +#define CFCR_PODD 0x00 /* odd parity */ +#define CFCR_PENAB 0x08 /* parity enable */ +#define CFCR_STOPB 0x04 /* 2 stop bits */ +#define CFCR_8BITS 0x03 /* 8 data bits */ +#define CFCR_7BITS 0x02 /* 7 data bits */ +#define CFCR_6BITS 0x01 /* 6 data bits */ +#define CFCR_5BITS 0x00 /* 5 data bits */ + +/* modem control register */ +#define MCR_LOOPBACK 0x10 /* loopback */ +#define MCR_IENABLE 0x08 /* output 2 = int enable */ +#define MCR_DRS 0x04 /* output 1 = xxx */ +#define MCR_RTS 0x02 /* enable RTS */ +#define MCR_DTR 0x01 /* enable DTR */ + +/* line status register */ +#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ +#define LSR_TSRE 0x40 /* transmitter empty */ +#define LSR_TXRDY 0x20 /* transmitter ready */ +#define LSR_BI 0x10 /* break detected */ +#define LSR_FE 0x08 /* framing error */ +#define LSR_PE 0x04 /* parity error */ +#define LSR_OE 0x02 /* overrun error */ +#define LSR_RXRDY 0x01 /* receiver ready */ +#define LSR_RCV_MASK 0x1f + + +// 串口模块编号 +typedef enum +{ + LS1B_UART00 = 0, // 全功能串口UART0可以分为两个四线串口UART00和UART01 + LS1B_UART01, + LS1B_UART1, + LS1B_UART2, + LS1B_UART3, + LS1B_UART4, + LS1B_UART5, + LS1B_UART6, + LS1B_UART7, + LS1B_UART8, + LS1B_UART9, + LS1B_UART10, + LS1B_UART11 +}ls1b_uart_t; + + +// 串口信息 +typedef struct +{ + ls1b_uart_t UARTx; // 串口模块编号 + unsigned int baudrate; // 波特率 + BOOL rx_enable; // 是否需要使用串口接收数据(使能接收中断),发送默认使能 +}ls1b_uart_info_t; + + + +/* + * 获取指定串口模块的基地址 + * @UARTx 串口编号 + * @ret 基地址 + */ +void *uart_get_base(ls1b_uart_t UARTx); + + +/* + * 初始化指定的串口模块 + * @uart_info_p 串口模块信息 + */ +void uart_init(ls1b_uart_info_t *uart_info_p); + + +/* + * 初始化串口2 + */ +void uart2_init(void); + + +/* + * 在串口2上打印字符串 + * @str 待打印的字符串 + */ +void uart2_print(const char *str); + + +/* + * 在调试串口打印字符串 + * @str 待打印的字符串 + */ +void uart_debug_print(const char *str); + + +/* + * 在调试串口打印一个字符 + * @ch 待打印的字符 + */ +void uart_debug_putc(unsigned char ch); + + +/* + * 发送一个字节 + * @uartx 串口号 + * @ch 待发送的字符串 + */ +void uart_putc(ls1b_uart_t uartx, unsigned char ch); + + +/* + * 打印一个字符串到指定串口 + * @uartx 串口号 + * @str 待打印的字符串 + */ +void uart_print(ls1b_uart_t uartx, const char *str); + + +#endif + diff --git a/bsp/loongson/ls1bdev/ls1b_ram.lds b/bsp/loongson/ls1bdev/ls1b_ram.lds new file mode 100644 index 0000000000..a3419501c0 --- /dev/null +++ b/bsp/loongson/ls1bdev/ls1b_ram.lds @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2010-05-17 swkyer first version + * 2010-09-04 bernard move the beginning entry to 0x80200000 + * 2019-12-04 Jiaxun Yang Adapt new memory layout + */ + +OUTPUT_ARCH(mips) +GROUP(-lgcc -lc) + +ENTRY(_start) +SECTIONS +{ + . = 0x80200000; + .text : + { + start = ABSOLUTE(.); + *(.selfboot); + *(.selfboot_data); + . = ALIGN(4); + __selfboot_end = .; + . = ALIGN(0x1000); + __ebase_entry = .; + KEEP(*(.exc_vectors)) + __ebase_end = .; + *(.start); + *(.text) + *(.text.*) + *(.rodata) + *(.rodata.*) + *(.rodata1) + *(.rodata1.*) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + } + + .eh_frame_hdr : + { + *(.eh_frame_hdr) + *(.eh_frame_entry) + } + .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } + + . = ALIGN(4); + .data : + { + *(.data) + *(.data.*) + + *(.data1) + *(.data1.*) + + . = ALIGN(8); + _gp = ABSOLUTE(.); /* Base of small data */ + + *(.sdata) + *(.sdata.*) + } + _edata = .; + + .stack : + { + . = ALIGN(8); + _system_stack_start = .; + . = . + 0x400; /* 1kb system stack */ + _system_stack = .; + } + + .sbss : + { + __bss_start = .; + *(.sbss) + *(.sbss.*) + *(.dynsbss) + *(.scommon) + } + + .bss : + { + *(.bss) + *(.bss.*) + *(.dynbss) + *(COMMON) + __bss_end = .; + } + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} diff --git a/bsp/loongson/ls1bdev/readme.md b/bsp/loongson/ls1bdev/readme.md new file mode 100644 index 0000000000..b47004ecc8 --- /dev/null +++ b/bsp/loongson/ls1bdev/readme.md @@ -0,0 +1,4 @@ +This bsp is based on LS1B DEMO BOARD V1.1 + +# download script for RT-Thread +ifaddr syn0 192.168.1.100;load tftp://192.168.1.5/rtthread.elf;g \ No newline at end of file diff --git a/bsp/loongson/ls1bdev/rtconfig.h b/bsp/loongson/ls1bdev/rtconfig.h new file mode 100644 index 0000000000..e5238cf1f6 --- /dev/null +++ b/bsp/loongson/ls1bdev/rtconfig.h @@ -0,0 +1,206 @@ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ + +/* RT-Thread Kernel */ + +#define RT_NAME_MAX 8 +#define RT_ALIGN_SIZE 4 +#define RT_THREAD_PRIORITY_32 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 1000 +#define RT_USING_OVERFLOW_CHECK +#define RT_USING_HOOK +#define RT_HOOK_USING_FUNC_PTR +#define RT_USING_IDLE_HOOK +#define RT_IDLE_HOOK_LIST_SIZE 4 +#define IDLE_THREAD_STACK_SIZE 256 +#define RT_USING_TIMER_SOFT +#define RT_TIMER_THREAD_PRIO 4 +#define RT_TIMER_THREAD_STACK_SIZE 512 + +/* kservice optimization */ + +#define RT_DEBUG + +/* Inter-Thread communication */ + +#define RT_USING_SEMAPHORE +#define RT_USING_MUTEX +#define RT_USING_EVENT +#define RT_USING_MAILBOX +#define RT_USING_MESSAGEQUEUE + +/* Memory Management */ + +#define RT_USING_MEMPOOL +#define RT_USING_SMALL_MEM +#define RT_USING_SMALL_MEM_AS_HEAP +#define RT_USING_HEAP + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLE_DEVICE_NAME "uart5" +#define RT_VER_NUM 0x40100 + +/* RT-Thread Components */ + +#define RT_USING_COMPONENTS_INIT +#define RT_USING_USER_MAIN +#define RT_MAIN_THREAD_STACK_SIZE 2048 +#define RT_MAIN_THREAD_PRIORITY 10 + +/* C++ features */ + + +/* Command shell */ + +#define RT_USING_FINSH +#define RT_USING_MSH +#define FINSH_USING_MSH +#define FINSH_THREAD_NAME "tshell" +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 4096 +#define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 +#define FINSH_USING_SYMTAB +#define FINSH_CMD_SIZE 80 +#define MSH_USING_BUILT_IN_COMMANDS +#define FINSH_USING_DESCRIPTION +#define FINSH_ARG_MAX 10 + +/* Device virtual file system */ + +#define RT_USING_DFS +#define DFS_USING_POSIX +#define DFS_USING_WORKDIR +#define DFS_FILESYSTEMS_MAX 4 +#define DFS_FILESYSTEM_TYPES_MAX 4 +#define DFS_FD_MAX 16 +#define RT_USING_DFS_DEVFS + +/* Device Drivers */ + +#define RT_USING_DEVICE_IPC +#define RT_USING_SERIAL +#define RT_USING_SERIAL_V1 +#define RT_SERIAL_USING_DMA +#define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_PIN + +/* Using USB */ + + +/* POSIX layer and C standard library */ + +#define RT_LIBC_DEFAULT_TIMEZONE 8 + +/* POSIX (Portable Operating System Interface) layer */ + + +/* Interprocess Communication (IPC) */ + + +/* Socket is in the 'Network' category */ + +/* Network */ + +/* Socket abstraction layer */ + + +/* Network interface device */ + + +/* light weight TCP/IP stack */ + + +/* AT commands */ + + +/* VBUS(Virtual Software BUS) */ + + +/* Utilities */ + + +/* RT-Thread Utestcases */ + + +/* RT-Thread online packages */ + +/* IoT - internet of things */ + + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + + +/* IoT Cloud */ + + +/* security packages */ + + +/* language packages */ + + +/* multimedia packages */ + +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + + +/* tools packages */ + + +/* system packages */ + +/* enhanced kernel services */ + + +/* POSIX extension functions */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + + +/* peripheral libraries and drivers */ + + +/* AI packages */ + + +/* miscellaneous packages */ + +/* samples: kernel and components samples */ + + +/* entertainment: terminal games and other interesting software packages */ + +#define SOC_LS1B +#define RT_MEM_SIZE 256 +#define RT_OSC_CLK 25000000 +#define RT_USING_UART5 +#define RT_UART_RX_BUFFER_SIZE 64 + +#endif diff --git a/bsp/loongson/ls1bdev/rtconfig.py b/bsp/loongson/ls1bdev/rtconfig.py new file mode 100644 index 0000000000..0d76e27348 --- /dev/null +++ b/bsp/loongson/ls1bdev/rtconfig.py @@ -0,0 +1,55 @@ +import os + +# CPU options +ARCH='mips' +CPU ='gs232' + +# toolchains options +CROSS_TOOL = 'gcc' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = "/opt/mips-2016.05/bin" +# EXEC_PATH = r'D:\mgc\embedded\codebench\bin' +else: + print('================ERROR============================') + print('Not support %s yet!' % CROSS_TOOL) + print('=================================================') + exit(0) + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +PREFIX = 'mips-sde-elf-' +CC = PREFIX + 'gcc' +AS = PREFIX + 'gcc' +AR = PREFIX + 'ar' +LINK = PREFIX + 'gcc' +TARGET_EXT = 'elf' +SIZE = PREFIX + 'size' +OBJDUMP = PREFIX + 'objdump' +OBJCPY = PREFIX + 'objcopy' +READELF = PREFIX + 'readelf' + +DEVICE = ' -mips32 -msoft-float -mfp32' +CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' +AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' +LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds' + +CPATH = '' +LPATH = '' + +if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' +else: + CFLAGS += ' -O2' + +DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' +READELF_ACTION = READELF + ' -a $TARGET > rtt.map\n' +POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' diff --git a/bsp/loongson/ls1cdev/.config b/bsp/loongson/ls1cdev/.config new file mode 100644 index 0000000000..68eb868c54 --- /dev/null +++ b/bsp/loongson/ls1cdev/.config @@ -0,0 +1,769 @@ +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# + +# +# RT-Thread Kernel +# +CONFIG_RT_NAME_MAX=10 +# CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMP is not set +CONFIG_RT_ALIGN_SIZE=8 +# CONFIG_RT_THREAD_PRIORITY_8 is not set +CONFIG_RT_THREAD_PRIORITY_32=y +# CONFIG_RT_THREAD_PRIORITY_256 is not set +CONFIG_RT_THREAD_PRIORITY_MAX=32 +CONFIG_RT_TICK_PER_SECOND=1000 +CONFIG_RT_USING_OVERFLOW_CHECK=y +CONFIG_RT_USING_HOOK=y +CONFIG_RT_HOOK_USING_FUNC_PTR=y +CONFIG_RT_USING_IDLE_HOOK=y +CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 +CONFIG_IDLE_THREAD_STACK_SIZE=8192 +# CONFIG_RT_USING_TIMER_SOFT is not set + +# +# kservice optimization +# +# CONFIG_RT_KSERVICE_USING_STDLIB is not set +# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set +# CONFIG_RT_USING_TINY_FFS is not set +# CONFIG_RT_PRINTF_LONGLONG is not set +CONFIG_RT_DEBUG=y +CONFIG_RT_DEBUG_COLOR=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set + +# +# Inter-Thread communication +# +CONFIG_RT_USING_SEMAPHORE=y +CONFIG_RT_USING_MUTEX=y +CONFIG_RT_USING_EVENT=y +CONFIG_RT_USING_MAILBOX=y +CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_SIGNALS is not set + +# +# Memory Management +# +CONFIG_RT_USING_MEMPOOL=y +CONFIG_RT_USING_SMALL_MEM=y +# CONFIG_RT_USING_SLAB is not set +CONFIG_RT_USING_MEMHEAP=y +CONFIG_RT_MEMHEAP_FAST_MODE=y +# CONFIG_RT_MEMHEAP_BSET_MODE is not set +CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y +# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_SLAB_AS_HEAP is not set +# CONFIG_RT_USING_USERHEAP is not set +# CONFIG_RT_USING_NOHEAP is not set +# CONFIG_RT_USING_MEMTRACE is not set +# CONFIG_RT_USING_HEAP_ISR is not set +CONFIG_RT_USING_HEAP=y + +# +# Kernel Device Object +# +CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set +CONFIG_RT_USING_INTERRUPT_INFO=y +CONFIG_RT_USING_CONSOLE=y +CONFIG_RT_CONSOLEBUF_SIZE=128 +CONFIG_RT_CONSOLE_DEVICE_NAME="uart2" +CONFIG_RT_VER_NUM=0x40100 +# CONFIG_RT_USING_CPU_FFS is not set +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set + +# +# RT-Thread Components +# +CONFIG_RT_USING_COMPONENTS_INIT=y +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=8192 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 +# CONFIG_RT_USING_LEGACY is not set + +# +# C++ features +# +# CONFIG_RT_USING_CPLUSPLUS is not set + +# +# Command shell +# +CONFIG_RT_USING_FINSH=y +CONFIG_RT_USING_MSH=y +CONFIG_FINSH_USING_MSH=y +CONFIG_FINSH_THREAD_NAME="tshell" +CONFIG_FINSH_THREAD_PRIORITY=20 +CONFIG_FINSH_THREAD_STACK_SIZE=8192 +CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 +CONFIG_FINSH_USING_SYMTAB=y +CONFIG_FINSH_CMD_SIZE=80 +CONFIG_MSH_USING_BUILT_IN_COMMANDS=y +CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set +# CONFIG_FINSH_USING_AUTH is not set +CONFIG_FINSH_ARG_MAX=10 + +# +# Device virtual file system +# +CONFIG_RT_USING_DFS=y +CONFIG_DFS_USING_POSIX=y +CONFIG_DFS_USING_WORKDIR=y +CONFIG_DFS_FILESYSTEMS_MAX=2 +CONFIG_DFS_FILESYSTEM_TYPES_MAX=2 +CONFIG_DFS_FD_MAX=4 +# CONFIG_RT_USING_DFS_MNTTABLE is not set +CONFIG_RT_USING_DFS_ELMFAT=y + +# +# elm-chan's FatFs, Generic FAT Filesystem Module +# +CONFIG_RT_DFS_ELM_CODE_PAGE=936 +CONFIG_RT_DFS_ELM_WORD_ACCESS=y +CONFIG_RT_DFS_ELM_USE_LFN_0=y +# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set +# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set +# CONFIG_RT_DFS_ELM_USE_LFN_3 is not set +CONFIG_RT_DFS_ELM_USE_LFN=0 +CONFIG_RT_DFS_ELM_LFN_UNICODE_0=y +# CONFIG_RT_DFS_ELM_LFN_UNICODE_1 is not set +# CONFIG_RT_DFS_ELM_LFN_UNICODE_2 is not set +# CONFIG_RT_DFS_ELM_LFN_UNICODE_3 is not set +CONFIG_RT_DFS_ELM_LFN_UNICODE=0 +CONFIG_RT_DFS_ELM_MAX_LFN=64 +CONFIG_RT_DFS_ELM_DRIVES=2 +CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512 +# CONFIG_RT_DFS_ELM_USE_ERASE is not set +CONFIG_RT_DFS_ELM_REENTRANT=y +CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000 +CONFIG_RT_USING_DFS_DEVFS=y +# CONFIG_RT_USING_DFS_ROMFS is not set +# CONFIG_RT_USING_DFS_RAMFS is not set +# CONFIG_RT_USING_DFS_NFS is not set + +# +# Device Drivers +# +CONFIG_RT_USING_DEVICE_IPC=y +# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set +CONFIG_RT_USING_SERIAL=y +CONFIG_RT_USING_SERIAL_V1=y +# CONFIG_RT_USING_SERIAL_V2 is not set +CONFIG_RT_SERIAL_USING_DMA=y +CONFIG_RT_SERIAL_RB_BUFSZ=64 +CONFIG_RT_USING_CAN=y +# CONFIG_RT_CAN_USING_HDR is not set +# CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set +CONFIG_RT_USING_I2C=y +# CONFIG_RT_I2C_DEBUG is not set +CONFIG_RT_USING_I2C_BITOPS=y +# CONFIG_RT_I2C_BITOPS_DEBUG is not set +# CONFIG_RT_USING_PHY is not set +CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_ADC is not set +# CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_PWM is not set +# CONFIG_RT_USING_MTD_NOR is not set +# CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_RTC is not set +# CONFIG_RT_USING_SDIO is not set +CONFIG_RT_USING_SPI=y +# CONFIG_RT_USING_QSPI is not set +CONFIG_RT_USING_SPI_MSD=y +# CONFIG_RT_USING_SFUD is not set +# CONFIG_RT_USING_ENC28J60 is not set +# CONFIG_RT_USING_SPI_WIFI is not set +# CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_AUDIO is not set +# CONFIG_RT_USING_SENSOR is not set +# CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_HWCRYPTO is not set +# CONFIG_RT_USING_PULSE_ENCODER is not set +# CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_WIFI is not set + +# +# Using USB +# +# CONFIG_RT_USING_USB is not set +# CONFIG_RT_USING_USB_HOST is not set +# CONFIG_RT_USING_USB_DEVICE is not set + +# +# POSIX layer and C standard library +# +CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# POSIX (Portable Operating System Interface) layer +# +# CONFIG_RT_USING_POSIX_FS is not set +CONFIG_RT_USING_POSIX_DELAY=y +CONFIG_RT_USING_POSIX_CLOCK=y +# CONFIG_RT_USING_POSIX_TIMER is not set +CONFIG_RT_USING_PTHREADS=y +CONFIG_PTHREAD_NUM_MAX=8 +# CONFIG_RT_USING_MODULE is not set + +# +# Interprocess Communication (IPC) +# +# CONFIG_RT_USING_POSIX_PIPE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set + +# +# Socket is in the 'Network' category +# + +# +# Network +# + +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + +# +# Network interface device +# +# CONFIG_RT_USING_NETDEV is not set +CONFIG_NETDEV_USING_PING=y + +# +# light weight TCP/IP stack +# +CONFIG_RT_USING_LWIP=y +CONFIG_RT_USING_LWIP141=y +# CONFIG_RT_USING_LWIP203 is not set +# CONFIG_RT_USING_LWIP212 is not set +CONFIG_RT_LWIP_MEM_ALIGNMENT=4 +CONFIG_RT_LWIP_IGMP=y +CONFIG_RT_LWIP_ICMP=y +# CONFIG_RT_LWIP_SNMP is not set +CONFIG_RT_LWIP_DNS=y +CONFIG_RT_LWIP_DHCP=y +CONFIG_IP_SOF_BROADCAST=1 +CONFIG_IP_SOF_BROADCAST_RECV=1 + +# +# Static IPv4 Address +# +CONFIG_RT_LWIP_IPADDR="192.168.1.254" +CONFIG_RT_LWIP_GWADDR="192.168.1.1" +CONFIG_RT_LWIP_MSKADDR="255.255.255.0" +CONFIG_RT_LWIP_UDP=y +CONFIG_RT_LWIP_TCP=y +CONFIG_RT_LWIP_RAW=y +# CONFIG_RT_LWIP_PPP is not set +CONFIG_RT_MEMP_NUM_NETCONN=8 +CONFIG_RT_LWIP_PBUF_NUM=4 +CONFIG_RT_LWIP_RAW_PCB_NUM=4 +CONFIG_RT_LWIP_UDP_PCB_NUM=4 +CONFIG_RT_LWIP_TCP_PCB_NUM=3 +CONFIG_RT_LWIP_TCP_SEG_NUM=40 +CONFIG_RT_LWIP_TCP_SND_BUF=4096 +CONFIG_RT_LWIP_TCP_WND=2048 +CONFIG_RT_LWIP_TCPTHREAD_PRIORITY=12 +CONFIG_RT_LWIP_TCPTHREAD_MBOX_SIZE=8 +CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=8192 +# CONFIG_LWIP_NO_RX_THREAD is not set +# CONFIG_LWIP_NO_TX_THREAD is not set +CONFIG_RT_LWIP_ETHTHREAD_PRIORITY=14 +CONFIG_RT_LWIP_ETHTHREAD_STACKSIZE=8192 +CONFIG_RT_LWIP_ETHTHREAD_MBOX_SIZE=8 +# CONFIG_RT_LWIP_REASSEMBLY_FRAG is not set +CONFIG_LWIP_NETIF_STATUS_CALLBACK=1 +CONFIG_LWIP_NETIF_LINK_CALLBACK=1 +CONFIG_SO_REUSE=1 +CONFIG_LWIP_SO_RCVTIMEO=1 +CONFIG_LWIP_SO_SNDTIMEO=1 +CONFIG_LWIP_SO_RCVBUF=1 +CONFIG_LWIP_SO_LINGER=0 +# CONFIG_RT_LWIP_NETIF_LOOPBACK is not set +CONFIG_LWIP_NETIF_LOOPBACK=0 +# CONFIG_RT_LWIP_STATS is not set +# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set +CONFIG_RT_LWIP_USING_PING=y +# CONFIG_RT_LWIP_DEBUG is not set + +# +# AT commands +# +# CONFIG_RT_USING_AT is not set +# CONFIG_LWIP_USING_DHCPD is not set + +# +# VBUS(Virtual Software BUS) +# +# CONFIG_RT_USING_VBUS is not set + +# +# Utilities +# +# CONFIG_RT_USING_RYM is not set +# CONFIG_RT_USING_ULOG is not set +# CONFIG_RT_USING_UTEST is not set +# CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RT_LINK is not set + +# +# RT-Thread Utestcases +# +# CONFIG_RT_USING_UTESTCASES is not set + +# +# RT-Thread MIPS CPU +# +# CONFIG_RT_USING_FPU is not set + +# +# RT-Thread online packages +# + +# +# IoT - internet of things +# +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set +# CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set +# CONFIG_PKG_USING_WEBCLIENT is not set +# CONFIG_PKG_USING_WEBNET is not set +# CONFIG_PKG_USING_MONGOOSE is not set +# CONFIG_PKG_USING_MYMQTT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set +# CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_LIBMODBUS is not set +# CONFIG_PKG_USING_FREEMODBUS is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_NANOPB is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_RW007 is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set +# CONFIG_PKG_USING_PPP_DEVICE is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_ATSRV_SOCKET is not set +# CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set + +# +# IoT Cloud +# +# CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set +# CONFIG_PKG_USING_JIOT-C-SDK is not set +# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_OTA_DOWNLOADER is not set +# CONFIG_PKG_USING_IPMSG is not set +# CONFIG_PKG_USING_LSSDP is not set +# CONFIG_PKG_USING_AIRKISS_OPEN is not set +# CONFIG_PKG_USING_LIBRWS is not set +# CONFIG_PKG_USING_TCPSERVER is not set +# CONFIG_PKG_USING_PROTOBUF_C is not set +# CONFIG_PKG_USING_DLT645 is not set +# CONFIG_PKG_USING_QXWZ is not set +# CONFIG_PKG_USING_SMTP_CLIENT is not set +# CONFIG_PKG_USING_ABUP_FOTA is not set +# CONFIG_PKG_USING_LIBCURL2RTT is not set +# CONFIG_PKG_USING_CAPNP is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set + +# +# security packages +# +# CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_TINYCRYPT is not set +# CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set + +# +# language packages +# +# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_LUA is not set +# CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set + +# +# multimedia packages +# + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set +# CONFIG_PKG_USING_OPENMV is not set +# CONFIG_PKG_USING_MUPDF is not set +# CONFIG_PKG_USING_STEMWIN is not set +# CONFIG_PKG_USING_WAVPLAYER is not set +# CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set + +# +# tools packages +# +# CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set +# CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set +# CONFIG_PKG_USING_RDB is not set +# CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set +# CONFIG_PKG_USING_ADBD is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set +# CONFIG_PKG_USING_NR_MICRO_SHELL is not set +# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set +# CONFIG_PKG_USING_LUNAR_CALENDAR is not set +# CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set + +# +# system packages +# + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# POSIX extension functions +# +# CONFIG_PKG_USING_POSIX_GETLINE is not set +# CONFIG_PKG_USING_POSIX_WCWIDTH is not set +# CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_RT_USING_ARDUINO is not set +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_CAIRO is not set +# CONFIG_PKG_USING_PIXMAN is not set +# CONFIG_PKG_USING_PARTITION is not set +# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_FLASHDB is not set +# CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set +# CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set +# CONFIG_PKG_USING_THREAD_POOL is not set +# CONFIG_PKG_USING_ROBOTS is not set +# CONFIG_PKG_USING_EV is not set +# CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_USB_STACK is not set + +# +# peripheral libraries and drivers +# +# CONFIG_PKG_USING_SENSORS_DRIVERS is not set +# CONFIG_PKG_USING_REALTEK_AMEBA is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_BUTTON is not set +# CONFIG_PKG_USING_PCF8574 is not set +# CONFIG_PKG_USING_SX12XX is not set +# CONFIG_PKG_USING_SIGNAL_LED is not set +# CONFIG_PKG_USING_LEDBLINK is not set +# CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set +# CONFIG_PKG_USING_WM_LIBRARIES is not set +# CONFIG_PKG_USING_KENDRYTE_SDK is not set +# CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_AGILE_BUTTON is not set +# CONFIG_PKG_USING_AGILE_LED is not set +# CONFIG_PKG_USING_AT24CXX is not set +# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set +# CONFIG_PKG_USING_AD7746 is not set +# CONFIG_PKG_USING_PCA9685 is not set +# CONFIG_PKG_USING_I2C_TOOLS is not set +# CONFIG_PKG_USING_NRF24L01 is not set +# CONFIG_PKG_USING_TOUCH_DRIVERS is not set +# CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_RPLIDAR is not set +# CONFIG_PKG_USING_AS608 is not set +# CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set +# CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set + +# +# miscellaneous packages +# + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set +# CONFIG_PKG_USING_HELLO is not set +# CONFIG_PKG_USING_VI is not set +# CONFIG_PKG_USING_KI is not set +# CONFIG_PKG_USING_ARMv7M_DWT is not set +# CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +CONFIG_SOC_LS1C300=y +CONFIG_RT_LS1C_OPENLOONGSON=y +# CONFIG_RT_LS1C_BAICAIBOARD is not set +# CONFIG_RT_USING_SELF_BOOT is not set +CONFIG_RT_USING_UART2=y +CONFIG_RT_USING_UART1=y +# CONFIG_RT_USING_UART3 is not set +CONFIG_RT_UART_RX_BUFFER_SIZE=64 +CONFIG_RT_USING_GMAC_INT_MODE=y +# CONFIG_RT_USING_SPI0 is not set +# CONFIG_RT_USING_SPI1 is not set +# CONFIG_RT_USING_I2C1 is not set +# CONFIG_RT_USING_I2C2 is not set +# CONFIG_USING_BXCAN0 is not set +# CONFIG_USING_BXCAN1 is not set +CONFIG_NO_TOUCH=y +# CONFIG_TINA_USING_TOUCH is not set diff --git a/bsp/loongson/ls1cdev/Kconfig b/bsp/loongson/ls1cdev/Kconfig new file mode 100644 index 0000000000..3fb6e3bbdf --- /dev/null +++ b/bsp/loongson/ls1cdev/Kconfig @@ -0,0 +1,126 @@ +mainmenu "RT-Thread Configuration" + +config BSP_DIR + string + option env="BSP_ROOT" + default "." + +config RTT_DIR + string + option env="RTT_ROOT" + default "../.." + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +source "$RTT_DIR/Kconfig" +source "$RTT_DIR/libcpu/mips/common/Kconfig" +source "$PKGS_DIR/Kconfig" + +config SOC_LS1C300 + bool + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + default y + +choice + prompt "Board Type" + config RT_LS1C_OPENLOONGSON + bool "OpenLoongson Board" + config RT_LS1C_BAICAIBOARD + bool "Baicai Board" +endchoice + +config RT_USING_SELF_BOOT + bool "Enable RT-Thread run without bootloader" + default n + +if RT_USING_SELF_BOOT + config RT_SELF_BOOT_DEBUG + bool "Debug self boot code" + default n +endif + +if RT_USING_SERIAL +config RT_USING_UART2 + bool "Using RT_USING_UART2" + default y +config RT_USING_UART1 + bool "Using RT_USING_UART1" + default y +config RT_USING_UART3 + bool "Using RT_USING_UART3" + default n + +config RT_UART_RX_BUFFER_SIZE + int "The rx buffer size" + default 64 if RT_USING_SERIAL + default 64 +endif + +config RT_USING_GMAC_INT_MODE + bool "Using RT_USING_GMAC_INT_MODE" + default y + +config RT_USING_SPI0 + bool "Enable SPI0" + select RT_USING_SPI + default y + +config RT_USING_SPI1 + bool "Enable SPI1" + select RT_USING_SPI + default y + +if RT_USING_I2C +config RT_USING_I2C1 + bool "Enable I2C1" + default y + +config RT_USING_I2C2 + bool "Enable I2C2" + default y +endif + + +config USING_BXCAN0 + bool "Enable CAN0" + select RT_USING_CAN + default y + +config USING_BXCAN1 + bool "Enable CAN1" + select RT_USING_CAN + default y + +if RT_USING_CAN +config RT_CAN_USING_HDR + bool "Using RT_CAN_USING_HDR" + select RT_USING_CAN + default y +endif + +choice + prompt "Touch format" + default NO_TOUCH + + config NO_TOUCH + bool "with no touch" + +if RT_USING_RTGUI + config XPT2046_USING_TOUCH + bool "with XPT2046 touch" +endif + + config TINA_USING_TOUCH + bool "with TINA touch" +endchoice + +if RT_USING_RTC +config RT_RTC_NAME + string "RT_RTC_NAME" + default "RTC" +endif + diff --git a/bsp/loongson/ls1cdev/README.md b/bsp/loongson/ls1cdev/README.md new file mode 100644 index 0000000000..1ddea414ca --- /dev/null +++ b/bsp/loongson/ls1cdev/README.md @@ -0,0 +1,97 @@ +龙芯1C板级支持包 + + +--- + +## 1. 简介 + +龙芯1C是基于GS232处理器核的高性价比单芯片系统,可应用于工业控制及物联网等领域。龙芯1C包含浮点处理单元,支持多种类型的内存,支持高容量的MLC NAND Flash。龙芯1C为开发者提供了丰富的外设接口及片上模块,包括Camera控制器、USB OTG及USB HOST接口、AC97/I2S控制器、LCD控制器、SPI接口、UART接口等,提供足够的计算能力和多应用的连接能力。 + +此BSP基于龙芯俱乐部推出的智龙开发板,包括如下硬件特性: + +| 硬件 | 描述 | +| -- | -- | +|芯片型号| 1C300A/1C300B | +|CPU| GS232 | +|主频| 300MHz | +|片外SDRAM| 32MB | +|片外Flash| 128MB NandFlash、512K NorFlash | + +## 2. 编译说明 + +Windows平台推荐使用[env工具][1]。龙芯1C的LS232处理器核是一款MIPS32兼容处理器,由于env工具中并未默认携带MIPS的工具链,需要下载如下工具链: + +* [mips-2015.05-19-mips-sde-elf.exe][2] + +安装好工具链后,假设工具链安装在`D:\mgc\embedded\codebench`目录下。使用env工具,打开console后,进入到命令行环境中,需要手动设置工具链的环境变量`RTT_EXEC_PATH`: + + set RTT_EXEC_PATH=D:\mgc\embedded\codebench\bin + +使用env工具,可以在console下进入到`bsp/ls1cdev`目录中,运行以下命令: + + scons + +来编译这个板级支持包。如果编译正确无误,会产生rtthread.elf、rtthread.bin文件。 + +## 3. 烧写及执行 + +连接好串口,PC上使用终端软件以115200-N-8-1的配置方式连接到设备上。设备使用的串口引脚是:`[GPIO36/GPIO37]` + +目前在智龙上推荐使用PMON通过tftp的方式下载到设备内存中运行。 + +智龙上电按下非enter键,进入PMON命令行 + +``` +PMON> ifaddr syn0 192.168.1.100 +PMON> load tftp://192.168.1.5/rtthread.elf +PMON> g +``` + +### 3.1 运行结果 + +如果编译 & 烧写无误,会在串口上看到RT-Thread的启动logo信息: + +``` + + \ | / +- RT - Thread Operating System + / | \ 3.0.4 build May 10 2018 + 2006 - 2018 Copyright by rt-thread team +eth_inited! +lwIP-1.4.1 initialized! +msh />Link is up in FULL DUPLEX mode +Link is with 100M Speed + +``` + +## 4. 驱动支持情况及计划 + +| 驱动 | 支持情况 | 备注 | +| ------ | ---- | :------: | +| UART | 支持 | 仅注册UART2,其他UART引脚未固定 | +| IIC | 支持 | | +| SPI | 支持 | | +| GPIO | 支持 | | +| ETH | 支持 | RMII | + +### 4.1 IO在板级支持包中的映射情况 + +| IO号 | 板级包中的定义 | +| -- | -- | +| 调试串口 | GPIO36/GPIO37 | + +## 5. 联系人信息 + +维护人: + +- [zhuangwei123](https://github.com/zhuangwei123) + +## 6. 参考 + +* 1C芯片[用户手册][3] +* 1C芯片[数据手册][4] + + [1]: https://www.rt-thread.org/page/download.html + [2]: https://sourcery.mentor.com/GNUToolchain/package13851/public/mips-sde-elf/mips-2015.05-19-mips-sde-elf.exe + [3]: http://www.loongson.cn/uploadfile/cpu/1C/Loongson_1C300_user.pdf + [4]: http://www.loongson.cn/uploadfile/cpu/1C/Loongson_1C300_data.pdf diff --git a/bsp/loongson/ls1cdev/SConscript b/bsp/loongson/ls1cdev/SConscript new file mode 100644 index 0000000000..0992612410 --- /dev/null +++ b/bsp/loongson/ls1cdev/SConscript @@ -0,0 +1,12 @@ +from building import * + +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/loongson/ls1cdev/SConstruct b/bsp/loongson/ls1cdev/SConstruct new file mode 100644 index 0000000000..0efa3f8a04 --- /dev/null +++ b/bsp/loongson/ls1cdev/SConstruct @@ -0,0 +1,47 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) +env['ASCOM'] = env['ASPPCOM'] + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +if GetDepend('RT_USING_SELF_BOOT'): + rtconfig.LFLAGS += " -Ttext 0x80000000" +else: + rtconfig.LFLAGS += " -Ttext 0x80200000" +env.Replace(LINKFLAGS = rtconfig.LFLAGS) + +if GetDepend('RT_USING_FPU'): + env['CFLAGS'] = env['CFLAGS'].replace('-msoft-float', '-mhard-float') + env['ASFLAGS'] = env['ASFLAGS'].replace('-msoft-float', '-mhard-float') + env['CXXFLAGS'] = env['CXXFLAGS'].replace('-msoft-float', '-mhard-float') + env['LINKFLAGS'] = env['LINKFLAGS'].replace('-msoft-float', '-mhard-float') + +if GetDepend('RT_USING_RTGUI'): + objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/loongson/ls1cdev/applications/SConscript b/bsp/loongson/ls1cdev/applications/SConscript new file mode 100644 index 0000000000..4ccb177207 --- /dev/null +++ b/bsp/loongson/ls1cdev/applications/SConscript @@ -0,0 +1,9 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls1cdev/applications/main.c b/bsp/loongson/ls1cdev/applications/main.c new file mode 100644 index 0000000000..fac004d832 --- /dev/null +++ b/bsp/loongson/ls1cdev/applications/main.c @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-10 zhuangwei first version + */ + +#include + +int main(int argc, char** argv) +{ + + return 0; +} diff --git a/bsp/loongson/ls1cdev/drivers/SConscript b/bsp/loongson/ls1cdev/drivers/SConscript new file mode 100644 index 0000000000..33310b6d7e --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/SConscript @@ -0,0 +1,20 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +group = group + objs + +Return('group') diff --git a/bsp/loongson/ls1cdev/drivers/board.c b/bsp/loongson/ls1cdev/drivers/board.c new file mode 100644 index 0000000000..390e9971b2 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/board.c @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2010-06-25 Bernard first version + * 2011-08-08 lgnq modified for Loongson LS1B + * 2015-07-06 chinesebear modified for Loongson LS1C + * 2019-12-04 Jiaxun Yang Adapt new generic MIPS code + */ + +#include +#include +#include + +#include "board.h" +#include "drv_uart.h" +#include "ls1c.h" + +extern unsigned char __bss_end; + +#define RT_HW_HEAP_END (0x80000000 + MEM_SIZE) + + +/** + * This function will initial sam7s64 board. + */ +void rt_hw_board_init(void) +{ + /* init hardware interrupt */ + rt_hw_exception_init(); + + /* init hardware interrupt */ + rt_hw_interrupt_init(); + +#ifdef RT_USING_HEAP + rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END); +#endif + +#ifdef RT_USING_SERIAL + /* init hardware UART device */ + rt_hw_uart_init(); +#endif + +#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) + /* set console device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + /* init operating system timer */ + rt_hw_timer_init(); + +#ifdef RT_USING_FPU + /* init hardware fpu */ + rt_hw_fpu_init(); +#endif + +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif + + rt_kprintf("current sr: 0x%08x\n", read_c0_status()); +} + +/*@}*/ diff --git a/bsp/loongson/ls1cdev/drivers/board.h b/bsp/loongson/ls1cdev/drivers/board.h new file mode 100644 index 0000000000..089384e348 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/board.h @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2010-06-25 Bernard first version + * 2011-08-08 lgnq modified for Loongson LS1B + * 2015-07-06 chinesebear modified for Loongson LS1C + * 2019-12-04 Jiaxun Yang Add board config defines + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ +#include + +#ifndef __ASSEMBLY__ +void rt_hw_board_init(void); +#endif + +/* +* SDRAM config +* +* Take IS42S16400 SDRAM chip as a example +* The specfication is +* Size 8MB +* WIDTH: 16 bits +* COL WIDTH: 8 bits, so we should take the 8 power of 2, it's 256 +* ROW WIDTH: 12 bits, so we take the 12 power of 2, it's 4K +* +* Please reference macro SD_PARA0 and SDRAM registers intruduction +* in user's manual to edit the SDRAM config. +*/ + +#if defined(RT_LS1C_BAICAIBOARD) +/* 8MByte IS42S16400 appeared in bacai_board V1.x V2.x */ +#define MEM_SIZE (0x800000) +#define SDRAM_WIDTH (WIDTH_16) +#define SDRAM_COL (COL_256) +#define SDRAM_ROW (ROW_4K) +#elif defined(RT_LS1C_OPENLOONGSON) +/* 32MByte appeared in SmartLoong board */ +#define MEM_SIZE (0x2000000) +#define SDRAM_WIDTH (WIDTH_16) +#define SDRAM_COL (COL_512) +#define SDRAM_ROW (ROW_8K) +#else +#error Unknown Board +#endif + +/* Early Debug config */ +#define EARLY_DEBUG /* UART2 serial print debug in early stage */ +#define EARLY_DEBUG_BAUD (115200) + +/* Clock config */ +#define CPU_HZ (252 * 1000000) +#define PLL_MULT (0x54) /* When external clock is 24Mhz PLL=504Mhz */ +#define SDRAM_DIV (0) /* SDRAM is CPU divided by 2*/ +#define CPU_DIV (2) /* CPU clock is PLL divided by 2 */ + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/display_controller.c b/bsp/loongson/ls1cdev/drivers/display_controller.c new file mode 100644 index 0000000000..2a0bfcc619 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/display_controller.c @@ -0,0 +1,268 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-08-09 lgnq first version for LS1B DC + * 2015-07-06 chinesebear modified for loongson 1c + * 2018-01-06 sundm75 modified for smartloong + */ + #include + +#include "display_controller.h" +#include "../../libraries/ls1c_pwm.h" +#include "../../libraries/ls1c_public.h" +#include "../../libraries/ls1c_gpio.h" +#include "../../libraries/ls1c_pin.h" + +#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) +struct vga_struct vga_mode[] = +{ + {/*"480x272_60.00"*/ 111000, 480, 482, 523, 525, 272, 274, 284, 286, }, + {/*"640x480_70.00"*/ 28560, 640, 664, 728, 816, 480, 481, 484, 500, }, + {/*"640x640_60.00"*/ 33100, 640, 672, 736, 832, 640, 641, 644, 663, }, + {/*"640x768_60.00"*/ 39690, 640, 672, 736, 832, 768, 769, 772, 795, }, + {/*"640x800_60.00"*/ 42130, 640, 680, 744, 848, 800, 801, 804, 828, }, + {/*"800x480_70.00"*/ 35840, 800, 832, 912, 1024, 480, 481, 484, 500, }, + {/*"800x600_60.00"*/ 38220, 800, 832, 912, 1024, 600, 601, 604, 622, }, + {/*"800x640_60.00"*/ 40730, 800, 832, 912, 1024, 640, 641, 644, 663, }, + {/*"832x600_60.00"*/ 40010, 832, 864, 952, 1072, 600, 601, 604, 622, }, + {/*"832x608_60.00"*/ 40520, 832, 864, 952, 1072, 608, 609, 612, 630, }, + {/*"1024x480_60.00"*/ 38170, 1024, 1048, 1152, 1280, 480, 481, 484, 497, }, + {/*"1024x600_60.00"*/ 48960, 1024, 1064, 1168, 1312, 600, 601, 604, 622, }, + {/*"1024x640_60.00"*/ 52830, 1024, 1072, 1176, 1328, 640, 641, 644, 663, }, + {/*"1024x768_60.00"*/ 64110, 1024, 1080, 1184, 1344, 768, 769, 772, 795, }, + {/*"1152x764_60.00"*/ 71380, 1152, 1208, 1328, 1504, 764, 765, 768, 791, }, + {/*"1280x800_60.00"*/ 83460, 1280, 1344, 1480, 1680, 800, 801, 804, 828, }, + {/*"1280x1024_55.00"*/ 98600, 1280, 1352, 1488, 1696, 1024, 1025, 1028, 1057, }, + {/*"1440x800_60.00"*/ 93800, 1440, 1512, 1664, 1888, 800, 801, 804, 828, }, + {/*"1440x900_67.00"*/ 120280, 1440, 1528, 1680, 1920, 900, 901, 904, 935, }, +}; + +static volatile int fb_index = 0; + +ALIGN(16) +volatile rt_uint16_t _rt_framebuffer[FB_YSIZE][FB_XSIZE]; +volatile rt_uint16_t _rt_framebuffer0[FB_YSIZE][FB_XSIZE]; +volatile rt_uint16_t _rt_framebuffer1[FB_YSIZE][FB_XSIZE]; +static struct rt_device_graphic_info _dc_info; + +static void pwminit(void) +{ + pwm_info_t pwm_info; + pwm_info.gpio = LS1C_PWM0_GPIO06; // pwm引脚位gpio06 + pwm_info.mode = PWM_MODE_NORMAL; // 正常模式--连续输出pwm波形 + pwm_info.duty = 0.85; // pwm占空比 85% + pwm_info.period_ns = 5*1000*1000; // pwm周期5ms + + /*pwm初始化,初始化后立即产生pwm波形*/ + pwm_init(&pwm_info); + + /* 使能pwm */ + pwm_enable(&pwm_info); +} +int caclulate_freq(rt_uint32_t XIN, rt_uint32_t PCLK) +{ + rt_uint32_t divider_int; + rt_uint32_t needed_pixclk; + rt_uint32_t pll_clk, pix_div; + rt_uint32_t regval; + + + pll_clk = PLL_FREQ; // 读CPU的 PLL及SDRAM 分频系数 + pll_clk =( pll_clk>>8 )& 0xff; + pll_clk = XIN * pll_clk / 4 ; + pix_div = PLL_DIV_PARAM;//读CPU的 CPU/CAMERA/DC 分频系数 + pix_div = (pix_div>>24)&0xff; + rt_kprintf("old pll_clk=%d, pix_div=%d\n", pll_clk, pix_div); + + divider_int = pll_clk/(1000000) *PCLK/1000; + if(divider_int%1000>=500) + divider_int = divider_int/1000+1; + else + divider_int = divider_int/1000; + rt_kprintf("divider_int = %d\n", divider_int); + + /* check whether divisor is too small. */ + if (divider_int < 1) { + rt_kprintf("Warning: clock source is too slow.Try smaller resolution\n"); + divider_int = 1; + } + else if(divider_int > 100) { + rt_kprintf("Warning: clock source is too fast.Try smaller resolution\n"); + divider_int = 100; + } + /* 配置分频寄存器 */ + { + rt_uint32_t regval = 0; + regval = PLL_DIV_PARAM; + /*首先需要把分频使能位清零 */ + regval &= ~0x80000030; //PIX_DIV_VALID PIX_SEL 置0 + regval &= ~(0x3f<<24); //PIX_DIV 清零 + regval |= divider_int << 24; + PLL_DIV_PARAM = regval; + regval |= 0x80000030; //PIX_DIV_VALID PIX_SEL 置1 + PLL_DIV_PARAM = regval; + } + rt_kprintf("new PLL_FREQ=0x%x, PLL_DIV_PARAM=0x%x\n", PLL_FREQ, PLL_DIV_PARAM); + rt_thread_delay(10); + return 0; +} + +static rt_err_t rt_dc_init(rt_device_t dev) +{ + int i, out, mode=-1; + int val; + + rt_kprintf("PWM initied\n"); + /* Set the back light PWM. */ + pwminit(); + + for (i=0; itype = RT_Device_Class_Graphic; + dc->init = rt_dc_init; + dc->open = RT_NULL; + dc->close = RT_NULL; + dc->control = rt_dc_control; + dc->user_data = (void*)&_dc_info; + + /* register Display Controller device to RT-Thread */ + rt_device_register(dc, "dc", RT_DEVICE_FLAG_RDWR); + + rt_device_init(dc); +} + +#include +#include "display_controller.h" + +/* initialize for gui driver */ +int rtgui_lcd_init(void) +{ + rt_device_t dc; + rt_kprintf("DC initied\n"); + + pin_set_purpose(76, PIN_PURPOSE_OTHER); + pin_set_remap(76, PIN_REMAP_DEFAULT); + + /* init Display Controller */ + rt_hw_dc_init(); + + /* find Display Controller device */ + dc = rt_device_find("dc"); + + /* set Display Controller device as rtgui graphic driver */ + rtgui_graphic_set_device(dc); + + return 0; +} + +INIT_DEVICE_EXPORT(rtgui_lcd_init); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/display_controller.h b/bsp/loongson/ls1cdev/drivers/display_controller.h new file mode 100644 index 0000000000..39f6ae8d52 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/display_controller.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-08-08 lgnq first version for LS1B + * 2015-07-06 chinesebear modified for loongson 1c + * 2018-01-06 sundm75 modified for smartloong +*/ + +#ifndef __DISPLAY_CONTROLLER_H__ +#define __DISPLAY_CONTROLLER_H__ + +#include +#include "ls1c.h" + +#define DC_BASE 0xBC301240 //Display Controller + +/* Frame Buffer registers */ +#define DC_FB_CONFIG __REG32(DC_BASE + 0x000) +#define DC_FB_BUFFER_ADDR0 __REG32(DC_BASE + 0x020) +#define DC_FB_BUFFER_STRIDE __REG32(DC_BASE + 0x040) +#define DC_FB_BUFFER_ORIGIN __REG32(DC_BASE + 0x060) +#define DC_DITHER_CONFIG __REG32(DC_BASE + 0x120) +#define DC_DITHER_TABLE_LOW __REG32(DC_BASE + 0x140) +#define DC_DITHER_TABLE_HIGH __REG32(DC_BASE + 0x160) +#define DC_PANEL_CONFIG __REG32(DC_BASE + 0x180) +#define DC_PANEL_TIMING __REG32(DC_BASE + 0x1A0) +#define DC_HDISPLAY __REG32(DC_BASE + 0x1C0) +#define DC_HSYNC __REG32(DC_BASE + 0x1E0) +#define DC_VDISPLAY __REG32(DC_BASE + 0x240) +#define DC_VSYNC __REG32(DC_BASE + 0x260) +#define DC_FB_BUFFER_ADDR1 __REG32(DC_BASE + 0x340) + +/* Display Controller driver for 1024x768 16bit */ +#define FB_XSIZE 480 +#define FB_YSIZE 272 +#define CONFIG_VIDEO_16BPP + +#define OSC 24000000 /* Hz */ + +#define K1BASE 0xA0000000 +#define KSEG1(addr) ((void *)(K1BASE | (rt_uint32_t)(addr))) +#define HW_FB_ADDR KSEG1(_rt_framebuffer) + +struct vga_struct +{ + long pclk; + int hr,hss,hse,hfl; + int vr,vss,vse,vfl; +}; + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_can.c b/bsp/loongson/ls1cdev/drivers/drv_can.c new file mode 100644 index 0000000000..66388b4ea8 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_can.c @@ -0,0 +1,527 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-01-06 sundm75 first version + */ + +#include +#include +#include +#include + +#include + +#include "ls1c.h" +#include "../libraries/ls1c_public.h" +#include "../libraries/ls1c_regs.h" +#include "../libraries/ls1c_clock.h" +#include "../libraries/ls1c_can.h" +#include "../libraries/ls1c_pin.h" + + +#ifdef RT_USING_CAN + +CanRxMsg RxMessage; + +struct ls1c_bxcan +{ + CAN_TypeDef *reg; + void * irq; +}; + +static rt_err_t bxmodifyfilter(struct ls1c_bxcan *pbxcan, struct rt_can_filter_item *pitem, rt_uint32_t actived) +{ + rt_int32_t fcase; + rt_err_t res; + rt_int32_t hdr, fbase, foff; + CAN_TypeDef* CANx; + CANx = pbxcan->reg; + + /*pitem->mode 1-掩码模式; 0- 滤波器模式 SJA1000中使用以下方式*/ + /*SJA1000中AFM 1-单滤波器模式; 0- 双滤波器模式 */ + + fcase = pitem->mode;/*1-单滤波器模式; 0- 双滤波器模式*/ + { + if (!actived) + { + return RT_EOK; + } + else if (pitem->hdr == -1) + { + res = -1; + if (res != RT_EOK) + { + return res; + } + } + else if (pitem->hdr >= 0) + { + rt_enter_critical(); + res = RT_EOK; + if (res != RT_EOK) + { + return res; + } + hdr = pitem->hdr; + rt_exit_critical(); + } + } + + CAN_FilterInitTypeDef CAN_FilterInitStruct; + unsigned char ide, rtr, id , idmask, mode; + ide = (unsigned char) pitem->ide; + rtr = (unsigned char) pitem->rtr; + id = pitem->id; + idmask = pitem->mask; + mode = (unsigned char) pitem->mode; + CAN_FilterInitStruct.IDE = ide; + CAN_FilterInitStruct.RTR = rtr; + CAN_FilterInitStruct.ID = id; + CAN_FilterInitStruct.IDMASK = idmask; + CAN_FilterInitStruct.MODE = mode; + CAN_FilterInit(CANx, &CAN_FilterInitStruct); + + return RT_EOK; +} + +static rt_err_t setfilter(struct ls1c_bxcan *pbxcan, struct rt_can_filter_config *pconfig) +{ + struct rt_can_filter_item *pitem = pconfig->items; + rt_uint32_t count = pconfig->count; + rt_err_t res; + while (count) + { + res = bxmodifyfilter(pbxcan, pitem, pconfig->actived); + if (res != RT_EOK) + { + return res; + } + pitem++; + count--; + } + return RT_EOK; +} + +static void bxcan0_filter_init(struct rt_can_device *can) +{ + struct ls1c_bxcan *pbxcan; + pbxcan = (struct ls1c_bxcan *) can->parent.user_data; + +} + +static void bxcan1_filter_init(struct rt_can_device *can) +{ + struct ls1c_bxcan *pbxcan; + pbxcan = (struct ls1c_bxcan *) can->parent.user_data; + +} + +static void bxcan_init(CAN_TypeDef *pcan, rt_uint32_t baud, rt_uint32_t mode) +{ + CAN_InitTypeDef CAN_InitStructure; + + Ls1c_CanBPS_t bps ; + + switch(baud) + { + case CAN1MBaud: + bps = LS1C_CAN1MBaud; + break; + case CAN800kBaud: + bps = LS1C_CAN800kBaud; + break; + case CAN500kBaud: + bps = LS1C_CAN500kBaud; + break; + case CAN250kBaud: + bps = LS1C_CAN250kBaud; + break; + case CAN125kBaud: + bps = LS1C_CAN125kBaud; + break; + case CAN50kBaud: + bps = LS1C_CAN40kBaud; + break; + default: + bps = LS1C_CAN250kBaud; + break; + } + + switch (mode) + { + case RT_CAN_MODE_NORMAL: + CAN_InitStructure.CAN_Mode = 0x00; + break; + case RT_CAN_MODE_LISEN: + CAN_InitStructure.CAN_Mode = CAN_Mode_LOM; + break; + case RT_CAN_MODE_LOOPBACK: + CAN_InitStructure.CAN_Mode = CAN_Mode_STM; + + break; + case RT_CAN_MODE_LOOPBACKANLISEN: + CAN_InitStructure.CAN_Mode = CAN_Mode_STM|CAN_Mode_LOM; + break; + } + CAN_InitStructure.CAN_SJW = CAN_SJW_1tq; + + switch (bps) + { + case LS1C_CAN1MBaud: + CAN_InitStructure.CAN_Prescaler = 9; + CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN800kBaud: + CAN_InitStructure.CAN_Prescaler = 8; + CAN_InitStructure.CAN_BS1 = CAN_BS1_7tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN500kBaud: + CAN_InitStructure.CAN_Prescaler = 9; + CAN_InitStructure.CAN_BS1 = CAN_BS1_11tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN250kBaud: + CAN_InitStructure.CAN_Prescaler = 36; + CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN125kBaud: + CAN_InitStructure.CAN_Prescaler = 36; + CAN_InitStructure.CAN_BS1 = CAN_BS1_11tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN100kBaud: + CAN_InitStructure.CAN_Prescaler = 63; + CAN_InitStructure.CAN_BS1 = CAN_BS1_7tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN50kBaud: + CAN_InitStructure.CAN_Prescaler = 63; + CAN_InitStructure.CAN_BS1 = CAN_BS1_16tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_3tq; + break; + default: //250K + CAN_InitStructure.CAN_Prescaler = 36; + CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq; + CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; + break; + } + + CAN_Init(pcan, &CAN_InitStructure); +} + +#ifdef USING_BXCAN0 +static void bxcan0_hw_init(void) +{ + pin_set_purpose(54, PIN_PURPOSE_OTHER); + pin_set_purpose(55, PIN_PURPOSE_OTHER); + pin_set_remap(54, PIN_REMAP_THIRD); + pin_set_remap(55, PIN_REMAP_THIRD); +} +#endif + +#ifdef USING_BXCAN1 +static void bxcan1_hw_init(void) +{ + pin_set_purpose(56, PIN_PURPOSE_OTHER); + pin_set_purpose(57, PIN_PURPOSE_OTHER); + pin_set_remap(56, PIN_REMAP_THIRD); + pin_set_remap(57, PIN_REMAP_THIRD); +} +#endif + +static rt_err_t configure(struct rt_can_device *can, struct can_configure *cfg) +{ + CAN_TypeDef *pbxcan; + + pbxcan = ((struct ls1c_bxcan *) can->parent.user_data)->reg; + if (pbxcan == CAN0) + { +#ifdef USING_BXCAN0 + bxcan0_hw_init(); + bxcan_init(pbxcan, cfg->baud_rate, cfg->mode); +#endif + } + else if (pbxcan == CAN1) + { +#ifdef USING_BXCAN1 + bxcan1_hw_init(); + bxcan_init(pbxcan, cfg->baud_rate, cfg->mode); +#endif + } + return RT_EOK; +} + +static rt_err_t control(struct rt_can_device *can, int cmd, void *arg) +{ + struct ls1c_bxcan *pbxcan; + rt_uint32_t argval; + + pbxcan = (struct ls1c_bxcan *) can->parent.user_data; + switch (cmd) + { + case RT_CAN_CMD_SET_FILTER: + return setfilter(pbxcan, (struct rt_can_filter_config *) arg); + break; + case RT_CAN_CMD_SET_MODE: + argval = (rt_uint32_t) arg; + if (argval != RT_CAN_MODE_NORMAL || + argval != RT_CAN_MODE_LISEN || + argval != RT_CAN_MODE_LOOPBACK || + argval != RT_CAN_MODE_LOOPBACKANLISEN) + { + return RT_ERROR; + } + if (argval != can->config.mode) + { + can->config.mode = argval; + return CAN_SetMode(pbxcan->reg, argval); + } + break; + case RT_CAN_CMD_SET_BAUD: + argval = (rt_uint32_t) arg; + if (argval != CAN1MBaud && + argval != CAN800kBaud && + argval != CAN500kBaud && + argval != CAN250kBaud && + argval != CAN125kBaud && + argval != CAN100kBaud && + argval != CAN50kBaud ) + { + return RT_ERROR; + } + if (argval != can->config.baud_rate) + { + can->config.baud_rate = argval; + Ls1c_CanBPS_t bps; + switch(argval) + { + case CAN1MBaud: + bps = LS1C_CAN1MBaud; + break; + case CAN800kBaud: + bps = LS1C_CAN800kBaud; + break; + case CAN500kBaud: + bps = LS1C_CAN500kBaud; + break; + case CAN250kBaud: + bps = LS1C_CAN250kBaud; + break; + case CAN125kBaud: + bps = LS1C_CAN125kBaud; + break; + case CAN50kBaud: + bps = LS1C_CAN40kBaud; + break; + default: + bps = LS1C_CAN250kBaud; + break; + } + return CAN_SetBps( pbxcan->reg, bps); + } + break; + case RT_CAN_CMD_GET_STATUS: + { + rt_uint32_t errtype; + + errtype = pbxcan->reg->RXERR; + can->status.rcverrcnt = errtype ; + errtype = pbxcan->reg->TXERR; + can->status.snderrcnt = errtype ; + errtype = pbxcan->reg->ECC; + can->status.errcode = errtype ; + if (arg != &can->status) + { + rt_memcpy(arg, &can->status, sizeof(can->status)); + } + } + break; + } + + return RT_EOK; +} + +static int sendmsg(struct rt_can_device *can, const void *buf, rt_uint32_t boxno) +{ + CAN_TypeDef *pbxcan; + CanTxMsg TxMessage; + struct rt_can_msg *pmsg = (struct rt_can_msg *) buf; + int i; + + pbxcan = ((struct ls1c_bxcan *) can->parent.user_data)->reg; + + TxMessage.StdId = pmsg->id; + TxMessage.ExtId = pmsg->id; + TxMessage.RTR = pmsg->rtr; + TxMessage.IDE = pmsg->ide; + TxMessage.DLC = pmsg->len; + for( i=0; idata[i]; + } + CAN_Transmit(pbxcan, &TxMessage); + + return RT_EOK; +} + +static int recvmsg(struct rt_can_device *can, void *buf, rt_uint32_t boxno) +{ + CAN_TypeDef *pbxcan; + + struct rt_can_msg *pmsg = (struct rt_can_msg *) buf; + int i; + + pbxcan = ((struct ls1c_bxcan *) can->parent.user_data)->reg; + + pmsg->ide = (rt_uint32_t) RxMessage.IDE; + if(RxMessage.IDE == 1) + pmsg->id = RxMessage.ExtId; + else + pmsg->id = RxMessage.StdId; + pmsg->len = RxMessage.DLC; + pmsg->rtr = RxMessage.RTR; + pmsg->hdr = 0; + for(i= 0;i< RxMessage.DLC; i++) + { + pmsg->data[i] = RxMessage.Data[i]; + } + return RT_EOK; +} + +static const struct rt_can_ops canops = +{ + configure, + control, + sendmsg, + recvmsg, +}; + +#ifdef USING_BXCAN0 +struct rt_can_device bxcan0; +void ls1c_can0_irqhandler(int irq, void *param) +{ + CAN_TypeDef* CANx; + unsigned char status; + CANx = CAN0; + /*读寄存器清除中断*/ + status = CANx->IR; + + /*接收中断*/ + if (( status & CAN_IR_RI) == CAN_IR_RI) + { + /*清除RI 中断*/ + CAN_Receive(CANx, &RxMessage); + CANx->CMR |= CAN_CMR_RRB; + CANx->CMR |= CAN_CMR_CDO; + rt_hw_can_isr(&bxcan0, RT_CAN_EVENT_RX_IND); + rt_kprintf("\r\nCan0 int RX happened!\r\n"); + } + /*发送中断*/ + else if (( status & CAN_IR_TI) == CAN_IR_TI) + { + rt_hw_can_isr(&bxcan0, RT_CAN_EVENT_TX_DONE | 0 << 8); + rt_kprintf("\r\nCan0 int TX happened!\r\n"); + } + /*数据溢出中断*/ + else if (( status & CAN_IR_DOI) == CAN_IR_DOI) + { + rt_hw_can_isr(&bxcan0, RT_CAN_EVENT_RXOF_IND); + rt_kprintf("\r\nCan0 int RX OF happened!\r\n"); + } +} +static struct ls1c_bxcan bxcan0data = +{ + .reg = CAN0, + .irq = ls1c_can0_irqhandler, +}; +#endif /*USING_BXCAN0*/ + +#ifdef USING_BXCAN1 +struct rt_can_device bxcan1; +void ls1c_can1_irqhandler(int irq, void *param) +{ + CAN_TypeDef* CANx; + unsigned char status; + CANx = CAN1; + /*读寄存器清除中断*/ + status = CANx->IR; + + /*接收中断*/ + if (( status & CAN_IR_RI) == CAN_IR_RI) + { + /*清除RI 中断*/ + CAN_Receive(CANx, &RxMessage); + CANx->CMR |= CAN_CMR_RRB; + CANx->CMR |= CAN_CMR_CDO; + rt_hw_can_isr(&bxcan1, RT_CAN_EVENT_RX_IND); + rt_kprintf("\r\nCan1 int RX happened!\r\n"); + } + /*发送中断*/ + else if (( status & CAN_IR_TI) == CAN_IR_TI) + { + rt_hw_can_isr(&bxcan1, RT_CAN_EVENT_TX_DONE | 0 << 8); + rt_kprintf("\r\nCan1 int TX happened!\r\n"); + } + /*数据溢出中断*/ + else if (( status & CAN_IR_DOI) == CAN_IR_DOI) + { + rt_hw_can_isr(&bxcan1, RT_CAN_EVENT_RXOF_IND); + rt_kprintf("\r\nCan1 int RX OF happened!\r\n"); + } +} +static struct ls1c_bxcan bxcan1data = +{ + .reg = CAN1, + .irq = ls1c_can1_irqhandler, +}; + +#endif /*USING_BXCAN1*/ + +int ls1c_bxcan_init(void) +{ + +#ifdef USING_BXCAN0 + bxcan0.config.baud_rate = CAN250kBaud; + bxcan0.config.msgboxsz = 1; + bxcan0.config.sndboxnumber = 1; + bxcan0.config.mode = RT_CAN_MODE_NORMAL; + bxcan0.config.privmode = 0; + bxcan0.config.ticks = 50; +#ifdef RT_CAN_USING_HDR + bxcan0.config.maxhdr = 2; +#endif + rt_hw_can_register(&bxcan0, "bxcan0", &canops, &bxcan0data); + rt_kprintf("\r\ncan0 register! \r\n"); + + rt_hw_interrupt_install(LS1C_CAN0_IRQ,( rt_isr_handler_t)bxcan0data.irq , RT_NULL, "can0"); + rt_hw_interrupt_umask(LS1C_CAN0_IRQ); +#endif +#ifdef USING_BXCAN1 + bxcan1.config.baud_rate = CAN250kBaud; + bxcan1.config.msgboxsz = 1; + bxcan1.config.sndboxnumber = 1; + bxcan1.config.mode = RT_CAN_MODE_NORMAL; + bxcan1.config.privmode = 0; + bxcan1.config.ticks = 50; +#ifdef RT_CAN_USING_HDR + bxcan1.config.maxhdr = 2; +#endif + rt_hw_can_register(&bxcan1, "bxcan1", &canops, &bxcan1data); + rt_kprintf("\r\ncan1 register! \r\n"); + + rt_hw_interrupt_install(LS1C_CAN1_IRQ,( rt_isr_handler_t)bxcan1data.irq , RT_NULL, "can1"); + rt_hw_interrupt_umask(LS1C_CAN1_IRQ); +#endif + return RT_EOK; +} + +INIT_BOARD_EXPORT(ls1c_bxcan_init); + +#endif /*RT_USING_CAN*/ diff --git a/bsp/loongson/ls1cdev/drivers/drv_can.h b/bsp/loongson/ls1cdev/drivers/drv_can.h new file mode 100644 index 0000000000..7d5d1604d4 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_can.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-01-06 sundm75 first version + */ + +#ifndef LS1C_DRV_CAN_H +#define LS1C_DRV_CAN_H + +extern int ls1c_bxcan_init(void); + +#endif /*DRV_CAN_H_*/ diff --git a/bsp/loongson/ls1cdev/drivers/drv_gpio.c b/bsp/loongson/ls1cdev/drivers/drv_gpio.c new file mode 100644 index 0000000000..14b44c9b6f --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_gpio.c @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-24 勤为本 first version + * 2018-05-11 zhuangwei add gpio interrupt ops + */ + +#include +#include +#include "ls1c_gpio.h" +#include "ls1c.h" +#include + +#ifdef RT_USING_PIN + +void ls1c_pin_mode(struct rt_device *device, rt_base_t pin, rt_base_t mode) +{ + unsigned int gpio = pin; + + if (PIN_MODE_OUTPUT == mode) + { + gpio_init(gpio, gpio_mode_output); + } + else + { + gpio_init(gpio, gpio_mode_input); + } + + return ; +} + + +void ls1c_pin_write(struct rt_device *device, rt_base_t pin, rt_base_t value) +{ + unsigned int gpio = pin; + + if (PIN_LOW == value) + { + gpio_set(gpio, gpio_level_low); + } + else + { + gpio_set(gpio, gpio_level_high); + } + + return ; +} + + +int ls1c_pin_read(struct rt_device *device, rt_base_t pin) +{ + unsigned int gpio = pin; + int value = PIN_LOW; + + if (0 == gpio_get(gpio)) + { + value = PIN_LOW; + } + else + { + value = PIN_HIGH; + } + + return value; +} + +rt_err_t ls1c_pin_attach_irq(struct rt_device *device, rt_int32_t pin, + rt_uint32_t mode, void (*hdr)(void *args), void *args) +{ + unsigned int gpio = pin; + char irq_name[10]; + rt_uint32_t type; + switch (mode) + { + case PIN_IRQ_MODE_RISING: + type=IRQ_TYPE_EDGE_RISING; + break; + case PIN_IRQ_MODE_FALLING: + type=IRQ_TYPE_EDGE_FALLING; + break; + case PIN_IRQ_MODE_HIGH_LEVEL: + type=IRQ_TYPE_LEVEL_HIGH; + break; + case PIN_IRQ_MODE_LOW_LEVEL: + type=IRQ_TYPE_LEVEL_LOW; + break; + } + gpio_set_irq_type(gpio, type); + + rt_sprintf(irq_name, "PIN_%d", gpio); + rt_hw_interrupt_install(LS1C_GPIO_TO_IRQ(gpio), (rt_isr_handler_t)hdr, args, irq_name); + + return RT_EOK; +} + +rt_err_t ls1c_pin_detach_irq(struct rt_device *device, rt_int32_t pin) +{ + return RT_EOK; +} + +rt_err_t ls1c_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t enabled) +{ + unsigned int gpio = pin; + + if (enabled) + rt_hw_interrupt_umask(LS1C_GPIO_TO_IRQ(gpio)); + else + rt_hw_interrupt_mask(LS1C_GPIO_TO_IRQ(gpio)); + return RT_EOK; +} + + +const static struct rt_pin_ops _ls1c_pin_ops = +{ + ls1c_pin_mode, + ls1c_pin_write, + ls1c_pin_read, + + ls1c_pin_attach_irq, + ls1c_pin_detach_irq, + ls1c_pin_irq_enable, + RT_NULL, +}; + + +int hw_pin_init(void) +{ + int ret = RT_EOK; + + ret = rt_device_pin_register("pin", &_ls1c_pin_ops, RT_NULL); + + return ret; +} +INIT_BOARD_EXPORT(hw_pin_init); + +#endif /*RT_USING_PIN */ + + diff --git a/bsp/loongson/ls1cdev/drivers/drv_gpio.h b/bsp/loongson/ls1cdev/drivers/drv_gpio.h new file mode 100644 index 0000000000..33fc0f18ed --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_gpio.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-24 勤为本 first version + * 2018-05-11 zhuangwei add gpio interrupt ops + */ + +#ifndef __DRV_GPIO_H__ +#define __DRV_GPIO_H__ + + +int hw_pin_init(void); + + +#endif + diff --git a/bsp/loongson/ls1cdev/drivers/drv_i2c.c b/bsp/loongson/ls1cdev/drivers/drv_i2c.c new file mode 100644 index 0000000000..374b625c70 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_i2c.c @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-14 勤为本 first version + */ + +#include +#include +#include +#include "drv_i2c.h" +#include "../libraries/ls1c_gpio.h" +#include "../libraries/ls1c_delay.h" + + +#define LS1C_I2C_SCL (51) // gpio57 +#define LS1C_I2C_SDA (50) // gpio56 + +#define LS1C_SET_GPIO_MODE + +static void ls1c_i2c_gpio_init(void) +{ + gpio_init(LS1C_I2C_SCL, gpio_mode_output); + gpio_set(LS1C_I2C_SCL, gpio_level_high); + + gpio_init(LS1C_I2C_SDA, gpio_mode_output); + gpio_set(LS1C_I2C_SDA, gpio_level_high); + + return ; +} + + +static void ls1c_udelay(rt_uint32_t us) +{ + delay_us((int)us); +} + + +static void ls1c_set_sda(void *data, rt_int32_t state) +{ +#ifdef LS1C_SET_GPIO_MODE + gpio_init(LS1C_I2C_SDA, gpio_mode_output); + ls1c_udelay(5); +#endif + gpio_set(LS1C_I2C_SDA, state); + return ; +} + + +static void ls1c_set_scl(void *data, rt_int32_t state) +{ +#ifdef LS1C_SET_GPIO_MODE + gpio_init(LS1C_I2C_SCL, gpio_mode_output); + ls1c_udelay(5); +#endif + gpio_set(LS1C_I2C_SCL, state); + return ; +} + + +static rt_int32_t ls1c_get_sda(void *data) +{ +#ifdef LS1C_SET_GPIO_MODE + gpio_init(LS1C_I2C_SDA, gpio_mode_input); + ls1c_udelay(5); +#endif + return gpio_get(LS1C_I2C_SDA); +} + + +static rt_int32_t ls1c_get_scl(void *data) +{ +#ifdef LS1C_SET_GPIO_MODE + gpio_init(LS1C_I2C_SCL, gpio_mode_input); + ls1c_udelay(5); +#endif + return gpio_get(LS1C_I2C_SCL); +} + + +static const struct rt_i2c_bit_ops bit_ops = { + .data = RT_NULL, + .set_sda = ls1c_set_sda, + .set_scl = ls1c_set_scl, + .get_sda = ls1c_get_sda, + .get_scl = ls1c_get_scl, + + .udelay = ls1c_udelay, + + .delay_us = 20, // 此值为周期(us) + .timeout = 10, // 单位为tick +}; + + + +int ls1c_i2c_init(void) +{ + static struct rt_i2c_bus_device bus = {0}; + + bus.priv = (void *)&bit_ops; + + ls1c_i2c_gpio_init(); + + rt_i2c_bit_add_bus(&bus, "i2c3"); + + return RT_EOK; +} + + + + + diff --git a/bsp/loongson/ls1cdev/drivers/drv_i2c.h b/bsp/loongson/ls1cdev/drivers/drv_i2c.h new file mode 100644 index 0000000000..cbacdbb0f5 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_i2c.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-14 勤为本 first version + */ + +#ifndef LS1C_DRV_I2C_H +#define LS1C_DRV_I2C_H + +int ls1c_i2c_init(void); + +#endif + diff --git a/bsp/loongson/ls1cdev/drivers/drv_pwm.c b/bsp/loongson/ls1cdev/drivers/drv_pwm.c new file mode 100644 index 0000000000..779a7e52b9 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_pwm.c @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-12-04 Sundm75 the first version + */ +#include +#include +#include + +#include +#include + +#include "ls1c.h" +#include "../libraries/ls1c_public.h" +#include "../libraries/ls1c_regs.h" +#include "../libraries/ls1c_clock.h" +#include "../libraries/ls1c_pwm.h" +#include "../libraries/ls1c_pin.h" + +#define PWM_CHANNEL_MAX (4) /* 0-3*/ + +#ifdef RT_USING_PWM + +struct rt_ls1c_pwm +{ + struct rt_device_pwm parent; + + rt_uint32_t period[PWM_CHANNEL_MAX]; + rt_uint32_t pulse[PWM_CHANNEL_MAX]; +}; + +static struct rt_ls1c_pwm _ls1c_pwm_device; + +static rt_err_t set(struct rt_device_pwm *device, struct rt_pwm_configuration *configuration) +{ + rt_err_t result = RT_EOK; + struct rt_ls1c_pwm *ls1c_pwm_device = (struct rt_ls1c_pwm *)device; + + if (configuration->channel > (PWM_CHANNEL_MAX - 1)) + { + result = -RT_EIO; + goto _exit; + } + + rt_kprintf("drv_pwm.c set channel %d: period: %d, pulse: %d\n", configuration->channel, configuration->period, configuration->pulse); + + ls1c_pwm_device->period[configuration->channel] = configuration->period; + ls1c_pwm_device->pulse[configuration->channel] = configuration->pulse; + +_exit: + return result; +} + +static rt_err_t get(struct rt_device_pwm *device, struct rt_pwm_configuration *configuration) +{ + rt_err_t result = RT_EOK; + struct rt_ls1c_pwm *ls1c_pwm_device = (struct rt_ls1c_pwm *)device; + + if (configuration->channel > (PWM_CHANNEL_MAX - 1)) + { + result = -RT_EIO; + goto _exit; + } + + configuration->period = ls1c_pwm_device->period[configuration->channel]; + configuration->pulse = ls1c_pwm_device->pulse[configuration->channel]; + rt_kprintf("drv_pwm.c get channel %d: period: %d, pulse: %d\n", configuration->channel, configuration->period, configuration->pulse); + +_exit: + return result; +} + +static rt_err_t control(struct rt_device_pwm *device, int cmd, void *arg) +{ + rt_err_t result = RT_EOK; + struct rt_pwm_configuration * configuration = (struct rt_pwm_configuration *)arg; + + rt_kprintf("drv_pwm.c control cmd: %d. \n", cmd); + + if (cmd == PWM_CMD_ENABLE) + { + rt_kprintf("PWM_CMD_ENABLE\n"); + + pwm_info_t pwm_info; + switch ( configuration->channel) + { + case 0: + pwm_info.gpio = LS1C_PWM0_GPIO06; + //pwm_info.gpio = LS1C_PWM0_GPIO04; + break; + case 1: + pwm_info.gpio = LS1C_PWM1_GPIO92; + //pwm_info.gpio = LS1C_PWM1_GPIO05; + break; + case 2: + pwm_info.gpio = LS1C_PWM2_GPIO52; + //pwm_info.gpio = LS1C_PWM2_GPIO46; + break; + case 3: + pwm_info.gpio = LS1C_PWM3_GPIO47; + //pwm_info.gpio = LS1C_PWM3_GPIO53; + break; + default: + break; + } + pwm_info.mode = PWM_MODE_NORMAL; + pwm_info.duty = ( (float)configuration->pulse ) / ((float)configuration->period ); + pwm_info.period_ns = configuration->period; + pwm_init(&pwm_info); + pwm_enable(&pwm_info); + } + else if (cmd == PWM_CMD_DISABLE) + { + rt_kprintf("PWM_CMD_DISABLE\n"); + pwm_info_t pwm_info; + switch ( configuration->channel) + { + case 0: + pwm_info.gpio = LS1C_PWM0_GPIO06; + //pwm_info.gpio = LS1C_PWM0_GPIO04; + break; + case 1: + pwm_info.gpio = LS1C_PWM1_GPIO92; + //pwm_info.gpio = LS1C_PWM1_GPIO05; + break; + case 2: + pwm_info.gpio = LS1C_PWM2_GPIO52; + //pwm_info.gpio = LS1C_PWM2_GPIO46; + break; + case 3: + pwm_info.gpio = LS1C_PWM3_GPIO47; + //pwm_info.gpio = LS1C_PWM3_GPIO53; + break; + default: + break; + } + pwm_info.mode = PWM_MODE_NORMAL; + pwm_info.duty = ( (float)configuration->pulse ) / ((float)configuration->period ); + pwm_info.period_ns = configuration->period; + pwm_init(&pwm_info); + pwm_disable(&pwm_info); + } + else if (cmd == PWM_CMD_SET) + { + rt_kprintf("PWM_CMD_SET\n"); + result = set(device, (struct rt_pwm_configuration *)arg); + } + else if (cmd == PWM_CMD_GET) + { + rt_kprintf("PWM_CMD_GET\n"); + result = get(device, (struct rt_pwm_configuration *)arg); + } + + return result; +} + +static const struct rt_pwm_ops pwm_ops = +{ + control, +}; + +int rt_hw_pwm_init(void) +{ + int ret = RT_EOK; + + /* add pwm initial. */ + + ret = rt_device_pwm_register(&_ls1c_pwm_device.parent, "pwm", &pwm_ops, RT_NULL); + + return ret; +} +INIT_DEVICE_EXPORT(rt_hw_pwm_init); + +#endif /*RT_USING_PWM*/ diff --git a/bsp/loongson/ls1cdev/drivers/drv_pwm.h b/bsp/loongson/ls1cdev/drivers/drv_pwm.h new file mode 100644 index 0000000000..427ba0c619 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_pwm.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-12-04 Sundm75 the first version + */ + +#ifndef LS1C_DRV_PWM_H +#define LS1C_DRV_PWM_H + +int ls1c_pwm_init(void); + +#endif /*DRV_CAN_H_*/ diff --git a/bsp/loongson/ls1cdev/drivers/drv_rtc.c b/bsp/loongson/ls1cdev/drivers/drv_rtc.c new file mode 100644 index 0000000000..ef1398fe47 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_rtc.c @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-05 sundm75 first version + */ + +/* Includes ------------------------------------------------------------------*/ +#include "board.h" +#include "drv_rtc.h" +#include +#include + +#include "../libraries/ls1c_regs.h" +#include "../libraries/ls1c_rtc.h" + +//#define RT_RTC_DEBUG + +#if defined(RT_USING_RTC) +#ifdef RT_RTC_DEBUG +#define rtc_debug(format,args...) rt_kprintf(format, ##args) +#else +#define rtc_debug(format,args...) +#endif + +static struct rt_device rtc; + +RTC_TypeDef * RTC_Handler; + +static time_t get_timestamp(void) +{ + struct tm tm_new = {0}; + RTC_TimeTypeDef rtcDate; + + RTC_GetTime(RTC_Handler, &rtcDate); + + tm_new.tm_sec = rtcDate.Seconds; + tm_new.tm_min = rtcDate.Minutes; + tm_new.tm_hour = rtcDate.Hours; + + tm_new.tm_mday = rtcDate.Date; + tm_new.tm_mon = rtcDate.Month- 1; + tm_new.tm_year = rtcDate.Year + 2000 - 1900; + + return timegm(&tm_new); +} + +static int set_timestamp(time_t timestamp) +{ + struct tm *p_tm; + RTC_TimeTypeDef rtcDate; + + p_tm = gmtime(×tamp); + + rtcDate.Seconds= p_tm->tm_sec ; + rtcDate.Minutes= p_tm->tm_min ; + rtcDate.Hours= p_tm->tm_hour; + + rtcDate.Date= p_tm->tm_mday; + rtcDate.Month= p_tm->tm_mon + 1; + rtcDate.Year= p_tm->tm_year + 1900 - 2000; + + RTC_SetTime(RTC_Handler, &rtcDate); + rt_kprintf("\r\nrtcDate is %d.%d.%d - %d:%d:%d",rtcDate.Year, rtcDate.Month, rtcDate.Date, rtcDate.Hours, rtcDate.Minutes, rtcDate.Seconds); + return RT_EOK; +} + +rt_uint8_t RTC_Init(void) +{ + RTC_Handler = RTC; + return 0; +} + +static rt_err_t rt_rtc_open(rt_device_t dev, rt_uint16_t oflag) +{ + if (dev->rx_indicate != RT_NULL) + { + /* Open Interrupt */ + } + + return RT_EOK; +} + +static rt_size_t rt_rtc_read( + rt_device_t dev, + rt_off_t pos, + void* buffer, + rt_size_t size) +{ + + return 0; +} + + /** + * This function configure RTC device. + * + * @param dev, pointer to device descriptor. + * @param cmd, RTC control command. + * + * @return the error code. + */ +static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args) +{ + rt_err_t result; + RT_ASSERT(dev != RT_NULL); + switch (cmd) + { + case RT_DEVICE_CTRL_RTC_GET_TIME: + + *(rt_uint32_t *)args = get_timestamp(); + rtc_debug("RTC: get rtc_time %x\n", *(rt_uint32_t *)args); + break; + + case RT_DEVICE_CTRL_RTC_SET_TIME: + { + result = set_timestamp(*(rt_uint32_t *)args); + rtc_debug("RTC: set rtc_time %x\n", *(rt_uint32_t *)args); + } + break; + } + + return result; +} + + /** + * This function register RTC device. + * + * @param device, pointer to device descriptor. + * @param name, device name. + * @param flag, configuration flags. + * + * @return the error code. + */ +rt_err_t rt_hw_rtc_register( + rt_device_t device, + const char *name, + rt_uint32_t flag) +{ + RT_ASSERT(device != RT_NULL); + + device->type = RT_Device_Class_RTC; + device->rx_indicate = RT_NULL; + device->tx_complete = RT_NULL; + device->init = RT_NULL; + device->open = rt_rtc_open; + device->close = RT_NULL; + device->read = rt_rtc_read; + device->write = RT_NULL; + device->control = rt_rtc_control; + device->user_data = RT_NULL; /* no private */ + + /* register a character device */ + return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR | flag); +} + + /** + * This function initialize RTC module related hardware and register RTC device to kernel. + * + * @param none. + * + * @return the error code. + */ +int rt_hw_rtc_init(void) +{ + RTC_Init(); + /* register rtc device */ + rt_hw_rtc_register(&rtc, RT_RTC_NAME, 0); + return RT_EOK; +} +INIT_BOARD_EXPORT(rt_hw_rtc_init); +#endif + + + + diff --git a/bsp/loongson/ls1cdev/drivers/drv_rtc.h b/bsp/loongson/ls1cdev/drivers/drv_rtc.h new file mode 100644 index 0000000000..cea8ebe633 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_rtc.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-05 sundm75 first version + */ + +#ifndef __DRV_RTC_H__ +#define __DRV_RTC_H__ + +#include +#include + +int rt_hw_rtc_init(void); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_spi.c b/bsp/loongson/ls1cdev/drivers/drv_spi.c new file mode 100644 index 0000000000..25b30e07ca --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_spi.c @@ -0,0 +1,307 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-02 勤为本 first version + * 2018-06-09 zhuangwei add spi0 cs0 support,remove msd_init + */ + +#include +#include +#include +#include "drv_spi.h" +#include "ls1c_public.h" +#include "spi_msd.h" +#include "dfs_fs.h" +#include "../libraries/ls1c_pin.h" + +#ifdef RT_USING_SPI +#ifdef DEBUG +#define DEBUG_PRINTF(...) rt_kprintf(__VA_ARGS__) +#else +#define DEBUG_PRINTF(...) +#endif + + +static rt_err_t configure(struct rt_spi_device *device, struct rt_spi_configuration *configuration); +static rt_uint32_t xfer(struct rt_spi_device *device, struct rt_spi_message *message); + + +static struct rt_spi_ops ls1c_spi_ops = +{ + .configure = configure, + .xfer = xfer +}; + + +static rt_err_t configure(struct rt_spi_device *device, + struct rt_spi_configuration *configuration) +{ + struct rt_spi_bus *spi_bus = NULL; + struct ls1c_spi *ls1c_spi = NULL; + unsigned char SPIx = 0; + void *spi_base = NULL; + unsigned char cpol = 0; + unsigned char cpha = 0; + unsigned char val = 0; + + RT_ASSERT(NULL != device); + RT_ASSERT(NULL != configuration); + + spi_bus = device->bus; + ls1c_spi = (struct ls1c_spi *)spi_bus->parent.user_data; + SPIx = ls1c_spi->SPIx; + spi_base = ls1c_spi_get_base(SPIx); + + { + // 使能SPI控制器,master模式,关闭中断 + reg_write_8(0x53, spi_base + LS1C_SPI_SPCR_OFFSET); + + // 清空状态寄存器 + reg_write_8(0xc0, spi_base + LS1C_SPI_SPSR_OFFSET); + + // 1字节产生中断,采样(读)与发送(写)时机同时 + reg_write_8(0x03, spi_base + LS1C_SPI_SPER_OFFSET); + + // 关闭SPI flash + val = reg_read_8(spi_base + LS1C_SPI_SFC_PARAM_OFFSET); + val &= 0xfe; + reg_write_8(val, spi_base + LS1C_SPI_SFC_PARAM_OFFSET); + + // spi flash时序控制寄存器 + reg_write_8(0x05, spi_base + LS1C_SPI_SFC_TIMING_OFFSET); + } + + // baudrate + ls1c_spi_set_clock(spi_base, configuration->max_hz); + + // 设置通信模式(时钟极性和相位) + if (configuration->mode & RT_SPI_CPOL) // cpol + { + cpol = SPI_CPOL_1; + } + else + { + cpol = SPI_CPOL_0; + } + if (configuration->mode & RT_SPI_CPHA) // cpha + { + cpha = SPI_CPHA_1; + } + else + { + cpha = SPI_CPHA_0; + } + ls1c_spi_set_mode(spi_base, cpol, cpha); + + DEBUG_PRINTF("ls1c spi%d configuration\n", SPIx); + + return RT_EOK; +} + + +static rt_uint32_t xfer(struct rt_spi_device *device, + struct rt_spi_message *message) +{ + struct rt_spi_bus *spi_bus = NULL; + struct ls1c_spi *ls1c_spi = NULL; + void *spi_base = NULL; + unsigned char SPIx = 0; + struct ls1c_spi_cs *ls1c_spi_cs = NULL; + unsigned char cs = 0; + rt_uint32_t size = 0; + const rt_uint8_t *send_ptr = NULL; + rt_uint8_t *recv_ptr = NULL; + rt_uint8_t data = 0; + + RT_ASSERT(NULL != device); + RT_ASSERT(NULL != message); + + spi_bus = device->bus; + ls1c_spi = spi_bus->parent.user_data; + SPIx = ls1c_spi->SPIx; + spi_base = ls1c_spi_get_base(SPIx); + ls1c_spi_cs = device->parent.user_data; + cs = ls1c_spi_cs->cs; + size = message->length; + + DEBUG_PRINTF("[%s] SPIx=%d, cs=%d\n", __FUNCTION__, SPIx, cs); + + // take cs + if (message->cs_take) + { + ls1c_spi_set_cs(spi_base, cs, 0); + } + + // 收发数据 + send_ptr = message->send_buf; + recv_ptr = message->recv_buf; + while (size--) + { + data = 0xFF; + if (NULL != send_ptr) + { + data = *send_ptr++; + } + + if (NULL != recv_ptr) + { + *recv_ptr++ = ls1c_spi_txrx_byte(spi_base, data); + } + else + { + ls1c_spi_txrx_byte(spi_base, data); + } + } + + // release cs + if (message->cs_release) + { + ls1c_spi_set_cs(spi_base, cs, 1); + } + + return message->length; +} + + +#ifdef RT_USING_SPI0 +struct ls1c_spi ls1c_spi0 = +{ + .SPIx = LS1C_SPI_0, +}; + +static struct rt_spi_bus spi0_bus; +#endif + + +#ifdef RT_USING_SPI1 +struct ls1c_spi ls1c_spi1 = +{ + .SPIx = LS1C_SPI_1, +}; + +static struct rt_spi_bus spi1_bus; +#endif + + +/* + * 初始化并注册龙芯1c的spi总线 + * @SPI SPI总线,比如LS1C_SPI_0, LS1C_SPI_1 + * @spi_bus_name 总线名字 + * @ret + */ +rt_err_t ls1c_spi_bus_register(rt_uint8_t SPI, const char *spi_bus_name) +{ + struct rt_spi_bus *spi_bus = NULL; + +#ifdef RT_USING_SPI0 + if (LS1C_SPI_0 == SPI) + { + spi_bus = &spi0_bus; + spi_bus->parent.user_data = &ls1c_spi0; + } +#endif + +#ifdef RT_USING_SPI1 + if (LS1C_SPI_1 == SPI) + { + spi_bus = &spi1_bus; + spi_bus->parent.user_data = &ls1c_spi1; + } +#endif + + return rt_spi_bus_register(spi_bus, spi_bus_name, &ls1c_spi_ops); +} + +int ls1c_hw_spi_init(void) +{ +#ifdef RT_USING_SPI0 + pin_set_purpose(78, PIN_PURPOSE_OTHER); + pin_set_purpose(79, PIN_PURPOSE_OTHER); + pin_set_purpose(80, PIN_PURPOSE_OTHER); + pin_set_purpose(83, PIN_PURPOSE_OTHER);//cs2 - SD card + pin_set_purpose(82, PIN_PURPOSE_OTHER);//cs1 + pin_set_purpose(81, PIN_PURPOSE_OTHER);//cs0 + + pin_set_remap(78, PIN_REMAP_DEFAULT); + pin_set_remap(79, PIN_REMAP_DEFAULT); + pin_set_remap(80, PIN_REMAP_DEFAULT); + pin_set_remap(83, PIN_REMAP_DEFAULT);//cs2 - SD card + pin_set_remap(82, PIN_REMAP_DEFAULT);//CS1 + pin_set_remap(81, PIN_REMAP_DEFAULT);//cs0 + ls1c_spi_bus_register(LS1C_SPI_0, "spi0"); +#endif + +#ifdef RT_USING_SPI1 + pin_set_purpose(46, PIN_PURPOSE_OTHER); + pin_set_purpose(47, PIN_PURPOSE_OTHER); + pin_set_purpose(48, PIN_PURPOSE_OTHER); + pin_set_purpose(49, PIN_PURPOSE_OTHER);//CS0 - touch screen + pin_set_remap(46, PIN_REMAP_THIRD); + pin_set_remap(47, PIN_REMAP_THIRD); + pin_set_remap(48, PIN_REMAP_THIRD); + pin_set_remap(49, PIN_REMAP_THIRD);//CS0 - touch screen + ls1c_spi_bus_register(LS1C_SPI_1, "spi1"); + +#endif + + +#ifdef RT_USING_SPI0 + /* attach cs */ + { + static struct rt_spi_device spi_device0; + static struct rt_spi_device spi_device1; + static struct rt_spi_device spi_device2; + static struct rt_spi_device spi_device3; + static struct ls1c_spi_cs spi_cs0; + static struct ls1c_spi_cs spi_cs1; + static struct ls1c_spi_cs spi_cs2; + static struct ls1c_spi_cs spi_cs3; + /* spi02: CS2 SD Card*/ + spi_cs2.cs = LS1C_SPI_CS_2; + rt_spi_bus_attach_device(&spi_device2, "spi02", "spi0", (void *)&spi_cs2); + spi_cs1.cs = LS1C_SPI_CS_1; + rt_spi_bus_attach_device(&spi_device1, "spi01", "spi0", (void *)&spi_cs1); + spi_cs0.cs = LS1C_SPI_CS_0; + rt_spi_bus_attach_device(&spi_device0, "spi00", "spi0", (void *)&spi_cs0); + spi_cs3.cs = LS1C_SPI_CS_3; + rt_spi_bus_attach_device(&spi_device3, "spi03", "spi0", (void*)&spi_cs3); + msd_init("sd0", "spi02"); + } +#endif +#ifdef RT_USING_SPI1 + { + static struct rt_spi_device spi_device; + static struct ls1c_spi_cs spi_cs; + + /* spi10: CS0 Touch*/ + spi_cs.cs = LS1C_SPI_CS_0; + rt_spi_bus_attach_device(&spi_device, "spi10", "spi1", (void *)&spi_cs); + } +#endif +} + + +INIT_BOARD_EXPORT(ls1c_hw_spi_init); + +static int board_sd_init(void) +{ + #if defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT) + /* mount sd card fat partition 1 as root directory */ + if( dfs_mount("sd0", "/", "elm", 0, 0) == 0) + { + rt_kprintf("File System initialized!\n"); + } + else + { + rt_kprintf("File System initialzation failed!\n"); + } + #endif /* RT_USING_DFS && RT_USING_DFS_ELMFAT */ +} +INIT_APP_EXPORT(board_sd_init); + +#endif + diff --git a/bsp/loongson/ls1cdev/drivers/drv_spi.h b/bsp/loongson/ls1cdev/drivers/drv_spi.h new file mode 100644 index 0000000000..8b1aa315be --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_spi.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-02 勤为本 first version + */ + +#ifndef LS1C_DRV_SPI_H +#define LS1C_DRV_SPI_H + + +#include "../libraries/ls1c_spi.h" + + +struct ls1c_spi +{ + unsigned char SPIx; // LS1C_SPI_0 or LS1C_SPI_1 +}; + + +struct ls1c_spi_cs +{ + unsigned char cs; // LS1C_SPI_CS_0, LS1C_SPI_CS_1, LS1C_SPI_CS_2 or LS1C_SPI_CS_3 +}; + + + +/* + * 初始化并注册龙芯1c的spi总线 + * @SPI SPI总线,比如LS1C_SPI_0, LS1C_SPI_1 + * @spi_bus_name 总线名字 + * @ret + */ +rt_err_t ls1c_spi_bus_register(rt_uint8_t SPI, const char *spi_bus_name); + + +#endif + diff --git a/bsp/loongson/ls1cdev/drivers/drv_touch.c b/bsp/loongson/ls1cdev/drivers/drv_touch.c new file mode 100644 index 0000000000..092260aaed --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_touch.c @@ -0,0 +1,270 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-02-08 Zhangyihong the first version + * 2018-10-29 XY + * 2019-04-11 sundm75 modify for ls1c300 & RTGUI + */ + +#include "drv_touch.h" + +#define TOUCH_I2C_NAME "i2c1" + +#ifndef TOUCH_SAMPLE_HZ +#define TOUCH_SAMPLE_HZ (50) +#endif + +#ifndef TOUCH_I2C_NAME +#error "Please define touch i2c name!" +#endif + +#ifdef TINA_USING_TOUCH +#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) +#include +#include +#endif + +#if 0 +#define TPDEBUG rt_kprintf +#else +#define TPDEBUG(...) +#endif + +static rt_slist_t _driver_list; +static struct rt_i2c_bus_device *i2c_bus = RT_NULL; + +static void post_down_event(rt_uint16_t x, rt_uint16_t y, rt_uint32_t id) +{ +#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) + rt_err_t result; + struct rtgui_event_mouse emouse; + + emouse.parent.sender = RT_NULL; + emouse.wid = RT_NULL; + + emouse.parent.type = RTGUI_EVENT_MOUSE_BUTTON; + emouse.button = RTGUI_MOUSE_BUTTON_LEFT | RTGUI_MOUSE_BUTTON_DOWN; + emouse.x = x; + emouse.y = y; +#ifdef PKG_USING_GUIENGINE + emouse.ts = rt_tick_get(); + emouse.id = id; +#endif + +#ifdef PKG_USING_GUIENGINE + do + { + result = rtgui_server_post_event(&emouse.parent, sizeof(emouse)); + if (result != RT_EOK) + { + rt_thread_delay(RT_TICK_PER_SECOND / TOUCH_SAMPLE_HZ); + } + } + while (result != RT_EOK); +#else + rtgui_server_post_event(&emouse.parent, sizeof(emouse)); +#endif + + TPDEBUG("[TP] touch down [%d, %d]\n", emouse.x, emouse.y); +#endif +} + +static void post_motion_event(rt_uint16_t x, rt_uint16_t y, rt_uint32_t id) +{ +#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) + struct rtgui_event_mouse emouse; + + emouse.parent.sender = RT_NULL; + emouse.wid = RT_NULL; + + emouse.button = RTGUI_MOUSE_BUTTON_LEFT | RTGUI_MOUSE_BUTTON_DOWN; + emouse.parent.type = RTGUI_EVENT_MOUSE_MOTION; + emouse.x = x; + emouse.y = y; +#ifdef PKG_USING_GUIENGINE + emouse.ts = rt_tick_get(); + emouse.id = id; +#endif + rtgui_server_post_event(&emouse.parent, sizeof(emouse)); + TPDEBUG("[TP] touch motion [%d, %d]\n", emouse.x, emouse.y); +#endif +} + +static void post_up_event(rt_uint16_t x, rt_uint16_t y, rt_uint32_t id) +{ +#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) + rt_err_t result; + struct rtgui_event_mouse emouse; + + emouse.parent.sender = RT_NULL; + emouse.wid = RT_NULL; + + emouse.parent.type = RTGUI_EVENT_MOUSE_BUTTON; + emouse.button = RTGUI_MOUSE_BUTTON_LEFT | RTGUI_MOUSE_BUTTON_UP; + emouse.x = x; + emouse.y = y; +#ifdef PKG_USING_GUIENGINE + emouse.ts = rt_tick_get(); + emouse.id = id; +#endif + +#ifdef PKG_USING_GUIENGINE + do + { + result = rtgui_server_post_event(&emouse.parent, sizeof(emouse)); + if (result != RT_EOK) + { + rt_thread_delay(RT_TICK_PER_SECOND / TOUCH_SAMPLE_HZ); + } + } + while (result != RT_EOK); +#else + rtgui_server_post_event(&emouse.parent, sizeof(emouse)); +#endif + + TPDEBUG("[TP] touch up [%d, %d]\n", emouse.x, emouse.y); +#endif +} + +static void touch_run(void* parameter) +{ + rt_tick_t emouse_id = 0; + struct touch_message msg; + rt_slist_t *driver_list = NULL; + struct touch_driver *current_driver = RT_NULL; + + i2c_bus = rt_i2c_bus_device_find(TOUCH_I2C_NAME); + RT_ASSERT(i2c_bus); + + if(rt_device_open(&i2c_bus->parent, RT_DEVICE_OFLAG_RDWR) != RT_EOK) + { + return; + } + + rt_slist_for_each(driver_list, &_driver_list) + { + current_driver = (struct touch_driver *)driver_list; + if(current_driver->probe(i2c_bus) == RT_TRUE) + { + break; + } + current_driver = RT_NULL; + } + + if(current_driver == RT_NULL) + { + rt_kprintf("[TP] No touch pad or driver.\n"); + rt_device_close((rt_device_t)i2c_bus); + + return; + } + + current_driver->ops->init(i2c_bus); + + while (1) + { + if (rt_sem_take(current_driver->isr_sem, RT_WAITING_FOREVER) != RT_EOK) + { + continue; + } + + if (current_driver->ops->read_point(&msg) != RT_EOK) + { + continue; + } + + switch (msg.event) + { + case TOUCH_EVENT_MOVE: + post_motion_event(msg.x, msg.y, emouse_id); + break; + + case TOUCH_EVENT_DOWN: + emouse_id = rt_tick_get(); + post_down_event(msg.x, msg.y, emouse_id); + break; + + case TOUCH_EVENT_UP: + post_up_event(msg.x, msg.y, emouse_id); + break; + + default: + break; + } + + rt_thread_delay(RT_TICK_PER_SECOND / TOUCH_SAMPLE_HZ); + } +} + +rt_err_t rt_touch_drivers_register(touch_driver_t drv) +{ + RT_ASSERT(drv != RT_NULL); + RT_ASSERT(drv->ops != RT_NULL); + RT_ASSERT(drv->probe != RT_NULL); + + rt_slist_append(&_driver_list, &drv->list); + + return RT_EOK; +} + +static int rt_touch_list_init(void) +{ + rt_slist_init(&_driver_list); + + return RT_EOK; +} +INIT_BOARD_EXPORT(rt_touch_list_init); + +static int rt_touch_init(void) +{ + rt_thread_t thread = RT_NULL; + + thread = rt_thread_create("touch", touch_run, RT_NULL, 2048, 28, 20); + if(thread) + { + return rt_thread_startup(thread); + } + + return RT_ERROR; +} +INIT_APP_EXPORT(rt_touch_init); + +int rt_touch_read(rt_uint16_t addr, void *cmd_buf, size_t cmd_len, void *data_buf, size_t data_len) +{ + struct rt_i2c_msg msgs[2]; + + msgs[0].addr = addr; + msgs[0].flags = RT_I2C_WR; + msgs[0].buf = cmd_buf; + msgs[0].len = cmd_len; + + msgs[1].addr = addr; + msgs[1].flags = RT_I2C_RD; + msgs[1].buf = data_buf; + msgs[1].len = data_len; + + if (rt_i2c_transfer(i2c_bus, msgs, 2) == 2) + return 0; + else + return -1; +} + +int rt_touch_write(rt_uint16_t addr, void *data_buf, size_t data_len) +{ + struct rt_i2c_msg msgs[1]; + + msgs[0].addr = addr; + msgs[0].flags = RT_I2C_WR; + msgs[0].buf = data_buf; + msgs[0].len = data_len; + + if (rt_i2c_transfer(i2c_bus, msgs, 1) == 1) + return 0; + else + return -1; +} +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_touch.h b/bsp/loongson/ls1cdev/drivers/drv_touch.h new file mode 100644 index 0000000000..1ae4c71549 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_touch.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-02-08 Zhangyihong the first version + * 2018-10-29 XY + */ + +#ifndef __DRV_TOUCH_H__ +#define __DRV_TOUCH_H__ + +#include "rtthread.h" +#include "rtdevice.h" + +#define TOUCH_EVENT_UP (0x01) +#define TOUCH_EVENT_DOWN (0x02) +#define TOUCH_EVENT_MOVE (0x03) +#define TOUCH_EVENT_NONE (0x80) + +struct touch_message +{ + rt_uint16_t x; + rt_uint16_t y; + rt_uint8_t event; +}; +typedef struct touch_message *touch_message_t; + +struct touch_ops +{ + void (*init)(struct rt_i2c_bus_device *); + void (*deinit)(void); + rt_err_t (*read_point)(touch_message_t); +}; +typedef struct touch_ops *touch_ops_t; + +struct touch_driver +{ + rt_slist_t list; + rt_bool_t (*probe)(struct rt_i2c_bus_device *i2c_bus); + rt_sem_t isr_sem; + touch_ops_t ops; + void *user_data; +}; +typedef struct touch_driver *touch_driver_t; + +rt_err_t rt_touch_drivers_register(touch_driver_t drv); + +int rt_touch_read(rt_uint16_t addr, void *cmd_buf, size_t cmd_len, void *data_buf, size_t data_len); +int rt_touch_write(rt_uint16_t addr, void *data_buf, size_t data_len); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_touch_gt9xx.c b/bsp/loongson/ls1cdev/drivers/drv_touch_gt9xx.c new file mode 100644 index 0000000000..801ec762cb --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_touch_gt9xx.c @@ -0,0 +1,234 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-02-08 Zhangyihong the first version + * 2018-04-03 XY gt9xx for 1024 * 600 + * 2018-04-14 liu2guang optimize int and rst to pin framework + * 2017-08-08 XY imxrt1052 + * 2018-10-29 XY + */ + +#include "drv_touch.h" +#include "string.h" + +#ifdef TINA_USING_TOUCH + +#define TP_INT_PIN 89 +#define TP_RST_PIN 87 + +#ifndef TP_INT_PIN +#error "Please config touch panel INT pin." +#endif +#ifndef TP_RST_PIN +#error "Please config touch panel RST pin." +#endif + +#ifndef IIC_RETRY_NUM +#define IIC_RETRY_NUM 2 +#endif + +#define GT9xx_TS_ADDR (0x5D) + +#define gt9xx_READ_XY_REG (0x814E) /* 坐标寄存器 */ +#define gt9xx_CLEARBUF_REG (0x814E) /* 清除坐标寄存器 */ +#define gt9xx_CONFIG_REG (0x8047) /* 配置参数寄存器 */ +#define gt9xx_COMMAND_REG (0x8040) /* 实时命令 */ +#define gt9xx_PRODUCT_ID_REG (0x8140) /* 产品ID */ +#define gt9xx_VENDOR_ID_REG (0x814A) /* 当前模组选项信息 */ +#define gt9xx_CONFIG_VERSION_REG (0x8047) /* 配置文件版本号 */ +#define gt9xx_CONFIG_CHECKSUM_REG (0x80FF) /* 配置文件校验码 */ +#define gt9xx_FIRMWARE_VERSION_REG (0x8144) /* 固件版本号 */ + +#if 0 +#define TPDEBUG rt_kprintf +#else +#define TPDEBUG(...) +#endif + +static struct touch_driver gt9xx_driver; + +void gt9xx_hw_reset(rt_uint8_t address) +{ + rt_tick_t delay = rt_tick_from_millisecond(30); + + rt_pin_mode(TP_RST_PIN, PIN_MODE_OUTPUT); + rt_pin_mode(TP_INT_PIN, PIN_MODE_OUTPUT); + + if (address == 0x5D) + { + rt_pin_write(TP_RST_PIN, PIN_LOW); + rt_pin_write(TP_INT_PIN, PIN_LOW); + rt_thread_delay(delay); + rt_pin_write(TP_RST_PIN, PIN_HIGH); + rt_pin_write(TP_INT_PIN, PIN_LOW); + rt_thread_delay(delay); + rt_pin_write(TP_INT_PIN, PIN_LOW); + rt_thread_delay(delay); + rt_pin_write(TP_INT_PIN, PIN_HIGH); + } + else + { + rt_pin_write(TP_RST_PIN, PIN_LOW); + rt_pin_write(TP_INT_PIN, PIN_HIGH); + rt_thread_delay(delay); + rt_pin_write(TP_RST_PIN, PIN_HIGH); + rt_pin_write(TP_INT_PIN, PIN_HIGH); + rt_thread_delay(delay); + rt_pin_write(TP_INT_PIN, PIN_LOW); + rt_thread_delay(delay); + rt_pin_write(TP_INT_PIN, PIN_HIGH); + } +} + +static void gt9xx_soft_reset(struct rt_i2c_bus_device *i2c_bus) +{ + rt_uint8_t buf[3]; + + buf[0] = (rt_uint8_t)((gt9xx_COMMAND_REG >> 8) & 0xFF); + buf[1] = (rt_uint8_t)(gt9xx_COMMAND_REG & 0xFF); + buf[2] = 0x02; + rt_touch_write(GT9xx_TS_ADDR, buf, 3); +} + +static rt_bool_t gt9xx_probe(struct rt_i2c_bus_device *i2c_bus) +{ + rt_uint8_t cmd[2]; + rt_uint8_t buffer[5] = {0}; + + gt9xx_hw_reset(GT9xx_TS_ADDR); + //gt9xx_soft_reset(i2c_bus); + rt_thread_delay(RT_TICK_PER_SECOND / 5); + + cmd[0] = (rt_uint8_t)((gt9xx_PRODUCT_ID_REG >> 8) & 0xFF); + cmd[1] = (rt_uint8_t)(gt9xx_PRODUCT_ID_REG & 0xFF); + if (rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, buffer, 4) != 0) + { + TPDEBUG("[TP] %s failed!\n", __func__); + return RT_FALSE; + } + + buffer[4] = '\0'; + + TPDEBUG("%#X %#X %#X %#X %#X\n", buffer[0], buffer[1], buffer[2], buffer[3], buffer[4]); + + if(!rt_strcmp((const char*)buffer, "911")) + { + rt_kprintf("[TP] Found chip gt911\n"); + return RT_TRUE; + } + else if(!rt_strcmp((const char*)buffer, "9147")) + { + rt_kprintf("[TP] Found chip gt9147\n"); + return RT_TRUE; + } + else if(!rt_strcmp((const char*)buffer, "9157")) + { + rt_kprintf("[TP] Found chip gt9157\n"); + return RT_TRUE; + } + else + { + rt_kprintf("[TP] Uknow chip gt9xx device: [%s]\n", buffer); + } + + return RT_FALSE; +} + +static void gt9xx_init(struct rt_i2c_bus_device *i2c_bus) +{ + rt_uint8_t buf = 0; + rt_uint8_t cmd[2]; + + gt9xx_driver.isr_sem = rt_sem_create("gt9xx", 0, RT_IPC_FLAG_FIFO); + RT_ASSERT(gt9xx_driver.isr_sem); + + cmd[0] = (rt_uint8_t)((gt9xx_CONFIG_VERSION_REG >> 8) & 0xFF); + cmd[1] = (rt_uint8_t)(gt9xx_CONFIG_VERSION_REG & 0xFF); + rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, &buf, 1); + rt_kprintf("[TP] GT9xx Config version: 0x%02X\n", buf); + + cmd[0] = (rt_uint8_t)((gt9xx_VENDOR_ID_REG >> 8) & 0xFF); + cmd[1] = (rt_uint8_t)(gt9xx_VENDOR_ID_REG & 0xFF); + rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, &buf, 1); + rt_kprintf("[TP] GT9xx Sensor id: 0x%02X\n", buf); + + rt_sem_release(gt9xx_driver.isr_sem); +} + +static void gt9xx_deinit(void) +{ + rt_sem_delete(gt9xx_driver.isr_sem); +} + +static rt_err_t gt9xx_read_point(touch_message_t msg) +{ + rt_uint8_t cmd[2]; + rt_uint8_t buf[8] = {0}; + static rt_uint8_t s_tp_down = 0; + + cmd[0] = (rt_uint8_t)((gt9xx_READ_XY_REG >> 8) & 0xFF); + cmd[1] = (rt_uint8_t)(gt9xx_READ_XY_REG & 0xFF); + rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, buf, 8); + + if((buf[0] & 0x01) == 0) + { + if(s_tp_down) + { + s_tp_down = 0; + msg->event = TOUCH_EVENT_UP; + } + else + { + msg->event = TOUCH_EVENT_NONE; + } + } + else + { + msg->x = ((rt_uint16_t)buf[3] << 8) | buf[2]; + msg->y = ((rt_uint16_t)buf[5] << 8) | buf[4]; + + if(s_tp_down) + { + msg->event = TOUCH_EVENT_MOVE; + } + else + { + msg->event = TOUCH_EVENT_DOWN; + s_tp_down = 1; + } + } + + buf[0] = ((gt9xx_CLEARBUF_REG >> 8) & 0xFF); + buf[1] = (gt9xx_CLEARBUF_REG & 0xFF); + buf[2] = 0x00; + rt_touch_write(GT9xx_TS_ADDR, buf, 3); + + rt_sem_release(gt9xx_driver.isr_sem); + + return RT_EOK; +} + +struct touch_ops gt9xx_ops = +{ + .init = gt9xx_init, + .deinit = gt9xx_deinit, + .read_point = gt9xx_read_point, +}; + +static int gt9xx_driver_register(void) +{ + gt9xx_driver.probe = gt9xx_probe; + gt9xx_driver.ops = >9xx_ops; + gt9xx_driver.user_data = RT_NULL; + + rt_touch_drivers_register(>9xx_driver); + + return RT_EOK; +} +INIT_ENV_EXPORT(gt9xx_driver_register); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_uart.c b/bsp/loongson/ls1cdev/drivers/drv_uart.c new file mode 100644 index 0000000000..0578eea4fc --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_uart.c @@ -0,0 +1,224 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-08 zhuangwei the first version + */ +#include +#include +#include +#include "drv_uart.h" +#include "ls1c_pin.h" +#include "ls1c_uart.h" + +/* STM32 uart driver */ +struct rt_uart_ls1c +{ + ls1c_uart_t UARTx; + rt_uint32_t IRQ; +}; + +static rt_err_t ls1c_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + struct rt_uart_ls1c *uart_dev = RT_NULL; + ls1c_uart_info_t uart_info = {0}; + + RT_ASSERT(serial != RT_NULL); + RT_ASSERT(cfg != RT_NULL); + + uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; + + // 初始化串口 + uart_info.UARTx = uart_dev->UARTx; + uart_info.baudrate = cfg->baud_rate; + uart_info.rx_enable = TRUE; + uart_init(&uart_info); + + return RT_EOK; + +} + +static rt_err_t ls1c_uart_control(struct rt_serial_device *serial, int cmd, void *arg) +{ + struct rt_uart_ls1c *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: /* disable rx irq */ + rt_hw_interrupt_mask(uart_dev->IRQ); + break; + + case RT_DEVICE_CTRL_SET_INT: /* enable rx irq */ + rt_hw_interrupt_umask(uart_dev->IRQ); + break; + + default: + break; + } + + return RT_EOK; + +} + +static int ls1c_uart_putc(struct rt_serial_device *serial, char c) +{ + struct rt_uart_ls1c *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + + uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; + uart_putc(uart_dev->UARTx, c); + + return 1; +} + +static int ls1c_uart_getc(struct rt_serial_device *serial) +{ + struct rt_uart_ls1c *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + + uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; + void *uart_base = uart_get_base(uart_dev->UARTx); + + if (LSR_RXRDY & reg_read_8(uart_base + LS1C_UART_LSR_OFFSET)) + { + return reg_read_8(uart_base + LS1C_UART_DAT_OFFSET); + } + + return -1; +} + +/* UART interrupt handler */ +static void uart_irq_handler(int vector, void *param) +{ + struct rt_serial_device *serial = (struct rt_serial_device *)param; + struct rt_uart_ls1c *uart_dev = RT_NULL; + + RT_ASSERT(serial != RT_NULL); + + uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; + void *uart_base = uart_get_base(uart_dev->UARTx); + unsigned char iir = reg_read_8(uart_base + LS1C_UART_IIR_OFFSET); + + // 判断是否为接收超时或接收到有效数据 + if ((IIR_RXTOUT & iir) || (IIR_RXRDY & iir)) + { + rt_interrupt_enter(); + rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); + rt_interrupt_leave(); + } + +} + +static const struct rt_uart_ops ls1c_uart_ops = +{ + ls1c_uart_configure, + ls1c_uart_control, + ls1c_uart_putc, + ls1c_uart_getc, +}; + +#if defined(RT_USING_UART2) +struct rt_uart_ls1c uart2 = +{ + LS1C_UART2, + LS1C_UART2_IRQ, +}; +struct rt_serial_device serial2; +#endif /* RT_USING_UART2 */ + +#if defined(RT_USING_UART1) +struct rt_uart_ls1c uart1 = +{ + LS1C_UART1, + LS1C_UART1_IRQ, +}; +struct rt_serial_device serial1; +#endif /* RT_USING_UART1 */ + +#if defined(RT_USING_UART3) +struct rt_uart_ls1c uart3 = +{ + LS1C_UART3, + LS1C_UART3_IRQ, +}; +struct rt_serial_device serial3; +#endif /* RT_USING_UART3 */ + +void rt_hw_uart_init(void) +{ + struct rt_uart_ls1c *uart; + struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; + +#ifdef RT_USING_UART2 + uart = &uart2; + + serial2.ops = &ls1c_uart_ops; + serial2.config = config; + + pin_set_purpose(36, PIN_PURPOSE_OTHER); + pin_set_purpose(37, PIN_PURPOSE_OTHER); + pin_set_remap(36, PIN_REMAP_SECOND); + pin_set_remap(37, PIN_REMAP_SECOND); + + rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial2, "UART2"); + + /* register UART2 device */ + rt_hw_serial_register(&serial2, + "uart2", + //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + uart); +#endif /* RT_USING_UART2 */ + +#ifdef RT_USING_UART1 + uart = &uart1; + + serial1.ops = &ls1c_uart_ops; + serial1.config = config; + + pin_set_purpose(2, PIN_PURPOSE_OTHER); + pin_set_purpose(3, PIN_PURPOSE_OTHER); + pin_set_remap(2, PIN_REMAP_FOURTH); + pin_set_remap(3, PIN_REMAP_FOURTH); + + rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial1, "UART1"); + + /* register UART1 device */ + rt_hw_serial_register(&serial1, + "uart1", + //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + uart); +#endif /* RT_USING_UART1 */ + +#ifdef RT_USING_UART3 + uart = &uart3; + + serial3.ops = &ls1c_uart_ops; + serial3.config = config; + + pin_set_purpose(0, PIN_PURPOSE_OTHER); + pin_set_purpose(1, PIN_PURPOSE_OTHER); + pin_set_remap(0, PIN_REMAP_FOURTH); + pin_set_remap(1, PIN_REMAP_FOURTH); + + rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial3, "UART3"); + + /* register UART1 device */ + rt_hw_serial_register(&serial3, + "uart3", + //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + uart); +#endif /* RT_USING_UART3 */ + +} + diff --git a/bsp/loongson/ls1cdev/drivers/drv_uart.h b/bsp/loongson/ls1cdev/drivers/drv_uart.h new file mode 100644 index 0000000000..dcc90ea3f9 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_uart.h @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-08 zhuangwei the first version + */ + +#ifndef __DRV_UART_H__ +#define __DRV_UART_H__ + +#include "ls1c.h" +#include + +#define DEV_CLK 252000000 // 252MHz +#define UART_BAUDRATE 115200 + +#define UART0_BASE 0xBFE40000 +//#define UART0_1_BASE 0xBFE41000 +#define UART1_BASE 0xBFE44000 +#define UART2_BASE 0xBFE48000 +#define UART3_BASE 0xBFE4C000 +#define UART4_BASE 0xBFE4C400 +#define UART5_BASE 0xBFE4C500 +#define UART6_BASE 0xBFE4C600 +#define UART7_BASE 0xBFE4C700 +#define UART8_BASE 0xBFE4C800 +#define UART9_BASE 0xBFE4C900 +#define UART10_BASE 0xBFE4Ca00 +#define UART11_BASE 0xBFE4Cb00 + +/* UART registers */ +#define UART_DAT(base) HWREG8(base + 0x00) +#define UART_IER(base) HWREG8(base + 0x01) +#define UART_IIR(base) HWREG8(base + 0x02) +#define UART_FCR(base) HWREG8(base + 0x02) +#define UART_LCR(base) HWREG8(base + 0x03) +#define UART_MCR(base) HWREG8(base + 0x04) +#define UART_LSR(base) HWREG8(base + 0x05) +#define UART_MSR(base) HWREG8(base + 0x06) + +#define UART_LSB(base) HWREG8(base + 0x00) +#define UART_MSB(base) HWREG8(base + 0x01) + +/* UART0 registers */ +#define UART0_DAT HWREG8(UART0_BASE + 0x00) +#define UART0_IER HWREG8(UART0_BASE + 0x01) +#define UART0_IIR HWREG8(UART0_BASE + 0x02) +#define UART0_FCR HWREG8(UART0_BASE + 0x02) +#define UART0_LCR HWREG8(UART0_BASE + 0x03) +#define UART0_MCR HWREG8(UART0_BASE + 0x04) +#define UART0_LSR HWREG8(UART0_BASE + 0x05) +#define UART0_MSR HWREG8(UART0_BASE + 0x06) + +#define UART0_LSB HWREG8(UART0_BASE + 0x00) +#define UART0_MSB HWREG8(UART0_BASE + 0x01) + +/* UART1 registers */ +#define UART1_DAT HWREG8(UART1_BASE + 0x00) +#define UART1_IER HWREG8(UART1_BASE + 0x01) +#define UART1_IIR HWREG8(UART1_BASE + 0x02) +#define UART1_FCR HWREG8(UART1_BASE + 0x02) +#define UART1_LCR HWREG8(UART1_BASE + 0x03) +#define UART1_MCR HWREG8(UART1_BASE + 0x04) +#define UART1_LSR HWREG8(UART1_BASE + 0x05) +#define UART1_MSR HWREG8(UART1_BASE + 0x06) + +#define UART1_LSB HWREG8(UART1_BASE + 0x00) +#define UART1_MSB HWREG8(UART1_BASE + 0x01) + +/* UART interrupt enable register value */ +#define UARTIER_IME (1 << 3) +#define UARTIER_ILE (1 << 2) +#define UARTIER_ITXE (1 << 1) +#define UARTIER_IRXE (1 << 0) + +/* UART line control register value */ +#define UARTLCR_DLAB (1 << 7) +#define UARTLCR_BCB (1 << 6) +#define UARTLCR_SPB (1 << 5) +#define UARTLCR_EPS (1 << 4) +#define UARTLCR_PE (1 << 3) +#define UARTLCR_SB (1 << 2) + +/* UART line status register value */ +#define UARTLSR_ERROR (1 << 7) +#define UARTLSR_TE (1 << 6) +#define UARTLSR_TFE (1 << 5) +#define UARTLSR_BI (1 << 4) +#define UARTLSR_FE (1 << 3) +#define UARTLSR_PE (1 << 2) +#define UARTLSR_OE (1 << 1) +#define UARTLSR_DR (1 << 0) + +void rt_hw_uart_init(void); + + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_wdt.c b/bsp/loongson/ls1cdev/drivers/drv_wdt.c new file mode 100644 index 0000000000..4a42220000 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_wdt.c @@ -0,0 +1,199 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2019-05-06 sundm75 first version + */ + +#include +#include + +#ifdef RT_USING_WDT + +#include +#include "drv_wdt.h" + +#include "ls1c_wdog.h" +#include "ls1c_clock.h" + +typedef enum +{ + RESTENABLE = 0x0, + INTERRUPTENABLE = 0x1, +}wdt_enable_mode; + +static rt_uint32_t heartbeat = 0; + +static rt_err_t wdt_stop(void) +{ + rt_err_t ret = RT_EOK; + + Wdog_Reset(); + ret = (rt_err_t) Wdog_Disable(); + if (ret != RT_EOK) + { + rt_kprintf("Wdog_Disable error!\n"); + return RT_ERROR; + } + return ret; +} + +static rt_err_t wdt_start(int mode) +{ + rt_err_t ret = RT_EOK; + wdt_enable_mode wdt_mode = RESTENABLE; + + ret = (rt_err_t) Wdog_Disable(); + if (ret != RT_EOK) + { + rt_kprintf("Wdog_Disable error!\n"); + return RT_ERROR; + } + + if((mode == RESTENABLE) || (mode == INTERRUPTENABLE)) + { + wdt_mode = mode; + } + Wdog_Enable(); + Wdog_Set(); + if (ret != RT_EOK) + { + rt_kprintf("Wdog_Enable error!\n"); + return RT_ERROR; + } + + return ret; +} + +static rt_err_t wdt_keepalive(void) +{ + rt_err_t ret = RT_EOK; + rt_uint32_t index = 0; + + index = heartbeat * clk_get_apb_rate(); + ret = (rt_err_t) Wdog_LoadValue(index); + Wdog_Set(); + if (ret != 0) + { + rt_kprintf("LS1C_Wdog_ClrTimeout error!\n"); + return RT_ERROR; + } + + return ret; +} + +static rt_uint32_t wdt_get_timeleft(void) +{ + rt_uint32_t cnt = 0; + rt_uint32_t second = 0; + + cnt = (rt_uint32_t) Wdog_GetValue(); + second = cnt/clk_get_apb_rate(); + + return second; +} + +static rt_err_t wdt_set_timeout(rt_uint32_t second) +{ + rt_err_t ret = RT_EOK; + rt_uint32_t index = 0; + + index = second * clk_get_apb_rate(); + ret = (rt_err_t) Wdog_LoadValue(index); + if (ret != RT_EOK) + { + rt_kprintf("Wdog_LoadValue error!\n"); + return RT_ERROR; + } + return ret; +} + +static rt_err_t watchdog_init(rt_watchdog_t *wdt) +{ + struct wdt_driver *wdt_drv = wdt->parent.user_data; + if (wdt_drv->in_use) return -RT_EBUSY; + + Wdog_Init(); + + return RT_EOK; +} + +static rt_err_t watchdog_ctrl(rt_watchdog_t *wdt, int cmd, void *arg) +{ + rt_uint32_t val; + int mode; + + switch (cmd) + { + case RT_DEVICE_CTRL_WDT_START: + mode = *((int *)(arg)); + wdt_start(mode); + break; + + case RT_DEVICE_CTRL_WDT_STOP: + Wdog_Disable(); + break; + + case RT_DEVICE_CTRL_WDT_KEEPALIVE: + wdt_keepalive(); + break; + + case RT_DEVICE_CTRL_WDT_SET_TIMEOUT: + heartbeat = *((rt_uint32_t *)(arg)); + wdt_set_timeout(heartbeat); + break; + + case RT_DEVICE_CTRL_WDT_GET_TIMEOUT: + arg = &heartbeat; + break; + + case RT_DEVICE_CTRL_WDT_GET_TIMELEFT: + val = (rt_uint32_t) wdt_get_timeleft(); + arg = &val; + break; + + default: + return -RT_EIO; + } + return RT_EOK; +} + +struct rt_watchdog_ops watchdog_ops = +{ + .init = &watchdog_init, + .control = &watchdog_ctrl, +}; + +int wdt_exit(void *priv_data) +{ + return 0; +} + +int rt_hw_wdt_init(void) +{ + rt_watchdog_t *wdt_dev; + struct wdt_driver *wdt_drv; + + wdt_drv = (struct wdt_driver *)rt_malloc(sizeof(struct wdt_driver)); + rt_memset(wdt_drv, 0, sizeof(struct wdt_driver)); + + wdt_dev = (rt_watchdog_t *)rt_malloc(sizeof(rt_watchdog_t)); + + if (wdt_dev == RT_NULL) + { + rt_kprintf("ERROR: %s rt_watchdog_t malloc failed\n", __func__); + } + + wdt_dev->ops = &watchdog_ops; + + rt_hw_watchdog_register(wdt_dev, "wdt", RT_DEVICE_OFLAG_RDWR, wdt_drv); + + return 0; +} + +INIT_BOARD_EXPORT(rt_hw_wdt_init); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/drv_wdt.h b/bsp/loongson/ls1cdev/drivers/drv_wdt.h new file mode 100644 index 0000000000..a017edb19a --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/drv_wdt.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2019-05-06 sundm75 first version + */ + +#ifndef WDT_H_ +#define WDT_H_ + +struct wdt_driver +{ + unsigned long in_use; + + void* priv; +}; + +int rt_hw_wdt_init(void); + +#endif /* WDT_H_ */ diff --git a/bsp/loongson/ls1cdev/drivers/hw_i2c.c b/bsp/loongson/ls1cdev/drivers/hw_i2c.c new file mode 100644 index 0000000000..1f63df1ab9 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/hw_i2c.c @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-01-04 Sundm75 the first version + */ + +#include +#include +#include "ls1c_i2c.h" +#include "../libraries/ls1c_pin.h" + +#ifdef RT_USING_I2C + +struct ls1c_i2c_bus +{ + struct rt_i2c_bus_device parent; + rt_uint32_t u32Module; +}; + +rt_size_t rt_i2c_master_xfer(struct rt_i2c_bus_device *bus, + struct rt_i2c_msg *msgs, + rt_uint32_t num) +{ + struct ls1c_i2c_bus * i2c_bus = (struct ls1c_i2c_bus *)bus; + ls1c_i2c_info_t i2c_info; + struct rt_i2c_msg *msg; + int i; + rt_int32_t ret = RT_EOK; + i2c_info.clock = 50000; // 50kb/s + i2c_info.I2Cx = i2c_bus->u32Module; + i2c_init(&i2c_info); + + for (i = 0; i < num; i++) + { + msg = &msgs[i]; + if (msg->flags == RT_I2C_RD) + { + i2c_send_start_and_addr(&i2c_info, msg->addr, LS1C_I2C_DIRECTION_READ); + i2c_receive_ack(&i2c_info); + i2c_receive_data(&i2c_info, (rt_uint8_t *)msg->buf, msg->len); + i2c_send_stop(&i2c_info); + } + else if(msg->flags == RT_I2C_WR) + { + i2c_send_start_and_addr(&i2c_info, msg->addr, LS1C_I2C_DIRECTION_WRITE); + i2c_receive_ack(&i2c_info); + i2c_send_data(&i2c_info, (rt_uint8_t *)msg->buf, msg->len); + i2c_send_stop(&i2c_info); + } + ret++; + } + return ret; +} + +rt_err_t rt_i2c_bus_control(struct rt_i2c_bus_device *bus, + rt_uint32_t cmd, + rt_uint32_t arg) +{ + struct ls1c_i2c_bus * i2c_bus = (struct ls1c_i2c_bus *)bus; + + RT_ASSERT(bus != RT_NULL); + i2c_bus = (struct ls1c_i2c_bus *)bus->parent.user_data; + + RT_ASSERT(i2c_bus != RT_NULL); + + switch (cmd) + { + case RT_DEVICE_CTRL_CONFIG : + break; + } + + return RT_EOK; +} + +static const struct rt_i2c_bus_device_ops ls1c_i2c_ops = +{ + rt_i2c_master_xfer, + RT_NULL, + rt_i2c_bus_control +}; + + +#ifdef RT_USING_I2C0 +static struct ls1c_i2c_bus ls1c_i2c_bus_0 = +{ + {1}, + LS1C_I2C_0, +}; +#endif + +#ifdef RT_USING_I2C1 +static struct ls1c_i2c_bus ls1c_i2c_bus_1 = +{ + {1}, + LS1C_I2C_1, +}; +#endif + +#ifdef RT_USING_I2C2 +static struct ls1c_i2c_bus ls1c_i2c_bus_2 = +{ + {1}, + LS1C_I2C_2, +}; +#endif + +int ls1c_hw_i2c_init(void) +{ + struct ls1c_i2c_bus* ls1c_i2c; + +#ifdef RT_USING_I2C0 +/* + pin_set_purpose(2, PIN_PURPOSE_OTHER); + pin_set_purpose(3, PIN_PURPOSE_OTHER); + pin_set_remap(2, PIN_REMAP_SECOND); + pin_set_remap(3, PIN_REMAP_SECOND); + */ +#endif +#ifdef RT_USING_I2C1 + pin_set_purpose(2, PIN_PURPOSE_OTHER); + pin_set_purpose(3, PIN_PURPOSE_OTHER); + pin_set_remap(2, PIN_REMAP_SECOND); + pin_set_remap(3, PIN_REMAP_SECOND); +#endif +#ifdef RT_USING_I2C2 + pin_set_purpose(51, PIN_PURPOSE_OTHER); + pin_set_purpose(50, PIN_PURPOSE_OTHER); + pin_set_remap(51, PIN_REMAP_FOURTH); + pin_set_remap(50, PIN_REMAP_FOURTH); +#endif + + +#ifdef RT_USING_I2C0 + ls1c_i2c = &ls1c_i2c_bus_0; + ls1c_i2c->parent.ops = &ls1c_i2c_ops; + rt_i2c_bus_device_register(&ls1c_i2c->parent, "i2c0"); + rt_kprintf("i2c0_init!\n"); +#endif +#ifdef RT_USING_I2C1 + ls1c_i2c = &ls1c_i2c_bus_1; + ls1c_i2c->parent.ops = &ls1c_i2c_ops; + rt_i2c_bus_device_register(&ls1c_i2c->parent, "i2c1"); + rt_kprintf("i2c1_init!\n"); +#endif + +#ifdef RT_USING_I2C2 + ls1c_i2c = &ls1c_i2c_bus_2; + ls1c_i2c->parent.ops = &ls1c_i2c_ops; + rt_i2c_bus_device_register(&ls1c_i2c->parent, "i2c2"); + rt_kprintf("i2c2_init!\n"); +#endif + + return RT_EOK; +} + +INIT_BOARD_EXPORT(ls1c_hw_i2c_init); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/hw_i2c.h b/bsp/loongson/ls1cdev/drivers/hw_i2c.h new file mode 100644 index 0000000000..cc3e25506f --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/hw_i2c.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-01-04 Sundm75 the first version + */ + +#ifndef LS1C_I2C_H +#define LS1C_I2C_H + +#include + +int rt_i2c_init(void); + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/net/SConscript b/bsp/loongson/ls1cdev/drivers/net/SConscript new file mode 100644 index 0000000000..7e5532099e --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/SConscript @@ -0,0 +1,17 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +CPPPATH = [cwd] + +if GetDepend('RT_USING_LWIP') == False: + SrcRemove(src, 'mii.c') + SrcRemove(src, 'synopGMAC.c') + SrcRemove(src, 'synopGMAC_Dev.c') + SrcRemove(src, 'synopGMAC_plat.c') + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + + +Return('group') diff --git a/bsp/loongson/ls1cdev/drivers/net/mii.c b/bsp/loongson/ls1cdev/drivers/net/mii.c new file mode 100644 index 0000000000..43ade097cf --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/mii.c @@ -0,0 +1,136 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#include "mii.h" + + +static inline unsigned int mii_nway_result (unsigned int negotiated) +{ + unsigned int ret; + + if (negotiated & LPA_100FULL) + ret = LPA_100FULL; + else if (negotiated & LPA_100BASE4) + ret = LPA_100BASE4; + else if (negotiated & LPA_100HALF) + ret = LPA_100HALF; + else if (negotiated & LPA_10FULL) + ret = LPA_10FULL; + else + ret = LPA_10HALF; + + return ret; +} + +static int mii_check_gmii_support(struct mii_if_info *mii) +{ + int reg; + + reg = mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); + if (reg & BMSR_ESTATEN) { + reg = mii->mdio_read(mii->dev, mii->phy_id, MII_ESTATUS); + if (reg & (ESTATUS_1000_TFULL | ESTATUS_1000_THALF)) + return 1; + } + + return 0; +} + +static int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) +{ + struct synopGMACNetworkAdapter * dev = mii->dev; + u32 advert, bmcr, lpa, nego; + u32 advert2 = 0, bmcr2 = 0, lpa2 = 0; + + ecmd->supported = + (SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | + SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full | + SUPPORTED_Autoneg | SUPPORTED_TP | SUPPORTED_MII); + if (mii->supports_gmii) + ecmd->supported |= SUPPORTED_1000baseT_Half | + SUPPORTED_1000baseT_Full; + + /* only supports twisted-pair */ + ecmd->port = PORT_MII; + + /* only supports internal transceiver */ + ecmd->transceiver = XCVR_INTERNAL; + + /* this isn't fully supported at higher layers */ + ecmd->phy_address = mii->phy_id; + + ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; + advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); + if (mii->supports_gmii) + advert2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); + + if (advert & ADVERTISE_10HALF) + ecmd->advertising |= ADVERTISED_10baseT_Half; + if (advert & ADVERTISE_10FULL) + ecmd->advertising |= ADVERTISED_10baseT_Full; + if (advert & ADVERTISE_100HALF) + ecmd->advertising |= ADVERTISED_100baseT_Half; + if (advert & ADVERTISE_100FULL) + ecmd->advertising |= ADVERTISED_100baseT_Full; + if (advert2 & ADVERTISE_1000HALF) + ecmd->advertising |= ADVERTISED_1000baseT_Half; + if (advert2 & ADVERTISE_1000FULL) + ecmd->advertising |= ADVERTISED_1000baseT_Full; + + bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); + lpa = mii->mdio_read(dev, mii->phy_id, MII_LPA); + if (mii->supports_gmii) { + bmcr2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); + lpa2 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); + } + if (bmcr & BMCR_ANENABLE) { + ecmd->advertising |= ADVERTISED_Autoneg; + ecmd->autoneg = AUTONEG_ENABLE; + + nego = mii_nway_result(advert & lpa); + if ((bmcr2 & (ADVERTISE_1000HALF | ADVERTISE_1000FULL)) & + (lpa2 >> 2)) + ecmd->speed = SPEED_1000; + else if (nego == LPA_100FULL || nego == LPA_100HALF) + ecmd->speed = SPEED_100; + else + ecmd->speed = SPEED_10; + if ((lpa2 & LPA_1000FULL) || nego == LPA_100FULL || + nego == LPA_10FULL) { + ecmd->duplex = DUPLEX_FULL; + mii->full_duplex = 1; + } else { + ecmd->duplex = DUPLEX_HALF; + mii->full_duplex = 0; + } + } else { + ecmd->autoneg = AUTONEG_DISABLE; + + ecmd->speed = ((bmcr & BMCR_SPEED1000 && + (bmcr & BMCR_SPEED100) == 0) ? SPEED_1000 : + (bmcr & BMCR_SPEED100) ? SPEED_100 : SPEED_10); + ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; + } + + /* ignore maxtxpkt, maxrxpkt for now */ + + return 0; +} + +static int mii_link_ok (struct mii_if_info *mii) +{ + /* first, a dummy read, needed to latch some MII phys */ + mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); + if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) + return 1; + return 0; +} + diff --git a/bsp/loongson/ls1cdev/drivers/net/mii.h b/bsp/loongson/ls1cdev/drivers/net/mii.h new file mode 100644 index 0000000000..24563834ec --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/mii.h @@ -0,0 +1,231 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#ifndef __MII_H__ +#define __MII_H__ +/* Generic MII registers. */ + +#include "synopGMAC_types.h" + +#define MII_BMCR 0x00 /* Basic mode control register */ +#define MII_BMSR 0x01 /* Basic mode status register */ +#define MII_PHYSID1 0x02 /* PHYS ID 1 */ +#define MII_PHYSID2 0x03 /* PHYS ID 2 */ +#define MII_ADVERTISE 0x04 /* Advertisement control reg */ +#define MII_LPA 0x05 /* Link partner ability reg */ +#define MII_EXPANSION 0x06 /* Expansion register */ +#define MII_CTRL1000 0x09 /* 1000BASE-T control */ +#define MII_STAT1000 0x0a /* 1000BASE-T status */ +#define MII_ESTATUS 0x0f /* Extended Status */ +#define MII_DCOUNTER 0x12 /* Disconnect counter */ +#define MII_FCSCOUNTER 0x13 /* False carrier counter */ +#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ +#define MII_RERRCOUNTER 0x15 /* Receive error counter */ +#define MII_SREVISION 0x16 /* Silicon revision */ +#define MII_RESV1 0x17 /* Reserved... */ +#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ +#define MII_PHYADDR 0x19 /* PHY address */ +#define MII_RESV2 0x1a /* Reserved... */ +#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ +#define MII_NCONFIG 0x1c /* Network interface config */ + +/* Basic mode control register. */ +#define BMCR_RESV 0x003f /* Unused... */ +#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ +#define BMCR_CTST 0x0080 /* Collision test */ +#define BMCR_FULLDPLX 0x0100 /* Full duplex */ +#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ +#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ +#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ +#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ +#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ +#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ +#define BMCR_RESET 0x8000 /* Reset the DP83840 */ + +/* Basic mode status register. */ +#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ +#define BMSR_JCD 0x0002 /* Jabber detected */ +#define BMSR_LSTATUS 0x0004 /* Link status */ +#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ +#define BMSR_RFAULT 0x0010 /* Remote fault detected */ +#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ +#define BMSR_RESV 0x00c0 /* Unused... */ +#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ +#define BMSR_100FULL2 0x0200 /* Can do 100BASE-T2 HDX */ +#define BMSR_100HALF2 0x0400 /* Can do 100BASE-T2 FDX */ +#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ +#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ +#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ +#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ +#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ + +/* Advertisement control register. */ +#define ADVERTISE_SLCT 0x001f /* Selector bits */ +#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ +#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ +#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ +#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ +#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ +#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ +#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ +#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ +#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ +#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ +#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ +#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ +#define ADVERTISE_RESV 0x1000 /* Unused... */ +#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ +#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ +#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ + +#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ + ADVERTISE_CSMA) +#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ + ADVERTISE_100HALF | ADVERTISE_100FULL) + +/* Indicates what features are advertised by the interface. */ +#define ADVERTISED_10baseT_Half (1 << 0) +#define ADVERTISED_10baseT_Full (1 << 1) +#define ADVERTISED_100baseT_Half (1 << 2) +#define ADVERTISED_100baseT_Full (1 << 3) +#define ADVERTISED_1000baseT_Half (1 << 4) +#define ADVERTISED_1000baseT_Full (1 << 5) +#define ADVERTISED_Autoneg (1 << 6) +#define ADVERTISED_TP (1 << 7) +#define ADVERTISED_AUI (1 << 8) +#define ADVERTISED_MII (1 << 9) +#define ADVERTISED_FIBRE (1 << 10) +#define ADVERTISED_BNC (1 << 11) +#define ADVERTISED_10000baseT_Full (1 << 12) +#define ADVERTISED_Pause (1 << 13) +#define ADVERTISED_Asym_Pause (1 << 14) + +/* Link partner ability register. */ +#define LPA_SLCT 0x001f /* Same as advertise selector */ +#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ +#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ +#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ +#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ +#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ +#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ +#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ +#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ +#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ +#define LPA_PAUSE_CAP 0x0400 /* Can pause */ +#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ +#define LPA_RESV 0x1000 /* Unused... */ +#define LPA_RFAULT 0x2000 /* Link partner faulted */ +#define LPA_LPACK 0x4000 /* Link partner acked us */ +#define LPA_NPAGE 0x8000 /* Next page bit */ + +#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) +#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) + +/* Expansion register for auto-negotiation. */ +#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ +#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ +#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ +#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ +#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ +#define EXPANSION_RESV 0xffe0 /* Unused... */ + +#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ +#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ + +/* N-way test register. */ +#define NWAYTEST_RESV1 0x00ff /* Unused... */ +#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ +#define NWAYTEST_RESV2 0xfe00 /* Unused... */ + +/* 1000BASE-T Control register */ +#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ +#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ + +/* 1000BASE-T Status register */ +#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ +#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ +#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ + +#define SUPPORTED_10baseT_Half (1 << 0) +#define SUPPORTED_10baseT_Full (1 << 1) +#define SUPPORTED_100baseT_Half (1 << 2) +#define SUPPORTED_100baseT_Full (1 << 3) +#define SUPPORTED_1000baseT_Half (1 << 4) +#define SUPPORTED_1000baseT_Full (1 << 5) +#define SUPPORTED_Autoneg (1 << 6) +#define SUPPORTED_TP (1 << 7) +#define SUPPORTED_AUI (1 << 8) +#define SUPPORTED_MII (1 << 9) +#define SUPPORTED_FIBRE (1 << 10) +#define SUPPORTED_BNC (1 << 11) +#define SUPPORTED_10000baseT_Full (1 << 12) +#define SUPPORTED_Pause (1 << 13) +#define SUPPORTED_Asym_Pause (1 << 14) + + +/* Which connector port. */ +#define PORT_TP 0x00 +#define PORT_AUI 0x01 +#define PORT_MII 0x02 +#define PORT_FIBRE 0x03 +#define PORT_BNC 0x04 + +/* Which transceiver to use. */ +#define XCVR_INTERNAL 0x00 +#define XCVR_EXTERNAL 0x01 +#define XCVR_DUMMY1 0x02 +#define XCVR_DUMMY2 0x03 +#define XCVR_DUMMY3 0x04 + +#define AUTONEG_DISABLE 0x00 +#define AUTONEG_ENABLE 0x01 + + +#define SPEED_10 10 +#define SPEED_100 100 +#define SPEED_1000 1000 +#define SPEED_2500 2500 +#define SPEED_10000 10000 + +#define DUPLEX_HALF 0x00 +#define DUPLEX_FULL 0x01 + +struct ethtool_cmd { + u32 cmd; + u32 supported; /* Features this interface supports */ + u32 advertising; /* Features this interface advertises */ + u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */ + u8 duplex; /* Duplex, half or full */ + u8 port; /* Which connector port */ + u8 phy_address; + u8 transceiver; /* Which transceiver to use */ + u8 autoneg; /* Enable or disable autonegotiation */ + u32 maxtxpkt; /* Tx pkts before generating tx int */ + u32 maxrxpkt; /* Rx pkts before generating rx int */ + u32 reserved[4]; +}; + +struct mii_if_info { + int phy_id; + int advertising; + int phy_id_mask; + int reg_num_mask; + + unsigned int full_duplex : 1; /* is full duplex? */ + unsigned int force_media : 1; /* is autoneg. disabled? */ + unsigned int supports_gmii : 1; /* are GMII registers supported? */ + + struct synopGMACNetworkAdapter *dev; + int (*mdio_read) (struct synopGMACNetworkAdapter *dev, int phy_id, int location); + void (*mdio_write) (struct synopGMACNetworkAdapter *dev, int phy_id, int location, int val); +}; + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC.c b/bsp/loongson/ls1cdev/drivers/net/synopGMAC.c new file mode 100644 index 0000000000..da8c3c89fb --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC.c @@ -0,0 +1,964 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#include +#include +//#include + +#include "synopGMAC.h" +#include "mii.c" +#include "synopGMAC_debug.h" +#include +#include "ls1c_pin.h" + +#define RMII + +#define Gmac_base 0xbfe10000 +#define Buffer_Size 2048 +#define MAX_ADDR_LEN 6 +#define NAMESIZE 16 + +#define LS1B_GMAC0_IRQ 34 +#define BUS_SIZE_ALIGN(x) ((x+15)&~15) + +#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} + +u32 regbase = 0xbfe10000; +static u32 GMAC_Power_down; +extern void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) ; +extern s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) ; +extern int init_phy(synopGMACdevice *gmacdev); +dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, u32 size); + +void eth_rx_irq(int irqno, void *param); +static char Rx_Buffer[Buffer_Size]; +static char Tx_Buffer[Buffer_Size]; + +struct rt_eth_dev +{ + struct eth_device parent; + rt_uint8_t dev_addr[MAX_ADDR_LEN]; + char *name; + int iobase; + int state; + int index; + struct rt_timer link_timer; + struct rt_timer rx_poll_timer; + void *priv; +}; +static struct rt_eth_dev eth_dev; +static struct rt_semaphore sem_ack, sem_lock; + +/** + * This sets up the transmit Descriptor queue in ring or chain mode. + * This function is tightly coupled to the platform and operating system + * Device is interested only after the descriptors are setup. Therefore this function + * is not included in the device driver API. This function should be treated as an + * example code to design the descriptor structures for ring mode or chain mode. + * This function depends on the pcidev structure for allocation consistent dma-able memory in case + * of linux. + * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory + * - Allocates the memory for the descriptors. + * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). + * - Initialize the Busy and Next descriptors to first descriptor address. + * - Initialize the last descriptor with the endof ring in case of ring mode. + * - Initialize the descriptors in chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] pointer to pci_device structure. + * @param[in] number of descriptor expected in tx descriptor queue. + * @param[in] whether descriptors to be created in RING mode or CHAIN mode. + * \return 0 upon success. Error code upon failure. + * \note This function fails if allocation fails for required number of descriptors in Ring mode, + * but in chain mode + * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from + * this function + * user should for gmacdev->TxDescCount to see how many descriptors are there in the chain. Should + * continue further + * only if the number of descriptors in the chain meets the requirements + */ +s32 synopGMAC_setup_tx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) +{ + s32 i; + DmaDesc *bf1; + + DmaDesc *first_desc = NULL; + + dma_addr_t dma_addr; + gmacdev->TxDescCount = 0; + + first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * no_of_desc, &dma_addr); + if (first_desc == NULL) + { + rt_kprintf("Error in Tx Descriptors memory allocation\n"); + return -ESYNOPGMACNOMEM; + } + + DEBUG_MES("tx_first_desc_addr = %p\n", first_desc); + DEBUG_MES("dmaadr = %p\n", dma_addr); + gmacdev->TxDescCount = no_of_desc; + gmacdev->TxDesc = first_desc; + gmacdev->TxDescDma = dma_addr; + + for (i = 0; i < gmacdev->TxDescCount; i++) + { + synopGMAC_tx_desc_init_ring(gmacdev->TxDesc + i, i == gmacdev->TxDescCount - 1); +#if SYNOP_TOP_DEBUG + rt_kprintf("\n%02d %08x \n", i, (unsigned int)(gmacdev->TxDesc + i)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i))->status); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->length)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer1)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer2)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data1)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data2)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy1)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy2)); +#endif + } + + gmacdev->TxNext = 0; + gmacdev->TxBusy = 0; + gmacdev->TxNextDesc = gmacdev->TxDesc; + gmacdev->TxBusyDesc = gmacdev->TxDesc; + gmacdev->BusyTxDesc = 0; + + return -ESYNOPGMACNOERR; +} + +/** + * This sets up the receive Descriptor queue in ring or chain mode. + * This function is tightly coupled to the platform and operating system + * Device is interested only after the descriptors are setup. Therefore this function + * is not included in the device driver API. This function should be treated as an + * example code to design the descriptor structures in ring mode or chain mode. + * This function depends on the pcidev structure for allocation of consistent dma-able memory in + * case of linux. + * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory + * - Allocates the memory for the descriptors. + * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). + * - Initialize the Busy and Next descriptors to first descriptor address. + * - Initialize the last descriptor with the endof ring in case of ring mode. + * - Initialize the descriptors in chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] pointer to pci_device structure. + * @param[in] number of descriptor expected in rx descriptor queue. + * @param[in] whether descriptors to be created in RING mode or CHAIN mode. + * \return 0 upon success. Error code upon failure. + * \note This function fails if allocation fails for required number of descriptors in Ring mode, + * but in chain mode + * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from + * this function + * user should for gmacdev->RxDescCount to see how many descriptors are there in the chain. Should + * continue further + * only if the number of descriptors in the chain meets the requirements + */ +s32 synopGMAC_setup_rx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) +{ + s32 i; + DmaDesc *bf1; + DmaDesc *first_desc = NULL; + + dma_addr_t dma_addr; + + gmacdev->RxDescCount = 0; + first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * no_of_desc, &dma_addr); + if (first_desc == NULL) + { + rt_kprintf("Error in Rx Descriptor Memory allocation in Ring mode\n"); + return -ESYNOPGMACNOMEM; + } + + DEBUG_MES("rx_first_desc_addr = %p\n", first_desc); + DEBUG_MES("dmaadr = %p\n", dma_addr); + gmacdev->RxDescCount = no_of_desc; + gmacdev->RxDesc = (DmaDesc *)first_desc; + gmacdev->RxDescDma = dma_addr; + + for (i = 0; i < gmacdev->RxDescCount; i++) + { + synopGMAC_rx_desc_init_ring(gmacdev->RxDesc + i, i == gmacdev->RxDescCount - 1); + + } + + gmacdev->RxNext = 0; + gmacdev->RxBusy = 0; + gmacdev->RxNextDesc = gmacdev->RxDesc; + gmacdev->RxBusyDesc = gmacdev->RxDesc; + + gmacdev->BusyRxDesc = 0; + + return -ESYNOPGMACNOERR; +} + +void synopGMAC_linux_cable_unplug_function(void *adaptr) +{ + s32 data; + synopGMACPciNetworkAdapter *adapter = (synopGMACPciNetworkAdapter *)adaptr; + synopGMACdevice *gmacdev = adapter->synopGMACdev; + struct ethtool_cmd cmd; + + //rt_kprintf("%s\n",__FUNCTION__); + if (!mii_link_ok(&adapter->mii)) + { + if (gmacdev->LinkState) + rt_kprintf("\r\nNo Link\r\n"); + gmacdev->DuplexMode = 0; + gmacdev->Speed = 0; + gmacdev->LoopBackMode = 0; + gmacdev->LinkState = 0; + } + else + { + data = synopGMAC_check_phy_init(adapter); + + if (gmacdev->LinkState != data) + { + gmacdev->LinkState = data; + synopGMAC_mac_init(gmacdev); + rt_kprintf("Link is up in %s mode\n", (gmacdev->DuplexMode == FULLDUPLEX) ? "FULL DUPLEX" : "HALF DUPLEX"); + if (gmacdev->Speed == SPEED1000) + rt_kprintf("Link is with 1000M Speed \r\n"); + if (gmacdev->Speed == SPEED100) + rt_kprintf("Link is with 100M Speed \n"); + if (gmacdev->Speed == SPEED10) + rt_kprintf("Link is with 10M Speed \n"); + } + } +} + +s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) +{ + struct ethtool_cmd cmd; + synopGMACdevice *gmacdev = adapter->synopGMACdev; + + if (!mii_link_ok(&adapter->mii)) + { + gmacdev->DuplexMode = FULLDUPLEX; + gmacdev->Speed = SPEED100; + + return 0; + } + else + { + mii_ethtool_gset(&adapter->mii, &cmd); + + gmacdev->DuplexMode = (cmd.duplex == DUPLEX_FULL) ? FULLDUPLEX : HALFDUPLEX ; + if (cmd.speed == SPEED_1000) + gmacdev->Speed = SPEED1000; + else if (cmd.speed == SPEED_100) + gmacdev->Speed = SPEED100; + else + gmacdev->Speed = SPEED10; + } + + return gmacdev->Speed | (gmacdev->DuplexMode << 4); +} + + +static int Mac_change_check(u8 *macaddr0, u8 *macaddr1) +{ + int i; + for (i = 0; i < 6; i++) + { + if (macaddr0[i] != macaddr1[i]) + return 1; + } + return 0; +} + +static rt_err_t eth_init(rt_device_t device) +{ + struct eth_device *eth_device = (struct eth_device *)device; + RT_ASSERT(eth_device != RT_NULL); + + s32 ijk; + s32 status = 0; + u64 dma_addr; + u32 Mac_changed = 0; + struct pbuf *pbuf; + u8 macaddr[6] = DEFAULT_MAC_ADDRESS; + struct rt_eth_dev *dev = ð_dev; + struct synopGMACNetworkAdapter *adapter = dev->priv; + synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; + + synopGMAC_reset(gmacdev); + synopGMAC_attach(gmacdev, (regbase + MACBASE), (regbase + DMABASE), DEFAULT_PHY_BASE, macaddr); + + synopGMAC_read_version(gmacdev); + + synopGMAC_set_mdc_clk_div(gmacdev, GmiiCsrClk3); + gmacdev->ClockDivMdc = synopGMAC_get_mdc_clk_div(gmacdev); + + init_phy(adapter->synopGMACdev); + + DEBUG_MES("tx desc_queue\n"); + synopGMAC_setup_tx_desc_queue(gmacdev, TRANSMIT_DESC_SIZE, RINGMODE); + synopGMAC_init_tx_desc_base(gmacdev); + + DEBUG_MES("rx desc_queue\n"); + synopGMAC_setup_rx_desc_queue(gmacdev, RECEIVE_DESC_SIZE, RINGMODE); + synopGMAC_init_rx_desc_base(gmacdev); + DEBUG_MES("DmaRxBaseAddr = %08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxBaseAddr)); + +// u32 dmaRx_Base_addr = synopGMACReadReg(gmacdev->DmaBase,DmaRxBaseAddr); +// rt_kprintf("first_desc_addr = 0x%x\n", dmaRx_Base_addr); + +#ifdef ENH_DESC_8W + synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength32 | DmaDescriptorSkip2 | DmaDescriptor8Words); +#else + //synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip1); + synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip2); +#endif + synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward | DmaTxSecondFrame | DmaRxThreshCtrl128); + + status = synopGMAC_check_phy_init(adapter); + synopGMAC_mac_init(gmacdev); + + synopGMAC_pause_control(gmacdev); + +#ifdef IPC_OFFLOAD + synopGMAC_enable_rx_chksum_offload(gmacdev); + synopGMAC_rx_tcpip_chksum_drop_enable(gmacdev); +#endif + + u32 skb; + do + { + skb = (u32)plat_alloc_memory(RX_BUF_SIZE); //should skb aligned here? + if (skb == RT_NULL) + { + rt_kprintf("ERROR in skb buffer allocation\n"); + break; + } + + dma_addr = plat_dma_map_single(gmacdev, (void *)skb, RX_BUF_SIZE); //获取 skb 的 dma 地址 + + status = synopGMAC_set_rx_qptr(gmacdev, dma_addr, RX_BUF_SIZE, (u32)skb, 0, 0, 0); + if (status < 0) + { + rt_kprintf("status < 0!!\n"); + plat_free_memory((void *)skb); + } + } + while (status >= 0 && (status < (RECEIVE_DESC_SIZE - 1))); + + synopGMAC_clear_interrupt(gmacdev); + + synopGMAC_disable_mmc_tx_interrupt(gmacdev, 0xFFFFFFFF); + synopGMAC_disable_mmc_rx_interrupt(gmacdev, 0xFFFFFFFF); + synopGMAC_disable_mmc_ipc_rx_interrupt(gmacdev, 0xFFFFFFFF); + +// synopGMAC_disable_interrupt_all(gmacdev); + synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); + synopGMAC_enable_dma_rx(gmacdev); + synopGMAC_enable_dma_tx(gmacdev); + + plat_delay(DEFAULT_LOOP_VARIABLE); + synopGMAC_check_phy_init(adapter); + synopGMAC_mac_init(gmacdev); + + rt_timer_init(&dev->link_timer, "link_timer", + synopGMAC_linux_cable_unplug_function, + (void *)adapter, + RT_TICK_PER_SECOND, + RT_TIMER_FLAG_PERIODIC); + + rt_timer_start(&dev->link_timer); +#ifdef RT_USING_GMAC_INT_MODE + /* installl isr */ + DEBUG_MES("%s\n", __FUNCTION__); + rt_hw_interrupt_install(LS1C_MAC_IRQ, eth_rx_irq, RT_NULL, "e0_isr"); + rt_hw_interrupt_umask(LS1C_MAC_IRQ); +#else + rt_timer_init(&dev->rx_poll_timer, "rx_poll_timer", + eth_rx_irq, + (void *)adapter, + 1, + RT_TIMER_FLAG_PERIODIC); + + rt_timer_start(&dev->rx_poll_timer); +#endif /*RT_USING_GMAC_INT_MODE*/ + + rt_kprintf("eth_inited!\n"); + + return RT_EOK; +} + +static rt_err_t eth_open(rt_device_t dev, rt_uint16_t oflag) +{ + rt_kprintf("eth_open!!\n"); + + return RT_EOK; +} + +static rt_err_t eth_close(rt_device_t dev) +{ + return RT_EOK; +} + +static rt_size_t eth_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_size_t eth_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_err_t eth_control(rt_device_t dev, int cmd, void *args) +{ + switch (cmd) + { + case NIOCTL_GADDR: + if (args) rt_memcpy(args, eth_dev.dev_addr, 6); + else return -RT_ERROR; + break; + + default : + break; + } + return RT_EOK; +} + +rt_err_t rt_eth_tx(rt_device_t device, struct pbuf *p) +{ + /* lock eth device */ + rt_sem_take(&sem_lock, RT_WAITING_FOREVER); + + DEBUG_MES("in %s\n", __FUNCTION__); + + s32 status; + u32 pbuf; + u64 dma_addr; + u32 offload_needed = 0; + u32 index; + DmaDesc *dpr; + struct rt_eth_dev *dev = (struct rt_eth_dev *) device; + struct synopGMACNetworkAdapter *adapter; + synopGMACdevice *gmacdev; + adapter = (struct synopGMACNetworkAdapter *) dev->priv; + if (adapter == NULL) + return -1; + + gmacdev = (synopGMACdevice *) adapter->synopGMACdev; + if (gmacdev == NULL) + return -1; + + if (!synopGMAC_is_desc_owned_by_dma(gmacdev->TxNextDesc)) + { + + pbuf = (u32)plat_alloc_memory(p->tot_len); + //pbuf = (u32)pbuf_alloc(PBUF_LINK, p->len, PBUF_RAM); + if (pbuf == 0) + { + rt_kprintf("===error in alloc bf1\n"); + return -1; + } + + DEBUG_MES("p->len = %d\n", p->len); + pbuf_copy_partial(p, (void *)pbuf, p->tot_len, 0); + dma_addr = plat_dma_map_single(gmacdev, (void *)pbuf, p->tot_len); + + status = synopGMAC_set_tx_qptr(gmacdev, dma_addr, p->tot_len, pbuf, 0, 0, 0, offload_needed, &index, dpr); + if (status < 0) + { + rt_kprintf("%s No More Free Tx Descriptors\n", __FUNCTION__); + + plat_free_memory((void *)pbuf); + return -16; + } + } + synopGMAC_resume_dma_tx(gmacdev); + + s32 desc_index; + u32 data1, data2; + u32 dma_addr1, dma_addr2; + u32 length1, length2; +#ifdef ENH_DESC_8W + u32 ext_status; + u16 time_stamp_higher; + u32 time_stamp_high; + u32 time_stamp_low; +#endif + do + { +#ifdef ENH_DESC_8W + desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2, &ext_status, &time_stamp_high, &time_stamp_low); + synopGMAC_TS_read_timestamp_higher_val(gmacdev, &time_stamp_higher); +#else + desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2); +#endif + if (desc_index >= 0 && data1 != 0) + { +#ifdef IPC_OFFLOAD + if (synopGMAC_is_tx_ipv4header_checksum_error(gmacdev, status)) + { + rt_kprintf("Harware Failed to Insert IPV4 Header Checksum\n"); + } + if (synopGMAC_is_tx_payload_checksum_error(gmacdev, status)) + { + rt_kprintf("Harware Failed to Insert Payload Checksum\n"); + } +#endif + + plat_free_memory((void *)(data1)); //sw: data1 = buffer1 + + if (synopGMAC_is_desc_valid(status)) + { + adapter->synopGMACNetStats.tx_bytes += length1; + adapter->synopGMACNetStats.tx_packets++; + } + else + { + adapter->synopGMACNetStats.tx_errors++; + adapter->synopGMACNetStats.tx_aborted_errors += synopGMAC_is_tx_aborted(status); + adapter->synopGMACNetStats.tx_carrier_errors += synopGMAC_is_tx_carrier_error(status); + } + } + adapter->synopGMACNetStats.collisions += synopGMAC_get_tx_collision_count(status); + } + while (desc_index >= 0); + + /* unlock eth device */ + rt_sem_release(&sem_lock); +// rt_kprintf("output %d bytes\n", p->len); + u32 test_data; + test_data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + return RT_EOK; +} + +struct pbuf *rt_eth_rx(rt_device_t device) +{ + DEBUG_MES("%s : \n", __FUNCTION__); + struct rt_eth_dev *dev = ð_dev; + struct synopGMACNetworkAdapter *adapter; + synopGMACdevice *gmacdev; +// struct PmonInet * pinetdev; + s32 desc_index; + int i; + char *ptr; + u32 bf1; + u32 data1; + u32 data2; + u32 len; + u32 status; + u32 dma_addr1; + u32 dma_addr2; + struct pbuf *pbuf = RT_NULL; + rt_sem_take(&sem_lock, RT_WAITING_FOREVER); + + adapter = (struct synopGMACNetworkAdapter *) dev->priv; + if (adapter == NULL) + { + rt_kprintf("%S : Unknown Device !!\n", __FUNCTION__); + return NULL; + } + + gmacdev = (synopGMACdevice *) adapter->synopGMACdev; + if (gmacdev == NULL) + { + rt_kprintf("%s : GMAC device structure is missing\n", __FUNCTION__); + return NULL; + } + + /*Handle the Receive Descriptors*/ + desc_index = synopGMAC_get_rx_qptr(gmacdev, &status, &dma_addr1, NULL, &data1, &dma_addr2, NULL, &data2); + if (desc_index >= 0 && data1 != 0) + { + DEBUG_MES("Received Data at Rx Descriptor %d for skb 0x%08x whose status is %08x\n", desc_index, dma_addr1, status); + if (synopGMAC_is_rx_desc_valid(status) || SYNOP_PHY_LOOPBACK) + { + dma_addr1 = plat_dma_map_single(gmacdev, (void *)data1, RX_BUF_SIZE); + len = synopGMAC_get_rx_desc_frame_length(status)-4; //Not interested in Ethernet CRC bytes + pbuf = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); + if (pbuf == 0) rt_kprintf("===error in pbuf_alloc\n"); + rt_memcpy(pbuf->payload, (char *)data1, len); + DEBUG_MES("==get pkg len: %d\n", len); + } + else + { + rt_kprintf("s: %08x\n", status); + adapter->synopGMACNetStats.rx_errors++; + adapter->synopGMACNetStats.collisions += synopGMAC_is_rx_frame_collision(status); + adapter->synopGMACNetStats.rx_crc_errors += synopGMAC_is_rx_crc(status); + adapter->synopGMACNetStats.rx_frame_errors += synopGMAC_is_frame_dribbling_errors(status); + adapter->synopGMACNetStats.rx_length_errors += synopGMAC_is_rx_frame_length_errors(status); + } + desc_index = synopGMAC_set_rx_qptr(gmacdev, dma_addr1, RX_BUF_SIZE, (u32)data1, 0, 0, 0); + if (desc_index < 0) + { +#if SYNOP_RX_DEBUG + rt_kprintf("Cannot set Rx Descriptor for data1 %08x\n", (u32)data1); +#endif + plat_free_memory((void *)data1); + } + } + rt_sem_release(&sem_lock); + DEBUG_MES("%s : before return \n", __FUNCTION__); + return pbuf; +} + +static int rtl88e1111_config_init(synopGMACdevice *gmacdev) +{ + int retval, err; + u16 data; + + DEBUG_MES("in %s\n", __FUNCTION__); + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); + data = data | 0x82; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, &data); + data = data | 0x8000; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); +#if SYNOP_PHY_LOOPBACK + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); + data = data | 0x70; + data = data & 0xffdf; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); + data = 0x8000; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); + data = 0x5140; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); +#endif + if (err < 0) + return err; + return 0; +} + +int init_phy(synopGMACdevice *gmacdev) +{ + u16 data; + + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 2, &data); + /*set 88e1111 clock phase delay*/ + if (data == 0x141) + rtl88e1111_config_init(gmacdev); +#if defined (RMII) + else if (data == 0x8201) + { + //RTL8201 + data = 0x400; // set RMII mode + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, data); + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, &data); + TR("phy reg25 is %0x \n", data); + + data = 0x3100; //set 100M speed + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); + } + else if (data == 0x0180 || data == 0x0181) + { + //DM9161 + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); + data |= (1 << 8); //set RMII mode + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, data); //set RMII mode + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); + TR("phy reg16 is 0x%0x \n", data); + + // synopGMAC_read_phy_reg(gmacdev->MacBase,gmacdev->PhyBase,0x0,&data); + // data &= ~(1<<10); + data = 0x3100; //set auto- + //data = 0x0100; //set 10M speed + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); + } +#endif + + return 0; +} + +u32 synopGMAC_wakeup_filter_config3[] = +{ + 0x00000000, + 0x000000FF, + 0x00000000, + 0x00000000, + 0x00000100, + 0x00003200, + 0x7eED0000, + 0x00000000 +}; + +static void synopGMAC_linux_powerdown_mac(synopGMACdevice *gmacdev) +{ + rt_kprintf("Put the GMAC to power down mode..\n"); + + GMAC_Power_down = 1; + + synopGMAC_disable_dma_tx(gmacdev); + plat_delay(10000); + + synopGMAC_tx_disable(gmacdev); + synopGMAC_rx_disable(gmacdev); + plat_delay(10000); + + synopGMAC_disable_dma_rx(gmacdev); + + synopGMAC_magic_packet_enable(gmacdev); + synopGMAC_write_wakeup_frame_register(gmacdev, synopGMAC_wakeup_filter_config3); + + synopGMAC_wakeup_frame_enable(gmacdev); + + synopGMAC_rx_enable(gmacdev); + + synopGMAC_pmt_int_enable(gmacdev); + + synopGMAC_power_down_enable(gmacdev); + return; +} + +static void synopGMAC_linux_powerup_mac(synopGMACdevice *gmacdev) +{ + GMAC_Power_down = 0; + if (synopGMAC_is_magic_packet_received(gmacdev)) + rt_kprintf("GMAC wokeup due to Magic Pkt Received\n"); + if (synopGMAC_is_wakeup_frame_received(gmacdev)) + rt_kprintf("GMAC wokeup due to Wakeup Frame Received\n"); + + synopGMAC_pmt_int_disable(gmacdev); + + synopGMAC_rx_enable(gmacdev); + synopGMAC_enable_dma_rx(gmacdev); + + synopGMAC_tx_enable(gmacdev); + synopGMAC_enable_dma_tx(gmacdev); + return; +} + + +static int mdio_read(synopGMACPciNetworkAdapter *adapter, int addr, int reg) +{ + synopGMACdevice *gmacdev; + u16 data; + gmacdev = adapter->synopGMACdev; + + synopGMAC_read_phy_reg(gmacdev->MacBase, addr, reg, &data); + return data; +} + +static void mdio_write(synopGMACPciNetworkAdapter *adapter, int addr, int reg, int data) +{ + synopGMACdevice *gmacdev; + gmacdev = adapter->synopGMACdev; + synopGMAC_write_phy_reg(gmacdev->MacBase, addr, reg, data); +} + +void eth_rx_irq(int irqno, void *param) +{ + struct rt_eth_dev *dev = ð_dev; + struct synopGMACNetworkAdapter *adapter = dev->priv; + //DEBUG_MES("in irq!!\n"); +#ifdef RT_USING_GMAC_INT_MODE + int i ; + for (i = 0; i < 7200; i++) + ; +#endif /*RT_USING_GMAC_INT_MODE*/ + synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; + + u32 interrupt, dma_status_reg; + s32 status; + u32 dma_addr; + + //rt_kprintf("irq i = %d\n", i++); + dma_status_reg = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + if (dma_status_reg == 0) + { + rt_kprintf("dma_status ==0 \n"); + return; + } + + //rt_kprintf("dma_status_reg is 0x%x\n", dma_status_reg); + u32 gmacstatus; + synopGMAC_disable_interrupt_all(gmacdev); + gmacstatus = synopGMACReadReg(gmacdev->MacBase, GmacStatus); + + if (dma_status_reg & GmacPmtIntr) + { + rt_kprintf("%s:: Interrupt due to PMT module\n", __FUNCTION__); + //synopGMAC_linux_powerup_mac(gmacdev); + } + if (dma_status_reg & GmacMmcIntr) + { + rt_kprintf("%s:: Interrupt due to MMC module\n", __FUNCTION__); + DEBUG_MES("%s:: synopGMAC_rx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_rx_int_status(gmacdev)); + DEBUG_MES("%s:: synopGMAC_tx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_tx_int_status(gmacdev)); + } + + if (dma_status_reg & GmacLineIntfIntr) + { + rt_kprintf("%s:: Interrupt due to GMAC LINE module\n", __FUNCTION__); + } + + interrupt = synopGMAC_get_interrupt_type(gmacdev); + //rt_kprintf("%s:Interrupts to be handled: 0x%08x\n",__FUNCTION__,interrupt); + if (interrupt & synopGMACDmaError) + { + u8 mac_addr0[6]; + rt_kprintf("%s::Fatal Bus Error Inetrrupt Seen\n", __FUNCTION__); + + memcpy(mac_addr0, dev->dev_addr, 6); + synopGMAC_disable_dma_tx(gmacdev); + synopGMAC_disable_dma_rx(gmacdev); + + synopGMAC_take_desc_ownership_tx(gmacdev); + synopGMAC_take_desc_ownership_rx(gmacdev); + + synopGMAC_init_tx_rx_desc_queue(gmacdev); + + synopGMAC_reset(gmacdev); + + synopGMAC_set_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr0); + synopGMAC_dma_bus_mode_init(gmacdev, DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip2); + synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward); + synopGMAC_init_rx_desc_base(gmacdev); + synopGMAC_init_tx_desc_base(gmacdev); + synopGMAC_mac_init(gmacdev); + synopGMAC_enable_dma_rx(gmacdev); + synopGMAC_enable_dma_tx(gmacdev); + + } + if (interrupt & synopGMACDmaRxNormal) + { + //DEBUG_MES("%s:: Rx Normal \n", __FUNCTION__); + //synop_handle_received_data(netdev); + eth_device_ready(ð_dev.parent); + } + if (interrupt & synopGMACDmaRxAbnormal) + { + //rt_kprintf("%s::Abnormal Rx Interrupt Seen\n",__FUNCTION__); + if (GMAC_Power_down == 0) + { + adapter->synopGMACNetStats.rx_over_errors++; + synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, 0x80); + synopGMAC_resume_dma_rx(gmacdev); + } + } + if (interrupt & synopGMACDmaRxStopped) + { + rt_kprintf("%s::Receiver stopped seeing Rx interrupts\n", __FUNCTION__); //Receiver gone in to stopped state + } + + if (interrupt & synopGMACDmaTxNormal) + { + DEBUG_MES("%s::Finished Normal Transmission \n", __FUNCTION__); + // synop_handle_transmit_over(netdev); + } + + if (interrupt & synopGMACDmaTxAbnormal) + { + rt_kprintf("%s::Abnormal Tx Interrupt Seen\n", __FUNCTION__); + } + if (interrupt & synopGMACDmaTxStopped) + { + TR("%s::Transmitter stopped sending the packets\n", __FUNCTION__); + if (GMAC_Power_down == 0) // If Mac is not in powerdown + { + synopGMAC_disable_dma_tx(gmacdev); + synopGMAC_take_desc_ownership_tx(gmacdev); + + synopGMAC_enable_dma_tx(gmacdev); + // netif_wake_queue(netdev); + TR("%s::Transmission Resumed\n", __FUNCTION__); + } + } + /* Enable the interrrupt before returning from ISR*/ + synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); + + return; +} + +int rt_hw_eth_init(void) +{ + u64 base_addr = Gmac_base; + struct synopGMACNetworkAdapter *synopGMACadapter; + static u8 mac_addr0[6] = DEFAULT_MAC_ADDRESS; + int index; + + rt_sem_init(&sem_ack, "tx_ack", 1, RT_IPC_FLAG_FIFO); + rt_sem_init(&sem_lock, "eth_lock", 1, RT_IPC_FLAG_FIFO); + + for (index = 21; index <= 30; index++) + { + pin_set_purpose(index, PIN_PURPOSE_OTHER); + pin_set_remap(index, PIN_REMAP_DEFAULT); + } + pin_set_purpose(35, PIN_PURPOSE_OTHER); + pin_set_remap(35, PIN_REMAP_DEFAULT); + *((volatile unsigned int *)0xbfd00424) &= ~(7 << 28); + *((volatile unsigned int *)0xbfd00424) |= (1 << 30); //wl rmii + + + + memset(ð_dev, 0, sizeof(eth_dev)); + synopGMACadapter = (struct synopGMACNetworkAdapter *)plat_alloc_memory(sizeof(struct synopGMACNetworkAdapter)); + if (!synopGMACadapter) + { + rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); + } + memset((char *)synopGMACadapter, 0, sizeof(struct synopGMACNetworkAdapter)); + + synopGMACadapter->synopGMACdev = NULL; + + synopGMACadapter->synopGMACdev = (synopGMACdevice *) plat_alloc_memory(sizeof(synopGMACdevice)); + if (!synopGMACadapter->synopGMACdev) + { + rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); + } + memset((char *)synopGMACadapter->synopGMACdev, 0, sizeof(synopGMACdevice)); + /* + * Attach the device to MAC struct This will configure all the required base addresses + * such as Mac base, configuration base, phy base address(out of 32 possible phys) + * */ + synopGMAC_attach(synopGMACadapter->synopGMACdev, (regbase + MACBASE), regbase + DMABASE, DEFAULT_PHY_BASE, mac_addr0); + + init_phy(synopGMACadapter->synopGMACdev); + synopGMAC_reset(synopGMACadapter->synopGMACdev); + + /* MII setup */ + synopGMACadapter->mii.phy_id_mask = 0x1F; + synopGMACadapter->mii.reg_num_mask = 0x1F; + synopGMACadapter->mii.dev = synopGMACadapter; + synopGMACadapter->mii.mdio_read = mdio_read; + synopGMACadapter->mii.mdio_write = mdio_write; + synopGMACadapter->mii.phy_id = synopGMACadapter->synopGMACdev->PhyBase; + synopGMACadapter->mii.supports_gmii = mii_check_gmii_support(&synopGMACadapter->mii); + + eth_dev.iobase = base_addr; + eth_dev.name = "e0"; + eth_dev.priv = synopGMACadapter; + eth_dev.dev_addr[0] = mac_addr0[0]; + eth_dev.dev_addr[1] = mac_addr0[1]; + eth_dev.dev_addr[2] = mac_addr0[2]; + eth_dev.dev_addr[3] = mac_addr0[3]; + eth_dev.dev_addr[4] = mac_addr0[4]; + eth_dev.dev_addr[5] = mac_addr0[5]; + + eth_dev.parent.parent.type = RT_Device_Class_NetIf; + eth_dev.parent.parent.init = eth_init; + eth_dev.parent.parent.open = eth_open; + eth_dev.parent.parent.close = eth_close; + eth_dev.parent.parent.read = eth_read; + eth_dev.parent.parent.write = eth_write; + eth_dev.parent.parent.control = eth_control; + eth_dev.parent.parent.user_data = RT_NULL; + + eth_dev.parent.eth_tx = rt_eth_tx; + eth_dev.parent.eth_rx = rt_eth_rx; + + eth_device_init(&(eth_dev.parent), "e0"); + + eth_device_linkchange(ð_dev.parent, RT_TRUE); //linkup the e0 for lwip to check + + return 0; +} + +INIT_DEVICE_EXPORT(rt_hw_eth_init); + diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC.h new file mode 100644 index 0000000000..e244c14892 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + +#ifndef __SYNOPGMAC__H +#define __SYNOPGMAC__H + +#include "synopGMAC_network_interface.h" +#include "synopGMAC_Host.h" +#include "synopGMAC_Dev.h" +#include "synopGMAC_plat.h" +#include "mii.h" +#include "synopGMAC_types.h" + +int rt_hw_eth_init(void); + +#endif /*__SYNOPGMAC__H*/ diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.c b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.c new file mode 100644 index 0000000000..a41038f35c --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.c @@ -0,0 +1,3679 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#include "synopGMAC_Dev.h" +#include +#include + +#define UNUSED 1 + +/** + * Function to set the MDC clock for mdio transactiona + * + * @param[in] pointer to device structure. + * @param[in] clk divider value. + * \return Reuturns 0 on success else return the error value. + */ +s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev,u32 clk_div_val) +{ + u32 orig_data; + orig_data = synopGMACReadReg(gmacdev->MacBase,GmacGmiiAddr); //set the mdc clock to the user defined value + orig_data &= (~ GmiiCsrClkMask); + orig_data |= clk_div_val; + synopGMACWriteReg(gmacdev->MacBase, GmacGmiiAddr ,orig_data); + return 0; +} + +/** + * Returns the current MDC divider value programmed in the ip. + * + * @param[in] pointer to device structure. + * @param[in] clk divider value. + * \return Returns the MDC divider value read. + */ +u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase,GmacGmiiAddr); + data &= GmiiCsrClkMask; + return data; +} + + +/** + * Function to read the Phy register. The access to phy register + * is a slow process as the data is moved accross MDI/MDO interface + * @param[in] pointer to Register Base (It is the mac base in our case) . + * @param[in] PhyBase register is the index of one of supported 32 PHY devices. + * @param[in] Register offset is the index of one of the 32 phy register. + * @param[out] u16 data read from the respective phy register (only valid iff return value is 0). + * \return Returns 0 on success else return the error status. + */ +s32 synopGMAC_read_phy_reg(u32 RegBase,u32 PhyBase, u32 RegOffset, u16 * data ) +{ + u32 addr; + u32 loop_variable; + addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) + | GmiiCsrClk3; //sw: add GmiiCsrClk + addr = addr | GmiiBusy ; //Gmii busy bit + + synopGMACWriteReg(RegBase,GmacGmiiAddr,addr); + //write the address from where the data to be read in GmiiGmiiAddr register of synopGMAC ip + + for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ + //Wait till the busy bit gets cleared within a certain amount of time + if (!(synopGMACReadReg(RegBase,GmacGmiiAddr) & GmiiBusy)){ + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if(loop_variable < DEFAULT_LOOP_VARIABLE) + * data = (u16)(synopGMACReadReg(RegBase,GmacGmiiData) & 0xFFFF); + else{ + TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } + //sw +#if SYNOP_REG_DEBUG + printf("read phy reg: offset = 0x%x\tdata = 0x%x\n",RegOffset,*data); +#endif + + return -ESYNOPGMACNOERR; +} + +/** + * Function to write to the Phy register. The access to phy register + * is a slow process as the data is moved accross MDI/MDO interface + * @param[in] pointer to Register Base (It is the mac base in our case) . + * @param[in] PhyBase register is the index of one of supported 32 PHY devices. + * @param[in] Register offset is the index of one of the 32 phy register. + * @param[in] data to be written to the respective phy register. + * \return Returns 0 on success else return the error status. + */ +s32 synopGMAC_write_phy_reg(u32 RegBase, u32 PhyBase, u32 RegOffset, u16 data) +{ + u32 addr; + u32 loop_variable; + + synopGMACWriteReg(RegBase,GmacGmiiData,data); // write the data in to GmacGmiiData register of synopGMAC ip + + addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) | GmiiWrite | GmiiCsrClk3; //sw: add GmiiCsrclk + + addr = addr | GmiiBusy ; //set Gmii clk to 20-35 Mhz and Gmii busy bit + + synopGMACWriteReg(RegBase,GmacGmiiAddr,addr); + for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ + if (!(synopGMACReadReg(RegBase,GmacGmiiAddr) & GmiiBusy)){ + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + + if(loop_variable < DEFAULT_LOOP_VARIABLE){ + return -ESYNOPGMACNOERR; + } + else{ + TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } +#if SYNOP_REG_DEBUG + printf("write phy reg: offset = 0x%x\tdata = 0x%x",RegOffset,data); +#endif +} + +/** + * Function to configure the phy in loopback mode. + * + * @param[in] pointer to synopGMACdevice. + * @param[in] enable or disable the loopback. + * \return 0 on success else return the error status. + * \note Don't get confused with mac loop-back synopGMAC_loopback_on(synopGMACdevice *) + * and synopGMAC_loopback_off(synopGMACdevice *) functions. + */ +#if UNUSED +s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback) +{ +s32 status = -ESYNOPGMACNOERR; +u16 *temp; + status = synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, PHY_CONTROL_REG,temp); +if(loopback) + *temp |= 0x4000; +else + *temp = *temp; + + status = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, PHY_CONTROL_REG, *temp); +return status; +} + +#endif + + +/** + * Function to read the GMAC IP Version and populates the same in device data structure. + * @param[in] pointer to synopGMACdevice. + * \return Always return 0. + */ + +s32 synopGMAC_read_version (synopGMACdevice * gmacdev) +{ + u32 data = 0; + data = synopGMACReadReg(gmacdev->MacBase, GmacVersion ); + gmacdev->Version = data; + return 0; +} + + +/** + * Function to reset the GMAC core. + * This reests the DMA and GMAC core. After reset all the registers holds their respective reset value + * @param[in] pointer to synopGMACdevice. + * \return 0 on success else return the error status. + */ +s32 synopGMAC_reset (synopGMACdevice * gmacdev) +{ + u32 data = 0; + synopGMACWriteReg(gmacdev->DmaBase, DmaBusMode ,DmaResetOn); + plat_delay(DEFAULT_LOOP_VARIABLE); + data = synopGMACReadReg(gmacdev->DmaBase, DmaBusMode); + TR("DATA after Reset = %08x\n",data); + + return 0; +} + + +/** + * Function to program DMA bus mode register. + * + * The Bus Mode register is programmed with the value given. The bits to be set are + * bit wise or'ed and sent as the second argument to this function. + * @param[in] pointer to synopGMACdevice. + * @param[in] the data to be programmed. + * \return 0 on success else return the error status. + */ +s32 synopGMAC_dma_bus_mode_init(synopGMACdevice * gmacdev, u32 init_value ) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaBusMode ,init_value ); + return 0; + +} + +/** + * Function to program DMA Control register. + * + * The Dma Control register is programmed with the value given. The bits to be set are + * bit wise or'ed and sent as the second argument to this function. + * @param[in] pointer to synopGMACdevice. + * @param[in] the data to be programmed. + * \return 0 on success else return the error status. + */ +s32 synopGMAC_dma_control_init(synopGMACdevice * gmacdev, u32 init_value ) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaControl, init_value); + return 0; +} + + +/*Gmac configuration functions*/ + +/** + * Enable the watchdog timer on the receiver. + * When enabled, Gmac enables Watchdog timer, and GMAC allows no more than + * 2048 bytes of data (10,240 if Jumbo frame enabled). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_wd_enable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacWatchdog); + return; +} +/** + * Disable the watchdog timer on the receiver. + * When disabled, Gmac disabled watchdog timer, and can receive frames up to + * 16,384 bytes. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ + +void synopGMAC_wd_disable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacWatchdog); + return; +} + +/** + * Enables the Jabber frame support. + * When enabled, GMAC disabled the jabber timer, and can transfer 16,384 byte frames. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_jab_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacJabber); + return; +} +/** + * Disables the Jabber frame support. + * When disabled, GMAC enables jabber timer. It cuts of transmitter if application + * sends more than 2048 bytes of data (10240 if Jumbo frame enabled). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_jab_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacJabber); + return; +} +#endif + +/** + * Enables Frame bursting (Only in Half Duplex Mode). + * When enabled, GMAC allows frame bursting in GMII Half Duplex mode. + * Reserved in 10/100 and Full-Duplex configurations. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_frame_burst_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFrameBurst); + return; +} +/** + * Disables Frame bursting. + * When Disabled, frame bursting is not supported. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_frame_burst_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacFrameBurst); + return; +} +#endif + +/** + * Enable Jumbo frame support. + * When Enabled GMAC supports jumbo frames of 9018/9022(VLAN tagged). + * Giant frame error is not reported in receive frame status. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_jumbo_frame_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacJumboFrame); + return; +} +#endif +/** + * Disable Jumbo frame support. + * When Disabled GMAC does not supports jumbo frames. + * Giant frame error is reported in receive frame status. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_jumbo_frame_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacJumboFrame); + return; +} + +/** + * Disable Carrier sense. + * When Disabled GMAC ignores CRS signal during frame transmission + * in half duplex mode. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ + +#if UNUSED +void synopGMAC_disable_crs(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDisableCrs); + return; +} +#endif + + + +/** + * Selects the GMII port. + * When called GMII (1000Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_select_gmii(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacMiiGmii); + return; +} +/** + * Selects the MII port. + * When called MII (10/100Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_select_mii(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacMiiGmii); + return; +} + +/** + * Enables Receive Own bit (Only in Half Duplex Mode). + * When enaled GMAC receives all the packets given by phy while transmitting. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_own_enable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRxOwn); + return; +} +/** + * Disables Receive Own bit (Only in Half Duplex Mode). + * When enaled GMAC disables the reception of frames when gmii_txen_o is asserted. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_rx_own_disable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRxOwn); + return; +} +#endif + +/** + * Sets the GMAC in loopback mode. + * When on GMAC operates in loop-back mode at GMII/MII. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note (G)MII Receive clock is required for loopback to work properly, as transmit clock is + * not looped back internally. + */ +void synopGMAC_loopback_on(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacLoopback); + return; +} +/** + * Sets the GMAC in Normal mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_loopback_off(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacLoopback); + return; +} + +/** + * Sets the GMAC core in Full-Duplex mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_set_full_duplex(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDuplex); + return; +} +/** + * Sets the GMAC core in Half-Duplex mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_set_half_duplex(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacDuplex); + return; +} + +/** + * GMAC tries retransmission (Only in Half Duplex mode). + * If collision occurs on the GMII/MII, GMAC attempt retries based on the + * back off limit configured. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note This function is tightly coupled with synopGMAC_back_off_limit(synopGMACdev *, u32). + */ +void synopGMAC_retry_enable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRetry); + return; +} +/** + * GMAC tries only one transmission (Only in Half Duplex mode). + * If collision occurs on the GMII/MII, GMAC will ignore the current frami + * transmission and report a frame abort with excessive collision in tranmit frame status. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_retry_disable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRetry); + return; +} +#endif + +/** + * GMAC strips the Pad/FCS field of incoming frames. + * This is true only if the length field value is less than or equal to + * 1500 bytes. All received frames with length field greater than or equal to + * 1501 bytes are passed to the application without stripping the Pad/FCS field. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_pad_crc_strip_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacPadCrcStrip); + return; +} +#endif +/** + * GMAC doesnot strips the Pad/FCS field of incoming frames. + * GMAC will pass all the incoming frames to Host unmodified. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_pad_crc_strip_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacPadCrcStrip); + u32 status = synopGMACReadReg(gmacdev->MacBase, GmacConfig); + DEBUG_MES("strips status : %u\n", status & GmacPadCrcStrip); + return; +} +/** + * GMAC programmed with the back off limit value. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note This function is tightly coupled with synopGMAC_retry_enable(synopGMACdevice * gmacdev) + */ +void synopGMAC_back_off_limit(synopGMACdevice * gmacdev, u32 value) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase, GmacConfig); + data &= (~GmacBackoffLimit); + data |= value; + synopGMACWriteReg(gmacdev->MacBase, GmacConfig,data); + return; +} + +/** + * Enables the Deferral check in GMAC (Only in Half Duplex mode) + * GMAC issues a Frame Abort Status, along with the excessive deferral error bit set in the + * transmit frame status when transmit state machine is deferred for more than + * - 24,288 bit times in 10/100Mbps mode + * - 155,680 bit times in 1000Mbps mode or Jumbo frame mode in 10/100Mbps operation. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note Deferral begins when transmitter is ready to transmit, but is prevented because of + * an active CRS (carrier sense) + */ +#if UNUSED +void synopGMAC_deferral_check_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDeferralCheck); + return; +} +#endif +/** + * Disables the Deferral check in GMAC (Only in Half Duplex mode). + * GMAC defers until the CRS signal goes inactive. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_deferral_check_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacDeferralCheck); + return; +} +/** + * Enable the reception of frames on GMII/MII. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRx); + return; +} +/** + * Disable the reception of frames on GMII/MII. + * GMAC receive state machine is disabled after completion of reception of current frame. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_rx_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRx); + return; +} +#endif +/** + * Enable the transmission of frames on GMII/MII. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacTx); + return; +} +/** + * Disable the transmission of frames on GMII/MII. + * GMAC transmit state machine is disabled after completion of transmission of current frame. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_tx_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacTx); + return; +} +#endif + + +/*Receive frame filter configuration functions*/ + +/** + * Enables reception of all the frames to application. + * GMAC passes all the frames received to application irrespective of whether they + * pass SA/DA address filtering or not. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_frame_filter_enable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacFilter); + return; +} +/** + * Disables reception of all the frames to application. + * GMAC passes only those received frames to application which + * pass SA/DA address filtering. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_frame_filter_disable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacFilter); + return; +} + +/** + * Populates the Hash High register with the data supplied. + * This function is called when the Hash filtering is to be enabled. + * @param[in] pointer to synopGMACdevice. + * @param[in] data to be written to hash table high register. + * \return void. + */ +#if UNUSED +void synopGMAC_write_hash_table_high(synopGMACdevice * gmacdev, u32 data) +{ + synopGMACWriteReg(gmacdev->MacBase,GmacHashHigh,data); + return; +} +#endif + +/** + * Populates the Hash Low register with the data supplied. + * This function is called when the Hash filtering is to be enabled. + * @param[in] pointer to synopGMACdevice. + * @param[in] data to be written to hash table low register. + * \return void. + */ +#if UNUSED +void synopGMAC_write_hash_table_low(synopGMACdevice * gmacdev, u32 data) +{ + synopGMACWriteReg(gmacdev->MacBase,GmacHashLow,data); + return; +} +#endif + +/** + * Enables Hash or Perfect filter (only if Hash filter is enabled in H/W). + * Only frames matching either perfect filtering or Hash Filtering as per HMC and HUC + * configuration are sent to application. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_hash_perfect_filter_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacHashPerfectFilter); + return; +} +#endif + +/** + * Enables only Hash(only if Hash filter is enabled in H/W). + * Only frames matching Hash Filtering as per HMC and HUC + * configuration are sent to application. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_Hash_filter_only_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacHashPerfectFilter); + return; +} +#endif + +/** + * Enables Source address filtering. + * When enabled source address filtering is performed. Only frames matching SA filtering are passed to application with + * SAMatch bit of RxStatus is set. GMAC drops failed frames. + * @param[in] pointer to synopGMACdevice. + * \return void. + * \note This function is overriden by synopGMAC_frame_filter_disable(synopGMACdevice *) + */ +#if UNUSED +void synopGMAC_src_addr_filter_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacSrcAddrFilter); + return; +} +#endif +/** + * Disables Source address filtering. + * When disabled GMAC forwards the received frames with updated SAMatch bit in RxStatus. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_src_addr_filter_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacSrcAddrFilter); + return; +} +/** + * Enables Inverse Destination address filtering. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_dst_addr_filter_inverse(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacDestAddrFilterNor); + return; +} +#endif +/** + * Enables the normal Destination address filtering. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_dst_addr_filter_normal(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacDestAddrFilterNor); + return; +} + +/** + * Enables forwarding of control frames. + * When set forwards all the control frames (incl. unicast and multicast PAUSE frames). + * @param[in] pointer to synopGMACdevice. + * \return void. + * \note Depends on RFE of FlowControlRegister[2] + */ +void synopGMAC_set_pass_control(synopGMACdevice * gmacdev,u32 passcontrol) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase, GmacFrameFilter); + data &= (~GmacPassControl); + data |= passcontrol; + synopGMACWriteReg(gmacdev->MacBase,GmacFrameFilter,data); + return; +} + +/** + * Enables Broadcast frames. + * When enabled Address filtering module passes all incoming broadcast frames. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_broadcast_enable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacBroadcast ); + return; +} +/** + * Disable Broadcast frames. + * When disabled Address filtering module filters all incoming broadcast frames. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_broadcast_disable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacBroadcast); + return; +} +#endif + +/** + * Enables Multicast frames. + * When enabled all multicast frames are passed. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_multicast_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacMulticastFilter); + return; +} +#endif +/** + * Disable Multicast frames. + * When disabled multicast frame filtering depends on HMC bit. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_multicast_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacMulticastFilter); + return; +} + +/** + * Enables multicast hash filtering. + * When enabled GMAC performs teh destination address filtering according to the hash table. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_multicast_hash_filter_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacMcastHashFilter); + return; +} +#endif +/** + * Disables multicast hash filtering. + * When disabled GMAC performs perfect destination address filtering for multicast frames, it compares + * DA field with the value programmed in DA register. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_multicast_hash_filter_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacMcastHashFilter); + return; +} + +/** + * Enables promiscous mode. + * When enabled Address filter modules pass all incoming frames regardless of their Destination + * and source addresses. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_promisc_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacPromiscuousMode); + return; +} +#endif +/** + * Clears promiscous mode. + * When called the GMAC falls back to normal operation from promiscous mode. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_promisc_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacPromiscuousMode); + return; +} + + +/** + * Enables unicast hash filtering. + * When enabled GMAC performs the destination address filtering of unicast frames according to the hash table. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_unicast_hash_filter_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacUcastHashFilter); + return; +} +#endif +/** + * Disables multicast hash filtering. + * When disabled GMAC performs perfect destination address filtering for unicast frames, it compares + * DA field with the value programmed in DA register. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_unicast_hash_filter_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacUcastHashFilter); + return; +} + +/*Flow control configuration functions*/ + +/** + * Enables detection of pause frames with stations unicast address. + * When enabled GMAC detects the pause frames with stations unicast address in addition to the + * detection of pause frames with unique multicast address. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacUnicastPauseFrame); + return; +} +#endif +/** + * Disables detection of pause frames with stations unicast address. + * When disabled GMAC only detects with the unique multicast address (802.3x). + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFlowControl, GmacUnicastPauseFrame); + return; +} +/** + * Rx flow control enable. + * When Enabled GMAC will decode the rx pause frame and disable the tx for a specified time. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_rx_flow_control_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacRxFlowControl); + return; +} +/** + * Rx flow control disable. + * When disabled GMAC will not decode pause frame. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_rx_flow_control_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFlowControl, GmacRxFlowControl); + return; +} +/** + * Tx flow control enable. + * When Enabled + * - In full duplex GMAC enables flow control operation to transmit pause frames. + * - In Half duplex GMAC enables the back pressure operation + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_tx_flow_control_enable(synopGMACdevice * gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacTxFlowControl); + return; +} + +/** + * Tx flow control disable. + * When Disabled + * - In full duplex GMAC will not transmit any pause frames. + * - In Half duplex GMAC disables the back pressure feature. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_tx_flow_control_disable(synopGMACdevice * gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacFlowControl, GmacTxFlowControl); + return; +} + +/** + * Initiate Flowcontrol operation. + * When Set + * - In full duplex GMAC initiates pause control frame. + * - In Half duplex GMAC initiates back pressure function. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_tx_activate_flow_control(synopGMACdevice * gmacdev) +{ + //In case of full duplex check for this bit to b'0. if it is read as b'1 indicates that + //control frame transmission is in progress. + if(gmacdev->Speed == FULLDUPLEX){ + if(!synopGMACCheckBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure)) + synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure); + } + else{ //if half duplex mode + + synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure); + } + + return; +} +#endif + +/** + * stops Flowcontrol operation. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_tx_deactivate_flow_control(synopGMACdevice * gmacdev) +{ + //In full duplex this bit is automatically cleared after transmitting a pause control frame. + if(gmacdev->Speed == HALFDUPLEX){ + synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure); + } + return; +} +#endif + +/** + * This enables the pause frame generation after programming the appropriate registers. + * presently activation is set at 3k and deactivation set at 4k. These may have to tweaked + * if found any issues + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_pause_control(synopGMACdevice *gmacdev) +{ + u32 omr_reg; + u32 mac_flow_control_reg; + omr_reg = synopGMACReadReg(gmacdev->DmaBase,DmaControl); + omr_reg |= DmaRxFlowCtrlAct4K | DmaRxFlowCtrlDeact5K |DmaEnHwFlowCtrl; + synopGMACWriteReg(gmacdev->DmaBase, DmaControl, omr_reg); + + mac_flow_control_reg = synopGMACReadReg(gmacdev->MacBase,GmacFlowControl); + mac_flow_control_reg |= GmacRxFlowControl | GmacTxFlowControl | 0xFFFF0000; + synopGMACWriteReg(gmacdev->MacBase,GmacFlowControl,mac_flow_control_reg); + + return; + +} + +/** + * Example mac initialization sequence. + * This function calls the initialization routines to initialize the GMAC register. + * One can change the functions invoked here to have different configuration as per the requirement + * @param[in] pointer to synopGMACdevice. + * \return Returns 0 on success. + */ +s32 synopGMAC_mac_init(synopGMACdevice * gmacdev) +{ + u32 PHYreg; + + if(gmacdev->DuplexMode == FULLDUPLEX){ + TR("\n===phy FULLDUPLEX MODE\n"); //sw: debug + synopGMAC_wd_enable(gmacdev); + synopGMAC_jab_enable(gmacdev); + synopGMAC_frame_burst_enable(gmacdev); + synopGMAC_jumbo_frame_disable(gmacdev); + synopGMAC_rx_own_enable(gmacdev); +#if SYNOP_LOOPBACK_MODE + synopGMAC_loopback_on(gmacdev); +#else + synopGMAC_loopback_off(gmacdev); +#endif + synopGMAC_set_full_duplex(gmacdev); //1 + synopGMAC_retry_enable(gmacdev); + synopGMAC_pad_crc_strip_disable(gmacdev); + synopGMAC_back_off_limit(gmacdev,GmacBackoffLimit0); + synopGMAC_deferral_check_disable(gmacdev); + + synopGMAC_tx_enable(gmacdev); //according to Tang Dan's commitment + synopGMAC_rx_enable(gmacdev); + + synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaStoreAndForward );//3 + synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaFwdErrorFrames ); + if(gmacdev->Speed == SPEED1000) + synopGMAC_select_gmii(gmacdev); + else{ + synopGMAC_select_mii(gmacdev); + if(gmacdev->Speed == SPEED100) + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed100); + else + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed10); + } + + + /*Frame Filter Configuration*/ + synopGMAC_frame_filter_enable(gmacdev); //2 + //synopGMAC_frame_filter_disable(gmacdev); //2 + synopGMAC_set_pass_control(gmacdev,GmacPassControl0); + synopGMAC_broadcast_enable(gmacdev); + synopGMAC_src_addr_filter_disable(gmacdev); + synopGMAC_multicast_disable(gmacdev); + //synopGMAC_dst_addr_filter_normal(gmacdev); //scl + synopGMAC_dst_addr_filter_inverse(gmacdev); + synopGMAC_multicast_hash_filter_disable(gmacdev); + synopGMAC_promisc_disable(gmacdev); + synopGMAC_unicast_hash_filter_disable(gmacdev); + + /*Flow Control Configuration*/ + synopGMAC_unicast_pause_frame_detect_disable(gmacdev); + synopGMAC_rx_flow_control_enable(gmacdev); + synopGMAC_tx_flow_control_enable(gmacdev); + } + else{//for Half Duplex configuration + + TR("\n===phy HALFDUPLEX MODE\n"); //sw: debug + synopGMAC_wd_enable(gmacdev ); + synopGMAC_jab_enable(gmacdev); + synopGMAC_frame_burst_enable(gmacdev); + synopGMAC_jumbo_frame_disable(gmacdev); + synopGMAC_rx_own_enable(gmacdev); +#if SYNOP_LOOPBACK_MODE + synopGMAC_loopback_on(gmacdev); +#else + synopGMAC_loopback_off(gmacdev); +#endif + synopGMAC_set_half_duplex(gmacdev); + synopGMAC_retry_enable(gmacdev); + synopGMAC_pad_crc_strip_disable(gmacdev); + synopGMAC_back_off_limit(gmacdev,GmacBackoffLimit0); + synopGMAC_deferral_check_disable(gmacdev); + +//sw: set efe & tsf + synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaStoreAndForward ); + synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaFwdErrorFrames ); +//sw: put it in the end + synopGMAC_tx_enable(gmacdev); + synopGMAC_rx_enable(gmacdev); + + + if(gmacdev->Speed == SPEED1000) + synopGMAC_select_gmii(gmacdev); + else{ + synopGMAC_select_mii(gmacdev ); + if(gmacdev->Speed == SPEED100) + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed100 ); + else + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed10 ); + } + +// synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDisableCrs); +// synopGMAC_select_gmii(gmacdev); + + /*Frame Filter Configuration*/ + synopGMAC_frame_filter_enable(gmacdev); +// synopGMAC_frame_filter_disable(gmacdev); + + synopGMAC_set_pass_control(gmacdev,GmacPassControl0); + synopGMAC_broadcast_enable(gmacdev); + synopGMAC_src_addr_filter_disable(gmacdev); + synopGMAC_multicast_disable(gmacdev); + synopGMAC_dst_addr_filter_normal(gmacdev); + synopGMAC_multicast_hash_filter_disable(gmacdev); + + synopGMAC_promisc_disable(gmacdev); +// synopGMAC_promisc_enable(gmacdev); + synopGMAC_unicast_hash_filter_disable(gmacdev); + +//sw: loopback mode +// synopGMAC_loopback_on(gmacdev); + + /*Flow Control Configuration*/ + synopGMAC_unicast_pause_frame_detect_disable(gmacdev); + synopGMAC_rx_flow_control_disable(gmacdev); + synopGMAC_tx_flow_control_disable(gmacdev); + + /*To set PHY register to enable CRS on Transmit*/ + } + return 0; +} + + +/** + * Sets the Mac address in to GMAC register. + * This function sets the MAC address to the MAC register in question. + * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. + * @param[in] Register offset for Mac address high + * @param[in] Register offset for Mac address low + * @param[in] buffer containing mac address to be programmed. + * \return 0 upon success. Error code upon failure. + */ +s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) +{ + u32 data; + + data = (MacAddr[5] << 8) | MacAddr[4]; + synopGMACWriteReg(gmacdev->MacBase,MacHigh,data); + data = (MacAddr[3] << 24) | (MacAddr[2] << 16) | (MacAddr[1] << 8) | MacAddr[0] ; + synopGMACWriteReg(gmacdev->MacBase,MacLow,data); + + return 0; +} + + +/** + * Get the Mac address in to the address specified. + * The mac register contents are read and written to buffer passed. + * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. + * @param[in] Register offset for Mac address high + * @param[in] Register offset for Mac address low + * @param[out] buffer containing the device mac address. + * \return 0 upon success. Error code upon failure. + */ +s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) +{ + u32 data; + + data = synopGMACReadReg(gmacdev->MacBase,MacHigh); + MacAddr[5] = (data >> 8) & 0xff; + MacAddr[4] = (data) & 0xff; + + data = synopGMACReadReg(gmacdev->MacBase,MacLow); + MacAddr[3] = (data >> 24) & 0xff; + MacAddr[2] = (data >> 16) & 0xff; + MacAddr[1] = (data >> 8 ) & 0xff; + MacAddr[0] = (data ) & 0xff; + +// rt_kprintf("MacAddr = 0x%x\t0x%x\t0x%x\t0x%x\t0x%x\t0x%x\n",MacAddr[0],MacAddr[1],MacAddr[2],MacAddr[3],MacAddr[4],MacAddr[5]); + + return 0; +} + + +/** + * Attaches the synopGMAC device structure to the hardware. + * Device structure is populated with MAC/DMA and PHY base addresses. + * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. + * @param[in] GMAC IP mac base address. + * @param[in] GMAC IP dma base address. + * @param[in] GMAC IP phy base address. + * \return 0 upon success. Error code upon failure. + * \note This is important function. No kernel api provided by Synopsys + */ + +s32 synopGMAC_attach (synopGMACdevice * gmacdev, u32 macBase, u32 dmaBase, u32 phyBase,u8 *mac_addr) +{ + /*Make sure the Device data strucure is cleared before we proceed further*/ + rt_memset((void *) gmacdev,0,sizeof(synopGMACdevice)); + /*Populate the mac and dma base addresses*/ + gmacdev->MacBase = macBase; + gmacdev->DmaBase = dmaBase; + gmacdev->PhyBase = phyBase; +// rt_kprintf("gmacdev->DmaBase = 0x%x\n", gmacdev->DmaBase); +// rt_kprintf("dmaBase = 0x%x\n", dmaBase); + { + int i,j; + u16 data; + for (i = phyBase,j=0;j<32;i=(i+1)&0x1f,j++) + { + synopGMAC_read_phy_reg(gmacdev->MacBase,i,2,&data); + if(data != 0 && data != 0xffff) break; + synopGMAC_read_phy_reg(gmacdev->MacBase,i,3,&data); + if(data != 0 && data != 0xffff) break; + } + + if(j==32) { + rt_kprintf("phy_detect: can't find PHY!\n"); + } + gmacdev->PhyBase = i; + } + +// synopGMAC_get_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr); + + /* Program/flash in the station/IP's Mac address */ + synopGMAC_set_mac_addr(gmacdev,GmacAddr0High,GmacAddr0Low, mac_addr); + + return 0; +} + + + + +/** + * Initialize the rx descriptors for ring or chain mode operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) + * - data1 and data2 set to 0. (note) + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor + * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. + */ +void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) +{ + desc->status = 0; + desc->length = last_ring_desc ? RxDescEndOfRing : 0; + desc->buffer1 = 0; + desc->buffer2 = 0; + desc->data1 = 0; + desc->data2 = 0; + desc->dummy1 = 0; + desc->dummy2 = 0; + + return; +} +void synopGMAC_rx_desc_recycle(DmaDesc *desc, bool last_ring_desc) +{ + desc->status = DescOwnByDma; + desc->length = last_ring_desc ? RxDescEndOfRing : 0; + //desc->buffer1 = 0; + //desc->buffer2 = 0; + //desc->data1 = 0; + //desc->data2 = 0; + desc->dummy1 = 0; + desc->dummy2 = 0; + + return; +} +/** + * Initialize the tx descriptors for ring or chain mode operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) + * - data1 and data2 set to 0. (note) + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor + * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. + */ +void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) +{ + #ifdef ENH_DESC + desc->status = last_ring_desc? TxDescEndOfRing : 0; + desc->length = 0; + #else + desc->length = last_ring_desc? TxDescEndOfRing : 0; + #endif +//sw + desc->status = 0; + + desc->buffer1 = 0; + desc->buffer2 = 0; + desc->data1 = 0; + desc->data2 = 0; + desc->dummy1 = 0; + desc->dummy2 = 0; + return; +} + + + +/** + * Initialize the rx descriptors for chain mode of operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0. + * - data1 and data2 set to 0. + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + */ + +void synopGMAC_rx_desc_init_chain(DmaDesc * desc) +{ + desc->status = 0; + desc->length = RxDescChain; + desc->buffer1 = 0; + desc->data1 = 0; + return; +} +/** + * Initialize the rx descriptors for chain mode of operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0. + * - data1 and data2 set to 0. + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + */ +void synopGMAC_tx_desc_init_chain(DmaDesc * desc) +{ + #ifdef ENH_DESC + desc->status = TxDescChain; + desc->length = 0; + #else + desc->length = TxDescChain; + #endif + desc->buffer1 = 0; + desc->data1 = 0; + return; +} + + +s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev) +{ + s32 i; + for(i =0; i < gmacdev -> TxDescCount; i++){ + synopGMAC_tx_desc_init_ring(gmacdev->TxDesc + i, i == gmacdev->TxDescCount-1); + } + TR("At line %d\n",__LINE__); + for(i =0; i < gmacdev -> RxDescCount; i++){ + synopGMAC_rx_desc_init_ring(gmacdev->RxDesc + i, i == gmacdev->RxDescCount-1); + } + + gmacdev->TxNext = 0; + gmacdev->TxBusy = 0; + gmacdev->RxNext = 0; + gmacdev->RxBusy = 0; + + return -ESYNOPGMACNOERR; +} +/** + * Programs the DmaRxBaseAddress with the Rx descriptor base address. + * Rx Descriptor's base address is available in the gmacdev structure. This function progrms the + * Dma Rx Base address with the starting address of the descriptor ring or chain. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev) +{ + DEBUG_MES("gmacdev->RxDescDma = %08x\n", gmacdev->RxDescDma); + synopGMACWriteReg(gmacdev->DmaBase,DmaRxBaseAddr,(u32)gmacdev->RxDescDma ); + return; +} + +/** + * Programs the DmaTxBaseAddress with the Tx descriptor base address. + * Tx Descriptor's base address is available in the gmacdev structure. This function progrms the + * Dma Tx Base address with the starting address of the descriptor ring or chain. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev) +{ + synopGMACWriteReg(gmacdev->DmaBase,DmaTxBaseAddr,(u32)gmacdev->TxDescDma); + return; +} + + +/** + * Makes the Dma as owner for this descriptor. + * This function sets the own bit of status field of the DMA descriptor, + * indicating the DMA is the owner for this descriptor. + * @param[in] pointer to DmaDesc structure. + * \return returns void. + */ +void synopGMAC_set_owner_dma(DmaDesc *desc) +{ +desc->status |= DescOwnByDma; +} + +/** + * set tx descriptor to indicate SOF. + * This Descriptor contains the start of ethernet frame. + * @param[in] pointer to DmaDesc structure. + * \return returns void. + */ +void synopGMAC_set_desc_sof(DmaDesc *desc) +{ +#ifdef ENH_DESC +desc->status |= DescTxFirst;//ENH_DESC +#else +desc->length |= DescTxFirst; +#endif + +} + +/** + * set tx descriptor to indicate EOF. + * This descriptor contains the End of ethernet frame. + * @param[in] pointer to DmaDesc structure. + * \return returns void. + */ +void synopGMAC_set_desc_eof(DmaDesc *desc) +{ +#ifdef ENH_DESC +desc->status |= DescTxLast;//ENH_DESC +#else +desc->length |= DescTxLast; +#endif +} + + +/** + * checks whether this descriptor contains start of frame. + * This function is to check whether the descriptor's data buffer + * contains a fresh ethernet frame? + * @param[in] pointer to DmaDesc structure. + * \return returns true if SOF in current descriptor, else returns fail. + */ +bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc) +{ +return ((desc->status & DescRxFirst) == DescRxFirst); +} + +/** + * checks whether this descriptor contains end of frame. + * This function is to check whether the descriptor's data buffer + * contains end of ethernet frame? + * @param[in] pointer to DmaDesc structure. + * \return returns true if SOF in current descriptor, else returns fail. + */ +bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc) +{ +return ((desc->status & DescRxLast) == DescRxLast); +} + +/** + * checks whether destination address filter failed in the rx frame. + * @param[in] pointer to DmaDesc structure. + * \return returns true if Failed, false if not. + */ +bool synopGMAC_is_da_filter_failed(DmaDesc *desc) +{ +return ((desc->status & DescDAFilterFail) == DescDAFilterFail); +} + +/** + * checks whether source address filter failed in the rx frame. + * @param[in] pointer to DmaDesc structure. + * \return returns true if Failed, false if not. + */ +bool synopGMAC_is_sa_filter_failed(DmaDesc *desc) +{ +return ((desc->status & DescSAFilterFail) == DescSAFilterFail); +} + +/** + * Checks whether the descriptor is owned by DMA. + * If descriptor is owned by DMA then the OWN bit is set to 1. This API is same for both ring and chain mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if Dma owns descriptor and false if not. + */ +bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc) +{ +return ((desc->status & DescOwnByDma) == DescOwnByDma ); +} + +/** + * returns the byte length of received frame including CRC. + * This returns the no of bytes received in the received ethernet frame including CRC(FCS). + * @param[in] pointer to DmaDesc structure. + * \return returns the length of received frame lengths in bytes. + */ +u32 synopGMAC_get_rx_desc_frame_length(u32 status) +{ + return ((status & DescFrameLengthMask) >> DescFrameLengthShift); +} + +/** + * Checks whether the descriptor is valid + * if no errors such as CRC/Receive Error/Watchdog Timeout/Late collision/Giant Frame/Overflow/Descriptor + * error the descritpor is said to be a valid descriptor. + * @param[in] pointer to DmaDesc structure. + * \return True if desc valid. false if error. + */ +bool synopGMAC_is_desc_valid(u32 status) +{ + return ((status & DescError) == 0); +} + +/** + * Checks whether the descriptor is empty. + * If the buffer1 and buffer2 lengths are zero in ring mode descriptor is empty. + * In chain mode buffer2 length is 0 but buffer2 itself contains the next descriptor address. + * @param[in] pointer to DmaDesc structure. + * \return returns true if descriptor is empty, false if not empty. + */ +bool synopGMAC_is_desc_empty(DmaDesc *desc) +{ + //if both the buffer1 length and buffer2 length are zero desc is empty + return(((desc->length & DescSize1Mask) == 0) && ((desc->length & DescSize2Mask) == 0) ); +} + + +/** + * Checks whether the rx descriptor is valid. + * if rx descripor is not in error and complete frame is available in the same descriptor + * @param[in] pointer to DmaDesc structure. + * \return returns true if no error and first and last desc bits are set, otherwise it returns false. + */ +bool synopGMAC_is_rx_desc_valid(u32 status) +{ + return ((status & DescError) == 0) && ((status & DescRxFirst) == DescRxFirst) && ((status & DescRxLast) == DescRxLast); +} + +/** + * Checks whether the tx is aborted due to collisions. + * @param[in] pointer to DmaDesc structure. + * \return returns true if collisions, else returns false. + */ +bool synopGMAC_is_tx_aborted(u32 status) +{ + return (((status & DescTxLateCollision) == DescTxLateCollision) | ((status & DescTxExcCollisions) == DescTxExcCollisions)); + +} + +/** + * Checks whether the tx carrier error. + * @param[in] pointer to DmaDesc structure. + * \return returns true if carrier error occured, else returns falser. + */ +bool synopGMAC_is_tx_carrier_error(u32 status) +{ + return (((status & DescTxLostCarrier) == DescTxLostCarrier) | ((status & DescTxNoCarrier) == DescTxNoCarrier)); +} + + +/** + * Gives the transmission collision count. + * returns the transmission collision count indicating number of collisions occured before the frame was transmitted. + * Make sure to check excessive collision didnot happen to ensure the count is valid. + * @param[in] pointer to DmaDesc structure. + * \return returns the count value of collision. + */ +u32 synopGMAC_get_tx_collision_count(u32 status) +{ + return ((status & DescTxCollMask) >> DescTxCollShift); +} +u32 synopGMAC_is_exc_tx_collisions(u32 status) +{ + return ((status & DescTxExcCollisions) == DescTxExcCollisions); +} + + +/** + * Check for damaged frame due to overflow or collision. + * Retruns true if rx frame was damaged due to buffer overflow in MTL or late collision in half duplex mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_frame_damaged(u32 status) +{ +//bool synopGMAC_dma_rx_collisions(u32 status) + return (((status & DescRxDamaged) == DescRxDamaged) | ((status & DescRxCollision) == DescRxCollision)); +} + +/** + * Check for damaged frame due to collision. + * Retruns true if rx frame was damaged due to late collision in half duplex mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_frame_collision(u32 status) +{ +//bool synopGMAC_dma_rx_collisions(u32 status) + return ((status & DescRxCollision) == DescRxCollision); +} + +/** + * Check for receive CRC error. + * Retruns true if rx frame CRC error occured. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_crc(u32 status) +{ +//u32 synopGMAC_dma_rx_crc(u32 status) + return ((status & DescRxCrc) == DescRxCrc); +} + +/** + * Indicates rx frame has non integer multiple of bytes. (odd nibbles). + * Retruns true if dribbling error in rx frame. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_frame_dribbling_errors(u32 status) +{ +//u32 synopGMAC_dma_rx_frame_errors(u32 status) + return ((status & DescRxDribbling) == DescRxDribbling); +} + +/** + * Indicates error in rx frame length. + * Retruns true if received frame length doesnot match with the length field + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_frame_length_errors(u32 status) +{ +//u32 synopGMAC_dma_rx_length_errors(u32 status) + return((status & DescRxLengthError) == DescRxLengthError); +} + +/** + * Checks whether this rx descriptor is last rx descriptor. + * This returns true if it is last descriptor either in ring mode or in chain mode. + * @param[in] pointer to devic structure. + * @param[in] pointer to DmaDesc structure. + * \return returns true if it is last descriptor, false if not. + * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). + */ +bool synopGMAC_is_last_rx_desc(synopGMACdevice * gmacdev,DmaDesc *desc) +{ +//bool synopGMAC_is_last_desc(DmaDesc *desc) +return (((desc->length & RxDescEndOfRing) == RxDescEndOfRing) || ((u32)gmacdev->RxDesc == desc->data2)); +} + +/** + * Checks whether this tx descriptor is last tx descriptor. + * This returns true if it is last descriptor either in ring mode or in chain mode. + * @param[in] pointer to devic structure. + * @param[in] pointer to DmaDesc structure. + * \return returns true if it is last descriptor, false if not. + * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). + */ +bool synopGMAC_is_last_tx_desc(synopGMACdevice * gmacdev,DmaDesc *desc) +{ +//bool synopGMAC_is_last_desc(DmaDesc *desc) +#ifdef ENH_DESC + return (((desc->status & TxDescEndOfRing) == TxDescEndOfRing) || ((u32)gmacdev->TxDesc == desc->data2)); +#else + return (((desc->length & TxDescEndOfRing) == TxDescEndOfRing) || ((u32)gmacdev->TxDesc == desc->data2)); +#endif +} + +/** + * Checks whether this rx descriptor is in chain mode. + * This returns true if it is this descriptor is in chain mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if chain mode is set, false if not. + */ +bool synopGMAC_is_rx_desc_chained(DmaDesc * desc) +{ + return((desc->length & RxDescChain) == RxDescChain); +} + +/** + * Checks whether this tx descriptor is in chain mode. + * This returns true if it is this descriptor is in chain mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if chain mode is set, false if not. + */ +bool synopGMAC_is_tx_desc_chained(DmaDesc * desc) +{ +#ifdef ENH_DESC + return((desc->status & TxDescChain) == TxDescChain); +#else + return((desc->length & TxDescChain) == TxDescChain); +#endif +} + +/** + * Driver Api to get the descriptor field information. + * This returns the status, dma-able address of buffer1, the length of buffer1, virtual address of buffer1 + * dma-able address of buffer2, length of buffer2, virtural adddress of buffer2. + * @param[in] pointer to DmaDesc structure. + * @param[out] pointer to status field fo descriptor. + * @param[out] dma-able address of buffer1. + * @param[out] length of buffer1. + * @param[out] virtual address of buffer1. + * @param[out] dma-able address of buffer2. + * @param[out] length of buffer2. + * @param[out] virtual address of buffer2. + * \return returns void. + */ +void synopGMAC_get_desc_data(DmaDesc * desc, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2) +{ + + if(Status != 0) + *Status = desc->status; + + if(Buffer1 != 0) + *Buffer1 = desc->buffer1; + if(Length1 != 0) + *Length1 = (desc->length & DescSize1Mask) >> DescSize1Shift; + if(Data1 != 0) + *Data1 = desc->data1; + + if(Buffer2 != 0) + *Buffer2 = desc->buffer2; + if(Length2 != 0) + *Length2 = (desc->length & DescSize2Mask) >> DescSize2Shift; + if(Data1 != 0) + *Data2 = desc->data2; + + return; + +} + +#ifdef ENH_DESC_8W +/** + * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor + * Get the index and address of Tx desc. + * This api is same for both ring mode and chain mode. + * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is + * over. This returns the descriptor fields to the caller. + * @param[in] pointer to synopGMACdevice. + * @param[out] status field of the descriptor. + * @param[out] Dma-able buffer1 pointer. + * @param[out] length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present tx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, + u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_Low) +{ + u32 txover = gmacdev->TxBusy; + DmaDesc * txdesc = gmacdev->TxBusyDesc; + + if(synopGMAC_is_desc_owned_by_dma(txdesc)) + return -1; + if(synopGMAC_is_desc_empty(txdesc)) + return -1; + + (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now + + if(Status != 0) + *Status = txdesc->status; + + if(Ext_Status != 0) + *Ext_Status = txdesc->extstatus; + if(Time_Stamp_High != 0) + *Time_Stamp_High = txdesc->timestamphigh; + if(Time_Stamp_Low != 0) + *Time_Stamp_High = txdesc->timestamplow; + + if(Buffer1 != 0) + *Buffer1 = txdesc->buffer1; + if(Length1 != 0) + *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; + if(Data1 != 0) + *Data1 = txdesc->data1; + + if(Buffer2 != 0) + *Buffer2 = txdesc->buffer2; + if(Length2 != 0) + *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; + if(Data1 != 0) + *Data2 = txdesc->data2; + + gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; + + if(synopGMAC_is_tx_desc_chained(txdesc)){ + gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; + synopGMAC_tx_desc_init_chain(txdesc); + } + else{ + gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); + synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev,txdesc)); + } + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); + + return txover; +} +#else + +/** + * Get the index and address of Tx desc. + * This api is same for both ring mode and chain mode. + * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is + * over. This returns the descriptor fields to the caller. + * @param[in] pointer to synopGMACdevice. + * @param[out] status field of the descriptor. + * @param[out] Dma-able buffer1 pointer. + * @param[out] length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present tx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2 ) +{ + u32 txover = gmacdev->TxBusy; + DmaDesc * txdesc = gmacdev->TxBusyDesc; + int i; + +//sw: dbg + + + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_R); + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); +#if SYNOP_TX_DEBUG + printf("Cache sync before get a used tx dma desc!\n"); + printf("\n==%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); +#endif + if(synopGMAC_is_desc_owned_by_dma(txdesc)) + { + return -1; + } +// gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; +// gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); + if(synopGMAC_is_desc_empty(txdesc)) + { + return -1; + } + (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now + + if(Status != 0) + *Status = txdesc->status; + + if(Buffer1 != 0) + *Buffer1 = txdesc->buffer1; + if(Length1 != 0) + *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; + if(Data1 != 0) + *Data1 = txdesc->data1; + + if(Buffer2 != 0) + *Buffer2 = txdesc->buffer2; + if(Length2 != 0) + *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; + if(Data1 != 0) + *Data2 = txdesc->data2; + + gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; + + if(synopGMAC_is_tx_desc_chained(txdesc)){ + gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; + synopGMAC_tx_desc_init_chain(txdesc); + } + else{ + gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); + synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev,txdesc)); + } + //printf("%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); +#if SYNOP_TX_DEBUG + printf("Cache sync after re-init a tx dma desc!\n"); +#endif + + return txover; +} + +#endif +/** + * Populate the tx desc structure with the buffer address. + * Once the driver has a packet ready to be transmitted, this function is called with the + * valid dma-able buffer addresses and their lengths. This function populates the descriptor + * and make the DMA the owner for the descriptor. This function also controls whetther Checksum + * offloading to be done in hardware or not. + * This api is same for both ring mode and chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] Dma-able buffer1 pointer. + * @param[in] length of buffer1 (Max is 2048). + * @param[in] virtual pointer for buffer1. + * @param[in] Dma-able buffer2 pointer. + * @param[in] length of buffer2 (Max is 2048). + * @param[in] virtual pointer for buffer2. + * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. + * @param[in] u32 indicating whether the checksum offloading in HW/SW. + * \return returns present tx descriptor index on success. Negative value if error. + */ +u32 len; +s32 synopGMAC_set_tx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2,u32 offload_needed,u32 * index, DmaDesc * Dpr) +{ + u32 txnext = gmacdev->TxNext; + DmaDesc * txdesc = gmacdev->TxNextDesc; + + *index = txnext; + Dpr = txdesc; + + if(!synopGMAC_is_desc_empty(txdesc)) + { + TR("set tx qptr: desc empty!\n"); + return -1; + } + + (gmacdev->BusyTxDesc)++; //busy tx descriptor is reduced by one as it will be handed over to Processor now + + if(synopGMAC_is_tx_desc_chained(txdesc)){ + txdesc->length |= ((Length1 <status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC + #else + txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor + #endif + + txdesc->buffer1 = Buffer1; + txdesc->data1 = Data1; + + if(offload_needed){ + /* + Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, + before calling any of the functions given below. + */ + synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); + synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); +// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); + } + #ifdef ENH_DESC + txdesc->status |= DescOwnByDma;//ENH_DESC + #else + txdesc->status = DescOwnByDma; + #endif + + gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txnext + 1; + gmacdev->TxNextDesc = (DmaDesc *)txdesc->data2; + } + else{ +// printf("synopGMAC_set_tx_qptr:in ring mode\n"); + txdesc->length |= (((Length1 <status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC + #else + txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor + #endif + + txdesc->buffer1 = Buffer1; + txdesc->data1 = Data1; + + txdesc->buffer2 = Buffer2; + txdesc->data2 = Data2; + + if(offload_needed){ + /* + Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, + before calling any of the functions given below. + */ +//sw: i am not sure about the checksum.so i omit it in the outside + synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); + synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); +// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); + } + #ifdef ENH_DESC + txdesc->status |= DescOwnByDma;//ENH_DESC + #else +// printf("synopGMAC_set_tx_qptr:give the tx descroptor to dma\n"); + txdesc->status = DescOwnByDma; + #endif + + gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txnext + 1; + gmacdev->TxNextDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); + } + + +#if SYNOP_TX_DEBUG + printf("%02d %08x %08x %08x %08x %08x %08x %08x\n",txnext,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); +#endif + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); +#if SYNOP_TX_DEBUG + printf("Cache sync to set a tx desc!\n"); +#endif + //pci_sync_cache(0, (vm_offset_t)(txdesc->data1), 32, SYNC_W); +#if SYNOP_TX_DEBUG + //printf("Cache sync for data in the buf of the tx desc!\n"); +#endif + return txnext; +} +#ifdef ENH_DESC_8W +/** + * Prepares the descriptor to receive packets. + * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields + * and handed over to DMA by setting the ownership. After successful return from this function the + * descriptor is added to the receive descriptor pool/queue. + * This api is same for both ring mode and chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] Dma-able buffer1 pointer. + * @param[in] length of buffer1 (Max is 2048). + * @param[in] Dma-able buffer2 pointer. + * @param[in] length of buffer2 (Max is 2048). + * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present rx descriptor index on success. Negative value if error. + */ +// dma_addr RX_BUF_SIZE skb +s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2) +{ + u32 rxnext = gmacdev->RxNext; + DmaDesc * rxdesc = gmacdev->RxNextDesc; + + if(!synopGMAC_is_desc_empty(rxdesc)) + return -1; + + if(synopGMAC_is_rx_desc_chained(rxdesc)){ + rxdesc->length |= ((Length1 <buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->extstatus = 0; + rxdesc->reserved1 = 0; + rxdesc->timestamplow = 0; + rxdesc->timestamphigh = 0; + + if((rxnext % MODULO_INTERRUPT) !=0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; + } + else{ + rxdesc->length |= (((Length1 <buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->extstatus = 0; + rxdesc->reserved1 = 0; + rxdesc->timestamplow = 0; + rxdesc->timestamphigh = 0; + + rxdesc->buffer2 = Buffer2; + rxdesc->data2 = Data2; + + if((rxnext % MODULO_INTERRUPT) !=0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + } +#if SYNOP_RX_DEBUG + TR("%02d %08x %08x %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2,rxdesc->dummy1,rxdesc->dummy2); +#endif + + (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one + //pci_sync_cache(0, (vm_offset_t)rxdesc,64, SYNC_W); + return rxnext; +} + +#else +/** + * Prepares the descriptor to receive packets. + * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields + * and handed over to DMA by setting the ownership. After successful return from this function the + * descriptor is added to the receive descriptor pool/queue. + * This api is same for both ring mode and chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] Dma-able buffer1 pointer. + * @param[in] length of buffer1 (Max is 2048). + * @param[in] Dma-able buffer2 pointer. + * @param[in] length of buffer2 (Max is 2048). + * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present rx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2) +{ + u32 rxnext = gmacdev->RxNext; + DmaDesc * rxdesc = gmacdev->RxNextDesc; + + if(!synopGMAC_is_desc_empty(rxdesc)) + return -1; + + if(synopGMAC_is_rx_desc_chained(rxdesc)){ + rxdesc->length |= ((Length1 <buffer1 = Buffer1; + rxdesc->data1 = Data1; + + if((rxnext % MODULO_INTERRUPT) !=0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; + } + else{ + rxdesc->length |= (((Length1 <buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->buffer2 = Buffer2; + rxdesc->data2 = Data2; + + if((rxnext % MODULO_INTERRUPT) !=0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + } +#if SYNOP_RX_DEBUG + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); +#endif + (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one + + return rxnext; +} + +s32 synopGMAC_set_rx_qptr_init(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2) +{ + u32 rxnext = gmacdev->RxNext; + DmaDesc * rxdesc = gmacdev->RxNextDesc; + +/* sw + if(synopGMAC_is_desc_owned_by_dma(rxdesc)) + return -1; +*/ + + if(!synopGMAC_is_desc_empty(rxdesc)) + return -1; + + if(synopGMAC_is_rx_desc_chained(rxdesc)){ + rxdesc->length |= ((Length1 <buffer1 = Buffer1; + rxdesc->data1 = Data1; + + if((rxnext % MODULO_INTERRUPT) !=0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + rxdesc->status = 0; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; + } + else{ + rxdesc->length |= (((Length1 <buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->buffer2 = Buffer2; + rxdesc->data2 = Data2; + + if((rxnext % MODULO_INTERRUPT) !=0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + rxdesc->status = 0; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + } + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); + (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one + return rxnext; +} +#endif +#ifdef ENH_DESC_8W +/** + * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor + * Get back the descriptor from DMA after data has been received. + * When the DMA indicates that the data is received (interrupt is generated), this function should be + * called to get the descriptor and hence the data buffers received. With successful return from this + * function caller gets the descriptor fields for processing. check the parameters to understand the + * fields returned.` + * @param[in] pointer to synopGMACdevice. + * @param[out] pointer to hold the status of DMA. + * @param[out] Dma-able buffer1 pointer. + * @param[out] pointer to hold length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] pointer to hold length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * \return returns present rx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, + u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_Low) +{ + u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data + //is spread over multiple buffers/descriptors + DmaDesc * rxdesc = gmacdev->RxBusyDesc; + if(synopGMAC_is_desc_owned_by_dma(rxdesc)) + return -1; + if(synopGMAC_is_desc_empty(rxdesc)) + return -1; + + + if(Status != 0) + *Status = rxdesc->status;// send the status of this descriptor + + if(Ext_Status != 0) + *Ext_Status = rxdesc->extstatus; + if(Time_Stamp_High != 0) + *Time_Stamp_High = rxdesc->timestamphigh; + if(Time_Stamp_Low != 0) + *Time_Stamp_Low = rxdesc->timestamplow; + + if(Length1 != 0) + *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; + if(Buffer1 != 0) + *Buffer1 = rxdesc->buffer1; + if(Data1 != 0) + *Data1 = rxdesc->data1; + + if(Length2 != 0) + *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; + if(Buffer2 != 0) + *Buffer2 = rxdesc->buffer2; + if(Data1 != 0) + *Data2 = rxdesc->data2; + + gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + + if(synopGMAC_is_rx_desc_chained(rxdesc)){ + gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; + synopGMAC_rx_desc_init_chain(rxdesc); + //synopGMAC_desc_init_chain(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc),0,0); + } + else{ + gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc)); + } + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); + (gmacdev->BusyRxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now + return(rxnext); + +} +#else + +/** + * Get back the descriptor from DMA after data has been received. + * When the DMA indicates that the data is received (interrupt is generated), this function should be + * called to get the descriptor and hence the data buffers received. With successful return from this + * function caller gets the descriptor fields for processing. check the parameters to understand the + * fields returned.` + * @param[in] pointer to synopGMACdevice. + * @param[out] pointer to hold the status of DMA. + * @param[out] Dma-able buffer1 pointer. + * @param[out] pointer to hold length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] pointer to hold length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * \return returns present rx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2) +{ + u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data + //is spread over multiple buffers/descriptors + DmaDesc * rxdesc = gmacdev->RxBusyDesc; + + u32 len; + if(synopGMAC_is_desc_owned_by_dma(rxdesc)) + { + DEBUG_MES("synopGMAC_get_rx_qptr:DMA descriptor is owned by GMAC!\n"); + return -1; + } + + if(synopGMAC_is_desc_empty(rxdesc)) + { + DEBUG_MES("synopGMAC_get_rx_qptr:rx desc is empty!\n"); + return -1; + } + + if(Status != 0) + *Status = rxdesc->status;// send the status of this descriptor + + if(Length1 != 0) + *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; + if(Buffer1 != 0) + *Buffer1 = rxdesc->buffer1; + if(Data1 != 0) + *Data1 = rxdesc->data1; + if(Length2 != 0) + *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; + if(Buffer2 != 0) + *Buffer2 = rxdesc->buffer2; + if(Data1 != 0) + *Data2 = rxdesc->data2; + + len = synopGMAC_get_rx_desc_frame_length(*Status); + DEBUG_MES("Cache sync for data buffer in rx dma desc: length = 0x%x\n",len); + gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; + if(synopGMAC_is_rx_desc_chained(rxdesc)){ + gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; + synopGMAC_rx_desc_init_chain(rxdesc); + } + else{ + gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); +//sw: raw data +#if SYNOP_RX_DEBUG + DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); +#endif + synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc)); + } +#if SYNOP_RX_DEBUG + DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); +#endif + + (gmacdev->BusyRxDesc)--; //This returns one descriptor to processor. So busy count will be decremented by one + return(rxnext); + +} + +#endif + +/** + * Clears all the pending interrupts. + * If the Dma status register is read then all the interrupts gets cleared + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + TR("DMA status reg = 0x%x before cleared!\n",data); + synopGMACWriteReg(gmacdev->DmaBase, DmaStatus ,data); + // plat_delay(DEFAULT_LOOP_VARIABLE); +// data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + TR("DMA status reg = 0x%x after cleared!\n",data); +} + +/** + * Returns the all unmasked interrupt status after reading the DmaStatus register. + * @param[in] pointer to synopGMACdevice. + * \return 0 upon success. Error code upon failure. + */ +u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev) +{ + u32 data; + u32 interrupts = 0; + data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + + //data = data & ~0x84; //sw: some bits shoud not be cleaned + synopGMACWriteReg(gmacdev->DmaBase, DmaStatus ,data); //manju: I think this is the appropriate location to clear the interrupts + plat_delay(DEFAULT_LOOP_VARIABLE); + if(data & DmaIntErrorMask) interrupts |= synopGMACDmaError; + if(data & DmaIntRxNormMask) interrupts |= synopGMACDmaRxNormal; + if(data & DmaIntRxAbnMask) interrupts |= synopGMACDmaRxAbnormal; + if(data & DmaIntRxStoppedMask) interrupts |= synopGMACDmaRxStopped; + if(data & DmaIntTxNormMask) interrupts |= synopGMACDmaTxNormal; + if(data & DmaIntTxAbnMask) interrupts |= synopGMACDmaTxAbnormal; + if(data & DmaIntTxStoppedMask) interrupts |= synopGMACDmaTxStopped; + + return interrupts; +} + +/** + * Returns the interrupt mask. + * @param[in] pointer to synopGMACdevice. + * \return 0 upon success. Error code upon failure. + */ +#if UNUSED +u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev) +{ + return(synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt)); +} +#endif + +/** + * Enable all the interrupts. + * Enables the DMA interrupt as specified by the bit mask. + * @param[in] pointer to synopGMACdevice. + * @param[in] bit mask of interrupts to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, interrupts); + return; +} +#endif + + +/** + * Disable all the interrupts. + * Disables all DMA interrupts. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note This function disabled all the interrupts, if you want to disable a particular interrupt then + * use synopGMAC_disable_interrupt(). + */ +void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev) +{ +// rt_kprintf("dmabase = 0x%x\n",gmacdev->DmaBase); + synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, DmaIntDisable); +// synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt); + return; +} + +/** + * Disable interrupt according to the bitfield supplied. + * Disables only those interrupts specified in the bit mask in second argument. + * @param[in] pointer to synopGMACdevice. + * @param[in] bit mask for interrupts to be disabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) +{ + synopGMACClearBits(gmacdev->DmaBase, DmaInterrupt, interrupts); + return; +} +#endif +/** + * Enable the DMA Reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_enable_dma_rx(synopGMACdevice * gmacdev) +{ +// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaRxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data |= DmaRxStart; + TR0(" ===33334\n"); + synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); + TR0(" ===33344\n"); +} + +/** + * Enable the DMA Transmission. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_enable_dma_tx(synopGMACdevice * gmacdev) +{ +// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaTxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data |= DmaTxStart; + synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); + +} + +/** + * Resumes the DMA Transmission. + * the DmaTxPollDemand is written. (the data writeen could be anything). + * This forces the DMA to resume transmission. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_resume_dma_tx(synopGMACdevice * gmacdev) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaTxPollDemand, 1); + +} +/** + * Resumes the DMA Reception. + * the DmaRxPollDemand is written. (the data writeen could be anything). + * This forces the DMA to resume reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_resume_dma_rx(synopGMACdevice * gmacdev) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaRxPollDemand, 0); + +} +/** + * Take ownership of this Descriptor. + * The function is same for both the ring mode and the chain mode DMA structures. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_take_desc_ownership(DmaDesc * desc) +{ + if(desc){ + desc->status &= ~DescOwnByDma; //Clear the DMA own bit +// desc->status |= DescError; // Set the error to indicate this descriptor is bad + } +} + +/** + * Take ownership of all the rx Descriptors. + * This function is called when there is fatal error in DMA transmission. + * When called it takes the ownership of all the rx descriptor in rx descriptor pool/queue from DMA. + * The function is same for both the ring mode and the chain mode DMA structures. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. + */ +void synopGMAC_take_desc_ownership_rx(synopGMACdevice * gmacdev) +{ + s32 i; + DmaDesc *desc; + desc = gmacdev->RxDesc; + for(i = 0; i < gmacdev->RxDescCount; i++){ + if(synopGMAC_is_rx_desc_chained(desc)){ //This descriptor is in chain mode + + synopGMAC_take_desc_ownership(desc); + desc = (DmaDesc *)desc->data2; + } + else{ + synopGMAC_take_desc_ownership(desc + i); + } + } +} + +/** + * Take ownership of all the rx Descriptors. + * This function is called when there is fatal error in DMA transmission. + * When called it takes the ownership of all the tx descriptor in tx descriptor pool/queue from DMA. + * The function is same for both the ring mode and the chain mode DMA structures. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. + */ +void synopGMAC_take_desc_ownership_tx(synopGMACdevice * gmacdev) +{ + s32 i; + DmaDesc *desc; + desc = gmacdev->TxDesc; + for(i = 0; i < gmacdev->TxDescCount; i++){ + if(synopGMAC_is_tx_desc_chained(desc)){ //This descriptor is in chain mode + synopGMAC_take_desc_ownership(desc); + desc = (DmaDesc *)desc->data2; + } + else{ + synopGMAC_take_desc_ownership(desc + i); + } + } + +} + +/** + * Disable the DMA for Transmission. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ + +void synopGMAC_disable_dma_tx(synopGMACdevice * gmacdev) +{ +// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaTxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data &= (~DmaTxStart); + synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); +} +/** + * Disable the DMA for Reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_disable_dma_rx(synopGMACdevice * gmacdev) +{ +// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaRxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data &= (~DmaRxStart); + synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); +} + + + +/*******************PMT APIs***************************************/ + + + + +/** + * Enables the assertion of PMT interrupt. + * This enables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame + * reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); + return; +} +#endif +/** + * Disables the assertion of PMT interrupt. + * This disables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame + * reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); + return; +} +/** + * Enables the power down mode of GMAC. + * This function puts the Gmac in power down mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_power_down_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtPowerDown); + return; +} +#endif +/** + * Disables the powerd down setting of GMAC. + * If the driver wants to bring up the GMAC from powerdown mode, even though the magic packet or the + * wake up frames received from the network, this function should be called. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_power_down_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtPowerDown); + return; +} +#endif +/** + * Enables the pmt interrupt generation in powerdown mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); +} +#endif +/** + * Disables the pmt interrupt generation in powerdown mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); +} +#endif +/** + * Enables GMAC to look for Magic packet. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtMagicPktEnable); + return; +} +#endif + +/** + * Enables GMAC to look for wake up frame. + * Wake up frame is defined by the user. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtWakeupFrameEnable); + return; +} +#endif + +/** + * Enables wake-up frame filter to handle unicast packets. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtGlobalUnicast); + return; +} +#endif +/** + * Checks whether the packet received is a magic packet?. + * @param[in] pointer to synopGMACdevice. + * \return returns True if magic packet received else returns false. + */ +bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase,GmacPmtCtrlStatus); + return((data & GmacPmtMagicPktReceived) == GmacPmtMagicPktReceived); +} +/** + * Checks whether the packet received is a wakeup frame?. + * @param[in] pointer to synopGMACdevice. + * \return returns true if wakeup frame received else returns false. + */ +bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase,GmacPmtCtrlStatus); + return((data & GmacPmtWakeupFrameReceived) == GmacPmtWakeupFrameReceived); +} + +/** + * Populates the remote wakeup frame registers. + * Consecutive 8 writes to GmacWakeupAddr writes the wakeup frame filter registers. + * Before commensing a new write, frame filter pointer is reset to 0x0000. + * A small delay is introduced to allow frame filter pointer reset operation. + * @param[in] pointer to synopGMACdevice. + * @param[in] pointer to frame filter contents array. + * \return returns void. + */ +#if UNUSED +void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 * filter_contents) +{ + s32 i; + synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtFrmFilterPtrReset); + plat_delay(10); + for(i =0; iMacBase, GmacWakeupAddr, *(filter_contents + i)); + return; + +} +#endif +/*******************PMT APIs***************************************/ +/*******************MMC APIs***************************************/ + +/** + * Freezes the MMC counters. + * This function call freezes the MMC counters. None of the MMC counters are updated + * due to any tx or rx frames until synopGMAC_mmc_counters_resume is called. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterFreeze); + return; +} +#endif +/** + * Resumes the MMC counter updation. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterFreeze); + return; +} +#endif +/** + * Configures the MMC in Self clearing mode. + * Programs MMC interface so that counters are cleared when the counters are read. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterResetOnRead); + return; +} +#endif +/** + * Configures the MMC in non-Self clearing mode. + * Programs MMC interface so that counters are cleared when the counters are read. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterResetOnRead); + return; +} +#endif +/** + * Configures the MMC to stop rollover. + * Programs MMC interface so that counters will not rollover after reaching maximum value. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterStopRollover); + return; +} +/** + * Configures the MMC to rollover. + * Programs MMC interface so that counters will rollover after reaching maximum value. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterStopRollover); + return; +} + +/** + * Read the MMC Counter. + * @param[in] pointer to synopGMACdevice. + * @param[in] the counter to be read. + * \return returns the read count value. + */ +u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter) +{ + return( synopGMACReadReg(gmacdev->MacBase,counter)); +} +#endif +/** + * Read the MMC Rx interrupt status. + * @param[in] pointer to synopGMACdevice. + * \return returns the Rx interrupt status. + */ +u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev) +{ + return( synopGMACReadReg(gmacdev->MacBase,GmacMmcIntrRx)); +} +/** + * Read the MMC Tx interrupt status. + * @param[in] pointer to synopGMACdevice. + * \return returns the Tx interrupt status. + */ +u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev) +{ + return( synopGMACReadReg(gmacdev->MacBase,GmacMmcIntrTx)); +} +/** + * Disable the MMC Tx interrupt. + * The MMC tx interrupts are masked out as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] tx interrupt bit mask for which interrupts needs to be disabled. + * \return returns void. + */ +void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACSetBits(gmacdev->MacBase,GmacMmcIntrMaskTx,mask); + return; +} +/** + * Enable the MMC Tx interrupt. + * The MMC tx interrupts are enabled as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] tx interrupt bit mask for which interrupts needs to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACClearBits(gmacdev->MacBase,GmacMmcIntrMaskTx,mask); +} +#endif +/** + * Disable the MMC Rx interrupt. + * The MMC rx interrupts are masked out as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. + * \return returns void. + */ +void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACSetBits(gmacdev->MacBase,GmacMmcIntrMaskRx,mask); + return; +} +/** + * Enable the MMC Rx interrupt. + * The MMC rx interrupts are enabled as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACClearBits(gmacdev->MacBase,GmacMmcIntrMaskRx,mask); + return; +} +#endif +/** + * Disable the MMC ipc rx checksum offload interrupt. + * The MMC ipc rx checksum offload interrupts are masked out as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. + * \return returns void. + */ +void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACSetBits(gmacdev->MacBase,GmacMmcRxIpcIntrMask,mask); + return; +} +/** + * Enable the MMC ipc rx checksum offload interrupt. + * The MMC ipc rx checksum offload interrupts are enabled as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACClearBits(gmacdev->MacBase,GmacMmcRxIpcIntrMask,mask); + return; +} +#endif +/*******************MMC APIs***************************************/ +/*******************Ip checksum offloading APIs***************************************/ + +/** + * Enables the ip checksum offloading in receive path. + * When set GMAC calculates 16 bit 1's complement of all received ethernet frame payload. + * It also checks IPv4 Header checksum is correct. GMAC core appends the 16 bit checksum calculated + * for payload of IP datagram and appends it to Ethernet frame transferred to the application. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacConfig,GmacRxIpcOffload); + return; +} +/** + * Disable the ip checksum offloading in receive path. + * Ip checksum offloading is disabled in the receive path. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacConfig,GmacRxIpcOffload); +} +/** + * Instruct the DMA to drop the packets fails tcp ip checksum. + * This is to instruct the receive DMA engine to drop the recevied packet if they + * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->DmaBase,DmaControl,DmaDisableDropTcpCs); + return; +} +/** + * Instruct the DMA not to drop the packets even if it fails tcp ip checksum. + * This is to instruct the receive DMA engine to allow the packets even if recevied packet + * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->DmaBase,DmaControl,DmaDisableDropTcpCs); + return; +} +#endif + +/** + * When the Enhanced Descriptor is enabled then the bit 0 of RDES0 indicates whether the + * Extended Status is available (RDES4). Time Stamp feature and the Checksum Offload Engine2 + * makes use of this extended status to provide the status of the received packet. + * @param[in] pointer to synopGMACdevice + * \return returns TRUE or FALSE + */ +#ifdef ENH_DESC_8W + +/** + * This function indicates whether extended status is available in the RDES0. + * Any function which accesses the fields of extended status register must ensure a check on this has been made + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev,u32 status) // extended status present indicates that the RDES4 need to be probed +{ + return((status & DescRxEXTsts ) != 0 ); // if extstatus set then it returns 1 +} +/** + * This function returns true if the IP header checksum bit is set in the extended status. + * Valid only when enhaced status available is set in RDES0 bit 0. + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev,u32 ext_status) // IP header (IPV4) checksum error +{ + return((ext_status & DescRxIpHeaderError) != 0 ); // if IPV4 header error return 1 +} +/** + * This function returns true if the Checksum is bypassed in the hardware. + * Valid only when enhaced status available is set in RDES0 bit 0. + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev,u32 ext_status) // Hardware engine bypassed the checksum computation/checking +{ + return((ext_status & DescRxChkSumBypass ) != 0 ); // if checksum offloading bypassed return 1 +} +/** + * This function returns true if payload checksum error is set in the extended status. + * Valid only when enhaced status available is set in RDES0 bit 0. + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev,u32 ext_status) // IP payload checksum is in error (UDP/TCP/ICMP checksum error) +{ + return((ext_status & DescRxIpPayloadError) != 0 ); // if IP payload error return 1 +} +#endif + + + +/** + * Decodes the Rx Descriptor status to various checksum error conditions. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns decoded enum (u32) indicating the status. + */ +u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status) +{ + if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) + return RxLenLT600; + else if(((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) + return RxIpHdrPayLoadChkBypass; + else if(((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) + return RxChkBypass; + else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) + return RxNoChkError; + else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) + return RxPayLoadChkError; + else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) == 0)) + return RxIpHdrChkError; + else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) + return RxIpHdrPayLoadChkError; + else + return RxIpHdrPayLoadRes; +} +/** + * Checks if any Ipv4 header checksum error in the frame just transmitted. + * This serves as indication that error occureed in the IPv4 header checksum insertion. + * The sent out frame doesnot carry any ipv4 header checksum inserted by the hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns true if error in ipv4 header checksum, else returns false. + */ +bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status) +{ + return((status & DescTxIpv4ChkError) == DescTxIpv4ChkError); +} + + +/** + * Checks if any payload checksum error in the frame just transmitted. + * This serves as indication that error occureed in the payload checksum insertion. + * The sent out frame doesnot carry any payload checksum inserted by the hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns true if error in ipv4 header checksum, else returns false. + */ +bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status) +{ + return((status & DescTxPayChkError) == DescTxPayChkError); +} +/** + * The check summ offload engine is bypassed in the tx path. + * Checksum is not computed in the Hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc) +{ + #ifdef ENH_DESC + desc->status = (desc->length & (~DescTxCisMask));//ENH_DESC + #else + desc->length = (desc->length & (~DescTxCisMask)); + #endif + +} +/** + * The check summ offload engine is enabled to do only IPV4 header checksum. + * IPV4 header Checksum is computed in the Hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc) +{ + #ifdef ENH_DESC + desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisIpv4HdrCs);//ENH_DESC + #else + desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisIpv4HdrCs); + #endif + +} + +/** + * The check summ offload engine is enabled to do TCPIP checsum assuming Pseudo header is available. + * Hardware computes the tcp ip checksum assuming pseudo header checksum is computed in software. + * Ipv4 header checksum is also inserted. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc) +{ + #ifdef ENH_DESC + desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisTcpOnlyCs);//ENH_DESC + #else + desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpOnlyCs); + #endif + +} +/** + * The check summ offload engine is enabled to do complete checksum computation. + * Hardware computes the tcp ip checksum including the pseudo header checksum. + * Here the tcp payload checksum field should be set to 0000. + * Ipv4 header checksum is also inserted. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc) +{ + #ifdef ENH_DESC + desc->status = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); + #else + desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); + #endif + +} +/*******************Ip checksum offloading APIs***************************************/ + + + + + +/*******************IEEE 1588 Timestamping API***************************************/ + + +/* + * At this time the driver supports the IEEE time stamping feature when the Enhanced Descriptors are enabled. + * For normal descriptor and the IEEE time stamp (version 1), driver support is not proviced + * Please make sure you have enabled the Advanced timestamp feature in the hardware and the driver should + * be compiled with the ADV_TME_STAMP feature. + * Some of the APIs provided here may not be valid for all configurations. Please make sure you call the + * API with due care. + */ + +/** + * This function enables the timestamping. This enables the timestamping for transmit and receive frames. + * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +#if UNUSED +void synopGMAC_TS_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSENA); + return; +} +/** + * This function disables the timestamping. + * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask, GmacTSIntMask); + return; +} + + +/** + * Enable the interrupt to get timestamping interrupt. + * This enables the host to get the interrupt when (1) system time is greater or equal to the + * target time high and low register or (2) there is a overflow in th esecond register. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); + return; +} + +/** + * Disable the interrupt to get timestamping interrupt. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); + return; +} + +/** + * Enable MAC address for PTP frame filtering. + * When enabled, uses MAC address (apart from MAC address 0) to filter the PTP frames when + * PTP is sent directly over Ethernet. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSENMACADDR); + return; +} + +/** + * Disables MAC address for PTP frame filtering. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSENMACADDR); + return; +} + + +/** + * Selet the type of clock mode for PTP. + * Please note to use one of the follwoing as the clk_type argument. + * GmacTSOrdClk = 0x00000000, 00=> Ordinary clock + * GmacTSBouClk = 0x00010000, 01=> Boundary clock + * GmacTSEtoEClk = 0x00020000, 10=> End-to-End transparent clock + * GmacTSPtoPClk = 0x00030000, 11=> P-to-P transparent clock + * @param[in] pointer to synopGMACdevice + * @param[in] u32 value representing one of the above clk value + * \return returns void + */ +void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type) +{ + u32 clkval; + clkval = synopGMACReadReg(gmacdev->MacBase,GmacTSControl); //set the mdc clock to the user defined value + clkval = clkval | clk_type; + synopGMACWriteReg(gmacdev->MacBase,GmacTSControl,clkval); + return; +} + +/** + * Enable Snapshot for messages relevant to Master. + * When enabled, snapshot is taken for messages relevant to master mode only, else snapshot is taken for messages relevant + * to slave node. + * Valid only for Ordinary clock and Boundary clock + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSMSTRENA); + return; +} +/** + * Disable Snapshot for messages relevant to Master. + * When disabled, snapshot is taken for messages relevant + * to slave node. + * Valid only for Ordinary clock and Boundary clock + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSMSTRENA); + return; +} +/** + * Enable Snapshot for Event messages. + * When enabled, snapshot is taken for event messages only (SYNC, Delay_Req, Pdelay_Req or Pdelay_Resp) + * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSEVNTENA); + return; +} +/** + * Disable Snapshot for Event messages. + * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSEVNTENA); + return; +} + +/** + * Enable time stamp snapshot for IPV4 frames. + * When enabled, time stamp snapshot is taken for IPV4 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV4ENA); + return; +} +/** + * Disable time stamp snapshot for IPV4 frames. + * When disabled, time stamp snapshot is not taken for IPV4 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV4ENA); + return; +} // Only for "Advanced Time Stamp" +/** + * Enable time stamp snapshot for IPV6 frames. + * When enabled, time stamp snapshot is taken for IPV6 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV6ENA); + return; +} +/** + * Disable time stamp snapshot for IPV6 frames. + * When disabled, time stamp snapshot is not taken for IPV6 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV6ENA); + return; +} + +/** + * Enable time stamp snapshot for PTP over Ethernet frames. + * When enabled, time stamp snapshot is taken for PTP over Ethernet frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSIPENA); + return; +} +/** + * Disable time stamp snapshot for PTP over Ethernet frames. + * When disabled, time stamp snapshot is not taken for PTP over Ethernet frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSIPENA); + return; +} + + +/** + * Snoop PTP packet for version 2 format + * When set the PTP packets are snooped using the version 2 format. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSVER2ENA); + return; +} +/** + * Snoop PTP packet for version 2 format + * When set the PTP packets are snooped using the version 2 format. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSVER2ENA); + return; +} + +/** + * Timestamp digital rollover + * When set the timestamp low register rolls over after 0x3B9A_C9FF value. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSCTRLSSR); + return; +} +/** + * Timestamp binary rollover + * When set the timestamp low register rolls over after 0x7FFF_FFFF value. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSCTRLSSR); + return; +} +/** + * Enable Time Stamp for All frames + * When set the timestamp snap shot is enabled for all frames received by the core. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSENALL); + return; +} +/** + * Disable Time Stamp for All frames + * When reset the timestamp snap shot is not enabled for all frames received by the core. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSENALL); + return; +} +/** + * Addend Register Update + * This function loads the contents of Time stamp addend register with the supplied 32 value. + * This is reserved function when only coarse correction option is selected + * @param[in] pointer to synopGMACdevice + * @param[in] 32 bit addend value + * \return returns 0 for Success or else Failure + */ +s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value) +{ + u32 loop_variable; + synopGMACWriteReg(gmacdev->MacBase,GmacTSAddend,addend_value);// Load the addend_value in to Addend register + for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ //Wait till the busy bit gets cleared with in a certain amount of time + if(!((synopGMACReadReg(gmacdev->MacBase,GmacTSControl)) & GmacTSADDREG)){ // if it is cleared then break + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if(loop_variable < DEFAULT_LOOP_VARIABLE) + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSADDREG); + else{ + TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } +return -ESYNOPGMACNOERR; + +} +/** + * time stamp Update + * This function updates (adds/subtracts) with the value specified in the Timestamp High Update and + * Timestamp Low Update register. + * @param[in] pointer to synopGMACdevice + * @param[in] Timestamp High Update value + * @param[in] Timestamp Low Update value + * \return returns 0 for Success or else Failure + */ +s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) +{ + u32 loop_variable; + synopGMACWriteReg(gmacdev->MacBase,GmacTSHighUpdate,high_value);// Load the high value to Timestamp High register + synopGMACWriteReg(gmacdev->MacBase,GmacTSLowUpdate,low_value);// Load the high value to Timestamp High register + for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ //Wait till the busy bit gets cleared with in a certain amount of time + if(!((synopGMACReadReg(gmacdev->MacBase,GmacTSControl)) & GmacTSUPDT)){ // if it is cleared then break + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if(loop_variable < DEFAULT_LOOP_VARIABLE) + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSUPDT); + else{ + TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } +return -ESYNOPGMACNOERR; +} + +/** + * time stamp Initialize + * This function Loads/Initializes h the value specified in the Timestamp High Update and + * Timestamp Low Update register. + * @param[in] pointer to synopGMACdevice + * @param[in] Timestamp High Load value + * @param[in] Timestamp Low Load value + * \return returns 0 for Success or else Failure + */ +s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) +{ + u32 loop_variable; + synopGMACWriteReg(gmacdev->MacBase,GmacTSHighUpdate,high_value);// Load the high value to Timestamp High register + synopGMACWriteReg(gmacdev->MacBase,GmacTSLowUpdate,low_value);// Load the high value to Timestamp High register + for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ //Wait till the busy bit gets cleared with in a certain amount of time + if(!((synopGMACReadReg(gmacdev->MacBase,GmacTSControl)) & GmacTSINT)){ // if it is cleared then break + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if(loop_variable < DEFAULT_LOOP_VARIABLE) + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSINT); + else{ + TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } +return -ESYNOPGMACNOERR; +} + +/** + * Time Stamp Update Coarse + * When reset the timestamp update is done using coarse method. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSCFUPDT); + return; +} +/** + * Time Stamp Update Fine + * When reset the timestamp update is done using Fine method. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSCFUPDT); + return; +} + +/** + * Load the Sub Second Increment value in to Sub Second increment register + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_value) +{ + synopGMACWriteReg(gmacdev->MacBase,GmacTSSubSecIncr,(sub_sec_inc_value & GmacSSINCMsk)); + return; +} +/** + * Reads the time stamp contents in to the respective pointers + * These registers are readonly. + * This function returns the 48 bit time stamp assuming Version 2 timestamp with higher word is selected. + * @param[in] pointer to synopGMACdevice + * @param[in] pointer to hold 16 higher bit second register contents + * @param[in] pointer to hold 32 bit second register contents + * @param[in] pointer to hold 32 bit subnanosecond register contents + * \return returns void + * \note Please note that since the atomic access to the timestamp registers is not possible, + * the contents read may be different from the actual time stamp. + */ +void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 * higher_sec_val, u32 * sec_val, u32 * sub_sec_val) +{ + * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase,GmacTSHighWord) & GmacTSHighWordMask); + * sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSHigh); + * sub_sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSLow); + return; +} +/** + * Loads the time stamp higher sec value from the value supplied + * @param[in] pointer to synopGMACdevice + * @param[in] 16 higher bit second register contents passed as 32 bit value + * \return returns void + */ +void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val) +{ + synopGMACWriteReg(gmacdev->MacBase,GmacTSHighWord, (higher_sec_val & GmacTSHighWordMask)); + return; +} +/** + * Reads the time stamp higher sec value to respective pointers + * @param[in] pointer to synopGMACdevice + * @param[in] pointer to hold 16 higher bit second register contents + * \return returns void + */ +void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 * higher_sec_val) +{ + * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase,GmacTSHighWord) & GmacTSHighWordMask); + return; +} +/** + * Load the Target time stamp registers + * This function Loads the target time stamp registers with the values proviced + * @param[in] pointer to synopGMACdevice + * @param[in] target Timestamp High value + * @param[in] target Timestamp Low value + * \return returns 0 for Success or else Failure + */ +void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val) +{ + synopGMACWriteReg(gmacdev->MacBase,GmacTSTargetTimeHigh,sec_val); + synopGMACWriteReg(gmacdev->MacBase,GmacTSTargetTimeLow,sub_sec_val); + return; +} +/** + * Reads the Target time stamp registers + * This function Loads the target time stamp registers with the values proviced + * @param[in] pointer to synopGMACdevice + * @param[in] pointer to hold target Timestamp High value + * @param[in] pointer to hold target Timestamp Low value + * \return returns 0 for Success or else Failure + */ +void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 * sec_val, u32 * sub_sec_val) +{ + * sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSTargetTimeHigh); + * sub_sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSTargetTimeLow); + return; +} +#endif diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.h new file mode 100644 index 0000000000..74bc850d86 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Dev.h @@ -0,0 +1,1747 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#define UNUSED 1 + +#ifndef SYNOP_GMAC_DEV_H +#define SYNOP_GMAC_DEV_H 1 + +/*******************************************************************/ +#define SYNOP_LOOPBACK_MODE 0 +#define SYNOP_LOOPBACK_DEBUG 0 +#define SYNOP_PHY_LOOPBACK 0 + +#define SYNOP_TX_TEST 0 +#define SYNOP_RX_TEST 0 + +#define SYNOP_TOP_DEBUG 0 +#define SYNOP_REG_DEBUG 0 +#define SYNOP_RX_DEBUG 0 +#define SYNOP_TX_DEBUG 0 +/*******************************************************************/ + +#include "synopGMAC_plat.h" +#include "synopGMAC_types.h" + +//sw: typedef are included in synopGMAC_plat.h +// it is strange that we should add it here again!! + +/*SynopGMAC can support up to 32 phys*/ +#define GMAC_PHY_BASE 1 +#ifdef GMAC_PHY_BASE +#define DEFAULT_PHY_BASE GMAC_PHY_BASE +#else +#define DEFAULT_PHY_BASE PHY16 //We use First Phy +#endif +#define MACBASE 0x0000 // The Mac Base address offset is 0x0000 +#define DMABASE 0x1000 // Dma base address starts with an offset 0x1000 + + +enum GMACPhyBase +{ + PHY0 = 0, //The device can support 32 phys, but we use first phy only + PHY1 = 1, + PHY16 = 16, + PHY31 = 31, +}; + + +//#define TRANSMIT_DESC_SIZE 256 //Tx Descriptors needed in the Descriptor pool/queue +//#define RECEIVE_DESC_SIZE 256 //Rx Descriptors needed in the Descriptor pool/queue +//#define TRANSMIT_DESC_SIZE 13//256 //Tx Descriptors needed in the Descriptor pool/queue +#define TRANSMIT_DESC_SIZE 36 //48 //Tx Descriptors needed in the Descriptor pool/queue +#define RECEIVE_DESC_SIZE 72 //96 //Rx Descriptors needed in the Descriptor pool/queue + +#define ETHERNET_HEADER 14 //6 byte Dest addr, 6 byte Src addr, 2 byte length/type +#define ETHERNET_CRC 4 //Ethernet CRC +#define ETHERNET_EXTRA 2 //Only God knows about this????? +#define ETHERNET_PACKET_COPY 250 // Maximum length when received data is copied on to a new skb +#define ETHERNET_PACKET_EXTRA 18 // Preallocated length for the rx packets is MTU + ETHERNET_PACKET_EXTRA +#define VLAN_TAG 4 //optional 802.1q VLAN Tag +#define MIN_ETHERNET_PAYLOAD 46 //Minimum Ethernet payload size +#define MAX_ETHERNET_PAYLOAD 1500 //Maximum Ethernet payload size +#define JUMBO_FRAME_PAYLOAD 9000 //Jumbo frame payload size + +#define TX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG +#define RX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG + + +// This is the IP's phy address. This is unique address for every MAC in the universe +#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} + +/* +DMA Descriptor Structure +The structure is common for both receive and transmit descriptors +The descriptor is of 4 words, but our structrue contains 6 words where +last two words are to hold the virtual address of the network buffer pointers +for driver's use +From the GMAC core release 3.50a onwards, the Enhanced Descriptor structure got changed. +The descriptor (both transmit and receive) are of 8 words each rather the 4 words of normal +descriptor structure. +Whenever IEEE 1588 Timestamping is enabled TX/RX DESC6 provides the lower 32 bits of Timestamp value and + TX/RX DESC7 provides the upper 32 bits of Timestamp value +In addition to this whenever extended status bit is set (RX DESC0 bit 0), RX DESC4 contains the extended status information +*/ + +#define MODULO_INTERRUPT 1 // if it is set to 1, interrupt is available for all the descriptors or else interrupt is available only for + // descriptor whose index%MODULO_INTERRUPT is zero +#ifdef ENH_DESC_8W +typedef struct DmaDescStruct +{ + u32 status; /* Status */ + u32 length; /* Buffer 1 and Buffer 2 length */ + u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ + u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ + /* This data below is used only by driver */ + u32 extstatus; /* Extended status of a Rx Descriptor */ + u32 reserved1; /* Reserved word */ + u32 timestamplow; /* Lower 32 bits of the 64 bit timestamp value */ + u32 timestamphigh; /* Higher 32 bits of the 64 bit timestamp value */ + u32 data1; /* This holds virtual address of buffer1, not used by DMA */ + u32 data2; /* This holds virtual address of buffer2, not used by DMA */ +} DmaDesc; +#else +typedef struct DmaDescStruct +{ + u32 status; /* Status */ + u32 length; /* Buffer 1 and Buffer 2 length */ + u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ + u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ + /* This data below is used only by driver */ + u32 data1; /* This holds virtual address of buffer1, not used by DMA */ + u32 data2; /* This holds virtual address of buffer2, not used by DMA */ + + u32 dummy1; //sw: for addr align + u32 dummy2; // + +} DmaDesc; +#endif + +enum DescMode +{ + RINGMODE = 0x00000001, + CHAINMODE = 0x00000002, +}; + +enum BufferMode +{ + SINGLEBUF = 0x00000001, + DUALBUF = 0x00000002, +}; + +/* synopGMAC device data */ + +typedef struct synopGMACDeviceStruct +{ + u32 MacBase; /* base address of MAC registers */ + u32 DmaBase; /* base address of DMA registers */ + u32 PhyBase; /* PHY device address on MII interface */ + u32 Version; /* Gmac Revision version */ + + + dma_addr_t TxDescDma; /* Dma-able address of first tx descriptor either in ring or chain mode, this is used by the GMAC device*/ + dma_addr_t RxDescDma; /* Dma-albe address of first rx descriptor either in ring or chain mode, this is used by the GMAC device*/ + DmaDesc *TxDesc; /* start address of TX descriptors ring or chain, this is used by the driver */ + DmaDesc *RxDesc; /* start address of RX descriptors ring or chain, this is used by the driver */ + + u32 BusyTxDesc; /* Number of Tx Descriptors owned by DMA at any given time*/ + u32 BusyRxDesc; /* Number of Rx Descriptors owned by DMA at any given time*/ + + u32 RxDescCount; /* number of rx descriptors in the tx descriptor queue/pool */ + u32 TxDescCount; /* number of tx descriptors in the rx descriptor queue/pool */ + + u32 TxBusy; /* index of the tx descriptor owned by DMA, is obtained by synopGMAC_get_tx_qptr() */ + u32 TxNext; /* index of the tx descriptor next available with driver, given to DMA by synopGMAC_set_tx_qptr() */ + u32 RxBusy; /* index of the rx descriptor owned by DMA, obtained by synopGMAC_get_rx_qptr() */ + u32 RxNext; /* index of the rx descriptor next available with driver, given to DMA by synopGMAC_set_rx_qptr() */ + + DmaDesc * TxBusyDesc; /* Tx Descriptor address corresponding to the index TxBusy */ + DmaDesc * TxNextDesc; /* Tx Descriptor address corresponding to the index TxNext */ + DmaDesc * RxBusyDesc; /* Rx Descriptor address corresponding to the index TxBusy */ + DmaDesc * RxNextDesc; /* Rx Descriptor address corresponding to the index RxNext */ + + /*Phy related stuff*/ + u32 ClockDivMdc; /* Clock divider value programmed in the hardware */ + /* The status of the link */ + u32 LinkState0; /* Link status as reported by the Marvel Phy */ + u32 LinkState; /* Link status as reported by the Marvel Phy */ + u32 DuplexMode; /* Duplex mode of the Phy */ + u32 Speed; /* Speed of the Phy */ + u32 LoopBackMode; /* Loopback status of the Phy */ + +// void * FirstTxDesc; +// void * FirstRxDesc; +// u32 skb_array[RECEIVE_DESC_SIZE]; +} synopGMACdevice; + + + +/* Below is "88E1011/88E1011S Integrated 10/100/1000 Gigabit Ethernet Transceiver" + * Register and their layouts. This Phy has been used in the Dot Aster GMAC Phy daughter. + * Since the Phy register map is standard, this map hardly changes to a different Ppy + */ + +enum MiiRegisters +{ + PHY_CONTROL_REG = 0x0000, /*Control Register*/ + PHY_STATUS_REG = 0x0001, /*Status Register */ + PHY_ID_HI_REG = 0x0002, /*PHY Identifier High Register*/ + PHY_ID_LOW_REG = 0x0003, /*PHY Identifier High Register*/ + PHY_AN_ADV_REG = 0x0004, /*Auto-Negotiation Advertisement Register*/ + PHY_LNK_PART_ABl_REG = 0x0005, /*Link Partner Ability Register (Base Page)*/ + PHY_AN_EXP_REG = 0x0006, /*Auto-Negotiation Expansion Register*/ + PHY_AN_NXT_PAGE_TX_REG = 0x0007, /*Next Page Transmit Register*/ + PHY_LNK_PART_NXT_PAGE_REG = 0x0008, /*Link Partner Next Page Register*/ + PHY_1000BT_CTRL_REG = 0x0009, /*1000BASE-T Control Register*/ + PHY_1000BT_STATUS_REG = 0x000a, /*1000BASE-T Status Register*/ + PHY_SPECIFIC_CTRL_REG = 0x0010, /*Phy specific control register*/ + PHY_SPECIFIC_STATUS_REG = 0x0011, /*Phy specific status register*/ + PHY_INTERRUPT_ENABLE_REG = 0x0012, /*Phy interrupt enable register*/ + PHY_INTERRUPT_STATUS_REG = 0x0013, /*Phy interrupt status register*/ + PHY_EXT_PHY_SPC_CTRL = 0x0014, /*Extended Phy specific control*/ + PHY_RX_ERR_COUNTER = 0x0015, /*Receive Error Counter*/ + PHY_EXT_ADDR_CBL_DIAG = 0x0016, /*Extended address for cable diagnostic register*/ + PHY_LED_CONTROL = 0x0018, /*LED Control*/ + PHY_MAN_LED_OVERIDE = 0x0019, /*Manual LED override register*/ + PHY_EXT_PHY_SPC_CTRL2 = 0x001a, /*Extended Phy specific control 2*/ + PHY_EXT_PHY_SPC_STATUS = 0x001b, /*Extended Phy specific status*/ + PHY_CBL_DIAG_REG = 0x001c, /*Cable diagnostic registers*/ +}; + + +/* This is Control register layout. Control register is of 16 bit wide. +*/ + +enum Mii_GEN_CTRL +{ /* Description bits R/W default value */ + Mii_reset = 0x8000, + Mii_Speed_10 = 0x0000, /* 10 Mbps 6:13 RW */ + Mii_Speed_100 = 0x2000, /* 100 Mbps 6:13 RW */ + Mii_Speed_1000 = 0x0040, /* 1000 Mbit/s 6:13 RW */ + + Mii_Duplex = 0x0100, /* Full Duplex mode 8 RW */ + + Mii_Manual_Master_Config = 0x0800, /* Manual Master Config 11 RW */ + + Mii_Loopback = 0x4000, /* Enable Loop back 14 RW */ + Mii_NoLoopback = 0x0000, /* Enable Loop back 14 RW */ +}; + +enum Mii_Phy_Status +{ + Mii_phy_status_speed_10 = 0x0000, + Mii_phy_status_speed_100 = 0x4000, + Mii_phy_status_speed_1000 = 0x8000, + + Mii_phy_status_full_duplex = 0x2000, + Mii_phy_status_half_duplex = 0x0000, + + Mii_phy_status_link_up = 0x0400, //lyf:rtl 8211 phy +// Mii_phy_status_link_up = 0x0100, //sw: broadcom BCM5461 PHY +}; +/* This is Status register layout. Status register is of 16 bit wide. +*/ +enum Mii_GEN_STATUS +{ + Mii_AutoNegCmplt = 0x0020, /* Autonegotiation completed 5 RW */ + Mii_Link = 0x0004, /* Link status 2 RW */ +}; + +enum Mii_Link_Status +{ + LINKDOWN = 0, + LINKUP = 1, +}; + +enum Mii_Duplex_Mode +{ + HALFDUPLEX = 1, + FULLDUPLEX = 2, +}; +enum Mii_Link_Speed +{ + SPEED10 = 1, + SPEED100 = 2, + SPEED1000 = 3, +}; + +enum Mii_Loop_Back +{ + NOLOOPBACK = 0, + LOOPBACK = 1, +}; + + + +/********************************************************** + * GMAC registers Map + * For Pci based system address is BARx + GmacRegisterBase + * For any other system translation is done accordingly + **********************************************************/ +enum GmacRegisters +{ + GmacConfig = 0x0000, /* Mac config Register */ + GmacFrameFilter = 0x0004, /* Mac frame filtering controls */ + GmacHashHigh = 0x0008, /* Multi-cast hash table high */ + GmacHashLow = 0x000C, /* Multi-cast hash table low */ + GmacGmiiAddr = 0x0010, /* GMII address Register(ext. Phy) */ + GmacGmiiData = 0x0014, /* GMII data Register(ext. Phy) */ + GmacFlowControl = 0x0018, /* Flow control Register */ + GmacVlan = 0x001C, /* VLAN tag Register (IEEE 802.1Q) */ + + GmacVersion = 0x0020, /* GMAC Core Version Register */ + GmacWakeupAddr = 0x0028, /* GMAC wake-up frame filter adrress reg */ + GmacPmtCtrlStatus = 0x002C, /* PMT control and status register */ + + GmacInterruptStatus = 0x0038, /* Mac Interrupt ststus register */ + GmacInterruptMask = 0x003C, /* Mac Interrupt Mask register */ + + GmacAddr0High = 0x0040, /* Mac address0 high Register */ + GmacAddr0Low = 0x0044, /* Mac address0 low Register */ + GmacAddr1High = 0x0048, /* Mac address1 high Register */ + GmacAddr1Low = 0x004C, /* Mac address1 low Register */ + GmacAddr2High = 0x0050, /* Mac address2 high Register */ + GmacAddr2Low = 0x0054, /* Mac address2 low Register */ + GmacAddr3High = 0x0058, /* Mac address3 high Register */ + GmacAddr3Low = 0x005C, /* Mac address3 low Register */ + GmacAddr4High = 0x0060, /* Mac address4 high Register */ + GmacAddr4Low = 0x0064, /* Mac address4 low Register */ + GmacAddr5High = 0x0068, /* Mac address5 high Register */ + GmacAddr5Low = 0x006C, /* Mac address5 low Register */ + GmacAddr6High = 0x0070, /* Mac address6 high Register */ + GmacAddr6Low = 0x0074, /* Mac address6 low Register */ + GmacAddr7High = 0x0078, /* Mac address7 high Register */ + GmacAddr7Low = 0x007C, /* Mac address7 low Register */ + GmacAddr8High = 0x0080, /* Mac address8 high Register */ + GmacAddr8Low = 0x0084, /* Mac address8 low Register */ + GmacAddr9High = 0x0088, /* Mac address9 high Register */ + GmacAddr9Low = 0x008C, /* Mac address9 low Register */ + GmacAddr10High = 0x0090, /* Mac address10 high Register */ + GmacAddr10Low = 0x0094, /* Mac address10 low Register */ + GmacAddr11High = 0x0098, /* Mac address11 high Register */ + GmacAddr11Low = 0x009C, /* Mac address11 low Register */ + GmacAddr12High = 0x00A0, /* Mac address12 high Register */ + GmacAddr12Low = 0x00A4, /* Mac address12 low Register */ + GmacAddr13High = 0x00A8, /* Mac address13 high Register */ + GmacAddr13Low = 0x00AC, /* Mac address13 low Register */ + GmacAddr14High = 0x00B0, /* Mac address14 high Register */ + GmacAddr14Low = 0x00B4, /* Mac address14 low Register */ + GmacAddr15High = 0x00B8, /* Mac address15 high Register */ + GmacAddr15Low = 0x00BC, /* Mac address15 low Register */ + GmacStatus = 0x00d8, /*MAC status*/ + + /*Time Stamp Register Map*/ + GmacTSControl = 0x0700, /* Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ + + GmacTSSubSecIncr = 0x0704, /* 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSHigh = 0x0708, /* 32 bit seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ + GmacTSLow = 0x070C, /* 32 bit nano seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSHighUpdate = 0x0710, /* 32 bit seconds(MS) to be written/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ + GmacTSLowUpdate = 0x0714, /* 32 bit nano seconds(MS) to be writeen/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSAddend = 0x0718, /* Used by Software to readjust the clock frequency linearly : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSTargetTimeHigh = 0x071C, /* 32 bit seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ + GmacTSTargetTimeLow = 0x0720, /* 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSHighWord = 0x0724, /* Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ + //GmacTSHighWordUpdate = 0x072C, /* Time Stamp Higher Word Update Register (Version 2 only); only lower 16 bits are valid */ + + GmacTSStatus = 0x0728, /* Time Stamp Status Register */ +}; + +/********************************************************** + * GMAC Network interface registers + * This explains the Register's Layout + + * FES is Read only by default and is enabled only when Tx + * Config Parameter is enabled for RGMII/SGMII interface + * during CoreKit Config. + + * DM is Read only with value 1'b1 in Full duplex only Config + **********************************************************/ + +/* GmacConfig = 0x0000, Mac config Register Layout */ +enum GmacConfigReg +{ + /* Bit description Bits R/W Reset value */ + GmacWatchdog = 0x00800000, + GmacWatchdogDisable = 0x00800000, /* (WD)Disable watchdog timer on Rx 23 RW */ + GmacWatchdogEnable = 0x00000000, /* Enable watchdog timer 0 */ + + GmacJabber = 0x00400000, + GmacJabberDisable = 0x00400000, /* (JD)Disable jabber timer on Tx 22 RW */ + GmacJabberEnable = 0x00000000, /* Enable jabber timer 0 */ + + GmacFrameBurst = 0x00200000, + GmacFrameBurstEnable = 0x00200000, /* (BE)Enable frame bursting during Tx 21 RW */ + GmacFrameBurstDisable = 0x00000000, /* Disable frame bursting 0 */ + + GmacJumboFrame = 0x00100000, + GmacJumboFrameEnable = 0x00100000, /* (JE)Enable jumbo frame for Tx 20 RW */ + GmacJumboFrameDisable = 0x00000000, /* Disable jumbo frame 0 */ + + GmacInterFrameGap7 = 0x000E0000, /* (IFG) Config7 - 40 bit times 19:17 RW */ + GmacInterFrameGap6 = 0x000C0000, /* (IFG) Config6 - 48 bit times */ + GmacInterFrameGap5 = 0x000A0000, /* (IFG) Config5 - 56 bit times */ + GmacInterFrameGap4 = 0x00080000, /* (IFG) Config4 - 64 bit times */ + GmacInterFrameGap3 = 0x00040000, /* (IFG) Config3 - 72 bit times */ + GmacInterFrameGap2 = 0x00020000, /* (IFG) Config2 - 80 bit times */ + GmacInterFrameGap1 = 0x00010000, /* (IFG) Config1 - 88 bit times */ + GmacInterFrameGap0 = 0x00000000, /* (IFG) Config0 - 96 bit times 000 */ + + GmacDisableCrs = 0x00010000, + GmacMiiGmii = 0x00008000, + GmacSelectMii = 0x00008000, /* (PS)Port Select-MII mode 15 RW */ + GmacSelectGmii = 0x00000000, /* GMII mode 0 */ + + GmacFESpeed100 = 0x00004000, /*(FES)Fast Ethernet speed 100Mbps 14 RW */ + GmacFESpeed10 = 0x00000000, /* 10Mbps 0 */ + + GmacRxOwn = 0x00002000, + GmacDisableRxOwn = 0x00002000, /* (DO)Disable receive own packets 13 RW */ + GmacEnableRxOwn = 0x00000000, /* Enable receive own packets 0 */ + + GmacLoopback = 0x00001000, + GmacLoopbackOn = 0x00001000, /* (LM)Loopback mode for GMII/MII 12 RW */ + GmacLoopbackOff = 0x00000000, /* Normal mode 0 */ + + GmacDuplex = 0x00000800, + GmacFullDuplex = 0x00000800, /* (DM)Full duplex mode 11 RW */ + GmacHalfDuplex = 0x00000000, /* Half duplex mode 0 */ + + GmacRxIpcOffload = 0x00000400, /*IPC checksum offload 10 RW 0 */ + + GmacRetry = 0x00000200, + GmacRetryDisable = 0x00000200, /* (DR)Disable Retry 9 RW */ + GmacRetryEnable = 0x00000000, /* Enable retransmission as per BL 0 */ + + GmacLinkUp = 0x00000100, /* (LUD)Link UP 8 RW */ + GmacLinkDown = 0x00000100, /* Link Down 0 */ + + GmacPadCrcStrip = 0x00000080, + GmacPadCrcStripEnable = 0x00000080, /* (ACS) Automatic Pad/Crc strip enable 7 RW */ + GmacPadCrcStripDisable = 0x00000000, /* Automatic Pad/Crc stripping disable 0 */ + + GmacBackoffLimit = 0x00000060, + GmacBackoffLimit3 = 0x00000060, /* (BL)Back-off limit in HD mode 6:5 RW */ + GmacBackoffLimit2 = 0x00000040, /* */ + GmacBackoffLimit1 = 0x00000020, /* */ + GmacBackoffLimit0 = 0x00000000, /* 00 */ + + GmacDeferralCheck = 0x00000010, + GmacDeferralCheckEnable = 0x00000010, /* (DC)Deferral check enable in HD mode 4 RW */ + GmacDeferralCheckDisable = 0x00000000, /* Deferral check disable 0 */ + + GmacTx = 0x00000008, + GmacTxEnable = 0x00000008, /* (TE)Transmitter enable 3 RW */ + GmacTxDisable = 0x00000000, /* Transmitter disable 0 */ + + GmacRx = 0x00000004, + GmacRxEnable = 0x00000004, /* (RE)Receiver enable 2 RW */ + GmacRxDisable = 0x00000000, /* Receiver disable 0 */ +}; + +/* GmacFrameFilter = 0x0004, Mac frame filtering controls Register Layout*/ +enum GmacFrameFilterReg +{ + GmacFilter = 0x80000000, + GmacFilterOff = 0x80000000, /* (RA)Receive all incoming packets 31 RW */ + GmacFilterOn = 0x00000000, /* Receive filtered packets only 0 */ + + GmacHashPerfectFilter = 0x00000400, /*Hash or Perfect Filter enable 10 RW 0 */ + + GmacSrcAddrFilter = 0x00000200, + GmacSrcAddrFilterEnable = 0x00000200, /* (SAF)Source Address Filter enable 9 RW */ + GmacSrcAddrFilterDisable = 0x00000000, /* 0 */ + + GmacSrcInvaAddrFilter = 0x00000100, + GmacSrcInvAddrFilterEn = 0x00000100, /* (SAIF)Inv Src Addr Filter enable 8 RW */ + GmacSrcInvAddrFilterDis = 0x00000000, /* 0 */ + + GmacPassControl = 0x000000C0, + GmacPassControl3 = 0x000000C0, /* (PCS)Forwards ctrl frms that pass AF 7:6 RW */ + GmacPassControl2 = 0x00000080, /* Forwards all control frames */ + GmacPassControl1 = 0x00000040, /* Does not pass control frames */ + GmacPassControl0 = 0x00000000, /* Does not pass control frames 00 */ + + GmacBroadcast = 0x00000020, + GmacBroadcastDisable = 0x00000020, /* (DBF)Disable Rx of broadcast frames 5 RW */ + GmacBroadcastEnable = 0x00000000, /* Enable broadcast frames 0 */ + + GmacMulticastFilter = 0x00000010, + GmacMulticastFilterOff = 0x00000010, /* (PM) Pass all multicast packets 4 RW */ + GmacMulticastFilterOn = 0x00000000, /* Pass filtered multicast packets 0 */ + + GmacDestAddrFilter = 0x00000008, + GmacDestAddrFilterInv = 0x00000008, /* (DAIF)Inverse filtering for DA 3 RW */ + GmacDestAddrFilterNor = 0x00000000, /* Normal filtering for DA 0 */ + + GmacMcastHashFilter = 0x00000004, + GmacMcastHashFilterOn = 0x00000004, /* (HMC)perfom multicast hash filtering 2 RW */ + GmacMcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ + + GmacUcastHashFilter = 0x00000002, + GmacUcastHashFilterOn = 0x00000002, /* (HUC)Unicast Hash filtering only 1 RW */ + GmacUcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ + + GmacPromiscuousMode = 0x00000001, + GmacPromiscuousModeOn = 0x00000001, /* Receive all frames 0 RW */ + GmacPromiscuousModeOff = 0x00000000, /* Receive filtered packets only 0 */ +}; + + +/*GmacGmiiAddr = 0x0010, GMII address Register(ext. Phy) Layout */ +enum GmacGmiiAddrReg +{ + GmiiDevMask = 0x0000F800, /* (PA)GMII device address 15:11 RW 0x00 */ + GmiiDevShift = 11, + + GmiiRegMask = 0x000007C0, /* (GR)GMII register in selected Phy 10:6 RW 0x00 */ + GmiiRegShift = 6, + + GmiiCsrClkMask = 0x0000001C, /*CSR Clock bit Mask 4:2 */ + GmiiCsrClk5 = 0x00000014, /* (CR)CSR Clock Range 250-300 MHz 4:2 RW 000 */ + GmiiCsrClk4 = 0x00000010, /* 150-250 MHz */ + GmiiCsrClk3 = 0x0000000C, /* 35-60 MHz */ + GmiiCsrClk2 = 0x00000008, /* 20-35 MHz */ + GmiiCsrClk1 = 0x00000004, /* 100-150 MHz */ + GmiiCsrClk0 = 0x00000000, /* 60-100 MHz */ + + GmiiWrite = 0x00000002, /* (GW)Write to register 1 RW */ + GmiiRead = 0x00000000, /* Read from register 0 */ + + GmiiBusy = 0x00000001, /* (GB)GMII interface is busy 0 RW 0 */ +}; + +/* GmacGmiiData = 0x0014, GMII data Register(ext. Phy) Layout */ +enum GmacGmiiDataReg +{ + GmiiDataMask = 0x0000FFFF, /* (GD)GMII Data 15:0 RW 0x0000 */ +}; + + +/*GmacFlowControl = 0x0018, Flow control Register Layout */ +enum GmacFlowControlReg +{ + GmacPauseTimeMask = 0xFFFF0000, /* (PT) PAUSE TIME field in the control frame 31:16 RW 0x0000 */ + GmacPauseTimeShift = 16, + + GmacPauseLowThresh = 0x00000030, + GmacPauseLowThresh3 = 0x00000030, /* (PLT)thresh for pause tmr 256 slot time 5:4 RW */ + GmacPauseLowThresh2 = 0x00000020, /* 144 slot time */ + GmacPauseLowThresh1 = 0x00000010, /* 28 slot time */ + GmacPauseLowThresh0 = 0x00000000, /* 4 slot time 000 */ + + GmacUnicastPauseFrame = 0x00000008, + GmacUnicastPauseFrameOn = 0x00000008, /* (UP)Detect pause frame with unicast addr. 3 RW */ + GmacUnicastPauseFrameOff = 0x00000000, /* Detect only pause frame with multicast addr. 0 */ + + GmacRxFlowControl = 0x00000004, + GmacRxFlowControlEnable = 0x00000004, /* (RFE)Enable Rx flow control 2 RW */ + GmacRxFlowControlDisable = 0x00000000, /* Disable Rx flow control 0 */ + + GmacTxFlowControl = 0x00000002, + GmacTxFlowControlEnable = 0x00000002, /* (TFE)Enable Tx flow control 1 RW */ + GmacTxFlowControlDisable = 0x00000000, /* Disable flow control 0 */ + + GmacFlowControlBackPressure= 0x00000001, + GmacSendPauseFrame = 0x00000001, /* (FCB/PBA)send pause frm/Apply back pressure 0 RW 0 */ +}; + +/* GmacInterruptStatus = 0x0038, Mac Interrupt ststus register */ +enum GmacInterruptStatusBitDefinition +{ + GmacTSIntSts = 0x00000200, /* set if int generated due to TS (Read Time Stamp Status Register to know details)*/ + GmacMmcRxChksumOffload = 0x00000080, /* set if int generated in MMC RX CHECKSUM OFFLOAD int register */ + GmacMmcTxIntSts = 0x00000040, /* set if int generated in MMC TX Int register */ + GmacMmcRxIntSts = 0x00000020, /* set if int generated in MMC RX Int register */ + GmacMmcIntSts = 0x00000010, /* set if any of the above bit [7:5] is set */ + GmacPmtIntSts = 0x00000008, /* set whenver magic pkt/wake-on-lan frame is received */ + GmacPcsAnComplete = 0x00000004, /* set when AN is complete in TBI/RTBI/SGMIII phy interface */ + GmacPcsLnkStsChange = 0x00000002, /* set if any lnk status change in TBI/RTBI/SGMII interface */ + GmacRgmiiIntSts = 0x00000001, /* set if any change in lnk status of RGMII interface */ + +}; + +/* GmacInterruptMask = 0x003C, Mac Interrupt Mask register */ +enum GmacInterruptMaskBitDefinition +{ + GmacTSIntMask = 0x00000200, /* when set disables the time stamp interrupt generation */ + GmacPmtIntMask = 0x00000008, /* when set Disables the assertion of PMT interrupt */ + GmacPcsAnIntMask = 0x00000004, /* When set disables the assertion of PCS AN complete interrupt */ + GmacPcsLnkStsIntMask = 0x00000002, /* when set disables the assertion of PCS lnk status change interrupt */ + GmacRgmiiIntMask = 0x00000001, /* when set disables the assertion of RGMII int */ +}; + +/********************************************************** + * GMAC DMA registers + * For Pci based system address is BARx + GmaDmaBase + * For any other system translation is done accordingly + **********************************************************/ + +enum DmaRegisters +{ + DmaBusMode = 0x0000, /* CSR0 - Bus Mode Register */ + DmaTxPollDemand = 0x0004, /* CSR1 - Transmit Poll Demand Register */ + DmaRxPollDemand = 0x0008, /* CSR2 - Receive Poll Demand Register */ + DmaRxBaseAddr = 0x000C, /* CSR3 - Receive Descriptor list base address */ + DmaTxBaseAddr = 0x0010, /* CSR4 - Transmit Descriptor list base address */ + DmaStatus = 0x0014, /* CSR5 - Dma status Register */ + DmaControl = 0x0018, /* CSR6 - Dma Operation Mode Register */ + DmaInterrupt = 0x001C, /* CSR7 - Interrupt enable */ + DmaMissedFr = 0x0020, /* CSR8 - Missed Frame & Buffer overflow Counter */ + DmaTxCurrDesc = 0x0048, /* - Current host Tx Desc Register */ + DmaRxCurrDesc = 0x004C, /* - Current host Rx Desc Register */ + DmaTxCurrAddr = 0x0050, /* CSR20 - Current host transmit buffer address */ + DmaRxCurrAddr = 0x0054, /* CSR21 - Current host receive buffer address */ +}; + +/********************************************************** + * DMA Engine registers Layout + **********************************************************/ + +/*DmaBusMode = 0x0000, CSR0 - Bus Mode */ +enum DmaBusModeReg +{ /* Bit description Bits R/W Reset value */ + DmaFixedBurstEnable = 0x00010000, /* (FB)Fixed Burst SINGLE, INCR4, INCR8 or INCR16 16 RW */ + DmaFixedBurstDisable = 0x00000000, /* SINGLE, INCR 0 */ + + DmaTxPriorityRatio11 = 0x00000000, /* (PR)TX:RX DMA priority ratio 1:1 15:14 RW 00 */ + DmaTxPriorityRatio21 = 0x00004000, /* (PR)TX:RX DMA priority ratio 2:1 */ + DmaTxPriorityRatio31 = 0x00008000, /* (PR)TX:RX DMA priority ratio 3:1 */ + DmaTxPriorityRatio41 = 0x0000C000, /* (PR)TX:RX DMA priority ratio 4:1 */ + + DmaBurstLengthx8 = 0x01000000, /* When set mutiplies the PBL by 8 24 RW 0 */ + + DmaBurstLength256 = 0x01002000, /*(DmaBurstLengthx8 | DmaBurstLength32) = 256 [24]:13:8 */ + DmaBurstLength128 = 0x01001000, /*(DmaBurstLengthx8 | DmaBurstLength16) = 128 [24]:13:8 */ + DmaBurstLength64 = 0x01000800, /*(DmaBurstLengthx8 | DmaBurstLength8) = 64 [24]:13:8 */ + DmaBurstLength32 = 0x00002000, /* (PBL) programmable Dma burst length = 32 13:8 RW */ + DmaBurstLength16 = 0x00001000, /* Dma burst length = 16 */ + DmaBurstLength8 = 0x00000800, /* Dma burst length = 8 */ + DmaBurstLength4 = 0x00000400, /* Dma burst length = 4 */ + DmaBurstLength2 = 0x00000200, /* Dma burst length = 2 */ + DmaBurstLength1 = 0x00000100, /* Dma burst length = 1 */ + DmaBurstLength0 = 0x00000000, /* Dma burst length = 0 0x00 */ + + DmaDescriptor8Words = 0x00000080, /* Enh Descriptor works 1=> 8 word descriptor 7 0 */ + DmaDescriptor4Words = 0x00000000, /* Enh Descriptor works 0=> 4 word descriptor 7 0 */ + + DmaDescriptorSkip16 = 0x00000040, /* (DSL)Descriptor skip length (no.of dwords) 6:2 RW */ + DmaDescriptorSkip8 = 0x00000020, /* between two unchained descriptors */ + DmaDescriptorSkip4 = 0x00000010, /* */ + DmaDescriptorSkip2 = 0x00000008, /* */ + DmaDescriptorSkip1 = 0x00000004, /* */ + DmaDescriptorSkip0 = 0x00000000, /* 0x00 */ + + DmaArbitRr = 0x00000000, /* (DA) DMA RR arbitration 1 RW 0 */ + DmaArbitPr = 0x00000002, /* Rx has priority over Tx */ + + DmaResetOn = 0x00000001, /* (SWR)Software Reset DMA engine 0 RW */ + DmaResetOff = 0x00000000, /* 0 */ +}; + + +/*DmaStatus = 0x0014, CSR5 - Dma status Register */ +enum DmaStatusReg +{ + /*Bit 28 27 and 26 indicate whether the interrupt due to PMT GMACMMC or GMAC LINE Remaining bits are DMA interrupts*/ + GmacPmtIntr = 0x10000000, /* (GPI)Gmac subsystem interrupt 28 RO 0 */ + GmacMmcIntr = 0x08000000, /* (GMI)Gmac MMC subsystem interrupt 27 RO 0 */ + GmacLineIntfIntr = 0x04000000, /* Line interface interrupt 26 RO 0 */ + + DmaErrorBit2 = 0x02000000, /* (EB)Error bits 0-data buffer, 1-desc. access 25 RO 0 */ + DmaErrorBit1 = 0x01000000, /* (EB)Error bits 0-write trnsf, 1-read transfr 24 RO 0 */ + DmaErrorBit0 = 0x00800000, /* (EB)Error bits 0-Rx DMA, 1-Tx DMA 23 RO 0 */ + + DmaTxState = 0x00700000, /* (TS)Transmit process state 22:20 RO */ + DmaTxStopped = 0x00000000, /* Stopped - Reset or Stop Tx Command issued 000 */ + DmaTxFetching = 0x00100000, /* Running - fetching the Tx descriptor */ + DmaTxWaiting = 0x00200000, /* Running - waiting for status */ + DmaTxReading = 0x00300000, /* Running - reading the data from host memory */ + DmaTxSuspended = 0x00600000, /* Suspended - Tx Descriptor unavailabe */ + DmaTxClosing = 0x00700000, /* Running - closing Rx descriptor */ + + DmaRxState = 0x000E0000, /* (RS)Receive process state 19:17 RO */ + DmaRxStopped = 0x00000000, /* Stopped - Reset or Stop Rx Command issued 000 */ + DmaRxFetching = 0x00020000, /* Running - fetching the Rx descriptor */ + DmaRxWaiting = 0x00060000, /* Running - waiting for packet */ + DmaRxSuspended = 0x00080000, /* Suspended - Rx Descriptor unavailable */ + DmaRxClosing = 0x000A0000, /* Running - closing descriptor */ + DmaRxQueuing = 0x000E0000, /* Running - queuing the recieve frame into host memory */ + + DmaIntNormal = 0x00010000, /* (NIS)Normal interrupt summary 16 RW 0 */ + DmaIntAbnormal = 0x00008000, /* (AIS)Abnormal interrupt summary 15 RW 0 */ + + DmaIntEarlyRx = 0x00004000, /* Early receive interrupt (Normal) RW 0 */ + DmaIntBusError = 0x00002000, /* Fatal bus error (Abnormal) RW 0 */ + DmaIntEarlyTx = 0x00000400, /* Early transmit interrupt (Abnormal) RW 0 */ + DmaIntRxWdogTO = 0x00000200, /* Receive Watchdog Timeout (Abnormal) RW 0 */ + DmaIntRxStopped = 0x00000100, /* Receive process stopped (Abnormal) RW 0 */ + DmaIntRxNoBuffer = 0x00000080, /* Receive buffer unavailable (Abnormal) RW 0 */ + DmaIntRxCompleted = 0x00000040, /* Completion of frame reception (Normal) RW 0 */ + DmaIntTxUnderflow = 0x00000020, /* Transmit underflow (Abnormal) RW 0 */ + DmaIntRcvOverflow = 0x00000010, /* Receive Buffer overflow interrupt RW 0 */ + DmaIntTxJabberTO = 0x00000008, /* Transmit Jabber Timeout (Abnormal) RW 0 */ + DmaIntTxNoBuffer = 0x00000004, /* Transmit buffer unavailable (Normal) RW 0 */ + DmaIntTxStopped = 0x00000002, /* Transmit process stopped (Abnormal) RW 0 */ + DmaIntTxCompleted = 0x00000001, /* Transmit completed (Normal) RW 0 */ +}; + +/*DmaControl = 0x0018, CSR6 - Dma Operation Mode Register */ +enum DmaControlReg +{ + DmaDisableDropTcpCs = 0x04000000, /* (DT) Dis. drop. of tcp/ip CS error frames 26 RW 0 */ + + DmaStoreAndForward = 0x02200000, /* (SF)Store and forward 21 RW 0 */ + DmaFlushTxFifo = 0x00100000, /* (FTF)Tx FIFO controller is reset to default 20 RW 0 */ + + DmaTxThreshCtrl = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16:14 RW */ + DmaTxThreshCtrl16 = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16 16:14 RW */ + DmaTxThreshCtrl24 = 0x00018000, /* (TTC)Controls thre Threh of MTL tx Fifo 24 16:14 RW */ + DmaTxThreshCtrl32 = 0x00014000, /* (TTC)Controls thre Threh of MTL tx Fifo 32 16:14 RW */ + DmaTxThreshCtrl40 = 0x00010000, /* (TTC)Controls thre Threh of MTL tx Fifo 40 16:14 RW */ + DmaTxThreshCtrl256 = 0x0000c000, /* (TTC)Controls thre Threh of MTL tx Fifo 256 16:14 RW */ + DmaTxThreshCtrl192 = 0x00008000, /* (TTC)Controls thre Threh of MTL tx Fifo 192 16:14 RW */ + DmaTxThreshCtrl128 = 0x00004000, /* (TTC)Controls thre Threh of MTL tx Fifo 128 16:14 RW */ + DmaTxThreshCtrl64 = 0x00000000, /* (TTC)Controls thre Threh of MTL tx Fifo 64 16:14 RW 000 */ + + DmaTxStart = 0x00002000, /* (ST)Start/Stop transmission 13 RW 0 */ + + DmaRxFlowCtrlDeact = 0x00401800, /* (RFD)Rx flow control deact. threhold [22]:12:11 RW */ + DmaRxFlowCtrlDeact1K = 0x00000000, /* (RFD)Rx flow control deact. threhold (1kbytes) [22]:12:11 RW 00 */ + DmaRxFlowCtrlDeact2K = 0x00000800, /* (RFD)Rx flow control deact. threhold (2kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact3K = 0x00001000, /* (RFD)Rx flow control deact. threhold (3kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact4K = 0x00001800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact5K = 0x00400000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact6K = 0x00400800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact7K = 0x00401000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + + DmaRxFlowCtrlAct = 0x00800600, /* (RFA)Rx flow control Act. threhold [23]:10:09 RW */ + DmaRxFlowCtrlAct1K = 0x00000000, /* (RFA)Rx flow control Act. threhold (1kbytes) [23]:10:09 RW 00 */ + DmaRxFlowCtrlAct2K = 0x00000200, /* (RFA)Rx flow control Act. threhold (2kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct3K = 0x00000400, /* (RFA)Rx flow control Act. threhold (3kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct4K = 0x00000300, /* (RFA)Rx flow control Act. threhold (4kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct5K = 0x00800000, /* (RFA)Rx flow control Act. threhold (5kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct6K = 0x00800200, /* (RFA)Rx flow control Act. threhold (6kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct7K = 0x00800400, /* (RFA)Rx flow control Act. threhold (7kbytes) [23]:10:09 RW */ + + DmaRxThreshCtrl = 0x00000018, /* (RTC)Controls thre Threh of MTL rx Fifo 4:3 RW */ + DmaRxThreshCtrl64 = 0x00000000, /* (RTC)Controls thre Threh of MTL tx Fifo 64 4:3 RW */ + DmaRxThreshCtrl32 = 0x00000008, /* (RTC)Controls thre Threh of MTL tx Fifo 32 4:3 RW */ + DmaRxThreshCtrl96 = 0x00000010, /* (RTC)Controls thre Threh of MTL tx Fifo 96 4:3 RW */ + DmaRxThreshCtrl128 = 0x00000018, /* (RTC)Controls thre Threh of MTL tx Fifo 128 4:3 RW */ + + DmaEnHwFlowCtrl = 0x00000100, /* (EFC)Enable HW flow control 8 RW */ + DmaDisHwFlowCtrl = 0x00000000, /* Disable HW flow control 0 */ + + DmaFwdErrorFrames = 0x00000080, /* (FEF)Forward error frames 7 RW 0 */ + DmaFwdUnderSzFrames = 0x00000040, /* (FUF)Forward undersize frames 6 RW 0 */ + DmaTxSecondFrame = 0x00000004, /* (OSF)Operate on second frame 4 RW 0 */ + DmaRxStart = 0x00000002, /* (SR)Start/Stop reception 1 RW 0 */ +}; + + +/*DmaInterrupt = 0x001C, CSR7 - Interrupt enable Register Layout */ +enum DmaInterruptReg +{ + DmaIeNormal = DmaIntNormal , /* Normal interrupt enable RW 0 */ + DmaIeAbnormal = DmaIntAbnormal , /* Abnormal interrupt enable RW 0 */ + + DmaIeEarlyRx = DmaIntEarlyRx , /* Early receive interrupt enable RW 0 */ + DmaIeBusError = DmaIntBusError , /* Fatal bus error enable RW 0 */ + DmaIeEarlyTx = DmaIntEarlyTx , /* Early transmit interrupt enable RW 0 */ + DmaIeRxWdogTO = DmaIntRxWdogTO , /* Receive Watchdog Timeout enable RW 0 */ + DmaIeRxStopped = DmaIntRxStopped , /* Receive process stopped enable RW 0 */ + DmaIeRxNoBuffer = DmaIntRxNoBuffer , /* Receive buffer unavailable enable RW 0 */ + DmaIeRxCompleted = DmaIntRxCompleted, /* Completion of frame reception enable RW 0 */ + DmaIeTxUnderflow = DmaIntTxUnderflow, /* Transmit underflow enable RW 0 */ + + DmaIeRxOverflow = DmaIntRcvOverflow, /* Receive Buffer overflow interrupt RW 0 */ + DmaIeTxJabberTO = DmaIntTxJabberTO , /* Transmit Jabber Timeout enable RW 0 */ + DmaIeTxNoBuffer = DmaIntTxNoBuffer , /* Transmit buffer unavailable enable RW 0 */ + DmaIeTxStopped = DmaIntTxStopped , /* Transmit process stopped enable RW 0 */ + DmaIeTxCompleted = DmaIntTxCompleted, /* Transmit completed enable RW 0 */ +}; + + + +/********************************************************** + * DMA Engine descriptors + **********************************************************/ +#ifdef ENH_DESC +/* +**********Enhanced Descritpor structure to support 8K buffer per buffer **************************** + +DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address +DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + +Similarly +DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address +DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + -------------------------------------------------------------------------- + RDES0 |OWN (31)| Status | + -------------------------------------------------------------------------- + RDES1 | Ctrl | Res | Byte Count Buffer 2 | Ctrl | Res | Byte Count Buffer 1 | + -------------------------------------------------------------------------- + RDES2 | Buffer 1 Address | + -------------------------------------------------------------------------- + RDES3 | Buffer 2 Address / Next Descriptor Address | + -------------------------------------------------------------------------- + + -------------------------------------------------------------------------- + TDES0 |OWN (31)| Ctrl | Res | Ctrl | Res | Status | + -------------------------------------------------------------------------- + TDES1 | Res | Byte Count Buffer 2 | Res | Byte Count Buffer 1 | + -------------------------------------------------------------------------- + TDES2 | Buffer 1 Address | + -------------------------------------------------------------------------- + TDES3 | Buffer 2 Address / Next Descriptor Address | + -------------------------------------------------------------------------- + +*/ + +enum DmaDescriptorStatus /* status word of DMA descriptor */ +{ + DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ + + DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ + + DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ + DescFrameLengthShift = 16, + + DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ + /* DE || OE || IPC || LC || RWT || RE || CE */ + DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ + DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ + DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ + DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ + DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ + DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ + DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ + DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ + DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ + DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ + DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ + DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ + DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ +// DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ + + DescRxEXTsts = 0x00000001, /* Extended Status Available (RDES4) 0 */ + + DescTxIntEnable = 0x40000000, /* (IC)Tx - interrupt on completion 30 */ + DescTxLast = 0x20000000, /* (LS)Tx - Last segment of the frame 29 */ + DescTxFirst = 0x10000000, /* (FS)Tx - First segment of the frame 28 */ + DescTxDisableCrc = 0x08000000, /* (DC)Tx - Add CRC disabled (first segment only) 27 */ + DescTxDisablePadd = 0x04000000, /* (DP)disable padding, added by - reyaz 26 */ + + DescTxCisMask = 0x00c00000, /* Tx checksum offloading control mask 23:22 */ + DescTxCisBypass = 0x00000000, /* Checksum bypass */ + DescTxCisIpv4HdrCs = 0x00400000, /* IPv4 header checksum */ + DescTxCisTcpOnlyCs = 0x00800000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ + DescTxCisTcpPseudoCs = 0x00c00000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ + + TxDescEndOfRing = 0x00200000, /* (TER)End of descriptors ring 21 */ + TxDescChain = 0x00100000, /* (TCH)Second buffer address is chain address 20 */ + + DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ + DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ + DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + + DescRxTSavail = 0x00000080, /* Time stamp available 7 */ + DescRxFrameType = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + + DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ + DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ + DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ + DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ + DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ + DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ + DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ + DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ + DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ + + DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ + DescTxCollShift = 3, + + DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ + DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ + DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ + + /* + This explains the RDES1/TDES1 bits layout + -------------------------------------------------------------------- + RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | + -------------------------------------------------------------------- + + */ +// DmaDescriptorLength length word of DMA descriptor + + + RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ + RxDescEndOfRing = 0x00008000, /* (TER)End of descriptors ring 15 */ + RxDescChain = 0x00004000, /* (TCH)Second buffer address is chain address 14 */ + + + DescSize2Mask = 0x1FFF0000, /* (TBS2) Buffer 2 size 28:16 */ + DescSize2Shift = 16, + DescSize1Mask = 0x00001FFF, /* (TBS1) Buffer 1 size 12:0 */ + DescSize1Shift = 0, + + + /* + This explains the RDES4 Extended Status bits layout + -------------------------------------------------------------------- + RDES4 | Extended Status | + -------------------------------------------------------------------- + */ + DescRxPtpAvail = 0x00004000, /* PTP snapshot available 14 */ + DescRxPtpVer = 0x00002000, /* When set indicates IEEE1584 Version 2 (else Ver1) 13 */ + DescRxPtpFrameType = 0x00001000, /* PTP frame type Indicates PTP sent over ethernet 12 */ + DescRxPtpMessageType = 0x00000F00, /* Message Type 11:8 */ + DescRxPtpNo = 0x00000000, /* 0000 => No PTP message received */ + DescRxPtpSync = 0x00000100, /* 0001 => Sync (all clock types) received */ + DescRxPtpFollowUp = 0x00000200, /* 0010 => Follow_Up (all clock types) received */ + DescRxPtpDelayReq = 0x00000300, /* 0011 => Delay_Req (all clock types) received */ + DescRxPtpDelayResp = 0x00000400, /* 0100 => Delay_Resp (all clock types) received */ + DescRxPtpPdelayReq = 0x00000500, /* 0101 => Pdelay_Req (in P to P tras clk) or Announce in Ord and Bound clk */ + DescRxPtpPdelayResp = 0x00000600, /* 0110 => Pdealy_Resp(in P to P trans clk) or Management in Ord and Bound clk */ + DescRxPtpPdelayRespFP = 0x00000700, /* 0111 => Pdealy_Resp_Follow_Up (in P to P trans clk) or Signaling in Ord and Bound clk */ + DescRxPtpIPV6 = 0x00000080, /* Received Packet is in IPV6 Packet 7 */ + DescRxPtpIPV4 = 0x00000040, /* Received Packet is in IPV4 Packet 6 */ + + DescRxChkSumBypass = 0x00000020, /* When set indicates checksum offload engine 5 + is bypassed */ + DescRxIpPayloadError = 0x00000010, /* When set indicates 16bit IP payload CS is in error 4 */ + DescRxIpHeaderError = 0x00000008, /* When set indicates 16bit IPV4 header CS is in 3 + error or IP datagram version is not consistent + with Ethernet type value */ + DescRxIpPayloadType = 0x00000007, /* Indicate the type of payload encapsulated 2:0 + in IPdatagram processed by COE (Rx) */ + DescRxIpPayloadUnknown= 0x00000000, /* Unknown or didnot process IP payload */ + DescRxIpPayloadUDP = 0x00000001, /* UDP */ + DescRxIpPayloadTCP = 0x00000002, /* TCP */ + DescRxIpPayloadICMP = 0x00000003, /* ICMP */ + +}; + +#else +/* + +********** Default Descritpor structure **************************** +DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address +DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + +Similarly +DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address +DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + -------------------------------------------------------------------- + RDES0/TDES0 |OWN (31)| Status | + -------------------------------------------------------------------- + RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | + -------------------------------------------------------------------- + RDES2/TDES2 | Buffer 1 Address | + -------------------------------------------------------------------- + RDES3/TDES3 | Buffer 2 Address / Next Descriptor Address | + -------------------------------------------------------------------- +*/ +enum DmaDescriptorStatus /* status word of DMA descriptor */ +{ + DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ + + DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ + + DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ + DescFrameLengthShift = 16, + + DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ + /* DE || OE || IPC || LC || RWT || RE || CE */ + DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ + DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ + DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ + DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ + DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ + DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ + DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ + DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ + DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ + DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ + DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ + DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ + DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ + DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ + + //Rx Descriptor Checksum Offload engine (type 2) encoding + //DescRxPayChkError = 0x00000001, /* () Rx - Rx Payload Checksum Error 0 */ + //DescRxIpv4ChkError = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ + + DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ + DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ + DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + + DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ + DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ + DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ + DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ + DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ + DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ + DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ + DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ + DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ + + DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ + DescTxCollShift = 3, + + DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ + DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ + DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ + + /* + This explains the RDES1/TDES1 bits layout + -------------------------------------------------------------------- + RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | + -------------------------------------------------------------------- + + */ +//DmaDescriptorLength length word of DMA descriptor + + DescTxIntEnable = 0x80000000, /* (IC)Tx - interrupt on completion 31 */ + DescTxLast = 0x40000000, /* (LS)Tx - Last segment of the frame 30 */ + DescTxFirst = 0x20000000, /* (FS)Tx - First segment of the frame 29 */ + DescTxDisableCrc = 0x04000000, /* (DC)Tx - Add CRC disabled (first segment only) 26 */ + + RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ + RxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ + RxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ + + DescTxDisablePadd = 0x00800000, /* (DP)disable padding, added by - reyaz 23 */ + + TxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ + TxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ + + DescSize2Mask = 0x003FF800, /* (TBS2) Buffer 2 size 21:11 */ + DescSize2Shift = 11, + DescSize1Mask = 0x000007FF, /* (TBS1) Buffer 1 size 10:0 */ + DescSize1Shift = 0, + + + DescTxCisMask = 0x18000000, /* Tx checksum offloading control mask 28:27 */ + DescTxCisBypass = 0x00000000, /* Checksum bypass */ + DescTxCisIpv4HdrCs = 0x08000000, /* IPv4 header checksum */ + DescTxCisTcpOnlyCs = 0x10000000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ + DescTxCisTcpPseudoCs = 0x18000000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ +}; +#endif + +// Rx Descriptor COE type2 encoding +enum RxDescCOEEncode +{ + RxLenLT600 = 0, /* Bit(5:7:0)=>0 IEEE 802.3 type frame Length field is Lessthan 0x0600 */ + RxIpHdrPayLoadChkBypass = 1, /* Bit(5:7:0)=>1 Payload & Ip header checksum bypassed (unsuppported payload) */ + RxIpHdrPayLoadRes = 2, /* Bit(5:7:0)=>2 Reserved */ + RxChkBypass = 3, /* Bit(5:7:0)=>3 Neither IPv4 nor IPV6. So checksum bypassed */ + RxNoChkError = 4, /* Bit(5:7:0)=>4 No IPv4/IPv6 Checksum error detected */ + RxPayLoadChkError = 5, /* Bit(5:7:0)=>5 Payload checksum error detected for Ipv4/Ipv6 frames */ + RxIpHdrChkError = 6, /* Bit(5:7:0)=>6 Ip header checksum error detected for Ipv4 frames */ + RxIpHdrPayLoadChkError = 7, /* Bit(5:7:0)=>7 Payload & Ip header checksum error detected for Ipv4/Ipv6 frames */ +}; + +/********************************************************** + * DMA engine interrupt handling functions + **********************************************************/ + + enum synopGMACDmaIntEnum /* Intrerrupt types */ +{ + synopGMACDmaRxNormal = 0x01, /* normal receiver interrupt */ + synopGMACDmaRxAbnormal = 0x02, /* abnormal receiver interrupt */ + synopGMACDmaRxStopped = 0x04, /* receiver stopped */ + synopGMACDmaTxNormal = 0x08, /* normal transmitter interrupt */ + synopGMACDmaTxAbnormal = 0x10, /* abnormal transmitter interrupt */ + synopGMACDmaTxStopped = 0x20, /* transmitter stopped */ + synopGMACDmaError = 0x80, /* Dma engine error */ +}; + + +/********************************************************** + * Initial register values + **********************************************************/ +enum InitialRegisters +{ + /* Full-duplex mode with perfect filter on */ + GmacConfigInitFdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectGmii | GmacEnableRxOwn | GmacLoopbackOff + | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Full-duplex mode with perfect filter on */ + GmacConfigInitFdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectMii | GmacEnableRxOwn | GmacLoopbackOff + | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Full-duplex mode */ + // CHANGED: Pass control config, dest addr filter normal, added source address filter, multicast & unicast + // Hash filter. + /* = GmacFilterOff | GmacPassControlOff | GmacBroadcastEnable */ + GmacFrameFilterInitFdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable + | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff + | GmacPromiscuousModeOff | GmacUcastHashFilterOff, + + /* Full-duplex mode */ + GmacFlowControlInitFdx = GmacUnicastPauseFrameOff | GmacRxFlowControlEnable | GmacTxFlowControlEnable, + + /* Full-duplex mode */ + GmacGmiiAddrInitFdx = GmiiCsrClk2, + + + /* Half-duplex mode with perfect filter on */ + // CHANGED: Removed Endian configuration, added single bit config for PAD/CRC strip, + /*| GmacSelectMii | GmacLittleEndian | GmacDisableRxOwn | GmacLoopbackOff*/ + GmacConfigInitHdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectGmii | GmacDisableRxOwn | GmacLoopbackOff + | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Half-duplex mode with perfect filter on */ + GmacConfigInitHdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectMii | GmacDisableRxOwn | GmacLoopbackOff + | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Half-duplex mode */ + GmacFrameFilterInitHdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable + | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff + | GmacUcastHashFilterOff| GmacPromiscuousModeOff, + + /* Half-duplex mode */ + GmacFlowControlInitHdx = GmacUnicastPauseFrameOff | GmacRxFlowControlDisable | GmacTxFlowControlDisable, + + /* Half-duplex mode */ + GmacGmiiAddrInitHdx = GmiiCsrClk2, + + + + /********************************************** + *DMA configurations + **********************************************/ + + DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip2 | DmaResetOff, +// DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip4 | DmaResetOff, + + /* 1000 Mb/s mode */ + DmaControlInit1000 = DmaStoreAndForward,// | DmaTxSecondFrame , + + /* 100 Mb/s mode */ + DmaControlInit100 = DmaStoreAndForward, + + /* 10 Mb/s mode */ + DmaControlInit10 = DmaStoreAndForward, + + /* Interrupt groups */ + DmaIntErrorMask = DmaIntBusError, /* Error */ + DmaIntRxAbnMask = DmaIntRxNoBuffer, /* receiver abnormal interrupt */ + DmaIntRxNormMask = DmaIntRxCompleted, /* receiver normal interrupt */ + DmaIntRxStoppedMask = DmaIntRxStopped, /* receiver stopped */ + DmaIntTxAbnMask = DmaIntTxUnderflow, /* transmitter abnormal interrupt */ + DmaIntTxNormMask = DmaIntTxCompleted, /* transmitter normal interrupt */ + DmaIntTxStoppedMask = DmaIntTxStopped, /* transmitter stopped */ + + DmaIntEnable = DmaIeNormal | DmaIeAbnormal | DmaIntErrorMask +//DmaIntEnable = DmaIeNormal | DmaIntErrorMask + | DmaIntRxAbnMask | DmaIntRxNormMask | DmaIntRxStoppedMask +// | DmaIntRxNormMask | DmaIntRxStoppedMask + | DmaIntTxAbnMask | DmaIntTxNormMask | DmaIntTxStoppedMask, + DmaIntDisable = 0, +}; + + +/********************************************************** + * Mac Management Counters (MMC) + **********************************************************/ + +enum MMC_ENABLE +{ + GmacMmcCntrl = 0x0100, /* mmc control for operating mode of MMC */ + GmacMmcIntrRx = 0x0104, /* maintains interrupts generated by rx counters */ + GmacMmcIntrTx = 0x0108, /* maintains interrupts generated by tx counters */ + GmacMmcIntrMaskRx = 0x010C, /* mask for interrupts generated from rx counters */ + GmacMmcIntrMaskTx = 0x0110, /* mask for interrupts generated from tx counters */ +}; +enum MMC_TX +{ + GmacMmcTxOctetCountGb = 0x0114, /*Bytes Tx excl. of preamble and retried bytes (Good or Bad) */ + GmacMmcTxFrameCountGb = 0x0118, /*Frames Tx excl. of retried frames (Good or Bad) */ + GmacMmcTxBcFramesG = 0x011C, /*Broadcast Frames Tx (Good) */ + GmacMmcTxMcFramesG = 0x0120, /*Multicast Frames Tx (Good) */ + + GmacMmcTx64OctetsGb = 0x0124, /*Tx with len 64 bytes excl. of pre and retried (Good or Bad) */ + GmacMmcTx65To127OctetsGb = 0x0128, /*Tx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ + GmacMmcTx128To255OctetsGb = 0x012C, /*Tx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ + GmacMmcTx256To511OctetsGb = 0x0130, /*Tx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ + GmacMmcTx512To1023OctetsGb = 0x0134, /*Tx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ + GmacMmcTx1024ToMaxOctetsGb = 0x0138, /*Tx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ + + GmacMmcTxUcFramesGb = 0x013C, /*Unicast Frames Tx (Good or Bad) */ + GmacMmcTxMcFramesGb = 0x0140, /*Multicast Frames Tx (Good and Bad) */ + GmacMmcTxBcFramesGb = 0x0144, /*Broadcast Frames Tx (Good and Bad) */ + GmacMmcTxUnderFlowError = 0x0148, /*Frames aborted due to Underflow error */ + GmacMmcTxSingleColG = 0x014C, /*Successfully Tx Frames after singel collision in Half duplex mode */ + GmacMmcTxMultiColG = 0x0150, /*Successfully Tx Frames after more than singel collision in Half duplex mode */ + GmacMmcTxDeferred = 0x0154, /*Successfully Tx Frames after a deferral in Half duplex mode */ + GmacMmcTxLateCol = 0x0158, /*Frames aborted due to late collision error */ + GmacMmcTxExessCol = 0x015C, /*Frames aborted due to excessive (16) collision errors */ + GmacMmcTxCarrierError = 0x0160, /*Frames aborted due to carrier sense error (No carrier or Loss of carrier) */ + GmacMmcTxOctetCountG = 0x0164, /*Bytes Tx excl. of preamble and retried bytes (Good) */ + GmacMmcTxFrameCountG = 0x0168, /*Frames Tx (Good) */ + GmacMmcTxExessDef = 0x016C, /*Frames aborted due to excessive deferral errors (deferred for more than 2 max-sized frame times)*/ + + GmacMmcTxPauseFrames = 0x0170, /*Number of good pause frames Tx. */ + GmacMmcTxVlanFramesG = 0x0174, /*Number of good Vlan frames Tx excl. retried frames */ +}; +enum MMC_RX +{ + GmacMmcRxFrameCountGb = 0x0180, /*Frames Rx (Good or Bad) */ + GmacMmcRxOctetCountGb = 0x0184, /*Bytes Rx excl. of preamble and retried bytes (Good or Bad) */ + GmacMmcRxOctetCountG = 0x0188, /*Bytes Rx excl. of preamble and retried bytes (Good) */ + GmacMmcRxBcFramesG = 0x018C, /*Broadcast Frames Rx (Good) */ + GmacMmcRxMcFramesG = 0x0190, /*Multicast Frames Rx (Good) */ + + GmacMmcRxCrcError = 0x0194, /*Number of frames received with CRC error */ + GmacMmcRxAlignError = 0x0198, /*Number of frames received with alignment (dribble) error. Only in 10/100mode */ + GmacMmcRxRuntError = 0x019C, /*Number of frames received with runt (<64 bytes and CRC error) error */ + GmacMmcRxJabberError = 0x01A0, /*Number of frames rx with jabber (>1518/1522 or >9018/9022 and CRC) */ + GmacMmcRxUnderSizeG = 0x01A4, /*Number of frames received with <64 bytes without any error */ + GmacMmcRxOverSizeG = 0x01A8, /*Number of frames received with >1518/1522 bytes without any error */ + + GmacMmcRx64OctetsGb = 0x01AC, /*Rx with len 64 bytes excl. of pre and retried (Good or Bad) */ + GmacMmcRx65To127OctetsGb = 0x01B0, /*Rx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ + GmacMmcRx128To255OctetsGb = 0x01B4, /*Rx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ + GmacMmcRx256To511OctetsGb = 0x01B8, /*Rx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ + GmacMmcRx512To1023OctetsGb = 0x01BC, /*Rx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ + GmacMmcRx1024ToMaxOctetsGb = 0x01C0, /*Rx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ + + GmacMmcRxUcFramesG = 0x01C4, /*Unicast Frames Rx (Good) */ + GmacMmcRxLengthError = 0x01C8, /*Number of frames received with Length type field != frame size */ + GmacMmcRxOutOfRangeType = 0x01CC, /*Number of frames received with length field != valid frame size */ + + GmacMmcRxPauseFrames = 0x01D0, /*Number of good pause frames Rx. */ + GmacMmcRxFifoOverFlow = 0x01D4, /*Number of missed rx frames due to FIFO overflow */ + GmacMmcRxVlanFramesGb = 0x01D8, /*Number of good Vlan frames Rx */ + + GmacMmcRxWatchdobError = 0x01DC, /*Number of frames rx with error due to watchdog timeout error */ +}; +enum MMC_IP_RELATED +{ + GmacMmcRxIpcIntrMask = 0x0200, /*Maintains the mask for interrupt generated from rx IPC statistic counters */ + GmacMmcRxIpcIntr = 0x0208, /*Maintains the interrupt that rx IPC statistic counters generate */ + + GmacMmcRxIpV4FramesG = 0x0210, /*Good IPV4 datagrams received */ + GmacMmcRxIpV4HdrErrFrames = 0x0214, /*Number of IPV4 datagrams received with header errors */ + GmacMmcRxIpV4NoPayFrames = 0x0218, /*Number of IPV4 datagrams received which didnot have TCP/UDP/ICMP payload */ + GmacMmcRxIpV4FragFrames = 0x021C, /*Number of IPV4 datagrams received with fragmentation */ + GmacMmcRxIpV4UdpChkDsblFrames = 0x0220, /*Number of IPV4 datagrams received that had a UDP payload checksum disabled */ + + GmacMmcRxIpV6FramesG = 0x0224, /*Good IPV6 datagrams received */ + GmacMmcRxIpV6HdrErrFrames = 0x0228, /*Number of IPV6 datagrams received with header errors */ + GmacMmcRxIpV6NoPayFrames = 0x022C, /*Number of IPV6 datagrams received which didnot have TCP/UDP/ICMP payload */ + + GmacMmcRxUdpFramesG = 0x0230, /*Number of good IP datagrams with good UDP payload */ + GmacMmcRxUdpErrorFrames = 0x0234, /*Number of good IP datagrams with UDP payload having checksum error */ + + GmacMmcRxTcpFramesG = 0x0238, /*Number of good IP datagrams with good TDP payload */ + GmacMmcRxTcpErrorFrames = 0x023C, /*Number of good IP datagrams with TCP payload having checksum error */ + + GmacMmcRxIcmpFramesG = 0x0240, /*Number of good IP datagrams with good Icmp payload */ + GmacMmcRxIcmpErrorFrames = 0x0244, /*Number of good IP datagrams with Icmp payload having checksum error */ + + GmacMmcRxIpV4OctetsG = 0x0250, /*Good IPV4 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ + GmacMmcRxIpV4HdrErrorOctets = 0x0254, /*Number of bytes in IPV4 datagram with header errors */ + GmacMmcRxIpV4NoPayOctets = 0x0258, /*Number of bytes in IPV4 datagram with no TCP/UDP/ICMP payload */ + GmacMmcRxIpV4FragOctets = 0x025C, /*Number of bytes received in fragmented IPV4 datagrams */ + GmacMmcRxIpV4UdpChkDsblOctets = 0x0260, /*Number of bytes received in UDP segment that had UDP checksum disabled */ + + GmacMmcRxIpV6OctetsG = 0x0264, /*Good IPV6 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ + GmacMmcRxIpV6HdrErrorOctets = 0x0268, /*Number of bytes in IPV6 datagram with header errors */ + GmacMmcRxIpV6NoPayOctets = 0x026C, /*Number of bytes in IPV6 datagram with no TCP/UDP/ICMP payload */ + + GmacMmcRxUdpOctetsG = 0x0270, /*Number of bytes in IP datagrams with good UDP payload */ + GmacMmcRxUdpErrorOctets = 0x0274, /*Number of bytes in IP datagrams with UDP payload having checksum error */ + + GmacMmcRxTcpOctetsG = 0x0278, /*Number of bytes in IP datagrams with good TDP payload */ + GmacMmcRxTcpErrorOctets = 0x027C, /*Number of bytes in IP datagrams with TCP payload having checksum error */ + + GmacMmcRxIcmpOctetsG = 0x0280, /*Number of bytes in IP datagrams with good Icmp payload */ + GmacMmcRxIcmpErrorOctets = 0x0284, /*Number of bytes in IP datagrams with Icmp payload having checksum error */ +}; + + +enum MMC_CNTRL_REG_BIT_DESCRIPTIONS +{ + GmacMmcCounterFreeze = 0x00000008, /* when set MMC counters freeze to current value */ + GmacMmcCounterResetOnRead = 0x00000004, /* when set MMC counters will be reset to 0 after read */ + GmacMmcCounterStopRollover = 0x00000002, /* when set counters will not rollover after max value */ + GmacMmcCounterReset = 0x00000001, /* when set all counters wil be reset (automatically cleared after 1 clk) */ + +}; + +enum MMC_RX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS +{ + GmacMmcRxWDInt = 0x00800000, /* set when rxwatchdog error reaches half of max value */ + GmacMmcRxVlanInt = 0x00400000, /* set when GmacMmcRxVlanFramesGb counter reaches half of max value */ + GmacMmcRxFifoOverFlowInt = 0x00200000, /* set when GmacMmcRxFifoOverFlow counter reaches half of max value */ + GmacMmcRxPauseFrameInt = 0x00100000, /* set when GmacMmcRxPauseFrames counter reaches half of max value */ + GmacMmcRxOutOfRangeInt = 0x00080000, /* set when GmacMmcRxOutOfRangeType counter reaches half of max value */ + GmacMmcRxLengthErrorInt = 0x00040000, /* set when GmacMmcRxLengthError counter reaches half of max value */ + GmacMmcRxUcFramesInt = 0x00020000, /* set when GmacMmcRxUcFramesG counter reaches half of max value */ + GmacMmcRx1024OctInt = 0x00010000, /* set when GmacMmcRx1024ToMaxOctetsGb counter reaches half of max value */ + GmacMmcRx512OctInt = 0x00008000, /* set when GmacMmcRx512To1023OctetsGb counter reaches half of max value */ + GmacMmcRx256OctInt = 0x00004000, /* set when GmacMmcRx256To511OctetsGb counter reaches half of max value */ + GmacMmcRx128OctInt = 0x00002000, /* set when GmacMmcRx128To255OctetsGb counter reaches half of max value */ + GmacMmcRx65OctInt = 0x00001000, /* set when GmacMmcRx65To127OctetsG counter reaches half of max value */ + GmacMmcRx64OctInt = 0x00000800, /* set when GmacMmcRx64OctetsGb counter reaches half of max value */ + GmacMmcRxOverSizeInt = 0x00000400, /* set when GmacMmcRxOverSizeG counter reaches half of max value */ + GmacMmcRxUnderSizeInt = 0x00000200, /* set when GmacMmcRxUnderSizeG counter reaches half of max value */ + GmacMmcRxJabberErrorInt = 0x00000100, /* set when GmacMmcRxJabberError counter reaches half of max value */ + GmacMmcRxRuntErrorInt = 0x00000080, /* set when GmacMmcRxRuntError counter reaches half of max value */ + GmacMmcRxAlignErrorInt = 0x00000040, /* set when GmacMmcRxAlignError counter reaches half of max value */ + GmacMmcRxCrcErrorInt = 0x00000020, /* set when GmacMmcRxCrcError counter reaches half of max value */ + GmacMmcRxMcFramesInt = 0x00000010, /* set when GmacMmcRxMcFramesG counter reaches half of max value */ + GmacMmcRxBcFramesInt = 0x00000008, /* set when GmacMmcRxBcFramesG counter reaches half of max value */ + GmacMmcRxOctetGInt = 0x00000004, /* set when GmacMmcRxOctetCountG counter reaches half of max value */ + GmacMmcRxOctetGbInt = 0x00000002, /* set when GmacMmcRxOctetCountGb counter reaches half of max value */ + GmacMmcRxFrameInt = 0x00000001, /* set when GmacMmcRxFrameCountGb counter reaches half of max value */ +}; + +enum MMC_TX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS +{ + + GmacMmcTxVlanInt = 0x01000000, /* set when GmacMmcTxVlanFramesG counter reaches half of max value */ + GmacMmcTxPauseFrameInt = 0x00800000, /* set when GmacMmcTxPauseFrames counter reaches half of max value */ + GmacMmcTxExessDefInt = 0x00400000, /* set when GmacMmcTxExessDef counter reaches half of max value */ + GmacMmcTxFrameInt = 0x00200000, /* set when GmacMmcTxFrameCount counter reaches half of max value */ + GmacMmcTxOctetInt = 0x00100000, /* set when GmacMmcTxOctetCountG counter reaches half of max value */ + GmacMmcTxCarrierErrorInt = 0x00080000, /* set when GmacMmcTxCarrierError counter reaches half of max value */ + GmacMmcTxExessColInt = 0x00040000, /* set when GmacMmcTxExessCol counter reaches half of max value */ + GmacMmcTxLateColInt = 0x00020000, /* set when GmacMmcTxLateCol counter reaches half of max value */ + GmacMmcTxDeferredInt = 0x00010000, /* set when GmacMmcTxDeferred counter reaches half of max value */ + GmacMmcTxMultiColInt = 0x00008000, /* set when GmacMmcTxMultiColG counter reaches half of max value */ + GmacMmcTxSingleCol = 0x00004000, /* set when GmacMmcTxSingleColG counter reaches half of max value */ + GmacMmcTxUnderFlowErrorInt = 0x00002000, /* set when GmacMmcTxUnderFlowError counter reaches half of max value */ + GmacMmcTxBcFramesGbInt = 0x00001000, /* set when GmacMmcTxBcFramesGb counter reaches half of max value */ + GmacMmcTxMcFramesGbInt = 0x00000800, /* set when GmacMmcTxMcFramesGb counter reaches half of max value */ + GmacMmcTxUcFramesInt = 0x00000400, /* set when GmacMmcTxUcFramesGb counter reaches half of max value */ + GmacMmcTx1024OctInt = 0x00000200, /* set when GmacMmcTx1024ToMaxOctetsGb counter reaches half of max value */ + GmacMmcTx512OctInt = 0x00000100, /* set when GmacMmcTx512To1023OctetsGb counter reaches half of max value */ + GmacMmcTx256OctInt = 0x00000080, /* set when GmacMmcTx256To511OctetsGb counter reaches half of max value */ + GmacMmcTx128OctInt = 0x00000040, /* set when GmacMmcTx128To255OctetsGb counter reaches half of max value */ + GmacMmcTx65OctInt = 0x00000020, /* set when GmacMmcTx65To127OctetsGb counter reaches half of max value */ + GmacMmcTx64OctInt = 0x00000010, /* set when GmacMmcTx64OctetsGb counter reaches half of max value */ + GmacMmcTxMcFramesInt = 0x00000008, /* set when GmacMmcTxMcFramesG counter reaches half of max value */ + GmacMmcTxBcFramesInt = 0x00000004, /* set when GmacMmcTxBcFramesG counter reaches half of max value */ + GmacMmcTxFrameGbInt = 0x00000002, /* set when GmacMmcTxFrameCountGb counter reaches half of max value */ + GmacMmcTxOctetGbInt = 0x00000001, /* set when GmacMmcTxOctetCountGb counter reaches half of max value */ + +}; + + +/********************************************************** + * Power Management (PMT) Block + **********************************************************/ + +/** + * PMT supports the reception of network (remote) wake-up frames and Magic packet frames. + * It generates interrupts for wake-up frames and Magic packets received by GMAC. + * PMT sits in Rx path and is enabled with remote wake-up frame enable and Magic packet enable. + * These enable are in PMT control and Status register and are programmed by apllication. + * + * When power down mode is enabled in PMT, all rx frames are dropped by the core. Core comes + * out of power down mode only when either Magic packe tor a Remote wake-up frame is received + * and the corresponding detection is enabled. + * + * Driver need not be modified to support this feature. Only Api to put the device in to power + * down mode is sufficient + */ + +#define WAKEUP_REG_LENGTH 8 /*This is the reg length for wake up register configuration*/ + +enum GmacPmtCtrlStatusBitDefinition +{ + GmacPmtFrmFilterPtrReset = 0x80000000, /* when set remote wake-up frame filter register pointer to 3'b000 */ + GmacPmtGlobalUnicast = 0x00000200, /* When set enables any unicast packet to be a wake-up frame */ + GmacPmtWakeupFrameReceived = 0x00000040, /* Wake up frame received */ + GmacPmtMagicPktReceived = 0x00000020, /* Magic Packet received */ + GmacPmtWakeupFrameEnable = 0x00000004, /* Wake-up frame enable */ + GmacPmtMagicPktEnable = 0x00000002, /* Magic packet enable */ + GmacPmtPowerDown = 0x00000001, /* Power Down */ +}; + + + + +/********************************************************** + * IEEE 1588-2008 Precision Time Protocol (PTP) Support + **********************************************************/ +enum PTPMessageType +{ + SYNC = 0x0, + Delay_Req = 0x1, + Pdelay_Req = 0x2, + Pdelay_Resp = 0x3, + Follow_up = 0x8, + Delay_Resp = 0x9, + Pdelay_Resp_Follow_Up = 0xA, + Announce = 0xB, + Signaling = 0xC, + Management = 0xD, +}; + + + +typedef struct TimeStampStruct +{ + u32 TSversion; /* PTP Version 1 or PTP version2 */ + u32 TSmessagetype; /* Message type associated with this time stamp */ + + u16 TShighest16; /* Highest 16 bit time stamp value, Valid onley when ADV_TIME_HIGH_WORD configured in corekit */ + u32 TSupper32; /* Most significant 32 bit time stamp value */ + u32 TSlower32; /* Least Significat 32 bit time stamp value */ + +} TimeStamp; + + +/** + * IEEE 1588-2008 is the optional module to support Ethernet frame time stamping. + * Sixty four (+16) bit time stamps are given in each frames transmit and receive status. + * The driver assumes the following + * 1. "IEEE 1588 Time Stamping" "TIME_STAMPING"is ENABLED in corekit + * 2. "IEEE 1588 External Time Stamp Input Enable" "EXT_TIME_STAMPING" is DISABLED in corekit + * 3. "IEEE 1588 Advanced Time Stamp support" "ADV_TIME_STAMPING" is ENABLED in corekit + * 4. "IEEE 1588 Higher Word Register Enable" "ADV_TIME_HIGH_WORD" is ENABLED in corekit + */ + +/* GmacTSControl = 0x0700, Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ +enum GmacTSControlReg +{ + GmacTSENMACADDR = 0x00040000, /* Enable Mac Addr for PTP filtering 18 RW 0 */ + + GmacTSCLKTYPE = 0x00030000, /* Select the type of clock node 17:16 RW 00 */ + /* + TSCLKTYPE TSMSTRENA TSEVNTENA Messages for wihich TS snapshot is taken + 00/01 X 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP + 00/01 1 0 DELAY_REQ + 00/01 0 1 SYNC + 10 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP + 10 NA 1 SYNC, FOLLOW_UP + 11 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP, PDELAY_REQ, PDELAY_RESP + 11 NA 1 SYNC, PDELAY_REQ, PDELAY_RESP + */ + GmacTSOrdClk = 0x00000000, /* 00=> Ordinary clock*/ + GmacTSBouClk = 0x00010000, /* 01=> Boundary clock*/ + GmacTSEtoEClk = 0x00020000, /* 10=> End-to-End transparent clock*/ + GmacTSPtoPClk = 0x00030000, /* 11=> P-to-P transparent clock*/ + + GmacTSMSTRENA = 0x00008000, /* Ena TS Snapshot for Master Messages 15 RW 0 */ + GmacTSEVNTENA = 0x00004000, /* Ena TS Snapshot for Event Messages 14 RW 0 */ + GmacTSIPV4ENA = 0x00002000, /* Ena TS snapshot for IPv4 13 RW 1 */ + GmacTSIPV6ENA = 0x00001000, /* Ena TS snapshot for IPv6 12 RW 0 */ + GmacTSIPENA = 0x00000800, /* Ena TS snapshot for PTP over E'net 11 RW 0 */ + GmacTSVER2ENA = 0x00000400, /* Ena PTP snooping for version 2 10 RW 0 */ + + GmacTSCTRLSSR = 0x00000200, /* Digital or Binary Rollover 9 RW 0 */ + + GmacTSENALL = 0x00000100, /* Enable TS fro all frames (Ver2 only) 8 RW 0 */ + + GmacTSADDREG = 0x00000020, /* Addend Register Update 5 RW_SC 0 */ + GmacTSUPDT = 0x00000008, /* Time Stamp Update 3 RW_SC 0 */ + GmacTSINT = 0x00000004, /* Time Atamp Initialize 2 RW_SC 0 */ + + GmacTSTRIG = 0x00000010, /* Time stamp interrupt Trigger Enable 4 RW_SC 0 */ + + GmacTSCFUPDT = 0x00000002, /* Time Stamp Fine/Coarse 1 RW 0 */ + GmacTSCUPDTCoarse = 0x00000000, /* 0=> Time Stamp update method is coarse */ + GmacTSCUPDTFine = 0x00000002, /* 1=> Time Stamp update method is fine */ + + GmacTSENA = 0x00000001, /* Time Stamp Enable 0 RW 0 */ +}; + + +/* GmacTSSubSecIncr = 0x0704, 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ +enum GmacTSSubSecIncrReg +{ + GmacSSINCMsk = 0x000000FF, /* Only Lower 8 bits are valid bits 7:0 RW 00 */ +}; + +/* GmacTSLow = 0x070C, Indicates whether the timestamp low count is positive or negative; for Adv timestamp it is always zero */ +enum GmacTSSign +{ + GmacTSSign = 0x80000000, /* PSNT 31 RW 0 */ + GmacTSPositive = 0x00000000, + GmacTSNegative = 0x80000000, +}; + +/*GmacTargetTimeLow = 0x0718, 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ +enum GmacTSLowReg +{ + GmacTSDecThr = 0x3B9AC9FF, /*when TSCTRLSSR is set the max value for GmacTargetTimeLowReg and GmacTimeStampLow register is 0x3B9AC9FF at 1ns precision */ +}; + +/* GmacTSHighWord = 0x0724, Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ +enum GmacTSHighWordReg +{ + GmacTSHighWordMask = 0x0000FFFF, /* Time Stamp Higher work register has only lower 16 bits valid */ +}; +/*GmacTSStatus = 0x0728, Time Stamp Status Register */ +enum GmacTSStatusReg +{ + GmacTSTargTimeReached = 0x00000002, /* Time Stamp Target Time Reached 1 RO 0 */ + GmacTSSecondsOverflow = 0x00000001, /* Time Stamp Seconds Overflow 0 RO 0 */ +}; + + +/********************************************************** + * Time stamp related functions + **********************************************************/ +void synopGMAC_TS_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_disable(synopGMACdevice *gmacdev); + +void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev); + +void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev); +void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type); +void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" +void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" +void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" + +void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" + +s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value); +s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); +s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); + +void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled +void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled + +void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_val); // Update should happen making use of subsecond mask +void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 * higher_sec_val, + u32 * sec_val, u32 * sub_sec_val); // Reads the timestamp low,high and higher(Ver2) registers in the the struct pointer; readonly contents +void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val); //Loads the timestamp target register with the values provided + +void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val); +void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 * higher_sec_val); +void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 * sec_val, u32 * sub_sec_val); //Read the target time stamp register contents + + +/********************************************************** + * Common functions + **********************************************************/ +s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev,u32 clk_div_val ); +u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev); +s32 synopGMAC_read_phy_reg(u32 RegBase,u32 PhyBase, u32 RegOffset, u16 * data); +s32 synopGMAC_write_phy_reg(u32 RegBase, u32 PhyBase, u32 RegOffset, u16 data); +s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback); +s32 synopGMAC_read_version (synopGMACdevice * gmacdev) ; +s32 synopGMAC_reset (synopGMACdevice * gmacdev ); +s32 synopGMAC_dma_bus_mode_init(synopGMACdevice * gmacdev, u32 init_value ); +s32 synopGMAC_dma_control_init(synopGMACdevice * gmacdev, u32 init_value ); +void synopGMAC_wd_enable(synopGMACdevice * gmacdev); +void synopGMAC_wd_disable(synopGMACdevice * gmacdev); +void synopGMAC_jab_enable(synopGMACdevice * gmacdev); +void synopGMAC_jab_disable(synopGMACdevice * gmacdev); +void synopGMAC_frame_burst_enable(synopGMACdevice * gmacdev); +void synopGMAC_frame_burst_disable(synopGMACdevice * gmacdev); +void synopGMAC_jumbo_frame_enable(synopGMACdevice * gmacdev); +void synopGMAC_jumbo_frame_disable(synopGMACdevice * gmacdev); +void synopGMAC_select_gmii(synopGMACdevice * gmacdev); +void synopGMAC_select_mii(synopGMACdevice * gmacdev); +void synopGMAC_rx_own_enable(synopGMACdevice * gmacdev); +void synopGMAC_rx_own_disable(synopGMACdevice * gmacdev); +void synopGMAC_loopback_on(synopGMACdevice * gmacdev); +void synopGMAC_loopback_off(synopGMACdevice * gmacdev); +void synopGMAC_set_full_duplex(synopGMACdevice * gmacdev); +void synopGMAC_set_half_duplex(synopGMACdevice * gmacdev); +void synopGMAC_retry_enable(synopGMACdevice * gmacdev); +void synopGMAC_retry_disable(synopGMACdevice * gmacdev); +void synopGMAC_pad_crc_strip_enable(synopGMACdevice * gmacdev); +void synopGMAC_pad_crc_strip_disable(synopGMACdevice * gmacdev); +void synopGMAC_back_off_limit(synopGMACdevice * gmacdev, u32 value); +void synopGMAC_deferral_check_enable(synopGMACdevice * gmacdev); +void synopGMAC_deferral_check_disable(synopGMACdevice * gmacdev); +void synopGMAC_rx_enable(synopGMACdevice * gmacdev); +void synopGMAC_rx_disable(synopGMACdevice * gmacdev); +void synopGMAC_tx_enable(synopGMACdevice * gmacdev); +void synopGMAC_tx_disable(synopGMACdevice * gmacdev); +void synopGMAC_frame_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_frame_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_write_hash_table_high(synopGMACdevice * gmacdev, u32 data); +void synopGMAC_write_hash_table_low(synopGMACdevice * gmacdev, u32 data); +void synopGMAC_hash_perfect_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_Hash_filter_only_enable(synopGMACdevice * gmacdev); +void synopGMAC_src_addr_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_src_addr_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_dst_addr_filter_inverse(synopGMACdevice * gmacdev); +void synopGMAC_dst_addr_filter_normal(synopGMACdevice * gmacdev); +void synopGMAC_set_pass_control(synopGMACdevice * gmacdev,u32 passcontrol); +void synopGMAC_broadcast_enable(synopGMACdevice * gmacdev); +void synopGMAC_broadcast_disable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_enable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_disable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_hash_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_hash_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_promisc_enable(synopGMACdevice * gmacdev); +void synopGMAC_promisc_disable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_hash_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_hash_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice * gmacdev); +void synopGMAC_rx_flow_control_enable(synopGMACdevice * gmacdev); +void synopGMAC_rx_flow_control_disable(synopGMACdevice * gmacdev); +void synopGMAC_tx_flow_control_enable(synopGMACdevice * gmacdev); +void synopGMAC_tx_flow_control_disable(synopGMACdevice * gmacdev); +void synopGMAC_tx_activate_flow_control(synopGMACdevice * gmacdev); +void synopGMAC_tx_deactivate_flow_control(synopGMACdevice * gmacdev); +void synopGMAC_pause_control(synopGMACdevice *gmacdev); +s32 synopGMAC_mac_init(synopGMACdevice * gmacdev); +s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); +s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); +s32 synopGMAC_attach (synopGMACdevice * gmacdev, u32 macBase, u32 dmaBase, u32 phyBase,u8 *mac_addr); +void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); +void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); +void synopGMAC_rx_desc_init_chain(DmaDesc * desc); +void synopGMAC_tx_desc_init_chain(DmaDesc * desc); +s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev); +void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev); +void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev); +void synopGMAC_set_owner_dma(DmaDesc *desc); +void synopGMAC_set_desc_sof(DmaDesc *desc); +void synopGMAC_set_desc_eof(DmaDesc *desc); +bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc); +bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc); +bool synopGMAC_is_da_filter_failed(DmaDesc *desc); +bool synopGMAC_is_sa_filter_failed(DmaDesc *desc); +bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc); +u32 synopGMAC_get_rx_desc_frame_length(u32 status); +bool synopGMAC_is_desc_valid(u32 status); +bool synopGMAC_is_desc_empty(DmaDesc *desc); +bool synopGMAC_is_rx_desc_valid(u32 status); +bool synopGMAC_is_tx_aborted(u32 status); +bool synopGMAC_is_tx_carrier_error(u32 status); +u32 synopGMAC_get_tx_collision_count(u32 status); +u32 synopGMAC_is_exc_tx_collisions(u32 status); +bool synopGMAC_is_rx_frame_damaged(u32 status); +bool synopGMAC_is_rx_frame_collision(u32 status); +bool synopGMAC_is_rx_crc(u32 status); +bool synopGMAC_is_frame_dribbling_errors(u32 status); +bool synopGMAC_is_rx_frame_length_errors(u32 status); +bool synopGMAC_is_last_rx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); +bool synopGMAC_is_last_tx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); +bool synopGMAC_is_rx_desc_chained(DmaDesc * desc); +bool synopGMAC_is_tx_desc_chained(DmaDesc * desc); +void synopGMAC_get_desc_data(DmaDesc * desc, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2); +#ifdef ENH_DESC_8W +s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, + u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); +#else +s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2 ); +#endif +s32 synopGMAC_set_tx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2,u32 offload_needed,u32 * index,DmaDesc *Dpr); +s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2); +#ifdef ENH_DESC_8W +s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, + u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); +#else +s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2); +#endif +void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev); +u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev); +u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev); +void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); +void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev); +void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); +void synopGMAC_enable_dma_rx(synopGMACdevice * gmacdev); +void synopGMAC_enable_dma_tx(synopGMACdevice * gmacdev); +void synopGMAC_resume_dma_tx(synopGMACdevice * gmacdev); +void synopGMAC_resume_dma_rx(synopGMACdevice * gmacdev); +void synopGMAC_take_desc_ownership(DmaDesc * desc); +void synopGMAC_take_desc_ownership_rx(synopGMACdevice * gmacdev); +void synopGMAC_take_desc_ownership_tx(synopGMACdevice * gmacdev); +void synopGMAC_disable_dma_tx(synopGMACdevice * gmacdev); +void synopGMAC_disable_dma_rx(synopGMACdevice * gmacdev); +/******Following APIs are valid only for Enhanced Descriptor from 3.50a release onwards*******/ +bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev,u32 status); +bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev,u32 ext_status); +bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev,u32 ext_status); +bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev,u32 ext_status); +/*******************PMT APIs***************************************/ +void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev); +void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev); +void synopGMAC_power_down_enable(synopGMACdevice *gmacdev); +void synopGMAC_power_down_disable(synopGMACdevice *gmacdev); +void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev); +void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev); +void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev); +void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev); +void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev); +bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev); +bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev); +void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 * filter_contents); +/*******************MMC APIs***************************************/ +void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev); +u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter); +u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev); +u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev); +void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +/*******************Ip checksum offloading APIs***************************************/ +void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev); +void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev); +void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev); +void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev); +u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status); +bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status); +bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status); +void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc); +void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc); +void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc); +void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc); + +#endif /* End of file */ diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Host.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Host.h new file mode 100644 index 0000000000..e6d31d551d --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_Host.h @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#ifndef SYNOP_GMAC_HOST_H +#define SYNOP_GMAC_HOST_H 1 + + +#include "synopGMAC_plat.h" +#include "synopGMAC_Dev.h" +#include "mii.h" + + + +struct net_device_stats +{ + unsigned long rx_packets; /* total packets received */ + unsigned long tx_packets; /* total packets transmitted */ + unsigned long rx_bytes; /* total bytes received */ + unsigned long tx_bytes; /* total bytes transmitted */ + unsigned long rx_errors; /* bad packets received */ + unsigned long tx_errors; /* packet transmit problems */ + unsigned long rx_dropped; /* no space in linux buffers */ + unsigned long tx_dropped; /* no space available in linux */ + unsigned long multicast; /* multicast packets received */ + unsigned long collisions; + + /* detailed rx_errors: */ + unsigned long rx_length_errors; + unsigned long rx_over_errors; /* receiver ring buff overflow */ + unsigned long rx_crc_errors; /* recved pkt with crc error */ + unsigned long rx_frame_errors; /* recv'd frame alignment error */ + unsigned long rx_fifo_errors; /* recv'r fifo overrun */ + unsigned long rx_missed_errors; /* receiver missed packet */ + + /* detailed tx_errors */ + unsigned long tx_aborted_errors; + unsigned long tx_carrier_errors; + unsigned long tx_fifo_errors; + unsigned long tx_heartbeat_errors; + unsigned long tx_window_errors; + + /* for cslip etc */ + unsigned long rx_compressed; + unsigned long tx_compressed; +}; + + + +typedef struct synopGMACNetworkAdapter{ + +/*Device Dependent Data structur*/ +synopGMACdevice * synopGMACdev; + + +struct net_device_stats synopGMACNetStats; + + +struct mii_if_info mii; +} synopGMACPciNetworkAdapter; + + + + + + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_debug.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_debug.h new file mode 100644 index 0000000000..9766587e1a --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_debug.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#ifndef __DEBUG_H__ +#define __DEBUG_H__ + +//#define GMAC_DEBUG +#include +#ifdef GMAC_DEBUG +#define DEBUG_MES rt_kprintf +#else +#define DEBUG_MES(...) +#endif + +#endif /*__DEBUG_H__*/ diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_network_interface.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_network_interface.h new file mode 100644 index 0000000000..8ded91d359 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_network_interface.h @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#ifndef SYNOP_GMAC_NETWORK_INTERFACE_H +#define SYNOP_GMAC_NETWORK_INTERFACE_H 1 + + +#include +#include +#include "synopGMAC_plat.h" +#include "synopGMAC_Host.h" +#include "synopGMAC_Dev.h" + +//#include +//#include +//#include + + +#define NET_IF_TIMEOUT (10*HZ) +#define CHECK_TIME (HZ) + +s32 synopGMAC_init_network_interface(char* xname,u64 synopGMACMappedAddr); +void synopGMAC_exit_network_interface(void); + +s32 synopGMAC_linux_open(struct eth_device *); +s32 synopGMAC_linux_close(struct eth_device *); +//s32 synopGMAC_linux_xmit_frames(struct ifnet *); +struct net_device_stats * synopGMAC_linux_get_stats(struct synopGMACNetworkAdapter *); +//void synopGMAC_linux_set_multicast_list(struct net_device *); +//s32 synopGMAC_linux_set_mac_address(struct synopGMACNetwokrAdapter*,void *); +//s32 synopGMAC_linux_change_mtu(struct net_device *,s32); +//s32 synopGMAC_linux_do_ioctl(struct ifnet *,struct ifreq *,s32); +//void synopGMAC_linux_tx_timeout(struct net_device *); + +s32 synopGMAC_test(synopGMACdevice * gmacdev_0,synopGMACdevice * gmacdev_1); + +void dumpreg(u64 ); +void dumpphyreg(); + +/* + * gethex(vp,p,n) + * convert n hex digits from p to binary, result in vp, + * rtn 1 on success + */ +static int gethex(u8 *vp, char *p, int n) +{ + u8 v; + int digit; + + for (v = 0; n > 0; n--) { + if (*p == 0) + return (0); + if (*p >= '0' && *p <= '9') + digit = *p - '0'; + else if (*p >= 'a' && *p <= 'f') + digit = *p - 'a' + 10; + else if (*p >= 'A' && *p <= 'F') + digit = *p - 'A' + 10; + else + return (0); + + v <<= 4; + v |= digit; + p++; + } + *vp = v; + return (1); +} + +#endif /* End of file */ diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.c b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.c new file mode 100644 index 0000000000..3dfbe077d7 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.c @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + +#include "synopGMAC_plat.h" +#include "synopGMAC_Dev.h" +#include +#include +extern void flush_cache(unsigned long start_addr, unsigned long size); +dma_addr_t __attribute__((weak)) gmac_dmamap(unsigned long va,u32 size) +{ + return VA_TO_PA (va); + //return UNCACHED_TO_PHYS(va); +} + + + +/** + * This is a wrapper function for Memory allocation routine. In linux Kernel + * it it kmalloc function + * @param[in] bytes in bytes to allocate + */ + +void *plat_alloc_memory(u32 bytes) +{ +//return (void*)malloc((size_t)bytes, M_DEVBUF, M_DONTWAIT); + void *buf = (void*)rt_malloc((u32)bytes); + + flush_cache((unsigned long)buf, bytes); + return buf; +} + +/** + * This is a wrapper function for consistent dma-able Memory allocation routine. + * In linux Kernel, it depends on pci dev structure + * @param[in] bytes in bytes to allocate + */ + +//void *plat_alloc_consistent_dmaable_memory(struct synopGMACdevice *dev, u32 size, u32 *addr) +void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) +{ + void *buf; + buf = (void*)rt_malloc((u32)(size+16)); + //CPU_IOFlushDCache( buf,size, SYNC_W); + unsigned long i = (unsigned long)buf; +// rt_kprintf("size = %d\n", size); +// rt_kprintf("bufaddr = %p\n", buf); +// rt_kprintf("i%%16 == %d\n", i%16); + if(i%16 == 8){ + i += 8; + } + else if(i%16 == 4){ + i += 12; + } + else if(i%16 == 12){ + i += 4; + } + + flush_cache(i, size); + *addr =gmac_dmamap(i, size); + buf = (unsigned char *)CACHED_TO_UNCACHED(i); +// rt_kprintf("bufaddr = %p\n", buf); + return buf; +} + + +/** + * This is a wrapper function for freeing consistent dma-able Memory. + * In linux Kernel, it depends on pci dev structure + * @param[in] bytes in bytes to allocate + */ + + +//void plat_free_consistent_dmaable_memory(void * addr) +void plat_free_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, void * addr,u32 dma_addr) +{ + rt_free((void*)PHYS_TO_CACHED(UNCACHED_TO_PHYS(addr))); + return; +} + + + +/** + * This is a wrapper function for Memory free routine. In linux Kernel + * it it kfree function + * @param[in] buffer pointer to be freed + */ +void plat_free_memory(void *buffer) +{ + rt_free(buffer); + return ; +} + + + +dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, + u32 size) +{ + unsigned long addr = (unsigned long) ptr; +//CPU_IOFlushDCache(addr,size, direction); + flush_cache(addr, size); +return gmac_dmamap(addr, size); +} + +/** + * This is a wrapper function for platform dependent delay + * Take care while passing the argument to this function + * @param[in] buffer pointer to be freed + */ +void plat_delay(u32 delay) +{ + while (delay--); + return; +} + + diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.h new file mode 100644 index 0000000000..173015a53f --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_plat.h @@ -0,0 +1,251 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + + +#ifndef SYNOP_GMAC_PLAT_H +#define SYNOP_GMAC_PLAT_H 1 + +/* sw +#include +#include +#include +#include +#include +*/ +#include "synopGMAC_types.h" +#include "synopGMAC_debug.h" +//#include "mii.h" +//#include "GMAC_Pmon.h" +//#include "synopGMAC_Host.h" +#include +//sw: copy the type define into here +#define IOCTL_READ_REGISTER SIOCDEVPRIVATE+1 +#define IOCTL_WRITE_REGISTER SIOCDEVPRIVATE+2 +#define IOCTL_READ_IPSTRUCT SIOCDEVPRIVATE+3 +#define IOCTL_READ_RXDESC SIOCDEVPRIVATE+4 +#define IOCTL_READ_TXDESC SIOCDEVPRIVATE+5 +#define IOCTL_POWER_DOWN SIOCDEVPRIVATE+6 + +#define SYNOP_GMAC0 1 + +typedef int bool; +//typedef unsigned long dma_addr_t; + + + +#define KUSEG_ADDR 0x0 +#define CACHED_MEMORY_ADDR 0x80000000 +#define UNCACHED_MEMORY_ADDR 0xa0000000 +#define KSEG2_ADDR 0xc0000000 +#define MAX_MEM_ADDR 0xbe000000 +#define RESERVED_ADDR 0xbfc80000 + +#define CACHED_TO_PHYS(x) ((unsigned)(x) & 0x7fffffff) +#define PHYS_TO_CACHED(x) ((unsigned)(x) | CACHED_MEMORY_ADDR) +#define UNCACHED_TO_PHYS(x) ((unsigned)(x) & 0x1fffffff) +#define PHYS_TO_UNCACHED(x) ((unsigned)(x) | UNCACHED_MEMORY_ADDR) +#define VA_TO_CINDEX(x) ((unsigned)(x) & 0xffffff | CACHED_MEMORY_ADDR) +#define CACHED_TO_UNCACHED(x) (PHYS_TO_UNCACHED(CACHED_TO_PHYS(x))) + +#define VA_TO_PA(x) UNCACHED_TO_PHYS(x) + + +/* sw +#define TR0(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) + +#ifdef DEBUG +#undef TR +# define TR(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) +#else +# define TR(fmt, args...) // not debugging: nothing +#endif +*/ +/* +#define TR0(fmt, args...) printf("SynopGMAC: " fmt, ##args) +*/ + +/* +#ifdef DEBUG +#undef TR +# define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) +#else +//# define TR(fmt, args...) // not debugging: nothing +#define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) +#endif +*/ + +//sw: nothing to display +#define TR0(fmt, args...) //rt_kprintf(fmt, ##args) +#define TR(fmt, args...) //rt_kprintf(fmt, ##args) +//#define TR rt_kprintf + +//typedef int bool; +enum synopGMAC_boolean + { + false = 0, + true = 1 + }; + + +#define DEFAULT_DELAY_VARIABLE 10 +#define DEFAULT_LOOP_VARIABLE 10000 + +/* There are platform related endian conversions + * + */ + +#define LE32_TO_CPU __le32_to_cpu +#define BE32_TO_CPU __be32_to_cpu +#define CPU_TO_LE32 __cpu_to_le32 + +/* Error Codes */ +#define ESYNOPGMACNOERR 0 +#define ESYNOPGMACNOMEM 1 +#define ESYNOPGMACPHYERR 2 +#define ESYNOPGMACBUSY 3 + +struct Network_interface_data +{ + u32 unit; + u32 addr; + u32 data; +}; + + +/** + * These are the wrapper function prototypes for OS/platform related routines + */ + +void * plat_alloc_memory(u32 ); +void plat_free_memory(void *); + +//void * plat_alloc_consistent_dmaable_memory(struct pci_dev *, u32, u32 *); +//void plat_free_consistent_dmaable_memory (struct pci_dev *, u32, void *, u32); + +void plat_delay(u32); + + +/** + * The Low level function to read register contents from Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * \return Returns the register contents + */ +static u32 synopGMACReadReg(u32 RegBase, u32 RegOffset) +{ + u32 addr; + u32 data; + + addr = RegBase + (u32)RegOffset; + data = *(volatile u32 *)addr; + +#if SYNOP_REG_DEBUG + TR("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); +#endif + // rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); + return data; + +} + +/** + * The Low level function to write to a register in Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Data to be written + * \return void + */ +static void synopGMACWriteReg(u32 RegBase, u32 RegOffset, u32 RegData ) +{ + + u32 addr; + + addr = RegBase + (u32)RegOffset; +// rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); +#if SYNOP_REG_DEBUG + TR("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); +#endif + *(volatile u32 *)addr = RegData; + + if(addr == 0xbfe1100c) + DEBUG_MES("regdata = %08x\n", RegData); + return; +} + +/** + * The Low level function to set bits of a register in Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Bit mask to set bits to logical 1 + * \return void + */ +static void synopGMACSetBits(u32 RegBase, u32 RegOffset, u32 BitPos) +{ + //u64 addr = (u64)RegBase + (u64)RegOffset; + u32 data; + data = synopGMACReadReg(RegBase, RegOffset); + data |= BitPos; + synopGMACWriteReg(RegBase, RegOffset, data); + // writel(data,(void *)addr); +#if SYNOP_REG_DEBUG + TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); +#endif + return; +} + + +/** + * The Low level function to clear bits of a register in Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Bit mask to clear bits to logical 0 + * \return void + */ +static void synopGMACClearBits(u32 RegBase, u32 RegOffset, u32 BitPos) +{ + u32 data; + data = synopGMACReadReg(RegBase, RegOffset); + data &= (~BitPos); + synopGMACWriteReg(RegBase, RegOffset, data); +#if SYNOP_REG_DEBUG + TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); +#endif + return; +} + +/** + * The Low level function to Check the setting of the bits. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Bit mask to set bits to logical 1 + * \return returns TRUE if set to '1' returns FALSE if set to '0'. Result undefined there are no bit set in the BitPos argument. + * + */ +static bool synopGMACCheckBits(u32 RegBase, u32 RegOffset, u32 BitPos) +{ + + u32 data; + data = synopGMACReadReg(RegBase, RegOffset); + data &= BitPos; + if(data) return true; + else return false; + +} + + + + + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/net/synopGMAC_types.h b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_types.h new file mode 100644 index 0000000000..88504eebf7 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/net/synopGMAC_types.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + + + +#ifndef __TYPES__H +#define __TYPES__H + +typedef unsigned char uint8_t; +typedef unsigned long long u64; +typedef unsigned int u32; +typedef unsigned short u16; +typedef unsigned char u8; +typedef signed int s32; + +typedef u32 dma_addr_t; + +#endif /*__TYPES__H*/ diff --git a/bsp/loongson/ls1cdev/drivers/selfboot.h b/bsp/loongson/ls1cdev/drivers/selfboot.h new file mode 100644 index 0000000000..def9e38229 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/selfboot.h @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2006-2019, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2019-12-04 Jiaxun Yang Initial version + */ + +#ifndef __RT_LS1C_SELFBOOT_H +#define __RT_LS1C_SELFBOOT_H + +/* SDRAM PARAM macro */ +#define SD_FREQ (((APB_CLK / 4) * (PLL_MULT / CPU_DIV)) / SDRAM_PARAM_DIV_NUM) + + +/* SDRAM ROW */ +#define ROW_1K 0x7 +#define ROW_2K 0x0 +#define ROW_4K 0x1 +#define ROW_8K 0x2 +#define ROW_16K 0x3 +/* SDRAM COL */ +#define COL_256 0x7 +#define COL_512 0x0 +#define COL_1K 0x1 +#define COL_2K 0x2 +#define COL_4K 0x3 +/* SDRAM WIDTH */ +#define WIDTH_8 0x0 +#define WIDTH_16 0x1 +#define WIDTH_32 0x2 + +#define TRCD 3 +#define TCL 3 +#define TRP 3 +#define TRFC 8 +#define TRAS 6 +#define TREF 0x818 +#define TWR 2 + +#define DEF_SEL 0x1 +#define DEF_SEL_N 0x0 +#define HANG_UP 0x1 +#define HANG_UP_N 0x0 +#define CFG_VALID 0x1 + +#include "board.h" + +#define SD_PARA0 (0x7f<<25 | \ + (TRAS << 21) | \ + (TRFC << 17) | (TRP << 14) | (TCL << 11) | \ + (TRCD << 8) | (SDRAM_WIDTH << 6) | (SDRAM_COL << 3) | \ + SDRAM_ROW) + +#define SD_PARA1 ((HANG_UP_N << 8) | (DEF_SEL_N << 7) | (TWR << 5) | (TREF >> 7)) + +#define SD_PARA1_EN ((CFG_VALID << 9) | (HANG_UP_N << 8) | \ + (DEF_SEL_N << 7) | (TWR << 5) | (TREF >> 7)) + +#define LS1C_CBUS_FIRST1 0xBFE011C4 +#define LS1C_UART2_BASE 0xBFE48000 + +/* UART register offset*/ +#define LS1C_UART_DAT_OFFSET (0) +#define LS1C_UART_IER_OFFSET (1) +#define LS1C_UART_IIR_OFFSET (2) +#define LS1C_UART_FCR_OFFSET (2) +#define LS1C_UART_LCR_OFFSET (3) +#define LS1C_UART_MCR_OFFSET (4) +#define LS1C_UART_LSR_OFFSET (5) +#define LS1C_UART_MSR_OFFSET (6) + +#define LS1C_UART_LSB_OFFSET (0) +#define LS1C_UART_MSB_OFFSET (1) + +/* interrupt enable register */ +#define IER_IRxE 0x1 +#define IER_ITxE 0x2 +#define IER_ILE 0x4 +#define IER_IME 0x8 + +/* interrupt identification register */ +#define IIR_IMASK 0xf /* mask */ +#define IIR_RXTOUT 0xc /* receive timeout */ +#define IIR_RLS 0x6 /* receive line status */ +#define IIR_RXRDY 0x4 /* receive ready */ +#define IIR_TXRDY 0x2 /* transmit ready */ +#define IIR_NOPEND 0x1 /* nothing */ +#define IIR_MLSC 0x0 /* modem status */ +#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ + +/* fifo control register */ +#define FIFO_ENABLE 0x01 /* enable fifo */ +#define FIFO_RCV_RST 0x02 /* reset receive fifo */ +#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ +#define FIFO_DMA_MODE 0x08 /* enable dma mode */ +#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ +#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ +#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ +#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ + +/* character format control register */ +#define CFCR_DLAB 0x80 /* divisor latch */ +#define CFCR_SBREAK 0x40 /* send break */ +#define CFCR_PZERO 0x30 /* zero parity */ +#define CFCR_PONE 0x20 /* one parity */ +#define CFCR_PEVEN 0x10 /* even parity */ +#define CFCR_PODD 0x00 /* odd parity */ +#define CFCR_PENAB 0x08 /* parity enable */ +#define CFCR_STOPB 0x04 /* 2 stop bits */ +#define CFCR_8BITS 0x03 /* 8 data bits */ +#define CFCR_7BITS 0x02 /* 7 data bits */ +#define CFCR_6BITS 0x01 /* 6 data bits */ +#define CFCR_5BITS 0x00 /* 5 data bits */ + +/* modem control register */ +#define MCR_LOOPBACK 0x10 /* loopback */ +#define MCR_IENABLE 0x08 /* output 2 = int enable */ +#define MCR_DRS 0x04 /* output 1 = xxx */ +#define MCR_RTS 0x02 /* enable RTS */ +#define MCR_DTR 0x01 /* enable DTR */ + +/* line status register */ +#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ +#define LSR_TSRE 0x40 /* transmitter empty */ +#define LSR_TXRDY 0x20 /* transmitter ready */ +#define LSR_BI 0x10 /* break detected */ +#define LSR_FE 0x08 /* framing error */ +#define LSR_PE 0x04 /* parity error */ +#define LSR_OE 0x02 /* overrun error */ +#define LSR_RXRDY 0x01 /* receiver ready */ +#define LSR_RCV_MASK 0x1f + + +/* External clock frequency */ +#define AHB_CLK (24000000) +#define APB_CLK (AHB_CLK) + + +/* START_FREQ register bits */ +#define M_PLL_SHIFT (8) +#define M_PLL (0xff << M_PLL_SHIFT) +#define FRAC_N_SHIFT (16) +#define FRAC_N (0xff << FRAC_N_SHIFT) +#define DIV_SDRAM_SHIFT (0) +#define DIV_SDRAM (0x3 << DIV_SDRAM_SHIFT) + +/* CLK_DIV_PARAM register bits */ +#define DIV_PIX_EN (0x1 << 31) +#define DIV_PIX (0x7f << 24) +#define DIV_CAM_EN (0x1 << 23) +#define DIV_CAM (0x7f << 16) +#define DIV_CPU_EN (0x1 << 15) +#define DIV_CPU (0x7f << 8) +#define DIV_PIX_VALID (0x1 << 5) +#define DIV_PIX_SEL (0x1 << 4) +#define DIV_CAM_VALID (0x1 << 3) +#define DIV_CAM_SEL (0x1 << 2) +#define DIV_CPU_VALID (0x1 << 1) +#define DIV_CPU_SEL (0x1 << 0) + +#define DIV_PIX_SHIFT (24) +#define DIV_CAM_SHIFT (16) +#define DIV_CPU_SHIFT (8) + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/selfboot_gcc.S b/bsp/loongson/ls1cdev/drivers/selfboot_gcc.S new file mode 100644 index 0000000000..03dfc206d4 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/selfboot_gcc.S @@ -0,0 +1,549 @@ +/* + * Copyright (c) 2006-2019, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Origin Authors: Loongson Technology Corporation Limited, + * caogos <1207280597@qq.com>, Jiaxun Yang , + * + * Also thanks to Liu Shiwei and other Loongson + * Community developers. + * + * Change Logs: + * Date Author Notes + * 2019-12-04 Jiaxun Yang Initial version + */ + +#include + +#ifdef RT_USING_SELF_BOOT + +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include +#include "selfboot.h" +#include "ls1c.h" +#include "cache.h" + +/* + * Register usage: + * + * s0 link versus load offset, used to relocate absolute adresses. + * s1 free + * s2 memory size + * s3 free + * s4 free + * s5 dbg + * s6 sdCfg + * s7 rasave + * s8 free + */ + +#define tmpsize s1 +#define msize s2 +#define bonito s4 +#define dbg s5 +#define sdCfg s6 + + +/* Macros */ +#ifdef RT_SELF_BOOT_DEBUG +#define PRINTSTR(str) \ + .pushsection .selfboot_data; .align 4; 98: .asciz str; .popsection; la a0, 98b; bal stringserial; nop +#else +#define PRINTSTR(x) +#endif + +#define DELAY(count) \ + li v0, count; \ +99: \ + bnez v0, 99b;\ + addiu v0, -1 + +.section ".selfboot", "ax" +.set noreorder +.set mips32 +.globl _start +.extern start +_start: + +/* NMI/Reset vector starts here*/ + mtc0 zero, CP0_STATUS /* set cp0 status register to zero */ + mtc0 zero, CP0_CAUSE /* set cp0 cause register to zero */ + + li t0, ST0_BEV /* set exception vector to in flash location */ + mtc0 t0, CP0_STATUS + + /* Speed up SPI reading */ + li t0, 0xbfe80000 /* load SPI0 controler base address to t0 */ + li t1, 0x17 /* load "div 4, fast_read + burst_en + memory_en double I/O" to + * to t0 for write, not all the flash chips support this mode */ + sb t1, 0x4(t0) /* set sfc_param register */ + li t1, 0x05 + sb t1, 0x6(t0) /* set sfc_timing register */ + + bal locate /* branch out of vector and get current address to ra */ + nop + +/* in-flash exception vectors start here */ +/* save the exception types to a0 and print out PANIC message in exc_common */ +#define EXC_TLB_REFILL 0x0 +#define EXC_CACHE_ERR 0x1 +#define EXC_GEN 0x2 +#define EXC_INT 0x3 + +.org 0x200 /* 0xbfc00200 TLB_REFILL exception */ + li a0, EXC_TLB_REFILL + b exc_common + nop + +.org 0x300 /* 0xbfc00300 Cache Error exception */ + li a0, EXC_CACHE_ERR + b exc_common + nop + +.org 0x380 /* 0xbfc00300 General exception */ + li a0,EXC_GEN + b exc_common + nop + +.org 0x400 /* 0xbfc00400 Interrupt exception */ + li a0, EXC_INT + b exc_common + nop + +1: /* impossible to reach here, so make a dead loop */ + b 1b + nop + +exc_common: /* try one cause and pass to next */ + li s1, EXC_TLB_REFILL + bne a0, s1, 1f + nop + PRINTSTR("\r\nEARLY_PANIC: Exception TLB Refill") + b print_cause + nop +1: + li s1, EXC_CACHE_ERR + bne a0, s1, 1f + nop + PRINTSTR("\r\nEARLY_PANIC: CACHE Error: ") + mfc0 a0, CP0_CACHEERR + bal hexserial + nop + b print_cause + nop +1: + li s1, EXC_GEN + bne a0, s1, 1f + nop + PRINTSTR("\r\nEARLY_PANIC: General Exception") + b print_cause + nop +1: + li s1, EXC_INT + bne a0, s1, print_cause /* if all exceptions in a0 not reached, + * print_cause directly*/ + nop + PRINTSTR("\r\nEARLY_PANIC: Interrupt Exception") +print_cause: + PRINTSTR("\r\nCAUSE=") + mfc0 a0, CP0_CAUSE + bal hexserial + nop + + PRINTSTR("\r\nSTATUS=") + mfc0 a0, CP0_STATUS + bal hexserial + nop + + PRINTSTR("\r\nERRORPC=") + mfc0 a0, CP0_ERROREPC + bal hexserial + nop + + PRINTSTR("\r\nEPC=") + mfc0 a0, CP0_EPC + bal hexserial + nop + + PRINTSTR("\r\nBADADDR=") + mfc0 a0, CP0_BADVADDR + bal hexserial + nop + + PRINTSTR("\r\nEARLY: LOOP! Noting to do") +1: /* Make a dead loop here, wait user to reset the MCU */ + b 1b + nop + +/* locate here, continue the start progress */ + +locate: + /* fix the absolute address by ra */ + la s0, start /* s0 = start */ + subu s0, ra, s0 /* s0 = ra - s0 */ + and s0, 0xffff0000 /* s0 = s0 & 0xffff0000 */ + + li t0, 0xbfe78030 /* load PLL/SDRAM freq config register base to t0 */ + li t2, (0x80000008 | (PLL_MULT << 8) | (0x3 << 2) | SDRAM_DIV) /* Set PLL + * MULT and PLL DIV */ + li t3, (0x00008003 | (CPU_DIV << 8)) /* set CPU DEV */ + + li t1, 0x2 + sw t1, 0x4(t0) /* disable CPU_DIV_VALID firstly for adjustment */ + sw t2, 0x0(t0) /* write START_FREQ */ + sw t3, 0x4(t0) /* write CLK_DIV_PARAM */ + +/* start to initialize debug uart port */ + la v0, LS1C_UART2_BASE /* load UART2 base to v0, only UART2 can be debug port */ +1: + li v1, FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_4 /* clear Rx,Tx FIFO + * declear 4 bit int trigger */ + sb v1, LS1C_UART_FCR_OFFSET(v0) /* write FCR (FIFO control register) */ + li v1, CFCR_DLAB /* reach freq div register */ + sb v1, LS1C_UART_LCR_OFFSET(v0) /* write LCR (Line control register)*/ + /* Set UART2 reuse with GPIO36,37*/ + li a0, LS1C_CBUS_FIRST1 /* load CBUS_FIRST1 offset to a0 */ + lw a1, 0x10(a0) /* load value from CBUS_SECOND1 to a1 */ + ori a1, 0x30 /* a1 |= 0x30, GPIO36,37 as secondary function */ + sw a1, 0x10(a0) /* write back modified CBUS_SECOND1 from a1 */ + /* Caculate PLL and bit rate */ + li a0, 0xbfe78030 /* load START_FREQ register address to a0 */ + lw a1, 0(a0) /* load value from START_FREQ to a1*/ + srl a1, 8 /* a1 >>= 8 */ + andi a1, 0xff /* a1 &= 0xff, as a1=PLL_MULT */ + li a2, APB_CLK /* a2 = APB_CLK = 24Mhz (External Clock Freq) */ + srl a2, 2 /* a2 = a2 >> 2 = APB_CLK/4 */ + multu a1, a2 /* hilo = a1 * a2 = PLL_MULT * APB_CLK /4 */ + mflo v1 /* v1 = lo. put low 32 bit of a1 * a2 to v1 as PLL freq */ + /* Determine if we need to devide the clock */ + lw a1, 4(a0) /* load value frm CLK_DIV_PARAM to a1 */ + andi a2, a1, DIV_CPU_SEL /* a2 = a1 & DIV_CPU_SEL, if CPU_SEL=1, devide the clock, + * if CPU_SEL=0, bypass the clock */ + bnez a2, 1f /* if (a2 != 0), branch to next tag 1 */ + nop + li v1, APB_CLK /* v1 = APB_CLK */ + b 3f + nop +1: /* Determine if the CPU_DIV is valid*/ + andi a2, a1, DIV_CPU_EN /* a2 = a1 & DIV_CPU_EN */ + bnez a2, 2f /* if (a2 != 0), branch to next tag 2 */ + nop + srl v1, 1 /* v1 >>= 1, so v1 = APB_CLK/4 * PLL_MULT/2 */ + b 3f + nop +2: /* caculate CPU freq */ + andi a1, DIV_CPU /* a1 &= DIV_CPU */ + srl a1, DIV_CPU_SHIFT /* a1 >>= DIV_CPU_SHIFT */ + divu v1, a1 /* lo = v1/a1, hi = v1 % a1 */ + mflo v1 /* v1 = lo, CPU Freq */ +3: + li a1, (16 * EARLY_DEBUG_BAUD) /* a1 = 16 * BIT RATE */ + divu v1, v1, a1 /* v1 = v1 / a1 */ + srl v1, 1 /* v1 >>= 1 */ + sb v1, LS1C_UART_LSB_OFFSET(v0) /* write 8bit low into LSB */ + srl v1, 8 /* v1 >>= 8 */ + sb v1, LS1C_UART_MSB_OFFSET(v0) /* write 8bit low into MSB */ + + li v1, CFCR_8BITS /* 8n1, no check */ + sb v1, LS1C_UART_LCR_OFFSET(v0) /* write to LCR (Line Control Register) */ + +#ifdef EARLY_DEBUG_UART_FLOW_CTRL + li v1, MCR_DTR|MCR_RTS /* valid DTR and RTS */ + sb v1, LS1C_UART_MCR_OFFSET(v0) /* write to MCR (MODEM Control Register) */ +#endif + + li v1, 0x0 /* disable all the interruptions */ + sb v1, LS1C_UART_IER_OFFSET(v0) /* write to IER (Interruptions Enable Registers) */ + + PRINTSTR("\r\INFO: Loongson 1C300 Starting :) \r\n") + + /* disable all GPIOs for conflict functions */ + li a0,0xbfd00000 + sw zero,0x10c0(a0) /* disable GPIO 0-31 */ + sw zero,0x10c4(a0) /* disable GPIO 32-63 */ + sw zero,0x10c8(a0) /* disable GPIO 64-95 */ + sw zero,0x10cc(a0) + + li t0, 0xffffffff + sw t0, 0x10d0(a0) + sw t0, 0x10d4(a0) + sw t0, 0x10d8(a0) + sw t0, 0x10dc(a0) + + sw t0, 0x10f0(a0) + sw t0, 0x10f4(a0) + sw t0, 0x10f8(a0) + sw t0, 0x10fc(a0) + + PRINTSTR("\r\INFO: All GPIOs are disabled\r\n") + + /* SDRAM initialize starts here */ + + li msize, MEM_SIZE + +#ifdef EJTAG_SEL_AS_SDRAM_CS1 + li a0, 0xbfd011c0 + lw a1, 0x40(a0) + ori a1, 0x01 + sw a1, 0x40(a0) + PRINTSTR("\r\INFO: EJTAG_SEL PIN as SDRAM_CS1\r\n") +#endif + +/* +* recommanded by user manual, we should write SD_CONFIG[31:0] first, then +* write SD_CONFIG[63:32]. Repeat writing for three times, valid the config in +* the last time. +*/ + +/* write first time */ +li t1, 0xbfd00410 /* load SD_CONFIG[31:0] address to t1 */ +li a1, SD_PARA0 /* get the memory config from macro SD_PARA0 */ +sw a1, 0x0(t1) /* write to SD_CONFIG[31:0] */ +li a1, SD_PARA1 +sw a1, 0x4(t1) /* write to SD_CONFIG[63:32] with offset */ +PRINTSTR("\r\INFO: SDRAM Config Pass1\r\n") + +/* write second time,the same */ +li a1, SD_PARA0 +sw a1, 0x0(t1) +li a1, SD_PARA1 +sw a1, 0x4(t1) +PRINTSTR("\r\INFO: SDRAM Config Pass2\r\n") + +/* write third time, enable controller this time */ +li a1, SD_PARA0 +sw a1, 0x0(t1) +li a1, SD_PARA1_EN /* enable it */ +sw a1, 0x4(t1) +PRINTSTR("\r\INFO: SDRAM initialize compeleted\r\n") + + +/* initialize cache */ +bal cache_init /* branch to cache_init */ +nop + +/* enable cache */ +mfc0 a0, CP0_CONFIG /* load cp0 config to a0 */ +and a0, a0, ~((1<<12) | 7) /* a0 = a0 & ~((1<<12) | 7) */ +or a0, a0, 2 /* a0 |= 2 */ +mtc0 a0, CP0_CONFIG /* write back to CP0 config */ + +/* +* relocate: copy selfboot code to memory in kseg0, fix PC and jump to kseg0. +* in order to speed up the copy progress, we will execute copy code in kseg0 +*/ + +PRINTSTR("\r\INFO: Relocating") +la t0, text_copy_start /* load the adress of start tag to t0 */ +move t2, t0 +addu t0, s0 /* correct t0 address in rom by s0 */ +la t1, text_copy_end + +selfboot_copy_loop: +lw v0, (t0) /* copy from memory address in t0 to register v0 */ +sw v0, (t2) /* write data in register v0 to memory address t0 */ +addiu t0, 0x4 /* t0 moves forward 4 bytes */ +addiu t2, 0x4 /* t2 moves forward 4 bytes */ +ble t2, t1, selfboot_copy_loop /* if t1 <= t2 loop to continue the copy */ +nop + +la t0, text_copy_start /* load start address to t0 */ +jr t0 /* jump to 122 in kseg0 to start copy code progress */ +nop + +text_copy_start: +/* Copy code to memory*/ +la a0, start /* load address of start symbol to a0 */ +addu a1, a0, s0 /* correct a0 to address in flash */ +la a2, _edata /* load symbol _edata address to a2 */ +subu t1, a2, a0 /* t1 = a2 - a0, the space of text area */ + +move t0, a0 /* the start address in ram */ +move t1, a1 /* the start address in rom */ +move t2, a2 /* the end address in rom (symbol _edata) */ + +/* copy text section */ +1: +and t3, t0, 0x0000ffff /* t3 = t0 & 0x0000ffff, get low 16 bit */ +bnez t3, 2f /* if t3 != 0, jump to next tag 2 */ +nop +2: +lw t3, 0(t1) /* copy 4 bit from memory address t1 to register t3 */ +nop +sw t3, 0(t0) /* copy 4 bit from register t3 to memory address in t0 */ +addu t0, 4 /* t0 move forward 4 bytes */ +addu t1, 4 /* t1 move forward 4 bytes */ +bne t2, t0, 1b /* if t2 != t0, branch to last tag 1 to continue copy */ +nop +/* copy text section done. */ + +move a0, msize /* a0 = msize, will be passed to main */ +srl a0, 20 /* a0 >>= 20, convert to unit in MB */ + +/* execute main */ +la v0, _rtthread_entry /* load address of function main to v0 */ +jalr v0 /* call address in v0, congrats! all low_level things done! + * switch brain out of assembly */ +nop +text_copy_end: /* end of self-copy in memory */ + +loop: /* impossible to reach here, make a dead loop */ +b loop +nop + +/* functions here */ + +LEAF(stringserial) /* print out the string in address passed in a0 */ + nop + move a2, ra /* save the return address to a2 */ + addu a1, a0, s0 /* correct the address in ROM */ + lbu a0, 0(a1) /* read the first byte in memory address a1 to a0 */ +1: + beqz a0, 2f /* if a0 == 0, jump to next tag 2, empty char */ + nop + bal tgt_putchar /* print a char */ + addiu a1, 1 /* a1 += 1 move forward to next byte */ + b 1b /* branch to the last tag 1, continue */ + lbu a0, 0(a1) /* load the next bit from address a1 to a0, in delay solt, + * will be execuated before branch */ +2: + j a2 /* return */ + nop +END(stringserial) + + +LEAF(hexserial) /* print out single hex char passed in register a0 */ + nop + move a2, ra /* move return address from ra to a2 */ + move a1, a0 /* move hex char from register a0 to a1 */ + li a3, 7 /* load 7 to a3 */ +1: + rol a0, a1, 4 /* rotate left ward shift for 4 bit in a1 to a0 */ + move a1, a0 + and a0, 0xf + la v0, hexchar + +.pushsection .selfboot_data +.align 4 +hexchar: + .ascii "0123456789abcdef" +.popsection +.align 4 + + addu v0, s0 + addu v0, a0 + bal tgt_putchar + lbu a0, 0(v0) + + bnez a3, 1b + addu a3, -1 + + j a2 + nop +END(hexserial) + +LEAF(tgt_putchar) /* print out a char in a0 */ + la v0, LS1C_UART2_BASE /* load UART register address to a0 */ + lbu v1, LS1C_UART_LSR_OFFSET(v0) /* load value from LSR to v0 */ +1: + and v1, LSR_TXRDY /* v1 &= LSR_TXRDY determine wether we can send by TFE bit */ + beqz v1, 1b /* if (v1 == 0) jump to last 1 tag, waiting until TFE is 1 */ + lbu v1, LS1C_UART_LSR_OFFSET(v0) /* load value from LSR to v0 again, in delay solt */ + + sb a0, LS1C_UART_DAT_OFFSET(v0) /* write a0 into DAT, send out */ + j ra /* */ + nop +END(tgt_putchar) + +LEAF(CPU_SetSR) /* modify SR value, arg 1 = set bits, arg 2 = clear bits. */ + mfc0 v0, CP0_STATUS + not v1, a1 + and v1, v0 + or v1, a0 + mtc0 v1, CP0_STATUS + nop + nop + nop + nop + nop + nop + nop + nop + j ra + nop +END(CPU_SetSR) + +cache_init: + move t1, ra +####part 2#### +cache_detect_4way: + mfc0 t4, CP0_CONFIG,1 /* move CP0 CONFIG to t4 */ + lui v0, 0x7 /* v0 = 0x7 << 16 */ + and v0, t4, v0 /* v0 = t4 & v0 */ + srl t3, v0, 16 /* t3 = v0 >> 16 Icache组相联数 IA */ + + li t5, 0x800 //32*64 + srl v1, t4,22 //v1 = t4 >> 22 + andi v1, 7 //Icache每路的组数 64x2^S IS + sll t5, v1 //InstCacheSetSize + sll t5, t3 //t5 InstCacheSize + + + andi v0, t4, 0x0380 + srl t7, v0, 7 //DA + + li t6, 0x800 // 32*64 + srl v1, t4,13 + andi v1, 7 //DS + sll t6, v1 // DataCacheSetSize + sll t6, t7 // t5 DataCacheSize + +####part 3#### + lui a0, 0x8000 //a0 = 0x8000 << 16 + addu a1, $0, t5 + addu a2, $0, t6 +cache_init_d2way: +/* a0=0x80000000, a1=icache_size, a2=dcache_size */ +/* a3, v0 and v1 used as local registers */ + mtc0 $0, CP0_TAGHI + addu v0, $0, a0 /* v0 = 0 + a0 */ + addu v1, a0, a2 /* v1 = a0 + a2 */ +1: slt a3, v0, v1 /* a3 = v0 < v1 ? 1 : 0 */ + beq a3, $0, 1f /* if (a3 == 0) goto 1f */ + nop + mtc0 $0, CP0_TAGLO + cache Index_Store_Tag_D, 0x0(v0) /* 1 way */ +4: beq $0, $0, 1b + addiu v0, v0, 0x20 +1: +cache_flush_i2way: + addu v0, $0, a0 + addu v1, a0, a1 +1: + slt a3, v0, v1 + beq a3, $0, 1f + nop + cache Index_Invalidate_I, 0x0(v0) /* 1 way */ +4: + beq $0, $0, 1b + addiu v0, v0, 0x20 +1: +cache_flush_d2way: + addu v0, $0, a0 + addu v1, a0, a2 +1: slt a3, v0, v1 + beq a3, $0, 1f + nop + cache Index_Writeback_Inv_D, 0x0(v0) /* 1 way */ +4: beq $0, $0, 1b + addiu v0, v0, 0x20 + +1: +cache_init_finish: + jr t1 + nop +#endif diff --git a/bsp/loongson/ls1cdev/drivers/touch.c b/bsp/loongson/ls1cdev/drivers/touch.c new file mode 100644 index 0000000000..37a4b19213 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/touch.c @@ -0,0 +1,598 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-12-30 Sundm75 first version + */ + +#include +#include +#include +#include +#include "ls1c.h" +#include "ls1c_gpio.h" +#include "ls1c_spi.h" +#include "drv_spi.h" +#include "touch.h" + +#ifdef XPT2046_USING_TOUCH + +#include +#include +#include +#include +#include + + +//竖屏幕 不需要 _ILI_HORIZONTAL_DIRECTION_ +//横屏幕 需要 _ILI_HORIZONTAL_DIRECTION_ + +//#define _ILI_HORIZONTAL_DIRECTION_ + +#if defined(_ILI_HORIZONTAL_DIRECTION_) +#define X_WIDTH 272 +#define Y_WIDTH 480 +#else +#define X_WIDTH 480 +#define Y_WIDTH 272 +#endif +/* +TOUCH INT: 84 +*/ +#define IS_TOUCH_UP() gpio_get(TOUCH_INT_PIN) + +#define led_gpio 52 // led1指示 + +#define DUMMY 0x00 + +/* +7 6 - 4 3 2 1-0 +s A2-A0 MODE SER/DFR PD1-PD0 +*/ +/* bit[1:0] power-down */ +#define POWER_MODE0 (0) /* Power-Down Between Conversions. When */ + /* each conversion is finished, the converter */ + /* enters a low-power mode. At the start of the */ + /* next conversion, the device instantly powers up */ + /* to full power. There is no need for additional */ + /* delays to ensure full operation, and the very first */ + /* conversion is valid. The Y? switch is on when in */ + /* power-down.*/ +#define POWER_MODE1 (1) /* Reference is off and ADC is on. */ +#define POWER_MODE2 (2) /* Reference is on and ADC is off. */ +#define POWER_MODE3 (3) /* Device is always powered. Reference is on and */ + /* ADC is on. */ +/* bit[2] SER/DFR */ +#define DIFFERENTIAL (0<<2) +#define SINGLE_ENDED (1<<2) +/* bit[3] mode */ +#define MODE_12BIT (0<<3) +#define MODE_8BIT (1<<3) +/* bit[6:4] differential mode */ +#define MEASURE_X (((1<<2) | (0<<1) | (1<<0))<<4) +#define MEASURE_Y (((0<<2) | (0<<1) | (1<<0))<<4) +#define MEASURE_Z1 (((0<<2) | (1<<1) | (1<<0))<<4) +#define MEASURE_Z2 (((1<<2) | (0<<1) | (0<<0))<<4) +/* bit[7] start */ +#define START (1<<7) + +/* X Y change. */ +#define TOUCH_MSR_X (START | MEASURE_X | MODE_12BIT | DIFFERENTIAL | POWER_MODE0) +#define TOUCH_MSR_Y (START | MEASURE_Y | MODE_12BIT | DIFFERENTIAL | POWER_MODE0) + + +/* 以下定义XPT2046 的触摸屏位置*/ +#if defined(_ILI_HORIZONTAL_DIRECTION_) +#define MIN_X_DEFAULT 2047 +#define MAX_X_DEFAULT 47 +#define MIN_Y_DEFAULT 102 +#define MAX_Y_DEFAULT 1939 +#else +#define MIN_X_DEFAULT 47 +#define MAX_X_DEFAULT 2047 +#define MIN_Y_DEFAULT 1939 +#define MAX_Y_DEFAULT 102 +#endif + + + +#define SAMP_CNT 8 //the adc array size +#define SAMP_CNT_DIV2 4 //the middle of the adc array +#define SH 10 // Valve value + + +/*宏定义 */ +#define TOUCH_SPI_X SPI1 +#define TOUCH_INT_PIN 84 +#define TOUCH_CS_PIN 49 +#define TOUCH_SCK_PIN 46 +#define TOUCH_MISO_PIN 47 +#define TOUCH_MOSI_PIN 48 + + +/*创建结构体将需要用到的东西进行打包*/ +struct rtgui_touch_device +{ + struct rt_device parent; /* 用于注册设备*/ + + rt_uint16_t x, y; /* 记录读取到的位置值 */ + + rt_bool_t calibrating; /* 触摸校准标志 */ + rt_touch_calibration_func_t calibration_func;/* 触摸函数 函数指针 */ + + rt_uint16_t min_x, max_x; /* 校准后 X 方向最小 最大值 */ + rt_uint16_t min_y, max_y; /* 校准后 Y 方向最小 最大值 */ + + struct rt_spi_device * spi_device; /* SPI 设备 用于通信 */ + struct rt_event event; /* 事件同步,用于“笔中断” */ +}; +static struct rtgui_touch_device *touch = RT_NULL; + +static rt_err_t touch_send_then_recv(struct rt_spi_device *device, + const void *send_buf, + rt_size_t send_length, + void *recv_buf, + rt_size_t recv_length) +{ + rt_err_t result; + struct rt_spi_message message; + rt_uint8_t dummy[128] ; + + rt_memset(dummy, DUMMY, sizeof(dummy)); + + RT_ASSERT(device != RT_NULL); + RT_ASSERT(device->bus != RT_NULL); + + result = rt_mutex_take(&(device->bus->lock), RT_WAITING_FOREVER); + if (result == RT_EOK) + { + if (device->bus->owner != device) + { + /* not the same owner as current, re-configure SPI bus */ + result = device->bus->ops->configure(device, &device->config); + if (result == RT_EOK) + { + /* set SPI bus owner */ + device->bus->owner = device; + } + else + { + /* configure SPI bus failed */ + result = -RT_EIO; + goto __exit; + } + } + + /* send data */ + message.send_buf = send_buf; + message.recv_buf = RT_NULL; + message.length = send_length; + message.cs_take = 1; + message.cs_release = 0; + message.next = RT_NULL; + + result = device->bus->ops->xfer(device, &message); + if (result == 0) + { + result = -RT_EIO; + goto __exit; + } + + /* recv data */ + message.send_buf = dummy; + message.recv_buf = recv_buf; + message.length = recv_length; + message.cs_take = 0; + message.cs_release = 1; + message.next = RT_NULL; + + result = device->bus->ops->xfer(device, &message); + if (result == 0) + { + result = -RT_EIO; + goto __exit; + } + + result = RT_EOK; + } + else + { + return -RT_EIO; + } + +__exit: + rt_mutex_release(&(device->bus->lock)); + + return result; +} + + +static void rtgui_touch_calculate(void) +{ + if (touch != RT_NULL) + { + /* read touch */ + { + rt_uint8_t i, j, k, min; + rt_uint16_t temp; + rt_uint16_t tmpxy[2][SAMP_CNT]; + rt_uint8_t send_buffer[1]; + rt_uint8_t recv_buffer[2]; + for(i=0; ispi_device, send_buffer, 1, recv_buffer, 2); + rt_kprintf("touch x: %d ",(recv_buffer[0]*256|recv_buffer[1])>>4); +#if defined(_ILI_HORIZONTAL_DIRECTION_) + tmpxy[1][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; + tmpxy[1][i] >>= 4; +#else + tmpxy[0][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; + tmpxy[0][i] >>=4; + +#endif + send_buffer[0] = TOUCH_MSR_Y; + touch_send_then_recv(touch->spi_device, send_buffer, 1, recv_buffer, 2); + rt_kprintf("touch y: %d \n",(recv_buffer[0]*256|recv_buffer[1])>>4); + +#if defined(_ILI_HORIZONTAL_DIRECTION_) + tmpxy[0][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; + tmpxy[0][i] >>= 4; +#else + tmpxy[1][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; + tmpxy[1][i] >>= 4; +#endif + } + /*再次打开触摸中断*/ + send_buffer[0] = 1 << 7; + touch_send_then_recv(touch->spi_device, send_buffer, 1, recv_buffer, 2); + touch_send_then_recv(touch->spi_device, send_buffer, 1, recv_buffer, 2); + /* calculate average */ + { + rt_uint32_t total_x = 0; + rt_uint32_t total_y = 0; + for(k=0; k<2; k++) + { + // sorting the ADC value + for(i=0; i tmpxy[k][j]) + min=j; + } + temp = tmpxy[k][i]; + tmpxy[k][i] = tmpxy[k][min]; + tmpxy[k][min] = temp; + } + //check value for Valve value + if((tmpxy[k][SAMP_CNT_DIV2+1]-tmpxy[k][SAMP_CNT_DIV2-2]) > SH) + { + return; + } + } + total_x=tmpxy[0][SAMP_CNT_DIV2-2]+tmpxy[0][SAMP_CNT_DIV2-1]+tmpxy[0][SAMP_CNT_DIV2]+tmpxy[0][SAMP_CNT_DIV2+1]; + total_y=tmpxy[1][SAMP_CNT_DIV2-2]+tmpxy[1][SAMP_CNT_DIV2-1]+tmpxy[1][SAMP_CNT_DIV2]+tmpxy[1][SAMP_CNT_DIV2+1]; + //calculate average value + touch->x=total_x>>2; + touch->y=total_y>>2; + rt_kprintf("touch->x:%d touch->y:%d\r\n", touch->x, touch->y); + } /* calculate average */ + } /* read touch */ + + /* if it's not in calibration status */ + /*触摸值缩放*/ + if (touch->calibrating != RT_TRUE) + { + if (touch->max_x > touch->min_x) + { + touch->x = (touch->x - touch->min_x) * X_WIDTH/(touch->max_x - touch->min_x); + } + else + { + touch->x = (touch->min_x - touch->x) * X_WIDTH/(touch->min_x - touch->max_x); + } + + if (touch->max_y > touch->min_y) + { + touch->y = (touch->y - touch->min_y) * Y_WIDTH /(touch->max_y - touch->min_y); + } + else + { + touch->y = (touch->min_y - touch->y) * Y_WIDTH /(touch->min_y - touch->max_y); + } + } + } +} +#include "ls1c_regs.h" +#define TOUCH_INT_EN __REG32(LS1C_INT4_EN) +rt_inline void touch_int_cmd(rt_bool_t NewState) +{ + if(NewState == RT_TRUE) + { + //TOUCH_INT_EN |= (1<<(TOUCH_INT_PIN-64)); + reg_set_one_bit(LS1C_INT4_EN, 1<<(TOUCH_INT_PIN-64)); + } + else + { + //TOUCH_INT_EN &=(~ (1<<(TOUCH_INT_PIN-64))); + reg_clr_one_bit(LS1C_INT4_EN, 1<<(TOUCH_INT_PIN-64)); + } + +} + +void ls1c_touch_irqhandler(void) /* TouchScreen */ +{ + if(gpio_get(TOUCH_INT_PIN)==0) + { + /* 触摸屏按下后操作 */ + if (gpio_level_low == gpio_get(led_gpio)) + gpio_set(led_gpio, gpio_level_high); + else + gpio_set(led_gpio, gpio_level_low); + touch_int_cmd(RT_FALSE); + rt_event_send(&touch->event, 1); + } +} + +/*管脚初始化,配置中断打开SPI1 CS0 设备*/ +rt_inline void touch_init(void) +{ + unsigned int touch_int_gpio = TOUCH_INT_PIN; // 触摸屏中断 + int touch_irq = LS1C_GPIO_TO_IRQ(touch_int_gpio); + + // 初始化按键中断 + gpio_set_irq_type(touch_int_gpio, IRQ_TYPE_EDGE_FALLING); + rt_hw_interrupt_install(touch_irq, ls1c_touch_irqhandler, RT_NULL, "touch"); + rt_hw_interrupt_umask(touch_irq); + gpio_init(touch_int_gpio, gpio_mode_input); + + // 初始化led + gpio_init(led_gpio, gpio_mode_output); + gpio_set(led_gpio, gpio_level_high); +} + + +/* RT-Thread Device Interface */ +static rt_err_t rtgui_touch_init (rt_device_t dev) +{ + rt_uint8_t send; + rt_uint8_t recv_buffer[2]; + struct rtgui_touch_device * touch_device = (struct rtgui_touch_device *)dev; + + touch_init(); + rt_kprintf("touch_init ...\n"); + send = START | DIFFERENTIAL | POWER_MODE0; + touch_send_then_recv(touch->spi_device, &send, 1, recv_buffer, 2); + + return RT_EOK; +} + +static rt_err_t rtgui_touch_control (rt_device_t dev, int cmd, void *args) +{ + switch (cmd) + { + case RT_TOUCH_CALIBRATION: + touch->calibrating = RT_TRUE; + touch->calibration_func = (rt_touch_calibration_func_t)args; + break; + + case RT_TOUCH_NORMAL: + touch->calibrating = RT_FALSE; + break; + + case RT_TOUCH_CALIBRATION_DATA: + { + struct calibration_data* data; + data = (struct calibration_data*) args; + + //update + touch->min_x = data->min_x; + touch->max_x = data->max_x; + touch->min_y = data->min_y; + touch->max_y = data->max_y; + } + break; + } + + return RT_EOK; +} + +void _set_mouse_position(rt_uint32_t X, rt_uint32_t Y) +{} +static void touch_thread_entry(void *parameter) +{ + rt_bool_t touch_down = RT_FALSE; + rt_uint32_t event_value; + struct rtgui_event_mouse emouse; + static struct _touch_previous + { + rt_uint32_t x; + rt_uint32_t y; + } touch_previous; + + RTGUI_EVENT_MOUSE_BUTTON_INIT(&emouse); + emouse.wid = RT_NULL; + + while(1) + { + /* 接收到触摸中断事件 */ + if(rt_event_recv(&touch->event, + 1, + RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR, + 100, + &event_value) + == RT_EOK) + { + while(1) + { + if (IS_TOUCH_UP()) + { + /* 触摸笔抬起 */ + /* touch up */ + emouse.button = (RTGUI_MOUSE_BUTTON_LEFT |RTGUI_MOUSE_BUTTON_UP); + + /* use old value */ + emouse.x = touch->x; + emouse.y = touch->y; + + if(touch_down != RT_TRUE) + { + touch_int_cmd(RT_TRUE); + break; + } + + if ((touch->calibrating == RT_TRUE) && (touch->calibration_func != RT_NULL)) + { + /* 触摸校准处理 */ + /* callback function */ + touch->calibration_func(emouse.x, emouse.y); + + } + else + { + /* 向ui发送触摸坐标 */ + rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse)); + } + rt_kprintf("touch up: (%d, %d)\n", emouse.x, emouse.y); + + /* clean */ + touch_previous.x = touch_previous.y = 0; + touch_down = RT_FALSE; + + touch_int_cmd(RT_TRUE); + break; + } /* touch up */ + else /* touch down or move */ + { + if(touch_down == RT_FALSE) + { + rt_thread_delay(RT_TICK_PER_SECOND / 10); + } + else + { + rt_thread_delay(5); + } + + if(IS_TOUCH_UP()) continue; + + /* calculation */ + rtgui_touch_calculate(); + + /* send mouse event */ + emouse.parent.type = RTGUI_EVENT_MOUSE_BUTTON; + emouse.parent.sender = RT_NULL; + + emouse.x = touch->x; + emouse.y = touch->y; + _set_mouse_position(emouse.x, emouse.y); + /* 光标跟随 */ + /* init mouse button */ + emouse.button = (RTGUI_MOUSE_BUTTON_LEFT |RTGUI_MOUSE_BUTTON_DOWN); + + /* send event to server */ + if (touch->calibrating != RT_TRUE) + { +#define previous_keep 8 + /* filter. */ + if((touch_previous.x > touch->x + previous_keep) + || (touch_previous.x < touch->x - previous_keep) + || (touch_previous.y > touch->y + previous_keep) + || (touch_previous.y < touch->y - previous_keep)) + { + touch_previous.x = touch->x; + touch_previous.y = touch->y; + /* 向ui发送触摸坐标 */ + rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse)); + if(touch_down == RT_FALSE) + { + touch_down = RT_TRUE; + rt_kprintf("touch down: (%d, %d)\n", emouse.x, emouse.y); + } + else + { + rt_kprintf("touch motion: (%d, %d)\n", emouse.x, emouse.y); + } + } + } + else + { + touch_down = RT_TRUE; + } + } /* touch down or move */ + } /* read touch */ + } /* event recv */ + } /* thread while(1) */ +} + + +rt_err_t rtgui_touch_hw_init(const char * spi_device_name) +{ + rt_uint32_t arg[2]; + struct rt_device * spi_device; + struct rt_thread * touch_thread; + rt_err_t err; + + rt_kprintf("spi1 cs0 start...\n"); + spi_device = rt_device_find("spi10"); + if(spi_device == RT_NULL) + { + rt_kprintf("Did not find spi1, exit thread....\n"); + return; + } + err = rt_device_open(spi_device, RT_DEVICE_OFLAG_RDWR); + if(err != RT_EOK) + { + rt_kprintf("Open spi1 failed %08X, exit thread....\n", err); + return; + } + + /* config spi */ + { + struct rt_spi_configuration cfg; + cfg.data_width = 8; + cfg.mode = RT_SPI_MODE_0; + cfg.max_hz = 200 * 1000; /* 200K */ + rt_spi_configure((struct rt_spi_device *)spi_device, &cfg); + } + + touch = (struct rtgui_touch_device*)rt_malloc (sizeof(struct rtgui_touch_device)); + if (touch == RT_NULL) return RT_ENOMEM; /* no memory yet */ + + /* clear device structure */ + rt_memset(&(touch->parent), 0, sizeof(struct rt_device)); + + rt_event_init(&touch->event, "touch", RT_IPC_FLAG_FIFO); + + touch->spi_device = (struct rt_spi_device *)spi_device; + touch->calibrating = false; + + touch->min_x = MIN_X_DEFAULT; + touch->max_x = MAX_X_DEFAULT; + touch->min_y = MIN_Y_DEFAULT; + touch->max_y = MAX_Y_DEFAULT; + + /* init device structure */ + touch->parent.type = RT_Device_Class_Miscellaneous; + touch->parent.init = rtgui_touch_init; + touch->parent.control = rtgui_touch_control; + touch->parent.user_data = RT_NULL; + + /* register touch device to RT-Thread */ + rt_device_register(&(touch->parent), "touch", RT_DEVICE_FLAG_RDWR); + + + touch_thread = rt_thread_create("touch_thread", + touch_thread_entry, RT_NULL, + 4096, RTGUI_SVR_THREAD_PRIORITY-1, 1); + if (touch_thread != RT_NULL) rt_thread_startup(touch_thread); + + rt_device_init((rt_device_t)touch); + return RT_EOK; +} + +#endif diff --git a/bsp/loongson/ls1cdev/drivers/touch.h b/bsp/loongson/ls1cdev/drivers/touch.h new file mode 100644 index 0000000000..5dac833510 --- /dev/null +++ b/bsp/loongson/ls1cdev/drivers/touch.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-12-30 Sundm75 first version + */ + #ifndef __TOUCH_H__ +#define __TOUCH_H__ + +#define RT_TOUCH_NORMAL 0 +#define RT_TOUCH_CALIBRATION_DATA 1 +#define RT_TOUCH_CALIBRATION 2 + +//#define SAVE_CALIBRATION + + +rt_uint16_t touch_read_x(void); +rt_uint16_t touch_read_y(void); +void touch_config(void); + + +rt_err_t rtgui_touch_hw_init(const char * spi_device_name); + +#endif + + diff --git a/bsp/loongson/ls1cdev/libraries/SConscript b/bsp/loongson/ls1cdev/libraries/SConscript new file mode 100644 index 0000000000..78797ef273 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/SConscript @@ -0,0 +1,10 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +CPPPATH = [cwd] + +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_can.c b/bsp/loongson/ls1cdev/libraries/ls1c_can.c new file mode 100644 index 0000000000..437ef3ba84 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_can.c @@ -0,0 +1,447 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-01-06 sundm75 first version + */ + +#include "ls1c.h" +#include "ls1c_public.h" +#include "ls1c_can.h" +#include "ls1c_delay.h" + +unsigned char set_reset_mode(CAN_TypeDef* CANx) +{ + unsigned char status; + int i; + + /*检查复位标志*/ + status = CANx->MOD; + + /* 关闭中断 */ + CANx->IER = 0x00; + + for (i = 0; i < 100; i++) + { + if((status & CAN_Mode_RM) == CAN_Mode_RM) + return 1; + + /* 设置复位*/ + CANx->MOD |= ((unsigned char)CAN_Mode_RM); + + /*延时*/ + delay_us(10); + + /*检查复位标志*/ + status = CANx->MOD; + } + printf("\r\nSetting SJA1000 into reset mode failed!\r\n"); + return 0; +} + +static unsigned char set_normal_mode(CAN_TypeDef* CANx) +{ + unsigned char status; + int i; + + /*检查复位标志*/ + status = CANx->MOD; + + for (i = 0; i < 100; i++) + { + if((status & CAN_Mode_RM) != CAN_Mode_RM) + { + /*开所有中断 (总线错误中断不开)*/ + CANx->IER |= (~(unsigned char)CAN_IR_BEI); + return 1; + } + /* 设置正常工作模式*/ + CANx->MOD &= (~(unsigned char) CAN_Mode_RM); + /*延时*/ + delay_us(10); + status = CANx->MOD; + } + printf("\r\nSetting SJA1000 into normal mode failed!\r\n"); + return 0; +} + +unsigned char set_start(CAN_TypeDef* CANx) +{ + /*复位TX错误计数器*/ + CANx->TXERR = 0; + /*复位RX错误计数器*/ + CANx->RXERR = 0; + /*时钟分频寄存器: PeliCAN模式; CBP=1,中止输入比较器, RX0激活*/ + CANx->CDR = 0xC0; + + return set_normal_mode(CANx); +} + +unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct) +{ + unsigned char InitStatus = CAN_InitStatus_Failed; + unsigned long wait_ack = 0x00000000; + unsigned char status; + + status = CANx->MOD; + if( status == 0xFF) + { + printf("\n Probe can0 failed \r\n"); + return CAN_InitStatus_Failed; + } + + /* 进入复位模式 */ + InitStatus = set_reset_mode(CANx); + + if((CAN_InitStruct->CAN_Mode & CAN_Mode_SM) == CAN_Mode_SM) + { + /* 睡眠模式 1: 睡眠 0: 唤醒*/ + CANx->MOD|= (unsigned char)CAN_Mode_SM; + } + else + { + CANx->MOD&=~ (unsigned char)CAN_Mode_SM; + } + + if((CAN_InitStruct->CAN_Mode & CAN_Mode_LOM) == CAN_Mode_LOM) + { + /*只听模式 1:只听 0:正常 */ + CANx->MOD|= (unsigned char)CAN_Mode_LOM; + } + else + { + CANx->MOD&=~ (unsigned char)CAN_Mode_LOM; + } + + if((CAN_InitStruct->CAN_Mode & CAN_Mode_AFM) == CAN_Mode_AFM) + { + /*单滤波模式 1:单 0: 双*/ + CANx->MOD |= (unsigned char)CAN_Mode_AFM; + } + else + { + CANx->MOD&=~ (unsigned char)CAN_Mode_AFM; + } + + if((CAN_InitStruct->CAN_Mode & CAN_Mode_STM) == CAN_Mode_STM) + { + /*自检测模式 1:自检测 0:正常 */ + CANx->MOD |= (unsigned char)CAN_Mode_STM; + } + else + { + CANx->MOD&=~ (unsigned char)CAN_Mode_STM; + } + + /* 配置时钟频率 */ + CANx->BTR0 = (( unsigned char )( unsigned char )CAN_InitStruct->CAN_Prescaler -1) | \ + (unsigned char)CAN_InitStruct->CAN_SJW << 6; + + CANx->BTR1 = ((unsigned char)CAN_InitStruct->CAN_BS1) | \ + ((unsigned char)CAN_InitStruct->CAN_BS2 << 4) | \ + ((unsigned char)CAN_InitStruct->CAN_SJW<<7); + + /* 进入工作模式 */ + set_start(CANx); + + /* 返回初始化结果 */ + return InitStatus; +} + +void CAN_FilterInit(CAN_TypeDef* CANx, CAN_FilterInitTypeDef * CAN_FilterInitStruct) +{ + unsigned long rtr; + unsigned long fcase; + unsigned long ide; + unsigned long thisid, thisid1, thisid2; + unsigned long thismask, thismask1, thismask2; + unsigned long firstdata; + unsigned long datamask; + unsigned char CAN_FilterId0, CAN_FilterId1, CAN_FilterId2, CAN_FilterId3 ; + unsigned char CAN_FilterMaskId0, CAN_FilterMaskId1, CAN_FilterMaskId2, CAN_FilterMaskId3; + + thisid = CAN_FilterInitStruct->ID; + thismask = CAN_FilterInitStruct->IDMASK; + thisid1 = (CAN_FilterInitStruct->ID & 0xFFFF0000 )>>16; + thismask1 = (CAN_FilterInitStruct->IDMASK & 0xFFFF0000 )>>16; + thisid2 = (CAN_FilterInitStruct->ID & 0x0000FFFF ); + thismask2 = ( CAN_FilterInitStruct->IDMASK& 0x0000FFFF ); + rtr = CAN_FilterInitStruct->RTR; + ide = CAN_FilterInitStruct->IDE; + firstdata = CAN_FilterInitStruct->First_Data; + datamask = CAN_FilterInitStruct->Data_Mask; + fcase = CAN_FilterInitStruct->MODE; + + if(ide == 0)//标准帧 + { + if(fcase == 0)// 0- 双滤波器模式 + { + CAN_FilterId0 = thisid1>>3; + CAN_FilterMaskId0 = thismask1>>3; + CAN_FilterId1 = thisid1<<5 | firstdata>>4| rtr<<4; + CAN_FilterMaskId1 = thismask1<<4 | datamask>>4 ; + CAN_FilterId2 = thisid2 >> 3; + CAN_FilterMaskId2 = thismask2 >>3; + CAN_FilterId3 = firstdata & 0x0F | thisid2 <<5 | rtr<<4; + CAN_FilterMaskId3 = datamask <<4 ; + } + else if(fcase == 1)// 1-单滤波器模式 + { + CAN_FilterId0 = thisid>>3; + CAN_FilterMaskId0 = thismask>>3; + CAN_FilterId1 = thisid<<5 | rtr<<4; + CAN_FilterMaskId1 = thismask<<5 ; + CAN_FilterMaskId1 |= 0x0F ; + CAN_FilterId2 = 0x00; + CAN_FilterMaskId2 = 0xFF; + CAN_FilterId3 = 0x00; + CAN_FilterMaskId3 = 0xFF ; + } + } + else if(ide == 1)//扩展帧 + { + if(fcase == 0)// 0- 双滤波器模式 + { + CAN_FilterId0 = thisid1>>8; + CAN_FilterMaskId0 = thismask1>>8; + CAN_FilterId1 = thisid1 ; + CAN_FilterMaskId1 = thismask1 ; + CAN_FilterId2 = thisid2>>8; + CAN_FilterMaskId2 = thismask2>>8; + CAN_FilterId3 = thisid2 ; + CAN_FilterMaskId3 = thismask2 ; + } + else if(fcase == 1)// 1-单滤波器模式 + { + CAN_FilterId0 = thisid>>21; + CAN_FilterMaskId0 = thismask>>21; + CAN_FilterId1 = thisid>>13 ; + CAN_FilterMaskId1 = thismask>>13 ; + CAN_FilterId2 = thisid>>5; + CAN_FilterMaskId2 = thismask>>5; + CAN_FilterId3 = thisid<<3 | rtr<<2; + CAN_FilterMaskId3 = thismask<<3; + CAN_FilterMaskId3 |= 0x03; + } + } + + /* 进入复位模式 */ + set_reset_mode(CANx); + + if(fcase == 1)// 1-单滤波器模式 + { + /*单滤波模式 */ + CANx->MOD |= (unsigned char)CAN_Mode_AFM; + } + else if(fcase == 1)// 0- 双滤波器模式 + { + /*双滤波模式 */ + CANx->MOD &=(~ (unsigned char) CAN_Mode_AFM); + } + + CANx->IDE_RTR_DLC = CAN_FilterId0; + CANx->ID[0] = CAN_FilterId1; + CANx->ID[1] = CAN_FilterId2; + CANx->ID[2] = CAN_FilterId3; + CANx->ID[3] = CAN_FilterMaskId0; + CANx->BUF[0] = CAN_FilterMaskId1; + CANx->BUF[1] = CAN_FilterMaskId2; + CANx->BUF[2] = CAN_FilterMaskId3; + /* 进入工作模式 */ + set_start(CANx); +} + +unsigned char CAN_SetBps(CAN_TypeDef* CANx, Ls1c_CanBPS_t Bps) +{ + unsigned char InitStatus = CAN_InitStatus_Failed; + unsigned char CAN_Prescaler, CAN_BS1, CAN_BS2, CAN_SJW; + CAN_SJW = CAN_SJW_1tq; + /* 进入复位模式 */ + InitStatus = set_reset_mode(CANx); + if( InitStatus == CAN_InitStatus_Failed) + return CAN_InitStatus_Failed; + + /* BaudRate= f(APB)/((1+BS1+BS2)(SJW*2*Prescaler))=126000000/[(1+7+2)*1*2*63]=100000=100K*/ + /* BPS PRE BS1 BS2 最低40K + 1M 9 4 2 + 800K 8 7 2 + 500K 9 11 2 + 250K 36 4 2 + 125K 36 11 2 + 100K 63 7 2 + 50K 63 16 3` + 40K 63 16 8 + */ + switch (Bps) + { + case LS1C_CAN1MBaud: + CAN_Prescaler = 9; + CAN_BS1 = CAN_BS1_4tq; + CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN800kBaud: + CAN_Prescaler = 8; + CAN_BS1 = CAN_BS1_7tq; + CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN500kBaud: + CAN_Prescaler = 9; + CAN_BS1 = CAN_BS1_11tq; + CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN250kBaud: + CAN_Prescaler = 36; + CAN_BS1 = CAN_BS1_4tq; + CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN125kBaud: + CAN_Prescaler = 36; + CAN_BS1 = CAN_BS1_11tq; + CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN100kBaud: + CAN_Prescaler = 63; + CAN_BS1 = CAN_BS1_7tq; + CAN_BS2 = CAN_BS2_2tq; + break; + case LS1C_CAN50kBaud: + CAN_Prescaler = 63; + CAN_BS1 = CAN_BS1_16tq; + CAN_BS2 = CAN_BS2_3tq; + break; + case LS1C_CAN40kBaud: + CAN_Prescaler = 63; + CAN_BS1 = CAN_BS1_16tq; + CAN_BS2 = CAN_BS2_8tq; + break; + default: //100K + CAN_Prescaler = 63; + CAN_BS1 = CAN_BS1_7tq; + CAN_BS2 = CAN_BS2_2tq; + break; + } + /* 配置时钟频率 */ + CANx->BTR0 = (( unsigned char )CAN_Prescaler -1) | \ + (unsigned char)CAN_SJW << 6; + + CANx->BTR1 = ((unsigned char)CAN_BS1) | \ + ((unsigned char)CAN_BS2 << 4) | \ + ((unsigned char)CAN_SJW<<7); + + /* 进入工作模式 */ + set_start(CANx); + /* 返回初始化结果 */ + return CAN_InitStatus_Failed; +} + + +unsigned char CAN_SetMode(CAN_TypeDef* CANx, unsigned char mode) +{ + unsigned char InitStatus = CAN_InitStatus_Failed; + unsigned long wait_ack = 0x00000000; + CAN_InitTypeDef CAN_InitStructure; + + /* 进入复位模式 */ + InitStatus = set_reset_mode(CANx); + if( InitStatus == CAN_InitStatus_Failed) + return CAN_InitStatus_Failed; + + switch( mode ) + { + case 0://正常 + CANx->MOD &= ~(unsigned char)CAN_Mode_STM; + CANx->MOD &= ~(unsigned char)CAN_Mode_LOM; + break; + case 1://只听 + CANx->MOD &= ~(unsigned char)CAN_Mode_STM; + CANx->MOD |= (unsigned char)CAN_Mode_LOM; + break; + case 2://回环 + CANx->MOD |= (unsigned char)CAN_Mode_STM; + CANx->MOD &= ~(unsigned char)CAN_Mode_LOM; + break; + case 3://只听回环 + CANx->MOD |= (unsigned char)CAN_Mode_STM; + CANx->MOD |= (unsigned char)CAN_Mode_LOM; + break; + } + /* 进入工作模式 */ + set_start(CANx); + + /* 返回初始化结果 */ + return CAN_InitStatus_Failed; + } + +unsigned char CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage) +{ + int i; + if (TxMessage->IDE == CAN_Id_Extended) + { + CANx->ID[0]= TxMessage ->ExtId>> 21; + CANx->ID[1]= TxMessage ->ExtId>> 13; + CANx->ID[2]= TxMessage ->ExtId>> 5; + CANx->ID[3]= TxMessage ->ExtId<<3; + CANx->IDE_RTR_DLC= (TxMessage ->IDE & 0x01) << 7 |\ + (TxMessage ->RTR & 0x01) << 6 |\ + (TxMessage ->DLC & 0x0F); + for( i=0;iDLC; i++) + { + CANx->BUF[i]= TxMessage->Data[i]; + } + } + else if (TxMessage->IDE ==CAN_Id_Standard) + { + CANx->ID[0]= TxMessage ->StdId>> 3; + CANx->ID[1]= TxMessage ->StdId<< 5; + CANx->IDE_RTR_DLC= (TxMessage ->IDE & 0x01) << 7 |\ + (TxMessage ->RTR & 0x01) << 6 |\ + (TxMessage ->DLC & 0x0F); + CANx->ID[2]= TxMessage ->Data[0]; + CANx->ID[3]= TxMessage ->Data[1]; + for( i=0;iDLC-2; i++) + { + CANx->BUF[i]= TxMessage->Data[i+2]; + } + } + CANx->CMR = CAN_CMR_TR ; +} + +void CAN_Receive(CAN_TypeDef* CANx, CanRxMsg* RxMessage) +{ + /* 获取 IDE */ + RxMessage->IDE = (CANx->IDE_RTR_DLC & 0x80)>>7; + /* 获取 RTR */ + RxMessage->RTR = (CANx->IDE_RTR_DLC & 0x40)>>4; + /* 获取 DLC */ + RxMessage->DLC= (CANx->IDE_RTR_DLC & 0x0F); + if (RxMessage->IDE == CAN_Id_Standard) + { + RxMessage->StdId = CANx->ID[0]<<3 |CANx->ID[1]>>5 ; + /* 获取数据 */ + RxMessage->Data[0] = (unsigned char)CANx->ID[2]; + RxMessage->Data[1] = (unsigned char)CANx->ID[3]; + RxMessage->Data[2] = (unsigned char)CANx->BUF[0]; + RxMessage->Data[3] = (unsigned char)CANx->BUF[1]; + RxMessage->Data[4] = (unsigned char)CANx->BUF[2]; + RxMessage->Data[5] = (unsigned char)CANx->BUF[3]; + RxMessage->Data[6] = (unsigned char)CANx->BUF[4]; + RxMessage->Data[7] = (unsigned char)CANx->BUF[5]; + } + else if (RxMessage->IDE == CAN_Id_Extended) + { + RxMessage->ExtId= CANx->ID[0]<<21 |CANx->ID[1]<<13|CANx->ID[2]<<5|CANx->ID[3]>>3 ; + /* 获取数据 */ + RxMessage->Data[0] = (unsigned char)CANx->BUF[0]; + RxMessage->Data[1] = (unsigned char)CANx->BUF[1]; + RxMessage->Data[2] = (unsigned char)CANx->BUF[2]; + RxMessage->Data[3] = (unsigned char)CANx->BUF[3]; + RxMessage->Data[4] = (unsigned char)CANx->BUF[4]; + RxMessage->Data[5] = (unsigned char)CANx->BUF[5]; + RxMessage->Data[6] = (unsigned char)CANx->BUF[6]; + RxMessage->Data[7] = (unsigned char)CANx->BUF[7]; + } +} + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_can.h b/bsp/loongson/ls1cdev/libraries/ls1c_can.h new file mode 100644 index 0000000000..b2b0f8efa8 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_can.h @@ -0,0 +1,212 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: (Pelican Mode) + * Date Author Notes + * 2018-01-06 sundm75 first version + */ + +#ifndef __OPENLOONGSON_CAN_H +#define __OPENLOONGSON_CAN_H + +#define CAN0 ( (CAN_TypeDef* )LS1C_REG_BASE_CAN0) +#define CAN1 ( (CAN_TypeDef* )LS1C_REG_BASE_CAN1) + +#define CAN_InitStatus_Failed ((unsigned char)0x00) /*!< CAN initialization failed */ +#define CAN_InitStatus_Success ((unsigned char)0x01) /*!< CAN initialization OK */ + +#define CAN_SJW_1tq ((unsigned char)0x00) /*!< 1 time quantum */ +#define CAN_SJW_2tq ((unsigned char)0x01) /*!< 2 time quantum */ +#define CAN_SJW_3tq ((unsigned char)0x02) /*!< 3 time quantum */ +#define CAN_SJW_4tq ((unsigned char)0x03) /*!< 4 time quantum */ + +#define CAN_BS1_1tq ((unsigned char)0x00) /*!< 1 time quantum */ +#define CAN_BS1_2tq ((unsigned char)0x01) /*!< 2 time quantum */ +#define CAN_BS1_3tq ((unsigned char)0x02) /*!< 3 time quantum */ +#define CAN_BS1_4tq ((unsigned char)0x03) /*!< 4 time quantum */ +#define CAN_BS1_5tq ((unsigned char)0x04) /*!< 5 time quantum */ +#define CAN_BS1_6tq ((unsigned char)0x05) /*!< 6 time quantum */ +#define CAN_BS1_7tq ((unsigned char)0x06) /*!< 7 time quantum */ +#define CAN_BS1_8tq ((unsigned char)0x07) /*!< 8 time quantum */ +#define CAN_BS1_9tq ((unsigned char)0x08) /*!< 9 time quantum */ +#define CAN_BS1_10tq ((unsigned char)0x09) /*!< 10 time quantum */ +#define CAN_BS1_11tq ((unsigned char)0x0A) /*!< 11 time quantum */ +#define CAN_BS1_12tq ((unsigned char)0x0B) /*!< 12 time quantum */ +#define CAN_BS1_13tq ((unsigned char)0x0C) /*!< 13 time quantum */ +#define CAN_BS1_14tq ((unsigned char)0x0D) /*!< 14 time quantum */ +#define CAN_BS1_15tq ((unsigned char)0x0E) /*!< 15 time quantum */ +#define CAN_BS1_16tq ((unsigned char)0x0F) /*!< 16 time quantum */ + +#define CAN_BS2_1tq ((unsigned char)0x00) /*!< 1 time quantum */ +#define CAN_BS2_2tq ((unsigned char)0x01) /*!< 2 time quantum */ +#define CAN_BS2_3tq ((unsigned char)0x02) /*!< 3 time quantum */ +#define CAN_BS2_4tq ((unsigned char)0x03) /*!< 4 time quantum */ +#define CAN_BS2_5tq ((unsigned char)0x04) /*!< 5 time quantum */ +#define CAN_BS2_6tq ((unsigned char)0x05) /*!< 6 time quantum */ +#define CAN_BS2_7tq ((unsigned char)0x06) /*!< 7 time quantum */ +#define CAN_BS2_8tq ((unsigned char)0x07) /*!< 8 time quantum */ + +#define CAN_Id_Standard 0 +#define CAN_Id_Extended 1 +#define CAN_RTR_DATA 0 +#define CAN_RTR_Remote 1 + +#define CAN_MODE_NORMAL 0 +#define CAN_MODE_LISEN 1 +#define CAN_MODE_LOOPBACK 2 +#define CAN_MODE_LOOPBACKANLISEN 3 + +/*!< CAN 控制状态寄存器 */ +/************************** CAN_MOD 寄存器位定义*******************************/ +#define CAN_Mode_RM ((unsigned char)0x01) /*!< 复位模式 */ +#define CAN_Mode_LOM ((unsigned char)0x02) /*!< 只听模式 1:只听 0:正常 */ +#define CAN_Mode_STM ((unsigned char)0x04) /*!< 正常工作模式1:自检测 0:正常 */ +#define CAN_Mode_AFM ((unsigned char)0x08) /*!< 单/双滤波模式 1:单 0: 双*/ +#define CAN_Mode_SM ((unsigned char)0x10) /*!< 睡眠模式1: 睡眠 0: 唤醒 */ + +/************************** CAN_CMR 寄存器位定义*******************************/ + #define CAN_CMR_TR ((unsigned char)0x01) /*!< 发送请求 1: 当前信息被发送 0: 空 */ + #define CAN_CMR_AT ((unsigned char)0x02) /*!< 中止发送 1: 等待发送的信息取消 0: 空缺 */ + #define CAN_CMR_RRB ((unsigned char)0x04) /*!< 释放接收缓冲器 1:释放 0: 无动作 */ + #define CAN_CMR_CDO ((unsigned char)0x08) /*!< 清除数据溢出 1:清除 0: 无动作 */ +//#define CAN_CMR_GTS ((unsigned char)0x10) /*!< STD模式< 睡眠: 1:进入睡眠 0: 唤醒 */ + #define CAN_CMR_SRR ((unsigned char)0x10) /*!< 自接收请求 1: 0: */ + #define CAN_CMR_EFF ((unsigned char)0x80) /*!< 扩展模式 1:扩展帧 0: 标准帧 */ + +/************************** CAN_SR 寄存器位定义********************************/ + #define CAN_SR_BBS ((unsigned char)0x01) /*!< 接收缓存器状态1: 满 0: 空 */ + #define CAN_SR_DOS ((unsigned char)0x02) /*!< 数据溢出状态 1: 溢出 0: 空缺 */ + #define CAN_SR_TBS ((unsigned char)0x04) /*!< 发送缓存器状态1: 释放 0: 锁定 */ + #define CAN_SR_TCS ((unsigned char)0x08) /*!< 发送完毕状态1: 完毕 0: 未完毕 */ + #define CAN_SR_RS ((unsigned char)0x10) /*!< 接收状态1: 接收 0: 空闲 */ + #define CAN_SR_TS ((unsigned char)0x20) /*!< 发送状态1: 发送 0: 空闲*/ + #define CAN_SR_ES ((unsigned char)0x40) /*!< 出错状态1:出错 0: 正常 */ + #define CAN_SR_BS ((unsigned char)0x80) /*!< 总线状态1: 关闭 0: 开启 */ + +/************************** CAN_IR 中断寄存器位定义****************************/ + #define CAN_IR_RI ((unsigned char)0x01) /*!< 接收中断 */ + #define CAN_IR_TI ((unsigned char)0x02) /*!< 发送中断 */ + #define CAN_IR_EI ((unsigned char)0x04) /*!< 错误中断 */ + #define CAN_IR_DOI ((unsigned char)0x08) /*!< 数据溢出中断 */ + #define CAN_IR_WUI ((unsigned char)0x10) /*!< 唤醒中断 */ + #define CAN_IR_EPI ((unsigned char)0x20) /*!< 错误消极中断 */ + #define CAN_IR_ALI ((unsigned char)0x40) /*!< 仲裁丢失中断 */ + #define CAN_IR_BEI ((unsigned char)0x80) /*!< 总线错误中断 */ + +/************************* CAN_IER 中断使能寄存器位定义************************/ + #define CAN_IER_RIE ((unsigned char)0x01) /*!< 接收中断使能 */ + #define CAN_IER_TIE ((unsigned char)0x02) /*!< 发送中断使能 */ + #define CAN_IER_EIE ((unsigned char)0x04) /*!< 错误中断使能 */ + #define CAN_IER_DOIE ((unsigned char)0x08) /*!< 数据溢出中断使能 */ + #define CAN_IER_WUIE ((unsigned char)0x10) /*!< 唤醒中断使能 */ + #define CAN_IER_EPIE ((unsigned char)0x20) /*!< 错误消极中断使能 */ + #define CAN_IER_ALIE ((unsigned char)0x40) /*!< 仲裁丢失中断使能 */ + #define CAN_IER_BEIE ((unsigned char)0x80) /*!< 总线错误中断使能 */ + +typedef enum +{ + LS1C_CAN1MBaud=0, // 1 MBit/sec + LS1C_CAN800kBaud, // 800 kBit/sec + LS1C_CAN500kBaud, // 500 kBit/sec + LS1C_CAN250kBaud, // 250 kBit/sec + LS1C_CAN125kBaud, // 125 kBit/sec + LS1C_CAN100kBaud, // 100 kBit/sec + LS1C_CAN50kBaud, // 50 kBit/sec + LS1C_CAN40kBaud, // 40 kBit/sec +}Ls1c_CanBPS_t; + +typedef struct +{ + unsigned char MOD; + unsigned char CMR; + unsigned char SR; + unsigned char IR; + unsigned char IER; + unsigned char reserved0; + unsigned char BTR0; + unsigned char BTR1; + unsigned char OCR; + unsigned char reserved[2]; + unsigned char ALC; + unsigned char ECC ; + unsigned char EMLR; + unsigned char RXERR; + unsigned char TXERR; + unsigned char IDE_RTR_DLC; + unsigned char ID[4]; + unsigned char BUF[8]; + unsigned char RMCR; + unsigned char CDR; +} CAN_TypeDef; + +typedef struct +{ + unsigned char CAN_Prescaler; /* 波特率分频系数1 to 31. */ + unsigned char CAN_Mode; /*0x10:睡眠0x08:单,双滤波 0x40:正常工作0x20:只听 0x01:复位*/ + unsigned char CAN_SJW; /*同步跳转宽度 */ + unsigned char CAN_BS1; /*时间段1计数值*/ + unsigned char CAN_BS2; /*时间段2计数值*/ + +} CAN_InitTypeDef; + +typedef struct +{ + unsigned char IDE; /*0: 使用标准标识符1: 使用扩展标识符*/ + unsigned char RTR; /*0: 数据帧 1: 远程帧*/ + unsigned char MODE; /* 0- 双滤波器模式;1-单滤波器模式*/ + unsigned long First_Data; /*双滤波器模式下信息第一个数据字节*/ + unsigned long Data_Mask; /*双滤波器模式下信息第一个数据字节屏蔽*/ + unsigned long ID; /*验收代码*/ + /* + 双滤波器- 扩展帧: 2个滤波器的前16位,分别放在ID 的前16位和 ID的后16位. + 双滤波器- 标准帧: 2个滤波器的11位,分别放在ID 的前16位和 ID的后16位,第1个滤波器同时使用First_Data和Data_Mask + 单滤波器- 扩展帧: 使用29位, 放在ID 的后29位. + 单滤波器- 标准帧: 使用11位, 放在ID 的后11位. + */ + unsigned long IDMASK; /*验收屏蔽*/ +} CAN_FilterInitTypeDef; + +typedef struct +{ + unsigned long StdId; /* 11位ID*/ + unsigned long ExtId; /*29位ID**/ + unsigned char IDE; /*IDE: 标识符选择 + 该位决定发送邮箱中报文使用的标识符类型 + 0: 使用标准标识符 + 1: 使用扩展标识符*/ + unsigned char RTR; /*远程发送请求 + 0: 数据帧 + 1: 远程帧*/ + unsigned char DLC; /*数据帧长度*/ + unsigned char Data[8]; /*8字节数据*/ +} CanRxMsg; + +typedef struct +{ + unsigned long StdId; /* 11位ID*/ + unsigned long ExtId; /*29位ID**/ + unsigned char IDE; /*IDE: 标识符选择 + 该位决定发送邮箱中报文使用的标识符类型 + 0: 使用标准标识符 + 1: 使用扩展标识符*/ + unsigned char RTR; /*远程发送请求 + 0: 数据帧 + 1: 远程帧*/ + unsigned char DLC; /*数据帧长度*/ + unsigned char Data[8]; /*8字节数据*/ +} CanTxMsg; + +unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct); +unsigned char CAN_SetBps(CAN_TypeDef* CANx, Ls1c_CanBPS_t Bps); +unsigned char CAN_SetMode(CAN_TypeDef* CANx, unsigned char mode); +void CAN_FilterInit(CAN_TypeDef* CANx, CAN_FilterInitTypeDef* CAN_FilterInitStruct); +unsigned char CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage); +void CAN_Receive(CAN_TypeDef* CANx, CanRxMsg* RxMessage); + +unsigned char set_reset_mode(CAN_TypeDef* CANx); +unsigned char set_start(CAN_TypeDef* CANx); + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_clock.c b/bsp/loongson/ls1cdev/libraries/ls1c_clock.c new file mode 100644 index 0000000000..1ae621cbbb --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_clock.c @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + + +#include "ls1c_regs.h" +#include "ls1c_public.h" + + +// 晶振的频率 +#define AHB_CLK (24000000) +#define APB_CLK (AHB_CLK) + + +// START_FREQ寄存器bits +#define M_PLL_SHIFT (8) +#define M_PLL (0xff << M_PLL_SHIFT) // PLL倍频系数的整数部分 +#define FRAC_N_SHIFT (16) +#define FRAC_N (0xff << FRAC_N_SHIFT) // PLL倍频系数的小数部分 +#define DIV_SDRAM_SHIFT (0) +#define DIV_SDRAM (0x3 << DIV_SDRAM_SHIFT) + +// CLK_DIV_PARAM寄存器bits +#define DIV_PIX_EN (0x1 << 31) +#define DIV_PIX (0x7f << 24) +#define DIV_CAM_EN (0x1 << 23) +#define DIV_CAM (0x7f << 16) +#define DIV_CPU_EN (0x1 << 15) +#define DIV_CPU (0x7f << 8) +#define DIV_PIX_VALID (0x1 << 5) +#define DIV_PIX_SEL (0x1 << 4) +#define DIV_CAM_VALID (0x1 << 3) +#define DIV_CAM_SEL (0x1 << 2) +#define DIV_CPU_VALID (0x1 << 1) +#define DIV_CPU_SEL (0x1 << 0) + +#define DIV_PIX_SHIFT (24) +#define DIV_CAM_SHIFT (16) +#define DIV_CPU_SHIFT (8) + + +/* + * 获取PLL频率 + * @ret PLL频率 + */ +unsigned long clk_get_pll_rate(void) +{ + unsigned int ctrl; + unsigned long pll_rate = 0; + + ctrl = reg_read_32((volatile unsigned int *)LS1C_START_FREQ); + pll_rate = (((ctrl & M_PLL) >> M_PLL_SHIFT) + ((ctrl & FRAC_N) >> FRAC_N_SHIFT)) * APB_CLK / 4; + + return pll_rate; +} + + +/* + * 获取CPU频率 + * @ret CPU频率 + */ +unsigned long clk_get_cpu_rate(void) +{ + unsigned long pll_rate, cpu_rate; + unsigned int ctrl; + + pll_rate = clk_get_pll_rate(); + ctrl = reg_read_32((volatile unsigned int *)LS1C_CLK_DIV_PARAM); + + // 选择时钟来源 + if (DIV_CPU_SEL & ctrl) // pll分频作为时钟信号 + { + if (DIV_CPU_EN & ctrl) + { + cpu_rate = pll_rate / ((ctrl & DIV_CPU) >> DIV_CPU_SHIFT); + } + else + { + cpu_rate = pll_rate / 2; + } + } + else // bypass模式,晶振作为时钟输入 + { + cpu_rate = APB_CLK; + } + + return cpu_rate; +} + + +/* + * 获取DDR频率 + * @ret DDR频率 + */ +unsigned long clk_get_ddr_rate(void) +{ + unsigned long cpu_rate = 0; + unsigned long ddr_rate = 0; + unsigned int ctrl; + + cpu_rate = clk_get_cpu_rate(); + ctrl = reg_read_32((volatile unsigned int *)LS1C_START_FREQ); + ctrl = (ctrl & DIV_SDRAM) >> DIV_SDRAM_SHIFT; + + switch (ctrl) + { + case 0: + ddr_rate = cpu_rate / 2; + break; + + case 1: + ddr_rate = cpu_rate / 4; + break; + + case 2: + case 3: + ddr_rate = cpu_rate / 3; + break; + } + + return ddr_rate; +} + + +/* + * 获取APB频率 + * @ret APB频率 + */ +unsigned long clk_get_apb_rate(void) +{ + return clk_get_ddr_rate(); +} + + +/* + * 获取DC频率 + * @ret DC频率 + */ +unsigned long clk_get_dc_rate(void) +{ + unsigned long pll_rate, dc_rate; + unsigned int ctrl; + + pll_rate = clk_get_pll_rate(); + ctrl = reg_read_32((volatile unsigned int *)LS1C_CLK_DIV_PARAM); + + dc_rate = pll_rate / ((ctrl & DIV_PIX) >> DIV_PIX_SHIFT); + + return dc_rate; +} + + + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_clock.h b/bsp/loongson/ls1cdev/libraries/ls1c_clock.h new file mode 100644 index 0000000000..3cacb7454a --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_clock.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + + +#ifndef __OPENLOONGSON_CLOCK_H +#define __OPENLOONGSON_CLOCK_H + + + +/* + * »ñȡPLLƵÂÊ + * @ret PLLƵÂÊ + */ +unsigned long clk_get_pll_rate(void); + + +/* + * »ñȡCPUƵÂÊ + * @ret CPUƵÂÊ + */ +unsigned long clk_get_cpu_rate(void); + + + +/* + * »ñȡDDRƵÂÊ + * @ret DDRƵÂÊ + */ +unsigned long clk_get_ddr_rate(void); + + +/* + * »ñȡAPBƵÂÊ + * @ret APBƵÂÊ + */ +unsigned long clk_get_apb_rate(void); + + +/* + * »ñȡDCƵÂÊ + * @ret DCƵÂÊ + */ +unsigned long clk_get_dc_rate(void); + + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_delay.c b/bsp/loongson/ls1cdev/libraries/ls1c_delay.c new file mode 100644 index 0000000000..418a310bf8 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_delay.c @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + + +#include "ls1c_clock.h" + + + + +/* + * ÑÓʱָ¶¨ʱ¼䣬µ¥λms + * @j ÑÓʱʱ¼䣬µ¥λms + */ +void delay_ms(int j) +{ + int k_max = clk_get_cpu_rate()/1000/92; // ³ýÒÔ1000±íʾms£¬ÁíÍâһ¸ö³ýÊýΪʵÑé²âµõľ­Ñéֵ + int k = k_max; + + for ( ; j > 0; j--) + { + for (k = k_max; k > 0; k--) + { + __asm__ ("nop"); // עÒ⣬ÕâÀï±ØÐëÓÃÄÚÁª»ã±࣬·ñÔò»ᱻÓŻ¯µô + } + } + + return ; +} + + +/* + * ÑÓʱָ¶¨ʱ¼䣬µ¥λus + * @n ÑÓʱʱ¼䣬µ¥λus + */ +void delay_us(int n) +{ + int count_1us = 252000000 / 1000000 / 84; // ÑÓʱ1usµÄѭ»·´ÎÊý + // 252000000ΪcpuƵÂʣ¬³ýÒÔ1000000±íʾÑÓʱµ¥λΪus£¬92ΪʵÑé²âµõľ­Ñéֵ + int count_max; // ÑÓʱn΢ÃëµÄѭ»·´ÎÊý + int tmp; + + // ΢µ÷ + count_max = n * count_1us; + if (10 >= n) // <=10us + { + count_max = count_max / 3; + } + else if (100 >= n) // <= 100us + { + count_max = count_max - count_max / 5; + } + else // > 100us + { + count_max = count_max - count_max / 10; + } + + // ÑÓʱ + for (tmp = count_max; tmp > 0; tmp--) + { + __asm__ ("nop"); // עÒ⣬ÕâÀï±ØÐëÓÃÄÚÁª»ã±࣬·ñÔò»ᱻÓŻ¯µô + } + + return ; +} + + +/* + * ÑÓʱָ¶¨ʱ¼䣬µ¥λs + * @i ÑÓʱʱ¼䣬µ¥λs + */ +void delay_s(int i) +{ + for ( ; i > 0; i--) + { + delay_ms(1000); + } + + return ; +} + + + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_delay.h b/bsp/loongson/ls1cdev/libraries/ls1c_delay.h new file mode 100644 index 0000000000..15cc1d43b1 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_delay.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + + +#ifndef __OPENLOONGSON_DELAY_H +#define __OPENLOONGSON_DELAY_H + + + +/* + * ÑÓʱָ¶¨ʱ¼䣬µ¥λms + * @j ÑÓʱʱ¼䣬µ¥λms + */ +void delay_ms(int j); + + +/* + * ÑÓʱָ¶¨ʱ¼䣬µ¥λus + * @n ÑÓʱʱ¼䣬µ¥λus + */ +void delay_us(int n); + + +/* + * ÑÓʱָ¶¨ʱ¼䣬µ¥λs + * @i ÑÓʱʱ¼䣬µ¥λs + */ +void delay_s(int i); + + + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_gpio.c b/bsp/loongson/ls1cdev/libraries/ls1c_gpio.c new file mode 100644 index 0000000000..4bf6b7a20b --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_gpio.c @@ -0,0 +1,277 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + + +#include "ls1c_public.h" +#include "ls1c_regs.h" +#include "ls1c_gpio.h" +#include "ls1c_pin.h" + + +/* + * 获取指定gpio的CFG寄存器 + * @gpio gpio编号 + * @ret CFG寄存器 + */ +volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio) +{ + volatile unsigned int *gpio_cfgx = NULL; // GPIO_CFGx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + + switch (port) + { + case 0: + gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG0; + break; + + case 1: + gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG1; + break; + + case 2: + gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG2; + break; + + case 3: + gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG3; + break; + + default: + gpio_cfgx = NULL; + break; + } + + return gpio_cfgx; +} + + +/* + * 获取指定gpio的EN寄存器 + * @gpio gpio编号 + * @ret EN寄存器 + */ +volatile unsigned int *gpio_get_en_reg(unsigned int gpio) +{ + volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + + switch (port) + { + case 0: + gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN0; + break; + + case 1: + gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN1; + break; + + case 2: + gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN2; + break; + + case 3: + gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN3; + break; + + default: + gpio_enx = NULL; + return gpio_enx; + } + + return gpio_enx; +} + +/* + * gpio初始化 + * @gpio gpio引脚,取值范围[0, 127] + * @mode gpio的工作模式(输入、输出) + * + * 例: 将gpio50初始化为输出 + * gpio_init(50, gpio_mode_output); + */ +void gpio_init(unsigned int gpio, gpio_mode_t mode) +{ + volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 + unsigned int pin = GPIO_GET_PIN(gpio); + + // 将pin设为普通GPIO + pin_set_purpose(gpio, PIN_PURPOSE_GPIO); + + // 设置gpio工作模式(输入、输出) + gpio_enx = gpio_get_en_reg(gpio); + if (gpio_mode_output == mode) // 输出 + { + reg_clr_one_bit(gpio_enx, pin); + } + else // 输入 + { + reg_set_one_bit(gpio_enx, pin); + } + + return ; +} + + +/* + * 在指定gpio输出高电平或低电平 + * @gpio gpio引脚,取值范围[0, 127] + * @level 电平值 + * + * 例: 在gpio50上输出低电平 + * gpio_set(50, gpio_level_low); + */ +void gpio_set(unsigned int gpio, gpio_level_t level) +{ + volatile unsigned int *gpio_outx = NULL; // GPIO_OUTx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + + // 获取寄存器地址 + switch (port) + { + case 0: + gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT0; + break; + + case 1: + gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT1; + break; + + case 2: + gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT2; + break; + + case 3: + gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT3; + break; + + default: // 正确的程序不应该走到这里,直接返回 + return ; + } + + // 输出 + if (gpio_level_low == level) + { + reg_clr_one_bit(gpio_outx, pin); + } + else + { + reg_set_one_bit(gpio_outx, pin); + } + + return ; +} + + +/* + * 读取指定gpio引脚的值 + * @gpio gpio引脚,取值范围[0,127] + * + * 例: 读取gpio50引脚上的值 + * gpio_level_t level; + * level = gpio_get(50); + */ +unsigned int gpio_get(unsigned int gpio) +{ + volatile unsigned int *gpio_inx = NULL; // GPIO_INx寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + + // 获取寄存器地址 + switch (port) + { + case 0: + gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN0; + break; + + case 1: + gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN1; + break; + + case 2: + gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN2; + break; + + case 3: + gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN3; + break; + + default: // 正常的流程不应该走到这里,直接返回 + return 0; + } + + // 读取 + return reg_get_bit(gpio_inx, pin); +} + + +/** + * 设置中断类型 + * @gpio gpio引脚 + * @type 触发中断的条件。高电平触发、低电平触发、上升沿触发 or 下降沿触发 + */ +void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type) +{ + volatile unsigned int *int_pol = NULL; // 中断极性选择寄存器 + volatile unsigned int *int_edge = NULL; // 中断边沿选择寄存器 + unsigned int port = GPIO_GET_PORT(gpio); + unsigned int pin = GPIO_GET_PIN(gpio); + + // 获取寄存器地址 + switch (port) + { + case 0: // GPIO[31:0] + int_pol = (volatile unsigned int *)LS1C_INT2_POL; + int_edge = (volatile unsigned int *)LS1C_INT2_EDGE; + break; + + case 1: // GPIO[63:32] + int_pol = (volatile unsigned int *)LS1C_INT3_POL; + int_edge = (volatile unsigned int *)LS1C_INT3_EDGE; + break; + + case 2: // GPIO[95:64] + int_pol = (volatile unsigned int *)LS1C_INT4_POL; + int_edge = (volatile unsigned int *)LS1C_INT4_EDGE; + break; + } + + // 设置中断类型 + switch (type) + { + case IRQ_TYPE_EDGE_RISING: + *int_pol |= (1 << pin); + *int_edge |= (1 << pin); + break; + + case IRQ_TYPE_EDGE_FALLING: + *int_pol &= ~(1 << pin); + *int_edge |= (1 << pin); + break; + + case IRQ_TYPE_LEVEL_HIGH: + *int_pol |= (1 << pin); + *int_edge &= ~(1 << pin); + break; + + case IRQ_TYPE_LEVEL_LOW: + *int_pol &= ~(1 << pin); + *int_edge &= ~(1 << pin); + break; + + default: + break; + } + + return ; +} + + + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_gpio.h b/bsp/loongson/ls1cdev/libraries/ls1c_gpio.h new file mode 100644 index 0000000000..c5c9b12312 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_gpio.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + + +#ifndef __OPENLOONGSON_GPIO_H +#define __OPENLOONGSON_GPIO_H + + + +// Áúо1cµÄgpioÊǰ´ÕÕ0,1,2,3,4...ÕâÑùµÄ˳Ðò±àºŵģ¬ +// µ«ÔڲÙ×÷¼ĴæÆ÷µÄʱºò£¬ÓÖÊǰ´ÕÕÿ32¸öһ×éÀ´·ֵÄ +// ÕâÀïÀûÓÃÕâ¸öÌØÐԣ¬½«ÿ×éµÄ32¸ögpio½Ð×öһ¸ö"port"£¬ÿ¸ögpioÔÚÿ×éÖеÄË÷Òý½Ð"pin" +// port = gpio / 32 +// pin = gpio % 32 +// ÀýÈçGPIO50£¬port=1,pin=18 +#define GPIO_GET_PORT(gpio) ((gpio) / 32) +#define GPIO_GET_PIN(gpio) ((gpio) % 32) + + +// gpioµĹ¤×÷ģʽ--ÊäÈ롢Êä³ö +typedef enum{ + gpio_mode_output = 0, // Êä³ö + gpio_mode_input = 1 // ÊäÈë +}gpio_mode_t; + + +// gpio¸ߵ͵çƽֵ +typedef enum{ + gpio_level_low = 0, // µ͵çƽ + gpio_level_high = 1 // ¸ߵçƽ +}gpio_level_t; + + +typedef enum { + // ÉÏÉýÑش¥·¢ + IRQ_TYPE_EDGE_RISING = 0x00000001, + // ϽµÑش¥·¢ + IRQ_TYPE_EDGE_FALLING = 0x00000002, + IRQ_TYPE_EDGE_BOTH = (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING), + // ¸ߵçƽ´¥·¢ + IRQ_TYPE_LEVEL_HIGH = 0x00000004, + // µ͵çƽ´¥·¢ + IRQ_TYPE_LEVEL_LOW = 0x00000008, + IRQ_TYPE_LEVEL_MASK = (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH), +}gpio_irq_type_t; + + + +/* + * »ñȡָ¶¨gpioµÄCFG¼ĴæÆ÷ + * @gpio gpio±àºÅ + * @ret CFG¼ĴæÆ÷ + */ +volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio); + +/* + * gpio³õʼ»¯ + * @gpio gpioÒý½ţ¬ȡֵ·¶Χ[0, 127] + * @mode gpioµĹ¤×÷ģʽ(ÊäÈ롢Êä³ö) + * + * Àý: ½«gpio50³õʼ»¯ΪÊä³ö + * gpio_init(50, gpio_mode_output); + */ +void gpio_init(unsigned int gpio, gpio_mode_t mode); + + +/* + * ÔÚָ¶¨gpioÊä³ö¸ߵçƽ»òµ͵çƽ + * @gpio gpioÒý½ţ¬ȡֵ·¶Χ[0, 127] + * @level µçƽֵ + * + * Àý: ÔÚgpio50ÉÏÊä³öµ͵çƽ + * gpio_set(50, gpio_level_low); + */ +void gpio_set(unsigned int gpio, gpio_level_t level); + + + +/* + * ¶Áȡָ¶¨gpioÒý½ŵÄֵ + * @gpio gpioÒý½ţ¬ȡֵ·¶Χ[0,127] + * + * Àý: ¶Áȡgpio50Òý½ÅÉϵÄֵ + * gpio_level_t level; + * level = gpio_get(50); + */ +unsigned int gpio_get(unsigned int gpio); + + + +/** + * ÉèÖÃÖжÏÀàÐÍ + * @gpio gpioÒý½Å + * @type ´¥·¢ÖжϵÄÌõ¼þ¡£¸ߵçƽ´¥·¢¡¢µ͵çƽ´¥·¢¡¢ÉÏÉýÑش¥·¢ or ϽµÑش¥·¢ + */ +void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type); + + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_i2c.c b/bsp/loongson/ls1cdev/libraries/ls1c_i2c.c new file mode 100644 index 0000000000..11475cf149 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_i2c.c @@ -0,0 +1,359 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + +// ·âװӲ¼þi2c½ӿÚ + + +#include "ls1c_public.h" +#include "ls1c_regs.h" +#include "ls1c_clock.h" +#include "ls1c_i2c.h" +#include "ls1c_delay.h" + + + +/* + * I2C¸÷¸ö¼ĴæÆ÷Ïà¶ԻùµØַµÄƫÒÆ + * ·¢ËÍÊý¾ݼĴæÆ÷ºͽÓÊÕÊý¾ݼĴæÆ÷µÄƫÒÆÊÇÏàͬµÄ + * ÃüÁî¼ĴæÆ÷ºÍ״̬¼ĴæÆ÷µÄƫÒÆÊÇÏàͬµģ¬²»ͬµÄÊÇÃüÁî¼ĴæÆ÷ֻд£¬״̬¼ĴæÆ÷ֻ¶Á + */ +#define LS1C_I2C_PRER_LOW_OFFSET (0) // ·ÖƵËø´æÆ÷µÍ×ֽڼĴæÆ÷ƫÒÆ +#define LS1C_I2C_PRER_HIGH_OFFSET (1) // ·ÖƵËø´æÆ÷¸ß×ֽڼĴæÆ÷ƫÒÆ +#define LS1C_I2C_CONTROL_OFFSET (2) // ¿ØÖƼĴæÆ÷ƫÒÆ +#define LS1C_I2C_DATA_OFFSET (3) // ·¢ËÍÊý¾ݼĴæÆ÷ºͽÓÊÕÊý¾ݼĴæÆ÷µÄƫÒÆÊÇÏàͬµÄ +#define LS1C_I2C_CMD_OFFSET (4) // ÃüÁî¼ĴæÆ÷ƫÒƣ¬ֻд +#define LS1C_I2C_STATUS_OFFSET (4) // ״̬¼ĴæÆ÷ƫÒƣ¬ֻ¶Á + + +// ¿ØÖƼĴæÆ÷µÄλÓò +#define LS1C_I2C_CONTROL_EN (0x80) // i2cģ¿éʹÄÜ +#define LS1C_I2C_CONTROL_IEN (0x40) // ÖжÏʹÄÜ + +// ÃüÁî¼ĴæÆ÷µÄλÓò +#define LS1C_I2C_CMD_START (0x90) // ²úÉúSTARTÐźÅ +#define LS1C_I2C_CMD_STOP (0x40) // ²úÉúSTOPÐźÅ +#define LS1C_I2C_CMD_READ (0x20) // ²úÉú¶ÁÐźţ¬¼´²úÉúACKÐźÅ +#define LS1C_I2C_CMD_WRITE (0x10) // ²úÉúдÐźÅ +#define LS1C_I2C_CMD_READ_ACK (0x20) // ²úÉúACKÐźţ¬Óë¶ÁÐźÅÏàͬ +#define LS1C_I2C_CMD_READ_NACK (0x28) // ²úÉúNACKÐźÅ +#define LS1C_I2C_CMD_IACK (0x00) // ²úÉúÖжÏӦ´ðÐźÅ + +// ״̬¼ĴæÆ÷µÄλÓò +#define LS1C_I2C_STATUS_IF (0x01) // Öжϱê־λ +#define LS1C_I2C_STATUS_TIP (0x02) // ָʾ´«ÊäµĹý³̡£1£¬ÕýÔڴ«Ê䣻0£¬´«ÊäÍê³É +#define LS1C_I2C_STATUS_ARBLOST (0x20) // I2CºËʧȥI2C×ÜÏߵĿØÖÆȨ +#define LS1C_I2C_STATUS_BUSY (0x40) // I2C×ÜÏßæ±ê־ +#define LS1C_I2C_STATUS_NACK (0x80) // Ӧ´ðλ±ê־¡£1£¬ûÊյ½Ӧ´ðλ£»0£¬Êյ½Ӧ´ðλ + + +/* + * »ñȡָ¶¨i2cģ¿éµĻùµØַ + * @I2Cx I2Cģ¿éµıàºÅ + */ +void *i2c_get_base(ls1c_i2c_t I2Cx) +{ + void *base = NULL; + + switch (I2Cx) + { + case LS1C_I2C_0: + base = (void *)LS1C_I2C0_BASE; + break; + + case LS1C_I2C_1: + base = (void *)LS1C_I2C1_BASE; + break; + + case LS1C_I2C_2: + base = (void *)LS1C_I2C2_BASE; + break; + + default: + base = NULL; + break; + } + + return base; +} + + +/* + * ÏòÃüÁî¼ĴæÆ÷дÃüÁî + * @i2c_info_p i2cģ¿éÐÅϢ + * @cmd ÃüÁî + */ +void i2c_cmd(ls1c_i2c_info_t *i2c_info_p, unsigned char cmd) +{ + void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); + + reg_write_8(cmd, i2c_base + LS1C_I2C_CMD_OFFSET); + + return ; +} + + +/* + * ִÐÐSTARTÃüÁ·¢ËÍSTARTÐźÅ + * @i2c_info_p i2cģ¿éÐÅϢ + */ +void i2c_cmd_start(ls1c_i2c_info_t *i2c_info_p) +{ + i2c_cmd(i2c_info_p, LS1C_I2C_CMD_START); + return ; +} + + +/* + * ִÐÐSTOPÃüÁ·¢ËÍSTOPÐźÅ + * @i2c_info_p i2cģ¿éÐÅϢ + */ +void i2c_cmd_stop(ls1c_i2c_info_t *i2c_info_p) +{ + i2c_cmd(i2c_info_p, LS1C_I2C_CMD_STOP); + return ; +} + + +/* + * ִÐÐдÃüÁî + * @i2c_info_p i2cģ¿éÐÅϢ + */ +void i2c_cmd_write(ls1c_i2c_info_t *i2c_info_p) +{ + i2c_cmd(i2c_info_p, LS1C_I2C_CMD_WRITE); + return ; +} + + +/* + * ִÐжÁackÃüÁ·¢ËͶÁackÐźÅ + * @i2c_info_p i2cģ¿éÐÅϢ + */ +void i2c_cmd_read_ack(ls1c_i2c_info_t *i2c_info_p) +{ + i2c_cmd(i2c_info_p, LS1C_I2C_CMD_READ_ACK); + return ; +} + + +/* + * ִÐжÁnackÃüÁî,·¢ËͶÁnackÐźÅ + * @i2c_info_p i2cģ¿éÐÅϢ + */ +void i2c_cmd_read_nack(ls1c_i2c_info_t *i2c_info_p) +{ + i2c_cmd(i2c_info_p, LS1C_I2C_CMD_READ_NACK); + return ; +} + + +/* + * ·¢ËÍÖжÏӦ´ðÐźÅ + * @i2c_info_p i2cģ¿éÐÅϢ + */ +void i2c_cmd_iack(ls1c_i2c_info_t *i2c_info_p) +{ + i2c_cmd(i2c_info_p, LS1C_I2C_CMD_IACK); + return ; +} + + +/* + * »ñȡ״̬¼ĴæÆ÷µÄֵ + * @i2c_info_p i2cģ¿éÐÅϢ + * @ret ״̬¼ĴæÆ÷µÄֵ + */ +unsigned char i2c_get_status(ls1c_i2c_info_t *i2c_info_p) +{ + void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); + + return reg_read_8(i2c_base + LS1C_I2C_STATUS_OFFSET); +} + + +/* + * Poll the i2c status register until the specified bit is set. + * Returns 0 if timed out (100 msec). + * @i2c_info_p i2cģ¿éÐÅϢ + * @bit ¼ĴæÆ÷µÄijһλ + * @ret true or false + */ +int i2c_poll_status(ls1c_i2c_info_t *i2c_info_p, unsigned long bit) +{ + int loop_cntr = 20000; + + do { + delay_us(1); + } while ((i2c_get_status(i2c_info_p) & bit) && (0 < --loop_cntr)); + + return (0 < loop_cntr); +} + + +/* + * ³õʼ»¯ָ¶¨i2cģ¿é + * @i2c_info_p ij¸öi2cģ¿éµÄÐÅϢ + */ +void i2c_init(ls1c_i2c_info_t *i2c_info_p) +{ + void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); + unsigned long i2c_clock = i2c_info_p->clock; + unsigned char ctrl = reg_read_8(i2c_base + LS1C_I2C_CONTROL_OFFSET); + unsigned long prescale = 0; + + /* make sure the device is disabled */ + ctrl = ctrl & ~(LS1C_I2C_CONTROL_EN | LS1C_I2C_CONTROL_IEN); + reg_write_8(ctrl, i2c_base + LS1C_I2C_CONTROL_OFFSET); + + // ÉèÖÃʱÖÓ + i2c_clock = MIN(i2c_clock, LS1C_I2C_CLOCK_MAX); // ÏÞÖÆÔÚ×î´óÔÊÐí·¶ΧÄÚ + prescale = clk_get_apb_rate(); + prescale = (prescale / (5 * i2c_clock)) - 1; + reg_write_8(prescale & 0xff, i2c_base + LS1C_I2C_PRER_LOW_OFFSET); + reg_write_8(prescale >> 8, i2c_base + LS1C_I2C_PRER_HIGH_OFFSET); + + // ʹÄÜ + i2c_cmd_iack(i2c_info_p); + ctrl = ctrl | LS1C_I2C_CONTROL_EN; + reg_write_8(ctrl, i2c_base + LS1C_I2C_CONTROL_OFFSET); + + return ; +} + + +/* + * (Ôٷ¢ËÍһ¸ö×ֽÚÊý¾Ý֮ºó)½ÓÊմӻú·¢Ë͵ÄACKÐźÅ + * @i2c_info_p i2cģ¿éÐÅϢ + * @ret LS1C_I2C_ACK or LS1C_I2C_NACK + */ +ls1c_i2c_ack_t i2c_receive_ack(ls1c_i2c_info_t *i2c_info_p) +{ + ls1c_i2c_ack_t ret = LS1C_I2C_NACK; + + if (LS1C_I2C_STATUS_NACK & i2c_get_status(i2c_info_p)) + { + ret = LS1C_I2C_NACK; + } + else + { + ret = LS1C_I2C_ACK; + } + + return ret; +} + + +/* + * ½ÓÊÕÊý¾Ý + * @i2c_info_p i2cģ¿éÐÅϢ + * @buf Êý¾ݻº´æ + * @len ´ý½ÓÊÕÊý¾ݵij¤¶È + */ +ls1c_i2c_ret_t i2c_receive_data(ls1c_i2c_info_t *i2c_info_p, unsigned char *buf, int len) +{ + void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); + int i = 0; + + for (i=0; iI2Cx); + unsigned char data = 0; + + // µȴýi2c×ÜÏ߿ÕÏÐ + if (!i2c_poll_status(i2c_info_p, LS1C_I2C_STATUS_BUSY)) + return LS1C_I2C_RET_TIMEOUT; + + // Ìî³äµØַµ½Êý¾ݼĴæÆ÷ + data = (slave_addr << 1) | ((LS1C_I2C_DIRECTION_READ == direction) ? 1 : 0); + reg_write_8(data , i2c_base + LS1C_I2C_DATA_OFFSET); + + // ¿ªʼ·¢ËÍ + i2c_cmd_start(i2c_info_p); + + // µȴý£¬ֱµ½·¢ËÍÍê³É + if (!i2c_poll_status(i2c_info_p, LS1C_I2C_STATUS_TIP)) + return LS1C_I2C_RET_TIMEOUT; + + return LS1C_I2C_RET_OK; +} + + +/* + * ·¢ËÍÊý¾Ý + * @i2c_info_p i2cģ¿éÐÅϢ + * @data ´ý·¢Ë͵ÄÊý¾Ý + * @len ´ý·¢ËÍÊý¾ݵij¤¶È + */ +ls1c_i2c_ret_t i2c_send_data(ls1c_i2c_info_t *i2c_info_p, unsigned char *data, int len) +{ + void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); + int i = 0; + + for (i=0; i> bit) & 1; + + return temp; +} + + +/* + * Ïò¼ĴæÆ÷ÖÐдÈë8bit(һ¸ö×ֽÚ)Êý¾Ý + * @data ´ýдÈëµÄÊý¾Ý + * @addr ¼ĴæÆ÷µØַ + */ +void reg_write_8(unsigned char data, volatile unsigned char *addr) +{ + *addr = data; +} + + +/* + * ´ӼĴæÆ÷¶Á³ö8bit(һ¸ö×ֽÚ)Êý¾Ý + * @addr ¼ĴæÆ÷µØַ + * @ret ¶Á³öµÄÊý¾Ý + */ +unsigned char reg_read_8(volatile unsigned char *addr) +{ + return (*addr); +} + + +/* + * Ïò¼ĴæÆ÷ÖÐдһ¸ö32bitµÄÊý¾Ý + * @data ´ýдÈëµÄÊý¾Ý + * @addr ¼ĴæÆ÷µØַ + */ +void reg_write_32(unsigned int data, volatile unsigned int *addr) +{ + *addr = data; +} + + +/* + * ´ӼĴæÆ÷¶Á³öһ¸ö32bitÊý¾Ý + * @addr ¼ĴæÆ÷µØַ + * @ret ¶Á³öµÄÊý¾Ý + */ +unsigned int reg_read_32(volatile unsigned int *addr) +{ + return (*addr); +} + + + +/** + * ffs - find first bit set + * @x: the word to search + * + * This is defined the same way as + * the libc and compiler builtin ffs routines, therefore + * differs in spirit from the above ffz (man ffs). + */ +int ls1c_ffs(int x) +{ + int r = 1; + + if (!x) + return 0; + if (!(x & 0xffff)) { + x >>= 16; + r += 16; + } + if (!(x & 0xff)) { + x >>= 8; + r += 8; + } + if (!(x & 0xf)) { + x >>= 4; + r += 4; + } + if (!(x & 3)) { + x >>= 2; + r += 2; + } + if (!(x & 1)) { + x >>= 1; + r += 1; + } + return r; +} + + +/* + * fls - find last (most-significant) bit set + * @x: the word to search + * + * This is defined the same way as ffs. + * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. + */ +int ls1c_fls(int x) +{ + int r = 32; + + if (!x) + return 0; + if (!(x & 0xffff0000u)) + { + x <<= 16; + r -= 16; + } + if (!(x & 0xff000000u)) + { + x <<= 8; + r -= 8; + } + if (!(x & 0xf0000000u)) + { + x <<= 4; + r -= 4; + } + if (!(x & 0xc0000000u)) + { + x <<= 2; + r -= 2; + } + if (!(x & 0x80000000u)) + { + x <<= 1; + r -= 1; + } + + return r; +} + + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_public.h b/bsp/loongson/ls1cdev/libraries/ls1c_public.h new file mode 100644 index 0000000000..5d2390acec --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_public.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + +// 一些常用的、共用的接口 + +#ifndef __OPENLOONGSON_PUBLIC_H +#define __OPENLOONGSON_PUBLIC_H + + +#include + + +// pmon提供的打印函数,见main()函数 +struct callvectors { + int (*open) (char *, int, int); + int (*close) (int); + int (*read) (int, void *, int); + int (*write) (int, void *, int); + long long (*lseek) (int, long long, int); + int (*printf) (const char *, ...); + void (*cacheflush) (void); + char *(*gets) (char *); +}; +#define myprintf (*callvec->printf) +#define mygets (*callvec->gets) +extern struct callvectors *callvec; + + +#define MIN(a, b) ((a) > (b) ? (b) : (a)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) + +typedef enum +{ + FALSE=0, + TRUE=1 +}BOOL; + +/* + * 将指定寄存器的指定位置1 + * @reg 寄存器地址 + * @bit 需要置1的那一bit + */ +void reg_set_one_bit(volatile unsigned int *reg, unsigned int bit); + + +/* + * 将指定寄存器的指定位清零 + * @reg 寄存器地址 + * @bit 需要清零的那一bit + */ +void reg_clr_one_bit(volatile unsigned int *reg, unsigned int bit); + + +/* + * 获取指定寄存器的指定位的值 + * @reg 寄存器地址 + * @bit 需要读取值的那一bit + * @ret 指定位的值 + */ +unsigned int reg_get_bit(volatile unsigned int *reg, unsigned int bit); + + +/* + * 向寄存器中写入8bit(一个字节)数据 + * @data 待写入的数据 + * @addr 寄存器地址 + */ +void reg_write_8(unsigned char data, volatile unsigned char *addr); + + +/* + * 从寄存器读出8bit(一个字节)数据 + * @addr 寄存器地址 + * @ret 读出的数据 + */ +unsigned char reg_read_8(volatile unsigned char *addr); + + +/* + * 向寄存器中写一个32bit的数据 + * @data 待写入的数据 + * @addr 寄存器地址 + */ +void reg_write_32(unsigned int data, volatile unsigned int *addr); + + +/* + * 从寄存器读出一个32bit数据 + * @addr 寄存器地址 + * @ret 读出的数据 + */ +unsigned int reg_read_32(volatile unsigned int *addr); + + +/** + * ffs - find first bit set + * @x: the word to search + */ +int ls1c_ffs(int x); + +/* + * fls - find last (most-significant) bit set + * @x: the word to search + * + * This is defined the same way as ffs. + * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. + */ +int ls1c_fls(int x); + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_pwm.c b/bsp/loongson/ls1cdev/libraries/ls1c_pwm.c new file mode 100644 index 0000000000..b91f81c43b --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_pwm.c @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + +// ·âװӲ¼þpwm½ӿÚ + +#include "ls1c_public.h" +#include "ls1c_pin.h" +#include "ls1c_pwm.h" +#include "ls1c_clock.h" +#include "ls1c_regs.h" + +// pwmµÄ×î´óÖÜÆÚ +#define PWM_MAX_PERIOD (0xFFFFFF) // ¼ÆÊýÆ÷µÄֵ + +/* + * ¸ù¾Ýgpio»ñȡÏàӦpwmµĻùµØַ + * @gpio pwmÒý½Å + * @ret pwm»ùµØַ + */ +unsigned int pwm_get_reg_base(unsigned int gpio) +{ + unsigned int reg_base = 0; + + switch (gpio) + { + case LS1C_PWM0_GPIO06: + case LS1C_PWM0_GPIO04: + reg_base = LS1C_REG_BASE_PWM0; + break; + + case LS1C_PWM1_GPIO92: + case LS1C_PWM1_GPIO05: + reg_base = LS1C_REG_BASE_PWM1; + break; + + case LS1C_PWM2_GPIO52: + case LS1C_PWM2_GPIO46: + reg_base = LS1C_REG_BASE_PWM2; + break; + + case LS1C_PWM3_GPIO47: + case LS1C_PWM3_GPIO53: + reg_base = LS1C_REG_BASE_PWM3; + break; + } + + return reg_base; +} + + +/* + * ½ûֹpwm + * @pwm_info PWMnµÄÏêϸÐÅϢ + */ +void pwm_disable(pwm_info_t *pwm_info) +{ + unsigned int pwm_reg_base = 0; + + // ¼ì²éÈë²Î + if (NULL == pwm_info) + { + return ; + } + + pwm_reg_base = pwm_get_reg_base(pwm_info->gpio); + reg_write_32(0, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CTRL)); + + return ; +} + + + +/* + * ʹÄÜPWM + * @pwm_info PWMnµÄÏêϸÐÅϢ + */ +void pwm_enable(pwm_info_t *pwm_info) +{ + unsigned int pwm_reg_base = 0; + unsigned int ctrl = 0; + + // ¼ì²éÈë²Î + if (NULL == pwm_info) + { + return ; + } + + // »ñȡ»ùµØַ + pwm_reg_base = pwm_get_reg_base(pwm_info->gpio); + + // ÇåÁã¼ÆÊýÆ÷ + reg_write_32(0, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CNTR)); + + // ÉèÖÿØÖƼĴæÆ÷ + ctrl = (0 << LS1C_PWM_INT_LRC_EN) + | (0 << LS1C_PWM_INT_HRC_EN) + | (0 << LS1C_PWM_CNTR_RST) + | (0 << LS1C_PWM_INT_SR) + | (0 << LS1C_PWM_INTEN) + | (0 << LS1C_PWM_OE) + | (1 << LS1C_PWM_CNT_EN); + if (PWM_MODE_PULSE == pwm_info->mode) // µ¥Âö³å + { + ctrl |= (1 << LS1C_PWM_SINGLE); + } + else // Á¬ÐøÂö³å + { + ctrl &= ~(1 << LS1C_PWM_SINGLE); + } + reg_write_32(ctrl, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CTRL)); + + return ; +} + + + +/* + * ³õʼ»¯PWMn + * @pwm_info PWMnµÄÏêϸÐÅϢ + */ +void pwm_init(pwm_info_t *pwm_info) +{ + unsigned int gpio; + unsigned long pwm_clk = 0; // pwmģ¿éµÄʱÖÓƵÂÊ + unsigned long tmp = 0; + unsigned int pwm_reg_base = 0; + unsigned long period = 0; + + // ÅжÏÈë²Î + if (NULL == pwm_info) + { + // Èë²ηǷ¨£¬Ôòֱ½ӷµ»Ø + return ; + } + gpio = pwm_info->gpio; + + // ÅäÖÃÏàӦÒý½ÅÓÃ×÷pwm£¬¶ø·Çgpio + pin_set_purpose(gpio, PIN_PURPOSE_OTHER); + + // ¸´Óà + switch (gpio) + { + // ²»ÐèҪ¸´Óà + case LS1C_PWM0_GPIO06: + case LS1C_PWM1_GPIO92: + break; + + case LS1C_PWM0_GPIO04: // gpio04µĵÚÈý¸´Óà + pin_set_remap(LS1C_PWM0_GPIO04, PIN_REMAP_THIRD); + break; + + case LS1C_PWM1_GPIO05: // gpio05µĵÚÈý¸´Óà + pin_set_remap(LS1C_PWM1_GPIO05, PIN_REMAP_THIRD); + break; + + case LS1C_PWM2_GPIO52: // gpio52µĵÚËĸ´Óà + pin_set_remap(LS1C_PWM2_GPIO52, PIN_REMAP_FOURTH); + break; + + case LS1C_PWM2_GPIO46: // gpio46µĵÚËĸ´Óà + pin_set_remap(LS1C_PWM2_GPIO46, PIN_REMAP_FOURTH); + break; + + case LS1C_PWM3_GPIO47: // gpio47µĵÚËĸ´Óà + pin_set_remap(LS1C_PWM3_GPIO47, PIN_REMAP_FOURTH); + break; + + case LS1C_PWM3_GPIO53: // gpio53µĵÚËĸ´Óà + pin_set_remap(LS1C_PWM3_GPIO53, PIN_REMAP_FOURTH); + break; + + default: + break; + } + + // ¸ù¾Ýռ¿ձȺÍpwmÖÜÆڼÆËã¼ĴæÆ÷HRCºÍLRCµÄֵ + // Á½¸ö64λÊýÏà³ˣ¬ֻÄܵõ½µÍ32룬linuxÏÂȴ¿ÉÒԵõ½64λ½á¹û£¬ + // Ôݲ»Çå³þԭÒò£¬Óø¡µãÔËËã´úÌæ + pwm_clk = clk_get_apb_rate(); + period = (1.0 * pwm_clk * pwm_info->period_ns) / 1000000000; + period = MIN(period, PWM_MAX_PERIOD); // ÏÞÖÆÖÜÆڲ»Äܳ¬¹ý×î´óֵ + tmp = period - (period * pwm_info->duty); + + // д¼ĴæÆ÷HRCºÍLRC + pwm_reg_base = pwm_get_reg_base(gpio); + reg_write_32(--tmp, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_HRC)); + reg_write_32(--period, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_LRC)); + + // дÖ÷¼ÆÊýÆ÷ + pwm_enable(pwm_info); + + return ; +} + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_pwm.h b/bsp/loongson/ls1cdev/libraries/ls1c_pwm.h new file mode 100644 index 0000000000..865a2ddf1d --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_pwm.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 ÇÚΪ±¾ first version + */ + + +#ifndef __OPENLOONGSON_PWM_H +#define __OPENLOONGSON_PWM_H + + +// pwmÒý½Ŷ¨Òå +#define LS1C_PWM0_GPIO06 (6) // gpio06ÓÃ×÷pwm0 +#define LS1C_PWM0_GPIO04 (4) // gpio04¸´ÓÃΪpwm0 +#define LS1C_PWM1_GPIO92 (92) // gpio92ÓÃ×÷pwm1 +#define LS1C_PWM1_GPIO05 (5) // gpio05¸´ÓÃΪpwm1 +#define LS1C_PWM2_GPIO52 (52) // gpio52¸´ÓÃΪpwm2 +#define LS1C_PWM2_GPIO46 (46) // gpio46¸´ÓÃΪpwm2 +#define LS1C_PWM3_GPIO47 (47) // gpio47¸´ÓÃΪpwm3 +#define LS1C_PWM3_GPIO53 (53) // gpio53¸´ÓÃΪpwm3 +// ...»¹ÓÐһЩgpio¿ÉÒԸ´ÓÃΪgpioµģ¬ÓÐÐèҪ¿ÉÒÔ×ԼºÌí¼Ó + + + +// pwm¿ØÖƼĴæÆ÷µÄÿ¸öbit +#define LS1C_PWM_INT_LRC_EN (11) // µÍÂö³å¼ÆÊýÆ÷ÖжÏʹÄÜ +#define LS1C_PWM_INT_HRC_EN (10) // ¸ßÂö³å¼ÆÊýÆ÷ÖжÏʹÄÜ +#define LS1C_PWM_CNTR_RST (7) // ʹÄÜCNTR¼ÆÊýÆ÷ÇåÁã +#define LS1C_PWM_INT_SR (6) // ÖжÏ״̬λ +#define LS1C_PWM_INTEN (5) // ÖжÏʹÄÜλ +#define LS1C_PWM_SINGLE (4) // µ¥Âö³å¿ØÖÆλ +#define LS1C_PWM_OE (3) // Âö³åÊä³öʹÄÜ +#define LS1C_PWM_CNT_EN (0) // Ö÷¼ÆÊýÆ÷ʹÄÜ + + +// Ӳ¼þpwm¹¤×÷ģʽ +enum +{ + // Õý³£ģʽ--Á¬ÐøÊä³öpwm²¨ÐÎ + PWM_MODE_NORMAL = 0, + + // µ¥Âö³åģʽ£¬ÿ´ε÷ÓÃֻ·¢ËÍһ¸öÂö³壬µ÷Óüä¸ô±ØÐë´óÓÚpwmÖÜÆÚ + PWM_MODE_PULSE +}; + + +// Ӳ¼þpwmÐÅϢ +typedef struct +{ + unsigned int gpio; // PWMnËùÔڵÄgpio + unsigned int mode; // ¹¤×÷ģʽ(µ¥Âö³塢Á¬ÐøÂö³å) + float duty; // pwmµÄռ¿ձÈ + unsigned long period_ns; // pwmÖÜÆÚ(µ¥λns) +}pwm_info_t; + + + + +/* + * ³õʼ»¯PWMn + * @pwm_info PWMnµÄÏêϸÐÅϢ + */ +void pwm_init(pwm_info_t *pwm_info); + + +/* + * ½ûֹpwm + * @pwm_info PWMnµÄÏêϸÐÅϢ + */ +void pwm_disable(pwm_info_t *pwm_info); + + + +/* + * ʹÄÜPWM + * @pwm_info PWMnµÄÏêϸÐÅϢ + */ +void pwm_enable(pwm_info_t *pwm_info); + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_regs.h b/bsp/loongson/ls1cdev/libraries/ls1c_regs.h new file mode 100644 index 0000000000..7947c2bfe0 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_regs.h @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + */ + +// 龙芯1c外设寄存器 + + +#ifndef __OPENLOONGSON_LS1C_REGS_H +#define __OPENLOONGSON_LS1C_REGS_H + + + + +// 时钟相关寄存器地址 +#define LS1C_START_FREQ (0xbfe78030) +#define LS1C_CLK_DIV_PARAM (0xbfe78034) + + +// gpio相关寄存器地址 +#define LS1C_GPIO_CFG0 (0xbfd010c0) +#define LS1C_GPIO_EN0 (0xbfd010d0) +#define LS1C_GPIO_IN0 (0xbfd010e0) +#define LS1C_GPIO_OUT0 (0xbfd010f0) + +#define LS1C_GPIO_CFG1 (0xbfd010c4) +#define LS1C_GPIO_EN1 (0xbfd010d4) +#define LS1C_GPIO_IN1 (0xbfd010e4) +#define LS1C_GPIO_OUT1 (0xbfd010f4) + +#define LS1C_GPIO_CFG2 (0xbfd010c8) +#define LS1C_GPIO_EN2 (0xbfd010d8) +#define LS1C_GPIO_IN2 (0xbfd010e8) +#define LS1C_GPIO_OUT2 (0xbfd010f8) + +#define LS1C_GPIO_CFG3 (0xbfd010cc) +#define LS1C_GPIO_EN3 (0xbfd010dc) +#define LS1C_GPIO_IN3 (0xbfd010ec) +#define LS1C_GPIO_OUT3 (0xbfd010fc) + + + +// 复用相关寄存器 +#define LS1C_CBUS_FIRST0 (0xbfd011c0) +#define LS1C_CBUS_SECOND0 (0xbfd011d0) +#define LS1C_CBUS_THIRD0 (0xbfd011e0) +#define LS1C_CBUS_FOURTH0 (0xbfd011f0) +#define LS1C_CBUS_FIFTH0 (0xbfd01200) + +#define LS1C_CBUS_FIRST1 (0xbfd011c4) +#define LS1C_CBUS_SECOND1 (0xbfd011d4) +#define LS1C_CBUS_THIRD1 (0xbfd011e4) +#define LS1C_CBUS_FOURTH1 (0xbfd011f4) +#define LS1C_CBUS_FIFTH1 (0xbfd01204) + +#define LS1C_CBUS_FIRST2 (0xbfd011c8) +#define LS1C_CBUS_SECOND2 (0xbfd011d8) +#define LS1C_CBUS_THIRD2 (0xbfd011e8) +#define LS1C_CBUS_FOURTH2 (0xbfd011f8) +#define LS1C_CBUS_FIFTH2 (0xbfd01208) + +#define LS1C_CBUS_FIRST3 (0xbfd011cc) +#define LS1C_CBUS_SECOND3 (0xbfd011dc) +#define LS1C_CBUS_THIRD3 (0xbfd011ec) +#define LS1C_CBUS_FOURTH3 (0xbfd011fc) +#define LS1C_CBUS_FIFTH3 (0xbfd0120c) + + +// PWM寄存器偏移 +#define LS1C_PWM_CNTR (0x0) +#define LS1C_PWM_HRC (0x4) +#define LS1C_PWM_LRC (0x8) +#define LS1C_PWM_CTRL (0xC) +// PWM基地址 +#define LS1C_REG_BASE_PWM0 (0xbfe5c000) +#define LS1C_REG_BASE_PWM1 (0xbfe5c010) +#define LS1C_REG_BASE_PWM2 (0xbfe5c020) +#define LS1C_REG_BASE_PWM3 (0xbfe5c030) + +//CAN基地址 +#define LS1C_REG_BASE_CAN0 (0xbfe50000) +#define LS1C_REG_BASE_CAN1 (0xbfe54000) + +// 中断配置寄存器 +#define LS1C_INT0_SR (0xbfd01040) +#define LS1C_INT0_EN (0xbfd01044) +#define LS1C_INT0_SET (0xbfd01048) +#define LS1C_INT0_CLR (0xbfd0104c) +#define LS1C_INT0_POL (0xbfd01050) +#define LS1C_INT0_EDGE (0xbfd01054) + +#define LS1c_INT1_SR (0xbfd01058) +#define LS1C_INT1_EN (0xbfd0105c) +#define LS1C_INT1_SET (0xbfd01060) +#define LS1C_INT1_CLR (0xbfd01064) +#define LS1C_INT1_POL (0xbfd01068) +#define LS1C_INT1_EDGE (0xbfd0106c) + +#define LS1C_INT2_SR (0xbfd01070) +#define LS1C_INT2_EN (0xbfd01074) +#define LS1C_INT2_SET (0xbfd01078) +#define LS1C_INT2_CLR (0xbfd0107c) +#define LS1C_INT2_POL (0xbfd01080) +#define LS1C_INT2_EDGE (0xbfd01084) + +#define LS1C_INT3_SR (0xbfd01088) +#define LS1C_INT3_EN (0xbfd0108c) +#define LS1C_INT3_SET (0xbfd01090) +#define LS1C_INT3_CLR (0xbfd01094) +#define LS1C_INT3_POL (0xbfd01098) +#define LS1C_INT3_EDGE (0xbfd0109c) + +#define LS1C_INT4_SR (0xbfd010a0) +#define LS1C_INT4_EN (0xbfd010a4) +#define LS1C_INT4_SET (0xbfd010a8) +#define LS1C_INT4_CLR (0xbfd010ac) +#define LS1C_INT4_POL (0xbfd010b0) +#define LS1C_INT4_EDGE (0xbfd010b4) + + +// I2C寄存器 +#define LS1C_I2C0_BASE (0xbfe58000) +#define LS1C_I2C1_BASE (0xbfe68000) +#define LS1C_I2C2_BASE (0xbfe70000) + + +// SPI寄存器 +#define LS1C_SPI0_BASE (0xbfe80000) +#define LS1C_SPI1_BASE (0xbfec0000) + + +// 串口寄存器 +#define LS1C_UART00_BASE (0xbfe40000) +#define LS1C_UART01_BASE (0xbfe41000) +#define LS1C_UART1_BASE (0xbfe44000) +#define LS1C_UART2_BASE (0xbfe48000) +#define LS1C_UART3_BASE (0xbfe4c000) +#define LS1C_UART4_BASE (0xbfe4c400) +#define LS1C_UART5_BASE (0xbfe4c500) +#define LS1C_UART6_BASE (0xbfe4c600) +#define LS1C_UART7_BASE (0xbfe4c700) +#define LS1C_UART8_BASE (0xbfe4c800) +#define LS1C_UART9_BASE (0xbfe4c900) +#define LS1C_UART10_BASE (0xbfe4ca00) +#define LS1C_UART11_BASE (0xbfe4cb00) + +//RTC寄存器 +#define LS1C_RTC_BASE (0xbfe64024) + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_rtc.c b/bsp/loongson/ls1cdev/libraries/ls1c_rtc.c new file mode 100644 index 0000000000..838f6a85c1 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_rtc.c @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-06 sundm75 first version + */ +#include "ls1c.h" +#include "ls1c_public.h" +#include "ls1c_rtc.h" + +#define LS1C_SEC_OFFSET (4) +#define LS1C_MIN_OFFSET (10) +#define LS1C_HOUR_OFFSET (16) +#define LS1C_DAY_OFFSET (21) +#define LS1C_MONTH_OFFSET (26) + +#define LS1C_SEC_MASK (0x3f) +#define LS1C_MIN_MASK (0x3f) +#define LS1C_HOUR_MASK (0x1f) +#define LS1C_DAY_MASK (0x1f) +#define LS1C_MONTH_MASK (0x3f) +#define LS1C_YEAR_MASK (0xff) + +#define ls1c_get_sec(t) (((t) >> LS1C_SEC_OFFSET) & LS1C_SEC_MASK) +#define ls1c_get_min(t) (((t) >> LS1C_MIN_OFFSET) & LS1C_MIN_MASK) +#define ls1c_get_hour(t) (((t) >> LS1C_HOUR_OFFSET) & LS1C_HOUR_MASK) +#define ls1c_get_day(t) (((t) >> LS1C_DAY_OFFSET) & LS1C_DAY_MASK) +#define ls1c_get_month(t) (((t) >> LS1C_MONTH_OFFSET) & LS1C_MONTH_MASK) + +int RTC_SetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime) +{ + + hrtc->SYS_TOYWRITE0 + = (sTime->Month << LS1C_MONTH_OFFSET) + | (sTime->Date << LS1C_DAY_OFFSET) + | (sTime->Hours << LS1C_HOUR_OFFSET) + | (sTime->Minutes << LS1C_MIN_OFFSET) + | (sTime->Seconds << LS1C_SEC_OFFSET); + hrtc->SYS_TOYWRITE1 = sTime->Year % 100; + printf("\r\ntoy_read0 = 0x%x, toy_read1 = 0x%x.\r\n", hrtc->SYS_TOYREAD0, hrtc->SYS_TOYREAD1); + + return 0; +} + +int RTC_GetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime) +{ + unsigned long toy_read0, toy_read1; + toy_read0 = hrtc->SYS_TOYREAD0; + toy_read1 = hrtc->SYS_TOYREAD1; + sTime->Seconds = ls1c_get_sec(toy_read0); + sTime->Minutes = ls1c_get_min(toy_read0); + sTime->Hours = ls1c_get_hour(toy_read0); + sTime->Date = ls1c_get_day(toy_read0); + sTime->Month = ls1c_get_month(toy_read0); + sTime->Year = toy_read1 & LS1C_YEAR_MASK; + return 0 ; +} + +unsigned char RTC_IsLeapYear(unsigned int nYear) +{ + if((nYear % 4U) != 0U) + { + return 0U; + } + + if((nYear % 100U) != 0U) + { + return 1U; + } + + if((nYear % 400U) == 0U) + { + return 1U; + } + else + { + return 0U; + } +} + +unsigned char RTC_WeekDayNum(unsigned long nYear, unsigned char nMonth, unsigned char nDay) +{ + unsigned long year = 0U, weekday = 0U; + + year = 2000U + nYear; + + if(nMonth < 3U) + { + /*D = { [(23 x month)/9] + day + 4 + year + [(year-1)/4] - [(year-1)/100] + [(year-1)/400] } mod 7*/ + weekday = (((23U * nMonth)/9U) + nDay + 4U + year + ((year-1U)/4U) - ((year-1U)/100U) + ((year-1U)/400U)) % 7U; + } + else + { + /*D = { [(23 x month)/9] + day + 4 + year + [year/4] - [year/100] + [year/400] - 2 } mod 7*/ + weekday = (((23U * nMonth)/9U) + nDay + 4U + year + (year/4U) - (year/100U) + (year/400U) - 2U ) % 7U; + } + + return (unsigned char)weekday; +} diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_rtc.h b/bsp/loongson/ls1cdev/libraries/ls1c_rtc.h new file mode 100644 index 0000000000..dee8000d6b --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_rtc.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-05-06 sundm75 first version + */ + + #ifndef __OPENLOONGSON_RTC_H +#define __OPENLOONGSON_RTC_H + + +#define RTC ( (RTC_TypeDef* )LS1C_RTC_BASE) + +typedef struct +{ + unsigned char Year; /*0 ~ 99 */ + unsigned char Month; /*1 ~ 12 */ + unsigned char Date; /*1 ~ 31 */ + unsigned char Hours; /*0 ~ 23 */ + unsigned char Minutes; /*0 ~ 59 */ + unsigned char Seconds; /*0 ~ 59 */ +}RTC_TimeTypeDef; + +typedef struct +{ + unsigned long SYS_TOYWRITE0; + unsigned long SYS_TOYWRITE1; + unsigned long SYS_TOYREAD0; + unsigned long SYS_TOYREAD1; +} RTC_TypeDef; + +int RTC_SetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime); +int RTC_GetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime); + +unsigned char RTC_IsLeapYear(unsigned int nYear); +unsigned char RTC_WeekDayNum(unsigned long nYear, unsigned char nMonth, unsigned char nDay); + +#endif diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_spi.c b/bsp/loongson/ls1cdev/libraries/ls1c_spi.c new file mode 100644 index 0000000000..6ad39d964c --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_spi.c @@ -0,0 +1,281 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-10-23 勤为本 first version + */ + +// 硬件spi接口源文件 + +#include +#include "ls1c_public.h" +#include "ls1c_regs.h" +#include "ls1c_clock.h" +#include "ls1c_spi.h" + + + + +/* + * 获取指定SPI模块的基地址 + * @SPIx SPI模块的编号 + */ +void *ls1c_spi_get_base(unsigned char SPIx) +{ + void *base = NULL; + + switch (SPIx) + { + case LS1C_SPI_0: + base = (void *)LS1C_SPI0_BASE; + break; + + case LS1C_SPI_1: + base = (void *)LS1C_SPI1_BASE; + break; + + default: + base = NULL; + break; + } + + return base; +} + + +/* + * 打印指定SPI模块的所有寄存器的值 + * @spi_base 基地址 + */ +void ls1c_spi_print_all_regs_info(void *spi_base) +{ + printf("[%s] SPCR=0x%x, SPSR=0x%x, SPER=0x%x, SFC_PARAM=0x%x, SFC_SOFTCS=0x%x, SFC_TIMING=0x%x\r\n", + __FUNCTION__, + reg_read_8(spi_base + LS1C_SPI_SPCR_OFFSET), + reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET), + reg_read_8(spi_base + LS1C_SPI_SPER_OFFSET), + reg_read_8(spi_base + LS1C_SPI_SFC_PARAM_OFFSET), + reg_read_8(spi_base + LS1C_SPI_SFC_SOFTCS_OFFSET), + reg_read_8(spi_base + LS1C_SPI_SFC_TIMING_OFFSET)); + + return ; +} + + +/* + * 根据SPI时钟频率计算分频系数 + * @max_speed_hz SPI最大通信速度 + * @ret 分频系数 + */ +unsigned int ls1c_spi_get_div(unsigned int max_speed_hz) +{ + unsigned long clk = 0; + unsigned int div = 0; + unsigned int div_tmp = 0; + unsigned int bit = 0; + + clk = clk_get_apb_rate(); + div = DIV_ROUND_UP(clk, max_speed_hz); + + if (div < 2) + div = 2; + + if (div > 4096) + div = 4096; + + bit = ls1c_fls(div) - 1; + switch (1 << bit) + { + case 16: + div_tmp = 2; + if (div > (1 << bit)) + { + div_tmp++; + } + break; + + case 32: + div_tmp = 3; + if (div > (1 << bit)) + { + div_tmp += 2; + } + break; + + case 8: + div_tmp = 4; + if (div > (1 << bit)) + { + div_tmp -= 2; + } + break; + + default: + div_tmp = bit - 1; + if (div > (1 << bit)) + { + div_tmp++; + } + break; + } +/* + printf("[%s] clk=%ld, max_speed_hz=%d, div_tmp=%d, bit=%d\r\n", + __FUNCTION__, clk, max_speed_hz, div_tmp, bit); +*/ + return div_tmp; +} + + +/* + * 设置时钟 + * @spi_base 基地址 + * @max_hz 最大频率,单位hz + */ +void ls1c_spi_set_clock(void *spi_base, unsigned long max_hz) +{ + unsigned int div = 0; + unsigned char val = 0; + + // 获取分频系数 + div = ls1c_spi_get_div(max_hz); + + // 设置spr + val = reg_read_8(spi_base + LS1C_SPI_SPCR_OFFSET); + val &= (~LS1C_SPI_SPCR_SPR_MASK); // spr清零 + val |= (div & LS1C_SPI_SPCR_SPR_MASK); // 设置新的spr + reg_write_8(val, spi_base + LS1C_SPI_SPCR_OFFSET); + + // 设置spre + val = reg_read_8(spi_base + LS1C_SPI_SPER_OFFSET); + val &= (~LS1C_SPI_SPER_SPRE_MASK); // spre清零 + val |= ((div >> 2) & LS1C_SPI_SPER_SPRE_MASK); // 设置新的spre + reg_write_8(val, spi_base + LS1C_SPI_SPER_OFFSET); + + return ; +} + + +/* + * 设置通信模式(时钟极性和相位) + * @spi_base 基地址 + * @cpol 时钟极性 + * @cpha 时钟相位 + */ +void ls1c_spi_set_mode(void *spi_base, unsigned char cpol, unsigned char cpha) +{ + unsigned char val = 0; + + val = reg_read_8(spi_base + LS1C_SPI_SPCR_OFFSET); + + // 设置时钟极性--cpol + val &= (~LS1C_SPI_SPCR_CPOL_MASK); // cpol清0 + val |= (cpol << LS1C_SPI_SPCR_CPOL_BIT); // 写入新的cpol + + // 设置时钟相位--cpha + val &= (~LS1C_SPI_SPCR_CPHA_MASK); // cpha清0 + val |= (cpha << LS1C_SPI_SPCR_CPHA_BIT); // 写入新的cpha + + reg_write_8(val, spi_base + LS1C_SPI_SPCR_OFFSET); + + return ; +} + + +/* + * 设置指定片选为指定状态 + * @spi_base 基地址 + * @cs 片选 + * @new_status 片选引脚的新状态,取值为0或1,即高电平或低电平 + */ +void ls1c_spi_set_cs(void *spi_base, unsigned char cs, int new_status) +{ + unsigned char val = 0; + + val = reg_read_8(spi_base + LS1C_SPI_SFC_SOFTCS_OFFSET); + val |= 0x01 << cs ; //对应的csen=1 + if (new_status) // cs = 1 + { + val |= (0x10 << cs); // 指定csn=1 + } + else // cs = 0 + { + val &= ~(0x10 << cs); // 指定csn=0 + } + reg_write_8(val, spi_base + LS1C_SPI_SFC_SOFTCS_OFFSET); + + return ; +} + + +/* + * 等待收发完成 + * @spi_base 基地址 + */ +void ls1c_spi_wait_txrx_done(void *spi_base) +{ + int timeout = LS1C_SPI_TX_TIMEOUT; + + while (timeout--) + { + if (LS1C_SPI_SPSR_SPIF_MASK & reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET)) + break; + } + + return ; +} + + +/* + * 清中断和标志位 + * @spi_base 基地址 + */ +void ls1c_spi_clear(void *spi_base) +{ + unsigned char val = 0; + + // 清中断 + val = reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET); + val |= LS1C_SPI_SPSR_SPIF_MASK; + reg_write_8(val, spi_base + LS1C_SPI_SPSR_OFFSET); + + // 清溢出标志位(Write-Collision Clear) + val = reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET); + if (LS1C_SPI_SPSR_WCOL_MASK & val) + { + printf("[%s] clear register SPSR's wcol!\r\n"); // 手册和linux源码中不一样,加个打印看看 + reg_write_8(val & ~LS1C_SPI_SPSR_WCOL_MASK, spi_base + LS1C_SPI_SPSR_OFFSET); // 写0,linux源码中是写0 +// reg_write_8(val | LS1C_SPI_SPSR_WCOL_MASK, spi_base + LS1C_SPI_SPSR_OFFSET); // 写1,按照1c手册,应该写1 + } + + return ; +} + + + +/* + * 通过指定SPI发送接收一个字节 + * 注意,在多任务的系统中,此函数需要互斥。 + * 即保证在和某个从设备收发某个字节的过程中,不能被切换到其它任务同时与另外的在同一个SPI总线上的从设备通信 + * 因为龙芯1c的每路SPI上可能接有不同的从设备,通信频率、模式等可能不同 + * @spi_base 基地址 + * @tx_ch 待发送的数据 + * @ret 收到的数据 + */ +unsigned char ls1c_spi_txrx_byte(void *spi_base, unsigned char tx_ch) +{ + unsigned char rx_ch = 0; + + // 收发数据 + reg_write_8(tx_ch, spi_base + LS1C_SPI_TxFIFO_OFFSET); // 开始发送 + ls1c_spi_wait_txrx_done(spi_base); // 等待收发完成 + rx_ch = reg_read_8(spi_base + LS1C_SPI_RxFIFO_OFFSET); // 读取收到的数据 + ls1c_spi_clear(spi_base); // 清中断和标志位 + + return rx_ch; +} + + + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_spi.h b/bsp/loongson/ls1cdev/libraries/ls1c_spi.h new file mode 100644 index 0000000000..bd02dd8d17 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_spi.h @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-10-23 勤为本 first version + */ + +// 硬件spi接口的头文件 + +#ifndef __OPENLOONGSON_SPI_H +#define __OPENLOONGSON_SPI_H + + +// SPI模块编号 +#define LS1C_SPI_0 (0) +#define LS1C_SPI_1 (1) + +// 片选 +#define LS1C_SPI_CS_0 (0) +#define LS1C_SPI_CS_1 (1) +#define LS1C_SPI_CS_2 (2) +#define LS1C_SPI_CS_3 (3) + +// 时钟极性和相位 +#define SPI_CPOL_1 (1) +#define SPI_CPOL_0 (0) +#define SPI_CPHA_1 (1) +#define SPI_CPHA_0 (0) + + +// 寄存器偏移 +#define LS1C_SPI_SPCR_OFFSET (0) // 控制寄存器 +#define LS1C_SPI_SPSR_OFFSET (1) // 状态寄存器 +#define LS1C_SPI_TxFIFO_OFFSET (2) // 发送的数据寄存器,与接收数据寄存器的偏移相同 +#define LS1C_SPI_RxFIFO_OFFSET (2) // 接收的数据寄存器,与发送数据寄存器的偏移相同 +#define LS1C_SPI_SPER_OFFSET (3) // 外部寄存器 +#define LS1C_SPI_SFC_PARAM_OFFSET (4) // 参数控制寄存器 +#define LS1C_SPI_SFC_SOFTCS_OFFSET (5) // 片选控制寄存器 +#define LS1C_SPI_SFC_TIMING_OFFSET (6) // 时序控制寄存器 + +// 寄存器SPCR中的位域 +#define LS1C_SPI_SPCR_SPIE_BIT (7) +#define LS1C_SPI_SPCR_SPIE_MASK (0x01 << LS1C_SPI_SPCR_SPIE_BIT) +#define LS1C_SPI_SPCR_SPE_BIT (6) +#define LS1C_SPI_SPCR_SPE_MASK (0x01 << LS1C_SPI_SPCR_SPE_BIT) +#define LS1C_SPI_SPCR_CPOL_BIT (3) +#define LS1C_SPI_SPCR_CPOL_MASK (0x01 << LS1C_SPI_SPCR_CPOL_BIT) +#define LS1C_SPI_SPCR_CPHA_BIT (2) +#define LS1C_SPI_SPCR_CPHA_MASK (0x01 << LS1C_SPI_SPCR_CPHA_BIT) +#define LS1C_SPI_SPCR_SPR_BIT (0) +#define LS1C_SPI_SPCR_SPR_MASK (0x03 << LS1C_SPI_SPCR_SPR_BIT) + +// 寄存器SPSR中的位域 +#define LS1C_SPI_SPSR_SPIF_BIT (7) +#define LS1C_SPI_SPSR_SPIF_MASK (0x01 << LS1C_SPI_SPSR_SPIF_BIT) +#define LS1C_SPI_SPSR_WCOL_BIT (6) +#define LS1C_SPI_SPSR_WCOL_MASK (0x01 << LS1C_SPI_SPSR_WCOL_BIT) + +// 寄存器SPER中的位域 +#define LS1C_SPI_SPER_SPRE_BIT (0) +#define LS1C_SPI_SPER_SPRE_MASK (0x3 << LS1C_SPI_SPER_SPRE_BIT) + +// 寄存器SFC_SOFTCS的位域 +#define LS1C_SPI_SFC_SOFTCS_CSN_BIT (4) +#define LS1C_SPI_SFC_SOFTCS_CSN_MASK (0x0f << LS1C_SPI_SFC_SOFTCS_CSN_BIT) +#define LS1C_SPI_SFC_SOFTCS_CSEN_BIT (0) +#define LS1C_SPI_SFC_SOFTCS_CSEN_MASK (0x0f << LS1C_SPI_SFC_SOFTCS_CSEN_BIT) + +// 发送超时的门限值 +#define LS1C_SPI_TX_TIMEOUT (20000) + + + +/* + * 获取指定SPI模块的基地址 + * @SPIx SPI模块的编号 + */ +void *ls1c_spi_get_base(unsigned char SPIx); + + +/* + * 设置时钟 + * @spi_base 基地址 + * @max_hz 最大频率,单位hz + */ +void ls1c_spi_set_clock(void *spi_base, unsigned long max_hz); + + +/* + * 设置通信模式(时钟极性和相位) + * @spi_base 基地址 + * @cpol 时钟极性 + * @cpha 时钟相位 + */ +void ls1c_spi_set_mode(void *spi_base, unsigned char cpol, unsigned char cpha); + + +/* + * 设置指定片选为指定状态 + * @spi_base 基地址 + * @cs 片选 + * @new_status 片选引脚的新状态,取值为0或1,即高电平或低电平 + */ +void ls1c_spi_set_cs(void *spi_base, unsigned char cs, int new_status); + + +/* + * 通过指定SPI发送接收一个字节 + * 注意,在多任务的系统中,此函数需要互斥。 + * 即保证在和某个从设备收发某个字节的过程中,不能被切换到其它任务同时与另外的在同一个SPI总线上的从设备通信 + * 因为龙芯1c的每路SPI上可能接有不同的从设备,通信频率、模式等可能不同 + * @spi_base 基地址 + * @tx_ch 待发送的数据 + * @ret 收到的数据 + */ +unsigned char ls1c_spi_txrx_byte(void *spi_base, unsigned char tx_ch); + + +/* + * 打印指定SPI模块的所有寄存器的值 + * @spi_base 基地址 + */ +void ls1c_spi_print_all_regs_info(void *spi_base); + + + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_timer.c b/bsp/loongson/ls1cdev/libraries/ls1c_timer.c new file mode 100644 index 0000000000..11cadf18aa --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_timer.c @@ -0,0 +1,301 @@ + /* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * first version + */ +// Ӳ¼þ¶¨ʱÆ÷ԴÂë + +#include +#include "ls1c_public.h" +#include "ls1c_pin.h" +#include "ls1c_clock.h" +#include "ls1c_regs.h" +#include "ls1c_pwm.h" +#include "ls1c_timer.h" + + +// ¶¨ʱÆ÷ÖмÆÊýÆ÷(CNTR¡¢HRCºÍLRC)µÄ×î´óֵ +#define TIMER_COUNTER_MAX (0xffffff) + + + +/* + * »ñȡָ¶¨¶¨ʱÆ÷µļĴæÆ÷»ùµØַ + * @timer Ӳ¼þ¶¨ʱÆ÷ + * @ret »ùµØַ + */ +unsigned int timer_get_reg_base(ls1c_timer_t timer) +{ + unsigned int reg_base = 0; + + switch (timer) + { + case TIMER_PWM0: + reg_base = LS1C_REG_BASE_PWM0; + break; + + case TIMER_PWM1: + reg_base = LS1C_REG_BASE_PWM1; + break; + + case TIMER_PWM2: + reg_base = LS1C_REG_BASE_PWM2; + break; + + case TIMER_PWM3: + reg_base = LS1C_REG_BASE_PWM3; + break; + } + + return reg_base; +} + + +/* + * ³õʼ»¯¶¨ʱÆ÷£¬²¢¿ªʼ¶¨ʱ + * @timer_info ¶¨ʱÆ÷ºͶ¨ʱʱ¼äÐÅϢ + */ +void timer_init(timer_info_t *timer_info) +{ + unsigned int timer_reg_base = 0; // ¼ĴæÆ÷»ùµØַ + unsigned long timer_clk = 0; // Ӳ¼þ¶¨ʱÆ÷µÄʱÖÓ + unsigned long tmp; + unsigned int ctrl = 0; // ¿ØÖƼĴæÆ÷ÖеĿØÖÆÐÅϢ + + // ÅжÏÈë²Î + if (NULL == timer_info) + { + return ; + } + + /* + * °Ѷ¨ʱʱ¼任ËãΪ¼ÆÊýÆ÷µÄֵ + * ¼ÆÊýÆ÷ֵ = ¶¨ʱÆ÷µÄʱÖÓ * ¶¨ʱʱ¼ä(µ¥λns) / 1000000000 + * Áúо1cµĶ¨ʱÆ÷ʱÖÓΪAPBʱÖӣ¬´ﵽ126Mhz£¬ + * Ϊ±ÜÃâ¼ÆËã¹ý³̷¢ÉúÒç³ö£¬ÕâÀï²ÉÓÃÊֶ¯ÓݝÉÏÃæµļÆËãʽ£¬Ҳ¿ÉÒԲÉÓø¡µãÔËËã + */ + timer_clk = clk_get_apb_rate(); + tmp = (timer_clk / 1000000) * (timer_info->time_ns / 1000); // ½«1000000000²ð·ÖΪ1000000ºÍ1000 + tmp = MIN(tmp, TIMER_COUNTER_MAX); + + // ¿ØÖƼĴæÆ÷ÐÅϢ + ctrl = (1 << LS1C_PWM_INT_LRC_EN) + | (0 << LS1C_PWM_INT_HRC_EN) + | (0 << LS1C_PWM_CNTR_RST) + | (0 << LS1C_PWM_INT_SR) + | (1 << LS1C_PWM_INTEN) + | (1 << LS1C_PWM_SINGLE) + | (1 << LS1C_PWM_OE) + | (1 << LS1C_PWM_CNT_EN); + + // ÉèÖø÷¸ö¼ĴæÆ÷ + timer_reg_base = timer_get_reg_base(timer_info->timer); // »ñȡ¼ĴæÆ÷»ùµØַ + reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)); + reg_write_32(tmp--, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)); + reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)); + reg_write_32(ctrl, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); + + return ; +} + + +/* + * ÅжÏָ¶¨¶¨ʱÆ÷ÊǷñ³¬ʱ(ʵÏֶ¨ʱ) + * @timer_info ¶¨ʱÆ÷ + * @ret TRUE or FALSE + */ +BOOL timer_is_time_out(timer_info_t *timer_info) +{ + unsigned int timer_reg_base = 0; // ¼ĴæÆ÷»ùµØַ + unsigned int ctrl; // ¿ØÖƼĴæÆ÷µÄֵ + + // ÅжÏÈë²Î + if (NULL == timer_info) + { + return FALSE; + } + + // ¶Áȡ¿ØÖƼĴæÆ÷ + timer_reg_base = timer_get_reg_base(timer_info->timer); + ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); + + // ÅжÏÖжÏ״̬λ + if (ctrl & (1 << LS1C_PWM_INT_SR)) + { + return TRUE; + } + else + { + return FALSE; + } +} + + + +/* + * ֹͣ¶¨ʱÆ÷ + * @timer_info ¶¨ʱÆ÷ + */ +void timer_stop(timer_info_t *timer_info) +{ + unsigned int timer_reg_base = 0; + + // ÅжÏÈë²Î + if (NULL == timer_info) + { + return ; + } + + timer_reg_base = timer_get_reg_base(timer_info->timer); + reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); + + return ; +} + +/* + * »ñȡ¶¨ʱÆ÷´ӳõʼ»¯µ½ÏÖÔڵÄʱ¼ä(ʵÏּÆʱ¹¦ÄÜ)£¬µ¥λns + * @timer_info Ӳ¼þ¶¨ʱÆ÷ + * @ret ʱ¼䣬µ¥λns + */ +unsigned long timer_get_time_ns(timer_info_t *timer_info) +{ + unsigned int timer_reg_base = 0; + unsigned int cntr = 0; // ¼ĴæÆ÷CNTRµÄֵ + unsigned long time_ns = 0; // ʱ¼䣬µ¥λns + unsigned long timer_clk = 0; // ¶¨ʱÆ÷ʱÖÓ + + // ¶Áȡ¼ĴæÆ÷CNTRµÄֵ + timer_reg_base = timer_get_reg_base(timer_info->timer); + cntr = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)); + + /* + * ½«CNTRֵ»»ËãΪʱ¼䣬µ¥λus + * ʱ¼ä = (¼ÆÊýÆ÷ֵCNTR * 1000000000) / ¶¨ʱÆ÷ʱÖÓƵÂÊ + * Ϊ±ÜÃâ²úÉúÒç³ö£¬Êֶ¯ÓݝÉÏʽΪ ʱ¼ä = (¼ÆÊýÆ÷ֵCNTR * 1000) / (¶¨ʱÆ÷ʱÖÓƵÂÊ / 1000000) + */ + timer_clk = clk_get_apb_rate(); + time_ns = (cntr * 1000 ) / (timer_clk /1000000); +// printf("[%s] time_us=%lu, cntr=%d, timer_clk=%d\n", __FUNCTION__, time_ns, cntr, timer_clk); + + return time_ns; +} + +/* + * ´òӡtimerÏà¹ؼĴæÆ÷µÄֵ + * @timer_info Ӳ¼þ¶¨ʱÆ÷ + */ +void timer_print_regs(timer_info_t *timer_info) +{ + unsigned int timer_reg_base = 0; + + timer_reg_base = timer_get_reg_base(timer_info->timer); + printf("CNTR=0x%x, HRC=0x%x, LRC=0x%x, CTRL=0x%x\n", + reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)), + reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)), + reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)), + reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL))); + + return ; +} + +/* + * ¶¨ʱÆ÷ÖжÏÇå + * @timer_info ¶¨ʱÆ÷ÐÅϢ + */ +void timer_int_clr(timer_info_t *timer_info) +{ + unsigned int timer_reg_base = 0; // ¼ĴæÆ÷»ùµØַ + unsigned int ctrl ; + + // ÅжÏÈë²Î + if (NULL == timer_info) + { + return ; + } + timer_reg_base = timer_get_reg_base(timer_info->timer); // »ñȡ¼ĴæÆ÷»ùµØַ + ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); + ctrl = ctrl | (1<timer); // »ñȡ¼ĴæÆ÷»ùµØַ + ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); + ctrl = ctrl | (1<time_ns / 1000); // ½«1000000000²ð·ÖΪ1000000ºÍ1000 + l_value = MIN(l_value, TIMER_COUNTER_MAX); + h_value = (timer_clk / 1000000) * (timer_info->time_h_ns / 1000); // ½«1000000000²ð·ÖΪ1000000ºÍ1000 + h_value = MIN(h_value, l_value); + + // ¿ØÖƼĴæÆ÷ÐÅϢ + ctrl = (lrc << LS1C_PWM_INT_LRC_EN) + | (hrc << LS1C_PWM_INT_HRC_EN) + | (0 << LS1C_PWM_CNTR_RST) + | (0 << LS1C_PWM_INT_SR) + | (1 << LS1C_PWM_INTEN) + | (1 << LS1C_PWM_SINGLE) + | (1 << LS1C_PWM_OE) + | (1 << LS1C_PWM_CNT_EN); + + // ÉèÖø÷¸ö¼ĴæÆ÷ + timer_reg_base = timer_get_reg_base(timer_info->timer); // »ñȡ¼ĴæÆ÷»ùµØַ + reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)); + reg_write_32(l_value--, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)); + reg_write_32(h_value--, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)); + reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)); + reg_write_32(ctrl, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); + + return ; +} diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_timer.h b/bsp/loongson/ls1cdev/libraries/ls1c_timer.h new file mode 100644 index 0000000000..9f3f86d5d5 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_timer.h @@ -0,0 +1,89 @@ + /* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * first version + */ +// Ӳ¼þ¶¨ʱÆ÷ͷÎļþ + + +#ifndef __OPENLOONGSON_TIMER_H +#define __OPENLOONGSON_TIMER_H + + +#include "ls1c_public.h" + + +// Ӳ¼þ¶¨ʱÆ÷ +typedef enum +{ + TIMER_PWM0, // PWM0ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ + TIMER_PWM1, // PWM1ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ + TIMER_PWM2, // PWM2ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ + TIMER_PWM3 // PWM3ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ +}ls1c_timer_t; + + +// Ӳ¼þ¶¨ʱÆ÷ÐÅϢ +typedef struct +{ + ls1c_timer_t timer; // Ӳ¼þ¶¨ʱÆ÷ + unsigned long time_ns; // µͶ¨ʱʱ¼ä + unsigned long time_h_ns; // ¸߶¨ʱʱ¼ä +}timer_info_t; + +/* + * ³õʼ»¯¶¨ʱÆ÷£¬²¢¿ªʼ¶¨ʱ + * @timer_info ¶¨ʱÆ÷ºͶ¨ʱʱ¼äÐÅϢ + */ +void timer_init(timer_info_t *timer_info); + +/* + * ÅжÏָ¶¨¶¨ʱÆ÷ÊǷñ³¬ʱ + * @timer_info ¶¨ʱÆ÷ + * @ret TRUE or FALSE + */ +BOOL timer_is_time_out(timer_info_t *timer_info); + +/* + * ֹͣ¶¨ʱÆ÷ + * @timer_info ¶¨ʱÆ÷ + */ +void timer_stop(timer_info_t *timer_info); + +/* + * »ñȡ¶¨ʱÆ÷´ӳõʼ»¯µ½ÏÖÔڵÄʱ¼ä(ʵÏּÆʱ¹¦ÄÜ)£¬µ¥λns + * @timer_info Ӳ¼þ¶¨ʱÆ÷ + * @ret ʱ¼䣬µ¥λns + */ +unsigned long timer_get_time_ns(timer_info_t *timer_info); + +/* + * ´òӡtimerÏà¹ؼĴæÆ÷µÄֵ + * @timer_info Ӳ¼þ¶¨ʱÆ÷ + */ +void timer_print_regs(timer_info_t *timer_info); + +/* + * ¶¨ʱÆ÷ÖжÏÇå + * @timer_info ¶¨ʱÆ÷ÐÅϢ + */ +void timer_int_clr(timer_info_t *timer_info); + +/* + * ¶¨ʱÆ÷¼ÆÊýÇå + * @timer_info ¶¨ʱÆ÷ÐÅϢ + */ +void timer_cnt_clr(timer_info_t *timer_info); + +/* + * ³õʼ»¯¶¨ʱÆ÷£¬²¢¿ªʼÖж϶¨ʱ + * @timer_info ¶¨ʱÆ÷ºͶ¨ʱʱ¼äÐÅϢ + * @hrc ¸ßÖжÏ lrc µÍÖжÏ Ϊ1´򿪣¬Ϊ0¹رÕ +*/ +void timer_int_init(timer_info_t *timer_info, int hrc, int lrc); +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_uart.c b/bsp/loongson/ls1cdev/libraries/ls1c_uart.c new file mode 100644 index 0000000000..fac2010964 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_uart.c @@ -0,0 +1,325 @@ + /* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * first version + */ +// 串口相关源码 + +#include +#include +#include "ls1c_public.h" +#include "ls1c_regs.h" +#include "ls1c_pin.h" +#include "ls1c_uart.h" +#include "ls1c_clock.h" +#include "ls1c.h" + + +// 串口线路状态寄存器的位域 +#define LS1C_UART_LSR_TE (1 << 6) +#define LS1C_UART_LSR_TFE (1 << 5) + + +// 打印缓存的大小 +#define LS1C_UART_PRINT_BUF_SIZE (256) + + +// 调试串口信息 +ls1c_uart_info_t debug_uart_info = {0}; + + +/* + * 获取指定串口模块的基地址 + * @UARTx 串口编号 + * @ret 基地址 + */ +void *uart_get_base(ls1c_uart_t UARTx) +{ + void *base = NULL; + + switch (UARTx) + { + case LS1C_UART00: + base = (void *)LS1C_UART00_BASE; + break; + case LS1C_UART01: + base = (void *)LS1C_UART01_BASE; + break; + + case LS1C_UART1: + base = (void *)LS1C_UART1_BASE; + break; + + case LS1C_UART2: + base = (void *)LS1C_UART2_BASE; + break; + + case LS1C_UART3: + base = (void *)LS1C_UART3_BASE; + break; + + case LS1C_UART4: + base = (void *)LS1C_UART4_BASE; + break; + + case LS1C_UART5: + base = (void *)LS1C_UART5_BASE; + break; + + case LS1C_UART6: + base = (void *)LS1C_UART6_BASE; + break; + + case LS1C_UART7: + base = (void *)LS1C_UART7_BASE; + break; + + case LS1C_UART8: + base = (void *)LS1C_UART8_BASE; + break; + + case LS1C_UART9: + base = (void *)LS1C_UART9_BASE; + break; + + case LS1C_UART10: + base = (void *)LS1C_UART10_BASE; + break; + + case LS1C_UART11: + base = (void *)LS1C_UART11_BASE; + break; + + default: + break; + } + + return base; +} + + +/* + * 初始化指定的串口模块 + * @uart_info_p 串口模块信息 + */ +void uart_init(ls1c_uart_info_t *uart_info_p) +{ + void *uart_base = uart_get_base(uart_info_p->UARTx); + unsigned long baudrate_div = 0; + + // 禁止所有中断 + reg_write_8(0, uart_base + LS1C_UART_IER_OFFSET); + + // 接收FIFO的中断申请Trigger为14字节,清空发送和接收FIFO,并复位 + reg_write_8(0xc3, uart_base + LS1C_UART_FCR_OFFSET); + + // 设置波特率 + reg_write_8(0x80, uart_base + LS1C_UART_LCR_OFFSET); + baudrate_div = clk_get_cpu_rate() / 16 / uart_info_p->baudrate / 2; + reg_write_8((baudrate_div >> 8) & 0xff, uart_base + LS1C_UART_MSB_OFFSET); + reg_write_8(baudrate_div & 0xff, uart_base + LS1C_UART_LSB_OFFSET); + + // 8个数据位,1个停止位,无校验 + reg_write_8(0x03, uart_base + LS1C_UART_LCR_OFFSET); + + // 使能接收中断 + if (TRUE == uart_info_p->rx_enable) + { + reg_write_8(IER_IRxE|IER_ILE , uart_base + LS1C_UART_IER_OFFSET); + } + + return ; +} + + +/* + * 判断FIFO是否为空 + * @uartx 串口号 + * @ret TRUE or FALSE + */ +BOOL uart_is_transmit_empty(ls1c_uart_t uartx) +{ + void *uart_base = uart_get_base(uartx); + unsigned char status = reg_read_8(uart_base + LS1C_UART_LSR_OFFSET); + + if (status & (LS1C_UART_LSR_TE | LS1C_UART_LSR_TFE)) + { + return TRUE; + } + else + { + return FALSE; + } +} + + +/* + * 发送一个字节 + * @uartx 串口号 + * @ch 待发送的字符串 + */ +void uart_putc(ls1c_uart_t uartx, unsigned char ch) +{ + void *uart_base = uart_get_base(uartx); + + // 等待 + while (FALSE == uart_is_transmit_empty(uartx)) + ; + + // 发送 + reg_write_8(ch, uart_base + LS1C_UART_DAT_OFFSET); + + return ; +} + + +/* + * 打印一个字符串到指定串口 + * @uartx 串口号 + * @str 待打印的字符串 + */ +void uart_print(ls1c_uart_t uartx, const char *str) +{ + while ('\0' != *str) // 判断是否为字符串结束符 + { + uart_putc(uartx, *str); // 发送一个字符 + str++; + } + + return ; +} + + +/* + * 初始化串口2 + */ +void uart2_init(void) +{ + unsigned int tx_gpio = 37; + unsigned int rx_gpio = 36; + + // 设置复用 + pin_set_remap(tx_gpio, PIN_REMAP_SECOND); + pin_set_remap(rx_gpio, PIN_REMAP_SECOND); + + // 初始化相关寄存器 + debug_uart_info.UARTx = LS1C_UART2; + debug_uart_info.baudrate = 115200; + debug_uart_info.rx_enable = FALSE; // 调试串口只需要打印(发送)功能,不需要接收功能 + uart_init(&debug_uart_info); + + return ; +} + + +/* + * 在串口2上打印字符串 + * @str 待打印的字符串 + */ +void uart2_print(const char *str) +{ + uart_print(LS1C_UART2, str); + return ; +} + + +/* + * 在调试串口打印字符串 + * @str 待打印的字符串 + */ +void uart_debug_print(const char *str) +{ + uart_print(debug_uart_info.UARTx, str); + return ; +} + + +/* + * 在调试串口打印一个字符 + * @ch 待打印的字符 + */ +void uart_debug_putc(unsigned char ch) +{ + uart_putc(debug_uart_info.UARTx, ch); + return ; +} + + +/* + * 把中断号转换为串口号 + * @IRQn 中断号 + * @ret 串口号 + */ +ls1c_uart_t uart_irqn_to_uartx(int IRQn) +{ + ls1c_uart_t uartx = LS1C_UART2; + + switch (IRQn) + { + /* 串口UART00和UART01的中断号还待确定 + case LS1C_UART00_IRQ: + uartx = LS1C_UART00; + break; + + case LS1C_UART01_IRQ: + uartx = LS1C_UART01; + break; + */ + + case LS1C_UART1_IRQ: + uartx = LS1C_UART1; + break; + + case LS1C_UART2_IRQ: + uartx = LS1C_UART2; + break; + + case LS1C_UART3_IRQ: + uartx = LS1C_UART3; + break; + + case LS1C_UART4_IRQ: + uartx = LS1C_UART4; + break; + + case LS1C_UART5_IRQ: + uartx = LS1C_UART5; + break; + + case LS1C_UART6_IRQ: + uartx = LS1C_UART6; + break; + + case LS1C_UART7_IRQ: + uartx = LS1C_UART7; + break; + + case LS1C_UART8_IRQ: + uartx = LS1C_UART8; + break; + + case LS1C_UART9_IRQ: + uartx = LS1C_UART9; + break; + + case LS1C_UART10_IRQ: + uartx = LS1C_UART10; + break; + + case LS1C_UART11_IRQ: + uartx = LS1C_UART11; + break; + + default: + uartx = LS1C_UART2; + break; + } + + return uartx; +} + + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_uart.h b/bsp/loongson/ls1cdev/libraries/ls1c_uart.h new file mode 100644 index 0000000000..8d017dd767 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_uart.h @@ -0,0 +1,189 @@ + /* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * first version + */ +// 串口相关头文件 + + +#ifndef __OPENLOONGSON_UART_H +#define __OPENLOONGSON_UART_H + + +#include "ls1c_public.h" + + +// 串口各寄存器相对基地址的偏移 +#define LS1C_UART_DAT_OFFSET (0) +#define LS1C_UART_IER_OFFSET (1) +#define LS1C_UART_IIR_OFFSET (2) +#define LS1C_UART_FCR_OFFSET (2) +#define LS1C_UART_LCR_OFFSET (3) +#define LS1C_UART_MCR_OFFSET (4) +#define LS1C_UART_LSR_OFFSET (5) +#define LS1C_UART_MSR_OFFSET (6) + +#define LS1C_UART_LSB_OFFSET (0) // 分频锁存器1 +#define LS1C_UART_MSB_OFFSET (1) // 分频锁存器2 + +/* interrupt enable register */ +#define IER_IRxE 0x1 /* 接收有效数据中断使能 */ +#define IER_ITxE 0x2 /* 传输保存寄存器为空中断使能 */ +#define IER_ILE 0x4 /* 接收器线路状态中断使能 */ +#define IER_IME 0x8 /* Modem状态中断使能 */ + +/* interrupt identification register */ +#define IIR_IMASK 0xf /* mask */ +#define IIR_RXTOUT 0xc /* receive timeout */ +#define IIR_RLS 0x6 /* receive line status */ +#define IIR_RXRDY 0x4 /* receive ready */ +#define IIR_TXRDY 0x2 /* transmit ready */ +#define IIR_NOPEND 0x1 /* nothing */ +#define IIR_MLSC 0x0 /* modem status */ +#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ + +/* fifo control register */ +#define FIFO_ENABLE 0x01 /* enable fifo */ +#define FIFO_RCV_RST 0x02 /* reset receive fifo */ +#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ +#define FIFO_DMA_MODE 0x08 /* enable dma mode */ +#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ +#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ +#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ +#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ + +// 线路控制寄存器 +/* character format control register */ +#define CFCR_DLAB 0x80 /* divisor latch */ +#define CFCR_SBREAK 0x40 /* send break */ +#define CFCR_PZERO 0x30 /* zero parity */ +#define CFCR_PONE 0x20 /* one parity */ +#define CFCR_PEVEN 0x10 /* even parity */ +#define CFCR_PODD 0x00 /* odd parity */ +#define CFCR_PENAB 0x08 /* parity enable */ +#define CFCR_STOPB 0x04 /* 2 stop bits */ +#define CFCR_8BITS 0x03 /* 8 data bits */ +#define CFCR_7BITS 0x02 /* 7 data bits */ +#define CFCR_6BITS 0x01 /* 6 data bits */ +#define CFCR_5BITS 0x00 /* 5 data bits */ + +/* modem control register */ +#define MCR_LOOPBACK 0x10 /* loopback */ +#define MCR_IENABLE 0x08 /* output 2 = int enable */ +#define MCR_DRS 0x04 /* output 1 = xxx */ +#define MCR_RTS 0x02 /* enable RTS */ +#define MCR_DTR 0x01 /* enable DTR */ + +/* line status register */ +#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ +#define LSR_TSRE 0x40 /* transmitter empty */ +#define LSR_TXRDY 0x20 /* transmitter ready */ +#define LSR_BI 0x10 /* break detected */ +#define LSR_FE 0x08 /* framing error */ +#define LSR_PE 0x04 /* parity error */ +#define LSR_OE 0x02 /* overrun error */ +#define LSR_RXRDY 0x01 /* receiver ready */ +#define LSR_RCV_MASK 0x1f + + +// 串口模块编号 +typedef enum +{ + LS1C_UART00 = 0, // 全功能串口UART0可以分为两个四线串口UART00和UART01 + LS1C_UART01, + LS1C_UART1, + LS1C_UART2, + LS1C_UART3, + LS1C_UART4, + LS1C_UART5, + LS1C_UART6, + LS1C_UART7, + LS1C_UART8, + LS1C_UART9, + LS1C_UART10, + LS1C_UART11 +}ls1c_uart_t; + + +// 串口信息 +typedef struct +{ + ls1c_uart_t UARTx; // 串口模块编号 + unsigned int baudrate; // 波特率 + BOOL rx_enable; // 是否需要使用串口接收数据(使能接收中断),发送默认使能 +}ls1c_uart_info_t; + + + +/* + * 获取指定串口模块的基地址 + * @UARTx 串口编号 + * @ret 基地址 + */ +void *uart_get_base(ls1c_uart_t UARTx); + + +/* + * 初始化指定的串口模块 + * @uart_info_p 串口模块信息 + */ +void uart_init(ls1c_uart_info_t *uart_info_p); + + +/* + * 初始化串口2 + */ +void uart2_init(void); + + +/* + * 在串口2上打印字符串 + * @str 待打印的字符串 + */ +void uart2_print(const char *str); + + +/* + * 在调试串口打印字符串 + * @str 待打印的字符串 + */ +void uart_debug_print(const char *str); + + +/* + * 在调试串口打印一个字符 + * @ch 待打印的字符 + */ +void uart_debug_putc(unsigned char ch); + + +/* + * 把中断号转换为串口号 + * @IRQn 中断号 + * @ret 串口号 + */ +ls1c_uart_t uart_irqn_to_uartx(int IRQn); + + +/* + * 发送一个字节 + * @uartx 串口号 + * @ch 待发送的字符串 + */ +void uart_putc(ls1c_uart_t uartx, unsigned char ch); + + +/* + * 打印一个字符串到指定串口 + * @uartx 串口号 + * @str 待打印的字符串 + */ +void uart_print(ls1c_uart_t uartx, const char *str); + + +#endif + diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_wdog.c b/bsp/loongson/ls1cdev/libraries/ls1c_wdog.c new file mode 100644 index 0000000000..4034281d10 --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_wdog.c @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2019-05-06 sundm75 first version + */ + +#include "ls1c.h" +#include "ls1c_wdog.h" + +/* +系统先配置看门狗使能位 WDT_EN; +然后配置看门狗计数器的初始值 WDT_TIMER; +当设置 WDT_SET 后,计数器开始减计数; +当还没有减到 0 时,重置看门狗计数器,系统不会重启; +当看门狗计数器减到 0 时,则系统重启。 +*/ + +static unsigned int WDT_timer = 0; + +/* 暂时为空 */ +unsigned int Wdog_Init(void) +{ + return 0; +} + +/* 配置看门狗使能寄存器(WDT_EN) */ +unsigned int Wdog_Enable(void) +{ + unsigned int ctrl; + ctrl = (WDT_EN); + ctrl |= 0x01; + + WDT_EN = ctrl; + return 0; +} + +/* 配置看门狗失能寄存器(WDT_EN) */ +unsigned int Wdog_Disable(void) +{ + unsigned int ctrl; + ctrl = (WDT_EN); + ctrl &= ~0x01; + WDT_EN = ctrl; + return 0; +} + +/* 配置看门狗设置寄存器 (WDT_SET) */ +unsigned int Wdog_Set(void) +{ + unsigned int ctrl; + ctrl = (WDT_SET); + ctrl |= 0x01; + WDT_SET = ctrl; + return 0; +} + +/* 配置看门狗设置寄存器 (WDT_SET) */ +unsigned int Wdog_Reset(void) +{ + unsigned int ctrl; + ctrl = (WDT_SET); + ctrl &= ~0x01; + WDT_SET = ctrl; + return 0; +} + +/* 获得看门狗计数器(WDT_timer) 的值*/ +unsigned int Wdog_GetValue(void) +{ + unsigned int cnt; + cnt = (WDT_TIMER); + return cnt; +} + +/* 配置看门狗计数器(WDT_timer)的值*/ +unsigned int Wdog_LoadValue(unsigned int cnt) +{ + WDT_TIMER = cnt; + WDT_timer = cnt; + return 0; +} + +/* 获得看门狗计数器设定值 */ +unsigned int Wdog_GetPreValue(void) +{ + return WDT_timer; +} diff --git a/bsp/loongson/ls1cdev/libraries/ls1c_wdog.h b/bsp/loongson/ls1cdev/libraries/ls1c_wdog.h new file mode 100644 index 0000000000..a4717eedbf --- /dev/null +++ b/bsp/loongson/ls1cdev/libraries/ls1c_wdog.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2019-05-06 sundm75 first version + */ + +#ifndef _LS1C_WDOG_H_ +#define _LS1C_WDOG_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +unsigned int Wdog_Init(void); // 暂时为空 +unsigned int Wdog_Enable(void); // 看门狗使能寄存器(WDT_EN) +unsigned int Wdog_Disable(void); // 看门狗失能寄存器(WDT_EN) +unsigned int Wdog_Set(void); // 看门狗设置寄存器 (WDT_SET) +unsigned int Wdog_Reset(void); // 看门狗设置寄存器 (WDT_SET) +unsigned int Wdog_GetValue(void); // 获得看门狗计数器(WDT_timer) +unsigned int Wdog_LoadValue(unsigned int cnt); // 设置看门狗计数器(WDT_timer) +unsigned int Wdog_GetPreValue(void); // 获得看门狗计数器设定值 + +#ifdef __cplusplus +} +#endif + +#endif /* _LS1C_WDOG_H_ */ + diff --git a/bsp/loongson/ls1cdev/ls1c_ram.lds b/bsp/loongson/ls1cdev/ls1c_ram.lds new file mode 100644 index 0000000000..aced32b90b --- /dev/null +++ b/bsp/loongson/ls1cdev/ls1c_ram.lds @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2010-05-17 swkyer first version + * 2010-09-04 bernard move the beginning entry to 0x80200000 + * 2018-05-12 zhuangwei use -Ttext + * 2019-12-04 Jiaxun Yang Adapt new memory layout + */ + +OUTPUT_ARCH(mips) +GROUP(-lgcc -lc) + +ENTRY(_start) +SECTIONS +{ + . = ALIGN(4); + .text : + { + start = ABSOLUTE(.); + *(.selfboot); + *(.selfboot_data); + . = ALIGN(4); + __selfboot_end = .; + . = ALIGN(0x1000); + __ebase_entry = .; + KEEP(*(.exc_vectors)) + __ebase_end = .; + *(.start); + *(.text) + *(.text.*) + *(.rodata) + *(.rodata.*) + *(.rodata1) + *(.rodata1.*) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + } + + .eh_frame_hdr : + { + *(.eh_frame_hdr) + *(.eh_frame_entry) + } + .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } + + . = ALIGN(4); + .data : + { + *(.data) + *(.data.*) + + *(.data1) + *(.data1.*) + + . = ALIGN(8); + _gp = ABSOLUTE(.); /* Base of small data */ + + *(.sdata) + *(.sdata.*) + } + _edata = .; + + .stack : + { + . = ALIGN(8); + _system_stack_start = .; + . = . + 0x400; /* 1kb system stack */ + _system_stack = .; + } + + .sbss : + { + __bss_start = .; + *(.sbss) + *(.sbss.*) + *(.dynsbss) + *(.scommon) + } + + .bss : + { + *(.bss) + *(.bss.*) + *(.dynbss) + *(COMMON) + __bss_end = .; + } + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} diff --git a/bsp/loongson/ls1cdev/rtconfig.h b/bsp/loongson/ls1cdev/rtconfig.h new file mode 100644 index 0000000000..9e6ea21d94 --- /dev/null +++ b/bsp/loongson/ls1cdev/rtconfig.h @@ -0,0 +1,278 @@ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ + +/* RT-Thread Kernel */ + +#define RT_NAME_MAX 10 +#define RT_ALIGN_SIZE 8 +#define RT_THREAD_PRIORITY_32 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 1000 +#define RT_USING_OVERFLOW_CHECK +#define RT_USING_HOOK +#define RT_HOOK_USING_FUNC_PTR +#define RT_USING_IDLE_HOOK +#define RT_IDLE_HOOK_LIST_SIZE 4 +#define IDLE_THREAD_STACK_SIZE 8192 + +/* kservice optimization */ + +#define RT_DEBUG +#define RT_DEBUG_COLOR + +/* Inter-Thread communication */ + +#define RT_USING_SEMAPHORE +#define RT_USING_MUTEX +#define RT_USING_EVENT +#define RT_USING_MAILBOX +#define RT_USING_MESSAGEQUEUE + +/* Memory Management */ + +#define RT_USING_MEMPOOL +#define RT_USING_SMALL_MEM +#define RT_USING_MEMHEAP +#define RT_MEMHEAP_FAST_MODE +#define RT_USING_SMALL_MEM_AS_HEAP +#define RT_USING_HEAP + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_INTERRUPT_INFO +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLE_DEVICE_NAME "uart2" +#define RT_VER_NUM 0x40100 + +/* RT-Thread Components */ + +#define RT_USING_COMPONENTS_INIT +#define RT_USING_USER_MAIN +#define RT_MAIN_THREAD_STACK_SIZE 8192 +#define RT_MAIN_THREAD_PRIORITY 10 + +/* C++ features */ + + +/* Command shell */ + +#define RT_USING_FINSH +#define RT_USING_MSH +#define FINSH_USING_MSH +#define FINSH_THREAD_NAME "tshell" +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 8192 +#define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 +#define FINSH_USING_SYMTAB +#define FINSH_CMD_SIZE 80 +#define MSH_USING_BUILT_IN_COMMANDS +#define FINSH_USING_DESCRIPTION +#define FINSH_ARG_MAX 10 + +/* Device virtual file system */ + +#define RT_USING_DFS +#define DFS_USING_POSIX +#define DFS_USING_WORKDIR +#define DFS_FILESYSTEMS_MAX 2 +#define DFS_FILESYSTEM_TYPES_MAX 2 +#define DFS_FD_MAX 4 +#define RT_USING_DFS_ELMFAT + +/* elm-chan's FatFs, Generic FAT Filesystem Module */ + +#define RT_DFS_ELM_CODE_PAGE 936 +#define RT_DFS_ELM_WORD_ACCESS +#define RT_DFS_ELM_USE_LFN_0 +#define RT_DFS_ELM_USE_LFN 0 +#define RT_DFS_ELM_LFN_UNICODE_0 +#define RT_DFS_ELM_LFN_UNICODE 0 +#define RT_DFS_ELM_MAX_LFN 64 +#define RT_DFS_ELM_DRIVES 2 +#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 +#define RT_DFS_ELM_REENTRANT +#define RT_DFS_ELM_MUTEX_TIMEOUT 3000 +#define RT_USING_DFS_DEVFS + +/* Device Drivers */ + +#define RT_USING_DEVICE_IPC +#define RT_USING_SERIAL +#define RT_USING_SERIAL_V1 +#define RT_SERIAL_USING_DMA +#define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_CAN +#define RT_USING_I2C +#define RT_USING_I2C_BITOPS +#define RT_USING_PIN +#define RT_USING_SPI +#define RT_USING_SPI_MSD + +/* Using USB */ + + +/* POSIX layer and C standard library */ + +#define RT_LIBC_DEFAULT_TIMEZONE 8 + +/* POSIX (Portable Operating System Interface) layer */ + +#define RT_USING_POSIX_DELAY +#define RT_USING_POSIX_CLOCK +#define RT_USING_PTHREADS +#define PTHREAD_NUM_MAX 8 + +/* Interprocess Communication (IPC) */ + + +/* Socket is in the 'Network' category */ + +/* Network */ + +/* Socket abstraction layer */ + + +/* Network interface device */ + +#define NETDEV_USING_PING + +/* light weight TCP/IP stack */ + +#define RT_USING_LWIP +#define RT_USING_LWIP141 +#define RT_LWIP_MEM_ALIGNMENT 4 +#define RT_LWIP_IGMP +#define RT_LWIP_ICMP +#define RT_LWIP_DNS +#define RT_LWIP_DHCP +#define IP_SOF_BROADCAST 1 +#define IP_SOF_BROADCAST_RECV 1 + +/* Static IPv4 Address */ + +#define RT_LWIP_IPADDR "192.168.1.254" +#define RT_LWIP_GWADDR "192.168.1.1" +#define RT_LWIP_MSKADDR "255.255.255.0" +#define RT_LWIP_UDP +#define RT_LWIP_TCP +#define RT_LWIP_RAW +#define RT_MEMP_NUM_NETCONN 8 +#define RT_LWIP_PBUF_NUM 4 +#define RT_LWIP_RAW_PCB_NUM 4 +#define RT_LWIP_UDP_PCB_NUM 4 +#define RT_LWIP_TCP_PCB_NUM 3 +#define RT_LWIP_TCP_SEG_NUM 40 +#define RT_LWIP_TCP_SND_BUF 4096 +#define RT_LWIP_TCP_WND 2048 +#define RT_LWIP_TCPTHREAD_PRIORITY 12 +#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8 +#define RT_LWIP_TCPTHREAD_STACKSIZE 8192 +#define RT_LWIP_ETHTHREAD_PRIORITY 14 +#define RT_LWIP_ETHTHREAD_STACKSIZE 8192 +#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8 +#define LWIP_NETIF_STATUS_CALLBACK 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +#define SO_REUSE 1 +#define LWIP_SO_RCVTIMEO 1 +#define LWIP_SO_SNDTIMEO 1 +#define LWIP_SO_RCVBUF 1 +#define LWIP_SO_LINGER 0 +#define LWIP_NETIF_LOOPBACK 0 +#define RT_LWIP_USING_PING + +/* AT commands */ + + +/* VBUS(Virtual Software BUS) */ + + +/* Utilities */ + + +/* RT-Thread Utestcases */ + + +/* RT-Thread MIPS CPU */ + + +/* RT-Thread online packages */ + +/* IoT - internet of things */ + + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + + +/* IoT Cloud */ + + +/* security packages */ + + +/* language packages */ + + +/* multimedia packages */ + +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + + +/* tools packages */ + + +/* system packages */ + +/* enhanced kernel services */ + + +/* POSIX extension functions */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + + +/* peripheral libraries and drivers */ + + +/* AI packages */ + + +/* miscellaneous packages */ + +/* samples: kernel and components samples */ + + +/* entertainment: terminal games and other interesting software packages */ + +#define SOC_LS1C300 +#define RT_LS1C_OPENLOONGSON +#define RT_USING_UART2 +#define RT_USING_UART1 +#define RT_UART_RX_BUFFER_SIZE 64 +#define RT_USING_GMAC_INT_MODE +#define NO_TOUCH + +#endif diff --git a/bsp/loongson/ls1cdev/rtconfig.py b/bsp/loongson/ls1cdev/rtconfig.py new file mode 100644 index 0000000000..be5da5d30a --- /dev/null +++ b/bsp/loongson/ls1cdev/rtconfig.py @@ -0,0 +1,58 @@ +import os + +# CPU options +ARCH='mips' +CPU ='gs232' + +# toolchains options +CROSS_TOOL = 'gcc' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = "/opt/mips-2016.05/bin" +# EXEC_PATH = r'D:\mgc\embedded\codebench\bin' +else: + print('================ERROR===========================') + print('Not support %s yet!' % CROSS_TOOL) + print('=================================================') + exit(0) + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +# don't use loongson company's cross-compilation tool chain to compile the RT-Thread +# must use the cross-compilation tool chain that RT-Thread recommand +# download: https://coding.net/u/bernard/p/rtthread_tools/git/blob/master/GCC_Toolchains.md +PREFIX = 'mips-sde-elf-' +CC = PREFIX + 'gcc' +AS = PREFIX + 'gcc' +AR = PREFIX + 'ar' +LINK = PREFIX + 'gcc' +TARGET_EXT = 'elf' +SIZE = PREFIX + 'size' +OBJDUMP = PREFIX + 'objdump' +OBJCPY = PREFIX + 'objcopy' +READELF = PREFIX + 'readelf' + +DEVICE = ' -mips32 -msoft-float -mfp32' +CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' +AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' +LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1c_ram.lds' + +CPATH = '' +LPATH = '' + +if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' +else: + CFLAGS += ' -O2' + +DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' +READELF_ACTION = READELF + ' -a $TARGET > rtt.map\n' +POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' diff --git a/bsp/loongson/ls2kdev/.config b/bsp/loongson/ls2kdev/.config new file mode 100644 index 0000000000..568a224d1e --- /dev/null +++ b/bsp/loongson/ls2kdev/.config @@ -0,0 +1,768 @@ +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# + +# +# RT-Thread Kernel +# +CONFIG_RT_NAME_MAX=30 +# CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMP is not set +CONFIG_RT_ALIGN_SIZE=8 +# CONFIG_RT_THREAD_PRIORITY_8 is not set +CONFIG_RT_THREAD_PRIORITY_32=y +# CONFIG_RT_THREAD_PRIORITY_256 is not set +CONFIG_RT_THREAD_PRIORITY_MAX=32 +CONFIG_RT_TICK_PER_SECOND=1000 +CONFIG_RT_USING_OVERFLOW_CHECK=y +CONFIG_RT_USING_HOOK=y +CONFIG_RT_HOOK_USING_FUNC_PTR=y +CONFIG_RT_USING_IDLE_HOOK=y +CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 +CONFIG_IDLE_THREAD_STACK_SIZE=16384 +# CONFIG_RT_USING_TIMER_SOFT is not set + +# +# kservice optimization +# +# CONFIG_RT_KSERVICE_USING_STDLIB is not set +# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set +# CONFIG_RT_USING_TINY_FFS is not set +# CONFIG_RT_PRINTF_LONGLONG is not set +CONFIG_RT_DEBUG=y +# CONFIG_RT_DEBUG_COLOR is not set +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set + +# +# Inter-Thread communication +# +CONFIG_RT_USING_SEMAPHORE=y +CONFIG_RT_USING_MUTEX=y +CONFIG_RT_USING_EVENT=y +CONFIG_RT_USING_MAILBOX=y +CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_SIGNALS is not set + +# +# Memory Management +# +CONFIG_RT_USING_MEMPOOL=y +CONFIG_RT_USING_SMALL_MEM=y +# CONFIG_RT_USING_SLAB is not set +# CONFIG_RT_USING_MEMHEAP is not set +CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y +# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_SLAB_AS_HEAP is not set +# CONFIG_RT_USING_USERHEAP is not set +# CONFIG_RT_USING_NOHEAP is not set +# CONFIG_RT_USING_MEMTRACE is not set +# CONFIG_RT_USING_HEAP_ISR is not set +CONFIG_RT_USING_HEAP=y + +# +# Kernel Device Object +# +CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set +# CONFIG_RT_USING_INTERRUPT_INFO is not set +CONFIG_RT_USING_CONSOLE=y +CONFIG_RT_CONSOLEBUF_SIZE=256 +CONFIG_RT_CONSOLE_DEVICE_NAME="uart0" +CONFIG_RT_VER_NUM=0x40100 +CONFIG_ARCH_CPU_64BIT=y +# CONFIG_RT_USING_CPU_FFS is not set +CONFIG_ARCH_MIPS64=y +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set + +# +# RT-Thread Components +# +CONFIG_RT_USING_COMPONENTS_INIT=y +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=16384 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 +# CONFIG_RT_USING_LEGACY is not set + +# +# C++ features +# +# CONFIG_RT_USING_CPLUSPLUS is not set + +# +# Command shell +# +CONFIG_RT_USING_FINSH=y +CONFIG_RT_USING_MSH=y +CONFIG_FINSH_USING_MSH=y +CONFIG_FINSH_THREAD_NAME="tshell" +CONFIG_FINSH_THREAD_PRIORITY=20 +CONFIG_FINSH_THREAD_STACK_SIZE=16384 +CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 +CONFIG_FINSH_USING_SYMTAB=y +CONFIG_FINSH_CMD_SIZE=80 +CONFIG_MSH_USING_BUILT_IN_COMMANDS=y +CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set +# CONFIG_FINSH_USING_AUTH is not set +CONFIG_FINSH_ARG_MAX=10 + +# +# Device virtual file system +# +CONFIG_RT_USING_DFS=y +CONFIG_DFS_USING_POSIX=y +CONFIG_DFS_USING_WORKDIR=y +CONFIG_DFS_FILESYSTEMS_MAX=4 +CONFIG_DFS_FILESYSTEM_TYPES_MAX=4 +CONFIG_DFS_FD_MAX=16 +# CONFIG_RT_USING_DFS_MNTTABLE is not set +CONFIG_RT_USING_DFS_ELMFAT=y + +# +# elm-chan's FatFs, Generic FAT Filesystem Module +# +CONFIG_RT_DFS_ELM_CODE_PAGE=936 +CONFIG_RT_DFS_ELM_WORD_ACCESS=y +# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set +# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set +# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set +CONFIG_RT_DFS_ELM_USE_LFN_3=y +CONFIG_RT_DFS_ELM_USE_LFN=3 +CONFIG_RT_DFS_ELM_LFN_UNICODE_0=y +# CONFIG_RT_DFS_ELM_LFN_UNICODE_1 is not set +# CONFIG_RT_DFS_ELM_LFN_UNICODE_2 is not set +# CONFIG_RT_DFS_ELM_LFN_UNICODE_3 is not set +CONFIG_RT_DFS_ELM_LFN_UNICODE=0 +CONFIG_RT_DFS_ELM_MAX_LFN=255 +CONFIG_RT_DFS_ELM_DRIVES=9 +CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512 +# CONFIG_RT_DFS_ELM_USE_ERASE is not set +CONFIG_RT_DFS_ELM_REENTRANT=y +CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000 +CONFIG_RT_USING_DFS_DEVFS=y +# CONFIG_RT_USING_DFS_ROMFS is not set +# CONFIG_RT_USING_DFS_RAMFS is not set +# CONFIG_RT_USING_DFS_NFS is not set + +# +# Device Drivers +# +CONFIG_RT_USING_DEVICE_IPC=y +CONFIG_RT_USING_SYSTEM_WORKQUEUE=y +CONFIG_RT_SYSTEM_WORKQUEUE_STACKSIZE=16384 +CONFIG_RT_SYSTEM_WORKQUEUE_PRIORITY=5 +CONFIG_RT_USING_SERIAL=y +CONFIG_RT_USING_SERIAL_V1=y +# CONFIG_RT_USING_SERIAL_V2 is not set +CONFIG_RT_SERIAL_USING_DMA=y +CONFIG_RT_SERIAL_RB_BUFSZ=64 +# CONFIG_RT_USING_CAN is not set +# CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set +# CONFIG_RT_USING_I2C is not set +# CONFIG_RT_USING_PHY is not set +CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_ADC is not set +# CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_PWM is not set +# CONFIG_RT_USING_MTD_NOR is not set +# CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_RTC is not set +# CONFIG_RT_USING_SDIO is not set +CONFIG_RT_USING_SPI=y +# CONFIG_RT_USING_QSPI is not set +# CONFIG_RT_USING_SPI_MSD is not set +# CONFIG_RT_USING_SFUD is not set +# CONFIG_RT_USING_ENC28J60 is not set +# CONFIG_RT_USING_SPI_WIFI is not set +# CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_AUDIO is not set +# CONFIG_RT_USING_SENSOR is not set +# CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_HWCRYPTO is not set +# CONFIG_RT_USING_PULSE_ENCODER is not set +# CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_WIFI is not set + +# +# Using USB +# +# CONFIG_RT_USING_USB is not set +# CONFIG_RT_USING_USB_HOST is not set +# CONFIG_RT_USING_USB_DEVICE is not set + +# +# POSIX layer and C standard library +# +CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# POSIX (Portable Operating System Interface) layer +# +# CONFIG_RT_USING_POSIX_FS is not set +# CONFIG_RT_USING_POSIX_DELAY is not set +# CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set +# CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set + +# +# Interprocess Communication (IPC) +# +# CONFIG_RT_USING_POSIX_PIPE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set + +# +# Socket is in the 'Network' category +# + +# +# Network +# + +# +# Socket abstraction layer +# +CONFIG_RT_USING_SAL=y +CONFIG_SAL_INTERNET_CHECK=y + +# +# protocol stack implement +# +CONFIG_SAL_USING_LWIP=y +# CONFIG_SAL_USING_POSIX is not set +CONFIG_SAL_SOCKETS_NUM=16 + +# +# Network interface device +# +CONFIG_RT_USING_NETDEV=y +CONFIG_NETDEV_USING_IFCONFIG=y +CONFIG_NETDEV_USING_PING=y +CONFIG_NETDEV_USING_NETSTAT=y +CONFIG_NETDEV_USING_AUTO_DEFAULT=y +# CONFIG_NETDEV_USING_IPV6 is not set +CONFIG_NETDEV_IPV4=1 +CONFIG_NETDEV_IPV6=0 +# CONFIG_NETDEV_IPV6_SCOPES is not set + +# +# light weight TCP/IP stack +# +CONFIG_RT_USING_LWIP=y +# CONFIG_RT_USING_LWIP141 is not set +CONFIG_RT_USING_LWIP203=y +# CONFIG_RT_USING_LWIP212 is not set +# CONFIG_RT_USING_LWIP_IPV6 is not set +CONFIG_RT_LWIP_MEM_ALIGNMENT=8 +CONFIG_RT_LWIP_IGMP=y +CONFIG_RT_LWIP_ICMP=y +CONFIG_RT_LWIP_SNMP=y +CONFIG_RT_LWIP_DNS=y +CONFIG_RT_LWIP_DHCP=y +CONFIG_IP_SOF_BROADCAST=1 +CONFIG_IP_SOF_BROADCAST_RECV=1 + +# +# Static IPv4 Address +# +CONFIG_RT_LWIP_IPADDR="192.168.1.30" +CONFIG_RT_LWIP_GWADDR="192.168.1.1" +CONFIG_RT_LWIP_MSKADDR="255.255.255.0" +CONFIG_RT_LWIP_UDP=y +CONFIG_RT_LWIP_TCP=y +CONFIG_RT_LWIP_RAW=y +# CONFIG_RT_LWIP_PPP is not set +CONFIG_RT_MEMP_NUM_NETCONN=8 +CONFIG_RT_LWIP_PBUF_NUM=16 +CONFIG_RT_LWIP_RAW_PCB_NUM=4 +CONFIG_RT_LWIP_UDP_PCB_NUM=4 +CONFIG_RT_LWIP_TCP_PCB_NUM=4 +CONFIG_RT_LWIP_TCP_SEG_NUM=40 +CONFIG_RT_LWIP_TCP_SND_BUF=8196 +CONFIG_RT_LWIP_TCP_WND=8196 +CONFIG_RT_LWIP_TCPTHREAD_PRIORITY=5 +CONFIG_RT_LWIP_TCPTHREAD_MBOX_SIZE=32 +CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=16384 +# CONFIG_LWIP_NO_RX_THREAD is not set +# CONFIG_LWIP_NO_TX_THREAD is not set +CONFIG_RT_LWIP_ETHTHREAD_PRIORITY=5 +CONFIG_RT_LWIP_ETHTHREAD_STACKSIZE=16384 +CONFIG_RT_LWIP_ETHTHREAD_MBOX_SIZE=32 +CONFIG_RT_LWIP_REASSEMBLY_FRAG=y +CONFIG_LWIP_NETIF_STATUS_CALLBACK=1 +CONFIG_LWIP_NETIF_LINK_CALLBACK=1 +CONFIG_SO_REUSE=1 +CONFIG_LWIP_SO_RCVTIMEO=1 +CONFIG_LWIP_SO_SNDTIMEO=1 +CONFIG_LWIP_SO_RCVBUF=1 +CONFIG_LWIP_SO_LINGER=0 +# CONFIG_RT_LWIP_NETIF_LOOPBACK is not set +CONFIG_LWIP_NETIF_LOOPBACK=0 +CONFIG_RT_LWIP_STATS=y +# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set +CONFIG_RT_LWIP_USING_PING=y +# CONFIG_RT_LWIP_DEBUG is not set + +# +# AT commands +# +# CONFIG_RT_USING_AT is not set +# CONFIG_LWIP_USING_DHCPD is not set + +# +# VBUS(Virtual Software BUS) +# +# CONFIG_RT_USING_VBUS is not set + +# +# Utilities +# +# CONFIG_RT_USING_RYM is not set +# CONFIG_RT_USING_ULOG is not set +# CONFIG_RT_USING_UTEST is not set +# CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RT_LINK is not set + +# +# RT-Thread Utestcases +# +# CONFIG_RT_USING_UTESTCASES is not set + +# +# RT-Thread MIPS CPU +# +# CONFIG_RT_USING_FPU is not set + +# +# RT-Thread online packages +# + +# +# IoT - internet of things +# +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set +# CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set +# CONFIG_PKG_USING_WEBCLIENT is not set +# CONFIG_PKG_USING_WEBNET is not set +# CONFIG_PKG_USING_MONGOOSE is not set +# CONFIG_PKG_USING_MYMQTT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set +# CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_LIBMODBUS is not set +# CONFIG_PKG_USING_FREEMODBUS is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_NANOPB is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_RW007 is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set +# CONFIG_PKG_USING_PPP_DEVICE is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_ATSRV_SOCKET is not set +# CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set + +# +# IoT Cloud +# +# CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set +# CONFIG_PKG_USING_JIOT-C-SDK is not set +# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_OTA_DOWNLOADER is not set +# CONFIG_PKG_USING_IPMSG is not set +# CONFIG_PKG_USING_LSSDP is not set +# CONFIG_PKG_USING_AIRKISS_OPEN is not set +# CONFIG_PKG_USING_LIBRWS is not set +# CONFIG_PKG_USING_TCPSERVER is not set +# CONFIG_PKG_USING_PROTOBUF_C is not set +# CONFIG_PKG_USING_DLT645 is not set +# CONFIG_PKG_USING_QXWZ is not set +# CONFIG_PKG_USING_SMTP_CLIENT is not set +# CONFIG_PKG_USING_ABUP_FOTA is not set +# CONFIG_PKG_USING_LIBCURL2RTT is not set +# CONFIG_PKG_USING_CAPNP is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set + +# +# security packages +# +# CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_TINYCRYPT is not set +# CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set + +# +# language packages +# +# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_LUA is not set +# CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set + +# +# multimedia packages +# + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set +# CONFIG_PKG_USING_OPENMV is not set +# CONFIG_PKG_USING_MUPDF is not set +# CONFIG_PKG_USING_STEMWIN is not set +# CONFIG_PKG_USING_WAVPLAYER is not set +# CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set + +# +# tools packages +# +# CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set +# CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set +# CONFIG_PKG_USING_RDB is not set +# CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set +# CONFIG_PKG_USING_ADBD is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set +# CONFIG_PKG_USING_NR_MICRO_SHELL is not set +# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set +# CONFIG_PKG_USING_LUNAR_CALENDAR is not set +# CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set + +# +# system packages +# + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# POSIX extension functions +# +# CONFIG_PKG_USING_POSIX_GETLINE is not set +# CONFIG_PKG_USING_POSIX_WCWIDTH is not set +# CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_RT_USING_ARDUINO is not set +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_CAIRO is not set +# CONFIG_PKG_USING_PIXMAN is not set +# CONFIG_PKG_USING_PARTITION is not set +# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_FLASHDB is not set +# CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set +# CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set +# CONFIG_PKG_USING_THREAD_POOL is not set +# CONFIG_PKG_USING_ROBOTS is not set +# CONFIG_PKG_USING_EV is not set +# CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_USB_STACK is not set + +# +# peripheral libraries and drivers +# +# CONFIG_PKG_USING_SENSORS_DRIVERS is not set +# CONFIG_PKG_USING_REALTEK_AMEBA is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_BUTTON is not set +# CONFIG_PKG_USING_PCF8574 is not set +# CONFIG_PKG_USING_SX12XX is not set +# CONFIG_PKG_USING_SIGNAL_LED is not set +# CONFIG_PKG_USING_LEDBLINK is not set +# CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set +# CONFIG_PKG_USING_WM_LIBRARIES is not set +# CONFIG_PKG_USING_KENDRYTE_SDK is not set +# CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_AGILE_BUTTON is not set +# CONFIG_PKG_USING_AGILE_LED is not set +# CONFIG_PKG_USING_AT24CXX is not set +# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set +# CONFIG_PKG_USING_AD7746 is not set +# CONFIG_PKG_USING_PCA9685 is not set +# CONFIG_PKG_USING_I2C_TOOLS is not set +# CONFIG_PKG_USING_NRF24L01 is not set +# CONFIG_PKG_USING_TOUCH_DRIVERS is not set +# CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_RPLIDAR is not set +# CONFIG_PKG_USING_AS608 is not set +# CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set +# CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set + +# +# miscellaneous packages +# + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set +# CONFIG_PKG_USING_HELLO is not set +# CONFIG_PKG_USING_VI is not set +# CONFIG_PKG_USING_KI is not set +# CONFIG_PKG_USING_ARMv7M_DWT is not set +# CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +CONFIG_SOC_LS2K1000=y +CONFIG_RT_USING_UART0=y +# CONFIG_RT_USING_UART4 is not set diff --git a/bsp/loongson/ls2kdev/Kconfig b/bsp/loongson/ls2kdev/Kconfig new file mode 100644 index 0000000000..fc2dfe1328 --- /dev/null +++ b/bsp/loongson/ls2kdev/Kconfig @@ -0,0 +1,41 @@ +mainmenu "RT-Thread Configuration" + +config BSP_DIR + string + option env="BSP_ROOT" + default "." + +config RTT_DIR + string + option env="RTT_ROOT" + default "../.." + +# you can change the RTT_ROOT default "../.." to your rtthread_root, +# example : default "F:/git_repositories/rt-thread" + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +source "$RTT_DIR/Kconfig" +source "$RTT_DIR/libcpu/mips/common/Kconfig" +source "$PKGS_DIR/Kconfig" + +config SOC_LS2K1000 + bool + select ARCH_MIPS64 + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + select RT_USING_DEVICE + default y + +if RT_USING_SERIAL +config RT_USING_UART0 + bool "Using RT_USING_UART0" + default y + +config RT_USING_UART4 + bool "Using RT_USING_UART4" + default y +endif diff --git a/bsp/loongson/ls2kdev/README.md b/bsp/loongson/ls2kdev/README.md new file mode 100644 index 0000000000..08a7dec063 --- /dev/null +++ b/bsp/loongson/ls2kdev/README.md @@ -0,0 +1,150 @@ +# loongson_pi2 板级支持包说明 + +## 1. 简介 + +2K龙芯派采是首款采用2K1000低功耗处理的嵌入式方案验证板,具有资源丰富、接口齐全、低功耗、高可靠的特点。 + +| 硬件 | 描述 | +| -- | -- | +|芯片型号| 2K1000 | +|CPU| GS264 | +|主频| 1GHz | +|DDR3| 2GB | +|片外Flash| 8Mb SPI FLASH | + +[龙芯派][1]搭载 2K1000 处理器(主频 1GHz),板载 DDR3 颗粒,实现 DDR3 的运行存储功能。实现了 GPIO 的输入输出,中断功能。板上集成 1 个网 口,集成 3 个 USB 接口,HDMI 接口,LCD 接口,音频输入/输出,集成 SD 卡接口,集成 2 个 CAN 接口,集成 RTC 计时功能。可以外扩 WIFI 模块。2K 龙芯派可以广泛应用于信息安 全、电力、轨道交通、工业控制、信号处理、数据通信、信息教育等领域。 + + +## 2. 编译说明 + +环境搭建在**Ubuntu**上进行,首先下载[mips-sde-elf-gcc][2]。该文件存放在网盘中,提取码为ucb2。 + +**windows**上环境搭建可以下载如下工具链: + +[mips-2015.05-19-mips-sde-elf.exe](https://sourcery.mentor.com/GNUToolchain/package13851/public/mips-sde-elf/mips-2015.05-19-mips-sde-elf.exe) + +解压到指定的目录,然后修改当前bsp目录下的`rtconfig.py`文件。 + +```python +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = "/opt/mips-2015.05-19-mips-sde-elf-i686-pc-linux-gnu/mips-2015.05/bin/" +``` + +如果不想修改`rtconfig.py`可以尝试第二种办法: + +安装好工具链后,假设工具链安装在`D:\mgc\embedded\codebench`目录下。使用env工具,打开console后,进入到命令行环境中,需要手动设置工具链的环境变量`RTT_EXEC_PATH`: + + set RTT_EXEC_PATH=D:\mgc\embedded\codebench\bin + +使用env工具,可以在console下进入到`bsp/ls2kdev`目录中,然后在控制台输入`scons`即可,可以生成`rtthread.elf`、`rtthread.bin`文件,其中`rtthread.elf`是下载到开发板上的程序。 + +## 3.程序运行 + +rt-thread固件目前在龙芯派上推荐使用[pmon][3]通过tftp的方式下载到设备内存中运行。 + +其中龙芯派硬件分布如下图所示: + +![loongsonpi](figures/loongsonpi.png) + +首先板子接上12V的电源,然后连接串口,该串口为RS232,所以需要RS232转USB线来进行连接。接着连接`LAN0`网口。 + +初次上电时,需要按下开发板的`START`按键,听到`滴`启动声后可以在控制台看到串口打印信息。通过启动时在控制台不停的按下字符`c`直到进入到pmon控制台。 + + + +需要让开发板和主机处于同一网段,利用pmon的tftp进行固件传输。首先查看主机的ip地址,如果`ifconfig`查看ip是`192.168.12.35`。输入以下指令开始运行。 + +``` +ifaddr syn0 192.168.12.100 +load tftp://192.168.12.35/rtthread.elf; +g +``` + +其中`ifaddr`是设置pmon设置网络的命令,`syn0`表示第一个网卡。然后从tftp的主机上加载`rtthread.elf`文件,此时主机必须有tftp服务器。`g`表示程序跳转运行。 + +而后可以看到rtthread程序正常的运行。 + +``` + zero at v0 v1 a0 a1 a2 a3 + 00000000 00000000 00000000 00000000 00000003 aafffea8 8f800000 8f1371d0 + t0 t1 t2 t3 t4 t5 t6 t7 + 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 + s0 s1 s2 s3 s4 s5 s6 s7 + 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 + t8 t9 k0 k1 gp sp s8 ra + 00000000 00000000 00000000 00000000 00000000 aafffe88 00000000 8f0b1418 +Current SR: 0x10008080 + + \ | / +- RT - Thread Operating System + / | \ 4.0.3 build Apr 7 2020 + 2006 - 2020 Copyright by rt-thread team +Hi, this is RT-Thread!! +msh > +``` + +## 4.开机自动启动 + +在调试阶段,可以利用脚本,在pmon阶段从TFTP服务器上获取固件,然后引导启动。这样可以节省开发配置的时间。具体的步骤如下: + +**第一步:** +设置开发板的IP地址,在进入pmon的控制台后,输入`set ifconfig syn0:10.1.1.100`。其中`syn0`后面的ip地址为开发板的ip地址,与存放rt-thread固件的TFTP的服务器IP地址在**同一网段**。 + +**第二步:** + +进入龙芯的Debian系统,用管理员权限进入,输入用户名`root`,密码`loongson`。并且修改boot分区下的boot.cfg文件。增加如下: + +``` +title TFTPBOOT + kernel tftp://10.1.1.118/rtthread.elf + args console=tty root=/dev/sda2 + initrd (wd0,0)/initrd.img +``` + +其中`tftp://10.1.1.118/rtthread.elf`中的`10.1.1.118`为tftp服务器的ip地址。 + +**第三步:** + +电脑开启TFTP服务器,将路径指向存放有ls2k的rt-thread固件的目录下。 + +以上三步完成之后,重启系统,就可以省略每次都需要进入pmon的输入命令的麻烦,板子上电后,可以自动从系统TFTP服务器中获取固件,然后启动,大大提高调试代码效率。 + +## 5.SATA接口的SSD文件系统支持 + +当前已经支持SATA接口的SSD文件系统驱动,需要通过menuconfig + +``` +RT-Thread online packages ---> + system packages ---> + lwext4: an excellent choice of ext2/3/4 filesystem for microcontrollers +``` + +然后输入下面的命令更新软件包 + +``` +pkgs --update +``` + +输入`scons`编译代码即可使用SATA接口的SSD文件系统。 + +## 6. 支持情况 + +| 驱动 | 支持情况 | 备注 | +| ------ | ---- | :------: | +| UART | 支持 | UART0\UART4,波特率可调 | +| GPIO | 支持 | - | +| PWM | 支持 | - | +| GMAC | 支持 | 网卡驱动 | +| RTC | 支持 | - | +| SPI | 支持 | - | +| SATA SSD | 支持 | 需要打开lwext4软件包 | + +## 7. 联系人信息 + +维护人:[bernard][4] + +[1]: http://ftp.loongnix.org/loongsonpi/pi_2/doc +[2]: https://pan.baidu.com/s/17dbdOE4NAJ-qEW7drVRq2w +[3]: http://ftp.loongnix.org/embedd/ls2k/ +[4]: https://github.com/BernardXiong \ No newline at end of file diff --git a/bsp/loongson/ls2kdev/SConscript b/bsp/loongson/ls2kdev/SConscript new file mode 100644 index 0000000000..0992612410 --- /dev/null +++ b/bsp/loongson/ls2kdev/SConscript @@ -0,0 +1,12 @@ +from building import * + +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/loongson/ls2kdev/SConstruct b/bsp/loongson/ls2kdev/SConstruct new file mode 100644 index 0000000000..fc142ce460 --- /dev/null +++ b/bsp/loongson/ls2kdev/SConstruct @@ -0,0 +1,39 @@ +import os +import sys +import rtconfig + +from rtconfig import RTT_ROOT + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) +env['ASCOM'] = env['ASPPCOM'] + +Export('RTT_ROOT') +Export('rtconfig') + + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +rtconfig.LFLAGS += " -Ttext 0xffffffff80200000" +env.Replace(LINKFLAGS = rtconfig.LFLAGS) + +if GetDepend('RT_USING_FPU'): + env['CFLAGS'] = env['CFLAGS'].replace('-msoft-float', '-mhard-float') + env['ASFLAGS'] = env['ASFLAGS'].replace('-msoft-float', '-mhard-float') + env['CXXFLAGS'] = env['CXXFLAGS'].replace('-msoft-float', '-mhard-float') + env['LINKFLAGS'] = env['LINKFLAGS'].replace('-msoft-float', '-mhard-float') + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/loongson/ls2kdev/applications/SConscript b/bsp/loongson/ls2kdev/applications/SConscript new file mode 100644 index 0000000000..fb5ce2ce93 --- /dev/null +++ b/bsp/loongson/ls2kdev/applications/SConscript @@ -0,0 +1,8 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +group = DefineGroup('Applications', src, depend = ['']) + +Return('group') diff --git a/bsp/loongson/ls2kdev/applications/main.c b/bsp/loongson/ls2kdev/applications/main.c new file mode 100644 index 0000000000..053e741bfa --- /dev/null +++ b/bsp/loongson/ls2kdev/applications/main.c @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic first version + */ + +#include + +int main(int argc, char **argv) +{ + rt_kprintf("Hi, this is RT-Thread!!\n"); + return 0; +} diff --git a/bsp/loongson/ls2kdev/applications/mnt.c b/bsp/loongson/ls2kdev/applications/mnt.c new file mode 100644 index 0000000000..1c9b9b047a --- /dev/null +++ b/bsp/loongson/ls2kdev/applications/mnt.c @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-12-29 bigmagic first version + */ +#include +#include + +#ifdef PKG_USING_LWEXT4 + +#include +#include +#include +#include +#include +#include +#include +#include + +#define EXT4_DEBUG_ALL (0xFFFFFFFF) +#define EXT4_DEBUG_NO (0) + +int mount_ssd(void) +{ + struct blk_device *blkdev = (struct blk_device *)rt_device_find("dwc_ahsata_blk"); + + if(blkdev == RT_NULL) + { + rt_kprintf("dwc_ahsata_blk not found!\n"); + return; + } + + ext4_dmask_set(EXT4_DEBUG_NO); + blk_device_init(blkdev); + dfs_mount("dwc_ahsata_blk","/","ext",0,(void *)1); + dfs_mount("dwc_ahsata_blk","/boot","ext",0,(void *)0); + + return 0; +} + +INIT_ENV_EXPORT(mount_ssd); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/SConscript b/bsp/loongson/ls2kdev/drivers/SConscript new file mode 100644 index 0000000000..33310b6d7e --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/SConscript @@ -0,0 +1,20 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +group = group + objs + +Return('group') diff --git a/bsp/loongson/ls2kdev/drivers/ata/SConscript b/bsp/loongson/ls2kdev/drivers/ata/SConscript new file mode 100644 index 0000000000..164023bd1f --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/SConscript @@ -0,0 +1,14 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +CPPPATH = [cwd] + +if GetDepend('RT_USING_DFS_ELMFAT') == False: + SrcRemove(src, 'dwc_ahsata.c') + SrcRemove(src, 'libata.c') + +group = DefineGroup('Drivers', src, depend = ['PKG_USING_LWEXT4'], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls2kdev/drivers/ata/ahci.h b/bsp/loongson/ls2kdev/drivers/ata/ahci.h new file mode 100644 index 0000000000..bccec2c379 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/ahci.h @@ -0,0 +1,281 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + +#ifndef _AHCI_H_ +#define _AHCI_H_ + +#define AHCI_PCI_BAR 0x24 +#define AHCI_MAX_SG 56 /* hardware max is 64K */ +#define AHCI_CMD_SLOT_SZ 32 +#define AHCI_MAX_CMD_SLOT 32 +#define AHCI_RX_FIS_SZ 256 +#define AHCI_CMD_TBL_HDR 0x80 +#define AHCI_CMD_TBL_CDB 0x40 +#define AHCI_CMD_TBL_SZ AHCI_CMD_TBL_HDR + (AHCI_MAX_SG * 16) +#define AHCI_PORT_PRIV_DMA_SZ (AHCI_CMD_SLOT_SZ * AHCI_MAX_CMD_SLOT + \ + AHCI_CMD_TBL_SZ + AHCI_RX_FIS_SZ) +#define AHCI_CMD_ATAPI (1 << 5) +#define AHCI_CMD_WRITE (1 << 6) +#define AHCI_CMD_PREFETCH (1 << 7) +#define AHCI_CMD_RESET (1 << 8) +#define AHCI_CMD_CLR_BUSY (1 << 10) + +#define RX_FIS_D2H_REG 0x40 /* offset of D2H Register FIS data */ + +/* Global controller registers */ +#define HOST_CAP 0x00 /* host capabilities */ +#define HOST_CTL 0x04 /* global host control */ +#define HOST_IRQ_STAT 0x08 /* interrupt status */ +#define HOST_PORTS_IMPL 0x0c /* bitmap of implemented ports */ +#define HOST_VERSION 0x10 /* AHCI spec. version compliancy */ +#define HOST_CAP2 0x24 /* host capabilities, extended */ + +/* HOST_CTL bits */ +#define HOST_RESET (1 << 0) /* reset controller; self-clear */ +#define HOST_IRQ_EN (1 << 1) /* global IRQ enable */ +#define HOST_AHCI_EN (1 << 31) /* AHCI enabled */ + +/* Registers for each SATA port */ +#define PORT_LST_ADDR 0x00 /* command list DMA addr */ +#define PORT_LST_ADDR_HI 0x04 /* command list DMA addr hi */ +#define PORT_FIS_ADDR 0x08 /* FIS rx buf addr */ +#define PORT_FIS_ADDR_HI 0x0c /* FIS rx buf addr hi */ +#define PORT_IRQ_STAT 0x10 /* interrupt status */ +#define PORT_IRQ_MASK 0x14 /* interrupt enable/disable mask */ +#define PORT_CMD 0x18 /* port command */ +#define PORT_TFDATA 0x20 /* taskfile data */ +#define PORT_SIG 0x24 /* device TF signature */ +#define PORT_CMD_ISSUE 0x38 /* command issue */ +#define PORT_SCR 0x28 /* SATA phy register block */ +#define PORT_SCR_STAT 0x28 /* SATA phy register: SStatus */ +#define PORT_SCR_CTL 0x2c /* SATA phy register: SControl */ +#define PORT_SCR_ERR 0x30 /* SATA phy register: SError */ +#define PORT_SCR_ACT 0x34 /* SATA phy register: SActive */ + +#ifdef CONFIG_SUNXI_AHCI +#define PORT_P0DMACR 0x70 /* SUNXI specific "DMA register" */ +#endif + +/* PORT_IRQ_{STAT,MASK} bits */ +#define PORT_IRQ_COLD_PRES (1 << 31) /* cold presence detect */ +#define PORT_IRQ_TF_ERR (1 << 30) /* task file error */ +#define PORT_IRQ_HBUS_ERR (1 << 29) /* host bus fatal error */ +#define PORT_IRQ_HBUS_DATA_ERR (1 << 28) /* host bus data error */ +#define PORT_IRQ_IF_ERR (1 << 27) /* interface fatal error */ +#define PORT_IRQ_IF_NONFATAL (1 << 26) /* interface non-fatal error */ +#define PORT_IRQ_OVERFLOW (1 << 24) /* xfer exhausted available S/G */ +#define PORT_IRQ_BAD_PMP (1 << 23) /* incorrect port multiplier */ + +#define PORT_IRQ_PHYRDY (1 << 22) /* PhyRdy changed */ +#define PORT_IRQ_DEV_ILCK (1 << 7) /* device interlock */ +#define PORT_IRQ_CONNECT (1 << 6) /* port connect change status */ +#define PORT_IRQ_SG_DONE (1 << 5) /* descriptor processed */ +#define PORT_IRQ_UNK_FIS (1 << 4) /* unknown FIS rx'd */ +#define PORT_IRQ_SDB_FIS (1 << 3) /* Set Device Bits FIS rx'd */ +#define PORT_IRQ_DMAS_FIS (1 << 2) /* DMA Setup FIS rx'd */ +#define PORT_IRQ_PIOS_FIS (1 << 1) /* PIO Setup FIS rx'd */ +#define PORT_IRQ_D2H_REG_FIS (1 << 0) /* D2H Register FIS rx'd */ + +#define PORT_IRQ_FATAL PORT_IRQ_TF_ERR | PORT_IRQ_HBUS_ERR | PORT_IRQ_HBUS_DATA_ERR | PORT_IRQ_IF_ERR + +#define DEF_PORT_IRQ PORT_IRQ_FATAL | PORT_IRQ_PHYRDY | PORT_IRQ_CONNECT | PORT_IRQ_SG_DONE | PORT_IRQ_UNK_FIS | PORT_IRQ_SDB_FIS | PORT_IRQ_DMAS_FIS | PORT_IRQ_PIOS_FIS | PORT_IRQ_D2H_REG_FIS + +/* PORT_SCR_STAT bits */ +#define PORT_SCR_STAT_DET_MASK 0x3 +#define PORT_SCR_STAT_DET_COMINIT 0x1 +#define PORT_SCR_STAT_DET_PHYRDY 0x3 + +/* PORT_CMD bits */ +#define PORT_CMD_ATAPI (1 << 24) /* Device is ATAPI */ +#define PORT_CMD_LIST_ON (1 << 15) /* cmd list DMA engine running */ +#define PORT_CMD_FIS_ON (1 << 14) /* FIS DMA engine running */ +#define PORT_CMD_FIS_RX (1 << 4) /* Enable FIS receive DMA engine */ +#define PORT_CMD_CLO (1 << 3) /* Command list override */ +#define PORT_CMD_POWER_ON (1 << 2) /* Power up device */ +#define PORT_CMD_SPIN_UP (1 << 1) /* Spin up device */ +#define PORT_CMD_START (1 << 0) /* Enable port DMA engine */ + +#define PORT_CMD_ICC_ACTIVE (0x1 << 28) /* Put i/f in active state */ +#define PORT_CMD_ICC_PARTIAL (0x2 << 28) /* Put i/f in partial state */ +#define PORT_CMD_ICC_SLUMBER (0x6 << 28) /* Put i/f in slumber state */ + +#define AHCI_MAX_PORTS 32 + +#define ATA_FLAG_SATA (1 << 3) +#define ATA_FLAG_NO_LEGACY (1 << 4) /* no legacy mode check */ +#define ATA_FLAG_MMIO (1 << 6) /* use MMIO, not PIO */ +#define ATA_FLAG_SATA_RESET (1 << 7) /* (obsolete) use COMRESET */ +#define ATA_FLAG_PIO_DMA (1 << 8) /* PIO cmds via DMA */ +#define ATA_FLAG_NO_ATAPI (1 << 11) /* No ATAPI support */ + +struct ahci_cmd_hdr +{ + u32 opts; + u32 status; + u64 tbl_addr; + //u32 tbl_addr_hi; + u32 reserved[4]; +}; + +struct ahci_sg +{ + u64 addr; + //u32 addr_hi; + u32 reserved; + u32 flags_size; +}; + +struct ahci_ioports +{ + void __iomem *port_mmio; + struct ahci_cmd_hdr *cmd_slot; + struct ahci_sg *cmd_tbl_sg; + ulong cmd_tbl; + u32 rx_fis; +}; + +/** + * struct ahci_uc_priv - information about an AHCI controller + * + * When driver model is used, this is accessible using dev_get_uclass_priv(dev) + * where dev is the controller (although at present it sometimes stands alone). + */ +struct ahci_uc_priv +{ + struct rt_device parent; + struct ahci_ioports port[AHCI_MAX_PORTS]; + u16 *ataid[AHCI_MAX_PORTS]; + u32 n_ports; + u32 hard_port_no; + u32 host_flags; + u32 host_set_flags; + void *mmio_base; + u32 pio_mask; + u32 udma_mask; + u32 flags; + u32 cap; /* cache of HOST_CAP register */ + u32 port_map; /* cache of HOST_PORTS_IMPL reg */ + u32 link_port_map; /*linkup port map*/ +}; + +struct ahci_ops +{ + /** + * reset() - reset the controller + * + * @dev: Controller to reset + * @return 0 if OK, -ve on error + */ + int (*reset)(struct rt_device *dev); + + /** + * port_status() - get the status of a SATA port + * + * @dev: Controller to reset + * @port: Port number to check (0 for first) + * @return 0 if detected, -ENXIO if nothing on port, other -ve on error + */ + int (*port_status)(struct rt_device *dev, int port); + + /** + * scan() - scan SATA ports + * + * @dev: Controller to scan + * @return 0 if OK, -ve on error + */ + int (*scan)(struct rt_device *dev); +}; + +#define ahci_get_ops(dev) ((struct ahci_ops *)(dev)->driver->ops) + +/** + * sata_reset() - reset the controller + * + * @dev: Controller to reset + * @return 0 if OK, -ve on error + */ +int sata_reset(struct rt_device *dev); + +/** + * sata_port_status() - get the status of a SATA port + * + * @dev: Controller to reset + * @port: Port number to check (0 for first) + * @return 0 if detected, -ENXIO if nothin on port, other -ve on error + */ +int sata_dm_port_status(struct rt_device *dev, int port); + +/** + * sata_scan() - scan SATA ports + * + * @dev: Controller to scan + * @return 0 if OK, -ve on error + */ +int sata_scan(struct rt_device *dev); + +int ahci_init(void __iomem *base); +int ahci_reset(void __iomem *base); + +/** + * ahci_init_one_dm() - set up a single AHCI port + * + * @dev: Controller to init + */ +int ahci_init_one_dm(struct rt_device *dev); + +/** + * ahci_start_ports_dm() - start all AHCI ports for a controller + * + * @dev: Controller containing ports to start + */ +int ahci_start_ports_dm(struct rt_device *dev); + +/** + * ahci_init_dm() - init AHCI for a controller, finding all ports + * + * @dev: Device to init + */ +int ahci_init_dm(struct rt_device *dev, void __iomem *base); + +/** + * ahci_bind_scsi() - bind a new SCSI bus as a child + * + * Note that the SCSI bus device will itself bind block devices + * + * @ahci_dev: AHCI parent device + * @devp: Returns new SCSI bus device + * @return 0 if OK, -ve on error + */ +int ahci_bind_scsi(struct rt_device *ahci_dev, struct rt_device **devp); + +/** + * ahci_probe_scsi() - probe and scan the attached SCSI bus + * + * Note that the SCSI device will itself bind block devices for any storage + * devices it finds. + * + * @ahci_dev: AHCI parent device + * @base: Base address of AHCI port + * @return 0 if OK, -ve on error + */ +int ahci_probe_scsi(struct rt_device *ahci_dev, ulong base); + +/** + * ahci_probe_scsi_pci() - probe and scan the attached SCSI bus on PCI + * + * Note that the SCSI device will itself bind block devices for any storage + * devices it finds. + * + * @ahci_dev: AHCI parent device + * @return 0 if OK, -ve on error + */ +int ahci_probe_scsi_pci(struct rt_device *ahci_dev); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ata/ata_debug.h b/bsp/loongson/ls2kdev/drivers/ata/ata_debug.h new file mode 100644 index 0000000000..cf628d73ea --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/ata_debug.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui first version + */ + +#ifndef __ATA_DEBUG_H__ +#define __ATA_DEBUG_H__ +//#define ATA_DEBUG +#include +#ifdef ATA_DEBUG +#define debug rt_kprintf +#else +#define debug(...) +#endif +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ata/ata_interface.h b/bsp/loongson/ls2kdev/drivers/ata/ata_interface.h new file mode 100644 index 0000000000..fc7fb5cbe6 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/ata_interface.h @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui first version + */ + +#ifndef __ATA_INTERFACE_H__ +#define __ATA_INTERFACE_H__ + +typedef rt_uint8_t u8; +typedef rt_uint16_t u16; +typedef rt_uint32_t u32; +typedef rt_uint64_t u64; +typedef rt_uint64_t ulong; + +typedef rt_int8_t s8; +typedef rt_int16_t s16; +typedef rt_int32_t s32; +typedef rt_int64_t s64; + +typedef rt_size_t lbaint_t; + +#define __iomem +#define mdelay rt_thread_mdelay +#define udelay(...) rt_thread_mdelay(1) + +#define cpu_to_le32 +#define cpu_to_le16 +#define le32_to_cpu +#define le16_to_cpu + +#define flush_cache(...) +#define invalidate_dcache_range(...) + +#define ARCH_DMA_MINALIGN 1024 + +#define CONFIG_IS_ENABLED +#define AHCI 1 + +#define VADDR_TO_PHY(vaddr) (((u64)vaddr) - KSEG0BASE) +#define LOW_PHY(vaddr) ((u32)VADDR_TO_PHY(vaddr)) +#define HIGH_PHY(vaddr) ((u32)((VADDR_TO_PHY(vaddr)) >> 32)) + +#define ALIGN_1(x, a) __ALIGN_MASK((x), (typeof(x))(a)-1) +#define ALIGN_DOWN(x, a) ALIGN_1((x) - ((a)-1), (a)) +#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) +#define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) +#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a)-1)) == 0) + +#define ROUND(a, b) (((a) + (b)-1) & ~((b)-1)) + +#define PAD_COUNT(s, pad) (((s)-1) / (pad) + 1) +#define PAD_SIZE(s, pad) (PAD_COUNT(s, pad) * pad) +#define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad) \ + char __##name[ROUND(PAD_SIZE((size) * sizeof(type), pad), align) + (align - 1)]; \ + \ + type *name = (type *)ALIGN_1((rt_ubase_t)__##name, align) +#define ALLOC_ALIGN_BUFFER(type, name, size, align) \ + ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, 1) +#define ALLOC_CACHE_ALIGN_BUFFER_PAD(type, name, size, pad) \ + ALLOC_ALIGN_BUFFER_PAD(type, name, size, ARCH_DMA_MINALIGN, pad) +#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \ + ALLOC_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN) + +static inline u32 readl(void *addr) +{ + return *((u32 *)addr); +} + +static inline void writel(u32 data, void *addr) +{ + *((u32 *)addr) = data; +} + +static inline int ffs(int word) +{ + int r; + + if (word == 0) + { + return 0; + } + + word &= (-word); + + __asm__("clz %0, %1" + : "=r"(r) + : "r"(word)); + return 32 - r; +} + +static inline void setbits_le32(u32 *addr, u32 value) +{ + *addr = value; +} + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ata/blk_device.c b/bsp/loongson/ls2kdev/drivers/ata/blk_device.c new file mode 100644 index 0000000000..c6ed880988 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/blk_device.c @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui first version + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static struct blk_device *blkdev; +static rt_uint32_t disk_sector_size; + +static int blockdev_open(struct ext4_blockdev *bdev) +{ + int r; + uint32_t size; + rt_device_t device = (rt_device_t)blkdev; + struct rt_device_blk_geometry geometry; + + RT_ASSERT(device); + + r = rt_device_open((rt_device_t)blkdev, RT_DEVICE_OFLAG_RDWR); + + if (r != RT_EOK) + { + return r; + } + + r = rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); + + if (RT_EOK == r) + { + bdev->part_offset = 0; + bdev->part_size = geometry.sector_count * geometry.bytes_per_sector; + disk_sector_size = geometry.bytes_per_sector; + bdev->bdif->ph_bcnt = bdev->part_size / bdev->bdif->ph_bsize; + } + + return r; +} + +static int blockdev_bread(struct ext4_blockdev *bdev, void *buf, uint64_t blk_id, + uint32_t blk_cnt) +{ + int result; + rt_device_t device = (rt_device_t)blkdev; + struct blk_device *blk = (struct blk_device *)device; + RT_ASSERT(device); + + result = rt_device_read(device, blk_id * (bdev->bdif->ph_bsize / disk_sector_size), + buf, blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)); + + if ((blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)) == result) + { + result = 0; + } + else + { + result = -EIO; + } + + return result; +} + +static int blockdev_bwrite(struct ext4_blockdev *bdev, const void *buf, + uint64_t blk_id, uint32_t blk_cnt) +{ + int result; + rt_device_t device = (rt_device_t)blkdev; + + RT_ASSERT(device); + + result = rt_device_write(device, blk_id * (bdev->bdif->ph_bsize / disk_sector_size), + buf, blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)); + + if ((blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)) == result) + { + result = 0; + } + else + { + result = -EIO; + } + + return result; +} + +static int blockdev_close(struct ext4_blockdev *bdev) +{ + return rt_device_close((rt_device_t)blkdev); +} + +static int blockdev_lock(struct ext4_blockdev *bdev) +{ + return 0; +} + +static int blockdev_unlock(struct ext4_blockdev *bdev) +{ + return 0; +} + +EXT4_BLOCKDEV_STATIC_INSTANCE(bdev, 4096, 0, blockdev_open, + blockdev_bread, blockdev_bwrite, blockdev_close, + blockdev_lock, blockdev_unlock); + +void blk_device_init(struct blk_device *blk_devices) +{ + blkdev = blk_devices; + + if (ext4_mbr_scan(&bdev, &(blkdev->ext4_partition)) != EOK) + { + rt_kprintf("MBR scan failed!\n"); + return; + } +} diff --git a/bsp/loongson/ls2kdev/drivers/ata/blk_device.h b/bsp/loongson/ls2kdev/drivers/ata/blk_device.h new file mode 100644 index 0000000000..8401e8aac6 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/blk_device.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui first version + */ + +#ifndef __BLK_DEVICE_H__ +#define __BLK_DEVICE_H__ + +#include +#include + +#define DEV_TYPE_UNKNOWN 0xff /* not connected */ +#define DEV_TYPE_HARDDISK 0x00 /* harddisk */ +#define DEV_TYPE_TAPE 0x01 /* Tape */ +#define DEV_TYPE_CDROM 0x05 /* CD-ROM */ +#define DEV_TYPE_OPDISK 0x07 /* optical disk */ + +struct blk_device +{ + struct rt_device parent; + struct ahci_uc_priv *ahci_device; + + rt_uint8_t target; + rt_uint8_t lun; + rt_uint8_t type; + +#ifdef RT_USING_DFS_LWEXT4 + struct ext4_mbr_bdevs ext4_partition; +#endif + + rt_bool_t lba48; + rt_uint64_t lba; + rt_uint64_t blksz; + rt_int32_t log2blksz; + + char product[21]; + char revision[9]; + char vendor[41]; +}; + +void blk_device_init(struct blk_device *blk_devices); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.c b/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.c new file mode 100644 index 0000000000..bf76636e06 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.c @@ -0,0 +1,1234 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "dwc_ahsata_priv.h" + +struct sata_port_regs +{ + u32 clb; + u32 clbu; + u32 fb; + u32 fbu; + u32 is; + u32 ie; + u32 cmd; + u32 res1[1]; + u32 tfd; + u32 sig; + u32 ssts; + u32 sctl; + u32 serr; + u32 sact; + u32 ci; + u32 sntf; + u32 res2[1]; + u32 dmacr; + u32 res3[1]; + u32 phycr; + u32 physr; +}; + +struct sata_host_regs +{ + u32 cap; + u32 ghc; + u32 is; + u32 pi; + u32 vs; + u32 ccc_ctl; + u32 ccc_ports; + u32 res1[2]; + u32 cap2; + u32 res2[30]; + u32 bistafr; + u32 bistcr; + u32 bistfctr; + u32 bistsr; + u32 bistdecr; + u32 res3[2]; + u32 oobr; + u32 res4[8]; + u32 timer1ms; + u32 res5[1]; + u32 gparam1r; + u32 gparam2r; + u32 pparamr; + u32 testr; + u32 versionr; + u32 idr; +}; + +#define MAX_DATA_BYTES_PER_SG (4 * 1024 * 1024) +#define MAX_BYTES_PER_TRANS (AHCI_MAX_SG * MAX_DATA_BYTES_PER_SG) + +#define writel_with_flush(a, b) \ + do \ + { \ + writel(a, b); \ + readl(b); \ + } while (0) + +static inline void __iomem *ahci_port_base(void __iomem *base, u32 port) +{ + return base + 0x100 + (port * 0x80); +} + +static int waiting_for_cmd_completed(u8 *offset, int timeout_msec, u32 sign) +{ + int i; + u32 status; + + for (i = 0; ((status = readl(offset)) & sign) && i < timeout_msec; i++) + { + mdelay(1); + } + + return (i < timeout_msec) ? 0 : -1; +} + +static int ahci_setup_oobr(struct ahci_uc_priv *uc_priv, int clk) +{ + struct sata_host_regs *host_mmio = uc_priv->mmio_base; + + writel(SATA_HOST_OOBR_WE, &host_mmio->oobr); + writel(0x02060b14, &host_mmio->oobr); + + return 0; +} + +int ahci_host_init(struct ahci_uc_priv *uc_priv) +{ + u32 tmp, cap_save, num_ports; + int i, j, timeout = 1000; + struct sata_port_regs *port_mmio = NULL; + struct sata_host_regs *host_mmio = uc_priv->mmio_base; + + //prepare to enable staggered spin-up + cap_save = readl(&host_mmio->cap); + cap_save |= SATA_HOST_CAP_SSS; + + /* global controller reset */ + tmp = readl(&host_mmio->ghc); + + //ahsata controller reset + if ((tmp & SATA_HOST_GHC_HR) == 0) + { + writel_with_flush(tmp | SATA_HOST_GHC_HR, &host_mmio->ghc); + } + + //wait for reset finishing + while ((readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) && --timeout) + ; + + //reset timeout + if (timeout <= 0) + { + debug("controller reset failed (0x%x)\n", tmp); + return -1; + } + + /* Set timer 1ms @ 100MHz*/ + writel(100000000 / 1000, &host_mmio->timer1ms); + + ahci_setup_oobr(uc_priv, 0); + + //enable ahci + writel_with_flush(SATA_HOST_GHC_AE, &host_mmio->ghc); + + //enable staggered spin-up + writel(cap_save, &host_mmio->cap); + + //get sata port number + num_ports = (cap_save & SATA_HOST_CAP_NP_MASK) + 1; + + //initialize pi register to set correct port number + writel_with_flush((1 << num_ports) - 1, &host_mmio->pi); + + /* + * Determine which Ports are implemented by the DWC_ahsata, + * by reading the PI register. This bit map value aids the + * software to determine how many Ports are available and + * which Port registers need to be initialized. + */ + uc_priv->cap = readl(&host_mmio->cap); + uc_priv->port_map = readl(&host_mmio->pi); + + /* Determine how many command slots the HBA supports */ + uc_priv->n_ports = (uc_priv->cap & SATA_HOST_CAP_NP_MASK) + 1; + + debug("cap 0x%x port_map 0x%x n_ports %d\n", + uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); + + for (i = 0; i < uc_priv->n_ports; i++) + { + uc_priv->port[i].port_mmio = ahci_port_base(host_mmio, i); + port_mmio = uc_priv->port[i].port_mmio; + + /* Ensure that the DWC_ahsata is in idle state */ + tmp = readl(&port_mmio->cmd); + + /* + * When P#CMD.ST, P#CMD.CR, P#CMD.FRE and P#CMD.FR + * are all cleared, the Port is in an idle state. + */ + if (tmp & (SATA_PORT_CMD_CR | SATA_PORT_CMD_FR | + SATA_PORT_CMD_FRE | SATA_PORT_CMD_ST)) + { + + /* + * System software places a Port into the idle state by + * clearing P#CMD.ST and waiting for P#CMD.CR to return + * 0 when read. + */ + tmp &= ~SATA_PORT_CMD_ST; + writel_with_flush(tmp, &port_mmio->cmd); + + /* + * spec says 500 msecs for each bit, so + * this is slightly incorrect. + */ + mdelay(500); + + timeout = 1000; + while ((readl(&port_mmio->cmd) & SATA_PORT_CMD_CR) && --timeout) + ; + + if (timeout <= 0) + { + debug("port reset failed (0x%x)\n", tmp); + return -1; + } + } + + /* Spin-up device */ + tmp = readl(&port_mmio->cmd); + writel((tmp | SATA_PORT_CMD_SUD), &port_mmio->cmd); + + /* Wait for spin-up to finish */ + timeout = 1000; + while (!(readl(&port_mmio->cmd) | SATA_PORT_CMD_SUD) && --timeout) + ; + + if (timeout <= 0) + { + debug("Spin-Up can't finish!\n"); + return -1; + } + + for (j = 0; j < 100; ++j) + { + mdelay(10); + tmp = readl(&port_mmio->ssts); + if (((tmp & SATA_PORT_SSTS_DET_MASK) == 0x3) || + ((tmp & SATA_PORT_SSTS_DET_MASK) == 0x1)) + { + break; + } + } + + /* Wait for COMINIT bit 26 (DIAG_X) in SERR */ + timeout = 1000; + while (!(readl(&port_mmio->serr) & SATA_PORT_SERR_DIAG_X) && --timeout) + ; + + if (timeout <= 0) + { + debug("Can't find DIAG_X set!\n"); + return -1; + } + + /* + * For each implemented Port, clear the P#SERR + * register, by writing ones to each implemented\ + * bit location. + */ + tmp = readl(&port_mmio->serr); + debug("P#SERR 0x%x\n", + tmp); + writel(tmp, &port_mmio->serr); + + /* Ack any pending irq events for this port */ + tmp = readl(&host_mmio->is); + debug("IS 0x%x\n", tmp); + if (tmp) + { + writel(tmp, &host_mmio->is); + } + + writel(1 << i, &host_mmio->is); + + /* set irq mask (enables interrupts) */ + writel(DEF_PORT_IRQ, &port_mmio->ie); + + /* register linkup ports */ + tmp = readl(&port_mmio->ssts); + debug("Port %d status: 0x%x\n", i, tmp); + if ((tmp & SATA_PORT_SSTS_DET_MASK) == 0x03) + { + uc_priv->link_port_map |= (0x01 << i); + } + } + + tmp = readl(&host_mmio->ghc); + debug("GHC 0x%x\n", tmp); + //Interrupt Enable + writel(tmp | SATA_HOST_GHC_IE, &host_mmio->ghc); + tmp = readl(&host_mmio->ghc); + debug("GHC 0x%x\n", tmp); + + return 0; +} + +int rt_hw_ahci_host_init() +{ + struct ahci_uc_priv *ahci_device; + ahci_device = (struct ahci_uc_priv *)rt_device_create(RT_Device_Class_Miscellaneous, sizeof(struct ahci_uc_priv) - sizeof(struct rt_device)); + + ahci_device->mmio_base = (void *)DWCAHSATA_BASE; + ahci_device->parent.init = NULL; + ahci_device->parent.open = NULL; + ahci_device->parent.close = NULL; + ahci_device->parent.read = NULL; + ahci_device->parent.write = NULL; + ahci_device->parent.control = NULL; + + if (rt_device_register((rt_device_t)ahci_device, "dwc_ahsata_ahci", 0) != RT_EOK) + { + rt_kprintf("dwc_ahsata_ahci device register failed!\n"); + return -RT_ERROR; + } + + if (dwc_ahsata_probe((rt_device_t)ahci_device) != 0) + { + rt_kprintf("ahci probe failed!\n"); + return -RT_ERROR; + } + + if (dwc_ahsata_scan((rt_device_t)ahci_device) != 0) + { + rt_kprintf("ahci host sata device scan failed!\n"); + return -RT_ERROR; + } + + return RT_EOK; +} +INIT_COMPONENT_EXPORT(rt_hw_ahci_host_init); + +static void ahci_print_info(struct ahci_uc_priv *uc_priv) +{ + struct sata_host_regs *host_mmio = uc_priv->mmio_base; + u32 vers, cap, impl, speed; + const char *speed_s; + const char *scc_s; + + vers = readl(&host_mmio->vs); + cap = uc_priv->cap; + impl = uc_priv->port_map; + + speed = (cap & SATA_HOST_CAP_ISS_MASK) >> SATA_HOST_CAP_ISS_OFFSET; + + if (speed == 1) + { + speed_s = "1.5"; + } + else if (speed == 2) + { + speed_s = "3"; + } + else + { + speed_s = "?"; + } + + scc_s = "SATA"; + + rt_kprintf("AHCI %02x%02x.%02x%02x " + "%u slots %u ports %s Gbps 0x%x impl %s mode\n", + (vers >> 24) & 0xff, + (vers >> 16) & 0xff, + (vers >> 8) & 0xff, + vers & 0xff, + ((cap >> 8) & 0x1f) + 1, + (cap & 0x1f) + 1, + speed_s, + impl, + scc_s); + + rt_kprintf("flags: " + "%s%s%s%s%s%s" + "%s%s%s%s%s%s%s\n", + cap & (1 << 31) ? "64bit " : "", + cap & (1 << 30) ? "ncq " : "", + cap & (1 << 28) ? "ilck " : "", + cap & (1 << 27) ? "stag " : "", + cap & (1 << 26) ? "pm " : "", + cap & (1 << 25) ? "led " : "", + cap & (1 << 24) ? "clo " : "", + cap & (1 << 19) ? "nz " : "", + cap & (1 << 18) ? "only " : "", + cap & (1 << 17) ? "pmp " : "", + cap & (1 << 15) ? "pio " : "", + cap & (1 << 14) ? "slum " : "", + cap & (1 << 13) ? "part " : ""); + + rt_kprintf("version = %08x\n", ((struct sata_host_regs *)(uc_priv->mmio_base))->versionr); +} + +static int ahci_fill_sg(struct ahci_uc_priv *uc_priv, u8 port, + unsigned char *buf, int buf_len) +{ + struct ahci_ioports *pp = &uc_priv->port[port]; + struct ahci_sg *ahci_sg = pp->cmd_tbl_sg; + u32 sg_count, max_bytes; + int i; + + max_bytes = MAX_DATA_BYTES_PER_SG; + sg_count = ((buf_len - 1) / max_bytes) + 1; + + if (sg_count > AHCI_MAX_SG) + { + rt_kprintf("Error:Too much sg!\n"); + return -1; + } + + for (i = 0; i < sg_count; i++) + { + ahci_sg->addr = VADDR_TO_PHY(buf + i * max_bytes); + //ahci_sg->addr_hi = 0; + ahci_sg->flags_size = cpu_to_le32(0x3fffff & + (buf_len < max_bytes + ? (buf_len - 1) + : (max_bytes - 1))); + ahci_sg++; + buf_len -= max_bytes; + } + + return sg_count; +} + +static void ahci_fill_cmd_slot(struct ahci_ioports *pp, u32 cmd_slot, u32 opts) +{ + struct ahci_cmd_hdr *cmd_hdr = (struct ahci_cmd_hdr *)(pp->cmd_slot + + AHCI_CMD_SLOT_SZ * cmd_slot); + + memset(cmd_hdr, 0, AHCI_CMD_SLOT_SZ); + cmd_hdr->opts = cpu_to_le32(opts); + cmd_hdr->status = 0; + pp->cmd_slot->tbl_addr = VADDR_TO_PHY(pp->cmd_tbl); + /*#ifdef CONFIG_PHYS_64BIT + pp->cmd_slot->tbl_addr_hi = + cpu_to_le32((u32)(((pp->cmd_tbl) >> 16) >> 16)); +#endif*/ +} + +#define AHCI_GET_CMD_SLOT(c) ((c) ? ffs(c) : 0) + +static int ahci_exec_ata_cmd(struct ahci_uc_priv *uc_priv, u8 port, + struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, + s32 is_write) +{ + struct ahci_ioports *pp = &uc_priv->port[port]; + struct sata_port_regs *port_mmio = pp->port_mmio; + u32 opts; + int sg_count = 0, cmd_slot = 0; + + cmd_slot = AHCI_GET_CMD_SLOT(readl(&port_mmio->ci)); + + if (32 == cmd_slot) + { + rt_kprintf("Can't find empty command slot!\n"); + return 0; + } + + /* Check xfer length */ + if (buf_len > MAX_BYTES_PER_TRANS) + { + rt_kprintf("Max transfer length is %dB\n\r", + MAX_BYTES_PER_TRANS); + return 0; + } + + memcpy((u8 *)(pp->cmd_tbl), cfis, sizeof(struct sata_fis_h2d)); + + if (buf && buf_len) + { + sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); + } + + opts = (sizeof(struct sata_fis_h2d) >> 2) | (sg_count << 16); + + if (is_write) + { + opts |= 0x40; + flush_cache((ulong)buf, buf_len); + } + + ahci_fill_cmd_slot(pp, cmd_slot, opts); + + flush_cache((int)(pp->cmd_slot), AHCI_PORT_PRIV_DMA_SZ); + writel_with_flush(1 << cmd_slot, &port_mmio->ci); + + if (waiting_for_cmd_completed((u8 *)&port_mmio->ci, 10000, + 0x1 << cmd_slot)) + { + rt_kprintf("timeout exit!\n"); + return -1; + } + + invalidate_dcache_range((int)(pp->cmd_slot), + (int)(pp->cmd_slot) + AHCI_PORT_PRIV_DMA_SZ); + + debug("ahci_exec_ata_cmd: %d byte transferred.\n", + pp->cmd_slot->status); + + if (!is_write) + { + invalidate_dcache_range((ulong)buf, (ulong)buf + buf_len); + } + + return buf_len; +} + +static void ahci_set_feature(struct ahci_uc_priv *uc_priv, u8 port) +{ + struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); + struct sata_fis_h2d *cfis = &h2d; + + memset(cfis, 0, sizeof(struct sata_fis_h2d)); + cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; + cfis->pm_port_c = 1 << 7; + cfis->command = ATA_CMD_SET_FEATURES; + cfis->features = SETFEATURES_XFER; + cfis->sector_count = ffs(uc_priv->udma_mask + 1) + 0x3e; + + ahci_exec_ata_cmd(uc_priv, port, cfis, NULL, 0, READ_CMD); +} + +static int ahci_port_start(struct ahci_uc_priv *uc_priv, u8 port) +{ + struct ahci_ioports *pp = &uc_priv->port[port]; + struct sata_port_regs *port_mmio = pp->port_mmio; + u32 port_status; + u64 mem; + int timeout = 10000000; + + debug("Enter start port: %d\n", port); + port_status = readl(&port_mmio->ssts); + debug("Port %d status: %x\n", port, port_status); + + if ((port_status & 0xf) != 0x03) + { + rt_kprintf("No Link on this port!\n"); + return -1; + } + + mem = (u64)malloc(AHCI_PORT_PRIV_DMA_SZ + 1024); + + if (!mem) + { + rt_kprintf("No mem for table!\n"); + return -ENOMEM; + } + + mem = (mem + 0x400) & (~0x3ff); /* Aligned to 1024-bytes */ + memset((u8 *)mem, 0, AHCI_PORT_PRIV_DMA_SZ); + + /* + * First item in chunk of DMA memory: 32-slot command table, + * 32 bytes each in size + */ + pp->cmd_slot = (struct ahci_cmd_hdr *)mem; + debug("cmd_slot = 0x%p\n", pp->cmd_slot); + mem += (AHCI_CMD_SLOT_SZ * DWC_AHSATA_MAX_CMD_SLOTS); + + /* + * Second item: Received-FIS area, 256-Byte aligned + */ + pp->rx_fis = mem; + mem += AHCI_RX_FIS_SZ; + + /* + * Third item: data area for storing a single command + * and its scatter-gather table + */ + pp->cmd_tbl = mem; + debug("cmd_tbl_dma = 0x%lx\n", pp->cmd_tbl); + + mem += AHCI_CMD_TBL_HDR; + + writel_with_flush(0x00004444, &port_mmio->dmacr); + pp->cmd_tbl_sg = (struct ahci_sg *)mem; + writel_with_flush(LOW_PHY(pp->cmd_slot), &port_mmio->clb); + writel_with_flush(HIGH_PHY(pp->cmd_slot), &port_mmio->clbu); + writel_with_flush(LOW_PHY(pp->rx_fis), &port_mmio->fb); + writel_with_flush(HIGH_PHY(pp->rx_fis), &port_mmio->fbu); + + /* Enable FRE */ + writel_with_flush((SATA_PORT_CMD_FRE | readl(&port_mmio->cmd)), + &port_mmio->cmd); + + /* Wait device ready */ + while ((readl(&port_mmio->tfd) & (SATA_PORT_TFD_STS_ERR | + SATA_PORT_TFD_STS_DRQ | SATA_PORT_TFD_STS_BSY)) && + --timeout) + ; + if (timeout <= 0) + { + debug("Device not ready for BSY, DRQ and" + "ERR in TFD!\n"); + return -1; + } + + writel_with_flush(PORT_CMD_ICC_ACTIVE | PORT_CMD_FIS_RX | + PORT_CMD_POWER_ON | PORT_CMD_SPIN_UP | + PORT_CMD_START, + &port_mmio->cmd); + + debug("Exit start port %d\n", port); + + return 0; +} + +static void dwc_ahsata_print_info(struct blk_device *pdev) +{ + rt_kprintf("SATA Device Info:\n\r"); + rt_kprintf("S/N: %s\n\rProduct model number: %s\n\r" + "Firmware version: %s\n\rCapacity: %lu sectors\n\r", + pdev->product, pdev->vendor, pdev->revision, pdev->lba); +} + +static void dwc_ahsata_identify(struct ahci_uc_priv *uc_priv, u16 *id) +{ + struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); + struct sata_fis_h2d *cfis = &h2d; + u8 port = uc_priv->hard_port_no; + + memset(cfis, 0, sizeof(struct sata_fis_h2d)); + + cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; + cfis->pm_port_c = 0x80; /* is command */ + cfis->command = ATA_CMD_ID_ATA; + + ahci_exec_ata_cmd(uc_priv, port, cfis, (u8 *)id, ATA_ID_WORDS * 2, + READ_CMD); + ata_swap_buf_le16(id, ATA_ID_WORDS); +} + +static void dwc_ahsata_xfer_mode(struct ahci_uc_priv *uc_priv, u16 *id) +{ + uc_priv->pio_mask = id[ATA_ID_PIO_MODES]; + uc_priv->udma_mask = id[ATA_ID_UDMA_MODES]; + debug("pio %04x, udma %04x\n\r", uc_priv->pio_mask, uc_priv->udma_mask); +} + +static u32 dwc_ahsata_rw_cmd(struct ahci_uc_priv *uc_priv, u32 start, + u32 blkcnt, u8 *buffer, int is_write) +{ + struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); + struct sata_fis_h2d *cfis = &h2d; + u8 port = uc_priv->hard_port_no; + u32 block; + + block = start; + + memset(cfis, 0, sizeof(struct sata_fis_h2d)); + + cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; + cfis->pm_port_c = 0x80; /* is command */ + cfis->command = (is_write) ? ATA_CMD_WRITE : ATA_CMD_READ; + cfis->device = ATA_LBA; + + cfis->device |= (block >> 24) & 0xf; + cfis->lba_high = (block >> 16) & 0xff; + cfis->lba_mid = (block >> 8) & 0xff; + cfis->lba_low = block & 0xff; + cfis->sector_count = (u8)(blkcnt & 0xff); + + if (ahci_exec_ata_cmd(uc_priv, port, cfis, buffer, + ATA_SECT_SIZE * blkcnt, is_write) > 0) + return blkcnt; + else + return 0; +} + +static void dwc_ahsata_flush_cache(struct ahci_uc_priv *uc_priv) +{ + struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); + struct sata_fis_h2d *cfis = &h2d; + u8 port = uc_priv->hard_port_no; + + memset(cfis, 0, sizeof(struct sata_fis_h2d)); + + cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; + cfis->pm_port_c = 0x80; /* is command */ + cfis->command = ATA_CMD_FLUSH; + + ahci_exec_ata_cmd(uc_priv, port, cfis, NULL, 0, 0); +} + +static u32 dwc_ahsata_rw_cmd_ext(struct ahci_uc_priv *uc_priv, u32 start, + lbaint_t blkcnt, u8 *buffer, int is_write) +{ + struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); + struct sata_fis_h2d *cfis = &h2d; + u8 port = uc_priv->hard_port_no; + u64 block; + + block = (u64)start; + + memset(cfis, 0, sizeof(struct sata_fis_h2d)); + + cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; + cfis->pm_port_c = 0x80; /* is command */ + + cfis->command = (is_write) ? ATA_CMD_WRITE_EXT + : ATA_CMD_READ_EXT; + + cfis->lba_high_exp = (block >> 40) & 0xff; + cfis->lba_mid_exp = (block >> 32) & 0xff; + cfis->lba_low_exp = (block >> 24) & 0xff; + cfis->lba_high = (block >> 16) & 0xff; + cfis->lba_mid = (block >> 8) & 0xff; + cfis->lba_low = block & 0xff; + cfis->device = ATA_LBA; + cfis->sector_count_exp = (blkcnt >> 8) & 0xff; + cfis->sector_count = blkcnt & 0xff; + + if (ahci_exec_ata_cmd(uc_priv, port, cfis, buffer, + ATA_SECT_SIZE * blkcnt, is_write) > 0) + return blkcnt; + else + return 0; +} + +static void dwc_ahsata_flush_cache_ext(struct ahci_uc_priv *uc_priv) +{ + struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); + struct sata_fis_h2d *cfis = &h2d; + u8 port = uc_priv->hard_port_no; + + memset(cfis, 0, sizeof(struct sata_fis_h2d)); + + cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; + cfis->pm_port_c = 0x80; /* is command */ + cfis->command = ATA_CMD_FLUSH_EXT; + + ahci_exec_ata_cmd(uc_priv, port, cfis, NULL, 0, 0); +} + +static void dwc_ahsata_init_wcache(struct ahci_uc_priv *uc_priv, u16 *id) +{ + if (ata_id_has_wcache(id) && ata_id_wcache_enabled(id)) + uc_priv->flags |= SATA_FLAG_WCACHE; + if (ata_id_has_flush(id)) + uc_priv->flags |= SATA_FLAG_FLUSH; + if (ata_id_has_flush_ext(id)) + uc_priv->flags |= SATA_FLAG_FLUSH_EXT; +} + +static u32 ata_low_level_rw_lba48(struct ahci_uc_priv *uc_priv, u32 blknr, + lbaint_t blkcnt, const void *buffer, + int is_write) +{ + u32 start, blks; + u8 *addr; + int max_blks; + + start = blknr; + blks = blkcnt; + addr = (u8 *)buffer; + + max_blks = ATA_MAX_SECTORS_LBA48; + + do + { + if (blks > max_blks) + { + if (max_blks != dwc_ahsata_rw_cmd_ext(uc_priv, start, + max_blks, addr, + is_write)) + return 0; + start += max_blks; + blks -= max_blks; + addr += ATA_SECT_SIZE * max_blks; + } + else + { + if (blks != dwc_ahsata_rw_cmd_ext(uc_priv, start, blks, + addr, is_write)) + return 0; + start += blks; + blks = 0; + addr += ATA_SECT_SIZE * blks; + } + } while (blks != 0); + + return blkcnt; +} + +static u32 ata_low_level_rw_lba28(struct ahci_uc_priv *uc_priv, u32 blknr, + lbaint_t blkcnt, const void *buffer, + int is_write) +{ + u32 start, blks; + u8 *addr; + int max_blks; + + start = blknr; + blks = blkcnt; + addr = (u8 *)buffer; + + max_blks = ATA_MAX_SECTORS; + do + { + if (blks > max_blks) + { + if (max_blks != dwc_ahsata_rw_cmd(uc_priv, start, + max_blks, addr, + is_write)) + return 0; + start += max_blks; + blks -= max_blks; + addr += ATA_SECT_SIZE * max_blks; + } + else + { + if (blks != dwc_ahsata_rw_cmd(uc_priv, start, blks, + addr, is_write)) + return 0; + start += blks; + blks = 0; + addr += ATA_SECT_SIZE * blks; + } + } while (blks != 0); + + return blkcnt; +} + +static int dwc_ahci_start_ports(struct ahci_uc_priv *uc_priv) +{ + u32 linkmap; + int i; + + linkmap = uc_priv->link_port_map; + + if (0 == linkmap) + { + rt_kprintf("No port device detected!\n"); + return -ENXIO; + } + + for (i = 0; i < uc_priv->n_ports; i++) + { + if ((linkmap >> i) && ((linkmap >> i) & 0x01)) + { + if (ahci_port_start(uc_priv, (u8)i)) + { + rt_kprintf("Can not start port %d\n", i); + return 1; + } + + uc_priv->hard_port_no = i; + break; + } + } + + return 0; +} + +unsigned char sector_data[512]; + +void dump_pbuf(void *p, int len) +{ + rt_kprintf("----dump_pbuf----\n"); + rt_kprintf("pbuf = 0x%p,len = %d\n", p, len); + u32 i; + u8 *q = p; + rt_kprintf("%p", q); + + for (i = 0; i < 16; i++) + { + rt_kprintf(" %02x", i); + } + + rt_kprintf("\n"); + + for (i = 0; i < len; i++) + { + if (!(i & 0xF)) + { + rt_kprintf("%p", &q[i]); + } + + rt_kprintf(" %02x", q[i]); + + if ((i & 0xF) == 0xF) + { + rt_kprintf("\n"); + } + } + + rt_kprintf("\n-----------------\n"); +} + +static int dwc_ahsata_scan_common(struct ahci_uc_priv *uc_priv, + struct blk_device *pdev) +{ + u8 serial[ATA_ID_SERNO_LEN + 1] = {0}; + u8 firmware[ATA_ID_FW_REV_LEN + 1] = {0}; + u8 product[ATA_ID_PROD_LEN + 1] = {0}; + u8 port = uc_priv->hard_port_no; + ALLOC_CACHE_ALIGN_BUFFER(u16, id, ATA_ID_WORDS); + + /* Identify device to get information */ + dwc_ahsata_identify(uc_priv, id); + + /* Serial number */ + ata_id_c_string(id, serial, ATA_ID_SERNO, sizeof(serial)); + memcpy(pdev->product, serial, sizeof(serial)); + + /* Firmware version */ + ata_id_c_string(id, firmware, ATA_ID_FW_REV, sizeof(firmware)); + memcpy(pdev->revision, firmware, sizeof(firmware)); + + /* Product model */ + ata_id_c_string(id, product, ATA_ID_PROD, sizeof(product)); + memcpy(pdev->vendor, product, sizeof(product)); + + /* Total sectors */ + pdev->lba = ata_id_n_sectors(id); + + pdev->type = DEV_TYPE_HARDDISK; + pdev->blksz = ATA_SECT_SIZE; + pdev->lun = 0; + + /* Check if support LBA48 */ + if (ata_id_has_lba48(id)) + { + pdev->lba48 = 1; + debug("Device support LBA48\n\r"); + } + + /* Get the NCQ queue depth from device */ + uc_priv->flags &= (~SATA_FLAG_Q_DEP_MASK); + uc_priv->flags |= ata_id_queue_depth(id); + + /* Get the xfer mode from device */ + dwc_ahsata_xfer_mode(uc_priv, id); + + /* Get the write cache status from device */ + dwc_ahsata_init_wcache(uc_priv, id); + + /* Set the xfer mode to highest speed */ + ahci_set_feature(uc_priv, port); + dwc_ahsata_read((rt_device_t)pdev, 0, sector_data, 1); + //dump_pbuf(sector_data, 512); + dwc_ahsata_print_info(pdev); + + return 0; +} + +/* + * SATA interface between low level driver and command layer + */ +static ulong sata_read_common(struct ahci_uc_priv *uc_priv, + struct blk_device *desc, ulong blknr, + lbaint_t blkcnt, void *buffer) +{ + u32 rc; + + if (desc->lba48) + rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, + READ_CMD); + else + rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, + READ_CMD); + + return rc; +} + +static ulong sata_write_common(struct ahci_uc_priv *uc_priv, + struct blk_device *desc, ulong blknr, + lbaint_t blkcnt, const void *buffer) +{ + u32 rc; + u32 flags = uc_priv->flags; + + if (desc->lba48) + { + rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, + WRITE_CMD); + if ((flags & SATA_FLAG_WCACHE) && (flags & SATA_FLAG_FLUSH_EXT)) + dwc_ahsata_flush_cache_ext(uc_priv); + } + else + { + rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, + WRITE_CMD); + if ((flags & SATA_FLAG_WCACHE) && (flags & SATA_FLAG_FLUSH)) + dwc_ahsata_flush_cache(uc_priv); + } + + return rc; +} + +#if !CONFIG_IS_ENABLED(AHCI) +static int ahci_init_one(int pdev) +{ + int rc; + struct ahci_uc_priv *uc_priv = NULL; + + uc_priv = malloc(sizeof(struct ahci_uc_priv)); + if (!uc_priv) + return -ENOMEM; + + memset(uc_priv, 0, sizeof(struct ahci_uc_priv)); + uc_priv->dev = pdev; + + uc_priv->host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA | ATA_FLAG_NO_ATAPI; + + uc_priv->mmio_base = (void __iomem *)CONFIG_DWC_AHSATA_BASE_ADDR; + + /* initialize adapter */ + rc = ahci_host_init(uc_priv); + if (rc) + goto err_out; + + ahci_print_info(uc_priv); + + /* Save the uc_private struct to block device struct */ + sata_dev_desc[pdev].priv = uc_priv; + + return 0; + +err_out: + if (uc_priv) + free(uc_priv); + return rc; +} + +int init_sata(int dev) +{ + struct ahci_uc_priv *uc_priv = NULL; + +#if defined(CONFIG_MX6) + if (!is_mx6dq() && !is_mx6dqp()) + return 1; +#endif + if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) + { + rt_kprintf("The sata index %d is out of ranges\n\r", dev); + return -1; + } + + ahci_init_one(dev); + + uc_priv = sata_dev_desc[dev].priv; + + return dwc_ahci_start_ports(uc_priv) ? 1 : 0; +} + +int reset_sata(int dev) +{ + struct ahci_uc_priv *uc_priv; + struct sata_host_regs *host_mmio; + + if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) + { + rt_kprintf("The sata index %d is out of ranges\n\r", dev); + return -1; + } + + uc_priv = sata_dev_desc[dev].priv; + if (NULL == uc_priv) + /* not initialized, so nothing to reset */ + return 0; + + host_mmio = uc_priv->mmio_base; + setbits_le32(&host_mmio->ghc, SATA_HOST_GHC_HR); + while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) + udelay(100); + + free(uc_priv); + memset(&sata_dev_desc[dev], 0, sizeof(struct blk_desc)); + + return 0; +} + +int sata_port_status(int dev, int port) +{ + struct sata_port_regs *port_mmio; + struct ahci_uc_priv *uc_priv = NULL; + + if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) + return -EINVAL; + + if (sata_dev_desc[dev].priv == NULL) + return -ENODEV; + + uc_priv = sata_dev_desc[dev].priv; + port_mmio = uc_priv->port[port].port_mmio; + + return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK; +} + +/* + * SATA interface between low level driver and command layer + */ +ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) +{ + struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; + + return sata_read_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt, + buffer); +} + +ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) +{ + struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; + + return sata_write_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt, + buffer); +} + +int scan_sata(int dev) +{ + struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; + struct blk_desc *pdev = &sata_dev_desc[dev]; + + return dwc_ahsata_scan_common(uc_priv, pdev); +} +#endif /* CONFIG_IS_ENABLED(AHCI) */ + +#if CONFIG_IS_ENABLED(AHCI) + +int dwc_ahsata_port_status(struct rt_device *dev, int port) +{ + struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; + struct sata_port_regs *port_mmio; + + port_mmio = uc_priv->port[port].port_mmio; + return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK ? 0 : -ENXIO; +} + +int dwc_ahsata_bus_reset(struct rt_device *dev) +{ + struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; + struct sata_host_regs *host_mmio = uc_priv->mmio_base; + + setbits_le32(&host_mmio->ghc, SATA_HOST_GHC_HR); + + while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) + { + udelay(100); + } + + return 0; +} + +int dwc_ahsata_scan(struct rt_device *dev) +{ + struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; + struct blk_device *blk; + rt_err_t ret; + + blk = (struct blk_device *)rt_device_create(RT_Device_Class_Block, sizeof(struct blk_device) - sizeof(struct rt_device)); + blk->parent.init = NULL; + blk->parent.open = NULL; + blk->parent.close = NULL; + blk->parent.control = dwc_ahsata_control; + blk->parent.read = dwc_ahsata_read; + blk->parent.write = dwc_ahsata_write; + blk->ahci_device = uc_priv; + blk->blksz = 512; + blk->log2blksz = 9; + blk->lba = 0; + ret = rt_device_register((rt_device_t)blk, "dwc_ahsata_blk", RT_DEVICE_FLAG_RDWR); + + if (ret != RT_EOK) + { + debug("Can't create device\n"); + return ret; + } + + ret = dwc_ahsata_scan_common(uc_priv, blk); + + if (ret) + { + debug("%s: Failed to scan bus\n", __func__); + return ret; + } + + return 0; +} + +int dwc_ahsata_probe(struct rt_device *dev) +{ + struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; + int ret; + + uc_priv->host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | + ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA | ATA_FLAG_NO_ATAPI; + + /* initialize adapter */ + ret = ahci_host_init(uc_priv); + if (ret) + return ret; + + ahci_print_info(uc_priv); + + return dwc_ahci_start_ports(uc_priv); +} + +rt_size_t dwc_ahsata_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) +{ + struct blk_device *blk = (struct blk_device *)dev; + return sata_read_common(blk->ahci_device, blk, pos, size, buffer); +} + +rt_size_t dwc_ahsata_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) +{ + struct blk_device *blk = (struct blk_device *)dev; + return sata_write_common(blk->ahci_device, blk, pos, size, buffer); +} + +rt_err_t dwc_ahsata_control(rt_device_t dev, int cmd, void *args) +{ + struct blk_device *blk = (struct blk_device *)dev; + + switch (cmd) + { + case RT_DEVICE_CTRL_BLK_GETGEOME: + + if (args != NULL) + { + struct rt_device_blk_geometry *info = (struct rt_device_blk_geometry *)args; + info->sector_count = blk->lba; + info->bytes_per_sector = blk->blksz; + info->block_size = 0; + } + + break; + } + + return RT_EOK; +} + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.h b/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.h new file mode 100644 index 0000000000..44e993d03e --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + + +#ifndef __DWC_AHSATA_H__ +#define __DWC_AHSATA_H__ + +#define DWCAHSATA_BASE (0x9000000000000000 | 0x400e0000) + +int dwc_ahsata_bus_reset(struct rt_device *dev); +int dwc_ahsata_probe(struct rt_device *dev); +int dwc_ahsata_scan(struct rt_device *dev); +int dwc_ahsata_port_status(struct rt_device *dev, int port); +rt_size_t dwc_ahsata_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size); +rt_size_t dwc_ahsata_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size); +rt_err_t dwc_ahsata_control(rt_device_t dev, int cmd, void *args); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata_priv.h b/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata_priv.h new file mode 100644 index 0000000000..03e64808b9 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/dwc_ahsata_priv.h @@ -0,0 +1,323 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + +#ifndef __DWC_AHSATA_PRIV_H__ +#define __DWC_AHSATA_PRIV_H__ + +#define DWC_AHSATA_MAX_CMD_SLOTS 32 + +/* Max host controller numbers */ +#define SATA_HC_MAX_NUM 4 +/* Max command queue depth per host controller */ +#define DWC_AHSATA_HC_MAX_CMD 32 +/* Max port number per host controller */ +#define SATA_HC_MAX_PORT 16 + +/* Generic Host Register */ + +/* HBA Capabilities Register */ +#define SATA_HOST_CAP_S64A 0x80000000 +#define SATA_HOST_CAP_SNCQ 0x40000000 +#define SATA_HOST_CAP_SSNTF 0x20000000 +#define SATA_HOST_CAP_SMPS 0x10000000 +#define SATA_HOST_CAP_SSS 0x08000000 +#define SATA_HOST_CAP_SALP 0x04000000 +#define SATA_HOST_CAP_SAL 0x02000000 +#define SATA_HOST_CAP_SCLO 0x01000000 +#define SATA_HOST_CAP_ISS_MASK 0x00f00000 +#define SATA_HOST_CAP_ISS_OFFSET 20 +#define SATA_HOST_CAP_SNZO 0x00080000 +#define SATA_HOST_CAP_SAM 0x00040000 +#define SATA_HOST_CAP_SPM 0x00020000 +#define SATA_HOST_CAP_PMD 0x00008000 +#define SATA_HOST_CAP_SSC 0x00004000 +#define SATA_HOST_CAP_PSC 0x00002000 +#define SATA_HOST_CAP_NCS 0x00001f00 +#define SATA_HOST_CAP_CCCS 0x00000080 +#define SATA_HOST_CAP_EMS 0x00000040 +#define SATA_HOST_CAP_SXS 0x00000020 +#define SATA_HOST_CAP_NP_MASK 0x0000001f + +/* Global HBA Control Register */ +#define SATA_HOST_GHC_AE 0x80000000 +#define SATA_HOST_GHC_IE 0x00000002 +#define SATA_HOST_GHC_HR 0x00000001 + +/* Interrupt Status Register */ + +/* Ports Implemented Register */ + +/* AHCI Version Register */ +#define SATA_HOST_VS_MJR_MASK 0xffff0000 +#define SATA_HOST_VS_MJR_OFFSET 16 +#define SATA_HOST_VS_MJR_MNR 0x0000ffff + +/* Command Completion Coalescing Control */ +#define SATA_HOST_CCC_CTL_TV_MASK 0xffff0000 +#define SATA_HOST_CCC_CTL_TV_OFFSET 16 +#define SATA_HOST_CCC_CTL_CC_MASK 0x0000ff00 +#define SATA_HOST_CCC_CTL_CC_OFFSET 8 +#define SATA_HOST_CCC_CTL_INT_MASK 0x000000f8 +#define SATA_HOST_CCC_CTL_INT_OFFSET 3 +#define SATA_HOST_CCC_CTL_EN 0x00000001 + +/* Command Completion Coalescing Ports */ + +/* HBA Capabilities Extended Register */ +#define SATA_HOST_CAP2_APST 0x00000004 + +/* BIST Activate FIS Register */ +#define SATA_HOST_BISTAFR_NCP_MASK 0x0000ff00 +#define SATA_HOST_BISTAFR_NCP_OFFSET 8 +#define SATA_HOST_BISTAFR_PD_MASK 0x000000ff +#define SATA_HOST_BISTAFR_PD_OFFSET 0 + +/* BIST Control Register */ +#define SATA_HOST_BISTCR_FERLB 0x00100000 +#define SATA_HOST_BISTCR_TXO 0x00040000 +#define SATA_HOST_BISTCR_CNTCLR 0x00020000 +#define SATA_HOST_BISTCR_NEALB 0x00010000 +#define SATA_HOST_BISTCR_LLC_MASK 0x00000700 +#define SATA_HOST_BISTCR_LLC_OFFSET 8 +#define SATA_HOST_BISTCR_ERREN 0x00000040 +#define SATA_HOST_BISTCR_FLIP 0x00000020 +#define SATA_HOST_BISTCR_PV 0x00000010 +#define SATA_HOST_BISTCR_PATTERN_MASK 0x0000000f +#define SATA_HOST_BISTCR_PATTERN_OFFSET 0 + +/* BIST FIS Count Register */ + +/* BIST Status Register */ +#define SATA_HOST_BISTSR_FRAMERR_MASK 0x0000ffff +#define SATA_HOST_BISTSR_FRAMERR_OFFSET 0 +#define SATA_HOST_BISTSR_BRSTERR_MASK 0x00ff0000 +#define SATA_HOST_BISTSR_BRSTERR_OFFSET 16 + +/* BIST DWORD Error Count Register */ + +/* OOB Register*/ +#define SATA_HOST_OOBR_WE 0x80000000 +#define SATA_HOST_OOBR_cwMin_MASK 0x7f000000 +#define SATA_HOST_OOBR_cwMAX_MASK 0x00ff0000 +#define SATA_HOST_OOBR_ciMin_MASK 0x0000ff00 +#define SATA_HOST_OOBR_ciMax_MASK 0x000000ff + +/* Timer 1-ms Register */ + +/* Global Parameter 1 Register */ +#define SATA_HOST_GPARAM1R_ALIGN_M 0x80000000 +#define SATA_HOST_GPARAM1R_RX_BUFFER 0x40000000 +#define SATA_HOST_GPARAM1R_PHY_DATA_MASK 0x30000000 +#define SATA_HOST_GPARAM1R_PHY_RST 0x08000000 +#define SATA_HOST_GPARAM1R_PHY_CTRL_MASK 0x07e00000 +#define SATA_HOST_GPARAM1R_PHY_STAT_MASK 0x001f8000 +#define SATA_HOST_GPARAM1R_LATCH_M 0x00004000 +#define SATA_HOST_GPARAM1R_BIST_M 0x00002000 +#define SATA_HOST_GPARAM1R_PHY_TYPE 0x00001000 +#define SATA_HOST_GPARAM1R_RETURN_ERR 0x00000400 +#define SATA_HOST_GPARAM1R_AHB_ENDIAN_MASK 0x00000300 +#define SATA_HOST_GPARAM1R_S_HADDR 0X00000080 +#define SATA_HOST_GPARAM1R_M_HADDR 0X00000040 + +/* Global Parameter 2 Register */ +#define SATA_HOST_GPARAM2R_DEV_CP 0x00004000 +#define SATA_HOST_GPARAM2R_DEV_MP 0x00002000 +#define SATA_HOST_GPARAM2R_DEV_ENCODE_M 0x00001000 +#define SATA_HOST_GPARAM2R_RXOOB_CLK_M 0x00000800 +#define SATA_HOST_GPARAM2R_RXOOB_M 0x00000400 +#define SATA_HOST_GPARAM2R_TX_OOB_M 0x00000200 +#define SATA_HOST_GPARAM2R_RXOOB_CLK_MASK 0x000001ff + +/* Port Parameter Register */ +#define SATA_HOST_PPARAMR_TX_MEM_M 0x00000200 +#define SATA_HOST_PPARAMR_TX_MEM_S 0x00000100 +#define SATA_HOST_PPARAMR_RX_MEM_M 0x00000080 +#define SATA_HOST_PPARAMR_RX_MEM_S 0x00000040 +#define SATA_HOST_PPARAMR_TXFIFO_DEPTH_MASK 0x00000038 +#define SATA_HOST_PPARAMR_RXFIFO_DEPTH_MASK 0x00000007 + +/* Test Register */ +#define SATA_HOST_TESTR_PSEL_MASK 0x00070000 +#define SATA_HOST_TESTR_TEST_IF 0x00000001 + +/* Port Register Descriptions */ +/* Port# Command List Base Address Register */ +#define SATA_PORT_CLB_CLB_MASK 0xfffffc00 + +/* Port# Command List Base Address Upper 32-Bits Register */ + +/* Port# FIS Base Address Register */ +#define SATA_PORT_FB_FB_MASK 0xfffffff0 + +/* Port# FIS Base Address Upper 32-Bits Register */ + +/* Port# Interrupt Status Register */ +#define SATA_PORT_IS_CPDS 0x80000000 +#define SATA_PORT_IS_TFES 0x40000000 +#define SATA_PORT_IS_HBFS 0x20000000 +#define SATA_PORT_IS_HBDS 0x10000000 +#define SATA_PORT_IS_IFS 0x08000000 +#define SATA_PORT_IS_INFS 0x04000000 +#define SATA_PORT_IS_OFS 0x01000000 +#define SATA_PORT_IS_IPMS 0x00800000 +#define SATA_PORT_IS_PRCS 0x00400000 +#define SATA_PORT_IS_DMPS 0x00000080 +#define SATA_PORT_IS_PCS 0x00000040 +#define SATA_PORT_IS_DPS 0x00000020 +#define SATA_PORT_IS_UFS 0x00000010 +#define SATA_PORT_IS_SDBS 0x00000008 +#define SATA_PORT_IS_DSS 0x00000004 +#define SATA_PORT_IS_PSS 0x00000002 +#define SATA_PORT_IS_DHRS 0x00000001 + +/* Port# Interrupt Enable Register */ +#define SATA_PORT_IE_CPDE 0x80000000 +#define SATA_PORT_IE_TFEE 0x40000000 +#define SATA_PORT_IE_HBFE 0x20000000 +#define SATA_PORT_IE_HBDE 0x10000000 +#define SATA_PORT_IE_IFE 0x08000000 +#define SATA_PORT_IE_INFE 0x04000000 +#define SATA_PORT_IE_OFE 0x01000000 +#define SATA_PORT_IE_IPME 0x00800000 +#define SATA_PORT_IE_PRCE 0x00400000 +#define SATA_PORT_IE_DMPE 0x00000080 +#define SATA_PORT_IE_PCE 0x00000040 +#define SATA_PORT_IE_DPE 0x00000020 +#define SATA_PORT_IE_UFE 0x00000010 +#define SATA_PORT_IE_SDBE 0x00000008 +#define SATA_PORT_IE_DSE 0x00000004 +#define SATA_PORT_IE_PSE 0x00000002 +#define SATA_PORT_IE_DHRE 0x00000001 + +/* Port# Command Register */ +#define SATA_PORT_CMD_ICC_MASK 0xf0000000 +#define SATA_PORT_CMD_ASP 0x08000000 +#define SATA_PORT_CMD_ALPE 0x04000000 +#define SATA_PORT_CMD_DLAE 0x02000000 +#define SATA_PORT_CMD_ATAPI 0x01000000 +#define SATA_PORT_CMD_APSTE 0x00800000 +#define SATA_PORT_CMD_ESP 0x00200000 +#define SATA_PORT_CMD_CPD 0x00100000 +#define SATA_PORT_CMD_MPSP 0x00080000 +#define SATA_PORT_CMD_HPCP 0x00040000 +#define SATA_PORT_CMD_PMA 0x00020000 +#define SATA_PORT_CMD_CPS 0x00010000 +#define SATA_PORT_CMD_CR 0x00008000 +#define SATA_PORT_CMD_FR 0x00004000 +#define SATA_PORT_CMD_MPSS 0x00002000 +#define SATA_PORT_CMD_CCS_MASK 0x00001f00 +#define SATA_PORT_CMD_FRE 0x00000010 +#define SATA_PORT_CMD_CLO 0x00000008 +#define SATA_PORT_CMD_POD 0x00000004 +#define SATA_PORT_CMD_SUD 0x00000002 +#define SATA_PORT_CMD_ST 0x00000001 + +/* Port# Task File Data Register */ +#define SATA_PORT_TFD_ERR_MASK 0x0000ff00 +#define SATA_PORT_TFD_STS_MASK 0x000000ff +#define SATA_PORT_TFD_STS_ERR 0x00000001 +#define SATA_PORT_TFD_STS_DRQ 0x00000008 +#define SATA_PORT_TFD_STS_BSY 0x00000080 + +/* Port# Signature Register */ + +/* Port# Serial ATA Status {SStatus} Register */ +#define SATA_PORT_SSTS_IPM_MASK 0x00000f00 +#define SATA_PORT_SSTS_SPD_MASK 0x000000f0 +#define SATA_PORT_SSTS_DET_MASK 0x0000000f + +/* Port# Serial ATA Control {SControl} Register */ +#define SATA_PORT_SCTL_IPM_MASK 0x00000f00 +#define SATA_PORT_SCTL_SPD_MASK 0x000000f0 +#define SATA_PORT_SCTL_DET_MASK 0x0000000f + +/* Port# Serial ATA Error {SError} Register */ +#define SATA_PORT_SERR_DIAG_X 0x04000000 +#define SATA_PORT_SERR_DIAG_F 0x02000000 +#define SATA_PORT_SERR_DIAG_T 0x01000000 +#define SATA_PORT_SERR_DIAG_S 0x00800000 +#define SATA_PORT_SERR_DIAG_H 0x00400000 +#define SATA_PORT_SERR_DIAG_C 0x00200000 +#define SATA_PORT_SERR_DIAG_D 0x00100000 +#define SATA_PORT_SERR_DIAG_B 0x00080000 +#define SATA_PORT_SERR_DIAG_W 0x00040000 +#define SATA_PORT_SERR_DIAG_I 0x00020000 +#define SATA_PORT_SERR_DIAG_N 0x00010000 +#define SATA_PORT_SERR_ERR_E 0x00000800 +#define SATA_PORT_SERR_ERR_P 0x00000400 +#define SATA_PORT_SERR_ERR_C 0x00000200 +#define SATA_PORT_SERR_ERR_T 0x00000100 +#define SATA_PORT_SERR_ERR_M 0x00000002 +#define SATA_PORT_SERR_ERR_I 0x00000001 + +/* Port# Serial ATA Active {SActive} Register */ + +/* Port# Command Issue Register */ + +/* Port# Serial ATA Notification Register */ + +/* Port# DMA Control Register */ +#define SATA_PORT_DMACR_RXABL_MASK 0x0000f000 +#define SATA_PORT_DMACR_TXABL_MASK 0x00000f00 +#define SATA_PORT_DMACR_RXTS_MASK 0x000000f0 +#define SATA_PORT_DMACR_TXTS_MASK 0x0000000f + +/* Port# PHY Control Register */ + +/* Port# PHY Status Register */ + +#define SATA_HC_CMD_HDR_ENTRY_SIZE sizeof(struct cmd_hdr_entry) + +/* DW0 +*/ +#define CMD_HDR_DI_CFL_MASK 0x0000001f +#define CMD_HDR_DI_CFL_OFFSET 0 +#define CMD_HDR_DI_A 0x00000020 +#define CMD_HDR_DI_W 0x00000040 +#define CMD_HDR_DI_P 0x00000080 +#define CMD_HDR_DI_R 0x00000100 +#define CMD_HDR_DI_B 0x00000200 +#define CMD_HDR_DI_C 0x00000400 +#define CMD_HDR_DI_PMP_MASK 0x0000f000 +#define CMD_HDR_DI_PMP_OFFSET 12 +#define CMD_HDR_DI_PRDTL 0xffff0000 +#define CMD_HDR_DI_PRDTL_OFFSET 16 + +/* prde_fis_len +*/ +#define CMD_HDR_PRD_ENTRY_SHIFT 16 +#define CMD_HDR_PRD_ENTRY_MASK 0x003f0000 +#define CMD_HDR_FIS_LEN_SHIFT 2 + +/* attribute +*/ +#define CMD_HDR_ATTR_RES 0x00000800 /* Reserved bit, should be 1 */ +#define CMD_HDR_ATTR_VBIST 0x00000400 /* Vendor BIST */ +/* Snoop enable for all descriptor */ +#define CMD_HDR_ATTR_SNOOP 0x00000200 +#define CMD_HDR_ATTR_FPDMA 0x00000100 /* FPDMA queued command */ +#define CMD_HDR_ATTR_RESET 0x00000080 /* Reset - a SRST or device reset */ +/* BIST - require the host to enter BIST mode */ +#define CMD_HDR_ATTR_BIST 0x00000040 +#define CMD_HDR_ATTR_ATAPI 0x00000020 /* ATAPI command */ +#define CMD_HDR_ATTR_TAG 0x0000001f /* TAG mask */ + +#define FLAGS_DMA 0x00000000 +#define FLAGS_FPDMA 0x00000001 + +#define SATA_FLAG_Q_DEP_MASK 0x0000000f +#define SATA_FLAG_WCACHE 0x00000100 +#define SATA_FLAG_FLUSH 0x00000200 +#define SATA_FLAG_FLUSH_EXT 0x00000400 + +#define READ_CMD 0 +#define WRITE_CMD 1 + +#endif /* __DWC_AHSATA_H__ */ diff --git a/bsp/loongson/ls2kdev/drivers/ata/fis.h b/bsp/loongson/ls2kdev/drivers/ata/fis.h new file mode 100644 index 0000000000..c4c6557b8f --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/fis.h @@ -0,0 +1,152 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + +#ifndef __FIS_H__ +#define __FIS_H__ +/* +* Register - Host to Device FIS +*/ +typedef struct sata_fis_h2d +{ + u8 fis_type; + u8 pm_port_c; + u8 command; + u8 features; + u8 lba_low; + u8 lba_mid; + u8 lba_high; + u8 device; + u8 lba_low_exp; + u8 lba_mid_exp; + u8 lba_high_exp; + u8 features_exp; + u8 sector_count; + u8 sector_count_exp; + u8 res1; + u8 control; + u8 res2[4]; +} __attribute__((packed)) sata_fis_h2d_t; + +/* +* Register - Host to Device FIS for read/write FPDMA queued +*/ +typedef struct sata_fis_h2d_ncq +{ + u8 fis_type; + u8 pm_port_c; + u8 command; + u8 sector_count_low; + u8 lba_low; + u8 lba_mid; + u8 lba_high; + u8 device; + u8 lba_low_exp; + u8 lba_mid_exp; + u8 lba_high_exp; + u8 sector_count_high; + u8 tag; + u8 res1; + u8 res2; + u8 control; + u8 res3[4]; +} __attribute__((packed)) sata_fis_h2d_ncq_t; + +/* +* Register - Device to Host FIS +*/ +typedef struct sata_fis_d2h +{ + u8 fis_type; + u8 pm_port_i; + u8 status; + u8 error; + u8 lba_low; + u8 lba_mid; + u8 lba_high; + u8 device; + u8 lba_low_exp; + u8 lba_mid_exp; + u8 lba_high_exp; + u8 res1; + u8 sector_count; + u8 sector_count_exp; + u8 res2[2]; + u8 res3[4]; +} __attribute__((packed)) sata_fis_d2h_t; + +/* +* DMA Setup - Device to Host or Host to Device FIS +*/ +typedef struct sata_fis_dma_setup +{ + u8 fis_type; + u8 pm_port_dir_int_act; + u8 res1; + u8 res2; + u32 dma_buffer_id_low; + u32 dma_buffer_id_high; + u32 res3; + u32 dma_buffer_offset; + u32 dma_transfer_count; + u32 res4; +} __attribute__((packed)) sata_fis_dma_setup_t; + +/* +* PIO Setup - Device to Host FIS +*/ +typedef struct sata_fis_pio_setup +{ + u8 fis_type; + u8 pm_port_dir_int; + u8 status; + u8 error; + u8 lba_low; + u8 lba_mid; + u8 lba_high; + u8 res1; + u8 lba_low_exp; + u8 lba_mid_exp; + u8 lba_high_exp; + u8 res2; + u8 sector_count; + u8 sector_count_exp; + u8 res3; + u8 e_status; + u16 transfer_count; + u16 res4; +} __attribute__((packed)) sata_fis_pio_setup_t; + +/* +* Data - Host to Device or Device to Host FIS +*/ +typedef struct sata_fis_data +{ + u8 fis_type; + u8 pm_port; + u8 res1; + u8 res2; + u32 data[2048]; +} __attribute__((packed)) sata_fis_data_t; + +/* fis_type - SATA FIS type + */ +enum sata_fis_type +{ + SATA_FIS_TYPE_REGISTER_H2D = 0x27, + SATA_FIS_TYPE_REGISTER_D2H = 0x34, + SATA_FIS_TYPE_DMA_ACT_D2H = 0x39, + SATA_FIS_TYPE_DMA_SETUP_BI = 0x41, + SATA_FIS_TYPE_DATA_BI = 0x46, + SATA_FIS_TYPE_BIST_ACT_BI = 0x58, + SATA_FIS_TYPE_PIO_SETUP_D2H = 0x5F, + SATA_FIS_TYPE_SET_DEVICE_BITS_D2H = 0xA1, +}; + +#endif /* __FIS_H__ */ diff --git a/bsp/loongson/ls2kdev/drivers/ata/libata.c b/bsp/loongson/ls2kdev/drivers/ata/libata.c new file mode 100644 index 0000000000..980fc071fc --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/libata.c @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + +#include +#include +#include + +u64 ata_id_n_sectors(u16 *id) +{ + if (ata_id_has_lba(id)) { + if (ata_id_has_lba48(id)) + return ata_id_u64(id, ATA_ID_LBA48_SECTORS); + else + return ata_id_u32(id, ATA_ID_LBA_SECTORS); + } else { + return 0; + } +} + +u32 ata_dev_classify(u32 sig) +{ + u8 lbam, lbah; + + lbam = (sig >> 16) & 0xff; + lbah = (sig >> 24) & 0xff; + + if (((lbam == 0) && (lbah == 0)) || + ((lbam == 0x3c) && (lbah == 0xc3))) + return ATA_DEV_ATA; + + if ((lbam == 0x14) && (lbah == 0xeb)) + return ATA_DEV_ATAPI; + + if ((lbam == 0x69) && (lbah == 0x96)) + return ATA_DEV_PMP; + + return ATA_DEV_UNKNOWN; +} + +static void ata_id_string(const u16 *id, unsigned char *s, + unsigned int ofs, unsigned int len) +{ + unsigned int c; + + while (len > 0) { + c = id[ofs] >> 8; + *s = c; + s++; + + c = id[ofs] & 0xff; + *s = c; + s++; + + ofs++; + len -= 2; + } +} + +void ata_id_c_string(const u16 *id, unsigned char *s, + unsigned int ofs, unsigned int len) +{ + unsigned char *p; + + ata_id_string(id, s, ofs, len - 1); + + p = s + strnlen((char *)s, len - 1); + while (p > s && p[-1] == ' ') + p--; + *p = '\0'; +} + +void ata_dump_id(u16 *id) +{ + unsigned char serial[ATA_ID_SERNO_LEN + 1]; + unsigned char firmware[ATA_ID_FW_REV_LEN + 1]; + unsigned char product[ATA_ID_PROD_LEN + 1]; + u64 n_sectors; + + /* Serial number */ + ata_id_c_string(id, serial, ATA_ID_SERNO, sizeof(serial)); + printf("S/N: %s\n\r", serial); + + /* Firmware version */ + ata_id_c_string(id, firmware, ATA_ID_FW_REV, sizeof(firmware)); + printf("Firmware version: %s\n\r", firmware); + + /* Product model */ + ata_id_c_string(id, product, ATA_ID_PROD, sizeof(product)); + printf("Product model number: %s\n\r", product); + + /* Total sectors of device */ + n_sectors = ata_id_n_sectors(id); + printf("Capablity: %lld sectors\n\r", n_sectors); + + printf ("id[49]: capabilities = 0x%04x\n" + "id[53]: field valid = 0x%04x\n" + "id[63]: mwdma = 0x%04x\n" + "id[64]: pio = 0x%04x\n" + "id[75]: queue depth = 0x%04x\n", + id[49], + id[53], + id[63], + id[64], + id[75]); + + printf ("id[76]: sata capablity = 0x%04x\n" + "id[78]: sata features supported = 0x%04x\n" + "id[79]: sata features enable = 0x%04x\n", + id[76], + id[78], + id[79]); + + printf ("id[80]: major version = 0x%04x\n" + "id[81]: minor version = 0x%04x\n" + "id[82]: command set supported 1 = 0x%04x\n" + "id[83]: command set supported 2 = 0x%04x\n" + "id[84]: command set extension = 0x%04x\n", + id[80], + id[81], + id[82], + id[83], + id[84]); + printf ("id[85]: command set enable 1 = 0x%04x\n" + "id[86]: command set enable 2 = 0x%04x\n" + "id[87]: command set default = 0x%04x\n" + "id[88]: udma = 0x%04x\n" + "id[93]: hardware reset result = 0x%04x\n", + id[85], + id[86], + id[87], + id[88], + id[93]); +} + +void ata_swap_buf_le16(u16 *buf, unsigned int buf_words) +{ + unsigned int i; + + for (i = 0; i < buf_words; i++) + { + buf[i] = le16_to_cpu(buf[i]); + } +} diff --git a/bsp/loongson/ls2kdev/drivers/ata/libata.h b/bsp/loongson/ls2kdev/drivers/ata/libata.h new file mode 100644 index 0000000000..ae00c68446 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ata/libata.h @@ -0,0 +1,653 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-08-19 lizhirui porting to ls2k + */ + +#ifndef __LIBATA_H__ +#define __LIBATA_H__ + +enum { + /* various global constants */ + ATA_MAX_DEVICES = 2, /* per bus/port */ + ATA_MAX_PRD = 256, /* we could make these 256/256 */ + ATA_SECT_SIZE = 512, + ATA_MAX_SECTORS_128 = 128, + ATA_MAX_SECTORS = 256, + ATA_MAX_SECTORS_LBA48 = 65535, + ATA_MAX_SECTORS_TAPE = 65535, + + ATA_ID_WORDS = 256, + ATA_ID_SERNO = 10, + ATA_ID_FW_REV = 23, + ATA_ID_PROD = 27, + ATA_ID_OLD_PIO_MODES = 51, + ATA_ID_FIELD_VALID = 53, + ATA_ID_LBA_SECTORS = 60, + ATA_ID_MWDMA_MODES = 63, + ATA_ID_PIO_MODES = 64, + ATA_ID_EIDE_DMA_MIN = 65, + ATA_ID_EIDE_PIO = 67, + ATA_ID_EIDE_PIO_IORDY = 68, + ATA_ID_PIO4 = (1 << 1), + ATA_ID_QUEUE_DEPTH = 75, + ATA_ID_SATA_CAP = 76, + ATA_ID_SATA_FEATURES = 78, + ATA_ID_SATA_FEATURES_EN = 79, + ATA_ID_MAJOR_VER = 80, + ATA_ID_MINOR_VER = 81, + ATA_ID_UDMA_MODES = 88, + ATA_ID_LBA48_SECTORS = 100, + + ATA_ID_SERNO_LEN = 20, + ATA_ID_FW_REV_LEN = 8, + ATA_ID_PROD_LEN = 40, + + ATA_PCI_CTL_OFS = 2, + + ATA_PIO0 = (1 << 0), + ATA_PIO1 = ATA_PIO0 | (1 << 1), + ATA_PIO2 = ATA_PIO1 | (1 << 2), + ATA_PIO3 = ATA_PIO2 | (1 << 3), + ATA_PIO4 = ATA_PIO3 | (1 << 4), + ATA_PIO5 = ATA_PIO4 | (1 << 5), + ATA_PIO6 = ATA_PIO5 | (1 << 6), + + ATA_SWDMA0 = (1 << 0), + ATA_SWDMA1 = ATA_SWDMA0 | (1 << 1), + ATA_SWDMA2 = ATA_SWDMA1 | (1 << 2), + + ATA_SWDMA2_ONLY = (1 << 2), + + ATA_MWDMA0 = (1 << 0), + ATA_MWDMA1 = ATA_MWDMA0 | (1 << 1), + ATA_MWDMA2 = ATA_MWDMA1 | (1 << 2), + + ATA_MWDMA12_ONLY = (1 << 1) | (1 << 2), + ATA_MWDMA2_ONLY = (1 << 2), + + ATA_UDMA0 = (1 << 0), + ATA_UDMA1 = ATA_UDMA0 | (1 << 1), + ATA_UDMA2 = ATA_UDMA1 | (1 << 2), + ATA_UDMA3 = ATA_UDMA2 | (1 << 3), + ATA_UDMA4 = ATA_UDMA3 | (1 << 4), + ATA_UDMA5 = ATA_UDMA4 | (1 << 5), + ATA_UDMA6 = ATA_UDMA5 | (1 << 6), + ATA_UDMA7 = ATA_UDMA6 | (1 << 7), + /* ATA_UDMA7 is just for completeness... doesn't exist (yet?). */ + + ATA_UDMA_MASK_40C = ATA_UDMA2, /* udma0-2 */ + + /* DMA-related */ + ATA_PRD_SZ = 8, + ATA_PRD_TBL_SZ = (ATA_MAX_PRD * ATA_PRD_SZ), + ATA_PRD_EOT = (1 << 31), /* end-of-table flag */ + + ATA_DMA_TABLE_OFS = 4, + ATA_DMA_STATUS = 2, + ATA_DMA_CMD = 0, + ATA_DMA_WR = (1 << 3), + ATA_DMA_START = (1 << 0), + ATA_DMA_INTR = (1 << 2), + ATA_DMA_ERR = (1 << 1), + ATA_DMA_ACTIVE = (1 << 0), + + /* bits in ATA command block registers */ + ATA_HOB = (1 << 7), /* LBA48 selector */ + ATA_NIEN = (1 << 1), /* disable-irq flag */ + ATA_LBA = (1 << 6), /* LBA28 selector */ + ATA_DEV1 = (1 << 4), /* Select Device 1 (slave) */ + ATA_DEVICE_OBS = (1 << 7) | (1 << 5), /* obs bits in dev reg */ + ATA_DEVCTL_OBS = (1 << 3), /* obsolete bit in devctl reg */ + ATA_BUSY = (1 << 7), /* BSY status bit */ + ATA_DRDY = (1 << 6), /* device ready */ + ATA_DF = (1 << 5), /* device fault */ + ATA_DRQ = (1 << 3), /* data request i/o */ + ATA_ERR = (1 << 0), /* have an error */ + ATA_SRST = (1 << 2), /* software reset */ + ATA_ICRC = (1 << 7), /* interface CRC error */ + ATA_UNC = (1 << 6), /* uncorrectable media error */ + ATA_IDNF = (1 << 4), /* ID not found */ + ATA_ABORTED = (1 << 2), /* command aborted */ + + /* ATA command block registers */ + ATA_REG_DATA = 0x00, + ATA_REG_ERR = 0x01, + ATA_REG_NSECT = 0x02, + ATA_REG_LBAL = 0x03, + ATA_REG_LBAM = 0x04, + ATA_REG_LBAH = 0x05, + ATA_REG_DEVICE = 0x06, + ATA_REG_STATUS = 0x07, + + ATA_REG_FEATURE = ATA_REG_ERR, /* and their aliases */ + ATA_REG_CMD = ATA_REG_STATUS, + ATA_REG_BYTEL = ATA_REG_LBAM, + ATA_REG_BYTEH = ATA_REG_LBAH, + ATA_REG_DEVSEL = ATA_REG_DEVICE, + ATA_REG_IRQ = ATA_REG_NSECT, + + /* ATA device commands */ + ATA_CMD_DEV_RESET = 0x08, /* ATAPI device reset */ + ATA_CMD_PIO_READ = 0x20, /* Read sectors with retry */ + ATA_CMD_PIO_READ_EXT = 0x24, + ATA_CMD_READ_EXT = 0x25, + ATA_CMD_READ_NATIVE_MAX_EXT = 0x27, + ATA_CMD_READ_MULTI_EXT = 0x29, + ATA_CMD_READ_LOG_EXT = 0x2f, + ATA_CMD_PIO_WRITE = 0x30, /* write sectors with retry */ + ATA_CMD_PIO_WRITE_EXT = 0x34, + ATA_CMD_WRITE_EXT = 0x35, + ATA_CMD_SET_MAX_EXT = 0x37, + ATA_CMD_WRITE_MULTI_EXT = 0x39, + ATA_CMD_WRITE_FUA_EXT = 0x3D, + ATA_CMD_VERIFY = 0x40, /* read verify sectors with retry */ + ATA_CMD_VERIFY_EXT = 0x42, + ATA_CMD_FPDMA_READ = 0x60, + ATA_CMD_FPDMA_WRITE = 0x61, + ATA_CMD_EDD = 0x90, /* execute device diagnostic */ + ATA_CMD_INIT_DEV_PARAMS = 0x91, /* initialize device parameters */ + ATA_CMD_PACKET = 0xA0, /* ATAPI packet */ + ATA_CMD_ID_ATAPI = 0xA1, /* ATAPI identify device */ + ATA_CMD_CONF_OVERLAY = 0xB1, + ATA_CMD_READ_MULTI = 0xC4, /* read multiple */ + ATA_CMD_WRITE_MULTI = 0xC5, /* write multiple */ + ATA_CMD_SET_MULTI = 0xC6, /* set multiple mode */ + ATA_CMD_READ = 0xC8, /* read DMA with retry */ + ATA_CMD_WRITE = 0xCA, /* write DMA with retry */ + ATA_CMD_WRITE_MULTI_FUA_EXT = 0xCE, + ATA_CMD_STANDBYNOW1 = 0xE0, /* standby immediate */ + ATA_CMD_IDLEIMMEDIATE = 0xE1, /* idle immediate */ + ATA_CMD_STANDBY = 0xE2, /* place in standby power mode */ + ATA_CMD_IDLE = 0xE3, /* place in idle power mode */ + ATA_CMD_PMP_READ = 0xE4, /* read buffer */ + ATA_CMD_CHK_POWER = 0xE5, /* check power mode */ + ATA_CMD_SLEEP = 0xE6, /* sleep */ + ATA_CMD_FLUSH = 0xE7, + ATA_CMD_PMP_WRITE = 0xE8, /* write buffer */ + ATA_CMD_FLUSH_EXT = 0xEA, + ATA_CMD_ID_ATA = 0xEC, /* identify device */ + ATA_CMD_SET_FEATURES = 0xEF, /* set features */ + ATA_CMD_SEC_FREEZE_LOCK = 0xF5, /* security freeze */ + ATA_CMD_READ_NATIVE_MAX = 0xF8, + ATA_CMD_SET_MAX = 0xF9, + + /* READ_LOG_EXT pages */ + ATA_LOG_SATA_NCQ = 0x10, + + /* READ/WRITE LONG (obsolete) */ + ATA_CMD_READ_LONG = 0x22, + ATA_CMD_READ_LONG_ONCE = 0x23, + ATA_CMD_WRITE_LONG = 0x32, + ATA_CMD_WRITE_LONG_ONCE = 0x33, + + /* SETFEATURES stuff */ + SETFEATURES_XFER = 0x03, + XFER_UDMA_7 = 0x47, + XFER_UDMA_6 = 0x46, + XFER_UDMA_5 = 0x45, + XFER_UDMA_4 = 0x44, + XFER_UDMA_3 = 0x43, + XFER_UDMA_2 = 0x42, + XFER_UDMA_1 = 0x41, + XFER_UDMA_0 = 0x40, + XFER_MW_DMA_4 = 0x24, /* CFA only */ + XFER_MW_DMA_3 = 0x23, /* CFA only */ + XFER_MW_DMA_2 = 0x22, + XFER_MW_DMA_1 = 0x21, + XFER_MW_DMA_0 = 0x20, + XFER_SW_DMA_2 = 0x12, + XFER_SW_DMA_1 = 0x11, + XFER_SW_DMA_0 = 0x10, + XFER_PIO_6 = 0x0E, /* CFA only */ + XFER_PIO_5 = 0x0D, /* CFA only */ + XFER_PIO_4 = 0x0C, + XFER_PIO_3 = 0x0B, + XFER_PIO_2 = 0x0A, + XFER_PIO_1 = 0x09, + XFER_PIO_0 = 0x08, + XFER_PIO_SLOW = 0x00, + + SETFEATURES_WC_ON = 0x02, /* Enable write cache */ + SETFEATURES_WC_OFF = 0x82, /* Disable write cache */ + + SETFEATURES_SPINUP = 0x07, /* Spin-up drive */ + + SETFEATURES_SATA_ENABLE = 0x10, /* Enable use of SATA feature */ + SETFEATURES_SATA_DISABLE = 0x90, /* Disable use of SATA feature */ + + /* SETFEATURE Sector counts for SATA features */ + SATA_AN = 0x05, /* Asynchronous Notification */ + SATA_DIPM = 0x03, /* Device Initiated Power Management */ + + /* feature values for SET_MAX */ + ATA_SET_MAX_ADDR = 0x00, + ATA_SET_MAX_PASSWD = 0x01, + ATA_SET_MAX_LOCK = 0x02, + ATA_SET_MAX_UNLOCK = 0x03, + ATA_SET_MAX_FREEZE_LOCK = 0x04, + + /* feature values for DEVICE CONFIGURATION OVERLAY */ + ATA_DCO_RESTORE = 0xC0, + ATA_DCO_FREEZE_LOCK = 0xC1, + ATA_DCO_IDENTIFY = 0xC2, + ATA_DCO_SET = 0xC3, + + /* ATAPI stuff */ + ATAPI_PKT_DMA = (1 << 0), + ATAPI_DMADIR = (1 << 2), /* ATAPI data dir: + 0=to device, 1=to host */ + ATAPI_CDB_LEN = 16, + + /* PMP stuff */ + SATA_PMP_MAX_PORTS = 15, + SATA_PMP_CTRL_PORT = 15, + + SATA_PMP_GSCR_DWORDS = 128, + SATA_PMP_GSCR_PROD_ID = 0, + SATA_PMP_GSCR_REV = 1, + SATA_PMP_GSCR_PORT_INFO = 2, + SATA_PMP_GSCR_ERROR = 32, + SATA_PMP_GSCR_ERROR_EN = 33, + SATA_PMP_GSCR_FEAT = 64, + SATA_PMP_GSCR_FEAT_EN = 96, + + SATA_PMP_PSCR_STATUS = 0, + SATA_PMP_PSCR_ERROR = 1, + SATA_PMP_PSCR_CONTROL = 2, + + SATA_PMP_FEAT_BIST = (1 << 0), + SATA_PMP_FEAT_PMREQ = (1 << 1), + SATA_PMP_FEAT_DYNSSC = (1 << 2), + SATA_PMP_FEAT_NOTIFY = (1 << 3), + + /* cable types */ + ATA_CBL_NONE = 0, + ATA_CBL_PATA40 = 1, + ATA_CBL_PATA80 = 2, + ATA_CBL_PATA40_SHORT = 3, /* 40 wire cable to high UDMA spec */ + ATA_CBL_PATA_UNK = 4, /* don't know, maybe 80c? */ + ATA_CBL_PATA_IGN = 5, /* don't know, ignore cable handling */ + ATA_CBL_SATA = 6, + + /* SATA Status and Control Registers */ + SCR_STATUS = 0, + SCR_ERROR = 1, + SCR_CONTROL = 2, + SCR_ACTIVE = 3, + SCR_NOTIFICATION = 4, + + /* SError bits */ + SERR_DATA_RECOVERED = (1 << 0), /* recovered data error */ + SERR_COMM_RECOVERED = (1 << 1), /* recovered comm failure */ + SERR_DATA = (1 << 8), /* unrecovered data error */ + SERR_PERSISTENT = (1 << 9), /* persistent data/comm error */ + SERR_PROTOCOL = (1 << 10), /* protocol violation */ + SERR_INTERNAL = (1 << 11), /* host internal error */ + SERR_PHYRDY_CHG = (1 << 16), /* PHY RDY changed */ + SERR_PHY_INT_ERR = (1 << 17), /* PHY internal error */ + SERR_COMM_WAKE = (1 << 18), /* Comm wake */ + SERR_10B_8B_ERR = (1 << 19), /* 10b to 8b decode error */ + SERR_DISPARITY = (1 << 20), /* Disparity */ + SERR_CRC = (1 << 21), /* CRC error */ + SERR_HANDSHAKE = (1 << 22), /* Handshake error */ + SERR_LINK_SEQ_ERR = (1 << 23), /* Link sequence error */ + SERR_TRANS_ST_ERROR = (1 << 24), /* Transport state trans. error */ + SERR_UNRECOG_FIS = (1 << 25), /* Unrecognized FIS */ + SERR_DEV_XCHG = (1 << 26), /* device exchanged */ + + /* struct ata_taskfile flags */ + ATA_TFLAG_LBA48 = (1 << 0), /* enable 48-bit LBA and "HOB" */ + ATA_TFLAG_ISADDR = (1 << 1), /* enable r/w to nsect/lba regs */ + ATA_TFLAG_DEVICE = (1 << 2), /* enable r/w to device reg */ + ATA_TFLAG_WRITE = (1 << 3), /* data dir: host->dev==1 (write) */ + ATA_TFLAG_LBA = (1 << 4), /* enable LBA */ + ATA_TFLAG_FUA = (1 << 5), /* enable FUA */ + ATA_TFLAG_POLLING = (1 << 6), /* set nIEN to 1 and use polling */ + + /* protocol flags */ + ATA_PROT_FLAG_PIO = (1 << 0), /* is PIO */ + ATA_PROT_FLAG_DMA = (1 << 1), /* is DMA */ + ATA_PROT_FLAG_DATA = ATA_PROT_FLAG_PIO | ATA_PROT_FLAG_DMA, + ATA_PROT_FLAG_NCQ = (1 << 2), /* is NCQ */ + ATA_PROT_FLAG_ATAPI = (1 << 3), /* is ATAPI */ +}; + +enum ata_tf_protocols { + /* ATA taskfile protocols */ + ATA_PROT_UNKNOWN, /* unknown/invalid */ + ATA_PROT_NODATA, /* no data */ + ATA_PROT_PIO, /* PIO data xfer */ + ATA_PROT_DMA, /* DMA */ + ATA_PROT_NCQ, /* NCQ */ + ATAPI_PROT_NODATA, /* packet command, no data */ + ATAPI_PROT_PIO, /* packet command, PIO data xfer*/ + ATAPI_PROT_DMA, /* packet command with special DMA sauce */ +}; + +enum ata_ioctls { + ATA_IOC_GET_IO32 = 0x309, + ATA_IOC_SET_IO32 = 0x324, +}; + +enum ata_dev_typed { + ATA_DEV_ATA, /* ATA device */ + ATA_DEV_ATAPI, /* ATAPI device */ + ATA_DEV_PMP, /* Port Multiplier Port */ + ATA_DEV_UNKNOWN, /* unknown */ +}; + +struct ata_taskfile { + unsigned long flags; /* ATA_TFLAG_xxx */ + u8 protocol; /* ATA_PROT_xxx */ + + u8 ctl; /* control reg */ + + u8 hob_feature; /* additional data */ + u8 hob_nsect; /* to support LBA48 */ + u8 hob_lbal; + u8 hob_lbam; + u8 hob_lbah; + + u8 feature; + u8 nsect; + u8 lbal; + u8 lbam; + u8 lbah; + + u8 device; + + u8 command; /* IO operation */ +}; + +/* + * protocol tests + */ +static inline unsigned int ata_prot_flags(u8 prot) +{ + switch (prot) { + case ATA_PROT_NODATA: + return 0; + case ATA_PROT_PIO: + return ATA_PROT_FLAG_PIO; + case ATA_PROT_DMA: + return ATA_PROT_FLAG_DMA; + case ATA_PROT_NCQ: + return ATA_PROT_FLAG_DMA | ATA_PROT_FLAG_NCQ; + case ATAPI_PROT_NODATA: + return ATA_PROT_FLAG_ATAPI; + case ATAPI_PROT_PIO: + return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_PIO; + case ATAPI_PROT_DMA: + return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_DMA; + } + return 0; +} + +static inline int ata_is_atapi(u8 prot) +{ + return ata_prot_flags(prot) & ATA_PROT_FLAG_ATAPI; +} + +static inline int ata_is_nodata(u8 prot) +{ + return !(ata_prot_flags(prot) & ATA_PROT_FLAG_DATA); +} + +static inline int ata_is_pio(u8 prot) +{ + return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO; +} + +static inline int ata_is_dma(u8 prot) +{ + return ata_prot_flags(prot) & ATA_PROT_FLAG_DMA; +} + +static inline int ata_is_ncq(u8 prot) +{ + return ata_prot_flags(prot) & ATA_PROT_FLAG_NCQ; +} + +static inline int ata_is_data(u8 prot) +{ + return ata_prot_flags(prot) & ATA_PROT_FLAG_DATA; +} + +/* + * id tests + */ +#define ata_id_is_ata(id) (((id)[0] & (1 << 15)) == 0) +#define ata_id_has_lba(id) ((id)[49] & (1 << 9)) +#define ata_id_has_dma(id) ((id)[49] & (1 << 8)) +#define ata_id_has_ncq(id) ((id)[76] & (1 << 8)) +#define ata_id_queue_depth(id) (((id)[75] & 0x1f) + 1) +#define ata_id_removeable(id) ((id)[0] & (1 << 7)) +#define ata_id_iordy_disable(id) ((id)[49] & (1 << 10)) +#define ata_id_has_iordy(id) ((id)[49] & (1 << 11)) + +#define ata_id_u32(id,n) \ + (((u32) (id)[(n) + 1] << 16) | ((u32) (id)[(n)])) +#define ata_id_u64(id,n) \ + ( ((u64) (id)[(n) + 3] << 48) | \ + ((u64) (id)[(n) + 2] << 32) | \ + ((u64) (id)[(n) + 1] << 16) | \ + ((u64) (id)[(n) + 0]) ) + +#define ata_id_cdb_intr(id) (((id)[0] & 0x60) == 0x20) + +static inline int ata_id_has_fua(const u16 *id) +{ + if ((id[84] & 0xC000) != 0x4000) + return 0; + return id[84] & (1 << 6); +} + +static inline int ata_id_has_flush(const u16 *id) +{ + if ((id[83] & 0xC000) != 0x4000) + return 0; + return id[83] & (1 << 12); +} + +static inline int ata_id_has_flush_ext(const u16 *id) +{ + if ((id[83] & 0xC000) != 0x4000) + return 0; + return id[83] & (1 << 13); +} + +static inline int ata_id_has_lba48(const u16 *id) +{ + if ((id[83] & 0xC000) != 0x4000) + return 0; + if (!ata_id_u64(id, 100)) + return 0; + return id[83] & (1 << 10); +} + +static inline int ata_id_hpa_enabled(const u16 *id) +{ + /* Yes children, word 83 valid bits cover word 82 data */ + if ((id[83] & 0xC000) != 0x4000) + return 0; + /* And 87 covers 85-87 */ + if ((id[87] & 0xC000) != 0x4000) + return 0; + /* Check command sets enabled as well as supported */ + if ((id[85] & ( 1 << 10)) == 0) + return 0; + return id[82] & (1 << 10); +} + +static inline int ata_id_has_wcache(const u16 *id) +{ + /* Yes children, word 83 valid bits cover word 82 data */ + if ((id[83] & 0xC000) != 0x4000) + return 0; + return id[82] & (1 << 5); +} + +static inline int ata_id_has_pm(const u16 *id) +{ + if ((id[83] & 0xC000) != 0x4000) + return 0; + return id[82] & (1 << 3); +} + +static inline int ata_id_rahead_enabled(const u16 *id) +{ + if ((id[87] & 0xC000) != 0x4000) + return 0; + return id[85] & (1 << 6); +} + +static inline int ata_id_wcache_enabled(const u16 *id) +{ + if ((id[87] & 0xC000) != 0x4000) + return 0; + return id[85] & (1 << 5); +} + +static inline unsigned int ata_id_major_version(const u16 *id) +{ + unsigned int mver; + + if (id[ATA_ID_MAJOR_VER] == 0xFFFF) + return 0; + + for (mver = 14; mver >= 1; mver--) + if (id[ATA_ID_MAJOR_VER] & (1 << mver)) + break; + return mver; +} + +static inline int ata_id_is_sata(const u16 *id) +{ + return ata_id_major_version(id) >= 5 && id[93] == 0; +} + +static inline int ata_id_has_tpm(const u16 *id) +{ + /* The TPM bits are only valid on ATA8 */ + if (ata_id_major_version(id) < 8) + return 0; + if ((id[48] & 0xC000) != 0x4000) + return 0; + return id[48] & (1 << 0); +} + +static inline int ata_id_has_dword_io(const u16 *id) +{ + /* ATA 8 reuses this flag for "trusted" computing */ + if (ata_id_major_version(id) > 7) + return 0; + if (id[48] & (1 << 0)) + return 1; + return 0; +} + +static inline int ata_id_current_chs_valid(const u16 *id) +{ + /* For ATA-1 devices, if the INITIALIZE DEVICE PARAMETERS command + has not been issued to the device then the values of + id[54] to id[56] are vendor specific. */ + return (id[53] & 0x01) && /* Current translation valid */ + id[54] && /* cylinders in current translation */ + id[55] && /* heads in current translation */ + id[55] <= 16 && + id[56]; /* sectors in current translation */ +} + +static inline int ata_id_is_cfa(const u16 *id) +{ + u16 v = id[0]; + if (v == 0x848A) /* Standard CF */ + return 1; + /* Could be CF hiding as standard ATA */ + if (ata_id_major_version(id) >= 3 && id[82] != 0xFFFF && + (id[82] & ( 1 << 2))) + return 1; + return 0; +} + +static inline int ata_drive_40wire(const u16 *dev_id) +{ + if (ata_id_is_sata(dev_id)) + return 0; /* SATA */ + if ((dev_id[93] & 0xE000) == 0x6000) + return 0; /* 80 wire */ + return 1; +} + +static inline int ata_drive_40wire_relaxed(const u16 *dev_id) +{ + if ((dev_id[93] & 0x2000) == 0x2000) + return 0; /* 80 wire */ + return 1; +} + +static inline int atapi_cdb_len(const u16 *dev_id) +{ + u16 tmp = dev_id[0] & 0x3; + switch (tmp) { + case 0: return 12; + case 1: return 16; + default: return -1; + } +} + +static inline int atapi_command_packet_set(const u16 *dev_id) +{ + return (dev_id[0] >> 8) & 0x1f; +} + +static inline int atapi_id_dmadir(const u16 *dev_id) +{ + return ata_id_major_version(dev_id) >= 7 && (dev_id[62] & 0x8000); +} + +static inline int is_multi_taskfile(struct ata_taskfile *tf) +{ + return (tf->command == ATA_CMD_READ_MULTI) || + (tf->command == ATA_CMD_WRITE_MULTI) || + (tf->command == ATA_CMD_READ_MULTI_EXT) || + (tf->command == ATA_CMD_WRITE_MULTI_EXT) || + (tf->command == ATA_CMD_WRITE_MULTI_FUA_EXT); +} + +static inline int ata_ok(u8 status) +{ + return ((status & (ATA_BUSY | ATA_DRDY | ATA_DF | ATA_DRQ | ATA_ERR)) + == ATA_DRDY); +} + +static inline int lba_28_ok(u64 block, u32 n_block) +{ + /* check the ending block number */ + return ((block + n_block - 1) < ((u64)1 << 28)) && (n_block <= 256); +} + +static inline int lba_48_ok(u64 block, u32 n_block) +{ + /* check the ending block number */ + return ((block + n_block - 1) < ((u64)1 << 48)) && (n_block <= 65536); +} + +#define sata_pmp_gscr_vendor(gscr) ((gscr)[SATA_PMP_GSCR_PROD_ID] & 0xffff) +#define sata_pmp_gscr_devid(gscr) ((gscr)[SATA_PMP_GSCR_PROD_ID] >> 16) +#define sata_pmp_gscr_rev(gscr) (((gscr)[SATA_PMP_GSCR_REV] >> 8) & 0xff) +#define sata_pmp_gscr_ports(gscr) ((gscr)[SATA_PMP_GSCR_PORT_INFO] & 0xf) + +u64 ata_id_n_sectors(u16 *id); +u32 ata_dev_classify(u32 sig); +void ata_id_c_string(const u16 *id, unsigned char *s, + unsigned int ofs, unsigned int len); +void ata_dump_id(u16 *id); +void ata_swap_buf_le16(u16 *buf, unsigned int buf_words); + +#endif /* __LIBATA_H__ */ diff --git a/bsp/loongson/ls2kdev/drivers/board.c b/bsp/loongson/ls2kdev/drivers/board.c new file mode 100644 index 0000000000..9b79902c41 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/board.c @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic Initial version + */ + +#include +#include + +#include "mips_regs.h" +#include "mips_fpu.h" +#include "exception.h" +#include "drv_uart.h" +#include "board.h" +#include "ls2k1000.h" + +/** + * this function will reset CPU + * + */ +void rt_hw_cpu_reset(void) +{ + WDT_EN = 0x01; + WDT_TIMER = 0x01; + WDT_SET = 0x01; + rt_kprintf("reboot system...\n"); + while (1); +} +MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset cpu); + + +/** + * this function will shutdown CPU + * + */ +void rt_hw_cpu_shutdown(void) +{ + PM1_STS &= 0xffffffff; + PM1_CNT = 0x3c00; + rt_kprintf("shutdown...\n"); + + while (1); +} +MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_shutdown, poweroff, shutdown cpu); + + +/** + * This is the timer interrupt service routine. + */ +void rt_hw_timer_handler(void) +{ + unsigned int count; + + count = read_c0_compare(); + write_c0_compare(count); + write_c0_count(0); + /* increase a OS tick */ + rt_tick_increase(); +} + +/** + * This function will initial OS timer + */ +void rt_hw_timer_init(void) +{ + write_c0_compare(CPU_HZ / 2 / RT_TICK_PER_SECOND); + write_c0_count(0); + mips_unmask_cpu_irq(7); +} + +/** + * Board level initialization + */ +void rt_hw_board_init(void) +{ + rt_hw_exception_init(); + /* init hardware interrupt */ + rt_hw_interrupt_init(); + +#ifdef RT_USING_FPU + /* init hardware fpu */ + rt_hw_fpu_init(); +#endif + +#ifdef RT_USING_SERIAL + /* init hardware UART device */ + rt_hw_uart_init(); + /* set console device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + +#ifdef RT_USING_HEAP + rt_system_heap_init((void *)RT_HW_HEAP_BEGIN, (void *)RT_HW_HEAP_END); +#endif + + /* init operating system timer */ + rt_hw_timer_init(); + +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif + + rt_kprintf("Current SR: 0x%08x\n", read_c0_status()); + +} diff --git a/bsp/loongson/ls2kdev/drivers/board.h b/bsp/loongson/ls2kdev/drivers/board.h new file mode 100644 index 0000000000..ca57ebf3f2 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/board.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic the first version + */ + +#ifndef BOARD_H__ +#define BOARD_H__ + +#include + +extern unsigned char __bss_end; + +#define CPU_HZ (1000 * 1000 * 1000) //QEMU 200*1000*1000 +#define RT_HW_HEAP_BEGIN (void*)&__bss_end +#define RT_HW_HEAP_END (void*)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024) + +void rt_hw_board_init(void); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/clk.c b/bsp/loongson/ls2kdev/drivers/clk.c new file mode 100644 index 0000000000..b919713490 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/clk.c @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * + * Copyright (c) 2020, duhuanpeng<548708880@qq.com> + * legacy driver APIs from loongson 1C BSP. + */ + +#include +#include "ls2k1000.h" + +struct loongson_pll +{ + rt_uint64_t PLL_SYS_0; + rt_uint64_t PLL_SYS_1; + rt_uint64_t PLL_DDR_0; + rt_uint64_t PLL_DDR_1; + rt_uint64_t PLL_DC_0; + rt_uint64_t PLL_DC_1; + rt_uint64_t PLL_PIX0_0; + rt_uint64_t PLL_PIX0_1; + rt_uint64_t PLL_PIX1_0; + rt_uint64_t PLL_PIX1_1; + rt_uint64_t FREQSCALE; +}; + +/* See the Schematic */ +#define SYS_CLKSEL1 1 +#define SYS_CLKSEL0 0 + +/* bit field helpers. */ +#define __M(n) (~(~0<<(n))) +#define __RBF(number, n) ((number)&__M(n)) +#define __BF(number, n, m) __RBF((number>>m), (n-m+1)) +#define BF(number, n, m) (mPLL_SYS_0, 26, 31); + l1_div_loopc = BF(pll->PLL_SYS_0, 32, 41); + l2_div_out_node = BF(pll->PLL_SYS_1, 5, 0); + + node_clock = refclk / l1_div_ref * l1_div_loopc / l2_div_out_node; + return node_clock; +} + +unsigned long clk_get_ddr_rate(void) +{ + unsigned long ddr_clock; + int l1_div_ref; + int l1_div_loopc; + int l2_div_out_ddr; + + l1_div_ref = BF(pll->PLL_DDR_0, 26, 31); + l1_div_loopc = BF(pll->PLL_DDR_0, 32, 41); + l2_div_out_ddr = BF(pll->PLL_DDR_1, 0, 5); + + ddr_clock = refclk / l1_div_ref * l1_div_loopc / l2_div_out_ddr; + return ddr_clock; +} + +unsigned long clk_get_apb_rate(void) +{ + unsigned long apb_clock; + int apb_freqscale; + + apb_freqscale = BF(pll->FREQSCALE, 22, 20); + + /* gmac clock is fixed 125MHz */ + apb_clock = gmac_clock * (apb_freqscale + 1) / 8; + return apb_clock; + +} + +unsigned long clk_get_dc_rate(void) +{ + return -RT_ENOSYS; +} diff --git a/bsp/loongson/ls2kdev/drivers/clk.h b/bsp/loongson/ls2kdev/drivers/clk.h new file mode 100644 index 0000000000..3a73da861c --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/clk.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-09-06 勤为本 first version + * + * Copyright (c) 2020, Du Huanpeng <548708880@qq.com> + * base on bsp/ls1cdev/libraries/ls1c_clock.h + */ + +#ifndef __LOONGSON_CLK_H__ +#define __LOONGSON_CLK_H__ + +unsigned long clk_get_pll_rate(void); +unsigned long clk_get_cpu_rate(void); +unsigned long clk_get_ddr_rate(void); +unsigned long clk_get_apb_rate(void); +unsigned long clk_get_dc_rate(void); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/drv_gpio.c b/bsp/loongson/ls2kdev/drivers/drv_gpio.c new file mode 100644 index 0000000000..73a806afb2 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_gpio.c @@ -0,0 +1,267 @@ +/* SPDX-License-Identifier: Apache-2.0 */ +/* Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2020, duhuanpeng<548708880@qq.com> + * + * Change Logs: + * Date Author Notes + * 2015-01-20 Bernard the first version + * 2017-10-20 ZYH add mode open drain and input pull down + * 2020-06-01 Du Huanpeng GPIO driver based on + */ +#include +#include +#include +#include "drv_gpio.h" + +#ifdef RT_USING_PIN +#define GPIO_IRQ_NUM (64) +static struct gpio_irq_def _g_gpio_irq_tbl[GPIO_IRQ_NUM]; + +static void loongson_pin_mode(struct rt_device *device, rt_base_t pin, rt_base_t mode) +{ + struct loongson_gpio *gpio; + rt_uint64_t m; + + gpio = (void *)device->user_data; + m = (rt_uint64_t)1 << pin; + + switch (mode) + { + case PIN_MODE_OUTPUT: + gpio->GPIO0_OEN &= ~m; + break; + case PIN_MODE_INPUT: + gpio->GPIO0_OEN |= m; + break; + case PIN_MODE_INPUT_PULLUP: + gpio->GPIO0_OEN |= m; + break; + case PIN_MODE_INPUT_PULLDOWN: + gpio->GPIO0_OEN |= m; + break; + case PIN_MODE_OUTPUT_OD: + gpio->GPIO0_OEN &= ~m; + break; + default: + /* error */ + rt_kprintf("error\n"); + } +} + +static void loongson_pin_write(struct rt_device *device, rt_base_t pin, rt_base_t value) +{ + struct loongson_gpio *gpio; + rt_uint64_t m; + + if (pin < 0 || pin >= 60) + { + rt_kprintf("error\n"); + return; + } + + gpio = (void *)device->user_data; + m = (rt_uint64_t)1 << pin; + + if (value) + gpio->GPIO0_O |= m; + else + gpio->GPIO0_O &= ~m; +} +static int loongson_pin_read(struct rt_device *device, rt_base_t pin) +{ + struct loongson_gpio *gpio; + int rc; + + gpio = (void *)device->user_data; + rt_uint64_t m; + + m = gpio->GPIO0_I; + m &= (rt_uint64_t)1 << pin; + + rc = !!m; + + return rc; +} + +/* TODO: add GPIO interrupt */ +static rt_err_t loongson_pin_attach_irq(struct rt_device *device, rt_int32_t pin, rt_uint32_t mode, void (*hdr)(void *args), void *args) +{ + rt_uint8_t index; + rt_uint64_t m; + struct loongson_gpio *gpio; + + gpio = (void *)device->user_data; + + if (pin < 4) + { + index = pin; + } + else if (pin < 32) + { + index = 5; + } + else + { + index = 6; + } + + _g_gpio_irq_tbl[index].irq_cb[pin] = hdr; + _g_gpio_irq_tbl[index].irq_arg[pin] = args; + _g_gpio_irq_tbl[index].irq_type[pin] = mode; + + liointc_set_irq_mode(index, mode); + m = (rt_uint64_t)1 << pin; + gpio->GPIO0_INTEN |= m; + + return RT_EOK; +} +static rt_err_t loongson_pin_detach_irq(struct rt_device *device, rt_int32_t pin) +{ + struct loongson_gpio *gpio; + + gpio = (void *)device->user_data; + + rt_uint8_t index; + if (pin < 4) + { + index = pin; + } + else if (pin < 32) + { + index = 5; + } + else + { + index = 6; + } + _g_gpio_irq_tbl[index].irq_cb[pin] = RT_NULL; + _g_gpio_irq_tbl[index].irq_arg[pin] = RT_NULL; + _g_gpio_irq_tbl[index].irq_type[pin] = RT_NULL; + _g_gpio_irq_tbl[index].state[pin] = RT_NULL; + + return RT_EOK; +} +static rt_err_t loongson_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t enabled) +{ + struct loongson_gpio *gpio; + + gpio = (void *)device->user_data; + + rt_uint8_t index; + if (pin < 4) + { + index = pin; + } + else if (pin < 32) + { + index = 5; + } + else + { + index = 6; + } + + if (enabled) + _g_gpio_irq_tbl[index].state[pin] = 1; + else + _g_gpio_irq_tbl[index].state[pin] = 0; + return RT_EOK; +} + +static void gpio_irq_handler(int irq, void *param) +{ + struct gpio_irq_def *irq_def = (struct gpio_irq_def *)param; + rt_uint32_t pin; + rt_uint32_t value; + rt_uint32_t tmpvalue; + + if (irq == LS2K_GPIO0_INT_IRQ) + { + pin = 0; + } + else if (irq == LS2K_GPIO1_INT_IRQ) + { + pin = 1; + } + else if (irq == LS2K_GPIO2_INT_IRQ) + { + pin = 2; + } + else if (irq == LS2K_GPIO3_INT_IRQ) + { + pin = 3; + } + else if (irq == LS2K_GPIO_INTLO_IRQ) + { + pin = 4; + } + else + { + pin = 32; + } + + while (value) + { + if ((value & 0x1) && (irq_def->irq_cb[pin] != RT_NULL)) + { + if (irq_def->state[pin]) + { + irq_def->irq_cb[pin](irq_def->irq_arg[pin]); + } + } + pin++; + value = value >> 1; + } +} + +static struct rt_pin_ops loongson_pin_ops = +{ + .pin_mode = loongson_pin_mode, + .pin_write = loongson_pin_write, + .pin_read = loongson_pin_read, + + /* TODO: add GPIO interrupt */ + .pin_attach_irq = loongson_pin_attach_irq, + .pin_detach_irq = loongson_pin_detach_irq, + .pin_irq_enable = loongson_pin_irq_enable, + .pin_get = RT_NULL, +}; + + +int loongson_pin_init(void) +{ + int rc; + static struct loongson_gpio *loongson_gpio_priv; + + loongson_gpio_priv = (void *)GPIO_BASE; + rc = rt_device_pin_register("pin", &loongson_pin_ops, loongson_gpio_priv); + + //gpio0 + rt_hw_interrupt_install(LS2K_GPIO0_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[0], "gpio0_irq"); + rt_hw_interrupt_umask(LS2K_GPIO0_INT_IRQ); + + //gpio1 + rt_hw_interrupt_install(LS2K_GPIO1_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[1], "gpio1_irq"); + rt_hw_interrupt_umask(LS2K_GPIO1_INT_IRQ); + + //gpio2 + rt_hw_interrupt_install(LS2K_GPIO2_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[2], "gpio2_irq"); + rt_hw_interrupt_umask(LS2K_GPIO2_INT_IRQ); + + //gpio3 + rt_hw_interrupt_install(LS2K_GPIO3_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[3], "gpio3_irq"); + rt_hw_interrupt_umask(LS2K_GPIO3_INT_IRQ); + + //gpio4~gpio31 + rt_hw_interrupt_install(LS2K_GPIO_INTLO_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[4], "gpio4_irq"); + rt_hw_interrupt_umask(LS2K_GPIO_INTLO_IRQ); + + //gpio32~gpio63 + rt_hw_interrupt_install(LS2K_GPIO_INTHI_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[5], "gpio5_irq"); + rt_hw_interrupt_umask(LS2K_GPIO_INTHI_IRQ); + + return rc; +} +INIT_BOARD_EXPORT(loongson_pin_init); + +#endif /*RT_USING_PIN */ diff --git a/bsp/loongson/ls2kdev/drivers/drv_gpio.h b/bsp/loongson/ls2kdev/drivers/drv_gpio.h new file mode 100644 index 0000000000..4bf1ba80f5 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_gpio.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: Apache-2.0 */ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-11-24 勤为本 first version + * 2018-05-11 zhuangwei add gpio interrupt ops + */ + +#ifndef __DRV_GPIO_H__ +#define __DRV_GPIO_H__ + +#include + +struct gpio_irq_def +{ + void *irq_arg[32]; + void (*irq_cb[32])(void *param); + rt_uint8_t irq_type[32]; + rt_uint8_t state[32]; +}; + +struct loongson_gpio { + rt_uint64_t GPIO0_OEN; + rt_uint64_t GPIO1_OEN; /* Reserved */ + rt_uint64_t GPIO0_O; + rt_uint64_t GPIO1_O; /* Reserved */ + rt_uint64_t GPIO0_I; + rt_uint64_t GPIO1_I; /* Reserved */ + rt_uint64_t GPIO0_INTEN; + rt_uint64_t GPIO1_INTEN; /* Reserved */ +}; + +int loongson_pin_init(void); + +#endif + diff --git a/bsp/loongson/ls2kdev/drivers/drv_pwm.c b/bsp/loongson/ls2kdev/drivers/drv_pwm.c new file mode 100644 index 0000000000..1b5c98755d --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_pwm.c @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright(c) 2020, Du Huanpeng<548708880@qq.com> + * + */ + +#include +#include +#include + +#ifdef RT_USING_PWM + +#define PWM0_BASE (0xFFFFFFFFBFe02000) +#define PWM1_BASE (0xFFFFFFFFBFe02010) +#define PWM2_BASE (0xFFFFFFFFBFe02020) +#define PWM3_BASE (0xFFFFFFFFBFe02030) + +#define CTRL_EN (1UL<<0) +#define CTRL_OE (1UL<<3) +#define CTRL_SINGL (1UL<<4) +#define CTRL_INTE (1UL<<5) +#define CTRL_INT (1UL<<6) +#define CTRL_RST (1UL<<7) +#define CTRL_CAPTE (1UL<<8) +#define CTRL_INVERT (1UL<<9) +#define CTRL_DZONE (1UL<<10) + +struct loongson_pwm +{ + rt_uint32_t __PAD0; + rt_uint32_t low_buffer; + rt_uint32_t full_buffer; + rt_uint32_t ctrl; +}; + +rt_err_t loongson_pwm_enable(struct rt_device_pwm *device, int channel) +{ + int **priv; + struct loongson_pwm *chip; + volatile rt_uint64_t *config0; + rt_uint64_t m; + + channel %= 4; + + config0 = (void *)GEN_CONFIG0_REG; + m = 1ULL << 12 << channel; + *config0 |= m; + + priv = device->parent.user_data; + chip = (void *)priv[channel]; + chip->ctrl = CTRL_EN; + + return RT_EOK; +} + +rt_err_t loongson_pwm_disable(struct rt_device_pwm *device, int channel) +{ + struct loongson_pwm **chip; + rt_uint64_t m; + + chip = device->parent.user_data; + channel %= 4; + chip[channel]->ctrl &= ~CTRL_EN; + + return RT_EOK; +} + +rt_err_t loongson_pwm_set(struct rt_device_pwm *device, int channel, rt_uint32_t period, rt_uint32_t pulse) +{ + struct loongson_pwm *chip; + rt_uint32_t **priv; + + priv = device->parent.user_data; + channel %= 4; + chip = (void *)priv[channel]; + + chip->ctrl &= ~CTRL_EN; + chip->full_buffer = period; + chip->low_buffer = pulse; + chip->ctrl |= CTRL_EN; + + return RT_EOK; +} + +static rt_err_t loongson_pwm_ioctl(struct rt_device_pwm *device, int cmd, void *arg) +{ + rt_err_t rc; + struct rt_pwm_configuration *cfg; + + cfg = (void *)arg; + + switch (cmd) + { + case PWM_CMD_ENABLE: + rc = loongson_pwm_enable(device, cfg->channel); + break; + case PWM_CMD_DISABLE: + rc = loongson_pwm_disable(device, cfg->channel); + break; + case PWM_CMD_SET: + rc = loongson_pwm_set(device, cfg->channel, cfg->period, cfg->pulse); + break; + case PWM_CMD_GET: + rc = RT_ENOSYS; + break; + default: + rc = RT_EINVAL; + break; + } + return rc; +} + +struct rt_pwm_ops loongson_pwm_ops = +{ + .control = loongson_pwm_ioctl, +}; + +struct rt_device_pwm loongson_pwm = +{ + .ops = &loongson_pwm_ops, +}; + +int loongson_pwm_init(void) +{ + int rc = RT_EOK; + static rt_uint32_t *priv[] = + { + (void *)PWM0_BASE, + (void *)PWM1_BASE, + (void *)PWM2_BASE, + (void *)PWM3_BASE + }; + rc = rt_device_pwm_register(&loongson_pwm, "pwm0", &loongson_pwm_ops, &priv); + return rc; +} +INIT_DEVICE_EXPORT(loongson_pwm_init); + +#endif /*RT_USING_PWM*/ diff --git a/bsp/loongson/ls2kdev/drivers/drv_rtc.c b/bsp/loongson/ls2kdev/drivers/drv_rtc.c new file mode 100644 index 0000000000..3cea0288be --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_rtc.c @@ -0,0 +1,186 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2020, Du Huanpeng <548708880@qq.com> + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-01-30 armink the first version + * 2020-06-23 Du Huanpeng based on components/drivers/rtc/soft_rtc.c + */ + + +#include +#include +#include +#include +#include "ls2k1000.h" + +#ifdef RT_USING_RTC + +struct loongson_rtc +{ + rt_uint32_t sys_toytrim; + rt_uint32_t sys_toywrite0; + rt_uint32_t sys_toywrite1; + rt_uint32_t sys_toyread0; + rt_uint32_t sys_toyread1; + rt_uint32_t sys_toymatch0; + rt_uint32_t sys_toymatch1; + rt_uint32_t sys_toymatch2; + rt_uint32_t sys_rtcctrl; + rt_uint32_t __pad4[3]; + rt_uint32_t __pad5[4]; + rt_uint32_t sys_rtctrim; + rt_uint32_t sys_rtcwrite0; + rt_uint32_t sys_rtcread0; + rt_uint32_t sys_rtcmatch0; + rt_uint32_t sys_rtcmatch1; + rt_uint32_t sys_rtcmatch2; +}; + +/* bit field helpers. */ +#define __M(n) (~(~0<<(n))) +#define __RBF(number, n) ((number)&__M(n)) +#define __BF(number, n, m) __RBF((number>>m), (n-m+1)) +#define BF(number, n, m) (msys_toyread0, 3, 0); + msec *= 100; + + time.tm_sec = BF(rtctp->sys_toyread0, 9, 4); + time.tm_min = BF(rtctp->sys_toyread0, 15, 10); + time.tm_hour = BF(rtctp->sys_toyread0, 20, 16); + time.tm_mday = BF(rtctp->sys_toyread0, 21, 25); + time.tm_mon = BF(rtctp->sys_toyread0, 26, 31); + /* struct tm has three more members: + time.tm_isdst + time.tm_wday + time.tm_yday + */ + time.tm_mon -= 1; + time.tm_year = rtctp->sys_toyread1; + return &time; +} + +rtctime_t mkrtctime(struct tm *tm) +{ + rtctime_t rtctm; + struct tm tmptime; + + rtctm.sys_toyread0 <<= 31 - 26 + 1; + rtctm.sys_toyread0 |= tm->tm_mon + 1; + rtctm.sys_toyread0 <<= 25 - 21 + 1; + rtctm.sys_toyread0 |= tm->tm_mday; + rtctm.sys_toyread0 <<= 20 - 16 + 1; + rtctm.sys_toyread0 |= tm->tm_hour; + rtctm.sys_toyread0 <<= 15 - 10 + 1; + rtctm.sys_toyread0 |= tm->tm_min; + rtctm.sys_toyread0 <<= 9 - 4 + 1; + rtctm.sys_toyread0 |= tm->tm_sec; + /* Fixme: 0.1 second */ + rtctm.sys_toyread0 <<= 3 - 0 + 1; + rtctm.sys_toyread0 |= 0; + + rtctm.sys_toyread1 = tm->tm_year; + + tmptime = *localrtctime(&rtctm); + + return rtctm; +} + +static rt_err_t rt_rtc_open(rt_device_t dev, rt_uint16_t oflag) +{ + return RT_EOK; +} + +static rt_size_t rt_rtc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) +{ + return 0; +} + +static rt_err_t rt_rtc_ioctl(rt_device_t dev, int cmd, void *args) +{ + rt_err_t err = RT_ENOSYS; + + static int count = 0; + + struct loongson_rtc *hw_rtc; + rtctime_t rtctm; + struct tm time; + struct tm tmptime; + time_t *t; + + hw_rtc = dev->user_data; + + t = (time_t *)args; + time = *gmtime(t); + + rtctm.sys_toyread0 = hw_rtc->sys_toyread0; + rtctm.sys_toyread1 = hw_rtc->sys_toyread1; + rtctm.sys_rtcread0 = hw_rtc->sys_rtcread0; + tmptime = *localrtctime(&rtctm); + + switch (cmd) + { + case RT_DEVICE_CTRL_RTC_GET_TIME: + *t = timegm(&tmptime); + break; + case RT_DEVICE_CTRL_RTC_SET_TIME: + tmptime.tm_hour = time.tm_hour; + tmptime.tm_min = time.tm_min; + tmptime.tm_sec = time.tm_sec; + + tmptime.tm_year = time.tm_year; + tmptime.tm_mon = time.tm_mon; + tmptime.tm_mday = time.tm_mday; + + rtctm = mkrtctime(&tmptime); + /* write to hw RTC */ + hw_rtc->sys_toywrite0 = rtctm.sys_toyread0; + hw_rtc->sys_toywrite1 = rtctm.sys_toyread1; + break; + case RT_DEVICE_CTRL_RTC_GET_ALARM: + break; + case RT_DEVICE_CTRL_RTC_SET_ALARM: + break; + default: + break; + } + + return RT_EOK; +} + +int rt_hw_rtc_init(void) +{ + static struct rt_device rtc = + { + .type = RT_Device_Class_RTC, + .init = RT_NULL, + .open = rt_rtc_open, + .close = RT_NULL, + .read = rt_rtc_read, + .write = RT_NULL, + .control = rt_rtc_ioctl, + .user_data = (void *)RTC_BASE, + }; + rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR); +} + +INIT_DEVICE_EXPORT(rt_hw_rtc_init); + +#endif /*RT_USING_RTC*/ diff --git a/bsp/loongson/ls2kdev/drivers/drv_spi.c b/bsp/loongson/ls2kdev/drivers/drv_spi.c new file mode 100644 index 0000000000..daf069412b --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_spi.c @@ -0,0 +1,239 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-10-28 0xcccccccccccc Initial Version + * 2021-01-17 0xcccccccccccc Bug Fixed : clock division cannot been adjusted as expected due to wrong register configuration. + */ + +/** + * @addtogroup ls2k + */ +/*@{*/ + +#include +#include +#include +#include +#include +#include "drv_spi.h" + +#ifdef RT_USING_SPI +#ifdef RT_USING_SPI_GPIOCS +#include +#endif + +static void spi_init(uint8_t spre_spr, uint8_t copl, uint8_t cpha) +{ + SET_SPI(SPSR, 0xc0); + SET_SPI(PARAM, 0x40); + SET_SPI(PARAM2, 0x01); + SET_SPI(SPER, (spre_spr & 0b00001100) >> 2); + SET_SPI(SPCR, 0x50 | copl << 3 | cpha << 2 | (spre_spr & 0b00000011)); + SET_SPI(SOFTCS, 0xff); +} + +rt_inline void spi_set_csn(uint8_t val) +{ + SET_SPI(SOFTCS, val); +} + +static void spi_set_cs(unsigned char cs, int new_status) +{ + if (cs < 4) + { + unsigned char val = 0; + val = GET_SPI(SOFTCS); + val |= 0x01 << cs ; // csen=1 + if (new_status) // cs = 1 + { + val |= (0x10 << cs); // csn=1 + } + else // cs = 0 + { + val &= ~(0x10 << cs); // csn=0 + } + SET_SPI(SOFTCS, val); + return ; + } +#ifdef RT_USING_SPI_GPIOCS + else + { + rt_pin_mode(cs, PIN_MODE_OUTPUT); // with RT_USING_SPI_GPIOCS feature enabled, gpio will be used as csn pin. + rt_pin_write(cs, new_status); + } +#endif +} + +static uint8_t spi_write_for_response(uint8_t data) +{ + uint8_t val; + SET_SPI(TXFIFO, data); + while ((GET_SPI(SPSR))&RFEMPTY); //wait for echo + val = GET_SPI(RXFIFO); + return val; +} + +static int cmd_spi_init(int argc, char *argv[]) +{ + uint8_t spre_spr, cpol, cpha; + switch (argc) + { + case 2: + spre_spr = strtoul(argv[1], NULL, 0); + spi_init(spre_spr, 0, 0); + break; + case 4: + spre_spr = strtoul(argv[1], NULL, 0); + cpol = strtoul(argv[2], NULL, 0); + cpha = strtoul(argv[3], NULL, 0); + spi_init(spre_spr, 0, 0); + break; + default: + printf("\nusage : cmd_spi_init spre_spr \n(cmd_spi_init 0x4 0x0 0x0)\n0x4:div8 0xb:div4096\n"); + break; + } +} +MSH_CMD_EXPORT(cmd_spi_init, cmd_spi_init); + +static int cmd_spi_set_csn(int argc, char *argv[]) +{ + uint8_t val, csn; + switch (argc) + { + case 3: + csn = strtoul(argv[1], NULL, 0); + val = strtoul(argv[2], NULL, 0); + spi_set_cs(csn, val); + break; + default: + printf("usage:cmd_spi_set_csn csn val\n(0xbf for csn1 enable,0xff for csn1 disable)\n"); + break; + } +} +MSH_CMD_EXPORT(cmd_spi_set_csn, cmd_spi_set_csn); + +static int cmd_spi_write(int argc, char *argv[]) +{ + uint8_t data, resp; + switch (argc) + { + case 2: + data = strtoul(argv[1], NULL, 0); + resp = spi_write_for_response(data); + printf("resp:%2X\n", resp); + break; + default: + printf("usage:cmd_spi_write data\n"); + break; + } +} +MSH_CMD_EXPORT(cmd_spi_write, cmd_spi_write); + +static rt_err_t configure(struct rt_spi_device *device, struct rt_spi_configuration *configuration); +static rt_uint32_t xfer(struct rt_spi_device *device, struct rt_spi_message *message); + +const static unsigned char SPI_DIV_TABLE[] = {0b0000, 0b0001, 0b0100, 0b0010, 0b0011, 0b0101, 0b0110, 0b0111, 0b1000, 0b1001, 0b1010, 0b1011}; +// 2 4 8 16 32 64 128 256 512 1024 2048 4096 +static rt_err_t configure(struct rt_spi_device *device, + struct rt_spi_configuration *configuration) +{ + + unsigned char cpol = 0; + unsigned char cpha = 0; + + RT_ASSERT(NULL != device); + RT_ASSERT(NULL != configuration); + + // baudrate + if (configuration->mode & RT_SPI_CPOL) // cpol + { + cpol = 1; + } + else + { + cpol = 0; + } + if (configuration->mode & RT_SPI_CPHA) // cpha + { + cpha = 1; + } + else + { + cpha = 0; + } + + float spi_max_speed = ((float)APB_MAX_SPEED) / (8.0 / (float)APB_FREQSCALE); + uint64_t div = (uint64_t)(spi_max_speed / (float)configuration->max_hz); + int ctr = 0; + while (div != 1 && ctr < 12) + { + ctr++; + div = div >> 1; + } + spi_init(SPI_DIV_TABLE[ctr], cpol, cpha); + + return RT_EOK; +} + +static rt_uint32_t xfer(struct rt_spi_device *device, struct rt_spi_message *message) +{ + + unsigned char cs = 0; + rt_uint32_t size = 0; + const rt_uint8_t *send_ptr = NULL; + rt_uint8_t *recv_ptr = NULL; + rt_uint8_t data = 0; + RT_ASSERT(NULL != device); + RT_ASSERT(NULL != message); + cs = (unsigned char)(device->parent.user_data); + size = message->length; + if (message->cs_take) + { + spi_set_cs(cs, 0); + } + // send data + send_ptr = message->send_buf; + recv_ptr = message->recv_buf; + while (size--) + { + data = 0xFF; + if (NULL != send_ptr) + { + data = *send_ptr++; + } + if (NULL != recv_ptr) + { + *recv_ptr++ = spi_write_for_response(data); + } + else + { + spi_write_for_response(data); + } + } + // release cs + if (message->cs_release) + { + spi_set_cs(cs, 1); + } + return message->length; +} + +static struct rt_spi_ops loongson_spi_ops = +{ + .configure = configure, + .xfer = xfer +}; +static struct rt_spi_bus loongson_spi; + +static int loongson_spi_init() +{ + //rt_kprintf("spi_init\n"); + return rt_spi_bus_register(&loongson_spi, "spi", &loongson_spi_ops); +} +INIT_BOARD_EXPORT(loongson_spi_init); +#endif +/*@}*/ diff --git a/bsp/loongson/ls2kdev/drivers/drv_spi.h b/bsp/loongson/ls2kdev/drivers/drv_spi.h new file mode 100644 index 0000000000..447e65d91b --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_spi.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-10-28 0xcccccccccccc Initial Version + */ +/** + * @addtogroup ls2k + */ +/*@{*/ +#ifndef LS2K_DRV_SPI_H +#define LS2K_DRV_SPI_H + +// kseg1 byte operation +#define KSEG1_STORE8(addr,val) *(volatile char *)(0xffffffffa0000000 | addr) = val +#define KSEG1_LOAD8(addr) *(volatile char *)(0xffffffffa0000000 | addr) +// clock configurations +#define APB_MAX_SPEED 125000000U +#define APB_FREQSCALE (((KSEG1_LOAD8(0xffffffffbfe104d2)>>4)&0x7)+1) +// base addrs +#define SPI_BASE 0x1fff0220 +#define PMON_ADDR 0xa1000000 +#define FLASH_ADDR 0x000000 +// bit bias +#define SPCR 0x0 +#define SPSR 0x1 +#define FIFO 0x2 +#define TXFIFO 0x2 +#define RXFIFO 0x2 +#define SPER 0x3 +#define PARAM 0x4 +#define SOFTCS 0x5 +#define PARAM2 0x6 +#define RFEMPTY 1 +// SPI controller operaion macros +#define SET_SPI(addr,val) KSEG1_STORE8(SPI_BASE+addr,val) +#define GET_SPI(addr) KSEG1_LOAD8(SPI_BASE+addr) + +#endif +/*@}*/ diff --git a/bsp/loongson/ls2kdev/drivers/drv_uart.c b/bsp/loongson/ls2kdev/drivers/drv_uart.c new file mode 100644 index 0000000000..5b5c39c595 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_uart.c @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic Initial version + * 2020-10-28 ma Buadrate & Multi-Port support + */ +/** + * @addtogroup ls2k + */ +/*@{*/ +#include +#include +#include +#include "drv_uart.h" +#define TRUE 1 +#define FALSE 0 +const struct serial_configure config_uart0 = { + BAUD_RATE_115200, /* 921600 bits/s */ + DATA_BITS_8, /* 8 databits */ + STOP_BITS_1, /* 1 stopbit */ + PARITY_NONE, /* No parity */ + BIT_ORDER_LSB, /* LSB first sent */ + NRZ_NORMAL, /* Normal mode */ + RT_SERIAL_RB_BUFSZ, /* Buffer size */ + 0 +}; +struct rt_uart_ls2k +{ + void *base; + rt_uint32_t IRQ; +}; +static rt_err_t ls2k_uart_set_buad(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + struct rt_uart_ls2k *uart_dev = RT_NULL; + rt_err_t ret = RT_EOK; + RT_ASSERT(serial != RT_NULL); + RT_ASSERT(cfg != RT_NULL); + uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; + uint64_t brtc = (125000000U) / (16 * (cfg->baud_rate)); + UART_LCR(uart_dev->base) = 0x80; // Activate buadcfg + UART_LSB(uart_dev->base) = brtc & 0xff; + UART_MSB(uart_dev->base) = brtc >> 8; + if (((((short)UART_MSB(uart_dev->base)) << 8) | UART_LSB(uart_dev->base)) != brtc) ret = RT_ERROR; + UART_LCR(uart_dev->base) = CFCR_8BITS; // Back to normal + UART_MCR(uart_dev->base) = MCR_IENABLE/* | MCR_DTR | MCR_RTS*/; + UART_IER(uart_dev->base) = 0; +} +static rt_err_t ls2k_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + struct rt_uart_ls2k *uart_dev = RT_NULL; + RT_ASSERT(serial != RT_NULL); + RT_ASSERT(cfg != RT_NULL); + ls2k_uart_set_buad(serial, cfg); + uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; + HWREG8(0xffffffffbfe10428) = 0x1f; // Enable Multi-Port Support, by default it's 0x11 ,which means UART0 & UART4 Controller is in single port mode. + UART_IER(uart_dev->base) = 0; /* clear interrupt */ + UART_FCR(uart_dev->base) = 0xc1; /* reset UART Rx/Tx */ + /* set databits, stopbits and parity. (8-bit data, 1 stopbit, no parity) */ + UART_LCR(uart_dev->base) = 0x3; + UART_MCR(uart_dev->base) = 0x3; + UART_LSR(uart_dev->base) = 0x60; + UART_MSR(uart_dev->base) = 0xb0; + return RT_EOK; +} +static rt_err_t ls2k_uart_control(struct rt_serial_device *serial, int cmd, void *arg) +{ + struct rt_uart_ls2k *uart_dev = RT_NULL; + RT_ASSERT(serial != RT_NULL); + uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: /* Disable RX IRQ */ + rt_hw_interrupt_mask(uart_dev->IRQ); + break; + case RT_DEVICE_CTRL_SET_INT: /* Enable RX IRQ */ + rt_hw_interrupt_umask(uart_dev->IRQ); + UART_IER(uart_dev->base) |= (IER_IRxE | IER_ILE); + break; + default: + break; + } + return RT_EOK; +} +static rt_bool_t uart_is_transmit_empty(struct rt_uart_ls2k *uart_dev) +{ + unsigned char status = UART_LSR(uart_dev->base); + if (status & (UARTLSR_TE | UARTLSR_TFE)) + { + return TRUE; + } + else + { + return FALSE; + } +} +static int ls2k_uart_putc(struct rt_serial_device *serial, char c) +{ + struct rt_uart_ls2k *uart_dev = RT_NULL; + RT_ASSERT(serial != RT_NULL); + uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; + while (FALSE == uart_is_transmit_empty(uart_dev)) + ; + UART_DAT(uart_dev->base) = c; + return 1; +} +static int ls2k_uart_getc(struct rt_serial_device *serial) +{ + struct rt_uart_ls2k *uart_dev = RT_NULL; + RT_ASSERT(serial != RT_NULL); + uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; + if (LSR_RXRDY & UART_LSR(uart_dev->base)) + { + return UART_DAT(uart_dev->base); + } + return -1; +} +/* UART interrupt handler */ +static void uart_irq_handler(int vector, void *param) +{ + struct rt_serial_device *serial = (struct rt_serial_device *)param; + struct rt_uart_ls2k *uart_dev = RT_NULL; + RT_ASSERT(serial != RT_NULL); + uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; + unsigned char iir = UART_IIR(uart_dev->base); + /* Find out interrupt reason */ + if ((IIR_RXTOUT & iir) || (IIR_RXRDY & iir)) + { + rt_interrupt_enter(); + rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); + rt_interrupt_leave(); + } +} +static const struct rt_uart_ops ls2k_uart_ops = +{ + ls2k_uart_configure, + ls2k_uart_control, + ls2k_uart_putc, + ls2k_uart_getc, +}; +struct rt_uart_ls2k uart_dev0 = +{ + (void *)UARTx_BASE(0), + LS2K_UART_0_1_2_3_IRQ, +}; +struct rt_uart_ls2k uart_dev4 = +{ + (void *)UARTx_BASE(4), + LS2K_UART_4_5_6_7_IRQ, +}; + +struct rt_serial_device serial, serial4; + +void rt_hw_uart_init(void) +{ + struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; + +#ifdef RT_USING_UART0 + struct rt_uart_ls2k *uart0; + uart0 = &uart_dev0; + serial.ops = &ls2k_uart_ops; + serial.config = config_uart0; + + rt_hw_interrupt_install(uart0->IRQ, uart_irq_handler, &serial, "UART0"); + /* register UART device */ + rt_hw_serial_register(&serial, + "uart0", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + uart0); +#endif + +#ifdef RT_USING_UART4 + struct rt_uart_ls2k *uart4; + uart4 = &uart_dev4; + serial4.ops = &ls2k_uart_ops; + serial4.config = config; + rt_hw_interrupt_install(uart4->IRQ, uart_irq_handler, &serial4, "UART4"); + rt_hw_serial_register(&serial4, + "uart4", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, + &uart_dev4); +#endif +} +/*@}*/ diff --git a/bsp/loongson/ls2kdev/drivers/drv_uart.h b/bsp/loongson/ls2kdev/drivers/drv_uart.h new file mode 100644 index 0000000000..ca3e856d06 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/drv_uart.h @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic Initial version + */ + +#ifndef _DRV_UART_H__ +#define _DRV_UART_H__ + +#include "ls2k1000.h" +#include + +/* UART registers */ +#define UART_DAT(base) HWREG8(base + 0x00) +#define UART_IER(base) HWREG8(base + 0x01) +#define UART_IIR(base) HWREG8(base + 0x02) +#define UART_FCR(base) HWREG8(base + 0x02) +#define UART_LCR(base) HWREG8(base + 0x03) +#define UART_MCR(base) HWREG8(base + 0x04) +#define UART_LSR(base) HWREG8(base + 0x05) +#define UART_MSR(base) HWREG8(base + 0x06) + +#define UART_LSB(base) HWREG8(base + 0x00) +#define UART_MSB(base) HWREG8(base + 0x01) + +/* interrupt enable register */ +#define IER_IRxE 0x1 +#define IER_ITxE 0x2 +#define IER_ILE 0x4 +#define IER_IME 0x8 + +/* interrupt identification register */ +#define IIR_IMASK 0xf /* mask */ +#define IIR_RXTOUT 0xc /* receive timeout */ +#define IIR_RLS 0x6 /* receive line status */ +#define IIR_RXRDY 0x4 /* receive ready */ +#define IIR_TXRDY 0x2 /* transmit ready */ +#define IIR_NOPEND 0x1 /* nothing */ +#define IIR_MLSC 0x0 /* modem status */ +#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ + +/* fifo control register */ +#define FIFO_ENABLE 0x01 /* enable fifo */ +#define FIFO_RCV_RST 0x02 /* reset receive fifo */ +#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ +#define FIFO_DMA_MODE 0x08 /* enable dma mode */ +#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ +#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ +#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ +#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ + +/* character format control register */ +#define CFCR_DLAB 0x80 /* divisor latch */ +#define CFCR_SBREAK 0x40 /* send break */ +#define CFCR_PZERO 0x30 /* zero parity */ +#define CFCR_PONE 0x20 /* one parity */ +#define CFCR_PEVEN 0x10 /* even parity */ +#define CFCR_PODD 0x00 /* odd parity */ +#define CFCR_PENAB 0x08 /* parity enable */ +#define CFCR_STOPB 0x04 /* 2 stop bits */ +#define CFCR_8BITS 0x03 /* 8 data bits */ +#define CFCR_7BITS 0x02 /* 7 data bits */ +#define CFCR_6BITS 0x01 /* 6 data bits */ +#define CFCR_5BITS 0x00 /* 5 data bits */ + +/* modem control register */ +#define MCR_LOOPBACK 0x10 /* loopback */ +#define MCR_IENABLE 0x08 /* output 2 = int enable */ +#define MCR_DRS 0x04 /* output 1 = xxx */ +#define MCR_RTS 0x02 /* enable RTS */ +#define MCR_DTR 0x01 /* enable DTR */ + +/* line status register */ +#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ +#define LSR_TSRE 0x40 /* transmitter empty */ +#define LSR_TXRDY 0x20 /* transmitter ready */ +#define LSR_BI 0x10 /* break detected */ +#define LSR_FE 0x08 /* framing error */ +#define LSR_PE 0x04 /* parity error */ +#define LSR_OE 0x02 /* overrun error */ +#define LSR_RXRDY 0x01 /* receiver ready */ +#define LSR_RCV_MASK 0x1f + + +/* UART interrupt enable register value */ +#define UARTIER_IME (1 << 3) +#define UARTIER_ILE (1 << 2) +#define UARTIER_ITXE (1 << 1) +#define UARTIER_IRXE (1 << 0) + +/* UART line control register value */ +#define UARTLCR_DLAB (1 << 7) +#define UARTLCR_BCB (1 << 6) +#define UARTLCR_SPB (1 << 5) +#define UARTLCR_EPS (1 << 4) +#define UARTLCR_PE (1 << 3) +#define UARTLCR_SB (1 << 2) + +/* UART line status register value */ +#define UARTLSR_ERROR (1 << 7) +#define UARTLSR_TE (1 << 6) +#define UARTLSR_TFE (1 << 5) +#define UARTLSR_BI (1 << 4) +#define UARTLSR_FE (1 << 3) +#define UARTLSR_PE (1 << 2) +#define UARTLSR_OE (1 << 1) +#define UARTLSR_DR (1 << 0) + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/interrupt.c b/bsp/loongson/ls2kdev/drivers/interrupt.c new file mode 100644 index 0000000000..9e9c210aa0 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/interrupt.c @@ -0,0 +1,237 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic Initial version + */ + +/** + * @addtogroup ls2k + */ + +/*@{*/ + +#include +#include +#include +#include +#include "ls2k1000.h" +#include "interrupt.h" + +static struct rt_irq_desc irq_handle_table[MAX_INTR]; + +static void rt_hw_interrupt_handler(int vector, void *param) +{ + rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); +} + +static void liointc_init(void) +{ + int i; + /* Router for LIOINTC0, to Core 0, INT0 (CPU IP2) */ + for (i = 0; i < 32; i ++) + { + HWREG8(LIOINTC0_BASE + i) = LIOINTC_COREx_INTy(0, 0); + } + + /* Router for LIOINTC1, to Core 0, INT1 (CPU IP3) */ + for (i = 0; i < 32; i ++) + { + HWREG8(LIOINTC1_BASE + i) = LIOINTC_COREx_INTy(0, 1); + } + + /* Disable all IRQs */ + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_DISABLE) = 0xffffffff; + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_DISABLE) = 0xffffffff; + + /* Set all IRQs to low level triggered (Default?) */ + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) = 0x0; + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) = 0x0; + + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) = 0x0; + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) = 0x0; +} + +//set irq mode +void liointc_set_irq_mode(int irq, int mode) +{ + if (irq < 32) + { + if (mode == PIN_IRQ_MODE_RISING) + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq)); + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq)); + } + else if (mode == PIN_IRQ_MODE_FALLING) + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq)); + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq)); + } + else if (mode == PIN_IRQ_MODE_HIGH_LEVEL) + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq)); + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq)); + } + else if (mode == PIN_IRQ_MODE_LOW_LEVEL) + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq)); + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq)); + } + else + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq)); + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq)); + } + } + else + { + if (mode == PIN_IRQ_MODE_RISING) + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq - 32)); + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq - 32)); + } + else if (mode == PIN_IRQ_MODE_FALLING) + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq - 32)); + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq - 32)); + } + else if (mode == PIN_IRQ_MODE_HIGH_LEVEL) + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq - 32)); + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq - 32)); + } + else if (mode == PIN_IRQ_MODE_LOW_LEVEL) + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq - 32)); + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq - 32)); + } + else + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq - 32)); + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq - 32)); + } + } +} + +static void liointc_isr(rt_ubase_t reg_base, rt_ubase_t isr_base, + int irq_base) +{ + rt_uint32_t isr, tmp; + int intx; + /* Mask to clear ISR */ + isr = HWREG32(isr_base); + + tmp = isr; + /* Handle each of them */ + while (tmp) + { + rt_isr_handler_t irq_func; + void *param; + int irq; + + intx = __rt_ffs(isr) - 1; + tmp &= ~(1 << intx); + + irq = intx + irq_base; + + irq_func = irq_handle_table[irq].handler; + param = irq_handle_table[irq].param; + irq_func(irq, param); +#ifdef RT_USING_INTERRUPT_INFO + irq_handle_table[irq].counter++; +#endif + } + + /* Enable them again */ + HWREG32(reg_base + LIOINTC_REG_INTC_ENABLE) = isr; +} + +/** + * This function will initialize hardware interrupt + */ +void rt_hw_interrupt_init(void) +{ + rt_uint32_t idx; + + rt_memset(irq_handle_table, 0x00, sizeof(irq_handle_table)); + for (idx = 0; idx < MAX_INTR; idx ++) + { + irq_handle_table[idx].handler = rt_hw_interrupt_handler; + } + + liointc_init(); +} + +rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, + void *param, const char *name) +{ + rt_isr_handler_t old_handler = RT_NULL; + + if (vector >= 0 && vector < MAX_INTR) + { + old_handler = irq_handle_table[vector].handler; + +#ifdef RT_USING_INTERRUPT_INFO + rt_strncpy(irq_handle_table[vector].name, name, RT_NAME_MAX); +#endif /* RT_USING_INTERRUPT_INFO */ + irq_handle_table[vector].handler = handler; + irq_handle_table[vector].param = param; + } + + if (vector <= 32) + { + mips_unmask_cpu_irq(2); + } + else + { + mips_unmask_cpu_irq(3); + } + + return old_handler; +} + +void rt_do_mips_cpu_irq(rt_uint32_t ip) +{ + void *param; + rt_isr_handler_t irq_func; + if (ip == 7) + { + rt_hw_timer_handler(); + } + else if (ip == 2) + { + liointc_isr(LIOINTC0_BASE, CORE0_INTISR0, LIOINTC0_IRQBASE); + } + else if (ip == 3) + { + liointc_isr(LIOINTC1_BASE, CORE0_INTISR1, LIOINTC1_IRQBASE); + } +} + +void rt_hw_interrupt_umask(int irq) +{ + if (irq < LIOINTC0_IRQBASE + 32) + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_ENABLE) = (1 << irq); + } + else if (irq < LIOINTC1_IRQBASE + 32) + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_ENABLE) = (1 << (irq - 32)); + } +} + +void rt_hw_interrupt_mask(int irq) +{ + if (irq < LIOINTC0_IRQBASE + 32) + { + HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_DISABLE) = (1 << irq); + } + else if (irq < LIOINTC1_IRQBASE + 32) + { + HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_DISABLE) = (1 << (irq - 32)); + } +} +/*@}*/ diff --git a/bsp/loongson/ls2kdev/drivers/interrupt.h b/bsp/loongson/ls2kdev/drivers/interrupt.h new file mode 100644 index 0000000000..df55437cf9 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/interrupt.h @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-06-21 bigmagic Initial version + */ + +#ifndef _DRV_INTERRUPT_H__ +#define _DRV_INTERRUPT_H__ + +#define LS2K_UART_0_1_2_3_IRQ (0) +#define LS2K_UART_4_5_6_7_IRQ (1) +#define LS2K_UART_8_9_10_11_IRQ (2) +#define LS2K_EL_IRQ (3) +#define LS2K_HDA_IRQ (4) +#define LS2K_I2S_IRQ (5) +#define LS2K_RESERVED1_IRQ (6) +#define LS2K_THSENS_IRQ (7) +#define LS2K_TOY_TICK_IRQ (8) +#define LS2K_RTC_TICK_IRQ (9) +#define LS2K_CAM_TICK_IRQ (10) +#define LS2K_RESERVED2_IRQ (11) +#define LS2K_GMAC0_SBD_IRQ (12) +#define LS2K_GMAC0_PMT_IRQ (13) +#define LS2K_GMAC1_SBD_IRQ (14) +#define LS2K_GMAC1_PMT_IRQ (15) +#define LS2K_CANO_IRQ (16) +#define LS2K_CAN1_IRQ (17) +#define LS2K_BOOT_IRQ (18) +#define LS2K_SATA_IRQ (19) +#define LS2K_NAND_IRQ (20) +#define LS2K_HPET_IRQ (21) +#define LS2K_I2C0_IRQ (21) +#define LS2K_I2C1_IRQ (22) +#define LS2K_I2C2_IRQ (23) +#define LS2K_PWM0_IRQ (24) +#define LS2K_PWM1_IRQ (25) +#define LS2K_PWM2_IRQ (26) +#define LS2K_PWM3_IRQ (27) +#define LS2K_DC_IRQ (28) +#define LS2K_GPU_IRQ (29) +#define LS2K_VPU_IRQ (30) +#define LS2K_SDIO_IRQ (31) +//#define LS2K_PCIE0_IRQ (32~35) +//#define LS2K_PCIE1_IRQ (36~37) +#define LS2K_HPET1_IRQ (38) +#define LS2K_HPET2_IRQ (39) +//#define LS2K_TOY_IRQ (40~43) +//#define LS2K_DMA_IRQ (44~48) +#define LS2K_OTG_IRQ (49) +#define LS2K_EHCI_IRQ (50) +#define LS2K_OHCI_IRQ (51) +//#define LS2K_RTC_IRQ (52~54) +#define LS2K_RSA_IRQ (55) +#define LS2K_AES_IRQ (56) +#define LS2K_DES_IRQ (57) +#define LS2K_GPIO_INTLO_IRQ (58) +#define LS2K_GPIO_INTHI_IRQ (59) +#define LS2K_GPIO0_INT_IRQ (60) +#define LS2K_GPIO1_INT_IRQ (61) +#define LS2K_GPIO2_INT_IRQ (62) +#define LS2K_GPIO3_INT_IRQ (63) + +#define MAX_INTR (64) +#define LIOINTC0_IRQBASE (0) +#define LIOINTC1_IRQBASE (32) + +#define LIOINTC_SHIFT_INTx (4) +#define LIOINTC_COREx_INTy(x, y) ((1 << x) | (1 << (y + LIOINTC_SHIFT_INTx))) + +#define LIOINTC_INTC_CHIP_START 0x20 + +#define LIOINTC_REG_INTC_STATUS (LIOINTC_INTC_CHIP_START + 0x00) +#define LIOINTC_REG_INTC_EN_STATUS (LIOINTC_INTC_CHIP_START + 0x04) +#define LIOINTC_REG_INTC_ENABLE (LIOINTC_INTC_CHIP_START + 0x08) +#define LIOINTC_REG_INTC_DISABLE (LIOINTC_INTC_CHIP_START + 0x0c) +#define LIOINTC_REG_INTC_POL (LIOINTC_INTC_CHIP_START + 0x10) +#define LIOINTC_REG_INTC_EDGE (LIOINTC_INTC_CHIP_START + 0x14) + +void liointc_set_irq_mode(int irq, int mode); + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/ls2k1000.h b/bsp/loongson/ls2kdev/drivers/ls2k1000.h new file mode 100644 index 0000000000..668d484d9c --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/ls2k1000.h @@ -0,0 +1,54 @@ +#ifndef _LS2K1000_H__ +#define _LS2K1000_H__ + +#include +#include "interrupt.h" +#include + +#define APB_BASE CKSEG1ADDR(0xbfe00000) + +#define UART0_BASE_ADDR (0xbfe00000) +#define UART0_OFF (0x0) +#define UART0_BASE CKSEG1ADDR(UART0_BASE_ADDR + UART0_OFF) + +#define UARTx_BASE(x) ((APB_BASE | (0x0 << 12) | (x << 8))) + +#define LIOINTC0_BASE CKSEG1ADDR(0x1fe11400) +#define CORE0_INTISR0 CKSEG1ADDR(0x1fe11040) + +#define LIOINTC1_BASE CKSEG1ADDR(0x1fe11440) +#define CORE0_INTISR1 CKSEG1ADDR(0x1fe11048) + +#define GPIO_BASE (0xFFFFFFFFBFE10500) +#define PLL_SYS_BASE (0xFFFFFFFFBFE10480) +#define RTC_BASE (0xFFFFFFFFBFE07820) + +#define GEN_CONFIG0_REG (0xFFFFFFFFBfe10420) + + +/* + * General PM Configuration Register + */ +#define PMCON_BASE (APB_BASE | (0x7 << 12)) + +/* + * Power Management1 Configuration Registers + */ +#define PM1_BASE (PMCON_BASE + 0x0C) +#define PM1_STS HWREG32(PM1_BASE) +#define PM1_EN HWREG32(PM1_BASE + 0x04) +#define PM1_CNT HWREG32(PM1_BASE + 0x08) + +/* + * Watch Dog Configuration Registers + */ +#define WDT_BASE (PMCON_BASE + 0x30) +#define WDT_EN HWREG32(WDT_BASE) +#define WDT_SET HWREG32(WDT_BASE + 0x04) +#define WDT_TIMER HWREG32(WDT_BASE + 0x08) + +void rt_hw_timer_handler(void); +void rt_hw_uart_init(void); + +#endif + diff --git a/bsp/loongson/ls2kdev/drivers/net/SConscript b/bsp/loongson/ls2kdev/drivers/net/SConscript new file mode 100644 index 0000000000..841d177c42 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/SConscript @@ -0,0 +1,16 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +CPPPATH = [cwd] + +if GetDepend('RT_USING_LWIP') == False: + SrcRemove(src, 'mii.c') + SrcRemove(src, 'synopGMAC.c') + SrcRemove(src, 'synopGMAC_Dev.c') + SrcRemove(src, 'synopGMAC_plat.c') + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls2kdev/drivers/net/mii.c b/bsp/loongson/ls2kdev/drivers/net/mii.c new file mode 100644 index 0000000000..d83caef6de --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/mii.c @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ +#include "mii.h" + +static inline unsigned int mii_nway_result(unsigned int negotiated) +{ + unsigned int ret; + + if (negotiated & LPA_100FULL) + ret = LPA_100FULL; + else if (negotiated & LPA_100BASE4) + ret = LPA_100BASE4; + else if (negotiated & LPA_100HALF) + ret = LPA_100HALF; + else if (negotiated & LPA_10FULL) + ret = LPA_10FULL; + else + ret = LPA_10HALF; + + return ret; +} + +static int mii_check_gmii_support(struct mii_if_info *mii) +{ + int reg; + + reg = mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); + if (reg & BMSR_ESTATEN) + { + reg = mii->mdio_read(mii->dev, mii->phy_id, MII_ESTATUS); + if (reg & (ESTATUS_1000_TFULL | ESTATUS_1000_THALF)) + return 1; + } + + return 0; +} + +static int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) +{ + struct synopGMACNetworkAdapter *dev = mii->dev; + u32 advert, bmcr, lpa, nego; + u32 advert2 = 0, bmcr2 = 0, lpa2 = 0; + + ecmd->supported = + (SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | + SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full | + SUPPORTED_Autoneg | SUPPORTED_TP | SUPPORTED_MII); + if (mii->supports_gmii) + ecmd->supported |= SUPPORTED_1000baseT_Half | + SUPPORTED_1000baseT_Full; + + /* only supports twisted-pair */ + ecmd->port = PORT_MII; + + /* only supports internal transceiver */ + ecmd->transceiver = XCVR_INTERNAL; + + /* this isn't fully supported at higher layers */ + ecmd->phy_address = mii->phy_id; + + ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; + advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); + if (mii->supports_gmii) + advert2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); + + if (advert & ADVERTISE_10HALF) + ecmd->advertising |= ADVERTISED_10baseT_Half; + if (advert & ADVERTISE_10FULL) + ecmd->advertising |= ADVERTISED_10baseT_Full; + if (advert & ADVERTISE_100HALF) + ecmd->advertising |= ADVERTISED_100baseT_Half; + if (advert & ADVERTISE_100FULL) + ecmd->advertising |= ADVERTISED_100baseT_Full; + if (advert2 & ADVERTISE_1000HALF) + ecmd->advertising |= ADVERTISED_1000baseT_Half; + if (advert2 & ADVERTISE_1000FULL) + ecmd->advertising |= ADVERTISED_1000baseT_Full; + + bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); + lpa = mii->mdio_read(dev, mii->phy_id, MII_LPA); + if (mii->supports_gmii) + { + bmcr2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); + lpa2 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); + } + if (bmcr & BMCR_ANENABLE) + { + ecmd->advertising |= ADVERTISED_Autoneg; + ecmd->autoneg = AUTONEG_ENABLE; + + nego = mii_nway_result(advert & lpa); + if ((bmcr2 & (ADVERTISE_1000HALF | ADVERTISE_1000FULL)) & + (lpa2 >> 2)) + ecmd->speed = SPEED_1000; + else if (nego == LPA_100FULL || nego == LPA_100HALF) + ecmd->speed = SPEED_100; + else + ecmd->speed = SPEED_10; + if ((lpa2 & LPA_1000FULL) || nego == LPA_100FULL || + nego == LPA_10FULL) + { + ecmd->duplex = DUPLEX_FULL; + mii->full_duplex = 1; + } + else + { + ecmd->duplex = DUPLEX_HALF; + mii->full_duplex = 0; + } + } + else + { + ecmd->autoneg = AUTONEG_DISABLE; + + ecmd->speed = ((bmcr & BMCR_SPEED1000 && + (bmcr & BMCR_SPEED100) == 0) ? SPEED_1000 : + (bmcr & BMCR_SPEED100) ? SPEED_100 : SPEED_10); + ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; + } + + /* ignore maxtxpkt, maxrxpkt for now */ + + return 0; +} + +static int mii_link_ok(struct mii_if_info *mii) +{ + /* first, a dummy read, needed to latch some MII phys */ + mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); + if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) + return 1; + return 0; +} diff --git a/bsp/loongson/ls2kdev/drivers/net/mii.h b/bsp/loongson/ls2kdev/drivers/net/mii.h new file mode 100644 index 0000000000..bc6d6c7a0c --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/mii.h @@ -0,0 +1,229 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ +#ifndef __MII_H__ +#define __MII_H__ +/* Generic MII registers. */ + +#include "synopGMAC_types.h" + +#define MII_BMCR 0x00 /* Basic mode control register */ +#define MII_BMSR 0x01 /* Basic mode status register */ +#define MII_PHYSID1 0x02 /* PHYS ID 1 */ +#define MII_PHYSID2 0x03 /* PHYS ID 2 */ +#define MII_ADVERTISE 0x04 /* Advertisement control reg */ +#define MII_LPA 0x05 /* Link partner ability reg */ +#define MII_EXPANSION 0x06 /* Expansion register */ +#define MII_CTRL1000 0x09 /* 1000BASE-T control */ +#define MII_STAT1000 0x0a /* 1000BASE-T status */ +#define MII_ESTATUS 0x0f /* Extended Status */ +#define MII_DCOUNTER 0x12 /* Disconnect counter */ +#define MII_FCSCOUNTER 0x13 /* False carrier counter */ +#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ +#define MII_RERRCOUNTER 0x15 /* Receive error counter */ +#define MII_SREVISION 0x16 /* Silicon revision */ +#define MII_RESV1 0x17 /* Reserved... */ +#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ +#define MII_PHYADDR 0x19 /* PHY address */ +#define MII_RESV2 0x1a /* Reserved... */ +#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ +#define MII_NCONFIG 0x1c /* Network interface config */ + +/* Basic mode control register. */ +#define BMCR_RESV 0x003f /* Unused... */ +#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ +#define BMCR_CTST 0x0080 /* Collision test */ +#define BMCR_FULLDPLX 0x0100 /* Full duplex */ +#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ +#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ +#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ +#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ +#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ +#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ +#define BMCR_RESET 0x8000 /* Reset the DP83840 */ + +/* Basic mode status register. */ +#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ +#define BMSR_JCD 0x0002 /* Jabber detected */ +#define BMSR_LSTATUS 0x0004 /* Link status */ +#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ +#define BMSR_RFAULT 0x0010 /* Remote fault detected */ +#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ +#define BMSR_RESV 0x00c0 /* Unused... */ +#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ +#define BMSR_100FULL2 0x0200 /* Can do 100BASE-T2 HDX */ +#define BMSR_100HALF2 0x0400 /* Can do 100BASE-T2 FDX */ +#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ +#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ +#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ +#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ +#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ + +/* Advertisement control register. */ +#define ADVERTISE_SLCT 0x001f /* Selector bits */ +#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ +#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ +#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ +#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ +#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ +#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ +#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ +#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ +#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ +#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ +#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ +#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ +#define ADVERTISE_RESV 0x1000 /* Unused... */ +#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ +#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ +#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ + +#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ + ADVERTISE_CSMA) +#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ + ADVERTISE_100HALF | ADVERTISE_100FULL) + +/* Indicates what features are advertised by the interface. */ +#define ADVERTISED_10baseT_Half (1 << 0) +#define ADVERTISED_10baseT_Full (1 << 1) +#define ADVERTISED_100baseT_Half (1 << 2) +#define ADVERTISED_100baseT_Full (1 << 3) +#define ADVERTISED_1000baseT_Half (1 << 4) +#define ADVERTISED_1000baseT_Full (1 << 5) +#define ADVERTISED_Autoneg (1 << 6) +#define ADVERTISED_TP (1 << 7) +#define ADVERTISED_AUI (1 << 8) +#define ADVERTISED_MII (1 << 9) +#define ADVERTISED_FIBRE (1 << 10) +#define ADVERTISED_BNC (1 << 11) +#define ADVERTISED_10000baseT_Full (1 << 12) +#define ADVERTISED_Pause (1 << 13) +#define ADVERTISED_Asym_Pause (1 << 14) + +/* Link partner ability register. */ +#define LPA_SLCT 0x001f /* Same as advertise selector */ +#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ +#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ +#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ +#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ +#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ +#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ +#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ +#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ +#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ +#define LPA_PAUSE_CAP 0x0400 /* Can pause */ +#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ +#define LPA_RESV 0x1000 /* Unused... */ +#define LPA_RFAULT 0x2000 /* Link partner faulted */ +#define LPA_LPACK 0x4000 /* Link partner acked us */ +#define LPA_NPAGE 0x8000 /* Next page bit */ + +#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) +#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) + +/* Expansion register for auto-negotiation. */ +#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ +#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ +#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ +#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ +#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ +#define EXPANSION_RESV 0xffe0 /* Unused... */ + +#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ +#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ + +/* N-way test register. */ +#define NWAYTEST_RESV1 0x00ff /* Unused... */ +#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ +#define NWAYTEST_RESV2 0xfe00 /* Unused... */ + +/* 1000BASE-T Control register */ +#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ +#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ + +/* 1000BASE-T Status register */ +#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ +#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ +#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ + +#define SUPPORTED_10baseT_Half (1 << 0) +#define SUPPORTED_10baseT_Full (1 << 1) +#define SUPPORTED_100baseT_Half (1 << 2) +#define SUPPORTED_100baseT_Full (1 << 3) +#define SUPPORTED_1000baseT_Half (1 << 4) +#define SUPPORTED_1000baseT_Full (1 << 5) +#define SUPPORTED_Autoneg (1 << 6) +#define SUPPORTED_TP (1 << 7) +#define SUPPORTED_AUI (1 << 8) +#define SUPPORTED_MII (1 << 9) +#define SUPPORTED_FIBRE (1 << 10) +#define SUPPORTED_BNC (1 << 11) +#define SUPPORTED_10000baseT_Full (1 << 12) +#define SUPPORTED_Pause (1 << 13) +#define SUPPORTED_Asym_Pause (1 << 14) + + +/* Which connector port. */ +#define PORT_TP 0x00 +#define PORT_AUI 0x01 +#define PORT_MII 0x02 +#define PORT_FIBRE 0x03 +#define PORT_BNC 0x04 + +/* Which transceiver to use. */ +#define XCVR_INTERNAL 0x00 +#define XCVR_EXTERNAL 0x01 +#define XCVR_DUMMY1 0x02 +#define XCVR_DUMMY2 0x03 +#define XCVR_DUMMY3 0x04 + +#define AUTONEG_DISABLE 0x00 +#define AUTONEG_ENABLE 0x01 + + +#define SPEED_10 10 +#define SPEED_100 100 +#define SPEED_1000 1000 +#define SPEED_2500 2500 +#define SPEED_10000 10000 + +#define DUPLEX_HALF 0x00 +#define DUPLEX_FULL 0x01 + +struct ethtool_cmd { + u32 cmd; + u32 supported; /* Features this interface supports */ + u32 advertising; /* Features this interface advertises */ + u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */ + u8 duplex; /* Duplex, half or full */ + u8 port; /* Which connector port */ + u8 phy_address; + u8 transceiver; /* Which transceiver to use */ + u8 autoneg; /* Enable or disable autonegotiation */ + u32 maxtxpkt; /* Tx pkts before generating tx int */ + u32 maxrxpkt; /* Rx pkts before generating rx int */ + u32 reserved[4]; +}; + +struct mii_if_info { + int phy_id; + int advertising; + int phy_id_mask; + int reg_num_mask; + + unsigned int full_duplex : 1; /* is full duplex? */ + unsigned int force_media : 1; /* is autoneg. disabled? */ + unsigned int supports_gmii : 1; /* are GMII registers supported? */ + + struct synopGMACNetworkAdapter *dev; + int (*mdio_read) (struct synopGMACNetworkAdapter *dev, int phy_id, int location); + void (*mdio_write) (struct synopGMACNetworkAdapter *dev, int phy_id, int location, int val); +}; + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC.c b/bsp/loongson/ls2kdev/drivers/net/synopGMAC.c new file mode 100644 index 0000000000..22e51de712 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC.c @@ -0,0 +1,988 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + * 2020-08-10 lizhirui porting to ls2k + */ + +#include +#include +//#include + +#include "synopGMAC.h" +#include "mii.c" +#include "synopGMAC_debug.h" + +#define RMII + +#define PCI_BASE (0xFE00001800) +#define Buffer_Size 2048 +#define MAX_ADDR_LEN 6 +#define NAMESIZE 16 + +#define LS1B_GMAC0_IRQ 34 +#define BUS_SIZE_ALIGN(x) ((x+15)&~15) + +#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} + +u64 gmac_base = 0; +static u32 GMAC_Power_down; +extern void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) ; +extern s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) ; +extern int init_phy(synopGMACdevice *gmacdev); +dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, u32 size); + +void eth_rx_irq(int irqno, void *param); +static char Rx_Buffer[Buffer_Size]; +static char Tx_Buffer[Buffer_Size]; + +struct pci_header +{ + uint16_t VendorID; + uint16_t DeviceID; + uint16_t Command; + uint16_t Status; + uint32_t RevisionID : 8; + uint32_t ClassCode : 24; + uint8_t CachelineSize; + uint8_t LatencyTimer; + uint8_t HeaderType; + uint8_t BIST; + uint32_t BaseAddressRegister[6]; + uint32_t CardbusCISPointer; + uint16_t SubsystemVendorID; + uint16_t SubsystemID; + uint32_t ExpansionROMBaseAddress; + uint32_t CapabilitiesPointer : 8; + uint32_t resv1 : 24; + uint32_t resv2; + uint8_t InterruptLine; + uint8_t InterruptPin; + uint8_t Min_Gnt; + uint8_t Max_Lat; +}; + +struct rt_eth_dev +{ + struct eth_device parent; + rt_uint8_t dev_addr[MAX_ADDR_LEN]; + char *name; + int iobase; + int state; + int index; + struct rt_timer link_timer; + struct rt_timer rx_poll_timer; + void *priv; +}; +static struct rt_eth_dev eth_dev; +static struct rt_semaphore sem_ack, sem_lock; + +/** + * This sets up the transmit Descriptor queue in ring or chain mode. + * This function is tightly coupled to the platform and operating system + * Device is interested only after the descriptors are setup. Therefore this function + * is not included in the device driver API. This function should be treated as an + * example code to design the descriptor structures for ring mode or chain mode. + * This function depends on the pcidev structure for allocation consistent dma-able memory in case + * of linux. + * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory + * - Allocates the memory for the descriptors. + * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). + * - Initialize the Busy and Next descriptors to first descriptor address. + * - Initialize the last descriptor with the endof ring in case of ring mode. + * - Initialize the descriptors in chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] pointer to pci_device structure. + * @param[in] number of descriptor expected in tx descriptor queue. + * @param[in] whether descriptors to be created in RING mode or CHAIN mode. + * \return 0 upon success. Error code upon failure. + * \note This function fails if allocation fails for required number of descriptors in Ring mode, + * but in chain mode + * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from + * this function + * user should for gmacdev->TxDescCount to see how many descriptors are there in the chain. Should + * continue further + * only if the number of descriptors in the chain meets the requirements + */ +s32 synopGMAC_setup_tx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) +{ + s32 i; + DmaDesc *bf1; + + DmaDesc *first_desc = NULL; + + dma_addr_t dma_addr; + gmacdev->TxDescCount = 0; + + first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * (no_of_desc), &dma_addr); + + if (first_desc == NULL) + { + rt_kprintf("Error in Tx Descriptors memory allocation\n"); + return -ESYNOPGMACNOMEM; + } + + DEBUG_MES("tx_first_desc_addr = %p\n", first_desc); + DEBUG_MES("dmaadr = %p\n", dma_addr); + gmacdev->TxDescCount = no_of_desc; + gmacdev->TxDesc = first_desc; + gmacdev->TxDescDma = dma_addr; + + for (i = 0; i < gmacdev->TxDescCount; i++) + { + synopGMAC_tx_desc_init_ring(gmacdev->TxDesc + i, i == gmacdev->TxDescCount - 1); + +#if SYNOP_TOP_DEBUG + rt_kprintf("\n%02d %08x \n", i, (unsigned int)(gmacdev->TxDesc + i)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i))->status); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->length)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer1)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer2)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data1)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data2)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy1)); + rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy2)); +#endif + } + + gmacdev->TxNext = 0; + gmacdev->TxBusy = 0; + gmacdev->TxNextDesc = gmacdev->TxDesc; + gmacdev->TxBusyDesc = gmacdev->TxDesc; + gmacdev->BusyTxDesc = 0; + + return -ESYNOPGMACNOERR; +} + +/** + * This sets up the receive Descriptor queue in ring or chain mode. + * This function is tightly coupled to the platform and operating system + * Device is interested only after the descriptors are setup. Therefore this function + * is not included in the device driver API. This function should be treated as an + * example code to design the descriptor structures in ring mode or chain mode. + * This function depends on the pcidev structure for allocation of consistent dma-able memory in + * case of linux. + * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory + * - Allocates the memory for the descriptors. + * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). + * - Initialize the Busy and Next descriptors to first descriptor address. + * - Initialize the last descriptor with the endof ring in case of ring mode. + * - Initialize the descriptors in chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] pointer to pci_device structure. + * @param[in] number of descriptor expected in rx descriptor queue. + * @param[in] whether descriptors to be created in RING mode or CHAIN mode. + * \return 0 upon success. Error code upon failure. + * \note This function fails if allocation fails for required number of descriptors in Ring mode, + * but in chain mode + * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from + * this function + * user should for gmacdev->RxDescCount to see how many descriptors are there in the chain. Should + * continue further + * only if the number of descriptors in the chain meets the requirements + */ +s32 synopGMAC_setup_rx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) +{ + s32 i; + DmaDesc *bf1; + DmaDesc *first_desc = NULL; + + dma_addr_t dma_addr; + + gmacdev->RxDescCount = 0; + first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * no_of_desc, &dma_addr); + if (first_desc == NULL) + { + rt_kprintf("Error in Rx Descriptor Memory allocation in Ring mode\n"); + return -ESYNOPGMACNOMEM; + } + + DEBUG_MES("rx_first_desc_addr = %p\n", first_desc); + DEBUG_MES("dmaadr = %p\n", dma_addr); + gmacdev->RxDescCount = no_of_desc; + gmacdev->RxDesc = (DmaDesc *)first_desc; + gmacdev->RxDescDma = dma_addr; + + for (i = 0; i < gmacdev->RxDescCount; i++) + { + synopGMAC_rx_desc_init_ring(gmacdev->RxDesc + i, i == gmacdev->RxDescCount - 1); + } + + gmacdev->RxNext = 0; + gmacdev->RxBusy = 0; + gmacdev->RxNextDesc = gmacdev->RxDesc; + gmacdev->RxBusyDesc = gmacdev->RxDesc; + + gmacdev->BusyRxDesc = 0; + + return -ESYNOPGMACNOERR; +} + +void synopGMAC_linux_cable_unplug_function(void *adaptr) +{ + s32 data; + synopGMACPciNetworkAdapter *adapter = (synopGMACPciNetworkAdapter *)adaptr; + synopGMACdevice *gmacdev = adapter->synopGMACdev; + struct ethtool_cmd cmd; + + if (!mii_link_ok(&adapter->mii)) + { + if (gmacdev->LinkState) + rt_kprintf("\r\nNo Link\r\n"); + gmacdev->DuplexMode = 0; + gmacdev->Speed = 0; + gmacdev->LoopBackMode = 0; + gmacdev->LinkState = 0; + } + else + { + data = synopGMAC_check_phy_init(adapter); + + if (gmacdev->LinkState != data) + { + gmacdev->LinkState = data; + synopGMAC_mac_init(gmacdev); + rt_kprintf("Link is up in %s mode\n", (gmacdev->DuplexMode == FULLDUPLEX) ? "FULL DUPLEX" : "HALF DUPLEX"); + if (gmacdev->Speed == SPEED1000) + rt_kprintf("Link is with 1000M Speed \r\n"); + if (gmacdev->Speed == SPEED100) + rt_kprintf("Link is with 100M Speed \n"); + if (gmacdev->Speed == SPEED10) + rt_kprintf("Link is with 10M Speed \n"); + } + } +} + +s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) +{ + struct ethtool_cmd cmd; + synopGMACdevice *gmacdev = adapter->synopGMACdev; + + if (!mii_link_ok(&adapter->mii)) + { + gmacdev->DuplexMode = FULLDUPLEX; + gmacdev->Speed = SPEED100; + + return 0; + } + else + { + mii_ethtool_gset(&adapter->mii, &cmd); + + gmacdev->DuplexMode = (cmd.duplex == DUPLEX_FULL) ? FULLDUPLEX : HALFDUPLEX ; + if (cmd.speed == SPEED_1000) + gmacdev->Speed = SPEED1000; + else if (cmd.speed == SPEED_100) + gmacdev->Speed = SPEED100; + else + gmacdev->Speed = SPEED10; + } + + return gmacdev->Speed | (gmacdev->DuplexMode << 4); +} + +static int Mac_change_check(u8 *macaddr0, u8 *macaddr1) +{ + int i; + for (i = 0; i < 6; i++) + { + if (macaddr0[i] != macaddr1[i]) + return 1; + } + return 0; +} + +static rt_err_t eth_init(rt_device_t device) +{ + struct eth_device *eth_device = (struct eth_device *)device; + RT_ASSERT(eth_device != RT_NULL); + + s32 ijk; + s32 status = 0; + u64 dma_addr; + u32 Mac_changed = 0; + struct pbuf *pbuf; + u8 macaddr[6] = DEFAULT_MAC_ADDRESS; + struct rt_eth_dev *dev = ð_dev; + struct synopGMACNetworkAdapter *adapter = dev->priv; + synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; + + synopGMAC_reset(gmacdev); + synopGMAC_attach(gmacdev, (gmac_base + MACBASE), (gmac_base + DMABASE), DEFAULT_PHY_BASE, macaddr); + + synopGMAC_read_version(gmacdev); + + synopGMAC_set_mdc_clk_div(gmacdev, GmiiCsrClk3); + gmacdev->ClockDivMdc = synopGMAC_get_mdc_clk_div(gmacdev); + + init_phy(adapter->synopGMACdev); + + DEBUG_MES("tx desc_queue\n"); + synopGMAC_setup_tx_desc_queue(gmacdev, TRANSMIT_DESC_SIZE, RINGMODE); + synopGMAC_init_tx_desc_base(gmacdev); + + DEBUG_MES("rx desc_queue\n"); + synopGMAC_setup_rx_desc_queue(gmacdev, RECEIVE_DESC_SIZE, RINGMODE); + synopGMAC_init_rx_desc_base(gmacdev); + DEBUG_MES("DmaRxBaseAddr = %08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxBaseAddr)); + +// u32 dmaRx_Base_addr = synopGMACReadReg(gmacdev->DmaBase,DmaRxBaseAddr); +// rt_kprintf("first_desc_addr = 0x%x\n", dmaRx_Base_addr); + +#ifdef ENH_DESC_8W + synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength32 | DmaDescriptorSkip2 | DmaDescriptor8Words); +#else + synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip1); + //synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip2); +#endif + synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward | DmaTxSecondFrame | DmaRxThreshCtrl128); + + status = synopGMAC_check_phy_init(adapter); + synopGMAC_mac_init(gmacdev); + + synopGMAC_pause_control(gmacdev); + +#ifdef IPC_OFFLOAD + synopGMAC_enable_rx_chksum_offload(gmacdev); + synopGMAC_rx_tcpip_chksum_drop_enable(gmacdev); +#endif + + u64 skb; + do + { + skb = (u64)plat_alloc_memory(RX_BUF_SIZE); //should skb aligned here? + if (skb == RT_NULL) + { + rt_kprintf("ERROR in skb buffer allocation\n"); + break; + } + + dma_addr = plat_dma_map_single(gmacdev, (void *)skb, RX_BUF_SIZE); //获取 skb 的 dma 地址 + + status = synopGMAC_set_rx_qptr(gmacdev, dma_addr, RX_BUF_SIZE, (u64)skb, 0, 0, 0); + if (status < 0) + { + rt_kprintf("status < 0!!\n"); + plat_free_memory((void *)skb); + } + } + while (status >= 0 && (status < (RECEIVE_DESC_SIZE - 1))); + synopGMAC_clear_interrupt(gmacdev); + + synopGMAC_disable_mmc_tx_interrupt(gmacdev, 0xFFFFFFFF); + synopGMAC_disable_mmc_rx_interrupt(gmacdev, 0xFFFFFFFF); + synopGMAC_disable_mmc_ipc_rx_interrupt(gmacdev, 0xFFFFFFFF); + +// synopGMAC_disable_interrupt_all(gmacdev); + synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); + synopGMAC_enable_dma_rx(gmacdev); + synopGMAC_enable_dma_tx(gmacdev); + + plat_delay(DEFAULT_LOOP_VARIABLE); + synopGMAC_check_phy_init(adapter); + synopGMAC_mac_init(gmacdev); + + rt_timer_init(&dev->link_timer, "link_timer", + synopGMAC_linux_cable_unplug_function, + (void *)adapter, + RT_TICK_PER_SECOND, + RT_TIMER_FLAG_PERIODIC); + + rt_timer_start(&dev->link_timer); +#ifdef RT_USING_GMAC_INT_MODE + /* installl isr */ + DEBUG_MES("%s\n", __FUNCTION__); + rt_hw_interrupt_install(LS1C_MAC_IRQ, eth_rx_irq, RT_NULL, "e0_isr"); + rt_hw_interrupt_umask(LS1C_MAC_IRQ); +#else + rt_timer_init(&dev->rx_poll_timer, "rx_poll_timer", + eth_rx_irq, + (void *)adapter, + 1, + RT_TIMER_FLAG_PERIODIC); + + rt_timer_start(&dev->rx_poll_timer); +#endif /*RT_USING_GMAC_INT_MODE*/ + + return RT_EOK; +} + +static rt_err_t eth_open(rt_device_t dev, rt_uint16_t oflag) +{ + rt_kprintf("eth_open!!\n"); + + return RT_EOK; +} + +static rt_err_t eth_close(rt_device_t dev) +{ + return RT_EOK; +} + +static rt_size_t eth_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_size_t eth_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_err_t eth_control(rt_device_t dev, int cmd, void *args) +{ + switch (cmd) + { + case NIOCTL_GADDR: + if (args) rt_memcpy(args, eth_dev.dev_addr, 6); + else return -RT_ERROR; + break; + + default : + break; + } + return RT_EOK; +} + +rt_err_t rt_eth_tx(rt_device_t device, struct pbuf *p) +{ + /* lock eth device */ + rt_sem_take(&sem_lock, RT_WAITING_FOREVER); + + DEBUG_MES("in %s\n", __FUNCTION__); + + s32 status; + u64 pbuf; + u64 dma_addr; + u32 offload_needed = 0; + u32 index; + DmaDesc *dpr; + struct rt_eth_dev *dev = (struct rt_eth_dev *) device; + struct synopGMACNetworkAdapter *adapter; + synopGMACdevice *gmacdev; + adapter = (struct synopGMACNetworkAdapter *) dev->priv; + if (adapter == NULL) + return -1; + + gmacdev = (synopGMACdevice *) adapter->synopGMACdev; + if (gmacdev == NULL) + return -1; + + if (!synopGMAC_is_desc_owned_by_dma(gmacdev->TxNextDesc)) + { + + pbuf = (u64)plat_alloc_memory(p->tot_len); + //pbuf = (u32)pbuf_alloc(PBUF_LINK, p->len, PBUF_RAM); + if (pbuf == 0) + { + rt_kprintf("===error in alloc bf1\n"); + return -1; + } + + DEBUG_MES("p->len = %d\n", p->len); + pbuf_copy_partial(p, (void *)pbuf, p->tot_len, 0); + dma_addr = plat_dma_map_single(gmacdev, (void *)pbuf, p->tot_len); + + status = synopGMAC_set_tx_qptr(gmacdev, dma_addr, p->tot_len, pbuf, 0, 0, 0, offload_needed, &index, dpr); + + if (status < 0) + { + rt_kprintf("%s No More Free Tx Descriptors\n", __FUNCTION__); + + plat_free_memory((void *)pbuf); + return -16; + } + } + + synopGMAC_resume_dma_tx(gmacdev); + + + s32 desc_index; + u64 data1, data2; + u32 dma_addr1, dma_addr2; + u32 length1, length2; +#ifdef ENH_DESC_8W + u32 ext_status; + u16 time_stamp_higher; + u32 time_stamp_high; + u32 time_stamp_low; +#endif + do + { +#ifdef ENH_DESC_8W + desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2, &ext_status, &time_stamp_high, &time_stamp_low); + synopGMAC_TS_read_timestamp_higher_val(gmacdev, &time_stamp_higher); +#else + desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2); +#endif + if (desc_index >= 0 && data1 != 0) + { +#ifdef IPC_OFFLOAD + if (synopGMAC_is_tx_ipv4header_checksum_error(gmacdev, status)) + { + rt_kprintf("Harware Failed to Insert IPV4 Header Checksum\n"); + } + if (synopGMAC_is_tx_payload_checksum_error(gmacdev, status)) + { + rt_kprintf("Harware Failed to Insert Payload Checksum\n"); + } +#endif + + plat_free_memory((void *)(data1)); //sw: data1 = buffer1 + + if (synopGMAC_is_desc_valid(status)) + { + adapter->synopGMACNetStats.tx_bytes += length1; + adapter->synopGMACNetStats.tx_packets++; + } + else + { + adapter->synopGMACNetStats.tx_errors++; + adapter->synopGMACNetStats.tx_aborted_errors += synopGMAC_is_tx_aborted(status); + adapter->synopGMACNetStats.tx_carrier_errors += synopGMAC_is_tx_carrier_error(status); + } + } + + adapter->synopGMACNetStats.collisions += synopGMAC_get_tx_collision_count(status); + } + while (desc_index >= 0); + + /* unlock eth device */ + rt_sem_release(&sem_lock); +// rt_kprintf("output %d bytes\n", p->len); + u32 test_data; + test_data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + //rt_kprintf("dma_status = 0x%08x\n",test_data); + + return RT_EOK; +} + +struct pbuf *rt_eth_rx(rt_device_t device) +{ + DEBUG_MES("%s : \n", __FUNCTION__); + struct rt_eth_dev *dev = ð_dev; + struct synopGMACNetworkAdapter *adapter; + synopGMACdevice *gmacdev; +// struct PmonInet * pinetdev; + s32 desc_index; + int i; + char *ptr; + u32 bf1; + u64 data1; + u64 data2; + u32 len; + u32 status; + u32 dma_addr1; + u32 dma_addr2; + struct pbuf *pbuf = RT_NULL; + rt_sem_take(&sem_lock, RT_WAITING_FOREVER); + + adapter = (struct synopGMACNetworkAdapter *) dev->priv; + if (adapter == NULL) + { + rt_kprintf("%S : Unknown Device !!\n", __FUNCTION__); + return NULL; + } + + gmacdev = (synopGMACdevice *) adapter->synopGMACdev; + if (gmacdev == NULL) + { + rt_kprintf("%s : GMAC device structure is missing\n", __FUNCTION__); + return NULL; + } + + /*Handle the Receive Descriptors*/ + desc_index = synopGMAC_get_rx_qptr(gmacdev, &status, &dma_addr1, NULL, &data1, &dma_addr2, NULL, &data2); + + if (((u32)desc_index >= RECEIVE_DESC_SIZE) && (desc_index != -1)) + { + rt_kprintf("host receive descriptor address pointer = 0x%08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxCurrDesc)); + rt_kprintf("host receive buffer = 0x%08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxCurrAddr)); + rt_kprintf("desc_index error!!!!,tick = %d\n", rt_tick_get()); + while (1); + } + + if (desc_index >= 0 && data1 != 0) + { + DEBUG_MES("Received Data at Rx Descriptor %d for skb 0x%08x whose status is %08x\n", desc_index, dma_addr1, status); + + if (synopGMAC_is_rx_desc_valid(status) || SYNOP_PHY_LOOPBACK) + { + dma_addr1 = plat_dma_map_single(gmacdev, (void *)data1, RX_BUF_SIZE); + len = synopGMAC_get_rx_desc_frame_length(status) - 4; //Not interested in Ethernet CRC bytes + pbuf = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); + if (pbuf == 0) rt_kprintf("===error in pbuf_alloc\n"); + rt_memcpy(pbuf->payload, (char *)data1, len); + DEBUG_MES("==get pkg len: %d\n", len); + } + else + { + rt_kprintf("s: %08x\n", status); + adapter->synopGMACNetStats.rx_errors++; + adapter->synopGMACNetStats.collisions += synopGMAC_is_rx_frame_collision(status); + adapter->synopGMACNetStats.rx_crc_errors += synopGMAC_is_rx_crc(status); + adapter->synopGMACNetStats.rx_frame_errors += synopGMAC_is_frame_dribbling_errors(status); + adapter->synopGMACNetStats.rx_length_errors += synopGMAC_is_rx_frame_length_errors(status); + } + desc_index = synopGMAC_set_rx_qptr(gmacdev, dma_addr1, RX_BUF_SIZE, (u64)data1, 0, 0, 0); + if (desc_index < 0) + { +#if SYNOP_RX_DEBUG + rt_kprintf("Cannot set Rx Descriptor for data1 %08x\n", (u32)data1); +#endif + + plat_free_memory((void *)data1); + } + } + rt_sem_release(&sem_lock); + DEBUG_MES("%s : before return \n", __FUNCTION__); + return pbuf; +} + +static int rtl88e1111_config_init(synopGMACdevice *gmacdev) +{ + int retval, err; + u16 data; + + DEBUG_MES("in %s\n", __FUNCTION__); + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); + data = data | 0x82; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, &data); + data = data | 0x8000; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); +#if SYNOP_PHY_LOOPBACK + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); + data = data | 0x70; + data = data & 0xffdf; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); + data = 0x8000; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); + data = 0x5140; + err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); +#endif + if (err < 0) + return err; + return 0; +} + +int init_phy(synopGMACdevice *gmacdev) +{ + u16 data; + + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 2, &data); + /*set 88e1111 clock phase delay*/ + if (data == 0x141) + rtl88e1111_config_init(gmacdev); +#if defined (RMII) + else if (data == 0x8201) + { + //RTL8201 + data = 0x400; // set RMII mode + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, data); + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, &data); + TR("phy reg25 is %0x \n", data); + + data = 0x3100; //set 100M speed + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); + } + else if (data == 0x0180 || data == 0x0181) + { + //DM9161 + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); + data |= (1 << 8); //set RMII mode + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, data); //set RMII mode + synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); + TR("phy reg16 is 0x%0x \n", data); + + // synopGMAC_read_phy_reg(gmacdev->MacBase,gmacdev->PhyBase,0x0,&data); + // data &= ~(1<<10); + data = 0x3100; //set auto- + //data = 0x0100; //set 10M speed + synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); + } +#endif + + return 0; +} + +u32 synopGMAC_wakeup_filter_config3[] = +{ + 0x00000000, + 0x000000FF, + 0x00000000, + 0x00000000, + 0x00000100, + 0x00003200, + 0x7eED0000, + 0x00000000 +}; + +static void synopGMAC_linux_powerdown_mac(synopGMACdevice *gmacdev) +{ + rt_kprintf("Put the GMAC to power down mode..\n"); + + GMAC_Power_down = 1; + + synopGMAC_disable_dma_tx(gmacdev); + plat_delay(10000); + + synopGMAC_tx_disable(gmacdev); + synopGMAC_rx_disable(gmacdev); + plat_delay(10000); + + synopGMAC_disable_dma_rx(gmacdev); + + synopGMAC_magic_packet_enable(gmacdev); + synopGMAC_write_wakeup_frame_register(gmacdev, synopGMAC_wakeup_filter_config3); + + synopGMAC_wakeup_frame_enable(gmacdev); + + synopGMAC_rx_enable(gmacdev); + + synopGMAC_pmt_int_enable(gmacdev); + + synopGMAC_power_down_enable(gmacdev); + return; +} + +static void synopGMAC_linux_powerup_mac(synopGMACdevice *gmacdev) +{ + GMAC_Power_down = 0; + if (synopGMAC_is_magic_packet_received(gmacdev)) + rt_kprintf("GMAC wokeup due to Magic Pkt Received\n"); + if (synopGMAC_is_wakeup_frame_received(gmacdev)) + rt_kprintf("GMAC wokeup due to Wakeup Frame Received\n"); + + synopGMAC_pmt_int_disable(gmacdev); + + synopGMAC_rx_enable(gmacdev); + synopGMAC_enable_dma_rx(gmacdev); + + synopGMAC_tx_enable(gmacdev); + synopGMAC_enable_dma_tx(gmacdev); + return; +} + + +static int mdio_read(synopGMACPciNetworkAdapter *adapter, int addr, int reg) +{ + synopGMACdevice *gmacdev; + u16 data; + gmacdev = adapter->synopGMACdev; + + synopGMAC_read_phy_reg(gmacdev->MacBase, addr, reg, &data); + return data; +} + +static void mdio_write(synopGMACPciNetworkAdapter *adapter, int addr, int reg, int data) +{ + synopGMACdevice *gmacdev; + gmacdev = adapter->synopGMACdev; + synopGMAC_write_phy_reg(gmacdev->MacBase, addr, reg, data); +} + +void eth_rx_irq(int irqno, void *param) +{ + struct rt_eth_dev *dev = ð_dev; + struct synopGMACNetworkAdapter *adapter = dev->priv; + //DEBUG_MES("in irq!!\n"); +#ifdef RT_USING_GMAC_INT_MODE + int i ; + for (i = 0; i < 7200; i++) + ; +#endif /*RT_USING_GMAC_INT_MODE*/ + synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; + + u32 interrupt, dma_status_reg; + s32 status; + u32 dma_addr; + + //rt_kprintf("irq i = %d\n", i++); + dma_status_reg = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + if (dma_status_reg == 0) + { + rt_kprintf("dma_status ==0 \n"); + return; + } + + //rt_kprintf("dma_status_reg is 0x%x\n", dma_status_reg); + u32 gmacstatus; + synopGMAC_disable_interrupt_all(gmacdev); + gmacstatus = synopGMACReadReg(gmacdev->MacBase, GmacStatus); + + if (dma_status_reg & GmacPmtIntr) + { + rt_kprintf("%s:: Interrupt due to PMT module\n", __FUNCTION__); + //synopGMAC_linux_powerup_mac(gmacdev); + } + if (dma_status_reg & GmacMmcIntr) + { + rt_kprintf("%s:: Interrupt due to MMC module\n", __FUNCTION__); + DEBUG_MES("%s:: synopGMAC_rx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_rx_int_status(gmacdev)); + DEBUG_MES("%s:: synopGMAC_tx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_tx_int_status(gmacdev)); + } + + if (dma_status_reg & GmacLineIntfIntr) + { + //rt_kprintf("%s:: Interrupt due to GMAC LINE module\n", __FUNCTION__); + } + + interrupt = synopGMAC_get_interrupt_type(gmacdev); + //rt_kprintf("%s:Interrupts to be handled: 0x%08x\n",__FUNCTION__,interrupt); + if (interrupt & synopGMACDmaError) + { + u8 mac_addr0[6]; + rt_kprintf("%s::Fatal Bus Error Inetrrupt Seen\n", __FUNCTION__); + + memcpy(mac_addr0, dev->dev_addr, 6); + synopGMAC_disable_dma_tx(gmacdev); + synopGMAC_disable_dma_rx(gmacdev); + + synopGMAC_take_desc_ownership_tx(gmacdev); + synopGMAC_take_desc_ownership_rx(gmacdev); + + synopGMAC_init_tx_rx_desc_queue(gmacdev); + + synopGMAC_reset(gmacdev); + + synopGMAC_set_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr0); + synopGMAC_dma_bus_mode_init(gmacdev, DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip1); + synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward); + synopGMAC_init_rx_desc_base(gmacdev); + synopGMAC_init_tx_desc_base(gmacdev); + synopGMAC_mac_init(gmacdev); + synopGMAC_enable_dma_rx(gmacdev); + synopGMAC_enable_dma_tx(gmacdev); + + } + if (interrupt & synopGMACDmaRxNormal) + { + //DEBUG_MES("%s:: Rx Normal \n", __FUNCTION__); + //synop_handle_received_data(netdev); + eth_device_ready(ð_dev.parent); + } + if (interrupt & synopGMACDmaRxAbnormal) + { + //rt_kprintf("%s::Abnormal Rx Interrupt Seen\n",__FUNCTION__); + if (GMAC_Power_down == 0) + { + adapter->synopGMACNetStats.rx_over_errors++; + synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, 0x80); + synopGMAC_resume_dma_rx(gmacdev); + } + } + if (interrupt & synopGMACDmaRxStopped) + { + rt_kprintf("%s::Receiver stopped seeing Rx interrupts\n", __FUNCTION__); //Receiver gone in to stopped state + } + + if (interrupt & synopGMACDmaTxNormal) + { + DEBUG_MES("%s::Finished Normal Transmission \n", __FUNCTION__); + // synop_handle_transmit_over(netdev); + } + + if (interrupt & synopGMACDmaTxAbnormal) + { + rt_kprintf("%s::Abnormal Tx Interrupt Seen\n", __FUNCTION__); + } + if (interrupt & synopGMACDmaTxStopped) + { + TR("%s::Transmitter stopped sending the packets\n", __FUNCTION__); + if (GMAC_Power_down == 0) // If Mac is not in powerdown + { + synopGMAC_disable_dma_tx(gmacdev); + synopGMAC_take_desc_ownership_tx(gmacdev); + + synopGMAC_enable_dma_tx(gmacdev); + // netif_wake_queue(netdev); + TR("%s::Transmission Resumed\n", __FUNCTION__); + } + } + /* Enable the interrrupt before returning from ISR*/ + synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); + + return; +} + +int rt_hw_eth_init(void) +{ + struct pci_header *p = (struct pci_header *)(0x9000000000000000 | PCI_BASE); + gmac_base = (0x9000000000000000 | ((p->BaseAddressRegister[0]) & 0xffffff00)); + + struct synopGMACNetworkAdapter *synopGMACadapter; + static u8 mac_addr0[6] = DEFAULT_MAC_ADDRESS; + int index; + rt_sem_init(&sem_ack, "tx_ack", 1, RT_IPC_FLAG_FIFO); + rt_sem_init(&sem_lock, "eth_lock", 1, RT_IPC_FLAG_FIFO); + + memset(ð_dev, 0, sizeof(eth_dev)); + synopGMACadapter = (struct synopGMACNetworkAdapter *)plat_alloc_memory(sizeof(struct synopGMACNetworkAdapter)); + if (!synopGMACadapter) + { + rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); + } + memset((char *)synopGMACadapter, 0, sizeof(struct synopGMACNetworkAdapter)); + + synopGMACadapter->synopGMACdev = NULL; + + synopGMACadapter->synopGMACdev = (synopGMACdevice *) plat_alloc_memory(sizeof(synopGMACdevice)); + if (!synopGMACadapter->synopGMACdev) + { + rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); + } + + memset((char *)synopGMACadapter->synopGMACdev, 0, sizeof(synopGMACdevice)); + + /* + * Attach the device to MAC struct This will configure all the required base addresses + * such as Mac base, configuration base, phy base address(out of 32 possible phys) + * */ + synopGMAC_attach(synopGMACadapter->synopGMACdev, (gmac_base + MACBASE), gmac_base + DMABASE, DEFAULT_PHY_BASE, mac_addr0); + + init_phy(synopGMACadapter->synopGMACdev); + synopGMAC_reset(synopGMACadapter->synopGMACdev); + + /* MII setup */ + synopGMACadapter->mii.phy_id_mask = 0x1F; + synopGMACadapter->mii.reg_num_mask = 0x1F; + synopGMACadapter->mii.dev = synopGMACadapter; + synopGMACadapter->mii.mdio_read = mdio_read; + synopGMACadapter->mii.mdio_write = mdio_write; + synopGMACadapter->mii.phy_id = synopGMACadapter->synopGMACdev->PhyBase; + synopGMACadapter->mii.supports_gmii = mii_check_gmii_support(&synopGMACadapter->mii); + + eth_dev.iobase = gmac_base; + eth_dev.name = "e0"; + eth_dev.priv = synopGMACadapter; + eth_dev.dev_addr[0] = mac_addr0[0]; + eth_dev.dev_addr[1] = mac_addr0[1]; + eth_dev.dev_addr[2] = mac_addr0[2]; + eth_dev.dev_addr[3] = mac_addr0[3]; + eth_dev.dev_addr[4] = mac_addr0[4]; + eth_dev.dev_addr[5] = mac_addr0[5]; + + eth_dev.parent.parent.type = RT_Device_Class_NetIf; + eth_dev.parent.parent.init = eth_init; + eth_dev.parent.parent.open = eth_open; + eth_dev.parent.parent.close = eth_close; + eth_dev.parent.parent.read = eth_read; + eth_dev.parent.parent.write = eth_write; + eth_dev.parent.parent.control = eth_control; + eth_dev.parent.parent.user_data = RT_NULL; + + eth_dev.parent.eth_tx = rt_eth_tx; + eth_dev.parent.eth_rx = rt_eth_rx; + + eth_device_init(&(eth_dev.parent), "e0"); + eth_device_linkchange(ð_dev.parent, RT_TRUE); //linkup the e0 for lwip to check + return 0; +} +INIT_COMPONENT_EXPORT(rt_hw_eth_init); diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC.h new file mode 100644 index 0000000000..a1369ae00f --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + +#ifndef __SYNOPGMAC__H +#define __SYNOPGMAC__H + +#include "synopGMAC_network_interface.h" +#include "synopGMAC_Host.h" +#include "synopGMAC_Dev.h" +#include "synopGMAC_plat.h" +#include "mii.h" +#include "synopGMAC_types.h" + +int rt_hw_eth_init(void); + +#endif /*__SYNOPGMAC__H*/ diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.c b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.c new file mode 100644 index 0000000000..e6fea9f2ec --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.c @@ -0,0 +1,3750 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + * 2020-08-10 lizhirui porting to ls2k + */ + +#include "synopGMAC_Dev.h" +#include +#include + +#define UNUSED 1 + +/** + * Function to set the MDC clock for mdio transactiona + * + * @param[in] pointer to device structure. + * @param[in] clk divider value. + * \return Reuturns 0 on success else return the error value. + */ +s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev, u32 clk_div_val) +{ + u32 orig_data; + orig_data = synopGMACReadReg(gmacdev -> MacBase, GmacGmiiAddr); //set the mdc clock to the user defined value + orig_data &= (~GmiiCsrClkMask); + orig_data |= clk_div_val; + synopGMACWriteReg(gmacdev -> MacBase, GmacGmiiAddr, orig_data); + return 0; +} + +/** + * Returns the current MDC divider value programmed in the ip. + * + * @param[in] pointer to device structure. + * @param[in] clk divider value. + * \return Returns the MDC divider value read. + */ +u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase, GmacGmiiAddr); + data &= GmiiCsrClkMask; + return data; +} + + +/** + * Function to read the Phy register. The access to phy register + * is a slow process as the data is moved accross MDI/MDO interface + * @param[in] pointer to Register Base (It is the mac base in our case) . + * @param[in] PhyBase register is the index of one of supported 32 PHY devices. + * @param[in] Register offset is the index of one of the 32 phy register. + * @param[out] u16 data read from the respective phy register (only valid iff return value is 0). + * \return Returns 0 on success else return the error status. + */ +s32 synopGMAC_read_phy_reg(u64 RegBase, u32 PhyBase, u32 RegOffset, u16 *data) +{ + u64 addr; + u32 loop_variable; + addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) + | GmiiCsrClk3; //sw: add GmiiCsrClk + addr = addr | GmiiBusy ; //Gmii busy bit + + synopGMACWriteReg(RegBase, GmacGmiiAddr, addr); + //write the address from where the data to be read in GmiiGmiiAddr register of synopGMAC ip + + for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) + { + //Wait till the busy bit gets cleared within a certain amount of time + if (!(synopGMACReadReg(RegBase, GmacGmiiAddr) & GmiiBusy)) + { + break; + } + + plat_delay(DEFAULT_DELAY_VARIABLE); + } + + if (loop_variable < DEFAULT_LOOP_VARIABLE) + { + *data = (u16)(synopGMACReadReg(RegBase, GmacGmiiData) & 0xFFFF); + } + else + { + TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } + //sw +#if SYNOP_REG_DEBUG + printf("read phy reg: offset = 0x%x\tdata = 0x%x\n", RegOffset, *data); +#endif + + return -ESYNOPGMACNOERR; +} + +/** + * Function to write to the Phy register. The access to phy register + * is a slow process as the data is moved accross MDI/MDO interface + * @param[in] pointer to Register Base (It is the mac base in our case) . + * @param[in] PhyBase register is the index of one of supported 32 PHY devices. + * @param[in] Register offset is the index of one of the 32 phy register. + * @param[in] data to be written to the respective phy register. + * \return Returns 0 on success else return the error status. + */ +s32 synopGMAC_write_phy_reg(u64 RegBase, u32 PhyBase, u32 RegOffset, u16 data) +{ + u32 addr; + u32 loop_variable; + + synopGMACWriteReg(RegBase, GmacGmiiData, data); // write the data in to GmacGmiiData register of synopGMAC ip + + addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) | GmiiWrite | GmiiCsrClk3; //sw: add GmiiCsrclk + + addr = addr | GmiiBusy ; //set Gmii clk to 20-35 Mhz and Gmii busy bit + + synopGMACWriteReg(RegBase, GmacGmiiAddr, addr); + for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) + { + if (!(synopGMACReadReg(RegBase, GmacGmiiAddr) & GmiiBusy)) + { + break; + } + + plat_delay(DEFAULT_DELAY_VARIABLE); + } + + if (loop_variable < DEFAULT_LOOP_VARIABLE) + { + return -ESYNOPGMACNOERR; + } + else + { + TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } +#if SYNOP_REG_DEBUG + printf("write phy reg: offset = 0x%x\tdata = 0x%x", RegOffset, data); +#endif +} + +/** + * Function to configure the phy in loopback mode. + * + * @param[in] pointer to synopGMACdevice. + * @param[in] enable or disable the loopback. + * \return 0 on success else return the error status. + * \note Don't get confused with mac loop-back synopGMAC_loopback_on(synopGMACdevice *) + * and synopGMAC_loopback_off(synopGMACdevice *) functions. + */ +#if UNUSED +s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback) +{ + s32 status = -ESYNOPGMACNOERR; + u16 temp; + + status = synopGMAC_read_phy_reg(gmacdev -> MacBase, gmacdev -> PhyBase, PHY_CONTROL_REG, &temp); + + if (loopback) + { + temp |= 0x4000; + } + else + { + temp = temp; + } + + status = synopGMAC_write_phy_reg(gmacdev -> MacBase, gmacdev -> PhyBase, PHY_CONTROL_REG, temp); + return status; +} + +#endif + +/** + * Function to read the GMAC IP Version and populates the same in device data structure. + * @param[in] pointer to synopGMACdevice. + * \return Always return 0. + */ + +s32 synopGMAC_read_version(synopGMACdevice *gmacdev) +{ + u32 data = 0; + data = synopGMACReadReg(gmacdev -> MacBase, GmacVersion); + gmacdev -> Version = data; + return 0; +} + + +/** + * Function to reset the GMAC core. + * This reests the DMA and GMAC core. After reset all the registers holds their respective reset value + * @param[in] pointer to synopGMACdevice. + * \return 0 on success else return the error status. + */ +s32 synopGMAC_reset(synopGMACdevice *gmacdev) +{ + u32 data = 0; + synopGMACWriteReg(gmacdev -> DmaBase, DmaBusMode, DmaResetOn); + plat_delay(DEFAULT_LOOP_VARIABLE); + data = synopGMACReadReg(gmacdev -> DmaBase, DmaBusMode); + TR("DATA after Reset = %08x\n", data); + + return 0; +} + + +/** + * Function to program DMA bus mode register. + * + * The Bus Mode register is programmed with the value given. The bits to be set are + * bit wise or'ed and sent as the second argument to this function. + * @param[in] pointer to synopGMACdevice. + * @param[in] the data to be programmed. + * \return 0 on success else return the error status. + */ +s32 synopGMAC_dma_bus_mode_init(synopGMACdevice *gmacdev, u32 init_value) +{ + synopGMACWriteReg(gmacdev -> DmaBase, DmaBusMode, init_value); + return 0; +} + +/** + * Function to program DMA Control register(Operation Mode Register 0x18). + * + * The Dma Control register is programmed with the value given. The bits to be set are + * bit wise or'ed and sent as the second argument to this function. + * @param[in] pointer to synopGMACdevice. + * @param[in] the data to be programmed. + * \return 0 on success else return the error status. + */ +s32 synopGMAC_dma_control_init(synopGMACdevice *gmacdev, u32 init_value) +{ + synopGMACWriteReg(gmacdev -> DmaBase, DmaControl, init_value); + return 0; +} + + +/*Gmac configuration functions*/ + +/** + * Enable the watchdog timer on the receiver. + * When enabled, Gmac enables Watchdog timer, and GMAC allows no more than + * 2048 bytes of data (10,240 if Jumbo frame enabled). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_wd_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacWatchdog); + return; +} +/** + * Disable the watchdog timer on the receiver. + * When disabled, Gmac disabled watchdog timer, and can receive frames up to + * 16,384 bytes. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ + +void synopGMAC_wd_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacWatchdog); + return; +} + +/** + * Enables the Jabber frame support. + * When enabled, GMAC disabled the jabber timer, and can transfer 16,384 byte frames. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_jab_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacJabber); + return; +} +/** + * Disables the Jabber frame support. + * When disabled, GMAC enables jabber timer. It cuts of transmitter if application + * sends more than 2048 bytes of data (10240 if Jumbo frame enabled). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_jab_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacJabber); + return; +} +#endif + +/** + * Enables Frame bursting (Only in Half Duplex Mode). + * When enabled, GMAC allows frame bursting in GMII Half Duplex mode. + * Reserved in 10/100 and Full-Duplex configurations. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_frame_burst_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFrameBurst); + return; +} +/** + * Disables Frame bursting. + * When Disabled, frame bursting is not supported. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_frame_burst_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacFrameBurst); + return; +} +#endif + +/** + * Enable Jumbo frame support. + * When Enabled GMAC supports jumbo frames of 9018/9022(VLAN tagged). + * Giant frame error is not reported in receive frame status. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_jumbo_frame_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacJumboFrame); + return; +} +#endif +/** + * Disable Jumbo frame support. + * When Disabled GMAC does not supports jumbo frames. + * Giant frame error is reported in receive frame status. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_jumbo_frame_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacJumboFrame); + return; +} + +/** + * Disable Carrier sense. + * When Disabled GMAC ignores CRS signal during frame transmission + * in half duplex mode. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ + +#if UNUSED +void synopGMAC_disable_crs(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacDisableCrs); + return; +} +#endif + + + +/** + * Selects the GMII port. + * When called GMII (1000Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_select_gmii(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacMiiGmii); + return; +} +/** + * Selects the MII port. + * When called MII (10/100Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_select_mii(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacMiiGmii); + return; +} + +/** + * Enables Receive Own bit (Only in Half Duplex Mode). + * When enaled GMAC receives all the packets given by phy while transmitting. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_own_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacRxOwn); + return; +} +/** + * Disables Receive Own bit (Only in Half Duplex Mode). + * When enaled GMAC disables the reception of frames when gmii_txen_o is asserted. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_rx_own_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacRxOwn); + return; +} +#endif + +/** + * Sets the GMAC in loopback mode. + * When on GMAC operates in loop-back mode at GMII/MII. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note (G)MII Receive clock is required for loopback to work properly, as transmit clock is + * not looped back internally. + */ +void synopGMAC_loopback_on(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacLoopback); + return; +} +/** + * Sets the GMAC in Normal mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_loopback_off(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacLoopback); + return; +} + +/** + * Sets the GMAC core in Full-Duplex mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_set_full_duplex(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacDuplex); + return; +} +/** + * Sets the GMAC core in Half-Duplex mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_set_half_duplex(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacDuplex); + return; +} + +/** + * GMAC tries retransmission (Only in Half Duplex mode). + * If collision occurs on the GMII/MII, GMAC attempt retries based on the + * back off limit configured. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note This function is tightly coupled with synopGMAC_back_off_limit(synopGMACdev *, u32). + */ +void synopGMAC_retry_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacRetry); + return; +} +/** + * GMAC tries only one transmission (Only in Half Duplex mode). + * If collision occurs on the GMII/MII, GMAC will ignore the current frami + * transmission and report a frame abort with excessive collision in tranmit frame status. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_retry_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacRetry); + return; +} +#endif + +/** + * GMAC strips the Pad/FCS field of incoming frames. + * This is true only if the length field value is less than or equal to + * 1500 bytes. All received frames with length field greater than or equal to + * 1501 bytes are passed to the application without stripping the Pad/FCS field. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_pad_crc_strip_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacPadCrcStrip); + return; +} +#endif +/** + * GMAC doesnot strips the Pad/FCS field of incoming frames. + * GMAC will pass all the incoming frames to Host unmodified. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_pad_crc_strip_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacPadCrcStrip); + u32 status = synopGMACReadReg(gmacdev -> MacBase, GmacConfig); + DEBUG_MES("strips status : %u\n", status & GmacPadCrcStrip); + return; +} +/** + * GMAC programmed with the back off limit value. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note This function is tightly coupled with synopGMAC_retry_enable(synopGMACdevice * gmacdev) + */ +void synopGMAC_back_off_limit(synopGMACdevice *gmacdev, u32 value) +{ + u32 data; + data = synopGMACReadReg(gmacdev -> MacBase, GmacConfig); + data &= (~GmacBackoffLimit); + data |= value; + synopGMACWriteReg(gmacdev -> MacBase, GmacConfig, data); + return; +} + +/** + * Enables the Deferral check in GMAC (Only in Half Duplex mode) + * GMAC issues a Frame Abort Status, along with the excessive deferral error bit set in the + * transmit frame status when transmit state machine is deferred for more than + * - 24,288 bit times in 10/100Mbps mode + * - 155,680 bit times in 1000Mbps mode or Jumbo frame mode in 10/100Mbps operation. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note Deferral begins when transmitter is ready to transmit, but is prevented because of + * an active CRS (carrier sense) + */ +#if UNUSED +void synopGMAC_deferral_check_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacDeferralCheck); + return; +} +#endif +/** + * Disables the Deferral check in GMAC (Only in Half Duplex mode). + * GMAC defers until the CRS signal goes inactive. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_deferral_check_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacDeferralCheck); + return; +} +/** + * Enable the reception of frames on GMII/MII. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacRx); + return; +} +/** + * Disable the reception of frames on GMII/MII. + * GMAC receive state machine is disabled after completion of reception of current frame. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_rx_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacRx); + return; +} +#endif +/** + * Enable the transmission of frames on GMII/MII. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacTx); + return; +} +/** + * Disable the transmission of frames on GMII/MII. + * GMAC transmit state machine is disabled after completion of transmission of current frame. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_tx_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacTx); + return; +} +#endif + + +/*Receive frame filter configuration functions*/ + +/** + * Disables reception of all the frames to application. + * GMAC passes only those received frames to application which + * pass SA/DA address filtering. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_frame_filter_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacFilter); + return; +} + +/** + * Enables reception of all the frames to application. + * GMAC passes all the frames received to application irrespective of whether they + * pass SA/DA address filtering or not. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_frame_filter_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacFilter); + return; +} + +/** + * Populates the Hash High register with the data supplied. + * This function is called when the Hash filtering is to be enabled. + * @param[in] pointer to synopGMACdevice. + * @param[in] data to be written to hash table high register. + * \return void. + */ +#if UNUSED +void synopGMAC_write_hash_table_high(synopGMACdevice *gmacdev, u32 data) +{ + synopGMACWriteReg(gmacdev -> MacBase, GmacHashHigh, data); + return; +} +#endif + +/** + * Populates the Hash Low register with the data supplied. + * This function is called when the Hash filtering is to be enabled. + * @param[in] pointer to synopGMACdevice. + * @param[in] data to be written to hash table low register. + * \return void. + */ +#if UNUSED +void synopGMAC_write_hash_table_low(synopGMACdevice *gmacdev, u32 data) +{ + synopGMACWriteReg(gmacdev -> MacBase, GmacHashLow, data); + return; +} +#endif + +/** + * Enables Hash or Perfect filter (only if Hash filter is enabled in H/W). + * Only frames matching either perfect filtering or Hash Filtering as per HMC and HUC + * configuration are sent to application. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_hash_perfect_filter_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacHashPerfectFilter); + return; +} +#endif + +/** + * Enables only Hash(only if Hash filter is enabled in H/W). + * Only frames matching Hash Filtering as per HMC and HUC + * configuration are sent to application. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_Hash_filter_only_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacHashPerfectFilter); + return; +} +#endif + +/** + * Enables Source address filtering. + * When enabled source address filtering is performed. Only frames matching SA filtering are passed to application with + * SAMatch bit of RxStatus is set. GMAC drops failed frames. + * @param[in] pointer to synopGMACdevice. + * \return void. + * \note This function is overriden by synopGMAC_frame_filter_disable(synopGMACdevice *) + */ +#if UNUSED +void synopGMAC_src_addr_filter_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacSrcAddrFilter); + return; +} +#endif +/** + * Disables Source address filtering. + * When disabled GMAC forwards the received frames with updated SAMatch bit in RxStatus. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_src_addr_filter_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacSrcAddrFilter); + return; +} +/** + * Enables Inverse Destination address filtering. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_dst_addr_filter_inverse(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacDestAddrFilterInv); + return; +} +#endif +/** + * Enables the normal Destination address filtering. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_dst_addr_filter_normal(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacDestAddrFilterInv); + return; +} + +/** + * Enables forwarding of control frames. + * When set forwards all the control frames (incl. unicast and multicast PAUSE frames). + * @param[in] pointer to synopGMACdevice. + * \return void. + * \note Depends on RFE of FlowControlRegister[2] + */ +void synopGMAC_set_pass_control(synopGMACdevice *gmacdev, u32 passcontrol) +{ + u32 data; + data = synopGMACReadReg(gmacdev -> MacBase, GmacFrameFilter); + data &= (~GmacPassControl); + data |= passcontrol; + synopGMACWriteReg(gmacdev -> MacBase, GmacFrameFilter, data); + return; +} + +/** + * Enables Broadcast frames. + * When enabled Address filtering module passes all incoming broadcast frames. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_broadcast_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacBroadcast); + return; +} +/** + * Disable Broadcast frames. + * When disabled Address filtering module filters all incoming broadcast frames. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_broadcast_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacBroadcast); + return; +} +#endif + +/** + * Enables Multicast frames. + * When enabled all multicast frames are passed. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_multicast_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacMulticastFilter); + return; +} +#endif +/** + * Disable Multicast frames. + * When disabled multicast frame filtering depends on HMC bit. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_multicast_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacMulticastFilter); + return; +} + +/** + * Enables multicast hash filtering. + * When enabled GMAC performs teh destination address filtering according to the hash table. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_multicast_hash_filter_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacMcastHashFilter); + return; +} +#endif +/** + * Disables multicast hash filtering. + * When disabled GMAC performs perfect destination address filtering for multicast frames, it compares + * DA field with the value programmed in DA register. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_multicast_hash_filter_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacMcastHashFilter); + return; +} + +/** + * Enables promiscous mode. + * When enabled Address filter modules pass all incoming frames regardless of their Destination + * and source addresses. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_promisc_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacPromiscuousMode); + return; +} +#endif +/** + * Clears promiscous mode. + * When called the GMAC falls back to normal operation from promiscous mode. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_promisc_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacPromiscuousMode); + return; +} + +/** + * Enables unicast hash filtering. + * When enabled GMAC performs the destination address filtering of unicast frames according to the hash table. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_unicast_hash_filter_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacUcastHashFilter); + return; +} +#endif +/** + * Disables multicast hash filtering. + * When disabled GMAC performs perfect destination address filtering for unicast frames, it compares + * DA field with the value programmed in DA register. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_unicast_hash_filter_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacUcastHashFilter); + return; +} + +/*Flow control configuration functions*/ + +/** + * Enables detection of pause frames with stations unicast address. + * When enabled GMAC detects the pause frames with stations unicast address in addition to the + * detection of pause frames with unique multicast address. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacUnicastPauseFrame); + return; +} +#endif +/** + * Disables detection of pause frames with stations unicast address. + * When disabled GMAC only detects with the unique multicast address (802.3x). + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFlowControl, GmacUnicastPauseFrame); + return; +} +/** + * Rx flow control enable. + * When Enabled GMAC will decode the rx pause frame and disable the tx for a specified time. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_rx_flow_control_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacRxFlowControl); + return; +} +/** + * Rx flow control disable. + * When disabled GMAC will not decode pause frame. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_rx_flow_control_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFlowControl, GmacRxFlowControl); + return; +} +/** + * Tx flow control enable. + * When Enabled + * - In full duplex GMAC enables flow control operation to transmit pause frames. + * - In Half duplex GMAC enables the back pressure operation + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_tx_flow_control_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacTxFlowControl); + return; +} + +/** + * Tx flow control disable. + * When Disabled + * - In full duplex GMAC will not transmit any pause frames. + * - In Half duplex GMAC disables the back pressure feature. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_tx_flow_control_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev -> MacBase, GmacFlowControl, GmacTxFlowControl); + return; +} + +/** + * Initiate Flowcontrol operation. + * When Set + * - In full duplex GMAC initiates pause control frame. + * - In Half duplex GMAC initiates back pressure function. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_tx_activate_flow_control(synopGMACdevice *gmacdev) +{ + //In case of full duplex check for this bit to b'0. if it is read as b'1 indicates that + //control frame transmission is in progress. + if (gmacdev -> Speed == FULLDUPLEX) + { + if (!synopGMACCheckBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure)) + { + synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure); + } + } + else//if half duplex mode + { + + synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure); + } + + return; +} +#endif + +/** + * stops Flowcontrol operation. + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +#if UNUSED +void synopGMAC_tx_deactivate_flow_control(synopGMACdevice *gmacdev) +{ + //In full duplex this bit is automatically cleared after transmitting a pause control frame. + if (gmacdev->Speed == HALFDUPLEX) + { + synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure); + } + + return; +} +#endif + +/** + * This enables the pause frame generation after programming the appropriate registers. + * presently activation is set at 3k and deactivation set at 4k. These may have to tweaked + * if found any issues + * @param[in] pointer to synopGMACdevice. + * \return void. + */ +void synopGMAC_pause_control(synopGMACdevice *gmacdev) +{ + u32 omr_reg; + u32 mac_flow_control_reg; + omr_reg = synopGMACReadReg(gmacdev -> DmaBase, DmaControl); + omr_reg |= DmaRxFlowCtrlAct4K | DmaRxFlowCtrlDeact5K | DmaEnHwFlowCtrl; + synopGMACWriteReg(gmacdev -> DmaBase, DmaControl, omr_reg); + + mac_flow_control_reg = synopGMACReadReg(gmacdev -> MacBase, GmacFlowControl); + mac_flow_control_reg |= GmacRxFlowControl | GmacTxFlowControl | 0xFFFF0000; + synopGMACWriteReg(gmacdev -> MacBase, GmacFlowControl, mac_flow_control_reg); + + return; +} + +/** + * Example mac initialization sequence. + * This function calls the initialization routines to initialize the GMAC register. + * One can change the functions invoked here to have different configuration as per the requirement + * @param[in] pointer to synopGMACdevice. + * \return Returns 0 on success. + */ +s32 synopGMAC_mac_init(synopGMACdevice *gmacdev) +{ + u32 PHYreg; + + if (gmacdev->DuplexMode == FULLDUPLEX) + { + TR("\n===phy FULLDUPLEX MODE\n"); //sw: debug + synopGMAC_wd_enable(gmacdev); + synopGMAC_jab_enable(gmacdev); + synopGMAC_frame_burst_enable(gmacdev); + synopGMAC_jumbo_frame_disable(gmacdev); + synopGMAC_rx_own_enable(gmacdev); +#if SYNOP_LOOPBACK_MODE + synopGMAC_loopback_on(gmacdev); +#else + synopGMAC_loopback_off(gmacdev); +#endif + synopGMAC_set_full_duplex(gmacdev); //1 + synopGMAC_retry_enable(gmacdev); + synopGMAC_pad_crc_strip_disable(gmacdev); + synopGMAC_back_off_limit(gmacdev, GmacBackoffLimit0); + synopGMAC_deferral_check_disable(gmacdev); + + synopGMAC_tx_enable(gmacdev); //according to Tang Dan's commitment + synopGMAC_rx_enable(gmacdev); + + synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaStoreAndForward); //3 + synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaFwdErrorFrames); + + if (gmacdev -> Speed == SPEED1000) + { + synopGMAC_select_gmii(gmacdev); + } + else + { + synopGMAC_select_mii(gmacdev); + + if (gmacdev -> Speed == SPEED100) + { + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed100); + } + else + { + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed10); + } + } + + + /*Frame Filter Configuration*/ + //synopGMAC_frame_filter_enable(gmacdev); //2 + synopGMAC_frame_filter_disable(gmacdev); //2 + synopGMAC_set_pass_control(gmacdev, GmacPassControl0); + synopGMAC_broadcast_enable(gmacdev); + synopGMAC_src_addr_filter_disable(gmacdev); + synopGMAC_multicast_disable(gmacdev); + synopGMAC_dst_addr_filter_normal(gmacdev); //scl + //synopGMAC_dst_addr_filter_inverse(gmacdev); + synopGMAC_multicast_hash_filter_disable(gmacdev); + synopGMAC_promisc_disable(gmacdev); + synopGMAC_unicast_hash_filter_disable(gmacdev); + + /*Flow Control Configuration*/ + synopGMAC_unicast_pause_frame_detect_disable(gmacdev); + synopGMAC_rx_flow_control_enable(gmacdev); + synopGMAC_tx_flow_control_enable(gmacdev); + } + else//for Half Duplex configuration + { + + TR("\n===phy HALFDUPLEX MODE\n"); //sw: debug + synopGMAC_wd_enable(gmacdev); + synopGMAC_jab_enable(gmacdev); + synopGMAC_frame_burst_enable(gmacdev); + synopGMAC_jumbo_frame_disable(gmacdev); + synopGMAC_rx_own_enable(gmacdev); +#if SYNOP_LOOPBACK_MODE + synopGMAC_loopback_on(gmacdev); +#else + synopGMAC_loopback_off(gmacdev); +#endif + synopGMAC_set_half_duplex(gmacdev); + synopGMAC_retry_enable(gmacdev); + synopGMAC_pad_crc_strip_disable(gmacdev); + synopGMAC_back_off_limit(gmacdev, GmacBackoffLimit0); + synopGMAC_deferral_check_disable(gmacdev); + +//sw: set efe & tsf + synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaStoreAndForward); + synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaFwdErrorFrames); +//sw: put it in the end + synopGMAC_tx_enable(gmacdev); + synopGMAC_rx_enable(gmacdev); + + + if (gmacdev -> Speed == SPEED1000) + synopGMAC_select_gmii(gmacdev); + else + { + synopGMAC_select_mii(gmacdev); + + if (gmacdev -> Speed == SPEED100) + { + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed100); + } + else + { + synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed10); + } + } + +// synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDisableCrs); +// synopGMAC_select_gmii(gmacdev); + + /*Frame Filter Configuration*/ + synopGMAC_frame_filter_enable(gmacdev); +// synopGMAC_frame_filter_disable(gmacdev); + + synopGMAC_set_pass_control(gmacdev, GmacPassControl0); + synopGMAC_broadcast_enable(gmacdev); + synopGMAC_src_addr_filter_disable(gmacdev); + synopGMAC_multicast_disable(gmacdev); + synopGMAC_dst_addr_filter_normal(gmacdev); + synopGMAC_multicast_hash_filter_disable(gmacdev); + + synopGMAC_promisc_disable(gmacdev); +// synopGMAC_promisc_enable(gmacdev); + synopGMAC_unicast_hash_filter_disable(gmacdev); + +//sw: loopback mode +// synopGMAC_loopback_on(gmacdev); + + /*Flow Control Configuration*/ + synopGMAC_unicast_pause_frame_detect_disable(gmacdev); + synopGMAC_rx_flow_control_disable(gmacdev); + synopGMAC_tx_flow_control_disable(gmacdev); + + /*To set PHY register to enable CRS on Transmit*/ + } + return 0; +} + + +/** + * Sets the Mac address in to GMAC register. + * This function sets the MAC address to the MAC register in question. + * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. + * @param[in] Register offset for Mac address high + * @param[in] Register offset for Mac address low + * @param[in] buffer containing mac address to be programmed. + * \return 0 upon success. Error code upon failure. + */ +s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) +{ + u32 data; + + data = (MacAddr[5] << 8) | MacAddr[4]; + synopGMACWriteReg(gmacdev -> MacBase, MacHigh, data); + data = (MacAddr[3] << 24) | (MacAddr[2] << 16) | (MacAddr[1] << 8) | MacAddr[0]; + synopGMACWriteReg(gmacdev -> MacBase, MacLow, data); + + return 0; +} + + +/** + * Get the Mac address in to the address specified. + * The mac register contents are read and written to buffer passed. + * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. + * @param[in] Register offset for Mac address high + * @param[in] Register offset for Mac address low + * @param[out] buffer containing the device mac address. + * \return 0 upon success. Error code upon failure. + */ +s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) +{ + u32 data; + + data = synopGMACReadReg(gmacdev -> MacBase, MacHigh); + MacAddr[5] = (data >> 8) & 0xff; + MacAddr[4] = (data) & 0xff; + + data = synopGMACReadReg(gmacdev -> MacBase, MacLow); + MacAddr[3] = (data >> 24) & 0xff; + MacAddr[2] = (data >> 16) & 0xff; + MacAddr[1] = (data >> 8) & 0xff; + MacAddr[0] = (data) & 0xff; + +// rt_kprintf("MacAddr = 0x%x\t0x%x\t0x%x\t0x%x\t0x%x\t0x%x\n",MacAddr[0],MacAddr[1],MacAddr[2],MacAddr[3],MacAddr[4],MacAddr[5]); + + return 0; +} + + +/** + * Attaches the synopGMAC device structure to the hardware. + * Device structure is populated with MAC/DMA and PHY base addresses. + * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. + * @param[in] GMAC IP mac base address. + * @param[in] GMAC IP dma base address. + * @param[in] GMAC IP phy base address. + * \return 0 upon success. Error code upon failure. + * \note This is important function. No kernel api provided by Synopsys + */ + +s32 synopGMAC_attach(synopGMACdevice *gmacdev, u64 macBase, u64 dmaBase, u64 phyBase, u8 *mac_addr) +{ + /*Make sure the Device data strucure is cleared before we proceed further*/ + rt_memset((void *)gmacdev, 0, sizeof(synopGMACdevice)); + /*Populate the mac and dma base addresses*/ + gmacdev -> MacBase = macBase; + gmacdev -> DmaBase = dmaBase; + gmacdev -> PhyBase = phyBase; +// rt_kprintf("gmacdev->DmaBase = 0x%x\n", gmacdev->DmaBase); +// rt_kprintf("dmaBase = 0x%x\n", dmaBase); + { + int i, j; + u16 data; + + for (i = phyBase, j = 0; j < 32; i = (i + 1) & 0x1f, j++) + { + synopGMAC_read_phy_reg(gmacdev -> MacBase, i, 2, &data); + + if (data != 0 && data != 0xffff) + { + break; + } + + synopGMAC_read_phy_reg(gmacdev -> MacBase, i, 3, &data); + + if (data != 0 && data != 0xffff) + { + break; + } + } + + if (j == 32) + { + rt_kprintf("phy_detect: can't find PHY!\n"); + } + + gmacdev -> PhyBase = i; + } + +// synopGMAC_get_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr); + + /* Program/flash in the station/IP's Mac address */ + synopGMAC_set_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr); + + return 0; +} + + + + +/** + * Initialize the rx descriptors for ring or chain mode operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) + * - data1 and data2 set to 0. (note) + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor + * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. + */ +void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) +{ + desc -> length = last_ring_desc ? RxDescEndOfRing : 0; + desc -> status = 0; + desc -> buffer1 = 0; + desc -> buffer2 = 0; + desc -> data1 = 0; + desc -> data2 = 0; + //desc -> dummy1 = 0; + //desc -> dummy2 = 0; + + return; +} +void synopGMAC_rx_desc_recycle(DmaDesc *desc, bool last_ring_desc) +{ + desc -> status = DescOwnByDma; + desc -> length = last_ring_desc ? RxDescEndOfRing : 0; + //desc->buffer1 = 0; + //desc->buffer2 = 0; + //desc->data1 = 0; + //desc->data2 = 0; + //desc -> dummy1 = 0; + //desc -> dummy2 = 0; + + return; +} +/** + * Initialize the tx descriptors for ring or chain mode operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) + * - data1 and data2 set to 0. (note) + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor + * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. + */ +void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) +{ +#ifdef ENH_DESC + desc -> status = last_ring_desc ? TxDescEndOfRing : 0; + desc -> length = 0; +#else + desc -> length = last_ring_desc ? TxDescEndOfRing : 0; + desc -> status = 0; +#endif +//sw + desc -> buffer1 = 0; + desc -> buffer2 = 0; + desc -> data1 = 0; + desc -> data2 = 0; + //desc -> dummy1 = 0; + //desc -> dummy2 = 0; + return; +} + +/** + * Initialize the rx descriptors for chain mode of operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0. + * - data1 and data2 set to 0. + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + */ + +void synopGMAC_rx_desc_init_chain(DmaDesc *desc) +{ + desc -> status = 0; + desc -> length = RxDescChain; + desc -> buffer1 = 0; + desc -> data1 = 0; + return; +} +/** + * Initialize the rx descriptors for chain mode of operation. + * - Status field is initialized to 0. + * - EndOfRing set for the last descriptor. + * - buffer1 and buffer2 set to 0. + * - data1 and data2 set to 0. + * @param[in] pointer to DmaDesc structure. + * @param[in] whether end of ring + * \return void. + */ +void synopGMAC_tx_desc_init_chain(DmaDesc *desc) +{ +#ifdef ENH_DESC + desc -> status = TxDescChain; + desc -> length = 0; +#else + desc -> length = TxDescChain; +#endif + desc -> buffer1 = 0; + desc -> data1 = 0; + return; +} + +s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev) +{ + s32 i; + + for (i = 0; i < gmacdev -> TxDescCount; i++) + { + synopGMAC_tx_desc_init_ring(gmacdev -> TxDesc + i, i == gmacdev -> TxDescCount - 1); + } + + TR("At line %d\n", __LINE__); + + for (i = 0; i < gmacdev -> RxDescCount; i++) + { + synopGMAC_rx_desc_init_ring(gmacdev -> RxDesc + i, i == gmacdev -> RxDescCount - 1); + } + + gmacdev -> TxNext = 0; + gmacdev -> TxBusy = 0; + gmacdev -> RxNext = 0; + gmacdev -> RxBusy = 0; + + return -ESYNOPGMACNOERR; +} +/** + * Programs the DmaRxBaseAddress with the Rx descriptor base address. + * Rx Descriptor's base address is available in the gmacdev structure. This function progrms the + * Dma Rx Base address with the starting address of the descriptor ring or chain. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev) +{ + DEBUG_MES("gmacdev->RxDescDma = %08x\n", gmacdev -> RxDescDma); + synopGMACWriteReg(gmacdev -> DmaBase, DmaRxBaseAddr, (u32)gmacdev -> RxDescDma); + return; +} + +/** + * Programs the DmaTxBaseAddress with the Tx descriptor base address. + * Tx Descriptor's base address is available in the gmacdev structure. This function progrms the + * Dma Tx Base address with the starting address of the descriptor ring or chain. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev) +{ + synopGMACWriteReg(gmacdev -> DmaBase, DmaTxBaseAddr, (u32)gmacdev -> TxDescDma); + return; +} + + +/** + * Makes the Dma as owner for this descriptor. + * This function sets the own bit of status field of the DMA descriptor, + * indicating the DMA is the owner for this descriptor. + * @param[in] pointer to DmaDesc structure. + * \return returns void. + */ +void synopGMAC_set_owner_dma(DmaDesc *desc) +{ + desc -> status |= DescOwnByDma; +} + +/** + * set tx descriptor to indicate SOF. + * This Descriptor contains the start of ethernet frame. + * @param[in] pointer to DmaDesc structure. + * \return returns void. + */ +void synopGMAC_set_desc_sof(DmaDesc *desc) +{ +#ifdef ENH_DESC + desc -> status |= DescTxFirst;//ENH_DESC +#else + desc -> length |= DescTxFirst; +#endif +} + +/** + * set tx descriptor to indicate EOF. + * This descriptor contains the End of ethernet frame. + * @param[in] pointer to DmaDesc structure. + * \return returns void. + */ +void synopGMAC_set_desc_eof(DmaDesc *desc) +{ +#ifdef ENH_DESC + desc -> status |= DescTxLast;//ENH_DESC +#else + desc -> length |= DescTxLast; +#endif +} + + +/** + * checks whether this descriptor contains start of frame. + * This function is to check whether the descriptor's data buffer + * contains a fresh ethernet frame? + * @param[in] pointer to DmaDesc structure. + * \return returns true if SOF in current descriptor, else returns fail. + */ +bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc) +{ + return ((desc -> status & DescRxFirst) == DescRxFirst); +} + +/** + * checks whether this descriptor contains end of frame. + * This function is to check whether the descriptor's data buffer + * contains end of ethernet frame? + * @param[in] pointer to DmaDesc structure. + * \return returns true if SOF in current descriptor, else returns fail. + */ +bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc) +{ + return ((desc -> status & DescRxLast) == DescRxLast); +} + +/** + * checks whether destination address filter failed in the rx frame. + * @param[in] pointer to DmaDesc structure. + * \return returns true if Failed, false if not. + */ +bool synopGMAC_is_da_filter_failed(DmaDesc *desc) +{ + return ((desc -> status & DescDAFilterFail) == DescDAFilterFail); +} + +/** + * checks whether source address filter failed in the rx frame. + * @param[in] pointer to DmaDesc structure. + * \return returns true if Failed, false if not. + */ +bool synopGMAC_is_sa_filter_failed(DmaDesc *desc) +{ + return ((desc -> status & DescSAFilterFail) == DescSAFilterFail); +} + +/** + * Checks whether the descriptor is owned by DMA. + * If descriptor is owned by DMA then the OWN bit is set to 1. This API is same for both ring and chain mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if Dma owns descriptor and false if not. + */ +bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc) +{ + return ((desc -> status & DescOwnByDma) == DescOwnByDma); +} + +/** + * returns the byte length of received frame including CRC. + * This returns the no of bytes received in the received ethernet frame including CRC(FCS). + * @param[in] pointer to DmaDesc structure. + * \return returns the length of received frame lengths in bytes. + */ +u32 synopGMAC_get_rx_desc_frame_length(u32 status) +{ + return ((status & DescFrameLengthMask) >> DescFrameLengthShift); +} + +/** + * Checks whether the descriptor is valid + * if no errors such as CRC/Receive Error/Watchdog Timeout/Late collision/Giant Frame/Overflow/Descriptor + * error the descritpor is said to be a valid descriptor. + * @param[in] pointer to DmaDesc structure. + * \return True if desc valid. false if error. + */ +bool synopGMAC_is_desc_valid(u32 status) +{ + return ((status & DescError) == 0); +} + +/** + * Checks whether the descriptor is empty. + * If the buffer1 and buffer2 lengths are zero in ring mode descriptor is empty. + * In chain mode buffer2 length is 0 but buffer2 itself contains the next descriptor address. + * @param[in] pointer to DmaDesc structure. + * \return returns true if descriptor is empty, false if not empty. + */ +bool synopGMAC_is_desc_empty(DmaDesc *desc) +{ + //if both the buffer1 length and buffer2 length are zero desc is empty + return (((desc -> length & DescSize1Mask) == 0) && ((desc -> length & DescSize2Mask) == 0)); +} + + +/** + * Checks whether the rx descriptor is valid. + * if rx descripor is not in error and complete frame is available in the same descriptor + * @param[in] pointer to DmaDesc structure. + * \return returns true if no error and first and last desc bits are set, otherwise it returns false. + */ +bool synopGMAC_is_rx_desc_valid(u32 status) +{ + return ((status & DescError) == 0) && ((status & DescRxFirst) == DescRxFirst) && ((status & DescRxLast) == DescRxLast); +} + +/** + * Checks whether the tx is aborted due to collisions. + * @param[in] pointer to DmaDesc structure. + * \return returns true if collisions, else returns false. + */ +bool synopGMAC_is_tx_aborted(u32 status) +{ + return (((status & DescTxLateCollision) == DescTxLateCollision) | ((status & DescTxExcCollisions) == DescTxExcCollisions)); + +} + +/** + * Checks whether the tx carrier error. + * @param[in] pointer to DmaDesc structure. + * \return returns true if carrier error occured, else returns falser. + */ +bool synopGMAC_is_tx_carrier_error(u32 status) +{ + return (((status & DescTxLostCarrier) == DescTxLostCarrier) | ((status & DescTxNoCarrier) == DescTxNoCarrier)); +} + + +/** + * Gives the transmission collision count. + * returns the transmission collision count indicating number of collisions occured before the frame was transmitted. + * Make sure to check excessive collision didnot happen to ensure the count is valid. + * @param[in] pointer to DmaDesc structure. + * \return returns the count value of collision. + */ +u32 synopGMAC_get_tx_collision_count(u32 status) +{ + return ((status & DescTxCollMask) >> DescTxCollShift); +} +u32 synopGMAC_is_exc_tx_collisions(u32 status) +{ + return ((status & DescTxExcCollisions) == DescTxExcCollisions); +} + + +/** + * Check for damaged frame due to overflow or collision. + * Retruns true if rx frame was damaged due to buffer overflow in MTL or late collision in half duplex mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_frame_damaged(u32 status) +{ +//bool synopGMAC_dma_rx_collisions(u32 status) + return (((status & DescRxDamaged) == DescRxDamaged) | ((status & DescRxCollision) == DescRxCollision)); +} + +/** + * Check for damaged frame due to collision. + * Retruns true if rx frame was damaged due to late collision in half duplex mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_frame_collision(u32 status) +{ +//bool synopGMAC_dma_rx_collisions(u32 status) + return ((status & DescRxCollision) == DescRxCollision); +} + +/** + * Check for receive CRC error. + * Retruns true if rx frame CRC error occured. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_crc(u32 status) +{ +//u32 synopGMAC_dma_rx_crc(u32 status) + return ((status & DescRxCrc) == DescRxCrc); +} + +/** + * Indicates rx frame has non integer multiple of bytes. (odd nibbles). + * Retruns true if dribbling error in rx frame. + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_frame_dribbling_errors(u32 status) +{ +//u32 synopGMAC_dma_rx_frame_errors(u32 status) + return ((status & DescRxDribbling) == DescRxDribbling); +} + +/** + * Indicates error in rx frame length. + * Retruns true if received frame length doesnot match with the length field + * @param[in] pointer to DmaDesc structure. + * \return returns true if error else returns false. + */ +bool synopGMAC_is_rx_frame_length_errors(u32 status) +{ +//u32 synopGMAC_dma_rx_length_errors(u32 status) + return ((status & DescRxLengthError) == DescRxLengthError); +} + +/** + * Checks whether this rx descriptor is last rx descriptor. + * This returns true if it is last descriptor either in ring mode or in chain mode. + * @param[in] pointer to devic structure. + * @param[in] pointer to DmaDesc structure. + * \return returns true if it is last descriptor, false if not. + * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). + */ +bool synopGMAC_is_last_rx_desc(synopGMACdevice *gmacdev, DmaDesc *desc) +{ +//bool synopGMAC_is_last_desc(DmaDesc *desc) + return (((desc -> length & RxDescEndOfRing) == RxDescEndOfRing) || ((u64)gmacdev -> RxDesc == desc -> data2)); +} + +/** + * Checks whether this tx descriptor is last tx descriptor. + * This returns true if it is last descriptor either in ring mode or in chain mode. + * @param[in] pointer to devic structure. + * @param[in] pointer to DmaDesc structure. + * \return returns true if it is last descriptor, false if not. + * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). + */ +bool synopGMAC_is_last_tx_desc(synopGMACdevice *gmacdev, DmaDesc *desc) +{ +//bool synopGMAC_is_last_desc(DmaDesc *desc) +#ifdef ENH_DESC + return (((desc->status & TxDescEndOfRing) == TxDescEndOfRing) || ((u64)gmacdev -> TxDesc == desc -> data2)); +#else + return (((desc->length & TxDescEndOfRing) == TxDescEndOfRing) || ((u64)gmacdev -> TxDesc == desc -> data2)); +#endif +} + +/** + * Checks whether this rx descriptor is in chain mode. + * This returns true if it is this descriptor is in chain mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if chain mode is set, false if not. + */ +bool synopGMAC_is_rx_desc_chained(DmaDesc *desc) +{ + return ((desc -> length & RxDescChain) == RxDescChain); +} + +/** + * Checks whether this tx descriptor is in chain mode. + * This returns true if it is this descriptor is in chain mode. + * @param[in] pointer to DmaDesc structure. + * \return returns true if chain mode is set, false if not. + */ +bool synopGMAC_is_tx_desc_chained(DmaDesc *desc) +{ +#ifdef ENH_DESC + return ((desc -> status & TxDescChain) == TxDescChain); +#else + return ((desc -> length & TxDescChain) == TxDescChain); +#endif +} + +/** + * Driver Api to get the descriptor field information. + * This returns the status, dma-able address of buffer1, the length of buffer1, virtual address of buffer1 + * dma-able address of buffer2, length of buffer2, virtural adddress of buffer2. + * @param[in] pointer to DmaDesc structure. + * @param[out] pointer to status field fo descriptor. + * @param[out] dma-able address of buffer1. + * @param[out] length of buffer1. + * @param[out] virtual address of buffer1. + * @param[out] dma-able address of buffer2. + * @param[out] length of buffer2. + * @param[out] virtual address of buffer2. + * \return returns void. + */ +void synopGMAC_get_desc_data(DmaDesc *desc, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2) +{ + + if (Status != 0) + { + *Status = desc -> status; + } + + if (Buffer1 != 0) + { + *Buffer1 = desc -> buffer1; + } + + if (Length1 != 0) + { + *Length1 = (desc -> length & DescSize1Mask) >> DescSize1Shift; + } + + if (Data1 != 0) + { + *Data1 = desc -> data1; + } + + if (Buffer2 != 0) + { + *Buffer2 = desc -> buffer2; + } + + if (Length2 != 0) + { + *Length2 = (desc -> length & DescSize2Mask) >> DescSize2Shift; + } + + if (Data2 != 0) + { + *Data2 = desc -> data2; + } + + return; +} + +#ifdef ENH_DESC_8W +/** + * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor + * Get the index and address of Tx desc. + * This api is same for both ring mode and chain mode. + * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is + * over. This returns the descriptor fields to the caller. + * @param[in] pointer to synopGMACdevice. + * @param[out] status field of the descriptor. + * @param[out] Dma-able buffer1 pointer. + * @param[out] length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present tx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_tx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2, + u32 *Ext_Status, u32 *Time_Stamp_High, u32 *Time_Stamp_Low) +{ + u32 txover = gmacdev->TxBusy; + DmaDesc *txdesc = gmacdev->TxBusyDesc; + + if (synopGMAC_is_desc_owned_by_dma(txdesc)) + return -1; + if (synopGMAC_is_desc_empty(txdesc)) + return -1; + + (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now + + if (Status != 0) + *Status = txdesc->status; + + if (Ext_Status != 0) + *Ext_Status = txdesc->extstatus; + if (Time_Stamp_High != 0) + *Time_Stamp_High = txdesc->timestamphigh; + if (Time_Stamp_Low != 0) + *Time_Stamp_High = txdesc->timestamplow; + + if (Buffer1 != 0) + *Buffer1 = txdesc->buffer1; + if (Length1 != 0) + *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; + if (Data1 != 0) + *Data1 = txdesc->data1; + + if (Buffer2 != 0) + *Buffer2 = txdesc->buffer2; + if (Length2 != 0) + *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; + if (Data1 != 0) + *Data2 = txdesc->data2; + + gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txover + 1; + + if (synopGMAC_is_tx_desc_chained(txdesc)) + { + gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; + synopGMAC_tx_desc_init_chain(txdesc); + } + else + { + gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); + synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev, txdesc)); + } + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", txover, (u32)txdesc, txdesc->status, txdesc->length, txdesc->buffer1, txdesc->buffer2, txdesc->data1, txdesc->data2); + + return txover; +} +#else + +/** + * Get the index and address of Tx desc. + * This api is same for both ring mode and chain mode. + * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is + * over. This returns the descriptor fields to the caller. + * @param[in] pointer to synopGMACdevice. + * @param[out] status field of the descriptor. + * @param[out] Dma-able buffer1 pointer. + * @param[out] length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present tx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_tx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2) +{ + u32 txover = gmacdev->TxBusy; + DmaDesc *txdesc = gmacdev->TxBusyDesc; + int i; +//sw: dbg + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_R); + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); +#if SYNOP_TX_DEBUG + printf("Cache sync before get a used tx dma desc!\n"); + printf("\n==%02d %08x %08x %08x %08x %08x %08x %08x\n", txover, (u32)txdesc, txdesc->status, txdesc->length, txdesc->buffer1, txdesc->buffer2, txdesc->data1, txdesc->data2); +#endif + if (synopGMAC_is_desc_owned_by_dma(txdesc)) + { + return -1; + } +// gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; +// gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); + if (synopGMAC_is_desc_empty(txdesc)) + { + return -1; + } + (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now + + if (Status != 0) + *Status = txdesc->status; + + if (Buffer1 != 0) + *Buffer1 = txdesc->buffer1; + if (Length1 != 0) + *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; + if (Data1 != 0) + *Data1 = txdesc->data1; + + if (Buffer2 != 0) + *Buffer2 = txdesc->buffer2; + if (Length2 != 0) + *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; + if (Data1 != 0) + *Data2 = txdesc->data2; + + gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txover + 1; + + if (synopGMAC_is_tx_desc_chained(txdesc)) + { + gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; + synopGMAC_tx_desc_init_chain(txdesc); + } + else + { + gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); + synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev, txdesc)); + } + //printf("%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); +#if SYNOP_TX_DEBUG + printf("Cache sync after re-init a tx dma desc!\n"); +#endif + + return txover; +} + +#endif +/** + * Populate the tx desc structure with the buffer address. + * Once the driver has a packet ready to be transmitted, this function is called with the + * valid dma-able buffer addresses and their lengths. This function populates the descriptor + * and make the DMA the owner for the descriptor. This function also controls whether Checksum + * offloading to be done in hardware or not. + * This api is same for both ring mode and chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] Dma-able buffer1 pointer. + * @param[in] length of buffer1 (Max is 2048). + * @param[in] virtual pointer for buffer1. + * @param[in] Dma-able buffer2 pointer. + * @param[in] length of buffer2 (Max is 2048). + * @param[in] virtual pointer for buffer2. + * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. + * @param[in] u32 indicating whether the checksum offloading in HW/SW. + * \return returns present tx descriptor index on success. Negative value if error. + */ +u32 len; +s32 synopGMAC_set_tx_qptr(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2, u32 offload_needed, u32 *index, DmaDesc *Dpr) +{ + u32 txnext = gmacdev->TxNext; + DmaDesc *txdesc = gmacdev->TxNextDesc; + + *index = txnext; + Dpr = txdesc; + + if (!synopGMAC_is_desc_empty(txdesc)) + { + TR("set tx qptr: desc empty!\n"); + return -1; + } + + (gmacdev->BusyTxDesc)++; //busy tx descriptor is reduced by one as it will be handed over to Processor now + + if (synopGMAC_is_tx_desc_chained(txdesc)) + { + txdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); +#ifdef ENH_DESC + txdesc->status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC +#else + txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor +#endif + + txdesc->buffer1 = Buffer1; + txdesc->data1 = Data1; + + if (offload_needed) + { + /* + Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, + before calling any of the functions given below. + */ + synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); + synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); +// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); + } +#ifdef ENH_DESC + txdesc->status |= DescOwnByDma;//ENH_DESC +#else + txdesc->status = DescOwnByDma; +#endif + + gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txnext + 1; + gmacdev->TxNextDesc = (DmaDesc *)txdesc->data2; + } + else + { +// printf("synopGMAC_set_tx_qptr:in ring mode\n"); + txdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); +#ifdef ENH_DESC + txdesc->status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC +#else + txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor +#endif + + txdesc->buffer1 = Buffer1; + txdesc->data1 = Data1; + + txdesc->buffer2 = Buffer2; + txdesc->data2 = Data2; + + if (offload_needed) + { + /* + Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, + before calling any of the functions given below. + */ +//sw: i am not sure about the checksum.so i omit it in the outside + synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); + synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); +// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); + } +#ifdef ENH_DESC + txdesc->status |= DescOwnByDma;//ENH_DESC +#else +// printf("synopGMAC_set_tx_qptr:give the tx descroptor to dma\n"); + txdesc->status = DescOwnByDma; +#endif + + gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txnext + 1; + gmacdev->TxNextDesc = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); + } + + +#if SYNOP_TX_DEBUG + printf("%02d %08x %08x %08x %08x %08x %08x %08x\n", txnext, (u32)txdesc, txdesc->status, txdesc->length, txdesc->buffer1, txdesc->buffer2, txdesc->data1, txdesc->data2); +#endif + //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); +#if SYNOP_TX_DEBUG + printf("Cache sync to set a tx desc!\n"); +#endif + //pci_sync_cache(0, (vm_offset_t)(txdesc->data1), 32, SYNC_W); +#if SYNOP_TX_DEBUG + //printf("Cache sync for data in the buf of the tx desc!\n"); +#endif + return txnext; +} +#ifdef ENH_DESC_8W +/** + * Prepares the descriptor to receive packets. + * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields + * and handed over to DMA by setting the ownership. After successful return from this function the + * descriptor is added to the receive descriptor pool/queue. + * This api is same for both ring mode and chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] Dma-able buffer1 pointer. + * @param[in] length of buffer1 (Max is 2048). + * @param[in] Dma-able buffer2 pointer. + * @param[in] length of buffer2 (Max is 2048). + * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present rx descriptor index on success. Negative value if error. + */ +// dma_addr RX_BUF_SIZE skb +s32 synopGMAC_set_rx_qptr(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2) +{ + u32 rxnext = gmacdev->RxNext; + DmaDesc *rxdesc = gmacdev->RxNextDesc; + + if (!synopGMAC_is_desc_empty(rxdesc)) + return -1; + + if (synopGMAC_is_rx_desc_chained(rxdesc)) + { + rxdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); + + rxdesc->buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->extstatus = 0; + rxdesc->reserved1 = 0; + rxdesc->timestamplow = 0; + rxdesc->timestamphigh = 0; + + if ((rxnext % MODULO_INTERRUPT) != 0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; + } + else + { + rxdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); + + rxdesc->buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->extstatus = 0; + rxdesc->reserved1 = 0; + rxdesc->timestamplow = 0; + rxdesc->timestamphigh = 0; + + rxdesc->buffer2 = Buffer2; + rxdesc->data2 = Data2; + + if ((rxnext % MODULO_INTERRUPT) != 0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + } +#if SYNOP_RX_DEBUG + TR("%02d %08x %08x %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2, rxdesc->dummy1, rxdesc->dummy2); +#endif + + (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one + //pci_sync_cache(0, (vm_offset_t)rxdesc,64, SYNC_W); + return rxnext; +} + +#else +/** + * Prepares the descriptor to receive packets. + * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields + * and handed over to DMA by setting the ownership. After successful return from this function the + * descriptor is added to the receive descriptor pool/queue. + * This api is same for both ring mode and chain mode. + * @param[in] pointer to synopGMACdevice. + * @param[in] Dma-able buffer1 pointer. + * @param[in] length of buffer1 (Max is 2048). + * @param[in] Dma-able buffer2 pointer. + * @param[in] length of buffer2 (Max is 2048). + * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. + * \return returns present rx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_set_rx_qptr(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2) +{ + u32 rxnext = gmacdev->RxNext; + DmaDesc *rxdesc = gmacdev->RxNextDesc; + + if (!synopGMAC_is_desc_empty(rxdesc)) + return -1; + + if (synopGMAC_is_rx_desc_chained(rxdesc)) + { + rxdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); + + rxdesc->buffer1 = Buffer1; + rxdesc->data1 = Data1; + + if ((rxnext % MODULO_INTERRUPT) != 0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; + } + else + { + rxdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); + + rxdesc->buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->buffer2 = Buffer2; + rxdesc->data2 = Data2; + + if ((rxnext % MODULO_INTERRUPT) != 0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + } +#if SYNOP_RX_DEBUG + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); +#endif + (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one + + return rxnext; +} + +s32 synopGMAC_set_rx_qptr_init(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2) +{ + u32 rxnext = gmacdev->RxNext; + DmaDesc *rxdesc = gmacdev->RxNextDesc; + + /* sw + if(synopGMAC_is_desc_owned_by_dma(rxdesc)) + return -1; + */ + + if (!synopGMAC_is_desc_empty(rxdesc)) + return -1; + + if (synopGMAC_is_rx_desc_chained(rxdesc)) + { + rxdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); + + rxdesc->buffer1 = Buffer1; + rxdesc->data1 = Data1; + + if ((rxnext % MODULO_INTERRUPT) != 0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + rxdesc->status = 0; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; + } + else + { + rxdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); + + rxdesc->buffer1 = Buffer1; + rxdesc->data1 = Data1; + + rxdesc->buffer2 = Buffer2; + rxdesc->data2 = Data2; + + if ((rxnext % MODULO_INTERRUPT) != 0) + rxdesc->length |= RxDisIntCompl; + + rxdesc->status = DescOwnByDma; + rxdesc->status = 0; + + gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + } + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); + (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one + return rxnext; +} +#endif +#ifdef ENH_DESC_8W +/** + * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor + * Get back the descriptor from DMA after data has been received. + * When the DMA indicates that the data is received (interrupt is generated), this function should be + * called to get the descriptor and hence the data buffers received. With successful return from this + * function caller gets the descriptor fields for processing. check the parameters to understand the + * fields returned.` + * @param[in] pointer to synopGMACdevice. + * @param[out] pointer to hold the status of DMA. + * @param[out] Dma-able buffer1 pointer. + * @param[out] pointer to hold length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] pointer to hold length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * \return returns present rx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_rx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2, + u32 *Ext_Status, u32 *Time_Stamp_High, u32 *Time_Stamp_Low) +{ + u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data + //is spread over multiple buffers/descriptors + DmaDesc *rxdesc = gmacdev->RxBusyDesc; + if (synopGMAC_is_desc_owned_by_dma(rxdesc)) + return -1; + if (synopGMAC_is_desc_empty(rxdesc)) + return -1; + + + if (Status != 0) + *Status = rxdesc->status;// send the status of this descriptor + + if (Ext_Status != 0) + *Ext_Status = rxdesc->extstatus; + if (Time_Stamp_High != 0) + *Time_Stamp_High = rxdesc->timestamphigh; + if (Time_Stamp_Low != 0) + *Time_Stamp_Low = rxdesc->timestamplow; + + if (Length1 != 0) + *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; + if (Buffer1 != 0) + *Buffer1 = rxdesc->buffer1; + if (Data1 != 0) + *Data1 = rxdesc->data1; + + if (Length2 != 0) + *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; + if (Buffer2 != 0) + *Buffer2 = rxdesc->buffer2; + if (Data1 != 0) + *Data2 = rxdesc->data2; + + gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + + if (synopGMAC_is_rx_desc_chained(rxdesc)) + { + gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; + synopGMAC_rx_desc_init_chain(rxdesc); + //synopGMAC_desc_init_chain(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc),0,0); + } + else + { + gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); + synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev, rxdesc)); + } + TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); + (gmacdev->BusyRxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now + return (rxnext); + +} +#else + +/** + * Get back the descriptor from DMA after data has been received. + * When the DMA indicates that the data is received (interrupt is generated), this function should be + * called to get the descriptor and hence the data buffers received. With successful return from this + * function caller gets the descriptor fields for processing. check the parameters to understand the + * fields returned.` + * @param[in] pointer to synopGMACdevice. + * @param[out] pointer to hold the status of DMA. + * @param[out] Dma-able buffer1 pointer. + * @param[out] pointer to hold length of buffer1 (Max is 2048). + * @param[out] virtual pointer for buffer1. + * @param[out] Dma-able buffer2 pointer. + * @param[out] pointer to hold length of buffer2 (Max is 2048). + * @param[out] virtual pointer for buffer2. + * \return returns present rx descriptor index on success. Negative value if error. + */ +s32 synopGMAC_get_rx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2) +{ + u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data + //is spread over multiple buffers/descriptors + DmaDesc *rxdesc = gmacdev->RxBusyDesc; + u32 len; + if (synopGMAC_is_desc_owned_by_dma(rxdesc)) + { + DEBUG_MES("synopGMAC_get_rx_qptr:DMA descriptor is owned by GMAC!\n"); + return -1; + } + + if (synopGMAC_is_desc_empty(rxdesc)) + { + DEBUG_MES("synopGMAC_get_rx_qptr:rx desc is empty!\n"); + return -1; + } + + if (Status != 0) + *Status = rxdesc->status;// send the status of this descriptor + + if (Length1 != 0) + *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; + if (Buffer1 != 0) + *Buffer1 = rxdesc->buffer1; + if (Data1 != 0) + *Data1 = rxdesc->data1; + if (Length2 != 0) + *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; + if (Buffer2 != 0) + *Buffer2 = rxdesc->buffer2; + if (Data1 != 0) + *Data2 = rxdesc->data2; + + len = synopGMAC_get_rx_desc_frame_length(*Status); + DEBUG_MES("Cache sync for data buffer in rx dma desc: length = 0x%x\n", len); + gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; + if (synopGMAC_is_rx_desc_chained(rxdesc)) + { + gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; + synopGMAC_rx_desc_init_chain(rxdesc); + } + else + { + gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); +//sw: raw data +#if SYNOP_RX_DEBUG + DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); +#endif + synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev, rxdesc)); + } +#if SYNOP_RX_DEBUG + DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); +#endif + + (gmacdev->BusyRxDesc)--; //This returns one descriptor to processor. So busy count will be decremented by one + return (rxnext); + +} + +#endif + +/** + * Clears all the pending interrupts. + * If the Dma status register is read then all the interrupts gets cleared + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + TR("DMA status reg = 0x%x before cleared!\n", data); + synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, data); + // plat_delay(DEFAULT_LOOP_VARIABLE); +// data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + TR("DMA status reg = 0x%x after cleared!\n", data); +} + +/** + * Returns the all unmasked interrupt status after reading the DmaStatus register. + * @param[in] pointer to synopGMACdevice. + * \return 0 upon success. Error code upon failure. + */ +u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev) +{ + u32 data; + u32 interrupts = 0; + data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); + + //data = data & ~0x84; //sw: some bits shoud not be cleaned + synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, data); //manju: I think this is the appropriate location to clear the interrupts + plat_delay(DEFAULT_LOOP_VARIABLE); + if (data & DmaIntErrorMask) interrupts |= synopGMACDmaError; + if (data & DmaIntRxNormMask) interrupts |= synopGMACDmaRxNormal; + if (data & DmaIntRxAbnMask) interrupts |= synopGMACDmaRxAbnormal; + if (data & DmaIntRxStoppedMask) interrupts |= synopGMACDmaRxStopped; + if (data & DmaIntTxNormMask) interrupts |= synopGMACDmaTxNormal; + if (data & DmaIntTxAbnMask) interrupts |= synopGMACDmaTxAbnormal; + if (data & DmaIntTxStoppedMask) interrupts |= synopGMACDmaTxStopped; + + return interrupts; +} + +/** + * Returns the interrupt mask. + * @param[in] pointer to synopGMACdevice. + * \return 0 upon success. Error code upon failure. + */ +#if UNUSED +u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev) +{ + return (synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt)); +} +#endif + +/** + * Enable all the interrupts. + * Enables the DMA interrupt as specified by the bit mask. + * @param[in] pointer to synopGMACdevice. + * @param[in] bit mask of interrupts to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, interrupts); + return; +} +#endif + + +/** + * Disable all the interrupts. + * Disables all DMA interrupts. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note This function disabled all the interrupts, if you want to disable a particular interrupt then + * use synopGMAC_disable_interrupt(). + */ +void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev) +{ +// rt_kprintf("dmabase = 0x%x\n",gmacdev->DmaBase); + synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, DmaIntDisable); +// synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt); + return; +} + +/** + * Disable interrupt according to the bitfield supplied. + * Disables only those interrupts specified in the bit mask in second argument. + * @param[in] pointer to synopGMACdevice. + * @param[in] bit mask for interrupts to be disabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) +{ + synopGMACClearBits(gmacdev->DmaBase, DmaInterrupt, interrupts); + return; +} +#endif +/** + * Enable the DMA Reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_enable_dma_rx(synopGMACdevice *gmacdev) +{ +// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaRxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data |= DmaRxStart; + TR0(" ===33334\n"); + synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); + TR0(" ===33344\n"); +} + +/** + * Enable the DMA Transmission. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_enable_dma_tx(synopGMACdevice *gmacdev) +{ +// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaTxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data |= DmaTxStart; + synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); + +} + +/** + * Resumes the DMA Transmission. + * the DmaTxPollDemand is written. (the data writeen could be anything). + * This forces the DMA to resume transmission. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_resume_dma_tx(synopGMACdevice *gmacdev) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaTxPollDemand, 1); + +} +/** + * Resumes the DMA Reception. + * the DmaRxPollDemand is written. (the data writeen could be anything). + * This forces the DMA to resume reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_resume_dma_rx(synopGMACdevice *gmacdev) +{ + synopGMACWriteReg(gmacdev->DmaBase, DmaRxPollDemand, 0); + +} +/** + * Take ownership of this Descriptor. + * The function is same for both the ring mode and the chain mode DMA structures. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_take_desc_ownership(DmaDesc *desc) +{ + if (desc) + { + desc->status &= ~DescOwnByDma; //Clear the DMA own bit +// desc->status |= DescError; // Set the error to indicate this descriptor is bad + } +} + +/** + * Take ownership of all the rx Descriptors. + * This function is called when there is fatal error in DMA transmission. + * When called it takes the ownership of all the rx descriptor in rx descriptor pool/queue from DMA. + * The function is same for both the ring mode and the chain mode DMA structures. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. + */ +void synopGMAC_take_desc_ownership_rx(synopGMACdevice *gmacdev) +{ + s32 i; + DmaDesc *desc; + desc = gmacdev->RxDesc; + for (i = 0; i < gmacdev->RxDescCount; i++) + { + if (synopGMAC_is_rx_desc_chained(desc)) //This descriptor is in chain mode + { + + synopGMAC_take_desc_ownership(desc); + desc = (DmaDesc *)desc->data2; + } + else + { + synopGMAC_take_desc_ownership(desc + i); + } + } +} + +/** + * Take ownership of all the rx Descriptors. + * This function is called when there is fatal error in DMA transmission. + * When called it takes the ownership of all the tx descriptor in tx descriptor pool/queue from DMA. + * The function is same for both the ring mode and the chain mode DMA structures. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. + */ +void synopGMAC_take_desc_ownership_tx(synopGMACdevice *gmacdev) +{ + s32 i; + DmaDesc *desc; + desc = gmacdev->TxDesc; + for (i = 0; i < gmacdev->TxDescCount; i++) + { + if (synopGMAC_is_tx_desc_chained(desc)) //This descriptor is in chain mode + { + synopGMAC_take_desc_ownership(desc); + desc = (DmaDesc *)desc->data2; + } + else + { + synopGMAC_take_desc_ownership(desc + i); + } + } +} + +/** + * Disable the DMA for Transmission. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ + +void synopGMAC_disable_dma_tx(synopGMACdevice *gmacdev) +{ +// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaTxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data &= (~DmaTxStart); + synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); +} +/** + * Disable the DMA for Reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_disable_dma_rx(synopGMACdevice *gmacdev) +{ +// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaRxStart); + u32 data; + data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); + data &= (~DmaRxStart); + synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); +} +/*******************PMT APIs***************************************/ +/** + * Enables the assertion of PMT interrupt. + * This enables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame + * reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); + return; +} +#endif +/** + * Disables the assertion of PMT interrupt. + * This disables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame + * reception. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); + return; +} +/** + * Enables the power down mode of GMAC. + * This function puts the Gmac in power down mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_power_down_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtPowerDown); + return; +} +#endif +/** + * Disables the powerd down setting of GMAC. + * If the driver wants to bring up the GMAC from powerdown mode, even though the magic packet or the + * wake up frames received from the network, this function should be called. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_power_down_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtPowerDown); + return; +} +#endif +/** + * Enables the pmt interrupt generation in powerdown mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); +} +#endif +/** + * Disables the pmt interrupt generation in powerdown mode. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); +} +#endif +/** + * Enables GMAC to look for Magic packet. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtMagicPktEnable); + return; +} +#endif + +/** + * Enables GMAC to look for wake up frame. + * Wake up frame is defined by the user. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtWakeupFrameEnable); + return; +} +#endif + +/** + * Enables wake-up frame filter to handle unicast packets. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtGlobalUnicast); + return; +} +#endif +/** + * Checks whether the packet received is a magic packet?. + * @param[in] pointer to synopGMACdevice. + * \return returns True if magic packet received else returns false. + */ +bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase, GmacPmtCtrlStatus); + return ((data & GmacPmtMagicPktReceived) == GmacPmtMagicPktReceived); +} +/** + * Checks whether the packet received is a wakeup frame?. + * @param[in] pointer to synopGMACdevice. + * \return returns true if wakeup frame received else returns false. + */ +bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev) +{ + u32 data; + data = synopGMACReadReg(gmacdev->MacBase, GmacPmtCtrlStatus); + return ((data & GmacPmtWakeupFrameReceived) == GmacPmtWakeupFrameReceived); +} + +/** + * Populates the remote wakeup frame registers. + * Consecutive 8 writes to GmacWakeupAddr writes the wakeup frame filter registers. + * Before commensing a new write, frame filter pointer is reset to 0x0000. + * A small delay is introduced to allow frame filter pointer reset operation. + * @param[in] pointer to synopGMACdevice. + * @param[in] pointer to frame filter contents array. + * \return returns void. + */ +#if UNUSED +void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 *filter_contents) +{ + s32 i; + synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtFrmFilterPtrReset); + plat_delay(10); + for (i = 0; i < WAKEUP_REG_LENGTH; i++) + synopGMACWriteReg(gmacdev->MacBase, GmacWakeupAddr, *(filter_contents + i)); + return; + +} +#endif + +/*******************PMT APIs***************************************/ +/*******************MMC APIs***************************************/ +/** + * Freezes the MMC counters. + * This function call freezes the MMC counters. None of the MMC counters are updated + * due to any tx or rx frames until synopGMAC_mmc_counters_resume is called. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterFreeze); + return; +} +#endif +/** + * Resumes the MMC counter updation. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterFreeze); + return; +} +#endif +/** + * Configures the MMC in Self clearing mode. + * Programs MMC interface so that counters are cleared when the counters are read. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterResetOnRead); + return; +} +#endif +/** + * Configures the MMC in non-Self clearing mode. + * Programs MMC interface so that counters are cleared when the counters are read. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterResetOnRead); + return; +} +#endif +/** + * Configures the MMC to stop rollover. + * Programs MMC interface so that counters will not rollover after reaching maximum value. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterStopRollover); + return; +} +/** + * Configures the MMC to rollover. + * Programs MMC interface so that counters will rollover after reaching maximum value. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterStopRollover); + return; +} + +/** + * Read the MMC Counter. + * @param[in] pointer to synopGMACdevice. + * @param[in] the counter to be read. + * \return returns the read count value. + */ +u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter) +{ + return (synopGMACReadReg(gmacdev->MacBase, counter)); +} +#endif +/** + * Read the MMC Rx interrupt status. + * @param[in] pointer to synopGMACdevice. + * \return returns the Rx interrupt status. + */ +u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev) +{ + return (synopGMACReadReg(gmacdev->MacBase, GmacMmcIntrRx)); +} +/** + * Read the MMC Tx interrupt status. + * @param[in] pointer to synopGMACdevice. + * \return returns the Tx interrupt status. + */ +u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev) +{ + return (synopGMACReadReg(gmacdev->MacBase, GmacMmcIntrTx)); +} +/** + * Disable the MMC Tx interrupt. + * The MMC tx interrupts are masked out as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] tx interrupt bit mask for which interrupts needs to be disabled. + * \return returns void. + */ +void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACSetBits(gmacdev->MacBase, GmacMmcIntrMaskTx, mask); + return; +} +/** + * Enable the MMC Tx interrupt. + * The MMC tx interrupts are enabled as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] tx interrupt bit mask for which interrupts needs to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACClearBits(gmacdev->MacBase, GmacMmcIntrMaskTx, mask); +} +#endif +/** + * Disable the MMC Rx interrupt. + * The MMC rx interrupts are masked out as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. + * \return returns void. + */ +void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACSetBits(gmacdev->MacBase, GmacMmcIntrMaskRx, mask); + return; +} +/** + * Enable the MMC Rx interrupt. + * The MMC rx interrupts are enabled as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACClearBits(gmacdev->MacBase, GmacMmcIntrMaskRx, mask); + return; +} +#endif +/** + * Disable the MMC ipc rx checksum offload interrupt. + * The MMC ipc rx checksum offload interrupts are masked out as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. + * \return returns void. + */ +void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACSetBits(gmacdev->MacBase, GmacMmcRxIpcIntrMask, mask); + return; +} +/** + * Enable the MMC ipc rx checksum offload interrupt. + * The MMC ipc rx checksum offload interrupts are enabled as per the mask specified. + * @param[in] pointer to synopGMACdevice. + * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) +{ + synopGMACClearBits(gmacdev->MacBase, GmacMmcRxIpcIntrMask, mask); + return; +} +#endif +/*******************MMC APIs***************************************/ +/*******************Ip checksum offloading APIs***************************************/ + +/** + * Enables the ip checksum offloading in receive path. + * When set GMAC calculates 16 bit 1's complement of all received ethernet frame payload. + * It also checks IPv4 Header checksum is correct. GMAC core appends the 16 bit checksum calculated + * for payload of IP datagram and appends it to Ethernet frame transferred to the application. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +#if UNUSED +void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRxIpcOffload); + return; +} +/** + * Disable the ip checksum offloading in receive path. + * Ip checksum offloading is disabled in the receive path. + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRxIpcOffload); +} +/** + * Instruct the DMA to drop the packets fails tcp ip checksum. + * This is to instruct the receive DMA engine to drop the recevied packet if they + * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaDisableDropTcpCs); + return; +} +/** + * Instruct the DMA not to drop the packets even if it fails tcp ip checksum. + * This is to instruct the receive DMA engine to allow the packets even if recevied packet + * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). + * @param[in] pointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaDisableDropTcpCs); + return; +} +#endif + +/** + * When the Enhanced Descriptor is enabled then the bit 0 of RDES0 indicates whether the + * Extended Status is available (RDES4). Time Stamp feature and the Checksum Offload Engine2 + * makes use of this extended status to provide the status of the received packet. + * @param[in] pointer to synopGMACdevice + * \return returns TRUE or FALSE + */ +#ifdef ENH_DESC_8W +/** + * This function indicates whether extended status is available in the RDES0. + * Any function which accesses the fields of extended status register must ensure a check on this has been made + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev, u32 status) // extended status present indicates that the RDES4 need to be probed +{ + return ((status & DescRxEXTsts) != 0); // if extstatus set then it returns 1 +} +/** + * This function returns true if the IP header checksum bit is set in the extended status. + * Valid only when enhaced status available is set in RDES0 bit 0. + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev, u32 ext_status) // IP header (IPV4) checksum error +{ + return ((ext_status & DescRxIpHeaderError) != 0); // if IPV4 header error return 1 +} +/** + * This function returns true if the Checksum is bypassed in the hardware. + * Valid only when enhaced status available is set in RDES0 bit 0. + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev, u32 ext_status) // Hardware engine bypassed the checksum computation/checking +{ + return ((ext_status & DescRxChkSumBypass) != 0); // if checksum offloading bypassed return 1 +} +/** + * This function returns true if payload checksum error is set in the extended status. + * Valid only when enhaced status available is set in RDES0 bit 0. + * This is valid only for Enhanced Descriptor. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns TRUE or FALSE. + */ +bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev, u32 ext_status) // IP payload checksum is in error (UDP/TCP/ICMP checksum error) +{ + return ((ext_status & DescRxIpPayloadError) != 0); // if IP payload error return 1 +} +#endif + +/** + * Decodes the Rx Descriptor status to various checksum error conditions. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns decoded enum (u32) indicating the status. + */ +u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status) +{ + if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) + return RxLenLT600; + else if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) + return RxIpHdrPayLoadChkBypass; + else if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) + return RxChkBypass; + else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) + return RxNoChkError; + else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) + return RxPayLoadChkError; + else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) == 0)) + return RxIpHdrChkError; + else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) + return RxIpHdrPayLoadChkError; + else + return RxIpHdrPayLoadRes; +} +/** + * Checks if any Ipv4 header checksum error in the frame just transmitted. + * This serves as indication that error occureed in the IPv4 header checksum insertion. + * The sent out frame doesnot carry any ipv4 header checksum inserted by the hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns true if error in ipv4 header checksum, else returns false. + */ +bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status) +{ + return ((status & DescTxIpv4ChkError) == DescTxIpv4ChkError); +} + +/** + * Checks if any payload checksum error in the frame just transmitted. + * This serves as indication that error occureed in the payload checksum insertion. + * The sent out frame doesnot carry any payload checksum inserted by the hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] u32 status field of the corresponding descriptor. + * \return returns true if error in ipv4 header checksum, else returns false. + */ +bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status) +{ + return ((status & DescTxPayChkError) == DescTxPayChkError); +} +/** + * The check summ offload engine is bypassed in the tx path. + * Checksum is not computed in the Hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc) +{ +#ifdef ENH_DESC + desc->status = (desc->length & (~DescTxCisMask));//ENH_DESC +#else + desc->length = (desc->length & (~DescTxCisMask)); +#endif +} +/** + * The check summ offload engine is enabled to do only IPV4 header checksum. + * IPV4 header Checksum is computed in the Hardware. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc) +{ +#ifdef ENH_DESC + desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisIpv4HdrCs);//ENH_DESC +#else + desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisIpv4HdrCs); +#endif +} + +/** + * The check summ offload engine is enabled to do TCPIP checsum assuming Pseudo header is available. + * Hardware computes the tcp ip checksum assuming pseudo header checksum is computed in software. + * Ipv4 header checksum is also inserted. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc) +{ +#ifdef ENH_DESC + desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisTcpOnlyCs);//ENH_DESC +#else + desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpOnlyCs); +#endif +} +/** + * The check summ offload engine is enabled to do complete checksum computation. + * Hardware computes the tcp ip checksum including the pseudo header checksum. + * Here the tcp payload checksum field should be set to 0000. + * Ipv4 header checksum is also inserted. + * @param[in] pointer to synopGMACdevice. + * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. + * \return returns void. + */ +void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc) +{ +#ifdef ENH_DESC + desc->status = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); +#else + desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); +#endif + +} +/*******************Ip checksum offloading APIs***************************************/ +/*******************IEEE 1588 Timestamping API***************************************/ +/* + * At this time the driver supports the IEEE time stamping feature when the Enhanced Descriptors are enabled. + * For normal descriptor and the IEEE time stamp (version 1), driver support is not proviced + * Please make sure you have enabled the Advanced timestamp feature in the hardware and the driver should + * be compiled with the ADV_TME_STAMP feature. + * Some of the APIs provided here may not be valid for all configurations. Please make sure you call the + * API with due care. + */ + +/** + * This function enables the timestamping. This enables the timestamping for transmit and receive frames. + * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +#if UNUSED +void synopGMAC_TS_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSENA); + return; +} +/** + * This function disables the timestamping. + * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacTSIntMask); + return; +} + +/** + * Enable the interrupt to get timestamping interrupt. + * This enables the host to get the interrupt when (1) system time is greater or equal to the + * target time high and low register or (2) there is a overflow in th esecond register. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); + return; +} + +/** + * Disable the interrupt to get timestamping interrupt. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); + return; +} + +/** + * Enable MAC address for PTP frame filtering. + * When enabled, uses MAC address (apart from MAC address 0) to filter the PTP frames when + * PTP is sent directly over Ethernet. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSENMACADDR); + return; +} + +/** + * Disables MAC address for PTP frame filtering. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSENMACADDR); + return; +} + +/** + * Selet the type of clock mode for PTP. + * Please note to use one of the follwoing as the clk_type argument. + * GmacTSOrdClk = 0x00000000, 00=> Ordinary clock + * GmacTSBouClk = 0x00010000, 01=> Boundary clock + * GmacTSEtoEClk = 0x00020000, 10=> End-to-End transparent clock + * GmacTSPtoPClk = 0x00030000, 11=> P-to-P transparent clock + * @param[in] pointer to synopGMACdevice + * @param[in] u32 value representing one of the above clk value + * \return returns void + */ +void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type) +{ + u32 clkval; + clkval = synopGMACReadReg(gmacdev->MacBase, GmacTSControl); //set the mdc clock to the user defined value + clkval = clkval | clk_type; + synopGMACWriteReg(gmacdev->MacBase, GmacTSControl, clkval); + return; +} + +/** + * Enable Snapshot for messages relevant to Master. + * When enabled, snapshot is taken for messages relevant to master mode only, else snapshot is taken for messages relevant + * to slave node. + * Valid only for Ordinary clock and Boundary clock + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSMSTRENA); + return; +} +/** + * Disable Snapshot for messages relevant to Master. + * When disabled, snapshot is taken for messages relevant + * to slave node. + * Valid only for Ordinary clock and Boundary clock + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSMSTRENA); + return; +} +/** + * Enable Snapshot for Event messages. + * When enabled, snapshot is taken for event messages only (SYNC, Delay_Req, Pdelay_Req or Pdelay_Resp) + * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSEVNTENA); + return; +} +/** + * Disable Snapshot for Event messages. + * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSEVNTENA); + return; +} + +/** + * Enable time stamp snapshot for IPV4 frames. + * When enabled, time stamp snapshot is taken for IPV4 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV4ENA); + return; +} +/** + * Disable time stamp snapshot for IPV4 frames. + * When disabled, time stamp snapshot is not taken for IPV4 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV4ENA); + return; +} // Only for "Advanced Time Stamp" +/** + * Enable time stamp snapshot for IPV6 frames. + * When enabled, time stamp snapshot is taken for IPV6 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV6ENA); + return; +} +/** + * Disable time stamp snapshot for IPV6 frames. + * When disabled, time stamp snapshot is not taken for IPV6 frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV6ENA); + return; +} + +/** + * Enable time stamp snapshot for PTP over Ethernet frames. + * When enabled, time stamp snapshot is taken for PTP over Ethernet frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSIPENA); + return; +} +/** + * Disable time stamp snapshot for PTP over Ethernet frames. + * When disabled, time stamp snapshot is not taken for PTP over Ethernet frames + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSIPENA); + return; +} + +/** + * Snoop PTP packet for version 2 format + * When set the PTP packets are snooped using the version 2 format. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSVER2ENA); + return; +} +/** + * Snoop PTP packet for version 2 format + * When set the PTP packets are snooped using the version 2 format. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSVER2ENA); + return; +} + +/** + * Timestamp digital rollover + * When set the timestamp low register rolls over after 0x3B9A_C9FF value. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSCTRLSSR); + return; +} +/** + * Timestamp binary rollover + * When set the timestamp low register rolls over after 0x7FFF_FFFF value. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSCTRLSSR); + return; +} +/** + * Enable Time Stamp for All frames + * When set the timestamp snap shot is enabled for all frames received by the core. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSENALL); + return; +} +/** + * Disable Time Stamp for All frames + * When reset the timestamp snap shot is not enabled for all frames received by the core. + * Reserved when "Advanced Time Stamp" is not selected + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSENALL); + return; +} +/** + * Addend Register Update + * This function loads the contents of Time stamp addend register with the supplied 32 value. + * This is reserved function when only coarse correction option is selected + * @param[in] pointer to synopGMACdevice + * @param[in] 32 bit addend value + * \return returns 0 for Success or else Failure + */ +s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value) +{ + u32 loop_variable; + synopGMACWriteReg(gmacdev->MacBase, GmacTSAddend, addend_value); // Load the addend_value in to Addend register + for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) //Wait till the busy bit gets cleared with in a certain amount of time + { + if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSADDREG)) // if it is cleared then break + { + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if (loop_variable < DEFAULT_LOOP_VARIABLE) + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSADDREG); + else + { + TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } + return -ESYNOPGMACNOERR; +} +/** + * time stamp Update + * This function updates (adds/subtracts) with the value specified in the Timestamp High Update and + * Timestamp Low Update register. + * @param[in] pointer to synopGMACdevice + * @param[in] Timestamp High Update value + * @param[in] Timestamp Low Update value + * \return returns 0 for Success or else Failure + */ +s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) +{ + u32 loop_variable; + synopGMACWriteReg(gmacdev->MacBase, GmacTSHighUpdate, high_value); // Load the high value to Timestamp High register + synopGMACWriteReg(gmacdev->MacBase, GmacTSLowUpdate, low_value); // Load the high value to Timestamp High register + for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) //Wait till the busy bit gets cleared with in a certain amount of time + { + if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSUPDT)) // if it is cleared then break + { + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if (loop_variable < DEFAULT_LOOP_VARIABLE) + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSUPDT); + else + { + TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } + return -ESYNOPGMACNOERR; +} + +/** + * time stamp Initialize + * This function Loads/Initializes h the value specified in the Timestamp High Update and + * Timestamp Low Update register. + * @param[in] pointer to synopGMACdevice + * @param[in] Timestamp High Load value + * @param[in] Timestamp Low Load value + * \return returns 0 for Success or else Failure + */ +s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) +{ + u32 loop_variable; + synopGMACWriteReg(gmacdev->MacBase, GmacTSHighUpdate, high_value); // Load the high value to Timestamp High register + synopGMACWriteReg(gmacdev->MacBase, GmacTSLowUpdate, low_value); // Load the high value to Timestamp High register + for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) //Wait till the busy bit gets cleared with in a certain amount of time + { + if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSINT)) // if it is cleared then break + { + break; + } + plat_delay(DEFAULT_DELAY_VARIABLE); + } + if (loop_variable < DEFAULT_LOOP_VARIABLE) + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSINT); + else + { + TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); + return -ESYNOPGMACPHYERR; + } + return -ESYNOPGMACNOERR; +} + +/** + * Time Stamp Update Coarse + * When reset the timestamp update is done using coarse method. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev) +{ + synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSCFUPDT); + return; +} +/** + * Time Stamp Update Fine + * When reset the timestamp update is done using Fine method. + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev) +{ + synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSCFUPDT); + return; +} + +/** + * Load the Sub Second Increment value in to Sub Second increment register + * @param[in] pointer to synopGMACdevice + * \return returns void + */ +void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_value) +{ + synopGMACWriteReg(gmacdev->MacBase, GmacTSSubSecIncr, (sub_sec_inc_value & GmacSSINCMsk)); + return; +} +/** + * Reads the time stamp contents in to the respective pointers + * These registers are readonly. + * This function returns the 48 bit time stamp assuming Version 2 timestamp with higher word is selected. + * @param[in] pointer to synopGMACdevice + * @param[in] pointer to hold 16 higher bit second register contents + * @param[in] pointer to hold 32 bit second register contents + * @param[in] pointer to hold 32 bit subnanosecond register contents + * \return returns void + * \note Please note that since the atomic access to the timestamp registers is not possible, + * the contents read may be different from the actual time stamp. + */ +void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 *higher_sec_val, u32 *sec_val, u32 *sub_sec_val) +{ + * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase, GmacTSHighWord) & GmacTSHighWordMask); + * sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSHigh); + * sub_sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSLow); + return; +} +/** + * Loads the time stamp higher sec value from the value supplied + * @param[in] pointer to synopGMACdevice + * @param[in] 16 higher bit second register contents passed as 32 bit value + * \return returns void + */ +void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val) +{ + synopGMACWriteReg(gmacdev->MacBase, GmacTSHighWord, (higher_sec_val & GmacTSHighWordMask)); + return; +} +/** + * Reads the time stamp higher sec value to respective pointers + * @param[in] pointer to synopGMACdevice + * @param[in] pointer to hold 16 higher bit second register contents + * \return returns void + */ +void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 *higher_sec_val) +{ + * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase, GmacTSHighWord) & GmacTSHighWordMask); + return; +} +/** + * Load the Target time stamp registers + * This function Loads the target time stamp registers with the values proviced + * @param[in] pointer to synopGMACdevice + * @param[in] target Timestamp High value + * @param[in] target Timestamp Low value + * \return returns 0 for Success or else Failure + */ +void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val) +{ + synopGMACWriteReg(gmacdev->MacBase, GmacTSTargetTimeHigh, sec_val); + synopGMACWriteReg(gmacdev->MacBase, GmacTSTargetTimeLow, sub_sec_val); + return; +} +/** + * Reads the Target time stamp registers + * This function Loads the target time stamp registers with the values proviced + * @param[in] pointer to synopGMACdevice + * @param[in] pointer to hold target Timestamp High value + * @param[in] pointer to hold target Timestamp Low value + * \return returns 0 for Success or else Failure + */ +void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 *sec_val, u32 *sub_sec_val) +{ + * sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSTargetTimeHigh); + * sub_sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSTargetTimeLow); + return; +} +#endif diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.h new file mode 100644 index 0000000000..f47046d5ba --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Dev.h @@ -0,0 +1,1717 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + * 2020-08-10 lizhirui porting to ls2k + */ + +#define UNUSED 1 + +#ifndef SYNOP_GMAC_DEV_H +#define SYNOP_GMAC_DEV_H 1 + +/*******************************************************************/ +#define SYNOP_LOOPBACK_MODE (0) +#define SYNOP_LOOPBACK_DEBUG (0) +#define SYNOP_PHY_LOOPBACK (0) + +#define SYNOP_TX_TEST (0) +#define SYNOP_RX_TEST (0) + +#define SYNOP_TOP_DEBUG (0) +#define SYNOP_REG_DEBUG (0) +#define SYNOP_RX_DEBUG (0) +#define SYNOP_TX_DEBUG (0) + +#define ENH_DESC +/*******************************************************************/ + +#include "synopGMAC_plat.h" +#include "synopGMAC_types.h" + +//sw: typedef are included in synopGMAC_plat.h +// it is strange that we should add it here again!! + +/*SynopGMAC can support up to 32 phys*/ +#define GMAC_PHY_BASE 1 +#ifdef GMAC_PHY_BASE +#define DEFAULT_PHY_BASE GMAC_PHY_BASE +#else +#define DEFAULT_PHY_BASE PHY16 //We use First Phy +#endif +#define MACBASE 0x0000 // The Mac Base address offset is 0x0000 +#define DMABASE 0x1000 // Dma base address starts with an offset 0x1000 + + +enum GMACPhyBase +{ + PHY0 = 0, //The device can support 32 phys, but we use first phy only + PHY1 = 1, + PHY16 = 16, + PHY31 = 31, +}; + + +//#define TRANSMIT_DESC_SIZE 256 //Tx Descriptors needed in the Descriptor pool/queue +//#define RECEIVE_DESC_SIZE 256 //Rx Descriptors needed in the Descriptor pool/queue +//#define TRANSMIT_DESC_SIZE 13//256 //Tx Descriptors needed in the Descriptor pool/queue +#define TRANSMIT_DESC_SIZE 36 //48 //Tx Descriptors needed in the Descriptor pool/queue +#define RECEIVE_DESC_SIZE 36 //96 //Rx Descriptors needed in the Descriptor pool/queue + +#define ETHERNET_HEADER 14 //6 byte Dest addr, 6 byte Src addr, 2 byte length/type +#define ETHERNET_CRC 4 //Ethernet CRC +#define ETHERNET_EXTRA 2 //Only God knows about this????? +#define ETHERNET_PACKET_COPY 250 // Maximum length when received data is copied on to a new skb +#define ETHERNET_PACKET_EXTRA 18 // Preallocated length for the rx packets is MTU + ETHERNET_PACKET_EXTRA +#define VLAN_TAG 4 //optional 802.1q VLAN Tag +#define MIN_ETHERNET_PAYLOAD 46 //Minimum Ethernet payload size +#define MAX_ETHERNET_PAYLOAD 1500 //Maximum Ethernet payload size +#define JUMBO_FRAME_PAYLOAD 9000 //Jumbo frame payload size + +#define TX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG + 1000 +#define RX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG + 1000 + + +// This is the IP's phy address. This is unique address for every MAC in the universe +#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} + +/* +DMA Descriptor Structure +The structure is common for both receive and transmit descriptors +The descriptor is of 4 words, but our structrue contains 6 words where +last two words are to hold the virtual address of the network buffer pointers +for driver's use +From the GMAC core release 3.50a onwards, the Enhanced Descriptor structure got changed. +The descriptor (both transmit and receive) are of 8 words each rather the 4 words of normal +descriptor structure. +Whenever IEEE 1588 Timestamping is enabled TX/RX DESC6 provides the lower 32 bits of Timestamp value and + TX/RX DESC7 provides the upper 32 bits of Timestamp value +In addition to this whenever extended status bit is set (RX DESC0 bit 0), RX DESC4 contains the extended status information +*/ + +#define MODULO_INTERRUPT 1 // if it is set to 1, interrupt is available for all the descriptors or else interrupt is available only for + // descriptor whose index%MODULO_INTERRUPT is zero +#ifdef ENH_DESC_8W +typedef struct DmaDescStruct +{ + u32 status; /* Status */ + u32 length; /* Buffer 1 and Buffer 2 length */ + u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ + u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ + /* This data below is used only by driver */ + u32 extstatus; /* Extended status of a Rx Descriptor */ + u32 reserved1; /* Reserved word */ + u32 timestamplow; /* Lower 32 bits of the 64 bit timestamp value */ + u32 timestamphigh; /* Higher 32 bits of the 64 bit timestamp value */ + u64 data1; /* This holds virtual address of buffer1, not used by DMA */ + u64 data2; /* This holds virtual address of buffer2, not used by DMA */ +} DmaDesc; +#else +typedef struct DmaDescStruct +{ + u32 status; /* Status */ + u32 length; /* Buffer 1 and Buffer 2 length */ + u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ + u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ + /* This data below is used only by driver */ + u64 data1; /* This holds virtual address of buffer1, not used by DMA */ + u64 data2; /* This holds virtual address of buffer2, not used by DMA */ + + //u32 dummy1; //sw: for addr align + //u32 dummy2; // + +} DmaDesc; +#endif + +enum DescMode +{ + RINGMODE = 0x00000001, + CHAINMODE = 0x00000002, +}; + +enum BufferMode +{ + SINGLEBUF = 0x00000001, + DUALBUF = 0x00000002, +}; + +/* synopGMAC device data */ + +typedef struct synopGMACDeviceStruct +{ + u64 MacBase; /* base address of MAC registers */ + u64 DmaBase; /* base address of DMA registers */ + u64 PhyBase; /* PHY device address on MII interface */ + u32 Version; /* Gmac Revision version */ + + dma_addr_t TxDescDma; /* Dma-able address of first tx descriptor either in ring or chain mode, this is used by the GMAC device*/ + dma_addr_t RxDescDma; /* Dma-able address of first rx descriptor either in ring or chain mode, this is used by the GMAC device*/ + DmaDesc *TxDesc; /* start address of TX descriptors ring or chain, this is used by the driver */ + DmaDesc *RxDesc; /* start address of RX descriptors ring or chain, this is used by the driver */ + + u32 BusyTxDesc; /* Number of Tx Descriptors owned by DMA at any given time*/ + u32 BusyRxDesc; /* Number of Rx Descriptors owned by DMA at any given time*/ + + u32 RxDescCount; /* number of rx descriptors in the tx descriptor queue/pool */ + u32 TxDescCount; /* number of tx descriptors in the rx descriptor queue/pool */ + + u32 TxBusy; /* index of the tx descriptor owned by DMA, is obtained by synopGMAC_get_tx_qptr() */ + u32 TxNext; /* index of the tx descriptor next available with driver, given to DMA by synopGMAC_set_tx_qptr() */ + u32 RxBusy; /* index of the rx descriptor owned by DMA, obtained by synopGMAC_get_rx_qptr() */ + u32 RxNext; /* index of the rx descriptor next available with driver, given to DMA by synopGMAC_set_rx_qptr() */ + + DmaDesc * TxBusyDesc; /* Tx Descriptor address corresponding to the index TxBusy */ + DmaDesc * TxNextDesc; /* Tx Descriptor address corresponding to the index TxNext */ + DmaDesc * RxBusyDesc; /* Rx Descriptor address corresponding to the index TxBusy */ + DmaDesc * RxNextDesc; /* Rx Descriptor address corresponding to the index RxNext */ + + /*Phy related stuff*/ + u32 ClockDivMdc; /* Clock divider value programmed in the hardware */ + /* The status of the link */ + u32 LinkState0; /* Link status as reported by the Marvel Phy */ + u32 LinkState; /* Link status as reported by the Marvel Phy */ + u32 DuplexMode; /* Duplex mode of the Phy */ + u32 Speed; /* Speed of the Phy */ + u32 LoopBackMode; /* Loopback status of the Phy */ +// void * FirstTxDesc; +// void * FirstRxDesc; +// u32 skb_array[RECEIVE_DESC_SIZE]; +} synopGMACdevice; + +/* Below is "88E1011/88E1011S Integrated 10/100/1000 Gigabit Ethernet Transceiver" + * Register and their layouts. This Phy has been used in the Dot Aster GMAC Phy daughter. + * Since the Phy register map is standard, this map hardly changes to a different Ppy + */ +enum MiiRegisters +{ + PHY_CONTROL_REG = 0x0000, /*Control Register*/ + PHY_STATUS_REG = 0x0001, /*Status Register */ + PHY_ID_HI_REG = 0x0002, /*PHY Identifier High Register*/ + PHY_ID_LOW_REG = 0x0003, /*PHY Identifier High Register*/ + PHY_AN_ADV_REG = 0x0004, /*Auto-Negotiation Advertisement Register*/ + PHY_LNK_PART_ABl_REG = 0x0005, /*Link Partner Ability Register (Base Page)*/ + PHY_AN_EXP_REG = 0x0006, /*Auto-Negotiation Expansion Register*/ + PHY_AN_NXT_PAGE_TX_REG = 0x0007, /*Next Page Transmit Register*/ + PHY_LNK_PART_NXT_PAGE_REG = 0x0008, /*Link Partner Next Page Register*/ + PHY_1000BT_CTRL_REG = 0x0009, /*1000BASE-T Control Register*/ + PHY_1000BT_STATUS_REG = 0x000a, /*1000BASE-T Status Register*/ + PHY_SPECIFIC_CTRL_REG = 0x0010, /*Phy specific control register*/ + PHY_SPECIFIC_STATUS_REG = 0x0011, /*Phy specific status register*/ + PHY_INTERRUPT_ENABLE_REG = 0x0012, /*Phy interrupt enable register*/ + PHY_INTERRUPT_STATUS_REG = 0x0013, /*Phy interrupt status register*/ + PHY_EXT_PHY_SPC_CTRL = 0x0014, /*Extended Phy specific control*/ + PHY_RX_ERR_COUNTER = 0x0015, /*Receive Error Counter*/ + PHY_EXT_ADDR_CBL_DIAG = 0x0016, /*Extended address for cable diagnostic register*/ + PHY_LED_CONTROL = 0x0018, /*LED Control*/ + PHY_MAN_LED_OVERIDE = 0x0019, /*Manual LED override register*/ + PHY_EXT_PHY_SPC_CTRL2 = 0x001a, /*Extended Phy specific control 2*/ + PHY_EXT_PHY_SPC_STATUS = 0x001b, /*Extended Phy specific status*/ + PHY_CBL_DIAG_REG = 0x001c, /*Cable diagnostic registers*/ +}; + +/* This is Control register layout. Control register is of 16 bit wide. +*/ +enum Mii_GEN_CTRL +{ /* Description bits R/W default value */ + Mii_reset = 0x8000, + Mii_Speed_10 = 0x0000, /* 10 Mbps 6:13 RW */ + Mii_Speed_100 = 0x2000, /* 100 Mbps 6:13 RW */ + Mii_Speed_1000 = 0x0040, /* 1000 Mbit/s 6:13 RW */ + + Mii_Duplex = 0x0100, /* Full Duplex mode 8 RW */ + + Mii_Manual_Master_Config = 0x0800, /* Manual Master Config 11 RW */ + + Mii_Loopback = 0x4000, /* Enable Loop back 14 RW */ + Mii_NoLoopback = 0x0000, /* Enable Loop back 14 RW */ +}; + +enum Mii_Phy_Status +{ + Mii_phy_status_speed_10 = 0x0000, + Mii_phy_status_speed_100 = 0x4000, + Mii_phy_status_speed_1000 = 0x8000, + + Mii_phy_status_full_duplex = 0x2000, + Mii_phy_status_half_duplex = 0x0000, + + Mii_phy_status_link_up = 0x0400, //lyf:rtl 8211 phy +// Mii_phy_status_link_up = 0x0100, //sw: broadcom BCM5461 PHY +}; +/* This is Status register layout. Status register is of 16 bit wide. +*/ +enum Mii_GEN_STATUS +{ + Mii_AutoNegCmplt = 0x0020, /* Autonegotiation completed 5 RW */ + Mii_Link = 0x0004, /* Link status 2 RW */ +}; + +enum Mii_Link_Status +{ + LINKDOWN = 0, + LINKUP = 1, +}; + +enum Mii_Duplex_Mode +{ + HALFDUPLEX = 1, + FULLDUPLEX = 2, +}; +enum Mii_Link_Speed +{ + SPEED10 = 1, + SPEED100 = 2, + SPEED1000 = 3, +}; + +enum Mii_Loop_Back +{ + NOLOOPBACK = 0, + LOOPBACK = 1, +}; + +/********************************************************** + * GMAC registers Map + * For Pci based system address is BARx + GmacRegisterBase + * For any other system translation is done accordingly + **********************************************************/ +enum GmacRegisters +{ + GmacConfig = 0x0000, /* Mac config Register */ + GmacFrameFilter = 0x0004, /* Mac frame filtering controls */ + GmacHashHigh = 0x0008, /* Multi-cast hash table high */ + GmacHashLow = 0x000C, /* Multi-cast hash table low */ + GmacGmiiAddr = 0x0010, /* GMII address Register(ext. Phy) */ + GmacGmiiData = 0x0014, /* GMII data Register(ext. Phy) */ + GmacFlowControl = 0x0018, /* Flow control Register */ + GmacVlan = 0x001C, /* VLAN tag Register (IEEE 802.1Q) */ + + GmacVersion = 0x0020, /* GMAC Core Version Register */ + GmacWakeupAddr = 0x0028, /* GMAC wake-up frame filter adrress reg */ + GmacPmtCtrlStatus = 0x002C, /* PMT control and status register */ + + GmacInterruptStatus = 0x0038, /* Mac Interrupt ststus register */ + GmacInterruptMask = 0x003C, /* Mac Interrupt Mask register */ + + GmacAddr0High = 0x0040, /* Mac address0 high Register */ + GmacAddr0Low = 0x0044, /* Mac address0 low Register */ + GmacAddr1High = 0x0048, /* Mac address1 high Register */ + GmacAddr1Low = 0x004C, /* Mac address1 low Register */ + GmacAddr2High = 0x0050, /* Mac address2 high Register */ + GmacAddr2Low = 0x0054, /* Mac address2 low Register */ + GmacAddr3High = 0x0058, /* Mac address3 high Register */ + GmacAddr3Low = 0x005C, /* Mac address3 low Register */ + GmacAddr4High = 0x0060, /* Mac address4 high Register */ + GmacAddr4Low = 0x0064, /* Mac address4 low Register */ + GmacAddr5High = 0x0068, /* Mac address5 high Register */ + GmacAddr5Low = 0x006C, /* Mac address5 low Register */ + GmacAddr6High = 0x0070, /* Mac address6 high Register */ + GmacAddr6Low = 0x0074, /* Mac address6 low Register */ + GmacAddr7High = 0x0078, /* Mac address7 high Register */ + GmacAddr7Low = 0x007C, /* Mac address7 low Register */ + GmacAddr8High = 0x0080, /* Mac address8 high Register */ + GmacAddr8Low = 0x0084, /* Mac address8 low Register */ + GmacAddr9High = 0x0088, /* Mac address9 high Register */ + GmacAddr9Low = 0x008C, /* Mac address9 low Register */ + GmacAddr10High = 0x0090, /* Mac address10 high Register */ + GmacAddr10Low = 0x0094, /* Mac address10 low Register */ + GmacAddr11High = 0x0098, /* Mac address11 high Register */ + GmacAddr11Low = 0x009C, /* Mac address11 low Register */ + GmacAddr12High = 0x00A0, /* Mac address12 high Register */ + GmacAddr12Low = 0x00A4, /* Mac address12 low Register */ + GmacAddr13High = 0x00A8, /* Mac address13 high Register */ + GmacAddr13Low = 0x00AC, /* Mac address13 low Register */ + GmacAddr14High = 0x00B0, /* Mac address14 high Register */ + GmacAddr14Low = 0x00B4, /* Mac address14 low Register */ + GmacAddr15High = 0x00B8, /* Mac address15 high Register */ + GmacAddr15Low = 0x00BC, /* Mac address15 low Register */ + GmacStatus = 0x00d8, /* MAC status */ + + /*Time Stamp Register Map*/ + GmacTSControl = 0x0700, /* Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ + + GmacTSSubSecIncr = 0x0704, /* 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSHigh = 0x0708, /* 32 bit seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ + GmacTSLow = 0x070C, /* 32 bit nano seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSHighUpdate = 0x0710, /* 32 bit seconds(MS) to be written/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ + GmacTSLowUpdate = 0x0714, /* 32 bit nano seconds(MS) to be writeen/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSAddend = 0x0718, /* Used by Software to readjust the clock frequency linearly : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSTargetTimeHigh = 0x071C, /* 32 bit seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ + GmacTSTargetTimeLow = 0x0720, /* 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ + + GmacTSHighWord = 0x0724, /* Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ +//GmacTSHighWordUpdate = 0x072C, /* Time Stamp Higher Word Update Register (Version 2 only); only lower 16 bits are valid */ + + GmacTSStatus = 0x0728, /* Time Stamp Status Register */ +}; + +/********************************************************** + * GMAC Network interface registers + * This explains the Register's Layout + + * FES is Read only by default and is enabled only when Tx + * Config Parameter is enabled for RGMII/SGMII interface + * during CoreKit Config. + + * DM is Read only with value 1'b1 in Full duplex only Config + **********************************************************/ + +/* GmacConfig = 0x0000, Mac config Register Layout */ +enum GmacConfigReg +{ + /* Bit description Bits R/W Reset value */ + GmacWatchdog = 0x00800000, + GmacWatchdogDisable = 0x00800000, /* (WD)Disable watchdog timer on Rx 23 RW */ + GmacWatchdogEnable = 0x00000000, /* Enable watchdog timer 0 */ + + GmacJabber = 0x00400000, + GmacJabberDisable = 0x00400000, /* (JD)Disable jabber timer on Tx 22 RW */ + GmacJabberEnable = 0x00000000, /* Enable jabber timer 0 */ + + GmacFrameBurst = 0x00200000, + GmacFrameBurstEnable = 0x00200000, /* (BE)Enable frame bursting during Tx 21 RW */ + GmacFrameBurstDisable = 0x00000000, /* Disable frame bursting 0 */ + + GmacJumboFrame = 0x00100000, + GmacJumboFrameEnable = 0x00100000, /* (JE)Enable jumbo frame for Tx 20 RW */ + GmacJumboFrameDisable = 0x00000000, /* Disable jumbo frame 0 */ + + GmacInterFrameGap7 = 0x000E0000, /* (IFG) Config7 - 40 bit times 19:17 RW */ + GmacInterFrameGap6 = 0x000C0000, /* (IFG) Config6 - 48 bit times */ + GmacInterFrameGap5 = 0x000A0000, /* (IFG) Config5 - 56 bit times */ + GmacInterFrameGap4 = 0x00080000, /* (IFG) Config4 - 64 bit times */ + GmacInterFrameGap3 = 0x00040000, /* (IFG) Config3 - 72 bit times */ + GmacInterFrameGap2 = 0x00020000, /* (IFG) Config2 - 80 bit times */ + GmacInterFrameGap1 = 0x00010000, /* (IFG) Config1 - 88 bit times */ + GmacInterFrameGap0 = 0x00000000, /* (IFG) Config0 - 96 bit times 000 */ + + GmacDisableCrs = 0x00010000, + GmacMiiGmii = 0x00008000, + GmacSelectMii = 0x00008000, /* (PS)Port Select-MII mode 15 RW */ + GmacSelectGmii = 0x00000000, /* GMII mode 0 */ + + GmacFESpeed100 = 0x00004000, /*(FES)Fast Ethernet speed 100Mbps 14 RW */ + GmacFESpeed10 = 0x00000000, /* 10Mbps 0 */ + + GmacRxOwn = 0x00002000, + GmacDisableRxOwn = 0x00002000, /* (DO)Disable receive own packets 13 RW */ + GmacEnableRxOwn = 0x00000000, /* Enable receive own packets 0 */ + + GmacLoopback = 0x00001000, + GmacLoopbackOn = 0x00001000, /* (LM)Loopback mode for GMII/MII 12 RW */ + GmacLoopbackOff = 0x00000000, /* Normal mode 0 */ + + GmacDuplex = 0x00000800, + GmacFullDuplex = 0x00000800, /* (DM)Full duplex mode 11 RW */ + GmacHalfDuplex = 0x00000000, /* Half duplex mode 0 */ + + GmacRxIpcOffload = 0x00000400, /* IPC checksum offload 10 RW 0 */ + + GmacRetry = 0x00000200, + GmacRetryDisable = 0x00000200, /* (DR)Disable Retry 9 RW */ + GmacRetryEnable = 0x00000000, /* Enable retransmission as per BL 0 */ + + GmacLinkUp = 0x00000100, /* (LUD)Link UP 8 RW */ + GmacLinkDown = 0x00000100, /* Link Down 0 */ + + GmacPadCrcStrip = 0x00000080, + GmacPadCrcStripEnable = 0x00000080, /* (ACS) Automatic Pad/Crc strip enable 7 RW */ + GmacPadCrcStripDisable = 0x00000000, /* Automatic Pad/Crc stripping disable 0 */ + + GmacBackoffLimit = 0x00000060, + GmacBackoffLimit3 = 0x00000060, /* (BL)Back-off limit in HD mode 6:5 RW */ + GmacBackoffLimit2 = 0x00000040, /* */ + GmacBackoffLimit1 = 0x00000020, /* */ + GmacBackoffLimit0 = 0x00000000, /* 00 */ + + GmacDeferralCheck = 0x00000010, + GmacDeferralCheckEnable = 0x00000010, /* (DC)Deferral check enable in HD mode 4 RW */ + GmacDeferralCheckDisable = 0x00000000, /* Deferral check disable 0 */ + + GmacTx = 0x00000008, + GmacTxEnable = 0x00000008, /* (TE)Transmitter enable 3 RW */ + GmacTxDisable = 0x00000000, /* Transmitter disable 0 */ + + GmacRx = 0x00000004, + GmacRxEnable = 0x00000004, /* (RE)Receiver enable 2 RW */ + GmacRxDisable = 0x00000000, /* Receiver disable 0 */ +}; + +/* GmacFrameFilter = 0x0004, Mac frame filtering controls Register Layout*/ +enum GmacFrameFilterReg +{ + GmacFilter = 0x80000000, + GmacFilterOff = 0x80000000, /* (RA)Receive all incoming packets 31 RW */ + GmacFilterOn = 0x00000000, /* Receive filtered packets only 0 */ + + GmacHashPerfectFilter = 0x00000400, /*Hash or Perfect Filter enable 10 RW 0 */ + + GmacSrcAddrFilter = 0x00000200, + GmacSrcAddrFilterEnable = 0x00000200, /* (SAF)Source Address Filter enable 9 RW */ + GmacSrcAddrFilterDisable = 0x00000000, /* 0 */ + + GmacSrcInvaAddrFilter = 0x00000100, + GmacSrcInvAddrFilterEn = 0x00000100, /* (SAIF)Inv Src Addr Filter enable 8 RW */ + GmacSrcInvAddrFilterDis = 0x00000000, /* 0 */ + + GmacPassControl = 0x000000C0, + GmacPassControl3 = 0x000000C0, /* (PCS)Forwards ctrl frms that pass AF 7:6 RW */ + GmacPassControl2 = 0x00000080, /* Forwards all control frames */ + GmacPassControl1 = 0x00000040, /* Does not pass control frames */ + GmacPassControl0 = 0x00000000, /* Does not pass control frames 00 */ + + GmacBroadcast = 0x00000020, + GmacBroadcastDisable = 0x00000020, /* (DBF)Disable Rx of broadcast frames 5 RW */ + GmacBroadcastEnable = 0x00000000, /* Enable broadcast frames 0 */ + + GmacMulticastFilter = 0x00000010, + GmacMulticastFilterOff = 0x00000010, /* (PM) Pass all multicast packets 4 RW */ + GmacMulticastFilterOn = 0x00000000, /* Pass filtered multicast packets 0 */ + + GmacDestAddrFilter = 0x00000008, + GmacDestAddrFilterInv = 0x00000008, /* (DAIF)Inverse filtering for DA 3 RW */ + GmacDestAddrFilterNor = 0x00000000, /* Normal filtering for DA 0 */ + + GmacMcastHashFilter = 0x00000004, + GmacMcastHashFilterOn = 0x00000004, /* (HMC)perfom multicast hash filtering 2 RW */ + GmacMcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ + + GmacUcastHashFilter = 0x00000002, + GmacUcastHashFilterOn = 0x00000002, /* (HUC)Unicast Hash filtering only 1 RW */ + GmacUcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ + + GmacPromiscuousMode = 0x00000001, + GmacPromiscuousModeOn = 0x00000001, /* Receive all frames 0 RW */ + GmacPromiscuousModeOff = 0x00000000, /* Receive filtered packets only 0 */ +}; + +/*GmacGmiiAddr = 0x0010, GMII address Register(ext. Phy) Layout */ +enum GmacGmiiAddrReg +{ + GmiiDevMask = 0x0000F800, /* (PA)GMII device address 15:11 RW 0x00 */ + GmiiDevShift = 11, + + GmiiRegMask = 0x000007C0, /* (GR)GMII register in selected Phy 10:6 RW 0x00 */ + GmiiRegShift = 6, + + GmiiCsrClkMask = 0x0000001C, /* CSR Clock bit Mask 4:2 */ + GmiiCsrClk5 = 0x00000014, /* (CR)CSR Clock Range 250-300 MHz 4:2 RW 000 */ + GmiiCsrClk4 = 0x00000010, /* 150-250 MHz */ + GmiiCsrClk3 = 0x0000000C, /* 35-60 MHz */ + GmiiCsrClk2 = 0x00000008, /* 20-35 MHz */ + GmiiCsrClk1 = 0x00000004, /* 100-150 MHz */ + GmiiCsrClk0 = 0x00000000, /* 60-100 MHz */ + + GmiiWrite = 0x00000002, /* (GW)Write to register 1 RW */ + GmiiRead = 0x00000000, /* Read from register 0 */ + + GmiiBusy = 0x00000001, /* (GB)GMII interface is busy 0 RW 0 */ +}; + +/* GmacGmiiData = 0x0014, GMII data Register(ext. Phy) Layout */ +enum GmacGmiiDataReg +{ + GmiiDataMask = 0x0000FFFF, /* (GD)GMII Data 15:0 RW 0x0000 */ +}; + +/*GmacFlowControl = 0x0018, Flow control Register Layout */ +enum GmacFlowControlReg +{ + GmacPauseTimeMask = 0xFFFF0000, /* (PT) PAUSE TIME field in the control frame 31:16 RW 0x0000 */ + GmacPauseTimeShift = 16, + + GmacPauseLowThresh = 0x00000030, + GmacPauseLowThresh3 = 0x00000030, /* (PLT)thresh for pause tmr 256 slot time 5:4 RW */ + GmacPauseLowThresh2 = 0x00000020, /* 144 slot time */ + GmacPauseLowThresh1 = 0x00000010, /* 28 slot time */ + GmacPauseLowThresh0 = 0x00000000, /* 4 slot time 000 */ + + GmacUnicastPauseFrame = 0x00000008, + GmacUnicastPauseFrameOn = 0x00000008, /* (UP)Detect pause frame with unicast addr. 3 RW */ + GmacUnicastPauseFrameOff = 0x00000000, /* Detect only pause frame with multicast addr. 0 */ + + GmacRxFlowControl = 0x00000004, + GmacRxFlowControlEnable = 0x00000004, /* (RFE)Enable Rx flow control 2 RW */ + GmacRxFlowControlDisable = 0x00000000, /* Disable Rx flow control 0 */ + + GmacTxFlowControl = 0x00000002, + GmacTxFlowControlEnable = 0x00000002, /* (TFE)Enable Tx flow control 1 RW */ + GmacTxFlowControlDisable = 0x00000000, /* Disable flow control 0 */ + + GmacFlowControlBackPressure= 0x00000001, + GmacSendPauseFrame = 0x00000001, /* (FCB/PBA)send pause frm/Apply back pressure 0 RW 0 */ +}; + +/* GmacInterruptStatus = 0x0038, Mac Interrupt ststus register */ +enum GmacInterruptStatusBitDefinition +{ + GmacTSIntSts = 0x00000200, /* set if int generated due to TS (Read Time Stamp Status Register to know details)*/ + GmacMmcRxChksumOffload = 0x00000080, /* set if int generated in MMC RX CHECKSUM OFFLOAD int register */ + GmacMmcTxIntSts = 0x00000040, /* set if int generated in MMC TX Int register */ + GmacMmcRxIntSts = 0x00000020, /* set if int generated in MMC RX Int register */ + GmacMmcIntSts = 0x00000010, /* set if any of the above bit [7:5] is set */ + GmacPmtIntSts = 0x00000008, /* set whenver magic pkt/wake-on-lan frame is received */ + GmacPcsAnComplete = 0x00000004, /* set when AN is complete in TBI/RTBI/SGMIII phy interface */ + GmacPcsLnkStsChange = 0x00000002, /* set if any lnk status change in TBI/RTBI/SGMII interface */ + GmacRgmiiIntSts = 0x00000001, /* set if any change in lnk status of RGMII interface */ +}; + +/* GmacInterruptMask = 0x003C, Mac Interrupt Mask register */ +enum GmacInterruptMaskBitDefinition +{ + GmacTSIntMask = 0x00000200, /* when set disables the time stamp interrupt generation */ + GmacPmtIntMask = 0x00000008, /* when set Disables the assertion of PMT interrupt */ + GmacPcsAnIntMask = 0x00000004, /* When set disables the assertion of PCS AN complete interrupt */ + GmacPcsLnkStsIntMask = 0x00000002, /* when set disables the assertion of PCS lnk status change interrupt */ + GmacRgmiiIntMask = 0x00000001, /* when set disables the assertion of RGMII int */ +}; + +/********************************************************** + * GMAC DMA registers + * For Pci based system address is BARx + GmaDmaBase + * For any other system translation is done accordingly + **********************************************************/ +enum DmaRegisters +{ + DmaBusMode = 0x0000, /* CSR0 - Bus Mode Register */ + DmaTxPollDemand = 0x0004, /* CSR1 - Transmit Poll Demand Register */ + DmaRxPollDemand = 0x0008, /* CSR2 - Receive Poll Demand Register */ + DmaRxBaseAddr = 0x000C, /* CSR3 - Receive Descriptor list base address */ + DmaTxBaseAddr = 0x0010, /* CSR4 - Transmit Descriptor list base address */ + DmaStatus = 0x0014, /* CSR5 - Dma status Register */ + DmaControl = 0x0018, /* CSR6 - Dma Operation Mode Register */ + DmaInterrupt = 0x001C, /* CSR7 - Interrupt enable */ + DmaMissedFr = 0x0020, /* CSR8 - Missed Frame & Buffer overflow Counter */ + DmaTxCurrDesc = 0x0048, /* - Current host Tx Desc Register */ + DmaRxCurrDesc = 0x004C, /* - Current host Rx Desc Register */ + DmaTxCurrAddr = 0x0050, /* CSR20 - Current host transmit buffer address */ + DmaRxCurrAddr = 0x0054, /* CSR21 - Current host receive buffer address */ +}; + +/********************************************************** + * DMA Engine registers Layout + **********************************************************/ + +/*DmaBusMode = 0x0000, CSR0 - Bus Mode */ +enum DmaBusModeReg +{ /* Bit description Bits R/W Reset value */ + DmaFixedBurstEnable = 0x00010000, /* (FB)Fixed Burst SINGLE, INCR4, INCR8 or INCR16 16 RW */ + DmaFixedBurstDisable = 0x00000000, /* SINGLE, INCR 0 */ + + DmaTxPriorityRatio11 = 0x00000000, /* (PR)TX:RX DMA priority ratio 1:1 15:14 RW 00 */ + DmaTxPriorityRatio21 = 0x00004000, /* (PR)TX:RX DMA priority ratio 2:1 */ + DmaTxPriorityRatio31 = 0x00008000, /* (PR)TX:RX DMA priority ratio 3:1 */ + DmaTxPriorityRatio41 = 0x0000C000, /* (PR)TX:RX DMA priority ratio 4:1 */ + + DmaBurstLengthx8 = 0x01000000, /* When set mutiplies the PBL by 8 24 RW 0 */ + + DmaBurstLength256 = 0x01002000, /*(DmaBurstLengthx8 | DmaBurstLength32) = 256 [24]:13:8 */ + DmaBurstLength128 = 0x01001000, /*(DmaBurstLengthx8 | DmaBurstLength16) = 128 [24]:13:8 */ + DmaBurstLength64 = 0x01000800, /*(DmaBurstLengthx8 | DmaBurstLength8) = 64 [24]:13:8 */ + DmaBurstLength32 = 0x00002000, /* (PBL) programmable Dma burst length = 32 13:8 RW */ + DmaBurstLength16 = 0x00001000, /* Dma burst length = 16 */ + DmaBurstLength8 = 0x00000800, /* Dma burst length = 8 */ + DmaBurstLength4 = 0x00000400, /* Dma burst length = 4 */ + DmaBurstLength2 = 0x00000200, /* Dma burst length = 2 */ + DmaBurstLength1 = 0x00000100, /* Dma burst length = 1 */ + DmaBurstLength0 = 0x00000000, /* Dma burst length = 0 0x00 */ + + DmaDescriptor8Words = 0x00000080, /* Enh Descriptor works 1=> 8 word descriptor 7 0 */ + DmaDescriptor4Words = 0x00000000, /* Enh Descriptor works 0=> 4 word descriptor 7 0 */ + + DmaDescriptorSkip16 = 0x00000040, /* (DSL)Descriptor skip length (no.of dwords) 6:2 RW */ + DmaDescriptorSkip8 = 0x00000020, /* between two unchained descriptors */ + DmaDescriptorSkip4 = 0x00000010, /* */ + DmaDescriptorSkip2 = 0x00000008, /* */ + DmaDescriptorSkip1 = 0x00000004, /* */ + DmaDescriptorSkip0 = 0x00000000, /* 0x00 */ + + DmaArbitRr = 0x00000000, /* (DA) DMA RR arbitration 1 RW 0 */ + DmaArbitPr = 0x00000002, /* Rx has priority over Tx */ + + DmaResetOn = 0x00000001, /* (SWR)Software Reset DMA engine 0 RW */ + DmaResetOff = 0x00000000, /* 0 */ +}; + +/*DmaStatus = 0x0014, CSR5 - Dma status Register */ +enum DmaStatusReg +{ + /*Bit 28 27 and 26 indicate whether the interrupt due to PMT GMACMMC or GMAC LINE Remaining bits are DMA interrupts*/ + GmacPmtIntr = 0x10000000, /* (GPI)Gmac subsystem interrupt 28 RO 0 */ + GmacMmcIntr = 0x08000000, /* (GMI)Gmac MMC subsystem interrupt 27 RO 0 */ + GmacLineIntfIntr = 0x04000000, /* Line interface interrupt 26 RO 0 */ + + DmaErrorBit2 = 0x02000000, /* (EB)Error bits 0-data buffer, 1-desc. access 25 RO 0 */ + DmaErrorBit1 = 0x01000000, /* (EB)Error bits 0-write trnsf, 1-read transfr 24 RO 0 */ + DmaErrorBit0 = 0x00800000, /* (EB)Error bits 0-Rx DMA, 1-Tx DMA 23 RO 0 */ + + DmaTxState = 0x00700000, /* (TS)Transmit process state 22:20 RO */ + DmaTxStopped = 0x00000000, /* Stopped - Reset or Stop Tx Command issued 000 */ + DmaTxFetching = 0x00100000, /* Running - fetching the Tx descriptor */ + DmaTxWaiting = 0x00200000, /* Running - waiting for status */ + DmaTxReading = 0x00300000, /* Running - reading the data from host memory */ + DmaTxSuspended = 0x00600000, /* Suspended - Tx Descriptor unavailabe */ + DmaTxClosing = 0x00700000, /* Running - closing Rx descriptor */ + + DmaRxState = 0x000E0000, /* (RS)Receive process state 19:17 RO */ + DmaRxStopped = 0x00000000, /* Stopped - Reset or Stop Rx Command issued 000 */ + DmaRxFetching = 0x00020000, /* Running - fetching the Rx descriptor */ + DmaRxWaiting = 0x00060000, /* Running - waiting for packet */ + DmaRxSuspended = 0x00080000, /* Suspended - Rx Descriptor unavailable */ + DmaRxClosing = 0x000A0000, /* Running - closing descriptor */ + DmaRxQueuing = 0x000E0000, /* Running - queuing the recieve frame into host memory */ + + DmaIntNormal = 0x00010000, /* (NIS)Normal interrupt summary 16 RW 0 */ + DmaIntAbnormal = 0x00008000, /* (AIS)Abnormal interrupt summary 15 RW 0 */ + + DmaIntEarlyRx = 0x00004000, /* Early receive interrupt (Normal) RW 0 */ + DmaIntBusError = 0x00002000, /* Fatal bus error (Abnormal) RW 0 */ + DmaIntEarlyTx = 0x00000400, /* Early transmit interrupt (Abnormal) RW 0 */ + DmaIntRxWdogTO = 0x00000200, /* Receive Watchdog Timeout (Abnormal) RW 0 */ + DmaIntRxStopped = 0x00000100, /* Receive process stopped (Abnormal) RW 0 */ + DmaIntRxNoBuffer = 0x00000080, /* Receive buffer unavailable (Abnormal) RW 0 */ + DmaIntRxCompleted = 0x00000040, /* Completion of frame reception (Normal) RW 0 */ + DmaIntTxUnderflow = 0x00000020, /* Transmit underflow (Abnormal) RW 0 */ + DmaIntRcvOverflow = 0x00000010, /* Receive Buffer overflow interrupt RW 0 */ + DmaIntTxJabberTO = 0x00000008, /* Transmit Jabber Timeout (Abnormal) RW 0 */ + DmaIntTxNoBuffer = 0x00000004, /* Transmit buffer unavailable (Normal) RW 0 */ + DmaIntTxStopped = 0x00000002, /* Transmit process stopped (Abnormal) RW 0 */ + DmaIntTxCompleted = 0x00000001, /* Transmit completed (Normal) RW 0 */ +}; + +/*DmaControl = 0x0018, CSR6 - Dma Operation Mode Register */ +enum DmaControlReg +{ + DmaDisableDropTcpCs = 0x04000000, /* (DT) Dis. drop. of tcp/ip CS error frames 26 RW 0 */ + + DmaStoreAndForward = 0x02200000, /* (SF)Store and forward 21 RW 0 */ + DmaFlushTxFifo = 0x00100000, /* (FTF)Tx FIFO controller is reset to default 20 RW 0 */ + + DmaTxThreshCtrl = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16:14 RW */ + DmaTxThreshCtrl16 = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16 16:14 RW */ + DmaTxThreshCtrl24 = 0x00018000, /* (TTC)Controls thre Threh of MTL tx Fifo 24 16:14 RW */ + DmaTxThreshCtrl32 = 0x00014000, /* (TTC)Controls thre Threh of MTL tx Fifo 32 16:14 RW */ + DmaTxThreshCtrl40 = 0x00010000, /* (TTC)Controls thre Threh of MTL tx Fifo 40 16:14 RW */ + DmaTxThreshCtrl256 = 0x0000c000, /* (TTC)Controls thre Threh of MTL tx Fifo 256 16:14 RW */ + DmaTxThreshCtrl192 = 0x00008000, /* (TTC)Controls thre Threh of MTL tx Fifo 192 16:14 RW */ + DmaTxThreshCtrl128 = 0x00004000, /* (TTC)Controls thre Threh of MTL tx Fifo 128 16:14 RW */ + DmaTxThreshCtrl64 = 0x00000000, /* (TTC)Controls thre Threh of MTL tx Fifo 64 16:14 RW 000 */ + + DmaTxStart = 0x00002000, /* (ST)Start/Stop transmission 13 RW 0 */ + + DmaRxFlowCtrlDeact = 0x00401800, /* (RFD)Rx flow control deact. threhold [22]:12:11 RW */ + DmaRxFlowCtrlDeact1K = 0x00000000, /* (RFD)Rx flow control deact. threhold (1kbytes) [22]:12:11 RW 00 */ + DmaRxFlowCtrlDeact2K = 0x00000800, /* (RFD)Rx flow control deact. threhold (2kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact3K = 0x00001000, /* (RFD)Rx flow control deact. threhold (3kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact4K = 0x00001800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact5K = 0x00400000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact6K = 0x00400800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + DmaRxFlowCtrlDeact7K = 0x00401000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ + + DmaRxFlowCtrlAct = 0x00800600, /* (RFA)Rx flow control Act. threhold [23]:10:09 RW */ + DmaRxFlowCtrlAct1K = 0x00000000, /* (RFA)Rx flow control Act. threhold (1kbytes) [23]:10:09 RW 00 */ + DmaRxFlowCtrlAct2K = 0x00000200, /* (RFA)Rx flow control Act. threhold (2kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct3K = 0x00000400, /* (RFA)Rx flow control Act. threhold (3kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct4K = 0x00000600, /* (RFA)Rx flow control Act. threhold (4kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct5K = 0x00800000, /* (RFA)Rx flow control Act. threhold (5kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct6K = 0x00800200, /* (RFA)Rx flow control Act. threhold (6kbytes) [23]:10:09 RW */ + DmaRxFlowCtrlAct7K = 0x00800400, /* (RFA)Rx flow control Act. threhold (7kbytes) [23]:10:09 RW */ + + DmaRxThreshCtrl = 0x00000018, /* (RTC)Controls thre Threh of MTL rx Fifo 4:3 RW */ + DmaRxThreshCtrl64 = 0x00000000, /* (RTC)Controls thre Threh of MTL tx Fifo 64 4:3 RW */ + DmaRxThreshCtrl32 = 0x00000008, /* (RTC)Controls thre Threh of MTL tx Fifo 32 4:3 RW */ + DmaRxThreshCtrl96 = 0x00000010, /* (RTC)Controls thre Threh of MTL tx Fifo 96 4:3 RW */ + DmaRxThreshCtrl128 = 0x00000018, /* (RTC)Controls thre Threh of MTL tx Fifo 128 4:3 RW */ + + DmaEnHwFlowCtrl = 0x00000100, /* (EFC)Enable HW flow control 8 RW */ + DmaDisHwFlowCtrl = 0x00000000, /* Disable HW flow control 0 */ + + DmaFwdErrorFrames = 0x00000080, /* (FEF)Forward error frames 7 RW 0 */ + DmaFwdUnderSzFrames = 0x00000040, /* (FUF)Forward undersize frames 6 RW 0 */ + DmaTxSecondFrame = 0x00000004, /* (OSF)Operate on second frame 4 RW 0 */ + DmaRxStart = 0x00000002, /* (SR)Start/Stop reception 1 RW 0 */ +}; + + +/*DmaInterrupt = 0x001C, CSR7 - Interrupt enable Register Layout */ +enum DmaInterruptReg +{ + DmaIeNormal = DmaIntNormal , /* Normal interrupt enable RW 0 */ + DmaIeAbnormal = DmaIntAbnormal , /* Abnormal interrupt enable RW 0 */ + + DmaIeEarlyRx = DmaIntEarlyRx , /* Early receive interrupt enable RW 0 */ + DmaIeBusError = DmaIntBusError , /* Fatal bus error enable RW 0 */ + DmaIeEarlyTx = DmaIntEarlyTx , /* Early transmit interrupt enable RW 0 */ + DmaIeRxWdogTO = DmaIntRxWdogTO , /* Receive Watchdog Timeout enable RW 0 */ + DmaIeRxStopped = DmaIntRxStopped , /* Receive process stopped enable RW 0 */ + DmaIeRxNoBuffer = DmaIntRxNoBuffer , /* Receive buffer unavailable enable RW 0 */ + DmaIeRxCompleted = DmaIntRxCompleted, /* Completion of frame reception enable RW 0 */ + DmaIeTxUnderflow = DmaIntTxUnderflow, /* Transmit underflow enable RW 0 */ + + DmaIeRxOverflow = DmaIntRcvOverflow, /* Receive Buffer overflow interrupt RW 0 */ + DmaIeTxJabberTO = DmaIntTxJabberTO , /* Transmit Jabber Timeout enable RW 0 */ + DmaIeTxNoBuffer = DmaIntTxNoBuffer , /* Transmit buffer unavailable enable RW 0 */ + DmaIeTxStopped = DmaIntTxStopped , /* Transmit process stopped enable RW 0 */ + DmaIeTxCompleted = DmaIntTxCompleted, /* Transmit completed enable RW 0 */ +}; + + + +/********************************************************** + * DMA Engine descriptors + **********************************************************/ +#ifdef ENH_DESC +/* +**********Enhanced Descritpor structure to support 8K buffer per buffer **************************** + +DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address +DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + +Similarly +DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address +DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + -------------------------------------------------------------------------- + RDES0 |OWN (31)| Status | + -------------------------------------------------------------------------- + RDES1 | Ctrl | Res | Byte Count Buffer 2 | Ctrl | Res | Byte Count Buffer 1 | + -------------------------------------------------------------------------- + RDES2 | Buffer 1 Address | + -------------------------------------------------------------------------- + RDES3 | Buffer 2 Address / Next Descriptor Address | + -------------------------------------------------------------------------- + + -------------------------------------------------------------------------- + TDES0 |OWN (31)| Ctrl | Res | Ctrl | Res | Status | + -------------------------------------------------------------------------- + TDES1 | Res | Byte Count Buffer 2 | Res | Byte Count Buffer 1 | + -------------------------------------------------------------------------- + TDES2 | Buffer 1 Address | + -------------------------------------------------------------------------- + TDES3 | Buffer 2 Address / Next Descriptor Address | + -------------------------------------------------------------------------- + +*/ + +enum DmaDescriptorStatus /* status word of DMA descriptor */ +{ + DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ + + DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ + + DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ + DescFrameLengthShift = 16, + + DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ + /* DE || OE || IPC || LC || RWT || RE || CE */ + DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ + DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ + DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ + DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ + DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ + DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ + DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ + DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ + DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ + DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ + DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ + DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ + DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ +// DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ + + DescRxEXTsts = 0x00000001, /* Extended Status Available (RDES4) 0 */ + + DescTxIntEnable = 0x40000000, /* (IC)Tx - interrupt on completion 30 */ + DescTxLast = 0x20000000, /* (LS)Tx - Last segment of the frame 29 */ + DescTxFirst = 0x10000000, /* (FS)Tx - First segment of the frame 28 */ + DescTxDisableCrc = 0x08000000, /* (DC)Tx - Add CRC disabled (first segment only) 27 */ + DescTxDisablePadd = 0x04000000, /* (DP)disable padding, added by - reyaz 26 */ + + DescTxCisMask = 0x00c00000, /* Tx checksum offloading control mask 23:22 */ + DescTxCisBypass = 0x00000000, /* Checksum bypass */ + DescTxCisIpv4HdrCs = 0x00400000, /* IPv4 header checksum */ + DescTxCisTcpOnlyCs = 0x00800000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ + DescTxCisTcpPseudoCs = 0x00c00000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ + + TxDescEndOfRing = 0x00200000, /* (TER)End of descriptors ring 21 */ + TxDescChain = 0x00100000, /* (TCH)Second buffer address is chain address 20 */ + + DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ + DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ + DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + + DescRxTSavail = 0x00000080, /* Time stamp available 7 */ + DescRxFrameType = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + + DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ + DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ + DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ + DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ + DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ + DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ + DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ + DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ + DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ + + DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ + DescTxCollShift = 3, + + DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ + DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ + DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ + /* + This explains the RDES1/TDES1 bits layout + -------------------------------------------------------------------- + RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | + -------------------------------------------------------------------- + */ +// DmaDescriptorLength length word of DMA descriptor + RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ + RxDescEndOfRing = 0x00008000, /* (TER)End of descriptors ring 15 */ + RxDescChain = 0x00004000, /* (TCH)Second buffer address is chain address 14 */ + + DescSize2Mask = 0x1FFF0000, /* (TBS2) Buffer 2 size 28:16 */ + DescSize2Shift = 16, + DescSize1Mask = 0x00001FFF, /* (TBS1) Buffer 1 size 12:0 */ + DescSize1Shift = 0, + /* + This explains the RDES4 Extended Status bits layout + -------------------------------------------------------------------- + RDES4 | Extended Status | + -------------------------------------------------------------------- + */ + DescRxPtpAvail = 0x00004000, /* PTP snapshot available 14 */ + DescRxPtpVer = 0x00002000, /* When set indicates IEEE1584 Version 2 (else Ver1) 13 */ + DescRxPtpFrameType = 0x00001000, /* PTP frame type Indicates PTP sent over ethernet 12 */ + DescRxPtpMessageType = 0x00000F00, /* Message Type 11:8 */ + DescRxPtpNo = 0x00000000, /* 0000 => No PTP message received */ + DescRxPtpSync = 0x00000100, /* 0001 => Sync (all clock types) received */ + DescRxPtpFollowUp = 0x00000200, /* 0010 => Follow_Up (all clock types) received */ + DescRxPtpDelayReq = 0x00000300, /* 0011 => Delay_Req (all clock types) received */ + DescRxPtpDelayResp = 0x00000400, /* 0100 => Delay_Resp (all clock types) received */ + DescRxPtpPdelayReq = 0x00000500, /* 0101 => Pdelay_Req (in P to P tras clk) or Announce in Ord and Bound clk */ + DescRxPtpPdelayResp = 0x00000600, /* 0110 => Pdealy_Resp(in P to P trans clk) or Management in Ord and Bound clk */ + DescRxPtpPdelayRespFP = 0x00000700, /* 0111 => Pdealy_Resp_Follow_Up (in P to P trans clk) or Signaling in Ord and Bound clk */ + DescRxPtpIPV6 = 0x00000080, /* Received Packet is in IPV6 Packet 7 */ + DescRxPtpIPV4 = 0x00000040, /* Received Packet is in IPV4 Packet 6 */ + + DescRxChkSumBypass = 0x00000020, /* When set indicates checksum offload engine 5 + is bypassed */ + DescRxIpPayloadError = 0x00000010, /* When set indicates 16bit IP payload CS is in error 4 */ + DescRxIpHeaderError = 0x00000008, /* When set indicates 16bit IPV4 header CS is in 3 + error or IP datagram version is not consistent + with Ethernet type value */ + DescRxIpPayloadType = 0x00000007, /* Indicate the type of payload encapsulated 2:0 + in IPdatagram processed by COE (Rx) */ + DescRxIpPayloadUnknown= 0x00000000, /* Unknown or didnot process IP payload */ + DescRxIpPayloadUDP = 0x00000001, /* UDP */ + DescRxIpPayloadTCP = 0x00000002, /* TCP */ + DescRxIpPayloadICMP = 0x00000003, /* ICMP */ + +}; + +#else +/* + +********** Default Descritpor structure **************************** +DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address +DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + +Similarly +DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address +DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a +32 bit Data bus is as shown below + -------------------------------------------------------------------- + RDES0/TDES0 |OWN (31)| Status | + -------------------------------------------------------------------- + RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | + -------------------------------------------------------------------- + RDES2/TDES2 | Buffer 1 Address | + -------------------------------------------------------------------- + RDES3/TDES3 | Buffer 2 Address / Next Descriptor Address | + -------------------------------------------------------------------- +*/ +enum DmaDescriptorStatus /* status word of DMA descriptor */ +{ + DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ + + DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ + + DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ + DescFrameLengthShift = 16, + + DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ + /* DE || OE || IPC || LC || RWT || RE || CE */ + DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ + DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ + DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ + DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ + DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ + DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ + DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ + DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ + DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ + DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ + DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ + DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ + DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ + DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ + +//Rx Descriptor Checksum Offload engine (type 2) encoding +//DescRxPayChkError = 0x00000001, /* () Rx - Rx Payload Checksum Error 0 */ +//DescRxIpv4ChkError = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ + + DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ + DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ + DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ + + DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ + DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ + DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ + DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ + DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ + DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ + DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ + DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ + DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ + + DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ + DescTxCollShift = 3, + + DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ + DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ + DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ + + /* + This explains the RDES1/TDES1 bits layout + -------------------------------------------------------------------- + RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | + -------------------------------------------------------------------- + + */ +//DmaDescriptorLength length word of DMA descriptor + DescTxIntEnable = 0x80000000, /* (IC)Tx - interrupt on completion 31 */ + DescTxLast = 0x40000000, /* (LS)Tx - Last segment of the frame 30 */ + DescTxFirst = 0x20000000, /* (FS)Tx - First segment of the frame 29 */ + DescTxDisableCrc = 0x04000000, /* (DC)Tx - Add CRC disabled (first segment only) 26 */ + + RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ + RxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ + RxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ + + DescTxDisablePadd = 0x00800000, /* (DP)disable padding, added by - reyaz 23 */ + + TxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ + TxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ + + DescSize2Mask = 0x003FF800, /* (TBS2) Buffer 2 size 21:11 */ + DescSize2Shift = 11, + DescSize1Mask = 0x000007FF, /* (TBS1) Buffer 1 size 10:0 */ + DescSize1Shift = 0, + + DescTxCisMask = 0x18000000, /* Tx checksum offloading control mask 28:27 */ + DescTxCisBypass = 0x00000000, /* Checksum bypass */ + DescTxCisIpv4HdrCs = 0x08000000, /* IPv4 header checksum */ + DescTxCisTcpOnlyCs = 0x10000000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ + DescTxCisTcpPseudoCs = 0x18000000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ +}; +#endif + +// Rx Descriptor COE type2 encoding +enum RxDescCOEEncode +{ + RxLenLT600 = 0, /* Bit(5:7:0)=>0 IEEE 802.3 type frame Length field is Lessthan 0x0600 */ + RxIpHdrPayLoadChkBypass = 1, /* Bit(5:7:0)=>1 Payload & Ip header checksum bypassed (unsuppported payload) */ + RxIpHdrPayLoadRes = 2, /* Bit(5:7:0)=>2 Reserved */ + RxChkBypass = 3, /* Bit(5:7:0)=>3 Neither IPv4 nor IPV6. So checksum bypassed */ + RxNoChkError = 4, /* Bit(5:7:0)=>4 No IPv4/IPv6 Checksum error detected */ + RxPayLoadChkError = 5, /* Bit(5:7:0)=>5 Payload checksum error detected for Ipv4/Ipv6 frames */ + RxIpHdrChkError = 6, /* Bit(5:7:0)=>6 Ip header checksum error detected for Ipv4 frames */ + RxIpHdrPayLoadChkError = 7, /* Bit(5:7:0)=>7 Payload & Ip header checksum error detected for Ipv4/Ipv6 frames */ +}; + +/********************************************************** + * DMA engine interrupt handling functions + **********************************************************/ + + enum synopGMACDmaIntEnum /* Intrerrupt types */ +{ + synopGMACDmaRxNormal = 0x01, /* normal receiver interrupt */ + synopGMACDmaRxAbnormal = 0x02, /* abnormal receiver interrupt */ + synopGMACDmaRxStopped = 0x04, /* receiver stopped */ + synopGMACDmaTxNormal = 0x08, /* normal transmitter interrupt */ + synopGMACDmaTxAbnormal = 0x10, /* abnormal transmitter interrupt */ + synopGMACDmaTxStopped = 0x20, /* transmitter stopped */ + synopGMACDmaError = 0x80, /* Dma engine error */ +}; + + +/********************************************************** + * Initial register values + **********************************************************/ +enum InitialRegisters +{ + /* Full-duplex mode with perfect filter on */ + GmacConfigInitFdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectGmii | GmacEnableRxOwn | GmacLoopbackOff + | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Full-duplex mode with perfect filter on */ + GmacConfigInitFdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectMii | GmacEnableRxOwn | GmacLoopbackOff + | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Full-duplex mode */ + // CHANGED: Pass control config, dest addr filter normal, added source address filter, multicast & unicast + // Hash filter. + /* = GmacFilterOff | GmacPassControlOff | GmacBroadcastEnable */ + GmacFrameFilterInitFdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable + | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff + | GmacPromiscuousModeOff | GmacUcastHashFilterOff, + + /* Full-duplex mode */ + GmacFlowControlInitFdx = GmacUnicastPauseFrameOff | GmacRxFlowControlEnable | GmacTxFlowControlEnable, + + /* Full-duplex mode */ + GmacGmiiAddrInitFdx = GmiiCsrClk2, + + + /* Half-duplex mode with perfect filter on */ + // CHANGED: Removed Endian configuration, added single bit config for PAD/CRC strip, + /*| GmacSelectMii | GmacLittleEndian | GmacDisableRxOwn | GmacLoopbackOff*/ + GmacConfigInitHdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectGmii | GmacDisableRxOwn | GmacLoopbackOff + | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Half-duplex mode with perfect filter on */ + GmacConfigInitHdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable + | GmacSelectMii | GmacDisableRxOwn | GmacLoopbackOff + | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable + | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, + + /* Half-duplex mode */ + GmacFrameFilterInitHdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable + | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff + | GmacUcastHashFilterOff| GmacPromiscuousModeOff, + + /* Half-duplex mode */ + GmacFlowControlInitHdx = GmacUnicastPauseFrameOff | GmacRxFlowControlDisable | GmacTxFlowControlDisable, + + /* Half-duplex mode */ + GmacGmiiAddrInitHdx = GmiiCsrClk2, + + /********************************************** + *DMA configurations + **********************************************/ + + DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip1 | DmaResetOff, +// DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip4 | DmaResetOff, + + /* 1000 Mb/s mode */ + DmaControlInit1000 = DmaStoreAndForward,// | DmaTxSecondFrame , + + /* 100 Mb/s mode */ + DmaControlInit100 = DmaStoreAndForward, + + /* 10 Mb/s mode */ + DmaControlInit10 = DmaStoreAndForward, + + /* Interrupt groups */ + DmaIntErrorMask = DmaIntBusError, /* Error */ + DmaIntRxAbnMask = DmaIntRxNoBuffer, /* receiver abnormal interrupt */ + DmaIntRxNormMask = DmaIntRxCompleted, /* receiver normal interrupt */ + DmaIntRxStoppedMask = DmaIntRxStopped, /* receiver stopped */ + DmaIntTxAbnMask = DmaIntTxUnderflow, /* transmitter abnormal interrupt */ + DmaIntTxNormMask = DmaIntTxCompleted, /* transmitter normal interrupt */ + DmaIntTxStoppedMask = DmaIntTxStopped, /* transmitter stopped */ + + DmaIntEnable = DmaIeNormal | DmaIeAbnormal | DmaIntErrorMask +//DmaIntEnable = DmaIeNormal | DmaIntErrorMask + | DmaIntRxAbnMask | DmaIntRxNormMask | DmaIntRxStoppedMask +// | DmaIntRxNormMask | DmaIntRxStoppedMask + | DmaIntTxAbnMask | DmaIntTxNormMask | DmaIntTxStoppedMask, + DmaIntDisable = 0, +}; + + +/********************************************************** + * Mac Management Counters (MMC) + **********************************************************/ + +enum MMC_ENABLE +{ + GmacMmcCntrl = 0x0100, /* mmc control for operating mode of MMC */ + GmacMmcIntrRx = 0x0104, /* maintains interrupts generated by rx counters */ + GmacMmcIntrTx = 0x0108, /* maintains interrupts generated by tx counters */ + GmacMmcIntrMaskRx = 0x010C, /* mask for interrupts generated from rx counters */ + GmacMmcIntrMaskTx = 0x0110, /* mask for interrupts generated from tx counters */ +}; +enum MMC_TX +{ + GmacMmcTxOctetCountGb = 0x0114, /*Bytes Tx excl. of preamble and retried bytes (Good or Bad) */ + GmacMmcTxFrameCountGb = 0x0118, /*Frames Tx excl. of retried frames (Good or Bad) */ + GmacMmcTxBcFramesG = 0x011C, /*Broadcast Frames Tx (Good) */ + GmacMmcTxMcFramesG = 0x0120, /*Multicast Frames Tx (Good) */ + + GmacMmcTx64OctetsGb = 0x0124, /*Tx with len 64 bytes excl. of pre and retried (Good or Bad) */ + GmacMmcTx65To127OctetsGb = 0x0128, /*Tx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ + GmacMmcTx128To255OctetsGb = 0x012C, /*Tx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ + GmacMmcTx256To511OctetsGb = 0x0130, /*Tx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ + GmacMmcTx512To1023OctetsGb = 0x0134, /*Tx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ + GmacMmcTx1024ToMaxOctetsGb = 0x0138, /*Tx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ + + GmacMmcTxUcFramesGb = 0x013C, /*Unicast Frames Tx (Good or Bad) */ + GmacMmcTxMcFramesGb = 0x0140, /*Multicast Frames Tx (Good and Bad) */ + GmacMmcTxBcFramesGb = 0x0144, /*Broadcast Frames Tx (Good and Bad) */ + GmacMmcTxUnderFlowError = 0x0148, /*Frames aborted due to Underflow error */ + GmacMmcTxSingleColG = 0x014C, /*Successfully Tx Frames after singel collision in Half duplex mode */ + GmacMmcTxMultiColG = 0x0150, /*Successfully Tx Frames after more than singel collision in Half duplex mode */ + GmacMmcTxDeferred = 0x0154, /*Successfully Tx Frames after a deferral in Half duplex mode */ + GmacMmcTxLateCol = 0x0158, /*Frames aborted due to late collision error */ + GmacMmcTxExessCol = 0x015C, /*Frames aborted due to excessive (16) collision errors */ + GmacMmcTxCarrierError = 0x0160, /*Frames aborted due to carrier sense error (No carrier or Loss of carrier) */ + GmacMmcTxOctetCountG = 0x0164, /*Bytes Tx excl. of preamble and retried bytes (Good) */ + GmacMmcTxFrameCountG = 0x0168, /*Frames Tx (Good) */ + GmacMmcTxExessDef = 0x016C, /*Frames aborted due to excessive deferral errors (deferred for more than 2 max-sized frame times)*/ + + GmacMmcTxPauseFrames = 0x0170, /*Number of good pause frames Tx. */ + GmacMmcTxVlanFramesG = 0x0174, /*Number of good Vlan frames Tx excl. retried frames */ +}; +enum MMC_RX +{ + GmacMmcRxFrameCountGb = 0x0180, /*Frames Rx (Good or Bad) */ + GmacMmcRxOctetCountGb = 0x0184, /*Bytes Rx excl. of preamble and retried bytes (Good or Bad) */ + GmacMmcRxOctetCountG = 0x0188, /*Bytes Rx excl. of preamble and retried bytes (Good) */ + GmacMmcRxBcFramesG = 0x018C, /*Broadcast Frames Rx (Good) */ + GmacMmcRxMcFramesG = 0x0190, /*Multicast Frames Rx (Good) */ + + GmacMmcRxCrcError = 0x0194, /*Number of frames received with CRC error */ + GmacMmcRxAlignError = 0x0198, /*Number of frames received with alignment (dribble) error. Only in 10/100mode */ + GmacMmcRxRuntError = 0x019C, /*Number of frames received with runt (<64 bytes and CRC error) error */ + GmacMmcRxJabberError = 0x01A0, /*Number of frames rx with jabber (>1518/1522 or >9018/9022 and CRC) */ + GmacMmcRxUnderSizeG = 0x01A4, /*Number of frames received with <64 bytes without any error */ + GmacMmcRxOverSizeG = 0x01A8, /*Number of frames received with >1518/1522 bytes without any error */ + + GmacMmcRx64OctetsGb = 0x01AC, /*Rx with len 64 bytes excl. of pre and retried (Good or Bad) */ + GmacMmcRx65To127OctetsGb = 0x01B0, /*Rx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ + GmacMmcRx128To255OctetsGb = 0x01B4, /*Rx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ + GmacMmcRx256To511OctetsGb = 0x01B8, /*Rx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ + GmacMmcRx512To1023OctetsGb = 0x01BC, /*Rx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ + GmacMmcRx1024ToMaxOctetsGb = 0x01C0, /*Rx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ + + GmacMmcRxUcFramesG = 0x01C4, /*Unicast Frames Rx (Good) */ + GmacMmcRxLengthError = 0x01C8, /*Number of frames received with Length type field != frame size */ + GmacMmcRxOutOfRangeType = 0x01CC, /*Number of frames received with length field != valid frame size */ + + GmacMmcRxPauseFrames = 0x01D0, /*Number of good pause frames Rx. */ + GmacMmcRxFifoOverFlow = 0x01D4, /*Number of missed rx frames due to FIFO overflow */ + GmacMmcRxVlanFramesGb = 0x01D8, /*Number of good Vlan frames Rx */ + + GmacMmcRxWatchdobError = 0x01DC, /*Number of frames rx with error due to watchdog timeout error */ +}; + +enum MMC_IP_RELATED +{ + GmacMmcRxIpcIntrMask = 0x0200, /*Maintains the mask for interrupt generated from rx IPC statistic counters */ + GmacMmcRxIpcIntr = 0x0208, /*Maintains the interrupt that rx IPC statistic counters generate */ + + GmacMmcRxIpV4FramesG = 0x0210, /*Good IPV4 datagrams received */ + GmacMmcRxIpV4HdrErrFrames = 0x0214, /*Number of IPV4 datagrams received with header errors */ + GmacMmcRxIpV4NoPayFrames = 0x0218, /*Number of IPV4 datagrams received which didnot have TCP/UDP/ICMP payload */ + GmacMmcRxIpV4FragFrames = 0x021C, /*Number of IPV4 datagrams received with fragmentation */ + GmacMmcRxIpV4UdpChkDsblFrames = 0x0220, /*Number of IPV4 datagrams received that had a UDP payload checksum disabled */ + + GmacMmcRxIpV6FramesG = 0x0224, /*Good IPV6 datagrams received */ + GmacMmcRxIpV6HdrErrFrames = 0x0228, /*Number of IPV6 datagrams received with header errors */ + GmacMmcRxIpV6NoPayFrames = 0x022C, /*Number of IPV6 datagrams received which didnot have TCP/UDP/ICMP payload */ + + GmacMmcRxUdpFramesG = 0x0230, /*Number of good IP datagrams with good UDP payload */ + GmacMmcRxUdpErrorFrames = 0x0234, /*Number of good IP datagrams with UDP payload having checksum error */ + + GmacMmcRxTcpFramesG = 0x0238, /*Number of good IP datagrams with good TDP payload */ + GmacMmcRxTcpErrorFrames = 0x023C, /*Number of good IP datagrams with TCP payload having checksum error */ + + GmacMmcRxIcmpFramesG = 0x0240, /*Number of good IP datagrams with good Icmp payload */ + GmacMmcRxIcmpErrorFrames = 0x0244, /*Number of good IP datagrams with Icmp payload having checksum error */ + + GmacMmcRxIpV4OctetsG = 0x0250, /*Good IPV4 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ + GmacMmcRxIpV4HdrErrorOctets = 0x0254, /*Number of bytes in IPV4 datagram with header errors */ + GmacMmcRxIpV4NoPayOctets = 0x0258, /*Number of bytes in IPV4 datagram with no TCP/UDP/ICMP payload */ + GmacMmcRxIpV4FragOctets = 0x025C, /*Number of bytes received in fragmented IPV4 datagrams */ + GmacMmcRxIpV4UdpChkDsblOctets = 0x0260, /*Number of bytes received in UDP segment that had UDP checksum disabled */ + + GmacMmcRxIpV6OctetsG = 0x0264, /*Good IPV6 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ + GmacMmcRxIpV6HdrErrorOctets = 0x0268, /*Number of bytes in IPV6 datagram with header errors */ + GmacMmcRxIpV6NoPayOctets = 0x026C, /*Number of bytes in IPV6 datagram with no TCP/UDP/ICMP payload */ + + GmacMmcRxUdpOctetsG = 0x0270, /*Number of bytes in IP datagrams with good UDP payload */ + GmacMmcRxUdpErrorOctets = 0x0274, /*Number of bytes in IP datagrams with UDP payload having checksum error */ + + GmacMmcRxTcpOctetsG = 0x0278, /*Number of bytes in IP datagrams with good TDP payload */ + GmacMmcRxTcpErrorOctets = 0x027C, /*Number of bytes in IP datagrams with TCP payload having checksum error */ + + GmacMmcRxIcmpOctetsG = 0x0280, /*Number of bytes in IP datagrams with good Icmp payload */ + GmacMmcRxIcmpErrorOctets = 0x0284, /*Number of bytes in IP datagrams with Icmp payload having checksum error */ +}; + + +enum MMC_CNTRL_REG_BIT_DESCRIPTIONS +{ + GmacMmcCounterFreeze = 0x00000008, /* when set MMC counters freeze to current value */ + GmacMmcCounterResetOnRead = 0x00000004, /* when set MMC counters will be reset to 0 after read */ + GmacMmcCounterStopRollover = 0x00000002, /* when set counters will not rollover after max value */ + GmacMmcCounterReset = 0x00000001, /* when set all counters wil be reset (automatically cleared after 1 clk) */ +}; + +enum MMC_RX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS +{ + GmacMmcRxWDInt = 0x00800000, /* set when rxwatchdog error reaches half of max value */ + GmacMmcRxVlanInt = 0x00400000, /* set when GmacMmcRxVlanFramesGb counter reaches half of max value */ + GmacMmcRxFifoOverFlowInt = 0x00200000, /* set when GmacMmcRxFifoOverFlow counter reaches half of max value */ + GmacMmcRxPauseFrameInt = 0x00100000, /* set when GmacMmcRxPauseFrames counter reaches half of max value */ + GmacMmcRxOutOfRangeInt = 0x00080000, /* set when GmacMmcRxOutOfRangeType counter reaches half of max value */ + GmacMmcRxLengthErrorInt = 0x00040000, /* set when GmacMmcRxLengthError counter reaches half of max value */ + GmacMmcRxUcFramesInt = 0x00020000, /* set when GmacMmcRxUcFramesG counter reaches half of max value */ + GmacMmcRx1024OctInt = 0x00010000, /* set when GmacMmcRx1024ToMaxOctetsGb counter reaches half of max value */ + GmacMmcRx512OctInt = 0x00008000, /* set when GmacMmcRx512To1023OctetsGb counter reaches half of max value */ + GmacMmcRx256OctInt = 0x00004000, /* set when GmacMmcRx256To511OctetsGb counter reaches half of max value */ + GmacMmcRx128OctInt = 0x00002000, /* set when GmacMmcRx128To255OctetsGb counter reaches half of max value */ + GmacMmcRx65OctInt = 0x00001000, /* set when GmacMmcRx65To127OctetsG counter reaches half of max value */ + GmacMmcRx64OctInt = 0x00000800, /* set when GmacMmcRx64OctetsGb counter reaches half of max value */ + GmacMmcRxOverSizeInt = 0x00000400, /* set when GmacMmcRxOverSizeG counter reaches half of max value */ + GmacMmcRxUnderSizeInt = 0x00000200, /* set when GmacMmcRxUnderSizeG counter reaches half of max value */ + GmacMmcRxJabberErrorInt = 0x00000100, /* set when GmacMmcRxJabberError counter reaches half of max value */ + GmacMmcRxRuntErrorInt = 0x00000080, /* set when GmacMmcRxRuntError counter reaches half of max value */ + GmacMmcRxAlignErrorInt = 0x00000040, /* set when GmacMmcRxAlignError counter reaches half of max value */ + GmacMmcRxCrcErrorInt = 0x00000020, /* set when GmacMmcRxCrcError counter reaches half of max value */ + GmacMmcRxMcFramesInt = 0x00000010, /* set when GmacMmcRxMcFramesG counter reaches half of max value */ + GmacMmcRxBcFramesInt = 0x00000008, /* set when GmacMmcRxBcFramesG counter reaches half of max value */ + GmacMmcRxOctetGInt = 0x00000004, /* set when GmacMmcRxOctetCountG counter reaches half of max value */ + GmacMmcRxOctetGbInt = 0x00000002, /* set when GmacMmcRxOctetCountGb counter reaches half of max value */ + GmacMmcRxFrameInt = 0x00000001, /* set when GmacMmcRxFrameCountGb counter reaches half of max value */ +}; + +enum MMC_TX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS +{ + + GmacMmcTxVlanInt = 0x01000000, /* set when GmacMmcTxVlanFramesG counter reaches half of max value */ + GmacMmcTxPauseFrameInt = 0x00800000, /* set when GmacMmcTxPauseFrames counter reaches half of max value */ + GmacMmcTxExessDefInt = 0x00400000, /* set when GmacMmcTxExessDef counter reaches half of max value */ + GmacMmcTxFrameInt = 0x00200000, /* set when GmacMmcTxFrameCount counter reaches half of max value */ + GmacMmcTxOctetInt = 0x00100000, /* set when GmacMmcTxOctetCountG counter reaches half of max value */ + GmacMmcTxCarrierErrorInt = 0x00080000, /* set when GmacMmcTxCarrierError counter reaches half of max value */ + GmacMmcTxExessColInt = 0x00040000, /* set when GmacMmcTxExessCol counter reaches half of max value */ + GmacMmcTxLateColInt = 0x00020000, /* set when GmacMmcTxLateCol counter reaches half of max value */ + GmacMmcTxDeferredInt = 0x00010000, /* set when GmacMmcTxDeferred counter reaches half of max value */ + GmacMmcTxMultiColInt = 0x00008000, /* set when GmacMmcTxMultiColG counter reaches half of max value */ + GmacMmcTxSingleCol = 0x00004000, /* set when GmacMmcTxSingleColG counter reaches half of max value */ + GmacMmcTxUnderFlowErrorInt = 0x00002000, /* set when GmacMmcTxUnderFlowError counter reaches half of max value */ + GmacMmcTxBcFramesGbInt = 0x00001000, /* set when GmacMmcTxBcFramesGb counter reaches half of max value */ + GmacMmcTxMcFramesGbInt = 0x00000800, /* set when GmacMmcTxMcFramesGb counter reaches half of max value */ + GmacMmcTxUcFramesInt = 0x00000400, /* set when GmacMmcTxUcFramesGb counter reaches half of max value */ + GmacMmcTx1024OctInt = 0x00000200, /* set when GmacMmcTx1024ToMaxOctetsGb counter reaches half of max value */ + GmacMmcTx512OctInt = 0x00000100, /* set when GmacMmcTx512To1023OctetsGb counter reaches half of max value */ + GmacMmcTx256OctInt = 0x00000080, /* set when GmacMmcTx256To511OctetsGb counter reaches half of max value */ + GmacMmcTx128OctInt = 0x00000040, /* set when GmacMmcTx128To255OctetsGb counter reaches half of max value */ + GmacMmcTx65OctInt = 0x00000020, /* set when GmacMmcTx65To127OctetsGb counter reaches half of max value */ + GmacMmcTx64OctInt = 0x00000010, /* set when GmacMmcTx64OctetsGb counter reaches half of max value */ + GmacMmcTxMcFramesInt = 0x00000008, /* set when GmacMmcTxMcFramesG counter reaches half of max value */ + GmacMmcTxBcFramesInt = 0x00000004, /* set when GmacMmcTxBcFramesG counter reaches half of max value */ + GmacMmcTxFrameGbInt = 0x00000002, /* set when GmacMmcTxFrameCountGb counter reaches half of max value */ + GmacMmcTxOctetGbInt = 0x00000001, /* set when GmacMmcTxOctetCountGb counter reaches half of max value */ +}; + + +/********************************************************** + * Power Management (PMT) Block + **********************************************************/ + +/** + * PMT supports the reception of network (remote) wake-up frames and Magic packet frames. + * It generates interrupts for wake-up frames and Magic packets received by GMAC. + * PMT sits in Rx path and is enabled with remote wake-up frame enable and Magic packet enable. + * These enable are in PMT control and Status register and are programmed by apllication. + * + * When power down mode is enabled in PMT, all rx frames are dropped by the core. Core comes + * out of power down mode only when either Magic packe tor a Remote wake-up frame is received + * and the corresponding detection is enabled. + * + * Driver need not be modified to support this feature. Only Api to put the device in to power + * down mode is sufficient + */ + +#define WAKEUP_REG_LENGTH 8 /*This is the reg length for wake up register configuration*/ + +enum GmacPmtCtrlStatusBitDefinition +{ + GmacPmtFrmFilterPtrReset = 0x80000000, /* when set remote wake-up frame filter register pointer to 3'b000 */ + GmacPmtGlobalUnicast = 0x00000200, /* When set enables any unicast packet to be a wake-up frame */ + GmacPmtWakeupFrameReceived = 0x00000040, /* Wake up frame received */ + GmacPmtMagicPktReceived = 0x00000020, /* Magic Packet received */ + GmacPmtWakeupFrameEnable = 0x00000004, /* Wake-up frame enable */ + GmacPmtMagicPktEnable = 0x00000002, /* Magic packet enable */ + GmacPmtPowerDown = 0x00000001, /* Power Down */ +}; + +/********************************************************** + * IEEE 1588-2008 Precision Time Protocol (PTP) Support + **********************************************************/ +enum PTPMessageType +{ + SYNC = 0x0, + Delay_Req = 0x1, + Pdelay_Req = 0x2, + Pdelay_Resp = 0x3, + Follow_up = 0x8, + Delay_Resp = 0x9, + Pdelay_Resp_Follow_Up = 0xA, + Announce = 0xB, + Signaling = 0xC, + Management = 0xD, +}; + +typedef struct TimeStampStruct +{ + u32 TSversion; /* PTP Version 1 or PTP version2 */ + u32 TSmessagetype; /* Message type associated with this time stamp */ + + u16 TShighest16; /* Highest 16 bit time stamp value, Valid onley when ADV_TIME_HIGH_WORD configured in corekit */ + u32 TSupper32; /* Most significant 32 bit time stamp value */ + u32 TSlower32; /* Least Significat 32 bit time stamp value */ + +} TimeStamp; + + +/** + * IEEE 1588-2008 is the optional module to support Ethernet frame time stamping. + * Sixty four (+16) bit time stamps are given in each frames transmit and receive status. + * The driver assumes the following + * 1. "IEEE 1588 Time Stamping" "TIME_STAMPING"is ENABLED in corekit + * 2. "IEEE 1588 External Time Stamp Input Enable" "EXT_TIME_STAMPING" is DISABLED in corekit + * 3. "IEEE 1588 Advanced Time Stamp support" "ADV_TIME_STAMPING" is ENABLED in corekit + * 4. "IEEE 1588 Higher Word Register Enable" "ADV_TIME_HIGH_WORD" is ENABLED in corekit + */ + +/* GmacTSControl = 0x0700, Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ +enum GmacTSControlReg +{ + GmacTSENMACADDR = 0x00040000, /* Enable Mac Addr for PTP filtering 18 RW 0 */ + + GmacTSCLKTYPE = 0x00030000, /* Select the type of clock node 17:16 RW 00 */ + /* + TSCLKTYPE TSMSTRENA TSEVNTENA Messages for wihich TS snapshot is taken + 00/01 X 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP + 00/01 1 0 DELAY_REQ + 00/01 0 1 SYNC + 10 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP + 10 NA 1 SYNC, FOLLOW_UP + 11 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP, PDELAY_REQ, PDELAY_RESP + 11 NA 1 SYNC, PDELAY_REQ, PDELAY_RESP + */ + GmacTSOrdClk = 0x00000000, /* 00=> Ordinary clock*/ + GmacTSBouClk = 0x00010000, /* 01=> Boundary clock*/ + GmacTSEtoEClk = 0x00020000, /* 10=> End-to-End transparent clock*/ + GmacTSPtoPClk = 0x00030000, /* 11=> P-to-P transparent clock*/ + + GmacTSMSTRENA = 0x00008000, /* Ena TS Snapshot for Master Messages 15 RW 0 */ + GmacTSEVNTENA = 0x00004000, /* Ena TS Snapshot for Event Messages 14 RW 0 */ + GmacTSIPV4ENA = 0x00002000, /* Ena TS snapshot for IPv4 13 RW 1 */ + GmacTSIPV6ENA = 0x00001000, /* Ena TS snapshot for IPv6 12 RW 0 */ + GmacTSIPENA = 0x00000800, /* Ena TS snapshot for PTP over E'net 11 RW 0 */ + GmacTSVER2ENA = 0x00000400, /* Ena PTP snooping for version 2 10 RW 0 */ + + GmacTSCTRLSSR = 0x00000200, /* Digital or Binary Rollover 9 RW 0 */ + + GmacTSENALL = 0x00000100, /* Enable TS fro all frames (Ver2 only) 8 RW 0 */ + + GmacTSADDREG = 0x00000020, /* Addend Register Update 5 RW_SC 0 */ + GmacTSUPDT = 0x00000008, /* Time Stamp Update 3 RW_SC 0 */ + GmacTSINT = 0x00000004, /* Time Atamp Initialize 2 RW_SC 0 */ + + GmacTSTRIG = 0x00000010, /* Time stamp interrupt Trigger Enable 4 RW_SC 0 */ + + GmacTSCFUPDT = 0x00000002, /* Time Stamp Fine/Coarse 1 RW 0 */ + GmacTSCUPDTCoarse = 0x00000000, /* 0=> Time Stamp update method is coarse */ + GmacTSCUPDTFine = 0x00000002, /* 1=> Time Stamp update method is fine */ + + GmacTSENA = 0x00000001, /* Time Stamp Enable 0 RW 0 */ +}; + + +/* GmacTSSubSecIncr = 0x0704, 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ +enum GmacTSSubSecIncrReg +{ + GmacSSINCMsk = 0x000000FF, /* Only Lower 8 bits are valid bits 7:0 RW 00 */ +}; + +/* GmacTSLow = 0x070C, Indicates whether the timestamp low count is positive or negative; for Adv timestamp it is always zero */ +enum GmacTSSign +{ + GmacTSSign = 0x80000000, /* PSNT 31 RW 0 */ + GmacTSPositive = 0x00000000, + GmacTSNegative = 0x80000000, +}; + +/*GmacTargetTimeLow = 0x0718, 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ +enum GmacTSLowReg +{ + GmacTSDecThr = 0x3B9AC9FF, /*when TSCTRLSSR is set the max value for GmacTargetTimeLowReg and GmacTimeStampLow register is 0x3B9AC9FF at 1ns precision */ +}; + +/* GmacTSHighWord = 0x0724, Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ +enum GmacTSHighWordReg +{ + GmacTSHighWordMask = 0x0000FFFF, /* Time Stamp Higher work register has only lower 16 bits valid */ +}; +/*GmacTSStatus = 0x0728, Time Stamp Status Register */ +enum GmacTSStatusReg +{ + GmacTSTargTimeReached = 0x00000002, /* Time Stamp Target Time Reached 1 RO 0 */ + GmacTSSecondsOverflow = 0x00000001, /* Time Stamp Seconds Overflow 0 RO 0 */ +}; + +/********************************************************** + * Time stamp related functions + **********************************************************/ +void synopGMAC_TS_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_disable(synopGMACdevice *gmacdev); + +void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev); + +void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev); +void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type); +void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" +void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" +void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" + +void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev); +void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" +void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" + +s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value); +s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); +s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); + +void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled +void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled + +void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_val); // Update should happen making use of subsecond mask +void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 * higher_sec_val, + u32 * sec_val, u32 * sub_sec_val); // Reads the timestamp low,high and higher(Ver2) registers in the the struct pointer; readonly contents +void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val); //Loads the timestamp target register with the values provided + +void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val); +void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 * higher_sec_val); +void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 * sec_val, u32 * sub_sec_val); //Read the target time stamp register contents + + +/********************************************************** + * Common functions + **********************************************************/ +s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev,u32 clk_div_val ); +u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev); +s32 synopGMAC_read_phy_reg(u64 RegBase,u32 PhyBase, u32 RegOffset, u16 * data); +s32 synopGMAC_write_phy_reg(u64 RegBase, u32 PhyBase, u32 RegOffset, u16 data); +s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback); +s32 synopGMAC_read_version (synopGMACdevice * gmacdev) ; +s32 synopGMAC_reset (synopGMACdevice * gmacdev ); +s32 synopGMAC_dma_bus_mode_init(synopGMACdevice * gmacdev, u32 init_value ); +s32 synopGMAC_dma_control_init(synopGMACdevice * gmacdev, u32 init_value ); +void synopGMAC_wd_enable(synopGMACdevice * gmacdev); +void synopGMAC_wd_disable(synopGMACdevice * gmacdev); +void synopGMAC_jab_enable(synopGMACdevice * gmacdev); +void synopGMAC_jab_disable(synopGMACdevice * gmacdev); +void synopGMAC_frame_burst_enable(synopGMACdevice * gmacdev); +void synopGMAC_frame_burst_disable(synopGMACdevice * gmacdev); +void synopGMAC_jumbo_frame_enable(synopGMACdevice * gmacdev); +void synopGMAC_jumbo_frame_disable(synopGMACdevice * gmacdev); +void synopGMAC_select_gmii(synopGMACdevice * gmacdev); +void synopGMAC_select_mii(synopGMACdevice * gmacdev); +void synopGMAC_rx_own_enable(synopGMACdevice * gmacdev); +void synopGMAC_rx_own_disable(synopGMACdevice * gmacdev); +void synopGMAC_loopback_on(synopGMACdevice * gmacdev); +void synopGMAC_loopback_off(synopGMACdevice * gmacdev); +void synopGMAC_set_full_duplex(synopGMACdevice * gmacdev); +void synopGMAC_set_half_duplex(synopGMACdevice * gmacdev); +void synopGMAC_retry_enable(synopGMACdevice * gmacdev); +void synopGMAC_retry_disable(synopGMACdevice * gmacdev); +void synopGMAC_pad_crc_strip_enable(synopGMACdevice * gmacdev); +void synopGMAC_pad_crc_strip_disable(synopGMACdevice * gmacdev); +void synopGMAC_back_off_limit(synopGMACdevice * gmacdev, u32 value); +void synopGMAC_deferral_check_enable(synopGMACdevice * gmacdev); +void synopGMAC_deferral_check_disable(synopGMACdevice * gmacdev); +void synopGMAC_rx_enable(synopGMACdevice * gmacdev); +void synopGMAC_rx_disable(synopGMACdevice * gmacdev); +void synopGMAC_tx_enable(synopGMACdevice * gmacdev); +void synopGMAC_tx_disable(synopGMACdevice * gmacdev); +void synopGMAC_frame_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_frame_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_write_hash_table_high(synopGMACdevice * gmacdev, u32 data); +void synopGMAC_write_hash_table_low(synopGMACdevice * gmacdev, u32 data); +void synopGMAC_hash_perfect_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_Hash_filter_only_enable(synopGMACdevice * gmacdev); +void synopGMAC_src_addr_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_src_addr_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_dst_addr_filter_inverse(synopGMACdevice * gmacdev); +void synopGMAC_dst_addr_filter_normal(synopGMACdevice * gmacdev); +void synopGMAC_set_pass_control(synopGMACdevice * gmacdev,u32 passcontrol); +void synopGMAC_broadcast_enable(synopGMACdevice * gmacdev); +void synopGMAC_broadcast_disable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_enable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_disable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_hash_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_multicast_hash_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_promisc_enable(synopGMACdevice * gmacdev); +void synopGMAC_promisc_disable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_hash_filter_enable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_hash_filter_disable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice * gmacdev); +void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice * gmacdev); +void synopGMAC_rx_flow_control_enable(synopGMACdevice * gmacdev); +void synopGMAC_rx_flow_control_disable(synopGMACdevice * gmacdev); +void synopGMAC_tx_flow_control_enable(synopGMACdevice * gmacdev); +void synopGMAC_tx_flow_control_disable(synopGMACdevice * gmacdev); +void synopGMAC_tx_activate_flow_control(synopGMACdevice * gmacdev); +void synopGMAC_tx_deactivate_flow_control(synopGMACdevice * gmacdev); +void synopGMAC_pause_control(synopGMACdevice *gmacdev); +s32 synopGMAC_mac_init(synopGMACdevice * gmacdev); +s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); +s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); +s32 synopGMAC_attach (synopGMACdevice * gmacdev, u64 macBase, u64 dmaBase, u64 phyBase,u8 *mac_addr); +void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); +void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); +void synopGMAC_rx_desc_init_chain(DmaDesc * desc); +void synopGMAC_tx_desc_init_chain(DmaDesc * desc); +s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev); +void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev); +void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev); +void synopGMAC_set_owner_dma(DmaDesc *desc); +void synopGMAC_set_desc_sof(DmaDesc *desc); +void synopGMAC_set_desc_eof(DmaDesc *desc); +bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc); +bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc); +bool synopGMAC_is_da_filter_failed(DmaDesc *desc); +bool synopGMAC_is_sa_filter_failed(DmaDesc *desc); +bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc); +u32 synopGMAC_get_rx_desc_frame_length(u32 status); +bool synopGMAC_is_desc_valid(u32 status); +bool synopGMAC_is_desc_empty(DmaDesc *desc); +bool synopGMAC_is_rx_desc_valid(u32 status); +bool synopGMAC_is_tx_aborted(u32 status); +bool synopGMAC_is_tx_carrier_error(u32 status); +u32 synopGMAC_get_tx_collision_count(u32 status); +u32 synopGMAC_is_exc_tx_collisions(u32 status); +bool synopGMAC_is_rx_frame_damaged(u32 status); +bool synopGMAC_is_rx_frame_collision(u32 status); +bool synopGMAC_is_rx_crc(u32 status); +bool synopGMAC_is_frame_dribbling_errors(u32 status); +bool synopGMAC_is_rx_frame_length_errors(u32 status); +bool synopGMAC_is_last_rx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); +bool synopGMAC_is_last_tx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); +bool synopGMAC_is_rx_desc_chained(DmaDesc * desc); +bool synopGMAC_is_tx_desc_chained(DmaDesc * desc); +void synopGMAC_get_desc_data(DmaDesc * desc, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2); +#ifdef ENH_DESC_8W +s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2, + u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); +#else +s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2 ); +#endif +s32 synopGMAC_set_tx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2,u32 offload_needed,u32 * index,DmaDesc *Dpr); +s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2); +#ifdef ENH_DESC_8W +s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2, + u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); +#else +s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2); +#endif +void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev); +u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev); +u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev); +void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); +void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev); +void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); +void synopGMAC_enable_dma_rx(synopGMACdevice * gmacdev); +void synopGMAC_enable_dma_tx(synopGMACdevice * gmacdev); +void synopGMAC_resume_dma_tx(synopGMACdevice * gmacdev); +void synopGMAC_resume_dma_rx(synopGMACdevice * gmacdev); +void synopGMAC_take_desc_ownership(DmaDesc * desc); +void synopGMAC_take_desc_ownership_rx(synopGMACdevice * gmacdev); +void synopGMAC_take_desc_ownership_tx(synopGMACdevice * gmacdev); +void synopGMAC_disable_dma_tx(synopGMACdevice * gmacdev); +void synopGMAC_disable_dma_rx(synopGMACdevice * gmacdev); +/******Following APIs are valid only for Enhanced Descriptor from 3.50a release onwards*******/ +bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev,u32 status); +bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev,u32 ext_status); +bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev,u32 ext_status); +bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev,u32 ext_status); +/*******************PMT APIs***************************************/ +void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev); +void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev); +void synopGMAC_power_down_enable(synopGMACdevice *gmacdev); +void synopGMAC_power_down_disable(synopGMACdevice *gmacdev); +void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev); +void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev); +void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev); +void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev); +void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev); +bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev); +bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev); +void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 * filter_contents); +/*******************MMC APIs***************************************/ +void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev); +void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev); +u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter); +u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev); +u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev); +void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); +/*******************Ip checksum offloading APIs***************************************/ +void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev); +void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev); +void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev); +void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev); +u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status); +bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status); +bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status); +void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc); +void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc); +void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc); +void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc); + +#endif /* End of file */ diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Host.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Host.h new file mode 100644 index 0000000000..b81b0c29f0 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_Host.h @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + +#ifndef SYNOP_GMAC_HOST_H +#define SYNOP_GMAC_HOST_H 1 + +#include "synopGMAC_plat.h" +#include "synopGMAC_Dev.h" +#include "mii.h" + +struct net_device_stats +{ + unsigned long rx_packets; /* total packets received */ + unsigned long tx_packets; /* total packets transmitted */ + unsigned long rx_bytes; /* total bytes received */ + unsigned long tx_bytes; /* total bytes transmitted */ + unsigned long rx_errors; /* bad packets received */ + unsigned long tx_errors; /* packet transmit problems */ + unsigned long rx_dropped; /* no space in linux buffers */ + unsigned long tx_dropped; /* no space available in linux */ + unsigned long multicast; /* multicast packets received */ + unsigned long collisions; + + /* detailed rx_errors: */ + unsigned long rx_length_errors; + unsigned long rx_over_errors; /* receiver ring buff overflow */ + unsigned long rx_crc_errors; /* recved pkt with crc error */ + unsigned long rx_frame_errors; /* recv'd frame alignment error */ + unsigned long rx_fifo_errors; /* recv'r fifo overrun */ + unsigned long rx_missed_errors; /* receiver missed packet */ + + /* detailed tx_errors */ + unsigned long tx_aborted_errors; + unsigned long tx_carrier_errors; + unsigned long tx_fifo_errors; + unsigned long tx_heartbeat_errors; + unsigned long tx_window_errors; + + /* for cslip etc */ + unsigned long rx_compressed; + unsigned long tx_compressed; +}; + +typedef struct synopGMACNetworkAdapter{ +/*Device Dependent Data structur*/ +synopGMACdevice * synopGMACdev; + +struct net_device_stats synopGMACNetStats; + +struct mii_if_info mii; +} synopGMACPciNetworkAdapter; + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_debug.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_debug.h new file mode 100644 index 0000000000..c5387d00d8 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_debug.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + +#ifndef __DEBUG_H__ +#define __DEBUG_H__ + +//#define GMAC_DEBUG +#include +#ifdef GMAC_DEBUG +#define DEBUG_MES rt_kprintf +#else +#define DEBUG_MES(...) +#endif + +#endif /*__DEBUG_H__*/ diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_network_interface.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_network_interface.h new file mode 100644 index 0000000000..5cb0c6d6d3 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_network_interface.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + +#ifndef SYNOP_GMAC_NETWORK_INTERFACE_H +#define SYNOP_GMAC_NETWORK_INTERFACE_H 1 + +#include +#include +#include "synopGMAC_plat.h" +#include "synopGMAC_Host.h" +#include "synopGMAC_Dev.h" + +#define NET_IF_TIMEOUT (10*HZ) +#define CHECK_TIME (HZ) + +s32 synopGMAC_init_network_interface(char* xname,u64 synopGMACMappedAddr); +void synopGMAC_exit_network_interface(void); + +s32 synopGMAC_linux_open(struct eth_device *); +s32 synopGMAC_linux_close(struct eth_device *); +struct net_device_stats * synopGMAC_linux_get_stats(struct synopGMACNetworkAdapter *); + +s32 synopGMAC_test(synopGMACdevice * gmacdev_0,synopGMACdevice * gmacdev_1); + +void dumpreg(u64 ); +void dumpphyreg(); + +/* + * gethex(vp,p,n) + * convert n hex digits from p to binary, result in vp, + * rtn 1 on success + */ +static int gethex(u8 *vp, char *p, int n) +{ + u8 v; + int digit; + + for (v = 0; n > 0; n--) { + if (*p == 0) + return (0); + if (*p >= '0' && *p <= '9') + digit = *p - '0'; + else if (*p >= 'a' && *p <= 'f') + digit = *p - 'a' + 10; + else if (*p >= 'A' && *p <= 'F') + digit = *p - 'A' + 10; + else + return (0); + + v <<= 4; + v |= digit; + p++; + } + *vp = v; + return (1); +} + +#endif /* End of file */ diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.c b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.c new file mode 100644 index 0000000000..0c938e9949 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.c @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + * 2020-08-10 lizhirui porting to ls2k + */ +#include "synopGMAC_plat.h" +#include "synopGMAC_Dev.h" +#include +#include + +void flush_cache(unsigned long start_addr, unsigned long size) +{ + /*r4k_dcache_wback_inv(start_addr,size); + + //rt_kprintf("flush_cache:start_addr = 0x%p,size = 0x%p",start_addr,size); + unsigned long new_addr = start_addr - CACHED_MEMORY_ADDR + UNCACHED_MEMORY_ADDR; + rt_memcpy(new_addr,start_addr,size); + + if(rt_memcmp(start_addr,new_addr,size) != 0) + { + rt_kprintf("flush_cache:data isn't matched!\n"); + while(1); + } + else + { + //rt_kprintf("flush_cache:data is matched!\n"); + }*/ +} + +//convert virtual address to physical address +dma_addr_t __attribute__((weak)) gmac_dmamap(unsigned long va, u32 size) +{ + return VA_TO_PA(va); + //return UNCACHED_TO_PHYS(va); +} + +/** + * This is a wrapper function for Memory allocation routine. In linux Kernel + * it it kmalloc function + * @param[in] bytes in bytes to allocate + */ + +void *plat_alloc_memory(u32 bytes) +{ +//return (void*)malloc((size_t)bytes, M_DEVBUF, M_DONTWAIT); + void *buf = (void *)rt_malloc((u32)bytes); + flush_cache((unsigned long)buf, bytes); + return buf; +} + +/** + * This is a wrapper function for consistent dma-able Memory allocation routine. + * In linux Kernel, it depends on pci dev structure + * @param[in] bytes in bytes to allocate + */ + +//allocate a space aligned to 16-byte boundary without cache +void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) +{ + void *buf; + buf = (void *)rt_malloc((u32)(size + 16)); + //CPU_IOFlushDCache( buf,size, SYNC_W); + unsigned long i = (unsigned long)buf; +// rt_kprintf("size = %d\n", size); +// rt_kprintf("bufaddr = %p\n", buf); +// rt_kprintf("i%%16 == %d\n", i%16); + if (i % 16 == 8) + { + i += 8; + } + else if (i % 16 == 4) + { + i += 12; + } + else if (i % 16 == 12) + { + i += 4; + } + + flush_cache(i, size); + *addr = gmac_dmamap(i, size); + buf = (unsigned char *)CACHED_TO_UNCACHED(i); + //rt_kprintf("bufaddr = %p\n", buf); + return buf; +} + +/** + * This is a wrapper function for freeing consistent dma-able Memory. + * In linux Kernel, it depends on pci dev structure + * @param[in] bytes in bytes to allocate + */ +//void plat_free_consistent_dmaable_memory(void * addr) +void plat_free_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, void *addr, u64 dma_addr) +{ + rt_free((void *)PHYS_TO_CACHED(UNCACHED_TO_PHYS(addr))); + return; +} + +/** + * This is a wrapper function for Memory free routine. In linux Kernel + * it it kfree function + * @param[in] buffer pointer to be freed + */ +void plat_free_memory(void *buffer) +{ + rt_free(buffer); + return ; +} + +//convert virtual address to physical address and flush cache +dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, u32 size) +{ + unsigned long addr = (unsigned long) ptr; + //CPU_IOFlushDCache(addr,size, direction); + flush_cache(addr, size); + return gmac_dmamap(addr, size); +} + +/** + * This is a wrapper function for platform dependent delay + * Take care while passing the argument to this function + * @param[in] buffer pointer to be freed + */ +void plat_delay(u32 delay) +{ + while (delay--); + return; +} diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.h new file mode 100644 index 0000000000..3b6eaca197 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_plat.h @@ -0,0 +1,242 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + * 2020-08-10 lizhirui porting to ls2k + */ + +#ifndef SYNOP_GMAC_PLAT_H +#define SYNOP_GMAC_PLAT_H 1 + +/* sw +#include +#include +#include +#include +#include +*/ +#include "synopGMAC_types.h" +#include "synopGMAC_debug.h" +//#include "mii.h" +//#include "GMAC_Pmon.h" +//#include "synopGMAC_Host.h" +#include +#include +#include "mips_addrspace.h" +//sw: copy the type define into here +#define IOCTL_READ_REGISTER SIOCDEVPRIVATE+1 +#define IOCTL_WRITE_REGISTER SIOCDEVPRIVATE+2 +#define IOCTL_READ_IPSTRUCT SIOCDEVPRIVATE+3 +#define IOCTL_READ_RXDESC SIOCDEVPRIVATE+4 +#define IOCTL_READ_TXDESC SIOCDEVPRIVATE+5 +#define IOCTL_POWER_DOWN SIOCDEVPRIVATE+6 + +#define SYNOP_GMAC0 1 + +typedef int bool; +//typedef unsigned long dma_addr_t; + +#define KUSEG_ADDR 0x0 +#define CACHED_MEMORY_ADDR KSEG0BASE +#define UNCACHED_MEMORY_ADDR KSEG0BASE +#define KSEG2_ADDR KSEG2BASE +#define MAX_MEM_ADDR KSEG3BASE +#define RESERVED_ADDR KSEG3BASE + +#define CACHED_TO_PHYS(x) ((uint64_t)(x) - CACHED_MEMORY_ADDR) +#define PHYS_TO_CACHED(x) ((uint64_t)(x) + CACHED_MEMORY_ADDR) +#define UNCACHED_TO_PHYS(x) ((uint64_t)(x) - UNCACHED_MEMORY_ADDR) +#define PHYS_TO_UNCACHED(x) ((uint64_t)(x) + UNCACHED_MEMORY_ADDR) +#define VA_TO_CINDEX(x) (PHYS_TO_CACHED(UNCACHED_TO_PHYS(x))) +#define CACHED_TO_UNCACHED(x) (PHYS_TO_UNCACHED(CACHED_TO_PHYS(x))) + +#define VA_TO_PA(x) CACHED_TO_PHYS(x) + +/* sw +#define TR0(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) + +#ifdef DEBUG +#undef TR +# define TR(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) +#else +# define TR(fmt, args...) // not debugging: nothing +#endif +*/ +/* +#define TR0(fmt, args...) printf("SynopGMAC: " fmt, ##args) +*/ + +/* +#ifdef DEBUG +#undef TR +# define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) +#else +//# define TR(fmt, args...) // not debugging: nothing +#define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) +#endif +*/ + +//sw: nothing to display +#define TR0(fmt, args...) //rt_kprintf(fmt, ##args) +#define TR(fmt, args...) //rt_kprintf(fmt, ##args) + +//typedef int bool; +enum synopGMAC_boolean + { + false = 0, + true = 1 + }; + +#define DEFAULT_DELAY_VARIABLE 10 +#define DEFAULT_LOOP_VARIABLE 10000 + +/* There are platform related endian conversions + * + */ +#define LE32_TO_CPU __le32_to_cpu +#define BE32_TO_CPU __be32_to_cpu +#define CPU_TO_LE32 __cpu_to_le32 + +/* Error Codes */ +#define ESYNOPGMACNOERR 0 +#define ESYNOPGMACNOMEM 1 +#define ESYNOPGMACPHYERR 2 +#define ESYNOPGMACBUSY 3 + +struct Network_interface_data +{ + u32 unit; + u64 addr; + u32 data; +}; + + +/** + * These are the wrapper function prototypes for OS/platform related routines + */ +void * plat_alloc_memory(u32 ); +void plat_free_memory(void *); + +//void * plat_alloc_consistent_dmaable_memory(struct pci_dev *, u32, u32 *); +//void plat_free_consistent_dmaable_memory (struct pci_dev *, u32, void *, u32); +void plat_delay(u32); + + +/** + * The Low level function to read register contents from Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * \return Returns the register contents + */ +static u32 synopGMACReadReg(u64 RegBase, u32 RegOffset) +{ + u64 addr; + u32 data; + + addr = RegBase + (u32)RegOffset; + data = *(volatile u32 *)addr; + +#if SYNOP_REG_DEBUG + TR("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); +#endif + // rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); + return data; + +} + +/** + * The Low level function to write to a register in Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Data to be written + * \return void + */ +static void synopGMACWriteReg(u64 RegBase, u32 RegOffset, u32 RegData ) +{ + u64 addr; + addr = RegBase + (u32)RegOffset; +// rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); +#if SYNOP_REG_DEBUG + TR("%s RegBase = 0x%p RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); +#endif + *(volatile u32 *)addr = RegData; + /*if(addr == 0xbfe1100c) + DEBUG_MES("regdata = %08x\n", RegData);*/ + return; +} + +/** + * The Low level function to set bits of a register in Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Bit mask to set bits to logical 1 + * \return void + */ +static void synopGMACSetBits(u64 RegBase, u32 RegOffset, u32 BitPos) +{ + //u64 addr = (u64)RegBase + (u64)RegOffset; + u32 data; + data = synopGMACReadReg(RegBase, RegOffset); + data |= BitPos; + synopGMACWriteReg(RegBase, RegOffset, data); + // writel(data,(void *)addr); + #if SYNOP_REG_DEBUG + TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); + #endif + return; +} + + +/** + * The Low level function to clear bits of a register in Hardware. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Bit mask to clear bits to logical 0 + * \return void + */ +static void synopGMACClearBits(u64 RegBase, u32 RegOffset, u32 BitPos) +{ + u32 data; + data = synopGMACReadReg(RegBase, RegOffset); + data &= (~BitPos); + synopGMACWriteReg(RegBase, RegOffset, data); + #if SYNOP_REG_DEBUG + TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); + #endif + return; +} + +/** + * The Low level function to Check the setting of the bits. + * + * @param[in] pointer to the base of register map + * @param[in] Offset from the base + * @param[in] Bit mask to set bits to logical 1 + * \return returns TRUE if set to '1' returns FALSE if set to '0'. Result undefined there are no bit set in the BitPos argument. + * + */ +static bool synopGMACCheckBits(u64 RegBase, u32 RegOffset, u32 BitPos) +{ + u32 data; + data = synopGMACReadReg(RegBase, RegOffset); + data &= BitPos; + + if(data) + { + return true; + } + else + { + return false; + } +} + +#endif diff --git a/bsp/loongson/ls2kdev/drivers/net/synopGMAC_types.h b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_types.h new file mode 100644 index 0000000000..52c7870905 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/net/synopGMAC_types.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-08-24 chinesebear first version + */ + +#ifndef __TYPES__H +#define __TYPES__H + +typedef unsigned char uint8_t; +typedef unsigned long long u64; +typedef unsigned int u32; +typedef unsigned short u16; +typedef unsigned char u8; +typedef signed int s32; + +typedef u32 dma_addr_t; + +#endif /*__TYPES__H*/ diff --git a/bsp/loongson/ls2kdev/drivers/pci/SConscript b/bsp/loongson/ls2kdev/drivers/pci/SConscript new file mode 100644 index 0000000000..6c6d2c7adb --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/pci/SConscript @@ -0,0 +1,10 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/loongson/ls2kdev/drivers/pci/pci.c b/bsp/loongson/ls2kdev/drivers/pci/pci.c new file mode 100644 index 0000000000..7f62e88dc7 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/pci/pci.c @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-12-28 lizhirui first version + */ + +#include +#include + +rt_uint64_t pci_get_device_map_addr(rt_uint64_t bus,rt_uint64_t device,rt_uint64_t function,rt_uint32_t index) +{ + + rt_uint64_t device_addr = 0xFE00000000 | (bus << 16) | ((device & 0x1f) << 11) | ((function & 0x07) << 8); + struct pci_header *p = (struct pci_header *)(0x9000000000000000UL | device_addr); + return 0x9000000000000000UL | ((rt_uint64_t)(p -> BaseAddressRegister[index] & 0xFFFFFFF0)); +} diff --git a/bsp/loongson/ls2kdev/drivers/pci/pci.h b/bsp/loongson/ls2kdev/drivers/pci/pci.h new file mode 100644 index 0000000000..db4b3a0185 --- /dev/null +++ b/bsp/loongson/ls2kdev/drivers/pci/pci.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-12-28 lizhirui first version + */ + +#ifndef __PCI_H__ +#define __PCI_H__ + + struct pci_header + { + rt_uint16_t VendorID; + rt_uint16_t DeviceID; + rt_uint16_t Command; + rt_uint16_t Status; + rt_uint32_t RevisionID : 8; + rt_uint32_t ClassCode : 24; + rt_uint8_t CachelineSize; + rt_uint8_t LatencyTimer; + rt_uint8_t HeaderType; + rt_uint8_t BIST; + rt_uint32_t BaseAddressRegister[6]; + rt_uint32_t CardbusCISPointer; + rt_uint16_t SubsystemVendorID; + rt_uint16_t SubsystemID; + rt_uint32_t ExpansionROMBaseAddress; + rt_uint32_t CapabilitiesPointer : 8; + rt_uint32_t resv1 : 24; + rt_uint32_t resv2; + rt_uint8_t InterruptLine; + rt_uint8_t InterruptPin; + rt_uint8_t Min_Gnt; + rt_uint8_t Max_Lat; + }; + + rt_uint64_t pci_get_device_map_addr(rt_uint64_t bus,rt_uint64_t device,rt_uint64_t function,rt_uint32_t index); + +#endif diff --git a/bsp/loongson/ls2kdev/figures/loongsonpi.png b/bsp/loongson/ls2kdev/figures/loongsonpi.png new file mode 100644 index 0000000000..b24d28a4a6 Binary files /dev/null and b/bsp/loongson/ls2kdev/figures/loongsonpi.png differ diff --git a/bsp/loongson/ls2kdev/ls2k_ram.lds b/bsp/loongson/ls2kdev/ls2k_ram.lds new file mode 100644 index 0000000000..313a52969c --- /dev/null +++ b/bsp/loongson/ls2kdev/ls2k_ram.lds @@ -0,0 +1,158 @@ +/* + * Copyright (c) 2006-2020, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2020-04-05 bigmagic Initial version + */ + +OUTPUT_ARCH(mips) +GROUP(-lgcc -lc) + +ENTRY(_start) +SECTIONS +{ + . = 0xffffffff82000000 ; + .text : + { + __ebase_entry = .; + KEEP(*(.exc_vectors)) + __ebase_end = .; + start = .; + *(.start); + . = ALIGN(4); + *(.text) + *(.text.*) + *(.rodata) + *(.rodata.*) + *(.rodata1) + *(.rodata1.*) + + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_utest_tc_tab_start = .; + KEEP(*(UtestTcTab)) + __rt_utest_tc_tab_end = .; + . = ALIGN(4); + } + + .eh_frame_hdr : + { + *(.eh_frame_hdr) + *(.eh_frame_entry) + } + .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } + + . = ALIGN(4); + .data : + { + *(.data) + *(.data.*) + + *(.data1) + *(.data1.*) + + . = ALIGN(8); + _gp = ABSOLUTE(.); /* Base of small data */ + + *(.sdata) + *(.sdata.*) + } + + . = ALIGN(4); + .ctors : + { + PROVIDE(__ctors_start__ = .); + KEEP(*(SORT(.ctors.*))) + KEEP(*(.ctors)) + PROVIDE(__ctors_end__ = .); + } + + .dtors : + { + PROVIDE(__dtors_start__ = .); + KEEP(*(SORT(.dtors.*))) + KEEP(*(.dtors)) + PROVIDE(__dtors_end__ = .); + } + + .stack : + { + . = ALIGN(8); + _system_stack_start = .; + . = . + 0x1000; + _system_stack = .; + } + + .sbss : + { + __bss_start = .; + *(.sbss) + *(.sbss.*) + *(.dynsbss) + *(.scommon) + } + + .bss : + { + *(.bss) + *(.bss.*) + *(.dynbss) + *(COMMON) + __bss_end = .; + } + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} diff --git a/bsp/loongson/ls2kdev/rtconfig.h b/bsp/loongson/ls2kdev/rtconfig.h new file mode 100644 index 0000000000..27fd9b0766 --- /dev/null +++ b/bsp/loongson/ls2kdev/rtconfig.h @@ -0,0 +1,282 @@ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ + +/* RT-Thread Kernel */ + +#define RT_NAME_MAX 30 +#define RT_ALIGN_SIZE 8 +#define RT_THREAD_PRIORITY_32 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 1000 +#define RT_USING_OVERFLOW_CHECK +#define RT_USING_HOOK +#define RT_HOOK_USING_FUNC_PTR +#define RT_USING_IDLE_HOOK +#define RT_IDLE_HOOK_LIST_SIZE 4 +#define IDLE_THREAD_STACK_SIZE 16384 + +/* kservice optimization */ + +#define RT_DEBUG + +/* Inter-Thread communication */ + +#define RT_USING_SEMAPHORE +#define RT_USING_MUTEX +#define RT_USING_EVENT +#define RT_USING_MAILBOX +#define RT_USING_MESSAGEQUEUE + +/* Memory Management */ + +#define RT_USING_MEMPOOL +#define RT_USING_SMALL_MEM +#define RT_USING_SMALL_MEM_AS_HEAP +#define RT_USING_HEAP + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 256 +#define RT_CONSOLE_DEVICE_NAME "uart0" +#define RT_VER_NUM 0x40100 +#define ARCH_CPU_64BIT +#define ARCH_MIPS64 + +/* RT-Thread Components */ + +#define RT_USING_COMPONENTS_INIT +#define RT_USING_USER_MAIN +#define RT_MAIN_THREAD_STACK_SIZE 16384 +#define RT_MAIN_THREAD_PRIORITY 10 + +/* C++ features */ + + +/* Command shell */ + +#define RT_USING_FINSH +#define RT_USING_MSH +#define FINSH_USING_MSH +#define FINSH_THREAD_NAME "tshell" +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 16384 +#define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 +#define FINSH_USING_SYMTAB +#define FINSH_CMD_SIZE 80 +#define MSH_USING_BUILT_IN_COMMANDS +#define FINSH_USING_DESCRIPTION +#define FINSH_ARG_MAX 10 + +/* Device virtual file system */ + +#define RT_USING_DFS +#define DFS_USING_POSIX +#define DFS_USING_WORKDIR +#define DFS_FILESYSTEMS_MAX 4 +#define DFS_FILESYSTEM_TYPES_MAX 4 +#define DFS_FD_MAX 16 +#define RT_USING_DFS_ELMFAT + +/* elm-chan's FatFs, Generic FAT Filesystem Module */ + +#define RT_DFS_ELM_CODE_PAGE 936 +#define RT_DFS_ELM_WORD_ACCESS +#define RT_DFS_ELM_USE_LFN_3 +#define RT_DFS_ELM_USE_LFN 3 +#define RT_DFS_ELM_LFN_UNICODE_0 +#define RT_DFS_ELM_LFN_UNICODE 0 +#define RT_DFS_ELM_MAX_LFN 255 +#define RT_DFS_ELM_DRIVES 9 +#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 +#define RT_DFS_ELM_REENTRANT +#define RT_DFS_ELM_MUTEX_TIMEOUT 3000 +#define RT_USING_DFS_DEVFS + +/* Device Drivers */ + +#define RT_USING_DEVICE_IPC +#define RT_USING_SYSTEM_WORKQUEUE +#define RT_SYSTEM_WORKQUEUE_STACKSIZE 16384 +#define RT_SYSTEM_WORKQUEUE_PRIORITY 5 +#define RT_USING_SERIAL +#define RT_USING_SERIAL_V1 +#define RT_SERIAL_USING_DMA +#define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_PIN +#define RT_USING_SPI + +/* Using USB */ + + +/* POSIX layer and C standard library */ + +#define RT_LIBC_DEFAULT_TIMEZONE 8 + +/* POSIX (Portable Operating System Interface) layer */ + + +/* Interprocess Communication (IPC) */ + + +/* Socket is in the 'Network' category */ + +/* Network */ + +/* Socket abstraction layer */ + +#define RT_USING_SAL +#define SAL_INTERNET_CHECK + +/* protocol stack implement */ + +#define SAL_USING_LWIP +#define SAL_SOCKETS_NUM 16 + +/* Network interface device */ + +#define RT_USING_NETDEV +#define NETDEV_USING_IFCONFIG +#define NETDEV_USING_PING +#define NETDEV_USING_NETSTAT +#define NETDEV_USING_AUTO_DEFAULT +#define NETDEV_IPV4 1 +#define NETDEV_IPV6 0 + +/* light weight TCP/IP stack */ + +#define RT_USING_LWIP +#define RT_USING_LWIP203 +#define RT_LWIP_MEM_ALIGNMENT 8 +#define RT_LWIP_IGMP +#define RT_LWIP_ICMP +#define RT_LWIP_SNMP +#define RT_LWIP_DNS +#define RT_LWIP_DHCP +#define IP_SOF_BROADCAST 1 +#define IP_SOF_BROADCAST_RECV 1 + +/* Static IPv4 Address */ + +#define RT_LWIP_IPADDR "192.168.1.30" +#define RT_LWIP_GWADDR "192.168.1.1" +#define RT_LWIP_MSKADDR "255.255.255.0" +#define RT_LWIP_UDP +#define RT_LWIP_TCP +#define RT_LWIP_RAW +#define RT_MEMP_NUM_NETCONN 8 +#define RT_LWIP_PBUF_NUM 16 +#define RT_LWIP_RAW_PCB_NUM 4 +#define RT_LWIP_UDP_PCB_NUM 4 +#define RT_LWIP_TCP_PCB_NUM 4 +#define RT_LWIP_TCP_SEG_NUM 40 +#define RT_LWIP_TCP_SND_BUF 8196 +#define RT_LWIP_TCP_WND 8196 +#define RT_LWIP_TCPTHREAD_PRIORITY 5 +#define RT_LWIP_TCPTHREAD_MBOX_SIZE 32 +#define RT_LWIP_TCPTHREAD_STACKSIZE 16384 +#define RT_LWIP_ETHTHREAD_PRIORITY 5 +#define RT_LWIP_ETHTHREAD_STACKSIZE 16384 +#define RT_LWIP_ETHTHREAD_MBOX_SIZE 32 +#define RT_LWIP_REASSEMBLY_FRAG +#define LWIP_NETIF_STATUS_CALLBACK 1 +#define LWIP_NETIF_LINK_CALLBACK 1 +#define SO_REUSE 1 +#define LWIP_SO_RCVTIMEO 1 +#define LWIP_SO_SNDTIMEO 1 +#define LWIP_SO_RCVBUF 1 +#define LWIP_SO_LINGER 0 +#define LWIP_NETIF_LOOPBACK 0 +#define RT_LWIP_STATS +#define RT_LWIP_USING_PING + +/* AT commands */ + + +/* VBUS(Virtual Software BUS) */ + + +/* Utilities */ + + +/* RT-Thread Utestcases */ + + +/* RT-Thread MIPS CPU */ + + +/* RT-Thread online packages */ + +/* IoT - internet of things */ + + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + + +/* IoT Cloud */ + + +/* security packages */ + + +/* language packages */ + + +/* multimedia packages */ + +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + + +/* tools packages */ + + +/* system packages */ + +/* enhanced kernel services */ + + +/* POSIX extension functions */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + + +/* peripheral libraries and drivers */ + + +/* AI packages */ + + +/* miscellaneous packages */ + +/* samples: kernel and components samples */ + + +/* entertainment: terminal games and other interesting software packages */ + +#define SOC_LS2K1000 +#define RT_USING_UART0 + +#endif diff --git a/bsp/loongson/ls2kdev/rtconfig.py b/bsp/loongson/ls2kdev/rtconfig.py new file mode 100644 index 0000000000..0988198426 --- /dev/null +++ b/bsp/loongson/ls2kdev/rtconfig.py @@ -0,0 +1,61 @@ +import os +# CPU options +ARCH='mips' +CPU ='gs264' + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = '../..' + +# toolchains options +CROSS_TOOL = 'gcc' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = "/opt/mips-2015.05-19-mips-sde-elf-i686-pc-linux-gnu/mips-2015.05/bin/" +# EXEC_PATH = r'D:\mgc\embedded\codebench\bin' +else: + print('================ERROR===========================') + print('Not support %s yet!' % CROSS_TOOL) + print('=================================================') + exit(0) + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +PREFIX = 'mips-sde-elf-' +CC = PREFIX + 'gcc' +CXX = PREFIX + 'g++' +AS = PREFIX + 'gcc' +AR = PREFIX + 'ar' +LINK = PREFIX + 'gcc' +TARGET_EXT = 'elf' +SIZE = PREFIX + 'size' +OBJDUMP = PREFIX + 'objdump' +OBJCPY = PREFIX + 'objcopy' +READELF = PREFIX + 'readelf' + +DEVICE = ' -march=mips64r2 -mabi=64 -msoft-float -EL -mno-gpopt' +CFLAGS = DEVICE + ' -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' +AFLAGS = ' -c' + DEVICE + ' -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' +LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls2k_ram.lds' +CXXFLAGS = CFLAGS + +CPATH = '' +LPATH = '' + +if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' +else: + CFLAGS += ' -O2' + +DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' +READELF_ACTION = READELF + ' -a $TARGET > rtt.map\n' +POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' diff --git a/bsp/ls1bdev/.config b/bsp/ls1bdev/.config deleted file mode 100644 index 22ce711409..0000000000 --- a/bsp/ls1bdev/.config +++ /dev/null @@ -1,670 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# RT-Thread Configuration -# - -# -# RT-Thread Kernel -# -CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_ARCH_DATA_TYPE is not set -# CONFIG_RT_USING_SMP is not set -CONFIG_RT_ALIGN_SIZE=4 -# CONFIG_RT_THREAD_PRIORITY_8 is not set -CONFIG_RT_THREAD_PRIORITY_32=y -# CONFIG_RT_THREAD_PRIORITY_256 is not set -CONFIG_RT_THREAD_PRIORITY_MAX=32 -CONFIG_RT_TICK_PER_SECOND=1000 -CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_USING_HOOK=y -CONFIG_RT_HOOK_USING_FUNC_PTR=y -CONFIG_RT_USING_IDLE_HOOK=y -CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 -CONFIG_IDLE_THREAD_STACK_SIZE=256 -CONFIG_RT_USING_TIMER_SOFT=y -CONFIG_RT_TIMER_THREAD_PRIO=4 -CONFIG_RT_TIMER_THREAD_STACK_SIZE=512 - -# -# kservice optimization -# -# CONFIG_RT_KSERVICE_USING_STDLIB is not set -# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set -# CONFIG_RT_USING_TINY_FFS is not set -# CONFIG_RT_PRINTF_LONGLONG is not set -CONFIG_RT_DEBUG=y -# CONFIG_RT_DEBUG_COLOR is not set -# CONFIG_RT_DEBUG_INIT_CONFIG is not set -# CONFIG_RT_DEBUG_THREAD_CONFIG is not set -# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set -# CONFIG_RT_DEBUG_IPC_CONFIG is not set -# CONFIG_RT_DEBUG_TIMER_CONFIG is not set -# CONFIG_RT_DEBUG_IRQ_CONFIG is not set -# CONFIG_RT_DEBUG_MEM_CONFIG is not set -# CONFIG_RT_DEBUG_SLAB_CONFIG is not set -# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set -# CONFIG_RT_DEBUG_MODULE_CONFIG is not set - -# -# Inter-Thread communication -# -CONFIG_RT_USING_SEMAPHORE=y -CONFIG_RT_USING_MUTEX=y -CONFIG_RT_USING_EVENT=y -CONFIG_RT_USING_MAILBOX=y -CONFIG_RT_USING_MESSAGEQUEUE=y -# CONFIG_RT_USING_SIGNALS is not set - -# -# Memory Management -# -CONFIG_RT_USING_MEMPOOL=y -CONFIG_RT_USING_SMALL_MEM=y -# CONFIG_RT_USING_SLAB is not set -# CONFIG_RT_USING_MEMHEAP is not set -CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y -# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set -# CONFIG_RT_USING_SLAB_AS_HEAP is not set -# CONFIG_RT_USING_USERHEAP is not set -# CONFIG_RT_USING_NOHEAP is not set -# CONFIG_RT_USING_MEMTRACE is not set -# CONFIG_RT_USING_HEAP_ISR is not set -CONFIG_RT_USING_HEAP=y - -# -# Kernel Device Object -# -CONFIG_RT_USING_DEVICE=y -# CONFIG_RT_USING_DEVICE_OPS is not set -# CONFIG_RT_USING_INTERRUPT_INFO is not set -CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=128 -CONFIG_RT_CONSOLE_DEVICE_NAME="uart5" -CONFIG_RT_VER_NUM=0x40100 -# CONFIG_RT_USING_CPU_FFS is not set -# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set - -# -# RT-Thread Components -# -CONFIG_RT_USING_COMPONENTS_INIT=y -CONFIG_RT_USING_USER_MAIN=y -CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 -CONFIG_RT_MAIN_THREAD_PRIORITY=10 -# CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -# CONFIG_RT_USING_CPLUSPLUS is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y -CONFIG_RT_USING_MSH=y -CONFIG_FINSH_USING_MSH=y -CONFIG_FINSH_THREAD_NAME="tshell" -CONFIG_FINSH_THREAD_PRIORITY=20 -CONFIG_FINSH_THREAD_STACK_SIZE=4096 -CONFIG_FINSH_USING_HISTORY=y -CONFIG_FINSH_HISTORY_LINES=5 -CONFIG_FINSH_USING_SYMTAB=y -CONFIG_FINSH_CMD_SIZE=80 -CONFIG_MSH_USING_BUILT_IN_COMMANDS=y -CONFIG_FINSH_USING_DESCRIPTION=y -# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set -# CONFIG_FINSH_USING_AUTH is not set -CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# -CONFIG_RT_USING_DFS=y -CONFIG_DFS_USING_POSIX=y -CONFIG_DFS_USING_WORKDIR=y -CONFIG_DFS_FILESYSTEMS_MAX=4 -CONFIG_DFS_FILESYSTEM_TYPES_MAX=4 -CONFIG_DFS_FD_MAX=16 -# CONFIG_RT_USING_DFS_MNTTABLE is not set -# CONFIG_RT_USING_DFS_ELMFAT is not set -CONFIG_RT_USING_DFS_DEVFS=y -# CONFIG_RT_USING_DFS_ROMFS is not set -# CONFIG_RT_USING_DFS_RAMFS is not set - -# -# Device Drivers -# -CONFIG_RT_USING_DEVICE_IPC=y -# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set -CONFIG_RT_USING_SERIAL=y -CONFIG_RT_USING_SERIAL_V1=y -# CONFIG_RT_USING_SERIAL_V2 is not set -CONFIG_RT_SERIAL_USING_DMA=y -CONFIG_RT_SERIAL_RB_BUFSZ=64 -# CONFIG_RT_USING_CAN is not set -# CONFIG_RT_USING_HWTIMER is not set -# CONFIG_RT_USING_CPUTIME is not set -# CONFIG_RT_USING_I2C is not set -# CONFIG_RT_USING_PHY is not set -CONFIG_RT_USING_PIN=y -# CONFIG_RT_USING_ADC is not set -# CONFIG_RT_USING_DAC is not set -# CONFIG_RT_USING_PWM is not set -# CONFIG_RT_USING_MTD_NOR is not set -# CONFIG_RT_USING_MTD_NAND is not set -# CONFIG_RT_USING_PM is not set -# CONFIG_RT_USING_RTC is not set -# CONFIG_RT_USING_SDIO is not set -# CONFIG_RT_USING_SPI is not set -# CONFIG_RT_USING_WDT is not set -# CONFIG_RT_USING_AUDIO is not set -# CONFIG_RT_USING_SENSOR is not set -# CONFIG_RT_USING_TOUCH is not set -# CONFIG_RT_USING_HWCRYPTO is not set -# CONFIG_RT_USING_PULSE_ENCODER is not set -# CONFIG_RT_USING_INPUT_CAPTURE is not set -# CONFIG_RT_USING_WIFI is not set - -# -# Using USB -# -# CONFIG_RT_USING_USB is not set -# CONFIG_RT_USING_USB_HOST is not set -# CONFIG_RT_USING_USB_DEVICE is not set - -# -# POSIX layer and C standard library -# -CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 - -# -# POSIX (Portable Operating System Interface) layer -# -# CONFIG_RT_USING_POSIX_FS is not set -# CONFIG_RT_USING_POSIX_DELAY is not set -# CONFIG_RT_USING_POSIX_CLOCK is not set -# CONFIG_RT_USING_POSIX_TIMER is not set -# CONFIG_RT_USING_PTHREADS is not set -# CONFIG_RT_USING_MODULE is not set - -# -# Interprocess Communication (IPC) -# -# CONFIG_RT_USING_POSIX_PIPE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set - -# -# Socket is in the 'Network' category -# - -# -# Network -# - -# -# Socket abstraction layer -# -# CONFIG_RT_USING_SAL is not set - -# -# Network interface device -# -# CONFIG_RT_USING_NETDEV is not set - -# -# light weight TCP/IP stack -# -# CONFIG_RT_USING_LWIP is not set - -# -# AT commands -# -# CONFIG_RT_USING_AT is not set - -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set - -# -# Utilities -# -# CONFIG_RT_USING_RYM is not set -# CONFIG_RT_USING_ULOG is not set -# CONFIG_RT_USING_UTEST is not set -# CONFIG_RT_USING_VAR_EXPORT is not set -# CONFIG_RT_USING_RT_LINK is not set - -# -# RT-Thread Utestcases -# -# CONFIG_RT_USING_UTESTCASES is not set - -# -# RT-Thread online packages -# - -# -# IoT - internet of things -# -# CONFIG_PKG_USING_LORAWAN_DRIVER is not set -# CONFIG_PKG_USING_PAHOMQTT is not set -# CONFIG_PKG_USING_UMQTT is not set -# CONFIG_PKG_USING_WEBCLIENT is not set -# CONFIG_PKG_USING_WEBNET is not set -# CONFIG_PKG_USING_MONGOOSE is not set -# CONFIG_PKG_USING_MYMQTT is not set -# CONFIG_PKG_USING_KAWAII_MQTT is not set -# CONFIG_PKG_USING_BC28_MQTT is not set -# CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_CJSON is not set -# CONFIG_PKG_USING_JSMN is not set -# CONFIG_PKG_USING_LIBMODBUS is not set -# CONFIG_PKG_USING_FREEMODBUS is not set -# CONFIG_PKG_USING_LJSON is not set -# CONFIG_PKG_USING_EZXML is not set -# CONFIG_PKG_USING_NANOPB is not set - -# -# Wi-Fi -# - -# -# Marvell WiFi -# -# CONFIG_PKG_USING_WLANMARVELL is not set - -# -# Wiced WiFi -# -# CONFIG_PKG_USING_WLAN_WICED is not set -# CONFIG_PKG_USING_RW007 is not set -# CONFIG_PKG_USING_COAP is not set -# CONFIG_PKG_USING_NOPOLL is not set -# CONFIG_PKG_USING_NETUTILS is not set -# CONFIG_PKG_USING_CMUX is not set -# CONFIG_PKG_USING_PPP_DEVICE is not set -# CONFIG_PKG_USING_AT_DEVICE is not set -# CONFIG_PKG_USING_ATSRV_SOCKET is not set -# CONFIG_PKG_USING_WIZNET is not set -# CONFIG_PKG_USING_ZB_COORDINATOR is not set - -# -# IoT Cloud -# -# CONFIG_PKG_USING_ONENET is not set -# CONFIG_PKG_USING_GAGENT_CLOUD is not set -# CONFIG_PKG_USING_ALI_IOTKIT is not set -# CONFIG_PKG_USING_AZURE is not set -# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set -# CONFIG_PKG_USING_JIOT-C-SDK is not set -# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set -# CONFIG_PKG_USING_JOYLINK is not set -# CONFIG_PKG_USING_EZ_IOT_OS is not set -# CONFIG_PKG_USING_NIMBLE is not set -# CONFIG_PKG_USING_OTA_DOWNLOADER is not set -# CONFIG_PKG_USING_IPMSG is not set -# CONFIG_PKG_USING_LSSDP is not set -# CONFIG_PKG_USING_AIRKISS_OPEN is not set -# CONFIG_PKG_USING_LIBRWS is not set -# CONFIG_PKG_USING_TCPSERVER is not set -# CONFIG_PKG_USING_PROTOBUF_C is not set -# CONFIG_PKG_USING_DLT645 is not set -# CONFIG_PKG_USING_QXWZ is not set -# CONFIG_PKG_USING_SMTP_CLIENT is not set -# CONFIG_PKG_USING_ABUP_FOTA is not set -# CONFIG_PKG_USING_LIBCURL2RTT is not set -# CONFIG_PKG_USING_CAPNP is not set -# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set -# CONFIG_PKG_USING_AGILE_TELNET is not set -# CONFIG_PKG_USING_NMEALIB is not set -# CONFIG_PKG_USING_AGILE_JSMN is not set -# CONFIG_PKG_USING_PDULIB is not set -# CONFIG_PKG_USING_BTSTACK is not set -# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set -# CONFIG_PKG_USING_WAYZ_IOTKIT is not set -# CONFIG_PKG_USING_MAVLINK is not set -# CONFIG_PKG_USING_RAPIDJSON is not set -# CONFIG_PKG_USING_BSAL is not set -# CONFIG_PKG_USING_AGILE_MODBUS is not set -# CONFIG_PKG_USING_AGILE_FTP is not set -# CONFIG_PKG_USING_EMBEDDEDPROTO is not set -# CONFIG_PKG_USING_RT_LINK_HW is not set -# CONFIG_PKG_USING_LORA_PKT_FWD is not set -# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set -# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set -# CONFIG_PKG_USING_HM is not set -# CONFIG_PKG_USING_SMALL_MODBUS is not set -# CONFIG_PKG_USING_NET_SERVER is not set - -# -# security packages -# -# CONFIG_PKG_USING_MBEDTLS is not set -# CONFIG_PKG_USING_LIBSODIUM is not set -# CONFIG_PKG_USING_TINYCRYPT is not set -# CONFIG_PKG_USING_TFM is not set -# CONFIG_PKG_USING_YD_CRYPTO is not set - -# -# language packages -# -# CONFIG_PKG_USING_LUATOS_SOC is not set -# CONFIG_PKG_USING_LUA is not set -# CONFIG_PKG_USING_JERRYSCRIPT is not set -# CONFIG_PKG_USING_MICROPYTHON is not set -# CONFIG_PKG_USING_PIKASCRIPT is not set - -# -# multimedia packages -# - -# -# LVGL: powerful and easy-to-use embedded GUI library -# -# CONFIG_PKG_USING_LVGL is not set -# CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set - -# -# u8g2: a monochrome graphic library -# -# CONFIG_PKG_USING_U8G2_OFFICIAL is not set -# CONFIG_PKG_USING_U8G2 is not set -# CONFIG_PKG_USING_OPENMV is not set -# CONFIG_PKG_USING_MUPDF is not set -# CONFIG_PKG_USING_STEMWIN is not set -# CONFIG_PKG_USING_WAVPLAYER is not set -# CONFIG_PKG_USING_TJPGD is not set -# CONFIG_PKG_USING_PDFGEN is not set -# CONFIG_PKG_USING_HELIX is not set -# CONFIG_PKG_USING_AZUREGUIX is not set -# CONFIG_PKG_USING_TOUCHGFX2RTT is not set -# CONFIG_PKG_USING_NUEMWIN is not set -# CONFIG_PKG_USING_MP3PLAYER is not set -# CONFIG_PKG_USING_TINYJPEG is not set -# CONFIG_PKG_USING_UGUI is not set - -# -# PainterEngine: A cross-platform graphics application framework written in C language -# -# CONFIG_PKG_USING_PAINTERENGINE is not set -# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set -# CONFIG_PKG_USING_MCURSES is not set -# CONFIG_PKG_USING_TERMBOX is not set -# CONFIG_PKG_USING_VT100 is not set -# CONFIG_PKG_USING_QRCODE is not set - -# -# tools packages -# -# CONFIG_PKG_USING_CMBACKTRACE is not set -# CONFIG_PKG_USING_EASYFLASH is not set -# CONFIG_PKG_USING_EASYLOGGER is not set -# CONFIG_PKG_USING_SYSTEMVIEW is not set -# CONFIG_PKG_USING_SEGGER_RTT is not set -# CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_ULOG_EASYFLASH is not set -# CONFIG_PKG_USING_ULOG_FILE is not set -# CONFIG_PKG_USING_LOGMGR is not set -# CONFIG_PKG_USING_ADBD is not set -# CONFIG_PKG_USING_COREMARK is not set -# CONFIG_PKG_USING_DHRYSTONE is not set -# CONFIG_PKG_USING_MEMORYPERF is not set -# CONFIG_PKG_USING_NR_MICRO_SHELL is not set -# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set -# CONFIG_PKG_USING_LUNAR_CALENDAR is not set -# CONFIG_PKG_USING_BS8116A is not set -# CONFIG_PKG_USING_GPS_RMC is not set -# CONFIG_PKG_USING_URLENCODE is not set -# CONFIG_PKG_USING_UMCN is not set -# CONFIG_PKG_USING_LWRB2RTT is not set -# CONFIG_PKG_USING_CPU_USAGE is not set -# CONFIG_PKG_USING_GBK2UTF8 is not set -# CONFIG_PKG_USING_VCONSOLE is not set -# CONFIG_PKG_USING_KDB is not set -# CONFIG_PKG_USING_WAMR is not set -# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set -# CONFIG_PKG_USING_LWLOG is not set -# CONFIG_PKG_USING_ANV_TRACE is not set -# CONFIG_PKG_USING_ANV_MEMLEAK is not set -# CONFIG_PKG_USING_ANV_TESTSUIT is not set -# CONFIG_PKG_USING_ANV_BENCH is not set -# CONFIG_PKG_USING_DEVMEM is not set -# CONFIG_PKG_USING_REGEX is not set -# CONFIG_PKG_USING_MEM_SANDBOX is not set -# CONFIG_PKG_USING_SOLAR_TERMS is not set -# CONFIG_PKG_USING_GAN_ZHI is not set -# CONFIG_PKG_USING_FDT is not set - -# -# system packages -# - -# -# enhanced kernel services -# -# CONFIG_PKG_USING_RT_MEMCPY_CM is not set -# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set -# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set - -# -# POSIX extension functions -# -# CONFIG_PKG_USING_POSIX_GETLINE is not set -# CONFIG_PKG_USING_POSIX_WCWIDTH is not set -# CONFIG_PKG_USING_POSIX_ITOA is not set -# CONFIG_PKG_USING_POSIX_STRINGS is not set - -# -# acceleration: Assembly language or algorithmic acceleration packages -# -# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set -# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set -# CONFIG_PKG_USING_QFPLIB_M3 is not set - -# -# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard -# -# CONFIG_PKG_USING_CMSIS_5 is not set -# CONFIG_PKG_USING_CMSIS_RTOS2 is not set - -# -# Micrium: Micrium software products porting for RT-Thread -# -# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set -# CONFIG_PKG_USING_UCOSII_WRAPPER is not set -# CONFIG_PKG_USING_UC_CRC is not set -# CONFIG_PKG_USING_UC_CLK is not set -# CONFIG_PKG_USING_UC_COMMON is not set -# CONFIG_PKG_USING_UC_MODBUS is not set -# CONFIG_RT_USING_ARDUINO is not set -# CONFIG_PKG_USING_GUIENGINE is not set -# CONFIG_PKG_USING_CAIRO is not set -# CONFIG_PKG_USING_PIXMAN is not set -# CONFIG_PKG_USING_PARTITION is not set -# CONFIG_PKG_USING_FAL is not set -# CONFIG_PKG_USING_FLASHDB is not set -# CONFIG_PKG_USING_SQLITE is not set -# CONFIG_PKG_USING_RTI is not set -# CONFIG_PKG_USING_DFS_YAFFS is not set -# CONFIG_PKG_USING_LITTLEFS is not set -# CONFIG_PKG_USING_DFS_JFFS2 is not set -# CONFIG_PKG_USING_DFS_UFFS is not set -# CONFIG_PKG_USING_LWEXT4 is not set -# CONFIG_PKG_USING_THREAD_POOL is not set -# CONFIG_PKG_USING_ROBOTS is not set -# CONFIG_PKG_USING_EV is not set -# CONFIG_PKG_USING_SYSWATCH is not set -# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set -# CONFIG_PKG_USING_PLCCORE is not set -# CONFIG_PKG_USING_RAMDISK is not set -# CONFIG_PKG_USING_MININI is not set -# CONFIG_PKG_USING_QBOOT is not set -# CONFIG_PKG_USING_PPOOL is not set -# CONFIG_PKG_USING_OPENAMP is not set -# CONFIG_PKG_USING_LPM is not set -# CONFIG_PKG_USING_TLSF is not set -# CONFIG_PKG_USING_EVENT_RECORDER is not set -# CONFIG_PKG_USING_ARM_2D is not set -# CONFIG_PKG_USING_MCUBOOT is not set -# CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set - -# -# peripheral libraries and drivers -# -# CONFIG_PKG_USING_SENSORS_DRIVERS is not set -# CONFIG_PKG_USING_REALTEK_AMEBA is not set -# CONFIG_PKG_USING_SHT2X is not set -# CONFIG_PKG_USING_SHT3X is not set -# CONFIG_PKG_USING_AS7341 is not set -# CONFIG_PKG_USING_STM32_SDIO is not set -# CONFIG_PKG_USING_ICM20608 is not set -# CONFIG_PKG_USING_BUTTON is not set -# CONFIG_PKG_USING_PCF8574 is not set -# CONFIG_PKG_USING_SX12XX is not set -# CONFIG_PKG_USING_SIGNAL_LED is not set -# CONFIG_PKG_USING_LEDBLINK is not set -# CONFIG_PKG_USING_LITTLED is not set -# CONFIG_PKG_USING_LKDGUI is not set -# CONFIG_PKG_USING_NRF5X_SDK is not set -# CONFIG_PKG_USING_NRFX is not set -# CONFIG_PKG_USING_WM_LIBRARIES is not set -# CONFIG_PKG_USING_KENDRYTE_SDK is not set -# CONFIG_PKG_USING_INFRARED is not set -# CONFIG_PKG_USING_AGILE_BUTTON is not set -# CONFIG_PKG_USING_AGILE_LED is not set -# CONFIG_PKG_USING_AT24CXX is not set -# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set -# CONFIG_PKG_USING_AD7746 is not set -# CONFIG_PKG_USING_PCA9685 is not set -# CONFIG_PKG_USING_I2C_TOOLS is not set -# CONFIG_PKG_USING_NRF24L01 is not set -# CONFIG_PKG_USING_TOUCH_DRIVERS is not set -# CONFIG_PKG_USING_MAX17048 is not set -# CONFIG_PKG_USING_RPLIDAR is not set -# CONFIG_PKG_USING_AS608 is not set -# CONFIG_PKG_USING_RC522 is not set -# CONFIG_PKG_USING_WS2812B is not set -# CONFIG_PKG_USING_EMBARC_BSP is not set -# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set -# CONFIG_PKG_USING_MULTI_RTIMER is not set -# CONFIG_PKG_USING_MAX7219 is not set -# CONFIG_PKG_USING_BEEP is not set -# CONFIG_PKG_USING_EASYBLINK is not set -# CONFIG_PKG_USING_PMS_SERIES is not set -# CONFIG_PKG_USING_CAN_YMODEM is not set -# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set -# CONFIG_PKG_USING_QLED is not set -# CONFIG_PKG_USING_PAJ7620 is not set -# CONFIG_PKG_USING_AGILE_CONSOLE is not set -# CONFIG_PKG_USING_LD3320 is not set -# CONFIG_PKG_USING_WK2124 is not set -# CONFIG_PKG_USING_LY68L6400 is not set -# CONFIG_PKG_USING_DM9051 is not set -# CONFIG_PKG_USING_SSD1306 is not set -# CONFIG_PKG_USING_QKEY is not set -# CONFIG_PKG_USING_RS485 is not set -# CONFIG_PKG_USING_RS232 is not set -# CONFIG_PKG_USING_NES is not set -# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set -# CONFIG_PKG_USING_VDEVICE is not set -# CONFIG_PKG_USING_SGM706 is not set -# CONFIG_PKG_USING_STM32WB55_SDK is not set -# CONFIG_PKG_USING_RDA58XX is not set -# CONFIG_PKG_USING_LIBNFC is not set -# CONFIG_PKG_USING_MFOC is not set -# CONFIG_PKG_USING_TMC51XX is not set -# CONFIG_PKG_USING_TCA9534 is not set -# CONFIG_PKG_USING_KOBUKI is not set -# CONFIG_PKG_USING_ROSSERIAL is not set -# CONFIG_PKG_USING_MICRO_ROS is not set -# CONFIG_PKG_USING_MCP23008 is not set -# CONFIG_PKG_USING_BLUETRUM_SDK is not set -# CONFIG_PKG_USING_MISAKA_AT24CXX is not set -# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set -# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set -# CONFIG_PKG_USING_BL_MCU_SDK is not set -# CONFIG_PKG_USING_SOFT_SERIAL is not set -# CONFIG_PKG_USING_MB85RS16 is not set -# CONFIG_PKG_USING_CW2015 is not set - -# -# AI packages -# -# CONFIG_PKG_USING_LIBANN is not set -# CONFIG_PKG_USING_NNOM is not set -# CONFIG_PKG_USING_ONNX_BACKEND is not set -# CONFIG_PKG_USING_ONNX_PARSER is not set -# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set -# CONFIG_PKG_USING_ELAPACK is not set -# CONFIG_PKG_USING_ULAPACK is not set -# CONFIG_PKG_USING_QUEST is not set -# CONFIG_PKG_USING_NAXOS is not set - -# -# miscellaneous packages -# - -# -# samples: kernel and components samples -# -# CONFIG_PKG_USING_KERNEL_SAMPLES is not set -# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set -# CONFIG_PKG_USING_NETWORK_SAMPLES is not set -# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set - -# -# entertainment: terminal games and other interesting software packages -# -# CONFIG_PKG_USING_CMATRIX is not set -# CONFIG_PKG_USING_SL is not set -# CONFIG_PKG_USING_CAL is not set -# CONFIG_PKG_USING_ACLOCK is not set -# CONFIG_PKG_USING_THREES is not set -# CONFIG_PKG_USING_2048 is not set -# CONFIG_PKG_USING_SNAKE is not set -# CONFIG_PKG_USING_TETRIS is not set -# CONFIG_PKG_USING_DONUT is not set -# CONFIG_PKG_USING_COWSAY is not set -# CONFIG_PKG_USING_LIBCSV is not set -# CONFIG_PKG_USING_OPTPARSE is not set -# CONFIG_PKG_USING_FASTLZ is not set -# CONFIG_PKG_USING_MINILZO is not set -# CONFIG_PKG_USING_QUICKLZ is not set -# CONFIG_PKG_USING_LZMA is not set -# CONFIG_PKG_USING_MULTIBUTTON is not set -# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set -# CONFIG_PKG_USING_CANFESTIVAL is not set -# CONFIG_PKG_USING_ZLIB is not set -# CONFIG_PKG_USING_MINIZIP is not set -# CONFIG_PKG_USING_DSTR is not set -# CONFIG_PKG_USING_TINYFRAME is not set -# CONFIG_PKG_USING_KENDRYTE_DEMO is not set -# CONFIG_PKG_USING_DIGITALCTRL is not set -# CONFIG_PKG_USING_UPACKER is not set -# CONFIG_PKG_USING_UPARAM is not set -# CONFIG_PKG_USING_HELLO is not set -# CONFIG_PKG_USING_VI is not set -# CONFIG_PKG_USING_KI is not set -# CONFIG_PKG_USING_ARMv7M_DWT is not set -# CONFIG_PKG_USING_UKAL is not set -# CONFIG_PKG_USING_CRCLIB is not set -# CONFIG_PKG_USING_LWGPS is not set -# CONFIG_PKG_USING_STATE_MACHINE is not set -# CONFIG_PKG_USING_DESIGN_PATTERN is not set -# CONFIG_PKG_USING_CONTROLLER is not set -# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set -CONFIG_SOC_LS1B=y -CONFIG_RT_MEM_SIZE=256 -CONFIG_RT_OSC_CLK=25000000 -# CONFIG_RT_USING_UART0 is not set -# CONFIG_RT_USING_UART1 is not set -# CONFIG_RT_USING_UART2 is not set -# CONFIG_RT_USING_UART3 is not set -# CONFIG_RT_USING_UART4 is not set -CONFIG_RT_USING_UART5=y -CONFIG_RT_UART_RX_BUFFER_SIZE=64 diff --git a/bsp/ls1bdev/.gitignore b/bsp/ls1bdev/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/bsp/ls1bdev/Kconfig b/bsp/ls1bdev/Kconfig deleted file mode 100644 index b02aee337a..0000000000 --- a/bsp/ls1bdev/Kconfig +++ /dev/null @@ -1,60 +0,0 @@ -mainmenu "RT-Thread Configuration" - -config BSP_DIR - string - option env="BSP_ROOT" - default "." - -config RTT_DIR - string - option env="RTT_ROOT" - default "../.." - -config PKGS_DIR - string - option env="PKGS_ROOT" - default "packages" - -source "$RTT_DIR/Kconfig" -source "$PKGS_DIR/Kconfig" - -config SOC_LS1B - bool - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - default y - -config RT_MEM_SIZE - int "Memory Size (MByte)" - default 256 - -config RT_OSC_CLK - int "Oscillator Clock (Hz)" - default 25000000 - -if RT_USING_SERIAL -config RT_USING_UART0 - bool "Using RT_USING_UART0" - default n -config RT_USING_UART1 - bool "Using RT_USING_UART1" - default n -config RT_USING_UART2 - bool "Using RT_USING_UART2" - default n -config RT_USING_UART3 - bool "Using RT_USING_UART3" - default n -config RT_USING_UART4 - bool "Using RT_USING_UART4" - default n -config RT_USING_UART5 - bool "Using RT_USING_UART5" - default y - -config RT_UART_RX_BUFFER_SIZE - int "The rx buffer size" - default 64 if RT_USING_SERIAL - default 64 -endif - diff --git a/bsp/ls1bdev/SConscript b/bsp/ls1bdev/SConscript deleted file mode 100644 index 0992612410..0000000000 --- a/bsp/ls1bdev/SConscript +++ /dev/null @@ -1,12 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/ls1bdev/SConstruct b/bsp/ls1bdev/SConstruct deleted file mode 100644 index 38fe7234b9..0000000000 --- a/bsp/ls1bdev/SConstruct +++ /dev/null @@ -1,34 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) -env['ASCOM'] = env['ASPPCOM'] - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -if GetDepend('RT_USING_RTGUI'): - objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/ls1bdev/applications/SConscript b/bsp/ls1bdev/applications/SConscript deleted file mode 100644 index 4ccb177207..0000000000 --- a/bsp/ls1bdev/applications/SConscript +++ /dev/null @@ -1,9 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls1bdev/applications/main.c b/bsp/ls1bdev/applications/main.c deleted file mode 100644 index fac004d832..0000000000 --- a/bsp/ls1bdev/applications/main.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-10 zhuangwei first version - */ - -#include - -int main(int argc, char** argv) -{ - - return 0; -} diff --git a/bsp/ls1bdev/drivers/SConscript b/bsp/ls1bdev/drivers/SConscript deleted file mode 100644 index 5e1060d78e..0000000000 --- a/bsp/ls1bdev/drivers/SConscript +++ /dev/null @@ -1,14 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -# remove no need file. -if GetDepend('RT_USING_RTGUI') == False: - SrcRemove(src, 'display_controller.c') - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls1bdev/drivers/board.c b/bsp/ls1bdev/drivers/board.c deleted file mode 100644 index 933c54a172..0000000000 --- a/bsp/ls1bdev/drivers/board.c +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2010-06-25 Bernard first version - * 2011-08-08 lgnq modified for Loongson LS1B - * 2019-12-04 Jiaxun Yang Adapt new MIPS generic code - */ - -#include -#include -#include - -#include "board.h" -#include "drv_uart.h" -#include "ls1b.h" - -#ifdef RT_USING_RTGUI -#include -rt_device_t dc; -extern void rt_hw_dc_init(void); -#endif - -extern unsigned char __bss_end; - -/** - * @addtogroup Loongson LS1B - */ - -/*@{*/ - -/** - * This function will initial sam7s64 board. - */ -void rt_hw_board_init(void) -{ - /* init hardware interrupt */ - rt_hw_exception_init(); - - /* init hardware interrupt */ - rt_hw_interrupt_init(); - -#ifdef RT_USING_HEAP - rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END); -#endif - -#ifdef RT_USING_SERIAL - /* init hardware UART device */ - rt_hw_uart_init(); -#endif - -#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) - /* set console device */ - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); -#endif - /* init operating system timer */ - rt_hw_timer_init(); - -#ifdef RT_USING_FPU - /* init hardware fpu */ - rt_hw_fpu_init(); -#endif - -#ifdef RT_USING_RTGUI - rt_device_t dc; - - /* init Display Controller */ - rt_hw_dc_init(); - - /* find Display Controller device */ - dc = rt_device_find("dc"); - - /* set Display Controller device as rtgui graphic driver */ - rtgui_graphic_set_device(dc); -#endif - -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif - rt_kprintf("current sr: 0x%08x\n", read_c0_status()); -} -/*@}*/ diff --git a/bsp/ls1bdev/drivers/board.h b/bsp/ls1bdev/drivers/board.h deleted file mode 100644 index 7d7002892c..0000000000 --- a/bsp/ls1bdev/drivers/board.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2010-06-25 Bernard first version - * 2011-08-08 lgnq modified for Loongson LS1B - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - -void rt_hw_board_init(void); - -/* 64M SDRAM */ -#define RT_HW_HEAP_END (0x80000000 + RT_MEM_SIZE * 1024 * 1024) -#define CPU_HZ (125 * 1000000) - -#endif diff --git a/bsp/ls1bdev/drivers/display_controller.c b/bsp/ls1bdev/drivers/display_controller.c deleted file mode 100644 index 5dba114b69..0000000000 --- a/bsp/ls1bdev/drivers/display_controller.c +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-08-09 lgnq first version for LS1B DC - */ - -#include -#include "display_controller.h" - -struct vga_struct vga_mode[] = -{ - {/*"640x480_70.00"*/ 28560, 640, 664, 728, 816, 480, 481, 484, 500, }, - {/*"640x640_60.00"*/ 33100, 640, 672, 736, 832, 640, 641, 644, 663, }, - {/*"640x768_60.00"*/ 39690, 640, 672, 736, 832, 768, 769, 772, 795, }, - {/*"640x800_60.00"*/ 42130, 640, 680, 744, 848, 800, 801, 804, 828, }, - {/*"800x480_70.00"*/ 35840, 800, 832, 912, 1024, 480, 481, 484, 500, }, - {/*"800x600_60.00"*/ 38220, 800, 832, 912, 1024, 600, 601, 604, 622, }, - {/*"800x640_60.00"*/ 40730, 800, 832, 912, 1024, 640, 641, 644, 663, }, - {/*"832x600_60.00"*/ 40010, 832, 864, 952, 1072, 600, 601, 604, 622, }, - {/*"832x608_60.00"*/ 40520, 832, 864, 952, 1072, 608, 609, 612, 630, }, - {/*"1024x480_60.00"*/ 38170, 1024, 1048, 1152, 1280, 480, 481, 484, 497, }, - {/*"1024x600_60.00"*/ 48960, 1024, 1064, 1168, 1312, 600, 601, 604, 622, }, - {/*"1024x640_60.00"*/ 52830, 1024, 1072, 1176, 1328, 640, 641, 644, 663, }, - {/*"1024x768_60.00"*/ 64110, 1024, 1080, 1184, 1344, 768, 769, 772, 795, }, - {/*"1152x764_60.00"*/ 71380, 1152, 1208, 1328, 1504, 764, 765, 768, 791, }, - {/*"1280x800_60.00"*/ 83460, 1280, 1344, 1480, 1680, 800, 801, 804, 828, }, - {/*"1280x1024_55.00"*/ 98600, 1280, 1352, 1488, 1696, 1024, 1025, 1028, 1057, }, - {/*"1440x800_60.00"*/ 93800, 1440, 1512, 1664, 1888, 800, 801, 804, 828, }, - {/*"1440x900_67.00"*/ 120280, 1440, 1528, 1680, 1920, 900, 901, 904, 935, }, -}; - -ALIGN(16) -volatile rt_uint16_t _rt_framebuffer[FB_YSIZE][FB_XSIZE]; -static struct rt_device_graphic_info _dc_info; - -#define abs(x) ((x<0)?(-x):x) -#define min(a,b) ((atype = RT_Device_Class_Graphic; - dc->init = rt_dc_init; - dc->open = RT_NULL; - dc->close = RT_NULL; - dc->control = rt_dc_control; - dc->user_data = (void*)&_dc_info; - - /* register Display Controller device to RT-Thread */ - rt_device_register(dc, "dc", RT_DEVICE_FLAG_RDWR); -} diff --git a/bsp/ls1bdev/drivers/display_controller.h b/bsp/ls1bdev/drivers/display_controller.h deleted file mode 100644 index 1fa6243a72..0000000000 --- a/bsp/ls1bdev/drivers/display_controller.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-08-08 lgnq first version for LS1B - */ - -#ifndef __DISPLAY_CONTROLLER_H__ -#define __DISPLAY_CONTROLLER_H__ - -#include -#include "ls1b.h" - -#define DC_BASE 0xBC301240 //Display Controller - -/* Frame Buffer registers */ -#define DC_FB_CONFIG __REG32(DC_BASE + 0x000) -#define DC_FB_BUFFER_ADDR0 __REG32(DC_BASE + 0x020) -#define DC_FB_BUFFER_STRIDE __REG32(DC_BASE + 0x040) -#define DC_FB_BUFFER_ORIGIN __REG32(DC_BASE + 0x060) -#define DC_DITHER_CONFIG __REG32(DC_BASE + 0x120) -#define DC_DITHER_TABLE_LOW __REG32(DC_BASE + 0x140) -#define DC_DITHER_TABLE_HIGH __REG32(DC_BASE + 0x160) -#define DC_PANEL_CONFIG __REG32(DC_BASE + 0x180) -#define DC_PANEL_TIMING __REG32(DC_BASE + 0x1A0) -#define DC_HDISPLAY __REG32(DC_BASE + 0x1C0) -#define DC_HSYNC __REG32(DC_BASE + 0x1E0) -#define DC_VDISPLAY __REG32(DC_BASE + 0x240) -#define DC_VSYNC __REG32(DC_BASE + 0x260) -#define DC_FB_BUFFER_ADDR1 __REG32(DC_BASE + 0x340) - -/* Display Controller driver for 1024x768 16bit */ -#define FB_XSIZE 1024 -#define FB_YSIZE 768 -#define CONFIG_VIDEO_16BPP - -#define APB_CLK 33333333 - -#define K1BASE 0xA0000000 -#define KSEG1(addr) ((void *)(K1BASE | (rt_uint32_t)(addr))) -#define HW_FB_ADDR KSEG1(_rt_framebuffer) -#define HW_FB_PIXEL(x, y) *(volatile rt_uint16_t*)((rt_uint8_t*)HW_FB_ADDR + (y * FB_XSIZE * 2) + x * 2) - -struct vga_struct -{ - long pclk; - int hr,hss,hse,hfl; - int vr,vss,vse,vfl; -}; - -#endif diff --git a/bsp/ls1bdev/drivers/drv_uart.c b/bsp/ls1bdev/drivers/drv_uart.c deleted file mode 100644 index 8f469f26ed..0000000000 --- a/bsp/ls1bdev/drivers/drv_uart.c +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-08 zhuangwei the first version - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ -#include -#include -#include -#include "drv_uart.h" -#include "ls1b_pin.h" -#include "ls1b_uart.h" - -/* STM32 uart driver */ -struct rt_uart_ls1b -{ - ls1b_uart_t UARTx; - rt_uint32_t IRQ; -}; - -static rt_err_t ls1b_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) -{ - struct rt_uart_ls1b *uart_dev = RT_NULL; - ls1b_uart_info_t uart_info = {0}; - - RT_ASSERT(serial != RT_NULL); - RT_ASSERT(cfg != RT_NULL); - - uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; - - // 初始化串口 - uart_info.UARTx = uart_dev->UARTx; - uart_info.baudrate = cfg->baud_rate; - uart_info.rx_enable = TRUE; - uart_init(&uart_info); - - return RT_EOK; - -} - -static rt_err_t ls1b_uart_control(struct rt_serial_device *serial, int cmd, void *arg) -{ - struct rt_uart_ls1b *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; - - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: /* disable rx irq */ - rt_hw_interrupt_mask(uart_dev->IRQ); - break; - - case RT_DEVICE_CTRL_SET_INT: /* enable rx irq */ - rt_hw_interrupt_umask(uart_dev->IRQ); - break; - - default: - break; - } - - return RT_EOK; - -} - -static int ls1b_uart_putc(struct rt_serial_device *serial, char c) -{ - struct rt_uart_ls1b *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - - uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; - uart_putc(uart_dev->UARTx, c); - - return 1; -} - -static int ls1b_uart_getc(struct rt_serial_device *serial) -{ - struct rt_uart_ls1b *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - - uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; - void *uart_base = uart_get_base(uart_dev->UARTx); - - if (LSR_RXRDY & reg_read_8(uart_base + LS1B_UART_LSR_OFFSET)) - { - return reg_read_8(uart_base + LS1B_UART_DAT_OFFSET); - } - - return -1; -} - -/* UART interrupt handler */ -static void uart_irq_handler(int vector, void *param) -{ - struct rt_serial_device *serial = (struct rt_serial_device *)param; - struct rt_uart_ls1b *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - - uart_dev = (struct rt_uart_ls1b *)serial->parent.user_data; - void *uart_base = uart_get_base(uart_dev->UARTx); - unsigned char iir = reg_read_8(uart_base + LS1B_UART_IIR_OFFSET); - - // 判断是否为接收超时或接收到有效数据 - if ((IIR_RXTOUT & iir) || (IIR_RXRDY & iir)) - { - rt_interrupt_enter(); - rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); - rt_interrupt_leave(); - } - -} - -static const struct rt_uart_ops ls1b_uart_ops = -{ - ls1b_uart_configure, - ls1b_uart_control, - ls1b_uart_putc, - ls1b_uart_getc, -}; - - -#if defined(RT_USING_UART1) -struct rt_uart_ls1b uart1 = -{ - LS1B_UART1, - LS1B_UART1_IRQ, -}; -struct rt_serial_device serial1; -#endif /* RT_USING_UART1 */ - -#if defined(RT_USING_UART2) -struct rt_uart_ls1b uart2 = -{ - LS1B_UART2, - LS1B_UART2_IRQ, -}; -struct rt_serial_device serial2; -#endif /* RT_USING_UART2 */ - - -#if defined(RT_USING_UART3) -struct rt_uart_ls1b uart3 = -{ - LS1B_UART3, - LS1B_UART3_IRQ, -}; -struct rt_serial_device serial3; -#endif /* RT_USING_UART3 */ - -#if defined(RT_USING_UART4) -struct rt_uart_ls1b uart4 = -{ - LS1B_UART4, - LS1B_UART4_IRQ, -}; -struct rt_serial_device serial4; -#endif /* RT_USING_UART4 */ - -#if defined(RT_USING_UART5) -struct rt_uart_ls1b uart5 = -{ - LS1B_UART5, - LS1B_UART5_IRQ, -}; -struct rt_serial_device serial5; -#endif /* RT_USING_UART5 */ - - - -void rt_hw_uart_init(void) -{ - struct rt_uart_ls1b *uart; - struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; - -#ifdef RT_USING_UART5 - uart = &uart5; - - serial5.ops = &ls1b_uart_ops; - serial5.config = config; - - rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial5, "UART5"); - - /* register UART5 device */ - rt_hw_serial_register(&serial5, - "uart5", - //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - uart); -#endif /* RT_USING_UART5 */ - - -#ifdef RT_USING_UART2 - uart = &uart2; - - serial2.ops = &ls1b_uart_ops; - serial2.config = config; - - pin_set_purpose(36, PIN_PURPOSE_OTHER); - pin_set_purpose(37, PIN_PURPOSE_OTHER); - pin_set_remap(36, PIN_REMAP_SECOND); - pin_set_remap(37, PIN_REMAP_SECOND); - - rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial2, "UART2"); - - /* register UART2 device */ - rt_hw_serial_register(&serial2, - "uart2", - //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - uart); -#endif /* RT_USING_UART2 */ - -} - diff --git a/bsp/ls1bdev/drivers/drv_uart.h b/bsp/ls1bdev/drivers/drv_uart.h deleted file mode 100644 index 01dfd9aae0..0000000000 --- a/bsp/ls1bdev/drivers/drv_uart.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-08 zhuangwei the first version - */ - -#ifndef __DRV_UART_H__ -#define __DRV_UART_H__ - -#include "ls1b.h" -#include - -#define DEV_CLK 252000000 // 252MHz -#define UART_BAUDRATE 115200 - -#define UART0_BASE 0xBFE40000 -//#define UART0_1_BASE 0xBFE41000 -#define UART1_BASE 0xBFE44000 -#define UART2_BASE 0xBFE48000 -#define UART3_BASE 0xBFE4C000 -#define UART4_BASE 0xBFE4C400 -#define UART5_BASE 0xBFE4C500 -#define UART6_BASE 0xBFE4C600 -#define UART7_BASE 0xBFE4C700 -#define UART8_BASE 0xBFE4C800 -#define UART9_BASE 0xBFE4C900 -#define UART10_BASE 0xBFE4Ca00 -#define UART11_BASE 0xBFE4Cb00 - -/* UART registers */ -#define UART_DAT(base) HWREG8(base + 0x00) -#define UART_IER(base) HWREG8(base + 0x01) -#define UART_IIR(base) HWREG8(base + 0x02) -#define UART_FCR(base) HWREG8(base + 0x02) -#define UART_LCR(base) HWREG8(base + 0x03) -#define UART_MCR(base) HWREG8(base + 0x04) -#define UART_LSR(base) HWREG8(base + 0x05) -#define UART_MSR(base) HWREG8(base + 0x06) - -#define UART_LSB(base) HWREG8(base + 0x00) -#define UART_MSB(base) HWREG8(base + 0x01) - -/* UART0 registers */ -#define UART0_DAT HWREG8(UART0_BASE + 0x00) -#define UART0_IER HWREG8(UART0_BASE + 0x01) -#define UART0_IIR HWREG8(UART0_BASE + 0x02) -#define UART0_FCR HWREG8(UART0_BASE + 0x02) -#define UART0_LCR HWREG8(UART0_BASE + 0x03) -#define UART0_MCR HWREG8(UART0_BASE + 0x04) -#define UART0_LSR HWREG8(UART0_BASE + 0x05) -#define UART0_MSR HWREG8(UART0_BASE + 0x06) - -#define UART0_LSB HWREG8(UART0_BASE + 0x00) -#define UART0_MSB HWREG8(UART0_BASE + 0x01) - -/* UART1 registers */ -#define UART1_DAT HWREG8(UART1_BASE + 0x00) -#define UART1_IER HWREG8(UART1_BASE + 0x01) -#define UART1_IIR HWREG8(UART1_BASE + 0x02) -#define UART1_FCR HWREG8(UART1_BASE + 0x02) -#define UART1_LCR HWREG8(UART1_BASE + 0x03) -#define UART1_MCR HWREG8(UART1_BASE + 0x04) -#define UART1_LSR HWREG8(UART1_BASE + 0x05) -#define UART1_MSR HWREG8(UART1_BASE + 0x06) - -#define UART1_LSB HWREG8(UART1_BASE + 0x00) -#define UART1_MSB HWREG8(UART1_BASE + 0x01) - -/* UART interrupt enable register value */ -#define UARTIER_IME (1 << 3) -#define UARTIER_ILE (1 << 2) -#define UARTIER_ITXE (1 << 1) -#define UARTIER_IRXE (1 << 0) - -/* UART line control register value */ -#define UARTLCR_DLAB (1 << 7) -#define UARTLCR_BCB (1 << 6) -#define UARTLCR_SPB (1 << 5) -#define UARTLCR_EPS (1 << 4) -#define UARTLCR_PE (1 << 3) -#define UARTLCR_SB (1 << 2) - -/* UART line status register value */ -#define UARTLSR_ERROR (1 << 7) -#define UARTLSR_TE (1 << 6) -#define UARTLSR_TFE (1 << 5) -#define UARTLSR_BI (1 << 4) -#define UARTLSR_FE (1 << 3) -#define UARTLSR_PE (1 << 2) -#define UARTLSR_OE (1 << 1) -#define UARTLSR_DR (1 << 0) - -void rt_hw_uart_init(void); - - -#endif diff --git a/bsp/ls1bdev/libraries/SConscript b/bsp/ls1bdev/libraries/SConscript deleted file mode 100644 index 78797ef273..0000000000 --- a/bsp/ls1bdev/libraries/SConscript +++ /dev/null @@ -1,10 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -CPPPATH = [cwd] - -group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls1bdev/libraries/ls1b_clock.c b/bsp/ls1bdev/libraries/ls1b_clock.c deleted file mode 100644 index 05547a158c..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_clock.c +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ - - -#include "rtconfig.h" -#include "ls1b_regs.h" -#include "ls1b_public.h" - - -// 晶振的频率 -#define AHB_CLK (RT_OSC_CLK) -#define APB_CLK (AHB_CLK) - -#define DIV_DC_EN (0x1 << 31) -#define DIV_DC (0x1f << 26) -#define DIV_CPU_EN (0x1 << 25) -#define DIV_CPU (0x1f << 20) -#define DIV_DDR_EN (0x1 << 19) -#define DIV_DDR (0x1f << 14) - -#define DIV_DC_SHIFT 26 -#define DIV_CPU_SHIFT 20 -#define DIV_DDR_SHIFT 14 - - -/* - * 获取PLL频率 - * @ret PLL频率 - */ -unsigned long clk_get_pll_rate(void) -{ - unsigned int ctrl; - unsigned long pll_rate = 0; - - ctrl = reg_read_32((volatile unsigned int *)LS1B_START_FREQ); - pll_rate = (12 + (ctrl & 0x3f)) * APB_CLK / 2 - + ((ctrl >> 8) & 0x3ff) * APB_CLK / 1024 / 2; - - return pll_rate; -} - - -/* - * 获取CPU频率 - * @ret CPU频率 - */ -unsigned long clk_get_cpu_rate(void) -{ - unsigned long pll_rate, cpu_rate; - unsigned int ctrl; - - pll_rate = clk_get_pll_rate(); - ctrl = reg_read_32((volatile unsigned int *)LS1B_CLK_DIV_PARAM); - cpu_rate = pll_rate / ((ctrl & DIV_CPU) >> DIV_CPU_SHIFT); - - return cpu_rate; -} - - -/* - * 获取DDR频率 - * @ret DDR频率 - */ -unsigned long clk_get_ddr_rate(void) -{ - unsigned long pll_rate, ddr_rate; - unsigned int ctrl; - - pll_rate = clk_get_pll_rate(); - ctrl = reg_read_32((volatile unsigned int *)LS1B_CLK_DIV_PARAM); - - ddr_rate = pll_rate / ((ctrl & DIV_DDR) >> DIV_DDR_SHIFT); - - return ddr_rate; -} - - -/* - * 获取APB频率 - * @ret APB频率 - */ -unsigned long clk_get_apb_rate(void) -{ - return clk_get_ddr_rate() / 2; -} - - -/* - * 获取DC频率 - * @ret DC频率 - */ -unsigned long clk_get_dc_rate(void) -{ - unsigned long pll_rate, dc_rate; - unsigned int ctrl; - - pll_rate = clk_get_pll_rate(); - ctrl = reg_read_32((volatile unsigned int *)LS1B_CLK_DIV_PARAM); - - dc_rate = pll_rate ; - - return dc_rate; -} - - - diff --git a/bsp/ls1bdev/libraries/ls1b_clock.h b/bsp/ls1bdev/libraries/ls1b_clock.h deleted file mode 100644 index bd22986e4c..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_clock.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - - -#ifndef __LOONGSON_CLOCK_H -#define __LOONGSON_CLOCK_H - - - -/* - * »ñȡPLLƵÂÊ - * @ret PLLƵÂÊ - */ -unsigned long clk_get_pll_rate(void); - - -/* - * »ñȡCPUƵÂÊ - * @ret CPUƵÂÊ - */ -unsigned long clk_get_cpu_rate(void); - - - -/* - * »ñȡDDRƵÂÊ - * @ret DDRƵÂÊ - */ -unsigned long clk_get_ddr_rate(void); - - -/* - * »ñȡAPBƵÂÊ - * @ret APBƵÂÊ - */ -unsigned long clk_get_apb_rate(void); - - -/* - * »ñȡDCƵÂÊ - * @ret DCƵÂÊ - */ -unsigned long clk_get_dc_rate(void); - - - -#endif - diff --git a/bsp/ls1bdev/libraries/ls1b_gpio.c b/bsp/ls1bdev/libraries/ls1b_gpio.c deleted file mode 100644 index 2e100e7122..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_gpio.c +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ - - -#include "ls1b_public.h" -#include "ls1b_regs.h" -#include "ls1b_gpio.h" -#include "ls1b_pin.h" - - -/* - * 获取指定gpio的CFG寄存器 - * @gpio gpio编号 - * @ret CFG寄存器 - */ -volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio) -{ - volatile unsigned int *gpio_cfgx = NULL; // GPIO_CFGx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - - switch (port) - { - case 0: - gpio_cfgx = (volatile unsigned int *)LS1B_GPIO_CFG0; - break; - - case 1: - gpio_cfgx = (volatile unsigned int *)LS1B_GPIO_CFG1; - break; - default: - gpio_cfgx = NULL; - break; - } - - return gpio_cfgx; -} - - -/* - * 获取指定gpio的EN寄存器 - * @gpio gpio编号 - * @ret EN寄存器 - */ -volatile unsigned int *gpio_get_en_reg(unsigned int gpio) -{ - volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - - switch (port) - { - case 0: - gpio_enx = (volatile unsigned int *)LS1B_GPIO_EN0; - break; - - case 1: - gpio_enx = (volatile unsigned int *)LS1B_GPIO_EN1; - break; - default: - gpio_enx = NULL; - return gpio_enx; - } - - return gpio_enx; -} - -/* - * gpio初始化 - * @gpio gpio引脚,取值范围[0, 127] - * @mode gpio的工作模式(输入、输出) - * - * 例: 将gpio50初始化为输出 - * gpio_init(50, gpio_mode_output); - */ -void gpio_init(unsigned int gpio, gpio_mode_t mode) -{ - volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 - unsigned int pin = GPIO_GET_PIN(gpio); - - // 将pin设为普通GPIO - pin_set_purpose(gpio, PIN_PURPOSE_GPIO); - - // 设置gpio工作模式(输入、输出) - gpio_enx = gpio_get_en_reg(gpio); - if (gpio_mode_output == mode) // 输出 - { - reg_clr_one_bit(gpio_enx, pin); - } - else // 输入 - { - reg_set_one_bit(gpio_enx, pin); - } - - return ; -} - - -/* - * 在指定gpio输出高电平或低电平 - * @gpio gpio引脚,取值范围[0, 127] - * @level 电平值 - * - * 例: 在gpio50上输出低电平 - * gpio_set(50, gpio_level_low); - */ -void gpio_set(unsigned int gpio, gpio_level_t level) -{ - volatile unsigned int *gpio_outx = NULL; // GPIO_OUTx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - - // 获取寄存器地址 - switch (port) - { - case 0: - gpio_outx = (volatile unsigned int *)LS1B_GPIO_OUT0; - break; - - case 1: - gpio_outx = (volatile unsigned int *)LS1B_GPIO_OUT1; - break; - default: // 正确的程序不应该走到这里,直接返回 - return ; - } - - // 输出 - if (gpio_level_low == level) - { - reg_clr_one_bit(gpio_outx, pin); - } - else - { - reg_set_one_bit(gpio_outx, pin); - } - - return ; -} - - -/* - * 读取指定gpio引脚的值 - * @gpio gpio引脚,取值范围[0,127] - * - * 例: 读取gpio50引脚上的值 - * gpio_level_t level; - * level = gpio_get(50); - */ -unsigned int gpio_get(unsigned int gpio) -{ - volatile unsigned int *gpio_inx = NULL; // GPIO_INx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - - // 获取寄存器地址 - switch (port) - { - case 0: - gpio_inx = (volatile unsigned int *)LS1B_GPIO_IN0; - break; - - case 1: - gpio_inx = (volatile unsigned int *)LS1B_GPIO_IN1; - break; - default: // 正常的流程不应该走到这里,直接返回 - return 0; - } - - // 读取 - return reg_get_bit(gpio_inx, pin); -} - - -/** - * 设置中断类型 - * @gpio gpio引脚 - * @type 触发中断的条件。高电平触发、低电平触发、上升沿触发 or 下降沿触发 - */ -void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type) -{ - volatile unsigned int *int_pol = NULL; // 中断极性选择寄存器 - volatile unsigned int *int_edge = NULL; // 中断边沿选择寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - - // 获取寄存器地址 - switch (port) - { - case 0: // GPIO[31:0] - int_pol = (volatile unsigned int *)LS1B_INT2_POL; - int_edge = (volatile unsigned int *)LS1B_INT2_EDGE; - break; - - case 1: // GPIO[63:32] - int_pol = (volatile unsigned int *)LS1B_INT3_POL; - int_edge = (volatile unsigned int *)LS1B_INT3_EDGE; - break; - - } - - // 设置中断类型 - switch (type) - { - case IRQ_TYPE_EDGE_RISING: - *int_pol |= (1 << pin); - *int_edge |= (1 << pin); - break; - - case IRQ_TYPE_EDGE_FALLING: - *int_pol &= ~(1 << pin); - *int_edge |= (1 << pin); - break; - - case IRQ_TYPE_LEVEL_HIGH: - *int_pol |= (1 << pin); - *int_edge &= ~(1 << pin); - break; - - case IRQ_TYPE_LEVEL_LOW: - *int_pol &= ~(1 << pin); - *int_edge &= ~(1 << pin); - break; - - default: - break; - } - - return ; -} - - - diff --git a/bsp/ls1bdev/libraries/ls1b_gpio.h b/bsp/ls1bdev/libraries/ls1b_gpio.h deleted file mode 100644 index cfbe148020..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_gpio.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - - -#ifndef __LOONGSON_GPIO_H -#define __LOONGSON_GPIO_H - - - -// 龙芯1c的gpio是按照0,1,2,3,4...这样的顺序编号的, -// 但在操作寄存器的时候,又是按照每32个一组来分的 -// 这里利用这个特性,将每组的32个gpio叫做一个"port",每个gpio在每组中的索引叫"pin" -// port = gpio / 32 -// pin = gpio % 32 -// 例如GPIO50,port=1,pin=18 -#define GPIO_GET_PORT(gpio) ((gpio) / 32) -#define GPIO_GET_PIN(gpio) ((gpio) % 32) - - -// gpio的工作模式--输入、输出 -typedef enum{ - gpio_mode_output = 0, // 输出 - gpio_mode_input = 1 // 输入 -}gpio_mode_t; - - -// gpio高低电平值 -typedef enum{ - gpio_level_low = 0, // 低电平 - gpio_level_high = 1 // 高电平 -}gpio_level_t; - - -typedef enum { - // 上升沿触发 - IRQ_TYPE_EDGE_RISING = 0x00000001, - // 下降沿触发 - IRQ_TYPE_EDGE_FALLING = 0x00000002, - IRQ_TYPE_EDGE_BOTH = (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING), - // 高电平触发 - IRQ_TYPE_LEVEL_HIGH = 0x00000004, - // 低电平触发 - IRQ_TYPE_LEVEL_LOW = 0x00000008, - IRQ_TYPE_LEVEL_MASK = (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH), -}gpio_irq_type_t; - - - -/* - * 获取指定gpio的CFG寄存器 - * @gpio gpio编号 - * @ret CFG寄存器 - */ -volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio); - -/* - * gpio初始化 - * @gpio gpio引脚,取值范围[0, 127] - * @mode gpio的工作模式(输入、输出) - * - * 例: 将gpio50初始化为输出 - * gpio_init(50, gpio_mode_output); - */ -void gpio_init(unsigned int gpio, gpio_mode_t mode); - - -/* - * 在指定gpio输出高电平或低电平 - * @gpio gpio引脚,取值范围[0, 127] - * @level 电平值 - * - * 例: 在gpio50上输出低电平 - * gpio_set(50, gpio_level_low); - */ -void gpio_set(unsigned int gpio, gpio_level_t level); - - - -/* - * 读取指定gpio引脚的值 - * @gpio gpio引脚,取值范围[0,127] - * - * 例: 读取gpio50引脚上的值 - * gpio_level_t level; - * level = gpio_get(50); - */ -unsigned int gpio_get(unsigned int gpio); - - - -/** - * 设置中断类型 - * @gpio gpio引脚 - * @type 触发中断的条件。高电平触发、低电平触发、上升沿触发 or 下降沿触发 - */ -void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type); - - - -#endif - diff --git a/bsp/ls1bdev/libraries/ls1b_pin.c b/bsp/ls1bdev/libraries/ls1b_pin.c deleted file mode 100644 index 58d9e7e46c..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_pin.c +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ - -// 引脚功能(普通gpio,pwm,复用等)相关接口 - - -#include "ls1b_public.h" -#include "ls1b_regs.h" -#include "ls1b_gpio.h" -#include "ls1b_pin.h" - - -/* - * 把指定pin设置为指定用途(普通gpio,非gpio) - * @gpio gpio引脚编号 - * @purpose 用途 - */ -void pin_set_purpose(unsigned int gpio, pin_purpose_t purpose) -{ - volatile unsigned int *gpio_cfgx; // GPIO_CFGx寄存器 - unsigned int pin = GPIO_GET_PIN(gpio); - - gpio_cfgx = gpio_get_cfg_reg(gpio); - if (PIN_PURPOSE_GPIO == purpose) // 引脚用作普通gpio - { - reg_set_one_bit(gpio_cfgx, pin); - } - else // 引脚用作其它功能(非gpio) - { - reg_clr_one_bit(gpio_cfgx, pin); - } - - return ; -} - - - -/* - * 设置指定pin为第n复用 - * @gpio gpio编号 - * @remap 第n复用 - */ -void pin_set_remap(unsigned int gpio, pin_remap_t remap) -{ - volatile unsigned int *reg = NULL; // 复用寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - int i; - - /*指定全部pin复用为0*/ - for (i = 0; i <= 4; i++) - { - reg = (volatile unsigned int *)((LS1B_CBUS_FIRST0) + ((port) * 0x04) + ((i) * 0x10)); - // 置0 - reg_clr_one_bit(reg, pin); - } - - if (remap == PIN_REMAP_DEFAULT) return; - - switch (port) - { - case 0: - switch (remap) - { - case PIN_REMAP_FIRST: - reg = (volatile unsigned int *)LS1B_CBUS_FIRST0; - break; - case PIN_REMAP_SECOND: - reg = (volatile unsigned int *)LS1B_CBUS_SECOND0; - break; - case PIN_REMAP_THIRD: - reg = (volatile unsigned int *)LS1B_CBUS_THIRD0; - break; - case PIN_REMAP_FOURTH: - reg = (volatile unsigned int *)LS1B_CBUS_FOURTH0; - break; - case PIN_REMAP_FIFTH: - reg = (volatile unsigned int *)LS1B_CBUS_FIFTH0; - break; - } - break; - - case 1: - switch (remap) - { - case PIN_REMAP_FIRST: - reg = (volatile unsigned int *)LS1B_CBUS_FIRST1; - break; - case PIN_REMAP_SECOND: - reg = (volatile unsigned int *)LS1B_CBUS_SECOND1; - break; - case PIN_REMAP_THIRD: - reg = (volatile unsigned int *)LS1B_CBUS_THIRD1; - break; - case PIN_REMAP_FOURTH: - reg = (volatile unsigned int *)LS1B_CBUS_FOURTH1; - break; - case PIN_REMAP_FIFTH: - reg = (volatile unsigned int *)LS1B_CBUS_FIFTH1; - break; - } - break; - - case 2: - switch (remap) - { - case PIN_REMAP_FIRST: - reg = (volatile unsigned int *)LS1B_CBUS_FIRST2; - break; - case PIN_REMAP_SECOND: - reg = (volatile unsigned int *)LS1B_CBUS_SECOND2; - break; - case PIN_REMAP_THIRD: - reg = (volatile unsigned int *)LS1B_CBUS_THIRD2; - break; - case PIN_REMAP_FOURTH: - reg = (volatile unsigned int *)LS1B_CBUS_FOURTH2; - break; - case PIN_REMAP_FIFTH: - reg = (volatile unsigned int *)LS1B_CBUS_FIFTH2; - break; - } - break; - - case 3: - switch (remap) - { - case PIN_REMAP_FIRST: - reg = (volatile unsigned int *)LS1B_CBUS_FIRST3; - break; - case PIN_REMAP_SECOND: - reg = (volatile unsigned int *)LS1B_CBUS_SECOND3; - break; - case PIN_REMAP_THIRD: - reg = (volatile unsigned int *)LS1B_CBUS_THIRD3; - break; - case PIN_REMAP_FOURTH: - reg = (volatile unsigned int *)LS1B_CBUS_FOURTH3; - break; - case PIN_REMAP_FIFTH: - reg = (volatile unsigned int *)LS1B_CBUS_FIFTH3; - break; - } - break; - - default: - return ; - } - - // 置1 - reg_set_one_bit(reg, pin); - - return ; -} - - - diff --git a/bsp/ls1bdev/libraries/ls1b_pin.h b/bsp/ls1bdev/libraries/ls1b_pin.h deleted file mode 100644 index af63ba4187..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_pin.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - -// 引脚功能(普通gpio,pwm,复用等)相关接口 - -#ifndef __LOONGSON_PIN_H -#define __LOONGSON_PIN_H - - -// 引脚用途 -typedef enum -{ - PIN_PURPOSE_GPIO = 0, // 引脚用作普通gpio - PIN_PURPOSE_OTHER, // 引脚用作其它功能(非gpio) -}pin_purpose_t; - - -// 引脚复用 -typedef enum -{ - PIN_REMAP_FIRST = 0, // 第一复用 - PIN_REMAP_SECOND, // 第二复用 - PIN_REMAP_THIRD, // 第三复用 - PIN_REMAP_FOURTH, // 第四复用 - PIN_REMAP_FIFTH, // 第五复用 - PIN_REMAP_DEFAULT, //缺省复用 -}pin_remap_t; - - -/* - * 把指定pin设置为指定用途(普通gpio,非gpio) - * @gpio gpio引脚编号 - * @purpose 用途 - */ -void pin_set_purpose(unsigned int gpio, pin_purpose_t purpose); - - -/* - * 设置指定pin为第n复用 - * @gpio gpio编号 - * @remap 第n复用 - */ -void pin_set_remap(unsigned int gpio, pin_remap_t remap); - - -#endif - diff --git a/bsp/ls1bdev/libraries/ls1b_public.c b/bsp/ls1bdev/libraries/ls1b_public.c deleted file mode 100644 index b48d59a851..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_public.c +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ - -// 一些常用的、共用的接口 - -/* - * 将指定寄存器的指定位置1 - * @reg 寄存器地址 - * @bit 需要置1的那一bit - */ -void reg_set_one_bit(volatile unsigned int *reg, unsigned int bit) -{ - unsigned int temp, mask; - - mask = 1 << bit; - temp = *reg; - temp |= mask; - *reg = temp; - - return ; -} - - -/* - * 将指定寄存器的指定位清零 - * @reg 寄存器地址 - * @bit 需要清零的那一bit - */ -void reg_clr_one_bit(volatile unsigned int *reg, unsigned int bit) -{ - unsigned int temp, mask; - - mask = 1 << bit; - temp = *reg; - temp &= ~mask; - *reg = temp; - - return ; -} - - - -/* - * 获取指定寄存器的指定位的值 - * @reg 寄存器地址 - * @bit 需要读取值的那一bit - * @ret 指定位的值 - */ -unsigned int reg_get_bit(volatile unsigned int *reg, unsigned int bit) -{ - unsigned int temp; - - temp = *reg; - temp = (temp >> bit) & 1; - - return temp; -} - - -/* - * 向寄存器中写入8bit(一个字节)数据 - * @data 待写入的数据 - * @addr 寄存器地址 - */ -void reg_write_8(unsigned char data, volatile unsigned char *addr) -{ - *addr = data; -} - - -/* - * 从寄存器读出8bit(一个字节)数据 - * @addr 寄存器地址 - * @ret 读出的数据 - */ -unsigned char reg_read_8(volatile unsigned char *addr) -{ - return (*addr); -} - - -/* - * 向寄存器中写一个32bit的数据 - * @data 待写入的数据 - * @addr 寄存器地址 - */ -void reg_write_32(unsigned int data, volatile unsigned int *addr) -{ - *addr = data; -} - - -/* - * 从寄存器读出一个32bit数据 - * @addr 寄存器地址 - * @ret 读出的数据 - */ -unsigned int reg_read_32(volatile unsigned int *addr) -{ - return (*addr); -} - - - -/** - * ffs - find first bit set - * @x: the word to search - * - * This is defined the same way as - * the libc and compiler builtin ffs routines, therefore - * differs in spirit from the above ffz (man ffs). - */ -int ls1b_ffs(int x) -{ - int r = 1; - - if (!x) - return 0; - if (!(x & 0xffff)) { - x >>= 16; - r += 16; - } - if (!(x & 0xff)) { - x >>= 8; - r += 8; - } - if (!(x & 0xf)) { - x >>= 4; - r += 4; - } - if (!(x & 3)) { - x >>= 2; - r += 2; - } - if (!(x & 1)) { - x >>= 1; - r += 1; - } - return r; -} - - -/* - * fls - find last (most-significant) bit set - * @x: the word to search - * - * This is defined the same way as ffs. - * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. - */ -int ls1b_fls(int x) -{ - int r = 32; - - if (!x) - return 0; - if (!(x & 0xffff0000u)) - { - x <<= 16; - r -= 16; - } - if (!(x & 0xff000000u)) - { - x <<= 8; - r -= 8; - } - if (!(x & 0xf0000000u)) - { - x <<= 4; - r -= 4; - } - if (!(x & 0xc0000000u)) - { - x <<= 2; - r -= 2; - } - if (!(x & 0x80000000u)) - { - x <<= 1; - r -= 1; - } - - return r; -} - - diff --git a/bsp/ls1bdev/libraries/ls1b_public.h b/bsp/ls1bdev/libraries/ls1b_public.h deleted file mode 100644 index 875f413062..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_public.h +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - -// 一些常用的、共用的接口 - -#ifndef __LOONGSON_PUBLIC_H -#define __LOONGSON_PUBLIC_H - - -#include - - -// pmon提供的打印函数,见main()函数 -struct callvectors { - int (*open) (char *, int, int); - int (*close) (int); - int (*read) (int, void *, int); - int (*write) (int, void *, int); - long long (*lseek) (int, long long, int); - int (*printf) (const char *, ...); - void (*cacheflush) (void); - char *(*gets) (char *); -}; -#define myprintf (*callvec->printf) -#define mygets (*callvec->gets) -extern struct callvectors *callvec; - - -#define MIN(a, b) ((a) > (b) ? (b) : (a)) -#define MAX(a, b) ((a) > (b) ? (a) : (b)) - -#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) - -typedef enum -{ - FALSE=0, - TRUE=1 -}BOOL; - -/* - * 将指定寄存器的指定位置1 - * @reg 寄存器地址 - * @bit 需要置1的那一bit - */ -void reg_set_one_bit(volatile unsigned int *reg, unsigned int bit); - - -/* - * 将指定寄存器的指定位清零 - * @reg 寄存器地址 - * @bit 需要清零的那一bit - */ -void reg_clr_one_bit(volatile unsigned int *reg, unsigned int bit); - - -/* - * 获取指定寄存器的指定位的值 - * @reg 寄存器地址 - * @bit 需要读取值的那一bit - * @ret 指定位的值 - */ -unsigned int reg_get_bit(volatile unsigned int *reg, unsigned int bit); - - -/* - * 向寄存器中写入8bit(一个字节)数据 - * @data 待写入的数据 - * @addr 寄存器地址 - */ -void reg_write_8(unsigned char data, volatile unsigned char *addr); - - -/* - * 从寄存器读出8bit(一个字节)数据 - * @addr 寄存器地址 - * @ret 读出的数据 - */ -unsigned char reg_read_8(volatile unsigned char *addr); - - -/* - * 向寄存器中写一个32bit的数据 - * @data 待写入的数据 - * @addr 寄存器地址 - */ -void reg_write_32(unsigned int data, volatile unsigned int *addr); - - -/* - * 从寄存器读出一个32bit数据 - * @addr 寄存器地址 - * @ret 读出的数据 - */ -unsigned int reg_read_32(volatile unsigned int *addr); - - -/** - * ffs - find first bit set - * @x: the word to search - */ -int ls1b_ffs(int x); - -/* - * fls - find last (most-significant) bit set - * @x: the word to search - * - * This is defined the same way as ffs. - * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. - */ -int ls1b_fls(int x); - - -#endif - diff --git a/bsp/ls1bdev/libraries/ls1b_regs.h b/bsp/ls1bdev/libraries/ls1b_regs.h deleted file mode 100644 index 6dad9c29bb..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_regs.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ - -// 龙芯1b外设寄存器 - - -#ifndef __LOONGSON_LS1B_REGS_H -#define __LOONGSON_LS1B_REGS_H - - - - -// 时钟相关寄存器地址 -#define LS1B_START_FREQ (0xbfe78030) -#define LS1B_CLK_DIV_PARAM (0xbfe78034) - - -// gpio相关寄存器地址 -#define LS1B_GPIO_CFG0 (0xbfd010c0) -#define LS1B_GPIO_EN0 (0xbfd010d0) -#define LS1B_GPIO_IN0 (0xbfd010e0) -#define LS1B_GPIO_OUT0 (0xbfd010f0) - -#define LS1B_GPIO_CFG1 (0xbfd010c4) -#define LS1B_GPIO_EN1 (0xbfd010d4) -#define LS1B_GPIO_IN1 (0xbfd010e4) -#define LS1B_GPIO_OUT1 (0xbfd010f4) - - - -// 复用相关寄存器 -#define LS1B_CBUS_FIRST0 (0xbfd011c0) -#define LS1B_CBUS_SECOND0 (0xbfd011d0) -#define LS1B_CBUS_THIRD0 (0xbfd011e0) -#define LS1B_CBUS_FOURTH0 (0xbfd011f0) -#define LS1B_CBUS_FIFTH0 (0xbfd01200) - -#define LS1B_CBUS_FIRST1 (0xbfd011c4) -#define LS1B_CBUS_SECOND1 (0xbfd011d4) -#define LS1B_CBUS_THIRD1 (0xbfd011e4) -#define LS1B_CBUS_FOURTH1 (0xbfd011f4) -#define LS1B_CBUS_FIFTH1 (0xbfd01204) - -#define LS1B_CBUS_FIRST2 (0xbfd011c8) -#define LS1B_CBUS_SECOND2 (0xbfd011d8) -#define LS1B_CBUS_THIRD2 (0xbfd011e8) -#define LS1B_CBUS_FOURTH2 (0xbfd011f8) -#define LS1B_CBUS_FIFTH2 (0xbfd01208) - -#define LS1B_CBUS_FIRST3 (0xbfd011cc) -#define LS1B_CBUS_SECOND3 (0xbfd011dc) -#define LS1B_CBUS_THIRD3 (0xbfd011ec) -#define LS1B_CBUS_FOURTH3 (0xbfd011fc) -#define LS1B_CBUS_FIFTH3 (0xbfd0120c) - - -// PWM寄存器偏移 -#define LS1B_PWM_CNTR (0x0) -#define LS1B_PWM_HRC (0x4) -#define LS1B_PWM_LRC (0x8) -#define LS1B_PWM_CTRL (0xC) -// PWM基地址 -#define LS1B_REG_BASE_PWM0 (0xbfe5c000) -#define LS1B_REG_BASE_PWM1 (0xbfe5c010) -#define LS1B_REG_BASE_PWM2 (0xbfe5c020) -#define LS1B_REG_BASE_PWM3 (0xbfe5c030) - -//CAN基地址 -#define LS1B_REG_BASE_CAN0 (0xbfe50000) -#define LS1B_REG_BASE_CAN1 (0xbfe54000) - -// 中断配置寄存器 -#define LS1B_INT0_SR (0xbfd01040) -#define LS1B_INT0_EN (0xbfd01044) -#define LS1B_INT0_SET (0xbfd01048) -#define LS1B_INT0_CLR (0xbfd0104c) -#define LS1B_INT0_POL (0xbfd01050) -#define LS1B_INT0_EDGE (0xbfd01054) - -#define LS1B_INT1_SR (0xbfd01058) -#define LS1B_INT1_EN (0xbfd0105c) -#define LS1B_INT1_SET (0xbfd01060) -#define LS1B_INT1_CLR (0xbfd01064) -#define LS1B_INT1_POL (0xbfd01068) -#define LS1B_INT1_EDGE (0xbfd0106c) - -#define LS1B_INT2_SR (0xbfd01070) -#define LS1B_INT2_EN (0xbfd01074) -#define LS1B_INT2_SET (0xbfd01078) -#define LS1B_INT2_CLR (0xbfd0107c) -#define LS1B_INT2_POL (0xbfd01080) -#define LS1B_INT2_EDGE (0xbfd01084) - -#define LS1B_INT3_SR (0xbfd01088) -#define LS1B_INT3_EN (0xbfd0108c) -#define LS1B_INT3_SET (0xbfd01090) -#define LS1B_INT3_CLR (0xbfd01094) -#define LS1B_INT3_POL (0xbfd01098) -#define LS1B_INT3_EDGE (0xbfd0109c) - -#define LS1B_INT4_SR (0xbfd010a0) -#define LS1B_INT4_EN (0xbfd010a4) -#define LS1B_INT4_SET (0xbfd010a8) -#define LS1B_INT4_CLR (0xbfd010ac) -#define LS1B_INT4_POL (0xbfd010b0) -#define LS1B_INT4_EDGE (0xbfd010b4) - - -// I2C寄存器 -#define LS1B_I2C0_BASE (0xbfe58000) -#define LS1B_I2C1_BASE (0xbfe68000) -#define LS1B_I2C2_BASE (0xbfe70000) - - -// SPI寄存器 -#define LS1B_SPI0_BASE (0xbfe80000) -#define LS1B_SPI1_BASE (0xbfec0000) - - -// 串口寄存器 -#define LS1B_UART00_BASE (0xbfe40000) -#define LS1B_UART01_BASE (0xbfe41000) -#define LS1B_UART1_BASE (0xbfe44000) -#define LS1B_UART2_BASE (0xbfe48000) -#define LS1B_UART3_BASE (0xbfe4c000) -#define LS1B_UART4_BASE (0xbfe6c000) -#define LS1B_UART5_BASE (0xbfe7c000) -#define LS1B_UART6_BASE (0xbfe41000) -#define LS1B_UART7_BASE (0xbfe42000) -#define LS1B_UART8_BASE (0xbfe43000) -#define LS1B_UART9_BASE (0xbfe45000) -#define LS1B_UART10_BASE (0xbfe46000) -#define LS1B_UART11_BASE (0xbfe47000) - -//RTC寄存器 -#define LS1B_RTC_BASE (0xbfe64024) - - -#endif - diff --git a/bsp/ls1bdev/libraries/ls1b_uart.c b/bsp/ls1bdev/libraries/ls1b_uart.c deleted file mode 100644 index 73d88438f5..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_uart.c +++ /dev/null @@ -1,251 +0,0 @@ - /* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ -// 串口相关源码 - -#include -#include -#include "ls1b_public.h" -#include "ls1b_regs.h" -#include "ls1b_pin.h" -#include "ls1b_uart.h" -#include "ls1b_clock.h" -#include "ls1b.h" - - -// 串口线路状态寄存器的位域 -#define LS1B_UART_LSR_TE (1 << 6) -#define LS1B_UART_LSR_TFE (1 << 5) - - -// 打印缓存的大小 -#define LS1B_UART_PRINT_BUF_SIZE (256) - - -// 调试串口信息 -ls1b_uart_info_t debug_uart_info = {0}; - - -/* - * 获取指定串口模块的基地址 - * @UARTx 串口编号 - * @ret 基地址 - */ -void *uart_get_base(ls1b_uart_t UARTx) -{ - void *base = NULL; - - switch (UARTx) - { - case LS1B_UART00: - base = (void *)LS1B_UART00_BASE; - break; - case LS1B_UART01: - base = (void *)LS1B_UART01_BASE; - break; - - case LS1B_UART1: - base = (void *)LS1B_UART1_BASE; - break; - - case LS1B_UART2: - base = (void *)LS1B_UART2_BASE; - break; - - case LS1B_UART3: - base = (void *)LS1B_UART3_BASE; - break; - - case LS1B_UART4: - base = (void *)LS1B_UART4_BASE; - break; - - case LS1B_UART5: - base = (void *)LS1B_UART5_BASE; - break; - - case LS1B_UART6: - base = (void *)LS1B_UART6_BASE; - break; - - case LS1B_UART7: - base = (void *)LS1B_UART7_BASE; - break; - - case LS1B_UART8: - base = (void *)LS1B_UART8_BASE; - break; - - case LS1B_UART9: - base = (void *)LS1B_UART9_BASE; - break; - - case LS1B_UART10: - base = (void *)LS1B_UART10_BASE; - break; - - case LS1B_UART11: - base = (void *)LS1B_UART11_BASE; - break; - - default: - break; - } - - return base; -} - - -/* - * 初始化指定的串口模块 - * @uart_info_p 串口模块信息 - */ -void uart_init(ls1b_uart_info_t *uart_info_p) -{ - void *uart_base = uart_get_base(uart_info_p->UARTx); - unsigned long baudrate_div = 0; - - // 禁止所有中断 - reg_write_8(0, uart_base + LS1B_UART_IER_OFFSET); - - // 接收FIFO的中断申请Trigger为14字节,清空发送和接收FIFO,并复位 - reg_write_8(0xc3, uart_base + LS1B_UART_FCR_OFFSET); - - // 设置波特率 - reg_write_8(0x80, uart_base + LS1B_UART_LCR_OFFSET); - baudrate_div = clk_get_apb_rate() / 16 / uart_info_p->baudrate; - reg_write_8((baudrate_div >> 8) & 0xff, uart_base + LS1B_UART_MSB_OFFSET); - reg_write_8(baudrate_div & 0xff, uart_base + LS1B_UART_LSB_OFFSET); - - // 8个数据位,1个停止位,无校验 - reg_write_8(0x03, uart_base + LS1B_UART_LCR_OFFSET); - - // 使能接收中断 - if (TRUE == uart_info_p->rx_enable) - { - reg_write_8(IER_IRxE|IER_ILE , uart_base + LS1B_UART_IER_OFFSET); - } - - return ; -} - - -/* - * 判断FIFO是否为空 - * @uartx 串口号 - * @ret TRUE or FALSE - */ -BOOL uart_is_transmit_empty(ls1b_uart_t uartx) -{ - void *uart_base = uart_get_base(uartx); - unsigned char status = reg_read_8(uart_base + LS1B_UART_LSR_OFFSET); - - if (status & (LS1B_UART_LSR_TE | LS1B_UART_LSR_TFE)) - { - return TRUE; - } - else - { - return FALSE; - } -} - - -/* - * 发送一个字节 - * @uartx 串口号 - * @ch 待发送的字符串 - */ -void uart_putc(ls1b_uart_t uartx, unsigned char ch) -{ - void *uart_base = uart_get_base(uartx); - - // 等待 - while (FALSE == uart_is_transmit_empty(uartx)) - ; - - // 发送 - reg_write_8(ch, uart_base + LS1B_UART_DAT_OFFSET); - - return ; -} - - -/* - * 打印一个字符串到指定串口 - * @uartx 串口号 - * @str 待打印的字符串 - */ -void uart_print(ls1b_uart_t uartx, const char *str) -{ - while ('\0' != *str) // 判断是否为字符串结束符 - { - uart_putc(uartx, *str); // 发送一个字符 - str++; - } - - return ; -} - - -/* - * 初始化串口2 - */ -void uart2_init(void) -{ - unsigned int tx_gpio = 37; - unsigned int rx_gpio = 36; - - // 设置复用 - pin_set_remap(tx_gpio, PIN_REMAP_SECOND); - pin_set_remap(rx_gpio, PIN_REMAP_SECOND); - - // 初始化相关寄存器 - debug_uart_info.UARTx = LS1B_UART2; - debug_uart_info.baudrate = 115200; - debug_uart_info.rx_enable = FALSE; // 调试串口只需要打印(发送)功能,不需要接收功能 - uart_init(&debug_uart_info); - - return ; -} - - -/* - * 在串口2上打印字符串 - * @str 待打印的字符串 - */ -void uart2_print(const char *str) -{ - uart_print(LS1B_UART2, str); - return ; -} - - -/* - * 在调试串口打印字符串 - * @str 待打印的字符串 - */ -void uart_debug_print(const char *str) -{ - uart_print(debug_uart_info.UARTx, str); - return ; -} - - -/* - * 在调试串口打印一个字符 - * @ch 待打印的字符 - */ -void uart_debug_putc(unsigned char ch) -{ - uart_putc(debug_uart_info.UARTx, ch); - return ; -} - - diff --git a/bsp/ls1bdev/libraries/ls1b_uart.h b/bsp/ls1bdev/libraries/ls1b_uart.h deleted file mode 100644 index 88ee2793ad..0000000000 --- a/bsp/ls1bdev/libraries/ls1b_uart.h +++ /dev/null @@ -1,181 +0,0 @@ - /* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2021-02-02 michael5hzg@gmail.com adapt to ls1b - */ -// 串口相关头文件 - - -#ifndef __LOONGSON_UART_H -#define __LOONGSON_UART_H - - -#include "ls1b_public.h" - - -// 串口各寄存器相对基地址的偏移 -#define LS1B_UART_DAT_OFFSET (0) -#define LS1B_UART_IER_OFFSET (1) -#define LS1B_UART_IIR_OFFSET (2) -#define LS1B_UART_FCR_OFFSET (2) -#define LS1B_UART_LCR_OFFSET (3) -#define LS1B_UART_MCR_OFFSET (4) -#define LS1B_UART_LSR_OFFSET (5) -#define LS1B_UART_MSR_OFFSET (6) - -#define LS1B_UART_LSB_OFFSET (0) // 分频锁存器1 -#define LS1B_UART_MSB_OFFSET (1) // 分频锁存器2 - -/* interrupt enable register */ -#define IER_IRxE 0x1 /* 接收有效数据中断使能 */ -#define IER_ITxE 0x2 /* 传输保存寄存器为空中断使能 */ -#define IER_ILE 0x4 /* 接收器线路状态中断使能 */ -#define IER_IME 0x8 /* Modem状态中断使能 */ - -/* interrupt identification register */ -#define IIR_IMASK 0xf /* mask */ -#define IIR_RXTOUT 0xc /* receive timeout */ -#define IIR_RLS 0x6 /* receive line status */ -#define IIR_RXRDY 0x4 /* receive ready */ -#define IIR_TXRDY 0x2 /* transmit ready */ -#define IIR_NOPEND 0x1 /* nothing */ -#define IIR_MLSC 0x0 /* modem status */ -#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ - -/* fifo control register */ -#define FIFO_ENABLE 0x01 /* enable fifo */ -#define FIFO_RCV_RST 0x02 /* reset receive fifo */ -#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ -#define FIFO_DMA_MODE 0x08 /* enable dma mode */ -#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ -#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ -#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ -#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ - -// 线路控制寄存器 -/* character format control register */ -#define CFCR_DLAB 0x80 /* divisor latch */ -#define CFCR_SBREAK 0x40 /* send break */ -#define CFCR_PZERO 0x30 /* zero parity */ -#define CFCR_PONE 0x20 /* one parity */ -#define CFCR_PEVEN 0x10 /* even parity */ -#define CFCR_PODD 0x00 /* odd parity */ -#define CFCR_PENAB 0x08 /* parity enable */ -#define CFCR_STOPB 0x04 /* 2 stop bits */ -#define CFCR_8BITS 0x03 /* 8 data bits */ -#define CFCR_7BITS 0x02 /* 7 data bits */ -#define CFCR_6BITS 0x01 /* 6 data bits */ -#define CFCR_5BITS 0x00 /* 5 data bits */ - -/* modem control register */ -#define MCR_LOOPBACK 0x10 /* loopback */ -#define MCR_IENABLE 0x08 /* output 2 = int enable */ -#define MCR_DRS 0x04 /* output 1 = xxx */ -#define MCR_RTS 0x02 /* enable RTS */ -#define MCR_DTR 0x01 /* enable DTR */ - -/* line status register */ -#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ -#define LSR_TSRE 0x40 /* transmitter empty */ -#define LSR_TXRDY 0x20 /* transmitter ready */ -#define LSR_BI 0x10 /* break detected */ -#define LSR_FE 0x08 /* framing error */ -#define LSR_PE 0x04 /* parity error */ -#define LSR_OE 0x02 /* overrun error */ -#define LSR_RXRDY 0x01 /* receiver ready */ -#define LSR_RCV_MASK 0x1f - - -// 串口模块编号 -typedef enum -{ - LS1B_UART00 = 0, // 全功能串口UART0可以分为两个四线串口UART00和UART01 - LS1B_UART01, - LS1B_UART1, - LS1B_UART2, - LS1B_UART3, - LS1B_UART4, - LS1B_UART5, - LS1B_UART6, - LS1B_UART7, - LS1B_UART8, - LS1B_UART9, - LS1B_UART10, - LS1B_UART11 -}ls1b_uart_t; - - -// 串口信息 -typedef struct -{ - ls1b_uart_t UARTx; // 串口模块编号 - unsigned int baudrate; // 波特率 - BOOL rx_enable; // 是否需要使用串口接收数据(使能接收中断),发送默认使能 -}ls1b_uart_info_t; - - - -/* - * 获取指定串口模块的基地址 - * @UARTx 串口编号 - * @ret 基地址 - */ -void *uart_get_base(ls1b_uart_t UARTx); - - -/* - * 初始化指定的串口模块 - * @uart_info_p 串口模块信息 - */ -void uart_init(ls1b_uart_info_t *uart_info_p); - - -/* - * 初始化串口2 - */ -void uart2_init(void); - - -/* - * 在串口2上打印字符串 - * @str 待打印的字符串 - */ -void uart2_print(const char *str); - - -/* - * 在调试串口打印字符串 - * @str 待打印的字符串 - */ -void uart_debug_print(const char *str); - - -/* - * 在调试串口打印一个字符 - * @ch 待打印的字符 - */ -void uart_debug_putc(unsigned char ch); - - -/* - * 发送一个字节 - * @uartx 串口号 - * @ch 待发送的字符串 - */ -void uart_putc(ls1b_uart_t uartx, unsigned char ch); - - -/* - * 打印一个字符串到指定串口 - * @uartx 串口号 - * @str 待打印的字符串 - */ -void uart_print(ls1b_uart_t uartx, const char *str); - - -#endif - diff --git a/bsp/ls1bdev/ls1b_ram.lds b/bsp/ls1bdev/ls1b_ram.lds deleted file mode 100644 index a3419501c0..0000000000 --- a/bsp/ls1bdev/ls1b_ram.lds +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2010-05-17 swkyer first version - * 2010-09-04 bernard move the beginning entry to 0x80200000 - * 2019-12-04 Jiaxun Yang Adapt new memory layout - */ - -OUTPUT_ARCH(mips) -GROUP(-lgcc -lc) - -ENTRY(_start) -SECTIONS -{ - . = 0x80200000; - .text : - { - start = ABSOLUTE(.); - *(.selfboot); - *(.selfboot_data); - . = ALIGN(4); - __selfboot_end = .; - . = ALIGN(0x1000); - __ebase_entry = .; - KEEP(*(.exc_vectors)) - __ebase_end = .; - *(.start); - *(.text) - *(.text.*) - *(.rodata) - *(.rodata.*) - *(.rodata1) - *(.rodata1.*) - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - } - - .eh_frame_hdr : - { - *(.eh_frame_hdr) - *(.eh_frame_entry) - } - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } - - . = ALIGN(4); - .data : - { - *(.data) - *(.data.*) - - *(.data1) - *(.data1.*) - - . = ALIGN(8); - _gp = ABSOLUTE(.); /* Base of small data */ - - *(.sdata) - *(.sdata.*) - } - _edata = .; - - .stack : - { - . = ALIGN(8); - _system_stack_start = .; - . = . + 0x400; /* 1kb system stack */ - _system_stack = .; - } - - .sbss : - { - __bss_start = .; - *(.sbss) - *(.sbss.*) - *(.dynsbss) - *(.scommon) - } - - .bss : - { - *(.bss) - *(.bss.*) - *(.dynbss) - *(COMMON) - __bss_end = .; - } - _end = .; - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } -} diff --git a/bsp/ls1bdev/readme.md b/bsp/ls1bdev/readme.md deleted file mode 100644 index b47004ecc8..0000000000 --- a/bsp/ls1bdev/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -This bsp is based on LS1B DEMO BOARD V1.1 - -# download script for RT-Thread -ifaddr syn0 192.168.1.100;load tftp://192.168.1.5/rtthread.elf;g \ No newline at end of file diff --git a/bsp/ls1bdev/rtconfig.h b/bsp/ls1bdev/rtconfig.h deleted file mode 100644 index e5238cf1f6..0000000000 --- a/bsp/ls1bdev/rtconfig.h +++ /dev/null @@ -1,206 +0,0 @@ -#ifndef RT_CONFIG_H__ -#define RT_CONFIG_H__ - -/* Automatically generated file; DO NOT EDIT. */ -/* RT-Thread Configuration */ - -/* RT-Thread Kernel */ - -#define RT_NAME_MAX 8 -#define RT_ALIGN_SIZE 4 -#define RT_THREAD_PRIORITY_32 -#define RT_THREAD_PRIORITY_MAX 32 -#define RT_TICK_PER_SECOND 1000 -#define RT_USING_OVERFLOW_CHECK -#define RT_USING_HOOK -#define RT_HOOK_USING_FUNC_PTR -#define RT_USING_IDLE_HOOK -#define RT_IDLE_HOOK_LIST_SIZE 4 -#define IDLE_THREAD_STACK_SIZE 256 -#define RT_USING_TIMER_SOFT -#define RT_TIMER_THREAD_PRIO 4 -#define RT_TIMER_THREAD_STACK_SIZE 512 - -/* kservice optimization */ - -#define RT_DEBUG - -/* Inter-Thread communication */ - -#define RT_USING_SEMAPHORE -#define RT_USING_MUTEX -#define RT_USING_EVENT -#define RT_USING_MAILBOX -#define RT_USING_MESSAGEQUEUE - -/* Memory Management */ - -#define RT_USING_MEMPOOL -#define RT_USING_SMALL_MEM -#define RT_USING_SMALL_MEM_AS_HEAP -#define RT_USING_HEAP - -/* Kernel Device Object */ - -#define RT_USING_DEVICE -#define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 128 -#define RT_CONSOLE_DEVICE_NAME "uart5" -#define RT_VER_NUM 0x40100 - -/* RT-Thread Components */ - -#define RT_USING_COMPONENTS_INIT -#define RT_USING_USER_MAIN -#define RT_MAIN_THREAD_STACK_SIZE 2048 -#define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - - -/* Command shell */ - -#define RT_USING_FINSH -#define RT_USING_MSH -#define FINSH_USING_MSH -#define FINSH_THREAD_NAME "tshell" -#define FINSH_THREAD_PRIORITY 20 -#define FINSH_THREAD_STACK_SIZE 4096 -#define FINSH_USING_HISTORY -#define FINSH_HISTORY_LINES 5 -#define FINSH_USING_SYMTAB -#define FINSH_CMD_SIZE 80 -#define MSH_USING_BUILT_IN_COMMANDS -#define FINSH_USING_DESCRIPTION -#define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - -#define RT_USING_DFS -#define DFS_USING_POSIX -#define DFS_USING_WORKDIR -#define DFS_FILESYSTEMS_MAX 4 -#define DFS_FILESYSTEM_TYPES_MAX 4 -#define DFS_FD_MAX 16 -#define RT_USING_DFS_DEVFS - -/* Device Drivers */ - -#define RT_USING_DEVICE_IPC -#define RT_USING_SERIAL -#define RT_USING_SERIAL_V1 -#define RT_SERIAL_USING_DMA -#define RT_SERIAL_RB_BUFSZ 64 -#define RT_USING_PIN - -/* Using USB */ - - -/* POSIX layer and C standard library */ - -#define RT_LIBC_DEFAULT_TIMEZONE 8 - -/* POSIX (Portable Operating System Interface) layer */ - - -/* Interprocess Communication (IPC) */ - - -/* Socket is in the 'Network' category */ - -/* Network */ - -/* Socket abstraction layer */ - - -/* Network interface device */ - - -/* light weight TCP/IP stack */ - - -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ - - -/* Utilities */ - - -/* RT-Thread Utestcases */ - - -/* RT-Thread online packages */ - -/* IoT - internet of things */ - - -/* Wi-Fi */ - -/* Marvell WiFi */ - - -/* Wiced WiFi */ - - -/* IoT Cloud */ - - -/* security packages */ - - -/* language packages */ - - -/* multimedia packages */ - -/* LVGL: powerful and easy-to-use embedded GUI library */ - - -/* u8g2: a monochrome graphic library */ - - -/* PainterEngine: A cross-platform graphics application framework written in C language */ - - -/* tools packages */ - - -/* system packages */ - -/* enhanced kernel services */ - - -/* POSIX extension functions */ - - -/* acceleration: Assembly language or algorithmic acceleration packages */ - - -/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ - - -/* Micrium: Micrium software products porting for RT-Thread */ - - -/* peripheral libraries and drivers */ - - -/* AI packages */ - - -/* miscellaneous packages */ - -/* samples: kernel and components samples */ - - -/* entertainment: terminal games and other interesting software packages */ - -#define SOC_LS1B -#define RT_MEM_SIZE 256 -#define RT_OSC_CLK 25000000 -#define RT_USING_UART5 -#define RT_UART_RX_BUFFER_SIZE 64 - -#endif diff --git a/bsp/ls1bdev/rtconfig.py b/bsp/ls1bdev/rtconfig.py deleted file mode 100644 index 0d76e27348..0000000000 --- a/bsp/ls1bdev/rtconfig.py +++ /dev/null @@ -1,55 +0,0 @@ -import os - -# CPU options -ARCH='mips' -CPU ='gs232' - -# toolchains options -CROSS_TOOL = 'gcc' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = "/opt/mips-2016.05/bin" -# EXEC_PATH = r'D:\mgc\embedded\codebench\bin' -else: - print('================ERROR============================') - print('Not support %s yet!' % CROSS_TOOL) - print('=================================================') - exit(0) - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -PREFIX = 'mips-sde-elf-' -CC = PREFIX + 'gcc' -AS = PREFIX + 'gcc' -AR = PREFIX + 'ar' -LINK = PREFIX + 'gcc' -TARGET_EXT = 'elf' -SIZE = PREFIX + 'size' -OBJDUMP = PREFIX + 'objdump' -OBJCPY = PREFIX + 'objcopy' -READELF = PREFIX + 'readelf' - -DEVICE = ' -mips32 -msoft-float -mfp32' -CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' -AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' -LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds' - -CPATH = '' -LPATH = '' - -if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' -else: - CFLAGS += ' -O2' - -DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' -READELF_ACTION = READELF + ' -a $TARGET > rtt.map\n' -POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' diff --git a/bsp/ls1cdev/.config b/bsp/ls1cdev/.config deleted file mode 100644 index 68eb868c54..0000000000 --- a/bsp/ls1cdev/.config +++ /dev/null @@ -1,769 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# RT-Thread Configuration -# - -# -# RT-Thread Kernel -# -CONFIG_RT_NAME_MAX=10 -# CONFIG_RT_USING_ARCH_DATA_TYPE is not set -# CONFIG_RT_USING_SMP is not set -CONFIG_RT_ALIGN_SIZE=8 -# CONFIG_RT_THREAD_PRIORITY_8 is not set -CONFIG_RT_THREAD_PRIORITY_32=y -# CONFIG_RT_THREAD_PRIORITY_256 is not set -CONFIG_RT_THREAD_PRIORITY_MAX=32 -CONFIG_RT_TICK_PER_SECOND=1000 -CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_USING_HOOK=y -CONFIG_RT_HOOK_USING_FUNC_PTR=y -CONFIG_RT_USING_IDLE_HOOK=y -CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 -CONFIG_IDLE_THREAD_STACK_SIZE=8192 -# CONFIG_RT_USING_TIMER_SOFT is not set - -# -# kservice optimization -# -# CONFIG_RT_KSERVICE_USING_STDLIB is not set -# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set -# CONFIG_RT_USING_TINY_FFS is not set -# CONFIG_RT_PRINTF_LONGLONG is not set -CONFIG_RT_DEBUG=y -CONFIG_RT_DEBUG_COLOR=y -# CONFIG_RT_DEBUG_INIT_CONFIG is not set -# CONFIG_RT_DEBUG_THREAD_CONFIG is not set -# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set -# CONFIG_RT_DEBUG_IPC_CONFIG is not set -# CONFIG_RT_DEBUG_TIMER_CONFIG is not set -# CONFIG_RT_DEBUG_IRQ_CONFIG is not set -# CONFIG_RT_DEBUG_MEM_CONFIG is not set -# CONFIG_RT_DEBUG_SLAB_CONFIG is not set -# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set -# CONFIG_RT_DEBUG_MODULE_CONFIG is not set - -# -# Inter-Thread communication -# -CONFIG_RT_USING_SEMAPHORE=y -CONFIG_RT_USING_MUTEX=y -CONFIG_RT_USING_EVENT=y -CONFIG_RT_USING_MAILBOX=y -CONFIG_RT_USING_MESSAGEQUEUE=y -# CONFIG_RT_USING_SIGNALS is not set - -# -# Memory Management -# -CONFIG_RT_USING_MEMPOOL=y -CONFIG_RT_USING_SMALL_MEM=y -# CONFIG_RT_USING_SLAB is not set -CONFIG_RT_USING_MEMHEAP=y -CONFIG_RT_MEMHEAP_FAST_MODE=y -# CONFIG_RT_MEMHEAP_BSET_MODE is not set -CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y -# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set -# CONFIG_RT_USING_SLAB_AS_HEAP is not set -# CONFIG_RT_USING_USERHEAP is not set -# CONFIG_RT_USING_NOHEAP is not set -# CONFIG_RT_USING_MEMTRACE is not set -# CONFIG_RT_USING_HEAP_ISR is not set -CONFIG_RT_USING_HEAP=y - -# -# Kernel Device Object -# -CONFIG_RT_USING_DEVICE=y -# CONFIG_RT_USING_DEVICE_OPS is not set -CONFIG_RT_USING_INTERRUPT_INFO=y -CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=128 -CONFIG_RT_CONSOLE_DEVICE_NAME="uart2" -CONFIG_RT_VER_NUM=0x40100 -# CONFIG_RT_USING_CPU_FFS is not set -# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set - -# -# RT-Thread Components -# -CONFIG_RT_USING_COMPONENTS_INIT=y -CONFIG_RT_USING_USER_MAIN=y -CONFIG_RT_MAIN_THREAD_STACK_SIZE=8192 -CONFIG_RT_MAIN_THREAD_PRIORITY=10 -# CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -# CONFIG_RT_USING_CPLUSPLUS is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y -CONFIG_RT_USING_MSH=y -CONFIG_FINSH_USING_MSH=y -CONFIG_FINSH_THREAD_NAME="tshell" -CONFIG_FINSH_THREAD_PRIORITY=20 -CONFIG_FINSH_THREAD_STACK_SIZE=8192 -CONFIG_FINSH_USING_HISTORY=y -CONFIG_FINSH_HISTORY_LINES=5 -CONFIG_FINSH_USING_SYMTAB=y -CONFIG_FINSH_CMD_SIZE=80 -CONFIG_MSH_USING_BUILT_IN_COMMANDS=y -CONFIG_FINSH_USING_DESCRIPTION=y -# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set -# CONFIG_FINSH_USING_AUTH is not set -CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# -CONFIG_RT_USING_DFS=y -CONFIG_DFS_USING_POSIX=y -CONFIG_DFS_USING_WORKDIR=y -CONFIG_DFS_FILESYSTEMS_MAX=2 -CONFIG_DFS_FILESYSTEM_TYPES_MAX=2 -CONFIG_DFS_FD_MAX=4 -# CONFIG_RT_USING_DFS_MNTTABLE is not set -CONFIG_RT_USING_DFS_ELMFAT=y - -# -# elm-chan's FatFs, Generic FAT Filesystem Module -# -CONFIG_RT_DFS_ELM_CODE_PAGE=936 -CONFIG_RT_DFS_ELM_WORD_ACCESS=y -CONFIG_RT_DFS_ELM_USE_LFN_0=y -# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set -# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set -# CONFIG_RT_DFS_ELM_USE_LFN_3 is not set -CONFIG_RT_DFS_ELM_USE_LFN=0 -CONFIG_RT_DFS_ELM_LFN_UNICODE_0=y -# CONFIG_RT_DFS_ELM_LFN_UNICODE_1 is not set -# CONFIG_RT_DFS_ELM_LFN_UNICODE_2 is not set -# CONFIG_RT_DFS_ELM_LFN_UNICODE_3 is not set -CONFIG_RT_DFS_ELM_LFN_UNICODE=0 -CONFIG_RT_DFS_ELM_MAX_LFN=64 -CONFIG_RT_DFS_ELM_DRIVES=2 -CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512 -# CONFIG_RT_DFS_ELM_USE_ERASE is not set -CONFIG_RT_DFS_ELM_REENTRANT=y -CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000 -CONFIG_RT_USING_DFS_DEVFS=y -# CONFIG_RT_USING_DFS_ROMFS is not set -# CONFIG_RT_USING_DFS_RAMFS is not set -# CONFIG_RT_USING_DFS_NFS is not set - -# -# Device Drivers -# -CONFIG_RT_USING_DEVICE_IPC=y -# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set -CONFIG_RT_USING_SERIAL=y -CONFIG_RT_USING_SERIAL_V1=y -# CONFIG_RT_USING_SERIAL_V2 is not set -CONFIG_RT_SERIAL_USING_DMA=y -CONFIG_RT_SERIAL_RB_BUFSZ=64 -CONFIG_RT_USING_CAN=y -# CONFIG_RT_CAN_USING_HDR is not set -# CONFIG_RT_USING_HWTIMER is not set -# CONFIG_RT_USING_CPUTIME is not set -CONFIG_RT_USING_I2C=y -# CONFIG_RT_I2C_DEBUG is not set -CONFIG_RT_USING_I2C_BITOPS=y -# CONFIG_RT_I2C_BITOPS_DEBUG is not set -# CONFIG_RT_USING_PHY is not set -CONFIG_RT_USING_PIN=y -# CONFIG_RT_USING_ADC is not set -# CONFIG_RT_USING_DAC is not set -# CONFIG_RT_USING_PWM is not set -# CONFIG_RT_USING_MTD_NOR is not set -# CONFIG_RT_USING_MTD_NAND is not set -# CONFIG_RT_USING_PM is not set -# CONFIG_RT_USING_RTC is not set -# CONFIG_RT_USING_SDIO is not set -CONFIG_RT_USING_SPI=y -# CONFIG_RT_USING_QSPI is not set -CONFIG_RT_USING_SPI_MSD=y -# CONFIG_RT_USING_SFUD is not set -# CONFIG_RT_USING_ENC28J60 is not set -# CONFIG_RT_USING_SPI_WIFI is not set -# CONFIG_RT_USING_WDT is not set -# CONFIG_RT_USING_AUDIO is not set -# CONFIG_RT_USING_SENSOR is not set -# CONFIG_RT_USING_TOUCH is not set -# CONFIG_RT_USING_HWCRYPTO is not set -# CONFIG_RT_USING_PULSE_ENCODER is not set -# CONFIG_RT_USING_INPUT_CAPTURE is not set -# CONFIG_RT_USING_WIFI is not set - -# -# Using USB -# -# CONFIG_RT_USING_USB is not set -# CONFIG_RT_USING_USB_HOST is not set -# CONFIG_RT_USING_USB_DEVICE is not set - -# -# POSIX layer and C standard library -# -CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 - -# -# POSIX (Portable Operating System Interface) layer -# -# CONFIG_RT_USING_POSIX_FS is not set -CONFIG_RT_USING_POSIX_DELAY=y -CONFIG_RT_USING_POSIX_CLOCK=y -# CONFIG_RT_USING_POSIX_TIMER is not set -CONFIG_RT_USING_PTHREADS=y -CONFIG_PTHREAD_NUM_MAX=8 -# CONFIG_RT_USING_MODULE is not set - -# -# Interprocess Communication (IPC) -# -# CONFIG_RT_USING_POSIX_PIPE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set - -# -# Socket is in the 'Network' category -# - -# -# Network -# - -# -# Socket abstraction layer -# -# CONFIG_RT_USING_SAL is not set - -# -# Network interface device -# -# CONFIG_RT_USING_NETDEV is not set -CONFIG_NETDEV_USING_PING=y - -# -# light weight TCP/IP stack -# -CONFIG_RT_USING_LWIP=y -CONFIG_RT_USING_LWIP141=y -# CONFIG_RT_USING_LWIP203 is not set -# CONFIG_RT_USING_LWIP212 is not set -CONFIG_RT_LWIP_MEM_ALIGNMENT=4 -CONFIG_RT_LWIP_IGMP=y -CONFIG_RT_LWIP_ICMP=y -# CONFIG_RT_LWIP_SNMP is not set -CONFIG_RT_LWIP_DNS=y -CONFIG_RT_LWIP_DHCP=y -CONFIG_IP_SOF_BROADCAST=1 -CONFIG_IP_SOF_BROADCAST_RECV=1 - -# -# Static IPv4 Address -# -CONFIG_RT_LWIP_IPADDR="192.168.1.254" -CONFIG_RT_LWIP_GWADDR="192.168.1.1" -CONFIG_RT_LWIP_MSKADDR="255.255.255.0" -CONFIG_RT_LWIP_UDP=y -CONFIG_RT_LWIP_TCP=y -CONFIG_RT_LWIP_RAW=y -# CONFIG_RT_LWIP_PPP is not set -CONFIG_RT_MEMP_NUM_NETCONN=8 -CONFIG_RT_LWIP_PBUF_NUM=4 -CONFIG_RT_LWIP_RAW_PCB_NUM=4 -CONFIG_RT_LWIP_UDP_PCB_NUM=4 -CONFIG_RT_LWIP_TCP_PCB_NUM=3 -CONFIG_RT_LWIP_TCP_SEG_NUM=40 -CONFIG_RT_LWIP_TCP_SND_BUF=4096 -CONFIG_RT_LWIP_TCP_WND=2048 -CONFIG_RT_LWIP_TCPTHREAD_PRIORITY=12 -CONFIG_RT_LWIP_TCPTHREAD_MBOX_SIZE=8 -CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=8192 -# CONFIG_LWIP_NO_RX_THREAD is not set -# CONFIG_LWIP_NO_TX_THREAD is not set -CONFIG_RT_LWIP_ETHTHREAD_PRIORITY=14 -CONFIG_RT_LWIP_ETHTHREAD_STACKSIZE=8192 -CONFIG_RT_LWIP_ETHTHREAD_MBOX_SIZE=8 -# CONFIG_RT_LWIP_REASSEMBLY_FRAG is not set -CONFIG_LWIP_NETIF_STATUS_CALLBACK=1 -CONFIG_LWIP_NETIF_LINK_CALLBACK=1 -CONFIG_SO_REUSE=1 -CONFIG_LWIP_SO_RCVTIMEO=1 -CONFIG_LWIP_SO_SNDTIMEO=1 -CONFIG_LWIP_SO_RCVBUF=1 -CONFIG_LWIP_SO_LINGER=0 -# CONFIG_RT_LWIP_NETIF_LOOPBACK is not set -CONFIG_LWIP_NETIF_LOOPBACK=0 -# CONFIG_RT_LWIP_STATS is not set -# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set -CONFIG_RT_LWIP_USING_PING=y -# CONFIG_RT_LWIP_DEBUG is not set - -# -# AT commands -# -# CONFIG_RT_USING_AT is not set -# CONFIG_LWIP_USING_DHCPD is not set - -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set - -# -# Utilities -# -# CONFIG_RT_USING_RYM is not set -# CONFIG_RT_USING_ULOG is not set -# CONFIG_RT_USING_UTEST is not set -# CONFIG_RT_USING_VAR_EXPORT is not set -# CONFIG_RT_USING_RT_LINK is not set - -# -# RT-Thread Utestcases -# -# CONFIG_RT_USING_UTESTCASES is not set - -# -# RT-Thread MIPS CPU -# -# CONFIG_RT_USING_FPU is not set - -# -# RT-Thread online packages -# - -# -# IoT - internet of things -# -# CONFIG_PKG_USING_LORAWAN_DRIVER is not set -# CONFIG_PKG_USING_PAHOMQTT is not set -# CONFIG_PKG_USING_UMQTT is not set -# CONFIG_PKG_USING_WEBCLIENT is not set -# CONFIG_PKG_USING_WEBNET is not set -# CONFIG_PKG_USING_MONGOOSE is not set -# CONFIG_PKG_USING_MYMQTT is not set -# CONFIG_PKG_USING_KAWAII_MQTT is not set -# CONFIG_PKG_USING_BC28_MQTT is not set -# CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_CJSON is not set -# CONFIG_PKG_USING_JSMN is not set -# CONFIG_PKG_USING_LIBMODBUS is not set -# CONFIG_PKG_USING_FREEMODBUS is not set -# CONFIG_PKG_USING_LJSON is not set -# CONFIG_PKG_USING_EZXML is not set -# CONFIG_PKG_USING_NANOPB is not set - -# -# Wi-Fi -# - -# -# Marvell WiFi -# -# CONFIG_PKG_USING_WLANMARVELL is not set - -# -# Wiced WiFi -# -# CONFIG_PKG_USING_WLAN_WICED is not set -# CONFIG_PKG_USING_RW007 is not set -# CONFIG_PKG_USING_COAP is not set -# CONFIG_PKG_USING_NOPOLL is not set -# CONFIG_PKG_USING_NETUTILS is not set -# CONFIG_PKG_USING_CMUX is not set -# CONFIG_PKG_USING_PPP_DEVICE is not set -# CONFIG_PKG_USING_AT_DEVICE is not set -# CONFIG_PKG_USING_ATSRV_SOCKET is not set -# CONFIG_PKG_USING_WIZNET is not set -# CONFIG_PKG_USING_ZB_COORDINATOR is not set - -# -# IoT Cloud -# -# CONFIG_PKG_USING_ONENET is not set -# CONFIG_PKG_USING_GAGENT_CLOUD is not set -# CONFIG_PKG_USING_ALI_IOTKIT is not set -# CONFIG_PKG_USING_AZURE is not set -# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set -# CONFIG_PKG_USING_JIOT-C-SDK is not set -# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set -# CONFIG_PKG_USING_JOYLINK is not set -# CONFIG_PKG_USING_EZ_IOT_OS is not set -# CONFIG_PKG_USING_NIMBLE is not set -# CONFIG_PKG_USING_OTA_DOWNLOADER is not set -# CONFIG_PKG_USING_IPMSG is not set -# CONFIG_PKG_USING_LSSDP is not set -# CONFIG_PKG_USING_AIRKISS_OPEN is not set -# CONFIG_PKG_USING_LIBRWS is not set -# CONFIG_PKG_USING_TCPSERVER is not set -# CONFIG_PKG_USING_PROTOBUF_C is not set -# CONFIG_PKG_USING_DLT645 is not set -# CONFIG_PKG_USING_QXWZ is not set -# CONFIG_PKG_USING_SMTP_CLIENT is not set -# CONFIG_PKG_USING_ABUP_FOTA is not set -# CONFIG_PKG_USING_LIBCURL2RTT is not set -# CONFIG_PKG_USING_CAPNP is not set -# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set -# CONFIG_PKG_USING_AGILE_TELNET is not set -# CONFIG_PKG_USING_NMEALIB is not set -# CONFIG_PKG_USING_AGILE_JSMN is not set -# CONFIG_PKG_USING_PDULIB is not set -# CONFIG_PKG_USING_BTSTACK is not set -# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set -# CONFIG_PKG_USING_WAYZ_IOTKIT is not set -# CONFIG_PKG_USING_MAVLINK is not set -# CONFIG_PKG_USING_RAPIDJSON is not set -# CONFIG_PKG_USING_BSAL is not set -# CONFIG_PKG_USING_AGILE_MODBUS is not set -# CONFIG_PKG_USING_AGILE_FTP is not set -# CONFIG_PKG_USING_EMBEDDEDPROTO is not set -# CONFIG_PKG_USING_RT_LINK_HW is not set -# CONFIG_PKG_USING_LORA_PKT_FWD is not set -# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set -# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set -# CONFIG_PKG_USING_HM is not set -# CONFIG_PKG_USING_SMALL_MODBUS is not set -# CONFIG_PKG_USING_NET_SERVER is not set - -# -# security packages -# -# CONFIG_PKG_USING_MBEDTLS is not set -# CONFIG_PKG_USING_LIBSODIUM is not set -# CONFIG_PKG_USING_TINYCRYPT is not set -# CONFIG_PKG_USING_TFM is not set -# CONFIG_PKG_USING_YD_CRYPTO is not set - -# -# language packages -# -# CONFIG_PKG_USING_LUATOS_SOC is not set -# CONFIG_PKG_USING_LUA is not set -# CONFIG_PKG_USING_JERRYSCRIPT is not set -# CONFIG_PKG_USING_MICROPYTHON is not set -# CONFIG_PKG_USING_PIKASCRIPT is not set - -# -# multimedia packages -# - -# -# LVGL: powerful and easy-to-use embedded GUI library -# -# CONFIG_PKG_USING_LVGL is not set -# CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set - -# -# u8g2: a monochrome graphic library -# -# CONFIG_PKG_USING_U8G2_OFFICIAL is not set -# CONFIG_PKG_USING_U8G2 is not set -# CONFIG_PKG_USING_OPENMV is not set -# CONFIG_PKG_USING_MUPDF is not set -# CONFIG_PKG_USING_STEMWIN is not set -# CONFIG_PKG_USING_WAVPLAYER is not set -# CONFIG_PKG_USING_TJPGD is not set -# CONFIG_PKG_USING_PDFGEN is not set -# CONFIG_PKG_USING_HELIX is not set -# CONFIG_PKG_USING_AZUREGUIX is not set -# CONFIG_PKG_USING_TOUCHGFX2RTT is not set -# CONFIG_PKG_USING_NUEMWIN is not set -# CONFIG_PKG_USING_MP3PLAYER is not set -# CONFIG_PKG_USING_TINYJPEG is not set -# CONFIG_PKG_USING_UGUI is not set - -# -# PainterEngine: A cross-platform graphics application framework written in C language -# -# CONFIG_PKG_USING_PAINTERENGINE is not set -# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set -# CONFIG_PKG_USING_MCURSES is not set -# CONFIG_PKG_USING_TERMBOX is not set -# CONFIG_PKG_USING_VT100 is not set -# CONFIG_PKG_USING_QRCODE is not set - -# -# tools packages -# -# CONFIG_PKG_USING_CMBACKTRACE is not set -# CONFIG_PKG_USING_EASYFLASH is not set -# CONFIG_PKG_USING_EASYLOGGER is not set -# CONFIG_PKG_USING_SYSTEMVIEW is not set -# CONFIG_PKG_USING_SEGGER_RTT is not set -# CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_ULOG_EASYFLASH is not set -# CONFIG_PKG_USING_ULOG_FILE is not set -# CONFIG_PKG_USING_LOGMGR is not set -# CONFIG_PKG_USING_ADBD is not set -# CONFIG_PKG_USING_COREMARK is not set -# CONFIG_PKG_USING_DHRYSTONE is not set -# CONFIG_PKG_USING_MEMORYPERF is not set -# CONFIG_PKG_USING_NR_MICRO_SHELL is not set -# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set -# CONFIG_PKG_USING_LUNAR_CALENDAR is not set -# CONFIG_PKG_USING_BS8116A is not set -# CONFIG_PKG_USING_GPS_RMC is not set -# CONFIG_PKG_USING_URLENCODE is not set -# CONFIG_PKG_USING_UMCN is not set -# CONFIG_PKG_USING_LWRB2RTT is not set -# CONFIG_PKG_USING_CPU_USAGE is not set -# CONFIG_PKG_USING_GBK2UTF8 is not set -# CONFIG_PKG_USING_VCONSOLE is not set -# CONFIG_PKG_USING_KDB is not set -# CONFIG_PKG_USING_WAMR is not set -# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set -# CONFIG_PKG_USING_LWLOG is not set -# CONFIG_PKG_USING_ANV_TRACE is not set -# CONFIG_PKG_USING_ANV_MEMLEAK is not set -# CONFIG_PKG_USING_ANV_TESTSUIT is not set -# CONFIG_PKG_USING_ANV_BENCH is not set -# CONFIG_PKG_USING_DEVMEM is not set -# CONFIG_PKG_USING_REGEX is not set -# CONFIG_PKG_USING_MEM_SANDBOX is not set -# CONFIG_PKG_USING_SOLAR_TERMS is not set -# CONFIG_PKG_USING_GAN_ZHI is not set -# CONFIG_PKG_USING_FDT is not set - -# -# system packages -# - -# -# enhanced kernel services -# -# CONFIG_PKG_USING_RT_MEMCPY_CM is not set -# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set -# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set - -# -# POSIX extension functions -# -# CONFIG_PKG_USING_POSIX_GETLINE is not set -# CONFIG_PKG_USING_POSIX_WCWIDTH is not set -# CONFIG_PKG_USING_POSIX_ITOA is not set -# CONFIG_PKG_USING_POSIX_STRINGS is not set - -# -# acceleration: Assembly language or algorithmic acceleration packages -# -# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set -# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set -# CONFIG_PKG_USING_QFPLIB_M3 is not set - -# -# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard -# -# CONFIG_PKG_USING_CMSIS_5 is not set -# CONFIG_PKG_USING_CMSIS_RTOS2 is not set - -# -# Micrium: Micrium software products porting for RT-Thread -# -# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set -# CONFIG_PKG_USING_UCOSII_WRAPPER is not set -# CONFIG_PKG_USING_UC_CRC is not set -# CONFIG_PKG_USING_UC_CLK is not set -# CONFIG_PKG_USING_UC_COMMON is not set -# CONFIG_PKG_USING_UC_MODBUS is not set -# CONFIG_RT_USING_ARDUINO is not set -# CONFIG_PKG_USING_GUIENGINE is not set -# CONFIG_PKG_USING_CAIRO is not set -# CONFIG_PKG_USING_PIXMAN is not set -# CONFIG_PKG_USING_PARTITION is not set -# CONFIG_PKG_USING_FAL is not set -# CONFIG_PKG_USING_FLASHDB is not set -# CONFIG_PKG_USING_SQLITE is not set -# CONFIG_PKG_USING_RTI is not set -# CONFIG_PKG_USING_DFS_YAFFS is not set -# CONFIG_PKG_USING_LITTLEFS is not set -# CONFIG_PKG_USING_DFS_JFFS2 is not set -# CONFIG_PKG_USING_DFS_UFFS is not set -# CONFIG_PKG_USING_LWEXT4 is not set -# CONFIG_PKG_USING_THREAD_POOL is not set -# CONFIG_PKG_USING_ROBOTS is not set -# CONFIG_PKG_USING_EV is not set -# CONFIG_PKG_USING_SYSWATCH is not set -# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set -# CONFIG_PKG_USING_PLCCORE is not set -# CONFIG_PKG_USING_RAMDISK is not set -# CONFIG_PKG_USING_MININI is not set -# CONFIG_PKG_USING_QBOOT is not set -# CONFIG_PKG_USING_PPOOL is not set -# CONFIG_PKG_USING_OPENAMP is not set -# CONFIG_PKG_USING_LPM is not set -# CONFIG_PKG_USING_TLSF is not set -# CONFIG_PKG_USING_EVENT_RECORDER is not set -# CONFIG_PKG_USING_ARM_2D is not set -# CONFIG_PKG_USING_MCUBOOT is not set -# CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set - -# -# peripheral libraries and drivers -# -# CONFIG_PKG_USING_SENSORS_DRIVERS is not set -# CONFIG_PKG_USING_REALTEK_AMEBA is not set -# CONFIG_PKG_USING_SHT2X is not set -# CONFIG_PKG_USING_SHT3X is not set -# CONFIG_PKG_USING_AS7341 is not set -# CONFIG_PKG_USING_STM32_SDIO is not set -# CONFIG_PKG_USING_ICM20608 is not set -# CONFIG_PKG_USING_BUTTON is not set -# CONFIG_PKG_USING_PCF8574 is not set -# CONFIG_PKG_USING_SX12XX is not set -# CONFIG_PKG_USING_SIGNAL_LED is not set -# CONFIG_PKG_USING_LEDBLINK is not set -# CONFIG_PKG_USING_LITTLED is not set -# CONFIG_PKG_USING_LKDGUI is not set -# CONFIG_PKG_USING_NRF5X_SDK is not set -# CONFIG_PKG_USING_NRFX is not set -# CONFIG_PKG_USING_WM_LIBRARIES is not set -# CONFIG_PKG_USING_KENDRYTE_SDK is not set -# CONFIG_PKG_USING_INFRARED is not set -# CONFIG_PKG_USING_AGILE_BUTTON is not set -# CONFIG_PKG_USING_AGILE_LED is not set -# CONFIG_PKG_USING_AT24CXX is not set -# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set -# CONFIG_PKG_USING_AD7746 is not set -# CONFIG_PKG_USING_PCA9685 is not set -# CONFIG_PKG_USING_I2C_TOOLS is not set -# CONFIG_PKG_USING_NRF24L01 is not set -# CONFIG_PKG_USING_TOUCH_DRIVERS is not set -# CONFIG_PKG_USING_MAX17048 is not set -# CONFIG_PKG_USING_RPLIDAR is not set -# CONFIG_PKG_USING_AS608 is not set -# CONFIG_PKG_USING_RC522 is not set -# CONFIG_PKG_USING_WS2812B is not set -# CONFIG_PKG_USING_EMBARC_BSP is not set -# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set -# CONFIG_PKG_USING_MULTI_RTIMER is not set -# CONFIG_PKG_USING_MAX7219 is not set -# CONFIG_PKG_USING_BEEP is not set -# CONFIG_PKG_USING_EASYBLINK is not set -# CONFIG_PKG_USING_PMS_SERIES is not set -# CONFIG_PKG_USING_CAN_YMODEM is not set -# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set -# CONFIG_PKG_USING_QLED is not set -# CONFIG_PKG_USING_PAJ7620 is not set -# CONFIG_PKG_USING_AGILE_CONSOLE is not set -# CONFIG_PKG_USING_LD3320 is not set -# CONFIG_PKG_USING_WK2124 is not set -# CONFIG_PKG_USING_LY68L6400 is not set -# CONFIG_PKG_USING_DM9051 is not set -# CONFIG_PKG_USING_SSD1306 is not set -# CONFIG_PKG_USING_QKEY is not set -# CONFIG_PKG_USING_RS485 is not set -# CONFIG_PKG_USING_RS232 is not set -# CONFIG_PKG_USING_NES is not set -# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set -# CONFIG_PKG_USING_VDEVICE is not set -# CONFIG_PKG_USING_SGM706 is not set -# CONFIG_PKG_USING_STM32WB55_SDK is not set -# CONFIG_PKG_USING_RDA58XX is not set -# CONFIG_PKG_USING_LIBNFC is not set -# CONFIG_PKG_USING_MFOC is not set -# CONFIG_PKG_USING_TMC51XX is not set -# CONFIG_PKG_USING_TCA9534 is not set -# CONFIG_PKG_USING_KOBUKI is not set -# CONFIG_PKG_USING_ROSSERIAL is not set -# CONFIG_PKG_USING_MICRO_ROS is not set -# CONFIG_PKG_USING_MCP23008 is not set -# CONFIG_PKG_USING_BLUETRUM_SDK is not set -# CONFIG_PKG_USING_MISAKA_AT24CXX is not set -# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set -# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set -# CONFIG_PKG_USING_BL_MCU_SDK is not set -# CONFIG_PKG_USING_SOFT_SERIAL is not set -# CONFIG_PKG_USING_MB85RS16 is not set -# CONFIG_PKG_USING_CW2015 is not set - -# -# AI packages -# -# CONFIG_PKG_USING_LIBANN is not set -# CONFIG_PKG_USING_NNOM is not set -# CONFIG_PKG_USING_ONNX_BACKEND is not set -# CONFIG_PKG_USING_ONNX_PARSER is not set -# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set -# CONFIG_PKG_USING_ELAPACK is not set -# CONFIG_PKG_USING_ULAPACK is not set -# CONFIG_PKG_USING_QUEST is not set -# CONFIG_PKG_USING_NAXOS is not set - -# -# miscellaneous packages -# - -# -# samples: kernel and components samples -# -# CONFIG_PKG_USING_KERNEL_SAMPLES is not set -# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set -# CONFIG_PKG_USING_NETWORK_SAMPLES is not set -# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set - -# -# entertainment: terminal games and other interesting software packages -# -# CONFIG_PKG_USING_CMATRIX is not set -# CONFIG_PKG_USING_SL is not set -# CONFIG_PKG_USING_CAL is not set -# CONFIG_PKG_USING_ACLOCK is not set -# CONFIG_PKG_USING_THREES is not set -# CONFIG_PKG_USING_2048 is not set -# CONFIG_PKG_USING_SNAKE is not set -# CONFIG_PKG_USING_TETRIS is not set -# CONFIG_PKG_USING_DONUT is not set -# CONFIG_PKG_USING_COWSAY is not set -# CONFIG_PKG_USING_LIBCSV is not set -# CONFIG_PKG_USING_OPTPARSE is not set -# CONFIG_PKG_USING_FASTLZ is not set -# CONFIG_PKG_USING_MINILZO is not set -# CONFIG_PKG_USING_QUICKLZ is not set -# CONFIG_PKG_USING_LZMA is not set -# CONFIG_PKG_USING_MULTIBUTTON is not set -# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set -# CONFIG_PKG_USING_CANFESTIVAL is not set -# CONFIG_PKG_USING_ZLIB is not set -# CONFIG_PKG_USING_MINIZIP is not set -# CONFIG_PKG_USING_DSTR is not set -# CONFIG_PKG_USING_TINYFRAME is not set -# CONFIG_PKG_USING_KENDRYTE_DEMO is not set -# CONFIG_PKG_USING_DIGITALCTRL is not set -# CONFIG_PKG_USING_UPACKER is not set -# CONFIG_PKG_USING_UPARAM is not set -# CONFIG_PKG_USING_HELLO is not set -# CONFIG_PKG_USING_VI is not set -# CONFIG_PKG_USING_KI is not set -# CONFIG_PKG_USING_ARMv7M_DWT is not set -# CONFIG_PKG_USING_UKAL is not set -# CONFIG_PKG_USING_CRCLIB is not set -# CONFIG_PKG_USING_LWGPS is not set -# CONFIG_PKG_USING_STATE_MACHINE is not set -# CONFIG_PKG_USING_DESIGN_PATTERN is not set -# CONFIG_PKG_USING_CONTROLLER is not set -# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set -CONFIG_SOC_LS1C300=y -CONFIG_RT_LS1C_OPENLOONGSON=y -# CONFIG_RT_LS1C_BAICAIBOARD is not set -# CONFIG_RT_USING_SELF_BOOT is not set -CONFIG_RT_USING_UART2=y -CONFIG_RT_USING_UART1=y -# CONFIG_RT_USING_UART3 is not set -CONFIG_RT_UART_RX_BUFFER_SIZE=64 -CONFIG_RT_USING_GMAC_INT_MODE=y -# CONFIG_RT_USING_SPI0 is not set -# CONFIG_RT_USING_SPI1 is not set -# CONFIG_RT_USING_I2C1 is not set -# CONFIG_RT_USING_I2C2 is not set -# CONFIG_USING_BXCAN0 is not set -# CONFIG_USING_BXCAN1 is not set -CONFIG_NO_TOUCH=y -# CONFIG_TINA_USING_TOUCH is not set diff --git a/bsp/ls1cdev/Kconfig b/bsp/ls1cdev/Kconfig deleted file mode 100644 index 3fb6e3bbdf..0000000000 --- a/bsp/ls1cdev/Kconfig +++ /dev/null @@ -1,126 +0,0 @@ -mainmenu "RT-Thread Configuration" - -config BSP_DIR - string - option env="BSP_ROOT" - default "." - -config RTT_DIR - string - option env="RTT_ROOT" - default "../.." - -config PKGS_DIR - string - option env="PKGS_ROOT" - default "packages" - -source "$RTT_DIR/Kconfig" -source "$RTT_DIR/libcpu/mips/common/Kconfig" -source "$PKGS_DIR/Kconfig" - -config SOC_LS1C300 - bool - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - default y - -choice - prompt "Board Type" - config RT_LS1C_OPENLOONGSON - bool "OpenLoongson Board" - config RT_LS1C_BAICAIBOARD - bool "Baicai Board" -endchoice - -config RT_USING_SELF_BOOT - bool "Enable RT-Thread run without bootloader" - default n - -if RT_USING_SELF_BOOT - config RT_SELF_BOOT_DEBUG - bool "Debug self boot code" - default n -endif - -if RT_USING_SERIAL -config RT_USING_UART2 - bool "Using RT_USING_UART2" - default y -config RT_USING_UART1 - bool "Using RT_USING_UART1" - default y -config RT_USING_UART3 - bool "Using RT_USING_UART3" - default n - -config RT_UART_RX_BUFFER_SIZE - int "The rx buffer size" - default 64 if RT_USING_SERIAL - default 64 -endif - -config RT_USING_GMAC_INT_MODE - bool "Using RT_USING_GMAC_INT_MODE" - default y - -config RT_USING_SPI0 - bool "Enable SPI0" - select RT_USING_SPI - default y - -config RT_USING_SPI1 - bool "Enable SPI1" - select RT_USING_SPI - default y - -if RT_USING_I2C -config RT_USING_I2C1 - bool "Enable I2C1" - default y - -config RT_USING_I2C2 - bool "Enable I2C2" - default y -endif - - -config USING_BXCAN0 - bool "Enable CAN0" - select RT_USING_CAN - default y - -config USING_BXCAN1 - bool "Enable CAN1" - select RT_USING_CAN - default y - -if RT_USING_CAN -config RT_CAN_USING_HDR - bool "Using RT_CAN_USING_HDR" - select RT_USING_CAN - default y -endif - -choice - prompt "Touch format" - default NO_TOUCH - - config NO_TOUCH - bool "with no touch" - -if RT_USING_RTGUI - config XPT2046_USING_TOUCH - bool "with XPT2046 touch" -endif - - config TINA_USING_TOUCH - bool "with TINA touch" -endchoice - -if RT_USING_RTC -config RT_RTC_NAME - string "RT_RTC_NAME" - default "RTC" -endif - diff --git a/bsp/ls1cdev/README.md b/bsp/ls1cdev/README.md deleted file mode 100644 index 1ddea414ca..0000000000 --- a/bsp/ls1cdev/README.md +++ /dev/null @@ -1,97 +0,0 @@ -龙芯1C板级支持包 - - ---- - -## 1. 简介 - -龙芯1C是基于GS232处理器核的高性价比单芯片系统,可应用于工业控制及物联网等领域。龙芯1C包含浮点处理单元,支持多种类型的内存,支持高容量的MLC NAND Flash。龙芯1C为开发者提供了丰富的外设接口及片上模块,包括Camera控制器、USB OTG及USB HOST接口、AC97/I2S控制器、LCD控制器、SPI接口、UART接口等,提供足够的计算能力和多应用的连接能力。 - -此BSP基于龙芯俱乐部推出的智龙开发板,包括如下硬件特性: - -| 硬件 | 描述 | -| -- | -- | -|芯片型号| 1C300A/1C300B | -|CPU| GS232 | -|主频| 300MHz | -|片外SDRAM| 32MB | -|片外Flash| 128MB NandFlash、512K NorFlash | - -## 2. 编译说明 - -Windows平台推荐使用[env工具][1]。龙芯1C的LS232处理器核是一款MIPS32兼容处理器,由于env工具中并未默认携带MIPS的工具链,需要下载如下工具链: - -* [mips-2015.05-19-mips-sde-elf.exe][2] - -安装好工具链后,假设工具链安装在`D:\mgc\embedded\codebench`目录下。使用env工具,打开console后,进入到命令行环境中,需要手动设置工具链的环境变量`RTT_EXEC_PATH`: - - set RTT_EXEC_PATH=D:\mgc\embedded\codebench\bin - -使用env工具,可以在console下进入到`bsp/ls1cdev`目录中,运行以下命令: - - scons - -来编译这个板级支持包。如果编译正确无误,会产生rtthread.elf、rtthread.bin文件。 - -## 3. 烧写及执行 - -连接好串口,PC上使用终端软件以115200-N-8-1的配置方式连接到设备上。设备使用的串口引脚是:`[GPIO36/GPIO37]` - -目前在智龙上推荐使用PMON通过tftp的方式下载到设备内存中运行。 - -智龙上电按下非enter键,进入PMON命令行 - -``` -PMON> ifaddr syn0 192.168.1.100 -PMON> load tftp://192.168.1.5/rtthread.elf -PMON> g -``` - -### 3.1 运行结果 - -如果编译 & 烧写无误,会在串口上看到RT-Thread的启动logo信息: - -``` - - \ | / -- RT - Thread Operating System - / | \ 3.0.4 build May 10 2018 - 2006 - 2018 Copyright by rt-thread team -eth_inited! -lwIP-1.4.1 initialized! -msh />Link is up in FULL DUPLEX mode -Link is with 100M Speed - -``` - -## 4. 驱动支持情况及计划 - -| 驱动 | 支持情况 | 备注 | -| ------ | ---- | :------: | -| UART | 支持 | 仅注册UART2,其他UART引脚未固定 | -| IIC | 支持 | | -| SPI | 支持 | | -| GPIO | 支持 | | -| ETH | 支持 | RMII | - -### 4.1 IO在板级支持包中的映射情况 - -| IO号 | 板级包中的定义 | -| -- | -- | -| 调试串口 | GPIO36/GPIO37 | - -## 5. 联系人信息 - -维护人: - -- [zhuangwei123](https://github.com/zhuangwei123) - -## 6. 参考 - -* 1C芯片[用户手册][3] -* 1C芯片[数据手册][4] - - [1]: https://www.rt-thread.org/page/download.html - [2]: https://sourcery.mentor.com/GNUToolchain/package13851/public/mips-sde-elf/mips-2015.05-19-mips-sde-elf.exe - [3]: http://www.loongson.cn/uploadfile/cpu/1C/Loongson_1C300_user.pdf - [4]: http://www.loongson.cn/uploadfile/cpu/1C/Loongson_1C300_data.pdf diff --git a/bsp/ls1cdev/SConscript b/bsp/ls1cdev/SConscript deleted file mode 100644 index 0992612410..0000000000 --- a/bsp/ls1cdev/SConscript +++ /dev/null @@ -1,12 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/ls1cdev/SConstruct b/bsp/ls1cdev/SConstruct deleted file mode 100644 index 0efa3f8a04..0000000000 --- a/bsp/ls1cdev/SConstruct +++ /dev/null @@ -1,47 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread.' + rtconfig.TARGET_EXT - - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) -env['ASCOM'] = env['ASPPCOM'] - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -if GetDepend('RT_USING_SELF_BOOT'): - rtconfig.LFLAGS += " -Ttext 0x80000000" -else: - rtconfig.LFLAGS += " -Ttext 0x80200000" -env.Replace(LINKFLAGS = rtconfig.LFLAGS) - -if GetDepend('RT_USING_FPU'): - env['CFLAGS'] = env['CFLAGS'].replace('-msoft-float', '-mhard-float') - env['ASFLAGS'] = env['ASFLAGS'].replace('-msoft-float', '-mhard-float') - env['CXXFLAGS'] = env['CXXFLAGS'].replace('-msoft-float', '-mhard-float') - env['LINKFLAGS'] = env['LINKFLAGS'].replace('-msoft-float', '-mhard-float') - -if GetDepend('RT_USING_RTGUI'): - objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/ls1cdev/applications/SConscript b/bsp/ls1cdev/applications/SConscript deleted file mode 100644 index 4ccb177207..0000000000 --- a/bsp/ls1cdev/applications/SConscript +++ /dev/null @@ -1,9 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls1cdev/applications/main.c b/bsp/ls1cdev/applications/main.c deleted file mode 100644 index fac004d832..0000000000 --- a/bsp/ls1cdev/applications/main.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-10 zhuangwei first version - */ - -#include - -int main(int argc, char** argv) -{ - - return 0; -} diff --git a/bsp/ls1cdev/drivers/SConscript b/bsp/ls1cdev/drivers/SConscript deleted file mode 100644 index 33310b6d7e..0000000000 --- a/bsp/ls1cdev/drivers/SConscript +++ /dev/null @@ -1,20 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -group = group + objs - -Return('group') diff --git a/bsp/ls1cdev/drivers/board.c b/bsp/ls1cdev/drivers/board.c deleted file mode 100644 index 390e9971b2..0000000000 --- a/bsp/ls1cdev/drivers/board.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2010-06-25 Bernard first version - * 2011-08-08 lgnq modified for Loongson LS1B - * 2015-07-06 chinesebear modified for Loongson LS1C - * 2019-12-04 Jiaxun Yang Adapt new generic MIPS code - */ - -#include -#include -#include - -#include "board.h" -#include "drv_uart.h" -#include "ls1c.h" - -extern unsigned char __bss_end; - -#define RT_HW_HEAP_END (0x80000000 + MEM_SIZE) - - -/** - * This function will initial sam7s64 board. - */ -void rt_hw_board_init(void) -{ - /* init hardware interrupt */ - rt_hw_exception_init(); - - /* init hardware interrupt */ - rt_hw_interrupt_init(); - -#ifdef RT_USING_HEAP - rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END); -#endif - -#ifdef RT_USING_SERIAL - /* init hardware UART device */ - rt_hw_uart_init(); -#endif - -#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) - /* set console device */ - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); -#endif - /* init operating system timer */ - rt_hw_timer_init(); - -#ifdef RT_USING_FPU - /* init hardware fpu */ - rt_hw_fpu_init(); -#endif - -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif - - rt_kprintf("current sr: 0x%08x\n", read_c0_status()); -} - -/*@}*/ diff --git a/bsp/ls1cdev/drivers/board.h b/bsp/ls1cdev/drivers/board.h deleted file mode 100644 index 089384e348..0000000000 --- a/bsp/ls1cdev/drivers/board.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2010-06-25 Bernard first version - * 2011-08-08 lgnq modified for Loongson LS1B - * 2015-07-06 chinesebear modified for Loongson LS1C - * 2019-12-04 Jiaxun Yang Add board config defines - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ -#include - -#ifndef __ASSEMBLY__ -void rt_hw_board_init(void); -#endif - -/* -* SDRAM config -* -* Take IS42S16400 SDRAM chip as a example -* The specfication is -* Size 8MB -* WIDTH: 16 bits -* COL WIDTH: 8 bits, so we should take the 8 power of 2, it's 256 -* ROW WIDTH: 12 bits, so we take the 12 power of 2, it's 4K -* -* Please reference macro SD_PARA0 and SDRAM registers intruduction -* in user's manual to edit the SDRAM config. -*/ - -#if defined(RT_LS1C_BAICAIBOARD) -/* 8MByte IS42S16400 appeared in bacai_board V1.x V2.x */ -#define MEM_SIZE (0x800000) -#define SDRAM_WIDTH (WIDTH_16) -#define SDRAM_COL (COL_256) -#define SDRAM_ROW (ROW_4K) -#elif defined(RT_LS1C_OPENLOONGSON) -/* 32MByte appeared in SmartLoong board */ -#define MEM_SIZE (0x2000000) -#define SDRAM_WIDTH (WIDTH_16) -#define SDRAM_COL (COL_512) -#define SDRAM_ROW (ROW_8K) -#else -#error Unknown Board -#endif - -/* Early Debug config */ -#define EARLY_DEBUG /* UART2 serial print debug in early stage */ -#define EARLY_DEBUG_BAUD (115200) - -/* Clock config */ -#define CPU_HZ (252 * 1000000) -#define PLL_MULT (0x54) /* When external clock is 24Mhz PLL=504Mhz */ -#define SDRAM_DIV (0) /* SDRAM is CPU divided by 2*/ -#define CPU_DIV (2) /* CPU clock is PLL divided by 2 */ - -#endif diff --git a/bsp/ls1cdev/drivers/display_controller.c b/bsp/ls1cdev/drivers/display_controller.c deleted file mode 100644 index 2a0bfcc619..0000000000 --- a/bsp/ls1cdev/drivers/display_controller.c +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-08-09 lgnq first version for LS1B DC - * 2015-07-06 chinesebear modified for loongson 1c - * 2018-01-06 sundm75 modified for smartloong - */ - #include - -#include "display_controller.h" -#include "../../libraries/ls1c_pwm.h" -#include "../../libraries/ls1c_public.h" -#include "../../libraries/ls1c_gpio.h" -#include "../../libraries/ls1c_pin.h" - -#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) -struct vga_struct vga_mode[] = -{ - {/*"480x272_60.00"*/ 111000, 480, 482, 523, 525, 272, 274, 284, 286, }, - {/*"640x480_70.00"*/ 28560, 640, 664, 728, 816, 480, 481, 484, 500, }, - {/*"640x640_60.00"*/ 33100, 640, 672, 736, 832, 640, 641, 644, 663, }, - {/*"640x768_60.00"*/ 39690, 640, 672, 736, 832, 768, 769, 772, 795, }, - {/*"640x800_60.00"*/ 42130, 640, 680, 744, 848, 800, 801, 804, 828, }, - {/*"800x480_70.00"*/ 35840, 800, 832, 912, 1024, 480, 481, 484, 500, }, - {/*"800x600_60.00"*/ 38220, 800, 832, 912, 1024, 600, 601, 604, 622, }, - {/*"800x640_60.00"*/ 40730, 800, 832, 912, 1024, 640, 641, 644, 663, }, - {/*"832x600_60.00"*/ 40010, 832, 864, 952, 1072, 600, 601, 604, 622, }, - {/*"832x608_60.00"*/ 40520, 832, 864, 952, 1072, 608, 609, 612, 630, }, - {/*"1024x480_60.00"*/ 38170, 1024, 1048, 1152, 1280, 480, 481, 484, 497, }, - {/*"1024x600_60.00"*/ 48960, 1024, 1064, 1168, 1312, 600, 601, 604, 622, }, - {/*"1024x640_60.00"*/ 52830, 1024, 1072, 1176, 1328, 640, 641, 644, 663, }, - {/*"1024x768_60.00"*/ 64110, 1024, 1080, 1184, 1344, 768, 769, 772, 795, }, - {/*"1152x764_60.00"*/ 71380, 1152, 1208, 1328, 1504, 764, 765, 768, 791, }, - {/*"1280x800_60.00"*/ 83460, 1280, 1344, 1480, 1680, 800, 801, 804, 828, }, - {/*"1280x1024_55.00"*/ 98600, 1280, 1352, 1488, 1696, 1024, 1025, 1028, 1057, }, - {/*"1440x800_60.00"*/ 93800, 1440, 1512, 1664, 1888, 800, 801, 804, 828, }, - {/*"1440x900_67.00"*/ 120280, 1440, 1528, 1680, 1920, 900, 901, 904, 935, }, -}; - -static volatile int fb_index = 0; - -ALIGN(16) -volatile rt_uint16_t _rt_framebuffer[FB_YSIZE][FB_XSIZE]; -volatile rt_uint16_t _rt_framebuffer0[FB_YSIZE][FB_XSIZE]; -volatile rt_uint16_t _rt_framebuffer1[FB_YSIZE][FB_XSIZE]; -static struct rt_device_graphic_info _dc_info; - -static void pwminit(void) -{ - pwm_info_t pwm_info; - pwm_info.gpio = LS1C_PWM0_GPIO06; // pwm引脚位gpio06 - pwm_info.mode = PWM_MODE_NORMAL; // 正常模式--连续输出pwm波形 - pwm_info.duty = 0.85; // pwm占空比 85% - pwm_info.period_ns = 5*1000*1000; // pwm周期5ms - - /*pwm初始化,初始化后立即产生pwm波形*/ - pwm_init(&pwm_info); - - /* 使能pwm */ - pwm_enable(&pwm_info); -} -int caclulate_freq(rt_uint32_t XIN, rt_uint32_t PCLK) -{ - rt_uint32_t divider_int; - rt_uint32_t needed_pixclk; - rt_uint32_t pll_clk, pix_div; - rt_uint32_t regval; - - - pll_clk = PLL_FREQ; // 读CPU的 PLL及SDRAM 分频系数 - pll_clk =( pll_clk>>8 )& 0xff; - pll_clk = XIN * pll_clk / 4 ; - pix_div = PLL_DIV_PARAM;//读CPU的 CPU/CAMERA/DC 分频系数 - pix_div = (pix_div>>24)&0xff; - rt_kprintf("old pll_clk=%d, pix_div=%d\n", pll_clk, pix_div); - - divider_int = pll_clk/(1000000) *PCLK/1000; - if(divider_int%1000>=500) - divider_int = divider_int/1000+1; - else - divider_int = divider_int/1000; - rt_kprintf("divider_int = %d\n", divider_int); - - /* check whether divisor is too small. */ - if (divider_int < 1) { - rt_kprintf("Warning: clock source is too slow.Try smaller resolution\n"); - divider_int = 1; - } - else if(divider_int > 100) { - rt_kprintf("Warning: clock source is too fast.Try smaller resolution\n"); - divider_int = 100; - } - /* 配置分频寄存器 */ - { - rt_uint32_t regval = 0; - regval = PLL_DIV_PARAM; - /*首先需要把分频使能位清零 */ - regval &= ~0x80000030; //PIX_DIV_VALID PIX_SEL 置0 - regval &= ~(0x3f<<24); //PIX_DIV 清零 - regval |= divider_int << 24; - PLL_DIV_PARAM = regval; - regval |= 0x80000030; //PIX_DIV_VALID PIX_SEL 置1 - PLL_DIV_PARAM = regval; - } - rt_kprintf("new PLL_FREQ=0x%x, PLL_DIV_PARAM=0x%x\n", PLL_FREQ, PLL_DIV_PARAM); - rt_thread_delay(10); - return 0; -} - -static rt_err_t rt_dc_init(rt_device_t dev) -{ - int i, out, mode=-1; - int val; - - rt_kprintf("PWM initied\n"); - /* Set the back light PWM. */ - pwminit(); - - for (i=0; itype = RT_Device_Class_Graphic; - dc->init = rt_dc_init; - dc->open = RT_NULL; - dc->close = RT_NULL; - dc->control = rt_dc_control; - dc->user_data = (void*)&_dc_info; - - /* register Display Controller device to RT-Thread */ - rt_device_register(dc, "dc", RT_DEVICE_FLAG_RDWR); - - rt_device_init(dc); -} - -#include -#include "display_controller.h" - -/* initialize for gui driver */ -int rtgui_lcd_init(void) -{ - rt_device_t dc; - rt_kprintf("DC initied\n"); - - pin_set_purpose(76, PIN_PURPOSE_OTHER); - pin_set_remap(76, PIN_REMAP_DEFAULT); - - /* init Display Controller */ - rt_hw_dc_init(); - - /* find Display Controller device */ - dc = rt_device_find("dc"); - - /* set Display Controller device as rtgui graphic driver */ - rtgui_graphic_set_device(dc); - - return 0; -} - -INIT_DEVICE_EXPORT(rtgui_lcd_init); - -#endif diff --git a/bsp/ls1cdev/drivers/display_controller.h b/bsp/ls1cdev/drivers/display_controller.h deleted file mode 100644 index 39f6ae8d52..0000000000 --- a/bsp/ls1cdev/drivers/display_controller.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-08-08 lgnq first version for LS1B - * 2015-07-06 chinesebear modified for loongson 1c - * 2018-01-06 sundm75 modified for smartloong -*/ - -#ifndef __DISPLAY_CONTROLLER_H__ -#define __DISPLAY_CONTROLLER_H__ - -#include -#include "ls1c.h" - -#define DC_BASE 0xBC301240 //Display Controller - -/* Frame Buffer registers */ -#define DC_FB_CONFIG __REG32(DC_BASE + 0x000) -#define DC_FB_BUFFER_ADDR0 __REG32(DC_BASE + 0x020) -#define DC_FB_BUFFER_STRIDE __REG32(DC_BASE + 0x040) -#define DC_FB_BUFFER_ORIGIN __REG32(DC_BASE + 0x060) -#define DC_DITHER_CONFIG __REG32(DC_BASE + 0x120) -#define DC_DITHER_TABLE_LOW __REG32(DC_BASE + 0x140) -#define DC_DITHER_TABLE_HIGH __REG32(DC_BASE + 0x160) -#define DC_PANEL_CONFIG __REG32(DC_BASE + 0x180) -#define DC_PANEL_TIMING __REG32(DC_BASE + 0x1A0) -#define DC_HDISPLAY __REG32(DC_BASE + 0x1C0) -#define DC_HSYNC __REG32(DC_BASE + 0x1E0) -#define DC_VDISPLAY __REG32(DC_BASE + 0x240) -#define DC_VSYNC __REG32(DC_BASE + 0x260) -#define DC_FB_BUFFER_ADDR1 __REG32(DC_BASE + 0x340) - -/* Display Controller driver for 1024x768 16bit */ -#define FB_XSIZE 480 -#define FB_YSIZE 272 -#define CONFIG_VIDEO_16BPP - -#define OSC 24000000 /* Hz */ - -#define K1BASE 0xA0000000 -#define KSEG1(addr) ((void *)(K1BASE | (rt_uint32_t)(addr))) -#define HW_FB_ADDR KSEG1(_rt_framebuffer) - -struct vga_struct -{ - long pclk; - int hr,hss,hse,hfl; - int vr,vss,vse,vfl; -}; - -#endif diff --git a/bsp/ls1cdev/drivers/drv_can.c b/bsp/ls1cdev/drivers/drv_can.c deleted file mode 100644 index 66388b4ea8..0000000000 --- a/bsp/ls1cdev/drivers/drv_can.c +++ /dev/null @@ -1,527 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-01-06 sundm75 first version - */ - -#include -#include -#include -#include - -#include - -#include "ls1c.h" -#include "../libraries/ls1c_public.h" -#include "../libraries/ls1c_regs.h" -#include "../libraries/ls1c_clock.h" -#include "../libraries/ls1c_can.h" -#include "../libraries/ls1c_pin.h" - - -#ifdef RT_USING_CAN - -CanRxMsg RxMessage; - -struct ls1c_bxcan -{ - CAN_TypeDef *reg; - void * irq; -}; - -static rt_err_t bxmodifyfilter(struct ls1c_bxcan *pbxcan, struct rt_can_filter_item *pitem, rt_uint32_t actived) -{ - rt_int32_t fcase; - rt_err_t res; - rt_int32_t hdr, fbase, foff; - CAN_TypeDef* CANx; - CANx = pbxcan->reg; - - /*pitem->mode 1-掩码模式; 0- 滤波器模式 SJA1000中使用以下方式*/ - /*SJA1000中AFM 1-单滤波器模式; 0- 双滤波器模式 */ - - fcase = pitem->mode;/*1-单滤波器模式; 0- 双滤波器模式*/ - { - if (!actived) - { - return RT_EOK; - } - else if (pitem->hdr == -1) - { - res = -1; - if (res != RT_EOK) - { - return res; - } - } - else if (pitem->hdr >= 0) - { - rt_enter_critical(); - res = RT_EOK; - if (res != RT_EOK) - { - return res; - } - hdr = pitem->hdr; - rt_exit_critical(); - } - } - - CAN_FilterInitTypeDef CAN_FilterInitStruct; - unsigned char ide, rtr, id , idmask, mode; - ide = (unsigned char) pitem->ide; - rtr = (unsigned char) pitem->rtr; - id = pitem->id; - idmask = pitem->mask; - mode = (unsigned char) pitem->mode; - CAN_FilterInitStruct.IDE = ide; - CAN_FilterInitStruct.RTR = rtr; - CAN_FilterInitStruct.ID = id; - CAN_FilterInitStruct.IDMASK = idmask; - CAN_FilterInitStruct.MODE = mode; - CAN_FilterInit(CANx, &CAN_FilterInitStruct); - - return RT_EOK; -} - -static rt_err_t setfilter(struct ls1c_bxcan *pbxcan, struct rt_can_filter_config *pconfig) -{ - struct rt_can_filter_item *pitem = pconfig->items; - rt_uint32_t count = pconfig->count; - rt_err_t res; - while (count) - { - res = bxmodifyfilter(pbxcan, pitem, pconfig->actived); - if (res != RT_EOK) - { - return res; - } - pitem++; - count--; - } - return RT_EOK; -} - -static void bxcan0_filter_init(struct rt_can_device *can) -{ - struct ls1c_bxcan *pbxcan; - pbxcan = (struct ls1c_bxcan *) can->parent.user_data; - -} - -static void bxcan1_filter_init(struct rt_can_device *can) -{ - struct ls1c_bxcan *pbxcan; - pbxcan = (struct ls1c_bxcan *) can->parent.user_data; - -} - -static void bxcan_init(CAN_TypeDef *pcan, rt_uint32_t baud, rt_uint32_t mode) -{ - CAN_InitTypeDef CAN_InitStructure; - - Ls1c_CanBPS_t bps ; - - switch(baud) - { - case CAN1MBaud: - bps = LS1C_CAN1MBaud; - break; - case CAN800kBaud: - bps = LS1C_CAN800kBaud; - break; - case CAN500kBaud: - bps = LS1C_CAN500kBaud; - break; - case CAN250kBaud: - bps = LS1C_CAN250kBaud; - break; - case CAN125kBaud: - bps = LS1C_CAN125kBaud; - break; - case CAN50kBaud: - bps = LS1C_CAN40kBaud; - break; - default: - bps = LS1C_CAN250kBaud; - break; - } - - switch (mode) - { - case RT_CAN_MODE_NORMAL: - CAN_InitStructure.CAN_Mode = 0x00; - break; - case RT_CAN_MODE_LISEN: - CAN_InitStructure.CAN_Mode = CAN_Mode_LOM; - break; - case RT_CAN_MODE_LOOPBACK: - CAN_InitStructure.CAN_Mode = CAN_Mode_STM; - - break; - case RT_CAN_MODE_LOOPBACKANLISEN: - CAN_InitStructure.CAN_Mode = CAN_Mode_STM|CAN_Mode_LOM; - break; - } - CAN_InitStructure.CAN_SJW = CAN_SJW_1tq; - - switch (bps) - { - case LS1C_CAN1MBaud: - CAN_InitStructure.CAN_Prescaler = 9; - CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN800kBaud: - CAN_InitStructure.CAN_Prescaler = 8; - CAN_InitStructure.CAN_BS1 = CAN_BS1_7tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN500kBaud: - CAN_InitStructure.CAN_Prescaler = 9; - CAN_InitStructure.CAN_BS1 = CAN_BS1_11tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN250kBaud: - CAN_InitStructure.CAN_Prescaler = 36; - CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN125kBaud: - CAN_InitStructure.CAN_Prescaler = 36; - CAN_InitStructure.CAN_BS1 = CAN_BS1_11tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN100kBaud: - CAN_InitStructure.CAN_Prescaler = 63; - CAN_InitStructure.CAN_BS1 = CAN_BS1_7tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN50kBaud: - CAN_InitStructure.CAN_Prescaler = 63; - CAN_InitStructure.CAN_BS1 = CAN_BS1_16tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_3tq; - break; - default: //250K - CAN_InitStructure.CAN_Prescaler = 36; - CAN_InitStructure.CAN_BS1 = CAN_BS1_4tq; - CAN_InitStructure.CAN_BS2 = CAN_BS2_2tq; - break; - } - - CAN_Init(pcan, &CAN_InitStructure); -} - -#ifdef USING_BXCAN0 -static void bxcan0_hw_init(void) -{ - pin_set_purpose(54, PIN_PURPOSE_OTHER); - pin_set_purpose(55, PIN_PURPOSE_OTHER); - pin_set_remap(54, PIN_REMAP_THIRD); - pin_set_remap(55, PIN_REMAP_THIRD); -} -#endif - -#ifdef USING_BXCAN1 -static void bxcan1_hw_init(void) -{ - pin_set_purpose(56, PIN_PURPOSE_OTHER); - pin_set_purpose(57, PIN_PURPOSE_OTHER); - pin_set_remap(56, PIN_REMAP_THIRD); - pin_set_remap(57, PIN_REMAP_THIRD); -} -#endif - -static rt_err_t configure(struct rt_can_device *can, struct can_configure *cfg) -{ - CAN_TypeDef *pbxcan; - - pbxcan = ((struct ls1c_bxcan *) can->parent.user_data)->reg; - if (pbxcan == CAN0) - { -#ifdef USING_BXCAN0 - bxcan0_hw_init(); - bxcan_init(pbxcan, cfg->baud_rate, cfg->mode); -#endif - } - else if (pbxcan == CAN1) - { -#ifdef USING_BXCAN1 - bxcan1_hw_init(); - bxcan_init(pbxcan, cfg->baud_rate, cfg->mode); -#endif - } - return RT_EOK; -} - -static rt_err_t control(struct rt_can_device *can, int cmd, void *arg) -{ - struct ls1c_bxcan *pbxcan; - rt_uint32_t argval; - - pbxcan = (struct ls1c_bxcan *) can->parent.user_data; - switch (cmd) - { - case RT_CAN_CMD_SET_FILTER: - return setfilter(pbxcan, (struct rt_can_filter_config *) arg); - break; - case RT_CAN_CMD_SET_MODE: - argval = (rt_uint32_t) arg; - if (argval != RT_CAN_MODE_NORMAL || - argval != RT_CAN_MODE_LISEN || - argval != RT_CAN_MODE_LOOPBACK || - argval != RT_CAN_MODE_LOOPBACKANLISEN) - { - return RT_ERROR; - } - if (argval != can->config.mode) - { - can->config.mode = argval; - return CAN_SetMode(pbxcan->reg, argval); - } - break; - case RT_CAN_CMD_SET_BAUD: - argval = (rt_uint32_t) arg; - if (argval != CAN1MBaud && - argval != CAN800kBaud && - argval != CAN500kBaud && - argval != CAN250kBaud && - argval != CAN125kBaud && - argval != CAN100kBaud && - argval != CAN50kBaud ) - { - return RT_ERROR; - } - if (argval != can->config.baud_rate) - { - can->config.baud_rate = argval; - Ls1c_CanBPS_t bps; - switch(argval) - { - case CAN1MBaud: - bps = LS1C_CAN1MBaud; - break; - case CAN800kBaud: - bps = LS1C_CAN800kBaud; - break; - case CAN500kBaud: - bps = LS1C_CAN500kBaud; - break; - case CAN250kBaud: - bps = LS1C_CAN250kBaud; - break; - case CAN125kBaud: - bps = LS1C_CAN125kBaud; - break; - case CAN50kBaud: - bps = LS1C_CAN40kBaud; - break; - default: - bps = LS1C_CAN250kBaud; - break; - } - return CAN_SetBps( pbxcan->reg, bps); - } - break; - case RT_CAN_CMD_GET_STATUS: - { - rt_uint32_t errtype; - - errtype = pbxcan->reg->RXERR; - can->status.rcverrcnt = errtype ; - errtype = pbxcan->reg->TXERR; - can->status.snderrcnt = errtype ; - errtype = pbxcan->reg->ECC; - can->status.errcode = errtype ; - if (arg != &can->status) - { - rt_memcpy(arg, &can->status, sizeof(can->status)); - } - } - break; - } - - return RT_EOK; -} - -static int sendmsg(struct rt_can_device *can, const void *buf, rt_uint32_t boxno) -{ - CAN_TypeDef *pbxcan; - CanTxMsg TxMessage; - struct rt_can_msg *pmsg = (struct rt_can_msg *) buf; - int i; - - pbxcan = ((struct ls1c_bxcan *) can->parent.user_data)->reg; - - TxMessage.StdId = pmsg->id; - TxMessage.ExtId = pmsg->id; - TxMessage.RTR = pmsg->rtr; - TxMessage.IDE = pmsg->ide; - TxMessage.DLC = pmsg->len; - for( i=0; idata[i]; - } - CAN_Transmit(pbxcan, &TxMessage); - - return RT_EOK; -} - -static int recvmsg(struct rt_can_device *can, void *buf, rt_uint32_t boxno) -{ - CAN_TypeDef *pbxcan; - - struct rt_can_msg *pmsg = (struct rt_can_msg *) buf; - int i; - - pbxcan = ((struct ls1c_bxcan *) can->parent.user_data)->reg; - - pmsg->ide = (rt_uint32_t) RxMessage.IDE; - if(RxMessage.IDE == 1) - pmsg->id = RxMessage.ExtId; - else - pmsg->id = RxMessage.StdId; - pmsg->len = RxMessage.DLC; - pmsg->rtr = RxMessage.RTR; - pmsg->hdr = 0; - for(i= 0;i< RxMessage.DLC; i++) - { - pmsg->data[i] = RxMessage.Data[i]; - } - return RT_EOK; -} - -static const struct rt_can_ops canops = -{ - configure, - control, - sendmsg, - recvmsg, -}; - -#ifdef USING_BXCAN0 -struct rt_can_device bxcan0; -void ls1c_can0_irqhandler(int irq, void *param) -{ - CAN_TypeDef* CANx; - unsigned char status; - CANx = CAN0; - /*读寄存器清除中断*/ - status = CANx->IR; - - /*接收中断*/ - if (( status & CAN_IR_RI) == CAN_IR_RI) - { - /*清除RI 中断*/ - CAN_Receive(CANx, &RxMessage); - CANx->CMR |= CAN_CMR_RRB; - CANx->CMR |= CAN_CMR_CDO; - rt_hw_can_isr(&bxcan0, RT_CAN_EVENT_RX_IND); - rt_kprintf("\r\nCan0 int RX happened!\r\n"); - } - /*发送中断*/ - else if (( status & CAN_IR_TI) == CAN_IR_TI) - { - rt_hw_can_isr(&bxcan0, RT_CAN_EVENT_TX_DONE | 0 << 8); - rt_kprintf("\r\nCan0 int TX happened!\r\n"); - } - /*数据溢出中断*/ - else if (( status & CAN_IR_DOI) == CAN_IR_DOI) - { - rt_hw_can_isr(&bxcan0, RT_CAN_EVENT_RXOF_IND); - rt_kprintf("\r\nCan0 int RX OF happened!\r\n"); - } -} -static struct ls1c_bxcan bxcan0data = -{ - .reg = CAN0, - .irq = ls1c_can0_irqhandler, -}; -#endif /*USING_BXCAN0*/ - -#ifdef USING_BXCAN1 -struct rt_can_device bxcan1; -void ls1c_can1_irqhandler(int irq, void *param) -{ - CAN_TypeDef* CANx; - unsigned char status; - CANx = CAN1; - /*读寄存器清除中断*/ - status = CANx->IR; - - /*接收中断*/ - if (( status & CAN_IR_RI) == CAN_IR_RI) - { - /*清除RI 中断*/ - CAN_Receive(CANx, &RxMessage); - CANx->CMR |= CAN_CMR_RRB; - CANx->CMR |= CAN_CMR_CDO; - rt_hw_can_isr(&bxcan1, RT_CAN_EVENT_RX_IND); - rt_kprintf("\r\nCan1 int RX happened!\r\n"); - } - /*发送中断*/ - else if (( status & CAN_IR_TI) == CAN_IR_TI) - { - rt_hw_can_isr(&bxcan1, RT_CAN_EVENT_TX_DONE | 0 << 8); - rt_kprintf("\r\nCan1 int TX happened!\r\n"); - } - /*数据溢出中断*/ - else if (( status & CAN_IR_DOI) == CAN_IR_DOI) - { - rt_hw_can_isr(&bxcan1, RT_CAN_EVENT_RXOF_IND); - rt_kprintf("\r\nCan1 int RX OF happened!\r\n"); - } -} -static struct ls1c_bxcan bxcan1data = -{ - .reg = CAN1, - .irq = ls1c_can1_irqhandler, -}; - -#endif /*USING_BXCAN1*/ - -int ls1c_bxcan_init(void) -{ - -#ifdef USING_BXCAN0 - bxcan0.config.baud_rate = CAN250kBaud; - bxcan0.config.msgboxsz = 1; - bxcan0.config.sndboxnumber = 1; - bxcan0.config.mode = RT_CAN_MODE_NORMAL; - bxcan0.config.privmode = 0; - bxcan0.config.ticks = 50; -#ifdef RT_CAN_USING_HDR - bxcan0.config.maxhdr = 2; -#endif - rt_hw_can_register(&bxcan0, "bxcan0", &canops, &bxcan0data); - rt_kprintf("\r\ncan0 register! \r\n"); - - rt_hw_interrupt_install(LS1C_CAN0_IRQ,( rt_isr_handler_t)bxcan0data.irq , RT_NULL, "can0"); - rt_hw_interrupt_umask(LS1C_CAN0_IRQ); -#endif -#ifdef USING_BXCAN1 - bxcan1.config.baud_rate = CAN250kBaud; - bxcan1.config.msgboxsz = 1; - bxcan1.config.sndboxnumber = 1; - bxcan1.config.mode = RT_CAN_MODE_NORMAL; - bxcan1.config.privmode = 0; - bxcan1.config.ticks = 50; -#ifdef RT_CAN_USING_HDR - bxcan1.config.maxhdr = 2; -#endif - rt_hw_can_register(&bxcan1, "bxcan1", &canops, &bxcan1data); - rt_kprintf("\r\ncan1 register! \r\n"); - - rt_hw_interrupt_install(LS1C_CAN1_IRQ,( rt_isr_handler_t)bxcan1data.irq , RT_NULL, "can1"); - rt_hw_interrupt_umask(LS1C_CAN1_IRQ); -#endif - return RT_EOK; -} - -INIT_BOARD_EXPORT(ls1c_bxcan_init); - -#endif /*RT_USING_CAN*/ diff --git a/bsp/ls1cdev/drivers/drv_can.h b/bsp/ls1cdev/drivers/drv_can.h deleted file mode 100644 index 7d5d1604d4..0000000000 --- a/bsp/ls1cdev/drivers/drv_can.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-01-06 sundm75 first version - */ - -#ifndef LS1C_DRV_CAN_H -#define LS1C_DRV_CAN_H - -extern int ls1c_bxcan_init(void); - -#endif /*DRV_CAN_H_*/ diff --git a/bsp/ls1cdev/drivers/drv_gpio.c b/bsp/ls1cdev/drivers/drv_gpio.c deleted file mode 100644 index 14b44c9b6f..0000000000 --- a/bsp/ls1cdev/drivers/drv_gpio.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-24 勤为本 first version - * 2018-05-11 zhuangwei add gpio interrupt ops - */ - -#include -#include -#include "ls1c_gpio.h" -#include "ls1c.h" -#include - -#ifdef RT_USING_PIN - -void ls1c_pin_mode(struct rt_device *device, rt_base_t pin, rt_base_t mode) -{ - unsigned int gpio = pin; - - if (PIN_MODE_OUTPUT == mode) - { - gpio_init(gpio, gpio_mode_output); - } - else - { - gpio_init(gpio, gpio_mode_input); - } - - return ; -} - - -void ls1c_pin_write(struct rt_device *device, rt_base_t pin, rt_base_t value) -{ - unsigned int gpio = pin; - - if (PIN_LOW == value) - { - gpio_set(gpio, gpio_level_low); - } - else - { - gpio_set(gpio, gpio_level_high); - } - - return ; -} - - -int ls1c_pin_read(struct rt_device *device, rt_base_t pin) -{ - unsigned int gpio = pin; - int value = PIN_LOW; - - if (0 == gpio_get(gpio)) - { - value = PIN_LOW; - } - else - { - value = PIN_HIGH; - } - - return value; -} - -rt_err_t ls1c_pin_attach_irq(struct rt_device *device, rt_int32_t pin, - rt_uint32_t mode, void (*hdr)(void *args), void *args) -{ - unsigned int gpio = pin; - char irq_name[10]; - rt_uint32_t type; - switch (mode) - { - case PIN_IRQ_MODE_RISING: - type=IRQ_TYPE_EDGE_RISING; - break; - case PIN_IRQ_MODE_FALLING: - type=IRQ_TYPE_EDGE_FALLING; - break; - case PIN_IRQ_MODE_HIGH_LEVEL: - type=IRQ_TYPE_LEVEL_HIGH; - break; - case PIN_IRQ_MODE_LOW_LEVEL: - type=IRQ_TYPE_LEVEL_LOW; - break; - } - gpio_set_irq_type(gpio, type); - - rt_sprintf(irq_name, "PIN_%d", gpio); - rt_hw_interrupt_install(LS1C_GPIO_TO_IRQ(gpio), (rt_isr_handler_t)hdr, args, irq_name); - - return RT_EOK; -} - -rt_err_t ls1c_pin_detach_irq(struct rt_device *device, rt_int32_t pin) -{ - return RT_EOK; -} - -rt_err_t ls1c_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t enabled) -{ - unsigned int gpio = pin; - - if (enabled) - rt_hw_interrupt_umask(LS1C_GPIO_TO_IRQ(gpio)); - else - rt_hw_interrupt_mask(LS1C_GPIO_TO_IRQ(gpio)); - return RT_EOK; -} - - -const static struct rt_pin_ops _ls1c_pin_ops = -{ - ls1c_pin_mode, - ls1c_pin_write, - ls1c_pin_read, - - ls1c_pin_attach_irq, - ls1c_pin_detach_irq, - ls1c_pin_irq_enable, - RT_NULL, -}; - - -int hw_pin_init(void) -{ - int ret = RT_EOK; - - ret = rt_device_pin_register("pin", &_ls1c_pin_ops, RT_NULL); - - return ret; -} -INIT_BOARD_EXPORT(hw_pin_init); - -#endif /*RT_USING_PIN */ - - diff --git a/bsp/ls1cdev/drivers/drv_gpio.h b/bsp/ls1cdev/drivers/drv_gpio.h deleted file mode 100644 index 33fc0f18ed..0000000000 --- a/bsp/ls1cdev/drivers/drv_gpio.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-24 勤为本 first version - * 2018-05-11 zhuangwei add gpio interrupt ops - */ - -#ifndef __DRV_GPIO_H__ -#define __DRV_GPIO_H__ - - -int hw_pin_init(void); - - -#endif - diff --git a/bsp/ls1cdev/drivers/drv_i2c.c b/bsp/ls1cdev/drivers/drv_i2c.c deleted file mode 100644 index 374b625c70..0000000000 --- a/bsp/ls1cdev/drivers/drv_i2c.c +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-14 勤为本 first version - */ - -#include -#include -#include -#include "drv_i2c.h" -#include "../libraries/ls1c_gpio.h" -#include "../libraries/ls1c_delay.h" - - -#define LS1C_I2C_SCL (51) // gpio57 -#define LS1C_I2C_SDA (50) // gpio56 - -#define LS1C_SET_GPIO_MODE - -static void ls1c_i2c_gpio_init(void) -{ - gpio_init(LS1C_I2C_SCL, gpio_mode_output); - gpio_set(LS1C_I2C_SCL, gpio_level_high); - - gpio_init(LS1C_I2C_SDA, gpio_mode_output); - gpio_set(LS1C_I2C_SDA, gpio_level_high); - - return ; -} - - -static void ls1c_udelay(rt_uint32_t us) -{ - delay_us((int)us); -} - - -static void ls1c_set_sda(void *data, rt_int32_t state) -{ -#ifdef LS1C_SET_GPIO_MODE - gpio_init(LS1C_I2C_SDA, gpio_mode_output); - ls1c_udelay(5); -#endif - gpio_set(LS1C_I2C_SDA, state); - return ; -} - - -static void ls1c_set_scl(void *data, rt_int32_t state) -{ -#ifdef LS1C_SET_GPIO_MODE - gpio_init(LS1C_I2C_SCL, gpio_mode_output); - ls1c_udelay(5); -#endif - gpio_set(LS1C_I2C_SCL, state); - return ; -} - - -static rt_int32_t ls1c_get_sda(void *data) -{ -#ifdef LS1C_SET_GPIO_MODE - gpio_init(LS1C_I2C_SDA, gpio_mode_input); - ls1c_udelay(5); -#endif - return gpio_get(LS1C_I2C_SDA); -} - - -static rt_int32_t ls1c_get_scl(void *data) -{ -#ifdef LS1C_SET_GPIO_MODE - gpio_init(LS1C_I2C_SCL, gpio_mode_input); - ls1c_udelay(5); -#endif - return gpio_get(LS1C_I2C_SCL); -} - - -static const struct rt_i2c_bit_ops bit_ops = { - .data = RT_NULL, - .set_sda = ls1c_set_sda, - .set_scl = ls1c_set_scl, - .get_sda = ls1c_get_sda, - .get_scl = ls1c_get_scl, - - .udelay = ls1c_udelay, - - .delay_us = 20, // 此值为周期(us) - .timeout = 10, // 单位为tick -}; - - - -int ls1c_i2c_init(void) -{ - static struct rt_i2c_bus_device bus = {0}; - - bus.priv = (void *)&bit_ops; - - ls1c_i2c_gpio_init(); - - rt_i2c_bit_add_bus(&bus, "i2c3"); - - return RT_EOK; -} - - - - - diff --git a/bsp/ls1cdev/drivers/drv_i2c.h b/bsp/ls1cdev/drivers/drv_i2c.h deleted file mode 100644 index cbacdbb0f5..0000000000 --- a/bsp/ls1cdev/drivers/drv_i2c.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-14 勤为本 first version - */ - -#ifndef LS1C_DRV_I2C_H -#define LS1C_DRV_I2C_H - -int ls1c_i2c_init(void); - -#endif - diff --git a/bsp/ls1cdev/drivers/drv_pwm.c b/bsp/ls1cdev/drivers/drv_pwm.c deleted file mode 100644 index 779a7e52b9..0000000000 --- a/bsp/ls1cdev/drivers/drv_pwm.c +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-12-04 Sundm75 the first version - */ -#include -#include -#include - -#include -#include - -#include "ls1c.h" -#include "../libraries/ls1c_public.h" -#include "../libraries/ls1c_regs.h" -#include "../libraries/ls1c_clock.h" -#include "../libraries/ls1c_pwm.h" -#include "../libraries/ls1c_pin.h" - -#define PWM_CHANNEL_MAX (4) /* 0-3*/ - -#ifdef RT_USING_PWM - -struct rt_ls1c_pwm -{ - struct rt_device_pwm parent; - - rt_uint32_t period[PWM_CHANNEL_MAX]; - rt_uint32_t pulse[PWM_CHANNEL_MAX]; -}; - -static struct rt_ls1c_pwm _ls1c_pwm_device; - -static rt_err_t set(struct rt_device_pwm *device, struct rt_pwm_configuration *configuration) -{ - rt_err_t result = RT_EOK; - struct rt_ls1c_pwm *ls1c_pwm_device = (struct rt_ls1c_pwm *)device; - - if (configuration->channel > (PWM_CHANNEL_MAX - 1)) - { - result = -RT_EIO; - goto _exit; - } - - rt_kprintf("drv_pwm.c set channel %d: period: %d, pulse: %d\n", configuration->channel, configuration->period, configuration->pulse); - - ls1c_pwm_device->period[configuration->channel] = configuration->period; - ls1c_pwm_device->pulse[configuration->channel] = configuration->pulse; - -_exit: - return result; -} - -static rt_err_t get(struct rt_device_pwm *device, struct rt_pwm_configuration *configuration) -{ - rt_err_t result = RT_EOK; - struct rt_ls1c_pwm *ls1c_pwm_device = (struct rt_ls1c_pwm *)device; - - if (configuration->channel > (PWM_CHANNEL_MAX - 1)) - { - result = -RT_EIO; - goto _exit; - } - - configuration->period = ls1c_pwm_device->period[configuration->channel]; - configuration->pulse = ls1c_pwm_device->pulse[configuration->channel]; - rt_kprintf("drv_pwm.c get channel %d: period: %d, pulse: %d\n", configuration->channel, configuration->period, configuration->pulse); - -_exit: - return result; -} - -static rt_err_t control(struct rt_device_pwm *device, int cmd, void *arg) -{ - rt_err_t result = RT_EOK; - struct rt_pwm_configuration * configuration = (struct rt_pwm_configuration *)arg; - - rt_kprintf("drv_pwm.c control cmd: %d. \n", cmd); - - if (cmd == PWM_CMD_ENABLE) - { - rt_kprintf("PWM_CMD_ENABLE\n"); - - pwm_info_t pwm_info; - switch ( configuration->channel) - { - case 0: - pwm_info.gpio = LS1C_PWM0_GPIO06; - //pwm_info.gpio = LS1C_PWM0_GPIO04; - break; - case 1: - pwm_info.gpio = LS1C_PWM1_GPIO92; - //pwm_info.gpio = LS1C_PWM1_GPIO05; - break; - case 2: - pwm_info.gpio = LS1C_PWM2_GPIO52; - //pwm_info.gpio = LS1C_PWM2_GPIO46; - break; - case 3: - pwm_info.gpio = LS1C_PWM3_GPIO47; - //pwm_info.gpio = LS1C_PWM3_GPIO53; - break; - default: - break; - } - pwm_info.mode = PWM_MODE_NORMAL; - pwm_info.duty = ( (float)configuration->pulse ) / ((float)configuration->period ); - pwm_info.period_ns = configuration->period; - pwm_init(&pwm_info); - pwm_enable(&pwm_info); - } - else if (cmd == PWM_CMD_DISABLE) - { - rt_kprintf("PWM_CMD_DISABLE\n"); - pwm_info_t pwm_info; - switch ( configuration->channel) - { - case 0: - pwm_info.gpio = LS1C_PWM0_GPIO06; - //pwm_info.gpio = LS1C_PWM0_GPIO04; - break; - case 1: - pwm_info.gpio = LS1C_PWM1_GPIO92; - //pwm_info.gpio = LS1C_PWM1_GPIO05; - break; - case 2: - pwm_info.gpio = LS1C_PWM2_GPIO52; - //pwm_info.gpio = LS1C_PWM2_GPIO46; - break; - case 3: - pwm_info.gpio = LS1C_PWM3_GPIO47; - //pwm_info.gpio = LS1C_PWM3_GPIO53; - break; - default: - break; - } - pwm_info.mode = PWM_MODE_NORMAL; - pwm_info.duty = ( (float)configuration->pulse ) / ((float)configuration->period ); - pwm_info.period_ns = configuration->period; - pwm_init(&pwm_info); - pwm_disable(&pwm_info); - } - else if (cmd == PWM_CMD_SET) - { - rt_kprintf("PWM_CMD_SET\n"); - result = set(device, (struct rt_pwm_configuration *)arg); - } - else if (cmd == PWM_CMD_GET) - { - rt_kprintf("PWM_CMD_GET\n"); - result = get(device, (struct rt_pwm_configuration *)arg); - } - - return result; -} - -static const struct rt_pwm_ops pwm_ops = -{ - control, -}; - -int rt_hw_pwm_init(void) -{ - int ret = RT_EOK; - - /* add pwm initial. */ - - ret = rt_device_pwm_register(&_ls1c_pwm_device.parent, "pwm", &pwm_ops, RT_NULL); - - return ret; -} -INIT_DEVICE_EXPORT(rt_hw_pwm_init); - -#endif /*RT_USING_PWM*/ diff --git a/bsp/ls1cdev/drivers/drv_pwm.h b/bsp/ls1cdev/drivers/drv_pwm.h deleted file mode 100644 index 427ba0c619..0000000000 --- a/bsp/ls1cdev/drivers/drv_pwm.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-12-04 Sundm75 the first version - */ - -#ifndef LS1C_DRV_PWM_H -#define LS1C_DRV_PWM_H - -int ls1c_pwm_init(void); - -#endif /*DRV_CAN_H_*/ diff --git a/bsp/ls1cdev/drivers/drv_rtc.c b/bsp/ls1cdev/drivers/drv_rtc.c deleted file mode 100644 index ef1398fe47..0000000000 --- a/bsp/ls1cdev/drivers/drv_rtc.c +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-05 sundm75 first version - */ - -/* Includes ------------------------------------------------------------------*/ -#include "board.h" -#include "drv_rtc.h" -#include -#include - -#include "../libraries/ls1c_regs.h" -#include "../libraries/ls1c_rtc.h" - -//#define RT_RTC_DEBUG - -#if defined(RT_USING_RTC) -#ifdef RT_RTC_DEBUG -#define rtc_debug(format,args...) rt_kprintf(format, ##args) -#else -#define rtc_debug(format,args...) -#endif - -static struct rt_device rtc; - -RTC_TypeDef * RTC_Handler; - -static time_t get_timestamp(void) -{ - struct tm tm_new = {0}; - RTC_TimeTypeDef rtcDate; - - RTC_GetTime(RTC_Handler, &rtcDate); - - tm_new.tm_sec = rtcDate.Seconds; - tm_new.tm_min = rtcDate.Minutes; - tm_new.tm_hour = rtcDate.Hours; - - tm_new.tm_mday = rtcDate.Date; - tm_new.tm_mon = rtcDate.Month- 1; - tm_new.tm_year = rtcDate.Year + 2000 - 1900; - - return timegm(&tm_new); -} - -static int set_timestamp(time_t timestamp) -{ - struct tm *p_tm; - RTC_TimeTypeDef rtcDate; - - p_tm = gmtime(×tamp); - - rtcDate.Seconds= p_tm->tm_sec ; - rtcDate.Minutes= p_tm->tm_min ; - rtcDate.Hours= p_tm->tm_hour; - - rtcDate.Date= p_tm->tm_mday; - rtcDate.Month= p_tm->tm_mon + 1; - rtcDate.Year= p_tm->tm_year + 1900 - 2000; - - RTC_SetTime(RTC_Handler, &rtcDate); - rt_kprintf("\r\nrtcDate is %d.%d.%d - %d:%d:%d",rtcDate.Year, rtcDate.Month, rtcDate.Date, rtcDate.Hours, rtcDate.Minutes, rtcDate.Seconds); - return RT_EOK; -} - -rt_uint8_t RTC_Init(void) -{ - RTC_Handler = RTC; - return 0; -} - -static rt_err_t rt_rtc_open(rt_device_t dev, rt_uint16_t oflag) -{ - if (dev->rx_indicate != RT_NULL) - { - /* Open Interrupt */ - } - - return RT_EOK; -} - -static rt_size_t rt_rtc_read( - rt_device_t dev, - rt_off_t pos, - void* buffer, - rt_size_t size) -{ - - return 0; -} - - /** - * This function configure RTC device. - * - * @param dev, pointer to device descriptor. - * @param cmd, RTC control command. - * - * @return the error code. - */ -static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args) -{ - rt_err_t result; - RT_ASSERT(dev != RT_NULL); - switch (cmd) - { - case RT_DEVICE_CTRL_RTC_GET_TIME: - - *(rt_uint32_t *)args = get_timestamp(); - rtc_debug("RTC: get rtc_time %x\n", *(rt_uint32_t *)args); - break; - - case RT_DEVICE_CTRL_RTC_SET_TIME: - { - result = set_timestamp(*(rt_uint32_t *)args); - rtc_debug("RTC: set rtc_time %x\n", *(rt_uint32_t *)args); - } - break; - } - - return result; -} - - /** - * This function register RTC device. - * - * @param device, pointer to device descriptor. - * @param name, device name. - * @param flag, configuration flags. - * - * @return the error code. - */ -rt_err_t rt_hw_rtc_register( - rt_device_t device, - const char *name, - rt_uint32_t flag) -{ - RT_ASSERT(device != RT_NULL); - - device->type = RT_Device_Class_RTC; - device->rx_indicate = RT_NULL; - device->tx_complete = RT_NULL; - device->init = RT_NULL; - device->open = rt_rtc_open; - device->close = RT_NULL; - device->read = rt_rtc_read; - device->write = RT_NULL; - device->control = rt_rtc_control; - device->user_data = RT_NULL; /* no private */ - - /* register a character device */ - return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR | flag); -} - - /** - * This function initialize RTC module related hardware and register RTC device to kernel. - * - * @param none. - * - * @return the error code. - */ -int rt_hw_rtc_init(void) -{ - RTC_Init(); - /* register rtc device */ - rt_hw_rtc_register(&rtc, RT_RTC_NAME, 0); - return RT_EOK; -} -INIT_BOARD_EXPORT(rt_hw_rtc_init); -#endif - - - - diff --git a/bsp/ls1cdev/drivers/drv_rtc.h b/bsp/ls1cdev/drivers/drv_rtc.h deleted file mode 100644 index cea8ebe633..0000000000 --- a/bsp/ls1cdev/drivers/drv_rtc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-05 sundm75 first version - */ - -#ifndef __DRV_RTC_H__ -#define __DRV_RTC_H__ - -#include -#include - -int rt_hw_rtc_init(void); - -#endif diff --git a/bsp/ls1cdev/drivers/drv_spi.c b/bsp/ls1cdev/drivers/drv_spi.c deleted file mode 100644 index 25b30e07ca..0000000000 --- a/bsp/ls1cdev/drivers/drv_spi.c +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-02 勤为本 first version - * 2018-06-09 zhuangwei add spi0 cs0 support,remove msd_init - */ - -#include -#include -#include -#include "drv_spi.h" -#include "ls1c_public.h" -#include "spi_msd.h" -#include "dfs_fs.h" -#include "../libraries/ls1c_pin.h" - -#ifdef RT_USING_SPI -#ifdef DEBUG -#define DEBUG_PRINTF(...) rt_kprintf(__VA_ARGS__) -#else -#define DEBUG_PRINTF(...) -#endif - - -static rt_err_t configure(struct rt_spi_device *device, struct rt_spi_configuration *configuration); -static rt_uint32_t xfer(struct rt_spi_device *device, struct rt_spi_message *message); - - -static struct rt_spi_ops ls1c_spi_ops = -{ - .configure = configure, - .xfer = xfer -}; - - -static rt_err_t configure(struct rt_spi_device *device, - struct rt_spi_configuration *configuration) -{ - struct rt_spi_bus *spi_bus = NULL; - struct ls1c_spi *ls1c_spi = NULL; - unsigned char SPIx = 0; - void *spi_base = NULL; - unsigned char cpol = 0; - unsigned char cpha = 0; - unsigned char val = 0; - - RT_ASSERT(NULL != device); - RT_ASSERT(NULL != configuration); - - spi_bus = device->bus; - ls1c_spi = (struct ls1c_spi *)spi_bus->parent.user_data; - SPIx = ls1c_spi->SPIx; - spi_base = ls1c_spi_get_base(SPIx); - - { - // 使能SPI控制器,master模式,关闭中断 - reg_write_8(0x53, spi_base + LS1C_SPI_SPCR_OFFSET); - - // 清空状态寄存器 - reg_write_8(0xc0, spi_base + LS1C_SPI_SPSR_OFFSET); - - // 1字节产生中断,采样(读)与发送(写)时机同时 - reg_write_8(0x03, spi_base + LS1C_SPI_SPER_OFFSET); - - // 关闭SPI flash - val = reg_read_8(spi_base + LS1C_SPI_SFC_PARAM_OFFSET); - val &= 0xfe; - reg_write_8(val, spi_base + LS1C_SPI_SFC_PARAM_OFFSET); - - // spi flash时序控制寄存器 - reg_write_8(0x05, spi_base + LS1C_SPI_SFC_TIMING_OFFSET); - } - - // baudrate - ls1c_spi_set_clock(spi_base, configuration->max_hz); - - // 设置通信模式(时钟极性和相位) - if (configuration->mode & RT_SPI_CPOL) // cpol - { - cpol = SPI_CPOL_1; - } - else - { - cpol = SPI_CPOL_0; - } - if (configuration->mode & RT_SPI_CPHA) // cpha - { - cpha = SPI_CPHA_1; - } - else - { - cpha = SPI_CPHA_0; - } - ls1c_spi_set_mode(spi_base, cpol, cpha); - - DEBUG_PRINTF("ls1c spi%d configuration\n", SPIx); - - return RT_EOK; -} - - -static rt_uint32_t xfer(struct rt_spi_device *device, - struct rt_spi_message *message) -{ - struct rt_spi_bus *spi_bus = NULL; - struct ls1c_spi *ls1c_spi = NULL; - void *spi_base = NULL; - unsigned char SPIx = 0; - struct ls1c_spi_cs *ls1c_spi_cs = NULL; - unsigned char cs = 0; - rt_uint32_t size = 0; - const rt_uint8_t *send_ptr = NULL; - rt_uint8_t *recv_ptr = NULL; - rt_uint8_t data = 0; - - RT_ASSERT(NULL != device); - RT_ASSERT(NULL != message); - - spi_bus = device->bus; - ls1c_spi = spi_bus->parent.user_data; - SPIx = ls1c_spi->SPIx; - spi_base = ls1c_spi_get_base(SPIx); - ls1c_spi_cs = device->parent.user_data; - cs = ls1c_spi_cs->cs; - size = message->length; - - DEBUG_PRINTF("[%s] SPIx=%d, cs=%d\n", __FUNCTION__, SPIx, cs); - - // take cs - if (message->cs_take) - { - ls1c_spi_set_cs(spi_base, cs, 0); - } - - // 收发数据 - send_ptr = message->send_buf; - recv_ptr = message->recv_buf; - while (size--) - { - data = 0xFF; - if (NULL != send_ptr) - { - data = *send_ptr++; - } - - if (NULL != recv_ptr) - { - *recv_ptr++ = ls1c_spi_txrx_byte(spi_base, data); - } - else - { - ls1c_spi_txrx_byte(spi_base, data); - } - } - - // release cs - if (message->cs_release) - { - ls1c_spi_set_cs(spi_base, cs, 1); - } - - return message->length; -} - - -#ifdef RT_USING_SPI0 -struct ls1c_spi ls1c_spi0 = -{ - .SPIx = LS1C_SPI_0, -}; - -static struct rt_spi_bus spi0_bus; -#endif - - -#ifdef RT_USING_SPI1 -struct ls1c_spi ls1c_spi1 = -{ - .SPIx = LS1C_SPI_1, -}; - -static struct rt_spi_bus spi1_bus; -#endif - - -/* - * 初始化并注册龙芯1c的spi总线 - * @SPI SPI总线,比如LS1C_SPI_0, LS1C_SPI_1 - * @spi_bus_name 总线名字 - * @ret - */ -rt_err_t ls1c_spi_bus_register(rt_uint8_t SPI, const char *spi_bus_name) -{ - struct rt_spi_bus *spi_bus = NULL; - -#ifdef RT_USING_SPI0 - if (LS1C_SPI_0 == SPI) - { - spi_bus = &spi0_bus; - spi_bus->parent.user_data = &ls1c_spi0; - } -#endif - -#ifdef RT_USING_SPI1 - if (LS1C_SPI_1 == SPI) - { - spi_bus = &spi1_bus; - spi_bus->parent.user_data = &ls1c_spi1; - } -#endif - - return rt_spi_bus_register(spi_bus, spi_bus_name, &ls1c_spi_ops); -} - -int ls1c_hw_spi_init(void) -{ -#ifdef RT_USING_SPI0 - pin_set_purpose(78, PIN_PURPOSE_OTHER); - pin_set_purpose(79, PIN_PURPOSE_OTHER); - pin_set_purpose(80, PIN_PURPOSE_OTHER); - pin_set_purpose(83, PIN_PURPOSE_OTHER);//cs2 - SD card - pin_set_purpose(82, PIN_PURPOSE_OTHER);//cs1 - pin_set_purpose(81, PIN_PURPOSE_OTHER);//cs0 - - pin_set_remap(78, PIN_REMAP_DEFAULT); - pin_set_remap(79, PIN_REMAP_DEFAULT); - pin_set_remap(80, PIN_REMAP_DEFAULT); - pin_set_remap(83, PIN_REMAP_DEFAULT);//cs2 - SD card - pin_set_remap(82, PIN_REMAP_DEFAULT);//CS1 - pin_set_remap(81, PIN_REMAP_DEFAULT);//cs0 - ls1c_spi_bus_register(LS1C_SPI_0, "spi0"); -#endif - -#ifdef RT_USING_SPI1 - pin_set_purpose(46, PIN_PURPOSE_OTHER); - pin_set_purpose(47, PIN_PURPOSE_OTHER); - pin_set_purpose(48, PIN_PURPOSE_OTHER); - pin_set_purpose(49, PIN_PURPOSE_OTHER);//CS0 - touch screen - pin_set_remap(46, PIN_REMAP_THIRD); - pin_set_remap(47, PIN_REMAP_THIRD); - pin_set_remap(48, PIN_REMAP_THIRD); - pin_set_remap(49, PIN_REMAP_THIRD);//CS0 - touch screen - ls1c_spi_bus_register(LS1C_SPI_1, "spi1"); - -#endif - - -#ifdef RT_USING_SPI0 - /* attach cs */ - { - static struct rt_spi_device spi_device0; - static struct rt_spi_device spi_device1; - static struct rt_spi_device spi_device2; - static struct rt_spi_device spi_device3; - static struct ls1c_spi_cs spi_cs0; - static struct ls1c_spi_cs spi_cs1; - static struct ls1c_spi_cs spi_cs2; - static struct ls1c_spi_cs spi_cs3; - /* spi02: CS2 SD Card*/ - spi_cs2.cs = LS1C_SPI_CS_2; - rt_spi_bus_attach_device(&spi_device2, "spi02", "spi0", (void *)&spi_cs2); - spi_cs1.cs = LS1C_SPI_CS_1; - rt_spi_bus_attach_device(&spi_device1, "spi01", "spi0", (void *)&spi_cs1); - spi_cs0.cs = LS1C_SPI_CS_0; - rt_spi_bus_attach_device(&spi_device0, "spi00", "spi0", (void *)&spi_cs0); - spi_cs3.cs = LS1C_SPI_CS_3; - rt_spi_bus_attach_device(&spi_device3, "spi03", "spi0", (void*)&spi_cs3); - msd_init("sd0", "spi02"); - } -#endif -#ifdef RT_USING_SPI1 - { - static struct rt_spi_device spi_device; - static struct ls1c_spi_cs spi_cs; - - /* spi10: CS0 Touch*/ - spi_cs.cs = LS1C_SPI_CS_0; - rt_spi_bus_attach_device(&spi_device, "spi10", "spi1", (void *)&spi_cs); - } -#endif -} - - -INIT_BOARD_EXPORT(ls1c_hw_spi_init); - -static int board_sd_init(void) -{ - #if defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT) - /* mount sd card fat partition 1 as root directory */ - if( dfs_mount("sd0", "/", "elm", 0, 0) == 0) - { - rt_kprintf("File System initialized!\n"); - } - else - { - rt_kprintf("File System initialzation failed!\n"); - } - #endif /* RT_USING_DFS && RT_USING_DFS_ELMFAT */ -} -INIT_APP_EXPORT(board_sd_init); - -#endif - diff --git a/bsp/ls1cdev/drivers/drv_spi.h b/bsp/ls1cdev/drivers/drv_spi.h deleted file mode 100644 index 8b1aa315be..0000000000 --- a/bsp/ls1cdev/drivers/drv_spi.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-02 勤为本 first version - */ - -#ifndef LS1C_DRV_SPI_H -#define LS1C_DRV_SPI_H - - -#include "../libraries/ls1c_spi.h" - - -struct ls1c_spi -{ - unsigned char SPIx; // LS1C_SPI_0 or LS1C_SPI_1 -}; - - -struct ls1c_spi_cs -{ - unsigned char cs; // LS1C_SPI_CS_0, LS1C_SPI_CS_1, LS1C_SPI_CS_2 or LS1C_SPI_CS_3 -}; - - - -/* - * 初始化并注册龙芯1c的spi总线 - * @SPI SPI总线,比如LS1C_SPI_0, LS1C_SPI_1 - * @spi_bus_name 总线名字 - * @ret - */ -rt_err_t ls1c_spi_bus_register(rt_uint8_t SPI, const char *spi_bus_name); - - -#endif - diff --git a/bsp/ls1cdev/drivers/drv_touch.c b/bsp/ls1cdev/drivers/drv_touch.c deleted file mode 100644 index 092260aaed..0000000000 --- a/bsp/ls1cdev/drivers/drv_touch.c +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-02-08 Zhangyihong the first version - * 2018-10-29 XY - * 2019-04-11 sundm75 modify for ls1c300 & RTGUI - */ - -#include "drv_touch.h" - -#define TOUCH_I2C_NAME "i2c1" - -#ifndef TOUCH_SAMPLE_HZ -#define TOUCH_SAMPLE_HZ (50) -#endif - -#ifndef TOUCH_I2C_NAME -#error "Please define touch i2c name!" -#endif - -#ifdef TINA_USING_TOUCH -#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) -#include -#include -#endif - -#if 0 -#define TPDEBUG rt_kprintf -#else -#define TPDEBUG(...) -#endif - -static rt_slist_t _driver_list; -static struct rt_i2c_bus_device *i2c_bus = RT_NULL; - -static void post_down_event(rt_uint16_t x, rt_uint16_t y, rt_uint32_t id) -{ -#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) - rt_err_t result; - struct rtgui_event_mouse emouse; - - emouse.parent.sender = RT_NULL; - emouse.wid = RT_NULL; - - emouse.parent.type = RTGUI_EVENT_MOUSE_BUTTON; - emouse.button = RTGUI_MOUSE_BUTTON_LEFT | RTGUI_MOUSE_BUTTON_DOWN; - emouse.x = x; - emouse.y = y; -#ifdef PKG_USING_GUIENGINE - emouse.ts = rt_tick_get(); - emouse.id = id; -#endif - -#ifdef PKG_USING_GUIENGINE - do - { - result = rtgui_server_post_event(&emouse.parent, sizeof(emouse)); - if (result != RT_EOK) - { - rt_thread_delay(RT_TICK_PER_SECOND / TOUCH_SAMPLE_HZ); - } - } - while (result != RT_EOK); -#else - rtgui_server_post_event(&emouse.parent, sizeof(emouse)); -#endif - - TPDEBUG("[TP] touch down [%d, %d]\n", emouse.x, emouse.y); -#endif -} - -static void post_motion_event(rt_uint16_t x, rt_uint16_t y, rt_uint32_t id) -{ -#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) - struct rtgui_event_mouse emouse; - - emouse.parent.sender = RT_NULL; - emouse.wid = RT_NULL; - - emouse.button = RTGUI_MOUSE_BUTTON_LEFT | RTGUI_MOUSE_BUTTON_DOWN; - emouse.parent.type = RTGUI_EVENT_MOUSE_MOTION; - emouse.x = x; - emouse.y = y; -#ifdef PKG_USING_GUIENGINE - emouse.ts = rt_tick_get(); - emouse.id = id; -#endif - rtgui_server_post_event(&emouse.parent, sizeof(emouse)); - TPDEBUG("[TP] touch motion [%d, %d]\n", emouse.x, emouse.y); -#endif -} - -static void post_up_event(rt_uint16_t x, rt_uint16_t y, rt_uint32_t id) -{ -#if (defined PKG_USING_GUIENGINE) || (defined RT_USING_RTGUI) - rt_err_t result; - struct rtgui_event_mouse emouse; - - emouse.parent.sender = RT_NULL; - emouse.wid = RT_NULL; - - emouse.parent.type = RTGUI_EVENT_MOUSE_BUTTON; - emouse.button = RTGUI_MOUSE_BUTTON_LEFT | RTGUI_MOUSE_BUTTON_UP; - emouse.x = x; - emouse.y = y; -#ifdef PKG_USING_GUIENGINE - emouse.ts = rt_tick_get(); - emouse.id = id; -#endif - -#ifdef PKG_USING_GUIENGINE - do - { - result = rtgui_server_post_event(&emouse.parent, sizeof(emouse)); - if (result != RT_EOK) - { - rt_thread_delay(RT_TICK_PER_SECOND / TOUCH_SAMPLE_HZ); - } - } - while (result != RT_EOK); -#else - rtgui_server_post_event(&emouse.parent, sizeof(emouse)); -#endif - - TPDEBUG("[TP] touch up [%d, %d]\n", emouse.x, emouse.y); -#endif -} - -static void touch_run(void* parameter) -{ - rt_tick_t emouse_id = 0; - struct touch_message msg; - rt_slist_t *driver_list = NULL; - struct touch_driver *current_driver = RT_NULL; - - i2c_bus = rt_i2c_bus_device_find(TOUCH_I2C_NAME); - RT_ASSERT(i2c_bus); - - if(rt_device_open(&i2c_bus->parent, RT_DEVICE_OFLAG_RDWR) != RT_EOK) - { - return; - } - - rt_slist_for_each(driver_list, &_driver_list) - { - current_driver = (struct touch_driver *)driver_list; - if(current_driver->probe(i2c_bus) == RT_TRUE) - { - break; - } - current_driver = RT_NULL; - } - - if(current_driver == RT_NULL) - { - rt_kprintf("[TP] No touch pad or driver.\n"); - rt_device_close((rt_device_t)i2c_bus); - - return; - } - - current_driver->ops->init(i2c_bus); - - while (1) - { - if (rt_sem_take(current_driver->isr_sem, RT_WAITING_FOREVER) != RT_EOK) - { - continue; - } - - if (current_driver->ops->read_point(&msg) != RT_EOK) - { - continue; - } - - switch (msg.event) - { - case TOUCH_EVENT_MOVE: - post_motion_event(msg.x, msg.y, emouse_id); - break; - - case TOUCH_EVENT_DOWN: - emouse_id = rt_tick_get(); - post_down_event(msg.x, msg.y, emouse_id); - break; - - case TOUCH_EVENT_UP: - post_up_event(msg.x, msg.y, emouse_id); - break; - - default: - break; - } - - rt_thread_delay(RT_TICK_PER_SECOND / TOUCH_SAMPLE_HZ); - } -} - -rt_err_t rt_touch_drivers_register(touch_driver_t drv) -{ - RT_ASSERT(drv != RT_NULL); - RT_ASSERT(drv->ops != RT_NULL); - RT_ASSERT(drv->probe != RT_NULL); - - rt_slist_append(&_driver_list, &drv->list); - - return RT_EOK; -} - -static int rt_touch_list_init(void) -{ - rt_slist_init(&_driver_list); - - return RT_EOK; -} -INIT_BOARD_EXPORT(rt_touch_list_init); - -static int rt_touch_init(void) -{ - rt_thread_t thread = RT_NULL; - - thread = rt_thread_create("touch", touch_run, RT_NULL, 2048, 28, 20); - if(thread) - { - return rt_thread_startup(thread); - } - - return RT_ERROR; -} -INIT_APP_EXPORT(rt_touch_init); - -int rt_touch_read(rt_uint16_t addr, void *cmd_buf, size_t cmd_len, void *data_buf, size_t data_len) -{ - struct rt_i2c_msg msgs[2]; - - msgs[0].addr = addr; - msgs[0].flags = RT_I2C_WR; - msgs[0].buf = cmd_buf; - msgs[0].len = cmd_len; - - msgs[1].addr = addr; - msgs[1].flags = RT_I2C_RD; - msgs[1].buf = data_buf; - msgs[1].len = data_len; - - if (rt_i2c_transfer(i2c_bus, msgs, 2) == 2) - return 0; - else - return -1; -} - -int rt_touch_write(rt_uint16_t addr, void *data_buf, size_t data_len) -{ - struct rt_i2c_msg msgs[1]; - - msgs[0].addr = addr; - msgs[0].flags = RT_I2C_WR; - msgs[0].buf = data_buf; - msgs[0].len = data_len; - - if (rt_i2c_transfer(i2c_bus, msgs, 1) == 1) - return 0; - else - return -1; -} -#endif diff --git a/bsp/ls1cdev/drivers/drv_touch.h b/bsp/ls1cdev/drivers/drv_touch.h deleted file mode 100644 index 1ae4c71549..0000000000 --- a/bsp/ls1cdev/drivers/drv_touch.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-02-08 Zhangyihong the first version - * 2018-10-29 XY - */ - -#ifndef __DRV_TOUCH_H__ -#define __DRV_TOUCH_H__ - -#include "rtthread.h" -#include "rtdevice.h" - -#define TOUCH_EVENT_UP (0x01) -#define TOUCH_EVENT_DOWN (0x02) -#define TOUCH_EVENT_MOVE (0x03) -#define TOUCH_EVENT_NONE (0x80) - -struct touch_message -{ - rt_uint16_t x; - rt_uint16_t y; - rt_uint8_t event; -}; -typedef struct touch_message *touch_message_t; - -struct touch_ops -{ - void (*init)(struct rt_i2c_bus_device *); - void (*deinit)(void); - rt_err_t (*read_point)(touch_message_t); -}; -typedef struct touch_ops *touch_ops_t; - -struct touch_driver -{ - rt_slist_t list; - rt_bool_t (*probe)(struct rt_i2c_bus_device *i2c_bus); - rt_sem_t isr_sem; - touch_ops_t ops; - void *user_data; -}; -typedef struct touch_driver *touch_driver_t; - -rt_err_t rt_touch_drivers_register(touch_driver_t drv); - -int rt_touch_read(rt_uint16_t addr, void *cmd_buf, size_t cmd_len, void *data_buf, size_t data_len); -int rt_touch_write(rt_uint16_t addr, void *data_buf, size_t data_len); - -#endif diff --git a/bsp/ls1cdev/drivers/drv_touch_gt9xx.c b/bsp/ls1cdev/drivers/drv_touch_gt9xx.c deleted file mode 100644 index 801ec762cb..0000000000 --- a/bsp/ls1cdev/drivers/drv_touch_gt9xx.c +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-02-08 Zhangyihong the first version - * 2018-04-03 XY gt9xx for 1024 * 600 - * 2018-04-14 liu2guang optimize int and rst to pin framework - * 2017-08-08 XY imxrt1052 - * 2018-10-29 XY - */ - -#include "drv_touch.h" -#include "string.h" - -#ifdef TINA_USING_TOUCH - -#define TP_INT_PIN 89 -#define TP_RST_PIN 87 - -#ifndef TP_INT_PIN -#error "Please config touch panel INT pin." -#endif -#ifndef TP_RST_PIN -#error "Please config touch panel RST pin." -#endif - -#ifndef IIC_RETRY_NUM -#define IIC_RETRY_NUM 2 -#endif - -#define GT9xx_TS_ADDR (0x5D) - -#define gt9xx_READ_XY_REG (0x814E) /* 坐标寄存器 */ -#define gt9xx_CLEARBUF_REG (0x814E) /* 清除坐标寄存器 */ -#define gt9xx_CONFIG_REG (0x8047) /* 配置参数寄存器 */ -#define gt9xx_COMMAND_REG (0x8040) /* 实时命令 */ -#define gt9xx_PRODUCT_ID_REG (0x8140) /* 产品ID */ -#define gt9xx_VENDOR_ID_REG (0x814A) /* 当前模组选项信息 */ -#define gt9xx_CONFIG_VERSION_REG (0x8047) /* 配置文件版本号 */ -#define gt9xx_CONFIG_CHECKSUM_REG (0x80FF) /* 配置文件校验码 */ -#define gt9xx_FIRMWARE_VERSION_REG (0x8144) /* 固件版本号 */ - -#if 0 -#define TPDEBUG rt_kprintf -#else -#define TPDEBUG(...) -#endif - -static struct touch_driver gt9xx_driver; - -void gt9xx_hw_reset(rt_uint8_t address) -{ - rt_tick_t delay = rt_tick_from_millisecond(30); - - rt_pin_mode(TP_RST_PIN, PIN_MODE_OUTPUT); - rt_pin_mode(TP_INT_PIN, PIN_MODE_OUTPUT); - - if (address == 0x5D) - { - rt_pin_write(TP_RST_PIN, PIN_LOW); - rt_pin_write(TP_INT_PIN, PIN_LOW); - rt_thread_delay(delay); - rt_pin_write(TP_RST_PIN, PIN_HIGH); - rt_pin_write(TP_INT_PIN, PIN_LOW); - rt_thread_delay(delay); - rt_pin_write(TP_INT_PIN, PIN_LOW); - rt_thread_delay(delay); - rt_pin_write(TP_INT_PIN, PIN_HIGH); - } - else - { - rt_pin_write(TP_RST_PIN, PIN_LOW); - rt_pin_write(TP_INT_PIN, PIN_HIGH); - rt_thread_delay(delay); - rt_pin_write(TP_RST_PIN, PIN_HIGH); - rt_pin_write(TP_INT_PIN, PIN_HIGH); - rt_thread_delay(delay); - rt_pin_write(TP_INT_PIN, PIN_LOW); - rt_thread_delay(delay); - rt_pin_write(TP_INT_PIN, PIN_HIGH); - } -} - -static void gt9xx_soft_reset(struct rt_i2c_bus_device *i2c_bus) -{ - rt_uint8_t buf[3]; - - buf[0] = (rt_uint8_t)((gt9xx_COMMAND_REG >> 8) & 0xFF); - buf[1] = (rt_uint8_t)(gt9xx_COMMAND_REG & 0xFF); - buf[2] = 0x02; - rt_touch_write(GT9xx_TS_ADDR, buf, 3); -} - -static rt_bool_t gt9xx_probe(struct rt_i2c_bus_device *i2c_bus) -{ - rt_uint8_t cmd[2]; - rt_uint8_t buffer[5] = {0}; - - gt9xx_hw_reset(GT9xx_TS_ADDR); - //gt9xx_soft_reset(i2c_bus); - rt_thread_delay(RT_TICK_PER_SECOND / 5); - - cmd[0] = (rt_uint8_t)((gt9xx_PRODUCT_ID_REG >> 8) & 0xFF); - cmd[1] = (rt_uint8_t)(gt9xx_PRODUCT_ID_REG & 0xFF); - if (rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, buffer, 4) != 0) - { - TPDEBUG("[TP] %s failed!\n", __func__); - return RT_FALSE; - } - - buffer[4] = '\0'; - - TPDEBUG("%#X %#X %#X %#X %#X\n", buffer[0], buffer[1], buffer[2], buffer[3], buffer[4]); - - if(!rt_strcmp((const char*)buffer, "911")) - { - rt_kprintf("[TP] Found chip gt911\n"); - return RT_TRUE; - } - else if(!rt_strcmp((const char*)buffer, "9147")) - { - rt_kprintf("[TP] Found chip gt9147\n"); - return RT_TRUE; - } - else if(!rt_strcmp((const char*)buffer, "9157")) - { - rt_kprintf("[TP] Found chip gt9157\n"); - return RT_TRUE; - } - else - { - rt_kprintf("[TP] Uknow chip gt9xx device: [%s]\n", buffer); - } - - return RT_FALSE; -} - -static void gt9xx_init(struct rt_i2c_bus_device *i2c_bus) -{ - rt_uint8_t buf = 0; - rt_uint8_t cmd[2]; - - gt9xx_driver.isr_sem = rt_sem_create("gt9xx", 0, RT_IPC_FLAG_FIFO); - RT_ASSERT(gt9xx_driver.isr_sem); - - cmd[0] = (rt_uint8_t)((gt9xx_CONFIG_VERSION_REG >> 8) & 0xFF); - cmd[1] = (rt_uint8_t)(gt9xx_CONFIG_VERSION_REG & 0xFF); - rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, &buf, 1); - rt_kprintf("[TP] GT9xx Config version: 0x%02X\n", buf); - - cmd[0] = (rt_uint8_t)((gt9xx_VENDOR_ID_REG >> 8) & 0xFF); - cmd[1] = (rt_uint8_t)(gt9xx_VENDOR_ID_REG & 0xFF); - rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, &buf, 1); - rt_kprintf("[TP] GT9xx Sensor id: 0x%02X\n", buf); - - rt_sem_release(gt9xx_driver.isr_sem); -} - -static void gt9xx_deinit(void) -{ - rt_sem_delete(gt9xx_driver.isr_sem); -} - -static rt_err_t gt9xx_read_point(touch_message_t msg) -{ - rt_uint8_t cmd[2]; - rt_uint8_t buf[8] = {0}; - static rt_uint8_t s_tp_down = 0; - - cmd[0] = (rt_uint8_t)((gt9xx_READ_XY_REG >> 8) & 0xFF); - cmd[1] = (rt_uint8_t)(gt9xx_READ_XY_REG & 0xFF); - rt_touch_read(GT9xx_TS_ADDR, &cmd, 2, buf, 8); - - if((buf[0] & 0x01) == 0) - { - if(s_tp_down) - { - s_tp_down = 0; - msg->event = TOUCH_EVENT_UP; - } - else - { - msg->event = TOUCH_EVENT_NONE; - } - } - else - { - msg->x = ((rt_uint16_t)buf[3] << 8) | buf[2]; - msg->y = ((rt_uint16_t)buf[5] << 8) | buf[4]; - - if(s_tp_down) - { - msg->event = TOUCH_EVENT_MOVE; - } - else - { - msg->event = TOUCH_EVENT_DOWN; - s_tp_down = 1; - } - } - - buf[0] = ((gt9xx_CLEARBUF_REG >> 8) & 0xFF); - buf[1] = (gt9xx_CLEARBUF_REG & 0xFF); - buf[2] = 0x00; - rt_touch_write(GT9xx_TS_ADDR, buf, 3); - - rt_sem_release(gt9xx_driver.isr_sem); - - return RT_EOK; -} - -struct touch_ops gt9xx_ops = -{ - .init = gt9xx_init, - .deinit = gt9xx_deinit, - .read_point = gt9xx_read_point, -}; - -static int gt9xx_driver_register(void) -{ - gt9xx_driver.probe = gt9xx_probe; - gt9xx_driver.ops = >9xx_ops; - gt9xx_driver.user_data = RT_NULL; - - rt_touch_drivers_register(>9xx_driver); - - return RT_EOK; -} -INIT_ENV_EXPORT(gt9xx_driver_register); - -#endif diff --git a/bsp/ls1cdev/drivers/drv_uart.c b/bsp/ls1cdev/drivers/drv_uart.c deleted file mode 100644 index 0578eea4fc..0000000000 --- a/bsp/ls1cdev/drivers/drv_uart.c +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-08 zhuangwei the first version - */ -#include -#include -#include -#include "drv_uart.h" -#include "ls1c_pin.h" -#include "ls1c_uart.h" - -/* STM32 uart driver */ -struct rt_uart_ls1c -{ - ls1c_uart_t UARTx; - rt_uint32_t IRQ; -}; - -static rt_err_t ls1c_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) -{ - struct rt_uart_ls1c *uart_dev = RT_NULL; - ls1c_uart_info_t uart_info = {0}; - - RT_ASSERT(serial != RT_NULL); - RT_ASSERT(cfg != RT_NULL); - - uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; - - // 初始化串口 - uart_info.UARTx = uart_dev->UARTx; - uart_info.baudrate = cfg->baud_rate; - uart_info.rx_enable = TRUE; - uart_init(&uart_info); - - return RT_EOK; - -} - -static rt_err_t ls1c_uart_control(struct rt_serial_device *serial, int cmd, void *arg) -{ - struct rt_uart_ls1c *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; - - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: /* disable rx irq */ - rt_hw_interrupt_mask(uart_dev->IRQ); - break; - - case RT_DEVICE_CTRL_SET_INT: /* enable rx irq */ - rt_hw_interrupt_umask(uart_dev->IRQ); - break; - - default: - break; - } - - return RT_EOK; - -} - -static int ls1c_uart_putc(struct rt_serial_device *serial, char c) -{ - struct rt_uart_ls1c *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - - uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; - uart_putc(uart_dev->UARTx, c); - - return 1; -} - -static int ls1c_uart_getc(struct rt_serial_device *serial) -{ - struct rt_uart_ls1c *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - - uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; - void *uart_base = uart_get_base(uart_dev->UARTx); - - if (LSR_RXRDY & reg_read_8(uart_base + LS1C_UART_LSR_OFFSET)) - { - return reg_read_8(uart_base + LS1C_UART_DAT_OFFSET); - } - - return -1; -} - -/* UART interrupt handler */ -static void uart_irq_handler(int vector, void *param) -{ - struct rt_serial_device *serial = (struct rt_serial_device *)param; - struct rt_uart_ls1c *uart_dev = RT_NULL; - - RT_ASSERT(serial != RT_NULL); - - uart_dev = (struct rt_uart_ls1c *)serial->parent.user_data; - void *uart_base = uart_get_base(uart_dev->UARTx); - unsigned char iir = reg_read_8(uart_base + LS1C_UART_IIR_OFFSET); - - // 判断是否为接收超时或接收到有效数据 - if ((IIR_RXTOUT & iir) || (IIR_RXRDY & iir)) - { - rt_interrupt_enter(); - rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); - rt_interrupt_leave(); - } - -} - -static const struct rt_uart_ops ls1c_uart_ops = -{ - ls1c_uart_configure, - ls1c_uart_control, - ls1c_uart_putc, - ls1c_uart_getc, -}; - -#if defined(RT_USING_UART2) -struct rt_uart_ls1c uart2 = -{ - LS1C_UART2, - LS1C_UART2_IRQ, -}; -struct rt_serial_device serial2; -#endif /* RT_USING_UART2 */ - -#if defined(RT_USING_UART1) -struct rt_uart_ls1c uart1 = -{ - LS1C_UART1, - LS1C_UART1_IRQ, -}; -struct rt_serial_device serial1; -#endif /* RT_USING_UART1 */ - -#if defined(RT_USING_UART3) -struct rt_uart_ls1c uart3 = -{ - LS1C_UART3, - LS1C_UART3_IRQ, -}; -struct rt_serial_device serial3; -#endif /* RT_USING_UART3 */ - -void rt_hw_uart_init(void) -{ - struct rt_uart_ls1c *uart; - struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; - -#ifdef RT_USING_UART2 - uart = &uart2; - - serial2.ops = &ls1c_uart_ops; - serial2.config = config; - - pin_set_purpose(36, PIN_PURPOSE_OTHER); - pin_set_purpose(37, PIN_PURPOSE_OTHER); - pin_set_remap(36, PIN_REMAP_SECOND); - pin_set_remap(37, PIN_REMAP_SECOND); - - rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial2, "UART2"); - - /* register UART2 device */ - rt_hw_serial_register(&serial2, - "uart2", - //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - uart); -#endif /* RT_USING_UART2 */ - -#ifdef RT_USING_UART1 - uart = &uart1; - - serial1.ops = &ls1c_uart_ops; - serial1.config = config; - - pin_set_purpose(2, PIN_PURPOSE_OTHER); - pin_set_purpose(3, PIN_PURPOSE_OTHER); - pin_set_remap(2, PIN_REMAP_FOURTH); - pin_set_remap(3, PIN_REMAP_FOURTH); - - rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial1, "UART1"); - - /* register UART1 device */ - rt_hw_serial_register(&serial1, - "uart1", - //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - uart); -#endif /* RT_USING_UART1 */ - -#ifdef RT_USING_UART3 - uart = &uart3; - - serial3.ops = &ls1c_uart_ops; - serial3.config = config; - - pin_set_purpose(0, PIN_PURPOSE_OTHER); - pin_set_purpose(1, PIN_PURPOSE_OTHER); - pin_set_remap(0, PIN_REMAP_FOURTH); - pin_set_remap(1, PIN_REMAP_FOURTH); - - rt_hw_interrupt_install(uart->IRQ, uart_irq_handler, &serial3, "UART3"); - - /* register UART1 device */ - rt_hw_serial_register(&serial3, - "uart3", - //RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_DMA_RX, - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - uart); -#endif /* RT_USING_UART3 */ - -} - diff --git a/bsp/ls1cdev/drivers/drv_uart.h b/bsp/ls1cdev/drivers/drv_uart.h deleted file mode 100644 index dcc90ea3f9..0000000000 --- a/bsp/ls1cdev/drivers/drv_uart.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-08 zhuangwei the first version - */ - -#ifndef __DRV_UART_H__ -#define __DRV_UART_H__ - -#include "ls1c.h" -#include - -#define DEV_CLK 252000000 // 252MHz -#define UART_BAUDRATE 115200 - -#define UART0_BASE 0xBFE40000 -//#define UART0_1_BASE 0xBFE41000 -#define UART1_BASE 0xBFE44000 -#define UART2_BASE 0xBFE48000 -#define UART3_BASE 0xBFE4C000 -#define UART4_BASE 0xBFE4C400 -#define UART5_BASE 0xBFE4C500 -#define UART6_BASE 0xBFE4C600 -#define UART7_BASE 0xBFE4C700 -#define UART8_BASE 0xBFE4C800 -#define UART9_BASE 0xBFE4C900 -#define UART10_BASE 0xBFE4Ca00 -#define UART11_BASE 0xBFE4Cb00 - -/* UART registers */ -#define UART_DAT(base) HWREG8(base + 0x00) -#define UART_IER(base) HWREG8(base + 0x01) -#define UART_IIR(base) HWREG8(base + 0x02) -#define UART_FCR(base) HWREG8(base + 0x02) -#define UART_LCR(base) HWREG8(base + 0x03) -#define UART_MCR(base) HWREG8(base + 0x04) -#define UART_LSR(base) HWREG8(base + 0x05) -#define UART_MSR(base) HWREG8(base + 0x06) - -#define UART_LSB(base) HWREG8(base + 0x00) -#define UART_MSB(base) HWREG8(base + 0x01) - -/* UART0 registers */ -#define UART0_DAT HWREG8(UART0_BASE + 0x00) -#define UART0_IER HWREG8(UART0_BASE + 0x01) -#define UART0_IIR HWREG8(UART0_BASE + 0x02) -#define UART0_FCR HWREG8(UART0_BASE + 0x02) -#define UART0_LCR HWREG8(UART0_BASE + 0x03) -#define UART0_MCR HWREG8(UART0_BASE + 0x04) -#define UART0_LSR HWREG8(UART0_BASE + 0x05) -#define UART0_MSR HWREG8(UART0_BASE + 0x06) - -#define UART0_LSB HWREG8(UART0_BASE + 0x00) -#define UART0_MSB HWREG8(UART0_BASE + 0x01) - -/* UART1 registers */ -#define UART1_DAT HWREG8(UART1_BASE + 0x00) -#define UART1_IER HWREG8(UART1_BASE + 0x01) -#define UART1_IIR HWREG8(UART1_BASE + 0x02) -#define UART1_FCR HWREG8(UART1_BASE + 0x02) -#define UART1_LCR HWREG8(UART1_BASE + 0x03) -#define UART1_MCR HWREG8(UART1_BASE + 0x04) -#define UART1_LSR HWREG8(UART1_BASE + 0x05) -#define UART1_MSR HWREG8(UART1_BASE + 0x06) - -#define UART1_LSB HWREG8(UART1_BASE + 0x00) -#define UART1_MSB HWREG8(UART1_BASE + 0x01) - -/* UART interrupt enable register value */ -#define UARTIER_IME (1 << 3) -#define UARTIER_ILE (1 << 2) -#define UARTIER_ITXE (1 << 1) -#define UARTIER_IRXE (1 << 0) - -/* UART line control register value */ -#define UARTLCR_DLAB (1 << 7) -#define UARTLCR_BCB (1 << 6) -#define UARTLCR_SPB (1 << 5) -#define UARTLCR_EPS (1 << 4) -#define UARTLCR_PE (1 << 3) -#define UARTLCR_SB (1 << 2) - -/* UART line status register value */ -#define UARTLSR_ERROR (1 << 7) -#define UARTLSR_TE (1 << 6) -#define UARTLSR_TFE (1 << 5) -#define UARTLSR_BI (1 << 4) -#define UARTLSR_FE (1 << 3) -#define UARTLSR_PE (1 << 2) -#define UARTLSR_OE (1 << 1) -#define UARTLSR_DR (1 << 0) - -void rt_hw_uart_init(void); - - -#endif diff --git a/bsp/ls1cdev/drivers/drv_wdt.c b/bsp/ls1cdev/drivers/drv_wdt.c deleted file mode 100644 index 4a42220000..0000000000 --- a/bsp/ls1cdev/drivers/drv_wdt.c +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2019-05-06 sundm75 first version - */ - -#include -#include - -#ifdef RT_USING_WDT - -#include -#include "drv_wdt.h" - -#include "ls1c_wdog.h" -#include "ls1c_clock.h" - -typedef enum -{ - RESTENABLE = 0x0, - INTERRUPTENABLE = 0x1, -}wdt_enable_mode; - -static rt_uint32_t heartbeat = 0; - -static rt_err_t wdt_stop(void) -{ - rt_err_t ret = RT_EOK; - - Wdog_Reset(); - ret = (rt_err_t) Wdog_Disable(); - if (ret != RT_EOK) - { - rt_kprintf("Wdog_Disable error!\n"); - return RT_ERROR; - } - return ret; -} - -static rt_err_t wdt_start(int mode) -{ - rt_err_t ret = RT_EOK; - wdt_enable_mode wdt_mode = RESTENABLE; - - ret = (rt_err_t) Wdog_Disable(); - if (ret != RT_EOK) - { - rt_kprintf("Wdog_Disable error!\n"); - return RT_ERROR; - } - - if((mode == RESTENABLE) || (mode == INTERRUPTENABLE)) - { - wdt_mode = mode; - } - Wdog_Enable(); - Wdog_Set(); - if (ret != RT_EOK) - { - rt_kprintf("Wdog_Enable error!\n"); - return RT_ERROR; - } - - return ret; -} - -static rt_err_t wdt_keepalive(void) -{ - rt_err_t ret = RT_EOK; - rt_uint32_t index = 0; - - index = heartbeat * clk_get_apb_rate(); - ret = (rt_err_t) Wdog_LoadValue(index); - Wdog_Set(); - if (ret != 0) - { - rt_kprintf("LS1C_Wdog_ClrTimeout error!\n"); - return RT_ERROR; - } - - return ret; -} - -static rt_uint32_t wdt_get_timeleft(void) -{ - rt_uint32_t cnt = 0; - rt_uint32_t second = 0; - - cnt = (rt_uint32_t) Wdog_GetValue(); - second = cnt/clk_get_apb_rate(); - - return second; -} - -static rt_err_t wdt_set_timeout(rt_uint32_t second) -{ - rt_err_t ret = RT_EOK; - rt_uint32_t index = 0; - - index = second * clk_get_apb_rate(); - ret = (rt_err_t) Wdog_LoadValue(index); - if (ret != RT_EOK) - { - rt_kprintf("Wdog_LoadValue error!\n"); - return RT_ERROR; - } - return ret; -} - -static rt_err_t watchdog_init(rt_watchdog_t *wdt) -{ - struct wdt_driver *wdt_drv = wdt->parent.user_data; - if (wdt_drv->in_use) return -RT_EBUSY; - - Wdog_Init(); - - return RT_EOK; -} - -static rt_err_t watchdog_ctrl(rt_watchdog_t *wdt, int cmd, void *arg) -{ - rt_uint32_t val; - int mode; - - switch (cmd) - { - case RT_DEVICE_CTRL_WDT_START: - mode = *((int *)(arg)); - wdt_start(mode); - break; - - case RT_DEVICE_CTRL_WDT_STOP: - Wdog_Disable(); - break; - - case RT_DEVICE_CTRL_WDT_KEEPALIVE: - wdt_keepalive(); - break; - - case RT_DEVICE_CTRL_WDT_SET_TIMEOUT: - heartbeat = *((rt_uint32_t *)(arg)); - wdt_set_timeout(heartbeat); - break; - - case RT_DEVICE_CTRL_WDT_GET_TIMEOUT: - arg = &heartbeat; - break; - - case RT_DEVICE_CTRL_WDT_GET_TIMELEFT: - val = (rt_uint32_t) wdt_get_timeleft(); - arg = &val; - break; - - default: - return -RT_EIO; - } - return RT_EOK; -} - -struct rt_watchdog_ops watchdog_ops = -{ - .init = &watchdog_init, - .control = &watchdog_ctrl, -}; - -int wdt_exit(void *priv_data) -{ - return 0; -} - -int rt_hw_wdt_init(void) -{ - rt_watchdog_t *wdt_dev; - struct wdt_driver *wdt_drv; - - wdt_drv = (struct wdt_driver *)rt_malloc(sizeof(struct wdt_driver)); - rt_memset(wdt_drv, 0, sizeof(struct wdt_driver)); - - wdt_dev = (rt_watchdog_t *)rt_malloc(sizeof(rt_watchdog_t)); - - if (wdt_dev == RT_NULL) - { - rt_kprintf("ERROR: %s rt_watchdog_t malloc failed\n", __func__); - } - - wdt_dev->ops = &watchdog_ops; - - rt_hw_watchdog_register(wdt_dev, "wdt", RT_DEVICE_OFLAG_RDWR, wdt_drv); - - return 0; -} - -INIT_BOARD_EXPORT(rt_hw_wdt_init); - -#endif diff --git a/bsp/ls1cdev/drivers/drv_wdt.h b/bsp/ls1cdev/drivers/drv_wdt.h deleted file mode 100644 index a017edb19a..0000000000 --- a/bsp/ls1cdev/drivers/drv_wdt.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2019-05-06 sundm75 first version - */ - -#ifndef WDT_H_ -#define WDT_H_ - -struct wdt_driver -{ - unsigned long in_use; - - void* priv; -}; - -int rt_hw_wdt_init(void); - -#endif /* WDT_H_ */ diff --git a/bsp/ls1cdev/drivers/hw_i2c.c b/bsp/ls1cdev/drivers/hw_i2c.c deleted file mode 100644 index 1f63df1ab9..0000000000 --- a/bsp/ls1cdev/drivers/hw_i2c.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-01-04 Sundm75 the first version - */ - -#include -#include -#include "ls1c_i2c.h" -#include "../libraries/ls1c_pin.h" - -#ifdef RT_USING_I2C - -struct ls1c_i2c_bus -{ - struct rt_i2c_bus_device parent; - rt_uint32_t u32Module; -}; - -rt_size_t rt_i2c_master_xfer(struct rt_i2c_bus_device *bus, - struct rt_i2c_msg *msgs, - rt_uint32_t num) -{ - struct ls1c_i2c_bus * i2c_bus = (struct ls1c_i2c_bus *)bus; - ls1c_i2c_info_t i2c_info; - struct rt_i2c_msg *msg; - int i; - rt_int32_t ret = RT_EOK; - i2c_info.clock = 50000; // 50kb/s - i2c_info.I2Cx = i2c_bus->u32Module; - i2c_init(&i2c_info); - - for (i = 0; i < num; i++) - { - msg = &msgs[i]; - if (msg->flags == RT_I2C_RD) - { - i2c_send_start_and_addr(&i2c_info, msg->addr, LS1C_I2C_DIRECTION_READ); - i2c_receive_ack(&i2c_info); - i2c_receive_data(&i2c_info, (rt_uint8_t *)msg->buf, msg->len); - i2c_send_stop(&i2c_info); - } - else if(msg->flags == RT_I2C_WR) - { - i2c_send_start_and_addr(&i2c_info, msg->addr, LS1C_I2C_DIRECTION_WRITE); - i2c_receive_ack(&i2c_info); - i2c_send_data(&i2c_info, (rt_uint8_t *)msg->buf, msg->len); - i2c_send_stop(&i2c_info); - } - ret++; - } - return ret; -} - -rt_err_t rt_i2c_bus_control(struct rt_i2c_bus_device *bus, - rt_uint32_t cmd, - rt_uint32_t arg) -{ - struct ls1c_i2c_bus * i2c_bus = (struct ls1c_i2c_bus *)bus; - - RT_ASSERT(bus != RT_NULL); - i2c_bus = (struct ls1c_i2c_bus *)bus->parent.user_data; - - RT_ASSERT(i2c_bus != RT_NULL); - - switch (cmd) - { - case RT_DEVICE_CTRL_CONFIG : - break; - } - - return RT_EOK; -} - -static const struct rt_i2c_bus_device_ops ls1c_i2c_ops = -{ - rt_i2c_master_xfer, - RT_NULL, - rt_i2c_bus_control -}; - - -#ifdef RT_USING_I2C0 -static struct ls1c_i2c_bus ls1c_i2c_bus_0 = -{ - {1}, - LS1C_I2C_0, -}; -#endif - -#ifdef RT_USING_I2C1 -static struct ls1c_i2c_bus ls1c_i2c_bus_1 = -{ - {1}, - LS1C_I2C_1, -}; -#endif - -#ifdef RT_USING_I2C2 -static struct ls1c_i2c_bus ls1c_i2c_bus_2 = -{ - {1}, - LS1C_I2C_2, -}; -#endif - -int ls1c_hw_i2c_init(void) -{ - struct ls1c_i2c_bus* ls1c_i2c; - -#ifdef RT_USING_I2C0 -/* - pin_set_purpose(2, PIN_PURPOSE_OTHER); - pin_set_purpose(3, PIN_PURPOSE_OTHER); - pin_set_remap(2, PIN_REMAP_SECOND); - pin_set_remap(3, PIN_REMAP_SECOND); - */ -#endif -#ifdef RT_USING_I2C1 - pin_set_purpose(2, PIN_PURPOSE_OTHER); - pin_set_purpose(3, PIN_PURPOSE_OTHER); - pin_set_remap(2, PIN_REMAP_SECOND); - pin_set_remap(3, PIN_REMAP_SECOND); -#endif -#ifdef RT_USING_I2C2 - pin_set_purpose(51, PIN_PURPOSE_OTHER); - pin_set_purpose(50, PIN_PURPOSE_OTHER); - pin_set_remap(51, PIN_REMAP_FOURTH); - pin_set_remap(50, PIN_REMAP_FOURTH); -#endif - - -#ifdef RT_USING_I2C0 - ls1c_i2c = &ls1c_i2c_bus_0; - ls1c_i2c->parent.ops = &ls1c_i2c_ops; - rt_i2c_bus_device_register(&ls1c_i2c->parent, "i2c0"); - rt_kprintf("i2c0_init!\n"); -#endif -#ifdef RT_USING_I2C1 - ls1c_i2c = &ls1c_i2c_bus_1; - ls1c_i2c->parent.ops = &ls1c_i2c_ops; - rt_i2c_bus_device_register(&ls1c_i2c->parent, "i2c1"); - rt_kprintf("i2c1_init!\n"); -#endif - -#ifdef RT_USING_I2C2 - ls1c_i2c = &ls1c_i2c_bus_2; - ls1c_i2c->parent.ops = &ls1c_i2c_ops; - rt_i2c_bus_device_register(&ls1c_i2c->parent, "i2c2"); - rt_kprintf("i2c2_init!\n"); -#endif - - return RT_EOK; -} - -INIT_BOARD_EXPORT(ls1c_hw_i2c_init); - -#endif diff --git a/bsp/ls1cdev/drivers/hw_i2c.h b/bsp/ls1cdev/drivers/hw_i2c.h deleted file mode 100644 index cc3e25506f..0000000000 --- a/bsp/ls1cdev/drivers/hw_i2c.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-01-04 Sundm75 the first version - */ - -#ifndef LS1C_I2C_H -#define LS1C_I2C_H - -#include - -int rt_i2c_init(void); - -#endif diff --git a/bsp/ls1cdev/drivers/net/SConscript b/bsp/ls1cdev/drivers/net/SConscript deleted file mode 100644 index 7e5532099e..0000000000 --- a/bsp/ls1cdev/drivers/net/SConscript +++ /dev/null @@ -1,17 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -CPPPATH = [cwd] - -if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'mii.c') - SrcRemove(src, 'synopGMAC.c') - SrcRemove(src, 'synopGMAC_Dev.c') - SrcRemove(src, 'synopGMAC_plat.c') - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - - -Return('group') diff --git a/bsp/ls1cdev/drivers/net/mii.c b/bsp/ls1cdev/drivers/net/mii.c deleted file mode 100644 index 43ade097cf..0000000000 --- a/bsp/ls1cdev/drivers/net/mii.c +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#include "mii.h" - - -static inline unsigned int mii_nway_result (unsigned int negotiated) -{ - unsigned int ret; - - if (negotiated & LPA_100FULL) - ret = LPA_100FULL; - else if (negotiated & LPA_100BASE4) - ret = LPA_100BASE4; - else if (negotiated & LPA_100HALF) - ret = LPA_100HALF; - else if (negotiated & LPA_10FULL) - ret = LPA_10FULL; - else - ret = LPA_10HALF; - - return ret; -} - -static int mii_check_gmii_support(struct mii_if_info *mii) -{ - int reg; - - reg = mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); - if (reg & BMSR_ESTATEN) { - reg = mii->mdio_read(mii->dev, mii->phy_id, MII_ESTATUS); - if (reg & (ESTATUS_1000_TFULL | ESTATUS_1000_THALF)) - return 1; - } - - return 0; -} - -static int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) -{ - struct synopGMACNetworkAdapter * dev = mii->dev; - u32 advert, bmcr, lpa, nego; - u32 advert2 = 0, bmcr2 = 0, lpa2 = 0; - - ecmd->supported = - (SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | - SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full | - SUPPORTED_Autoneg | SUPPORTED_TP | SUPPORTED_MII); - if (mii->supports_gmii) - ecmd->supported |= SUPPORTED_1000baseT_Half | - SUPPORTED_1000baseT_Full; - - /* only supports twisted-pair */ - ecmd->port = PORT_MII; - - /* only supports internal transceiver */ - ecmd->transceiver = XCVR_INTERNAL; - - /* this isn't fully supported at higher layers */ - ecmd->phy_address = mii->phy_id; - - ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; - advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); - if (mii->supports_gmii) - advert2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); - - if (advert & ADVERTISE_10HALF) - ecmd->advertising |= ADVERTISED_10baseT_Half; - if (advert & ADVERTISE_10FULL) - ecmd->advertising |= ADVERTISED_10baseT_Full; - if (advert & ADVERTISE_100HALF) - ecmd->advertising |= ADVERTISED_100baseT_Half; - if (advert & ADVERTISE_100FULL) - ecmd->advertising |= ADVERTISED_100baseT_Full; - if (advert2 & ADVERTISE_1000HALF) - ecmd->advertising |= ADVERTISED_1000baseT_Half; - if (advert2 & ADVERTISE_1000FULL) - ecmd->advertising |= ADVERTISED_1000baseT_Full; - - bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); - lpa = mii->mdio_read(dev, mii->phy_id, MII_LPA); - if (mii->supports_gmii) { - bmcr2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); - lpa2 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); - } - if (bmcr & BMCR_ANENABLE) { - ecmd->advertising |= ADVERTISED_Autoneg; - ecmd->autoneg = AUTONEG_ENABLE; - - nego = mii_nway_result(advert & lpa); - if ((bmcr2 & (ADVERTISE_1000HALF | ADVERTISE_1000FULL)) & - (lpa2 >> 2)) - ecmd->speed = SPEED_1000; - else if (nego == LPA_100FULL || nego == LPA_100HALF) - ecmd->speed = SPEED_100; - else - ecmd->speed = SPEED_10; - if ((lpa2 & LPA_1000FULL) || nego == LPA_100FULL || - nego == LPA_10FULL) { - ecmd->duplex = DUPLEX_FULL; - mii->full_duplex = 1; - } else { - ecmd->duplex = DUPLEX_HALF; - mii->full_duplex = 0; - } - } else { - ecmd->autoneg = AUTONEG_DISABLE; - - ecmd->speed = ((bmcr & BMCR_SPEED1000 && - (bmcr & BMCR_SPEED100) == 0) ? SPEED_1000 : - (bmcr & BMCR_SPEED100) ? SPEED_100 : SPEED_10); - ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; - } - - /* ignore maxtxpkt, maxrxpkt for now */ - - return 0; -} - -static int mii_link_ok (struct mii_if_info *mii) -{ - /* first, a dummy read, needed to latch some MII phys */ - mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); - if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) - return 1; - return 0; -} - diff --git a/bsp/ls1cdev/drivers/net/mii.h b/bsp/ls1cdev/drivers/net/mii.h deleted file mode 100644 index 24563834ec..0000000000 --- a/bsp/ls1cdev/drivers/net/mii.h +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#ifndef __MII_H__ -#define __MII_H__ -/* Generic MII registers. */ - -#include "synopGMAC_types.h" - -#define MII_BMCR 0x00 /* Basic mode control register */ -#define MII_BMSR 0x01 /* Basic mode status register */ -#define MII_PHYSID1 0x02 /* PHYS ID 1 */ -#define MII_PHYSID2 0x03 /* PHYS ID 2 */ -#define MII_ADVERTISE 0x04 /* Advertisement control reg */ -#define MII_LPA 0x05 /* Link partner ability reg */ -#define MII_EXPANSION 0x06 /* Expansion register */ -#define MII_CTRL1000 0x09 /* 1000BASE-T control */ -#define MII_STAT1000 0x0a /* 1000BASE-T status */ -#define MII_ESTATUS 0x0f /* Extended Status */ -#define MII_DCOUNTER 0x12 /* Disconnect counter */ -#define MII_FCSCOUNTER 0x13 /* False carrier counter */ -#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ -#define MII_RERRCOUNTER 0x15 /* Receive error counter */ -#define MII_SREVISION 0x16 /* Silicon revision */ -#define MII_RESV1 0x17 /* Reserved... */ -#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ -#define MII_PHYADDR 0x19 /* PHY address */ -#define MII_RESV2 0x1a /* Reserved... */ -#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ -#define MII_NCONFIG 0x1c /* Network interface config */ - -/* Basic mode control register. */ -#define BMCR_RESV 0x003f /* Unused... */ -#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ -#define BMCR_CTST 0x0080 /* Collision test */ -#define BMCR_FULLDPLX 0x0100 /* Full duplex */ -#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ -#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ -#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ -#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ -#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ -#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ -#define BMCR_RESET 0x8000 /* Reset the DP83840 */ - -/* Basic mode status register. */ -#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ -#define BMSR_JCD 0x0002 /* Jabber detected */ -#define BMSR_LSTATUS 0x0004 /* Link status */ -#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ -#define BMSR_RFAULT 0x0010 /* Remote fault detected */ -#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ -#define BMSR_RESV 0x00c0 /* Unused... */ -#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ -#define BMSR_100FULL2 0x0200 /* Can do 100BASE-T2 HDX */ -#define BMSR_100HALF2 0x0400 /* Can do 100BASE-T2 FDX */ -#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ -#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ -#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ -#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ -#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ - -/* Advertisement control register. */ -#define ADVERTISE_SLCT 0x001f /* Selector bits */ -#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ -#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ -#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ -#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ -#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ -#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ -#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ -#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ -#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ -#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ -#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ -#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ -#define ADVERTISE_RESV 0x1000 /* Unused... */ -#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ -#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ -#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ - -#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ - ADVERTISE_CSMA) -#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ - ADVERTISE_100HALF | ADVERTISE_100FULL) - -/* Indicates what features are advertised by the interface. */ -#define ADVERTISED_10baseT_Half (1 << 0) -#define ADVERTISED_10baseT_Full (1 << 1) -#define ADVERTISED_100baseT_Half (1 << 2) -#define ADVERTISED_100baseT_Full (1 << 3) -#define ADVERTISED_1000baseT_Half (1 << 4) -#define ADVERTISED_1000baseT_Full (1 << 5) -#define ADVERTISED_Autoneg (1 << 6) -#define ADVERTISED_TP (1 << 7) -#define ADVERTISED_AUI (1 << 8) -#define ADVERTISED_MII (1 << 9) -#define ADVERTISED_FIBRE (1 << 10) -#define ADVERTISED_BNC (1 << 11) -#define ADVERTISED_10000baseT_Full (1 << 12) -#define ADVERTISED_Pause (1 << 13) -#define ADVERTISED_Asym_Pause (1 << 14) - -/* Link partner ability register. */ -#define LPA_SLCT 0x001f /* Same as advertise selector */ -#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ -#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ -#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ -#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ -#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ -#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ -#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ -#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ -#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ -#define LPA_PAUSE_CAP 0x0400 /* Can pause */ -#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ -#define LPA_RESV 0x1000 /* Unused... */ -#define LPA_RFAULT 0x2000 /* Link partner faulted */ -#define LPA_LPACK 0x4000 /* Link partner acked us */ -#define LPA_NPAGE 0x8000 /* Next page bit */ - -#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) -#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) - -/* Expansion register for auto-negotiation. */ -#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ -#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ -#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ -#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ -#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ -#define EXPANSION_RESV 0xffe0 /* Unused... */ - -#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ -#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ - -/* N-way test register. */ -#define NWAYTEST_RESV1 0x00ff /* Unused... */ -#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ -#define NWAYTEST_RESV2 0xfe00 /* Unused... */ - -/* 1000BASE-T Control register */ -#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ -#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ - -/* 1000BASE-T Status register */ -#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ -#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ -#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ - -#define SUPPORTED_10baseT_Half (1 << 0) -#define SUPPORTED_10baseT_Full (1 << 1) -#define SUPPORTED_100baseT_Half (1 << 2) -#define SUPPORTED_100baseT_Full (1 << 3) -#define SUPPORTED_1000baseT_Half (1 << 4) -#define SUPPORTED_1000baseT_Full (1 << 5) -#define SUPPORTED_Autoneg (1 << 6) -#define SUPPORTED_TP (1 << 7) -#define SUPPORTED_AUI (1 << 8) -#define SUPPORTED_MII (1 << 9) -#define SUPPORTED_FIBRE (1 << 10) -#define SUPPORTED_BNC (1 << 11) -#define SUPPORTED_10000baseT_Full (1 << 12) -#define SUPPORTED_Pause (1 << 13) -#define SUPPORTED_Asym_Pause (1 << 14) - - -/* Which connector port. */ -#define PORT_TP 0x00 -#define PORT_AUI 0x01 -#define PORT_MII 0x02 -#define PORT_FIBRE 0x03 -#define PORT_BNC 0x04 - -/* Which transceiver to use. */ -#define XCVR_INTERNAL 0x00 -#define XCVR_EXTERNAL 0x01 -#define XCVR_DUMMY1 0x02 -#define XCVR_DUMMY2 0x03 -#define XCVR_DUMMY3 0x04 - -#define AUTONEG_DISABLE 0x00 -#define AUTONEG_ENABLE 0x01 - - -#define SPEED_10 10 -#define SPEED_100 100 -#define SPEED_1000 1000 -#define SPEED_2500 2500 -#define SPEED_10000 10000 - -#define DUPLEX_HALF 0x00 -#define DUPLEX_FULL 0x01 - -struct ethtool_cmd { - u32 cmd; - u32 supported; /* Features this interface supports */ - u32 advertising; /* Features this interface advertises */ - u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */ - u8 duplex; /* Duplex, half or full */ - u8 port; /* Which connector port */ - u8 phy_address; - u8 transceiver; /* Which transceiver to use */ - u8 autoneg; /* Enable or disable autonegotiation */ - u32 maxtxpkt; /* Tx pkts before generating tx int */ - u32 maxrxpkt; /* Rx pkts before generating rx int */ - u32 reserved[4]; -}; - -struct mii_if_info { - int phy_id; - int advertising; - int phy_id_mask; - int reg_num_mask; - - unsigned int full_duplex : 1; /* is full duplex? */ - unsigned int force_media : 1; /* is autoneg. disabled? */ - unsigned int supports_gmii : 1; /* are GMII registers supported? */ - - struct synopGMACNetworkAdapter *dev; - int (*mdio_read) (struct synopGMACNetworkAdapter *dev, int phy_id, int location); - void (*mdio_write) (struct synopGMACNetworkAdapter *dev, int phy_id, int location, int val); -}; - -#endif diff --git a/bsp/ls1cdev/drivers/net/synopGMAC.c b/bsp/ls1cdev/drivers/net/synopGMAC.c deleted file mode 100644 index da8c3c89fb..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC.c +++ /dev/null @@ -1,964 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#include -#include -//#include - -#include "synopGMAC.h" -#include "mii.c" -#include "synopGMAC_debug.h" -#include -#include "ls1c_pin.h" - -#define RMII - -#define Gmac_base 0xbfe10000 -#define Buffer_Size 2048 -#define MAX_ADDR_LEN 6 -#define NAMESIZE 16 - -#define LS1B_GMAC0_IRQ 34 -#define BUS_SIZE_ALIGN(x) ((x+15)&~15) - -#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} - -u32 regbase = 0xbfe10000; -static u32 GMAC_Power_down; -extern void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) ; -extern s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) ; -extern int init_phy(synopGMACdevice *gmacdev); -dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, u32 size); - -void eth_rx_irq(int irqno, void *param); -static char Rx_Buffer[Buffer_Size]; -static char Tx_Buffer[Buffer_Size]; - -struct rt_eth_dev -{ - struct eth_device parent; - rt_uint8_t dev_addr[MAX_ADDR_LEN]; - char *name; - int iobase; - int state; - int index; - struct rt_timer link_timer; - struct rt_timer rx_poll_timer; - void *priv; -}; -static struct rt_eth_dev eth_dev; -static struct rt_semaphore sem_ack, sem_lock; - -/** - * This sets up the transmit Descriptor queue in ring or chain mode. - * This function is tightly coupled to the platform and operating system - * Device is interested only after the descriptors are setup. Therefore this function - * is not included in the device driver API. This function should be treated as an - * example code to design the descriptor structures for ring mode or chain mode. - * This function depends on the pcidev structure for allocation consistent dma-able memory in case - * of linux. - * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory - * - Allocates the memory for the descriptors. - * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). - * - Initialize the Busy and Next descriptors to first descriptor address. - * - Initialize the last descriptor with the endof ring in case of ring mode. - * - Initialize the descriptors in chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] pointer to pci_device structure. - * @param[in] number of descriptor expected in tx descriptor queue. - * @param[in] whether descriptors to be created in RING mode or CHAIN mode. - * \return 0 upon success. Error code upon failure. - * \note This function fails if allocation fails for required number of descriptors in Ring mode, - * but in chain mode - * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from - * this function - * user should for gmacdev->TxDescCount to see how many descriptors are there in the chain. Should - * continue further - * only if the number of descriptors in the chain meets the requirements - */ -s32 synopGMAC_setup_tx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) -{ - s32 i; - DmaDesc *bf1; - - DmaDesc *first_desc = NULL; - - dma_addr_t dma_addr; - gmacdev->TxDescCount = 0; - - first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * no_of_desc, &dma_addr); - if (first_desc == NULL) - { - rt_kprintf("Error in Tx Descriptors memory allocation\n"); - return -ESYNOPGMACNOMEM; - } - - DEBUG_MES("tx_first_desc_addr = %p\n", first_desc); - DEBUG_MES("dmaadr = %p\n", dma_addr); - gmacdev->TxDescCount = no_of_desc; - gmacdev->TxDesc = first_desc; - gmacdev->TxDescDma = dma_addr; - - for (i = 0; i < gmacdev->TxDescCount; i++) - { - synopGMAC_tx_desc_init_ring(gmacdev->TxDesc + i, i == gmacdev->TxDescCount - 1); -#if SYNOP_TOP_DEBUG - rt_kprintf("\n%02d %08x \n", i, (unsigned int)(gmacdev->TxDesc + i)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i))->status); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->length)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer1)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer2)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data1)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data2)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy1)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy2)); -#endif - } - - gmacdev->TxNext = 0; - gmacdev->TxBusy = 0; - gmacdev->TxNextDesc = gmacdev->TxDesc; - gmacdev->TxBusyDesc = gmacdev->TxDesc; - gmacdev->BusyTxDesc = 0; - - return -ESYNOPGMACNOERR; -} - -/** - * This sets up the receive Descriptor queue in ring or chain mode. - * This function is tightly coupled to the platform and operating system - * Device is interested only after the descriptors are setup. Therefore this function - * is not included in the device driver API. This function should be treated as an - * example code to design the descriptor structures in ring mode or chain mode. - * This function depends on the pcidev structure for allocation of consistent dma-able memory in - * case of linux. - * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory - * - Allocates the memory for the descriptors. - * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). - * - Initialize the Busy and Next descriptors to first descriptor address. - * - Initialize the last descriptor with the endof ring in case of ring mode. - * - Initialize the descriptors in chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] pointer to pci_device structure. - * @param[in] number of descriptor expected in rx descriptor queue. - * @param[in] whether descriptors to be created in RING mode or CHAIN mode. - * \return 0 upon success. Error code upon failure. - * \note This function fails if allocation fails for required number of descriptors in Ring mode, - * but in chain mode - * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from - * this function - * user should for gmacdev->RxDescCount to see how many descriptors are there in the chain. Should - * continue further - * only if the number of descriptors in the chain meets the requirements - */ -s32 synopGMAC_setup_rx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) -{ - s32 i; - DmaDesc *bf1; - DmaDesc *first_desc = NULL; - - dma_addr_t dma_addr; - - gmacdev->RxDescCount = 0; - first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * no_of_desc, &dma_addr); - if (first_desc == NULL) - { - rt_kprintf("Error in Rx Descriptor Memory allocation in Ring mode\n"); - return -ESYNOPGMACNOMEM; - } - - DEBUG_MES("rx_first_desc_addr = %p\n", first_desc); - DEBUG_MES("dmaadr = %p\n", dma_addr); - gmacdev->RxDescCount = no_of_desc; - gmacdev->RxDesc = (DmaDesc *)first_desc; - gmacdev->RxDescDma = dma_addr; - - for (i = 0; i < gmacdev->RxDescCount; i++) - { - synopGMAC_rx_desc_init_ring(gmacdev->RxDesc + i, i == gmacdev->RxDescCount - 1); - - } - - gmacdev->RxNext = 0; - gmacdev->RxBusy = 0; - gmacdev->RxNextDesc = gmacdev->RxDesc; - gmacdev->RxBusyDesc = gmacdev->RxDesc; - - gmacdev->BusyRxDesc = 0; - - return -ESYNOPGMACNOERR; -} - -void synopGMAC_linux_cable_unplug_function(void *adaptr) -{ - s32 data; - synopGMACPciNetworkAdapter *adapter = (synopGMACPciNetworkAdapter *)adaptr; - synopGMACdevice *gmacdev = adapter->synopGMACdev; - struct ethtool_cmd cmd; - - //rt_kprintf("%s\n",__FUNCTION__); - if (!mii_link_ok(&adapter->mii)) - { - if (gmacdev->LinkState) - rt_kprintf("\r\nNo Link\r\n"); - gmacdev->DuplexMode = 0; - gmacdev->Speed = 0; - gmacdev->LoopBackMode = 0; - gmacdev->LinkState = 0; - } - else - { - data = synopGMAC_check_phy_init(adapter); - - if (gmacdev->LinkState != data) - { - gmacdev->LinkState = data; - synopGMAC_mac_init(gmacdev); - rt_kprintf("Link is up in %s mode\n", (gmacdev->DuplexMode == FULLDUPLEX) ? "FULL DUPLEX" : "HALF DUPLEX"); - if (gmacdev->Speed == SPEED1000) - rt_kprintf("Link is with 1000M Speed \r\n"); - if (gmacdev->Speed == SPEED100) - rt_kprintf("Link is with 100M Speed \n"); - if (gmacdev->Speed == SPEED10) - rt_kprintf("Link is with 10M Speed \n"); - } - } -} - -s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) -{ - struct ethtool_cmd cmd; - synopGMACdevice *gmacdev = adapter->synopGMACdev; - - if (!mii_link_ok(&adapter->mii)) - { - gmacdev->DuplexMode = FULLDUPLEX; - gmacdev->Speed = SPEED100; - - return 0; - } - else - { - mii_ethtool_gset(&adapter->mii, &cmd); - - gmacdev->DuplexMode = (cmd.duplex == DUPLEX_FULL) ? FULLDUPLEX : HALFDUPLEX ; - if (cmd.speed == SPEED_1000) - gmacdev->Speed = SPEED1000; - else if (cmd.speed == SPEED_100) - gmacdev->Speed = SPEED100; - else - gmacdev->Speed = SPEED10; - } - - return gmacdev->Speed | (gmacdev->DuplexMode << 4); -} - - -static int Mac_change_check(u8 *macaddr0, u8 *macaddr1) -{ - int i; - for (i = 0; i < 6; i++) - { - if (macaddr0[i] != macaddr1[i]) - return 1; - } - return 0; -} - -static rt_err_t eth_init(rt_device_t device) -{ - struct eth_device *eth_device = (struct eth_device *)device; - RT_ASSERT(eth_device != RT_NULL); - - s32 ijk; - s32 status = 0; - u64 dma_addr; - u32 Mac_changed = 0; - struct pbuf *pbuf; - u8 macaddr[6] = DEFAULT_MAC_ADDRESS; - struct rt_eth_dev *dev = ð_dev; - struct synopGMACNetworkAdapter *adapter = dev->priv; - synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; - - synopGMAC_reset(gmacdev); - synopGMAC_attach(gmacdev, (regbase + MACBASE), (regbase + DMABASE), DEFAULT_PHY_BASE, macaddr); - - synopGMAC_read_version(gmacdev); - - synopGMAC_set_mdc_clk_div(gmacdev, GmiiCsrClk3); - gmacdev->ClockDivMdc = synopGMAC_get_mdc_clk_div(gmacdev); - - init_phy(adapter->synopGMACdev); - - DEBUG_MES("tx desc_queue\n"); - synopGMAC_setup_tx_desc_queue(gmacdev, TRANSMIT_DESC_SIZE, RINGMODE); - synopGMAC_init_tx_desc_base(gmacdev); - - DEBUG_MES("rx desc_queue\n"); - synopGMAC_setup_rx_desc_queue(gmacdev, RECEIVE_DESC_SIZE, RINGMODE); - synopGMAC_init_rx_desc_base(gmacdev); - DEBUG_MES("DmaRxBaseAddr = %08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxBaseAddr)); - -// u32 dmaRx_Base_addr = synopGMACReadReg(gmacdev->DmaBase,DmaRxBaseAddr); -// rt_kprintf("first_desc_addr = 0x%x\n", dmaRx_Base_addr); - -#ifdef ENH_DESC_8W - synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength32 | DmaDescriptorSkip2 | DmaDescriptor8Words); -#else - //synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip1); - synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip2); -#endif - synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward | DmaTxSecondFrame | DmaRxThreshCtrl128); - - status = synopGMAC_check_phy_init(adapter); - synopGMAC_mac_init(gmacdev); - - synopGMAC_pause_control(gmacdev); - -#ifdef IPC_OFFLOAD - synopGMAC_enable_rx_chksum_offload(gmacdev); - synopGMAC_rx_tcpip_chksum_drop_enable(gmacdev); -#endif - - u32 skb; - do - { - skb = (u32)plat_alloc_memory(RX_BUF_SIZE); //should skb aligned here? - if (skb == RT_NULL) - { - rt_kprintf("ERROR in skb buffer allocation\n"); - break; - } - - dma_addr = plat_dma_map_single(gmacdev, (void *)skb, RX_BUF_SIZE); //获取 skb 的 dma 地址 - - status = synopGMAC_set_rx_qptr(gmacdev, dma_addr, RX_BUF_SIZE, (u32)skb, 0, 0, 0); - if (status < 0) - { - rt_kprintf("status < 0!!\n"); - plat_free_memory((void *)skb); - } - } - while (status >= 0 && (status < (RECEIVE_DESC_SIZE - 1))); - - synopGMAC_clear_interrupt(gmacdev); - - synopGMAC_disable_mmc_tx_interrupt(gmacdev, 0xFFFFFFFF); - synopGMAC_disable_mmc_rx_interrupt(gmacdev, 0xFFFFFFFF); - synopGMAC_disable_mmc_ipc_rx_interrupt(gmacdev, 0xFFFFFFFF); - -// synopGMAC_disable_interrupt_all(gmacdev); - synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); - synopGMAC_enable_dma_rx(gmacdev); - synopGMAC_enable_dma_tx(gmacdev); - - plat_delay(DEFAULT_LOOP_VARIABLE); - synopGMAC_check_phy_init(adapter); - synopGMAC_mac_init(gmacdev); - - rt_timer_init(&dev->link_timer, "link_timer", - synopGMAC_linux_cable_unplug_function, - (void *)adapter, - RT_TICK_PER_SECOND, - RT_TIMER_FLAG_PERIODIC); - - rt_timer_start(&dev->link_timer); -#ifdef RT_USING_GMAC_INT_MODE - /* installl isr */ - DEBUG_MES("%s\n", __FUNCTION__); - rt_hw_interrupt_install(LS1C_MAC_IRQ, eth_rx_irq, RT_NULL, "e0_isr"); - rt_hw_interrupt_umask(LS1C_MAC_IRQ); -#else - rt_timer_init(&dev->rx_poll_timer, "rx_poll_timer", - eth_rx_irq, - (void *)adapter, - 1, - RT_TIMER_FLAG_PERIODIC); - - rt_timer_start(&dev->rx_poll_timer); -#endif /*RT_USING_GMAC_INT_MODE*/ - - rt_kprintf("eth_inited!\n"); - - return RT_EOK; -} - -static rt_err_t eth_open(rt_device_t dev, rt_uint16_t oflag) -{ - rt_kprintf("eth_open!!\n"); - - return RT_EOK; -} - -static rt_err_t eth_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t eth_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_size_t eth_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_err_t eth_control(rt_device_t dev, int cmd, void *args) -{ - switch (cmd) - { - case NIOCTL_GADDR: - if (args) rt_memcpy(args, eth_dev.dev_addr, 6); - else return -RT_ERROR; - break; - - default : - break; - } - return RT_EOK; -} - -rt_err_t rt_eth_tx(rt_device_t device, struct pbuf *p) -{ - /* lock eth device */ - rt_sem_take(&sem_lock, RT_WAITING_FOREVER); - - DEBUG_MES("in %s\n", __FUNCTION__); - - s32 status; - u32 pbuf; - u64 dma_addr; - u32 offload_needed = 0; - u32 index; - DmaDesc *dpr; - struct rt_eth_dev *dev = (struct rt_eth_dev *) device; - struct synopGMACNetworkAdapter *adapter; - synopGMACdevice *gmacdev; - adapter = (struct synopGMACNetworkAdapter *) dev->priv; - if (adapter == NULL) - return -1; - - gmacdev = (synopGMACdevice *) adapter->synopGMACdev; - if (gmacdev == NULL) - return -1; - - if (!synopGMAC_is_desc_owned_by_dma(gmacdev->TxNextDesc)) - { - - pbuf = (u32)plat_alloc_memory(p->tot_len); - //pbuf = (u32)pbuf_alloc(PBUF_LINK, p->len, PBUF_RAM); - if (pbuf == 0) - { - rt_kprintf("===error in alloc bf1\n"); - return -1; - } - - DEBUG_MES("p->len = %d\n", p->len); - pbuf_copy_partial(p, (void *)pbuf, p->tot_len, 0); - dma_addr = plat_dma_map_single(gmacdev, (void *)pbuf, p->tot_len); - - status = synopGMAC_set_tx_qptr(gmacdev, dma_addr, p->tot_len, pbuf, 0, 0, 0, offload_needed, &index, dpr); - if (status < 0) - { - rt_kprintf("%s No More Free Tx Descriptors\n", __FUNCTION__); - - plat_free_memory((void *)pbuf); - return -16; - } - } - synopGMAC_resume_dma_tx(gmacdev); - - s32 desc_index; - u32 data1, data2; - u32 dma_addr1, dma_addr2; - u32 length1, length2; -#ifdef ENH_DESC_8W - u32 ext_status; - u16 time_stamp_higher; - u32 time_stamp_high; - u32 time_stamp_low; -#endif - do - { -#ifdef ENH_DESC_8W - desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2, &ext_status, &time_stamp_high, &time_stamp_low); - synopGMAC_TS_read_timestamp_higher_val(gmacdev, &time_stamp_higher); -#else - desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2); -#endif - if (desc_index >= 0 && data1 != 0) - { -#ifdef IPC_OFFLOAD - if (synopGMAC_is_tx_ipv4header_checksum_error(gmacdev, status)) - { - rt_kprintf("Harware Failed to Insert IPV4 Header Checksum\n"); - } - if (synopGMAC_is_tx_payload_checksum_error(gmacdev, status)) - { - rt_kprintf("Harware Failed to Insert Payload Checksum\n"); - } -#endif - - plat_free_memory((void *)(data1)); //sw: data1 = buffer1 - - if (synopGMAC_is_desc_valid(status)) - { - adapter->synopGMACNetStats.tx_bytes += length1; - adapter->synopGMACNetStats.tx_packets++; - } - else - { - adapter->synopGMACNetStats.tx_errors++; - adapter->synopGMACNetStats.tx_aborted_errors += synopGMAC_is_tx_aborted(status); - adapter->synopGMACNetStats.tx_carrier_errors += synopGMAC_is_tx_carrier_error(status); - } - } - adapter->synopGMACNetStats.collisions += synopGMAC_get_tx_collision_count(status); - } - while (desc_index >= 0); - - /* unlock eth device */ - rt_sem_release(&sem_lock); -// rt_kprintf("output %d bytes\n", p->len); - u32 test_data; - test_data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - return RT_EOK; -} - -struct pbuf *rt_eth_rx(rt_device_t device) -{ - DEBUG_MES("%s : \n", __FUNCTION__); - struct rt_eth_dev *dev = ð_dev; - struct synopGMACNetworkAdapter *adapter; - synopGMACdevice *gmacdev; -// struct PmonInet * pinetdev; - s32 desc_index; - int i; - char *ptr; - u32 bf1; - u32 data1; - u32 data2; - u32 len; - u32 status; - u32 dma_addr1; - u32 dma_addr2; - struct pbuf *pbuf = RT_NULL; - rt_sem_take(&sem_lock, RT_WAITING_FOREVER); - - adapter = (struct synopGMACNetworkAdapter *) dev->priv; - if (adapter == NULL) - { - rt_kprintf("%S : Unknown Device !!\n", __FUNCTION__); - return NULL; - } - - gmacdev = (synopGMACdevice *) adapter->synopGMACdev; - if (gmacdev == NULL) - { - rt_kprintf("%s : GMAC device structure is missing\n", __FUNCTION__); - return NULL; - } - - /*Handle the Receive Descriptors*/ - desc_index = synopGMAC_get_rx_qptr(gmacdev, &status, &dma_addr1, NULL, &data1, &dma_addr2, NULL, &data2); - if (desc_index >= 0 && data1 != 0) - { - DEBUG_MES("Received Data at Rx Descriptor %d for skb 0x%08x whose status is %08x\n", desc_index, dma_addr1, status); - if (synopGMAC_is_rx_desc_valid(status) || SYNOP_PHY_LOOPBACK) - { - dma_addr1 = plat_dma_map_single(gmacdev, (void *)data1, RX_BUF_SIZE); - len = synopGMAC_get_rx_desc_frame_length(status)-4; //Not interested in Ethernet CRC bytes - pbuf = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); - if (pbuf == 0) rt_kprintf("===error in pbuf_alloc\n"); - rt_memcpy(pbuf->payload, (char *)data1, len); - DEBUG_MES("==get pkg len: %d\n", len); - } - else - { - rt_kprintf("s: %08x\n", status); - adapter->synopGMACNetStats.rx_errors++; - adapter->synopGMACNetStats.collisions += synopGMAC_is_rx_frame_collision(status); - adapter->synopGMACNetStats.rx_crc_errors += synopGMAC_is_rx_crc(status); - adapter->synopGMACNetStats.rx_frame_errors += synopGMAC_is_frame_dribbling_errors(status); - adapter->synopGMACNetStats.rx_length_errors += synopGMAC_is_rx_frame_length_errors(status); - } - desc_index = synopGMAC_set_rx_qptr(gmacdev, dma_addr1, RX_BUF_SIZE, (u32)data1, 0, 0, 0); - if (desc_index < 0) - { -#if SYNOP_RX_DEBUG - rt_kprintf("Cannot set Rx Descriptor for data1 %08x\n", (u32)data1); -#endif - plat_free_memory((void *)data1); - } - } - rt_sem_release(&sem_lock); - DEBUG_MES("%s : before return \n", __FUNCTION__); - return pbuf; -} - -static int rtl88e1111_config_init(synopGMACdevice *gmacdev) -{ - int retval, err; - u16 data; - - DEBUG_MES("in %s\n", __FUNCTION__); - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); - data = data | 0x82; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, &data); - data = data | 0x8000; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); -#if SYNOP_PHY_LOOPBACK - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); - data = data | 0x70; - data = data & 0xffdf; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); - data = 0x8000; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); - data = 0x5140; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); -#endif - if (err < 0) - return err; - return 0; -} - -int init_phy(synopGMACdevice *gmacdev) -{ - u16 data; - - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 2, &data); - /*set 88e1111 clock phase delay*/ - if (data == 0x141) - rtl88e1111_config_init(gmacdev); -#if defined (RMII) - else if (data == 0x8201) - { - //RTL8201 - data = 0x400; // set RMII mode - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, data); - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, &data); - TR("phy reg25 is %0x \n", data); - - data = 0x3100; //set 100M speed - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); - } - else if (data == 0x0180 || data == 0x0181) - { - //DM9161 - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); - data |= (1 << 8); //set RMII mode - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, data); //set RMII mode - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); - TR("phy reg16 is 0x%0x \n", data); - - // synopGMAC_read_phy_reg(gmacdev->MacBase,gmacdev->PhyBase,0x0,&data); - // data &= ~(1<<10); - data = 0x3100; //set auto- - //data = 0x0100; //set 10M speed - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); - } -#endif - - return 0; -} - -u32 synopGMAC_wakeup_filter_config3[] = -{ - 0x00000000, - 0x000000FF, - 0x00000000, - 0x00000000, - 0x00000100, - 0x00003200, - 0x7eED0000, - 0x00000000 -}; - -static void synopGMAC_linux_powerdown_mac(synopGMACdevice *gmacdev) -{ - rt_kprintf("Put the GMAC to power down mode..\n"); - - GMAC_Power_down = 1; - - synopGMAC_disable_dma_tx(gmacdev); - plat_delay(10000); - - synopGMAC_tx_disable(gmacdev); - synopGMAC_rx_disable(gmacdev); - plat_delay(10000); - - synopGMAC_disable_dma_rx(gmacdev); - - synopGMAC_magic_packet_enable(gmacdev); - synopGMAC_write_wakeup_frame_register(gmacdev, synopGMAC_wakeup_filter_config3); - - synopGMAC_wakeup_frame_enable(gmacdev); - - synopGMAC_rx_enable(gmacdev); - - synopGMAC_pmt_int_enable(gmacdev); - - synopGMAC_power_down_enable(gmacdev); - return; -} - -static void synopGMAC_linux_powerup_mac(synopGMACdevice *gmacdev) -{ - GMAC_Power_down = 0; - if (synopGMAC_is_magic_packet_received(gmacdev)) - rt_kprintf("GMAC wokeup due to Magic Pkt Received\n"); - if (synopGMAC_is_wakeup_frame_received(gmacdev)) - rt_kprintf("GMAC wokeup due to Wakeup Frame Received\n"); - - synopGMAC_pmt_int_disable(gmacdev); - - synopGMAC_rx_enable(gmacdev); - synopGMAC_enable_dma_rx(gmacdev); - - synopGMAC_tx_enable(gmacdev); - synopGMAC_enable_dma_tx(gmacdev); - return; -} - - -static int mdio_read(synopGMACPciNetworkAdapter *adapter, int addr, int reg) -{ - synopGMACdevice *gmacdev; - u16 data; - gmacdev = adapter->synopGMACdev; - - synopGMAC_read_phy_reg(gmacdev->MacBase, addr, reg, &data); - return data; -} - -static void mdio_write(synopGMACPciNetworkAdapter *adapter, int addr, int reg, int data) -{ - synopGMACdevice *gmacdev; - gmacdev = adapter->synopGMACdev; - synopGMAC_write_phy_reg(gmacdev->MacBase, addr, reg, data); -} - -void eth_rx_irq(int irqno, void *param) -{ - struct rt_eth_dev *dev = ð_dev; - struct synopGMACNetworkAdapter *adapter = dev->priv; - //DEBUG_MES("in irq!!\n"); -#ifdef RT_USING_GMAC_INT_MODE - int i ; - for (i = 0; i < 7200; i++) - ; -#endif /*RT_USING_GMAC_INT_MODE*/ - synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; - - u32 interrupt, dma_status_reg; - s32 status; - u32 dma_addr; - - //rt_kprintf("irq i = %d\n", i++); - dma_status_reg = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - if (dma_status_reg == 0) - { - rt_kprintf("dma_status ==0 \n"); - return; - } - - //rt_kprintf("dma_status_reg is 0x%x\n", dma_status_reg); - u32 gmacstatus; - synopGMAC_disable_interrupt_all(gmacdev); - gmacstatus = synopGMACReadReg(gmacdev->MacBase, GmacStatus); - - if (dma_status_reg & GmacPmtIntr) - { - rt_kprintf("%s:: Interrupt due to PMT module\n", __FUNCTION__); - //synopGMAC_linux_powerup_mac(gmacdev); - } - if (dma_status_reg & GmacMmcIntr) - { - rt_kprintf("%s:: Interrupt due to MMC module\n", __FUNCTION__); - DEBUG_MES("%s:: synopGMAC_rx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_rx_int_status(gmacdev)); - DEBUG_MES("%s:: synopGMAC_tx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_tx_int_status(gmacdev)); - } - - if (dma_status_reg & GmacLineIntfIntr) - { - rt_kprintf("%s:: Interrupt due to GMAC LINE module\n", __FUNCTION__); - } - - interrupt = synopGMAC_get_interrupt_type(gmacdev); - //rt_kprintf("%s:Interrupts to be handled: 0x%08x\n",__FUNCTION__,interrupt); - if (interrupt & synopGMACDmaError) - { - u8 mac_addr0[6]; - rt_kprintf("%s::Fatal Bus Error Inetrrupt Seen\n", __FUNCTION__); - - memcpy(mac_addr0, dev->dev_addr, 6); - synopGMAC_disable_dma_tx(gmacdev); - synopGMAC_disable_dma_rx(gmacdev); - - synopGMAC_take_desc_ownership_tx(gmacdev); - synopGMAC_take_desc_ownership_rx(gmacdev); - - synopGMAC_init_tx_rx_desc_queue(gmacdev); - - synopGMAC_reset(gmacdev); - - synopGMAC_set_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr0); - synopGMAC_dma_bus_mode_init(gmacdev, DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip2); - synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward); - synopGMAC_init_rx_desc_base(gmacdev); - synopGMAC_init_tx_desc_base(gmacdev); - synopGMAC_mac_init(gmacdev); - synopGMAC_enable_dma_rx(gmacdev); - synopGMAC_enable_dma_tx(gmacdev); - - } - if (interrupt & synopGMACDmaRxNormal) - { - //DEBUG_MES("%s:: Rx Normal \n", __FUNCTION__); - //synop_handle_received_data(netdev); - eth_device_ready(ð_dev.parent); - } - if (interrupt & synopGMACDmaRxAbnormal) - { - //rt_kprintf("%s::Abnormal Rx Interrupt Seen\n",__FUNCTION__); - if (GMAC_Power_down == 0) - { - adapter->synopGMACNetStats.rx_over_errors++; - synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, 0x80); - synopGMAC_resume_dma_rx(gmacdev); - } - } - if (interrupt & synopGMACDmaRxStopped) - { - rt_kprintf("%s::Receiver stopped seeing Rx interrupts\n", __FUNCTION__); //Receiver gone in to stopped state - } - - if (interrupt & synopGMACDmaTxNormal) - { - DEBUG_MES("%s::Finished Normal Transmission \n", __FUNCTION__); - // synop_handle_transmit_over(netdev); - } - - if (interrupt & synopGMACDmaTxAbnormal) - { - rt_kprintf("%s::Abnormal Tx Interrupt Seen\n", __FUNCTION__); - } - if (interrupt & synopGMACDmaTxStopped) - { - TR("%s::Transmitter stopped sending the packets\n", __FUNCTION__); - if (GMAC_Power_down == 0) // If Mac is not in powerdown - { - synopGMAC_disable_dma_tx(gmacdev); - synopGMAC_take_desc_ownership_tx(gmacdev); - - synopGMAC_enable_dma_tx(gmacdev); - // netif_wake_queue(netdev); - TR("%s::Transmission Resumed\n", __FUNCTION__); - } - } - /* Enable the interrrupt before returning from ISR*/ - synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); - - return; -} - -int rt_hw_eth_init(void) -{ - u64 base_addr = Gmac_base; - struct synopGMACNetworkAdapter *synopGMACadapter; - static u8 mac_addr0[6] = DEFAULT_MAC_ADDRESS; - int index; - - rt_sem_init(&sem_ack, "tx_ack", 1, RT_IPC_FLAG_FIFO); - rt_sem_init(&sem_lock, "eth_lock", 1, RT_IPC_FLAG_FIFO); - - for (index = 21; index <= 30; index++) - { - pin_set_purpose(index, PIN_PURPOSE_OTHER); - pin_set_remap(index, PIN_REMAP_DEFAULT); - } - pin_set_purpose(35, PIN_PURPOSE_OTHER); - pin_set_remap(35, PIN_REMAP_DEFAULT); - *((volatile unsigned int *)0xbfd00424) &= ~(7 << 28); - *((volatile unsigned int *)0xbfd00424) |= (1 << 30); //wl rmii - - - - memset(ð_dev, 0, sizeof(eth_dev)); - synopGMACadapter = (struct synopGMACNetworkAdapter *)plat_alloc_memory(sizeof(struct synopGMACNetworkAdapter)); - if (!synopGMACadapter) - { - rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); - } - memset((char *)synopGMACadapter, 0, sizeof(struct synopGMACNetworkAdapter)); - - synopGMACadapter->synopGMACdev = NULL; - - synopGMACadapter->synopGMACdev = (synopGMACdevice *) plat_alloc_memory(sizeof(synopGMACdevice)); - if (!synopGMACadapter->synopGMACdev) - { - rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); - } - memset((char *)synopGMACadapter->synopGMACdev, 0, sizeof(synopGMACdevice)); - /* - * Attach the device to MAC struct This will configure all the required base addresses - * such as Mac base, configuration base, phy base address(out of 32 possible phys) - * */ - synopGMAC_attach(synopGMACadapter->synopGMACdev, (regbase + MACBASE), regbase + DMABASE, DEFAULT_PHY_BASE, mac_addr0); - - init_phy(synopGMACadapter->synopGMACdev); - synopGMAC_reset(synopGMACadapter->synopGMACdev); - - /* MII setup */ - synopGMACadapter->mii.phy_id_mask = 0x1F; - synopGMACadapter->mii.reg_num_mask = 0x1F; - synopGMACadapter->mii.dev = synopGMACadapter; - synopGMACadapter->mii.mdio_read = mdio_read; - synopGMACadapter->mii.mdio_write = mdio_write; - synopGMACadapter->mii.phy_id = synopGMACadapter->synopGMACdev->PhyBase; - synopGMACadapter->mii.supports_gmii = mii_check_gmii_support(&synopGMACadapter->mii); - - eth_dev.iobase = base_addr; - eth_dev.name = "e0"; - eth_dev.priv = synopGMACadapter; - eth_dev.dev_addr[0] = mac_addr0[0]; - eth_dev.dev_addr[1] = mac_addr0[1]; - eth_dev.dev_addr[2] = mac_addr0[2]; - eth_dev.dev_addr[3] = mac_addr0[3]; - eth_dev.dev_addr[4] = mac_addr0[4]; - eth_dev.dev_addr[5] = mac_addr0[5]; - - eth_dev.parent.parent.type = RT_Device_Class_NetIf; - eth_dev.parent.parent.init = eth_init; - eth_dev.parent.parent.open = eth_open; - eth_dev.parent.parent.close = eth_close; - eth_dev.parent.parent.read = eth_read; - eth_dev.parent.parent.write = eth_write; - eth_dev.parent.parent.control = eth_control; - eth_dev.parent.parent.user_data = RT_NULL; - - eth_dev.parent.eth_tx = rt_eth_tx; - eth_dev.parent.eth_rx = rt_eth_rx; - - eth_device_init(&(eth_dev.parent), "e0"); - - eth_device_linkchange(ð_dev.parent, RT_TRUE); //linkup the e0 for lwip to check - - return 0; -} - -INIT_DEVICE_EXPORT(rt_hw_eth_init); - diff --git a/bsp/ls1cdev/drivers/net/synopGMAC.h b/bsp/ls1cdev/drivers/net/synopGMAC.h deleted file mode 100644 index e244c14892..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - -#ifndef __SYNOPGMAC__H -#define __SYNOPGMAC__H - -#include "synopGMAC_network_interface.h" -#include "synopGMAC_Host.h" -#include "synopGMAC_Dev.h" -#include "synopGMAC_plat.h" -#include "mii.h" -#include "synopGMAC_types.h" - -int rt_hw_eth_init(void); - -#endif /*__SYNOPGMAC__H*/ diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_Dev.c b/bsp/ls1cdev/drivers/net/synopGMAC_Dev.c deleted file mode 100644 index a41038f35c..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_Dev.c +++ /dev/null @@ -1,3679 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#include "synopGMAC_Dev.h" -#include -#include - -#define UNUSED 1 - -/** - * Function to set the MDC clock for mdio transactiona - * - * @param[in] pointer to device structure. - * @param[in] clk divider value. - * \return Reuturns 0 on success else return the error value. - */ -s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev,u32 clk_div_val) -{ - u32 orig_data; - orig_data = synopGMACReadReg(gmacdev->MacBase,GmacGmiiAddr); //set the mdc clock to the user defined value - orig_data &= (~ GmiiCsrClkMask); - orig_data |= clk_div_val; - synopGMACWriteReg(gmacdev->MacBase, GmacGmiiAddr ,orig_data); - return 0; -} - -/** - * Returns the current MDC divider value programmed in the ip. - * - * @param[in] pointer to device structure. - * @param[in] clk divider value. - * \return Returns the MDC divider value read. - */ -u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase,GmacGmiiAddr); - data &= GmiiCsrClkMask; - return data; -} - - -/** - * Function to read the Phy register. The access to phy register - * is a slow process as the data is moved accross MDI/MDO interface - * @param[in] pointer to Register Base (It is the mac base in our case) . - * @param[in] PhyBase register is the index of one of supported 32 PHY devices. - * @param[in] Register offset is the index of one of the 32 phy register. - * @param[out] u16 data read from the respective phy register (only valid iff return value is 0). - * \return Returns 0 on success else return the error status. - */ -s32 synopGMAC_read_phy_reg(u32 RegBase,u32 PhyBase, u32 RegOffset, u16 * data ) -{ - u32 addr; - u32 loop_variable; - addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) - | GmiiCsrClk3; //sw: add GmiiCsrClk - addr = addr | GmiiBusy ; //Gmii busy bit - - synopGMACWriteReg(RegBase,GmacGmiiAddr,addr); - //write the address from where the data to be read in GmiiGmiiAddr register of synopGMAC ip - - for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ - //Wait till the busy bit gets cleared within a certain amount of time - if (!(synopGMACReadReg(RegBase,GmacGmiiAddr) & GmiiBusy)){ - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if(loop_variable < DEFAULT_LOOP_VARIABLE) - * data = (u16)(synopGMACReadReg(RegBase,GmacGmiiData) & 0xFFFF); - else{ - TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } - //sw -#if SYNOP_REG_DEBUG - printf("read phy reg: offset = 0x%x\tdata = 0x%x\n",RegOffset,*data); -#endif - - return -ESYNOPGMACNOERR; -} - -/** - * Function to write to the Phy register. The access to phy register - * is a slow process as the data is moved accross MDI/MDO interface - * @param[in] pointer to Register Base (It is the mac base in our case) . - * @param[in] PhyBase register is the index of one of supported 32 PHY devices. - * @param[in] Register offset is the index of one of the 32 phy register. - * @param[in] data to be written to the respective phy register. - * \return Returns 0 on success else return the error status. - */ -s32 synopGMAC_write_phy_reg(u32 RegBase, u32 PhyBase, u32 RegOffset, u16 data) -{ - u32 addr; - u32 loop_variable; - - synopGMACWriteReg(RegBase,GmacGmiiData,data); // write the data in to GmacGmiiData register of synopGMAC ip - - addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) | GmiiWrite | GmiiCsrClk3; //sw: add GmiiCsrclk - - addr = addr | GmiiBusy ; //set Gmii clk to 20-35 Mhz and Gmii busy bit - - synopGMACWriteReg(RegBase,GmacGmiiAddr,addr); - for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ - if (!(synopGMACReadReg(RegBase,GmacGmiiAddr) & GmiiBusy)){ - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - - if(loop_variable < DEFAULT_LOOP_VARIABLE){ - return -ESYNOPGMACNOERR; - } - else{ - TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } -#if SYNOP_REG_DEBUG - printf("write phy reg: offset = 0x%x\tdata = 0x%x",RegOffset,data); -#endif -} - -/** - * Function to configure the phy in loopback mode. - * - * @param[in] pointer to synopGMACdevice. - * @param[in] enable or disable the loopback. - * \return 0 on success else return the error status. - * \note Don't get confused with mac loop-back synopGMAC_loopback_on(synopGMACdevice *) - * and synopGMAC_loopback_off(synopGMACdevice *) functions. - */ -#if UNUSED -s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback) -{ -s32 status = -ESYNOPGMACNOERR; -u16 *temp; - status = synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, PHY_CONTROL_REG,temp); -if(loopback) - *temp |= 0x4000; -else - *temp = *temp; - - status = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, PHY_CONTROL_REG, *temp); -return status; -} - -#endif - - -/** - * Function to read the GMAC IP Version and populates the same in device data structure. - * @param[in] pointer to synopGMACdevice. - * \return Always return 0. - */ - -s32 synopGMAC_read_version (synopGMACdevice * gmacdev) -{ - u32 data = 0; - data = synopGMACReadReg(gmacdev->MacBase, GmacVersion ); - gmacdev->Version = data; - return 0; -} - - -/** - * Function to reset the GMAC core. - * This reests the DMA and GMAC core. After reset all the registers holds their respective reset value - * @param[in] pointer to synopGMACdevice. - * \return 0 on success else return the error status. - */ -s32 synopGMAC_reset (synopGMACdevice * gmacdev) -{ - u32 data = 0; - synopGMACWriteReg(gmacdev->DmaBase, DmaBusMode ,DmaResetOn); - plat_delay(DEFAULT_LOOP_VARIABLE); - data = synopGMACReadReg(gmacdev->DmaBase, DmaBusMode); - TR("DATA after Reset = %08x\n",data); - - return 0; -} - - -/** - * Function to program DMA bus mode register. - * - * The Bus Mode register is programmed with the value given. The bits to be set are - * bit wise or'ed and sent as the second argument to this function. - * @param[in] pointer to synopGMACdevice. - * @param[in] the data to be programmed. - * \return 0 on success else return the error status. - */ -s32 synopGMAC_dma_bus_mode_init(synopGMACdevice * gmacdev, u32 init_value ) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaBusMode ,init_value ); - return 0; - -} - -/** - * Function to program DMA Control register. - * - * The Dma Control register is programmed with the value given. The bits to be set are - * bit wise or'ed and sent as the second argument to this function. - * @param[in] pointer to synopGMACdevice. - * @param[in] the data to be programmed. - * \return 0 on success else return the error status. - */ -s32 synopGMAC_dma_control_init(synopGMACdevice * gmacdev, u32 init_value ) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaControl, init_value); - return 0; -} - - -/*Gmac configuration functions*/ - -/** - * Enable the watchdog timer on the receiver. - * When enabled, Gmac enables Watchdog timer, and GMAC allows no more than - * 2048 bytes of data (10,240 if Jumbo frame enabled). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_wd_enable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacWatchdog); - return; -} -/** - * Disable the watchdog timer on the receiver. - * When disabled, Gmac disabled watchdog timer, and can receive frames up to - * 16,384 bytes. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ - -void synopGMAC_wd_disable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacWatchdog); - return; -} - -/** - * Enables the Jabber frame support. - * When enabled, GMAC disabled the jabber timer, and can transfer 16,384 byte frames. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_jab_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacJabber); - return; -} -/** - * Disables the Jabber frame support. - * When disabled, GMAC enables jabber timer. It cuts of transmitter if application - * sends more than 2048 bytes of data (10240 if Jumbo frame enabled). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_jab_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacJabber); - return; -} -#endif - -/** - * Enables Frame bursting (Only in Half Duplex Mode). - * When enabled, GMAC allows frame bursting in GMII Half Duplex mode. - * Reserved in 10/100 and Full-Duplex configurations. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_frame_burst_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFrameBurst); - return; -} -/** - * Disables Frame bursting. - * When Disabled, frame bursting is not supported. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_frame_burst_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacFrameBurst); - return; -} -#endif - -/** - * Enable Jumbo frame support. - * When Enabled GMAC supports jumbo frames of 9018/9022(VLAN tagged). - * Giant frame error is not reported in receive frame status. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_jumbo_frame_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacJumboFrame); - return; -} -#endif -/** - * Disable Jumbo frame support. - * When Disabled GMAC does not supports jumbo frames. - * Giant frame error is reported in receive frame status. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_jumbo_frame_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacJumboFrame); - return; -} - -/** - * Disable Carrier sense. - * When Disabled GMAC ignores CRS signal during frame transmission - * in half duplex mode. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ - -#if UNUSED -void synopGMAC_disable_crs(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDisableCrs); - return; -} -#endif - - - -/** - * Selects the GMII port. - * When called GMII (1000Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_select_gmii(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacMiiGmii); - return; -} -/** - * Selects the MII port. - * When called MII (10/100Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_select_mii(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacMiiGmii); - return; -} - -/** - * Enables Receive Own bit (Only in Half Duplex Mode). - * When enaled GMAC receives all the packets given by phy while transmitting. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_own_enable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRxOwn); - return; -} -/** - * Disables Receive Own bit (Only in Half Duplex Mode). - * When enaled GMAC disables the reception of frames when gmii_txen_o is asserted. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_rx_own_disable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRxOwn); - return; -} -#endif - -/** - * Sets the GMAC in loopback mode. - * When on GMAC operates in loop-back mode at GMII/MII. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note (G)MII Receive clock is required for loopback to work properly, as transmit clock is - * not looped back internally. - */ -void synopGMAC_loopback_on(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacLoopback); - return; -} -/** - * Sets the GMAC in Normal mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_loopback_off(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacLoopback); - return; -} - -/** - * Sets the GMAC core in Full-Duplex mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_set_full_duplex(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDuplex); - return; -} -/** - * Sets the GMAC core in Half-Duplex mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_set_half_duplex(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacDuplex); - return; -} - -/** - * GMAC tries retransmission (Only in Half Duplex mode). - * If collision occurs on the GMII/MII, GMAC attempt retries based on the - * back off limit configured. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note This function is tightly coupled with synopGMAC_back_off_limit(synopGMACdev *, u32). - */ -void synopGMAC_retry_enable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRetry); - return; -} -/** - * GMAC tries only one transmission (Only in Half Duplex mode). - * If collision occurs on the GMII/MII, GMAC will ignore the current frami - * transmission and report a frame abort with excessive collision in tranmit frame status. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_retry_disable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRetry); - return; -} -#endif - -/** - * GMAC strips the Pad/FCS field of incoming frames. - * This is true only if the length field value is less than or equal to - * 1500 bytes. All received frames with length field greater than or equal to - * 1501 bytes are passed to the application without stripping the Pad/FCS field. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_pad_crc_strip_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacPadCrcStrip); - return; -} -#endif -/** - * GMAC doesnot strips the Pad/FCS field of incoming frames. - * GMAC will pass all the incoming frames to Host unmodified. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_pad_crc_strip_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacPadCrcStrip); - u32 status = synopGMACReadReg(gmacdev->MacBase, GmacConfig); - DEBUG_MES("strips status : %u\n", status & GmacPadCrcStrip); - return; -} -/** - * GMAC programmed with the back off limit value. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note This function is tightly coupled with synopGMAC_retry_enable(synopGMACdevice * gmacdev) - */ -void synopGMAC_back_off_limit(synopGMACdevice * gmacdev, u32 value) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase, GmacConfig); - data &= (~GmacBackoffLimit); - data |= value; - synopGMACWriteReg(gmacdev->MacBase, GmacConfig,data); - return; -} - -/** - * Enables the Deferral check in GMAC (Only in Half Duplex mode) - * GMAC issues a Frame Abort Status, along with the excessive deferral error bit set in the - * transmit frame status when transmit state machine is deferred for more than - * - 24,288 bit times in 10/100Mbps mode - * - 155,680 bit times in 1000Mbps mode or Jumbo frame mode in 10/100Mbps operation. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note Deferral begins when transmitter is ready to transmit, but is prevented because of - * an active CRS (carrier sense) - */ -#if UNUSED -void synopGMAC_deferral_check_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDeferralCheck); - return; -} -#endif -/** - * Disables the Deferral check in GMAC (Only in Half Duplex mode). - * GMAC defers until the CRS signal goes inactive. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_deferral_check_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacDeferralCheck); - return; -} -/** - * Enable the reception of frames on GMII/MII. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRx); - return; -} -/** - * Disable the reception of frames on GMII/MII. - * GMAC receive state machine is disabled after completion of reception of current frame. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_rx_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRx); - return; -} -#endif -/** - * Enable the transmission of frames on GMII/MII. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacTx); - return; -} -/** - * Disable the transmission of frames on GMII/MII. - * GMAC transmit state machine is disabled after completion of transmission of current frame. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_tx_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacTx); - return; -} -#endif - - -/*Receive frame filter configuration functions*/ - -/** - * Enables reception of all the frames to application. - * GMAC passes all the frames received to application irrespective of whether they - * pass SA/DA address filtering or not. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_frame_filter_enable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacFilter); - return; -} -/** - * Disables reception of all the frames to application. - * GMAC passes only those received frames to application which - * pass SA/DA address filtering. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_frame_filter_disable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacFilter); - return; -} - -/** - * Populates the Hash High register with the data supplied. - * This function is called when the Hash filtering is to be enabled. - * @param[in] pointer to synopGMACdevice. - * @param[in] data to be written to hash table high register. - * \return void. - */ -#if UNUSED -void synopGMAC_write_hash_table_high(synopGMACdevice * gmacdev, u32 data) -{ - synopGMACWriteReg(gmacdev->MacBase,GmacHashHigh,data); - return; -} -#endif - -/** - * Populates the Hash Low register with the data supplied. - * This function is called when the Hash filtering is to be enabled. - * @param[in] pointer to synopGMACdevice. - * @param[in] data to be written to hash table low register. - * \return void. - */ -#if UNUSED -void synopGMAC_write_hash_table_low(synopGMACdevice * gmacdev, u32 data) -{ - synopGMACWriteReg(gmacdev->MacBase,GmacHashLow,data); - return; -} -#endif - -/** - * Enables Hash or Perfect filter (only if Hash filter is enabled in H/W). - * Only frames matching either perfect filtering or Hash Filtering as per HMC and HUC - * configuration are sent to application. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_hash_perfect_filter_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacHashPerfectFilter); - return; -} -#endif - -/** - * Enables only Hash(only if Hash filter is enabled in H/W). - * Only frames matching Hash Filtering as per HMC and HUC - * configuration are sent to application. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_Hash_filter_only_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacHashPerfectFilter); - return; -} -#endif - -/** - * Enables Source address filtering. - * When enabled source address filtering is performed. Only frames matching SA filtering are passed to application with - * SAMatch bit of RxStatus is set. GMAC drops failed frames. - * @param[in] pointer to synopGMACdevice. - * \return void. - * \note This function is overriden by synopGMAC_frame_filter_disable(synopGMACdevice *) - */ -#if UNUSED -void synopGMAC_src_addr_filter_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacSrcAddrFilter); - return; -} -#endif -/** - * Disables Source address filtering. - * When disabled GMAC forwards the received frames with updated SAMatch bit in RxStatus. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_src_addr_filter_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacSrcAddrFilter); - return; -} -/** - * Enables Inverse Destination address filtering. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_dst_addr_filter_inverse(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacDestAddrFilterNor); - return; -} -#endif -/** - * Enables the normal Destination address filtering. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_dst_addr_filter_normal(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacDestAddrFilterNor); - return; -} - -/** - * Enables forwarding of control frames. - * When set forwards all the control frames (incl. unicast and multicast PAUSE frames). - * @param[in] pointer to synopGMACdevice. - * \return void. - * \note Depends on RFE of FlowControlRegister[2] - */ -void synopGMAC_set_pass_control(synopGMACdevice * gmacdev,u32 passcontrol) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase, GmacFrameFilter); - data &= (~GmacPassControl); - data |= passcontrol; - synopGMACWriteReg(gmacdev->MacBase,GmacFrameFilter,data); - return; -} - -/** - * Enables Broadcast frames. - * When enabled Address filtering module passes all incoming broadcast frames. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_broadcast_enable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacBroadcast ); - return; -} -/** - * Disable Broadcast frames. - * When disabled Address filtering module filters all incoming broadcast frames. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_broadcast_disable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacBroadcast); - return; -} -#endif - -/** - * Enables Multicast frames. - * When enabled all multicast frames are passed. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_multicast_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacMulticastFilter); - return; -} -#endif -/** - * Disable Multicast frames. - * When disabled multicast frame filtering depends on HMC bit. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_multicast_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacMulticastFilter); - return; -} - -/** - * Enables multicast hash filtering. - * When enabled GMAC performs teh destination address filtering according to the hash table. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_multicast_hash_filter_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacMcastHashFilter); - return; -} -#endif -/** - * Disables multicast hash filtering. - * When disabled GMAC performs perfect destination address filtering for multicast frames, it compares - * DA field with the value programmed in DA register. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_multicast_hash_filter_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacMcastHashFilter); - return; -} - -/** - * Enables promiscous mode. - * When enabled Address filter modules pass all incoming frames regardless of their Destination - * and source addresses. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_promisc_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacPromiscuousMode); - return; -} -#endif -/** - * Clears promiscous mode. - * When called the GMAC falls back to normal operation from promiscous mode. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_promisc_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacPromiscuousMode); - return; -} - - -/** - * Enables unicast hash filtering. - * When enabled GMAC performs the destination address filtering of unicast frames according to the hash table. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_unicast_hash_filter_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacUcastHashFilter); - return; -} -#endif -/** - * Disables multicast hash filtering. - * When disabled GMAC performs perfect destination address filtering for unicast frames, it compares - * DA field with the value programmed in DA register. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_unicast_hash_filter_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFrameFilter, GmacUcastHashFilter); - return; -} - -/*Flow control configuration functions*/ - -/** - * Enables detection of pause frames with stations unicast address. - * When enabled GMAC detects the pause frames with stations unicast address in addition to the - * detection of pause frames with unique multicast address. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacUnicastPauseFrame); - return; -} -#endif -/** - * Disables detection of pause frames with stations unicast address. - * When disabled GMAC only detects with the unique multicast address (802.3x). - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFlowControl, GmacUnicastPauseFrame); - return; -} -/** - * Rx flow control enable. - * When Enabled GMAC will decode the rx pause frame and disable the tx for a specified time. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_rx_flow_control_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacRxFlowControl); - return; -} -/** - * Rx flow control disable. - * When disabled GMAC will not decode pause frame. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_rx_flow_control_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFlowControl, GmacRxFlowControl); - return; -} -/** - * Tx flow control enable. - * When Enabled - * - In full duplex GMAC enables flow control operation to transmit pause frames. - * - In Half duplex GMAC enables the back pressure operation - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_tx_flow_control_enable(synopGMACdevice * gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacTxFlowControl); - return; -} - -/** - * Tx flow control disable. - * When Disabled - * - In full duplex GMAC will not transmit any pause frames. - * - In Half duplex GMAC disables the back pressure feature. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_tx_flow_control_disable(synopGMACdevice * gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacFlowControl, GmacTxFlowControl); - return; -} - -/** - * Initiate Flowcontrol operation. - * When Set - * - In full duplex GMAC initiates pause control frame. - * - In Half duplex GMAC initiates back pressure function. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_tx_activate_flow_control(synopGMACdevice * gmacdev) -{ - //In case of full duplex check for this bit to b'0. if it is read as b'1 indicates that - //control frame transmission is in progress. - if(gmacdev->Speed == FULLDUPLEX){ - if(!synopGMACCheckBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure)) - synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure); - } - else{ //if half duplex mode - - synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure); - } - - return; -} -#endif - -/** - * stops Flowcontrol operation. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_tx_deactivate_flow_control(synopGMACdevice * gmacdev) -{ - //In full duplex this bit is automatically cleared after transmitting a pause control frame. - if(gmacdev->Speed == HALFDUPLEX){ - synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure); - } - return; -} -#endif - -/** - * This enables the pause frame generation after programming the appropriate registers. - * presently activation is set at 3k and deactivation set at 4k. These may have to tweaked - * if found any issues - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_pause_control(synopGMACdevice *gmacdev) -{ - u32 omr_reg; - u32 mac_flow_control_reg; - omr_reg = synopGMACReadReg(gmacdev->DmaBase,DmaControl); - omr_reg |= DmaRxFlowCtrlAct4K | DmaRxFlowCtrlDeact5K |DmaEnHwFlowCtrl; - synopGMACWriteReg(gmacdev->DmaBase, DmaControl, omr_reg); - - mac_flow_control_reg = synopGMACReadReg(gmacdev->MacBase,GmacFlowControl); - mac_flow_control_reg |= GmacRxFlowControl | GmacTxFlowControl | 0xFFFF0000; - synopGMACWriteReg(gmacdev->MacBase,GmacFlowControl,mac_flow_control_reg); - - return; - -} - -/** - * Example mac initialization sequence. - * This function calls the initialization routines to initialize the GMAC register. - * One can change the functions invoked here to have different configuration as per the requirement - * @param[in] pointer to synopGMACdevice. - * \return Returns 0 on success. - */ -s32 synopGMAC_mac_init(synopGMACdevice * gmacdev) -{ - u32 PHYreg; - - if(gmacdev->DuplexMode == FULLDUPLEX){ - TR("\n===phy FULLDUPLEX MODE\n"); //sw: debug - synopGMAC_wd_enable(gmacdev); - synopGMAC_jab_enable(gmacdev); - synopGMAC_frame_burst_enable(gmacdev); - synopGMAC_jumbo_frame_disable(gmacdev); - synopGMAC_rx_own_enable(gmacdev); -#if SYNOP_LOOPBACK_MODE - synopGMAC_loopback_on(gmacdev); -#else - synopGMAC_loopback_off(gmacdev); -#endif - synopGMAC_set_full_duplex(gmacdev); //1 - synopGMAC_retry_enable(gmacdev); - synopGMAC_pad_crc_strip_disable(gmacdev); - synopGMAC_back_off_limit(gmacdev,GmacBackoffLimit0); - synopGMAC_deferral_check_disable(gmacdev); - - synopGMAC_tx_enable(gmacdev); //according to Tang Dan's commitment - synopGMAC_rx_enable(gmacdev); - - synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaStoreAndForward );//3 - synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaFwdErrorFrames ); - if(gmacdev->Speed == SPEED1000) - synopGMAC_select_gmii(gmacdev); - else{ - synopGMAC_select_mii(gmacdev); - if(gmacdev->Speed == SPEED100) - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed100); - else - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed10); - } - - - /*Frame Filter Configuration*/ - synopGMAC_frame_filter_enable(gmacdev); //2 - //synopGMAC_frame_filter_disable(gmacdev); //2 - synopGMAC_set_pass_control(gmacdev,GmacPassControl0); - synopGMAC_broadcast_enable(gmacdev); - synopGMAC_src_addr_filter_disable(gmacdev); - synopGMAC_multicast_disable(gmacdev); - //synopGMAC_dst_addr_filter_normal(gmacdev); //scl - synopGMAC_dst_addr_filter_inverse(gmacdev); - synopGMAC_multicast_hash_filter_disable(gmacdev); - synopGMAC_promisc_disable(gmacdev); - synopGMAC_unicast_hash_filter_disable(gmacdev); - - /*Flow Control Configuration*/ - synopGMAC_unicast_pause_frame_detect_disable(gmacdev); - synopGMAC_rx_flow_control_enable(gmacdev); - synopGMAC_tx_flow_control_enable(gmacdev); - } - else{//for Half Duplex configuration - - TR("\n===phy HALFDUPLEX MODE\n"); //sw: debug - synopGMAC_wd_enable(gmacdev ); - synopGMAC_jab_enable(gmacdev); - synopGMAC_frame_burst_enable(gmacdev); - synopGMAC_jumbo_frame_disable(gmacdev); - synopGMAC_rx_own_enable(gmacdev); -#if SYNOP_LOOPBACK_MODE - synopGMAC_loopback_on(gmacdev); -#else - synopGMAC_loopback_off(gmacdev); -#endif - synopGMAC_set_half_duplex(gmacdev); - synopGMAC_retry_enable(gmacdev); - synopGMAC_pad_crc_strip_disable(gmacdev); - synopGMAC_back_off_limit(gmacdev,GmacBackoffLimit0); - synopGMAC_deferral_check_disable(gmacdev); - -//sw: set efe & tsf - synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaStoreAndForward ); - synopGMACSetBits(gmacdev->DmaBase,DmaControl, DmaFwdErrorFrames ); -//sw: put it in the end - synopGMAC_tx_enable(gmacdev); - synopGMAC_rx_enable(gmacdev); - - - if(gmacdev->Speed == SPEED1000) - synopGMAC_select_gmii(gmacdev); - else{ - synopGMAC_select_mii(gmacdev ); - if(gmacdev->Speed == SPEED100) - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed100 ); - else - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacFESpeed10 ); - } - -// synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDisableCrs); -// synopGMAC_select_gmii(gmacdev); - - /*Frame Filter Configuration*/ - synopGMAC_frame_filter_enable(gmacdev); -// synopGMAC_frame_filter_disable(gmacdev); - - synopGMAC_set_pass_control(gmacdev,GmacPassControl0); - synopGMAC_broadcast_enable(gmacdev); - synopGMAC_src_addr_filter_disable(gmacdev); - synopGMAC_multicast_disable(gmacdev); - synopGMAC_dst_addr_filter_normal(gmacdev); - synopGMAC_multicast_hash_filter_disable(gmacdev); - - synopGMAC_promisc_disable(gmacdev); -// synopGMAC_promisc_enable(gmacdev); - synopGMAC_unicast_hash_filter_disable(gmacdev); - -//sw: loopback mode -// synopGMAC_loopback_on(gmacdev); - - /*Flow Control Configuration*/ - synopGMAC_unicast_pause_frame_detect_disable(gmacdev); - synopGMAC_rx_flow_control_disable(gmacdev); - synopGMAC_tx_flow_control_disable(gmacdev); - - /*To set PHY register to enable CRS on Transmit*/ - } - return 0; -} - - -/** - * Sets the Mac address in to GMAC register. - * This function sets the MAC address to the MAC register in question. - * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. - * @param[in] Register offset for Mac address high - * @param[in] Register offset for Mac address low - * @param[in] buffer containing mac address to be programmed. - * \return 0 upon success. Error code upon failure. - */ -s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) -{ - u32 data; - - data = (MacAddr[5] << 8) | MacAddr[4]; - synopGMACWriteReg(gmacdev->MacBase,MacHigh,data); - data = (MacAddr[3] << 24) | (MacAddr[2] << 16) | (MacAddr[1] << 8) | MacAddr[0] ; - synopGMACWriteReg(gmacdev->MacBase,MacLow,data); - - return 0; -} - - -/** - * Get the Mac address in to the address specified. - * The mac register contents are read and written to buffer passed. - * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. - * @param[in] Register offset for Mac address high - * @param[in] Register offset for Mac address low - * @param[out] buffer containing the device mac address. - * \return 0 upon success. Error code upon failure. - */ -s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) -{ - u32 data; - - data = synopGMACReadReg(gmacdev->MacBase,MacHigh); - MacAddr[5] = (data >> 8) & 0xff; - MacAddr[4] = (data) & 0xff; - - data = synopGMACReadReg(gmacdev->MacBase,MacLow); - MacAddr[3] = (data >> 24) & 0xff; - MacAddr[2] = (data >> 16) & 0xff; - MacAddr[1] = (data >> 8 ) & 0xff; - MacAddr[0] = (data ) & 0xff; - -// rt_kprintf("MacAddr = 0x%x\t0x%x\t0x%x\t0x%x\t0x%x\t0x%x\n",MacAddr[0],MacAddr[1],MacAddr[2],MacAddr[3],MacAddr[4],MacAddr[5]); - - return 0; -} - - -/** - * Attaches the synopGMAC device structure to the hardware. - * Device structure is populated with MAC/DMA and PHY base addresses. - * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. - * @param[in] GMAC IP mac base address. - * @param[in] GMAC IP dma base address. - * @param[in] GMAC IP phy base address. - * \return 0 upon success. Error code upon failure. - * \note This is important function. No kernel api provided by Synopsys - */ - -s32 synopGMAC_attach (synopGMACdevice * gmacdev, u32 macBase, u32 dmaBase, u32 phyBase,u8 *mac_addr) -{ - /*Make sure the Device data strucure is cleared before we proceed further*/ - rt_memset((void *) gmacdev,0,sizeof(synopGMACdevice)); - /*Populate the mac and dma base addresses*/ - gmacdev->MacBase = macBase; - gmacdev->DmaBase = dmaBase; - gmacdev->PhyBase = phyBase; -// rt_kprintf("gmacdev->DmaBase = 0x%x\n", gmacdev->DmaBase); -// rt_kprintf("dmaBase = 0x%x\n", dmaBase); - { - int i,j; - u16 data; - for (i = phyBase,j=0;j<32;i=(i+1)&0x1f,j++) - { - synopGMAC_read_phy_reg(gmacdev->MacBase,i,2,&data); - if(data != 0 && data != 0xffff) break; - synopGMAC_read_phy_reg(gmacdev->MacBase,i,3,&data); - if(data != 0 && data != 0xffff) break; - } - - if(j==32) { - rt_kprintf("phy_detect: can't find PHY!\n"); - } - gmacdev->PhyBase = i; - } - -// synopGMAC_get_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr); - - /* Program/flash in the station/IP's Mac address */ - synopGMAC_set_mac_addr(gmacdev,GmacAddr0High,GmacAddr0Low, mac_addr); - - return 0; -} - - - - -/** - * Initialize the rx descriptors for ring or chain mode operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) - * - data1 and data2 set to 0. (note) - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor - * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. - */ -void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) -{ - desc->status = 0; - desc->length = last_ring_desc ? RxDescEndOfRing : 0; - desc->buffer1 = 0; - desc->buffer2 = 0; - desc->data1 = 0; - desc->data2 = 0; - desc->dummy1 = 0; - desc->dummy2 = 0; - - return; -} -void synopGMAC_rx_desc_recycle(DmaDesc *desc, bool last_ring_desc) -{ - desc->status = DescOwnByDma; - desc->length = last_ring_desc ? RxDescEndOfRing : 0; - //desc->buffer1 = 0; - //desc->buffer2 = 0; - //desc->data1 = 0; - //desc->data2 = 0; - desc->dummy1 = 0; - desc->dummy2 = 0; - - return; -} -/** - * Initialize the tx descriptors for ring or chain mode operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) - * - data1 and data2 set to 0. (note) - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor - * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. - */ -void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) -{ - #ifdef ENH_DESC - desc->status = last_ring_desc? TxDescEndOfRing : 0; - desc->length = 0; - #else - desc->length = last_ring_desc? TxDescEndOfRing : 0; - #endif -//sw - desc->status = 0; - - desc->buffer1 = 0; - desc->buffer2 = 0; - desc->data1 = 0; - desc->data2 = 0; - desc->dummy1 = 0; - desc->dummy2 = 0; - return; -} - - - -/** - * Initialize the rx descriptors for chain mode of operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0. - * - data1 and data2 set to 0. - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - */ - -void synopGMAC_rx_desc_init_chain(DmaDesc * desc) -{ - desc->status = 0; - desc->length = RxDescChain; - desc->buffer1 = 0; - desc->data1 = 0; - return; -} -/** - * Initialize the rx descriptors for chain mode of operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0. - * - data1 and data2 set to 0. - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - */ -void synopGMAC_tx_desc_init_chain(DmaDesc * desc) -{ - #ifdef ENH_DESC - desc->status = TxDescChain; - desc->length = 0; - #else - desc->length = TxDescChain; - #endif - desc->buffer1 = 0; - desc->data1 = 0; - return; -} - - -s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev) -{ - s32 i; - for(i =0; i < gmacdev -> TxDescCount; i++){ - synopGMAC_tx_desc_init_ring(gmacdev->TxDesc + i, i == gmacdev->TxDescCount-1); - } - TR("At line %d\n",__LINE__); - for(i =0; i < gmacdev -> RxDescCount; i++){ - synopGMAC_rx_desc_init_ring(gmacdev->RxDesc + i, i == gmacdev->RxDescCount-1); - } - - gmacdev->TxNext = 0; - gmacdev->TxBusy = 0; - gmacdev->RxNext = 0; - gmacdev->RxBusy = 0; - - return -ESYNOPGMACNOERR; -} -/** - * Programs the DmaRxBaseAddress with the Rx descriptor base address. - * Rx Descriptor's base address is available in the gmacdev structure. This function progrms the - * Dma Rx Base address with the starting address of the descriptor ring or chain. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev) -{ - DEBUG_MES("gmacdev->RxDescDma = %08x\n", gmacdev->RxDescDma); - synopGMACWriteReg(gmacdev->DmaBase,DmaRxBaseAddr,(u32)gmacdev->RxDescDma ); - return; -} - -/** - * Programs the DmaTxBaseAddress with the Tx descriptor base address. - * Tx Descriptor's base address is available in the gmacdev structure. This function progrms the - * Dma Tx Base address with the starting address of the descriptor ring or chain. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev) -{ - synopGMACWriteReg(gmacdev->DmaBase,DmaTxBaseAddr,(u32)gmacdev->TxDescDma); - return; -} - - -/** - * Makes the Dma as owner for this descriptor. - * This function sets the own bit of status field of the DMA descriptor, - * indicating the DMA is the owner for this descriptor. - * @param[in] pointer to DmaDesc structure. - * \return returns void. - */ -void synopGMAC_set_owner_dma(DmaDesc *desc) -{ -desc->status |= DescOwnByDma; -} - -/** - * set tx descriptor to indicate SOF. - * This Descriptor contains the start of ethernet frame. - * @param[in] pointer to DmaDesc structure. - * \return returns void. - */ -void synopGMAC_set_desc_sof(DmaDesc *desc) -{ -#ifdef ENH_DESC -desc->status |= DescTxFirst;//ENH_DESC -#else -desc->length |= DescTxFirst; -#endif - -} - -/** - * set tx descriptor to indicate EOF. - * This descriptor contains the End of ethernet frame. - * @param[in] pointer to DmaDesc structure. - * \return returns void. - */ -void synopGMAC_set_desc_eof(DmaDesc *desc) -{ -#ifdef ENH_DESC -desc->status |= DescTxLast;//ENH_DESC -#else -desc->length |= DescTxLast; -#endif -} - - -/** - * checks whether this descriptor contains start of frame. - * This function is to check whether the descriptor's data buffer - * contains a fresh ethernet frame? - * @param[in] pointer to DmaDesc structure. - * \return returns true if SOF in current descriptor, else returns fail. - */ -bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc) -{ -return ((desc->status & DescRxFirst) == DescRxFirst); -} - -/** - * checks whether this descriptor contains end of frame. - * This function is to check whether the descriptor's data buffer - * contains end of ethernet frame? - * @param[in] pointer to DmaDesc structure. - * \return returns true if SOF in current descriptor, else returns fail. - */ -bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc) -{ -return ((desc->status & DescRxLast) == DescRxLast); -} - -/** - * checks whether destination address filter failed in the rx frame. - * @param[in] pointer to DmaDesc structure. - * \return returns true if Failed, false if not. - */ -bool synopGMAC_is_da_filter_failed(DmaDesc *desc) -{ -return ((desc->status & DescDAFilterFail) == DescDAFilterFail); -} - -/** - * checks whether source address filter failed in the rx frame. - * @param[in] pointer to DmaDesc structure. - * \return returns true if Failed, false if not. - */ -bool synopGMAC_is_sa_filter_failed(DmaDesc *desc) -{ -return ((desc->status & DescSAFilterFail) == DescSAFilterFail); -} - -/** - * Checks whether the descriptor is owned by DMA. - * If descriptor is owned by DMA then the OWN bit is set to 1. This API is same for both ring and chain mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if Dma owns descriptor and false if not. - */ -bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc) -{ -return ((desc->status & DescOwnByDma) == DescOwnByDma ); -} - -/** - * returns the byte length of received frame including CRC. - * This returns the no of bytes received in the received ethernet frame including CRC(FCS). - * @param[in] pointer to DmaDesc structure. - * \return returns the length of received frame lengths in bytes. - */ -u32 synopGMAC_get_rx_desc_frame_length(u32 status) -{ - return ((status & DescFrameLengthMask) >> DescFrameLengthShift); -} - -/** - * Checks whether the descriptor is valid - * if no errors such as CRC/Receive Error/Watchdog Timeout/Late collision/Giant Frame/Overflow/Descriptor - * error the descritpor is said to be a valid descriptor. - * @param[in] pointer to DmaDesc structure. - * \return True if desc valid. false if error. - */ -bool synopGMAC_is_desc_valid(u32 status) -{ - return ((status & DescError) == 0); -} - -/** - * Checks whether the descriptor is empty. - * If the buffer1 and buffer2 lengths are zero in ring mode descriptor is empty. - * In chain mode buffer2 length is 0 but buffer2 itself contains the next descriptor address. - * @param[in] pointer to DmaDesc structure. - * \return returns true if descriptor is empty, false if not empty. - */ -bool synopGMAC_is_desc_empty(DmaDesc *desc) -{ - //if both the buffer1 length and buffer2 length are zero desc is empty - return(((desc->length & DescSize1Mask) == 0) && ((desc->length & DescSize2Mask) == 0) ); -} - - -/** - * Checks whether the rx descriptor is valid. - * if rx descripor is not in error and complete frame is available in the same descriptor - * @param[in] pointer to DmaDesc structure. - * \return returns true if no error and first and last desc bits are set, otherwise it returns false. - */ -bool synopGMAC_is_rx_desc_valid(u32 status) -{ - return ((status & DescError) == 0) && ((status & DescRxFirst) == DescRxFirst) && ((status & DescRxLast) == DescRxLast); -} - -/** - * Checks whether the tx is aborted due to collisions. - * @param[in] pointer to DmaDesc structure. - * \return returns true if collisions, else returns false. - */ -bool synopGMAC_is_tx_aborted(u32 status) -{ - return (((status & DescTxLateCollision) == DescTxLateCollision) | ((status & DescTxExcCollisions) == DescTxExcCollisions)); - -} - -/** - * Checks whether the tx carrier error. - * @param[in] pointer to DmaDesc structure. - * \return returns true if carrier error occured, else returns falser. - */ -bool synopGMAC_is_tx_carrier_error(u32 status) -{ - return (((status & DescTxLostCarrier) == DescTxLostCarrier) | ((status & DescTxNoCarrier) == DescTxNoCarrier)); -} - - -/** - * Gives the transmission collision count. - * returns the transmission collision count indicating number of collisions occured before the frame was transmitted. - * Make sure to check excessive collision didnot happen to ensure the count is valid. - * @param[in] pointer to DmaDesc structure. - * \return returns the count value of collision. - */ -u32 synopGMAC_get_tx_collision_count(u32 status) -{ - return ((status & DescTxCollMask) >> DescTxCollShift); -} -u32 synopGMAC_is_exc_tx_collisions(u32 status) -{ - return ((status & DescTxExcCollisions) == DescTxExcCollisions); -} - - -/** - * Check for damaged frame due to overflow or collision. - * Retruns true if rx frame was damaged due to buffer overflow in MTL or late collision in half duplex mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_frame_damaged(u32 status) -{ -//bool synopGMAC_dma_rx_collisions(u32 status) - return (((status & DescRxDamaged) == DescRxDamaged) | ((status & DescRxCollision) == DescRxCollision)); -} - -/** - * Check for damaged frame due to collision. - * Retruns true if rx frame was damaged due to late collision in half duplex mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_frame_collision(u32 status) -{ -//bool synopGMAC_dma_rx_collisions(u32 status) - return ((status & DescRxCollision) == DescRxCollision); -} - -/** - * Check for receive CRC error. - * Retruns true if rx frame CRC error occured. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_crc(u32 status) -{ -//u32 synopGMAC_dma_rx_crc(u32 status) - return ((status & DescRxCrc) == DescRxCrc); -} - -/** - * Indicates rx frame has non integer multiple of bytes. (odd nibbles). - * Retruns true if dribbling error in rx frame. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_frame_dribbling_errors(u32 status) -{ -//u32 synopGMAC_dma_rx_frame_errors(u32 status) - return ((status & DescRxDribbling) == DescRxDribbling); -} - -/** - * Indicates error in rx frame length. - * Retruns true if received frame length doesnot match with the length field - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_frame_length_errors(u32 status) -{ -//u32 synopGMAC_dma_rx_length_errors(u32 status) - return((status & DescRxLengthError) == DescRxLengthError); -} - -/** - * Checks whether this rx descriptor is last rx descriptor. - * This returns true if it is last descriptor either in ring mode or in chain mode. - * @param[in] pointer to devic structure. - * @param[in] pointer to DmaDesc structure. - * \return returns true if it is last descriptor, false if not. - * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). - */ -bool synopGMAC_is_last_rx_desc(synopGMACdevice * gmacdev,DmaDesc *desc) -{ -//bool synopGMAC_is_last_desc(DmaDesc *desc) -return (((desc->length & RxDescEndOfRing) == RxDescEndOfRing) || ((u32)gmacdev->RxDesc == desc->data2)); -} - -/** - * Checks whether this tx descriptor is last tx descriptor. - * This returns true if it is last descriptor either in ring mode or in chain mode. - * @param[in] pointer to devic structure. - * @param[in] pointer to DmaDesc structure. - * \return returns true if it is last descriptor, false if not. - * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). - */ -bool synopGMAC_is_last_tx_desc(synopGMACdevice * gmacdev,DmaDesc *desc) -{ -//bool synopGMAC_is_last_desc(DmaDesc *desc) -#ifdef ENH_DESC - return (((desc->status & TxDescEndOfRing) == TxDescEndOfRing) || ((u32)gmacdev->TxDesc == desc->data2)); -#else - return (((desc->length & TxDescEndOfRing) == TxDescEndOfRing) || ((u32)gmacdev->TxDesc == desc->data2)); -#endif -} - -/** - * Checks whether this rx descriptor is in chain mode. - * This returns true if it is this descriptor is in chain mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if chain mode is set, false if not. - */ -bool synopGMAC_is_rx_desc_chained(DmaDesc * desc) -{ - return((desc->length & RxDescChain) == RxDescChain); -} - -/** - * Checks whether this tx descriptor is in chain mode. - * This returns true if it is this descriptor is in chain mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if chain mode is set, false if not. - */ -bool synopGMAC_is_tx_desc_chained(DmaDesc * desc) -{ -#ifdef ENH_DESC - return((desc->status & TxDescChain) == TxDescChain); -#else - return((desc->length & TxDescChain) == TxDescChain); -#endif -} - -/** - * Driver Api to get the descriptor field information. - * This returns the status, dma-able address of buffer1, the length of buffer1, virtual address of buffer1 - * dma-able address of buffer2, length of buffer2, virtural adddress of buffer2. - * @param[in] pointer to DmaDesc structure. - * @param[out] pointer to status field fo descriptor. - * @param[out] dma-able address of buffer1. - * @param[out] length of buffer1. - * @param[out] virtual address of buffer1. - * @param[out] dma-able address of buffer2. - * @param[out] length of buffer2. - * @param[out] virtual address of buffer2. - * \return returns void. - */ -void synopGMAC_get_desc_data(DmaDesc * desc, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2) -{ - - if(Status != 0) - *Status = desc->status; - - if(Buffer1 != 0) - *Buffer1 = desc->buffer1; - if(Length1 != 0) - *Length1 = (desc->length & DescSize1Mask) >> DescSize1Shift; - if(Data1 != 0) - *Data1 = desc->data1; - - if(Buffer2 != 0) - *Buffer2 = desc->buffer2; - if(Length2 != 0) - *Length2 = (desc->length & DescSize2Mask) >> DescSize2Shift; - if(Data1 != 0) - *Data2 = desc->data2; - - return; - -} - -#ifdef ENH_DESC_8W -/** - * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor - * Get the index and address of Tx desc. - * This api is same for both ring mode and chain mode. - * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is - * over. This returns the descriptor fields to the caller. - * @param[in] pointer to synopGMACdevice. - * @param[out] status field of the descriptor. - * @param[out] Dma-able buffer1 pointer. - * @param[out] length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present tx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, - u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_Low) -{ - u32 txover = gmacdev->TxBusy; - DmaDesc * txdesc = gmacdev->TxBusyDesc; - - if(synopGMAC_is_desc_owned_by_dma(txdesc)) - return -1; - if(synopGMAC_is_desc_empty(txdesc)) - return -1; - - (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now - - if(Status != 0) - *Status = txdesc->status; - - if(Ext_Status != 0) - *Ext_Status = txdesc->extstatus; - if(Time_Stamp_High != 0) - *Time_Stamp_High = txdesc->timestamphigh; - if(Time_Stamp_Low != 0) - *Time_Stamp_High = txdesc->timestamplow; - - if(Buffer1 != 0) - *Buffer1 = txdesc->buffer1; - if(Length1 != 0) - *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; - if(Data1 != 0) - *Data1 = txdesc->data1; - - if(Buffer2 != 0) - *Buffer2 = txdesc->buffer2; - if(Length2 != 0) - *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; - if(Data1 != 0) - *Data2 = txdesc->data2; - - gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; - - if(synopGMAC_is_tx_desc_chained(txdesc)){ - gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; - synopGMAC_tx_desc_init_chain(txdesc); - } - else{ - gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); - synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev,txdesc)); - } - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); - - return txover; -} -#else - -/** - * Get the index and address of Tx desc. - * This api is same for both ring mode and chain mode. - * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is - * over. This returns the descriptor fields to the caller. - * @param[in] pointer to synopGMACdevice. - * @param[out] status field of the descriptor. - * @param[out] Dma-able buffer1 pointer. - * @param[out] length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present tx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2 ) -{ - u32 txover = gmacdev->TxBusy; - DmaDesc * txdesc = gmacdev->TxBusyDesc; - int i; - -//sw: dbg - - - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_R); - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); -#if SYNOP_TX_DEBUG - printf("Cache sync before get a used tx dma desc!\n"); - printf("\n==%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); -#endif - if(synopGMAC_is_desc_owned_by_dma(txdesc)) - { - return -1; - } -// gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; -// gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); - if(synopGMAC_is_desc_empty(txdesc)) - { - return -1; - } - (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now - - if(Status != 0) - *Status = txdesc->status; - - if(Buffer1 != 0) - *Buffer1 = txdesc->buffer1; - if(Length1 != 0) - *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; - if(Data1 != 0) - *Data1 = txdesc->data1; - - if(Buffer2 != 0) - *Buffer2 = txdesc->buffer2; - if(Length2 != 0) - *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; - if(Data1 != 0) - *Data2 = txdesc->data2; - - gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; - - if(synopGMAC_is_tx_desc_chained(txdesc)){ - gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; - synopGMAC_tx_desc_init_chain(txdesc); - } - else{ - gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); - synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev,txdesc)); - } - //printf("%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); -#if SYNOP_TX_DEBUG - printf("Cache sync after re-init a tx dma desc!\n"); -#endif - - return txover; -} - -#endif -/** - * Populate the tx desc structure with the buffer address. - * Once the driver has a packet ready to be transmitted, this function is called with the - * valid dma-able buffer addresses and their lengths. This function populates the descriptor - * and make the DMA the owner for the descriptor. This function also controls whetther Checksum - * offloading to be done in hardware or not. - * This api is same for both ring mode and chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] Dma-able buffer1 pointer. - * @param[in] length of buffer1 (Max is 2048). - * @param[in] virtual pointer for buffer1. - * @param[in] Dma-able buffer2 pointer. - * @param[in] length of buffer2 (Max is 2048). - * @param[in] virtual pointer for buffer2. - * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. - * @param[in] u32 indicating whether the checksum offloading in HW/SW. - * \return returns present tx descriptor index on success. Negative value if error. - */ -u32 len; -s32 synopGMAC_set_tx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2,u32 offload_needed,u32 * index, DmaDesc * Dpr) -{ - u32 txnext = gmacdev->TxNext; - DmaDesc * txdesc = gmacdev->TxNextDesc; - - *index = txnext; - Dpr = txdesc; - - if(!synopGMAC_is_desc_empty(txdesc)) - { - TR("set tx qptr: desc empty!\n"); - return -1; - } - - (gmacdev->BusyTxDesc)++; //busy tx descriptor is reduced by one as it will be handed over to Processor now - - if(synopGMAC_is_tx_desc_chained(txdesc)){ - txdesc->length |= ((Length1 <status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC - #else - txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor - #endif - - txdesc->buffer1 = Buffer1; - txdesc->data1 = Data1; - - if(offload_needed){ - /* - Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, - before calling any of the functions given below. - */ - synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); - synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); -// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); - } - #ifdef ENH_DESC - txdesc->status |= DescOwnByDma;//ENH_DESC - #else - txdesc->status = DescOwnByDma; - #endif - - gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txnext + 1; - gmacdev->TxNextDesc = (DmaDesc *)txdesc->data2; - } - else{ -// printf("synopGMAC_set_tx_qptr:in ring mode\n"); - txdesc->length |= (((Length1 <status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC - #else - txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor - #endif - - txdesc->buffer1 = Buffer1; - txdesc->data1 = Data1; - - txdesc->buffer2 = Buffer2; - txdesc->data2 = Data2; - - if(offload_needed){ - /* - Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, - before calling any of the functions given below. - */ -//sw: i am not sure about the checksum.so i omit it in the outside - synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); - synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); -// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); - } - #ifdef ENH_DESC - txdesc->status |= DescOwnByDma;//ENH_DESC - #else -// printf("synopGMAC_set_tx_qptr:give the tx descroptor to dma\n"); - txdesc->status = DescOwnByDma; - #endif - - gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txnext + 1; - gmacdev->TxNextDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); - } - - -#if SYNOP_TX_DEBUG - printf("%02d %08x %08x %08x %08x %08x %08x %08x\n",txnext,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); -#endif - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); -#if SYNOP_TX_DEBUG - printf("Cache sync to set a tx desc!\n"); -#endif - //pci_sync_cache(0, (vm_offset_t)(txdesc->data1), 32, SYNC_W); -#if SYNOP_TX_DEBUG - //printf("Cache sync for data in the buf of the tx desc!\n"); -#endif - return txnext; -} -#ifdef ENH_DESC_8W -/** - * Prepares the descriptor to receive packets. - * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields - * and handed over to DMA by setting the ownership. After successful return from this function the - * descriptor is added to the receive descriptor pool/queue. - * This api is same for both ring mode and chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] Dma-able buffer1 pointer. - * @param[in] length of buffer1 (Max is 2048). - * @param[in] Dma-able buffer2 pointer. - * @param[in] length of buffer2 (Max is 2048). - * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present rx descriptor index on success. Negative value if error. - */ -// dma_addr RX_BUF_SIZE skb -s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2) -{ - u32 rxnext = gmacdev->RxNext; - DmaDesc * rxdesc = gmacdev->RxNextDesc; - - if(!synopGMAC_is_desc_empty(rxdesc)) - return -1; - - if(synopGMAC_is_rx_desc_chained(rxdesc)){ - rxdesc->length |= ((Length1 <buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->extstatus = 0; - rxdesc->reserved1 = 0; - rxdesc->timestamplow = 0; - rxdesc->timestamphigh = 0; - - if((rxnext % MODULO_INTERRUPT) !=0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; - } - else{ - rxdesc->length |= (((Length1 <buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->extstatus = 0; - rxdesc->reserved1 = 0; - rxdesc->timestamplow = 0; - rxdesc->timestamphigh = 0; - - rxdesc->buffer2 = Buffer2; - rxdesc->data2 = Data2; - - if((rxnext % MODULO_INTERRUPT) !=0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - } -#if SYNOP_RX_DEBUG - TR("%02d %08x %08x %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2,rxdesc->dummy1,rxdesc->dummy2); -#endif - - (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one - //pci_sync_cache(0, (vm_offset_t)rxdesc,64, SYNC_W); - return rxnext; -} - -#else -/** - * Prepares the descriptor to receive packets. - * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields - * and handed over to DMA by setting the ownership. After successful return from this function the - * descriptor is added to the receive descriptor pool/queue. - * This api is same for both ring mode and chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] Dma-able buffer1 pointer. - * @param[in] length of buffer1 (Max is 2048). - * @param[in] Dma-able buffer2 pointer. - * @param[in] length of buffer2 (Max is 2048). - * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present rx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2) -{ - u32 rxnext = gmacdev->RxNext; - DmaDesc * rxdesc = gmacdev->RxNextDesc; - - if(!synopGMAC_is_desc_empty(rxdesc)) - return -1; - - if(synopGMAC_is_rx_desc_chained(rxdesc)){ - rxdesc->length |= ((Length1 <buffer1 = Buffer1; - rxdesc->data1 = Data1; - - if((rxnext % MODULO_INTERRUPT) !=0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; - } - else{ - rxdesc->length |= (((Length1 <buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->buffer2 = Buffer2; - rxdesc->data2 = Data2; - - if((rxnext % MODULO_INTERRUPT) !=0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - } -#if SYNOP_RX_DEBUG - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); -#endif - (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one - - return rxnext; -} - -s32 synopGMAC_set_rx_qptr_init(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2) -{ - u32 rxnext = gmacdev->RxNext; - DmaDesc * rxdesc = gmacdev->RxNextDesc; - -/* sw - if(synopGMAC_is_desc_owned_by_dma(rxdesc)) - return -1; -*/ - - if(!synopGMAC_is_desc_empty(rxdesc)) - return -1; - - if(synopGMAC_is_rx_desc_chained(rxdesc)){ - rxdesc->length |= ((Length1 <buffer1 = Buffer1; - rxdesc->data1 = Data1; - - if((rxnext % MODULO_INTERRUPT) !=0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - rxdesc->status = 0; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; - } - else{ - rxdesc->length |= (((Length1 <buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->buffer2 = Buffer2; - rxdesc->data2 = Data2; - - if((rxnext % MODULO_INTERRUPT) !=0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - rxdesc->status = 0; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - } - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); - (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one - return rxnext; -} -#endif -#ifdef ENH_DESC_8W -/** - * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor - * Get back the descriptor from DMA after data has been received. - * When the DMA indicates that the data is received (interrupt is generated), this function should be - * called to get the descriptor and hence the data buffers received. With successful return from this - * function caller gets the descriptor fields for processing. check the parameters to understand the - * fields returned.` - * @param[in] pointer to synopGMACdevice. - * @param[out] pointer to hold the status of DMA. - * @param[out] Dma-able buffer1 pointer. - * @param[out] pointer to hold length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] pointer to hold length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * \return returns present rx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, - u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_Low) -{ - u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data - //is spread over multiple buffers/descriptors - DmaDesc * rxdesc = gmacdev->RxBusyDesc; - if(synopGMAC_is_desc_owned_by_dma(rxdesc)) - return -1; - if(synopGMAC_is_desc_empty(rxdesc)) - return -1; - - - if(Status != 0) - *Status = rxdesc->status;// send the status of this descriptor - - if(Ext_Status != 0) - *Ext_Status = rxdesc->extstatus; - if(Time_Stamp_High != 0) - *Time_Stamp_High = rxdesc->timestamphigh; - if(Time_Stamp_Low != 0) - *Time_Stamp_Low = rxdesc->timestamplow; - - if(Length1 != 0) - *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; - if(Buffer1 != 0) - *Buffer1 = rxdesc->buffer1; - if(Data1 != 0) - *Data1 = rxdesc->data1; - - if(Length2 != 0) - *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; - if(Buffer2 != 0) - *Buffer2 = rxdesc->buffer2; - if(Data1 != 0) - *Data2 = rxdesc->data2; - - gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - - if(synopGMAC_is_rx_desc_chained(rxdesc)){ - gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; - synopGMAC_rx_desc_init_chain(rxdesc); - //synopGMAC_desc_init_chain(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc),0,0); - } - else{ - gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc)); - } - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); - (gmacdev->BusyRxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now - return(rxnext); - -} -#else - -/** - * Get back the descriptor from DMA after data has been received. - * When the DMA indicates that the data is received (interrupt is generated), this function should be - * called to get the descriptor and hence the data buffers received. With successful return from this - * function caller gets the descriptor fields for processing. check the parameters to understand the - * fields returned.` - * @param[in] pointer to synopGMACdevice. - * @param[out] pointer to hold the status of DMA. - * @param[out] Dma-able buffer1 pointer. - * @param[out] pointer to hold length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] pointer to hold length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * \return returns present rx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2) -{ - u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data - //is spread over multiple buffers/descriptors - DmaDesc * rxdesc = gmacdev->RxBusyDesc; - - u32 len; - if(synopGMAC_is_desc_owned_by_dma(rxdesc)) - { - DEBUG_MES("synopGMAC_get_rx_qptr:DMA descriptor is owned by GMAC!\n"); - return -1; - } - - if(synopGMAC_is_desc_empty(rxdesc)) - { - DEBUG_MES("synopGMAC_get_rx_qptr:rx desc is empty!\n"); - return -1; - } - - if(Status != 0) - *Status = rxdesc->status;// send the status of this descriptor - - if(Length1 != 0) - *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; - if(Buffer1 != 0) - *Buffer1 = rxdesc->buffer1; - if(Data1 != 0) - *Data1 = rxdesc->data1; - if(Length2 != 0) - *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; - if(Buffer2 != 0) - *Buffer2 = rxdesc->buffer2; - if(Data1 != 0) - *Data2 = rxdesc->data2; - - len = synopGMAC_get_rx_desc_frame_length(*Status); - DEBUG_MES("Cache sync for data buffer in rx dma desc: length = 0x%x\n",len); - gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? 0 : rxnext + 1; - if(synopGMAC_is_rx_desc_chained(rxdesc)){ - gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; - synopGMAC_rx_desc_init_chain(rxdesc); - } - else{ - gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev,rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); -//sw: raw data -#if SYNOP_RX_DEBUG - DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); -#endif - synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc)); - } -#if SYNOP_RX_DEBUG - DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n",rxnext,(u32)rxdesc,rxdesc->status,rxdesc->length,rxdesc->buffer1,rxdesc->buffer2,rxdesc->data1,rxdesc->data2); -#endif - - (gmacdev->BusyRxDesc)--; //This returns one descriptor to processor. So busy count will be decremented by one - return(rxnext); - -} - -#endif - -/** - * Clears all the pending interrupts. - * If the Dma status register is read then all the interrupts gets cleared - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - TR("DMA status reg = 0x%x before cleared!\n",data); - synopGMACWriteReg(gmacdev->DmaBase, DmaStatus ,data); - // plat_delay(DEFAULT_LOOP_VARIABLE); -// data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - TR("DMA status reg = 0x%x after cleared!\n",data); -} - -/** - * Returns the all unmasked interrupt status after reading the DmaStatus register. - * @param[in] pointer to synopGMACdevice. - * \return 0 upon success. Error code upon failure. - */ -u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev) -{ - u32 data; - u32 interrupts = 0; - data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - - //data = data & ~0x84; //sw: some bits shoud not be cleaned - synopGMACWriteReg(gmacdev->DmaBase, DmaStatus ,data); //manju: I think this is the appropriate location to clear the interrupts - plat_delay(DEFAULT_LOOP_VARIABLE); - if(data & DmaIntErrorMask) interrupts |= synopGMACDmaError; - if(data & DmaIntRxNormMask) interrupts |= synopGMACDmaRxNormal; - if(data & DmaIntRxAbnMask) interrupts |= synopGMACDmaRxAbnormal; - if(data & DmaIntRxStoppedMask) interrupts |= synopGMACDmaRxStopped; - if(data & DmaIntTxNormMask) interrupts |= synopGMACDmaTxNormal; - if(data & DmaIntTxAbnMask) interrupts |= synopGMACDmaTxAbnormal; - if(data & DmaIntTxStoppedMask) interrupts |= synopGMACDmaTxStopped; - - return interrupts; -} - -/** - * Returns the interrupt mask. - * @param[in] pointer to synopGMACdevice. - * \return 0 upon success. Error code upon failure. - */ -#if UNUSED -u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev) -{ - return(synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt)); -} -#endif - -/** - * Enable all the interrupts. - * Enables the DMA interrupt as specified by the bit mask. - * @param[in] pointer to synopGMACdevice. - * @param[in] bit mask of interrupts to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, interrupts); - return; -} -#endif - - -/** - * Disable all the interrupts. - * Disables all DMA interrupts. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note This function disabled all the interrupts, if you want to disable a particular interrupt then - * use synopGMAC_disable_interrupt(). - */ -void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev) -{ -// rt_kprintf("dmabase = 0x%x\n",gmacdev->DmaBase); - synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, DmaIntDisable); -// synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt); - return; -} - -/** - * Disable interrupt according to the bitfield supplied. - * Disables only those interrupts specified in the bit mask in second argument. - * @param[in] pointer to synopGMACdevice. - * @param[in] bit mask for interrupts to be disabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) -{ - synopGMACClearBits(gmacdev->DmaBase, DmaInterrupt, interrupts); - return; -} -#endif -/** - * Enable the DMA Reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_enable_dma_rx(synopGMACdevice * gmacdev) -{ -// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaRxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data |= DmaRxStart; - TR0(" ===33334\n"); - synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); - TR0(" ===33344\n"); -} - -/** - * Enable the DMA Transmission. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_enable_dma_tx(synopGMACdevice * gmacdev) -{ -// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaTxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data |= DmaTxStart; - synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); - -} - -/** - * Resumes the DMA Transmission. - * the DmaTxPollDemand is written. (the data writeen could be anything). - * This forces the DMA to resume transmission. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_resume_dma_tx(synopGMACdevice * gmacdev) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaTxPollDemand, 1); - -} -/** - * Resumes the DMA Reception. - * the DmaRxPollDemand is written. (the data writeen could be anything). - * This forces the DMA to resume reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_resume_dma_rx(synopGMACdevice * gmacdev) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaRxPollDemand, 0); - -} -/** - * Take ownership of this Descriptor. - * The function is same for both the ring mode and the chain mode DMA structures. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_take_desc_ownership(DmaDesc * desc) -{ - if(desc){ - desc->status &= ~DescOwnByDma; //Clear the DMA own bit -// desc->status |= DescError; // Set the error to indicate this descriptor is bad - } -} - -/** - * Take ownership of all the rx Descriptors. - * This function is called when there is fatal error in DMA transmission. - * When called it takes the ownership of all the rx descriptor in rx descriptor pool/queue from DMA. - * The function is same for both the ring mode and the chain mode DMA structures. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. - */ -void synopGMAC_take_desc_ownership_rx(synopGMACdevice * gmacdev) -{ - s32 i; - DmaDesc *desc; - desc = gmacdev->RxDesc; - for(i = 0; i < gmacdev->RxDescCount; i++){ - if(synopGMAC_is_rx_desc_chained(desc)){ //This descriptor is in chain mode - - synopGMAC_take_desc_ownership(desc); - desc = (DmaDesc *)desc->data2; - } - else{ - synopGMAC_take_desc_ownership(desc + i); - } - } -} - -/** - * Take ownership of all the rx Descriptors. - * This function is called when there is fatal error in DMA transmission. - * When called it takes the ownership of all the tx descriptor in tx descriptor pool/queue from DMA. - * The function is same for both the ring mode and the chain mode DMA structures. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. - */ -void synopGMAC_take_desc_ownership_tx(synopGMACdevice * gmacdev) -{ - s32 i; - DmaDesc *desc; - desc = gmacdev->TxDesc; - for(i = 0; i < gmacdev->TxDescCount; i++){ - if(synopGMAC_is_tx_desc_chained(desc)){ //This descriptor is in chain mode - synopGMAC_take_desc_ownership(desc); - desc = (DmaDesc *)desc->data2; - } - else{ - synopGMAC_take_desc_ownership(desc + i); - } - } - -} - -/** - * Disable the DMA for Transmission. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ - -void synopGMAC_disable_dma_tx(synopGMACdevice * gmacdev) -{ -// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaTxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data &= (~DmaTxStart); - synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); -} -/** - * Disable the DMA for Reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_disable_dma_rx(synopGMACdevice * gmacdev) -{ -// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaRxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data &= (~DmaRxStart); - synopGMACWriteReg(gmacdev->DmaBase, DmaControl ,data); -} - - - -/*******************PMT APIs***************************************/ - - - - -/** - * Enables the assertion of PMT interrupt. - * This enables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame - * reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); - return; -} -#endif -/** - * Disables the assertion of PMT interrupt. - * This disables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame - * reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); - return; -} -/** - * Enables the power down mode of GMAC. - * This function puts the Gmac in power down mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_power_down_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtPowerDown); - return; -} -#endif -/** - * Disables the powerd down setting of GMAC. - * If the driver wants to bring up the GMAC from powerdown mode, even though the magic packet or the - * wake up frames received from the network, this function should be called. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_power_down_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtPowerDown); - return; -} -#endif -/** - * Enables the pmt interrupt generation in powerdown mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); -} -#endif -/** - * Disables the pmt interrupt generation in powerdown mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); -} -#endif -/** - * Enables GMAC to look for Magic packet. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtMagicPktEnable); - return; -} -#endif - -/** - * Enables GMAC to look for wake up frame. - * Wake up frame is defined by the user. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtWakeupFrameEnable); - return; -} -#endif - -/** - * Enables wake-up frame filter to handle unicast packets. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtGlobalUnicast); - return; -} -#endif -/** - * Checks whether the packet received is a magic packet?. - * @param[in] pointer to synopGMACdevice. - * \return returns True if magic packet received else returns false. - */ -bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase,GmacPmtCtrlStatus); - return((data & GmacPmtMagicPktReceived) == GmacPmtMagicPktReceived); -} -/** - * Checks whether the packet received is a wakeup frame?. - * @param[in] pointer to synopGMACdevice. - * \return returns true if wakeup frame received else returns false. - */ -bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase,GmacPmtCtrlStatus); - return((data & GmacPmtWakeupFrameReceived) == GmacPmtWakeupFrameReceived); -} - -/** - * Populates the remote wakeup frame registers. - * Consecutive 8 writes to GmacWakeupAddr writes the wakeup frame filter registers. - * Before commensing a new write, frame filter pointer is reset to 0x0000. - * A small delay is introduced to allow frame filter pointer reset operation. - * @param[in] pointer to synopGMACdevice. - * @param[in] pointer to frame filter contents array. - * \return returns void. - */ -#if UNUSED -void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 * filter_contents) -{ - s32 i; - synopGMACSetBits(gmacdev->MacBase,GmacPmtCtrlStatus,GmacPmtFrmFilterPtrReset); - plat_delay(10); - for(i =0; iMacBase, GmacWakeupAddr, *(filter_contents + i)); - return; - -} -#endif -/*******************PMT APIs***************************************/ -/*******************MMC APIs***************************************/ - -/** - * Freezes the MMC counters. - * This function call freezes the MMC counters. None of the MMC counters are updated - * due to any tx or rx frames until synopGMAC_mmc_counters_resume is called. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterFreeze); - return; -} -#endif -/** - * Resumes the MMC counter updation. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterFreeze); - return; -} -#endif -/** - * Configures the MMC in Self clearing mode. - * Programs MMC interface so that counters are cleared when the counters are read. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterResetOnRead); - return; -} -#endif -/** - * Configures the MMC in non-Self clearing mode. - * Programs MMC interface so that counters are cleared when the counters are read. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterResetOnRead); - return; -} -#endif -/** - * Configures the MMC to stop rollover. - * Programs MMC interface so that counters will not rollover after reaching maximum value. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterStopRollover); - return; -} -/** - * Configures the MMC to rollover. - * Programs MMC interface so that counters will rollover after reaching maximum value. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacMmcCntrl,GmacMmcCounterStopRollover); - return; -} - -/** - * Read the MMC Counter. - * @param[in] pointer to synopGMACdevice. - * @param[in] the counter to be read. - * \return returns the read count value. - */ -u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter) -{ - return( synopGMACReadReg(gmacdev->MacBase,counter)); -} -#endif -/** - * Read the MMC Rx interrupt status. - * @param[in] pointer to synopGMACdevice. - * \return returns the Rx interrupt status. - */ -u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev) -{ - return( synopGMACReadReg(gmacdev->MacBase,GmacMmcIntrRx)); -} -/** - * Read the MMC Tx interrupt status. - * @param[in] pointer to synopGMACdevice. - * \return returns the Tx interrupt status. - */ -u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev) -{ - return( synopGMACReadReg(gmacdev->MacBase,GmacMmcIntrTx)); -} -/** - * Disable the MMC Tx interrupt. - * The MMC tx interrupts are masked out as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] tx interrupt bit mask for which interrupts needs to be disabled. - * \return returns void. - */ -void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACSetBits(gmacdev->MacBase,GmacMmcIntrMaskTx,mask); - return; -} -/** - * Enable the MMC Tx interrupt. - * The MMC tx interrupts are enabled as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] tx interrupt bit mask for which interrupts needs to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACClearBits(gmacdev->MacBase,GmacMmcIntrMaskTx,mask); -} -#endif -/** - * Disable the MMC Rx interrupt. - * The MMC rx interrupts are masked out as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. - * \return returns void. - */ -void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACSetBits(gmacdev->MacBase,GmacMmcIntrMaskRx,mask); - return; -} -/** - * Enable the MMC Rx interrupt. - * The MMC rx interrupts are enabled as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACClearBits(gmacdev->MacBase,GmacMmcIntrMaskRx,mask); - return; -} -#endif -/** - * Disable the MMC ipc rx checksum offload interrupt. - * The MMC ipc rx checksum offload interrupts are masked out as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. - * \return returns void. - */ -void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACSetBits(gmacdev->MacBase,GmacMmcRxIpcIntrMask,mask); - return; -} -/** - * Enable the MMC ipc rx checksum offload interrupt. - * The MMC ipc rx checksum offload interrupts are enabled as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACClearBits(gmacdev->MacBase,GmacMmcRxIpcIntrMask,mask); - return; -} -#endif -/*******************MMC APIs***************************************/ -/*******************Ip checksum offloading APIs***************************************/ - -/** - * Enables the ip checksum offloading in receive path. - * When set GMAC calculates 16 bit 1's complement of all received ethernet frame payload. - * It also checks IPv4 Header checksum is correct. GMAC core appends the 16 bit checksum calculated - * for payload of IP datagram and appends it to Ethernet frame transferred to the application. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacConfig,GmacRxIpcOffload); - return; -} -/** - * Disable the ip checksum offloading in receive path. - * Ip checksum offloading is disabled in the receive path. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacConfig,GmacRxIpcOffload); -} -/** - * Instruct the DMA to drop the packets fails tcp ip checksum. - * This is to instruct the receive DMA engine to drop the recevied packet if they - * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->DmaBase,DmaControl,DmaDisableDropTcpCs); - return; -} -/** - * Instruct the DMA not to drop the packets even if it fails tcp ip checksum. - * This is to instruct the receive DMA engine to allow the packets even if recevied packet - * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->DmaBase,DmaControl,DmaDisableDropTcpCs); - return; -} -#endif - -/** - * When the Enhanced Descriptor is enabled then the bit 0 of RDES0 indicates whether the - * Extended Status is available (RDES4). Time Stamp feature and the Checksum Offload Engine2 - * makes use of this extended status to provide the status of the received packet. - * @param[in] pointer to synopGMACdevice - * \return returns TRUE or FALSE - */ -#ifdef ENH_DESC_8W - -/** - * This function indicates whether extended status is available in the RDES0. - * Any function which accesses the fields of extended status register must ensure a check on this has been made - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev,u32 status) // extended status present indicates that the RDES4 need to be probed -{ - return((status & DescRxEXTsts ) != 0 ); // if extstatus set then it returns 1 -} -/** - * This function returns true if the IP header checksum bit is set in the extended status. - * Valid only when enhaced status available is set in RDES0 bit 0. - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev,u32 ext_status) // IP header (IPV4) checksum error -{ - return((ext_status & DescRxIpHeaderError) != 0 ); // if IPV4 header error return 1 -} -/** - * This function returns true if the Checksum is bypassed in the hardware. - * Valid only when enhaced status available is set in RDES0 bit 0. - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev,u32 ext_status) // Hardware engine bypassed the checksum computation/checking -{ - return((ext_status & DescRxChkSumBypass ) != 0 ); // if checksum offloading bypassed return 1 -} -/** - * This function returns true if payload checksum error is set in the extended status. - * Valid only when enhaced status available is set in RDES0 bit 0. - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev,u32 ext_status) // IP payload checksum is in error (UDP/TCP/ICMP checksum error) -{ - return((ext_status & DescRxIpPayloadError) != 0 ); // if IP payload error return 1 -} -#endif - - - -/** - * Decodes the Rx Descriptor status to various checksum error conditions. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns decoded enum (u32) indicating the status. - */ -u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status) -{ - if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) - return RxLenLT600; - else if(((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) - return RxIpHdrPayLoadChkBypass; - else if(((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) - return RxChkBypass; - else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) - return RxNoChkError; - else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) - return RxPayLoadChkError; - else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) == 0)) - return RxIpHdrChkError; - else if(((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) - return RxIpHdrPayLoadChkError; - else - return RxIpHdrPayLoadRes; -} -/** - * Checks if any Ipv4 header checksum error in the frame just transmitted. - * This serves as indication that error occureed in the IPv4 header checksum insertion. - * The sent out frame doesnot carry any ipv4 header checksum inserted by the hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns true if error in ipv4 header checksum, else returns false. - */ -bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status) -{ - return((status & DescTxIpv4ChkError) == DescTxIpv4ChkError); -} - - -/** - * Checks if any payload checksum error in the frame just transmitted. - * This serves as indication that error occureed in the payload checksum insertion. - * The sent out frame doesnot carry any payload checksum inserted by the hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns true if error in ipv4 header checksum, else returns false. - */ -bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status) -{ - return((status & DescTxPayChkError) == DescTxPayChkError); -} -/** - * The check summ offload engine is bypassed in the tx path. - * Checksum is not computed in the Hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc) -{ - #ifdef ENH_DESC - desc->status = (desc->length & (~DescTxCisMask));//ENH_DESC - #else - desc->length = (desc->length & (~DescTxCisMask)); - #endif - -} -/** - * The check summ offload engine is enabled to do only IPV4 header checksum. - * IPV4 header Checksum is computed in the Hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc) -{ - #ifdef ENH_DESC - desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisIpv4HdrCs);//ENH_DESC - #else - desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisIpv4HdrCs); - #endif - -} - -/** - * The check summ offload engine is enabled to do TCPIP checsum assuming Pseudo header is available. - * Hardware computes the tcp ip checksum assuming pseudo header checksum is computed in software. - * Ipv4 header checksum is also inserted. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc) -{ - #ifdef ENH_DESC - desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisTcpOnlyCs);//ENH_DESC - #else - desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpOnlyCs); - #endif - -} -/** - * The check summ offload engine is enabled to do complete checksum computation. - * Hardware computes the tcp ip checksum including the pseudo header checksum. - * Here the tcp payload checksum field should be set to 0000. - * Ipv4 header checksum is also inserted. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc) -{ - #ifdef ENH_DESC - desc->status = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); - #else - desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); - #endif - -} -/*******************Ip checksum offloading APIs***************************************/ - - - - - -/*******************IEEE 1588 Timestamping API***************************************/ - - -/* - * At this time the driver supports the IEEE time stamping feature when the Enhanced Descriptors are enabled. - * For normal descriptor and the IEEE time stamp (version 1), driver support is not proviced - * Please make sure you have enabled the Advanced timestamp feature in the hardware and the driver should - * be compiled with the ADV_TME_STAMP feature. - * Some of the APIs provided here may not be valid for all configurations. Please make sure you call the - * API with due care. - */ - -/** - * This function enables the timestamping. This enables the timestamping for transmit and receive frames. - * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -#if UNUSED -void synopGMAC_TS_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSENA); - return; -} -/** - * This function disables the timestamping. - * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask, GmacTSIntMask); - return; -} - - -/** - * Enable the interrupt to get timestamping interrupt. - * This enables the host to get the interrupt when (1) system time is greater or equal to the - * target time high and low register or (2) there is a overflow in th esecond register. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); - return; -} - -/** - * Disable the interrupt to get timestamping interrupt. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacInterruptMask,GmacPmtIntMask); - return; -} - -/** - * Enable MAC address for PTP frame filtering. - * When enabled, uses MAC address (apart from MAC address 0) to filter the PTP frames when - * PTP is sent directly over Ethernet. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSENMACADDR); - return; -} - -/** - * Disables MAC address for PTP frame filtering. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSENMACADDR); - return; -} - - -/** - * Selet the type of clock mode for PTP. - * Please note to use one of the follwoing as the clk_type argument. - * GmacTSOrdClk = 0x00000000, 00=> Ordinary clock - * GmacTSBouClk = 0x00010000, 01=> Boundary clock - * GmacTSEtoEClk = 0x00020000, 10=> End-to-End transparent clock - * GmacTSPtoPClk = 0x00030000, 11=> P-to-P transparent clock - * @param[in] pointer to synopGMACdevice - * @param[in] u32 value representing one of the above clk value - * \return returns void - */ -void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type) -{ - u32 clkval; - clkval = synopGMACReadReg(gmacdev->MacBase,GmacTSControl); //set the mdc clock to the user defined value - clkval = clkval | clk_type; - synopGMACWriteReg(gmacdev->MacBase,GmacTSControl,clkval); - return; -} - -/** - * Enable Snapshot for messages relevant to Master. - * When enabled, snapshot is taken for messages relevant to master mode only, else snapshot is taken for messages relevant - * to slave node. - * Valid only for Ordinary clock and Boundary clock - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSMSTRENA); - return; -} -/** - * Disable Snapshot for messages relevant to Master. - * When disabled, snapshot is taken for messages relevant - * to slave node. - * Valid only for Ordinary clock and Boundary clock - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSMSTRENA); - return; -} -/** - * Enable Snapshot for Event messages. - * When enabled, snapshot is taken for event messages only (SYNC, Delay_Req, Pdelay_Req or Pdelay_Resp) - * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSEVNTENA); - return; -} -/** - * Disable Snapshot for Event messages. - * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSEVNTENA); - return; -} - -/** - * Enable time stamp snapshot for IPV4 frames. - * When enabled, time stamp snapshot is taken for IPV4 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV4ENA); - return; -} -/** - * Disable time stamp snapshot for IPV4 frames. - * When disabled, time stamp snapshot is not taken for IPV4 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV4ENA); - return; -} // Only for "Advanced Time Stamp" -/** - * Enable time stamp snapshot for IPV6 frames. - * When enabled, time stamp snapshot is taken for IPV6 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV6ENA); - return; -} -/** - * Disable time stamp snapshot for IPV6 frames. - * When disabled, time stamp snapshot is not taken for IPV6 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSIPV6ENA); - return; -} - -/** - * Enable time stamp snapshot for PTP over Ethernet frames. - * When enabled, time stamp snapshot is taken for PTP over Ethernet frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSIPENA); - return; -} -/** - * Disable time stamp snapshot for PTP over Ethernet frames. - * When disabled, time stamp snapshot is not taken for PTP over Ethernet frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSIPENA); - return; -} - - -/** - * Snoop PTP packet for version 2 format - * When set the PTP packets are snooped using the version 2 format. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSVER2ENA); - return; -} -/** - * Snoop PTP packet for version 2 format - * When set the PTP packets are snooped using the version 2 format. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSVER2ENA); - return; -} - -/** - * Timestamp digital rollover - * When set the timestamp low register rolls over after 0x3B9A_C9FF value. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSCTRLSSR); - return; -} -/** - * Timestamp binary rollover - * When set the timestamp low register rolls over after 0x7FFF_FFFF value. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSCTRLSSR); - return; -} -/** - * Enable Time Stamp for All frames - * When set the timestamp snap shot is enabled for all frames received by the core. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSENALL); - return; -} -/** - * Disable Time Stamp for All frames - * When reset the timestamp snap shot is not enabled for all frames received by the core. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSENALL); - return; -} -/** - * Addend Register Update - * This function loads the contents of Time stamp addend register with the supplied 32 value. - * This is reserved function when only coarse correction option is selected - * @param[in] pointer to synopGMACdevice - * @param[in] 32 bit addend value - * \return returns 0 for Success or else Failure - */ -s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value) -{ - u32 loop_variable; - synopGMACWriteReg(gmacdev->MacBase,GmacTSAddend,addend_value);// Load the addend_value in to Addend register - for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ //Wait till the busy bit gets cleared with in a certain amount of time - if(!((synopGMACReadReg(gmacdev->MacBase,GmacTSControl)) & GmacTSADDREG)){ // if it is cleared then break - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if(loop_variable < DEFAULT_LOOP_VARIABLE) - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSADDREG); - else{ - TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } -return -ESYNOPGMACNOERR; - -} -/** - * time stamp Update - * This function updates (adds/subtracts) with the value specified in the Timestamp High Update and - * Timestamp Low Update register. - * @param[in] pointer to synopGMACdevice - * @param[in] Timestamp High Update value - * @param[in] Timestamp Low Update value - * \return returns 0 for Success or else Failure - */ -s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) -{ - u32 loop_variable; - synopGMACWriteReg(gmacdev->MacBase,GmacTSHighUpdate,high_value);// Load the high value to Timestamp High register - synopGMACWriteReg(gmacdev->MacBase,GmacTSLowUpdate,low_value);// Load the high value to Timestamp High register - for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ //Wait till the busy bit gets cleared with in a certain amount of time - if(!((synopGMACReadReg(gmacdev->MacBase,GmacTSControl)) & GmacTSUPDT)){ // if it is cleared then break - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if(loop_variable < DEFAULT_LOOP_VARIABLE) - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSUPDT); - else{ - TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } -return -ESYNOPGMACNOERR; -} - -/** - * time stamp Initialize - * This function Loads/Initializes h the value specified in the Timestamp High Update and - * Timestamp Low Update register. - * @param[in] pointer to synopGMACdevice - * @param[in] Timestamp High Load value - * @param[in] Timestamp Low Load value - * \return returns 0 for Success or else Failure - */ -s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) -{ - u32 loop_variable; - synopGMACWriteReg(gmacdev->MacBase,GmacTSHighUpdate,high_value);// Load the high value to Timestamp High register - synopGMACWriteReg(gmacdev->MacBase,GmacTSLowUpdate,low_value);// Load the high value to Timestamp High register - for(loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++){ //Wait till the busy bit gets cleared with in a certain amount of time - if(!((synopGMACReadReg(gmacdev->MacBase,GmacTSControl)) & GmacTSINT)){ // if it is cleared then break - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if(loop_variable < DEFAULT_LOOP_VARIABLE) - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSINT); - else{ - TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } -return -ESYNOPGMACNOERR; -} - -/** - * Time Stamp Update Coarse - * When reset the timestamp update is done using coarse method. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase,GmacTSControl,GmacTSCFUPDT); - return; -} -/** - * Time Stamp Update Fine - * When reset the timestamp update is done using Fine method. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase,GmacTSControl,GmacTSCFUPDT); - return; -} - -/** - * Load the Sub Second Increment value in to Sub Second increment register - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_value) -{ - synopGMACWriteReg(gmacdev->MacBase,GmacTSSubSecIncr,(sub_sec_inc_value & GmacSSINCMsk)); - return; -} -/** - * Reads the time stamp contents in to the respective pointers - * These registers are readonly. - * This function returns the 48 bit time stamp assuming Version 2 timestamp with higher word is selected. - * @param[in] pointer to synopGMACdevice - * @param[in] pointer to hold 16 higher bit second register contents - * @param[in] pointer to hold 32 bit second register contents - * @param[in] pointer to hold 32 bit subnanosecond register contents - * \return returns void - * \note Please note that since the atomic access to the timestamp registers is not possible, - * the contents read may be different from the actual time stamp. - */ -void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 * higher_sec_val, u32 * sec_val, u32 * sub_sec_val) -{ - * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase,GmacTSHighWord) & GmacTSHighWordMask); - * sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSHigh); - * sub_sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSLow); - return; -} -/** - * Loads the time stamp higher sec value from the value supplied - * @param[in] pointer to synopGMACdevice - * @param[in] 16 higher bit second register contents passed as 32 bit value - * \return returns void - */ -void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val) -{ - synopGMACWriteReg(gmacdev->MacBase,GmacTSHighWord, (higher_sec_val & GmacTSHighWordMask)); - return; -} -/** - * Reads the time stamp higher sec value to respective pointers - * @param[in] pointer to synopGMACdevice - * @param[in] pointer to hold 16 higher bit second register contents - * \return returns void - */ -void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 * higher_sec_val) -{ - * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase,GmacTSHighWord) & GmacTSHighWordMask); - return; -} -/** - * Load the Target time stamp registers - * This function Loads the target time stamp registers with the values proviced - * @param[in] pointer to synopGMACdevice - * @param[in] target Timestamp High value - * @param[in] target Timestamp Low value - * \return returns 0 for Success or else Failure - */ -void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val) -{ - synopGMACWriteReg(gmacdev->MacBase,GmacTSTargetTimeHigh,sec_val); - synopGMACWriteReg(gmacdev->MacBase,GmacTSTargetTimeLow,sub_sec_val); - return; -} -/** - * Reads the Target time stamp registers - * This function Loads the target time stamp registers with the values proviced - * @param[in] pointer to synopGMACdevice - * @param[in] pointer to hold target Timestamp High value - * @param[in] pointer to hold target Timestamp Low value - * \return returns 0 for Success or else Failure - */ -void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 * sec_val, u32 * sub_sec_val) -{ - * sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSTargetTimeHigh); - * sub_sec_val = synopGMACReadReg(gmacdev->MacBase,GmacTSTargetTimeLow); - return; -} -#endif diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_Dev.h b/bsp/ls1cdev/drivers/net/synopGMAC_Dev.h deleted file mode 100644 index 74bc850d86..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_Dev.h +++ /dev/null @@ -1,1747 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#define UNUSED 1 - -#ifndef SYNOP_GMAC_DEV_H -#define SYNOP_GMAC_DEV_H 1 - -/*******************************************************************/ -#define SYNOP_LOOPBACK_MODE 0 -#define SYNOP_LOOPBACK_DEBUG 0 -#define SYNOP_PHY_LOOPBACK 0 - -#define SYNOP_TX_TEST 0 -#define SYNOP_RX_TEST 0 - -#define SYNOP_TOP_DEBUG 0 -#define SYNOP_REG_DEBUG 0 -#define SYNOP_RX_DEBUG 0 -#define SYNOP_TX_DEBUG 0 -/*******************************************************************/ - -#include "synopGMAC_plat.h" -#include "synopGMAC_types.h" - -//sw: typedef are included in synopGMAC_plat.h -// it is strange that we should add it here again!! - -/*SynopGMAC can support up to 32 phys*/ -#define GMAC_PHY_BASE 1 -#ifdef GMAC_PHY_BASE -#define DEFAULT_PHY_BASE GMAC_PHY_BASE -#else -#define DEFAULT_PHY_BASE PHY16 //We use First Phy -#endif -#define MACBASE 0x0000 // The Mac Base address offset is 0x0000 -#define DMABASE 0x1000 // Dma base address starts with an offset 0x1000 - - -enum GMACPhyBase -{ - PHY0 = 0, //The device can support 32 phys, but we use first phy only - PHY1 = 1, - PHY16 = 16, - PHY31 = 31, -}; - - -//#define TRANSMIT_DESC_SIZE 256 //Tx Descriptors needed in the Descriptor pool/queue -//#define RECEIVE_DESC_SIZE 256 //Rx Descriptors needed in the Descriptor pool/queue -//#define TRANSMIT_DESC_SIZE 13//256 //Tx Descriptors needed in the Descriptor pool/queue -#define TRANSMIT_DESC_SIZE 36 //48 //Tx Descriptors needed in the Descriptor pool/queue -#define RECEIVE_DESC_SIZE 72 //96 //Rx Descriptors needed in the Descriptor pool/queue - -#define ETHERNET_HEADER 14 //6 byte Dest addr, 6 byte Src addr, 2 byte length/type -#define ETHERNET_CRC 4 //Ethernet CRC -#define ETHERNET_EXTRA 2 //Only God knows about this????? -#define ETHERNET_PACKET_COPY 250 // Maximum length when received data is copied on to a new skb -#define ETHERNET_PACKET_EXTRA 18 // Preallocated length for the rx packets is MTU + ETHERNET_PACKET_EXTRA -#define VLAN_TAG 4 //optional 802.1q VLAN Tag -#define MIN_ETHERNET_PAYLOAD 46 //Minimum Ethernet payload size -#define MAX_ETHERNET_PAYLOAD 1500 //Maximum Ethernet payload size -#define JUMBO_FRAME_PAYLOAD 9000 //Jumbo frame payload size - -#define TX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG -#define RX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG - - -// This is the IP's phy address. This is unique address for every MAC in the universe -#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} - -/* -DMA Descriptor Structure -The structure is common for both receive and transmit descriptors -The descriptor is of 4 words, but our structrue contains 6 words where -last two words are to hold the virtual address of the network buffer pointers -for driver's use -From the GMAC core release 3.50a onwards, the Enhanced Descriptor structure got changed. -The descriptor (both transmit and receive) are of 8 words each rather the 4 words of normal -descriptor structure. -Whenever IEEE 1588 Timestamping is enabled TX/RX DESC6 provides the lower 32 bits of Timestamp value and - TX/RX DESC7 provides the upper 32 bits of Timestamp value -In addition to this whenever extended status bit is set (RX DESC0 bit 0), RX DESC4 contains the extended status information -*/ - -#define MODULO_INTERRUPT 1 // if it is set to 1, interrupt is available for all the descriptors or else interrupt is available only for - // descriptor whose index%MODULO_INTERRUPT is zero -#ifdef ENH_DESC_8W -typedef struct DmaDescStruct -{ - u32 status; /* Status */ - u32 length; /* Buffer 1 and Buffer 2 length */ - u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ - u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ - /* This data below is used only by driver */ - u32 extstatus; /* Extended status of a Rx Descriptor */ - u32 reserved1; /* Reserved word */ - u32 timestamplow; /* Lower 32 bits of the 64 bit timestamp value */ - u32 timestamphigh; /* Higher 32 bits of the 64 bit timestamp value */ - u32 data1; /* This holds virtual address of buffer1, not used by DMA */ - u32 data2; /* This holds virtual address of buffer2, not used by DMA */ -} DmaDesc; -#else -typedef struct DmaDescStruct -{ - u32 status; /* Status */ - u32 length; /* Buffer 1 and Buffer 2 length */ - u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ - u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ - /* This data below is used only by driver */ - u32 data1; /* This holds virtual address of buffer1, not used by DMA */ - u32 data2; /* This holds virtual address of buffer2, not used by DMA */ - - u32 dummy1; //sw: for addr align - u32 dummy2; // - -} DmaDesc; -#endif - -enum DescMode -{ - RINGMODE = 0x00000001, - CHAINMODE = 0x00000002, -}; - -enum BufferMode -{ - SINGLEBUF = 0x00000001, - DUALBUF = 0x00000002, -}; - -/* synopGMAC device data */ - -typedef struct synopGMACDeviceStruct -{ - u32 MacBase; /* base address of MAC registers */ - u32 DmaBase; /* base address of DMA registers */ - u32 PhyBase; /* PHY device address on MII interface */ - u32 Version; /* Gmac Revision version */ - - - dma_addr_t TxDescDma; /* Dma-able address of first tx descriptor either in ring or chain mode, this is used by the GMAC device*/ - dma_addr_t RxDescDma; /* Dma-albe address of first rx descriptor either in ring or chain mode, this is used by the GMAC device*/ - DmaDesc *TxDesc; /* start address of TX descriptors ring or chain, this is used by the driver */ - DmaDesc *RxDesc; /* start address of RX descriptors ring or chain, this is used by the driver */ - - u32 BusyTxDesc; /* Number of Tx Descriptors owned by DMA at any given time*/ - u32 BusyRxDesc; /* Number of Rx Descriptors owned by DMA at any given time*/ - - u32 RxDescCount; /* number of rx descriptors in the tx descriptor queue/pool */ - u32 TxDescCount; /* number of tx descriptors in the rx descriptor queue/pool */ - - u32 TxBusy; /* index of the tx descriptor owned by DMA, is obtained by synopGMAC_get_tx_qptr() */ - u32 TxNext; /* index of the tx descriptor next available with driver, given to DMA by synopGMAC_set_tx_qptr() */ - u32 RxBusy; /* index of the rx descriptor owned by DMA, obtained by synopGMAC_get_rx_qptr() */ - u32 RxNext; /* index of the rx descriptor next available with driver, given to DMA by synopGMAC_set_rx_qptr() */ - - DmaDesc * TxBusyDesc; /* Tx Descriptor address corresponding to the index TxBusy */ - DmaDesc * TxNextDesc; /* Tx Descriptor address corresponding to the index TxNext */ - DmaDesc * RxBusyDesc; /* Rx Descriptor address corresponding to the index TxBusy */ - DmaDesc * RxNextDesc; /* Rx Descriptor address corresponding to the index RxNext */ - - /*Phy related stuff*/ - u32 ClockDivMdc; /* Clock divider value programmed in the hardware */ - /* The status of the link */ - u32 LinkState0; /* Link status as reported by the Marvel Phy */ - u32 LinkState; /* Link status as reported by the Marvel Phy */ - u32 DuplexMode; /* Duplex mode of the Phy */ - u32 Speed; /* Speed of the Phy */ - u32 LoopBackMode; /* Loopback status of the Phy */ - -// void * FirstTxDesc; -// void * FirstRxDesc; -// u32 skb_array[RECEIVE_DESC_SIZE]; -} synopGMACdevice; - - - -/* Below is "88E1011/88E1011S Integrated 10/100/1000 Gigabit Ethernet Transceiver" - * Register and their layouts. This Phy has been used in the Dot Aster GMAC Phy daughter. - * Since the Phy register map is standard, this map hardly changes to a different Ppy - */ - -enum MiiRegisters -{ - PHY_CONTROL_REG = 0x0000, /*Control Register*/ - PHY_STATUS_REG = 0x0001, /*Status Register */ - PHY_ID_HI_REG = 0x0002, /*PHY Identifier High Register*/ - PHY_ID_LOW_REG = 0x0003, /*PHY Identifier High Register*/ - PHY_AN_ADV_REG = 0x0004, /*Auto-Negotiation Advertisement Register*/ - PHY_LNK_PART_ABl_REG = 0x0005, /*Link Partner Ability Register (Base Page)*/ - PHY_AN_EXP_REG = 0x0006, /*Auto-Negotiation Expansion Register*/ - PHY_AN_NXT_PAGE_TX_REG = 0x0007, /*Next Page Transmit Register*/ - PHY_LNK_PART_NXT_PAGE_REG = 0x0008, /*Link Partner Next Page Register*/ - PHY_1000BT_CTRL_REG = 0x0009, /*1000BASE-T Control Register*/ - PHY_1000BT_STATUS_REG = 0x000a, /*1000BASE-T Status Register*/ - PHY_SPECIFIC_CTRL_REG = 0x0010, /*Phy specific control register*/ - PHY_SPECIFIC_STATUS_REG = 0x0011, /*Phy specific status register*/ - PHY_INTERRUPT_ENABLE_REG = 0x0012, /*Phy interrupt enable register*/ - PHY_INTERRUPT_STATUS_REG = 0x0013, /*Phy interrupt status register*/ - PHY_EXT_PHY_SPC_CTRL = 0x0014, /*Extended Phy specific control*/ - PHY_RX_ERR_COUNTER = 0x0015, /*Receive Error Counter*/ - PHY_EXT_ADDR_CBL_DIAG = 0x0016, /*Extended address for cable diagnostic register*/ - PHY_LED_CONTROL = 0x0018, /*LED Control*/ - PHY_MAN_LED_OVERIDE = 0x0019, /*Manual LED override register*/ - PHY_EXT_PHY_SPC_CTRL2 = 0x001a, /*Extended Phy specific control 2*/ - PHY_EXT_PHY_SPC_STATUS = 0x001b, /*Extended Phy specific status*/ - PHY_CBL_DIAG_REG = 0x001c, /*Cable diagnostic registers*/ -}; - - -/* This is Control register layout. Control register is of 16 bit wide. -*/ - -enum Mii_GEN_CTRL -{ /* Description bits R/W default value */ - Mii_reset = 0x8000, - Mii_Speed_10 = 0x0000, /* 10 Mbps 6:13 RW */ - Mii_Speed_100 = 0x2000, /* 100 Mbps 6:13 RW */ - Mii_Speed_1000 = 0x0040, /* 1000 Mbit/s 6:13 RW */ - - Mii_Duplex = 0x0100, /* Full Duplex mode 8 RW */ - - Mii_Manual_Master_Config = 0x0800, /* Manual Master Config 11 RW */ - - Mii_Loopback = 0x4000, /* Enable Loop back 14 RW */ - Mii_NoLoopback = 0x0000, /* Enable Loop back 14 RW */ -}; - -enum Mii_Phy_Status -{ - Mii_phy_status_speed_10 = 0x0000, - Mii_phy_status_speed_100 = 0x4000, - Mii_phy_status_speed_1000 = 0x8000, - - Mii_phy_status_full_duplex = 0x2000, - Mii_phy_status_half_duplex = 0x0000, - - Mii_phy_status_link_up = 0x0400, //lyf:rtl 8211 phy -// Mii_phy_status_link_up = 0x0100, //sw: broadcom BCM5461 PHY -}; -/* This is Status register layout. Status register is of 16 bit wide. -*/ -enum Mii_GEN_STATUS -{ - Mii_AutoNegCmplt = 0x0020, /* Autonegotiation completed 5 RW */ - Mii_Link = 0x0004, /* Link status 2 RW */ -}; - -enum Mii_Link_Status -{ - LINKDOWN = 0, - LINKUP = 1, -}; - -enum Mii_Duplex_Mode -{ - HALFDUPLEX = 1, - FULLDUPLEX = 2, -}; -enum Mii_Link_Speed -{ - SPEED10 = 1, - SPEED100 = 2, - SPEED1000 = 3, -}; - -enum Mii_Loop_Back -{ - NOLOOPBACK = 0, - LOOPBACK = 1, -}; - - - -/********************************************************** - * GMAC registers Map - * For Pci based system address is BARx + GmacRegisterBase - * For any other system translation is done accordingly - **********************************************************/ -enum GmacRegisters -{ - GmacConfig = 0x0000, /* Mac config Register */ - GmacFrameFilter = 0x0004, /* Mac frame filtering controls */ - GmacHashHigh = 0x0008, /* Multi-cast hash table high */ - GmacHashLow = 0x000C, /* Multi-cast hash table low */ - GmacGmiiAddr = 0x0010, /* GMII address Register(ext. Phy) */ - GmacGmiiData = 0x0014, /* GMII data Register(ext. Phy) */ - GmacFlowControl = 0x0018, /* Flow control Register */ - GmacVlan = 0x001C, /* VLAN tag Register (IEEE 802.1Q) */ - - GmacVersion = 0x0020, /* GMAC Core Version Register */ - GmacWakeupAddr = 0x0028, /* GMAC wake-up frame filter adrress reg */ - GmacPmtCtrlStatus = 0x002C, /* PMT control and status register */ - - GmacInterruptStatus = 0x0038, /* Mac Interrupt ststus register */ - GmacInterruptMask = 0x003C, /* Mac Interrupt Mask register */ - - GmacAddr0High = 0x0040, /* Mac address0 high Register */ - GmacAddr0Low = 0x0044, /* Mac address0 low Register */ - GmacAddr1High = 0x0048, /* Mac address1 high Register */ - GmacAddr1Low = 0x004C, /* Mac address1 low Register */ - GmacAddr2High = 0x0050, /* Mac address2 high Register */ - GmacAddr2Low = 0x0054, /* Mac address2 low Register */ - GmacAddr3High = 0x0058, /* Mac address3 high Register */ - GmacAddr3Low = 0x005C, /* Mac address3 low Register */ - GmacAddr4High = 0x0060, /* Mac address4 high Register */ - GmacAddr4Low = 0x0064, /* Mac address4 low Register */ - GmacAddr5High = 0x0068, /* Mac address5 high Register */ - GmacAddr5Low = 0x006C, /* Mac address5 low Register */ - GmacAddr6High = 0x0070, /* Mac address6 high Register */ - GmacAddr6Low = 0x0074, /* Mac address6 low Register */ - GmacAddr7High = 0x0078, /* Mac address7 high Register */ - GmacAddr7Low = 0x007C, /* Mac address7 low Register */ - GmacAddr8High = 0x0080, /* Mac address8 high Register */ - GmacAddr8Low = 0x0084, /* Mac address8 low Register */ - GmacAddr9High = 0x0088, /* Mac address9 high Register */ - GmacAddr9Low = 0x008C, /* Mac address9 low Register */ - GmacAddr10High = 0x0090, /* Mac address10 high Register */ - GmacAddr10Low = 0x0094, /* Mac address10 low Register */ - GmacAddr11High = 0x0098, /* Mac address11 high Register */ - GmacAddr11Low = 0x009C, /* Mac address11 low Register */ - GmacAddr12High = 0x00A0, /* Mac address12 high Register */ - GmacAddr12Low = 0x00A4, /* Mac address12 low Register */ - GmacAddr13High = 0x00A8, /* Mac address13 high Register */ - GmacAddr13Low = 0x00AC, /* Mac address13 low Register */ - GmacAddr14High = 0x00B0, /* Mac address14 high Register */ - GmacAddr14Low = 0x00B4, /* Mac address14 low Register */ - GmacAddr15High = 0x00B8, /* Mac address15 high Register */ - GmacAddr15Low = 0x00BC, /* Mac address15 low Register */ - GmacStatus = 0x00d8, /*MAC status*/ - - /*Time Stamp Register Map*/ - GmacTSControl = 0x0700, /* Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ - - GmacTSSubSecIncr = 0x0704, /* 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSHigh = 0x0708, /* 32 bit seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ - GmacTSLow = 0x070C, /* 32 bit nano seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSHighUpdate = 0x0710, /* 32 bit seconds(MS) to be written/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ - GmacTSLowUpdate = 0x0714, /* 32 bit nano seconds(MS) to be writeen/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSAddend = 0x0718, /* Used by Software to readjust the clock frequency linearly : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSTargetTimeHigh = 0x071C, /* 32 bit seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ - GmacTSTargetTimeLow = 0x0720, /* 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSHighWord = 0x0724, /* Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ - //GmacTSHighWordUpdate = 0x072C, /* Time Stamp Higher Word Update Register (Version 2 only); only lower 16 bits are valid */ - - GmacTSStatus = 0x0728, /* Time Stamp Status Register */ -}; - -/********************************************************** - * GMAC Network interface registers - * This explains the Register's Layout - - * FES is Read only by default and is enabled only when Tx - * Config Parameter is enabled for RGMII/SGMII interface - * during CoreKit Config. - - * DM is Read only with value 1'b1 in Full duplex only Config - **********************************************************/ - -/* GmacConfig = 0x0000, Mac config Register Layout */ -enum GmacConfigReg -{ - /* Bit description Bits R/W Reset value */ - GmacWatchdog = 0x00800000, - GmacWatchdogDisable = 0x00800000, /* (WD)Disable watchdog timer on Rx 23 RW */ - GmacWatchdogEnable = 0x00000000, /* Enable watchdog timer 0 */ - - GmacJabber = 0x00400000, - GmacJabberDisable = 0x00400000, /* (JD)Disable jabber timer on Tx 22 RW */ - GmacJabberEnable = 0x00000000, /* Enable jabber timer 0 */ - - GmacFrameBurst = 0x00200000, - GmacFrameBurstEnable = 0x00200000, /* (BE)Enable frame bursting during Tx 21 RW */ - GmacFrameBurstDisable = 0x00000000, /* Disable frame bursting 0 */ - - GmacJumboFrame = 0x00100000, - GmacJumboFrameEnable = 0x00100000, /* (JE)Enable jumbo frame for Tx 20 RW */ - GmacJumboFrameDisable = 0x00000000, /* Disable jumbo frame 0 */ - - GmacInterFrameGap7 = 0x000E0000, /* (IFG) Config7 - 40 bit times 19:17 RW */ - GmacInterFrameGap6 = 0x000C0000, /* (IFG) Config6 - 48 bit times */ - GmacInterFrameGap5 = 0x000A0000, /* (IFG) Config5 - 56 bit times */ - GmacInterFrameGap4 = 0x00080000, /* (IFG) Config4 - 64 bit times */ - GmacInterFrameGap3 = 0x00040000, /* (IFG) Config3 - 72 bit times */ - GmacInterFrameGap2 = 0x00020000, /* (IFG) Config2 - 80 bit times */ - GmacInterFrameGap1 = 0x00010000, /* (IFG) Config1 - 88 bit times */ - GmacInterFrameGap0 = 0x00000000, /* (IFG) Config0 - 96 bit times 000 */ - - GmacDisableCrs = 0x00010000, - GmacMiiGmii = 0x00008000, - GmacSelectMii = 0x00008000, /* (PS)Port Select-MII mode 15 RW */ - GmacSelectGmii = 0x00000000, /* GMII mode 0 */ - - GmacFESpeed100 = 0x00004000, /*(FES)Fast Ethernet speed 100Mbps 14 RW */ - GmacFESpeed10 = 0x00000000, /* 10Mbps 0 */ - - GmacRxOwn = 0x00002000, - GmacDisableRxOwn = 0x00002000, /* (DO)Disable receive own packets 13 RW */ - GmacEnableRxOwn = 0x00000000, /* Enable receive own packets 0 */ - - GmacLoopback = 0x00001000, - GmacLoopbackOn = 0x00001000, /* (LM)Loopback mode for GMII/MII 12 RW */ - GmacLoopbackOff = 0x00000000, /* Normal mode 0 */ - - GmacDuplex = 0x00000800, - GmacFullDuplex = 0x00000800, /* (DM)Full duplex mode 11 RW */ - GmacHalfDuplex = 0x00000000, /* Half duplex mode 0 */ - - GmacRxIpcOffload = 0x00000400, /*IPC checksum offload 10 RW 0 */ - - GmacRetry = 0x00000200, - GmacRetryDisable = 0x00000200, /* (DR)Disable Retry 9 RW */ - GmacRetryEnable = 0x00000000, /* Enable retransmission as per BL 0 */ - - GmacLinkUp = 0x00000100, /* (LUD)Link UP 8 RW */ - GmacLinkDown = 0x00000100, /* Link Down 0 */ - - GmacPadCrcStrip = 0x00000080, - GmacPadCrcStripEnable = 0x00000080, /* (ACS) Automatic Pad/Crc strip enable 7 RW */ - GmacPadCrcStripDisable = 0x00000000, /* Automatic Pad/Crc stripping disable 0 */ - - GmacBackoffLimit = 0x00000060, - GmacBackoffLimit3 = 0x00000060, /* (BL)Back-off limit in HD mode 6:5 RW */ - GmacBackoffLimit2 = 0x00000040, /* */ - GmacBackoffLimit1 = 0x00000020, /* */ - GmacBackoffLimit0 = 0x00000000, /* 00 */ - - GmacDeferralCheck = 0x00000010, - GmacDeferralCheckEnable = 0x00000010, /* (DC)Deferral check enable in HD mode 4 RW */ - GmacDeferralCheckDisable = 0x00000000, /* Deferral check disable 0 */ - - GmacTx = 0x00000008, - GmacTxEnable = 0x00000008, /* (TE)Transmitter enable 3 RW */ - GmacTxDisable = 0x00000000, /* Transmitter disable 0 */ - - GmacRx = 0x00000004, - GmacRxEnable = 0x00000004, /* (RE)Receiver enable 2 RW */ - GmacRxDisable = 0x00000000, /* Receiver disable 0 */ -}; - -/* GmacFrameFilter = 0x0004, Mac frame filtering controls Register Layout*/ -enum GmacFrameFilterReg -{ - GmacFilter = 0x80000000, - GmacFilterOff = 0x80000000, /* (RA)Receive all incoming packets 31 RW */ - GmacFilterOn = 0x00000000, /* Receive filtered packets only 0 */ - - GmacHashPerfectFilter = 0x00000400, /*Hash or Perfect Filter enable 10 RW 0 */ - - GmacSrcAddrFilter = 0x00000200, - GmacSrcAddrFilterEnable = 0x00000200, /* (SAF)Source Address Filter enable 9 RW */ - GmacSrcAddrFilterDisable = 0x00000000, /* 0 */ - - GmacSrcInvaAddrFilter = 0x00000100, - GmacSrcInvAddrFilterEn = 0x00000100, /* (SAIF)Inv Src Addr Filter enable 8 RW */ - GmacSrcInvAddrFilterDis = 0x00000000, /* 0 */ - - GmacPassControl = 0x000000C0, - GmacPassControl3 = 0x000000C0, /* (PCS)Forwards ctrl frms that pass AF 7:6 RW */ - GmacPassControl2 = 0x00000080, /* Forwards all control frames */ - GmacPassControl1 = 0x00000040, /* Does not pass control frames */ - GmacPassControl0 = 0x00000000, /* Does not pass control frames 00 */ - - GmacBroadcast = 0x00000020, - GmacBroadcastDisable = 0x00000020, /* (DBF)Disable Rx of broadcast frames 5 RW */ - GmacBroadcastEnable = 0x00000000, /* Enable broadcast frames 0 */ - - GmacMulticastFilter = 0x00000010, - GmacMulticastFilterOff = 0x00000010, /* (PM) Pass all multicast packets 4 RW */ - GmacMulticastFilterOn = 0x00000000, /* Pass filtered multicast packets 0 */ - - GmacDestAddrFilter = 0x00000008, - GmacDestAddrFilterInv = 0x00000008, /* (DAIF)Inverse filtering for DA 3 RW */ - GmacDestAddrFilterNor = 0x00000000, /* Normal filtering for DA 0 */ - - GmacMcastHashFilter = 0x00000004, - GmacMcastHashFilterOn = 0x00000004, /* (HMC)perfom multicast hash filtering 2 RW */ - GmacMcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ - - GmacUcastHashFilter = 0x00000002, - GmacUcastHashFilterOn = 0x00000002, /* (HUC)Unicast Hash filtering only 1 RW */ - GmacUcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ - - GmacPromiscuousMode = 0x00000001, - GmacPromiscuousModeOn = 0x00000001, /* Receive all frames 0 RW */ - GmacPromiscuousModeOff = 0x00000000, /* Receive filtered packets only 0 */ -}; - - -/*GmacGmiiAddr = 0x0010, GMII address Register(ext. Phy) Layout */ -enum GmacGmiiAddrReg -{ - GmiiDevMask = 0x0000F800, /* (PA)GMII device address 15:11 RW 0x00 */ - GmiiDevShift = 11, - - GmiiRegMask = 0x000007C0, /* (GR)GMII register in selected Phy 10:6 RW 0x00 */ - GmiiRegShift = 6, - - GmiiCsrClkMask = 0x0000001C, /*CSR Clock bit Mask 4:2 */ - GmiiCsrClk5 = 0x00000014, /* (CR)CSR Clock Range 250-300 MHz 4:2 RW 000 */ - GmiiCsrClk4 = 0x00000010, /* 150-250 MHz */ - GmiiCsrClk3 = 0x0000000C, /* 35-60 MHz */ - GmiiCsrClk2 = 0x00000008, /* 20-35 MHz */ - GmiiCsrClk1 = 0x00000004, /* 100-150 MHz */ - GmiiCsrClk0 = 0x00000000, /* 60-100 MHz */ - - GmiiWrite = 0x00000002, /* (GW)Write to register 1 RW */ - GmiiRead = 0x00000000, /* Read from register 0 */ - - GmiiBusy = 0x00000001, /* (GB)GMII interface is busy 0 RW 0 */ -}; - -/* GmacGmiiData = 0x0014, GMII data Register(ext. Phy) Layout */ -enum GmacGmiiDataReg -{ - GmiiDataMask = 0x0000FFFF, /* (GD)GMII Data 15:0 RW 0x0000 */ -}; - - -/*GmacFlowControl = 0x0018, Flow control Register Layout */ -enum GmacFlowControlReg -{ - GmacPauseTimeMask = 0xFFFF0000, /* (PT) PAUSE TIME field in the control frame 31:16 RW 0x0000 */ - GmacPauseTimeShift = 16, - - GmacPauseLowThresh = 0x00000030, - GmacPauseLowThresh3 = 0x00000030, /* (PLT)thresh for pause tmr 256 slot time 5:4 RW */ - GmacPauseLowThresh2 = 0x00000020, /* 144 slot time */ - GmacPauseLowThresh1 = 0x00000010, /* 28 slot time */ - GmacPauseLowThresh0 = 0x00000000, /* 4 slot time 000 */ - - GmacUnicastPauseFrame = 0x00000008, - GmacUnicastPauseFrameOn = 0x00000008, /* (UP)Detect pause frame with unicast addr. 3 RW */ - GmacUnicastPauseFrameOff = 0x00000000, /* Detect only pause frame with multicast addr. 0 */ - - GmacRxFlowControl = 0x00000004, - GmacRxFlowControlEnable = 0x00000004, /* (RFE)Enable Rx flow control 2 RW */ - GmacRxFlowControlDisable = 0x00000000, /* Disable Rx flow control 0 */ - - GmacTxFlowControl = 0x00000002, - GmacTxFlowControlEnable = 0x00000002, /* (TFE)Enable Tx flow control 1 RW */ - GmacTxFlowControlDisable = 0x00000000, /* Disable flow control 0 */ - - GmacFlowControlBackPressure= 0x00000001, - GmacSendPauseFrame = 0x00000001, /* (FCB/PBA)send pause frm/Apply back pressure 0 RW 0 */ -}; - -/* GmacInterruptStatus = 0x0038, Mac Interrupt ststus register */ -enum GmacInterruptStatusBitDefinition -{ - GmacTSIntSts = 0x00000200, /* set if int generated due to TS (Read Time Stamp Status Register to know details)*/ - GmacMmcRxChksumOffload = 0x00000080, /* set if int generated in MMC RX CHECKSUM OFFLOAD int register */ - GmacMmcTxIntSts = 0x00000040, /* set if int generated in MMC TX Int register */ - GmacMmcRxIntSts = 0x00000020, /* set if int generated in MMC RX Int register */ - GmacMmcIntSts = 0x00000010, /* set if any of the above bit [7:5] is set */ - GmacPmtIntSts = 0x00000008, /* set whenver magic pkt/wake-on-lan frame is received */ - GmacPcsAnComplete = 0x00000004, /* set when AN is complete in TBI/RTBI/SGMIII phy interface */ - GmacPcsLnkStsChange = 0x00000002, /* set if any lnk status change in TBI/RTBI/SGMII interface */ - GmacRgmiiIntSts = 0x00000001, /* set if any change in lnk status of RGMII interface */ - -}; - -/* GmacInterruptMask = 0x003C, Mac Interrupt Mask register */ -enum GmacInterruptMaskBitDefinition -{ - GmacTSIntMask = 0x00000200, /* when set disables the time stamp interrupt generation */ - GmacPmtIntMask = 0x00000008, /* when set Disables the assertion of PMT interrupt */ - GmacPcsAnIntMask = 0x00000004, /* When set disables the assertion of PCS AN complete interrupt */ - GmacPcsLnkStsIntMask = 0x00000002, /* when set disables the assertion of PCS lnk status change interrupt */ - GmacRgmiiIntMask = 0x00000001, /* when set disables the assertion of RGMII int */ -}; - -/********************************************************** - * GMAC DMA registers - * For Pci based system address is BARx + GmaDmaBase - * For any other system translation is done accordingly - **********************************************************/ - -enum DmaRegisters -{ - DmaBusMode = 0x0000, /* CSR0 - Bus Mode Register */ - DmaTxPollDemand = 0x0004, /* CSR1 - Transmit Poll Demand Register */ - DmaRxPollDemand = 0x0008, /* CSR2 - Receive Poll Demand Register */ - DmaRxBaseAddr = 0x000C, /* CSR3 - Receive Descriptor list base address */ - DmaTxBaseAddr = 0x0010, /* CSR4 - Transmit Descriptor list base address */ - DmaStatus = 0x0014, /* CSR5 - Dma status Register */ - DmaControl = 0x0018, /* CSR6 - Dma Operation Mode Register */ - DmaInterrupt = 0x001C, /* CSR7 - Interrupt enable */ - DmaMissedFr = 0x0020, /* CSR8 - Missed Frame & Buffer overflow Counter */ - DmaTxCurrDesc = 0x0048, /* - Current host Tx Desc Register */ - DmaRxCurrDesc = 0x004C, /* - Current host Rx Desc Register */ - DmaTxCurrAddr = 0x0050, /* CSR20 - Current host transmit buffer address */ - DmaRxCurrAddr = 0x0054, /* CSR21 - Current host receive buffer address */ -}; - -/********************************************************** - * DMA Engine registers Layout - **********************************************************/ - -/*DmaBusMode = 0x0000, CSR0 - Bus Mode */ -enum DmaBusModeReg -{ /* Bit description Bits R/W Reset value */ - DmaFixedBurstEnable = 0x00010000, /* (FB)Fixed Burst SINGLE, INCR4, INCR8 or INCR16 16 RW */ - DmaFixedBurstDisable = 0x00000000, /* SINGLE, INCR 0 */ - - DmaTxPriorityRatio11 = 0x00000000, /* (PR)TX:RX DMA priority ratio 1:1 15:14 RW 00 */ - DmaTxPriorityRatio21 = 0x00004000, /* (PR)TX:RX DMA priority ratio 2:1 */ - DmaTxPriorityRatio31 = 0x00008000, /* (PR)TX:RX DMA priority ratio 3:1 */ - DmaTxPriorityRatio41 = 0x0000C000, /* (PR)TX:RX DMA priority ratio 4:1 */ - - DmaBurstLengthx8 = 0x01000000, /* When set mutiplies the PBL by 8 24 RW 0 */ - - DmaBurstLength256 = 0x01002000, /*(DmaBurstLengthx8 | DmaBurstLength32) = 256 [24]:13:8 */ - DmaBurstLength128 = 0x01001000, /*(DmaBurstLengthx8 | DmaBurstLength16) = 128 [24]:13:8 */ - DmaBurstLength64 = 0x01000800, /*(DmaBurstLengthx8 | DmaBurstLength8) = 64 [24]:13:8 */ - DmaBurstLength32 = 0x00002000, /* (PBL) programmable Dma burst length = 32 13:8 RW */ - DmaBurstLength16 = 0x00001000, /* Dma burst length = 16 */ - DmaBurstLength8 = 0x00000800, /* Dma burst length = 8 */ - DmaBurstLength4 = 0x00000400, /* Dma burst length = 4 */ - DmaBurstLength2 = 0x00000200, /* Dma burst length = 2 */ - DmaBurstLength1 = 0x00000100, /* Dma burst length = 1 */ - DmaBurstLength0 = 0x00000000, /* Dma burst length = 0 0x00 */ - - DmaDescriptor8Words = 0x00000080, /* Enh Descriptor works 1=> 8 word descriptor 7 0 */ - DmaDescriptor4Words = 0x00000000, /* Enh Descriptor works 0=> 4 word descriptor 7 0 */ - - DmaDescriptorSkip16 = 0x00000040, /* (DSL)Descriptor skip length (no.of dwords) 6:2 RW */ - DmaDescriptorSkip8 = 0x00000020, /* between two unchained descriptors */ - DmaDescriptorSkip4 = 0x00000010, /* */ - DmaDescriptorSkip2 = 0x00000008, /* */ - DmaDescriptorSkip1 = 0x00000004, /* */ - DmaDescriptorSkip0 = 0x00000000, /* 0x00 */ - - DmaArbitRr = 0x00000000, /* (DA) DMA RR arbitration 1 RW 0 */ - DmaArbitPr = 0x00000002, /* Rx has priority over Tx */ - - DmaResetOn = 0x00000001, /* (SWR)Software Reset DMA engine 0 RW */ - DmaResetOff = 0x00000000, /* 0 */ -}; - - -/*DmaStatus = 0x0014, CSR5 - Dma status Register */ -enum DmaStatusReg -{ - /*Bit 28 27 and 26 indicate whether the interrupt due to PMT GMACMMC or GMAC LINE Remaining bits are DMA interrupts*/ - GmacPmtIntr = 0x10000000, /* (GPI)Gmac subsystem interrupt 28 RO 0 */ - GmacMmcIntr = 0x08000000, /* (GMI)Gmac MMC subsystem interrupt 27 RO 0 */ - GmacLineIntfIntr = 0x04000000, /* Line interface interrupt 26 RO 0 */ - - DmaErrorBit2 = 0x02000000, /* (EB)Error bits 0-data buffer, 1-desc. access 25 RO 0 */ - DmaErrorBit1 = 0x01000000, /* (EB)Error bits 0-write trnsf, 1-read transfr 24 RO 0 */ - DmaErrorBit0 = 0x00800000, /* (EB)Error bits 0-Rx DMA, 1-Tx DMA 23 RO 0 */ - - DmaTxState = 0x00700000, /* (TS)Transmit process state 22:20 RO */ - DmaTxStopped = 0x00000000, /* Stopped - Reset or Stop Tx Command issued 000 */ - DmaTxFetching = 0x00100000, /* Running - fetching the Tx descriptor */ - DmaTxWaiting = 0x00200000, /* Running - waiting for status */ - DmaTxReading = 0x00300000, /* Running - reading the data from host memory */ - DmaTxSuspended = 0x00600000, /* Suspended - Tx Descriptor unavailabe */ - DmaTxClosing = 0x00700000, /* Running - closing Rx descriptor */ - - DmaRxState = 0x000E0000, /* (RS)Receive process state 19:17 RO */ - DmaRxStopped = 0x00000000, /* Stopped - Reset or Stop Rx Command issued 000 */ - DmaRxFetching = 0x00020000, /* Running - fetching the Rx descriptor */ - DmaRxWaiting = 0x00060000, /* Running - waiting for packet */ - DmaRxSuspended = 0x00080000, /* Suspended - Rx Descriptor unavailable */ - DmaRxClosing = 0x000A0000, /* Running - closing descriptor */ - DmaRxQueuing = 0x000E0000, /* Running - queuing the recieve frame into host memory */ - - DmaIntNormal = 0x00010000, /* (NIS)Normal interrupt summary 16 RW 0 */ - DmaIntAbnormal = 0x00008000, /* (AIS)Abnormal interrupt summary 15 RW 0 */ - - DmaIntEarlyRx = 0x00004000, /* Early receive interrupt (Normal) RW 0 */ - DmaIntBusError = 0x00002000, /* Fatal bus error (Abnormal) RW 0 */ - DmaIntEarlyTx = 0x00000400, /* Early transmit interrupt (Abnormal) RW 0 */ - DmaIntRxWdogTO = 0x00000200, /* Receive Watchdog Timeout (Abnormal) RW 0 */ - DmaIntRxStopped = 0x00000100, /* Receive process stopped (Abnormal) RW 0 */ - DmaIntRxNoBuffer = 0x00000080, /* Receive buffer unavailable (Abnormal) RW 0 */ - DmaIntRxCompleted = 0x00000040, /* Completion of frame reception (Normal) RW 0 */ - DmaIntTxUnderflow = 0x00000020, /* Transmit underflow (Abnormal) RW 0 */ - DmaIntRcvOverflow = 0x00000010, /* Receive Buffer overflow interrupt RW 0 */ - DmaIntTxJabberTO = 0x00000008, /* Transmit Jabber Timeout (Abnormal) RW 0 */ - DmaIntTxNoBuffer = 0x00000004, /* Transmit buffer unavailable (Normal) RW 0 */ - DmaIntTxStopped = 0x00000002, /* Transmit process stopped (Abnormal) RW 0 */ - DmaIntTxCompleted = 0x00000001, /* Transmit completed (Normal) RW 0 */ -}; - -/*DmaControl = 0x0018, CSR6 - Dma Operation Mode Register */ -enum DmaControlReg -{ - DmaDisableDropTcpCs = 0x04000000, /* (DT) Dis. drop. of tcp/ip CS error frames 26 RW 0 */ - - DmaStoreAndForward = 0x02200000, /* (SF)Store and forward 21 RW 0 */ - DmaFlushTxFifo = 0x00100000, /* (FTF)Tx FIFO controller is reset to default 20 RW 0 */ - - DmaTxThreshCtrl = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16:14 RW */ - DmaTxThreshCtrl16 = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16 16:14 RW */ - DmaTxThreshCtrl24 = 0x00018000, /* (TTC)Controls thre Threh of MTL tx Fifo 24 16:14 RW */ - DmaTxThreshCtrl32 = 0x00014000, /* (TTC)Controls thre Threh of MTL tx Fifo 32 16:14 RW */ - DmaTxThreshCtrl40 = 0x00010000, /* (TTC)Controls thre Threh of MTL tx Fifo 40 16:14 RW */ - DmaTxThreshCtrl256 = 0x0000c000, /* (TTC)Controls thre Threh of MTL tx Fifo 256 16:14 RW */ - DmaTxThreshCtrl192 = 0x00008000, /* (TTC)Controls thre Threh of MTL tx Fifo 192 16:14 RW */ - DmaTxThreshCtrl128 = 0x00004000, /* (TTC)Controls thre Threh of MTL tx Fifo 128 16:14 RW */ - DmaTxThreshCtrl64 = 0x00000000, /* (TTC)Controls thre Threh of MTL tx Fifo 64 16:14 RW 000 */ - - DmaTxStart = 0x00002000, /* (ST)Start/Stop transmission 13 RW 0 */ - - DmaRxFlowCtrlDeact = 0x00401800, /* (RFD)Rx flow control deact. threhold [22]:12:11 RW */ - DmaRxFlowCtrlDeact1K = 0x00000000, /* (RFD)Rx flow control deact. threhold (1kbytes) [22]:12:11 RW 00 */ - DmaRxFlowCtrlDeact2K = 0x00000800, /* (RFD)Rx flow control deact. threhold (2kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact3K = 0x00001000, /* (RFD)Rx flow control deact. threhold (3kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact4K = 0x00001800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact5K = 0x00400000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact6K = 0x00400800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact7K = 0x00401000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - - DmaRxFlowCtrlAct = 0x00800600, /* (RFA)Rx flow control Act. threhold [23]:10:09 RW */ - DmaRxFlowCtrlAct1K = 0x00000000, /* (RFA)Rx flow control Act. threhold (1kbytes) [23]:10:09 RW 00 */ - DmaRxFlowCtrlAct2K = 0x00000200, /* (RFA)Rx flow control Act. threhold (2kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct3K = 0x00000400, /* (RFA)Rx flow control Act. threhold (3kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct4K = 0x00000300, /* (RFA)Rx flow control Act. threhold (4kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct5K = 0x00800000, /* (RFA)Rx flow control Act. threhold (5kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct6K = 0x00800200, /* (RFA)Rx flow control Act. threhold (6kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct7K = 0x00800400, /* (RFA)Rx flow control Act. threhold (7kbytes) [23]:10:09 RW */ - - DmaRxThreshCtrl = 0x00000018, /* (RTC)Controls thre Threh of MTL rx Fifo 4:3 RW */ - DmaRxThreshCtrl64 = 0x00000000, /* (RTC)Controls thre Threh of MTL tx Fifo 64 4:3 RW */ - DmaRxThreshCtrl32 = 0x00000008, /* (RTC)Controls thre Threh of MTL tx Fifo 32 4:3 RW */ - DmaRxThreshCtrl96 = 0x00000010, /* (RTC)Controls thre Threh of MTL tx Fifo 96 4:3 RW */ - DmaRxThreshCtrl128 = 0x00000018, /* (RTC)Controls thre Threh of MTL tx Fifo 128 4:3 RW */ - - DmaEnHwFlowCtrl = 0x00000100, /* (EFC)Enable HW flow control 8 RW */ - DmaDisHwFlowCtrl = 0x00000000, /* Disable HW flow control 0 */ - - DmaFwdErrorFrames = 0x00000080, /* (FEF)Forward error frames 7 RW 0 */ - DmaFwdUnderSzFrames = 0x00000040, /* (FUF)Forward undersize frames 6 RW 0 */ - DmaTxSecondFrame = 0x00000004, /* (OSF)Operate on second frame 4 RW 0 */ - DmaRxStart = 0x00000002, /* (SR)Start/Stop reception 1 RW 0 */ -}; - - -/*DmaInterrupt = 0x001C, CSR7 - Interrupt enable Register Layout */ -enum DmaInterruptReg -{ - DmaIeNormal = DmaIntNormal , /* Normal interrupt enable RW 0 */ - DmaIeAbnormal = DmaIntAbnormal , /* Abnormal interrupt enable RW 0 */ - - DmaIeEarlyRx = DmaIntEarlyRx , /* Early receive interrupt enable RW 0 */ - DmaIeBusError = DmaIntBusError , /* Fatal bus error enable RW 0 */ - DmaIeEarlyTx = DmaIntEarlyTx , /* Early transmit interrupt enable RW 0 */ - DmaIeRxWdogTO = DmaIntRxWdogTO , /* Receive Watchdog Timeout enable RW 0 */ - DmaIeRxStopped = DmaIntRxStopped , /* Receive process stopped enable RW 0 */ - DmaIeRxNoBuffer = DmaIntRxNoBuffer , /* Receive buffer unavailable enable RW 0 */ - DmaIeRxCompleted = DmaIntRxCompleted, /* Completion of frame reception enable RW 0 */ - DmaIeTxUnderflow = DmaIntTxUnderflow, /* Transmit underflow enable RW 0 */ - - DmaIeRxOverflow = DmaIntRcvOverflow, /* Receive Buffer overflow interrupt RW 0 */ - DmaIeTxJabberTO = DmaIntTxJabberTO , /* Transmit Jabber Timeout enable RW 0 */ - DmaIeTxNoBuffer = DmaIntTxNoBuffer , /* Transmit buffer unavailable enable RW 0 */ - DmaIeTxStopped = DmaIntTxStopped , /* Transmit process stopped enable RW 0 */ - DmaIeTxCompleted = DmaIntTxCompleted, /* Transmit completed enable RW 0 */ -}; - - - -/********************************************************** - * DMA Engine descriptors - **********************************************************/ -#ifdef ENH_DESC -/* -**********Enhanced Descritpor structure to support 8K buffer per buffer **************************** - -DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address -DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -Similarly -DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address -DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -------------------------------------------------------------------------- - RDES0 |OWN (31)| Status | - -------------------------------------------------------------------------- - RDES1 | Ctrl | Res | Byte Count Buffer 2 | Ctrl | Res | Byte Count Buffer 1 | - -------------------------------------------------------------------------- - RDES2 | Buffer 1 Address | - -------------------------------------------------------------------------- - RDES3 | Buffer 2 Address / Next Descriptor Address | - -------------------------------------------------------------------------- - - -------------------------------------------------------------------------- - TDES0 |OWN (31)| Ctrl | Res | Ctrl | Res | Status | - -------------------------------------------------------------------------- - TDES1 | Res | Byte Count Buffer 2 | Res | Byte Count Buffer 1 | - -------------------------------------------------------------------------- - TDES2 | Buffer 1 Address | - -------------------------------------------------------------------------- - TDES3 | Buffer 2 Address / Next Descriptor Address | - -------------------------------------------------------------------------- - -*/ - -enum DmaDescriptorStatus /* status word of DMA descriptor */ -{ - DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ - - DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ - - DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ - DescFrameLengthShift = 16, - - DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ - /* DE || OE || IPC || LC || RWT || RE || CE */ - DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ - DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ - DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ - DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ - DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ - DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ - DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ - DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ - DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ - DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ - DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ - DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ - DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ -// DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ - - DescRxEXTsts = 0x00000001, /* Extended Status Available (RDES4) 0 */ - - DescTxIntEnable = 0x40000000, /* (IC)Tx - interrupt on completion 30 */ - DescTxLast = 0x20000000, /* (LS)Tx - Last segment of the frame 29 */ - DescTxFirst = 0x10000000, /* (FS)Tx - First segment of the frame 28 */ - DescTxDisableCrc = 0x08000000, /* (DC)Tx - Add CRC disabled (first segment only) 27 */ - DescTxDisablePadd = 0x04000000, /* (DP)disable padding, added by - reyaz 26 */ - - DescTxCisMask = 0x00c00000, /* Tx checksum offloading control mask 23:22 */ - DescTxCisBypass = 0x00000000, /* Checksum bypass */ - DescTxCisIpv4HdrCs = 0x00400000, /* IPv4 header checksum */ - DescTxCisTcpOnlyCs = 0x00800000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ - DescTxCisTcpPseudoCs = 0x00c00000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ - - TxDescEndOfRing = 0x00200000, /* (TER)End of descriptors ring 21 */ - TxDescChain = 0x00100000, /* (TCH)Second buffer address is chain address 20 */ - - DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ - DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ - DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - - DescRxTSavail = 0x00000080, /* Time stamp available 7 */ - DescRxFrameType = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - - DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ - DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ - DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ - DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ - DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ - DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ - DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ - DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ - DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ - - DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ - DescTxCollShift = 3, - - DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ - DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ - DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ - - /* - This explains the RDES1/TDES1 bits layout - -------------------------------------------------------------------- - RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | - -------------------------------------------------------------------- - - */ -// DmaDescriptorLength length word of DMA descriptor - - - RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ - RxDescEndOfRing = 0x00008000, /* (TER)End of descriptors ring 15 */ - RxDescChain = 0x00004000, /* (TCH)Second buffer address is chain address 14 */ - - - DescSize2Mask = 0x1FFF0000, /* (TBS2) Buffer 2 size 28:16 */ - DescSize2Shift = 16, - DescSize1Mask = 0x00001FFF, /* (TBS1) Buffer 1 size 12:0 */ - DescSize1Shift = 0, - - - /* - This explains the RDES4 Extended Status bits layout - -------------------------------------------------------------------- - RDES4 | Extended Status | - -------------------------------------------------------------------- - */ - DescRxPtpAvail = 0x00004000, /* PTP snapshot available 14 */ - DescRxPtpVer = 0x00002000, /* When set indicates IEEE1584 Version 2 (else Ver1) 13 */ - DescRxPtpFrameType = 0x00001000, /* PTP frame type Indicates PTP sent over ethernet 12 */ - DescRxPtpMessageType = 0x00000F00, /* Message Type 11:8 */ - DescRxPtpNo = 0x00000000, /* 0000 => No PTP message received */ - DescRxPtpSync = 0x00000100, /* 0001 => Sync (all clock types) received */ - DescRxPtpFollowUp = 0x00000200, /* 0010 => Follow_Up (all clock types) received */ - DescRxPtpDelayReq = 0x00000300, /* 0011 => Delay_Req (all clock types) received */ - DescRxPtpDelayResp = 0x00000400, /* 0100 => Delay_Resp (all clock types) received */ - DescRxPtpPdelayReq = 0x00000500, /* 0101 => Pdelay_Req (in P to P tras clk) or Announce in Ord and Bound clk */ - DescRxPtpPdelayResp = 0x00000600, /* 0110 => Pdealy_Resp(in P to P trans clk) or Management in Ord and Bound clk */ - DescRxPtpPdelayRespFP = 0x00000700, /* 0111 => Pdealy_Resp_Follow_Up (in P to P trans clk) or Signaling in Ord and Bound clk */ - DescRxPtpIPV6 = 0x00000080, /* Received Packet is in IPV6 Packet 7 */ - DescRxPtpIPV4 = 0x00000040, /* Received Packet is in IPV4 Packet 6 */ - - DescRxChkSumBypass = 0x00000020, /* When set indicates checksum offload engine 5 - is bypassed */ - DescRxIpPayloadError = 0x00000010, /* When set indicates 16bit IP payload CS is in error 4 */ - DescRxIpHeaderError = 0x00000008, /* When set indicates 16bit IPV4 header CS is in 3 - error or IP datagram version is not consistent - with Ethernet type value */ - DescRxIpPayloadType = 0x00000007, /* Indicate the type of payload encapsulated 2:0 - in IPdatagram processed by COE (Rx) */ - DescRxIpPayloadUnknown= 0x00000000, /* Unknown or didnot process IP payload */ - DescRxIpPayloadUDP = 0x00000001, /* UDP */ - DescRxIpPayloadTCP = 0x00000002, /* TCP */ - DescRxIpPayloadICMP = 0x00000003, /* ICMP */ - -}; - -#else -/* - -********** Default Descritpor structure **************************** -DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address -DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -Similarly -DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address -DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -------------------------------------------------------------------- - RDES0/TDES0 |OWN (31)| Status | - -------------------------------------------------------------------- - RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | - -------------------------------------------------------------------- - RDES2/TDES2 | Buffer 1 Address | - -------------------------------------------------------------------- - RDES3/TDES3 | Buffer 2 Address / Next Descriptor Address | - -------------------------------------------------------------------- -*/ -enum DmaDescriptorStatus /* status word of DMA descriptor */ -{ - DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ - - DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ - - DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ - DescFrameLengthShift = 16, - - DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ - /* DE || OE || IPC || LC || RWT || RE || CE */ - DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ - DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ - DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ - DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ - DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ - DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ - DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ - DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ - DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ - DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ - DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ - DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ - DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ - DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ - - //Rx Descriptor Checksum Offload engine (type 2) encoding - //DescRxPayChkError = 0x00000001, /* () Rx - Rx Payload Checksum Error 0 */ - //DescRxIpv4ChkError = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ - - DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ - DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ - DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - - DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ - DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ - DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ - DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ - DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ - DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ - DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ - DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ - DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ - - DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ - DescTxCollShift = 3, - - DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ - DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ - DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ - - /* - This explains the RDES1/TDES1 bits layout - -------------------------------------------------------------------- - RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | - -------------------------------------------------------------------- - - */ -//DmaDescriptorLength length word of DMA descriptor - - DescTxIntEnable = 0x80000000, /* (IC)Tx - interrupt on completion 31 */ - DescTxLast = 0x40000000, /* (LS)Tx - Last segment of the frame 30 */ - DescTxFirst = 0x20000000, /* (FS)Tx - First segment of the frame 29 */ - DescTxDisableCrc = 0x04000000, /* (DC)Tx - Add CRC disabled (first segment only) 26 */ - - RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ - RxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ - RxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ - - DescTxDisablePadd = 0x00800000, /* (DP)disable padding, added by - reyaz 23 */ - - TxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ - TxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ - - DescSize2Mask = 0x003FF800, /* (TBS2) Buffer 2 size 21:11 */ - DescSize2Shift = 11, - DescSize1Mask = 0x000007FF, /* (TBS1) Buffer 1 size 10:0 */ - DescSize1Shift = 0, - - - DescTxCisMask = 0x18000000, /* Tx checksum offloading control mask 28:27 */ - DescTxCisBypass = 0x00000000, /* Checksum bypass */ - DescTxCisIpv4HdrCs = 0x08000000, /* IPv4 header checksum */ - DescTxCisTcpOnlyCs = 0x10000000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ - DescTxCisTcpPseudoCs = 0x18000000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ -}; -#endif - -// Rx Descriptor COE type2 encoding -enum RxDescCOEEncode -{ - RxLenLT600 = 0, /* Bit(5:7:0)=>0 IEEE 802.3 type frame Length field is Lessthan 0x0600 */ - RxIpHdrPayLoadChkBypass = 1, /* Bit(5:7:0)=>1 Payload & Ip header checksum bypassed (unsuppported payload) */ - RxIpHdrPayLoadRes = 2, /* Bit(5:7:0)=>2 Reserved */ - RxChkBypass = 3, /* Bit(5:7:0)=>3 Neither IPv4 nor IPV6. So checksum bypassed */ - RxNoChkError = 4, /* Bit(5:7:0)=>4 No IPv4/IPv6 Checksum error detected */ - RxPayLoadChkError = 5, /* Bit(5:7:0)=>5 Payload checksum error detected for Ipv4/Ipv6 frames */ - RxIpHdrChkError = 6, /* Bit(5:7:0)=>6 Ip header checksum error detected for Ipv4 frames */ - RxIpHdrPayLoadChkError = 7, /* Bit(5:7:0)=>7 Payload & Ip header checksum error detected for Ipv4/Ipv6 frames */ -}; - -/********************************************************** - * DMA engine interrupt handling functions - **********************************************************/ - - enum synopGMACDmaIntEnum /* Intrerrupt types */ -{ - synopGMACDmaRxNormal = 0x01, /* normal receiver interrupt */ - synopGMACDmaRxAbnormal = 0x02, /* abnormal receiver interrupt */ - synopGMACDmaRxStopped = 0x04, /* receiver stopped */ - synopGMACDmaTxNormal = 0x08, /* normal transmitter interrupt */ - synopGMACDmaTxAbnormal = 0x10, /* abnormal transmitter interrupt */ - synopGMACDmaTxStopped = 0x20, /* transmitter stopped */ - synopGMACDmaError = 0x80, /* Dma engine error */ -}; - - -/********************************************************** - * Initial register values - **********************************************************/ -enum InitialRegisters -{ - /* Full-duplex mode with perfect filter on */ - GmacConfigInitFdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectGmii | GmacEnableRxOwn | GmacLoopbackOff - | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Full-duplex mode with perfect filter on */ - GmacConfigInitFdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectMii | GmacEnableRxOwn | GmacLoopbackOff - | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Full-duplex mode */ - // CHANGED: Pass control config, dest addr filter normal, added source address filter, multicast & unicast - // Hash filter. - /* = GmacFilterOff | GmacPassControlOff | GmacBroadcastEnable */ - GmacFrameFilterInitFdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable - | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff - | GmacPromiscuousModeOff | GmacUcastHashFilterOff, - - /* Full-duplex mode */ - GmacFlowControlInitFdx = GmacUnicastPauseFrameOff | GmacRxFlowControlEnable | GmacTxFlowControlEnable, - - /* Full-duplex mode */ - GmacGmiiAddrInitFdx = GmiiCsrClk2, - - - /* Half-duplex mode with perfect filter on */ - // CHANGED: Removed Endian configuration, added single bit config for PAD/CRC strip, - /*| GmacSelectMii | GmacLittleEndian | GmacDisableRxOwn | GmacLoopbackOff*/ - GmacConfigInitHdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectGmii | GmacDisableRxOwn | GmacLoopbackOff - | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Half-duplex mode with perfect filter on */ - GmacConfigInitHdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectMii | GmacDisableRxOwn | GmacLoopbackOff - | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Half-duplex mode */ - GmacFrameFilterInitHdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable - | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff - | GmacUcastHashFilterOff| GmacPromiscuousModeOff, - - /* Half-duplex mode */ - GmacFlowControlInitHdx = GmacUnicastPauseFrameOff | GmacRxFlowControlDisable | GmacTxFlowControlDisable, - - /* Half-duplex mode */ - GmacGmiiAddrInitHdx = GmiiCsrClk2, - - - - /********************************************** - *DMA configurations - **********************************************/ - - DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip2 | DmaResetOff, -// DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip4 | DmaResetOff, - - /* 1000 Mb/s mode */ - DmaControlInit1000 = DmaStoreAndForward,// | DmaTxSecondFrame , - - /* 100 Mb/s mode */ - DmaControlInit100 = DmaStoreAndForward, - - /* 10 Mb/s mode */ - DmaControlInit10 = DmaStoreAndForward, - - /* Interrupt groups */ - DmaIntErrorMask = DmaIntBusError, /* Error */ - DmaIntRxAbnMask = DmaIntRxNoBuffer, /* receiver abnormal interrupt */ - DmaIntRxNormMask = DmaIntRxCompleted, /* receiver normal interrupt */ - DmaIntRxStoppedMask = DmaIntRxStopped, /* receiver stopped */ - DmaIntTxAbnMask = DmaIntTxUnderflow, /* transmitter abnormal interrupt */ - DmaIntTxNormMask = DmaIntTxCompleted, /* transmitter normal interrupt */ - DmaIntTxStoppedMask = DmaIntTxStopped, /* transmitter stopped */ - - DmaIntEnable = DmaIeNormal | DmaIeAbnormal | DmaIntErrorMask -//DmaIntEnable = DmaIeNormal | DmaIntErrorMask - | DmaIntRxAbnMask | DmaIntRxNormMask | DmaIntRxStoppedMask -// | DmaIntRxNormMask | DmaIntRxStoppedMask - | DmaIntTxAbnMask | DmaIntTxNormMask | DmaIntTxStoppedMask, - DmaIntDisable = 0, -}; - - -/********************************************************** - * Mac Management Counters (MMC) - **********************************************************/ - -enum MMC_ENABLE -{ - GmacMmcCntrl = 0x0100, /* mmc control for operating mode of MMC */ - GmacMmcIntrRx = 0x0104, /* maintains interrupts generated by rx counters */ - GmacMmcIntrTx = 0x0108, /* maintains interrupts generated by tx counters */ - GmacMmcIntrMaskRx = 0x010C, /* mask for interrupts generated from rx counters */ - GmacMmcIntrMaskTx = 0x0110, /* mask for interrupts generated from tx counters */ -}; -enum MMC_TX -{ - GmacMmcTxOctetCountGb = 0x0114, /*Bytes Tx excl. of preamble and retried bytes (Good or Bad) */ - GmacMmcTxFrameCountGb = 0x0118, /*Frames Tx excl. of retried frames (Good or Bad) */ - GmacMmcTxBcFramesG = 0x011C, /*Broadcast Frames Tx (Good) */ - GmacMmcTxMcFramesG = 0x0120, /*Multicast Frames Tx (Good) */ - - GmacMmcTx64OctetsGb = 0x0124, /*Tx with len 64 bytes excl. of pre and retried (Good or Bad) */ - GmacMmcTx65To127OctetsGb = 0x0128, /*Tx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ - GmacMmcTx128To255OctetsGb = 0x012C, /*Tx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ - GmacMmcTx256To511OctetsGb = 0x0130, /*Tx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ - GmacMmcTx512To1023OctetsGb = 0x0134, /*Tx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ - GmacMmcTx1024ToMaxOctetsGb = 0x0138, /*Tx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ - - GmacMmcTxUcFramesGb = 0x013C, /*Unicast Frames Tx (Good or Bad) */ - GmacMmcTxMcFramesGb = 0x0140, /*Multicast Frames Tx (Good and Bad) */ - GmacMmcTxBcFramesGb = 0x0144, /*Broadcast Frames Tx (Good and Bad) */ - GmacMmcTxUnderFlowError = 0x0148, /*Frames aborted due to Underflow error */ - GmacMmcTxSingleColG = 0x014C, /*Successfully Tx Frames after singel collision in Half duplex mode */ - GmacMmcTxMultiColG = 0x0150, /*Successfully Tx Frames after more than singel collision in Half duplex mode */ - GmacMmcTxDeferred = 0x0154, /*Successfully Tx Frames after a deferral in Half duplex mode */ - GmacMmcTxLateCol = 0x0158, /*Frames aborted due to late collision error */ - GmacMmcTxExessCol = 0x015C, /*Frames aborted due to excessive (16) collision errors */ - GmacMmcTxCarrierError = 0x0160, /*Frames aborted due to carrier sense error (No carrier or Loss of carrier) */ - GmacMmcTxOctetCountG = 0x0164, /*Bytes Tx excl. of preamble and retried bytes (Good) */ - GmacMmcTxFrameCountG = 0x0168, /*Frames Tx (Good) */ - GmacMmcTxExessDef = 0x016C, /*Frames aborted due to excessive deferral errors (deferred for more than 2 max-sized frame times)*/ - - GmacMmcTxPauseFrames = 0x0170, /*Number of good pause frames Tx. */ - GmacMmcTxVlanFramesG = 0x0174, /*Number of good Vlan frames Tx excl. retried frames */ -}; -enum MMC_RX -{ - GmacMmcRxFrameCountGb = 0x0180, /*Frames Rx (Good or Bad) */ - GmacMmcRxOctetCountGb = 0x0184, /*Bytes Rx excl. of preamble and retried bytes (Good or Bad) */ - GmacMmcRxOctetCountG = 0x0188, /*Bytes Rx excl. of preamble and retried bytes (Good) */ - GmacMmcRxBcFramesG = 0x018C, /*Broadcast Frames Rx (Good) */ - GmacMmcRxMcFramesG = 0x0190, /*Multicast Frames Rx (Good) */ - - GmacMmcRxCrcError = 0x0194, /*Number of frames received with CRC error */ - GmacMmcRxAlignError = 0x0198, /*Number of frames received with alignment (dribble) error. Only in 10/100mode */ - GmacMmcRxRuntError = 0x019C, /*Number of frames received with runt (<64 bytes and CRC error) error */ - GmacMmcRxJabberError = 0x01A0, /*Number of frames rx with jabber (>1518/1522 or >9018/9022 and CRC) */ - GmacMmcRxUnderSizeG = 0x01A4, /*Number of frames received with <64 bytes without any error */ - GmacMmcRxOverSizeG = 0x01A8, /*Number of frames received with >1518/1522 bytes without any error */ - - GmacMmcRx64OctetsGb = 0x01AC, /*Rx with len 64 bytes excl. of pre and retried (Good or Bad) */ - GmacMmcRx65To127OctetsGb = 0x01B0, /*Rx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ - GmacMmcRx128To255OctetsGb = 0x01B4, /*Rx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ - GmacMmcRx256To511OctetsGb = 0x01B8, /*Rx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ - GmacMmcRx512To1023OctetsGb = 0x01BC, /*Rx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ - GmacMmcRx1024ToMaxOctetsGb = 0x01C0, /*Rx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ - - GmacMmcRxUcFramesG = 0x01C4, /*Unicast Frames Rx (Good) */ - GmacMmcRxLengthError = 0x01C8, /*Number of frames received with Length type field != frame size */ - GmacMmcRxOutOfRangeType = 0x01CC, /*Number of frames received with length field != valid frame size */ - - GmacMmcRxPauseFrames = 0x01D0, /*Number of good pause frames Rx. */ - GmacMmcRxFifoOverFlow = 0x01D4, /*Number of missed rx frames due to FIFO overflow */ - GmacMmcRxVlanFramesGb = 0x01D8, /*Number of good Vlan frames Rx */ - - GmacMmcRxWatchdobError = 0x01DC, /*Number of frames rx with error due to watchdog timeout error */ -}; -enum MMC_IP_RELATED -{ - GmacMmcRxIpcIntrMask = 0x0200, /*Maintains the mask for interrupt generated from rx IPC statistic counters */ - GmacMmcRxIpcIntr = 0x0208, /*Maintains the interrupt that rx IPC statistic counters generate */ - - GmacMmcRxIpV4FramesG = 0x0210, /*Good IPV4 datagrams received */ - GmacMmcRxIpV4HdrErrFrames = 0x0214, /*Number of IPV4 datagrams received with header errors */ - GmacMmcRxIpV4NoPayFrames = 0x0218, /*Number of IPV4 datagrams received which didnot have TCP/UDP/ICMP payload */ - GmacMmcRxIpV4FragFrames = 0x021C, /*Number of IPV4 datagrams received with fragmentation */ - GmacMmcRxIpV4UdpChkDsblFrames = 0x0220, /*Number of IPV4 datagrams received that had a UDP payload checksum disabled */ - - GmacMmcRxIpV6FramesG = 0x0224, /*Good IPV6 datagrams received */ - GmacMmcRxIpV6HdrErrFrames = 0x0228, /*Number of IPV6 datagrams received with header errors */ - GmacMmcRxIpV6NoPayFrames = 0x022C, /*Number of IPV6 datagrams received which didnot have TCP/UDP/ICMP payload */ - - GmacMmcRxUdpFramesG = 0x0230, /*Number of good IP datagrams with good UDP payload */ - GmacMmcRxUdpErrorFrames = 0x0234, /*Number of good IP datagrams with UDP payload having checksum error */ - - GmacMmcRxTcpFramesG = 0x0238, /*Number of good IP datagrams with good TDP payload */ - GmacMmcRxTcpErrorFrames = 0x023C, /*Number of good IP datagrams with TCP payload having checksum error */ - - GmacMmcRxIcmpFramesG = 0x0240, /*Number of good IP datagrams with good Icmp payload */ - GmacMmcRxIcmpErrorFrames = 0x0244, /*Number of good IP datagrams with Icmp payload having checksum error */ - - GmacMmcRxIpV4OctetsG = 0x0250, /*Good IPV4 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ - GmacMmcRxIpV4HdrErrorOctets = 0x0254, /*Number of bytes in IPV4 datagram with header errors */ - GmacMmcRxIpV4NoPayOctets = 0x0258, /*Number of bytes in IPV4 datagram with no TCP/UDP/ICMP payload */ - GmacMmcRxIpV4FragOctets = 0x025C, /*Number of bytes received in fragmented IPV4 datagrams */ - GmacMmcRxIpV4UdpChkDsblOctets = 0x0260, /*Number of bytes received in UDP segment that had UDP checksum disabled */ - - GmacMmcRxIpV6OctetsG = 0x0264, /*Good IPV6 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ - GmacMmcRxIpV6HdrErrorOctets = 0x0268, /*Number of bytes in IPV6 datagram with header errors */ - GmacMmcRxIpV6NoPayOctets = 0x026C, /*Number of bytes in IPV6 datagram with no TCP/UDP/ICMP payload */ - - GmacMmcRxUdpOctetsG = 0x0270, /*Number of bytes in IP datagrams with good UDP payload */ - GmacMmcRxUdpErrorOctets = 0x0274, /*Number of bytes in IP datagrams with UDP payload having checksum error */ - - GmacMmcRxTcpOctetsG = 0x0278, /*Number of bytes in IP datagrams with good TDP payload */ - GmacMmcRxTcpErrorOctets = 0x027C, /*Number of bytes in IP datagrams with TCP payload having checksum error */ - - GmacMmcRxIcmpOctetsG = 0x0280, /*Number of bytes in IP datagrams with good Icmp payload */ - GmacMmcRxIcmpErrorOctets = 0x0284, /*Number of bytes in IP datagrams with Icmp payload having checksum error */ -}; - - -enum MMC_CNTRL_REG_BIT_DESCRIPTIONS -{ - GmacMmcCounterFreeze = 0x00000008, /* when set MMC counters freeze to current value */ - GmacMmcCounterResetOnRead = 0x00000004, /* when set MMC counters will be reset to 0 after read */ - GmacMmcCounterStopRollover = 0x00000002, /* when set counters will not rollover after max value */ - GmacMmcCounterReset = 0x00000001, /* when set all counters wil be reset (automatically cleared after 1 clk) */ - -}; - -enum MMC_RX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS -{ - GmacMmcRxWDInt = 0x00800000, /* set when rxwatchdog error reaches half of max value */ - GmacMmcRxVlanInt = 0x00400000, /* set when GmacMmcRxVlanFramesGb counter reaches half of max value */ - GmacMmcRxFifoOverFlowInt = 0x00200000, /* set when GmacMmcRxFifoOverFlow counter reaches half of max value */ - GmacMmcRxPauseFrameInt = 0x00100000, /* set when GmacMmcRxPauseFrames counter reaches half of max value */ - GmacMmcRxOutOfRangeInt = 0x00080000, /* set when GmacMmcRxOutOfRangeType counter reaches half of max value */ - GmacMmcRxLengthErrorInt = 0x00040000, /* set when GmacMmcRxLengthError counter reaches half of max value */ - GmacMmcRxUcFramesInt = 0x00020000, /* set when GmacMmcRxUcFramesG counter reaches half of max value */ - GmacMmcRx1024OctInt = 0x00010000, /* set when GmacMmcRx1024ToMaxOctetsGb counter reaches half of max value */ - GmacMmcRx512OctInt = 0x00008000, /* set when GmacMmcRx512To1023OctetsGb counter reaches half of max value */ - GmacMmcRx256OctInt = 0x00004000, /* set when GmacMmcRx256To511OctetsGb counter reaches half of max value */ - GmacMmcRx128OctInt = 0x00002000, /* set when GmacMmcRx128To255OctetsGb counter reaches half of max value */ - GmacMmcRx65OctInt = 0x00001000, /* set when GmacMmcRx65To127OctetsG counter reaches half of max value */ - GmacMmcRx64OctInt = 0x00000800, /* set when GmacMmcRx64OctetsGb counter reaches half of max value */ - GmacMmcRxOverSizeInt = 0x00000400, /* set when GmacMmcRxOverSizeG counter reaches half of max value */ - GmacMmcRxUnderSizeInt = 0x00000200, /* set when GmacMmcRxUnderSizeG counter reaches half of max value */ - GmacMmcRxJabberErrorInt = 0x00000100, /* set when GmacMmcRxJabberError counter reaches half of max value */ - GmacMmcRxRuntErrorInt = 0x00000080, /* set when GmacMmcRxRuntError counter reaches half of max value */ - GmacMmcRxAlignErrorInt = 0x00000040, /* set when GmacMmcRxAlignError counter reaches half of max value */ - GmacMmcRxCrcErrorInt = 0x00000020, /* set when GmacMmcRxCrcError counter reaches half of max value */ - GmacMmcRxMcFramesInt = 0x00000010, /* set when GmacMmcRxMcFramesG counter reaches half of max value */ - GmacMmcRxBcFramesInt = 0x00000008, /* set when GmacMmcRxBcFramesG counter reaches half of max value */ - GmacMmcRxOctetGInt = 0x00000004, /* set when GmacMmcRxOctetCountG counter reaches half of max value */ - GmacMmcRxOctetGbInt = 0x00000002, /* set when GmacMmcRxOctetCountGb counter reaches half of max value */ - GmacMmcRxFrameInt = 0x00000001, /* set when GmacMmcRxFrameCountGb counter reaches half of max value */ -}; - -enum MMC_TX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS -{ - - GmacMmcTxVlanInt = 0x01000000, /* set when GmacMmcTxVlanFramesG counter reaches half of max value */ - GmacMmcTxPauseFrameInt = 0x00800000, /* set when GmacMmcTxPauseFrames counter reaches half of max value */ - GmacMmcTxExessDefInt = 0x00400000, /* set when GmacMmcTxExessDef counter reaches half of max value */ - GmacMmcTxFrameInt = 0x00200000, /* set when GmacMmcTxFrameCount counter reaches half of max value */ - GmacMmcTxOctetInt = 0x00100000, /* set when GmacMmcTxOctetCountG counter reaches half of max value */ - GmacMmcTxCarrierErrorInt = 0x00080000, /* set when GmacMmcTxCarrierError counter reaches half of max value */ - GmacMmcTxExessColInt = 0x00040000, /* set when GmacMmcTxExessCol counter reaches half of max value */ - GmacMmcTxLateColInt = 0x00020000, /* set when GmacMmcTxLateCol counter reaches half of max value */ - GmacMmcTxDeferredInt = 0x00010000, /* set when GmacMmcTxDeferred counter reaches half of max value */ - GmacMmcTxMultiColInt = 0x00008000, /* set when GmacMmcTxMultiColG counter reaches half of max value */ - GmacMmcTxSingleCol = 0x00004000, /* set when GmacMmcTxSingleColG counter reaches half of max value */ - GmacMmcTxUnderFlowErrorInt = 0x00002000, /* set when GmacMmcTxUnderFlowError counter reaches half of max value */ - GmacMmcTxBcFramesGbInt = 0x00001000, /* set when GmacMmcTxBcFramesGb counter reaches half of max value */ - GmacMmcTxMcFramesGbInt = 0x00000800, /* set when GmacMmcTxMcFramesGb counter reaches half of max value */ - GmacMmcTxUcFramesInt = 0x00000400, /* set when GmacMmcTxUcFramesGb counter reaches half of max value */ - GmacMmcTx1024OctInt = 0x00000200, /* set when GmacMmcTx1024ToMaxOctetsGb counter reaches half of max value */ - GmacMmcTx512OctInt = 0x00000100, /* set when GmacMmcTx512To1023OctetsGb counter reaches half of max value */ - GmacMmcTx256OctInt = 0x00000080, /* set when GmacMmcTx256To511OctetsGb counter reaches half of max value */ - GmacMmcTx128OctInt = 0x00000040, /* set when GmacMmcTx128To255OctetsGb counter reaches half of max value */ - GmacMmcTx65OctInt = 0x00000020, /* set when GmacMmcTx65To127OctetsGb counter reaches half of max value */ - GmacMmcTx64OctInt = 0x00000010, /* set when GmacMmcTx64OctetsGb counter reaches half of max value */ - GmacMmcTxMcFramesInt = 0x00000008, /* set when GmacMmcTxMcFramesG counter reaches half of max value */ - GmacMmcTxBcFramesInt = 0x00000004, /* set when GmacMmcTxBcFramesG counter reaches half of max value */ - GmacMmcTxFrameGbInt = 0x00000002, /* set when GmacMmcTxFrameCountGb counter reaches half of max value */ - GmacMmcTxOctetGbInt = 0x00000001, /* set when GmacMmcTxOctetCountGb counter reaches half of max value */ - -}; - - -/********************************************************** - * Power Management (PMT) Block - **********************************************************/ - -/** - * PMT supports the reception of network (remote) wake-up frames and Magic packet frames. - * It generates interrupts for wake-up frames and Magic packets received by GMAC. - * PMT sits in Rx path and is enabled with remote wake-up frame enable and Magic packet enable. - * These enable are in PMT control and Status register and are programmed by apllication. - * - * When power down mode is enabled in PMT, all rx frames are dropped by the core. Core comes - * out of power down mode only when either Magic packe tor a Remote wake-up frame is received - * and the corresponding detection is enabled. - * - * Driver need not be modified to support this feature. Only Api to put the device in to power - * down mode is sufficient - */ - -#define WAKEUP_REG_LENGTH 8 /*This is the reg length for wake up register configuration*/ - -enum GmacPmtCtrlStatusBitDefinition -{ - GmacPmtFrmFilterPtrReset = 0x80000000, /* when set remote wake-up frame filter register pointer to 3'b000 */ - GmacPmtGlobalUnicast = 0x00000200, /* When set enables any unicast packet to be a wake-up frame */ - GmacPmtWakeupFrameReceived = 0x00000040, /* Wake up frame received */ - GmacPmtMagicPktReceived = 0x00000020, /* Magic Packet received */ - GmacPmtWakeupFrameEnable = 0x00000004, /* Wake-up frame enable */ - GmacPmtMagicPktEnable = 0x00000002, /* Magic packet enable */ - GmacPmtPowerDown = 0x00000001, /* Power Down */ -}; - - - - -/********************************************************** - * IEEE 1588-2008 Precision Time Protocol (PTP) Support - **********************************************************/ -enum PTPMessageType -{ - SYNC = 0x0, - Delay_Req = 0x1, - Pdelay_Req = 0x2, - Pdelay_Resp = 0x3, - Follow_up = 0x8, - Delay_Resp = 0x9, - Pdelay_Resp_Follow_Up = 0xA, - Announce = 0xB, - Signaling = 0xC, - Management = 0xD, -}; - - - -typedef struct TimeStampStruct -{ - u32 TSversion; /* PTP Version 1 or PTP version2 */ - u32 TSmessagetype; /* Message type associated with this time stamp */ - - u16 TShighest16; /* Highest 16 bit time stamp value, Valid onley when ADV_TIME_HIGH_WORD configured in corekit */ - u32 TSupper32; /* Most significant 32 bit time stamp value */ - u32 TSlower32; /* Least Significat 32 bit time stamp value */ - -} TimeStamp; - - -/** - * IEEE 1588-2008 is the optional module to support Ethernet frame time stamping. - * Sixty four (+16) bit time stamps are given in each frames transmit and receive status. - * The driver assumes the following - * 1. "IEEE 1588 Time Stamping" "TIME_STAMPING"is ENABLED in corekit - * 2. "IEEE 1588 External Time Stamp Input Enable" "EXT_TIME_STAMPING" is DISABLED in corekit - * 3. "IEEE 1588 Advanced Time Stamp support" "ADV_TIME_STAMPING" is ENABLED in corekit - * 4. "IEEE 1588 Higher Word Register Enable" "ADV_TIME_HIGH_WORD" is ENABLED in corekit - */ - -/* GmacTSControl = 0x0700, Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ -enum GmacTSControlReg -{ - GmacTSENMACADDR = 0x00040000, /* Enable Mac Addr for PTP filtering 18 RW 0 */ - - GmacTSCLKTYPE = 0x00030000, /* Select the type of clock node 17:16 RW 00 */ - /* - TSCLKTYPE TSMSTRENA TSEVNTENA Messages for wihich TS snapshot is taken - 00/01 X 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP - 00/01 1 0 DELAY_REQ - 00/01 0 1 SYNC - 10 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP - 10 NA 1 SYNC, FOLLOW_UP - 11 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP, PDELAY_REQ, PDELAY_RESP - 11 NA 1 SYNC, PDELAY_REQ, PDELAY_RESP - */ - GmacTSOrdClk = 0x00000000, /* 00=> Ordinary clock*/ - GmacTSBouClk = 0x00010000, /* 01=> Boundary clock*/ - GmacTSEtoEClk = 0x00020000, /* 10=> End-to-End transparent clock*/ - GmacTSPtoPClk = 0x00030000, /* 11=> P-to-P transparent clock*/ - - GmacTSMSTRENA = 0x00008000, /* Ena TS Snapshot for Master Messages 15 RW 0 */ - GmacTSEVNTENA = 0x00004000, /* Ena TS Snapshot for Event Messages 14 RW 0 */ - GmacTSIPV4ENA = 0x00002000, /* Ena TS snapshot for IPv4 13 RW 1 */ - GmacTSIPV6ENA = 0x00001000, /* Ena TS snapshot for IPv6 12 RW 0 */ - GmacTSIPENA = 0x00000800, /* Ena TS snapshot for PTP over E'net 11 RW 0 */ - GmacTSVER2ENA = 0x00000400, /* Ena PTP snooping for version 2 10 RW 0 */ - - GmacTSCTRLSSR = 0x00000200, /* Digital or Binary Rollover 9 RW 0 */ - - GmacTSENALL = 0x00000100, /* Enable TS fro all frames (Ver2 only) 8 RW 0 */ - - GmacTSADDREG = 0x00000020, /* Addend Register Update 5 RW_SC 0 */ - GmacTSUPDT = 0x00000008, /* Time Stamp Update 3 RW_SC 0 */ - GmacTSINT = 0x00000004, /* Time Atamp Initialize 2 RW_SC 0 */ - - GmacTSTRIG = 0x00000010, /* Time stamp interrupt Trigger Enable 4 RW_SC 0 */ - - GmacTSCFUPDT = 0x00000002, /* Time Stamp Fine/Coarse 1 RW 0 */ - GmacTSCUPDTCoarse = 0x00000000, /* 0=> Time Stamp update method is coarse */ - GmacTSCUPDTFine = 0x00000002, /* 1=> Time Stamp update method is fine */ - - GmacTSENA = 0x00000001, /* Time Stamp Enable 0 RW 0 */ -}; - - -/* GmacTSSubSecIncr = 0x0704, 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ -enum GmacTSSubSecIncrReg -{ - GmacSSINCMsk = 0x000000FF, /* Only Lower 8 bits are valid bits 7:0 RW 00 */ -}; - -/* GmacTSLow = 0x070C, Indicates whether the timestamp low count is positive or negative; for Adv timestamp it is always zero */ -enum GmacTSSign -{ - GmacTSSign = 0x80000000, /* PSNT 31 RW 0 */ - GmacTSPositive = 0x00000000, - GmacTSNegative = 0x80000000, -}; - -/*GmacTargetTimeLow = 0x0718, 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ -enum GmacTSLowReg -{ - GmacTSDecThr = 0x3B9AC9FF, /*when TSCTRLSSR is set the max value for GmacTargetTimeLowReg and GmacTimeStampLow register is 0x3B9AC9FF at 1ns precision */ -}; - -/* GmacTSHighWord = 0x0724, Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ -enum GmacTSHighWordReg -{ - GmacTSHighWordMask = 0x0000FFFF, /* Time Stamp Higher work register has only lower 16 bits valid */ -}; -/*GmacTSStatus = 0x0728, Time Stamp Status Register */ -enum GmacTSStatusReg -{ - GmacTSTargTimeReached = 0x00000002, /* Time Stamp Target Time Reached 1 RO 0 */ - GmacTSSecondsOverflow = 0x00000001, /* Time Stamp Seconds Overflow 0 RO 0 */ -}; - - -/********************************************************** - * Time stamp related functions - **********************************************************/ -void synopGMAC_TS_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_disable(synopGMACdevice *gmacdev); - -void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev); - -void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev); -void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type); -void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" -void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" -void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" - -void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" - -s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value); -s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); -s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); - -void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled -void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled - -void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_val); // Update should happen making use of subsecond mask -void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 * higher_sec_val, - u32 * sec_val, u32 * sub_sec_val); // Reads the timestamp low,high and higher(Ver2) registers in the the struct pointer; readonly contents -void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val); //Loads the timestamp target register with the values provided - -void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val); -void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 * higher_sec_val); -void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 * sec_val, u32 * sub_sec_val); //Read the target time stamp register contents - - -/********************************************************** - * Common functions - **********************************************************/ -s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev,u32 clk_div_val ); -u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev); -s32 synopGMAC_read_phy_reg(u32 RegBase,u32 PhyBase, u32 RegOffset, u16 * data); -s32 synopGMAC_write_phy_reg(u32 RegBase, u32 PhyBase, u32 RegOffset, u16 data); -s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback); -s32 synopGMAC_read_version (synopGMACdevice * gmacdev) ; -s32 synopGMAC_reset (synopGMACdevice * gmacdev ); -s32 synopGMAC_dma_bus_mode_init(synopGMACdevice * gmacdev, u32 init_value ); -s32 synopGMAC_dma_control_init(synopGMACdevice * gmacdev, u32 init_value ); -void synopGMAC_wd_enable(synopGMACdevice * gmacdev); -void synopGMAC_wd_disable(synopGMACdevice * gmacdev); -void synopGMAC_jab_enable(synopGMACdevice * gmacdev); -void synopGMAC_jab_disable(synopGMACdevice * gmacdev); -void synopGMAC_frame_burst_enable(synopGMACdevice * gmacdev); -void synopGMAC_frame_burst_disable(synopGMACdevice * gmacdev); -void synopGMAC_jumbo_frame_enable(synopGMACdevice * gmacdev); -void synopGMAC_jumbo_frame_disable(synopGMACdevice * gmacdev); -void synopGMAC_select_gmii(synopGMACdevice * gmacdev); -void synopGMAC_select_mii(synopGMACdevice * gmacdev); -void synopGMAC_rx_own_enable(synopGMACdevice * gmacdev); -void synopGMAC_rx_own_disable(synopGMACdevice * gmacdev); -void synopGMAC_loopback_on(synopGMACdevice * gmacdev); -void synopGMAC_loopback_off(synopGMACdevice * gmacdev); -void synopGMAC_set_full_duplex(synopGMACdevice * gmacdev); -void synopGMAC_set_half_duplex(synopGMACdevice * gmacdev); -void synopGMAC_retry_enable(synopGMACdevice * gmacdev); -void synopGMAC_retry_disable(synopGMACdevice * gmacdev); -void synopGMAC_pad_crc_strip_enable(synopGMACdevice * gmacdev); -void synopGMAC_pad_crc_strip_disable(synopGMACdevice * gmacdev); -void synopGMAC_back_off_limit(synopGMACdevice * gmacdev, u32 value); -void synopGMAC_deferral_check_enable(synopGMACdevice * gmacdev); -void synopGMAC_deferral_check_disable(synopGMACdevice * gmacdev); -void synopGMAC_rx_enable(synopGMACdevice * gmacdev); -void synopGMAC_rx_disable(synopGMACdevice * gmacdev); -void synopGMAC_tx_enable(synopGMACdevice * gmacdev); -void synopGMAC_tx_disable(synopGMACdevice * gmacdev); -void synopGMAC_frame_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_frame_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_write_hash_table_high(synopGMACdevice * gmacdev, u32 data); -void synopGMAC_write_hash_table_low(synopGMACdevice * gmacdev, u32 data); -void synopGMAC_hash_perfect_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_Hash_filter_only_enable(synopGMACdevice * gmacdev); -void synopGMAC_src_addr_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_src_addr_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_dst_addr_filter_inverse(synopGMACdevice * gmacdev); -void synopGMAC_dst_addr_filter_normal(synopGMACdevice * gmacdev); -void synopGMAC_set_pass_control(synopGMACdevice * gmacdev,u32 passcontrol); -void synopGMAC_broadcast_enable(synopGMACdevice * gmacdev); -void synopGMAC_broadcast_disable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_enable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_disable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_hash_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_hash_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_promisc_enable(synopGMACdevice * gmacdev); -void synopGMAC_promisc_disable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_hash_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_hash_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice * gmacdev); -void synopGMAC_rx_flow_control_enable(synopGMACdevice * gmacdev); -void synopGMAC_rx_flow_control_disable(synopGMACdevice * gmacdev); -void synopGMAC_tx_flow_control_enable(synopGMACdevice * gmacdev); -void synopGMAC_tx_flow_control_disable(synopGMACdevice * gmacdev); -void synopGMAC_tx_activate_flow_control(synopGMACdevice * gmacdev); -void synopGMAC_tx_deactivate_flow_control(synopGMACdevice * gmacdev); -void synopGMAC_pause_control(synopGMACdevice *gmacdev); -s32 synopGMAC_mac_init(synopGMACdevice * gmacdev); -s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); -s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); -s32 synopGMAC_attach (synopGMACdevice * gmacdev, u32 macBase, u32 dmaBase, u32 phyBase,u8 *mac_addr); -void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); -void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); -void synopGMAC_rx_desc_init_chain(DmaDesc * desc); -void synopGMAC_tx_desc_init_chain(DmaDesc * desc); -s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev); -void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev); -void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev); -void synopGMAC_set_owner_dma(DmaDesc *desc); -void synopGMAC_set_desc_sof(DmaDesc *desc); -void synopGMAC_set_desc_eof(DmaDesc *desc); -bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc); -bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc); -bool synopGMAC_is_da_filter_failed(DmaDesc *desc); -bool synopGMAC_is_sa_filter_failed(DmaDesc *desc); -bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc); -u32 synopGMAC_get_rx_desc_frame_length(u32 status); -bool synopGMAC_is_desc_valid(u32 status); -bool synopGMAC_is_desc_empty(DmaDesc *desc); -bool synopGMAC_is_rx_desc_valid(u32 status); -bool synopGMAC_is_tx_aborted(u32 status); -bool synopGMAC_is_tx_carrier_error(u32 status); -u32 synopGMAC_get_tx_collision_count(u32 status); -u32 synopGMAC_is_exc_tx_collisions(u32 status); -bool synopGMAC_is_rx_frame_damaged(u32 status); -bool synopGMAC_is_rx_frame_collision(u32 status); -bool synopGMAC_is_rx_crc(u32 status); -bool synopGMAC_is_frame_dribbling_errors(u32 status); -bool synopGMAC_is_rx_frame_length_errors(u32 status); -bool synopGMAC_is_last_rx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); -bool synopGMAC_is_last_tx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); -bool synopGMAC_is_rx_desc_chained(DmaDesc * desc); -bool synopGMAC_is_tx_desc_chained(DmaDesc * desc); -void synopGMAC_get_desc_data(DmaDesc * desc, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2); -#ifdef ENH_DESC_8W -s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, - u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); -#else -s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2 ); -#endif -s32 synopGMAC_set_tx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2,u32 offload_needed,u32 * index,DmaDesc *Dpr); -s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u32 Data1, u32 Buffer2, u32 Length2, u32 Data2); -#ifdef ENH_DESC_8W -s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2, - u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); -#else -s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u32 * Data1, u32 * Buffer2, u32 * Length2, u32 * Data2); -#endif -void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev); -u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev); -u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev); -void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); -void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev); -void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); -void synopGMAC_enable_dma_rx(synopGMACdevice * gmacdev); -void synopGMAC_enable_dma_tx(synopGMACdevice * gmacdev); -void synopGMAC_resume_dma_tx(synopGMACdevice * gmacdev); -void synopGMAC_resume_dma_rx(synopGMACdevice * gmacdev); -void synopGMAC_take_desc_ownership(DmaDesc * desc); -void synopGMAC_take_desc_ownership_rx(synopGMACdevice * gmacdev); -void synopGMAC_take_desc_ownership_tx(synopGMACdevice * gmacdev); -void synopGMAC_disable_dma_tx(synopGMACdevice * gmacdev); -void synopGMAC_disable_dma_rx(synopGMACdevice * gmacdev); -/******Following APIs are valid only for Enhanced Descriptor from 3.50a release onwards*******/ -bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev,u32 status); -bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev,u32 ext_status); -bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev,u32 ext_status); -bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev,u32 ext_status); -/*******************PMT APIs***************************************/ -void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev); -void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev); -void synopGMAC_power_down_enable(synopGMACdevice *gmacdev); -void synopGMAC_power_down_disable(synopGMACdevice *gmacdev); -void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev); -void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev); -void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev); -void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev); -void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev); -bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev); -bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev); -void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 * filter_contents); -/*******************MMC APIs***************************************/ -void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev); -u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter); -u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev); -u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev); -void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -/*******************Ip checksum offloading APIs***************************************/ -void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev); -void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev); -void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev); -void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev); -u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status); -bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status); -bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status); -void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc); -void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc); -void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc); -void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc); - -#endif /* End of file */ diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_Host.h b/bsp/ls1cdev/drivers/net/synopGMAC_Host.h deleted file mode 100644 index e6d31d551d..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_Host.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#ifndef SYNOP_GMAC_HOST_H -#define SYNOP_GMAC_HOST_H 1 - - -#include "synopGMAC_plat.h" -#include "synopGMAC_Dev.h" -#include "mii.h" - - - -struct net_device_stats -{ - unsigned long rx_packets; /* total packets received */ - unsigned long tx_packets; /* total packets transmitted */ - unsigned long rx_bytes; /* total bytes received */ - unsigned long tx_bytes; /* total bytes transmitted */ - unsigned long rx_errors; /* bad packets received */ - unsigned long tx_errors; /* packet transmit problems */ - unsigned long rx_dropped; /* no space in linux buffers */ - unsigned long tx_dropped; /* no space available in linux */ - unsigned long multicast; /* multicast packets received */ - unsigned long collisions; - - /* detailed rx_errors: */ - unsigned long rx_length_errors; - unsigned long rx_over_errors; /* receiver ring buff overflow */ - unsigned long rx_crc_errors; /* recved pkt with crc error */ - unsigned long rx_frame_errors; /* recv'd frame alignment error */ - unsigned long rx_fifo_errors; /* recv'r fifo overrun */ - unsigned long rx_missed_errors; /* receiver missed packet */ - - /* detailed tx_errors */ - unsigned long tx_aborted_errors; - unsigned long tx_carrier_errors; - unsigned long tx_fifo_errors; - unsigned long tx_heartbeat_errors; - unsigned long tx_window_errors; - - /* for cslip etc */ - unsigned long rx_compressed; - unsigned long tx_compressed; -}; - - - -typedef struct synopGMACNetworkAdapter{ - -/*Device Dependent Data structur*/ -synopGMACdevice * synopGMACdev; - - -struct net_device_stats synopGMACNetStats; - - -struct mii_if_info mii; -} synopGMACPciNetworkAdapter; - - - - - - -#endif diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_debug.h b/bsp/ls1cdev/drivers/net/synopGMAC_debug.h deleted file mode 100644 index 9766587e1a..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_debug.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#ifndef __DEBUG_H__ -#define __DEBUG_H__ - -//#define GMAC_DEBUG -#include -#ifdef GMAC_DEBUG -#define DEBUG_MES rt_kprintf -#else -#define DEBUG_MES(...) -#endif - -#endif /*__DEBUG_H__*/ diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_network_interface.h b/bsp/ls1cdev/drivers/net/synopGMAC_network_interface.h deleted file mode 100644 index 8ded91d359..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_network_interface.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#ifndef SYNOP_GMAC_NETWORK_INTERFACE_H -#define SYNOP_GMAC_NETWORK_INTERFACE_H 1 - - -#include -#include -#include "synopGMAC_plat.h" -#include "synopGMAC_Host.h" -#include "synopGMAC_Dev.h" - -//#include -//#include -//#include - - -#define NET_IF_TIMEOUT (10*HZ) -#define CHECK_TIME (HZ) - -s32 synopGMAC_init_network_interface(char* xname,u64 synopGMACMappedAddr); -void synopGMAC_exit_network_interface(void); - -s32 synopGMAC_linux_open(struct eth_device *); -s32 synopGMAC_linux_close(struct eth_device *); -//s32 synopGMAC_linux_xmit_frames(struct ifnet *); -struct net_device_stats * synopGMAC_linux_get_stats(struct synopGMACNetworkAdapter *); -//void synopGMAC_linux_set_multicast_list(struct net_device *); -//s32 synopGMAC_linux_set_mac_address(struct synopGMACNetwokrAdapter*,void *); -//s32 synopGMAC_linux_change_mtu(struct net_device *,s32); -//s32 synopGMAC_linux_do_ioctl(struct ifnet *,struct ifreq *,s32); -//void synopGMAC_linux_tx_timeout(struct net_device *); - -s32 synopGMAC_test(synopGMACdevice * gmacdev_0,synopGMACdevice * gmacdev_1); - -void dumpreg(u64 ); -void dumpphyreg(); - -/* - * gethex(vp,p,n) - * convert n hex digits from p to binary, result in vp, - * rtn 1 on success - */ -static int gethex(u8 *vp, char *p, int n) -{ - u8 v; - int digit; - - for (v = 0; n > 0; n--) { - if (*p == 0) - return (0); - if (*p >= '0' && *p <= '9') - digit = *p - '0'; - else if (*p >= 'a' && *p <= 'f') - digit = *p - 'a' + 10; - else if (*p >= 'A' && *p <= 'F') - digit = *p - 'A' + 10; - else - return (0); - - v <<= 4; - v |= digit; - p++; - } - *vp = v; - return (1); -} - -#endif /* End of file */ diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_plat.c b/bsp/ls1cdev/drivers/net/synopGMAC_plat.c deleted file mode 100644 index 3dfbe077d7..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_plat.c +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - -#include "synopGMAC_plat.h" -#include "synopGMAC_Dev.h" -#include -#include -extern void flush_cache(unsigned long start_addr, unsigned long size); -dma_addr_t __attribute__((weak)) gmac_dmamap(unsigned long va,u32 size) -{ - return VA_TO_PA (va); - //return UNCACHED_TO_PHYS(va); -} - - - -/** - * This is a wrapper function for Memory allocation routine. In linux Kernel - * it it kmalloc function - * @param[in] bytes in bytes to allocate - */ - -void *plat_alloc_memory(u32 bytes) -{ -//return (void*)malloc((size_t)bytes, M_DEVBUF, M_DONTWAIT); - void *buf = (void*)rt_malloc((u32)bytes); - - flush_cache((unsigned long)buf, bytes); - return buf; -} - -/** - * This is a wrapper function for consistent dma-able Memory allocation routine. - * In linux Kernel, it depends on pci dev structure - * @param[in] bytes in bytes to allocate - */ - -//void *plat_alloc_consistent_dmaable_memory(struct synopGMACdevice *dev, u32 size, u32 *addr) -void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) -{ - void *buf; - buf = (void*)rt_malloc((u32)(size+16)); - //CPU_IOFlushDCache( buf,size, SYNC_W); - unsigned long i = (unsigned long)buf; -// rt_kprintf("size = %d\n", size); -// rt_kprintf("bufaddr = %p\n", buf); -// rt_kprintf("i%%16 == %d\n", i%16); - if(i%16 == 8){ - i += 8; - } - else if(i%16 == 4){ - i += 12; - } - else if(i%16 == 12){ - i += 4; - } - - flush_cache(i, size); - *addr =gmac_dmamap(i, size); - buf = (unsigned char *)CACHED_TO_UNCACHED(i); -// rt_kprintf("bufaddr = %p\n", buf); - return buf; -} - - -/** - * This is a wrapper function for freeing consistent dma-able Memory. - * In linux Kernel, it depends on pci dev structure - * @param[in] bytes in bytes to allocate - */ - - -//void plat_free_consistent_dmaable_memory(void * addr) -void plat_free_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, void * addr,u32 dma_addr) -{ - rt_free((void*)PHYS_TO_CACHED(UNCACHED_TO_PHYS(addr))); - return; -} - - - -/** - * This is a wrapper function for Memory free routine. In linux Kernel - * it it kfree function - * @param[in] buffer pointer to be freed - */ -void plat_free_memory(void *buffer) -{ - rt_free(buffer); - return ; -} - - - -dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, - u32 size) -{ - unsigned long addr = (unsigned long) ptr; -//CPU_IOFlushDCache(addr,size, direction); - flush_cache(addr, size); -return gmac_dmamap(addr, size); -} - -/** - * This is a wrapper function for platform dependent delay - * Take care while passing the argument to this function - * @param[in] buffer pointer to be freed - */ -void plat_delay(u32 delay) -{ - while (delay--); - return; -} - - diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_plat.h b/bsp/ls1cdev/drivers/net/synopGMAC_plat.h deleted file mode 100644 index 173015a53f..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_plat.h +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - - -#ifndef SYNOP_GMAC_PLAT_H -#define SYNOP_GMAC_PLAT_H 1 - -/* sw -#include -#include -#include -#include -#include -*/ -#include "synopGMAC_types.h" -#include "synopGMAC_debug.h" -//#include "mii.h" -//#include "GMAC_Pmon.h" -//#include "synopGMAC_Host.h" -#include -//sw: copy the type define into here -#define IOCTL_READ_REGISTER SIOCDEVPRIVATE+1 -#define IOCTL_WRITE_REGISTER SIOCDEVPRIVATE+2 -#define IOCTL_READ_IPSTRUCT SIOCDEVPRIVATE+3 -#define IOCTL_READ_RXDESC SIOCDEVPRIVATE+4 -#define IOCTL_READ_TXDESC SIOCDEVPRIVATE+5 -#define IOCTL_POWER_DOWN SIOCDEVPRIVATE+6 - -#define SYNOP_GMAC0 1 - -typedef int bool; -//typedef unsigned long dma_addr_t; - - - -#define KUSEG_ADDR 0x0 -#define CACHED_MEMORY_ADDR 0x80000000 -#define UNCACHED_MEMORY_ADDR 0xa0000000 -#define KSEG2_ADDR 0xc0000000 -#define MAX_MEM_ADDR 0xbe000000 -#define RESERVED_ADDR 0xbfc80000 - -#define CACHED_TO_PHYS(x) ((unsigned)(x) & 0x7fffffff) -#define PHYS_TO_CACHED(x) ((unsigned)(x) | CACHED_MEMORY_ADDR) -#define UNCACHED_TO_PHYS(x) ((unsigned)(x) & 0x1fffffff) -#define PHYS_TO_UNCACHED(x) ((unsigned)(x) | UNCACHED_MEMORY_ADDR) -#define VA_TO_CINDEX(x) ((unsigned)(x) & 0xffffff | CACHED_MEMORY_ADDR) -#define CACHED_TO_UNCACHED(x) (PHYS_TO_UNCACHED(CACHED_TO_PHYS(x))) - -#define VA_TO_PA(x) UNCACHED_TO_PHYS(x) - - -/* sw -#define TR0(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) - -#ifdef DEBUG -#undef TR -# define TR(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) -#else -# define TR(fmt, args...) // not debugging: nothing -#endif -*/ -/* -#define TR0(fmt, args...) printf("SynopGMAC: " fmt, ##args) -*/ - -/* -#ifdef DEBUG -#undef TR -# define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) -#else -//# define TR(fmt, args...) // not debugging: nothing -#define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) -#endif -*/ - -//sw: nothing to display -#define TR0(fmt, args...) //rt_kprintf(fmt, ##args) -#define TR(fmt, args...) //rt_kprintf(fmt, ##args) -//#define TR rt_kprintf - -//typedef int bool; -enum synopGMAC_boolean - { - false = 0, - true = 1 - }; - - -#define DEFAULT_DELAY_VARIABLE 10 -#define DEFAULT_LOOP_VARIABLE 10000 - -/* There are platform related endian conversions - * - */ - -#define LE32_TO_CPU __le32_to_cpu -#define BE32_TO_CPU __be32_to_cpu -#define CPU_TO_LE32 __cpu_to_le32 - -/* Error Codes */ -#define ESYNOPGMACNOERR 0 -#define ESYNOPGMACNOMEM 1 -#define ESYNOPGMACPHYERR 2 -#define ESYNOPGMACBUSY 3 - -struct Network_interface_data -{ - u32 unit; - u32 addr; - u32 data; -}; - - -/** - * These are the wrapper function prototypes for OS/platform related routines - */ - -void * plat_alloc_memory(u32 ); -void plat_free_memory(void *); - -//void * plat_alloc_consistent_dmaable_memory(struct pci_dev *, u32, u32 *); -//void plat_free_consistent_dmaable_memory (struct pci_dev *, u32, void *, u32); - -void plat_delay(u32); - - -/** - * The Low level function to read register contents from Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * \return Returns the register contents - */ -static u32 synopGMACReadReg(u32 RegBase, u32 RegOffset) -{ - u32 addr; - u32 data; - - addr = RegBase + (u32)RegOffset; - data = *(volatile u32 *)addr; - -#if SYNOP_REG_DEBUG - TR("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); -#endif - // rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); - return data; - -} - -/** - * The Low level function to write to a register in Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Data to be written - * \return void - */ -static void synopGMACWriteReg(u32 RegBase, u32 RegOffset, u32 RegData ) -{ - - u32 addr; - - addr = RegBase + (u32)RegOffset; -// rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); -#if SYNOP_REG_DEBUG - TR("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); -#endif - *(volatile u32 *)addr = RegData; - - if(addr == 0xbfe1100c) - DEBUG_MES("regdata = %08x\n", RegData); - return; -} - -/** - * The Low level function to set bits of a register in Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Bit mask to set bits to logical 1 - * \return void - */ -static void synopGMACSetBits(u32 RegBase, u32 RegOffset, u32 BitPos) -{ - //u64 addr = (u64)RegBase + (u64)RegOffset; - u32 data; - data = synopGMACReadReg(RegBase, RegOffset); - data |= BitPos; - synopGMACWriteReg(RegBase, RegOffset, data); - // writel(data,(void *)addr); -#if SYNOP_REG_DEBUG - TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); -#endif - return; -} - - -/** - * The Low level function to clear bits of a register in Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Bit mask to clear bits to logical 0 - * \return void - */ -static void synopGMACClearBits(u32 RegBase, u32 RegOffset, u32 BitPos) -{ - u32 data; - data = synopGMACReadReg(RegBase, RegOffset); - data &= (~BitPos); - synopGMACWriteReg(RegBase, RegOffset, data); -#if SYNOP_REG_DEBUG - TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); -#endif - return; -} - -/** - * The Low level function to Check the setting of the bits. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Bit mask to set bits to logical 1 - * \return returns TRUE if set to '1' returns FALSE if set to '0'. Result undefined there are no bit set in the BitPos argument. - * - */ -static bool synopGMACCheckBits(u32 RegBase, u32 RegOffset, u32 BitPos) -{ - - u32 data; - data = synopGMACReadReg(RegBase, RegOffset); - data &= BitPos; - if(data) return true; - else return false; - -} - - - - - -#endif diff --git a/bsp/ls1cdev/drivers/net/synopGMAC_types.h b/bsp/ls1cdev/drivers/net/synopGMAC_types.h deleted file mode 100644 index 88504eebf7..0000000000 --- a/bsp/ls1cdev/drivers/net/synopGMAC_types.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - - - -#ifndef __TYPES__H -#define __TYPES__H - -typedef unsigned char uint8_t; -typedef unsigned long long u64; -typedef unsigned int u32; -typedef unsigned short u16; -typedef unsigned char u8; -typedef signed int s32; - -typedef u32 dma_addr_t; - -#endif /*__TYPES__H*/ diff --git a/bsp/ls1cdev/drivers/selfboot.h b/bsp/ls1cdev/drivers/selfboot.h deleted file mode 100644 index def9e38229..0000000000 --- a/bsp/ls1cdev/drivers/selfboot.h +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) 2006-2019, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2019-12-04 Jiaxun Yang Initial version - */ - -#ifndef __RT_LS1C_SELFBOOT_H -#define __RT_LS1C_SELFBOOT_H - -/* SDRAM PARAM macro */ -#define SD_FREQ (((APB_CLK / 4) * (PLL_MULT / CPU_DIV)) / SDRAM_PARAM_DIV_NUM) - - -/* SDRAM ROW */ -#define ROW_1K 0x7 -#define ROW_2K 0x0 -#define ROW_4K 0x1 -#define ROW_8K 0x2 -#define ROW_16K 0x3 -/* SDRAM COL */ -#define COL_256 0x7 -#define COL_512 0x0 -#define COL_1K 0x1 -#define COL_2K 0x2 -#define COL_4K 0x3 -/* SDRAM WIDTH */ -#define WIDTH_8 0x0 -#define WIDTH_16 0x1 -#define WIDTH_32 0x2 - -#define TRCD 3 -#define TCL 3 -#define TRP 3 -#define TRFC 8 -#define TRAS 6 -#define TREF 0x818 -#define TWR 2 - -#define DEF_SEL 0x1 -#define DEF_SEL_N 0x0 -#define HANG_UP 0x1 -#define HANG_UP_N 0x0 -#define CFG_VALID 0x1 - -#include "board.h" - -#define SD_PARA0 (0x7f<<25 | \ - (TRAS << 21) | \ - (TRFC << 17) | (TRP << 14) | (TCL << 11) | \ - (TRCD << 8) | (SDRAM_WIDTH << 6) | (SDRAM_COL << 3) | \ - SDRAM_ROW) - -#define SD_PARA1 ((HANG_UP_N << 8) | (DEF_SEL_N << 7) | (TWR << 5) | (TREF >> 7)) - -#define SD_PARA1_EN ((CFG_VALID << 9) | (HANG_UP_N << 8) | \ - (DEF_SEL_N << 7) | (TWR << 5) | (TREF >> 7)) - -#define LS1C_CBUS_FIRST1 0xBFE011C4 -#define LS1C_UART2_BASE 0xBFE48000 - -/* UART register offset*/ -#define LS1C_UART_DAT_OFFSET (0) -#define LS1C_UART_IER_OFFSET (1) -#define LS1C_UART_IIR_OFFSET (2) -#define LS1C_UART_FCR_OFFSET (2) -#define LS1C_UART_LCR_OFFSET (3) -#define LS1C_UART_MCR_OFFSET (4) -#define LS1C_UART_LSR_OFFSET (5) -#define LS1C_UART_MSR_OFFSET (6) - -#define LS1C_UART_LSB_OFFSET (0) -#define LS1C_UART_MSB_OFFSET (1) - -/* interrupt enable register */ -#define IER_IRxE 0x1 -#define IER_ITxE 0x2 -#define IER_ILE 0x4 -#define IER_IME 0x8 - -/* interrupt identification register */ -#define IIR_IMASK 0xf /* mask */ -#define IIR_RXTOUT 0xc /* receive timeout */ -#define IIR_RLS 0x6 /* receive line status */ -#define IIR_RXRDY 0x4 /* receive ready */ -#define IIR_TXRDY 0x2 /* transmit ready */ -#define IIR_NOPEND 0x1 /* nothing */ -#define IIR_MLSC 0x0 /* modem status */ -#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ - -/* fifo control register */ -#define FIFO_ENABLE 0x01 /* enable fifo */ -#define FIFO_RCV_RST 0x02 /* reset receive fifo */ -#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ -#define FIFO_DMA_MODE 0x08 /* enable dma mode */ -#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ -#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ -#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ -#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ - -/* character format control register */ -#define CFCR_DLAB 0x80 /* divisor latch */ -#define CFCR_SBREAK 0x40 /* send break */ -#define CFCR_PZERO 0x30 /* zero parity */ -#define CFCR_PONE 0x20 /* one parity */ -#define CFCR_PEVEN 0x10 /* even parity */ -#define CFCR_PODD 0x00 /* odd parity */ -#define CFCR_PENAB 0x08 /* parity enable */ -#define CFCR_STOPB 0x04 /* 2 stop bits */ -#define CFCR_8BITS 0x03 /* 8 data bits */ -#define CFCR_7BITS 0x02 /* 7 data bits */ -#define CFCR_6BITS 0x01 /* 6 data bits */ -#define CFCR_5BITS 0x00 /* 5 data bits */ - -/* modem control register */ -#define MCR_LOOPBACK 0x10 /* loopback */ -#define MCR_IENABLE 0x08 /* output 2 = int enable */ -#define MCR_DRS 0x04 /* output 1 = xxx */ -#define MCR_RTS 0x02 /* enable RTS */ -#define MCR_DTR 0x01 /* enable DTR */ - -/* line status register */ -#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ -#define LSR_TSRE 0x40 /* transmitter empty */ -#define LSR_TXRDY 0x20 /* transmitter ready */ -#define LSR_BI 0x10 /* break detected */ -#define LSR_FE 0x08 /* framing error */ -#define LSR_PE 0x04 /* parity error */ -#define LSR_OE 0x02 /* overrun error */ -#define LSR_RXRDY 0x01 /* receiver ready */ -#define LSR_RCV_MASK 0x1f - - -/* External clock frequency */ -#define AHB_CLK (24000000) -#define APB_CLK (AHB_CLK) - - -/* START_FREQ register bits */ -#define M_PLL_SHIFT (8) -#define M_PLL (0xff << M_PLL_SHIFT) -#define FRAC_N_SHIFT (16) -#define FRAC_N (0xff << FRAC_N_SHIFT) -#define DIV_SDRAM_SHIFT (0) -#define DIV_SDRAM (0x3 << DIV_SDRAM_SHIFT) - -/* CLK_DIV_PARAM register bits */ -#define DIV_PIX_EN (0x1 << 31) -#define DIV_PIX (0x7f << 24) -#define DIV_CAM_EN (0x1 << 23) -#define DIV_CAM (0x7f << 16) -#define DIV_CPU_EN (0x1 << 15) -#define DIV_CPU (0x7f << 8) -#define DIV_PIX_VALID (0x1 << 5) -#define DIV_PIX_SEL (0x1 << 4) -#define DIV_CAM_VALID (0x1 << 3) -#define DIV_CAM_SEL (0x1 << 2) -#define DIV_CPU_VALID (0x1 << 1) -#define DIV_CPU_SEL (0x1 << 0) - -#define DIV_PIX_SHIFT (24) -#define DIV_CAM_SHIFT (16) -#define DIV_CPU_SHIFT (8) - -#endif diff --git a/bsp/ls1cdev/drivers/selfboot_gcc.S b/bsp/ls1cdev/drivers/selfboot_gcc.S deleted file mode 100644 index 03dfc206d4..0000000000 --- a/bsp/ls1cdev/drivers/selfboot_gcc.S +++ /dev/null @@ -1,549 +0,0 @@ -/* - * Copyright (c) 2006-2019, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Origin Authors: Loongson Technology Corporation Limited, - * caogos <1207280597@qq.com>, Jiaxun Yang , - * - * Also thanks to Liu Shiwei and other Loongson - * Community developers. - * - * Change Logs: - * Date Author Notes - * 2019-12-04 Jiaxun Yang Initial version - */ - -#include - -#ifdef RT_USING_SELF_BOOT - -#ifndef __ASSEMBLY__ -#define __ASSEMBLY__ -#endif - -#include -#include "selfboot.h" -#include "ls1c.h" -#include "cache.h" - -/* - * Register usage: - * - * s0 link versus load offset, used to relocate absolute adresses. - * s1 free - * s2 memory size - * s3 free - * s4 free - * s5 dbg - * s6 sdCfg - * s7 rasave - * s8 free - */ - -#define tmpsize s1 -#define msize s2 -#define bonito s4 -#define dbg s5 -#define sdCfg s6 - - -/* Macros */ -#ifdef RT_SELF_BOOT_DEBUG -#define PRINTSTR(str) \ - .pushsection .selfboot_data; .align 4; 98: .asciz str; .popsection; la a0, 98b; bal stringserial; nop -#else -#define PRINTSTR(x) -#endif - -#define DELAY(count) \ - li v0, count; \ -99: \ - bnez v0, 99b;\ - addiu v0, -1 - -.section ".selfboot", "ax" -.set noreorder -.set mips32 -.globl _start -.extern start -_start: - -/* NMI/Reset vector starts here*/ - mtc0 zero, CP0_STATUS /* set cp0 status register to zero */ - mtc0 zero, CP0_CAUSE /* set cp0 cause register to zero */ - - li t0, ST0_BEV /* set exception vector to in flash location */ - mtc0 t0, CP0_STATUS - - /* Speed up SPI reading */ - li t0, 0xbfe80000 /* load SPI0 controler base address to t0 */ - li t1, 0x17 /* load "div 4, fast_read + burst_en + memory_en double I/O" to - * to t0 for write, not all the flash chips support this mode */ - sb t1, 0x4(t0) /* set sfc_param register */ - li t1, 0x05 - sb t1, 0x6(t0) /* set sfc_timing register */ - - bal locate /* branch out of vector and get current address to ra */ - nop - -/* in-flash exception vectors start here */ -/* save the exception types to a0 and print out PANIC message in exc_common */ -#define EXC_TLB_REFILL 0x0 -#define EXC_CACHE_ERR 0x1 -#define EXC_GEN 0x2 -#define EXC_INT 0x3 - -.org 0x200 /* 0xbfc00200 TLB_REFILL exception */ - li a0, EXC_TLB_REFILL - b exc_common - nop - -.org 0x300 /* 0xbfc00300 Cache Error exception */ - li a0, EXC_CACHE_ERR - b exc_common - nop - -.org 0x380 /* 0xbfc00300 General exception */ - li a0,EXC_GEN - b exc_common - nop - -.org 0x400 /* 0xbfc00400 Interrupt exception */ - li a0, EXC_INT - b exc_common - nop - -1: /* impossible to reach here, so make a dead loop */ - b 1b - nop - -exc_common: /* try one cause and pass to next */ - li s1, EXC_TLB_REFILL - bne a0, s1, 1f - nop - PRINTSTR("\r\nEARLY_PANIC: Exception TLB Refill") - b print_cause - nop -1: - li s1, EXC_CACHE_ERR - bne a0, s1, 1f - nop - PRINTSTR("\r\nEARLY_PANIC: CACHE Error: ") - mfc0 a0, CP0_CACHEERR - bal hexserial - nop - b print_cause - nop -1: - li s1, EXC_GEN - bne a0, s1, 1f - nop - PRINTSTR("\r\nEARLY_PANIC: General Exception") - b print_cause - nop -1: - li s1, EXC_INT - bne a0, s1, print_cause /* if all exceptions in a0 not reached, - * print_cause directly*/ - nop - PRINTSTR("\r\nEARLY_PANIC: Interrupt Exception") -print_cause: - PRINTSTR("\r\nCAUSE=") - mfc0 a0, CP0_CAUSE - bal hexserial - nop - - PRINTSTR("\r\nSTATUS=") - mfc0 a0, CP0_STATUS - bal hexserial - nop - - PRINTSTR("\r\nERRORPC=") - mfc0 a0, CP0_ERROREPC - bal hexserial - nop - - PRINTSTR("\r\nEPC=") - mfc0 a0, CP0_EPC - bal hexserial - nop - - PRINTSTR("\r\nBADADDR=") - mfc0 a0, CP0_BADVADDR - bal hexserial - nop - - PRINTSTR("\r\nEARLY: LOOP! Noting to do") -1: /* Make a dead loop here, wait user to reset the MCU */ - b 1b - nop - -/* locate here, continue the start progress */ - -locate: - /* fix the absolute address by ra */ - la s0, start /* s0 = start */ - subu s0, ra, s0 /* s0 = ra - s0 */ - and s0, 0xffff0000 /* s0 = s0 & 0xffff0000 */ - - li t0, 0xbfe78030 /* load PLL/SDRAM freq config register base to t0 */ - li t2, (0x80000008 | (PLL_MULT << 8) | (0x3 << 2) | SDRAM_DIV) /* Set PLL - * MULT and PLL DIV */ - li t3, (0x00008003 | (CPU_DIV << 8)) /* set CPU DEV */ - - li t1, 0x2 - sw t1, 0x4(t0) /* disable CPU_DIV_VALID firstly for adjustment */ - sw t2, 0x0(t0) /* write START_FREQ */ - sw t3, 0x4(t0) /* write CLK_DIV_PARAM */ - -/* start to initialize debug uart port */ - la v0, LS1C_UART2_BASE /* load UART2 base to v0, only UART2 can be debug port */ -1: - li v1, FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_4 /* clear Rx,Tx FIFO - * declear 4 bit int trigger */ - sb v1, LS1C_UART_FCR_OFFSET(v0) /* write FCR (FIFO control register) */ - li v1, CFCR_DLAB /* reach freq div register */ - sb v1, LS1C_UART_LCR_OFFSET(v0) /* write LCR (Line control register)*/ - /* Set UART2 reuse with GPIO36,37*/ - li a0, LS1C_CBUS_FIRST1 /* load CBUS_FIRST1 offset to a0 */ - lw a1, 0x10(a0) /* load value from CBUS_SECOND1 to a1 */ - ori a1, 0x30 /* a1 |= 0x30, GPIO36,37 as secondary function */ - sw a1, 0x10(a0) /* write back modified CBUS_SECOND1 from a1 */ - /* Caculate PLL and bit rate */ - li a0, 0xbfe78030 /* load START_FREQ register address to a0 */ - lw a1, 0(a0) /* load value from START_FREQ to a1*/ - srl a1, 8 /* a1 >>= 8 */ - andi a1, 0xff /* a1 &= 0xff, as a1=PLL_MULT */ - li a2, APB_CLK /* a2 = APB_CLK = 24Mhz (External Clock Freq) */ - srl a2, 2 /* a2 = a2 >> 2 = APB_CLK/4 */ - multu a1, a2 /* hilo = a1 * a2 = PLL_MULT * APB_CLK /4 */ - mflo v1 /* v1 = lo. put low 32 bit of a1 * a2 to v1 as PLL freq */ - /* Determine if we need to devide the clock */ - lw a1, 4(a0) /* load value frm CLK_DIV_PARAM to a1 */ - andi a2, a1, DIV_CPU_SEL /* a2 = a1 & DIV_CPU_SEL, if CPU_SEL=1, devide the clock, - * if CPU_SEL=0, bypass the clock */ - bnez a2, 1f /* if (a2 != 0), branch to next tag 1 */ - nop - li v1, APB_CLK /* v1 = APB_CLK */ - b 3f - nop -1: /* Determine if the CPU_DIV is valid*/ - andi a2, a1, DIV_CPU_EN /* a2 = a1 & DIV_CPU_EN */ - bnez a2, 2f /* if (a2 != 0), branch to next tag 2 */ - nop - srl v1, 1 /* v1 >>= 1, so v1 = APB_CLK/4 * PLL_MULT/2 */ - b 3f - nop -2: /* caculate CPU freq */ - andi a1, DIV_CPU /* a1 &= DIV_CPU */ - srl a1, DIV_CPU_SHIFT /* a1 >>= DIV_CPU_SHIFT */ - divu v1, a1 /* lo = v1/a1, hi = v1 % a1 */ - mflo v1 /* v1 = lo, CPU Freq */ -3: - li a1, (16 * EARLY_DEBUG_BAUD) /* a1 = 16 * BIT RATE */ - divu v1, v1, a1 /* v1 = v1 / a1 */ - srl v1, 1 /* v1 >>= 1 */ - sb v1, LS1C_UART_LSB_OFFSET(v0) /* write 8bit low into LSB */ - srl v1, 8 /* v1 >>= 8 */ - sb v1, LS1C_UART_MSB_OFFSET(v0) /* write 8bit low into MSB */ - - li v1, CFCR_8BITS /* 8n1, no check */ - sb v1, LS1C_UART_LCR_OFFSET(v0) /* write to LCR (Line Control Register) */ - -#ifdef EARLY_DEBUG_UART_FLOW_CTRL - li v1, MCR_DTR|MCR_RTS /* valid DTR and RTS */ - sb v1, LS1C_UART_MCR_OFFSET(v0) /* write to MCR (MODEM Control Register) */ -#endif - - li v1, 0x0 /* disable all the interruptions */ - sb v1, LS1C_UART_IER_OFFSET(v0) /* write to IER (Interruptions Enable Registers) */ - - PRINTSTR("\r\INFO: Loongson 1C300 Starting :) \r\n") - - /* disable all GPIOs for conflict functions */ - li a0,0xbfd00000 - sw zero,0x10c0(a0) /* disable GPIO 0-31 */ - sw zero,0x10c4(a0) /* disable GPIO 32-63 */ - sw zero,0x10c8(a0) /* disable GPIO 64-95 */ - sw zero,0x10cc(a0) - - li t0, 0xffffffff - sw t0, 0x10d0(a0) - sw t0, 0x10d4(a0) - sw t0, 0x10d8(a0) - sw t0, 0x10dc(a0) - - sw t0, 0x10f0(a0) - sw t0, 0x10f4(a0) - sw t0, 0x10f8(a0) - sw t0, 0x10fc(a0) - - PRINTSTR("\r\INFO: All GPIOs are disabled\r\n") - - /* SDRAM initialize starts here */ - - li msize, MEM_SIZE - -#ifdef EJTAG_SEL_AS_SDRAM_CS1 - li a0, 0xbfd011c0 - lw a1, 0x40(a0) - ori a1, 0x01 - sw a1, 0x40(a0) - PRINTSTR("\r\INFO: EJTAG_SEL PIN as SDRAM_CS1\r\n") -#endif - -/* -* recommanded by user manual, we should write SD_CONFIG[31:0] first, then -* write SD_CONFIG[63:32]. Repeat writing for three times, valid the config in -* the last time. -*/ - -/* write first time */ -li t1, 0xbfd00410 /* load SD_CONFIG[31:0] address to t1 */ -li a1, SD_PARA0 /* get the memory config from macro SD_PARA0 */ -sw a1, 0x0(t1) /* write to SD_CONFIG[31:0] */ -li a1, SD_PARA1 -sw a1, 0x4(t1) /* write to SD_CONFIG[63:32] with offset */ -PRINTSTR("\r\INFO: SDRAM Config Pass1\r\n") - -/* write second time,the same */ -li a1, SD_PARA0 -sw a1, 0x0(t1) -li a1, SD_PARA1 -sw a1, 0x4(t1) -PRINTSTR("\r\INFO: SDRAM Config Pass2\r\n") - -/* write third time, enable controller this time */ -li a1, SD_PARA0 -sw a1, 0x0(t1) -li a1, SD_PARA1_EN /* enable it */ -sw a1, 0x4(t1) -PRINTSTR("\r\INFO: SDRAM initialize compeleted\r\n") - - -/* initialize cache */ -bal cache_init /* branch to cache_init */ -nop - -/* enable cache */ -mfc0 a0, CP0_CONFIG /* load cp0 config to a0 */ -and a0, a0, ~((1<<12) | 7) /* a0 = a0 & ~((1<<12) | 7) */ -or a0, a0, 2 /* a0 |= 2 */ -mtc0 a0, CP0_CONFIG /* write back to CP0 config */ - -/* -* relocate: copy selfboot code to memory in kseg0, fix PC and jump to kseg0. -* in order to speed up the copy progress, we will execute copy code in kseg0 -*/ - -PRINTSTR("\r\INFO: Relocating") -la t0, text_copy_start /* load the adress of start tag to t0 */ -move t2, t0 -addu t0, s0 /* correct t0 address in rom by s0 */ -la t1, text_copy_end - -selfboot_copy_loop: -lw v0, (t0) /* copy from memory address in t0 to register v0 */ -sw v0, (t2) /* write data in register v0 to memory address t0 */ -addiu t0, 0x4 /* t0 moves forward 4 bytes */ -addiu t2, 0x4 /* t2 moves forward 4 bytes */ -ble t2, t1, selfboot_copy_loop /* if t1 <= t2 loop to continue the copy */ -nop - -la t0, text_copy_start /* load start address to t0 */ -jr t0 /* jump to 122 in kseg0 to start copy code progress */ -nop - -text_copy_start: -/* Copy code to memory*/ -la a0, start /* load address of start symbol to a0 */ -addu a1, a0, s0 /* correct a0 to address in flash */ -la a2, _edata /* load symbol _edata address to a2 */ -subu t1, a2, a0 /* t1 = a2 - a0, the space of text area */ - -move t0, a0 /* the start address in ram */ -move t1, a1 /* the start address in rom */ -move t2, a2 /* the end address in rom (symbol _edata) */ - -/* copy text section */ -1: -and t3, t0, 0x0000ffff /* t3 = t0 & 0x0000ffff, get low 16 bit */ -bnez t3, 2f /* if t3 != 0, jump to next tag 2 */ -nop -2: -lw t3, 0(t1) /* copy 4 bit from memory address t1 to register t3 */ -nop -sw t3, 0(t0) /* copy 4 bit from register t3 to memory address in t0 */ -addu t0, 4 /* t0 move forward 4 bytes */ -addu t1, 4 /* t1 move forward 4 bytes */ -bne t2, t0, 1b /* if t2 != t0, branch to last tag 1 to continue copy */ -nop -/* copy text section done. */ - -move a0, msize /* a0 = msize, will be passed to main */ -srl a0, 20 /* a0 >>= 20, convert to unit in MB */ - -/* execute main */ -la v0, _rtthread_entry /* load address of function main to v0 */ -jalr v0 /* call address in v0, congrats! all low_level things done! - * switch brain out of assembly */ -nop -text_copy_end: /* end of self-copy in memory */ - -loop: /* impossible to reach here, make a dead loop */ -b loop -nop - -/* functions here */ - -LEAF(stringserial) /* print out the string in address passed in a0 */ - nop - move a2, ra /* save the return address to a2 */ - addu a1, a0, s0 /* correct the address in ROM */ - lbu a0, 0(a1) /* read the first byte in memory address a1 to a0 */ -1: - beqz a0, 2f /* if a0 == 0, jump to next tag 2, empty char */ - nop - bal tgt_putchar /* print a char */ - addiu a1, 1 /* a1 += 1 move forward to next byte */ - b 1b /* branch to the last tag 1, continue */ - lbu a0, 0(a1) /* load the next bit from address a1 to a0, in delay solt, - * will be execuated before branch */ -2: - j a2 /* return */ - nop -END(stringserial) - - -LEAF(hexserial) /* print out single hex char passed in register a0 */ - nop - move a2, ra /* move return address from ra to a2 */ - move a1, a0 /* move hex char from register a0 to a1 */ - li a3, 7 /* load 7 to a3 */ -1: - rol a0, a1, 4 /* rotate left ward shift for 4 bit in a1 to a0 */ - move a1, a0 - and a0, 0xf - la v0, hexchar - -.pushsection .selfboot_data -.align 4 -hexchar: - .ascii "0123456789abcdef" -.popsection -.align 4 - - addu v0, s0 - addu v0, a0 - bal tgt_putchar - lbu a0, 0(v0) - - bnez a3, 1b - addu a3, -1 - - j a2 - nop -END(hexserial) - -LEAF(tgt_putchar) /* print out a char in a0 */ - la v0, LS1C_UART2_BASE /* load UART register address to a0 */ - lbu v1, LS1C_UART_LSR_OFFSET(v0) /* load value from LSR to v0 */ -1: - and v1, LSR_TXRDY /* v1 &= LSR_TXRDY determine wether we can send by TFE bit */ - beqz v1, 1b /* if (v1 == 0) jump to last 1 tag, waiting until TFE is 1 */ - lbu v1, LS1C_UART_LSR_OFFSET(v0) /* load value from LSR to v0 again, in delay solt */ - - sb a0, LS1C_UART_DAT_OFFSET(v0) /* write a0 into DAT, send out */ - j ra /* */ - nop -END(tgt_putchar) - -LEAF(CPU_SetSR) /* modify SR value, arg 1 = set bits, arg 2 = clear bits. */ - mfc0 v0, CP0_STATUS - not v1, a1 - and v1, v0 - or v1, a0 - mtc0 v1, CP0_STATUS - nop - nop - nop - nop - nop - nop - nop - nop - j ra - nop -END(CPU_SetSR) - -cache_init: - move t1, ra -####part 2#### -cache_detect_4way: - mfc0 t4, CP0_CONFIG,1 /* move CP0 CONFIG to t4 */ - lui v0, 0x7 /* v0 = 0x7 << 16 */ - and v0, t4, v0 /* v0 = t4 & v0 */ - srl t3, v0, 16 /* t3 = v0 >> 16 Icache组相联数 IA */ - - li t5, 0x800 //32*64 - srl v1, t4,22 //v1 = t4 >> 22 - andi v1, 7 //Icache每路的组数 64x2^S IS - sll t5, v1 //InstCacheSetSize - sll t5, t3 //t5 InstCacheSize - - - andi v0, t4, 0x0380 - srl t7, v0, 7 //DA - - li t6, 0x800 // 32*64 - srl v1, t4,13 - andi v1, 7 //DS - sll t6, v1 // DataCacheSetSize - sll t6, t7 // t5 DataCacheSize - -####part 3#### - lui a0, 0x8000 //a0 = 0x8000 << 16 - addu a1, $0, t5 - addu a2, $0, t6 -cache_init_d2way: -/* a0=0x80000000, a1=icache_size, a2=dcache_size */ -/* a3, v0 and v1 used as local registers */ - mtc0 $0, CP0_TAGHI - addu v0, $0, a0 /* v0 = 0 + a0 */ - addu v1, a0, a2 /* v1 = a0 + a2 */ -1: slt a3, v0, v1 /* a3 = v0 < v1 ? 1 : 0 */ - beq a3, $0, 1f /* if (a3 == 0) goto 1f */ - nop - mtc0 $0, CP0_TAGLO - cache Index_Store_Tag_D, 0x0(v0) /* 1 way */ -4: beq $0, $0, 1b - addiu v0, v0, 0x20 -1: -cache_flush_i2way: - addu v0, $0, a0 - addu v1, a0, a1 -1: - slt a3, v0, v1 - beq a3, $0, 1f - nop - cache Index_Invalidate_I, 0x0(v0) /* 1 way */ -4: - beq $0, $0, 1b - addiu v0, v0, 0x20 -1: -cache_flush_d2way: - addu v0, $0, a0 - addu v1, a0, a2 -1: slt a3, v0, v1 - beq a3, $0, 1f - nop - cache Index_Writeback_Inv_D, 0x0(v0) /* 1 way */ -4: beq $0, $0, 1b - addiu v0, v0, 0x20 - -1: -cache_init_finish: - jr t1 - nop -#endif diff --git a/bsp/ls1cdev/drivers/touch.c b/bsp/ls1cdev/drivers/touch.c deleted file mode 100644 index 37a4b19213..0000000000 --- a/bsp/ls1cdev/drivers/touch.c +++ /dev/null @@ -1,598 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-12-30 Sundm75 first version - */ - -#include -#include -#include -#include -#include "ls1c.h" -#include "ls1c_gpio.h" -#include "ls1c_spi.h" -#include "drv_spi.h" -#include "touch.h" - -#ifdef XPT2046_USING_TOUCH - -#include -#include -#include -#include -#include - - -//竖屏幕 不需要 _ILI_HORIZONTAL_DIRECTION_ -//横屏幕 需要 _ILI_HORIZONTAL_DIRECTION_ - -//#define _ILI_HORIZONTAL_DIRECTION_ - -#if defined(_ILI_HORIZONTAL_DIRECTION_) -#define X_WIDTH 272 -#define Y_WIDTH 480 -#else -#define X_WIDTH 480 -#define Y_WIDTH 272 -#endif -/* -TOUCH INT: 84 -*/ -#define IS_TOUCH_UP() gpio_get(TOUCH_INT_PIN) - -#define led_gpio 52 // led1指示 - -#define DUMMY 0x00 - -/* -7 6 - 4 3 2 1-0 -s A2-A0 MODE SER/DFR PD1-PD0 -*/ -/* bit[1:0] power-down */ -#define POWER_MODE0 (0) /* Power-Down Between Conversions. When */ - /* each conversion is finished, the converter */ - /* enters a low-power mode. At the start of the */ - /* next conversion, the device instantly powers up */ - /* to full power. There is no need for additional */ - /* delays to ensure full operation, and the very first */ - /* conversion is valid. The Y? switch is on when in */ - /* power-down.*/ -#define POWER_MODE1 (1) /* Reference is off and ADC is on. */ -#define POWER_MODE2 (2) /* Reference is on and ADC is off. */ -#define POWER_MODE3 (3) /* Device is always powered. Reference is on and */ - /* ADC is on. */ -/* bit[2] SER/DFR */ -#define DIFFERENTIAL (0<<2) -#define SINGLE_ENDED (1<<2) -/* bit[3] mode */ -#define MODE_12BIT (0<<3) -#define MODE_8BIT (1<<3) -/* bit[6:4] differential mode */ -#define MEASURE_X (((1<<2) | (0<<1) | (1<<0))<<4) -#define MEASURE_Y (((0<<2) | (0<<1) | (1<<0))<<4) -#define MEASURE_Z1 (((0<<2) | (1<<1) | (1<<0))<<4) -#define MEASURE_Z2 (((1<<2) | (0<<1) | (0<<0))<<4) -/* bit[7] start */ -#define START (1<<7) - -/* X Y change. */ -#define TOUCH_MSR_X (START | MEASURE_X | MODE_12BIT | DIFFERENTIAL | POWER_MODE0) -#define TOUCH_MSR_Y (START | MEASURE_Y | MODE_12BIT | DIFFERENTIAL | POWER_MODE0) - - -/* 以下定义XPT2046 的触摸屏位置*/ -#if defined(_ILI_HORIZONTAL_DIRECTION_) -#define MIN_X_DEFAULT 2047 -#define MAX_X_DEFAULT 47 -#define MIN_Y_DEFAULT 102 -#define MAX_Y_DEFAULT 1939 -#else -#define MIN_X_DEFAULT 47 -#define MAX_X_DEFAULT 2047 -#define MIN_Y_DEFAULT 1939 -#define MAX_Y_DEFAULT 102 -#endif - - - -#define SAMP_CNT 8 //the adc array size -#define SAMP_CNT_DIV2 4 //the middle of the adc array -#define SH 10 // Valve value - - -/*宏定义 */ -#define TOUCH_SPI_X SPI1 -#define TOUCH_INT_PIN 84 -#define TOUCH_CS_PIN 49 -#define TOUCH_SCK_PIN 46 -#define TOUCH_MISO_PIN 47 -#define TOUCH_MOSI_PIN 48 - - -/*创建结构体将需要用到的东西进行打包*/ -struct rtgui_touch_device -{ - struct rt_device parent; /* 用于注册设备*/ - - rt_uint16_t x, y; /* 记录读取到的位置值 */ - - rt_bool_t calibrating; /* 触摸校准标志 */ - rt_touch_calibration_func_t calibration_func;/* 触摸函数 函数指针 */ - - rt_uint16_t min_x, max_x; /* 校准后 X 方向最小 最大值 */ - rt_uint16_t min_y, max_y; /* 校准后 Y 方向最小 最大值 */ - - struct rt_spi_device * spi_device; /* SPI 设备 用于通信 */ - struct rt_event event; /* 事件同步,用于“笔中断” */ -}; -static struct rtgui_touch_device *touch = RT_NULL; - -static rt_err_t touch_send_then_recv(struct rt_spi_device *device, - const void *send_buf, - rt_size_t send_length, - void *recv_buf, - rt_size_t recv_length) -{ - rt_err_t result; - struct rt_spi_message message; - rt_uint8_t dummy[128] ; - - rt_memset(dummy, DUMMY, sizeof(dummy)); - - RT_ASSERT(device != RT_NULL); - RT_ASSERT(device->bus != RT_NULL); - - result = rt_mutex_take(&(device->bus->lock), RT_WAITING_FOREVER); - if (result == RT_EOK) - { - if (device->bus->owner != device) - { - /* not the same owner as current, re-configure SPI bus */ - result = device->bus->ops->configure(device, &device->config); - if (result == RT_EOK) - { - /* set SPI bus owner */ - device->bus->owner = device; - } - else - { - /* configure SPI bus failed */ - result = -RT_EIO; - goto __exit; - } - } - - /* send data */ - message.send_buf = send_buf; - message.recv_buf = RT_NULL; - message.length = send_length; - message.cs_take = 1; - message.cs_release = 0; - message.next = RT_NULL; - - result = device->bus->ops->xfer(device, &message); - if (result == 0) - { - result = -RT_EIO; - goto __exit; - } - - /* recv data */ - message.send_buf = dummy; - message.recv_buf = recv_buf; - message.length = recv_length; - message.cs_take = 0; - message.cs_release = 1; - message.next = RT_NULL; - - result = device->bus->ops->xfer(device, &message); - if (result == 0) - { - result = -RT_EIO; - goto __exit; - } - - result = RT_EOK; - } - else - { - return -RT_EIO; - } - -__exit: - rt_mutex_release(&(device->bus->lock)); - - return result; -} - - -static void rtgui_touch_calculate(void) -{ - if (touch != RT_NULL) - { - /* read touch */ - { - rt_uint8_t i, j, k, min; - rt_uint16_t temp; - rt_uint16_t tmpxy[2][SAMP_CNT]; - rt_uint8_t send_buffer[1]; - rt_uint8_t recv_buffer[2]; - for(i=0; ispi_device, send_buffer, 1, recv_buffer, 2); - rt_kprintf("touch x: %d ",(recv_buffer[0]*256|recv_buffer[1])>>4); -#if defined(_ILI_HORIZONTAL_DIRECTION_) - tmpxy[1][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; - tmpxy[1][i] >>= 4; -#else - tmpxy[0][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; - tmpxy[0][i] >>=4; - -#endif - send_buffer[0] = TOUCH_MSR_Y; - touch_send_then_recv(touch->spi_device, send_buffer, 1, recv_buffer, 2); - rt_kprintf("touch y: %d \n",(recv_buffer[0]*256|recv_buffer[1])>>4); - -#if defined(_ILI_HORIZONTAL_DIRECTION_) - tmpxy[0][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; - tmpxy[0][i] >>= 4; -#else - tmpxy[1][i] = (recv_buffer[0]<<8)|recv_buffer[1] ; - tmpxy[1][i] >>= 4; -#endif - } - /*再次打开触摸中断*/ - send_buffer[0] = 1 << 7; - touch_send_then_recv(touch->spi_device, send_buffer, 1, recv_buffer, 2); - touch_send_then_recv(touch->spi_device, send_buffer, 1, recv_buffer, 2); - /* calculate average */ - { - rt_uint32_t total_x = 0; - rt_uint32_t total_y = 0; - for(k=0; k<2; k++) - { - // sorting the ADC value - for(i=0; i tmpxy[k][j]) - min=j; - } - temp = tmpxy[k][i]; - tmpxy[k][i] = tmpxy[k][min]; - tmpxy[k][min] = temp; - } - //check value for Valve value - if((tmpxy[k][SAMP_CNT_DIV2+1]-tmpxy[k][SAMP_CNT_DIV2-2]) > SH) - { - return; - } - } - total_x=tmpxy[0][SAMP_CNT_DIV2-2]+tmpxy[0][SAMP_CNT_DIV2-1]+tmpxy[0][SAMP_CNT_DIV2]+tmpxy[0][SAMP_CNT_DIV2+1]; - total_y=tmpxy[1][SAMP_CNT_DIV2-2]+tmpxy[1][SAMP_CNT_DIV2-1]+tmpxy[1][SAMP_CNT_DIV2]+tmpxy[1][SAMP_CNT_DIV2+1]; - //calculate average value - touch->x=total_x>>2; - touch->y=total_y>>2; - rt_kprintf("touch->x:%d touch->y:%d\r\n", touch->x, touch->y); - } /* calculate average */ - } /* read touch */ - - /* if it's not in calibration status */ - /*触摸值缩放*/ - if (touch->calibrating != RT_TRUE) - { - if (touch->max_x > touch->min_x) - { - touch->x = (touch->x - touch->min_x) * X_WIDTH/(touch->max_x - touch->min_x); - } - else - { - touch->x = (touch->min_x - touch->x) * X_WIDTH/(touch->min_x - touch->max_x); - } - - if (touch->max_y > touch->min_y) - { - touch->y = (touch->y - touch->min_y) * Y_WIDTH /(touch->max_y - touch->min_y); - } - else - { - touch->y = (touch->min_y - touch->y) * Y_WIDTH /(touch->min_y - touch->max_y); - } - } - } -} -#include "ls1c_regs.h" -#define TOUCH_INT_EN __REG32(LS1C_INT4_EN) -rt_inline void touch_int_cmd(rt_bool_t NewState) -{ - if(NewState == RT_TRUE) - { - //TOUCH_INT_EN |= (1<<(TOUCH_INT_PIN-64)); - reg_set_one_bit(LS1C_INT4_EN, 1<<(TOUCH_INT_PIN-64)); - } - else - { - //TOUCH_INT_EN &=(~ (1<<(TOUCH_INT_PIN-64))); - reg_clr_one_bit(LS1C_INT4_EN, 1<<(TOUCH_INT_PIN-64)); - } - -} - -void ls1c_touch_irqhandler(void) /* TouchScreen */ -{ - if(gpio_get(TOUCH_INT_PIN)==0) - { - /* 触摸屏按下后操作 */ - if (gpio_level_low == gpio_get(led_gpio)) - gpio_set(led_gpio, gpio_level_high); - else - gpio_set(led_gpio, gpio_level_low); - touch_int_cmd(RT_FALSE); - rt_event_send(&touch->event, 1); - } -} - -/*管脚初始化,配置中断打开SPI1 CS0 设备*/ -rt_inline void touch_init(void) -{ - unsigned int touch_int_gpio = TOUCH_INT_PIN; // 触摸屏中断 - int touch_irq = LS1C_GPIO_TO_IRQ(touch_int_gpio); - - // 初始化按键中断 - gpio_set_irq_type(touch_int_gpio, IRQ_TYPE_EDGE_FALLING); - rt_hw_interrupt_install(touch_irq, ls1c_touch_irqhandler, RT_NULL, "touch"); - rt_hw_interrupt_umask(touch_irq); - gpio_init(touch_int_gpio, gpio_mode_input); - - // 初始化led - gpio_init(led_gpio, gpio_mode_output); - gpio_set(led_gpio, gpio_level_high); -} - - -/* RT-Thread Device Interface */ -static rt_err_t rtgui_touch_init (rt_device_t dev) -{ - rt_uint8_t send; - rt_uint8_t recv_buffer[2]; - struct rtgui_touch_device * touch_device = (struct rtgui_touch_device *)dev; - - touch_init(); - rt_kprintf("touch_init ...\n"); - send = START | DIFFERENTIAL | POWER_MODE0; - touch_send_then_recv(touch->spi_device, &send, 1, recv_buffer, 2); - - return RT_EOK; -} - -static rt_err_t rtgui_touch_control (rt_device_t dev, int cmd, void *args) -{ - switch (cmd) - { - case RT_TOUCH_CALIBRATION: - touch->calibrating = RT_TRUE; - touch->calibration_func = (rt_touch_calibration_func_t)args; - break; - - case RT_TOUCH_NORMAL: - touch->calibrating = RT_FALSE; - break; - - case RT_TOUCH_CALIBRATION_DATA: - { - struct calibration_data* data; - data = (struct calibration_data*) args; - - //update - touch->min_x = data->min_x; - touch->max_x = data->max_x; - touch->min_y = data->min_y; - touch->max_y = data->max_y; - } - break; - } - - return RT_EOK; -} - -void _set_mouse_position(rt_uint32_t X, rt_uint32_t Y) -{} -static void touch_thread_entry(void *parameter) -{ - rt_bool_t touch_down = RT_FALSE; - rt_uint32_t event_value; - struct rtgui_event_mouse emouse; - static struct _touch_previous - { - rt_uint32_t x; - rt_uint32_t y; - } touch_previous; - - RTGUI_EVENT_MOUSE_BUTTON_INIT(&emouse); - emouse.wid = RT_NULL; - - while(1) - { - /* 接收到触摸中断事件 */ - if(rt_event_recv(&touch->event, - 1, - RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR, - 100, - &event_value) - == RT_EOK) - { - while(1) - { - if (IS_TOUCH_UP()) - { - /* 触摸笔抬起 */ - /* touch up */ - emouse.button = (RTGUI_MOUSE_BUTTON_LEFT |RTGUI_MOUSE_BUTTON_UP); - - /* use old value */ - emouse.x = touch->x; - emouse.y = touch->y; - - if(touch_down != RT_TRUE) - { - touch_int_cmd(RT_TRUE); - break; - } - - if ((touch->calibrating == RT_TRUE) && (touch->calibration_func != RT_NULL)) - { - /* 触摸校准处理 */ - /* callback function */ - touch->calibration_func(emouse.x, emouse.y); - - } - else - { - /* 向ui发送触摸坐标 */ - rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse)); - } - rt_kprintf("touch up: (%d, %d)\n", emouse.x, emouse.y); - - /* clean */ - touch_previous.x = touch_previous.y = 0; - touch_down = RT_FALSE; - - touch_int_cmd(RT_TRUE); - break; - } /* touch up */ - else /* touch down or move */ - { - if(touch_down == RT_FALSE) - { - rt_thread_delay(RT_TICK_PER_SECOND / 10); - } - else - { - rt_thread_delay(5); - } - - if(IS_TOUCH_UP()) continue; - - /* calculation */ - rtgui_touch_calculate(); - - /* send mouse event */ - emouse.parent.type = RTGUI_EVENT_MOUSE_BUTTON; - emouse.parent.sender = RT_NULL; - - emouse.x = touch->x; - emouse.y = touch->y; - _set_mouse_position(emouse.x, emouse.y); - /* 光标跟随 */ - /* init mouse button */ - emouse.button = (RTGUI_MOUSE_BUTTON_LEFT |RTGUI_MOUSE_BUTTON_DOWN); - - /* send event to server */ - if (touch->calibrating != RT_TRUE) - { -#define previous_keep 8 - /* filter. */ - if((touch_previous.x > touch->x + previous_keep) - || (touch_previous.x < touch->x - previous_keep) - || (touch_previous.y > touch->y + previous_keep) - || (touch_previous.y < touch->y - previous_keep)) - { - touch_previous.x = touch->x; - touch_previous.y = touch->y; - /* 向ui发送触摸坐标 */ - rtgui_server_post_event(&emouse.parent, sizeof(struct rtgui_event_mouse)); - if(touch_down == RT_FALSE) - { - touch_down = RT_TRUE; - rt_kprintf("touch down: (%d, %d)\n", emouse.x, emouse.y); - } - else - { - rt_kprintf("touch motion: (%d, %d)\n", emouse.x, emouse.y); - } - } - } - else - { - touch_down = RT_TRUE; - } - } /* touch down or move */ - } /* read touch */ - } /* event recv */ - } /* thread while(1) */ -} - - -rt_err_t rtgui_touch_hw_init(const char * spi_device_name) -{ - rt_uint32_t arg[2]; - struct rt_device * spi_device; - struct rt_thread * touch_thread; - rt_err_t err; - - rt_kprintf("spi1 cs0 start...\n"); - spi_device = rt_device_find("spi10"); - if(spi_device == RT_NULL) - { - rt_kprintf("Did not find spi1, exit thread....\n"); - return; - } - err = rt_device_open(spi_device, RT_DEVICE_OFLAG_RDWR); - if(err != RT_EOK) - { - rt_kprintf("Open spi1 failed %08X, exit thread....\n", err); - return; - } - - /* config spi */ - { - struct rt_spi_configuration cfg; - cfg.data_width = 8; - cfg.mode = RT_SPI_MODE_0; - cfg.max_hz = 200 * 1000; /* 200K */ - rt_spi_configure((struct rt_spi_device *)spi_device, &cfg); - } - - touch = (struct rtgui_touch_device*)rt_malloc (sizeof(struct rtgui_touch_device)); - if (touch == RT_NULL) return RT_ENOMEM; /* no memory yet */ - - /* clear device structure */ - rt_memset(&(touch->parent), 0, sizeof(struct rt_device)); - - rt_event_init(&touch->event, "touch", RT_IPC_FLAG_FIFO); - - touch->spi_device = (struct rt_spi_device *)spi_device; - touch->calibrating = false; - - touch->min_x = MIN_X_DEFAULT; - touch->max_x = MAX_X_DEFAULT; - touch->min_y = MIN_Y_DEFAULT; - touch->max_y = MAX_Y_DEFAULT; - - /* init device structure */ - touch->parent.type = RT_Device_Class_Miscellaneous; - touch->parent.init = rtgui_touch_init; - touch->parent.control = rtgui_touch_control; - touch->parent.user_data = RT_NULL; - - /* register touch device to RT-Thread */ - rt_device_register(&(touch->parent), "touch", RT_DEVICE_FLAG_RDWR); - - - touch_thread = rt_thread_create("touch_thread", - touch_thread_entry, RT_NULL, - 4096, RTGUI_SVR_THREAD_PRIORITY-1, 1); - if (touch_thread != RT_NULL) rt_thread_startup(touch_thread); - - rt_device_init((rt_device_t)touch); - return RT_EOK; -} - -#endif diff --git a/bsp/ls1cdev/drivers/touch.h b/bsp/ls1cdev/drivers/touch.h deleted file mode 100644 index 5dac833510..0000000000 --- a/bsp/ls1cdev/drivers/touch.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-12-30 Sundm75 first version - */ - #ifndef __TOUCH_H__ -#define __TOUCH_H__ - -#define RT_TOUCH_NORMAL 0 -#define RT_TOUCH_CALIBRATION_DATA 1 -#define RT_TOUCH_CALIBRATION 2 - -//#define SAVE_CALIBRATION - - -rt_uint16_t touch_read_x(void); -rt_uint16_t touch_read_y(void); -void touch_config(void); - - -rt_err_t rtgui_touch_hw_init(const char * spi_device_name); - -#endif - - diff --git a/bsp/ls1cdev/libraries/SConscript b/bsp/ls1cdev/libraries/SConscript deleted file mode 100644 index 78797ef273..0000000000 --- a/bsp/ls1cdev/libraries/SConscript +++ /dev/null @@ -1,10 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -CPPPATH = [cwd] - -group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls1cdev/libraries/ls1c_can.c b/bsp/ls1cdev/libraries/ls1c_can.c deleted file mode 100644 index 437ef3ba84..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_can.c +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-01-06 sundm75 first version - */ - -#include "ls1c.h" -#include "ls1c_public.h" -#include "ls1c_can.h" -#include "ls1c_delay.h" - -unsigned char set_reset_mode(CAN_TypeDef* CANx) -{ - unsigned char status; - int i; - - /*检查复位标志*/ - status = CANx->MOD; - - /* 关闭中断 */ - CANx->IER = 0x00; - - for (i = 0; i < 100; i++) - { - if((status & CAN_Mode_RM) == CAN_Mode_RM) - return 1; - - /* 设置复位*/ - CANx->MOD |= ((unsigned char)CAN_Mode_RM); - - /*延时*/ - delay_us(10); - - /*检查复位标志*/ - status = CANx->MOD; - } - printf("\r\nSetting SJA1000 into reset mode failed!\r\n"); - return 0; -} - -static unsigned char set_normal_mode(CAN_TypeDef* CANx) -{ - unsigned char status; - int i; - - /*检查复位标志*/ - status = CANx->MOD; - - for (i = 0; i < 100; i++) - { - if((status & CAN_Mode_RM) != CAN_Mode_RM) - { - /*开所有中断 (总线错误中断不开)*/ - CANx->IER |= (~(unsigned char)CAN_IR_BEI); - return 1; - } - /* 设置正常工作模式*/ - CANx->MOD &= (~(unsigned char) CAN_Mode_RM); - /*延时*/ - delay_us(10); - status = CANx->MOD; - } - printf("\r\nSetting SJA1000 into normal mode failed!\r\n"); - return 0; -} - -unsigned char set_start(CAN_TypeDef* CANx) -{ - /*复位TX错误计数器*/ - CANx->TXERR = 0; - /*复位RX错误计数器*/ - CANx->RXERR = 0; - /*时钟分频寄存器: PeliCAN模式; CBP=1,中止输入比较器, RX0激活*/ - CANx->CDR = 0xC0; - - return set_normal_mode(CANx); -} - -unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct) -{ - unsigned char InitStatus = CAN_InitStatus_Failed; - unsigned long wait_ack = 0x00000000; - unsigned char status; - - status = CANx->MOD; - if( status == 0xFF) - { - printf("\n Probe can0 failed \r\n"); - return CAN_InitStatus_Failed; - } - - /* 进入复位模式 */ - InitStatus = set_reset_mode(CANx); - - if((CAN_InitStruct->CAN_Mode & CAN_Mode_SM) == CAN_Mode_SM) - { - /* 睡眠模式 1: 睡眠 0: 唤醒*/ - CANx->MOD|= (unsigned char)CAN_Mode_SM; - } - else - { - CANx->MOD&=~ (unsigned char)CAN_Mode_SM; - } - - if((CAN_InitStruct->CAN_Mode & CAN_Mode_LOM) == CAN_Mode_LOM) - { - /*只听模式 1:只听 0:正常 */ - CANx->MOD|= (unsigned char)CAN_Mode_LOM; - } - else - { - CANx->MOD&=~ (unsigned char)CAN_Mode_LOM; - } - - if((CAN_InitStruct->CAN_Mode & CAN_Mode_AFM) == CAN_Mode_AFM) - { - /*单滤波模式 1:单 0: 双*/ - CANx->MOD |= (unsigned char)CAN_Mode_AFM; - } - else - { - CANx->MOD&=~ (unsigned char)CAN_Mode_AFM; - } - - if((CAN_InitStruct->CAN_Mode & CAN_Mode_STM) == CAN_Mode_STM) - { - /*自检测模式 1:自检测 0:正常 */ - CANx->MOD |= (unsigned char)CAN_Mode_STM; - } - else - { - CANx->MOD&=~ (unsigned char)CAN_Mode_STM; - } - - /* 配置时钟频率 */ - CANx->BTR0 = (( unsigned char )( unsigned char )CAN_InitStruct->CAN_Prescaler -1) | \ - (unsigned char)CAN_InitStruct->CAN_SJW << 6; - - CANx->BTR1 = ((unsigned char)CAN_InitStruct->CAN_BS1) | \ - ((unsigned char)CAN_InitStruct->CAN_BS2 << 4) | \ - ((unsigned char)CAN_InitStruct->CAN_SJW<<7); - - /* 进入工作模式 */ - set_start(CANx); - - /* 返回初始化结果 */ - return InitStatus; -} - -void CAN_FilterInit(CAN_TypeDef* CANx, CAN_FilterInitTypeDef * CAN_FilterInitStruct) -{ - unsigned long rtr; - unsigned long fcase; - unsigned long ide; - unsigned long thisid, thisid1, thisid2; - unsigned long thismask, thismask1, thismask2; - unsigned long firstdata; - unsigned long datamask; - unsigned char CAN_FilterId0, CAN_FilterId1, CAN_FilterId2, CAN_FilterId3 ; - unsigned char CAN_FilterMaskId0, CAN_FilterMaskId1, CAN_FilterMaskId2, CAN_FilterMaskId3; - - thisid = CAN_FilterInitStruct->ID; - thismask = CAN_FilterInitStruct->IDMASK; - thisid1 = (CAN_FilterInitStruct->ID & 0xFFFF0000 )>>16; - thismask1 = (CAN_FilterInitStruct->IDMASK & 0xFFFF0000 )>>16; - thisid2 = (CAN_FilterInitStruct->ID & 0x0000FFFF ); - thismask2 = ( CAN_FilterInitStruct->IDMASK& 0x0000FFFF ); - rtr = CAN_FilterInitStruct->RTR; - ide = CAN_FilterInitStruct->IDE; - firstdata = CAN_FilterInitStruct->First_Data; - datamask = CAN_FilterInitStruct->Data_Mask; - fcase = CAN_FilterInitStruct->MODE; - - if(ide == 0)//标准帧 - { - if(fcase == 0)// 0- 双滤波器模式 - { - CAN_FilterId0 = thisid1>>3; - CAN_FilterMaskId0 = thismask1>>3; - CAN_FilterId1 = thisid1<<5 | firstdata>>4| rtr<<4; - CAN_FilterMaskId1 = thismask1<<4 | datamask>>4 ; - CAN_FilterId2 = thisid2 >> 3; - CAN_FilterMaskId2 = thismask2 >>3; - CAN_FilterId3 = firstdata & 0x0F | thisid2 <<5 | rtr<<4; - CAN_FilterMaskId3 = datamask <<4 ; - } - else if(fcase == 1)// 1-单滤波器模式 - { - CAN_FilterId0 = thisid>>3; - CAN_FilterMaskId0 = thismask>>3; - CAN_FilterId1 = thisid<<5 | rtr<<4; - CAN_FilterMaskId1 = thismask<<5 ; - CAN_FilterMaskId1 |= 0x0F ; - CAN_FilterId2 = 0x00; - CAN_FilterMaskId2 = 0xFF; - CAN_FilterId3 = 0x00; - CAN_FilterMaskId3 = 0xFF ; - } - } - else if(ide == 1)//扩展帧 - { - if(fcase == 0)// 0- 双滤波器模式 - { - CAN_FilterId0 = thisid1>>8; - CAN_FilterMaskId0 = thismask1>>8; - CAN_FilterId1 = thisid1 ; - CAN_FilterMaskId1 = thismask1 ; - CAN_FilterId2 = thisid2>>8; - CAN_FilterMaskId2 = thismask2>>8; - CAN_FilterId3 = thisid2 ; - CAN_FilterMaskId3 = thismask2 ; - } - else if(fcase == 1)// 1-单滤波器模式 - { - CAN_FilterId0 = thisid>>21; - CAN_FilterMaskId0 = thismask>>21; - CAN_FilterId1 = thisid>>13 ; - CAN_FilterMaskId1 = thismask>>13 ; - CAN_FilterId2 = thisid>>5; - CAN_FilterMaskId2 = thismask>>5; - CAN_FilterId3 = thisid<<3 | rtr<<2; - CAN_FilterMaskId3 = thismask<<3; - CAN_FilterMaskId3 |= 0x03; - } - } - - /* 进入复位模式 */ - set_reset_mode(CANx); - - if(fcase == 1)// 1-单滤波器模式 - { - /*单滤波模式 */ - CANx->MOD |= (unsigned char)CAN_Mode_AFM; - } - else if(fcase == 1)// 0- 双滤波器模式 - { - /*双滤波模式 */ - CANx->MOD &=(~ (unsigned char) CAN_Mode_AFM); - } - - CANx->IDE_RTR_DLC = CAN_FilterId0; - CANx->ID[0] = CAN_FilterId1; - CANx->ID[1] = CAN_FilterId2; - CANx->ID[2] = CAN_FilterId3; - CANx->ID[3] = CAN_FilterMaskId0; - CANx->BUF[0] = CAN_FilterMaskId1; - CANx->BUF[1] = CAN_FilterMaskId2; - CANx->BUF[2] = CAN_FilterMaskId3; - /* 进入工作模式 */ - set_start(CANx); -} - -unsigned char CAN_SetBps(CAN_TypeDef* CANx, Ls1c_CanBPS_t Bps) -{ - unsigned char InitStatus = CAN_InitStatus_Failed; - unsigned char CAN_Prescaler, CAN_BS1, CAN_BS2, CAN_SJW; - CAN_SJW = CAN_SJW_1tq; - /* 进入复位模式 */ - InitStatus = set_reset_mode(CANx); - if( InitStatus == CAN_InitStatus_Failed) - return CAN_InitStatus_Failed; - - /* BaudRate= f(APB)/((1+BS1+BS2)(SJW*2*Prescaler))=126000000/[(1+7+2)*1*2*63]=100000=100K*/ - /* BPS PRE BS1 BS2 最低40K - 1M 9 4 2 - 800K 8 7 2 - 500K 9 11 2 - 250K 36 4 2 - 125K 36 11 2 - 100K 63 7 2 - 50K 63 16 3` - 40K 63 16 8 - */ - switch (Bps) - { - case LS1C_CAN1MBaud: - CAN_Prescaler = 9; - CAN_BS1 = CAN_BS1_4tq; - CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN800kBaud: - CAN_Prescaler = 8; - CAN_BS1 = CAN_BS1_7tq; - CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN500kBaud: - CAN_Prescaler = 9; - CAN_BS1 = CAN_BS1_11tq; - CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN250kBaud: - CAN_Prescaler = 36; - CAN_BS1 = CAN_BS1_4tq; - CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN125kBaud: - CAN_Prescaler = 36; - CAN_BS1 = CAN_BS1_11tq; - CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN100kBaud: - CAN_Prescaler = 63; - CAN_BS1 = CAN_BS1_7tq; - CAN_BS2 = CAN_BS2_2tq; - break; - case LS1C_CAN50kBaud: - CAN_Prescaler = 63; - CAN_BS1 = CAN_BS1_16tq; - CAN_BS2 = CAN_BS2_3tq; - break; - case LS1C_CAN40kBaud: - CAN_Prescaler = 63; - CAN_BS1 = CAN_BS1_16tq; - CAN_BS2 = CAN_BS2_8tq; - break; - default: //100K - CAN_Prescaler = 63; - CAN_BS1 = CAN_BS1_7tq; - CAN_BS2 = CAN_BS2_2tq; - break; - } - /* 配置时钟频率 */ - CANx->BTR0 = (( unsigned char )CAN_Prescaler -1) | \ - (unsigned char)CAN_SJW << 6; - - CANx->BTR1 = ((unsigned char)CAN_BS1) | \ - ((unsigned char)CAN_BS2 << 4) | \ - ((unsigned char)CAN_SJW<<7); - - /* 进入工作模式 */ - set_start(CANx); - /* 返回初始化结果 */ - return CAN_InitStatus_Failed; -} - - -unsigned char CAN_SetMode(CAN_TypeDef* CANx, unsigned char mode) -{ - unsigned char InitStatus = CAN_InitStatus_Failed; - unsigned long wait_ack = 0x00000000; - CAN_InitTypeDef CAN_InitStructure; - - /* 进入复位模式 */ - InitStatus = set_reset_mode(CANx); - if( InitStatus == CAN_InitStatus_Failed) - return CAN_InitStatus_Failed; - - switch( mode ) - { - case 0://正常 - CANx->MOD &= ~(unsigned char)CAN_Mode_STM; - CANx->MOD &= ~(unsigned char)CAN_Mode_LOM; - break; - case 1://只听 - CANx->MOD &= ~(unsigned char)CAN_Mode_STM; - CANx->MOD |= (unsigned char)CAN_Mode_LOM; - break; - case 2://回环 - CANx->MOD |= (unsigned char)CAN_Mode_STM; - CANx->MOD &= ~(unsigned char)CAN_Mode_LOM; - break; - case 3://只听回环 - CANx->MOD |= (unsigned char)CAN_Mode_STM; - CANx->MOD |= (unsigned char)CAN_Mode_LOM; - break; - } - /* 进入工作模式 */ - set_start(CANx); - - /* 返回初始化结果 */ - return CAN_InitStatus_Failed; - } - -unsigned char CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage) -{ - int i; - if (TxMessage->IDE == CAN_Id_Extended) - { - CANx->ID[0]= TxMessage ->ExtId>> 21; - CANx->ID[1]= TxMessage ->ExtId>> 13; - CANx->ID[2]= TxMessage ->ExtId>> 5; - CANx->ID[3]= TxMessage ->ExtId<<3; - CANx->IDE_RTR_DLC= (TxMessage ->IDE & 0x01) << 7 |\ - (TxMessage ->RTR & 0x01) << 6 |\ - (TxMessage ->DLC & 0x0F); - for( i=0;iDLC; i++) - { - CANx->BUF[i]= TxMessage->Data[i]; - } - } - else if (TxMessage->IDE ==CAN_Id_Standard) - { - CANx->ID[0]= TxMessage ->StdId>> 3; - CANx->ID[1]= TxMessage ->StdId<< 5; - CANx->IDE_RTR_DLC= (TxMessage ->IDE & 0x01) << 7 |\ - (TxMessage ->RTR & 0x01) << 6 |\ - (TxMessage ->DLC & 0x0F); - CANx->ID[2]= TxMessage ->Data[0]; - CANx->ID[3]= TxMessage ->Data[1]; - for( i=0;iDLC-2; i++) - { - CANx->BUF[i]= TxMessage->Data[i+2]; - } - } - CANx->CMR = CAN_CMR_TR ; -} - -void CAN_Receive(CAN_TypeDef* CANx, CanRxMsg* RxMessage) -{ - /* 获取 IDE */ - RxMessage->IDE = (CANx->IDE_RTR_DLC & 0x80)>>7; - /* 获取 RTR */ - RxMessage->RTR = (CANx->IDE_RTR_DLC & 0x40)>>4; - /* 获取 DLC */ - RxMessage->DLC= (CANx->IDE_RTR_DLC & 0x0F); - if (RxMessage->IDE == CAN_Id_Standard) - { - RxMessage->StdId = CANx->ID[0]<<3 |CANx->ID[1]>>5 ; - /* 获取数据 */ - RxMessage->Data[0] = (unsigned char)CANx->ID[2]; - RxMessage->Data[1] = (unsigned char)CANx->ID[3]; - RxMessage->Data[2] = (unsigned char)CANx->BUF[0]; - RxMessage->Data[3] = (unsigned char)CANx->BUF[1]; - RxMessage->Data[4] = (unsigned char)CANx->BUF[2]; - RxMessage->Data[5] = (unsigned char)CANx->BUF[3]; - RxMessage->Data[6] = (unsigned char)CANx->BUF[4]; - RxMessage->Data[7] = (unsigned char)CANx->BUF[5]; - } - else if (RxMessage->IDE == CAN_Id_Extended) - { - RxMessage->ExtId= CANx->ID[0]<<21 |CANx->ID[1]<<13|CANx->ID[2]<<5|CANx->ID[3]>>3 ; - /* 获取数据 */ - RxMessage->Data[0] = (unsigned char)CANx->BUF[0]; - RxMessage->Data[1] = (unsigned char)CANx->BUF[1]; - RxMessage->Data[2] = (unsigned char)CANx->BUF[2]; - RxMessage->Data[3] = (unsigned char)CANx->BUF[3]; - RxMessage->Data[4] = (unsigned char)CANx->BUF[4]; - RxMessage->Data[5] = (unsigned char)CANx->BUF[5]; - RxMessage->Data[6] = (unsigned char)CANx->BUF[6]; - RxMessage->Data[7] = (unsigned char)CANx->BUF[7]; - } -} - diff --git a/bsp/ls1cdev/libraries/ls1c_can.h b/bsp/ls1cdev/libraries/ls1c_can.h deleted file mode 100644 index b2b0f8efa8..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_can.h +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: (Pelican Mode) - * Date Author Notes - * 2018-01-06 sundm75 first version - */ - -#ifndef __OPENLOONGSON_CAN_H -#define __OPENLOONGSON_CAN_H - -#define CAN0 ( (CAN_TypeDef* )LS1C_REG_BASE_CAN0) -#define CAN1 ( (CAN_TypeDef* )LS1C_REG_BASE_CAN1) - -#define CAN_InitStatus_Failed ((unsigned char)0x00) /*!< CAN initialization failed */ -#define CAN_InitStatus_Success ((unsigned char)0x01) /*!< CAN initialization OK */ - -#define CAN_SJW_1tq ((unsigned char)0x00) /*!< 1 time quantum */ -#define CAN_SJW_2tq ((unsigned char)0x01) /*!< 2 time quantum */ -#define CAN_SJW_3tq ((unsigned char)0x02) /*!< 3 time quantum */ -#define CAN_SJW_4tq ((unsigned char)0x03) /*!< 4 time quantum */ - -#define CAN_BS1_1tq ((unsigned char)0x00) /*!< 1 time quantum */ -#define CAN_BS1_2tq ((unsigned char)0x01) /*!< 2 time quantum */ -#define CAN_BS1_3tq ((unsigned char)0x02) /*!< 3 time quantum */ -#define CAN_BS1_4tq ((unsigned char)0x03) /*!< 4 time quantum */ -#define CAN_BS1_5tq ((unsigned char)0x04) /*!< 5 time quantum */ -#define CAN_BS1_6tq ((unsigned char)0x05) /*!< 6 time quantum */ -#define CAN_BS1_7tq ((unsigned char)0x06) /*!< 7 time quantum */ -#define CAN_BS1_8tq ((unsigned char)0x07) /*!< 8 time quantum */ -#define CAN_BS1_9tq ((unsigned char)0x08) /*!< 9 time quantum */ -#define CAN_BS1_10tq ((unsigned char)0x09) /*!< 10 time quantum */ -#define CAN_BS1_11tq ((unsigned char)0x0A) /*!< 11 time quantum */ -#define CAN_BS1_12tq ((unsigned char)0x0B) /*!< 12 time quantum */ -#define CAN_BS1_13tq ((unsigned char)0x0C) /*!< 13 time quantum */ -#define CAN_BS1_14tq ((unsigned char)0x0D) /*!< 14 time quantum */ -#define CAN_BS1_15tq ((unsigned char)0x0E) /*!< 15 time quantum */ -#define CAN_BS1_16tq ((unsigned char)0x0F) /*!< 16 time quantum */ - -#define CAN_BS2_1tq ((unsigned char)0x00) /*!< 1 time quantum */ -#define CAN_BS2_2tq ((unsigned char)0x01) /*!< 2 time quantum */ -#define CAN_BS2_3tq ((unsigned char)0x02) /*!< 3 time quantum */ -#define CAN_BS2_4tq ((unsigned char)0x03) /*!< 4 time quantum */ -#define CAN_BS2_5tq ((unsigned char)0x04) /*!< 5 time quantum */ -#define CAN_BS2_6tq ((unsigned char)0x05) /*!< 6 time quantum */ -#define CAN_BS2_7tq ((unsigned char)0x06) /*!< 7 time quantum */ -#define CAN_BS2_8tq ((unsigned char)0x07) /*!< 8 time quantum */ - -#define CAN_Id_Standard 0 -#define CAN_Id_Extended 1 -#define CAN_RTR_DATA 0 -#define CAN_RTR_Remote 1 - -#define CAN_MODE_NORMAL 0 -#define CAN_MODE_LISEN 1 -#define CAN_MODE_LOOPBACK 2 -#define CAN_MODE_LOOPBACKANLISEN 3 - -/*!< CAN 控制状态寄存器 */ -/************************** CAN_MOD 寄存器位定义*******************************/ -#define CAN_Mode_RM ((unsigned char)0x01) /*!< 复位模式 */ -#define CAN_Mode_LOM ((unsigned char)0x02) /*!< 只听模式 1:只听 0:正常 */ -#define CAN_Mode_STM ((unsigned char)0x04) /*!< 正常工作模式1:自检测 0:正常 */ -#define CAN_Mode_AFM ((unsigned char)0x08) /*!< 单/双滤波模式 1:单 0: 双*/ -#define CAN_Mode_SM ((unsigned char)0x10) /*!< 睡眠模式1: 睡眠 0: 唤醒 */ - -/************************** CAN_CMR 寄存器位定义*******************************/ - #define CAN_CMR_TR ((unsigned char)0x01) /*!< 发送请求 1: 当前信息被发送 0: 空 */ - #define CAN_CMR_AT ((unsigned char)0x02) /*!< 中止发送 1: 等待发送的信息取消 0: 空缺 */ - #define CAN_CMR_RRB ((unsigned char)0x04) /*!< 释放接收缓冲器 1:释放 0: 无动作 */ - #define CAN_CMR_CDO ((unsigned char)0x08) /*!< 清除数据溢出 1:清除 0: 无动作 */ -//#define CAN_CMR_GTS ((unsigned char)0x10) /*!< STD模式< 睡眠: 1:进入睡眠 0: 唤醒 */ - #define CAN_CMR_SRR ((unsigned char)0x10) /*!< 自接收请求 1: 0: */ - #define CAN_CMR_EFF ((unsigned char)0x80) /*!< 扩展模式 1:扩展帧 0: 标准帧 */ - -/************************** CAN_SR 寄存器位定义********************************/ - #define CAN_SR_BBS ((unsigned char)0x01) /*!< 接收缓存器状态1: 满 0: 空 */ - #define CAN_SR_DOS ((unsigned char)0x02) /*!< 数据溢出状态 1: 溢出 0: 空缺 */ - #define CAN_SR_TBS ((unsigned char)0x04) /*!< 发送缓存器状态1: 释放 0: 锁定 */ - #define CAN_SR_TCS ((unsigned char)0x08) /*!< 发送完毕状态1: 完毕 0: 未完毕 */ - #define CAN_SR_RS ((unsigned char)0x10) /*!< 接收状态1: 接收 0: 空闲 */ - #define CAN_SR_TS ((unsigned char)0x20) /*!< 发送状态1: 发送 0: 空闲*/ - #define CAN_SR_ES ((unsigned char)0x40) /*!< 出错状态1:出错 0: 正常 */ - #define CAN_SR_BS ((unsigned char)0x80) /*!< 总线状态1: 关闭 0: 开启 */ - -/************************** CAN_IR 中断寄存器位定义****************************/ - #define CAN_IR_RI ((unsigned char)0x01) /*!< 接收中断 */ - #define CAN_IR_TI ((unsigned char)0x02) /*!< 发送中断 */ - #define CAN_IR_EI ((unsigned char)0x04) /*!< 错误中断 */ - #define CAN_IR_DOI ((unsigned char)0x08) /*!< 数据溢出中断 */ - #define CAN_IR_WUI ((unsigned char)0x10) /*!< 唤醒中断 */ - #define CAN_IR_EPI ((unsigned char)0x20) /*!< 错误消极中断 */ - #define CAN_IR_ALI ((unsigned char)0x40) /*!< 仲裁丢失中断 */ - #define CAN_IR_BEI ((unsigned char)0x80) /*!< 总线错误中断 */ - -/************************* CAN_IER 中断使能寄存器位定义************************/ - #define CAN_IER_RIE ((unsigned char)0x01) /*!< 接收中断使能 */ - #define CAN_IER_TIE ((unsigned char)0x02) /*!< 发送中断使能 */ - #define CAN_IER_EIE ((unsigned char)0x04) /*!< 错误中断使能 */ - #define CAN_IER_DOIE ((unsigned char)0x08) /*!< 数据溢出中断使能 */ - #define CAN_IER_WUIE ((unsigned char)0x10) /*!< 唤醒中断使能 */ - #define CAN_IER_EPIE ((unsigned char)0x20) /*!< 错误消极中断使能 */ - #define CAN_IER_ALIE ((unsigned char)0x40) /*!< 仲裁丢失中断使能 */ - #define CAN_IER_BEIE ((unsigned char)0x80) /*!< 总线错误中断使能 */ - -typedef enum -{ - LS1C_CAN1MBaud=0, // 1 MBit/sec - LS1C_CAN800kBaud, // 800 kBit/sec - LS1C_CAN500kBaud, // 500 kBit/sec - LS1C_CAN250kBaud, // 250 kBit/sec - LS1C_CAN125kBaud, // 125 kBit/sec - LS1C_CAN100kBaud, // 100 kBit/sec - LS1C_CAN50kBaud, // 50 kBit/sec - LS1C_CAN40kBaud, // 40 kBit/sec -}Ls1c_CanBPS_t; - -typedef struct -{ - unsigned char MOD; - unsigned char CMR; - unsigned char SR; - unsigned char IR; - unsigned char IER; - unsigned char reserved0; - unsigned char BTR0; - unsigned char BTR1; - unsigned char OCR; - unsigned char reserved[2]; - unsigned char ALC; - unsigned char ECC ; - unsigned char EMLR; - unsigned char RXERR; - unsigned char TXERR; - unsigned char IDE_RTR_DLC; - unsigned char ID[4]; - unsigned char BUF[8]; - unsigned char RMCR; - unsigned char CDR; -} CAN_TypeDef; - -typedef struct -{ - unsigned char CAN_Prescaler; /* 波特率分频系数1 to 31. */ - unsigned char CAN_Mode; /*0x10:睡眠0x08:单,双滤波 0x40:正常工作0x20:只听 0x01:复位*/ - unsigned char CAN_SJW; /*同步跳转宽度 */ - unsigned char CAN_BS1; /*时间段1计数值*/ - unsigned char CAN_BS2; /*时间段2计数值*/ - -} CAN_InitTypeDef; - -typedef struct -{ - unsigned char IDE; /*0: 使用标准标识符1: 使用扩展标识符*/ - unsigned char RTR; /*0: 数据帧 1: 远程帧*/ - unsigned char MODE; /* 0- 双滤波器模式;1-单滤波器模式*/ - unsigned long First_Data; /*双滤波器模式下信息第一个数据字节*/ - unsigned long Data_Mask; /*双滤波器模式下信息第一个数据字节屏蔽*/ - unsigned long ID; /*验收代码*/ - /* - 双滤波器- 扩展帧: 2个滤波器的前16位,分别放在ID 的前16位和 ID的后16位. - 双滤波器- 标准帧: 2个滤波器的11位,分别放在ID 的前16位和 ID的后16位,第1个滤波器同时使用First_Data和Data_Mask - 单滤波器- 扩展帧: 使用29位, 放在ID 的后29位. - 单滤波器- 标准帧: 使用11位, 放在ID 的后11位. - */ - unsigned long IDMASK; /*验收屏蔽*/ -} CAN_FilterInitTypeDef; - -typedef struct -{ - unsigned long StdId; /* 11位ID*/ - unsigned long ExtId; /*29位ID**/ - unsigned char IDE; /*IDE: 标识符选择 - 该位决定发送邮箱中报文使用的标识符类型 - 0: 使用标准标识符 - 1: 使用扩展标识符*/ - unsigned char RTR; /*远程发送请求 - 0: 数据帧 - 1: 远程帧*/ - unsigned char DLC; /*数据帧长度*/ - unsigned char Data[8]; /*8字节数据*/ -} CanRxMsg; - -typedef struct -{ - unsigned long StdId; /* 11位ID*/ - unsigned long ExtId; /*29位ID**/ - unsigned char IDE; /*IDE: 标识符选择 - 该位决定发送邮箱中报文使用的标识符类型 - 0: 使用标准标识符 - 1: 使用扩展标识符*/ - unsigned char RTR; /*远程发送请求 - 0: 数据帧 - 1: 远程帧*/ - unsigned char DLC; /*数据帧长度*/ - unsigned char Data[8]; /*8字节数据*/ -} CanTxMsg; - -unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct); -unsigned char CAN_SetBps(CAN_TypeDef* CANx, Ls1c_CanBPS_t Bps); -unsigned char CAN_SetMode(CAN_TypeDef* CANx, unsigned char mode); -void CAN_FilterInit(CAN_TypeDef* CANx, CAN_FilterInitTypeDef* CAN_FilterInitStruct); -unsigned char CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage); -void CAN_Receive(CAN_TypeDef* CANx, CanRxMsg* RxMessage); - -unsigned char set_reset_mode(CAN_TypeDef* CANx); -unsigned char set_start(CAN_TypeDef* CANx); - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_clock.c b/bsp/ls1cdev/libraries/ls1c_clock.c deleted file mode 100644 index 1ae621cbbb..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_clock.c +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - - -#include "ls1c_regs.h" -#include "ls1c_public.h" - - -// 晶振的频率 -#define AHB_CLK (24000000) -#define APB_CLK (AHB_CLK) - - -// START_FREQ寄存器bits -#define M_PLL_SHIFT (8) -#define M_PLL (0xff << M_PLL_SHIFT) // PLL倍频系数的整数部分 -#define FRAC_N_SHIFT (16) -#define FRAC_N (0xff << FRAC_N_SHIFT) // PLL倍频系数的小数部分 -#define DIV_SDRAM_SHIFT (0) -#define DIV_SDRAM (0x3 << DIV_SDRAM_SHIFT) - -// CLK_DIV_PARAM寄存器bits -#define DIV_PIX_EN (0x1 << 31) -#define DIV_PIX (0x7f << 24) -#define DIV_CAM_EN (0x1 << 23) -#define DIV_CAM (0x7f << 16) -#define DIV_CPU_EN (0x1 << 15) -#define DIV_CPU (0x7f << 8) -#define DIV_PIX_VALID (0x1 << 5) -#define DIV_PIX_SEL (0x1 << 4) -#define DIV_CAM_VALID (0x1 << 3) -#define DIV_CAM_SEL (0x1 << 2) -#define DIV_CPU_VALID (0x1 << 1) -#define DIV_CPU_SEL (0x1 << 0) - -#define DIV_PIX_SHIFT (24) -#define DIV_CAM_SHIFT (16) -#define DIV_CPU_SHIFT (8) - - -/* - * 获取PLL频率 - * @ret PLL频率 - */ -unsigned long clk_get_pll_rate(void) -{ - unsigned int ctrl; - unsigned long pll_rate = 0; - - ctrl = reg_read_32((volatile unsigned int *)LS1C_START_FREQ); - pll_rate = (((ctrl & M_PLL) >> M_PLL_SHIFT) + ((ctrl & FRAC_N) >> FRAC_N_SHIFT)) * APB_CLK / 4; - - return pll_rate; -} - - -/* - * 获取CPU频率 - * @ret CPU频率 - */ -unsigned long clk_get_cpu_rate(void) -{ - unsigned long pll_rate, cpu_rate; - unsigned int ctrl; - - pll_rate = clk_get_pll_rate(); - ctrl = reg_read_32((volatile unsigned int *)LS1C_CLK_DIV_PARAM); - - // 选择时钟来源 - if (DIV_CPU_SEL & ctrl) // pll分频作为时钟信号 - { - if (DIV_CPU_EN & ctrl) - { - cpu_rate = pll_rate / ((ctrl & DIV_CPU) >> DIV_CPU_SHIFT); - } - else - { - cpu_rate = pll_rate / 2; - } - } - else // bypass模式,晶振作为时钟输入 - { - cpu_rate = APB_CLK; - } - - return cpu_rate; -} - - -/* - * 获取DDR频率 - * @ret DDR频率 - */ -unsigned long clk_get_ddr_rate(void) -{ - unsigned long cpu_rate = 0; - unsigned long ddr_rate = 0; - unsigned int ctrl; - - cpu_rate = clk_get_cpu_rate(); - ctrl = reg_read_32((volatile unsigned int *)LS1C_START_FREQ); - ctrl = (ctrl & DIV_SDRAM) >> DIV_SDRAM_SHIFT; - - switch (ctrl) - { - case 0: - ddr_rate = cpu_rate / 2; - break; - - case 1: - ddr_rate = cpu_rate / 4; - break; - - case 2: - case 3: - ddr_rate = cpu_rate / 3; - break; - } - - return ddr_rate; -} - - -/* - * 获取APB频率 - * @ret APB频率 - */ -unsigned long clk_get_apb_rate(void) -{ - return clk_get_ddr_rate(); -} - - -/* - * 获取DC频率 - * @ret DC频率 - */ -unsigned long clk_get_dc_rate(void) -{ - unsigned long pll_rate, dc_rate; - unsigned int ctrl; - - pll_rate = clk_get_pll_rate(); - ctrl = reg_read_32((volatile unsigned int *)LS1C_CLK_DIV_PARAM); - - dc_rate = pll_rate / ((ctrl & DIV_PIX) >> DIV_PIX_SHIFT); - - return dc_rate; -} - - - diff --git a/bsp/ls1cdev/libraries/ls1c_clock.h b/bsp/ls1cdev/libraries/ls1c_clock.h deleted file mode 100644 index 3cacb7454a..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_clock.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - - -#ifndef __OPENLOONGSON_CLOCK_H -#define __OPENLOONGSON_CLOCK_H - - - -/* - * »ñȡPLLƵÂÊ - * @ret PLLƵÂÊ - */ -unsigned long clk_get_pll_rate(void); - - -/* - * »ñȡCPUƵÂÊ - * @ret CPUƵÂÊ - */ -unsigned long clk_get_cpu_rate(void); - - - -/* - * »ñȡDDRƵÂÊ - * @ret DDRƵÂÊ - */ -unsigned long clk_get_ddr_rate(void); - - -/* - * »ñȡAPBƵÂÊ - * @ret APBƵÂÊ - */ -unsigned long clk_get_apb_rate(void); - - -/* - * »ñȡDCƵÂÊ - * @ret DCƵÂÊ - */ -unsigned long clk_get_dc_rate(void); - - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_delay.c b/bsp/ls1cdev/libraries/ls1c_delay.c deleted file mode 100644 index 418a310bf8..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_delay.c +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - - -#include "ls1c_clock.h" - - - - -/* - * ÑÓʱָ¶¨ʱ¼䣬µ¥λms - * @j ÑÓʱʱ¼䣬µ¥λms - */ -void delay_ms(int j) -{ - int k_max = clk_get_cpu_rate()/1000/92; // ³ýÒÔ1000±íʾms£¬ÁíÍâһ¸ö³ýÊýΪʵÑé²âµõľ­Ñéֵ - int k = k_max; - - for ( ; j > 0; j--) - { - for (k = k_max; k > 0; k--) - { - __asm__ ("nop"); // עÒ⣬ÕâÀï±ØÐëÓÃÄÚÁª»ã±࣬·ñÔò»ᱻÓŻ¯µô - } - } - - return ; -} - - -/* - * ÑÓʱָ¶¨ʱ¼䣬µ¥λus - * @n ÑÓʱʱ¼䣬µ¥λus - */ -void delay_us(int n) -{ - int count_1us = 252000000 / 1000000 / 84; // ÑÓʱ1usµÄѭ»·´ÎÊý - // 252000000ΪcpuƵÂʣ¬³ýÒÔ1000000±íʾÑÓʱµ¥λΪus£¬92ΪʵÑé²âµõľ­Ñéֵ - int count_max; // ÑÓʱn΢ÃëµÄѭ»·´ÎÊý - int tmp; - - // ΢µ÷ - count_max = n * count_1us; - if (10 >= n) // <=10us - { - count_max = count_max / 3; - } - else if (100 >= n) // <= 100us - { - count_max = count_max - count_max / 5; - } - else // > 100us - { - count_max = count_max - count_max / 10; - } - - // ÑÓʱ - for (tmp = count_max; tmp > 0; tmp--) - { - __asm__ ("nop"); // עÒ⣬ÕâÀï±ØÐëÓÃÄÚÁª»ã±࣬·ñÔò»ᱻÓŻ¯µô - } - - return ; -} - - -/* - * ÑÓʱָ¶¨ʱ¼䣬µ¥λs - * @i ÑÓʱʱ¼䣬µ¥λs - */ -void delay_s(int i) -{ - for ( ; i > 0; i--) - { - delay_ms(1000); - } - - return ; -} - - - diff --git a/bsp/ls1cdev/libraries/ls1c_delay.h b/bsp/ls1cdev/libraries/ls1c_delay.h deleted file mode 100644 index 15cc1d43b1..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_delay.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - - -#ifndef __OPENLOONGSON_DELAY_H -#define __OPENLOONGSON_DELAY_H - - - -/* - * ÑÓʱָ¶¨ʱ¼䣬µ¥λms - * @j ÑÓʱʱ¼䣬µ¥λms - */ -void delay_ms(int j); - - -/* - * ÑÓʱָ¶¨ʱ¼䣬µ¥λus - * @n ÑÓʱʱ¼䣬µ¥λus - */ -void delay_us(int n); - - -/* - * ÑÓʱָ¶¨ʱ¼䣬µ¥λs - * @i ÑÓʱʱ¼䣬µ¥λs - */ -void delay_s(int i); - - - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_gpio.c b/bsp/ls1cdev/libraries/ls1c_gpio.c deleted file mode 100644 index 4bf6b7a20b..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_gpio.c +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - - -#include "ls1c_public.h" -#include "ls1c_regs.h" -#include "ls1c_gpio.h" -#include "ls1c_pin.h" - - -/* - * 获取指定gpio的CFG寄存器 - * @gpio gpio编号 - * @ret CFG寄存器 - */ -volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio) -{ - volatile unsigned int *gpio_cfgx = NULL; // GPIO_CFGx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - - switch (port) - { - case 0: - gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG0; - break; - - case 1: - gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG1; - break; - - case 2: - gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG2; - break; - - case 3: - gpio_cfgx = (volatile unsigned int *)LS1C_GPIO_CFG3; - break; - - default: - gpio_cfgx = NULL; - break; - } - - return gpio_cfgx; -} - - -/* - * 获取指定gpio的EN寄存器 - * @gpio gpio编号 - * @ret EN寄存器 - */ -volatile unsigned int *gpio_get_en_reg(unsigned int gpio) -{ - volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - - switch (port) - { - case 0: - gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN0; - break; - - case 1: - gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN1; - break; - - case 2: - gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN2; - break; - - case 3: - gpio_enx = (volatile unsigned int *)LS1C_GPIO_EN3; - break; - - default: - gpio_enx = NULL; - return gpio_enx; - } - - return gpio_enx; -} - -/* - * gpio初始化 - * @gpio gpio引脚,取值范围[0, 127] - * @mode gpio的工作模式(输入、输出) - * - * 例: 将gpio50初始化为输出 - * gpio_init(50, gpio_mode_output); - */ -void gpio_init(unsigned int gpio, gpio_mode_t mode) -{ - volatile unsigned int *gpio_enx = NULL; // GPIO_ENx寄存器 - unsigned int pin = GPIO_GET_PIN(gpio); - - // 将pin设为普通GPIO - pin_set_purpose(gpio, PIN_PURPOSE_GPIO); - - // 设置gpio工作模式(输入、输出) - gpio_enx = gpio_get_en_reg(gpio); - if (gpio_mode_output == mode) // 输出 - { - reg_clr_one_bit(gpio_enx, pin); - } - else // 输入 - { - reg_set_one_bit(gpio_enx, pin); - } - - return ; -} - - -/* - * 在指定gpio输出高电平或低电平 - * @gpio gpio引脚,取值范围[0, 127] - * @level 电平值 - * - * 例: 在gpio50上输出低电平 - * gpio_set(50, gpio_level_low); - */ -void gpio_set(unsigned int gpio, gpio_level_t level) -{ - volatile unsigned int *gpio_outx = NULL; // GPIO_OUTx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - - // 获取寄存器地址 - switch (port) - { - case 0: - gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT0; - break; - - case 1: - gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT1; - break; - - case 2: - gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT2; - break; - - case 3: - gpio_outx = (volatile unsigned int *)LS1C_GPIO_OUT3; - break; - - default: // 正确的程序不应该走到这里,直接返回 - return ; - } - - // 输出 - if (gpio_level_low == level) - { - reg_clr_one_bit(gpio_outx, pin); - } - else - { - reg_set_one_bit(gpio_outx, pin); - } - - return ; -} - - -/* - * 读取指定gpio引脚的值 - * @gpio gpio引脚,取值范围[0,127] - * - * 例: 读取gpio50引脚上的值 - * gpio_level_t level; - * level = gpio_get(50); - */ -unsigned int gpio_get(unsigned int gpio) -{ - volatile unsigned int *gpio_inx = NULL; // GPIO_INx寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - - // 获取寄存器地址 - switch (port) - { - case 0: - gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN0; - break; - - case 1: - gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN1; - break; - - case 2: - gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN2; - break; - - case 3: - gpio_inx = (volatile unsigned int *)LS1C_GPIO_IN3; - break; - - default: // 正常的流程不应该走到这里,直接返回 - return 0; - } - - // 读取 - return reg_get_bit(gpio_inx, pin); -} - - -/** - * 设置中断类型 - * @gpio gpio引脚 - * @type 触发中断的条件。高电平触发、低电平触发、上升沿触发 or 下降沿触发 - */ -void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type) -{ - volatile unsigned int *int_pol = NULL; // 中断极性选择寄存器 - volatile unsigned int *int_edge = NULL; // 中断边沿选择寄存器 - unsigned int port = GPIO_GET_PORT(gpio); - unsigned int pin = GPIO_GET_PIN(gpio); - - // 获取寄存器地址 - switch (port) - { - case 0: // GPIO[31:0] - int_pol = (volatile unsigned int *)LS1C_INT2_POL; - int_edge = (volatile unsigned int *)LS1C_INT2_EDGE; - break; - - case 1: // GPIO[63:32] - int_pol = (volatile unsigned int *)LS1C_INT3_POL; - int_edge = (volatile unsigned int *)LS1C_INT3_EDGE; - break; - - case 2: // GPIO[95:64] - int_pol = (volatile unsigned int *)LS1C_INT4_POL; - int_edge = (volatile unsigned int *)LS1C_INT4_EDGE; - break; - } - - // 设置中断类型 - switch (type) - { - case IRQ_TYPE_EDGE_RISING: - *int_pol |= (1 << pin); - *int_edge |= (1 << pin); - break; - - case IRQ_TYPE_EDGE_FALLING: - *int_pol &= ~(1 << pin); - *int_edge |= (1 << pin); - break; - - case IRQ_TYPE_LEVEL_HIGH: - *int_pol |= (1 << pin); - *int_edge &= ~(1 << pin); - break; - - case IRQ_TYPE_LEVEL_LOW: - *int_pol &= ~(1 << pin); - *int_edge &= ~(1 << pin); - break; - - default: - break; - } - - return ; -} - - - diff --git a/bsp/ls1cdev/libraries/ls1c_gpio.h b/bsp/ls1cdev/libraries/ls1c_gpio.h deleted file mode 100644 index c5c9b12312..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_gpio.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - - -#ifndef __OPENLOONGSON_GPIO_H -#define __OPENLOONGSON_GPIO_H - - - -// Áúо1cµÄgpioÊǰ´ÕÕ0,1,2,3,4...ÕâÑùµÄ˳Ðò±àºŵģ¬ -// µ«ÔڲÙ×÷¼ĴæÆ÷µÄʱºò£¬ÓÖÊǰ´ÕÕÿ32¸öһ×éÀ´·ֵÄ -// ÕâÀïÀûÓÃÕâ¸öÌØÐԣ¬½«ÿ×éµÄ32¸ögpio½Ð×öһ¸ö"port"£¬ÿ¸ögpioÔÚÿ×éÖеÄË÷Òý½Ð"pin" -// port = gpio / 32 -// pin = gpio % 32 -// ÀýÈçGPIO50£¬port=1,pin=18 -#define GPIO_GET_PORT(gpio) ((gpio) / 32) -#define GPIO_GET_PIN(gpio) ((gpio) % 32) - - -// gpioµĹ¤×÷ģʽ--ÊäÈ롢Êä³ö -typedef enum{ - gpio_mode_output = 0, // Êä³ö - gpio_mode_input = 1 // ÊäÈë -}gpio_mode_t; - - -// gpio¸ߵ͵çƽֵ -typedef enum{ - gpio_level_low = 0, // µ͵çƽ - gpio_level_high = 1 // ¸ߵçƽ -}gpio_level_t; - - -typedef enum { - // ÉÏÉýÑش¥·¢ - IRQ_TYPE_EDGE_RISING = 0x00000001, - // ϽµÑش¥·¢ - IRQ_TYPE_EDGE_FALLING = 0x00000002, - IRQ_TYPE_EDGE_BOTH = (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING), - // ¸ߵçƽ´¥·¢ - IRQ_TYPE_LEVEL_HIGH = 0x00000004, - // µ͵çƽ´¥·¢ - IRQ_TYPE_LEVEL_LOW = 0x00000008, - IRQ_TYPE_LEVEL_MASK = (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH), -}gpio_irq_type_t; - - - -/* - * »ñȡָ¶¨gpioµÄCFG¼ĴæÆ÷ - * @gpio gpio±àºÅ - * @ret CFG¼ĴæÆ÷ - */ -volatile unsigned int *gpio_get_cfg_reg(unsigned int gpio); - -/* - * gpio³õʼ»¯ - * @gpio gpioÒý½ţ¬ȡֵ·¶Χ[0, 127] - * @mode gpioµĹ¤×÷ģʽ(ÊäÈ롢Êä³ö) - * - * Àý: ½«gpio50³õʼ»¯ΪÊä³ö - * gpio_init(50, gpio_mode_output); - */ -void gpio_init(unsigned int gpio, gpio_mode_t mode); - - -/* - * ÔÚָ¶¨gpioÊä³ö¸ߵçƽ»òµ͵çƽ - * @gpio gpioÒý½ţ¬ȡֵ·¶Χ[0, 127] - * @level µçƽֵ - * - * Àý: ÔÚgpio50ÉÏÊä³öµ͵çƽ - * gpio_set(50, gpio_level_low); - */ -void gpio_set(unsigned int gpio, gpio_level_t level); - - - -/* - * ¶Áȡָ¶¨gpioÒý½ŵÄֵ - * @gpio gpioÒý½ţ¬ȡֵ·¶Χ[0,127] - * - * Àý: ¶Áȡgpio50Òý½ÅÉϵÄֵ - * gpio_level_t level; - * level = gpio_get(50); - */ -unsigned int gpio_get(unsigned int gpio); - - - -/** - * ÉèÖÃÖжÏÀàÐÍ - * @gpio gpioÒý½Å - * @type ´¥·¢ÖжϵÄÌõ¼þ¡£¸ߵçƽ´¥·¢¡¢µ͵çƽ´¥·¢¡¢ÉÏÉýÑش¥·¢ or ϽµÑش¥·¢ - */ -void gpio_set_irq_type(unsigned int gpio, gpio_irq_type_t type); - - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_i2c.c b/bsp/ls1cdev/libraries/ls1c_i2c.c deleted file mode 100644 index 11475cf149..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_i2c.c +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - -// ·âװӲ¼þi2c½ӿÚ - - -#include "ls1c_public.h" -#include "ls1c_regs.h" -#include "ls1c_clock.h" -#include "ls1c_i2c.h" -#include "ls1c_delay.h" - - - -/* - * I2C¸÷¸ö¼ĴæÆ÷Ïà¶ԻùµØַµÄƫÒÆ - * ·¢ËÍÊý¾ݼĴæÆ÷ºͽÓÊÕÊý¾ݼĴæÆ÷µÄƫÒÆÊÇÏàͬµÄ - * ÃüÁî¼ĴæÆ÷ºÍ״̬¼ĴæÆ÷µÄƫÒÆÊÇÏàͬµģ¬²»ͬµÄÊÇÃüÁî¼ĴæÆ÷ֻд£¬״̬¼ĴæÆ÷ֻ¶Á - */ -#define LS1C_I2C_PRER_LOW_OFFSET (0) // ·ÖƵËø´æÆ÷µÍ×ֽڼĴæÆ÷ƫÒÆ -#define LS1C_I2C_PRER_HIGH_OFFSET (1) // ·ÖƵËø´æÆ÷¸ß×ֽڼĴæÆ÷ƫÒÆ -#define LS1C_I2C_CONTROL_OFFSET (2) // ¿ØÖƼĴæÆ÷ƫÒÆ -#define LS1C_I2C_DATA_OFFSET (3) // ·¢ËÍÊý¾ݼĴæÆ÷ºͽÓÊÕÊý¾ݼĴæÆ÷µÄƫÒÆÊÇÏàͬµÄ -#define LS1C_I2C_CMD_OFFSET (4) // ÃüÁî¼ĴæÆ÷ƫÒƣ¬ֻд -#define LS1C_I2C_STATUS_OFFSET (4) // ״̬¼ĴæÆ÷ƫÒƣ¬ֻ¶Á - - -// ¿ØÖƼĴæÆ÷µÄλÓò -#define LS1C_I2C_CONTROL_EN (0x80) // i2cģ¿éʹÄÜ -#define LS1C_I2C_CONTROL_IEN (0x40) // ÖжÏʹÄÜ - -// ÃüÁî¼ĴæÆ÷µÄλÓò -#define LS1C_I2C_CMD_START (0x90) // ²úÉúSTARTÐźÅ -#define LS1C_I2C_CMD_STOP (0x40) // ²úÉúSTOPÐźÅ -#define LS1C_I2C_CMD_READ (0x20) // ²úÉú¶ÁÐźţ¬¼´²úÉúACKÐźÅ -#define LS1C_I2C_CMD_WRITE (0x10) // ²úÉúдÐźÅ -#define LS1C_I2C_CMD_READ_ACK (0x20) // ²úÉúACKÐźţ¬Óë¶ÁÐźÅÏàͬ -#define LS1C_I2C_CMD_READ_NACK (0x28) // ²úÉúNACKÐźÅ -#define LS1C_I2C_CMD_IACK (0x00) // ²úÉúÖжÏӦ´ðÐźÅ - -// ״̬¼ĴæÆ÷µÄλÓò -#define LS1C_I2C_STATUS_IF (0x01) // Öжϱê־λ -#define LS1C_I2C_STATUS_TIP (0x02) // ָʾ´«ÊäµĹý³̡£1£¬ÕýÔڴ«Ê䣻0£¬´«ÊäÍê³É -#define LS1C_I2C_STATUS_ARBLOST (0x20) // I2CºËʧȥI2C×ÜÏߵĿØÖÆȨ -#define LS1C_I2C_STATUS_BUSY (0x40) // I2C×ÜÏßæ±ê־ -#define LS1C_I2C_STATUS_NACK (0x80) // Ӧ´ðλ±ê־¡£1£¬ûÊյ½Ӧ´ðλ£»0£¬Êյ½Ӧ´ðλ - - -/* - * »ñȡָ¶¨i2cģ¿éµĻùµØַ - * @I2Cx I2Cģ¿éµıàºÅ - */ -void *i2c_get_base(ls1c_i2c_t I2Cx) -{ - void *base = NULL; - - switch (I2Cx) - { - case LS1C_I2C_0: - base = (void *)LS1C_I2C0_BASE; - break; - - case LS1C_I2C_1: - base = (void *)LS1C_I2C1_BASE; - break; - - case LS1C_I2C_2: - base = (void *)LS1C_I2C2_BASE; - break; - - default: - base = NULL; - break; - } - - return base; -} - - -/* - * ÏòÃüÁî¼ĴæÆ÷дÃüÁî - * @i2c_info_p i2cģ¿éÐÅϢ - * @cmd ÃüÁî - */ -void i2c_cmd(ls1c_i2c_info_t *i2c_info_p, unsigned char cmd) -{ - void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); - - reg_write_8(cmd, i2c_base + LS1C_I2C_CMD_OFFSET); - - return ; -} - - -/* - * ִÐÐSTARTÃüÁ·¢ËÍSTARTÐźÅ - * @i2c_info_p i2cģ¿éÐÅϢ - */ -void i2c_cmd_start(ls1c_i2c_info_t *i2c_info_p) -{ - i2c_cmd(i2c_info_p, LS1C_I2C_CMD_START); - return ; -} - - -/* - * ִÐÐSTOPÃüÁ·¢ËÍSTOPÐźÅ - * @i2c_info_p i2cģ¿éÐÅϢ - */ -void i2c_cmd_stop(ls1c_i2c_info_t *i2c_info_p) -{ - i2c_cmd(i2c_info_p, LS1C_I2C_CMD_STOP); - return ; -} - - -/* - * ִÐÐдÃüÁî - * @i2c_info_p i2cģ¿éÐÅϢ - */ -void i2c_cmd_write(ls1c_i2c_info_t *i2c_info_p) -{ - i2c_cmd(i2c_info_p, LS1C_I2C_CMD_WRITE); - return ; -} - - -/* - * ִÐжÁackÃüÁ·¢ËͶÁackÐźÅ - * @i2c_info_p i2cģ¿éÐÅϢ - */ -void i2c_cmd_read_ack(ls1c_i2c_info_t *i2c_info_p) -{ - i2c_cmd(i2c_info_p, LS1C_I2C_CMD_READ_ACK); - return ; -} - - -/* - * ִÐжÁnackÃüÁî,·¢ËͶÁnackÐźÅ - * @i2c_info_p i2cģ¿éÐÅϢ - */ -void i2c_cmd_read_nack(ls1c_i2c_info_t *i2c_info_p) -{ - i2c_cmd(i2c_info_p, LS1C_I2C_CMD_READ_NACK); - return ; -} - - -/* - * ·¢ËÍÖжÏӦ´ðÐźÅ - * @i2c_info_p i2cģ¿éÐÅϢ - */ -void i2c_cmd_iack(ls1c_i2c_info_t *i2c_info_p) -{ - i2c_cmd(i2c_info_p, LS1C_I2C_CMD_IACK); - return ; -} - - -/* - * »ñȡ״̬¼ĴæÆ÷µÄֵ - * @i2c_info_p i2cģ¿éÐÅϢ - * @ret ״̬¼ĴæÆ÷µÄֵ - */ -unsigned char i2c_get_status(ls1c_i2c_info_t *i2c_info_p) -{ - void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); - - return reg_read_8(i2c_base + LS1C_I2C_STATUS_OFFSET); -} - - -/* - * Poll the i2c status register until the specified bit is set. - * Returns 0 if timed out (100 msec). - * @i2c_info_p i2cģ¿éÐÅϢ - * @bit ¼ĴæÆ÷µÄijһλ - * @ret true or false - */ -int i2c_poll_status(ls1c_i2c_info_t *i2c_info_p, unsigned long bit) -{ - int loop_cntr = 20000; - - do { - delay_us(1); - } while ((i2c_get_status(i2c_info_p) & bit) && (0 < --loop_cntr)); - - return (0 < loop_cntr); -} - - -/* - * ³õʼ»¯ָ¶¨i2cģ¿é - * @i2c_info_p ij¸öi2cģ¿éµÄÐÅϢ - */ -void i2c_init(ls1c_i2c_info_t *i2c_info_p) -{ - void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); - unsigned long i2c_clock = i2c_info_p->clock; - unsigned char ctrl = reg_read_8(i2c_base + LS1C_I2C_CONTROL_OFFSET); - unsigned long prescale = 0; - - /* make sure the device is disabled */ - ctrl = ctrl & ~(LS1C_I2C_CONTROL_EN | LS1C_I2C_CONTROL_IEN); - reg_write_8(ctrl, i2c_base + LS1C_I2C_CONTROL_OFFSET); - - // ÉèÖÃʱÖÓ - i2c_clock = MIN(i2c_clock, LS1C_I2C_CLOCK_MAX); // ÏÞÖÆÔÚ×î´óÔÊÐí·¶ΧÄÚ - prescale = clk_get_apb_rate(); - prescale = (prescale / (5 * i2c_clock)) - 1; - reg_write_8(prescale & 0xff, i2c_base + LS1C_I2C_PRER_LOW_OFFSET); - reg_write_8(prescale >> 8, i2c_base + LS1C_I2C_PRER_HIGH_OFFSET); - - // ʹÄÜ - i2c_cmd_iack(i2c_info_p); - ctrl = ctrl | LS1C_I2C_CONTROL_EN; - reg_write_8(ctrl, i2c_base + LS1C_I2C_CONTROL_OFFSET); - - return ; -} - - -/* - * (Ôٷ¢ËÍһ¸ö×ֽÚÊý¾Ý֮ºó)½ÓÊմӻú·¢Ë͵ÄACKÐźÅ - * @i2c_info_p i2cģ¿éÐÅϢ - * @ret LS1C_I2C_ACK or LS1C_I2C_NACK - */ -ls1c_i2c_ack_t i2c_receive_ack(ls1c_i2c_info_t *i2c_info_p) -{ - ls1c_i2c_ack_t ret = LS1C_I2C_NACK; - - if (LS1C_I2C_STATUS_NACK & i2c_get_status(i2c_info_p)) - { - ret = LS1C_I2C_NACK; - } - else - { - ret = LS1C_I2C_ACK; - } - - return ret; -} - - -/* - * ½ÓÊÕÊý¾Ý - * @i2c_info_p i2cģ¿éÐÅϢ - * @buf Êý¾ݻº´æ - * @len ´ý½ÓÊÕÊý¾ݵij¤¶È - */ -ls1c_i2c_ret_t i2c_receive_data(ls1c_i2c_info_t *i2c_info_p, unsigned char *buf, int len) -{ - void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); - int i = 0; - - for (i=0; iI2Cx); - unsigned char data = 0; - - // µȴýi2c×ÜÏ߿ÕÏÐ - if (!i2c_poll_status(i2c_info_p, LS1C_I2C_STATUS_BUSY)) - return LS1C_I2C_RET_TIMEOUT; - - // Ìî³äµØַµ½Êý¾ݼĴæÆ÷ - data = (slave_addr << 1) | ((LS1C_I2C_DIRECTION_READ == direction) ? 1 : 0); - reg_write_8(data , i2c_base + LS1C_I2C_DATA_OFFSET); - - // ¿ªʼ·¢ËÍ - i2c_cmd_start(i2c_info_p); - - // µȴý£¬ֱµ½·¢ËÍÍê³É - if (!i2c_poll_status(i2c_info_p, LS1C_I2C_STATUS_TIP)) - return LS1C_I2C_RET_TIMEOUT; - - return LS1C_I2C_RET_OK; -} - - -/* - * ·¢ËÍÊý¾Ý - * @i2c_info_p i2cģ¿éÐÅϢ - * @data ´ý·¢Ë͵ÄÊý¾Ý - * @len ´ý·¢ËÍÊý¾ݵij¤¶È - */ -ls1c_i2c_ret_t i2c_send_data(ls1c_i2c_info_t *i2c_info_p, unsigned char *data, int len) -{ - void *i2c_base = i2c_get_base(i2c_info_p->I2Cx); - int i = 0; - - for (i=0; i> bit) & 1; - - return temp; -} - - -/* - * Ïò¼ĴæÆ÷ÖÐдÈë8bit(һ¸ö×ֽÚ)Êý¾Ý - * @data ´ýдÈëµÄÊý¾Ý - * @addr ¼ĴæÆ÷µØַ - */ -void reg_write_8(unsigned char data, volatile unsigned char *addr) -{ - *addr = data; -} - - -/* - * ´ӼĴæÆ÷¶Á³ö8bit(һ¸ö×ֽÚ)Êý¾Ý - * @addr ¼ĴæÆ÷µØַ - * @ret ¶Á³öµÄÊý¾Ý - */ -unsigned char reg_read_8(volatile unsigned char *addr) -{ - return (*addr); -} - - -/* - * Ïò¼ĴæÆ÷ÖÐдһ¸ö32bitµÄÊý¾Ý - * @data ´ýдÈëµÄÊý¾Ý - * @addr ¼ĴæÆ÷µØַ - */ -void reg_write_32(unsigned int data, volatile unsigned int *addr) -{ - *addr = data; -} - - -/* - * ´ӼĴæÆ÷¶Á³öһ¸ö32bitÊý¾Ý - * @addr ¼ĴæÆ÷µØַ - * @ret ¶Á³öµÄÊý¾Ý - */ -unsigned int reg_read_32(volatile unsigned int *addr) -{ - return (*addr); -} - - - -/** - * ffs - find first bit set - * @x: the word to search - * - * This is defined the same way as - * the libc and compiler builtin ffs routines, therefore - * differs in spirit from the above ffz (man ffs). - */ -int ls1c_ffs(int x) -{ - int r = 1; - - if (!x) - return 0; - if (!(x & 0xffff)) { - x >>= 16; - r += 16; - } - if (!(x & 0xff)) { - x >>= 8; - r += 8; - } - if (!(x & 0xf)) { - x >>= 4; - r += 4; - } - if (!(x & 3)) { - x >>= 2; - r += 2; - } - if (!(x & 1)) { - x >>= 1; - r += 1; - } - return r; -} - - -/* - * fls - find last (most-significant) bit set - * @x: the word to search - * - * This is defined the same way as ffs. - * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. - */ -int ls1c_fls(int x) -{ - int r = 32; - - if (!x) - return 0; - if (!(x & 0xffff0000u)) - { - x <<= 16; - r -= 16; - } - if (!(x & 0xff000000u)) - { - x <<= 8; - r -= 8; - } - if (!(x & 0xf0000000u)) - { - x <<= 4; - r -= 4; - } - if (!(x & 0xc0000000u)) - { - x <<= 2; - r -= 2; - } - if (!(x & 0x80000000u)) - { - x <<= 1; - r -= 1; - } - - return r; -} - - diff --git a/bsp/ls1cdev/libraries/ls1c_public.h b/bsp/ls1cdev/libraries/ls1c_public.h deleted file mode 100644 index 5d2390acec..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_public.h +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - -// 一些常用的、共用的接口 - -#ifndef __OPENLOONGSON_PUBLIC_H -#define __OPENLOONGSON_PUBLIC_H - - -#include - - -// pmon提供的打印函数,见main()函数 -struct callvectors { - int (*open) (char *, int, int); - int (*close) (int); - int (*read) (int, void *, int); - int (*write) (int, void *, int); - long long (*lseek) (int, long long, int); - int (*printf) (const char *, ...); - void (*cacheflush) (void); - char *(*gets) (char *); -}; -#define myprintf (*callvec->printf) -#define mygets (*callvec->gets) -extern struct callvectors *callvec; - - -#define MIN(a, b) ((a) > (b) ? (b) : (a)) -#define MAX(a, b) ((a) > (b) ? (a) : (b)) - -#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) - -typedef enum -{ - FALSE=0, - TRUE=1 -}BOOL; - -/* - * 将指定寄存器的指定位置1 - * @reg 寄存器地址 - * @bit 需要置1的那一bit - */ -void reg_set_one_bit(volatile unsigned int *reg, unsigned int bit); - - -/* - * 将指定寄存器的指定位清零 - * @reg 寄存器地址 - * @bit 需要清零的那一bit - */ -void reg_clr_one_bit(volatile unsigned int *reg, unsigned int bit); - - -/* - * 获取指定寄存器的指定位的值 - * @reg 寄存器地址 - * @bit 需要读取值的那一bit - * @ret 指定位的值 - */ -unsigned int reg_get_bit(volatile unsigned int *reg, unsigned int bit); - - -/* - * 向寄存器中写入8bit(一个字节)数据 - * @data 待写入的数据 - * @addr 寄存器地址 - */ -void reg_write_8(unsigned char data, volatile unsigned char *addr); - - -/* - * 从寄存器读出8bit(一个字节)数据 - * @addr 寄存器地址 - * @ret 读出的数据 - */ -unsigned char reg_read_8(volatile unsigned char *addr); - - -/* - * 向寄存器中写一个32bit的数据 - * @data 待写入的数据 - * @addr 寄存器地址 - */ -void reg_write_32(unsigned int data, volatile unsigned int *addr); - - -/* - * 从寄存器读出一个32bit数据 - * @addr 寄存器地址 - * @ret 读出的数据 - */ -unsigned int reg_read_32(volatile unsigned int *addr); - - -/** - * ffs - find first bit set - * @x: the word to search - */ -int ls1c_ffs(int x); - -/* - * fls - find last (most-significant) bit set - * @x: the word to search - * - * This is defined the same way as ffs. - * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. - */ -int ls1c_fls(int x); - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_pwm.c b/bsp/ls1cdev/libraries/ls1c_pwm.c deleted file mode 100644 index b91f81c43b..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_pwm.c +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - -// ·âװӲ¼þpwm½ӿÚ - -#include "ls1c_public.h" -#include "ls1c_pin.h" -#include "ls1c_pwm.h" -#include "ls1c_clock.h" -#include "ls1c_regs.h" - -// pwmµÄ×î´óÖÜÆÚ -#define PWM_MAX_PERIOD (0xFFFFFF) // ¼ÆÊýÆ÷µÄֵ - -/* - * ¸ù¾Ýgpio»ñȡÏàӦpwmµĻùµØַ - * @gpio pwmÒý½Å - * @ret pwm»ùµØַ - */ -unsigned int pwm_get_reg_base(unsigned int gpio) -{ - unsigned int reg_base = 0; - - switch (gpio) - { - case LS1C_PWM0_GPIO06: - case LS1C_PWM0_GPIO04: - reg_base = LS1C_REG_BASE_PWM0; - break; - - case LS1C_PWM1_GPIO92: - case LS1C_PWM1_GPIO05: - reg_base = LS1C_REG_BASE_PWM1; - break; - - case LS1C_PWM2_GPIO52: - case LS1C_PWM2_GPIO46: - reg_base = LS1C_REG_BASE_PWM2; - break; - - case LS1C_PWM3_GPIO47: - case LS1C_PWM3_GPIO53: - reg_base = LS1C_REG_BASE_PWM3; - break; - } - - return reg_base; -} - - -/* - * ½ûֹpwm - * @pwm_info PWMnµÄÏêϸÐÅϢ - */ -void pwm_disable(pwm_info_t *pwm_info) -{ - unsigned int pwm_reg_base = 0; - - // ¼ì²éÈë²Î - if (NULL == pwm_info) - { - return ; - } - - pwm_reg_base = pwm_get_reg_base(pwm_info->gpio); - reg_write_32(0, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CTRL)); - - return ; -} - - - -/* - * ʹÄÜPWM - * @pwm_info PWMnµÄÏêϸÐÅϢ - */ -void pwm_enable(pwm_info_t *pwm_info) -{ - unsigned int pwm_reg_base = 0; - unsigned int ctrl = 0; - - // ¼ì²éÈë²Î - if (NULL == pwm_info) - { - return ; - } - - // »ñȡ»ùµØַ - pwm_reg_base = pwm_get_reg_base(pwm_info->gpio); - - // ÇåÁã¼ÆÊýÆ÷ - reg_write_32(0, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CNTR)); - - // ÉèÖÿØÖƼĴæÆ÷ - ctrl = (0 << LS1C_PWM_INT_LRC_EN) - | (0 << LS1C_PWM_INT_HRC_EN) - | (0 << LS1C_PWM_CNTR_RST) - | (0 << LS1C_PWM_INT_SR) - | (0 << LS1C_PWM_INTEN) - | (0 << LS1C_PWM_OE) - | (1 << LS1C_PWM_CNT_EN); - if (PWM_MODE_PULSE == pwm_info->mode) // µ¥Âö³å - { - ctrl |= (1 << LS1C_PWM_SINGLE); - } - else // Á¬ÐøÂö³å - { - ctrl &= ~(1 << LS1C_PWM_SINGLE); - } - reg_write_32(ctrl, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_CTRL)); - - return ; -} - - - -/* - * ³õʼ»¯PWMn - * @pwm_info PWMnµÄÏêϸÐÅϢ - */ -void pwm_init(pwm_info_t *pwm_info) -{ - unsigned int gpio; - unsigned long pwm_clk = 0; // pwmģ¿éµÄʱÖÓƵÂÊ - unsigned long tmp = 0; - unsigned int pwm_reg_base = 0; - unsigned long period = 0; - - // ÅжÏÈë²Î - if (NULL == pwm_info) - { - // Èë²ηǷ¨£¬Ôòֱ½ӷµ»Ø - return ; - } - gpio = pwm_info->gpio; - - // ÅäÖÃÏàӦÒý½ÅÓÃ×÷pwm£¬¶ø·Çgpio - pin_set_purpose(gpio, PIN_PURPOSE_OTHER); - - // ¸´Óà - switch (gpio) - { - // ²»ÐèҪ¸´Óà - case LS1C_PWM0_GPIO06: - case LS1C_PWM1_GPIO92: - break; - - case LS1C_PWM0_GPIO04: // gpio04µĵÚÈý¸´Óà - pin_set_remap(LS1C_PWM0_GPIO04, PIN_REMAP_THIRD); - break; - - case LS1C_PWM1_GPIO05: // gpio05µĵÚÈý¸´Óà - pin_set_remap(LS1C_PWM1_GPIO05, PIN_REMAP_THIRD); - break; - - case LS1C_PWM2_GPIO52: // gpio52µĵÚËĸ´Óà - pin_set_remap(LS1C_PWM2_GPIO52, PIN_REMAP_FOURTH); - break; - - case LS1C_PWM2_GPIO46: // gpio46µĵÚËĸ´Óà - pin_set_remap(LS1C_PWM2_GPIO46, PIN_REMAP_FOURTH); - break; - - case LS1C_PWM3_GPIO47: // gpio47µĵÚËĸ´Óà - pin_set_remap(LS1C_PWM3_GPIO47, PIN_REMAP_FOURTH); - break; - - case LS1C_PWM3_GPIO53: // gpio53µĵÚËĸ´Óà - pin_set_remap(LS1C_PWM3_GPIO53, PIN_REMAP_FOURTH); - break; - - default: - break; - } - - // ¸ù¾Ýռ¿ձȺÍpwmÖÜÆڼÆËã¼ĴæÆ÷HRCºÍLRCµÄֵ - // Á½¸ö64λÊýÏà³ˣ¬ֻÄܵõ½µÍ32룬linuxÏÂȴ¿ÉÒԵõ½64λ½á¹û£¬ - // Ôݲ»Çå³þԭÒò£¬Óø¡µãÔËËã´úÌæ - pwm_clk = clk_get_apb_rate(); - period = (1.0 * pwm_clk * pwm_info->period_ns) / 1000000000; - period = MIN(period, PWM_MAX_PERIOD); // ÏÞÖÆÖÜÆڲ»Äܳ¬¹ý×î´óֵ - tmp = period - (period * pwm_info->duty); - - // д¼ĴæÆ÷HRCºÍLRC - pwm_reg_base = pwm_get_reg_base(gpio); - reg_write_32(--tmp, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_HRC)); - reg_write_32(--period, (volatile unsigned int *)(pwm_reg_base + LS1C_PWM_LRC)); - - // дÖ÷¼ÆÊýÆ÷ - pwm_enable(pwm_info); - - return ; -} - diff --git a/bsp/ls1cdev/libraries/ls1c_pwm.h b/bsp/ls1cdev/libraries/ls1c_pwm.h deleted file mode 100644 index 865a2ddf1d..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_pwm.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 ÇÚΪ±¾ first version - */ - - -#ifndef __OPENLOONGSON_PWM_H -#define __OPENLOONGSON_PWM_H - - -// pwmÒý½Ŷ¨Òå -#define LS1C_PWM0_GPIO06 (6) // gpio06ÓÃ×÷pwm0 -#define LS1C_PWM0_GPIO04 (4) // gpio04¸´ÓÃΪpwm0 -#define LS1C_PWM1_GPIO92 (92) // gpio92ÓÃ×÷pwm1 -#define LS1C_PWM1_GPIO05 (5) // gpio05¸´ÓÃΪpwm1 -#define LS1C_PWM2_GPIO52 (52) // gpio52¸´ÓÃΪpwm2 -#define LS1C_PWM2_GPIO46 (46) // gpio46¸´ÓÃΪpwm2 -#define LS1C_PWM3_GPIO47 (47) // gpio47¸´ÓÃΪpwm3 -#define LS1C_PWM3_GPIO53 (53) // gpio53¸´ÓÃΪpwm3 -// ...»¹ÓÐһЩgpio¿ÉÒԸ´ÓÃΪgpioµģ¬ÓÐÐèҪ¿ÉÒÔ×ԼºÌí¼Ó - - - -// pwm¿ØÖƼĴæÆ÷µÄÿ¸öbit -#define LS1C_PWM_INT_LRC_EN (11) // µÍÂö³å¼ÆÊýÆ÷ÖжÏʹÄÜ -#define LS1C_PWM_INT_HRC_EN (10) // ¸ßÂö³å¼ÆÊýÆ÷ÖжÏʹÄÜ -#define LS1C_PWM_CNTR_RST (7) // ʹÄÜCNTR¼ÆÊýÆ÷ÇåÁã -#define LS1C_PWM_INT_SR (6) // ÖжÏ״̬λ -#define LS1C_PWM_INTEN (5) // ÖжÏʹÄÜλ -#define LS1C_PWM_SINGLE (4) // µ¥Âö³å¿ØÖÆλ -#define LS1C_PWM_OE (3) // Âö³åÊä³öʹÄÜ -#define LS1C_PWM_CNT_EN (0) // Ö÷¼ÆÊýÆ÷ʹÄÜ - - -// Ӳ¼þpwm¹¤×÷ģʽ -enum -{ - // Õý³£ģʽ--Á¬ÐøÊä³öpwm²¨ÐÎ - PWM_MODE_NORMAL = 0, - - // µ¥Âö³åģʽ£¬ÿ´ε÷ÓÃֻ·¢ËÍһ¸öÂö³壬µ÷Óüä¸ô±ØÐë´óÓÚpwmÖÜÆÚ - PWM_MODE_PULSE -}; - - -// Ӳ¼þpwmÐÅϢ -typedef struct -{ - unsigned int gpio; // PWMnËùÔڵÄgpio - unsigned int mode; // ¹¤×÷ģʽ(µ¥Âö³塢Á¬ÐøÂö³å) - float duty; // pwmµÄռ¿ձÈ - unsigned long period_ns; // pwmÖÜÆÚ(µ¥λns) -}pwm_info_t; - - - - -/* - * ³õʼ»¯PWMn - * @pwm_info PWMnµÄÏêϸÐÅϢ - */ -void pwm_init(pwm_info_t *pwm_info); - - -/* - * ½ûֹpwm - * @pwm_info PWMnµÄÏêϸÐÅϢ - */ -void pwm_disable(pwm_info_t *pwm_info); - - - -/* - * ʹÄÜPWM - * @pwm_info PWMnµÄÏêϸÐÅϢ - */ -void pwm_enable(pwm_info_t *pwm_info); - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_regs.h b/bsp/ls1cdev/libraries/ls1c_regs.h deleted file mode 100644 index 7947c2bfe0..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_regs.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - */ - -// 龙芯1c外设寄存器 - - -#ifndef __OPENLOONGSON_LS1C_REGS_H -#define __OPENLOONGSON_LS1C_REGS_H - - - - -// 时钟相关寄存器地址 -#define LS1C_START_FREQ (0xbfe78030) -#define LS1C_CLK_DIV_PARAM (0xbfe78034) - - -// gpio相关寄存器地址 -#define LS1C_GPIO_CFG0 (0xbfd010c0) -#define LS1C_GPIO_EN0 (0xbfd010d0) -#define LS1C_GPIO_IN0 (0xbfd010e0) -#define LS1C_GPIO_OUT0 (0xbfd010f0) - -#define LS1C_GPIO_CFG1 (0xbfd010c4) -#define LS1C_GPIO_EN1 (0xbfd010d4) -#define LS1C_GPIO_IN1 (0xbfd010e4) -#define LS1C_GPIO_OUT1 (0xbfd010f4) - -#define LS1C_GPIO_CFG2 (0xbfd010c8) -#define LS1C_GPIO_EN2 (0xbfd010d8) -#define LS1C_GPIO_IN2 (0xbfd010e8) -#define LS1C_GPIO_OUT2 (0xbfd010f8) - -#define LS1C_GPIO_CFG3 (0xbfd010cc) -#define LS1C_GPIO_EN3 (0xbfd010dc) -#define LS1C_GPIO_IN3 (0xbfd010ec) -#define LS1C_GPIO_OUT3 (0xbfd010fc) - - - -// 复用相关寄存器 -#define LS1C_CBUS_FIRST0 (0xbfd011c0) -#define LS1C_CBUS_SECOND0 (0xbfd011d0) -#define LS1C_CBUS_THIRD0 (0xbfd011e0) -#define LS1C_CBUS_FOURTH0 (0xbfd011f0) -#define LS1C_CBUS_FIFTH0 (0xbfd01200) - -#define LS1C_CBUS_FIRST1 (0xbfd011c4) -#define LS1C_CBUS_SECOND1 (0xbfd011d4) -#define LS1C_CBUS_THIRD1 (0xbfd011e4) -#define LS1C_CBUS_FOURTH1 (0xbfd011f4) -#define LS1C_CBUS_FIFTH1 (0xbfd01204) - -#define LS1C_CBUS_FIRST2 (0xbfd011c8) -#define LS1C_CBUS_SECOND2 (0xbfd011d8) -#define LS1C_CBUS_THIRD2 (0xbfd011e8) -#define LS1C_CBUS_FOURTH2 (0xbfd011f8) -#define LS1C_CBUS_FIFTH2 (0xbfd01208) - -#define LS1C_CBUS_FIRST3 (0xbfd011cc) -#define LS1C_CBUS_SECOND3 (0xbfd011dc) -#define LS1C_CBUS_THIRD3 (0xbfd011ec) -#define LS1C_CBUS_FOURTH3 (0xbfd011fc) -#define LS1C_CBUS_FIFTH3 (0xbfd0120c) - - -// PWM寄存器偏移 -#define LS1C_PWM_CNTR (0x0) -#define LS1C_PWM_HRC (0x4) -#define LS1C_PWM_LRC (0x8) -#define LS1C_PWM_CTRL (0xC) -// PWM基地址 -#define LS1C_REG_BASE_PWM0 (0xbfe5c000) -#define LS1C_REG_BASE_PWM1 (0xbfe5c010) -#define LS1C_REG_BASE_PWM2 (0xbfe5c020) -#define LS1C_REG_BASE_PWM3 (0xbfe5c030) - -//CAN基地址 -#define LS1C_REG_BASE_CAN0 (0xbfe50000) -#define LS1C_REG_BASE_CAN1 (0xbfe54000) - -// 中断配置寄存器 -#define LS1C_INT0_SR (0xbfd01040) -#define LS1C_INT0_EN (0xbfd01044) -#define LS1C_INT0_SET (0xbfd01048) -#define LS1C_INT0_CLR (0xbfd0104c) -#define LS1C_INT0_POL (0xbfd01050) -#define LS1C_INT0_EDGE (0xbfd01054) - -#define LS1c_INT1_SR (0xbfd01058) -#define LS1C_INT1_EN (0xbfd0105c) -#define LS1C_INT1_SET (0xbfd01060) -#define LS1C_INT1_CLR (0xbfd01064) -#define LS1C_INT1_POL (0xbfd01068) -#define LS1C_INT1_EDGE (0xbfd0106c) - -#define LS1C_INT2_SR (0xbfd01070) -#define LS1C_INT2_EN (0xbfd01074) -#define LS1C_INT2_SET (0xbfd01078) -#define LS1C_INT2_CLR (0xbfd0107c) -#define LS1C_INT2_POL (0xbfd01080) -#define LS1C_INT2_EDGE (0xbfd01084) - -#define LS1C_INT3_SR (0xbfd01088) -#define LS1C_INT3_EN (0xbfd0108c) -#define LS1C_INT3_SET (0xbfd01090) -#define LS1C_INT3_CLR (0xbfd01094) -#define LS1C_INT3_POL (0xbfd01098) -#define LS1C_INT3_EDGE (0xbfd0109c) - -#define LS1C_INT4_SR (0xbfd010a0) -#define LS1C_INT4_EN (0xbfd010a4) -#define LS1C_INT4_SET (0xbfd010a8) -#define LS1C_INT4_CLR (0xbfd010ac) -#define LS1C_INT4_POL (0xbfd010b0) -#define LS1C_INT4_EDGE (0xbfd010b4) - - -// I2C寄存器 -#define LS1C_I2C0_BASE (0xbfe58000) -#define LS1C_I2C1_BASE (0xbfe68000) -#define LS1C_I2C2_BASE (0xbfe70000) - - -// SPI寄存器 -#define LS1C_SPI0_BASE (0xbfe80000) -#define LS1C_SPI1_BASE (0xbfec0000) - - -// 串口寄存器 -#define LS1C_UART00_BASE (0xbfe40000) -#define LS1C_UART01_BASE (0xbfe41000) -#define LS1C_UART1_BASE (0xbfe44000) -#define LS1C_UART2_BASE (0xbfe48000) -#define LS1C_UART3_BASE (0xbfe4c000) -#define LS1C_UART4_BASE (0xbfe4c400) -#define LS1C_UART5_BASE (0xbfe4c500) -#define LS1C_UART6_BASE (0xbfe4c600) -#define LS1C_UART7_BASE (0xbfe4c700) -#define LS1C_UART8_BASE (0xbfe4c800) -#define LS1C_UART9_BASE (0xbfe4c900) -#define LS1C_UART10_BASE (0xbfe4ca00) -#define LS1C_UART11_BASE (0xbfe4cb00) - -//RTC寄存器 -#define LS1C_RTC_BASE (0xbfe64024) - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_rtc.c b/bsp/ls1cdev/libraries/ls1c_rtc.c deleted file mode 100644 index 838f6a85c1..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_rtc.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-06 sundm75 first version - */ -#include "ls1c.h" -#include "ls1c_public.h" -#include "ls1c_rtc.h" - -#define LS1C_SEC_OFFSET (4) -#define LS1C_MIN_OFFSET (10) -#define LS1C_HOUR_OFFSET (16) -#define LS1C_DAY_OFFSET (21) -#define LS1C_MONTH_OFFSET (26) - -#define LS1C_SEC_MASK (0x3f) -#define LS1C_MIN_MASK (0x3f) -#define LS1C_HOUR_MASK (0x1f) -#define LS1C_DAY_MASK (0x1f) -#define LS1C_MONTH_MASK (0x3f) -#define LS1C_YEAR_MASK (0xff) - -#define ls1c_get_sec(t) (((t) >> LS1C_SEC_OFFSET) & LS1C_SEC_MASK) -#define ls1c_get_min(t) (((t) >> LS1C_MIN_OFFSET) & LS1C_MIN_MASK) -#define ls1c_get_hour(t) (((t) >> LS1C_HOUR_OFFSET) & LS1C_HOUR_MASK) -#define ls1c_get_day(t) (((t) >> LS1C_DAY_OFFSET) & LS1C_DAY_MASK) -#define ls1c_get_month(t) (((t) >> LS1C_MONTH_OFFSET) & LS1C_MONTH_MASK) - -int RTC_SetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime) -{ - - hrtc->SYS_TOYWRITE0 - = (sTime->Month << LS1C_MONTH_OFFSET) - | (sTime->Date << LS1C_DAY_OFFSET) - | (sTime->Hours << LS1C_HOUR_OFFSET) - | (sTime->Minutes << LS1C_MIN_OFFSET) - | (sTime->Seconds << LS1C_SEC_OFFSET); - hrtc->SYS_TOYWRITE1 = sTime->Year % 100; - printf("\r\ntoy_read0 = 0x%x, toy_read1 = 0x%x.\r\n", hrtc->SYS_TOYREAD0, hrtc->SYS_TOYREAD1); - - return 0; -} - -int RTC_GetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime) -{ - unsigned long toy_read0, toy_read1; - toy_read0 = hrtc->SYS_TOYREAD0; - toy_read1 = hrtc->SYS_TOYREAD1; - sTime->Seconds = ls1c_get_sec(toy_read0); - sTime->Minutes = ls1c_get_min(toy_read0); - sTime->Hours = ls1c_get_hour(toy_read0); - sTime->Date = ls1c_get_day(toy_read0); - sTime->Month = ls1c_get_month(toy_read0); - sTime->Year = toy_read1 & LS1C_YEAR_MASK; - return 0 ; -} - -unsigned char RTC_IsLeapYear(unsigned int nYear) -{ - if((nYear % 4U) != 0U) - { - return 0U; - } - - if((nYear % 100U) != 0U) - { - return 1U; - } - - if((nYear % 400U) == 0U) - { - return 1U; - } - else - { - return 0U; - } -} - -unsigned char RTC_WeekDayNum(unsigned long nYear, unsigned char nMonth, unsigned char nDay) -{ - unsigned long year = 0U, weekday = 0U; - - year = 2000U + nYear; - - if(nMonth < 3U) - { - /*D = { [(23 x month)/9] + day + 4 + year + [(year-1)/4] - [(year-1)/100] + [(year-1)/400] } mod 7*/ - weekday = (((23U * nMonth)/9U) + nDay + 4U + year + ((year-1U)/4U) - ((year-1U)/100U) + ((year-1U)/400U)) % 7U; - } - else - { - /*D = { [(23 x month)/9] + day + 4 + year + [year/4] - [year/100] + [year/400] - 2 } mod 7*/ - weekday = (((23U * nMonth)/9U) + nDay + 4U + year + (year/4U) - (year/100U) + (year/400U) - 2U ) % 7U; - } - - return (unsigned char)weekday; -} diff --git a/bsp/ls1cdev/libraries/ls1c_rtc.h b/bsp/ls1cdev/libraries/ls1c_rtc.h deleted file mode 100644 index dee8000d6b..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_rtc.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-05-06 sundm75 first version - */ - - #ifndef __OPENLOONGSON_RTC_H -#define __OPENLOONGSON_RTC_H - - -#define RTC ( (RTC_TypeDef* )LS1C_RTC_BASE) - -typedef struct -{ - unsigned char Year; /*0 ~ 99 */ - unsigned char Month; /*1 ~ 12 */ - unsigned char Date; /*1 ~ 31 */ - unsigned char Hours; /*0 ~ 23 */ - unsigned char Minutes; /*0 ~ 59 */ - unsigned char Seconds; /*0 ~ 59 */ -}RTC_TimeTypeDef; - -typedef struct -{ - unsigned long SYS_TOYWRITE0; - unsigned long SYS_TOYWRITE1; - unsigned long SYS_TOYREAD0; - unsigned long SYS_TOYREAD1; -} RTC_TypeDef; - -int RTC_SetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime); -int RTC_GetTime(RTC_TypeDef *hrtc, RTC_TimeTypeDef *sTime); - -unsigned char RTC_IsLeapYear(unsigned int nYear); -unsigned char RTC_WeekDayNum(unsigned long nYear, unsigned char nMonth, unsigned char nDay); - -#endif diff --git a/bsp/ls1cdev/libraries/ls1c_spi.c b/bsp/ls1cdev/libraries/ls1c_spi.c deleted file mode 100644 index 6ad39d964c..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_spi.c +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-10-23 勤为本 first version - */ - -// 硬件spi接口源文件 - -#include -#include "ls1c_public.h" -#include "ls1c_regs.h" -#include "ls1c_clock.h" -#include "ls1c_spi.h" - - - - -/* - * 获取指定SPI模块的基地址 - * @SPIx SPI模块的编号 - */ -void *ls1c_spi_get_base(unsigned char SPIx) -{ - void *base = NULL; - - switch (SPIx) - { - case LS1C_SPI_0: - base = (void *)LS1C_SPI0_BASE; - break; - - case LS1C_SPI_1: - base = (void *)LS1C_SPI1_BASE; - break; - - default: - base = NULL; - break; - } - - return base; -} - - -/* - * 打印指定SPI模块的所有寄存器的值 - * @spi_base 基地址 - */ -void ls1c_spi_print_all_regs_info(void *spi_base) -{ - printf("[%s] SPCR=0x%x, SPSR=0x%x, SPER=0x%x, SFC_PARAM=0x%x, SFC_SOFTCS=0x%x, SFC_TIMING=0x%x\r\n", - __FUNCTION__, - reg_read_8(spi_base + LS1C_SPI_SPCR_OFFSET), - reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET), - reg_read_8(spi_base + LS1C_SPI_SPER_OFFSET), - reg_read_8(spi_base + LS1C_SPI_SFC_PARAM_OFFSET), - reg_read_8(spi_base + LS1C_SPI_SFC_SOFTCS_OFFSET), - reg_read_8(spi_base + LS1C_SPI_SFC_TIMING_OFFSET)); - - return ; -} - - -/* - * 根据SPI时钟频率计算分频系数 - * @max_speed_hz SPI最大通信速度 - * @ret 分频系数 - */ -unsigned int ls1c_spi_get_div(unsigned int max_speed_hz) -{ - unsigned long clk = 0; - unsigned int div = 0; - unsigned int div_tmp = 0; - unsigned int bit = 0; - - clk = clk_get_apb_rate(); - div = DIV_ROUND_UP(clk, max_speed_hz); - - if (div < 2) - div = 2; - - if (div > 4096) - div = 4096; - - bit = ls1c_fls(div) - 1; - switch (1 << bit) - { - case 16: - div_tmp = 2; - if (div > (1 << bit)) - { - div_tmp++; - } - break; - - case 32: - div_tmp = 3; - if (div > (1 << bit)) - { - div_tmp += 2; - } - break; - - case 8: - div_tmp = 4; - if (div > (1 << bit)) - { - div_tmp -= 2; - } - break; - - default: - div_tmp = bit - 1; - if (div > (1 << bit)) - { - div_tmp++; - } - break; - } -/* - printf("[%s] clk=%ld, max_speed_hz=%d, div_tmp=%d, bit=%d\r\n", - __FUNCTION__, clk, max_speed_hz, div_tmp, bit); -*/ - return div_tmp; -} - - -/* - * 设置时钟 - * @spi_base 基地址 - * @max_hz 最大频率,单位hz - */ -void ls1c_spi_set_clock(void *spi_base, unsigned long max_hz) -{ - unsigned int div = 0; - unsigned char val = 0; - - // 获取分频系数 - div = ls1c_spi_get_div(max_hz); - - // 设置spr - val = reg_read_8(spi_base + LS1C_SPI_SPCR_OFFSET); - val &= (~LS1C_SPI_SPCR_SPR_MASK); // spr清零 - val |= (div & LS1C_SPI_SPCR_SPR_MASK); // 设置新的spr - reg_write_8(val, spi_base + LS1C_SPI_SPCR_OFFSET); - - // 设置spre - val = reg_read_8(spi_base + LS1C_SPI_SPER_OFFSET); - val &= (~LS1C_SPI_SPER_SPRE_MASK); // spre清零 - val |= ((div >> 2) & LS1C_SPI_SPER_SPRE_MASK); // 设置新的spre - reg_write_8(val, spi_base + LS1C_SPI_SPER_OFFSET); - - return ; -} - - -/* - * 设置通信模式(时钟极性和相位) - * @spi_base 基地址 - * @cpol 时钟极性 - * @cpha 时钟相位 - */ -void ls1c_spi_set_mode(void *spi_base, unsigned char cpol, unsigned char cpha) -{ - unsigned char val = 0; - - val = reg_read_8(spi_base + LS1C_SPI_SPCR_OFFSET); - - // 设置时钟极性--cpol - val &= (~LS1C_SPI_SPCR_CPOL_MASK); // cpol清0 - val |= (cpol << LS1C_SPI_SPCR_CPOL_BIT); // 写入新的cpol - - // 设置时钟相位--cpha - val &= (~LS1C_SPI_SPCR_CPHA_MASK); // cpha清0 - val |= (cpha << LS1C_SPI_SPCR_CPHA_BIT); // 写入新的cpha - - reg_write_8(val, spi_base + LS1C_SPI_SPCR_OFFSET); - - return ; -} - - -/* - * 设置指定片选为指定状态 - * @spi_base 基地址 - * @cs 片选 - * @new_status 片选引脚的新状态,取值为0或1,即高电平或低电平 - */ -void ls1c_spi_set_cs(void *spi_base, unsigned char cs, int new_status) -{ - unsigned char val = 0; - - val = reg_read_8(spi_base + LS1C_SPI_SFC_SOFTCS_OFFSET); - val |= 0x01 << cs ; //对应的csen=1 - if (new_status) // cs = 1 - { - val |= (0x10 << cs); // 指定csn=1 - } - else // cs = 0 - { - val &= ~(0x10 << cs); // 指定csn=0 - } - reg_write_8(val, spi_base + LS1C_SPI_SFC_SOFTCS_OFFSET); - - return ; -} - - -/* - * 等待收发完成 - * @spi_base 基地址 - */ -void ls1c_spi_wait_txrx_done(void *spi_base) -{ - int timeout = LS1C_SPI_TX_TIMEOUT; - - while (timeout--) - { - if (LS1C_SPI_SPSR_SPIF_MASK & reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET)) - break; - } - - return ; -} - - -/* - * 清中断和标志位 - * @spi_base 基地址 - */ -void ls1c_spi_clear(void *spi_base) -{ - unsigned char val = 0; - - // 清中断 - val = reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET); - val |= LS1C_SPI_SPSR_SPIF_MASK; - reg_write_8(val, spi_base + LS1C_SPI_SPSR_OFFSET); - - // 清溢出标志位(Write-Collision Clear) - val = reg_read_8(spi_base + LS1C_SPI_SPSR_OFFSET); - if (LS1C_SPI_SPSR_WCOL_MASK & val) - { - printf("[%s] clear register SPSR's wcol!\r\n"); // 手册和linux源码中不一样,加个打印看看 - reg_write_8(val & ~LS1C_SPI_SPSR_WCOL_MASK, spi_base + LS1C_SPI_SPSR_OFFSET); // 写0,linux源码中是写0 -// reg_write_8(val | LS1C_SPI_SPSR_WCOL_MASK, spi_base + LS1C_SPI_SPSR_OFFSET); // 写1,按照1c手册,应该写1 - } - - return ; -} - - - -/* - * 通过指定SPI发送接收一个字节 - * 注意,在多任务的系统中,此函数需要互斥。 - * 即保证在和某个从设备收发某个字节的过程中,不能被切换到其它任务同时与另外的在同一个SPI总线上的从设备通信 - * 因为龙芯1c的每路SPI上可能接有不同的从设备,通信频率、模式等可能不同 - * @spi_base 基地址 - * @tx_ch 待发送的数据 - * @ret 收到的数据 - */ -unsigned char ls1c_spi_txrx_byte(void *spi_base, unsigned char tx_ch) -{ - unsigned char rx_ch = 0; - - // 收发数据 - reg_write_8(tx_ch, spi_base + LS1C_SPI_TxFIFO_OFFSET); // 开始发送 - ls1c_spi_wait_txrx_done(spi_base); // 等待收发完成 - rx_ch = reg_read_8(spi_base + LS1C_SPI_RxFIFO_OFFSET); // 读取收到的数据 - ls1c_spi_clear(spi_base); // 清中断和标志位 - - return rx_ch; -} - - - diff --git a/bsp/ls1cdev/libraries/ls1c_spi.h b/bsp/ls1cdev/libraries/ls1c_spi.h deleted file mode 100644 index bd02dd8d17..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_spi.h +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-10-23 勤为本 first version - */ - -// 硬件spi接口的头文件 - -#ifndef __OPENLOONGSON_SPI_H -#define __OPENLOONGSON_SPI_H - - -// SPI模块编号 -#define LS1C_SPI_0 (0) -#define LS1C_SPI_1 (1) - -// 片选 -#define LS1C_SPI_CS_0 (0) -#define LS1C_SPI_CS_1 (1) -#define LS1C_SPI_CS_2 (2) -#define LS1C_SPI_CS_3 (3) - -// 时钟极性和相位 -#define SPI_CPOL_1 (1) -#define SPI_CPOL_0 (0) -#define SPI_CPHA_1 (1) -#define SPI_CPHA_0 (0) - - -// 寄存器偏移 -#define LS1C_SPI_SPCR_OFFSET (0) // 控制寄存器 -#define LS1C_SPI_SPSR_OFFSET (1) // 状态寄存器 -#define LS1C_SPI_TxFIFO_OFFSET (2) // 发送的数据寄存器,与接收数据寄存器的偏移相同 -#define LS1C_SPI_RxFIFO_OFFSET (2) // 接收的数据寄存器,与发送数据寄存器的偏移相同 -#define LS1C_SPI_SPER_OFFSET (3) // 外部寄存器 -#define LS1C_SPI_SFC_PARAM_OFFSET (4) // 参数控制寄存器 -#define LS1C_SPI_SFC_SOFTCS_OFFSET (5) // 片选控制寄存器 -#define LS1C_SPI_SFC_TIMING_OFFSET (6) // 时序控制寄存器 - -// 寄存器SPCR中的位域 -#define LS1C_SPI_SPCR_SPIE_BIT (7) -#define LS1C_SPI_SPCR_SPIE_MASK (0x01 << LS1C_SPI_SPCR_SPIE_BIT) -#define LS1C_SPI_SPCR_SPE_BIT (6) -#define LS1C_SPI_SPCR_SPE_MASK (0x01 << LS1C_SPI_SPCR_SPE_BIT) -#define LS1C_SPI_SPCR_CPOL_BIT (3) -#define LS1C_SPI_SPCR_CPOL_MASK (0x01 << LS1C_SPI_SPCR_CPOL_BIT) -#define LS1C_SPI_SPCR_CPHA_BIT (2) -#define LS1C_SPI_SPCR_CPHA_MASK (0x01 << LS1C_SPI_SPCR_CPHA_BIT) -#define LS1C_SPI_SPCR_SPR_BIT (0) -#define LS1C_SPI_SPCR_SPR_MASK (0x03 << LS1C_SPI_SPCR_SPR_BIT) - -// 寄存器SPSR中的位域 -#define LS1C_SPI_SPSR_SPIF_BIT (7) -#define LS1C_SPI_SPSR_SPIF_MASK (0x01 << LS1C_SPI_SPSR_SPIF_BIT) -#define LS1C_SPI_SPSR_WCOL_BIT (6) -#define LS1C_SPI_SPSR_WCOL_MASK (0x01 << LS1C_SPI_SPSR_WCOL_BIT) - -// 寄存器SPER中的位域 -#define LS1C_SPI_SPER_SPRE_BIT (0) -#define LS1C_SPI_SPER_SPRE_MASK (0x3 << LS1C_SPI_SPER_SPRE_BIT) - -// 寄存器SFC_SOFTCS的位域 -#define LS1C_SPI_SFC_SOFTCS_CSN_BIT (4) -#define LS1C_SPI_SFC_SOFTCS_CSN_MASK (0x0f << LS1C_SPI_SFC_SOFTCS_CSN_BIT) -#define LS1C_SPI_SFC_SOFTCS_CSEN_BIT (0) -#define LS1C_SPI_SFC_SOFTCS_CSEN_MASK (0x0f << LS1C_SPI_SFC_SOFTCS_CSEN_BIT) - -// 发送超时的门限值 -#define LS1C_SPI_TX_TIMEOUT (20000) - - - -/* - * 获取指定SPI模块的基地址 - * @SPIx SPI模块的编号 - */ -void *ls1c_spi_get_base(unsigned char SPIx); - - -/* - * 设置时钟 - * @spi_base 基地址 - * @max_hz 最大频率,单位hz - */ -void ls1c_spi_set_clock(void *spi_base, unsigned long max_hz); - - -/* - * 设置通信模式(时钟极性和相位) - * @spi_base 基地址 - * @cpol 时钟极性 - * @cpha 时钟相位 - */ -void ls1c_spi_set_mode(void *spi_base, unsigned char cpol, unsigned char cpha); - - -/* - * 设置指定片选为指定状态 - * @spi_base 基地址 - * @cs 片选 - * @new_status 片选引脚的新状态,取值为0或1,即高电平或低电平 - */ -void ls1c_spi_set_cs(void *spi_base, unsigned char cs, int new_status); - - -/* - * 通过指定SPI发送接收一个字节 - * 注意,在多任务的系统中,此函数需要互斥。 - * 即保证在和某个从设备收发某个字节的过程中,不能被切换到其它任务同时与另外的在同一个SPI总线上的从设备通信 - * 因为龙芯1c的每路SPI上可能接有不同的从设备,通信频率、模式等可能不同 - * @spi_base 基地址 - * @tx_ch 待发送的数据 - * @ret 收到的数据 - */ -unsigned char ls1c_spi_txrx_byte(void *spi_base, unsigned char tx_ch); - - -/* - * 打印指定SPI模块的所有寄存器的值 - * @spi_base 基地址 - */ -void ls1c_spi_print_all_regs_info(void *spi_base); - - - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_timer.c b/bsp/ls1cdev/libraries/ls1c_timer.c deleted file mode 100644 index 11cadf18aa..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_timer.c +++ /dev/null @@ -1,301 +0,0 @@ - /* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * first version - */ -// Ӳ¼þ¶¨ʱÆ÷ԴÂë - -#include -#include "ls1c_public.h" -#include "ls1c_pin.h" -#include "ls1c_clock.h" -#include "ls1c_regs.h" -#include "ls1c_pwm.h" -#include "ls1c_timer.h" - - -// ¶¨ʱÆ÷ÖмÆÊýÆ÷(CNTR¡¢HRCºÍLRC)µÄ×î´óֵ -#define TIMER_COUNTER_MAX (0xffffff) - - - -/* - * »ñȡָ¶¨¶¨ʱÆ÷µļĴæÆ÷»ùµØַ - * @timer Ӳ¼þ¶¨ʱÆ÷ - * @ret »ùµØַ - */ -unsigned int timer_get_reg_base(ls1c_timer_t timer) -{ - unsigned int reg_base = 0; - - switch (timer) - { - case TIMER_PWM0: - reg_base = LS1C_REG_BASE_PWM0; - break; - - case TIMER_PWM1: - reg_base = LS1C_REG_BASE_PWM1; - break; - - case TIMER_PWM2: - reg_base = LS1C_REG_BASE_PWM2; - break; - - case TIMER_PWM3: - reg_base = LS1C_REG_BASE_PWM3; - break; - } - - return reg_base; -} - - -/* - * ³õʼ»¯¶¨ʱÆ÷£¬²¢¿ªʼ¶¨ʱ - * @timer_info ¶¨ʱÆ÷ºͶ¨ʱʱ¼äÐÅϢ - */ -void timer_init(timer_info_t *timer_info) -{ - unsigned int timer_reg_base = 0; // ¼ĴæÆ÷»ùµØַ - unsigned long timer_clk = 0; // Ӳ¼þ¶¨ʱÆ÷µÄʱÖÓ - unsigned long tmp; - unsigned int ctrl = 0; // ¿ØÖƼĴæÆ÷ÖеĿØÖÆÐÅϢ - - // ÅжÏÈë²Î - if (NULL == timer_info) - { - return ; - } - - /* - * °Ѷ¨ʱʱ¼任ËãΪ¼ÆÊýÆ÷µÄֵ - * ¼ÆÊýÆ÷ֵ = ¶¨ʱÆ÷µÄʱÖÓ * ¶¨ʱʱ¼ä(µ¥λns) / 1000000000 - * Áúо1cµĶ¨ʱÆ÷ʱÖÓΪAPBʱÖӣ¬´ﵽ126Mhz£¬ - * Ϊ±ÜÃâ¼ÆËã¹ý³̷¢ÉúÒç³ö£¬ÕâÀï²ÉÓÃÊֶ¯ÓݝÉÏÃæµļÆËãʽ£¬Ҳ¿ÉÒԲÉÓø¡µãÔËËã - */ - timer_clk = clk_get_apb_rate(); - tmp = (timer_clk / 1000000) * (timer_info->time_ns / 1000); // ½«1000000000²ð·ÖΪ1000000ºÍ1000 - tmp = MIN(tmp, TIMER_COUNTER_MAX); - - // ¿ØÖƼĴæÆ÷ÐÅϢ - ctrl = (1 << LS1C_PWM_INT_LRC_EN) - | (0 << LS1C_PWM_INT_HRC_EN) - | (0 << LS1C_PWM_CNTR_RST) - | (0 << LS1C_PWM_INT_SR) - | (1 << LS1C_PWM_INTEN) - | (1 << LS1C_PWM_SINGLE) - | (1 << LS1C_PWM_OE) - | (1 << LS1C_PWM_CNT_EN); - - // ÉèÖø÷¸ö¼ĴæÆ÷ - timer_reg_base = timer_get_reg_base(timer_info->timer); // »ñȡ¼ĴæÆ÷»ùµØַ - reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)); - reg_write_32(tmp--, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)); - reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)); - reg_write_32(ctrl, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); - - return ; -} - - -/* - * ÅжÏָ¶¨¶¨ʱÆ÷ÊǷñ³¬ʱ(ʵÏֶ¨ʱ) - * @timer_info ¶¨ʱÆ÷ - * @ret TRUE or FALSE - */ -BOOL timer_is_time_out(timer_info_t *timer_info) -{ - unsigned int timer_reg_base = 0; // ¼ĴæÆ÷»ùµØַ - unsigned int ctrl; // ¿ØÖƼĴæÆ÷µÄֵ - - // ÅжÏÈë²Î - if (NULL == timer_info) - { - return FALSE; - } - - // ¶Áȡ¿ØÖƼĴæÆ÷ - timer_reg_base = timer_get_reg_base(timer_info->timer); - ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); - - // ÅжÏÖжÏ״̬λ - if (ctrl & (1 << LS1C_PWM_INT_SR)) - { - return TRUE; - } - else - { - return FALSE; - } -} - - - -/* - * ֹͣ¶¨ʱÆ÷ - * @timer_info ¶¨ʱÆ÷ - */ -void timer_stop(timer_info_t *timer_info) -{ - unsigned int timer_reg_base = 0; - - // ÅжÏÈë²Î - if (NULL == timer_info) - { - return ; - } - - timer_reg_base = timer_get_reg_base(timer_info->timer); - reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); - - return ; -} - -/* - * »ñȡ¶¨ʱÆ÷´ӳõʼ»¯µ½ÏÖÔڵÄʱ¼ä(ʵÏּÆʱ¹¦ÄÜ)£¬µ¥λns - * @timer_info Ӳ¼þ¶¨ʱÆ÷ - * @ret ʱ¼䣬µ¥λns - */ -unsigned long timer_get_time_ns(timer_info_t *timer_info) -{ - unsigned int timer_reg_base = 0; - unsigned int cntr = 0; // ¼ĴæÆ÷CNTRµÄֵ - unsigned long time_ns = 0; // ʱ¼䣬µ¥λns - unsigned long timer_clk = 0; // ¶¨ʱÆ÷ʱÖÓ - - // ¶Áȡ¼ĴæÆ÷CNTRµÄֵ - timer_reg_base = timer_get_reg_base(timer_info->timer); - cntr = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)); - - /* - * ½«CNTRֵ»»ËãΪʱ¼䣬µ¥λus - * ʱ¼ä = (¼ÆÊýÆ÷ֵCNTR * 1000000000) / ¶¨ʱÆ÷ʱÖÓƵÂÊ - * Ϊ±ÜÃâ²úÉúÒç³ö£¬Êֶ¯ÓݝÉÏʽΪ ʱ¼ä = (¼ÆÊýÆ÷ֵCNTR * 1000) / (¶¨ʱÆ÷ʱÖÓƵÂÊ / 1000000) - */ - timer_clk = clk_get_apb_rate(); - time_ns = (cntr * 1000 ) / (timer_clk /1000000); -// printf("[%s] time_us=%lu, cntr=%d, timer_clk=%d\n", __FUNCTION__, time_ns, cntr, timer_clk); - - return time_ns; -} - -/* - * ´òӡtimerÏà¹ؼĴæÆ÷µÄֵ - * @timer_info Ӳ¼þ¶¨ʱÆ÷ - */ -void timer_print_regs(timer_info_t *timer_info) -{ - unsigned int timer_reg_base = 0; - - timer_reg_base = timer_get_reg_base(timer_info->timer); - printf("CNTR=0x%x, HRC=0x%x, LRC=0x%x, CTRL=0x%x\n", - reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)), - reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)), - reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)), - reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL))); - - return ; -} - -/* - * ¶¨ʱÆ÷ÖжÏÇå - * @timer_info ¶¨ʱÆ÷ÐÅϢ - */ -void timer_int_clr(timer_info_t *timer_info) -{ - unsigned int timer_reg_base = 0; // ¼ĴæÆ÷»ùµØַ - unsigned int ctrl ; - - // ÅжÏÈë²Î - if (NULL == timer_info) - { - return ; - } - timer_reg_base = timer_get_reg_base(timer_info->timer); // »ñȡ¼ĴæÆ÷»ùµØַ - ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); - ctrl = ctrl | (1<timer); // »ñȡ¼ĴæÆ÷»ùµØַ - ctrl = reg_read_32((volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); - ctrl = ctrl | (1<time_ns / 1000); // ½«1000000000²ð·ÖΪ1000000ºÍ1000 - l_value = MIN(l_value, TIMER_COUNTER_MAX); - h_value = (timer_clk / 1000000) * (timer_info->time_h_ns / 1000); // ½«1000000000²ð·ÖΪ1000000ºÍ1000 - h_value = MIN(h_value, l_value); - - // ¿ØÖƼĴæÆ÷ÐÅϢ - ctrl = (lrc << LS1C_PWM_INT_LRC_EN) - | (hrc << LS1C_PWM_INT_HRC_EN) - | (0 << LS1C_PWM_CNTR_RST) - | (0 << LS1C_PWM_INT_SR) - | (1 << LS1C_PWM_INTEN) - | (1 << LS1C_PWM_SINGLE) - | (1 << LS1C_PWM_OE) - | (1 << LS1C_PWM_CNT_EN); - - // ÉèÖø÷¸ö¼ĴæÆ÷ - timer_reg_base = timer_get_reg_base(timer_info->timer); // »ñȡ¼ĴæÆ÷»ùµØַ - reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)); - reg_write_32(l_value--, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_LRC)); - reg_write_32(h_value--, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_HRC)); - reg_write_32(0, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CNTR)); - reg_write_32(ctrl, (volatile unsigned int *)(timer_reg_base + LS1C_PWM_CTRL)); - - return ; -} diff --git a/bsp/ls1cdev/libraries/ls1c_timer.h b/bsp/ls1cdev/libraries/ls1c_timer.h deleted file mode 100644 index 9f3f86d5d5..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_timer.h +++ /dev/null @@ -1,89 +0,0 @@ - /* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * first version - */ -// Ӳ¼þ¶¨ʱÆ÷ͷÎļþ - - -#ifndef __OPENLOONGSON_TIMER_H -#define __OPENLOONGSON_TIMER_H - - -#include "ls1c_public.h" - - -// Ӳ¼þ¶¨ʱÆ÷ -typedef enum -{ - TIMER_PWM0, // PWM0ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ - TIMER_PWM1, // PWM1ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ - TIMER_PWM2, // PWM2ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ - TIMER_PWM3 // PWM3ÓÃ×÷Ӳ¼þ¶¨ʱÆ÷ -}ls1c_timer_t; - - -// Ӳ¼þ¶¨ʱÆ÷ÐÅϢ -typedef struct -{ - ls1c_timer_t timer; // Ӳ¼þ¶¨ʱÆ÷ - unsigned long time_ns; // µͶ¨ʱʱ¼ä - unsigned long time_h_ns; // ¸߶¨ʱʱ¼ä -}timer_info_t; - -/* - * ³õʼ»¯¶¨ʱÆ÷£¬²¢¿ªʼ¶¨ʱ - * @timer_info ¶¨ʱÆ÷ºͶ¨ʱʱ¼äÐÅϢ - */ -void timer_init(timer_info_t *timer_info); - -/* - * ÅжÏָ¶¨¶¨ʱÆ÷ÊǷñ³¬ʱ - * @timer_info ¶¨ʱÆ÷ - * @ret TRUE or FALSE - */ -BOOL timer_is_time_out(timer_info_t *timer_info); - -/* - * ֹͣ¶¨ʱÆ÷ - * @timer_info ¶¨ʱÆ÷ - */ -void timer_stop(timer_info_t *timer_info); - -/* - * »ñȡ¶¨ʱÆ÷´ӳõʼ»¯µ½ÏÖÔڵÄʱ¼ä(ʵÏּÆʱ¹¦ÄÜ)£¬µ¥λns - * @timer_info Ӳ¼þ¶¨ʱÆ÷ - * @ret ʱ¼䣬µ¥λns - */ -unsigned long timer_get_time_ns(timer_info_t *timer_info); - -/* - * ´òӡtimerÏà¹ؼĴæÆ÷µÄֵ - * @timer_info Ӳ¼þ¶¨ʱÆ÷ - */ -void timer_print_regs(timer_info_t *timer_info); - -/* - * ¶¨ʱÆ÷ÖжÏÇå - * @timer_info ¶¨ʱÆ÷ÐÅϢ - */ -void timer_int_clr(timer_info_t *timer_info); - -/* - * ¶¨ʱÆ÷¼ÆÊýÇå - * @timer_info ¶¨ʱÆ÷ÐÅϢ - */ -void timer_cnt_clr(timer_info_t *timer_info); - -/* - * ³õʼ»¯¶¨ʱÆ÷£¬²¢¿ªʼÖж϶¨ʱ - * @timer_info ¶¨ʱÆ÷ºͶ¨ʱʱ¼äÐÅϢ - * @hrc ¸ßÖжÏ lrc µÍÖжÏ Ϊ1´򿪣¬Ϊ0¹رÕ -*/ -void timer_int_init(timer_info_t *timer_info, int hrc, int lrc); -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_uart.c b/bsp/ls1cdev/libraries/ls1c_uart.c deleted file mode 100644 index fac2010964..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_uart.c +++ /dev/null @@ -1,325 +0,0 @@ - /* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * first version - */ -// 串口相关源码 - -#include -#include -#include "ls1c_public.h" -#include "ls1c_regs.h" -#include "ls1c_pin.h" -#include "ls1c_uart.h" -#include "ls1c_clock.h" -#include "ls1c.h" - - -// 串口线路状态寄存器的位域 -#define LS1C_UART_LSR_TE (1 << 6) -#define LS1C_UART_LSR_TFE (1 << 5) - - -// 打印缓存的大小 -#define LS1C_UART_PRINT_BUF_SIZE (256) - - -// 调试串口信息 -ls1c_uart_info_t debug_uart_info = {0}; - - -/* - * 获取指定串口模块的基地址 - * @UARTx 串口编号 - * @ret 基地址 - */ -void *uart_get_base(ls1c_uart_t UARTx) -{ - void *base = NULL; - - switch (UARTx) - { - case LS1C_UART00: - base = (void *)LS1C_UART00_BASE; - break; - case LS1C_UART01: - base = (void *)LS1C_UART01_BASE; - break; - - case LS1C_UART1: - base = (void *)LS1C_UART1_BASE; - break; - - case LS1C_UART2: - base = (void *)LS1C_UART2_BASE; - break; - - case LS1C_UART3: - base = (void *)LS1C_UART3_BASE; - break; - - case LS1C_UART4: - base = (void *)LS1C_UART4_BASE; - break; - - case LS1C_UART5: - base = (void *)LS1C_UART5_BASE; - break; - - case LS1C_UART6: - base = (void *)LS1C_UART6_BASE; - break; - - case LS1C_UART7: - base = (void *)LS1C_UART7_BASE; - break; - - case LS1C_UART8: - base = (void *)LS1C_UART8_BASE; - break; - - case LS1C_UART9: - base = (void *)LS1C_UART9_BASE; - break; - - case LS1C_UART10: - base = (void *)LS1C_UART10_BASE; - break; - - case LS1C_UART11: - base = (void *)LS1C_UART11_BASE; - break; - - default: - break; - } - - return base; -} - - -/* - * 初始化指定的串口模块 - * @uart_info_p 串口模块信息 - */ -void uart_init(ls1c_uart_info_t *uart_info_p) -{ - void *uart_base = uart_get_base(uart_info_p->UARTx); - unsigned long baudrate_div = 0; - - // 禁止所有中断 - reg_write_8(0, uart_base + LS1C_UART_IER_OFFSET); - - // 接收FIFO的中断申请Trigger为14字节,清空发送和接收FIFO,并复位 - reg_write_8(0xc3, uart_base + LS1C_UART_FCR_OFFSET); - - // 设置波特率 - reg_write_8(0x80, uart_base + LS1C_UART_LCR_OFFSET); - baudrate_div = clk_get_cpu_rate() / 16 / uart_info_p->baudrate / 2; - reg_write_8((baudrate_div >> 8) & 0xff, uart_base + LS1C_UART_MSB_OFFSET); - reg_write_8(baudrate_div & 0xff, uart_base + LS1C_UART_LSB_OFFSET); - - // 8个数据位,1个停止位,无校验 - reg_write_8(0x03, uart_base + LS1C_UART_LCR_OFFSET); - - // 使能接收中断 - if (TRUE == uart_info_p->rx_enable) - { - reg_write_8(IER_IRxE|IER_ILE , uart_base + LS1C_UART_IER_OFFSET); - } - - return ; -} - - -/* - * 判断FIFO是否为空 - * @uartx 串口号 - * @ret TRUE or FALSE - */ -BOOL uart_is_transmit_empty(ls1c_uart_t uartx) -{ - void *uart_base = uart_get_base(uartx); - unsigned char status = reg_read_8(uart_base + LS1C_UART_LSR_OFFSET); - - if (status & (LS1C_UART_LSR_TE | LS1C_UART_LSR_TFE)) - { - return TRUE; - } - else - { - return FALSE; - } -} - - -/* - * 发送一个字节 - * @uartx 串口号 - * @ch 待发送的字符串 - */ -void uart_putc(ls1c_uart_t uartx, unsigned char ch) -{ - void *uart_base = uart_get_base(uartx); - - // 等待 - while (FALSE == uart_is_transmit_empty(uartx)) - ; - - // 发送 - reg_write_8(ch, uart_base + LS1C_UART_DAT_OFFSET); - - return ; -} - - -/* - * 打印一个字符串到指定串口 - * @uartx 串口号 - * @str 待打印的字符串 - */ -void uart_print(ls1c_uart_t uartx, const char *str) -{ - while ('\0' != *str) // 判断是否为字符串结束符 - { - uart_putc(uartx, *str); // 发送一个字符 - str++; - } - - return ; -} - - -/* - * 初始化串口2 - */ -void uart2_init(void) -{ - unsigned int tx_gpio = 37; - unsigned int rx_gpio = 36; - - // 设置复用 - pin_set_remap(tx_gpio, PIN_REMAP_SECOND); - pin_set_remap(rx_gpio, PIN_REMAP_SECOND); - - // 初始化相关寄存器 - debug_uart_info.UARTx = LS1C_UART2; - debug_uart_info.baudrate = 115200; - debug_uart_info.rx_enable = FALSE; // 调试串口只需要打印(发送)功能,不需要接收功能 - uart_init(&debug_uart_info); - - return ; -} - - -/* - * 在串口2上打印字符串 - * @str 待打印的字符串 - */ -void uart2_print(const char *str) -{ - uart_print(LS1C_UART2, str); - return ; -} - - -/* - * 在调试串口打印字符串 - * @str 待打印的字符串 - */ -void uart_debug_print(const char *str) -{ - uart_print(debug_uart_info.UARTx, str); - return ; -} - - -/* - * 在调试串口打印一个字符 - * @ch 待打印的字符 - */ -void uart_debug_putc(unsigned char ch) -{ - uart_putc(debug_uart_info.UARTx, ch); - return ; -} - - -/* - * 把中断号转换为串口号 - * @IRQn 中断号 - * @ret 串口号 - */ -ls1c_uart_t uart_irqn_to_uartx(int IRQn) -{ - ls1c_uart_t uartx = LS1C_UART2; - - switch (IRQn) - { - /* 串口UART00和UART01的中断号还待确定 - case LS1C_UART00_IRQ: - uartx = LS1C_UART00; - break; - - case LS1C_UART01_IRQ: - uartx = LS1C_UART01; - break; - */ - - case LS1C_UART1_IRQ: - uartx = LS1C_UART1; - break; - - case LS1C_UART2_IRQ: - uartx = LS1C_UART2; - break; - - case LS1C_UART3_IRQ: - uartx = LS1C_UART3; - break; - - case LS1C_UART4_IRQ: - uartx = LS1C_UART4; - break; - - case LS1C_UART5_IRQ: - uartx = LS1C_UART5; - break; - - case LS1C_UART6_IRQ: - uartx = LS1C_UART6; - break; - - case LS1C_UART7_IRQ: - uartx = LS1C_UART7; - break; - - case LS1C_UART8_IRQ: - uartx = LS1C_UART8; - break; - - case LS1C_UART9_IRQ: - uartx = LS1C_UART9; - break; - - case LS1C_UART10_IRQ: - uartx = LS1C_UART10; - break; - - case LS1C_UART11_IRQ: - uartx = LS1C_UART11; - break; - - default: - uartx = LS1C_UART2; - break; - } - - return uartx; -} - - diff --git a/bsp/ls1cdev/libraries/ls1c_uart.h b/bsp/ls1cdev/libraries/ls1c_uart.h deleted file mode 100644 index 8d017dd767..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_uart.h +++ /dev/null @@ -1,189 +0,0 @@ - /* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * first version - */ -// 串口相关头文件 - - -#ifndef __OPENLOONGSON_UART_H -#define __OPENLOONGSON_UART_H - - -#include "ls1c_public.h" - - -// 串口各寄存器相对基地址的偏移 -#define LS1C_UART_DAT_OFFSET (0) -#define LS1C_UART_IER_OFFSET (1) -#define LS1C_UART_IIR_OFFSET (2) -#define LS1C_UART_FCR_OFFSET (2) -#define LS1C_UART_LCR_OFFSET (3) -#define LS1C_UART_MCR_OFFSET (4) -#define LS1C_UART_LSR_OFFSET (5) -#define LS1C_UART_MSR_OFFSET (6) - -#define LS1C_UART_LSB_OFFSET (0) // 分频锁存器1 -#define LS1C_UART_MSB_OFFSET (1) // 分频锁存器2 - -/* interrupt enable register */ -#define IER_IRxE 0x1 /* 接收有效数据中断使能 */ -#define IER_ITxE 0x2 /* 传输保存寄存器为空中断使能 */ -#define IER_ILE 0x4 /* 接收器线路状态中断使能 */ -#define IER_IME 0x8 /* Modem状态中断使能 */ - -/* interrupt identification register */ -#define IIR_IMASK 0xf /* mask */ -#define IIR_RXTOUT 0xc /* receive timeout */ -#define IIR_RLS 0x6 /* receive line status */ -#define IIR_RXRDY 0x4 /* receive ready */ -#define IIR_TXRDY 0x2 /* transmit ready */ -#define IIR_NOPEND 0x1 /* nothing */ -#define IIR_MLSC 0x0 /* modem status */ -#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ - -/* fifo control register */ -#define FIFO_ENABLE 0x01 /* enable fifo */ -#define FIFO_RCV_RST 0x02 /* reset receive fifo */ -#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ -#define FIFO_DMA_MODE 0x08 /* enable dma mode */ -#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ -#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ -#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ -#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ - -// 线路控制寄存器 -/* character format control register */ -#define CFCR_DLAB 0x80 /* divisor latch */ -#define CFCR_SBREAK 0x40 /* send break */ -#define CFCR_PZERO 0x30 /* zero parity */ -#define CFCR_PONE 0x20 /* one parity */ -#define CFCR_PEVEN 0x10 /* even parity */ -#define CFCR_PODD 0x00 /* odd parity */ -#define CFCR_PENAB 0x08 /* parity enable */ -#define CFCR_STOPB 0x04 /* 2 stop bits */ -#define CFCR_8BITS 0x03 /* 8 data bits */ -#define CFCR_7BITS 0x02 /* 7 data bits */ -#define CFCR_6BITS 0x01 /* 6 data bits */ -#define CFCR_5BITS 0x00 /* 5 data bits */ - -/* modem control register */ -#define MCR_LOOPBACK 0x10 /* loopback */ -#define MCR_IENABLE 0x08 /* output 2 = int enable */ -#define MCR_DRS 0x04 /* output 1 = xxx */ -#define MCR_RTS 0x02 /* enable RTS */ -#define MCR_DTR 0x01 /* enable DTR */ - -/* line status register */ -#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ -#define LSR_TSRE 0x40 /* transmitter empty */ -#define LSR_TXRDY 0x20 /* transmitter ready */ -#define LSR_BI 0x10 /* break detected */ -#define LSR_FE 0x08 /* framing error */ -#define LSR_PE 0x04 /* parity error */ -#define LSR_OE 0x02 /* overrun error */ -#define LSR_RXRDY 0x01 /* receiver ready */ -#define LSR_RCV_MASK 0x1f - - -// 串口模块编号 -typedef enum -{ - LS1C_UART00 = 0, // 全功能串口UART0可以分为两个四线串口UART00和UART01 - LS1C_UART01, - LS1C_UART1, - LS1C_UART2, - LS1C_UART3, - LS1C_UART4, - LS1C_UART5, - LS1C_UART6, - LS1C_UART7, - LS1C_UART8, - LS1C_UART9, - LS1C_UART10, - LS1C_UART11 -}ls1c_uart_t; - - -// 串口信息 -typedef struct -{ - ls1c_uart_t UARTx; // 串口模块编号 - unsigned int baudrate; // 波特率 - BOOL rx_enable; // 是否需要使用串口接收数据(使能接收中断),发送默认使能 -}ls1c_uart_info_t; - - - -/* - * 获取指定串口模块的基地址 - * @UARTx 串口编号 - * @ret 基地址 - */ -void *uart_get_base(ls1c_uart_t UARTx); - - -/* - * 初始化指定的串口模块 - * @uart_info_p 串口模块信息 - */ -void uart_init(ls1c_uart_info_t *uart_info_p); - - -/* - * 初始化串口2 - */ -void uart2_init(void); - - -/* - * 在串口2上打印字符串 - * @str 待打印的字符串 - */ -void uart2_print(const char *str); - - -/* - * 在调试串口打印字符串 - * @str 待打印的字符串 - */ -void uart_debug_print(const char *str); - - -/* - * 在调试串口打印一个字符 - * @ch 待打印的字符 - */ -void uart_debug_putc(unsigned char ch); - - -/* - * 把中断号转换为串口号 - * @IRQn 中断号 - * @ret 串口号 - */ -ls1c_uart_t uart_irqn_to_uartx(int IRQn); - - -/* - * 发送一个字节 - * @uartx 串口号 - * @ch 待发送的字符串 - */ -void uart_putc(ls1c_uart_t uartx, unsigned char ch); - - -/* - * 打印一个字符串到指定串口 - * @uartx 串口号 - * @str 待打印的字符串 - */ -void uart_print(ls1c_uart_t uartx, const char *str); - - -#endif - diff --git a/bsp/ls1cdev/libraries/ls1c_wdog.c b/bsp/ls1cdev/libraries/ls1c_wdog.c deleted file mode 100644 index 4034281d10..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_wdog.c +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2019-05-06 sundm75 first version - */ - -#include "ls1c.h" -#include "ls1c_wdog.h" - -/* -系统先配置看门狗使能位 WDT_EN; -然后配置看门狗计数器的初始值 WDT_TIMER; -当设置 WDT_SET 后,计数器开始减计数; -当还没有减到 0 时,重置看门狗计数器,系统不会重启; -当看门狗计数器减到 0 时,则系统重启。 -*/ - -static unsigned int WDT_timer = 0; - -/* 暂时为空 */ -unsigned int Wdog_Init(void) -{ - return 0; -} - -/* 配置看门狗使能寄存器(WDT_EN) */ -unsigned int Wdog_Enable(void) -{ - unsigned int ctrl; - ctrl = (WDT_EN); - ctrl |= 0x01; - - WDT_EN = ctrl; - return 0; -} - -/* 配置看门狗失能寄存器(WDT_EN) */ -unsigned int Wdog_Disable(void) -{ - unsigned int ctrl; - ctrl = (WDT_EN); - ctrl &= ~0x01; - WDT_EN = ctrl; - return 0; -} - -/* 配置看门狗设置寄存器 (WDT_SET) */ -unsigned int Wdog_Set(void) -{ - unsigned int ctrl; - ctrl = (WDT_SET); - ctrl |= 0x01; - WDT_SET = ctrl; - return 0; -} - -/* 配置看门狗设置寄存器 (WDT_SET) */ -unsigned int Wdog_Reset(void) -{ - unsigned int ctrl; - ctrl = (WDT_SET); - ctrl &= ~0x01; - WDT_SET = ctrl; - return 0; -} - -/* 获得看门狗计数器(WDT_timer) 的值*/ -unsigned int Wdog_GetValue(void) -{ - unsigned int cnt; - cnt = (WDT_TIMER); - return cnt; -} - -/* 配置看门狗计数器(WDT_timer)的值*/ -unsigned int Wdog_LoadValue(unsigned int cnt) -{ - WDT_TIMER = cnt; - WDT_timer = cnt; - return 0; -} - -/* 获得看门狗计数器设定值 */ -unsigned int Wdog_GetPreValue(void) -{ - return WDT_timer; -} diff --git a/bsp/ls1cdev/libraries/ls1c_wdog.h b/bsp/ls1cdev/libraries/ls1c_wdog.h deleted file mode 100644 index a4717eedbf..0000000000 --- a/bsp/ls1cdev/libraries/ls1c_wdog.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2019-05-06 sundm75 first version - */ - -#ifndef _LS1C_WDOG_H_ -#define _LS1C_WDOG_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -unsigned int Wdog_Init(void); // 暂时为空 -unsigned int Wdog_Enable(void); // 看门狗使能寄存器(WDT_EN) -unsigned int Wdog_Disable(void); // 看门狗失能寄存器(WDT_EN) -unsigned int Wdog_Set(void); // 看门狗设置寄存器 (WDT_SET) -unsigned int Wdog_Reset(void); // 看门狗设置寄存器 (WDT_SET) -unsigned int Wdog_GetValue(void); // 获得看门狗计数器(WDT_timer) -unsigned int Wdog_LoadValue(unsigned int cnt); // 设置看门狗计数器(WDT_timer) -unsigned int Wdog_GetPreValue(void); // 获得看门狗计数器设定值 - -#ifdef __cplusplus -} -#endif - -#endif /* _LS1C_WDOG_H_ */ - diff --git a/bsp/ls1cdev/ls1c_ram.lds b/bsp/ls1cdev/ls1c_ram.lds deleted file mode 100644 index aced32b90b..0000000000 --- a/bsp/ls1cdev/ls1c_ram.lds +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2010-05-17 swkyer first version - * 2010-09-04 bernard move the beginning entry to 0x80200000 - * 2018-05-12 zhuangwei use -Ttext - * 2019-12-04 Jiaxun Yang Adapt new memory layout - */ - -OUTPUT_ARCH(mips) -GROUP(-lgcc -lc) - -ENTRY(_start) -SECTIONS -{ - . = ALIGN(4); - .text : - { - start = ABSOLUTE(.); - *(.selfboot); - *(.selfboot_data); - . = ALIGN(4); - __selfboot_end = .; - . = ALIGN(0x1000); - __ebase_entry = .; - KEEP(*(.exc_vectors)) - __ebase_end = .; - *(.start); - *(.text) - *(.text.*) - *(.rodata) - *(.rodata.*) - *(.rodata1) - *(.rodata1.*) - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - } - - .eh_frame_hdr : - { - *(.eh_frame_hdr) - *(.eh_frame_entry) - } - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } - - . = ALIGN(4); - .data : - { - *(.data) - *(.data.*) - - *(.data1) - *(.data1.*) - - . = ALIGN(8); - _gp = ABSOLUTE(.); /* Base of small data */ - - *(.sdata) - *(.sdata.*) - } - _edata = .; - - .stack : - { - . = ALIGN(8); - _system_stack_start = .; - . = . + 0x400; /* 1kb system stack */ - _system_stack = .; - } - - .sbss : - { - __bss_start = .; - *(.sbss) - *(.sbss.*) - *(.dynsbss) - *(.scommon) - } - - .bss : - { - *(.bss) - *(.bss.*) - *(.dynbss) - *(COMMON) - __bss_end = .; - } - _end = .; - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } -} diff --git a/bsp/ls1cdev/rtconfig.h b/bsp/ls1cdev/rtconfig.h deleted file mode 100644 index 9e6ea21d94..0000000000 --- a/bsp/ls1cdev/rtconfig.h +++ /dev/null @@ -1,278 +0,0 @@ -#ifndef RT_CONFIG_H__ -#define RT_CONFIG_H__ - -/* Automatically generated file; DO NOT EDIT. */ -/* RT-Thread Configuration */ - -/* RT-Thread Kernel */ - -#define RT_NAME_MAX 10 -#define RT_ALIGN_SIZE 8 -#define RT_THREAD_PRIORITY_32 -#define RT_THREAD_PRIORITY_MAX 32 -#define RT_TICK_PER_SECOND 1000 -#define RT_USING_OVERFLOW_CHECK -#define RT_USING_HOOK -#define RT_HOOK_USING_FUNC_PTR -#define RT_USING_IDLE_HOOK -#define RT_IDLE_HOOK_LIST_SIZE 4 -#define IDLE_THREAD_STACK_SIZE 8192 - -/* kservice optimization */ - -#define RT_DEBUG -#define RT_DEBUG_COLOR - -/* Inter-Thread communication */ - -#define RT_USING_SEMAPHORE -#define RT_USING_MUTEX -#define RT_USING_EVENT -#define RT_USING_MAILBOX -#define RT_USING_MESSAGEQUEUE - -/* Memory Management */ - -#define RT_USING_MEMPOOL -#define RT_USING_SMALL_MEM -#define RT_USING_MEMHEAP -#define RT_MEMHEAP_FAST_MODE -#define RT_USING_SMALL_MEM_AS_HEAP -#define RT_USING_HEAP - -/* Kernel Device Object */ - -#define RT_USING_DEVICE -#define RT_USING_INTERRUPT_INFO -#define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 128 -#define RT_CONSOLE_DEVICE_NAME "uart2" -#define RT_VER_NUM 0x40100 - -/* RT-Thread Components */ - -#define RT_USING_COMPONENTS_INIT -#define RT_USING_USER_MAIN -#define RT_MAIN_THREAD_STACK_SIZE 8192 -#define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - - -/* Command shell */ - -#define RT_USING_FINSH -#define RT_USING_MSH -#define FINSH_USING_MSH -#define FINSH_THREAD_NAME "tshell" -#define FINSH_THREAD_PRIORITY 20 -#define FINSH_THREAD_STACK_SIZE 8192 -#define FINSH_USING_HISTORY -#define FINSH_HISTORY_LINES 5 -#define FINSH_USING_SYMTAB -#define FINSH_CMD_SIZE 80 -#define MSH_USING_BUILT_IN_COMMANDS -#define FINSH_USING_DESCRIPTION -#define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - -#define RT_USING_DFS -#define DFS_USING_POSIX -#define DFS_USING_WORKDIR -#define DFS_FILESYSTEMS_MAX 2 -#define DFS_FILESYSTEM_TYPES_MAX 2 -#define DFS_FD_MAX 4 -#define RT_USING_DFS_ELMFAT - -/* elm-chan's FatFs, Generic FAT Filesystem Module */ - -#define RT_DFS_ELM_CODE_PAGE 936 -#define RT_DFS_ELM_WORD_ACCESS -#define RT_DFS_ELM_USE_LFN_0 -#define RT_DFS_ELM_USE_LFN 0 -#define RT_DFS_ELM_LFN_UNICODE_0 -#define RT_DFS_ELM_LFN_UNICODE 0 -#define RT_DFS_ELM_MAX_LFN 64 -#define RT_DFS_ELM_DRIVES 2 -#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 -#define RT_DFS_ELM_REENTRANT -#define RT_DFS_ELM_MUTEX_TIMEOUT 3000 -#define RT_USING_DFS_DEVFS - -/* Device Drivers */ - -#define RT_USING_DEVICE_IPC -#define RT_USING_SERIAL -#define RT_USING_SERIAL_V1 -#define RT_SERIAL_USING_DMA -#define RT_SERIAL_RB_BUFSZ 64 -#define RT_USING_CAN -#define RT_USING_I2C -#define RT_USING_I2C_BITOPS -#define RT_USING_PIN -#define RT_USING_SPI -#define RT_USING_SPI_MSD - -/* Using USB */ - - -/* POSIX layer and C standard library */ - -#define RT_LIBC_DEFAULT_TIMEZONE 8 - -/* POSIX (Portable Operating System Interface) layer */ - -#define RT_USING_POSIX_DELAY -#define RT_USING_POSIX_CLOCK -#define RT_USING_PTHREADS -#define PTHREAD_NUM_MAX 8 - -/* Interprocess Communication (IPC) */ - - -/* Socket is in the 'Network' category */ - -/* Network */ - -/* Socket abstraction layer */ - - -/* Network interface device */ - -#define NETDEV_USING_PING - -/* light weight TCP/IP stack */ - -#define RT_USING_LWIP -#define RT_USING_LWIP141 -#define RT_LWIP_MEM_ALIGNMENT 4 -#define RT_LWIP_IGMP -#define RT_LWIP_ICMP -#define RT_LWIP_DNS -#define RT_LWIP_DHCP -#define IP_SOF_BROADCAST 1 -#define IP_SOF_BROADCAST_RECV 1 - -/* Static IPv4 Address */ - -#define RT_LWIP_IPADDR "192.168.1.254" -#define RT_LWIP_GWADDR "192.168.1.1" -#define RT_LWIP_MSKADDR "255.255.255.0" -#define RT_LWIP_UDP -#define RT_LWIP_TCP -#define RT_LWIP_RAW -#define RT_MEMP_NUM_NETCONN 8 -#define RT_LWIP_PBUF_NUM 4 -#define RT_LWIP_RAW_PCB_NUM 4 -#define RT_LWIP_UDP_PCB_NUM 4 -#define RT_LWIP_TCP_PCB_NUM 3 -#define RT_LWIP_TCP_SEG_NUM 40 -#define RT_LWIP_TCP_SND_BUF 4096 -#define RT_LWIP_TCP_WND 2048 -#define RT_LWIP_TCPTHREAD_PRIORITY 12 -#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8 -#define RT_LWIP_TCPTHREAD_STACKSIZE 8192 -#define RT_LWIP_ETHTHREAD_PRIORITY 14 -#define RT_LWIP_ETHTHREAD_STACKSIZE 8192 -#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8 -#define LWIP_NETIF_STATUS_CALLBACK 1 -#define LWIP_NETIF_LINK_CALLBACK 1 -#define SO_REUSE 1 -#define LWIP_SO_RCVTIMEO 1 -#define LWIP_SO_SNDTIMEO 1 -#define LWIP_SO_RCVBUF 1 -#define LWIP_SO_LINGER 0 -#define LWIP_NETIF_LOOPBACK 0 -#define RT_LWIP_USING_PING - -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ - - -/* Utilities */ - - -/* RT-Thread Utestcases */ - - -/* RT-Thread MIPS CPU */ - - -/* RT-Thread online packages */ - -/* IoT - internet of things */ - - -/* Wi-Fi */ - -/* Marvell WiFi */ - - -/* Wiced WiFi */ - - -/* IoT Cloud */ - - -/* security packages */ - - -/* language packages */ - - -/* multimedia packages */ - -/* LVGL: powerful and easy-to-use embedded GUI library */ - - -/* u8g2: a monochrome graphic library */ - - -/* PainterEngine: A cross-platform graphics application framework written in C language */ - - -/* tools packages */ - - -/* system packages */ - -/* enhanced kernel services */ - - -/* POSIX extension functions */ - - -/* acceleration: Assembly language or algorithmic acceleration packages */ - - -/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ - - -/* Micrium: Micrium software products porting for RT-Thread */ - - -/* peripheral libraries and drivers */ - - -/* AI packages */ - - -/* miscellaneous packages */ - -/* samples: kernel and components samples */ - - -/* entertainment: terminal games and other interesting software packages */ - -#define SOC_LS1C300 -#define RT_LS1C_OPENLOONGSON -#define RT_USING_UART2 -#define RT_USING_UART1 -#define RT_UART_RX_BUFFER_SIZE 64 -#define RT_USING_GMAC_INT_MODE -#define NO_TOUCH - -#endif diff --git a/bsp/ls1cdev/rtconfig.py b/bsp/ls1cdev/rtconfig.py deleted file mode 100644 index be5da5d30a..0000000000 --- a/bsp/ls1cdev/rtconfig.py +++ /dev/null @@ -1,58 +0,0 @@ -import os - -# CPU options -ARCH='mips' -CPU ='gs232' - -# toolchains options -CROSS_TOOL = 'gcc' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = "/opt/mips-2016.05/bin" -# EXEC_PATH = r'D:\mgc\embedded\codebench\bin' -else: - print('================ERROR===========================') - print('Not support %s yet!' % CROSS_TOOL) - print('=================================================') - exit(0) - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -# don't use loongson company's cross-compilation tool chain to compile the RT-Thread -# must use the cross-compilation tool chain that RT-Thread recommand -# download: https://coding.net/u/bernard/p/rtthread_tools/git/blob/master/GCC_Toolchains.md -PREFIX = 'mips-sde-elf-' -CC = PREFIX + 'gcc' -AS = PREFIX + 'gcc' -AR = PREFIX + 'ar' -LINK = PREFIX + 'gcc' -TARGET_EXT = 'elf' -SIZE = PREFIX + 'size' -OBJDUMP = PREFIX + 'objdump' -OBJCPY = PREFIX + 'objcopy' -READELF = PREFIX + 'readelf' - -DEVICE = ' -mips32 -msoft-float -mfp32' -CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' -AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' -LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1c_ram.lds' - -CPATH = '' -LPATH = '' - -if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' -else: - CFLAGS += ' -O2' - -DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' -READELF_ACTION = READELF + ' -a $TARGET > rtt.map\n' -POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' diff --git a/bsp/ls2kdev/.config b/bsp/ls2kdev/.config deleted file mode 100644 index 568a224d1e..0000000000 --- a/bsp/ls2kdev/.config +++ /dev/null @@ -1,768 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# RT-Thread Configuration -# - -# -# RT-Thread Kernel -# -CONFIG_RT_NAME_MAX=30 -# CONFIG_RT_USING_ARCH_DATA_TYPE is not set -# CONFIG_RT_USING_SMP is not set -CONFIG_RT_ALIGN_SIZE=8 -# CONFIG_RT_THREAD_PRIORITY_8 is not set -CONFIG_RT_THREAD_PRIORITY_32=y -# CONFIG_RT_THREAD_PRIORITY_256 is not set -CONFIG_RT_THREAD_PRIORITY_MAX=32 -CONFIG_RT_TICK_PER_SECOND=1000 -CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_USING_HOOK=y -CONFIG_RT_HOOK_USING_FUNC_PTR=y -CONFIG_RT_USING_IDLE_HOOK=y -CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 -CONFIG_IDLE_THREAD_STACK_SIZE=16384 -# CONFIG_RT_USING_TIMER_SOFT is not set - -# -# kservice optimization -# -# CONFIG_RT_KSERVICE_USING_STDLIB is not set -# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set -# CONFIG_RT_USING_TINY_FFS is not set -# CONFIG_RT_PRINTF_LONGLONG is not set -CONFIG_RT_DEBUG=y -# CONFIG_RT_DEBUG_COLOR is not set -# CONFIG_RT_DEBUG_INIT_CONFIG is not set -# CONFIG_RT_DEBUG_THREAD_CONFIG is not set -# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set -# CONFIG_RT_DEBUG_IPC_CONFIG is not set -# CONFIG_RT_DEBUG_TIMER_CONFIG is not set -# CONFIG_RT_DEBUG_IRQ_CONFIG is not set -# CONFIG_RT_DEBUG_MEM_CONFIG is not set -# CONFIG_RT_DEBUG_SLAB_CONFIG is not set -# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set -# CONFIG_RT_DEBUG_MODULE_CONFIG is not set - -# -# Inter-Thread communication -# -CONFIG_RT_USING_SEMAPHORE=y -CONFIG_RT_USING_MUTEX=y -CONFIG_RT_USING_EVENT=y -CONFIG_RT_USING_MAILBOX=y -CONFIG_RT_USING_MESSAGEQUEUE=y -# CONFIG_RT_USING_SIGNALS is not set - -# -# Memory Management -# -CONFIG_RT_USING_MEMPOOL=y -CONFIG_RT_USING_SMALL_MEM=y -# CONFIG_RT_USING_SLAB is not set -# CONFIG_RT_USING_MEMHEAP is not set -CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y -# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set -# CONFIG_RT_USING_SLAB_AS_HEAP is not set -# CONFIG_RT_USING_USERHEAP is not set -# CONFIG_RT_USING_NOHEAP is not set -# CONFIG_RT_USING_MEMTRACE is not set -# CONFIG_RT_USING_HEAP_ISR is not set -CONFIG_RT_USING_HEAP=y - -# -# Kernel Device Object -# -CONFIG_RT_USING_DEVICE=y -# CONFIG_RT_USING_DEVICE_OPS is not set -# CONFIG_RT_USING_INTERRUPT_INFO is not set -CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=256 -CONFIG_RT_CONSOLE_DEVICE_NAME="uart0" -CONFIG_RT_VER_NUM=0x40100 -CONFIG_ARCH_CPU_64BIT=y -# CONFIG_RT_USING_CPU_FFS is not set -CONFIG_ARCH_MIPS64=y -# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set - -# -# RT-Thread Components -# -CONFIG_RT_USING_COMPONENTS_INIT=y -CONFIG_RT_USING_USER_MAIN=y -CONFIG_RT_MAIN_THREAD_STACK_SIZE=16384 -CONFIG_RT_MAIN_THREAD_PRIORITY=10 -# CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -# CONFIG_RT_USING_CPLUSPLUS is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y -CONFIG_RT_USING_MSH=y -CONFIG_FINSH_USING_MSH=y -CONFIG_FINSH_THREAD_NAME="tshell" -CONFIG_FINSH_THREAD_PRIORITY=20 -CONFIG_FINSH_THREAD_STACK_SIZE=16384 -CONFIG_FINSH_USING_HISTORY=y -CONFIG_FINSH_HISTORY_LINES=5 -CONFIG_FINSH_USING_SYMTAB=y -CONFIG_FINSH_CMD_SIZE=80 -CONFIG_MSH_USING_BUILT_IN_COMMANDS=y -CONFIG_FINSH_USING_DESCRIPTION=y -# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set -# CONFIG_FINSH_USING_AUTH is not set -CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# -CONFIG_RT_USING_DFS=y -CONFIG_DFS_USING_POSIX=y -CONFIG_DFS_USING_WORKDIR=y -CONFIG_DFS_FILESYSTEMS_MAX=4 -CONFIG_DFS_FILESYSTEM_TYPES_MAX=4 -CONFIG_DFS_FD_MAX=16 -# CONFIG_RT_USING_DFS_MNTTABLE is not set -CONFIG_RT_USING_DFS_ELMFAT=y - -# -# elm-chan's FatFs, Generic FAT Filesystem Module -# -CONFIG_RT_DFS_ELM_CODE_PAGE=936 -CONFIG_RT_DFS_ELM_WORD_ACCESS=y -# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set -# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set -# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set -CONFIG_RT_DFS_ELM_USE_LFN_3=y -CONFIG_RT_DFS_ELM_USE_LFN=3 -CONFIG_RT_DFS_ELM_LFN_UNICODE_0=y -# CONFIG_RT_DFS_ELM_LFN_UNICODE_1 is not set -# CONFIG_RT_DFS_ELM_LFN_UNICODE_2 is not set -# CONFIG_RT_DFS_ELM_LFN_UNICODE_3 is not set -CONFIG_RT_DFS_ELM_LFN_UNICODE=0 -CONFIG_RT_DFS_ELM_MAX_LFN=255 -CONFIG_RT_DFS_ELM_DRIVES=9 -CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512 -# CONFIG_RT_DFS_ELM_USE_ERASE is not set -CONFIG_RT_DFS_ELM_REENTRANT=y -CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000 -CONFIG_RT_USING_DFS_DEVFS=y -# CONFIG_RT_USING_DFS_ROMFS is not set -# CONFIG_RT_USING_DFS_RAMFS is not set -# CONFIG_RT_USING_DFS_NFS is not set - -# -# Device Drivers -# -CONFIG_RT_USING_DEVICE_IPC=y -CONFIG_RT_USING_SYSTEM_WORKQUEUE=y -CONFIG_RT_SYSTEM_WORKQUEUE_STACKSIZE=16384 -CONFIG_RT_SYSTEM_WORKQUEUE_PRIORITY=5 -CONFIG_RT_USING_SERIAL=y -CONFIG_RT_USING_SERIAL_V1=y -# CONFIG_RT_USING_SERIAL_V2 is not set -CONFIG_RT_SERIAL_USING_DMA=y -CONFIG_RT_SERIAL_RB_BUFSZ=64 -# CONFIG_RT_USING_CAN is not set -# CONFIG_RT_USING_HWTIMER is not set -# CONFIG_RT_USING_CPUTIME is not set -# CONFIG_RT_USING_I2C is not set -# CONFIG_RT_USING_PHY is not set -CONFIG_RT_USING_PIN=y -# CONFIG_RT_USING_ADC is not set -# CONFIG_RT_USING_DAC is not set -# CONFIG_RT_USING_PWM is not set -# CONFIG_RT_USING_MTD_NOR is not set -# CONFIG_RT_USING_MTD_NAND is not set -# CONFIG_RT_USING_PM is not set -# CONFIG_RT_USING_RTC is not set -# CONFIG_RT_USING_SDIO is not set -CONFIG_RT_USING_SPI=y -# CONFIG_RT_USING_QSPI is not set -# CONFIG_RT_USING_SPI_MSD is not set -# CONFIG_RT_USING_SFUD is not set -# CONFIG_RT_USING_ENC28J60 is not set -# CONFIG_RT_USING_SPI_WIFI is not set -# CONFIG_RT_USING_WDT is not set -# CONFIG_RT_USING_AUDIO is not set -# CONFIG_RT_USING_SENSOR is not set -# CONFIG_RT_USING_TOUCH is not set -# CONFIG_RT_USING_HWCRYPTO is not set -# CONFIG_RT_USING_PULSE_ENCODER is not set -# CONFIG_RT_USING_INPUT_CAPTURE is not set -# CONFIG_RT_USING_WIFI is not set - -# -# Using USB -# -# CONFIG_RT_USING_USB is not set -# CONFIG_RT_USING_USB_HOST is not set -# CONFIG_RT_USING_USB_DEVICE is not set - -# -# POSIX layer and C standard library -# -CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 - -# -# POSIX (Portable Operating System Interface) layer -# -# CONFIG_RT_USING_POSIX_FS is not set -# CONFIG_RT_USING_POSIX_DELAY is not set -# CONFIG_RT_USING_POSIX_CLOCK is not set -# CONFIG_RT_USING_POSIX_TIMER is not set -# CONFIG_RT_USING_PTHREADS is not set -# CONFIG_RT_USING_MODULE is not set - -# -# Interprocess Communication (IPC) -# -# CONFIG_RT_USING_POSIX_PIPE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set - -# -# Socket is in the 'Network' category -# - -# -# Network -# - -# -# Socket abstraction layer -# -CONFIG_RT_USING_SAL=y -CONFIG_SAL_INTERNET_CHECK=y - -# -# protocol stack implement -# -CONFIG_SAL_USING_LWIP=y -# CONFIG_SAL_USING_POSIX is not set -CONFIG_SAL_SOCKETS_NUM=16 - -# -# Network interface device -# -CONFIG_RT_USING_NETDEV=y -CONFIG_NETDEV_USING_IFCONFIG=y -CONFIG_NETDEV_USING_PING=y -CONFIG_NETDEV_USING_NETSTAT=y -CONFIG_NETDEV_USING_AUTO_DEFAULT=y -# CONFIG_NETDEV_USING_IPV6 is not set -CONFIG_NETDEV_IPV4=1 -CONFIG_NETDEV_IPV6=0 -# CONFIG_NETDEV_IPV6_SCOPES is not set - -# -# light weight TCP/IP stack -# -CONFIG_RT_USING_LWIP=y -# CONFIG_RT_USING_LWIP141 is not set -CONFIG_RT_USING_LWIP203=y -# CONFIG_RT_USING_LWIP212 is not set -# CONFIG_RT_USING_LWIP_IPV6 is not set -CONFIG_RT_LWIP_MEM_ALIGNMENT=8 -CONFIG_RT_LWIP_IGMP=y -CONFIG_RT_LWIP_ICMP=y -CONFIG_RT_LWIP_SNMP=y -CONFIG_RT_LWIP_DNS=y -CONFIG_RT_LWIP_DHCP=y -CONFIG_IP_SOF_BROADCAST=1 -CONFIG_IP_SOF_BROADCAST_RECV=1 - -# -# Static IPv4 Address -# -CONFIG_RT_LWIP_IPADDR="192.168.1.30" -CONFIG_RT_LWIP_GWADDR="192.168.1.1" -CONFIG_RT_LWIP_MSKADDR="255.255.255.0" -CONFIG_RT_LWIP_UDP=y -CONFIG_RT_LWIP_TCP=y -CONFIG_RT_LWIP_RAW=y -# CONFIG_RT_LWIP_PPP is not set -CONFIG_RT_MEMP_NUM_NETCONN=8 -CONFIG_RT_LWIP_PBUF_NUM=16 -CONFIG_RT_LWIP_RAW_PCB_NUM=4 -CONFIG_RT_LWIP_UDP_PCB_NUM=4 -CONFIG_RT_LWIP_TCP_PCB_NUM=4 -CONFIG_RT_LWIP_TCP_SEG_NUM=40 -CONFIG_RT_LWIP_TCP_SND_BUF=8196 -CONFIG_RT_LWIP_TCP_WND=8196 -CONFIG_RT_LWIP_TCPTHREAD_PRIORITY=5 -CONFIG_RT_LWIP_TCPTHREAD_MBOX_SIZE=32 -CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=16384 -# CONFIG_LWIP_NO_RX_THREAD is not set -# CONFIG_LWIP_NO_TX_THREAD is not set -CONFIG_RT_LWIP_ETHTHREAD_PRIORITY=5 -CONFIG_RT_LWIP_ETHTHREAD_STACKSIZE=16384 -CONFIG_RT_LWIP_ETHTHREAD_MBOX_SIZE=32 -CONFIG_RT_LWIP_REASSEMBLY_FRAG=y -CONFIG_LWIP_NETIF_STATUS_CALLBACK=1 -CONFIG_LWIP_NETIF_LINK_CALLBACK=1 -CONFIG_SO_REUSE=1 -CONFIG_LWIP_SO_RCVTIMEO=1 -CONFIG_LWIP_SO_SNDTIMEO=1 -CONFIG_LWIP_SO_RCVBUF=1 -CONFIG_LWIP_SO_LINGER=0 -# CONFIG_RT_LWIP_NETIF_LOOPBACK is not set -CONFIG_LWIP_NETIF_LOOPBACK=0 -CONFIG_RT_LWIP_STATS=y -# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set -CONFIG_RT_LWIP_USING_PING=y -# CONFIG_RT_LWIP_DEBUG is not set - -# -# AT commands -# -# CONFIG_RT_USING_AT is not set -# CONFIG_LWIP_USING_DHCPD is not set - -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set - -# -# Utilities -# -# CONFIG_RT_USING_RYM is not set -# CONFIG_RT_USING_ULOG is not set -# CONFIG_RT_USING_UTEST is not set -# CONFIG_RT_USING_VAR_EXPORT is not set -# CONFIG_RT_USING_RT_LINK is not set - -# -# RT-Thread Utestcases -# -# CONFIG_RT_USING_UTESTCASES is not set - -# -# RT-Thread MIPS CPU -# -# CONFIG_RT_USING_FPU is not set - -# -# RT-Thread online packages -# - -# -# IoT - internet of things -# -# CONFIG_PKG_USING_LORAWAN_DRIVER is not set -# CONFIG_PKG_USING_PAHOMQTT is not set -# CONFIG_PKG_USING_UMQTT is not set -# CONFIG_PKG_USING_WEBCLIENT is not set -# CONFIG_PKG_USING_WEBNET is not set -# CONFIG_PKG_USING_MONGOOSE is not set -# CONFIG_PKG_USING_MYMQTT is not set -# CONFIG_PKG_USING_KAWAII_MQTT is not set -# CONFIG_PKG_USING_BC28_MQTT is not set -# CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_CJSON is not set -# CONFIG_PKG_USING_JSMN is not set -# CONFIG_PKG_USING_LIBMODBUS is not set -# CONFIG_PKG_USING_FREEMODBUS is not set -# CONFIG_PKG_USING_LJSON is not set -# CONFIG_PKG_USING_EZXML is not set -# CONFIG_PKG_USING_NANOPB is not set - -# -# Wi-Fi -# - -# -# Marvell WiFi -# -# CONFIG_PKG_USING_WLANMARVELL is not set - -# -# Wiced WiFi -# -# CONFIG_PKG_USING_WLAN_WICED is not set -# CONFIG_PKG_USING_RW007 is not set -# CONFIG_PKG_USING_COAP is not set -# CONFIG_PKG_USING_NOPOLL is not set -# CONFIG_PKG_USING_NETUTILS is not set -# CONFIG_PKG_USING_CMUX is not set -# CONFIG_PKG_USING_PPP_DEVICE is not set -# CONFIG_PKG_USING_AT_DEVICE is not set -# CONFIG_PKG_USING_ATSRV_SOCKET is not set -# CONFIG_PKG_USING_WIZNET is not set -# CONFIG_PKG_USING_ZB_COORDINATOR is not set - -# -# IoT Cloud -# -# CONFIG_PKG_USING_ONENET is not set -# CONFIG_PKG_USING_GAGENT_CLOUD is not set -# CONFIG_PKG_USING_ALI_IOTKIT is not set -# CONFIG_PKG_USING_AZURE is not set -# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set -# CONFIG_PKG_USING_JIOT-C-SDK is not set -# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set -# CONFIG_PKG_USING_JOYLINK is not set -# CONFIG_PKG_USING_EZ_IOT_OS is not set -# CONFIG_PKG_USING_NIMBLE is not set -# CONFIG_PKG_USING_OTA_DOWNLOADER is not set -# CONFIG_PKG_USING_IPMSG is not set -# CONFIG_PKG_USING_LSSDP is not set -# CONFIG_PKG_USING_AIRKISS_OPEN is not set -# CONFIG_PKG_USING_LIBRWS is not set -# CONFIG_PKG_USING_TCPSERVER is not set -# CONFIG_PKG_USING_PROTOBUF_C is not set -# CONFIG_PKG_USING_DLT645 is not set -# CONFIG_PKG_USING_QXWZ is not set -# CONFIG_PKG_USING_SMTP_CLIENT is not set -# CONFIG_PKG_USING_ABUP_FOTA is not set -# CONFIG_PKG_USING_LIBCURL2RTT is not set -# CONFIG_PKG_USING_CAPNP is not set -# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set -# CONFIG_PKG_USING_AGILE_TELNET is not set -# CONFIG_PKG_USING_NMEALIB is not set -# CONFIG_PKG_USING_AGILE_JSMN is not set -# CONFIG_PKG_USING_PDULIB is not set -# CONFIG_PKG_USING_BTSTACK is not set -# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set -# CONFIG_PKG_USING_WAYZ_IOTKIT is not set -# CONFIG_PKG_USING_MAVLINK is not set -# CONFIG_PKG_USING_RAPIDJSON is not set -# CONFIG_PKG_USING_BSAL is not set -# CONFIG_PKG_USING_AGILE_MODBUS is not set -# CONFIG_PKG_USING_AGILE_FTP is not set -# CONFIG_PKG_USING_EMBEDDEDPROTO is not set -# CONFIG_PKG_USING_RT_LINK_HW is not set -# CONFIG_PKG_USING_LORA_PKT_FWD is not set -# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set -# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set -# CONFIG_PKG_USING_HM is not set -# CONFIG_PKG_USING_SMALL_MODBUS is not set -# CONFIG_PKG_USING_NET_SERVER is not set - -# -# security packages -# -# CONFIG_PKG_USING_MBEDTLS is not set -# CONFIG_PKG_USING_LIBSODIUM is not set -# CONFIG_PKG_USING_TINYCRYPT is not set -# CONFIG_PKG_USING_TFM is not set -# CONFIG_PKG_USING_YD_CRYPTO is not set - -# -# language packages -# -# CONFIG_PKG_USING_LUATOS_SOC is not set -# CONFIG_PKG_USING_LUA is not set -# CONFIG_PKG_USING_JERRYSCRIPT is not set -# CONFIG_PKG_USING_MICROPYTHON is not set -# CONFIG_PKG_USING_PIKASCRIPT is not set - -# -# multimedia packages -# - -# -# LVGL: powerful and easy-to-use embedded GUI library -# -# CONFIG_PKG_USING_LVGL is not set -# CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set - -# -# u8g2: a monochrome graphic library -# -# CONFIG_PKG_USING_U8G2_OFFICIAL is not set -# CONFIG_PKG_USING_U8G2 is not set -# CONFIG_PKG_USING_OPENMV is not set -# CONFIG_PKG_USING_MUPDF is not set -# CONFIG_PKG_USING_STEMWIN is not set -# CONFIG_PKG_USING_WAVPLAYER is not set -# CONFIG_PKG_USING_TJPGD is not set -# CONFIG_PKG_USING_PDFGEN is not set -# CONFIG_PKG_USING_HELIX is not set -# CONFIG_PKG_USING_AZUREGUIX is not set -# CONFIG_PKG_USING_TOUCHGFX2RTT is not set -# CONFIG_PKG_USING_NUEMWIN is not set -# CONFIG_PKG_USING_MP3PLAYER is not set -# CONFIG_PKG_USING_TINYJPEG is not set -# CONFIG_PKG_USING_UGUI is not set - -# -# PainterEngine: A cross-platform graphics application framework written in C language -# -# CONFIG_PKG_USING_PAINTERENGINE is not set -# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set -# CONFIG_PKG_USING_MCURSES is not set -# CONFIG_PKG_USING_TERMBOX is not set -# CONFIG_PKG_USING_VT100 is not set -# CONFIG_PKG_USING_QRCODE is not set - -# -# tools packages -# -# CONFIG_PKG_USING_CMBACKTRACE is not set -# CONFIG_PKG_USING_EASYFLASH is not set -# CONFIG_PKG_USING_EASYLOGGER is not set -# CONFIG_PKG_USING_SYSTEMVIEW is not set -# CONFIG_PKG_USING_SEGGER_RTT is not set -# CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_ULOG_EASYFLASH is not set -# CONFIG_PKG_USING_ULOG_FILE is not set -# CONFIG_PKG_USING_LOGMGR is not set -# CONFIG_PKG_USING_ADBD is not set -# CONFIG_PKG_USING_COREMARK is not set -# CONFIG_PKG_USING_DHRYSTONE is not set -# CONFIG_PKG_USING_MEMORYPERF is not set -# CONFIG_PKG_USING_NR_MICRO_SHELL is not set -# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set -# CONFIG_PKG_USING_LUNAR_CALENDAR is not set -# CONFIG_PKG_USING_BS8116A is not set -# CONFIG_PKG_USING_GPS_RMC is not set -# CONFIG_PKG_USING_URLENCODE is not set -# CONFIG_PKG_USING_UMCN is not set -# CONFIG_PKG_USING_LWRB2RTT is not set -# CONFIG_PKG_USING_CPU_USAGE is not set -# CONFIG_PKG_USING_GBK2UTF8 is not set -# CONFIG_PKG_USING_VCONSOLE is not set -# CONFIG_PKG_USING_KDB is not set -# CONFIG_PKG_USING_WAMR is not set -# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set -# CONFIG_PKG_USING_LWLOG is not set -# CONFIG_PKG_USING_ANV_TRACE is not set -# CONFIG_PKG_USING_ANV_MEMLEAK is not set -# CONFIG_PKG_USING_ANV_TESTSUIT is not set -# CONFIG_PKG_USING_ANV_BENCH is not set -# CONFIG_PKG_USING_DEVMEM is not set -# CONFIG_PKG_USING_REGEX is not set -# CONFIG_PKG_USING_MEM_SANDBOX is not set -# CONFIG_PKG_USING_SOLAR_TERMS is not set -# CONFIG_PKG_USING_GAN_ZHI is not set -# CONFIG_PKG_USING_FDT is not set - -# -# system packages -# - -# -# enhanced kernel services -# -# CONFIG_PKG_USING_RT_MEMCPY_CM is not set -# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set -# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set - -# -# POSIX extension functions -# -# CONFIG_PKG_USING_POSIX_GETLINE is not set -# CONFIG_PKG_USING_POSIX_WCWIDTH is not set -# CONFIG_PKG_USING_POSIX_ITOA is not set -# CONFIG_PKG_USING_POSIX_STRINGS is not set - -# -# acceleration: Assembly language or algorithmic acceleration packages -# -# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set -# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set -# CONFIG_PKG_USING_QFPLIB_M3 is not set - -# -# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard -# -# CONFIG_PKG_USING_CMSIS_5 is not set -# CONFIG_PKG_USING_CMSIS_RTOS2 is not set - -# -# Micrium: Micrium software products porting for RT-Thread -# -# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set -# CONFIG_PKG_USING_UCOSII_WRAPPER is not set -# CONFIG_PKG_USING_UC_CRC is not set -# CONFIG_PKG_USING_UC_CLK is not set -# CONFIG_PKG_USING_UC_COMMON is not set -# CONFIG_PKG_USING_UC_MODBUS is not set -# CONFIG_RT_USING_ARDUINO is not set -# CONFIG_PKG_USING_GUIENGINE is not set -# CONFIG_PKG_USING_CAIRO is not set -# CONFIG_PKG_USING_PIXMAN is not set -# CONFIG_PKG_USING_PARTITION is not set -# CONFIG_PKG_USING_FAL is not set -# CONFIG_PKG_USING_FLASHDB is not set -# CONFIG_PKG_USING_SQLITE is not set -# CONFIG_PKG_USING_RTI is not set -# CONFIG_PKG_USING_DFS_YAFFS is not set -# CONFIG_PKG_USING_LITTLEFS is not set -# CONFIG_PKG_USING_DFS_JFFS2 is not set -# CONFIG_PKG_USING_DFS_UFFS is not set -# CONFIG_PKG_USING_LWEXT4 is not set -# CONFIG_PKG_USING_THREAD_POOL is not set -# CONFIG_PKG_USING_ROBOTS is not set -# CONFIG_PKG_USING_EV is not set -# CONFIG_PKG_USING_SYSWATCH is not set -# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set -# CONFIG_PKG_USING_PLCCORE is not set -# CONFIG_PKG_USING_RAMDISK is not set -# CONFIG_PKG_USING_MININI is not set -# CONFIG_PKG_USING_QBOOT is not set -# CONFIG_PKG_USING_PPOOL is not set -# CONFIG_PKG_USING_OPENAMP is not set -# CONFIG_PKG_USING_LPM is not set -# CONFIG_PKG_USING_TLSF is not set -# CONFIG_PKG_USING_EVENT_RECORDER is not set -# CONFIG_PKG_USING_ARM_2D is not set -# CONFIG_PKG_USING_MCUBOOT is not set -# CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set - -# -# peripheral libraries and drivers -# -# CONFIG_PKG_USING_SENSORS_DRIVERS is not set -# CONFIG_PKG_USING_REALTEK_AMEBA is not set -# CONFIG_PKG_USING_SHT2X is not set -# CONFIG_PKG_USING_SHT3X is not set -# CONFIG_PKG_USING_AS7341 is not set -# CONFIG_PKG_USING_STM32_SDIO is not set -# CONFIG_PKG_USING_ICM20608 is not set -# CONFIG_PKG_USING_BUTTON is not set -# CONFIG_PKG_USING_PCF8574 is not set -# CONFIG_PKG_USING_SX12XX is not set -# CONFIG_PKG_USING_SIGNAL_LED is not set -# CONFIG_PKG_USING_LEDBLINK is not set -# CONFIG_PKG_USING_LITTLED is not set -# CONFIG_PKG_USING_LKDGUI is not set -# CONFIG_PKG_USING_NRF5X_SDK is not set -# CONFIG_PKG_USING_NRFX is not set -# CONFIG_PKG_USING_WM_LIBRARIES is not set -# CONFIG_PKG_USING_KENDRYTE_SDK is not set -# CONFIG_PKG_USING_INFRARED is not set -# CONFIG_PKG_USING_AGILE_BUTTON is not set -# CONFIG_PKG_USING_AGILE_LED is not set -# CONFIG_PKG_USING_AT24CXX is not set -# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set -# CONFIG_PKG_USING_AD7746 is not set -# CONFIG_PKG_USING_PCA9685 is not set -# CONFIG_PKG_USING_I2C_TOOLS is not set -# CONFIG_PKG_USING_NRF24L01 is not set -# CONFIG_PKG_USING_TOUCH_DRIVERS is not set -# CONFIG_PKG_USING_MAX17048 is not set -# CONFIG_PKG_USING_RPLIDAR is not set -# CONFIG_PKG_USING_AS608 is not set -# CONFIG_PKG_USING_RC522 is not set -# CONFIG_PKG_USING_WS2812B is not set -# CONFIG_PKG_USING_EMBARC_BSP is not set -# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set -# CONFIG_PKG_USING_MULTI_RTIMER is not set -# CONFIG_PKG_USING_MAX7219 is not set -# CONFIG_PKG_USING_BEEP is not set -# CONFIG_PKG_USING_EASYBLINK is not set -# CONFIG_PKG_USING_PMS_SERIES is not set -# CONFIG_PKG_USING_CAN_YMODEM is not set -# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set -# CONFIG_PKG_USING_QLED is not set -# CONFIG_PKG_USING_PAJ7620 is not set -# CONFIG_PKG_USING_AGILE_CONSOLE is not set -# CONFIG_PKG_USING_LD3320 is not set -# CONFIG_PKG_USING_WK2124 is not set -# CONFIG_PKG_USING_LY68L6400 is not set -# CONFIG_PKG_USING_DM9051 is not set -# CONFIG_PKG_USING_SSD1306 is not set -# CONFIG_PKG_USING_QKEY is not set -# CONFIG_PKG_USING_RS485 is not set -# CONFIG_PKG_USING_RS232 is not set -# CONFIG_PKG_USING_NES is not set -# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set -# CONFIG_PKG_USING_VDEVICE is not set -# CONFIG_PKG_USING_SGM706 is not set -# CONFIG_PKG_USING_STM32WB55_SDK is not set -# CONFIG_PKG_USING_RDA58XX is not set -# CONFIG_PKG_USING_LIBNFC is not set -# CONFIG_PKG_USING_MFOC is not set -# CONFIG_PKG_USING_TMC51XX is not set -# CONFIG_PKG_USING_TCA9534 is not set -# CONFIG_PKG_USING_KOBUKI is not set -# CONFIG_PKG_USING_ROSSERIAL is not set -# CONFIG_PKG_USING_MICRO_ROS is not set -# CONFIG_PKG_USING_MCP23008 is not set -# CONFIG_PKG_USING_BLUETRUM_SDK is not set -# CONFIG_PKG_USING_MISAKA_AT24CXX is not set -# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set -# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set -# CONFIG_PKG_USING_BL_MCU_SDK is not set -# CONFIG_PKG_USING_SOFT_SERIAL is not set -# CONFIG_PKG_USING_MB85RS16 is not set -# CONFIG_PKG_USING_CW2015 is not set - -# -# AI packages -# -# CONFIG_PKG_USING_LIBANN is not set -# CONFIG_PKG_USING_NNOM is not set -# CONFIG_PKG_USING_ONNX_BACKEND is not set -# CONFIG_PKG_USING_ONNX_PARSER is not set -# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set -# CONFIG_PKG_USING_ELAPACK is not set -# CONFIG_PKG_USING_ULAPACK is not set -# CONFIG_PKG_USING_QUEST is not set -# CONFIG_PKG_USING_NAXOS is not set - -# -# miscellaneous packages -# - -# -# samples: kernel and components samples -# -# CONFIG_PKG_USING_KERNEL_SAMPLES is not set -# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set -# CONFIG_PKG_USING_NETWORK_SAMPLES is not set -# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set - -# -# entertainment: terminal games and other interesting software packages -# -# CONFIG_PKG_USING_CMATRIX is not set -# CONFIG_PKG_USING_SL is not set -# CONFIG_PKG_USING_CAL is not set -# CONFIG_PKG_USING_ACLOCK is not set -# CONFIG_PKG_USING_THREES is not set -# CONFIG_PKG_USING_2048 is not set -# CONFIG_PKG_USING_SNAKE is not set -# CONFIG_PKG_USING_TETRIS is not set -# CONFIG_PKG_USING_DONUT is not set -# CONFIG_PKG_USING_COWSAY is not set -# CONFIG_PKG_USING_LIBCSV is not set -# CONFIG_PKG_USING_OPTPARSE is not set -# CONFIG_PKG_USING_FASTLZ is not set -# CONFIG_PKG_USING_MINILZO is not set -# CONFIG_PKG_USING_QUICKLZ is not set -# CONFIG_PKG_USING_LZMA is not set -# CONFIG_PKG_USING_MULTIBUTTON is not set -# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set -# CONFIG_PKG_USING_CANFESTIVAL is not set -# CONFIG_PKG_USING_ZLIB is not set -# CONFIG_PKG_USING_MINIZIP is not set -# CONFIG_PKG_USING_DSTR is not set -# CONFIG_PKG_USING_TINYFRAME is not set -# CONFIG_PKG_USING_KENDRYTE_DEMO is not set -# CONFIG_PKG_USING_DIGITALCTRL is not set -# CONFIG_PKG_USING_UPACKER is not set -# CONFIG_PKG_USING_UPARAM is not set -# CONFIG_PKG_USING_HELLO is not set -# CONFIG_PKG_USING_VI is not set -# CONFIG_PKG_USING_KI is not set -# CONFIG_PKG_USING_ARMv7M_DWT is not set -# CONFIG_PKG_USING_UKAL is not set -# CONFIG_PKG_USING_CRCLIB is not set -# CONFIG_PKG_USING_LWGPS is not set -# CONFIG_PKG_USING_STATE_MACHINE is not set -# CONFIG_PKG_USING_DESIGN_PATTERN is not set -# CONFIG_PKG_USING_CONTROLLER is not set -# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set -CONFIG_SOC_LS2K1000=y -CONFIG_RT_USING_UART0=y -# CONFIG_RT_USING_UART4 is not set diff --git a/bsp/ls2kdev/Kconfig b/bsp/ls2kdev/Kconfig deleted file mode 100644 index fc2dfe1328..0000000000 --- a/bsp/ls2kdev/Kconfig +++ /dev/null @@ -1,41 +0,0 @@ -mainmenu "RT-Thread Configuration" - -config BSP_DIR - string - option env="BSP_ROOT" - default "." - -config RTT_DIR - string - option env="RTT_ROOT" - default "../.." - -# you can change the RTT_ROOT default "../.." to your rtthread_root, -# example : default "F:/git_repositories/rt-thread" - -config PKGS_DIR - string - option env="PKGS_ROOT" - default "packages" - -source "$RTT_DIR/Kconfig" -source "$RTT_DIR/libcpu/mips/common/Kconfig" -source "$PKGS_DIR/Kconfig" - -config SOC_LS2K1000 - bool - select ARCH_MIPS64 - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - select RT_USING_DEVICE - default y - -if RT_USING_SERIAL -config RT_USING_UART0 - bool "Using RT_USING_UART0" - default y - -config RT_USING_UART4 - bool "Using RT_USING_UART4" - default y -endif diff --git a/bsp/ls2kdev/README.md b/bsp/ls2kdev/README.md deleted file mode 100644 index 08a7dec063..0000000000 --- a/bsp/ls2kdev/README.md +++ /dev/null @@ -1,150 +0,0 @@ -# loongson_pi2 板级支持包说明 - -## 1. 简介 - -2K龙芯派采是首款采用2K1000低功耗处理的嵌入式方案验证板,具有资源丰富、接口齐全、低功耗、高可靠的特点。 - -| 硬件 | 描述 | -| -- | -- | -|芯片型号| 2K1000 | -|CPU| GS264 | -|主频| 1GHz | -|DDR3| 2GB | -|片外Flash| 8Mb SPI FLASH | - -[龙芯派][1]搭载 2K1000 处理器(主频 1GHz),板载 DDR3 颗粒,实现 DDR3 的运行存储功能。实现了 GPIO 的输入输出,中断功能。板上集成 1 个网 口,集成 3 个 USB 接口,HDMI 接口,LCD 接口,音频输入/输出,集成 SD 卡接口,集成 2 个 CAN 接口,集成 RTC 计时功能。可以外扩 WIFI 模块。2K 龙芯派可以广泛应用于信息安 全、电力、轨道交通、工业控制、信号处理、数据通信、信息教育等领域。 - - -## 2. 编译说明 - -环境搭建在**Ubuntu**上进行,首先下载[mips-sde-elf-gcc][2]。该文件存放在网盘中,提取码为ucb2。 - -**windows**上环境搭建可以下载如下工具链: - -[mips-2015.05-19-mips-sde-elf.exe](https://sourcery.mentor.com/GNUToolchain/package13851/public/mips-sde-elf/mips-2015.05-19-mips-sde-elf.exe) - -解压到指定的目录,然后修改当前bsp目录下的`rtconfig.py`文件。 - -```python -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = "/opt/mips-2015.05-19-mips-sde-elf-i686-pc-linux-gnu/mips-2015.05/bin/" -``` - -如果不想修改`rtconfig.py`可以尝试第二种办法: - -安装好工具链后,假设工具链安装在`D:\mgc\embedded\codebench`目录下。使用env工具,打开console后,进入到命令行环境中,需要手动设置工具链的环境变量`RTT_EXEC_PATH`: - - set RTT_EXEC_PATH=D:\mgc\embedded\codebench\bin - -使用env工具,可以在console下进入到`bsp/ls2kdev`目录中,然后在控制台输入`scons`即可,可以生成`rtthread.elf`、`rtthread.bin`文件,其中`rtthread.elf`是下载到开发板上的程序。 - -## 3.程序运行 - -rt-thread固件目前在龙芯派上推荐使用[pmon][3]通过tftp的方式下载到设备内存中运行。 - -其中龙芯派硬件分布如下图所示: - -![loongsonpi](figures/loongsonpi.png) - -首先板子接上12V的电源,然后连接串口,该串口为RS232,所以需要RS232转USB线来进行连接。接着连接`LAN0`网口。 - -初次上电时,需要按下开发板的`START`按键,听到`滴`启动声后可以在控制台看到串口打印信息。通过启动时在控制台不停的按下字符`c`直到进入到pmon控制台。 - - - -需要让开发板和主机处于同一网段,利用pmon的tftp进行固件传输。首先查看主机的ip地址,如果`ifconfig`查看ip是`192.168.12.35`。输入以下指令开始运行。 - -``` -ifaddr syn0 192.168.12.100 -load tftp://192.168.12.35/rtthread.elf; -g -``` - -其中`ifaddr`是设置pmon设置网络的命令,`syn0`表示第一个网卡。然后从tftp的主机上加载`rtthread.elf`文件,此时主机必须有tftp服务器。`g`表示程序跳转运行。 - -而后可以看到rtthread程序正常的运行。 - -``` - zero at v0 v1 a0 a1 a2 a3 - 00000000 00000000 00000000 00000000 00000003 aafffea8 8f800000 8f1371d0 - t0 t1 t2 t3 t4 t5 t6 t7 - 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 - s0 s1 s2 s3 s4 s5 s6 s7 - 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 - t8 t9 k0 k1 gp sp s8 ra - 00000000 00000000 00000000 00000000 00000000 aafffe88 00000000 8f0b1418 -Current SR: 0x10008080 - - \ | / -- RT - Thread Operating System - / | \ 4.0.3 build Apr 7 2020 - 2006 - 2020 Copyright by rt-thread team -Hi, this is RT-Thread!! -msh > -``` - -## 4.开机自动启动 - -在调试阶段,可以利用脚本,在pmon阶段从TFTP服务器上获取固件,然后引导启动。这样可以节省开发配置的时间。具体的步骤如下: - -**第一步:** -设置开发板的IP地址,在进入pmon的控制台后,输入`set ifconfig syn0:10.1.1.100`。其中`syn0`后面的ip地址为开发板的ip地址,与存放rt-thread固件的TFTP的服务器IP地址在**同一网段**。 - -**第二步:** - -进入龙芯的Debian系统,用管理员权限进入,输入用户名`root`,密码`loongson`。并且修改boot分区下的boot.cfg文件。增加如下: - -``` -title TFTPBOOT - kernel tftp://10.1.1.118/rtthread.elf - args console=tty root=/dev/sda2 - initrd (wd0,0)/initrd.img -``` - -其中`tftp://10.1.1.118/rtthread.elf`中的`10.1.1.118`为tftp服务器的ip地址。 - -**第三步:** - -电脑开启TFTP服务器,将路径指向存放有ls2k的rt-thread固件的目录下。 - -以上三步完成之后,重启系统,就可以省略每次都需要进入pmon的输入命令的麻烦,板子上电后,可以自动从系统TFTP服务器中获取固件,然后启动,大大提高调试代码效率。 - -## 5.SATA接口的SSD文件系统支持 - -当前已经支持SATA接口的SSD文件系统驱动,需要通过menuconfig - -``` -RT-Thread online packages ---> - system packages ---> - lwext4: an excellent choice of ext2/3/4 filesystem for microcontrollers -``` - -然后输入下面的命令更新软件包 - -``` -pkgs --update -``` - -输入`scons`编译代码即可使用SATA接口的SSD文件系统。 - -## 6. 支持情况 - -| 驱动 | 支持情况 | 备注 | -| ------ | ---- | :------: | -| UART | 支持 | UART0\UART4,波特率可调 | -| GPIO | 支持 | - | -| PWM | 支持 | - | -| GMAC | 支持 | 网卡驱动 | -| RTC | 支持 | - | -| SPI | 支持 | - | -| SATA SSD | 支持 | 需要打开lwext4软件包 | - -## 7. 联系人信息 - -维护人:[bernard][4] - -[1]: http://ftp.loongnix.org/loongsonpi/pi_2/doc -[2]: https://pan.baidu.com/s/17dbdOE4NAJ-qEW7drVRq2w -[3]: http://ftp.loongnix.org/embedd/ls2k/ -[4]: https://github.com/BernardXiong \ No newline at end of file diff --git a/bsp/ls2kdev/SConscript b/bsp/ls2kdev/SConscript deleted file mode 100644 index 0992612410..0000000000 --- a/bsp/ls2kdev/SConscript +++ /dev/null @@ -1,12 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/ls2kdev/SConstruct b/bsp/ls2kdev/SConstruct deleted file mode 100644 index fc142ce460..0000000000 --- a/bsp/ls2kdev/SConstruct +++ /dev/null @@ -1,39 +0,0 @@ -import os -import sys -import rtconfig - -from rtconfig import RTT_ROOT - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) -env['ASCOM'] = env['ASPPCOM'] - -Export('RTT_ROOT') -Export('rtconfig') - - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -rtconfig.LFLAGS += " -Ttext 0xffffffff80200000" -env.Replace(LINKFLAGS = rtconfig.LFLAGS) - -if GetDepend('RT_USING_FPU'): - env['CFLAGS'] = env['CFLAGS'].replace('-msoft-float', '-mhard-float') - env['ASFLAGS'] = env['ASFLAGS'].replace('-msoft-float', '-mhard-float') - env['CXXFLAGS'] = env['CXXFLAGS'].replace('-msoft-float', '-mhard-float') - env['LINKFLAGS'] = env['LINKFLAGS'].replace('-msoft-float', '-mhard-float') - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/ls2kdev/applications/SConscript b/bsp/ls2kdev/applications/SConscript deleted file mode 100644 index fb5ce2ce93..0000000000 --- a/bsp/ls2kdev/applications/SConscript +++ /dev/null @@ -1,8 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -group = DefineGroup('Applications', src, depend = ['']) - -Return('group') diff --git a/bsp/ls2kdev/applications/main.c b/bsp/ls2kdev/applications/main.c deleted file mode 100644 index 053e741bfa..0000000000 --- a/bsp/ls2kdev/applications/main.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic first version - */ - -#include - -int main(int argc, char **argv) -{ - rt_kprintf("Hi, this is RT-Thread!!\n"); - return 0; -} diff --git a/bsp/ls2kdev/applications/mnt.c b/bsp/ls2kdev/applications/mnt.c deleted file mode 100644 index 1c9b9b047a..0000000000 --- a/bsp/ls2kdev/applications/mnt.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-12-29 bigmagic first version - */ -#include -#include - -#ifdef PKG_USING_LWEXT4 - -#include -#include -#include -#include -#include -#include -#include -#include - -#define EXT4_DEBUG_ALL (0xFFFFFFFF) -#define EXT4_DEBUG_NO (0) - -int mount_ssd(void) -{ - struct blk_device *blkdev = (struct blk_device *)rt_device_find("dwc_ahsata_blk"); - - if(blkdev == RT_NULL) - { - rt_kprintf("dwc_ahsata_blk not found!\n"); - return; - } - - ext4_dmask_set(EXT4_DEBUG_NO); - blk_device_init(blkdev); - dfs_mount("dwc_ahsata_blk","/","ext",0,(void *)1); - dfs_mount("dwc_ahsata_blk","/boot","ext",0,(void *)0); - - return 0; -} - -INIT_ENV_EXPORT(mount_ssd); - -#endif diff --git a/bsp/ls2kdev/drivers/SConscript b/bsp/ls2kdev/drivers/SConscript deleted file mode 100644 index 33310b6d7e..0000000000 --- a/bsp/ls2kdev/drivers/SConscript +++ /dev/null @@ -1,20 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -group = group + objs - -Return('group') diff --git a/bsp/ls2kdev/drivers/ata/SConscript b/bsp/ls2kdev/drivers/ata/SConscript deleted file mode 100644 index 164023bd1f..0000000000 --- a/bsp/ls2kdev/drivers/ata/SConscript +++ /dev/null @@ -1,14 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -CPPPATH = [cwd] - -if GetDepend('RT_USING_DFS_ELMFAT') == False: - SrcRemove(src, 'dwc_ahsata.c') - SrcRemove(src, 'libata.c') - -group = DefineGroup('Drivers', src, depend = ['PKG_USING_LWEXT4'], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls2kdev/drivers/ata/ahci.h b/bsp/ls2kdev/drivers/ata/ahci.h deleted file mode 100644 index bccec2c379..0000000000 --- a/bsp/ls2kdev/drivers/ata/ahci.h +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - -#ifndef _AHCI_H_ -#define _AHCI_H_ - -#define AHCI_PCI_BAR 0x24 -#define AHCI_MAX_SG 56 /* hardware max is 64K */ -#define AHCI_CMD_SLOT_SZ 32 -#define AHCI_MAX_CMD_SLOT 32 -#define AHCI_RX_FIS_SZ 256 -#define AHCI_CMD_TBL_HDR 0x80 -#define AHCI_CMD_TBL_CDB 0x40 -#define AHCI_CMD_TBL_SZ AHCI_CMD_TBL_HDR + (AHCI_MAX_SG * 16) -#define AHCI_PORT_PRIV_DMA_SZ (AHCI_CMD_SLOT_SZ * AHCI_MAX_CMD_SLOT + \ - AHCI_CMD_TBL_SZ + AHCI_RX_FIS_SZ) -#define AHCI_CMD_ATAPI (1 << 5) -#define AHCI_CMD_WRITE (1 << 6) -#define AHCI_CMD_PREFETCH (1 << 7) -#define AHCI_CMD_RESET (1 << 8) -#define AHCI_CMD_CLR_BUSY (1 << 10) - -#define RX_FIS_D2H_REG 0x40 /* offset of D2H Register FIS data */ - -/* Global controller registers */ -#define HOST_CAP 0x00 /* host capabilities */ -#define HOST_CTL 0x04 /* global host control */ -#define HOST_IRQ_STAT 0x08 /* interrupt status */ -#define HOST_PORTS_IMPL 0x0c /* bitmap of implemented ports */ -#define HOST_VERSION 0x10 /* AHCI spec. version compliancy */ -#define HOST_CAP2 0x24 /* host capabilities, extended */ - -/* HOST_CTL bits */ -#define HOST_RESET (1 << 0) /* reset controller; self-clear */ -#define HOST_IRQ_EN (1 << 1) /* global IRQ enable */ -#define HOST_AHCI_EN (1 << 31) /* AHCI enabled */ - -/* Registers for each SATA port */ -#define PORT_LST_ADDR 0x00 /* command list DMA addr */ -#define PORT_LST_ADDR_HI 0x04 /* command list DMA addr hi */ -#define PORT_FIS_ADDR 0x08 /* FIS rx buf addr */ -#define PORT_FIS_ADDR_HI 0x0c /* FIS rx buf addr hi */ -#define PORT_IRQ_STAT 0x10 /* interrupt status */ -#define PORT_IRQ_MASK 0x14 /* interrupt enable/disable mask */ -#define PORT_CMD 0x18 /* port command */ -#define PORT_TFDATA 0x20 /* taskfile data */ -#define PORT_SIG 0x24 /* device TF signature */ -#define PORT_CMD_ISSUE 0x38 /* command issue */ -#define PORT_SCR 0x28 /* SATA phy register block */ -#define PORT_SCR_STAT 0x28 /* SATA phy register: SStatus */ -#define PORT_SCR_CTL 0x2c /* SATA phy register: SControl */ -#define PORT_SCR_ERR 0x30 /* SATA phy register: SError */ -#define PORT_SCR_ACT 0x34 /* SATA phy register: SActive */ - -#ifdef CONFIG_SUNXI_AHCI -#define PORT_P0DMACR 0x70 /* SUNXI specific "DMA register" */ -#endif - -/* PORT_IRQ_{STAT,MASK} bits */ -#define PORT_IRQ_COLD_PRES (1 << 31) /* cold presence detect */ -#define PORT_IRQ_TF_ERR (1 << 30) /* task file error */ -#define PORT_IRQ_HBUS_ERR (1 << 29) /* host bus fatal error */ -#define PORT_IRQ_HBUS_DATA_ERR (1 << 28) /* host bus data error */ -#define PORT_IRQ_IF_ERR (1 << 27) /* interface fatal error */ -#define PORT_IRQ_IF_NONFATAL (1 << 26) /* interface non-fatal error */ -#define PORT_IRQ_OVERFLOW (1 << 24) /* xfer exhausted available S/G */ -#define PORT_IRQ_BAD_PMP (1 << 23) /* incorrect port multiplier */ - -#define PORT_IRQ_PHYRDY (1 << 22) /* PhyRdy changed */ -#define PORT_IRQ_DEV_ILCK (1 << 7) /* device interlock */ -#define PORT_IRQ_CONNECT (1 << 6) /* port connect change status */ -#define PORT_IRQ_SG_DONE (1 << 5) /* descriptor processed */ -#define PORT_IRQ_UNK_FIS (1 << 4) /* unknown FIS rx'd */ -#define PORT_IRQ_SDB_FIS (1 << 3) /* Set Device Bits FIS rx'd */ -#define PORT_IRQ_DMAS_FIS (1 << 2) /* DMA Setup FIS rx'd */ -#define PORT_IRQ_PIOS_FIS (1 << 1) /* PIO Setup FIS rx'd */ -#define PORT_IRQ_D2H_REG_FIS (1 << 0) /* D2H Register FIS rx'd */ - -#define PORT_IRQ_FATAL PORT_IRQ_TF_ERR | PORT_IRQ_HBUS_ERR | PORT_IRQ_HBUS_DATA_ERR | PORT_IRQ_IF_ERR - -#define DEF_PORT_IRQ PORT_IRQ_FATAL | PORT_IRQ_PHYRDY | PORT_IRQ_CONNECT | PORT_IRQ_SG_DONE | PORT_IRQ_UNK_FIS | PORT_IRQ_SDB_FIS | PORT_IRQ_DMAS_FIS | PORT_IRQ_PIOS_FIS | PORT_IRQ_D2H_REG_FIS - -/* PORT_SCR_STAT bits */ -#define PORT_SCR_STAT_DET_MASK 0x3 -#define PORT_SCR_STAT_DET_COMINIT 0x1 -#define PORT_SCR_STAT_DET_PHYRDY 0x3 - -/* PORT_CMD bits */ -#define PORT_CMD_ATAPI (1 << 24) /* Device is ATAPI */ -#define PORT_CMD_LIST_ON (1 << 15) /* cmd list DMA engine running */ -#define PORT_CMD_FIS_ON (1 << 14) /* FIS DMA engine running */ -#define PORT_CMD_FIS_RX (1 << 4) /* Enable FIS receive DMA engine */ -#define PORT_CMD_CLO (1 << 3) /* Command list override */ -#define PORT_CMD_POWER_ON (1 << 2) /* Power up device */ -#define PORT_CMD_SPIN_UP (1 << 1) /* Spin up device */ -#define PORT_CMD_START (1 << 0) /* Enable port DMA engine */ - -#define PORT_CMD_ICC_ACTIVE (0x1 << 28) /* Put i/f in active state */ -#define PORT_CMD_ICC_PARTIAL (0x2 << 28) /* Put i/f in partial state */ -#define PORT_CMD_ICC_SLUMBER (0x6 << 28) /* Put i/f in slumber state */ - -#define AHCI_MAX_PORTS 32 - -#define ATA_FLAG_SATA (1 << 3) -#define ATA_FLAG_NO_LEGACY (1 << 4) /* no legacy mode check */ -#define ATA_FLAG_MMIO (1 << 6) /* use MMIO, not PIO */ -#define ATA_FLAG_SATA_RESET (1 << 7) /* (obsolete) use COMRESET */ -#define ATA_FLAG_PIO_DMA (1 << 8) /* PIO cmds via DMA */ -#define ATA_FLAG_NO_ATAPI (1 << 11) /* No ATAPI support */ - -struct ahci_cmd_hdr -{ - u32 opts; - u32 status; - u64 tbl_addr; - //u32 tbl_addr_hi; - u32 reserved[4]; -}; - -struct ahci_sg -{ - u64 addr; - //u32 addr_hi; - u32 reserved; - u32 flags_size; -}; - -struct ahci_ioports -{ - void __iomem *port_mmio; - struct ahci_cmd_hdr *cmd_slot; - struct ahci_sg *cmd_tbl_sg; - ulong cmd_tbl; - u32 rx_fis; -}; - -/** - * struct ahci_uc_priv - information about an AHCI controller - * - * When driver model is used, this is accessible using dev_get_uclass_priv(dev) - * where dev is the controller (although at present it sometimes stands alone). - */ -struct ahci_uc_priv -{ - struct rt_device parent; - struct ahci_ioports port[AHCI_MAX_PORTS]; - u16 *ataid[AHCI_MAX_PORTS]; - u32 n_ports; - u32 hard_port_no; - u32 host_flags; - u32 host_set_flags; - void *mmio_base; - u32 pio_mask; - u32 udma_mask; - u32 flags; - u32 cap; /* cache of HOST_CAP register */ - u32 port_map; /* cache of HOST_PORTS_IMPL reg */ - u32 link_port_map; /*linkup port map*/ -}; - -struct ahci_ops -{ - /** - * reset() - reset the controller - * - * @dev: Controller to reset - * @return 0 if OK, -ve on error - */ - int (*reset)(struct rt_device *dev); - - /** - * port_status() - get the status of a SATA port - * - * @dev: Controller to reset - * @port: Port number to check (0 for first) - * @return 0 if detected, -ENXIO if nothing on port, other -ve on error - */ - int (*port_status)(struct rt_device *dev, int port); - - /** - * scan() - scan SATA ports - * - * @dev: Controller to scan - * @return 0 if OK, -ve on error - */ - int (*scan)(struct rt_device *dev); -}; - -#define ahci_get_ops(dev) ((struct ahci_ops *)(dev)->driver->ops) - -/** - * sata_reset() - reset the controller - * - * @dev: Controller to reset - * @return 0 if OK, -ve on error - */ -int sata_reset(struct rt_device *dev); - -/** - * sata_port_status() - get the status of a SATA port - * - * @dev: Controller to reset - * @port: Port number to check (0 for first) - * @return 0 if detected, -ENXIO if nothin on port, other -ve on error - */ -int sata_dm_port_status(struct rt_device *dev, int port); - -/** - * sata_scan() - scan SATA ports - * - * @dev: Controller to scan - * @return 0 if OK, -ve on error - */ -int sata_scan(struct rt_device *dev); - -int ahci_init(void __iomem *base); -int ahci_reset(void __iomem *base); - -/** - * ahci_init_one_dm() - set up a single AHCI port - * - * @dev: Controller to init - */ -int ahci_init_one_dm(struct rt_device *dev); - -/** - * ahci_start_ports_dm() - start all AHCI ports for a controller - * - * @dev: Controller containing ports to start - */ -int ahci_start_ports_dm(struct rt_device *dev); - -/** - * ahci_init_dm() - init AHCI for a controller, finding all ports - * - * @dev: Device to init - */ -int ahci_init_dm(struct rt_device *dev, void __iomem *base); - -/** - * ahci_bind_scsi() - bind a new SCSI bus as a child - * - * Note that the SCSI bus device will itself bind block devices - * - * @ahci_dev: AHCI parent device - * @devp: Returns new SCSI bus device - * @return 0 if OK, -ve on error - */ -int ahci_bind_scsi(struct rt_device *ahci_dev, struct rt_device **devp); - -/** - * ahci_probe_scsi() - probe and scan the attached SCSI bus - * - * Note that the SCSI device will itself bind block devices for any storage - * devices it finds. - * - * @ahci_dev: AHCI parent device - * @base: Base address of AHCI port - * @return 0 if OK, -ve on error - */ -int ahci_probe_scsi(struct rt_device *ahci_dev, ulong base); - -/** - * ahci_probe_scsi_pci() - probe and scan the attached SCSI bus on PCI - * - * Note that the SCSI device will itself bind block devices for any storage - * devices it finds. - * - * @ahci_dev: AHCI parent device - * @return 0 if OK, -ve on error - */ -int ahci_probe_scsi_pci(struct rt_device *ahci_dev); - -#endif diff --git a/bsp/ls2kdev/drivers/ata/ata_debug.h b/bsp/ls2kdev/drivers/ata/ata_debug.h deleted file mode 100644 index cf628d73ea..0000000000 --- a/bsp/ls2kdev/drivers/ata/ata_debug.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui first version - */ - -#ifndef __ATA_DEBUG_H__ -#define __ATA_DEBUG_H__ -//#define ATA_DEBUG -#include -#ifdef ATA_DEBUG -#define debug rt_kprintf -#else -#define debug(...) -#endif -#endif diff --git a/bsp/ls2kdev/drivers/ata/ata_interface.h b/bsp/ls2kdev/drivers/ata/ata_interface.h deleted file mode 100644 index fc7fb5cbe6..0000000000 --- a/bsp/ls2kdev/drivers/ata/ata_interface.h +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui first version - */ - -#ifndef __ATA_INTERFACE_H__ -#define __ATA_INTERFACE_H__ - -typedef rt_uint8_t u8; -typedef rt_uint16_t u16; -typedef rt_uint32_t u32; -typedef rt_uint64_t u64; -typedef rt_uint64_t ulong; - -typedef rt_int8_t s8; -typedef rt_int16_t s16; -typedef rt_int32_t s32; -typedef rt_int64_t s64; - -typedef rt_size_t lbaint_t; - -#define __iomem -#define mdelay rt_thread_mdelay -#define udelay(...) rt_thread_mdelay(1) - -#define cpu_to_le32 -#define cpu_to_le16 -#define le32_to_cpu -#define le16_to_cpu - -#define flush_cache(...) -#define invalidate_dcache_range(...) - -#define ARCH_DMA_MINALIGN 1024 - -#define CONFIG_IS_ENABLED -#define AHCI 1 - -#define VADDR_TO_PHY(vaddr) (((u64)vaddr) - KSEG0BASE) -#define LOW_PHY(vaddr) ((u32)VADDR_TO_PHY(vaddr)) -#define HIGH_PHY(vaddr) ((u32)((VADDR_TO_PHY(vaddr)) >> 32)) - -#define ALIGN_1(x, a) __ALIGN_MASK((x), (typeof(x))(a)-1) -#define ALIGN_DOWN(x, a) ALIGN_1((x) - ((a)-1), (a)) -#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) -#define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) -#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a)-1)) == 0) - -#define ROUND(a, b) (((a) + (b)-1) & ~((b)-1)) - -#define PAD_COUNT(s, pad) (((s)-1) / (pad) + 1) -#define PAD_SIZE(s, pad) (PAD_COUNT(s, pad) * pad) -#define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad) \ - char __##name[ROUND(PAD_SIZE((size) * sizeof(type), pad), align) + (align - 1)]; \ - \ - type *name = (type *)ALIGN_1((rt_ubase_t)__##name, align) -#define ALLOC_ALIGN_BUFFER(type, name, size, align) \ - ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, 1) -#define ALLOC_CACHE_ALIGN_BUFFER_PAD(type, name, size, pad) \ - ALLOC_ALIGN_BUFFER_PAD(type, name, size, ARCH_DMA_MINALIGN, pad) -#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \ - ALLOC_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN) - -static inline u32 readl(void *addr) -{ - return *((u32 *)addr); -} - -static inline void writel(u32 data, void *addr) -{ - *((u32 *)addr) = data; -} - -static inline int ffs(int word) -{ - int r; - - if (word == 0) - { - return 0; - } - - word &= (-word); - - __asm__("clz %0, %1" - : "=r"(r) - : "r"(word)); - return 32 - r; -} - -static inline void setbits_le32(u32 *addr, u32 value) -{ - *addr = value; -} - -#endif diff --git a/bsp/ls2kdev/drivers/ata/blk_device.c b/bsp/ls2kdev/drivers/ata/blk_device.c deleted file mode 100644 index c6ed880988..0000000000 --- a/bsp/ls2kdev/drivers/ata/blk_device.c +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui first version - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -static struct blk_device *blkdev; -static rt_uint32_t disk_sector_size; - -static int blockdev_open(struct ext4_blockdev *bdev) -{ - int r; - uint32_t size; - rt_device_t device = (rt_device_t)blkdev; - struct rt_device_blk_geometry geometry; - - RT_ASSERT(device); - - r = rt_device_open((rt_device_t)blkdev, RT_DEVICE_OFLAG_RDWR); - - if (r != RT_EOK) - { - return r; - } - - r = rt_device_control(device, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry); - - if (RT_EOK == r) - { - bdev->part_offset = 0; - bdev->part_size = geometry.sector_count * geometry.bytes_per_sector; - disk_sector_size = geometry.bytes_per_sector; - bdev->bdif->ph_bcnt = bdev->part_size / bdev->bdif->ph_bsize; - } - - return r; -} - -static int blockdev_bread(struct ext4_blockdev *bdev, void *buf, uint64_t blk_id, - uint32_t blk_cnt) -{ - int result; - rt_device_t device = (rt_device_t)blkdev; - struct blk_device *blk = (struct blk_device *)device; - RT_ASSERT(device); - - result = rt_device_read(device, blk_id * (bdev->bdif->ph_bsize / disk_sector_size), - buf, blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)); - - if ((blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)) == result) - { - result = 0; - } - else - { - result = -EIO; - } - - return result; -} - -static int blockdev_bwrite(struct ext4_blockdev *bdev, const void *buf, - uint64_t blk_id, uint32_t blk_cnt) -{ - int result; - rt_device_t device = (rt_device_t)blkdev; - - RT_ASSERT(device); - - result = rt_device_write(device, blk_id * (bdev->bdif->ph_bsize / disk_sector_size), - buf, blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)); - - if ((blk_cnt * (bdev->bdif->ph_bsize / disk_sector_size)) == result) - { - result = 0; - } - else - { - result = -EIO; - } - - return result; -} - -static int blockdev_close(struct ext4_blockdev *bdev) -{ - return rt_device_close((rt_device_t)blkdev); -} - -static int blockdev_lock(struct ext4_blockdev *bdev) -{ - return 0; -} - -static int blockdev_unlock(struct ext4_blockdev *bdev) -{ - return 0; -} - -EXT4_BLOCKDEV_STATIC_INSTANCE(bdev, 4096, 0, blockdev_open, - blockdev_bread, blockdev_bwrite, blockdev_close, - blockdev_lock, blockdev_unlock); - -void blk_device_init(struct blk_device *blk_devices) -{ - blkdev = blk_devices; - - if (ext4_mbr_scan(&bdev, &(blkdev->ext4_partition)) != EOK) - { - rt_kprintf("MBR scan failed!\n"); - return; - } -} diff --git a/bsp/ls2kdev/drivers/ata/blk_device.h b/bsp/ls2kdev/drivers/ata/blk_device.h deleted file mode 100644 index 8401e8aac6..0000000000 --- a/bsp/ls2kdev/drivers/ata/blk_device.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui first version - */ - -#ifndef __BLK_DEVICE_H__ -#define __BLK_DEVICE_H__ - -#include -#include - -#define DEV_TYPE_UNKNOWN 0xff /* not connected */ -#define DEV_TYPE_HARDDISK 0x00 /* harddisk */ -#define DEV_TYPE_TAPE 0x01 /* Tape */ -#define DEV_TYPE_CDROM 0x05 /* CD-ROM */ -#define DEV_TYPE_OPDISK 0x07 /* optical disk */ - -struct blk_device -{ - struct rt_device parent; - struct ahci_uc_priv *ahci_device; - - rt_uint8_t target; - rt_uint8_t lun; - rt_uint8_t type; - -#ifdef RT_USING_DFS_LWEXT4 - struct ext4_mbr_bdevs ext4_partition; -#endif - - rt_bool_t lba48; - rt_uint64_t lba; - rt_uint64_t blksz; - rt_int32_t log2blksz; - - char product[21]; - char revision[9]; - char vendor[41]; -}; - -void blk_device_init(struct blk_device *blk_devices); - -#endif diff --git a/bsp/ls2kdev/drivers/ata/dwc_ahsata.c b/bsp/ls2kdev/drivers/ata/dwc_ahsata.c deleted file mode 100644 index bf76636e06..0000000000 --- a/bsp/ls2kdev/drivers/ata/dwc_ahsata.c +++ /dev/null @@ -1,1234 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "dwc_ahsata_priv.h" - -struct sata_port_regs -{ - u32 clb; - u32 clbu; - u32 fb; - u32 fbu; - u32 is; - u32 ie; - u32 cmd; - u32 res1[1]; - u32 tfd; - u32 sig; - u32 ssts; - u32 sctl; - u32 serr; - u32 sact; - u32 ci; - u32 sntf; - u32 res2[1]; - u32 dmacr; - u32 res3[1]; - u32 phycr; - u32 physr; -}; - -struct sata_host_regs -{ - u32 cap; - u32 ghc; - u32 is; - u32 pi; - u32 vs; - u32 ccc_ctl; - u32 ccc_ports; - u32 res1[2]; - u32 cap2; - u32 res2[30]; - u32 bistafr; - u32 bistcr; - u32 bistfctr; - u32 bistsr; - u32 bistdecr; - u32 res3[2]; - u32 oobr; - u32 res4[8]; - u32 timer1ms; - u32 res5[1]; - u32 gparam1r; - u32 gparam2r; - u32 pparamr; - u32 testr; - u32 versionr; - u32 idr; -}; - -#define MAX_DATA_BYTES_PER_SG (4 * 1024 * 1024) -#define MAX_BYTES_PER_TRANS (AHCI_MAX_SG * MAX_DATA_BYTES_PER_SG) - -#define writel_with_flush(a, b) \ - do \ - { \ - writel(a, b); \ - readl(b); \ - } while (0) - -static inline void __iomem *ahci_port_base(void __iomem *base, u32 port) -{ - return base + 0x100 + (port * 0x80); -} - -static int waiting_for_cmd_completed(u8 *offset, int timeout_msec, u32 sign) -{ - int i; - u32 status; - - for (i = 0; ((status = readl(offset)) & sign) && i < timeout_msec; i++) - { - mdelay(1); - } - - return (i < timeout_msec) ? 0 : -1; -} - -static int ahci_setup_oobr(struct ahci_uc_priv *uc_priv, int clk) -{ - struct sata_host_regs *host_mmio = uc_priv->mmio_base; - - writel(SATA_HOST_OOBR_WE, &host_mmio->oobr); - writel(0x02060b14, &host_mmio->oobr); - - return 0; -} - -int ahci_host_init(struct ahci_uc_priv *uc_priv) -{ - u32 tmp, cap_save, num_ports; - int i, j, timeout = 1000; - struct sata_port_regs *port_mmio = NULL; - struct sata_host_regs *host_mmio = uc_priv->mmio_base; - - //prepare to enable staggered spin-up - cap_save = readl(&host_mmio->cap); - cap_save |= SATA_HOST_CAP_SSS; - - /* global controller reset */ - tmp = readl(&host_mmio->ghc); - - //ahsata controller reset - if ((tmp & SATA_HOST_GHC_HR) == 0) - { - writel_with_flush(tmp | SATA_HOST_GHC_HR, &host_mmio->ghc); - } - - //wait for reset finishing - while ((readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) && --timeout) - ; - - //reset timeout - if (timeout <= 0) - { - debug("controller reset failed (0x%x)\n", tmp); - return -1; - } - - /* Set timer 1ms @ 100MHz*/ - writel(100000000 / 1000, &host_mmio->timer1ms); - - ahci_setup_oobr(uc_priv, 0); - - //enable ahci - writel_with_flush(SATA_HOST_GHC_AE, &host_mmio->ghc); - - //enable staggered spin-up - writel(cap_save, &host_mmio->cap); - - //get sata port number - num_ports = (cap_save & SATA_HOST_CAP_NP_MASK) + 1; - - //initialize pi register to set correct port number - writel_with_flush((1 << num_ports) - 1, &host_mmio->pi); - - /* - * Determine which Ports are implemented by the DWC_ahsata, - * by reading the PI register. This bit map value aids the - * software to determine how many Ports are available and - * which Port registers need to be initialized. - */ - uc_priv->cap = readl(&host_mmio->cap); - uc_priv->port_map = readl(&host_mmio->pi); - - /* Determine how many command slots the HBA supports */ - uc_priv->n_ports = (uc_priv->cap & SATA_HOST_CAP_NP_MASK) + 1; - - debug("cap 0x%x port_map 0x%x n_ports %d\n", - uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); - - for (i = 0; i < uc_priv->n_ports; i++) - { - uc_priv->port[i].port_mmio = ahci_port_base(host_mmio, i); - port_mmio = uc_priv->port[i].port_mmio; - - /* Ensure that the DWC_ahsata is in idle state */ - tmp = readl(&port_mmio->cmd); - - /* - * When P#CMD.ST, P#CMD.CR, P#CMD.FRE and P#CMD.FR - * are all cleared, the Port is in an idle state. - */ - if (tmp & (SATA_PORT_CMD_CR | SATA_PORT_CMD_FR | - SATA_PORT_CMD_FRE | SATA_PORT_CMD_ST)) - { - - /* - * System software places a Port into the idle state by - * clearing P#CMD.ST and waiting for P#CMD.CR to return - * 0 when read. - */ - tmp &= ~SATA_PORT_CMD_ST; - writel_with_flush(tmp, &port_mmio->cmd); - - /* - * spec says 500 msecs for each bit, so - * this is slightly incorrect. - */ - mdelay(500); - - timeout = 1000; - while ((readl(&port_mmio->cmd) & SATA_PORT_CMD_CR) && --timeout) - ; - - if (timeout <= 0) - { - debug("port reset failed (0x%x)\n", tmp); - return -1; - } - } - - /* Spin-up device */ - tmp = readl(&port_mmio->cmd); - writel((tmp | SATA_PORT_CMD_SUD), &port_mmio->cmd); - - /* Wait for spin-up to finish */ - timeout = 1000; - while (!(readl(&port_mmio->cmd) | SATA_PORT_CMD_SUD) && --timeout) - ; - - if (timeout <= 0) - { - debug("Spin-Up can't finish!\n"); - return -1; - } - - for (j = 0; j < 100; ++j) - { - mdelay(10); - tmp = readl(&port_mmio->ssts); - if (((tmp & SATA_PORT_SSTS_DET_MASK) == 0x3) || - ((tmp & SATA_PORT_SSTS_DET_MASK) == 0x1)) - { - break; - } - } - - /* Wait for COMINIT bit 26 (DIAG_X) in SERR */ - timeout = 1000; - while (!(readl(&port_mmio->serr) & SATA_PORT_SERR_DIAG_X) && --timeout) - ; - - if (timeout <= 0) - { - debug("Can't find DIAG_X set!\n"); - return -1; - } - - /* - * For each implemented Port, clear the P#SERR - * register, by writing ones to each implemented\ - * bit location. - */ - tmp = readl(&port_mmio->serr); - debug("P#SERR 0x%x\n", - tmp); - writel(tmp, &port_mmio->serr); - - /* Ack any pending irq events for this port */ - tmp = readl(&host_mmio->is); - debug("IS 0x%x\n", tmp); - if (tmp) - { - writel(tmp, &host_mmio->is); - } - - writel(1 << i, &host_mmio->is); - - /* set irq mask (enables interrupts) */ - writel(DEF_PORT_IRQ, &port_mmio->ie); - - /* register linkup ports */ - tmp = readl(&port_mmio->ssts); - debug("Port %d status: 0x%x\n", i, tmp); - if ((tmp & SATA_PORT_SSTS_DET_MASK) == 0x03) - { - uc_priv->link_port_map |= (0x01 << i); - } - } - - tmp = readl(&host_mmio->ghc); - debug("GHC 0x%x\n", tmp); - //Interrupt Enable - writel(tmp | SATA_HOST_GHC_IE, &host_mmio->ghc); - tmp = readl(&host_mmio->ghc); - debug("GHC 0x%x\n", tmp); - - return 0; -} - -int rt_hw_ahci_host_init() -{ - struct ahci_uc_priv *ahci_device; - ahci_device = (struct ahci_uc_priv *)rt_device_create(RT_Device_Class_Miscellaneous, sizeof(struct ahci_uc_priv) - sizeof(struct rt_device)); - - ahci_device->mmio_base = (void *)DWCAHSATA_BASE; - ahci_device->parent.init = NULL; - ahci_device->parent.open = NULL; - ahci_device->parent.close = NULL; - ahci_device->parent.read = NULL; - ahci_device->parent.write = NULL; - ahci_device->parent.control = NULL; - - if (rt_device_register((rt_device_t)ahci_device, "dwc_ahsata_ahci", 0) != RT_EOK) - { - rt_kprintf("dwc_ahsata_ahci device register failed!\n"); - return -RT_ERROR; - } - - if (dwc_ahsata_probe((rt_device_t)ahci_device) != 0) - { - rt_kprintf("ahci probe failed!\n"); - return -RT_ERROR; - } - - if (dwc_ahsata_scan((rt_device_t)ahci_device) != 0) - { - rt_kprintf("ahci host sata device scan failed!\n"); - return -RT_ERROR; - } - - return RT_EOK; -} -INIT_COMPONENT_EXPORT(rt_hw_ahci_host_init); - -static void ahci_print_info(struct ahci_uc_priv *uc_priv) -{ - struct sata_host_regs *host_mmio = uc_priv->mmio_base; - u32 vers, cap, impl, speed; - const char *speed_s; - const char *scc_s; - - vers = readl(&host_mmio->vs); - cap = uc_priv->cap; - impl = uc_priv->port_map; - - speed = (cap & SATA_HOST_CAP_ISS_MASK) >> SATA_HOST_CAP_ISS_OFFSET; - - if (speed == 1) - { - speed_s = "1.5"; - } - else if (speed == 2) - { - speed_s = "3"; - } - else - { - speed_s = "?"; - } - - scc_s = "SATA"; - - rt_kprintf("AHCI %02x%02x.%02x%02x " - "%u slots %u ports %s Gbps 0x%x impl %s mode\n", - (vers >> 24) & 0xff, - (vers >> 16) & 0xff, - (vers >> 8) & 0xff, - vers & 0xff, - ((cap >> 8) & 0x1f) + 1, - (cap & 0x1f) + 1, - speed_s, - impl, - scc_s); - - rt_kprintf("flags: " - "%s%s%s%s%s%s" - "%s%s%s%s%s%s%s\n", - cap & (1 << 31) ? "64bit " : "", - cap & (1 << 30) ? "ncq " : "", - cap & (1 << 28) ? "ilck " : "", - cap & (1 << 27) ? "stag " : "", - cap & (1 << 26) ? "pm " : "", - cap & (1 << 25) ? "led " : "", - cap & (1 << 24) ? "clo " : "", - cap & (1 << 19) ? "nz " : "", - cap & (1 << 18) ? "only " : "", - cap & (1 << 17) ? "pmp " : "", - cap & (1 << 15) ? "pio " : "", - cap & (1 << 14) ? "slum " : "", - cap & (1 << 13) ? "part " : ""); - - rt_kprintf("version = %08x\n", ((struct sata_host_regs *)(uc_priv->mmio_base))->versionr); -} - -static int ahci_fill_sg(struct ahci_uc_priv *uc_priv, u8 port, - unsigned char *buf, int buf_len) -{ - struct ahci_ioports *pp = &uc_priv->port[port]; - struct ahci_sg *ahci_sg = pp->cmd_tbl_sg; - u32 sg_count, max_bytes; - int i; - - max_bytes = MAX_DATA_BYTES_PER_SG; - sg_count = ((buf_len - 1) / max_bytes) + 1; - - if (sg_count > AHCI_MAX_SG) - { - rt_kprintf("Error:Too much sg!\n"); - return -1; - } - - for (i = 0; i < sg_count; i++) - { - ahci_sg->addr = VADDR_TO_PHY(buf + i * max_bytes); - //ahci_sg->addr_hi = 0; - ahci_sg->flags_size = cpu_to_le32(0x3fffff & - (buf_len < max_bytes - ? (buf_len - 1) - : (max_bytes - 1))); - ahci_sg++; - buf_len -= max_bytes; - } - - return sg_count; -} - -static void ahci_fill_cmd_slot(struct ahci_ioports *pp, u32 cmd_slot, u32 opts) -{ - struct ahci_cmd_hdr *cmd_hdr = (struct ahci_cmd_hdr *)(pp->cmd_slot + - AHCI_CMD_SLOT_SZ * cmd_slot); - - memset(cmd_hdr, 0, AHCI_CMD_SLOT_SZ); - cmd_hdr->opts = cpu_to_le32(opts); - cmd_hdr->status = 0; - pp->cmd_slot->tbl_addr = VADDR_TO_PHY(pp->cmd_tbl); - /*#ifdef CONFIG_PHYS_64BIT - pp->cmd_slot->tbl_addr_hi = - cpu_to_le32((u32)(((pp->cmd_tbl) >> 16) >> 16)); -#endif*/ -} - -#define AHCI_GET_CMD_SLOT(c) ((c) ? ffs(c) : 0) - -static int ahci_exec_ata_cmd(struct ahci_uc_priv *uc_priv, u8 port, - struct sata_fis_h2d *cfis, u8 *buf, u32 buf_len, - s32 is_write) -{ - struct ahci_ioports *pp = &uc_priv->port[port]; - struct sata_port_regs *port_mmio = pp->port_mmio; - u32 opts; - int sg_count = 0, cmd_slot = 0; - - cmd_slot = AHCI_GET_CMD_SLOT(readl(&port_mmio->ci)); - - if (32 == cmd_slot) - { - rt_kprintf("Can't find empty command slot!\n"); - return 0; - } - - /* Check xfer length */ - if (buf_len > MAX_BYTES_PER_TRANS) - { - rt_kprintf("Max transfer length is %dB\n\r", - MAX_BYTES_PER_TRANS); - return 0; - } - - memcpy((u8 *)(pp->cmd_tbl), cfis, sizeof(struct sata_fis_h2d)); - - if (buf && buf_len) - { - sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); - } - - opts = (sizeof(struct sata_fis_h2d) >> 2) | (sg_count << 16); - - if (is_write) - { - opts |= 0x40; - flush_cache((ulong)buf, buf_len); - } - - ahci_fill_cmd_slot(pp, cmd_slot, opts); - - flush_cache((int)(pp->cmd_slot), AHCI_PORT_PRIV_DMA_SZ); - writel_with_flush(1 << cmd_slot, &port_mmio->ci); - - if (waiting_for_cmd_completed((u8 *)&port_mmio->ci, 10000, - 0x1 << cmd_slot)) - { - rt_kprintf("timeout exit!\n"); - return -1; - } - - invalidate_dcache_range((int)(pp->cmd_slot), - (int)(pp->cmd_slot) + AHCI_PORT_PRIV_DMA_SZ); - - debug("ahci_exec_ata_cmd: %d byte transferred.\n", - pp->cmd_slot->status); - - if (!is_write) - { - invalidate_dcache_range((ulong)buf, (ulong)buf + buf_len); - } - - return buf_len; -} - -static void ahci_set_feature(struct ahci_uc_priv *uc_priv, u8 port) -{ - struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); - struct sata_fis_h2d *cfis = &h2d; - - memset(cfis, 0, sizeof(struct sata_fis_h2d)); - cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; - cfis->pm_port_c = 1 << 7; - cfis->command = ATA_CMD_SET_FEATURES; - cfis->features = SETFEATURES_XFER; - cfis->sector_count = ffs(uc_priv->udma_mask + 1) + 0x3e; - - ahci_exec_ata_cmd(uc_priv, port, cfis, NULL, 0, READ_CMD); -} - -static int ahci_port_start(struct ahci_uc_priv *uc_priv, u8 port) -{ - struct ahci_ioports *pp = &uc_priv->port[port]; - struct sata_port_regs *port_mmio = pp->port_mmio; - u32 port_status; - u64 mem; - int timeout = 10000000; - - debug("Enter start port: %d\n", port); - port_status = readl(&port_mmio->ssts); - debug("Port %d status: %x\n", port, port_status); - - if ((port_status & 0xf) != 0x03) - { - rt_kprintf("No Link on this port!\n"); - return -1; - } - - mem = (u64)malloc(AHCI_PORT_PRIV_DMA_SZ + 1024); - - if (!mem) - { - rt_kprintf("No mem for table!\n"); - return -ENOMEM; - } - - mem = (mem + 0x400) & (~0x3ff); /* Aligned to 1024-bytes */ - memset((u8 *)mem, 0, AHCI_PORT_PRIV_DMA_SZ); - - /* - * First item in chunk of DMA memory: 32-slot command table, - * 32 bytes each in size - */ - pp->cmd_slot = (struct ahci_cmd_hdr *)mem; - debug("cmd_slot = 0x%p\n", pp->cmd_slot); - mem += (AHCI_CMD_SLOT_SZ * DWC_AHSATA_MAX_CMD_SLOTS); - - /* - * Second item: Received-FIS area, 256-Byte aligned - */ - pp->rx_fis = mem; - mem += AHCI_RX_FIS_SZ; - - /* - * Third item: data area for storing a single command - * and its scatter-gather table - */ - pp->cmd_tbl = mem; - debug("cmd_tbl_dma = 0x%lx\n", pp->cmd_tbl); - - mem += AHCI_CMD_TBL_HDR; - - writel_with_flush(0x00004444, &port_mmio->dmacr); - pp->cmd_tbl_sg = (struct ahci_sg *)mem; - writel_with_flush(LOW_PHY(pp->cmd_slot), &port_mmio->clb); - writel_with_flush(HIGH_PHY(pp->cmd_slot), &port_mmio->clbu); - writel_with_flush(LOW_PHY(pp->rx_fis), &port_mmio->fb); - writel_with_flush(HIGH_PHY(pp->rx_fis), &port_mmio->fbu); - - /* Enable FRE */ - writel_with_flush((SATA_PORT_CMD_FRE | readl(&port_mmio->cmd)), - &port_mmio->cmd); - - /* Wait device ready */ - while ((readl(&port_mmio->tfd) & (SATA_PORT_TFD_STS_ERR | - SATA_PORT_TFD_STS_DRQ | SATA_PORT_TFD_STS_BSY)) && - --timeout) - ; - if (timeout <= 0) - { - debug("Device not ready for BSY, DRQ and" - "ERR in TFD!\n"); - return -1; - } - - writel_with_flush(PORT_CMD_ICC_ACTIVE | PORT_CMD_FIS_RX | - PORT_CMD_POWER_ON | PORT_CMD_SPIN_UP | - PORT_CMD_START, - &port_mmio->cmd); - - debug("Exit start port %d\n", port); - - return 0; -} - -static void dwc_ahsata_print_info(struct blk_device *pdev) -{ - rt_kprintf("SATA Device Info:\n\r"); - rt_kprintf("S/N: %s\n\rProduct model number: %s\n\r" - "Firmware version: %s\n\rCapacity: %lu sectors\n\r", - pdev->product, pdev->vendor, pdev->revision, pdev->lba); -} - -static void dwc_ahsata_identify(struct ahci_uc_priv *uc_priv, u16 *id) -{ - struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); - struct sata_fis_h2d *cfis = &h2d; - u8 port = uc_priv->hard_port_no; - - memset(cfis, 0, sizeof(struct sata_fis_h2d)); - - cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; - cfis->pm_port_c = 0x80; /* is command */ - cfis->command = ATA_CMD_ID_ATA; - - ahci_exec_ata_cmd(uc_priv, port, cfis, (u8 *)id, ATA_ID_WORDS * 2, - READ_CMD); - ata_swap_buf_le16(id, ATA_ID_WORDS); -} - -static void dwc_ahsata_xfer_mode(struct ahci_uc_priv *uc_priv, u16 *id) -{ - uc_priv->pio_mask = id[ATA_ID_PIO_MODES]; - uc_priv->udma_mask = id[ATA_ID_UDMA_MODES]; - debug("pio %04x, udma %04x\n\r", uc_priv->pio_mask, uc_priv->udma_mask); -} - -static u32 dwc_ahsata_rw_cmd(struct ahci_uc_priv *uc_priv, u32 start, - u32 blkcnt, u8 *buffer, int is_write) -{ - struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); - struct sata_fis_h2d *cfis = &h2d; - u8 port = uc_priv->hard_port_no; - u32 block; - - block = start; - - memset(cfis, 0, sizeof(struct sata_fis_h2d)); - - cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; - cfis->pm_port_c = 0x80; /* is command */ - cfis->command = (is_write) ? ATA_CMD_WRITE : ATA_CMD_READ; - cfis->device = ATA_LBA; - - cfis->device |= (block >> 24) & 0xf; - cfis->lba_high = (block >> 16) & 0xff; - cfis->lba_mid = (block >> 8) & 0xff; - cfis->lba_low = block & 0xff; - cfis->sector_count = (u8)(blkcnt & 0xff); - - if (ahci_exec_ata_cmd(uc_priv, port, cfis, buffer, - ATA_SECT_SIZE * blkcnt, is_write) > 0) - return blkcnt; - else - return 0; -} - -static void dwc_ahsata_flush_cache(struct ahci_uc_priv *uc_priv) -{ - struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); - struct sata_fis_h2d *cfis = &h2d; - u8 port = uc_priv->hard_port_no; - - memset(cfis, 0, sizeof(struct sata_fis_h2d)); - - cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; - cfis->pm_port_c = 0x80; /* is command */ - cfis->command = ATA_CMD_FLUSH; - - ahci_exec_ata_cmd(uc_priv, port, cfis, NULL, 0, 0); -} - -static u32 dwc_ahsata_rw_cmd_ext(struct ahci_uc_priv *uc_priv, u32 start, - lbaint_t blkcnt, u8 *buffer, int is_write) -{ - struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); - struct sata_fis_h2d *cfis = &h2d; - u8 port = uc_priv->hard_port_no; - u64 block; - - block = (u64)start; - - memset(cfis, 0, sizeof(struct sata_fis_h2d)); - - cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; - cfis->pm_port_c = 0x80; /* is command */ - - cfis->command = (is_write) ? ATA_CMD_WRITE_EXT - : ATA_CMD_READ_EXT; - - cfis->lba_high_exp = (block >> 40) & 0xff; - cfis->lba_mid_exp = (block >> 32) & 0xff; - cfis->lba_low_exp = (block >> 24) & 0xff; - cfis->lba_high = (block >> 16) & 0xff; - cfis->lba_mid = (block >> 8) & 0xff; - cfis->lba_low = block & 0xff; - cfis->device = ATA_LBA; - cfis->sector_count_exp = (blkcnt >> 8) & 0xff; - cfis->sector_count = blkcnt & 0xff; - - if (ahci_exec_ata_cmd(uc_priv, port, cfis, buffer, - ATA_SECT_SIZE * blkcnt, is_write) > 0) - return blkcnt; - else - return 0; -} - -static void dwc_ahsata_flush_cache_ext(struct ahci_uc_priv *uc_priv) -{ - struct sata_fis_h2d h2d __aligned(ARCH_DMA_MINALIGN); - struct sata_fis_h2d *cfis = &h2d; - u8 port = uc_priv->hard_port_no; - - memset(cfis, 0, sizeof(struct sata_fis_h2d)); - - cfis->fis_type = SATA_FIS_TYPE_REGISTER_H2D; - cfis->pm_port_c = 0x80; /* is command */ - cfis->command = ATA_CMD_FLUSH_EXT; - - ahci_exec_ata_cmd(uc_priv, port, cfis, NULL, 0, 0); -} - -static void dwc_ahsata_init_wcache(struct ahci_uc_priv *uc_priv, u16 *id) -{ - if (ata_id_has_wcache(id) && ata_id_wcache_enabled(id)) - uc_priv->flags |= SATA_FLAG_WCACHE; - if (ata_id_has_flush(id)) - uc_priv->flags |= SATA_FLAG_FLUSH; - if (ata_id_has_flush_ext(id)) - uc_priv->flags |= SATA_FLAG_FLUSH_EXT; -} - -static u32 ata_low_level_rw_lba48(struct ahci_uc_priv *uc_priv, u32 blknr, - lbaint_t blkcnt, const void *buffer, - int is_write) -{ - u32 start, blks; - u8 *addr; - int max_blks; - - start = blknr; - blks = blkcnt; - addr = (u8 *)buffer; - - max_blks = ATA_MAX_SECTORS_LBA48; - - do - { - if (blks > max_blks) - { - if (max_blks != dwc_ahsata_rw_cmd_ext(uc_priv, start, - max_blks, addr, - is_write)) - return 0; - start += max_blks; - blks -= max_blks; - addr += ATA_SECT_SIZE * max_blks; - } - else - { - if (blks != dwc_ahsata_rw_cmd_ext(uc_priv, start, blks, - addr, is_write)) - return 0; - start += blks; - blks = 0; - addr += ATA_SECT_SIZE * blks; - } - } while (blks != 0); - - return blkcnt; -} - -static u32 ata_low_level_rw_lba28(struct ahci_uc_priv *uc_priv, u32 blknr, - lbaint_t blkcnt, const void *buffer, - int is_write) -{ - u32 start, blks; - u8 *addr; - int max_blks; - - start = blknr; - blks = blkcnt; - addr = (u8 *)buffer; - - max_blks = ATA_MAX_SECTORS; - do - { - if (blks > max_blks) - { - if (max_blks != dwc_ahsata_rw_cmd(uc_priv, start, - max_blks, addr, - is_write)) - return 0; - start += max_blks; - blks -= max_blks; - addr += ATA_SECT_SIZE * max_blks; - } - else - { - if (blks != dwc_ahsata_rw_cmd(uc_priv, start, blks, - addr, is_write)) - return 0; - start += blks; - blks = 0; - addr += ATA_SECT_SIZE * blks; - } - } while (blks != 0); - - return blkcnt; -} - -static int dwc_ahci_start_ports(struct ahci_uc_priv *uc_priv) -{ - u32 linkmap; - int i; - - linkmap = uc_priv->link_port_map; - - if (0 == linkmap) - { - rt_kprintf("No port device detected!\n"); - return -ENXIO; - } - - for (i = 0; i < uc_priv->n_ports; i++) - { - if ((linkmap >> i) && ((linkmap >> i) & 0x01)) - { - if (ahci_port_start(uc_priv, (u8)i)) - { - rt_kprintf("Can not start port %d\n", i); - return 1; - } - - uc_priv->hard_port_no = i; - break; - } - } - - return 0; -} - -unsigned char sector_data[512]; - -void dump_pbuf(void *p, int len) -{ - rt_kprintf("----dump_pbuf----\n"); - rt_kprintf("pbuf = 0x%p,len = %d\n", p, len); - u32 i; - u8 *q = p; - rt_kprintf("%p", q); - - for (i = 0; i < 16; i++) - { - rt_kprintf(" %02x", i); - } - - rt_kprintf("\n"); - - for (i = 0; i < len; i++) - { - if (!(i & 0xF)) - { - rt_kprintf("%p", &q[i]); - } - - rt_kprintf(" %02x", q[i]); - - if ((i & 0xF) == 0xF) - { - rt_kprintf("\n"); - } - } - - rt_kprintf("\n-----------------\n"); -} - -static int dwc_ahsata_scan_common(struct ahci_uc_priv *uc_priv, - struct blk_device *pdev) -{ - u8 serial[ATA_ID_SERNO_LEN + 1] = {0}; - u8 firmware[ATA_ID_FW_REV_LEN + 1] = {0}; - u8 product[ATA_ID_PROD_LEN + 1] = {0}; - u8 port = uc_priv->hard_port_no; - ALLOC_CACHE_ALIGN_BUFFER(u16, id, ATA_ID_WORDS); - - /* Identify device to get information */ - dwc_ahsata_identify(uc_priv, id); - - /* Serial number */ - ata_id_c_string(id, serial, ATA_ID_SERNO, sizeof(serial)); - memcpy(pdev->product, serial, sizeof(serial)); - - /* Firmware version */ - ata_id_c_string(id, firmware, ATA_ID_FW_REV, sizeof(firmware)); - memcpy(pdev->revision, firmware, sizeof(firmware)); - - /* Product model */ - ata_id_c_string(id, product, ATA_ID_PROD, sizeof(product)); - memcpy(pdev->vendor, product, sizeof(product)); - - /* Total sectors */ - pdev->lba = ata_id_n_sectors(id); - - pdev->type = DEV_TYPE_HARDDISK; - pdev->blksz = ATA_SECT_SIZE; - pdev->lun = 0; - - /* Check if support LBA48 */ - if (ata_id_has_lba48(id)) - { - pdev->lba48 = 1; - debug("Device support LBA48\n\r"); - } - - /* Get the NCQ queue depth from device */ - uc_priv->flags &= (~SATA_FLAG_Q_DEP_MASK); - uc_priv->flags |= ata_id_queue_depth(id); - - /* Get the xfer mode from device */ - dwc_ahsata_xfer_mode(uc_priv, id); - - /* Get the write cache status from device */ - dwc_ahsata_init_wcache(uc_priv, id); - - /* Set the xfer mode to highest speed */ - ahci_set_feature(uc_priv, port); - dwc_ahsata_read((rt_device_t)pdev, 0, sector_data, 1); - //dump_pbuf(sector_data, 512); - dwc_ahsata_print_info(pdev); - - return 0; -} - -/* - * SATA interface between low level driver and command layer - */ -static ulong sata_read_common(struct ahci_uc_priv *uc_priv, - struct blk_device *desc, ulong blknr, - lbaint_t blkcnt, void *buffer) -{ - u32 rc; - - if (desc->lba48) - rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, - READ_CMD); - else - rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, - READ_CMD); - - return rc; -} - -static ulong sata_write_common(struct ahci_uc_priv *uc_priv, - struct blk_device *desc, ulong blknr, - lbaint_t blkcnt, const void *buffer) -{ - u32 rc; - u32 flags = uc_priv->flags; - - if (desc->lba48) - { - rc = ata_low_level_rw_lba48(uc_priv, blknr, blkcnt, buffer, - WRITE_CMD); - if ((flags & SATA_FLAG_WCACHE) && (flags & SATA_FLAG_FLUSH_EXT)) - dwc_ahsata_flush_cache_ext(uc_priv); - } - else - { - rc = ata_low_level_rw_lba28(uc_priv, blknr, blkcnt, buffer, - WRITE_CMD); - if ((flags & SATA_FLAG_WCACHE) && (flags & SATA_FLAG_FLUSH)) - dwc_ahsata_flush_cache(uc_priv); - } - - return rc; -} - -#if !CONFIG_IS_ENABLED(AHCI) -static int ahci_init_one(int pdev) -{ - int rc; - struct ahci_uc_priv *uc_priv = NULL; - - uc_priv = malloc(sizeof(struct ahci_uc_priv)); - if (!uc_priv) - return -ENOMEM; - - memset(uc_priv, 0, sizeof(struct ahci_uc_priv)); - uc_priv->dev = pdev; - - uc_priv->host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA | ATA_FLAG_NO_ATAPI; - - uc_priv->mmio_base = (void __iomem *)CONFIG_DWC_AHSATA_BASE_ADDR; - - /* initialize adapter */ - rc = ahci_host_init(uc_priv); - if (rc) - goto err_out; - - ahci_print_info(uc_priv); - - /* Save the uc_private struct to block device struct */ - sata_dev_desc[pdev].priv = uc_priv; - - return 0; - -err_out: - if (uc_priv) - free(uc_priv); - return rc; -} - -int init_sata(int dev) -{ - struct ahci_uc_priv *uc_priv = NULL; - -#if defined(CONFIG_MX6) - if (!is_mx6dq() && !is_mx6dqp()) - return 1; -#endif - if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) - { - rt_kprintf("The sata index %d is out of ranges\n\r", dev); - return -1; - } - - ahci_init_one(dev); - - uc_priv = sata_dev_desc[dev].priv; - - return dwc_ahci_start_ports(uc_priv) ? 1 : 0; -} - -int reset_sata(int dev) -{ - struct ahci_uc_priv *uc_priv; - struct sata_host_regs *host_mmio; - - if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) - { - rt_kprintf("The sata index %d is out of ranges\n\r", dev); - return -1; - } - - uc_priv = sata_dev_desc[dev].priv; - if (NULL == uc_priv) - /* not initialized, so nothing to reset */ - return 0; - - host_mmio = uc_priv->mmio_base; - setbits_le32(&host_mmio->ghc, SATA_HOST_GHC_HR); - while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) - udelay(100); - - free(uc_priv); - memset(&sata_dev_desc[dev], 0, sizeof(struct blk_desc)); - - return 0; -} - -int sata_port_status(int dev, int port) -{ - struct sata_port_regs *port_mmio; - struct ahci_uc_priv *uc_priv = NULL; - - if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) - return -EINVAL; - - if (sata_dev_desc[dev].priv == NULL) - return -ENODEV; - - uc_priv = sata_dev_desc[dev].priv; - port_mmio = uc_priv->port[port].port_mmio; - - return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK; -} - -/* - * SATA interface between low level driver and command layer - */ -ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) -{ - struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; - - return sata_read_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt, - buffer); -} - -ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) -{ - struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; - - return sata_write_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt, - buffer); -} - -int scan_sata(int dev) -{ - struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; - struct blk_desc *pdev = &sata_dev_desc[dev]; - - return dwc_ahsata_scan_common(uc_priv, pdev); -} -#endif /* CONFIG_IS_ENABLED(AHCI) */ - -#if CONFIG_IS_ENABLED(AHCI) - -int dwc_ahsata_port_status(struct rt_device *dev, int port) -{ - struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; - struct sata_port_regs *port_mmio; - - port_mmio = uc_priv->port[port].port_mmio; - return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK ? 0 : -ENXIO; -} - -int dwc_ahsata_bus_reset(struct rt_device *dev) -{ - struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; - struct sata_host_regs *host_mmio = uc_priv->mmio_base; - - setbits_le32(&host_mmio->ghc, SATA_HOST_GHC_HR); - - while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) - { - udelay(100); - } - - return 0; -} - -int dwc_ahsata_scan(struct rt_device *dev) -{ - struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; - struct blk_device *blk; - rt_err_t ret; - - blk = (struct blk_device *)rt_device_create(RT_Device_Class_Block, sizeof(struct blk_device) - sizeof(struct rt_device)); - blk->parent.init = NULL; - blk->parent.open = NULL; - blk->parent.close = NULL; - blk->parent.control = dwc_ahsata_control; - blk->parent.read = dwc_ahsata_read; - blk->parent.write = dwc_ahsata_write; - blk->ahci_device = uc_priv; - blk->blksz = 512; - blk->log2blksz = 9; - blk->lba = 0; - ret = rt_device_register((rt_device_t)blk, "dwc_ahsata_blk", RT_DEVICE_FLAG_RDWR); - - if (ret != RT_EOK) - { - debug("Can't create device\n"); - return ret; - } - - ret = dwc_ahsata_scan_common(uc_priv, blk); - - if (ret) - { - debug("%s: Failed to scan bus\n", __func__); - return ret; - } - - return 0; -} - -int dwc_ahsata_probe(struct rt_device *dev) -{ - struct ahci_uc_priv *uc_priv = (struct ahci_uc_priv *)dev; - int ret; - - uc_priv->host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | - ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA | ATA_FLAG_NO_ATAPI; - - /* initialize adapter */ - ret = ahci_host_init(uc_priv); - if (ret) - return ret; - - ahci_print_info(uc_priv); - - return dwc_ahci_start_ports(uc_priv); -} - -rt_size_t dwc_ahsata_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) -{ - struct blk_device *blk = (struct blk_device *)dev; - return sata_read_common(blk->ahci_device, blk, pos, size, buffer); -} - -rt_size_t dwc_ahsata_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) -{ - struct blk_device *blk = (struct blk_device *)dev; - return sata_write_common(blk->ahci_device, blk, pos, size, buffer); -} - -rt_err_t dwc_ahsata_control(rt_device_t dev, int cmd, void *args) -{ - struct blk_device *blk = (struct blk_device *)dev; - - switch (cmd) - { - case RT_DEVICE_CTRL_BLK_GETGEOME: - - if (args != NULL) - { - struct rt_device_blk_geometry *info = (struct rt_device_blk_geometry *)args; - info->sector_count = blk->lba; - info->bytes_per_sector = blk->blksz; - info->block_size = 0; - } - - break; - } - - return RT_EOK; -} - -#endif diff --git a/bsp/ls2kdev/drivers/ata/dwc_ahsata.h b/bsp/ls2kdev/drivers/ata/dwc_ahsata.h deleted file mode 100644 index 44e993d03e..0000000000 --- a/bsp/ls2kdev/drivers/ata/dwc_ahsata.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - - -#ifndef __DWC_AHSATA_H__ -#define __DWC_AHSATA_H__ - -#define DWCAHSATA_BASE (0x9000000000000000 | 0x400e0000) - -int dwc_ahsata_bus_reset(struct rt_device *dev); -int dwc_ahsata_probe(struct rt_device *dev); -int dwc_ahsata_scan(struct rt_device *dev); -int dwc_ahsata_port_status(struct rt_device *dev, int port); -rt_size_t dwc_ahsata_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size); -rt_size_t dwc_ahsata_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size); -rt_err_t dwc_ahsata_control(rt_device_t dev, int cmd, void *args); - -#endif diff --git a/bsp/ls2kdev/drivers/ata/dwc_ahsata_priv.h b/bsp/ls2kdev/drivers/ata/dwc_ahsata_priv.h deleted file mode 100644 index 03e64808b9..0000000000 --- a/bsp/ls2kdev/drivers/ata/dwc_ahsata_priv.h +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - -#ifndef __DWC_AHSATA_PRIV_H__ -#define __DWC_AHSATA_PRIV_H__ - -#define DWC_AHSATA_MAX_CMD_SLOTS 32 - -/* Max host controller numbers */ -#define SATA_HC_MAX_NUM 4 -/* Max command queue depth per host controller */ -#define DWC_AHSATA_HC_MAX_CMD 32 -/* Max port number per host controller */ -#define SATA_HC_MAX_PORT 16 - -/* Generic Host Register */ - -/* HBA Capabilities Register */ -#define SATA_HOST_CAP_S64A 0x80000000 -#define SATA_HOST_CAP_SNCQ 0x40000000 -#define SATA_HOST_CAP_SSNTF 0x20000000 -#define SATA_HOST_CAP_SMPS 0x10000000 -#define SATA_HOST_CAP_SSS 0x08000000 -#define SATA_HOST_CAP_SALP 0x04000000 -#define SATA_HOST_CAP_SAL 0x02000000 -#define SATA_HOST_CAP_SCLO 0x01000000 -#define SATA_HOST_CAP_ISS_MASK 0x00f00000 -#define SATA_HOST_CAP_ISS_OFFSET 20 -#define SATA_HOST_CAP_SNZO 0x00080000 -#define SATA_HOST_CAP_SAM 0x00040000 -#define SATA_HOST_CAP_SPM 0x00020000 -#define SATA_HOST_CAP_PMD 0x00008000 -#define SATA_HOST_CAP_SSC 0x00004000 -#define SATA_HOST_CAP_PSC 0x00002000 -#define SATA_HOST_CAP_NCS 0x00001f00 -#define SATA_HOST_CAP_CCCS 0x00000080 -#define SATA_HOST_CAP_EMS 0x00000040 -#define SATA_HOST_CAP_SXS 0x00000020 -#define SATA_HOST_CAP_NP_MASK 0x0000001f - -/* Global HBA Control Register */ -#define SATA_HOST_GHC_AE 0x80000000 -#define SATA_HOST_GHC_IE 0x00000002 -#define SATA_HOST_GHC_HR 0x00000001 - -/* Interrupt Status Register */ - -/* Ports Implemented Register */ - -/* AHCI Version Register */ -#define SATA_HOST_VS_MJR_MASK 0xffff0000 -#define SATA_HOST_VS_MJR_OFFSET 16 -#define SATA_HOST_VS_MJR_MNR 0x0000ffff - -/* Command Completion Coalescing Control */ -#define SATA_HOST_CCC_CTL_TV_MASK 0xffff0000 -#define SATA_HOST_CCC_CTL_TV_OFFSET 16 -#define SATA_HOST_CCC_CTL_CC_MASK 0x0000ff00 -#define SATA_HOST_CCC_CTL_CC_OFFSET 8 -#define SATA_HOST_CCC_CTL_INT_MASK 0x000000f8 -#define SATA_HOST_CCC_CTL_INT_OFFSET 3 -#define SATA_HOST_CCC_CTL_EN 0x00000001 - -/* Command Completion Coalescing Ports */ - -/* HBA Capabilities Extended Register */ -#define SATA_HOST_CAP2_APST 0x00000004 - -/* BIST Activate FIS Register */ -#define SATA_HOST_BISTAFR_NCP_MASK 0x0000ff00 -#define SATA_HOST_BISTAFR_NCP_OFFSET 8 -#define SATA_HOST_BISTAFR_PD_MASK 0x000000ff -#define SATA_HOST_BISTAFR_PD_OFFSET 0 - -/* BIST Control Register */ -#define SATA_HOST_BISTCR_FERLB 0x00100000 -#define SATA_HOST_BISTCR_TXO 0x00040000 -#define SATA_HOST_BISTCR_CNTCLR 0x00020000 -#define SATA_HOST_BISTCR_NEALB 0x00010000 -#define SATA_HOST_BISTCR_LLC_MASK 0x00000700 -#define SATA_HOST_BISTCR_LLC_OFFSET 8 -#define SATA_HOST_BISTCR_ERREN 0x00000040 -#define SATA_HOST_BISTCR_FLIP 0x00000020 -#define SATA_HOST_BISTCR_PV 0x00000010 -#define SATA_HOST_BISTCR_PATTERN_MASK 0x0000000f -#define SATA_HOST_BISTCR_PATTERN_OFFSET 0 - -/* BIST FIS Count Register */ - -/* BIST Status Register */ -#define SATA_HOST_BISTSR_FRAMERR_MASK 0x0000ffff -#define SATA_HOST_BISTSR_FRAMERR_OFFSET 0 -#define SATA_HOST_BISTSR_BRSTERR_MASK 0x00ff0000 -#define SATA_HOST_BISTSR_BRSTERR_OFFSET 16 - -/* BIST DWORD Error Count Register */ - -/* OOB Register*/ -#define SATA_HOST_OOBR_WE 0x80000000 -#define SATA_HOST_OOBR_cwMin_MASK 0x7f000000 -#define SATA_HOST_OOBR_cwMAX_MASK 0x00ff0000 -#define SATA_HOST_OOBR_ciMin_MASK 0x0000ff00 -#define SATA_HOST_OOBR_ciMax_MASK 0x000000ff - -/* Timer 1-ms Register */ - -/* Global Parameter 1 Register */ -#define SATA_HOST_GPARAM1R_ALIGN_M 0x80000000 -#define SATA_HOST_GPARAM1R_RX_BUFFER 0x40000000 -#define SATA_HOST_GPARAM1R_PHY_DATA_MASK 0x30000000 -#define SATA_HOST_GPARAM1R_PHY_RST 0x08000000 -#define SATA_HOST_GPARAM1R_PHY_CTRL_MASK 0x07e00000 -#define SATA_HOST_GPARAM1R_PHY_STAT_MASK 0x001f8000 -#define SATA_HOST_GPARAM1R_LATCH_M 0x00004000 -#define SATA_HOST_GPARAM1R_BIST_M 0x00002000 -#define SATA_HOST_GPARAM1R_PHY_TYPE 0x00001000 -#define SATA_HOST_GPARAM1R_RETURN_ERR 0x00000400 -#define SATA_HOST_GPARAM1R_AHB_ENDIAN_MASK 0x00000300 -#define SATA_HOST_GPARAM1R_S_HADDR 0X00000080 -#define SATA_HOST_GPARAM1R_M_HADDR 0X00000040 - -/* Global Parameter 2 Register */ -#define SATA_HOST_GPARAM2R_DEV_CP 0x00004000 -#define SATA_HOST_GPARAM2R_DEV_MP 0x00002000 -#define SATA_HOST_GPARAM2R_DEV_ENCODE_M 0x00001000 -#define SATA_HOST_GPARAM2R_RXOOB_CLK_M 0x00000800 -#define SATA_HOST_GPARAM2R_RXOOB_M 0x00000400 -#define SATA_HOST_GPARAM2R_TX_OOB_M 0x00000200 -#define SATA_HOST_GPARAM2R_RXOOB_CLK_MASK 0x000001ff - -/* Port Parameter Register */ -#define SATA_HOST_PPARAMR_TX_MEM_M 0x00000200 -#define SATA_HOST_PPARAMR_TX_MEM_S 0x00000100 -#define SATA_HOST_PPARAMR_RX_MEM_M 0x00000080 -#define SATA_HOST_PPARAMR_RX_MEM_S 0x00000040 -#define SATA_HOST_PPARAMR_TXFIFO_DEPTH_MASK 0x00000038 -#define SATA_HOST_PPARAMR_RXFIFO_DEPTH_MASK 0x00000007 - -/* Test Register */ -#define SATA_HOST_TESTR_PSEL_MASK 0x00070000 -#define SATA_HOST_TESTR_TEST_IF 0x00000001 - -/* Port Register Descriptions */ -/* Port# Command List Base Address Register */ -#define SATA_PORT_CLB_CLB_MASK 0xfffffc00 - -/* Port# Command List Base Address Upper 32-Bits Register */ - -/* Port# FIS Base Address Register */ -#define SATA_PORT_FB_FB_MASK 0xfffffff0 - -/* Port# FIS Base Address Upper 32-Bits Register */ - -/* Port# Interrupt Status Register */ -#define SATA_PORT_IS_CPDS 0x80000000 -#define SATA_PORT_IS_TFES 0x40000000 -#define SATA_PORT_IS_HBFS 0x20000000 -#define SATA_PORT_IS_HBDS 0x10000000 -#define SATA_PORT_IS_IFS 0x08000000 -#define SATA_PORT_IS_INFS 0x04000000 -#define SATA_PORT_IS_OFS 0x01000000 -#define SATA_PORT_IS_IPMS 0x00800000 -#define SATA_PORT_IS_PRCS 0x00400000 -#define SATA_PORT_IS_DMPS 0x00000080 -#define SATA_PORT_IS_PCS 0x00000040 -#define SATA_PORT_IS_DPS 0x00000020 -#define SATA_PORT_IS_UFS 0x00000010 -#define SATA_PORT_IS_SDBS 0x00000008 -#define SATA_PORT_IS_DSS 0x00000004 -#define SATA_PORT_IS_PSS 0x00000002 -#define SATA_PORT_IS_DHRS 0x00000001 - -/* Port# Interrupt Enable Register */ -#define SATA_PORT_IE_CPDE 0x80000000 -#define SATA_PORT_IE_TFEE 0x40000000 -#define SATA_PORT_IE_HBFE 0x20000000 -#define SATA_PORT_IE_HBDE 0x10000000 -#define SATA_PORT_IE_IFE 0x08000000 -#define SATA_PORT_IE_INFE 0x04000000 -#define SATA_PORT_IE_OFE 0x01000000 -#define SATA_PORT_IE_IPME 0x00800000 -#define SATA_PORT_IE_PRCE 0x00400000 -#define SATA_PORT_IE_DMPE 0x00000080 -#define SATA_PORT_IE_PCE 0x00000040 -#define SATA_PORT_IE_DPE 0x00000020 -#define SATA_PORT_IE_UFE 0x00000010 -#define SATA_PORT_IE_SDBE 0x00000008 -#define SATA_PORT_IE_DSE 0x00000004 -#define SATA_PORT_IE_PSE 0x00000002 -#define SATA_PORT_IE_DHRE 0x00000001 - -/* Port# Command Register */ -#define SATA_PORT_CMD_ICC_MASK 0xf0000000 -#define SATA_PORT_CMD_ASP 0x08000000 -#define SATA_PORT_CMD_ALPE 0x04000000 -#define SATA_PORT_CMD_DLAE 0x02000000 -#define SATA_PORT_CMD_ATAPI 0x01000000 -#define SATA_PORT_CMD_APSTE 0x00800000 -#define SATA_PORT_CMD_ESP 0x00200000 -#define SATA_PORT_CMD_CPD 0x00100000 -#define SATA_PORT_CMD_MPSP 0x00080000 -#define SATA_PORT_CMD_HPCP 0x00040000 -#define SATA_PORT_CMD_PMA 0x00020000 -#define SATA_PORT_CMD_CPS 0x00010000 -#define SATA_PORT_CMD_CR 0x00008000 -#define SATA_PORT_CMD_FR 0x00004000 -#define SATA_PORT_CMD_MPSS 0x00002000 -#define SATA_PORT_CMD_CCS_MASK 0x00001f00 -#define SATA_PORT_CMD_FRE 0x00000010 -#define SATA_PORT_CMD_CLO 0x00000008 -#define SATA_PORT_CMD_POD 0x00000004 -#define SATA_PORT_CMD_SUD 0x00000002 -#define SATA_PORT_CMD_ST 0x00000001 - -/* Port# Task File Data Register */ -#define SATA_PORT_TFD_ERR_MASK 0x0000ff00 -#define SATA_PORT_TFD_STS_MASK 0x000000ff -#define SATA_PORT_TFD_STS_ERR 0x00000001 -#define SATA_PORT_TFD_STS_DRQ 0x00000008 -#define SATA_PORT_TFD_STS_BSY 0x00000080 - -/* Port# Signature Register */ - -/* Port# Serial ATA Status {SStatus} Register */ -#define SATA_PORT_SSTS_IPM_MASK 0x00000f00 -#define SATA_PORT_SSTS_SPD_MASK 0x000000f0 -#define SATA_PORT_SSTS_DET_MASK 0x0000000f - -/* Port# Serial ATA Control {SControl} Register */ -#define SATA_PORT_SCTL_IPM_MASK 0x00000f00 -#define SATA_PORT_SCTL_SPD_MASK 0x000000f0 -#define SATA_PORT_SCTL_DET_MASK 0x0000000f - -/* Port# Serial ATA Error {SError} Register */ -#define SATA_PORT_SERR_DIAG_X 0x04000000 -#define SATA_PORT_SERR_DIAG_F 0x02000000 -#define SATA_PORT_SERR_DIAG_T 0x01000000 -#define SATA_PORT_SERR_DIAG_S 0x00800000 -#define SATA_PORT_SERR_DIAG_H 0x00400000 -#define SATA_PORT_SERR_DIAG_C 0x00200000 -#define SATA_PORT_SERR_DIAG_D 0x00100000 -#define SATA_PORT_SERR_DIAG_B 0x00080000 -#define SATA_PORT_SERR_DIAG_W 0x00040000 -#define SATA_PORT_SERR_DIAG_I 0x00020000 -#define SATA_PORT_SERR_DIAG_N 0x00010000 -#define SATA_PORT_SERR_ERR_E 0x00000800 -#define SATA_PORT_SERR_ERR_P 0x00000400 -#define SATA_PORT_SERR_ERR_C 0x00000200 -#define SATA_PORT_SERR_ERR_T 0x00000100 -#define SATA_PORT_SERR_ERR_M 0x00000002 -#define SATA_PORT_SERR_ERR_I 0x00000001 - -/* Port# Serial ATA Active {SActive} Register */ - -/* Port# Command Issue Register */ - -/* Port# Serial ATA Notification Register */ - -/* Port# DMA Control Register */ -#define SATA_PORT_DMACR_RXABL_MASK 0x0000f000 -#define SATA_PORT_DMACR_TXABL_MASK 0x00000f00 -#define SATA_PORT_DMACR_RXTS_MASK 0x000000f0 -#define SATA_PORT_DMACR_TXTS_MASK 0x0000000f - -/* Port# PHY Control Register */ - -/* Port# PHY Status Register */ - -#define SATA_HC_CMD_HDR_ENTRY_SIZE sizeof(struct cmd_hdr_entry) - -/* DW0 -*/ -#define CMD_HDR_DI_CFL_MASK 0x0000001f -#define CMD_HDR_DI_CFL_OFFSET 0 -#define CMD_HDR_DI_A 0x00000020 -#define CMD_HDR_DI_W 0x00000040 -#define CMD_HDR_DI_P 0x00000080 -#define CMD_HDR_DI_R 0x00000100 -#define CMD_HDR_DI_B 0x00000200 -#define CMD_HDR_DI_C 0x00000400 -#define CMD_HDR_DI_PMP_MASK 0x0000f000 -#define CMD_HDR_DI_PMP_OFFSET 12 -#define CMD_HDR_DI_PRDTL 0xffff0000 -#define CMD_HDR_DI_PRDTL_OFFSET 16 - -/* prde_fis_len -*/ -#define CMD_HDR_PRD_ENTRY_SHIFT 16 -#define CMD_HDR_PRD_ENTRY_MASK 0x003f0000 -#define CMD_HDR_FIS_LEN_SHIFT 2 - -/* attribute -*/ -#define CMD_HDR_ATTR_RES 0x00000800 /* Reserved bit, should be 1 */ -#define CMD_HDR_ATTR_VBIST 0x00000400 /* Vendor BIST */ -/* Snoop enable for all descriptor */ -#define CMD_HDR_ATTR_SNOOP 0x00000200 -#define CMD_HDR_ATTR_FPDMA 0x00000100 /* FPDMA queued command */ -#define CMD_HDR_ATTR_RESET 0x00000080 /* Reset - a SRST or device reset */ -/* BIST - require the host to enter BIST mode */ -#define CMD_HDR_ATTR_BIST 0x00000040 -#define CMD_HDR_ATTR_ATAPI 0x00000020 /* ATAPI command */ -#define CMD_HDR_ATTR_TAG 0x0000001f /* TAG mask */ - -#define FLAGS_DMA 0x00000000 -#define FLAGS_FPDMA 0x00000001 - -#define SATA_FLAG_Q_DEP_MASK 0x0000000f -#define SATA_FLAG_WCACHE 0x00000100 -#define SATA_FLAG_FLUSH 0x00000200 -#define SATA_FLAG_FLUSH_EXT 0x00000400 - -#define READ_CMD 0 -#define WRITE_CMD 1 - -#endif /* __DWC_AHSATA_H__ */ diff --git a/bsp/ls2kdev/drivers/ata/fis.h b/bsp/ls2kdev/drivers/ata/fis.h deleted file mode 100644 index c4c6557b8f..0000000000 --- a/bsp/ls2kdev/drivers/ata/fis.h +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - -#ifndef __FIS_H__ -#define __FIS_H__ -/* -* Register - Host to Device FIS -*/ -typedef struct sata_fis_h2d -{ - u8 fis_type; - u8 pm_port_c; - u8 command; - u8 features; - u8 lba_low; - u8 lba_mid; - u8 lba_high; - u8 device; - u8 lba_low_exp; - u8 lba_mid_exp; - u8 lba_high_exp; - u8 features_exp; - u8 sector_count; - u8 sector_count_exp; - u8 res1; - u8 control; - u8 res2[4]; -} __attribute__((packed)) sata_fis_h2d_t; - -/* -* Register - Host to Device FIS for read/write FPDMA queued -*/ -typedef struct sata_fis_h2d_ncq -{ - u8 fis_type; - u8 pm_port_c; - u8 command; - u8 sector_count_low; - u8 lba_low; - u8 lba_mid; - u8 lba_high; - u8 device; - u8 lba_low_exp; - u8 lba_mid_exp; - u8 lba_high_exp; - u8 sector_count_high; - u8 tag; - u8 res1; - u8 res2; - u8 control; - u8 res3[4]; -} __attribute__((packed)) sata_fis_h2d_ncq_t; - -/* -* Register - Device to Host FIS -*/ -typedef struct sata_fis_d2h -{ - u8 fis_type; - u8 pm_port_i; - u8 status; - u8 error; - u8 lba_low; - u8 lba_mid; - u8 lba_high; - u8 device; - u8 lba_low_exp; - u8 lba_mid_exp; - u8 lba_high_exp; - u8 res1; - u8 sector_count; - u8 sector_count_exp; - u8 res2[2]; - u8 res3[4]; -} __attribute__((packed)) sata_fis_d2h_t; - -/* -* DMA Setup - Device to Host or Host to Device FIS -*/ -typedef struct sata_fis_dma_setup -{ - u8 fis_type; - u8 pm_port_dir_int_act; - u8 res1; - u8 res2; - u32 dma_buffer_id_low; - u32 dma_buffer_id_high; - u32 res3; - u32 dma_buffer_offset; - u32 dma_transfer_count; - u32 res4; -} __attribute__((packed)) sata_fis_dma_setup_t; - -/* -* PIO Setup - Device to Host FIS -*/ -typedef struct sata_fis_pio_setup -{ - u8 fis_type; - u8 pm_port_dir_int; - u8 status; - u8 error; - u8 lba_low; - u8 lba_mid; - u8 lba_high; - u8 res1; - u8 lba_low_exp; - u8 lba_mid_exp; - u8 lba_high_exp; - u8 res2; - u8 sector_count; - u8 sector_count_exp; - u8 res3; - u8 e_status; - u16 transfer_count; - u16 res4; -} __attribute__((packed)) sata_fis_pio_setup_t; - -/* -* Data - Host to Device or Device to Host FIS -*/ -typedef struct sata_fis_data -{ - u8 fis_type; - u8 pm_port; - u8 res1; - u8 res2; - u32 data[2048]; -} __attribute__((packed)) sata_fis_data_t; - -/* fis_type - SATA FIS type - */ -enum sata_fis_type -{ - SATA_FIS_TYPE_REGISTER_H2D = 0x27, - SATA_FIS_TYPE_REGISTER_D2H = 0x34, - SATA_FIS_TYPE_DMA_ACT_D2H = 0x39, - SATA_FIS_TYPE_DMA_SETUP_BI = 0x41, - SATA_FIS_TYPE_DATA_BI = 0x46, - SATA_FIS_TYPE_BIST_ACT_BI = 0x58, - SATA_FIS_TYPE_PIO_SETUP_D2H = 0x5F, - SATA_FIS_TYPE_SET_DEVICE_BITS_D2H = 0xA1, -}; - -#endif /* __FIS_H__ */ diff --git a/bsp/ls2kdev/drivers/ata/libata.c b/bsp/ls2kdev/drivers/ata/libata.c deleted file mode 100644 index 980fc071fc..0000000000 --- a/bsp/ls2kdev/drivers/ata/libata.c +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - -#include -#include -#include - -u64 ata_id_n_sectors(u16 *id) -{ - if (ata_id_has_lba(id)) { - if (ata_id_has_lba48(id)) - return ata_id_u64(id, ATA_ID_LBA48_SECTORS); - else - return ata_id_u32(id, ATA_ID_LBA_SECTORS); - } else { - return 0; - } -} - -u32 ata_dev_classify(u32 sig) -{ - u8 lbam, lbah; - - lbam = (sig >> 16) & 0xff; - lbah = (sig >> 24) & 0xff; - - if (((lbam == 0) && (lbah == 0)) || - ((lbam == 0x3c) && (lbah == 0xc3))) - return ATA_DEV_ATA; - - if ((lbam == 0x14) && (lbah == 0xeb)) - return ATA_DEV_ATAPI; - - if ((lbam == 0x69) && (lbah == 0x96)) - return ATA_DEV_PMP; - - return ATA_DEV_UNKNOWN; -} - -static void ata_id_string(const u16 *id, unsigned char *s, - unsigned int ofs, unsigned int len) -{ - unsigned int c; - - while (len > 0) { - c = id[ofs] >> 8; - *s = c; - s++; - - c = id[ofs] & 0xff; - *s = c; - s++; - - ofs++; - len -= 2; - } -} - -void ata_id_c_string(const u16 *id, unsigned char *s, - unsigned int ofs, unsigned int len) -{ - unsigned char *p; - - ata_id_string(id, s, ofs, len - 1); - - p = s + strnlen((char *)s, len - 1); - while (p > s && p[-1] == ' ') - p--; - *p = '\0'; -} - -void ata_dump_id(u16 *id) -{ - unsigned char serial[ATA_ID_SERNO_LEN + 1]; - unsigned char firmware[ATA_ID_FW_REV_LEN + 1]; - unsigned char product[ATA_ID_PROD_LEN + 1]; - u64 n_sectors; - - /* Serial number */ - ata_id_c_string(id, serial, ATA_ID_SERNO, sizeof(serial)); - printf("S/N: %s\n\r", serial); - - /* Firmware version */ - ata_id_c_string(id, firmware, ATA_ID_FW_REV, sizeof(firmware)); - printf("Firmware version: %s\n\r", firmware); - - /* Product model */ - ata_id_c_string(id, product, ATA_ID_PROD, sizeof(product)); - printf("Product model number: %s\n\r", product); - - /* Total sectors of device */ - n_sectors = ata_id_n_sectors(id); - printf("Capablity: %lld sectors\n\r", n_sectors); - - printf ("id[49]: capabilities = 0x%04x\n" - "id[53]: field valid = 0x%04x\n" - "id[63]: mwdma = 0x%04x\n" - "id[64]: pio = 0x%04x\n" - "id[75]: queue depth = 0x%04x\n", - id[49], - id[53], - id[63], - id[64], - id[75]); - - printf ("id[76]: sata capablity = 0x%04x\n" - "id[78]: sata features supported = 0x%04x\n" - "id[79]: sata features enable = 0x%04x\n", - id[76], - id[78], - id[79]); - - printf ("id[80]: major version = 0x%04x\n" - "id[81]: minor version = 0x%04x\n" - "id[82]: command set supported 1 = 0x%04x\n" - "id[83]: command set supported 2 = 0x%04x\n" - "id[84]: command set extension = 0x%04x\n", - id[80], - id[81], - id[82], - id[83], - id[84]); - printf ("id[85]: command set enable 1 = 0x%04x\n" - "id[86]: command set enable 2 = 0x%04x\n" - "id[87]: command set default = 0x%04x\n" - "id[88]: udma = 0x%04x\n" - "id[93]: hardware reset result = 0x%04x\n", - id[85], - id[86], - id[87], - id[88], - id[93]); -} - -void ata_swap_buf_le16(u16 *buf, unsigned int buf_words) -{ - unsigned int i; - - for (i = 0; i < buf_words; i++) - { - buf[i] = le16_to_cpu(buf[i]); - } -} diff --git a/bsp/ls2kdev/drivers/ata/libata.h b/bsp/ls2kdev/drivers/ata/libata.h deleted file mode 100644 index ae00c68446..0000000000 --- a/bsp/ls2kdev/drivers/ata/libata.h +++ /dev/null @@ -1,653 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-08-19 lizhirui porting to ls2k - */ - -#ifndef __LIBATA_H__ -#define __LIBATA_H__ - -enum { - /* various global constants */ - ATA_MAX_DEVICES = 2, /* per bus/port */ - ATA_MAX_PRD = 256, /* we could make these 256/256 */ - ATA_SECT_SIZE = 512, - ATA_MAX_SECTORS_128 = 128, - ATA_MAX_SECTORS = 256, - ATA_MAX_SECTORS_LBA48 = 65535, - ATA_MAX_SECTORS_TAPE = 65535, - - ATA_ID_WORDS = 256, - ATA_ID_SERNO = 10, - ATA_ID_FW_REV = 23, - ATA_ID_PROD = 27, - ATA_ID_OLD_PIO_MODES = 51, - ATA_ID_FIELD_VALID = 53, - ATA_ID_LBA_SECTORS = 60, - ATA_ID_MWDMA_MODES = 63, - ATA_ID_PIO_MODES = 64, - ATA_ID_EIDE_DMA_MIN = 65, - ATA_ID_EIDE_PIO = 67, - ATA_ID_EIDE_PIO_IORDY = 68, - ATA_ID_PIO4 = (1 << 1), - ATA_ID_QUEUE_DEPTH = 75, - ATA_ID_SATA_CAP = 76, - ATA_ID_SATA_FEATURES = 78, - ATA_ID_SATA_FEATURES_EN = 79, - ATA_ID_MAJOR_VER = 80, - ATA_ID_MINOR_VER = 81, - ATA_ID_UDMA_MODES = 88, - ATA_ID_LBA48_SECTORS = 100, - - ATA_ID_SERNO_LEN = 20, - ATA_ID_FW_REV_LEN = 8, - ATA_ID_PROD_LEN = 40, - - ATA_PCI_CTL_OFS = 2, - - ATA_PIO0 = (1 << 0), - ATA_PIO1 = ATA_PIO0 | (1 << 1), - ATA_PIO2 = ATA_PIO1 | (1 << 2), - ATA_PIO3 = ATA_PIO2 | (1 << 3), - ATA_PIO4 = ATA_PIO3 | (1 << 4), - ATA_PIO5 = ATA_PIO4 | (1 << 5), - ATA_PIO6 = ATA_PIO5 | (1 << 6), - - ATA_SWDMA0 = (1 << 0), - ATA_SWDMA1 = ATA_SWDMA0 | (1 << 1), - ATA_SWDMA2 = ATA_SWDMA1 | (1 << 2), - - ATA_SWDMA2_ONLY = (1 << 2), - - ATA_MWDMA0 = (1 << 0), - ATA_MWDMA1 = ATA_MWDMA0 | (1 << 1), - ATA_MWDMA2 = ATA_MWDMA1 | (1 << 2), - - ATA_MWDMA12_ONLY = (1 << 1) | (1 << 2), - ATA_MWDMA2_ONLY = (1 << 2), - - ATA_UDMA0 = (1 << 0), - ATA_UDMA1 = ATA_UDMA0 | (1 << 1), - ATA_UDMA2 = ATA_UDMA1 | (1 << 2), - ATA_UDMA3 = ATA_UDMA2 | (1 << 3), - ATA_UDMA4 = ATA_UDMA3 | (1 << 4), - ATA_UDMA5 = ATA_UDMA4 | (1 << 5), - ATA_UDMA6 = ATA_UDMA5 | (1 << 6), - ATA_UDMA7 = ATA_UDMA6 | (1 << 7), - /* ATA_UDMA7 is just for completeness... doesn't exist (yet?). */ - - ATA_UDMA_MASK_40C = ATA_UDMA2, /* udma0-2 */ - - /* DMA-related */ - ATA_PRD_SZ = 8, - ATA_PRD_TBL_SZ = (ATA_MAX_PRD * ATA_PRD_SZ), - ATA_PRD_EOT = (1 << 31), /* end-of-table flag */ - - ATA_DMA_TABLE_OFS = 4, - ATA_DMA_STATUS = 2, - ATA_DMA_CMD = 0, - ATA_DMA_WR = (1 << 3), - ATA_DMA_START = (1 << 0), - ATA_DMA_INTR = (1 << 2), - ATA_DMA_ERR = (1 << 1), - ATA_DMA_ACTIVE = (1 << 0), - - /* bits in ATA command block registers */ - ATA_HOB = (1 << 7), /* LBA48 selector */ - ATA_NIEN = (1 << 1), /* disable-irq flag */ - ATA_LBA = (1 << 6), /* LBA28 selector */ - ATA_DEV1 = (1 << 4), /* Select Device 1 (slave) */ - ATA_DEVICE_OBS = (1 << 7) | (1 << 5), /* obs bits in dev reg */ - ATA_DEVCTL_OBS = (1 << 3), /* obsolete bit in devctl reg */ - ATA_BUSY = (1 << 7), /* BSY status bit */ - ATA_DRDY = (1 << 6), /* device ready */ - ATA_DF = (1 << 5), /* device fault */ - ATA_DRQ = (1 << 3), /* data request i/o */ - ATA_ERR = (1 << 0), /* have an error */ - ATA_SRST = (1 << 2), /* software reset */ - ATA_ICRC = (1 << 7), /* interface CRC error */ - ATA_UNC = (1 << 6), /* uncorrectable media error */ - ATA_IDNF = (1 << 4), /* ID not found */ - ATA_ABORTED = (1 << 2), /* command aborted */ - - /* ATA command block registers */ - ATA_REG_DATA = 0x00, - ATA_REG_ERR = 0x01, - ATA_REG_NSECT = 0x02, - ATA_REG_LBAL = 0x03, - ATA_REG_LBAM = 0x04, - ATA_REG_LBAH = 0x05, - ATA_REG_DEVICE = 0x06, - ATA_REG_STATUS = 0x07, - - ATA_REG_FEATURE = ATA_REG_ERR, /* and their aliases */ - ATA_REG_CMD = ATA_REG_STATUS, - ATA_REG_BYTEL = ATA_REG_LBAM, - ATA_REG_BYTEH = ATA_REG_LBAH, - ATA_REG_DEVSEL = ATA_REG_DEVICE, - ATA_REG_IRQ = ATA_REG_NSECT, - - /* ATA device commands */ - ATA_CMD_DEV_RESET = 0x08, /* ATAPI device reset */ - ATA_CMD_PIO_READ = 0x20, /* Read sectors with retry */ - ATA_CMD_PIO_READ_EXT = 0x24, - ATA_CMD_READ_EXT = 0x25, - ATA_CMD_READ_NATIVE_MAX_EXT = 0x27, - ATA_CMD_READ_MULTI_EXT = 0x29, - ATA_CMD_READ_LOG_EXT = 0x2f, - ATA_CMD_PIO_WRITE = 0x30, /* write sectors with retry */ - ATA_CMD_PIO_WRITE_EXT = 0x34, - ATA_CMD_WRITE_EXT = 0x35, - ATA_CMD_SET_MAX_EXT = 0x37, - ATA_CMD_WRITE_MULTI_EXT = 0x39, - ATA_CMD_WRITE_FUA_EXT = 0x3D, - ATA_CMD_VERIFY = 0x40, /* read verify sectors with retry */ - ATA_CMD_VERIFY_EXT = 0x42, - ATA_CMD_FPDMA_READ = 0x60, - ATA_CMD_FPDMA_WRITE = 0x61, - ATA_CMD_EDD = 0x90, /* execute device diagnostic */ - ATA_CMD_INIT_DEV_PARAMS = 0x91, /* initialize device parameters */ - ATA_CMD_PACKET = 0xA0, /* ATAPI packet */ - ATA_CMD_ID_ATAPI = 0xA1, /* ATAPI identify device */ - ATA_CMD_CONF_OVERLAY = 0xB1, - ATA_CMD_READ_MULTI = 0xC4, /* read multiple */ - ATA_CMD_WRITE_MULTI = 0xC5, /* write multiple */ - ATA_CMD_SET_MULTI = 0xC6, /* set multiple mode */ - ATA_CMD_READ = 0xC8, /* read DMA with retry */ - ATA_CMD_WRITE = 0xCA, /* write DMA with retry */ - ATA_CMD_WRITE_MULTI_FUA_EXT = 0xCE, - ATA_CMD_STANDBYNOW1 = 0xE0, /* standby immediate */ - ATA_CMD_IDLEIMMEDIATE = 0xE1, /* idle immediate */ - ATA_CMD_STANDBY = 0xE2, /* place in standby power mode */ - ATA_CMD_IDLE = 0xE3, /* place in idle power mode */ - ATA_CMD_PMP_READ = 0xE4, /* read buffer */ - ATA_CMD_CHK_POWER = 0xE5, /* check power mode */ - ATA_CMD_SLEEP = 0xE6, /* sleep */ - ATA_CMD_FLUSH = 0xE7, - ATA_CMD_PMP_WRITE = 0xE8, /* write buffer */ - ATA_CMD_FLUSH_EXT = 0xEA, - ATA_CMD_ID_ATA = 0xEC, /* identify device */ - ATA_CMD_SET_FEATURES = 0xEF, /* set features */ - ATA_CMD_SEC_FREEZE_LOCK = 0xF5, /* security freeze */ - ATA_CMD_READ_NATIVE_MAX = 0xF8, - ATA_CMD_SET_MAX = 0xF9, - - /* READ_LOG_EXT pages */ - ATA_LOG_SATA_NCQ = 0x10, - - /* READ/WRITE LONG (obsolete) */ - ATA_CMD_READ_LONG = 0x22, - ATA_CMD_READ_LONG_ONCE = 0x23, - ATA_CMD_WRITE_LONG = 0x32, - ATA_CMD_WRITE_LONG_ONCE = 0x33, - - /* SETFEATURES stuff */ - SETFEATURES_XFER = 0x03, - XFER_UDMA_7 = 0x47, - XFER_UDMA_6 = 0x46, - XFER_UDMA_5 = 0x45, - XFER_UDMA_4 = 0x44, - XFER_UDMA_3 = 0x43, - XFER_UDMA_2 = 0x42, - XFER_UDMA_1 = 0x41, - XFER_UDMA_0 = 0x40, - XFER_MW_DMA_4 = 0x24, /* CFA only */ - XFER_MW_DMA_3 = 0x23, /* CFA only */ - XFER_MW_DMA_2 = 0x22, - XFER_MW_DMA_1 = 0x21, - XFER_MW_DMA_0 = 0x20, - XFER_SW_DMA_2 = 0x12, - XFER_SW_DMA_1 = 0x11, - XFER_SW_DMA_0 = 0x10, - XFER_PIO_6 = 0x0E, /* CFA only */ - XFER_PIO_5 = 0x0D, /* CFA only */ - XFER_PIO_4 = 0x0C, - XFER_PIO_3 = 0x0B, - XFER_PIO_2 = 0x0A, - XFER_PIO_1 = 0x09, - XFER_PIO_0 = 0x08, - XFER_PIO_SLOW = 0x00, - - SETFEATURES_WC_ON = 0x02, /* Enable write cache */ - SETFEATURES_WC_OFF = 0x82, /* Disable write cache */ - - SETFEATURES_SPINUP = 0x07, /* Spin-up drive */ - - SETFEATURES_SATA_ENABLE = 0x10, /* Enable use of SATA feature */ - SETFEATURES_SATA_DISABLE = 0x90, /* Disable use of SATA feature */ - - /* SETFEATURE Sector counts for SATA features */ - SATA_AN = 0x05, /* Asynchronous Notification */ - SATA_DIPM = 0x03, /* Device Initiated Power Management */ - - /* feature values for SET_MAX */ - ATA_SET_MAX_ADDR = 0x00, - ATA_SET_MAX_PASSWD = 0x01, - ATA_SET_MAX_LOCK = 0x02, - ATA_SET_MAX_UNLOCK = 0x03, - ATA_SET_MAX_FREEZE_LOCK = 0x04, - - /* feature values for DEVICE CONFIGURATION OVERLAY */ - ATA_DCO_RESTORE = 0xC0, - ATA_DCO_FREEZE_LOCK = 0xC1, - ATA_DCO_IDENTIFY = 0xC2, - ATA_DCO_SET = 0xC3, - - /* ATAPI stuff */ - ATAPI_PKT_DMA = (1 << 0), - ATAPI_DMADIR = (1 << 2), /* ATAPI data dir: - 0=to device, 1=to host */ - ATAPI_CDB_LEN = 16, - - /* PMP stuff */ - SATA_PMP_MAX_PORTS = 15, - SATA_PMP_CTRL_PORT = 15, - - SATA_PMP_GSCR_DWORDS = 128, - SATA_PMP_GSCR_PROD_ID = 0, - SATA_PMP_GSCR_REV = 1, - SATA_PMP_GSCR_PORT_INFO = 2, - SATA_PMP_GSCR_ERROR = 32, - SATA_PMP_GSCR_ERROR_EN = 33, - SATA_PMP_GSCR_FEAT = 64, - SATA_PMP_GSCR_FEAT_EN = 96, - - SATA_PMP_PSCR_STATUS = 0, - SATA_PMP_PSCR_ERROR = 1, - SATA_PMP_PSCR_CONTROL = 2, - - SATA_PMP_FEAT_BIST = (1 << 0), - SATA_PMP_FEAT_PMREQ = (1 << 1), - SATA_PMP_FEAT_DYNSSC = (1 << 2), - SATA_PMP_FEAT_NOTIFY = (1 << 3), - - /* cable types */ - ATA_CBL_NONE = 0, - ATA_CBL_PATA40 = 1, - ATA_CBL_PATA80 = 2, - ATA_CBL_PATA40_SHORT = 3, /* 40 wire cable to high UDMA spec */ - ATA_CBL_PATA_UNK = 4, /* don't know, maybe 80c? */ - ATA_CBL_PATA_IGN = 5, /* don't know, ignore cable handling */ - ATA_CBL_SATA = 6, - - /* SATA Status and Control Registers */ - SCR_STATUS = 0, - SCR_ERROR = 1, - SCR_CONTROL = 2, - SCR_ACTIVE = 3, - SCR_NOTIFICATION = 4, - - /* SError bits */ - SERR_DATA_RECOVERED = (1 << 0), /* recovered data error */ - SERR_COMM_RECOVERED = (1 << 1), /* recovered comm failure */ - SERR_DATA = (1 << 8), /* unrecovered data error */ - SERR_PERSISTENT = (1 << 9), /* persistent data/comm error */ - SERR_PROTOCOL = (1 << 10), /* protocol violation */ - SERR_INTERNAL = (1 << 11), /* host internal error */ - SERR_PHYRDY_CHG = (1 << 16), /* PHY RDY changed */ - SERR_PHY_INT_ERR = (1 << 17), /* PHY internal error */ - SERR_COMM_WAKE = (1 << 18), /* Comm wake */ - SERR_10B_8B_ERR = (1 << 19), /* 10b to 8b decode error */ - SERR_DISPARITY = (1 << 20), /* Disparity */ - SERR_CRC = (1 << 21), /* CRC error */ - SERR_HANDSHAKE = (1 << 22), /* Handshake error */ - SERR_LINK_SEQ_ERR = (1 << 23), /* Link sequence error */ - SERR_TRANS_ST_ERROR = (1 << 24), /* Transport state trans. error */ - SERR_UNRECOG_FIS = (1 << 25), /* Unrecognized FIS */ - SERR_DEV_XCHG = (1 << 26), /* device exchanged */ - - /* struct ata_taskfile flags */ - ATA_TFLAG_LBA48 = (1 << 0), /* enable 48-bit LBA and "HOB" */ - ATA_TFLAG_ISADDR = (1 << 1), /* enable r/w to nsect/lba regs */ - ATA_TFLAG_DEVICE = (1 << 2), /* enable r/w to device reg */ - ATA_TFLAG_WRITE = (1 << 3), /* data dir: host->dev==1 (write) */ - ATA_TFLAG_LBA = (1 << 4), /* enable LBA */ - ATA_TFLAG_FUA = (1 << 5), /* enable FUA */ - ATA_TFLAG_POLLING = (1 << 6), /* set nIEN to 1 and use polling */ - - /* protocol flags */ - ATA_PROT_FLAG_PIO = (1 << 0), /* is PIO */ - ATA_PROT_FLAG_DMA = (1 << 1), /* is DMA */ - ATA_PROT_FLAG_DATA = ATA_PROT_FLAG_PIO | ATA_PROT_FLAG_DMA, - ATA_PROT_FLAG_NCQ = (1 << 2), /* is NCQ */ - ATA_PROT_FLAG_ATAPI = (1 << 3), /* is ATAPI */ -}; - -enum ata_tf_protocols { - /* ATA taskfile protocols */ - ATA_PROT_UNKNOWN, /* unknown/invalid */ - ATA_PROT_NODATA, /* no data */ - ATA_PROT_PIO, /* PIO data xfer */ - ATA_PROT_DMA, /* DMA */ - ATA_PROT_NCQ, /* NCQ */ - ATAPI_PROT_NODATA, /* packet command, no data */ - ATAPI_PROT_PIO, /* packet command, PIO data xfer*/ - ATAPI_PROT_DMA, /* packet command with special DMA sauce */ -}; - -enum ata_ioctls { - ATA_IOC_GET_IO32 = 0x309, - ATA_IOC_SET_IO32 = 0x324, -}; - -enum ata_dev_typed { - ATA_DEV_ATA, /* ATA device */ - ATA_DEV_ATAPI, /* ATAPI device */ - ATA_DEV_PMP, /* Port Multiplier Port */ - ATA_DEV_UNKNOWN, /* unknown */ -}; - -struct ata_taskfile { - unsigned long flags; /* ATA_TFLAG_xxx */ - u8 protocol; /* ATA_PROT_xxx */ - - u8 ctl; /* control reg */ - - u8 hob_feature; /* additional data */ - u8 hob_nsect; /* to support LBA48 */ - u8 hob_lbal; - u8 hob_lbam; - u8 hob_lbah; - - u8 feature; - u8 nsect; - u8 lbal; - u8 lbam; - u8 lbah; - - u8 device; - - u8 command; /* IO operation */ -}; - -/* - * protocol tests - */ -static inline unsigned int ata_prot_flags(u8 prot) -{ - switch (prot) { - case ATA_PROT_NODATA: - return 0; - case ATA_PROT_PIO: - return ATA_PROT_FLAG_PIO; - case ATA_PROT_DMA: - return ATA_PROT_FLAG_DMA; - case ATA_PROT_NCQ: - return ATA_PROT_FLAG_DMA | ATA_PROT_FLAG_NCQ; - case ATAPI_PROT_NODATA: - return ATA_PROT_FLAG_ATAPI; - case ATAPI_PROT_PIO: - return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_PIO; - case ATAPI_PROT_DMA: - return ATA_PROT_FLAG_ATAPI | ATA_PROT_FLAG_DMA; - } - return 0; -} - -static inline int ata_is_atapi(u8 prot) -{ - return ata_prot_flags(prot) & ATA_PROT_FLAG_ATAPI; -} - -static inline int ata_is_nodata(u8 prot) -{ - return !(ata_prot_flags(prot) & ATA_PROT_FLAG_DATA); -} - -static inline int ata_is_pio(u8 prot) -{ - return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO; -} - -static inline int ata_is_dma(u8 prot) -{ - return ata_prot_flags(prot) & ATA_PROT_FLAG_DMA; -} - -static inline int ata_is_ncq(u8 prot) -{ - return ata_prot_flags(prot) & ATA_PROT_FLAG_NCQ; -} - -static inline int ata_is_data(u8 prot) -{ - return ata_prot_flags(prot) & ATA_PROT_FLAG_DATA; -} - -/* - * id tests - */ -#define ata_id_is_ata(id) (((id)[0] & (1 << 15)) == 0) -#define ata_id_has_lba(id) ((id)[49] & (1 << 9)) -#define ata_id_has_dma(id) ((id)[49] & (1 << 8)) -#define ata_id_has_ncq(id) ((id)[76] & (1 << 8)) -#define ata_id_queue_depth(id) (((id)[75] & 0x1f) + 1) -#define ata_id_removeable(id) ((id)[0] & (1 << 7)) -#define ata_id_iordy_disable(id) ((id)[49] & (1 << 10)) -#define ata_id_has_iordy(id) ((id)[49] & (1 << 11)) - -#define ata_id_u32(id,n) \ - (((u32) (id)[(n) + 1] << 16) | ((u32) (id)[(n)])) -#define ata_id_u64(id,n) \ - ( ((u64) (id)[(n) + 3] << 48) | \ - ((u64) (id)[(n) + 2] << 32) | \ - ((u64) (id)[(n) + 1] << 16) | \ - ((u64) (id)[(n) + 0]) ) - -#define ata_id_cdb_intr(id) (((id)[0] & 0x60) == 0x20) - -static inline int ata_id_has_fua(const u16 *id) -{ - if ((id[84] & 0xC000) != 0x4000) - return 0; - return id[84] & (1 << 6); -} - -static inline int ata_id_has_flush(const u16 *id) -{ - if ((id[83] & 0xC000) != 0x4000) - return 0; - return id[83] & (1 << 12); -} - -static inline int ata_id_has_flush_ext(const u16 *id) -{ - if ((id[83] & 0xC000) != 0x4000) - return 0; - return id[83] & (1 << 13); -} - -static inline int ata_id_has_lba48(const u16 *id) -{ - if ((id[83] & 0xC000) != 0x4000) - return 0; - if (!ata_id_u64(id, 100)) - return 0; - return id[83] & (1 << 10); -} - -static inline int ata_id_hpa_enabled(const u16 *id) -{ - /* Yes children, word 83 valid bits cover word 82 data */ - if ((id[83] & 0xC000) != 0x4000) - return 0; - /* And 87 covers 85-87 */ - if ((id[87] & 0xC000) != 0x4000) - return 0; - /* Check command sets enabled as well as supported */ - if ((id[85] & ( 1 << 10)) == 0) - return 0; - return id[82] & (1 << 10); -} - -static inline int ata_id_has_wcache(const u16 *id) -{ - /* Yes children, word 83 valid bits cover word 82 data */ - if ((id[83] & 0xC000) != 0x4000) - return 0; - return id[82] & (1 << 5); -} - -static inline int ata_id_has_pm(const u16 *id) -{ - if ((id[83] & 0xC000) != 0x4000) - return 0; - return id[82] & (1 << 3); -} - -static inline int ata_id_rahead_enabled(const u16 *id) -{ - if ((id[87] & 0xC000) != 0x4000) - return 0; - return id[85] & (1 << 6); -} - -static inline int ata_id_wcache_enabled(const u16 *id) -{ - if ((id[87] & 0xC000) != 0x4000) - return 0; - return id[85] & (1 << 5); -} - -static inline unsigned int ata_id_major_version(const u16 *id) -{ - unsigned int mver; - - if (id[ATA_ID_MAJOR_VER] == 0xFFFF) - return 0; - - for (mver = 14; mver >= 1; mver--) - if (id[ATA_ID_MAJOR_VER] & (1 << mver)) - break; - return mver; -} - -static inline int ata_id_is_sata(const u16 *id) -{ - return ata_id_major_version(id) >= 5 && id[93] == 0; -} - -static inline int ata_id_has_tpm(const u16 *id) -{ - /* The TPM bits are only valid on ATA8 */ - if (ata_id_major_version(id) < 8) - return 0; - if ((id[48] & 0xC000) != 0x4000) - return 0; - return id[48] & (1 << 0); -} - -static inline int ata_id_has_dword_io(const u16 *id) -{ - /* ATA 8 reuses this flag for "trusted" computing */ - if (ata_id_major_version(id) > 7) - return 0; - if (id[48] & (1 << 0)) - return 1; - return 0; -} - -static inline int ata_id_current_chs_valid(const u16 *id) -{ - /* For ATA-1 devices, if the INITIALIZE DEVICE PARAMETERS command - has not been issued to the device then the values of - id[54] to id[56] are vendor specific. */ - return (id[53] & 0x01) && /* Current translation valid */ - id[54] && /* cylinders in current translation */ - id[55] && /* heads in current translation */ - id[55] <= 16 && - id[56]; /* sectors in current translation */ -} - -static inline int ata_id_is_cfa(const u16 *id) -{ - u16 v = id[0]; - if (v == 0x848A) /* Standard CF */ - return 1; - /* Could be CF hiding as standard ATA */ - if (ata_id_major_version(id) >= 3 && id[82] != 0xFFFF && - (id[82] & ( 1 << 2))) - return 1; - return 0; -} - -static inline int ata_drive_40wire(const u16 *dev_id) -{ - if (ata_id_is_sata(dev_id)) - return 0; /* SATA */ - if ((dev_id[93] & 0xE000) == 0x6000) - return 0; /* 80 wire */ - return 1; -} - -static inline int ata_drive_40wire_relaxed(const u16 *dev_id) -{ - if ((dev_id[93] & 0x2000) == 0x2000) - return 0; /* 80 wire */ - return 1; -} - -static inline int atapi_cdb_len(const u16 *dev_id) -{ - u16 tmp = dev_id[0] & 0x3; - switch (tmp) { - case 0: return 12; - case 1: return 16; - default: return -1; - } -} - -static inline int atapi_command_packet_set(const u16 *dev_id) -{ - return (dev_id[0] >> 8) & 0x1f; -} - -static inline int atapi_id_dmadir(const u16 *dev_id) -{ - return ata_id_major_version(dev_id) >= 7 && (dev_id[62] & 0x8000); -} - -static inline int is_multi_taskfile(struct ata_taskfile *tf) -{ - return (tf->command == ATA_CMD_READ_MULTI) || - (tf->command == ATA_CMD_WRITE_MULTI) || - (tf->command == ATA_CMD_READ_MULTI_EXT) || - (tf->command == ATA_CMD_WRITE_MULTI_EXT) || - (tf->command == ATA_CMD_WRITE_MULTI_FUA_EXT); -} - -static inline int ata_ok(u8 status) -{ - return ((status & (ATA_BUSY | ATA_DRDY | ATA_DF | ATA_DRQ | ATA_ERR)) - == ATA_DRDY); -} - -static inline int lba_28_ok(u64 block, u32 n_block) -{ - /* check the ending block number */ - return ((block + n_block - 1) < ((u64)1 << 28)) && (n_block <= 256); -} - -static inline int lba_48_ok(u64 block, u32 n_block) -{ - /* check the ending block number */ - return ((block + n_block - 1) < ((u64)1 << 48)) && (n_block <= 65536); -} - -#define sata_pmp_gscr_vendor(gscr) ((gscr)[SATA_PMP_GSCR_PROD_ID] & 0xffff) -#define sata_pmp_gscr_devid(gscr) ((gscr)[SATA_PMP_GSCR_PROD_ID] >> 16) -#define sata_pmp_gscr_rev(gscr) (((gscr)[SATA_PMP_GSCR_REV] >> 8) & 0xff) -#define sata_pmp_gscr_ports(gscr) ((gscr)[SATA_PMP_GSCR_PORT_INFO] & 0xf) - -u64 ata_id_n_sectors(u16 *id); -u32 ata_dev_classify(u32 sig); -void ata_id_c_string(const u16 *id, unsigned char *s, - unsigned int ofs, unsigned int len); -void ata_dump_id(u16 *id); -void ata_swap_buf_le16(u16 *buf, unsigned int buf_words); - -#endif /* __LIBATA_H__ */ diff --git a/bsp/ls2kdev/drivers/board.c b/bsp/ls2kdev/drivers/board.c deleted file mode 100644 index 9b79902c41..0000000000 --- a/bsp/ls2kdev/drivers/board.c +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic Initial version - */ - -#include -#include - -#include "mips_regs.h" -#include "mips_fpu.h" -#include "exception.h" -#include "drv_uart.h" -#include "board.h" -#include "ls2k1000.h" - -/** - * this function will reset CPU - * - */ -void rt_hw_cpu_reset(void) -{ - WDT_EN = 0x01; - WDT_TIMER = 0x01; - WDT_SET = 0x01; - rt_kprintf("reboot system...\n"); - while (1); -} -MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset cpu); - - -/** - * this function will shutdown CPU - * - */ -void rt_hw_cpu_shutdown(void) -{ - PM1_STS &= 0xffffffff; - PM1_CNT = 0x3c00; - rt_kprintf("shutdown...\n"); - - while (1); -} -MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_shutdown, poweroff, shutdown cpu); - - -/** - * This is the timer interrupt service routine. - */ -void rt_hw_timer_handler(void) -{ - unsigned int count; - - count = read_c0_compare(); - write_c0_compare(count); - write_c0_count(0); - /* increase a OS tick */ - rt_tick_increase(); -} - -/** - * This function will initial OS timer - */ -void rt_hw_timer_init(void) -{ - write_c0_compare(CPU_HZ / 2 / RT_TICK_PER_SECOND); - write_c0_count(0); - mips_unmask_cpu_irq(7); -} - -/** - * Board level initialization - */ -void rt_hw_board_init(void) -{ - rt_hw_exception_init(); - /* init hardware interrupt */ - rt_hw_interrupt_init(); - -#ifdef RT_USING_FPU - /* init hardware fpu */ - rt_hw_fpu_init(); -#endif - -#ifdef RT_USING_SERIAL - /* init hardware UART device */ - rt_hw_uart_init(); - /* set console device */ - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); -#endif - -#ifdef RT_USING_HEAP - rt_system_heap_init((void *)RT_HW_HEAP_BEGIN, (void *)RT_HW_HEAP_END); -#endif - - /* init operating system timer */ - rt_hw_timer_init(); - -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif - - rt_kprintf("Current SR: 0x%08x\n", read_c0_status()); - -} diff --git a/bsp/ls2kdev/drivers/board.h b/bsp/ls2kdev/drivers/board.h deleted file mode 100644 index ca57ebf3f2..0000000000 --- a/bsp/ls2kdev/drivers/board.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic the first version - */ - -#ifndef BOARD_H__ -#define BOARD_H__ - -#include - -extern unsigned char __bss_end; - -#define CPU_HZ (1000 * 1000 * 1000) //QEMU 200*1000*1000 -#define RT_HW_HEAP_BEGIN (void*)&__bss_end -#define RT_HW_HEAP_END (void*)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024) - -void rt_hw_board_init(void); - -#endif diff --git a/bsp/ls2kdev/drivers/clk.c b/bsp/ls2kdev/drivers/clk.c deleted file mode 100644 index b919713490..0000000000 --- a/bsp/ls2kdev/drivers/clk.c +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * - * Copyright (c) 2020, duhuanpeng<548708880@qq.com> - * legacy driver APIs from loongson 1C BSP. - */ - -#include -#include "ls2k1000.h" - -struct loongson_pll -{ - rt_uint64_t PLL_SYS_0; - rt_uint64_t PLL_SYS_1; - rt_uint64_t PLL_DDR_0; - rt_uint64_t PLL_DDR_1; - rt_uint64_t PLL_DC_0; - rt_uint64_t PLL_DC_1; - rt_uint64_t PLL_PIX0_0; - rt_uint64_t PLL_PIX0_1; - rt_uint64_t PLL_PIX1_0; - rt_uint64_t PLL_PIX1_1; - rt_uint64_t FREQSCALE; -}; - -/* See the Schematic */ -#define SYS_CLKSEL1 1 -#define SYS_CLKSEL0 0 - -/* bit field helpers. */ -#define __M(n) (~(~0<<(n))) -#define __RBF(number, n) ((number)&__M(n)) -#define __BF(number, n, m) __RBF((number>>m), (n-m+1)) -#define BF(number, n, m) (mPLL_SYS_0, 26, 31); - l1_div_loopc = BF(pll->PLL_SYS_0, 32, 41); - l2_div_out_node = BF(pll->PLL_SYS_1, 5, 0); - - node_clock = refclk / l1_div_ref * l1_div_loopc / l2_div_out_node; - return node_clock; -} - -unsigned long clk_get_ddr_rate(void) -{ - unsigned long ddr_clock; - int l1_div_ref; - int l1_div_loopc; - int l2_div_out_ddr; - - l1_div_ref = BF(pll->PLL_DDR_0, 26, 31); - l1_div_loopc = BF(pll->PLL_DDR_0, 32, 41); - l2_div_out_ddr = BF(pll->PLL_DDR_1, 0, 5); - - ddr_clock = refclk / l1_div_ref * l1_div_loopc / l2_div_out_ddr; - return ddr_clock; -} - -unsigned long clk_get_apb_rate(void) -{ - unsigned long apb_clock; - int apb_freqscale; - - apb_freqscale = BF(pll->FREQSCALE, 22, 20); - - /* gmac clock is fixed 125MHz */ - apb_clock = gmac_clock * (apb_freqscale + 1) / 8; - return apb_clock; - -} - -unsigned long clk_get_dc_rate(void) -{ - return -RT_ENOSYS; -} diff --git a/bsp/ls2kdev/drivers/clk.h b/bsp/ls2kdev/drivers/clk.h deleted file mode 100644 index 3a73da861c..0000000000 --- a/bsp/ls2kdev/drivers/clk.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-09-06 勤为本 first version - * - * Copyright (c) 2020, Du Huanpeng <548708880@qq.com> - * base on bsp/ls1cdev/libraries/ls1c_clock.h - */ - -#ifndef __LOONGSON_CLK_H__ -#define __LOONGSON_CLK_H__ - -unsigned long clk_get_pll_rate(void); -unsigned long clk_get_cpu_rate(void); -unsigned long clk_get_ddr_rate(void); -unsigned long clk_get_apb_rate(void); -unsigned long clk_get_dc_rate(void); - -#endif diff --git a/bsp/ls2kdev/drivers/drv_gpio.c b/bsp/ls2kdev/drivers/drv_gpio.c deleted file mode 100644 index 73a806afb2..0000000000 --- a/bsp/ls2kdev/drivers/drv_gpio.c +++ /dev/null @@ -1,267 +0,0 @@ -/* SPDX-License-Identifier: Apache-2.0 */ -/* Copyright (c) 2006-2018, RT-Thread Development Team - * Copyright (c) 2020, duhuanpeng<548708880@qq.com> - * - * Change Logs: - * Date Author Notes - * 2015-01-20 Bernard the first version - * 2017-10-20 ZYH add mode open drain and input pull down - * 2020-06-01 Du Huanpeng GPIO driver based on - */ -#include -#include -#include -#include "drv_gpio.h" - -#ifdef RT_USING_PIN -#define GPIO_IRQ_NUM (64) -static struct gpio_irq_def _g_gpio_irq_tbl[GPIO_IRQ_NUM]; - -static void loongson_pin_mode(struct rt_device *device, rt_base_t pin, rt_base_t mode) -{ - struct loongson_gpio *gpio; - rt_uint64_t m; - - gpio = (void *)device->user_data; - m = (rt_uint64_t)1 << pin; - - switch (mode) - { - case PIN_MODE_OUTPUT: - gpio->GPIO0_OEN &= ~m; - break; - case PIN_MODE_INPUT: - gpio->GPIO0_OEN |= m; - break; - case PIN_MODE_INPUT_PULLUP: - gpio->GPIO0_OEN |= m; - break; - case PIN_MODE_INPUT_PULLDOWN: - gpio->GPIO0_OEN |= m; - break; - case PIN_MODE_OUTPUT_OD: - gpio->GPIO0_OEN &= ~m; - break; - default: - /* error */ - rt_kprintf("error\n"); - } -} - -static void loongson_pin_write(struct rt_device *device, rt_base_t pin, rt_base_t value) -{ - struct loongson_gpio *gpio; - rt_uint64_t m; - - if (pin < 0 || pin >= 60) - { - rt_kprintf("error\n"); - return; - } - - gpio = (void *)device->user_data; - m = (rt_uint64_t)1 << pin; - - if (value) - gpio->GPIO0_O |= m; - else - gpio->GPIO0_O &= ~m; -} -static int loongson_pin_read(struct rt_device *device, rt_base_t pin) -{ - struct loongson_gpio *gpio; - int rc; - - gpio = (void *)device->user_data; - rt_uint64_t m; - - m = gpio->GPIO0_I; - m &= (rt_uint64_t)1 << pin; - - rc = !!m; - - return rc; -} - -/* TODO: add GPIO interrupt */ -static rt_err_t loongson_pin_attach_irq(struct rt_device *device, rt_int32_t pin, rt_uint32_t mode, void (*hdr)(void *args), void *args) -{ - rt_uint8_t index; - rt_uint64_t m; - struct loongson_gpio *gpio; - - gpio = (void *)device->user_data; - - if (pin < 4) - { - index = pin; - } - else if (pin < 32) - { - index = 5; - } - else - { - index = 6; - } - - _g_gpio_irq_tbl[index].irq_cb[pin] = hdr; - _g_gpio_irq_tbl[index].irq_arg[pin] = args; - _g_gpio_irq_tbl[index].irq_type[pin] = mode; - - liointc_set_irq_mode(index, mode); - m = (rt_uint64_t)1 << pin; - gpio->GPIO0_INTEN |= m; - - return RT_EOK; -} -static rt_err_t loongson_pin_detach_irq(struct rt_device *device, rt_int32_t pin) -{ - struct loongson_gpio *gpio; - - gpio = (void *)device->user_data; - - rt_uint8_t index; - if (pin < 4) - { - index = pin; - } - else if (pin < 32) - { - index = 5; - } - else - { - index = 6; - } - _g_gpio_irq_tbl[index].irq_cb[pin] = RT_NULL; - _g_gpio_irq_tbl[index].irq_arg[pin] = RT_NULL; - _g_gpio_irq_tbl[index].irq_type[pin] = RT_NULL; - _g_gpio_irq_tbl[index].state[pin] = RT_NULL; - - return RT_EOK; -} -static rt_err_t loongson_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t enabled) -{ - struct loongson_gpio *gpio; - - gpio = (void *)device->user_data; - - rt_uint8_t index; - if (pin < 4) - { - index = pin; - } - else if (pin < 32) - { - index = 5; - } - else - { - index = 6; - } - - if (enabled) - _g_gpio_irq_tbl[index].state[pin] = 1; - else - _g_gpio_irq_tbl[index].state[pin] = 0; - return RT_EOK; -} - -static void gpio_irq_handler(int irq, void *param) -{ - struct gpio_irq_def *irq_def = (struct gpio_irq_def *)param; - rt_uint32_t pin; - rt_uint32_t value; - rt_uint32_t tmpvalue; - - if (irq == LS2K_GPIO0_INT_IRQ) - { - pin = 0; - } - else if (irq == LS2K_GPIO1_INT_IRQ) - { - pin = 1; - } - else if (irq == LS2K_GPIO2_INT_IRQ) - { - pin = 2; - } - else if (irq == LS2K_GPIO3_INT_IRQ) - { - pin = 3; - } - else if (irq == LS2K_GPIO_INTLO_IRQ) - { - pin = 4; - } - else - { - pin = 32; - } - - while (value) - { - if ((value & 0x1) && (irq_def->irq_cb[pin] != RT_NULL)) - { - if (irq_def->state[pin]) - { - irq_def->irq_cb[pin](irq_def->irq_arg[pin]); - } - } - pin++; - value = value >> 1; - } -} - -static struct rt_pin_ops loongson_pin_ops = -{ - .pin_mode = loongson_pin_mode, - .pin_write = loongson_pin_write, - .pin_read = loongson_pin_read, - - /* TODO: add GPIO interrupt */ - .pin_attach_irq = loongson_pin_attach_irq, - .pin_detach_irq = loongson_pin_detach_irq, - .pin_irq_enable = loongson_pin_irq_enable, - .pin_get = RT_NULL, -}; - - -int loongson_pin_init(void) -{ - int rc; - static struct loongson_gpio *loongson_gpio_priv; - - loongson_gpio_priv = (void *)GPIO_BASE; - rc = rt_device_pin_register("pin", &loongson_pin_ops, loongson_gpio_priv); - - //gpio0 - rt_hw_interrupt_install(LS2K_GPIO0_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[0], "gpio0_irq"); - rt_hw_interrupt_umask(LS2K_GPIO0_INT_IRQ); - - //gpio1 - rt_hw_interrupt_install(LS2K_GPIO1_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[1], "gpio1_irq"); - rt_hw_interrupt_umask(LS2K_GPIO1_INT_IRQ); - - //gpio2 - rt_hw_interrupt_install(LS2K_GPIO2_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[2], "gpio2_irq"); - rt_hw_interrupt_umask(LS2K_GPIO2_INT_IRQ); - - //gpio3 - rt_hw_interrupt_install(LS2K_GPIO3_INT_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[3], "gpio3_irq"); - rt_hw_interrupt_umask(LS2K_GPIO3_INT_IRQ); - - //gpio4~gpio31 - rt_hw_interrupt_install(LS2K_GPIO_INTLO_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[4], "gpio4_irq"); - rt_hw_interrupt_umask(LS2K_GPIO_INTLO_IRQ); - - //gpio32~gpio63 - rt_hw_interrupt_install(LS2K_GPIO_INTHI_IRQ, gpio_irq_handler, &_g_gpio_irq_tbl[5], "gpio5_irq"); - rt_hw_interrupt_umask(LS2K_GPIO_INTHI_IRQ); - - return rc; -} -INIT_BOARD_EXPORT(loongson_pin_init); - -#endif /*RT_USING_PIN */ diff --git a/bsp/ls2kdev/drivers/drv_gpio.h b/bsp/ls2kdev/drivers/drv_gpio.h deleted file mode 100644 index 4bf1ba80f5..0000000000 --- a/bsp/ls2kdev/drivers/drv_gpio.h +++ /dev/null @@ -1,40 +0,0 @@ -/* SPDX-License-Identifier: Apache-2.0 */ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-11-24 勤为本 first version - * 2018-05-11 zhuangwei add gpio interrupt ops - */ - -#ifndef __DRV_GPIO_H__ -#define __DRV_GPIO_H__ - -#include - -struct gpio_irq_def -{ - void *irq_arg[32]; - void (*irq_cb[32])(void *param); - rt_uint8_t irq_type[32]; - rt_uint8_t state[32]; -}; - -struct loongson_gpio { - rt_uint64_t GPIO0_OEN; - rt_uint64_t GPIO1_OEN; /* Reserved */ - rt_uint64_t GPIO0_O; - rt_uint64_t GPIO1_O; /* Reserved */ - rt_uint64_t GPIO0_I; - rt_uint64_t GPIO1_I; /* Reserved */ - rt_uint64_t GPIO0_INTEN; - rt_uint64_t GPIO1_INTEN; /* Reserved */ -}; - -int loongson_pin_init(void); - -#endif - diff --git a/bsp/ls2kdev/drivers/drv_pwm.c b/bsp/ls2kdev/drivers/drv_pwm.c deleted file mode 100644 index 1b5c98755d..0000000000 --- a/bsp/ls2kdev/drivers/drv_pwm.c +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Copyright(c) 2020, Du Huanpeng<548708880@qq.com> - * - */ - -#include -#include -#include - -#ifdef RT_USING_PWM - -#define PWM0_BASE (0xFFFFFFFFBFe02000) -#define PWM1_BASE (0xFFFFFFFFBFe02010) -#define PWM2_BASE (0xFFFFFFFFBFe02020) -#define PWM3_BASE (0xFFFFFFFFBFe02030) - -#define CTRL_EN (1UL<<0) -#define CTRL_OE (1UL<<3) -#define CTRL_SINGL (1UL<<4) -#define CTRL_INTE (1UL<<5) -#define CTRL_INT (1UL<<6) -#define CTRL_RST (1UL<<7) -#define CTRL_CAPTE (1UL<<8) -#define CTRL_INVERT (1UL<<9) -#define CTRL_DZONE (1UL<<10) - -struct loongson_pwm -{ - rt_uint32_t __PAD0; - rt_uint32_t low_buffer; - rt_uint32_t full_buffer; - rt_uint32_t ctrl; -}; - -rt_err_t loongson_pwm_enable(struct rt_device_pwm *device, int channel) -{ - int **priv; - struct loongson_pwm *chip; - volatile rt_uint64_t *config0; - rt_uint64_t m; - - channel %= 4; - - config0 = (void *)GEN_CONFIG0_REG; - m = 1ULL << 12 << channel; - *config0 |= m; - - priv = device->parent.user_data; - chip = (void *)priv[channel]; - chip->ctrl = CTRL_EN; - - return RT_EOK; -} - -rt_err_t loongson_pwm_disable(struct rt_device_pwm *device, int channel) -{ - struct loongson_pwm **chip; - rt_uint64_t m; - - chip = device->parent.user_data; - channel %= 4; - chip[channel]->ctrl &= ~CTRL_EN; - - return RT_EOK; -} - -rt_err_t loongson_pwm_set(struct rt_device_pwm *device, int channel, rt_uint32_t period, rt_uint32_t pulse) -{ - struct loongson_pwm *chip; - rt_uint32_t **priv; - - priv = device->parent.user_data; - channel %= 4; - chip = (void *)priv[channel]; - - chip->ctrl &= ~CTRL_EN; - chip->full_buffer = period; - chip->low_buffer = pulse; - chip->ctrl |= CTRL_EN; - - return RT_EOK; -} - -static rt_err_t loongson_pwm_ioctl(struct rt_device_pwm *device, int cmd, void *arg) -{ - rt_err_t rc; - struct rt_pwm_configuration *cfg; - - cfg = (void *)arg; - - switch (cmd) - { - case PWM_CMD_ENABLE: - rc = loongson_pwm_enable(device, cfg->channel); - break; - case PWM_CMD_DISABLE: - rc = loongson_pwm_disable(device, cfg->channel); - break; - case PWM_CMD_SET: - rc = loongson_pwm_set(device, cfg->channel, cfg->period, cfg->pulse); - break; - case PWM_CMD_GET: - rc = RT_ENOSYS; - break; - default: - rc = RT_EINVAL; - break; - } - return rc; -} - -struct rt_pwm_ops loongson_pwm_ops = -{ - .control = loongson_pwm_ioctl, -}; - -struct rt_device_pwm loongson_pwm = -{ - .ops = &loongson_pwm_ops, -}; - -int loongson_pwm_init(void) -{ - int rc = RT_EOK; - static rt_uint32_t *priv[] = - { - (void *)PWM0_BASE, - (void *)PWM1_BASE, - (void *)PWM2_BASE, - (void *)PWM3_BASE - }; - rc = rt_device_pwm_register(&loongson_pwm, "pwm0", &loongson_pwm_ops, &priv); - return rc; -} -INIT_DEVICE_EXPORT(loongson_pwm_init); - -#endif /*RT_USING_PWM*/ diff --git a/bsp/ls2kdev/drivers/drv_rtc.c b/bsp/ls2kdev/drivers/drv_rtc.c deleted file mode 100644 index 3cea0288be..0000000000 --- a/bsp/ls2kdev/drivers/drv_rtc.c +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * Copyright (c) 2020, Du Huanpeng <548708880@qq.com> - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-01-30 armink the first version - * 2020-06-23 Du Huanpeng based on components/drivers/rtc/soft_rtc.c - */ - - -#include -#include -#include -#include -#include "ls2k1000.h" - -#ifdef RT_USING_RTC - -struct loongson_rtc -{ - rt_uint32_t sys_toytrim; - rt_uint32_t sys_toywrite0; - rt_uint32_t sys_toywrite1; - rt_uint32_t sys_toyread0; - rt_uint32_t sys_toyread1; - rt_uint32_t sys_toymatch0; - rt_uint32_t sys_toymatch1; - rt_uint32_t sys_toymatch2; - rt_uint32_t sys_rtcctrl; - rt_uint32_t __pad4[3]; - rt_uint32_t __pad5[4]; - rt_uint32_t sys_rtctrim; - rt_uint32_t sys_rtcwrite0; - rt_uint32_t sys_rtcread0; - rt_uint32_t sys_rtcmatch0; - rt_uint32_t sys_rtcmatch1; - rt_uint32_t sys_rtcmatch2; -}; - -/* bit field helpers. */ -#define __M(n) (~(~0<<(n))) -#define __RBF(number, n) ((number)&__M(n)) -#define __BF(number, n, m) __RBF((number>>m), (n-m+1)) -#define BF(number, n, m) (msys_toyread0, 3, 0); - msec *= 100; - - time.tm_sec = BF(rtctp->sys_toyread0, 9, 4); - time.tm_min = BF(rtctp->sys_toyread0, 15, 10); - time.tm_hour = BF(rtctp->sys_toyread0, 20, 16); - time.tm_mday = BF(rtctp->sys_toyread0, 21, 25); - time.tm_mon = BF(rtctp->sys_toyread0, 26, 31); - /* struct tm has three more members: - time.tm_isdst - time.tm_wday - time.tm_yday - */ - time.tm_mon -= 1; - time.tm_year = rtctp->sys_toyread1; - return &time; -} - -rtctime_t mkrtctime(struct tm *tm) -{ - rtctime_t rtctm; - struct tm tmptime; - - rtctm.sys_toyread0 <<= 31 - 26 + 1; - rtctm.sys_toyread0 |= tm->tm_mon + 1; - rtctm.sys_toyread0 <<= 25 - 21 + 1; - rtctm.sys_toyread0 |= tm->tm_mday; - rtctm.sys_toyread0 <<= 20 - 16 + 1; - rtctm.sys_toyread0 |= tm->tm_hour; - rtctm.sys_toyread0 <<= 15 - 10 + 1; - rtctm.sys_toyread0 |= tm->tm_min; - rtctm.sys_toyread0 <<= 9 - 4 + 1; - rtctm.sys_toyread0 |= tm->tm_sec; - /* Fixme: 0.1 second */ - rtctm.sys_toyread0 <<= 3 - 0 + 1; - rtctm.sys_toyread0 |= 0; - - rtctm.sys_toyread1 = tm->tm_year; - - tmptime = *localrtctime(&rtctm); - - return rtctm; -} - -static rt_err_t rt_rtc_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -static rt_size_t rt_rtc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) -{ - return 0; -} - -static rt_err_t rt_rtc_ioctl(rt_device_t dev, int cmd, void *args) -{ - rt_err_t err = RT_ENOSYS; - - static int count = 0; - - struct loongson_rtc *hw_rtc; - rtctime_t rtctm; - struct tm time; - struct tm tmptime; - time_t *t; - - hw_rtc = dev->user_data; - - t = (time_t *)args; - time = *gmtime(t); - - rtctm.sys_toyread0 = hw_rtc->sys_toyread0; - rtctm.sys_toyread1 = hw_rtc->sys_toyread1; - rtctm.sys_rtcread0 = hw_rtc->sys_rtcread0; - tmptime = *localrtctime(&rtctm); - - switch (cmd) - { - case RT_DEVICE_CTRL_RTC_GET_TIME: - *t = timegm(&tmptime); - break; - case RT_DEVICE_CTRL_RTC_SET_TIME: - tmptime.tm_hour = time.tm_hour; - tmptime.tm_min = time.tm_min; - tmptime.tm_sec = time.tm_sec; - - tmptime.tm_year = time.tm_year; - tmptime.tm_mon = time.tm_mon; - tmptime.tm_mday = time.tm_mday; - - rtctm = mkrtctime(&tmptime); - /* write to hw RTC */ - hw_rtc->sys_toywrite0 = rtctm.sys_toyread0; - hw_rtc->sys_toywrite1 = rtctm.sys_toyread1; - break; - case RT_DEVICE_CTRL_RTC_GET_ALARM: - break; - case RT_DEVICE_CTRL_RTC_SET_ALARM: - break; - default: - break; - } - - return RT_EOK; -} - -int rt_hw_rtc_init(void) -{ - static struct rt_device rtc = - { - .type = RT_Device_Class_RTC, - .init = RT_NULL, - .open = rt_rtc_open, - .close = RT_NULL, - .read = rt_rtc_read, - .write = RT_NULL, - .control = rt_rtc_ioctl, - .user_data = (void *)RTC_BASE, - }; - rt_device_register(&rtc, "rtc", RT_DEVICE_FLAG_RDWR); -} - -INIT_DEVICE_EXPORT(rt_hw_rtc_init); - -#endif /*RT_USING_RTC*/ diff --git a/bsp/ls2kdev/drivers/drv_spi.c b/bsp/ls2kdev/drivers/drv_spi.c deleted file mode 100644 index daf069412b..0000000000 --- a/bsp/ls2kdev/drivers/drv_spi.c +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-10-28 0xcccccccccccc Initial Version - * 2021-01-17 0xcccccccccccc Bug Fixed : clock division cannot been adjusted as expected due to wrong register configuration. - */ - -/** - * @addtogroup ls2k - */ -/*@{*/ - -#include -#include -#include -#include -#include -#include "drv_spi.h" - -#ifdef RT_USING_SPI -#ifdef RT_USING_SPI_GPIOCS -#include -#endif - -static void spi_init(uint8_t spre_spr, uint8_t copl, uint8_t cpha) -{ - SET_SPI(SPSR, 0xc0); - SET_SPI(PARAM, 0x40); - SET_SPI(PARAM2, 0x01); - SET_SPI(SPER, (spre_spr & 0b00001100) >> 2); - SET_SPI(SPCR, 0x50 | copl << 3 | cpha << 2 | (spre_spr & 0b00000011)); - SET_SPI(SOFTCS, 0xff); -} - -rt_inline void spi_set_csn(uint8_t val) -{ - SET_SPI(SOFTCS, val); -} - -static void spi_set_cs(unsigned char cs, int new_status) -{ - if (cs < 4) - { - unsigned char val = 0; - val = GET_SPI(SOFTCS); - val |= 0x01 << cs ; // csen=1 - if (new_status) // cs = 1 - { - val |= (0x10 << cs); // csn=1 - } - else // cs = 0 - { - val &= ~(0x10 << cs); // csn=0 - } - SET_SPI(SOFTCS, val); - return ; - } -#ifdef RT_USING_SPI_GPIOCS - else - { - rt_pin_mode(cs, PIN_MODE_OUTPUT); // with RT_USING_SPI_GPIOCS feature enabled, gpio will be used as csn pin. - rt_pin_write(cs, new_status); - } -#endif -} - -static uint8_t spi_write_for_response(uint8_t data) -{ - uint8_t val; - SET_SPI(TXFIFO, data); - while ((GET_SPI(SPSR))&RFEMPTY); //wait for echo - val = GET_SPI(RXFIFO); - return val; -} - -static int cmd_spi_init(int argc, char *argv[]) -{ - uint8_t spre_spr, cpol, cpha; - switch (argc) - { - case 2: - spre_spr = strtoul(argv[1], NULL, 0); - spi_init(spre_spr, 0, 0); - break; - case 4: - spre_spr = strtoul(argv[1], NULL, 0); - cpol = strtoul(argv[2], NULL, 0); - cpha = strtoul(argv[3], NULL, 0); - spi_init(spre_spr, 0, 0); - break; - default: - printf("\nusage : cmd_spi_init spre_spr \n(cmd_spi_init 0x4 0x0 0x0)\n0x4:div8 0xb:div4096\n"); - break; - } -} -MSH_CMD_EXPORT(cmd_spi_init, cmd_spi_init); - -static int cmd_spi_set_csn(int argc, char *argv[]) -{ - uint8_t val, csn; - switch (argc) - { - case 3: - csn = strtoul(argv[1], NULL, 0); - val = strtoul(argv[2], NULL, 0); - spi_set_cs(csn, val); - break; - default: - printf("usage:cmd_spi_set_csn csn val\n(0xbf for csn1 enable,0xff for csn1 disable)\n"); - break; - } -} -MSH_CMD_EXPORT(cmd_spi_set_csn, cmd_spi_set_csn); - -static int cmd_spi_write(int argc, char *argv[]) -{ - uint8_t data, resp; - switch (argc) - { - case 2: - data = strtoul(argv[1], NULL, 0); - resp = spi_write_for_response(data); - printf("resp:%2X\n", resp); - break; - default: - printf("usage:cmd_spi_write data\n"); - break; - } -} -MSH_CMD_EXPORT(cmd_spi_write, cmd_spi_write); - -static rt_err_t configure(struct rt_spi_device *device, struct rt_spi_configuration *configuration); -static rt_uint32_t xfer(struct rt_spi_device *device, struct rt_spi_message *message); - -const static unsigned char SPI_DIV_TABLE[] = {0b0000, 0b0001, 0b0100, 0b0010, 0b0011, 0b0101, 0b0110, 0b0111, 0b1000, 0b1001, 0b1010, 0b1011}; -// 2 4 8 16 32 64 128 256 512 1024 2048 4096 -static rt_err_t configure(struct rt_spi_device *device, - struct rt_spi_configuration *configuration) -{ - - unsigned char cpol = 0; - unsigned char cpha = 0; - - RT_ASSERT(NULL != device); - RT_ASSERT(NULL != configuration); - - // baudrate - if (configuration->mode & RT_SPI_CPOL) // cpol - { - cpol = 1; - } - else - { - cpol = 0; - } - if (configuration->mode & RT_SPI_CPHA) // cpha - { - cpha = 1; - } - else - { - cpha = 0; - } - - float spi_max_speed = ((float)APB_MAX_SPEED) / (8.0 / (float)APB_FREQSCALE); - uint64_t div = (uint64_t)(spi_max_speed / (float)configuration->max_hz); - int ctr = 0; - while (div != 1 && ctr < 12) - { - ctr++; - div = div >> 1; - } - spi_init(SPI_DIV_TABLE[ctr], cpol, cpha); - - return RT_EOK; -} - -static rt_uint32_t xfer(struct rt_spi_device *device, struct rt_spi_message *message) -{ - - unsigned char cs = 0; - rt_uint32_t size = 0; - const rt_uint8_t *send_ptr = NULL; - rt_uint8_t *recv_ptr = NULL; - rt_uint8_t data = 0; - RT_ASSERT(NULL != device); - RT_ASSERT(NULL != message); - cs = (unsigned char)(device->parent.user_data); - size = message->length; - if (message->cs_take) - { - spi_set_cs(cs, 0); - } - // send data - send_ptr = message->send_buf; - recv_ptr = message->recv_buf; - while (size--) - { - data = 0xFF; - if (NULL != send_ptr) - { - data = *send_ptr++; - } - if (NULL != recv_ptr) - { - *recv_ptr++ = spi_write_for_response(data); - } - else - { - spi_write_for_response(data); - } - } - // release cs - if (message->cs_release) - { - spi_set_cs(cs, 1); - } - return message->length; -} - -static struct rt_spi_ops loongson_spi_ops = -{ - .configure = configure, - .xfer = xfer -}; -static struct rt_spi_bus loongson_spi; - -static int loongson_spi_init() -{ - //rt_kprintf("spi_init\n"); - return rt_spi_bus_register(&loongson_spi, "spi", &loongson_spi_ops); -} -INIT_BOARD_EXPORT(loongson_spi_init); -#endif -/*@}*/ diff --git a/bsp/ls2kdev/drivers/drv_spi.h b/bsp/ls2kdev/drivers/drv_spi.h deleted file mode 100644 index 447e65d91b..0000000000 --- a/bsp/ls2kdev/drivers/drv_spi.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-10-28 0xcccccccccccc Initial Version - */ -/** - * @addtogroup ls2k - */ -/*@{*/ -#ifndef LS2K_DRV_SPI_H -#define LS2K_DRV_SPI_H - -// kseg1 byte operation -#define KSEG1_STORE8(addr,val) *(volatile char *)(0xffffffffa0000000 | addr) = val -#define KSEG1_LOAD8(addr) *(volatile char *)(0xffffffffa0000000 | addr) -// clock configurations -#define APB_MAX_SPEED 125000000U -#define APB_FREQSCALE (((KSEG1_LOAD8(0xffffffffbfe104d2)>>4)&0x7)+1) -// base addrs -#define SPI_BASE 0x1fff0220 -#define PMON_ADDR 0xa1000000 -#define FLASH_ADDR 0x000000 -// bit bias -#define SPCR 0x0 -#define SPSR 0x1 -#define FIFO 0x2 -#define TXFIFO 0x2 -#define RXFIFO 0x2 -#define SPER 0x3 -#define PARAM 0x4 -#define SOFTCS 0x5 -#define PARAM2 0x6 -#define RFEMPTY 1 -// SPI controller operaion macros -#define SET_SPI(addr,val) KSEG1_STORE8(SPI_BASE+addr,val) -#define GET_SPI(addr) KSEG1_LOAD8(SPI_BASE+addr) - -#endif -/*@}*/ diff --git a/bsp/ls2kdev/drivers/drv_uart.c b/bsp/ls2kdev/drivers/drv_uart.c deleted file mode 100644 index 5b5c39c595..0000000000 --- a/bsp/ls2kdev/drivers/drv_uart.c +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic Initial version - * 2020-10-28 ma Buadrate & Multi-Port support - */ -/** - * @addtogroup ls2k - */ -/*@{*/ -#include -#include -#include -#include "drv_uart.h" -#define TRUE 1 -#define FALSE 0 -const struct serial_configure config_uart0 = { - BAUD_RATE_115200, /* 921600 bits/s */ - DATA_BITS_8, /* 8 databits */ - STOP_BITS_1, /* 1 stopbit */ - PARITY_NONE, /* No parity */ - BIT_ORDER_LSB, /* LSB first sent */ - NRZ_NORMAL, /* Normal mode */ - RT_SERIAL_RB_BUFSZ, /* Buffer size */ - 0 -}; -struct rt_uart_ls2k -{ - void *base; - rt_uint32_t IRQ; -}; -static rt_err_t ls2k_uart_set_buad(struct rt_serial_device *serial, struct serial_configure *cfg) -{ - struct rt_uart_ls2k *uart_dev = RT_NULL; - rt_err_t ret = RT_EOK; - RT_ASSERT(serial != RT_NULL); - RT_ASSERT(cfg != RT_NULL); - uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; - uint64_t brtc = (125000000U) / (16 * (cfg->baud_rate)); - UART_LCR(uart_dev->base) = 0x80; // Activate buadcfg - UART_LSB(uart_dev->base) = brtc & 0xff; - UART_MSB(uart_dev->base) = brtc >> 8; - if (((((short)UART_MSB(uart_dev->base)) << 8) | UART_LSB(uart_dev->base)) != brtc) ret = RT_ERROR; - UART_LCR(uart_dev->base) = CFCR_8BITS; // Back to normal - UART_MCR(uart_dev->base) = MCR_IENABLE/* | MCR_DTR | MCR_RTS*/; - UART_IER(uart_dev->base) = 0; -} -static rt_err_t ls2k_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) -{ - struct rt_uart_ls2k *uart_dev = RT_NULL; - RT_ASSERT(serial != RT_NULL); - RT_ASSERT(cfg != RT_NULL); - ls2k_uart_set_buad(serial, cfg); - uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; - HWREG8(0xffffffffbfe10428) = 0x1f; // Enable Multi-Port Support, by default it's 0x11 ,which means UART0 & UART4 Controller is in single port mode. - UART_IER(uart_dev->base) = 0; /* clear interrupt */ - UART_FCR(uart_dev->base) = 0xc1; /* reset UART Rx/Tx */ - /* set databits, stopbits and parity. (8-bit data, 1 stopbit, no parity) */ - UART_LCR(uart_dev->base) = 0x3; - UART_MCR(uart_dev->base) = 0x3; - UART_LSR(uart_dev->base) = 0x60; - UART_MSR(uart_dev->base) = 0xb0; - return RT_EOK; -} -static rt_err_t ls2k_uart_control(struct rt_serial_device *serial, int cmd, void *arg) -{ - struct rt_uart_ls2k *uart_dev = RT_NULL; - RT_ASSERT(serial != RT_NULL); - uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: /* Disable RX IRQ */ - rt_hw_interrupt_mask(uart_dev->IRQ); - break; - case RT_DEVICE_CTRL_SET_INT: /* Enable RX IRQ */ - rt_hw_interrupt_umask(uart_dev->IRQ); - UART_IER(uart_dev->base) |= (IER_IRxE | IER_ILE); - break; - default: - break; - } - return RT_EOK; -} -static rt_bool_t uart_is_transmit_empty(struct rt_uart_ls2k *uart_dev) -{ - unsigned char status = UART_LSR(uart_dev->base); - if (status & (UARTLSR_TE | UARTLSR_TFE)) - { - return TRUE; - } - else - { - return FALSE; - } -} -static int ls2k_uart_putc(struct rt_serial_device *serial, char c) -{ - struct rt_uart_ls2k *uart_dev = RT_NULL; - RT_ASSERT(serial != RT_NULL); - uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; - while (FALSE == uart_is_transmit_empty(uart_dev)) - ; - UART_DAT(uart_dev->base) = c; - return 1; -} -static int ls2k_uart_getc(struct rt_serial_device *serial) -{ - struct rt_uart_ls2k *uart_dev = RT_NULL; - RT_ASSERT(serial != RT_NULL); - uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; - if (LSR_RXRDY & UART_LSR(uart_dev->base)) - { - return UART_DAT(uart_dev->base); - } - return -1; -} -/* UART interrupt handler */ -static void uart_irq_handler(int vector, void *param) -{ - struct rt_serial_device *serial = (struct rt_serial_device *)param; - struct rt_uart_ls2k *uart_dev = RT_NULL; - RT_ASSERT(serial != RT_NULL); - uart_dev = (struct rt_uart_ls2k *)serial->parent.user_data; - unsigned char iir = UART_IIR(uart_dev->base); - /* Find out interrupt reason */ - if ((IIR_RXTOUT & iir) || (IIR_RXRDY & iir)) - { - rt_interrupt_enter(); - rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); - rt_interrupt_leave(); - } -} -static const struct rt_uart_ops ls2k_uart_ops = -{ - ls2k_uart_configure, - ls2k_uart_control, - ls2k_uart_putc, - ls2k_uart_getc, -}; -struct rt_uart_ls2k uart_dev0 = -{ - (void *)UARTx_BASE(0), - LS2K_UART_0_1_2_3_IRQ, -}; -struct rt_uart_ls2k uart_dev4 = -{ - (void *)UARTx_BASE(4), - LS2K_UART_4_5_6_7_IRQ, -}; - -struct rt_serial_device serial, serial4; - -void rt_hw_uart_init(void) -{ - struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; - -#ifdef RT_USING_UART0 - struct rt_uart_ls2k *uart0; - uart0 = &uart_dev0; - serial.ops = &ls2k_uart_ops; - serial.config = config_uart0; - - rt_hw_interrupt_install(uart0->IRQ, uart_irq_handler, &serial, "UART0"); - /* register UART device */ - rt_hw_serial_register(&serial, - "uart0", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - uart0); -#endif - -#ifdef RT_USING_UART4 - struct rt_uart_ls2k *uart4; - uart4 = &uart_dev4; - serial4.ops = &ls2k_uart_ops; - serial4.config = config; - rt_hw_interrupt_install(uart4->IRQ, uart_irq_handler, &serial4, "UART4"); - rt_hw_serial_register(&serial4, - "uart4", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, - &uart_dev4); -#endif -} -/*@}*/ diff --git a/bsp/ls2kdev/drivers/drv_uart.h b/bsp/ls2kdev/drivers/drv_uart.h deleted file mode 100644 index ca3e856d06..0000000000 --- a/bsp/ls2kdev/drivers/drv_uart.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic Initial version - */ - -#ifndef _DRV_UART_H__ -#define _DRV_UART_H__ - -#include "ls2k1000.h" -#include - -/* UART registers */ -#define UART_DAT(base) HWREG8(base + 0x00) -#define UART_IER(base) HWREG8(base + 0x01) -#define UART_IIR(base) HWREG8(base + 0x02) -#define UART_FCR(base) HWREG8(base + 0x02) -#define UART_LCR(base) HWREG8(base + 0x03) -#define UART_MCR(base) HWREG8(base + 0x04) -#define UART_LSR(base) HWREG8(base + 0x05) -#define UART_MSR(base) HWREG8(base + 0x06) - -#define UART_LSB(base) HWREG8(base + 0x00) -#define UART_MSB(base) HWREG8(base + 0x01) - -/* interrupt enable register */ -#define IER_IRxE 0x1 -#define IER_ITxE 0x2 -#define IER_ILE 0x4 -#define IER_IME 0x8 - -/* interrupt identification register */ -#define IIR_IMASK 0xf /* mask */ -#define IIR_RXTOUT 0xc /* receive timeout */ -#define IIR_RLS 0x6 /* receive line status */ -#define IIR_RXRDY 0x4 /* receive ready */ -#define IIR_TXRDY 0x2 /* transmit ready */ -#define IIR_NOPEND 0x1 /* nothing */ -#define IIR_MLSC 0x0 /* modem status */ -#define IIR_FIFO_MASK 0xc0 /* set if FIFOs are enabled */ - -/* fifo control register */ -#define FIFO_ENABLE 0x01 /* enable fifo */ -#define FIFO_RCV_RST 0x02 /* reset receive fifo */ -#define FIFO_XMT_RST 0x04 /* reset transmit fifo */ -#define FIFO_DMA_MODE 0x08 /* enable dma mode */ -#define FIFO_TRIGGER_1 0x00 /* trigger at 1 char */ -#define FIFO_TRIGGER_4 0x40 /* trigger at 4 chars */ -#define FIFO_TRIGGER_8 0x80 /* trigger at 8 chars */ -#define FIFO_TRIGGER_14 0xc0 /* trigger at 14 chars */ - -/* character format control register */ -#define CFCR_DLAB 0x80 /* divisor latch */ -#define CFCR_SBREAK 0x40 /* send break */ -#define CFCR_PZERO 0x30 /* zero parity */ -#define CFCR_PONE 0x20 /* one parity */ -#define CFCR_PEVEN 0x10 /* even parity */ -#define CFCR_PODD 0x00 /* odd parity */ -#define CFCR_PENAB 0x08 /* parity enable */ -#define CFCR_STOPB 0x04 /* 2 stop bits */ -#define CFCR_8BITS 0x03 /* 8 data bits */ -#define CFCR_7BITS 0x02 /* 7 data bits */ -#define CFCR_6BITS 0x01 /* 6 data bits */ -#define CFCR_5BITS 0x00 /* 5 data bits */ - -/* modem control register */ -#define MCR_LOOPBACK 0x10 /* loopback */ -#define MCR_IENABLE 0x08 /* output 2 = int enable */ -#define MCR_DRS 0x04 /* output 1 = xxx */ -#define MCR_RTS 0x02 /* enable RTS */ -#define MCR_DTR 0x01 /* enable DTR */ - -/* line status register */ -#define LSR_RCV_FIFO 0x80 /* error in receive fifo */ -#define LSR_TSRE 0x40 /* transmitter empty */ -#define LSR_TXRDY 0x20 /* transmitter ready */ -#define LSR_BI 0x10 /* break detected */ -#define LSR_FE 0x08 /* framing error */ -#define LSR_PE 0x04 /* parity error */ -#define LSR_OE 0x02 /* overrun error */ -#define LSR_RXRDY 0x01 /* receiver ready */ -#define LSR_RCV_MASK 0x1f - - -/* UART interrupt enable register value */ -#define UARTIER_IME (1 << 3) -#define UARTIER_ILE (1 << 2) -#define UARTIER_ITXE (1 << 1) -#define UARTIER_IRXE (1 << 0) - -/* UART line control register value */ -#define UARTLCR_DLAB (1 << 7) -#define UARTLCR_BCB (1 << 6) -#define UARTLCR_SPB (1 << 5) -#define UARTLCR_EPS (1 << 4) -#define UARTLCR_PE (1 << 3) -#define UARTLCR_SB (1 << 2) - -/* UART line status register value */ -#define UARTLSR_ERROR (1 << 7) -#define UARTLSR_TE (1 << 6) -#define UARTLSR_TFE (1 << 5) -#define UARTLSR_BI (1 << 4) -#define UARTLSR_FE (1 << 3) -#define UARTLSR_PE (1 << 2) -#define UARTLSR_OE (1 << 1) -#define UARTLSR_DR (1 << 0) - -#endif diff --git a/bsp/ls2kdev/drivers/interrupt.c b/bsp/ls2kdev/drivers/interrupt.c deleted file mode 100644 index 9e9c210aa0..0000000000 --- a/bsp/ls2kdev/drivers/interrupt.c +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic Initial version - */ - -/** - * @addtogroup ls2k - */ - -/*@{*/ - -#include -#include -#include -#include -#include "ls2k1000.h" -#include "interrupt.h" - -static struct rt_irq_desc irq_handle_table[MAX_INTR]; - -static void rt_hw_interrupt_handler(int vector, void *param) -{ - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); -} - -static void liointc_init(void) -{ - int i; - /* Router for LIOINTC0, to Core 0, INT0 (CPU IP2) */ - for (i = 0; i < 32; i ++) - { - HWREG8(LIOINTC0_BASE + i) = LIOINTC_COREx_INTy(0, 0); - } - - /* Router for LIOINTC1, to Core 0, INT1 (CPU IP3) */ - for (i = 0; i < 32; i ++) - { - HWREG8(LIOINTC1_BASE + i) = LIOINTC_COREx_INTy(0, 1); - } - - /* Disable all IRQs */ - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_DISABLE) = 0xffffffff; - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_DISABLE) = 0xffffffff; - - /* Set all IRQs to low level triggered (Default?) */ - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) = 0x0; - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) = 0x0; - - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) = 0x0; - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) = 0x0; -} - -//set irq mode -void liointc_set_irq_mode(int irq, int mode) -{ - if (irq < 32) - { - if (mode == PIN_IRQ_MODE_RISING) - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq)); - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq)); - } - else if (mode == PIN_IRQ_MODE_FALLING) - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq)); - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq)); - } - else if (mode == PIN_IRQ_MODE_HIGH_LEVEL) - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq)); - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq)); - } - else if (mode == PIN_IRQ_MODE_LOW_LEVEL) - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq)); - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq)); - } - else - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq)); - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq)); - } - } - else - { - if (mode == PIN_IRQ_MODE_RISING) - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq - 32)); - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq - 32)); - } - else if (mode == PIN_IRQ_MODE_FALLING) - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq - 32)); - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq - 32)); - } - else if (mode == PIN_IRQ_MODE_HIGH_LEVEL) - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq - 32)); - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq - 32)); - } - else if (mode == PIN_IRQ_MODE_LOW_LEVEL) - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x0 << (irq - 32)); - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x0 << (irq - 32)); - } - else - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_POL) |= (0x1 << (irq - 32)); - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_EDGE) |= (0x1 << (irq - 32)); - } - } -} - -static void liointc_isr(rt_ubase_t reg_base, rt_ubase_t isr_base, - int irq_base) -{ - rt_uint32_t isr, tmp; - int intx; - /* Mask to clear ISR */ - isr = HWREG32(isr_base); - - tmp = isr; - /* Handle each of them */ - while (tmp) - { - rt_isr_handler_t irq_func; - void *param; - int irq; - - intx = __rt_ffs(isr) - 1; - tmp &= ~(1 << intx); - - irq = intx + irq_base; - - irq_func = irq_handle_table[irq].handler; - param = irq_handle_table[irq].param; - irq_func(irq, param); -#ifdef RT_USING_INTERRUPT_INFO - irq_handle_table[irq].counter++; -#endif - } - - /* Enable them again */ - HWREG32(reg_base + LIOINTC_REG_INTC_ENABLE) = isr; -} - -/** - * This function will initialize hardware interrupt - */ -void rt_hw_interrupt_init(void) -{ - rt_uint32_t idx; - - rt_memset(irq_handle_table, 0x00, sizeof(irq_handle_table)); - for (idx = 0; idx < MAX_INTR; idx ++) - { - irq_handle_table[idx].handler = rt_hw_interrupt_handler; - } - - liointc_init(); -} - -rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, - void *param, const char *name) -{ - rt_isr_handler_t old_handler = RT_NULL; - - if (vector >= 0 && vector < MAX_INTR) - { - old_handler = irq_handle_table[vector].handler; - -#ifdef RT_USING_INTERRUPT_INFO - rt_strncpy(irq_handle_table[vector].name, name, RT_NAME_MAX); -#endif /* RT_USING_INTERRUPT_INFO */ - irq_handle_table[vector].handler = handler; - irq_handle_table[vector].param = param; - } - - if (vector <= 32) - { - mips_unmask_cpu_irq(2); - } - else - { - mips_unmask_cpu_irq(3); - } - - return old_handler; -} - -void rt_do_mips_cpu_irq(rt_uint32_t ip) -{ - void *param; - rt_isr_handler_t irq_func; - if (ip == 7) - { - rt_hw_timer_handler(); - } - else if (ip == 2) - { - liointc_isr(LIOINTC0_BASE, CORE0_INTISR0, LIOINTC0_IRQBASE); - } - else if (ip == 3) - { - liointc_isr(LIOINTC1_BASE, CORE0_INTISR1, LIOINTC1_IRQBASE); - } -} - -void rt_hw_interrupt_umask(int irq) -{ - if (irq < LIOINTC0_IRQBASE + 32) - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_ENABLE) = (1 << irq); - } - else if (irq < LIOINTC1_IRQBASE + 32) - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_ENABLE) = (1 << (irq - 32)); - } -} - -void rt_hw_interrupt_mask(int irq) -{ - if (irq < LIOINTC0_IRQBASE + 32) - { - HWREG32(LIOINTC0_BASE + LIOINTC_REG_INTC_DISABLE) = (1 << irq); - } - else if (irq < LIOINTC1_IRQBASE + 32) - { - HWREG32(LIOINTC1_BASE + LIOINTC_REG_INTC_DISABLE) = (1 << (irq - 32)); - } -} -/*@}*/ diff --git a/bsp/ls2kdev/drivers/interrupt.h b/bsp/ls2kdev/drivers/interrupt.h deleted file mode 100644 index df55437cf9..0000000000 --- a/bsp/ls2kdev/drivers/interrupt.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-06-21 bigmagic Initial version - */ - -#ifndef _DRV_INTERRUPT_H__ -#define _DRV_INTERRUPT_H__ - -#define LS2K_UART_0_1_2_3_IRQ (0) -#define LS2K_UART_4_5_6_7_IRQ (1) -#define LS2K_UART_8_9_10_11_IRQ (2) -#define LS2K_EL_IRQ (3) -#define LS2K_HDA_IRQ (4) -#define LS2K_I2S_IRQ (5) -#define LS2K_RESERVED1_IRQ (6) -#define LS2K_THSENS_IRQ (7) -#define LS2K_TOY_TICK_IRQ (8) -#define LS2K_RTC_TICK_IRQ (9) -#define LS2K_CAM_TICK_IRQ (10) -#define LS2K_RESERVED2_IRQ (11) -#define LS2K_GMAC0_SBD_IRQ (12) -#define LS2K_GMAC0_PMT_IRQ (13) -#define LS2K_GMAC1_SBD_IRQ (14) -#define LS2K_GMAC1_PMT_IRQ (15) -#define LS2K_CANO_IRQ (16) -#define LS2K_CAN1_IRQ (17) -#define LS2K_BOOT_IRQ (18) -#define LS2K_SATA_IRQ (19) -#define LS2K_NAND_IRQ (20) -#define LS2K_HPET_IRQ (21) -#define LS2K_I2C0_IRQ (21) -#define LS2K_I2C1_IRQ (22) -#define LS2K_I2C2_IRQ (23) -#define LS2K_PWM0_IRQ (24) -#define LS2K_PWM1_IRQ (25) -#define LS2K_PWM2_IRQ (26) -#define LS2K_PWM3_IRQ (27) -#define LS2K_DC_IRQ (28) -#define LS2K_GPU_IRQ (29) -#define LS2K_VPU_IRQ (30) -#define LS2K_SDIO_IRQ (31) -//#define LS2K_PCIE0_IRQ (32~35) -//#define LS2K_PCIE1_IRQ (36~37) -#define LS2K_HPET1_IRQ (38) -#define LS2K_HPET2_IRQ (39) -//#define LS2K_TOY_IRQ (40~43) -//#define LS2K_DMA_IRQ (44~48) -#define LS2K_OTG_IRQ (49) -#define LS2K_EHCI_IRQ (50) -#define LS2K_OHCI_IRQ (51) -//#define LS2K_RTC_IRQ (52~54) -#define LS2K_RSA_IRQ (55) -#define LS2K_AES_IRQ (56) -#define LS2K_DES_IRQ (57) -#define LS2K_GPIO_INTLO_IRQ (58) -#define LS2K_GPIO_INTHI_IRQ (59) -#define LS2K_GPIO0_INT_IRQ (60) -#define LS2K_GPIO1_INT_IRQ (61) -#define LS2K_GPIO2_INT_IRQ (62) -#define LS2K_GPIO3_INT_IRQ (63) - -#define MAX_INTR (64) -#define LIOINTC0_IRQBASE (0) -#define LIOINTC1_IRQBASE (32) - -#define LIOINTC_SHIFT_INTx (4) -#define LIOINTC_COREx_INTy(x, y) ((1 << x) | (1 << (y + LIOINTC_SHIFT_INTx))) - -#define LIOINTC_INTC_CHIP_START 0x20 - -#define LIOINTC_REG_INTC_STATUS (LIOINTC_INTC_CHIP_START + 0x00) -#define LIOINTC_REG_INTC_EN_STATUS (LIOINTC_INTC_CHIP_START + 0x04) -#define LIOINTC_REG_INTC_ENABLE (LIOINTC_INTC_CHIP_START + 0x08) -#define LIOINTC_REG_INTC_DISABLE (LIOINTC_INTC_CHIP_START + 0x0c) -#define LIOINTC_REG_INTC_POL (LIOINTC_INTC_CHIP_START + 0x10) -#define LIOINTC_REG_INTC_EDGE (LIOINTC_INTC_CHIP_START + 0x14) - -void liointc_set_irq_mode(int irq, int mode); - -#endif diff --git a/bsp/ls2kdev/drivers/ls2k1000.h b/bsp/ls2kdev/drivers/ls2k1000.h deleted file mode 100644 index 668d484d9c..0000000000 --- a/bsp/ls2kdev/drivers/ls2k1000.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef _LS2K1000_H__ -#define _LS2K1000_H__ - -#include -#include "interrupt.h" -#include - -#define APB_BASE CKSEG1ADDR(0xbfe00000) - -#define UART0_BASE_ADDR (0xbfe00000) -#define UART0_OFF (0x0) -#define UART0_BASE CKSEG1ADDR(UART0_BASE_ADDR + UART0_OFF) - -#define UARTx_BASE(x) ((APB_BASE | (0x0 << 12) | (x << 8))) - -#define LIOINTC0_BASE CKSEG1ADDR(0x1fe11400) -#define CORE0_INTISR0 CKSEG1ADDR(0x1fe11040) - -#define LIOINTC1_BASE CKSEG1ADDR(0x1fe11440) -#define CORE0_INTISR1 CKSEG1ADDR(0x1fe11048) - -#define GPIO_BASE (0xFFFFFFFFBFE10500) -#define PLL_SYS_BASE (0xFFFFFFFFBFE10480) -#define RTC_BASE (0xFFFFFFFFBFE07820) - -#define GEN_CONFIG0_REG (0xFFFFFFFFBfe10420) - - -/* - * General PM Configuration Register - */ -#define PMCON_BASE (APB_BASE | (0x7 << 12)) - -/* - * Power Management1 Configuration Registers - */ -#define PM1_BASE (PMCON_BASE + 0x0C) -#define PM1_STS HWREG32(PM1_BASE) -#define PM1_EN HWREG32(PM1_BASE + 0x04) -#define PM1_CNT HWREG32(PM1_BASE + 0x08) - -/* - * Watch Dog Configuration Registers - */ -#define WDT_BASE (PMCON_BASE + 0x30) -#define WDT_EN HWREG32(WDT_BASE) -#define WDT_SET HWREG32(WDT_BASE + 0x04) -#define WDT_TIMER HWREG32(WDT_BASE + 0x08) - -void rt_hw_timer_handler(void); -void rt_hw_uart_init(void); - -#endif - diff --git a/bsp/ls2kdev/drivers/net/SConscript b/bsp/ls2kdev/drivers/net/SConscript deleted file mode 100644 index 841d177c42..0000000000 --- a/bsp/ls2kdev/drivers/net/SConscript +++ /dev/null @@ -1,16 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -CPPPATH = [cwd] - -if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'mii.c') - SrcRemove(src, 'synopGMAC.c') - SrcRemove(src, 'synopGMAC_Dev.c') - SrcRemove(src, 'synopGMAC_plat.c') - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls2kdev/drivers/net/mii.c b/bsp/ls2kdev/drivers/net/mii.c deleted file mode 100644 index d83caef6de..0000000000 --- a/bsp/ls2kdev/drivers/net/mii.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ -#include "mii.h" - -static inline unsigned int mii_nway_result(unsigned int negotiated) -{ - unsigned int ret; - - if (negotiated & LPA_100FULL) - ret = LPA_100FULL; - else if (negotiated & LPA_100BASE4) - ret = LPA_100BASE4; - else if (negotiated & LPA_100HALF) - ret = LPA_100HALF; - else if (negotiated & LPA_10FULL) - ret = LPA_10FULL; - else - ret = LPA_10HALF; - - return ret; -} - -static int mii_check_gmii_support(struct mii_if_info *mii) -{ - int reg; - - reg = mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); - if (reg & BMSR_ESTATEN) - { - reg = mii->mdio_read(mii->dev, mii->phy_id, MII_ESTATUS); - if (reg & (ESTATUS_1000_TFULL | ESTATUS_1000_THALF)) - return 1; - } - - return 0; -} - -static int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) -{ - struct synopGMACNetworkAdapter *dev = mii->dev; - u32 advert, bmcr, lpa, nego; - u32 advert2 = 0, bmcr2 = 0, lpa2 = 0; - - ecmd->supported = - (SUPPORTED_10baseT_Half | SUPPORTED_10baseT_Full | - SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full | - SUPPORTED_Autoneg | SUPPORTED_TP | SUPPORTED_MII); - if (mii->supports_gmii) - ecmd->supported |= SUPPORTED_1000baseT_Half | - SUPPORTED_1000baseT_Full; - - /* only supports twisted-pair */ - ecmd->port = PORT_MII; - - /* only supports internal transceiver */ - ecmd->transceiver = XCVR_INTERNAL; - - /* this isn't fully supported at higher layers */ - ecmd->phy_address = mii->phy_id; - - ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; - advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); - if (mii->supports_gmii) - advert2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); - - if (advert & ADVERTISE_10HALF) - ecmd->advertising |= ADVERTISED_10baseT_Half; - if (advert & ADVERTISE_10FULL) - ecmd->advertising |= ADVERTISED_10baseT_Full; - if (advert & ADVERTISE_100HALF) - ecmd->advertising |= ADVERTISED_100baseT_Half; - if (advert & ADVERTISE_100FULL) - ecmd->advertising |= ADVERTISED_100baseT_Full; - if (advert2 & ADVERTISE_1000HALF) - ecmd->advertising |= ADVERTISED_1000baseT_Half; - if (advert2 & ADVERTISE_1000FULL) - ecmd->advertising |= ADVERTISED_1000baseT_Full; - - bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); - lpa = mii->mdio_read(dev, mii->phy_id, MII_LPA); - if (mii->supports_gmii) - { - bmcr2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); - lpa2 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); - } - if (bmcr & BMCR_ANENABLE) - { - ecmd->advertising |= ADVERTISED_Autoneg; - ecmd->autoneg = AUTONEG_ENABLE; - - nego = mii_nway_result(advert & lpa); - if ((bmcr2 & (ADVERTISE_1000HALF | ADVERTISE_1000FULL)) & - (lpa2 >> 2)) - ecmd->speed = SPEED_1000; - else if (nego == LPA_100FULL || nego == LPA_100HALF) - ecmd->speed = SPEED_100; - else - ecmd->speed = SPEED_10; - if ((lpa2 & LPA_1000FULL) || nego == LPA_100FULL || - nego == LPA_10FULL) - { - ecmd->duplex = DUPLEX_FULL; - mii->full_duplex = 1; - } - else - { - ecmd->duplex = DUPLEX_HALF; - mii->full_duplex = 0; - } - } - else - { - ecmd->autoneg = AUTONEG_DISABLE; - - ecmd->speed = ((bmcr & BMCR_SPEED1000 && - (bmcr & BMCR_SPEED100) == 0) ? SPEED_1000 : - (bmcr & BMCR_SPEED100) ? SPEED_100 : SPEED_10); - ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; - } - - /* ignore maxtxpkt, maxrxpkt for now */ - - return 0; -} - -static int mii_link_ok(struct mii_if_info *mii) -{ - /* first, a dummy read, needed to latch some MII phys */ - mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR); - if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) - return 1; - return 0; -} diff --git a/bsp/ls2kdev/drivers/net/mii.h b/bsp/ls2kdev/drivers/net/mii.h deleted file mode 100644 index bc6d6c7a0c..0000000000 --- a/bsp/ls2kdev/drivers/net/mii.h +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ -#ifndef __MII_H__ -#define __MII_H__ -/* Generic MII registers. */ - -#include "synopGMAC_types.h" - -#define MII_BMCR 0x00 /* Basic mode control register */ -#define MII_BMSR 0x01 /* Basic mode status register */ -#define MII_PHYSID1 0x02 /* PHYS ID 1 */ -#define MII_PHYSID2 0x03 /* PHYS ID 2 */ -#define MII_ADVERTISE 0x04 /* Advertisement control reg */ -#define MII_LPA 0x05 /* Link partner ability reg */ -#define MII_EXPANSION 0x06 /* Expansion register */ -#define MII_CTRL1000 0x09 /* 1000BASE-T control */ -#define MII_STAT1000 0x0a /* 1000BASE-T status */ -#define MII_ESTATUS 0x0f /* Extended Status */ -#define MII_DCOUNTER 0x12 /* Disconnect counter */ -#define MII_FCSCOUNTER 0x13 /* False carrier counter */ -#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ -#define MII_RERRCOUNTER 0x15 /* Receive error counter */ -#define MII_SREVISION 0x16 /* Silicon revision */ -#define MII_RESV1 0x17 /* Reserved... */ -#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ -#define MII_PHYADDR 0x19 /* PHY address */ -#define MII_RESV2 0x1a /* Reserved... */ -#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ -#define MII_NCONFIG 0x1c /* Network interface config */ - -/* Basic mode control register. */ -#define BMCR_RESV 0x003f /* Unused... */ -#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ -#define BMCR_CTST 0x0080 /* Collision test */ -#define BMCR_FULLDPLX 0x0100 /* Full duplex */ -#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ -#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ -#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ -#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ -#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ -#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ -#define BMCR_RESET 0x8000 /* Reset the DP83840 */ - -/* Basic mode status register. */ -#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ -#define BMSR_JCD 0x0002 /* Jabber detected */ -#define BMSR_LSTATUS 0x0004 /* Link status */ -#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ -#define BMSR_RFAULT 0x0010 /* Remote fault detected */ -#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ -#define BMSR_RESV 0x00c0 /* Unused... */ -#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ -#define BMSR_100FULL2 0x0200 /* Can do 100BASE-T2 HDX */ -#define BMSR_100HALF2 0x0400 /* Can do 100BASE-T2 FDX */ -#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ -#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ -#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ -#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ -#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ - -/* Advertisement control register. */ -#define ADVERTISE_SLCT 0x001f /* Selector bits */ -#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ -#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ -#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ -#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ -#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ -#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ -#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ -#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ -#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ -#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ -#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ -#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ -#define ADVERTISE_RESV 0x1000 /* Unused... */ -#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ -#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ -#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ - -#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ - ADVERTISE_CSMA) -#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ - ADVERTISE_100HALF | ADVERTISE_100FULL) - -/* Indicates what features are advertised by the interface. */ -#define ADVERTISED_10baseT_Half (1 << 0) -#define ADVERTISED_10baseT_Full (1 << 1) -#define ADVERTISED_100baseT_Half (1 << 2) -#define ADVERTISED_100baseT_Full (1 << 3) -#define ADVERTISED_1000baseT_Half (1 << 4) -#define ADVERTISED_1000baseT_Full (1 << 5) -#define ADVERTISED_Autoneg (1 << 6) -#define ADVERTISED_TP (1 << 7) -#define ADVERTISED_AUI (1 << 8) -#define ADVERTISED_MII (1 << 9) -#define ADVERTISED_FIBRE (1 << 10) -#define ADVERTISED_BNC (1 << 11) -#define ADVERTISED_10000baseT_Full (1 << 12) -#define ADVERTISED_Pause (1 << 13) -#define ADVERTISED_Asym_Pause (1 << 14) - -/* Link partner ability register. */ -#define LPA_SLCT 0x001f /* Same as advertise selector */ -#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ -#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ -#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ -#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ -#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ -#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ -#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ -#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ -#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ -#define LPA_PAUSE_CAP 0x0400 /* Can pause */ -#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ -#define LPA_RESV 0x1000 /* Unused... */ -#define LPA_RFAULT 0x2000 /* Link partner faulted */ -#define LPA_LPACK 0x4000 /* Link partner acked us */ -#define LPA_NPAGE 0x8000 /* Next page bit */ - -#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) -#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) - -/* Expansion register for auto-negotiation. */ -#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ -#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ -#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ -#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ -#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ -#define EXPANSION_RESV 0xffe0 /* Unused... */ - -#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ -#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ - -/* N-way test register. */ -#define NWAYTEST_RESV1 0x00ff /* Unused... */ -#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ -#define NWAYTEST_RESV2 0xfe00 /* Unused... */ - -/* 1000BASE-T Control register */ -#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ -#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ - -/* 1000BASE-T Status register */ -#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ -#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ -#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ - -#define SUPPORTED_10baseT_Half (1 << 0) -#define SUPPORTED_10baseT_Full (1 << 1) -#define SUPPORTED_100baseT_Half (1 << 2) -#define SUPPORTED_100baseT_Full (1 << 3) -#define SUPPORTED_1000baseT_Half (1 << 4) -#define SUPPORTED_1000baseT_Full (1 << 5) -#define SUPPORTED_Autoneg (1 << 6) -#define SUPPORTED_TP (1 << 7) -#define SUPPORTED_AUI (1 << 8) -#define SUPPORTED_MII (1 << 9) -#define SUPPORTED_FIBRE (1 << 10) -#define SUPPORTED_BNC (1 << 11) -#define SUPPORTED_10000baseT_Full (1 << 12) -#define SUPPORTED_Pause (1 << 13) -#define SUPPORTED_Asym_Pause (1 << 14) - - -/* Which connector port. */ -#define PORT_TP 0x00 -#define PORT_AUI 0x01 -#define PORT_MII 0x02 -#define PORT_FIBRE 0x03 -#define PORT_BNC 0x04 - -/* Which transceiver to use. */ -#define XCVR_INTERNAL 0x00 -#define XCVR_EXTERNAL 0x01 -#define XCVR_DUMMY1 0x02 -#define XCVR_DUMMY2 0x03 -#define XCVR_DUMMY3 0x04 - -#define AUTONEG_DISABLE 0x00 -#define AUTONEG_ENABLE 0x01 - - -#define SPEED_10 10 -#define SPEED_100 100 -#define SPEED_1000 1000 -#define SPEED_2500 2500 -#define SPEED_10000 10000 - -#define DUPLEX_HALF 0x00 -#define DUPLEX_FULL 0x01 - -struct ethtool_cmd { - u32 cmd; - u32 supported; /* Features this interface supports */ - u32 advertising; /* Features this interface advertises */ - u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */ - u8 duplex; /* Duplex, half or full */ - u8 port; /* Which connector port */ - u8 phy_address; - u8 transceiver; /* Which transceiver to use */ - u8 autoneg; /* Enable or disable autonegotiation */ - u32 maxtxpkt; /* Tx pkts before generating tx int */ - u32 maxrxpkt; /* Rx pkts before generating rx int */ - u32 reserved[4]; -}; - -struct mii_if_info { - int phy_id; - int advertising; - int phy_id_mask; - int reg_num_mask; - - unsigned int full_duplex : 1; /* is full duplex? */ - unsigned int force_media : 1; /* is autoneg. disabled? */ - unsigned int supports_gmii : 1; /* are GMII registers supported? */ - - struct synopGMACNetworkAdapter *dev; - int (*mdio_read) (struct synopGMACNetworkAdapter *dev, int phy_id, int location); - void (*mdio_write) (struct synopGMACNetworkAdapter *dev, int phy_id, int location, int val); -}; - -#endif diff --git a/bsp/ls2kdev/drivers/net/synopGMAC.c b/bsp/ls2kdev/drivers/net/synopGMAC.c deleted file mode 100644 index 22e51de712..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC.c +++ /dev/null @@ -1,988 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - * 2020-08-10 lizhirui porting to ls2k - */ - -#include -#include -//#include - -#include "synopGMAC.h" -#include "mii.c" -#include "synopGMAC_debug.h" - -#define RMII - -#define PCI_BASE (0xFE00001800) -#define Buffer_Size 2048 -#define MAX_ADDR_LEN 6 -#define NAMESIZE 16 - -#define LS1B_GMAC0_IRQ 34 -#define BUS_SIZE_ALIGN(x) ((x+15)&~15) - -#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} - -u64 gmac_base = 0; -static u32 GMAC_Power_down; -extern void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) ; -extern s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) ; -extern int init_phy(synopGMACdevice *gmacdev); -dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, u32 size); - -void eth_rx_irq(int irqno, void *param); -static char Rx_Buffer[Buffer_Size]; -static char Tx_Buffer[Buffer_Size]; - -struct pci_header -{ - uint16_t VendorID; - uint16_t DeviceID; - uint16_t Command; - uint16_t Status; - uint32_t RevisionID : 8; - uint32_t ClassCode : 24; - uint8_t CachelineSize; - uint8_t LatencyTimer; - uint8_t HeaderType; - uint8_t BIST; - uint32_t BaseAddressRegister[6]; - uint32_t CardbusCISPointer; - uint16_t SubsystemVendorID; - uint16_t SubsystemID; - uint32_t ExpansionROMBaseAddress; - uint32_t CapabilitiesPointer : 8; - uint32_t resv1 : 24; - uint32_t resv2; - uint8_t InterruptLine; - uint8_t InterruptPin; - uint8_t Min_Gnt; - uint8_t Max_Lat; -}; - -struct rt_eth_dev -{ - struct eth_device parent; - rt_uint8_t dev_addr[MAX_ADDR_LEN]; - char *name; - int iobase; - int state; - int index; - struct rt_timer link_timer; - struct rt_timer rx_poll_timer; - void *priv; -}; -static struct rt_eth_dev eth_dev; -static struct rt_semaphore sem_ack, sem_lock; - -/** - * This sets up the transmit Descriptor queue in ring or chain mode. - * This function is tightly coupled to the platform and operating system - * Device is interested only after the descriptors are setup. Therefore this function - * is not included in the device driver API. This function should be treated as an - * example code to design the descriptor structures for ring mode or chain mode. - * This function depends on the pcidev structure for allocation consistent dma-able memory in case - * of linux. - * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory - * - Allocates the memory for the descriptors. - * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). - * - Initialize the Busy and Next descriptors to first descriptor address. - * - Initialize the last descriptor with the endof ring in case of ring mode. - * - Initialize the descriptors in chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] pointer to pci_device structure. - * @param[in] number of descriptor expected in tx descriptor queue. - * @param[in] whether descriptors to be created in RING mode or CHAIN mode. - * \return 0 upon success. Error code upon failure. - * \note This function fails if allocation fails for required number of descriptors in Ring mode, - * but in chain mode - * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from - * this function - * user should for gmacdev->TxDescCount to see how many descriptors are there in the chain. Should - * continue further - * only if the number of descriptors in the chain meets the requirements - */ -s32 synopGMAC_setup_tx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) -{ - s32 i; - DmaDesc *bf1; - - DmaDesc *first_desc = NULL; - - dma_addr_t dma_addr; - gmacdev->TxDescCount = 0; - - first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * (no_of_desc), &dma_addr); - - if (first_desc == NULL) - { - rt_kprintf("Error in Tx Descriptors memory allocation\n"); - return -ESYNOPGMACNOMEM; - } - - DEBUG_MES("tx_first_desc_addr = %p\n", first_desc); - DEBUG_MES("dmaadr = %p\n", dma_addr); - gmacdev->TxDescCount = no_of_desc; - gmacdev->TxDesc = first_desc; - gmacdev->TxDescDma = dma_addr; - - for (i = 0; i < gmacdev->TxDescCount; i++) - { - synopGMAC_tx_desc_init_ring(gmacdev->TxDesc + i, i == gmacdev->TxDescCount - 1); - -#if SYNOP_TOP_DEBUG - rt_kprintf("\n%02d %08x \n", i, (unsigned int)(gmacdev->TxDesc + i)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i))->status); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->length)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer1)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->buffer2)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data1)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->data2)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy1)); - rt_kprintf("%08x ", (unsigned int)((gmacdev->TxDesc + i)->dummy2)); -#endif - } - - gmacdev->TxNext = 0; - gmacdev->TxBusy = 0; - gmacdev->TxNextDesc = gmacdev->TxDesc; - gmacdev->TxBusyDesc = gmacdev->TxDesc; - gmacdev->BusyTxDesc = 0; - - return -ESYNOPGMACNOERR; -} - -/** - * This sets up the receive Descriptor queue in ring or chain mode. - * This function is tightly coupled to the platform and operating system - * Device is interested only after the descriptors are setup. Therefore this function - * is not included in the device driver API. This function should be treated as an - * example code to design the descriptor structures in ring mode or chain mode. - * This function depends on the pcidev structure for allocation of consistent dma-able memory in - * case of linux. - * This limitation is due to the fact that linux uses pci structure to allocate a dmable memory - * - Allocates the memory for the descriptors. - * - Initialize the Busy and Next descriptors indices to 0(Indicating first descriptor). - * - Initialize the Busy and Next descriptors to first descriptor address. - * - Initialize the last descriptor with the endof ring in case of ring mode. - * - Initialize the descriptors in chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] pointer to pci_device structure. - * @param[in] number of descriptor expected in rx descriptor queue. - * @param[in] whether descriptors to be created in RING mode or CHAIN mode. - * \return 0 upon success. Error code upon failure. - * \note This function fails if allocation fails for required number of descriptors in Ring mode, - * but in chain mode - * function returns -ESYNOPGMACNOMEM in the process of descriptor chain creation. once returned from - * this function - * user should for gmacdev->RxDescCount to see how many descriptors are there in the chain. Should - * continue further - * only if the number of descriptors in the chain meets the requirements - */ -s32 synopGMAC_setup_rx_desc_queue(synopGMACdevice *gmacdev, u32 no_of_desc, u32 desc_mode) -{ - s32 i; - DmaDesc *bf1; - DmaDesc *first_desc = NULL; - - dma_addr_t dma_addr; - - gmacdev->RxDescCount = 0; - first_desc = (DmaDesc *)plat_alloc_consistent_dmaable_memory(gmacdev, sizeof(DmaDesc) * no_of_desc, &dma_addr); - if (first_desc == NULL) - { - rt_kprintf("Error in Rx Descriptor Memory allocation in Ring mode\n"); - return -ESYNOPGMACNOMEM; - } - - DEBUG_MES("rx_first_desc_addr = %p\n", first_desc); - DEBUG_MES("dmaadr = %p\n", dma_addr); - gmacdev->RxDescCount = no_of_desc; - gmacdev->RxDesc = (DmaDesc *)first_desc; - gmacdev->RxDescDma = dma_addr; - - for (i = 0; i < gmacdev->RxDescCount; i++) - { - synopGMAC_rx_desc_init_ring(gmacdev->RxDesc + i, i == gmacdev->RxDescCount - 1); - } - - gmacdev->RxNext = 0; - gmacdev->RxBusy = 0; - gmacdev->RxNextDesc = gmacdev->RxDesc; - gmacdev->RxBusyDesc = gmacdev->RxDesc; - - gmacdev->BusyRxDesc = 0; - - return -ESYNOPGMACNOERR; -} - -void synopGMAC_linux_cable_unplug_function(void *adaptr) -{ - s32 data; - synopGMACPciNetworkAdapter *adapter = (synopGMACPciNetworkAdapter *)adaptr; - synopGMACdevice *gmacdev = adapter->synopGMACdev; - struct ethtool_cmd cmd; - - if (!mii_link_ok(&adapter->mii)) - { - if (gmacdev->LinkState) - rt_kprintf("\r\nNo Link\r\n"); - gmacdev->DuplexMode = 0; - gmacdev->Speed = 0; - gmacdev->LoopBackMode = 0; - gmacdev->LinkState = 0; - } - else - { - data = synopGMAC_check_phy_init(adapter); - - if (gmacdev->LinkState != data) - { - gmacdev->LinkState = data; - synopGMAC_mac_init(gmacdev); - rt_kprintf("Link is up in %s mode\n", (gmacdev->DuplexMode == FULLDUPLEX) ? "FULL DUPLEX" : "HALF DUPLEX"); - if (gmacdev->Speed == SPEED1000) - rt_kprintf("Link is with 1000M Speed \r\n"); - if (gmacdev->Speed == SPEED100) - rt_kprintf("Link is with 100M Speed \n"); - if (gmacdev->Speed == SPEED10) - rt_kprintf("Link is with 10M Speed \n"); - } - } -} - -s32 synopGMAC_check_phy_init(synopGMACPciNetworkAdapter *adapter) -{ - struct ethtool_cmd cmd; - synopGMACdevice *gmacdev = adapter->synopGMACdev; - - if (!mii_link_ok(&adapter->mii)) - { - gmacdev->DuplexMode = FULLDUPLEX; - gmacdev->Speed = SPEED100; - - return 0; - } - else - { - mii_ethtool_gset(&adapter->mii, &cmd); - - gmacdev->DuplexMode = (cmd.duplex == DUPLEX_FULL) ? FULLDUPLEX : HALFDUPLEX ; - if (cmd.speed == SPEED_1000) - gmacdev->Speed = SPEED1000; - else if (cmd.speed == SPEED_100) - gmacdev->Speed = SPEED100; - else - gmacdev->Speed = SPEED10; - } - - return gmacdev->Speed | (gmacdev->DuplexMode << 4); -} - -static int Mac_change_check(u8 *macaddr0, u8 *macaddr1) -{ - int i; - for (i = 0; i < 6; i++) - { - if (macaddr0[i] != macaddr1[i]) - return 1; - } - return 0; -} - -static rt_err_t eth_init(rt_device_t device) -{ - struct eth_device *eth_device = (struct eth_device *)device; - RT_ASSERT(eth_device != RT_NULL); - - s32 ijk; - s32 status = 0; - u64 dma_addr; - u32 Mac_changed = 0; - struct pbuf *pbuf; - u8 macaddr[6] = DEFAULT_MAC_ADDRESS; - struct rt_eth_dev *dev = ð_dev; - struct synopGMACNetworkAdapter *adapter = dev->priv; - synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; - - synopGMAC_reset(gmacdev); - synopGMAC_attach(gmacdev, (gmac_base + MACBASE), (gmac_base + DMABASE), DEFAULT_PHY_BASE, macaddr); - - synopGMAC_read_version(gmacdev); - - synopGMAC_set_mdc_clk_div(gmacdev, GmiiCsrClk3); - gmacdev->ClockDivMdc = synopGMAC_get_mdc_clk_div(gmacdev); - - init_phy(adapter->synopGMACdev); - - DEBUG_MES("tx desc_queue\n"); - synopGMAC_setup_tx_desc_queue(gmacdev, TRANSMIT_DESC_SIZE, RINGMODE); - synopGMAC_init_tx_desc_base(gmacdev); - - DEBUG_MES("rx desc_queue\n"); - synopGMAC_setup_rx_desc_queue(gmacdev, RECEIVE_DESC_SIZE, RINGMODE); - synopGMAC_init_rx_desc_base(gmacdev); - DEBUG_MES("DmaRxBaseAddr = %08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxBaseAddr)); - -// u32 dmaRx_Base_addr = synopGMACReadReg(gmacdev->DmaBase,DmaRxBaseAddr); -// rt_kprintf("first_desc_addr = 0x%x\n", dmaRx_Base_addr); - -#ifdef ENH_DESC_8W - synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength32 | DmaDescriptorSkip2 | DmaDescriptor8Words); -#else - synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip1); - //synopGMAC_dma_bus_mode_init(gmacdev, DmaBurstLength4 | DmaDescriptorSkip2); -#endif - synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward | DmaTxSecondFrame | DmaRxThreshCtrl128); - - status = synopGMAC_check_phy_init(adapter); - synopGMAC_mac_init(gmacdev); - - synopGMAC_pause_control(gmacdev); - -#ifdef IPC_OFFLOAD - synopGMAC_enable_rx_chksum_offload(gmacdev); - synopGMAC_rx_tcpip_chksum_drop_enable(gmacdev); -#endif - - u64 skb; - do - { - skb = (u64)plat_alloc_memory(RX_BUF_SIZE); //should skb aligned here? - if (skb == RT_NULL) - { - rt_kprintf("ERROR in skb buffer allocation\n"); - break; - } - - dma_addr = plat_dma_map_single(gmacdev, (void *)skb, RX_BUF_SIZE); //获取 skb 的 dma 地址 - - status = synopGMAC_set_rx_qptr(gmacdev, dma_addr, RX_BUF_SIZE, (u64)skb, 0, 0, 0); - if (status < 0) - { - rt_kprintf("status < 0!!\n"); - plat_free_memory((void *)skb); - } - } - while (status >= 0 && (status < (RECEIVE_DESC_SIZE - 1))); - synopGMAC_clear_interrupt(gmacdev); - - synopGMAC_disable_mmc_tx_interrupt(gmacdev, 0xFFFFFFFF); - synopGMAC_disable_mmc_rx_interrupt(gmacdev, 0xFFFFFFFF); - synopGMAC_disable_mmc_ipc_rx_interrupt(gmacdev, 0xFFFFFFFF); - -// synopGMAC_disable_interrupt_all(gmacdev); - synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); - synopGMAC_enable_dma_rx(gmacdev); - synopGMAC_enable_dma_tx(gmacdev); - - plat_delay(DEFAULT_LOOP_VARIABLE); - synopGMAC_check_phy_init(adapter); - synopGMAC_mac_init(gmacdev); - - rt_timer_init(&dev->link_timer, "link_timer", - synopGMAC_linux_cable_unplug_function, - (void *)adapter, - RT_TICK_PER_SECOND, - RT_TIMER_FLAG_PERIODIC); - - rt_timer_start(&dev->link_timer); -#ifdef RT_USING_GMAC_INT_MODE - /* installl isr */ - DEBUG_MES("%s\n", __FUNCTION__); - rt_hw_interrupt_install(LS1C_MAC_IRQ, eth_rx_irq, RT_NULL, "e0_isr"); - rt_hw_interrupt_umask(LS1C_MAC_IRQ); -#else - rt_timer_init(&dev->rx_poll_timer, "rx_poll_timer", - eth_rx_irq, - (void *)adapter, - 1, - RT_TIMER_FLAG_PERIODIC); - - rt_timer_start(&dev->rx_poll_timer); -#endif /*RT_USING_GMAC_INT_MODE*/ - - return RT_EOK; -} - -static rt_err_t eth_open(rt_device_t dev, rt_uint16_t oflag) -{ - rt_kprintf("eth_open!!\n"); - - return RT_EOK; -} - -static rt_err_t eth_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t eth_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_size_t eth_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_err_t eth_control(rt_device_t dev, int cmd, void *args) -{ - switch (cmd) - { - case NIOCTL_GADDR: - if (args) rt_memcpy(args, eth_dev.dev_addr, 6); - else return -RT_ERROR; - break; - - default : - break; - } - return RT_EOK; -} - -rt_err_t rt_eth_tx(rt_device_t device, struct pbuf *p) -{ - /* lock eth device */ - rt_sem_take(&sem_lock, RT_WAITING_FOREVER); - - DEBUG_MES("in %s\n", __FUNCTION__); - - s32 status; - u64 pbuf; - u64 dma_addr; - u32 offload_needed = 0; - u32 index; - DmaDesc *dpr; - struct rt_eth_dev *dev = (struct rt_eth_dev *) device; - struct synopGMACNetworkAdapter *adapter; - synopGMACdevice *gmacdev; - adapter = (struct synopGMACNetworkAdapter *) dev->priv; - if (adapter == NULL) - return -1; - - gmacdev = (synopGMACdevice *) adapter->synopGMACdev; - if (gmacdev == NULL) - return -1; - - if (!synopGMAC_is_desc_owned_by_dma(gmacdev->TxNextDesc)) - { - - pbuf = (u64)plat_alloc_memory(p->tot_len); - //pbuf = (u32)pbuf_alloc(PBUF_LINK, p->len, PBUF_RAM); - if (pbuf == 0) - { - rt_kprintf("===error in alloc bf1\n"); - return -1; - } - - DEBUG_MES("p->len = %d\n", p->len); - pbuf_copy_partial(p, (void *)pbuf, p->tot_len, 0); - dma_addr = plat_dma_map_single(gmacdev, (void *)pbuf, p->tot_len); - - status = synopGMAC_set_tx_qptr(gmacdev, dma_addr, p->tot_len, pbuf, 0, 0, 0, offload_needed, &index, dpr); - - if (status < 0) - { - rt_kprintf("%s No More Free Tx Descriptors\n", __FUNCTION__); - - plat_free_memory((void *)pbuf); - return -16; - } - } - - synopGMAC_resume_dma_tx(gmacdev); - - - s32 desc_index; - u64 data1, data2; - u32 dma_addr1, dma_addr2; - u32 length1, length2; -#ifdef ENH_DESC_8W - u32 ext_status; - u16 time_stamp_higher; - u32 time_stamp_high; - u32 time_stamp_low; -#endif - do - { -#ifdef ENH_DESC_8W - desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2, &ext_status, &time_stamp_high, &time_stamp_low); - synopGMAC_TS_read_timestamp_higher_val(gmacdev, &time_stamp_higher); -#else - desc_index = synopGMAC_get_tx_qptr(gmacdev, &status, &dma_addr1, &length1, &data1, &dma_addr2, &length2, &data2); -#endif - if (desc_index >= 0 && data1 != 0) - { -#ifdef IPC_OFFLOAD - if (synopGMAC_is_tx_ipv4header_checksum_error(gmacdev, status)) - { - rt_kprintf("Harware Failed to Insert IPV4 Header Checksum\n"); - } - if (synopGMAC_is_tx_payload_checksum_error(gmacdev, status)) - { - rt_kprintf("Harware Failed to Insert Payload Checksum\n"); - } -#endif - - plat_free_memory((void *)(data1)); //sw: data1 = buffer1 - - if (synopGMAC_is_desc_valid(status)) - { - adapter->synopGMACNetStats.tx_bytes += length1; - adapter->synopGMACNetStats.tx_packets++; - } - else - { - adapter->synopGMACNetStats.tx_errors++; - adapter->synopGMACNetStats.tx_aborted_errors += synopGMAC_is_tx_aborted(status); - adapter->synopGMACNetStats.tx_carrier_errors += synopGMAC_is_tx_carrier_error(status); - } - } - - adapter->synopGMACNetStats.collisions += synopGMAC_get_tx_collision_count(status); - } - while (desc_index >= 0); - - /* unlock eth device */ - rt_sem_release(&sem_lock); -// rt_kprintf("output %d bytes\n", p->len); - u32 test_data; - test_data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - //rt_kprintf("dma_status = 0x%08x\n",test_data); - - return RT_EOK; -} - -struct pbuf *rt_eth_rx(rt_device_t device) -{ - DEBUG_MES("%s : \n", __FUNCTION__); - struct rt_eth_dev *dev = ð_dev; - struct synopGMACNetworkAdapter *adapter; - synopGMACdevice *gmacdev; -// struct PmonInet * pinetdev; - s32 desc_index; - int i; - char *ptr; - u32 bf1; - u64 data1; - u64 data2; - u32 len; - u32 status; - u32 dma_addr1; - u32 dma_addr2; - struct pbuf *pbuf = RT_NULL; - rt_sem_take(&sem_lock, RT_WAITING_FOREVER); - - adapter = (struct synopGMACNetworkAdapter *) dev->priv; - if (adapter == NULL) - { - rt_kprintf("%S : Unknown Device !!\n", __FUNCTION__); - return NULL; - } - - gmacdev = (synopGMACdevice *) adapter->synopGMACdev; - if (gmacdev == NULL) - { - rt_kprintf("%s : GMAC device structure is missing\n", __FUNCTION__); - return NULL; - } - - /*Handle the Receive Descriptors*/ - desc_index = synopGMAC_get_rx_qptr(gmacdev, &status, &dma_addr1, NULL, &data1, &dma_addr2, NULL, &data2); - - if (((u32)desc_index >= RECEIVE_DESC_SIZE) && (desc_index != -1)) - { - rt_kprintf("host receive descriptor address pointer = 0x%08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxCurrDesc)); - rt_kprintf("host receive buffer = 0x%08x\n", synopGMACReadReg(gmacdev->DmaBase, DmaRxCurrAddr)); - rt_kprintf("desc_index error!!!!,tick = %d\n", rt_tick_get()); - while (1); - } - - if (desc_index >= 0 && data1 != 0) - { - DEBUG_MES("Received Data at Rx Descriptor %d for skb 0x%08x whose status is %08x\n", desc_index, dma_addr1, status); - - if (synopGMAC_is_rx_desc_valid(status) || SYNOP_PHY_LOOPBACK) - { - dma_addr1 = plat_dma_map_single(gmacdev, (void *)data1, RX_BUF_SIZE); - len = synopGMAC_get_rx_desc_frame_length(status) - 4; //Not interested in Ethernet CRC bytes - pbuf = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); - if (pbuf == 0) rt_kprintf("===error in pbuf_alloc\n"); - rt_memcpy(pbuf->payload, (char *)data1, len); - DEBUG_MES("==get pkg len: %d\n", len); - } - else - { - rt_kprintf("s: %08x\n", status); - adapter->synopGMACNetStats.rx_errors++; - adapter->synopGMACNetStats.collisions += synopGMAC_is_rx_frame_collision(status); - adapter->synopGMACNetStats.rx_crc_errors += synopGMAC_is_rx_crc(status); - adapter->synopGMACNetStats.rx_frame_errors += synopGMAC_is_frame_dribbling_errors(status); - adapter->synopGMACNetStats.rx_length_errors += synopGMAC_is_rx_frame_length_errors(status); - } - desc_index = synopGMAC_set_rx_qptr(gmacdev, dma_addr1, RX_BUF_SIZE, (u64)data1, 0, 0, 0); - if (desc_index < 0) - { -#if SYNOP_RX_DEBUG - rt_kprintf("Cannot set Rx Descriptor for data1 %08x\n", (u32)data1); -#endif - - plat_free_memory((void *)data1); - } - } - rt_sem_release(&sem_lock); - DEBUG_MES("%s : before return \n", __FUNCTION__); - return pbuf; -} - -static int rtl88e1111_config_init(synopGMACdevice *gmacdev) -{ - int retval, err; - u16 data; - - DEBUG_MES("in %s\n", __FUNCTION__); - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); - data = data | 0x82; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, &data); - data = data | 0x8000; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); -#if SYNOP_PHY_LOOPBACK - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, &data); - data = data | 0x70; - data = data & 0xffdf; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x14, data); - data = 0x8000; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); - data = 0x5140; - err = synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x00, data); -#endif - if (err < 0) - return err; - return 0; -} - -int init_phy(synopGMACdevice *gmacdev) -{ - u16 data; - - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 2, &data); - /*set 88e1111 clock phase delay*/ - if (data == 0x141) - rtl88e1111_config_init(gmacdev); -#if defined (RMII) - else if (data == 0x8201) - { - //RTL8201 - data = 0x400; // set RMII mode - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, data); - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x19, &data); - TR("phy reg25 is %0x \n", data); - - data = 0x3100; //set 100M speed - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); - } - else if (data == 0x0180 || data == 0x0181) - { - //DM9161 - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); - data |= (1 << 8); //set RMII mode - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, data); //set RMII mode - synopGMAC_read_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x10, &data); - TR("phy reg16 is 0x%0x \n", data); - - // synopGMAC_read_phy_reg(gmacdev->MacBase,gmacdev->PhyBase,0x0,&data); - // data &= ~(1<<10); - data = 0x3100; //set auto- - //data = 0x0100; //set 10M speed - synopGMAC_write_phy_reg(gmacdev->MacBase, gmacdev->PhyBase, 0x0, data); - } -#endif - - return 0; -} - -u32 synopGMAC_wakeup_filter_config3[] = -{ - 0x00000000, - 0x000000FF, - 0x00000000, - 0x00000000, - 0x00000100, - 0x00003200, - 0x7eED0000, - 0x00000000 -}; - -static void synopGMAC_linux_powerdown_mac(synopGMACdevice *gmacdev) -{ - rt_kprintf("Put the GMAC to power down mode..\n"); - - GMAC_Power_down = 1; - - synopGMAC_disable_dma_tx(gmacdev); - plat_delay(10000); - - synopGMAC_tx_disable(gmacdev); - synopGMAC_rx_disable(gmacdev); - plat_delay(10000); - - synopGMAC_disable_dma_rx(gmacdev); - - synopGMAC_magic_packet_enable(gmacdev); - synopGMAC_write_wakeup_frame_register(gmacdev, synopGMAC_wakeup_filter_config3); - - synopGMAC_wakeup_frame_enable(gmacdev); - - synopGMAC_rx_enable(gmacdev); - - synopGMAC_pmt_int_enable(gmacdev); - - synopGMAC_power_down_enable(gmacdev); - return; -} - -static void synopGMAC_linux_powerup_mac(synopGMACdevice *gmacdev) -{ - GMAC_Power_down = 0; - if (synopGMAC_is_magic_packet_received(gmacdev)) - rt_kprintf("GMAC wokeup due to Magic Pkt Received\n"); - if (synopGMAC_is_wakeup_frame_received(gmacdev)) - rt_kprintf("GMAC wokeup due to Wakeup Frame Received\n"); - - synopGMAC_pmt_int_disable(gmacdev); - - synopGMAC_rx_enable(gmacdev); - synopGMAC_enable_dma_rx(gmacdev); - - synopGMAC_tx_enable(gmacdev); - synopGMAC_enable_dma_tx(gmacdev); - return; -} - - -static int mdio_read(synopGMACPciNetworkAdapter *adapter, int addr, int reg) -{ - synopGMACdevice *gmacdev; - u16 data; - gmacdev = adapter->synopGMACdev; - - synopGMAC_read_phy_reg(gmacdev->MacBase, addr, reg, &data); - return data; -} - -static void mdio_write(synopGMACPciNetworkAdapter *adapter, int addr, int reg, int data) -{ - synopGMACdevice *gmacdev; - gmacdev = adapter->synopGMACdev; - synopGMAC_write_phy_reg(gmacdev->MacBase, addr, reg, data); -} - -void eth_rx_irq(int irqno, void *param) -{ - struct rt_eth_dev *dev = ð_dev; - struct synopGMACNetworkAdapter *adapter = dev->priv; - //DEBUG_MES("in irq!!\n"); -#ifdef RT_USING_GMAC_INT_MODE - int i ; - for (i = 0; i < 7200; i++) - ; -#endif /*RT_USING_GMAC_INT_MODE*/ - synopGMACdevice *gmacdev = (synopGMACdevice *)adapter->synopGMACdev; - - u32 interrupt, dma_status_reg; - s32 status; - u32 dma_addr; - - //rt_kprintf("irq i = %d\n", i++); - dma_status_reg = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - if (dma_status_reg == 0) - { - rt_kprintf("dma_status ==0 \n"); - return; - } - - //rt_kprintf("dma_status_reg is 0x%x\n", dma_status_reg); - u32 gmacstatus; - synopGMAC_disable_interrupt_all(gmacdev); - gmacstatus = synopGMACReadReg(gmacdev->MacBase, GmacStatus); - - if (dma_status_reg & GmacPmtIntr) - { - rt_kprintf("%s:: Interrupt due to PMT module\n", __FUNCTION__); - //synopGMAC_linux_powerup_mac(gmacdev); - } - if (dma_status_reg & GmacMmcIntr) - { - rt_kprintf("%s:: Interrupt due to MMC module\n", __FUNCTION__); - DEBUG_MES("%s:: synopGMAC_rx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_rx_int_status(gmacdev)); - DEBUG_MES("%s:: synopGMAC_tx_int_status = %08x\n", __FUNCTION__, synopGMAC_read_mmc_tx_int_status(gmacdev)); - } - - if (dma_status_reg & GmacLineIntfIntr) - { - //rt_kprintf("%s:: Interrupt due to GMAC LINE module\n", __FUNCTION__); - } - - interrupt = synopGMAC_get_interrupt_type(gmacdev); - //rt_kprintf("%s:Interrupts to be handled: 0x%08x\n",__FUNCTION__,interrupt); - if (interrupt & synopGMACDmaError) - { - u8 mac_addr0[6]; - rt_kprintf("%s::Fatal Bus Error Inetrrupt Seen\n", __FUNCTION__); - - memcpy(mac_addr0, dev->dev_addr, 6); - synopGMAC_disable_dma_tx(gmacdev); - synopGMAC_disable_dma_rx(gmacdev); - - synopGMAC_take_desc_ownership_tx(gmacdev); - synopGMAC_take_desc_ownership_rx(gmacdev); - - synopGMAC_init_tx_rx_desc_queue(gmacdev); - - synopGMAC_reset(gmacdev); - - synopGMAC_set_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr0); - synopGMAC_dma_bus_mode_init(gmacdev, DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip1); - synopGMAC_dma_control_init(gmacdev, DmaStoreAndForward); - synopGMAC_init_rx_desc_base(gmacdev); - synopGMAC_init_tx_desc_base(gmacdev); - synopGMAC_mac_init(gmacdev); - synopGMAC_enable_dma_rx(gmacdev); - synopGMAC_enable_dma_tx(gmacdev); - - } - if (interrupt & synopGMACDmaRxNormal) - { - //DEBUG_MES("%s:: Rx Normal \n", __FUNCTION__); - //synop_handle_received_data(netdev); - eth_device_ready(ð_dev.parent); - } - if (interrupt & synopGMACDmaRxAbnormal) - { - //rt_kprintf("%s::Abnormal Rx Interrupt Seen\n",__FUNCTION__); - if (GMAC_Power_down == 0) - { - adapter->synopGMACNetStats.rx_over_errors++; - synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, 0x80); - synopGMAC_resume_dma_rx(gmacdev); - } - } - if (interrupt & synopGMACDmaRxStopped) - { - rt_kprintf("%s::Receiver stopped seeing Rx interrupts\n", __FUNCTION__); //Receiver gone in to stopped state - } - - if (interrupt & synopGMACDmaTxNormal) - { - DEBUG_MES("%s::Finished Normal Transmission \n", __FUNCTION__); - // synop_handle_transmit_over(netdev); - } - - if (interrupt & synopGMACDmaTxAbnormal) - { - rt_kprintf("%s::Abnormal Tx Interrupt Seen\n", __FUNCTION__); - } - if (interrupt & synopGMACDmaTxStopped) - { - TR("%s::Transmitter stopped sending the packets\n", __FUNCTION__); - if (GMAC_Power_down == 0) // If Mac is not in powerdown - { - synopGMAC_disable_dma_tx(gmacdev); - synopGMAC_take_desc_ownership_tx(gmacdev); - - synopGMAC_enable_dma_tx(gmacdev); - // netif_wake_queue(netdev); - TR("%s::Transmission Resumed\n", __FUNCTION__); - } - } - /* Enable the interrrupt before returning from ISR*/ - synopGMAC_enable_interrupt(gmacdev, DmaIntEnable); - - return; -} - -int rt_hw_eth_init(void) -{ - struct pci_header *p = (struct pci_header *)(0x9000000000000000 | PCI_BASE); - gmac_base = (0x9000000000000000 | ((p->BaseAddressRegister[0]) & 0xffffff00)); - - struct synopGMACNetworkAdapter *synopGMACadapter; - static u8 mac_addr0[6] = DEFAULT_MAC_ADDRESS; - int index; - rt_sem_init(&sem_ack, "tx_ack", 1, RT_IPC_FLAG_FIFO); - rt_sem_init(&sem_lock, "eth_lock", 1, RT_IPC_FLAG_FIFO); - - memset(ð_dev, 0, sizeof(eth_dev)); - synopGMACadapter = (struct synopGMACNetworkAdapter *)plat_alloc_memory(sizeof(struct synopGMACNetworkAdapter)); - if (!synopGMACadapter) - { - rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); - } - memset((char *)synopGMACadapter, 0, sizeof(struct synopGMACNetworkAdapter)); - - synopGMACadapter->synopGMACdev = NULL; - - synopGMACadapter->synopGMACdev = (synopGMACdevice *) plat_alloc_memory(sizeof(synopGMACdevice)); - if (!synopGMACadapter->synopGMACdev) - { - rt_kprintf("Error in Memory Allocataion, Founction : %s \n", __FUNCTION__); - } - - memset((char *)synopGMACadapter->synopGMACdev, 0, sizeof(synopGMACdevice)); - - /* - * Attach the device to MAC struct This will configure all the required base addresses - * such as Mac base, configuration base, phy base address(out of 32 possible phys) - * */ - synopGMAC_attach(synopGMACadapter->synopGMACdev, (gmac_base + MACBASE), gmac_base + DMABASE, DEFAULT_PHY_BASE, mac_addr0); - - init_phy(synopGMACadapter->synopGMACdev); - synopGMAC_reset(synopGMACadapter->synopGMACdev); - - /* MII setup */ - synopGMACadapter->mii.phy_id_mask = 0x1F; - synopGMACadapter->mii.reg_num_mask = 0x1F; - synopGMACadapter->mii.dev = synopGMACadapter; - synopGMACadapter->mii.mdio_read = mdio_read; - synopGMACadapter->mii.mdio_write = mdio_write; - synopGMACadapter->mii.phy_id = synopGMACadapter->synopGMACdev->PhyBase; - synopGMACadapter->mii.supports_gmii = mii_check_gmii_support(&synopGMACadapter->mii); - - eth_dev.iobase = gmac_base; - eth_dev.name = "e0"; - eth_dev.priv = synopGMACadapter; - eth_dev.dev_addr[0] = mac_addr0[0]; - eth_dev.dev_addr[1] = mac_addr0[1]; - eth_dev.dev_addr[2] = mac_addr0[2]; - eth_dev.dev_addr[3] = mac_addr0[3]; - eth_dev.dev_addr[4] = mac_addr0[4]; - eth_dev.dev_addr[5] = mac_addr0[5]; - - eth_dev.parent.parent.type = RT_Device_Class_NetIf; - eth_dev.parent.parent.init = eth_init; - eth_dev.parent.parent.open = eth_open; - eth_dev.parent.parent.close = eth_close; - eth_dev.parent.parent.read = eth_read; - eth_dev.parent.parent.write = eth_write; - eth_dev.parent.parent.control = eth_control; - eth_dev.parent.parent.user_data = RT_NULL; - - eth_dev.parent.eth_tx = rt_eth_tx; - eth_dev.parent.eth_rx = rt_eth_rx; - - eth_device_init(&(eth_dev.parent), "e0"); - eth_device_linkchange(ð_dev.parent, RT_TRUE); //linkup the e0 for lwip to check - return 0; -} -INIT_COMPONENT_EXPORT(rt_hw_eth_init); diff --git a/bsp/ls2kdev/drivers/net/synopGMAC.h b/bsp/ls2kdev/drivers/net/synopGMAC.h deleted file mode 100644 index a1369ae00f..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - -#ifndef __SYNOPGMAC__H -#define __SYNOPGMAC__H - -#include "synopGMAC_network_interface.h" -#include "synopGMAC_Host.h" -#include "synopGMAC_Dev.h" -#include "synopGMAC_plat.h" -#include "mii.h" -#include "synopGMAC_types.h" - -int rt_hw_eth_init(void); - -#endif /*__SYNOPGMAC__H*/ diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_Dev.c b/bsp/ls2kdev/drivers/net/synopGMAC_Dev.c deleted file mode 100644 index e6fea9f2ec..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_Dev.c +++ /dev/null @@ -1,3750 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - * 2020-08-10 lizhirui porting to ls2k - */ - -#include "synopGMAC_Dev.h" -#include -#include - -#define UNUSED 1 - -/** - * Function to set the MDC clock for mdio transactiona - * - * @param[in] pointer to device structure. - * @param[in] clk divider value. - * \return Reuturns 0 on success else return the error value. - */ -s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev, u32 clk_div_val) -{ - u32 orig_data; - orig_data = synopGMACReadReg(gmacdev -> MacBase, GmacGmiiAddr); //set the mdc clock to the user defined value - orig_data &= (~GmiiCsrClkMask); - orig_data |= clk_div_val; - synopGMACWriteReg(gmacdev -> MacBase, GmacGmiiAddr, orig_data); - return 0; -} - -/** - * Returns the current MDC divider value programmed in the ip. - * - * @param[in] pointer to device structure. - * @param[in] clk divider value. - * \return Returns the MDC divider value read. - */ -u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase, GmacGmiiAddr); - data &= GmiiCsrClkMask; - return data; -} - - -/** - * Function to read the Phy register. The access to phy register - * is a slow process as the data is moved accross MDI/MDO interface - * @param[in] pointer to Register Base (It is the mac base in our case) . - * @param[in] PhyBase register is the index of one of supported 32 PHY devices. - * @param[in] Register offset is the index of one of the 32 phy register. - * @param[out] u16 data read from the respective phy register (only valid iff return value is 0). - * \return Returns 0 on success else return the error status. - */ -s32 synopGMAC_read_phy_reg(u64 RegBase, u32 PhyBase, u32 RegOffset, u16 *data) -{ - u64 addr; - u32 loop_variable; - addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) - | GmiiCsrClk3; //sw: add GmiiCsrClk - addr = addr | GmiiBusy ; //Gmii busy bit - - synopGMACWriteReg(RegBase, GmacGmiiAddr, addr); - //write the address from where the data to be read in GmiiGmiiAddr register of synopGMAC ip - - for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) - { - //Wait till the busy bit gets cleared within a certain amount of time - if (!(synopGMACReadReg(RegBase, GmacGmiiAddr) & GmiiBusy)) - { - break; - } - - plat_delay(DEFAULT_DELAY_VARIABLE); - } - - if (loop_variable < DEFAULT_LOOP_VARIABLE) - { - *data = (u16)(synopGMACReadReg(RegBase, GmacGmiiData) & 0xFFFF); - } - else - { - TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } - //sw -#if SYNOP_REG_DEBUG - printf("read phy reg: offset = 0x%x\tdata = 0x%x\n", RegOffset, *data); -#endif - - return -ESYNOPGMACNOERR; -} - -/** - * Function to write to the Phy register. The access to phy register - * is a slow process as the data is moved accross MDI/MDO interface - * @param[in] pointer to Register Base (It is the mac base in our case) . - * @param[in] PhyBase register is the index of one of supported 32 PHY devices. - * @param[in] Register offset is the index of one of the 32 phy register. - * @param[in] data to be written to the respective phy register. - * \return Returns 0 on success else return the error status. - */ -s32 synopGMAC_write_phy_reg(u64 RegBase, u32 PhyBase, u32 RegOffset, u16 data) -{ - u32 addr; - u32 loop_variable; - - synopGMACWriteReg(RegBase, GmacGmiiData, data); // write the data in to GmacGmiiData register of synopGMAC ip - - addr = ((PhyBase << GmiiDevShift) & GmiiDevMask) | ((RegOffset << GmiiRegShift) & GmiiRegMask) | GmiiWrite | GmiiCsrClk3; //sw: add GmiiCsrclk - - addr = addr | GmiiBusy ; //set Gmii clk to 20-35 Mhz and Gmii busy bit - - synopGMACWriteReg(RegBase, GmacGmiiAddr, addr); - for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) - { - if (!(synopGMACReadReg(RegBase, GmacGmiiAddr) & GmiiBusy)) - { - break; - } - - plat_delay(DEFAULT_DELAY_VARIABLE); - } - - if (loop_variable < DEFAULT_LOOP_VARIABLE) - { - return -ESYNOPGMACNOERR; - } - else - { - TR("Error::: PHY not responding Busy bit didnot get cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } -#if SYNOP_REG_DEBUG - printf("write phy reg: offset = 0x%x\tdata = 0x%x", RegOffset, data); -#endif -} - -/** - * Function to configure the phy in loopback mode. - * - * @param[in] pointer to synopGMACdevice. - * @param[in] enable or disable the loopback. - * \return 0 on success else return the error status. - * \note Don't get confused with mac loop-back synopGMAC_loopback_on(synopGMACdevice *) - * and synopGMAC_loopback_off(synopGMACdevice *) functions. - */ -#if UNUSED -s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback) -{ - s32 status = -ESYNOPGMACNOERR; - u16 temp; - - status = synopGMAC_read_phy_reg(gmacdev -> MacBase, gmacdev -> PhyBase, PHY_CONTROL_REG, &temp); - - if (loopback) - { - temp |= 0x4000; - } - else - { - temp = temp; - } - - status = synopGMAC_write_phy_reg(gmacdev -> MacBase, gmacdev -> PhyBase, PHY_CONTROL_REG, temp); - return status; -} - -#endif - -/** - * Function to read the GMAC IP Version and populates the same in device data structure. - * @param[in] pointer to synopGMACdevice. - * \return Always return 0. - */ - -s32 synopGMAC_read_version(synopGMACdevice *gmacdev) -{ - u32 data = 0; - data = synopGMACReadReg(gmacdev -> MacBase, GmacVersion); - gmacdev -> Version = data; - return 0; -} - - -/** - * Function to reset the GMAC core. - * This reests the DMA and GMAC core. After reset all the registers holds their respective reset value - * @param[in] pointer to synopGMACdevice. - * \return 0 on success else return the error status. - */ -s32 synopGMAC_reset(synopGMACdevice *gmacdev) -{ - u32 data = 0; - synopGMACWriteReg(gmacdev -> DmaBase, DmaBusMode, DmaResetOn); - plat_delay(DEFAULT_LOOP_VARIABLE); - data = synopGMACReadReg(gmacdev -> DmaBase, DmaBusMode); - TR("DATA after Reset = %08x\n", data); - - return 0; -} - - -/** - * Function to program DMA bus mode register. - * - * The Bus Mode register is programmed with the value given. The bits to be set are - * bit wise or'ed and sent as the second argument to this function. - * @param[in] pointer to synopGMACdevice. - * @param[in] the data to be programmed. - * \return 0 on success else return the error status. - */ -s32 synopGMAC_dma_bus_mode_init(synopGMACdevice *gmacdev, u32 init_value) -{ - synopGMACWriteReg(gmacdev -> DmaBase, DmaBusMode, init_value); - return 0; -} - -/** - * Function to program DMA Control register(Operation Mode Register 0x18). - * - * The Dma Control register is programmed with the value given. The bits to be set are - * bit wise or'ed and sent as the second argument to this function. - * @param[in] pointer to synopGMACdevice. - * @param[in] the data to be programmed. - * \return 0 on success else return the error status. - */ -s32 synopGMAC_dma_control_init(synopGMACdevice *gmacdev, u32 init_value) -{ - synopGMACWriteReg(gmacdev -> DmaBase, DmaControl, init_value); - return 0; -} - - -/*Gmac configuration functions*/ - -/** - * Enable the watchdog timer on the receiver. - * When enabled, Gmac enables Watchdog timer, and GMAC allows no more than - * 2048 bytes of data (10,240 if Jumbo frame enabled). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_wd_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacWatchdog); - return; -} -/** - * Disable the watchdog timer on the receiver. - * When disabled, Gmac disabled watchdog timer, and can receive frames up to - * 16,384 bytes. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ - -void synopGMAC_wd_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacWatchdog); - return; -} - -/** - * Enables the Jabber frame support. - * When enabled, GMAC disabled the jabber timer, and can transfer 16,384 byte frames. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_jab_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacJabber); - return; -} -/** - * Disables the Jabber frame support. - * When disabled, GMAC enables jabber timer. It cuts of transmitter if application - * sends more than 2048 bytes of data (10240 if Jumbo frame enabled). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_jab_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacJabber); - return; -} -#endif - -/** - * Enables Frame bursting (Only in Half Duplex Mode). - * When enabled, GMAC allows frame bursting in GMII Half Duplex mode. - * Reserved in 10/100 and Full-Duplex configurations. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_frame_burst_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFrameBurst); - return; -} -/** - * Disables Frame bursting. - * When Disabled, frame bursting is not supported. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_frame_burst_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacFrameBurst); - return; -} -#endif - -/** - * Enable Jumbo frame support. - * When Enabled GMAC supports jumbo frames of 9018/9022(VLAN tagged). - * Giant frame error is not reported in receive frame status. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_jumbo_frame_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacJumboFrame); - return; -} -#endif -/** - * Disable Jumbo frame support. - * When Disabled GMAC does not supports jumbo frames. - * Giant frame error is reported in receive frame status. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_jumbo_frame_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacJumboFrame); - return; -} - -/** - * Disable Carrier sense. - * When Disabled GMAC ignores CRS signal during frame transmission - * in half duplex mode. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ - -#if UNUSED -void synopGMAC_disable_crs(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacDisableCrs); - return; -} -#endif - - - -/** - * Selects the GMII port. - * When called GMII (1000Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_select_gmii(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacMiiGmii); - return; -} -/** - * Selects the MII port. - * When called MII (10/100Mbps) port is selected (programmable only in 10/100/1000 Mbps configuration). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_select_mii(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacMiiGmii); - return; -} - -/** - * Enables Receive Own bit (Only in Half Duplex Mode). - * When enaled GMAC receives all the packets given by phy while transmitting. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_own_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacRxOwn); - return; -} -/** - * Disables Receive Own bit (Only in Half Duplex Mode). - * When enaled GMAC disables the reception of frames when gmii_txen_o is asserted. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_rx_own_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacRxOwn); - return; -} -#endif - -/** - * Sets the GMAC in loopback mode. - * When on GMAC operates in loop-back mode at GMII/MII. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note (G)MII Receive clock is required for loopback to work properly, as transmit clock is - * not looped back internally. - */ -void synopGMAC_loopback_on(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacLoopback); - return; -} -/** - * Sets the GMAC in Normal mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_loopback_off(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacLoopback); - return; -} - -/** - * Sets the GMAC core in Full-Duplex mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_set_full_duplex(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacDuplex); - return; -} -/** - * Sets the GMAC core in Half-Duplex mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_set_half_duplex(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacDuplex); - return; -} - -/** - * GMAC tries retransmission (Only in Half Duplex mode). - * If collision occurs on the GMII/MII, GMAC attempt retries based on the - * back off limit configured. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note This function is tightly coupled with synopGMAC_back_off_limit(synopGMACdev *, u32). - */ -void synopGMAC_retry_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacRetry); - return; -} -/** - * GMAC tries only one transmission (Only in Half Duplex mode). - * If collision occurs on the GMII/MII, GMAC will ignore the current frami - * transmission and report a frame abort with excessive collision in tranmit frame status. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_retry_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacRetry); - return; -} -#endif - -/** - * GMAC strips the Pad/FCS field of incoming frames. - * This is true only if the length field value is less than or equal to - * 1500 bytes. All received frames with length field greater than or equal to - * 1501 bytes are passed to the application without stripping the Pad/FCS field. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_pad_crc_strip_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacPadCrcStrip); - return; -} -#endif -/** - * GMAC doesnot strips the Pad/FCS field of incoming frames. - * GMAC will pass all the incoming frames to Host unmodified. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_pad_crc_strip_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacPadCrcStrip); - u32 status = synopGMACReadReg(gmacdev -> MacBase, GmacConfig); - DEBUG_MES("strips status : %u\n", status & GmacPadCrcStrip); - return; -} -/** - * GMAC programmed with the back off limit value. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note This function is tightly coupled with synopGMAC_retry_enable(synopGMACdevice * gmacdev) - */ -void synopGMAC_back_off_limit(synopGMACdevice *gmacdev, u32 value) -{ - u32 data; - data = synopGMACReadReg(gmacdev -> MacBase, GmacConfig); - data &= (~GmacBackoffLimit); - data |= value; - synopGMACWriteReg(gmacdev -> MacBase, GmacConfig, data); - return; -} - -/** - * Enables the Deferral check in GMAC (Only in Half Duplex mode) - * GMAC issues a Frame Abort Status, along with the excessive deferral error bit set in the - * transmit frame status when transmit state machine is deferred for more than - * - 24,288 bit times in 10/100Mbps mode - * - 155,680 bit times in 1000Mbps mode or Jumbo frame mode in 10/100Mbps operation. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note Deferral begins when transmitter is ready to transmit, but is prevented because of - * an active CRS (carrier sense) - */ -#if UNUSED -void synopGMAC_deferral_check_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacDeferralCheck); - return; -} -#endif -/** - * Disables the Deferral check in GMAC (Only in Half Duplex mode). - * GMAC defers until the CRS signal goes inactive. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_deferral_check_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacDeferralCheck); - return; -} -/** - * Enable the reception of frames on GMII/MII. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacRx); - return; -} -/** - * Disable the reception of frames on GMII/MII. - * GMAC receive state machine is disabled after completion of reception of current frame. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_rx_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacRx); - return; -} -#endif -/** - * Enable the transmission of frames on GMII/MII. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacTx); - return; -} -/** - * Disable the transmission of frames on GMII/MII. - * GMAC transmit state machine is disabled after completion of transmission of current frame. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_tx_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacConfig, GmacTx); - return; -} -#endif - - -/*Receive frame filter configuration functions*/ - -/** - * Disables reception of all the frames to application. - * GMAC passes only those received frames to application which - * pass SA/DA address filtering. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_frame_filter_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacFilter); - return; -} - -/** - * Enables reception of all the frames to application. - * GMAC passes all the frames received to application irrespective of whether they - * pass SA/DA address filtering or not. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_frame_filter_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacFilter); - return; -} - -/** - * Populates the Hash High register with the data supplied. - * This function is called when the Hash filtering is to be enabled. - * @param[in] pointer to synopGMACdevice. - * @param[in] data to be written to hash table high register. - * \return void. - */ -#if UNUSED -void synopGMAC_write_hash_table_high(synopGMACdevice *gmacdev, u32 data) -{ - synopGMACWriteReg(gmacdev -> MacBase, GmacHashHigh, data); - return; -} -#endif - -/** - * Populates the Hash Low register with the data supplied. - * This function is called when the Hash filtering is to be enabled. - * @param[in] pointer to synopGMACdevice. - * @param[in] data to be written to hash table low register. - * \return void. - */ -#if UNUSED -void synopGMAC_write_hash_table_low(synopGMACdevice *gmacdev, u32 data) -{ - synopGMACWriteReg(gmacdev -> MacBase, GmacHashLow, data); - return; -} -#endif - -/** - * Enables Hash or Perfect filter (only if Hash filter is enabled in H/W). - * Only frames matching either perfect filtering or Hash Filtering as per HMC and HUC - * configuration are sent to application. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_hash_perfect_filter_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacHashPerfectFilter); - return; -} -#endif - -/** - * Enables only Hash(only if Hash filter is enabled in H/W). - * Only frames matching Hash Filtering as per HMC and HUC - * configuration are sent to application. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_Hash_filter_only_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacHashPerfectFilter); - return; -} -#endif - -/** - * Enables Source address filtering. - * When enabled source address filtering is performed. Only frames matching SA filtering are passed to application with - * SAMatch bit of RxStatus is set. GMAC drops failed frames. - * @param[in] pointer to synopGMACdevice. - * \return void. - * \note This function is overriden by synopGMAC_frame_filter_disable(synopGMACdevice *) - */ -#if UNUSED -void synopGMAC_src_addr_filter_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacSrcAddrFilter); - return; -} -#endif -/** - * Disables Source address filtering. - * When disabled GMAC forwards the received frames with updated SAMatch bit in RxStatus. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_src_addr_filter_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacSrcAddrFilter); - return; -} -/** - * Enables Inverse Destination address filtering. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_dst_addr_filter_inverse(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacDestAddrFilterInv); - return; -} -#endif -/** - * Enables the normal Destination address filtering. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_dst_addr_filter_normal(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacDestAddrFilterInv); - return; -} - -/** - * Enables forwarding of control frames. - * When set forwards all the control frames (incl. unicast and multicast PAUSE frames). - * @param[in] pointer to synopGMACdevice. - * \return void. - * \note Depends on RFE of FlowControlRegister[2] - */ -void synopGMAC_set_pass_control(synopGMACdevice *gmacdev, u32 passcontrol) -{ - u32 data; - data = synopGMACReadReg(gmacdev -> MacBase, GmacFrameFilter); - data &= (~GmacPassControl); - data |= passcontrol; - synopGMACWriteReg(gmacdev -> MacBase, GmacFrameFilter, data); - return; -} - -/** - * Enables Broadcast frames. - * When enabled Address filtering module passes all incoming broadcast frames. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_broadcast_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacBroadcast); - return; -} -/** - * Disable Broadcast frames. - * When disabled Address filtering module filters all incoming broadcast frames. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_broadcast_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacFrameFilter, GmacBroadcast); - return; -} -#endif - -/** - * Enables Multicast frames. - * When enabled all multicast frames are passed. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_multicast_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacMulticastFilter); - return; -} -#endif -/** - * Disable Multicast frames. - * When disabled multicast frame filtering depends on HMC bit. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_multicast_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacMulticastFilter); - return; -} - -/** - * Enables multicast hash filtering. - * When enabled GMAC performs teh destination address filtering according to the hash table. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_multicast_hash_filter_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacMcastHashFilter); - return; -} -#endif -/** - * Disables multicast hash filtering. - * When disabled GMAC performs perfect destination address filtering for multicast frames, it compares - * DA field with the value programmed in DA register. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_multicast_hash_filter_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacMcastHashFilter); - return; -} - -/** - * Enables promiscous mode. - * When enabled Address filter modules pass all incoming frames regardless of their Destination - * and source addresses. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_promisc_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacPromiscuousMode); - return; -} -#endif -/** - * Clears promiscous mode. - * When called the GMAC falls back to normal operation from promiscous mode. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_promisc_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacPromiscuousMode); - return; -} - -/** - * Enables unicast hash filtering. - * When enabled GMAC performs the destination address filtering of unicast frames according to the hash table. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_unicast_hash_filter_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFrameFilter, GmacUcastHashFilter); - return; -} -#endif -/** - * Disables multicast hash filtering. - * When disabled GMAC performs perfect destination address filtering for unicast frames, it compares - * DA field with the value programmed in DA register. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_unicast_hash_filter_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFrameFilter, GmacUcastHashFilter); - return; -} - -/*Flow control configuration functions*/ - -/** - * Enables detection of pause frames with stations unicast address. - * When enabled GMAC detects the pause frames with stations unicast address in addition to the - * detection of pause frames with unique multicast address. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacUnicastPauseFrame); - return; -} -#endif -/** - * Disables detection of pause frames with stations unicast address. - * When disabled GMAC only detects with the unique multicast address (802.3x). - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFlowControl, GmacUnicastPauseFrame); - return; -} -/** - * Rx flow control enable. - * When Enabled GMAC will decode the rx pause frame and disable the tx for a specified time. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_rx_flow_control_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacRxFlowControl); - return; -} -/** - * Rx flow control disable. - * When disabled GMAC will not decode pause frame. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_rx_flow_control_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFlowControl, GmacRxFlowControl); - return; -} -/** - * Tx flow control enable. - * When Enabled - * - In full duplex GMAC enables flow control operation to transmit pause frames. - * - In Half duplex GMAC enables the back pressure operation - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_tx_flow_control_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacTxFlowControl); - return; -} - -/** - * Tx flow control disable. - * When Disabled - * - In full duplex GMAC will not transmit any pause frames. - * - In Half duplex GMAC disables the back pressure feature. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_tx_flow_control_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev -> MacBase, GmacFlowControl, GmacTxFlowControl); - return; -} - -/** - * Initiate Flowcontrol operation. - * When Set - * - In full duplex GMAC initiates pause control frame. - * - In Half duplex GMAC initiates back pressure function. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_tx_activate_flow_control(synopGMACdevice *gmacdev) -{ - //In case of full duplex check for this bit to b'0. if it is read as b'1 indicates that - //control frame transmission is in progress. - if (gmacdev -> Speed == FULLDUPLEX) - { - if (!synopGMACCheckBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure)) - { - synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure); - } - } - else//if half duplex mode - { - - synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure); - } - - return; -} -#endif - -/** - * stops Flowcontrol operation. - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -#if UNUSED -void synopGMAC_tx_deactivate_flow_control(synopGMACdevice *gmacdev) -{ - //In full duplex this bit is automatically cleared after transmitting a pause control frame. - if (gmacdev->Speed == HALFDUPLEX) - { - synopGMACSetBits(gmacdev -> MacBase, GmacFlowControl, GmacFlowControlBackPressure); - } - - return; -} -#endif - -/** - * This enables the pause frame generation after programming the appropriate registers. - * presently activation is set at 3k and deactivation set at 4k. These may have to tweaked - * if found any issues - * @param[in] pointer to synopGMACdevice. - * \return void. - */ -void synopGMAC_pause_control(synopGMACdevice *gmacdev) -{ - u32 omr_reg; - u32 mac_flow_control_reg; - omr_reg = synopGMACReadReg(gmacdev -> DmaBase, DmaControl); - omr_reg |= DmaRxFlowCtrlAct4K | DmaRxFlowCtrlDeact5K | DmaEnHwFlowCtrl; - synopGMACWriteReg(gmacdev -> DmaBase, DmaControl, omr_reg); - - mac_flow_control_reg = synopGMACReadReg(gmacdev -> MacBase, GmacFlowControl); - mac_flow_control_reg |= GmacRxFlowControl | GmacTxFlowControl | 0xFFFF0000; - synopGMACWriteReg(gmacdev -> MacBase, GmacFlowControl, mac_flow_control_reg); - - return; -} - -/** - * Example mac initialization sequence. - * This function calls the initialization routines to initialize the GMAC register. - * One can change the functions invoked here to have different configuration as per the requirement - * @param[in] pointer to synopGMACdevice. - * \return Returns 0 on success. - */ -s32 synopGMAC_mac_init(synopGMACdevice *gmacdev) -{ - u32 PHYreg; - - if (gmacdev->DuplexMode == FULLDUPLEX) - { - TR("\n===phy FULLDUPLEX MODE\n"); //sw: debug - synopGMAC_wd_enable(gmacdev); - synopGMAC_jab_enable(gmacdev); - synopGMAC_frame_burst_enable(gmacdev); - synopGMAC_jumbo_frame_disable(gmacdev); - synopGMAC_rx_own_enable(gmacdev); -#if SYNOP_LOOPBACK_MODE - synopGMAC_loopback_on(gmacdev); -#else - synopGMAC_loopback_off(gmacdev); -#endif - synopGMAC_set_full_duplex(gmacdev); //1 - synopGMAC_retry_enable(gmacdev); - synopGMAC_pad_crc_strip_disable(gmacdev); - synopGMAC_back_off_limit(gmacdev, GmacBackoffLimit0); - synopGMAC_deferral_check_disable(gmacdev); - - synopGMAC_tx_enable(gmacdev); //according to Tang Dan's commitment - synopGMAC_rx_enable(gmacdev); - - synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaStoreAndForward); //3 - synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaFwdErrorFrames); - - if (gmacdev -> Speed == SPEED1000) - { - synopGMAC_select_gmii(gmacdev); - } - else - { - synopGMAC_select_mii(gmacdev); - - if (gmacdev -> Speed == SPEED100) - { - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed100); - } - else - { - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed10); - } - } - - - /*Frame Filter Configuration*/ - //synopGMAC_frame_filter_enable(gmacdev); //2 - synopGMAC_frame_filter_disable(gmacdev); //2 - synopGMAC_set_pass_control(gmacdev, GmacPassControl0); - synopGMAC_broadcast_enable(gmacdev); - synopGMAC_src_addr_filter_disable(gmacdev); - synopGMAC_multicast_disable(gmacdev); - synopGMAC_dst_addr_filter_normal(gmacdev); //scl - //synopGMAC_dst_addr_filter_inverse(gmacdev); - synopGMAC_multicast_hash_filter_disable(gmacdev); - synopGMAC_promisc_disable(gmacdev); - synopGMAC_unicast_hash_filter_disable(gmacdev); - - /*Flow Control Configuration*/ - synopGMAC_unicast_pause_frame_detect_disable(gmacdev); - synopGMAC_rx_flow_control_enable(gmacdev); - synopGMAC_tx_flow_control_enable(gmacdev); - } - else//for Half Duplex configuration - { - - TR("\n===phy HALFDUPLEX MODE\n"); //sw: debug - synopGMAC_wd_enable(gmacdev); - synopGMAC_jab_enable(gmacdev); - synopGMAC_frame_burst_enable(gmacdev); - synopGMAC_jumbo_frame_disable(gmacdev); - synopGMAC_rx_own_enable(gmacdev); -#if SYNOP_LOOPBACK_MODE - synopGMAC_loopback_on(gmacdev); -#else - synopGMAC_loopback_off(gmacdev); -#endif - synopGMAC_set_half_duplex(gmacdev); - synopGMAC_retry_enable(gmacdev); - synopGMAC_pad_crc_strip_disable(gmacdev); - synopGMAC_back_off_limit(gmacdev, GmacBackoffLimit0); - synopGMAC_deferral_check_disable(gmacdev); - -//sw: set efe & tsf - synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaStoreAndForward); - synopGMACSetBits(gmacdev -> DmaBase, DmaControl, DmaFwdErrorFrames); -//sw: put it in the end - synopGMAC_tx_enable(gmacdev); - synopGMAC_rx_enable(gmacdev); - - - if (gmacdev -> Speed == SPEED1000) - synopGMAC_select_gmii(gmacdev); - else - { - synopGMAC_select_mii(gmacdev); - - if (gmacdev -> Speed == SPEED100) - { - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed100); - } - else - { - synopGMACSetBits(gmacdev -> MacBase, GmacConfig, GmacFESpeed10); - } - } - -// synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacDisableCrs); -// synopGMAC_select_gmii(gmacdev); - - /*Frame Filter Configuration*/ - synopGMAC_frame_filter_enable(gmacdev); -// synopGMAC_frame_filter_disable(gmacdev); - - synopGMAC_set_pass_control(gmacdev, GmacPassControl0); - synopGMAC_broadcast_enable(gmacdev); - synopGMAC_src_addr_filter_disable(gmacdev); - synopGMAC_multicast_disable(gmacdev); - synopGMAC_dst_addr_filter_normal(gmacdev); - synopGMAC_multicast_hash_filter_disable(gmacdev); - - synopGMAC_promisc_disable(gmacdev); -// synopGMAC_promisc_enable(gmacdev); - synopGMAC_unicast_hash_filter_disable(gmacdev); - -//sw: loopback mode -// synopGMAC_loopback_on(gmacdev); - - /*Flow Control Configuration*/ - synopGMAC_unicast_pause_frame_detect_disable(gmacdev); - synopGMAC_rx_flow_control_disable(gmacdev); - synopGMAC_tx_flow_control_disable(gmacdev); - - /*To set PHY register to enable CRS on Transmit*/ - } - return 0; -} - - -/** - * Sets the Mac address in to GMAC register. - * This function sets the MAC address to the MAC register in question. - * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. - * @param[in] Register offset for Mac address high - * @param[in] Register offset for Mac address low - * @param[in] buffer containing mac address to be programmed. - * \return 0 upon success. Error code upon failure. - */ -s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) -{ - u32 data; - - data = (MacAddr[5] << 8) | MacAddr[4]; - synopGMACWriteReg(gmacdev -> MacBase, MacHigh, data); - data = (MacAddr[3] << 24) | (MacAddr[2] << 16) | (MacAddr[1] << 8) | MacAddr[0]; - synopGMACWriteReg(gmacdev -> MacBase, MacLow, data); - - return 0; -} - - -/** - * Get the Mac address in to the address specified. - * The mac register contents are read and written to buffer passed. - * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. - * @param[in] Register offset for Mac address high - * @param[in] Register offset for Mac address low - * @param[out] buffer containing the device mac address. - * \return 0 upon success. Error code upon failure. - */ -s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr) -{ - u32 data; - - data = synopGMACReadReg(gmacdev -> MacBase, MacHigh); - MacAddr[5] = (data >> 8) & 0xff; - MacAddr[4] = (data) & 0xff; - - data = synopGMACReadReg(gmacdev -> MacBase, MacLow); - MacAddr[3] = (data >> 24) & 0xff; - MacAddr[2] = (data >> 16) & 0xff; - MacAddr[1] = (data >> 8) & 0xff; - MacAddr[0] = (data) & 0xff; - -// rt_kprintf("MacAddr = 0x%x\t0x%x\t0x%x\t0x%x\t0x%x\t0x%x\n",MacAddr[0],MacAddr[1],MacAddr[2],MacAddr[3],MacAddr[4],MacAddr[5]); - - return 0; -} - - -/** - * Attaches the synopGMAC device structure to the hardware. - * Device structure is populated with MAC/DMA and PHY base addresses. - * @param[in] pointer to synopGMACdevice to populate mac dma and phy addresses. - * @param[in] GMAC IP mac base address. - * @param[in] GMAC IP dma base address. - * @param[in] GMAC IP phy base address. - * \return 0 upon success. Error code upon failure. - * \note This is important function. No kernel api provided by Synopsys - */ - -s32 synopGMAC_attach(synopGMACdevice *gmacdev, u64 macBase, u64 dmaBase, u64 phyBase, u8 *mac_addr) -{ - /*Make sure the Device data strucure is cleared before we proceed further*/ - rt_memset((void *)gmacdev, 0, sizeof(synopGMACdevice)); - /*Populate the mac and dma base addresses*/ - gmacdev -> MacBase = macBase; - gmacdev -> DmaBase = dmaBase; - gmacdev -> PhyBase = phyBase; -// rt_kprintf("gmacdev->DmaBase = 0x%x\n", gmacdev->DmaBase); -// rt_kprintf("dmaBase = 0x%x\n", dmaBase); - { - int i, j; - u16 data; - - for (i = phyBase, j = 0; j < 32; i = (i + 1) & 0x1f, j++) - { - synopGMAC_read_phy_reg(gmacdev -> MacBase, i, 2, &data); - - if (data != 0 && data != 0xffff) - { - break; - } - - synopGMAC_read_phy_reg(gmacdev -> MacBase, i, 3, &data); - - if (data != 0 && data != 0xffff) - { - break; - } - } - - if (j == 32) - { - rt_kprintf("phy_detect: can't find PHY!\n"); - } - - gmacdev -> PhyBase = i; - } - -// synopGMAC_get_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr); - - /* Program/flash in the station/IP's Mac address */ - synopGMAC_set_mac_addr(gmacdev, GmacAddr0High, GmacAddr0Low, mac_addr); - - return 0; -} - - - - -/** - * Initialize the rx descriptors for ring or chain mode operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) - * - data1 and data2 set to 0. (note) - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor - * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. - */ -void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) -{ - desc -> length = last_ring_desc ? RxDescEndOfRing : 0; - desc -> status = 0; - desc -> buffer1 = 0; - desc -> buffer2 = 0; - desc -> data1 = 0; - desc -> data2 = 0; - //desc -> dummy1 = 0; - //desc -> dummy2 = 0; - - return; -} -void synopGMAC_rx_desc_recycle(DmaDesc *desc, bool last_ring_desc) -{ - desc -> status = DescOwnByDma; - desc -> length = last_ring_desc ? RxDescEndOfRing : 0; - //desc->buffer1 = 0; - //desc->buffer2 = 0; - //desc->data1 = 0; - //desc->data2 = 0; - //desc -> dummy1 = 0; - //desc -> dummy2 = 0; - - return; -} -/** - * Initialize the tx descriptors for ring or chain mode operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0 for ring mode of operation. (note) - * - data1 and data2 set to 0. (note) - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - * \note Initialization of the buffer1, buffer2, data1,data2 and status are not done here. This only initializes whether one wants to use this descriptor - * in chain mode or ring mode. For chain mode of operation the buffer2 and data2 are programmed before calling this function. - */ -void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc) -{ -#ifdef ENH_DESC - desc -> status = last_ring_desc ? TxDescEndOfRing : 0; - desc -> length = 0; -#else - desc -> length = last_ring_desc ? TxDescEndOfRing : 0; - desc -> status = 0; -#endif -//sw - desc -> buffer1 = 0; - desc -> buffer2 = 0; - desc -> data1 = 0; - desc -> data2 = 0; - //desc -> dummy1 = 0; - //desc -> dummy2 = 0; - return; -} - -/** - * Initialize the rx descriptors for chain mode of operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0. - * - data1 and data2 set to 0. - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - */ - -void synopGMAC_rx_desc_init_chain(DmaDesc *desc) -{ - desc -> status = 0; - desc -> length = RxDescChain; - desc -> buffer1 = 0; - desc -> data1 = 0; - return; -} -/** - * Initialize the rx descriptors for chain mode of operation. - * - Status field is initialized to 0. - * - EndOfRing set for the last descriptor. - * - buffer1 and buffer2 set to 0. - * - data1 and data2 set to 0. - * @param[in] pointer to DmaDesc structure. - * @param[in] whether end of ring - * \return void. - */ -void synopGMAC_tx_desc_init_chain(DmaDesc *desc) -{ -#ifdef ENH_DESC - desc -> status = TxDescChain; - desc -> length = 0; -#else - desc -> length = TxDescChain; -#endif - desc -> buffer1 = 0; - desc -> data1 = 0; - return; -} - -s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev) -{ - s32 i; - - for (i = 0; i < gmacdev -> TxDescCount; i++) - { - synopGMAC_tx_desc_init_ring(gmacdev -> TxDesc + i, i == gmacdev -> TxDescCount - 1); - } - - TR("At line %d\n", __LINE__); - - for (i = 0; i < gmacdev -> RxDescCount; i++) - { - synopGMAC_rx_desc_init_ring(gmacdev -> RxDesc + i, i == gmacdev -> RxDescCount - 1); - } - - gmacdev -> TxNext = 0; - gmacdev -> TxBusy = 0; - gmacdev -> RxNext = 0; - gmacdev -> RxBusy = 0; - - return -ESYNOPGMACNOERR; -} -/** - * Programs the DmaRxBaseAddress with the Rx descriptor base address. - * Rx Descriptor's base address is available in the gmacdev structure. This function progrms the - * Dma Rx Base address with the starting address of the descriptor ring or chain. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev) -{ - DEBUG_MES("gmacdev->RxDescDma = %08x\n", gmacdev -> RxDescDma); - synopGMACWriteReg(gmacdev -> DmaBase, DmaRxBaseAddr, (u32)gmacdev -> RxDescDma); - return; -} - -/** - * Programs the DmaTxBaseAddress with the Tx descriptor base address. - * Tx Descriptor's base address is available in the gmacdev structure. This function progrms the - * Dma Tx Base address with the starting address of the descriptor ring or chain. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev) -{ - synopGMACWriteReg(gmacdev -> DmaBase, DmaTxBaseAddr, (u32)gmacdev -> TxDescDma); - return; -} - - -/** - * Makes the Dma as owner for this descriptor. - * This function sets the own bit of status field of the DMA descriptor, - * indicating the DMA is the owner for this descriptor. - * @param[in] pointer to DmaDesc structure. - * \return returns void. - */ -void synopGMAC_set_owner_dma(DmaDesc *desc) -{ - desc -> status |= DescOwnByDma; -} - -/** - * set tx descriptor to indicate SOF. - * This Descriptor contains the start of ethernet frame. - * @param[in] pointer to DmaDesc structure. - * \return returns void. - */ -void synopGMAC_set_desc_sof(DmaDesc *desc) -{ -#ifdef ENH_DESC - desc -> status |= DescTxFirst;//ENH_DESC -#else - desc -> length |= DescTxFirst; -#endif -} - -/** - * set tx descriptor to indicate EOF. - * This descriptor contains the End of ethernet frame. - * @param[in] pointer to DmaDesc structure. - * \return returns void. - */ -void synopGMAC_set_desc_eof(DmaDesc *desc) -{ -#ifdef ENH_DESC - desc -> status |= DescTxLast;//ENH_DESC -#else - desc -> length |= DescTxLast; -#endif -} - - -/** - * checks whether this descriptor contains start of frame. - * This function is to check whether the descriptor's data buffer - * contains a fresh ethernet frame? - * @param[in] pointer to DmaDesc structure. - * \return returns true if SOF in current descriptor, else returns fail. - */ -bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc) -{ - return ((desc -> status & DescRxFirst) == DescRxFirst); -} - -/** - * checks whether this descriptor contains end of frame. - * This function is to check whether the descriptor's data buffer - * contains end of ethernet frame? - * @param[in] pointer to DmaDesc structure. - * \return returns true if SOF in current descriptor, else returns fail. - */ -bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc) -{ - return ((desc -> status & DescRxLast) == DescRxLast); -} - -/** - * checks whether destination address filter failed in the rx frame. - * @param[in] pointer to DmaDesc structure. - * \return returns true if Failed, false if not. - */ -bool synopGMAC_is_da_filter_failed(DmaDesc *desc) -{ - return ((desc -> status & DescDAFilterFail) == DescDAFilterFail); -} - -/** - * checks whether source address filter failed in the rx frame. - * @param[in] pointer to DmaDesc structure. - * \return returns true if Failed, false if not. - */ -bool synopGMAC_is_sa_filter_failed(DmaDesc *desc) -{ - return ((desc -> status & DescSAFilterFail) == DescSAFilterFail); -} - -/** - * Checks whether the descriptor is owned by DMA. - * If descriptor is owned by DMA then the OWN bit is set to 1. This API is same for both ring and chain mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if Dma owns descriptor and false if not. - */ -bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc) -{ - return ((desc -> status & DescOwnByDma) == DescOwnByDma); -} - -/** - * returns the byte length of received frame including CRC. - * This returns the no of bytes received in the received ethernet frame including CRC(FCS). - * @param[in] pointer to DmaDesc structure. - * \return returns the length of received frame lengths in bytes. - */ -u32 synopGMAC_get_rx_desc_frame_length(u32 status) -{ - return ((status & DescFrameLengthMask) >> DescFrameLengthShift); -} - -/** - * Checks whether the descriptor is valid - * if no errors such as CRC/Receive Error/Watchdog Timeout/Late collision/Giant Frame/Overflow/Descriptor - * error the descritpor is said to be a valid descriptor. - * @param[in] pointer to DmaDesc structure. - * \return True if desc valid. false if error. - */ -bool synopGMAC_is_desc_valid(u32 status) -{ - return ((status & DescError) == 0); -} - -/** - * Checks whether the descriptor is empty. - * If the buffer1 and buffer2 lengths are zero in ring mode descriptor is empty. - * In chain mode buffer2 length is 0 but buffer2 itself contains the next descriptor address. - * @param[in] pointer to DmaDesc structure. - * \return returns true if descriptor is empty, false if not empty. - */ -bool synopGMAC_is_desc_empty(DmaDesc *desc) -{ - //if both the buffer1 length and buffer2 length are zero desc is empty - return (((desc -> length & DescSize1Mask) == 0) && ((desc -> length & DescSize2Mask) == 0)); -} - - -/** - * Checks whether the rx descriptor is valid. - * if rx descripor is not in error and complete frame is available in the same descriptor - * @param[in] pointer to DmaDesc structure. - * \return returns true if no error and first and last desc bits are set, otherwise it returns false. - */ -bool synopGMAC_is_rx_desc_valid(u32 status) -{ - return ((status & DescError) == 0) && ((status & DescRxFirst) == DescRxFirst) && ((status & DescRxLast) == DescRxLast); -} - -/** - * Checks whether the tx is aborted due to collisions. - * @param[in] pointer to DmaDesc structure. - * \return returns true if collisions, else returns false. - */ -bool synopGMAC_is_tx_aborted(u32 status) -{ - return (((status & DescTxLateCollision) == DescTxLateCollision) | ((status & DescTxExcCollisions) == DescTxExcCollisions)); - -} - -/** - * Checks whether the tx carrier error. - * @param[in] pointer to DmaDesc structure. - * \return returns true if carrier error occured, else returns falser. - */ -bool synopGMAC_is_tx_carrier_error(u32 status) -{ - return (((status & DescTxLostCarrier) == DescTxLostCarrier) | ((status & DescTxNoCarrier) == DescTxNoCarrier)); -} - - -/** - * Gives the transmission collision count. - * returns the transmission collision count indicating number of collisions occured before the frame was transmitted. - * Make sure to check excessive collision didnot happen to ensure the count is valid. - * @param[in] pointer to DmaDesc structure. - * \return returns the count value of collision. - */ -u32 synopGMAC_get_tx_collision_count(u32 status) -{ - return ((status & DescTxCollMask) >> DescTxCollShift); -} -u32 synopGMAC_is_exc_tx_collisions(u32 status) -{ - return ((status & DescTxExcCollisions) == DescTxExcCollisions); -} - - -/** - * Check for damaged frame due to overflow or collision. - * Retruns true if rx frame was damaged due to buffer overflow in MTL or late collision in half duplex mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_frame_damaged(u32 status) -{ -//bool synopGMAC_dma_rx_collisions(u32 status) - return (((status & DescRxDamaged) == DescRxDamaged) | ((status & DescRxCollision) == DescRxCollision)); -} - -/** - * Check for damaged frame due to collision. - * Retruns true if rx frame was damaged due to late collision in half duplex mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_frame_collision(u32 status) -{ -//bool synopGMAC_dma_rx_collisions(u32 status) - return ((status & DescRxCollision) == DescRxCollision); -} - -/** - * Check for receive CRC error. - * Retruns true if rx frame CRC error occured. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_crc(u32 status) -{ -//u32 synopGMAC_dma_rx_crc(u32 status) - return ((status & DescRxCrc) == DescRxCrc); -} - -/** - * Indicates rx frame has non integer multiple of bytes. (odd nibbles). - * Retruns true if dribbling error in rx frame. - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_frame_dribbling_errors(u32 status) -{ -//u32 synopGMAC_dma_rx_frame_errors(u32 status) - return ((status & DescRxDribbling) == DescRxDribbling); -} - -/** - * Indicates error in rx frame length. - * Retruns true if received frame length doesnot match with the length field - * @param[in] pointer to DmaDesc structure. - * \return returns true if error else returns false. - */ -bool synopGMAC_is_rx_frame_length_errors(u32 status) -{ -//u32 synopGMAC_dma_rx_length_errors(u32 status) - return ((status & DescRxLengthError) == DescRxLengthError); -} - -/** - * Checks whether this rx descriptor is last rx descriptor. - * This returns true if it is last descriptor either in ring mode or in chain mode. - * @param[in] pointer to devic structure. - * @param[in] pointer to DmaDesc structure. - * \return returns true if it is last descriptor, false if not. - * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). - */ -bool synopGMAC_is_last_rx_desc(synopGMACdevice *gmacdev, DmaDesc *desc) -{ -//bool synopGMAC_is_last_desc(DmaDesc *desc) - return (((desc -> length & RxDescEndOfRing) == RxDescEndOfRing) || ((u64)gmacdev -> RxDesc == desc -> data2)); -} - -/** - * Checks whether this tx descriptor is last tx descriptor. - * This returns true if it is last descriptor either in ring mode or in chain mode. - * @param[in] pointer to devic structure. - * @param[in] pointer to DmaDesc structure. - * \return returns true if it is last descriptor, false if not. - * \note This function should not be called before initializing the descriptor using synopGMAC_desc_init(). - */ -bool synopGMAC_is_last_tx_desc(synopGMACdevice *gmacdev, DmaDesc *desc) -{ -//bool synopGMAC_is_last_desc(DmaDesc *desc) -#ifdef ENH_DESC - return (((desc->status & TxDescEndOfRing) == TxDescEndOfRing) || ((u64)gmacdev -> TxDesc == desc -> data2)); -#else - return (((desc->length & TxDescEndOfRing) == TxDescEndOfRing) || ((u64)gmacdev -> TxDesc == desc -> data2)); -#endif -} - -/** - * Checks whether this rx descriptor is in chain mode. - * This returns true if it is this descriptor is in chain mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if chain mode is set, false if not. - */ -bool synopGMAC_is_rx_desc_chained(DmaDesc *desc) -{ - return ((desc -> length & RxDescChain) == RxDescChain); -} - -/** - * Checks whether this tx descriptor is in chain mode. - * This returns true if it is this descriptor is in chain mode. - * @param[in] pointer to DmaDesc structure. - * \return returns true if chain mode is set, false if not. - */ -bool synopGMAC_is_tx_desc_chained(DmaDesc *desc) -{ -#ifdef ENH_DESC - return ((desc -> status & TxDescChain) == TxDescChain); -#else - return ((desc -> length & TxDescChain) == TxDescChain); -#endif -} - -/** - * Driver Api to get the descriptor field information. - * This returns the status, dma-able address of buffer1, the length of buffer1, virtual address of buffer1 - * dma-able address of buffer2, length of buffer2, virtural adddress of buffer2. - * @param[in] pointer to DmaDesc structure. - * @param[out] pointer to status field fo descriptor. - * @param[out] dma-able address of buffer1. - * @param[out] length of buffer1. - * @param[out] virtual address of buffer1. - * @param[out] dma-able address of buffer2. - * @param[out] length of buffer2. - * @param[out] virtual address of buffer2. - * \return returns void. - */ -void synopGMAC_get_desc_data(DmaDesc *desc, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2) -{ - - if (Status != 0) - { - *Status = desc -> status; - } - - if (Buffer1 != 0) - { - *Buffer1 = desc -> buffer1; - } - - if (Length1 != 0) - { - *Length1 = (desc -> length & DescSize1Mask) >> DescSize1Shift; - } - - if (Data1 != 0) - { - *Data1 = desc -> data1; - } - - if (Buffer2 != 0) - { - *Buffer2 = desc -> buffer2; - } - - if (Length2 != 0) - { - *Length2 = (desc -> length & DescSize2Mask) >> DescSize2Shift; - } - - if (Data2 != 0) - { - *Data2 = desc -> data2; - } - - return; -} - -#ifdef ENH_DESC_8W -/** - * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor - * Get the index and address of Tx desc. - * This api is same for both ring mode and chain mode. - * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is - * over. This returns the descriptor fields to the caller. - * @param[in] pointer to synopGMACdevice. - * @param[out] status field of the descriptor. - * @param[out] Dma-able buffer1 pointer. - * @param[out] length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present tx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_tx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2, - u32 *Ext_Status, u32 *Time_Stamp_High, u32 *Time_Stamp_Low) -{ - u32 txover = gmacdev->TxBusy; - DmaDesc *txdesc = gmacdev->TxBusyDesc; - - if (synopGMAC_is_desc_owned_by_dma(txdesc)) - return -1; - if (synopGMAC_is_desc_empty(txdesc)) - return -1; - - (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now - - if (Status != 0) - *Status = txdesc->status; - - if (Ext_Status != 0) - *Ext_Status = txdesc->extstatus; - if (Time_Stamp_High != 0) - *Time_Stamp_High = txdesc->timestamphigh; - if (Time_Stamp_Low != 0) - *Time_Stamp_High = txdesc->timestamplow; - - if (Buffer1 != 0) - *Buffer1 = txdesc->buffer1; - if (Length1 != 0) - *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; - if (Data1 != 0) - *Data1 = txdesc->data1; - - if (Buffer2 != 0) - *Buffer2 = txdesc->buffer2; - if (Length2 != 0) - *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; - if (Data1 != 0) - *Data2 = txdesc->data2; - - gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txover + 1; - - if (synopGMAC_is_tx_desc_chained(txdesc)) - { - gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; - synopGMAC_tx_desc_init_chain(txdesc); - } - else - { - gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); - synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev, txdesc)); - } - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", txover, (u32)txdesc, txdesc->status, txdesc->length, txdesc->buffer1, txdesc->buffer2, txdesc->data1, txdesc->data2); - - return txover; -} -#else - -/** - * Get the index and address of Tx desc. - * This api is same for both ring mode and chain mode. - * This function tracks the tx descriptor the DMA just closed after the transmission of data from this descriptor is - * over. This returns the descriptor fields to the caller. - * @param[in] pointer to synopGMACdevice. - * @param[out] status field of the descriptor. - * @param[out] Dma-able buffer1 pointer. - * @param[out] length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * @param[out] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present tx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_tx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2) -{ - u32 txover = gmacdev->TxBusy; - DmaDesc *txdesc = gmacdev->TxBusyDesc; - int i; -//sw: dbg - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_R); - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); -#if SYNOP_TX_DEBUG - printf("Cache sync before get a used tx dma desc!\n"); - printf("\n==%02d %08x %08x %08x %08x %08x %08x %08x\n", txover, (u32)txdesc, txdesc->status, txdesc->length, txdesc->buffer1, txdesc->buffer2, txdesc->data1, txdesc->data2); -#endif - if (synopGMAC_is_desc_owned_by_dma(txdesc)) - { - return -1; - } -// gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? 0 : txover + 1; -// gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev,txdesc) ? gmacdev->TxDesc : (txdesc + 1); - if (synopGMAC_is_desc_empty(txdesc)) - { - return -1; - } - (gmacdev->BusyTxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now - - if (Status != 0) - *Status = txdesc->status; - - if (Buffer1 != 0) - *Buffer1 = txdesc->buffer1; - if (Length1 != 0) - *Length1 = (txdesc->length & DescSize1Mask) >> DescSize1Shift; - if (Data1 != 0) - *Data1 = txdesc->data1; - - if (Buffer2 != 0) - *Buffer2 = txdesc->buffer2; - if (Length2 != 0) - *Length2 = (txdesc->length & DescSize2Mask) >> DescSize2Shift; - if (Data1 != 0) - *Data2 = txdesc->data2; - - gmacdev->TxBusy = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txover + 1; - - if (synopGMAC_is_tx_desc_chained(txdesc)) - { - gmacdev->TxBusyDesc = (DmaDesc *)txdesc->data2; - synopGMAC_tx_desc_init_chain(txdesc); - } - else - { - gmacdev->TxBusyDesc = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); - synopGMAC_tx_desc_init_ring(txdesc, synopGMAC_is_last_tx_desc(gmacdev, txdesc)); - } - //printf("%02d %08x %08x %08x %08x %08x %08x %08x\n",txover,(u32)txdesc,txdesc->status,txdesc->length,txdesc->buffer1,txdesc->buffer2,txdesc->data1,txdesc->data2); - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); -#if SYNOP_TX_DEBUG - printf("Cache sync after re-init a tx dma desc!\n"); -#endif - - return txover; -} - -#endif -/** - * Populate the tx desc structure with the buffer address. - * Once the driver has a packet ready to be transmitted, this function is called with the - * valid dma-able buffer addresses and their lengths. This function populates the descriptor - * and make the DMA the owner for the descriptor. This function also controls whether Checksum - * offloading to be done in hardware or not. - * This api is same for both ring mode and chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] Dma-able buffer1 pointer. - * @param[in] length of buffer1 (Max is 2048). - * @param[in] virtual pointer for buffer1. - * @param[in] Dma-able buffer2 pointer. - * @param[in] length of buffer2 (Max is 2048). - * @param[in] virtual pointer for buffer2. - * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. - * @param[in] u32 indicating whether the checksum offloading in HW/SW. - * \return returns present tx descriptor index on success. Negative value if error. - */ -u32 len; -s32 synopGMAC_set_tx_qptr(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2, u32 offload_needed, u32 *index, DmaDesc *Dpr) -{ - u32 txnext = gmacdev->TxNext; - DmaDesc *txdesc = gmacdev->TxNextDesc; - - *index = txnext; - Dpr = txdesc; - - if (!synopGMAC_is_desc_empty(txdesc)) - { - TR("set tx qptr: desc empty!\n"); - return -1; - } - - (gmacdev->BusyTxDesc)++; //busy tx descriptor is reduced by one as it will be handed over to Processor now - - if (synopGMAC_is_tx_desc_chained(txdesc)) - { - txdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); -#ifdef ENH_DESC - txdesc->status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC -#else - txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor -#endif - - txdesc->buffer1 = Buffer1; - txdesc->data1 = Data1; - - if (offload_needed) - { - /* - Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, - before calling any of the functions given below. - */ - synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); - synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); -// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); - } -#ifdef ENH_DESC - txdesc->status |= DescOwnByDma;//ENH_DESC -#else - txdesc->status = DescOwnByDma; -#endif - - gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txnext + 1; - gmacdev->TxNextDesc = (DmaDesc *)txdesc->data2; - } - else - { -// printf("synopGMAC_set_tx_qptr:in ring mode\n"); - txdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); -#ifdef ENH_DESC - txdesc->status |= (DescTxFirst | DescTxLast | DescTxIntEnable); //ENH_DESC -#else - txdesc->length |= (DescTxFirst | DescTxLast | DescTxIntEnable); //Its always assumed that complete data will fit in to one descriptor -#endif - - txdesc->buffer1 = Buffer1; - txdesc->data1 = Data1; - - txdesc->buffer2 = Buffer2; - txdesc->data2 = Data2; - - if (offload_needed) - { - /* - Make sure that the OS you are running supports the IP and TCP checkusm offloaidng, - before calling any of the functions given below. - */ -//sw: i am not sure about the checksum.so i omit it in the outside - synopGMAC_tx_checksum_offload_ipv4hdr(gmacdev, txdesc); - synopGMAC_tx_checksum_offload_tcponly(gmacdev, txdesc); -// synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); - } -#ifdef ENH_DESC - txdesc->status |= DescOwnByDma;//ENH_DESC -#else -// printf("synopGMAC_set_tx_qptr:give the tx descroptor to dma\n"); - txdesc->status = DescOwnByDma; -#endif - - gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txnext + 1; - gmacdev->TxNextDesc = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); - } - - -#if SYNOP_TX_DEBUG - printf("%02d %08x %08x %08x %08x %08x %08x %08x\n", txnext, (u32)txdesc, txdesc->status, txdesc->length, txdesc->buffer1, txdesc->buffer2, txdesc->data1, txdesc->data2); -#endif - //pci_sync_cache(0, (vm_offset_t)txdesc, 64, SYNC_W); -#if SYNOP_TX_DEBUG - printf("Cache sync to set a tx desc!\n"); -#endif - //pci_sync_cache(0, (vm_offset_t)(txdesc->data1), 32, SYNC_W); -#if SYNOP_TX_DEBUG - //printf("Cache sync for data in the buf of the tx desc!\n"); -#endif - return txnext; -} -#ifdef ENH_DESC_8W -/** - * Prepares the descriptor to receive packets. - * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields - * and handed over to DMA by setting the ownership. After successful return from this function the - * descriptor is added to the receive descriptor pool/queue. - * This api is same for both ring mode and chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] Dma-able buffer1 pointer. - * @param[in] length of buffer1 (Max is 2048). - * @param[in] Dma-able buffer2 pointer. - * @param[in] length of buffer2 (Max is 2048). - * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present rx descriptor index on success. Negative value if error. - */ -// dma_addr RX_BUF_SIZE skb -s32 synopGMAC_set_rx_qptr(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2) -{ - u32 rxnext = gmacdev->RxNext; - DmaDesc *rxdesc = gmacdev->RxNextDesc; - - if (!synopGMAC_is_desc_empty(rxdesc)) - return -1; - - if (synopGMAC_is_rx_desc_chained(rxdesc)) - { - rxdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); - - rxdesc->buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->extstatus = 0; - rxdesc->reserved1 = 0; - rxdesc->timestamplow = 0; - rxdesc->timestamphigh = 0; - - if ((rxnext % MODULO_INTERRUPT) != 0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; - } - else - { - rxdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); - - rxdesc->buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->extstatus = 0; - rxdesc->reserved1 = 0; - rxdesc->timestamplow = 0; - rxdesc->timestamphigh = 0; - - rxdesc->buffer2 = Buffer2; - rxdesc->data2 = Data2; - - if ((rxnext % MODULO_INTERRUPT) != 0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - } -#if SYNOP_RX_DEBUG - TR("%02d %08x %08x %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2, rxdesc->dummy1, rxdesc->dummy2); -#endif - - (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one - //pci_sync_cache(0, (vm_offset_t)rxdesc,64, SYNC_W); - return rxnext; -} - -#else -/** - * Prepares the descriptor to receive packets. - * The descriptor is allocated with the valid buffer addresses (sk_buff address) and the length fields - * and handed over to DMA by setting the ownership. After successful return from this function the - * descriptor is added to the receive descriptor pool/queue. - * This api is same for both ring mode and chain mode. - * @param[in] pointer to synopGMACdevice. - * @param[in] Dma-able buffer1 pointer. - * @param[in] length of buffer1 (Max is 2048). - * @param[in] Dma-able buffer2 pointer. - * @param[in] length of buffer2 (Max is 2048). - * @param[in] u32 data indicating whether the descriptor is in ring mode or chain mode. - * \return returns present rx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_set_rx_qptr(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2) -{ - u32 rxnext = gmacdev->RxNext; - DmaDesc *rxdesc = gmacdev->RxNextDesc; - - if (!synopGMAC_is_desc_empty(rxdesc)) - return -1; - - if (synopGMAC_is_rx_desc_chained(rxdesc)) - { - rxdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); - - rxdesc->buffer1 = Buffer1; - rxdesc->data1 = Data1; - - if ((rxnext % MODULO_INTERRUPT) != 0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; - } - else - { - rxdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); - - rxdesc->buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->buffer2 = Buffer2; - rxdesc->data2 = Data2; - - if ((rxnext % MODULO_INTERRUPT) != 0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - } -#if SYNOP_RX_DEBUG - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); -#endif - (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one - - return rxnext; -} - -s32 synopGMAC_set_rx_qptr_init(synopGMACdevice *gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2) -{ - u32 rxnext = gmacdev->RxNext; - DmaDesc *rxdesc = gmacdev->RxNextDesc; - - /* sw - if(synopGMAC_is_desc_owned_by_dma(rxdesc)) - return -1; - */ - - if (!synopGMAC_is_desc_empty(rxdesc)) - return -1; - - if (synopGMAC_is_rx_desc_chained(rxdesc)) - { - rxdesc->length |= ((Length1 << DescSize1Shift) & DescSize1Mask); - - rxdesc->buffer1 = Buffer1; - rxdesc->data1 = Data1; - - if ((rxnext % MODULO_INTERRUPT) != 0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - rxdesc->status = 0; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = (DmaDesc *)rxdesc->data2; - } - else - { - rxdesc->length |= (((Length1 << DescSize1Shift) & DescSize1Mask) | ((Length2 << DescSize2Shift) & DescSize2Mask)); - - rxdesc->buffer1 = Buffer1; - rxdesc->data1 = Data1; - - rxdesc->buffer2 = Buffer2; - rxdesc->data2 = Data2; - - if ((rxnext % MODULO_INTERRUPT) != 0) - rxdesc->length |= RxDisIntCompl; - - rxdesc->status = DescOwnByDma; - rxdesc->status = 0; - - gmacdev->RxNext = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - gmacdev->RxNextDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - } - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); - (gmacdev->BusyRxDesc)++; //One descriptor will be given to Hardware. So busy count incremented by one - return rxnext; -} -#endif -#ifdef ENH_DESC_8W -/** - * This function is defined two times. Once when the code is compiled for ENHANCED DESCRIPTOR SUPPORT and Once for Normal descriptor - * Get back the descriptor from DMA after data has been received. - * When the DMA indicates that the data is received (interrupt is generated), this function should be - * called to get the descriptor and hence the data buffers received. With successful return from this - * function caller gets the descriptor fields for processing. check the parameters to understand the - * fields returned.` - * @param[in] pointer to synopGMACdevice. - * @param[out] pointer to hold the status of DMA. - * @param[out] Dma-able buffer1 pointer. - * @param[out] pointer to hold length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] pointer to hold length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * \return returns present rx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_rx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2, - u32 *Ext_Status, u32 *Time_Stamp_High, u32 *Time_Stamp_Low) -{ - u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data - //is spread over multiple buffers/descriptors - DmaDesc *rxdesc = gmacdev->RxBusyDesc; - if (synopGMAC_is_desc_owned_by_dma(rxdesc)) - return -1; - if (synopGMAC_is_desc_empty(rxdesc)) - return -1; - - - if (Status != 0) - *Status = rxdesc->status;// send the status of this descriptor - - if (Ext_Status != 0) - *Ext_Status = rxdesc->extstatus; - if (Time_Stamp_High != 0) - *Time_Stamp_High = rxdesc->timestamphigh; - if (Time_Stamp_Low != 0) - *Time_Stamp_Low = rxdesc->timestamplow; - - if (Length1 != 0) - *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; - if (Buffer1 != 0) - *Buffer1 = rxdesc->buffer1; - if (Data1 != 0) - *Data1 = rxdesc->data1; - - if (Length2 != 0) - *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; - if (Buffer2 != 0) - *Buffer2 = rxdesc->buffer2; - if (Data1 != 0) - *Data2 = rxdesc->data2; - - gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - - if (synopGMAC_is_rx_desc_chained(rxdesc)) - { - gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; - synopGMAC_rx_desc_init_chain(rxdesc); - //synopGMAC_desc_init_chain(rxdesc, synopGMAC_is_last_rx_desc(gmacdev,rxdesc),0,0); - } - else - { - gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); - synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev, rxdesc)); - } - TR("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); - (gmacdev->BusyRxDesc)--; //busy tx descriptor is reduced by one as it will be handed over to Processor now - return (rxnext); - -} -#else - -/** - * Get back the descriptor from DMA after data has been received. - * When the DMA indicates that the data is received (interrupt is generated), this function should be - * called to get the descriptor and hence the data buffers received. With successful return from this - * function caller gets the descriptor fields for processing. check the parameters to understand the - * fields returned.` - * @param[in] pointer to synopGMACdevice. - * @param[out] pointer to hold the status of DMA. - * @param[out] Dma-able buffer1 pointer. - * @param[out] pointer to hold length of buffer1 (Max is 2048). - * @param[out] virtual pointer for buffer1. - * @param[out] Dma-able buffer2 pointer. - * @param[out] pointer to hold length of buffer2 (Max is 2048). - * @param[out] virtual pointer for buffer2. - * \return returns present rx descriptor index on success. Negative value if error. - */ -s32 synopGMAC_get_rx_qptr(synopGMACdevice *gmacdev, u32 *Status, u32 *Buffer1, u32 *Length1, u64 *Data1, u32 *Buffer2, u32 *Length2, u64 *Data2) -{ - u32 rxnext = gmacdev->RxBusy; // index of descriptor the DMA just completed. May be useful when data - //is spread over multiple buffers/descriptors - DmaDesc *rxdesc = gmacdev->RxBusyDesc; - u32 len; - if (synopGMAC_is_desc_owned_by_dma(rxdesc)) - { - DEBUG_MES("synopGMAC_get_rx_qptr:DMA descriptor is owned by GMAC!\n"); - return -1; - } - - if (synopGMAC_is_desc_empty(rxdesc)) - { - DEBUG_MES("synopGMAC_get_rx_qptr:rx desc is empty!\n"); - return -1; - } - - if (Status != 0) - *Status = rxdesc->status;// send the status of this descriptor - - if (Length1 != 0) - *Length1 = (rxdesc->length & DescSize1Mask) >> DescSize1Shift; - if (Buffer1 != 0) - *Buffer1 = rxdesc->buffer1; - if (Data1 != 0) - *Data1 = rxdesc->data1; - if (Length2 != 0) - *Length2 = (rxdesc->length & DescSize2Mask) >> DescSize2Shift; - if (Buffer2 != 0) - *Buffer2 = rxdesc->buffer2; - if (Data1 != 0) - *Data2 = rxdesc->data2; - - len = synopGMAC_get_rx_desc_frame_length(*Status); - DEBUG_MES("Cache sync for data buffer in rx dma desc: length = 0x%x\n", len); - gmacdev->RxBusy = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? 0 : rxnext + 1; - if (synopGMAC_is_rx_desc_chained(rxdesc)) - { - gmacdev->RxBusyDesc = (DmaDesc *)rxdesc->data2; - synopGMAC_rx_desc_init_chain(rxdesc); - } - else - { - gmacdev->RxBusyDesc = synopGMAC_is_last_rx_desc(gmacdev, rxdesc) ? gmacdev->RxDesc : (rxdesc + 1); -//sw: raw data -#if SYNOP_RX_DEBUG - DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); -#endif - synopGMAC_rx_desc_init_ring(rxdesc, synopGMAC_is_last_rx_desc(gmacdev, rxdesc)); - } -#if SYNOP_RX_DEBUG - DEBUG_MES("%02d %08x %08x %08x %08x %08x %08x %08x\n", rxnext, (u32)rxdesc, rxdesc->status, rxdesc->length, rxdesc->buffer1, rxdesc->buffer2, rxdesc->data1, rxdesc->data2); -#endif - - (gmacdev->BusyRxDesc)--; //This returns one descriptor to processor. So busy count will be decremented by one - return (rxnext); - -} - -#endif - -/** - * Clears all the pending interrupts. - * If the Dma status register is read then all the interrupts gets cleared - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - TR("DMA status reg = 0x%x before cleared!\n", data); - synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, data); - // plat_delay(DEFAULT_LOOP_VARIABLE); -// data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - TR("DMA status reg = 0x%x after cleared!\n", data); -} - -/** - * Returns the all unmasked interrupt status after reading the DmaStatus register. - * @param[in] pointer to synopGMACdevice. - * \return 0 upon success. Error code upon failure. - */ -u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev) -{ - u32 data; - u32 interrupts = 0; - data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus); - - //data = data & ~0x84; //sw: some bits shoud not be cleaned - synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, data); //manju: I think this is the appropriate location to clear the interrupts - plat_delay(DEFAULT_LOOP_VARIABLE); - if (data & DmaIntErrorMask) interrupts |= synopGMACDmaError; - if (data & DmaIntRxNormMask) interrupts |= synopGMACDmaRxNormal; - if (data & DmaIntRxAbnMask) interrupts |= synopGMACDmaRxAbnormal; - if (data & DmaIntRxStoppedMask) interrupts |= synopGMACDmaRxStopped; - if (data & DmaIntTxNormMask) interrupts |= synopGMACDmaTxNormal; - if (data & DmaIntTxAbnMask) interrupts |= synopGMACDmaTxAbnormal; - if (data & DmaIntTxStoppedMask) interrupts |= synopGMACDmaTxStopped; - - return interrupts; -} - -/** - * Returns the interrupt mask. - * @param[in] pointer to synopGMACdevice. - * \return 0 upon success. Error code upon failure. - */ -#if UNUSED -u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev) -{ - return (synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt)); -} -#endif - -/** - * Enable all the interrupts. - * Enables the DMA interrupt as specified by the bit mask. - * @param[in] pointer to synopGMACdevice. - * @param[in] bit mask of interrupts to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, interrupts); - return; -} -#endif - - -/** - * Disable all the interrupts. - * Disables all DMA interrupts. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note This function disabled all the interrupts, if you want to disable a particular interrupt then - * use synopGMAC_disable_interrupt(). - */ -void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev) -{ -// rt_kprintf("dmabase = 0x%x\n",gmacdev->DmaBase); - synopGMACWriteReg(gmacdev->DmaBase, DmaInterrupt, DmaIntDisable); -// synopGMACReadReg(gmacdev->DmaBase, DmaInterrupt); - return; -} - -/** - * Disable interrupt according to the bitfield supplied. - * Disables only those interrupts specified in the bit mask in second argument. - * @param[in] pointer to synopGMACdevice. - * @param[in] bit mask for interrupts to be disabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts) -{ - synopGMACClearBits(gmacdev->DmaBase, DmaInterrupt, interrupts); - return; -} -#endif -/** - * Enable the DMA Reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_enable_dma_rx(synopGMACdevice *gmacdev) -{ -// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaRxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data |= DmaRxStart; - TR0(" ===33334\n"); - synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); - TR0(" ===33344\n"); -} - -/** - * Enable the DMA Transmission. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_enable_dma_tx(synopGMACdevice *gmacdev) -{ -// synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaTxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data |= DmaTxStart; - synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); - -} - -/** - * Resumes the DMA Transmission. - * the DmaTxPollDemand is written. (the data writeen could be anything). - * This forces the DMA to resume transmission. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_resume_dma_tx(synopGMACdevice *gmacdev) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaTxPollDemand, 1); - -} -/** - * Resumes the DMA Reception. - * the DmaRxPollDemand is written. (the data writeen could be anything). - * This forces the DMA to resume reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_resume_dma_rx(synopGMACdevice *gmacdev) -{ - synopGMACWriteReg(gmacdev->DmaBase, DmaRxPollDemand, 0); - -} -/** - * Take ownership of this Descriptor. - * The function is same for both the ring mode and the chain mode DMA structures. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_take_desc_ownership(DmaDesc *desc) -{ - if (desc) - { - desc->status &= ~DescOwnByDma; //Clear the DMA own bit -// desc->status |= DescError; // Set the error to indicate this descriptor is bad - } -} - -/** - * Take ownership of all the rx Descriptors. - * This function is called when there is fatal error in DMA transmission. - * When called it takes the ownership of all the rx descriptor in rx descriptor pool/queue from DMA. - * The function is same for both the ring mode and the chain mode DMA structures. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. - */ -void synopGMAC_take_desc_ownership_rx(synopGMACdevice *gmacdev) -{ - s32 i; - DmaDesc *desc; - desc = gmacdev->RxDesc; - for (i = 0; i < gmacdev->RxDescCount; i++) - { - if (synopGMAC_is_rx_desc_chained(desc)) //This descriptor is in chain mode - { - - synopGMAC_take_desc_ownership(desc); - desc = (DmaDesc *)desc->data2; - } - else - { - synopGMAC_take_desc_ownership(desc + i); - } - } -} - -/** - * Take ownership of all the rx Descriptors. - * This function is called when there is fatal error in DMA transmission. - * When called it takes the ownership of all the tx descriptor in tx descriptor pool/queue from DMA. - * The function is same for both the ring mode and the chain mode DMA structures. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - * \note Make sure to disable the transmission before calling this function, otherwise may result in racing situation. - */ -void synopGMAC_take_desc_ownership_tx(synopGMACdevice *gmacdev) -{ - s32 i; - DmaDesc *desc; - desc = gmacdev->TxDesc; - for (i = 0; i < gmacdev->TxDescCount; i++) - { - if (synopGMAC_is_tx_desc_chained(desc)) //This descriptor is in chain mode - { - synopGMAC_take_desc_ownership(desc); - desc = (DmaDesc *)desc->data2; - } - else - { - synopGMAC_take_desc_ownership(desc + i); - } - } -} - -/** - * Disable the DMA for Transmission. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ - -void synopGMAC_disable_dma_tx(synopGMACdevice *gmacdev) -{ -// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaTxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data &= (~DmaTxStart); - synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); -} -/** - * Disable the DMA for Reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_disable_dma_rx(synopGMACdevice *gmacdev) -{ -// synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaRxStart); - u32 data; - data = synopGMACReadReg(gmacdev->DmaBase, DmaControl); - data &= (~DmaRxStart); - synopGMACWriteReg(gmacdev->DmaBase, DmaControl, data); -} -/*******************PMT APIs***************************************/ -/** - * Enables the assertion of PMT interrupt. - * This enables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame - * reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); - return; -} -#endif -/** - * Disables the assertion of PMT interrupt. - * This disables the assertion of PMT interrupt due to Magic Pkt or Wakeup frame - * reception. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); - return; -} -/** - * Enables the power down mode of GMAC. - * This function puts the Gmac in power down mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_power_down_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtPowerDown); - return; -} -#endif -/** - * Disables the powerd down setting of GMAC. - * If the driver wants to bring up the GMAC from powerdown mode, even though the magic packet or the - * wake up frames received from the network, this function should be called. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_power_down_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtPowerDown); - return; -} -#endif -/** - * Enables the pmt interrupt generation in powerdown mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); -} -#endif -/** - * Disables the pmt interrupt generation in powerdown mode. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); -} -#endif -/** - * Enables GMAC to look for Magic packet. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtMagicPktEnable); - return; -} -#endif - -/** - * Enables GMAC to look for wake up frame. - * Wake up frame is defined by the user. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtWakeupFrameEnable); - return; -} -#endif - -/** - * Enables wake-up frame filter to handle unicast packets. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtGlobalUnicast); - return; -} -#endif -/** - * Checks whether the packet received is a magic packet?. - * @param[in] pointer to synopGMACdevice. - * \return returns True if magic packet received else returns false. - */ -bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase, GmacPmtCtrlStatus); - return ((data & GmacPmtMagicPktReceived) == GmacPmtMagicPktReceived); -} -/** - * Checks whether the packet received is a wakeup frame?. - * @param[in] pointer to synopGMACdevice. - * \return returns true if wakeup frame received else returns false. - */ -bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev) -{ - u32 data; - data = synopGMACReadReg(gmacdev->MacBase, GmacPmtCtrlStatus); - return ((data & GmacPmtWakeupFrameReceived) == GmacPmtWakeupFrameReceived); -} - -/** - * Populates the remote wakeup frame registers. - * Consecutive 8 writes to GmacWakeupAddr writes the wakeup frame filter registers. - * Before commensing a new write, frame filter pointer is reset to 0x0000. - * A small delay is introduced to allow frame filter pointer reset operation. - * @param[in] pointer to synopGMACdevice. - * @param[in] pointer to frame filter contents array. - * \return returns void. - */ -#if UNUSED -void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 *filter_contents) -{ - s32 i; - synopGMACSetBits(gmacdev->MacBase, GmacPmtCtrlStatus, GmacPmtFrmFilterPtrReset); - plat_delay(10); - for (i = 0; i < WAKEUP_REG_LENGTH; i++) - synopGMACWriteReg(gmacdev->MacBase, GmacWakeupAddr, *(filter_contents + i)); - return; - -} -#endif - -/*******************PMT APIs***************************************/ -/*******************MMC APIs***************************************/ -/** - * Freezes the MMC counters. - * This function call freezes the MMC counters. None of the MMC counters are updated - * due to any tx or rx frames until synopGMAC_mmc_counters_resume is called. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterFreeze); - return; -} -#endif -/** - * Resumes the MMC counter updation. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterFreeze); - return; -} -#endif -/** - * Configures the MMC in Self clearing mode. - * Programs MMC interface so that counters are cleared when the counters are read. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterResetOnRead); - return; -} -#endif -/** - * Configures the MMC in non-Self clearing mode. - * Programs MMC interface so that counters are cleared when the counters are read. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterResetOnRead); - return; -} -#endif -/** - * Configures the MMC to stop rollover. - * Programs MMC interface so that counters will not rollover after reaching maximum value. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterStopRollover); - return; -} -/** - * Configures the MMC to rollover. - * Programs MMC interface so that counters will rollover after reaching maximum value. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacMmcCntrl, GmacMmcCounterStopRollover); - return; -} - -/** - * Read the MMC Counter. - * @param[in] pointer to synopGMACdevice. - * @param[in] the counter to be read. - * \return returns the read count value. - */ -u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter) -{ - return (synopGMACReadReg(gmacdev->MacBase, counter)); -} -#endif -/** - * Read the MMC Rx interrupt status. - * @param[in] pointer to synopGMACdevice. - * \return returns the Rx interrupt status. - */ -u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev) -{ - return (synopGMACReadReg(gmacdev->MacBase, GmacMmcIntrRx)); -} -/** - * Read the MMC Tx interrupt status. - * @param[in] pointer to synopGMACdevice. - * \return returns the Tx interrupt status. - */ -u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev) -{ - return (synopGMACReadReg(gmacdev->MacBase, GmacMmcIntrTx)); -} -/** - * Disable the MMC Tx interrupt. - * The MMC tx interrupts are masked out as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] tx interrupt bit mask for which interrupts needs to be disabled. - * \return returns void. - */ -void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACSetBits(gmacdev->MacBase, GmacMmcIntrMaskTx, mask); - return; -} -/** - * Enable the MMC Tx interrupt. - * The MMC tx interrupts are enabled as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] tx interrupt bit mask for which interrupts needs to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACClearBits(gmacdev->MacBase, GmacMmcIntrMaskTx, mask); -} -#endif -/** - * Disable the MMC Rx interrupt. - * The MMC rx interrupts are masked out as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. - * \return returns void. - */ -void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACSetBits(gmacdev->MacBase, GmacMmcIntrMaskRx, mask); - return; -} -/** - * Enable the MMC Rx interrupt. - * The MMC rx interrupts are enabled as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACClearBits(gmacdev->MacBase, GmacMmcIntrMaskRx, mask); - return; -} -#endif -/** - * Disable the MMC ipc rx checksum offload interrupt. - * The MMC ipc rx checksum offload interrupts are masked out as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be disabled. - * \return returns void. - */ -void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACSetBits(gmacdev->MacBase, GmacMmcRxIpcIntrMask, mask); - return; -} -/** - * Enable the MMC ipc rx checksum offload interrupt. - * The MMC ipc rx checksum offload interrupts are enabled as per the mask specified. - * @param[in] pointer to synopGMACdevice. - * @param[in] rx interrupt bit mask for which interrupts needs to be enabled. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask) -{ - synopGMACClearBits(gmacdev->MacBase, GmacMmcRxIpcIntrMask, mask); - return; -} -#endif -/*******************MMC APIs***************************************/ -/*******************Ip checksum offloading APIs***************************************/ - -/** - * Enables the ip checksum offloading in receive path. - * When set GMAC calculates 16 bit 1's complement of all received ethernet frame payload. - * It also checks IPv4 Header checksum is correct. GMAC core appends the 16 bit checksum calculated - * for payload of IP datagram and appends it to Ethernet frame transferred to the application. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -#if UNUSED -void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacConfig, GmacRxIpcOffload); - return; -} -/** - * Disable the ip checksum offloading in receive path. - * Ip checksum offloading is disabled in the receive path. - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacConfig, GmacRxIpcOffload); -} -/** - * Instruct the DMA to drop the packets fails tcp ip checksum. - * This is to instruct the receive DMA engine to drop the recevied packet if they - * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->DmaBase, DmaControl, DmaDisableDropTcpCs); - return; -} -/** - * Instruct the DMA not to drop the packets even if it fails tcp ip checksum. - * This is to instruct the receive DMA engine to allow the packets even if recevied packet - * fails the tcp/ip checksum in hardware. Valid only when full checksum offloading is enabled(type-2). - * @param[in] pointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->DmaBase, DmaControl, DmaDisableDropTcpCs); - return; -} -#endif - -/** - * When the Enhanced Descriptor is enabled then the bit 0 of RDES0 indicates whether the - * Extended Status is available (RDES4). Time Stamp feature and the Checksum Offload Engine2 - * makes use of this extended status to provide the status of the received packet. - * @param[in] pointer to synopGMACdevice - * \return returns TRUE or FALSE - */ -#ifdef ENH_DESC_8W -/** - * This function indicates whether extended status is available in the RDES0. - * Any function which accesses the fields of extended status register must ensure a check on this has been made - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev, u32 status) // extended status present indicates that the RDES4 need to be probed -{ - return ((status & DescRxEXTsts) != 0); // if extstatus set then it returns 1 -} -/** - * This function returns true if the IP header checksum bit is set in the extended status. - * Valid only when enhaced status available is set in RDES0 bit 0. - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev, u32 ext_status) // IP header (IPV4) checksum error -{ - return ((ext_status & DescRxIpHeaderError) != 0); // if IPV4 header error return 1 -} -/** - * This function returns true if the Checksum is bypassed in the hardware. - * Valid only when enhaced status available is set in RDES0 bit 0. - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev, u32 ext_status) // Hardware engine bypassed the checksum computation/checking -{ - return ((ext_status & DescRxChkSumBypass) != 0); // if checksum offloading bypassed return 1 -} -/** - * This function returns true if payload checksum error is set in the extended status. - * Valid only when enhaced status available is set in RDES0 bit 0. - * This is valid only for Enhanced Descriptor. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns TRUE or FALSE. - */ -bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev, u32 ext_status) // IP payload checksum is in error (UDP/TCP/ICMP checksum error) -{ - return ((ext_status & DescRxIpPayloadError) != 0); // if IP payload error return 1 -} -#endif - -/** - * Decodes the Rx Descriptor status to various checksum error conditions. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns decoded enum (u32) indicating the status. - */ -u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status) -{ - if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) - return RxLenLT600; - else if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) - return RxIpHdrPayLoadChkBypass; - else if (((status & DescRxChkBit5) == 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) - return RxChkBypass; - else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) == 0)) - return RxNoChkError; - else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) == 0) && ((status & DescRxChkBit0) != 0)) - return RxPayLoadChkError; - else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) == 0)) - return RxIpHdrChkError; - else if (((status & DescRxChkBit5) != 0) && ((status & DescRxChkBit7) != 0) && ((status & DescRxChkBit0) != 0)) - return RxIpHdrPayLoadChkError; - else - return RxIpHdrPayLoadRes; -} -/** - * Checks if any Ipv4 header checksum error in the frame just transmitted. - * This serves as indication that error occureed in the IPv4 header checksum insertion. - * The sent out frame doesnot carry any ipv4 header checksum inserted by the hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns true if error in ipv4 header checksum, else returns false. - */ -bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status) -{ - return ((status & DescTxIpv4ChkError) == DescTxIpv4ChkError); -} - -/** - * Checks if any payload checksum error in the frame just transmitted. - * This serves as indication that error occureed in the payload checksum insertion. - * The sent out frame doesnot carry any payload checksum inserted by the hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] u32 status field of the corresponding descriptor. - * \return returns true if error in ipv4 header checksum, else returns false. - */ -bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status) -{ - return ((status & DescTxPayChkError) == DescTxPayChkError); -} -/** - * The check summ offload engine is bypassed in the tx path. - * Checksum is not computed in the Hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc) -{ -#ifdef ENH_DESC - desc->status = (desc->length & (~DescTxCisMask));//ENH_DESC -#else - desc->length = (desc->length & (~DescTxCisMask)); -#endif -} -/** - * The check summ offload engine is enabled to do only IPV4 header checksum. - * IPV4 header Checksum is computed in the Hardware. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc) -{ -#ifdef ENH_DESC - desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisIpv4HdrCs);//ENH_DESC -#else - desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisIpv4HdrCs); -#endif -} - -/** - * The check summ offload engine is enabled to do TCPIP checsum assuming Pseudo header is available. - * Hardware computes the tcp ip checksum assuming pseudo header checksum is computed in software. - * Ipv4 header checksum is also inserted. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc) -{ -#ifdef ENH_DESC - desc->status = ((desc->status & (~DescTxCisMask)) | DescTxCisTcpOnlyCs);//ENH_DESC -#else - desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpOnlyCs); -#endif -} -/** - * The check summ offload engine is enabled to do complete checksum computation. - * Hardware computes the tcp ip checksum including the pseudo header checksum. - * Here the tcp payload checksum field should be set to 0000. - * Ipv4 header checksum is also inserted. - * @param[in] pointer to synopGMACdevice. - * @param[in] Pointer to tx descriptor for which ointer to synopGMACdevice. - * \return returns void. - */ -void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc) -{ -#ifdef ENH_DESC - desc->status = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); -#else - desc->length = ((desc->length & (~DescTxCisMask)) | DescTxCisTcpPseudoCs); -#endif - -} -/*******************Ip checksum offloading APIs***************************************/ -/*******************IEEE 1588 Timestamping API***************************************/ -/* - * At this time the driver supports the IEEE time stamping feature when the Enhanced Descriptors are enabled. - * For normal descriptor and the IEEE time stamp (version 1), driver support is not proviced - * Please make sure you have enabled the Advanced timestamp feature in the hardware and the driver should - * be compiled with the ADV_TME_STAMP feature. - * Some of the APIs provided here may not be valid for all configurations. Please make sure you call the - * API with due care. - */ - -/** - * This function enables the timestamping. This enables the timestamping for transmit and receive frames. - * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -#if UNUSED -void synopGMAC_TS_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSENA); - return; -} -/** - * This function disables the timestamping. - * When disabled timestamp is not added to tx and receive frames and timestamp generator is suspended. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacTSIntMask); - return; -} - -/** - * Enable the interrupt to get timestamping interrupt. - * This enables the host to get the interrupt when (1) system time is greater or equal to the - * target time high and low register or (2) there is a overflow in th esecond register. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); - return; -} - -/** - * Disable the interrupt to get timestamping interrupt. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacInterruptMask, GmacPmtIntMask); - return; -} - -/** - * Enable MAC address for PTP frame filtering. - * When enabled, uses MAC address (apart from MAC address 0) to filter the PTP frames when - * PTP is sent directly over Ethernet. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSENMACADDR); - return; -} - -/** - * Disables MAC address for PTP frame filtering. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSENMACADDR); - return; -} - -/** - * Selet the type of clock mode for PTP. - * Please note to use one of the follwoing as the clk_type argument. - * GmacTSOrdClk = 0x00000000, 00=> Ordinary clock - * GmacTSBouClk = 0x00010000, 01=> Boundary clock - * GmacTSEtoEClk = 0x00020000, 10=> End-to-End transparent clock - * GmacTSPtoPClk = 0x00030000, 11=> P-to-P transparent clock - * @param[in] pointer to synopGMACdevice - * @param[in] u32 value representing one of the above clk value - * \return returns void - */ -void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type) -{ - u32 clkval; - clkval = synopGMACReadReg(gmacdev->MacBase, GmacTSControl); //set the mdc clock to the user defined value - clkval = clkval | clk_type; - synopGMACWriteReg(gmacdev->MacBase, GmacTSControl, clkval); - return; -} - -/** - * Enable Snapshot for messages relevant to Master. - * When enabled, snapshot is taken for messages relevant to master mode only, else snapshot is taken for messages relevant - * to slave node. - * Valid only for Ordinary clock and Boundary clock - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSMSTRENA); - return; -} -/** - * Disable Snapshot for messages relevant to Master. - * When disabled, snapshot is taken for messages relevant - * to slave node. - * Valid only for Ordinary clock and Boundary clock - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSMSTRENA); - return; -} -/** - * Enable Snapshot for Event messages. - * When enabled, snapshot is taken for event messages only (SYNC, Delay_Req, Pdelay_Req or Pdelay_Resp) - * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSEVNTENA); - return; -} -/** - * Disable Snapshot for Event messages. - * When disabled, snapshot is taken for all messages except Announce, Management and Signaling. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSEVNTENA); - return; -} - -/** - * Enable time stamp snapshot for IPV4 frames. - * When enabled, time stamp snapshot is taken for IPV4 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV4ENA); - return; -} -/** - * Disable time stamp snapshot for IPV4 frames. - * When disabled, time stamp snapshot is not taken for IPV4 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV4ENA); - return; -} // Only for "Advanced Time Stamp" -/** - * Enable time stamp snapshot for IPV6 frames. - * When enabled, time stamp snapshot is taken for IPV6 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV6ENA); - return; -} -/** - * Disable time stamp snapshot for IPV6 frames. - * When disabled, time stamp snapshot is not taken for IPV6 frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSIPV6ENA); - return; -} - -/** - * Enable time stamp snapshot for PTP over Ethernet frames. - * When enabled, time stamp snapshot is taken for PTP over Ethernet frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSIPENA); - return; -} -/** - * Disable time stamp snapshot for PTP over Ethernet frames. - * When disabled, time stamp snapshot is not taken for PTP over Ethernet frames - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSIPENA); - return; -} - -/** - * Snoop PTP packet for version 2 format - * When set the PTP packets are snooped using the version 2 format. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSVER2ENA); - return; -} -/** - * Snoop PTP packet for version 2 format - * When set the PTP packets are snooped using the version 2 format. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSVER2ENA); - return; -} - -/** - * Timestamp digital rollover - * When set the timestamp low register rolls over after 0x3B9A_C9FF value. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSCTRLSSR); - return; -} -/** - * Timestamp binary rollover - * When set the timestamp low register rolls over after 0x7FFF_FFFF value. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSCTRLSSR); - return; -} -/** - * Enable Time Stamp for All frames - * When set the timestamp snap shot is enabled for all frames received by the core. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSENALL); - return; -} -/** - * Disable Time Stamp for All frames - * When reset the timestamp snap shot is not enabled for all frames received by the core. - * Reserved when "Advanced Time Stamp" is not selected - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSENALL); - return; -} -/** - * Addend Register Update - * This function loads the contents of Time stamp addend register with the supplied 32 value. - * This is reserved function when only coarse correction option is selected - * @param[in] pointer to synopGMACdevice - * @param[in] 32 bit addend value - * \return returns 0 for Success or else Failure - */ -s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value) -{ - u32 loop_variable; - synopGMACWriteReg(gmacdev->MacBase, GmacTSAddend, addend_value); // Load the addend_value in to Addend register - for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) //Wait till the busy bit gets cleared with in a certain amount of time - { - if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSADDREG)) // if it is cleared then break - { - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if (loop_variable < DEFAULT_LOOP_VARIABLE) - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSADDREG); - else - { - TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } - return -ESYNOPGMACNOERR; -} -/** - * time stamp Update - * This function updates (adds/subtracts) with the value specified in the Timestamp High Update and - * Timestamp Low Update register. - * @param[in] pointer to synopGMACdevice - * @param[in] Timestamp High Update value - * @param[in] Timestamp Low Update value - * \return returns 0 for Success or else Failure - */ -s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) -{ - u32 loop_variable; - synopGMACWriteReg(gmacdev->MacBase, GmacTSHighUpdate, high_value); // Load the high value to Timestamp High register - synopGMACWriteReg(gmacdev->MacBase, GmacTSLowUpdate, low_value); // Load the high value to Timestamp High register - for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) //Wait till the busy bit gets cleared with in a certain amount of time - { - if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSUPDT)) // if it is cleared then break - { - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if (loop_variable < DEFAULT_LOOP_VARIABLE) - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSUPDT); - else - { - TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } - return -ESYNOPGMACNOERR; -} - -/** - * time stamp Initialize - * This function Loads/Initializes h the value specified in the Timestamp High Update and - * Timestamp Low Update register. - * @param[in] pointer to synopGMACdevice - * @param[in] Timestamp High Load value - * @param[in] Timestamp Low Load value - * \return returns 0 for Success or else Failure - */ -s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value) -{ - u32 loop_variable; - synopGMACWriteReg(gmacdev->MacBase, GmacTSHighUpdate, high_value); // Load the high value to Timestamp High register - synopGMACWriteReg(gmacdev->MacBase, GmacTSLowUpdate, low_value); // Load the high value to Timestamp High register - for (loop_variable = 0; loop_variable < DEFAULT_LOOP_VARIABLE; loop_variable++) //Wait till the busy bit gets cleared with in a certain amount of time - { - if (!((synopGMACReadReg(gmacdev->MacBase, GmacTSControl)) & GmacTSINT)) // if it is cleared then break - { - break; - } - plat_delay(DEFAULT_DELAY_VARIABLE); - } - if (loop_variable < DEFAULT_LOOP_VARIABLE) - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSINT); - else - { - TR("Error::: The TSADDREG bit is not getting cleared !!!!!!\n"); - return -ESYNOPGMACPHYERR; - } - return -ESYNOPGMACNOERR; -} - -/** - * Time Stamp Update Coarse - * When reset the timestamp update is done using coarse method. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev) -{ - synopGMACClearBits(gmacdev->MacBase, GmacTSControl, GmacTSCFUPDT); - return; -} -/** - * Time Stamp Update Fine - * When reset the timestamp update is done using Fine method. - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev) -{ - synopGMACSetBits(gmacdev->MacBase, GmacTSControl, GmacTSCFUPDT); - return; -} - -/** - * Load the Sub Second Increment value in to Sub Second increment register - * @param[in] pointer to synopGMACdevice - * \return returns void - */ -void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_value) -{ - synopGMACWriteReg(gmacdev->MacBase, GmacTSSubSecIncr, (sub_sec_inc_value & GmacSSINCMsk)); - return; -} -/** - * Reads the time stamp contents in to the respective pointers - * These registers are readonly. - * This function returns the 48 bit time stamp assuming Version 2 timestamp with higher word is selected. - * @param[in] pointer to synopGMACdevice - * @param[in] pointer to hold 16 higher bit second register contents - * @param[in] pointer to hold 32 bit second register contents - * @param[in] pointer to hold 32 bit subnanosecond register contents - * \return returns void - * \note Please note that since the atomic access to the timestamp registers is not possible, - * the contents read may be different from the actual time stamp. - */ -void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 *higher_sec_val, u32 *sec_val, u32 *sub_sec_val) -{ - * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase, GmacTSHighWord) & GmacTSHighWordMask); - * sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSHigh); - * sub_sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSLow); - return; -} -/** - * Loads the time stamp higher sec value from the value supplied - * @param[in] pointer to synopGMACdevice - * @param[in] 16 higher bit second register contents passed as 32 bit value - * \return returns void - */ -void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val) -{ - synopGMACWriteReg(gmacdev->MacBase, GmacTSHighWord, (higher_sec_val & GmacTSHighWordMask)); - return; -} -/** - * Reads the time stamp higher sec value to respective pointers - * @param[in] pointer to synopGMACdevice - * @param[in] pointer to hold 16 higher bit second register contents - * \return returns void - */ -void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 *higher_sec_val) -{ - * higher_sec_val = (u16)(synopGMACReadReg(gmacdev->MacBase, GmacTSHighWord) & GmacTSHighWordMask); - return; -} -/** - * Load the Target time stamp registers - * This function Loads the target time stamp registers with the values proviced - * @param[in] pointer to synopGMACdevice - * @param[in] target Timestamp High value - * @param[in] target Timestamp Low value - * \return returns 0 for Success or else Failure - */ -void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val) -{ - synopGMACWriteReg(gmacdev->MacBase, GmacTSTargetTimeHigh, sec_val); - synopGMACWriteReg(gmacdev->MacBase, GmacTSTargetTimeLow, sub_sec_val); - return; -} -/** - * Reads the Target time stamp registers - * This function Loads the target time stamp registers with the values proviced - * @param[in] pointer to synopGMACdevice - * @param[in] pointer to hold target Timestamp High value - * @param[in] pointer to hold target Timestamp Low value - * \return returns 0 for Success or else Failure - */ -void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 *sec_val, u32 *sub_sec_val) -{ - * sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSTargetTimeHigh); - * sub_sec_val = synopGMACReadReg(gmacdev->MacBase, GmacTSTargetTimeLow); - return; -} -#endif diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_Dev.h b/bsp/ls2kdev/drivers/net/synopGMAC_Dev.h deleted file mode 100644 index f47046d5ba..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_Dev.h +++ /dev/null @@ -1,1717 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - * 2020-08-10 lizhirui porting to ls2k - */ - -#define UNUSED 1 - -#ifndef SYNOP_GMAC_DEV_H -#define SYNOP_GMAC_DEV_H 1 - -/*******************************************************************/ -#define SYNOP_LOOPBACK_MODE (0) -#define SYNOP_LOOPBACK_DEBUG (0) -#define SYNOP_PHY_LOOPBACK (0) - -#define SYNOP_TX_TEST (0) -#define SYNOP_RX_TEST (0) - -#define SYNOP_TOP_DEBUG (0) -#define SYNOP_REG_DEBUG (0) -#define SYNOP_RX_DEBUG (0) -#define SYNOP_TX_DEBUG (0) - -#define ENH_DESC -/*******************************************************************/ - -#include "synopGMAC_plat.h" -#include "synopGMAC_types.h" - -//sw: typedef are included in synopGMAC_plat.h -// it is strange that we should add it here again!! - -/*SynopGMAC can support up to 32 phys*/ -#define GMAC_PHY_BASE 1 -#ifdef GMAC_PHY_BASE -#define DEFAULT_PHY_BASE GMAC_PHY_BASE -#else -#define DEFAULT_PHY_BASE PHY16 //We use First Phy -#endif -#define MACBASE 0x0000 // The Mac Base address offset is 0x0000 -#define DMABASE 0x1000 // Dma base address starts with an offset 0x1000 - - -enum GMACPhyBase -{ - PHY0 = 0, //The device can support 32 phys, but we use first phy only - PHY1 = 1, - PHY16 = 16, - PHY31 = 31, -}; - - -//#define TRANSMIT_DESC_SIZE 256 //Tx Descriptors needed in the Descriptor pool/queue -//#define RECEIVE_DESC_SIZE 256 //Rx Descriptors needed in the Descriptor pool/queue -//#define TRANSMIT_DESC_SIZE 13//256 //Tx Descriptors needed in the Descriptor pool/queue -#define TRANSMIT_DESC_SIZE 36 //48 //Tx Descriptors needed in the Descriptor pool/queue -#define RECEIVE_DESC_SIZE 36 //96 //Rx Descriptors needed in the Descriptor pool/queue - -#define ETHERNET_HEADER 14 //6 byte Dest addr, 6 byte Src addr, 2 byte length/type -#define ETHERNET_CRC 4 //Ethernet CRC -#define ETHERNET_EXTRA 2 //Only God knows about this????? -#define ETHERNET_PACKET_COPY 250 // Maximum length when received data is copied on to a new skb -#define ETHERNET_PACKET_EXTRA 18 // Preallocated length for the rx packets is MTU + ETHERNET_PACKET_EXTRA -#define VLAN_TAG 4 //optional 802.1q VLAN Tag -#define MIN_ETHERNET_PAYLOAD 46 //Minimum Ethernet payload size -#define MAX_ETHERNET_PAYLOAD 1500 //Maximum Ethernet payload size -#define JUMBO_FRAME_PAYLOAD 9000 //Jumbo frame payload size - -#define TX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG + 1000 -#define RX_BUF_SIZE ETHERNET_HEADER + ETHERNET_CRC + MAX_ETHERNET_PAYLOAD + VLAN_TAG + 1000 - - -// This is the IP's phy address. This is unique address for every MAC in the universe -#define DEFAULT_MAC_ADDRESS {0x00, 0x55, 0x7B, 0xB5, 0x7D, 0xF7} - -/* -DMA Descriptor Structure -The structure is common for both receive and transmit descriptors -The descriptor is of 4 words, but our structrue contains 6 words where -last two words are to hold the virtual address of the network buffer pointers -for driver's use -From the GMAC core release 3.50a onwards, the Enhanced Descriptor structure got changed. -The descriptor (both transmit and receive) are of 8 words each rather the 4 words of normal -descriptor structure. -Whenever IEEE 1588 Timestamping is enabled TX/RX DESC6 provides the lower 32 bits of Timestamp value and - TX/RX DESC7 provides the upper 32 bits of Timestamp value -In addition to this whenever extended status bit is set (RX DESC0 bit 0), RX DESC4 contains the extended status information -*/ - -#define MODULO_INTERRUPT 1 // if it is set to 1, interrupt is available for all the descriptors or else interrupt is available only for - // descriptor whose index%MODULO_INTERRUPT is zero -#ifdef ENH_DESC_8W -typedef struct DmaDescStruct -{ - u32 status; /* Status */ - u32 length; /* Buffer 1 and Buffer 2 length */ - u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ - u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ - /* This data below is used only by driver */ - u32 extstatus; /* Extended status of a Rx Descriptor */ - u32 reserved1; /* Reserved word */ - u32 timestamplow; /* Lower 32 bits of the 64 bit timestamp value */ - u32 timestamphigh; /* Higher 32 bits of the 64 bit timestamp value */ - u64 data1; /* This holds virtual address of buffer1, not used by DMA */ - u64 data2; /* This holds virtual address of buffer2, not used by DMA */ -} DmaDesc; -#else -typedef struct DmaDescStruct -{ - u32 status; /* Status */ - u32 length; /* Buffer 1 and Buffer 2 length */ - u32 buffer1; /* Network Buffer 1 pointer (Dma-able) */ - u32 buffer2; /* Network Buffer 2 pointer or next descriptor pointer (Dma-able)in chain structure */ - /* This data below is used only by driver */ - u64 data1; /* This holds virtual address of buffer1, not used by DMA */ - u64 data2; /* This holds virtual address of buffer2, not used by DMA */ - - //u32 dummy1; //sw: for addr align - //u32 dummy2; // - -} DmaDesc; -#endif - -enum DescMode -{ - RINGMODE = 0x00000001, - CHAINMODE = 0x00000002, -}; - -enum BufferMode -{ - SINGLEBUF = 0x00000001, - DUALBUF = 0x00000002, -}; - -/* synopGMAC device data */ - -typedef struct synopGMACDeviceStruct -{ - u64 MacBase; /* base address of MAC registers */ - u64 DmaBase; /* base address of DMA registers */ - u64 PhyBase; /* PHY device address on MII interface */ - u32 Version; /* Gmac Revision version */ - - dma_addr_t TxDescDma; /* Dma-able address of first tx descriptor either in ring or chain mode, this is used by the GMAC device*/ - dma_addr_t RxDescDma; /* Dma-able address of first rx descriptor either in ring or chain mode, this is used by the GMAC device*/ - DmaDesc *TxDesc; /* start address of TX descriptors ring or chain, this is used by the driver */ - DmaDesc *RxDesc; /* start address of RX descriptors ring or chain, this is used by the driver */ - - u32 BusyTxDesc; /* Number of Tx Descriptors owned by DMA at any given time*/ - u32 BusyRxDesc; /* Number of Rx Descriptors owned by DMA at any given time*/ - - u32 RxDescCount; /* number of rx descriptors in the tx descriptor queue/pool */ - u32 TxDescCount; /* number of tx descriptors in the rx descriptor queue/pool */ - - u32 TxBusy; /* index of the tx descriptor owned by DMA, is obtained by synopGMAC_get_tx_qptr() */ - u32 TxNext; /* index of the tx descriptor next available with driver, given to DMA by synopGMAC_set_tx_qptr() */ - u32 RxBusy; /* index of the rx descriptor owned by DMA, obtained by synopGMAC_get_rx_qptr() */ - u32 RxNext; /* index of the rx descriptor next available with driver, given to DMA by synopGMAC_set_rx_qptr() */ - - DmaDesc * TxBusyDesc; /* Tx Descriptor address corresponding to the index TxBusy */ - DmaDesc * TxNextDesc; /* Tx Descriptor address corresponding to the index TxNext */ - DmaDesc * RxBusyDesc; /* Rx Descriptor address corresponding to the index TxBusy */ - DmaDesc * RxNextDesc; /* Rx Descriptor address corresponding to the index RxNext */ - - /*Phy related stuff*/ - u32 ClockDivMdc; /* Clock divider value programmed in the hardware */ - /* The status of the link */ - u32 LinkState0; /* Link status as reported by the Marvel Phy */ - u32 LinkState; /* Link status as reported by the Marvel Phy */ - u32 DuplexMode; /* Duplex mode of the Phy */ - u32 Speed; /* Speed of the Phy */ - u32 LoopBackMode; /* Loopback status of the Phy */ -// void * FirstTxDesc; -// void * FirstRxDesc; -// u32 skb_array[RECEIVE_DESC_SIZE]; -} synopGMACdevice; - -/* Below is "88E1011/88E1011S Integrated 10/100/1000 Gigabit Ethernet Transceiver" - * Register and their layouts. This Phy has been used in the Dot Aster GMAC Phy daughter. - * Since the Phy register map is standard, this map hardly changes to a different Ppy - */ -enum MiiRegisters -{ - PHY_CONTROL_REG = 0x0000, /*Control Register*/ - PHY_STATUS_REG = 0x0001, /*Status Register */ - PHY_ID_HI_REG = 0x0002, /*PHY Identifier High Register*/ - PHY_ID_LOW_REG = 0x0003, /*PHY Identifier High Register*/ - PHY_AN_ADV_REG = 0x0004, /*Auto-Negotiation Advertisement Register*/ - PHY_LNK_PART_ABl_REG = 0x0005, /*Link Partner Ability Register (Base Page)*/ - PHY_AN_EXP_REG = 0x0006, /*Auto-Negotiation Expansion Register*/ - PHY_AN_NXT_PAGE_TX_REG = 0x0007, /*Next Page Transmit Register*/ - PHY_LNK_PART_NXT_PAGE_REG = 0x0008, /*Link Partner Next Page Register*/ - PHY_1000BT_CTRL_REG = 0x0009, /*1000BASE-T Control Register*/ - PHY_1000BT_STATUS_REG = 0x000a, /*1000BASE-T Status Register*/ - PHY_SPECIFIC_CTRL_REG = 0x0010, /*Phy specific control register*/ - PHY_SPECIFIC_STATUS_REG = 0x0011, /*Phy specific status register*/ - PHY_INTERRUPT_ENABLE_REG = 0x0012, /*Phy interrupt enable register*/ - PHY_INTERRUPT_STATUS_REG = 0x0013, /*Phy interrupt status register*/ - PHY_EXT_PHY_SPC_CTRL = 0x0014, /*Extended Phy specific control*/ - PHY_RX_ERR_COUNTER = 0x0015, /*Receive Error Counter*/ - PHY_EXT_ADDR_CBL_DIAG = 0x0016, /*Extended address for cable diagnostic register*/ - PHY_LED_CONTROL = 0x0018, /*LED Control*/ - PHY_MAN_LED_OVERIDE = 0x0019, /*Manual LED override register*/ - PHY_EXT_PHY_SPC_CTRL2 = 0x001a, /*Extended Phy specific control 2*/ - PHY_EXT_PHY_SPC_STATUS = 0x001b, /*Extended Phy specific status*/ - PHY_CBL_DIAG_REG = 0x001c, /*Cable diagnostic registers*/ -}; - -/* This is Control register layout. Control register is of 16 bit wide. -*/ -enum Mii_GEN_CTRL -{ /* Description bits R/W default value */ - Mii_reset = 0x8000, - Mii_Speed_10 = 0x0000, /* 10 Mbps 6:13 RW */ - Mii_Speed_100 = 0x2000, /* 100 Mbps 6:13 RW */ - Mii_Speed_1000 = 0x0040, /* 1000 Mbit/s 6:13 RW */ - - Mii_Duplex = 0x0100, /* Full Duplex mode 8 RW */ - - Mii_Manual_Master_Config = 0x0800, /* Manual Master Config 11 RW */ - - Mii_Loopback = 0x4000, /* Enable Loop back 14 RW */ - Mii_NoLoopback = 0x0000, /* Enable Loop back 14 RW */ -}; - -enum Mii_Phy_Status -{ - Mii_phy_status_speed_10 = 0x0000, - Mii_phy_status_speed_100 = 0x4000, - Mii_phy_status_speed_1000 = 0x8000, - - Mii_phy_status_full_duplex = 0x2000, - Mii_phy_status_half_duplex = 0x0000, - - Mii_phy_status_link_up = 0x0400, //lyf:rtl 8211 phy -// Mii_phy_status_link_up = 0x0100, //sw: broadcom BCM5461 PHY -}; -/* This is Status register layout. Status register is of 16 bit wide. -*/ -enum Mii_GEN_STATUS -{ - Mii_AutoNegCmplt = 0x0020, /* Autonegotiation completed 5 RW */ - Mii_Link = 0x0004, /* Link status 2 RW */ -}; - -enum Mii_Link_Status -{ - LINKDOWN = 0, - LINKUP = 1, -}; - -enum Mii_Duplex_Mode -{ - HALFDUPLEX = 1, - FULLDUPLEX = 2, -}; -enum Mii_Link_Speed -{ - SPEED10 = 1, - SPEED100 = 2, - SPEED1000 = 3, -}; - -enum Mii_Loop_Back -{ - NOLOOPBACK = 0, - LOOPBACK = 1, -}; - -/********************************************************** - * GMAC registers Map - * For Pci based system address is BARx + GmacRegisterBase - * For any other system translation is done accordingly - **********************************************************/ -enum GmacRegisters -{ - GmacConfig = 0x0000, /* Mac config Register */ - GmacFrameFilter = 0x0004, /* Mac frame filtering controls */ - GmacHashHigh = 0x0008, /* Multi-cast hash table high */ - GmacHashLow = 0x000C, /* Multi-cast hash table low */ - GmacGmiiAddr = 0x0010, /* GMII address Register(ext. Phy) */ - GmacGmiiData = 0x0014, /* GMII data Register(ext. Phy) */ - GmacFlowControl = 0x0018, /* Flow control Register */ - GmacVlan = 0x001C, /* VLAN tag Register (IEEE 802.1Q) */ - - GmacVersion = 0x0020, /* GMAC Core Version Register */ - GmacWakeupAddr = 0x0028, /* GMAC wake-up frame filter adrress reg */ - GmacPmtCtrlStatus = 0x002C, /* PMT control and status register */ - - GmacInterruptStatus = 0x0038, /* Mac Interrupt ststus register */ - GmacInterruptMask = 0x003C, /* Mac Interrupt Mask register */ - - GmacAddr0High = 0x0040, /* Mac address0 high Register */ - GmacAddr0Low = 0x0044, /* Mac address0 low Register */ - GmacAddr1High = 0x0048, /* Mac address1 high Register */ - GmacAddr1Low = 0x004C, /* Mac address1 low Register */ - GmacAddr2High = 0x0050, /* Mac address2 high Register */ - GmacAddr2Low = 0x0054, /* Mac address2 low Register */ - GmacAddr3High = 0x0058, /* Mac address3 high Register */ - GmacAddr3Low = 0x005C, /* Mac address3 low Register */ - GmacAddr4High = 0x0060, /* Mac address4 high Register */ - GmacAddr4Low = 0x0064, /* Mac address4 low Register */ - GmacAddr5High = 0x0068, /* Mac address5 high Register */ - GmacAddr5Low = 0x006C, /* Mac address5 low Register */ - GmacAddr6High = 0x0070, /* Mac address6 high Register */ - GmacAddr6Low = 0x0074, /* Mac address6 low Register */ - GmacAddr7High = 0x0078, /* Mac address7 high Register */ - GmacAddr7Low = 0x007C, /* Mac address7 low Register */ - GmacAddr8High = 0x0080, /* Mac address8 high Register */ - GmacAddr8Low = 0x0084, /* Mac address8 low Register */ - GmacAddr9High = 0x0088, /* Mac address9 high Register */ - GmacAddr9Low = 0x008C, /* Mac address9 low Register */ - GmacAddr10High = 0x0090, /* Mac address10 high Register */ - GmacAddr10Low = 0x0094, /* Mac address10 low Register */ - GmacAddr11High = 0x0098, /* Mac address11 high Register */ - GmacAddr11Low = 0x009C, /* Mac address11 low Register */ - GmacAddr12High = 0x00A0, /* Mac address12 high Register */ - GmacAddr12Low = 0x00A4, /* Mac address12 low Register */ - GmacAddr13High = 0x00A8, /* Mac address13 high Register */ - GmacAddr13Low = 0x00AC, /* Mac address13 low Register */ - GmacAddr14High = 0x00B0, /* Mac address14 high Register */ - GmacAddr14Low = 0x00B4, /* Mac address14 low Register */ - GmacAddr15High = 0x00B8, /* Mac address15 high Register */ - GmacAddr15Low = 0x00BC, /* Mac address15 low Register */ - GmacStatus = 0x00d8, /* MAC status */ - - /*Time Stamp Register Map*/ - GmacTSControl = 0x0700, /* Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ - - GmacTSSubSecIncr = 0x0704, /* 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSHigh = 0x0708, /* 32 bit seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ - GmacTSLow = 0x070C, /* 32 bit nano seconds(MS) : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSHighUpdate = 0x0710, /* 32 bit seconds(MS) to be written/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ - GmacTSLowUpdate = 0x0714, /* 32 bit nano seconds(MS) to be writeen/added/subtracted : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSAddend = 0x0718, /* Used by Software to readjust the clock frequency linearly : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSTargetTimeHigh = 0x071C, /* 32 bit seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ - GmacTSTargetTimeLow = 0x0720, /* 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ - - GmacTSHighWord = 0x0724, /* Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ -//GmacTSHighWordUpdate = 0x072C, /* Time Stamp Higher Word Update Register (Version 2 only); only lower 16 bits are valid */ - - GmacTSStatus = 0x0728, /* Time Stamp Status Register */ -}; - -/********************************************************** - * GMAC Network interface registers - * This explains the Register's Layout - - * FES is Read only by default and is enabled only when Tx - * Config Parameter is enabled for RGMII/SGMII interface - * during CoreKit Config. - - * DM is Read only with value 1'b1 in Full duplex only Config - **********************************************************/ - -/* GmacConfig = 0x0000, Mac config Register Layout */ -enum GmacConfigReg -{ - /* Bit description Bits R/W Reset value */ - GmacWatchdog = 0x00800000, - GmacWatchdogDisable = 0x00800000, /* (WD)Disable watchdog timer on Rx 23 RW */ - GmacWatchdogEnable = 0x00000000, /* Enable watchdog timer 0 */ - - GmacJabber = 0x00400000, - GmacJabberDisable = 0x00400000, /* (JD)Disable jabber timer on Tx 22 RW */ - GmacJabberEnable = 0x00000000, /* Enable jabber timer 0 */ - - GmacFrameBurst = 0x00200000, - GmacFrameBurstEnable = 0x00200000, /* (BE)Enable frame bursting during Tx 21 RW */ - GmacFrameBurstDisable = 0x00000000, /* Disable frame bursting 0 */ - - GmacJumboFrame = 0x00100000, - GmacJumboFrameEnable = 0x00100000, /* (JE)Enable jumbo frame for Tx 20 RW */ - GmacJumboFrameDisable = 0x00000000, /* Disable jumbo frame 0 */ - - GmacInterFrameGap7 = 0x000E0000, /* (IFG) Config7 - 40 bit times 19:17 RW */ - GmacInterFrameGap6 = 0x000C0000, /* (IFG) Config6 - 48 bit times */ - GmacInterFrameGap5 = 0x000A0000, /* (IFG) Config5 - 56 bit times */ - GmacInterFrameGap4 = 0x00080000, /* (IFG) Config4 - 64 bit times */ - GmacInterFrameGap3 = 0x00040000, /* (IFG) Config3 - 72 bit times */ - GmacInterFrameGap2 = 0x00020000, /* (IFG) Config2 - 80 bit times */ - GmacInterFrameGap1 = 0x00010000, /* (IFG) Config1 - 88 bit times */ - GmacInterFrameGap0 = 0x00000000, /* (IFG) Config0 - 96 bit times 000 */ - - GmacDisableCrs = 0x00010000, - GmacMiiGmii = 0x00008000, - GmacSelectMii = 0x00008000, /* (PS)Port Select-MII mode 15 RW */ - GmacSelectGmii = 0x00000000, /* GMII mode 0 */ - - GmacFESpeed100 = 0x00004000, /*(FES)Fast Ethernet speed 100Mbps 14 RW */ - GmacFESpeed10 = 0x00000000, /* 10Mbps 0 */ - - GmacRxOwn = 0x00002000, - GmacDisableRxOwn = 0x00002000, /* (DO)Disable receive own packets 13 RW */ - GmacEnableRxOwn = 0x00000000, /* Enable receive own packets 0 */ - - GmacLoopback = 0x00001000, - GmacLoopbackOn = 0x00001000, /* (LM)Loopback mode for GMII/MII 12 RW */ - GmacLoopbackOff = 0x00000000, /* Normal mode 0 */ - - GmacDuplex = 0x00000800, - GmacFullDuplex = 0x00000800, /* (DM)Full duplex mode 11 RW */ - GmacHalfDuplex = 0x00000000, /* Half duplex mode 0 */ - - GmacRxIpcOffload = 0x00000400, /* IPC checksum offload 10 RW 0 */ - - GmacRetry = 0x00000200, - GmacRetryDisable = 0x00000200, /* (DR)Disable Retry 9 RW */ - GmacRetryEnable = 0x00000000, /* Enable retransmission as per BL 0 */ - - GmacLinkUp = 0x00000100, /* (LUD)Link UP 8 RW */ - GmacLinkDown = 0x00000100, /* Link Down 0 */ - - GmacPadCrcStrip = 0x00000080, - GmacPadCrcStripEnable = 0x00000080, /* (ACS) Automatic Pad/Crc strip enable 7 RW */ - GmacPadCrcStripDisable = 0x00000000, /* Automatic Pad/Crc stripping disable 0 */ - - GmacBackoffLimit = 0x00000060, - GmacBackoffLimit3 = 0x00000060, /* (BL)Back-off limit in HD mode 6:5 RW */ - GmacBackoffLimit2 = 0x00000040, /* */ - GmacBackoffLimit1 = 0x00000020, /* */ - GmacBackoffLimit0 = 0x00000000, /* 00 */ - - GmacDeferralCheck = 0x00000010, - GmacDeferralCheckEnable = 0x00000010, /* (DC)Deferral check enable in HD mode 4 RW */ - GmacDeferralCheckDisable = 0x00000000, /* Deferral check disable 0 */ - - GmacTx = 0x00000008, - GmacTxEnable = 0x00000008, /* (TE)Transmitter enable 3 RW */ - GmacTxDisable = 0x00000000, /* Transmitter disable 0 */ - - GmacRx = 0x00000004, - GmacRxEnable = 0x00000004, /* (RE)Receiver enable 2 RW */ - GmacRxDisable = 0x00000000, /* Receiver disable 0 */ -}; - -/* GmacFrameFilter = 0x0004, Mac frame filtering controls Register Layout*/ -enum GmacFrameFilterReg -{ - GmacFilter = 0x80000000, - GmacFilterOff = 0x80000000, /* (RA)Receive all incoming packets 31 RW */ - GmacFilterOn = 0x00000000, /* Receive filtered packets only 0 */ - - GmacHashPerfectFilter = 0x00000400, /*Hash or Perfect Filter enable 10 RW 0 */ - - GmacSrcAddrFilter = 0x00000200, - GmacSrcAddrFilterEnable = 0x00000200, /* (SAF)Source Address Filter enable 9 RW */ - GmacSrcAddrFilterDisable = 0x00000000, /* 0 */ - - GmacSrcInvaAddrFilter = 0x00000100, - GmacSrcInvAddrFilterEn = 0x00000100, /* (SAIF)Inv Src Addr Filter enable 8 RW */ - GmacSrcInvAddrFilterDis = 0x00000000, /* 0 */ - - GmacPassControl = 0x000000C0, - GmacPassControl3 = 0x000000C0, /* (PCS)Forwards ctrl frms that pass AF 7:6 RW */ - GmacPassControl2 = 0x00000080, /* Forwards all control frames */ - GmacPassControl1 = 0x00000040, /* Does not pass control frames */ - GmacPassControl0 = 0x00000000, /* Does not pass control frames 00 */ - - GmacBroadcast = 0x00000020, - GmacBroadcastDisable = 0x00000020, /* (DBF)Disable Rx of broadcast frames 5 RW */ - GmacBroadcastEnable = 0x00000000, /* Enable broadcast frames 0 */ - - GmacMulticastFilter = 0x00000010, - GmacMulticastFilterOff = 0x00000010, /* (PM) Pass all multicast packets 4 RW */ - GmacMulticastFilterOn = 0x00000000, /* Pass filtered multicast packets 0 */ - - GmacDestAddrFilter = 0x00000008, - GmacDestAddrFilterInv = 0x00000008, /* (DAIF)Inverse filtering for DA 3 RW */ - GmacDestAddrFilterNor = 0x00000000, /* Normal filtering for DA 0 */ - - GmacMcastHashFilter = 0x00000004, - GmacMcastHashFilterOn = 0x00000004, /* (HMC)perfom multicast hash filtering 2 RW */ - GmacMcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ - - GmacUcastHashFilter = 0x00000002, - GmacUcastHashFilterOn = 0x00000002, /* (HUC)Unicast Hash filtering only 1 RW */ - GmacUcastHashFilterOff = 0x00000000, /* perfect filtering only 0 */ - - GmacPromiscuousMode = 0x00000001, - GmacPromiscuousModeOn = 0x00000001, /* Receive all frames 0 RW */ - GmacPromiscuousModeOff = 0x00000000, /* Receive filtered packets only 0 */ -}; - -/*GmacGmiiAddr = 0x0010, GMII address Register(ext. Phy) Layout */ -enum GmacGmiiAddrReg -{ - GmiiDevMask = 0x0000F800, /* (PA)GMII device address 15:11 RW 0x00 */ - GmiiDevShift = 11, - - GmiiRegMask = 0x000007C0, /* (GR)GMII register in selected Phy 10:6 RW 0x00 */ - GmiiRegShift = 6, - - GmiiCsrClkMask = 0x0000001C, /* CSR Clock bit Mask 4:2 */ - GmiiCsrClk5 = 0x00000014, /* (CR)CSR Clock Range 250-300 MHz 4:2 RW 000 */ - GmiiCsrClk4 = 0x00000010, /* 150-250 MHz */ - GmiiCsrClk3 = 0x0000000C, /* 35-60 MHz */ - GmiiCsrClk2 = 0x00000008, /* 20-35 MHz */ - GmiiCsrClk1 = 0x00000004, /* 100-150 MHz */ - GmiiCsrClk0 = 0x00000000, /* 60-100 MHz */ - - GmiiWrite = 0x00000002, /* (GW)Write to register 1 RW */ - GmiiRead = 0x00000000, /* Read from register 0 */ - - GmiiBusy = 0x00000001, /* (GB)GMII interface is busy 0 RW 0 */ -}; - -/* GmacGmiiData = 0x0014, GMII data Register(ext. Phy) Layout */ -enum GmacGmiiDataReg -{ - GmiiDataMask = 0x0000FFFF, /* (GD)GMII Data 15:0 RW 0x0000 */ -}; - -/*GmacFlowControl = 0x0018, Flow control Register Layout */ -enum GmacFlowControlReg -{ - GmacPauseTimeMask = 0xFFFF0000, /* (PT) PAUSE TIME field in the control frame 31:16 RW 0x0000 */ - GmacPauseTimeShift = 16, - - GmacPauseLowThresh = 0x00000030, - GmacPauseLowThresh3 = 0x00000030, /* (PLT)thresh for pause tmr 256 slot time 5:4 RW */ - GmacPauseLowThresh2 = 0x00000020, /* 144 slot time */ - GmacPauseLowThresh1 = 0x00000010, /* 28 slot time */ - GmacPauseLowThresh0 = 0x00000000, /* 4 slot time 000 */ - - GmacUnicastPauseFrame = 0x00000008, - GmacUnicastPauseFrameOn = 0x00000008, /* (UP)Detect pause frame with unicast addr. 3 RW */ - GmacUnicastPauseFrameOff = 0x00000000, /* Detect only pause frame with multicast addr. 0 */ - - GmacRxFlowControl = 0x00000004, - GmacRxFlowControlEnable = 0x00000004, /* (RFE)Enable Rx flow control 2 RW */ - GmacRxFlowControlDisable = 0x00000000, /* Disable Rx flow control 0 */ - - GmacTxFlowControl = 0x00000002, - GmacTxFlowControlEnable = 0x00000002, /* (TFE)Enable Tx flow control 1 RW */ - GmacTxFlowControlDisable = 0x00000000, /* Disable flow control 0 */ - - GmacFlowControlBackPressure= 0x00000001, - GmacSendPauseFrame = 0x00000001, /* (FCB/PBA)send pause frm/Apply back pressure 0 RW 0 */ -}; - -/* GmacInterruptStatus = 0x0038, Mac Interrupt ststus register */ -enum GmacInterruptStatusBitDefinition -{ - GmacTSIntSts = 0x00000200, /* set if int generated due to TS (Read Time Stamp Status Register to know details)*/ - GmacMmcRxChksumOffload = 0x00000080, /* set if int generated in MMC RX CHECKSUM OFFLOAD int register */ - GmacMmcTxIntSts = 0x00000040, /* set if int generated in MMC TX Int register */ - GmacMmcRxIntSts = 0x00000020, /* set if int generated in MMC RX Int register */ - GmacMmcIntSts = 0x00000010, /* set if any of the above bit [7:5] is set */ - GmacPmtIntSts = 0x00000008, /* set whenver magic pkt/wake-on-lan frame is received */ - GmacPcsAnComplete = 0x00000004, /* set when AN is complete in TBI/RTBI/SGMIII phy interface */ - GmacPcsLnkStsChange = 0x00000002, /* set if any lnk status change in TBI/RTBI/SGMII interface */ - GmacRgmiiIntSts = 0x00000001, /* set if any change in lnk status of RGMII interface */ -}; - -/* GmacInterruptMask = 0x003C, Mac Interrupt Mask register */ -enum GmacInterruptMaskBitDefinition -{ - GmacTSIntMask = 0x00000200, /* when set disables the time stamp interrupt generation */ - GmacPmtIntMask = 0x00000008, /* when set Disables the assertion of PMT interrupt */ - GmacPcsAnIntMask = 0x00000004, /* When set disables the assertion of PCS AN complete interrupt */ - GmacPcsLnkStsIntMask = 0x00000002, /* when set disables the assertion of PCS lnk status change interrupt */ - GmacRgmiiIntMask = 0x00000001, /* when set disables the assertion of RGMII int */ -}; - -/********************************************************** - * GMAC DMA registers - * For Pci based system address is BARx + GmaDmaBase - * For any other system translation is done accordingly - **********************************************************/ -enum DmaRegisters -{ - DmaBusMode = 0x0000, /* CSR0 - Bus Mode Register */ - DmaTxPollDemand = 0x0004, /* CSR1 - Transmit Poll Demand Register */ - DmaRxPollDemand = 0x0008, /* CSR2 - Receive Poll Demand Register */ - DmaRxBaseAddr = 0x000C, /* CSR3 - Receive Descriptor list base address */ - DmaTxBaseAddr = 0x0010, /* CSR4 - Transmit Descriptor list base address */ - DmaStatus = 0x0014, /* CSR5 - Dma status Register */ - DmaControl = 0x0018, /* CSR6 - Dma Operation Mode Register */ - DmaInterrupt = 0x001C, /* CSR7 - Interrupt enable */ - DmaMissedFr = 0x0020, /* CSR8 - Missed Frame & Buffer overflow Counter */ - DmaTxCurrDesc = 0x0048, /* - Current host Tx Desc Register */ - DmaRxCurrDesc = 0x004C, /* - Current host Rx Desc Register */ - DmaTxCurrAddr = 0x0050, /* CSR20 - Current host transmit buffer address */ - DmaRxCurrAddr = 0x0054, /* CSR21 - Current host receive buffer address */ -}; - -/********************************************************** - * DMA Engine registers Layout - **********************************************************/ - -/*DmaBusMode = 0x0000, CSR0 - Bus Mode */ -enum DmaBusModeReg -{ /* Bit description Bits R/W Reset value */ - DmaFixedBurstEnable = 0x00010000, /* (FB)Fixed Burst SINGLE, INCR4, INCR8 or INCR16 16 RW */ - DmaFixedBurstDisable = 0x00000000, /* SINGLE, INCR 0 */ - - DmaTxPriorityRatio11 = 0x00000000, /* (PR)TX:RX DMA priority ratio 1:1 15:14 RW 00 */ - DmaTxPriorityRatio21 = 0x00004000, /* (PR)TX:RX DMA priority ratio 2:1 */ - DmaTxPriorityRatio31 = 0x00008000, /* (PR)TX:RX DMA priority ratio 3:1 */ - DmaTxPriorityRatio41 = 0x0000C000, /* (PR)TX:RX DMA priority ratio 4:1 */ - - DmaBurstLengthx8 = 0x01000000, /* When set mutiplies the PBL by 8 24 RW 0 */ - - DmaBurstLength256 = 0x01002000, /*(DmaBurstLengthx8 | DmaBurstLength32) = 256 [24]:13:8 */ - DmaBurstLength128 = 0x01001000, /*(DmaBurstLengthx8 | DmaBurstLength16) = 128 [24]:13:8 */ - DmaBurstLength64 = 0x01000800, /*(DmaBurstLengthx8 | DmaBurstLength8) = 64 [24]:13:8 */ - DmaBurstLength32 = 0x00002000, /* (PBL) programmable Dma burst length = 32 13:8 RW */ - DmaBurstLength16 = 0x00001000, /* Dma burst length = 16 */ - DmaBurstLength8 = 0x00000800, /* Dma burst length = 8 */ - DmaBurstLength4 = 0x00000400, /* Dma burst length = 4 */ - DmaBurstLength2 = 0x00000200, /* Dma burst length = 2 */ - DmaBurstLength1 = 0x00000100, /* Dma burst length = 1 */ - DmaBurstLength0 = 0x00000000, /* Dma burst length = 0 0x00 */ - - DmaDescriptor8Words = 0x00000080, /* Enh Descriptor works 1=> 8 word descriptor 7 0 */ - DmaDescriptor4Words = 0x00000000, /* Enh Descriptor works 0=> 4 word descriptor 7 0 */ - - DmaDescriptorSkip16 = 0x00000040, /* (DSL)Descriptor skip length (no.of dwords) 6:2 RW */ - DmaDescriptorSkip8 = 0x00000020, /* between two unchained descriptors */ - DmaDescriptorSkip4 = 0x00000010, /* */ - DmaDescriptorSkip2 = 0x00000008, /* */ - DmaDescriptorSkip1 = 0x00000004, /* */ - DmaDescriptorSkip0 = 0x00000000, /* 0x00 */ - - DmaArbitRr = 0x00000000, /* (DA) DMA RR arbitration 1 RW 0 */ - DmaArbitPr = 0x00000002, /* Rx has priority over Tx */ - - DmaResetOn = 0x00000001, /* (SWR)Software Reset DMA engine 0 RW */ - DmaResetOff = 0x00000000, /* 0 */ -}; - -/*DmaStatus = 0x0014, CSR5 - Dma status Register */ -enum DmaStatusReg -{ - /*Bit 28 27 and 26 indicate whether the interrupt due to PMT GMACMMC or GMAC LINE Remaining bits are DMA interrupts*/ - GmacPmtIntr = 0x10000000, /* (GPI)Gmac subsystem interrupt 28 RO 0 */ - GmacMmcIntr = 0x08000000, /* (GMI)Gmac MMC subsystem interrupt 27 RO 0 */ - GmacLineIntfIntr = 0x04000000, /* Line interface interrupt 26 RO 0 */ - - DmaErrorBit2 = 0x02000000, /* (EB)Error bits 0-data buffer, 1-desc. access 25 RO 0 */ - DmaErrorBit1 = 0x01000000, /* (EB)Error bits 0-write trnsf, 1-read transfr 24 RO 0 */ - DmaErrorBit0 = 0x00800000, /* (EB)Error bits 0-Rx DMA, 1-Tx DMA 23 RO 0 */ - - DmaTxState = 0x00700000, /* (TS)Transmit process state 22:20 RO */ - DmaTxStopped = 0x00000000, /* Stopped - Reset or Stop Tx Command issued 000 */ - DmaTxFetching = 0x00100000, /* Running - fetching the Tx descriptor */ - DmaTxWaiting = 0x00200000, /* Running - waiting for status */ - DmaTxReading = 0x00300000, /* Running - reading the data from host memory */ - DmaTxSuspended = 0x00600000, /* Suspended - Tx Descriptor unavailabe */ - DmaTxClosing = 0x00700000, /* Running - closing Rx descriptor */ - - DmaRxState = 0x000E0000, /* (RS)Receive process state 19:17 RO */ - DmaRxStopped = 0x00000000, /* Stopped - Reset or Stop Rx Command issued 000 */ - DmaRxFetching = 0x00020000, /* Running - fetching the Rx descriptor */ - DmaRxWaiting = 0x00060000, /* Running - waiting for packet */ - DmaRxSuspended = 0x00080000, /* Suspended - Rx Descriptor unavailable */ - DmaRxClosing = 0x000A0000, /* Running - closing descriptor */ - DmaRxQueuing = 0x000E0000, /* Running - queuing the recieve frame into host memory */ - - DmaIntNormal = 0x00010000, /* (NIS)Normal interrupt summary 16 RW 0 */ - DmaIntAbnormal = 0x00008000, /* (AIS)Abnormal interrupt summary 15 RW 0 */ - - DmaIntEarlyRx = 0x00004000, /* Early receive interrupt (Normal) RW 0 */ - DmaIntBusError = 0x00002000, /* Fatal bus error (Abnormal) RW 0 */ - DmaIntEarlyTx = 0x00000400, /* Early transmit interrupt (Abnormal) RW 0 */ - DmaIntRxWdogTO = 0x00000200, /* Receive Watchdog Timeout (Abnormal) RW 0 */ - DmaIntRxStopped = 0x00000100, /* Receive process stopped (Abnormal) RW 0 */ - DmaIntRxNoBuffer = 0x00000080, /* Receive buffer unavailable (Abnormal) RW 0 */ - DmaIntRxCompleted = 0x00000040, /* Completion of frame reception (Normal) RW 0 */ - DmaIntTxUnderflow = 0x00000020, /* Transmit underflow (Abnormal) RW 0 */ - DmaIntRcvOverflow = 0x00000010, /* Receive Buffer overflow interrupt RW 0 */ - DmaIntTxJabberTO = 0x00000008, /* Transmit Jabber Timeout (Abnormal) RW 0 */ - DmaIntTxNoBuffer = 0x00000004, /* Transmit buffer unavailable (Normal) RW 0 */ - DmaIntTxStopped = 0x00000002, /* Transmit process stopped (Abnormal) RW 0 */ - DmaIntTxCompleted = 0x00000001, /* Transmit completed (Normal) RW 0 */ -}; - -/*DmaControl = 0x0018, CSR6 - Dma Operation Mode Register */ -enum DmaControlReg -{ - DmaDisableDropTcpCs = 0x04000000, /* (DT) Dis. drop. of tcp/ip CS error frames 26 RW 0 */ - - DmaStoreAndForward = 0x02200000, /* (SF)Store and forward 21 RW 0 */ - DmaFlushTxFifo = 0x00100000, /* (FTF)Tx FIFO controller is reset to default 20 RW 0 */ - - DmaTxThreshCtrl = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16:14 RW */ - DmaTxThreshCtrl16 = 0x0001C000, /* (TTC)Controls thre Threh of MTL tx Fifo 16 16:14 RW */ - DmaTxThreshCtrl24 = 0x00018000, /* (TTC)Controls thre Threh of MTL tx Fifo 24 16:14 RW */ - DmaTxThreshCtrl32 = 0x00014000, /* (TTC)Controls thre Threh of MTL tx Fifo 32 16:14 RW */ - DmaTxThreshCtrl40 = 0x00010000, /* (TTC)Controls thre Threh of MTL tx Fifo 40 16:14 RW */ - DmaTxThreshCtrl256 = 0x0000c000, /* (TTC)Controls thre Threh of MTL tx Fifo 256 16:14 RW */ - DmaTxThreshCtrl192 = 0x00008000, /* (TTC)Controls thre Threh of MTL tx Fifo 192 16:14 RW */ - DmaTxThreshCtrl128 = 0x00004000, /* (TTC)Controls thre Threh of MTL tx Fifo 128 16:14 RW */ - DmaTxThreshCtrl64 = 0x00000000, /* (TTC)Controls thre Threh of MTL tx Fifo 64 16:14 RW 000 */ - - DmaTxStart = 0x00002000, /* (ST)Start/Stop transmission 13 RW 0 */ - - DmaRxFlowCtrlDeact = 0x00401800, /* (RFD)Rx flow control deact. threhold [22]:12:11 RW */ - DmaRxFlowCtrlDeact1K = 0x00000000, /* (RFD)Rx flow control deact. threhold (1kbytes) [22]:12:11 RW 00 */ - DmaRxFlowCtrlDeact2K = 0x00000800, /* (RFD)Rx flow control deact. threhold (2kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact3K = 0x00001000, /* (RFD)Rx flow control deact. threhold (3kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact4K = 0x00001800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact5K = 0x00400000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact6K = 0x00400800, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - DmaRxFlowCtrlDeact7K = 0x00401000, /* (RFD)Rx flow control deact. threhold (4kbytes) [22]:12:11 RW */ - - DmaRxFlowCtrlAct = 0x00800600, /* (RFA)Rx flow control Act. threhold [23]:10:09 RW */ - DmaRxFlowCtrlAct1K = 0x00000000, /* (RFA)Rx flow control Act. threhold (1kbytes) [23]:10:09 RW 00 */ - DmaRxFlowCtrlAct2K = 0x00000200, /* (RFA)Rx flow control Act. threhold (2kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct3K = 0x00000400, /* (RFA)Rx flow control Act. threhold (3kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct4K = 0x00000600, /* (RFA)Rx flow control Act. threhold (4kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct5K = 0x00800000, /* (RFA)Rx flow control Act. threhold (5kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct6K = 0x00800200, /* (RFA)Rx flow control Act. threhold (6kbytes) [23]:10:09 RW */ - DmaRxFlowCtrlAct7K = 0x00800400, /* (RFA)Rx flow control Act. threhold (7kbytes) [23]:10:09 RW */ - - DmaRxThreshCtrl = 0x00000018, /* (RTC)Controls thre Threh of MTL rx Fifo 4:3 RW */ - DmaRxThreshCtrl64 = 0x00000000, /* (RTC)Controls thre Threh of MTL tx Fifo 64 4:3 RW */ - DmaRxThreshCtrl32 = 0x00000008, /* (RTC)Controls thre Threh of MTL tx Fifo 32 4:3 RW */ - DmaRxThreshCtrl96 = 0x00000010, /* (RTC)Controls thre Threh of MTL tx Fifo 96 4:3 RW */ - DmaRxThreshCtrl128 = 0x00000018, /* (RTC)Controls thre Threh of MTL tx Fifo 128 4:3 RW */ - - DmaEnHwFlowCtrl = 0x00000100, /* (EFC)Enable HW flow control 8 RW */ - DmaDisHwFlowCtrl = 0x00000000, /* Disable HW flow control 0 */ - - DmaFwdErrorFrames = 0x00000080, /* (FEF)Forward error frames 7 RW 0 */ - DmaFwdUnderSzFrames = 0x00000040, /* (FUF)Forward undersize frames 6 RW 0 */ - DmaTxSecondFrame = 0x00000004, /* (OSF)Operate on second frame 4 RW 0 */ - DmaRxStart = 0x00000002, /* (SR)Start/Stop reception 1 RW 0 */ -}; - - -/*DmaInterrupt = 0x001C, CSR7 - Interrupt enable Register Layout */ -enum DmaInterruptReg -{ - DmaIeNormal = DmaIntNormal , /* Normal interrupt enable RW 0 */ - DmaIeAbnormal = DmaIntAbnormal , /* Abnormal interrupt enable RW 0 */ - - DmaIeEarlyRx = DmaIntEarlyRx , /* Early receive interrupt enable RW 0 */ - DmaIeBusError = DmaIntBusError , /* Fatal bus error enable RW 0 */ - DmaIeEarlyTx = DmaIntEarlyTx , /* Early transmit interrupt enable RW 0 */ - DmaIeRxWdogTO = DmaIntRxWdogTO , /* Receive Watchdog Timeout enable RW 0 */ - DmaIeRxStopped = DmaIntRxStopped , /* Receive process stopped enable RW 0 */ - DmaIeRxNoBuffer = DmaIntRxNoBuffer , /* Receive buffer unavailable enable RW 0 */ - DmaIeRxCompleted = DmaIntRxCompleted, /* Completion of frame reception enable RW 0 */ - DmaIeTxUnderflow = DmaIntTxUnderflow, /* Transmit underflow enable RW 0 */ - - DmaIeRxOverflow = DmaIntRcvOverflow, /* Receive Buffer overflow interrupt RW 0 */ - DmaIeTxJabberTO = DmaIntTxJabberTO , /* Transmit Jabber Timeout enable RW 0 */ - DmaIeTxNoBuffer = DmaIntTxNoBuffer , /* Transmit buffer unavailable enable RW 0 */ - DmaIeTxStopped = DmaIntTxStopped , /* Transmit process stopped enable RW 0 */ - DmaIeTxCompleted = DmaIntTxCompleted, /* Transmit completed enable RW 0 */ -}; - - - -/********************************************************** - * DMA Engine descriptors - **********************************************************/ -#ifdef ENH_DESC -/* -**********Enhanced Descritpor structure to support 8K buffer per buffer **************************** - -DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address -DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -Similarly -DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address -DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -------------------------------------------------------------------------- - RDES0 |OWN (31)| Status | - -------------------------------------------------------------------------- - RDES1 | Ctrl | Res | Byte Count Buffer 2 | Ctrl | Res | Byte Count Buffer 1 | - -------------------------------------------------------------------------- - RDES2 | Buffer 1 Address | - -------------------------------------------------------------------------- - RDES3 | Buffer 2 Address / Next Descriptor Address | - -------------------------------------------------------------------------- - - -------------------------------------------------------------------------- - TDES0 |OWN (31)| Ctrl | Res | Ctrl | Res | Status | - -------------------------------------------------------------------------- - TDES1 | Res | Byte Count Buffer 2 | Res | Byte Count Buffer 1 | - -------------------------------------------------------------------------- - TDES2 | Buffer 1 Address | - -------------------------------------------------------------------------- - TDES3 | Buffer 2 Address / Next Descriptor Address | - -------------------------------------------------------------------------- - -*/ - -enum DmaDescriptorStatus /* status word of DMA descriptor */ -{ - DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ - - DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ - - DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ - DescFrameLengthShift = 16, - - DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ - /* DE || OE || IPC || LC || RWT || RE || CE */ - DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ - DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ - DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ - DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ - DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ - DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ - DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ - DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ - DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ - DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ - DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ - DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ - DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ -// DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ - - DescRxEXTsts = 0x00000001, /* Extended Status Available (RDES4) 0 */ - - DescTxIntEnable = 0x40000000, /* (IC)Tx - interrupt on completion 30 */ - DescTxLast = 0x20000000, /* (LS)Tx - Last segment of the frame 29 */ - DescTxFirst = 0x10000000, /* (FS)Tx - First segment of the frame 28 */ - DescTxDisableCrc = 0x08000000, /* (DC)Tx - Add CRC disabled (first segment only) 27 */ - DescTxDisablePadd = 0x04000000, /* (DP)disable padding, added by - reyaz 26 */ - - DescTxCisMask = 0x00c00000, /* Tx checksum offloading control mask 23:22 */ - DescTxCisBypass = 0x00000000, /* Checksum bypass */ - DescTxCisIpv4HdrCs = 0x00400000, /* IPv4 header checksum */ - DescTxCisTcpOnlyCs = 0x00800000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ - DescTxCisTcpPseudoCs = 0x00c00000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ - - TxDescEndOfRing = 0x00200000, /* (TER)End of descriptors ring 21 */ - TxDescChain = 0x00100000, /* (TCH)Second buffer address is chain address 20 */ - - DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ - DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ - DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - - DescRxTSavail = 0x00000080, /* Time stamp available 7 */ - DescRxFrameType = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - - DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ - DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ - DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ - DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ - DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ - DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ - DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ - DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ - DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ - - DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ - DescTxCollShift = 3, - - DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ - DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ - DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ - /* - This explains the RDES1/TDES1 bits layout - -------------------------------------------------------------------- - RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | - -------------------------------------------------------------------- - */ -// DmaDescriptorLength length word of DMA descriptor - RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ - RxDescEndOfRing = 0x00008000, /* (TER)End of descriptors ring 15 */ - RxDescChain = 0x00004000, /* (TCH)Second buffer address is chain address 14 */ - - DescSize2Mask = 0x1FFF0000, /* (TBS2) Buffer 2 size 28:16 */ - DescSize2Shift = 16, - DescSize1Mask = 0x00001FFF, /* (TBS1) Buffer 1 size 12:0 */ - DescSize1Shift = 0, - /* - This explains the RDES4 Extended Status bits layout - -------------------------------------------------------------------- - RDES4 | Extended Status | - -------------------------------------------------------------------- - */ - DescRxPtpAvail = 0x00004000, /* PTP snapshot available 14 */ - DescRxPtpVer = 0x00002000, /* When set indicates IEEE1584 Version 2 (else Ver1) 13 */ - DescRxPtpFrameType = 0x00001000, /* PTP frame type Indicates PTP sent over ethernet 12 */ - DescRxPtpMessageType = 0x00000F00, /* Message Type 11:8 */ - DescRxPtpNo = 0x00000000, /* 0000 => No PTP message received */ - DescRxPtpSync = 0x00000100, /* 0001 => Sync (all clock types) received */ - DescRxPtpFollowUp = 0x00000200, /* 0010 => Follow_Up (all clock types) received */ - DescRxPtpDelayReq = 0x00000300, /* 0011 => Delay_Req (all clock types) received */ - DescRxPtpDelayResp = 0x00000400, /* 0100 => Delay_Resp (all clock types) received */ - DescRxPtpPdelayReq = 0x00000500, /* 0101 => Pdelay_Req (in P to P tras clk) or Announce in Ord and Bound clk */ - DescRxPtpPdelayResp = 0x00000600, /* 0110 => Pdealy_Resp(in P to P trans clk) or Management in Ord and Bound clk */ - DescRxPtpPdelayRespFP = 0x00000700, /* 0111 => Pdealy_Resp_Follow_Up (in P to P trans clk) or Signaling in Ord and Bound clk */ - DescRxPtpIPV6 = 0x00000080, /* Received Packet is in IPV6 Packet 7 */ - DescRxPtpIPV4 = 0x00000040, /* Received Packet is in IPV4 Packet 6 */ - - DescRxChkSumBypass = 0x00000020, /* When set indicates checksum offload engine 5 - is bypassed */ - DescRxIpPayloadError = 0x00000010, /* When set indicates 16bit IP payload CS is in error 4 */ - DescRxIpHeaderError = 0x00000008, /* When set indicates 16bit IPV4 header CS is in 3 - error or IP datagram version is not consistent - with Ethernet type value */ - DescRxIpPayloadType = 0x00000007, /* Indicate the type of payload encapsulated 2:0 - in IPdatagram processed by COE (Rx) */ - DescRxIpPayloadUnknown= 0x00000000, /* Unknown or didnot process IP payload */ - DescRxIpPayloadUDP = 0x00000001, /* UDP */ - DescRxIpPayloadTCP = 0x00000002, /* TCP */ - DescRxIpPayloadICMP = 0x00000003, /* ICMP */ - -}; - -#else -/* - -********** Default Descritpor structure **************************** -DmaRxBaseAddr = 0x000C, CSR3 - Receive Descriptor list base address -DmaRxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -Similarly -DmaTxBaseAddr = 0x0010, CSR4 - Transmit Descriptor list base address -DmaTxBaseAddr is the pointer to the first Rx Descriptors. the Descriptor format in Little endian with a -32 bit Data bus is as shown below - -------------------------------------------------------------------- - RDES0/TDES0 |OWN (31)| Status | - -------------------------------------------------------------------- - RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | - -------------------------------------------------------------------- - RDES2/TDES2 | Buffer 1 Address | - -------------------------------------------------------------------- - RDES3/TDES3 | Buffer 2 Address / Next Descriptor Address | - -------------------------------------------------------------------- -*/ -enum DmaDescriptorStatus /* status word of DMA descriptor */ -{ - DescOwnByDma = 0x80000000, /* (OWN)Descriptor is owned by DMA engine 31 RW */ - - DescDAFilterFail = 0x40000000, /* (AFM)Rx - DA Filter Fail for the rx frame 30 */ - - DescFrameLengthMask = 0x3FFF0000, /* (FL)Receive descriptor frame length 29:16 */ - DescFrameLengthShift = 16, - - DescError = 0x00008000, /* (ES)Error summary bit - OR of the follo. bits: 15 */ - /* DE || OE || IPC || LC || RWT || RE || CE */ - DescRxTruncated = 0x00004000, /* (DE)Rx - no more descriptors for receive frame 14 */ - DescSAFilterFail = 0x00002000, /* (SAF)Rx - SA Filter Fail for the received frame 13 */ - DescRxLengthError = 0x00001000, /* (LE)Rx - frm size not matching with len field 12 */ - DescRxDamaged = 0x00000800, /* (OE)Rx - frm was damaged due to buffer overflow 11 */ - DescRxVLANTag = 0x00000400, /* (VLAN)Rx - received frame is a VLAN frame 10 */ - DescRxFirst = 0x00000200, /* (FS)Rx - first descriptor of the frame 9 */ - DescRxLast = 0x00000100, /* (LS)Rx - last descriptor of the frame 8 */ - DescRxLongFrame = 0x00000080, /* (Giant Frame)Rx - frame is longer than 1518/1522 7 */ - DescRxCollision = 0x00000040, /* (LC)Rx - late collision occurred during reception 6 */ - DescRxFrameEther = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - DescRxWatchdog = 0x00000010, /* (RWT)Rx - watchdog timer expired during reception 4 */ - DescRxMiiError = 0x00000008, /* (RE)Rx - error reported by MII interface 3 */ - DescRxDribbling = 0x00000004, /* (DE)Rx - frame contains non int multiple of 8 bits 2 */ - DescRxCrc = 0x00000002, /* (CE)Rx - CRC error 1 */ - DescRxMacMatch = 0x00000001, /* (RX MAC Address) Rx mac address reg(1 to 15)match 0 */ - -//Rx Descriptor Checksum Offload engine (type 2) encoding -//DescRxPayChkError = 0x00000001, /* () Rx - Rx Payload Checksum Error 0 */ -//DescRxIpv4ChkError = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ - - DescRxChkBit0 = 0x00000001, /*() Rx - Rx Payload Checksum Error 0 */ - DescRxChkBit7 = 0x00000080, /* (IPC CS ERROR)Rx - Ipv4 header checksum error 7 */ - DescRxChkBit5 = 0x00000020, /* (FT)Rx - Frame type - Ethernet, otherwise 802.3 5 */ - - DescTxIpv4ChkError = 0x00010000, /* (IHE) Tx Ip header error 16 */ - DescTxTimeout = 0x00004000, /* (JT)Tx - Transmit jabber timeout 14 */ - DescTxFrameFlushed = 0x00002000, /* (FF)Tx - DMA/MTL flushed the frame due to SW flush 13 */ - DescTxPayChkError = 0x00001000, /* (PCE) Tx Payload checksum Error 12 */ - DescTxLostCarrier = 0x00000800, /* (LC)Tx - carrier lost during tramsmission 11 */ - DescTxNoCarrier = 0x00000400, /* (NC)Tx - no carrier signal from the tranceiver 10 */ - DescTxLateCollision = 0x00000200, /* (LC)Tx - transmission aborted due to collision 9 */ - DescTxExcCollisions = 0x00000100, /* (EC)Tx - transmission aborted after 16 collisions 8 */ - DescTxVLANFrame = 0x00000080, /* (VF)Tx - VLAN-type frame 7 */ - - DescTxCollMask = 0x00000078, /* (CC)Tx - Collision count 6:3 */ - DescTxCollShift = 3, - - DescTxExcDeferral = 0x00000004, /* (ED)Tx - excessive deferral 2 */ - DescTxUnderflow = 0x00000002, /* (UF)Tx - late data arrival from the memory 1 */ - DescTxDeferred = 0x00000001, /* (DB)Tx - frame transmision deferred 0 */ - - /* - This explains the RDES1/TDES1 bits layout - -------------------------------------------------------------------- - RDES1/TDES1 | Control Bits | Byte Count Buffer 2 | Byte Count Buffer 1 | - -------------------------------------------------------------------- - - */ -//DmaDescriptorLength length word of DMA descriptor - DescTxIntEnable = 0x80000000, /* (IC)Tx - interrupt on completion 31 */ - DescTxLast = 0x40000000, /* (LS)Tx - Last segment of the frame 30 */ - DescTxFirst = 0x20000000, /* (FS)Tx - First segment of the frame 29 */ - DescTxDisableCrc = 0x04000000, /* (DC)Tx - Add CRC disabled (first segment only) 26 */ - - RxDisIntCompl = 0x80000000, /* (Disable Rx int on completion) 31 */ - RxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ - RxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ - - DescTxDisablePadd = 0x00800000, /* (DP)disable padding, added by - reyaz 23 */ - - TxDescEndOfRing = 0x02000000, /* (TER)End of descriptors ring */ - TxDescChain = 0x01000000, /* (TCH)Second buffer address is chain address 24 */ - - DescSize2Mask = 0x003FF800, /* (TBS2) Buffer 2 size 21:11 */ - DescSize2Shift = 11, - DescSize1Mask = 0x000007FF, /* (TBS1) Buffer 1 size 10:0 */ - DescSize1Shift = 0, - - DescTxCisMask = 0x18000000, /* Tx checksum offloading control mask 28:27 */ - DescTxCisBypass = 0x00000000, /* Checksum bypass */ - DescTxCisIpv4HdrCs = 0x08000000, /* IPv4 header checksum */ - DescTxCisTcpOnlyCs = 0x10000000, /* TCP/UDP/ICMP checksum. Pseudo header checksum is assumed to be present */ - DescTxCisTcpPseudoCs = 0x18000000, /* TCP/UDP/ICMP checksum fully in hardware including pseudo header */ -}; -#endif - -// Rx Descriptor COE type2 encoding -enum RxDescCOEEncode -{ - RxLenLT600 = 0, /* Bit(5:7:0)=>0 IEEE 802.3 type frame Length field is Lessthan 0x0600 */ - RxIpHdrPayLoadChkBypass = 1, /* Bit(5:7:0)=>1 Payload & Ip header checksum bypassed (unsuppported payload) */ - RxIpHdrPayLoadRes = 2, /* Bit(5:7:0)=>2 Reserved */ - RxChkBypass = 3, /* Bit(5:7:0)=>3 Neither IPv4 nor IPV6. So checksum bypassed */ - RxNoChkError = 4, /* Bit(5:7:0)=>4 No IPv4/IPv6 Checksum error detected */ - RxPayLoadChkError = 5, /* Bit(5:7:0)=>5 Payload checksum error detected for Ipv4/Ipv6 frames */ - RxIpHdrChkError = 6, /* Bit(5:7:0)=>6 Ip header checksum error detected for Ipv4 frames */ - RxIpHdrPayLoadChkError = 7, /* Bit(5:7:0)=>7 Payload & Ip header checksum error detected for Ipv4/Ipv6 frames */ -}; - -/********************************************************** - * DMA engine interrupt handling functions - **********************************************************/ - - enum synopGMACDmaIntEnum /* Intrerrupt types */ -{ - synopGMACDmaRxNormal = 0x01, /* normal receiver interrupt */ - synopGMACDmaRxAbnormal = 0x02, /* abnormal receiver interrupt */ - synopGMACDmaRxStopped = 0x04, /* receiver stopped */ - synopGMACDmaTxNormal = 0x08, /* normal transmitter interrupt */ - synopGMACDmaTxAbnormal = 0x10, /* abnormal transmitter interrupt */ - synopGMACDmaTxStopped = 0x20, /* transmitter stopped */ - synopGMACDmaError = 0x80, /* Dma engine error */ -}; - - -/********************************************************** - * Initial register values - **********************************************************/ -enum InitialRegisters -{ - /* Full-duplex mode with perfect filter on */ - GmacConfigInitFdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectGmii | GmacEnableRxOwn | GmacLoopbackOff - | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Full-duplex mode with perfect filter on */ - GmacConfigInitFdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectMii | GmacEnableRxOwn | GmacLoopbackOff - | GmacFullDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Full-duplex mode */ - // CHANGED: Pass control config, dest addr filter normal, added source address filter, multicast & unicast - // Hash filter. - /* = GmacFilterOff | GmacPassControlOff | GmacBroadcastEnable */ - GmacFrameFilterInitFdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable - | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff - | GmacPromiscuousModeOff | GmacUcastHashFilterOff, - - /* Full-duplex mode */ - GmacFlowControlInitFdx = GmacUnicastPauseFrameOff | GmacRxFlowControlEnable | GmacTxFlowControlEnable, - - /* Full-duplex mode */ - GmacGmiiAddrInitFdx = GmiiCsrClk2, - - - /* Half-duplex mode with perfect filter on */ - // CHANGED: Removed Endian configuration, added single bit config for PAD/CRC strip, - /*| GmacSelectMii | GmacLittleEndian | GmacDisableRxOwn | GmacLoopbackOff*/ - GmacConfigInitHdx1000 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectGmii | GmacDisableRxOwn | GmacLoopbackOff - | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Half-duplex mode with perfect filter on */ - GmacConfigInitHdx110 = GmacWatchdogEnable | GmacJabberEnable | GmacFrameBurstEnable | GmacJumboFrameDisable - | GmacSelectMii | GmacDisableRxOwn | GmacLoopbackOff - | GmacHalfDuplex | GmacRetryEnable | GmacPadCrcStripDisable - | GmacBackoffLimit0 | GmacDeferralCheckDisable | GmacTxEnable | GmacRxEnable, - - /* Half-duplex mode */ - GmacFrameFilterInitHdx = GmacFilterOn | GmacPassControl0 | GmacBroadcastEnable | GmacSrcAddrFilterDisable - | GmacMulticastFilterOn | GmacDestAddrFilterNor | GmacMcastHashFilterOff - | GmacUcastHashFilterOff| GmacPromiscuousModeOff, - - /* Half-duplex mode */ - GmacFlowControlInitHdx = GmacUnicastPauseFrameOff | GmacRxFlowControlDisable | GmacTxFlowControlDisable, - - /* Half-duplex mode */ - GmacGmiiAddrInitHdx = GmiiCsrClk2, - - /********************************************** - *DMA configurations - **********************************************/ - - DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip1 | DmaResetOff, -// DmaBusModeInit = DmaFixedBurstEnable | DmaBurstLength8 | DmaDescriptorSkip4 | DmaResetOff, - - /* 1000 Mb/s mode */ - DmaControlInit1000 = DmaStoreAndForward,// | DmaTxSecondFrame , - - /* 100 Mb/s mode */ - DmaControlInit100 = DmaStoreAndForward, - - /* 10 Mb/s mode */ - DmaControlInit10 = DmaStoreAndForward, - - /* Interrupt groups */ - DmaIntErrorMask = DmaIntBusError, /* Error */ - DmaIntRxAbnMask = DmaIntRxNoBuffer, /* receiver abnormal interrupt */ - DmaIntRxNormMask = DmaIntRxCompleted, /* receiver normal interrupt */ - DmaIntRxStoppedMask = DmaIntRxStopped, /* receiver stopped */ - DmaIntTxAbnMask = DmaIntTxUnderflow, /* transmitter abnormal interrupt */ - DmaIntTxNormMask = DmaIntTxCompleted, /* transmitter normal interrupt */ - DmaIntTxStoppedMask = DmaIntTxStopped, /* transmitter stopped */ - - DmaIntEnable = DmaIeNormal | DmaIeAbnormal | DmaIntErrorMask -//DmaIntEnable = DmaIeNormal | DmaIntErrorMask - | DmaIntRxAbnMask | DmaIntRxNormMask | DmaIntRxStoppedMask -// | DmaIntRxNormMask | DmaIntRxStoppedMask - | DmaIntTxAbnMask | DmaIntTxNormMask | DmaIntTxStoppedMask, - DmaIntDisable = 0, -}; - - -/********************************************************** - * Mac Management Counters (MMC) - **********************************************************/ - -enum MMC_ENABLE -{ - GmacMmcCntrl = 0x0100, /* mmc control for operating mode of MMC */ - GmacMmcIntrRx = 0x0104, /* maintains interrupts generated by rx counters */ - GmacMmcIntrTx = 0x0108, /* maintains interrupts generated by tx counters */ - GmacMmcIntrMaskRx = 0x010C, /* mask for interrupts generated from rx counters */ - GmacMmcIntrMaskTx = 0x0110, /* mask for interrupts generated from tx counters */ -}; -enum MMC_TX -{ - GmacMmcTxOctetCountGb = 0x0114, /*Bytes Tx excl. of preamble and retried bytes (Good or Bad) */ - GmacMmcTxFrameCountGb = 0x0118, /*Frames Tx excl. of retried frames (Good or Bad) */ - GmacMmcTxBcFramesG = 0x011C, /*Broadcast Frames Tx (Good) */ - GmacMmcTxMcFramesG = 0x0120, /*Multicast Frames Tx (Good) */ - - GmacMmcTx64OctetsGb = 0x0124, /*Tx with len 64 bytes excl. of pre and retried (Good or Bad) */ - GmacMmcTx65To127OctetsGb = 0x0128, /*Tx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ - GmacMmcTx128To255OctetsGb = 0x012C, /*Tx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ - GmacMmcTx256To511OctetsGb = 0x0130, /*Tx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ - GmacMmcTx512To1023OctetsGb = 0x0134, /*Tx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ - GmacMmcTx1024ToMaxOctetsGb = 0x0138, /*Tx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ - - GmacMmcTxUcFramesGb = 0x013C, /*Unicast Frames Tx (Good or Bad) */ - GmacMmcTxMcFramesGb = 0x0140, /*Multicast Frames Tx (Good and Bad) */ - GmacMmcTxBcFramesGb = 0x0144, /*Broadcast Frames Tx (Good and Bad) */ - GmacMmcTxUnderFlowError = 0x0148, /*Frames aborted due to Underflow error */ - GmacMmcTxSingleColG = 0x014C, /*Successfully Tx Frames after singel collision in Half duplex mode */ - GmacMmcTxMultiColG = 0x0150, /*Successfully Tx Frames after more than singel collision in Half duplex mode */ - GmacMmcTxDeferred = 0x0154, /*Successfully Tx Frames after a deferral in Half duplex mode */ - GmacMmcTxLateCol = 0x0158, /*Frames aborted due to late collision error */ - GmacMmcTxExessCol = 0x015C, /*Frames aborted due to excessive (16) collision errors */ - GmacMmcTxCarrierError = 0x0160, /*Frames aborted due to carrier sense error (No carrier or Loss of carrier) */ - GmacMmcTxOctetCountG = 0x0164, /*Bytes Tx excl. of preamble and retried bytes (Good) */ - GmacMmcTxFrameCountG = 0x0168, /*Frames Tx (Good) */ - GmacMmcTxExessDef = 0x016C, /*Frames aborted due to excessive deferral errors (deferred for more than 2 max-sized frame times)*/ - - GmacMmcTxPauseFrames = 0x0170, /*Number of good pause frames Tx. */ - GmacMmcTxVlanFramesG = 0x0174, /*Number of good Vlan frames Tx excl. retried frames */ -}; -enum MMC_RX -{ - GmacMmcRxFrameCountGb = 0x0180, /*Frames Rx (Good or Bad) */ - GmacMmcRxOctetCountGb = 0x0184, /*Bytes Rx excl. of preamble and retried bytes (Good or Bad) */ - GmacMmcRxOctetCountG = 0x0188, /*Bytes Rx excl. of preamble and retried bytes (Good) */ - GmacMmcRxBcFramesG = 0x018C, /*Broadcast Frames Rx (Good) */ - GmacMmcRxMcFramesG = 0x0190, /*Multicast Frames Rx (Good) */ - - GmacMmcRxCrcError = 0x0194, /*Number of frames received with CRC error */ - GmacMmcRxAlignError = 0x0198, /*Number of frames received with alignment (dribble) error. Only in 10/100mode */ - GmacMmcRxRuntError = 0x019C, /*Number of frames received with runt (<64 bytes and CRC error) error */ - GmacMmcRxJabberError = 0x01A0, /*Number of frames rx with jabber (>1518/1522 or >9018/9022 and CRC) */ - GmacMmcRxUnderSizeG = 0x01A4, /*Number of frames received with <64 bytes without any error */ - GmacMmcRxOverSizeG = 0x01A8, /*Number of frames received with >1518/1522 bytes without any error */ - - GmacMmcRx64OctetsGb = 0x01AC, /*Rx with len 64 bytes excl. of pre and retried (Good or Bad) */ - GmacMmcRx65To127OctetsGb = 0x01B0, /*Rx with len >64 bytes <=127 excl. of pre and retried (Good or Bad) */ - GmacMmcRx128To255OctetsGb = 0x01B4, /*Rx with len >128 bytes <=255 excl. of pre and retried (Good or Bad) */ - GmacMmcRx256To511OctetsGb = 0x01B8, /*Rx with len >256 bytes <=511 excl. of pre and retried (Good or Bad) */ - GmacMmcRx512To1023OctetsGb = 0x01BC, /*Rx with len >512 bytes <=1023 excl. of pre and retried (Good or Bad) */ - GmacMmcRx1024ToMaxOctetsGb = 0x01C0, /*Rx with len >1024 bytes <=MaxSize excl. of pre and retried (Good or Bad) */ - - GmacMmcRxUcFramesG = 0x01C4, /*Unicast Frames Rx (Good) */ - GmacMmcRxLengthError = 0x01C8, /*Number of frames received with Length type field != frame size */ - GmacMmcRxOutOfRangeType = 0x01CC, /*Number of frames received with length field != valid frame size */ - - GmacMmcRxPauseFrames = 0x01D0, /*Number of good pause frames Rx. */ - GmacMmcRxFifoOverFlow = 0x01D4, /*Number of missed rx frames due to FIFO overflow */ - GmacMmcRxVlanFramesGb = 0x01D8, /*Number of good Vlan frames Rx */ - - GmacMmcRxWatchdobError = 0x01DC, /*Number of frames rx with error due to watchdog timeout error */ -}; - -enum MMC_IP_RELATED -{ - GmacMmcRxIpcIntrMask = 0x0200, /*Maintains the mask for interrupt generated from rx IPC statistic counters */ - GmacMmcRxIpcIntr = 0x0208, /*Maintains the interrupt that rx IPC statistic counters generate */ - - GmacMmcRxIpV4FramesG = 0x0210, /*Good IPV4 datagrams received */ - GmacMmcRxIpV4HdrErrFrames = 0x0214, /*Number of IPV4 datagrams received with header errors */ - GmacMmcRxIpV4NoPayFrames = 0x0218, /*Number of IPV4 datagrams received which didnot have TCP/UDP/ICMP payload */ - GmacMmcRxIpV4FragFrames = 0x021C, /*Number of IPV4 datagrams received with fragmentation */ - GmacMmcRxIpV4UdpChkDsblFrames = 0x0220, /*Number of IPV4 datagrams received that had a UDP payload checksum disabled */ - - GmacMmcRxIpV6FramesG = 0x0224, /*Good IPV6 datagrams received */ - GmacMmcRxIpV6HdrErrFrames = 0x0228, /*Number of IPV6 datagrams received with header errors */ - GmacMmcRxIpV6NoPayFrames = 0x022C, /*Number of IPV6 datagrams received which didnot have TCP/UDP/ICMP payload */ - - GmacMmcRxUdpFramesG = 0x0230, /*Number of good IP datagrams with good UDP payload */ - GmacMmcRxUdpErrorFrames = 0x0234, /*Number of good IP datagrams with UDP payload having checksum error */ - - GmacMmcRxTcpFramesG = 0x0238, /*Number of good IP datagrams with good TDP payload */ - GmacMmcRxTcpErrorFrames = 0x023C, /*Number of good IP datagrams with TCP payload having checksum error */ - - GmacMmcRxIcmpFramesG = 0x0240, /*Number of good IP datagrams with good Icmp payload */ - GmacMmcRxIcmpErrorFrames = 0x0244, /*Number of good IP datagrams with Icmp payload having checksum error */ - - GmacMmcRxIpV4OctetsG = 0x0250, /*Good IPV4 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ - GmacMmcRxIpV4HdrErrorOctets = 0x0254, /*Number of bytes in IPV4 datagram with header errors */ - GmacMmcRxIpV4NoPayOctets = 0x0258, /*Number of bytes in IPV4 datagram with no TCP/UDP/ICMP payload */ - GmacMmcRxIpV4FragOctets = 0x025C, /*Number of bytes received in fragmented IPV4 datagrams */ - GmacMmcRxIpV4UdpChkDsblOctets = 0x0260, /*Number of bytes received in UDP segment that had UDP checksum disabled */ - - GmacMmcRxIpV6OctetsG = 0x0264, /*Good IPV6 datagrams received excl. Ethernet hdr,FCS,Pad,Ip Pad bytes */ - GmacMmcRxIpV6HdrErrorOctets = 0x0268, /*Number of bytes in IPV6 datagram with header errors */ - GmacMmcRxIpV6NoPayOctets = 0x026C, /*Number of bytes in IPV6 datagram with no TCP/UDP/ICMP payload */ - - GmacMmcRxUdpOctetsG = 0x0270, /*Number of bytes in IP datagrams with good UDP payload */ - GmacMmcRxUdpErrorOctets = 0x0274, /*Number of bytes in IP datagrams with UDP payload having checksum error */ - - GmacMmcRxTcpOctetsG = 0x0278, /*Number of bytes in IP datagrams with good TDP payload */ - GmacMmcRxTcpErrorOctets = 0x027C, /*Number of bytes in IP datagrams with TCP payload having checksum error */ - - GmacMmcRxIcmpOctetsG = 0x0280, /*Number of bytes in IP datagrams with good Icmp payload */ - GmacMmcRxIcmpErrorOctets = 0x0284, /*Number of bytes in IP datagrams with Icmp payload having checksum error */ -}; - - -enum MMC_CNTRL_REG_BIT_DESCRIPTIONS -{ - GmacMmcCounterFreeze = 0x00000008, /* when set MMC counters freeze to current value */ - GmacMmcCounterResetOnRead = 0x00000004, /* when set MMC counters will be reset to 0 after read */ - GmacMmcCounterStopRollover = 0x00000002, /* when set counters will not rollover after max value */ - GmacMmcCounterReset = 0x00000001, /* when set all counters wil be reset (automatically cleared after 1 clk) */ -}; - -enum MMC_RX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS -{ - GmacMmcRxWDInt = 0x00800000, /* set when rxwatchdog error reaches half of max value */ - GmacMmcRxVlanInt = 0x00400000, /* set when GmacMmcRxVlanFramesGb counter reaches half of max value */ - GmacMmcRxFifoOverFlowInt = 0x00200000, /* set when GmacMmcRxFifoOverFlow counter reaches half of max value */ - GmacMmcRxPauseFrameInt = 0x00100000, /* set when GmacMmcRxPauseFrames counter reaches half of max value */ - GmacMmcRxOutOfRangeInt = 0x00080000, /* set when GmacMmcRxOutOfRangeType counter reaches half of max value */ - GmacMmcRxLengthErrorInt = 0x00040000, /* set when GmacMmcRxLengthError counter reaches half of max value */ - GmacMmcRxUcFramesInt = 0x00020000, /* set when GmacMmcRxUcFramesG counter reaches half of max value */ - GmacMmcRx1024OctInt = 0x00010000, /* set when GmacMmcRx1024ToMaxOctetsGb counter reaches half of max value */ - GmacMmcRx512OctInt = 0x00008000, /* set when GmacMmcRx512To1023OctetsGb counter reaches half of max value */ - GmacMmcRx256OctInt = 0x00004000, /* set when GmacMmcRx256To511OctetsGb counter reaches half of max value */ - GmacMmcRx128OctInt = 0x00002000, /* set when GmacMmcRx128To255OctetsGb counter reaches half of max value */ - GmacMmcRx65OctInt = 0x00001000, /* set when GmacMmcRx65To127OctetsG counter reaches half of max value */ - GmacMmcRx64OctInt = 0x00000800, /* set when GmacMmcRx64OctetsGb counter reaches half of max value */ - GmacMmcRxOverSizeInt = 0x00000400, /* set when GmacMmcRxOverSizeG counter reaches half of max value */ - GmacMmcRxUnderSizeInt = 0x00000200, /* set when GmacMmcRxUnderSizeG counter reaches half of max value */ - GmacMmcRxJabberErrorInt = 0x00000100, /* set when GmacMmcRxJabberError counter reaches half of max value */ - GmacMmcRxRuntErrorInt = 0x00000080, /* set when GmacMmcRxRuntError counter reaches half of max value */ - GmacMmcRxAlignErrorInt = 0x00000040, /* set when GmacMmcRxAlignError counter reaches half of max value */ - GmacMmcRxCrcErrorInt = 0x00000020, /* set when GmacMmcRxCrcError counter reaches half of max value */ - GmacMmcRxMcFramesInt = 0x00000010, /* set when GmacMmcRxMcFramesG counter reaches half of max value */ - GmacMmcRxBcFramesInt = 0x00000008, /* set when GmacMmcRxBcFramesG counter reaches half of max value */ - GmacMmcRxOctetGInt = 0x00000004, /* set when GmacMmcRxOctetCountG counter reaches half of max value */ - GmacMmcRxOctetGbInt = 0x00000002, /* set when GmacMmcRxOctetCountGb counter reaches half of max value */ - GmacMmcRxFrameInt = 0x00000001, /* set when GmacMmcRxFrameCountGb counter reaches half of max value */ -}; - -enum MMC_TX_INTR_MASK_AND_STATUS_BIT_DESCRIPTIONS -{ - - GmacMmcTxVlanInt = 0x01000000, /* set when GmacMmcTxVlanFramesG counter reaches half of max value */ - GmacMmcTxPauseFrameInt = 0x00800000, /* set when GmacMmcTxPauseFrames counter reaches half of max value */ - GmacMmcTxExessDefInt = 0x00400000, /* set when GmacMmcTxExessDef counter reaches half of max value */ - GmacMmcTxFrameInt = 0x00200000, /* set when GmacMmcTxFrameCount counter reaches half of max value */ - GmacMmcTxOctetInt = 0x00100000, /* set when GmacMmcTxOctetCountG counter reaches half of max value */ - GmacMmcTxCarrierErrorInt = 0x00080000, /* set when GmacMmcTxCarrierError counter reaches half of max value */ - GmacMmcTxExessColInt = 0x00040000, /* set when GmacMmcTxExessCol counter reaches half of max value */ - GmacMmcTxLateColInt = 0x00020000, /* set when GmacMmcTxLateCol counter reaches half of max value */ - GmacMmcTxDeferredInt = 0x00010000, /* set when GmacMmcTxDeferred counter reaches half of max value */ - GmacMmcTxMultiColInt = 0x00008000, /* set when GmacMmcTxMultiColG counter reaches half of max value */ - GmacMmcTxSingleCol = 0x00004000, /* set when GmacMmcTxSingleColG counter reaches half of max value */ - GmacMmcTxUnderFlowErrorInt = 0x00002000, /* set when GmacMmcTxUnderFlowError counter reaches half of max value */ - GmacMmcTxBcFramesGbInt = 0x00001000, /* set when GmacMmcTxBcFramesGb counter reaches half of max value */ - GmacMmcTxMcFramesGbInt = 0x00000800, /* set when GmacMmcTxMcFramesGb counter reaches half of max value */ - GmacMmcTxUcFramesInt = 0x00000400, /* set when GmacMmcTxUcFramesGb counter reaches half of max value */ - GmacMmcTx1024OctInt = 0x00000200, /* set when GmacMmcTx1024ToMaxOctetsGb counter reaches half of max value */ - GmacMmcTx512OctInt = 0x00000100, /* set when GmacMmcTx512To1023OctetsGb counter reaches half of max value */ - GmacMmcTx256OctInt = 0x00000080, /* set when GmacMmcTx256To511OctetsGb counter reaches half of max value */ - GmacMmcTx128OctInt = 0x00000040, /* set when GmacMmcTx128To255OctetsGb counter reaches half of max value */ - GmacMmcTx65OctInt = 0x00000020, /* set when GmacMmcTx65To127OctetsGb counter reaches half of max value */ - GmacMmcTx64OctInt = 0x00000010, /* set when GmacMmcTx64OctetsGb counter reaches half of max value */ - GmacMmcTxMcFramesInt = 0x00000008, /* set when GmacMmcTxMcFramesG counter reaches half of max value */ - GmacMmcTxBcFramesInt = 0x00000004, /* set when GmacMmcTxBcFramesG counter reaches half of max value */ - GmacMmcTxFrameGbInt = 0x00000002, /* set when GmacMmcTxFrameCountGb counter reaches half of max value */ - GmacMmcTxOctetGbInt = 0x00000001, /* set when GmacMmcTxOctetCountGb counter reaches half of max value */ -}; - - -/********************************************************** - * Power Management (PMT) Block - **********************************************************/ - -/** - * PMT supports the reception of network (remote) wake-up frames and Magic packet frames. - * It generates interrupts for wake-up frames and Magic packets received by GMAC. - * PMT sits in Rx path and is enabled with remote wake-up frame enable and Magic packet enable. - * These enable are in PMT control and Status register and are programmed by apllication. - * - * When power down mode is enabled in PMT, all rx frames are dropped by the core. Core comes - * out of power down mode only when either Magic packe tor a Remote wake-up frame is received - * and the corresponding detection is enabled. - * - * Driver need not be modified to support this feature. Only Api to put the device in to power - * down mode is sufficient - */ - -#define WAKEUP_REG_LENGTH 8 /*This is the reg length for wake up register configuration*/ - -enum GmacPmtCtrlStatusBitDefinition -{ - GmacPmtFrmFilterPtrReset = 0x80000000, /* when set remote wake-up frame filter register pointer to 3'b000 */ - GmacPmtGlobalUnicast = 0x00000200, /* When set enables any unicast packet to be a wake-up frame */ - GmacPmtWakeupFrameReceived = 0x00000040, /* Wake up frame received */ - GmacPmtMagicPktReceived = 0x00000020, /* Magic Packet received */ - GmacPmtWakeupFrameEnable = 0x00000004, /* Wake-up frame enable */ - GmacPmtMagicPktEnable = 0x00000002, /* Magic packet enable */ - GmacPmtPowerDown = 0x00000001, /* Power Down */ -}; - -/********************************************************** - * IEEE 1588-2008 Precision Time Protocol (PTP) Support - **********************************************************/ -enum PTPMessageType -{ - SYNC = 0x0, - Delay_Req = 0x1, - Pdelay_Req = 0x2, - Pdelay_Resp = 0x3, - Follow_up = 0x8, - Delay_Resp = 0x9, - Pdelay_Resp_Follow_Up = 0xA, - Announce = 0xB, - Signaling = 0xC, - Management = 0xD, -}; - -typedef struct TimeStampStruct -{ - u32 TSversion; /* PTP Version 1 or PTP version2 */ - u32 TSmessagetype; /* Message type associated with this time stamp */ - - u16 TShighest16; /* Highest 16 bit time stamp value, Valid onley when ADV_TIME_HIGH_WORD configured in corekit */ - u32 TSupper32; /* Most significant 32 bit time stamp value */ - u32 TSlower32; /* Least Significat 32 bit time stamp value */ - -} TimeStamp; - - -/** - * IEEE 1588-2008 is the optional module to support Ethernet frame time stamping. - * Sixty four (+16) bit time stamps are given in each frames transmit and receive status. - * The driver assumes the following - * 1. "IEEE 1588 Time Stamping" "TIME_STAMPING"is ENABLED in corekit - * 2. "IEEE 1588 External Time Stamp Input Enable" "EXT_TIME_STAMPING" is DISABLED in corekit - * 3. "IEEE 1588 Advanced Time Stamp support" "ADV_TIME_STAMPING" is ENABLED in corekit - * 4. "IEEE 1588 Higher Word Register Enable" "ADV_TIME_HIGH_WORD" is ENABLED in corekit - */ - -/* GmacTSControl = 0x0700, Controls the Timestamp update logic : only when IEEE 1588 time stamping is enabled in corekit */ -enum GmacTSControlReg -{ - GmacTSENMACADDR = 0x00040000, /* Enable Mac Addr for PTP filtering 18 RW 0 */ - - GmacTSCLKTYPE = 0x00030000, /* Select the type of clock node 17:16 RW 00 */ - /* - TSCLKTYPE TSMSTRENA TSEVNTENA Messages for wihich TS snapshot is taken - 00/01 X 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP - 00/01 1 0 DELAY_REQ - 00/01 0 1 SYNC - 10 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP - 10 NA 1 SYNC, FOLLOW_UP - 11 NA 0 SYNC, FOLLOW_UP, DELAY_REQ, DELAY_RESP, PDELAY_REQ, PDELAY_RESP - 11 NA 1 SYNC, PDELAY_REQ, PDELAY_RESP - */ - GmacTSOrdClk = 0x00000000, /* 00=> Ordinary clock*/ - GmacTSBouClk = 0x00010000, /* 01=> Boundary clock*/ - GmacTSEtoEClk = 0x00020000, /* 10=> End-to-End transparent clock*/ - GmacTSPtoPClk = 0x00030000, /* 11=> P-to-P transparent clock*/ - - GmacTSMSTRENA = 0x00008000, /* Ena TS Snapshot for Master Messages 15 RW 0 */ - GmacTSEVNTENA = 0x00004000, /* Ena TS Snapshot for Event Messages 14 RW 0 */ - GmacTSIPV4ENA = 0x00002000, /* Ena TS snapshot for IPv4 13 RW 1 */ - GmacTSIPV6ENA = 0x00001000, /* Ena TS snapshot for IPv6 12 RW 0 */ - GmacTSIPENA = 0x00000800, /* Ena TS snapshot for PTP over E'net 11 RW 0 */ - GmacTSVER2ENA = 0x00000400, /* Ena PTP snooping for version 2 10 RW 0 */ - - GmacTSCTRLSSR = 0x00000200, /* Digital or Binary Rollover 9 RW 0 */ - - GmacTSENALL = 0x00000100, /* Enable TS fro all frames (Ver2 only) 8 RW 0 */ - - GmacTSADDREG = 0x00000020, /* Addend Register Update 5 RW_SC 0 */ - GmacTSUPDT = 0x00000008, /* Time Stamp Update 3 RW_SC 0 */ - GmacTSINT = 0x00000004, /* Time Atamp Initialize 2 RW_SC 0 */ - - GmacTSTRIG = 0x00000010, /* Time stamp interrupt Trigger Enable 4 RW_SC 0 */ - - GmacTSCFUPDT = 0x00000002, /* Time Stamp Fine/Coarse 1 RW 0 */ - GmacTSCUPDTCoarse = 0x00000000, /* 0=> Time Stamp update method is coarse */ - GmacTSCUPDTFine = 0x00000002, /* 1=> Time Stamp update method is fine */ - - GmacTSENA = 0x00000001, /* Time Stamp Enable 0 RW 0 */ -}; - - -/* GmacTSSubSecIncr = 0x0704, 8 bit value by which sub second register is incremented : only when IEEE 1588 time stamping without external timestamp input */ -enum GmacTSSubSecIncrReg -{ - GmacSSINCMsk = 0x000000FF, /* Only Lower 8 bits are valid bits 7:0 RW 00 */ -}; - -/* GmacTSLow = 0x070C, Indicates whether the timestamp low count is positive or negative; for Adv timestamp it is always zero */ -enum GmacTSSign -{ - GmacTSSign = 0x80000000, /* PSNT 31 RW 0 */ - GmacTSPositive = 0x00000000, - GmacTSNegative = 0x80000000, -}; - -/*GmacTargetTimeLow = 0x0718, 32 bit nano seconds(MS) to be compared with system time : only when IEEE 1588 time stamping without external timestamp input */ -enum GmacTSLowReg -{ - GmacTSDecThr = 0x3B9AC9FF, /*when TSCTRLSSR is set the max value for GmacTargetTimeLowReg and GmacTimeStampLow register is 0x3B9AC9FF at 1ns precision */ -}; - -/* GmacTSHighWord = 0x0724, Time Stamp Higher Word Register (Version 2 only); only lower 16 bits are valid */ -enum GmacTSHighWordReg -{ - GmacTSHighWordMask = 0x0000FFFF, /* Time Stamp Higher work register has only lower 16 bits valid */ -}; -/*GmacTSStatus = 0x0728, Time Stamp Status Register */ -enum GmacTSStatusReg -{ - GmacTSTargTimeReached = 0x00000002, /* Time Stamp Target Time Reached 1 RO 0 */ - GmacTSSecondsOverflow = 0x00000001, /* Time Stamp Seconds Overflow 0 RO 0 */ -}; - -/********************************************************** - * Time stamp related functions - **********************************************************/ -void synopGMAC_TS_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_disable(synopGMACdevice *gmacdev); - -void synopGMAC_TS_int_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_int_disable(synopGMACdevice *gmacdev); - -void synopGMAC_TS_mac_addr_filt_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_mac_addr_filt_disable(synopGMACdevice *gmacdev); -void synopGMAC_TS_set_clk_type(synopGMACdevice *gmacdev, u32 clk_type); -void synopGMAC_TS_master_enable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" -void synopGMAC_TS_master_disable(synopGMACdevice *gmacdev); // Only for Ordinary clock and Boundary clock and "Advanced Time Stamp" -void synopGMAC_TS_event_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_event_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV4_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV4_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV6_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_IPV6_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_ptp_over_ethernet_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_ptp_over_ethernet_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_pkt_snoop_ver2(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_pkt_snoop_ver1(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" - -void synopGMAC_TS_digital_rollover_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_binary_rollover_enable(synopGMACdevice *gmacdev); -void synopGMAC_TS_all_frames_enable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" -void synopGMAC_TS_all_frames_disable(synopGMACdevice *gmacdev); // Only for "Advanced Time Stamp" - -s32 synopGMAC_TS_addend_update(synopGMACdevice *gmacdev, u32 addend_value); -s32 synopGMAC_TS_timestamp_update(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); -s32 synopGMAC_TS_timestamp_init(synopGMACdevice *gmacdev, u32 high_value, u32 low_value); - -void synopGMAC_TS_coarse_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled -void synopGMAC_TS_fine_update(synopGMACdevice *gmacdev); // Only if "fine correction" enabled - -void synopGMAC_TS_subsecond_init(synopGMACdevice *gmacdev, u32 sub_sec_inc_val); // Update should happen making use of subsecond mask -void synopGMAC_TS_read_timestamp(synopGMACdevice *gmacdev, u16 * higher_sec_val, - u32 * sec_val, u32 * sub_sec_val); // Reads the timestamp low,high and higher(Ver2) registers in the the struct pointer; readonly contents -void synopGMAC_TS_load_target_timestamp(synopGMACdevice *gmacdev, u32 sec_val, u32 sub_sec_val); //Loads the timestamp target register with the values provided - -void synopGMAC_TS_load_timestamp_higher_val(synopGMACdevice *gmacdev, u32 higher_sec_val); -void synopGMAC_TS_read_timestamp_higher_val(synopGMACdevice *gmacdev, u16 * higher_sec_val); -void synopGMAC_TS_read_target_timestamp(synopGMACdevice *gmacdev, u32 * sec_val, u32 * sub_sec_val); //Read the target time stamp register contents - - -/********************************************************** - * Common functions - **********************************************************/ -s32 synopGMAC_set_mdc_clk_div(synopGMACdevice *gmacdev,u32 clk_div_val ); -u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev); -s32 synopGMAC_read_phy_reg(u64 RegBase,u32 PhyBase, u32 RegOffset, u16 * data); -s32 synopGMAC_write_phy_reg(u64 RegBase, u32 PhyBase, u32 RegOffset, u16 data); -s32 synopGMAC_phy_loopback(synopGMACdevice *gmacdev, bool loopback); -s32 synopGMAC_read_version (synopGMACdevice * gmacdev) ; -s32 synopGMAC_reset (synopGMACdevice * gmacdev ); -s32 synopGMAC_dma_bus_mode_init(synopGMACdevice * gmacdev, u32 init_value ); -s32 synopGMAC_dma_control_init(synopGMACdevice * gmacdev, u32 init_value ); -void synopGMAC_wd_enable(synopGMACdevice * gmacdev); -void synopGMAC_wd_disable(synopGMACdevice * gmacdev); -void synopGMAC_jab_enable(synopGMACdevice * gmacdev); -void synopGMAC_jab_disable(synopGMACdevice * gmacdev); -void synopGMAC_frame_burst_enable(synopGMACdevice * gmacdev); -void synopGMAC_frame_burst_disable(synopGMACdevice * gmacdev); -void synopGMAC_jumbo_frame_enable(synopGMACdevice * gmacdev); -void synopGMAC_jumbo_frame_disable(synopGMACdevice * gmacdev); -void synopGMAC_select_gmii(synopGMACdevice * gmacdev); -void synopGMAC_select_mii(synopGMACdevice * gmacdev); -void synopGMAC_rx_own_enable(synopGMACdevice * gmacdev); -void synopGMAC_rx_own_disable(synopGMACdevice * gmacdev); -void synopGMAC_loopback_on(synopGMACdevice * gmacdev); -void synopGMAC_loopback_off(synopGMACdevice * gmacdev); -void synopGMAC_set_full_duplex(synopGMACdevice * gmacdev); -void synopGMAC_set_half_duplex(synopGMACdevice * gmacdev); -void synopGMAC_retry_enable(synopGMACdevice * gmacdev); -void synopGMAC_retry_disable(synopGMACdevice * gmacdev); -void synopGMAC_pad_crc_strip_enable(synopGMACdevice * gmacdev); -void synopGMAC_pad_crc_strip_disable(synopGMACdevice * gmacdev); -void synopGMAC_back_off_limit(synopGMACdevice * gmacdev, u32 value); -void synopGMAC_deferral_check_enable(synopGMACdevice * gmacdev); -void synopGMAC_deferral_check_disable(synopGMACdevice * gmacdev); -void synopGMAC_rx_enable(synopGMACdevice * gmacdev); -void synopGMAC_rx_disable(synopGMACdevice * gmacdev); -void synopGMAC_tx_enable(synopGMACdevice * gmacdev); -void synopGMAC_tx_disable(synopGMACdevice * gmacdev); -void synopGMAC_frame_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_frame_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_write_hash_table_high(synopGMACdevice * gmacdev, u32 data); -void synopGMAC_write_hash_table_low(synopGMACdevice * gmacdev, u32 data); -void synopGMAC_hash_perfect_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_Hash_filter_only_enable(synopGMACdevice * gmacdev); -void synopGMAC_src_addr_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_src_addr_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_dst_addr_filter_inverse(synopGMACdevice * gmacdev); -void synopGMAC_dst_addr_filter_normal(synopGMACdevice * gmacdev); -void synopGMAC_set_pass_control(synopGMACdevice * gmacdev,u32 passcontrol); -void synopGMAC_broadcast_enable(synopGMACdevice * gmacdev); -void synopGMAC_broadcast_disable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_enable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_disable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_hash_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_multicast_hash_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_promisc_enable(synopGMACdevice * gmacdev); -void synopGMAC_promisc_disable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_hash_filter_enable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_hash_filter_disable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_pause_frame_detect_enable(synopGMACdevice * gmacdev); -void synopGMAC_unicast_pause_frame_detect_disable(synopGMACdevice * gmacdev); -void synopGMAC_rx_flow_control_enable(synopGMACdevice * gmacdev); -void synopGMAC_rx_flow_control_disable(synopGMACdevice * gmacdev); -void synopGMAC_tx_flow_control_enable(synopGMACdevice * gmacdev); -void synopGMAC_tx_flow_control_disable(synopGMACdevice * gmacdev); -void synopGMAC_tx_activate_flow_control(synopGMACdevice * gmacdev); -void synopGMAC_tx_deactivate_flow_control(synopGMACdevice * gmacdev); -void synopGMAC_pause_control(synopGMACdevice *gmacdev); -s32 synopGMAC_mac_init(synopGMACdevice * gmacdev); -s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); -s32 synopGMAC_get_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr ); -s32 synopGMAC_attach (synopGMACdevice * gmacdev, u64 macBase, u64 dmaBase, u64 phyBase,u8 *mac_addr); -void synopGMAC_rx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); -void synopGMAC_tx_desc_init_ring(DmaDesc *desc, bool last_ring_desc); -void synopGMAC_rx_desc_init_chain(DmaDesc * desc); -void synopGMAC_tx_desc_init_chain(DmaDesc * desc); -s32 synopGMAC_init_tx_rx_desc_queue(synopGMACdevice *gmacdev); -void synopGMAC_init_rx_desc_base(synopGMACdevice *gmacdev); -void synopGMAC_init_tx_desc_base(synopGMACdevice *gmacdev); -void synopGMAC_set_owner_dma(DmaDesc *desc); -void synopGMAC_set_desc_sof(DmaDesc *desc); -void synopGMAC_set_desc_eof(DmaDesc *desc); -bool synopGMAC_is_sof_in_rx_desc(DmaDesc *desc); -bool synopGMAC_is_eof_in_rx_desc(DmaDesc *desc); -bool synopGMAC_is_da_filter_failed(DmaDesc *desc); -bool synopGMAC_is_sa_filter_failed(DmaDesc *desc); -bool synopGMAC_is_desc_owned_by_dma(DmaDesc *desc); -u32 synopGMAC_get_rx_desc_frame_length(u32 status); -bool synopGMAC_is_desc_valid(u32 status); -bool synopGMAC_is_desc_empty(DmaDesc *desc); -bool synopGMAC_is_rx_desc_valid(u32 status); -bool synopGMAC_is_tx_aborted(u32 status); -bool synopGMAC_is_tx_carrier_error(u32 status); -u32 synopGMAC_get_tx_collision_count(u32 status); -u32 synopGMAC_is_exc_tx_collisions(u32 status); -bool synopGMAC_is_rx_frame_damaged(u32 status); -bool synopGMAC_is_rx_frame_collision(u32 status); -bool synopGMAC_is_rx_crc(u32 status); -bool synopGMAC_is_frame_dribbling_errors(u32 status); -bool synopGMAC_is_rx_frame_length_errors(u32 status); -bool synopGMAC_is_last_rx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); -bool synopGMAC_is_last_tx_desc(synopGMACdevice * gmacdev,DmaDesc *desc); -bool synopGMAC_is_rx_desc_chained(DmaDesc * desc); -bool synopGMAC_is_tx_desc_chained(DmaDesc * desc); -void synopGMAC_get_desc_data(DmaDesc * desc, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2); -#ifdef ENH_DESC_8W -s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2, - u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); -#else -s32 synopGMAC_get_tx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2 ); -#endif -s32 synopGMAC_set_tx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2,u32 offload_needed,u32 * index,DmaDesc *Dpr); -s32 synopGMAC_set_rx_qptr(synopGMACdevice * gmacdev, u32 Buffer1, u32 Length1, u64 Data1, u32 Buffer2, u32 Length2, u64 Data2); -#ifdef ENH_DESC_8W -s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2, - u32 * Ext_Status, u32 * Time_Stamp_High, u32 * Time_Stamp_low); -#else -s32 synopGMAC_get_rx_qptr(synopGMACdevice * gmacdev, u32 * Status, u32 * Buffer1, u32 * Length1, u64 * Data1, u32 * Buffer2, u32 * Length2, u64 * Data2); -#endif -void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev); -u32 synopGMAC_get_interrupt_type(synopGMACdevice *gmacdev); -u32 synopGMAC_get_interrupt_mask(synopGMACdevice *gmacdev); -void synopGMAC_enable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); -void synopGMAC_disable_interrupt_all(synopGMACdevice *gmacdev); -void synopGMAC_disable_interrupt(synopGMACdevice *gmacdev, u32 interrupts); -void synopGMAC_enable_dma_rx(synopGMACdevice * gmacdev); -void synopGMAC_enable_dma_tx(synopGMACdevice * gmacdev); -void synopGMAC_resume_dma_tx(synopGMACdevice * gmacdev); -void synopGMAC_resume_dma_rx(synopGMACdevice * gmacdev); -void synopGMAC_take_desc_ownership(DmaDesc * desc); -void synopGMAC_take_desc_ownership_rx(synopGMACdevice * gmacdev); -void synopGMAC_take_desc_ownership_tx(synopGMACdevice * gmacdev); -void synopGMAC_disable_dma_tx(synopGMACdevice * gmacdev); -void synopGMAC_disable_dma_rx(synopGMACdevice * gmacdev); -/******Following APIs are valid only for Enhanced Descriptor from 3.50a release onwards*******/ -bool synopGMAC_is_ext_status(synopGMACdevice *gmacdev,u32 status); -bool synopGMAC_ES_is_IP_header_error(synopGMACdevice *gmacdev,u32 ext_status); -bool synopGMAC_ES_is_rx_checksum_bypassed(synopGMACdevice *gmacdev,u32 ext_status); -bool synopGMAC_ES_is_IP_payload_error(synopGMACdevice *gmacdev,u32 ext_status); -/*******************PMT APIs***************************************/ -void synopGMAC_pmt_int_enable(synopGMACdevice *gmacdev); -void synopGMAC_pmt_int_disable(synopGMACdevice *gmacdev); -void synopGMAC_power_down_enable(synopGMACdevice *gmacdev); -void synopGMAC_power_down_disable(synopGMACdevice *gmacdev); -void synopGMAC_enable_pmt_interrupt(synopGMACdevice *gmacdev); -void synopGMAC_disable_pmt_interrupt(synopGMACdevice *gmacdev); -void synopGMAC_magic_packet_enable(synopGMACdevice *gmacdev); -void synopGMAC_wakeup_frame_enable(synopGMACdevice *gmacdev); -void synopGMAC_pmt_unicast_enable(synopGMACdevice *gmacdev); -bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev); -bool synopGMAC_is_wakeup_frame_received(synopGMACdevice *gmacdev); -void synopGMAC_write_wakeup_frame_register(synopGMACdevice *gmacdev, u32 * filter_contents); -/*******************MMC APIs***************************************/ -void synopGMAC_mmc_counters_stop(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_resume(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_set_selfclear(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_reset_selfclear(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_disable_rollover(synopGMACdevice *gmacdev); -void synopGMAC_mmc_counters_enable_rollover(synopGMACdevice *gmacdev); -u32 synopGMAC_read_mmc_counter(synopGMACdevice *gmacdev, u32 counter); -u32 synopGMAC_read_mmc_rx_int_status(synopGMACdevice *gmacdev); -u32 synopGMAC_read_mmc_tx_int_status(synopGMACdevice *gmacdev); -void synopGMAC_disable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_enable_mmc_tx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_disable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_enable_mmc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_enable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -void synopGMAC_disable_mmc_ipc_rx_interrupt(synopGMACdevice *gmacdev, u32 mask); -/*******************Ip checksum offloading APIs***************************************/ -void synopGMAC_enable_rx_chksum_offload(synopGMACdevice *gmacdev); -void synopGMAC_disable_rx_Ipchecksum_offload(synopGMACdevice *gmacdev); -void synopGMAC_rx_tcpip_chksum_drop_enable(synopGMACdevice *gmacdev); -void synopGMAC_rx_tcpip_chksum_drop_disable(synopGMACdevice *gmacdev); -u32 synopGMAC_is_rx_checksum_error(synopGMACdevice *gmacdev, u32 status); -bool synopGMAC_is_tx_ipv4header_checksum_error(synopGMACdevice *gmacdev, u32 status); -bool synopGMAC_is_tx_payload_checksum_error(synopGMACdevice *gmacdev, u32 status); -void synopGMAC_tx_checksum_offload_bypass(synopGMACdevice *gmacdev, DmaDesc *desc); -void synopGMAC_tx_checksum_offload_ipv4hdr(synopGMACdevice *gmacdev, DmaDesc *desc); -void synopGMAC_tx_checksum_offload_tcponly(synopGMACdevice *gmacdev, DmaDesc *desc); -void synopGMAC_tx_checksum_offload_tcp_pseudo(synopGMACdevice *gmacdev, DmaDesc *desc); - -#endif /* End of file */ diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_Host.h b/bsp/ls2kdev/drivers/net/synopGMAC_Host.h deleted file mode 100644 index b81b0c29f0..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_Host.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - -#ifndef SYNOP_GMAC_HOST_H -#define SYNOP_GMAC_HOST_H 1 - -#include "synopGMAC_plat.h" -#include "synopGMAC_Dev.h" -#include "mii.h" - -struct net_device_stats -{ - unsigned long rx_packets; /* total packets received */ - unsigned long tx_packets; /* total packets transmitted */ - unsigned long rx_bytes; /* total bytes received */ - unsigned long tx_bytes; /* total bytes transmitted */ - unsigned long rx_errors; /* bad packets received */ - unsigned long tx_errors; /* packet transmit problems */ - unsigned long rx_dropped; /* no space in linux buffers */ - unsigned long tx_dropped; /* no space available in linux */ - unsigned long multicast; /* multicast packets received */ - unsigned long collisions; - - /* detailed rx_errors: */ - unsigned long rx_length_errors; - unsigned long rx_over_errors; /* receiver ring buff overflow */ - unsigned long rx_crc_errors; /* recved pkt with crc error */ - unsigned long rx_frame_errors; /* recv'd frame alignment error */ - unsigned long rx_fifo_errors; /* recv'r fifo overrun */ - unsigned long rx_missed_errors; /* receiver missed packet */ - - /* detailed tx_errors */ - unsigned long tx_aborted_errors; - unsigned long tx_carrier_errors; - unsigned long tx_fifo_errors; - unsigned long tx_heartbeat_errors; - unsigned long tx_window_errors; - - /* for cslip etc */ - unsigned long rx_compressed; - unsigned long tx_compressed; -}; - -typedef struct synopGMACNetworkAdapter{ -/*Device Dependent Data structur*/ -synopGMACdevice * synopGMACdev; - -struct net_device_stats synopGMACNetStats; - -struct mii_if_info mii; -} synopGMACPciNetworkAdapter; - -#endif diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_debug.h b/bsp/ls2kdev/drivers/net/synopGMAC_debug.h deleted file mode 100644 index c5387d00d8..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_debug.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - -#ifndef __DEBUG_H__ -#define __DEBUG_H__ - -//#define GMAC_DEBUG -#include -#ifdef GMAC_DEBUG -#define DEBUG_MES rt_kprintf -#else -#define DEBUG_MES(...) -#endif - -#endif /*__DEBUG_H__*/ diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_network_interface.h b/bsp/ls2kdev/drivers/net/synopGMAC_network_interface.h deleted file mode 100644 index 5cb0c6d6d3..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_network_interface.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - -#ifndef SYNOP_GMAC_NETWORK_INTERFACE_H -#define SYNOP_GMAC_NETWORK_INTERFACE_H 1 - -#include -#include -#include "synopGMAC_plat.h" -#include "synopGMAC_Host.h" -#include "synopGMAC_Dev.h" - -#define NET_IF_TIMEOUT (10*HZ) -#define CHECK_TIME (HZ) - -s32 synopGMAC_init_network_interface(char* xname,u64 synopGMACMappedAddr); -void synopGMAC_exit_network_interface(void); - -s32 synopGMAC_linux_open(struct eth_device *); -s32 synopGMAC_linux_close(struct eth_device *); -struct net_device_stats * synopGMAC_linux_get_stats(struct synopGMACNetworkAdapter *); - -s32 synopGMAC_test(synopGMACdevice * gmacdev_0,synopGMACdevice * gmacdev_1); - -void dumpreg(u64 ); -void dumpphyreg(); - -/* - * gethex(vp,p,n) - * convert n hex digits from p to binary, result in vp, - * rtn 1 on success - */ -static int gethex(u8 *vp, char *p, int n) -{ - u8 v; - int digit; - - for (v = 0; n > 0; n--) { - if (*p == 0) - return (0); - if (*p >= '0' && *p <= '9') - digit = *p - '0'; - else if (*p >= 'a' && *p <= 'f') - digit = *p - 'a' + 10; - else if (*p >= 'A' && *p <= 'F') - digit = *p - 'A' + 10; - else - return (0); - - v <<= 4; - v |= digit; - p++; - } - *vp = v; - return (1); -} - -#endif /* End of file */ diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_plat.c b/bsp/ls2kdev/drivers/net/synopGMAC_plat.c deleted file mode 100644 index 0c938e9949..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_plat.c +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - * 2020-08-10 lizhirui porting to ls2k - */ -#include "synopGMAC_plat.h" -#include "synopGMAC_Dev.h" -#include -#include - -void flush_cache(unsigned long start_addr, unsigned long size) -{ - /*r4k_dcache_wback_inv(start_addr,size); - - //rt_kprintf("flush_cache:start_addr = 0x%p,size = 0x%p",start_addr,size); - unsigned long new_addr = start_addr - CACHED_MEMORY_ADDR + UNCACHED_MEMORY_ADDR; - rt_memcpy(new_addr,start_addr,size); - - if(rt_memcmp(start_addr,new_addr,size) != 0) - { - rt_kprintf("flush_cache:data isn't matched!\n"); - while(1); - } - else - { - //rt_kprintf("flush_cache:data is matched!\n"); - }*/ -} - -//convert virtual address to physical address -dma_addr_t __attribute__((weak)) gmac_dmamap(unsigned long va, u32 size) -{ - return VA_TO_PA(va); - //return UNCACHED_TO_PHYS(va); -} - -/** - * This is a wrapper function for Memory allocation routine. In linux Kernel - * it it kmalloc function - * @param[in] bytes in bytes to allocate - */ - -void *plat_alloc_memory(u32 bytes) -{ -//return (void*)malloc((size_t)bytes, M_DEVBUF, M_DONTWAIT); - void *buf = (void *)rt_malloc((u32)bytes); - flush_cache((unsigned long)buf, bytes); - return buf; -} - -/** - * This is a wrapper function for consistent dma-able Memory allocation routine. - * In linux Kernel, it depends on pci dev structure - * @param[in] bytes in bytes to allocate - */ - -//allocate a space aligned to 16-byte boundary without cache -void *plat_alloc_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, u32 *addr) -{ - void *buf; - buf = (void *)rt_malloc((u32)(size + 16)); - //CPU_IOFlushDCache( buf,size, SYNC_W); - unsigned long i = (unsigned long)buf; -// rt_kprintf("size = %d\n", size); -// rt_kprintf("bufaddr = %p\n", buf); -// rt_kprintf("i%%16 == %d\n", i%16); - if (i % 16 == 8) - { - i += 8; - } - else if (i % 16 == 4) - { - i += 12; - } - else if (i % 16 == 12) - { - i += 4; - } - - flush_cache(i, size); - *addr = gmac_dmamap(i, size); - buf = (unsigned char *)CACHED_TO_UNCACHED(i); - //rt_kprintf("bufaddr = %p\n", buf); - return buf; -} - -/** - * This is a wrapper function for freeing consistent dma-able Memory. - * In linux Kernel, it depends on pci dev structure - * @param[in] bytes in bytes to allocate - */ -//void plat_free_consistent_dmaable_memory(void * addr) -void plat_free_consistent_dmaable_memory(synopGMACdevice *pcidev, u32 size, void *addr, u64 dma_addr) -{ - rt_free((void *)PHYS_TO_CACHED(UNCACHED_TO_PHYS(addr))); - return; -} - -/** - * This is a wrapper function for Memory free routine. In linux Kernel - * it it kfree function - * @param[in] buffer pointer to be freed - */ -void plat_free_memory(void *buffer) -{ - rt_free(buffer); - return ; -} - -//convert virtual address to physical address and flush cache -dma_addr_t plat_dma_map_single(void *hwdev, void *ptr, u32 size) -{ - unsigned long addr = (unsigned long) ptr; - //CPU_IOFlushDCache(addr,size, direction); - flush_cache(addr, size); - return gmac_dmamap(addr, size); -} - -/** - * This is a wrapper function for platform dependent delay - * Take care while passing the argument to this function - * @param[in] buffer pointer to be freed - */ -void plat_delay(u32 delay) -{ - while (delay--); - return; -} diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_plat.h b/bsp/ls2kdev/drivers/net/synopGMAC_plat.h deleted file mode 100644 index 3b6eaca197..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_plat.h +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - * 2020-08-10 lizhirui porting to ls2k - */ - -#ifndef SYNOP_GMAC_PLAT_H -#define SYNOP_GMAC_PLAT_H 1 - -/* sw -#include -#include -#include -#include -#include -*/ -#include "synopGMAC_types.h" -#include "synopGMAC_debug.h" -//#include "mii.h" -//#include "GMAC_Pmon.h" -//#include "synopGMAC_Host.h" -#include -#include -#include "mips_addrspace.h" -//sw: copy the type define into here -#define IOCTL_READ_REGISTER SIOCDEVPRIVATE+1 -#define IOCTL_WRITE_REGISTER SIOCDEVPRIVATE+2 -#define IOCTL_READ_IPSTRUCT SIOCDEVPRIVATE+3 -#define IOCTL_READ_RXDESC SIOCDEVPRIVATE+4 -#define IOCTL_READ_TXDESC SIOCDEVPRIVATE+5 -#define IOCTL_POWER_DOWN SIOCDEVPRIVATE+6 - -#define SYNOP_GMAC0 1 - -typedef int bool; -//typedef unsigned long dma_addr_t; - -#define KUSEG_ADDR 0x0 -#define CACHED_MEMORY_ADDR KSEG0BASE -#define UNCACHED_MEMORY_ADDR KSEG0BASE -#define KSEG2_ADDR KSEG2BASE -#define MAX_MEM_ADDR KSEG3BASE -#define RESERVED_ADDR KSEG3BASE - -#define CACHED_TO_PHYS(x) ((uint64_t)(x) - CACHED_MEMORY_ADDR) -#define PHYS_TO_CACHED(x) ((uint64_t)(x) + CACHED_MEMORY_ADDR) -#define UNCACHED_TO_PHYS(x) ((uint64_t)(x) - UNCACHED_MEMORY_ADDR) -#define PHYS_TO_UNCACHED(x) ((uint64_t)(x) + UNCACHED_MEMORY_ADDR) -#define VA_TO_CINDEX(x) (PHYS_TO_CACHED(UNCACHED_TO_PHYS(x))) -#define CACHED_TO_UNCACHED(x) (PHYS_TO_UNCACHED(CACHED_TO_PHYS(x))) - -#define VA_TO_PA(x) CACHED_TO_PHYS(x) - -/* sw -#define TR0(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) - -#ifdef DEBUG -#undef TR -# define TR(fmt, args...) printk(KERN_CRIT "SynopGMAC: " fmt, ##args) -#else -# define TR(fmt, args...) // not debugging: nothing -#endif -*/ -/* -#define TR0(fmt, args...) printf("SynopGMAC: " fmt, ##args) -*/ - -/* -#ifdef DEBUG -#undef TR -# define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) -#else -//# define TR(fmt, args...) // not debugging: nothing -#define TR(fmt, args...) printf("SynopGMAC: " fmt, ##args) -#endif -*/ - -//sw: nothing to display -#define TR0(fmt, args...) //rt_kprintf(fmt, ##args) -#define TR(fmt, args...) //rt_kprintf(fmt, ##args) - -//typedef int bool; -enum synopGMAC_boolean - { - false = 0, - true = 1 - }; - -#define DEFAULT_DELAY_VARIABLE 10 -#define DEFAULT_LOOP_VARIABLE 10000 - -/* There are platform related endian conversions - * - */ -#define LE32_TO_CPU __le32_to_cpu -#define BE32_TO_CPU __be32_to_cpu -#define CPU_TO_LE32 __cpu_to_le32 - -/* Error Codes */ -#define ESYNOPGMACNOERR 0 -#define ESYNOPGMACNOMEM 1 -#define ESYNOPGMACPHYERR 2 -#define ESYNOPGMACBUSY 3 - -struct Network_interface_data -{ - u32 unit; - u64 addr; - u32 data; -}; - - -/** - * These are the wrapper function prototypes for OS/platform related routines - */ -void * plat_alloc_memory(u32 ); -void plat_free_memory(void *); - -//void * plat_alloc_consistent_dmaable_memory(struct pci_dev *, u32, u32 *); -//void plat_free_consistent_dmaable_memory (struct pci_dev *, u32, void *, u32); -void plat_delay(u32); - - -/** - * The Low level function to read register contents from Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * \return Returns the register contents - */ -static u32 synopGMACReadReg(u64 RegBase, u32 RegOffset) -{ - u64 addr; - u32 data; - - addr = RegBase + (u32)RegOffset; - data = *(volatile u32 *)addr; - -#if SYNOP_REG_DEBUG - TR("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); -#endif - // rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, (u32)RegBase, RegOffset, data ); - return data; - -} - -/** - * The Low level function to write to a register in Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Data to be written - * \return void - */ -static void synopGMACWriteReg(u64 RegBase, u32 RegOffset, u32 RegData ) -{ - u64 addr; - addr = RegBase + (u32)RegOffset; -// rt_kprintf("%s RegBase = 0x%08x RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); -#if SYNOP_REG_DEBUG - TR("%s RegBase = 0x%p RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__,(u32) RegBase, RegOffset, RegData ); -#endif - *(volatile u32 *)addr = RegData; - /*if(addr == 0xbfe1100c) - DEBUG_MES("regdata = %08x\n", RegData);*/ - return; -} - -/** - * The Low level function to set bits of a register in Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Bit mask to set bits to logical 1 - * \return void - */ -static void synopGMACSetBits(u64 RegBase, u32 RegOffset, u32 BitPos) -{ - //u64 addr = (u64)RegBase + (u64)RegOffset; - u32 data; - data = synopGMACReadReg(RegBase, RegOffset); - data |= BitPos; - synopGMACWriteReg(RegBase, RegOffset, data); - // writel(data,(void *)addr); - #if SYNOP_REG_DEBUG - TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); - #endif - return; -} - - -/** - * The Low level function to clear bits of a register in Hardware. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Bit mask to clear bits to logical 0 - * \return void - */ -static void synopGMACClearBits(u64 RegBase, u32 RegOffset, u32 BitPos) -{ - u32 data; - data = synopGMACReadReg(RegBase, RegOffset); - data &= (~BitPos); - synopGMACWriteReg(RegBase, RegOffset, data); - #if SYNOP_REG_DEBUG - TR("%s !!!!!!!!!!!!! RegOffset = 0x%08x RegData = 0x%08x\n", __FUNCTION__, RegOffset, data ); - #endif - return; -} - -/** - * The Low level function to Check the setting of the bits. - * - * @param[in] pointer to the base of register map - * @param[in] Offset from the base - * @param[in] Bit mask to set bits to logical 1 - * \return returns TRUE if set to '1' returns FALSE if set to '0'. Result undefined there are no bit set in the BitPos argument. - * - */ -static bool synopGMACCheckBits(u64 RegBase, u32 RegOffset, u32 BitPos) -{ - u32 data; - data = synopGMACReadReg(RegBase, RegOffset); - data &= BitPos; - - if(data) - { - return true; - } - else - { - return false; - } -} - -#endif diff --git a/bsp/ls2kdev/drivers/net/synopGMAC_types.h b/bsp/ls2kdev/drivers/net/synopGMAC_types.h deleted file mode 100644 index 52c7870905..0000000000 --- a/bsp/ls2kdev/drivers/net/synopGMAC_types.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2017-08-24 chinesebear first version - */ - -#ifndef __TYPES__H -#define __TYPES__H - -typedef unsigned char uint8_t; -typedef unsigned long long u64; -typedef unsigned int u32; -typedef unsigned short u16; -typedef unsigned char u8; -typedef signed int s32; - -typedef u32 dma_addr_t; - -#endif /*__TYPES__H*/ diff --git a/bsp/ls2kdev/drivers/pci/SConscript b/bsp/ls2kdev/drivers/pci/SConscript deleted file mode 100644 index 6c6d2c7adb..0000000000 --- a/bsp/ls2kdev/drivers/pci/SConscript +++ /dev/null @@ -1,10 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/ls2kdev/drivers/pci/pci.c b/bsp/ls2kdev/drivers/pci/pci.c deleted file mode 100644 index 7f62e88dc7..0000000000 --- a/bsp/ls2kdev/drivers/pci/pci.c +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-12-28 lizhirui first version - */ - -#include -#include - -rt_uint64_t pci_get_device_map_addr(rt_uint64_t bus,rt_uint64_t device,rt_uint64_t function,rt_uint32_t index) -{ - - rt_uint64_t device_addr = 0xFE00000000 | (bus << 16) | ((device & 0x1f) << 11) | ((function & 0x07) << 8); - struct pci_header *p = (struct pci_header *)(0x9000000000000000UL | device_addr); - return 0x9000000000000000UL | ((rt_uint64_t)(p -> BaseAddressRegister[index] & 0xFFFFFFF0)); -} diff --git a/bsp/ls2kdev/drivers/pci/pci.h b/bsp/ls2kdev/drivers/pci/pci.h deleted file mode 100644 index db4b3a0185..0000000000 --- a/bsp/ls2kdev/drivers/pci/pci.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2006-2018, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-12-28 lizhirui first version - */ - -#ifndef __PCI_H__ -#define __PCI_H__ - - struct pci_header - { - rt_uint16_t VendorID; - rt_uint16_t DeviceID; - rt_uint16_t Command; - rt_uint16_t Status; - rt_uint32_t RevisionID : 8; - rt_uint32_t ClassCode : 24; - rt_uint8_t CachelineSize; - rt_uint8_t LatencyTimer; - rt_uint8_t HeaderType; - rt_uint8_t BIST; - rt_uint32_t BaseAddressRegister[6]; - rt_uint32_t CardbusCISPointer; - rt_uint16_t SubsystemVendorID; - rt_uint16_t SubsystemID; - rt_uint32_t ExpansionROMBaseAddress; - rt_uint32_t CapabilitiesPointer : 8; - rt_uint32_t resv1 : 24; - rt_uint32_t resv2; - rt_uint8_t InterruptLine; - rt_uint8_t InterruptPin; - rt_uint8_t Min_Gnt; - rt_uint8_t Max_Lat; - }; - - rt_uint64_t pci_get_device_map_addr(rt_uint64_t bus,rt_uint64_t device,rt_uint64_t function,rt_uint32_t index); - -#endif diff --git a/bsp/ls2kdev/figures/loongsonpi.png b/bsp/ls2kdev/figures/loongsonpi.png deleted file mode 100644 index b24d28a4a6..0000000000 Binary files a/bsp/ls2kdev/figures/loongsonpi.png and /dev/null differ diff --git a/bsp/ls2kdev/ls2k_ram.lds b/bsp/ls2kdev/ls2k_ram.lds deleted file mode 100644 index 313a52969c..0000000000 --- a/bsp/ls2kdev/ls2k_ram.lds +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) 2006-2020, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2020-04-05 bigmagic Initial version - */ - -OUTPUT_ARCH(mips) -GROUP(-lgcc -lc) - -ENTRY(_start) -SECTIONS -{ - . = 0xffffffff82000000 ; - .text : - { - __ebase_entry = .; - KEEP(*(.exc_vectors)) - __ebase_end = .; - start = .; - *(.start); - . = ALIGN(4); - *(.text) - *(.text.*) - *(.rodata) - *(.rodata.*) - *(.rodata1) - *(.rodata1.*) - - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_utest_tc_tab_start = .; - KEEP(*(UtestTcTab)) - __rt_utest_tc_tab_end = .; - . = ALIGN(4); - } - - .eh_frame_hdr : - { - *(.eh_frame_hdr) - *(.eh_frame_entry) - } - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } - - . = ALIGN(4); - .data : - { - *(.data) - *(.data.*) - - *(.data1) - *(.data1.*) - - . = ALIGN(8); - _gp = ABSOLUTE(.); /* Base of small data */ - - *(.sdata) - *(.sdata.*) - } - - . = ALIGN(4); - .ctors : - { - PROVIDE(__ctors_start__ = .); - KEEP(*(SORT(.ctors.*))) - KEEP(*(.ctors)) - PROVIDE(__ctors_end__ = .); - } - - .dtors : - { - PROVIDE(__dtors_start__ = .); - KEEP(*(SORT(.dtors.*))) - KEEP(*(.dtors)) - PROVIDE(__dtors_end__ = .); - } - - .stack : - { - . = ALIGN(8); - _system_stack_start = .; - . = . + 0x1000; - _system_stack = .; - } - - .sbss : - { - __bss_start = .; - *(.sbss) - *(.sbss.*) - *(.dynsbss) - *(.scommon) - } - - .bss : - { - *(.bss) - *(.bss.*) - *(.dynbss) - *(COMMON) - __bss_end = .; - } - _end = .; - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } -} diff --git a/bsp/ls2kdev/rtconfig.h b/bsp/ls2kdev/rtconfig.h deleted file mode 100644 index 27fd9b0766..0000000000 --- a/bsp/ls2kdev/rtconfig.h +++ /dev/null @@ -1,282 +0,0 @@ -#ifndef RT_CONFIG_H__ -#define RT_CONFIG_H__ - -/* Automatically generated file; DO NOT EDIT. */ -/* RT-Thread Configuration */ - -/* RT-Thread Kernel */ - -#define RT_NAME_MAX 30 -#define RT_ALIGN_SIZE 8 -#define RT_THREAD_PRIORITY_32 -#define RT_THREAD_PRIORITY_MAX 32 -#define RT_TICK_PER_SECOND 1000 -#define RT_USING_OVERFLOW_CHECK -#define RT_USING_HOOK -#define RT_HOOK_USING_FUNC_PTR -#define RT_USING_IDLE_HOOK -#define RT_IDLE_HOOK_LIST_SIZE 4 -#define IDLE_THREAD_STACK_SIZE 16384 - -/* kservice optimization */ - -#define RT_DEBUG - -/* Inter-Thread communication */ - -#define RT_USING_SEMAPHORE -#define RT_USING_MUTEX -#define RT_USING_EVENT -#define RT_USING_MAILBOX -#define RT_USING_MESSAGEQUEUE - -/* Memory Management */ - -#define RT_USING_MEMPOOL -#define RT_USING_SMALL_MEM -#define RT_USING_SMALL_MEM_AS_HEAP -#define RT_USING_HEAP - -/* Kernel Device Object */ - -#define RT_USING_DEVICE -#define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 256 -#define RT_CONSOLE_DEVICE_NAME "uart0" -#define RT_VER_NUM 0x40100 -#define ARCH_CPU_64BIT -#define ARCH_MIPS64 - -/* RT-Thread Components */ - -#define RT_USING_COMPONENTS_INIT -#define RT_USING_USER_MAIN -#define RT_MAIN_THREAD_STACK_SIZE 16384 -#define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - - -/* Command shell */ - -#define RT_USING_FINSH -#define RT_USING_MSH -#define FINSH_USING_MSH -#define FINSH_THREAD_NAME "tshell" -#define FINSH_THREAD_PRIORITY 20 -#define FINSH_THREAD_STACK_SIZE 16384 -#define FINSH_USING_HISTORY -#define FINSH_HISTORY_LINES 5 -#define FINSH_USING_SYMTAB -#define FINSH_CMD_SIZE 80 -#define MSH_USING_BUILT_IN_COMMANDS -#define FINSH_USING_DESCRIPTION -#define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - -#define RT_USING_DFS -#define DFS_USING_POSIX -#define DFS_USING_WORKDIR -#define DFS_FILESYSTEMS_MAX 4 -#define DFS_FILESYSTEM_TYPES_MAX 4 -#define DFS_FD_MAX 16 -#define RT_USING_DFS_ELMFAT - -/* elm-chan's FatFs, Generic FAT Filesystem Module */ - -#define RT_DFS_ELM_CODE_PAGE 936 -#define RT_DFS_ELM_WORD_ACCESS -#define RT_DFS_ELM_USE_LFN_3 -#define RT_DFS_ELM_USE_LFN 3 -#define RT_DFS_ELM_LFN_UNICODE_0 -#define RT_DFS_ELM_LFN_UNICODE 0 -#define RT_DFS_ELM_MAX_LFN 255 -#define RT_DFS_ELM_DRIVES 9 -#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 -#define RT_DFS_ELM_REENTRANT -#define RT_DFS_ELM_MUTEX_TIMEOUT 3000 -#define RT_USING_DFS_DEVFS - -/* Device Drivers */ - -#define RT_USING_DEVICE_IPC -#define RT_USING_SYSTEM_WORKQUEUE -#define RT_SYSTEM_WORKQUEUE_STACKSIZE 16384 -#define RT_SYSTEM_WORKQUEUE_PRIORITY 5 -#define RT_USING_SERIAL -#define RT_USING_SERIAL_V1 -#define RT_SERIAL_USING_DMA -#define RT_SERIAL_RB_BUFSZ 64 -#define RT_USING_PIN -#define RT_USING_SPI - -/* Using USB */ - - -/* POSIX layer and C standard library */ - -#define RT_LIBC_DEFAULT_TIMEZONE 8 - -/* POSIX (Portable Operating System Interface) layer */ - - -/* Interprocess Communication (IPC) */ - - -/* Socket is in the 'Network' category */ - -/* Network */ - -/* Socket abstraction layer */ - -#define RT_USING_SAL -#define SAL_INTERNET_CHECK - -/* protocol stack implement */ - -#define SAL_USING_LWIP -#define SAL_SOCKETS_NUM 16 - -/* Network interface device */ - -#define RT_USING_NETDEV -#define NETDEV_USING_IFCONFIG -#define NETDEV_USING_PING -#define NETDEV_USING_NETSTAT -#define NETDEV_USING_AUTO_DEFAULT -#define NETDEV_IPV4 1 -#define NETDEV_IPV6 0 - -/* light weight TCP/IP stack */ - -#define RT_USING_LWIP -#define RT_USING_LWIP203 -#define RT_LWIP_MEM_ALIGNMENT 8 -#define RT_LWIP_IGMP -#define RT_LWIP_ICMP -#define RT_LWIP_SNMP -#define RT_LWIP_DNS -#define RT_LWIP_DHCP -#define IP_SOF_BROADCAST 1 -#define IP_SOF_BROADCAST_RECV 1 - -/* Static IPv4 Address */ - -#define RT_LWIP_IPADDR "192.168.1.30" -#define RT_LWIP_GWADDR "192.168.1.1" -#define RT_LWIP_MSKADDR "255.255.255.0" -#define RT_LWIP_UDP -#define RT_LWIP_TCP -#define RT_LWIP_RAW -#define RT_MEMP_NUM_NETCONN 8 -#define RT_LWIP_PBUF_NUM 16 -#define RT_LWIP_RAW_PCB_NUM 4 -#define RT_LWIP_UDP_PCB_NUM 4 -#define RT_LWIP_TCP_PCB_NUM 4 -#define RT_LWIP_TCP_SEG_NUM 40 -#define RT_LWIP_TCP_SND_BUF 8196 -#define RT_LWIP_TCP_WND 8196 -#define RT_LWIP_TCPTHREAD_PRIORITY 5 -#define RT_LWIP_TCPTHREAD_MBOX_SIZE 32 -#define RT_LWIP_TCPTHREAD_STACKSIZE 16384 -#define RT_LWIP_ETHTHREAD_PRIORITY 5 -#define RT_LWIP_ETHTHREAD_STACKSIZE 16384 -#define RT_LWIP_ETHTHREAD_MBOX_SIZE 32 -#define RT_LWIP_REASSEMBLY_FRAG -#define LWIP_NETIF_STATUS_CALLBACK 1 -#define LWIP_NETIF_LINK_CALLBACK 1 -#define SO_REUSE 1 -#define LWIP_SO_RCVTIMEO 1 -#define LWIP_SO_SNDTIMEO 1 -#define LWIP_SO_RCVBUF 1 -#define LWIP_SO_LINGER 0 -#define LWIP_NETIF_LOOPBACK 0 -#define RT_LWIP_STATS -#define RT_LWIP_USING_PING - -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ - - -/* Utilities */ - - -/* RT-Thread Utestcases */ - - -/* RT-Thread MIPS CPU */ - - -/* RT-Thread online packages */ - -/* IoT - internet of things */ - - -/* Wi-Fi */ - -/* Marvell WiFi */ - - -/* Wiced WiFi */ - - -/* IoT Cloud */ - - -/* security packages */ - - -/* language packages */ - - -/* multimedia packages */ - -/* LVGL: powerful and easy-to-use embedded GUI library */ - - -/* u8g2: a monochrome graphic library */ - - -/* PainterEngine: A cross-platform graphics application framework written in C language */ - - -/* tools packages */ - - -/* system packages */ - -/* enhanced kernel services */ - - -/* POSIX extension functions */ - - -/* acceleration: Assembly language or algorithmic acceleration packages */ - - -/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ - - -/* Micrium: Micrium software products porting for RT-Thread */ - - -/* peripheral libraries and drivers */ - - -/* AI packages */ - - -/* miscellaneous packages */ - -/* samples: kernel and components samples */ - - -/* entertainment: terminal games and other interesting software packages */ - -#define SOC_LS2K1000 -#define RT_USING_UART0 - -#endif diff --git a/bsp/ls2kdev/rtconfig.py b/bsp/ls2kdev/rtconfig.py deleted file mode 100644 index 0988198426..0000000000 --- a/bsp/ls2kdev/rtconfig.py +++ /dev/null @@ -1,61 +0,0 @@ -import os -# CPU options -ARCH='mips' -CPU ='gs264' - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = '../..' - -# toolchains options -CROSS_TOOL = 'gcc' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = "/opt/mips-2015.05-19-mips-sde-elf-i686-pc-linux-gnu/mips-2015.05/bin/" -# EXEC_PATH = r'D:\mgc\embedded\codebench\bin' -else: - print('================ERROR===========================') - print('Not support %s yet!' % CROSS_TOOL) - print('=================================================') - exit(0) - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -PREFIX = 'mips-sde-elf-' -CC = PREFIX + 'gcc' -CXX = PREFIX + 'g++' -AS = PREFIX + 'gcc' -AR = PREFIX + 'ar' -LINK = PREFIX + 'gcc' -TARGET_EXT = 'elf' -SIZE = PREFIX + 'size' -OBJDUMP = PREFIX + 'objdump' -OBJCPY = PREFIX + 'objcopy' -READELF = PREFIX + 'readelf' - -DEVICE = ' -march=mips64r2 -mabi=64 -msoft-float -EL -mno-gpopt' -CFLAGS = DEVICE + ' -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' -AFLAGS = ' -c' + DEVICE + ' -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' -LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls2k_ram.lds' -CXXFLAGS = CFLAGS - -CPATH = '' -LPATH = '' - -if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' -else: - CFLAGS += ' -O2' - -DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' -READELF_ACTION = READELF + ' -a $TARGET > rtt.map\n' -POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' -- cgit v1.3.1 From c8420ffc0bde62753d7d90b449c4376056c275dd Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 28 Mar 2022 20:09:56 -0400 Subject: 将at91系列BSP并入一个文件夹中 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/action.yml | 3 +- bsp/at91/at91sam9260/.config | 665 ++ bsp/at91/at91sam9260/Kconfig | 52 + bsp/at91/at91sam9260/SConscript | 14 + bsp/at91/at91sam9260/SConstruct | 39 + bsp/at91/at91sam9260/applications/SConscript | 11 + bsp/at91/at91sam9260/applications/application.c | 158 + bsp/at91/at91sam9260/debug_scripts/at91sam9260.gdb | 230 + bsp/at91/at91sam9260/debug_scripts/at91sam9260.ini | 248 + bsp/at91/at91sam9260/debug_scripts/at91sam9260.mac | 252 + bsp/at91/at91sam9260/drivers/SConscript | 33 + bsp/at91/at91sam9260/drivers/at91_i2c_gpio.c | 116 + bsp/at91/at91sam9260/drivers/at91_mci.c | 910 +++ bsp/at91/at91sam9260/drivers/at91_mci.h | 110 + bsp/at91/at91sam9260/drivers/at91_nand.c | 635 ++ bsp/at91/at91sam9260/drivers/at91_nand.h | 120 + bsp/at91/at91sam9260/drivers/board.c | 260 + bsp/at91/at91sam9260/drivers/board.h | 18 + bsp/at91/at91sam9260/drivers/led.c | 72 + bsp/at91/at91sam9260/drivers/led.h | 18 + bsp/at91/at91sam9260/drivers/macb.c | 897 +++ bsp/at91/at91sam9260/drivers/macb.h | 332 + bsp/at91/at91sam9260/drivers/mii.h | 177 + bsp/at91/at91sam9260/drivers/usart.c | 424 ++ .../at91sam9260/link_scripts/at91sam9260_ram.icf | 55 + .../at91sam9260/link_scripts/at91sam9260_ram.ld | 98 + .../at91sam9260/link_scripts/at91sam9260_ram.scat | 40 + bsp/at91/at91sam9260/platform/SConscript | 26 + bsp/at91/at91sam9260/platform/at91_aic.h | 59 + bsp/at91/at91sam9260/platform/at91_pdc.h | 31 + bsp/at91/at91sam9260/platform/at91_pio.h | 53 + bsp/at91/at91sam9260/platform/at91_pit.h | 36 + bsp/at91/at91sam9260/platform/at91_pmc.h | 137 + bsp/at91/at91sam9260/platform/at91_rstc.h | 45 + bsp/at91/at91sam9260/platform/at91_serial.h | 131 + bsp/at91/at91sam9260/platform/at91_shdwc.h | 42 + bsp/at91/at91sam9260/platform/at91_tc.h | 150 + bsp/at91/at91sam9260/platform/at91sam9260_matrix.h | 85 + bsp/at91/at91sam9260/platform/at91sam926x.h | 212 + bsp/at91/at91sam9260/platform/gpio.h | 130 + bsp/at91/at91sam9260/platform/interrupt.c | 450 ++ bsp/at91/at91sam9260/platform/interrupt.h | 17 + bsp/at91/at91sam9260/platform/io.h | 43 + bsp/at91/at91sam9260/platform/irq.h | 38 + bsp/at91/at91sam9260/platform/reset.c | 53 + bsp/at91/at91sam9260/platform/rt_low_level_init.c | 50 + bsp/at91/at91sam9260/platform/rt_low_level_init.h | 21 + bsp/at91/at91sam9260/platform/system_clock.c | 290 + bsp/at91/at91sam9260/project.uvopt | 183 + bsp/at91/at91sam9260/project.uvproj | 815 +++ bsp/at91/at91sam9260/rtconfig.h | 203 + bsp/at91/at91sam9260/rtconfig.py | 63 + bsp/at91/at91sam9260/template.ewp | 1914 ++++++ bsp/at91/at91sam9260/template.eww | 10 + bsp/at91/at91sam9260/template.uvopt | 183 + bsp/at91/at91sam9260/template.uvproj | 419 ++ bsp/at91/at91sam9g45/.config | 672 ++ bsp/at91/at91sam9g45/Kconfig | 37 + bsp/at91/at91sam9g45/SConscript | 14 + bsp/at91/at91sam9g45/SConstruct | 40 + bsp/at91/at91sam9g45/applications/SConscript | 11 + bsp/at91/at91sam9g45/applications/application.c | 159 + bsp/at91/at91sam9g45/drivers/Kconfig | 7 + bsp/at91/at91sam9g45/drivers/SConscript | 31 + bsp/at91/at91sam9g45/drivers/at91_i2c_gpio.c | 116 + bsp/at91/at91sam9g45/drivers/at91_mci.c | 910 +++ bsp/at91/at91sam9g45/drivers/at91_mci.h | 110 + bsp/at91/at91sam9g45/drivers/board.c | 235 + bsp/at91/at91sam9g45/drivers/board.h | 18 + bsp/at91/at91sam9g45/drivers/led.c | 40 + bsp/at91/at91sam9g45/drivers/led.h | 18 + bsp/at91/at91sam9g45/drivers/macb.c | 897 +++ bsp/at91/at91sam9g45/drivers/macb.h | 332 + bsp/at91/at91sam9g45/drivers/mii.h | 177 + bsp/at91/at91sam9g45/drivers/usart.c | 384 ++ .../at91sam9g45/link_scripts/at91sam9g45_ram.icf | 55 + .../at91sam9g45/link_scripts/at91sam9g45_ram.ld | 98 + .../at91sam9g45/link_scripts/at91sam9g45_ram.scat | 40 + bsp/at91/at91sam9g45/platform/SConscript | 26 + bsp/at91/at91sam9g45/platform/at91sam9g45.h | 7213 ++++++++++++++++++++ bsp/at91/at91sam9g45/platform/gpio.h | 194 + bsp/at91/at91sam9g45/platform/interrupt.c | 460 ++ bsp/at91/at91sam9g45/platform/interrupt.h | 17 + bsp/at91/at91sam9g45/platform/io.h | 25 + bsp/at91/at91sam9g45/platform/irq.h | 38 + bsp/at91/at91sam9g45/platform/reset.c | 52 + bsp/at91/at91sam9g45/platform/rt_low_level_init.c | 49 + bsp/at91/at91sam9g45/platform/rt_low_level_init.h | 21 + bsp/at91/at91sam9g45/platform/system_clock.c | 256 + bsp/at91/at91sam9g45/project.uvopt | 174 + bsp/at91/at91sam9g45/project.uvproj | 914 +++ bsp/at91/at91sam9g45/rtconfig.h | 215 + bsp/at91/at91sam9g45/rtconfig.py | 138 + bsp/at91/at91sam9g45/template.ewp | 1914 ++++++ bsp/at91/at91sam9g45/template.eww | 10 + bsp/at91/at91sam9g45/template.uvopt | 174 + bsp/at91/at91sam9g45/template.uvproj | 407 ++ bsp/at91sam9260/.config | 665 -- bsp/at91sam9260/Kconfig | 52 - bsp/at91sam9260/SConscript | 14 - bsp/at91sam9260/SConstruct | 39 - bsp/at91sam9260/applications/SConscript | 11 - bsp/at91sam9260/applications/application.c | 158 - bsp/at91sam9260/debug_scripts/at91sam9260.gdb | 230 - bsp/at91sam9260/debug_scripts/at91sam9260.ini | 248 - bsp/at91sam9260/debug_scripts/at91sam9260.mac | 252 - bsp/at91sam9260/drivers/SConscript | 33 - bsp/at91sam9260/drivers/at91_i2c_gpio.c | 116 - bsp/at91sam9260/drivers/at91_mci.c | 910 --- bsp/at91sam9260/drivers/at91_mci.h | 110 - bsp/at91sam9260/drivers/at91_nand.c | 635 -- bsp/at91sam9260/drivers/at91_nand.h | 120 - bsp/at91sam9260/drivers/board.c | 260 - bsp/at91sam9260/drivers/board.h | 18 - bsp/at91sam9260/drivers/led.c | 72 - bsp/at91sam9260/drivers/led.h | 18 - bsp/at91sam9260/drivers/macb.c | 897 --- bsp/at91sam9260/drivers/macb.h | 332 - bsp/at91sam9260/drivers/mii.h | 177 - bsp/at91sam9260/drivers/usart.c | 424 -- bsp/at91sam9260/link_scripts/at91sam9260_ram.icf | 55 - bsp/at91sam9260/link_scripts/at91sam9260_ram.ld | 98 - bsp/at91sam9260/link_scripts/at91sam9260_ram.scat | 40 - bsp/at91sam9260/platform/SConscript | 26 - bsp/at91sam9260/platform/at91_aic.h | 59 - bsp/at91sam9260/platform/at91_pdc.h | 31 - bsp/at91sam9260/platform/at91_pio.h | 53 - bsp/at91sam9260/platform/at91_pit.h | 36 - bsp/at91sam9260/platform/at91_pmc.h | 137 - bsp/at91sam9260/platform/at91_rstc.h | 45 - bsp/at91sam9260/platform/at91_serial.h | 131 - bsp/at91sam9260/platform/at91_shdwc.h | 42 - bsp/at91sam9260/platform/at91_tc.h | 150 - bsp/at91sam9260/platform/at91sam9260_matrix.h | 85 - bsp/at91sam9260/platform/at91sam926x.h | 212 - bsp/at91sam9260/platform/gpio.h | 130 - bsp/at91sam9260/platform/interrupt.c | 450 -- bsp/at91sam9260/platform/interrupt.h | 17 - bsp/at91sam9260/platform/io.h | 43 - bsp/at91sam9260/platform/irq.h | 38 - bsp/at91sam9260/platform/reset.c | 53 - bsp/at91sam9260/platform/rt_low_level_init.c | 50 - bsp/at91sam9260/platform/rt_low_level_init.h | 21 - bsp/at91sam9260/platform/system_clock.c | 290 - bsp/at91sam9260/project.uvopt | 183 - bsp/at91sam9260/project.uvproj | 815 --- bsp/at91sam9260/rtconfig.h | 203 - bsp/at91sam9260/rtconfig.py | 63 - bsp/at91sam9260/template.ewp | 1914 ------ bsp/at91sam9260/template.eww | 10 - bsp/at91sam9260/template.uvopt | 183 - bsp/at91sam9260/template.uvproj | 419 -- bsp/at91sam9g45/.config | 672 -- bsp/at91sam9g45/Kconfig | 37 - bsp/at91sam9g45/SConscript | 14 - bsp/at91sam9g45/SConstruct | 40 - bsp/at91sam9g45/applications/SConscript | 11 - bsp/at91sam9g45/applications/application.c | 159 - bsp/at91sam9g45/drivers/Kconfig | 7 - bsp/at91sam9g45/drivers/SConscript | 31 - bsp/at91sam9g45/drivers/at91_i2c_gpio.c | 116 - bsp/at91sam9g45/drivers/at91_mci.c | 910 --- bsp/at91sam9g45/drivers/at91_mci.h | 110 - bsp/at91sam9g45/drivers/board.c | 235 - bsp/at91sam9g45/drivers/board.h | 18 - bsp/at91sam9g45/drivers/led.c | 40 - bsp/at91sam9g45/drivers/led.h | 18 - bsp/at91sam9g45/drivers/macb.c | 897 --- bsp/at91sam9g45/drivers/macb.h | 332 - bsp/at91sam9g45/drivers/mii.h | 177 - bsp/at91sam9g45/drivers/usart.c | 384 -- bsp/at91sam9g45/link_scripts/at91sam9g45_ram.icf | 55 - bsp/at91sam9g45/link_scripts/at91sam9g45_ram.ld | 98 - bsp/at91sam9g45/link_scripts/at91sam9g45_ram.scat | 40 - bsp/at91sam9g45/platform/SConscript | 26 - bsp/at91sam9g45/platform/at91sam9g45.h | 7213 -------------------- bsp/at91sam9g45/platform/gpio.h | 194 - bsp/at91sam9g45/platform/interrupt.c | 460 -- bsp/at91sam9g45/platform/interrupt.h | 17 - bsp/at91sam9g45/platform/io.h | 25 - bsp/at91sam9g45/platform/irq.h | 38 - bsp/at91sam9g45/platform/reset.c | 52 - bsp/at91sam9g45/platform/rt_low_level_init.c | 49 - bsp/at91sam9g45/platform/rt_low_level_init.h | 21 - bsp/at91sam9g45/platform/system_clock.c | 256 - bsp/at91sam9g45/project.uvopt | 174 - bsp/at91sam9g45/project.uvproj | 914 --- bsp/at91sam9g45/rtconfig.h | 215 - bsp/at91sam9g45/rtconfig.py | 138 - bsp/at91sam9g45/template.ewp | 1914 ------ bsp/at91sam9g45/template.eww | 10 - bsp/at91sam9g45/template.uvopt | 174 - bsp/at91sam9g45/template.uvproj | 407 -- 193 files changed, 28573 insertions(+), 28572 deletions(-) create mode 100644 bsp/at91/at91sam9260/.config create mode 100644 bsp/at91/at91sam9260/Kconfig create mode 100644 bsp/at91/at91sam9260/SConscript create mode 100644 bsp/at91/at91sam9260/SConstruct create mode 100644 bsp/at91/at91sam9260/applications/SConscript create mode 100644 bsp/at91/at91sam9260/applications/application.c create mode 100644 bsp/at91/at91sam9260/debug_scripts/at91sam9260.gdb create mode 100644 bsp/at91/at91sam9260/debug_scripts/at91sam9260.ini create mode 100644 bsp/at91/at91sam9260/debug_scripts/at91sam9260.mac create mode 100644 bsp/at91/at91sam9260/drivers/SConscript create mode 100644 bsp/at91/at91sam9260/drivers/at91_i2c_gpio.c create mode 100644 bsp/at91/at91sam9260/drivers/at91_mci.c create mode 100644 bsp/at91/at91sam9260/drivers/at91_mci.h create mode 100644 bsp/at91/at91sam9260/drivers/at91_nand.c create mode 100644 bsp/at91/at91sam9260/drivers/at91_nand.h create mode 100644 bsp/at91/at91sam9260/drivers/board.c create mode 100644 bsp/at91/at91sam9260/drivers/board.h create mode 100644 bsp/at91/at91sam9260/drivers/led.c create mode 100644 bsp/at91/at91sam9260/drivers/led.h create mode 100644 bsp/at91/at91sam9260/drivers/macb.c create mode 100644 bsp/at91/at91sam9260/drivers/macb.h create mode 100644 bsp/at91/at91sam9260/drivers/mii.h create mode 100644 bsp/at91/at91sam9260/drivers/usart.c create mode 100644 bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.icf create mode 100644 bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.ld create mode 100644 bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.scat create mode 100644 bsp/at91/at91sam9260/platform/SConscript create mode 100644 bsp/at91/at91sam9260/platform/at91_aic.h create mode 100644 bsp/at91/at91sam9260/platform/at91_pdc.h create mode 100644 bsp/at91/at91sam9260/platform/at91_pio.h create mode 100644 bsp/at91/at91sam9260/platform/at91_pit.h create mode 100644 bsp/at91/at91sam9260/platform/at91_pmc.h create mode 100644 bsp/at91/at91sam9260/platform/at91_rstc.h create mode 100644 bsp/at91/at91sam9260/platform/at91_serial.h create mode 100644 bsp/at91/at91sam9260/platform/at91_shdwc.h create mode 100644 bsp/at91/at91sam9260/platform/at91_tc.h create mode 100644 bsp/at91/at91sam9260/platform/at91sam9260_matrix.h create mode 100644 bsp/at91/at91sam9260/platform/at91sam926x.h create mode 100644 bsp/at91/at91sam9260/platform/gpio.h create mode 100644 bsp/at91/at91sam9260/platform/interrupt.c create mode 100644 bsp/at91/at91sam9260/platform/interrupt.h create mode 100644 bsp/at91/at91sam9260/platform/io.h create mode 100644 bsp/at91/at91sam9260/platform/irq.h create mode 100644 bsp/at91/at91sam9260/platform/reset.c create mode 100644 bsp/at91/at91sam9260/platform/rt_low_level_init.c create mode 100644 bsp/at91/at91sam9260/platform/rt_low_level_init.h create mode 100644 bsp/at91/at91sam9260/platform/system_clock.c create mode 100644 bsp/at91/at91sam9260/project.uvopt create mode 100644 bsp/at91/at91sam9260/project.uvproj create mode 100644 bsp/at91/at91sam9260/rtconfig.h create mode 100644 bsp/at91/at91sam9260/rtconfig.py create mode 100644 bsp/at91/at91sam9260/template.ewp create mode 100644 bsp/at91/at91sam9260/template.eww create mode 100644 bsp/at91/at91sam9260/template.uvopt create mode 100644 bsp/at91/at91sam9260/template.uvproj create mode 100644 bsp/at91/at91sam9g45/.config create mode 100644 bsp/at91/at91sam9g45/Kconfig create mode 100644 bsp/at91/at91sam9g45/SConscript create mode 100644 bsp/at91/at91sam9g45/SConstruct create mode 100644 bsp/at91/at91sam9g45/applications/SConscript create mode 100644 bsp/at91/at91sam9g45/applications/application.c create mode 100644 bsp/at91/at91sam9g45/drivers/Kconfig create mode 100644 bsp/at91/at91sam9g45/drivers/SConscript create mode 100644 bsp/at91/at91sam9g45/drivers/at91_i2c_gpio.c create mode 100644 bsp/at91/at91sam9g45/drivers/at91_mci.c create mode 100644 bsp/at91/at91sam9g45/drivers/at91_mci.h create mode 100644 bsp/at91/at91sam9g45/drivers/board.c create mode 100644 bsp/at91/at91sam9g45/drivers/board.h create mode 100644 bsp/at91/at91sam9g45/drivers/led.c create mode 100644 bsp/at91/at91sam9g45/drivers/led.h create mode 100644 bsp/at91/at91sam9g45/drivers/macb.c create mode 100644 bsp/at91/at91sam9g45/drivers/macb.h create mode 100644 bsp/at91/at91sam9g45/drivers/mii.h create mode 100644 bsp/at91/at91sam9g45/drivers/usart.c create mode 100644 bsp/at91/at91sam9g45/link_scripts/at91sam9g45_ram.icf create mode 100644 bsp/at91/at91sam9g45/link_scripts/at91sam9g45_ram.ld create mode 100644 bsp/at91/at91sam9g45/link_scripts/at91sam9g45_ram.scat create mode 100644 bsp/at91/at91sam9g45/platform/SConscript create mode 100644 bsp/at91/at91sam9g45/platform/at91sam9g45.h create mode 100644 bsp/at91/at91sam9g45/platform/gpio.h create mode 100644 bsp/at91/at91sam9g45/platform/interrupt.c create mode 100644 bsp/at91/at91sam9g45/platform/interrupt.h create mode 100644 bsp/at91/at91sam9g45/platform/io.h create mode 100644 bsp/at91/at91sam9g45/platform/irq.h create mode 100644 bsp/at91/at91sam9g45/platform/reset.c create mode 100644 bsp/at91/at91sam9g45/platform/rt_low_level_init.c create mode 100644 bsp/at91/at91sam9g45/platform/rt_low_level_init.h create mode 100644 bsp/at91/at91sam9g45/platform/system_clock.c create mode 100644 bsp/at91/at91sam9g45/project.uvopt create mode 100644 bsp/at91/at91sam9g45/project.uvproj create mode 100644 bsp/at91/at91sam9g45/rtconfig.h create mode 100644 bsp/at91/at91sam9g45/rtconfig.py create mode 100644 bsp/at91/at91sam9g45/template.ewp create mode 100644 bsp/at91/at91sam9g45/template.eww create mode 100644 bsp/at91/at91sam9g45/template.uvopt create mode 100644 bsp/at91/at91sam9g45/template.uvproj delete mode 100644 bsp/at91sam9260/.config delete mode 100644 bsp/at91sam9260/Kconfig delete mode 100755 bsp/at91sam9260/SConscript delete mode 100755 bsp/at91sam9260/SConstruct delete mode 100644 bsp/at91sam9260/applications/SConscript delete mode 100644 bsp/at91sam9260/applications/application.c delete mode 100644 bsp/at91sam9260/debug_scripts/at91sam9260.gdb delete mode 100644 bsp/at91sam9260/debug_scripts/at91sam9260.ini delete mode 100644 bsp/at91sam9260/debug_scripts/at91sam9260.mac delete mode 100644 bsp/at91sam9260/drivers/SConscript delete mode 100644 bsp/at91sam9260/drivers/at91_i2c_gpio.c delete mode 100644 bsp/at91sam9260/drivers/at91_mci.c delete mode 100644 bsp/at91sam9260/drivers/at91_mci.h delete mode 100644 bsp/at91sam9260/drivers/at91_nand.c delete mode 100644 bsp/at91sam9260/drivers/at91_nand.h delete mode 100644 bsp/at91sam9260/drivers/board.c delete mode 100644 bsp/at91sam9260/drivers/board.h delete mode 100644 bsp/at91sam9260/drivers/led.c delete mode 100644 bsp/at91sam9260/drivers/led.h delete mode 100644 bsp/at91sam9260/drivers/macb.c delete mode 100644 bsp/at91sam9260/drivers/macb.h delete mode 100644 bsp/at91sam9260/drivers/mii.h delete mode 100644 bsp/at91sam9260/drivers/usart.c delete mode 100644 bsp/at91sam9260/link_scripts/at91sam9260_ram.icf delete mode 100644 bsp/at91sam9260/link_scripts/at91sam9260_ram.ld delete mode 100644 bsp/at91sam9260/link_scripts/at91sam9260_ram.scat delete mode 100644 bsp/at91sam9260/platform/SConscript delete mode 100644 bsp/at91sam9260/platform/at91_aic.h delete mode 100644 bsp/at91sam9260/platform/at91_pdc.h delete mode 100644 bsp/at91sam9260/platform/at91_pio.h delete mode 100644 bsp/at91sam9260/platform/at91_pit.h delete mode 100644 bsp/at91sam9260/platform/at91_pmc.h delete mode 100644 bsp/at91sam9260/platform/at91_rstc.h delete mode 100644 bsp/at91sam9260/platform/at91_serial.h delete mode 100644 bsp/at91sam9260/platform/at91_shdwc.h delete mode 100644 bsp/at91sam9260/platform/at91_tc.h delete mode 100644 bsp/at91sam9260/platform/at91sam9260_matrix.h delete mode 100644 bsp/at91sam9260/platform/at91sam926x.h delete mode 100644 bsp/at91sam9260/platform/gpio.h delete mode 100644 bsp/at91sam9260/platform/interrupt.c delete mode 100644 bsp/at91sam9260/platform/interrupt.h delete mode 100644 bsp/at91sam9260/platform/io.h delete mode 100644 bsp/at91sam9260/platform/irq.h delete mode 100644 bsp/at91sam9260/platform/reset.c delete mode 100644 bsp/at91sam9260/platform/rt_low_level_init.c delete mode 100644 bsp/at91sam9260/platform/rt_low_level_init.h delete mode 100644 bsp/at91sam9260/platform/system_clock.c delete mode 100644 bsp/at91sam9260/project.uvopt delete mode 100644 bsp/at91sam9260/project.uvproj delete mode 100755 bsp/at91sam9260/rtconfig.h delete mode 100755 bsp/at91sam9260/rtconfig.py delete mode 100644 bsp/at91sam9260/template.ewp delete mode 100644 bsp/at91sam9260/template.eww delete mode 100644 bsp/at91sam9260/template.uvopt delete mode 100644 bsp/at91sam9260/template.uvproj delete mode 100644 bsp/at91sam9g45/.config delete mode 100644 bsp/at91sam9g45/Kconfig delete mode 100644 bsp/at91sam9g45/SConscript delete mode 100644 bsp/at91sam9g45/SConstruct delete mode 100644 bsp/at91sam9g45/applications/SConscript delete mode 100644 bsp/at91sam9g45/applications/application.c delete mode 100644 bsp/at91sam9g45/drivers/Kconfig delete mode 100644 bsp/at91sam9g45/drivers/SConscript delete mode 100644 bsp/at91sam9g45/drivers/at91_i2c_gpio.c delete mode 100644 bsp/at91sam9g45/drivers/at91_mci.c delete mode 100644 bsp/at91sam9g45/drivers/at91_mci.h delete mode 100644 bsp/at91sam9g45/drivers/board.c delete mode 100644 bsp/at91sam9g45/drivers/board.h delete mode 100644 bsp/at91sam9g45/drivers/led.c delete mode 100644 bsp/at91sam9g45/drivers/led.h delete mode 100644 bsp/at91sam9g45/drivers/macb.c delete mode 100644 bsp/at91sam9g45/drivers/macb.h delete mode 100644 bsp/at91sam9g45/drivers/mii.h delete mode 100644 bsp/at91sam9g45/drivers/usart.c delete mode 100644 bsp/at91sam9g45/link_scripts/at91sam9g45_ram.icf delete mode 100644 bsp/at91sam9g45/link_scripts/at91sam9g45_ram.ld delete mode 100644 bsp/at91sam9g45/link_scripts/at91sam9g45_ram.scat delete mode 100644 bsp/at91sam9g45/platform/SConscript delete mode 100644 bsp/at91sam9g45/platform/at91sam9g45.h delete mode 100644 bsp/at91sam9g45/platform/gpio.h delete mode 100644 bsp/at91sam9g45/platform/interrupt.c delete mode 100644 bsp/at91sam9g45/platform/interrupt.h delete mode 100644 bsp/at91sam9g45/platform/io.h delete mode 100644 bsp/at91sam9g45/platform/irq.h delete mode 100644 bsp/at91sam9g45/platform/reset.c delete mode 100644 bsp/at91sam9g45/platform/rt_low_level_init.c delete mode 100644 bsp/at91sam9g45/platform/rt_low_level_init.h delete mode 100644 bsp/at91sam9g45/platform/system_clock.c delete mode 100644 bsp/at91sam9g45/project.uvopt delete mode 100644 bsp/at91sam9g45/project.uvproj delete mode 100644 bsp/at91sam9g45/rtconfig.h delete mode 100644 bsp/at91sam9g45/rtconfig.py delete mode 100644 bsp/at91sam9g45/template.ewp delete mode 100644 bsp/at91sam9g45/template.eww delete mode 100644 bsp/at91sam9g45/template.uvopt delete mode 100644 bsp/at91sam9g45/template.uvproj (limited to '.github/workflows') diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 1eee8e8f2a..e2941cec64 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -35,7 +35,8 @@ jobs: - {RTT_BSP: "apm32/apm32f103xe-minibroard", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "apollo2", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "asm9260t", RTT_TOOL_CHAIN: "sourcery-arm"} - - {RTT_BSP: "at91sam9260", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "at91/at91sam9g45", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "at91/at91sam9260", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "allwinner_tina", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "ft32/ft32f072xb-starter", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "gd32/gd32103c-eval", RTT_TOOL_CHAIN: "sourcery-arm"} diff --git a/bsp/at91/at91sam9260/.config b/bsp/at91/at91sam9260/.config new file mode 100644 index 0000000000..282fd47a0e --- /dev/null +++ b/bsp/at91/at91sam9260/.config @@ -0,0 +1,665 @@ +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# + +# +# RT-Thread Kernel +# +CONFIG_RT_NAME_MAX=8 +# CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMP is not set +CONFIG_RT_ALIGN_SIZE=4 +# CONFIG_RT_THREAD_PRIORITY_8 is not set +CONFIG_RT_THREAD_PRIORITY_32=y +# CONFIG_RT_THREAD_PRIORITY_256 is not set +CONFIG_RT_THREAD_PRIORITY_MAX=32 +CONFIG_RT_TICK_PER_SECOND=100 +CONFIG_RT_USING_OVERFLOW_CHECK=y +CONFIG_RT_USING_HOOK=y +CONFIG_RT_HOOK_USING_FUNC_PTR=y +CONFIG_RT_USING_IDLE_HOOK=y +CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 +CONFIG_IDLE_THREAD_STACK_SIZE=256 +# CONFIG_RT_USING_TIMER_SOFT is not set + +# +# kservice optimization +# +# CONFIG_RT_KSERVICE_USING_STDLIB is not set +# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set +# CONFIG_RT_USING_TINY_FFS is not set +# CONFIG_RT_PRINTF_LONGLONG is not set +CONFIG_RT_DEBUG=y +CONFIG_RT_DEBUG_COLOR=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set + +# +# Inter-Thread communication +# +CONFIG_RT_USING_SEMAPHORE=y +CONFIG_RT_USING_MUTEX=y +CONFIG_RT_USING_EVENT=y +CONFIG_RT_USING_MAILBOX=y +CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_SIGNALS is not set + +# +# Memory Management +# +CONFIG_RT_USING_MEMPOOL=y +CONFIG_RT_USING_SMALL_MEM=y +# CONFIG_RT_USING_SLAB is not set +# CONFIG_RT_USING_MEMHEAP is not set +CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y +# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_SLAB_AS_HEAP is not set +# CONFIG_RT_USING_USERHEAP is not set +# CONFIG_RT_USING_NOHEAP is not set +# CONFIG_RT_USING_MEMTRACE is not set +# CONFIG_RT_USING_HEAP_ISR is not set +CONFIG_RT_USING_HEAP=y + +# +# Kernel Device Object +# +CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set +CONFIG_RT_USING_INTERRUPT_INFO=y +CONFIG_RT_USING_CONSOLE=y +CONFIG_RT_CONSOLEBUF_SIZE=128 +CONFIG_RT_CONSOLE_DEVICE_NAME="dbgu" +CONFIG_RT_VER_NUM=0x40100 +# CONFIG_RT_USING_CPU_FFS is not set +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set + +# +# RT-Thread Components +# +CONFIG_RT_USING_COMPONENTS_INIT=y +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 +# CONFIG_RT_USING_LEGACY is not set + +# +# C++ features +# +# CONFIG_RT_USING_CPLUSPLUS is not set + +# +# Command shell +# +CONFIG_RT_USING_FINSH=y +CONFIG_RT_USING_MSH=y +CONFIG_FINSH_USING_MSH=y +CONFIG_FINSH_THREAD_NAME="tshell" +CONFIG_FINSH_THREAD_PRIORITY=20 +CONFIG_FINSH_THREAD_STACK_SIZE=4096 +CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 +CONFIG_FINSH_USING_SYMTAB=y +CONFIG_FINSH_CMD_SIZE=80 +CONFIG_MSH_USING_BUILT_IN_COMMANDS=y +CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set +# CONFIG_FINSH_USING_AUTH is not set +CONFIG_FINSH_ARG_MAX=10 + +# +# Device virtual file system +# +CONFIG_RT_USING_DFS=y +CONFIG_DFS_USING_POSIX=y +CONFIG_DFS_USING_WORKDIR=y +CONFIG_DFS_FILESYSTEMS_MAX=2 +CONFIG_DFS_FILESYSTEM_TYPES_MAX=2 +CONFIG_DFS_FD_MAX=16 +# CONFIG_RT_USING_DFS_MNTTABLE is not set +# CONFIG_RT_USING_DFS_ELMFAT is not set +CONFIG_RT_USING_DFS_DEVFS=y +# CONFIG_RT_USING_DFS_ROMFS is not set +# CONFIG_RT_USING_DFS_RAMFS is not set + +# +# Device Drivers +# +CONFIG_RT_USING_DEVICE_IPC=y +# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set +CONFIG_RT_USING_SERIAL=y +CONFIG_RT_USING_SERIAL_V1=y +# CONFIG_RT_USING_SERIAL_V2 is not set +CONFIG_RT_SERIAL_USING_DMA=y +CONFIG_RT_SERIAL_RB_BUFSZ=64 +# CONFIG_RT_USING_CAN is not set +# CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set +# CONFIG_RT_USING_I2C is not set +# CONFIG_RT_USING_PHY is not set +CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_ADC is not set +# CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_PWM is not set +# CONFIG_RT_USING_MTD_NOR is not set +# CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_RTC is not set +# CONFIG_RT_USING_SDIO is not set +# CONFIG_RT_USING_SPI is not set +# CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_AUDIO is not set +# CONFIG_RT_USING_SENSOR is not set +# CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_HWCRYPTO is not set +# CONFIG_RT_USING_PULSE_ENCODER is not set +# CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_WIFI is not set + +# +# Using USB +# +# CONFIG_RT_USING_USB is not set +# CONFIG_RT_USING_USB_HOST is not set +# CONFIG_RT_USING_USB_DEVICE is not set + +# +# POSIX layer and C standard library +# +CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# POSIX (Portable Operating System Interface) layer +# +# CONFIG_RT_USING_POSIX_FS is not set +# CONFIG_RT_USING_POSIX_DELAY is not set +# CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set +# CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set + +# +# Interprocess Communication (IPC) +# +# CONFIG_RT_USING_POSIX_PIPE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set + +# +# Socket is in the 'Network' category +# + +# +# Network +# + +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + +# +# Network interface device +# +# CONFIG_RT_USING_NETDEV is not set + +# +# light weight TCP/IP stack +# +# CONFIG_RT_USING_LWIP is not set + +# +# AT commands +# +# CONFIG_RT_USING_AT is not set + +# +# VBUS(Virtual Software BUS) +# +# CONFIG_RT_USING_VBUS is not set + +# +# Utilities +# +# CONFIG_RT_USING_RYM is not set +# CONFIG_RT_USING_ULOG is not set +# CONFIG_RT_USING_UTEST is not set +# CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RT_LINK is not set + +# +# RT-Thread Utestcases +# +# CONFIG_RT_USING_UTESTCASES is not set + +# +# RT-Thread online packages +# + +# +# IoT - internet of things +# +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set +# CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set +# CONFIG_PKG_USING_WEBCLIENT is not set +# CONFIG_PKG_USING_WEBNET is not set +# CONFIG_PKG_USING_MONGOOSE is not set +# CONFIG_PKG_USING_MYMQTT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set +# CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_LIBMODBUS is not set +# CONFIG_PKG_USING_FREEMODBUS is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_NANOPB is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_RW007 is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set +# CONFIG_PKG_USING_PPP_DEVICE is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_ATSRV_SOCKET is not set +# CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set + +# +# IoT Cloud +# +# CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set +# CONFIG_PKG_USING_JIOT-C-SDK is not set +# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_OTA_DOWNLOADER is not set +# CONFIG_PKG_USING_IPMSG is not set +# CONFIG_PKG_USING_LSSDP is not set +# CONFIG_PKG_USING_AIRKISS_OPEN is not set +# CONFIG_PKG_USING_LIBRWS is not set +# CONFIG_PKG_USING_TCPSERVER is not set +# CONFIG_PKG_USING_PROTOBUF_C is not set +# CONFIG_PKG_USING_DLT645 is not set +# CONFIG_PKG_USING_QXWZ is not set +# CONFIG_PKG_USING_SMTP_CLIENT is not set +# CONFIG_PKG_USING_ABUP_FOTA is not set +# CONFIG_PKG_USING_LIBCURL2RTT is not set +# CONFIG_PKG_USING_CAPNP is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set + +# +# security packages +# +# CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_TINYCRYPT is not set +# CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set + +# +# language packages +# +# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_LUA is not set +# CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set + +# +# multimedia packages +# + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set +# CONFIG_PKG_USING_OPENMV is not set +# CONFIG_PKG_USING_MUPDF is not set +# CONFIG_PKG_USING_STEMWIN is not set +# CONFIG_PKG_USING_WAVPLAYER is not set +# CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set + +# +# tools packages +# +# CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set +# CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set +# CONFIG_PKG_USING_RDB is not set +# CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set +# CONFIG_PKG_USING_ADBD is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set +# CONFIG_PKG_USING_NR_MICRO_SHELL is not set +# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set +# CONFIG_PKG_USING_LUNAR_CALENDAR is not set +# CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set + +# +# system packages +# + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# POSIX extension functions +# +# CONFIG_PKG_USING_POSIX_GETLINE is not set +# CONFIG_PKG_USING_POSIX_WCWIDTH is not set +# CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_RT_USING_ARDUINO is not set +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_CAIRO is not set +# CONFIG_PKG_USING_PIXMAN is not set +# CONFIG_PKG_USING_PARTITION is not set +# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_FLASHDB is not set +# CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set +# CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set +# CONFIG_PKG_USING_THREAD_POOL is not set +# CONFIG_PKG_USING_ROBOTS is not set +# CONFIG_PKG_USING_EV is not set +# CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_USB_STACK is not set + +# +# peripheral libraries and drivers +# +# CONFIG_PKG_USING_SENSORS_DRIVERS is not set +# CONFIG_PKG_USING_REALTEK_AMEBA is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_BUTTON is not set +# CONFIG_PKG_USING_PCF8574 is not set +# CONFIG_PKG_USING_SX12XX is not set +# CONFIG_PKG_USING_SIGNAL_LED is not set +# CONFIG_PKG_USING_LEDBLINK is not set +# CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set +# CONFIG_PKG_USING_WM_LIBRARIES is not set +# CONFIG_PKG_USING_KENDRYTE_SDK is not set +# CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_AGILE_BUTTON is not set +# CONFIG_PKG_USING_AGILE_LED is not set +# CONFIG_PKG_USING_AT24CXX is not set +# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set +# CONFIG_PKG_USING_AD7746 is not set +# CONFIG_PKG_USING_PCA9685 is not set +# CONFIG_PKG_USING_I2C_TOOLS is not set +# CONFIG_PKG_USING_NRF24L01 is not set +# CONFIG_PKG_USING_TOUCH_DRIVERS is not set +# CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_RPLIDAR is not set +# CONFIG_PKG_USING_AS608 is not set +# CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set +# CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set + +# +# miscellaneous packages +# + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set +# CONFIG_PKG_USING_HELLO is not set +# CONFIG_PKG_USING_VI is not set +# CONFIG_PKG_USING_KI is not set +# CONFIG_PKG_USING_ARMv7M_DWT is not set +# CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +CONFIG_SOC_AT91SAM926=y +CONFIG_RT_USING_DBGU=y +# CONFIG_RT_USING_UART0 is not set +# CONFIG_RT_USING_UART1 is not set +# CONFIG_RT_USING_UART2 is not set +# CONFIG_RT_USING_UART3 is not set +CONFIG_RT_USING_LED=y diff --git a/bsp/at91/at91sam9260/Kconfig b/bsp/at91/at91sam9260/Kconfig new file mode 100644 index 0000000000..23b4eea1d4 --- /dev/null +++ b/bsp/at91/at91sam9260/Kconfig @@ -0,0 +1,52 @@ +mainmenu "RT-Thread Configuration" + +config BSP_DIR + string + option env="BSP_ROOT" + default "." + +config RTT_DIR + string + option env="RTT_ROOT" + default "../.." + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" + +config SOC_AT91SAM926 + bool + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + default y + +config RT_USING_DBGU + bool "Using RT_USING_DBGU" + default y + +config RT_USING_UART0 + bool "Using RT_USING_UART0" + default n + +config RT_USING_UART1 + bool "Using RT_USING_UART1" + default n + +config RT_USING_UART2 + bool "Using RT_USING_UART2" + default n + +config RT_USING_UART3 + bool "Using RT_USING_UART3" + default n + +config RT_USING_LED + bool "Using RT_USING_LED" + default y + help + led blink demo + diff --git a/bsp/at91/at91sam9260/SConscript b/bsp/at91/at91sam9260/SConscript new file mode 100644 index 0000000000..fe0ae941ae --- /dev/null +++ b/bsp/at91/at91sam9260/SConscript @@ -0,0 +1,14 @@ +# for module compiling +import os +Import('RTT_ROOT') + +cwd = str(Dir('#')) +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/at91/at91sam9260/SConstruct b/bsp/at91/at91sam9260/SConstruct new file mode 100644 index 0000000000..32ad8d65fe --- /dev/null +++ b/bsp/at91/at91sam9260/SConstruct @@ -0,0 +1,39 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread-at91sam9260.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +if GetDepend('RT_USING_WEBSERVER'): + objs = objs + SConscript(RTT_ROOT + '/components/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) + +if GetDepend('RT_USING_RTGUI'): + objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) + +# libc testsuite +objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/at91/at91sam9260/applications/SConscript b/bsp/at91/at91sam9260/applications/SConscript new file mode 100644 index 0000000000..01eb940dfb --- /dev/null +++ b/bsp/at91/at91sam9260/applications/SConscript @@ -0,0 +1,11 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'applications') +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/at91/at91sam9260/applications/application.c b/bsp/at91/at91sam9260/applications/application.c new file mode 100644 index 0000000000..f1a377e1e9 --- /dev/null +++ b/bsp/at91/at91sam9260/applications/application.c @@ -0,0 +1,158 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +/** + * @addtogroup at91sam9260 + */ +/*@{*/ + +#include +#include + +#ifdef RT_USING_DFS +/* dfs Filesystem APIs */ +#include +#endif + +#ifdef RT_USING_SDIO +#include +#include "at91_mci.h" +#endif + +#ifdef RT_USING_LED +#include "led.h" +#endif + +static int rt_led_app_init(void); + +int main(void) +{ + int timeout = 0; + +/* Filesystem Initialization */ +#ifdef RT_USING_DFS + { +#if defined(RT_USING_DFS_ROMFS) + if (dfs_mount(RT_NULL, "/rom", "rom", 0, &romfs_root) == 0) + { + rt_kprintf("ROM File System initialized!\n"); + } + else + rt_kprintf("ROM File System initialzation failed!\n"); +#endif + +#if defined(RT_USING_DFS_UFFS) + { + /* mount flash device as flash directory */ + if(dfs_mount("nand0", "/nand0", "uffs", 0, 0) == 0) + rt_kprintf("UFFS File System initialized!\n"); + else + rt_kprintf("UFFS File System initialzation failed!\n"); + } +#endif + +#ifdef RT_USING_SDIO + timeout = 0; + while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2)) + { + rt_thread_delay(1); + } + + if (timeout < RT_TICK_PER_SECOND*2) + { + /* mount sd card fat partition 1 as root directory */ + if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) + { + rt_kprintf("File System initialized!\n"); + } + else + rt_kprintf("File System initialzation failed!%d\n", rt_get_errno()); + } + else + { + rt_kprintf("No SD card found.\n"); + } +#endif + } +#endif + +#ifdef RT_USING_LED + rt_led_app_init(); +#endif +} + +#ifdef RT_USING_LED +void rt_led_thread_entry(void* parameter) +{ + rt_uint8_t cnt = 0; + led_init(); + while(1) + { + /* light on leds for one second */ + rt_thread_delay(40); + cnt++; + if (cnt&0x01) + led_on(1); + else + led_off(1); + if (cnt&0x02) + led_on(2); + else + led_off(2); + if (cnt&0x04) + led_on(3); + else + led_off(3); + } +} +#endif + +static int rt_led_app_init(void) +{ +#ifdef RT_USING_LED + rt_thread_t led_thread; + +#if (RT_THREAD_PRIORITY_MAX == 32) + led_thread = rt_thread_create("led", + rt_led_thread_entry, RT_NULL, + 512, 20, 20); +#else + led_thread = rt_thread_create("led", + rt_led_thread_entry, RT_NULL, + 512, 200, 20); +#endif + + if(led_thread != RT_NULL) + rt_thread_startup(led_thread); +#endif + + return 0; +} + +/* NFSv3 Initialization */ +#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) +#include +void nfs_start(void) +{ + nfs_init(); + + if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0) + { + rt_kprintf("NFSv3 File System initialized!\n"); + } + else + rt_kprintf("NFSv3 File System initialzation failed!\n"); +} + +#include "finsh.h" +FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem); +#endif + +/*@}*/ diff --git a/bsp/at91/at91sam9260/debug_scripts/at91sam9260.gdb b/bsp/at91/at91sam9260/debug_scripts/at91sam9260.gdb new file mode 100644 index 0000000000..fef3264f3e --- /dev/null +++ b/bsp/at91/at91sam9260/debug_scripts/at91sam9260.gdb @@ -0,0 +1,230 @@ +#------------------------------------------------ +# SDRAM initialization script for the AT91SAM9260 +#------------------------------------------------ + +#---------------------------------------------------------------------------- +# _InitRSTC() +# Function description +# Initializes the RSTC (Reset controller). +# This makes sense since the default is to not allow user resets, which makes it impossible to +# apply a second RESET via J-Link +#---------------------------------------------------------------------------- + +define _InitRSTC + # Allow user reset + set *0xFFFFFD08=0xA5000001 +end + +#---------------------------------------------------------------------------- +# _MapRAMAt0() +# Function description: Maps RAM at 0. +#---------------------------------------------------------------------------- +define _MapRAMAt0 + echo "---------- SRAM remapped to 0 --------" \n + # Test and set Remap + set $__mac_i = *0xFFFFEF00 + if ( (($__mac_i & 0x01) == 0) || (($__mac_i & 0x02) == 0)) + #toggle remap bits + set *0xFFFFEF00 = 0x03 + else + echo "---------- The Remap is done ---------" \n + end +end + +#---------------------------------------------------------------------------- +# +# _PllSetting() +# Function description +# Initializes the PMC. +# 1. Enable the Main Oscillator +# 2. Configure PLL +# 3. Switch Master +#---------------------------------------------------------------------------- + +define __PllSetting + if ((*(0xFFFFFC30)&0x3) != 0 ) + # Disable all PMC interrupt ( $$ JPP) + # AT91C_PMC_IDR ((AT91_REG *) 0xFFFFFC64) #(PMC) Interrupt Disable Register + # pPmc->PMC_IDR = 0xFFFFFFFF; + set *0xFFFFFC64 = 0xFFFFFFFF + # AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) #(PMC) Peripheral Clock Disable Register + set *0xFFFFFC14 = 0xFFFFFFFF + # Disable all clock only Processor clock is enabled. + set *0xFFFFFC04 = 0xFFFFFFFE + # AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) # (PMC) Master Clock Register + set *0xFFFFFC30 = 0x00000001 + + while ((*0xFFFFFC68 & 0x8) == 0) + end + + + # write reset value to PLLA and PLLB + # AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) # (PMC) PLL A Register + set *0xFFFFFC28 = 0x00003F00 + + # AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) # (PMC) PLL B Register + set *0xFFFFFC2C 0x00003F00 + while ((*0xFFFFFC68 & 0x2) == 0) + end + while ((*0xFFFFFC68 & 0x4) == 0) + end + + echo "---------- PLL Enable ---------------" \n + + else + echo "---------- Core in SLOW CLOCK mode ---" \n + end +end + + +#---------------------------------------------------------------------------- +# +# __PllSetting100MHz() +# Function description +# Set core at 200 MHz and MCK at 100 MHz +#---------------------------------------------------------------------------- + +define __PllSetting100MHz + echo "---------- PLL Set at 100 MHz --------" \n + + #* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN )); + set *0xFFFFFC20=0x00004001 + while ((*0xFFFFFC68 & 0x1) == 0) + end + # AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) # (PMC) Master Clock Register + set *0xFFFFFC30=0x00000001 + while ((*0xFFFFFC68 & 0x8) == 0) + end + #* AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | + # (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9); + set *0xFFFFFC28=0x2060BF09 + while ((*0xFFFFFC68 & 0x2) == 0) + end + # Configure PLLB + set *0xFFFFFC2C=0x207C3F0C + while ((*0xFFFFFC68 & 0x4) == 0) + end + #* AT91C_BASE_PMC->PMC_MCKR = AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;; + set *0xFFFFFC30=0x00000102 + while ((*0xFFFFFC68 & 0x8) == 0) + end +end + + +#---------------------------------------------------------------------------- +# __initSDRAM() +# Function description +# Set SDRAM for works at 100 MHz +#---------------------------------------------------------------------------- + +define __initSDRAM + + # Configure EBI Chip select + # pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC; + # AT91C_CCFG_EBICSA ((AT91_REG *) 0xFFFFEF1C) # (CCFG) EBI Chip Select Assignement Register + set *0xFFFFEF1C=0x0001003A + + # Configure PIOs + # AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31 + # pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) # (PIOC) Select A Register + # pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR ((AT91_REG *) 0xFFFFF874) # (PIOC) Select B Register + # pPio->PIO_PDR = (periphAEnable | periphBEnable # Set in Periph mode + set *0xFFFFF870=0xFFFF0000 + set *0xFFFFF874=0x00000000 + set *0xFFFFF804=0xFFFF0000 + + # psdrc->SDRAMC_CR = AT91C_SDRAMC_NC_9 | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_2 | + # AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 | + # AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ; + set *0xFFFFEA08=0x85227259 + set $i = 0 + while $i != 100 + set $i += 1 + end + # psdrc->SDRAMC_MR = 0x00000002; # Set PRCHG AL + set *0xFFFFEA00=0x00000002 + # *AT91C_SDRAM = 0x00000000; # Perform PRCHG + set *0x20000000=0x00000000 + set $i = 0 + while $i != 100 + set $i += 1 + end + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 1st CBR + set *0xFFFFEA00=0x00000004 + + # *(AT91C_SDRAM+4) = 0x00000001; # Perform CBR + set *0x20000010=0x00000001 + + # psdrc->SDRAMC_MR = 0x00000004; # Set 2 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+8) = 0x00000002; # Perform CBR + set *0x20000020=0x00000002 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 3 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+0xc) = 0x00000003; # Perform CBR + set *0x20000030=0x00000003 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 4 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+0x10) = 0x00000004; # Perform CBR + set *0x20000040=0x00000004 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 5 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+0x14) = 0x00000005; # Perform CBR + set *0x20000050=0x00000005 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 6 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+0x18) = 0x00000006; # Perform CBR + set *0x20000060=0x00000006 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 7 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+0x1c) = 0x00000007; # Perform CBR + set *0x20000070=0x00000007 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 8 CBR + set *0xFFFFEA00=0x00000004 + # *(AT91C_SDRAM+0x20) = 0x00000008; # Perform CBR + set *0x20000080=0x00000008 + + # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_LMR_CMD; # Set LMR operation + set *0xFFFFEA00=0x00000003 + # *(AT91C_SDRAM+0x24) = 0xcafedede; # Perform LMR burst=1, lat=2 + set *0x20000090=0xCAFEDEDE + + # psdrc->SDRAMC_TR = (AT91C_MASTER_CLOCK * 7)/1000000; # Set Refresh Timer 390 for 25MHz (TR= 15.6 * F ) + set *0xFFFFEA04=0x000002B9 + + #* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_NORMAL_CMD; # Set Normal mode + set *0xFFFFEA00=0x00000000 + + #* *AT91C_SDRAM = 0x00000000; # Perform Normal mode + set *0x20000000=0x00000000 + echo "---------- SDRAM Done at 100 MHz -----" \n +end + +# Step1: Connect to the J-Link gdb server +define reset + #target remote localhost:2331 + monitor reset + + # Step2: Reset peripheral (RSTC_CR) + #Init PLL + __PllSetting + __PllSetting100MHz + __initSDRAM + #* Set the RAM memory at 0x0020 0000 & 0x0000 0000 + _MapRAMAt0 + _InitRSTC + + # Step3: Load file(eg. getting-started project) + load + + mon reg pc=0x20000000 + #info reg + +end \ No newline at end of file diff --git a/bsp/at91/at91sam9260/debug_scripts/at91sam9260.ini b/bsp/at91/at91sam9260/debug_scripts/at91sam9260.ini new file mode 100644 index 0000000000..7101955498 --- /dev/null +++ b/bsp/at91/at91sam9260/debug_scripts/at91sam9260.ini @@ -0,0 +1,248 @@ +// ---------------------------------------------------------------------------- +// ATMEL Microcontroller Software Support +// ---------------------------------------------------------------------------- +// Copyright (c) 2008, Atmel Corporation +// +// 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 disclaimer below. +// +// Atmel's name may not be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR +// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE +// DISCLAIMED. IN NO EVENT SHALL ATMEL 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 Name : at91sam9260-ek-sdram.ini +// Object : Generic Macro File for KEIL +//---------------------------------------------------------------------------- + +//---------------------------------------------------------------------------- +// _MapRAMAt0() +// Function description: Maps RAM at 0. +//---------------------------------------------------------------------------- + +DEFINE INT __mac_i; + +FUNC void _MapRAMAt0(){ + + + printf ("Changing mapping: RAM mapped to 0 \n"); + // Test and set Remap + __mac_i = _RDWORD(0xFFFFEF00); + if ( ((__mac_i & 0x01) == 0) || ((__mac_i & 0x02) == 0)) + { + _WDWORD(0xFFFFEF00,0x03); // toggle remap bits + } + else + { + printf ("------------------------------- The Remap is done -----------------------------------\n"); + } +} + + +//---------------------------------------------------------------------------- +// _InitRSTC() +// Function description +// Initializes the RSTC (Reset controller). +// This makes sense since the default is to not allow user resets, which makes it impossible to +// apply a second RESET via J-Link +//---------------------------------------------------------------------------- + +FUNC void _InitRSTC() { + + _WDWORD(0xFFFFFD08,0xA5000001); // Allow user reset + +} + +//---------------------------------------------------------------------------- +// +// _PllSetting() +// Function description +// Initializes the PMC. +// 1. Enable the Main Oscillator +// 2. Configure PLL +// 3. Switch Master +//---------------------------------------------------------------------------- + +FUNC void __PllSetting() +{ + + if ((_RDWORD(0xFFFFFC30)&0x3) != 0 ) + { + // Disable all PMC interrupt ( $$ JPP) + // AT91C_PMC_IDR ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register + // pPmc->PMC_IDR = 0xFFFFFFFF; + _WDWORD(0xFFFFFC64,0xFFFFFFFF); + // AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register + _WDWORD(0xFFFFFC14,0xFFFFFFFF); + // Disable all clock only Processor clock is enabled. + _WDWORD(0xFFFFFC04,0xFFFFFFFE); + // AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register + _WDWORD(0xFFFFFC30,0x00000001); + _sleep_(10); + // write reset value to PLLA and PLLB + // AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) // (PMC) PLL A Register + _WDWORD(0xFFFFFC28,0x00003F00); + + // AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) // (PMC) PLL B Register + _WDWORD(0xFFFFFC2C,0x00003F00); + _sleep_(10); + + printf ( "------------------------------- PLL Enable -----------------------------------------"); + + } + else { + printf( " ********* Core in SLOW CLOCK mode ********* "); + } +} + + +//---------------------------------------------------------------------------- +// +// __PllSetting100MHz() +// Function description +// Set core at 200 MHz and MCK at 100 MHz +//---------------------------------------------------------------------------- + +FUNC void __PllSetting100MHz() +{ + + printf( "------------------------------- PLL Set at 100 MHz ----------------------------------"); + + //* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN )); + _WDWORD(0xFFFFFC20,0x00004001); + _sleep_(10); + // AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register + _WDWORD(0xFFFFFC30,0x00000001); + _sleep_(10); + //* AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | + // (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9); + _WDWORD(0xFFFFFC28,0x2060BF09); + _sleep_(10); + // Configure PLLB + _WDWORD(0xFFFFFC2C,0x207C3F0C); + _sleep_(10); + //* AT91C_BASE_PMC->PMC_MCKR = AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;; + _WDWORD(0xFFFFFC30,0x00000102); + _sleep_(10); + +} + +//---------------------------------------------------------------------------- +// __initSDRAM() +// Function description +// Set SDRAM for works at 100 MHz +//---------------------------------------------------------------------------- + +FUNC void __initSDRAM() +{ + + // Configure EBI Chip select + // pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC; + // AT91C_CCFG_EBICSA ((AT91_REG *) 0xFFFFEF1C) // (CCFG) EBI Chip Select Assignement Register + _WDWORD(0xFFFFEF1C,0x0001003A); + + // Configure PIOs + // AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31 + // pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) // (PIOC) Select A Register + // pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR ((AT91_REG *) 0xFFFFF874) // (PIOC) Select B Register + // pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode + _WDWORD(0xFFFFF870,0xFFFF0000); + _WDWORD(0xFFFFF874,0x00000000); + _WDWORD(0xFFFFF804,0xFFFF0000); + + // psdrc->SDRAMC_CR = AT91C_SDRAMC_NC_9 | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_2 | + // AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 | + // AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ; + _WDWORD(0xFFFFEA08,0x85227259); + _sleep_(10); + // psdrc->SDRAMC_MR = 0x00000002; // Set PRCHG AL + _WDWORD(0xFFFFEA00,0x00000002); + // *AT91C_SDRAM = 0x00000000; // Perform PRCHG + _WDWORD(0x20000000,0x00000000); + _sleep_(10); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 1st CBR + _WDWORD(0xFFFFEA00,0x00000004); + + // *(AT91C_SDRAM+4) = 0x00000001; // Perform CBR + _WDWORD(0x20000010,0x00000001); + + // psdrc->SDRAMC_MR = 0x00000004; // Set 2 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+8) = 0x00000002; // Perform CBR + _WDWORD(0x20000020,0x00000002); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 3 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+0xc) = 0x00000003; // Perform CBR + _WDWORD(0x20000030,0x00000003); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 4 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+0x10) = 0x00000004; // Perform CBR + _WDWORD(0x20000040,0x00000004); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 5 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+0x14) = 0x00000005; // Perform CBR + _WDWORD(0x20000050,0x00000005); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 6 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+0x18) = 0x00000006; // Perform CBR + _WDWORD(0x20000060,0x00000006); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 7 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+0x1c) = 0x00000007; // Perform CBR + _WDWORD(0x20000070,0x00000007); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 8 CBR + _WDWORD(0xFFFFEA00,0x00000004); + // *(AT91C_SDRAM+0x20) = 0x00000008; // Perform CBR + _WDWORD(0x20000080,0x00000008); + + // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_LMR_CMD; // Set LMR operation + _WDWORD(0xFFFFEA00,0x00000003); + // *(AT91C_SDRAM+0x24) = 0xcafedede; // Perform LMR burst=1, lat=2 + _WDWORD(0x20000090,0xCAFEDEDE); + + // psdrc->SDRAMC_TR = (AT91C_MASTER_CLOCK * 7)/1000000; // Set Refresh Timer 390 for 25MHz (TR= 15.6 * F ) + _WDWORD(0xFFFFEA04,0x000002B9); + + //* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_NORMAL_CMD; // Set Normal mode + _WDWORD(0xFFFFEA00,0x00000000); + + //* *AT91C_SDRAM = 0x00000000; // Perform Normal mode + _WDWORD(0x20000000,0x00000000); + printf( "------------------------------- SDRAM Done at 100 MHz -------------------------------"); + + +} + + +__PllSetting(); //* Init PLL +__PllSetting100MHz(); +__initSDRAM(); +_MapRAMAt0(); //* Set the RAM memory at 0x0020 0000 & 0x0000 0000 +_InitRSTC(); +DEBUG_CLOCK = 2000000; +LOAD Objects\\template.axf INCREMENTAL +PC = 0x20000000; +//g,main \ No newline at end of file diff --git a/bsp/at91/at91sam9260/debug_scripts/at91sam9260.mac b/bsp/at91/at91sam9260/debug_scripts/at91sam9260.mac new file mode 100644 index 0000000000..4745aafd37 --- /dev/null +++ b/bsp/at91/at91sam9260/debug_scripts/at91sam9260.mac @@ -0,0 +1,252 @@ +// --------------------------------------------------------- +// ATMEL Microcontroller Software Support - ROUSSET - +// --------------------------------------------------------- +// The software is delivered "AS IS" without warranty or +// condition of any kind, either express, implied or +// statutory. This includes without limitation any warranty +// or condition with respect to merchantability or fitness +// for any particular purpose, or against the infringements of +// intellectual property rights of others. +// --------------------------------------------------------- +// File: SAM9_SDRAM.mac +// User setup file for CSPY debugger. +// 1.1 08/Aug/06 jpp : Creation +// +// $Revision: 1.1.2.1 $ +// +// --------------------------------------------------------- +__var __mac_i; +__var __mac_pt; + +/********************************************************************* +* +* execUserReset() : JTAG set initially to Full Speed +*/ +execUserReset() +{ + __message "------------------------------ execUserReset ---------------------------------"; + _MapRAMAt0(); //* Set the RAM memory at 0x00200000 & 0x00000000 + __PllSetting(); //* Init PLL + __PllSetting100MHz(); + __message "-------------------------------Set PC Reset ----------------------------------"; +} + +/********************************************************************* +* +* execUserPreload() : JTAG set initially to 32kHz +*/ +execUserPreload() +{ + __message "------------------------------ execUserPreload ---------------------------------"; + __hwReset(0); //* Hardware Reset: CPU is automatically halted after the reset (JTAG is already configured to 32kHz) + __writeMemory32(0xD3,0x98,"Register"); //* Set CPSR + __PllSetting(); //* Init PLL + __PllSetting100MHz(); + __initSDRAM(); //* Init SDRAM before load + _MapRAMAt0(); //* Set the RAM memory at 0x0020 0000 & 0x0000 0000 + _InitRSTC(); //* Enable User Reset to allow execUserReset() execution +} + + + +/********************************************************************* +* +* _InitRSTC() +* +* Function description +* Initializes the RSTC (Reset controller). +* This makes sense since the default is to not allow user resets, which makes it impossible to +* apply a second RESET via J-Link +*/ +_InitRSTC() { + __writeMemory32(0xA5000001, 0xFFFFFD08,"Memory"); // Allow user reset +} + + +/********************************************************************* +* +* __initSDRAM() +* Function description +* Set SDRAM for works at 100 MHz +*/ +__initSDRAM() +{ +//* Configure EBI Chip select +// pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC | (1 << 16); +// AT91C_CCFG_EBICSA ((AT91_REG *) 0xFFFFEF1C) // (CCFG) EBI Chip Select Assignement Register + __writeMemory32(0x0001003A,0xFFFFEF1C,"Memory"); + + +//* Configure PIOs +//* AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31 +// pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) // (PIOC) Select A Register +// pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR ((AT91_REG *) 0xFFFFF874) // (PIOC) Select B Register +// pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode + __writeMemory32(0xFFFF0000,0xFFFFF870,"Memory"); + __writeMemory32(0x00000000,0xFFFFF874,"Memory"); + __writeMemory32(0xFFFF0000,0xFFFFF804,"Memory"); + +//* psdrc->SDRAMC_CR = AT91C_SDRAMC_NC_9 | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_2 | +// AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 | +// AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ; + __writeMemory32(0x85227259,0xFFFFEA08,"Memory"); + __delay(1); //100 +//* psdrc->SDRAMC_MR = 0x00000002; // Set PRCHG AL + __writeMemory32(0x00000002,0xFFFFEA00,"Memory"); +//* *AT91C_SDRAM = 0x00000000; // Perform PRCHG + __writeMemory32(0x00000000,0x20000000,"Memory"); + __delay(1); //100 + + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 1st CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); + +//* *(AT91C_SDRAM+4) = 0x00000001; // Perform CBR + __writeMemory32(0x00000001,0x20000010,"Memory"); + +//* psdrc->SDRAMC_MR = 0x00000004; // Set 2 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+8) = 0x00000002; // Perform CBR + __writeMemory32(0x00000002,0x20000020,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 3 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0xc) = 0x00000003; // Perform CBR + __writeMemory32(0x00000003,0x20000030,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 4 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0x10) = 0x00000004; // Perform CBR + __writeMemory32(0x00000004,0x20000040,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 5 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0x14) = 0x00000005; // Perform CBR + __writeMemory32(0x00000005,0x20000050,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 6 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0x18) = 0x00000006; // Perform CBR + __writeMemory32(0x00000006,0x20000060,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 7 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0x1c) = 0x00000007; // Perform CBR + __writeMemory32(0x00000007,0x20000070,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 8 CBR + __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0x20) = 0x00000008; // Perform CBR + __writeMemory32(0x00000008,0x20000080,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_LMR_CMD; // Set LMR operation + __writeMemory32(0x00000003,0xFFFFEA00,"Memory"); +//* *(AT91C_SDRAM+0x24) = 0xcafedede; // Perform LMR burst=1, lat=2 + __writeMemory32(0xCAFEDEDE,0x20000090,"Memory"); + +//* psdrc->SDRAMC_TR = (AT91C_MASTER_CLOCK * 7)/1000000; // Set Refresh Timer 390 for 25MHz (TR= 15.6 * F ) +// // (F : system clock freq. MHz + + __writeMemory32(0x000002B7,0xFFFFEA04,"Memory"); + +//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_NORMAL_CMD; // Set Normal mode + __writeMemory32(0x00000000,0xFFFFEA00,"Memory"); + +//* *AT91C_SDRAM = 0x00000000; // Perform Normal mode + __writeMemory32(0x00000000,0x20000000,"Memory"); + __message "------------------------------- SDRAM Done at 100 MHz -------------------------------"; + +} + +/********************************************************************* +* +* _MapRAMAt0() +* Function description +* Remap RAM at 0 +*/ +_MapRAMAt0() +{ +// AT91C_MATRIX_MRCR ((AT91_REG *) 0xFFFFEF00) // (MATRIX) Master Remp Control Register + __mac_i=__readMemory32(0xFFFFEF00,"Memory"); + __message "----- AT91C_MATRIX_MRCR : 0x",__mac_i:%X; + + if ( ((__mac_i & 0x01) == 0) || ((__mac_i & 0x02) == 0)){ + __message "------------------------------- The Remap is NOT & REMAP ----------------------------"; + __writeMemory32(0x00000003,0xFFFFEF00,"Memory"); + __mac_i=__readMemory32(0xFFFFEF00,"Memory"); + __message "----- AT91C_MATRIX_MRCR : 0x",__mac_i:%X; + } else { + __message "------------------------------- The Remap is done -----------------------------------"; + } +} + + +/********************************************************************* +* +* __PllSetting() +* Function description +* Initializes the PMC. +* 1. Enable the Main Oscillator +* 2. Configure PLL +* 3. Switch Master +*/ +__PllSetting() +{ + if ((__readMemory32(0xFFFFFC30,"Memory")&0x3) != 0 ) { +//* Disable all PMC interrupt ( $$ JPP) +//* AT91C_PMC_IDR ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register +//* pPmc->PMC_IDR = 0xFFFFFFFF; + __writeMemory32(0xFFFFFFFF,0xFFFFFC64,"Memory"); +//* AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register + __writeMemory32(0xFFFFFFFF,0xFFFFFC14,"Memory"); +// Disable all clock only Processor clock is enabled. + __writeMemory32(0xFFFFFFFE,0xFFFFFC04,"Memory"); + +// AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register + __writeMemory32(0x00000001,0xFFFFFC30,"Memory"); + __delay(10); //10000 + +// write reset value to PLLA and PLLB +// AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) // (PMC) PLL A Register + __writeMemory32(0x00003F00,0xFFFFFC28,"Memory"); + +// AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) // (PMC) PLL B Register + __writeMemory32(0x00003F00,0xFFFFFC2C,"Memory"); + __delay(10); //10000 + + __message "------------------------------- PLL Enable -----------------------------------------"; + } else { + __message " ********* Core in SLOW CLOCK mode ********* "; } +} + + +/********************************************************************* +* +* __PllSetting100MHz() +* Function description +* Set core at 200 MHz and MCK at 100 MHz +*/ +__PllSetting100MHz() +{ + + __message "------------------------------- PLL Set at 100 MHz ----------------------------------"; + +//* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN )); + __writeMemory32(0x00004001,0xFFFFFC20,"Memory"); + __delay(10); //10000 +// AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register + __writeMemory32(0x00000001,0xFFFFFC30,"Memory"); + __delay(10); //10000 +//* AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | +// (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9); + __writeMemory32(0x2060BF09,0xFFFFFC28,"Memory"); + __delay(10); //10000 +// AT91C_BASE_PMC->PMC_PLLBR = BOARD_USBDIV| BOARD_CKGR_PLLB | BOARD_PLLBCOUNT | BOARD_MULB| BOARD_DIVB; + __writeMemory32(0x207C3F0C,0xFFFFFC2C,"Memory"); + __delay(10); //10000 +//* AT91C_BASE_PMC->PMC_MCKR = AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;; + __writeMemory32(0x00000102,0xFFFFFC30,"Memory"); + __delay(10); //10000 + +} + diff --git a/bsp/at91/at91sam9260/drivers/SConscript b/bsp/at91/at91sam9260/drivers/SConscript new file mode 100644 index 0000000000..e30cf28176 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/SConscript @@ -0,0 +1,33 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'drivers') + +# add the general drvers. +src = Split(""" +board.c +usart.c +""") + +# add Ethernet drvers. +if GetDepend('RT_USING_LED'): + src += ['led.c'] + +if GetDepend('RT_USING_SDIO'): + src += ['at91_mci.c'] + +if GetDepend('RT_USING_LWIP'): + src += ['macb.c'] + +if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): + src += ['at91_i2c_gpio.c'] + +if GetDepend('RT_USING_MTD_NAND'): + src += ['at91_nand.c'] + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/at91/at91sam9260/drivers/at91_i2c_gpio.c b/bsp/at91/at91sam9260/drivers/at91_i2c_gpio.c new file mode 100644 index 0000000000..d863ffed88 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/at91_i2c_gpio.c @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2012-04-25 weety first version + */ + +#include +#include +#include + + +static void at91_i2c_gpio_init() +{ + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOA); //enable PIOA clock + at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 23)); + at91_sys_write(AT91_PIOA + PIO_PER, (1 << 23)); + at91_sys_write(AT91_PIOA + PIO_MDER, (1 << 23)); + at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 24)); + at91_sys_write(AT91_PIOA + PIO_PER, (1 << 24)); + at91_sys_write(AT91_PIOA + PIO_MDER, (1 << 24)); + + at91_sys_write(AT91_PIOA + PIO_OER, (1 << 23)); + at91_sys_write(AT91_PIOA + PIO_OER, (1 << 24)); + + at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 23)); + at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 24)); +} + +static void at91_set_sda(void *data, rt_int32_t state) +{ + if (state) + { + at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 23)); + } + else + { + at91_sys_write(AT91_PIOA + PIO_CODR, (1 << 23)); + } +} + +static void at91_set_scl(void *data, rt_int32_t state) +{ + if (state) + { + at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 24)); + } + else + { + at91_sys_write(AT91_PIOA + PIO_CODR, (1 << 24)); + } +} + +static rt_int32_t at91_get_sda(void *data) +{ + return at91_sys_read(AT91_PIOA + PIO_PDSR) & (1 << 23); +} + +static rt_int32_t at91_get_scl(void *data) +{ + return at91_sys_read(AT91_PIOA + PIO_PDSR) & (1 << 24); +} + +static void at91_udelay (rt_uint32_t us) +{ + rt_int32_t i; + for (; us > 0; us--) + { + i = 50000; + while(i > 0) + { + i--; + } + } +} + +static const struct rt_i2c_bit_ops bit_ops = { + RT_NULL, + at91_set_sda, + at91_set_scl, + at91_get_sda, + at91_get_scl, + + at91_udelay, + + 5, + 100 +}; + +int at91_i2c_init(void) +{ + struct rt_i2c_bus_device *bus; + + bus = rt_malloc(sizeof(struct rt_i2c_bus_device)); + if (bus == RT_NULL) + { + rt_kprintf("rt_malloc failed\n"); + return -RT_ENOMEM; + } + + rt_memset((void *)bus, 0, sizeof(struct rt_i2c_bus_device)); + + bus->priv = (void *)&bit_ops; + + at91_i2c_gpio_init(); + + rt_i2c_bit_add_bus(bus, "i2c0"); + + return 0; +} + +INIT_DEVICE_EXPORT(at91_i2c_init); + diff --git a/bsp/at91/at91sam9260/drivers/at91_mci.c b/bsp/at91/at91sam9260/drivers/at91_mci.c new file mode 100644 index 0000000000..92f7abdfec --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/at91_mci.c @@ -0,0 +1,910 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-07-25 weety first version + */ + +#include +#include +#include +#include +#include "at91_mci.h" + +#define USE_SLOT_B +//#define RT_MCI_DBG + +#ifdef RT_MCI_DBG +#define mci_dbg(fmt, ...) rt_kprintf(fmt, ##__VA_ARGS__) +#else +#define mci_dbg(fmt, ...) +#endif + +#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) + +extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); +extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); + + +#define AT91_MCI_ERRORS (AT91_MCI_RINDE | AT91_MCI_RDIRE | AT91_MCI_RCRCE \ + | AT91_MCI_RENDE | AT91_MCI_RTOE | AT91_MCI_DCRCE \ + | AT91_MCI_DTOE | AT91_MCI_OVRE | AT91_MCI_UNRE) + +#define at91_mci_read(reg) readl(AT91SAM9260_BASE_MCI + (reg)) +#define at91_mci_write(reg, val) writel((val), AT91SAM9260_BASE_MCI + (reg)) + + +#define REQ_ST_INIT (1U << 0) +#define REQ_ST_CMD (1U << 1) +#define REQ_ST_STOP (1U << 2) + +struct at91_mci { + struct rt_mmcsd_host *host; + struct rt_mmcsd_req *req; + struct rt_mmcsd_cmd *cmd; + struct rt_timer timer; + //struct rt_semaphore sem_ack; + rt_uint32_t *buf; + rt_uint32_t current_status; +}; + +/* + * Reset the controller and restore most of the state + */ +static void at91_reset_host() +{ + rt_uint32_t mr; + rt_uint32_t sdcr; + rt_uint32_t dtor; + rt_uint32_t imr; + rt_uint32_t level; + + level = rt_hw_interrupt_disable(); + + imr = at91_mci_read(AT91_MCI_IMR); + + at91_mci_write(AT91_MCI_IDR, 0xffffffff); + + /* save current state */ + mr = at91_mci_read(AT91_MCI_MR) & 0x7fff; + sdcr = at91_mci_read(AT91_MCI_SDCR); + dtor = at91_mci_read(AT91_MCI_DTOR); + + /* reset the controller */ + at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIDIS | AT91_MCI_SWRST); + + /* restore state */ + at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIEN); + at91_mci_write(AT91_MCI_MR, mr); + at91_mci_write(AT91_MCI_SDCR, sdcr); + at91_mci_write(AT91_MCI_DTOR, dtor); + at91_mci_write(AT91_MCI_IER, imr); + + /* make sure sdio interrupts will fire */ + at91_mci_read(AT91_MCI_SR); + rt_hw_interrupt_enable(level); + +} + + +/* + * Enable the controller + */ +static void at91_mci_enable() +{ + rt_uint32_t mr; + + at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIEN); + at91_mci_write(AT91_MCI_IDR, 0xffffffff); + at91_mci_write(AT91_MCI_DTOR, AT91_MCI_DTOMUL_1M | AT91_MCI_DTOCYC); + mr = AT91_MCI_PDCMODE | 0x34a; + + mr |= AT91_MCI_RDPROOF | AT91_MCI_WRPROOF; + + at91_mci_write(AT91_MCI_MR, mr); + + /* use Slot A or B (only one at same time) */ + at91_mci_write(AT91_MCI_SDCR, 1); /* use slot b */ +} + +/* + * Disable the controller + */ +static void at91_mci_disable() +{ + at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIDIS | AT91_MCI_SWRST); +} + +static void at91_timeout_timer(void *data) +{ + struct at91_mci *mci; + + mci = (struct at91_mci *)data; + + if (mci->req) + { + rt_kprintf("Timeout waiting end of packet\n"); + + if (mci->current_status == REQ_ST_CMD) + { + if (mci->req->cmd && mci->req->data) + { + mci->req->data->err = -RT_ETIMEOUT; + } + else + { + if (mci->req->cmd) + mci->req->cmd->err = -RT_ETIMEOUT; + } + } + else if (mci->current_status == REQ_ST_STOP) + { + mci->req->stop->err = -RT_ETIMEOUT; + } + + at91_reset_host(); + mmcsd_req_complete(mci->host); + } +} + +/* + * Prepare a dma read + */ +static void at91_mci_init_dma_read(struct at91_mci *mci) +{ + rt_uint8_t i; + struct rt_mmcsd_cmd *cmd; + struct rt_mmcsd_data *data; + rt_uint32_t length; + + mci_dbg("pre dma read\n"); + + cmd = mci->cmd; + if (!cmd) + { + mci_dbg("no command\n"); + return; + } + + data = cmd->data; + if (!data) + { + mci_dbg("no data\n"); + return; + } + + for (i = 0; i < 1; i++) + { + /* Check to see if this needs filling */ + if (i == 0) + { + if (at91_mci_read(AT91_PDC_RCR) != 0) + { + mci_dbg("Transfer active in current\n"); + continue; + } + } + else { + if (at91_mci_read(AT91_PDC_RNCR) != 0) + { + mci_dbg("Transfer active in next\n"); + continue; + } + } + + length = data->blksize * data->blks; + mci_dbg("dma address = %08X, length = %d\n", data->buf, length); + + if (i == 0) + { + at91_mci_write(AT91_PDC_RPR, (rt_uint32_t)(data->buf)); + at91_mci_write(AT91_PDC_RCR, (data->blksize & 0x3) ? length : length / 4); + } + else + { + at91_mci_write(AT91_PDC_RNPR, (rt_uint32_t)(data->buf)); + at91_mci_write(AT91_PDC_RNCR, (data->blksize & 0x3) ? length : length / 4); + } + } + + mci_dbg("pre dma read done\n"); +} + +/* + * Send a command + */ +static void at91_mci_send_command(struct at91_mci *mci, struct rt_mmcsd_cmd *cmd) +{ + rt_uint32_t cmdr, mr; + rt_uint32_t block_length; + struct rt_mmcsd_data *data = cmd->data; + struct rt_mmcsd_host *host = mci->host; + + rt_uint32_t blocks; + rt_uint32_t ier = 0; + rt_uint32_t length; + + mci->cmd = cmd; + + /* Needed for leaving busy state before CMD1 */ + if ((at91_mci_read(AT91_MCI_SR) & AT91_MCI_RTOE) && (cmd->cmd_code == 1)) + { + mci_dbg("Clearing timeout\n"); + at91_mci_write(AT91_MCI_ARGR, 0); + at91_mci_write(AT91_MCI_CMDR, AT91_MCI_OPDCMD); + while (!(at91_mci_read(AT91_MCI_SR) & AT91_MCI_CMDRDY)) + { + /* spin */ + mci_dbg("Clearing: SR = %08X\n", at91_mci_read(AT91_MCI_SR)); + } + } + + cmdr = cmd->cmd_code; + + if (resp_type(cmd) == RESP_NONE) + cmdr |= AT91_MCI_RSPTYP_NONE; + else + { + /* if a response is expected then allow maximum response latancy */ + cmdr |= AT91_MCI_MAXLAT; + /* set 136 bit response for R2, 48 bit response otherwise */ + if (resp_type(cmd) == RESP_R2) + cmdr |= AT91_MCI_RSPTYP_136; + else + cmdr |= AT91_MCI_RSPTYP_48; + } + + if (data) + { + + block_length = data->blksize; + blocks = data->blks; + + /* always set data start - also set direction flag for read */ + if (data->flags & DATA_DIR_READ) + cmdr |= (AT91_MCI_TRDIR | AT91_MCI_TRCMD_START); + else if (data->flags & DATA_DIR_WRITE) + cmdr |= AT91_MCI_TRCMD_START; + + if (data->flags & DATA_STREAM) + cmdr |= AT91_MCI_TRTYP_STREAM; + if (data->blks > 1) + cmdr |= AT91_MCI_TRTYP_MULTIPLE; + } + else + { + block_length = 0; + blocks = 0; + } + + /*if (cmd->cmd_code == GO_IDLE_STATE) + { + cmdr |= AT91_MCI_SPCMD_INIT; + }*/ + + if (cmd->cmd_code == STOP_TRANSMISSION) + cmdr |= AT91_MCI_TRCMD_STOP; + + if (host->io_cfg.bus_mode == MMCSD_BUSMODE_OPENDRAIN) + cmdr |= AT91_MCI_OPDCMD; + + /* + * Set the arguments and send the command + */ + mci_dbg("Sending command %d as %08X, arg = %08X, blocks = %d, length = %d (MR = %08X)\n", + cmd->cmd_code, cmdr, cmd->arg, blocks, block_length, at91_mci_read(AT91_MCI_MR)); + + if (!data) + { + at91_mci_write(AT91_PDC_PTCR, AT91_PDC_TXTDIS | AT91_PDC_RXTDIS); + at91_mci_write(AT91_PDC_RPR, 0); + at91_mci_write(AT91_PDC_RCR, 0); + at91_mci_write(AT91_PDC_RNPR, 0); + at91_mci_write(AT91_PDC_RNCR, 0); + at91_mci_write(AT91_PDC_TPR, 0); + at91_mci_write(AT91_PDC_TCR, 0); + at91_mci_write(AT91_PDC_TNPR, 0); + at91_mci_write(AT91_PDC_TNCR, 0); + ier = AT91_MCI_CMDRDY; + } + else + { + /* zero block length and PDC mode */ + mr = at91_mci_read(AT91_MCI_MR) & 0x5fff; + mr |= (data->blksize & 0x3) ? AT91_MCI_PDCFBYTE : 0; + mr |= (block_length << 16); + mr |= AT91_MCI_PDCMODE; + at91_mci_write(AT91_MCI_MR, mr); + + at91_mci_write(AT91_MCI_BLKR, + AT91_MCI_BLKR_BCNT(blocks) | + AT91_MCI_BLKR_BLKLEN(block_length)); + + /* + * Disable the PDC controller + */ + at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTDIS | AT91_PDC_TXTDIS); + + if (cmdr & AT91_MCI_TRCMD_START) + { + if (cmdr & AT91_MCI_TRDIR) + { + /* + * Handle a read + */ + + mmu_invalidate_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); + at91_mci_init_dma_read(mci); + ier = AT91_MCI_ENDRX /* | AT91_MCI_RXBUFF */; + } + else + { + /* + * Handle a write + */ + length = block_length * blocks; + /* + * at91mci MCI1 rev2xx Data Write Operation and + * number of bytes erratum + */ + if (length < 12) + { + length = 12; + mci->buf = rt_malloc(length); + if (!mci->buf) + { + rt_kprintf("rt alloc tx buffer failed\n"); + cmd->err = -RT_ENOMEM; + mmcsd_req_complete(mci->host); + return; + } + rt_memset(mci->buf, 0, 12); + rt_memcpy(mci->buf, data->buf, length); + mmu_clean_dcache((rt_uint32_t)mci->buf, length); + at91_mci_write(AT91_PDC_TPR, (rt_uint32_t)(mci->buf)); + at91_mci_write(AT91_PDC_TCR, (data->blksize & 0x3) ? + length : length / 4); + } + else + { + mmu_clean_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); + at91_mci_write(AT91_PDC_TPR, (rt_uint32_t)(data->buf)); + at91_mci_write(AT91_PDC_TCR, (data->blksize & 0x3) ? + length : length / 4); + } + mci_dbg("Transmitting %d bytes\n", length); + ier = AT91_MCI_CMDRDY; + } + } + } + + /* + * Send the command and then enable the PDC - not the other way round as + * the data sheet says + */ + + at91_mci_write(AT91_MCI_ARGR, cmd->arg); + at91_mci_write(AT91_MCI_CMDR, cmdr); + + if (cmdr & AT91_MCI_TRCMD_START) + { + if (cmdr & AT91_MCI_TRDIR) + at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTEN); + } + + /* Enable selected interrupts */ + at91_mci_write(AT91_MCI_IER, AT91_MCI_ERRORS | ier); +} + +/* + * Process the next step in the request + */ +static void at91_mci_process_next(struct at91_mci *mci) +{ + if (mci->current_status == REQ_ST_INIT) + { + mci->current_status = REQ_ST_CMD; + at91_mci_send_command(mci, mci->req->cmd); + } + else if ((mci->current_status == REQ_ST_CMD) && mci->req->stop) + { + mci->current_status = REQ_ST_STOP; + at91_mci_send_command(mci, mci->req->stop); + } + else + { + rt_timer_stop(&mci->timer); + /* the mci controller hangs after some transfers, + * and the workaround is to reset it after each transfer. + */ + at91_reset_host(); + mmcsd_req_complete(mci->host); + } +} + +/* + * Handle an MMC request + */ +static void at91_mci_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) +{ + rt_uint32_t timeout = RT_TICK_PER_SECOND; + struct at91_mci *mci = host->private_data; + mci->req = req; + mci->current_status = REQ_ST_INIT; + + rt_timer_control(&mci->timer, RT_TIMER_CTRL_SET_TIME, (void*)&timeout); + rt_timer_start(&mci->timer); + + at91_mci_process_next(mci); +} + +/* + * Handle transmitted data + */ +static void at91_mci_handle_transmitted(struct at91_mci *mci) +{ + struct rt_mmcsd_cmd *cmd; + struct rt_mmcsd_data *data; + + mci_dbg("Handling the transmit\n"); + + /* Disable the transfer */ + at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTDIS | AT91_PDC_TXTDIS); + + /* Now wait for cmd ready */ + at91_mci_write(AT91_MCI_IDR, AT91_MCI_TXBUFE); + + cmd = mci->cmd; + if (!cmd) return; + + data = cmd->data; + if (!data) return; + + if (data->blks > 1) + { + mci_dbg("multiple write : wait for BLKE...\n"); + at91_mci_write(AT91_MCI_IER, AT91_MCI_BLKE); + } else + at91_mci_write(AT91_MCI_IER, AT91_MCI_NOTBUSY); +} + + +/* + * Handle after a dma read + */ +static void at91_mci_post_dma_read(struct at91_mci *mci) +{ + struct rt_mmcsd_cmd *cmd; + struct rt_mmcsd_data *data; + + mci_dbg("post dma read\n"); + + cmd = mci->cmd; + if (!cmd) + { + mci_dbg("no command\n"); + return; + } + + data = cmd->data; + if (!data) + { + mci_dbg("no data\n"); + return; + } + + at91_mci_write(AT91_MCI_IDR, AT91_MCI_ENDRX); + at91_mci_write(AT91_MCI_IER, AT91_MCI_RXBUFF); + + mci_dbg("post dma read done\n"); +} + +/*Handle after command sent ready*/ +static int at91_mci_handle_cmdrdy(struct at91_mci *mci) +{ + if (!mci->cmd) + return 1; + else if (!mci->cmd->data) + { + if (mci->current_status == REQ_ST_STOP) + { + /*After multi block write, we must wait for NOTBUSY*/ + at91_mci_write(AT91_MCI_IER, AT91_MCI_NOTBUSY); + } + else return 1; + } + else if (mci->cmd->data->flags & DATA_DIR_WRITE) + { + /*After sendding multi-block-write command, start DMA transfer*/ + at91_mci_write(AT91_MCI_IER, AT91_MCI_TXBUFE | AT91_MCI_BLKE); + at91_mci_write(AT91_PDC_PTCR, AT91_PDC_TXTEN); + } + + /* command not completed, have to wait */ + return 0; +} + +/* + * Handle a command that has been completed + */ +static void at91_mci_completed_command(struct at91_mci *mci, rt_uint32_t status) +{ + struct rt_mmcsd_cmd *cmd = mci->cmd; + struct rt_mmcsd_data *data = cmd->data; + + at91_mci_write(AT91_MCI_IDR, 0xffffffff & ~(AT91_MCI_SDIOIRQA | AT91_MCI_SDIOIRQB)); + + cmd->resp[0] = at91_mci_read(AT91_MCI_RSPR(0)); + cmd->resp[1] = at91_mci_read(AT91_MCI_RSPR(1)); + cmd->resp[2] = at91_mci_read(AT91_MCI_RSPR(2)); + cmd->resp[3] = at91_mci_read(AT91_MCI_RSPR(3)); + + if (mci->buf) + { + //rt_memcpy(data->buf, mci->buf, data->blksize*data->blks); + rt_free(mci->buf); + mci->buf = RT_NULL; + } + + mci_dbg("Status = %08X/%08x [%08X %08X %08X %08X]\n", + status, at91_mci_read(AT91_MCI_SR), + cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]); + + if (status & AT91_MCI_ERRORS) + { + if ((status & AT91_MCI_RCRCE) && (resp_type(cmd) & (RESP_R3|RESP_R4))) + { + cmd->err = 0; + } + else + { + if (status & (AT91_MCI_DTOE | AT91_MCI_DCRCE)) + { + if (data) + { + if (status & AT91_MCI_DTOE) + data->err = -RT_ETIMEOUT; + else if (status & AT91_MCI_DCRCE) + data->err = -RT_ERROR; + } + } + else + { + if (status & AT91_MCI_RTOE) + cmd->err = -RT_ETIMEOUT; + else if (status & AT91_MCI_RCRCE) + cmd->err = -RT_ERROR; + else + cmd->err = -RT_ERROR; + } + + rt_kprintf("error detected and set to %d/%d (cmd = %d)\n", + cmd->err, data ? data->err : 0, + cmd->cmd_code); + } + } + else + cmd->err = 0; + + at91_mci_process_next(mci); +} + +/* + * Handle an interrupt + */ +static void at91_mci_irq(int irq, void *param) +{ + struct at91_mci *mci = (struct at91_mci *)param; + rt_int32_t completed = 0; + rt_uint32_t int_status, int_mask; + + int_status = at91_mci_read(AT91_MCI_SR); + int_mask = at91_mci_read(AT91_MCI_IMR); + + mci_dbg("MCI irq: status = %08X, %08X, %08X\n", int_status, int_mask, + int_status & int_mask); + + int_status = int_status & int_mask; + + if (int_status & AT91_MCI_ERRORS) + { + completed = 1; + + if (int_status & AT91_MCI_UNRE) + mci_dbg("MMC: Underrun error\n"); + if (int_status & AT91_MCI_OVRE) + mci_dbg("MMC: Overrun error\n"); + if (int_status & AT91_MCI_DTOE) + mci_dbg("MMC: Data timeout\n"); + if (int_status & AT91_MCI_DCRCE) + mci_dbg("MMC: CRC error in data\n"); + if (int_status & AT91_MCI_RTOE) + mci_dbg("MMC: Response timeout\n"); + if (int_status & AT91_MCI_RENDE) + mci_dbg("MMC: Response end bit error\n"); + if (int_status & AT91_MCI_RCRCE) + mci_dbg("MMC: Response CRC error\n"); + if (int_status & AT91_MCI_RDIRE) + mci_dbg("MMC: Response direction error\n"); + if (int_status & AT91_MCI_RINDE) + mci_dbg("MMC: Response index error\n"); + } + else + { + /* Only continue processing if no errors */ + + if (int_status & AT91_MCI_TXBUFE) + { + mci_dbg("TX buffer empty\n"); + at91_mci_handle_transmitted(mci); + } + + if (int_status & AT91_MCI_ENDRX) + { + mci_dbg("ENDRX\n"); + at91_mci_post_dma_read(mci); + } + + if (int_status & AT91_MCI_RXBUFF) + { + mci_dbg("RX buffer full\n"); + at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTDIS | AT91_PDC_TXTDIS); + at91_mci_write(AT91_MCI_IDR, AT91_MCI_RXBUFF | AT91_MCI_ENDRX); + completed = 1; + } + + if (int_status & AT91_MCI_ENDTX) + mci_dbg("Transmit has ended\n"); + + if (int_status & AT91_MCI_NOTBUSY) + { + mci_dbg("Card is ready\n"); + //at91_mci_update_bytes_xfered(host); + completed = 1; + } + + if (int_status & AT91_MCI_DTIP) + mci_dbg("Data transfer in progress\n"); + + if (int_status & AT91_MCI_BLKE) + { + mci_dbg("Block transfer has ended\n"); + if (mci->req->data && mci->req->data->blks > 1) + { + /* multi block write : complete multi write + * command and send stop */ + completed = 1; + } + else + { + at91_mci_write(AT91_MCI_IER, AT91_MCI_NOTBUSY); + } + } + + /*if (int_status & AT91_MCI_SDIOIRQA) + rt_mmcsd_signal_sdio_irq(host->mmc);*/ + + if (int_status & AT91_MCI_SDIOIRQB) + sdio_irq_wakeup(mci->host); + + if (int_status & AT91_MCI_TXRDY) + mci_dbg("Ready to transmit\n"); + + if (int_status & AT91_MCI_RXRDY) + mci_dbg("Ready to receive\n"); + + if (int_status & AT91_MCI_CMDRDY) + { + mci_dbg("Command ready\n"); + completed = at91_mci_handle_cmdrdy(mci); + } + } + + if (completed) + { + mci_dbg("Completed command\n"); + at91_mci_write(AT91_MCI_IDR, 0xffffffff & ~(AT91_MCI_SDIOIRQA | AT91_MCI_SDIOIRQB)); + at91_mci_completed_command(mci, int_status); + } + else + at91_mci_write(AT91_MCI_IDR, int_status & ~(AT91_MCI_SDIOIRQA | AT91_MCI_SDIOIRQB)); + +} + + +/* + * Set the IOCFG + */ +static void at91_mci_set_iocfg(struct rt_mmcsd_host *host, struct rt_mmcsd_io_cfg *io_cfg) +{ + rt_uint32_t clkdiv; + //struct at91_mci *mci = host->private_data; + rt_uint32_t at91_master_clock = clk_get_rate(clk_get("mck")); + + if (io_cfg->clock == 0) + { + /* Disable the MCI controller */ + at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIDIS); + clkdiv = 0; + } + else + { + /* Enable the MCI controller */ + at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIEN); + + if ((at91_master_clock % (io_cfg->clock * 2)) == 0) + clkdiv = ((at91_master_clock / io_cfg->clock) / 2) - 1; + else + clkdiv = (at91_master_clock / io_cfg->clock) / 2; + + mci_dbg("clkdiv = %d. mcck = %ld\n", clkdiv, + at91_master_clock / (2 * (clkdiv + 1))); + } + if (io_cfg->bus_width == MMCSD_BUS_WIDTH_4) + { + mci_dbg("MMC: Setting controller bus width to 4\n"); + at91_mci_write(AT91_MCI_SDCR, at91_mci_read(AT91_MCI_SDCR) | AT91_MCI_SDCBUS); + } + else + { + mci_dbg("MMC: Setting controller bus width to 1\n"); + at91_mci_write(AT91_MCI_SDCR, at91_mci_read(AT91_MCI_SDCR) & ~AT91_MCI_SDCBUS); + } + + /* Set the clock divider */ + at91_mci_write(AT91_MCI_MR, (at91_mci_read(AT91_MCI_MR) & ~AT91_MCI_CLKDIV) | clkdiv); + + /* maybe switch power to the card */ + switch (io_cfg->power_mode) + { + case MMCSD_POWER_OFF: + break; + case MMCSD_POWER_UP: + break; + case MMCSD_POWER_ON: + /*at91_mci_write(AT91_MCI_ARGR, 0); + at91_mci_write(AT91_MCI_CMDR, 0|AT91_MCI_SPCMD_INIT|AT91_MCI_OPDCMD); + mci_dbg("MCI_SR=0x%08x\n", at91_mci_read(AT91_MCI_SR)); + while (!(at91_mci_read(AT91_MCI_SR) & AT91_MCI_CMDRDY)) + { + + } + mci_dbg("at91 mci power on\n");*/ + break; + default: + rt_kprintf("unknown power_mode %d\n", io_cfg->power_mode); + break; + } + +} + + +static void at91_mci_enable_sdio_irq(struct rt_mmcsd_host *host, rt_int32_t enable) +{ + at91_mci_write(enable ? AT91_MCI_IER : AT91_MCI_IDR, AT91_MCI_SDIOIRQB); +} + + +static const struct rt_mmcsd_host_ops ops = { + at91_mci_request, + at91_mci_set_iocfg, + RT_NULL, + at91_mci_enable_sdio_irq, +}; + +void at91_mci_detect(int irq, void *param) +{ + rt_kprintf("mmcsd gpio detected\n"); +} + +static void mci_gpio_init() +{ +#ifdef USE_SLOT_B + at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)); + at91_sys_write(AT91_PIOA + PIO_PUDR, (1 << 8)); + at91_sys_write(AT91_PIOA + PIO_BSR, (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)); + at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 8)); + at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)|(1 << 8)); + + at91_sys_write(AT91_PIOA + PIO_IDR, (1 << 6)|(1 << 7)); + at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 6)|(1 << 7)); + at91_sys_write(AT91_PIOA + PIO_ODR, (1 << 6)|(1 << 7)); + at91_sys_write(AT91_PIOA + PIO_PER, (1 << 6)|(1 << 7)); +#else + at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)); + at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8)); + at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8)); +#endif +} + +int at91_mci_init(void) +{ + struct rt_mmcsd_host *host; + struct at91_mci *mci; + + host = mmcsd_alloc_host(); + if (!host) + { + return -RT_ERROR; + } + + mci = rt_malloc(sizeof(struct at91_mci)); + if (!mci) + { + rt_kprintf("alloc mci failed\n"); + goto err; + } + + rt_memset(mci, 0, sizeof(struct at91_mci)); + + host->ops = &ops; + host->freq_min = 375000; + host->freq_max = 25000000; + host->valid_ocr = VDD_32_33 | VDD_33_34; + host->flags = MMCSD_BUSWIDTH_4 | MMCSD_MUTBLKWRITE | \ + MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ; + host->max_seg_size = 65535; + host->max_dma_segs = 2; + host->max_blk_size = 512; + host->max_blk_count = 4096; + + mci->host = host; + + mci_gpio_init(); + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_MCI); //enable MCI clock + + at91_mci_disable(); + at91_mci_enable(); + + /* instal interrupt */ + rt_hw_interrupt_install(AT91SAM9260_ID_MCI, at91_mci_irq, + (void *)mci, "MMC"); + rt_hw_interrupt_umask(AT91SAM9260_ID_MCI); + rt_hw_interrupt_install(gpio_to_irq(AT91_PIN_PA7), + at91_mci_detect, RT_NULL, "MMC_DETECT"); + rt_hw_interrupt_umask(gpio_to_irq(AT91_PIN_PA7)); + + rt_timer_init(&mci->timer, "mci_timer", + at91_timeout_timer, + mci, + RT_TICK_PER_SECOND, + RT_TIMER_FLAG_PERIODIC); + + //rt_timer_start(&mci->timer); + + //rt_sem_init(&mci->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO); + + host->private_data = mci; + + mmcsd_change(host); + + return 0; + +err: + mmcsd_free_host(host); + + return -RT_ENOMEM; +} + +INIT_DEVICE_EXPORT(at91_mci_init); + +#include "finsh.h" +FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init); + +void mci_dump(void) +{ + rt_uint32_t i; + + rt_kprintf("PIOA_PSR=0x%08x\n", at91_sys_read(AT91_PIOA+PIO_PSR)); + rt_kprintf("PIOA_ABSR=0x%08x\n", at91_sys_read(AT91_PIOA+PIO_ABSR)); + rt_kprintf("PIOA_PUSR=0x%08x\n", at91_sys_read(AT91_PIOA+PIO_PUSR)); + + for (i = 0; i <= 0x4c; i += 4) { + rt_kprintf("0x%08x:0x%08x\n", AT91SAM9260_BASE_MCI+i, at91_mci_read(i)); + } +} + +FINSH_FUNCTION_EXPORT(mci_dump, dump register for mci); diff --git a/bsp/at91/at91sam9260/drivers/at91_mci.h b/bsp/at91/at91sam9260/drivers/at91_mci.h new file mode 100644 index 0000000000..80eb07385d --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/at91_mci.h @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-06-09 weety first version + */ + +#ifndef __AT91_MCI_H__ +#define __AT91_MCI_H__ + +#define AT91_MCI_CR 0x00 /* Control Register */ +#define AT91_MCI_MCIEN (1 << 0) /* Multi-Media Interface Enable */ +#define AT91_MCI_MCIDIS (1 << 1) /* Multi-Media Interface Disable */ +#define AT91_MCI_PWSEN (1 << 2) /* Power Save Mode Enable */ +#define AT91_MCI_PWSDIS (1 << 3) /* Power Save Mode Disable */ +#define AT91_MCI_SWRST (1 << 7) /* Software Reset */ + +#define AT91_MCI_MR 0x04 /* Mode Register */ +#define AT91_MCI_CLKDIV (0xff << 0) /* Clock Divider */ +#define AT91_MCI_PWSDIV (7 << 8) /* Power Saving Divider */ +#define AT91_MCI_RDPROOF (1 << 11) /* Read Proof Enable [SAM926[03] only] */ +#define AT91_MCI_WRPROOF (1 << 12) /* Write Proof Enable [SAM926[03] only] */ +#define AT91_MCI_PDCFBYTE (1 << 13) /* PDC Force Byte Transfer [SAM926[03] only] */ +#define AT91_MCI_PDCPADV (1 << 14) /* PDC Padding Value */ +#define AT91_MCI_PDCMODE (1 << 15) /* PDC-orientated Mode */ +#define AT91_MCI_BLKLEN (0xfff << 18) /* Data Block Length */ + +#define AT91_MCI_DTOR 0x08 /* Data Timeout Register */ +#define AT91_MCI_DTOCYC (0xf << 0) /* Data Timeout Cycle Number */ +#define AT91_MCI_DTOMUL (7 << 4) /* Data Timeout Multiplier */ +#define AT91_MCI_DTOMUL_1 (0 << 4) +#define AT91_MCI_DTOMUL_16 (1 << 4) +#define AT91_MCI_DTOMUL_128 (2 << 4) +#define AT91_MCI_DTOMUL_256 (3 << 4) +#define AT91_MCI_DTOMUL_1K (4 << 4) +#define AT91_MCI_DTOMUL_4K (5 << 4) +#define AT91_MCI_DTOMUL_64K (6 << 4) +#define AT91_MCI_DTOMUL_1M (7 << 4) + +#define AT91_MCI_SDCR 0x0c /* SD Card Register */ +#define AT91_MCI_SDCSEL (3 << 0) /* SD Card Selector */ +#define AT91_MCI_SDCBUS (1 << 7) /* 1-bit or 4-bit bus */ + +#define AT91_MCI_ARGR 0x10 /* Argument Register */ + +#define AT91_MCI_CMDR 0x14 /* Command Register */ +#define AT91_MCI_CMDNB (0x3f << 0) /* Command Number */ +#define AT91_MCI_RSPTYP (3 << 6) /* Response Type */ +#define AT91_MCI_RSPTYP_NONE (0 << 6) +#define AT91_MCI_RSPTYP_48 (1 << 6) +#define AT91_MCI_RSPTYP_136 (2 << 6) +#define AT91_MCI_SPCMD (7 << 8) /* Special Command */ +#define AT91_MCI_SPCMD_NONE (0 << 8) +#define AT91_MCI_SPCMD_INIT (1 << 8) +#define AT91_MCI_SPCMD_SYNC (2 << 8) +#define AT91_MCI_SPCMD_ICMD (4 << 8) +#define AT91_MCI_SPCMD_IRESP (5 << 8) +#define AT91_MCI_OPDCMD (1 << 11) /* Open Drain Command */ +#define AT91_MCI_MAXLAT (1 << 12) /* Max Latency for Command to Response */ +#define AT91_MCI_TRCMD (3 << 16) /* Transfer Command */ +#define AT91_MCI_TRCMD_NONE (0 << 16) +#define AT91_MCI_TRCMD_START (1 << 16) +#define AT91_MCI_TRCMD_STOP (2 << 16) +#define AT91_MCI_TRDIR (1 << 18) /* Transfer Direction */ +#define AT91_MCI_TRTYP (3 << 19) /* Transfer Type */ +#define AT91_MCI_TRTYP_BLOCK (0 << 19) +#define AT91_MCI_TRTYP_MULTIPLE (1 << 19) +#define AT91_MCI_TRTYP_STREAM (2 << 19) + +#define AT91_MCI_BLKR 0x18 /* Block Register */ +#define AT91_MCI_BLKR_BCNT(n) ((0xffff & (n)) << 0) /* Block count */ +#define AT91_MCI_BLKR_BLKLEN(n) ((0xffff & (n)) << 16) /* Block lenght */ + +#define AT91_MCI_RSPR(n) (0x20 + ((n) * 4)) /* Response Registers 0-3 */ +#define AT91_MCR_RDR 0x30 /* Receive Data Register */ +#define AT91_MCR_TDR 0x34 /* Transmit Data Register */ + +#define AT91_MCI_SR 0x40 /* Status Register */ +#define AT91_MCI_CMDRDY (1U << 0) /* Command Ready */ +#define AT91_MCI_RXRDY (1U << 1) /* Receiver Ready */ +#define AT91_MCI_TXRDY (1U << 2) /* Transmit Ready */ +#define AT91_MCI_BLKE (1U << 3) /* Data Block Ended */ +#define AT91_MCI_DTIP (1U << 4) /* Data Transfer in Progress */ +#define AT91_MCI_NOTBUSY (1U << 5) /* Data Not Busy */ +#define AT91_MCI_ENDRX (1U << 6) /* End of RX Buffer */ +#define AT91_MCI_ENDTX (1U << 7) /* End fo TX Buffer */ +#define AT91_MCI_SDIOIRQA (1U << 8) /* SDIO Interrupt for Slot A */ +#define AT91_MCI_SDIOIRQB (1U << 9) /* SDIO Interrupt for Slot B */ +#define AT91_MCI_RXBUFF (1U << 14) /* RX Buffer Full */ +#define AT91_MCI_TXBUFE (1U << 15) /* TX Buffer Empty */ +#define AT91_MCI_RINDE (1U << 16) /* Response Index Error */ +#define AT91_MCI_RDIRE (1U << 17) /* Response Direction Error */ +#define AT91_MCI_RCRCE (1U << 18) /* Response CRC Error */ +#define AT91_MCI_RENDE (1U << 19) /* Response End Bit Error */ +#define AT91_MCI_RTOE (1U << 20) /* Reponse Time-out Error */ +#define AT91_MCI_DCRCE (1U << 21) /* Data CRC Error */ +#define AT91_MCI_DTOE (1U << 22) /* Data Time-out Error */ +#define AT91_MCI_OVRE (1U << 30) /* Overrun */ +#define AT91_MCI_UNRE (1U << 31) /* Underrun */ + +#define AT91_MCI_IER 0x44 /* Interrupt Enable Register */ +#define AT91_MCI_IDR 0x48 /* Interrupt Disable Register */ +#define AT91_MCI_IMR 0x4c /* Interrupt Mask Register */ + +extern int at91_mci_init(void); + +#endif diff --git a/bsp/at91/at91sam9260/drivers/at91_nand.c b/bsp/at91/at91sam9260/drivers/at91_nand.c new file mode 100644 index 0000000000..2fc5b2edc4 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/at91_nand.c @@ -0,0 +1,635 @@ +/* +* Copyright (c) 2006-2022, RT-Thread Development Team +* +* SPDX-License-Identifier: Apache-2.0 +* +* Change Logs: +* Date Author Notes +* 2022-01-08 brightsally first version +*/ + +#include +#include +#include +#include +#include +#include +#include "at91_nand.h" + +static struct nand_chip_id *chip; +static unsigned int bufsize = 528; +static unsigned char pages_per_block = 32; +static unsigned char eccsize = 6; +static struct rt_mtd_nand_device _partition[2]; +/***************************************************************************** +nand_calculate_ecc function copy from uboot +*****************************************************************************/ +#define u_char unsigned char +/* Define default oob placement schemes for large and small page devices */ +static struct nand_ecclayout nand_oob_16 = +{ + + .eccbytes = 6, + .eccpos = {0, 1, 2, 3, 6, 7}, + .oobfree = { + { + .offset = 8, + . length = 8 + } + } +}; + +static struct nand_ecclayout nand_oob_64 = +{ + .eccbytes = 24, + .eccpos = { + 40, 41, 42, 43, 44, 45, 46, 47, + 48, 49, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 61, 62, 63 + }, + .oobfree = { + { + .offset = 2, + .length = 38 + } + } +}; +/* +* Pre-calculated 256-way 1 byte column parity +*/ + +static const u_char nand_ecc_precalc_table[] = +{ + 0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00, + 0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65, + 0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66, + 0x03, 0x56, 0x55, 0x00, 0x5a, 0x0f, 0x0c, 0x59, 0x59, 0x0c, 0x0f, 0x5a, 0x00, 0x55, 0x56, 0x03, + 0x69, 0x3c, 0x3f, 0x6a, 0x30, 0x65, 0x66, 0x33, 0x33, 0x66, 0x65, 0x30, 0x6a, 0x3f, 0x3c, 0x69, + 0x0c, 0x59, 0x5a, 0x0f, 0x55, 0x00, 0x03, 0x56, 0x56, 0x03, 0x00, 0x55, 0x0f, 0x5a, 0x59, 0x0c, + 0x0f, 0x5a, 0x59, 0x0c, 0x56, 0x03, 0x00, 0x55, 0x55, 0x00, 0x03, 0x56, 0x0c, 0x59, 0x5a, 0x0f, + 0x6a, 0x3f, 0x3c, 0x69, 0x33, 0x66, 0x65, 0x30, 0x30, 0x65, 0x66, 0x33, 0x69, 0x3c, 0x3f, 0x6a, + 0x6a, 0x3f, 0x3c, 0x69, 0x33, 0x66, 0x65, 0x30, 0x30, 0x65, 0x66, 0x33, 0x69, 0x3c, 0x3f, 0x6a, + 0x0f, 0x5a, 0x59, 0x0c, 0x56, 0x03, 0x00, 0x55, 0x55, 0x00, 0x03, 0x56, 0x0c, 0x59, 0x5a, 0x0f, + 0x0c, 0x59, 0x5a, 0x0f, 0x55, 0x00, 0x03, 0x56, 0x56, 0x03, 0x00, 0x55, 0x0f, 0x5a, 0x59, 0x0c, + 0x69, 0x3c, 0x3f, 0x6a, 0x30, 0x65, 0x66, 0x33, 0x33, 0x66, 0x65, 0x30, 0x6a, 0x3f, 0x3c, 0x69, + 0x03, 0x56, 0x55, 0x00, 0x5a, 0x0f, 0x0c, 0x59, 0x59, 0x0c, 0x0f, 0x5a, 0x00, 0x55, 0x56, 0x03, + 0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66, + 0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65, + 0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00 +}; + +/** +* nand_calculate_ecc - [NAND Interface] Calculate 3-byte ECC for 256-byte block +* @mtd: MTD block structure +* @dat: raw data +* @ecc_code: buffer for ECC +*/ +int nand_calculate_ecc(const u_char *dat, u_char *ecc_code) +{ + uint8_t idx, reg1, reg2, reg3, tmp1, tmp2; + int i; + + /* Initialize variables */ + reg1 = reg2 = reg3 = 0; + + /* Build up column parity */ + for (i = 0; i < 256; i++) + { + /* Get CP0 - CP5 from table */ + idx = nand_ecc_precalc_table[*dat++]; + reg1 ^= (idx & 0x3f); + + /* All bit XOR = 1 ? */ + if (idx & 0x40) + { + reg3 ^= (uint8_t) i; + reg2 ^= ~((uint8_t) i); + } + } + + /* Create non-inverted ECC code from line parity */ + tmp1 = (reg3 & 0x80) >> 0; /* B7 -> B7 */ + tmp1 |= (reg2 & 0x80) >> 1; /* B7 -> B6 */ + tmp1 |= (reg3 & 0x40) >> 1; /* B6 -> B5 */ + tmp1 |= (reg2 & 0x40) >> 2; /* B6 -> B4 */ + tmp1 |= (reg3 & 0x20) >> 2; /* B5 -> B3 */ + tmp1 |= (reg2 & 0x20) >> 3; /* B5 -> B2 */ + tmp1 |= (reg3 & 0x10) >> 3; /* B4 -> B1 */ + tmp1 |= (reg2 & 0x10) >> 4; /* B4 -> B0 */ + + tmp2 = (reg3 & 0x08) << 4; /* B3 -> B7 */ + tmp2 |= (reg2 & 0x08) << 3; /* B3 -> B6 */ + tmp2 |= (reg3 & 0x04) << 3; /* B2 -> B5 */ + tmp2 |= (reg2 & 0x04) << 2; /* B2 -> B4 */ + tmp2 |= (reg3 & 0x02) << 2; /* B1 -> B3 */ + tmp2 |= (reg2 & 0x02) << 1; /* B1 -> B2 */ + tmp2 |= (reg3 & 0x01) << 1; /* B0 -> B1 */ + tmp2 |= (reg2 & 0x01) << 0; /* B7 -> B0 */ + + /* Calculate final ECC code */ +#ifdef CONFIG_MTD_NAND_ECC_SMC + ecc_code[0] = ~tmp2; + ecc_code[1] = ~tmp1; +#else + ecc_code[0] = ~tmp1; + ecc_code[1] = ~tmp2; +#endif + ecc_code[2] = ((~reg1) << 2) | 0x03; + + return 0; +} +/*********nand_calculate_ecc function copy from uboot end*********************/ +static void at91_nand_udelay(rt_uint32_t us) +{ + rt_uint32_t len; + for (; us > 0; us --) + for (len = 0; len < 10; len++); +} +static void wait_udelay() +{ + if (chip->pagesize == 2048)at91_nand_udelay(2000); + else at91_nand_udelay(1); +} +void nand_enable_cs(void) +{ + writel(0x00004000, 0xfffff834); + readl(0xfffff838); + //rt_kprintf("===i=0x%x\r\n",i); + wait_udelay(); +} +void nand_disable_cs(void) +{ + writeb(0xff, 0x40400000); + writel(0x00004000, 0xfffff830); + readl(0xfffff830); + wait_udelay(); +} + +void nand_write_cmd(unsigned char cmd) +{ + writeb(cmd, CMD_REG); + wait_udelay(); +} +void nand_write_addr(unsigned char addr) +{ + writeb(addr, ADDR_REG); + wait_udelay(); +} +void nand_write_data_byte(unsigned char data) +{ + writeb(data, DATA_REG); + wait_udelay(); +} + +unsigned char nand_read_data_byte(void) +{ + return readb(DATA_REG); +} + +static int nand_wait_ready(void) +{ + unsigned int timeout = 10000; + + nand_write_cmd(CMD_STATUS); + while ((!(nand_read_data_byte() & STATUS_READY)) && timeout--); + if (!timeout)return -1; + return 0; +} + +//---------------------------------------------------------------- +/* read chip id */ +static rt_err_t at9260_nand_read_id(struct rt_mtd_nand_device *device) +{ + int manf_id, dev_id; + unsigned int chipid; + unsigned int i; + + nand_enable_cs(); + + nand_write_cmd(CMD_READID); + nand_write_addr(CMD_READ_1); + manf_id = nand_read_data_byte(); + dev_id = nand_read_data_byte(); + nand_disable_cs(); + + chipid = (manf_id << 8) | dev_id; + + for (i = 0; i < ARRAY_SIZE(nand_ids); i++) + { + if (chipid == nand_ids[i].chip_id) + break; + } + + if (i == ARRAY_SIZE(nand_ids)) + { + rt_kprintf("NAND: Not found Manufacturer ID: %x," \ + "Chip ID: 0x%x\n", manf_id, dev_id); + return -1; + } + + //find nand chip + rt_kprintf("NAND: Manufacturer ID: %x Chip ID: %x Total Block:%d\n", manf_id, dev_id, nand_ids[i].numblocks); + + chip->numblocks = nand_ids[i].numblocks; + chip->pagesize = nand_ids[i].pagesize; + chip->blocksize = nand_ids[i].blocksize; + chip->oobsize = nand_ids[i].oobsize; + chip->buswidth = nand_ids[i].buswidth; + chip->numblocks = nand_ids[i].numblocks; + + bufsize = chip->pagesize + chip->oobsize; + eccsize = (chip->pagesize) * 3 / 256; + + if (chip->pagesize == 512) + { + pages_per_block = 32; + rt_kprintf("===small block pages===== \n"); + } + else if (chip->pagesize == 2048) + { + pages_per_block = 64; + rt_kprintf("===big block pages===== \n"); + } + + return i; +} + +int nand_read_page9260(unsigned int block, unsigned int page, unsigned char *data, rt_uint32_t data_len, unsigned char *spare, rt_uint32_t spare_len) +{ + int i = 0; + unsigned int blockpage; + unsigned char buff1[bufsize]; + + blockpage = block * (pages_per_block) + page; + memset(buff1, 0xff, bufsize); + + nand_enable_cs(); + nand_write_cmd(CMD_READ_A0); + nand_write_addr(0); + if (bufsize == 2112)nand_write_addr(0); + nand_write_addr(blockpage & 0xff); + nand_write_addr((blockpage >> 8) & 0xff); + nand_write_addr((blockpage >> 16) & 0xff); + + at91_nand_udelay(2000); + + if (bufsize == 528)nand_write_cmd(CMD_READ_1); + else if (bufsize == 2112)nand_write_cmd(CMD_READ_2); + + for (i = 0; i < chip->pagesize; i++)buff1[i] = nand_read_data_byte(); + for (i = 0; i < chip->oobsize; i++)buff1[i + chip->pagesize] = nand_read_data_byte(); + + nand_wait_ready(); + nand_disable_cs(); + + if (data != RT_NULL) + rt_memcpy(data, buff1, data_len); + if (spare != RT_NULL) + rt_memcpy(spare, &buff1[chip->pagesize], spare_len); + + return 0x00; +} +//============================================================================ +static rt_err_t at9260_nand_read_page(struct rt_mtd_nand_device *device, + rt_off_t page, + rt_uint8_t *data, rt_uint32_t data_len, + rt_uint8_t *spare, rt_uint32_t spare_len) + +{ + return nand_read_page9260(page / pages_per_block, page % pages_per_block, data, data_len, spare, spare_len); +} + +int nand_write_page9260(unsigned int block, unsigned int page, unsigned char *data, rt_uint32_t data_len, unsigned char *spare, rt_uint32_t spare_len) +{ + unsigned int blockpage; + unsigned char buff2[chip->pagesize]; + unsigned char se[chip->oobsize]; + unsigned char ecc_code[eccsize]; + int i = 0; + + blockpage = block * (pages_per_block) + page; + memset(buff2, 0xff, chip->pagesize); + memset(se, 0xff, chip->oobsize); + memset(ecc_code, 0xff, eccsize); + + nand_enable_cs(); + nand_write_cmd(CMD_WRITE_1); + + nand_write_addr(0); + if (bufsize == 2112)nand_write_addr(0); + nand_write_addr(blockpage & 0xff); + nand_write_addr((blockpage >> 8) & 0xff); + nand_write_addr((blockpage >> 16) & 0xff); + + at91_nand_udelay(2000); + + for (i = 0; i < data_len; i++)buff2[i] = *(data + i); + for (i = 0; i < chip->pagesize; i++) + { + nand_write_data_byte(buff2[i]); + } + +#ifndef RT_USING_DFS_UFFS + if (bufsize == 528) + { + //caclu ECC + nand_calculate_ecc(buff2, ecc_code); + nand_calculate_ecc(&buff2[256], &ecc_code[3]); + //use uboot MTD ECC layout + for (i = 0; i < 6; i++) + { + se[nand_oob_16.eccpos[i]] = ecc_code[i]; + } + } + else if (bufsize == 2112) + { + //caclu ECC + for (i = 0; i < 8; i++) + { + nand_calculate_ecc(&buff2[256 * i], &(ecc_code[3 * i])); + } + //use uboot MTD ECC layout + for (i = 0; i < 24; i++) + { + se[nand_oob_64.eccpos[i]] = ecc_code[i]; + } + } +#else + //UFFS do ECC + for (i = 0; i < chip->oobsize; i++) + { + se[i] = *(spare + i); + } +#endif + + for (i = 0; i < chip->oobsize; i++) + { + nand_write_data_byte(se[i]); + } + + nand_write_cmd(CMD_WRITE_2); + nand_wait_ready(); + nand_disable_cs(); + + return RT_EOK; +} +//=========================================================================================== +static rt_err_t at9260_nand_write_page(struct rt_mtd_nand_device *device, + rt_off_t page, + rt_uint8_t *data, rt_uint32_t data_len, + rt_uint8_t *oob, rt_uint32_t spare_len) +{ + + return nand_write_page9260(page / pages_per_block, page % pages_per_block, data, data_len, oob, spare_len); +} +//=========================================================================================== +static rt_err_t at9260_nand_move_page(struct rt_mtd_nand_device *device, rt_off_t src_page, rt_off_t dst_page) +{ + return RT_EOK; +} +//=========================================================================================== +static long at9260_nand_isbad(struct rt_mtd_nand_device *nand, uint32_t blk) +{ + int i = 0; + unsigned char buff2[bufsize]; + unsigned int blockpage = blk * (chip->blocksize / chip->pagesize) + 0; + + memset(buff2, 0xff, bufsize); + + //read blk page 0 + nand_enable_cs(); + nand_write_cmd(CMD_READ_A0); + nand_write_addr(0); + if (bufsize == 2112)nand_write_addr(0); + nand_write_addr(blockpage & 0xff); + nand_write_addr((blockpage >> 8) & 0xff); + nand_write_addr((blockpage >> 16) & 0xff); + + at91_nand_udelay(2000); + + if (bufsize == 528)nand_write_cmd(CMD_READ_1); + else if (bufsize == 2112)nand_write_cmd(CMD_READ_2); + + for (i = 0; i < bufsize; i++) + { + buff2[i] = nand_read_data_byte(); + } + nand_disable_cs(); + + if (bufsize == 528) + { + if (buff2[5 + 512] != 0xff) + { + rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #0 of block #%d,addr=0x%x \n\r", buff2[5 + 512], blk, blk * 512 * 32); + return buff2[5 + 512]; + } + } + else if (bufsize == 2112) + { + if ((buff2[2048 + 0] != 0xff) && (buff2[2048 + 1] != 0xff)) + { + rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #0 of block #%d,addr=0x%x \n\r", buff2[0 + 2048], blk, blk * 2048 * 64); + return buff2[0 + 2048] << 8 | buff2[0 + 2048]; + } + } + + //read blk page 1 + blockpage = blockpage + 1; + memset(buff2, 0xff, bufsize); + nand_enable_cs(); + nand_write_cmd(CMD_READ_A0); + nand_write_addr(0); + if (bufsize == 2112)nand_write_addr(0); + nand_write_addr(blockpage & 0xff); + nand_write_addr((blockpage >> 8) & 0xff); + nand_write_addr((blockpage >> 16) & 0xff); + at91_nand_udelay(2000); + + if (bufsize == 528)nand_write_cmd(CMD_READ_1); + else if (bufsize == 2112)nand_write_cmd(CMD_READ_2); + + + for (i = 0; i < bufsize; i++) + { + buff2[i] = nand_read_data_byte(); + } + + nand_disable_cs(); + + if (bufsize == 528) + { + if (buff2[5 + 512] != 0xff) + { + rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #1 of block #%d,addr=0x%x \n\r", buff2[5 + 512], blk, blk * 512 * 32); + return buff2[5 + 512]; + } + } + else if (bufsize == 2112) + { + if ((buff2[2048 + 0] != 0xff) && (buff2[2048 + 1] != 0xff)) + { + rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #1 of block #%d,addr=0x%x \n\r", buff2[0 + 2048], blk, blk * 2048 * 64); + return buff2[0 + 2048] << 8 | buff2[0 + 2048]; + } + } + + return GOODBLOCK; +} + +static long at9260_nand_markbad(struct rt_mtd_nand_device *nand, uint32_t blk) +{ + unsigned int i = 0; + unsigned int blockpage = blk * (chip->blocksize / chip->pagesize) + 0; + unsigned char bad_flag = 0xff; + long ret_bad; + + ret_bad = at9260_nand_isbad(nand, blk); + + if (bufsize == 528)bad_flag = ret_bad & 0xff; + else if (bufsize == 2112) + { + if (bad_flag == 0xff)bad_flag = (ret_bad >> 8) & 0xff; + } + + if (bad_flag != 0xff) + { + nand_enable_cs(); + nand_write_cmd(CMD_WRITE_1); + nand_write_addr(0); + if (bufsize == 2112)nand_write_addr(0); + nand_write_addr(blockpage & 0xff); + nand_write_addr((blockpage >> 8) & 0xff); + nand_write_addr((blockpage >> 16) & 0xff); + at91_nand_udelay(2000); + + for (i = 0; i < bufsize; i++) + { + nand_write_data_byte(0x00); + } + + nand_write_cmd(CMD_WRITE_2); + nand_wait_ready(); + nand_disable_cs(); + } + return RT_EOK; +} +//--------------------------------------------------------------------------------------------- +/* erase block */ +static rt_err_t at9260_nand_erase_block(struct rt_mtd_nand_device *device, rt_uint32_t block) +{ + unsigned int row_address; + + + //Calculate address used for erase + row_address = (block) * (chip->blocksize / chip->pagesize); + + nand_enable_cs(); + nand_write_cmd(CMD_ERASE_1); + nand_write_addr(row_address & 0xff); + nand_write_addr((row_address >> 8) & 0xff); + nand_write_addr((row_address >> 16) & 0xff); + nand_write_cmd(CMD_ERASE_2); + + at91_nand_udelay(2000); + nand_wait_ready(); + nand_disable_cs(); + return RT_EOK; +} + +const static struct rt_mtd_nand_driver_ops _ops = +{ + at9260_nand_read_id, + at9260_nand_read_page, + at9260_nand_write_page, + at9260_nand_move_page, + at9260_nand_erase_block, +#ifndef RT_USING_DFS_UFFS + at9260_nand_isbad, + at9260_nand_markbad, +#else + RT_NULL, + RT_NULL, +#endif +}; + +void nand_eraseall(void); + +int rt_hw_mtd_nand_init(void) +{ + unsigned int i, reg, index; + + /* Setup Smart Media, first enable the address range of CS3 in HMATRIX user interface */ + reg = readl(AT91C_BASE_CCFG + CCFG_EBICSA); + reg |= AT91C_EBI_CS3A_SM; + writel(reg, AT91C_BASE_CCFG + CCFG_EBICSA); + /* Configure SMC CS3 */ + writel((AT91C_SMC_NWESETUP_(1) | AT91C_SMC_NCS_WRSETUP_(0) | AT91C_SMC_NRDSETUP_(1) | AT91C_SMC_NCS_RDSETUP_(0)), AT91C_BASE_SMC + SMC_SETUP3); + writel((AT91C_SMC_NWEPULSE_(3) | AT91C_SMC_NCS_WRPULSE_(3) | AT91C_SMC_NRDPULSE_(3) | AT91C_SMC_NCS_RDPULSE_(3)), AT91C_BASE_SMC + SMC_PULSE3); + writel((AT91C_SMC_NWECYCLE_(5) | AT91C_SMC_NRDCYCLE_(5)), AT91C_BASE_SMC + SMC_CYCLE3); + writel((AT91C_SMC_READMODE | AT91C_SMC_WRITEMODE | (0x0 << 5) | AT91C_SMC_DBW_WIDTH_BITS_8 | AT91_SMC_TDF_(2)), AT91C_BASE_SMC + SMC_CTRL3); + /* {"NANDCS", AT91C_PIN_PC(14), 1, PIO_PULLUP, PIO_OUTPUT} */ + writel((0x01 << 14), 0xfffff800 + 0x0044); + writel((0x01 << 14), 0xfffff800 + 0x0060); + writel((0x01 << 14), 0xfffff800 + 0x0030); + writel((0x01 << 14), 0xfffff800 + 0x0010); + writel((0x01 << 14), 0xfffff800 + 0x0000); + /* enable PIOC clock */ + writel(0x01 << 4, 0x10 + AT91C_BASE_PMC); + i = at9260_nand_read_id(RT_NULL); + index = i; + + chip->pagesize = nand_ids[index].pagesize; + chip->blocksize = nand_ids[index].blocksize; + chip->oobsize = nand_ids[index].oobsize; + chip->buswidth = nand_ids[index].buswidth; + chip->numblocks = nand_ids[index].numblocks; + + _partition[0].page_size = chip->pagesize; + _partition[1].page_size = chip->pagesize; + _partition[0].pages_per_block = chip->blocksize / chip->pagesize; + _partition[1].pages_per_block = chip->blocksize / chip->pagesize; + _partition[0].oob_size = _partition[1].oob_size = chip->oobsize; + _partition[0].oob_free = _partition[1].oob_free = chip->oobsize - (chip->pagesize / 256 * 3); //oob_free = oob_size - ecc_size + + + _partition[0].block_total = DATA_PART_ADDR / (chip->blocksize); + _partition[0].block_start = 0; + _partition[0].block_end = DATA_PART_ADDR / (chip->blocksize) - 1; + + _partition[1].block_total = chip->numblocks - _partition[0].block_total; + _partition[1].block_start = _partition[0].block_end + 1; + _partition[1].block_end = chip->numblocks - 1; + + _partition[0].ops = &_ops; + _partition[1].ops = &_ops; + + rt_mtd_nand_register_device("nand0", &_partition[0]); + rt_mtd_nand_register_device("nand1", &_partition[1]); + + return RT_EOK; +} +INIT_DEVICE_EXPORT(rt_hw_mtd_nand_init); + +#if defined(RT_USING_FINSH) +#include +void nand_eraseall() +{ + int tmp=0; + int index=0; + + + if (chip->pagesize == 512) + tmp = (DATA_PART_ADDR / 0x4000); //0X4000=512*32=PAGER_SIZE*PAGES_PER_BLOCK + else if (chip->pagesize == 2048) + tmp = (DATA_PART_ADDR / 0x20000); //0X20000=2048*64 + + for (index=tmp; index < chip->numblocks; index ++) + { + at9260_nand_erase_block(RT_NULL, index); + } +} +FINSH_FUNCTION_EXPORT(nand_eraseall, erase all of block in the nand flash); + +#endif //RT_USING_FINSH + + diff --git a/bsp/at91/at91sam9260/drivers/at91_nand.h b/bsp/at91/at91sam9260/drivers/at91_nand.h new file mode 100644 index 0000000000..078d3d4cb5 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/at91_nand.h @@ -0,0 +1,120 @@ +/* +* Copyright (c) 2006-2022, RT-Thread Development Team +* +* SPDX-License-Identifier: Apache-2.0 +* +* Change Logs: +* Date Author Notes +* 2022-01-08 brightsally first version +*/ + +#ifndef _ATMEL_NAND_H_ +#define _ATMEL_NAND_H_ + + +/* NAND flash */ +#define DATA_PART_ADDR 0x900000 /*nand0=0-9MB;nand1=9MB-END*/ + +#define AT91C_BASE_CCFG 0xffffef14 +#define CCFG_EBICSA 0x08 /* EBI Chip Select Assignement Register */ +#define AT91C_EBI_CS3A_SM (0x1UL << 3) +#define AT91C_BASE_SMC 0xffffec00 +#define AT91C_BASE_PMC 0xfffffc00 +#define SMC_SETUP3 0x30 /* Setup Register for CS 3 */ +#define SMC_PULSE3 0x34 /* Pulse Register for CS 3 */ +#define SMC_CYCLE3 0x38 /* Cycle Register for CS 3 */ +#define SMC_CTRL3 0x3C /* Control Register for CS 3 */ + +#define AT91C_SMC_NWESETUP_(x) ((x) << 0) +#define AT91C_SMC_NCS_WRSETUP_(x) ((x) << 8) +#define AT91C_SMC_NRDSETUP_(x) ((x) << 16) +#define AT91C_SMC_NCS_RDSETUP_(x) ((x) << 24) +#define AT91C_SMC_NWEPULSE_(x) ((x) << 0) +#define AT91C_SMC_NCS_WRPULSE_(x) ((x) << 8) +#define AT91C_SMC_NRDPULSE_(x) ((x) << 16) +#define AT91C_SMC_NCS_RDPULSE_(x) ((x) << 24) + +#define AT91C_SMC_NWECYCLE_(x) ((x) << 0) +#define AT91C_SMC_NRDCYCLE_(x) ((x) << 16) + +#define AT91C_SMC_READMODE (0x1UL << 0) +#define AT91C_SMC_WRITEMODE (0x1UL << 1) +#define AT91C_SMC_NWAITM (0x3UL << 4) +#define AT91C_SMC_DBW_WIDTH_BITS_8 (0x0UL << 12) +#define AT91C_SMC_DBW_WIDTH_BITS_16 (0x1UL << 12) +#define AT91C_SMC_DBW_WIDTH_BITS_32 (0x2UL << 12) +#define AT91C_SMC_TDF (0xFUL << 16) +#define AT91_SMC_TDF_(x) ((x) << 16) + +#define CMD_STATUS 0x70 +#define STATUS_READY (0x01 << 6) /* Status code for Ready */ +#define STATUS_ERROR (0x01 << 0) /* Status code for Error */ + +/* Nand flash commands */ +#define CMD_READID 0x90 +#define CMD_READ_1 0x00 +#define CMD_READ_2 0x30 + +#define CMD_READ_A0 0x00 +#define CMD_READ_A1 0x01 +#define CMD_READ_C 0x50 + +#define CMD_WRITE_A 0x00 +#define CMD_WRITE_C 0x50 + +#define CMD_WRITE_1 0x80 +#define CMD_WRITE_2 0x10 + +#define CMD_ERASE_1 0x60 +#define CMD_ERASE_2 0xD0 + +/* read/write/move page */ +#define CMD_REG 0x40400000 +#define ADDR_REG 0x40200000 +#define DATA_REG 0x40000000 + +/*Values returned by the CheckBlock() function +GOOD = RT_EOK=0 +BAD = -1 +*/ +#define BADBLOCK -RT_ERROR //-1 +#define GOODBLOCK RT_EOK //0 + +struct nand_oobfree +{ + unsigned int offset; + unsigned int length; +}; + +struct nand_ecclayout +{ + unsigned int eccbytes; + unsigned int eccpos[680]; + unsigned int oobavail; + struct nand_oobfree oobfree[32]; +}; + +struct nand_chip_id +{ + unsigned short chip_id; /* Nand Chip ID */ + unsigned short numblocks; //0x1000=4096=4K //4K*16K=64M + unsigned int blocksize; //0x4000=16K //SECTOR + unsigned short pagesize; //0X200=512 //1 BLOCK has pages=16K/512=32 + unsigned char oobsize; //0X10=16 + unsigned char buswidth; +}; +static struct nand_chip_id nand_ids[] = +{ + + /* Samsung 32MB 8Bit SMALL BLOCK*/ + {0xec75, 0x800, 0x4000, 0x200, 0x10, 0x0}, //32M + {0xec35, 0x800, 0x4000, 0x200, 0x10, 0x0}, //32M + {0xec36, 0x1000, 0x4000, 0x200, 0x10, 0x0}, //4K*16K=64M + /* Samsung 128MB 8bit BIG BLOCK*/ + {0xeca1, 0x400, 0x20000, 0x800, 0x40, 0x0}, //128M + {0,} +}; + + +int rt_hw_mtd_nand_init(void); +#endif diff --git a/bsp/at91/at91sam9260/drivers/board.c b/bsp/at91/at91sam9260/drivers/board.c new file mode 100644 index 0000000000..c009375615 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/board.c @@ -0,0 +1,260 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include + +#include "board.h" +#include + +/** + * @addtogroup at91sam9260 + */ +/*@{*/ +#if defined(__CC_ARM) +extern int Image$$ER_ZI$$ZI$$Limit; +#define HEAP_BEGIN (&Image$$ER_ZI$$ZI$$Limit) +#elif (defined (__GNUC__)) +extern unsigned char __bss_end__; +#define HEAP_BEGIN (&__bss_end__) +#elif (defined (__ICCARM__)) +#pragma section=".noinit" +#define HEAP_BEGIN (__section_end(".noinit")) +#endif + +#define HEAP_END (((rt_uint32_t)HEAP_BEGIN & (0xF0 << 24)) + (32 << 20)) + +extern void rt_hw_interrupt_init(void); +extern void rt_hw_clock_init(void); + +extern void rt_hw_get_clock(void); +extern void rt_hw_set_dividor(rt_uint8_t hdivn, rt_uint8_t pdivn); +extern void rt_hw_set_clock(rt_uint8_t sdiv, rt_uint8_t pdiv, rt_uint8_t mdiv); +extern void rt_dbgu_isr(void); + +static struct mem_desc at91_mem_desc[] = { + { 0x00000000, 0xFFFFFFFF, 0x00000000, RW_NCNB }, /* None cached for 4G memory */ + { 0x20000000, 0x24000000-1, 0x20000000, RW_CB }, /* 64M cached SDRAM memory */ + { 0x00000000, 0x100000, 0x20000000, RW_CB }, /* isr vector table */ + { 0x90000000, 0x90400000-1, 0x00200000, RW_NCNB }, /* 4K SRAM0@2M + 4k SRAM1@3M + 16k UHP@5M */ + { 0xA0000000, 0xA4000000-1, 0x20000000, RW_NCNB } /* 64M none-cached SDRAM memory */ +}; + + +#define PIT_CPIV(x) ((x) & AT91_PIT_CPIV) +#define PIT_PICNT(x) (((x) & AT91_PIT_PICNT) >> 20) + +static rt_uint32_t pit_cycle; /* write-once */ +static rt_uint32_t pit_cnt; /* access only w/system irq blocked */ + +/** + * This function will handle rtos timer + */ +void rt_timer_handler(int vector, void *param) +{ + #ifdef RT_USING_DBGU + if (at91_sys_read(AT91_DBGU + AT91_US_CSR) & 0x1) + { + rt_dbgu_isr(); + } + #endif + if (at91_sys_read(AT91_PIT_SR) & AT91_PIT_PITS) + { + unsigned nr_ticks; + + /* Get number of ticks performed before irq, and ack it */ + nr_ticks = PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); + rt_tick_increase(); + } +} + +static void at91sam926x_pit_reset(void) +{ + /* Disable timer and irqs */ + at91_sys_write(AT91_PIT_MR, 0); + + /* Clear any pending interrupts, wait for PIT to stop counting */ + while (PIT_CPIV(at91_sys_read(AT91_PIT_PIVR)) != 0) + ; + + /* Start PIT but don't enable IRQ */ + //at91_sys_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN); + pit_cnt += pit_cycle * PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); + at91_sys_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN + | AT91_PIT_PITIEN); + rt_kprintf("PIT_MR=0x%08x\n", at91_sys_read(AT91_PIT_MR)); +} + +/* + * Set up both clocksource and clockevent support. + */ +static void at91sam926x_pit_init(void) +{ + rt_uint32_t pit_rate; + rt_uint32_t bits; + + /* + * Use our actual MCK to figure out how many MCK/16 ticks per + * 1/HZ period (instead of a compile-time constant LATCH). + */ + pit_rate = clk_get_rate(clk_get("mck")) / 16; + rt_kprintf("pit_rate=%dHZ\n", pit_rate); + pit_cycle = (pit_rate + RT_TICK_PER_SECOND/2) / RT_TICK_PER_SECOND; + + /* Initialize and enable the timer */ + at91sam926x_pit_reset(); + +} + +/** + * This function will init pit for system ticks + */ + void rt_hw_timer_init() + { + at91sam926x_pit_init(); + + /* install interrupt handler */ + rt_hw_interrupt_install(AT91_ID_SYS, rt_timer_handler, + RT_NULL, "system"); + rt_hw_interrupt_umask(AT91_ID_SYS); + + } + + void at91_tc1_init() + { + at91_sys_write(AT91_PMC_PCER, 1<CSR & TXRDY)); + DBGU->THR = c; +} + +/** + * This function is used to display a string on console, normally, it's + * invoked by rt_kprintf + * + * @param str the displayed string + */ +void rt_hw_console_output(const char* str) +{ + while (*str) + { + if (*str=='\n') + { + at91_usart_putc('\r'); + } + + at91_usart_putc(*str++); + } +} + +static void rt_hw_console_init(void) +{ + int div; + int mode = 0; + + DBGU->CR = AT91_US_RSTTX | AT91_US_RSTRX | + AT91_US_RXDIS | AT91_US_TXDIS; + mode |= AT91_US_USMODE_NORMAL | AT91_US_USCLKS_MCK | + AT91_US_CHMODE_NORMAL; + mode |= AT91_US_CHRL_8; + mode |= AT91_US_NBSTOP_1; + mode |= AT91_US_PAR_NONE; + DBGU->MR = mode; + div = (clk_get_rate(clk_get("mck")) / 16 + BPS/2) / BPS; + DBGU->BRGR = div; + DBGU->CR = AT91_US_RXEN | AT91_US_TXEN; +} + + +/** + * This function will init at91sam9260 board + */ +void rt_hw_board_init() +{ + /* initialize the system clock */ + rt_hw_clock_init(); + + /* initialize console */ + rt_hw_console_init(); + + /* initialize mmu */ + rt_hw_mmu_init(at91_mem_desc, sizeof(at91_mem_desc)/sizeof(at91_mem_desc[0])); + + /* initialize hardware interrupt */ + rt_hw_interrupt_init(); + + /* initialize early device */ +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif + +#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + + /* initialize timer0 */ + rt_hw_timer_init(); + +/* initialize board */ +#ifdef RT_USING_HEAP + rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END); +#endif + +} + +/*@}*/ diff --git a/bsp/at91/at91sam9260/drivers/board.h b/bsp/at91/at91sam9260/drivers/board.h new file mode 100644 index 0000000000..c3f4435077 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/board.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety add board.h to this bsp + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +#include + +void rt_hw_board_init(void); + +#endif diff --git a/bsp/at91/at91sam9260/drivers/led.c b/bsp/at91/at91sam9260/drivers/led.c new file mode 100644 index 0000000000..10277813d4 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/led.c @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include +#include "led.h" + +#if 1 +// GB9260 board +#define PIO_LED AT91_PIOB +#define LED1 (1 << 25) // LED_SYS +#define LED2 (0) +#define LED3 (1 << 23) // LED_USR +#define LED_ALL (LED1 | LED2 | LED3) +#else +#define PIO_LED AT91_PIOC +#define LED1 (1 << 8) +#define LED2 (1 << 11) +#define LED3 (1 << 6) +#define LED_ALL (LED1 | LED2 | LED3) +#endif + +void led_init(void) +{ + at91_sys_write(PIO_LED+0x00, LED_ALL); + at91_sys_write(PIO_LED+0x10, LED_ALL); + at91_sys_write(PIO_LED+0x64, LED_ALL); + at91_sys_write(PIO_LED+0x30, LED_ALL); +} + +void led_on(int num) +{ + switch(num) + { + case 1: + at91_sys_write(PIO_LED+0x34, LED1); + break; + case 2: + at91_sys_write(PIO_LED+0x34, LED2); + break; + case 3: + at91_sys_write(PIO_LED+0x34, LED3); + break; + default: + break; + } +} + +void led_off(int num) +{ + switch(num) + { + case 1: + at91_sys_write(PIO_LED+0x30, LED1); + break; + case 2: + at91_sys_write(PIO_LED+0x30, LED2); + break; + case 3: + at91_sys_write(PIO_LED+0x30, LED3); + break; + default: + break; + } +} diff --git a/bsp/at91/at91sam9260/drivers/led.h b/bsp/at91/at91sam9260/drivers/led.h new file mode 100644 index 0000000000..9836eff709 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/led.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __LED_H__ +#define __LED_H__ + +void led_init(void); +void led_on(int num); +void led_off(int num); + +#endif diff --git a/bsp/at91/at91sam9260/drivers/macb.c b/bsp/at91/at91sam9260/drivers/macb.c new file mode 100644 index 0000000000..702d7e04a4 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/macb.c @@ -0,0 +1,897 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-18 weety first version + */ + +#include +#include +#include "lwipopts.h" +#include +#include "macb.h" + +#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) + +extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); +extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); + +/* Cache macros - Packet buffers would be from pbuf pool which is cached */ +#define EMAC_VIRT_NOCACHE(addr) (addr) +#define EMAC_CACHE_INVALIDATE(addr, size) \ + mmu_invalidate_dcache((rt_uint32_t)addr, size) +#define EMAC_CACHE_WRITEBACK(addr, size) \ + mmu_clean_dcache((rt_uint32_t)addr, size) +#define EMAC_CACHE_WRITEBACK_INVALIDATE(addr, size) \ + mmu_clean_invalidated_dcache((rt_uint32_t)addr, size) + +/* EMAC has BD's in cached memory - so need cache functions */ +#define BD_CACHE_INVALIDATE(addr, size) +#define BD_CACHE_WRITEBACK(addr, size) +#define BD_CACHE_WRITEBACK_INVALIDATE(addr, size) + +/* EMAC internal utility function */ +rt_inline unsigned long emac_virt_to_phys(unsigned long addr) +{ + return addr; +} + + +#define AT91SAM9260_SRAM0_VIRT_BASE (0x90000000) + +#define MACB_TX_SRAM + +#if defined(MACB_TX_SRAM) +#define MACB_TX_RING_SIZE 2 +#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) +#define TX_RING_BYTES (sizeof(struct macb_dma_desc) * MACB_TX_RING_SIZE) +#else +#define MACB_TX_RING_SIZE 16 +#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) +#endif + +#define MACB_RX_BUFFER_SIZE (4096*4) +#define MACB_RX_RING_SIZE (MACB_RX_BUFFER_SIZE / 128) + +#define DEF_TX_RING_PENDING (MACB_TX_RING_SIZE) + +#define TX_RING_GAP(macb) \ + (MACB_TX_RING_SIZE - (macb)->tx_pending) + +#define TX_BUFFS_AVAIL(macb) \ + (((macb)->tx_tail <= (macb)->tx_head) ? \ + (macb)->tx_tail + (macb)->tx_pending - (macb)->tx_head : \ + (macb)->tx_tail - (macb)->tx_head - TX_RING_GAP(macb)) + +#define NEXT_TX(n) (((n) + 1) & (MACB_TX_RING_SIZE - 1)) + +#define NEXT_RX(n) (((n) + 1) & (MACB_RX_RING_SIZE - 1)) + +/* minimum number of free TX descriptors before waking up TX process */ +#define MACB_TX_WAKEUP_THRESH (MACB_TX_RING_SIZE / 4) + +#define MACB_RX_INT_FLAGS (MACB_BIT(RCOMP) | MACB_BIT(RXUBR) \ + | MACB_BIT(ISR_ROVR)) + +#define MACB_TX_TIMEOUT 1000 +#define MACB_AUTONEG_TIMEOUT 5000000 +#define MACB_LINK_TIMEOUT 500000 + +#define CONFIG_RMII + +struct macb_dma_desc { + rt_uint32_t addr; + rt_uint32_t ctrl; +}; + +#define RXADDR_USED 0x00000001 +#define RXADDR_WRAP 0x00000002 + +#define RXBUF_FRMLEN_MASK 0x00000fff +#define RXBUF_FRAME_START 0x00004000 +#define RXBUF_FRAME_END 0x00008000 +#define RXBUF_TYPEID_MATCH 0x00400000 +#define RXBUF_ADDR4_MATCH 0x00800000 +#define RXBUF_ADDR3_MATCH 0x01000000 +#define RXBUF_ADDR2_MATCH 0x02000000 +#define RXBUF_ADDR1_MATCH 0x04000000 +#define RXBUF_BROADCAST 0x80000000 + +#define TXBUF_FRMLEN_MASK 0x000007ff +#define TXBUF_FRAME_END 0x00008000 +#define TXBUF_NOCRC 0x00010000 +#define TXBUF_EXHAUSTED 0x08000000 +#define TXBUF_UNDERRUN 0x10000000 +#define TXBUF_MAXRETRY 0x20000000 +#define TXBUF_WRAP 0x40000000 +#define TXBUF_USED 0x80000000 + +/* Duplex, half or full. */ +#define DUPLEX_HALF 0x00 +#define DUPLEX_FULL 0x01 + +#define MAX_ADDR_LEN 6 +struct rt_macb_eth +{ + /* inherit from ethernet device */ + struct eth_device parent; + + unsigned int regs; + + unsigned int rx_tail; + unsigned int tx_head; + unsigned int tx_tail; + unsigned int rx_pending; + unsigned int tx_pending; + + void *rx_buffer; + void *tx_buffer; + struct macb_dma_desc *rx_ring; + struct macb_dma_desc *tx_ring; + + unsigned long rx_buffer_dma; + unsigned long tx_buffer_dma; + unsigned long rx_ring_dma; + unsigned long tx_ring_dma; + + unsigned int tx_stop; + + /* interface address info. */ + rt_uint8_t dev_addr[MAX_ADDR_LEN]; /* hw address */ + unsigned short phy_addr; + + struct rt_semaphore mdio_bus_lock; + struct rt_semaphore tx_lock; + struct rt_semaphore rx_lock; + struct rt_semaphore tx_ack; + rt_uint32_t speed; + rt_uint32_t duplex; + rt_uint32_t link; + struct rt_timer timer; +}; +static struct rt_macb_eth macb_device; + +static void macb_tx(struct rt_macb_eth *macb); + +static void udelay(rt_uint32_t us) +{ + rt_uint32_t len; + for (;us > 0; us --) + for (len = 0; len < 10; len++ ); +} + +static void rt_macb_isr(int irq, void *param) +{ + struct rt_macb_eth *macb = (struct rt_macb_eth *)param; + rt_device_t dev = &(macb->parent.parent); + rt_uint32_t status, rsr, tsr; + + status = macb_readl(macb, ISR); + + while (status) { + + if (status & MACB_RX_INT_FLAGS) + { + rsr = macb_readl(macb, RSR); + macb_writel(macb, RSR, rsr); + /* a frame has been received */ + eth_device_ready(&(macb_device.parent)); + + } + + if (status & (MACB_BIT(TCOMP) | MACB_BIT(ISR_TUND) | + MACB_BIT(ISR_RLE))) + { + macb_tx(macb); + } + + /* + * Link change detection isn't possible with RMII, so we'll + * add that if/when we get our hands on a full-blown MII PHY. + */ + + if (status & MACB_BIT(HRESP)) + { + /* + * TODO: Reset the hardware, and maybe move the printk + * to a lower-priority context as well (work queue?) + */ + rt_kprintf("%s: DMA bus error: HRESP not OK\n", + dev->parent.name); + } + + status = macb_readl(macb, ISR); + } + + +} + +static int macb_mdio_write(struct rt_macb_eth *macb, rt_uint8_t reg, rt_uint16_t value) +{ + unsigned long netctl; + unsigned long netstat; + unsigned long frame; + + rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); + netctl = macb_readl(macb, NCR); + netctl |= MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + + frame = (MACB_BF(SOF, 1) + | MACB_BF(RW, 1) + | MACB_BF(PHYA, macb->phy_addr) + | MACB_BF(REGA, reg) + | MACB_BF(CODE, 2) + | MACB_BF(DATA, value)); + macb_writel(macb, MAN, frame); + + do { + netstat = macb_readl(macb, NSR); + } while (!(netstat & MACB_BIT(IDLE))); + + netctl = macb_readl(macb, NCR); + netctl &= ~MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + rt_sem_release(&macb->mdio_bus_lock); +} + +static int macb_mdio_read(struct rt_macb_eth *macb, rt_uint8_t reg) +{ + unsigned long netctl; + unsigned long netstat; + unsigned long frame; + + rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); + netctl = macb_readl(macb, NCR); + netctl |= MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + + frame = (MACB_BF(SOF, 1) + | MACB_BF(RW, 2) + | MACB_BF(PHYA, macb->phy_addr) + | MACB_BF(REGA, reg) + | MACB_BF(CODE, 2)); + macb_writel(macb, MAN, frame); + + do { + netstat = macb_readl(macb, NSR); + } while (!(netstat & MACB_BIT(IDLE))); + + frame = macb_readl(macb, MAN); + + netctl = macb_readl(macb, NCR); + netctl &= ~MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + rt_sem_release(&macb->mdio_bus_lock); + + return MACB_BFEXT(DATA, frame); +} + +static void macb_phy_reset(rt_device_t dev) +{ + int i; + rt_uint16_t status, adv; + struct rt_macb_eth *macb = dev->user_data;; + + adv = ADVERTISE_CSMA | ADVERTISE_ALL; + macb_mdio_write(macb, MII_ADVERTISE, adv); + rt_kprintf("%s: Starting autonegotiation...\n", dev->parent.name); + macb_mdio_write(macb, MII_BMCR, (BMCR_ANENABLE + | BMCR_ANRESTART)); + + for (i = 0; i < MACB_AUTONEG_TIMEOUT / 100; i++) + { + status = macb_mdio_read(macb, MII_BMSR); + if (status & BMSR_ANEGCOMPLETE) + break; + udelay(100); + } + + if (status & BMSR_ANEGCOMPLETE) + rt_kprintf("%s: Autonegotiation complete\n", dev->parent.name); + else + rt_kprintf("%s: Autonegotiation timed out (status=0x%04x)\n", + dev->parent.name, status); +} + + +static int macb_phy_init(rt_device_t dev) +{ + struct rt_macb_eth *macb = dev->user_data; + rt_uint32_t ncfgr; + rt_uint16_t phy_id, status, adv, lpa; + int media, speed, duplex; + int i; + + /* Check if the PHY is up to snuff... */ + phy_id = macb_mdio_read(macb, MII_PHYSID1); + if (phy_id == 0xffff) + { + rt_kprintf("%s: No PHY present\n", dev->parent.name); + return 0; + } + + status = macb_mdio_read(macb, MII_BMSR); + if (!(status & BMSR_LSTATUS)) + { + /* Try to re-negotiate if we don't have link already. */ + macb_phy_reset(dev); + + for (i = 0; i < MACB_LINK_TIMEOUT / 100; i++) + { + status = macb_mdio_read(macb, MII_BMSR); + if (status & BMSR_LSTATUS) + break; + udelay(100); + } + } + + if (!(status & BMSR_LSTATUS)) + { + rt_kprintf("%s: link down (status: 0x%04x)\n", + dev->parent.name, status); + return 0; + } + else + { + adv = macb_mdio_read(macb, MII_ADVERTISE); + lpa = macb_mdio_read(macb, MII_LPA); + media = mii_nway_result(lpa & adv); + speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) + ? 1 : 0); + duplex = (media & ADVERTISE_FULL) ? 1 : 0; + rt_kprintf("%s: link up, %sMbps %s-duplex (lpa: 0x%04x)\n", + dev->parent.name, + speed ? "100" : "10", + duplex ? "full" : "half", + lpa); + + ncfgr = macb_readl(macb, NCFGR); + ncfgr &= ~(MACB_BIT(SPD) | MACB_BIT(FD)); + if (speed) + ncfgr |= MACB_BIT(SPD); + if (duplex) + ncfgr |= MACB_BIT(FD); + macb_writel(macb, NCFGR, ncfgr); + return 1; + } +} + +void macb_update_link(void *param) +{ + struct rt_macb_eth *macb = (struct rt_macb_eth *)param; + rt_device_t dev = &macb->parent.parent; + int status, status_change = 0; + rt_uint32_t link; + rt_uint32_t media; + rt_uint16_t adv, lpa; + + /* Do a fake read */ + status = macb_mdio_read(macb, MII_BMSR); + if (status < 0) + return; + + /* Read link and autonegotiation status */ + status = macb_mdio_read(macb, MII_BMSR); + if (status < 0) + return; + + if ((status & BMSR_LSTATUS) == 0) + link = 0; + else + link = 1; + + if (link != macb->link) + { + macb->link = link; + status_change = 1; + } + + if (status_change) + { + if (macb->link) + { + adv = macb_mdio_read(macb, MII_ADVERTISE); + lpa = macb_mdio_read(macb, MII_LPA); + media = mii_nway_result(lpa & adv); + macb->speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) + ? 100 : 10); + macb->duplex = (media & ADVERTISE_FULL) ? 1 : 0; + rt_kprintf("%s: link up (%dMbps/%s-duplex)\n", + dev->parent.name, macb->speed, + DUPLEX_FULL == macb->duplex ? "Full":"Half"); + eth_device_linkchange(&macb->parent, RT_TRUE); + } + else + { + rt_kprintf("%s: link down\n", dev->parent.name); + eth_device_linkchange(&macb->parent, RT_FALSE); + } + + } + +} + +/* RT-Thread Device Interface */ +/* initialize the interface */ + +static rt_err_t rt_macb_init(rt_device_t dev) +{ + struct rt_macb_eth *macb = dev->user_data; + unsigned long paddr; + rt_uint32_t hwaddr_bottom; + rt_uint16_t hwaddr_top; + int i; + + /* + * macb_halt should have been called at some point before now, + * so we'll assume the controller is idle. + */ + + /* initialize DMA descriptors */ + paddr = macb->rx_buffer_dma; + for (i = 0; i < MACB_RX_RING_SIZE; i++) + { + if (i == (MACB_RX_RING_SIZE - 1)) + paddr |= RXADDR_WRAP; + macb->rx_ring[i].addr = paddr; + macb->rx_ring[i].ctrl = 0; + paddr += 128; + } + paddr = macb->tx_buffer_dma; + for (i = 0; i < MACB_TX_RING_SIZE; i++) + { + macb->tx_ring[i].addr = paddr; + if (i == (MACB_TX_RING_SIZE - 1)) + macb->tx_ring[i].ctrl = TXBUF_USED | TXBUF_WRAP; + else + macb->tx_ring[i].ctrl = TXBUF_USED; + paddr += 1536; + } + macb->rx_tail = macb->tx_head = macb->tx_tail = 0; + + BD_CACHE_WRITEBACK_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + BD_CACHE_WRITEBACK_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); + macb_writel(macb, RBQP, macb->rx_ring_dma); + macb_writel(macb, TBQP, macb->tx_ring_dma); + + /* set hardware address */ + hwaddr_bottom = (*((rt_uint32_t *)macb->dev_addr)); + macb_writel(macb, SA1B, hwaddr_bottom); + hwaddr_top = (*((rt_uint16_t *)(macb->dev_addr + 4))); + macb_writel(macb, SA1T, hwaddr_top); + + + /* choose RMII or MII mode. This depends on the board */ +#ifdef CONFIG_RMII + macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN)); +#else + macb_writel(macb, USRIO, MACB_BIT(CLKEN)); +#endif /* CONFIG_RMII */ + + if (!macb_phy_init(dev)) + return -RT_ERROR; + + /* Enable TX and RX */ + macb_writel(macb, NCR, MACB_BIT(TE) | MACB_BIT(RE) | MACB_BIT(MPE)); + + /* Enable interrupts */ + macb_writel(macb, IER, (MACB_BIT(RCOMP) + | MACB_BIT(RXUBR) + | MACB_BIT(ISR_TUND) + | MACB_BIT(ISR_RLE) + | MACB_BIT(TXERR) + | MACB_BIT(TCOMP) + | MACB_BIT(ISR_ROVR) + | MACB_BIT(HRESP))); + + /* instal interrupt */ + rt_hw_interrupt_install(AT91SAM9260_ID_EMAC, rt_macb_isr, + (void *)macb, "emac"); + rt_hw_interrupt_umask(AT91SAM9260_ID_EMAC); + + rt_timer_init(&macb->timer, "link_timer", + macb_update_link, + (void *)macb, + RT_TICK_PER_SECOND, + RT_TIMER_FLAG_PERIODIC); + + rt_timer_start(&macb->timer); + + return RT_EOK; +} + +static rt_err_t rt_macb_open(rt_device_t dev, rt_uint16_t oflag) +{ + return RT_EOK; +} + +static rt_err_t rt_macb_close(rt_device_t dev) +{ + return RT_EOK; +} + +static rt_size_t rt_macb_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_size_t rt_macb_write (rt_device_t dev, rt_off_t pos, const void* buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_err_t rt_macb_control(rt_device_t dev, int cmd, void *args) +{ + switch(cmd) + { + case NIOCTL_GADDR: + /* get mac address */ + if(args) rt_memcpy(args, macb_device.dev_addr, 6); + else return -RT_ERROR; + break; + + default : + break; + } + + return RT_EOK; +} + +static void macb_tx(struct rt_macb_eth *macb) +{ + unsigned int tail; + unsigned int head; + rt_uint32_t status; + + status = macb_readl(macb, TSR); + macb_writel(macb, TSR, status); + + /*rt_kprintf("macb_tx status = %02lx\n", + (unsigned long)status);*/ + + if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) + { + int i; + rt_kprintf("%s: TX %s, resetting buffers\n", + macb->parent.parent.parent.name, status & MACB_BIT(UND) ? + "underrun" : "retry limit exceeded"); + + /* Transfer ongoing, disable transmitter, to avoid confusion */ + if (status & MACB_BIT(TGO)) + macb_writel(macb, NCR, macb_readl(macb, NCR) & ~MACB_BIT(TE)); + + head = macb->tx_head; + + /*Mark all the buffer as used to avoid sending a lost buffer*/ + for (i = 0; i < MACB_TX_RING_SIZE; i++) + macb->tx_ring[i].ctrl = MACB_BIT(TX_USED); + + /* free transmit buffer in upper layer*/ + + macb->tx_head = macb->tx_tail = 0; + + /* Enable the transmitter again */ + if (status & MACB_BIT(TGO)) + macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TE)); + } + + if (!(status & MACB_BIT(COMP))) + /* + * This may happen when a buffer becomes complete + * between reading the ISR and scanning the + * descriptors. Nothing to worry about. + */ + return; + + head = macb->tx_head; + for (tail = macb->tx_tail; tail != head; tail = NEXT_TX(tail)) + { + rt_uint32_t bufstat; + + bufstat = macb->tx_ring[tail].ctrl; + + if (!(bufstat & MACB_BIT(TX_USED))) + break; + } + + macb->tx_tail = tail; + if ((macb->tx_stop == 1) && + TX_BUFFS_AVAIL(macb) > MACB_TX_WAKEUP_THRESH) + rt_sem_release(&macb->tx_ack); +} + + +/* ethernet device interface */ +/* transmit packet. */ +rt_err_t rt_macb_tx( rt_device_t dev, struct pbuf* p) +{ + unsigned long ctrl; + struct pbuf* q; + rt_uint8_t* bufptr; + rt_uint32_t mapping; + struct rt_macb_eth *macb = dev->user_data; + unsigned int tx_head = macb->tx_head; + + rt_sem_take(&macb->tx_lock, RT_WAITING_FOREVER); + if (TX_BUFFS_AVAIL(macb) < 1) + { + rt_sem_release(&macb->tx_lock); + rt_kprintf("Tx Ring full!\n"); + rt_kprintf("tx_head = %u, tx_tail = %u\n", + macb->tx_head, macb->tx_tail); + return -RT_ERROR; + } + + macb->tx_stop = 0; + + ctrl = p->tot_len & TXBUF_FRMLEN_MASK; + ctrl |= TXBUF_FRAME_END; + if (tx_head == (MACB_TX_RING_SIZE - 1)) + { + ctrl |= TXBUF_WRAP; + } +#if defined(MACB_TX_SRAM) + bufptr = macb->tx_buffer + tx_head * 1536; +#else + mapping = (unsigned long)macb->tx_buffer + tx_head * 1536; + bufptr = (rt_uint8_t *)mapping; +#endif + + for (q = p; q != NULL; q = q->next) + { + memcpy(bufptr, q->payload, q->len); + bufptr += q->len; + } +#if !defined(MACB_TX_SRAM) + EMAC_CACHE_WRITEBACK(mapping, p->tot_len); +#endif + macb->tx_ring[tx_head].ctrl = ctrl; + BD_CACHE_WRITEBACK_INVALIDATE(&macb->tx_ring[tx_head], sizeof(struct macb_dma_desc)); + tx_head = NEXT_TX(tx_head); + macb->tx_head = tx_head; + macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); + macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); + + if (TX_BUFFS_AVAIL(macb) < 1) + { + macb->tx_stop = 1; + rt_sem_take(&macb->tx_ack, RT_WAITING_FOREVER); + } + rt_sem_release(&macb->tx_lock); + + return RT_EOK; +} + +static void reclaim_rx_buffers(struct rt_macb_eth *macb, + unsigned int new_tail) +{ + unsigned int i; + + i = macb->rx_tail; + while (i > new_tail) + { + macb->rx_ring[i].addr &= ~RXADDR_USED; + i++; + if (i > MACB_RX_RING_SIZE) + i = 0; + } + + while (i < new_tail) + { + macb->rx_ring[i].addr &= ~RXADDR_USED; + i++; + } + + macb->rx_tail = new_tail; +} + +/* reception packet. */ +struct pbuf *rt_macb_rx(rt_device_t dev) +{ + struct rt_macb_eth *macb = dev->user_data; + struct pbuf* p = RT_NULL; + rt_uint32_t len; + unsigned int rx_tail = macb->rx_tail; + void *buffer; + int wrapped = 0; + rt_uint32_t status; + + rt_sem_take(&macb->rx_lock, RT_WAITING_FOREVER); + for (;;) + { + if (!(macb->rx_ring[rx_tail].addr & RXADDR_USED)) + break; + + status = macb->rx_ring[rx_tail].ctrl; + if (status & RXBUF_FRAME_START) + { + if (rx_tail != macb->rx_tail) + reclaim_rx_buffers(macb, rx_tail); + wrapped = 0; + } + + if (status & RXBUF_FRAME_END) + { + buffer = (void *)((unsigned int)macb->rx_buffer + 128 * macb->rx_tail); + len = status & RXBUF_FRMLEN_MASK; + p = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); + if (!p) + { + rt_kprintf("alloc pbuf failed\n"); + break; + } + if (wrapped) + { + unsigned int headlen, taillen; + + headlen = 128 * (MACB_RX_RING_SIZE + - macb->rx_tail); + taillen = len - headlen; + EMAC_CACHE_INVALIDATE(buffer, headlen); + EMAC_CACHE_INVALIDATE(macb->rx_buffer, taillen); + memcpy((void *)p->payload, buffer, headlen); + memcpy((void *)((unsigned int)p->payload + headlen), + macb->rx_buffer, taillen); + } + else + { + EMAC_CACHE_INVALIDATE(buffer, len); + memcpy((void *)p->payload, buffer, p->len); + } + + if (++rx_tail >= MACB_RX_RING_SIZE) + rx_tail = 0; + reclaim_rx_buffers(macb, rx_tail); + break; + } + else + { + if (++rx_tail >= MACB_RX_RING_SIZE) + { + wrapped = 1; + rx_tail = 0; + } + } + } + + rt_sem_release(&macb->rx_lock); + + return p; +} + +void macb_gpio_init() +{ + /* Pins used for MII and RMII */ + at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20)); + at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20)); + +#ifndef GONFIG_RMII + at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29)); + at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29)); +#endif +} + +rt_err_t macb_initialize() +{ + struct rt_macb_eth *macb = &macb_device; + unsigned long macb_hz; + rt_uint32_t ncfgr; + +#if defined(MACB_TX_SRAM) + macb->tx_ring_dma = AT91SAM9260_SRAM0_BASE; + macb->tx_ring = (struct macb_dma_desc *)AT91SAM9260_SRAM0_VIRT_BASE; + macb->tx_buffer = (char *) macb->tx_ring + TX_RING_BYTES; + macb->tx_buffer_dma = macb->tx_ring_dma + TX_RING_BYTES; +#else + macb->tx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + if (macb->tx_ring == RT_NULL) + goto err1; + EMAC_CACHE_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); + macb->tx_ring_dma = emac_virt_to_phys((unsigned long)macb->tx_ring); + macb->tx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->tx_ring); + macb->tx_buffer = rt_malloc(MACB_TX_BUFFER_SIZE); + if (macb->tx_buffer == RT_NULL) + goto err2; + macb->tx_buffer_dma = emac_virt_to_phys((unsigned long)macb->tx_buffer); +#endif + + macb->rx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + if (macb->rx_ring == RT_NULL) + goto err3; + EMAC_CACHE_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + macb->rx_ring_dma = emac_virt_to_phys((unsigned long)macb->rx_ring); + macb->rx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->rx_ring); + macb->rx_buffer = rt_malloc(MACB_RX_BUFFER_SIZE); + if (macb->rx_buffer == RT_NULL) + goto err4; + macb->rx_buffer_dma = emac_virt_to_phys((unsigned long)macb->rx_buffer); + + macb->tx_pending = DEF_TX_RING_PENDING; + + macb->regs = AT91SAM9260_BASE_EMAC; + macb->phy_addr = 0x00; + + /* + * Do some basic initialization so that we at least can talk + * to the PHY + */ + macb_hz = clk_get_rate(clk_get("mck")); + if (macb_hz < 20000000) + ncfgr = MACB_BF(CLK, MACB_CLK_DIV8); + else if (macb_hz < 40000000) + ncfgr = MACB_BF(CLK, MACB_CLK_DIV16); + else if (macb_hz < 80000000) + ncfgr = MACB_BF(CLK, MACB_CLK_DIV32); + else + ncfgr = MACB_BF(CLK, MACB_CLK_DIV64); + + macb_writel(macb, NCFGR, ncfgr); + + macb->link = 0; + + return RT_EOK; + +err4: + rt_free(macb->rx_ring); + macb->rx_ring = RT_NULL; +err3: +#if !defined(MACB_TX_SRAM) + rt_free(macb->tx_buffer); + macb->tx_buffer = RT_NULL; +err2: + rt_free(macb->tx_ring); + macb->tx_ring = RT_NULL; +err1: +#endif + return -RT_ENOMEM; +} + +int rt_hw_macb_init(void) +{ + rt_err_t ret; + at91_sys_write(AT91_PMC + AT91_PMC_PCER, 1 << AT91SAM9260_ID_EMAC); //enable macb clock + macb_gpio_init(); + rt_memset(&macb_device, 0, sizeof(macb_device)); + ret = macb_initialize(); + if (ret != RT_EOK) + { + rt_kprintf("AT91 EMAC initialized failed\n"); + return -1; + } + rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO); + rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO); + rt_sem_init(&macb_device.rx_lock, "rx_lock", 1, RT_IPC_FLAG_FIFO); + + macb_device.dev_addr[0] = 0x00; + macb_device.dev_addr[1] = 0x60; + macb_device.dev_addr[2] = 0x6E; + macb_device.dev_addr[3] = 0x11; + macb_device.dev_addr[4] = 0x22; + macb_device.dev_addr[5] = 0x33; + + macb_device.parent.parent.init = rt_macb_init; + macb_device.parent.parent.open = rt_macb_open; + macb_device.parent.parent.close = rt_macb_close; + macb_device.parent.parent.read = rt_macb_read; + macb_device.parent.parent.write = rt_macb_write; + macb_device.parent.parent.control = rt_macb_control; + macb_device.parent.parent.user_data = &macb_device; + + macb_device.parent.eth_rx = rt_macb_rx; + macb_device.parent.eth_tx = rt_macb_tx; + + rt_sem_init(&macb_device.mdio_bus_lock, "mdio_bus_lock", 1, RT_IPC_FLAG_FIFO); + + eth_device_init(&(macb_device.parent), "e0"); + + return 0; +} + +INIT_DEVICE_EXPORT(rt_hw_macb_init); + diff --git a/bsp/at91/at91sam9260/drivers/macb.h b/bsp/at91/at91sam9260/drivers/macb.h new file mode 100644 index 0000000000..ed2ad390b7 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/macb.h @@ -0,0 +1,332 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-18 weety first version + */ +#ifndef _MACB_H +#define _MACB_H +#include + +/* MACB register offsets */ +#define MACB_NCR 0x0000 +#define MACB_NCFGR 0x0004 +#define MACB_NSR 0x0008 +#define MACB_TSR 0x0014 +#define MACB_RBQP 0x0018 +#define MACB_TBQP 0x001c +#define MACB_RSR 0x0020 +#define MACB_ISR 0x0024 +#define MACB_IER 0x0028 +#define MACB_IDR 0x002c +#define MACB_IMR 0x0030 +#define MACB_MAN 0x0034 +#define MACB_PTR 0x0038 +#define MACB_PFR 0x003c +#define MACB_FTO 0x0040 +#define MACB_SCF 0x0044 +#define MACB_MCF 0x0048 +#define MACB_FRO 0x004c +#define MACB_FCSE 0x0050 +#define MACB_ALE 0x0054 +#define MACB_DTF 0x0058 +#define MACB_LCOL 0x005c +#define MACB_EXCOL 0x0060 +#define MACB_TUND 0x0064 +#define MACB_CSE 0x0068 +#define MACB_RRE 0x006c +#define MACB_ROVR 0x0070 +#define MACB_RSE 0x0074 +#define MACB_ELE 0x0078 +#define MACB_RJA 0x007c +#define MACB_USF 0x0080 +#define MACB_STE 0x0084 +#define MACB_RLE 0x0088 +#define MACB_TPF 0x008c +#define MACB_HRB 0x0090 +#define MACB_HRT 0x0094 +#define MACB_SA1B 0x0098 +#define MACB_SA1T 0x009c +#define MACB_SA2B 0x00a0 +#define MACB_SA2T 0x00a4 +#define MACB_SA3B 0x00a8 +#define MACB_SA3T 0x00ac +#define MACB_SA4B 0x00b0 +#define MACB_SA4T 0x00b4 +#define MACB_TID 0x00b8 +#define MACB_TPQ 0x00bc +#define MACB_USRIO 0x00c0 +#define MACB_WOL 0x00c4 + +/* Bitfields in NCR */ +#define MACB_LB_OFFSET 0 +#define MACB_LB_SIZE 1 +#define MACB_LLB_OFFSET 1 +#define MACB_LLB_SIZE 1 +#define MACB_RE_OFFSET 2 +#define MACB_RE_SIZE 1 +#define MACB_TE_OFFSET 3 +#define MACB_TE_SIZE 1 +#define MACB_MPE_OFFSET 4 +#define MACB_MPE_SIZE 1 +#define MACB_CLRSTAT_OFFSET 5 +#define MACB_CLRSTAT_SIZE 1 +#define MACB_INCSTAT_OFFSET 6 +#define MACB_INCSTAT_SIZE 1 +#define MACB_WESTAT_OFFSET 7 +#define MACB_WESTAT_SIZE 1 +#define MACB_BP_OFFSET 8 +#define MACB_BP_SIZE 1 +#define MACB_TSTART_OFFSET 9 +#define MACB_TSTART_SIZE 1 +#define MACB_THALT_OFFSET 10 +#define MACB_THALT_SIZE 1 +#define MACB_NCR_TPF_OFFSET 11 +#define MACB_NCR_TPF_SIZE 1 +#define MACB_TZQ_OFFSET 12 +#define MACB_TZQ_SIZE 1 + +/* Bitfields in NCFGR */ +#define MACB_SPD_OFFSET 0 +#define MACB_SPD_SIZE 1 +#define MACB_FD_OFFSET 1 +#define MACB_FD_SIZE 1 +#define MACB_BIT_RATE_OFFSET 2 +#define MACB_BIT_RATE_SIZE 1 +#define MACB_JFRAME_OFFSET 3 +#define MACB_JFRAME_SIZE 1 +#define MACB_CAF_OFFSET 4 +#define MACB_CAF_SIZE 1 +#define MACB_NBC_OFFSET 5 +#define MACB_NBC_SIZE 1 +#define MACB_NCFGR_MTI_OFFSET 6 +#define MACB_NCFGR_MTI_SIZE 1 +#define MACB_UNI_OFFSET 7 +#define MACB_UNI_SIZE 1 +#define MACB_BIG_OFFSET 8 +#define MACB_BIG_SIZE 1 +#define MACB_EAE_OFFSET 9 +#define MACB_EAE_SIZE 1 +#define MACB_CLK_OFFSET 10 +#define MACB_CLK_SIZE 2 +#define MACB_RTY_OFFSET 12 +#define MACB_RTY_SIZE 1 +#define MACB_PAE_OFFSET 13 +#define MACB_PAE_SIZE 1 +#define MACB_RBOF_OFFSET 14 +#define MACB_RBOF_SIZE 2 +#define MACB_RLCE_OFFSET 16 +#define MACB_RLCE_SIZE 1 +#define MACB_DRFCS_OFFSET 17 +#define MACB_DRFCS_SIZE 1 +#define MACB_EFRHD_OFFSET 18 +#define MACB_EFRHD_SIZE 1 +#define MACB_IRXFCS_OFFSET 19 +#define MACB_IRXFCS_SIZE 1 + +/* Bitfields in NSR */ +#define MACB_NSR_LINK_OFFSET 0 +#define MACB_NSR_LINK_SIZE 1 +#define MACB_MDIO_OFFSET 1 +#define MACB_MDIO_SIZE 1 +#define MACB_IDLE_OFFSET 2 +#define MACB_IDLE_SIZE 1 + +/* Bitfields in TSR */ +#define MACB_UBR_OFFSET 0 +#define MACB_UBR_SIZE 1 +#define MACB_COL_OFFSET 1 +#define MACB_COL_SIZE 1 +#define MACB_TSR_RLE_OFFSET 2 +#define MACB_TSR_RLE_SIZE 1 +#define MACB_TGO_OFFSET 3 +#define MACB_TGO_SIZE 1 +#define MACB_BEX_OFFSET 4 +#define MACB_BEX_SIZE 1 +#define MACB_COMP_OFFSET 5 +#define MACB_COMP_SIZE 1 +#define MACB_UND_OFFSET 6 +#define MACB_UND_SIZE 1 + +/* Bitfields in RSR */ +#define MACB_BNA_OFFSET 0 +#define MACB_BNA_SIZE 1 +#define MACB_REC_OFFSET 1 +#define MACB_REC_SIZE 1 +#define MACB_OVR_OFFSET 2 +#define MACB_OVR_SIZE 1 + +/* Bitfields in ISR/IER/IDR/IMR */ +#define MACB_MFD_OFFSET 0 +#define MACB_MFD_SIZE 1 +#define MACB_RCOMP_OFFSET 1 +#define MACB_RCOMP_SIZE 1 +#define MACB_RXUBR_OFFSET 2 +#define MACB_RXUBR_SIZE 1 +#define MACB_TXUBR_OFFSET 3 +#define MACB_TXUBR_SIZE 1 +#define MACB_ISR_TUND_OFFSET 4 +#define MACB_ISR_TUND_SIZE 1 +#define MACB_ISR_RLE_OFFSET 5 +#define MACB_ISR_RLE_SIZE 1 +#define MACB_TXERR_OFFSET 6 +#define MACB_TXERR_SIZE 1 +#define MACB_TCOMP_OFFSET 7 +#define MACB_TCOMP_SIZE 1 +#define MACB_ISR_LINK_OFFSET 9 +#define MACB_ISR_LINK_SIZE 1 +#define MACB_ISR_ROVR_OFFSET 10 +#define MACB_ISR_ROVR_SIZE 1 +#define MACB_HRESP_OFFSET 11 +#define MACB_HRESP_SIZE 1 +#define MACB_PFR_OFFSET 12 +#define MACB_PFR_SIZE 1 +#define MACB_PTZ_OFFSET 13 +#define MACB_PTZ_SIZE 1 + +/* Bitfields in MAN */ +#define MACB_DATA_OFFSET 0 +#define MACB_DATA_SIZE 16 +#define MACB_CODE_OFFSET 16 +#define MACB_CODE_SIZE 2 +#define MACB_REGA_OFFSET 18 +#define MACB_REGA_SIZE 5 +#define MACB_PHYA_OFFSET 23 +#define MACB_PHYA_SIZE 5 +#define MACB_RW_OFFSET 28 +#define MACB_RW_SIZE 2 +#define MACB_SOF_OFFSET 30 +#define MACB_SOF_SIZE 2 + +/* Bitfields in USRIO (AVR32) */ +#define MACB_MII_OFFSET 0 +#define MACB_MII_SIZE 1 +#define MACB_EAM_OFFSET 1 +#define MACB_EAM_SIZE 1 +#define MACB_TX_PAUSE_OFFSET 2 +#define MACB_TX_PAUSE_SIZE 1 +#define MACB_TX_PAUSE_ZERO_OFFSET 3 +#define MACB_TX_PAUSE_ZERO_SIZE 1 + +/* Bitfields in USRIO (AT91) */ +#define MACB_RMII_OFFSET 0 +#define MACB_RMII_SIZE 1 +#define MACB_CLKEN_OFFSET 1 +#define MACB_CLKEN_SIZE 1 + +/* Bitfields in WOL */ +#define MACB_IP_OFFSET 0 +#define MACB_IP_SIZE 16 +#define MACB_MAG_OFFSET 16 +#define MACB_MAG_SIZE 1 +#define MACB_ARP_OFFSET 17 +#define MACB_ARP_SIZE 1 +#define MACB_SA1_OFFSET 18 +#define MACB_SA1_SIZE 1 +#define MACB_WOL_MTI_OFFSET 19 +#define MACB_WOL_MTI_SIZE 1 + +/* Constants for CLK */ +#define MACB_CLK_DIV8 0 +#define MACB_CLK_DIV16 1 +#define MACB_CLK_DIV32 2 +#define MACB_CLK_DIV64 3 + +/* Constants for MAN register */ +#define MACB_MAN_SOF 1 +#define MACB_MAN_WRITE 1 +#define MACB_MAN_READ 2 +#define MACB_MAN_CODE 2 + +/* Bit manipulation macros */ +#define MACB_BIT(name) \ + (1 << MACB_##name##_OFFSET) +#define MACB_BF(name,value) \ + (((value) & ((1 << MACB_##name##_SIZE) - 1)) \ + << MACB_##name##_OFFSET) +#define MACB_BFEXT(name,value)\ + (((value) >> MACB_##name##_OFFSET) \ + & ((1 << MACB_##name##_SIZE) - 1)) +#define MACB_BFINS(name,value,old) \ + (((old) & ~(((1 << MACB_##name##_SIZE) - 1) \ + << MACB_##name##_OFFSET)) \ + | MACB_BF(name,value)) + +/* Register access macros */ +#define macb_readl(port,reg) \ + readl((port)->regs + MACB_##reg) +#define macb_writel(port,reg,value) \ + writel((value), (port)->regs + MACB_##reg) + +struct dma_desc { + rt_uint32_t addr; + rt_uint32_t ctrl; +}; + +/* DMA descriptor bitfields */ +#define MACB_RX_USED_OFFSET 0 +#define MACB_RX_USED_SIZE 1 +#define MACB_RX_WRAP_OFFSET 1 +#define MACB_RX_WRAP_SIZE 1 +#define MACB_RX_WADDR_OFFSET 2 +#define MACB_RX_WADDR_SIZE 30 + +#define MACB_RX_FRMLEN_OFFSET 0 +#define MACB_RX_FRMLEN_SIZE 12 +#define MACB_RX_OFFSET_OFFSET 12 +#define MACB_RX_OFFSET_SIZE 2 +#define MACB_RX_SOF_OFFSET 14 +#define MACB_RX_SOF_SIZE 1 +#define MACB_RX_EOF_OFFSET 15 +#define MACB_RX_EOF_SIZE 1 +#define MACB_RX_CFI_OFFSET 16 +#define MACB_RX_CFI_SIZE 1 +#define MACB_RX_VLAN_PRI_OFFSET 17 +#define MACB_RX_VLAN_PRI_SIZE 3 +#define MACB_RX_PRI_TAG_OFFSET 20 +#define MACB_RX_PRI_TAG_SIZE 1 +#define MACB_RX_VLAN_TAG_OFFSET 21 +#define MACB_RX_VLAN_TAG_SIZE 1 +#define MACB_RX_TYPEID_MATCH_OFFSET 22 +#define MACB_RX_TYPEID_MATCH_SIZE 1 +#define MACB_RX_SA4_MATCH_OFFSET 23 +#define MACB_RX_SA4_MATCH_SIZE 1 +#define MACB_RX_SA3_MATCH_OFFSET 24 +#define MACB_RX_SA3_MATCH_SIZE 1 +#define MACB_RX_SA2_MATCH_OFFSET 25 +#define MACB_RX_SA2_MATCH_SIZE 1 +#define MACB_RX_SA1_MATCH_OFFSET 26 +#define MACB_RX_SA1_MATCH_SIZE 1 +#define MACB_RX_EXT_MATCH_OFFSET 28 +#define MACB_RX_EXT_MATCH_SIZE 1 +#define MACB_RX_UHASH_MATCH_OFFSET 29 +#define MACB_RX_UHASH_MATCH_SIZE 1 +#define MACB_RX_MHASH_MATCH_OFFSET 30 +#define MACB_RX_MHASH_MATCH_SIZE 1 +#define MACB_RX_BROADCAST_OFFSET 31 +#define MACB_RX_BROADCAST_SIZE 1 + +#define MACB_TX_FRMLEN_OFFSET 0 +#define MACB_TX_FRMLEN_SIZE 11 +#define MACB_TX_LAST_OFFSET 15 +#define MACB_TX_LAST_SIZE 1 +#define MACB_TX_NOCRC_OFFSET 16 +#define MACB_TX_NOCRC_SIZE 1 +#define MACB_TX_BUF_EXHAUSTED_OFFSET 27 +#define MACB_TX_BUF_EXHAUSTED_SIZE 1 +#define MACB_TX_UNDERRUN_OFFSET 28 +#define MACB_TX_UNDERRUN_SIZE 1 +#define MACB_TX_ERROR_OFFSET 29 +#define MACB_TX_ERROR_SIZE 1 +#define MACB_TX_WRAP_OFFSET 30 +#define MACB_TX_WRAP_SIZE 1 +#define MACB_TX_USED_OFFSET 31 +#define MACB_TX_USED_SIZE 1 + +extern int rt_hw_macb_init(); + +#endif /* _MACB_H */ + diff --git a/bsp/at91/at91sam9260/drivers/mii.h b/bsp/at91/at91sam9260/drivers/mii.h new file mode 100644 index 0000000000..03d914b7c3 --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/mii.h @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-18 weety first version + */ + +#ifndef __MII_H__ +#define __MII_H__ + +/* Generic MII registers. */ + +#define MII_BMCR 0x00 /* Basic mode control register */ +#define MII_BMSR 0x01 /* Basic mode status register */ +#define MII_PHYSID1 0x02 /* PHYS ID 1 */ +#define MII_PHYSID2 0x03 /* PHYS ID 2 */ +#define MII_ADVERTISE 0x04 /* Advertisement control reg */ +#define MII_LPA 0x05 /* Link partner ability reg */ +#define MII_EXPANSION 0x06 /* Expansion register */ +#define MII_CTRL1000 0x09 /* 1000BASE-T control */ +#define MII_STAT1000 0x0a /* 1000BASE-T status */ +#define MII_ESTATUS 0x0f /* Extended Status */ +#define MII_DCOUNTER 0x12 /* Disconnect counter */ +#define MII_FCSCOUNTER 0x13 /* False carrier counter */ +#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ +#define MII_RERRCOUNTER 0x15 /* Receive error counter */ +#define MII_SREVISION 0x16 /* Silicon revision */ +#define MII_RESV1 0x17 /* Reserved... */ +#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ +#define MII_PHYADDR 0x19 /* PHY address */ +#define MII_RESV2 0x1a /* Reserved... */ +#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ +#define MII_NCONFIG 0x1c /* Network interface config */ + +/* Basic mode control register. */ +#define BMCR_RESV 0x003f /* Unused... */ +#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ +#define BMCR_CTST 0x0080 /* Collision test */ +#define BMCR_FULLDPLX 0x0100 /* Full duplex */ +#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ +#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ +#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ +#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ +#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ +#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ +#define BMCR_RESET 0x8000 /* Reset the DP83840 */ + +/* Basic mode status register. */ +#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ +#define BMSR_JCD 0x0002 /* Jabber detected */ +#define BMSR_LSTATUS 0x0004 /* Link status */ +#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ +#define BMSR_RFAULT 0x0010 /* Remote fault detected */ +#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ +#define BMSR_RESV 0x00c0 /* Unused... */ +#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ +#define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ +#define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */ +#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ +#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ +#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ +#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ +#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ + +/* Advertisement control register. */ +#define ADVERTISE_SLCT 0x001f /* Selector bits */ +#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ +#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ +#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ +#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ +#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ +#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ +#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ +#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ +#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ +#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ +#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ +#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ +#define ADVERTISE_RESV 0x1000 /* Unused... */ +#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ +#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ +#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ + +#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ + ADVERTISE_CSMA) +#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ + ADVERTISE_100HALF | ADVERTISE_100FULL) + +/* Link partner ability register. */ +#define LPA_SLCT 0x001f /* Same as advertise selector */ +#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ +#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ +#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ +#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ +#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ +#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ +#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ +#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ +#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ +#define LPA_PAUSE_CAP 0x0400 /* Can pause */ +#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ +#define LPA_RESV 0x1000 /* Unused... */ +#define LPA_RFAULT 0x2000 /* Link partner faulted */ +#define LPA_LPACK 0x4000 /* Link partner acked us */ +#define LPA_NPAGE 0x8000 /* Next page bit */ + +#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) +#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) + +/* Expansion register for auto-negotiation. */ +#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ +#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ +#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ +#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ +#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ +#define EXPANSION_RESV 0xffe0 /* Unused... */ + +#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ +#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ + +/* N-way test register. */ +#define NWAYTEST_RESV1 0x00ff /* Unused... */ +#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ +#define NWAYTEST_RESV2 0xfe00 /* Unused... */ + +/* 1000BASE-T Control register */ +#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ +#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ + +/* 1000BASE-T Status register */ +#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ +#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ +#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ +#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */ + +/* Flow control flags */ +#define FLOW_CTRL_TX 0x01 +#define FLOW_CTRL_RX 0x02 + +/** + * mii_nway_result + * @negotiated: value of MII ANAR and'd with ANLPAR + * + * Given a set of MII abilities, check each bit and returns the + * currently supported media, in the priority order defined by + * IEEE 802.3u. We use LPA_xxx constants but note this is not the + * value of LPA solely, as described above. + * + * The one exception to IEEE 802.3u is that 100baseT4 is placed + * between 100T-full and 100T-half. If your phy does not support + * 100T4 this is fine. If your phy places 100T4 elsewhere in the + * priority order, you will need to roll your own function. + */ +rt_inline unsigned int mii_nway_result (unsigned int negotiated) +{ + unsigned int ret; + + if (negotiated & LPA_100FULL) + ret = LPA_100FULL; + else if (negotiated & LPA_100BASE4) + ret = LPA_100BASE4; + else if (negotiated & LPA_100HALF) + ret = LPA_100HALF; + else if (negotiated & LPA_10FULL) + ret = LPA_10FULL; + else + ret = LPA_10HALF; + + return ret; +} + + +#endif /* __MII_H__ */ + diff --git a/bsp/at91/at91sam9260/drivers/usart.c b/bsp/at91/at91sam9260/drivers/usart.c new file mode 100644 index 0000000000..2d493a21bb --- /dev/null +++ b/bsp/at91/at91sam9260/drivers/usart.c @@ -0,0 +1,424 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + * 2013-07-21 weety using serial component + */ + +#include +#include +#include +#include + +#define RXRDY 0x01 +#define TXRDY (1 << 1) + +typedef struct uartport +{ + volatile rt_uint32_t CR; + volatile rt_uint32_t MR; + volatile rt_uint32_t IER; + volatile rt_uint32_t IDR; + volatile rt_uint32_t IMR; + volatile rt_uint32_t CSR; + volatile rt_uint32_t RHR; + volatile rt_uint32_t THR; + volatile rt_uint32_t BRGR; + volatile rt_uint32_t RTOR; + volatile rt_uint32_t TTGR; + volatile rt_uint32_t reserved0[5]; + volatile rt_uint32_t FIDI; + volatile rt_uint32_t NER; + volatile rt_uint32_t reserved1; + volatile rt_uint32_t IFR; + volatile rt_uint32_t reserved2[44]; + volatile rt_uint32_t RPR; + volatile rt_uint32_t RCR; + volatile rt_uint32_t TPR; + volatile rt_uint32_t TCR; + volatile rt_uint32_t RNPR; + volatile rt_uint32_t RNCR; + volatile rt_uint32_t TNPR; + volatile rt_uint32_t TNCR; + volatile rt_uint32_t PTCR; + volatile rt_uint32_t PTSR; +}uartport; + +#define CIDR FIDI +#define EXID NER +#define FNR reserved1 + +#define DBGU ((struct uartport *)AT91SAM9260_BASE_DBGU) + +#define UART0 ((struct uartport *)AT91SAM9260_BASE_US0) +#define UART1 ((struct uartport *)AT91SAM9260_BASE_US1) +#define UART2 ((struct uartport *)AT91SAM9260_BASE_US2) +#define UART3 ((struct uartport *)AT91SAM9260_BASE_US3) + +struct at91_uart { + uartport *port; + int irq; +}; + + + +/** + * This function will handle serial + */ +void rt_at91_usart_handler(int vector, void *param) +{ + int status; + struct at91_uart *uart; + rt_device_t dev = (rt_device_t)param; + uart = (struct at91_uart *)dev->user_data; + status = uart->port->CSR; + if (!(status & uart->port->IMR)) + { + return; + } + rt_interrupt_enter(); + rt_hw_serial_isr((struct rt_serial_device *)dev, RT_SERIAL_EVENT_RX_IND); + rt_interrupt_leave(); +} + +/** +* UART device in RT-Thread +*/ +static rt_err_t at91_usart_configure(struct rt_serial_device *serial, + struct serial_configure *cfg) +{ + int div; + int mode = 0; + struct at91_uart *uart; + + RT_ASSERT(serial != RT_NULL); + RT_ASSERT(cfg != RT_NULL); + uart = (struct at91_uart *)serial->parent.user_data; + + uart->port->CR = AT91_US_RSTTX | AT91_US_RSTRX | + AT91_US_RXDIS | AT91_US_TXDIS; + mode |= AT91_US_USMODE_NORMAL | AT91_US_USCLKS_MCK | + AT91_US_CHMODE_NORMAL; + switch (cfg->data_bits) + { + case DATA_BITS_8: + mode |= AT91_US_CHRL_8; + break; + case DATA_BITS_7: + mode |= AT91_US_CHRL_7; + break; + case DATA_BITS_6: + mode |= AT91_US_CHRL_6; + break; + case DATA_BITS_5: + mode |= AT91_US_CHRL_5; + break; + default: + mode |= AT91_US_CHRL_8; + break; + } + + switch (cfg->stop_bits) + { + case STOP_BITS_2: + mode |= AT91_US_NBSTOP_2; + break; + case STOP_BITS_1: + default: + mode |= AT91_US_NBSTOP_1; + break; + } + + switch (cfg->parity) + { + case PARITY_ODD: + mode |= AT91_US_PAR_ODD; + break; + case PARITY_EVEN: + mode |= AT91_US_PAR_EVEN; + break; + case PARITY_NONE: + default: + mode |= AT91_US_PAR_NONE; + break; + } + + uart->port->MR = mode; + div = (clk_get_rate(clk_get("mck")) / 16 + cfg->baud_rate/2) / cfg->baud_rate; + uart->port->BRGR = div; + uart->port->CR = AT91_US_RXEN | AT91_US_TXEN; + uart->port->IER = 0x01; + + return RT_EOK; +} + +static rt_err_t at91_usart_control(struct rt_serial_device *serial, + int cmd, void *arg) +{ + struct at91_uart* uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct at91_uart *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: + /* disable rx irq */ + rt_hw_interrupt_mask(uart->irq); + break; + case RT_DEVICE_CTRL_SET_INT: + /* enable rx irq */ + rt_hw_interrupt_umask(uart->irq); + break; + } + + return RT_EOK; +} + +static int at91_usart_putc(struct rt_serial_device *serial, char c) +{ + rt_uint32_t level; + struct at91_uart *uart = serial->parent.user_data; + + while (!(uart->port->CSR & TXRDY)); + uart->port->THR = c; + + return 1; +} + +static int at91_usart_getc(struct rt_serial_device *serial) +{ + int result; + struct at91_uart *uart = serial->parent.user_data; + + if (uart->port->CSR & RXRDY) + { + result = uart->port->RHR & 0xff; + } + else + { + result = -1; + } + + return result; +} + +static const struct rt_uart_ops at91_usart_ops = +{ + at91_usart_configure, + at91_usart_control, + at91_usart_putc, + at91_usart_getc, +}; + +#if defined(RT_USING_DBGU) +static struct rt_serial_device serial_dbgu; +struct at91_uart dbgu = { + DBGU, + AT91_ID_SYS +}; + +#endif + +#if defined(RT_USING_UART0) +static struct rt_serial_device serial0; +struct at91_uart uart0 = { + UART0, + AT91SAM9260_ID_US0 +}; +#endif + +#if defined(RT_USING_UART1) +static struct rt_serial_device serial1; +struct at91_uart uart1 = { + UART1, + AT91SAM9260_ID_US1 +}; +#endif + +#if defined(RT_USING_UART2) +static struct rt_serial_device serial2; +struct at91_uart uart2 = { + UART2, + AT91SAM9260_ID_US2 +}; +#endif + +#if defined(RT_USING_UART3) +static struct rt_serial_device serial3; +struct at91_uart uart3 = { + UART3, + AT91SAM9260_ID_US3 +}; +#endif + +void at91_usart_gpio_init(void) +{ + rt_uint32_t val; + +#ifdef RT_USING_DBGU + at91_sys_write(AT91_PIOB + PIO_IDR, (1<<14)|(1<<15)); + //at91_sys_write(AT91_PIOB + PIO_PUER, (1<<6)); + at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<14)|(1<<15)); + at91_sys_write(AT91_PIOB + PIO_ASR, (1<<14)|(1<<15)); + at91_sys_write(AT91_PIOB + PIO_PDR, (1<<14)|(1<<15)); + at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_SYS); +#endif + +#ifdef RT_USING_UART0 + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US0); + at91_sys_write(AT91_PIOB + PIO_IDR, (1<<4)|(1<<5)); + at91_sys_write(AT91_PIOB + PIO_PUER, (1<<4)); + at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<5)); + at91_sys_write(AT91_PIOB + PIO_ASR, (1<<4)|(1<<5)); + at91_sys_write(AT91_PIOB + PIO_PDR, (1<<4)|(1<<5)); +#endif + +#ifdef RT_USING_UART1 + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US1); + at91_sys_write(AT91_PIOB + PIO_IDR, (1<<6)|(1<<7)); + at91_sys_write(AT91_PIOB + PIO_PUER, (1<<6)); + at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<7)); + at91_sys_write(AT91_PIOB + PIO_ASR, (1<<6)|(1<<7)); + at91_sys_write(AT91_PIOB + PIO_PDR, (1<<6)|(1<<7)); +#endif + +#ifdef RT_USING_UART2 + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US2); + at91_sys_write(AT91_PIOB + PIO_IDR, (1<<8)|(1<<9)); + at91_sys_write(AT91_PIOB + PIO_PUER, (1<<8)); + at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<9)); + at91_sys_write(AT91_PIOB + PIO_ASR, (1<<8)|(1<<9)); + at91_sys_write(AT91_PIOB + PIO_PDR, (1<<8)|(1<<9)); +#endif + +#ifdef RT_USING_UART3 + at91_sys_write(AT91_PMC_PCER, 1< +#include "at91_aic.h" +#include "at91_pit.h" +#include "at91_pmc.h" +#include "at91_rstc.h" +#include "at91_shdwc.h" +#include "at91sam9260_matrix.h" +#include "at91_pio.h" +#include "at91_serial.h" +#include "at91_tc.h" +#include "at91_pdc.h" +#include "io.h" +#include "irq.h" +#include "gpio.h" + +/* + * Peripheral identifiers/interrupts. + */ +#define AT91_ID_FIQ 0 /* Advanced Interrupt Controller (FIQ) */ +#define AT91_ID_SYS 1 /* System Peripherals */ +#define AT91SAM9260_ID_PIOA 2 /* Parallel IO Controller A */ +#define AT91SAM9260_ID_PIOB 3 /* Parallel IO Controller B */ +#define AT91SAM9260_ID_PIOC 4 /* Parallel IO Controller C */ +#define AT91SAM9260_ID_ADC 5 /* Analog-to-Digital Converter */ +#define AT91SAM9260_ID_US0 6 /* USART 0 */ +#define AT91SAM9260_ID_US1 7 /* USART 1 */ +#define AT91SAM9260_ID_US2 8 /* USART 2 */ +#define AT91SAM9260_ID_MCI 9 /* Multimedia Card Interface */ +#define AT91SAM9260_ID_UDP 10 /* USB Device Port */ +#define AT91SAM9260_ID_TWI 11 /* Two-Wire Interface */ +#define AT91SAM9260_ID_SPI0 12 /* Serial Peripheral Interface 0 */ +#define AT91SAM9260_ID_SPI1 13 /* Serial Peripheral Interface 1 */ +#define AT91SAM9260_ID_SSC 14 /* Serial Synchronous Controller */ +#define AT91SAM9260_ID_TC0 17 /* Timer Counter 0 */ +#define AT91SAM9260_ID_TC1 18 /* Timer Counter 1 */ +#define AT91SAM9260_ID_TC2 19 /* Timer Counter 2 */ +#define AT91SAM9260_ID_UHP 20 /* USB Host port */ +#define AT91SAM9260_ID_EMAC 21 /* Ethernet */ +#define AT91SAM9260_ID_ISI 22 /* Image Sensor Interface */ +#define AT91SAM9260_ID_US3 23 /* USART 3 */ +#define AT91SAM9260_ID_US4 24 /* USART 4 */ +#define AT91SAM9260_ID_US5 25 /* USART 5 */ +#define AT91SAM9260_ID_TC3 26 /* Timer Counter 3 */ +#define AT91SAM9260_ID_TC4 27 /* Timer Counter 4 */ +#define AT91SAM9260_ID_TC5 28 /* Timer Counter 5 */ +#define AT91SAM9260_ID_IRQ0 29 /* Advanced Interrupt Controller (IRQ0) */ +#define AT91SAM9260_ID_IRQ1 30 /* Advanced Interrupt Controller (IRQ1) */ +#define AT91SAM9260_ID_IRQ2 31 /* Advanced Interrupt Controller (IRQ2) */ + + +/* + * User Peripheral physical base addresses. + */ +#define AT91SAM9260_BASE_TCB0 0xfffa0000 +#define AT91SAM9260_BASE_TC0 0xfffa0000 +#define AT91SAM9260_BASE_TC1 0xfffa0040 +#define AT91SAM9260_BASE_TC2 0xfffa0080 +#define AT91SAM9260_BASE_UDP 0xfffa4000 +#define AT91SAM9260_BASE_MCI 0xfffa8000 +#define AT91SAM9260_BASE_TWI 0xfffac000 +#define AT91SAM9260_BASE_US0 0xfffb0000 +#define AT91SAM9260_BASE_US1 0xfffb4000 +#define AT91SAM9260_BASE_US2 0xfffb8000 +#define AT91SAM9260_BASE_SSC 0xfffbc000 +#define AT91SAM9260_BASE_ISI 0xfffc0000 +#define AT91SAM9260_BASE_EMAC 0xfffc4000 +#define AT91SAM9260_BASE_SPI0 0xfffc8000 +#define AT91SAM9260_BASE_SPI1 0xfffcc000 +#define AT91SAM9260_BASE_US3 0xfffd0000 +#define AT91SAM9260_BASE_US4 0xfffd4000 +#define AT91SAM9260_BASE_US5 0xfffd8000 +#define AT91SAM9260_BASE_TCB1 0xfffdc000 +#define AT91SAM9260_BASE_TC3 0xfffdc000 +#define AT91SAM9260_BASE_TC4 0xfffdc040 +#define AT91SAM9260_BASE_TC5 0xfffdc080 +#define AT91SAM9260_BASE_ADC 0xfffe0000 +#define AT91_BASE_SYS 0xffffe800 +#define AT91SAM9260_BASE_DBGU 0xfffff200 + +/* + * System Peripherals (offset from AT91_BASE_SYS) + */ +#define AT91_ECC (0xffffe800 - AT91_BASE_SYS) +#define AT91_SDRAMC (0xffffea00 - AT91_BASE_SYS) +#define AT91_SMC (0xffffec00 - AT91_BASE_SYS) +#define AT91_MATRIX (0xffffee00 - AT91_BASE_SYS) +#define AT91_CCFG (0xffffef10 - AT91_BASE_SYS) +#define AT91_AIC (0xfffff000 - AT91_BASE_SYS) +#define AT91_DBGU (0xfffff200 - AT91_BASE_SYS) +#define AT91_PIOA (0xfffff400 - AT91_BASE_SYS) +#define AT91_PIOB (0xfffff600 - AT91_BASE_SYS) +#define AT91_PIOC (0xfffff800 - AT91_BASE_SYS) +#define AT91_PMC (0xfffffc00 - AT91_BASE_SYS) +#define AT91_RSTC (0xfffffd00 - AT91_BASE_SYS) +#define AT91_SHDWC (0xfffffd10 - AT91_BASE_SYS) +#define AT91_RTT (0xfffffd20 - AT91_BASE_SYS) +#define AT91_PIT (0xfffffd30 - AT91_BASE_SYS) +#define AT91_WDT (0xfffffd40 - AT91_BASE_SYS) +#define AT91_GPBR (0xfffffd50 - AT91_BASE_SYS) + + +/* + * Internal Memory. + */ +#define AT91SAM9260_ROM_BASE 0x00100000 /* Internal ROM base address */ +#define AT91SAM9260_ROM_SIZE SZ_32K /* Internal ROM size (32Kb) */ + +#define AT91SAM9260_SRAM0_BASE 0x00200000 /* Internal SRAM 0 base address */ +#define AT91SAM9260_SRAM0_SIZE SZ_4K /* Internal SRAM 0 size (4Kb) */ +#define AT91SAM9260_SRAM1_BASE 0x00300000 /* Internal SRAM 1 base address */ +#define AT91SAM9260_SRAM1_SIZE SZ_4K /* Internal SRAM 1 size (4Kb) */ + +#define AT91SAM9260_UHP_BASE 0x00500000 /* USB Host controller */ + +#define AT91SAM9XE_FLASH_BASE 0x00200000 /* Internal FLASH base address */ +#define AT91SAM9XE_SRAM_BASE 0x00300000 /* Internal SRAM base address */ + +#define AT91SAM9G20_ROM_BASE 0x00100000 /* Internal ROM base address */ +#define AT91SAM9G20_ROM_SIZE SZ_32K /* Internal ROM size (32Kb) */ + +#define AT91SAM9G20_SRAM0_BASE 0x00200000 /* Internal SRAM 0 base address */ +#define AT91SAM9G20_SRAM0_SIZE SZ_16K /* Internal SRAM 0 size (16Kb) */ +#define AT91SAM9G20_SRAM1_BASE 0x00300000 /* Internal SRAM 1 base address */ +#define AT91SAM9G20_SRAM1_SIZE SZ_16K /* Internal SRAM 1 size (16Kb) */ + +#define AT91SAM9G20_UHP_BASE 0x00500000 /* USB Host controller */ + + + +/* Serial ports */ +#define ATMEL_MAX_UART 7 /* 6 USART3's and one DBGU port (SAM9260) */ + +/* External Memory Map */ +#define AT91_CHIPSELECT_0 0x10000000 +#define AT91_CHIPSELECT_1 0x20000000 +#define AT91_CHIPSELECT_2 0x30000000 +#define AT91_CHIPSELECT_3 0x40000000 +#define AT91_CHIPSELECT_4 0x50000000 +#define AT91_CHIPSELECT_5 0x60000000 +#define AT91_CHIPSELECT_6 0x70000000 +#define AT91_CHIPSELECT_7 0x80000000 + +/* SDRAM */ +#define AT91_SDRAM_BASE AT91_CHIPSELECT_1 + +/* Clocks */ +#define AT91_SLOW_CLOCK 32768 /* slow clock */ + + +/*****************************/ +/* CPU Mode */ +/*****************************/ +#define USERMODE 0x10 +#define FIQMODE 0x11 +#define IRQMODE 0x12 +#define SVCMODE 0x13 +#define ABORTMODE 0x17 +#define UNDEFMODE 0x1b +#define MODEMASK 0x1f +#define NOINT 0xc0 + +struct rt_hw_register +{ + rt_uint32_t r0; + rt_uint32_t r1; + rt_uint32_t r2; + rt_uint32_t r3; + rt_uint32_t r4; + rt_uint32_t r5; + rt_uint32_t r6; + rt_uint32_t r7; + rt_uint32_t r8; + rt_uint32_t r9; + rt_uint32_t r10; + rt_uint32_t fp; + rt_uint32_t ip; + rt_uint32_t sp; + rt_uint32_t lr; + rt_uint32_t pc; + rt_uint32_t cpsr; + rt_uint32_t ORIG_r0; +}; + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +extern struct clk *clk_get(const char *id); +extern rt_uint32_t clk_get_rate(struct clk *clk); +extern void rt_hw_clock_init(void); + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/bsp/at91/at91sam9260/platform/gpio.h b/bsp/at91/at91sam9260/platform/gpio.h new file mode 100644 index 0000000000..52f34453d7 --- /dev/null +++ b/bsp/at91/at91sam9260/platform/gpio.h @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __GPIO_H__ +#define __GPIO_H__ + +#include +#include + +#define PIN_BASE AIC_IRQS + +#define MAX_GPIO_BANKS 3 + +#define PIN_IRQS (MAX_GPIO_BANKS*32) + +/* these pin numbers double as IRQ numbers, like AT91xxx_ID_* values */ + +#define AT91_PIN_PA0 (PIN_BASE + 0x00 + 0) +#define AT91_PIN_PA1 (PIN_BASE + 0x00 + 1) +#define AT91_PIN_PA2 (PIN_BASE + 0x00 + 2) +#define AT91_PIN_PA3 (PIN_BASE + 0x00 + 3) +#define AT91_PIN_PA4 (PIN_BASE + 0x00 + 4) +#define AT91_PIN_PA5 (PIN_BASE + 0x00 + 5) +#define AT91_PIN_PA6 (PIN_BASE + 0x00 + 6) +#define AT91_PIN_PA7 (PIN_BASE + 0x00 + 7) +#define AT91_PIN_PA8 (PIN_BASE + 0x00 + 8) +#define AT91_PIN_PA9 (PIN_BASE + 0x00 + 9) +#define AT91_PIN_PA10 (PIN_BASE + 0x00 + 10) +#define AT91_PIN_PA11 (PIN_BASE + 0x00 + 11) +#define AT91_PIN_PA12 (PIN_BASE + 0x00 + 12) +#define AT91_PIN_PA13 (PIN_BASE + 0x00 + 13) +#define AT91_PIN_PA14 (PIN_BASE + 0x00 + 14) +#define AT91_PIN_PA15 (PIN_BASE + 0x00 + 15) +#define AT91_PIN_PA16 (PIN_BASE + 0x00 + 16) +#define AT91_PIN_PA17 (PIN_BASE + 0x00 + 17) +#define AT91_PIN_PA18 (PIN_BASE + 0x00 + 18) +#define AT91_PIN_PA19 (PIN_BASE + 0x00 + 19) +#define AT91_PIN_PA20 (PIN_BASE + 0x00 + 20) +#define AT91_PIN_PA21 (PIN_BASE + 0x00 + 21) +#define AT91_PIN_PA22 (PIN_BASE + 0x00 + 22) +#define AT91_PIN_PA23 (PIN_BASE + 0x00 + 23) +#define AT91_PIN_PA24 (PIN_BASE + 0x00 + 24) +#define AT91_PIN_PA25 (PIN_BASE + 0x00 + 25) +#define AT91_PIN_PA26 (PIN_BASE + 0x00 + 26) +#define AT91_PIN_PA27 (PIN_BASE + 0x00 + 27) +#define AT91_PIN_PA28 (PIN_BASE + 0x00 + 28) +#define AT91_PIN_PA29 (PIN_BASE + 0x00 + 29) +#define AT91_PIN_PA30 (PIN_BASE + 0x00 + 30) +#define AT91_PIN_PA31 (PIN_BASE + 0x00 + 31) + +#define AT91_PIN_PB0 (PIN_BASE + 0x20 + 0) +#define AT91_PIN_PB1 (PIN_BASE + 0x20 + 1) +#define AT91_PIN_PB2 (PIN_BASE + 0x20 + 2) +#define AT91_PIN_PB3 (PIN_BASE + 0x20 + 3) +#define AT91_PIN_PB4 (PIN_BASE + 0x20 + 4) +#define AT91_PIN_PB5 (PIN_BASE + 0x20 + 5) +#define AT91_PIN_PB6 (PIN_BASE + 0x20 + 6) +#define AT91_PIN_PB7 (PIN_BASE + 0x20 + 7) +#define AT91_PIN_PB8 (PIN_BASE + 0x20 + 8) +#define AT91_PIN_PB9 (PIN_BASE + 0x20 + 9) +#define AT91_PIN_PB10 (PIN_BASE + 0x20 + 10) +#define AT91_PIN_PB11 (PIN_BASE + 0x20 + 11) +#define AT91_PIN_PB12 (PIN_BASE + 0x20 + 12) +#define AT91_PIN_PB13 (PIN_BASE + 0x20 + 13) +#define AT91_PIN_PB14 (PIN_BASE + 0x20 + 14) +#define AT91_PIN_PB15 (PIN_BASE + 0x20 + 15) +#define AT91_PIN_PB16 (PIN_BASE + 0x20 + 16) +#define AT91_PIN_PB17 (PIN_BASE + 0x20 + 17) +#define AT91_PIN_PB18 (PIN_BASE + 0x20 + 18) +#define AT91_PIN_PB19 (PIN_BASE + 0x20 + 19) +#define AT91_PIN_PB20 (PIN_BASE + 0x20 + 20) +#define AT91_PIN_PB21 (PIN_BASE + 0x20 + 21) +#define AT91_PIN_PB22 (PIN_BASE + 0x20 + 22) +#define AT91_PIN_PB23 (PIN_BASE + 0x20 + 23) +#define AT91_PIN_PB24 (PIN_BASE + 0x20 + 24) +#define AT91_PIN_PB25 (PIN_BASE + 0x20 + 25) +#define AT91_PIN_PB26 (PIN_BASE + 0x20 + 26) +#define AT91_PIN_PB27 (PIN_BASE + 0x20 + 27) +#define AT91_PIN_PB28 (PIN_BASE + 0x20 + 28) +#define AT91_PIN_PB29 (PIN_BASE + 0x20 + 29) +#define AT91_PIN_PB30 (PIN_BASE + 0x20 + 30) +#define AT91_PIN_PB31 (PIN_BASE + 0x20 + 31) + +#define AT91_PIN_PC0 (PIN_BASE + 0x40 + 0) +#define AT91_PIN_PC1 (PIN_BASE + 0x40 + 1) +#define AT91_PIN_PC2 (PIN_BASE + 0x40 + 2) +#define AT91_PIN_PC3 (PIN_BASE + 0x40 + 3) +#define AT91_PIN_PC4 (PIN_BASE + 0x40 + 4) +#define AT91_PIN_PC5 (PIN_BASE + 0x40 + 5) +#define AT91_PIN_PC6 (PIN_BASE + 0x40 + 6) +#define AT91_PIN_PC7 (PIN_BASE + 0x40 + 7) +#define AT91_PIN_PC8 (PIN_BASE + 0x40 + 8) +#define AT91_PIN_PC9 (PIN_BASE + 0x40 + 9) +#define AT91_PIN_PC10 (PIN_BASE + 0x40 + 10) +#define AT91_PIN_PC11 (PIN_BASE + 0x40 + 11) +#define AT91_PIN_PC12 (PIN_BASE + 0x40 + 12) +#define AT91_PIN_PC13 (PIN_BASE + 0x40 + 13) +#define AT91_PIN_PC14 (PIN_BASE + 0x40 + 14) +#define AT91_PIN_PC15 (PIN_BASE + 0x40 + 15) +#define AT91_PIN_PC16 (PIN_BASE + 0x40 + 16) +#define AT91_PIN_PC17 (PIN_BASE + 0x40 + 17) +#define AT91_PIN_PC18 (PIN_BASE + 0x40 + 18) +#define AT91_PIN_PC19 (PIN_BASE + 0x40 + 19) +#define AT91_PIN_PC20 (PIN_BASE + 0x40 + 20) +#define AT91_PIN_PC21 (PIN_BASE + 0x40 + 21) +#define AT91_PIN_PC22 (PIN_BASE + 0x40 + 22) +#define AT91_PIN_PC23 (PIN_BASE + 0x40 + 23) +#define AT91_PIN_PC24 (PIN_BASE + 0x40 + 24) +#define AT91_PIN_PC25 (PIN_BASE + 0x40 + 25) +#define AT91_PIN_PC26 (PIN_BASE + 0x40 + 26) +#define AT91_PIN_PC27 (PIN_BASE + 0x40 + 27) +#define AT91_PIN_PC28 (PIN_BASE + 0x40 + 28) +#define AT91_PIN_PC29 (PIN_BASE + 0x40 + 29) +#define AT91_PIN_PC30 (PIN_BASE + 0x40 + 30) +#define AT91_PIN_PC31 (PIN_BASE + 0x40 + 31) + + +rt_inline rt_uint32_t gpio_to_irq(rt_uint32_t gpio) +{ + return gpio; +} + +#endif diff --git a/bsp/at91/at91sam9260/platform/interrupt.c b/bsp/at91/at91sam9260/platform/interrupt.c new file mode 100644 index 0000000000..60c4d0790b --- /dev/null +++ b/bsp/at91/at91sam9260/platform/interrupt.c @@ -0,0 +1,450 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include "at91sam926x.h" +#include "interrupt.h" +#define MAX_HANDLERS (AIC_IRQS + PIN_IRQS) + +extern rt_uint32_t rt_interrupt_nest; + +/* exception and interrupt handler table */ +struct rt_irq_desc irq_desc[MAX_HANDLERS]; + +rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread; +rt_uint32_t rt_thread_switch_interrupt_flag; + + +/* -------------------------------------------------------------------- + * Interrupt initialization + * -------------------------------------------------------------------- */ + +rt_uint32_t at91_extern_irq; + +#define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq) + +/* + * The default interrupt priority levels (0 = lowest, 7 = highest). + */ +static rt_uint32_t at91sam9260_default_irq_priority[MAX_HANDLERS] = { + 7, /* Advanced Interrupt Controller */ + 7, /* System Peripherals */ + 1, /* Parallel IO Controller A */ + 1, /* Parallel IO Controller B */ + 1, /* Parallel IO Controller C */ + 0, /* Analog-to-Digital Converter */ + 5, /* USART 0 */ + 5, /* USART 1 */ + 5, /* USART 2 */ + 0, /* Multimedia Card Interface */ + 2, /* USB Device Port */ + 6, /* Two-Wire Interface */ + 5, /* Serial Peripheral Interface 0 */ + 5, /* Serial Peripheral Interface 1 */ + 5, /* Serial Synchronous Controller */ + 0, + 0, + 0, /* Timer Counter 0 */ + 0, /* Timer Counter 1 */ + 0, /* Timer Counter 2 */ + 2, /* USB Host port */ + 3, /* Ethernet */ + 0, /* Image Sensor Interface */ + 5, /* USART 3 */ + 5, /* USART 4 */ + 5, /* USART 5 */ + 0, /* Timer Counter 3 */ + 0, /* Timer Counter 4 */ + 0, /* Timer Counter 5 */ + 0, /* Advanced Interrupt Controller */ + 0, /* Advanced Interrupt Controller */ + 0, /* Advanced Interrupt Controller */ +}; + +/** + * @addtogroup AT91SAM926X + */ +/*@{*/ + +void rt_hw_interrupt_mask(int irq); +void rt_hw_interrupt_umask(int irq); + +rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector, void *param) +{ + rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + return RT_NULL; +} + +rt_isr_handler_t at91_gpio_irq_handle(rt_uint32_t vector, void *param) +{ + rt_uint32_t isr, pio, irq_n; + void *parameter; + + if (vector == AT91SAM9260_ID_PIOA) + { + pio = AT91_PIOA; + irq_n = AIC_IRQS; + } + else if (vector == AT91SAM9260_ID_PIOB) + { + pio = AT91_PIOB; + irq_n = AIC_IRQS + 32; + } + else if (vector == AT91SAM9260_ID_PIOC) + { + pio = AT91_PIOC; + irq_n = AIC_IRQS + 32*2; + } + else + return RT_NULL; + isr = at91_sys_read(pio+PIO_ISR) & at91_sys_read(pio+PIO_IMR); + while (isr) + { + if (isr & 1) + { + parameter = irq_desc[irq_n].param; + irq_desc[irq_n].handler(irq_n, parameter); + } + isr >>= 1; + irq_n++; + } + + return RT_NULL; +} + +/* + * Initialize the AIC interrupt controller. + */ +void at91_aic_init(rt_uint32_t *priority) +{ + rt_uint32_t i; + + /* + * The IVR is used by macro get_irqnr_and_base to read and verify. + * The irq number is NR_AIC_IRQS when a spurious interrupt has occurred. + */ + for (i = 0; i < AIC_IRQS; i++) { + /* Put irq number in Source Vector Register: */ + at91_sys_write(AT91_AIC_SVR(i), i); // no-used + /* Active Low interrupt, with the specified priority */ + at91_sys_write(AT91_AIC_SMR(i), AT91_AIC_SRCTYPE_LOW | priority[i]); + //AT91_AIC_SRCTYPE_FALLING + + /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */ + if (i < 8) + at91_sys_write(AT91_AIC_EOICR, 0); + } + + /* + * Spurious Interrupt ID in Spurious Vector Register is NR_AIC_IRQS + * When there is no current interrupt, the IRQ Vector Register reads the value stored in AIC_SPU + */ + at91_sys_write(AT91_AIC_SPU, AIC_IRQS); + + /* No debugging in AIC: Debug (Protect) Control Register */ + at91_sys_write(AT91_AIC_DCR, 0); + + /* Disable and clear all interrupts initially */ + at91_sys_write(AT91_AIC_IDCR, 0xFFFFFFFF); + at91_sys_write(AT91_AIC_ICCR, 0xFFFFFFFF); +} + + +static void at91_gpio_irq_init() +{ + int i, idx; + char *name[] = {"PIOA", "PIOB", "PIOC"}; + + at91_sys_write(AT91_PIOA+PIO_IDR, 0xffffffff); + at91_sys_write(AT91_PIOB+PIO_IDR, 0xffffffff); + at91_sys_write(AT91_PIOC+PIO_IDR, 0xffffffff); + + idx = AT91SAM9260_ID_PIOA; + for (i = 0; i < 3; i++) + { + irq_desc[idx].handler = (rt_isr_handler_t)at91_gpio_irq_handle; + irq_desc[idx].param = RT_NULL; +#ifdef RT_USING_INTERRUPT_INFO + rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, name[i]); + irq_desc[idx].counter = 0; +#endif + idx++; + } + + rt_hw_interrupt_umask(AT91SAM9260_ID_PIOA); + rt_hw_interrupt_umask(AT91SAM9260_ID_PIOB); + rt_hw_interrupt_umask(AT91SAM9260_ID_PIOC); +} + + +/** + * This function will initialize hardware interrupt + */ +void rt_hw_interrupt_init(void) +{ + register rt_uint32_t idx; + rt_uint32_t *priority = at91sam9260_default_irq_priority; + + at91_extern_irq = (1UL << AT91SAM9260_ID_IRQ0) | (1UL << AT91SAM9260_ID_IRQ1) + | (1UL << AT91SAM9260_ID_IRQ2); + + /* Initialize the AIC interrupt controller */ + at91_aic_init(priority); + + /* init exceptions table */ + for(idx=0; idx < MAX_HANDLERS; idx++) + { + irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; + irq_desc[idx].param = RT_NULL; +#ifdef RT_USING_INTERRUPT_INFO + rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); + irq_desc[idx].counter = 0; +#endif + } + + at91_gpio_irq_init(); + + /* init interrupt nest, and context in thread sp */ + rt_interrupt_nest = 0; + rt_interrupt_from_thread = 0; + rt_interrupt_to_thread = 0; + rt_thread_switch_interrupt_flag = 0; +} + +static void at91_gpio_irq_mask(int irq) +{ + rt_uint32_t pin, pio, bank; + + bank = (irq - AIC_IRQS)>>5; + + if (bank == 0) + { + pio = AT91_PIOA; + } + else if (bank == 1) + { + pio = AT91_PIOB; + } + else if (bank == 2) + { + pio = AT91_PIOC; + } + else + return; + pin = 1 << ((irq - AIC_IRQS) & 31); + at91_sys_write(pio+PIO_IDR, pin); +} + +/** + * This function will mask a interrupt. + * @param vector the interrupt number + */ +void rt_hw_interrupt_mask(int irq) +{ + if (irq >= AIC_IRQS) + { + at91_gpio_irq_mask(irq); + } + else + { + /* Disable interrupt on AIC */ + at91_sys_write(AT91_AIC_IDCR, 1 << irq); + } +} + +static void at91_gpio_irq_umask(int irq) +{ + rt_uint32_t pin, pio, bank; + + bank = (irq - AIC_IRQS)>>5; + + if (bank == 0) + { + pio = AT91_PIOA; + } + else if (bank == 1) + { + pio = AT91_PIOB; + } + else if (bank == 2) + { + pio = AT91_PIOC; + } + else + return; + pin = 1 << ((irq - AIC_IRQS) & 31); + at91_sys_write(pio+PIO_IER, pin); +} + +/** + * This function will un-mask a interrupt. + * @param vector the interrupt number + */ +void rt_hw_interrupt_umask(int irq) +{ + if (irq >= AIC_IRQS) + { + at91_gpio_irq_umask(irq); + } + else + { + /* Enable interrupt on AIC */ + at91_sys_write(AT91_AIC_IECR, 1 << irq); + } +} + +/** + * This function will install a interrupt service routine to a interrupt. + * @param vector the interrupt number + * @param handler the interrupt service routine to be installed + * @param param the interrupt service function parameter + * @param name the interrupt name + * @return old handler + */ +rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, + void *param, const char *name) +{ + rt_isr_handler_t old_handler = RT_NULL; + + if(vector < MAX_HANDLERS) + { + old_handler = irq_desc[vector].handler; + if (handler != RT_NULL) + { + irq_desc[vector].handler = (rt_isr_handler_t)handler; + irq_desc[vector].param = param; +#ifdef RT_USING_INTERRUPT_INFO + rt_snprintf(irq_desc[vector].name, RT_NAME_MAX - 1, "%s", name); + irq_desc[vector].counter = 0; +#endif + } + } + + return old_handler; +} + +/*@}*/ + +/* +static int at91_aic_set_type(unsigned irq, unsigned type) +{ + unsigned int smr, srctype; + + switch (type) { + case IRQ_TYPE_LEVEL_HIGH: + srctype = AT91_AIC_SRCTYPE_HIGH; + break; + case IRQ_TYPE_EDGE_RISING: + srctype = AT91_AIC_SRCTYPE_RISING; + break; + case IRQ_TYPE_LEVEL_LOW: + // only supported on external interrupts + if ((irq == AT91_ID_FIQ) || is_extern_irq(irq)) + srctype = AT91_AIC_SRCTYPE_LOW; + else + return -1; + break; + case IRQ_TYPE_EDGE_FALLING: + // only supported on external interrupts + if ((irq == AT91_ID_FIQ) || is_extern_irq(irq)) + srctype = AT91_AIC_SRCTYPE_FALLING; + else + return -1; + break; + default: + return -1; + } + + smr = at91_sys_read(AT91_AIC_SMR(irq)) & ~AT91_AIC_SRCTYPE; + at91_sys_write(AT91_AIC_SMR(irq), smr | srctype); + return 0; +} +*/ +rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq) +{ + + //volatile rt_uint32_t irqstat; + rt_uint32_t id; + if (fiq_irq == INT_FIQ) + return 0; + + //IRQ + /* AIC need this dummy read */ + at91_sys_read(AT91_AIC_IVR); + /* clear pending register */ + id = at91_sys_read(AT91_AIC_ISR); + + return id; +} + +void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id) +{ + /* new FIQ generation */ + if (fiq_irq == INT_FIQ) + return; + + /* new IRQ generation */ + // EIOCR must be write any value after interrupt, + // or else can't response next interrupt + at91_sys_write(AT91_AIC_EOICR, 0x0); +} + +void rt_interrupt_dispatch(rt_uint32_t fiq_irq) +{ + rt_isr_handler_t isr_func; + rt_uint32_t irq; + void *param; + + /* get irq number */ + irq = rt_hw_interrupt_get_active(fiq_irq); + + /* get interrupt service routine */ + isr_func = irq_desc[irq].handler; + param = irq_desc[irq].param; + + /* turn to interrupt service routine */ + isr_func(irq, param); + + rt_hw_interrupt_ack(fiq_irq, irq); +#ifdef RT_USING_INTERRUPT_INFO + irq_desc[irq].counter ++; +#endif +} + +#ifdef RT_USING_FINSH +#ifdef RT_USING_INTERRUPT_INFO +void list_irq(void) +{ + int irq; + + rt_kprintf("number\tcount\tname\n"); + for (irq = 0; irq < MAX_HANDLERS; irq++) + { + if (rt_strncmp(irq_desc[irq].name, "default", sizeof("default"))) + { + rt_kprintf("%02ld: %10ld %s\n", irq, irq_desc[irq].counter, irq_desc[irq].name); + } + } +} + +#include + +#ifdef FINSH_USING_MSH +int cmd_list_irq(int argc, char** argv) +{ + list_irq(); + return 0; +} +MSH_CMD_EXPORT_ALIAS(cmd_list_irq, list_irq, list system irq); +#endif +#endif +#endif + + diff --git a/bsp/at91/at91sam9260/platform/interrupt.h b/bsp/at91/at91sam9260/platform/interrupt.h new file mode 100644 index 0000000000..0375164e00 --- /dev/null +++ b/bsp/at91/at91sam9260/platform/interrupt.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2015-04-14 ArdaFu first version + */ +#ifndef __INTERRUPT_H__ +#define __INTERRUPT_H__ + +#define INT_IRQ 0x00 +#define INT_FIQ 0x01 + + +#endif diff --git a/bsp/at91/at91sam9260/platform/io.h b/bsp/at91/at91sam9260/platform/io.h new file mode 100644 index 0000000000..3e41feee90 --- /dev/null +++ b/bsp/at91/at91sam9260/platform/io.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __ASM_ARCH_IO_H +#define __ASM_ARCH_IO_H + +#define AT91_BASE_SYS 0xffffe800 + +#define IO_SPACE_LIMIT 0xFFFFFFFF + +#define readb(a) (*(volatile unsigned char *)(a)) +#define readw(a) (*(volatile unsigned short *)(a)) +#define readl(a) (*(volatile unsigned int *)(a)) + +#define writeb(v,a) (*(volatile unsigned char *)(a) = (v)) +#define writew(v,a) (*(volatile unsigned short *)(a) = (v)) +#define writel(v,a) (*(volatile unsigned int *)(a) = (v)) + + +rt_inline unsigned int at91_sys_read(unsigned int reg_offset) +{ + unsigned int addr = AT91_BASE_SYS; + + return readl(addr + reg_offset); +} + +rt_inline void at91_sys_write(unsigned int reg_offset, unsigned long value) +{ + unsigned int addr = AT91_BASE_SYS; + + writel(value, addr + reg_offset); +} + + +#endif + diff --git a/bsp/at91/at91sam9260/platform/irq.h b/bsp/at91/at91sam9260/platform/irq.h new file mode 100644 index 0000000000..76d4200d3b --- /dev/null +++ b/bsp/at91/at91sam9260/platform/irq.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __IRQ_H__ +#define __IRQ_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * IRQ line status. + * + * Bits 0-7 are reserved + * + * IRQ types + */ +#define IRQ_TYPE_NONE 0x00000000 /* Default, unspecified type */ +#define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ +#define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ +#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) +#define IRQ_TYPE_LEVEL_HIGH 0x00000004 /* Level high type */ +#define IRQ_TYPE_LEVEL_LOW 0x00000008 /* Level low type */ +#define IRQ_TYPE_SENSE_MASK 0x0000000f /* Mask of the above */ +#define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/bsp/at91/at91sam9260/platform/reset.c b/bsp/at91/at91sam9260/platform/reset.c new file mode 100644 index 0000000000..6679ab57fe --- /dev/null +++ b/bsp/at91/at91sam9260/platform/reset.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety modified from mini2440 + */ + +#include +#include +#include "at91sam926x.h" + +/** + * @addtogroup AT91SAM926X + */ +/*@{*/ + +void machine_reset(void) +{ + at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | AT91_RSTC_PROCRST | AT91_RSTC_PERRST); +} + +void machine_shutdown(void) +{ + at91_sys_write(AT91_SHDW_CR, AT91_SHDW_KEY | AT91_SHDW_SHDW); +} + +#ifdef RT_USING_FINSH + +#include +FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_cpu_reset, reset, restart the system); + +#ifdef FINSH_USING_MSH +int cmd_reset(int argc, char** argv) +{ + rt_hw_cpu_reset(); + return 0; +} +MSH_CMD_EXPORT_ALIAS(cmd_reset, reset, restart the system); + +int cmd_shutdown(int argc, char** argv) +{ + rt_hw_cpu_shutdown(); + return 0; +} +MSH_CMD_EXPORT_ALIAS(cmd_shutdown, shutdown, shutdown the system); + +#endif +#endif + +/*@}*/ diff --git a/bsp/at91/at91sam9260/platform/rt_low_level_init.c b/bsp/at91/at91sam9260/platform/rt_low_level_init.c new file mode 100644 index 0000000000..31ddf27ae6 --- /dev/null +++ b/bsp/at91/at91sam9260/platform/rt_low_level_init.c @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2015-04-14 ArdaFu first version + */ + +/* write register a=address, v=value */ +#define write_reg(a,v) (*(volatile unsigned int *)(a) = (v)) +/* Processor Reset */ +#define AT91_RSTC_PROCRST (1 << 0) +#define AT91_RSTC_PERRST (1 << 2) +#define AT91_RSTC_KEY (0xa5 << 24) +#define AT91_MATRIX_BASE (0XFFFFEE00) +/* Master Remap Control Register */ +#define AT91_MATRIX_MRCR (AT91_MATRIX_BASE + 0x100) +/* Remap Command for AHB Master 0 (ARM926EJ-S InSTRuction Master) */ +#define AT91_MATRIX_RCB0 (1 << 0) +/* Remap Command for AHB Master 1 (ARM926EJ-S Data Master) */ +#define AT91_MATRIX_RCB1 (1 << 1) + +#define AT91_AIC_BASE (0XFFFFF000) +/* Interrupt DisaBLe Command Register */ +#define AT91_AIC_IDCR (AT91_AIC_BASE + 0x124) +/* Interrupt Clear Command Register */ +#define AT91_AIC_ICCR (AT91_AIC_BASE + 0x128) + +#define AT91_WDT_BASE (0XFFFFFD40) +#define AT91_WDT_CR (AT91_WDT_BASE + 0x00) +#define AT91_WDT_CR_KEY (0xA5000000) +#define AT91_WDT_CR_WDRSTT (0x00000001) +#define AT91_WDT_MR (AT91_WDT_BASE + 0x04) +#define AT91_WDT_MR_WDDIS (0x00008000) + +void rt_low_level_init(void) +{ + // Mask all IRQs by clearing all bits in the INTMRS + write_reg(AT91_AIC_IDCR, 0xFFFFFFFF); + write_reg(AT91_AIC_ICCR, 0xFFFFFFFF); + // Remap internal ram to 0x00000000 Address + write_reg(AT91_MATRIX_MRCR, AT91_MATRIX_RCB0 | AT91_MATRIX_RCB1); + // Disable the watchdog + write_reg(AT91_WDT_CR, AT91_WDT_CR_KEY|AT91_WDT_CR_WDRSTT); + write_reg(AT91_WDT_MR, AT91_WDT_MR_WDDIS); + +} + diff --git a/bsp/at91/at91sam9260/platform/rt_low_level_init.h b/bsp/at91/at91sam9260/platform/rt_low_level_init.h new file mode 100644 index 0000000000..c79adf5284 --- /dev/null +++ b/bsp/at91/at91sam9260/platform/rt_low_level_init.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-06-04 ArdaFu first version + */ +#ifndef __RT_LOW_LEVEL_INIT_H__ +#define __RT_LOW_LEVEL_INIT_H__ + +/*-------- Stack size of CPU modes -------------------------------------------*/ +#define UND_STK_SIZE 512 +#define SVC_STK_SIZE 4096 +#define ABT_STK_SIZE 512 +#define IRQ_STK_SIZE 1024 +#define FIQ_STK_SIZE 1024 +#define SYS_STK_SIZE 512 +#define Heap_Size 512 +#endif diff --git a/bsp/at91/at91sam9260/platform/system_clock.c b/bsp/at91/at91sam9260/platform/system_clock.c new file mode 100644 index 0000000000..a8f866fdd6 --- /dev/null +++ b/bsp/at91/at91sam9260/platform/system_clock.c @@ -0,0 +1,290 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include "at91sam926x.h" + +static rt_list_t clocks; + +struct clk { + char name[32]; + rt_uint32_t rate_hz; + struct clk *parent; + rt_list_t node; +}; + +static struct clk clk32k = { + "clk32k", + AT91_SLOW_CLOCK, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk main_clk = { + "main", + 0, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk plla = { + "plla", + 0, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk mck = { + "mck", + 0, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk uhpck = { + "uhpck", + 0, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk pllb = { + "pllb", + 0, + &main_clk, + {RT_NULL, RT_NULL}, +}; + +static struct clk udpck = { + "udpck", + 0, + &pllb, + {RT_NULL, RT_NULL}, +}; + +static struct clk *const standard_pmc_clocks[] = { + /* four primary clocks */ + &clk32k, + &main_clk, + &plla, + + /* MCK */ + &mck +}; + +/* clocks cannot be de-registered no refcounting necessary */ +struct clk *clk_get(const char *id) +{ + struct clk *clk; + rt_list_t *list; + + for (list = (&clocks)->next; list != &clocks; list = list->next) + { + clk = (struct clk *)rt_list_entry(list, struct clk, node); + if (rt_strcmp(id, clk->name) == 0) + return clk; + } + + return RT_NULL; +} + +rt_uint32_t clk_get_rate(struct clk *clk) +{ + rt_uint32_t flags; + rt_uint32_t rate; + + for (;;) { + rate = clk->rate_hz; + if (rate || !clk->parent) + break; + clk = clk->parent; + } + return rate; +} + +static rt_uint32_t at91_pll_rate(struct clk *pll, rt_uint32_t freq, rt_uint32_t reg) +{ + unsigned mul, div; + + div = reg & 0xff; + mul = (reg >> 16) & 0x7ff; + if (div && mul) { + freq /= div; + freq *= mul + 1; + } else + freq = 0; + + return freq; +} + +static unsigned at91_pll_calc(unsigned main_freq, unsigned out_freq) +{ + unsigned i, div = 0, mul = 0, diff = 1 << 30; + unsigned ret = (out_freq > 155000000) ? 0xbe00 : 0x3e00; + + /* PLL output max 240 MHz (or 180 MHz per errata) */ + if (out_freq > 240000000) + goto fail; + + for (i = 1; i < 256; i++) { + int diff1; + unsigned input, mul1; + + /* + * PLL input between 1MHz and 32MHz per spec, but lower + * frequences seem necessary in some cases so allow 100K. + * Warning: some newer products need 2MHz min. + */ + input = main_freq / i; + if (input < 100000) + continue; + if (input > 32000000) + continue; + + mul1 = out_freq / input; + if (mul1 > 2048) + continue; + if (mul1 < 2) + goto fail; + + diff1 = out_freq - input * mul1; + if (diff1 < 0) + diff1 = -diff1; + if (diff > diff1) { + diff = diff1; + div = i; + mul = mul1; + if (diff == 0) + break; + } + } + if (i == 256 && diff > (out_freq >> 5)) + goto fail; + return ret | ((mul - 1) << 16) | div; +fail: + return 0; +} + +static rt_uint32_t at91_usb_rate(struct clk *pll, rt_uint32_t freq, rt_uint32_t reg) +{ + if (pll == &pllb && (reg & AT91_PMC_USB96M)) + return freq / 2; + else + return freq; +} + + +/* PLLB generated USB full speed clock init */ +static void at91_pllb_usbfs_clock_init(rt_uint32_t main_clock) +{ + rt_uint32_t at91_pllb_usb_init; + /* + * USB clock init: choose 48 MHz PLLB value, + * disable 48MHz clock during usb peripheral suspend. + * + * REVISIT: assumes MCK doesn't derive from PLLB! + */ + uhpck.parent = &pllb; + + at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; + pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); + + at91_sys_write(AT91_CKGR_PLLBR, 0); + + udpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); + uhpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); +} + +static struct clk *at91_css_to_clk(unsigned long css) +{ + switch (css) { + case AT91_PMC_CSS_SLOW: + return &clk32k; + case AT91_PMC_CSS_MAIN: + return &main_clk; + case AT91_PMC_CSS_PLLA: + return &plla; + case AT91_PMC_CSS_PLLB: + return &pllb; + } + + return RT_NULL; +} + +#define false 0 +#define true 1 +int at91_clock_init(rt_uint32_t main_clock) +{ + unsigned tmp, freq, mckr; + int i; + int pll_overclock = false; + + /* + * When the bootloader initialized the main oscillator correctly, + * there's no problem using the cycle counter. But if it didn't, + * or when using oscillator bypass mode, we must be told the speed + * of the main clock. + */ + if (!main_clock) { + do { + tmp = at91_sys_read(AT91_CKGR_MCFR); + } while (!(tmp & AT91_PMC_MAINRDY)); + main_clock = (tmp & AT91_PMC_MAINF) * (AT91_SLOW_CLOCK / 16); + } + main_clk.rate_hz = main_clock; + + /* report if PLLA is more than mildly overclocked */ + plla.rate_hz = at91_pll_rate(&plla, main_clock, at91_sys_read(AT91_CKGR_PLLAR)); + if (plla.rate_hz > 209000000) + pll_overclock = true; + if (pll_overclock) + ;//rt_kprintf("Clocks: PLLA overclocked, %ld MHz\n", plla.rate_hz / 1000000); + + at91_pllb_usbfs_clock_init(main_clock); + + /* + * MCK and CPU derive from one of those primary clocks. + * For now, assume this parentage won't change. + */ + mckr = at91_sys_read(AT91_PMC_MCKR); + mck.parent = at91_css_to_clk(mckr & AT91_PMC_CSS); + freq = mck.parent->rate_hz; + freq /= (1 << ((mckr & AT91_PMC_PRES) >> 2)); /* prescale */ + + mck.rate_hz = freq / (1 << ((mckr & AT91_PMC_MDIV) >> 8)); /* mdiv */ + + /* Register the PMC's standard clocks */ + rt_list_init(&clocks); + for (i = 0; i < ARRAY_SIZE(standard_pmc_clocks); i++) + rt_list_insert_after(&clocks, &standard_pmc_clocks[i]->node); + + rt_list_insert_after(&clocks, &pllb.node); + rt_list_insert_after(&clocks, &uhpck.node); + rt_list_insert_after(&clocks, &udpck.node); + + /* MCK and CPU clock are "always on" */ + //clk_enable(&mck); + + /*rt_kprintf("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", + freq / 1000000, (unsigned) mck.rate_hz / 1000000, + (unsigned) main_clock / 1000000, + ((unsigned) main_clock % 1000000) / 1000);*///cause blocked + + return 0; +} + +/** + * @brief System Clock Configuration + */ +void rt_hw_clock_init(void) +{ + at91_clock_init(18432000); +} + diff --git a/bsp/at91/at91sam9260/project.uvopt b/bsp/at91/at91sam9260/project.uvopt new file mode 100644 index 0000000000..7454a3661d --- /dev/null +++ b/bsp/at91/at91sam9260/project.uvopt @@ -0,0 +1,183 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + 0 + + + + 0 + 0 + + + + rtthread + 0x4 + ARM-ADS + + 18432000 + + 1 + 1 + 1 + 0 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\Listings\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 16 + + + 0 + Datasheet + DATASHTS\ATMEL\AT91SAM9260_DS.PDF + + + 1 + Summary + DATASHTS\ATMEL\AT91SAM9260_DC.PDF + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 18 + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + 0 + JLTAgdi + -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 + + + 0 + UL2ARM + -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + + + + + 0 + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + 0 + 0 + 0 + + + + + + + +
diff --git a/bsp/at91/at91sam9260/project.uvproj b/bsp/at91/at91sam9260/project.uvproj new file mode 100644 index 0000000000..20c59c4440 --- /dev/null +++ b/bsp/at91/at91sam9260/project.uvproj @@ -0,0 +1,815 @@ + + + 1.1 +
### uVision Project, (C) Keil Software
+ + + rtthread + 0x4 + ARM-ADS + + + AT91SAM9260 + Atmel + IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) + + "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") + UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + 4210 + AT91SAM9260.H + + + + + + + + + + + 0 + 0 + + + + Atmel\SAM9260\ + Atmel\SAM9260\ + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + rtthread + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 1 + 0 + fromelf.exe --bin -o $L@L.bin #L + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARM.DLL + -cAT91SAM9260 + DARMATS9.DLL + -p91SAM9260 + SARM.DLL + + TARMATS9.DLL + -p91SAM9260 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + + 0 + 18 + + + + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + + 1 + 0 + 0 + 0 + 1 + 4096 + + 1 + BIN\UL2ARM.DLL + "" () + .\jlink\at91sam9260.ini + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + ARM926EJ-S + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 1 + 0x100000 + 0x8000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x20000000 + 0x800000 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x100000 + 0x8000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x20800000 + 0x1800000 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 0 + 0x300000 + 0x1000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + + __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND + + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;platform;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + .\platform + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x20000000 + 0x20800000 + + .\link_scripts\at91sam9260_ram.scat + + + + + + + + + + + Applications + + + application.c + 1 + applications\application.c + + + + + Compiler + + + syscalls.c + 1 + ..\..\components\libc\compilers\armlibc\syscalls.c + + + + + syscall_mem.c + 1 + ..\..\components\libc\compilers\armlibc\syscall_mem.c + + + + + time.c + 1 + ..\..\components\libc\compilers\common\time.c + + + + + stdlib.c + 1 + ..\..\components\libc\compilers\common\stdlib.c + + + + + CPU + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + + + + showmem.c + 1 + ..\..\libcpu\arm\common\showmem.c + + + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + + + + stack.c + 1 + ..\..\libcpu\arm\arm926\stack.c + + + + + mmu.c + 1 + ..\..\libcpu\arm\arm926\mmu.c + + + + + cpuport.c + 1 + ..\..\libcpu\arm\arm926\cpuport.c + + + + + machine.c + 1 + ..\..\libcpu\arm\arm926\machine.c + + + + + context_rvds.S + 2 + ..\..\libcpu\arm\arm926\context_rvds.S + + + + + trap.c + 1 + ..\..\libcpu\arm\arm926\trap.c + + + + + start_rvds.S + 2 + ..\..\libcpu\arm\arm926\start_rvds.S + + + + + DeviceDrivers + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + pin.c + 1 + ..\..\components\drivers\misc\pin.c + + + + + serial.c + 1 + ..\..\components\drivers\serial\serial.c + + + + + Drivers + + + usart.c + 1 + drivers\usart.c + + + + + board.c + 1 + drivers\board.c + + + + + led.c + 1 + drivers\led.c + + + + + Filesystem + + + dfs_posix.c + 1 + ..\..\components\dfs\src\dfs_posix.c + + + + + dfs_fs.c + 1 + ..\..\components\dfs\src\dfs_fs.c + + + + + dfs.c + 1 + ..\..\components\dfs\src\dfs.c + + + + + dfs_file.c + 1 + ..\..\components\dfs\src\dfs_file.c + + + + + devfs.c + 1 + ..\..\components\dfs\filesystems\devfs\devfs.c + + + + + Finsh + + + shell.c + 1 + ..\..\components\finsh\shell.c + + + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + + + msh_file.c + 1 + ..\..\components\finsh\msh_file.c + + + + + cmd.c + 1 + ..\..\components\finsh\cmd.c + + + + + Kernel + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + clock.c + 1 + ..\..\src\clock.c + + + + + device.c + 1 + ..\..\src\device.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + mem.c + 1 + ..\..\src\mem.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + Platform + + + reset.c + 1 + platform\reset.c + + + + + rt_low_level_init.c + 1 + platform\rt_low_level_init.c + + + + + system_clock.c + 1 + platform\system_clock.c + + + + + interrupt.c + 1 + platform\interrupt.c + + + + + + +
diff --git a/bsp/at91/at91sam9260/rtconfig.h b/bsp/at91/at91sam9260/rtconfig.h new file mode 100644 index 0000000000..f002299141 --- /dev/null +++ b/bsp/at91/at91sam9260/rtconfig.h @@ -0,0 +1,203 @@ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ + +/* RT-Thread Kernel */ + +#define RT_NAME_MAX 8 +#define RT_ALIGN_SIZE 4 +#define RT_THREAD_PRIORITY_32 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 100 +#define RT_USING_OVERFLOW_CHECK +#define RT_USING_HOOK +#define RT_HOOK_USING_FUNC_PTR +#define RT_USING_IDLE_HOOK +#define RT_IDLE_HOOK_LIST_SIZE 4 +#define IDLE_THREAD_STACK_SIZE 256 + +/* kservice optimization */ + +#define RT_DEBUG +#define RT_DEBUG_COLOR + +/* Inter-Thread communication */ + +#define RT_USING_SEMAPHORE +#define RT_USING_MUTEX +#define RT_USING_EVENT +#define RT_USING_MAILBOX +#define RT_USING_MESSAGEQUEUE + +/* Memory Management */ + +#define RT_USING_MEMPOOL +#define RT_USING_SMALL_MEM +#define RT_USING_SMALL_MEM_AS_HEAP +#define RT_USING_HEAP + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_INTERRUPT_INFO +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLE_DEVICE_NAME "dbgu" +#define RT_VER_NUM 0x40100 + +/* RT-Thread Components */ + +#define RT_USING_COMPONENTS_INIT +#define RT_USING_USER_MAIN +#define RT_MAIN_THREAD_STACK_SIZE 2048 +#define RT_MAIN_THREAD_PRIORITY 10 + +/* C++ features */ + + +/* Command shell */ + +#define RT_USING_FINSH +#define RT_USING_MSH +#define FINSH_USING_MSH +#define FINSH_THREAD_NAME "tshell" +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 4096 +#define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 +#define FINSH_USING_SYMTAB +#define FINSH_CMD_SIZE 80 +#define MSH_USING_BUILT_IN_COMMANDS +#define FINSH_USING_DESCRIPTION +#define FINSH_ARG_MAX 10 + +/* Device virtual file system */ + +#define RT_USING_DFS +#define DFS_USING_POSIX +#define DFS_USING_WORKDIR +#define DFS_FILESYSTEMS_MAX 2 +#define DFS_FILESYSTEM_TYPES_MAX 2 +#define DFS_FD_MAX 16 +#define RT_USING_DFS_DEVFS + +/* Device Drivers */ + +#define RT_USING_DEVICE_IPC +#define RT_USING_SERIAL +#define RT_USING_SERIAL_V1 +#define RT_SERIAL_USING_DMA +#define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_PIN + +/* Using USB */ + + +/* POSIX layer and C standard library */ + +#define RT_LIBC_DEFAULT_TIMEZONE 8 + +/* POSIX (Portable Operating System Interface) layer */ + + +/* Interprocess Communication (IPC) */ + + +/* Socket is in the 'Network' category */ + +/* Network */ + +/* Socket abstraction layer */ + + +/* Network interface device */ + + +/* light weight TCP/IP stack */ + + +/* AT commands */ + + +/* VBUS(Virtual Software BUS) */ + + +/* Utilities */ + + +/* RT-Thread Utestcases */ + + +/* RT-Thread online packages */ + +/* IoT - internet of things */ + + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + + +/* IoT Cloud */ + + +/* security packages */ + + +/* language packages */ + + +/* multimedia packages */ + +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + + +/* tools packages */ + + +/* system packages */ + +/* enhanced kernel services */ + + +/* POSIX extension functions */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + + +/* peripheral libraries and drivers */ + + +/* AI packages */ + + +/* miscellaneous packages */ + +/* samples: kernel and components samples */ + + +/* entertainment: terminal games and other interesting software packages */ + +#define SOC_AT91SAM926 +#define RT_USING_DBGU +#define RT_USING_LED + +#endif diff --git a/bsp/at91/at91sam9260/rtconfig.py b/bsp/at91/at91sam9260/rtconfig.py new file mode 100644 index 0000000000..da3be0fd59 --- /dev/null +++ b/bsp/at91/at91sam9260/rtconfig.py @@ -0,0 +1,63 @@ +import os +ARCH = 'arm' +CPU = 'arm926' +# toolchains options +CROSS_TOOL = 'gcc' + +#------- toolchains path ------------------------------------------------------- +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = r'D:\arm-2013.11\bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = 'C:/Keil_v5' +elif CROSS_TOOL == 'iar': + PLATFORM = 'iar' + EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2' + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +#BUILD = 'debug' +BUILD = 'release' + +CORE = 'arm926ej-s' +MAP_FILE = 'rtthread_at91sam9260.map' +LINK_FILE = 'link_scripts/at91sam9260_ram' +TARGET_NAME = 'rtthread.bin' + +#------- GCC settings ---------------------------------------------------------- +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=arm926ej-s' + CFLAGS = DEVICE + AFLAGS = '-c'+ DEVICE + ' -x assembler-with-cpp' + AFLAGS += ' -Iplatform' + LFLAGS = DEVICE + LFLAGS += ' -Wl,--gc-sections,-cref,-Map=' + MAP_FILE + LFLAGS += ' -T ' + LINK_FILE + '.ld' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + POST_ACTION = OBJCPY + ' -O binary $TARGET ' + TARGET_NAME + '\n' + POST_ACTION += SIZE + ' $TARGET\n' diff --git a/bsp/at91/at91sam9260/template.ewp b/bsp/at91/at91sam9260/template.ewp new file mode 100644 index 0000000000..c9cc04c3db --- /dev/null +++ b/bsp/at91/at91sam9260/template.ewp @@ -0,0 +1,1914 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 24 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 31 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 9 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + 0 + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 16 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 24 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 31 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 9 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + 0 + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 16 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + + diff --git a/bsp/at91/at91sam9260/template.eww b/bsp/at91/at91sam9260/template.eww new file mode 100644 index 0000000000..bd036bb4c9 --- /dev/null +++ b/bsp/at91/at91sam9260/template.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\template.ewp + + + + + diff --git a/bsp/at91/at91sam9260/template.uvopt b/bsp/at91/at91sam9260/template.uvopt new file mode 100644 index 0000000000..7454a3661d --- /dev/null +++ b/bsp/at91/at91sam9260/template.uvopt @@ -0,0 +1,183 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + 0 + + + + 0 + 0 + + + + rtthread + 0x4 + ARM-ADS + + 18432000 + + 1 + 1 + 1 + 0 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\Listings\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 16 + + + 0 + Datasheet + DATASHTS\ATMEL\AT91SAM9260_DS.PDF + + + 1 + Summary + DATASHTS\ATMEL\AT91SAM9260_DC.PDF + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 18 + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + 0 + JLTAgdi + -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 + + + 0 + UL2ARM + -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + + + + + 0 + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + 0 + 0 + 0 + + + + + + + +
diff --git a/bsp/at91/at91sam9260/template.uvproj b/bsp/at91/at91sam9260/template.uvproj new file mode 100644 index 0000000000..6e4ee85615 --- /dev/null +++ b/bsp/at91/at91sam9260/template.uvproj @@ -0,0 +1,419 @@ + + + + 1.1 + +
### uVision Project, (C) Keil Software
+ + + + rtthread + 0x4 + ARM-ADS + + + AT91SAM9260 + Atmel + IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) + + "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") + UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + 4210 + AT91SAM9260.H + + + + + + + + + + + 0 + 0 + + + + Atmel\SAM9260\ + Atmel\SAM9260\ + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + rtthread + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 1 + 0 + fromelf.exe --bin -o $L@L.bin #L + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARM.DLL + -cAT91SAM9260 + DARMATS9.DLL + -p91SAM9260 + SARM.DLL + + TARMATS9.DLL + -p91SAM9260 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + + 0 + 18 + + + + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + + 1 + 0 + 0 + 0 + 1 + 4096 + + 1 + BIN\UL2ARM.DLL + "" () + .\jlink\at91sam9260.ini + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + ARM926EJ-S + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 1 + 0x100000 + 0x8000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x20000000 + 0x800000 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x100000 + 0x8000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x20800000 + 0x1800000 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 0 + 0x300000 + 0x1000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + + RT_USING_INTERRUPT_INFO + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + .\platform + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x20000000 + 0x20800000 + + .\link_scripts\at91sam9260_ram.scat + + + + + + + + + + + +
diff --git a/bsp/at91/at91sam9g45/.config b/bsp/at91/at91sam9g45/.config new file mode 100644 index 0000000000..00e0fed1ce --- /dev/null +++ b/bsp/at91/at91sam9g45/.config @@ -0,0 +1,672 @@ +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# + +# +# RT-Thread Kernel +# +CONFIG_RT_NAME_MAX=16 +# CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMP is not set +CONFIG_RT_ALIGN_SIZE=4 +# CONFIG_RT_THREAD_PRIORITY_8 is not set +CONFIG_RT_THREAD_PRIORITY_32=y +# CONFIG_RT_THREAD_PRIORITY_256 is not set +CONFIG_RT_THREAD_PRIORITY_MAX=32 +CONFIG_RT_TICK_PER_SECOND=1000 +CONFIG_RT_USING_OVERFLOW_CHECK=y +CONFIG_RT_USING_HOOK=y +CONFIG_RT_HOOK_USING_FUNC_PTR=y +CONFIG_RT_USING_IDLE_HOOK=y +CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 +CONFIG_IDLE_THREAD_STACK_SIZE=256 +CONFIG_RT_USING_TIMER_SOFT=y +CONFIG_RT_TIMER_THREAD_PRIO=4 +CONFIG_RT_TIMER_THREAD_STACK_SIZE=512 + +# +# kservice optimization +# +# CONFIG_RT_KSERVICE_USING_STDLIB is not set +# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set +# CONFIG_RT_USING_TINY_FFS is not set +# CONFIG_RT_PRINTF_LONGLONG is not set +CONFIG_RT_DEBUG=y +CONFIG_RT_DEBUG_COLOR=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set + +# +# Inter-Thread communication +# +CONFIG_RT_USING_SEMAPHORE=y +CONFIG_RT_USING_MUTEX=y +CONFIG_RT_USING_EVENT=y +CONFIG_RT_USING_MAILBOX=y +CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_SIGNALS is not set + +# +# Memory Management +# +CONFIG_RT_USING_MEMPOOL=y +CONFIG_RT_USING_SMALL_MEM=y +# CONFIG_RT_USING_SLAB is not set +# CONFIG_RT_USING_MEMHEAP is not set +CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y +# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_SLAB_AS_HEAP is not set +# CONFIG_RT_USING_USERHEAP is not set +# CONFIG_RT_USING_NOHEAP is not set +# CONFIG_RT_USING_MEMTRACE is not set +# CONFIG_RT_USING_HEAP_ISR is not set +CONFIG_RT_USING_HEAP=y + +# +# Kernel Device Object +# +CONFIG_RT_USING_DEVICE=y +# CONFIG_RT_USING_DEVICE_OPS is not set +CONFIG_RT_USING_INTERRUPT_INFO=y +CONFIG_RT_USING_CONSOLE=y +CONFIG_RT_CONSOLEBUF_SIZE=128 +CONFIG_RT_CONSOLE_DEVICE_NAME="dbgu" +CONFIG_RT_VER_NUM=0x40100 +CONFIG_ARCH_ARM=y +# CONFIG_RT_USING_CPU_FFS is not set +CONFIG_ARCH_ARM_ARM9=y +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set + +# +# RT-Thread Components +# +CONFIG_RT_USING_COMPONENTS_INIT=y +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 +# CONFIG_RT_USING_LEGACY is not set + +# +# C++ features +# +CONFIG_RT_USING_CPLUSPLUS=y +# CONFIG_RT_USING_CPLUSPLUS11 is not set + +# +# Command shell +# +CONFIG_RT_USING_FINSH=y +CONFIG_RT_USING_MSH=y +CONFIG_FINSH_USING_MSH=y +CONFIG_FINSH_THREAD_NAME="tshell" +CONFIG_FINSH_THREAD_PRIORITY=20 +CONFIG_FINSH_THREAD_STACK_SIZE=4096 +CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 +CONFIG_FINSH_USING_SYMTAB=y +CONFIG_FINSH_CMD_SIZE=80 +CONFIG_MSH_USING_BUILT_IN_COMMANDS=y +CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set +# CONFIG_FINSH_USING_AUTH is not set +CONFIG_FINSH_ARG_MAX=10 + +# +# Device virtual file system +# +CONFIG_RT_USING_DFS=y +CONFIG_DFS_USING_POSIX=y +CONFIG_DFS_USING_WORKDIR=y +CONFIG_DFS_FILESYSTEMS_MAX=2 +CONFIG_DFS_FILESYSTEM_TYPES_MAX=2 +CONFIG_DFS_FD_MAX=16 +# CONFIG_RT_USING_DFS_MNTTABLE is not set +# CONFIG_RT_USING_DFS_ELMFAT is not set +CONFIG_RT_USING_DFS_DEVFS=y +# CONFIG_RT_USING_DFS_ROMFS is not set +# CONFIG_RT_USING_DFS_RAMFS is not set + +# +# Device Drivers +# +CONFIG_RT_USING_DEVICE_IPC=y +# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set +CONFIG_RT_USING_SERIAL=y +CONFIG_RT_USING_SERIAL_V1=y +# CONFIG_RT_USING_SERIAL_V2 is not set +CONFIG_RT_SERIAL_USING_DMA=y +CONFIG_RT_SERIAL_RB_BUFSZ=64 +# CONFIG_RT_USING_CAN is not set +# CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set +# CONFIG_RT_USING_I2C is not set +# CONFIG_RT_USING_PHY is not set +CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_ADC is not set +# CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_PWM is not set +# CONFIG_RT_USING_MTD_NOR is not set +# CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_RTC is not set +# CONFIG_RT_USING_SDIO is not set +# CONFIG_RT_USING_SPI is not set +# CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_AUDIO is not set +# CONFIG_RT_USING_SENSOR is not set +# CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_HWCRYPTO is not set +# CONFIG_RT_USING_PULSE_ENCODER is not set +# CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_WIFI is not set + +# +# Using USB +# +# CONFIG_RT_USING_USB is not set +# CONFIG_RT_USING_USB_HOST is not set +# CONFIG_RT_USING_USB_DEVICE is not set + +# +# POSIX layer and C standard library +# +CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# POSIX (Portable Operating System Interface) layer +# +# CONFIG_RT_USING_POSIX_FS is not set +CONFIG_RT_USING_POSIX_DELAY=y +CONFIG_RT_USING_POSIX_CLOCK=y +# CONFIG_RT_USING_POSIX_TIMER is not set +CONFIG_RT_USING_PTHREADS=y +CONFIG_PTHREAD_NUM_MAX=8 +# CONFIG_RT_USING_MODULE is not set + +# +# Interprocess Communication (IPC) +# +# CONFIG_RT_USING_POSIX_PIPE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set + +# +# Socket is in the 'Network' category +# + +# +# Network +# + +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + +# +# Network interface device +# +# CONFIG_RT_USING_NETDEV is not set + +# +# light weight TCP/IP stack +# +# CONFIG_RT_USING_LWIP is not set + +# +# AT commands +# +# CONFIG_RT_USING_AT is not set + +# +# VBUS(Virtual Software BUS) +# +# CONFIG_RT_USING_VBUS is not set + +# +# Utilities +# +# CONFIG_RT_USING_RYM is not set +# CONFIG_RT_USING_ULOG is not set +# CONFIG_RT_USING_UTEST is not set +# CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RT_LINK is not set +# CONFIG_RT_USING_LWP is not set + +# +# RT-Thread Utestcases +# +# CONFIG_RT_USING_UTESTCASES is not set + +# +# RT-Thread online packages +# + +# +# IoT - internet of things +# +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set +# CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set +# CONFIG_PKG_USING_WEBCLIENT is not set +# CONFIG_PKG_USING_WEBNET is not set +# CONFIG_PKG_USING_MONGOOSE is not set +# CONFIG_PKG_USING_MYMQTT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set +# CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_LIBMODBUS is not set +# CONFIG_PKG_USING_FREEMODBUS is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_NANOPB is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_RW007 is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set +# CONFIG_PKG_USING_PPP_DEVICE is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_ATSRV_SOCKET is not set +# CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set + +# +# IoT Cloud +# +# CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set +# CONFIG_PKG_USING_JIOT-C-SDK is not set +# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_OTA_DOWNLOADER is not set +# CONFIG_PKG_USING_IPMSG is not set +# CONFIG_PKG_USING_LSSDP is not set +# CONFIG_PKG_USING_AIRKISS_OPEN is not set +# CONFIG_PKG_USING_LIBRWS is not set +# CONFIG_PKG_USING_TCPSERVER is not set +# CONFIG_PKG_USING_PROTOBUF_C is not set +# CONFIG_PKG_USING_DLT645 is not set +# CONFIG_PKG_USING_QXWZ is not set +# CONFIG_PKG_USING_SMTP_CLIENT is not set +# CONFIG_PKG_USING_ABUP_FOTA is not set +# CONFIG_PKG_USING_LIBCURL2RTT is not set +# CONFIG_PKG_USING_CAPNP is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set + +# +# security packages +# +# CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_TINYCRYPT is not set +# CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set + +# +# language packages +# +# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_LUA is not set +# CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set + +# +# multimedia packages +# + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set +# CONFIG_PKG_USING_OPENMV is not set +# CONFIG_PKG_USING_MUPDF is not set +# CONFIG_PKG_USING_STEMWIN is not set +# CONFIG_PKG_USING_WAVPLAYER is not set +# CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set + +# +# tools packages +# +# CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set +# CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set +# CONFIG_PKG_USING_RDB is not set +# CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set +# CONFIG_PKG_USING_ADBD is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set +# CONFIG_PKG_USING_NR_MICRO_SHELL is not set +# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set +# CONFIG_PKG_USING_LUNAR_CALENDAR is not set +# CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set + +# +# system packages +# + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# POSIX extension functions +# +# CONFIG_PKG_USING_POSIX_GETLINE is not set +# CONFIG_PKG_USING_POSIX_WCWIDTH is not set +# CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_RT_USING_ARDUINO is not set +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_PERSIMMON is not set +# CONFIG_PKG_USING_CAIRO is not set +# CONFIG_PKG_USING_PIXMAN is not set +# CONFIG_PKG_USING_PARTITION is not set +# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_FLASHDB is not set +# CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set +# CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set +# CONFIG_PKG_USING_THREAD_POOL is not set +# CONFIG_PKG_USING_ROBOTS is not set +# CONFIG_PKG_USING_EV is not set +# CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_USB_STACK is not set + +# +# peripheral libraries and drivers +# +# CONFIG_PKG_USING_SENSORS_DRIVERS is not set +# CONFIG_PKG_USING_REALTEK_AMEBA is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_BUTTON is not set +# CONFIG_PKG_USING_PCF8574 is not set +# CONFIG_PKG_USING_SX12XX is not set +# CONFIG_PKG_USING_SIGNAL_LED is not set +# CONFIG_PKG_USING_LEDBLINK is not set +# CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set +# CONFIG_PKG_USING_WM_LIBRARIES is not set +# CONFIG_PKG_USING_KENDRYTE_SDK is not set +# CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_AGILE_BUTTON is not set +# CONFIG_PKG_USING_AGILE_LED is not set +# CONFIG_PKG_USING_AT24CXX is not set +# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set +# CONFIG_PKG_USING_AD7746 is not set +# CONFIG_PKG_USING_PCA9685 is not set +# CONFIG_PKG_USING_I2C_TOOLS is not set +# CONFIG_PKG_USING_NRF24L01 is not set +# CONFIG_PKG_USING_TOUCH_DRIVERS is not set +# CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_RPLIDAR is not set +# CONFIG_PKG_USING_AS608 is not set +# CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set +# CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set + +# +# miscellaneous packages +# + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set +# CONFIG_PKG_USING_HELLO is not set +# CONFIG_PKG_USING_VI is not set +# CONFIG_PKG_USING_KI is not set +# CONFIG_PKG_USING_ARMv7M_DWT is not set +# CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +CONFIG_SOC_AT91SAM9G45=y + +# +# Hardware Drivers Config +# +CONFIG_RT_USING_LED=y diff --git a/bsp/at91/at91sam9g45/Kconfig b/bsp/at91/at91sam9g45/Kconfig new file mode 100644 index 0000000000..4de0cd0233 --- /dev/null +++ b/bsp/at91/at91sam9g45/Kconfig @@ -0,0 +1,37 @@ +mainmenu "RT-Thread Configuration" + +config BSP_DIR + string + option env="BSP_ROOT" + default "." + +config RTT_DIR + string + option env="RTT_ROOT" + default "../.." + +# you can change the RTT_ROOT default "../.." to your rtthread_root, +# example : default "F:/git_repositories/rt-thread" + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" + +config SOC_AT91SAM9G45 + bool + select ARCH_ARM_ARM9 + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + default y + +source "$BSP_DIR/drivers/Kconfig" + diff --git a/bsp/at91/at91sam9g45/SConscript b/bsp/at91/at91sam9g45/SConscript new file mode 100644 index 0000000000..fe0ae941ae --- /dev/null +++ b/bsp/at91/at91sam9g45/SConscript @@ -0,0 +1,14 @@ +# for module compiling +import os +Import('RTT_ROOT') + +cwd = str(Dir('#')) +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/at91/at91sam9g45/SConstruct b/bsp/at91/at91sam9g45/SConstruct new file mode 100644 index 0000000000..c9ed1b8c50 --- /dev/null +++ b/bsp/at91/at91sam9g45/SConstruct @@ -0,0 +1,40 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread-at91sam9g45.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +if GetDepend('RT_USING_WEBSERVER'): + objs = objs + SConscript(RTT_ROOT + '/components/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) + +if GetDepend('RT_USING_RTGUI'): + objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) + +# libc testsuite +objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/at91/at91sam9g45/applications/SConscript b/bsp/at91/at91sam9g45/applications/SConscript new file mode 100644 index 0000000000..01eb940dfb --- /dev/null +++ b/bsp/at91/at91sam9g45/applications/SConscript @@ -0,0 +1,11 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'applications') +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/at91/at91sam9g45/applications/application.c b/bsp/at91/at91sam9g45/applications/application.c new file mode 100644 index 0000000000..6bc312b997 --- /dev/null +++ b/bsp/at91/at91sam9g45/applications/application.c @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +/** + * @addtogroup at91sam9260 + */ +/*@{*/ + +#include +#include + +#ifdef RT_USING_DFS +/* dfs Filesystem APIs */ +#include +#endif + +#ifdef RT_USING_SDIO +#include +#include "at91_mci.h" +#endif + +#ifdef RT_USING_LED +#include "led.h" +#endif + +static int rt_led_app_init(void); + +RT_WEAK int main(void) +{ +#ifdef RT_USING_SDIO + int timeout = 0; +#endif + +/* Filesystem Initialization */ +#ifdef RT_USING_DFS + { +#if defined(RT_USING_DFS_ROMFS) + if (dfs_mount(RT_NULL, "/rom", "rom", 0, &romfs_root) == 0) + { + rt_kprintf("ROM File System initialized!\n"); + } + else + rt_kprintf("ROM File System initialzation failed!\n"); +#endif + +#if defined(RT_USING_DFS_UFFS) + { + /* mount flash device as flash directory */ + if(dfs_mount("nand0", "/nand0", "uffs", 0, 0) == 0) + rt_kprintf("UFFS File System initialized!\n"); + else + rt_kprintf("UFFS File System initialzation failed!\n"); + } +#endif + +#ifdef RT_USING_SDIO + timeout = 0; + while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2)) + { + rt_thread_delay(1); + } + + if (timeout < RT_TICK_PER_SECOND*2) + { + /* mount sd card fat partition 1 as root directory */ + if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) + { + rt_kprintf("File System initialized!\n"); + } + else + rt_kprintf("File System initialzation failed!%d\n", rt_get_errno()); + } + else + { + rt_kprintf("No SD card found.\n"); + } +#endif + } +#endif + + rt_led_app_init(); +} + +#ifdef RT_USING_LED +void rt_led_thread_entry(void* parameter) +{ + rt_uint8_t cnt = 0; + led_init(); + while(1) + { + /* light on leds for one second */ + rt_thread_delay(40); + cnt++; + if (cnt&0x01) + led_on(1); + else + led_off(1); + if (cnt&0x02) + led_on(2); + else + led_off(2); + if (cnt&0x04) + led_on(3); + else + led_off(3); + + } +} +#endif + +static int rt_led_app_init(void) +{ +#ifdef RT_USING_LED + rt_thread_t led_thread; + +#if (RT_THREAD_PRIORITY_MAX == 32) + led_thread = rt_thread_create("led", + rt_led_thread_entry, RT_NULL, + 512, 20, 20); +#else + led_thread = rt_thread_create("led", + rt_led_thread_entry, RT_NULL, + 512, 200, 20); +#endif + + if(led_thread != RT_NULL) + rt_thread_startup(led_thread); +#endif + + return 0; +} + +/* NFSv3 Initialization */ +#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) +#include +void nfs_start(void) +{ + nfs_init(); + + if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0) + { + rt_kprintf("NFSv3 File System initialized!\n"); + } + else + rt_kprintf("NFSv3 File System initialzation failed!\n"); +} + +#include "finsh.h" +FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem); +#endif + +/*@}*/ diff --git a/bsp/at91/at91sam9g45/drivers/Kconfig b/bsp/at91/at91sam9g45/drivers/Kconfig new file mode 100644 index 0000000000..765c98e300 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/Kconfig @@ -0,0 +1,7 @@ +menu "Hardware Drivers Config" + +config RT_USING_LED + bool "Using LED" + default n + +endmenu diff --git a/bsp/at91/at91sam9g45/drivers/SConscript b/bsp/at91/at91sam9g45/drivers/SConscript new file mode 100644 index 0000000000..d0470f9049 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/SConscript @@ -0,0 +1,31 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'drivers') + +# add the general drvers. +src = Split(""" +board.c +usart.c +""") + +# add Ethernet drvers. +if GetDepend('RT_USING_LED'): + src += ['led.c'] + +if GetDepend('RT_USING_SDIO'): + src += ['at91_mci.c'] + +if GetDepend('RT_USING_LWIP'): + src += ['macb.c'] + +if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): + src += ['at91_i2c_gpio.c'] + + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/at91/at91sam9g45/drivers/at91_i2c_gpio.c b/bsp/at91/at91sam9g45/drivers/at91_i2c_gpio.c new file mode 100644 index 0000000000..d229cbd1bb --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/at91_i2c_gpio.c @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2012-04-25 weety first version + */ + +#include +#include +#include + + +static void at91_i2c_gpio_init() +{ + AT91C_BASE_PMC->PMC_PCER = 1 << AT91C_ID_PIOA; //enable PIOA clock + AT91C_BASE_PIOA->PIO_PUER = (1 << 23); + AT91C_BASE_PIOA->PIO_PER = (1 << 23); + AT91C_BASE_PIOA->PIO_MDER = (1 << 23); + AT91C_BASE_PIOA->PIO_PUER = (1 << 24); + AT91C_BASE_PIOA->PIO_PER = (1 << 24); + AT91C_BASE_PIOA->PIO_MDER = (1 << 24); + + AT91C_BASE_PIOA->PIO_OER = (1 << 23); + AT91C_BASE_PIOA->PIO_OER = (1 << 24); + + AT91C_BASE_PIOA->PIO_SODR = (1 << 23); + AT91C_BASE_PIOA->PIO_SODR = (1 << 24); +} + +static void at91_set_sda(void *data, rt_int32_t state) +{ + if (state) + { + AT91C_BASE_PIOA->PIO_SODR = (1 << 23); + } + else + { + AT91C_BASE_PIOA->PIO_CODR = (1 << 23); + } +} + +static void at91_set_scl(void *data, rt_int32_t state) +{ + if (state) + { + AT91C_BASE_PIOA->PIO_SODR = (1 << 24); + } + else + { + AT91C_BASE_PIOA->PIO_CODR = (1 << 24); + } +} + +static rt_int32_t at91_get_sda(void *data) +{ + return AT91C_BASE_PIOA->PIO_PDSR & (1 << 23); +} + +static rt_int32_t at91_get_scl(void *data) +{ + return AT91C_BASE_PIOA->PIO_PDSR & (1 << 24); +} + +static void at91_udelay (rt_uint32_t us) +{ + rt_int32_t i; + for (; us > 0; us--) + { + i = 50000; + while(i > 0) + { + i--; + } + } +} + +static const struct rt_i2c_bit_ops bit_ops = { + RT_NULL, + at91_set_sda, + at91_set_scl, + at91_get_sda, + at91_get_scl, + + at91_udelay, + + 5, + 100 +}; + +int at91_i2c_init(void) +{ + struct rt_i2c_bus_device *bus; + + bus = rt_malloc(sizeof(struct rt_i2c_bus_device)); + if (bus == RT_NULL) + { + rt_kprintf("rt_malloc failed\n"); + return -RT_ENOMEM; + } + + rt_memset((void *)bus, 0, sizeof(struct rt_i2c_bus_device)); + + bus->priv = (void *)&bit_ops; + + at91_i2c_gpio_init(); + + rt_i2c_bit_add_bus(bus, "i2c0"); + + return 0; +} + +INIT_DEVICE_EXPORT(at91_i2c_init); + diff --git a/bsp/at91/at91sam9g45/drivers/at91_mci.c b/bsp/at91/at91sam9g45/drivers/at91_mci.c new file mode 100644 index 0000000000..55c698832f --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/at91_mci.c @@ -0,0 +1,910 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-07-25 weety first version + */ + +#include +#include +#include +#include +#include "at91_mci.h" + +#define USE_SLOT_B +//#define RT_MCI_DBG + +#ifdef RT_MCI_DBG +#define mci_dbg(fmt, ...) rt_kprintf(fmt, ##__VA_ARGS__) +#else +#define mci_dbg(fmt, ...) +#endif + +#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) + +extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); +extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); + + +#define AT91C_MCI_ERRORS (AT91C_MCI_RINDE | AT91C_MCI_RDIRE | AT91C_MCI_RCRCE \ + | AT91C_MCI_RENDE | AT91C_MCI_RTOE | AT91C_MCI_DCRCE \ + | AT91C_MCI_DTOE | AT91C_MCI_OVRE | AT91C_MCI_UNRE) + +#define at91_mci_read(reg) readl(AT91C_BASE_MCI + (reg)) +#define at91_mci_write(reg, val) writel((val), AT91C_BASE_MCI + (reg)) + + +#define REQ_ST_INIT (1U << 0) +#define REQ_ST_CMD (1U << 1) +#define REQ_ST_STOP (1U << 2) + +struct at91_mci { + struct rt_mmcsd_host *host; + struct rt_mmcsd_req *req; + struct rt_mmcsd_cmd *cmd; + struct rt_timer timer; + //struct rt_semaphore sem_ack; + rt_uint32_t *buf; + rt_uint32_t current_status; +}; + +/* + * Reset the controller and restore most of the state + */ +static void at91_reset_host() +{ + rt_uint32_t mr; + rt_uint32_t sdcr; + rt_uint32_t dtor; + rt_uint32_t imr; + rt_uint32_t level; + + level = rt_hw_interrupt_disable(); + + imr = at91_mci_read(AT91C_MCI_IMR); + + at91_mci_write(AT91C_MCI_IDR, 0xffffffff); + + /* save current state */ + mr = at91_mci_read(AT91C_MCI_MR) & 0x7fff; + sdcr = at91_mci_read(AT91C_MCI_SDCR); + dtor = at91_mci_read(AT91C_MCI_DTOR); + + /* reset the controller */ + at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIDIS | AT91C_MCI_SWRST); + + /* restore state */ + at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIEN); + at91_mci_write(AT91C_MCI_MR, mr); + at91_mci_write(AT91C_MCI_SDCR, sdcr); + at91_mci_write(AT91C_MCI_DTOR, dtor); + at91_mci_write(AT91C_MCI_IER, imr); + + /* make sure sdio interrupts will fire */ + at91_mci_read(AT91C_MCI_SR); + rt_hw_interrupt_enable(level); + +} + + +/* + * Enable the controller + */ +static void at91_mci_enable() +{ + rt_uint32_t mr; + + at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIEN); + at91_mci_write(AT91C_MCI_IDR, 0xffffffff); + at91_mci_write(AT91C_MCI_DTOR, AT91C_MCI_DTOMUL_1M | AT91C_MCI_DTOCYC); + mr = AT91C_MCI_PDCMODE | 0x34a; + + mr |= AT91C_MCI_RDPROOF | AT91C_MCI_WRPROOF; + + at91_mci_write(AT91C_MCI_MR, mr); + + /* use Slot A or B (only one at same time) */ + at91_mci_write(AT91C_MCI_SDCR, 1); /* use slot b */ +} + +/* + * Disable the controller + */ +static void at91_mci_disable() +{ + at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIDIS | AT91C_MCI_SWRST); +} + +static void at91_timeout_timer(void *data) +{ + struct at91_mci *mci; + + mci = (struct at91_mci *)data; + + if (mci->req) + { + rt_kprintf("Timeout waiting end of packet\n"); + + if (mci->current_status == REQ_ST_CMD) + { + if (mci->req->cmd && mci->req->data) + { + mci->req->data->err = -RT_ETIMEOUT; + } + else + { + if (mci->req->cmd) + mci->req->cmd->err = -RT_ETIMEOUT; + } + } + else if (mci->current_status == REQ_ST_STOP) + { + mci->req->stop->err = -RT_ETIMEOUT; + } + + at91_reset_host(); + mmcsd_req_complete(mci->host); + } +} + +/* + * Prepare a dma read + */ +static void at91_mci_init_dma_read(struct at91_mci *mci) +{ + rt_uint8_t i; + struct rt_mmcsd_cmd *cmd; + struct rt_mmcsd_data *data; + rt_uint32_t length; + + mci_dbg("pre dma read\n"); + + cmd = mci->cmd; + if (!cmd) + { + mci_dbg("no command\n"); + return; + } + + data = cmd->data; + if (!data) + { + mci_dbg("no data\n"); + return; + } + + for (i = 0; i < 1; i++) + { + /* Check to see if this needs filling */ + if (i == 0) + { + if (at91_mci_read(AT91C_PDC_RCR) != 0) + { + mci_dbg("Transfer active in current\n"); + continue; + } + } + else { + if (at91_mci_read(AT91C_PDC_RNCR) != 0) + { + mci_dbg("Transfer active in next\n"); + continue; + } + } + + length = data->blksize * data->blks; + mci_dbg("dma address = %08X, length = %d\n", data->buf, length); + + if (i == 0) + { + at91_mci_write(AT91C_PDC_RPR, (rt_uint32_t)(data->buf)); + at91_mci_write(AT91C_PDC_RCR, (data->blksize & 0x3) ? length : length / 4); + } + else + { + at91_mci_write(AT91C_PDC_RNPR, (rt_uint32_t)(data->buf)); + at91_mci_write(AT91C_PDC_RNCR, (data->blksize & 0x3) ? length : length / 4); + } + } + + mci_dbg("pre dma read done\n"); +} + +/* + * Send a command + */ +static void at91_mci_send_command(struct at91_mci *mci, struct rt_mmcsd_cmd *cmd) +{ + rt_uint32_t cmdr, mr; + rt_uint32_t block_length; + struct rt_mmcsd_data *data = cmd->data; + struct rt_mmcsd_host *host = mci->host; + + rt_uint32_t blocks; + rt_uint32_t ier = 0; + rt_uint32_t length; + + mci->cmd = cmd; + + /* Needed for leaving busy state before CMD1 */ + if ((at91_mci_read(AT91C_MCI_SR) & AT91C_MCI_RTOE) && (cmd->cmd_code == 1)) + { + mci_dbg("Clearing timeout\n"); + at91_mci_write(AT91C_MCI_ARGR, 0); + at91_mci_write(AT91C_MCI_CMDR, AT91C_MCI_OPDCMD); + while (!(at91_mci_read(AT91C_MCI_SR) & AT91C_MCI_CMDRDY)) + { + /* spin */ + mci_dbg("Clearing: SR = %08X\n", at91_mci_read(AT91C_MCI_SR)); + } + } + + cmdr = cmd->cmd_code; + + if (resp_type(cmd) == RESP_NONE) + cmdr |= AT91C_MCI_RSPTYP_NONE; + else + { + /* if a response is expected then allow maximum response latancy */ + cmdr |= AT91C_MCI_MAXLAT; + /* set 136 bit response for R2, 48 bit response otherwise */ + if (resp_type(cmd) == RESP_R2) + cmdr |= AT91C_MCI_RSPTYP_136; + else + cmdr |= AT91C_MCI_RSPTYP_48; + } + + if (data) + { + + block_length = data->blksize; + blocks = data->blks; + + /* always set data start - also set direction flag for read */ + if (data->flags & DATA_DIR_READ) + cmdr |= (AT91C_MCI_TRDIR | AT91C_MCI_TRCMD_START); + else if (data->flags & DATA_DIR_WRITE) + cmdr |= AT91C_MCI_TRCMD_START; + + if (data->flags & DATA_STREAM) + cmdr |= AT91C_MCI_TRTYP_STREAM; + if (data->blks > 1) + cmdr |= AT91C_MCI_TRTYP_MULTIPLE; + } + else + { + block_length = 0; + blocks = 0; + } + + /*if (cmd->cmd_code == GO_IDLE_STATE) + { + cmdr |= AT91C_MCI_SPCMD_INIT; + }*/ + + if (cmd->cmd_code == STOP_TRANSMISSION) + cmdr |= AT91C_MCI_TRCMD_STOP; + + if (host->io_cfg.bus_mode == MMCSD_BUSMODE_OPENDRAIN) + cmdr |= AT91C_MCI_OPDCMD; + + /* + * Set the arguments and send the command + */ + mci_dbg("Sending command %d as %08X, arg = %08X, blocks = %d, length = %d (MR = %08X)\n", + cmd->cmd_code, cmdr, cmd->arg, blocks, block_length, at91_mci_read(AT91C_MCI_MR)); + + if (!data) + { + at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_TXTDIS | AT91C_PDC_RXTDIS); + at91_mci_write(AT91C_PDC_RPR, 0); + at91_mci_write(AT91C_PDC_RCR, 0); + at91_mci_write(AT91C_PDC_RNPR, 0); + at91_mci_write(AT91C_PDC_RNCR, 0); + at91_mci_write(AT91C_PDC_TPR, 0); + at91_mci_write(AT91C_PDC_TCR, 0); + at91_mci_write(AT91C_PDC_TNPR, 0); + at91_mci_write(AT91C_PDC_TNCR, 0); + ier = AT91C_MCI_CMDRDY; + } + else + { + /* zero block length and PDC mode */ + mr = at91_mci_read(AT91C_MCI_MR) & 0x5fff; + mr |= (data->blksize & 0x3) ? AT91C_MCI_PDCFBYTE : 0; + mr |= (block_length << 16); + mr |= AT91C_MCI_PDCMODE; + at91_mci_write(AT91C_MCI_MR, mr); + + at91_mci_write(AT91C_MCI_BLKR, + AT91C_MCI_BLKR_BCNT(blocks) | + AT91C_MCI_BLKR_BLKLEN(block_length)); + + /* + * Disable the PDC controller + */ + at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTDIS | AT91C_PDC_TXTDIS); + + if (cmdr & AT91C_MCI_TRCMD_START) + { + if (cmdr & AT91C_MCI_TRDIR) + { + /* + * Handle a read + */ + + mmu_invalidate_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); + at91_mci_init_dma_read(mci); + ier = AT91C_MCI_ENDRX /* | AT91C_MCI_RXBUFF */; + } + else + { + /* + * Handle a write + */ + length = block_length * blocks; + /* + * at91mci MCI1 rev2xx Data Write Operation and + * number of bytes erratum + */ + if (length < 12) + { + length = 12; + mci->buf = rt_malloc(length); + if (!mci->buf) + { + rt_kprintf("rt alloc tx buffer failed\n"); + cmd->err = -RT_ENOMEM; + mmcsd_req_complete(mci->host); + return; + } + rt_memset(mci->buf, 0, 12); + rt_memcpy(mci->buf, data->buf, length); + mmu_clean_dcache((rt_uint32_t)mci->buf, length); + at91_mci_write(AT91C_PDC_TPR, (rt_uint32_t)(mci->buf)); + at91_mci_write(AT91C_PDC_TCR, (data->blksize & 0x3) ? + length : length / 4); + } + else + { + mmu_clean_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); + at91_mci_write(AT91C_PDC_TPR, (rt_uint32_t)(data->buf)); + at91_mci_write(AT91C_PDC_TCR, (data->blksize & 0x3) ? + length : length / 4); + } + mci_dbg("Transmitting %d bytes\n", length); + ier = AT91C_MCI_CMDRDY; + } + } + } + + /* + * Send the command and then enable the PDC - not the other way round as + * the data sheet says + */ + + at91_mci_write(AT91C_MCI_ARGR, cmd->arg); + at91_mci_write(AT91C_MCI_CMDR, cmdr); + + if (cmdr & AT91C_MCI_TRCMD_START) + { + if (cmdr & AT91C_MCI_TRDIR) + at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTEN); + } + + /* Enable selected interrupts */ + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_ERRORS | ier); +} + +/* + * Process the next step in the request + */ +static void at91_mci_process_next(struct at91_mci *mci) +{ + if (mci->current_status == REQ_ST_INIT) + { + mci->current_status = REQ_ST_CMD; + at91_mci_send_command(mci, mci->req->cmd); + } + else if ((mci->current_status == REQ_ST_CMD) && mci->req->stop) + { + mci->current_status = REQ_ST_STOP; + at91_mci_send_command(mci, mci->req->stop); + } + else + { + rt_timer_stop(&mci->timer); + /* the mci controller hangs after some transfers, + * and the workaround is to reset it after each transfer. + */ + at91_reset_host(); + mmcsd_req_complete(mci->host); + } +} + +/* + * Handle an MMC request + */ +static void at91_mci_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) +{ + rt_uint32_t timeout = RT_TICK_PER_SECOND; + struct at91_mci *mci = host->private_data; + mci->req = req; + mci->current_status = REQ_ST_INIT; + + rt_timer_control(&mci->timer, RT_TIMER_CTRL_SET_TIME, (void*)&timeout); + rt_timer_start(&mci->timer); + + at91_mci_process_next(mci); +} + +/* + * Handle transmitted data + */ +static void at91_mci_handle_transmitted(struct at91_mci *mci) +{ + struct rt_mmcsd_cmd *cmd; + struct rt_mmcsd_data *data; + + mci_dbg("Handling the transmit\n"); + + /* Disable the transfer */ + at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTDIS | AT91C_PDC_TXTDIS); + + /* Now wait for cmd ready */ + at91_mci_write(AT91C_MCI_IDR, AT91C_MCI_TXBUFE); + + cmd = mci->cmd; + if (!cmd) return; + + data = cmd->data; + if (!data) return; + + if (data->blks > 1) + { + mci_dbg("multiple write : wait for BLKE...\n"); + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_BLKE); + } else + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_NOTBUSY); +} + + +/* + * Handle after a dma read + */ +static void at91_mci_post_dma_read(struct at91_mci *mci) +{ + struct rt_mmcsd_cmd *cmd; + struct rt_mmcsd_data *data; + + mci_dbg("post dma read\n"); + + cmd = mci->cmd; + if (!cmd) + { + mci_dbg("no command\n"); + return; + } + + data = cmd->data; + if (!data) + { + mci_dbg("no data\n"); + return; + } + + at91_mci_write(AT91C_MCI_IDR, AT91C_MCI_ENDRX); + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_RXBUFF); + + mci_dbg("post dma read done\n"); +} + +/*Handle after command sent ready*/ +static int at91_mci_handle_cmdrdy(struct at91_mci *mci) +{ + if (!mci->cmd) + return 1; + else if (!mci->cmd->data) + { + if (mci->current_status == REQ_ST_STOP) + { + /*After multi block write, we must wait for NOTBUSY*/ + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_NOTBUSY); + } + else return 1; + } + else if (mci->cmd->data->flags & DATA_DIR_WRITE) + { + /*After sendding multi-block-write command, start DMA transfer*/ + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_TXBUFE | AT91C_MCI_BLKE); + at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_TXTEN); + } + + /* command not completed, have to wait */ + return 0; +} + +/* + * Handle a command that has been completed + */ +static void at91_mci_completed_command(struct at91_mci *mci, rt_uint32_t status) +{ + struct rt_mmcsd_cmd *cmd = mci->cmd; + struct rt_mmcsd_data *data = cmd->data; + + at91_mci_write(AT91C_MCI_IDR, 0xffffffff & ~(AT91C_MCI_SDIOIRQA | AT91C_MCI_SDIOIRQB)); + + cmd->resp[0] = at91_mci_read(AT91C_MCI_RSPR(0)); + cmd->resp[1] = at91_mci_read(AT91C_MCI_RSPR(1)); + cmd->resp[2] = at91_mci_read(AT91C_MCI_RSPR(2)); + cmd->resp[3] = at91_mci_read(AT91C_MCI_RSPR(3)); + + if (mci->buf) + { + //rt_memcpy(data->buf, mci->buf, data->blksize*data->blks); + rt_free(mci->buf); + mci->buf = RT_NULL; + } + + mci_dbg("Status = %08X/%08x [%08X %08X %08X %08X]\n", + status, at91_mci_read(AT91C_MCI_SR), + cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]); + + if (status & AT91C_MCI_ERRORS) + { + if ((status & AT91C_MCI_RCRCE) && (resp_type(cmd) & (RESP_R3|RESP_R4))) + { + cmd->err = 0; + } + else + { + if (status & (AT91C_MCI_DTOE | AT91C_MCI_DCRCE)) + { + if (data) + { + if (status & AT91C_MCI_DTOE) + data->err = -RT_ETIMEOUT; + else if (status & AT91C_MCI_DCRCE) + data->err = -RT_ERROR; + } + } + else + { + if (status & AT91C_MCI_RTOE) + cmd->err = -RT_ETIMEOUT; + else if (status & AT91C_MCI_RCRCE) + cmd->err = -RT_ERROR; + else + cmd->err = -RT_ERROR; + } + + rt_kprintf("error detected and set to %d/%d (cmd = %d)\n", + cmd->err, data ? data->err : 0, + cmd->cmd_code); + } + } + else + cmd->err = 0; + + at91_mci_process_next(mci); +} + +/* + * Handle an interrupt + */ +static void at91_mci_irq(int irq, void *param) +{ + struct at91_mci *mci = (struct at91_mci *)param; + rt_int32_t completed = 0; + rt_uint32_t int_status, int_mask; + + int_status = at91_mci_read(AT91C_MCI_SR); + int_mask = at91_mci_read(AT91C_MCI_IMR); + + mci_dbg("MCI irq: status = %08X, %08X, %08X\n", int_status, int_mask, + int_status & int_mask); + + int_status = int_status & int_mask; + + if (int_status & AT91C_MCI_ERRORS) + { + completed = 1; + + if (int_status & AT91C_MCI_UNRE) + mci_dbg("MMC: Underrun error\n"); + if (int_status & AT91C_MCI_OVRE) + mci_dbg("MMC: Overrun error\n"); + if (int_status & AT91C_MCI_DTOE) + mci_dbg("MMC: Data timeout\n"); + if (int_status & AT91C_MCI_DCRCE) + mci_dbg("MMC: CRC error in data\n"); + if (int_status & AT91C_MCI_RTOE) + mci_dbg("MMC: Response timeout\n"); + if (int_status & AT91C_MCI_RENDE) + mci_dbg("MMC: Response end bit error\n"); + if (int_status & AT91C_MCI_RCRCE) + mci_dbg("MMC: Response CRC error\n"); + if (int_status & AT91C_MCI_RDIRE) + mci_dbg("MMC: Response direction error\n"); + if (int_status & AT91C_MCI_RINDE) + mci_dbg("MMC: Response index error\n"); + } + else + { + /* Only continue processing if no errors */ + + if (int_status & AT91C_MCI_TXBUFE) + { + mci_dbg("TX buffer empty\n"); + at91_mci_handle_transmitted(mci); + } + + if (int_status & AT91C_MCI_ENDRX) + { + mci_dbg("ENDRX\n"); + at91_mci_post_dma_read(mci); + } + + if (int_status & AT91C_MCI_RXBUFF) + { + mci_dbg("RX buffer full\n"); + at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTDIS | AT91C_PDC_TXTDIS); + at91_mci_write(AT91C_MCI_IDR, AT91C_MCI_RXBUFF | AT91C_MCI_ENDRX); + completed = 1; + } + + if (int_status & AT91C_MCI_ENDTX) + mci_dbg("Transmit has ended\n"); + + if (int_status & AT91C_MCI_NOTBUSY) + { + mci_dbg("Card is ready\n"); + //at91_mci_update_bytes_xfered(host); + completed = 1; + } + + if (int_status & AT91C_MCI_DTIP) + mci_dbg("Data transfer in progress\n"); + + if (int_status & AT91C_MCI_BLKE) + { + mci_dbg("Block transfer has ended\n"); + if (mci->req->data && mci->req->data->blks > 1) + { + /* multi block write : complete multi write + * command and send stop */ + completed = 1; + } + else + { + at91_mci_write(AT91C_MCI_IER, AT91C_MCI_NOTBUSY); + } + } + + /*if (int_status & AT91C_MCI_SDIOIRQA) + rt_mmcsd_signal_sdio_irq(host->mmc);*/ + + if (int_status & AT91C_MCI_SDIOIRQB) + sdio_irq_wakeup(mci->host); + + if (int_status & AT91C_MCI_TXRDY) + mci_dbg("Ready to transmit\n"); + + if (int_status & AT91C_MCI_RXRDY) + mci_dbg("Ready to receive\n"); + + if (int_status & AT91C_MCI_CMDRDY) + { + mci_dbg("Command ready\n"); + completed = at91_mci_handle_cmdrdy(mci); + } + } + + if (completed) + { + mci_dbg("Completed command\n"); + at91_mci_write(AT91C_MCI_IDR, 0xffffffff & ~(AT91C_MCI_SDIOIRQA | AT91C_MCI_SDIOIRQB)); + at91_mci_completed_command(mci, int_status); + } + else + at91_mci_write(AT91C_MCI_IDR, int_status & ~(AT91C_MCI_SDIOIRQA | AT91C_MCI_SDIOIRQB)); + +} + + +/* + * Set the IOCFG + */ +static void at91_mci_set_iocfg(struct rt_mmcsd_host *host, struct rt_mmcsd_io_cfg *io_cfg) +{ + rt_uint32_t clkdiv; + //struct at91_mci *mci = host->private_data; + rt_uint32_t at91_master_clock = clk_get_rate(clk_get("mck")); + + if (io_cfg->clock == 0) + { + /* Disable the MCI controller */ + at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIDIS); + clkdiv = 0; + } + else + { + /* Enable the MCI controller */ + at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIEN); + + if ((at91_master_clock % (io_cfg->clock * 2)) == 0) + clkdiv = ((at91_master_clock / io_cfg->clock) / 2) - 1; + else + clkdiv = (at91_master_clock / io_cfg->clock) / 2; + + mci_dbg("clkdiv = %d. mcck = %ld\n", clkdiv, + at91_master_clock / (2 * (clkdiv + 1))); + } + if (io_cfg->bus_width == MMCSD_BUS_WIDTH_4) + { + mci_dbg("MMC: Setting controller bus width to 4\n"); + at91_mci_write(AT91C_MCI_SDCR, at91_mci_read(AT91C_MCI_SDCR) | AT91C_MCI_SDCBUS); + } + else + { + mci_dbg("MMC: Setting controller bus width to 1\n"); + at91_mci_write(AT91C_MCI_SDCR, at91_mci_read(AT91C_MCI_SDCR) & ~AT91C_MCI_SDCBUS); + } + + /* Set the clock divider */ + at91_mci_write(AT91C_MCI_MR, (at91_mci_read(AT91C_MCI_MR) & ~AT91C_MCI_CLKDIV) | clkdiv); + + /* maybe switch power to the card */ + switch (io_cfg->power_mode) + { + case MMCSD_POWER_OFF: + break; + case MMCSD_POWER_UP: + break; + case MMCSD_POWER_ON: + /*at91_mci_write(AT91C_MCI_ARGR, 0); + at91_mci_write(AT91C_MCI_CMDR, 0|AT91C_MCI_SPCMD_INIT|AT91C_MCI_OPDCMD); + mci_dbg("MCI_SR=0x%08x\n", at91_mci_read(AT91C_MCI_SR)); + while (!(at91_mci_read(AT91C_MCI_SR) & AT91C_MCI_CMDRDY)) + { + + } + mci_dbg("at91 mci power on\n");*/ + break; + default: + rt_kprintf("unknown power_mode %d\n", io_cfg->power_mode); + break; + } + +} + + +static void at91_mci_enable_sdio_irq(struct rt_mmcsd_host *host, rt_int32_t enable) +{ + at91_mci_write(enable ? AT91C_MCI_IER : AT91C_MCI_IDR, AT91C_MCI_SDIOIRQB); +} + + +static const struct rt_mmcsd_host_ops ops = { + at91_mci_request, + at91_mci_set_iocfg, + RT_NULL, + at91_mci_enable_sdio_irq, +}; + +void at91_mci_detect(int irq, void *param) +{ + rt_kprintf("mmcsd gpio detected\n"); +} + +static void mci_gpio_init() +{ +#ifdef USE_SLOT_B + AT91C_BASE_PIOA->PIO_PUER = (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5); + AT91C_BASE_PIOA->PIO_PUDR = (1 << 8); + AT91C_BASE_PIOA->PIO_BSR = (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5); + AT91C_BASE_PIOA->PIO_ASR = (1 << 8); + AT91C_BASE_PIOA->PIO_PDR = (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)|(1 << 8); + + AT91C_BASE_PIOA->PIO_IDR = (1 << 6)|(1 << 7); + AT91C_BASE_PIOA->PIO_PUER = (1 << 6)|(1 << 7); + AT91C_BASE_PIOA->PIO_ODR = (1 << 6)|(1 << 7); + AT91C_BASE_PIOA->PIO_PER = (1 << 6)|(1 << 7); +#else + AT91C_BASE_PIOA->PIO_PUER = (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11); + AT91C_BASE_PIOA->PIO_ASR = (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8); + AT91C_BASE_PIOA->PIO_PDR = (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8); +#endif +} + +int at91_mci_init(void) +{ + struct rt_mmcsd_host *host; + struct at91_mci *mci; + + host = mmcsd_alloc_host(); + if (!host) + { + return -RT_ERROR; + } + + mci = rt_malloc(sizeof(struct at91_mci)); + if (!mci) + { + rt_kprintf("alloc mci failed\n"); + goto err; + } + + rt_memset(mci, 0, sizeof(struct at91_mci)); + + host->ops = &ops; + host->freq_min = 375000; + host->freq_max = 25000000; + host->valid_ocr = VDD_32_33 | VDD_33_34; + host->flags = MMCSD_BUSWIDTH_4 | MMCSD_MUTBLKWRITE | \ + MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ; + host->max_seg_size = 65535; + host->max_dma_segs = 2; + host->max_blk_size = 512; + host->max_blk_count = 4096; + + mci->host = host; + + mci_gpio_init(); + AT91C_BASE_PMC->AT91C_PMC_PCER = 1 << AT91C_ID_MCI; //enable MCI clock + + at91_mci_disable(); + at91_mci_enable(); + + /* instal interrupt */ + rt_hw_interrupt_install(AT91SAM9260_ID_MCI, at91_mci_irq, + (void *)mci, "MMC"); + rt_hw_interrupt_umask(AT91SAM9260_ID_MCI); + rt_hw_interrupt_install(gpio_to_irq(AT91C_PIN_PA7), + at91_mci_detect, RT_NULL, "MMC_DETECT"); + rt_hw_interrupt_umask(gpio_to_irq(AT91C_PIN_PA7)); + + rt_timer_init(&mci->timer, "mci_timer", + at91_timeout_timer, + mci, + RT_TICK_PER_SECOND, + RT_TIMER_FLAG_PERIODIC); + + //rt_timer_start(&mci->timer); + + //rt_sem_init(&mci->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO); + + host->private_data = mci; + + mmcsd_change(host); + + return 0; + +err: + mmcsd_free_host(host); + + return -RT_ENOMEM; +} + +INIT_DEVICE_EXPORT(at91_mci_init); + +#include "finsh.h" +FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init); + +void mci_dump(void) +{ + rt_uint32_t i; + + rt_kprintf("PIOA_PSR=0x%08x\n", readl(AT91C_PIOA+PIO_PSR)); + rt_kprintf("PIOA_ABSR=0x%08x\n", readl(AT91C_PIOA+PIO_ABSR)); + rt_kprintf("PIOA_PUSR=0x%08x\n", readl(AT91C_PIOA+PIO_PUSR)); + + for (i = 0; i <= 0x4c; i += 4) { + rt_kprintf("0x%08x:0x%08x\n", AT91SAM9260_BASE_MCI+i, at91_mci_read(i)); + } +} + +FINSH_FUNCTION_EXPORT(mci_dump, dump register for mci); diff --git a/bsp/at91/at91sam9g45/drivers/at91_mci.h b/bsp/at91/at91sam9g45/drivers/at91_mci.h new file mode 100644 index 0000000000..3a4cc1705a --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/at91_mci.h @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-06-09 weety first version + */ + +#ifndef __AT91C_MCI_H__ +#define __AT91C_MCI_H__ + +#define AT91C_MCI_CR 0x00 /* Control Register */ +#define AT91C_MCI_MCIEN (1 << 0) /* Multi-Media Interface Enable */ +#define AT91C_MCI_MCIDIS (1 << 1) /* Multi-Media Interface Disable */ +#define AT91C_MCI_PWSEN (1 << 2) /* Power Save Mode Enable */ +#define AT91C_MCI_PWSDIS (1 << 3) /* Power Save Mode Disable */ +#define AT91C_MCI_SWRST (1 << 7) /* Software Reset */ + +#define AT91C_MCI_MR 0x04 /* Mode Register */ +#define AT91C_MCI_CLKDIV (0xff << 0) /* Clock Divider */ +#define AT91C_MCI_PWSDIV (7 << 8) /* Power Saving Divider */ +#define AT91C_MCI_RDPROOF (1 << 11) /* Read Proof Enable [SAM926[03] only] */ +#define AT91C_MCI_WRPROOF (1 << 12) /* Write Proof Enable [SAM926[03] only] */ +#define AT91C_MCI_PDCFBYTE (1 << 13) /* PDC Force Byte Transfer [SAM926[03] only] */ +#define AT91C_MCI_PDCPADV (1 << 14) /* PDC Padding Value */ +#define AT91C_MCI_PDCMODE (1 << 15) /* PDC-orientated Mode */ +#define AT91C_MCI_BLKLEN (0xfff << 18) /* Data Block Length */ + +#define AT91C_MCI_DTOR 0x08 /* Data Timeout Register */ +#define AT91C_MCI_DTOCYC (0xf << 0) /* Data Timeout Cycle Number */ +#define AT91C_MCI_DTOMUL (7 << 4) /* Data Timeout Multiplier */ +#define AT91C_MCI_DTOMUL_1 (0 << 4) +#define AT91C_MCI_DTOMUL_16 (1 << 4) +#define AT91C_MCI_DTOMUL_128 (2 << 4) +#define AT91C_MCI_DTOMUL_256 (3 << 4) +#define AT91C_MCI_DTOMUL_1K (4 << 4) +#define AT91C_MCI_DTOMUL_4K (5 << 4) +#define AT91C_MCI_DTOMUL_64K (6 << 4) +#define AT91C_MCI_DTOMUL_1M (7 << 4) + +#define AT91C_MCI_SDCR 0x0c /* SD Card Register */ +#define AT91C_MCI_SDCSEL (3 << 0) /* SD Card Selector */ +#define AT91C_MCI_SDCBUS (1 << 7) /* 1-bit or 4-bit bus */ + +#define AT91C_MCI_ARGR 0x10 /* Argument Register */ + +#define AT91C_MCI_CMDR 0x14 /* Command Register */ +#define AT91C_MCI_CMDNB (0x3f << 0) /* Command Number */ +#define AT91C_MCI_RSPTYP (3 << 6) /* Response Type */ +#define AT91C_MCI_RSPTYP_NONE (0 << 6) +#define AT91C_MCI_RSPTYP_48 (1 << 6) +#define AT91C_MCI_RSPTYP_136 (2 << 6) +#define AT91C_MCI_SPCMD (7 << 8) /* Special Command */ +#define AT91C_MCI_SPCMD_NONE (0 << 8) +#define AT91C_MCI_SPCMD_INIT (1 << 8) +#define AT91C_MCI_SPCMD_SYNC (2 << 8) +#define AT91C_MCI_SPCMD_ICMD (4 << 8) +#define AT91C_MCI_SPCMD_IRESP (5 << 8) +#define AT91C_MCI_OPDCMD (1 << 11) /* Open Drain Command */ +#define AT91C_MCI_MAXLAT (1 << 12) /* Max Latency for Command to Response */ +#define AT91C_MCI_TRCMD (3 << 16) /* Transfer Command */ +#define AT91C_MCI_TRCMD_NONE (0 << 16) +#define AT91C_MCI_TRCMD_START (1 << 16) +#define AT91C_MCI_TRCMD_STOP (2 << 16) +#define AT91C_MCI_TRDIR (1 << 18) /* Transfer Direction */ +#define AT91C_MCI_TRTYP (3 << 19) /* Transfer Type */ +#define AT91C_MCI_TRTYP_BLOCK (0 << 19) +#define AT91C_MCI_TRTYP_MULTIPLE (1 << 19) +#define AT91C_MCI_TRTYP_STREAM (2 << 19) + +#define AT91C_MCI_BLKR 0x18 /* Block Register */ +#define AT91C_MCI_BLKR_BCNT(n) ((0xffff & (n)) << 0) /* Block count */ +#define AT91C_MCI_BLKR_BLKLEN(n) ((0xffff & (n)) << 16) /* Block lenght */ + +#define AT91C_MCI_RSPR(n) (0x20 + ((n) * 4)) /* Response Registers 0-3 */ +#define AT91C_MCR_RDR 0x30 /* Receive Data Register */ +#define AT91C_MCR_TDR 0x34 /* Transmit Data Register */ + +#define AT91C_MCI_SR 0x40 /* Status Register */ +#define AT91C_MCI_CMDRDY (1U << 0) /* Command Ready */ +#define AT91C_MCI_RXRDY (1U << 1) /* Receiver Ready */ +#define AT91C_MCI_TXRDY (1U << 2) /* Transmit Ready */ +#define AT91C_MCI_BLKE (1U << 3) /* Data Block Ended */ +#define AT91C_MCI_DTIP (1U << 4) /* Data Transfer in Progress */ +#define AT91C_MCI_NOTBUSY (1U << 5) /* Data Not Busy */ +#define AT91C_MCI_ENDRX (1U << 6) /* End of RX Buffer */ +#define AT91C_MCI_ENDTX (1U << 7) /* End fo TX Buffer */ +#define AT91C_MCI_SDIOIRQA (1U << 8) /* SDIO Interrupt for Slot A */ +#define AT91C_MCI_SDIOIRQB (1U << 9) /* SDIO Interrupt for Slot B */ +#define AT91C_MCI_RXBUFF (1U << 14) /* RX Buffer Full */ +#define AT91C_MCI_TXBUFE (1U << 15) /* TX Buffer Empty */ +#define AT91C_MCI_RINDE (1U << 16) /* Response Index Error */ +#define AT91C_MCI_RDIRE (1U << 17) /* Response Direction Error */ +#define AT91C_MCI_RCRCE (1U << 18) /* Response CRC Error */ +#define AT91C_MCI_RENDE (1U << 19) /* Response End Bit Error */ +#define AT91C_MCI_RTOE (1U << 20) /* Reponse Time-out Error */ +#define AT91C_MCI_DCRCE (1U << 21) /* Data CRC Error */ +#define AT91C_MCI_DTOE (1U << 22) /* Data Time-out Error */ +#define AT91C_MCI_OVRE (1U << 30) /* Overrun */ +#define AT91C_MCI_UNRE (1U << 31) /* Underrun */ + +#define AT91C_MCI_IER 0x44 /* Interrupt Enable Register */ +#define AT91C_MCI_IDR 0x48 /* Interrupt Disable Register */ +#define AT91C_MCI_IMR 0x4c /* Interrupt Mask Register */ + +extern int at91_mci_init(void); + +#endif diff --git a/bsp/at91/at91sam9g45/drivers/board.c b/bsp/at91/at91sam9g45/drivers/board.c new file mode 100644 index 0000000000..4adf2d9689 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/board.c @@ -0,0 +1,235 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include + +#include "board.h" +#include + +/** + * @addtogroup at91sam9g45 + */ +/*@{*/ +#if defined(__CC_ARM) +extern int Image$$ER_ZI$$ZI$$Limit; +#define HEAP_BEGIN (&Image$$ER_ZI$$ZI$$Limit) +#elif (defined (__GNUC__)) +extern unsigned char __bss_end; +#define HEAP_BEGIN (&__bss_end) +#elif (defined (__ICCARM__)) +#pragma section=".noinit" +#define HEAP_BEGIN (__section_end(".noinit")) +#endif + +#define HEAP_END (((rt_uint32_t)HEAP_BEGIN & 0xF0000000) + 0x04000000) + +extern void rt_hw_interrupt_init(void); +extern void rt_hw_clock_init(void); + +extern void rt_hw_get_clock(void); +extern void rt_hw_set_dividor(rt_uint8_t hdivn, rt_uint8_t pdivn); +extern void rt_hw_set_clock(rt_uint8_t sdiv, rt_uint8_t pdiv, rt_uint8_t mdiv); +extern void rt_dbgu_isr(void); + +#define SAM9G45_BLOCK_SIZE 0x10000000 // 256M +#define MMU_SECTION_SIZE 0x100000 // 1M +#define PERIPHERALS_ADDR // 1M + +#define SECTION_END(sa) ((sa) + MMU_SECTION_SIZE - 1) // sa: start address +#define BLOCK_END(ba) ((ba) + SAM9G45_BLOCK_SIZE - 1) // ba: block address + +static struct mem_desc at91_mem_desc[] = { /* FIXME, hornby, to confirm MMU and memory */ + { 0x00000000, 0xFFFFFFFF , 0x00000000, RW_NCNB }, /* None cached for 4G memory */ + //{ 0x00000000, SECTION_END(0x00000000), 0x00000000, RW_CNB }, /* TLB for ITCM, ITCM map to address zero, 32KB */ + //{ 0x00200000, SECTION_END(0x00200000), 0x00200000, RW_CNB }, /* TLB for DTCM, 32KB */ + //{ 0x00300000, SECTION_END(0x00300000), 0x00300000, RW_CNB }, /* TLB for internal RAM, 64KB, we use it as global variable area */ + //{ 0x00600000, SECTION_END(0x00600000), 0x00600000, RW_NCNB }, /* TLB for UDPHS(DMA) */ + //{ 0x00700000, SECTION_END(0x00700000), 0x00700000, RW_NCNB }, /* TLB for UHP OHCI */ + //{ 0x00800000, SECTION_END(0x00800000), 0x00800000, RW_NCNB }, /* TLB for UHP EHCI */ + //{ 0x30000000, 0x30000000+0x00100000-1, 0x30000000, RW_CB }, /* 1M external SRAM for program code and stack */ + //{ 0x40000000, BLOCK_END(0x40000000), 0x40000000, RW_NCNB }, /* 256M for nand-flash controller */ + //{ 0x60000000, BLOCK_END(0x60000000), 0x60000000, RW_NCNB }, /* 256M for FPGA */ + //{ 0x70000000, 0x70000000+0x08000000-1, 0x70000000, RW_NCNB }, /* 128M for main DDR-SDRAM for print data */ + { 0x00000000, SECTION_END(0x00000000), 0x70000000, RW_CB }, /* isr */ + { 0x70000000, 0x70000000+0x08000000-1, 0x70000000, RW_CB }, /* 128M for main DDR-SDRAM for print data */ + //{ 0xFFF00000, SECTION_END(0xFFF00000), 0xFFF00000, RW_NCNB }, /* Internal Peripherals, 1MB */ +}; + + +#define PIT_CPIV(x) ((x) & AT91C_PITC_CPIV) +#define PIT_PICNT(x) (((x) & AT91C_PITC_PICNT) >> 20) + +static rt_uint32_t pit_cycle; /* write-once */ +static rt_uint32_t pit_cnt; /* access only w/system irq blocked */ + +/** + * This function will handle rtos timer + */ +void rt_timer_handler(int vector, void *param) +{ +#ifdef RT_USING_DBGU + if (readl(AT91C_DBGU_CSR) & AT91C_US_RXRDY) + { + rt_dbgu_isr(); + } +#endif + if (readl(AT91C_PITC_PISR) & AT91C_PITC_PITS) + { + unsigned nr_ticks; + + /* Get number of ticks performed before irq, and ack it */ + nr_ticks = PIT_PICNT(readl(AT91C_PITC_PIVR)); + while (nr_ticks--) + rt_tick_increase(); + } +} + +static void at91sam9g45_pit_reset(void) +{ + /* Disable timer and irqs */ + AT91C_BASE_PITC->PITC_PIMR = 0; + + /* Clear any pending interrupts, wait for PIT to stop counting */ + while (PIT_CPIV(readl(AT91C_PITC_PIVR)) != 0) + ; + + /* Start PIT but don't enable IRQ */ + //AT91C_BASE_PITC->PITC_PIMR = (pit_cycle - 1) | AT91C_PITC_PITEN; + pit_cnt += pit_cycle * PIT_PICNT(readl(AT91C_PITC_PIVR)); + AT91C_BASE_PITC->PITC_PIMR = + (pit_cycle - 1) | AT91C_PITC_PITEN | AT91C_PITC_PITIEN; + rt_kprintf("PIT_MR=0x%08x\n", readl(AT91C_PITC_PIMR)); +} + +/* + * Set up both clocksource and clockevent support. + */ +static void at91sam9g45_pit_init(void) +{ + rt_uint32_t pit_rate; + //rt_uint32_t bits; + + /* + * Use our actual MCK to figure out how many MCK/16 ticks per + * 1/HZ period (instead of a compile-time constant LATCH). + */ + pit_rate = clk_get_rate(clk_get("mck")) / 16; + rt_kprintf("pit_rate=%dHZ\n", pit_rate); + pit_cycle = (pit_rate + RT_TICK_PER_SECOND/2) / RT_TICK_PER_SECOND; + + /* Initialize and enable the timer */ + at91sam9g45_pit_reset(); +} + +/** + * This function will init pit for system ticks + */ +void rt_hw_timer_init() +{ + at91sam9g45_pit_init(); + + /* install interrupt handler */ + rt_hw_interrupt_install(AT91C_ID_SYS, rt_timer_handler, + RT_NULL, "system"); + rt_hw_interrupt_umask(AT91C_ID_SYS); +} + +void at91_tc1_init() +{ + AT91C_BASE_PMC->PMC_PCER = 1<DBGU_CSR & AT91C_US_TXRDY)) + ; + AT91C_BASE_DBGU->DBGU_THR = c; +} + +/** + * This function is used to display a string on console, normally, it's + * invoked by rt_kprintf + * + * @param str the displayed string + */ +void rt_hw_console_output(const char* str) +{ + while (*str) + { + if (*str=='\n') + { + at91_usart_putc('\r'); + } + + at91_usart_putc(*str++); + } +} + +static void rt_hw_console_init(void) +{ + int div; + int mode = 0; + + AT91C_BASE_DBGU->DBGU_CR = AT91C_US_RSTTX | AT91C_US_RSTRX | + AT91C_US_RXDIS | AT91C_US_TXDIS; + mode |= AT91C_US_USMODE_NORMAL | AT91C_US_CLKS_CLOCK | + AT91C_US_CHMODE_NORMAL; + mode |= AT91C_US_CHRL_8_BITS; + mode |= AT91C_US_NBSTOP_1_BIT; + mode |= AT91C_US_PAR_NONE; + AT91C_BASE_DBGU->DBGU_MR = mode; + div = (clk_get_rate(clk_get("mck")) / 16 + BPS/2) / BPS; + AT91C_BASE_DBGU->DBGU_BRGR = div; + AT91C_BASE_DBGU->DBGU_CR = AT91C_US_RXEN | AT91C_US_TXEN; +} + + +/** + * This function will init at91sam9g45 board + */ +void rt_hw_board_init() +{ + /* initialize the system clock */ + rt_hw_clock_init(); + + /* initialize console */ + rt_hw_console_init(); + + /* initialize mmu */ + rt_hw_mmu_init(at91_mem_desc, sizeof(at91_mem_desc)/sizeof(at91_mem_desc[0])); + + /* initialize hardware interrupt */ + rt_hw_interrupt_init(); + + /* initialize early device */ +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif + +#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + /* initialize timer0 */ + rt_hw_timer_init(); + +/* initialize board */ +#ifdef RT_USING_HEAP + rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END); +#endif +} + +/*@}*/ diff --git a/bsp/at91/at91sam9g45/drivers/board.h b/bsp/at91/at91sam9g45/drivers/board.h new file mode 100644 index 0000000000..1c3147b8f5 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/board.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety add board.h to this bsp + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +#include + +void rt_hw_board_init(void); + +#endif diff --git a/bsp/at91/at91sam9g45/drivers/led.c b/bsp/at91/at91sam9g45/drivers/led.c new file mode 100644 index 0000000000..d4b377e629 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/led.c @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include +#include "led.h" + +// BYHX A-Plus Board +#define LED0 (1UL << 30) +#define LED1 (1UL << 31) +#define LED2 (1UL << 29) +#define LED3 (1UL << 28) +#define LED_ALL (LED0 | LED1 | LED2 | LED3) + +void led_init(void) +{ + AT91C_BASE_PIOC->PIO_PER = LED_ALL; + AT91C_BASE_PIOC->PIO_OER = LED_ALL; + AT91C_BASE_PIOC->PIO_PPUER = LED_ALL; + AT91C_BASE_PIOC->PIO_SODR = LED_ALL; +} + +const static rt_uint32_t m_leds[] = { LED0, LED1, LED2, LED3 }; + +void led_on(int num) +{ + if (num < 4) AT91C_BASE_PIOC->PIO_CODR = m_leds[num]; +} + +void led_off(int num) +{ + if (num < 4) AT91C_BASE_PIOC->PIO_SODR = m_leds[num]; +} diff --git a/bsp/at91/at91sam9g45/drivers/led.h b/bsp/at91/at91sam9g45/drivers/led.h new file mode 100644 index 0000000000..9836eff709 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/led.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __LED_H__ +#define __LED_H__ + +void led_init(void); +void led_on(int num); +void led_off(int num); + +#endif diff --git a/bsp/at91/at91sam9g45/drivers/macb.c b/bsp/at91/at91sam9g45/drivers/macb.c new file mode 100644 index 0000000000..8a300725c3 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/macb.c @@ -0,0 +1,897 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-18 weety first version + */ + +#include +#include +#include "lwipopts.h" +#include +#include "macb.h" + +#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) + +extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); +extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); + +/* Cache macros - Packet buffers would be from pbuf pool which is cached */ +#define EMAC_VIRT_NOCACHE(addr) (addr) +#define EMAC_CACHE_INVALIDATE(addr, size) \ + mmu_invalidate_dcache((rt_uint32_t)addr, size) +#define EMAC_CACHE_WRITEBACK(addr, size) \ + mmu_clean_dcache((rt_uint32_t)addr, size) +#define EMAC_CACHE_WRITEBACK_INVALIDATE(addr, size) \ + mmu_clean_invalidated_dcache((rt_uint32_t)addr, size) + +/* EMAC has BD's in cached memory - so need cache functions */ +#define BD_CACHE_INVALIDATE(addr, size) +#define BD_CACHE_WRITEBACK(addr, size) +#define BD_CACHE_WRITEBACK_INVALIDATE(addr, size) + +/* EMAC internal utility function */ +rt_inline unsigned long emac_virt_to_phys(unsigned long addr) +{ + return addr; +} + + +#define AT91SAM9260_SRAM0_VIRT_BASE (0x90000000) + +#define MACB_TX_SRAM + +#if defined(MACB_TX_SRAM) +#define MACB_TX_RING_SIZE 2 +#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) +#define TX_RING_BYTES (sizeof(struct macb_dma_desc) * MACB_TX_RING_SIZE) +#else +#define MACB_TX_RING_SIZE 16 +#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) +#endif + +#define MACB_RX_BUFFER_SIZE (4096*4) +#define MACB_RX_RING_SIZE (MACB_RX_BUFFER_SIZE / 128) + +#define DEF_TX_RING_PENDING (MACB_TX_RING_SIZE) + +#define TX_RING_GAP(macb) \ + (MACB_TX_RING_SIZE - (macb)->tx_pending) + +#define TX_BUFFS_AVAIL(macb) \ + (((macb)->tx_tail <= (macb)->tx_head) ? \ + (macb)->tx_tail + (macb)->tx_pending - (macb)->tx_head : \ + (macb)->tx_tail - (macb)->tx_head - TX_RING_GAP(macb)) + +#define NEXT_TX(n) (((n) + 1) & (MACB_TX_RING_SIZE - 1)) + +#define NEXT_RX(n) (((n) + 1) & (MACB_RX_RING_SIZE - 1)) + +/* minimum number of free TX descriptors before waking up TX process */ +#define MACB_TX_WAKEUP_THRESH (MACB_TX_RING_SIZE / 4) + +#define MACB_RX_INT_FLAGS (MACB_BIT(RCOMP) | MACB_BIT(RXUBR) \ + | MACB_BIT(ISR_ROVR)) + +#define MACB_TX_TIMEOUT 1000 +#define MACB_AUTONEG_TIMEOUT 5000000 +#define MACB_LINK_TIMEOUT 500000 + +#define CONFIG_RMII + +struct macb_dma_desc { + rt_uint32_t addr; + rt_uint32_t ctrl; +}; + +#define RXADDR_USED 0x00000001 +#define RXADDR_WRAP 0x00000002 + +#define RXBUF_FRMLEN_MASK 0x00000fff +#define RXBUF_FRAME_START 0x00004000 +#define RXBUF_FRAME_END 0x00008000 +#define RXBUF_TYPEID_MATCH 0x00400000 +#define RXBUF_ADDR4_MATCH 0x00800000 +#define RXBUF_ADDR3_MATCH 0x01000000 +#define RXBUF_ADDR2_MATCH 0x02000000 +#define RXBUF_ADDR1_MATCH 0x04000000 +#define RXBUF_BROADCAST 0x80000000 + +#define TXBUF_FRMLEN_MASK 0x000007ff +#define TXBUF_FRAME_END 0x00008000 +#define TXBUF_NOCRC 0x00010000 +#define TXBUF_EXHAUSTED 0x08000000 +#define TXBUF_UNDERRUN 0x10000000 +#define TXBUF_MAXRETRY 0x20000000 +#define TXBUF_WRAP 0x40000000 +#define TXBUF_USED 0x80000000 + +/* Duplex, half or full. */ +#define DUPLEX_HALF 0x00 +#define DUPLEX_FULL 0x01 + +#define MAX_ADDR_LEN 6 +struct rt_macb_eth +{ + /* inherit from ethernet device */ + struct eth_device parent; + + unsigned int regs; + + unsigned int rx_tail; + unsigned int tx_head; + unsigned int tx_tail; + unsigned int rx_pending; + unsigned int tx_pending; + + void *rx_buffer; + void *tx_buffer; + struct macb_dma_desc *rx_ring; + struct macb_dma_desc *tx_ring; + + unsigned long rx_buffer_dma; + unsigned long tx_buffer_dma; + unsigned long rx_ring_dma; + unsigned long tx_ring_dma; + + unsigned int tx_stop; + + /* interface address info. */ + rt_uint8_t dev_addr[MAX_ADDR_LEN]; /* hw address */ + unsigned short phy_addr; + + struct rt_semaphore mdio_bus_lock; + struct rt_semaphore tx_lock; + struct rt_semaphore rx_lock; + struct rt_semaphore tx_ack; + rt_uint32_t speed; + rt_uint32_t duplex; + rt_uint32_t link; + struct rt_timer timer; +}; +static struct rt_macb_eth macb_device; + +static void macb_tx(struct rt_macb_eth *macb); + +static void udelay(rt_uint32_t us) +{ + rt_uint32_t len; + for (;us > 0; us --) + for (len = 0; len < 10; len++ ); +} + +static void rt_macb_isr(int irq, void *param) +{ + struct rt_macb_eth *macb = (struct rt_macb_eth *)param; + rt_device_t dev = &(macb->parent.parent); + rt_uint32_t status, rsr, tsr; + + status = macb_readl(macb, ISR); + + while (status) { + + if (status & MACB_RX_INT_FLAGS) + { + rsr = macb_readl(macb, RSR); + macb_writel(macb, RSR, rsr); + /* a frame has been received */ + eth_device_ready(&(macb_device.parent)); + + } + + if (status & (MACB_BIT(TCOMP) | MACB_BIT(ISR_TUND) | + MACB_BIT(ISR_RLE))) + { + macb_tx(macb); + } + + /* + * Link change detection isn't possible with RMII, so we'll + * add that if/when we get our hands on a full-blown MII PHY. + */ + + if (status & MACB_BIT(HRESP)) + { + /* + * TODO: Reset the hardware, and maybe move the printk + * to a lower-priority context as well (work queue?) + */ + rt_kprintf("%s: DMA bus error: HRESP not OK\n", + dev->parent.name); + } + + status = macb_readl(macb, ISR); + } + + +} + +static int macb_mdio_write(struct rt_macb_eth *macb, rt_uint8_t reg, rt_uint16_t value) +{ + unsigned long netctl; + unsigned long netstat; + unsigned long frame; + + rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); + netctl = macb_readl(macb, NCR); + netctl |= MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + + frame = (MACB_BF(SOF, 1) + | MACB_BF(RW, 1) + | MACB_BF(PHYA, macb->phy_addr) + | MACB_BF(REGA, reg) + | MACB_BF(CODE, 2) + | MACB_BF(DATA, value)); + macb_writel(macb, MAN, frame); + + do { + netstat = macb_readl(macb, NSR); + } while (!(netstat & MACB_BIT(IDLE))); + + netctl = macb_readl(macb, NCR); + netctl &= ~MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + rt_sem_release(&macb->mdio_bus_lock); +} + +static int macb_mdio_read(struct rt_macb_eth *macb, rt_uint8_t reg) +{ + unsigned long netctl; + unsigned long netstat; + unsigned long frame; + + rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); + netctl = macb_readl(macb, NCR); + netctl |= MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + + frame = (MACB_BF(SOF, 1) + | MACB_BF(RW, 2) + | MACB_BF(PHYA, macb->phy_addr) + | MACB_BF(REGA, reg) + | MACB_BF(CODE, 2)); + macb_writel(macb, MAN, frame); + + do { + netstat = macb_readl(macb, NSR); + } while (!(netstat & MACB_BIT(IDLE))); + + frame = macb_readl(macb, MAN); + + netctl = macb_readl(macb, NCR); + netctl &= ~MACB_BIT(MPE); + macb_writel(macb, NCR, netctl); + rt_sem_release(&macb->mdio_bus_lock); + + return MACB_BFEXT(DATA, frame); +} + +static void macb_phy_reset(rt_device_t dev) +{ + int i; + rt_uint16_t status, adv; + struct rt_macb_eth *macb = dev->user_data;; + + adv = ADVERTISE_CSMA | ADVERTISE_ALL; + macb_mdio_write(macb, MII_ADVERTISE, adv); + rt_kprintf("%s: Starting autonegotiation...\n", dev->parent.name); + macb_mdio_write(macb, MII_BMCR, (BMCR_ANENABLE + | BMCR_ANRESTART)); + + for (i = 0; i < MACB_AUTONEG_TIMEOUT / 100; i++) + { + status = macb_mdio_read(macb, MII_BMSR); + if (status & BMSR_ANEGCOMPLETE) + break; + udelay(100); + } + + if (status & BMSR_ANEGCOMPLETE) + rt_kprintf("%s: Autonegotiation complete\n", dev->parent.name); + else + rt_kprintf("%s: Autonegotiation timed out (status=0x%04x)\n", + dev->parent.name, status); +} + + +static int macb_phy_init(rt_device_t dev) +{ + struct rt_macb_eth *macb = dev->user_data; + rt_uint32_t ncfgr; + rt_uint16_t phy_id, status, adv, lpa; + int media, speed, duplex; + int i; + + /* Check if the PHY is up to snuff... */ + phy_id = macb_mdio_read(macb, MII_PHYSID1); + if (phy_id == 0xffff) + { + rt_kprintf("%s: No PHY present\n", dev->parent.name); + return 0; + } + + status = macb_mdio_read(macb, MII_BMSR); + if (!(status & BMSR_LSTATUS)) + { + /* Try to re-negotiate if we don't have link already. */ + macb_phy_reset(dev); + + for (i = 0; i < MACB_LINK_TIMEOUT / 100; i++) + { + status = macb_mdio_read(macb, MII_BMSR); + if (status & BMSR_LSTATUS) + break; + udelay(100); + } + } + + if (!(status & BMSR_LSTATUS)) + { + rt_kprintf("%s: link down (status: 0x%04x)\n", + dev->parent.name, status); + return 0; + } + else + { + adv = macb_mdio_read(macb, MII_ADVERTISE); + lpa = macb_mdio_read(macb, MII_LPA); + media = mii_nway_result(lpa & adv); + speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) + ? 1 : 0); + duplex = (media & ADVERTISE_FULL) ? 1 : 0; + rt_kprintf("%s: link up, %sMbps %s-duplex (lpa: 0x%04x)\n", + dev->parent.name, + speed ? "100" : "10", + duplex ? "full" : "half", + lpa); + + ncfgr = macb_readl(macb, NCFGR); + ncfgr &= ~(MACB_BIT(SPD) | MACB_BIT(FD)); + if (speed) + ncfgr |= MACB_BIT(SPD); + if (duplex) + ncfgr |= MACB_BIT(FD); + macb_writel(macb, NCFGR, ncfgr); + return 1; + } +} + +void macb_update_link(void *param) +{ + struct rt_macb_eth *macb = (struct rt_macb_eth *)param; + rt_device_t dev = &macb->parent.parent; + int status, status_change = 0; + rt_uint32_t link; + rt_uint32_t media; + rt_uint16_t adv, lpa; + + /* Do a fake read */ + status = macb_mdio_read(macb, MII_BMSR); + if (status < 0) + return; + + /* Read link and autonegotiation status */ + status = macb_mdio_read(macb, MII_BMSR); + if (status < 0) + return; + + if ((status & BMSR_LSTATUS) == 0) + link = 0; + else + link = 1; + + if (link != macb->link) + { + macb->link = link; + status_change = 1; + } + + if (status_change) + { + if (macb->link) + { + adv = macb_mdio_read(macb, MII_ADVERTISE); + lpa = macb_mdio_read(macb, MII_LPA); + media = mii_nway_result(lpa & adv); + macb->speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) + ? 100 : 10); + macb->duplex = (media & ADVERTISE_FULL) ? 1 : 0; + rt_kprintf("%s: link up (%dMbps/%s-duplex)\n", + dev->parent.name, macb->speed, + DUPLEX_FULL == macb->duplex ? "Full":"Half"); + eth_device_linkchange(&macb->parent, RT_TRUE); + } + else + { + rt_kprintf("%s: link down\n", dev->parent.name); + eth_device_linkchange(&macb->parent, RT_FALSE); + } + + } + +} + +/* RT-Thread Device Interface */ +/* initialize the interface */ + +static rt_err_t rt_macb_init(rt_device_t dev) +{ + struct rt_macb_eth *macb = dev->user_data; + unsigned long paddr; + rt_uint32_t hwaddr_bottom; + rt_uint16_t hwaddr_top; + int i; + + /* + * macb_halt should have been called at some point before now, + * so we'll assume the controller is idle. + */ + + /* initialize DMA descriptors */ + paddr = macb->rx_buffer_dma; + for (i = 0; i < MACB_RX_RING_SIZE; i++) + { + if (i == (MACB_RX_RING_SIZE - 1)) + paddr |= RXADDR_WRAP; + macb->rx_ring[i].addr = paddr; + macb->rx_ring[i].ctrl = 0; + paddr += 128; + } + paddr = macb->tx_buffer_dma; + for (i = 0; i < MACB_TX_RING_SIZE; i++) + { + macb->tx_ring[i].addr = paddr; + if (i == (MACB_TX_RING_SIZE - 1)) + macb->tx_ring[i].ctrl = TXBUF_USED | TXBUF_WRAP; + else + macb->tx_ring[i].ctrl = TXBUF_USED; + paddr += 1536; + } + macb->rx_tail = macb->tx_head = macb->tx_tail = 0; + + BD_CACHE_WRITEBACK_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + BD_CACHE_WRITEBACK_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); + macb_writel(macb, RBQP, macb->rx_ring_dma); + macb_writel(macb, TBQP, macb->tx_ring_dma); + + /* set hardware address */ + hwaddr_bottom = (*((rt_uint32_t *)macb->dev_addr)); + macb_writel(macb, SA1B, hwaddr_bottom); + hwaddr_top = (*((rt_uint16_t *)(macb->dev_addr + 4))); + macb_writel(macb, SA1T, hwaddr_top); + + + /* choose RMII or MII mode. This depends on the board */ +#ifdef CONFIG_RMII + macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN)); +#else + macb_writel(macb, USRIO, MACB_BIT(CLKEN)); +#endif /* CONFIG_RMII */ + + if (!macb_phy_init(dev)) + return -RT_ERROR; + + /* Enable TX and RX */ + macb_writel(macb, NCR, MACB_BIT(TE) | MACB_BIT(RE) | MACB_BIT(MPE)); + + /* Enable interrupts */ + macb_writel(macb, IER, (MACB_BIT(RCOMP) + | MACB_BIT(RXUBR) + | MACB_BIT(ISR_TUND) + | MACB_BIT(ISR_RLE) + | MACB_BIT(TXERR) + | MACB_BIT(TCOMP) + | MACB_BIT(ISR_ROVR) + | MACB_BIT(HRESP))); + + /* instal interrupt */ + rt_hw_interrupt_install(AT91SAM9260_ID_EMAC, rt_macb_isr, + (void *)macb, "emac"); + rt_hw_interrupt_umask(AT91SAM9260_ID_EMAC); + + rt_timer_init(&macb->timer, "link_timer", + macb_update_link, + (void *)macb, + RT_TICK_PER_SECOND, + RT_TIMER_FLAG_PERIODIC); + + rt_timer_start(&macb->timer); + + return RT_EOK; +} + +static rt_err_t rt_macb_open(rt_device_t dev, rt_uint16_t oflag) +{ + return RT_EOK; +} + +static rt_err_t rt_macb_close(rt_device_t dev) +{ + return RT_EOK; +} + +static rt_size_t rt_macb_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_size_t rt_macb_write (rt_device_t dev, rt_off_t pos, const void* buffer, rt_size_t size) +{ + rt_set_errno(-RT_ENOSYS); + return 0; +} + +static rt_err_t rt_macb_control(rt_device_t dev, int cmd, void *args) +{ + switch(cmd) + { + case NIOCTL_GADDR: + /* get mac address */ + if(args) rt_memcpy(args, macb_device.dev_addr, 6); + else return -RT_ERROR; + break; + + default : + break; + } + + return RT_EOK; +} + +static void macb_tx(struct rt_macb_eth *macb) +{ + unsigned int tail; + unsigned int head; + rt_uint32_t status; + + status = macb_readl(macb, TSR); + macb_writel(macb, TSR, status); + + /*rt_kprintf("macb_tx status = %02lx\n", + (unsigned long)status);*/ + + if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) + { + int i; + rt_kprintf("%s: TX %s, resetting buffers\n", + macb->parent.parent.parent.name, status & MACB_BIT(UND) ? + "underrun" : "retry limit exceeded"); + + /* Transfer ongoing, disable transmitter, to avoid confusion */ + if (status & MACB_BIT(TGO)) + macb_writel(macb, NCR, macb_readl(macb, NCR) & ~MACB_BIT(TE)); + + head = macb->tx_head; + + /*Mark all the buffer as used to avoid sending a lost buffer*/ + for (i = 0; i < MACB_TX_RING_SIZE; i++) + macb->tx_ring[i].ctrl = MACB_BIT(TX_USED); + + /* free transmit buffer in upper layer*/ + + macb->tx_head = macb->tx_tail = 0; + + /* Enable the transmitter again */ + if (status & MACB_BIT(TGO)) + macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TE)); + } + + if (!(status & MACB_BIT(COMP))) + /* + * This may happen when a buffer becomes complete + * between reading the ISR and scanning the + * descriptors. Nothing to worry about. + */ + return; + + head = macb->tx_head; + for (tail = macb->tx_tail; tail != head; tail = NEXT_TX(tail)) + { + rt_uint32_t bufstat; + + bufstat = macb->tx_ring[tail].ctrl; + + if (!(bufstat & MACB_BIT(TX_USED))) + break; + } + + macb->tx_tail = tail; + if ((macb->tx_stop == 1) && + TX_BUFFS_AVAIL(macb) > MACB_TX_WAKEUP_THRESH) + rt_sem_release(&macb->tx_ack); +} + + +/* ethernet device interface */ +/* transmit packet. */ +rt_err_t rt_macb_tx( rt_device_t dev, struct pbuf* p) +{ + unsigned long ctrl; + struct pbuf* q; + rt_uint8_t* bufptr; + rt_uint32_t mapping; + struct rt_macb_eth *macb = dev->user_data; + unsigned int tx_head = macb->tx_head; + + rt_sem_take(&macb->tx_lock, RT_WAITING_FOREVER); + if (TX_BUFFS_AVAIL(macb) < 1) + { + rt_sem_release(&macb->tx_lock); + rt_kprintf("Tx Ring full!\n"); + rt_kprintf("tx_head = %u, tx_tail = %u\n", + macb->tx_head, macb->tx_tail); + return -RT_ERROR; + } + + macb->tx_stop = 0; + + ctrl = p->tot_len & TXBUF_FRMLEN_MASK; + ctrl |= TXBUF_FRAME_END; + if (tx_head == (MACB_TX_RING_SIZE - 1)) + { + ctrl |= TXBUF_WRAP; + } +#if defined(MACB_TX_SRAM) + bufptr = macb->tx_buffer + tx_head * 1536; +#else + mapping = (unsigned long)macb->tx_buffer + tx_head * 1536; + bufptr = (rt_uint8_t *)mapping; +#endif + + for (q = p; q != NULL; q = q->next) + { + memcpy(bufptr, q->payload, q->len); + bufptr += q->len; + } +#if !defined(MACB_TX_SRAM) + EMAC_CACHE_WRITEBACK(mapping, p->tot_len); +#endif + macb->tx_ring[tx_head].ctrl = ctrl; + BD_CACHE_WRITEBACK_INVALIDATE(&macb->tx_ring[tx_head], sizeof(struct macb_dma_desc)); + tx_head = NEXT_TX(tx_head); + macb->tx_head = tx_head; + macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); + macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); + + if (TX_BUFFS_AVAIL(macb) < 1) + { + macb->tx_stop = 1; + rt_sem_take(&macb->tx_ack, RT_WAITING_FOREVER); + } + rt_sem_release(&macb->tx_lock); + + return RT_EOK; +} + +static void reclaim_rx_buffers(struct rt_macb_eth *macb, + unsigned int new_tail) +{ + unsigned int i; + + i = macb->rx_tail; + while (i > new_tail) + { + macb->rx_ring[i].addr &= ~RXADDR_USED; + i++; + if (i > MACB_RX_RING_SIZE) + i = 0; + } + + while (i < new_tail) + { + macb->rx_ring[i].addr &= ~RXADDR_USED; + i++; + } + + macb->rx_tail = new_tail; +} + +/* reception packet. */ +struct pbuf *rt_macb_rx(rt_device_t dev) +{ + struct rt_macb_eth *macb = dev->user_data; + struct pbuf* p = RT_NULL; + rt_uint32_t len; + unsigned int rx_tail = macb->rx_tail; + void *buffer; + int wrapped = 0; + rt_uint32_t status; + + rt_sem_take(&macb->rx_lock, RT_WAITING_FOREVER); + for (;;) + { + if (!(macb->rx_ring[rx_tail].addr & RXADDR_USED)) + break; + + status = macb->rx_ring[rx_tail].ctrl; + if (status & RXBUF_FRAME_START) + { + if (rx_tail != macb->rx_tail) + reclaim_rx_buffers(macb, rx_tail); + wrapped = 0; + } + + if (status & RXBUF_FRAME_END) + { + buffer = (void *)((unsigned int)macb->rx_buffer + 128 * macb->rx_tail); + len = status & RXBUF_FRMLEN_MASK; + p = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); + if (!p) + { + rt_kprintf("alloc pbuf failed\n"); + break; + } + if (wrapped) + { + unsigned int headlen, taillen; + + headlen = 128 * (MACB_RX_RING_SIZE + - macb->rx_tail); + taillen = len - headlen; + EMAC_CACHE_INVALIDATE(buffer, headlen); + EMAC_CACHE_INVALIDATE(macb->rx_buffer, taillen); + memcpy((void *)p->payload, buffer, headlen); + memcpy((void *)((unsigned int)p->payload + headlen), + macb->rx_buffer, taillen); + } + else + { + EMAC_CACHE_INVALIDATE(buffer, len); + memcpy((void *)p->payload, buffer, p->len); + } + + if (++rx_tail >= MACB_RX_RING_SIZE) + rx_tail = 0; + reclaim_rx_buffers(macb, rx_tail); + break; + } + else + { + if (++rx_tail >= MACB_RX_RING_SIZE) + { + wrapped = 1; + rx_tail = 0; + } + } + } + + rt_sem_release(&macb->rx_lock); + + return p; +} + +void macb_gpio_init() +{ + /* Pins used for MII and RMII */ + AT91C_BASE_PIOA->PIO_PDR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20); + AT91C_BASE_PIOA->PIO_ASR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20); + +#ifndef GONFIG_RMII + AT91C_BASE_PIOA->PIO_PDR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29); + AT91C_BASE_PIOA->PIO_ASR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29); +#endif +} + +rt_err_t macb_initialize() +{ + struct rt_macb_eth *macb = &macb_device; + unsigned long macb_hz; + rt_uint32_t ncfgr; + +#if defined(MACB_TX_SRAM) + macb->tx_ring_dma = AT91SAM9260_SRAM0_BASE; + macb->tx_ring = (struct macb_dma_desc *)AT91SAM9260_SRAM0_VIRT_BASE; + macb->tx_buffer = (char *) macb->tx_ring + TX_RING_BYTES; + macb->tx_buffer_dma = macb->tx_ring_dma + TX_RING_BYTES; +#else + macb->tx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + if (macb->tx_ring == RT_NULL) + goto err1; + EMAC_CACHE_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); + macb->tx_ring_dma = emac_virt_to_phys((unsigned long)macb->tx_ring); + macb->tx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->tx_ring); + macb->tx_buffer = rt_malloc(MACB_TX_BUFFER_SIZE); + if (macb->tx_buffer == RT_NULL) + goto err2; + macb->tx_buffer_dma = emac_virt_to_phys((unsigned long)macb->tx_buffer); +#endif + + macb->rx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + if (macb->rx_ring == RT_NULL) + goto err3; + EMAC_CACHE_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); + macb->rx_ring_dma = emac_virt_to_phys((unsigned long)macb->rx_ring); + macb->rx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->rx_ring); + macb->rx_buffer = rt_malloc(MACB_RX_BUFFER_SIZE); + if (macb->rx_buffer == RT_NULL) + goto err4; + macb->rx_buffer_dma = emac_virt_to_phys((unsigned long)macb->rx_buffer); + + macb->tx_pending = DEF_TX_RING_PENDING; + + macb->regs = AT91SAM9260_BASE_EMAC; + macb->phy_addr = 0x00; + + /* + * Do some basic initialization so that we at least can talk + * to the PHY + */ + macb_hz = clk_get_rate(clk_get("mck")); + if (macb_hz < 20000000) + ncfgr = MACB_BF(CLK, MACB_CLK_DIV8); + else if (macb_hz < 40000000) + ncfgr = MACB_BF(CLK, MACB_CLK_DIV16); + else if (macb_hz < 80000000) + ncfgr = MACB_BF(CLK, MACB_CLK_DIV32); + else + ncfgr = MACB_BF(CLK, MACB_CLK_DIV64); + + macb_writel(macb, NCFGR, ncfgr); + + macb->link = 0; + + return RT_EOK; + +err4: + rt_free(macb->rx_ring); + macb->rx_ring = RT_NULL; +err3: +#if !defined(MACB_TX_SRAM) + rt_free(macb->tx_buffer); + macb->tx_buffer = RT_NULL; +err2: + rt_free(macb->tx_ring); + macb->tx_ring = RT_NULL; +err1: +#endif + return -RT_ENOMEM; +} + +int rt_hw_macb_init(void) +{ + rt_err_t ret; + AT91C_BASE_PMC->PMC_PCER = 1 << AT91C_ID_EMAC; //enable macb clock + macb_gpio_init(); + rt_memset(&macb_device, 0, sizeof(macb_device)); + ret = macb_initialize(); + if (ret != RT_EOK) + { + rt_kprintf("AT91 EMAC initialized failed\n"); + return -1; + } + rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO); + rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO); + rt_sem_init(&macb_device.rx_lock, "rx_lock", 1, RT_IPC_FLAG_FIFO); + + macb_device.dev_addr[0] = 0x00; + macb_device.dev_addr[1] = 0x60; + macb_device.dev_addr[2] = 0x6E; + macb_device.dev_addr[3] = 0x11; + macb_device.dev_addr[4] = 0x22; + macb_device.dev_addr[5] = 0x33; + + macb_device.parent.parent.init = rt_macb_init; + macb_device.parent.parent.open = rt_macb_open; + macb_device.parent.parent.close = rt_macb_close; + macb_device.parent.parent.read = rt_macb_read; + macb_device.parent.parent.write = rt_macb_write; + macb_device.parent.parent.control = rt_macb_control; + macb_device.parent.parent.user_data = &macb_device; + + macb_device.parent.eth_rx = rt_macb_rx; + macb_device.parent.eth_tx = rt_macb_tx; + + rt_sem_init(&macb_device.mdio_bus_lock, "mdio_bus_lock", 1, RT_IPC_FLAG_FIFO); + + eth_device_init(&(macb_device.parent), "e0"); + + return 0; +} + +INIT_DEVICE_EXPORT(rt_hw_macb_init); + diff --git a/bsp/at91/at91sam9g45/drivers/macb.h b/bsp/at91/at91sam9g45/drivers/macb.h new file mode 100644 index 0000000000..ed2ad390b7 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/macb.h @@ -0,0 +1,332 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-18 weety first version + */ +#ifndef _MACB_H +#define _MACB_H +#include + +/* MACB register offsets */ +#define MACB_NCR 0x0000 +#define MACB_NCFGR 0x0004 +#define MACB_NSR 0x0008 +#define MACB_TSR 0x0014 +#define MACB_RBQP 0x0018 +#define MACB_TBQP 0x001c +#define MACB_RSR 0x0020 +#define MACB_ISR 0x0024 +#define MACB_IER 0x0028 +#define MACB_IDR 0x002c +#define MACB_IMR 0x0030 +#define MACB_MAN 0x0034 +#define MACB_PTR 0x0038 +#define MACB_PFR 0x003c +#define MACB_FTO 0x0040 +#define MACB_SCF 0x0044 +#define MACB_MCF 0x0048 +#define MACB_FRO 0x004c +#define MACB_FCSE 0x0050 +#define MACB_ALE 0x0054 +#define MACB_DTF 0x0058 +#define MACB_LCOL 0x005c +#define MACB_EXCOL 0x0060 +#define MACB_TUND 0x0064 +#define MACB_CSE 0x0068 +#define MACB_RRE 0x006c +#define MACB_ROVR 0x0070 +#define MACB_RSE 0x0074 +#define MACB_ELE 0x0078 +#define MACB_RJA 0x007c +#define MACB_USF 0x0080 +#define MACB_STE 0x0084 +#define MACB_RLE 0x0088 +#define MACB_TPF 0x008c +#define MACB_HRB 0x0090 +#define MACB_HRT 0x0094 +#define MACB_SA1B 0x0098 +#define MACB_SA1T 0x009c +#define MACB_SA2B 0x00a0 +#define MACB_SA2T 0x00a4 +#define MACB_SA3B 0x00a8 +#define MACB_SA3T 0x00ac +#define MACB_SA4B 0x00b0 +#define MACB_SA4T 0x00b4 +#define MACB_TID 0x00b8 +#define MACB_TPQ 0x00bc +#define MACB_USRIO 0x00c0 +#define MACB_WOL 0x00c4 + +/* Bitfields in NCR */ +#define MACB_LB_OFFSET 0 +#define MACB_LB_SIZE 1 +#define MACB_LLB_OFFSET 1 +#define MACB_LLB_SIZE 1 +#define MACB_RE_OFFSET 2 +#define MACB_RE_SIZE 1 +#define MACB_TE_OFFSET 3 +#define MACB_TE_SIZE 1 +#define MACB_MPE_OFFSET 4 +#define MACB_MPE_SIZE 1 +#define MACB_CLRSTAT_OFFSET 5 +#define MACB_CLRSTAT_SIZE 1 +#define MACB_INCSTAT_OFFSET 6 +#define MACB_INCSTAT_SIZE 1 +#define MACB_WESTAT_OFFSET 7 +#define MACB_WESTAT_SIZE 1 +#define MACB_BP_OFFSET 8 +#define MACB_BP_SIZE 1 +#define MACB_TSTART_OFFSET 9 +#define MACB_TSTART_SIZE 1 +#define MACB_THALT_OFFSET 10 +#define MACB_THALT_SIZE 1 +#define MACB_NCR_TPF_OFFSET 11 +#define MACB_NCR_TPF_SIZE 1 +#define MACB_TZQ_OFFSET 12 +#define MACB_TZQ_SIZE 1 + +/* Bitfields in NCFGR */ +#define MACB_SPD_OFFSET 0 +#define MACB_SPD_SIZE 1 +#define MACB_FD_OFFSET 1 +#define MACB_FD_SIZE 1 +#define MACB_BIT_RATE_OFFSET 2 +#define MACB_BIT_RATE_SIZE 1 +#define MACB_JFRAME_OFFSET 3 +#define MACB_JFRAME_SIZE 1 +#define MACB_CAF_OFFSET 4 +#define MACB_CAF_SIZE 1 +#define MACB_NBC_OFFSET 5 +#define MACB_NBC_SIZE 1 +#define MACB_NCFGR_MTI_OFFSET 6 +#define MACB_NCFGR_MTI_SIZE 1 +#define MACB_UNI_OFFSET 7 +#define MACB_UNI_SIZE 1 +#define MACB_BIG_OFFSET 8 +#define MACB_BIG_SIZE 1 +#define MACB_EAE_OFFSET 9 +#define MACB_EAE_SIZE 1 +#define MACB_CLK_OFFSET 10 +#define MACB_CLK_SIZE 2 +#define MACB_RTY_OFFSET 12 +#define MACB_RTY_SIZE 1 +#define MACB_PAE_OFFSET 13 +#define MACB_PAE_SIZE 1 +#define MACB_RBOF_OFFSET 14 +#define MACB_RBOF_SIZE 2 +#define MACB_RLCE_OFFSET 16 +#define MACB_RLCE_SIZE 1 +#define MACB_DRFCS_OFFSET 17 +#define MACB_DRFCS_SIZE 1 +#define MACB_EFRHD_OFFSET 18 +#define MACB_EFRHD_SIZE 1 +#define MACB_IRXFCS_OFFSET 19 +#define MACB_IRXFCS_SIZE 1 + +/* Bitfields in NSR */ +#define MACB_NSR_LINK_OFFSET 0 +#define MACB_NSR_LINK_SIZE 1 +#define MACB_MDIO_OFFSET 1 +#define MACB_MDIO_SIZE 1 +#define MACB_IDLE_OFFSET 2 +#define MACB_IDLE_SIZE 1 + +/* Bitfields in TSR */ +#define MACB_UBR_OFFSET 0 +#define MACB_UBR_SIZE 1 +#define MACB_COL_OFFSET 1 +#define MACB_COL_SIZE 1 +#define MACB_TSR_RLE_OFFSET 2 +#define MACB_TSR_RLE_SIZE 1 +#define MACB_TGO_OFFSET 3 +#define MACB_TGO_SIZE 1 +#define MACB_BEX_OFFSET 4 +#define MACB_BEX_SIZE 1 +#define MACB_COMP_OFFSET 5 +#define MACB_COMP_SIZE 1 +#define MACB_UND_OFFSET 6 +#define MACB_UND_SIZE 1 + +/* Bitfields in RSR */ +#define MACB_BNA_OFFSET 0 +#define MACB_BNA_SIZE 1 +#define MACB_REC_OFFSET 1 +#define MACB_REC_SIZE 1 +#define MACB_OVR_OFFSET 2 +#define MACB_OVR_SIZE 1 + +/* Bitfields in ISR/IER/IDR/IMR */ +#define MACB_MFD_OFFSET 0 +#define MACB_MFD_SIZE 1 +#define MACB_RCOMP_OFFSET 1 +#define MACB_RCOMP_SIZE 1 +#define MACB_RXUBR_OFFSET 2 +#define MACB_RXUBR_SIZE 1 +#define MACB_TXUBR_OFFSET 3 +#define MACB_TXUBR_SIZE 1 +#define MACB_ISR_TUND_OFFSET 4 +#define MACB_ISR_TUND_SIZE 1 +#define MACB_ISR_RLE_OFFSET 5 +#define MACB_ISR_RLE_SIZE 1 +#define MACB_TXERR_OFFSET 6 +#define MACB_TXERR_SIZE 1 +#define MACB_TCOMP_OFFSET 7 +#define MACB_TCOMP_SIZE 1 +#define MACB_ISR_LINK_OFFSET 9 +#define MACB_ISR_LINK_SIZE 1 +#define MACB_ISR_ROVR_OFFSET 10 +#define MACB_ISR_ROVR_SIZE 1 +#define MACB_HRESP_OFFSET 11 +#define MACB_HRESP_SIZE 1 +#define MACB_PFR_OFFSET 12 +#define MACB_PFR_SIZE 1 +#define MACB_PTZ_OFFSET 13 +#define MACB_PTZ_SIZE 1 + +/* Bitfields in MAN */ +#define MACB_DATA_OFFSET 0 +#define MACB_DATA_SIZE 16 +#define MACB_CODE_OFFSET 16 +#define MACB_CODE_SIZE 2 +#define MACB_REGA_OFFSET 18 +#define MACB_REGA_SIZE 5 +#define MACB_PHYA_OFFSET 23 +#define MACB_PHYA_SIZE 5 +#define MACB_RW_OFFSET 28 +#define MACB_RW_SIZE 2 +#define MACB_SOF_OFFSET 30 +#define MACB_SOF_SIZE 2 + +/* Bitfields in USRIO (AVR32) */ +#define MACB_MII_OFFSET 0 +#define MACB_MII_SIZE 1 +#define MACB_EAM_OFFSET 1 +#define MACB_EAM_SIZE 1 +#define MACB_TX_PAUSE_OFFSET 2 +#define MACB_TX_PAUSE_SIZE 1 +#define MACB_TX_PAUSE_ZERO_OFFSET 3 +#define MACB_TX_PAUSE_ZERO_SIZE 1 + +/* Bitfields in USRIO (AT91) */ +#define MACB_RMII_OFFSET 0 +#define MACB_RMII_SIZE 1 +#define MACB_CLKEN_OFFSET 1 +#define MACB_CLKEN_SIZE 1 + +/* Bitfields in WOL */ +#define MACB_IP_OFFSET 0 +#define MACB_IP_SIZE 16 +#define MACB_MAG_OFFSET 16 +#define MACB_MAG_SIZE 1 +#define MACB_ARP_OFFSET 17 +#define MACB_ARP_SIZE 1 +#define MACB_SA1_OFFSET 18 +#define MACB_SA1_SIZE 1 +#define MACB_WOL_MTI_OFFSET 19 +#define MACB_WOL_MTI_SIZE 1 + +/* Constants for CLK */ +#define MACB_CLK_DIV8 0 +#define MACB_CLK_DIV16 1 +#define MACB_CLK_DIV32 2 +#define MACB_CLK_DIV64 3 + +/* Constants for MAN register */ +#define MACB_MAN_SOF 1 +#define MACB_MAN_WRITE 1 +#define MACB_MAN_READ 2 +#define MACB_MAN_CODE 2 + +/* Bit manipulation macros */ +#define MACB_BIT(name) \ + (1 << MACB_##name##_OFFSET) +#define MACB_BF(name,value) \ + (((value) & ((1 << MACB_##name##_SIZE) - 1)) \ + << MACB_##name##_OFFSET) +#define MACB_BFEXT(name,value)\ + (((value) >> MACB_##name##_OFFSET) \ + & ((1 << MACB_##name##_SIZE) - 1)) +#define MACB_BFINS(name,value,old) \ + (((old) & ~(((1 << MACB_##name##_SIZE) - 1) \ + << MACB_##name##_OFFSET)) \ + | MACB_BF(name,value)) + +/* Register access macros */ +#define macb_readl(port,reg) \ + readl((port)->regs + MACB_##reg) +#define macb_writel(port,reg,value) \ + writel((value), (port)->regs + MACB_##reg) + +struct dma_desc { + rt_uint32_t addr; + rt_uint32_t ctrl; +}; + +/* DMA descriptor bitfields */ +#define MACB_RX_USED_OFFSET 0 +#define MACB_RX_USED_SIZE 1 +#define MACB_RX_WRAP_OFFSET 1 +#define MACB_RX_WRAP_SIZE 1 +#define MACB_RX_WADDR_OFFSET 2 +#define MACB_RX_WADDR_SIZE 30 + +#define MACB_RX_FRMLEN_OFFSET 0 +#define MACB_RX_FRMLEN_SIZE 12 +#define MACB_RX_OFFSET_OFFSET 12 +#define MACB_RX_OFFSET_SIZE 2 +#define MACB_RX_SOF_OFFSET 14 +#define MACB_RX_SOF_SIZE 1 +#define MACB_RX_EOF_OFFSET 15 +#define MACB_RX_EOF_SIZE 1 +#define MACB_RX_CFI_OFFSET 16 +#define MACB_RX_CFI_SIZE 1 +#define MACB_RX_VLAN_PRI_OFFSET 17 +#define MACB_RX_VLAN_PRI_SIZE 3 +#define MACB_RX_PRI_TAG_OFFSET 20 +#define MACB_RX_PRI_TAG_SIZE 1 +#define MACB_RX_VLAN_TAG_OFFSET 21 +#define MACB_RX_VLAN_TAG_SIZE 1 +#define MACB_RX_TYPEID_MATCH_OFFSET 22 +#define MACB_RX_TYPEID_MATCH_SIZE 1 +#define MACB_RX_SA4_MATCH_OFFSET 23 +#define MACB_RX_SA4_MATCH_SIZE 1 +#define MACB_RX_SA3_MATCH_OFFSET 24 +#define MACB_RX_SA3_MATCH_SIZE 1 +#define MACB_RX_SA2_MATCH_OFFSET 25 +#define MACB_RX_SA2_MATCH_SIZE 1 +#define MACB_RX_SA1_MATCH_OFFSET 26 +#define MACB_RX_SA1_MATCH_SIZE 1 +#define MACB_RX_EXT_MATCH_OFFSET 28 +#define MACB_RX_EXT_MATCH_SIZE 1 +#define MACB_RX_UHASH_MATCH_OFFSET 29 +#define MACB_RX_UHASH_MATCH_SIZE 1 +#define MACB_RX_MHASH_MATCH_OFFSET 30 +#define MACB_RX_MHASH_MATCH_SIZE 1 +#define MACB_RX_BROADCAST_OFFSET 31 +#define MACB_RX_BROADCAST_SIZE 1 + +#define MACB_TX_FRMLEN_OFFSET 0 +#define MACB_TX_FRMLEN_SIZE 11 +#define MACB_TX_LAST_OFFSET 15 +#define MACB_TX_LAST_SIZE 1 +#define MACB_TX_NOCRC_OFFSET 16 +#define MACB_TX_NOCRC_SIZE 1 +#define MACB_TX_BUF_EXHAUSTED_OFFSET 27 +#define MACB_TX_BUF_EXHAUSTED_SIZE 1 +#define MACB_TX_UNDERRUN_OFFSET 28 +#define MACB_TX_UNDERRUN_SIZE 1 +#define MACB_TX_ERROR_OFFSET 29 +#define MACB_TX_ERROR_SIZE 1 +#define MACB_TX_WRAP_OFFSET 30 +#define MACB_TX_WRAP_SIZE 1 +#define MACB_TX_USED_OFFSET 31 +#define MACB_TX_USED_SIZE 1 + +extern int rt_hw_macb_init(); + +#endif /* _MACB_H */ + diff --git a/bsp/at91/at91sam9g45/drivers/mii.h b/bsp/at91/at91sam9g45/drivers/mii.h new file mode 100644 index 0000000000..03d914b7c3 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/mii.h @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-18 weety first version + */ + +#ifndef __MII_H__ +#define __MII_H__ + +/* Generic MII registers. */ + +#define MII_BMCR 0x00 /* Basic mode control register */ +#define MII_BMSR 0x01 /* Basic mode status register */ +#define MII_PHYSID1 0x02 /* PHYS ID 1 */ +#define MII_PHYSID2 0x03 /* PHYS ID 2 */ +#define MII_ADVERTISE 0x04 /* Advertisement control reg */ +#define MII_LPA 0x05 /* Link partner ability reg */ +#define MII_EXPANSION 0x06 /* Expansion register */ +#define MII_CTRL1000 0x09 /* 1000BASE-T control */ +#define MII_STAT1000 0x0a /* 1000BASE-T status */ +#define MII_ESTATUS 0x0f /* Extended Status */ +#define MII_DCOUNTER 0x12 /* Disconnect counter */ +#define MII_FCSCOUNTER 0x13 /* False carrier counter */ +#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ +#define MII_RERRCOUNTER 0x15 /* Receive error counter */ +#define MII_SREVISION 0x16 /* Silicon revision */ +#define MII_RESV1 0x17 /* Reserved... */ +#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ +#define MII_PHYADDR 0x19 /* PHY address */ +#define MII_RESV2 0x1a /* Reserved... */ +#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ +#define MII_NCONFIG 0x1c /* Network interface config */ + +/* Basic mode control register. */ +#define BMCR_RESV 0x003f /* Unused... */ +#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ +#define BMCR_CTST 0x0080 /* Collision test */ +#define BMCR_FULLDPLX 0x0100 /* Full duplex */ +#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ +#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ +#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ +#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ +#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ +#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ +#define BMCR_RESET 0x8000 /* Reset the DP83840 */ + +/* Basic mode status register. */ +#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ +#define BMSR_JCD 0x0002 /* Jabber detected */ +#define BMSR_LSTATUS 0x0004 /* Link status */ +#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ +#define BMSR_RFAULT 0x0010 /* Remote fault detected */ +#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ +#define BMSR_RESV 0x00c0 /* Unused... */ +#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ +#define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ +#define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */ +#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ +#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ +#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ +#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ +#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ + +/* Advertisement control register. */ +#define ADVERTISE_SLCT 0x001f /* Selector bits */ +#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ +#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ +#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ +#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ +#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ +#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ +#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ +#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ +#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ +#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ +#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ +#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ +#define ADVERTISE_RESV 0x1000 /* Unused... */ +#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ +#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ +#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ + +#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ + ADVERTISE_CSMA) +#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ + ADVERTISE_100HALF | ADVERTISE_100FULL) + +/* Link partner ability register. */ +#define LPA_SLCT 0x001f /* Same as advertise selector */ +#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ +#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ +#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ +#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ +#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ +#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ +#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ +#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ +#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ +#define LPA_PAUSE_CAP 0x0400 /* Can pause */ +#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ +#define LPA_RESV 0x1000 /* Unused... */ +#define LPA_RFAULT 0x2000 /* Link partner faulted */ +#define LPA_LPACK 0x4000 /* Link partner acked us */ +#define LPA_NPAGE 0x8000 /* Next page bit */ + +#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) +#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) + +/* Expansion register for auto-negotiation. */ +#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ +#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ +#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ +#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ +#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ +#define EXPANSION_RESV 0xffe0 /* Unused... */ + +#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ +#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ + +/* N-way test register. */ +#define NWAYTEST_RESV1 0x00ff /* Unused... */ +#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ +#define NWAYTEST_RESV2 0xfe00 /* Unused... */ + +/* 1000BASE-T Control register */ +#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ +#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ + +/* 1000BASE-T Status register */ +#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ +#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ +#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ +#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */ + +/* Flow control flags */ +#define FLOW_CTRL_TX 0x01 +#define FLOW_CTRL_RX 0x02 + +/** + * mii_nway_result + * @negotiated: value of MII ANAR and'd with ANLPAR + * + * Given a set of MII abilities, check each bit and returns the + * currently supported media, in the priority order defined by + * IEEE 802.3u. We use LPA_xxx constants but note this is not the + * value of LPA solely, as described above. + * + * The one exception to IEEE 802.3u is that 100baseT4 is placed + * between 100T-full and 100T-half. If your phy does not support + * 100T4 this is fine. If your phy places 100T4 elsewhere in the + * priority order, you will need to roll your own function. + */ +rt_inline unsigned int mii_nway_result (unsigned int negotiated) +{ + unsigned int ret; + + if (negotiated & LPA_100FULL) + ret = LPA_100FULL; + else if (negotiated & LPA_100BASE4) + ret = LPA_100BASE4; + else if (negotiated & LPA_100HALF) + ret = LPA_100HALF; + else if (negotiated & LPA_10FULL) + ret = LPA_10FULL; + else + ret = LPA_10HALF; + + return ret; +} + + +#endif /* __MII_H__ */ + diff --git a/bsp/at91/at91sam9g45/drivers/usart.c b/bsp/at91/at91sam9g45/drivers/usart.c new file mode 100644 index 0000000000..fdcb2f8537 --- /dev/null +++ b/bsp/at91/at91sam9g45/drivers/usart.c @@ -0,0 +1,384 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + * 2013-07-21 weety using serial component + */ + +#include +#include +#include +#include + + +struct at91_uart { + AT91S_USART *port; + int irq; +}; + + +/** + * This function will handle serial port interrupt + */ +void rt_at91_usart_handler(int vector, void *param) +{ + int status; + struct at91_uart *uart; + rt_device_t dev = (rt_device_t)param; + uart = (struct at91_uart *)dev->user_data; + status = uart->port->US_CSR; + if (!(status & uart->port->US_IMR)) /* check actived and enabled interrupt */ + { + return; + } + rt_interrupt_enter(); + rt_hw_serial_isr((struct rt_serial_device *)dev, RT_SERIAL_EVENT_RX_IND); + rt_interrupt_leave(); +} + +/** + * UART device in RT-Thread + */ +static rt_err_t at91_usart_configure(struct rt_serial_device *serial, + struct serial_configure *cfg) +{ + int div; + int mode = 0; + struct at91_uart *uart; + + RT_ASSERT(serial != RT_NULL); + RT_ASSERT(cfg != RT_NULL); + uart = (struct at91_uart *)serial->parent.user_data; + + uart->port->US_CR = AT91C_US_RSTTX | AT91C_US_RSTRX | + AT91C_US_RXDIS | AT91C_US_TXDIS; + mode |= AT91C_US_USMODE_NORMAL | AT91C_US_CLKS_CLOCK | + AT91C_US_CHMODE_NORMAL; + switch (cfg->data_bits) + { + case DATA_BITS_8: + mode |= AT91C_US_CHRL_8_BITS; + break; + case DATA_BITS_7: + mode |= AT91C_US_CHRL_7_BITS; + break; + case DATA_BITS_6: + mode |= AT91C_US_CHRL_6_BITS; + break; + case DATA_BITS_5: + mode |= AT91C_US_CHRL_5_BITS; + break; + default: + mode |= AT91C_US_CHRL_8_BITS; + break; + } + + switch (cfg->stop_bits) + { + case STOP_BITS_2: + mode |= AT91C_US_NBSTOP_2_BIT; + break; + case STOP_BITS_1: + default: + mode |= AT91C_US_NBSTOP_1_BIT; + break; + } + + switch (cfg->parity) + { + case PARITY_ODD: + mode |= AT91C_US_PAR_ODD; + break; + case PARITY_EVEN: + mode |= AT91C_US_PAR_EVEN; + break; + case PARITY_NONE: + default: + mode |= AT91C_US_PAR_NONE; + break; + } + + uart->port->US_MR = mode; + /* Assume OVER is cleared and fractional baudrate generator is disabled */ + div = (clk_get_rate(clk_get("mck")) / 16 + cfg->baud_rate/2) / cfg->baud_rate; + uart->port->US_BRGR = div; + uart->port->US_CR = AT91C_US_RXEN | AT91C_US_TXEN; + uart->port->US_IER = AT91C_US_RXRDY; + + return RT_EOK; +} + +static rt_err_t at91_usart_control(struct rt_serial_device *serial, + int cmd, void *arg) +{ + struct at91_uart* uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct at91_uart *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: + /* disable rx irq */ + rt_hw_interrupt_mask(uart->irq); + break; + case RT_DEVICE_CTRL_SET_INT: + /* enable rx irq */ + rt_hw_interrupt_umask(uart->irq); + break; + } + + return RT_EOK; +} + +static int at91_usart_putc(struct rt_serial_device *serial, char c) +{ + //rt_uint32_t level; + struct at91_uart *uart = serial->parent.user_data; + + while (!(uart->port->US_CSR & AT91C_US_TXRDY)); + uart->port->US_THR = c; + + return 1; +} + +static int at91_usart_getc(struct rt_serial_device *serial) +{ + int result; + struct at91_uart *uart = serial->parent.user_data; + + if (uart->port->US_CSR & AT91C_US_RXRDY) + { + result = uart->port->US_RHR & 0xff; + } + else + { + result = -1; + } + + return result; +} + +static const struct rt_uart_ops at91_usart_ops = +{ + at91_usart_configure, + at91_usart_control, + at91_usart_putc, + at91_usart_getc, +}; + +#if defined(RT_USING_DBGU) +static struct rt_serial_device serial_dbgu; +struct at91_uart dbgu = { + (AT91PS_USART)AT91C_BASE_DBGU, + AT91C_ID_SYS +}; + +#endif + +#if defined(RT_USING_UART0) +static struct rt_serial_device serial0; +struct at91_uart uart0 = { + AT91C_BASE_US0, + AT91C_ID_US0 +}; +#endif + +#if defined(RT_USING_UART1) +static struct rt_serial_device serial1; +struct at91_uart uart1 = { + AT91C_BASE_US1, + AT91C_ID_US1 +}; +#endif + +#if defined(RT_USING_UART2) +static struct rt_serial_device serial2; +struct at91_uart uart2 = { + AT91C_BASE_US2, + AT91C_ID_US2 +}; +#endif + +#if defined(RT_USING_UART3) +static struct rt_serial_device serial3; +struct at91_uart uart3 = { + AT91C_BASE_US3, + AT91C_ID_US3 +}; +#endif + + +void at91_usart_gpio_init(void) +{ +#ifdef RT_USING_DBGU +#define DRXD 12 // DBGU rx as Peripheral A on PB12 +#define DTXD 13 // DBGU tx as Peripheral A on PB13 + AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1 << AT91C_ID_SYS; +#endif + +#ifdef RT_USING_UART0 +#define RXD0 18 // UART0 rx as Peripheral A on PB18 +#define TXD0 19 // UART0 tx as Peripheral A on PB19 + AT91C_BASE_PMC->PMC_PCER, 1 << AT91C_ID_US0; + AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1 << AT91C_ID_US1; + AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1 << AT91C_ID_US2; + AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1<PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1< R7 +#define AT91C_ISI_RGB_SWAP_ENABLE (0x1 << 14) // (ISI) D0 -> R7 +#define AT91C_ISI_COL_SPACE (0x1 << 15) // (ISI) Color space for the image data +#define AT91C_ISI_COL_SPACE_YCBCR (0x0 << 15) // (ISI) YCbCr +#define AT91C_ISI_COL_SPACE_RGB (0x1 << 15) // (ISI) RGB +#define AT91C_ISI_IM_HSIZE (0x7FF << 16) // (ISI) Horizontal size of the Image sensor [0..2047] +#define AT91C_ISI_YCC_SWAP (0x3 << 28) // (ISI) Ycc swap +#define AT91C_ISI_YCC_SWAP_YCC_DEFAULT (0x0 << 28) // (ISI) Cb(i) Y(i) Cr(i) Y(i+1) +#define AT91C_ISI_YCC_SWAP_YCC_MODE1 (0x1 << 28) // (ISI) Cr(i) Y(i) Cb(i) Y(i+1) +#define AT91C_ISI_YCC_SWAP_YCC_MODE2 (0x2 << 28) // (ISI) Y(i) Cb(i) Y(i+1) Cr(i) +#define AT91C_ISI_YCC_SWAP_YCC_MODE3 (0x3 << 28) // (ISI) Y(i) Cr(i) Y(i+1) Cb(i) +#define AT91C_ISI_RGB_CFG (0x3 << 30) // (ISI) RGB configuration +#define AT91C_ISI_RGB_CFG_RGB_DEFAULT (0x0 << 30) // (ISI) R/G(MSB) G(LSB)/B R/G(MSB) G(LSB)/B +#define AT91C_ISI_RGB_CFG_RGB_MODE1 (0x1 << 30) // (ISI) B/G(MSB) G(LSB)/R B/G(MSB) G(LSB)/R +#define AT91C_ISI_RGB_CFG_RGB_MODE2 (0x2 << 30) // (ISI) G(LSB)/R B/G(MSB) G(LSB)/R B/G(MSB) +#define AT91C_ISI_RGB_CFG_RGB_MODE3 (0x3 << 30) // (ISI) G(LSB)/B R/G(MSB) G(LSB)/B R/G(MSB) +// -------- ISI_PSIZE : (ISI Offset: 0x8) ISI Preview Register -------- +#define AT91C_ISI_PREV_VSIZE (0x3FF << 0) // (ISI) Vertical size for the preview path +#define AT91C_ISI_PREV_HSIZE (0x3FF << 16) // (ISI) Horizontal size for the preview path +// -------- ISI_PDECF : (ISI Offset: 0xc) ISI Preview Decimation Factor Register -------- +#define AT91C_ISI_DEC_FACTOR (0xFF << 0) // (ISI) Decimation factor +// -------- ISI_Y2RSET0 : (ISI Offset: 0x10) Color Space Conversion YCrCb to RGB Register -------- +#define AT91C_ISI_Y2R_C0 (0xFF << 0) // (ISI) Color Space Conversion Matrix Coefficient C0 +#define AT91C_ISI_Y2R_C1 (0xFF << 8) // (ISI) Color Space Conversion Matrix Coefficient C1 +#define AT91C_ISI_Y2R_C2 (0xFF << 16) // (ISI) Color Space Conversion Matrix Coefficient C2 +#define AT91C_ISI_Y2R_C3 (0xFF << 24) // (ISI) Color Space Conversion Matrix Coefficient C3 +// -------- ISI_Y2RSET1 : (ISI Offset: 0x14) ISI Color Space Conversion YCrCb to RGB set 1 Register -------- +#define AT91C_ISI_Y2R_C4 (0x1FF << 0) // (ISI) Color Space Conversion Matrix Coefficient C4 +#define AT91C_ISI_Y2R_YOFF (0x1 << 12) // (ISI) Color Space Conversion Luninance default offset +#define AT91C_ISI_Y2R_YOFF_0 (0x0 << 12) // (ISI) Offset is 0 +#define AT91C_ISI_Y2R_YOFF_128 (0x1 << 12) // (ISI) Offset is 128 +#define AT91C_ISI_Y2R_CROFF (0x1 << 13) // (ISI) Color Space Conversion Red Chrominance default offset +#define AT91C_ISI_Y2R_CROFF_0 (0x0 << 13) // (ISI) Offset is 0 +#define AT91C_ISI_Y2R_CROFF_16 (0x1 << 13) // (ISI) Offset is 16 +#define AT91C_ISI_Y2R_CBOFF (0x1 << 14) // (ISI) Color Space Conversion Blue Chrominance default offset +#define AT91C_ISI_Y2R_CBOFF_0 (0x0 << 14) // (ISI) Offset is 0 +#define AT91C_ISI_Y2R_CBOFF_16 (0x1 << 14) // (ISI) Offset is 16 +// -------- ISI_R2YSET0 : (ISI Offset: 0x18) Color Space Conversion RGB to YCrCb set 0 register -------- +#define AT91C_ISI_R2Y_C0 (0x7F << 0) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C0 +#define AT91C_ISI_R2Y_C1 (0x7F << 8) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C1 +#define AT91C_ISI_R2Y_C2 (0x7F << 16) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C2 +#define AT91C_ISI_R2Y_ROFF (0x1 << 24) // (ISI) Color Space Conversion Red component offset +#define AT91C_ISI_R2Y_ROFF_0 (0x0 << 24) // (ISI) Offset is 0 +#define AT91C_ISI_R2Y_ROFF_16 (0x1 << 24) // (ISI) Offset is 16 +// -------- ISI_R2YSET1 : (ISI Offset: 0x1c) Color Space Conversion RGB to YCrCb set 1 register -------- +#define AT91C_ISI_R2Y_C3 (0x7F << 0) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C3 +#define AT91C_ISI_R2Y_C4 (0x7F << 8) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C4 +#define AT91C_ISI_R2Y_C5 (0x7F << 16) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C5 +#define AT91C_ISI_R2Y_GOFF (0x1 << 24) // (ISI) Color Space Conversion Green component offset +#define AT91C_ISI_R2Y_GOFF_0 (0x0 << 24) // (ISI) Offset is 0 +#define AT91C_ISI_R2Y_GOFF_128 (0x1 << 24) // (ISI) Offset is 128 +// -------- ISI_R2YSET2 : (ISI Offset: 0x20) Color Space Conversion RGB to YCrCb set 2 register -------- +#define AT91C_ISI_R2Y_C6 (0x7F << 0) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C6 +#define AT91C_ISI_R2Y_C7 (0x7F << 8) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C7 +#define AT91C_ISI_R2Y_C8 (0x7F << 16) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C8 +#define AT91C_ISI_R2Y_BOFF (0x1 << 24) // (ISI) Color Space Conversion Blue component offset +#define AT91C_ISI_R2Y_BOFF_0 (0x0 << 24) // (ISI) Offset is 0 +#define AT91C_ISI_R2Y_BOFF_128 (0x1 << 24) // (ISI) Offset is 128 +// -------- ISI_CTRL : (ISI Offset: 0x24) ISI Control Register -------- +#define AT91C_ISI_EN (0x1 << 0) // (ISI) Image Sensor Interface Enable Request +#define AT91C_ISI_EN_0 (0x0) // (ISI) No effect +#define AT91C_ISI_EN_1 (0x1) // (ISI) Enable the module and the capture +#define AT91C_ISI_DIS (0x1 << 1) // (ISI) Image Sensor Interface Disable Request +#define AT91C_ISI_DIS_0 (0x0 << 1) // (ISI) No effect +#define AT91C_ISI_DIS_1 (0x1 << 1) // (ISI) Disable the module and the capture +#define AT91C_ISI_SRST (0x1 << 2) // (ISI) Software Reset Request +#define AT91C_ISI_SRST_0 (0x0 << 2) // (ISI) No effect +#define AT91C_ISI_SRST_1 (0x1 << 2) // (ISI) Reset the module +#define AT91C_ISI_CDC (0x1 << 8) // (ISI) Codec Request +#define AT91C_ISI_CDC_0 (0x0 << 8) // (ISI) No effect +#define AT91C_ISI_CDC_1 (0x1 << 8) // (ISI) Enable the Codec +// -------- ISI_SR : (ISI Offset: 0x28) ISI Status Register -------- +#define AT91C_ISI_VSYNC (0x1 << 10) // (ISI) Vertical Synchronization +#define AT91C_ISI_VSYNC_0 (0x0 << 10) // (ISI) No effect +#define AT91C_ISI_VSYNC_1 (0x1 << 10) // (ISI) Indicates that a Vertical Synchronization has been detected since last read +#define AT91C_ISI_PXFR_DONE (0x1 << 16) // (ISI) Preview DMA transfer terminated +#define AT91C_ISI_PXFR_DONE_0 (0x0 << 16) // (ISI) No effect +#define AT91C_ISI_PXFR_DONE_1 (0x1 << 16) // (ISI) Indicates that DATA transfer on preview channel has completed since last read +#define AT91C_ISI_CXFR_DONE (0x1 << 17) // (ISI) Codec DMA transfer terminated +#define AT91C_ISI_CXFR_DONE_0 (0x0 << 17) // (ISI) No effect +#define AT91C_ISI_CXFR_DONE_1 (0x1 << 17) // (ISI) Indicates that DATA transfer on preview channel has completed since last read +#define AT91C_ISI_SIP (0x1 << 19) // (ISI) Synchronization In Progress +#define AT91C_ISI_SIP_0 (0x0 << 19) // (ISI) No effect +#define AT91C_ISI_SIP_1 (0x1 << 19) // (ISI) Indicates that Synchronization is in progress +#define AT91C_ISI_P_OVR (0x1 << 24) // (ISI) Fifo Preview Overflow +#define AT91C_ISI_P_OVR_0 (0x0 << 24) // (ISI) No error +#define AT91C_ISI_P_OVR_1 (0x1 << 24) // (ISI) An overrun condition has occurred in input FIFO on the preview path +#define AT91C_ISI_C_OVR (0x1 << 25) // (ISI) Fifo Codec Overflow +#define AT91C_ISI_C_OVR_0 (0x0 << 25) // (ISI) No error +#define AT91C_ISI_C_OVR_1 (0x1 << 25) // (ISI) An overrun condition has occurred in input FIFO on the codec path +#define AT91C_ISI_CRC_ERR (0x1 << 26) // (ISI) CRC synchronisation error +#define AT91C_ISI_CRC_ERR_0 (0x0 << 26) // (ISI) No error +#define AT91C_ISI_CRC_ERR_1 (0x1 << 26) // (ISI) CRC_SYNC is enabled in the control register and an error has been detected and not corrected. The frame is discarded and the ISI waits for a new one. +#define AT91C_ISI_FR_OVR (0x1 << 27) // (ISI) Frame rate overun +#define AT91C_ISI_FR_OVR_0 (0x0 << 27) // (ISI) No error +#define AT91C_ISI_FR_OVR_1 (0x1 << 27) // (ISI) Frame overrun, the current frame is being skipped because a vsync signal has been detected while flushing FIFOs. +// -------- ISI_IER : (ISI Offset: 0x2c) ISI Interrupt Enable Register -------- +// -------- ISI_IDR : (ISI Offset: 0x30) ISI Interrupt Disable Register -------- +// -------- ISI_IMR : (ISI Offset: 0x34) ISI Interrupt Mask Register -------- +// -------- ISI_DMACHER : (ISI Offset: 0x38) DMA Channel Enable Register -------- +#define AT91C_ISI_P_CH_EN (0x1 << 0) // (ISI) Preview Channel Enable +#define AT91C_ISI_P_CH_EN_0 (0x0) // (ISI) No effect +#define AT91C_ISI_P_CH_EN_1 (0x1) // (ISI) Enable the Preview Channel +#define AT91C_ISI_C_CH_EN (0x1 << 1) // (ISI) Codec Channel Enable +#define AT91C_ISI_C_CH_EN_0 (0x0 << 1) // (ISI) No effect +#define AT91C_ISI_C_CH_EN_1 (0x1 << 1) // (ISI) Enable the Codec Channel +// -------- ISI_DMACHDR : (ISI Offset: 0x3c) DMA Channel Enable Register -------- +#define AT91C_ISI_P_CH_DIS (0x1 << 0) // (ISI) Preview Channel Disable +#define AT91C_ISI_P_CH_DIS_0 (0x0) // (ISI) No effect +#define AT91C_ISI_P_CH_DIS_1 (0x1) // (ISI) Disable the Preview Channel +#define AT91C_ISI_C_CH_DIS (0x1 << 1) // (ISI) Codec Channel Disable +#define AT91C_ISI_C_CH_DIS_0 (0x0 << 1) // (ISI) No effect +#define AT91C_ISI_C_CH_DIS_1 (0x1 << 1) // (ISI) Disable the Codec Channel +// -------- ISI_DMACHSR : (ISI Offset: 0x40) DMA Channel Status Register -------- +#define AT91C_ISI_P_CH_S (0x1 << 0) // (ISI) Preview Channel Disable +#define AT91C_ISI_P_CH_S_0 (0x0) // (ISI) Preview Channel is disabled +#define AT91C_ISI_P_CH_S_1 (0x1) // (ISI) Preview Channel is enabled +#define AT91C_ISI_C_CH_S (0x1 << 1) // (ISI) Codec Channel Disable +#define AT91C_ISI_C_CH_S_0 (0x0 << 1) // (ISI) Codec Channel is disabled +#define AT91C_ISI_C_CH_S_1 (0x1 << 1) // (ISI) Codec Channel is enabled +// -------- ISI_DMAPCTRL : (ISI Offset: 0x48) DMA Preview Control Register -------- +#define AT91C_ISI_P_FETCH (0x1 << 0) // (ISI) Preview Descriptor Fetch Control Field +#define AT91C_ISI_P_FETCH_DISABLE (0x0) // (ISI) Preview Channel Fetch Operation is disabled +#define AT91C_ISI_P_FETCH_ENABLE (0x1) // (ISI) Preview Channel Fetch Operation is enabled +#define AT91C_ISI_P_DONE (0x1 << 1) // (ISI) Preview Transfer Done Flag +#define AT91C_ISI_P_DONE_0 (0x0 << 1) // (ISI) Preview Transfer has not been performed +#define AT91C_ISI_P_DONE_1 (0x1 << 1) // (ISI) Preview Transfer has completed +// -------- ISI_DMACCTRL : (ISI Offset: 0x54) DMA Codec Control Register -------- +#define AT91C_ISI_C_FETCH (0x1 << 0) // (ISI) Codec Descriptor Fetch Control Field +#define AT91C_ISI_C_FETCH_DISABLE (0x0) // (ISI) Codec Channel Fetch Operation is disabled +#define AT91C_ISI_C_FETCH_ENABLE (0x1) // (ISI) Codec Channel Fetch Operation is enabled +#define AT91C_ISI_C_DONE (0x1 << 1) // (ISI) Codec Transfer Done Flag +#define AT91C_ISI_C_DONE_0 (0x0 << 1) // (ISI) Codec Transfer has not been performed +#define AT91C_ISI_C_DONE_1 (0x1 << 1) // (ISI) Codec Transfer has completed +// -------- ISI_WPCR : (ISI Offset: 0xe4) Write Protection Control Register -------- +#define AT91C_ISI_WP_EN (0x1 << 0) // (ISI) Write Protection Enable +#define AT91C_ISI_WP_EN_DISABLE (0x0) // (ISI) Write Operation is disabled (if WP_KEY corresponds) +#define AT91C_ISI_WP_EN_ENABLE (0x1) // (ISI) Write Operation is enabled (if WP_KEY corresponds) +#define AT91C_ISI_WP_KEY (0xFFFFFF << 8) // (ISI) Write Protection Key +// -------- ISI_WPSR : (ISI Offset: 0xe8) Write Protection Status Register -------- +#define AT91C_ISI_WP_VS (0xF << 0) // (ISI) Write Protection Violation Status +#define AT91C_ISI_WP_VS_NO_VIOLATION (0x0) // (ISI) No Write Protection Violation detected since last read +#define AT91C_ISI_WP_VS_ON_WRITE (0x1) // (ISI) Write Protection Violation detected since last read +#define AT91C_ISI_WP_VS_ON_RESET (0x2) // (ISI) Software Reset Violation detected since last read +#define AT91C_ISI_WP_VS_ON_BOTH (0x3) // (ISI) Write Protection and Software Reset Violation detected since last read +#define AT91C_ISI_WP_VSRC (0xF << 8) // (ISI) Write Protection Violation Source +#define AT91C_ISI_WP_VSRC_NO_VIOLATION (0x0 << 8) // (ISI) No Write Protection Violation detected since last read +#define AT91C_ISI_WP_VSRC_ISI_CFG1 (0x1 << 8) // (ISI) Write Protection Violation detected on ISI_CFG1 since last read +#define AT91C_ISI_WP_VSRC_ISI_CFG2 (0x2 << 8) // (ISI) Write Protection Violation detected on ISI_CFG2 since last read +#define AT91C_ISI_WP_VSRC_ISI_PSIZE (0x3 << 8) // (ISI) Write Protection Violation detected on ISI_PSIZE since last read +#define AT91C_ISI_WP_VSRC_ISI_PDECF (0x4 << 8) // (ISI) Write Protection Violation detected on ISI_PDECF since last read +#define AT91C_ISI_WP_VSRC_ISI_Y2RSET0 (0x5 << 8) // (ISI) Write Protection Violation detected on ISI_Y2RSET0 since last read +#define AT91C_ISI_WP_VSRC_ISI_Y2RSET1 (0x6 << 8) // (ISI) Write Protection Violation detected on ISI_Y2RSET1 since last read +#define AT91C_ISI_WP_VSRC_ISI_R2YSET0 (0x7 << 8) // (ISI) Write Protection Violation detected on ISI_R2YSET0 since last read +#define AT91C_ISI_WP_VSRC_ISI_R2YSET1 (0x8 << 8) // (ISI) Write Protection Violation detected on ISI_R2YSET1 since last read +#define AT91C_ISI_WP_VSRC_ISI_R2YSET2 (0x9 << 8) // (ISI) Write Protection Violation detected on ISI_R2YSET2 since last read + +// ***************************************************************************** +// SOFTWARE API DEFINITION FOR USB Host Interface +// ***************************************************************************** +#ifndef __ASSEMBLY__ +typedef struct _AT91S_UHPHS_OHCI { + AT91C_REG UHPHS_OHCI_HcRevision; // Revision + AT91C_REG UHPHS_OHCI_HcControl; // Operating modes for the Host Controller + AT91C_REG UHPHS_OHCI_HcCommandStatus; // Command & status Register + AT91C_REG UHPHS_OHCI_HcInterruptStatus; // Interrupt Status Register + AT91C_REG UHPHS_OHCI_HcInterruptEnable; // Interrupt Enable Register + AT91C_REG UHPHS_OHCI_HcInterruptDisable; // Interrupt Disable Register + AT91C_REG UHPHS_OHCI_HcHCCA; // Pointer to the Host Controller Communication Area + AT91C_REG UHPHS_OHCI_HcPeriodCurrentED; // Current Isochronous or Interrupt Endpoint Descriptor + AT91C_REG UHPHS_OHCI_HcControlHeadED; // First Endpoint Descriptor of the Control list + AT91C_REG UHPHS_OHCI_HcControlCurrentED; // Endpoint Control and Status Register + AT91C_REG UHPHS_OHCI_HcBulkHeadED; // First endpoint register of the Bulk list + AT91C_REG UHPHS_OHCI_HcBulkCurrentED; // Current endpoint of the Bulk list + AT91C_REG UHPHS_OHCI_HcBulkDoneHead; // Last completed transfer descriptor + AT91C_REG UHPHS_OHCI_HcFmInterval; // Bit time between 2 consecutive SOFs + AT91C_REG UHPHS_OHCI_HcFmRemaining; // Bit time remaining in the current Frame + AT91C_REG UHPHS_OHCI_HcFmNumber; // Frame number + AT91C_REG UHPHS_OHCI_HcPeriodicStart; // Periodic Start + AT91C_REG UHPHS_OHCI_HcLSThreshold; // LS Threshold + AT91C_REG UHPHS_OHCI_HcRhDescriptorA; // Root Hub characteristics A + AT91C_REG UHPHS_OHCI_HcRhDescriptorB; // Root Hub characteristics B + AT91C_REG UHPHS_OHCI_HcRhStatus; // Root Hub Status register + AT91C_REG UHPHS_OHCI_HcRhPortStatus[2]; // Root Hub Port Status Register +} AT91S_UHPHS_OHCI, *AT91PS_UHPHS_OHCI; +#else +#define HcRevision (AT91C_CAST(AT91C_REG *) 0x00000000) // (HcRevision) Revision +#define HcControl (AT91C_CAST(AT91C_REG *) 0x00000004) // (HcControl) Operating modes for the Host Controller +#define HcCommandStatus (AT91C_CAST(AT91C_REG *) 0x00000008) // (HcCommandStatus) Command & status Register +#define HcInterruptStatus (AT91C_CAST(AT91C_REG *) 0x0000000C) // (HcInterruptStatus) Interrupt Status Register +#define HcInterruptEnable (AT91C_CAST(AT91C_REG *) 0x00000010) // (HcInterruptEnable) Interrupt Enable Register +#define HcInterruptDisable (AT91C_CAST(AT91C_REG *) 0x00000014) // (HcInterruptDisable) Interrupt Disable Register +#define HcHCCA (AT91C_CAST(AT91C_REG *) 0x00000018) // (HcHCCA) Pointer to the Host Controller Communication Area +#define HcPeriodCurrentED (AT91C_CAST(AT91C_REG *) 0x0000001C) // (HcPeriodCurrentED) Current Isochronous or Interrupt Endpoint Descriptor +#define HcControlHeadED (AT91C_CAST(AT91C_REG *) 0x00000020) // (HcControlHeadED) First Endpoint Descriptor of the Control list +#define HcControlCurrentED (AT91C_CAST(AT91C_REG *) 0x00000024) // (HcControlCurrentED) Endpoint Control and Status Register +#define HcBulkHeadED (AT91C_CAST(AT91C_REG *) 0x00000028) // (HcBulkHeadED) First endpoint register of the Bulk list +#define HcBulkCurrentED (AT91C_CAST(AT91C_REG *) 0x0000002C) // (HcBulkCurrentED) Current endpoint of the Bulk list +#define HcBulkDoneHead (AT91C_CAST(AT91C_REG *) 0x00000030) // (HcBulkDoneHead) Last completed transfer descriptor +#define HcFmInterval (AT91C_CAST(AT91C_REG *) 0x00000034) // (HcFmInterval) Bit time between 2 consecutive SOFs +#define HcFmRemaining (AT91C_CAST(AT91C_REG *) 0x00000038) // (HcFmRemaining) Bit time remaining in the current Frame +#define HcFmNumber (AT91C_CAST(AT91C_REG *) 0x0000003C) // (HcFmNumber) Frame number +#define HcPeriodicStart (AT91C_CAST(AT91C_REG *) 0x00000040) // (HcPeriodicStart) Periodic Start +#define HcLSThreshold (AT91C_CAST(AT91C_REG *) 0x00000044) // (HcLSThreshold) LS Threshold +#define HcRhDescriptorA (AT91C_CAST(AT91C_REG *) 0x00000048) // (HcRhDescriptorA) Root Hub characteristics A +#define HcRhDescriptorB (AT91C_CAST(AT91C_REG *) 0x0000004C) // (HcRhDescriptorB) Root Hub characteristics B +#define HcRhStatus (AT91C_CAST(AT91C_REG *) 0x00000050) // (HcRhStatus) Root Hub Status register +#define HcRhPortStatus (AT91C_CAST(AT91C_REG *) 0x00000054) // (HcRhPortStatus) Root Hub Port Status Register + +#endif + +// ***************************************************************************** +// SOFTWARE API DEFINITION FOR USB Host Interface +// ***************************************************************************** +#ifndef __ASSEMBLY__ +typedef struct _AT91S_UHPHS_EHCI { + AT91C_REG UHPHS_EHCI_VERSION; // + AT91C_REG UHPHS_EHCI_HCSPARAMS; // + AT91C_REG UHPHS_EHCI_HCCPARAMS; // + AT91C_REG UHPHS_EHCI_HCSPPORTROUTE; // + AT91C_REG UHPHS_EHCI_USBCMD; // + AT91C_REG UHPHS_EHCI_USBSTS; // + AT91C_REG UHPHS_EHCI_USBINTR; // + AT91C_REG UHPHS_EHCI_FRINDEX; // + AT91C_REG UHPHS_EHCI_CTRLDSSEGMENT; // + AT91C_REG UHPHS_EHCI_PERIODICLISTBASE; // + AT91C_REG UHPHS_EHCI_ASYNCLISTADDR; // + AT91C_REG Reserved0[9]; // + AT91C_REG UHPHS_EHCI_CONFIGFLAG; // + AT91C_REG UHPHS_EHCI_PORTSC[2]; // + AT91C_REG Reserved1[13]; // + AT91C_REG UHPHS_EHCI_INSNREG00; // + AT91C_REG UHPHS_EHCI_INSNREG01; // + AT91C_REG UHPHS_EHCI_INSNREG02; // + AT91C_REG UHPHS_EHCI_INSNREG03; // + AT91C_REG UHPHS_EHCI_INSNREG04; // + AT91C_REG UHPHS_EHCI_INSNREG05; // +} AT91S_UHPHS_EHCI, *AT91PS_UHPHS_EHCI; +#else +#define VERSION (AT91C_CAST(AT91C_REG *) 0x00000000) // (VERSION) +#define HCSPARAMS (AT91C_CAST(AT91C_REG *) 0x00000004) // (HCSPARAMS) +#define HCCPARAMS (AT91C_CAST(AT91C_REG *) 0x00000008) // (HCCPARAMS) +#define HCSPPORTROUTE (AT91C_CAST(AT91C_REG *) 0x0000000C) // (HCSPPORTROUTE) +#define USBCMD (AT91C_CAST(AT91C_REG *) 0x00000010) // (USBCMD) +#define USBSTS (AT91C_CAST(AT91C_REG *) 0x00000014) // (USBSTS) +#define USBINTR (AT91C_CAST(AT91C_REG *) 0x00000018) // (USBINTR) +#define FRINDEX (AT91C_CAST(AT91C_REG *) 0x0000001C) // (FRINDEX) +#define CTRLDSSEGMENT (AT91C_CAST(AT91C_REG *) 0x00000020) // (CTRLDSSEGMENT) +#define PERIODICLISTBASE (AT91C_CAST(AT91C_REG *) 0x00000024) // (PERIODICLISTBASE) +#define ASYNCLISTADDR (AT91C_CAST(AT91C_REG *) 0x00000028) // (ASYNCLISTADDR) +#define CONFIGFLAG (AT91C_CAST(AT91C_REG *) 0x00000050) // (CONFIGFLAG) +#define PORTSC (AT91C_CAST(AT91C_REG *) 0x00000054) // (PORTSC) +#define INSNREG00 (AT91C_CAST(AT91C_REG *) 0x00000090) // (INSNREG00) +#define INSNREG01 (AT91C_CAST(AT91C_REG *) 0x00000094) // (INSNREG01) +#define INSNREG02 (AT91C_CAST(AT91C_REG *) 0x00000098) // (INSNREG02) +#define INSNREG03 (AT91C_CAST(AT91C_REG *) 0x0000009C) // (INSNREG03) +#define INSNREG04 (AT91C_CAST(AT91C_REG *) 0x000000A0) // (INSNREG04) +#define INSNREG05 (AT91C_CAST(AT91C_REG *) 0x000000A4) // (INSNREG05) + +#endif +// -------- VERSION : (UHPHS_EHCI Offset: 0x0) -------- +#define AT91C_UHPHS_CAPLENGTH (0xFF << 0) // (UHPHS_EHCI) CapLength : Offset for control registers +#define AT91C_UHPHS_HCIVERSION (0xFF << 16) // (UHPHS_EHCI) Hci Version + +// ***************************************************************************** +// SOFTWARE API DEFINITION FOR True Random Generator +// ***************************************************************************** +#ifndef __ASSEMBLY__ +typedef struct _AT91S_TRNG { + AT91C_REG TRNG_CR; // Control Register + AT91C_REG Reserved0[3]; // + AT91C_REG TRNG_IER; // Interrupt Enable Register + AT91C_REG TRNG_IDR; // Interrupt Disable Register + AT91C_REG TRNG_IMR; // Interrupt Mask Register + AT91C_REG TRNG_ISR; // Interrupt Status Register + AT91C_REG Reserved1[12]; // + AT91C_REG TRNG_ODATA; // Output Data Register + AT91C_REG Reserved2[42]; // + AT91C_REG TRNG_VERSION; // TRNG Version Register +} AT91S_TRNG, *AT91PS_TRNG; +#else +#define TRNG_CR (AT91C_CAST(AT91C_REG *) 0x00000000) // (TRNG_CR) Control Register +#define TRNG_IER (AT91C_CAST(AT91C_REG *) 0x00000010) // (TRNG_IER) Interrupt Enable Register +#define TRNG_IDR (AT91C_CAST(AT91C_REG *) 0x00000014) // (TRNG_IDR) Interrupt Disable Register +#define TRNG_IMR (AT91C_CAST(AT91C_REG *) 0x00000018) // (TRNG_IMR) Interrupt Mask Register +#define TRNG_ISR (AT91C_CAST(AT91C_REG *) 0x0000001C) // (TRNG_ISR) Interrupt Status Register +#define TRNG_ODATA (AT91C_CAST(AT91C_REG *) 0x00000050) // (TRNG_ODATA) Output Data Register +#define TRNG_VERSION (AT91C_CAST(AT91C_REG *) 0x000000FC) // (TRNG_VERSION) TRNG Version Register + +#endif +// -------- TRNG_CR : (TRNG Offset: 0x0) Control Register -------- +#define AT91C_TRNG_ENABLE (0x1 << 0) // (TRNG) Enable TRNG +// -------- TRNG_IER : (TRNG Offset: 0x10) Interrupt Enable Register -------- +#define AT91C_TRNG_DATRDY (0x1 << 0) // (TRNG) DATRDY +// -------- TRNG_IDR : (TRNG Offset: 0x14) Interrupt Disable Register -------- +// -------- TRNG_IMR : (TRNG Offset: 0x18) Interrupt Mask Register -------- +// -------- TRNG_ISR : (TRNG Offset: 0x1c) Interrupt Status Register -------- + +// ***************************************************************************** +// REGISTER ADDRESS DEFINITION FOR AT91SAM9G45 +// ***************************************************************************** +// ========== Register definition for SFR peripheral ========== +#define AT91C_SFR_INT (AT91C_CAST(AT91C_REG *) 0xFFF74014) // (SFR) OHCI suspend Interrupt status +#define AT91C_SFR_DDRCFG (AT91C_CAST(AT91C_REG *) 0xFFF74004) // (SFR) DDR2 SSTL18 control +#define AT91C_SFR_UTMICFG (AT91C_CAST(AT91C_REG *) 0xFFF74010) // (SFR) UTMI Software Reset, and OHCI suspend interrupt control +#define AT91C_SFR_EBIDELAY (AT91C_CAST(AT91C_REG *) 0xFFF7400C) // (SFR) EBI DDR controller clock delay +#define AT91C_SFR_DDRDELAY (AT91C_CAST(AT91C_REG *) 0xFFF74008) // (SFR) DDR2 controller clock delay +#define AT91C_SFR_EMA (AT91C_CAST(AT91C_REG *) 0xFFF74000) // (SFR) memory Extra Margin Adjustment control +// ========== Register definition for SYS peripheral ========== +#define AT91C_SYS_SLCKSEL (AT91C_CAST(AT91C_REG *) 0xFFFFFD50) // (SYS) Slow Clock Selection Register +#define AT91C_SYS_GPBR (AT91C_CAST(AT91C_REG *) 0xFFFFFD60) // (SYS) General Purpose Register +// ========== Register definition for EBI peripheral ========== +#define AT91C_EBI_DUMMY (AT91C_CAST(AT91C_REG *) 0xFFFFE200) // (EBI) Dummy register - Do not use +// ========== Register definition for DDR2CP1 peripheral ========== +#define AT91C_DDR2CP1_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFE434) // (DDR2CP1) Pad delay2 Register +#define AT91C_DDR2CP1_T3PR (AT91C_CAST(AT91C_REG *) 0xFFFFE418) // (DDR2CP1) Timing3 Register +#define AT91C_DDR2CP1_RTR (AT91C_CAST(AT91C_REG *) 0xFFFFE404) // (DDR2CP1) Refresh Timer Register +#define AT91C_DDR2CP1_T0PR (AT91C_CAST(AT91C_REG *) 0xFFFFE40C) // (DDR2CP1) Timing0 Register +#define AT91C_DDR2CP1_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFFE4E8) // (DDR2CP1) High Speed Register +#define AT91C_DDR2CP1_DELAY8 (AT91C_CAST(AT91C_REG *) 0xFFFFE44C) // (DDR2CP1) Pad delay8 Register +#define AT91C_DDR2CP1_LPR (AT91C_CAST(AT91C_REG *) 0xFFFFE41C) // (DDR2CP1) Low-power Register +#define AT91C_DDR2CP1_VER (AT91C_CAST(AT91C_REG *) 0xFFFFE428) // (DDR2CP1) DLL Version Register +#define AT91C_DDR2CP1_DELAY7 (AT91C_CAST(AT91C_REG *) 0xFFFFE448) // (DDR2CP1) Pad delay7 Register +#define AT91C_DDR2CP1_CR (AT91C_CAST(AT91C_REG *) 0xFFFFE408) // (DDR2CP1) Configuration Register +#define AT91C_DDR2CP1_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFFE4E4) // (DDR2CP1) High Speed Register +#define AT91C_DDR2CP1_MR (AT91C_CAST(AT91C_REG *) 0xFFFFE400) // (DDR2CP1) Mode Register +#define AT91C_DDR2CP1_DELAY5 (AT91C_CAST(AT91C_REG *) 0xFFFFE440) // (DDR2CP1) Pad delay5 Register +#define AT91C_DDR2CP1_T2PR (AT91C_CAST(AT91C_REG *) 0xFFFFE414) // (DDR2CP1) Timing2 Register +#define AT91C_DDR2CP1_HS (AT91C_CAST(AT91C_REG *) 0xFFFFE42C) // (DDR2CP1) High Speed Register +#define AT91C_DDR2CP1_MDR (AT91C_CAST(AT91C_REG *) 0xFFFFE420) // (DDR2CP1) Memory Device Register +#define AT91C_DDR2CP1_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFE43C) // (DDR2CP1) Pad delay4 Register +#define AT91C_DDR2CP1_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFE430) // (DDR2CP1) Pad delay1 Register +#define AT91C_DDR2CP1_DELAY6 (AT91C_CAST(AT91C_REG *) 0xFFFFE444) // (DDR2CP1) Pad delay6 Register +#define AT91C_DDR2CP1_DLL (AT91C_CAST(AT91C_REG *) 0xFFFFE424) // (DDR2CP1) DLL Information Register +#define AT91C_DDR2CP1_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFE438) // (DDR2CP1) Pad delay3 Register +#define AT91C_DDR2CP1_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFE4FC) // (DDR2CP1) Version Register +#define AT91C_DDR2CP1_T1PR (AT91C_CAST(AT91C_REG *) 0xFFFFE410) // (DDR2CP1) Timing1 Register +// ========== Register definition for DDR2C peripheral ========== +#define AT91C_DDR2C_DELAY8 (AT91C_CAST(AT91C_REG *) 0xFFFFE64C) // (DDR2C) Pad delay8 Register +#define AT91C_DDR2C_VER (AT91C_CAST(AT91C_REG *) 0xFFFFE628) // (DDR2C) DLL Version Register +#define AT91C_DDR2C_RTR (AT91C_CAST(AT91C_REG *) 0xFFFFE604) // (DDR2C) Refresh Timer Register +#define AT91C_DDR2C_T0PR (AT91C_CAST(AT91C_REG *) 0xFFFFE60C) // (DDR2C) Timing0 Register +#define AT91C_DDR2C_DELAY5 (AT91C_CAST(AT91C_REG *) 0xFFFFE640) // (DDR2C) Pad delay5 Register +#define AT91C_DDR2C_LPR (AT91C_CAST(AT91C_REG *) 0xFFFFE61C) // (DDR2C) Low-power Register +#define AT91C_DDR2C_HS (AT91C_CAST(AT91C_REG *) 0xFFFFE62C) // (DDR2C) High Speed Register +#define AT91C_DDR2C_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFE634) // (DDR2C) Pad delay2 Register +#define AT91C_DDR2C_T2PR (AT91C_CAST(AT91C_REG *) 0xFFFFE614) // (DDR2C) Timing2 Register +#define AT91C_DDR2C_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFE630) // (DDR2C) Pad delay1 Register +#define AT91C_DDR2C_T1PR (AT91C_CAST(AT91C_REG *) 0xFFFFE610) // (DDR2C) Timing1 Register +#define AT91C_DDR2C_MDR (AT91C_CAST(AT91C_REG *) 0xFFFFE620) // (DDR2C) Memory Device Register +#define AT91C_DDR2C_DELAY6 (AT91C_CAST(AT91C_REG *) 0xFFFFE644) // (DDR2C) Pad delay6 Register +#define AT91C_DDR2C_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFE6FC) // (DDR2C) Version Register +#define AT91C_DDR2C_MR (AT91C_CAST(AT91C_REG *) 0xFFFFE600) // (DDR2C) Mode Register +#define AT91C_DDR2C_DLL (AT91C_CAST(AT91C_REG *) 0xFFFFE624) // (DDR2C) DLL Information Register +#define AT91C_DDR2C_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFE63C) // (DDR2C) Pad delay4 Register +#define AT91C_DDR2C_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFFE6E4) // (DDR2C) High Speed Register +#define AT91C_DDR2C_CR (AT91C_CAST(AT91C_REG *) 0xFFFFE608) // (DDR2C) Configuration Register +#define AT91C_DDR2C_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFE638) // (DDR2C) Pad delay3 Register +#define AT91C_DDR2C_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFFE6E8) // (DDR2C) High Speed Register +#define AT91C_DDR2C_DELAY7 (AT91C_CAST(AT91C_REG *) 0xFFFFE648) // (DDR2C) Pad delay7 Register +#define AT91C_DDR2C_T3PR (AT91C_CAST(AT91C_REG *) 0xFFFFE618) // (DDR2C) Timing3 Register +// ========== Register definition for SMC peripheral ========== +#define AT91C_SMC_PULSE7 (AT91C_CAST(AT91C_REG *) 0xFFFFE874) // (SMC) Pulse Register for CS 7 +#define AT91C_SMC_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFE8C0) // (SMC) SMC Delay Control Register +#define AT91C_SMC_CYCLE2 (AT91C_CAST(AT91C_REG *) 0xFFFFE828) // (SMC) Cycle Register for CS 2 +#define AT91C_SMC_DELAY5 (AT91C_CAST(AT91C_REG *) 0xFFFFE8D0) // (SMC) SMC Delay Control Register +#define AT91C_SMC_DELAY6 (AT91C_CAST(AT91C_REG *) 0xFFFFE8D4) // (SMC) SMC Delay Control Register +#define AT91C_SMC_PULSE2 (AT91C_CAST(AT91C_REG *) 0xFFFFE824) // (SMC) Pulse Register for CS 2 +#define AT91C_SMC_SETUP6 (AT91C_CAST(AT91C_REG *) 0xFFFFE860) // (SMC) Setup Register for CS 6 +#define AT91C_SMC_SETUP5 (AT91C_CAST(AT91C_REG *) 0xFFFFE850) // (SMC) Setup Register for CS 5 +#define AT91C_SMC_CYCLE6 (AT91C_CAST(AT91C_REG *) 0xFFFFE868) // (SMC) Cycle Register for CS 6 +#define AT91C_SMC_PULSE6 (AT91C_CAST(AT91C_REG *) 0xFFFFE864) // (SMC) Pulse Register for CS 6 +#define AT91C_SMC_CTRL5 (AT91C_CAST(AT91C_REG *) 0xFFFFE85C) // (SMC) Control Register for CS 5 +#define AT91C_SMC_CTRL3 (AT91C_CAST(AT91C_REG *) 0xFFFFE83C) // (SMC) Control Register for CS 3 +#define AT91C_SMC_DELAY7 (AT91C_CAST(AT91C_REG *) 0xFFFFE8D8) // (SMC) SMC Delay Control Register +#define AT91C_SMC_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFE8C8) // (SMC) SMC Delay Control Register +#define AT91C_SMC_CYCLE0 (AT91C_CAST(AT91C_REG *) 0xFFFFE808) // (SMC) Cycle Register for CS 0 +#define AT91C_SMC_SETUP1 (AT91C_CAST(AT91C_REG *) 0xFFFFE810) // (SMC) Setup Register for CS 1 +#define AT91C_SMC_PULSE5 (AT91C_CAST(AT91C_REG *) 0xFFFFE854) // (SMC) Pulse Register for CS 5 +#define AT91C_SMC_SETUP7 (AT91C_CAST(AT91C_REG *) 0xFFFFE870) // (SMC) Setup Register for CS 7 +#define AT91C_SMC_CTRL4 (AT91C_CAST(AT91C_REG *) 0xFFFFE84C) // (SMC) Control Register for CS 4 +#define AT91C_SMC_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFE8C4) // (SMC) SMC Delay Control Register +#define AT91C_SMC_PULSE3 (AT91C_CAST(AT91C_REG *) 0xFFFFE834) // (SMC) Pulse Register for CS 3 +#define AT91C_SMC_CYCLE4 (AT91C_CAST(AT91C_REG *) 0xFFFFE848) // (SMC) Cycle Register for CS 4 +#define AT91C_SMC_CTRL1 (AT91C_CAST(AT91C_REG *) 0xFFFFE81C) // (SMC) Control Register for CS 1 +#define AT91C_SMC_SETUP3 (AT91C_CAST(AT91C_REG *) 0xFFFFE830) // (SMC) Setup Register for CS 3 +#define AT91C_SMC_CTRL0 (AT91C_CAST(AT91C_REG *) 0xFFFFE80C) // (SMC) Control Register for CS 0 +#define AT91C_SMC_CYCLE7 (AT91C_CAST(AT91C_REG *) 0xFFFFE878) // (SMC) Cycle Register for CS 7 +#define AT91C_SMC_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFE8CC) // (SMC) SMC Delay Control Register +#define AT91C_SMC_CYCLE1 (AT91C_CAST(AT91C_REG *) 0xFFFFE818) // (SMC) Cycle Register for CS 1 +#define AT91C_SMC_SETUP2 (AT91C_CAST(AT91C_REG *) 0xFFFFE820) // (SMC) Setup Register for CS 2 +#define AT91C_SMC_PULSE1 (AT91C_CAST(AT91C_REG *) 0xFFFFE814) // (SMC) Pulse Register for CS 1 +#define AT91C_SMC_DELAY8 (AT91C_CAST(AT91C_REG *) 0xFFFFE8DC) // (SMC) SMC Delay Control Register +#define AT91C_SMC_CTRL2 (AT91C_CAST(AT91C_REG *) 0xFFFFE82C) // (SMC) Control Register for CS 2 +#define AT91C_SMC_PULSE4 (AT91C_CAST(AT91C_REG *) 0xFFFFE844) // (SMC) Pulse Register for CS 4 +#define AT91C_SMC_SETUP4 (AT91C_CAST(AT91C_REG *) 0xFFFFE840) // (SMC) Setup Register for CS 4 +#define AT91C_SMC_CYCLE3 (AT91C_CAST(AT91C_REG *) 0xFFFFE838) // (SMC) Cycle Register for CS 3 +#define AT91C_SMC_SETUP0 (AT91C_CAST(AT91C_REG *) 0xFFFFE800) // (SMC) Setup Register for CS 0 +#define AT91C_SMC_CYCLE5 (AT91C_CAST(AT91C_REG *) 0xFFFFE858) // (SMC) Cycle Register for CS 5 +#define AT91C_SMC_PULSE0 (AT91C_CAST(AT91C_REG *) 0xFFFFE804) // (SMC) Pulse Register for CS 0 +#define AT91C_SMC_CTRL6 (AT91C_CAST(AT91C_REG *) 0xFFFFE86C) // (SMC) Control Register for CS 6 +#define AT91C_SMC_CTRL7 (AT91C_CAST(AT91C_REG *) 0xFFFFE87C) // (SMC) Control Register for CS 7 +// ========== Register definition for MATRIX peripheral ========== +#define AT91C_MATRIX_SCFG1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA44) // (MATRIX) Slave Configuration Register 1 : SRAM S1 +#define AT91C_MATRIX_MRCR (AT91C_CAST(AT91C_REG *) 0xFFFFEB00) // (MATRIX) Master Remap Control Register +#define AT91C_MATRIX_PRAS2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA90) // (MATRIX) PRAS2 : SRAM S2 +#define AT91C_MATRIX_PRAS1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA88) // (MATRIX) PRAS1 : SRAM S1 +#define AT91C_MATRIX_PRAS0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA80) // (MATRIX) PRAS0 : SRAM S0 +#define AT91C_MATRIX_MCFG8 (AT91C_CAST(AT91C_REG *) 0xFFFFEA20) // (MATRIX) Master Configuration Register 8 : eMAC +#define AT91C_MATRIX_MCFG2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA08) // (MATRIX) Master Configuration Register 2 : pdc +#define AT91C_MATRIX_EBICSA (AT91C_CAST(AT91C_REG *) 0xFFFFEB28) // (MATRIX) EBI Chip Select Assignment Register +#define AT91C_MATRIX_PRAS4 (AT91C_CAST(AT91C_REG *) 0xFFFFEAA0) // (MATRIX) PRAS4 : ROM + USB Dev + USB EHCI + USB OHCI + LCD + Video Decoder +#define AT91C_MATRIX_MCFG3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA0C) // (MATRIX) Master Configuration Register 3 : USB Host OHCI +#define AT91C_MATRIX_SCFG0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA40) // (MATRIX) Slave Configuration Register 0 : SRAM S0 +#define AT91C_MATRIX_MCFG7 (AT91C_CAST(AT91C_REG *) 0xFFFFEA1C) // (MATRIX) Master Configuration Register 7 : lcdc +#define AT91C_MATRIX_PRAS6 (AT91C_CAST(AT91C_REG *) 0xFFFFEAB0) // (MATRIX) PRAS6 : DDR2 S1 +#define AT91C_MATRIX_SCFG7 (AT91C_CAST(AT91C_REG *) 0xFFFFEA5C) // (MATRIX) Slave Configuration Register 7 : DDR2 S2 +#define AT91C_MATRIX_PRAS7 (AT91C_CAST(AT91C_REG *) 0xFFFFEAB8) // (MATRIX) PRAS7 : DDR2 S2 +#define AT91C_MATRIX_SCFG2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA48) // (MATRIX) Slave Configuration Register 2 : SRAM S2 +#define AT91C_MATRIX_WRPROTST (AT91C_CAST(AT91C_REG *) 0xFFFFEBE8) // (MATRIX) Write Protection Status Register +#define AT91C_MATRIX_PRBS0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA84) // (MATRIX) PRBS0 : SRAM S0 +#define AT91C_MATRIX_PRBS2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA94) // (MATRIX) PRBS2 : SRAM S2 +#define AT91C_MATRIX_MCFG4 (AT91C_CAST(AT91C_REG *) 0xFFFFEA10) // (MATRIX) Master Configuration Register 4 : DMA0 +#define AT91C_MATRIX_SCFG5 (AT91C_CAST(AT91C_REG *) 0xFFFFEA54) // (MATRIX) Slave Configuration Register 5 : DDR2 S0 +#define AT91C_MATRIX_PRBS6 (AT91C_CAST(AT91C_REG *) 0xFFFFEAB4) // (MATRIX) PRBS6 : DDR2 S1 +#define AT91C_MATRIX_MCFG1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA04) // (MATRIX) Master Configuration Register 1 ; ARM-D +#define AT91C_MATRIX_SCFG6 (AT91C_CAST(AT91C_REG *) 0xFFFFEA58) // (MATRIX) Slave Configuration Register 6 : DDR2 S1 +#define AT91C_MATRIX_SCFG4 (AT91C_CAST(AT91C_REG *) 0xFFFFEA50) // (MATRIX) Slave Configuration Register 4 ; ROM + USB Dev + USB EHCI + USB OHCI + LCD + Video Decoder +#define AT91C_MATRIX_PRBS1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA8C) // (MATRIX) PRBS1 : SRAM S1 +#define AT91C_MATRIX_PRBS3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA9C) // (MATRIX) PRBS3 : SRAM S3 +#define AT91C_MATRIX_WRPROTEN (AT91C_CAST(AT91C_REG *) 0xFFFFEBE4) // (MATRIX) Write Protection Control Register +#define AT91C_MATRIX_TCMR (AT91C_CAST(AT91C_REG *) 0xFFFFEB10) // (MATRIX) Bus Matrix TCM Configuration Register +#define AT91C_MATRIX_MCFG0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA00) // (MATRIX) Master Configuration Register 0 : ARM-I +#define AT91C_MATRIX_PRAS5 (AT91C_CAST(AT91C_REG *) 0xFFFFEAA8) // (MATRIX) PRAS5 : DDR2 S0 +#define AT91C_MATRIX_DDRMPR (AT91C_CAST(AT91C_REG *) 0xFFFFEB18) // (MATRIX) DDR Multi-Port Register +#define AT91C_MATRIX_PRBS4 (AT91C_CAST(AT91C_REG *) 0xFFFFEAA4) // (MATRIX) PRBS4 : ROM + USB Dev + USB EHCI + USB OHCI + LCD + Video Decoder +#define AT91C_MATRIX_MCFG6 (AT91C_CAST(AT91C_REG *) 0xFFFFEA18) // (MATRIX) Master Configuration Register 6 : hisi +#define AT91C_MATRIX_PRBS5 (AT91C_CAST(AT91C_REG *) 0xFFFFEAAC) // (MATRIX) PRBS5 : DDR2 S0 +#define AT91C_MATRIX_MCFG9 (AT91C_CAST(AT91C_REG *) 0xFFFFEA24) // (MATRIX) Master Configuration Register 9 : USB Device +#define AT91C_MATRIX_MCFG5 (AT91C_CAST(AT91C_REG *) 0xFFFFEA14) // (MATRIX) Master Configuration Register 5 : DMA1 +#define AT91C_MATRIX_PRBS7 (AT91C_CAST(AT91C_REG *) 0xFFFFEABC) // (MATRIX) PRBS7 : DDR2 S2 +#define AT91C_MATRIX_MCFG10 (AT91C_CAST(AT91C_REG *) 0xFFFFEA28) // (MATRIX) Master Configuration Register 10 : USB Host EHCI +#define AT91C_MATRIX_PRAS3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA98) // (MATRIX) PRAS3 : SRAM S3 +#define AT91C_MATRIX_SCFG3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA4C) // (MATRIX) Slave Configuration Register 3 : SRAM S3 +// ========== Register definition for AIC peripheral ========== +#define AT91C_AIC_IVR (AT91C_CAST(AT91C_REG *) 0xFFFFF100) // (AIC) IRQ Vector Register +#define AT91C_AIC_SMR (AT91C_CAST(AT91C_REG *) 0xFFFFF000) // (AIC) Source Mode Register +#define AT91C_AIC_FVR (AT91C_CAST(AT91C_REG *) 0xFFFFF104) // (AIC) FIQ Vector Register +#define AT91C_AIC_DCR (AT91C_CAST(AT91C_REG *) 0xFFFFF138) // (AIC) Debug Control Register (Protect) +#define AT91C_AIC_EOICR (AT91C_CAST(AT91C_REG *) 0xFFFFF130) // (AIC) End of Interrupt Command Register +#define AT91C_AIC_SVR (AT91C_CAST(AT91C_REG *) 0xFFFFF080) // (AIC) Source Vector Register +#define AT91C_AIC_FFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF148) // (AIC) Fast Forcing Status Register +#define AT91C_AIC_ICCR (AT91C_CAST(AT91C_REG *) 0xFFFFF128) // (AIC) Interrupt Clear Command Register +#define AT91C_AIC_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF108) // (AIC) Interrupt Status Register +#define AT91C_AIC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF110) // (AIC) Interrupt Mask Register +#define AT91C_AIC_IPR (AT91C_CAST(AT91C_REG *) 0xFFFFF10C) // (AIC) Interrupt Pending Register +#define AT91C_AIC_FFER (AT91C_CAST(AT91C_REG *) 0xFFFFF140) // (AIC) Fast Forcing Enable Register +#define AT91C_AIC_IECR (AT91C_CAST(AT91C_REG *) 0xFFFFF120) // (AIC) Interrupt Enable Command Register +#define AT91C_AIC_ISCR (AT91C_CAST(AT91C_REG *) 0xFFFFF12C) // (AIC) Interrupt Set Command Register +#define AT91C_AIC_FFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF144) // (AIC) Fast Forcing Disable Register +#define AT91C_AIC_CISR (AT91C_CAST(AT91C_REG *) 0xFFFFF114) // (AIC) Core Interrupt Status Register +#define AT91C_AIC_IDCR (AT91C_CAST(AT91C_REG *) 0xFFFFF124) // (AIC) Interrupt Disable Command Register +#define AT91C_AIC_SPU (AT91C_CAST(AT91C_REG *) 0xFFFFF134) // (AIC) Spurious Vector Register +// ========== Register definition for PDC_DBGU peripheral ========== +#define AT91C_DBGU_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF20) // (PDC_DBGU) PDC Transfer Control Register +#define AT91C_DBGU_RCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF04) // (PDC_DBGU) Receive Counter Register +#define AT91C_DBGU_TCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF0C) // (PDC_DBGU) Transmit Counter Register +#define AT91C_DBGU_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF14) // (PDC_DBGU) Receive Next Counter Register +#define AT91C_DBGU_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF18) // (PDC_DBGU) Transmit Next Pointer Register +#define AT91C_DBGU_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF10) // (PDC_DBGU) Receive Next Pointer Register +#define AT91C_DBGU_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFFEF24) // (PDC_DBGU) PDC Transfer Status Register +#define AT91C_DBGU_RPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF00) // (PDC_DBGU) Receive Pointer Register +#define AT91C_DBGU_TPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF08) // (PDC_DBGU) Transmit Pointer Register +#define AT91C_DBGU_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF1C) // (PDC_DBGU) Transmit Next Counter Register +// ========== Register definition for DBGU peripheral ========== +#define AT91C_DBGU_BRGR (AT91C_CAST(AT91C_REG *) 0xFFFFEE20) // (DBGU) Baud Rate Generator Register +#define AT91C_DBGU_CR (AT91C_CAST(AT91C_REG *) 0xFFFFEE00) // (DBGU) Control Register +#define AT91C_DBGU_THR (AT91C_CAST(AT91C_REG *) 0xFFFFEE1C) // (DBGU) Transmitter Holding Register +#define AT91C_DBGU_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFEE0C) // (DBGU) Interrupt Disable Register +#define AT91C_DBGU_EXID (AT91C_CAST(AT91C_REG *) 0xFFFFEE44) // (DBGU) Chip ID Extension Register +#define AT91C_DBGU_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFEE10) // (DBGU) Interrupt Mask Register +#define AT91C_DBGU_FNTR (AT91C_CAST(AT91C_REG *) 0xFFFFEE48) // (DBGU) Force NTRST Register +#define AT91C_DBGU_IER (AT91C_CAST(AT91C_REG *) 0xFFFFEE08) // (DBGU) Interrupt Enable Register +#define AT91C_DBGU_CSR (AT91C_CAST(AT91C_REG *) 0xFFFFEE14) // (DBGU) Channel Status Register +#define AT91C_DBGU_MR (AT91C_CAST(AT91C_REG *) 0xFFFFEE04) // (DBGU) Mode Register +#define AT91C_DBGU_RHR (AT91C_CAST(AT91C_REG *) 0xFFFFEE18) // (DBGU) Receiver Holding Register +#define AT91C_DBGU_CIDR (AT91C_CAST(AT91C_REG *) 0xFFFFEE40) // (DBGU) Chip ID Register +// ========== Register definition for PIOA peripheral ========== +#define AT91C_PIOA_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF2A4) // (PIOA) Output Write Disable Register +#define AT91C_PIOA_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF2C8) // (PIOA) PIO Delay Control Register +#define AT91C_PIOA_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF24C) // (PIOA) Interrupt Status Register +#define AT91C_PIOA_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF204) // (PIOA) PIO Disable Register +#define AT91C_PIOA_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF218) // (PIOA) Output Status Register +#define AT91C_PIOA_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF278) // (PIOA) AB Select Status Register +#define AT91C_PIOA_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF2C4) // (PIOA) PIO Delay Control Register +#define AT91C_PIOA_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF23C) // (PIOA) Pin Data Status Register +#define AT91C_PIOA_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF274) // (PIOA) Select B Register +#define AT91C_PIOA_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF2C0) // (PIOA) PIO Delay Control Register +#define AT91C_PIOA_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF264) // (PIOA) Pull-up Enable Register +#define AT91C_PIOA_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF210) // (PIOA) Output Enable Register +#define AT91C_PIOA_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF200) // (PIOA) PIO Enable Register +#define AT91C_PIOA_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF2FC) // (PIOA) PIO Version Register +#define AT91C_PIOA_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF260) // (PIOA) Pull-up Disable Register +#define AT91C_PIOA_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF238) // (PIOA) Output Data Status Register +#define AT91C_PIOA_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF2B0) // (PIOA) PIO Slewrate Control Register +#define AT91C_PIOA_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF254) // (PIOA) Multi-driver Disable Register +#define AT91C_PIOA_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF228) // (PIOA) Input Filter Status Register +#define AT91C_PIOA_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF234) // (PIOA) Clear Output Data Register +#define AT91C_PIOA_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF270) // (PIOA) Select A Register +#define AT91C_PIOA_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF2A8) // (PIOA) Output Write Status Register +#define AT91C_PIOA_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF248) // (PIOA) Interrupt Mask Register +#define AT91C_PIOA_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF268) // (PIOA) Pull-up Status Register +#define AT91C_PIOA_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF250) // (PIOA) Multi-driver Enable Register +#define AT91C_PIOA_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF224) // (PIOA) Input Filter Disable Register +#define AT91C_PIOA_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF230) // (PIOA) Set Output Data Register +#define AT91C_PIOA_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF2A0) // (PIOA) Output Write Enable Register +#define AT91C_PIOA_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF244) // (PIOA) Interrupt Disable Register +#define AT91C_PIOA_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF220) // (PIOA) Input Filter Enable Register +#define AT91C_PIOA_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF240) // (PIOA) Interrupt Enable Register +#define AT91C_PIOA_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF214) // (PIOA) Output Disable Registerr +#define AT91C_PIOA_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF258) // (PIOA) Multi-driver Status Register +#define AT91C_PIOA_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF2CC) // (PIOA) PIO Delay Control Register +#define AT91C_PIOA_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF208) // (PIOA) PIO Status Register +// ========== Register definition for PIOB peripheral ========== +#define AT91C_PIOB_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF414) // (PIOB) Output Disable Registerr +#define AT91C_PIOB_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF4CC) // (PIOB) PIO Delay Control Register +#define AT91C_PIOB_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF430) // (PIOB) Set Output Data Register +#define AT91C_PIOB_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF44C) // (PIOB) Interrupt Status Register +#define AT91C_PIOB_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF478) // (PIOB) AB Select Status Register +#define AT91C_PIOB_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF448) // (PIOB) Interrupt Mask Register +#define AT91C_PIOB_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF458) // (PIOB) Multi-driver Status Register +#define AT91C_PIOB_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF468) // (PIOB) Pull-up Status Register +#define AT91C_PIOB_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF43C) // (PIOB) Pin Data Status Register +#define AT91C_PIOB_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF4C8) // (PIOB) PIO Delay Control Register +#define AT91C_PIOB_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF454) // (PIOB) Multi-driver Disable Register +#define AT91C_PIOB_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF434) // (PIOB) Clear Output Data Register +#define AT91C_PIOB_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF450) // (PIOB) Multi-driver Enable Register +#define AT91C_PIOB_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF404) // (PIOB) PIO Disable Register +#define AT91C_PIOB_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF428) // (PIOB) Input Filter Status Register +#define AT91C_PIOB_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF408) // (PIOB) PIO Status Register +#define AT91C_PIOB_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF4B0) // (PIOB) PIO Slewrate Control Register +#define AT91C_PIOB_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF440) // (PIOB) Interrupt Enable Register +#define AT91C_PIOB_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF460) // (PIOB) Pull-up Disable Register +#define AT91C_PIOB_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF400) // (PIOB) PIO Enable Register +#define AT91C_PIOB_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF424) // (PIOB) Input Filter Disable Register +#define AT91C_PIOB_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF444) // (PIOB) Interrupt Disable Register +#define AT91C_PIOB_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF4A4) // (PIOB) Output Write Disable Register +#define AT91C_PIOB_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF438) // (PIOB) Output Data Status Register +#define AT91C_PIOB_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF4C4) // (PIOB) PIO Delay Control Register +#define AT91C_PIOB_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF4A8) // (PIOB) Output Write Status Register +#define AT91C_PIOB_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF474) // (PIOB) Select B Register +#define AT91C_PIOB_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF420) // (PIOB) Input Filter Enable Register +#define AT91C_PIOB_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF4A0) // (PIOB) Output Write Enable Register +#define AT91C_PIOB_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF464) // (PIOB) Pull-up Enable Register +#define AT91C_PIOB_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF418) // (PIOB) Output Status Register +#define AT91C_PIOB_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF470) // (PIOB) Select A Register +#define AT91C_PIOB_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF410) // (PIOB) Output Enable Register +#define AT91C_PIOB_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF4FC) // (PIOB) PIO Version Register +#define AT91C_PIOB_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF4C0) // (PIOB) PIO Delay Control Register +// ========== Register definition for PIOC peripheral ========== +#define AT91C_PIOC_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF6A4) // (PIOC) Output Write Disable Register +#define AT91C_PIOC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF648) // (PIOC) Interrupt Mask Register +#define AT91C_PIOC_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF670) // (PIOC) Select A Register +#define AT91C_PIOC_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF660) // (PIOC) Pull-up Disable Register +#define AT91C_PIOC_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF634) // (PIOC) Clear Output Data Register +#define AT91C_PIOC_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF6A0) // (PIOC) Output Write Enable Register +#define AT91C_PIOC_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF678) // (PIOC) AB Select Status Register +#define AT91C_PIOC_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF624) // (PIOC) Input Filter Disable Register +#define AT91C_PIOC_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF6FC) // (PIOC) PIO Version Register +#define AT91C_PIOC_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF614) // (PIOC) Output Disable Registerr +#define AT91C_PIOC_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF664) // (PIOC) Pull-up Enable Register +#define AT91C_PIOC_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF630) // (PIOC) Set Output Data Register +#define AT91C_PIOC_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF64C) // (PIOC) Interrupt Status Register +#define AT91C_PIOC_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF618) // (PIOC) Output Status Register +#define AT91C_PIOC_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF658) // (PIOC) Multi-driver Status Register +#define AT91C_PIOC_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF620) // (PIOC) Input Filter Enable Register +#define AT91C_PIOC_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF6C4) // (PIOC) PIO Delay Control Register +#define AT91C_PIOC_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF650) // (PIOC) Multi-driver Enable Register +#define AT91C_PIOC_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF668) // (PIOC) Pull-up Status Register +#define AT91C_PIOC_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF608) // (PIOC) PIO Status Register +#define AT91C_PIOC_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF6CC) // (PIOC) PIO Delay Control Register +#define AT91C_PIOC_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF6C8) // (PIOC) PIO Delay Control Register +#define AT91C_PIOC_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF640) // (PIOC) Interrupt Enable Register +#define AT91C_PIOC_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF6B0) // (PIOC) PIO Slewrate Control Register +#define AT91C_PIOC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF644) // (PIOC) Interrupt Disable Register +#define AT91C_PIOC_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF63C) // (PIOC) Pin Data Status Register +#define AT91C_PIOC_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF6C0) // (PIOC) PIO Delay Control Register +#define AT91C_PIOC_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF604) // (PIOC) PIO Disable Register +#define AT91C_PIOC_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF6A8) // (PIOC) Output Write Status Register +#define AT91C_PIOC_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF628) // (PIOC) Input Filter Status Register +#define AT91C_PIOC_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF638) // (PIOC) Output Data Status Register +#define AT91C_PIOC_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF610) // (PIOC) Output Enable Register +#define AT91C_PIOC_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF654) // (PIOC) Multi-driver Disable Register +#define AT91C_PIOC_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF674) // (PIOC) Select B Register +#define AT91C_PIOC_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF600) // (PIOC) PIO Enable Register +// ========== Register definition for PIOD peripheral ========== +#define AT91C_PIOD_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF8C0) // (PIOD) PIO Delay Control Register +#define AT91C_PIOD_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF8A4) // (PIOD) Output Write Disable Register +#define AT91C_PIOD_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF830) // (PIOD) Set Output Data Register +#define AT91C_PIOD_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF864) // (PIOD) Pull-up Enable Register +#define AT91C_PIOD_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF834) // (PIOD) Clear Output Data Register +#define AT91C_PIOD_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF8CC) // (PIOD) PIO Delay Control Register +#define AT91C_PIOD_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF808) // (PIOD) PIO Status Register +#define AT91C_PIOD_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF804) // (PIOD) PIO Disable Register +#define AT91C_PIOD_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF814) // (PIOD) Output Disable Registerr +#define AT91C_PIOD_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF868) // (PIOD) Pull-up Status Register +#define AT91C_PIOD_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF828) // (PIOD) Input Filter Status Register +#define AT91C_PIOD_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF848) // (PIOD) Interrupt Mask Register +#define AT91C_PIOD_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF870) // (PIOD) Select A Register +#define AT91C_PIOD_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF8C4) // (PIOD) PIO Delay Control Register +#define AT91C_PIOD_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF8A8) // (PIOD) Output Write Status Register +#define AT91C_PIOD_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF800) // (PIOD) PIO Enable Register +#define AT91C_PIOD_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF850) // (PIOD) Multi-driver Enable Register +#define AT91C_PIOD_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF83C) // (PIOD) Pin Data Status Register +#define AT91C_PIOD_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF858) // (PIOD) Multi-driver Status Register +#define AT91C_PIOD_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF8A0) // (PIOD) Output Write Enable Register +#define AT91C_PIOD_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF874) // (PIOD) Select B Register +#define AT91C_PIOD_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF824) // (PIOD) Input Filter Disable Register +#define AT91C_PIOD_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF8C8) // (PIOD) PIO Delay Control Register +#define AT91C_PIOD_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF878) // (PIOD) AB Select Status Register +#define AT91C_PIOD_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF810) // (PIOD) Output Enable Register +#define AT91C_PIOD_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF854) // (PIOD) Multi-driver Disable Register +#define AT91C_PIOD_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF844) // (PIOD) Interrupt Disable Register +#define AT91C_PIOD_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF840) // (PIOD) Interrupt Enable Register +#define AT91C_PIOD_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF860) // (PIOD) Pull-up Disable Register +#define AT91C_PIOD_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF8FC) // (PIOD) PIO Version Register +#define AT91C_PIOD_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF84C) // (PIOD) Interrupt Status Register +#define AT91C_PIOD_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF838) // (PIOD) Output Data Status Register +#define AT91C_PIOD_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF818) // (PIOD) Output Status Register +#define AT91C_PIOD_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF820) // (PIOD) Input Filter Enable Register +#define AT91C_PIOD_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF8B0) // (PIOD) PIO Slewrate Control Register +// ========== Register definition for PIOE peripheral ========== +#define AT91C_PIOE_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA38) // (PIOE) Output Data Status Register +#define AT91C_PIOE_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA78) // (PIOE) AB Select Status Register +#define AT91C_PIOE_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA08) // (PIOE) PIO Status Register +#define AT91C_PIOE_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA60) // (PIOE) Pull-up Disable Register +#define AT91C_PIOE_OER (AT91C_CAST(AT91C_REG *) 0xFFFFFA10) // (PIOE) Output Enable Register +#define AT91C_PIOE_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA28) // (PIOE) Input Filter Status Register +#define AT91C_PIOE_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFFA20) // (PIOE) Input Filter Enable Register +#define AT91C_PIOE_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFFAC8) // (PIOE) PIO Delay Control Register +#define AT91C_PIOE_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFFA14) // (PIOE) Output Disable Registerr +#define AT91C_PIOE_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA44) // (PIOE) Interrupt Disable Register +#define AT91C_PIOE_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFFAC0) // (PIOE) PIO Delay Control Register +#define AT91C_PIOE_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA18) // (PIOE) Output Status Register +#define AT91C_PIOE_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFFA34) // (PIOE) Clear Output Data Register +#define AT91C_PIOE_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFFAFC) // (PIOE) PIO Version Register +#define AT91C_PIOE_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA58) // (PIOE) Multi-driver Status Register +#define AT91C_PIOE_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA04) // (PIOE) PIO Disable Register +#define AT91C_PIOE_IER (AT91C_CAST(AT91C_REG *) 0xFFFFFA40) // (PIOE) Interrupt Enable Register +#define AT91C_PIOE_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFFAA8) // (PIOE) Output Write Status Register +#define AT91C_PIOE_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA74) // (PIOE) Select B Register +#define AT91C_PIOE_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFFAB0) // (PIOE) PIO Slewrate Control Register +#define AT91C_PIOE_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFFACC) // (PIOE) PIO Delay Control Register +#define AT91C_PIOE_PER (AT91C_CAST(AT91C_REG *) 0xFFFFFA00) // (PIOE) PIO Enable Register +#define AT91C_PIOE_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFFAA4) // (PIOE) Output Write Disable Register +#define AT91C_PIOE_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA24) // (PIOE) Input Filter Disable Register +#define AT91C_PIOE_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA68) // (PIOE) Pull-up Status Register +#define AT91C_PIOE_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA3C) // (PIOE) Pin Data Status Register +#define AT91C_PIOE_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFFA64) // (PIOE) Pull-up Enable Register +#define AT91C_PIOE_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA54) // (PIOE) Multi-driver Disable Register +#define AT91C_PIOE_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFFA4C) // (PIOE) Interrupt Status Register +#define AT91C_PIOE_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFFAC4) // (PIOE) PIO Delay Control Register +#define AT91C_PIOE_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFFA30) // (PIOE) Set Output Data Register +#define AT91C_PIOE_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFFA70) // (PIOE) Select A Register +#define AT91C_PIOE_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFFA48) // (PIOE) Interrupt Mask Register +#define AT91C_PIOE_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFFAA0) // (PIOE) Output Write Enable Register +#define AT91C_PIOE_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFFA50) // (PIOE) Multi-driver Enable Register +// ========== Register definition for PMC peripheral ========== +#define AT91C_PMC_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFFFCEC) // (PMC) +#define AT91C_PMC_PCER (AT91C_CAST(AT91C_REG *) 0xFFFFFC10) // (PMC) Peripheral Clock Enable Register +#define AT91C_PMC_PCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC40) // (PMC) Programmable Clock 0 Register +#define AT91C_PMC_MCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC30) // (PMC) Master Clock Register +#define AT91C_PMC_PLLAR (AT91C_CAST(AT91C_REG *) 0xFFFFFC28) // (PMC) PLL A Register +#define AT91C_PMC_NAME2 (AT91C_CAST(AT91C_REG *) 0xFFFFFCF4) // (PMC) +#define AT91C_PMC_PCDR (AT91C_CAST(AT91C_REG *) 0xFFFFFC14) // (PMC) Peripheral Clock Disable Register +#define AT91C_PMC_SCSR (AT91C_CAST(AT91C_REG *) 0xFFFFFC08) // (PMC) System Clock Status Register +#define AT91C_PMC_MCFR (AT91C_CAST(AT91C_REG *) 0xFFFFFC24) // (PMC) Main Clock Frequency Register +#define AT91C_PMC_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFFFCF8) // (PMC) +#define AT91C_PMC_PLLICPR (AT91C_CAST(AT91C_REG *) 0xFFFFFC80) // (PMC) PLL Charge Pump Current Register +#define AT91C_PMC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFFC6C) // (PMC) Interrupt Mask Register +#define AT91C_PMC_IER (AT91C_CAST(AT91C_REG *) 0xFFFFFC60) // (PMC) Interrupt Enable Register +#define AT91C_PMC_UCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC1C) // (PMC) UTMI Clock Configuration Register +#define AT91C_PMC_USB (AT91C_CAST(AT91C_REG *) 0xFFFFFC38) // (PMC) USB clock register +#define AT91C_PMC_MOR (AT91C_CAST(AT91C_REG *) 0xFFFFFC20) // (PMC) Main Oscillator Register +#define AT91C_PMC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFFC64) // (PMC) Interrupt Disable Register +#define AT91C_PMC_NAME1 (AT91C_CAST(AT91C_REG *) 0xFFFFFCF0) // (PMC) +#define AT91C_PMC_SCDR (AT91C_CAST(AT91C_REG *) 0xFFFFFC04) // (PMC) System Clock Disable Register +#define AT91C_PMC_PCSR (AT91C_CAST(AT91C_REG *) 0xFFFFFC18) // (PMC) Peripheral Clock Status Register +#define AT91C_PMC_SCER (AT91C_CAST(AT91C_REG *) 0xFFFFFC00) // (PMC) System Clock Enable Register +#define AT91C_PMC_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFFCFC) // (PMC) +#define AT91C_PMC_SR (AT91C_CAST(AT91C_REG *) 0xFFFFFC68) // (PMC) Status Register +// ========== Register definition for CKGR peripheral ========== +#define AT91C_CKGR_MOR (AT91C_CAST(AT91C_REG *) 0xFFFFFC20) // (CKGR) Main Oscillator Register +#define AT91C_CKGR_MCFR (AT91C_CAST(AT91C_REG *) 0xFFFFFC24) // (CKGR) Main Clock Frequency Register +#define AT91C_CKGR_PLLAR (AT91C_CAST(AT91C_REG *) 0xFFFFFC28) // (CKGR) PLL A Register +#define AT91C_CKGR_UCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC1C) // (CKGR) UTMI Clock Configuration Register +// ========== Register definition for RSTC peripheral ========== +#define AT91C_RSTC_RCR (AT91C_CAST(AT91C_REG *) 0xFFFFFD00) // (RSTC) Reset Control Register +#define AT91C_RSTC_VER (AT91C_CAST(AT91C_REG *) 0xFFFFFDFC) // (RSTC) Version Register +#define AT91C_RSTC_RMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD08) // (RSTC) Reset Mode Register +#define AT91C_RSTC_RSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD04) // (RSTC) Reset Status Register +// ========== Register definition for SHDWC peripheral ========== +#define AT91C_SHDWC_SHSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD18) // (SHDWC) Shut Down Status Register +#define AT91C_SHDWC_SHMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD14) // (SHDWC) Shut Down Mode Register +#define AT91C_SHDWC_SHCR (AT91C_CAST(AT91C_REG *) 0xFFFFFD10) // (SHDWC) Shut Down Control Register +// ========== Register definition for RTTC peripheral ========== +#define AT91C_RTTC_RTSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD2C) // (RTTC) Real-time Status Register +#define AT91C_RTTC_RTMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD20) // (RTTC) Real-time Mode Register +#define AT91C_RTTC_RTVR (AT91C_CAST(AT91C_REG *) 0xFFFFFD28) // (RTTC) Real-time Value Register +#define AT91C_RTTC_RTAR (AT91C_CAST(AT91C_REG *) 0xFFFFFD24) // (RTTC) Real-time Alarm Register +// ========== Register definition for PITC peripheral ========== +#define AT91C_PITC_PIVR (AT91C_CAST(AT91C_REG *) 0xFFFFFD38) // (PITC) Period Interval Value Register +#define AT91C_PITC_PISR (AT91C_CAST(AT91C_REG *) 0xFFFFFD34) // (PITC) Period Interval Status Register +#define AT91C_PITC_PIIR (AT91C_CAST(AT91C_REG *) 0xFFFFFD3C) // (PITC) Period Interval Image Register +#define AT91C_PITC_PIMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD30) // (PITC) Period Interval Mode Register +// ========== Register definition for WDTC peripheral ========== +#define AT91C_WDTC_WDCR (AT91C_CAST(AT91C_REG *) 0xFFFFFD40) // (WDTC) Watchdog Control Register +#define AT91C_WDTC_WDSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD48) // (WDTC) Watchdog Status Register +#define AT91C_WDTC_WDMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD44) // (WDTC) Watchdog Mode Register +// ========== Register definition for RTC peripheral ========== +#define AT91C_RTC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFFDD4) // (RTC) Interrupt Disable Register +#define AT91C_RTC_SR (AT91C_CAST(AT91C_REG *) 0xFFFFFDC8) // (RTC) Status Register +#define AT91C_RTC_MR (AT91C_CAST(AT91C_REG *) 0xFFFFFDB4) // (RTC) Mode Register +#define AT91C_RTC_IER (AT91C_CAST(AT91C_REG *) 0xFFFFFDD0) // (RTC) Interrupt Enable Register +#define AT91C_RTC_TIMALR (AT91C_CAST(AT91C_REG *) 0xFFFFFDC0) // (RTC) Time Alarm Register +#define AT91C_RTC_CALALR (AT91C_CAST(AT91C_REG *) 0xFFFFFDC4) // (RTC) Calendar Alarm Register +#define AT91C_RTC_CR (AT91C_CAST(AT91C_REG *) 0xFFFFFDB0) // (RTC) Control Register +#define AT91C_RTC_TIMR (AT91C_CAST(AT91C_REG *) 0xFFFFFDB8) // (RTC) Time Register +#define AT91C_RTC_CALR (AT91C_CAST(AT91C_REG *) 0xFFFFFDBC) // (RTC) Calendar Register +#define AT91C_RTC_VER (AT91C_CAST(AT91C_REG *) 0xFFFFFDDC) // (RTC) Valid Entry Register +#define AT91C_RTC_SCCR (AT91C_CAST(AT91C_REG *) 0xFFFFFDCC) // (RTC) Status Clear Command Register +#define AT91C_RTC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFFDD8) // (RTC) Interrupt Mask Register +// ========== Register definition for TC0 peripheral ========== +#define AT91C_TC0_IER (AT91C_CAST(AT91C_REG *) 0xFFF7C024) // (TC0) Interrupt Enable Register +#define AT91C_TC0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF7C02C) // (TC0) Interrupt Mask Register +#define AT91C_TC0_CCR (AT91C_CAST(AT91C_REG *) 0xFFF7C000) // (TC0) Channel Control Register +#define AT91C_TC0_RB (AT91C_CAST(AT91C_REG *) 0xFFF7C018) // (TC0) Register B +#define AT91C_TC0_CV (AT91C_CAST(AT91C_REG *) 0xFFF7C010) // (TC0) Counter Value +#define AT91C_TC0_SR (AT91C_CAST(AT91C_REG *) 0xFFF7C020) // (TC0) Status Register +#define AT91C_TC0_CMR (AT91C_CAST(AT91C_REG *) 0xFFF7C004) // (TC0) Channel Mode Register (Capture Mode / Waveform Mode) +#define AT91C_TC0_RA (AT91C_CAST(AT91C_REG *) 0xFFF7C014) // (TC0) Register A +#define AT91C_TC0_RC (AT91C_CAST(AT91C_REG *) 0xFFF7C01C) // (TC0) Register C +#define AT91C_TC0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF7C028) // (TC0) Interrupt Disable Register +// ========== Register definition for TC1 peripheral ========== +#define AT91C_TC1_IER (AT91C_CAST(AT91C_REG *) 0xFFF7C064) // (TC1) Interrupt Enable Register +#define AT91C_TC1_SR (AT91C_CAST(AT91C_REG *) 0xFFF7C060) // (TC1) Status Register +#define AT91C_TC1_RC (AT91C_CAST(AT91C_REG *) 0xFFF7C05C) // (TC1) Register C +#define AT91C_TC1_CV (AT91C_CAST(AT91C_REG *) 0xFFF7C050) // (TC1) Counter Value +#define AT91C_TC1_RA (AT91C_CAST(AT91C_REG *) 0xFFF7C054) // (TC1) Register A +#define AT91C_TC1_CMR (AT91C_CAST(AT91C_REG *) 0xFFF7C044) // (TC1) Channel Mode Register (Capture Mode / Waveform Mode) +#define AT91C_TC1_IDR (AT91C_CAST(AT91C_REG *) 0xFFF7C068) // (TC1) Interrupt Disable Register +#define AT91C_TC1_RB (AT91C_CAST(AT91C_REG *) 0xFFF7C058) // (TC1) Register B +#define AT91C_TC1_IMR (AT91C_CAST(AT91C_REG *) 0xFFF7C06C) // (TC1) Interrupt Mask Register +#define AT91C_TC1_CCR (AT91C_CAST(AT91C_REG *) 0xFFF7C040) // (TC1) Channel Control Register +// ========== Register definition for TC2 peripheral ========== +#define AT91C_TC2_SR (AT91C_CAST(AT91C_REG *) 0xFFF7C0A0) // (TC2) Status Register +#define AT91C_TC2_IMR (AT91C_CAST(AT91C_REG *) 0xFFF7C0AC) // (TC2) Interrupt Mask Register +#define AT91C_TC2_IER (AT91C_CAST(AT91C_REG *) 0xFFF7C0A4) // (TC2) Interrupt Enable Register +#define AT91C_TC2_CV (AT91C_CAST(AT91C_REG *) 0xFFF7C090) // (TC2) Counter Value +#define AT91C_TC2_RB (AT91C_CAST(AT91C_REG *) 0xFFF7C098) // (TC2) Register B +#define AT91C_TC2_CCR (AT91C_CAST(AT91C_REG *) 0xFFF7C080) // (TC2) Channel Control Register +#define AT91C_TC2_CMR (AT91C_CAST(AT91C_REG *) 0xFFF7C084) // (TC2) Channel Mode Register (Capture Mode / Waveform Mode) +#define AT91C_TC2_RA (AT91C_CAST(AT91C_REG *) 0xFFF7C094) // (TC2) Register A +#define AT91C_TC2_IDR (AT91C_CAST(AT91C_REG *) 0xFFF7C0A8) // (TC2) Interrupt Disable Register +#define AT91C_TC2_RC (AT91C_CAST(AT91C_REG *) 0xFFF7C09C) // (TC2) Register C +// ========== Register definition for TC3 peripheral ========== +#define AT91C_TC3_SR (AT91C_CAST(AT91C_REG *) 0xFFFD4020) // (TC3) Status Register +#define AT91C_TC3_RC (AT91C_CAST(AT91C_REG *) 0xFFFD401C) // (TC3) Register C +#define AT91C_TC3_IER (AT91C_CAST(AT91C_REG *) 0xFFFD4024) // (TC3) Interrupt Enable Register +#define AT91C_TC3_CV (AT91C_CAST(AT91C_REG *) 0xFFFD4010) // (TC3) Counter Value +#define AT91C_TC3_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD4028) // (TC3) Interrupt Disable Register +#define AT91C_TC3_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD402C) // (TC3) Interrupt Mask Register +#define AT91C_TC3_CMR (AT91C_CAST(AT91C_REG *) 0xFFFD4004) // (TC3) Channel Mode Register (Capture Mode / Waveform Mode) +#define AT91C_TC3_RB (AT91C_CAST(AT91C_REG *) 0xFFFD4018) // (TC3) Register B +#define AT91C_TC3_CCR (AT91C_CAST(AT91C_REG *) 0xFFFD4000) // (TC3) Channel Control Register +#define AT91C_TC3_RA (AT91C_CAST(AT91C_REG *) 0xFFFD4014) // (TC3) Register A +// ========== Register definition for TC4 peripheral ========== +#define AT91C_TC4_CV (AT91C_CAST(AT91C_REG *) 0xFFFD4050) // (TC4) Counter Value +#define AT91C_TC4_RA (AT91C_CAST(AT91C_REG *) 0xFFFD4054) // (TC4) Register A +#define AT91C_TC4_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD4068) // (TC4) Interrupt Disable Register +#define AT91C_TC4_SR (AT91C_CAST(AT91C_REG *) 0xFFFD4060) // (TC4) Status Register +#define AT91C_TC4_CMR (AT91C_CAST(AT91C_REG *) 0xFFFD4044) // (TC4) Channel Mode Register (Capture Mode / Waveform Mode) +#define AT91C_TC4_CCR (AT91C_CAST(AT91C_REG *) 0xFFFD4040) // (TC4) Channel Control Register +#define AT91C_TC4_RB (AT91C_CAST(AT91C_REG *) 0xFFFD4058) // (TC4) Register B +#define AT91C_TC4_RC (AT91C_CAST(AT91C_REG *) 0xFFFD405C) // (TC4) Register C +#define AT91C_TC4_IER (AT91C_CAST(AT91C_REG *) 0xFFFD4064) // (TC4) Interrupt Enable Register +#define AT91C_TC4_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD406C) // (TC4) Interrupt Mask Register +// ========== Register definition for TC5 peripheral ========== +#define AT91C_TC5_IER (AT91C_CAST(AT91C_REG *) 0xFFFD40A4) // (TC5) Interrupt Enable Register +#define AT91C_TC5_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD40A8) // (TC5) Interrupt Disable Register +#define AT91C_TC5_RA (AT91C_CAST(AT91C_REG *) 0xFFFD4094) // (TC5) Register A +#define AT91C_TC5_RB (AT91C_CAST(AT91C_REG *) 0xFFFD4098) // (TC5) Register B +#define AT91C_TC5_CCR (AT91C_CAST(AT91C_REG *) 0xFFFD4080) // (TC5) Channel Control Register +#define AT91C_TC5_SR (AT91C_CAST(AT91C_REG *) 0xFFFD40A0) // (TC5) Status Register +#define AT91C_TC5_CV (AT91C_CAST(AT91C_REG *) 0xFFFD4090) // (TC5) Counter Value +#define AT91C_TC5_RC (AT91C_CAST(AT91C_REG *) 0xFFFD409C) // (TC5) Register C +#define AT91C_TC5_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD40AC) // (TC5) Interrupt Mask Register +#define AT91C_TC5_CMR (AT91C_CAST(AT91C_REG *) 0xFFFD4084) // (TC5) Channel Mode Register (Capture Mode / Waveform Mode) +// ========== Register definition for TCB0 peripheral ========== +#define AT91C_TCB0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF7C0F0) // (TCB0) TC IPNAME1 REGISTER +#define AT91C_TCB0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF7C0F4) // (TCB0) TC IPNAME2 REGISTER +#define AT91C_TCB0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF7C0F8) // (TCB0) TC FEATURES REGISTER +#define AT91C_TCB0_BCR (AT91C_CAST(AT91C_REG *) 0xFFF7C0C0) // (TCB0) TC Block Control Register +#define AT91C_TCB0_VER (AT91C_CAST(AT91C_REG *) 0xFFF7C0FC) // (TCB0) Version Register +#define AT91C_TCB0_BMR (AT91C_CAST(AT91C_REG *) 0xFFF7C0C4) // (TCB0) TC Block Mode Register +#define AT91C_TCB0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF7C0EC) // (TCB0) TC ADDRSIZE REGISTER +// ========== Register definition for TCB1 peripheral ========== +#define AT91C_TCB1_VER (AT91C_CAST(AT91C_REG *) 0xFFFD40FC) // (TCB1) Version Register +#define AT91C_TCB1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFFD40F4) // (TCB1) TC IPNAME2 REGISTER +#define AT91C_TCB1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFD40EC) // (TCB1) TC ADDRSIZE REGISTER +#define AT91C_TCB1_BMR (AT91C_CAST(AT91C_REG *) 0xFFFD40C4) // (TCB1) TC Block Mode Register +#define AT91C_TCB1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFD40F8) // (TCB1) TC FEATURES REGISTER +#define AT91C_TCB1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFFD40F0) // (TCB1) TC IPNAME1 REGISTER +#define AT91C_TCB1_BCR (AT91C_CAST(AT91C_REG *) 0xFFFD40C0) // (TCB1) TC Block Control Register +// ========== Register definition for MCI0 peripheral ========== +#define AT91C_MCI0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8004C) // (MCI0) MCI Interrupt Mask Register +#define AT91C_MCI0_MR (AT91C_CAST(AT91C_REG *) 0xFFF80004) // (MCI0) MCI Mode Register +#define AT91C_MCI0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF800EC) // (MCI0) MCI ADDRSIZE REGISTER +#define AT91C_MCI0_CR (AT91C_CAST(AT91C_REG *) 0xFFF80000) // (MCI0) MCI Control Register +#define AT91C_MCI0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF800F4) // (MCI0) MCI IPNAME2 REGISTER +#define AT91C_MCI0_IER (AT91C_CAST(AT91C_REG *) 0xFFF80044) // (MCI0) MCI Interrupt Enable Register +#define AT91C_MCI0_FIFO (AT91C_CAST(AT91C_REG *) 0xFFF80200) // (MCI0) MCI FIFO Aperture Register +#define AT91C_MCI0_DTOR (AT91C_CAST(AT91C_REG *) 0xFFF80008) // (MCI0) MCI Data Timeout Register +#define AT91C_MCI0_SDCR (AT91C_CAST(AT91C_REG *) 0xFFF8000C) // (MCI0) MCI SD/SDIO Card Register +#define AT91C_MCI0_BLKR (AT91C_CAST(AT91C_REG *) 0xFFF80018) // (MCI0) MCI Block Register +#define AT91C_MCI0_VER (AT91C_CAST(AT91C_REG *) 0xFFF800FC) // (MCI0) MCI VERSION REGISTER +#define AT91C_MCI0_WPSR (AT91C_CAST(AT91C_REG *) 0xFFF800E8) // (MCI0) MCI Write Protection Status Register +#define AT91C_MCI0_CMDR (AT91C_CAST(AT91C_REG *) 0xFFF80014) // (MCI0) MCI Command Register +#define AT91C_MCI0_CSTOR (AT91C_CAST(AT91C_REG *) 0xFFF8001C) // (MCI0) MCI Completion Signal Timeout Register +#define AT91C_MCI0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF800F0) // (MCI0) MCI IPNAME1 REGISTER +#define AT91C_MCI0_DMA (AT91C_CAST(AT91C_REG *) 0xFFF80050) // (MCI0) MCI DMA Configuration Register +#define AT91C_MCI0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF800F8) // (MCI0) MCI FEATURES REGISTER +#define AT91C_MCI0_RDR (AT91C_CAST(AT91C_REG *) 0xFFF80030) // (MCI0) MCI Receive Data Register +#define AT91C_MCI0_SR (AT91C_CAST(AT91C_REG *) 0xFFF80040) // (MCI0) MCI Status Register +#define AT91C_MCI0_TDR (AT91C_CAST(AT91C_REG *) 0xFFF80034) // (MCI0) MCI Transmit Data Register +#define AT91C_MCI0_CFG (AT91C_CAST(AT91C_REG *) 0xFFF80054) // (MCI0) MCI Configuration Register +#define AT91C_MCI0_ARGR (AT91C_CAST(AT91C_REG *) 0xFFF80010) // (MCI0) MCI Argument Register +#define AT91C_MCI0_RSPR (AT91C_CAST(AT91C_REG *) 0xFFF80020) // (MCI0) MCI Response Register +#define AT91C_MCI0_WPCR (AT91C_CAST(AT91C_REG *) 0xFFF800E4) // (MCI0) MCI Write Protection Control Register +#define AT91C_MCI0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF80048) // (MCI0) MCI Interrupt Disable Register +// ========== Register definition for MCI1 peripheral ========== +#define AT91C_MCI1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFFD00F0) // (MCI1) MCI IPNAME1 REGISTER +#define AT91C_MCI1_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD0048) // (MCI1) MCI Interrupt Disable Register +#define AT91C_MCI1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFFD00F4) // (MCI1) MCI IPNAME2 REGISTER +#define AT91C_MCI1_MR (AT91C_CAST(AT91C_REG *) 0xFFFD0004) // (MCI1) MCI Mode Register +#define AT91C_MCI1_SR (AT91C_CAST(AT91C_REG *) 0xFFFD0040) // (MCI1) MCI Status Register +#define AT91C_MCI1_DTOR (AT91C_CAST(AT91C_REG *) 0xFFFD0008) // (MCI1) MCI Data Timeout Register +#define AT91C_MCI1_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFD00E4) // (MCI1) MCI Write Protection Control Register +#define AT91C_MCI1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFD00EC) // (MCI1) MCI ADDRSIZE REGISTER +#define AT91C_MCI1_ARGR (AT91C_CAST(AT91C_REG *) 0xFFFD0010) // (MCI1) MCI Argument Register +#define AT91C_MCI1_FIFO (AT91C_CAST(AT91C_REG *) 0xFFFD0200) // (MCI1) MCI FIFO Aperture Register +#define AT91C_MCI1_IER (AT91C_CAST(AT91C_REG *) 0xFFFD0044) // (MCI1) MCI Interrupt Enable Register +#define AT91C_MCI1_SDCR (AT91C_CAST(AT91C_REG *) 0xFFFD000C) // (MCI1) MCI SD/SDIO Card Register +#define AT91C_MCI1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFD00F8) // (MCI1) MCI FEATURES REGISTER +#define AT91C_MCI1_CR (AT91C_CAST(AT91C_REG *) 0xFFFD0000) // (MCI1) MCI Control Register +#define AT91C_MCI1_CSTOR (AT91C_CAST(AT91C_REG *) 0xFFFD001C) // (MCI1) MCI Completion Signal Timeout Register +#define AT91C_MCI1_RSPR (AT91C_CAST(AT91C_REG *) 0xFFFD0020) // (MCI1) MCI Response Register +#define AT91C_MCI1_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD004C) // (MCI1) MCI Interrupt Mask Register +#define AT91C_MCI1_DMA (AT91C_CAST(AT91C_REG *) 0xFFFD0050) // (MCI1) MCI DMA Configuration Register +#define AT91C_MCI1_BLKR (AT91C_CAST(AT91C_REG *) 0xFFFD0018) // (MCI1) MCI Block Register +#define AT91C_MCI1_RDR (AT91C_CAST(AT91C_REG *) 0xFFFD0030) // (MCI1) MCI Receive Data Register +#define AT91C_MCI1_CFG (AT91C_CAST(AT91C_REG *) 0xFFFD0054) // (MCI1) MCI Configuration Register +#define AT91C_MCI1_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFD00E8) // (MCI1) MCI Write Protection Status Register +#define AT91C_MCI1_CMDR (AT91C_CAST(AT91C_REG *) 0xFFFD0014) // (MCI1) MCI Command Register +#define AT91C_MCI1_TDR (AT91C_CAST(AT91C_REG *) 0xFFFD0034) // (MCI1) MCI Transmit Data Register +#define AT91C_MCI1_VER (AT91C_CAST(AT91C_REG *) 0xFFFD00FC) // (MCI1) MCI VERSION REGISTER +// ========== Register definition for TWI0 peripheral ========== +#define AT91C_TWI0_RHR (AT91C_CAST(AT91C_REG *) 0xFFF84030) // (TWI0) Receive Holding Register +#define AT91C_TWI0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF840EC) // (TWI0) TWI ADDRSIZE REGISTER +#define AT91C_TWI0_SMR (AT91C_CAST(AT91C_REG *) 0xFFF84008) // (TWI0) Slave Mode Register +#define AT91C_TWI0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF84028) // (TWI0) Interrupt Disable Register +#define AT91C_TWI0_CWGR (AT91C_CAST(AT91C_REG *) 0xFFF84010) // (TWI0) Clock Waveform Generator Register +#define AT91C_TWI0_IER (AT91C_CAST(AT91C_REG *) 0xFFF84024) // (TWI0) Interrupt Enable Register +#define AT91C_TWI0_THR (AT91C_CAST(AT91C_REG *) 0xFFF84034) // (TWI0) Transmit Holding Register +#define AT91C_TWI0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF840F4) // (TWI0) TWI IPNAME2 REGISTER +#define AT91C_TWI0_CR (AT91C_CAST(AT91C_REG *) 0xFFF84000) // (TWI0) Control Register +#define AT91C_TWI0_MMR (AT91C_CAST(AT91C_REG *) 0xFFF84004) // (TWI0) Master Mode Register +#define AT91C_TWI0_SR (AT91C_CAST(AT91C_REG *) 0xFFF84020) // (TWI0) Status Register +#define AT91C_TWI0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8402C) // (TWI0) Interrupt Mask Register +#define AT91C_TWI0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF840F8) // (TWI0) TWI FEATURES REGISTER +#define AT91C_TWI0_IADR (AT91C_CAST(AT91C_REG *) 0xFFF8400C) // (TWI0) Internal Address Register +#define AT91C_TWI0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF840F0) // (TWI0) TWI IPNAME1 REGISTER +#define AT91C_TWI0_VER (AT91C_CAST(AT91C_REG *) 0xFFF840FC) // (TWI0) Version Register +// ========== Register definition for TWI1 peripheral ========== +#define AT91C_TWI1_VER (AT91C_CAST(AT91C_REG *) 0xFFF880FC) // (TWI1) Version Register +#define AT91C_TWI1_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8802C) // (TWI1) Interrupt Mask Register +#define AT91C_TWI1_THR (AT91C_CAST(AT91C_REG *) 0xFFF88034) // (TWI1) Transmit Holding Register +#define AT91C_TWI1_IER (AT91C_CAST(AT91C_REG *) 0xFFF88024) // (TWI1) Interrupt Enable Register +#define AT91C_TWI1_MMR (AT91C_CAST(AT91C_REG *) 0xFFF88004) // (TWI1) Master Mode Register +#define AT91C_TWI1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF880F0) // (TWI1) TWI IPNAME1 REGISTER +#define AT91C_TWI1_CR (AT91C_CAST(AT91C_REG *) 0xFFF88000) // (TWI1) Control Register +#define AT91C_TWI1_SR (AT91C_CAST(AT91C_REG *) 0xFFF88020) // (TWI1) Status Register +#define AT91C_TWI1_CWGR (AT91C_CAST(AT91C_REG *) 0xFFF88010) // (TWI1) Clock Waveform Generator Register +#define AT91C_TWI1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF880F4) // (TWI1) TWI IPNAME2 REGISTER +#define AT91C_TWI1_IDR (AT91C_CAST(AT91C_REG *) 0xFFF88028) // (TWI1) Interrupt Disable Register +#define AT91C_TWI1_RHR (AT91C_CAST(AT91C_REG *) 0xFFF88030) // (TWI1) Receive Holding Register +#define AT91C_TWI1_IADR (AT91C_CAST(AT91C_REG *) 0xFFF8800C) // (TWI1) Internal Address Register +#define AT91C_TWI1_SMR (AT91C_CAST(AT91C_REG *) 0xFFF88008) // (TWI1) Slave Mode Register +#define AT91C_TWI1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF880F8) // (TWI1) TWI FEATURES REGISTER +#define AT91C_TWI1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF880EC) // (TWI1) TWI ADDRSIZE REGISTER +// ========== Register definition for PDC_US0 peripheral ========== +#define AT91C_US0_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF8C118) // (PDC_US0) Transmit Next Pointer Register +#define AT91C_US0_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF8C124) // (PDC_US0) PDC Transfer Status Register +#define AT91C_US0_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF8C120) // (PDC_US0) PDC Transfer Control Register +#define AT91C_US0_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF8C114) // (PDC_US0) Receive Next Counter Register +#define AT91C_US0_RCR (AT91C_CAST(AT91C_REG *) 0xFFF8C104) // (PDC_US0) Receive Counter Register +#define AT91C_US0_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF8C11C) // (PDC_US0) Transmit Next Counter Register +#define AT91C_US0_TCR (AT91C_CAST(AT91C_REG *) 0xFFF8C10C) // (PDC_US0) Transmit Counter Register +#define AT91C_US0_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF8C110) // (PDC_US0) Receive Next Pointer Register +#define AT91C_US0_RPR (AT91C_CAST(AT91C_REG *) 0xFFF8C100) // (PDC_US0) Receive Pointer Register +#define AT91C_US0_TPR (AT91C_CAST(AT91C_REG *) 0xFFF8C108) // (PDC_US0) Transmit Pointer Register +// ========== Register definition for US0 peripheral ========== +#define AT91C_US0_MAN (AT91C_CAST(AT91C_REG *) 0xFFF8C050) // (US0) Manchester Encoder Decoder Register +#define AT91C_US0_MR (AT91C_CAST(AT91C_REG *) 0xFFF8C004) // (US0) Mode Register +#define AT91C_US0_RHR (AT91C_CAST(AT91C_REG *) 0xFFF8C018) // (US0) Receiver Holding Register +#define AT91C_US0_CSR (AT91C_CAST(AT91C_REG *) 0xFFF8C014) // (US0) Channel Status Register +#define AT91C_US0_CR (AT91C_CAST(AT91C_REG *) 0xFFF8C000) // (US0) Control Register +#define AT91C_US0_VER (AT91C_CAST(AT91C_REG *) 0xFFF8C0FC) // (US0) VERSION Register +#define AT91C_US0_IER (AT91C_CAST(AT91C_REG *) 0xFFF8C008) // (US0) Interrupt Enable Register +#define AT91C_US0_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF8C020) // (US0) Baud Rate Generator Register +#define AT91C_US0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF8C0F8) // (US0) US FEATURES REGISTER +#define AT91C_US0_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF8C024) // (US0) Receiver Time-out Register +#define AT91C_US0_THR (AT91C_CAST(AT91C_REG *) 0xFFF8C01C) // (US0) Transmitter Holding Register +#define AT91C_US0_NER (AT91C_CAST(AT91C_REG *) 0xFFF8C044) // (US0) Nb Errors Register +#define AT91C_US0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF8C0F0) // (US0) US IPNAME1 REGISTER +#define AT91C_US0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8C010) // (US0) Interrupt Mask Register +#define AT91C_US0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF8C0EC) // (US0) US ADDRSIZE REGISTER +#define AT91C_US0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF8C00C) // (US0) Interrupt Disable Register +#define AT91C_US0_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF8C040) // (US0) FI_DI_Ratio Register +#define AT91C_US0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF8C0F4) // (US0) US IPNAME2 REGISTER +#define AT91C_US0_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF8C028) // (US0) Transmitter Time-guard Register +#define AT91C_US0_IF (AT91C_CAST(AT91C_REG *) 0xFFF8C04C) // (US0) IRDA_FILTER Register +// ========== Register definition for PDC_US1 peripheral ========== +#define AT91C_US1_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF90120) // (PDC_US1) PDC Transfer Control Register +#define AT91C_US1_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9011C) // (PDC_US1) Transmit Next Counter Register +#define AT91C_US1_RCR (AT91C_CAST(AT91C_REG *) 0xFFF90104) // (PDC_US1) Receive Counter Register +#define AT91C_US1_RPR (AT91C_CAST(AT91C_REG *) 0xFFF90100) // (PDC_US1) Receive Pointer Register +#define AT91C_US1_TPR (AT91C_CAST(AT91C_REG *) 0xFFF90108) // (PDC_US1) Transmit Pointer Register +#define AT91C_US1_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9010C) // (PDC_US1) Transmit Counter Register +#define AT91C_US1_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF90110) // (PDC_US1) Receive Next Pointer Register +#define AT91C_US1_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF90118) // (PDC_US1) Transmit Next Pointer Register +#define AT91C_US1_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF90114) // (PDC_US1) Receive Next Counter Register +#define AT91C_US1_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF90124) // (PDC_US1) PDC Transfer Status Register +// ========== Register definition for US1 peripheral ========== +#define AT91C_US1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF900F8) // (US1) US FEATURES REGISTER +#define AT91C_US1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF900EC) // (US1) US ADDRSIZE REGISTER +#define AT91C_US1_NER (AT91C_CAST(AT91C_REG *) 0xFFF90044) // (US1) Nb Errors Register +#define AT91C_US1_RHR (AT91C_CAST(AT91C_REG *) 0xFFF90018) // (US1) Receiver Holding Register +#define AT91C_US1_IF (AT91C_CAST(AT91C_REG *) 0xFFF9004C) // (US1) IRDA_FILTER Register +#define AT91C_US1_CR (AT91C_CAST(AT91C_REG *) 0xFFF90000) // (US1) Control Register +#define AT91C_US1_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF90028) // (US1) Transmitter Time-guard Register +#define AT91C_US1_MR (AT91C_CAST(AT91C_REG *) 0xFFF90004) // (US1) Mode Register +#define AT91C_US1_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF90040) // (US1) FI_DI_Ratio Register +#define AT91C_US1_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF90024) // (US1) Receiver Time-out Register +#define AT91C_US1_IER (AT91C_CAST(AT91C_REG *) 0xFFF90008) // (US1) Interrupt Enable Register +#define AT91C_US1_MAN (AT91C_CAST(AT91C_REG *) 0xFFF90050) // (US1) Manchester Encoder Decoder Register +#define AT91C_US1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF900F4) // (US1) US IPNAME2 REGISTER +#define AT91C_US1_IMR (AT91C_CAST(AT91C_REG *) 0xFFF90010) // (US1) Interrupt Mask Register +#define AT91C_US1_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9000C) // (US1) Interrupt Disable Register +#define AT91C_US1_CSR (AT91C_CAST(AT91C_REG *) 0xFFF90014) // (US1) Channel Status Register +#define AT91C_US1_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF90020) // (US1) Baud Rate Generator Register +#define AT91C_US1_THR (AT91C_CAST(AT91C_REG *) 0xFFF9001C) // (US1) Transmitter Holding Register +#define AT91C_US1_VER (AT91C_CAST(AT91C_REG *) 0xFFF900FC) // (US1) VERSION Register +#define AT91C_US1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF900F0) // (US1) US IPNAME1 REGISTER +// ========== Register definition for PDC_US2 peripheral ========== +#define AT91C_US2_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF94114) // (PDC_US2) Receive Next Counter Register +#define AT91C_US2_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF94120) // (PDC_US2) PDC Transfer Control Register +#define AT91C_US2_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF94118) // (PDC_US2) Transmit Next Pointer Register +#define AT91C_US2_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9411C) // (PDC_US2) Transmit Next Counter Register +#define AT91C_US2_TPR (AT91C_CAST(AT91C_REG *) 0xFFF94108) // (PDC_US2) Transmit Pointer Register +#define AT91C_US2_RCR (AT91C_CAST(AT91C_REG *) 0xFFF94104) // (PDC_US2) Receive Counter Register +#define AT91C_US2_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF94124) // (PDC_US2) PDC Transfer Status Register +#define AT91C_US2_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9410C) // (PDC_US2) Transmit Counter Register +#define AT91C_US2_RPR (AT91C_CAST(AT91C_REG *) 0xFFF94100) // (PDC_US2) Receive Pointer Register +#define AT91C_US2_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF94110) // (PDC_US2) Receive Next Pointer Register +// ========== Register definition for US2 peripheral ========== +#define AT91C_US2_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF94028) // (US2) Transmitter Time-guard Register +#define AT91C_US2_IER (AT91C_CAST(AT91C_REG *) 0xFFF94008) // (US2) Interrupt Enable Register +#define AT91C_US2_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF940EC) // (US2) US ADDRSIZE REGISTER +#define AT91C_US2_NER (AT91C_CAST(AT91C_REG *) 0xFFF94044) // (US2) Nb Errors Register +#define AT91C_US2_CR (AT91C_CAST(AT91C_REG *) 0xFFF94000) // (US2) Control Register +#define AT91C_US2_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9400C) // (US2) Interrupt Disable Register +#define AT91C_US2_VER (AT91C_CAST(AT91C_REG *) 0xFFF940FC) // (US2) VERSION Register +#define AT91C_US2_THR (AT91C_CAST(AT91C_REG *) 0xFFF9401C) // (US2) Transmitter Holding Register +#define AT91C_US2_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF94020) // (US2) Baud Rate Generator Register +#define AT91C_US2_CSR (AT91C_CAST(AT91C_REG *) 0xFFF94014) // (US2) Channel Status Register +#define AT91C_US2_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF940F4) // (US2) US IPNAME2 REGISTER +#define AT91C_US2_IMR (AT91C_CAST(AT91C_REG *) 0xFFF94010) // (US2) Interrupt Mask Register +#define AT91C_US2_RHR (AT91C_CAST(AT91C_REG *) 0xFFF94018) // (US2) Receiver Holding Register +#define AT91C_US2_MR (AT91C_CAST(AT91C_REG *) 0xFFF94004) // (US2) Mode Register +#define AT91C_US2_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF94040) // (US2) FI_DI_Ratio Register +#define AT91C_US2_MAN (AT91C_CAST(AT91C_REG *) 0xFFF94050) // (US2) Manchester Encoder Decoder Register +#define AT91C_US2_IF (AT91C_CAST(AT91C_REG *) 0xFFF9404C) // (US2) IRDA_FILTER Register +#define AT91C_US2_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF940F8) // (US2) US FEATURES REGISTER +#define AT91C_US2_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF940F0) // (US2) US IPNAME1 REGISTER +#define AT91C_US2_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF94024) // (US2) Receiver Time-out Register +// ========== Register definition for PDC_US3 peripheral ========== +#define AT91C_US3_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF98124) // (PDC_US3) PDC Transfer Status Register +#define AT91C_US3_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9810C) // (PDC_US3) Transmit Counter Register +#define AT91C_US3_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF98110) // (PDC_US3) Receive Next Pointer Register +#define AT91C_US3_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF98114) // (PDC_US3) Receive Next Counter Register +#define AT91C_US3_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF98118) // (PDC_US3) Transmit Next Pointer Register +#define AT91C_US3_RPR (AT91C_CAST(AT91C_REG *) 0xFFF98100) // (PDC_US3) Receive Pointer Register +#define AT91C_US3_TPR (AT91C_CAST(AT91C_REG *) 0xFFF98108) // (PDC_US3) Transmit Pointer Register +#define AT91C_US3_RCR (AT91C_CAST(AT91C_REG *) 0xFFF98104) // (PDC_US3) Receive Counter Register +#define AT91C_US3_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9811C) // (PDC_US3) Transmit Next Counter Register +#define AT91C_US3_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF98120) // (PDC_US3) PDC Transfer Control Register +// ========== Register definition for US3 peripheral ========== +#define AT91C_US3_VER (AT91C_CAST(AT91C_REG *) 0xFFF980FC) // (US3) VERSION Register +#define AT91C_US3_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF98020) // (US3) Baud Rate Generator Register +#define AT91C_US3_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF98028) // (US3) Transmitter Time-guard Register +#define AT91C_US3_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF98024) // (US3) Receiver Time-out Register +#define AT91C_US3_MAN (AT91C_CAST(AT91C_REG *) 0xFFF98050) // (US3) Manchester Encoder Decoder Register +#define AT91C_US3_NER (AT91C_CAST(AT91C_REG *) 0xFFF98044) // (US3) Nb Errors Register +#define AT91C_US3_CR (AT91C_CAST(AT91C_REG *) 0xFFF98000) // (US3) Control Register +#define AT91C_US3_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9800C) // (US3) Interrupt Disable Register +#define AT91C_US3_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF980EC) // (US3) US ADDRSIZE REGISTER +#define AT91C_US3_CSR (AT91C_CAST(AT91C_REG *) 0xFFF98014) // (US3) Channel Status Register +#define AT91C_US3_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF980F4) // (US3) US IPNAME2 REGISTER +#define AT91C_US3_IER (AT91C_CAST(AT91C_REG *) 0xFFF98008) // (US3) Interrupt Enable Register +#define AT91C_US3_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF980F8) // (US3) US FEATURES REGISTER +#define AT91C_US3_MR (AT91C_CAST(AT91C_REG *) 0xFFF98004) // (US3) Mode Register +#define AT91C_US3_IF (AT91C_CAST(AT91C_REG *) 0xFFF9804C) // (US3) IRDA_FILTER Register +#define AT91C_US3_THR (AT91C_CAST(AT91C_REG *) 0xFFF9801C) // (US3) Transmitter Holding Register +#define AT91C_US3_IMR (AT91C_CAST(AT91C_REG *) 0xFFF98010) // (US3) Interrupt Mask Register +#define AT91C_US3_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF98040) // (US3) FI_DI_Ratio Register +#define AT91C_US3_RHR (AT91C_CAST(AT91C_REG *) 0xFFF98018) // (US3) Receiver Holding Register +#define AT91C_US3_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF980F0) // (US3) US IPNAME1 REGISTER +// ========== Register definition for PDC_SSC0 peripheral ========== +#define AT91C_SSC0_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF9C118) // (PDC_SSC0) Transmit Next Pointer Register +#define AT91C_SSC0_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF9C124) // (PDC_SSC0) PDC Transfer Status Register +#define AT91C_SSC0_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9C11C) // (PDC_SSC0) Transmit Next Counter Register +#define AT91C_SSC0_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF9C114) // (PDC_SSC0) Receive Next Counter Register +#define AT91C_SSC0_TPR (AT91C_CAST(AT91C_REG *) 0xFFF9C108) // (PDC_SSC0) Transmit Pointer Register +#define AT91C_SSC0_RCR (AT91C_CAST(AT91C_REG *) 0xFFF9C104) // (PDC_SSC0) Receive Counter Register +#define AT91C_SSC0_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF9C120) // (PDC_SSC0) PDC Transfer Control Register +#define AT91C_SSC0_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF9C110) // (PDC_SSC0) Receive Next Pointer Register +#define AT91C_SSC0_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9C10C) // (PDC_SSC0) Transmit Counter Register +#define AT91C_SSC0_RPR (AT91C_CAST(AT91C_REG *) 0xFFF9C100) // (PDC_SSC0) Receive Pointer Register +// ========== Register definition for SSC0 peripheral ========== +#define AT91C_SSC0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF9C0F4) // (SSC0) SSC IPNAME2 REGISTER +#define AT91C_SSC0_SR (AT91C_CAST(AT91C_REG *) 0xFFF9C040) // (SSC0) Status Register +#define AT91C_SSC0_TSHR (AT91C_CAST(AT91C_REG *) 0xFFF9C034) // (SSC0) Transmit Sync Holding Register +#define AT91C_SSC0_TCMR (AT91C_CAST(AT91C_REG *) 0xFFF9C018) // (SSC0) Transmit Clock Mode Register +#define AT91C_SSC0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF9C0EC) // (SSC0) SSC ADDRSIZE REGISTER +#define AT91C_SSC0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF9C04C) // (SSC0) Interrupt Mask Register +#define AT91C_SSC0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9C048) // (SSC0) Interrupt Disable Register +#define AT91C_SSC0_CR (AT91C_CAST(AT91C_REG *) 0xFFF9C000) // (SSC0) Control Register +#define AT91C_SSC0_VER (AT91C_CAST(AT91C_REG *) 0xFFF9C0FC) // (SSC0) Version Register +#define AT91C_SSC0_RHR (AT91C_CAST(AT91C_REG *) 0xFFF9C020) // (SSC0) Receive Holding Register +#define AT91C_SSC0_THR (AT91C_CAST(AT91C_REG *) 0xFFF9C024) // (SSC0) Transmit Holding Register +#define AT91C_SSC0_CMR (AT91C_CAST(AT91C_REG *) 0xFFF9C004) // (SSC0) Clock Mode Register +#define AT91C_SSC0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF9C0F8) // (SSC0) SSC FEATURES REGISTER +#define AT91C_SSC0_RCMR (AT91C_CAST(AT91C_REG *) 0xFFF9C010) // (SSC0) Receive Clock ModeRegister +#define AT91C_SSC0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF9C0F0) // (SSC0) SSC IPNAME1 REGISTER +#define AT91C_SSC0_RSHR (AT91C_CAST(AT91C_REG *) 0xFFF9C030) // (SSC0) Receive Sync Holding Register +#define AT91C_SSC0_IER (AT91C_CAST(AT91C_REG *) 0xFFF9C044) // (SSC0) Interrupt Enable Register +#define AT91C_SSC0_TFMR (AT91C_CAST(AT91C_REG *) 0xFFF9C01C) // (SSC0) Transmit Frame Mode Register +#define AT91C_SSC0_RFMR (AT91C_CAST(AT91C_REG *) 0xFFF9C014) // (SSC0) Receive Frame Mode Register +// ========== Register definition for PDC_SSC1 peripheral ========== +#define AT91C_SSC1_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFA0110) // (PDC_SSC1) Receive Next Pointer Register +#define AT91C_SSC1_TCR (AT91C_CAST(AT91C_REG *) 0xFFFA010C) // (PDC_SSC1) Transmit Counter Register +#define AT91C_SSC1_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFA011C) // (PDC_SSC1) Transmit Next Counter Register +#define AT91C_SSC1_RCR (AT91C_CAST(AT91C_REG *) 0xFFFA0104) // (PDC_SSC1) Receive Counter Register +#define AT91C_SSC1_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFA0114) // (PDC_SSC1) Receive Next Counter Register +#define AT91C_SSC1_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFA0120) // (PDC_SSC1) PDC Transfer Control Register +#define AT91C_SSC1_TPR (AT91C_CAST(AT91C_REG *) 0xFFFA0108) // (PDC_SSC1) Transmit Pointer Register +#define AT91C_SSC1_RPR (AT91C_CAST(AT91C_REG *) 0xFFFA0100) // (PDC_SSC1) Receive Pointer Register +#define AT91C_SSC1_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFA0124) // (PDC_SSC1) PDC Transfer Status Register +#define AT91C_SSC1_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFA0118) // (PDC_SSC1) Transmit Next Pointer Register +// ========== Register definition for SSC1 peripheral ========== +#define AT91C_SSC1_SR (AT91C_CAST(AT91C_REG *) 0xFFFA0040) // (SSC1) Status Register +#define AT91C_SSC1_TFMR (AT91C_CAST(AT91C_REG *) 0xFFFA001C) // (SSC1) Transmit Frame Mode Register +#define AT91C_SSC1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFFA00F0) // (SSC1) SSC IPNAME1 REGISTER +#define AT91C_SSC1_CMR (AT91C_CAST(AT91C_REG *) 0xFFFA0004) // (SSC1) Clock Mode Register +#define AT91C_SSC1_THR (AT91C_CAST(AT91C_REG *) 0xFFFA0024) // (SSC1) Transmit Holding Register +#define AT91C_SSC1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFA00F8) // (SSC1) SSC FEATURES REGISTER +#define AT91C_SSC1_TSHR (AT91C_CAST(AT91C_REG *) 0xFFFA0034) // (SSC1) Transmit Sync Holding Register +#define AT91C_SSC1_RCMR (AT91C_CAST(AT91C_REG *) 0xFFFA0010) // (SSC1) Receive Clock ModeRegister +#define AT91C_SSC1_RHR (AT91C_CAST(AT91C_REG *) 0xFFFA0020) // (SSC1) Receive Holding Register +#define AT91C_SSC1_VER (AT91C_CAST(AT91C_REG *) 0xFFFA00FC) // (SSC1) Version Register +#define AT91C_SSC1_TCMR (AT91C_CAST(AT91C_REG *) 0xFFFA0018) // (SSC1) Transmit Clock Mode Register +#define AT91C_SSC1_CR (AT91C_CAST(AT91C_REG *) 0xFFFA0000) // (SSC1) Control Register +#define AT91C_SSC1_RSHR (AT91C_CAST(AT91C_REG *) 0xFFFA0030) // (SSC1) Receive Sync Holding Register +#define AT91C_SSC1_IER (AT91C_CAST(AT91C_REG *) 0xFFFA0044) // (SSC1) Interrupt Enable Register +#define AT91C_SSC1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFA00EC) // (SSC1) SSC ADDRSIZE REGISTER +#define AT91C_SSC1_RFMR (AT91C_CAST(AT91C_REG *) 0xFFFA0014) // (SSC1) Receive Frame Mode Register +#define AT91C_SSC1_IMR (AT91C_CAST(AT91C_REG *) 0xFFFA004C) // (SSC1) Interrupt Mask Register +#define AT91C_SSC1_IDR (AT91C_CAST(AT91C_REG *) 0xFFFA0048) // (SSC1) Interrupt Disable Register +#define AT91C_SSC1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFFA00F4) // (SSC1) SSC IPNAME2 REGISTER +// ========== Register definition for PWMC_CH0 peripheral ========== +#define AT91C_PWMC_CH0_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB820C) // (PWMC_CH0) Channel Counter Register +#define AT91C_PWMC_CH0_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8208) // (PWMC_CH0) Channel Period Register +#define AT91C_PWMC_CH0_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8210) // (PWMC_CH0) Channel Update Register +#define AT91C_PWMC_CH0_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8204) // (PWMC_CH0) Channel Duty Cycle Register +#define AT91C_PWMC_CH0_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8200) // (PWMC_CH0) Channel Mode Register +#define AT91C_PWMC_CH0_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8214) // (PWMC_CH0) Reserved +// ========== Register definition for PWMC_CH1 peripheral ========== +#define AT91C_PWMC_CH1_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB822C) // (PWMC_CH1) Channel Counter Register +#define AT91C_PWMC_CH1_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8224) // (PWMC_CH1) Channel Duty Cycle Register +#define AT91C_PWMC_CH1_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8220) // (PWMC_CH1) Channel Mode Register +#define AT91C_PWMC_CH1_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8228) // (PWMC_CH1) Channel Period Register +#define AT91C_PWMC_CH1_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8234) // (PWMC_CH1) Reserved +#define AT91C_PWMC_CH1_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8230) // (PWMC_CH1) Channel Update Register +// ========== Register definition for PWMC_CH2 peripheral ========== +#define AT91C_PWMC_CH2_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8250) // (PWMC_CH2) Channel Update Register +#define AT91C_PWMC_CH2_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8240) // (PWMC_CH2) Channel Mode Register +#define AT91C_PWMC_CH2_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8254) // (PWMC_CH2) Reserved +#define AT91C_PWMC_CH2_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8248) // (PWMC_CH2) Channel Period Register +#define AT91C_PWMC_CH2_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8244) // (PWMC_CH2) Channel Duty Cycle Register +#define AT91C_PWMC_CH2_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB824C) // (PWMC_CH2) Channel Counter Register +// ========== Register definition for PWMC_CH3 peripheral ========== +#define AT91C_PWMC_CH3_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8268) // (PWMC_CH3) Channel Period Register +#define AT91C_PWMC_CH3_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8274) // (PWMC_CH3) Reserved +#define AT91C_PWMC_CH3_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8270) // (PWMC_CH3) Channel Update Register +#define AT91C_PWMC_CH3_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8264) // (PWMC_CH3) Channel Duty Cycle Register +#define AT91C_PWMC_CH3_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB826C) // (PWMC_CH3) Channel Counter Register +#define AT91C_PWMC_CH3_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8260) // (PWMC_CH3) Channel Mode Register +// ========== Register definition for PWMC peripheral ========== +#define AT91C_PWMC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFB8014) // (PWMC) PWMC Interrupt Disable Register +#define AT91C_PWMC_MR (AT91C_CAST(AT91C_REG *) 0xFFFB8000) // (PWMC) PWMC Mode Register +#define AT91C_PWMC_VR (AT91C_CAST(AT91C_REG *) 0xFFFB80FC) // (PWMC) PWMC Version Register +#define AT91C_PWMC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFB8018) // (PWMC) PWMC Interrupt Mask Register +#define AT91C_PWMC_SR (AT91C_CAST(AT91C_REG *) 0xFFFB800C) // (PWMC) PWMC Status Register +#define AT91C_PWMC_ISR (AT91C_CAST(AT91C_REG *) 0xFFFB801C) // (PWMC) PWMC Interrupt Status Register +#define AT91C_PWMC_ENA (AT91C_CAST(AT91C_REG *) 0xFFFB8004) // (PWMC) PWMC Enable Register +#define AT91C_PWMC_IER (AT91C_CAST(AT91C_REG *) 0xFFFB8010) // (PWMC) PWMC Interrupt Enable Register +#define AT91C_PWMC_DIS (AT91C_CAST(AT91C_REG *) 0xFFFB8008) // (PWMC) PWMC Disable Register +// ========== Register definition for PDC_SPI0 peripheral ========== +#define AT91C_SPI0_TPR (AT91C_CAST(AT91C_REG *) 0xFFFA4108) // (PDC_SPI0) Transmit Pointer Register +#define AT91C_SPI0_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFA4120) // (PDC_SPI0) PDC Transfer Control Register +#define AT91C_SPI0_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFA4110) // (PDC_SPI0) Receive Next Pointer Register +#define AT91C_SPI0_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFA411C) // (PDC_SPI0) Transmit Next Counter Register +#define AT91C_SPI0_TCR (AT91C_CAST(AT91C_REG *) 0xFFFA410C) // (PDC_SPI0) Transmit Counter Register +#define AT91C_SPI0_RCR (AT91C_CAST(AT91C_REG *) 0xFFFA4104) // (PDC_SPI0) Receive Counter Register +#define AT91C_SPI0_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFA4114) // (PDC_SPI0) Receive Next Counter Register +#define AT91C_SPI0_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFA4118) // (PDC_SPI0) Transmit Next Pointer Register +#define AT91C_SPI0_RPR (AT91C_CAST(AT91C_REG *) 0xFFFA4100) // (PDC_SPI0) Receive Pointer Register +#define AT91C_SPI0_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFA4124) // (PDC_SPI0) PDC Transfer Status Register +// ========== Register definition for PDC_SPI1 peripheral ========== +#define AT91C_SPI1_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFA8114) // (PDC_SPI1) Receive Next Counter Register +#define AT91C_SPI1_TCR (AT91C_CAST(AT91C_REG *) 0xFFFA810C) // (PDC_SPI1) Transmit Counter Register +#define AT91C_SPI1_RCR (AT91C_CAST(AT91C_REG *) 0xFFFA8104) // (PDC_SPI1) Receive Counter Register +#define AT91C_SPI1_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFA8118) // (PDC_SPI1) Transmit Next Pointer Register +#define AT91C_SPI1_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFA8110) // (PDC_SPI1) Receive Next Pointer Register +#define AT91C_SPI1_RPR (AT91C_CAST(AT91C_REG *) 0xFFFA8100) // (PDC_SPI1) Receive Pointer Register +#define AT91C_SPI1_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFA811C) // (PDC_SPI1) Transmit Next Counter Register +#define AT91C_SPI1_TPR (AT91C_CAST(AT91C_REG *) 0xFFFA8108) // (PDC_SPI1) Transmit Pointer Register +#define AT91C_SPI1_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFA8124) // (PDC_SPI1) PDC Transfer Status Register +#define AT91C_SPI1_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFA8120) // (PDC_SPI1) PDC Transfer Control Register +// ========== Register definition for SPI0 peripheral ========== +#define AT91C_SPI0_MR (AT91C_CAST(AT91C_REG *) 0xFFFA4004) // (SPI0) Mode Register +#define AT91C_SPI0_RDR (AT91C_CAST(AT91C_REG *) 0xFFFA4008) // (SPI0) Receive Data Register +#define AT91C_SPI0_CR (AT91C_CAST(AT91C_REG *) 0xFFFA4000) // (SPI0) Control Register +#define AT91C_SPI0_IER (AT91C_CAST(AT91C_REG *) 0xFFFA4014) // (SPI0) Interrupt Enable Register +#define AT91C_SPI0_TDR (AT91C_CAST(AT91C_REG *) 0xFFFA400C) // (SPI0) Transmit Data Register +#define AT91C_SPI0_IDR (AT91C_CAST(AT91C_REG *) 0xFFFA4018) // (SPI0) Interrupt Disable Register +#define AT91C_SPI0_CSR (AT91C_CAST(AT91C_REG *) 0xFFFA4030) // (SPI0) Chip Select Register +#define AT91C_SPI0_SR (AT91C_CAST(AT91C_REG *) 0xFFFA4010) // (SPI0) Status Register +#define AT91C_SPI0_IMR (AT91C_CAST(AT91C_REG *) 0xFFFA401C) // (SPI0) Interrupt Mask Register +// ========== Register definition for SPI1 peripheral ========== +#define AT91C_SPI1_CSR (AT91C_CAST(AT91C_REG *) 0xFFFA8030) // (SPI1) Chip Select Register +#define AT91C_SPI1_IER (AT91C_CAST(AT91C_REG *) 0xFFFA8014) // (SPI1) Interrupt Enable Register +#define AT91C_SPI1_RDR (AT91C_CAST(AT91C_REG *) 0xFFFA8008) // (SPI1) Receive Data Register +#define AT91C_SPI1_IDR (AT91C_CAST(AT91C_REG *) 0xFFFA8018) // (SPI1) Interrupt Disable Register +#define AT91C_SPI1_MR (AT91C_CAST(AT91C_REG *) 0xFFFA8004) // (SPI1) Mode Register +#define AT91C_SPI1_CR (AT91C_CAST(AT91C_REG *) 0xFFFA8000) // (SPI1) Control Register +#define AT91C_SPI1_SR (AT91C_CAST(AT91C_REG *) 0xFFFA8010) // (SPI1) Status Register +#define AT91C_SPI1_TDR (AT91C_CAST(AT91C_REG *) 0xFFFA800C) // (SPI1) Transmit Data Register +#define AT91C_SPI1_IMR (AT91C_CAST(AT91C_REG *) 0xFFFA801C) // (SPI1) Interrupt Mask Register +// ========== Register definition for PDC_TSADC peripheral ========== +#define AT91C_TSADC_TCR (AT91C_CAST(AT91C_REG *) 0xFFFB010C) // (PDC_TSADC) Transmit Counter Register +#define AT91C_TSADC_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFB0120) // (PDC_TSADC) PDC Transfer Control Register +#define AT91C_TSADC_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFB0114) // (PDC_TSADC) Receive Next Counter Register +#define AT91C_TSADC_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFB0124) // (PDC_TSADC) PDC Transfer Status Register +#define AT91C_TSADC_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFB011C) // (PDC_TSADC) Transmit Next Counter Register +#define AT91C_TSADC_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFB0110) // (PDC_TSADC) Receive Next Pointer Register +#define AT91C_TSADC_RCR (AT91C_CAST(AT91C_REG *) 0xFFFB0104) // (PDC_TSADC) Receive Counter Register +#define AT91C_TSADC_TPR (AT91C_CAST(AT91C_REG *) 0xFFFB0108) // (PDC_TSADC) Transmit Pointer Register +#define AT91C_TSADC_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFB0118) // (PDC_TSADC) Transmit Next Pointer Register +#define AT91C_TSADC_RPR (AT91C_CAST(AT91C_REG *) 0xFFFB0100) // (PDC_TSADC) Receive Pointer Register +// ========== Register definition for TSADC peripheral ========== +#define AT91C_TSADC_CHSR (AT91C_CAST(AT91C_REG *) 0xFFFB0018) // (TSADC) Channel Status Register +#define AT91C_TSADC_CDR5 (AT91C_CAST(AT91C_REG *) 0xFFFB0044) // (TSADC) Channel Data Register 5 +#define AT91C_TSADC_CR (AT91C_CAST(AT91C_REG *) 0xFFFB0000) // (TSADC) Control Register +#define AT91C_TSADC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFB002C) // (TSADC) Interrupt Mask Register +#define AT91C_TSADC_CHDR (AT91C_CAST(AT91C_REG *) 0xFFFB0014) // (TSADC) Channel Disable Register +#define AT91C_TSADC_LCDR (AT91C_CAST(AT91C_REG *) 0xFFFB0020) // (TSADC) Last Converted Register +#define AT91C_TSADC_IER (AT91C_CAST(AT91C_REG *) 0xFFFB0024) // (TSADC) Interrupt Enable Register +#define AT91C_TSADC_TSR (AT91C_CAST(AT91C_REG *) 0xFFFB000C) // (TSADC) Touch Screen Register +#define AT91C_TSADC_CDR2 (AT91C_CAST(AT91C_REG *) 0xFFFB0038) // (TSADC) Channel Data Register 2 +#define AT91C_TSADC_CDR4 (AT91C_CAST(AT91C_REG *) 0xFFFB0040) // (TSADC) Channel Data Register 4 +#define AT91C_TSADC_CHER (AT91C_CAST(AT91C_REG *) 0xFFFB0010) // (TSADC) Channel Enable Register +#define AT91C_TSADC_TRGR (AT91C_CAST(AT91C_REG *) 0xFFFB0008) // (TSADC) Trigger Register +#define AT91C_TSADC_CDR3 (AT91C_CAST(AT91C_REG *) 0xFFFB003C) // (TSADC) Channel Data Register 3 +#define AT91C_TSADC_SR (AT91C_CAST(AT91C_REG *) 0xFFFB001C) // (TSADC) Status Register +#define AT91C_TSADC_CDR0 (AT91C_CAST(AT91C_REG *) 0xFFFB0030) // (TSADC) Channel Data Register 0 +#define AT91C_TSADC_CDR6 (AT91C_CAST(AT91C_REG *) 0xFFFB0048) // (TSADC) Channel Data Register 6 +#define AT91C_TSADC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFB0028) // (TSADC) Interrupt Disable Register +#define AT91C_TSADC_MR (AT91C_CAST(AT91C_REG *) 0xFFFB0004) // (TSADC) Mode Register +#define AT91C_TSADC_CDR7 (AT91C_CAST(AT91C_REG *) 0xFFFB004C) // (TSADC) Channel Data Register 7 +#define AT91C_TSADC_CDR1 (AT91C_CAST(AT91C_REG *) 0xFFFB0034) // (TSADC) Channel Data Register 1 +// ========== Register definition for UDPHS_EPTFIFO peripheral ========== +#define AT91C_UDPHS_EPTFIFO_READEPT3 (AT91C_CAST(AT91C_REG *) 0x00630000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 3 +#define AT91C_UDPHS_EPTFIFO_READEPT5 (AT91C_CAST(AT91C_REG *) 0x00650000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 5 +#define AT91C_UDPHS_EPTFIFO_READEPT1 (AT91C_CAST(AT91C_REG *) 0x00610000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 1 +#define AT91C_UDPHS_EPTFIFO_READEPT0 (AT91C_CAST(AT91C_REG *) 0x00600000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 0 +#define AT91C_UDPHS_EPTFIFO_READEPT6 (AT91C_CAST(AT91C_REG *) 0x00660000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 6 +#define AT91C_UDPHS_EPTFIFO_READEPT2 (AT91C_CAST(AT91C_REG *) 0x00620000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 2 +#define AT91C_UDPHS_EPTFIFO_READEPT4 (AT91C_CAST(AT91C_REG *) 0x00640000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 4 +// ========== Register definition for UDPHS_EPT_0 peripheral ========== +#define AT91C_UDPHS_EPT_0_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7811C) // (UDPHS_EPT_0) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_0_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7810C) // (UDPHS_EPT_0) UDPHS Endpoint Control Register +#define AT91C_UDPHS_EPT_0_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78108) // (UDPHS_EPT_0) UDPHS Endpoint Control Disable Register +#define AT91C_UDPHS_EPT_0_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78100) // (UDPHS_EPT_0) UDPHS Endpoint Config Register +#define AT91C_UDPHS_EPT_0_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78118) // (UDPHS_EPT_0) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_0_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78114) // (UDPHS_EPT_0) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_0_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78104) // (UDPHS_EPT_0) UDPHS Endpoint Control Enable Register +// ========== Register definition for UDPHS_EPT_1 peripheral ========== +#define AT91C_UDPHS_EPT_1_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78124) // (UDPHS_EPT_1) UDPHS Endpoint Control Enable Register +#define AT91C_UDPHS_EPT_1_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78120) // (UDPHS_EPT_1) UDPHS Endpoint Config Register +#define AT91C_UDPHS_EPT_1_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7812C) // (UDPHS_EPT_1) UDPHS Endpoint Control Register +#define AT91C_UDPHS_EPT_1_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7813C) // (UDPHS_EPT_1) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_1_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78138) // (UDPHS_EPT_1) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_1_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78134) // (UDPHS_EPT_1) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_1_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78128) // (UDPHS_EPT_1) UDPHS Endpoint Control Disable Register +// ========== Register definition for UDPHS_EPT_2 peripheral ========== +#define AT91C_UDPHS_EPT_2_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78158) // (UDPHS_EPT_2) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_2_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78148) // (UDPHS_EPT_2) UDPHS Endpoint Control Disable Register +#define AT91C_UDPHS_EPT_2_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7815C) // (UDPHS_EPT_2) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_2_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78154) // (UDPHS_EPT_2) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_2_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7814C) // (UDPHS_EPT_2) UDPHS Endpoint Control Register +#define AT91C_UDPHS_EPT_2_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78140) // (UDPHS_EPT_2) UDPHS Endpoint Config Register +#define AT91C_UDPHS_EPT_2_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78144) // (UDPHS_EPT_2) UDPHS Endpoint Control Enable Register +// ========== Register definition for UDPHS_EPT_3 peripheral ========== +#define AT91C_UDPHS_EPT_3_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7816C) // (UDPHS_EPT_3) UDPHS Endpoint Control Register +#define AT91C_UDPHS_EPT_3_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78178) // (UDPHS_EPT_3) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_3_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78168) // (UDPHS_EPT_3) UDPHS Endpoint Control Disable Register +#define AT91C_UDPHS_EPT_3_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7817C) // (UDPHS_EPT_3) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_3_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78174) // (UDPHS_EPT_3) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_3_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78164) // (UDPHS_EPT_3) UDPHS Endpoint Control Enable Register +#define AT91C_UDPHS_EPT_3_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78160) // (UDPHS_EPT_3) UDPHS Endpoint Config Register +// ========== Register definition for UDPHS_EPT_4 peripheral ========== +#define AT91C_UDPHS_EPT_4_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78198) // (UDPHS_EPT_4) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_4_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7818C) // (UDPHS_EPT_4) UDPHS Endpoint Control Register +#define AT91C_UDPHS_EPT_4_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78184) // (UDPHS_EPT_4) UDPHS Endpoint Control Enable Register +#define AT91C_UDPHS_EPT_4_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7819C) // (UDPHS_EPT_4) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_4_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78194) // (UDPHS_EPT_4) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_4_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78180) // (UDPHS_EPT_4) UDPHS Endpoint Config Register +#define AT91C_UDPHS_EPT_4_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78188) // (UDPHS_EPT_4) UDPHS Endpoint Control Disable Register +// ========== Register definition for UDPHS_EPT_5 peripheral ========== +#define AT91C_UDPHS_EPT_5_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF781BC) // (UDPHS_EPT_5) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_5_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF781B8) // (UDPHS_EPT_5) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_5_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF781A4) // (UDPHS_EPT_5) UDPHS Endpoint Control Enable Register +#define AT91C_UDPHS_EPT_5_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF781B4) // (UDPHS_EPT_5) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_5_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF781A8) // (UDPHS_EPT_5) UDPHS Endpoint Control Disable Register +#define AT91C_UDPHS_EPT_5_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF781A0) // (UDPHS_EPT_5) UDPHS Endpoint Config Register +#define AT91C_UDPHS_EPT_5_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF781AC) // (UDPHS_EPT_5) UDPHS Endpoint Control Register +// ========== Register definition for UDPHS_EPT_6 peripheral ========== +#define AT91C_UDPHS_EPT_6_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF781D8) // (UDPHS_EPT_6) UDPHS Endpoint Clear Status Register +#define AT91C_UDPHS_EPT_6_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF781C4) // (UDPHS_EPT_6) UDPHS Endpoint Control Enable Register +#define AT91C_UDPHS_EPT_6_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF781CC) // (UDPHS_EPT_6) UDPHS Endpoint Control Register +#define AT91C_UDPHS_EPT_6_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF781D4) // (UDPHS_EPT_6) UDPHS Endpoint Set Status Register +#define AT91C_UDPHS_EPT_6_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF781C8) // (UDPHS_EPT_6) UDPHS Endpoint Control Disable Register +#define AT91C_UDPHS_EPT_6_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF781DC) // (UDPHS_EPT_6) UDPHS Endpoint Status Register +#define AT91C_UDPHS_EPT_6_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF781C0) // (UDPHS_EPT_6) UDPHS Endpoint Config Register +// ========== Register definition for UDPHS_DMA_1 peripheral ========== +#define AT91C_UDPHS_DMA_1_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7831C) // (UDPHS_DMA_1) UDPHS DMA Channel Status Register +#define AT91C_UDPHS_DMA_1_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78310) // (UDPHS_DMA_1) UDPHS DMA Channel Next Descriptor Address +#define AT91C_UDPHS_DMA_1_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78318) // (UDPHS_DMA_1) UDPHS DMA Channel Control Register +#define AT91C_UDPHS_DMA_1_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78314) // (UDPHS_DMA_1) UDPHS DMA Channel Address Register +// ========== Register definition for UDPHS_DMA_2 peripheral ========== +#define AT91C_UDPHS_DMA_2_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78328) // (UDPHS_DMA_2) UDPHS DMA Channel Control Register +#define AT91C_UDPHS_DMA_2_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7832C) // (UDPHS_DMA_2) UDPHS DMA Channel Status Register +#define AT91C_UDPHS_DMA_2_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78324) // (UDPHS_DMA_2) UDPHS DMA Channel Address Register +#define AT91C_UDPHS_DMA_2_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78320) // (UDPHS_DMA_2) UDPHS DMA Channel Next Descriptor Address +// ========== Register definition for UDPHS_DMA_3 peripheral ========== +#define AT91C_UDPHS_DMA_3_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78334) // (UDPHS_DMA_3) UDPHS DMA Channel Address Register +#define AT91C_UDPHS_DMA_3_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78330) // (UDPHS_DMA_3) UDPHS DMA Channel Next Descriptor Address +#define AT91C_UDPHS_DMA_3_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78338) // (UDPHS_DMA_3) UDPHS DMA Channel Control Register +#define AT91C_UDPHS_DMA_3_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7833C) // (UDPHS_DMA_3) UDPHS DMA Channel Status Register +// ========== Register definition for UDPHS_DMA_4 peripheral ========== +#define AT91C_UDPHS_DMA_4_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78340) // (UDPHS_DMA_4) UDPHS DMA Channel Next Descriptor Address +#define AT91C_UDPHS_DMA_4_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78344) // (UDPHS_DMA_4) UDPHS DMA Channel Address Register +#define AT91C_UDPHS_DMA_4_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78348) // (UDPHS_DMA_4) UDPHS DMA Channel Control Register +#define AT91C_UDPHS_DMA_4_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7834C) // (UDPHS_DMA_4) UDPHS DMA Channel Status Register +// ========== Register definition for UDPHS_DMA_5 peripheral ========== +#define AT91C_UDPHS_DMA_5_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7835C) // (UDPHS_DMA_5) UDPHS DMA Channel Status Register +#define AT91C_UDPHS_DMA_5_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78358) // (UDPHS_DMA_5) UDPHS DMA Channel Control Register +#define AT91C_UDPHS_DMA_5_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78350) // (UDPHS_DMA_5) UDPHS DMA Channel Next Descriptor Address +#define AT91C_UDPHS_DMA_5_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78354) // (UDPHS_DMA_5) UDPHS DMA Channel Address Register +// ========== Register definition for UDPHS_DMA_6 peripheral ========== +#define AT91C_UDPHS_DMA_6_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78360) // (UDPHS_DMA_6) UDPHS DMA Channel Next Descriptor Address +#define AT91C_UDPHS_DMA_6_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78368) // (UDPHS_DMA_6) UDPHS DMA Channel Control Register +#define AT91C_UDPHS_DMA_6_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7836C) // (UDPHS_DMA_6) UDPHS DMA Channel Status Register +#define AT91C_UDPHS_DMA_6_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78364) // (UDPHS_DMA_6) UDPHS DMA Channel Address Register +// ========== Register definition for UDPHS peripheral ========== +#define AT91C_UDPHS_IEN (AT91C_CAST(AT91C_REG *) 0xFFF78010) // (UDPHS) UDPHS Interrupt Enable Register +#define AT91C_UDPHS_TSTSOFCNT (AT91C_CAST(AT91C_REG *) 0xFFF780D0) // (UDPHS) UDPHS Test SOF Counter Register +#define AT91C_UDPHS_IPFEATURES (AT91C_CAST(AT91C_REG *) 0xFFF780F8) // (UDPHS) UDPHS Features Register +#define AT91C_UDPHS_TST (AT91C_CAST(AT91C_REG *) 0xFFF780E0) // (UDPHS) UDPHS Test Register +#define AT91C_UDPHS_FNUM (AT91C_CAST(AT91C_REG *) 0xFFF78004) // (UDPHS) UDPHS Frame Number Register +#define AT91C_UDPHS_TSTCNTB (AT91C_CAST(AT91C_REG *) 0xFFF780D8) // (UDPHS) UDPHS Test B Counter Register +#define AT91C_UDPHS_RIPPADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF780EC) // (UDPHS) UDPHS PADDRSIZE Register +#define AT91C_UDPHS_INTSTA (AT91C_CAST(AT91C_REG *) 0xFFF78014) // (UDPHS) UDPHS Interrupt Status Register +#define AT91C_UDPHS_EPTRST (AT91C_CAST(AT91C_REG *) 0xFFF7801C) // (UDPHS) UDPHS Endpoints Reset Register +#define AT91C_UDPHS_TSTCNTA (AT91C_CAST(AT91C_REG *) 0xFFF780D4) // (UDPHS) UDPHS Test A Counter Register +#define AT91C_UDPHS_RIPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF780F4) // (UDPHS) UDPHS Name2 Register +#define AT91C_UDPHS_RIPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF780F0) // (UDPHS) UDPHS Name1 Register +#define AT91C_UDPHS_TSTMODREG (AT91C_CAST(AT91C_REG *) 0xFFF780DC) // (UDPHS) UDPHS Test Mode Register +#define AT91C_UDPHS_CLRINT (AT91C_CAST(AT91C_REG *) 0xFFF78018) // (UDPHS) UDPHS Clear Interrupt Register +#define AT91C_UDPHS_IPVERSION (AT91C_CAST(AT91C_REG *) 0xFFF780FC) // (UDPHS) UDPHS Version Register +#define AT91C_UDPHS_CTRL (AT91C_CAST(AT91C_REG *) 0xFFF78000) // (UDPHS) UDPHS Control Register +// ========== Register definition for PDC_AC97C peripheral ========== +#define AT91C_AC97C_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFAC124) // (PDC_AC97C) PDC Transfer Status Register +#define AT91C_AC97C_RPR (AT91C_CAST(AT91C_REG *) 0xFFFAC100) // (PDC_AC97C) Receive Pointer Register +#define AT91C_AC97C_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFAC114) // (PDC_AC97C) Receive Next Counter Register +#define AT91C_AC97C_RCR (AT91C_CAST(AT91C_REG *) 0xFFFAC104) // (PDC_AC97C) Receive Counter Register +#define AT91C_AC97C_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFAC120) // (PDC_AC97C) PDC Transfer Control Register +#define AT91C_AC97C_TPR (AT91C_CAST(AT91C_REG *) 0xFFFAC108) // (PDC_AC97C) Transmit Pointer Register +#define AT91C_AC97C_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFAC110) // (PDC_AC97C) Receive Next Pointer Register +#define AT91C_AC97C_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFAC118) // (PDC_AC97C) Transmit Next Pointer Register +#define AT91C_AC97C_TCR (AT91C_CAST(AT91C_REG *) 0xFFFAC10C) // (PDC_AC97C) Transmit Counter Register +#define AT91C_AC97C_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFAC11C) // (PDC_AC97C) Transmit Next Counter Register +// ========== Register definition for AC97C peripheral ========== +#define AT91C_AC97C_IER (AT91C_CAST(AT91C_REG *) 0xFFFAC054) // (AC97C) Interrupt Enable Register +#define AT91C_AC97C_COTHR (AT91C_CAST(AT91C_REG *) 0xFFFAC044) // (AC97C) COdec Transmit Holding Register +#define AT91C_AC97C_IDR (AT91C_CAST(AT91C_REG *) 0xFFFAC058) // (AC97C) Interrupt Disable Register +#define AT91C_AC97C_ICA (AT91C_CAST(AT91C_REG *) 0xFFFAC010) // (AC97C) Input Channel AssignementRegister +#define AT91C_AC97C_CATHR (AT91C_CAST(AT91C_REG *) 0xFFFAC024) // (AC97C) Channel A Transmit Holding Register +#define AT91C_AC97C_CBSR (AT91C_CAST(AT91C_REG *) 0xFFFAC038) // (AC97C) Channel B Status Register +#define AT91C_AC97C_CAMR (AT91C_CAST(AT91C_REG *) 0xFFFAC02C) // (AC97C) Channel A Mode Register +#define AT91C_AC97C_SR (AT91C_CAST(AT91C_REG *) 0xFFFAC050) // (AC97C) Status Register +#define AT91C_AC97C_CBTHR (AT91C_CAST(AT91C_REG *) 0xFFFAC034) // (AC97C) Channel B Transmit Holding Register (optional) +#define AT91C_AC97C_CASR (AT91C_CAST(AT91C_REG *) 0xFFFAC028) // (AC97C) Channel A Status Register +#define AT91C_AC97C_COSR (AT91C_CAST(AT91C_REG *) 0xFFFAC048) // (AC97C) CODEC Status Register +#define AT91C_AC97C_MR (AT91C_CAST(AT91C_REG *) 0xFFFAC008) // (AC97C) Mode Register +#define AT91C_AC97C_OCA (AT91C_CAST(AT91C_REG *) 0xFFFAC014) // (AC97C) Output Channel Assignement Register +#define AT91C_AC97C_CORHR (AT91C_CAST(AT91C_REG *) 0xFFFAC040) // (AC97C) COdec Transmit Holding Register +#define AT91C_AC97C_CBRHR (AT91C_CAST(AT91C_REG *) 0xFFFAC030) // (AC97C) Channel B Receive Holding Register (optional) +#define AT91C_AC97C_IMR (AT91C_CAST(AT91C_REG *) 0xFFFAC05C) // (AC97C) Interrupt Mask Register +#define AT91C_AC97C_COMR (AT91C_CAST(AT91C_REG *) 0xFFFAC04C) // (AC97C) CODEC Mask Status Register +#define AT91C_AC97C_CARHR (AT91C_CAST(AT91C_REG *) 0xFFFAC020) // (AC97C) Channel A Receive Holding Register +#define AT91C_AC97C_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFAC0FC) // (AC97C) Version Register +#define AT91C_AC97C_CBMR (AT91C_CAST(AT91C_REG *) 0xFFFAC03C) // (AC97C) Channel B Mode Register +// ========== Register definition for LCDC peripheral ========== +#define AT91C_LCDC_MVAL (AT91C_CAST(AT91C_REG *) 0x00500818) // (LCDC) LCD Mode Toggle Rate Value Register +#define AT91C_LCDC_PWRCON (AT91C_CAST(AT91C_REG *) 0x0050083C) // (LCDC) Power Control Register +#define AT91C_LCDC_ISR (AT91C_CAST(AT91C_REG *) 0x00500854) // (LCDC) Interrupt Enable Register +#define AT91C_LCDC_FRMP1 (AT91C_CAST(AT91C_REG *) 0x00500008) // (LCDC) DMA Frame Pointer Register 1 +#define AT91C_LCDC_CTRSTVAL (AT91C_CAST(AT91C_REG *) 0x00500844) // (LCDC) Contrast Value Register +#define AT91C_LCDC_ICR (AT91C_CAST(AT91C_REG *) 0x00500858) // (LCDC) Interrupt Clear Register +#define AT91C_LCDC_TIM1 (AT91C_CAST(AT91C_REG *) 0x00500808) // (LCDC) LCD Timing Config 1 Register +#define AT91C_LCDC_DMACON (AT91C_CAST(AT91C_REG *) 0x0050001C) // (LCDC) DMA Control Register +#define AT91C_LCDC_ITR (AT91C_CAST(AT91C_REG *) 0x00500860) // (LCDC) Interrupts Test Register +#define AT91C_LCDC_IDR (AT91C_CAST(AT91C_REG *) 0x0050084C) // (LCDC) Interrupt Disable Register +#define AT91C_LCDC_DP4_7 (AT91C_CAST(AT91C_REG *) 0x00500820) // (LCDC) Dithering Pattern DP4_7 Register +#define AT91C_LCDC_DP5_7 (AT91C_CAST(AT91C_REG *) 0x0050082C) // (LCDC) Dithering Pattern DP5_7 Register +#define AT91C_LCDC_IRR (AT91C_CAST(AT91C_REG *) 0x00500864) // (LCDC) Interrupts Raw Status Register +#define AT91C_LCDC_DP3_4 (AT91C_CAST(AT91C_REG *) 0x00500830) // (LCDC) Dithering Pattern DP3_4 Register +#define AT91C_LCDC_IMR (AT91C_CAST(AT91C_REG *) 0x00500850) // (LCDC) Interrupt Mask Register +#define AT91C_LCDC_LCDFRCFG (AT91C_CAST(AT91C_REG *) 0x00500810) // (LCDC) LCD Frame Config Register +#define AT91C_LCDC_CTRSTCON (AT91C_CAST(AT91C_REG *) 0x00500840) // (LCDC) Contrast Control Register +#define AT91C_LCDC_DP1_2 (AT91C_CAST(AT91C_REG *) 0x0050081C) // (LCDC) Dithering Pattern DP1_2 Register +#define AT91C_LCDC_FRMP2 (AT91C_CAST(AT91C_REG *) 0x0050000C) // (LCDC) DMA Frame Pointer Register 2 +#define AT91C_LCDC_LCDCON1 (AT91C_CAST(AT91C_REG *) 0x00500800) // (LCDC) LCD Control 1 Register +#define AT91C_LCDC_DP4_5 (AT91C_CAST(AT91C_REG *) 0x00500834) // (LCDC) Dithering Pattern DP4_5 Register +#define AT91C_LCDC_FRMA2 (AT91C_CAST(AT91C_REG *) 0x00500014) // (LCDC) DMA Frame Address Register 2 +#define AT91C_LCDC_BA1 (AT91C_CAST(AT91C_REG *) 0x00500000) // (LCDC) DMA Base Address Register 1 +#define AT91C_LCDC_DMA2DCFG (AT91C_CAST(AT91C_REG *) 0x00500020) // (LCDC) DMA 2D addressing configuration +#define AT91C_LCDC_LUT_ENTRY (AT91C_CAST(AT91C_REG *) 0x00500C00) // (LCDC) LUT Entries Register +#define AT91C_LCDC_DP6_7 (AT91C_CAST(AT91C_REG *) 0x00500838) // (LCDC) Dithering Pattern DP6_7 Register +#define AT91C_LCDC_FRMCFG (AT91C_CAST(AT91C_REG *) 0x00500018) // (LCDC) DMA Frame Configuration Register +#define AT91C_LCDC_TIM2 (AT91C_CAST(AT91C_REG *) 0x0050080C) // (LCDC) LCD Timing Config 2 Register +#define AT91C_LCDC_DP3_5 (AT91C_CAST(AT91C_REG *) 0x00500824) // (LCDC) Dithering Pattern DP3_5 Register +#define AT91C_LCDC_FRMA1 (AT91C_CAST(AT91C_REG *) 0x00500010) // (LCDC) DMA Frame Address Register 1 +#define AT91C_LCDC_IER (AT91C_CAST(AT91C_REG *) 0x00500848) // (LCDC) Interrupt Enable Register +#define AT91C_LCDC_DP2_3 (AT91C_CAST(AT91C_REG *) 0x00500828) // (LCDC) Dithering Pattern DP2_3 Register +#define AT91C_LCDC_FIFO (AT91C_CAST(AT91C_REG *) 0x00500814) // (LCDC) LCD FIFO Register +#define AT91C_LCDC_BA2 (AT91C_CAST(AT91C_REG *) 0x00500004) // (LCDC) DMA Base Address Register 2 +#define AT91C_LCDC_LCDCON2 (AT91C_CAST(AT91C_REG *) 0x00500804) // (LCDC) LCD Control 2 Register +#define AT91C_LCDC_GPR (AT91C_CAST(AT91C_REG *) 0x0050085C) // (LCDC) General Purpose Register +// ========== Register definition for LCDC_16B_TFT peripheral ========== +#define AT91C_TFT_MVAL (AT91C_CAST(AT91C_REG *) 0x00500818) // (LCDC_16B_TFT) LCD Mode Toggle Rate Value Register +#define AT91C_TFT_PWRCON (AT91C_CAST(AT91C_REG *) 0x0050083C) // (LCDC_16B_TFT) Power Control Register +#define AT91C_TFT_ISR (AT91C_CAST(AT91C_REG *) 0x00500854) // (LCDC_16B_TFT) Interrupt Enable Register +#define AT91C_TFT_FRMP1 (AT91C_CAST(AT91C_REG *) 0x00500008) // (LCDC_16B_TFT) DMA Frame Pointer Register 1 +#define AT91C_TFT_CTRSTVAL (AT91C_CAST(AT91C_REG *) 0x00500844) // (LCDC_16B_TFT) Contrast Value Register +#define AT91C_TFT_ICR (AT91C_CAST(AT91C_REG *) 0x00500858) // (LCDC_16B_TFT) Interrupt Clear Register +#define AT91C_TFT_TIM1 (AT91C_CAST(AT91C_REG *) 0x00500808) // (LCDC_16B_TFT) LCD Timing Config 1 Register +#define AT91C_TFT_DMACON (AT91C_CAST(AT91C_REG *) 0x0050001C) // (LCDC_16B_TFT) DMA Control Register +#define AT91C_TFT_ITR (AT91C_CAST(AT91C_REG *) 0x00500860) // (LCDC_16B_TFT) Interrupts Test Register +#define AT91C_TFT_IDR (AT91C_CAST(AT91C_REG *) 0x0050084C) // (LCDC_16B_TFT) Interrupt Disable Register +#define AT91C_TFT_DP4_7 (AT91C_CAST(AT91C_REG *) 0x00500820) // (LCDC_16B_TFT) Dithering Pattern DP4_7 Register +#define AT91C_TFT_DP5_7 (AT91C_CAST(AT91C_REG *) 0x0050082C) // (LCDC_16B_TFT) Dithering Pattern DP5_7 Register +#define AT91C_TFT_IRR (AT91C_CAST(AT91C_REG *) 0x00500864) // (LCDC_16B_TFT) Interrupts Raw Status Register +#define AT91C_TFT_DP3_4 (AT91C_CAST(AT91C_REG *) 0x00500830) // (LCDC_16B_TFT) Dithering Pattern DP3_4 Register +#define AT91C_TFT_IMR (AT91C_CAST(AT91C_REG *) 0x00500850) // (LCDC_16B_TFT) Interrupt Mask Register +#define AT91C_TFT_LCDFRCFG (AT91C_CAST(AT91C_REG *) 0x00500810) // (LCDC_16B_TFT) LCD Frame Config Register +#define AT91C_TFT_CTRSTCON (AT91C_CAST(AT91C_REG *) 0x00500840) // (LCDC_16B_TFT) Contrast Control Register +#define AT91C_TFT_DP1_2 (AT91C_CAST(AT91C_REG *) 0x0050081C) // (LCDC_16B_TFT) Dithering Pattern DP1_2 Register +#define AT91C_TFT_FRMP2 (AT91C_CAST(AT91C_REG *) 0x0050000C) // (LCDC_16B_TFT) DMA Frame Pointer Register 2 +#define AT91C_TFT_LCDCON1 (AT91C_CAST(AT91C_REG *) 0x00500800) // (LCDC_16B_TFT) LCD Control 1 Register +#define AT91C_TFT_DP4_5 (AT91C_CAST(AT91C_REG *) 0x00500834) // (LCDC_16B_TFT) Dithering Pattern DP4_5 Register +#define AT91C_TFT_FRMA2 (AT91C_CAST(AT91C_REG *) 0x00500014) // (LCDC_16B_TFT) DMA Frame Address Register 2 +#define AT91C_TFT_BA1 (AT91C_CAST(AT91C_REG *) 0x00500000) // (LCDC_16B_TFT) DMA Base Address Register 1 +#define AT91C_TFT_DMA2DCFG (AT91C_CAST(AT91C_REG *) 0x00500020) // (LCDC_16B_TFT) DMA 2D addressing configuration +#define AT91C_TFT_LUT_ENTRY (AT91C_CAST(AT91C_REG *) 0x00500C00) // (LCDC_16B_TFT) LUT Entries Register +#define AT91C_TFT_DP6_7 (AT91C_CAST(AT91C_REG *) 0x00500838) // (LCDC_16B_TFT) Dithering Pattern DP6_7 Register +#define AT91C_TFT_FRMCFG (AT91C_CAST(AT91C_REG *) 0x00500018) // (LCDC_16B_TFT) DMA Frame Configuration Register +#define AT91C_TFT_TIM2 (AT91C_CAST(AT91C_REG *) 0x0050080C) // (LCDC_16B_TFT) LCD Timing Config 2 Register +#define AT91C_TFT_DP3_5 (AT91C_CAST(AT91C_REG *) 0x00500824) // (LCDC_16B_TFT) Dithering Pattern DP3_5 Register +#define AT91C_TFT_FRMA1 (AT91C_CAST(AT91C_REG *) 0x00500010) // (LCDC_16B_TFT) DMA Frame Address Register 1 +#define AT91C_TFT_IER (AT91C_CAST(AT91C_REG *) 0x00500848) // (LCDC_16B_TFT) Interrupt Enable Register +#define AT91C_TFT_DP2_3 (AT91C_CAST(AT91C_REG *) 0x00500828) // (LCDC_16B_TFT) Dithering Pattern DP2_3 Register +#define AT91C_TFT_FIFO (AT91C_CAST(AT91C_REG *) 0x00500814) // (LCDC_16B_TFT) LCD FIFO Register +#define AT91C_TFT_BA2 (AT91C_CAST(AT91C_REG *) 0x00500004) // (LCDC_16B_TFT) DMA Base Address Register 2 +#define AT91C_TFT_LCDCON2 (AT91C_CAST(AT91C_REG *) 0x00500804) // (LCDC_16B_TFT) LCD Control 2 Register +#define AT91C_TFT_GPR (AT91C_CAST(AT91C_REG *) 0x0050085C) // (LCDC_16B_TFT) General Purpose Register +// ========== Register definition for HDMA_CH_0 peripheral ========== +#define AT91C_HDMA_CH_0_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC5C) // (HDMA_CH_0) HDMA Reserved +#define AT91C_HDMA_CH_0_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC40) // (HDMA_CH_0) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_0_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC58) // (HDMA_CH_0) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_0_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC44) // (HDMA_CH_0) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_0_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFEC50) // (HDMA_CH_0) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_0_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC54) // (HDMA_CH_0) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_0_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC60) // (HDMA_CH_0) HDMA Reserved +#define AT91C_HDMA_CH_0_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFEC48) // (HDMA_CH_0) HDMA Channel Control A Register +#define AT91C_HDMA_CH_0_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFEC4C) // (HDMA_CH_0) HDMA Channel Control B Register +#define AT91C_HDMA_CH_0_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC3C) // (HDMA_CH_0) HDMA Channel Source Address Register +// ========== Register definition for HDMA_CH_1 peripheral ========== +#define AT91C_HDMA_CH_1_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC88) // (HDMA_CH_1) HDMA Reserved +#define AT91C_HDMA_CH_1_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC80) // (HDMA_CH_1) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_1_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFEC74) // (HDMA_CH_1) HDMA Channel Control B Register +#define AT91C_HDMA_CH_1_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC64) // (HDMA_CH_1) HDMA Channel Source Address Register +#define AT91C_HDMA_CH_1_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC84) // (HDMA_CH_1) HDMA Reserved +#define AT91C_HDMA_CH_1_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFEC78) // (HDMA_CH_1) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_1_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC6C) // (HDMA_CH_1) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_1_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC68) // (HDMA_CH_1) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_1_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFEC70) // (HDMA_CH_1) HDMA Channel Control A Register +#define AT91C_HDMA_CH_1_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC7C) // (HDMA_CH_1) HDMA Channel Source Picture in Picture Configuration Register +// ========== Register definition for HDMA_CH_2 peripheral ========== +#define AT91C_HDMA_CH_2_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC8C) // (HDMA_CH_2) HDMA Channel Source Address Register +#define AT91C_HDMA_CH_2_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECAC) // (HDMA_CH_2) HDMA Reserved +#define AT91C_HDMA_CH_2_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECA8) // (HDMA_CH_2) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_2_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECA4) // (HDMA_CH_2) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_2_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC90) // (HDMA_CH_2) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_2_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC94) // (HDMA_CH_2) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_2_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFEC98) // (HDMA_CH_2) HDMA Channel Control A Register +#define AT91C_HDMA_CH_2_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECB0) // (HDMA_CH_2) HDMA Reserved +#define AT91C_HDMA_CH_2_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFECA0) // (HDMA_CH_2) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_2_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFEC9C) // (HDMA_CH_2) HDMA Channel Control B Register +// ========== Register definition for HDMA_CH_3 peripheral ========== +#define AT91C_HDMA_CH_3_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECCC) // (HDMA_CH_3) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_3_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFECC0) // (HDMA_CH_3) HDMA Channel Control A Register +#define AT91C_HDMA_CH_3_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECD0) // (HDMA_CH_3) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_3_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFECC4) // (HDMA_CH_3) HDMA Channel Control B Register +#define AT91C_HDMA_CH_3_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECD4) // (HDMA_CH_3) HDMA Reserved +#define AT91C_HDMA_CH_3_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECBC) // (HDMA_CH_3) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_3_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECD8) // (HDMA_CH_3) HDMA Reserved +#define AT91C_HDMA_CH_3_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFECC8) // (HDMA_CH_3) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_3_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECB8) // (HDMA_CH_3) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_3_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECB4) // (HDMA_CH_3) HDMA Channel Source Address Register +// ========== Register definition for HDMA_CH_4 peripheral ========== +#define AT91C_HDMA_CH_4_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFECF0) // (HDMA_CH_4) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_4_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECFC) // (HDMA_CH_4) HDMA Reserved +#define AT91C_HDMA_CH_4_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED00) // (HDMA_CH_4) HDMA Reserved +#define AT91C_HDMA_CH_4_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECE0) // (HDMA_CH_4) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_4_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFECE8) // (HDMA_CH_4) HDMA Channel Control A Register +#define AT91C_HDMA_CH_4_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECDC) // (HDMA_CH_4) HDMA Channel Source Address Register +#define AT91C_HDMA_CH_4_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFECEC) // (HDMA_CH_4) HDMA Channel Control B Register +#define AT91C_HDMA_CH_4_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECE4) // (HDMA_CH_4) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_4_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECF4) // (HDMA_CH_4) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_4_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECF8) // (HDMA_CH_4) HDMA Channel Destination Picture in Picture Configuration Register +// ========== Register definition for HDMA_CH_5 peripheral ========== +#define AT91C_HDMA_CH_5_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFED14) // (HDMA_CH_5) HDMA Channel Control B Register +#define AT91C_HDMA_CH_5_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED08) // (HDMA_CH_5) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_5_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED1C) // (HDMA_CH_5) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_5_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED0C) // (HDMA_CH_5) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_5_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED20) // (HDMA_CH_5) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_5_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFED18) // (HDMA_CH_5) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_5_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED28) // (HDMA_CH_5) HDMA Reserved +#define AT91C_HDMA_CH_5_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED04) // (HDMA_CH_5) HDMA Channel Source Address Register +#define AT91C_HDMA_CH_5_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED24) // (HDMA_CH_5) HDMA Reserved +#define AT91C_HDMA_CH_5_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFED10) // (HDMA_CH_5) HDMA Channel Control A Register +// ========== Register definition for HDMA_CH_6 peripheral ========== +#define AT91C_HDMA_CH_6_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED2C) // (HDMA_CH_6) HDMA Channel Source Address Register +#define AT91C_HDMA_CH_6_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED4C) // (HDMA_CH_6) HDMA Reserved +#define AT91C_HDMA_CH_6_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED50) // (HDMA_CH_6) HDMA Reserved +#define AT91C_HDMA_CH_6_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED44) // (HDMA_CH_6) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_6_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFED3C) // (HDMA_CH_6) HDMA Channel Control B Register +#define AT91C_HDMA_CH_6_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED34) // (HDMA_CH_6) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_6_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFED40) // (HDMA_CH_6) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_6_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED48) // (HDMA_CH_6) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_6_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED30) // (HDMA_CH_6) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_6_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFED38) // (HDMA_CH_6) HDMA Channel Control A Register +// ========== Register definition for HDMA_CH_7 peripheral ========== +#define AT91C_HDMA_CH_7_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED78) // (HDMA_CH_7) HDMA Reserved +#define AT91C_HDMA_CH_7_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFED68) // (HDMA_CH_7) HDMA Channel Configuration Register +#define AT91C_HDMA_CH_7_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED58) // (HDMA_CH_7) HDMA Channel Destination Address Register +#define AT91C_HDMA_CH_7_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFED64) // (HDMA_CH_7) HDMA Channel Control B Register +#define AT91C_HDMA_CH_7_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED5C) // (HDMA_CH_7) HDMA Channel Descriptor Address Register +#define AT91C_HDMA_CH_7_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED70) // (HDMA_CH_7) HDMA Channel Destination Picture in Picture Configuration Register +#define AT91C_HDMA_CH_7_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFED60) // (HDMA_CH_7) HDMA Channel Control A Register +#define AT91C_HDMA_CH_7_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED74) // (HDMA_CH_7) HDMA Reserved +#define AT91C_HDMA_CH_7_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED6C) // (HDMA_CH_7) HDMA Channel Source Picture in Picture Configuration Register +#define AT91C_HDMA_CH_7_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED54) // (HDMA_CH_7) HDMA Channel Source Address Register +// ========== Register definition for HDMA peripheral ========== +#define AT91C_HDMA_EBCIDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC1C) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Interrupt Disable register +#define AT91C_HDMA_LAST (AT91C_CAST(AT91C_REG *) 0xFFFFEC10) // (HDMA) HDMA Software Last Transfer Flag Register +#define AT91C_HDMA_SREQ (AT91C_CAST(AT91C_REG *) 0xFFFFEC08) // (HDMA) HDMA Software Single Request Register +#define AT91C_HDMA_RSVD0 (AT91C_CAST(AT91C_REG *) 0xFFFFEC34) // (HDMA) HDMA Reserved +#define AT91C_HDMA_EBCIER (AT91C_CAST(AT91C_REG *) 0xFFFFEC18) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Interrupt Enable register +#define AT91C_HDMA_GCFG (AT91C_CAST(AT91C_REG *) 0xFFFFEC00) // (HDMA) HDMA Global Configuration Register +#define AT91C_HDMA_CHER (AT91C_CAST(AT91C_REG *) 0xFFFFEC28) // (HDMA) HDMA Channel Handler Enable Register +#define AT91C_HDMA_RSVD1 (AT91C_CAST(AT91C_REG *) 0xFFFFEC38) // (HDMA) HDMA Reserved +#define AT91C_HDMA_CHDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC2C) // (HDMA) HDMA Channel Handler Disable Register +#define AT91C_HDMA_EBCIMR (AT91C_CAST(AT91C_REG *) 0xFFFFEC20) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Mask Register +#define AT91C_HDMA_CREQ (AT91C_CAST(AT91C_REG *) 0xFFFFEC0C) // (HDMA) HDMA Software Chunk Transfer Request Register +#define AT91C_HDMA_SYNC (AT91C_CAST(AT91C_REG *) 0xFFFFEC14) // (HDMA) HDMA Request Synchronization Register +#define AT91C_HDMA_EN (AT91C_CAST(AT91C_REG *) 0xFFFFEC04) // (HDMA) HDMA Controller Enable Register +#define AT91C_HDMA_EBCISR (AT91C_CAST(AT91C_REG *) 0xFFFFEC24) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Status Register +#define AT91C_HDMA_CHSR (AT91C_CAST(AT91C_REG *) 0xFFFFEC30) // (HDMA) HDMA Channel Handler Status Register +// ========== Register definition for HECC peripheral ========== +#define AT91C_HECC_VR (AT91C_CAST(AT91C_REG *) 0xFFFFE2FC) // (HECC) ECC Version register +#define AT91C_HECC_SR (AT91C_CAST(AT91C_REG *) 0xFFFFE208) // (HECC) ECC Status register +#define AT91C_HECC_CR (AT91C_CAST(AT91C_REG *) 0xFFFFE200) // (HECC) ECC reset register +#define AT91C_HECC_NPR (AT91C_CAST(AT91C_REG *) 0xFFFFE210) // (HECC) ECC Parity N register +#define AT91C_HECC_PR (AT91C_CAST(AT91C_REG *) 0xFFFFE20C) // (HECC) ECC Parity register +#define AT91C_HECC_MR (AT91C_CAST(AT91C_REG *) 0xFFFFE204) // (HECC) ECC Page size register +// ========== Register definition for EMACB peripheral ========== +#define AT91C_EMACB_ALE (AT91C_CAST(AT91C_REG *) 0xFFFBC054) // (EMACB) Alignment Error Register +#define AT91C_EMACB_RRE (AT91C_CAST(AT91C_REG *) 0xFFFBC06C) // (EMACB) Receive Ressource Error Register +#define AT91C_EMACB_SA4H (AT91C_CAST(AT91C_REG *) 0xFFFBC0B4) // (EMACB) Specific Address 4 Top, Last 2 bytes +#define AT91C_EMACB_TPQ (AT91C_CAST(AT91C_REG *) 0xFFFBC0BC) // (EMACB) Transmit Pause Quantum Register +#define AT91C_EMACB_RJA (AT91C_CAST(AT91C_REG *) 0xFFFBC07C) // (EMACB) Receive Jabbers Register +#define AT91C_EMACB_SA2H (AT91C_CAST(AT91C_REG *) 0xFFFBC0A4) // (EMACB) Specific Address 2 Top, Last 2 bytes +#define AT91C_EMACB_TPF (AT91C_CAST(AT91C_REG *) 0xFFFBC08C) // (EMACB) Transmitted Pause Frames Register +#define AT91C_EMACB_ROV (AT91C_CAST(AT91C_REG *) 0xFFFBC070) // (EMACB) Receive Overrun Errors Register +#define AT91C_EMACB_SA4L (AT91C_CAST(AT91C_REG *) 0xFFFBC0B0) // (EMACB) Specific Address 4 Bottom, First 4 bytes +#define AT91C_EMACB_MAN (AT91C_CAST(AT91C_REG *) 0xFFFBC034) // (EMACB) PHY Maintenance Register +#define AT91C_EMACB_TID (AT91C_CAST(AT91C_REG *) 0xFFFBC0B8) // (EMACB) Type ID Checking Register +#define AT91C_EMACB_TBQP (AT91C_CAST(AT91C_REG *) 0xFFFBC01C) // (EMACB) Transmit Buffer Queue Pointer +#define AT91C_EMACB_SA3L (AT91C_CAST(AT91C_REG *) 0xFFFBC0A8) // (EMACB) Specific Address 3 Bottom, First 4 bytes +#define AT91C_EMACB_DTF (AT91C_CAST(AT91C_REG *) 0xFFFBC058) // (EMACB) Deferred Transmission Frame Register +#define AT91C_EMACB_PTR (AT91C_CAST(AT91C_REG *) 0xFFFBC038) // (EMACB) Pause Time Register +#define AT91C_EMACB_CSE (AT91C_CAST(AT91C_REG *) 0xFFFBC068) // (EMACB) Carrier Sense Error Register +#define AT91C_EMACB_ECOL (AT91C_CAST(AT91C_REG *) 0xFFFBC060) // (EMACB) Excessive Collision Register +#define AT91C_EMACB_STE (AT91C_CAST(AT91C_REG *) 0xFFFBC084) // (EMACB) SQE Test Error Register +#define AT91C_EMACB_MCF (AT91C_CAST(AT91C_REG *) 0xFFFBC048) // (EMACB) Multiple Collision Frame Register +#define AT91C_EMACB_IER (AT91C_CAST(AT91C_REG *) 0xFFFBC028) // (EMACB) Interrupt Enable Register +#define AT91C_EMACB_ELE (AT91C_CAST(AT91C_REG *) 0xFFFBC078) // (EMACB) Excessive Length Errors Register +#define AT91C_EMACB_USRIO (AT91C_CAST(AT91C_REG *) 0xFFFBC0C0) // (EMACB) USER Input/Output Register +#define AT91C_EMACB_PFR (AT91C_CAST(AT91C_REG *) 0xFFFBC03C) // (EMACB) Pause Frames received Register +#define AT91C_EMACB_FCSE (AT91C_CAST(AT91C_REG *) 0xFFFBC050) // (EMACB) Frame Check Sequence Error Register +#define AT91C_EMACB_SA1L (AT91C_CAST(AT91C_REG *) 0xFFFBC098) // (EMACB) Specific Address 1 Bottom, First 4 bytes +#define AT91C_EMACB_NCR (AT91C_CAST(AT91C_REG *) 0xFFFBC000) // (EMACB) Network Control Register +#define AT91C_EMACB_HRT (AT91C_CAST(AT91C_REG *) 0xFFFBC094) // (EMACB) Hash Address Top[63:32] +#define AT91C_EMACB_NCFGR (AT91C_CAST(AT91C_REG *) 0xFFFBC004) // (EMACB) Network Configuration Register +#define AT91C_EMACB_SCF (AT91C_CAST(AT91C_REG *) 0xFFFBC044) // (EMACB) Single Collision Frame Register +#define AT91C_EMACB_LCOL (AT91C_CAST(AT91C_REG *) 0xFFFBC05C) // (EMACB) Late Collision Register +#define AT91C_EMACB_SA3H (AT91C_CAST(AT91C_REG *) 0xFFFBC0AC) // (EMACB) Specific Address 3 Top, Last 2 bytes +#define AT91C_EMACB_HRB (AT91C_CAST(AT91C_REG *) 0xFFFBC090) // (EMACB) Hash Address Bottom[31:0] +#define AT91C_EMACB_ISR (AT91C_CAST(AT91C_REG *) 0xFFFBC024) // (EMACB) Interrupt Status Register +#define AT91C_EMACB_IMR (AT91C_CAST(AT91C_REG *) 0xFFFBC030) // (EMACB) Interrupt Mask Register +#define AT91C_EMACB_WOL (AT91C_CAST(AT91C_REG *) 0xFFFBC0C4) // (EMACB) Wake On LAN Register +#define AT91C_EMACB_USF (AT91C_CAST(AT91C_REG *) 0xFFFBC080) // (EMACB) Undersize Frames Register +#define AT91C_EMACB_TSR (AT91C_CAST(AT91C_REG *) 0xFFFBC014) // (EMACB) Transmit Status Register +#define AT91C_EMACB_FRO (AT91C_CAST(AT91C_REG *) 0xFFFBC04C) // (EMACB) Frames Received OK Register +#define AT91C_EMACB_IDR (AT91C_CAST(AT91C_REG *) 0xFFFBC02C) // (EMACB) Interrupt Disable Register +#define AT91C_EMACB_SA1H (AT91C_CAST(AT91C_REG *) 0xFFFBC09C) // (EMACB) Specific Address 1 Top, Last 2 bytes +#define AT91C_EMACB_RLE (AT91C_CAST(AT91C_REG *) 0xFFFBC088) // (EMACB) Receive Length Field Mismatch Register +#define AT91C_EMACB_TUND (AT91C_CAST(AT91C_REG *) 0xFFFBC064) // (EMACB) Transmit Underrun Error Register +#define AT91C_EMACB_RSR (AT91C_CAST(AT91C_REG *) 0xFFFBC020) // (EMACB) Receive Status Register +#define AT91C_EMACB_SA2L (AT91C_CAST(AT91C_REG *) 0xFFFBC0A0) // (EMACB) Specific Address 2 Bottom, First 4 bytes +#define AT91C_EMACB_FTO (AT91C_CAST(AT91C_REG *) 0xFFFBC040) // (EMACB) Frames Transmitted OK Register +#define AT91C_EMACB_RSE (AT91C_CAST(AT91C_REG *) 0xFFFBC074) // (EMACB) Receive Symbol Errors Register +#define AT91C_EMACB_NSR (AT91C_CAST(AT91C_REG *) 0xFFFBC008) // (EMACB) Network Status Register +#define AT91C_EMACB_RBQP (AT91C_CAST(AT91C_REG *) 0xFFFBC018) // (EMACB) Receive Buffer Queue Pointer +#define AT91C_EMACB_REV (AT91C_CAST(AT91C_REG *) 0xFFFBC0FC) // (EMACB) Revision Register +// ========== Register definition for ISI peripheral ========== +#define AT91C_ISI_DMACHDR (AT91C_CAST(AT91C_REG *) 0xFFFB403C) // (ISI) DMA Channel Disable Register +#define AT91C_ISI_IMR (AT91C_CAST(AT91C_REG *) 0xFFFB4034) // (ISI) Interrupt Mask Register +#define AT91C_ISI_R2YSET1 (AT91C_CAST(AT91C_REG *) 0xFFFB401C) // (ISI) Color Space Conversion RGB to YCrCb Register +#define AT91C_ISI_PDECF (AT91C_CAST(AT91C_REG *) 0xFFFB400C) // (ISI) Preview Decimation Factor Register +#define AT91C_ISI_CFG2 (AT91C_CAST(AT91C_REG *) 0xFFFB4004) // (ISI) Configuration Register 2 +#define AT91C_ISI_DMACCTRL (AT91C_CAST(AT91C_REG *) 0xFFFB4054) // (ISI) DMA Codec Control Register +#define AT91C_ISI_CTRL (AT91C_CAST(AT91C_REG *) 0xFFFB4024) // (ISI) Control Register +#define AT91C_ISI_Y2RSET0 (AT91C_CAST(AT91C_REG *) 0xFFFB4010) // (ISI) Color Space Conversion YCrCb to RGB Register +#define AT91C_ISI_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFB40E8) // (ISI) Write Protection Status Register +#define AT91C_ISI_DMACHER (AT91C_CAST(AT91C_REG *) 0xFFFB4038) // (ISI) DMA Channel Enable Register +#define AT91C_ISI_DMACHSR (AT91C_CAST(AT91C_REG *) 0xFFFB4040) // (ISI) DMA Channel Status Register +#define AT91C_ISI_IDR (AT91C_CAST(AT91C_REG *) 0xFFFB4030) // (ISI) Interrupt Disable Register +#define AT91C_ISI_VER (AT91C_CAST(AT91C_REG *) 0xFFFB40FC) // (ISI) Version Register +#define AT91C_ISI_Y2RSET1 (AT91C_CAST(AT91C_REG *) 0xFFFB4014) // (ISI) Color Space Conversion YCrCb to RGB Register +#define AT91C_ISI_R2YSET2 (AT91C_CAST(AT91C_REG *) 0xFFFB4020) // (ISI) Color Space Conversion RGB to YCrCb Register +#define AT91C_ISI_SR (AT91C_CAST(AT91C_REG *) 0xFFFB4028) // (ISI) Status Register +#define AT91C_ISI_DMACDSCR (AT91C_CAST(AT91C_REG *) 0xFFFB4058) // (ISI) DMA Codec Descriptor Address Register +#define AT91C_ISI_IER (AT91C_CAST(AT91C_REG *) 0xFFFB402C) // (ISI) Interrupt Enable Register +#define AT91C_ISI_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFB40E4) // (ISI) Write Protection Control Register +#define AT91C_ISI_DMACADDR (AT91C_CAST(AT91C_REG *) 0xFFFB4050) // (ISI) DMA Codec Base Address Register +#define AT91C_ISI_CFG1 (AT91C_CAST(AT91C_REG *) 0xFFFB4000) // (ISI) Configuration Register 1 +#define AT91C_ISI_R2YSET0 (AT91C_CAST(AT91C_REG *) 0xFFFB4018) // (ISI) Color Space Conversion RGB to YCrCb Register +#define AT91C_ISI_PSIZE (AT91C_CAST(AT91C_REG *) 0xFFFB4008) // (ISI) Preview Size Register +#define AT91C_ISI_DMAPDSCR (AT91C_CAST(AT91C_REG *) 0xFFFB404C) // (ISI) DMA Preview Descriptor Address Register +#define AT91C_ISI_DMAPADDR (AT91C_CAST(AT91C_REG *) 0xFFFB4044) // (ISI) DMA Preview Base Address Register +#define AT91C_ISI_DMAPCTRL (AT91C_CAST(AT91C_REG *) 0xFFFB4048) // (ISI) DMA Preview Control Register +// ========== Register definition for UHPHS_OHCI peripheral ========== +#define AT91C_OHCI_HcRhPortStatus (AT91C_CAST(AT91C_REG *) 0x00700054) // (UHPHS_OHCI) Root Hub Port Status Register +#define AT91C_OHCI_HcFmRemaining (AT91C_CAST(AT91C_REG *) 0x00700038) // (UHPHS_OHCI) Bit time remaining in the current Frame +#define AT91C_OHCI_HcInterruptEnable (AT91C_CAST(AT91C_REG *) 0x00700010) // (UHPHS_OHCI) Interrupt Enable Register +#define AT91C_OHCI_HcControl (AT91C_CAST(AT91C_REG *) 0x00700004) // (UHPHS_OHCI) Operating modes for the Host Controller +#define AT91C_OHCI_HcPeriodicStart (AT91C_CAST(AT91C_REG *) 0x00700040) // (UHPHS_OHCI) Periodic Start +#define AT91C_OHCI_HcInterruptStatus (AT91C_CAST(AT91C_REG *) 0x0070000C) // (UHPHS_OHCI) Interrupt Status Register +#define AT91C_OHCI_HcRhDescriptorB (AT91C_CAST(AT91C_REG *) 0x0070004C) // (UHPHS_OHCI) Root Hub characteristics B +#define AT91C_OHCI_HcInterruptDisable (AT91C_CAST(AT91C_REG *) 0x00700014) // (UHPHS_OHCI) Interrupt Disable Register +#define AT91C_OHCI_HcPeriodCurrentED (AT91C_CAST(AT91C_REG *) 0x0070001C) // (UHPHS_OHCI) Current Isochronous or Interrupt Endpoint Descriptor +#define AT91C_OHCI_HcRhDescriptorA (AT91C_CAST(AT91C_REG *) 0x00700048) // (UHPHS_OHCI) Root Hub characteristics A +#define AT91C_OHCI_HcRhStatus (AT91C_CAST(AT91C_REG *) 0x00700050) // (UHPHS_OHCI) Root Hub Status register +#define AT91C_OHCI_HcBulkCurrentED (AT91C_CAST(AT91C_REG *) 0x0070002C) // (UHPHS_OHCI) Current endpoint of the Bulk list +#define AT91C_OHCI_HcControlHeadED (AT91C_CAST(AT91C_REG *) 0x00700020) // (UHPHS_OHCI) First Endpoint Descriptor of the Control list +#define AT91C_OHCI_HcLSThreshold (AT91C_CAST(AT91C_REG *) 0x00700044) // (UHPHS_OHCI) LS Threshold +#define AT91C_OHCI_HcRevision (AT91C_CAST(AT91C_REG *) 0x00700000) // (UHPHS_OHCI) Revision +#define AT91C_OHCI_HcBulkDoneHead (AT91C_CAST(AT91C_REG *) 0x00700030) // (UHPHS_OHCI) Last completed transfer descriptor +#define AT91C_OHCI_HcFmNumber (AT91C_CAST(AT91C_REG *) 0x0070003C) // (UHPHS_OHCI) Frame number +#define AT91C_OHCI_HcFmInterval (AT91C_CAST(AT91C_REG *) 0x00700034) // (UHPHS_OHCI) Bit time between 2 consecutive SOFs +#define AT91C_OHCI_HcBulkHeadED (AT91C_CAST(AT91C_REG *) 0x00700028) // (UHPHS_OHCI) First endpoint register of the Bulk list +#define AT91C_OHCI_HcHCCA (AT91C_CAST(AT91C_REG *) 0x00700018) // (UHPHS_OHCI) Pointer to the Host Controller Communication Area +#define AT91C_OHCI_HcCommandStatus (AT91C_CAST(AT91C_REG *) 0x00700008) // (UHPHS_OHCI) Command & status Register +#define AT91C_OHCI_HcControlCurrentED (AT91C_CAST(AT91C_REG *) 0x00700024) // (UHPHS_OHCI) Endpoint Control and Status Register +// ========== Register definition for UHPHS_EHCI peripheral ========== +#define AT91C_EHCI_USBSTS (AT91C_CAST(AT91C_REG *) 0x00800014) // (UHPHS_EHCI) +#define AT91C_EHCI_INSNREG03 (AT91C_CAST(AT91C_REG *) 0x0080009C) // (UHPHS_EHCI) +#define AT91C_EHCI_INSNREG00 (AT91C_CAST(AT91C_REG *) 0x00800090) // (UHPHS_EHCI) +#define AT91C_EHCI_HCSPPORTROUTE (AT91C_CAST(AT91C_REG *) 0x0080000C) // (UHPHS_EHCI) +#define AT91C_EHCI_FRINDEX (AT91C_CAST(AT91C_REG *) 0x0080001C) // (UHPHS_EHCI) +#define AT91C_EHCI_CONFIGFLAG (AT91C_CAST(AT91C_REG *) 0x00800050) // (UHPHS_EHCI) +#define AT91C_EHCI_HCCPARAMS (AT91C_CAST(AT91C_REG *) 0x00800008) // (UHPHS_EHCI) +#define AT91C_EHCI_USBINTR (AT91C_CAST(AT91C_REG *) 0x00800018) // (UHPHS_EHCI) +#define AT91C_EHCI_PORTSC (AT91C_CAST(AT91C_REG *) 0x00800054) // (UHPHS_EHCI) +#define AT91C_EHCI_CTRLDSSEGMENT (AT91C_CAST(AT91C_REG *) 0x00800020) // (UHPHS_EHCI) +#define AT91C_EHCI_VERSION (AT91C_CAST(AT91C_REG *) 0x00800000) // (UHPHS_EHCI) +#define AT91C_EHCI_USBCMD (AT91C_CAST(AT91C_REG *) 0x00800010) // (UHPHS_EHCI) +#define AT91C_EHCI_INSNREG04 (AT91C_CAST(AT91C_REG *) 0x008000A0) // (UHPHS_EHCI) +#define AT91C_EHCI_PERIODICLISTBASE (AT91C_CAST(AT91C_REG *) 0x00800024) // (UHPHS_EHCI) +#define AT91C_EHCI_INSNREG01 (AT91C_CAST(AT91C_REG *) 0x00800094) // (UHPHS_EHCI) +#define AT91C_EHCI_HCSPARAMS (AT91C_CAST(AT91C_REG *) 0x00800004) // (UHPHS_EHCI) +#define AT91C_EHCI_INSNREG05 (AT91C_CAST(AT91C_REG *) 0x008000A4) // (UHPHS_EHCI) +#define AT91C_EHCI_ASYNCLISTADDR (AT91C_CAST(AT91C_REG *) 0x00800028) // (UHPHS_EHCI) +#define AT91C_EHCI_INSNREG02 (AT91C_CAST(AT91C_REG *) 0x00800098) // (UHPHS_EHCI) +// ========== Register definition for TRNG peripheral ========== +#define AT91C_TRNG_IDR (AT91C_CAST(AT91C_REG *) 0xFFFCC014) // (TRNG) Interrupt Disable Register +#define AT91C_TRNG_IER (AT91C_CAST(AT91C_REG *) 0xFFFCC010) // (TRNG) Interrupt Enable Register +#define AT91C_TRNG_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFCC0FC) // (TRNG) TRNG Version Register +#define AT91C_TRNG_ISR (AT91C_CAST(AT91C_REG *) 0xFFFCC01C) // (TRNG) Interrupt Status Register +#define AT91C_TRNG_CR (AT91C_CAST(AT91C_REG *) 0xFFFCC000) // (TRNG) Control Register +#define AT91C_TRNG_ODATA (AT91C_CAST(AT91C_REG *) 0xFFFCC050) // (TRNG) Output Data Register +#define AT91C_TRNG_IMR (AT91C_CAST(AT91C_REG *) 0xFFFCC018) // (TRNG) Interrupt Mask Register + +// ***************************************************************************** +// PIO DEFINITIONS FOR AT91SAM9G45 +// ***************************************************************************** +#define AT91C_PIO_PA0 (1 << 0) // Pin Controlled by PA0 +#define AT91C_PA0_MCI0_CK (AT91C_PIO_PA0) // +#define AT91C_PA0_TCLK3 (AT91C_PIO_PA0) // +#define AT91C_PIO_PA1 (1 << 1) // Pin Controlled by PA1 +#define AT91C_PA1_MCI0_CDA (AT91C_PIO_PA1) // +#define AT91C_PA1_TIOA3 (AT91C_PIO_PA1) // +#define AT91C_PIO_PA10 (1 << 10) // Pin Controlled by PA10 +#define AT91C_PA10_ETX0 (AT91C_PIO_PA10) // Ethernet MAC Transmit Data 0 +#define AT91C_PIO_PA11 (1 << 11) // Pin Controlled by PA11 +#define AT91C_PA11_ETX1 (AT91C_PIO_PA11) // Ethernet MAC Transmit Data 1 +#define AT91C_PIO_PA12 (1 << 12) // Pin Controlled by PA12 +#define AT91C_PA12_ERX0 (AT91C_PIO_PA12) // Ethernet MAC Receive Data 0 +#define AT91C_PIO_PA13 (1 << 13) // Pin Controlled by PA13 +#define AT91C_PA13_ERX1 (AT91C_PIO_PA13) // Ethernet MAC Receive Data 1 +#define AT91C_PIO_PA14 (1 << 14) // Pin Controlled by PA14 +#define AT91C_PA14_ETXEN (AT91C_PIO_PA14) // Ethernet MAC Transmit Enable +#define AT91C_PIO_PA15 (1 << 15) // Pin Controlled by PA15 +#define AT91C_PA15_ERXDV (AT91C_PIO_PA15) // Ethernet MAC Receive Data Valid +#define AT91C_PIO_PA16 (1 << 16) // Pin Controlled by PA16 +#define AT91C_PA16_ERXER (AT91C_PIO_PA16) // Ethernet MAC Receive Error +#define AT91C_PIO_PA17 (1 << 17) // Pin Controlled by PA17 +#define AT91C_PA17_ETXCK_EREFCK (AT91C_PIO_PA17) // Ethernet MAC Transmit Clock/Reference Clock +#define AT91C_PIO_PA18 (1 << 18) // Pin Controlled by PA18 +#define AT91C_PA18_EMDC (AT91C_PIO_PA18) // Ethernet MAC Management Data Clock +#define AT91C_PIO_PA19 (1 << 19) // Pin Controlled by PA19 +#define AT91C_PA19_EMDIO (AT91C_PIO_PA19) // Ethernet MAC Management Data Input/Output +#define AT91C_PIO_PA2 (1 << 2) // Pin Controlled by PA2 +#define AT91C_PA2_MCI0_DA0 (AT91C_PIO_PA2) // +#define AT91C_PA2_TIOB3 (AT91C_PIO_PA2) // +#define AT91C_PIO_PA20 (1 << 20) // Pin Controlled by PA20 +#define AT91C_PA20_TWD0 (AT91C_PIO_PA20) // TWI Two-wire Serial Data +#define AT91C_PIO_PA21 (1 << 21) // Pin Controlled by PA21 +#define AT91C_PA21_TWCK0 (AT91C_PIO_PA21) // TWI Two-wire Serial Clock +#define AT91C_PIO_PA22 (1 << 22) // Pin Controlled by PA22 +#define AT91C_PA22_MCI1_CDA (AT91C_PIO_PA22) // +#define AT91C_PA22_SCK3 (AT91C_PIO_PA22) // +#define AT91C_PIO_PA23 (1 << 23) // Pin Controlled by PA23 +#define AT91C_PA23_MCI1_DA0 (AT91C_PIO_PA23) // +#define AT91C_PA23_RTS3 (AT91C_PIO_PA23) // +#define AT91C_PIO_PA24 (1 << 24) // Pin Controlled by PA24 +#define AT91C_PA24_MCI1_DA1 (AT91C_PIO_PA24) // +#define AT91C_PA24_CTS3 (AT91C_PIO_PA24) // +#define AT91C_PIO_PA25 (1 << 25) // Pin Controlled by PA25 +#define AT91C_PA25_MCI1_DA2 (AT91C_PIO_PA25) // +#define AT91C_PA25_PWM3 (AT91C_PIO_PA25) // +#define AT91C_PIO_PA26 (1 << 26) // Pin Controlled by PA26 +#define AT91C_PA26_MCI1_DA3 (AT91C_PIO_PA26) // +#define AT91C_PA26_TIOB2 (AT91C_PIO_PA26) // +#define AT91C_PIO_PA27 (1 << 27) // Pin Controlled by PA27 +#define AT91C_PA27_MCI1_DA4 (AT91C_PIO_PA27) // +#define AT91C_PA27_ETXER (AT91C_PIO_PA27) // Ethernet MAC Transmikt Coding Error +#define AT91C_PIO_PA28 (1 << 28) // Pin Controlled by PA28 +#define AT91C_PA28_MCI1_DA5 (AT91C_PIO_PA28) // +#define AT91C_PA28_ERXCK (AT91C_PIO_PA28) // Ethernet MAC Receive Clock +#define AT91C_PIO_PA29 (1 << 29) // Pin Controlled by PA29 +#define AT91C_PA29_MCI1_DA6 (AT91C_PIO_PA29) // +#define AT91C_PA29_ECRS (AT91C_PIO_PA29) // Ethernet MAC Carrier Sense/Carrier Sense and Data Valid +#define AT91C_PIO_PA3 (1 << 3) // Pin Controlled by PA3 +#define AT91C_PA3_MCI0_DA1 (AT91C_PIO_PA3) // +#define AT91C_PA3_TCLK4 (AT91C_PIO_PA3) // +#define AT91C_PIO_PA30 (1 << 30) // Pin Controlled by PA30 +#define AT91C_PA30_MCI1_DA7 (AT91C_PIO_PA30) // +#define AT91C_PA30_ECOL (AT91C_PIO_PA30) // Ethernet MAC Collision Detected +#define AT91C_PIO_PA31 (1 << 31) // Pin Controlled by PA31 +#define AT91C_PA31_MCI1_CK (AT91C_PIO_PA31) // +#define AT91C_PA31_PCK0 (AT91C_PIO_PA31) // +#define AT91C_PIO_PA4 (1 << 4) // Pin Controlled by PA4 +#define AT91C_PA4_MCI0_DA2 (AT91C_PIO_PA4) // +#define AT91C_PA4_TIOA4 (AT91C_PIO_PA4) // +#define AT91C_PIO_PA5 (1 << 5) // Pin Controlled by PA5 +#define AT91C_PA5_MCI0_DA3 (AT91C_PIO_PA5) // +#define AT91C_PA5_TIOB4 (AT91C_PIO_PA5) // +#define AT91C_PIO_PA6 (1 << 6) // Pin Controlled by PA6 +#define AT91C_PA6_MCI0_DA4 (AT91C_PIO_PA6) // +#define AT91C_PA6_ETX2 (AT91C_PIO_PA6) // Ethernet MAC Transmit Data 2 +#define AT91C_PIO_PA7 (1 << 7) // Pin Controlled by PA7 +#define AT91C_PA7_MCI0_DA5 (AT91C_PIO_PA7) // +#define AT91C_PA7_ETX3 (AT91C_PIO_PA7) // Ethernet MAC Transmit Data 3 +#define AT91C_PIO_PA8 (1 << 8) // Pin Controlled by PA8 +#define AT91C_PA8_MCI0_DA6 (AT91C_PIO_PA8) // +#define AT91C_PA8_ERX2 (AT91C_PIO_PA8) // Ethernet MAC Receive Data 2 +#define AT91C_PIO_PA9 (1 << 9) // Pin Controlled by PA9 +#define AT91C_PA9_MCI0_DA7 (AT91C_PIO_PA9) // +#define AT91C_PA9_ERX3 (AT91C_PIO_PA9) // Ethernet MAC Receive Data 3 +#define AT91C_PIO_PB0 (1 << 0) // Pin Controlled by PB0 +#define AT91C_PB0_SPI0_MISO (AT91C_PIO_PB0) // SPI 0 Master In Slave +#define AT91C_PIO_PB1 (1 << 1) // Pin Controlled by PB1 +#define AT91C_PB1_SPI0_MOSI (AT91C_PIO_PB1) // SPI 0 Master Out Slave +#define AT91C_PIO_PB10 (1 << 10) // Pin Controlled by PB10 +#define AT91C_PB10_TWD1 (AT91C_PIO_PB10) // +#define AT91C_PB10_ISI_D10 (AT91C_PIO_PB10) // +#define AT91C_PIO_PB11 (1 << 11) // Pin Controlled by PB11 +#define AT91C_PB11_TWCK1 (AT91C_PIO_PB11) // +#define AT91C_PB11_ISI_D11 (AT91C_PIO_PB11) // +#define AT91C_PIO_PB12 (1 << 12) // Pin Controlled by PB12 +#define AT91C_PB12_DRXD (AT91C_PIO_PB12) // +#define AT91C_PIO_PB13 (1 << 13) // Pin Controlled by PB13 +#define AT91C_PB13_DTXD (AT91C_PIO_PB13) // +#define AT91C_PIO_PB14 (1 << 14) // Pin Controlled by PB14 +#define AT91C_PB14_SPI1_MISO (AT91C_PIO_PB14) // +#define AT91C_PIO_PB15 (1 << 15) // Pin Controlled by PB15 +#define AT91C_PB15_SPI1_MOSI (AT91C_PIO_PB15) // +#define AT91C_PB15_CTS0 (AT91C_PIO_PB15) // +#define AT91C_PIO_PB16 (1 << 16) // Pin Controlled by PB16 +#define AT91C_PB16_SPI1_SPCK (AT91C_PIO_PB16) // +#define AT91C_PB16_SCK0 (AT91C_PIO_PB16) // +#define AT91C_PIO_PB17 (1 << 17) // Pin Controlled by PB17 +#define AT91C_PB17_SPI1_NPCS0 (AT91C_PIO_PB17) // +#define AT91C_PB17_RTS0 (AT91C_PIO_PB17) // +#define AT91C_PIO_PB18 (1 << 18) // Pin Controlled by PB18 +#define AT91C_PB18_RXD0 (AT91C_PIO_PB18) // +#define AT91C_PB18_SPI0_NPCS1 (AT91C_PIO_PB18) // +#define AT91C_PIO_PB19 (1 << 19) // Pin Controlled by PB19 +#define AT91C_PB19_TXD0 (AT91C_PIO_PB19) // +#define AT91C_PB19_SPI0_NPCS2 (AT91C_PIO_PB19) // +#define AT91C_PIO_PB2 (1 << 2) // Pin Controlled by PB2 +#define AT91C_PB2_SPI0_SPCK (AT91C_PIO_PB2) // SPI 0 Serial Clock +#define AT91C_PIO_PB20 (1 << 20) // Pin Controlled by PB20 +#define AT91C_PB20_ISI_D0 (AT91C_PIO_PB20) // +#define AT91C_PIO_PB21 (1 << 21) // Pin Controlled by PB21 +#define AT91C_PB21_ISI_D1 (AT91C_PIO_PB21) // +#define AT91C_PIO_PB22 (1 << 22) // Pin Controlled by PB22 +#define AT91C_PB22_ISI_D2 (AT91C_PIO_PB22) // +#define AT91C_PIO_PB23 (1 << 23) // Pin Controlled by PB23 +#define AT91C_PB23_ISI_D3 (AT91C_PIO_PB23) // +#define AT91C_PIO_PB24 (1 << 24) // Pin Controlled by PB24 +#define AT91C_PB24_ISI_D4 (AT91C_PIO_PB24) // +#define AT91C_PIO_PB25 (1 << 25) // Pin Controlled by PB25 +#define AT91C_PB25_ISI_D5 (AT91C_PIO_PB25) // +#define AT91C_PIO_PB26 (1 << 26) // Pin Controlled by PB26 +#define AT91C_PB26_ISI_D6 (AT91C_PIO_PB26) // +#define AT91C_PIO_PB27 (1 << 27) // Pin Controlled by PB27 +#define AT91C_PB27_ISI_D7 (AT91C_PIO_PB27) // +#define AT91C_PIO_PB28 (1 << 28) // Pin Controlled by PB28 +#define AT91C_PB28_ISI_PCK (AT91C_PIO_PB28) // +#define AT91C_PIO_PB29 (1 << 29) // Pin Controlled by PB29 +#define AT91C_PB29_ISI_VSYNC (AT91C_PIO_PB29) // +#define AT91C_PIO_PB3 (1 << 3) // Pin Controlled by PB3 +#define AT91C_PB3_SPI0_NPCS0 (AT91C_PIO_PB3) // SPI 0 Peripheral Chip Select 0 +#define AT91C_PIO_PB30 (1 << 30) // Pin Controlled by PB30 +#define AT91C_PB30_ISI_HSYNC (AT91C_PIO_PB30) // +#define AT91C_PIO_PB31 (1 << 31) // Pin Controlled by PB31 +#define AT91C_PB31_ (AT91C_PIO_PB31) // +#define AT91C_PB31_PCK1 (AT91C_PIO_PB31) // +#define AT91C_PIO_PB4 (1 << 4) // Pin Controlled by PB4 +#define AT91C_PB4_TXD1 (AT91C_PIO_PB4) // USART 1 Transmit Data +#define AT91C_PIO_PB5 (1 << 5) // Pin Controlled by PB5 +#define AT91C_PB5_RXD1 (AT91C_PIO_PB5) // USART 1 Receive Data +#define AT91C_PIO_PB6 (1 << 6) // Pin Controlled by PB6 +#define AT91C_PB6_TXD2 (AT91C_PIO_PB6) // USART 2 Transmit Data +#define AT91C_PIO_PB7 (1 << 7) // Pin Controlled by PB7 +#define AT91C_PB7_RXD2 (AT91C_PIO_PB7) // USART 2 Receive Data +#define AT91C_PIO_PB8 (1 << 8) // Pin Controlled by PB8 +#define AT91C_PB8_TXD3 (AT91C_PIO_PB8) // USART 3 Transmit Data +#define AT91C_PB8_ISI_D8 (AT91C_PIO_PB8) // +#define AT91C_PIO_PB9 (1 << 9) // Pin Controlled by PB9 +#define AT91C_PB9_RXD3 (AT91C_PIO_PB9) // USART 3 Receive Data +#define AT91C_PB9_ISI_D9 (AT91C_PIO_PB9) // +#define AT91C_PIO_PC0 (1 << 0) // Pin Controlled by PC0 +#define AT91C_PC0_DQM2 (AT91C_PIO_PC0) // DQM2 +#define AT91C_PIO_PC1 (1 << 1) // Pin Controlled by PC1 +#define AT91C_PC1_DQM3 (AT91C_PIO_PC1) // DQM3 +#define AT91C_PIO_PC10 (1 << 10) // Pin Controlled by PC10 +#define AT91C_PC10_NCS4_CFCS0 (AT91C_PIO_PC10) // +#define AT91C_PC10_TCLK2 (AT91C_PIO_PC10) // +#define AT91C_PIO_PC11 (1 << 11) // Pin Controlled by PC11 +#define AT91C_PC11_NCS5_CFCS1 (AT91C_PIO_PC11) // +#define AT91C_PC11_CTS2 (AT91C_PIO_PC11) // +#define AT91C_PIO_PC12 (1 << 12) // Pin Controlled by PC12 +#define AT91C_PC12_A25_CFRNW (AT91C_PIO_PC12) // +#define AT91C_PIO_PC13 (1 << 13) // Pin Controlled by PC13 +#define AT91C_PC13_NCS2 (AT91C_PIO_PC13) // +#define AT91C_PIO_PC14 (1 << 14) // Pin Controlled by PC14 +#define AT91C_PC14_NCS3_NANDCS (AT91C_PIO_PC14) // +#define AT91C_PIO_PC15 (1 << 15) // Pin Controlled by PC15 +#define AT91C_PC15_NWAIT (AT91C_PIO_PC15) // +#define AT91C_PIO_PC16 (1 << 16) // Pin Controlled by PC16 +#define AT91C_PC16_D16 (AT91C_PIO_PC16) // +#define AT91C_PIO_PC17 (1 << 17) // Pin Controlled by PC17 +#define AT91C_PC17_D17 (AT91C_PIO_PC17) // +#define AT91C_PIO_PC18 (1 << 18) // Pin Controlled by PC18 +#define AT91C_PC18_D18 (AT91C_PIO_PC18) // +#define AT91C_PIO_PC19 (1 << 19) // Pin Controlled by PC19 +#define AT91C_PC19_D19 (AT91C_PIO_PC19) // +#define AT91C_PIO_PC2 (1 << 2) // Pin Controlled by PC2 +#define AT91C_PC2_A19 (AT91C_PIO_PC2) // +#define AT91C_PIO_PC20 (1 << 20) // Pin Controlled by PC20 +#define AT91C_PC20_D20 (AT91C_PIO_PC20) // +#define AT91C_PIO_PC21 (1 << 21) // Pin Controlled by PC21 +#define AT91C_PC21_D21 (AT91C_PIO_PC21) // +#define AT91C_PIO_PC22 (1 << 22) // Pin Controlled by PC22 +#define AT91C_PC22_D22 (AT91C_PIO_PC22) // +#define AT91C_PIO_PC23 (1 << 23) // Pin Controlled by PC23 +#define AT91C_PC23_D23 (AT91C_PIO_PC23) // +#define AT91C_PIO_PC24 (1 << 24) // Pin Controlled by PC24 +#define AT91C_PC24_D24 (AT91C_PIO_PC24) // +#define AT91C_PIO_PC25 (1 << 25) // Pin Controlled by PC25 +#define AT91C_PC25_D25 (AT91C_PIO_PC25) // +#define AT91C_PIO_PC26 (1 << 26) // Pin Controlled by PC26 +#define AT91C_PC26_D26 (AT91C_PIO_PC26) // +#define AT91C_PIO_PC27 (1 << 27) // Pin Controlled by PC27 +#define AT91C_PC27_D27 (AT91C_PIO_PC27) // +#define AT91C_PIO_PC28 (1 << 28) // Pin Controlled by PC28 +#define AT91C_PC28_D28 (AT91C_PIO_PC28) // +#define AT91C_PIO_PC29 (1 << 29) // Pin Controlled by PC29 +#define AT91C_PC29_D29 (AT91C_PIO_PC29) // +#define AT91C_PIO_PC3 (1 << 3) // Pin Controlled by PC3 +#define AT91C_PC3_A20 (AT91C_PIO_PC3) // +#define AT91C_PIO_PC30 (1 << 30) // Pin Controlled by PC30 +#define AT91C_PC30_D30 (AT91C_PIO_PC30) // +#define AT91C_PIO_PC31 (1 << 31) // Pin Controlled by PC31 +#define AT91C_PC31_D31 (AT91C_PIO_PC31) // +#define AT91C_PIO_PC4 (1 << 4) // Pin Controlled by PC4 +#define AT91C_PC4_A21_NANDALE (AT91C_PIO_PC4) // +#define AT91C_PIO_PC5 (1 << 5) // Pin Controlled by PC5 +#define AT91C_PC5_A22_NANDCLE (AT91C_PIO_PC5) // +#define AT91C_PIO_PC6 (1 << 6) // Pin Controlled by PC6 +#define AT91C_PC6_A23 (AT91C_PIO_PC6) // +#define AT91C_PIO_PC7 (1 << 7) // Pin Controlled by PC7 +#define AT91C_PC7_A24 (AT91C_PIO_PC7) // +#define AT91C_PIO_PC8 (1 << 8) // Pin Controlled by PC8 +#define AT91C_PC8_CFCE1 (AT91C_PIO_PC8) // +#define AT91C_PIO_PC9 (1 << 9) // Pin Controlled by PC9 +#define AT91C_PC9_CFCE2 (AT91C_PIO_PC9) // +#define AT91C_PC9_RTS2 (AT91C_PIO_PC9) // +#define AT91C_PIO_PD0 (1 << 0) // Pin Controlled by PD0 +#define AT91C_PD0_TK0 (AT91C_PIO_PD0) // +#define AT91C_PD0_PWM3 (AT91C_PIO_PD0) // +#define AT91C_PIO_PD1 (1 << 1) // Pin Controlled by PD1 +#define AT91C_PD1_TF0 (AT91C_PIO_PD1) // +#define AT91C_PIO_PD10 (1 << 10) // Pin Controlled by PD10 +#define AT91C_PD10_TD1 (AT91C_PIO_PD10) // +#define AT91C_PIO_PD11 (1 << 11) // Pin Controlled by PD11 +#define AT91C_PD11_RD1 (AT91C_PIO_PD11) // +#define AT91C_PIO_PD12 (1 << 12) // Pin Controlled by PD12 +#define AT91C_PD12_TK1 (AT91C_PIO_PD12) // +#define AT91C_PD12_PCK0 (AT91C_PIO_PD12) // +#define AT91C_PIO_PD13 (1 << 13) // Pin Controlled by PD13 +#define AT91C_PD13_RK1 (AT91C_PIO_PD13) // +#define AT91C_PIO_PD14 (1 << 14) // Pin Controlled by PD14 +#define AT91C_PD14_TF1 (AT91C_PIO_PD14) // +#define AT91C_PIO_PD15 (1 << 15) // Pin Controlled by PD15 +#define AT91C_PD15_RF1 (AT91C_PIO_PD15) // +#define AT91C_PIO_PD16 (1 << 16) // Pin Controlled by PD16 +#define AT91C_PD16_RTS1 (AT91C_PIO_PD16) // +#define AT91C_PIO_PD17 (1 << 17) // Pin Controlled by PD17 +#define AT91C_PD17_CTS1 (AT91C_PIO_PD17) // +#define AT91C_PIO_PD18 (1 << 18) // Pin Controlled by PD18 +#define AT91C_PD18_SPI1_NPCS2 (AT91C_PIO_PD18) // +#define AT91C_PD18_IRQ (AT91C_PIO_PD18) // +#define AT91C_PIO_PD19 (1 << 19) // Pin Controlled by PD19 +#define AT91C_PD19_SPI1_NPCS3 (AT91C_PIO_PD19) // +#define AT91C_PD19_FIQ (AT91C_PIO_PD19) // +#define AT91C_PIO_PD2 (1 << 2) // Pin Controlled by PD2 +#define AT91C_PD2_TD0 (AT91C_PIO_PD2) // +#define AT91C_PIO_PD20 (1 << 20) // Pin Controlled by PD20 +#define AT91C_PD20_TIOA0 (AT91C_PIO_PD20) // +#define AT91C_PIO_PD21 (1 << 21) // Pin Controlled by PD21 +#define AT91C_PD21_TIOA1 (AT91C_PIO_PD21) // +#define AT91C_PIO_PD22 (1 << 22) // Pin Controlled by PD22 +#define AT91C_PD22_TIOA2 (AT91C_PIO_PD22) // +#define AT91C_PIO_PD23 (1 << 23) // Pin Controlled by PD23 +#define AT91C_PD23_TCLK0 (AT91C_PIO_PD23) // +#define AT91C_PIO_PD24 (1 << 24) // Pin Controlled by PD24 +#define AT91C_PD24_SPI0_NPCS1 (AT91C_PIO_PD24) // +#define AT91C_PD24_PWM0 (AT91C_PIO_PD24) // +#define AT91C_PIO_PD25 (1 << 25) // Pin Controlled by PD25 +#define AT91C_PD25_SPI0_NPCS2 (AT91C_PIO_PD25) // +#define AT91C_PD25_PWM1 (AT91C_PIO_PD25) // +#define AT91C_PIO_PD26 (1 << 26) // Pin Controlled by PD26 +#define AT91C_PD26_PCK0 (AT91C_PIO_PD26) // +#define AT91C_PD26_PWM2 (AT91C_PIO_PD26) // +#define AT91C_PIO_PD27 (1 << 27) // Pin Controlled by PD27 +#define AT91C_PD27_PCK1 (AT91C_PIO_PD27) // +#define AT91C_PD27_SPI0_NPCS3 (AT91C_PIO_PD27) // +#define AT91C_PIO_PD28 (1 << 28) // Pin Controlled by PD28 +#define AT91C_PD28_TSADTRG (AT91C_PIO_PD28) // +#define AT91C_PD28_SPI1_NPCS1 (AT91C_PIO_PD28) // +#define AT91C_PIO_PD29 (1 << 29) // Pin Controlled by PD29 +#define AT91C_PD29_TCLK1 (AT91C_PIO_PD29) // +#define AT91C_PD29_SCK1 (AT91C_PIO_PD29) // +#define AT91C_PIO_PD3 (1 << 3) // Pin Controlled by PD3 +#define AT91C_PD3_RD0 (AT91C_PIO_PD3) // +#define AT91C_PIO_PD30 (1 << 30) // Pin Controlled by PD30 +#define AT91C_PD30_TIOB0 (AT91C_PIO_PD30) // +#define AT91C_PD30_SCK2 (AT91C_PIO_PD30) // +#define AT91C_PIO_PD31 (1 << 31) // Pin Controlled by PD31 +#define AT91C_PD31_TIOB1 (AT91C_PIO_PD31) // +#define AT91C_PD31_PWM1 (AT91C_PIO_PD31) // +#define AT91C_PIO_PD4 (1 << 4) // Pin Controlled by PD4 +#define AT91C_PD4_RK0 (AT91C_PIO_PD4) // +#define AT91C_PIO_PD5 (1 << 5) // Pin Controlled by PD5 +#define AT91C_PD5_RF0 (AT91C_PIO_PD5) // +#define AT91C_PIO_PD6 (1 << 6) // Pin Controlled by PD6 +#define AT91C_PD6_AC97RX (AT91C_PIO_PD6) // +#define AT91C_PIO_PD7 (1 << 7) // Pin Controlled by PD7 +#define AT91C_PD7_AC97TX (AT91C_PIO_PD7) // +#define AT91C_PD7_TIOA5 (AT91C_PIO_PD7) // +#define AT91C_PIO_PD8 (1 << 8) // Pin Controlled by PD8 +#define AT91C_PD8_AC97FS (AT91C_PIO_PD8) // +#define AT91C_PD8_TIOB5 (AT91C_PIO_PD8) // +#define AT91C_PIO_PD9 (1 << 9) // Pin Controlled by PD9 +#define AT91C_PD9_AC97CK (AT91C_PIO_PD9) // +#define AT91C_PD9_TCLK5 (AT91C_PIO_PD9) // +#define AT91C_PIO_PE0 (1 << 0) // Pin Controlled by PE0 +#define AT91C_PE0_LCDPWR (AT91C_PIO_PE0) // +#define AT91C_PE0_PCK0 (AT91C_PIO_PE0) // +#define AT91C_PIO_PE1 (1 << 1) // Pin Controlled by PE1 +#define AT91C_PE1_LCDMOD (AT91C_PIO_PE1) // +#define AT91C_PIO_PE10 (1 << 10) // Pin Controlled by PE10 +#define AT91C_PE10_LCDD3 (AT91C_PIO_PE10) // +#define AT91C_PE10_LCDD5 (AT91C_PIO_PE10) // +#define AT91C_PIO_PE11 (1 << 11) // Pin Controlled by PE11 +#define AT91C_PE11_LCDD4 (AT91C_PIO_PE11) // +#define AT91C_PE11_LCDD6 (AT91C_PIO_PE11) // +#define AT91C_PIO_PE12 (1 << 12) // Pin Controlled by PE12 +#define AT91C_PE12_LCDD5 (AT91C_PIO_PE12) // +#define AT91C_PE12_LCDD7 (AT91C_PIO_PE12) // +#define AT91C_PIO_PE13 (1 << 13) // Pin Controlled by PE13 +#define AT91C_PE13_LCDD6 (AT91C_PIO_PE13) // +#define AT91C_PE13_LCDD10 (AT91C_PIO_PE13) // +#define AT91C_PIO_PE14 (1 << 14) // Pin Controlled by PE14 +#define AT91C_PE14_LCDD7 (AT91C_PIO_PE14) // +#define AT91C_PE14_LCDD11 (AT91C_PIO_PE14) // +#define AT91C_PIO_PE15 (1 << 15) // Pin Controlled by PE15 +#define AT91C_PE15_LCDD8 (AT91C_PIO_PE15) // +#define AT91C_PE15_LCDD12 (AT91C_PIO_PE15) // +#define AT91C_PIO_PE16 (1 << 16) // Pin Controlled by PE16 +#define AT91C_PE16_LCDD9 (AT91C_PIO_PE16) // +#define AT91C_PE16_LCDD13 (AT91C_PIO_PE16) // +#define AT91C_PIO_PE17 (1 << 17) // Pin Controlled by PE17 +#define AT91C_PE17_LCDD10 (AT91C_PIO_PE17) // +#define AT91C_PE17_LCDD14 (AT91C_PIO_PE17) // +#define AT91C_PIO_PE18 (1 << 18) // Pin Controlled by PE18 +#define AT91C_PE18_LCDD11 (AT91C_PIO_PE18) // +#define AT91C_PE18_LCDD15 (AT91C_PIO_PE18) // +#define AT91C_PIO_PE19 (1 << 19) // Pin Controlled by PE19 +#define AT91C_PE19_LCDD12 (AT91C_PIO_PE19) // +#define AT91C_PE19_LCDD18 (AT91C_PIO_PE19) // +#define AT91C_PIO_PE2 (1 << 2) // Pin Controlled by PE2 +#define AT91C_PE2_LCDCC (AT91C_PIO_PE2) // +#define AT91C_PIO_PE20 (1 << 20) // Pin Controlled by PE20 +#define AT91C_PE20_LCDD13 (AT91C_PIO_PE20) // +#define AT91C_PE20_LCDD19 (AT91C_PIO_PE20) // +#define AT91C_PIO_PE21 (1 << 21) // Pin Controlled by PE21 +#define AT91C_PE21_LCDD14 (AT91C_PIO_PE21) // +#define AT91C_PE21_LCDD20 (AT91C_PIO_PE21) // +#define AT91C_PIO_PE22 (1 << 22) // Pin Controlled by PE22 +#define AT91C_PE22_LCDD15 (AT91C_PIO_PE22) // +#define AT91C_PE22_LCDD21 (AT91C_PIO_PE22) // +#define AT91C_PIO_PE23 (1 << 23) // Pin Controlled by PE23 +#define AT91C_PE23_LCDD16 (AT91C_PIO_PE23) // +#define AT91C_PE23_LCDD22 (AT91C_PIO_PE23) // +#define AT91C_PIO_PE24 (1 << 24) // Pin Controlled by PE24 +#define AT91C_PE24_LCDD17 (AT91C_PIO_PE24) // +#define AT91C_PE24_LCDD23 (AT91C_PIO_PE24) // +#define AT91C_PIO_PE25 (1 << 25) // Pin Controlled by PE25 +#define AT91C_PE25_LCDD18 (AT91C_PIO_PE25) // +#define AT91C_PIO_PE26 (1 << 26) // Pin Controlled by PE26 +#define AT91C_PE26_LCDD19 (AT91C_PIO_PE26) // +#define AT91C_PIO_PE27 (1 << 27) // Pin Controlled by PE27 +#define AT91C_PE27_LCDD20 (AT91C_PIO_PE27) // +#define AT91C_PIO_PE28 (1 << 28) // Pin Controlled by PE28 +#define AT91C_PE28_LCDD21 (AT91C_PIO_PE28) // +#define AT91C_PIO_PE29 (1 << 29) // Pin Controlled by PE29 +#define AT91C_PE29_LCDD22 (AT91C_PIO_PE29) // +#define AT91C_PIO_PE3 (1 << 3) // Pin Controlled by PE3 +#define AT91C_PE3_LCDVSYNC (AT91C_PIO_PE3) // +#define AT91C_PIO_PE30 (1 << 30) // Pin Controlled by PE30 +#define AT91C_PE30_LCDD23 (AT91C_PIO_PE30) // +#define AT91C_PIO_PE31 (1 << 31) // Pin Controlled by PE31 +#define AT91C_PE31_PWM2 (AT91C_PIO_PE31) // +#define AT91C_PE31_PCK1 (AT91C_PIO_PE31) // +#define AT91C_PIO_PE4 (1 << 4) // Pin Controlled by PE4 +#define AT91C_PE4_LCDHSYNC (AT91C_PIO_PE4) // +#define AT91C_PIO_PE5 (1 << 5) // Pin Controlled by PE5 +#define AT91C_PE5_LCDDOTCK (AT91C_PIO_PE5) // +#define AT91C_PIO_PE6 (1 << 6) // Pin Controlled by PE6 +#define AT91C_PE6_LCDDEN (AT91C_PIO_PE6) // +#define AT91C_PIO_PE7 (1 << 7) // Pin Controlled by PE7 +#define AT91C_PE7_LCDD0 (AT91C_PIO_PE7) // +#define AT91C_PE7_LCDD2 (AT91C_PIO_PE7) // +#define AT91C_PIO_PE8 (1 << 8) // Pin Controlled by PE8 +#define AT91C_PE8_LCDD1 (AT91C_PIO_PE8) // +#define AT91C_PE8_LCDD3 (AT91C_PIO_PE8) // +#define AT91C_PIO_PE9 (1 << 9) // Pin Controlled by PE9 +#define AT91C_PE9_LCDD2 (AT91C_PIO_PE9) // +#define AT91C_PE9_LCDD4 (AT91C_PIO_PE9) // + +// ***************************************************************************** +// PERIPHERAL ID DEFINITIONS FOR AT91SAM9G45 +// ***************************************************************************** +#define AT91C_ID_FIQ ( 0) // Advanced Interrupt Controller (FIQ) +#define AT91C_ID_SYS ( 1) // System Controller +#define AT91C_ID_PIOA ( 2) // Parallel IO Controller A +#define AT91C_ID_PIOB ( 3) // Parallel IO Controller B +#define AT91C_ID_PIOC ( 4) // Parallel IO Controller C +#define AT91C_ID_PIOD_E ( 5) // Parallel IO Controller D and E +#define AT91C_ID_TRNG ( 6) // True Random Number Generator +#define AT91C_ID_US0 ( 7) // USART 0 +#define AT91C_ID_US1 ( 8) // USART 1 +#define AT91C_ID_US2 ( 9) // USART 2 +#define AT91C_ID_US3 (10) // USART 2 +#define AT91C_ID_MCI0 (11) // Multimedia Card Interface 0 +#define AT91C_ID_TWI0 (12) // TWI 0 +#define AT91C_ID_TWI1 (13) // TWI 1 +#define AT91C_ID_SPI0 (14) // Serial Peripheral Interface +#define AT91C_ID_SPI1 (15) // Serial Peripheral Interface +#define AT91C_ID_SSC0 (16) // Serial Synchronous Controller 0 +#define AT91C_ID_SSC1 (17) // Serial Synchronous Controller 1 +#define AT91C_ID_TC (18) // Timer Counter 0, 1, 2, 3, 4, 5 +#define AT91C_ID_PWMC (19) // Pulse Width Modulation Controller +#define AT91C_ID_TSADC (20) // Touch Screen Controller +#define AT91C_ID_HDMA (21) // HDMA +#define AT91C_ID_UHPHS (22) // USB Host High Speed +#define AT91C_ID_LCDC (23) // LCD Controller +#define AT91C_ID_AC97C (24) // AC97 Controller +#define AT91C_ID_EMAC (25) // Ethernet MAC +#define AT91C_ID_ISI (26) // Image Sensor Interface +#define AT91C_ID_UDPHS (27) // USB Device HS +#define AT91C_ID_MCI1 (29) // Multimedia Card Interface 1 +#define AT91C_ID_VDEC (30) // Video Decoder +#define AT91C_ID_IRQ0 (31) // Advanced Interrupt Controller (IRQ0) +#define AT91C_ALL_INT (0xEFFFFFFF) // ALL VALID INTERRUPTS + +// ***************************************************************************** +// BASE ADDRESS DEFINITIONS FOR AT91SAM9G45 +// ***************************************************************************** +#define AT91C_BASE_SFR (AT91C_CAST(AT91PS_SFR) 0xFFF74000) // (SFR) Base Address +#define AT91C_BASE_SYS (AT91C_CAST(AT91PS_SYS) 0xFFFFC000) // (SYS) Base Address +#define AT91C_BASE_EBI (AT91C_CAST(AT91PS_EBI) 0xFFFFE200) // (EBI) Base Address +#define AT91C_BASE_DDR2CP1 (AT91C_CAST(AT91PS_HDDRSDRC2) 0xFFFFE400) // (DDR2CP1) Base Address +#define AT91C_BASE_DDR2C (AT91C_CAST(AT91PS_HDDRSDRC2) 0xFFFFE600) // (DDR2C) Base Address +#define AT91C_BASE_SMC (AT91C_CAST(AT91PS_SMC) 0xFFFFE800) // (SMC) Base Address +#define AT91C_BASE_MATRIX (AT91C_CAST(AT91PS_MATRIX) 0xFFFFEA00) // (MATRIX) Base Address +#define AT91C_BASE_AIC (AT91C_CAST(AT91PS_AIC) 0xFFFFF000) // (AIC) Base Address +#define AT91C_BASE_PDC_DBGU (AT91C_CAST(AT91PS_PDC) 0xFFFFEF00) // (PDC_DBGU) Base Address +#define AT91C_BASE_DBGU (AT91C_CAST(AT91PS_DBGU) 0xFFFFEE00) // (DBGU) Base Address +#define AT91C_BASE_PIOA (AT91C_CAST(AT91PS_PIO) 0xFFFFF200) // (PIOA) Base Address +#define AT91C_BASE_PIOB (AT91C_CAST(AT91PS_PIO) 0xFFFFF400) // (PIOB) Base Address +#define AT91C_BASE_PIOC (AT91C_CAST(AT91PS_PIO) 0xFFFFF600) // (PIOC) Base Address +#define AT91C_BASE_PIOD (AT91C_CAST(AT91PS_PIO) 0xFFFFF800) // (PIOD) Base Address +#define AT91C_BASE_PIOE (AT91C_CAST(AT91PS_PIO) 0xFFFFFA00) // (PIOE) Base Address +#define AT91C_BASE_PMC (AT91C_CAST(AT91PS_PMC) 0xFFFFFC00) // (PMC) Base Address +#define AT91C_BASE_CKGR (AT91C_CAST(AT91PS_CKGR) 0xFFFFFC1C) // (CKGR) Base Address +#define AT91C_BASE_RSTC (AT91C_CAST(AT91PS_RSTC) 0xFFFFFD00) // (RSTC) Base Address +#define AT91C_BASE_SHDWC (AT91C_CAST(AT91PS_SHDWC) 0xFFFFFD10) // (SHDWC) Base Address +#define AT91C_BASE_RTTC (AT91C_CAST(AT91PS_RTTC) 0xFFFFFD20) // (RTTC) Base Address +#define AT91C_BASE_PITC (AT91C_CAST(AT91PS_PITC) 0xFFFFFD30) // (PITC) Base Address +#define AT91C_BASE_WDTC (AT91C_CAST(AT91PS_WDTC) 0xFFFFFD40) // (WDTC) Base Address +#define AT91C_BASE_RTC (AT91C_CAST(AT91PS_RTC) 0xFFFFFDB0) // (RTC) Base Address +#define AT91C_BASE_TC0 (AT91C_CAST(AT91PS_TC) 0xFFF7C000) // (TC0) Base Address +#define AT91C_BASE_TC1 (AT91C_CAST(AT91PS_TC) 0xFFF7C040) // (TC1) Base Address +#define AT91C_BASE_TC2 (AT91C_CAST(AT91PS_TC) 0xFFF7C080) // (TC2) Base Address +#define AT91C_BASE_TC3 (AT91C_CAST(AT91PS_TC) 0xFFFD4000) // (TC3) Base Address +#define AT91C_BASE_TC4 (AT91C_CAST(AT91PS_TC) 0xFFFD4040) // (TC4) Base Address +#define AT91C_BASE_TC5 (AT91C_CAST(AT91PS_TC) 0xFFFD4080) // (TC5) Base Address +#define AT91C_BASE_TCB0 (AT91C_CAST(AT91PS_TCB) 0xFFF7C000) // (TCB0) Base Address +#define AT91C_BASE_TCB1 (AT91C_CAST(AT91PS_TCB) 0xFFFD4000) // (TCB1) Base Address +#define AT91C_BASE_MCI0 (AT91C_CAST(AT91PS_MCI) 0xFFF80000) // (MCI0) Base Address +#define AT91C_BASE_MCI1 (AT91C_CAST(AT91PS_MCI) 0xFFFD0000) // (MCI1) Base Address +#define AT91C_BASE_TWI0 (AT91C_CAST(AT91PS_TWI) 0xFFF84000) // (TWI0) Base Address +#define AT91C_BASE_TWI1 (AT91C_CAST(AT91PS_TWI) 0xFFF88000) // (TWI1) Base Address +#define AT91C_BASE_PDC_US0 (AT91C_CAST(AT91PS_PDC) 0xFFF8C100) // (PDC_US0) Base Address +#define AT91C_BASE_US0 (AT91C_CAST(AT91PS_USART) 0xFFF8C000) // (US0) Base Address +#define AT91C_BASE_PDC_US1 (AT91C_CAST(AT91PS_PDC) 0xFFF90100) // (PDC_US1) Base Address +#define AT91C_BASE_US1 (AT91C_CAST(AT91PS_USART) 0xFFF90000) // (US1) Base Address +#define AT91C_BASE_PDC_US2 (AT91C_CAST(AT91PS_PDC) 0xFFF94100) // (PDC_US2) Base Address +#define AT91C_BASE_US2 (AT91C_CAST(AT91PS_USART) 0xFFF94000) // (US2) Base Address +#define AT91C_BASE_PDC_US3 (AT91C_CAST(AT91PS_PDC) 0xFFF98100) // (PDC_US3) Base Address +#define AT91C_BASE_US3 (AT91C_CAST(AT91PS_USART) 0xFFF98000) // (US3) Base Address +#define AT91C_BASE_PDC_SSC0 (AT91C_CAST(AT91PS_PDC) 0xFFF9C100) // (PDC_SSC0) Base Address +#define AT91C_BASE_SSC0 (AT91C_CAST(AT91PS_SSC) 0xFFF9C000) // (SSC0) Base Address +#define AT91C_BASE_PDC_SSC1 (AT91C_CAST(AT91PS_PDC) 0xFFFA0100) // (PDC_SSC1) Base Address +#define AT91C_BASE_SSC1 (AT91C_CAST(AT91PS_SSC) 0xFFFA0000) // (SSC1) Base Address +#define AT91C_BASE_PWMC_CH0 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8200) // (PWMC_CH0) Base Address +#define AT91C_BASE_PWMC_CH1 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8220) // (PWMC_CH1) Base Address +#define AT91C_BASE_PWMC_CH2 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8240) // (PWMC_CH2) Base Address +#define AT91C_BASE_PWMC_CH3 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8260) // (PWMC_CH3) Base Address +#define AT91C_BASE_PWMC (AT91C_CAST(AT91PS_PWMC) 0xFFFB8000) // (PWMC) Base Address +#define AT91C_BASE_PDC_SPI0 (AT91C_CAST(AT91PS_PDC) 0xFFFA4100) // (PDC_SPI0) Base Address +#define AT91C_BASE_PDC_SPI1 (AT91C_CAST(AT91PS_PDC) 0xFFFA8100) // (PDC_SPI1) Base Address +#define AT91C_BASE_SPI0 (AT91C_CAST(AT91PS_SPI) 0xFFFA4000) // (SPI0) Base Address +#define AT91C_BASE_SPI1 (AT91C_CAST(AT91PS_SPI) 0xFFFA8000) // (SPI1) Base Address +#define AT91C_BASE_PDC_TSADC (AT91C_CAST(AT91PS_PDC) 0xFFFB0100) // (PDC_TSADC) Base Address +#define AT91C_BASE_TSADC (AT91C_CAST(AT91PS_TSADC) 0xFFFB0000) // (TSADC) Base Address +#define AT91C_BASE_UDPHS_EPTFIFO (AT91C_CAST(AT91PS_UDPHS_EPTFIFO) 0x00600000) // (UDPHS_EPTFIFO) Base Address +#define AT91C_BASE_UDPHS_EPT_0 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78100) // (UDPHS_EPT_0) Base Address +#define AT91C_BASE_UDPHS_EPT_1 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78120) // (UDPHS_EPT_1) Base Address +#define AT91C_BASE_UDPHS_EPT_2 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78140) // (UDPHS_EPT_2) Base Address +#define AT91C_BASE_UDPHS_EPT_3 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78160) // (UDPHS_EPT_3) Base Address +#define AT91C_BASE_UDPHS_EPT_4 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78180) // (UDPHS_EPT_4) Base Address +#define AT91C_BASE_UDPHS_EPT_5 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF781A0) // (UDPHS_EPT_5) Base Address +#define AT91C_BASE_UDPHS_EPT_6 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF781C0) // (UDPHS_EPT_6) Base Address +#define AT91C_BASE_UDPHS_DMA_1 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78310) // (UDPHS_DMA_1) Base Address +#define AT91C_BASE_UDPHS_DMA_2 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78320) // (UDPHS_DMA_2) Base Address +#define AT91C_BASE_UDPHS_DMA_3 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78330) // (UDPHS_DMA_3) Base Address +#define AT91C_BASE_UDPHS_DMA_4 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78340) // (UDPHS_DMA_4) Base Address +#define AT91C_BASE_UDPHS_DMA_5 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78350) // (UDPHS_DMA_5) Base Address +#define AT91C_BASE_UDPHS_DMA_6 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78360) // (UDPHS_DMA_6) Base Address +#define AT91C_BASE_UDPHS (AT91C_CAST(AT91PS_UDPHS) 0xFFF78000) // (UDPHS) Base Address +#define AT91C_BASE_PDC_AC97C (AT91C_CAST(AT91PS_PDC) 0xFFFAC100) // (PDC_AC97C) Base Address +#define AT91C_BASE_AC97C (AT91C_CAST(AT91PS_AC97C) 0xFFFAC000) // (AC97C) Base Address +#define AT91C_BASE_LCDC (AT91C_CAST(AT91PS_LCDC) 0x00500000) // (LCDC) Base Address +#define AT91C_BASE_LCDC_16B_TFT (AT91C_CAST(AT91PS_LCDC) 0x00500000) // (LCDC_16B_TFT) Base Address +#define AT91C_BASE_HDMA_CH_0 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFEC3C) // (HDMA_CH_0) Base Address +#define AT91C_BASE_HDMA_CH_1 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFEC64) // (HDMA_CH_1) Base Address +#define AT91C_BASE_HDMA_CH_2 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFEC8C) // (HDMA_CH_2) Base Address +#define AT91C_BASE_HDMA_CH_3 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFECB4) // (HDMA_CH_3) Base Address +#define AT91C_BASE_HDMA_CH_4 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFECDC) // (HDMA_CH_4) Base Address +#define AT91C_BASE_HDMA_CH_5 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFED04) // (HDMA_CH_5) Base Address +#define AT91C_BASE_HDMA_CH_6 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFED2C) // (HDMA_CH_6) Base Address +#define AT91C_BASE_HDMA_CH_7 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFED54) // (HDMA_CH_7) Base Address +#define AT91C_BASE_HDMA (AT91C_CAST(AT91PS_HDMA) 0xFFFFEC00) // (HDMA) Base Address +#define AT91C_BASE_HECC (AT91C_CAST(AT91PS_ECC) 0xFFFFE200) // (HECC) Base Address +#define AT91C_BASE_EMACB (AT91C_CAST(AT91PS_EMAC) 0xFFFBC000) // (EMACB) Base Address +#define AT91C_BASE_ISI (AT91C_CAST(AT91PS_ISI) 0xFFFB4000) // (ISI) Base Address +#define AT91C_BASE_UHPHS_OHCI (AT91C_CAST(AT91PS_UHPHS_OHCI) 0x00700000) // (UHPHS_OHCI) Base Address +#define AT91C_BASE_UHPHS_EHCI (AT91C_CAST(AT91PS_UHPHS_EHCI) 0x00800000) // (UHPHS_EHCI) Base Address +#define AT91C_BASE_TRNG (AT91C_CAST(AT91PS_TRNG) 0xFFFCC000) // (TRNG) Base Address + +// ***************************************************************************** +// MEMORY MAPPING DEFINITIONS FOR AT91SAM9G45 +// ***************************************************************************** +// ITCM +#define AT91C_ITCM (0x00100000) // Maximum ITCM Area base address +// DTCM +#define AT91C_DTCM (0x00200000) // Maximum DTCM Area base address +// IRAM +#define AT91C_IRAM (0x00300000) // Maximum Internal SRAM base address +#define AT91C_IRAM_SIZE (0x00010000) // Maximum Internal SRAM size in byte (64 Kbytes) +// IRAM_MIN +#define AT91C_IRAM_MIN (0x00300000) // Minimum Internal RAM base address +#define AT91C_IRAM_MIN_SIZE (0x00004000) // Minimum Internal RAM size in byte (16 Kbytes) +// IROM +#define AT91C_IROM (0x00400000) // Internal ROM base address +#define AT91C_IROM_SIZE (0x00010000) // Internal ROM size in byte (64 Kbytes) +// EBI_CS0 +#define AT91C_EBI_CS0 (0x10000000) // EBI Chip Select 0 base address +#define AT91C_EBI_CS0_SIZE (0x10000000) // EBI Chip Select 0 size in byte (262144 Kbytes) +// EBI_CS1 +#define AT91C_EBI_CS1 (0x20000000) // EBI Chip Select 1 base address +#define AT91C_EBI_CS1_SIZE (0x10000000) // EBI Chip Select 1 size in byte (262144 Kbytes) +// EBI_SDRAM +#define AT91C_EBI_SDRAM (0x20000000) // SDRAM on EBI Chip Select 1 base address +#define AT91C_EBI_SDRAM_SIZE (0x10000000) // SDRAM on EBI Chip Select 1 size in byte (262144 Kbytes) +// EBI_SDRAM_16BIT +#define AT91C_EBI_SDRAM_16BIT (0x20000000) // SDRAM on EBI Chip Select 1 base address +#define AT91C_EBI_SDRAM_16BIT_SIZE (0x02000000) // SDRAM on EBI Chip Select 1 size in byte (32768 Kbytes) +// EBI_SDRAM_32BIT +#define AT91C_EBI_SDRAM_32BIT (0x20000000) // SDRAM on EBI Chip Select 1 base address +#define AT91C_EBI_SDRAM_32BIT_SIZE (0x04000000) // SDRAM on EBI Chip Select 1 size in byte (65536 Kbytes) +// EBI_CS2 +#define AT91C_EBI_CS2 (0x30000000) // EBI Chip Select 2 base address +#define AT91C_EBI_CS2_SIZE (0x10000000) // EBI Chip Select 2 size in byte (262144 Kbytes) +// EBI_CS3 +#define AT91C_EBI_CS3 (0x40000000) // EBI Chip Select 3 base address +#define AT91C_EBI_CS3_SIZE (0x10000000) // EBI Chip Select 3 size in byte (262144 Kbytes) +// EBI_SM +#define AT91C_EBI_SM (0x40000000) // NANDFLASH on EBI Chip Select 3 base address +#define AT91C_EBI_SM_SIZE (0x10000000) // NANDFLASH on EBI Chip Select 3 size in byte (262144 Kbytes) +// EBI_CS4 +#define AT91C_EBI_CS4 (0x50000000) // EBI Chip Select 4 base address +#define AT91C_EBI_CS4_SIZE (0x10000000) // EBI Chip Select 4 size in byte (262144 Kbytes) +// EBI_CF0 +#define AT91C_EBI_CF0 (0x50000000) // CompactFlash 0 on EBI Chip Select 4 base address +#define AT91C_EBI_CF0_SIZE (0x10000000) // CompactFlash 0 on EBI Chip Select 4 size in byte (262144 Kbytes) +// EBI_CS5 +#define AT91C_EBI_CS5 (0x60000000) // EBI Chip Select 5 base address +#define AT91C_EBI_CS5_SIZE (0x10000000) // EBI Chip Select 5 size in byte (262144 Kbytes) +// EBI_CF1 +#define AT91C_EBI_CF1 (0x60000000) // CompactFlash 1 on EBIChip Select 5 base address +#define AT91C_EBI_CF1_SIZE (0x10000000) // CompactFlash 1 on EBIChip Select 5 size in byte (262144 Kbytes) +// DDR2 +#define AT91C_DDR2 (0x70000000) // DDR2/LPDDR space base address +#define AT91C_DDR2_SIZE (0x10000000) // DDR2/LPDDR space size in byte (262144 Kbytes) + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include "io.h" +#include "irq.h" +#include "gpio.h" + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +extern struct clk *clk_get(const char *id); +extern rt_uint32_t clk_get_rate(struct clk *clk); +extern void rt_hw_clock_init(void); + +#define AT91C_SLOW_CLOCK 32768 /* slow clock */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/bsp/at91/at91sam9g45/platform/gpio.h b/bsp/at91/at91sam9g45/platform/gpio.h new file mode 100644 index 0000000000..e89ab368be --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/gpio.h @@ -0,0 +1,194 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __GPIO_H__ +#define __GPIO_H__ + +#include + +#define PIN_BASE AIC_IRQS + +#define MAX_GPIO_BANKS 5 + +#define PIN_IRQS (MAX_GPIO_BANKS*32) + +/* these pin numbers double as IRQ numbers, like AT91xxx_ID_* values */ + +#define AT91C_PIN_PA0 (PIN_BASE + 0x00 + 0) +#define AT91C_PIN_PA1 (PIN_BASE + 0x00 + 1) +#define AT91C_PIN_PA2 (PIN_BASE + 0x00 + 2) +#define AT91C_PIN_PA3 (PIN_BASE + 0x00 + 3) +#define AT91C_PIN_PA4 (PIN_BASE + 0x00 + 4) +#define AT91C_PIN_PA5 (PIN_BASE + 0x00 + 5) +#define AT91C_PIN_PA6 (PIN_BASE + 0x00 + 6) +#define AT91C_PIN_PA7 (PIN_BASE + 0x00 + 7) +#define AT91C_PIN_PA8 (PIN_BASE + 0x00 + 8) +#define AT91C_PIN_PA9 (PIN_BASE + 0x00 + 9) +#define AT91C_PIN_PA10 (PIN_BASE + 0x00 + 10) +#define AT91C_PIN_PA11 (PIN_BASE + 0x00 + 11) +#define AT91C_PIN_PA12 (PIN_BASE + 0x00 + 12) +#define AT91C_PIN_PA13 (PIN_BASE + 0x00 + 13) +#define AT91C_PIN_PA14 (PIN_BASE + 0x00 + 14) +#define AT91C_PIN_PA15 (PIN_BASE + 0x00 + 15) +#define AT91C_PIN_PA16 (PIN_BASE + 0x00 + 16) +#define AT91C_PIN_PA17 (PIN_BASE + 0x00 + 17) +#define AT91C_PIN_PA18 (PIN_BASE + 0x00 + 18) +#define AT91C_PIN_PA19 (PIN_BASE + 0x00 + 19) +#define AT91C_PIN_PA20 (PIN_BASE + 0x00 + 20) +#define AT91C_PIN_PA21 (PIN_BASE + 0x00 + 21) +#define AT91C_PIN_PA22 (PIN_BASE + 0x00 + 22) +#define AT91C_PIN_PA23 (PIN_BASE + 0x00 + 23) +#define AT91C_PIN_PA24 (PIN_BASE + 0x00 + 24) +#define AT91C_PIN_PA25 (PIN_BASE + 0x00 + 25) +#define AT91C_PIN_PA26 (PIN_BASE + 0x00 + 26) +#define AT91C_PIN_PA27 (PIN_BASE + 0x00 + 27) +#define AT91C_PIN_PA28 (PIN_BASE + 0x00 + 28) +#define AT91C_PIN_PA29 (PIN_BASE + 0x00 + 29) +#define AT91C_PIN_PA30 (PIN_BASE + 0x00 + 30) +#define AT91C_PIN_PA31 (PIN_BASE + 0x00 + 31) + +#define AT91C_PIN_PB0 (PIN_BASE + 0x20 + 0) +#define AT91C_PIN_PB1 (PIN_BASE + 0x20 + 1) +#define AT91C_PIN_PB2 (PIN_BASE + 0x20 + 2) +#define AT91C_PIN_PB3 (PIN_BASE + 0x20 + 3) +#define AT91C_PIN_PB4 (PIN_BASE + 0x20 + 4) +#define AT91C_PIN_PB5 (PIN_BASE + 0x20 + 5) +#define AT91C_PIN_PB6 (PIN_BASE + 0x20 + 6) +#define AT91C_PIN_PB7 (PIN_BASE + 0x20 + 7) +#define AT91C_PIN_PB8 (PIN_BASE + 0x20 + 8) +#define AT91C_PIN_PB9 (PIN_BASE + 0x20 + 9) +#define AT91C_PIN_PB10 (PIN_BASE + 0x20 + 10) +#define AT91C_PIN_PB11 (PIN_BASE + 0x20 + 11) +#define AT91C_PIN_PB12 (PIN_BASE + 0x20 + 12) +#define AT91C_PIN_PB13 (PIN_BASE + 0x20 + 13) +#define AT91C_PIN_PB14 (PIN_BASE + 0x20 + 14) +#define AT91C_PIN_PB15 (PIN_BASE + 0x20 + 15) +#define AT91C_PIN_PB16 (PIN_BASE + 0x20 + 16) +#define AT91C_PIN_PB17 (PIN_BASE + 0x20 + 17) +#define AT91C_PIN_PB18 (PIN_BASE + 0x20 + 18) +#define AT91C_PIN_PB19 (PIN_BASE + 0x20 + 19) +#define AT91C_PIN_PB20 (PIN_BASE + 0x20 + 20) +#define AT91C_PIN_PB21 (PIN_BASE + 0x20 + 21) +#define AT91C_PIN_PB22 (PIN_BASE + 0x20 + 22) +#define AT91C_PIN_PB23 (PIN_BASE + 0x20 + 23) +#define AT91C_PIN_PB24 (PIN_BASE + 0x20 + 24) +#define AT91C_PIN_PB25 (PIN_BASE + 0x20 + 25) +#define AT91C_PIN_PB26 (PIN_BASE + 0x20 + 26) +#define AT91C_PIN_PB27 (PIN_BASE + 0x20 + 27) +#define AT91C_PIN_PB28 (PIN_BASE + 0x20 + 28) +#define AT91C_PIN_PB29 (PIN_BASE + 0x20 + 29) +#define AT91C_PIN_PB30 (PIN_BASE + 0x20 + 30) +#define AT91C_PIN_PB31 (PIN_BASE + 0x20 + 31) + +#define AT91C_PIN_PC0 (PIN_BASE + 0x40 + 0) +#define AT91C_PIN_PC1 (PIN_BASE + 0x40 + 1) +#define AT91C_PIN_PC2 (PIN_BASE + 0x40 + 2) +#define AT91C_PIN_PC3 (PIN_BASE + 0x40 + 3) +#define AT91C_PIN_PC4 (PIN_BASE + 0x40 + 4) +#define AT91C_PIN_PC5 (PIN_BASE + 0x40 + 5) +#define AT91C_PIN_PC6 (PIN_BASE + 0x40 + 6) +#define AT91C_PIN_PC7 (PIN_BASE + 0x40 + 7) +#define AT91C_PIN_PC8 (PIN_BASE + 0x40 + 8) +#define AT91C_PIN_PC9 (PIN_BASE + 0x40 + 9) +#define AT91C_PIN_PC10 (PIN_BASE + 0x40 + 10) +#define AT91C_PIN_PC11 (PIN_BASE + 0x40 + 11) +#define AT91C_PIN_PC12 (PIN_BASE + 0x40 + 12) +#define AT91C_PIN_PC13 (PIN_BASE + 0x40 + 13) +#define AT91C_PIN_PC14 (PIN_BASE + 0x40 + 14) +#define AT91C_PIN_PC15 (PIN_BASE + 0x40 + 15) +#define AT91C_PIN_PC16 (PIN_BASE + 0x40 + 16) +#define AT91C_PIN_PC17 (PIN_BASE + 0x40 + 17) +#define AT91C_PIN_PC18 (PIN_BASE + 0x40 + 18) +#define AT91C_PIN_PC19 (PIN_BASE + 0x40 + 19) +#define AT91C_PIN_PC20 (PIN_BASE + 0x40 + 20) +#define AT91C_PIN_PC21 (PIN_BASE + 0x40 + 21) +#define AT91C_PIN_PC22 (PIN_BASE + 0x40 + 22) +#define AT91C_PIN_PC23 (PIN_BASE + 0x40 + 23) +#define AT91C_PIN_PC24 (PIN_BASE + 0x40 + 24) +#define AT91C_PIN_PC25 (PIN_BASE + 0x40 + 25) +#define AT91C_PIN_PC26 (PIN_BASE + 0x40 + 26) +#define AT91C_PIN_PC27 (PIN_BASE + 0x40 + 27) +#define AT91C_PIN_PC28 (PIN_BASE + 0x40 + 28) +#define AT91C_PIN_PC29 (PIN_BASE + 0x40 + 29) +#define AT91C_PIN_PC30 (PIN_BASE + 0x40 + 30) +#define AT91C_PIN_PC31 (PIN_BASE + 0x40 + 31) + +#define AT91C_PIN_PD0 (PIN_BASE + 0x60 + 0) +#define AT91C_PIN_PD1 (PIN_BASE + 0x60 + 1) +#define AT91C_PIN_PD2 (PIN_BASE + 0x60 + 2) +#define AT91C_PIN_PD3 (PIN_BASE + 0x60 + 3) +#define AT91C_PIN_PD4 (PIN_BASE + 0x60 + 4) +#define AT91C_PIN_PD5 (PIN_BASE + 0x60 + 5) +#define AT91C_PIN_PD6 (PIN_BASE + 0x60 + 6) +#define AT91C_PIN_PD7 (PIN_BASE + 0x60 + 7) +#define AT91C_PIN_PD8 (PIN_BASE + 0x60 + 8) +#define AT91C_PIN_PD9 (PIN_BASE + 0x60 + 9) +#define AT91C_PIN_PD10 (PIN_BASE + 0x60 + 10) +#define AT91C_PIN_PD11 (PIN_BASE + 0x60 + 11) +#define AT91C_PIN_PD12 (PIN_BASE + 0x60 + 12) +#define AT91C_PIN_PD13 (PIN_BASE + 0x60 + 13) +#define AT91C_PIN_PD14 (PIN_BASE + 0x60 + 14) +#define AT91C_PIN_PD15 (PIN_BASE + 0x60 + 15) +#define AT91C_PIN_PD16 (PIN_BASE + 0x60 + 16) +#define AT91C_PIN_PD17 (PIN_BASE + 0x60 + 17) +#define AT91C_PIN_PD18 (PIN_BASE + 0x60 + 18) +#define AT91C_PIN_PD19 (PIN_BASE + 0x60 + 19) +#define AT91C_PIN_PD20 (PIN_BASE + 0x60 + 20) +#define AT91C_PIN_PD21 (PIN_BASE + 0x60 + 21) +#define AT91C_PIN_PD22 (PIN_BASE + 0x60 + 22) +#define AT91C_PIN_PD23 (PIN_BASE + 0x60 + 23) +#define AT91C_PIN_PD24 (PIN_BASE + 0x60 + 24) +#define AT91C_PIN_PD25 (PIN_BASE + 0x60 + 25) +#define AT91C_PIN_PD26 (PIN_BASE + 0x60 + 26) +#define AT91C_PIN_PD27 (PIN_BASE + 0x60 + 27) +#define AT91C_PIN_PD28 (PIN_BASE + 0x60 + 28) +#define AT91C_PIN_PD29 (PIN_BASE + 0x60 + 29) +#define AT91C_PIN_PD30 (PIN_BASE + 0x60 + 30) +#define AT91C_PIN_PD31 (PIN_BASE + 0x60 + 31) + +#define AT91C_PIN_PE0 (PIN_BASE + 0x80 + 0) +#define AT91C_PIN_PE1 (PIN_BASE + 0x80 + 1) +#define AT91C_PIN_PE2 (PIN_BASE + 0x80 + 2) +#define AT91C_PIN_PE3 (PIN_BASE + 0x80 + 3) +#define AT91C_PIN_PE4 (PIN_BASE + 0x80 + 4) +#define AT91C_PIN_PE5 (PIN_BASE + 0x80 + 5) +#define AT91C_PIN_PE6 (PIN_BASE + 0x80 + 6) +#define AT91C_PIN_PE7 (PIN_BASE + 0x80 + 7) +#define AT91C_PIN_PE8 (PIN_BASE + 0x80 + 8) +#define AT91C_PIN_PE9 (PIN_BASE + 0x80 + 9) +#define AT91C_PIN_PE10 (PIN_BASE + 0x80 + 10) +#define AT91C_PIN_PE11 (PIN_BASE + 0x80 + 11) +#define AT91C_PIN_PE12 (PIN_BASE + 0x80 + 12) +#define AT91C_PIN_PE13 (PIN_BASE + 0x80 + 13) +#define AT91C_PIN_PE14 (PIN_BASE + 0x80 + 14) +#define AT91C_PIN_PE15 (PIN_BASE + 0x80 + 15) +#define AT91C_PIN_PE16 (PIN_BASE + 0x80 + 16) +#define AT91C_PIN_PE17 (PIN_BASE + 0x80 + 17) +#define AT91C_PIN_PE18 (PIN_BASE + 0x80 + 18) +#define AT91C_PIN_PE19 (PIN_BASE + 0x80 + 19) +#define AT91C_PIN_PE20 (PIN_BASE + 0x80 + 20) +#define AT91C_PIN_PE21 (PIN_BASE + 0x80 + 21) +#define AT91C_PIN_PE22 (PIN_BASE + 0x80 + 22) +#define AT91C_PIN_PE23 (PIN_BASE + 0x80 + 23) +#define AT91C_PIN_PE24 (PIN_BASE + 0x80 + 24) +#define AT91C_PIN_PE25 (PIN_BASE + 0x80 + 25) +#define AT91C_PIN_PE26 (PIN_BASE + 0x80 + 26) +#define AT91C_PIN_PE27 (PIN_BASE + 0x80 + 27) +#define AT91C_PIN_PE28 (PIN_BASE + 0x80 + 28) +#define AT91C_PIN_PE29 (PIN_BASE + 0x80 + 29) +#define AT91C_PIN_PE30 (PIN_BASE + 0x80 + 30) +#define AT91C_PIN_PE31 (PIN_BASE + 0x80 + 31) + +rt_inline rt_uint32_t gpio_to_irq(rt_uint32_t gpio) +{ + return gpio; +} + +#endif diff --git a/bsp/at91/at91sam9g45/platform/interrupt.c b/bsp/at91/at91sam9g45/platform/interrupt.c new file mode 100644 index 0000000000..c3dd99e798 --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/interrupt.c @@ -0,0 +1,460 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include "at91sam9g45.h" +#include "interrupt.h" + +#define AIC_IRQS 32 +#define MAX_HANDLERS (AIC_IRQS + PIN_IRQS) + +extern rt_uint32_t rt_interrupt_nest; + +/* exception and interrupt handler table */ +struct rt_irq_desc irq_desc[MAX_HANDLERS]; + +rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread; +rt_uint32_t rt_thread_switch_interrupt_flag; + + +/* -------------------------------------------------------------------- + * Interrupt initialization + * -------------------------------------------------------------------- */ + +rt_uint32_t at91_extern_irq; + +#define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq) + +/* + * The default interrupt priority levels (0 = lowest, 7 = highest). + */ +static rt_uint32_t at91sam9g45_default_irq_priority[MAX_HANDLERS] = { + 7, /* Advanced Interrupt Controller - FIQ */ + 7, /* System Controller Interrupt */ + 1, /* Parallel I/O Controller A, */ + 1, /* Parallel I/O Controller B */ + 1, /* Parallel I/O Controller C */ + 0, /* Parallel I/O Controller D/E */ + 5, /* True Random Number Generator */ + 5, /* USART 0 */ + 5, /* USART 1 */ + 0, /* USART 2 */ + 2, /* USART 3 */ + 6, /* High Speed Multimedia Card Interface 0 */ + 5, /* Two-Wire Interface 0 */ + 5, /* Two-Wire Interface 1 */ + 5, /* Serial Peripheral Interface */ + 0, /* Serial Peripheral Interface */ + 0, /* Synchronous Serial Controller 0 */ + 0, /* Synchronous Serial Controller 1 */ + 0, /* Timer Counter 0,1,2,3,4,5 */ + 0, /* Pulse Width Modulation Controller */ + 2, /* Touch Screen ADC Controller */ + 3, /* DMA Controller */ + 0, /* USB Host High Speed */ + 5, /* LCD Controller */ + 5, /* AC97 Controller */ + 5, /* Ethernet MAC */ + 0, /* Image Sensor Interface */ + 0, /* USB Device High Speed */ + 0, /* N/A */ + 0, /* High Speed Multimedia Card Interface 1 */ + 0, /* Reserved */ + 0, /* Advanced Interrupt Controller - IRQ */ +}; + +/** + * @addtogroup AT91SAM9G45 + */ +/*@{*/ + +void rt_hw_interrupt_mask(int irq); +void rt_hw_interrupt_umask(int irq); + +rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector, void *param) +{ + rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + return RT_NULL; +} + +rt_isr_handler_t at91_gpio_irq_handle(rt_uint32_t bank, void *param) +{ + rt_uint32_t isr, irq_n; + AT91PS_PIO pio; + void *parameter; + + switch (bank) + { + case 0: pio = AT91C_BASE_PIOA; break; + case 1: pio = AT91C_BASE_PIOB; break; + case 2: pio = AT91C_BASE_PIOC; break; + case 3: pio = AT91C_BASE_PIOD; break; + case 4: pio = AT91C_BASE_PIOE; break; + default: return RT_NULL; + } + irq_n = AIC_IRQS + 32*bank; + isr = readl(pio->PIO_ISR); + isr &= readl(pio->PIO_IMR); + while (isr) + { + if (isr & 1) + { + parameter = irq_desc[irq_n].param; + irq_desc[irq_n].handler(irq_n, parameter); + } + isr >>= 1; + irq_n++; + } + + return RT_NULL; +} + +unsigned int SpuriousCount = 0; +static void DefaultSpuriousHandler( void ) +{ + SpuriousCount++; + rt_kprintf("Spurious interrupt %d occured!!!\n", SpuriousCount); + return ; +} + +static void DefaultFiqHandler(void) +{ + rt_kprintf("Unhandled FIQ occured!!!\n"); + while (1); +} + +static void DefaultIrqHandler(void) +{ + rt_kprintf("Unhandled IRQ %d occured!!!\n", AT91C_BASE_AIC->AIC_ISR); + while (1); +} + +/* + * Initialize the AIC interrupt controller. + */ +void at91_aic_init(rt_uint32_t *priority) +{ + rt_uint32_t i; + + /* + * The IVR is used by macro get_irqnr_and_base to read and verify. + * The irq number is NR_AIC_IRQS when a spurious interrupt has occurred. + */ + AT91C_BASE_AIC->AIC_SVR[0] = (rt_uint32_t)DefaultFiqHandler; + for (i = 1; i < AIC_IRQS; i++) { + /* Put irq number in Source Vector Register: */ + AT91C_BASE_AIC->AIC_SVR[i] = (rt_uint32_t)DefaultIrqHandler; // no-used + /* Active Low interrupt, with the specified priority */ + AT91C_BASE_AIC->AIC_SMR[i] = AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE | priority[i]; + //AT91C_AIC_SRCTYPE_FALLING + } + + /* + * Spurious Interrupt ID in Spurious Vector Register is NR_AIC_IRQS + * When there is no current interrupt, the IRQ Vector Register reads the value stored in AIC_SPU + */ + AT91C_BASE_AIC->AIC_SPU = (rt_uint32_t)DefaultSpuriousHandler; + + /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */ + for (i = 0; i < 8; i++) + AT91C_BASE_AIC->AIC_EOICR = 0; + + /* No debugging in AIC: Debug (Protect) Control Register */ + AT91C_BASE_AIC->AIC_DCR = 0; + + /* Disable and clear all interrupts initially */ + AT91C_BASE_AIC->AIC_IDCR = 0xFFFFFFFF; + AT91C_BASE_AIC->AIC_ICCR = 0xFFFFFFFF; +} + + +static void at91_gpio_irq_init() +{ + int i, idx; + char *name[] = {"PIOA", "PIOB", "PIOC", "PIODE"}; + rt_uint32_t aic_pids[] = { AT91C_ID_PIOA, AT91C_ID_PIOB, AT91C_ID_PIOC, AT91C_ID_PIOD_E }; + + AT91C_BASE_PIOA->PIO_IDR = 0xffffffff; + AT91C_BASE_PIOB->PIO_IDR = 0xffffffff; + AT91C_BASE_PIOC->PIO_IDR = 0xffffffff; + AT91C_BASE_PIOD->PIO_IDR = 0xffffffff; + AT91C_BASE_PIOE->PIO_IDR = 0xffffffff; + + for (i = 0; i < 4; i++) + { + idx = aic_pids[i]; + irq_desc[idx].handler = (rt_isr_handler_t)at91_gpio_irq_handle; + irq_desc[idx].param = RT_NULL; +#ifdef RT_USING_INTERRUPT_INFO + rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, name[i]); + irq_desc[idx].counter = 0; +#endif + + rt_hw_interrupt_umask(idx); + } +} + + +/** + * This function will initialize hardware interrupt + */ +void rt_hw_interrupt_init(void) +{ + register rt_uint32_t idx; + rt_uint32_t *priority = at91sam9g45_default_irq_priority; + + at91_extern_irq = (1UL << AT91C_ID_IRQ0); + + /* Initialize the AIC interrupt controller */ + at91_aic_init(priority); + + /* init exceptions table */ + for(idx=0; idx < MAX_HANDLERS; idx++) + { + irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; + irq_desc[idx].param = RT_NULL; +#ifdef RT_USING_INTERRUPT_INFO + rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); + irq_desc[idx].counter = 0; +#endif + } + + at91_gpio_irq_init(); + + /* init interrupt nest, and context in thread sp */ + rt_interrupt_nest = 0; + rt_interrupt_from_thread = 0; + rt_interrupt_to_thread = 0; + rt_thread_switch_interrupt_flag = 0; +} + +static void at91_gpio_irq_mask(int irq) +{ + rt_uint32_t pin, bank; + AT91PS_PIO pio; + + bank = (irq - AIC_IRQS)>>5; + + switch (bank) + { + case 0: pio = AT91C_BASE_PIOA; break; + case 1: pio = AT91C_BASE_PIOB; break; + case 2: pio = AT91C_BASE_PIOC; break; + case 3: pio = AT91C_BASE_PIOD; break; + case 4: pio = AT91C_BASE_PIOE; break; + default: return; + } + pin = 1 << ((irq - AIC_IRQS) & 31); + pio->PIO_IDR = pin; +} + +/** + * This function will mask a interrupt. + * @param irq the interrupt number + */ +void rt_hw_interrupt_mask(int irq) +{ + if (irq >= AIC_IRQS) + { + at91_gpio_irq_mask(irq); + } + else + { + /* Disable interrupt on AIC */ + AT91C_BASE_AIC->AIC_IDCR = 1 << irq; + } +} + +static void at91_gpio_irq_umask(int irq) +{ + rt_uint32_t pin, bank; + AT91PS_PIO pio; + + bank = (irq - AIC_IRQS)>>5; + + switch (bank) + { + case 0: pio = AT91C_BASE_PIOA; break; + case 1: pio = AT91C_BASE_PIOB; break; + case 2: pio = AT91C_BASE_PIOC; break; + case 3: pio = AT91C_BASE_PIOD; break; + case 4: pio = AT91C_BASE_PIOE; break; + default: return; + } + pin = 1 << ((irq - AIC_IRQS) & 31); + pio->PIO_IER = pin; +} + +/** + * This function will un-mask a interrupt. + * @param vector the interrupt number + */ +void rt_hw_interrupt_umask(int irq) +{ + if (irq >= AIC_IRQS) + { + at91_gpio_irq_umask(irq); + } + else + { + /* Enable interrupt on AIC */ + AT91C_BASE_AIC->AIC_IECR = 1 << irq; + } +} + +/** + * This function will install a interrupt service routine to a interrupt. + * @param vector the interrupt number + * @param handler the interrupt service routine to be installed + * @param param the interrupt service function parameter + * @param name the interrupt name + * @return old handler + */ +rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, + void *param, const char *name) +{ + rt_isr_handler_t old_handler = RT_NULL; + + if (vector < MAX_HANDLERS) + { + old_handler = irq_desc[vector].handler; + if (handler != RT_NULL) + { + irq_desc[vector].handler = (rt_isr_handler_t)handler; + irq_desc[vector].param = param; +#ifdef RT_USING_INTERRUPT_INFO + rt_snprintf(irq_desc[vector].name, RT_NAME_MAX - 1, "%s", name); + irq_desc[vector].counter = 0; +#endif + } + } + + return old_handler; +} + +/*@}*/ + +/* +static int at91_aic_set_type(unsigned irq, unsigned type) +{ + unsigned int smr, srctype; + + switch (type) { + case AT91C_AIC_SRCTYPE_EXT_HIGH_LEVEL: + srctype = AT91C_AIC_SRCTYPE_HIGH; + break; + case AT91C_AIC_SRCTYPE_EXT_POSITIVE_EDGE: + srctype = AT91C_AIC_SRCTYPE_RISING; + break; + case AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE: + // only supported on external interrupts + if ((irq == AT91C_ID_FIQ) || is_extern_irq(irq)) + srctype = AT91C_AIC_SRCTYPE_LOW; + else + return -1; + break; + case AT91C_AIC_SRCTYPE_INT_EDGE_TRIGGERED: + // only supported on external interrupts + if ((irq == AT91C_ID_FIQ) || is_extern_irq(irq)) + srctype = AT91C_AIC_SRCTYPE_FALLING; + else + return -1; + break; + default: + return -1; + } + + smr = readl(AT91C_AIC_SMR(irq)) & ~AT91C_AIC_SRCTYPE; + AT91C_BASE_AIC->AIC_SMR[irq] = smr | srctype; + return 0; +} +*/ +rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq) +{ + + //volatile rt_uint32_t irqstat; + rt_uint32_t id; + if (fiq_irq == INT_FIQ) + return 0; + + //IRQ + /* AIC need this dummy read */ + readl(AT91C_AIC_IVR); + /* clear pending register */ + id = readl(AT91C_AIC_ISR); + + return id; +} + +void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id) +{ + /* new FIQ generation */ + if (fiq_irq == INT_FIQ) + return; + + /* new IRQ generation */ + // EIOCR must be write any value after interrupt, + // or else can't response next interrupt + AT91C_BASE_AIC->AIC_EOICR = 0x0; +} + +void rt_interrupt_dispatch(rt_uint32_t fiq_irq) +{ + rt_isr_handler_t isr_func; + rt_uint32_t irq; + void *param; + + /* get irq number */ + irq = rt_hw_interrupt_get_active(fiq_irq); + + /* get interrupt service routine */ + isr_func = irq_desc[irq].handler; + param = irq_desc[irq].param; + + /* turn to interrupt service routine */ + isr_func(irq, param); + + rt_hw_interrupt_ack(fiq_irq, irq); +#ifdef RT_USING_INTERRUPT_INFO + irq_desc[irq].counter ++; +#endif +} + + +#ifdef RT_USING_FINSH +#ifdef RT_USING_INTERRUPT_INFO +void list_irq(void) +{ + int irq; + + rt_kprintf("number\tcount\tname\n"); + for (irq = 0; irq < MAX_HANDLERS; irq++) + { + if (rt_strncmp(irq_desc[irq].name, "default", sizeof("default"))) + { + rt_kprintf("%02ld: %10ld %s\n", irq, irq_desc[irq].counter, irq_desc[irq].name); + } + } +} + +#include + +#ifdef FINSH_USING_MSH +int cmd_list_irq(int argc, char** argv) +{ + list_irq(); + return 0; +} +MSH_CMD_EXPORT_ALIAS(cmd_list_irq, list_irq, list system irq); +#endif +#endif +#endif + + diff --git a/bsp/at91/at91sam9g45/platform/interrupt.h b/bsp/at91/at91sam9g45/platform/interrupt.h new file mode 100644 index 0000000000..0375164e00 --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/interrupt.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2015-04-14 ArdaFu first version + */ +#ifndef __INTERRUPT_H__ +#define __INTERRUPT_H__ + +#define INT_IRQ 0x00 +#define INT_FIQ 0x01 + + +#endif diff --git a/bsp/at91/at91sam9g45/platform/io.h b/bsp/at91/at91sam9g45/platform/io.h new file mode 100644 index 0000000000..b3a9188299 --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/io.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __ASM_ARCH_IO_H +#define __ASM_ARCH_IO_H + +#define IO_SPACE_LIMIT 0xFFFFFFFF + +#define readb(a) (*(volatile unsigned char *)(a)) +#define readw(a) (*(volatile unsigned short *)(a)) +#define readl(a) (*(volatile unsigned int *)(a)) + +#define writeb(v,a) (*(volatile unsigned char *)(a) = (v)) +#define writew(v,a) (*(volatile unsigned short *)(a) = (v)) +#define writel(v,a) (*(volatile unsigned int *)(a) = (v)) + +#endif + diff --git a/bsp/at91/at91sam9g45/platform/irq.h b/bsp/at91/at91sam9g45/platform/irq.h new file mode 100644 index 0000000000..76d4200d3b --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/irq.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#ifndef __IRQ_H__ +#define __IRQ_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * IRQ line status. + * + * Bits 0-7 are reserved + * + * IRQ types + */ +#define IRQ_TYPE_NONE 0x00000000 /* Default, unspecified type */ +#define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ +#define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ +#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) +#define IRQ_TYPE_LEVEL_HIGH 0x00000004 /* Level high type */ +#define IRQ_TYPE_LEVEL_LOW 0x00000008 /* Level low type */ +#define IRQ_TYPE_SENSE_MASK 0x0000000f /* Mask of the above */ +#define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/bsp/at91/at91sam9g45/platform/reset.c b/bsp/at91/at91sam9g45/platform/reset.c new file mode 100644 index 0000000000..33d6f97283 --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/reset.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety modified from mini2440 + */ + +#include +#include +#include "at91sam9g45.h" + +/** + * @addtogroup AT91SAM926X + */ +/*@{*/ + +void machine_reset(void) +{ + AT91C_BASE_RSTC->RSTC_RCR = AT91C_RSTC_KEY | AT91C_RSTC_PROCRST | AT91C_RSTC_PERRST; +} + +void machine_shutdown(void) +{ + AT91C_BASE_SHDWC->SHDWC_SHCR = AT91C_SHDWC_KEY | AT91C_SHDWC_SHDW; +} + +#ifdef RT_USING_FINSH + +#include + +#ifdef FINSH_USING_MSH +int cmd_reset(int argc, char** argv) +{ + rt_hw_cpu_reset(); + return 0; +} +MSH_CMD_EXPORT_ALIAS(cmd_reset, reset, restart the system); + +int cmd_shutdown(int argc, char** argv) +{ + rt_hw_cpu_shutdown(); + return 0; +} +MSH_CMD_EXPORT_ALIAS(cmd_shutdown, shutdown, shutdown the system); + +#endif +#endif + +/*@}*/ diff --git a/bsp/at91/at91sam9g45/platform/rt_low_level_init.c b/bsp/at91/at91sam9g45/platform/rt_low_level_init.c new file mode 100644 index 0000000000..b76b84fe5c --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/rt_low_level_init.c @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2015-04-14 ArdaFu first version + */ + +/* write register a=address, v=value */ +#define write_reg(a,v) (*(volatile unsigned int *)(a) = (v)) +/* Processor Reset */ +#define AT91C_RSTC_PROCRST (1 << 0) +#define AT91C_RSTC_PERRST (1 << 2) +#define AT91C_RSTC_KEY (0xa5 << 24) +#define AT91C_MATRIX_BASE (0XFFFFEE00) +/* Master Remap Control Register */ +#define AT91C_MATRIX_MRCR (AT91C_MATRIX_BASE + 0x100) +/* Remap Command for AHB Master 0 (ARM926EJ-S InSTRuction Master) */ +#define AT91C_MATRIX_RCB0 (1 << 0) +/* Remap Command for AHB Master 1 (ARM926EJ-S Data Master) */ +#define AT91C_MATRIX_RCB1 (1 << 1) + +#define AT91C_AIC_BASE (0XFFFFF000) +/* Interrupt DisaBLe Command Register */ +#define AT91C_AIC_IDCR (AT91C_AIC_BASE + 0x124) +/* Interrupt Clear Command Register */ +#define AT91C_AIC_ICCR (AT91C_AIC_BASE + 0x128) + +#define AT91C_WDT_BASE (0XFFFFFD40) +#define AT91C_WDT_CR (AT91C_WDT_BASE + 0x00) +#define AT91C_WDT_CR_KEY (0xA5000000) +#define AT91C_WDT_CR_WDRSTT (0x00000001) +#define AT91C_WDT_MR (AT91C_WDT_BASE + 0x04) +#define AT91C_WDT_MR_WDDIS (0x00008000) + +void rt_low_level_init(void) +{ + // Mask all IRQs by clearing all bits in the INTMRS + write_reg(AT91C_AIC_IDCR, 0xFFFFFFFF); + write_reg(AT91C_AIC_ICCR, 0xFFFFFFFF); + // Remap internal ram to 0x00000000 Address + write_reg(AT91C_MATRIX_MRCR, AT91C_MATRIX_RCB0 | AT91C_MATRIX_RCB1); + // Disable the watchdog + //write_reg(AT91C_WDT_CR, AT91C_WDT_CR_KEY|AT91C_WDT_CR_WDRSTT); + //write_reg(AT91C_WDT_MR, AT91C_WDT_MR_WDDIS); +} + diff --git a/bsp/at91/at91sam9g45/platform/rt_low_level_init.h b/bsp/at91/at91sam9g45/platform/rt_low_level_init.h new file mode 100644 index 0000000000..c79adf5284 --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/rt_low_level_init.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-06-04 ArdaFu first version + */ +#ifndef __RT_LOW_LEVEL_INIT_H__ +#define __RT_LOW_LEVEL_INIT_H__ + +/*-------- Stack size of CPU modes -------------------------------------------*/ +#define UND_STK_SIZE 512 +#define SVC_STK_SIZE 4096 +#define ABT_STK_SIZE 512 +#define IRQ_STK_SIZE 1024 +#define FIQ_STK_SIZE 1024 +#define SYS_STK_SIZE 512 +#define Heap_Size 512 +#endif diff --git a/bsp/at91/at91sam9g45/platform/system_clock.c b/bsp/at91/at91sam9g45/platform/system_clock.c new file mode 100644 index 0000000000..fc29064b49 --- /dev/null +++ b/bsp/at91/at91sam9g45/platform/system_clock.c @@ -0,0 +1,256 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-01-13 weety first version + */ + +#include +#include "at91sam9g45.h" + +static rt_list_t clocks; + +struct clk { + char name[32]; + rt_uint32_t rate_hz; + struct clk *parent; + rt_list_t node; +}; + +static struct clk clk32k = { + "clk32k", + AT91C_SLOW_CLOCK, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk main_clk = { + "main", + 0, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk plla = { + "plla", + 0, + &main_clk, + {RT_NULL, RT_NULL}, +}; + +static struct clk mck = { + "mck", + 0, + RT_NULL, + {RT_NULL, RT_NULL}, +}; + +static struct clk upllck = { + "upllck", + 480*1000*1000, + &main_clk, + {RT_NULL, RT_NULL}, +}; + +static struct clk *const standard_pmc_clocks[] = { + /* four primary clocks */ + &clk32k, + &main_clk, + &plla, + + /* MCK */ + &mck +}; + +/* clocks cannot be de-registered no refcounting necessary */ +struct clk *clk_get(const char *id) +{ + struct clk *clk; + rt_list_t *list; + + for (list = (&clocks)->next; list != &clocks; list = list->next) + { + clk = (struct clk *)rt_list_entry(list, struct clk, node); + if (rt_strcmp(id, clk->name) == 0) + return clk; + } + + return RT_NULL; +} + +rt_uint32_t clk_get_rate(struct clk *clk) +{ + rt_uint32_t rate; + + for (;;) { + rate = clk->rate_hz; + if (rate || !clk->parent) + break; + clk = clk->parent; + } + return rate; +} + +static void at91_upllck_init(rt_uint32_t main_clock) +{ + // EHCI USB use fixed 480MHz clock +} + +static struct clk *at91_css_to_clk(unsigned long css) +{ + switch (css) { + case AT91C_PMC_CSS_SLOW_CLK: + return &clk32k; + case AT91C_PMC_CSS_MAIN_CLK: + return &main_clk; + case AT91C_PMC_CSS_PLLA_CLK: + return &plla; + case AT91C_PMC_CSS_UPLL_CLK: + return &upllck; + } + + return RT_NULL; +} + +// TODO: how to auto-set register value by OSC and MCK +/* Settings at 400/133MHz */ +// In datasheet, ATMEL says 12MHz main crystal startup time less than 2ms, so we +// configure OSC startup timeout to 64*8/32768=15.6ms, should enough +#define BOARD_OSCOUNT (AT91C_CKGR_OSCOUNT & (64 << 8)) +// MAINCK => Divider(DIVA) => PLLA(MULA, OUTA) => /1/2 Divider(PLLADIV2) => PLLACK +// pls. refer to doc6438G figure 24-6 on pg294. ICPLLA in reg PMC_PLLICPR +// 12MHz / 3 * (199 + 1) = 800MHz +// OUTA/ICPLLA can as ICPLLA:OUTA[1]:OUTA[0] = (800-PLLAOUT(MHz))/50 +// PLLACOUNT field occupy bit[13:8], max value is 0x3F, then about 19.2ms +#define BOARD_CKGR_PLLA (AT91C_CKGR_SRCA | AT91C_CKGR_OUTA_0) +#define BOARD_PLLACOUNT (0x3F << 8) +#define BOARD_MULA (AT91C_CKGR_MULA & (199 << 16)) +#define BOARD_DIVA (AT91C_CKGR_DIVA & 3) +// Clock Source => select(CCS) => Prescaler(PRES) => Master Clock Divider(MDIV) => MCK +// => Processor Clock Divider => PCK +// Master clock can refer to doc6438G figure 25-2 on pg298 +// PLLADIV2=1(div 2, 400MHz), PRES=0(no div, 400MHz), +// MDIV=3(Master Clock divided by 3, 133MHz), CSS=0(still Slow Clock) +#define BOARD_PRESCALER (0x00001300) //400/133MHz + +#define MHz(n) ((n) * 1000 * 1000) +#define OSC_FREQ MHz(12) +#define PLLA_FREQ MHz(800) + +static void at91_plla_init(void) +{ + rt_uint32_t pllar, mckr; + + // Code refer to doc6438G, 25.10 Programming Sequence + /* Initialize main oscillator + ****************************/ + // enable main OSC and wait OSC startup time timeout. + AT91C_BASE_PMC->PMC_MOR = BOARD_OSCOUNT | AT91C_CKGR_MOSCEN; + while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MOSCS)); + + /* Initialize PLLA, Set PLL to 800MHz and wait PLL stable */ + pllar = (MHz(800) - PLLA_FREQ) / MHz(50); // please refer to Table 46-15 of doc 6438G + AT91C_BASE_PMC->PMC_PLLICPR = (pllar >> 2) & 1; // ICPLLA + pllar = (pllar & 3) << 14; // OUTA + pllar |= BOARD_DIVA; // PLLA input clock as 4MHz + pllar |= BOARD_MULA; // PLLA output clock as 800MHz + pllar |= BOARD_PLLACOUNT; + pllar |= AT91C_CKGR_SRCA; // I don't known what means, but seems must set it + AT91C_BASE_PMC->PMC_PLLAR = pllar; + + while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_LOCKA)); + + /* Wait for the master clock if it was already initialized */ + // make sure Master clock in READY status before operate it + while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MCKRDY)); + + /* Switch to fast clock + **********************/ + /* setup main clock divisor and prescaler, 400MHz/133MHz, but don't switch */ + mckr = AT91C_BASE_PMC->PMC_MCKR; + if ((mckr & AT91C_PMC_MDIV) != (BOARD_PRESCALER & AT91C_PMC_MDIV)) + { + mckr = (mckr & ~(unsigned int)AT91C_PMC_MDIV) | (BOARD_PRESCALER & AT91C_PMC_MDIV); + AT91C_BASE_PMC->PMC_MCKR = mckr; + while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MCKRDY)); + } + + /* Switch to PLL + prescaler, now Switch to PLLA as source, run on the fly */ + if ((mckr & AT91C_PMC_CSS) != AT91C_PMC_CSS_PLLA_CLK) + { + mckr = (mckr & ~(unsigned int)AT91C_PMC_CSS) | AT91C_PMC_CSS_PLLA_CLK; + AT91C_BASE_PMC->PMC_MCKR = mckr; + while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MCKRDY)); + } + + plla.rate_hz = PLLA_FREQ; +} + +#define false 0 +#define true 1 +int at91_clock_init(rt_uint32_t main_clock) +{ + unsigned tmp, freq, mckr, mdiv; + int i; + + /* + * When the bootloader initialized the main oscillator correctly, + * there's no problem using the cycle counter. But if it didn't, + * or when using oscillator bypass mode, we must be told the speed + * of the main clock. + */ + if (!main_clock) { + do { + tmp = readl(AT91C_CKGR_MCFR); + } while (!(tmp & AT91C_CKGR_MAINRDY)); + main_clock = (tmp & AT91C_CKGR_MAINF) * (AT91C_SLOW_CLOCK / 16); + } + main_clk.rate_hz = main_clock; + + at91_plla_init(); + + at91_upllck_init(main_clock); + + /* + * MCK and CPU derive from one of those primary clocks. + * For now, assume this parentage won't change. + */ + mckr = readl(AT91C_PMC_MCKR); + mck.parent = at91_css_to_clk(mckr & AT91C_PMC_CSS); + freq = mck.parent->rate_hz; + freq /= (1 << ((mckr & AT91C_PMC_PRES) >> 2)); /* prescale */ + mdiv = 1 << ((mckr & AT91C_PMC_MDIV) >> 8); + if (mdiv == 8) mdiv = 3; + freq /= mdiv; /* mdiv */ + if (mckr & AT91C_PMC_PLLADIV2) freq /= 2; /* plla_div2 */ + mck.rate_hz = freq; + + /* Register the PMC's standard clocks */ + rt_list_init(&clocks); + for (i = 0; i < ARRAY_SIZE(standard_pmc_clocks); i++) + rt_list_insert_after(&clocks, &standard_pmc_clocks[i]->node); + + rt_list_insert_after(&clocks, &upllck.node); + + /* MCK and CPU clock are "always on" */ + //clk_enable(&mck); + + /*rt_kprintf("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", + freq / 1000000, (unsigned) mck.rate_hz / 1000000, + (unsigned) main_clock / 1000000, + ((unsigned) main_clock % 1000000) / 1000);*///cause blocked + + return 0; +} + +/** + * @brief System Clock Configuration + */ +void rt_hw_clock_init(void) +{ + at91_clock_init(MHz(12)); +} + diff --git a/bsp/at91/at91sam9g45/project.uvopt b/bsp/at91/at91sam9g45/project.uvopt new file mode 100644 index 0000000000..2dca5102b8 --- /dev/null +++ b/bsp/at91/at91sam9g45/project.uvopt @@ -0,0 +1,174 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + + + + 0 + 0 + + + + rtthread + 0x4 + ARM-ADS + + 18432000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\Listings\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 16 + + + 0 + Datasheet + DATASHTS\ATMEL\AT91SAM9260_DS.PDF + + + 1 + Summary + DATASHTS\ATMEL\AT91SAM9260_DC.PDF + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 5 + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + 0 + JLTAgdi + -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 + + + 0 + UL2ARM + -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + + + + + 0 + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + +
diff --git a/bsp/at91/at91sam9g45/project.uvproj b/bsp/at91/at91sam9g45/project.uvproj new file mode 100644 index 0000000000..4b927e7dfd --- /dev/null +++ b/bsp/at91/at91sam9g45/project.uvproj @@ -0,0 +1,914 @@ + + + 1.1 +
### uVision Project, (C) Keil Software
+ + + rtthread + 0x4 + ARM-ADS + + + AT91SAM9260 + Atmel + IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) + + "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") + UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + 4210 + AT91SAM9260.H + + + + + + + + + + + 0 + 0 + + + + Atmel\SAM9260\ + Atmel\SAM9260\ + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + rtthread + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARM.DLL + -cAT91SAM9260 + DARMATS9.DLL + -p91SAM9260 + SARM.DLL + + TARMATS9.DLL + -p91SAM9260 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + + 0 + 5 + + + + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + + 1 + 0 + 0 + 0 + 1 + 4096 + + 1 + BIN\UL2ARM.DLL + "" () + .\jlink\at91sam9260.ini + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + ARM926EJ-S + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 1 + 0x100000 + 0x8000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x20000000 + 0x800000 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x100000 + 0x8000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x20800000 + 0x1800000 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 0 + 0x300000 + 0x1000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 0 + 0 + + + __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND + + applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\components\cplusplus;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;platform;..\..\components\libc\posix\delay;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\components\libc\posix\pthreads;..\..\examples\utest\testcases\kernel + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + .\platform + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x20000000 + 0x20800000 + + .\link_scripts\at91sam9g45_ram.scat + + + + + + + + + + + Applications + + + application.c + 1 + applications\application.c + + + + + Compiler + + + syscalls.c + 1 + ..\..\components\libc\compilers\armlibc\syscalls.c + + + + + syscall_mem.c + 1 + ..\..\components\libc\compilers\armlibc\syscall_mem.c + + + + + stdlib.c + 1 + ..\..\components\libc\compilers\common\stdlib.c + + + + + time.c + 1 + ..\..\components\libc\compilers\common\time.c + + + + + CPlusPlus + + + cxx_Mutex.cpp + 8 + ..\..\components\cplusplus\cxx_Mutex.cpp + + + + + cxx_crt.cpp + 8 + ..\..\components\cplusplus\cxx_crt.cpp + + + + + cxx_Thread.cpp + 8 + ..\..\components\cplusplus\cxx_Thread.cpp + + + + + cxx_crt_init.c + 1 + ..\..\components\cplusplus\cxx_crt_init.c + + + + + cxx_Semaphore.cpp + 8 + ..\..\components\cplusplus\cxx_Semaphore.cpp + + + + + CPU + + + showmem.c + 1 + ..\..\libcpu\arm\common\showmem.c + + + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + + + + mmu.c + 1 + ..\..\libcpu\arm\arm926\mmu.c + + + + + cpuport.c + 1 + ..\..\libcpu\arm\arm926\cpuport.c + + + + + start_rvds.S + 2 + ..\..\libcpu\arm\arm926\start_rvds.S + + + + + machine.c + 1 + ..\..\libcpu\arm\arm926\machine.c + + + + + context_rvds.S + 2 + ..\..\libcpu\arm\arm926\context_rvds.S + + + + + stack.c + 1 + ..\..\libcpu\arm\arm926\stack.c + + + + + trap.c + 1 + ..\..\libcpu\arm\arm926\trap.c + + + + + DeviceDrivers + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + pin.c + 1 + ..\..\components\drivers\misc\pin.c + + + + + serial.c + 1 + ..\..\components\drivers\serial\serial.c + + + + + Drivers + + + usart.c + 1 + drivers\usart.c + + + + + board.c + 1 + drivers\board.c + + + + + led.c + 1 + drivers\led.c + + + + + Filesystem + + + dfs_posix.c + 1 + ..\..\components\dfs\src\dfs_posix.c + + + + + dfs_fs.c + 1 + ..\..\components\dfs\src\dfs_fs.c + + + + + dfs.c + 1 + ..\..\components\dfs\src\dfs.c + + + + + dfs_file.c + 1 + ..\..\components\dfs\src\dfs_file.c + + + + + devfs.c + 1 + ..\..\components\dfs\filesystems\devfs\devfs.c + + + + + Finsh + + + shell.c + 1 + ..\..\components\finsh\shell.c + + + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + + + msh_file.c + 1 + ..\..\components\finsh\msh_file.c + + + + + cmd.c + 1 + ..\..\components\finsh\cmd.c + + + + + Kernel + + + clock.c + 1 + ..\..\src\clock.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + mem.c + 1 + ..\..\src\mem.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + device.c + 1 + ..\..\src\device.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + Platform + + + reset.c + 1 + platform\reset.c + + + + + interrupt.c + 1 + platform\interrupt.c + + + + + system_clock.c + 1 + platform\system_clock.c + + + + + rt_low_level_init.c + 1 + platform\rt_low_level_init.c + + + + + POSIX + + + delay.c + 1 + ..\..\components\libc\posix\delay\delay.c + + + + + pthread_attr.c + 1 + ..\..\components\libc\posix\pthreads\pthread_attr.c + + + + + pthread_rwlock.c + 1 + ..\..\components\libc\posix\pthreads\pthread_rwlock.c + + + + + pthread_tls.c + 1 + ..\..\components\libc\posix\pthreads\pthread_tls.c + + + + + pthread_barrier.c + 1 + ..\..\components\libc\posix\pthreads\pthread_barrier.c + + + + + pthread_mutex.c + 1 + ..\..\components\libc\posix\pthreads\pthread_mutex.c + + + + + pthread_cond.c + 1 + ..\..\components\libc\posix\pthreads\pthread_cond.c + + + + + pthread.c + 1 + ..\..\components\libc\posix\pthreads\pthread.c + + + + + sched.c + 1 + ..\..\components\libc\posix\pthreads\sched.c + + + + + pthread_spin.c + 1 + ..\..\components\libc\posix\pthreads\pthread_spin.c + + + + + + +
diff --git a/bsp/at91/at91sam9g45/rtconfig.h b/bsp/at91/at91sam9g45/rtconfig.h new file mode 100644 index 0000000000..016f95229b --- /dev/null +++ b/bsp/at91/at91sam9g45/rtconfig.h @@ -0,0 +1,215 @@ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ + +/* RT-Thread Kernel */ + +#define RT_NAME_MAX 16 +#define RT_ALIGN_SIZE 4 +#define RT_THREAD_PRIORITY_32 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 1000 +#define RT_USING_OVERFLOW_CHECK +#define RT_USING_HOOK +#define RT_HOOK_USING_FUNC_PTR +#define RT_USING_IDLE_HOOK +#define RT_IDLE_HOOK_LIST_SIZE 4 +#define IDLE_THREAD_STACK_SIZE 256 +#define RT_USING_TIMER_SOFT +#define RT_TIMER_THREAD_PRIO 4 +#define RT_TIMER_THREAD_STACK_SIZE 512 + +/* kservice optimization */ + +#define RT_DEBUG +#define RT_DEBUG_COLOR + +/* Inter-Thread communication */ + +#define RT_USING_SEMAPHORE +#define RT_USING_MUTEX +#define RT_USING_EVENT +#define RT_USING_MAILBOX +#define RT_USING_MESSAGEQUEUE + +/* Memory Management */ + +#define RT_USING_MEMPOOL +#define RT_USING_SMALL_MEM +#define RT_USING_SMALL_MEM_AS_HEAP +#define RT_USING_HEAP + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_INTERRUPT_INFO +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLE_DEVICE_NAME "dbgu" +#define RT_VER_NUM 0x40100 +#define ARCH_ARM +#define ARCH_ARM_ARM9 + +/* RT-Thread Components */ + +#define RT_USING_COMPONENTS_INIT +#define RT_USING_USER_MAIN +#define RT_MAIN_THREAD_STACK_SIZE 2048 +#define RT_MAIN_THREAD_PRIORITY 10 + +/* C++ features */ + +#define RT_USING_CPLUSPLUS + +/* Command shell */ + +#define RT_USING_FINSH +#define RT_USING_MSH +#define FINSH_USING_MSH +#define FINSH_THREAD_NAME "tshell" +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 4096 +#define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 +#define FINSH_USING_SYMTAB +#define FINSH_CMD_SIZE 80 +#define MSH_USING_BUILT_IN_COMMANDS +#define FINSH_USING_DESCRIPTION +#define FINSH_ARG_MAX 10 + +/* Device virtual file system */ + +#define RT_USING_DFS +#define DFS_USING_POSIX +#define DFS_USING_WORKDIR +#define DFS_FILESYSTEMS_MAX 2 +#define DFS_FILESYSTEM_TYPES_MAX 2 +#define DFS_FD_MAX 16 +#define RT_USING_DFS_DEVFS + +/* Device Drivers */ + +#define RT_USING_DEVICE_IPC +#define RT_USING_SERIAL +#define RT_USING_SERIAL_V1 +#define RT_SERIAL_USING_DMA +#define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_PIN + +/* Using USB */ + + +/* POSIX layer and C standard library */ + +#define RT_LIBC_DEFAULT_TIMEZONE 8 + +/* POSIX (Portable Operating System Interface) layer */ + +#define RT_USING_POSIX_DELAY +#define RT_USING_POSIX_CLOCK +#define RT_USING_PTHREADS +#define PTHREAD_NUM_MAX 8 + +/* Interprocess Communication (IPC) */ + + +/* Socket is in the 'Network' category */ + +/* Network */ + +/* Socket abstraction layer */ + + +/* Network interface device */ + + +/* light weight TCP/IP stack */ + + +/* AT commands */ + + +/* VBUS(Virtual Software BUS) */ + + +/* Utilities */ + + +/* RT-Thread Utestcases */ + + +/* RT-Thread online packages */ + +/* IoT - internet of things */ + + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + + +/* IoT Cloud */ + + +/* security packages */ + + +/* language packages */ + + +/* multimedia packages */ + +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + + +/* tools packages */ + + +/* system packages */ + +/* enhanced kernel services */ + + +/* POSIX extension functions */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + + +/* peripheral libraries and drivers */ + + +/* AI packages */ + + +/* miscellaneous packages */ + +/* samples: kernel and components samples */ + + +/* entertainment: terminal games and other interesting software packages */ + +#define SOC_AT91SAM9G45 + +/* Hardware Drivers Config */ + +#define RT_USING_LED + +#endif diff --git a/bsp/at91/at91sam9g45/rtconfig.py b/bsp/at91/at91sam9g45/rtconfig.py new file mode 100644 index 0000000000..bd29b56f4f --- /dev/null +++ b/bsp/at91/at91sam9g45/rtconfig.py @@ -0,0 +1,138 @@ +import os +ARCH = 'arm' +CPU = 'arm926' +# toolchains options +CROSS_TOOL = 'gcc' + +#------- toolchains path ------------------------------------------------------- +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = '/usr/bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = 'C:/Keil_v5' +elif CROSS_TOOL == 'iar': + PLATFORM = 'iar' + EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2' + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +#BUILD = 'debug' +BUILD = 'release' + +CORE = 'arm926ej-s' +MAP_FILE = 'rtthread_at91sam9g45.map' +LINK_FILE = 'link_scripts/at91sam9g45_ram' +TARGET_NAME = 'rtthread.bin' + +#------- GCC settings ---------------------------------------------------------- +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + CXX = PREFIX + 'g++' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=arm926ej-s' + CFLAGS = DEVICE + AFLAGS = '-c'+ DEVICE + ' -x assembler-with-cpp' + AFLAGS += ' -Iplatform' + LFLAGS = DEVICE + LFLAGS += ' -Wl,--gc-sections,-cref,-Map=' + MAP_FILE + LFLAGS += ' -T ' + LINK_FILE + '.ld' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + POST_ACTION = OBJCPY + ' -O binary $TARGET ' + TARGET_NAME + '\n' + POST_ACTION += SIZE + ' $TARGET\n' +#------- Keil settings --------------------------------------------------------- +elif PLATFORM == 'armcc': + # toolchains + CC = 'armcc' + AS = 'armasm' + AR = 'armar' + LINK = 'armlink' + TARGET_EXT = 'axf' + EXEC_PATH += '/arm/armcc/bin/' + + DEVICE = ' --cpu=' + CORE + CFLAGS = DEVICE + ' --apcs=interwork --diag_suppress=870' + AFLAGS = DEVICE + ' -Iplatform' + LFLAGS = DEVICE + ' --strict' + LFLAGS += ' --info sizes --info totals --info unused --info veneers' + LFLAGS += ' --list ' + MAP_FILE + LFLAGS += ' --scatter ' + LINK_FILE + '.scat' + + if BUILD == 'debug': + CFLAGS += ' -g -O0' + AFLAGS += ' -g' + else: + CFLAGS += ' -O2' + + POST_ACTION = 'fromelf --bin $TARGET --output ' + TARGET_NAME + ' \n' + POST_ACTION += 'fromelf -z $TARGET\n' +#------- IAR settings ---------------------------------------------------------- +elif PLATFORM == 'iar': + # toolchains + CC = 'iccarm' + AS = 'iasmarm' + AR = 'iarchive' + LINK = 'ilinkarm' + TARGET_EXT = 'out' + + DEVICE = CORE + + CFLAGS = '--cpu=' + DEVICE + CFLAGS += ' --diag_suppress Pa050' + CFLAGS += ' --no_cse' + CFLAGS += ' --no_unroll' + CFLAGS += ' --no_inline' + CFLAGS += ' --no_code_motion' + CFLAGS += ' --no_tbaa' + CFLAGS += ' --no_clustering' + CFLAGS += ' --no_scheduling' + + CFLAGS += ' --endian=little' + CFLAGS += ' -e' + CFLAGS += ' --fpu=none' + CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' + CFLAGS += ' --silent' + + AFLAGS = '--cpu '+ DEVICE + AFLAGS += ' -s+' + AFLAGS += ' -w+' + AFLAGS += ' -r' + AFLAGS += ' --fpu none' + AFLAGS += ' -S' + AFLAGS += ' -Iplatform' + + if BUILD == 'debug': + CFLAGS += ' --debug' + CFLAGS += ' -On' + else: + CFLAGS += ' -Oh' + + LFLAGS = '--config ' + LINK_FILE +'.icf' + LFLAGS += ' --entry __iar_program_start' + LFLAGS += ' --map ' + MAP_FILE + LFLAGS += ' --silent' + + EXEC_PATH = EXEC_PATH + '/arm/bin/' + POST_ACTION = 'ielftool --silent --bin $TARGET ' + TARGET_NAME diff --git a/bsp/at91/at91sam9g45/template.ewp b/bsp/at91/at91sam9g45/template.ewp new file mode 100644 index 0000000000..5f2fa0e0a9 --- /dev/null +++ b/bsp/at91/at91sam9g45/template.ewp @@ -0,0 +1,1914 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 24 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 31 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 9 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + 0 + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 16 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 24 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 31 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 9 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + 0 + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 16 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + + diff --git a/bsp/at91/at91sam9g45/template.eww b/bsp/at91/at91sam9g45/template.eww new file mode 100644 index 0000000000..bd036bb4c9 --- /dev/null +++ b/bsp/at91/at91sam9g45/template.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\template.ewp + + + + + diff --git a/bsp/at91/at91sam9g45/template.uvopt b/bsp/at91/at91sam9g45/template.uvopt new file mode 100644 index 0000000000..2dca5102b8 --- /dev/null +++ b/bsp/at91/at91sam9g45/template.uvopt @@ -0,0 +1,174 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + + + + 0 + 0 + + + + rtthread + 0x4 + ARM-ADS + + 18432000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\Listings\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 16 + + + 0 + Datasheet + DATASHTS\ATMEL\AT91SAM9260_DS.PDF + + + 1 + Summary + DATASHTS\ATMEL\AT91SAM9260_DC.PDF + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 5 + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + 0 + JLTAgdi + -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 + + + 0 + UL2ARM + -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + + + + + 0 + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + +
diff --git a/bsp/at91/at91sam9g45/template.uvproj b/bsp/at91/at91sam9g45/template.uvproj new file mode 100644 index 0000000000..ea6226f101 --- /dev/null +++ b/bsp/at91/at91sam9g45/template.uvproj @@ -0,0 +1,407 @@ + + + + 1.1 + +
### uVision Project, (C) Keil Software
+ + + + rtthread + 0x4 + ARM-ADS + + + AT91SAM9260 + Atmel + IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) + + "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") + UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) + 4210 + AT91SAM9260.H + + + + + + + + + + + 0 + 0 + + + + Atmel\SAM9260\ + Atmel\SAM9260\ + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + rtthread + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARM.DLL + -cAT91SAM9260 + DARMATS9.DLL + -p91SAM9260 + SARM.DLL + + TARMATS9.DLL + -p91SAM9260 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 1 + + 0 + 5 + + + + + + + + + + + + + .\jlink\at91sam9260.ini + Segger\JLTAgdi.dll + + + + + 1 + 0 + 0 + 0 + 1 + 4096 + + 1 + BIN\UL2ARM.DLL + "" () + .\jlink\at91sam9260.ini + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + ARM926EJ-S + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 1 + 0x100000 + 0x8000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x20000000 + 0x800000 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x100000 + 0x8000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x20800000 + 0x1800000 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x200000 + 0x1000 + + + 0 + 0x300000 + 0x1000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 0 + 0 + + + RT_USING_INTERRUPT_INFO + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + .\platform + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x20000000 + 0x20800000 + + .\link_scripts\at91sam9g45_ram.scat + + + + + + + + + + + +
diff --git a/bsp/at91sam9260/.config b/bsp/at91sam9260/.config deleted file mode 100644 index 282fd47a0e..0000000000 --- a/bsp/at91sam9260/.config +++ /dev/null @@ -1,665 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# RT-Thread Configuration -# - -# -# RT-Thread Kernel -# -CONFIG_RT_NAME_MAX=8 -# CONFIG_RT_USING_ARCH_DATA_TYPE is not set -# CONFIG_RT_USING_SMP is not set -CONFIG_RT_ALIGN_SIZE=4 -# CONFIG_RT_THREAD_PRIORITY_8 is not set -CONFIG_RT_THREAD_PRIORITY_32=y -# CONFIG_RT_THREAD_PRIORITY_256 is not set -CONFIG_RT_THREAD_PRIORITY_MAX=32 -CONFIG_RT_TICK_PER_SECOND=100 -CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_USING_HOOK=y -CONFIG_RT_HOOK_USING_FUNC_PTR=y -CONFIG_RT_USING_IDLE_HOOK=y -CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 -CONFIG_IDLE_THREAD_STACK_SIZE=256 -# CONFIG_RT_USING_TIMER_SOFT is not set - -# -# kservice optimization -# -# CONFIG_RT_KSERVICE_USING_STDLIB is not set -# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set -# CONFIG_RT_USING_TINY_FFS is not set -# CONFIG_RT_PRINTF_LONGLONG is not set -CONFIG_RT_DEBUG=y -CONFIG_RT_DEBUG_COLOR=y -# CONFIG_RT_DEBUG_INIT_CONFIG is not set -# CONFIG_RT_DEBUG_THREAD_CONFIG is not set -# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set -# CONFIG_RT_DEBUG_IPC_CONFIG is not set -# CONFIG_RT_DEBUG_TIMER_CONFIG is not set -# CONFIG_RT_DEBUG_IRQ_CONFIG is not set -# CONFIG_RT_DEBUG_MEM_CONFIG is not set -# CONFIG_RT_DEBUG_SLAB_CONFIG is not set -# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set -# CONFIG_RT_DEBUG_MODULE_CONFIG is not set - -# -# Inter-Thread communication -# -CONFIG_RT_USING_SEMAPHORE=y -CONFIG_RT_USING_MUTEX=y -CONFIG_RT_USING_EVENT=y -CONFIG_RT_USING_MAILBOX=y -CONFIG_RT_USING_MESSAGEQUEUE=y -# CONFIG_RT_USING_SIGNALS is not set - -# -# Memory Management -# -CONFIG_RT_USING_MEMPOOL=y -CONFIG_RT_USING_SMALL_MEM=y -# CONFIG_RT_USING_SLAB is not set -# CONFIG_RT_USING_MEMHEAP is not set -CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y -# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set -# CONFIG_RT_USING_SLAB_AS_HEAP is not set -# CONFIG_RT_USING_USERHEAP is not set -# CONFIG_RT_USING_NOHEAP is not set -# CONFIG_RT_USING_MEMTRACE is not set -# CONFIG_RT_USING_HEAP_ISR is not set -CONFIG_RT_USING_HEAP=y - -# -# Kernel Device Object -# -CONFIG_RT_USING_DEVICE=y -# CONFIG_RT_USING_DEVICE_OPS is not set -CONFIG_RT_USING_INTERRUPT_INFO=y -CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=128 -CONFIG_RT_CONSOLE_DEVICE_NAME="dbgu" -CONFIG_RT_VER_NUM=0x40100 -# CONFIG_RT_USING_CPU_FFS is not set -# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set - -# -# RT-Thread Components -# -CONFIG_RT_USING_COMPONENTS_INIT=y -CONFIG_RT_USING_USER_MAIN=y -CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 -CONFIG_RT_MAIN_THREAD_PRIORITY=10 -# CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -# CONFIG_RT_USING_CPLUSPLUS is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y -CONFIG_RT_USING_MSH=y -CONFIG_FINSH_USING_MSH=y -CONFIG_FINSH_THREAD_NAME="tshell" -CONFIG_FINSH_THREAD_PRIORITY=20 -CONFIG_FINSH_THREAD_STACK_SIZE=4096 -CONFIG_FINSH_USING_HISTORY=y -CONFIG_FINSH_HISTORY_LINES=5 -CONFIG_FINSH_USING_SYMTAB=y -CONFIG_FINSH_CMD_SIZE=80 -CONFIG_MSH_USING_BUILT_IN_COMMANDS=y -CONFIG_FINSH_USING_DESCRIPTION=y -# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set -# CONFIG_FINSH_USING_AUTH is not set -CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# -CONFIG_RT_USING_DFS=y -CONFIG_DFS_USING_POSIX=y -CONFIG_DFS_USING_WORKDIR=y -CONFIG_DFS_FILESYSTEMS_MAX=2 -CONFIG_DFS_FILESYSTEM_TYPES_MAX=2 -CONFIG_DFS_FD_MAX=16 -# CONFIG_RT_USING_DFS_MNTTABLE is not set -# CONFIG_RT_USING_DFS_ELMFAT is not set -CONFIG_RT_USING_DFS_DEVFS=y -# CONFIG_RT_USING_DFS_ROMFS is not set -# CONFIG_RT_USING_DFS_RAMFS is not set - -# -# Device Drivers -# -CONFIG_RT_USING_DEVICE_IPC=y -# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set -CONFIG_RT_USING_SERIAL=y -CONFIG_RT_USING_SERIAL_V1=y -# CONFIG_RT_USING_SERIAL_V2 is not set -CONFIG_RT_SERIAL_USING_DMA=y -CONFIG_RT_SERIAL_RB_BUFSZ=64 -# CONFIG_RT_USING_CAN is not set -# CONFIG_RT_USING_HWTIMER is not set -# CONFIG_RT_USING_CPUTIME is not set -# CONFIG_RT_USING_I2C is not set -# CONFIG_RT_USING_PHY is not set -CONFIG_RT_USING_PIN=y -# CONFIG_RT_USING_ADC is not set -# CONFIG_RT_USING_DAC is not set -# CONFIG_RT_USING_PWM is not set -# CONFIG_RT_USING_MTD_NOR is not set -# CONFIG_RT_USING_MTD_NAND is not set -# CONFIG_RT_USING_PM is not set -# CONFIG_RT_USING_RTC is not set -# CONFIG_RT_USING_SDIO is not set -# CONFIG_RT_USING_SPI is not set -# CONFIG_RT_USING_WDT is not set -# CONFIG_RT_USING_AUDIO is not set -# CONFIG_RT_USING_SENSOR is not set -# CONFIG_RT_USING_TOUCH is not set -# CONFIG_RT_USING_HWCRYPTO is not set -# CONFIG_RT_USING_PULSE_ENCODER is not set -# CONFIG_RT_USING_INPUT_CAPTURE is not set -# CONFIG_RT_USING_WIFI is not set - -# -# Using USB -# -# CONFIG_RT_USING_USB is not set -# CONFIG_RT_USING_USB_HOST is not set -# CONFIG_RT_USING_USB_DEVICE is not set - -# -# POSIX layer and C standard library -# -CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 - -# -# POSIX (Portable Operating System Interface) layer -# -# CONFIG_RT_USING_POSIX_FS is not set -# CONFIG_RT_USING_POSIX_DELAY is not set -# CONFIG_RT_USING_POSIX_CLOCK is not set -# CONFIG_RT_USING_POSIX_TIMER is not set -# CONFIG_RT_USING_PTHREADS is not set -# CONFIG_RT_USING_MODULE is not set - -# -# Interprocess Communication (IPC) -# -# CONFIG_RT_USING_POSIX_PIPE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set - -# -# Socket is in the 'Network' category -# - -# -# Network -# - -# -# Socket abstraction layer -# -# CONFIG_RT_USING_SAL is not set - -# -# Network interface device -# -# CONFIG_RT_USING_NETDEV is not set - -# -# light weight TCP/IP stack -# -# CONFIG_RT_USING_LWIP is not set - -# -# AT commands -# -# CONFIG_RT_USING_AT is not set - -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set - -# -# Utilities -# -# CONFIG_RT_USING_RYM is not set -# CONFIG_RT_USING_ULOG is not set -# CONFIG_RT_USING_UTEST is not set -# CONFIG_RT_USING_VAR_EXPORT is not set -# CONFIG_RT_USING_RT_LINK is not set - -# -# RT-Thread Utestcases -# -# CONFIG_RT_USING_UTESTCASES is not set - -# -# RT-Thread online packages -# - -# -# IoT - internet of things -# -# CONFIG_PKG_USING_LORAWAN_DRIVER is not set -# CONFIG_PKG_USING_PAHOMQTT is not set -# CONFIG_PKG_USING_UMQTT is not set -# CONFIG_PKG_USING_WEBCLIENT is not set -# CONFIG_PKG_USING_WEBNET is not set -# CONFIG_PKG_USING_MONGOOSE is not set -# CONFIG_PKG_USING_MYMQTT is not set -# CONFIG_PKG_USING_KAWAII_MQTT is not set -# CONFIG_PKG_USING_BC28_MQTT is not set -# CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_CJSON is not set -# CONFIG_PKG_USING_JSMN is not set -# CONFIG_PKG_USING_LIBMODBUS is not set -# CONFIG_PKG_USING_FREEMODBUS is not set -# CONFIG_PKG_USING_LJSON is not set -# CONFIG_PKG_USING_EZXML is not set -# CONFIG_PKG_USING_NANOPB is not set - -# -# Wi-Fi -# - -# -# Marvell WiFi -# -# CONFIG_PKG_USING_WLANMARVELL is not set - -# -# Wiced WiFi -# -# CONFIG_PKG_USING_WLAN_WICED is not set -# CONFIG_PKG_USING_RW007 is not set -# CONFIG_PKG_USING_COAP is not set -# CONFIG_PKG_USING_NOPOLL is not set -# CONFIG_PKG_USING_NETUTILS is not set -# CONFIG_PKG_USING_CMUX is not set -# CONFIG_PKG_USING_PPP_DEVICE is not set -# CONFIG_PKG_USING_AT_DEVICE is not set -# CONFIG_PKG_USING_ATSRV_SOCKET is not set -# CONFIG_PKG_USING_WIZNET is not set -# CONFIG_PKG_USING_ZB_COORDINATOR is not set - -# -# IoT Cloud -# -# CONFIG_PKG_USING_ONENET is not set -# CONFIG_PKG_USING_GAGENT_CLOUD is not set -# CONFIG_PKG_USING_ALI_IOTKIT is not set -# CONFIG_PKG_USING_AZURE is not set -# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set -# CONFIG_PKG_USING_JIOT-C-SDK is not set -# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set -# CONFIG_PKG_USING_JOYLINK is not set -# CONFIG_PKG_USING_EZ_IOT_OS is not set -# CONFIG_PKG_USING_NIMBLE is not set -# CONFIG_PKG_USING_OTA_DOWNLOADER is not set -# CONFIG_PKG_USING_IPMSG is not set -# CONFIG_PKG_USING_LSSDP is not set -# CONFIG_PKG_USING_AIRKISS_OPEN is not set -# CONFIG_PKG_USING_LIBRWS is not set -# CONFIG_PKG_USING_TCPSERVER is not set -# CONFIG_PKG_USING_PROTOBUF_C is not set -# CONFIG_PKG_USING_DLT645 is not set -# CONFIG_PKG_USING_QXWZ is not set -# CONFIG_PKG_USING_SMTP_CLIENT is not set -# CONFIG_PKG_USING_ABUP_FOTA is not set -# CONFIG_PKG_USING_LIBCURL2RTT is not set -# CONFIG_PKG_USING_CAPNP is not set -# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set -# CONFIG_PKG_USING_AGILE_TELNET is not set -# CONFIG_PKG_USING_NMEALIB is not set -# CONFIG_PKG_USING_AGILE_JSMN is not set -# CONFIG_PKG_USING_PDULIB is not set -# CONFIG_PKG_USING_BTSTACK is not set -# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set -# CONFIG_PKG_USING_WAYZ_IOTKIT is not set -# CONFIG_PKG_USING_MAVLINK is not set -# CONFIG_PKG_USING_RAPIDJSON is not set -# CONFIG_PKG_USING_BSAL is not set -# CONFIG_PKG_USING_AGILE_MODBUS is not set -# CONFIG_PKG_USING_AGILE_FTP is not set -# CONFIG_PKG_USING_EMBEDDEDPROTO is not set -# CONFIG_PKG_USING_RT_LINK_HW is not set -# CONFIG_PKG_USING_LORA_PKT_FWD is not set -# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set -# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set -# CONFIG_PKG_USING_HM is not set -# CONFIG_PKG_USING_SMALL_MODBUS is not set -# CONFIG_PKG_USING_NET_SERVER is not set - -# -# security packages -# -# CONFIG_PKG_USING_MBEDTLS is not set -# CONFIG_PKG_USING_LIBSODIUM is not set -# CONFIG_PKG_USING_TINYCRYPT is not set -# CONFIG_PKG_USING_TFM is not set -# CONFIG_PKG_USING_YD_CRYPTO is not set - -# -# language packages -# -# CONFIG_PKG_USING_LUATOS_SOC is not set -# CONFIG_PKG_USING_LUA is not set -# CONFIG_PKG_USING_JERRYSCRIPT is not set -# CONFIG_PKG_USING_MICROPYTHON is not set -# CONFIG_PKG_USING_PIKASCRIPT is not set - -# -# multimedia packages -# - -# -# LVGL: powerful and easy-to-use embedded GUI library -# -# CONFIG_PKG_USING_LVGL is not set -# CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set - -# -# u8g2: a monochrome graphic library -# -# CONFIG_PKG_USING_U8G2_OFFICIAL is not set -# CONFIG_PKG_USING_U8G2 is not set -# CONFIG_PKG_USING_OPENMV is not set -# CONFIG_PKG_USING_MUPDF is not set -# CONFIG_PKG_USING_STEMWIN is not set -# CONFIG_PKG_USING_WAVPLAYER is not set -# CONFIG_PKG_USING_TJPGD is not set -# CONFIG_PKG_USING_PDFGEN is not set -# CONFIG_PKG_USING_HELIX is not set -# CONFIG_PKG_USING_AZUREGUIX is not set -# CONFIG_PKG_USING_TOUCHGFX2RTT is not set -# CONFIG_PKG_USING_NUEMWIN is not set -# CONFIG_PKG_USING_MP3PLAYER is not set -# CONFIG_PKG_USING_TINYJPEG is not set -# CONFIG_PKG_USING_UGUI is not set - -# -# PainterEngine: A cross-platform graphics application framework written in C language -# -# CONFIG_PKG_USING_PAINTERENGINE is not set -# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set -# CONFIG_PKG_USING_MCURSES is not set -# CONFIG_PKG_USING_TERMBOX is not set -# CONFIG_PKG_USING_VT100 is not set -# CONFIG_PKG_USING_QRCODE is not set - -# -# tools packages -# -# CONFIG_PKG_USING_CMBACKTRACE is not set -# CONFIG_PKG_USING_EASYFLASH is not set -# CONFIG_PKG_USING_EASYLOGGER is not set -# CONFIG_PKG_USING_SYSTEMVIEW is not set -# CONFIG_PKG_USING_SEGGER_RTT is not set -# CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_ULOG_EASYFLASH is not set -# CONFIG_PKG_USING_ULOG_FILE is not set -# CONFIG_PKG_USING_LOGMGR is not set -# CONFIG_PKG_USING_ADBD is not set -# CONFIG_PKG_USING_COREMARK is not set -# CONFIG_PKG_USING_DHRYSTONE is not set -# CONFIG_PKG_USING_MEMORYPERF is not set -# CONFIG_PKG_USING_NR_MICRO_SHELL is not set -# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set -# CONFIG_PKG_USING_LUNAR_CALENDAR is not set -# CONFIG_PKG_USING_BS8116A is not set -# CONFIG_PKG_USING_GPS_RMC is not set -# CONFIG_PKG_USING_URLENCODE is not set -# CONFIG_PKG_USING_UMCN is not set -# CONFIG_PKG_USING_LWRB2RTT is not set -# CONFIG_PKG_USING_CPU_USAGE is not set -# CONFIG_PKG_USING_GBK2UTF8 is not set -# CONFIG_PKG_USING_VCONSOLE is not set -# CONFIG_PKG_USING_KDB is not set -# CONFIG_PKG_USING_WAMR is not set -# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set -# CONFIG_PKG_USING_LWLOG is not set -# CONFIG_PKG_USING_ANV_TRACE is not set -# CONFIG_PKG_USING_ANV_MEMLEAK is not set -# CONFIG_PKG_USING_ANV_TESTSUIT is not set -# CONFIG_PKG_USING_ANV_BENCH is not set -# CONFIG_PKG_USING_DEVMEM is not set -# CONFIG_PKG_USING_REGEX is not set -# CONFIG_PKG_USING_MEM_SANDBOX is not set -# CONFIG_PKG_USING_SOLAR_TERMS is not set -# CONFIG_PKG_USING_GAN_ZHI is not set -# CONFIG_PKG_USING_FDT is not set - -# -# system packages -# - -# -# enhanced kernel services -# -# CONFIG_PKG_USING_RT_MEMCPY_CM is not set -# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set -# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set - -# -# POSIX extension functions -# -# CONFIG_PKG_USING_POSIX_GETLINE is not set -# CONFIG_PKG_USING_POSIX_WCWIDTH is not set -# CONFIG_PKG_USING_POSIX_ITOA is not set -# CONFIG_PKG_USING_POSIX_STRINGS is not set - -# -# acceleration: Assembly language or algorithmic acceleration packages -# -# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set -# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set -# CONFIG_PKG_USING_QFPLIB_M3 is not set - -# -# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard -# -# CONFIG_PKG_USING_CMSIS_5 is not set -# CONFIG_PKG_USING_CMSIS_RTOS2 is not set - -# -# Micrium: Micrium software products porting for RT-Thread -# -# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set -# CONFIG_PKG_USING_UCOSII_WRAPPER is not set -# CONFIG_PKG_USING_UC_CRC is not set -# CONFIG_PKG_USING_UC_CLK is not set -# CONFIG_PKG_USING_UC_COMMON is not set -# CONFIG_PKG_USING_UC_MODBUS is not set -# CONFIG_RT_USING_ARDUINO is not set -# CONFIG_PKG_USING_GUIENGINE is not set -# CONFIG_PKG_USING_CAIRO is not set -# CONFIG_PKG_USING_PIXMAN is not set -# CONFIG_PKG_USING_PARTITION is not set -# CONFIG_PKG_USING_FAL is not set -# CONFIG_PKG_USING_FLASHDB is not set -# CONFIG_PKG_USING_SQLITE is not set -# CONFIG_PKG_USING_RTI is not set -# CONFIG_PKG_USING_DFS_YAFFS is not set -# CONFIG_PKG_USING_LITTLEFS is not set -# CONFIG_PKG_USING_DFS_JFFS2 is not set -# CONFIG_PKG_USING_DFS_UFFS is not set -# CONFIG_PKG_USING_LWEXT4 is not set -# CONFIG_PKG_USING_THREAD_POOL is not set -# CONFIG_PKG_USING_ROBOTS is not set -# CONFIG_PKG_USING_EV is not set -# CONFIG_PKG_USING_SYSWATCH is not set -# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set -# CONFIG_PKG_USING_PLCCORE is not set -# CONFIG_PKG_USING_RAMDISK is not set -# CONFIG_PKG_USING_MININI is not set -# CONFIG_PKG_USING_QBOOT is not set -# CONFIG_PKG_USING_PPOOL is not set -# CONFIG_PKG_USING_OPENAMP is not set -# CONFIG_PKG_USING_LPM is not set -# CONFIG_PKG_USING_TLSF is not set -# CONFIG_PKG_USING_EVENT_RECORDER is not set -# CONFIG_PKG_USING_ARM_2D is not set -# CONFIG_PKG_USING_MCUBOOT is not set -# CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set - -# -# peripheral libraries and drivers -# -# CONFIG_PKG_USING_SENSORS_DRIVERS is not set -# CONFIG_PKG_USING_REALTEK_AMEBA is not set -# CONFIG_PKG_USING_SHT2X is not set -# CONFIG_PKG_USING_SHT3X is not set -# CONFIG_PKG_USING_AS7341 is not set -# CONFIG_PKG_USING_STM32_SDIO is not set -# CONFIG_PKG_USING_ICM20608 is not set -# CONFIG_PKG_USING_BUTTON is not set -# CONFIG_PKG_USING_PCF8574 is not set -# CONFIG_PKG_USING_SX12XX is not set -# CONFIG_PKG_USING_SIGNAL_LED is not set -# CONFIG_PKG_USING_LEDBLINK is not set -# CONFIG_PKG_USING_LITTLED is not set -# CONFIG_PKG_USING_LKDGUI is not set -# CONFIG_PKG_USING_NRF5X_SDK is not set -# CONFIG_PKG_USING_NRFX is not set -# CONFIG_PKG_USING_WM_LIBRARIES is not set -# CONFIG_PKG_USING_KENDRYTE_SDK is not set -# CONFIG_PKG_USING_INFRARED is not set -# CONFIG_PKG_USING_AGILE_BUTTON is not set -# CONFIG_PKG_USING_AGILE_LED is not set -# CONFIG_PKG_USING_AT24CXX is not set -# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set -# CONFIG_PKG_USING_AD7746 is not set -# CONFIG_PKG_USING_PCA9685 is not set -# CONFIG_PKG_USING_I2C_TOOLS is not set -# CONFIG_PKG_USING_NRF24L01 is not set -# CONFIG_PKG_USING_TOUCH_DRIVERS is not set -# CONFIG_PKG_USING_MAX17048 is not set -# CONFIG_PKG_USING_RPLIDAR is not set -# CONFIG_PKG_USING_AS608 is not set -# CONFIG_PKG_USING_RC522 is not set -# CONFIG_PKG_USING_WS2812B is not set -# CONFIG_PKG_USING_EMBARC_BSP is not set -# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set -# CONFIG_PKG_USING_MULTI_RTIMER is not set -# CONFIG_PKG_USING_MAX7219 is not set -# CONFIG_PKG_USING_BEEP is not set -# CONFIG_PKG_USING_EASYBLINK is not set -# CONFIG_PKG_USING_PMS_SERIES is not set -# CONFIG_PKG_USING_CAN_YMODEM is not set -# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set -# CONFIG_PKG_USING_QLED is not set -# CONFIG_PKG_USING_PAJ7620 is not set -# CONFIG_PKG_USING_AGILE_CONSOLE is not set -# CONFIG_PKG_USING_LD3320 is not set -# CONFIG_PKG_USING_WK2124 is not set -# CONFIG_PKG_USING_LY68L6400 is not set -# CONFIG_PKG_USING_DM9051 is not set -# CONFIG_PKG_USING_SSD1306 is not set -# CONFIG_PKG_USING_QKEY is not set -# CONFIG_PKG_USING_RS485 is not set -# CONFIG_PKG_USING_RS232 is not set -# CONFIG_PKG_USING_NES is not set -# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set -# CONFIG_PKG_USING_VDEVICE is not set -# CONFIG_PKG_USING_SGM706 is not set -# CONFIG_PKG_USING_STM32WB55_SDK is not set -# CONFIG_PKG_USING_RDA58XX is not set -# CONFIG_PKG_USING_LIBNFC is not set -# CONFIG_PKG_USING_MFOC is not set -# CONFIG_PKG_USING_TMC51XX is not set -# CONFIG_PKG_USING_TCA9534 is not set -# CONFIG_PKG_USING_KOBUKI is not set -# CONFIG_PKG_USING_ROSSERIAL is not set -# CONFIG_PKG_USING_MICRO_ROS is not set -# CONFIG_PKG_USING_MCP23008 is not set -# CONFIG_PKG_USING_BLUETRUM_SDK is not set -# CONFIG_PKG_USING_MISAKA_AT24CXX is not set -# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set -# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set -# CONFIG_PKG_USING_BL_MCU_SDK is not set -# CONFIG_PKG_USING_SOFT_SERIAL is not set -# CONFIG_PKG_USING_MB85RS16 is not set -# CONFIG_PKG_USING_CW2015 is not set - -# -# AI packages -# -# CONFIG_PKG_USING_LIBANN is not set -# CONFIG_PKG_USING_NNOM is not set -# CONFIG_PKG_USING_ONNX_BACKEND is not set -# CONFIG_PKG_USING_ONNX_PARSER is not set -# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set -# CONFIG_PKG_USING_ELAPACK is not set -# CONFIG_PKG_USING_ULAPACK is not set -# CONFIG_PKG_USING_QUEST is not set -# CONFIG_PKG_USING_NAXOS is not set - -# -# miscellaneous packages -# - -# -# samples: kernel and components samples -# -# CONFIG_PKG_USING_KERNEL_SAMPLES is not set -# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set -# CONFIG_PKG_USING_NETWORK_SAMPLES is not set -# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set - -# -# entertainment: terminal games and other interesting software packages -# -# CONFIG_PKG_USING_CMATRIX is not set -# CONFIG_PKG_USING_SL is not set -# CONFIG_PKG_USING_CAL is not set -# CONFIG_PKG_USING_ACLOCK is not set -# CONFIG_PKG_USING_THREES is not set -# CONFIG_PKG_USING_2048 is not set -# CONFIG_PKG_USING_SNAKE is not set -# CONFIG_PKG_USING_TETRIS is not set -# CONFIG_PKG_USING_DONUT is not set -# CONFIG_PKG_USING_COWSAY is not set -# CONFIG_PKG_USING_LIBCSV is not set -# CONFIG_PKG_USING_OPTPARSE is not set -# CONFIG_PKG_USING_FASTLZ is not set -# CONFIG_PKG_USING_MINILZO is not set -# CONFIG_PKG_USING_QUICKLZ is not set -# CONFIG_PKG_USING_LZMA is not set -# CONFIG_PKG_USING_MULTIBUTTON is not set -# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set -# CONFIG_PKG_USING_CANFESTIVAL is not set -# CONFIG_PKG_USING_ZLIB is not set -# CONFIG_PKG_USING_MINIZIP is not set -# CONFIG_PKG_USING_DSTR is not set -# CONFIG_PKG_USING_TINYFRAME is not set -# CONFIG_PKG_USING_KENDRYTE_DEMO is not set -# CONFIG_PKG_USING_DIGITALCTRL is not set -# CONFIG_PKG_USING_UPACKER is not set -# CONFIG_PKG_USING_UPARAM is not set -# CONFIG_PKG_USING_HELLO is not set -# CONFIG_PKG_USING_VI is not set -# CONFIG_PKG_USING_KI is not set -# CONFIG_PKG_USING_ARMv7M_DWT is not set -# CONFIG_PKG_USING_UKAL is not set -# CONFIG_PKG_USING_CRCLIB is not set -# CONFIG_PKG_USING_LWGPS is not set -# CONFIG_PKG_USING_STATE_MACHINE is not set -# CONFIG_PKG_USING_DESIGN_PATTERN is not set -# CONFIG_PKG_USING_CONTROLLER is not set -# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set -CONFIG_SOC_AT91SAM926=y -CONFIG_RT_USING_DBGU=y -# CONFIG_RT_USING_UART0 is not set -# CONFIG_RT_USING_UART1 is not set -# CONFIG_RT_USING_UART2 is not set -# CONFIG_RT_USING_UART3 is not set -CONFIG_RT_USING_LED=y diff --git a/bsp/at91sam9260/Kconfig b/bsp/at91sam9260/Kconfig deleted file mode 100644 index 23b4eea1d4..0000000000 --- a/bsp/at91sam9260/Kconfig +++ /dev/null @@ -1,52 +0,0 @@ -mainmenu "RT-Thread Configuration" - -config BSP_DIR - string - option env="BSP_ROOT" - default "." - -config RTT_DIR - string - option env="RTT_ROOT" - default "../.." - -config PKGS_DIR - string - option env="PKGS_ROOT" - default "packages" - -source "$RTT_DIR/Kconfig" -source "$PKGS_DIR/Kconfig" - -config SOC_AT91SAM926 - bool - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - default y - -config RT_USING_DBGU - bool "Using RT_USING_DBGU" - default y - -config RT_USING_UART0 - bool "Using RT_USING_UART0" - default n - -config RT_USING_UART1 - bool "Using RT_USING_UART1" - default n - -config RT_USING_UART2 - bool "Using RT_USING_UART2" - default n - -config RT_USING_UART3 - bool "Using RT_USING_UART3" - default n - -config RT_USING_LED - bool "Using RT_USING_LED" - default y - help - led blink demo - diff --git a/bsp/at91sam9260/SConscript b/bsp/at91sam9260/SConscript deleted file mode 100755 index fe0ae941ae..0000000000 --- a/bsp/at91sam9260/SConscript +++ /dev/null @@ -1,14 +0,0 @@ -# for module compiling -import os -Import('RTT_ROOT') - -cwd = str(Dir('#')) -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/at91sam9260/SConstruct b/bsp/at91sam9260/SConstruct deleted file mode 100755 index 32ad8d65fe..0000000000 --- a/bsp/at91sam9260/SConstruct +++ /dev/null @@ -1,39 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread-at91sam9260.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -if GetDepend('RT_USING_WEBSERVER'): - objs = objs + SConscript(RTT_ROOT + '/components/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) - -if GetDepend('RT_USING_RTGUI'): - objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) - -# libc testsuite -objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/at91sam9260/applications/SConscript b/bsp/at91sam9260/applications/SConscript deleted file mode 100644 index 01eb940dfb..0000000000 --- a/bsp/at91sam9260/applications/SConscript +++ /dev/null @@ -1,11 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/at91sam9260/applications/application.c b/bsp/at91sam9260/applications/application.c deleted file mode 100644 index f1a377e1e9..0000000000 --- a/bsp/at91sam9260/applications/application.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -/** - * @addtogroup at91sam9260 - */ -/*@{*/ - -#include -#include - -#ifdef RT_USING_DFS -/* dfs Filesystem APIs */ -#include -#endif - -#ifdef RT_USING_SDIO -#include -#include "at91_mci.h" -#endif - -#ifdef RT_USING_LED -#include "led.h" -#endif - -static int rt_led_app_init(void); - -int main(void) -{ - int timeout = 0; - -/* Filesystem Initialization */ -#ifdef RT_USING_DFS - { -#if defined(RT_USING_DFS_ROMFS) - if (dfs_mount(RT_NULL, "/rom", "rom", 0, &romfs_root) == 0) - { - rt_kprintf("ROM File System initialized!\n"); - } - else - rt_kprintf("ROM File System initialzation failed!\n"); -#endif - -#if defined(RT_USING_DFS_UFFS) - { - /* mount flash device as flash directory */ - if(dfs_mount("nand0", "/nand0", "uffs", 0, 0) == 0) - rt_kprintf("UFFS File System initialized!\n"); - else - rt_kprintf("UFFS File System initialzation failed!\n"); - } -#endif - -#ifdef RT_USING_SDIO - timeout = 0; - while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2)) - { - rt_thread_delay(1); - } - - if (timeout < RT_TICK_PER_SECOND*2) - { - /* mount sd card fat partition 1 as root directory */ - if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) - { - rt_kprintf("File System initialized!\n"); - } - else - rt_kprintf("File System initialzation failed!%d\n", rt_get_errno()); - } - else - { - rt_kprintf("No SD card found.\n"); - } -#endif - } -#endif - -#ifdef RT_USING_LED - rt_led_app_init(); -#endif -} - -#ifdef RT_USING_LED -void rt_led_thread_entry(void* parameter) -{ - rt_uint8_t cnt = 0; - led_init(); - while(1) - { - /* light on leds for one second */ - rt_thread_delay(40); - cnt++; - if (cnt&0x01) - led_on(1); - else - led_off(1); - if (cnt&0x02) - led_on(2); - else - led_off(2); - if (cnt&0x04) - led_on(3); - else - led_off(3); - } -} -#endif - -static int rt_led_app_init(void) -{ -#ifdef RT_USING_LED - rt_thread_t led_thread; - -#if (RT_THREAD_PRIORITY_MAX == 32) - led_thread = rt_thread_create("led", - rt_led_thread_entry, RT_NULL, - 512, 20, 20); -#else - led_thread = rt_thread_create("led", - rt_led_thread_entry, RT_NULL, - 512, 200, 20); -#endif - - if(led_thread != RT_NULL) - rt_thread_startup(led_thread); -#endif - - return 0; -} - -/* NFSv3 Initialization */ -#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) -#include -void nfs_start(void) -{ - nfs_init(); - - if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0) - { - rt_kprintf("NFSv3 File System initialized!\n"); - } - else - rt_kprintf("NFSv3 File System initialzation failed!\n"); -} - -#include "finsh.h" -FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem); -#endif - -/*@}*/ diff --git a/bsp/at91sam9260/debug_scripts/at91sam9260.gdb b/bsp/at91sam9260/debug_scripts/at91sam9260.gdb deleted file mode 100644 index fef3264f3e..0000000000 --- a/bsp/at91sam9260/debug_scripts/at91sam9260.gdb +++ /dev/null @@ -1,230 +0,0 @@ -#------------------------------------------------ -# SDRAM initialization script for the AT91SAM9260 -#------------------------------------------------ - -#---------------------------------------------------------------------------- -# _InitRSTC() -# Function description -# Initializes the RSTC (Reset controller). -# This makes sense since the default is to not allow user resets, which makes it impossible to -# apply a second RESET via J-Link -#---------------------------------------------------------------------------- - -define _InitRSTC - # Allow user reset - set *0xFFFFFD08=0xA5000001 -end - -#---------------------------------------------------------------------------- -# _MapRAMAt0() -# Function description: Maps RAM at 0. -#---------------------------------------------------------------------------- -define _MapRAMAt0 - echo "---------- SRAM remapped to 0 --------" \n - # Test and set Remap - set $__mac_i = *0xFFFFEF00 - if ( (($__mac_i & 0x01) == 0) || (($__mac_i & 0x02) == 0)) - #toggle remap bits - set *0xFFFFEF00 = 0x03 - else - echo "---------- The Remap is done ---------" \n - end -end - -#---------------------------------------------------------------------------- -# -# _PllSetting() -# Function description -# Initializes the PMC. -# 1. Enable the Main Oscillator -# 2. Configure PLL -# 3. Switch Master -#---------------------------------------------------------------------------- - -define __PllSetting - if ((*(0xFFFFFC30)&0x3) != 0 ) - # Disable all PMC interrupt ( $$ JPP) - # AT91C_PMC_IDR ((AT91_REG *) 0xFFFFFC64) #(PMC) Interrupt Disable Register - # pPmc->PMC_IDR = 0xFFFFFFFF; - set *0xFFFFFC64 = 0xFFFFFFFF - # AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) #(PMC) Peripheral Clock Disable Register - set *0xFFFFFC14 = 0xFFFFFFFF - # Disable all clock only Processor clock is enabled. - set *0xFFFFFC04 = 0xFFFFFFFE - # AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) # (PMC) Master Clock Register - set *0xFFFFFC30 = 0x00000001 - - while ((*0xFFFFFC68 & 0x8) == 0) - end - - - # write reset value to PLLA and PLLB - # AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) # (PMC) PLL A Register - set *0xFFFFFC28 = 0x00003F00 - - # AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) # (PMC) PLL B Register - set *0xFFFFFC2C 0x00003F00 - while ((*0xFFFFFC68 & 0x2) == 0) - end - while ((*0xFFFFFC68 & 0x4) == 0) - end - - echo "---------- PLL Enable ---------------" \n - - else - echo "---------- Core in SLOW CLOCK mode ---" \n - end -end - - -#---------------------------------------------------------------------------- -# -# __PllSetting100MHz() -# Function description -# Set core at 200 MHz and MCK at 100 MHz -#---------------------------------------------------------------------------- - -define __PllSetting100MHz - echo "---------- PLL Set at 100 MHz --------" \n - - #* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN )); - set *0xFFFFFC20=0x00004001 - while ((*0xFFFFFC68 & 0x1) == 0) - end - # AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) # (PMC) Master Clock Register - set *0xFFFFFC30=0x00000001 - while ((*0xFFFFFC68 & 0x8) == 0) - end - #* AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | - # (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9); - set *0xFFFFFC28=0x2060BF09 - while ((*0xFFFFFC68 & 0x2) == 0) - end - # Configure PLLB - set *0xFFFFFC2C=0x207C3F0C - while ((*0xFFFFFC68 & 0x4) == 0) - end - #* AT91C_BASE_PMC->PMC_MCKR = AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;; - set *0xFFFFFC30=0x00000102 - while ((*0xFFFFFC68 & 0x8) == 0) - end -end - - -#---------------------------------------------------------------------------- -# __initSDRAM() -# Function description -# Set SDRAM for works at 100 MHz -#---------------------------------------------------------------------------- - -define __initSDRAM - - # Configure EBI Chip select - # pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC; - # AT91C_CCFG_EBICSA ((AT91_REG *) 0xFFFFEF1C) # (CCFG) EBI Chip Select Assignement Register - set *0xFFFFEF1C=0x0001003A - - # Configure PIOs - # AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31 - # pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) # (PIOC) Select A Register - # pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR ((AT91_REG *) 0xFFFFF874) # (PIOC) Select B Register - # pPio->PIO_PDR = (periphAEnable | periphBEnable # Set in Periph mode - set *0xFFFFF870=0xFFFF0000 - set *0xFFFFF874=0x00000000 - set *0xFFFFF804=0xFFFF0000 - - # psdrc->SDRAMC_CR = AT91C_SDRAMC_NC_9 | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_2 | - # AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 | - # AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ; - set *0xFFFFEA08=0x85227259 - set $i = 0 - while $i != 100 - set $i += 1 - end - # psdrc->SDRAMC_MR = 0x00000002; # Set PRCHG AL - set *0xFFFFEA00=0x00000002 - # *AT91C_SDRAM = 0x00000000; # Perform PRCHG - set *0x20000000=0x00000000 - set $i = 0 - while $i != 100 - set $i += 1 - end - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 1st CBR - set *0xFFFFEA00=0x00000004 - - # *(AT91C_SDRAM+4) = 0x00000001; # Perform CBR - set *0x20000010=0x00000001 - - # psdrc->SDRAMC_MR = 0x00000004; # Set 2 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+8) = 0x00000002; # Perform CBR - set *0x20000020=0x00000002 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 3 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+0xc) = 0x00000003; # Perform CBR - set *0x20000030=0x00000003 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 4 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+0x10) = 0x00000004; # Perform CBR - set *0x20000040=0x00000004 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 5 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+0x14) = 0x00000005; # Perform CBR - set *0x20000050=0x00000005 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 6 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+0x18) = 0x00000006; # Perform CBR - set *0x20000060=0x00000006 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 7 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+0x1c) = 0x00000007; # Perform CBR - set *0x20000070=0x00000007 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; # Set 8 CBR - set *0xFFFFEA00=0x00000004 - # *(AT91C_SDRAM+0x20) = 0x00000008; # Perform CBR - set *0x20000080=0x00000008 - - # psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_LMR_CMD; # Set LMR operation - set *0xFFFFEA00=0x00000003 - # *(AT91C_SDRAM+0x24) = 0xcafedede; # Perform LMR burst=1, lat=2 - set *0x20000090=0xCAFEDEDE - - # psdrc->SDRAMC_TR = (AT91C_MASTER_CLOCK * 7)/1000000; # Set Refresh Timer 390 for 25MHz (TR= 15.6 * F ) - set *0xFFFFEA04=0x000002B9 - - #* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_NORMAL_CMD; # Set Normal mode - set *0xFFFFEA00=0x00000000 - - #* *AT91C_SDRAM = 0x00000000; # Perform Normal mode - set *0x20000000=0x00000000 - echo "---------- SDRAM Done at 100 MHz -----" \n -end - -# Step1: Connect to the J-Link gdb server -define reset - #target remote localhost:2331 - monitor reset - - # Step2: Reset peripheral (RSTC_CR) - #Init PLL - __PllSetting - __PllSetting100MHz - __initSDRAM - #* Set the RAM memory at 0x0020 0000 & 0x0000 0000 - _MapRAMAt0 - _InitRSTC - - # Step3: Load file(eg. getting-started project) - load - - mon reg pc=0x20000000 - #info reg - -end \ No newline at end of file diff --git a/bsp/at91sam9260/debug_scripts/at91sam9260.ini b/bsp/at91sam9260/debug_scripts/at91sam9260.ini deleted file mode 100644 index 7101955498..0000000000 --- a/bsp/at91sam9260/debug_scripts/at91sam9260.ini +++ /dev/null @@ -1,248 +0,0 @@ -// ---------------------------------------------------------------------------- -// ATMEL Microcontroller Software Support -// ---------------------------------------------------------------------------- -// Copyright (c) 2008, Atmel Corporation -// -// 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 disclaimer below. -// -// Atmel's name may not be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR -// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE -// DISCLAIMED. IN NO EVENT SHALL ATMEL 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 Name : at91sam9260-ek-sdram.ini -// Object : Generic Macro File for KEIL -//---------------------------------------------------------------------------- - -//---------------------------------------------------------------------------- -// _MapRAMAt0() -// Function description: Maps RAM at 0. -//---------------------------------------------------------------------------- - -DEFINE INT __mac_i; - -FUNC void _MapRAMAt0(){ - - - printf ("Changing mapping: RAM mapped to 0 \n"); - // Test and set Remap - __mac_i = _RDWORD(0xFFFFEF00); - if ( ((__mac_i & 0x01) == 0) || ((__mac_i & 0x02) == 0)) - { - _WDWORD(0xFFFFEF00,0x03); // toggle remap bits - } - else - { - printf ("------------------------------- The Remap is done -----------------------------------\n"); - } -} - - -//---------------------------------------------------------------------------- -// _InitRSTC() -// Function description -// Initializes the RSTC (Reset controller). -// This makes sense since the default is to not allow user resets, which makes it impossible to -// apply a second RESET via J-Link -//---------------------------------------------------------------------------- - -FUNC void _InitRSTC() { - - _WDWORD(0xFFFFFD08,0xA5000001); // Allow user reset - -} - -//---------------------------------------------------------------------------- -// -// _PllSetting() -// Function description -// Initializes the PMC. -// 1. Enable the Main Oscillator -// 2. Configure PLL -// 3. Switch Master -//---------------------------------------------------------------------------- - -FUNC void __PllSetting() -{ - - if ((_RDWORD(0xFFFFFC30)&0x3) != 0 ) - { - // Disable all PMC interrupt ( $$ JPP) - // AT91C_PMC_IDR ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register - // pPmc->PMC_IDR = 0xFFFFFFFF; - _WDWORD(0xFFFFFC64,0xFFFFFFFF); - // AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register - _WDWORD(0xFFFFFC14,0xFFFFFFFF); - // Disable all clock only Processor clock is enabled. - _WDWORD(0xFFFFFC04,0xFFFFFFFE); - // AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register - _WDWORD(0xFFFFFC30,0x00000001); - _sleep_(10); - // write reset value to PLLA and PLLB - // AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) // (PMC) PLL A Register - _WDWORD(0xFFFFFC28,0x00003F00); - - // AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) // (PMC) PLL B Register - _WDWORD(0xFFFFFC2C,0x00003F00); - _sleep_(10); - - printf ( "------------------------------- PLL Enable -----------------------------------------"); - - } - else { - printf( " ********* Core in SLOW CLOCK mode ********* "); - } -} - - -//---------------------------------------------------------------------------- -// -// __PllSetting100MHz() -// Function description -// Set core at 200 MHz and MCK at 100 MHz -//---------------------------------------------------------------------------- - -FUNC void __PllSetting100MHz() -{ - - printf( "------------------------------- PLL Set at 100 MHz ----------------------------------"); - - //* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN )); - _WDWORD(0xFFFFFC20,0x00004001); - _sleep_(10); - // AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register - _WDWORD(0xFFFFFC30,0x00000001); - _sleep_(10); - //* AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | - // (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9); - _WDWORD(0xFFFFFC28,0x2060BF09); - _sleep_(10); - // Configure PLLB - _WDWORD(0xFFFFFC2C,0x207C3F0C); - _sleep_(10); - //* AT91C_BASE_PMC->PMC_MCKR = AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;; - _WDWORD(0xFFFFFC30,0x00000102); - _sleep_(10); - -} - -//---------------------------------------------------------------------------- -// __initSDRAM() -// Function description -// Set SDRAM for works at 100 MHz -//---------------------------------------------------------------------------- - -FUNC void __initSDRAM() -{ - - // Configure EBI Chip select - // pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC; - // AT91C_CCFG_EBICSA ((AT91_REG *) 0xFFFFEF1C) // (CCFG) EBI Chip Select Assignement Register - _WDWORD(0xFFFFEF1C,0x0001003A); - - // Configure PIOs - // AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31 - // pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) // (PIOC) Select A Register - // pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR ((AT91_REG *) 0xFFFFF874) // (PIOC) Select B Register - // pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode - _WDWORD(0xFFFFF870,0xFFFF0000); - _WDWORD(0xFFFFF874,0x00000000); - _WDWORD(0xFFFFF804,0xFFFF0000); - - // psdrc->SDRAMC_CR = AT91C_SDRAMC_NC_9 | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_2 | - // AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 | - // AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ; - _WDWORD(0xFFFFEA08,0x85227259); - _sleep_(10); - // psdrc->SDRAMC_MR = 0x00000002; // Set PRCHG AL - _WDWORD(0xFFFFEA00,0x00000002); - // *AT91C_SDRAM = 0x00000000; // Perform PRCHG - _WDWORD(0x20000000,0x00000000); - _sleep_(10); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 1st CBR - _WDWORD(0xFFFFEA00,0x00000004); - - // *(AT91C_SDRAM+4) = 0x00000001; // Perform CBR - _WDWORD(0x20000010,0x00000001); - - // psdrc->SDRAMC_MR = 0x00000004; // Set 2 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+8) = 0x00000002; // Perform CBR - _WDWORD(0x20000020,0x00000002); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 3 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+0xc) = 0x00000003; // Perform CBR - _WDWORD(0x20000030,0x00000003); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 4 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+0x10) = 0x00000004; // Perform CBR - _WDWORD(0x20000040,0x00000004); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 5 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+0x14) = 0x00000005; // Perform CBR - _WDWORD(0x20000050,0x00000005); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 6 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+0x18) = 0x00000006; // Perform CBR - _WDWORD(0x20000060,0x00000006); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 7 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+0x1c) = 0x00000007; // Perform CBR - _WDWORD(0x20000070,0x00000007); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 8 CBR - _WDWORD(0xFFFFEA00,0x00000004); - // *(AT91C_SDRAM+0x20) = 0x00000008; // Perform CBR - _WDWORD(0x20000080,0x00000008); - - // psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_LMR_CMD; // Set LMR operation - _WDWORD(0xFFFFEA00,0x00000003); - // *(AT91C_SDRAM+0x24) = 0xcafedede; // Perform LMR burst=1, lat=2 - _WDWORD(0x20000090,0xCAFEDEDE); - - // psdrc->SDRAMC_TR = (AT91C_MASTER_CLOCK * 7)/1000000; // Set Refresh Timer 390 for 25MHz (TR= 15.6 * F ) - _WDWORD(0xFFFFEA04,0x000002B9); - - //* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_NORMAL_CMD; // Set Normal mode - _WDWORD(0xFFFFEA00,0x00000000); - - //* *AT91C_SDRAM = 0x00000000; // Perform Normal mode - _WDWORD(0x20000000,0x00000000); - printf( "------------------------------- SDRAM Done at 100 MHz -------------------------------"); - - -} - - -__PllSetting(); //* Init PLL -__PllSetting100MHz(); -__initSDRAM(); -_MapRAMAt0(); //* Set the RAM memory at 0x0020 0000 & 0x0000 0000 -_InitRSTC(); -DEBUG_CLOCK = 2000000; -LOAD Objects\\template.axf INCREMENTAL -PC = 0x20000000; -//g,main \ No newline at end of file diff --git a/bsp/at91sam9260/debug_scripts/at91sam9260.mac b/bsp/at91sam9260/debug_scripts/at91sam9260.mac deleted file mode 100644 index 4745aafd37..0000000000 --- a/bsp/at91sam9260/debug_scripts/at91sam9260.mac +++ /dev/null @@ -1,252 +0,0 @@ -// --------------------------------------------------------- -// ATMEL Microcontroller Software Support - ROUSSET - -// --------------------------------------------------------- -// The software is delivered "AS IS" without warranty or -// condition of any kind, either express, implied or -// statutory. This includes without limitation any warranty -// or condition with respect to merchantability or fitness -// for any particular purpose, or against the infringements of -// intellectual property rights of others. -// --------------------------------------------------------- -// File: SAM9_SDRAM.mac -// User setup file for CSPY debugger. -// 1.1 08/Aug/06 jpp : Creation -// -// $Revision: 1.1.2.1 $ -// -// --------------------------------------------------------- -__var __mac_i; -__var __mac_pt; - -/********************************************************************* -* -* execUserReset() : JTAG set initially to Full Speed -*/ -execUserReset() -{ - __message "------------------------------ execUserReset ---------------------------------"; - _MapRAMAt0(); //* Set the RAM memory at 0x00200000 & 0x00000000 - __PllSetting(); //* Init PLL - __PllSetting100MHz(); - __message "-------------------------------Set PC Reset ----------------------------------"; -} - -/********************************************************************* -* -* execUserPreload() : JTAG set initially to 32kHz -*/ -execUserPreload() -{ - __message "------------------------------ execUserPreload ---------------------------------"; - __hwReset(0); //* Hardware Reset: CPU is automatically halted after the reset (JTAG is already configured to 32kHz) - __writeMemory32(0xD3,0x98,"Register"); //* Set CPSR - __PllSetting(); //* Init PLL - __PllSetting100MHz(); - __initSDRAM(); //* Init SDRAM before load - _MapRAMAt0(); //* Set the RAM memory at 0x0020 0000 & 0x0000 0000 - _InitRSTC(); //* Enable User Reset to allow execUserReset() execution -} - - - -/********************************************************************* -* -* _InitRSTC() -* -* Function description -* Initializes the RSTC (Reset controller). -* This makes sense since the default is to not allow user resets, which makes it impossible to -* apply a second RESET via J-Link -*/ -_InitRSTC() { - __writeMemory32(0xA5000001, 0xFFFFFD08,"Memory"); // Allow user reset -} - - -/********************************************************************* -* -* __initSDRAM() -* Function description -* Set SDRAM for works at 100 MHz -*/ -__initSDRAM() -{ -//* Configure EBI Chip select -// pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC | (1 << 16); -// AT91C_CCFG_EBICSA ((AT91_REG *) 0xFFFFEF1C) // (CCFG) EBI Chip Select Assignement Register - __writeMemory32(0x0001003A,0xFFFFEF1C,"Memory"); - - -//* Configure PIOs -//* AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31 -// pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) // (PIOC) Select A Register -// pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR ((AT91_REG *) 0xFFFFF874) // (PIOC) Select B Register -// pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode - __writeMemory32(0xFFFF0000,0xFFFFF870,"Memory"); - __writeMemory32(0x00000000,0xFFFFF874,"Memory"); - __writeMemory32(0xFFFF0000,0xFFFFF804,"Memory"); - -//* psdrc->SDRAMC_CR = AT91C_SDRAMC_NC_9 | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_2 | -// AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 | -// AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ; - __writeMemory32(0x85227259,0xFFFFEA08,"Memory"); - __delay(1); //100 -//* psdrc->SDRAMC_MR = 0x00000002; // Set PRCHG AL - __writeMemory32(0x00000002,0xFFFFEA00,"Memory"); -//* *AT91C_SDRAM = 0x00000000; // Perform PRCHG - __writeMemory32(0x00000000,0x20000000,"Memory"); - __delay(1); //100 - - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 1st CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); - -//* *(AT91C_SDRAM+4) = 0x00000001; // Perform CBR - __writeMemory32(0x00000001,0x20000010,"Memory"); - -//* psdrc->SDRAMC_MR = 0x00000004; // Set 2 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+8) = 0x00000002; // Perform CBR - __writeMemory32(0x00000002,0x20000020,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 3 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0xc) = 0x00000003; // Perform CBR - __writeMemory32(0x00000003,0x20000030,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 4 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0x10) = 0x00000004; // Perform CBR - __writeMemory32(0x00000004,0x20000040,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 5 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0x14) = 0x00000005; // Perform CBR - __writeMemory32(0x00000005,0x20000050,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 6 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0x18) = 0x00000006; // Perform CBR - __writeMemory32(0x00000006,0x20000060,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 7 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0x1c) = 0x00000007; // Perform CBR - __writeMemory32(0x00000007,0x20000070,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_RFSH_CMD; // Set 8 CBR - __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0x20) = 0x00000008; // Perform CBR - __writeMemory32(0x00000008,0x20000080,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_LMR_CMD; // Set LMR operation - __writeMemory32(0x00000003,0xFFFFEA00,"Memory"); -//* *(AT91C_SDRAM+0x24) = 0xcafedede; // Perform LMR burst=1, lat=2 - __writeMemory32(0xCAFEDEDE,0x20000090,"Memory"); - -//* psdrc->SDRAMC_TR = (AT91C_MASTER_CLOCK * 7)/1000000; // Set Refresh Timer 390 for 25MHz (TR= 15.6 * F ) -// // (F : system clock freq. MHz - - __writeMemory32(0x000002B7,0xFFFFEA04,"Memory"); - -//* psdrc->SDRAMC_MR = AT91C_SDRAMC_MODE_NORMAL_CMD; // Set Normal mode - __writeMemory32(0x00000000,0xFFFFEA00,"Memory"); - -//* *AT91C_SDRAM = 0x00000000; // Perform Normal mode - __writeMemory32(0x00000000,0x20000000,"Memory"); - __message "------------------------------- SDRAM Done at 100 MHz -------------------------------"; - -} - -/********************************************************************* -* -* _MapRAMAt0() -* Function description -* Remap RAM at 0 -*/ -_MapRAMAt0() -{ -// AT91C_MATRIX_MRCR ((AT91_REG *) 0xFFFFEF00) // (MATRIX) Master Remp Control Register - __mac_i=__readMemory32(0xFFFFEF00,"Memory"); - __message "----- AT91C_MATRIX_MRCR : 0x",__mac_i:%X; - - if ( ((__mac_i & 0x01) == 0) || ((__mac_i & 0x02) == 0)){ - __message "------------------------------- The Remap is NOT & REMAP ----------------------------"; - __writeMemory32(0x00000003,0xFFFFEF00,"Memory"); - __mac_i=__readMemory32(0xFFFFEF00,"Memory"); - __message "----- AT91C_MATRIX_MRCR : 0x",__mac_i:%X; - } else { - __message "------------------------------- The Remap is done -----------------------------------"; - } -} - - -/********************************************************************* -* -* __PllSetting() -* Function description -* Initializes the PMC. -* 1. Enable the Main Oscillator -* 2. Configure PLL -* 3. Switch Master -*/ -__PllSetting() -{ - if ((__readMemory32(0xFFFFFC30,"Memory")&0x3) != 0 ) { -//* Disable all PMC interrupt ( $$ JPP) -//* AT91C_PMC_IDR ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register -//* pPmc->PMC_IDR = 0xFFFFFFFF; - __writeMemory32(0xFFFFFFFF,0xFFFFFC64,"Memory"); -//* AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register - __writeMemory32(0xFFFFFFFF,0xFFFFFC14,"Memory"); -// Disable all clock only Processor clock is enabled. - __writeMemory32(0xFFFFFFFE,0xFFFFFC04,"Memory"); - -// AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register - __writeMemory32(0x00000001,0xFFFFFC30,"Memory"); - __delay(10); //10000 - -// write reset value to PLLA and PLLB -// AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) // (PMC) PLL A Register - __writeMemory32(0x00003F00,0xFFFFFC28,"Memory"); - -// AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) // (PMC) PLL B Register - __writeMemory32(0x00003F00,0xFFFFFC2C,"Memory"); - __delay(10); //10000 - - __message "------------------------------- PLL Enable -----------------------------------------"; - } else { - __message " ********* Core in SLOW CLOCK mode ********* "; } -} - - -/********************************************************************* -* -* __PllSetting100MHz() -* Function description -* Set core at 200 MHz and MCK at 100 MHz -*/ -__PllSetting100MHz() -{ - - __message "------------------------------- PLL Set at 100 MHz ----------------------------------"; - -//* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN )); - __writeMemory32(0x00004001,0xFFFFFC20,"Memory"); - __delay(10); //10000 -// AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register - __writeMemory32(0x00000001,0xFFFFFC30,"Memory"); - __delay(10); //10000 -//* AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | -// (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9); - __writeMemory32(0x2060BF09,0xFFFFFC28,"Memory"); - __delay(10); //10000 -// AT91C_BASE_PMC->PMC_PLLBR = BOARD_USBDIV| BOARD_CKGR_PLLB | BOARD_PLLBCOUNT | BOARD_MULB| BOARD_DIVB; - __writeMemory32(0x207C3F0C,0xFFFFFC2C,"Memory"); - __delay(10); //10000 -//* AT91C_BASE_PMC->PMC_MCKR = AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;; - __writeMemory32(0x00000102,0xFFFFFC30,"Memory"); - __delay(10); //10000 - -} - diff --git a/bsp/at91sam9260/drivers/SConscript b/bsp/at91sam9260/drivers/SConscript deleted file mode 100644 index e30cf28176..0000000000 --- a/bsp/at91sam9260/drivers/SConscript +++ /dev/null @@ -1,33 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'drivers') - -# add the general drvers. -src = Split(""" -board.c -usart.c -""") - -# add Ethernet drvers. -if GetDepend('RT_USING_LED'): - src += ['led.c'] - -if GetDepend('RT_USING_SDIO'): - src += ['at91_mci.c'] - -if GetDepend('RT_USING_LWIP'): - src += ['macb.c'] - -if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): - src += ['at91_i2c_gpio.c'] - -if GetDepend('RT_USING_MTD_NAND'): - src += ['at91_nand.c'] - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/at91sam9260/drivers/at91_i2c_gpio.c b/bsp/at91sam9260/drivers/at91_i2c_gpio.c deleted file mode 100644 index d863ffed88..0000000000 --- a/bsp/at91sam9260/drivers/at91_i2c_gpio.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2012-04-25 weety first version - */ - -#include -#include -#include - - -static void at91_i2c_gpio_init() -{ - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOA); //enable PIOA clock - at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 23)); - at91_sys_write(AT91_PIOA + PIO_PER, (1 << 23)); - at91_sys_write(AT91_PIOA + PIO_MDER, (1 << 23)); - at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 24)); - at91_sys_write(AT91_PIOA + PIO_PER, (1 << 24)); - at91_sys_write(AT91_PIOA + PIO_MDER, (1 << 24)); - - at91_sys_write(AT91_PIOA + PIO_OER, (1 << 23)); - at91_sys_write(AT91_PIOA + PIO_OER, (1 << 24)); - - at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 23)); - at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 24)); -} - -static void at91_set_sda(void *data, rt_int32_t state) -{ - if (state) - { - at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 23)); - } - else - { - at91_sys_write(AT91_PIOA + PIO_CODR, (1 << 23)); - } -} - -static void at91_set_scl(void *data, rt_int32_t state) -{ - if (state) - { - at91_sys_write(AT91_PIOA + PIO_SODR, (1 << 24)); - } - else - { - at91_sys_write(AT91_PIOA + PIO_CODR, (1 << 24)); - } -} - -static rt_int32_t at91_get_sda(void *data) -{ - return at91_sys_read(AT91_PIOA + PIO_PDSR) & (1 << 23); -} - -static rt_int32_t at91_get_scl(void *data) -{ - return at91_sys_read(AT91_PIOA + PIO_PDSR) & (1 << 24); -} - -static void at91_udelay (rt_uint32_t us) -{ - rt_int32_t i; - for (; us > 0; us--) - { - i = 50000; - while(i > 0) - { - i--; - } - } -} - -static const struct rt_i2c_bit_ops bit_ops = { - RT_NULL, - at91_set_sda, - at91_set_scl, - at91_get_sda, - at91_get_scl, - - at91_udelay, - - 5, - 100 -}; - -int at91_i2c_init(void) -{ - struct rt_i2c_bus_device *bus; - - bus = rt_malloc(sizeof(struct rt_i2c_bus_device)); - if (bus == RT_NULL) - { - rt_kprintf("rt_malloc failed\n"); - return -RT_ENOMEM; - } - - rt_memset((void *)bus, 0, sizeof(struct rt_i2c_bus_device)); - - bus->priv = (void *)&bit_ops; - - at91_i2c_gpio_init(); - - rt_i2c_bit_add_bus(bus, "i2c0"); - - return 0; -} - -INIT_DEVICE_EXPORT(at91_i2c_init); - diff --git a/bsp/at91sam9260/drivers/at91_mci.c b/bsp/at91sam9260/drivers/at91_mci.c deleted file mode 100644 index 92f7abdfec..0000000000 --- a/bsp/at91sam9260/drivers/at91_mci.c +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-07-25 weety first version - */ - -#include -#include -#include -#include -#include "at91_mci.h" - -#define USE_SLOT_B -//#define RT_MCI_DBG - -#ifdef RT_MCI_DBG -#define mci_dbg(fmt, ...) rt_kprintf(fmt, ##__VA_ARGS__) -#else -#define mci_dbg(fmt, ...) -#endif - -#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) - -extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); -extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); - - -#define AT91_MCI_ERRORS (AT91_MCI_RINDE | AT91_MCI_RDIRE | AT91_MCI_RCRCE \ - | AT91_MCI_RENDE | AT91_MCI_RTOE | AT91_MCI_DCRCE \ - | AT91_MCI_DTOE | AT91_MCI_OVRE | AT91_MCI_UNRE) - -#define at91_mci_read(reg) readl(AT91SAM9260_BASE_MCI + (reg)) -#define at91_mci_write(reg, val) writel((val), AT91SAM9260_BASE_MCI + (reg)) - - -#define REQ_ST_INIT (1U << 0) -#define REQ_ST_CMD (1U << 1) -#define REQ_ST_STOP (1U << 2) - -struct at91_mci { - struct rt_mmcsd_host *host; - struct rt_mmcsd_req *req; - struct rt_mmcsd_cmd *cmd; - struct rt_timer timer; - //struct rt_semaphore sem_ack; - rt_uint32_t *buf; - rt_uint32_t current_status; -}; - -/* - * Reset the controller and restore most of the state - */ -static void at91_reset_host() -{ - rt_uint32_t mr; - rt_uint32_t sdcr; - rt_uint32_t dtor; - rt_uint32_t imr; - rt_uint32_t level; - - level = rt_hw_interrupt_disable(); - - imr = at91_mci_read(AT91_MCI_IMR); - - at91_mci_write(AT91_MCI_IDR, 0xffffffff); - - /* save current state */ - mr = at91_mci_read(AT91_MCI_MR) & 0x7fff; - sdcr = at91_mci_read(AT91_MCI_SDCR); - dtor = at91_mci_read(AT91_MCI_DTOR); - - /* reset the controller */ - at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIDIS | AT91_MCI_SWRST); - - /* restore state */ - at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIEN); - at91_mci_write(AT91_MCI_MR, mr); - at91_mci_write(AT91_MCI_SDCR, sdcr); - at91_mci_write(AT91_MCI_DTOR, dtor); - at91_mci_write(AT91_MCI_IER, imr); - - /* make sure sdio interrupts will fire */ - at91_mci_read(AT91_MCI_SR); - rt_hw_interrupt_enable(level); - -} - - -/* - * Enable the controller - */ -static void at91_mci_enable() -{ - rt_uint32_t mr; - - at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIEN); - at91_mci_write(AT91_MCI_IDR, 0xffffffff); - at91_mci_write(AT91_MCI_DTOR, AT91_MCI_DTOMUL_1M | AT91_MCI_DTOCYC); - mr = AT91_MCI_PDCMODE | 0x34a; - - mr |= AT91_MCI_RDPROOF | AT91_MCI_WRPROOF; - - at91_mci_write(AT91_MCI_MR, mr); - - /* use Slot A or B (only one at same time) */ - at91_mci_write(AT91_MCI_SDCR, 1); /* use slot b */ -} - -/* - * Disable the controller - */ -static void at91_mci_disable() -{ - at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIDIS | AT91_MCI_SWRST); -} - -static void at91_timeout_timer(void *data) -{ - struct at91_mci *mci; - - mci = (struct at91_mci *)data; - - if (mci->req) - { - rt_kprintf("Timeout waiting end of packet\n"); - - if (mci->current_status == REQ_ST_CMD) - { - if (mci->req->cmd && mci->req->data) - { - mci->req->data->err = -RT_ETIMEOUT; - } - else - { - if (mci->req->cmd) - mci->req->cmd->err = -RT_ETIMEOUT; - } - } - else if (mci->current_status == REQ_ST_STOP) - { - mci->req->stop->err = -RT_ETIMEOUT; - } - - at91_reset_host(); - mmcsd_req_complete(mci->host); - } -} - -/* - * Prepare a dma read - */ -static void at91_mci_init_dma_read(struct at91_mci *mci) -{ - rt_uint8_t i; - struct rt_mmcsd_cmd *cmd; - struct rt_mmcsd_data *data; - rt_uint32_t length; - - mci_dbg("pre dma read\n"); - - cmd = mci->cmd; - if (!cmd) - { - mci_dbg("no command\n"); - return; - } - - data = cmd->data; - if (!data) - { - mci_dbg("no data\n"); - return; - } - - for (i = 0; i < 1; i++) - { - /* Check to see if this needs filling */ - if (i == 0) - { - if (at91_mci_read(AT91_PDC_RCR) != 0) - { - mci_dbg("Transfer active in current\n"); - continue; - } - } - else { - if (at91_mci_read(AT91_PDC_RNCR) != 0) - { - mci_dbg("Transfer active in next\n"); - continue; - } - } - - length = data->blksize * data->blks; - mci_dbg("dma address = %08X, length = %d\n", data->buf, length); - - if (i == 0) - { - at91_mci_write(AT91_PDC_RPR, (rt_uint32_t)(data->buf)); - at91_mci_write(AT91_PDC_RCR, (data->blksize & 0x3) ? length : length / 4); - } - else - { - at91_mci_write(AT91_PDC_RNPR, (rt_uint32_t)(data->buf)); - at91_mci_write(AT91_PDC_RNCR, (data->blksize & 0x3) ? length : length / 4); - } - } - - mci_dbg("pre dma read done\n"); -} - -/* - * Send a command - */ -static void at91_mci_send_command(struct at91_mci *mci, struct rt_mmcsd_cmd *cmd) -{ - rt_uint32_t cmdr, mr; - rt_uint32_t block_length; - struct rt_mmcsd_data *data = cmd->data; - struct rt_mmcsd_host *host = mci->host; - - rt_uint32_t blocks; - rt_uint32_t ier = 0; - rt_uint32_t length; - - mci->cmd = cmd; - - /* Needed for leaving busy state before CMD1 */ - if ((at91_mci_read(AT91_MCI_SR) & AT91_MCI_RTOE) && (cmd->cmd_code == 1)) - { - mci_dbg("Clearing timeout\n"); - at91_mci_write(AT91_MCI_ARGR, 0); - at91_mci_write(AT91_MCI_CMDR, AT91_MCI_OPDCMD); - while (!(at91_mci_read(AT91_MCI_SR) & AT91_MCI_CMDRDY)) - { - /* spin */ - mci_dbg("Clearing: SR = %08X\n", at91_mci_read(AT91_MCI_SR)); - } - } - - cmdr = cmd->cmd_code; - - if (resp_type(cmd) == RESP_NONE) - cmdr |= AT91_MCI_RSPTYP_NONE; - else - { - /* if a response is expected then allow maximum response latancy */ - cmdr |= AT91_MCI_MAXLAT; - /* set 136 bit response for R2, 48 bit response otherwise */ - if (resp_type(cmd) == RESP_R2) - cmdr |= AT91_MCI_RSPTYP_136; - else - cmdr |= AT91_MCI_RSPTYP_48; - } - - if (data) - { - - block_length = data->blksize; - blocks = data->blks; - - /* always set data start - also set direction flag for read */ - if (data->flags & DATA_DIR_READ) - cmdr |= (AT91_MCI_TRDIR | AT91_MCI_TRCMD_START); - else if (data->flags & DATA_DIR_WRITE) - cmdr |= AT91_MCI_TRCMD_START; - - if (data->flags & DATA_STREAM) - cmdr |= AT91_MCI_TRTYP_STREAM; - if (data->blks > 1) - cmdr |= AT91_MCI_TRTYP_MULTIPLE; - } - else - { - block_length = 0; - blocks = 0; - } - - /*if (cmd->cmd_code == GO_IDLE_STATE) - { - cmdr |= AT91_MCI_SPCMD_INIT; - }*/ - - if (cmd->cmd_code == STOP_TRANSMISSION) - cmdr |= AT91_MCI_TRCMD_STOP; - - if (host->io_cfg.bus_mode == MMCSD_BUSMODE_OPENDRAIN) - cmdr |= AT91_MCI_OPDCMD; - - /* - * Set the arguments and send the command - */ - mci_dbg("Sending command %d as %08X, arg = %08X, blocks = %d, length = %d (MR = %08X)\n", - cmd->cmd_code, cmdr, cmd->arg, blocks, block_length, at91_mci_read(AT91_MCI_MR)); - - if (!data) - { - at91_mci_write(AT91_PDC_PTCR, AT91_PDC_TXTDIS | AT91_PDC_RXTDIS); - at91_mci_write(AT91_PDC_RPR, 0); - at91_mci_write(AT91_PDC_RCR, 0); - at91_mci_write(AT91_PDC_RNPR, 0); - at91_mci_write(AT91_PDC_RNCR, 0); - at91_mci_write(AT91_PDC_TPR, 0); - at91_mci_write(AT91_PDC_TCR, 0); - at91_mci_write(AT91_PDC_TNPR, 0); - at91_mci_write(AT91_PDC_TNCR, 0); - ier = AT91_MCI_CMDRDY; - } - else - { - /* zero block length and PDC mode */ - mr = at91_mci_read(AT91_MCI_MR) & 0x5fff; - mr |= (data->blksize & 0x3) ? AT91_MCI_PDCFBYTE : 0; - mr |= (block_length << 16); - mr |= AT91_MCI_PDCMODE; - at91_mci_write(AT91_MCI_MR, mr); - - at91_mci_write(AT91_MCI_BLKR, - AT91_MCI_BLKR_BCNT(blocks) | - AT91_MCI_BLKR_BLKLEN(block_length)); - - /* - * Disable the PDC controller - */ - at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTDIS | AT91_PDC_TXTDIS); - - if (cmdr & AT91_MCI_TRCMD_START) - { - if (cmdr & AT91_MCI_TRDIR) - { - /* - * Handle a read - */ - - mmu_invalidate_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); - at91_mci_init_dma_read(mci); - ier = AT91_MCI_ENDRX /* | AT91_MCI_RXBUFF */; - } - else - { - /* - * Handle a write - */ - length = block_length * blocks; - /* - * at91mci MCI1 rev2xx Data Write Operation and - * number of bytes erratum - */ - if (length < 12) - { - length = 12; - mci->buf = rt_malloc(length); - if (!mci->buf) - { - rt_kprintf("rt alloc tx buffer failed\n"); - cmd->err = -RT_ENOMEM; - mmcsd_req_complete(mci->host); - return; - } - rt_memset(mci->buf, 0, 12); - rt_memcpy(mci->buf, data->buf, length); - mmu_clean_dcache((rt_uint32_t)mci->buf, length); - at91_mci_write(AT91_PDC_TPR, (rt_uint32_t)(mci->buf)); - at91_mci_write(AT91_PDC_TCR, (data->blksize & 0x3) ? - length : length / 4); - } - else - { - mmu_clean_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); - at91_mci_write(AT91_PDC_TPR, (rt_uint32_t)(data->buf)); - at91_mci_write(AT91_PDC_TCR, (data->blksize & 0x3) ? - length : length / 4); - } - mci_dbg("Transmitting %d bytes\n", length); - ier = AT91_MCI_CMDRDY; - } - } - } - - /* - * Send the command and then enable the PDC - not the other way round as - * the data sheet says - */ - - at91_mci_write(AT91_MCI_ARGR, cmd->arg); - at91_mci_write(AT91_MCI_CMDR, cmdr); - - if (cmdr & AT91_MCI_TRCMD_START) - { - if (cmdr & AT91_MCI_TRDIR) - at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTEN); - } - - /* Enable selected interrupts */ - at91_mci_write(AT91_MCI_IER, AT91_MCI_ERRORS | ier); -} - -/* - * Process the next step in the request - */ -static void at91_mci_process_next(struct at91_mci *mci) -{ - if (mci->current_status == REQ_ST_INIT) - { - mci->current_status = REQ_ST_CMD; - at91_mci_send_command(mci, mci->req->cmd); - } - else if ((mci->current_status == REQ_ST_CMD) && mci->req->stop) - { - mci->current_status = REQ_ST_STOP; - at91_mci_send_command(mci, mci->req->stop); - } - else - { - rt_timer_stop(&mci->timer); - /* the mci controller hangs after some transfers, - * and the workaround is to reset it after each transfer. - */ - at91_reset_host(); - mmcsd_req_complete(mci->host); - } -} - -/* - * Handle an MMC request - */ -static void at91_mci_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) -{ - rt_uint32_t timeout = RT_TICK_PER_SECOND; - struct at91_mci *mci = host->private_data; - mci->req = req; - mci->current_status = REQ_ST_INIT; - - rt_timer_control(&mci->timer, RT_TIMER_CTRL_SET_TIME, (void*)&timeout); - rt_timer_start(&mci->timer); - - at91_mci_process_next(mci); -} - -/* - * Handle transmitted data - */ -static void at91_mci_handle_transmitted(struct at91_mci *mci) -{ - struct rt_mmcsd_cmd *cmd; - struct rt_mmcsd_data *data; - - mci_dbg("Handling the transmit\n"); - - /* Disable the transfer */ - at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTDIS | AT91_PDC_TXTDIS); - - /* Now wait for cmd ready */ - at91_mci_write(AT91_MCI_IDR, AT91_MCI_TXBUFE); - - cmd = mci->cmd; - if (!cmd) return; - - data = cmd->data; - if (!data) return; - - if (data->blks > 1) - { - mci_dbg("multiple write : wait for BLKE...\n"); - at91_mci_write(AT91_MCI_IER, AT91_MCI_BLKE); - } else - at91_mci_write(AT91_MCI_IER, AT91_MCI_NOTBUSY); -} - - -/* - * Handle after a dma read - */ -static void at91_mci_post_dma_read(struct at91_mci *mci) -{ - struct rt_mmcsd_cmd *cmd; - struct rt_mmcsd_data *data; - - mci_dbg("post dma read\n"); - - cmd = mci->cmd; - if (!cmd) - { - mci_dbg("no command\n"); - return; - } - - data = cmd->data; - if (!data) - { - mci_dbg("no data\n"); - return; - } - - at91_mci_write(AT91_MCI_IDR, AT91_MCI_ENDRX); - at91_mci_write(AT91_MCI_IER, AT91_MCI_RXBUFF); - - mci_dbg("post dma read done\n"); -} - -/*Handle after command sent ready*/ -static int at91_mci_handle_cmdrdy(struct at91_mci *mci) -{ - if (!mci->cmd) - return 1; - else if (!mci->cmd->data) - { - if (mci->current_status == REQ_ST_STOP) - { - /*After multi block write, we must wait for NOTBUSY*/ - at91_mci_write(AT91_MCI_IER, AT91_MCI_NOTBUSY); - } - else return 1; - } - else if (mci->cmd->data->flags & DATA_DIR_WRITE) - { - /*After sendding multi-block-write command, start DMA transfer*/ - at91_mci_write(AT91_MCI_IER, AT91_MCI_TXBUFE | AT91_MCI_BLKE); - at91_mci_write(AT91_PDC_PTCR, AT91_PDC_TXTEN); - } - - /* command not completed, have to wait */ - return 0; -} - -/* - * Handle a command that has been completed - */ -static void at91_mci_completed_command(struct at91_mci *mci, rt_uint32_t status) -{ - struct rt_mmcsd_cmd *cmd = mci->cmd; - struct rt_mmcsd_data *data = cmd->data; - - at91_mci_write(AT91_MCI_IDR, 0xffffffff & ~(AT91_MCI_SDIOIRQA | AT91_MCI_SDIOIRQB)); - - cmd->resp[0] = at91_mci_read(AT91_MCI_RSPR(0)); - cmd->resp[1] = at91_mci_read(AT91_MCI_RSPR(1)); - cmd->resp[2] = at91_mci_read(AT91_MCI_RSPR(2)); - cmd->resp[3] = at91_mci_read(AT91_MCI_RSPR(3)); - - if (mci->buf) - { - //rt_memcpy(data->buf, mci->buf, data->blksize*data->blks); - rt_free(mci->buf); - mci->buf = RT_NULL; - } - - mci_dbg("Status = %08X/%08x [%08X %08X %08X %08X]\n", - status, at91_mci_read(AT91_MCI_SR), - cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]); - - if (status & AT91_MCI_ERRORS) - { - if ((status & AT91_MCI_RCRCE) && (resp_type(cmd) & (RESP_R3|RESP_R4))) - { - cmd->err = 0; - } - else - { - if (status & (AT91_MCI_DTOE | AT91_MCI_DCRCE)) - { - if (data) - { - if (status & AT91_MCI_DTOE) - data->err = -RT_ETIMEOUT; - else if (status & AT91_MCI_DCRCE) - data->err = -RT_ERROR; - } - } - else - { - if (status & AT91_MCI_RTOE) - cmd->err = -RT_ETIMEOUT; - else if (status & AT91_MCI_RCRCE) - cmd->err = -RT_ERROR; - else - cmd->err = -RT_ERROR; - } - - rt_kprintf("error detected and set to %d/%d (cmd = %d)\n", - cmd->err, data ? data->err : 0, - cmd->cmd_code); - } - } - else - cmd->err = 0; - - at91_mci_process_next(mci); -} - -/* - * Handle an interrupt - */ -static void at91_mci_irq(int irq, void *param) -{ - struct at91_mci *mci = (struct at91_mci *)param; - rt_int32_t completed = 0; - rt_uint32_t int_status, int_mask; - - int_status = at91_mci_read(AT91_MCI_SR); - int_mask = at91_mci_read(AT91_MCI_IMR); - - mci_dbg("MCI irq: status = %08X, %08X, %08X\n", int_status, int_mask, - int_status & int_mask); - - int_status = int_status & int_mask; - - if (int_status & AT91_MCI_ERRORS) - { - completed = 1; - - if (int_status & AT91_MCI_UNRE) - mci_dbg("MMC: Underrun error\n"); - if (int_status & AT91_MCI_OVRE) - mci_dbg("MMC: Overrun error\n"); - if (int_status & AT91_MCI_DTOE) - mci_dbg("MMC: Data timeout\n"); - if (int_status & AT91_MCI_DCRCE) - mci_dbg("MMC: CRC error in data\n"); - if (int_status & AT91_MCI_RTOE) - mci_dbg("MMC: Response timeout\n"); - if (int_status & AT91_MCI_RENDE) - mci_dbg("MMC: Response end bit error\n"); - if (int_status & AT91_MCI_RCRCE) - mci_dbg("MMC: Response CRC error\n"); - if (int_status & AT91_MCI_RDIRE) - mci_dbg("MMC: Response direction error\n"); - if (int_status & AT91_MCI_RINDE) - mci_dbg("MMC: Response index error\n"); - } - else - { - /* Only continue processing if no errors */ - - if (int_status & AT91_MCI_TXBUFE) - { - mci_dbg("TX buffer empty\n"); - at91_mci_handle_transmitted(mci); - } - - if (int_status & AT91_MCI_ENDRX) - { - mci_dbg("ENDRX\n"); - at91_mci_post_dma_read(mci); - } - - if (int_status & AT91_MCI_RXBUFF) - { - mci_dbg("RX buffer full\n"); - at91_mci_write(AT91_PDC_PTCR, AT91_PDC_RXTDIS | AT91_PDC_TXTDIS); - at91_mci_write(AT91_MCI_IDR, AT91_MCI_RXBUFF | AT91_MCI_ENDRX); - completed = 1; - } - - if (int_status & AT91_MCI_ENDTX) - mci_dbg("Transmit has ended\n"); - - if (int_status & AT91_MCI_NOTBUSY) - { - mci_dbg("Card is ready\n"); - //at91_mci_update_bytes_xfered(host); - completed = 1; - } - - if (int_status & AT91_MCI_DTIP) - mci_dbg("Data transfer in progress\n"); - - if (int_status & AT91_MCI_BLKE) - { - mci_dbg("Block transfer has ended\n"); - if (mci->req->data && mci->req->data->blks > 1) - { - /* multi block write : complete multi write - * command and send stop */ - completed = 1; - } - else - { - at91_mci_write(AT91_MCI_IER, AT91_MCI_NOTBUSY); - } - } - - /*if (int_status & AT91_MCI_SDIOIRQA) - rt_mmcsd_signal_sdio_irq(host->mmc);*/ - - if (int_status & AT91_MCI_SDIOIRQB) - sdio_irq_wakeup(mci->host); - - if (int_status & AT91_MCI_TXRDY) - mci_dbg("Ready to transmit\n"); - - if (int_status & AT91_MCI_RXRDY) - mci_dbg("Ready to receive\n"); - - if (int_status & AT91_MCI_CMDRDY) - { - mci_dbg("Command ready\n"); - completed = at91_mci_handle_cmdrdy(mci); - } - } - - if (completed) - { - mci_dbg("Completed command\n"); - at91_mci_write(AT91_MCI_IDR, 0xffffffff & ~(AT91_MCI_SDIOIRQA | AT91_MCI_SDIOIRQB)); - at91_mci_completed_command(mci, int_status); - } - else - at91_mci_write(AT91_MCI_IDR, int_status & ~(AT91_MCI_SDIOIRQA | AT91_MCI_SDIOIRQB)); - -} - - -/* - * Set the IOCFG - */ -static void at91_mci_set_iocfg(struct rt_mmcsd_host *host, struct rt_mmcsd_io_cfg *io_cfg) -{ - rt_uint32_t clkdiv; - //struct at91_mci *mci = host->private_data; - rt_uint32_t at91_master_clock = clk_get_rate(clk_get("mck")); - - if (io_cfg->clock == 0) - { - /* Disable the MCI controller */ - at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIDIS); - clkdiv = 0; - } - else - { - /* Enable the MCI controller */ - at91_mci_write(AT91_MCI_CR, AT91_MCI_MCIEN); - - if ((at91_master_clock % (io_cfg->clock * 2)) == 0) - clkdiv = ((at91_master_clock / io_cfg->clock) / 2) - 1; - else - clkdiv = (at91_master_clock / io_cfg->clock) / 2; - - mci_dbg("clkdiv = %d. mcck = %ld\n", clkdiv, - at91_master_clock / (2 * (clkdiv + 1))); - } - if (io_cfg->bus_width == MMCSD_BUS_WIDTH_4) - { - mci_dbg("MMC: Setting controller bus width to 4\n"); - at91_mci_write(AT91_MCI_SDCR, at91_mci_read(AT91_MCI_SDCR) | AT91_MCI_SDCBUS); - } - else - { - mci_dbg("MMC: Setting controller bus width to 1\n"); - at91_mci_write(AT91_MCI_SDCR, at91_mci_read(AT91_MCI_SDCR) & ~AT91_MCI_SDCBUS); - } - - /* Set the clock divider */ - at91_mci_write(AT91_MCI_MR, (at91_mci_read(AT91_MCI_MR) & ~AT91_MCI_CLKDIV) | clkdiv); - - /* maybe switch power to the card */ - switch (io_cfg->power_mode) - { - case MMCSD_POWER_OFF: - break; - case MMCSD_POWER_UP: - break; - case MMCSD_POWER_ON: - /*at91_mci_write(AT91_MCI_ARGR, 0); - at91_mci_write(AT91_MCI_CMDR, 0|AT91_MCI_SPCMD_INIT|AT91_MCI_OPDCMD); - mci_dbg("MCI_SR=0x%08x\n", at91_mci_read(AT91_MCI_SR)); - while (!(at91_mci_read(AT91_MCI_SR) & AT91_MCI_CMDRDY)) - { - - } - mci_dbg("at91 mci power on\n");*/ - break; - default: - rt_kprintf("unknown power_mode %d\n", io_cfg->power_mode); - break; - } - -} - - -static void at91_mci_enable_sdio_irq(struct rt_mmcsd_host *host, rt_int32_t enable) -{ - at91_mci_write(enable ? AT91_MCI_IER : AT91_MCI_IDR, AT91_MCI_SDIOIRQB); -} - - -static const struct rt_mmcsd_host_ops ops = { - at91_mci_request, - at91_mci_set_iocfg, - RT_NULL, - at91_mci_enable_sdio_irq, -}; - -void at91_mci_detect(int irq, void *param) -{ - rt_kprintf("mmcsd gpio detected\n"); -} - -static void mci_gpio_init() -{ -#ifdef USE_SLOT_B - at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)); - at91_sys_write(AT91_PIOA + PIO_PUDR, (1 << 8)); - at91_sys_write(AT91_PIOA + PIO_BSR, (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)); - at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 8)); - at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)|(1 << 8)); - - at91_sys_write(AT91_PIOA + PIO_IDR, (1 << 6)|(1 << 7)); - at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 6)|(1 << 7)); - at91_sys_write(AT91_PIOA + PIO_ODR, (1 << 6)|(1 << 7)); - at91_sys_write(AT91_PIOA + PIO_PER, (1 << 6)|(1 << 7)); -#else - at91_sys_write(AT91_PIOA + PIO_PUER, (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)); - at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8)); - at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8)); -#endif -} - -int at91_mci_init(void) -{ - struct rt_mmcsd_host *host; - struct at91_mci *mci; - - host = mmcsd_alloc_host(); - if (!host) - { - return -RT_ERROR; - } - - mci = rt_malloc(sizeof(struct at91_mci)); - if (!mci) - { - rt_kprintf("alloc mci failed\n"); - goto err; - } - - rt_memset(mci, 0, sizeof(struct at91_mci)); - - host->ops = &ops; - host->freq_min = 375000; - host->freq_max = 25000000; - host->valid_ocr = VDD_32_33 | VDD_33_34; - host->flags = MMCSD_BUSWIDTH_4 | MMCSD_MUTBLKWRITE | \ - MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ; - host->max_seg_size = 65535; - host->max_dma_segs = 2; - host->max_blk_size = 512; - host->max_blk_count = 4096; - - mci->host = host; - - mci_gpio_init(); - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_MCI); //enable MCI clock - - at91_mci_disable(); - at91_mci_enable(); - - /* instal interrupt */ - rt_hw_interrupt_install(AT91SAM9260_ID_MCI, at91_mci_irq, - (void *)mci, "MMC"); - rt_hw_interrupt_umask(AT91SAM9260_ID_MCI); - rt_hw_interrupt_install(gpio_to_irq(AT91_PIN_PA7), - at91_mci_detect, RT_NULL, "MMC_DETECT"); - rt_hw_interrupt_umask(gpio_to_irq(AT91_PIN_PA7)); - - rt_timer_init(&mci->timer, "mci_timer", - at91_timeout_timer, - mci, - RT_TICK_PER_SECOND, - RT_TIMER_FLAG_PERIODIC); - - //rt_timer_start(&mci->timer); - - //rt_sem_init(&mci->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO); - - host->private_data = mci; - - mmcsd_change(host); - - return 0; - -err: - mmcsd_free_host(host); - - return -RT_ENOMEM; -} - -INIT_DEVICE_EXPORT(at91_mci_init); - -#include "finsh.h" -FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init); - -void mci_dump(void) -{ - rt_uint32_t i; - - rt_kprintf("PIOA_PSR=0x%08x\n", at91_sys_read(AT91_PIOA+PIO_PSR)); - rt_kprintf("PIOA_ABSR=0x%08x\n", at91_sys_read(AT91_PIOA+PIO_ABSR)); - rt_kprintf("PIOA_PUSR=0x%08x\n", at91_sys_read(AT91_PIOA+PIO_PUSR)); - - for (i = 0; i <= 0x4c; i += 4) { - rt_kprintf("0x%08x:0x%08x\n", AT91SAM9260_BASE_MCI+i, at91_mci_read(i)); - } -} - -FINSH_FUNCTION_EXPORT(mci_dump, dump register for mci); diff --git a/bsp/at91sam9260/drivers/at91_mci.h b/bsp/at91sam9260/drivers/at91_mci.h deleted file mode 100644 index 80eb07385d..0000000000 --- a/bsp/at91sam9260/drivers/at91_mci.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-06-09 weety first version - */ - -#ifndef __AT91_MCI_H__ -#define __AT91_MCI_H__ - -#define AT91_MCI_CR 0x00 /* Control Register */ -#define AT91_MCI_MCIEN (1 << 0) /* Multi-Media Interface Enable */ -#define AT91_MCI_MCIDIS (1 << 1) /* Multi-Media Interface Disable */ -#define AT91_MCI_PWSEN (1 << 2) /* Power Save Mode Enable */ -#define AT91_MCI_PWSDIS (1 << 3) /* Power Save Mode Disable */ -#define AT91_MCI_SWRST (1 << 7) /* Software Reset */ - -#define AT91_MCI_MR 0x04 /* Mode Register */ -#define AT91_MCI_CLKDIV (0xff << 0) /* Clock Divider */ -#define AT91_MCI_PWSDIV (7 << 8) /* Power Saving Divider */ -#define AT91_MCI_RDPROOF (1 << 11) /* Read Proof Enable [SAM926[03] only] */ -#define AT91_MCI_WRPROOF (1 << 12) /* Write Proof Enable [SAM926[03] only] */ -#define AT91_MCI_PDCFBYTE (1 << 13) /* PDC Force Byte Transfer [SAM926[03] only] */ -#define AT91_MCI_PDCPADV (1 << 14) /* PDC Padding Value */ -#define AT91_MCI_PDCMODE (1 << 15) /* PDC-orientated Mode */ -#define AT91_MCI_BLKLEN (0xfff << 18) /* Data Block Length */ - -#define AT91_MCI_DTOR 0x08 /* Data Timeout Register */ -#define AT91_MCI_DTOCYC (0xf << 0) /* Data Timeout Cycle Number */ -#define AT91_MCI_DTOMUL (7 << 4) /* Data Timeout Multiplier */ -#define AT91_MCI_DTOMUL_1 (0 << 4) -#define AT91_MCI_DTOMUL_16 (1 << 4) -#define AT91_MCI_DTOMUL_128 (2 << 4) -#define AT91_MCI_DTOMUL_256 (3 << 4) -#define AT91_MCI_DTOMUL_1K (4 << 4) -#define AT91_MCI_DTOMUL_4K (5 << 4) -#define AT91_MCI_DTOMUL_64K (6 << 4) -#define AT91_MCI_DTOMUL_1M (7 << 4) - -#define AT91_MCI_SDCR 0x0c /* SD Card Register */ -#define AT91_MCI_SDCSEL (3 << 0) /* SD Card Selector */ -#define AT91_MCI_SDCBUS (1 << 7) /* 1-bit or 4-bit bus */ - -#define AT91_MCI_ARGR 0x10 /* Argument Register */ - -#define AT91_MCI_CMDR 0x14 /* Command Register */ -#define AT91_MCI_CMDNB (0x3f << 0) /* Command Number */ -#define AT91_MCI_RSPTYP (3 << 6) /* Response Type */ -#define AT91_MCI_RSPTYP_NONE (0 << 6) -#define AT91_MCI_RSPTYP_48 (1 << 6) -#define AT91_MCI_RSPTYP_136 (2 << 6) -#define AT91_MCI_SPCMD (7 << 8) /* Special Command */ -#define AT91_MCI_SPCMD_NONE (0 << 8) -#define AT91_MCI_SPCMD_INIT (1 << 8) -#define AT91_MCI_SPCMD_SYNC (2 << 8) -#define AT91_MCI_SPCMD_ICMD (4 << 8) -#define AT91_MCI_SPCMD_IRESP (5 << 8) -#define AT91_MCI_OPDCMD (1 << 11) /* Open Drain Command */ -#define AT91_MCI_MAXLAT (1 << 12) /* Max Latency for Command to Response */ -#define AT91_MCI_TRCMD (3 << 16) /* Transfer Command */ -#define AT91_MCI_TRCMD_NONE (0 << 16) -#define AT91_MCI_TRCMD_START (1 << 16) -#define AT91_MCI_TRCMD_STOP (2 << 16) -#define AT91_MCI_TRDIR (1 << 18) /* Transfer Direction */ -#define AT91_MCI_TRTYP (3 << 19) /* Transfer Type */ -#define AT91_MCI_TRTYP_BLOCK (0 << 19) -#define AT91_MCI_TRTYP_MULTIPLE (1 << 19) -#define AT91_MCI_TRTYP_STREAM (2 << 19) - -#define AT91_MCI_BLKR 0x18 /* Block Register */ -#define AT91_MCI_BLKR_BCNT(n) ((0xffff & (n)) << 0) /* Block count */ -#define AT91_MCI_BLKR_BLKLEN(n) ((0xffff & (n)) << 16) /* Block lenght */ - -#define AT91_MCI_RSPR(n) (0x20 + ((n) * 4)) /* Response Registers 0-3 */ -#define AT91_MCR_RDR 0x30 /* Receive Data Register */ -#define AT91_MCR_TDR 0x34 /* Transmit Data Register */ - -#define AT91_MCI_SR 0x40 /* Status Register */ -#define AT91_MCI_CMDRDY (1U << 0) /* Command Ready */ -#define AT91_MCI_RXRDY (1U << 1) /* Receiver Ready */ -#define AT91_MCI_TXRDY (1U << 2) /* Transmit Ready */ -#define AT91_MCI_BLKE (1U << 3) /* Data Block Ended */ -#define AT91_MCI_DTIP (1U << 4) /* Data Transfer in Progress */ -#define AT91_MCI_NOTBUSY (1U << 5) /* Data Not Busy */ -#define AT91_MCI_ENDRX (1U << 6) /* End of RX Buffer */ -#define AT91_MCI_ENDTX (1U << 7) /* End fo TX Buffer */ -#define AT91_MCI_SDIOIRQA (1U << 8) /* SDIO Interrupt for Slot A */ -#define AT91_MCI_SDIOIRQB (1U << 9) /* SDIO Interrupt for Slot B */ -#define AT91_MCI_RXBUFF (1U << 14) /* RX Buffer Full */ -#define AT91_MCI_TXBUFE (1U << 15) /* TX Buffer Empty */ -#define AT91_MCI_RINDE (1U << 16) /* Response Index Error */ -#define AT91_MCI_RDIRE (1U << 17) /* Response Direction Error */ -#define AT91_MCI_RCRCE (1U << 18) /* Response CRC Error */ -#define AT91_MCI_RENDE (1U << 19) /* Response End Bit Error */ -#define AT91_MCI_RTOE (1U << 20) /* Reponse Time-out Error */ -#define AT91_MCI_DCRCE (1U << 21) /* Data CRC Error */ -#define AT91_MCI_DTOE (1U << 22) /* Data Time-out Error */ -#define AT91_MCI_OVRE (1U << 30) /* Overrun */ -#define AT91_MCI_UNRE (1U << 31) /* Underrun */ - -#define AT91_MCI_IER 0x44 /* Interrupt Enable Register */ -#define AT91_MCI_IDR 0x48 /* Interrupt Disable Register */ -#define AT91_MCI_IMR 0x4c /* Interrupt Mask Register */ - -extern int at91_mci_init(void); - -#endif diff --git a/bsp/at91sam9260/drivers/at91_nand.c b/bsp/at91sam9260/drivers/at91_nand.c deleted file mode 100644 index 2fc5b2edc4..0000000000 --- a/bsp/at91sam9260/drivers/at91_nand.c +++ /dev/null @@ -1,635 +0,0 @@ -/* -* Copyright (c) 2006-2022, RT-Thread Development Team -* -* SPDX-License-Identifier: Apache-2.0 -* -* Change Logs: -* Date Author Notes -* 2022-01-08 brightsally first version -*/ - -#include -#include -#include -#include -#include -#include -#include "at91_nand.h" - -static struct nand_chip_id *chip; -static unsigned int bufsize = 528; -static unsigned char pages_per_block = 32; -static unsigned char eccsize = 6; -static struct rt_mtd_nand_device _partition[2]; -/***************************************************************************** -nand_calculate_ecc function copy from uboot -*****************************************************************************/ -#define u_char unsigned char -/* Define default oob placement schemes for large and small page devices */ -static struct nand_ecclayout nand_oob_16 = -{ - - .eccbytes = 6, - .eccpos = {0, 1, 2, 3, 6, 7}, - .oobfree = { - { - .offset = 8, - . length = 8 - } - } -}; - -static struct nand_ecclayout nand_oob_64 = -{ - .eccbytes = 24, - .eccpos = { - 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63 - }, - .oobfree = { - { - .offset = 2, - .length = 38 - } - } -}; -/* -* Pre-calculated 256-way 1 byte column parity -*/ - -static const u_char nand_ecc_precalc_table[] = -{ - 0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00, - 0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65, - 0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66, - 0x03, 0x56, 0x55, 0x00, 0x5a, 0x0f, 0x0c, 0x59, 0x59, 0x0c, 0x0f, 0x5a, 0x00, 0x55, 0x56, 0x03, - 0x69, 0x3c, 0x3f, 0x6a, 0x30, 0x65, 0x66, 0x33, 0x33, 0x66, 0x65, 0x30, 0x6a, 0x3f, 0x3c, 0x69, - 0x0c, 0x59, 0x5a, 0x0f, 0x55, 0x00, 0x03, 0x56, 0x56, 0x03, 0x00, 0x55, 0x0f, 0x5a, 0x59, 0x0c, - 0x0f, 0x5a, 0x59, 0x0c, 0x56, 0x03, 0x00, 0x55, 0x55, 0x00, 0x03, 0x56, 0x0c, 0x59, 0x5a, 0x0f, - 0x6a, 0x3f, 0x3c, 0x69, 0x33, 0x66, 0x65, 0x30, 0x30, 0x65, 0x66, 0x33, 0x69, 0x3c, 0x3f, 0x6a, - 0x6a, 0x3f, 0x3c, 0x69, 0x33, 0x66, 0x65, 0x30, 0x30, 0x65, 0x66, 0x33, 0x69, 0x3c, 0x3f, 0x6a, - 0x0f, 0x5a, 0x59, 0x0c, 0x56, 0x03, 0x00, 0x55, 0x55, 0x00, 0x03, 0x56, 0x0c, 0x59, 0x5a, 0x0f, - 0x0c, 0x59, 0x5a, 0x0f, 0x55, 0x00, 0x03, 0x56, 0x56, 0x03, 0x00, 0x55, 0x0f, 0x5a, 0x59, 0x0c, - 0x69, 0x3c, 0x3f, 0x6a, 0x30, 0x65, 0x66, 0x33, 0x33, 0x66, 0x65, 0x30, 0x6a, 0x3f, 0x3c, 0x69, - 0x03, 0x56, 0x55, 0x00, 0x5a, 0x0f, 0x0c, 0x59, 0x59, 0x0c, 0x0f, 0x5a, 0x00, 0x55, 0x56, 0x03, - 0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66, - 0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65, - 0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00 -}; - -/** -* nand_calculate_ecc - [NAND Interface] Calculate 3-byte ECC for 256-byte block -* @mtd: MTD block structure -* @dat: raw data -* @ecc_code: buffer for ECC -*/ -int nand_calculate_ecc(const u_char *dat, u_char *ecc_code) -{ - uint8_t idx, reg1, reg2, reg3, tmp1, tmp2; - int i; - - /* Initialize variables */ - reg1 = reg2 = reg3 = 0; - - /* Build up column parity */ - for (i = 0; i < 256; i++) - { - /* Get CP0 - CP5 from table */ - idx = nand_ecc_precalc_table[*dat++]; - reg1 ^= (idx & 0x3f); - - /* All bit XOR = 1 ? */ - if (idx & 0x40) - { - reg3 ^= (uint8_t) i; - reg2 ^= ~((uint8_t) i); - } - } - - /* Create non-inverted ECC code from line parity */ - tmp1 = (reg3 & 0x80) >> 0; /* B7 -> B7 */ - tmp1 |= (reg2 & 0x80) >> 1; /* B7 -> B6 */ - tmp1 |= (reg3 & 0x40) >> 1; /* B6 -> B5 */ - tmp1 |= (reg2 & 0x40) >> 2; /* B6 -> B4 */ - tmp1 |= (reg3 & 0x20) >> 2; /* B5 -> B3 */ - tmp1 |= (reg2 & 0x20) >> 3; /* B5 -> B2 */ - tmp1 |= (reg3 & 0x10) >> 3; /* B4 -> B1 */ - tmp1 |= (reg2 & 0x10) >> 4; /* B4 -> B0 */ - - tmp2 = (reg3 & 0x08) << 4; /* B3 -> B7 */ - tmp2 |= (reg2 & 0x08) << 3; /* B3 -> B6 */ - tmp2 |= (reg3 & 0x04) << 3; /* B2 -> B5 */ - tmp2 |= (reg2 & 0x04) << 2; /* B2 -> B4 */ - tmp2 |= (reg3 & 0x02) << 2; /* B1 -> B3 */ - tmp2 |= (reg2 & 0x02) << 1; /* B1 -> B2 */ - tmp2 |= (reg3 & 0x01) << 1; /* B0 -> B1 */ - tmp2 |= (reg2 & 0x01) << 0; /* B7 -> B0 */ - - /* Calculate final ECC code */ -#ifdef CONFIG_MTD_NAND_ECC_SMC - ecc_code[0] = ~tmp2; - ecc_code[1] = ~tmp1; -#else - ecc_code[0] = ~tmp1; - ecc_code[1] = ~tmp2; -#endif - ecc_code[2] = ((~reg1) << 2) | 0x03; - - return 0; -} -/*********nand_calculate_ecc function copy from uboot end*********************/ -static void at91_nand_udelay(rt_uint32_t us) -{ - rt_uint32_t len; - for (; us > 0; us --) - for (len = 0; len < 10; len++); -} -static void wait_udelay() -{ - if (chip->pagesize == 2048)at91_nand_udelay(2000); - else at91_nand_udelay(1); -} -void nand_enable_cs(void) -{ - writel(0x00004000, 0xfffff834); - readl(0xfffff838); - //rt_kprintf("===i=0x%x\r\n",i); - wait_udelay(); -} -void nand_disable_cs(void) -{ - writeb(0xff, 0x40400000); - writel(0x00004000, 0xfffff830); - readl(0xfffff830); - wait_udelay(); -} - -void nand_write_cmd(unsigned char cmd) -{ - writeb(cmd, CMD_REG); - wait_udelay(); -} -void nand_write_addr(unsigned char addr) -{ - writeb(addr, ADDR_REG); - wait_udelay(); -} -void nand_write_data_byte(unsigned char data) -{ - writeb(data, DATA_REG); - wait_udelay(); -} - -unsigned char nand_read_data_byte(void) -{ - return readb(DATA_REG); -} - -static int nand_wait_ready(void) -{ - unsigned int timeout = 10000; - - nand_write_cmd(CMD_STATUS); - while ((!(nand_read_data_byte() & STATUS_READY)) && timeout--); - if (!timeout)return -1; - return 0; -} - -//---------------------------------------------------------------- -/* read chip id */ -static rt_err_t at9260_nand_read_id(struct rt_mtd_nand_device *device) -{ - int manf_id, dev_id; - unsigned int chipid; - unsigned int i; - - nand_enable_cs(); - - nand_write_cmd(CMD_READID); - nand_write_addr(CMD_READ_1); - manf_id = nand_read_data_byte(); - dev_id = nand_read_data_byte(); - nand_disable_cs(); - - chipid = (manf_id << 8) | dev_id; - - for (i = 0; i < ARRAY_SIZE(nand_ids); i++) - { - if (chipid == nand_ids[i].chip_id) - break; - } - - if (i == ARRAY_SIZE(nand_ids)) - { - rt_kprintf("NAND: Not found Manufacturer ID: %x," \ - "Chip ID: 0x%x\n", manf_id, dev_id); - return -1; - } - - //find nand chip - rt_kprintf("NAND: Manufacturer ID: %x Chip ID: %x Total Block:%d\n", manf_id, dev_id, nand_ids[i].numblocks); - - chip->numblocks = nand_ids[i].numblocks; - chip->pagesize = nand_ids[i].pagesize; - chip->blocksize = nand_ids[i].blocksize; - chip->oobsize = nand_ids[i].oobsize; - chip->buswidth = nand_ids[i].buswidth; - chip->numblocks = nand_ids[i].numblocks; - - bufsize = chip->pagesize + chip->oobsize; - eccsize = (chip->pagesize) * 3 / 256; - - if (chip->pagesize == 512) - { - pages_per_block = 32; - rt_kprintf("===small block pages===== \n"); - } - else if (chip->pagesize == 2048) - { - pages_per_block = 64; - rt_kprintf("===big block pages===== \n"); - } - - return i; -} - -int nand_read_page9260(unsigned int block, unsigned int page, unsigned char *data, rt_uint32_t data_len, unsigned char *spare, rt_uint32_t spare_len) -{ - int i = 0; - unsigned int blockpage; - unsigned char buff1[bufsize]; - - blockpage = block * (pages_per_block) + page; - memset(buff1, 0xff, bufsize); - - nand_enable_cs(); - nand_write_cmd(CMD_READ_A0); - nand_write_addr(0); - if (bufsize == 2112)nand_write_addr(0); - nand_write_addr(blockpage & 0xff); - nand_write_addr((blockpage >> 8) & 0xff); - nand_write_addr((blockpage >> 16) & 0xff); - - at91_nand_udelay(2000); - - if (bufsize == 528)nand_write_cmd(CMD_READ_1); - else if (bufsize == 2112)nand_write_cmd(CMD_READ_2); - - for (i = 0; i < chip->pagesize; i++)buff1[i] = nand_read_data_byte(); - for (i = 0; i < chip->oobsize; i++)buff1[i + chip->pagesize] = nand_read_data_byte(); - - nand_wait_ready(); - nand_disable_cs(); - - if (data != RT_NULL) - rt_memcpy(data, buff1, data_len); - if (spare != RT_NULL) - rt_memcpy(spare, &buff1[chip->pagesize], spare_len); - - return 0x00; -} -//============================================================================ -static rt_err_t at9260_nand_read_page(struct rt_mtd_nand_device *device, - rt_off_t page, - rt_uint8_t *data, rt_uint32_t data_len, - rt_uint8_t *spare, rt_uint32_t spare_len) - -{ - return nand_read_page9260(page / pages_per_block, page % pages_per_block, data, data_len, spare, spare_len); -} - -int nand_write_page9260(unsigned int block, unsigned int page, unsigned char *data, rt_uint32_t data_len, unsigned char *spare, rt_uint32_t spare_len) -{ - unsigned int blockpage; - unsigned char buff2[chip->pagesize]; - unsigned char se[chip->oobsize]; - unsigned char ecc_code[eccsize]; - int i = 0; - - blockpage = block * (pages_per_block) + page; - memset(buff2, 0xff, chip->pagesize); - memset(se, 0xff, chip->oobsize); - memset(ecc_code, 0xff, eccsize); - - nand_enable_cs(); - nand_write_cmd(CMD_WRITE_1); - - nand_write_addr(0); - if (bufsize == 2112)nand_write_addr(0); - nand_write_addr(blockpage & 0xff); - nand_write_addr((blockpage >> 8) & 0xff); - nand_write_addr((blockpage >> 16) & 0xff); - - at91_nand_udelay(2000); - - for (i = 0; i < data_len; i++)buff2[i] = *(data + i); - for (i = 0; i < chip->pagesize; i++) - { - nand_write_data_byte(buff2[i]); - } - -#ifndef RT_USING_DFS_UFFS - if (bufsize == 528) - { - //caclu ECC - nand_calculate_ecc(buff2, ecc_code); - nand_calculate_ecc(&buff2[256], &ecc_code[3]); - //use uboot MTD ECC layout - for (i = 0; i < 6; i++) - { - se[nand_oob_16.eccpos[i]] = ecc_code[i]; - } - } - else if (bufsize == 2112) - { - //caclu ECC - for (i = 0; i < 8; i++) - { - nand_calculate_ecc(&buff2[256 * i], &(ecc_code[3 * i])); - } - //use uboot MTD ECC layout - for (i = 0; i < 24; i++) - { - se[nand_oob_64.eccpos[i]] = ecc_code[i]; - } - } -#else - //UFFS do ECC - for (i = 0; i < chip->oobsize; i++) - { - se[i] = *(spare + i); - } -#endif - - for (i = 0; i < chip->oobsize; i++) - { - nand_write_data_byte(se[i]); - } - - nand_write_cmd(CMD_WRITE_2); - nand_wait_ready(); - nand_disable_cs(); - - return RT_EOK; -} -//=========================================================================================== -static rt_err_t at9260_nand_write_page(struct rt_mtd_nand_device *device, - rt_off_t page, - rt_uint8_t *data, rt_uint32_t data_len, - rt_uint8_t *oob, rt_uint32_t spare_len) -{ - - return nand_write_page9260(page / pages_per_block, page % pages_per_block, data, data_len, oob, spare_len); -} -//=========================================================================================== -static rt_err_t at9260_nand_move_page(struct rt_mtd_nand_device *device, rt_off_t src_page, rt_off_t dst_page) -{ - return RT_EOK; -} -//=========================================================================================== -static long at9260_nand_isbad(struct rt_mtd_nand_device *nand, uint32_t blk) -{ - int i = 0; - unsigned char buff2[bufsize]; - unsigned int blockpage = blk * (chip->blocksize / chip->pagesize) + 0; - - memset(buff2, 0xff, bufsize); - - //read blk page 0 - nand_enable_cs(); - nand_write_cmd(CMD_READ_A0); - nand_write_addr(0); - if (bufsize == 2112)nand_write_addr(0); - nand_write_addr(blockpage & 0xff); - nand_write_addr((blockpage >> 8) & 0xff); - nand_write_addr((blockpage >> 16) & 0xff); - - at91_nand_udelay(2000); - - if (bufsize == 528)nand_write_cmd(CMD_READ_1); - else if (bufsize == 2112)nand_write_cmd(CMD_READ_2); - - for (i = 0; i < bufsize; i++) - { - buff2[i] = nand_read_data_byte(); - } - nand_disable_cs(); - - if (bufsize == 528) - { - if (buff2[5 + 512] != 0xff) - { - rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #0 of block #%d,addr=0x%x \n\r", buff2[5 + 512], blk, blk * 512 * 32); - return buff2[5 + 512]; - } - } - else if (bufsize == 2112) - { - if ((buff2[2048 + 0] != 0xff) && (buff2[2048 + 1] != 0xff)) - { - rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #0 of block #%d,addr=0x%x \n\r", buff2[0 + 2048], blk, blk * 2048 * 64); - return buff2[0 + 2048] << 8 | buff2[0 + 2048]; - } - } - - //read blk page 1 - blockpage = blockpage + 1; - memset(buff2, 0xff, bufsize); - nand_enable_cs(); - nand_write_cmd(CMD_READ_A0); - nand_write_addr(0); - if (bufsize == 2112)nand_write_addr(0); - nand_write_addr(blockpage & 0xff); - nand_write_addr((blockpage >> 8) & 0xff); - nand_write_addr((blockpage >> 16) & 0xff); - at91_nand_udelay(2000); - - if (bufsize == 528)nand_write_cmd(CMD_READ_1); - else if (bufsize == 2112)nand_write_cmd(CMD_READ_2); - - - for (i = 0; i < bufsize; i++) - { - buff2[i] = nand_read_data_byte(); - } - - nand_disable_cs(); - - if (bufsize == 528) - { - if (buff2[5 + 512] != 0xff) - { - rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #1 of block #%d,addr=0x%x \n\r", buff2[5 + 512], blk, blk * 512 * 32); - return buff2[5 + 512]; - } - } - else if (bufsize == 2112) - { - if ((buff2[2048 + 0] != 0xff) && (buff2[2048 + 1] != 0xff)) - { - rt_kprintf("\r\n Bad Block=0x%x: Cannot read page #1 of block #%d,addr=0x%x \n\r", buff2[0 + 2048], blk, blk * 2048 * 64); - return buff2[0 + 2048] << 8 | buff2[0 + 2048]; - } - } - - return GOODBLOCK; -} - -static long at9260_nand_markbad(struct rt_mtd_nand_device *nand, uint32_t blk) -{ - unsigned int i = 0; - unsigned int blockpage = blk * (chip->blocksize / chip->pagesize) + 0; - unsigned char bad_flag = 0xff; - long ret_bad; - - ret_bad = at9260_nand_isbad(nand, blk); - - if (bufsize == 528)bad_flag = ret_bad & 0xff; - else if (bufsize == 2112) - { - if (bad_flag == 0xff)bad_flag = (ret_bad >> 8) & 0xff; - } - - if (bad_flag != 0xff) - { - nand_enable_cs(); - nand_write_cmd(CMD_WRITE_1); - nand_write_addr(0); - if (bufsize == 2112)nand_write_addr(0); - nand_write_addr(blockpage & 0xff); - nand_write_addr((blockpage >> 8) & 0xff); - nand_write_addr((blockpage >> 16) & 0xff); - at91_nand_udelay(2000); - - for (i = 0; i < bufsize; i++) - { - nand_write_data_byte(0x00); - } - - nand_write_cmd(CMD_WRITE_2); - nand_wait_ready(); - nand_disable_cs(); - } - return RT_EOK; -} -//--------------------------------------------------------------------------------------------- -/* erase block */ -static rt_err_t at9260_nand_erase_block(struct rt_mtd_nand_device *device, rt_uint32_t block) -{ - unsigned int row_address; - - - //Calculate address used for erase - row_address = (block) * (chip->blocksize / chip->pagesize); - - nand_enable_cs(); - nand_write_cmd(CMD_ERASE_1); - nand_write_addr(row_address & 0xff); - nand_write_addr((row_address >> 8) & 0xff); - nand_write_addr((row_address >> 16) & 0xff); - nand_write_cmd(CMD_ERASE_2); - - at91_nand_udelay(2000); - nand_wait_ready(); - nand_disable_cs(); - return RT_EOK; -} - -const static struct rt_mtd_nand_driver_ops _ops = -{ - at9260_nand_read_id, - at9260_nand_read_page, - at9260_nand_write_page, - at9260_nand_move_page, - at9260_nand_erase_block, -#ifndef RT_USING_DFS_UFFS - at9260_nand_isbad, - at9260_nand_markbad, -#else - RT_NULL, - RT_NULL, -#endif -}; - -void nand_eraseall(void); - -int rt_hw_mtd_nand_init(void) -{ - unsigned int i, reg, index; - - /* Setup Smart Media, first enable the address range of CS3 in HMATRIX user interface */ - reg = readl(AT91C_BASE_CCFG + CCFG_EBICSA); - reg |= AT91C_EBI_CS3A_SM; - writel(reg, AT91C_BASE_CCFG + CCFG_EBICSA); - /* Configure SMC CS3 */ - writel((AT91C_SMC_NWESETUP_(1) | AT91C_SMC_NCS_WRSETUP_(0) | AT91C_SMC_NRDSETUP_(1) | AT91C_SMC_NCS_RDSETUP_(0)), AT91C_BASE_SMC + SMC_SETUP3); - writel((AT91C_SMC_NWEPULSE_(3) | AT91C_SMC_NCS_WRPULSE_(3) | AT91C_SMC_NRDPULSE_(3) | AT91C_SMC_NCS_RDPULSE_(3)), AT91C_BASE_SMC + SMC_PULSE3); - writel((AT91C_SMC_NWECYCLE_(5) | AT91C_SMC_NRDCYCLE_(5)), AT91C_BASE_SMC + SMC_CYCLE3); - writel((AT91C_SMC_READMODE | AT91C_SMC_WRITEMODE | (0x0 << 5) | AT91C_SMC_DBW_WIDTH_BITS_8 | AT91_SMC_TDF_(2)), AT91C_BASE_SMC + SMC_CTRL3); - /* {"NANDCS", AT91C_PIN_PC(14), 1, PIO_PULLUP, PIO_OUTPUT} */ - writel((0x01 << 14), 0xfffff800 + 0x0044); - writel((0x01 << 14), 0xfffff800 + 0x0060); - writel((0x01 << 14), 0xfffff800 + 0x0030); - writel((0x01 << 14), 0xfffff800 + 0x0010); - writel((0x01 << 14), 0xfffff800 + 0x0000); - /* enable PIOC clock */ - writel(0x01 << 4, 0x10 + AT91C_BASE_PMC); - i = at9260_nand_read_id(RT_NULL); - index = i; - - chip->pagesize = nand_ids[index].pagesize; - chip->blocksize = nand_ids[index].blocksize; - chip->oobsize = nand_ids[index].oobsize; - chip->buswidth = nand_ids[index].buswidth; - chip->numblocks = nand_ids[index].numblocks; - - _partition[0].page_size = chip->pagesize; - _partition[1].page_size = chip->pagesize; - _partition[0].pages_per_block = chip->blocksize / chip->pagesize; - _partition[1].pages_per_block = chip->blocksize / chip->pagesize; - _partition[0].oob_size = _partition[1].oob_size = chip->oobsize; - _partition[0].oob_free = _partition[1].oob_free = chip->oobsize - (chip->pagesize / 256 * 3); //oob_free = oob_size - ecc_size - - - _partition[0].block_total = DATA_PART_ADDR / (chip->blocksize); - _partition[0].block_start = 0; - _partition[0].block_end = DATA_PART_ADDR / (chip->blocksize) - 1; - - _partition[1].block_total = chip->numblocks - _partition[0].block_total; - _partition[1].block_start = _partition[0].block_end + 1; - _partition[1].block_end = chip->numblocks - 1; - - _partition[0].ops = &_ops; - _partition[1].ops = &_ops; - - rt_mtd_nand_register_device("nand0", &_partition[0]); - rt_mtd_nand_register_device("nand1", &_partition[1]); - - return RT_EOK; -} -INIT_DEVICE_EXPORT(rt_hw_mtd_nand_init); - -#if defined(RT_USING_FINSH) -#include -void nand_eraseall() -{ - int tmp=0; - int index=0; - - - if (chip->pagesize == 512) - tmp = (DATA_PART_ADDR / 0x4000); //0X4000=512*32=PAGER_SIZE*PAGES_PER_BLOCK - else if (chip->pagesize == 2048) - tmp = (DATA_PART_ADDR / 0x20000); //0X20000=2048*64 - - for (index=tmp; index < chip->numblocks; index ++) - { - at9260_nand_erase_block(RT_NULL, index); - } -} -FINSH_FUNCTION_EXPORT(nand_eraseall, erase all of block in the nand flash); - -#endif //RT_USING_FINSH - - diff --git a/bsp/at91sam9260/drivers/at91_nand.h b/bsp/at91sam9260/drivers/at91_nand.h deleted file mode 100644 index 078d3d4cb5..0000000000 --- a/bsp/at91sam9260/drivers/at91_nand.h +++ /dev/null @@ -1,120 +0,0 @@ -/* -* Copyright (c) 2006-2022, RT-Thread Development Team -* -* SPDX-License-Identifier: Apache-2.0 -* -* Change Logs: -* Date Author Notes -* 2022-01-08 brightsally first version -*/ - -#ifndef _ATMEL_NAND_H_ -#define _ATMEL_NAND_H_ - - -/* NAND flash */ -#define DATA_PART_ADDR 0x900000 /*nand0=0-9MB;nand1=9MB-END*/ - -#define AT91C_BASE_CCFG 0xffffef14 -#define CCFG_EBICSA 0x08 /* EBI Chip Select Assignement Register */ -#define AT91C_EBI_CS3A_SM (0x1UL << 3) -#define AT91C_BASE_SMC 0xffffec00 -#define AT91C_BASE_PMC 0xfffffc00 -#define SMC_SETUP3 0x30 /* Setup Register for CS 3 */ -#define SMC_PULSE3 0x34 /* Pulse Register for CS 3 */ -#define SMC_CYCLE3 0x38 /* Cycle Register for CS 3 */ -#define SMC_CTRL3 0x3C /* Control Register for CS 3 */ - -#define AT91C_SMC_NWESETUP_(x) ((x) << 0) -#define AT91C_SMC_NCS_WRSETUP_(x) ((x) << 8) -#define AT91C_SMC_NRDSETUP_(x) ((x) << 16) -#define AT91C_SMC_NCS_RDSETUP_(x) ((x) << 24) -#define AT91C_SMC_NWEPULSE_(x) ((x) << 0) -#define AT91C_SMC_NCS_WRPULSE_(x) ((x) << 8) -#define AT91C_SMC_NRDPULSE_(x) ((x) << 16) -#define AT91C_SMC_NCS_RDPULSE_(x) ((x) << 24) - -#define AT91C_SMC_NWECYCLE_(x) ((x) << 0) -#define AT91C_SMC_NRDCYCLE_(x) ((x) << 16) - -#define AT91C_SMC_READMODE (0x1UL << 0) -#define AT91C_SMC_WRITEMODE (0x1UL << 1) -#define AT91C_SMC_NWAITM (0x3UL << 4) -#define AT91C_SMC_DBW_WIDTH_BITS_8 (0x0UL << 12) -#define AT91C_SMC_DBW_WIDTH_BITS_16 (0x1UL << 12) -#define AT91C_SMC_DBW_WIDTH_BITS_32 (0x2UL << 12) -#define AT91C_SMC_TDF (0xFUL << 16) -#define AT91_SMC_TDF_(x) ((x) << 16) - -#define CMD_STATUS 0x70 -#define STATUS_READY (0x01 << 6) /* Status code for Ready */ -#define STATUS_ERROR (0x01 << 0) /* Status code for Error */ - -/* Nand flash commands */ -#define CMD_READID 0x90 -#define CMD_READ_1 0x00 -#define CMD_READ_2 0x30 - -#define CMD_READ_A0 0x00 -#define CMD_READ_A1 0x01 -#define CMD_READ_C 0x50 - -#define CMD_WRITE_A 0x00 -#define CMD_WRITE_C 0x50 - -#define CMD_WRITE_1 0x80 -#define CMD_WRITE_2 0x10 - -#define CMD_ERASE_1 0x60 -#define CMD_ERASE_2 0xD0 - -/* read/write/move page */ -#define CMD_REG 0x40400000 -#define ADDR_REG 0x40200000 -#define DATA_REG 0x40000000 - -/*Values returned by the CheckBlock() function -GOOD = RT_EOK=0 -BAD = -1 -*/ -#define BADBLOCK -RT_ERROR //-1 -#define GOODBLOCK RT_EOK //0 - -struct nand_oobfree -{ - unsigned int offset; - unsigned int length; -}; - -struct nand_ecclayout -{ - unsigned int eccbytes; - unsigned int eccpos[680]; - unsigned int oobavail; - struct nand_oobfree oobfree[32]; -}; - -struct nand_chip_id -{ - unsigned short chip_id; /* Nand Chip ID */ - unsigned short numblocks; //0x1000=4096=4K //4K*16K=64M - unsigned int blocksize; //0x4000=16K //SECTOR - unsigned short pagesize; //0X200=512 //1 BLOCK has pages=16K/512=32 - unsigned char oobsize; //0X10=16 - unsigned char buswidth; -}; -static struct nand_chip_id nand_ids[] = -{ - - /* Samsung 32MB 8Bit SMALL BLOCK*/ - {0xec75, 0x800, 0x4000, 0x200, 0x10, 0x0}, //32M - {0xec35, 0x800, 0x4000, 0x200, 0x10, 0x0}, //32M - {0xec36, 0x1000, 0x4000, 0x200, 0x10, 0x0}, //4K*16K=64M - /* Samsung 128MB 8bit BIG BLOCK*/ - {0xeca1, 0x400, 0x20000, 0x800, 0x40, 0x0}, //128M - {0,} -}; - - -int rt_hw_mtd_nand_init(void); -#endif diff --git a/bsp/at91sam9260/drivers/board.c b/bsp/at91sam9260/drivers/board.c deleted file mode 100644 index c009375615..0000000000 --- a/bsp/at91sam9260/drivers/board.c +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include - -#include "board.h" -#include - -/** - * @addtogroup at91sam9260 - */ -/*@{*/ -#if defined(__CC_ARM) -extern int Image$$ER_ZI$$ZI$$Limit; -#define HEAP_BEGIN (&Image$$ER_ZI$$ZI$$Limit) -#elif (defined (__GNUC__)) -extern unsigned char __bss_end__; -#define HEAP_BEGIN (&__bss_end__) -#elif (defined (__ICCARM__)) -#pragma section=".noinit" -#define HEAP_BEGIN (__section_end(".noinit")) -#endif - -#define HEAP_END (((rt_uint32_t)HEAP_BEGIN & (0xF0 << 24)) + (32 << 20)) - -extern void rt_hw_interrupt_init(void); -extern void rt_hw_clock_init(void); - -extern void rt_hw_get_clock(void); -extern void rt_hw_set_dividor(rt_uint8_t hdivn, rt_uint8_t pdivn); -extern void rt_hw_set_clock(rt_uint8_t sdiv, rt_uint8_t pdiv, rt_uint8_t mdiv); -extern void rt_dbgu_isr(void); - -static struct mem_desc at91_mem_desc[] = { - { 0x00000000, 0xFFFFFFFF, 0x00000000, RW_NCNB }, /* None cached for 4G memory */ - { 0x20000000, 0x24000000-1, 0x20000000, RW_CB }, /* 64M cached SDRAM memory */ - { 0x00000000, 0x100000, 0x20000000, RW_CB }, /* isr vector table */ - { 0x90000000, 0x90400000-1, 0x00200000, RW_NCNB }, /* 4K SRAM0@2M + 4k SRAM1@3M + 16k UHP@5M */ - { 0xA0000000, 0xA4000000-1, 0x20000000, RW_NCNB } /* 64M none-cached SDRAM memory */ -}; - - -#define PIT_CPIV(x) ((x) & AT91_PIT_CPIV) -#define PIT_PICNT(x) (((x) & AT91_PIT_PICNT) >> 20) - -static rt_uint32_t pit_cycle; /* write-once */ -static rt_uint32_t pit_cnt; /* access only w/system irq blocked */ - -/** - * This function will handle rtos timer - */ -void rt_timer_handler(int vector, void *param) -{ - #ifdef RT_USING_DBGU - if (at91_sys_read(AT91_DBGU + AT91_US_CSR) & 0x1) - { - rt_dbgu_isr(); - } - #endif - if (at91_sys_read(AT91_PIT_SR) & AT91_PIT_PITS) - { - unsigned nr_ticks; - - /* Get number of ticks performed before irq, and ack it */ - nr_ticks = PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); - rt_tick_increase(); - } -} - -static void at91sam926x_pit_reset(void) -{ - /* Disable timer and irqs */ - at91_sys_write(AT91_PIT_MR, 0); - - /* Clear any pending interrupts, wait for PIT to stop counting */ - while (PIT_CPIV(at91_sys_read(AT91_PIT_PIVR)) != 0) - ; - - /* Start PIT but don't enable IRQ */ - //at91_sys_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN); - pit_cnt += pit_cycle * PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); - at91_sys_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN - | AT91_PIT_PITIEN); - rt_kprintf("PIT_MR=0x%08x\n", at91_sys_read(AT91_PIT_MR)); -} - -/* - * Set up both clocksource and clockevent support. - */ -static void at91sam926x_pit_init(void) -{ - rt_uint32_t pit_rate; - rt_uint32_t bits; - - /* - * Use our actual MCK to figure out how many MCK/16 ticks per - * 1/HZ period (instead of a compile-time constant LATCH). - */ - pit_rate = clk_get_rate(clk_get("mck")) / 16; - rt_kprintf("pit_rate=%dHZ\n", pit_rate); - pit_cycle = (pit_rate + RT_TICK_PER_SECOND/2) / RT_TICK_PER_SECOND; - - /* Initialize and enable the timer */ - at91sam926x_pit_reset(); - -} - -/** - * This function will init pit for system ticks - */ - void rt_hw_timer_init() - { - at91sam926x_pit_init(); - - /* install interrupt handler */ - rt_hw_interrupt_install(AT91_ID_SYS, rt_timer_handler, - RT_NULL, "system"); - rt_hw_interrupt_umask(AT91_ID_SYS); - - } - - void at91_tc1_init() - { - at91_sys_write(AT91_PMC_PCER, 1<CSR & TXRDY)); - DBGU->THR = c; -} - -/** - * This function is used to display a string on console, normally, it's - * invoked by rt_kprintf - * - * @param str the displayed string - */ -void rt_hw_console_output(const char* str) -{ - while (*str) - { - if (*str=='\n') - { - at91_usart_putc('\r'); - } - - at91_usart_putc(*str++); - } -} - -static void rt_hw_console_init(void) -{ - int div; - int mode = 0; - - DBGU->CR = AT91_US_RSTTX | AT91_US_RSTRX | - AT91_US_RXDIS | AT91_US_TXDIS; - mode |= AT91_US_USMODE_NORMAL | AT91_US_USCLKS_MCK | - AT91_US_CHMODE_NORMAL; - mode |= AT91_US_CHRL_8; - mode |= AT91_US_NBSTOP_1; - mode |= AT91_US_PAR_NONE; - DBGU->MR = mode; - div = (clk_get_rate(clk_get("mck")) / 16 + BPS/2) / BPS; - DBGU->BRGR = div; - DBGU->CR = AT91_US_RXEN | AT91_US_TXEN; -} - - -/** - * This function will init at91sam9260 board - */ -void rt_hw_board_init() -{ - /* initialize the system clock */ - rt_hw_clock_init(); - - /* initialize console */ - rt_hw_console_init(); - - /* initialize mmu */ - rt_hw_mmu_init(at91_mem_desc, sizeof(at91_mem_desc)/sizeof(at91_mem_desc[0])); - - /* initialize hardware interrupt */ - rt_hw_interrupt_init(); - - /* initialize early device */ -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif - -#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); -#endif - - /* initialize timer0 */ - rt_hw_timer_init(); - -/* initialize board */ -#ifdef RT_USING_HEAP - rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END); -#endif - -} - -/*@}*/ diff --git a/bsp/at91sam9260/drivers/board.h b/bsp/at91sam9260/drivers/board.h deleted file mode 100644 index c3f4435077..0000000000 --- a/bsp/at91sam9260/drivers/board.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety add board.h to this bsp - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - -#include - -void rt_hw_board_init(void); - -#endif diff --git a/bsp/at91sam9260/drivers/led.c b/bsp/at91sam9260/drivers/led.c deleted file mode 100644 index 10277813d4..0000000000 --- a/bsp/at91sam9260/drivers/led.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include -#include "led.h" - -#if 1 -// GB9260 board -#define PIO_LED AT91_PIOB -#define LED1 (1 << 25) // LED_SYS -#define LED2 (0) -#define LED3 (1 << 23) // LED_USR -#define LED_ALL (LED1 | LED2 | LED3) -#else -#define PIO_LED AT91_PIOC -#define LED1 (1 << 8) -#define LED2 (1 << 11) -#define LED3 (1 << 6) -#define LED_ALL (LED1 | LED2 | LED3) -#endif - -void led_init(void) -{ - at91_sys_write(PIO_LED+0x00, LED_ALL); - at91_sys_write(PIO_LED+0x10, LED_ALL); - at91_sys_write(PIO_LED+0x64, LED_ALL); - at91_sys_write(PIO_LED+0x30, LED_ALL); -} - -void led_on(int num) -{ - switch(num) - { - case 1: - at91_sys_write(PIO_LED+0x34, LED1); - break; - case 2: - at91_sys_write(PIO_LED+0x34, LED2); - break; - case 3: - at91_sys_write(PIO_LED+0x34, LED3); - break; - default: - break; - } -} - -void led_off(int num) -{ - switch(num) - { - case 1: - at91_sys_write(PIO_LED+0x30, LED1); - break; - case 2: - at91_sys_write(PIO_LED+0x30, LED2); - break; - case 3: - at91_sys_write(PIO_LED+0x30, LED3); - break; - default: - break; - } -} diff --git a/bsp/at91sam9260/drivers/led.h b/bsp/at91sam9260/drivers/led.h deleted file mode 100644 index 9836eff709..0000000000 --- a/bsp/at91sam9260/drivers/led.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __LED_H__ -#define __LED_H__ - -void led_init(void); -void led_on(int num); -void led_off(int num); - -#endif diff --git a/bsp/at91sam9260/drivers/macb.c b/bsp/at91sam9260/drivers/macb.c deleted file mode 100644 index 702d7e04a4..0000000000 --- a/bsp/at91sam9260/drivers/macb.c +++ /dev/null @@ -1,897 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-18 weety first version - */ - -#include -#include -#include "lwipopts.h" -#include -#include "macb.h" - -#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) - -extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); -extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); - -/* Cache macros - Packet buffers would be from pbuf pool which is cached */ -#define EMAC_VIRT_NOCACHE(addr) (addr) -#define EMAC_CACHE_INVALIDATE(addr, size) \ - mmu_invalidate_dcache((rt_uint32_t)addr, size) -#define EMAC_CACHE_WRITEBACK(addr, size) \ - mmu_clean_dcache((rt_uint32_t)addr, size) -#define EMAC_CACHE_WRITEBACK_INVALIDATE(addr, size) \ - mmu_clean_invalidated_dcache((rt_uint32_t)addr, size) - -/* EMAC has BD's in cached memory - so need cache functions */ -#define BD_CACHE_INVALIDATE(addr, size) -#define BD_CACHE_WRITEBACK(addr, size) -#define BD_CACHE_WRITEBACK_INVALIDATE(addr, size) - -/* EMAC internal utility function */ -rt_inline unsigned long emac_virt_to_phys(unsigned long addr) -{ - return addr; -} - - -#define AT91SAM9260_SRAM0_VIRT_BASE (0x90000000) - -#define MACB_TX_SRAM - -#if defined(MACB_TX_SRAM) -#define MACB_TX_RING_SIZE 2 -#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) -#define TX_RING_BYTES (sizeof(struct macb_dma_desc) * MACB_TX_RING_SIZE) -#else -#define MACB_TX_RING_SIZE 16 -#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) -#endif - -#define MACB_RX_BUFFER_SIZE (4096*4) -#define MACB_RX_RING_SIZE (MACB_RX_BUFFER_SIZE / 128) - -#define DEF_TX_RING_PENDING (MACB_TX_RING_SIZE) - -#define TX_RING_GAP(macb) \ - (MACB_TX_RING_SIZE - (macb)->tx_pending) - -#define TX_BUFFS_AVAIL(macb) \ - (((macb)->tx_tail <= (macb)->tx_head) ? \ - (macb)->tx_tail + (macb)->tx_pending - (macb)->tx_head : \ - (macb)->tx_tail - (macb)->tx_head - TX_RING_GAP(macb)) - -#define NEXT_TX(n) (((n) + 1) & (MACB_TX_RING_SIZE - 1)) - -#define NEXT_RX(n) (((n) + 1) & (MACB_RX_RING_SIZE - 1)) - -/* minimum number of free TX descriptors before waking up TX process */ -#define MACB_TX_WAKEUP_THRESH (MACB_TX_RING_SIZE / 4) - -#define MACB_RX_INT_FLAGS (MACB_BIT(RCOMP) | MACB_BIT(RXUBR) \ - | MACB_BIT(ISR_ROVR)) - -#define MACB_TX_TIMEOUT 1000 -#define MACB_AUTONEG_TIMEOUT 5000000 -#define MACB_LINK_TIMEOUT 500000 - -#define CONFIG_RMII - -struct macb_dma_desc { - rt_uint32_t addr; - rt_uint32_t ctrl; -}; - -#define RXADDR_USED 0x00000001 -#define RXADDR_WRAP 0x00000002 - -#define RXBUF_FRMLEN_MASK 0x00000fff -#define RXBUF_FRAME_START 0x00004000 -#define RXBUF_FRAME_END 0x00008000 -#define RXBUF_TYPEID_MATCH 0x00400000 -#define RXBUF_ADDR4_MATCH 0x00800000 -#define RXBUF_ADDR3_MATCH 0x01000000 -#define RXBUF_ADDR2_MATCH 0x02000000 -#define RXBUF_ADDR1_MATCH 0x04000000 -#define RXBUF_BROADCAST 0x80000000 - -#define TXBUF_FRMLEN_MASK 0x000007ff -#define TXBUF_FRAME_END 0x00008000 -#define TXBUF_NOCRC 0x00010000 -#define TXBUF_EXHAUSTED 0x08000000 -#define TXBUF_UNDERRUN 0x10000000 -#define TXBUF_MAXRETRY 0x20000000 -#define TXBUF_WRAP 0x40000000 -#define TXBUF_USED 0x80000000 - -/* Duplex, half or full. */ -#define DUPLEX_HALF 0x00 -#define DUPLEX_FULL 0x01 - -#define MAX_ADDR_LEN 6 -struct rt_macb_eth -{ - /* inherit from ethernet device */ - struct eth_device parent; - - unsigned int regs; - - unsigned int rx_tail; - unsigned int tx_head; - unsigned int tx_tail; - unsigned int rx_pending; - unsigned int tx_pending; - - void *rx_buffer; - void *tx_buffer; - struct macb_dma_desc *rx_ring; - struct macb_dma_desc *tx_ring; - - unsigned long rx_buffer_dma; - unsigned long tx_buffer_dma; - unsigned long rx_ring_dma; - unsigned long tx_ring_dma; - - unsigned int tx_stop; - - /* interface address info. */ - rt_uint8_t dev_addr[MAX_ADDR_LEN]; /* hw address */ - unsigned short phy_addr; - - struct rt_semaphore mdio_bus_lock; - struct rt_semaphore tx_lock; - struct rt_semaphore rx_lock; - struct rt_semaphore tx_ack; - rt_uint32_t speed; - rt_uint32_t duplex; - rt_uint32_t link; - struct rt_timer timer; -}; -static struct rt_macb_eth macb_device; - -static void macb_tx(struct rt_macb_eth *macb); - -static void udelay(rt_uint32_t us) -{ - rt_uint32_t len; - for (;us > 0; us --) - for (len = 0; len < 10; len++ ); -} - -static void rt_macb_isr(int irq, void *param) -{ - struct rt_macb_eth *macb = (struct rt_macb_eth *)param; - rt_device_t dev = &(macb->parent.parent); - rt_uint32_t status, rsr, tsr; - - status = macb_readl(macb, ISR); - - while (status) { - - if (status & MACB_RX_INT_FLAGS) - { - rsr = macb_readl(macb, RSR); - macb_writel(macb, RSR, rsr); - /* a frame has been received */ - eth_device_ready(&(macb_device.parent)); - - } - - if (status & (MACB_BIT(TCOMP) | MACB_BIT(ISR_TUND) | - MACB_BIT(ISR_RLE))) - { - macb_tx(macb); - } - - /* - * Link change detection isn't possible with RMII, so we'll - * add that if/when we get our hands on a full-blown MII PHY. - */ - - if (status & MACB_BIT(HRESP)) - { - /* - * TODO: Reset the hardware, and maybe move the printk - * to a lower-priority context as well (work queue?) - */ - rt_kprintf("%s: DMA bus error: HRESP not OK\n", - dev->parent.name); - } - - status = macb_readl(macb, ISR); - } - - -} - -static int macb_mdio_write(struct rt_macb_eth *macb, rt_uint8_t reg, rt_uint16_t value) -{ - unsigned long netctl; - unsigned long netstat; - unsigned long frame; - - rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); - netctl = macb_readl(macb, NCR); - netctl |= MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - - frame = (MACB_BF(SOF, 1) - | MACB_BF(RW, 1) - | MACB_BF(PHYA, macb->phy_addr) - | MACB_BF(REGA, reg) - | MACB_BF(CODE, 2) - | MACB_BF(DATA, value)); - macb_writel(macb, MAN, frame); - - do { - netstat = macb_readl(macb, NSR); - } while (!(netstat & MACB_BIT(IDLE))); - - netctl = macb_readl(macb, NCR); - netctl &= ~MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - rt_sem_release(&macb->mdio_bus_lock); -} - -static int macb_mdio_read(struct rt_macb_eth *macb, rt_uint8_t reg) -{ - unsigned long netctl; - unsigned long netstat; - unsigned long frame; - - rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); - netctl = macb_readl(macb, NCR); - netctl |= MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - - frame = (MACB_BF(SOF, 1) - | MACB_BF(RW, 2) - | MACB_BF(PHYA, macb->phy_addr) - | MACB_BF(REGA, reg) - | MACB_BF(CODE, 2)); - macb_writel(macb, MAN, frame); - - do { - netstat = macb_readl(macb, NSR); - } while (!(netstat & MACB_BIT(IDLE))); - - frame = macb_readl(macb, MAN); - - netctl = macb_readl(macb, NCR); - netctl &= ~MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - rt_sem_release(&macb->mdio_bus_lock); - - return MACB_BFEXT(DATA, frame); -} - -static void macb_phy_reset(rt_device_t dev) -{ - int i; - rt_uint16_t status, adv; - struct rt_macb_eth *macb = dev->user_data;; - - adv = ADVERTISE_CSMA | ADVERTISE_ALL; - macb_mdio_write(macb, MII_ADVERTISE, adv); - rt_kprintf("%s: Starting autonegotiation...\n", dev->parent.name); - macb_mdio_write(macb, MII_BMCR, (BMCR_ANENABLE - | BMCR_ANRESTART)); - - for (i = 0; i < MACB_AUTONEG_TIMEOUT / 100; i++) - { - status = macb_mdio_read(macb, MII_BMSR); - if (status & BMSR_ANEGCOMPLETE) - break; - udelay(100); - } - - if (status & BMSR_ANEGCOMPLETE) - rt_kprintf("%s: Autonegotiation complete\n", dev->parent.name); - else - rt_kprintf("%s: Autonegotiation timed out (status=0x%04x)\n", - dev->parent.name, status); -} - - -static int macb_phy_init(rt_device_t dev) -{ - struct rt_macb_eth *macb = dev->user_data; - rt_uint32_t ncfgr; - rt_uint16_t phy_id, status, adv, lpa; - int media, speed, duplex; - int i; - - /* Check if the PHY is up to snuff... */ - phy_id = macb_mdio_read(macb, MII_PHYSID1); - if (phy_id == 0xffff) - { - rt_kprintf("%s: No PHY present\n", dev->parent.name); - return 0; - } - - status = macb_mdio_read(macb, MII_BMSR); - if (!(status & BMSR_LSTATUS)) - { - /* Try to re-negotiate if we don't have link already. */ - macb_phy_reset(dev); - - for (i = 0; i < MACB_LINK_TIMEOUT / 100; i++) - { - status = macb_mdio_read(macb, MII_BMSR); - if (status & BMSR_LSTATUS) - break; - udelay(100); - } - } - - if (!(status & BMSR_LSTATUS)) - { - rt_kprintf("%s: link down (status: 0x%04x)\n", - dev->parent.name, status); - return 0; - } - else - { - adv = macb_mdio_read(macb, MII_ADVERTISE); - lpa = macb_mdio_read(macb, MII_LPA); - media = mii_nway_result(lpa & adv); - speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) - ? 1 : 0); - duplex = (media & ADVERTISE_FULL) ? 1 : 0; - rt_kprintf("%s: link up, %sMbps %s-duplex (lpa: 0x%04x)\n", - dev->parent.name, - speed ? "100" : "10", - duplex ? "full" : "half", - lpa); - - ncfgr = macb_readl(macb, NCFGR); - ncfgr &= ~(MACB_BIT(SPD) | MACB_BIT(FD)); - if (speed) - ncfgr |= MACB_BIT(SPD); - if (duplex) - ncfgr |= MACB_BIT(FD); - macb_writel(macb, NCFGR, ncfgr); - return 1; - } -} - -void macb_update_link(void *param) -{ - struct rt_macb_eth *macb = (struct rt_macb_eth *)param; - rt_device_t dev = &macb->parent.parent; - int status, status_change = 0; - rt_uint32_t link; - rt_uint32_t media; - rt_uint16_t adv, lpa; - - /* Do a fake read */ - status = macb_mdio_read(macb, MII_BMSR); - if (status < 0) - return; - - /* Read link and autonegotiation status */ - status = macb_mdio_read(macb, MII_BMSR); - if (status < 0) - return; - - if ((status & BMSR_LSTATUS) == 0) - link = 0; - else - link = 1; - - if (link != macb->link) - { - macb->link = link; - status_change = 1; - } - - if (status_change) - { - if (macb->link) - { - adv = macb_mdio_read(macb, MII_ADVERTISE); - lpa = macb_mdio_read(macb, MII_LPA); - media = mii_nway_result(lpa & adv); - macb->speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) - ? 100 : 10); - macb->duplex = (media & ADVERTISE_FULL) ? 1 : 0; - rt_kprintf("%s: link up (%dMbps/%s-duplex)\n", - dev->parent.name, macb->speed, - DUPLEX_FULL == macb->duplex ? "Full":"Half"); - eth_device_linkchange(&macb->parent, RT_TRUE); - } - else - { - rt_kprintf("%s: link down\n", dev->parent.name); - eth_device_linkchange(&macb->parent, RT_FALSE); - } - - } - -} - -/* RT-Thread Device Interface */ -/* initialize the interface */ - -static rt_err_t rt_macb_init(rt_device_t dev) -{ - struct rt_macb_eth *macb = dev->user_data; - unsigned long paddr; - rt_uint32_t hwaddr_bottom; - rt_uint16_t hwaddr_top; - int i; - - /* - * macb_halt should have been called at some point before now, - * so we'll assume the controller is idle. - */ - - /* initialize DMA descriptors */ - paddr = macb->rx_buffer_dma; - for (i = 0; i < MACB_RX_RING_SIZE; i++) - { - if (i == (MACB_RX_RING_SIZE - 1)) - paddr |= RXADDR_WRAP; - macb->rx_ring[i].addr = paddr; - macb->rx_ring[i].ctrl = 0; - paddr += 128; - } - paddr = macb->tx_buffer_dma; - for (i = 0; i < MACB_TX_RING_SIZE; i++) - { - macb->tx_ring[i].addr = paddr; - if (i == (MACB_TX_RING_SIZE - 1)) - macb->tx_ring[i].ctrl = TXBUF_USED | TXBUF_WRAP; - else - macb->tx_ring[i].ctrl = TXBUF_USED; - paddr += 1536; - } - macb->rx_tail = macb->tx_head = macb->tx_tail = 0; - - BD_CACHE_WRITEBACK_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - BD_CACHE_WRITEBACK_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); - macb_writel(macb, RBQP, macb->rx_ring_dma); - macb_writel(macb, TBQP, macb->tx_ring_dma); - - /* set hardware address */ - hwaddr_bottom = (*((rt_uint32_t *)macb->dev_addr)); - macb_writel(macb, SA1B, hwaddr_bottom); - hwaddr_top = (*((rt_uint16_t *)(macb->dev_addr + 4))); - macb_writel(macb, SA1T, hwaddr_top); - - - /* choose RMII or MII mode. This depends on the board */ -#ifdef CONFIG_RMII - macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN)); -#else - macb_writel(macb, USRIO, MACB_BIT(CLKEN)); -#endif /* CONFIG_RMII */ - - if (!macb_phy_init(dev)) - return -RT_ERROR; - - /* Enable TX and RX */ - macb_writel(macb, NCR, MACB_BIT(TE) | MACB_BIT(RE) | MACB_BIT(MPE)); - - /* Enable interrupts */ - macb_writel(macb, IER, (MACB_BIT(RCOMP) - | MACB_BIT(RXUBR) - | MACB_BIT(ISR_TUND) - | MACB_BIT(ISR_RLE) - | MACB_BIT(TXERR) - | MACB_BIT(TCOMP) - | MACB_BIT(ISR_ROVR) - | MACB_BIT(HRESP))); - - /* instal interrupt */ - rt_hw_interrupt_install(AT91SAM9260_ID_EMAC, rt_macb_isr, - (void *)macb, "emac"); - rt_hw_interrupt_umask(AT91SAM9260_ID_EMAC); - - rt_timer_init(&macb->timer, "link_timer", - macb_update_link, - (void *)macb, - RT_TICK_PER_SECOND, - RT_TIMER_FLAG_PERIODIC); - - rt_timer_start(&macb->timer); - - return RT_EOK; -} - -static rt_err_t rt_macb_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -static rt_err_t rt_macb_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t rt_macb_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_size_t rt_macb_write (rt_device_t dev, rt_off_t pos, const void* buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_err_t rt_macb_control(rt_device_t dev, int cmd, void *args) -{ - switch(cmd) - { - case NIOCTL_GADDR: - /* get mac address */ - if(args) rt_memcpy(args, macb_device.dev_addr, 6); - else return -RT_ERROR; - break; - - default : - break; - } - - return RT_EOK; -} - -static void macb_tx(struct rt_macb_eth *macb) -{ - unsigned int tail; - unsigned int head; - rt_uint32_t status; - - status = macb_readl(macb, TSR); - macb_writel(macb, TSR, status); - - /*rt_kprintf("macb_tx status = %02lx\n", - (unsigned long)status);*/ - - if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) - { - int i; - rt_kprintf("%s: TX %s, resetting buffers\n", - macb->parent.parent.parent.name, status & MACB_BIT(UND) ? - "underrun" : "retry limit exceeded"); - - /* Transfer ongoing, disable transmitter, to avoid confusion */ - if (status & MACB_BIT(TGO)) - macb_writel(macb, NCR, macb_readl(macb, NCR) & ~MACB_BIT(TE)); - - head = macb->tx_head; - - /*Mark all the buffer as used to avoid sending a lost buffer*/ - for (i = 0; i < MACB_TX_RING_SIZE; i++) - macb->tx_ring[i].ctrl = MACB_BIT(TX_USED); - - /* free transmit buffer in upper layer*/ - - macb->tx_head = macb->tx_tail = 0; - - /* Enable the transmitter again */ - if (status & MACB_BIT(TGO)) - macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TE)); - } - - if (!(status & MACB_BIT(COMP))) - /* - * This may happen when a buffer becomes complete - * between reading the ISR and scanning the - * descriptors. Nothing to worry about. - */ - return; - - head = macb->tx_head; - for (tail = macb->tx_tail; tail != head; tail = NEXT_TX(tail)) - { - rt_uint32_t bufstat; - - bufstat = macb->tx_ring[tail].ctrl; - - if (!(bufstat & MACB_BIT(TX_USED))) - break; - } - - macb->tx_tail = tail; - if ((macb->tx_stop == 1) && - TX_BUFFS_AVAIL(macb) > MACB_TX_WAKEUP_THRESH) - rt_sem_release(&macb->tx_ack); -} - - -/* ethernet device interface */ -/* transmit packet. */ -rt_err_t rt_macb_tx( rt_device_t dev, struct pbuf* p) -{ - unsigned long ctrl; - struct pbuf* q; - rt_uint8_t* bufptr; - rt_uint32_t mapping; - struct rt_macb_eth *macb = dev->user_data; - unsigned int tx_head = macb->tx_head; - - rt_sem_take(&macb->tx_lock, RT_WAITING_FOREVER); - if (TX_BUFFS_AVAIL(macb) < 1) - { - rt_sem_release(&macb->tx_lock); - rt_kprintf("Tx Ring full!\n"); - rt_kprintf("tx_head = %u, tx_tail = %u\n", - macb->tx_head, macb->tx_tail); - return -RT_ERROR; - } - - macb->tx_stop = 0; - - ctrl = p->tot_len & TXBUF_FRMLEN_MASK; - ctrl |= TXBUF_FRAME_END; - if (tx_head == (MACB_TX_RING_SIZE - 1)) - { - ctrl |= TXBUF_WRAP; - } -#if defined(MACB_TX_SRAM) - bufptr = macb->tx_buffer + tx_head * 1536; -#else - mapping = (unsigned long)macb->tx_buffer + tx_head * 1536; - bufptr = (rt_uint8_t *)mapping; -#endif - - for (q = p; q != NULL; q = q->next) - { - memcpy(bufptr, q->payload, q->len); - bufptr += q->len; - } -#if !defined(MACB_TX_SRAM) - EMAC_CACHE_WRITEBACK(mapping, p->tot_len); -#endif - macb->tx_ring[tx_head].ctrl = ctrl; - BD_CACHE_WRITEBACK_INVALIDATE(&macb->tx_ring[tx_head], sizeof(struct macb_dma_desc)); - tx_head = NEXT_TX(tx_head); - macb->tx_head = tx_head; - macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); - macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); - - if (TX_BUFFS_AVAIL(macb) < 1) - { - macb->tx_stop = 1; - rt_sem_take(&macb->tx_ack, RT_WAITING_FOREVER); - } - rt_sem_release(&macb->tx_lock); - - return RT_EOK; -} - -static void reclaim_rx_buffers(struct rt_macb_eth *macb, - unsigned int new_tail) -{ - unsigned int i; - - i = macb->rx_tail; - while (i > new_tail) - { - macb->rx_ring[i].addr &= ~RXADDR_USED; - i++; - if (i > MACB_RX_RING_SIZE) - i = 0; - } - - while (i < new_tail) - { - macb->rx_ring[i].addr &= ~RXADDR_USED; - i++; - } - - macb->rx_tail = new_tail; -} - -/* reception packet. */ -struct pbuf *rt_macb_rx(rt_device_t dev) -{ - struct rt_macb_eth *macb = dev->user_data; - struct pbuf* p = RT_NULL; - rt_uint32_t len; - unsigned int rx_tail = macb->rx_tail; - void *buffer; - int wrapped = 0; - rt_uint32_t status; - - rt_sem_take(&macb->rx_lock, RT_WAITING_FOREVER); - for (;;) - { - if (!(macb->rx_ring[rx_tail].addr & RXADDR_USED)) - break; - - status = macb->rx_ring[rx_tail].ctrl; - if (status & RXBUF_FRAME_START) - { - if (rx_tail != macb->rx_tail) - reclaim_rx_buffers(macb, rx_tail); - wrapped = 0; - } - - if (status & RXBUF_FRAME_END) - { - buffer = (void *)((unsigned int)macb->rx_buffer + 128 * macb->rx_tail); - len = status & RXBUF_FRMLEN_MASK; - p = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); - if (!p) - { - rt_kprintf("alloc pbuf failed\n"); - break; - } - if (wrapped) - { - unsigned int headlen, taillen; - - headlen = 128 * (MACB_RX_RING_SIZE - - macb->rx_tail); - taillen = len - headlen; - EMAC_CACHE_INVALIDATE(buffer, headlen); - EMAC_CACHE_INVALIDATE(macb->rx_buffer, taillen); - memcpy((void *)p->payload, buffer, headlen); - memcpy((void *)((unsigned int)p->payload + headlen), - macb->rx_buffer, taillen); - } - else - { - EMAC_CACHE_INVALIDATE(buffer, len); - memcpy((void *)p->payload, buffer, p->len); - } - - if (++rx_tail >= MACB_RX_RING_SIZE) - rx_tail = 0; - reclaim_rx_buffers(macb, rx_tail); - break; - } - else - { - if (++rx_tail >= MACB_RX_RING_SIZE) - { - wrapped = 1; - rx_tail = 0; - } - } - } - - rt_sem_release(&macb->rx_lock); - - return p; -} - -void macb_gpio_init() -{ - /* Pins used for MII and RMII */ - at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20)); - at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20)); - -#ifndef GONFIG_RMII - at91_sys_write(AT91_PIOA + PIO_PDR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29)); - at91_sys_write(AT91_PIOA + PIO_ASR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29)); -#endif -} - -rt_err_t macb_initialize() -{ - struct rt_macb_eth *macb = &macb_device; - unsigned long macb_hz; - rt_uint32_t ncfgr; - -#if defined(MACB_TX_SRAM) - macb->tx_ring_dma = AT91SAM9260_SRAM0_BASE; - macb->tx_ring = (struct macb_dma_desc *)AT91SAM9260_SRAM0_VIRT_BASE; - macb->tx_buffer = (char *) macb->tx_ring + TX_RING_BYTES; - macb->tx_buffer_dma = macb->tx_ring_dma + TX_RING_BYTES; -#else - macb->tx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - if (macb->tx_ring == RT_NULL) - goto err1; - EMAC_CACHE_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); - macb->tx_ring_dma = emac_virt_to_phys((unsigned long)macb->tx_ring); - macb->tx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->tx_ring); - macb->tx_buffer = rt_malloc(MACB_TX_BUFFER_SIZE); - if (macb->tx_buffer == RT_NULL) - goto err2; - macb->tx_buffer_dma = emac_virt_to_phys((unsigned long)macb->tx_buffer); -#endif - - macb->rx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - if (macb->rx_ring == RT_NULL) - goto err3; - EMAC_CACHE_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - macb->rx_ring_dma = emac_virt_to_phys((unsigned long)macb->rx_ring); - macb->rx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->rx_ring); - macb->rx_buffer = rt_malloc(MACB_RX_BUFFER_SIZE); - if (macb->rx_buffer == RT_NULL) - goto err4; - macb->rx_buffer_dma = emac_virt_to_phys((unsigned long)macb->rx_buffer); - - macb->tx_pending = DEF_TX_RING_PENDING; - - macb->regs = AT91SAM9260_BASE_EMAC; - macb->phy_addr = 0x00; - - /* - * Do some basic initialization so that we at least can talk - * to the PHY - */ - macb_hz = clk_get_rate(clk_get("mck")); - if (macb_hz < 20000000) - ncfgr = MACB_BF(CLK, MACB_CLK_DIV8); - else if (macb_hz < 40000000) - ncfgr = MACB_BF(CLK, MACB_CLK_DIV16); - else if (macb_hz < 80000000) - ncfgr = MACB_BF(CLK, MACB_CLK_DIV32); - else - ncfgr = MACB_BF(CLK, MACB_CLK_DIV64); - - macb_writel(macb, NCFGR, ncfgr); - - macb->link = 0; - - return RT_EOK; - -err4: - rt_free(macb->rx_ring); - macb->rx_ring = RT_NULL; -err3: -#if !defined(MACB_TX_SRAM) - rt_free(macb->tx_buffer); - macb->tx_buffer = RT_NULL; -err2: - rt_free(macb->tx_ring); - macb->tx_ring = RT_NULL; -err1: -#endif - return -RT_ENOMEM; -} - -int rt_hw_macb_init(void) -{ - rt_err_t ret; - at91_sys_write(AT91_PMC + AT91_PMC_PCER, 1 << AT91SAM9260_ID_EMAC); //enable macb clock - macb_gpio_init(); - rt_memset(&macb_device, 0, sizeof(macb_device)); - ret = macb_initialize(); - if (ret != RT_EOK) - { - rt_kprintf("AT91 EMAC initialized failed\n"); - return -1; - } - rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO); - rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO); - rt_sem_init(&macb_device.rx_lock, "rx_lock", 1, RT_IPC_FLAG_FIFO); - - macb_device.dev_addr[0] = 0x00; - macb_device.dev_addr[1] = 0x60; - macb_device.dev_addr[2] = 0x6E; - macb_device.dev_addr[3] = 0x11; - macb_device.dev_addr[4] = 0x22; - macb_device.dev_addr[5] = 0x33; - - macb_device.parent.parent.init = rt_macb_init; - macb_device.parent.parent.open = rt_macb_open; - macb_device.parent.parent.close = rt_macb_close; - macb_device.parent.parent.read = rt_macb_read; - macb_device.parent.parent.write = rt_macb_write; - macb_device.parent.parent.control = rt_macb_control; - macb_device.parent.parent.user_data = &macb_device; - - macb_device.parent.eth_rx = rt_macb_rx; - macb_device.parent.eth_tx = rt_macb_tx; - - rt_sem_init(&macb_device.mdio_bus_lock, "mdio_bus_lock", 1, RT_IPC_FLAG_FIFO); - - eth_device_init(&(macb_device.parent), "e0"); - - return 0; -} - -INIT_DEVICE_EXPORT(rt_hw_macb_init); - diff --git a/bsp/at91sam9260/drivers/macb.h b/bsp/at91sam9260/drivers/macb.h deleted file mode 100644 index ed2ad390b7..0000000000 --- a/bsp/at91sam9260/drivers/macb.h +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-18 weety first version - */ -#ifndef _MACB_H -#define _MACB_H -#include - -/* MACB register offsets */ -#define MACB_NCR 0x0000 -#define MACB_NCFGR 0x0004 -#define MACB_NSR 0x0008 -#define MACB_TSR 0x0014 -#define MACB_RBQP 0x0018 -#define MACB_TBQP 0x001c -#define MACB_RSR 0x0020 -#define MACB_ISR 0x0024 -#define MACB_IER 0x0028 -#define MACB_IDR 0x002c -#define MACB_IMR 0x0030 -#define MACB_MAN 0x0034 -#define MACB_PTR 0x0038 -#define MACB_PFR 0x003c -#define MACB_FTO 0x0040 -#define MACB_SCF 0x0044 -#define MACB_MCF 0x0048 -#define MACB_FRO 0x004c -#define MACB_FCSE 0x0050 -#define MACB_ALE 0x0054 -#define MACB_DTF 0x0058 -#define MACB_LCOL 0x005c -#define MACB_EXCOL 0x0060 -#define MACB_TUND 0x0064 -#define MACB_CSE 0x0068 -#define MACB_RRE 0x006c -#define MACB_ROVR 0x0070 -#define MACB_RSE 0x0074 -#define MACB_ELE 0x0078 -#define MACB_RJA 0x007c -#define MACB_USF 0x0080 -#define MACB_STE 0x0084 -#define MACB_RLE 0x0088 -#define MACB_TPF 0x008c -#define MACB_HRB 0x0090 -#define MACB_HRT 0x0094 -#define MACB_SA1B 0x0098 -#define MACB_SA1T 0x009c -#define MACB_SA2B 0x00a0 -#define MACB_SA2T 0x00a4 -#define MACB_SA3B 0x00a8 -#define MACB_SA3T 0x00ac -#define MACB_SA4B 0x00b0 -#define MACB_SA4T 0x00b4 -#define MACB_TID 0x00b8 -#define MACB_TPQ 0x00bc -#define MACB_USRIO 0x00c0 -#define MACB_WOL 0x00c4 - -/* Bitfields in NCR */ -#define MACB_LB_OFFSET 0 -#define MACB_LB_SIZE 1 -#define MACB_LLB_OFFSET 1 -#define MACB_LLB_SIZE 1 -#define MACB_RE_OFFSET 2 -#define MACB_RE_SIZE 1 -#define MACB_TE_OFFSET 3 -#define MACB_TE_SIZE 1 -#define MACB_MPE_OFFSET 4 -#define MACB_MPE_SIZE 1 -#define MACB_CLRSTAT_OFFSET 5 -#define MACB_CLRSTAT_SIZE 1 -#define MACB_INCSTAT_OFFSET 6 -#define MACB_INCSTAT_SIZE 1 -#define MACB_WESTAT_OFFSET 7 -#define MACB_WESTAT_SIZE 1 -#define MACB_BP_OFFSET 8 -#define MACB_BP_SIZE 1 -#define MACB_TSTART_OFFSET 9 -#define MACB_TSTART_SIZE 1 -#define MACB_THALT_OFFSET 10 -#define MACB_THALT_SIZE 1 -#define MACB_NCR_TPF_OFFSET 11 -#define MACB_NCR_TPF_SIZE 1 -#define MACB_TZQ_OFFSET 12 -#define MACB_TZQ_SIZE 1 - -/* Bitfields in NCFGR */ -#define MACB_SPD_OFFSET 0 -#define MACB_SPD_SIZE 1 -#define MACB_FD_OFFSET 1 -#define MACB_FD_SIZE 1 -#define MACB_BIT_RATE_OFFSET 2 -#define MACB_BIT_RATE_SIZE 1 -#define MACB_JFRAME_OFFSET 3 -#define MACB_JFRAME_SIZE 1 -#define MACB_CAF_OFFSET 4 -#define MACB_CAF_SIZE 1 -#define MACB_NBC_OFFSET 5 -#define MACB_NBC_SIZE 1 -#define MACB_NCFGR_MTI_OFFSET 6 -#define MACB_NCFGR_MTI_SIZE 1 -#define MACB_UNI_OFFSET 7 -#define MACB_UNI_SIZE 1 -#define MACB_BIG_OFFSET 8 -#define MACB_BIG_SIZE 1 -#define MACB_EAE_OFFSET 9 -#define MACB_EAE_SIZE 1 -#define MACB_CLK_OFFSET 10 -#define MACB_CLK_SIZE 2 -#define MACB_RTY_OFFSET 12 -#define MACB_RTY_SIZE 1 -#define MACB_PAE_OFFSET 13 -#define MACB_PAE_SIZE 1 -#define MACB_RBOF_OFFSET 14 -#define MACB_RBOF_SIZE 2 -#define MACB_RLCE_OFFSET 16 -#define MACB_RLCE_SIZE 1 -#define MACB_DRFCS_OFFSET 17 -#define MACB_DRFCS_SIZE 1 -#define MACB_EFRHD_OFFSET 18 -#define MACB_EFRHD_SIZE 1 -#define MACB_IRXFCS_OFFSET 19 -#define MACB_IRXFCS_SIZE 1 - -/* Bitfields in NSR */ -#define MACB_NSR_LINK_OFFSET 0 -#define MACB_NSR_LINK_SIZE 1 -#define MACB_MDIO_OFFSET 1 -#define MACB_MDIO_SIZE 1 -#define MACB_IDLE_OFFSET 2 -#define MACB_IDLE_SIZE 1 - -/* Bitfields in TSR */ -#define MACB_UBR_OFFSET 0 -#define MACB_UBR_SIZE 1 -#define MACB_COL_OFFSET 1 -#define MACB_COL_SIZE 1 -#define MACB_TSR_RLE_OFFSET 2 -#define MACB_TSR_RLE_SIZE 1 -#define MACB_TGO_OFFSET 3 -#define MACB_TGO_SIZE 1 -#define MACB_BEX_OFFSET 4 -#define MACB_BEX_SIZE 1 -#define MACB_COMP_OFFSET 5 -#define MACB_COMP_SIZE 1 -#define MACB_UND_OFFSET 6 -#define MACB_UND_SIZE 1 - -/* Bitfields in RSR */ -#define MACB_BNA_OFFSET 0 -#define MACB_BNA_SIZE 1 -#define MACB_REC_OFFSET 1 -#define MACB_REC_SIZE 1 -#define MACB_OVR_OFFSET 2 -#define MACB_OVR_SIZE 1 - -/* Bitfields in ISR/IER/IDR/IMR */ -#define MACB_MFD_OFFSET 0 -#define MACB_MFD_SIZE 1 -#define MACB_RCOMP_OFFSET 1 -#define MACB_RCOMP_SIZE 1 -#define MACB_RXUBR_OFFSET 2 -#define MACB_RXUBR_SIZE 1 -#define MACB_TXUBR_OFFSET 3 -#define MACB_TXUBR_SIZE 1 -#define MACB_ISR_TUND_OFFSET 4 -#define MACB_ISR_TUND_SIZE 1 -#define MACB_ISR_RLE_OFFSET 5 -#define MACB_ISR_RLE_SIZE 1 -#define MACB_TXERR_OFFSET 6 -#define MACB_TXERR_SIZE 1 -#define MACB_TCOMP_OFFSET 7 -#define MACB_TCOMP_SIZE 1 -#define MACB_ISR_LINK_OFFSET 9 -#define MACB_ISR_LINK_SIZE 1 -#define MACB_ISR_ROVR_OFFSET 10 -#define MACB_ISR_ROVR_SIZE 1 -#define MACB_HRESP_OFFSET 11 -#define MACB_HRESP_SIZE 1 -#define MACB_PFR_OFFSET 12 -#define MACB_PFR_SIZE 1 -#define MACB_PTZ_OFFSET 13 -#define MACB_PTZ_SIZE 1 - -/* Bitfields in MAN */ -#define MACB_DATA_OFFSET 0 -#define MACB_DATA_SIZE 16 -#define MACB_CODE_OFFSET 16 -#define MACB_CODE_SIZE 2 -#define MACB_REGA_OFFSET 18 -#define MACB_REGA_SIZE 5 -#define MACB_PHYA_OFFSET 23 -#define MACB_PHYA_SIZE 5 -#define MACB_RW_OFFSET 28 -#define MACB_RW_SIZE 2 -#define MACB_SOF_OFFSET 30 -#define MACB_SOF_SIZE 2 - -/* Bitfields in USRIO (AVR32) */ -#define MACB_MII_OFFSET 0 -#define MACB_MII_SIZE 1 -#define MACB_EAM_OFFSET 1 -#define MACB_EAM_SIZE 1 -#define MACB_TX_PAUSE_OFFSET 2 -#define MACB_TX_PAUSE_SIZE 1 -#define MACB_TX_PAUSE_ZERO_OFFSET 3 -#define MACB_TX_PAUSE_ZERO_SIZE 1 - -/* Bitfields in USRIO (AT91) */ -#define MACB_RMII_OFFSET 0 -#define MACB_RMII_SIZE 1 -#define MACB_CLKEN_OFFSET 1 -#define MACB_CLKEN_SIZE 1 - -/* Bitfields in WOL */ -#define MACB_IP_OFFSET 0 -#define MACB_IP_SIZE 16 -#define MACB_MAG_OFFSET 16 -#define MACB_MAG_SIZE 1 -#define MACB_ARP_OFFSET 17 -#define MACB_ARP_SIZE 1 -#define MACB_SA1_OFFSET 18 -#define MACB_SA1_SIZE 1 -#define MACB_WOL_MTI_OFFSET 19 -#define MACB_WOL_MTI_SIZE 1 - -/* Constants for CLK */ -#define MACB_CLK_DIV8 0 -#define MACB_CLK_DIV16 1 -#define MACB_CLK_DIV32 2 -#define MACB_CLK_DIV64 3 - -/* Constants for MAN register */ -#define MACB_MAN_SOF 1 -#define MACB_MAN_WRITE 1 -#define MACB_MAN_READ 2 -#define MACB_MAN_CODE 2 - -/* Bit manipulation macros */ -#define MACB_BIT(name) \ - (1 << MACB_##name##_OFFSET) -#define MACB_BF(name,value) \ - (((value) & ((1 << MACB_##name##_SIZE) - 1)) \ - << MACB_##name##_OFFSET) -#define MACB_BFEXT(name,value)\ - (((value) >> MACB_##name##_OFFSET) \ - & ((1 << MACB_##name##_SIZE) - 1)) -#define MACB_BFINS(name,value,old) \ - (((old) & ~(((1 << MACB_##name##_SIZE) - 1) \ - << MACB_##name##_OFFSET)) \ - | MACB_BF(name,value)) - -/* Register access macros */ -#define macb_readl(port,reg) \ - readl((port)->regs + MACB_##reg) -#define macb_writel(port,reg,value) \ - writel((value), (port)->regs + MACB_##reg) - -struct dma_desc { - rt_uint32_t addr; - rt_uint32_t ctrl; -}; - -/* DMA descriptor bitfields */ -#define MACB_RX_USED_OFFSET 0 -#define MACB_RX_USED_SIZE 1 -#define MACB_RX_WRAP_OFFSET 1 -#define MACB_RX_WRAP_SIZE 1 -#define MACB_RX_WADDR_OFFSET 2 -#define MACB_RX_WADDR_SIZE 30 - -#define MACB_RX_FRMLEN_OFFSET 0 -#define MACB_RX_FRMLEN_SIZE 12 -#define MACB_RX_OFFSET_OFFSET 12 -#define MACB_RX_OFFSET_SIZE 2 -#define MACB_RX_SOF_OFFSET 14 -#define MACB_RX_SOF_SIZE 1 -#define MACB_RX_EOF_OFFSET 15 -#define MACB_RX_EOF_SIZE 1 -#define MACB_RX_CFI_OFFSET 16 -#define MACB_RX_CFI_SIZE 1 -#define MACB_RX_VLAN_PRI_OFFSET 17 -#define MACB_RX_VLAN_PRI_SIZE 3 -#define MACB_RX_PRI_TAG_OFFSET 20 -#define MACB_RX_PRI_TAG_SIZE 1 -#define MACB_RX_VLAN_TAG_OFFSET 21 -#define MACB_RX_VLAN_TAG_SIZE 1 -#define MACB_RX_TYPEID_MATCH_OFFSET 22 -#define MACB_RX_TYPEID_MATCH_SIZE 1 -#define MACB_RX_SA4_MATCH_OFFSET 23 -#define MACB_RX_SA4_MATCH_SIZE 1 -#define MACB_RX_SA3_MATCH_OFFSET 24 -#define MACB_RX_SA3_MATCH_SIZE 1 -#define MACB_RX_SA2_MATCH_OFFSET 25 -#define MACB_RX_SA2_MATCH_SIZE 1 -#define MACB_RX_SA1_MATCH_OFFSET 26 -#define MACB_RX_SA1_MATCH_SIZE 1 -#define MACB_RX_EXT_MATCH_OFFSET 28 -#define MACB_RX_EXT_MATCH_SIZE 1 -#define MACB_RX_UHASH_MATCH_OFFSET 29 -#define MACB_RX_UHASH_MATCH_SIZE 1 -#define MACB_RX_MHASH_MATCH_OFFSET 30 -#define MACB_RX_MHASH_MATCH_SIZE 1 -#define MACB_RX_BROADCAST_OFFSET 31 -#define MACB_RX_BROADCAST_SIZE 1 - -#define MACB_TX_FRMLEN_OFFSET 0 -#define MACB_TX_FRMLEN_SIZE 11 -#define MACB_TX_LAST_OFFSET 15 -#define MACB_TX_LAST_SIZE 1 -#define MACB_TX_NOCRC_OFFSET 16 -#define MACB_TX_NOCRC_SIZE 1 -#define MACB_TX_BUF_EXHAUSTED_OFFSET 27 -#define MACB_TX_BUF_EXHAUSTED_SIZE 1 -#define MACB_TX_UNDERRUN_OFFSET 28 -#define MACB_TX_UNDERRUN_SIZE 1 -#define MACB_TX_ERROR_OFFSET 29 -#define MACB_TX_ERROR_SIZE 1 -#define MACB_TX_WRAP_OFFSET 30 -#define MACB_TX_WRAP_SIZE 1 -#define MACB_TX_USED_OFFSET 31 -#define MACB_TX_USED_SIZE 1 - -extern int rt_hw_macb_init(); - -#endif /* _MACB_H */ - diff --git a/bsp/at91sam9260/drivers/mii.h b/bsp/at91sam9260/drivers/mii.h deleted file mode 100644 index 03d914b7c3..0000000000 --- a/bsp/at91sam9260/drivers/mii.h +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-18 weety first version - */ - -#ifndef __MII_H__ -#define __MII_H__ - -/* Generic MII registers. */ - -#define MII_BMCR 0x00 /* Basic mode control register */ -#define MII_BMSR 0x01 /* Basic mode status register */ -#define MII_PHYSID1 0x02 /* PHYS ID 1 */ -#define MII_PHYSID2 0x03 /* PHYS ID 2 */ -#define MII_ADVERTISE 0x04 /* Advertisement control reg */ -#define MII_LPA 0x05 /* Link partner ability reg */ -#define MII_EXPANSION 0x06 /* Expansion register */ -#define MII_CTRL1000 0x09 /* 1000BASE-T control */ -#define MII_STAT1000 0x0a /* 1000BASE-T status */ -#define MII_ESTATUS 0x0f /* Extended Status */ -#define MII_DCOUNTER 0x12 /* Disconnect counter */ -#define MII_FCSCOUNTER 0x13 /* False carrier counter */ -#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ -#define MII_RERRCOUNTER 0x15 /* Receive error counter */ -#define MII_SREVISION 0x16 /* Silicon revision */ -#define MII_RESV1 0x17 /* Reserved... */ -#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ -#define MII_PHYADDR 0x19 /* PHY address */ -#define MII_RESV2 0x1a /* Reserved... */ -#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ -#define MII_NCONFIG 0x1c /* Network interface config */ - -/* Basic mode control register. */ -#define BMCR_RESV 0x003f /* Unused... */ -#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ -#define BMCR_CTST 0x0080 /* Collision test */ -#define BMCR_FULLDPLX 0x0100 /* Full duplex */ -#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ -#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ -#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ -#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ -#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ -#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ -#define BMCR_RESET 0x8000 /* Reset the DP83840 */ - -/* Basic mode status register. */ -#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ -#define BMSR_JCD 0x0002 /* Jabber detected */ -#define BMSR_LSTATUS 0x0004 /* Link status */ -#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ -#define BMSR_RFAULT 0x0010 /* Remote fault detected */ -#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ -#define BMSR_RESV 0x00c0 /* Unused... */ -#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ -#define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ -#define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */ -#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ -#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ -#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ -#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ -#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ - -/* Advertisement control register. */ -#define ADVERTISE_SLCT 0x001f /* Selector bits */ -#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ -#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ -#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ -#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ -#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ -#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ -#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ -#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ -#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ -#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ -#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ -#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ -#define ADVERTISE_RESV 0x1000 /* Unused... */ -#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ -#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ -#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ - -#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ - ADVERTISE_CSMA) -#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ - ADVERTISE_100HALF | ADVERTISE_100FULL) - -/* Link partner ability register. */ -#define LPA_SLCT 0x001f /* Same as advertise selector */ -#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ -#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ -#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ -#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ -#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ -#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ -#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ -#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ -#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ -#define LPA_PAUSE_CAP 0x0400 /* Can pause */ -#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ -#define LPA_RESV 0x1000 /* Unused... */ -#define LPA_RFAULT 0x2000 /* Link partner faulted */ -#define LPA_LPACK 0x4000 /* Link partner acked us */ -#define LPA_NPAGE 0x8000 /* Next page bit */ - -#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) -#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) - -/* Expansion register for auto-negotiation. */ -#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ -#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ -#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ -#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ -#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ -#define EXPANSION_RESV 0xffe0 /* Unused... */ - -#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ -#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ - -/* N-way test register. */ -#define NWAYTEST_RESV1 0x00ff /* Unused... */ -#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ -#define NWAYTEST_RESV2 0xfe00 /* Unused... */ - -/* 1000BASE-T Control register */ -#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ -#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ - -/* 1000BASE-T Status register */ -#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ -#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ -#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ -#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */ - -/* Flow control flags */ -#define FLOW_CTRL_TX 0x01 -#define FLOW_CTRL_RX 0x02 - -/** - * mii_nway_result - * @negotiated: value of MII ANAR and'd with ANLPAR - * - * Given a set of MII abilities, check each bit and returns the - * currently supported media, in the priority order defined by - * IEEE 802.3u. We use LPA_xxx constants but note this is not the - * value of LPA solely, as described above. - * - * The one exception to IEEE 802.3u is that 100baseT4 is placed - * between 100T-full and 100T-half. If your phy does not support - * 100T4 this is fine. If your phy places 100T4 elsewhere in the - * priority order, you will need to roll your own function. - */ -rt_inline unsigned int mii_nway_result (unsigned int negotiated) -{ - unsigned int ret; - - if (negotiated & LPA_100FULL) - ret = LPA_100FULL; - else if (negotiated & LPA_100BASE4) - ret = LPA_100BASE4; - else if (negotiated & LPA_100HALF) - ret = LPA_100HALF; - else if (negotiated & LPA_10FULL) - ret = LPA_10FULL; - else - ret = LPA_10HALF; - - return ret; -} - - -#endif /* __MII_H__ */ - diff --git a/bsp/at91sam9260/drivers/usart.c b/bsp/at91sam9260/drivers/usart.c deleted file mode 100644 index 2d493a21bb..0000000000 --- a/bsp/at91sam9260/drivers/usart.c +++ /dev/null @@ -1,424 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - * 2013-07-21 weety using serial component - */ - -#include -#include -#include -#include - -#define RXRDY 0x01 -#define TXRDY (1 << 1) - -typedef struct uartport -{ - volatile rt_uint32_t CR; - volatile rt_uint32_t MR; - volatile rt_uint32_t IER; - volatile rt_uint32_t IDR; - volatile rt_uint32_t IMR; - volatile rt_uint32_t CSR; - volatile rt_uint32_t RHR; - volatile rt_uint32_t THR; - volatile rt_uint32_t BRGR; - volatile rt_uint32_t RTOR; - volatile rt_uint32_t TTGR; - volatile rt_uint32_t reserved0[5]; - volatile rt_uint32_t FIDI; - volatile rt_uint32_t NER; - volatile rt_uint32_t reserved1; - volatile rt_uint32_t IFR; - volatile rt_uint32_t reserved2[44]; - volatile rt_uint32_t RPR; - volatile rt_uint32_t RCR; - volatile rt_uint32_t TPR; - volatile rt_uint32_t TCR; - volatile rt_uint32_t RNPR; - volatile rt_uint32_t RNCR; - volatile rt_uint32_t TNPR; - volatile rt_uint32_t TNCR; - volatile rt_uint32_t PTCR; - volatile rt_uint32_t PTSR; -}uartport; - -#define CIDR FIDI -#define EXID NER -#define FNR reserved1 - -#define DBGU ((struct uartport *)AT91SAM9260_BASE_DBGU) - -#define UART0 ((struct uartport *)AT91SAM9260_BASE_US0) -#define UART1 ((struct uartport *)AT91SAM9260_BASE_US1) -#define UART2 ((struct uartport *)AT91SAM9260_BASE_US2) -#define UART3 ((struct uartport *)AT91SAM9260_BASE_US3) - -struct at91_uart { - uartport *port; - int irq; -}; - - - -/** - * This function will handle serial - */ -void rt_at91_usart_handler(int vector, void *param) -{ - int status; - struct at91_uart *uart; - rt_device_t dev = (rt_device_t)param; - uart = (struct at91_uart *)dev->user_data; - status = uart->port->CSR; - if (!(status & uart->port->IMR)) - { - return; - } - rt_interrupt_enter(); - rt_hw_serial_isr((struct rt_serial_device *)dev, RT_SERIAL_EVENT_RX_IND); - rt_interrupt_leave(); -} - -/** -* UART device in RT-Thread -*/ -static rt_err_t at91_usart_configure(struct rt_serial_device *serial, - struct serial_configure *cfg) -{ - int div; - int mode = 0; - struct at91_uart *uart; - - RT_ASSERT(serial != RT_NULL); - RT_ASSERT(cfg != RT_NULL); - uart = (struct at91_uart *)serial->parent.user_data; - - uart->port->CR = AT91_US_RSTTX | AT91_US_RSTRX | - AT91_US_RXDIS | AT91_US_TXDIS; - mode |= AT91_US_USMODE_NORMAL | AT91_US_USCLKS_MCK | - AT91_US_CHMODE_NORMAL; - switch (cfg->data_bits) - { - case DATA_BITS_8: - mode |= AT91_US_CHRL_8; - break; - case DATA_BITS_7: - mode |= AT91_US_CHRL_7; - break; - case DATA_BITS_6: - mode |= AT91_US_CHRL_6; - break; - case DATA_BITS_5: - mode |= AT91_US_CHRL_5; - break; - default: - mode |= AT91_US_CHRL_8; - break; - } - - switch (cfg->stop_bits) - { - case STOP_BITS_2: - mode |= AT91_US_NBSTOP_2; - break; - case STOP_BITS_1: - default: - mode |= AT91_US_NBSTOP_1; - break; - } - - switch (cfg->parity) - { - case PARITY_ODD: - mode |= AT91_US_PAR_ODD; - break; - case PARITY_EVEN: - mode |= AT91_US_PAR_EVEN; - break; - case PARITY_NONE: - default: - mode |= AT91_US_PAR_NONE; - break; - } - - uart->port->MR = mode; - div = (clk_get_rate(clk_get("mck")) / 16 + cfg->baud_rate/2) / cfg->baud_rate; - uart->port->BRGR = div; - uart->port->CR = AT91_US_RXEN | AT91_US_TXEN; - uart->port->IER = 0x01; - - return RT_EOK; -} - -static rt_err_t at91_usart_control(struct rt_serial_device *serial, - int cmd, void *arg) -{ - struct at91_uart* uart; - - RT_ASSERT(serial != RT_NULL); - uart = (struct at91_uart *)serial->parent.user_data; - - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: - /* disable rx irq */ - rt_hw_interrupt_mask(uart->irq); - break; - case RT_DEVICE_CTRL_SET_INT: - /* enable rx irq */ - rt_hw_interrupt_umask(uart->irq); - break; - } - - return RT_EOK; -} - -static int at91_usart_putc(struct rt_serial_device *serial, char c) -{ - rt_uint32_t level; - struct at91_uart *uart = serial->parent.user_data; - - while (!(uart->port->CSR & TXRDY)); - uart->port->THR = c; - - return 1; -} - -static int at91_usart_getc(struct rt_serial_device *serial) -{ - int result; - struct at91_uart *uart = serial->parent.user_data; - - if (uart->port->CSR & RXRDY) - { - result = uart->port->RHR & 0xff; - } - else - { - result = -1; - } - - return result; -} - -static const struct rt_uart_ops at91_usart_ops = -{ - at91_usart_configure, - at91_usart_control, - at91_usart_putc, - at91_usart_getc, -}; - -#if defined(RT_USING_DBGU) -static struct rt_serial_device serial_dbgu; -struct at91_uart dbgu = { - DBGU, - AT91_ID_SYS -}; - -#endif - -#if defined(RT_USING_UART0) -static struct rt_serial_device serial0; -struct at91_uart uart0 = { - UART0, - AT91SAM9260_ID_US0 -}; -#endif - -#if defined(RT_USING_UART1) -static struct rt_serial_device serial1; -struct at91_uart uart1 = { - UART1, - AT91SAM9260_ID_US1 -}; -#endif - -#if defined(RT_USING_UART2) -static struct rt_serial_device serial2; -struct at91_uart uart2 = { - UART2, - AT91SAM9260_ID_US2 -}; -#endif - -#if defined(RT_USING_UART3) -static struct rt_serial_device serial3; -struct at91_uart uart3 = { - UART3, - AT91SAM9260_ID_US3 -}; -#endif - -void at91_usart_gpio_init(void) -{ - rt_uint32_t val; - -#ifdef RT_USING_DBGU - at91_sys_write(AT91_PIOB + PIO_IDR, (1<<14)|(1<<15)); - //at91_sys_write(AT91_PIOB + PIO_PUER, (1<<6)); - at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<14)|(1<<15)); - at91_sys_write(AT91_PIOB + PIO_ASR, (1<<14)|(1<<15)); - at91_sys_write(AT91_PIOB + PIO_PDR, (1<<14)|(1<<15)); - at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_SYS); -#endif - -#ifdef RT_USING_UART0 - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US0); - at91_sys_write(AT91_PIOB + PIO_IDR, (1<<4)|(1<<5)); - at91_sys_write(AT91_PIOB + PIO_PUER, (1<<4)); - at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<5)); - at91_sys_write(AT91_PIOB + PIO_ASR, (1<<4)|(1<<5)); - at91_sys_write(AT91_PIOB + PIO_PDR, (1<<4)|(1<<5)); -#endif - -#ifdef RT_USING_UART1 - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US1); - at91_sys_write(AT91_PIOB + PIO_IDR, (1<<6)|(1<<7)); - at91_sys_write(AT91_PIOB + PIO_PUER, (1<<6)); - at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<7)); - at91_sys_write(AT91_PIOB + PIO_ASR, (1<<6)|(1<<7)); - at91_sys_write(AT91_PIOB + PIO_PDR, (1<<6)|(1<<7)); -#endif - -#ifdef RT_USING_UART2 - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US2); - at91_sys_write(AT91_PIOB + PIO_IDR, (1<<8)|(1<<9)); - at91_sys_write(AT91_PIOB + PIO_PUER, (1<<8)); - at91_sys_write(AT91_PIOB + PIO_PUDR, (1<<9)); - at91_sys_write(AT91_PIOB + PIO_ASR, (1<<8)|(1<<9)); - at91_sys_write(AT91_PIOB + PIO_PDR, (1<<8)|(1<<9)); -#endif - -#ifdef RT_USING_UART3 - at91_sys_write(AT91_PMC_PCER, 1< -#include "at91_aic.h" -#include "at91_pit.h" -#include "at91_pmc.h" -#include "at91_rstc.h" -#include "at91_shdwc.h" -#include "at91sam9260_matrix.h" -#include "at91_pio.h" -#include "at91_serial.h" -#include "at91_tc.h" -#include "at91_pdc.h" -#include "io.h" -#include "irq.h" -#include "gpio.h" - -/* - * Peripheral identifiers/interrupts. - */ -#define AT91_ID_FIQ 0 /* Advanced Interrupt Controller (FIQ) */ -#define AT91_ID_SYS 1 /* System Peripherals */ -#define AT91SAM9260_ID_PIOA 2 /* Parallel IO Controller A */ -#define AT91SAM9260_ID_PIOB 3 /* Parallel IO Controller B */ -#define AT91SAM9260_ID_PIOC 4 /* Parallel IO Controller C */ -#define AT91SAM9260_ID_ADC 5 /* Analog-to-Digital Converter */ -#define AT91SAM9260_ID_US0 6 /* USART 0 */ -#define AT91SAM9260_ID_US1 7 /* USART 1 */ -#define AT91SAM9260_ID_US2 8 /* USART 2 */ -#define AT91SAM9260_ID_MCI 9 /* Multimedia Card Interface */ -#define AT91SAM9260_ID_UDP 10 /* USB Device Port */ -#define AT91SAM9260_ID_TWI 11 /* Two-Wire Interface */ -#define AT91SAM9260_ID_SPI0 12 /* Serial Peripheral Interface 0 */ -#define AT91SAM9260_ID_SPI1 13 /* Serial Peripheral Interface 1 */ -#define AT91SAM9260_ID_SSC 14 /* Serial Synchronous Controller */ -#define AT91SAM9260_ID_TC0 17 /* Timer Counter 0 */ -#define AT91SAM9260_ID_TC1 18 /* Timer Counter 1 */ -#define AT91SAM9260_ID_TC2 19 /* Timer Counter 2 */ -#define AT91SAM9260_ID_UHP 20 /* USB Host port */ -#define AT91SAM9260_ID_EMAC 21 /* Ethernet */ -#define AT91SAM9260_ID_ISI 22 /* Image Sensor Interface */ -#define AT91SAM9260_ID_US3 23 /* USART 3 */ -#define AT91SAM9260_ID_US4 24 /* USART 4 */ -#define AT91SAM9260_ID_US5 25 /* USART 5 */ -#define AT91SAM9260_ID_TC3 26 /* Timer Counter 3 */ -#define AT91SAM9260_ID_TC4 27 /* Timer Counter 4 */ -#define AT91SAM9260_ID_TC5 28 /* Timer Counter 5 */ -#define AT91SAM9260_ID_IRQ0 29 /* Advanced Interrupt Controller (IRQ0) */ -#define AT91SAM9260_ID_IRQ1 30 /* Advanced Interrupt Controller (IRQ1) */ -#define AT91SAM9260_ID_IRQ2 31 /* Advanced Interrupt Controller (IRQ2) */ - - -/* - * User Peripheral physical base addresses. - */ -#define AT91SAM9260_BASE_TCB0 0xfffa0000 -#define AT91SAM9260_BASE_TC0 0xfffa0000 -#define AT91SAM9260_BASE_TC1 0xfffa0040 -#define AT91SAM9260_BASE_TC2 0xfffa0080 -#define AT91SAM9260_BASE_UDP 0xfffa4000 -#define AT91SAM9260_BASE_MCI 0xfffa8000 -#define AT91SAM9260_BASE_TWI 0xfffac000 -#define AT91SAM9260_BASE_US0 0xfffb0000 -#define AT91SAM9260_BASE_US1 0xfffb4000 -#define AT91SAM9260_BASE_US2 0xfffb8000 -#define AT91SAM9260_BASE_SSC 0xfffbc000 -#define AT91SAM9260_BASE_ISI 0xfffc0000 -#define AT91SAM9260_BASE_EMAC 0xfffc4000 -#define AT91SAM9260_BASE_SPI0 0xfffc8000 -#define AT91SAM9260_BASE_SPI1 0xfffcc000 -#define AT91SAM9260_BASE_US3 0xfffd0000 -#define AT91SAM9260_BASE_US4 0xfffd4000 -#define AT91SAM9260_BASE_US5 0xfffd8000 -#define AT91SAM9260_BASE_TCB1 0xfffdc000 -#define AT91SAM9260_BASE_TC3 0xfffdc000 -#define AT91SAM9260_BASE_TC4 0xfffdc040 -#define AT91SAM9260_BASE_TC5 0xfffdc080 -#define AT91SAM9260_BASE_ADC 0xfffe0000 -#define AT91_BASE_SYS 0xffffe800 -#define AT91SAM9260_BASE_DBGU 0xfffff200 - -/* - * System Peripherals (offset from AT91_BASE_SYS) - */ -#define AT91_ECC (0xffffe800 - AT91_BASE_SYS) -#define AT91_SDRAMC (0xffffea00 - AT91_BASE_SYS) -#define AT91_SMC (0xffffec00 - AT91_BASE_SYS) -#define AT91_MATRIX (0xffffee00 - AT91_BASE_SYS) -#define AT91_CCFG (0xffffef10 - AT91_BASE_SYS) -#define AT91_AIC (0xfffff000 - AT91_BASE_SYS) -#define AT91_DBGU (0xfffff200 - AT91_BASE_SYS) -#define AT91_PIOA (0xfffff400 - AT91_BASE_SYS) -#define AT91_PIOB (0xfffff600 - AT91_BASE_SYS) -#define AT91_PIOC (0xfffff800 - AT91_BASE_SYS) -#define AT91_PMC (0xfffffc00 - AT91_BASE_SYS) -#define AT91_RSTC (0xfffffd00 - AT91_BASE_SYS) -#define AT91_SHDWC (0xfffffd10 - AT91_BASE_SYS) -#define AT91_RTT (0xfffffd20 - AT91_BASE_SYS) -#define AT91_PIT (0xfffffd30 - AT91_BASE_SYS) -#define AT91_WDT (0xfffffd40 - AT91_BASE_SYS) -#define AT91_GPBR (0xfffffd50 - AT91_BASE_SYS) - - -/* - * Internal Memory. - */ -#define AT91SAM9260_ROM_BASE 0x00100000 /* Internal ROM base address */ -#define AT91SAM9260_ROM_SIZE SZ_32K /* Internal ROM size (32Kb) */ - -#define AT91SAM9260_SRAM0_BASE 0x00200000 /* Internal SRAM 0 base address */ -#define AT91SAM9260_SRAM0_SIZE SZ_4K /* Internal SRAM 0 size (4Kb) */ -#define AT91SAM9260_SRAM1_BASE 0x00300000 /* Internal SRAM 1 base address */ -#define AT91SAM9260_SRAM1_SIZE SZ_4K /* Internal SRAM 1 size (4Kb) */ - -#define AT91SAM9260_UHP_BASE 0x00500000 /* USB Host controller */ - -#define AT91SAM9XE_FLASH_BASE 0x00200000 /* Internal FLASH base address */ -#define AT91SAM9XE_SRAM_BASE 0x00300000 /* Internal SRAM base address */ - -#define AT91SAM9G20_ROM_BASE 0x00100000 /* Internal ROM base address */ -#define AT91SAM9G20_ROM_SIZE SZ_32K /* Internal ROM size (32Kb) */ - -#define AT91SAM9G20_SRAM0_BASE 0x00200000 /* Internal SRAM 0 base address */ -#define AT91SAM9G20_SRAM0_SIZE SZ_16K /* Internal SRAM 0 size (16Kb) */ -#define AT91SAM9G20_SRAM1_BASE 0x00300000 /* Internal SRAM 1 base address */ -#define AT91SAM9G20_SRAM1_SIZE SZ_16K /* Internal SRAM 1 size (16Kb) */ - -#define AT91SAM9G20_UHP_BASE 0x00500000 /* USB Host controller */ - - - -/* Serial ports */ -#define ATMEL_MAX_UART 7 /* 6 USART3's and one DBGU port (SAM9260) */ - -/* External Memory Map */ -#define AT91_CHIPSELECT_0 0x10000000 -#define AT91_CHIPSELECT_1 0x20000000 -#define AT91_CHIPSELECT_2 0x30000000 -#define AT91_CHIPSELECT_3 0x40000000 -#define AT91_CHIPSELECT_4 0x50000000 -#define AT91_CHIPSELECT_5 0x60000000 -#define AT91_CHIPSELECT_6 0x70000000 -#define AT91_CHIPSELECT_7 0x80000000 - -/* SDRAM */ -#define AT91_SDRAM_BASE AT91_CHIPSELECT_1 - -/* Clocks */ -#define AT91_SLOW_CLOCK 32768 /* slow clock */ - - -/*****************************/ -/* CPU Mode */ -/*****************************/ -#define USERMODE 0x10 -#define FIQMODE 0x11 -#define IRQMODE 0x12 -#define SVCMODE 0x13 -#define ABORTMODE 0x17 -#define UNDEFMODE 0x1b -#define MODEMASK 0x1f -#define NOINT 0xc0 - -struct rt_hw_register -{ - rt_uint32_t r0; - rt_uint32_t r1; - rt_uint32_t r2; - rt_uint32_t r3; - rt_uint32_t r4; - rt_uint32_t r5; - rt_uint32_t r6; - rt_uint32_t r7; - rt_uint32_t r8; - rt_uint32_t r9; - rt_uint32_t r10; - rt_uint32_t fp; - rt_uint32_t ip; - rt_uint32_t sp; - rt_uint32_t lr; - rt_uint32_t pc; - rt_uint32_t cpsr; - rt_uint32_t ORIG_r0; -}; - -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - -extern struct clk *clk_get(const char *id); -extern rt_uint32_t clk_get_rate(struct clk *clk); -extern void rt_hw_clock_init(void); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/bsp/at91sam9260/platform/gpio.h b/bsp/at91sam9260/platform/gpio.h deleted file mode 100644 index 52f34453d7..0000000000 --- a/bsp/at91sam9260/platform/gpio.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __GPIO_H__ -#define __GPIO_H__ - -#include -#include - -#define PIN_BASE AIC_IRQS - -#define MAX_GPIO_BANKS 3 - -#define PIN_IRQS (MAX_GPIO_BANKS*32) - -/* these pin numbers double as IRQ numbers, like AT91xxx_ID_* values */ - -#define AT91_PIN_PA0 (PIN_BASE + 0x00 + 0) -#define AT91_PIN_PA1 (PIN_BASE + 0x00 + 1) -#define AT91_PIN_PA2 (PIN_BASE + 0x00 + 2) -#define AT91_PIN_PA3 (PIN_BASE + 0x00 + 3) -#define AT91_PIN_PA4 (PIN_BASE + 0x00 + 4) -#define AT91_PIN_PA5 (PIN_BASE + 0x00 + 5) -#define AT91_PIN_PA6 (PIN_BASE + 0x00 + 6) -#define AT91_PIN_PA7 (PIN_BASE + 0x00 + 7) -#define AT91_PIN_PA8 (PIN_BASE + 0x00 + 8) -#define AT91_PIN_PA9 (PIN_BASE + 0x00 + 9) -#define AT91_PIN_PA10 (PIN_BASE + 0x00 + 10) -#define AT91_PIN_PA11 (PIN_BASE + 0x00 + 11) -#define AT91_PIN_PA12 (PIN_BASE + 0x00 + 12) -#define AT91_PIN_PA13 (PIN_BASE + 0x00 + 13) -#define AT91_PIN_PA14 (PIN_BASE + 0x00 + 14) -#define AT91_PIN_PA15 (PIN_BASE + 0x00 + 15) -#define AT91_PIN_PA16 (PIN_BASE + 0x00 + 16) -#define AT91_PIN_PA17 (PIN_BASE + 0x00 + 17) -#define AT91_PIN_PA18 (PIN_BASE + 0x00 + 18) -#define AT91_PIN_PA19 (PIN_BASE + 0x00 + 19) -#define AT91_PIN_PA20 (PIN_BASE + 0x00 + 20) -#define AT91_PIN_PA21 (PIN_BASE + 0x00 + 21) -#define AT91_PIN_PA22 (PIN_BASE + 0x00 + 22) -#define AT91_PIN_PA23 (PIN_BASE + 0x00 + 23) -#define AT91_PIN_PA24 (PIN_BASE + 0x00 + 24) -#define AT91_PIN_PA25 (PIN_BASE + 0x00 + 25) -#define AT91_PIN_PA26 (PIN_BASE + 0x00 + 26) -#define AT91_PIN_PA27 (PIN_BASE + 0x00 + 27) -#define AT91_PIN_PA28 (PIN_BASE + 0x00 + 28) -#define AT91_PIN_PA29 (PIN_BASE + 0x00 + 29) -#define AT91_PIN_PA30 (PIN_BASE + 0x00 + 30) -#define AT91_PIN_PA31 (PIN_BASE + 0x00 + 31) - -#define AT91_PIN_PB0 (PIN_BASE + 0x20 + 0) -#define AT91_PIN_PB1 (PIN_BASE + 0x20 + 1) -#define AT91_PIN_PB2 (PIN_BASE + 0x20 + 2) -#define AT91_PIN_PB3 (PIN_BASE + 0x20 + 3) -#define AT91_PIN_PB4 (PIN_BASE + 0x20 + 4) -#define AT91_PIN_PB5 (PIN_BASE + 0x20 + 5) -#define AT91_PIN_PB6 (PIN_BASE + 0x20 + 6) -#define AT91_PIN_PB7 (PIN_BASE + 0x20 + 7) -#define AT91_PIN_PB8 (PIN_BASE + 0x20 + 8) -#define AT91_PIN_PB9 (PIN_BASE + 0x20 + 9) -#define AT91_PIN_PB10 (PIN_BASE + 0x20 + 10) -#define AT91_PIN_PB11 (PIN_BASE + 0x20 + 11) -#define AT91_PIN_PB12 (PIN_BASE + 0x20 + 12) -#define AT91_PIN_PB13 (PIN_BASE + 0x20 + 13) -#define AT91_PIN_PB14 (PIN_BASE + 0x20 + 14) -#define AT91_PIN_PB15 (PIN_BASE + 0x20 + 15) -#define AT91_PIN_PB16 (PIN_BASE + 0x20 + 16) -#define AT91_PIN_PB17 (PIN_BASE + 0x20 + 17) -#define AT91_PIN_PB18 (PIN_BASE + 0x20 + 18) -#define AT91_PIN_PB19 (PIN_BASE + 0x20 + 19) -#define AT91_PIN_PB20 (PIN_BASE + 0x20 + 20) -#define AT91_PIN_PB21 (PIN_BASE + 0x20 + 21) -#define AT91_PIN_PB22 (PIN_BASE + 0x20 + 22) -#define AT91_PIN_PB23 (PIN_BASE + 0x20 + 23) -#define AT91_PIN_PB24 (PIN_BASE + 0x20 + 24) -#define AT91_PIN_PB25 (PIN_BASE + 0x20 + 25) -#define AT91_PIN_PB26 (PIN_BASE + 0x20 + 26) -#define AT91_PIN_PB27 (PIN_BASE + 0x20 + 27) -#define AT91_PIN_PB28 (PIN_BASE + 0x20 + 28) -#define AT91_PIN_PB29 (PIN_BASE + 0x20 + 29) -#define AT91_PIN_PB30 (PIN_BASE + 0x20 + 30) -#define AT91_PIN_PB31 (PIN_BASE + 0x20 + 31) - -#define AT91_PIN_PC0 (PIN_BASE + 0x40 + 0) -#define AT91_PIN_PC1 (PIN_BASE + 0x40 + 1) -#define AT91_PIN_PC2 (PIN_BASE + 0x40 + 2) -#define AT91_PIN_PC3 (PIN_BASE + 0x40 + 3) -#define AT91_PIN_PC4 (PIN_BASE + 0x40 + 4) -#define AT91_PIN_PC5 (PIN_BASE + 0x40 + 5) -#define AT91_PIN_PC6 (PIN_BASE + 0x40 + 6) -#define AT91_PIN_PC7 (PIN_BASE + 0x40 + 7) -#define AT91_PIN_PC8 (PIN_BASE + 0x40 + 8) -#define AT91_PIN_PC9 (PIN_BASE + 0x40 + 9) -#define AT91_PIN_PC10 (PIN_BASE + 0x40 + 10) -#define AT91_PIN_PC11 (PIN_BASE + 0x40 + 11) -#define AT91_PIN_PC12 (PIN_BASE + 0x40 + 12) -#define AT91_PIN_PC13 (PIN_BASE + 0x40 + 13) -#define AT91_PIN_PC14 (PIN_BASE + 0x40 + 14) -#define AT91_PIN_PC15 (PIN_BASE + 0x40 + 15) -#define AT91_PIN_PC16 (PIN_BASE + 0x40 + 16) -#define AT91_PIN_PC17 (PIN_BASE + 0x40 + 17) -#define AT91_PIN_PC18 (PIN_BASE + 0x40 + 18) -#define AT91_PIN_PC19 (PIN_BASE + 0x40 + 19) -#define AT91_PIN_PC20 (PIN_BASE + 0x40 + 20) -#define AT91_PIN_PC21 (PIN_BASE + 0x40 + 21) -#define AT91_PIN_PC22 (PIN_BASE + 0x40 + 22) -#define AT91_PIN_PC23 (PIN_BASE + 0x40 + 23) -#define AT91_PIN_PC24 (PIN_BASE + 0x40 + 24) -#define AT91_PIN_PC25 (PIN_BASE + 0x40 + 25) -#define AT91_PIN_PC26 (PIN_BASE + 0x40 + 26) -#define AT91_PIN_PC27 (PIN_BASE + 0x40 + 27) -#define AT91_PIN_PC28 (PIN_BASE + 0x40 + 28) -#define AT91_PIN_PC29 (PIN_BASE + 0x40 + 29) -#define AT91_PIN_PC30 (PIN_BASE + 0x40 + 30) -#define AT91_PIN_PC31 (PIN_BASE + 0x40 + 31) - - -rt_inline rt_uint32_t gpio_to_irq(rt_uint32_t gpio) -{ - return gpio; -} - -#endif diff --git a/bsp/at91sam9260/platform/interrupt.c b/bsp/at91sam9260/platform/interrupt.c deleted file mode 100644 index 60c4d0790b..0000000000 --- a/bsp/at91sam9260/platform/interrupt.c +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include "at91sam926x.h" -#include "interrupt.h" -#define MAX_HANDLERS (AIC_IRQS + PIN_IRQS) - -extern rt_uint32_t rt_interrupt_nest; - -/* exception and interrupt handler table */ -struct rt_irq_desc irq_desc[MAX_HANDLERS]; - -rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread; -rt_uint32_t rt_thread_switch_interrupt_flag; - - -/* -------------------------------------------------------------------- - * Interrupt initialization - * -------------------------------------------------------------------- */ - -rt_uint32_t at91_extern_irq; - -#define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq) - -/* - * The default interrupt priority levels (0 = lowest, 7 = highest). - */ -static rt_uint32_t at91sam9260_default_irq_priority[MAX_HANDLERS] = { - 7, /* Advanced Interrupt Controller */ - 7, /* System Peripherals */ - 1, /* Parallel IO Controller A */ - 1, /* Parallel IO Controller B */ - 1, /* Parallel IO Controller C */ - 0, /* Analog-to-Digital Converter */ - 5, /* USART 0 */ - 5, /* USART 1 */ - 5, /* USART 2 */ - 0, /* Multimedia Card Interface */ - 2, /* USB Device Port */ - 6, /* Two-Wire Interface */ - 5, /* Serial Peripheral Interface 0 */ - 5, /* Serial Peripheral Interface 1 */ - 5, /* Serial Synchronous Controller */ - 0, - 0, - 0, /* Timer Counter 0 */ - 0, /* Timer Counter 1 */ - 0, /* Timer Counter 2 */ - 2, /* USB Host port */ - 3, /* Ethernet */ - 0, /* Image Sensor Interface */ - 5, /* USART 3 */ - 5, /* USART 4 */ - 5, /* USART 5 */ - 0, /* Timer Counter 3 */ - 0, /* Timer Counter 4 */ - 0, /* Timer Counter 5 */ - 0, /* Advanced Interrupt Controller */ - 0, /* Advanced Interrupt Controller */ - 0, /* Advanced Interrupt Controller */ -}; - -/** - * @addtogroup AT91SAM926X - */ -/*@{*/ - -void rt_hw_interrupt_mask(int irq); -void rt_hw_interrupt_umask(int irq); - -rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector, void *param) -{ - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); - return RT_NULL; -} - -rt_isr_handler_t at91_gpio_irq_handle(rt_uint32_t vector, void *param) -{ - rt_uint32_t isr, pio, irq_n; - void *parameter; - - if (vector == AT91SAM9260_ID_PIOA) - { - pio = AT91_PIOA; - irq_n = AIC_IRQS; - } - else if (vector == AT91SAM9260_ID_PIOB) - { - pio = AT91_PIOB; - irq_n = AIC_IRQS + 32; - } - else if (vector == AT91SAM9260_ID_PIOC) - { - pio = AT91_PIOC; - irq_n = AIC_IRQS + 32*2; - } - else - return RT_NULL; - isr = at91_sys_read(pio+PIO_ISR) & at91_sys_read(pio+PIO_IMR); - while (isr) - { - if (isr & 1) - { - parameter = irq_desc[irq_n].param; - irq_desc[irq_n].handler(irq_n, parameter); - } - isr >>= 1; - irq_n++; - } - - return RT_NULL; -} - -/* - * Initialize the AIC interrupt controller. - */ -void at91_aic_init(rt_uint32_t *priority) -{ - rt_uint32_t i; - - /* - * The IVR is used by macro get_irqnr_and_base to read and verify. - * The irq number is NR_AIC_IRQS when a spurious interrupt has occurred. - */ - for (i = 0; i < AIC_IRQS; i++) { - /* Put irq number in Source Vector Register: */ - at91_sys_write(AT91_AIC_SVR(i), i); // no-used - /* Active Low interrupt, with the specified priority */ - at91_sys_write(AT91_AIC_SMR(i), AT91_AIC_SRCTYPE_LOW | priority[i]); - //AT91_AIC_SRCTYPE_FALLING - - /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */ - if (i < 8) - at91_sys_write(AT91_AIC_EOICR, 0); - } - - /* - * Spurious Interrupt ID in Spurious Vector Register is NR_AIC_IRQS - * When there is no current interrupt, the IRQ Vector Register reads the value stored in AIC_SPU - */ - at91_sys_write(AT91_AIC_SPU, AIC_IRQS); - - /* No debugging in AIC: Debug (Protect) Control Register */ - at91_sys_write(AT91_AIC_DCR, 0); - - /* Disable and clear all interrupts initially */ - at91_sys_write(AT91_AIC_IDCR, 0xFFFFFFFF); - at91_sys_write(AT91_AIC_ICCR, 0xFFFFFFFF); -} - - -static void at91_gpio_irq_init() -{ - int i, idx; - char *name[] = {"PIOA", "PIOB", "PIOC"}; - - at91_sys_write(AT91_PIOA+PIO_IDR, 0xffffffff); - at91_sys_write(AT91_PIOB+PIO_IDR, 0xffffffff); - at91_sys_write(AT91_PIOC+PIO_IDR, 0xffffffff); - - idx = AT91SAM9260_ID_PIOA; - for (i = 0; i < 3; i++) - { - irq_desc[idx].handler = (rt_isr_handler_t)at91_gpio_irq_handle; - irq_desc[idx].param = RT_NULL; -#ifdef RT_USING_INTERRUPT_INFO - rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, name[i]); - irq_desc[idx].counter = 0; -#endif - idx++; - } - - rt_hw_interrupt_umask(AT91SAM9260_ID_PIOA); - rt_hw_interrupt_umask(AT91SAM9260_ID_PIOB); - rt_hw_interrupt_umask(AT91SAM9260_ID_PIOC); -} - - -/** - * This function will initialize hardware interrupt - */ -void rt_hw_interrupt_init(void) -{ - register rt_uint32_t idx; - rt_uint32_t *priority = at91sam9260_default_irq_priority; - - at91_extern_irq = (1UL << AT91SAM9260_ID_IRQ0) | (1UL << AT91SAM9260_ID_IRQ1) - | (1UL << AT91SAM9260_ID_IRQ2); - - /* Initialize the AIC interrupt controller */ - at91_aic_init(priority); - - /* init exceptions table */ - for(idx=0; idx < MAX_HANDLERS; idx++) - { - irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; - irq_desc[idx].param = RT_NULL; -#ifdef RT_USING_INTERRUPT_INFO - rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); - irq_desc[idx].counter = 0; -#endif - } - - at91_gpio_irq_init(); - - /* init interrupt nest, and context in thread sp */ - rt_interrupt_nest = 0; - rt_interrupt_from_thread = 0; - rt_interrupt_to_thread = 0; - rt_thread_switch_interrupt_flag = 0; -} - -static void at91_gpio_irq_mask(int irq) -{ - rt_uint32_t pin, pio, bank; - - bank = (irq - AIC_IRQS)>>5; - - if (bank == 0) - { - pio = AT91_PIOA; - } - else if (bank == 1) - { - pio = AT91_PIOB; - } - else if (bank == 2) - { - pio = AT91_PIOC; - } - else - return; - pin = 1 << ((irq - AIC_IRQS) & 31); - at91_sys_write(pio+PIO_IDR, pin); -} - -/** - * This function will mask a interrupt. - * @param vector the interrupt number - */ -void rt_hw_interrupt_mask(int irq) -{ - if (irq >= AIC_IRQS) - { - at91_gpio_irq_mask(irq); - } - else - { - /* Disable interrupt on AIC */ - at91_sys_write(AT91_AIC_IDCR, 1 << irq); - } -} - -static void at91_gpio_irq_umask(int irq) -{ - rt_uint32_t pin, pio, bank; - - bank = (irq - AIC_IRQS)>>5; - - if (bank == 0) - { - pio = AT91_PIOA; - } - else if (bank == 1) - { - pio = AT91_PIOB; - } - else if (bank == 2) - { - pio = AT91_PIOC; - } - else - return; - pin = 1 << ((irq - AIC_IRQS) & 31); - at91_sys_write(pio+PIO_IER, pin); -} - -/** - * This function will un-mask a interrupt. - * @param vector the interrupt number - */ -void rt_hw_interrupt_umask(int irq) -{ - if (irq >= AIC_IRQS) - { - at91_gpio_irq_umask(irq); - } - else - { - /* Enable interrupt on AIC */ - at91_sys_write(AT91_AIC_IECR, 1 << irq); - } -} - -/** - * This function will install a interrupt service routine to a interrupt. - * @param vector the interrupt number - * @param handler the interrupt service routine to be installed - * @param param the interrupt service function parameter - * @param name the interrupt name - * @return old handler - */ -rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, - void *param, const char *name) -{ - rt_isr_handler_t old_handler = RT_NULL; - - if(vector < MAX_HANDLERS) - { - old_handler = irq_desc[vector].handler; - if (handler != RT_NULL) - { - irq_desc[vector].handler = (rt_isr_handler_t)handler; - irq_desc[vector].param = param; -#ifdef RT_USING_INTERRUPT_INFO - rt_snprintf(irq_desc[vector].name, RT_NAME_MAX - 1, "%s", name); - irq_desc[vector].counter = 0; -#endif - } - } - - return old_handler; -} - -/*@}*/ - -/* -static int at91_aic_set_type(unsigned irq, unsigned type) -{ - unsigned int smr, srctype; - - switch (type) { - case IRQ_TYPE_LEVEL_HIGH: - srctype = AT91_AIC_SRCTYPE_HIGH; - break; - case IRQ_TYPE_EDGE_RISING: - srctype = AT91_AIC_SRCTYPE_RISING; - break; - case IRQ_TYPE_LEVEL_LOW: - // only supported on external interrupts - if ((irq == AT91_ID_FIQ) || is_extern_irq(irq)) - srctype = AT91_AIC_SRCTYPE_LOW; - else - return -1; - break; - case IRQ_TYPE_EDGE_FALLING: - // only supported on external interrupts - if ((irq == AT91_ID_FIQ) || is_extern_irq(irq)) - srctype = AT91_AIC_SRCTYPE_FALLING; - else - return -1; - break; - default: - return -1; - } - - smr = at91_sys_read(AT91_AIC_SMR(irq)) & ~AT91_AIC_SRCTYPE; - at91_sys_write(AT91_AIC_SMR(irq), smr | srctype); - return 0; -} -*/ -rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq) -{ - - //volatile rt_uint32_t irqstat; - rt_uint32_t id; - if (fiq_irq == INT_FIQ) - return 0; - - //IRQ - /* AIC need this dummy read */ - at91_sys_read(AT91_AIC_IVR); - /* clear pending register */ - id = at91_sys_read(AT91_AIC_ISR); - - return id; -} - -void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id) -{ - /* new FIQ generation */ - if (fiq_irq == INT_FIQ) - return; - - /* new IRQ generation */ - // EIOCR must be write any value after interrupt, - // or else can't response next interrupt - at91_sys_write(AT91_AIC_EOICR, 0x0); -} - -void rt_interrupt_dispatch(rt_uint32_t fiq_irq) -{ - rt_isr_handler_t isr_func; - rt_uint32_t irq; - void *param; - - /* get irq number */ - irq = rt_hw_interrupt_get_active(fiq_irq); - - /* get interrupt service routine */ - isr_func = irq_desc[irq].handler; - param = irq_desc[irq].param; - - /* turn to interrupt service routine */ - isr_func(irq, param); - - rt_hw_interrupt_ack(fiq_irq, irq); -#ifdef RT_USING_INTERRUPT_INFO - irq_desc[irq].counter ++; -#endif -} - -#ifdef RT_USING_FINSH -#ifdef RT_USING_INTERRUPT_INFO -void list_irq(void) -{ - int irq; - - rt_kprintf("number\tcount\tname\n"); - for (irq = 0; irq < MAX_HANDLERS; irq++) - { - if (rt_strncmp(irq_desc[irq].name, "default", sizeof("default"))) - { - rt_kprintf("%02ld: %10ld %s\n", irq, irq_desc[irq].counter, irq_desc[irq].name); - } - } -} - -#include - -#ifdef FINSH_USING_MSH -int cmd_list_irq(int argc, char** argv) -{ - list_irq(); - return 0; -} -MSH_CMD_EXPORT_ALIAS(cmd_list_irq, list_irq, list system irq); -#endif -#endif -#endif - - diff --git a/bsp/at91sam9260/platform/interrupt.h b/bsp/at91sam9260/platform/interrupt.h deleted file mode 100644 index 0375164e00..0000000000 --- a/bsp/at91sam9260/platform/interrupt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2015-04-14 ArdaFu first version - */ -#ifndef __INTERRUPT_H__ -#define __INTERRUPT_H__ - -#define INT_IRQ 0x00 -#define INT_FIQ 0x01 - - -#endif diff --git a/bsp/at91sam9260/platform/io.h b/bsp/at91sam9260/platform/io.h deleted file mode 100644 index 3e41feee90..0000000000 --- a/bsp/at91sam9260/platform/io.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __ASM_ARCH_IO_H -#define __ASM_ARCH_IO_H - -#define AT91_BASE_SYS 0xffffe800 - -#define IO_SPACE_LIMIT 0xFFFFFFFF - -#define readb(a) (*(volatile unsigned char *)(a)) -#define readw(a) (*(volatile unsigned short *)(a)) -#define readl(a) (*(volatile unsigned int *)(a)) - -#define writeb(v,a) (*(volatile unsigned char *)(a) = (v)) -#define writew(v,a) (*(volatile unsigned short *)(a) = (v)) -#define writel(v,a) (*(volatile unsigned int *)(a) = (v)) - - -rt_inline unsigned int at91_sys_read(unsigned int reg_offset) -{ - unsigned int addr = AT91_BASE_SYS; - - return readl(addr + reg_offset); -} - -rt_inline void at91_sys_write(unsigned int reg_offset, unsigned long value) -{ - unsigned int addr = AT91_BASE_SYS; - - writel(value, addr + reg_offset); -} - - -#endif - diff --git a/bsp/at91sam9260/platform/irq.h b/bsp/at91sam9260/platform/irq.h deleted file mode 100644 index 76d4200d3b..0000000000 --- a/bsp/at91sam9260/platform/irq.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __IRQ_H__ -#define __IRQ_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * IRQ line status. - * - * Bits 0-7 are reserved - * - * IRQ types - */ -#define IRQ_TYPE_NONE 0x00000000 /* Default, unspecified type */ -#define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ -#define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ -#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) -#define IRQ_TYPE_LEVEL_HIGH 0x00000004 /* Level high type */ -#define IRQ_TYPE_LEVEL_LOW 0x00000008 /* Level low type */ -#define IRQ_TYPE_SENSE_MASK 0x0000000f /* Mask of the above */ -#define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/bsp/at91sam9260/platform/reset.c b/bsp/at91sam9260/platform/reset.c deleted file mode 100644 index 6679ab57fe..0000000000 --- a/bsp/at91sam9260/platform/reset.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety modified from mini2440 - */ - -#include -#include -#include "at91sam926x.h" - -/** - * @addtogroup AT91SAM926X - */ -/*@{*/ - -void machine_reset(void) -{ - at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | AT91_RSTC_PROCRST | AT91_RSTC_PERRST); -} - -void machine_shutdown(void) -{ - at91_sys_write(AT91_SHDW_CR, AT91_SHDW_KEY | AT91_SHDW_SHDW); -} - -#ifdef RT_USING_FINSH - -#include -FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_cpu_reset, reset, restart the system); - -#ifdef FINSH_USING_MSH -int cmd_reset(int argc, char** argv) -{ - rt_hw_cpu_reset(); - return 0; -} -MSH_CMD_EXPORT_ALIAS(cmd_reset, reset, restart the system); - -int cmd_shutdown(int argc, char** argv) -{ - rt_hw_cpu_shutdown(); - return 0; -} -MSH_CMD_EXPORT_ALIAS(cmd_shutdown, shutdown, shutdown the system); - -#endif -#endif - -/*@}*/ diff --git a/bsp/at91sam9260/platform/rt_low_level_init.c b/bsp/at91sam9260/platform/rt_low_level_init.c deleted file mode 100644 index 31ddf27ae6..0000000000 --- a/bsp/at91sam9260/platform/rt_low_level_init.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2015-04-14 ArdaFu first version - */ - -/* write register a=address, v=value */ -#define write_reg(a,v) (*(volatile unsigned int *)(a) = (v)) -/* Processor Reset */ -#define AT91_RSTC_PROCRST (1 << 0) -#define AT91_RSTC_PERRST (1 << 2) -#define AT91_RSTC_KEY (0xa5 << 24) -#define AT91_MATRIX_BASE (0XFFFFEE00) -/* Master Remap Control Register */ -#define AT91_MATRIX_MRCR (AT91_MATRIX_BASE + 0x100) -/* Remap Command for AHB Master 0 (ARM926EJ-S InSTRuction Master) */ -#define AT91_MATRIX_RCB0 (1 << 0) -/* Remap Command for AHB Master 1 (ARM926EJ-S Data Master) */ -#define AT91_MATRIX_RCB1 (1 << 1) - -#define AT91_AIC_BASE (0XFFFFF000) -/* Interrupt DisaBLe Command Register */ -#define AT91_AIC_IDCR (AT91_AIC_BASE + 0x124) -/* Interrupt Clear Command Register */ -#define AT91_AIC_ICCR (AT91_AIC_BASE + 0x128) - -#define AT91_WDT_BASE (0XFFFFFD40) -#define AT91_WDT_CR (AT91_WDT_BASE + 0x00) -#define AT91_WDT_CR_KEY (0xA5000000) -#define AT91_WDT_CR_WDRSTT (0x00000001) -#define AT91_WDT_MR (AT91_WDT_BASE + 0x04) -#define AT91_WDT_MR_WDDIS (0x00008000) - -void rt_low_level_init(void) -{ - // Mask all IRQs by clearing all bits in the INTMRS - write_reg(AT91_AIC_IDCR, 0xFFFFFFFF); - write_reg(AT91_AIC_ICCR, 0xFFFFFFFF); - // Remap internal ram to 0x00000000 Address - write_reg(AT91_MATRIX_MRCR, AT91_MATRIX_RCB0 | AT91_MATRIX_RCB1); - // Disable the watchdog - write_reg(AT91_WDT_CR, AT91_WDT_CR_KEY|AT91_WDT_CR_WDRSTT); - write_reg(AT91_WDT_MR, AT91_WDT_MR_WDDIS); - -} - diff --git a/bsp/at91sam9260/platform/rt_low_level_init.h b/bsp/at91sam9260/platform/rt_low_level_init.h deleted file mode 100644 index c79adf5284..0000000000 --- a/bsp/at91sam9260/platform/rt_low_level_init.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-06-04 ArdaFu first version - */ -#ifndef __RT_LOW_LEVEL_INIT_H__ -#define __RT_LOW_LEVEL_INIT_H__ - -/*-------- Stack size of CPU modes -------------------------------------------*/ -#define UND_STK_SIZE 512 -#define SVC_STK_SIZE 4096 -#define ABT_STK_SIZE 512 -#define IRQ_STK_SIZE 1024 -#define FIQ_STK_SIZE 1024 -#define SYS_STK_SIZE 512 -#define Heap_Size 512 -#endif diff --git a/bsp/at91sam9260/platform/system_clock.c b/bsp/at91sam9260/platform/system_clock.c deleted file mode 100644 index a8f866fdd6..0000000000 --- a/bsp/at91sam9260/platform/system_clock.c +++ /dev/null @@ -1,290 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include "at91sam926x.h" - -static rt_list_t clocks; - -struct clk { - char name[32]; - rt_uint32_t rate_hz; - struct clk *parent; - rt_list_t node; -}; - -static struct clk clk32k = { - "clk32k", - AT91_SLOW_CLOCK, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk main_clk = { - "main", - 0, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk plla = { - "plla", - 0, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk mck = { - "mck", - 0, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk uhpck = { - "uhpck", - 0, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk pllb = { - "pllb", - 0, - &main_clk, - {RT_NULL, RT_NULL}, -}; - -static struct clk udpck = { - "udpck", - 0, - &pllb, - {RT_NULL, RT_NULL}, -}; - -static struct clk *const standard_pmc_clocks[] = { - /* four primary clocks */ - &clk32k, - &main_clk, - &plla, - - /* MCK */ - &mck -}; - -/* clocks cannot be de-registered no refcounting necessary */ -struct clk *clk_get(const char *id) -{ - struct clk *clk; - rt_list_t *list; - - for (list = (&clocks)->next; list != &clocks; list = list->next) - { - clk = (struct clk *)rt_list_entry(list, struct clk, node); - if (rt_strcmp(id, clk->name) == 0) - return clk; - } - - return RT_NULL; -} - -rt_uint32_t clk_get_rate(struct clk *clk) -{ - rt_uint32_t flags; - rt_uint32_t rate; - - for (;;) { - rate = clk->rate_hz; - if (rate || !clk->parent) - break; - clk = clk->parent; - } - return rate; -} - -static rt_uint32_t at91_pll_rate(struct clk *pll, rt_uint32_t freq, rt_uint32_t reg) -{ - unsigned mul, div; - - div = reg & 0xff; - mul = (reg >> 16) & 0x7ff; - if (div && mul) { - freq /= div; - freq *= mul + 1; - } else - freq = 0; - - return freq; -} - -static unsigned at91_pll_calc(unsigned main_freq, unsigned out_freq) -{ - unsigned i, div = 0, mul = 0, diff = 1 << 30; - unsigned ret = (out_freq > 155000000) ? 0xbe00 : 0x3e00; - - /* PLL output max 240 MHz (or 180 MHz per errata) */ - if (out_freq > 240000000) - goto fail; - - for (i = 1; i < 256; i++) { - int diff1; - unsigned input, mul1; - - /* - * PLL input between 1MHz and 32MHz per spec, but lower - * frequences seem necessary in some cases so allow 100K. - * Warning: some newer products need 2MHz min. - */ - input = main_freq / i; - if (input < 100000) - continue; - if (input > 32000000) - continue; - - mul1 = out_freq / input; - if (mul1 > 2048) - continue; - if (mul1 < 2) - goto fail; - - diff1 = out_freq - input * mul1; - if (diff1 < 0) - diff1 = -diff1; - if (diff > diff1) { - diff = diff1; - div = i; - mul = mul1; - if (diff == 0) - break; - } - } - if (i == 256 && diff > (out_freq >> 5)) - goto fail; - return ret | ((mul - 1) << 16) | div; -fail: - return 0; -} - -static rt_uint32_t at91_usb_rate(struct clk *pll, rt_uint32_t freq, rt_uint32_t reg) -{ - if (pll == &pllb && (reg & AT91_PMC_USB96M)) - return freq / 2; - else - return freq; -} - - -/* PLLB generated USB full speed clock init */ -static void at91_pllb_usbfs_clock_init(rt_uint32_t main_clock) -{ - rt_uint32_t at91_pllb_usb_init; - /* - * USB clock init: choose 48 MHz PLLB value, - * disable 48MHz clock during usb peripheral suspend. - * - * REVISIT: assumes MCK doesn't derive from PLLB! - */ - uhpck.parent = &pllb; - - at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M; - pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init); - - at91_sys_write(AT91_CKGR_PLLBR, 0); - - udpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); - uhpck.rate_hz = at91_usb_rate(&pllb, pllb.rate_hz, at91_pllb_usb_init); -} - -static struct clk *at91_css_to_clk(unsigned long css) -{ - switch (css) { - case AT91_PMC_CSS_SLOW: - return &clk32k; - case AT91_PMC_CSS_MAIN: - return &main_clk; - case AT91_PMC_CSS_PLLA: - return &plla; - case AT91_PMC_CSS_PLLB: - return &pllb; - } - - return RT_NULL; -} - -#define false 0 -#define true 1 -int at91_clock_init(rt_uint32_t main_clock) -{ - unsigned tmp, freq, mckr; - int i; - int pll_overclock = false; - - /* - * When the bootloader initialized the main oscillator correctly, - * there's no problem using the cycle counter. But if it didn't, - * or when using oscillator bypass mode, we must be told the speed - * of the main clock. - */ - if (!main_clock) { - do { - tmp = at91_sys_read(AT91_CKGR_MCFR); - } while (!(tmp & AT91_PMC_MAINRDY)); - main_clock = (tmp & AT91_PMC_MAINF) * (AT91_SLOW_CLOCK / 16); - } - main_clk.rate_hz = main_clock; - - /* report if PLLA is more than mildly overclocked */ - plla.rate_hz = at91_pll_rate(&plla, main_clock, at91_sys_read(AT91_CKGR_PLLAR)); - if (plla.rate_hz > 209000000) - pll_overclock = true; - if (pll_overclock) - ;//rt_kprintf("Clocks: PLLA overclocked, %ld MHz\n", plla.rate_hz / 1000000); - - at91_pllb_usbfs_clock_init(main_clock); - - /* - * MCK and CPU derive from one of those primary clocks. - * For now, assume this parentage won't change. - */ - mckr = at91_sys_read(AT91_PMC_MCKR); - mck.parent = at91_css_to_clk(mckr & AT91_PMC_CSS); - freq = mck.parent->rate_hz; - freq /= (1 << ((mckr & AT91_PMC_PRES) >> 2)); /* prescale */ - - mck.rate_hz = freq / (1 << ((mckr & AT91_PMC_MDIV) >> 8)); /* mdiv */ - - /* Register the PMC's standard clocks */ - rt_list_init(&clocks); - for (i = 0; i < ARRAY_SIZE(standard_pmc_clocks); i++) - rt_list_insert_after(&clocks, &standard_pmc_clocks[i]->node); - - rt_list_insert_after(&clocks, &pllb.node); - rt_list_insert_after(&clocks, &uhpck.node); - rt_list_insert_after(&clocks, &udpck.node); - - /* MCK and CPU clock are "always on" */ - //clk_enable(&mck); - - /*rt_kprintf("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", - freq / 1000000, (unsigned) mck.rate_hz / 1000000, - (unsigned) main_clock / 1000000, - ((unsigned) main_clock % 1000000) / 1000);*///cause blocked - - return 0; -} - -/** - * @brief System Clock Configuration - */ -void rt_hw_clock_init(void) -{ - at91_clock_init(18432000); -} - diff --git a/bsp/at91sam9260/project.uvopt b/bsp/at91sam9260/project.uvopt deleted file mode 100644 index 7454a3661d..0000000000 --- a/bsp/at91sam9260/project.uvopt +++ /dev/null @@ -1,183 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - 0 - - - - 0 - 0 - - - - rtthread - 0x4 - ARM-ADS - - 18432000 - - 1 - 1 - 1 - 0 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\Listings\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 1 - 0 - 1 - - 16 - - - 0 - Datasheet - DATASHTS\ATMEL\AT91SAM9260_DS.PDF - - - 1 - Summary - DATASHTS\ATMEL\AT91SAM9260_DC.PDF - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - 1 - 0 - 0 - 1 - 18 - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - 0 - JLTAgdi - -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 - - - 0 - UL2ARM - -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - - - - - 0 - - - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - 0 - 0 - 0 - - - - - - - -
diff --git a/bsp/at91sam9260/project.uvproj b/bsp/at91sam9260/project.uvproj deleted file mode 100644 index 20c59c4440..0000000000 --- a/bsp/at91sam9260/project.uvproj +++ /dev/null @@ -1,815 +0,0 @@ - - - 1.1 -
### uVision Project, (C) Keil Software
- - - rtthread - 0x4 - ARM-ADS - - - AT91SAM9260 - Atmel - IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) - - "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") - UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - 4210 - AT91SAM9260.H - - - - - - - - - - - 0 - 0 - - - - Atmel\SAM9260\ - Atmel\SAM9260\ - - 0 - 0 - 0 - 0 - 1 - - .\Objects\ - rtthread - 1 - 0 - 0 - 1 - 1 - .\Listings\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 1 - 0 - fromelf.exe --bin -o $L@L.bin #L - - 0 - 0 - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - SARM.DLL - -cAT91SAM9260 - DARMATS9.DLL - -p91SAM9260 - SARM.DLL - - TARMATS9.DLL - -p91SAM9260 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - - - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - - 0 - 18 - - - - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - - 1 - 0 - 0 - 0 - 1 - 4096 - - 1 - BIN\UL2ARM.DLL - "" () - .\jlink\at91sam9260.ini - - - - 0 - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - ARM926EJ-S - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 1 - 0x100000 - 0x8000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x20000000 - 0x800000 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x100000 - 0x8000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x20800000 - 0x1800000 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 0 - 0x300000 - 0x1000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 1 - 0 - 1 - 1 - 1 - 1 - 0 - 0 - 0 - - - __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;platform;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - .\platform - - - - 0 - 0 - 0 - 0 - 1 - 0 - 0x20000000 - 0x20800000 - - .\link_scripts\at91sam9260_ram.scat - - - - - - - - - - - Applications - - - application.c - 1 - applications\application.c - - - - - Compiler - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - time.c - 1 - ..\..\components\libc\compilers\common\time.c - - - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - - - - CPU - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - - - - showmem.c - 1 - ..\..\libcpu\arm\common\showmem.c - - - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - - - - stack.c - 1 - ..\..\libcpu\arm\arm926\stack.c - - - - - mmu.c - 1 - ..\..\libcpu\arm\arm926\mmu.c - - - - - cpuport.c - 1 - ..\..\libcpu\arm\arm926\cpuport.c - - - - - machine.c - 1 - ..\..\libcpu\arm\arm926\machine.c - - - - - context_rvds.S - 2 - ..\..\libcpu\arm\arm926\context_rvds.S - - - - - trap.c - 1 - ..\..\libcpu\arm\arm926\trap.c - - - - - start_rvds.S - 2 - ..\..\libcpu\arm\arm926\start_rvds.S - - - - - DeviceDrivers - - - completion.c - 1 - ..\..\components\drivers\ipc\completion.c - - - - - workqueue.c - 1 - ..\..\components\drivers\ipc\workqueue.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\ipc\waitqueue.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\ipc\ringbuffer.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\ipc\ringblk_buf.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\ipc\dataqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\ipc\pipe.c - - - - - pin.c - 1 - ..\..\components\drivers\misc\pin.c - - - - - serial.c - 1 - ..\..\components\drivers\serial\serial.c - - - - - Drivers - - - usart.c - 1 - drivers\usart.c - - - - - board.c - 1 - drivers\board.c - - - - - led.c - 1 - drivers\led.c - - - - - Filesystem - - - dfs_posix.c - 1 - ..\..\components\dfs\src\dfs_posix.c - - - - - dfs_fs.c - 1 - ..\..\components\dfs\src\dfs_fs.c - - - - - dfs.c - 1 - ..\..\components\dfs\src\dfs.c - - - - - dfs_file.c - 1 - ..\..\components\dfs\src\dfs_file.c - - - - - devfs.c - 1 - ..\..\components\dfs\filesystems\devfs\devfs.c - - - - - Finsh - - - shell.c - 1 - ..\..\components\finsh\shell.c - - - - - msh.c - 1 - ..\..\components\finsh\msh.c - - - - - msh_file.c - 1 - ..\..\components\finsh\msh_file.c - - - - - cmd.c - 1 - ..\..\components\finsh\cmd.c - - - - - Kernel - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - clock.c - 1 - ..\..\src\clock.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - object.c - 1 - ..\..\src\object.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - components.c - 1 - ..\..\src\components.c - - - - - Platform - - - reset.c - 1 - platform\reset.c - - - - - rt_low_level_init.c - 1 - platform\rt_low_level_init.c - - - - - system_clock.c - 1 - platform\system_clock.c - - - - - interrupt.c - 1 - platform\interrupt.c - - - - - - -
diff --git a/bsp/at91sam9260/rtconfig.h b/bsp/at91sam9260/rtconfig.h deleted file mode 100755 index f002299141..0000000000 --- a/bsp/at91sam9260/rtconfig.h +++ /dev/null @@ -1,203 +0,0 @@ -#ifndef RT_CONFIG_H__ -#define RT_CONFIG_H__ - -/* Automatically generated file; DO NOT EDIT. */ -/* RT-Thread Configuration */ - -/* RT-Thread Kernel */ - -#define RT_NAME_MAX 8 -#define RT_ALIGN_SIZE 4 -#define RT_THREAD_PRIORITY_32 -#define RT_THREAD_PRIORITY_MAX 32 -#define RT_TICK_PER_SECOND 100 -#define RT_USING_OVERFLOW_CHECK -#define RT_USING_HOOK -#define RT_HOOK_USING_FUNC_PTR -#define RT_USING_IDLE_HOOK -#define RT_IDLE_HOOK_LIST_SIZE 4 -#define IDLE_THREAD_STACK_SIZE 256 - -/* kservice optimization */ - -#define RT_DEBUG -#define RT_DEBUG_COLOR - -/* Inter-Thread communication */ - -#define RT_USING_SEMAPHORE -#define RT_USING_MUTEX -#define RT_USING_EVENT -#define RT_USING_MAILBOX -#define RT_USING_MESSAGEQUEUE - -/* Memory Management */ - -#define RT_USING_MEMPOOL -#define RT_USING_SMALL_MEM -#define RT_USING_SMALL_MEM_AS_HEAP -#define RT_USING_HEAP - -/* Kernel Device Object */ - -#define RT_USING_DEVICE -#define RT_USING_INTERRUPT_INFO -#define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 128 -#define RT_CONSOLE_DEVICE_NAME "dbgu" -#define RT_VER_NUM 0x40100 - -/* RT-Thread Components */ - -#define RT_USING_COMPONENTS_INIT -#define RT_USING_USER_MAIN -#define RT_MAIN_THREAD_STACK_SIZE 2048 -#define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - - -/* Command shell */ - -#define RT_USING_FINSH -#define RT_USING_MSH -#define FINSH_USING_MSH -#define FINSH_THREAD_NAME "tshell" -#define FINSH_THREAD_PRIORITY 20 -#define FINSH_THREAD_STACK_SIZE 4096 -#define FINSH_USING_HISTORY -#define FINSH_HISTORY_LINES 5 -#define FINSH_USING_SYMTAB -#define FINSH_CMD_SIZE 80 -#define MSH_USING_BUILT_IN_COMMANDS -#define FINSH_USING_DESCRIPTION -#define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - -#define RT_USING_DFS -#define DFS_USING_POSIX -#define DFS_USING_WORKDIR -#define DFS_FILESYSTEMS_MAX 2 -#define DFS_FILESYSTEM_TYPES_MAX 2 -#define DFS_FD_MAX 16 -#define RT_USING_DFS_DEVFS - -/* Device Drivers */ - -#define RT_USING_DEVICE_IPC -#define RT_USING_SERIAL -#define RT_USING_SERIAL_V1 -#define RT_SERIAL_USING_DMA -#define RT_SERIAL_RB_BUFSZ 64 -#define RT_USING_PIN - -/* Using USB */ - - -/* POSIX layer and C standard library */ - -#define RT_LIBC_DEFAULT_TIMEZONE 8 - -/* POSIX (Portable Operating System Interface) layer */ - - -/* Interprocess Communication (IPC) */ - - -/* Socket is in the 'Network' category */ - -/* Network */ - -/* Socket abstraction layer */ - - -/* Network interface device */ - - -/* light weight TCP/IP stack */ - - -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ - - -/* Utilities */ - - -/* RT-Thread Utestcases */ - - -/* RT-Thread online packages */ - -/* IoT - internet of things */ - - -/* Wi-Fi */ - -/* Marvell WiFi */ - - -/* Wiced WiFi */ - - -/* IoT Cloud */ - - -/* security packages */ - - -/* language packages */ - - -/* multimedia packages */ - -/* LVGL: powerful and easy-to-use embedded GUI library */ - - -/* u8g2: a monochrome graphic library */ - - -/* PainterEngine: A cross-platform graphics application framework written in C language */ - - -/* tools packages */ - - -/* system packages */ - -/* enhanced kernel services */ - - -/* POSIX extension functions */ - - -/* acceleration: Assembly language or algorithmic acceleration packages */ - - -/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ - - -/* Micrium: Micrium software products porting for RT-Thread */ - - -/* peripheral libraries and drivers */ - - -/* AI packages */ - - -/* miscellaneous packages */ - -/* samples: kernel and components samples */ - - -/* entertainment: terminal games and other interesting software packages */ - -#define SOC_AT91SAM926 -#define RT_USING_DBGU -#define RT_USING_LED - -#endif diff --git a/bsp/at91sam9260/rtconfig.py b/bsp/at91sam9260/rtconfig.py deleted file mode 100755 index da3be0fd59..0000000000 --- a/bsp/at91sam9260/rtconfig.py +++ /dev/null @@ -1,63 +0,0 @@ -import os -ARCH = 'arm' -CPU = 'arm926' -# toolchains options -CROSS_TOOL = 'gcc' - -#------- toolchains path ------------------------------------------------------- -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = r'D:\arm-2013.11\bin' -elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = 'C:/Keil_v5' -elif CROSS_TOOL == 'iar': - PLATFORM = 'iar' - EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2' - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -#BUILD = 'debug' -BUILD = 'release' - -CORE = 'arm926ej-s' -MAP_FILE = 'rtthread_at91sam9260.map' -LINK_FILE = 'link_scripts/at91sam9260_ram' -TARGET_NAME = 'rtthread.bin' - -#------- GCC settings ---------------------------------------------------------- -if PLATFORM == 'gcc': - # toolchains - PREFIX = 'arm-none-eabi-' - CC = PREFIX + 'gcc' - AS = PREFIX + 'gcc' - AR = PREFIX + 'ar' - LINK = PREFIX + 'gcc' - TARGET_EXT = 'elf' - SIZE = PREFIX + 'size' - OBJDUMP = PREFIX + 'objdump' - OBJCPY = PREFIX + 'objcopy' - - DEVICE = ' -mcpu=arm926ej-s' - CFLAGS = DEVICE - AFLAGS = '-c'+ DEVICE + ' -x assembler-with-cpp' - AFLAGS += ' -Iplatform' - LFLAGS = DEVICE - LFLAGS += ' -Wl,--gc-sections,-cref,-Map=' + MAP_FILE - LFLAGS += ' -T ' + LINK_FILE + '.ld' - - CPATH = '' - LPATH = '' - - if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' - else: - CFLAGS += ' -O2' - - POST_ACTION = OBJCPY + ' -O binary $TARGET ' + TARGET_NAME + '\n' - POST_ACTION += SIZE + ' $TARGET\n' diff --git a/bsp/at91sam9260/template.ewp b/bsp/at91sam9260/template.ewp deleted file mode 100644 index c9cc04c3db..0000000000 --- a/bsp/at91sam9260/template.ewp +++ /dev/null @@ -1,1914 +0,0 @@ - - - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 24 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 31 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 9 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - 0 - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 16 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 24 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 31 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 9 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - 0 - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 16 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - - diff --git a/bsp/at91sam9260/template.eww b/bsp/at91sam9260/template.eww deleted file mode 100644 index bd036bb4c9..0000000000 --- a/bsp/at91sam9260/template.eww +++ /dev/null @@ -1,10 +0,0 @@ - - - - - $WS_DIR$\template.ewp - - - - - diff --git a/bsp/at91sam9260/template.uvopt b/bsp/at91sam9260/template.uvopt deleted file mode 100644 index 7454a3661d..0000000000 --- a/bsp/at91sam9260/template.uvopt +++ /dev/null @@ -1,183 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - 0 - - - - 0 - 0 - - - - rtthread - 0x4 - ARM-ADS - - 18432000 - - 1 - 1 - 1 - 0 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\Listings\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 1 - 0 - 1 - - 16 - - - 0 - Datasheet - DATASHTS\ATMEL\AT91SAM9260_DS.PDF - - - 1 - Summary - DATASHTS\ATMEL\AT91SAM9260_DC.PDF - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - 1 - 0 - 0 - 1 - 18 - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - 0 - JLTAgdi - -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 - - - 0 - UL2ARM - -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - - - - - 0 - - - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - 0 - 0 - 0 - - - - - - - -
diff --git a/bsp/at91sam9260/template.uvproj b/bsp/at91sam9260/template.uvproj deleted file mode 100644 index 6e4ee85615..0000000000 --- a/bsp/at91sam9260/template.uvproj +++ /dev/null @@ -1,419 +0,0 @@ - - - - 1.1 - -
### uVision Project, (C) Keil Software
- - - - rtthread - 0x4 - ARM-ADS - - - AT91SAM9260 - Atmel - IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) - - "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") - UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - 4210 - AT91SAM9260.H - - - - - - - - - - - 0 - 0 - - - - Atmel\SAM9260\ - Atmel\SAM9260\ - - 0 - 0 - 0 - 0 - 1 - - .\Objects\ - rtthread - 1 - 0 - 0 - 1 - 1 - .\Listings\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 1 - 0 - fromelf.exe --bin -o $L@L.bin #L - - 0 - 0 - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - SARM.DLL - -cAT91SAM9260 - DARMATS9.DLL - -p91SAM9260 - SARM.DLL - - TARMATS9.DLL - -p91SAM9260 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - - - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - - 0 - 18 - - - - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - - 1 - 0 - 0 - 0 - 1 - 4096 - - 1 - BIN\UL2ARM.DLL - "" () - .\jlink\at91sam9260.ini - - - - 0 - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - ARM926EJ-S - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 1 - 0x100000 - 0x8000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x20000000 - 0x800000 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x100000 - 0x8000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x20800000 - 0x1800000 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 0 - 0x300000 - 0x1000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 1 - 0 - 1 - 1 - 1 - 1 - 0 - 0 - 0 - - - RT_USING_INTERRUPT_INFO - - - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - .\platform - - - - 0 - 0 - 0 - 0 - 1 - 0 - 0x20000000 - 0x20800000 - - .\link_scripts\at91sam9260_ram.scat - - - - - - - - - - - -
diff --git a/bsp/at91sam9g45/.config b/bsp/at91sam9g45/.config deleted file mode 100644 index 00e0fed1ce..0000000000 --- a/bsp/at91sam9g45/.config +++ /dev/null @@ -1,672 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# RT-Thread Configuration -# - -# -# RT-Thread Kernel -# -CONFIG_RT_NAME_MAX=16 -# CONFIG_RT_USING_ARCH_DATA_TYPE is not set -# CONFIG_RT_USING_SMP is not set -CONFIG_RT_ALIGN_SIZE=4 -# CONFIG_RT_THREAD_PRIORITY_8 is not set -CONFIG_RT_THREAD_PRIORITY_32=y -# CONFIG_RT_THREAD_PRIORITY_256 is not set -CONFIG_RT_THREAD_PRIORITY_MAX=32 -CONFIG_RT_TICK_PER_SECOND=1000 -CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_USING_HOOK=y -CONFIG_RT_HOOK_USING_FUNC_PTR=y -CONFIG_RT_USING_IDLE_HOOK=y -CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 -CONFIG_IDLE_THREAD_STACK_SIZE=256 -CONFIG_RT_USING_TIMER_SOFT=y -CONFIG_RT_TIMER_THREAD_PRIO=4 -CONFIG_RT_TIMER_THREAD_STACK_SIZE=512 - -# -# kservice optimization -# -# CONFIG_RT_KSERVICE_USING_STDLIB is not set -# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set -# CONFIG_RT_USING_TINY_FFS is not set -# CONFIG_RT_PRINTF_LONGLONG is not set -CONFIG_RT_DEBUG=y -CONFIG_RT_DEBUG_COLOR=y -# CONFIG_RT_DEBUG_INIT_CONFIG is not set -# CONFIG_RT_DEBUG_THREAD_CONFIG is not set -# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set -# CONFIG_RT_DEBUG_IPC_CONFIG is not set -# CONFIG_RT_DEBUG_TIMER_CONFIG is not set -# CONFIG_RT_DEBUG_IRQ_CONFIG is not set -# CONFIG_RT_DEBUG_MEM_CONFIG is not set -# CONFIG_RT_DEBUG_SLAB_CONFIG is not set -# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set -# CONFIG_RT_DEBUG_MODULE_CONFIG is not set - -# -# Inter-Thread communication -# -CONFIG_RT_USING_SEMAPHORE=y -CONFIG_RT_USING_MUTEX=y -CONFIG_RT_USING_EVENT=y -CONFIG_RT_USING_MAILBOX=y -CONFIG_RT_USING_MESSAGEQUEUE=y -# CONFIG_RT_USING_SIGNALS is not set - -# -# Memory Management -# -CONFIG_RT_USING_MEMPOOL=y -CONFIG_RT_USING_SMALL_MEM=y -# CONFIG_RT_USING_SLAB is not set -# CONFIG_RT_USING_MEMHEAP is not set -CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y -# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set -# CONFIG_RT_USING_SLAB_AS_HEAP is not set -# CONFIG_RT_USING_USERHEAP is not set -# CONFIG_RT_USING_NOHEAP is not set -# CONFIG_RT_USING_MEMTRACE is not set -# CONFIG_RT_USING_HEAP_ISR is not set -CONFIG_RT_USING_HEAP=y - -# -# Kernel Device Object -# -CONFIG_RT_USING_DEVICE=y -# CONFIG_RT_USING_DEVICE_OPS is not set -CONFIG_RT_USING_INTERRUPT_INFO=y -CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=128 -CONFIG_RT_CONSOLE_DEVICE_NAME="dbgu" -CONFIG_RT_VER_NUM=0x40100 -CONFIG_ARCH_ARM=y -# CONFIG_RT_USING_CPU_FFS is not set -CONFIG_ARCH_ARM_ARM9=y -# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set - -# -# RT-Thread Components -# -CONFIG_RT_USING_COMPONENTS_INIT=y -CONFIG_RT_USING_USER_MAIN=y -CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 -CONFIG_RT_MAIN_THREAD_PRIORITY=10 -# CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -CONFIG_RT_USING_CPLUSPLUS=y -# CONFIG_RT_USING_CPLUSPLUS11 is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y -CONFIG_RT_USING_MSH=y -CONFIG_FINSH_USING_MSH=y -CONFIG_FINSH_THREAD_NAME="tshell" -CONFIG_FINSH_THREAD_PRIORITY=20 -CONFIG_FINSH_THREAD_STACK_SIZE=4096 -CONFIG_FINSH_USING_HISTORY=y -CONFIG_FINSH_HISTORY_LINES=5 -CONFIG_FINSH_USING_SYMTAB=y -CONFIG_FINSH_CMD_SIZE=80 -CONFIG_MSH_USING_BUILT_IN_COMMANDS=y -CONFIG_FINSH_USING_DESCRIPTION=y -# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set -# CONFIG_FINSH_USING_AUTH is not set -CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# -CONFIG_RT_USING_DFS=y -CONFIG_DFS_USING_POSIX=y -CONFIG_DFS_USING_WORKDIR=y -CONFIG_DFS_FILESYSTEMS_MAX=2 -CONFIG_DFS_FILESYSTEM_TYPES_MAX=2 -CONFIG_DFS_FD_MAX=16 -# CONFIG_RT_USING_DFS_MNTTABLE is not set -# CONFIG_RT_USING_DFS_ELMFAT is not set -CONFIG_RT_USING_DFS_DEVFS=y -# CONFIG_RT_USING_DFS_ROMFS is not set -# CONFIG_RT_USING_DFS_RAMFS is not set - -# -# Device Drivers -# -CONFIG_RT_USING_DEVICE_IPC=y -# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set -CONFIG_RT_USING_SERIAL=y -CONFIG_RT_USING_SERIAL_V1=y -# CONFIG_RT_USING_SERIAL_V2 is not set -CONFIG_RT_SERIAL_USING_DMA=y -CONFIG_RT_SERIAL_RB_BUFSZ=64 -# CONFIG_RT_USING_CAN is not set -# CONFIG_RT_USING_HWTIMER is not set -# CONFIG_RT_USING_CPUTIME is not set -# CONFIG_RT_USING_I2C is not set -# CONFIG_RT_USING_PHY is not set -CONFIG_RT_USING_PIN=y -# CONFIG_RT_USING_ADC is not set -# CONFIG_RT_USING_DAC is not set -# CONFIG_RT_USING_PWM is not set -# CONFIG_RT_USING_MTD_NOR is not set -# CONFIG_RT_USING_MTD_NAND is not set -# CONFIG_RT_USING_PM is not set -# CONFIG_RT_USING_RTC is not set -# CONFIG_RT_USING_SDIO is not set -# CONFIG_RT_USING_SPI is not set -# CONFIG_RT_USING_WDT is not set -# CONFIG_RT_USING_AUDIO is not set -# CONFIG_RT_USING_SENSOR is not set -# CONFIG_RT_USING_TOUCH is not set -# CONFIG_RT_USING_HWCRYPTO is not set -# CONFIG_RT_USING_PULSE_ENCODER is not set -# CONFIG_RT_USING_INPUT_CAPTURE is not set -# CONFIG_RT_USING_WIFI is not set - -# -# Using USB -# -# CONFIG_RT_USING_USB is not set -# CONFIG_RT_USING_USB_HOST is not set -# CONFIG_RT_USING_USB_DEVICE is not set - -# -# POSIX layer and C standard library -# -CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 - -# -# POSIX (Portable Operating System Interface) layer -# -# CONFIG_RT_USING_POSIX_FS is not set -CONFIG_RT_USING_POSIX_DELAY=y -CONFIG_RT_USING_POSIX_CLOCK=y -# CONFIG_RT_USING_POSIX_TIMER is not set -CONFIG_RT_USING_PTHREADS=y -CONFIG_PTHREAD_NUM_MAX=8 -# CONFIG_RT_USING_MODULE is not set - -# -# Interprocess Communication (IPC) -# -# CONFIG_RT_USING_POSIX_PIPE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set - -# -# Socket is in the 'Network' category -# - -# -# Network -# - -# -# Socket abstraction layer -# -# CONFIG_RT_USING_SAL is not set - -# -# Network interface device -# -# CONFIG_RT_USING_NETDEV is not set - -# -# light weight TCP/IP stack -# -# CONFIG_RT_USING_LWIP is not set - -# -# AT commands -# -# CONFIG_RT_USING_AT is not set - -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set - -# -# Utilities -# -# CONFIG_RT_USING_RYM is not set -# CONFIG_RT_USING_ULOG is not set -# CONFIG_RT_USING_UTEST is not set -# CONFIG_RT_USING_VAR_EXPORT is not set -# CONFIG_RT_USING_RT_LINK is not set -# CONFIG_RT_USING_LWP is not set - -# -# RT-Thread Utestcases -# -# CONFIG_RT_USING_UTESTCASES is not set - -# -# RT-Thread online packages -# - -# -# IoT - internet of things -# -# CONFIG_PKG_USING_LORAWAN_DRIVER is not set -# CONFIG_PKG_USING_PAHOMQTT is not set -# CONFIG_PKG_USING_UMQTT is not set -# CONFIG_PKG_USING_WEBCLIENT is not set -# CONFIG_PKG_USING_WEBNET is not set -# CONFIG_PKG_USING_MONGOOSE is not set -# CONFIG_PKG_USING_MYMQTT is not set -# CONFIG_PKG_USING_KAWAII_MQTT is not set -# CONFIG_PKG_USING_BC28_MQTT is not set -# CONFIG_PKG_USING_WEBTERMINAL is not set -# CONFIG_PKG_USING_CJSON is not set -# CONFIG_PKG_USING_JSMN is not set -# CONFIG_PKG_USING_LIBMODBUS is not set -# CONFIG_PKG_USING_FREEMODBUS is not set -# CONFIG_PKG_USING_LJSON is not set -# CONFIG_PKG_USING_EZXML is not set -# CONFIG_PKG_USING_NANOPB is not set - -# -# Wi-Fi -# - -# -# Marvell WiFi -# -# CONFIG_PKG_USING_WLANMARVELL is not set - -# -# Wiced WiFi -# -# CONFIG_PKG_USING_WLAN_WICED is not set -# CONFIG_PKG_USING_RW007 is not set -# CONFIG_PKG_USING_COAP is not set -# CONFIG_PKG_USING_NOPOLL is not set -# CONFIG_PKG_USING_NETUTILS is not set -# CONFIG_PKG_USING_CMUX is not set -# CONFIG_PKG_USING_PPP_DEVICE is not set -# CONFIG_PKG_USING_AT_DEVICE is not set -# CONFIG_PKG_USING_ATSRV_SOCKET is not set -# CONFIG_PKG_USING_WIZNET is not set -# CONFIG_PKG_USING_ZB_COORDINATOR is not set - -# -# IoT Cloud -# -# CONFIG_PKG_USING_ONENET is not set -# CONFIG_PKG_USING_GAGENT_CLOUD is not set -# CONFIG_PKG_USING_ALI_IOTKIT is not set -# CONFIG_PKG_USING_AZURE is not set -# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set -# CONFIG_PKG_USING_JIOT-C-SDK is not set -# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set -# CONFIG_PKG_USING_JOYLINK is not set -# CONFIG_PKG_USING_EZ_IOT_OS is not set -# CONFIG_PKG_USING_NIMBLE is not set -# CONFIG_PKG_USING_OTA_DOWNLOADER is not set -# CONFIG_PKG_USING_IPMSG is not set -# CONFIG_PKG_USING_LSSDP is not set -# CONFIG_PKG_USING_AIRKISS_OPEN is not set -# CONFIG_PKG_USING_LIBRWS is not set -# CONFIG_PKG_USING_TCPSERVER is not set -# CONFIG_PKG_USING_PROTOBUF_C is not set -# CONFIG_PKG_USING_DLT645 is not set -# CONFIG_PKG_USING_QXWZ is not set -# CONFIG_PKG_USING_SMTP_CLIENT is not set -# CONFIG_PKG_USING_ABUP_FOTA is not set -# CONFIG_PKG_USING_LIBCURL2RTT is not set -# CONFIG_PKG_USING_CAPNP is not set -# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set -# CONFIG_PKG_USING_AGILE_TELNET is not set -# CONFIG_PKG_USING_NMEALIB is not set -# CONFIG_PKG_USING_AGILE_JSMN is not set -# CONFIG_PKG_USING_PDULIB is not set -# CONFIG_PKG_USING_BTSTACK is not set -# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set -# CONFIG_PKG_USING_WAYZ_IOTKIT is not set -# CONFIG_PKG_USING_MAVLINK is not set -# CONFIG_PKG_USING_RAPIDJSON is not set -# CONFIG_PKG_USING_BSAL is not set -# CONFIG_PKG_USING_AGILE_MODBUS is not set -# CONFIG_PKG_USING_AGILE_FTP is not set -# CONFIG_PKG_USING_EMBEDDEDPROTO is not set -# CONFIG_PKG_USING_RT_LINK_HW is not set -# CONFIG_PKG_USING_LORA_PKT_FWD is not set -# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set -# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set -# CONFIG_PKG_USING_HM is not set -# CONFIG_PKG_USING_SMALL_MODBUS is not set -# CONFIG_PKG_USING_NET_SERVER is not set - -# -# security packages -# -# CONFIG_PKG_USING_MBEDTLS is not set -# CONFIG_PKG_USING_LIBSODIUM is not set -# CONFIG_PKG_USING_TINYCRYPT is not set -# CONFIG_PKG_USING_TFM is not set -# CONFIG_PKG_USING_YD_CRYPTO is not set - -# -# language packages -# -# CONFIG_PKG_USING_LUATOS_SOC is not set -# CONFIG_PKG_USING_LUA is not set -# CONFIG_PKG_USING_JERRYSCRIPT is not set -# CONFIG_PKG_USING_MICROPYTHON is not set -# CONFIG_PKG_USING_PIKASCRIPT is not set - -# -# multimedia packages -# - -# -# LVGL: powerful and easy-to-use embedded GUI library -# -# CONFIG_PKG_USING_LVGL is not set -# CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set - -# -# u8g2: a monochrome graphic library -# -# CONFIG_PKG_USING_U8G2_OFFICIAL is not set -# CONFIG_PKG_USING_U8G2 is not set -# CONFIG_PKG_USING_OPENMV is not set -# CONFIG_PKG_USING_MUPDF is not set -# CONFIG_PKG_USING_STEMWIN is not set -# CONFIG_PKG_USING_WAVPLAYER is not set -# CONFIG_PKG_USING_TJPGD is not set -# CONFIG_PKG_USING_PDFGEN is not set -# CONFIG_PKG_USING_HELIX is not set -# CONFIG_PKG_USING_AZUREGUIX is not set -# CONFIG_PKG_USING_TOUCHGFX2RTT is not set -# CONFIG_PKG_USING_NUEMWIN is not set -# CONFIG_PKG_USING_MP3PLAYER is not set -# CONFIG_PKG_USING_TINYJPEG is not set -# CONFIG_PKG_USING_UGUI is not set - -# -# PainterEngine: A cross-platform graphics application framework written in C language -# -# CONFIG_PKG_USING_PAINTERENGINE is not set -# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set -# CONFIG_PKG_USING_MCURSES is not set -# CONFIG_PKG_USING_TERMBOX is not set -# CONFIG_PKG_USING_VT100 is not set -# CONFIG_PKG_USING_QRCODE is not set - -# -# tools packages -# -# CONFIG_PKG_USING_CMBACKTRACE is not set -# CONFIG_PKG_USING_EASYFLASH is not set -# CONFIG_PKG_USING_EASYLOGGER is not set -# CONFIG_PKG_USING_SYSTEMVIEW is not set -# CONFIG_PKG_USING_SEGGER_RTT is not set -# CONFIG_PKG_USING_RDB is not set -# CONFIG_PKG_USING_ULOG_EASYFLASH is not set -# CONFIG_PKG_USING_ULOG_FILE is not set -# CONFIG_PKG_USING_LOGMGR is not set -# CONFIG_PKG_USING_ADBD is not set -# CONFIG_PKG_USING_COREMARK is not set -# CONFIG_PKG_USING_DHRYSTONE is not set -# CONFIG_PKG_USING_MEMORYPERF is not set -# CONFIG_PKG_USING_NR_MICRO_SHELL is not set -# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set -# CONFIG_PKG_USING_LUNAR_CALENDAR is not set -# CONFIG_PKG_USING_BS8116A is not set -# CONFIG_PKG_USING_GPS_RMC is not set -# CONFIG_PKG_USING_URLENCODE is not set -# CONFIG_PKG_USING_UMCN is not set -# CONFIG_PKG_USING_LWRB2RTT is not set -# CONFIG_PKG_USING_CPU_USAGE is not set -# CONFIG_PKG_USING_GBK2UTF8 is not set -# CONFIG_PKG_USING_VCONSOLE is not set -# CONFIG_PKG_USING_KDB is not set -# CONFIG_PKG_USING_WAMR is not set -# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set -# CONFIG_PKG_USING_LWLOG is not set -# CONFIG_PKG_USING_ANV_TRACE is not set -# CONFIG_PKG_USING_ANV_MEMLEAK is not set -# CONFIG_PKG_USING_ANV_TESTSUIT is not set -# CONFIG_PKG_USING_ANV_BENCH is not set -# CONFIG_PKG_USING_DEVMEM is not set -# CONFIG_PKG_USING_REGEX is not set -# CONFIG_PKG_USING_MEM_SANDBOX is not set -# CONFIG_PKG_USING_SOLAR_TERMS is not set -# CONFIG_PKG_USING_GAN_ZHI is not set -# CONFIG_PKG_USING_FDT is not set - -# -# system packages -# - -# -# enhanced kernel services -# -# CONFIG_PKG_USING_RT_MEMCPY_CM is not set -# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set -# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set - -# -# POSIX extension functions -# -# CONFIG_PKG_USING_POSIX_GETLINE is not set -# CONFIG_PKG_USING_POSIX_WCWIDTH is not set -# CONFIG_PKG_USING_POSIX_ITOA is not set -# CONFIG_PKG_USING_POSIX_STRINGS is not set - -# -# acceleration: Assembly language or algorithmic acceleration packages -# -# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set -# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set -# CONFIG_PKG_USING_QFPLIB_M3 is not set - -# -# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard -# -# CONFIG_PKG_USING_CMSIS_5 is not set -# CONFIG_PKG_USING_CMSIS_RTOS2 is not set - -# -# Micrium: Micrium software products porting for RT-Thread -# -# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set -# CONFIG_PKG_USING_UCOSII_WRAPPER is not set -# CONFIG_PKG_USING_UC_CRC is not set -# CONFIG_PKG_USING_UC_CLK is not set -# CONFIG_PKG_USING_UC_COMMON is not set -# CONFIG_PKG_USING_UC_MODBUS is not set -# CONFIG_RT_USING_ARDUINO is not set -# CONFIG_PKG_USING_GUIENGINE is not set -# CONFIG_PKG_USING_PERSIMMON is not set -# CONFIG_PKG_USING_CAIRO is not set -# CONFIG_PKG_USING_PIXMAN is not set -# CONFIG_PKG_USING_PARTITION is not set -# CONFIG_PKG_USING_FAL is not set -# CONFIG_PKG_USING_FLASHDB is not set -# CONFIG_PKG_USING_SQLITE is not set -# CONFIG_PKG_USING_RTI is not set -# CONFIG_PKG_USING_DFS_YAFFS is not set -# CONFIG_PKG_USING_LITTLEFS is not set -# CONFIG_PKG_USING_DFS_JFFS2 is not set -# CONFIG_PKG_USING_DFS_UFFS is not set -# CONFIG_PKG_USING_LWEXT4 is not set -# CONFIG_PKG_USING_THREAD_POOL is not set -# CONFIG_PKG_USING_ROBOTS is not set -# CONFIG_PKG_USING_EV is not set -# CONFIG_PKG_USING_SYSWATCH is not set -# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set -# CONFIG_PKG_USING_PLCCORE is not set -# CONFIG_PKG_USING_RAMDISK is not set -# CONFIG_PKG_USING_MININI is not set -# CONFIG_PKG_USING_QBOOT is not set -# CONFIG_PKG_USING_PPOOL is not set -# CONFIG_PKG_USING_OPENAMP is not set -# CONFIG_PKG_USING_LPM is not set -# CONFIG_PKG_USING_TLSF is not set -# CONFIG_PKG_USING_EVENT_RECORDER is not set -# CONFIG_PKG_USING_ARM_2D is not set -# CONFIG_PKG_USING_MCUBOOT is not set -# CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set - -# -# peripheral libraries and drivers -# -# CONFIG_PKG_USING_SENSORS_DRIVERS is not set -# CONFIG_PKG_USING_REALTEK_AMEBA is not set -# CONFIG_PKG_USING_SHT2X is not set -# CONFIG_PKG_USING_SHT3X is not set -# CONFIG_PKG_USING_AS7341 is not set -# CONFIG_PKG_USING_STM32_SDIO is not set -# CONFIG_PKG_USING_ICM20608 is not set -# CONFIG_PKG_USING_BUTTON is not set -# CONFIG_PKG_USING_PCF8574 is not set -# CONFIG_PKG_USING_SX12XX is not set -# CONFIG_PKG_USING_SIGNAL_LED is not set -# CONFIG_PKG_USING_LEDBLINK is not set -# CONFIG_PKG_USING_LITTLED is not set -# CONFIG_PKG_USING_LKDGUI is not set -# CONFIG_PKG_USING_NRF5X_SDK is not set -# CONFIG_PKG_USING_NRFX is not set -# CONFIG_PKG_USING_WM_LIBRARIES is not set -# CONFIG_PKG_USING_KENDRYTE_SDK is not set -# CONFIG_PKG_USING_INFRARED is not set -# CONFIG_PKG_USING_AGILE_BUTTON is not set -# CONFIG_PKG_USING_AGILE_LED is not set -# CONFIG_PKG_USING_AT24CXX is not set -# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set -# CONFIG_PKG_USING_AD7746 is not set -# CONFIG_PKG_USING_PCA9685 is not set -# CONFIG_PKG_USING_I2C_TOOLS is not set -# CONFIG_PKG_USING_NRF24L01 is not set -# CONFIG_PKG_USING_TOUCH_DRIVERS is not set -# CONFIG_PKG_USING_MAX17048 is not set -# CONFIG_PKG_USING_RPLIDAR is not set -# CONFIG_PKG_USING_AS608 is not set -# CONFIG_PKG_USING_RC522 is not set -# CONFIG_PKG_USING_WS2812B is not set -# CONFIG_PKG_USING_EMBARC_BSP is not set -# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set -# CONFIG_PKG_USING_MULTI_RTIMER is not set -# CONFIG_PKG_USING_MAX7219 is not set -# CONFIG_PKG_USING_BEEP is not set -# CONFIG_PKG_USING_EASYBLINK is not set -# CONFIG_PKG_USING_PMS_SERIES is not set -# CONFIG_PKG_USING_CAN_YMODEM is not set -# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set -# CONFIG_PKG_USING_QLED is not set -# CONFIG_PKG_USING_PAJ7620 is not set -# CONFIG_PKG_USING_AGILE_CONSOLE is not set -# CONFIG_PKG_USING_LD3320 is not set -# CONFIG_PKG_USING_WK2124 is not set -# CONFIG_PKG_USING_LY68L6400 is not set -# CONFIG_PKG_USING_DM9051 is not set -# CONFIG_PKG_USING_SSD1306 is not set -# CONFIG_PKG_USING_QKEY is not set -# CONFIG_PKG_USING_RS485 is not set -# CONFIG_PKG_USING_RS232 is not set -# CONFIG_PKG_USING_NES is not set -# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set -# CONFIG_PKG_USING_VDEVICE is not set -# CONFIG_PKG_USING_SGM706 is not set -# CONFIG_PKG_USING_STM32WB55_SDK is not set -# CONFIG_PKG_USING_RDA58XX is not set -# CONFIG_PKG_USING_LIBNFC is not set -# CONFIG_PKG_USING_MFOC is not set -# CONFIG_PKG_USING_TMC51XX is not set -# CONFIG_PKG_USING_TCA9534 is not set -# CONFIG_PKG_USING_KOBUKI is not set -# CONFIG_PKG_USING_ROSSERIAL is not set -# CONFIG_PKG_USING_MICRO_ROS is not set -# CONFIG_PKG_USING_MCP23008 is not set -# CONFIG_PKG_USING_BLUETRUM_SDK is not set -# CONFIG_PKG_USING_MISAKA_AT24CXX is not set -# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set -# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set -# CONFIG_PKG_USING_BL_MCU_SDK is not set -# CONFIG_PKG_USING_SOFT_SERIAL is not set -# CONFIG_PKG_USING_MB85RS16 is not set -# CONFIG_PKG_USING_CW2015 is not set - -# -# AI packages -# -# CONFIG_PKG_USING_LIBANN is not set -# CONFIG_PKG_USING_NNOM is not set -# CONFIG_PKG_USING_ONNX_BACKEND is not set -# CONFIG_PKG_USING_ONNX_PARSER is not set -# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set -# CONFIG_PKG_USING_ELAPACK is not set -# CONFIG_PKG_USING_ULAPACK is not set -# CONFIG_PKG_USING_QUEST is not set -# CONFIG_PKG_USING_NAXOS is not set - -# -# miscellaneous packages -# - -# -# samples: kernel and components samples -# -# CONFIG_PKG_USING_KERNEL_SAMPLES is not set -# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set -# CONFIG_PKG_USING_NETWORK_SAMPLES is not set -# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set - -# -# entertainment: terminal games and other interesting software packages -# -# CONFIG_PKG_USING_CMATRIX is not set -# CONFIG_PKG_USING_SL is not set -# CONFIG_PKG_USING_CAL is not set -# CONFIG_PKG_USING_ACLOCK is not set -# CONFIG_PKG_USING_THREES is not set -# CONFIG_PKG_USING_2048 is not set -# CONFIG_PKG_USING_SNAKE is not set -# CONFIG_PKG_USING_TETRIS is not set -# CONFIG_PKG_USING_DONUT is not set -# CONFIG_PKG_USING_COWSAY is not set -# CONFIG_PKG_USING_LIBCSV is not set -# CONFIG_PKG_USING_OPTPARSE is not set -# CONFIG_PKG_USING_FASTLZ is not set -# CONFIG_PKG_USING_MINILZO is not set -# CONFIG_PKG_USING_QUICKLZ is not set -# CONFIG_PKG_USING_LZMA is not set -# CONFIG_PKG_USING_MULTIBUTTON is not set -# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set -# CONFIG_PKG_USING_CANFESTIVAL is not set -# CONFIG_PKG_USING_ZLIB is not set -# CONFIG_PKG_USING_MINIZIP is not set -# CONFIG_PKG_USING_DSTR is not set -# CONFIG_PKG_USING_TINYFRAME is not set -# CONFIG_PKG_USING_KENDRYTE_DEMO is not set -# CONFIG_PKG_USING_DIGITALCTRL is not set -# CONFIG_PKG_USING_UPACKER is not set -# CONFIG_PKG_USING_UPARAM is not set -# CONFIG_PKG_USING_HELLO is not set -# CONFIG_PKG_USING_VI is not set -# CONFIG_PKG_USING_KI is not set -# CONFIG_PKG_USING_ARMv7M_DWT is not set -# CONFIG_PKG_USING_UKAL is not set -# CONFIG_PKG_USING_CRCLIB is not set -# CONFIG_PKG_USING_LWGPS is not set -# CONFIG_PKG_USING_STATE_MACHINE is not set -# CONFIG_PKG_USING_DESIGN_PATTERN is not set -# CONFIG_PKG_USING_CONTROLLER is not set -# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set -CONFIG_SOC_AT91SAM9G45=y - -# -# Hardware Drivers Config -# -CONFIG_RT_USING_LED=y diff --git a/bsp/at91sam9g45/Kconfig b/bsp/at91sam9g45/Kconfig deleted file mode 100644 index 4de0cd0233..0000000000 --- a/bsp/at91sam9g45/Kconfig +++ /dev/null @@ -1,37 +0,0 @@ -mainmenu "RT-Thread Configuration" - -config BSP_DIR - string - option env="BSP_ROOT" - default "." - -config RTT_DIR - string - option env="RTT_ROOT" - default "../.." - -# you can change the RTT_ROOT default "../.." to your rtthread_root, -# example : default "F:/git_repositories/rt-thread" - -config PKGS_DIR - string - option env="PKGS_ROOT" - default "packages" - -config ENV_DIR - string - option env="ENV_ROOT" - default "/" - -source "$RTT_DIR/Kconfig" -source "$PKGS_DIR/Kconfig" - -config SOC_AT91SAM9G45 - bool - select ARCH_ARM_ARM9 - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - default y - -source "$BSP_DIR/drivers/Kconfig" - diff --git a/bsp/at91sam9g45/SConscript b/bsp/at91sam9g45/SConscript deleted file mode 100644 index fe0ae941ae..0000000000 --- a/bsp/at91sam9g45/SConscript +++ /dev/null @@ -1,14 +0,0 @@ -# for module compiling -import os -Import('RTT_ROOT') - -cwd = str(Dir('#')) -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/at91sam9g45/SConstruct b/bsp/at91sam9g45/SConstruct deleted file mode 100644 index c9ed1b8c50..0000000000 --- a/bsp/at91sam9g45/SConstruct +++ /dev/null @@ -1,40 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread-at91sam9g45.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -if GetDepend('RT_USING_WEBSERVER'): - objs = objs + SConscript(RTT_ROOT + '/components/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) - -if GetDepend('RT_USING_RTGUI'): - objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) - -# libc testsuite -objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/at91sam9g45/applications/SConscript b/bsp/at91sam9g45/applications/SConscript deleted file mode 100644 index 01eb940dfb..0000000000 --- a/bsp/at91sam9g45/applications/SConscript +++ /dev/null @@ -1,11 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/at91sam9g45/applications/application.c b/bsp/at91sam9g45/applications/application.c deleted file mode 100644 index 6bc312b997..0000000000 --- a/bsp/at91sam9g45/applications/application.c +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -/** - * @addtogroup at91sam9260 - */ -/*@{*/ - -#include -#include - -#ifdef RT_USING_DFS -/* dfs Filesystem APIs */ -#include -#endif - -#ifdef RT_USING_SDIO -#include -#include "at91_mci.h" -#endif - -#ifdef RT_USING_LED -#include "led.h" -#endif - -static int rt_led_app_init(void); - -RT_WEAK int main(void) -{ -#ifdef RT_USING_SDIO - int timeout = 0; -#endif - -/* Filesystem Initialization */ -#ifdef RT_USING_DFS - { -#if defined(RT_USING_DFS_ROMFS) - if (dfs_mount(RT_NULL, "/rom", "rom", 0, &romfs_root) == 0) - { - rt_kprintf("ROM File System initialized!\n"); - } - else - rt_kprintf("ROM File System initialzation failed!\n"); -#endif - -#if defined(RT_USING_DFS_UFFS) - { - /* mount flash device as flash directory */ - if(dfs_mount("nand0", "/nand0", "uffs", 0, 0) == 0) - rt_kprintf("UFFS File System initialized!\n"); - else - rt_kprintf("UFFS File System initialzation failed!\n"); - } -#endif - -#ifdef RT_USING_SDIO - timeout = 0; - while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2)) - { - rt_thread_delay(1); - } - - if (timeout < RT_TICK_PER_SECOND*2) - { - /* mount sd card fat partition 1 as root directory */ - if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) - { - rt_kprintf("File System initialized!\n"); - } - else - rt_kprintf("File System initialzation failed!%d\n", rt_get_errno()); - } - else - { - rt_kprintf("No SD card found.\n"); - } -#endif - } -#endif - - rt_led_app_init(); -} - -#ifdef RT_USING_LED -void rt_led_thread_entry(void* parameter) -{ - rt_uint8_t cnt = 0; - led_init(); - while(1) - { - /* light on leds for one second */ - rt_thread_delay(40); - cnt++; - if (cnt&0x01) - led_on(1); - else - led_off(1); - if (cnt&0x02) - led_on(2); - else - led_off(2); - if (cnt&0x04) - led_on(3); - else - led_off(3); - - } -} -#endif - -static int rt_led_app_init(void) -{ -#ifdef RT_USING_LED - rt_thread_t led_thread; - -#if (RT_THREAD_PRIORITY_MAX == 32) - led_thread = rt_thread_create("led", - rt_led_thread_entry, RT_NULL, - 512, 20, 20); -#else - led_thread = rt_thread_create("led", - rt_led_thread_entry, RT_NULL, - 512, 200, 20); -#endif - - if(led_thread != RT_NULL) - rt_thread_startup(led_thread); -#endif - - return 0; -} - -/* NFSv3 Initialization */ -#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) -#include -void nfs_start(void) -{ - nfs_init(); - - if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0) - { - rt_kprintf("NFSv3 File System initialized!\n"); - } - else - rt_kprintf("NFSv3 File System initialzation failed!\n"); -} - -#include "finsh.h" -FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem); -#endif - -/*@}*/ diff --git a/bsp/at91sam9g45/drivers/Kconfig b/bsp/at91sam9g45/drivers/Kconfig deleted file mode 100644 index 765c98e300..0000000000 --- a/bsp/at91sam9g45/drivers/Kconfig +++ /dev/null @@ -1,7 +0,0 @@ -menu "Hardware Drivers Config" - -config RT_USING_LED - bool "Using LED" - default n - -endmenu diff --git a/bsp/at91sam9g45/drivers/SConscript b/bsp/at91sam9g45/drivers/SConscript deleted file mode 100644 index d0470f9049..0000000000 --- a/bsp/at91sam9g45/drivers/SConscript +++ /dev/null @@ -1,31 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'drivers') - -# add the general drvers. -src = Split(""" -board.c -usart.c -""") - -# add Ethernet drvers. -if GetDepend('RT_USING_LED'): - src += ['led.c'] - -if GetDepend('RT_USING_SDIO'): - src += ['at91_mci.c'] - -if GetDepend('RT_USING_LWIP'): - src += ['macb.c'] - -if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): - src += ['at91_i2c_gpio.c'] - - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/at91sam9g45/drivers/at91_i2c_gpio.c b/bsp/at91sam9g45/drivers/at91_i2c_gpio.c deleted file mode 100644 index d229cbd1bb..0000000000 --- a/bsp/at91sam9g45/drivers/at91_i2c_gpio.c +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2012-04-25 weety first version - */ - -#include -#include -#include - - -static void at91_i2c_gpio_init() -{ - AT91C_BASE_PMC->PMC_PCER = 1 << AT91C_ID_PIOA; //enable PIOA clock - AT91C_BASE_PIOA->PIO_PUER = (1 << 23); - AT91C_BASE_PIOA->PIO_PER = (1 << 23); - AT91C_BASE_PIOA->PIO_MDER = (1 << 23); - AT91C_BASE_PIOA->PIO_PUER = (1 << 24); - AT91C_BASE_PIOA->PIO_PER = (1 << 24); - AT91C_BASE_PIOA->PIO_MDER = (1 << 24); - - AT91C_BASE_PIOA->PIO_OER = (1 << 23); - AT91C_BASE_PIOA->PIO_OER = (1 << 24); - - AT91C_BASE_PIOA->PIO_SODR = (1 << 23); - AT91C_BASE_PIOA->PIO_SODR = (1 << 24); -} - -static void at91_set_sda(void *data, rt_int32_t state) -{ - if (state) - { - AT91C_BASE_PIOA->PIO_SODR = (1 << 23); - } - else - { - AT91C_BASE_PIOA->PIO_CODR = (1 << 23); - } -} - -static void at91_set_scl(void *data, rt_int32_t state) -{ - if (state) - { - AT91C_BASE_PIOA->PIO_SODR = (1 << 24); - } - else - { - AT91C_BASE_PIOA->PIO_CODR = (1 << 24); - } -} - -static rt_int32_t at91_get_sda(void *data) -{ - return AT91C_BASE_PIOA->PIO_PDSR & (1 << 23); -} - -static rt_int32_t at91_get_scl(void *data) -{ - return AT91C_BASE_PIOA->PIO_PDSR & (1 << 24); -} - -static void at91_udelay (rt_uint32_t us) -{ - rt_int32_t i; - for (; us > 0; us--) - { - i = 50000; - while(i > 0) - { - i--; - } - } -} - -static const struct rt_i2c_bit_ops bit_ops = { - RT_NULL, - at91_set_sda, - at91_set_scl, - at91_get_sda, - at91_get_scl, - - at91_udelay, - - 5, - 100 -}; - -int at91_i2c_init(void) -{ - struct rt_i2c_bus_device *bus; - - bus = rt_malloc(sizeof(struct rt_i2c_bus_device)); - if (bus == RT_NULL) - { - rt_kprintf("rt_malloc failed\n"); - return -RT_ENOMEM; - } - - rt_memset((void *)bus, 0, sizeof(struct rt_i2c_bus_device)); - - bus->priv = (void *)&bit_ops; - - at91_i2c_gpio_init(); - - rt_i2c_bit_add_bus(bus, "i2c0"); - - return 0; -} - -INIT_DEVICE_EXPORT(at91_i2c_init); - diff --git a/bsp/at91sam9g45/drivers/at91_mci.c b/bsp/at91sam9g45/drivers/at91_mci.c deleted file mode 100644 index 55c698832f..0000000000 --- a/bsp/at91sam9g45/drivers/at91_mci.c +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-07-25 weety first version - */ - -#include -#include -#include -#include -#include "at91_mci.h" - -#define USE_SLOT_B -//#define RT_MCI_DBG - -#ifdef RT_MCI_DBG -#define mci_dbg(fmt, ...) rt_kprintf(fmt, ##__VA_ARGS__) -#else -#define mci_dbg(fmt, ...) -#endif - -#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) - -extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); -extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); - - -#define AT91C_MCI_ERRORS (AT91C_MCI_RINDE | AT91C_MCI_RDIRE | AT91C_MCI_RCRCE \ - | AT91C_MCI_RENDE | AT91C_MCI_RTOE | AT91C_MCI_DCRCE \ - | AT91C_MCI_DTOE | AT91C_MCI_OVRE | AT91C_MCI_UNRE) - -#define at91_mci_read(reg) readl(AT91C_BASE_MCI + (reg)) -#define at91_mci_write(reg, val) writel((val), AT91C_BASE_MCI + (reg)) - - -#define REQ_ST_INIT (1U << 0) -#define REQ_ST_CMD (1U << 1) -#define REQ_ST_STOP (1U << 2) - -struct at91_mci { - struct rt_mmcsd_host *host; - struct rt_mmcsd_req *req; - struct rt_mmcsd_cmd *cmd; - struct rt_timer timer; - //struct rt_semaphore sem_ack; - rt_uint32_t *buf; - rt_uint32_t current_status; -}; - -/* - * Reset the controller and restore most of the state - */ -static void at91_reset_host() -{ - rt_uint32_t mr; - rt_uint32_t sdcr; - rt_uint32_t dtor; - rt_uint32_t imr; - rt_uint32_t level; - - level = rt_hw_interrupt_disable(); - - imr = at91_mci_read(AT91C_MCI_IMR); - - at91_mci_write(AT91C_MCI_IDR, 0xffffffff); - - /* save current state */ - mr = at91_mci_read(AT91C_MCI_MR) & 0x7fff; - sdcr = at91_mci_read(AT91C_MCI_SDCR); - dtor = at91_mci_read(AT91C_MCI_DTOR); - - /* reset the controller */ - at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIDIS | AT91C_MCI_SWRST); - - /* restore state */ - at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIEN); - at91_mci_write(AT91C_MCI_MR, mr); - at91_mci_write(AT91C_MCI_SDCR, sdcr); - at91_mci_write(AT91C_MCI_DTOR, dtor); - at91_mci_write(AT91C_MCI_IER, imr); - - /* make sure sdio interrupts will fire */ - at91_mci_read(AT91C_MCI_SR); - rt_hw_interrupt_enable(level); - -} - - -/* - * Enable the controller - */ -static void at91_mci_enable() -{ - rt_uint32_t mr; - - at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIEN); - at91_mci_write(AT91C_MCI_IDR, 0xffffffff); - at91_mci_write(AT91C_MCI_DTOR, AT91C_MCI_DTOMUL_1M | AT91C_MCI_DTOCYC); - mr = AT91C_MCI_PDCMODE | 0x34a; - - mr |= AT91C_MCI_RDPROOF | AT91C_MCI_WRPROOF; - - at91_mci_write(AT91C_MCI_MR, mr); - - /* use Slot A or B (only one at same time) */ - at91_mci_write(AT91C_MCI_SDCR, 1); /* use slot b */ -} - -/* - * Disable the controller - */ -static void at91_mci_disable() -{ - at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIDIS | AT91C_MCI_SWRST); -} - -static void at91_timeout_timer(void *data) -{ - struct at91_mci *mci; - - mci = (struct at91_mci *)data; - - if (mci->req) - { - rt_kprintf("Timeout waiting end of packet\n"); - - if (mci->current_status == REQ_ST_CMD) - { - if (mci->req->cmd && mci->req->data) - { - mci->req->data->err = -RT_ETIMEOUT; - } - else - { - if (mci->req->cmd) - mci->req->cmd->err = -RT_ETIMEOUT; - } - } - else if (mci->current_status == REQ_ST_STOP) - { - mci->req->stop->err = -RT_ETIMEOUT; - } - - at91_reset_host(); - mmcsd_req_complete(mci->host); - } -} - -/* - * Prepare a dma read - */ -static void at91_mci_init_dma_read(struct at91_mci *mci) -{ - rt_uint8_t i; - struct rt_mmcsd_cmd *cmd; - struct rt_mmcsd_data *data; - rt_uint32_t length; - - mci_dbg("pre dma read\n"); - - cmd = mci->cmd; - if (!cmd) - { - mci_dbg("no command\n"); - return; - } - - data = cmd->data; - if (!data) - { - mci_dbg("no data\n"); - return; - } - - for (i = 0; i < 1; i++) - { - /* Check to see if this needs filling */ - if (i == 0) - { - if (at91_mci_read(AT91C_PDC_RCR) != 0) - { - mci_dbg("Transfer active in current\n"); - continue; - } - } - else { - if (at91_mci_read(AT91C_PDC_RNCR) != 0) - { - mci_dbg("Transfer active in next\n"); - continue; - } - } - - length = data->blksize * data->blks; - mci_dbg("dma address = %08X, length = %d\n", data->buf, length); - - if (i == 0) - { - at91_mci_write(AT91C_PDC_RPR, (rt_uint32_t)(data->buf)); - at91_mci_write(AT91C_PDC_RCR, (data->blksize & 0x3) ? length : length / 4); - } - else - { - at91_mci_write(AT91C_PDC_RNPR, (rt_uint32_t)(data->buf)); - at91_mci_write(AT91C_PDC_RNCR, (data->blksize & 0x3) ? length : length / 4); - } - } - - mci_dbg("pre dma read done\n"); -} - -/* - * Send a command - */ -static void at91_mci_send_command(struct at91_mci *mci, struct rt_mmcsd_cmd *cmd) -{ - rt_uint32_t cmdr, mr; - rt_uint32_t block_length; - struct rt_mmcsd_data *data = cmd->data; - struct rt_mmcsd_host *host = mci->host; - - rt_uint32_t blocks; - rt_uint32_t ier = 0; - rt_uint32_t length; - - mci->cmd = cmd; - - /* Needed for leaving busy state before CMD1 */ - if ((at91_mci_read(AT91C_MCI_SR) & AT91C_MCI_RTOE) && (cmd->cmd_code == 1)) - { - mci_dbg("Clearing timeout\n"); - at91_mci_write(AT91C_MCI_ARGR, 0); - at91_mci_write(AT91C_MCI_CMDR, AT91C_MCI_OPDCMD); - while (!(at91_mci_read(AT91C_MCI_SR) & AT91C_MCI_CMDRDY)) - { - /* spin */ - mci_dbg("Clearing: SR = %08X\n", at91_mci_read(AT91C_MCI_SR)); - } - } - - cmdr = cmd->cmd_code; - - if (resp_type(cmd) == RESP_NONE) - cmdr |= AT91C_MCI_RSPTYP_NONE; - else - { - /* if a response is expected then allow maximum response latancy */ - cmdr |= AT91C_MCI_MAXLAT; - /* set 136 bit response for R2, 48 bit response otherwise */ - if (resp_type(cmd) == RESP_R2) - cmdr |= AT91C_MCI_RSPTYP_136; - else - cmdr |= AT91C_MCI_RSPTYP_48; - } - - if (data) - { - - block_length = data->blksize; - blocks = data->blks; - - /* always set data start - also set direction flag for read */ - if (data->flags & DATA_DIR_READ) - cmdr |= (AT91C_MCI_TRDIR | AT91C_MCI_TRCMD_START); - else if (data->flags & DATA_DIR_WRITE) - cmdr |= AT91C_MCI_TRCMD_START; - - if (data->flags & DATA_STREAM) - cmdr |= AT91C_MCI_TRTYP_STREAM; - if (data->blks > 1) - cmdr |= AT91C_MCI_TRTYP_MULTIPLE; - } - else - { - block_length = 0; - blocks = 0; - } - - /*if (cmd->cmd_code == GO_IDLE_STATE) - { - cmdr |= AT91C_MCI_SPCMD_INIT; - }*/ - - if (cmd->cmd_code == STOP_TRANSMISSION) - cmdr |= AT91C_MCI_TRCMD_STOP; - - if (host->io_cfg.bus_mode == MMCSD_BUSMODE_OPENDRAIN) - cmdr |= AT91C_MCI_OPDCMD; - - /* - * Set the arguments and send the command - */ - mci_dbg("Sending command %d as %08X, arg = %08X, blocks = %d, length = %d (MR = %08X)\n", - cmd->cmd_code, cmdr, cmd->arg, blocks, block_length, at91_mci_read(AT91C_MCI_MR)); - - if (!data) - { - at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_TXTDIS | AT91C_PDC_RXTDIS); - at91_mci_write(AT91C_PDC_RPR, 0); - at91_mci_write(AT91C_PDC_RCR, 0); - at91_mci_write(AT91C_PDC_RNPR, 0); - at91_mci_write(AT91C_PDC_RNCR, 0); - at91_mci_write(AT91C_PDC_TPR, 0); - at91_mci_write(AT91C_PDC_TCR, 0); - at91_mci_write(AT91C_PDC_TNPR, 0); - at91_mci_write(AT91C_PDC_TNCR, 0); - ier = AT91C_MCI_CMDRDY; - } - else - { - /* zero block length and PDC mode */ - mr = at91_mci_read(AT91C_MCI_MR) & 0x5fff; - mr |= (data->blksize & 0x3) ? AT91C_MCI_PDCFBYTE : 0; - mr |= (block_length << 16); - mr |= AT91C_MCI_PDCMODE; - at91_mci_write(AT91C_MCI_MR, mr); - - at91_mci_write(AT91C_MCI_BLKR, - AT91C_MCI_BLKR_BCNT(blocks) | - AT91C_MCI_BLKR_BLKLEN(block_length)); - - /* - * Disable the PDC controller - */ - at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTDIS | AT91C_PDC_TXTDIS); - - if (cmdr & AT91C_MCI_TRCMD_START) - { - if (cmdr & AT91C_MCI_TRDIR) - { - /* - * Handle a read - */ - - mmu_invalidate_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); - at91_mci_init_dma_read(mci); - ier = AT91C_MCI_ENDRX /* | AT91C_MCI_RXBUFF */; - } - else - { - /* - * Handle a write - */ - length = block_length * blocks; - /* - * at91mci MCI1 rev2xx Data Write Operation and - * number of bytes erratum - */ - if (length < 12) - { - length = 12; - mci->buf = rt_malloc(length); - if (!mci->buf) - { - rt_kprintf("rt alloc tx buffer failed\n"); - cmd->err = -RT_ENOMEM; - mmcsd_req_complete(mci->host); - return; - } - rt_memset(mci->buf, 0, 12); - rt_memcpy(mci->buf, data->buf, length); - mmu_clean_dcache((rt_uint32_t)mci->buf, length); - at91_mci_write(AT91C_PDC_TPR, (rt_uint32_t)(mci->buf)); - at91_mci_write(AT91C_PDC_TCR, (data->blksize & 0x3) ? - length : length / 4); - } - else - { - mmu_clean_dcache((rt_uint32_t)data->buf, data->blksize*data->blks); - at91_mci_write(AT91C_PDC_TPR, (rt_uint32_t)(data->buf)); - at91_mci_write(AT91C_PDC_TCR, (data->blksize & 0x3) ? - length : length / 4); - } - mci_dbg("Transmitting %d bytes\n", length); - ier = AT91C_MCI_CMDRDY; - } - } - } - - /* - * Send the command and then enable the PDC - not the other way round as - * the data sheet says - */ - - at91_mci_write(AT91C_MCI_ARGR, cmd->arg); - at91_mci_write(AT91C_MCI_CMDR, cmdr); - - if (cmdr & AT91C_MCI_TRCMD_START) - { - if (cmdr & AT91C_MCI_TRDIR) - at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTEN); - } - - /* Enable selected interrupts */ - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_ERRORS | ier); -} - -/* - * Process the next step in the request - */ -static void at91_mci_process_next(struct at91_mci *mci) -{ - if (mci->current_status == REQ_ST_INIT) - { - mci->current_status = REQ_ST_CMD; - at91_mci_send_command(mci, mci->req->cmd); - } - else if ((mci->current_status == REQ_ST_CMD) && mci->req->stop) - { - mci->current_status = REQ_ST_STOP; - at91_mci_send_command(mci, mci->req->stop); - } - else - { - rt_timer_stop(&mci->timer); - /* the mci controller hangs after some transfers, - * and the workaround is to reset it after each transfer. - */ - at91_reset_host(); - mmcsd_req_complete(mci->host); - } -} - -/* - * Handle an MMC request - */ -static void at91_mci_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) -{ - rt_uint32_t timeout = RT_TICK_PER_SECOND; - struct at91_mci *mci = host->private_data; - mci->req = req; - mci->current_status = REQ_ST_INIT; - - rt_timer_control(&mci->timer, RT_TIMER_CTRL_SET_TIME, (void*)&timeout); - rt_timer_start(&mci->timer); - - at91_mci_process_next(mci); -} - -/* - * Handle transmitted data - */ -static void at91_mci_handle_transmitted(struct at91_mci *mci) -{ - struct rt_mmcsd_cmd *cmd; - struct rt_mmcsd_data *data; - - mci_dbg("Handling the transmit\n"); - - /* Disable the transfer */ - at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTDIS | AT91C_PDC_TXTDIS); - - /* Now wait for cmd ready */ - at91_mci_write(AT91C_MCI_IDR, AT91C_MCI_TXBUFE); - - cmd = mci->cmd; - if (!cmd) return; - - data = cmd->data; - if (!data) return; - - if (data->blks > 1) - { - mci_dbg("multiple write : wait for BLKE...\n"); - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_BLKE); - } else - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_NOTBUSY); -} - - -/* - * Handle after a dma read - */ -static void at91_mci_post_dma_read(struct at91_mci *mci) -{ - struct rt_mmcsd_cmd *cmd; - struct rt_mmcsd_data *data; - - mci_dbg("post dma read\n"); - - cmd = mci->cmd; - if (!cmd) - { - mci_dbg("no command\n"); - return; - } - - data = cmd->data; - if (!data) - { - mci_dbg("no data\n"); - return; - } - - at91_mci_write(AT91C_MCI_IDR, AT91C_MCI_ENDRX); - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_RXBUFF); - - mci_dbg("post dma read done\n"); -} - -/*Handle after command sent ready*/ -static int at91_mci_handle_cmdrdy(struct at91_mci *mci) -{ - if (!mci->cmd) - return 1; - else if (!mci->cmd->data) - { - if (mci->current_status == REQ_ST_STOP) - { - /*After multi block write, we must wait for NOTBUSY*/ - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_NOTBUSY); - } - else return 1; - } - else if (mci->cmd->data->flags & DATA_DIR_WRITE) - { - /*After sendding multi-block-write command, start DMA transfer*/ - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_TXBUFE | AT91C_MCI_BLKE); - at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_TXTEN); - } - - /* command not completed, have to wait */ - return 0; -} - -/* - * Handle a command that has been completed - */ -static void at91_mci_completed_command(struct at91_mci *mci, rt_uint32_t status) -{ - struct rt_mmcsd_cmd *cmd = mci->cmd; - struct rt_mmcsd_data *data = cmd->data; - - at91_mci_write(AT91C_MCI_IDR, 0xffffffff & ~(AT91C_MCI_SDIOIRQA | AT91C_MCI_SDIOIRQB)); - - cmd->resp[0] = at91_mci_read(AT91C_MCI_RSPR(0)); - cmd->resp[1] = at91_mci_read(AT91C_MCI_RSPR(1)); - cmd->resp[2] = at91_mci_read(AT91C_MCI_RSPR(2)); - cmd->resp[3] = at91_mci_read(AT91C_MCI_RSPR(3)); - - if (mci->buf) - { - //rt_memcpy(data->buf, mci->buf, data->blksize*data->blks); - rt_free(mci->buf); - mci->buf = RT_NULL; - } - - mci_dbg("Status = %08X/%08x [%08X %08X %08X %08X]\n", - status, at91_mci_read(AT91C_MCI_SR), - cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]); - - if (status & AT91C_MCI_ERRORS) - { - if ((status & AT91C_MCI_RCRCE) && (resp_type(cmd) & (RESP_R3|RESP_R4))) - { - cmd->err = 0; - } - else - { - if (status & (AT91C_MCI_DTOE | AT91C_MCI_DCRCE)) - { - if (data) - { - if (status & AT91C_MCI_DTOE) - data->err = -RT_ETIMEOUT; - else if (status & AT91C_MCI_DCRCE) - data->err = -RT_ERROR; - } - } - else - { - if (status & AT91C_MCI_RTOE) - cmd->err = -RT_ETIMEOUT; - else if (status & AT91C_MCI_RCRCE) - cmd->err = -RT_ERROR; - else - cmd->err = -RT_ERROR; - } - - rt_kprintf("error detected and set to %d/%d (cmd = %d)\n", - cmd->err, data ? data->err : 0, - cmd->cmd_code); - } - } - else - cmd->err = 0; - - at91_mci_process_next(mci); -} - -/* - * Handle an interrupt - */ -static void at91_mci_irq(int irq, void *param) -{ - struct at91_mci *mci = (struct at91_mci *)param; - rt_int32_t completed = 0; - rt_uint32_t int_status, int_mask; - - int_status = at91_mci_read(AT91C_MCI_SR); - int_mask = at91_mci_read(AT91C_MCI_IMR); - - mci_dbg("MCI irq: status = %08X, %08X, %08X\n", int_status, int_mask, - int_status & int_mask); - - int_status = int_status & int_mask; - - if (int_status & AT91C_MCI_ERRORS) - { - completed = 1; - - if (int_status & AT91C_MCI_UNRE) - mci_dbg("MMC: Underrun error\n"); - if (int_status & AT91C_MCI_OVRE) - mci_dbg("MMC: Overrun error\n"); - if (int_status & AT91C_MCI_DTOE) - mci_dbg("MMC: Data timeout\n"); - if (int_status & AT91C_MCI_DCRCE) - mci_dbg("MMC: CRC error in data\n"); - if (int_status & AT91C_MCI_RTOE) - mci_dbg("MMC: Response timeout\n"); - if (int_status & AT91C_MCI_RENDE) - mci_dbg("MMC: Response end bit error\n"); - if (int_status & AT91C_MCI_RCRCE) - mci_dbg("MMC: Response CRC error\n"); - if (int_status & AT91C_MCI_RDIRE) - mci_dbg("MMC: Response direction error\n"); - if (int_status & AT91C_MCI_RINDE) - mci_dbg("MMC: Response index error\n"); - } - else - { - /* Only continue processing if no errors */ - - if (int_status & AT91C_MCI_TXBUFE) - { - mci_dbg("TX buffer empty\n"); - at91_mci_handle_transmitted(mci); - } - - if (int_status & AT91C_MCI_ENDRX) - { - mci_dbg("ENDRX\n"); - at91_mci_post_dma_read(mci); - } - - if (int_status & AT91C_MCI_RXBUFF) - { - mci_dbg("RX buffer full\n"); - at91_mci_write(AT91C_PDC_PTCR, AT91C_PDC_RXTDIS | AT91C_PDC_TXTDIS); - at91_mci_write(AT91C_MCI_IDR, AT91C_MCI_RXBUFF | AT91C_MCI_ENDRX); - completed = 1; - } - - if (int_status & AT91C_MCI_ENDTX) - mci_dbg("Transmit has ended\n"); - - if (int_status & AT91C_MCI_NOTBUSY) - { - mci_dbg("Card is ready\n"); - //at91_mci_update_bytes_xfered(host); - completed = 1; - } - - if (int_status & AT91C_MCI_DTIP) - mci_dbg("Data transfer in progress\n"); - - if (int_status & AT91C_MCI_BLKE) - { - mci_dbg("Block transfer has ended\n"); - if (mci->req->data && mci->req->data->blks > 1) - { - /* multi block write : complete multi write - * command and send stop */ - completed = 1; - } - else - { - at91_mci_write(AT91C_MCI_IER, AT91C_MCI_NOTBUSY); - } - } - - /*if (int_status & AT91C_MCI_SDIOIRQA) - rt_mmcsd_signal_sdio_irq(host->mmc);*/ - - if (int_status & AT91C_MCI_SDIOIRQB) - sdio_irq_wakeup(mci->host); - - if (int_status & AT91C_MCI_TXRDY) - mci_dbg("Ready to transmit\n"); - - if (int_status & AT91C_MCI_RXRDY) - mci_dbg("Ready to receive\n"); - - if (int_status & AT91C_MCI_CMDRDY) - { - mci_dbg("Command ready\n"); - completed = at91_mci_handle_cmdrdy(mci); - } - } - - if (completed) - { - mci_dbg("Completed command\n"); - at91_mci_write(AT91C_MCI_IDR, 0xffffffff & ~(AT91C_MCI_SDIOIRQA | AT91C_MCI_SDIOIRQB)); - at91_mci_completed_command(mci, int_status); - } - else - at91_mci_write(AT91C_MCI_IDR, int_status & ~(AT91C_MCI_SDIOIRQA | AT91C_MCI_SDIOIRQB)); - -} - - -/* - * Set the IOCFG - */ -static void at91_mci_set_iocfg(struct rt_mmcsd_host *host, struct rt_mmcsd_io_cfg *io_cfg) -{ - rt_uint32_t clkdiv; - //struct at91_mci *mci = host->private_data; - rt_uint32_t at91_master_clock = clk_get_rate(clk_get("mck")); - - if (io_cfg->clock == 0) - { - /* Disable the MCI controller */ - at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIDIS); - clkdiv = 0; - } - else - { - /* Enable the MCI controller */ - at91_mci_write(AT91C_MCI_CR, AT91C_MCI_MCIEN); - - if ((at91_master_clock % (io_cfg->clock * 2)) == 0) - clkdiv = ((at91_master_clock / io_cfg->clock) / 2) - 1; - else - clkdiv = (at91_master_clock / io_cfg->clock) / 2; - - mci_dbg("clkdiv = %d. mcck = %ld\n", clkdiv, - at91_master_clock / (2 * (clkdiv + 1))); - } - if (io_cfg->bus_width == MMCSD_BUS_WIDTH_4) - { - mci_dbg("MMC: Setting controller bus width to 4\n"); - at91_mci_write(AT91C_MCI_SDCR, at91_mci_read(AT91C_MCI_SDCR) | AT91C_MCI_SDCBUS); - } - else - { - mci_dbg("MMC: Setting controller bus width to 1\n"); - at91_mci_write(AT91C_MCI_SDCR, at91_mci_read(AT91C_MCI_SDCR) & ~AT91C_MCI_SDCBUS); - } - - /* Set the clock divider */ - at91_mci_write(AT91C_MCI_MR, (at91_mci_read(AT91C_MCI_MR) & ~AT91C_MCI_CLKDIV) | clkdiv); - - /* maybe switch power to the card */ - switch (io_cfg->power_mode) - { - case MMCSD_POWER_OFF: - break; - case MMCSD_POWER_UP: - break; - case MMCSD_POWER_ON: - /*at91_mci_write(AT91C_MCI_ARGR, 0); - at91_mci_write(AT91C_MCI_CMDR, 0|AT91C_MCI_SPCMD_INIT|AT91C_MCI_OPDCMD); - mci_dbg("MCI_SR=0x%08x\n", at91_mci_read(AT91C_MCI_SR)); - while (!(at91_mci_read(AT91C_MCI_SR) & AT91C_MCI_CMDRDY)) - { - - } - mci_dbg("at91 mci power on\n");*/ - break; - default: - rt_kprintf("unknown power_mode %d\n", io_cfg->power_mode); - break; - } - -} - - -static void at91_mci_enable_sdio_irq(struct rt_mmcsd_host *host, rt_int32_t enable) -{ - at91_mci_write(enable ? AT91C_MCI_IER : AT91C_MCI_IDR, AT91C_MCI_SDIOIRQB); -} - - -static const struct rt_mmcsd_host_ops ops = { - at91_mci_request, - at91_mci_set_iocfg, - RT_NULL, - at91_mci_enable_sdio_irq, -}; - -void at91_mci_detect(int irq, void *param) -{ - rt_kprintf("mmcsd gpio detected\n"); -} - -static void mci_gpio_init() -{ -#ifdef USE_SLOT_B - AT91C_BASE_PIOA->PIO_PUER = (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5); - AT91C_BASE_PIOA->PIO_PUDR = (1 << 8); - AT91C_BASE_PIOA->PIO_BSR = (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5); - AT91C_BASE_PIOA->PIO_ASR = (1 << 8); - AT91C_BASE_PIOA->PIO_PDR = (1 << 0)|(1 << 1)|(1 << 3)|(1 << 4)|(1 << 5)|(1 << 8); - - AT91C_BASE_PIOA->PIO_IDR = (1 << 6)|(1 << 7); - AT91C_BASE_PIOA->PIO_PUER = (1 << 6)|(1 << 7); - AT91C_BASE_PIOA->PIO_ODR = (1 << 6)|(1 << 7); - AT91C_BASE_PIOA->PIO_PER = (1 << 6)|(1 << 7); -#else - AT91C_BASE_PIOA->PIO_PUER = (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11); - AT91C_BASE_PIOA->PIO_ASR = (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8); - AT91C_BASE_PIOA->PIO_PDR = (1 << 6)|(1 << 7)|(1 << 9)|(1 << 10)|(1 << 11)|(1 << 8); -#endif -} - -int at91_mci_init(void) -{ - struct rt_mmcsd_host *host; - struct at91_mci *mci; - - host = mmcsd_alloc_host(); - if (!host) - { - return -RT_ERROR; - } - - mci = rt_malloc(sizeof(struct at91_mci)); - if (!mci) - { - rt_kprintf("alloc mci failed\n"); - goto err; - } - - rt_memset(mci, 0, sizeof(struct at91_mci)); - - host->ops = &ops; - host->freq_min = 375000; - host->freq_max = 25000000; - host->valid_ocr = VDD_32_33 | VDD_33_34; - host->flags = MMCSD_BUSWIDTH_4 | MMCSD_MUTBLKWRITE | \ - MMCSD_SUP_HIGHSPEED | MMCSD_SUP_SDIO_IRQ; - host->max_seg_size = 65535; - host->max_dma_segs = 2; - host->max_blk_size = 512; - host->max_blk_count = 4096; - - mci->host = host; - - mci_gpio_init(); - AT91C_BASE_PMC->AT91C_PMC_PCER = 1 << AT91C_ID_MCI; //enable MCI clock - - at91_mci_disable(); - at91_mci_enable(); - - /* instal interrupt */ - rt_hw_interrupt_install(AT91SAM9260_ID_MCI, at91_mci_irq, - (void *)mci, "MMC"); - rt_hw_interrupt_umask(AT91SAM9260_ID_MCI); - rt_hw_interrupt_install(gpio_to_irq(AT91C_PIN_PA7), - at91_mci_detect, RT_NULL, "MMC_DETECT"); - rt_hw_interrupt_umask(gpio_to_irq(AT91C_PIN_PA7)); - - rt_timer_init(&mci->timer, "mci_timer", - at91_timeout_timer, - mci, - RT_TICK_PER_SECOND, - RT_TIMER_FLAG_PERIODIC); - - //rt_timer_start(&mci->timer); - - //rt_sem_init(&mci->sem_ack, "sd_ack", 0, RT_IPC_FLAG_FIFO); - - host->private_data = mci; - - mmcsd_change(host); - - return 0; - -err: - mmcsd_free_host(host); - - return -RT_ENOMEM; -} - -INIT_DEVICE_EXPORT(at91_mci_init); - -#include "finsh.h" -FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init); - -void mci_dump(void) -{ - rt_uint32_t i; - - rt_kprintf("PIOA_PSR=0x%08x\n", readl(AT91C_PIOA+PIO_PSR)); - rt_kprintf("PIOA_ABSR=0x%08x\n", readl(AT91C_PIOA+PIO_ABSR)); - rt_kprintf("PIOA_PUSR=0x%08x\n", readl(AT91C_PIOA+PIO_PUSR)); - - for (i = 0; i <= 0x4c; i += 4) { - rt_kprintf("0x%08x:0x%08x\n", AT91SAM9260_BASE_MCI+i, at91_mci_read(i)); - } -} - -FINSH_FUNCTION_EXPORT(mci_dump, dump register for mci); diff --git a/bsp/at91sam9g45/drivers/at91_mci.h b/bsp/at91sam9g45/drivers/at91_mci.h deleted file mode 100644 index 3a4cc1705a..0000000000 --- a/bsp/at91sam9g45/drivers/at91_mci.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-06-09 weety first version - */ - -#ifndef __AT91C_MCI_H__ -#define __AT91C_MCI_H__ - -#define AT91C_MCI_CR 0x00 /* Control Register */ -#define AT91C_MCI_MCIEN (1 << 0) /* Multi-Media Interface Enable */ -#define AT91C_MCI_MCIDIS (1 << 1) /* Multi-Media Interface Disable */ -#define AT91C_MCI_PWSEN (1 << 2) /* Power Save Mode Enable */ -#define AT91C_MCI_PWSDIS (1 << 3) /* Power Save Mode Disable */ -#define AT91C_MCI_SWRST (1 << 7) /* Software Reset */ - -#define AT91C_MCI_MR 0x04 /* Mode Register */ -#define AT91C_MCI_CLKDIV (0xff << 0) /* Clock Divider */ -#define AT91C_MCI_PWSDIV (7 << 8) /* Power Saving Divider */ -#define AT91C_MCI_RDPROOF (1 << 11) /* Read Proof Enable [SAM926[03] only] */ -#define AT91C_MCI_WRPROOF (1 << 12) /* Write Proof Enable [SAM926[03] only] */ -#define AT91C_MCI_PDCFBYTE (1 << 13) /* PDC Force Byte Transfer [SAM926[03] only] */ -#define AT91C_MCI_PDCPADV (1 << 14) /* PDC Padding Value */ -#define AT91C_MCI_PDCMODE (1 << 15) /* PDC-orientated Mode */ -#define AT91C_MCI_BLKLEN (0xfff << 18) /* Data Block Length */ - -#define AT91C_MCI_DTOR 0x08 /* Data Timeout Register */ -#define AT91C_MCI_DTOCYC (0xf << 0) /* Data Timeout Cycle Number */ -#define AT91C_MCI_DTOMUL (7 << 4) /* Data Timeout Multiplier */ -#define AT91C_MCI_DTOMUL_1 (0 << 4) -#define AT91C_MCI_DTOMUL_16 (1 << 4) -#define AT91C_MCI_DTOMUL_128 (2 << 4) -#define AT91C_MCI_DTOMUL_256 (3 << 4) -#define AT91C_MCI_DTOMUL_1K (4 << 4) -#define AT91C_MCI_DTOMUL_4K (5 << 4) -#define AT91C_MCI_DTOMUL_64K (6 << 4) -#define AT91C_MCI_DTOMUL_1M (7 << 4) - -#define AT91C_MCI_SDCR 0x0c /* SD Card Register */ -#define AT91C_MCI_SDCSEL (3 << 0) /* SD Card Selector */ -#define AT91C_MCI_SDCBUS (1 << 7) /* 1-bit or 4-bit bus */ - -#define AT91C_MCI_ARGR 0x10 /* Argument Register */ - -#define AT91C_MCI_CMDR 0x14 /* Command Register */ -#define AT91C_MCI_CMDNB (0x3f << 0) /* Command Number */ -#define AT91C_MCI_RSPTYP (3 << 6) /* Response Type */ -#define AT91C_MCI_RSPTYP_NONE (0 << 6) -#define AT91C_MCI_RSPTYP_48 (1 << 6) -#define AT91C_MCI_RSPTYP_136 (2 << 6) -#define AT91C_MCI_SPCMD (7 << 8) /* Special Command */ -#define AT91C_MCI_SPCMD_NONE (0 << 8) -#define AT91C_MCI_SPCMD_INIT (1 << 8) -#define AT91C_MCI_SPCMD_SYNC (2 << 8) -#define AT91C_MCI_SPCMD_ICMD (4 << 8) -#define AT91C_MCI_SPCMD_IRESP (5 << 8) -#define AT91C_MCI_OPDCMD (1 << 11) /* Open Drain Command */ -#define AT91C_MCI_MAXLAT (1 << 12) /* Max Latency for Command to Response */ -#define AT91C_MCI_TRCMD (3 << 16) /* Transfer Command */ -#define AT91C_MCI_TRCMD_NONE (0 << 16) -#define AT91C_MCI_TRCMD_START (1 << 16) -#define AT91C_MCI_TRCMD_STOP (2 << 16) -#define AT91C_MCI_TRDIR (1 << 18) /* Transfer Direction */ -#define AT91C_MCI_TRTYP (3 << 19) /* Transfer Type */ -#define AT91C_MCI_TRTYP_BLOCK (0 << 19) -#define AT91C_MCI_TRTYP_MULTIPLE (1 << 19) -#define AT91C_MCI_TRTYP_STREAM (2 << 19) - -#define AT91C_MCI_BLKR 0x18 /* Block Register */ -#define AT91C_MCI_BLKR_BCNT(n) ((0xffff & (n)) << 0) /* Block count */ -#define AT91C_MCI_BLKR_BLKLEN(n) ((0xffff & (n)) << 16) /* Block lenght */ - -#define AT91C_MCI_RSPR(n) (0x20 + ((n) * 4)) /* Response Registers 0-3 */ -#define AT91C_MCR_RDR 0x30 /* Receive Data Register */ -#define AT91C_MCR_TDR 0x34 /* Transmit Data Register */ - -#define AT91C_MCI_SR 0x40 /* Status Register */ -#define AT91C_MCI_CMDRDY (1U << 0) /* Command Ready */ -#define AT91C_MCI_RXRDY (1U << 1) /* Receiver Ready */ -#define AT91C_MCI_TXRDY (1U << 2) /* Transmit Ready */ -#define AT91C_MCI_BLKE (1U << 3) /* Data Block Ended */ -#define AT91C_MCI_DTIP (1U << 4) /* Data Transfer in Progress */ -#define AT91C_MCI_NOTBUSY (1U << 5) /* Data Not Busy */ -#define AT91C_MCI_ENDRX (1U << 6) /* End of RX Buffer */ -#define AT91C_MCI_ENDTX (1U << 7) /* End fo TX Buffer */ -#define AT91C_MCI_SDIOIRQA (1U << 8) /* SDIO Interrupt for Slot A */ -#define AT91C_MCI_SDIOIRQB (1U << 9) /* SDIO Interrupt for Slot B */ -#define AT91C_MCI_RXBUFF (1U << 14) /* RX Buffer Full */ -#define AT91C_MCI_TXBUFE (1U << 15) /* TX Buffer Empty */ -#define AT91C_MCI_RINDE (1U << 16) /* Response Index Error */ -#define AT91C_MCI_RDIRE (1U << 17) /* Response Direction Error */ -#define AT91C_MCI_RCRCE (1U << 18) /* Response CRC Error */ -#define AT91C_MCI_RENDE (1U << 19) /* Response End Bit Error */ -#define AT91C_MCI_RTOE (1U << 20) /* Reponse Time-out Error */ -#define AT91C_MCI_DCRCE (1U << 21) /* Data CRC Error */ -#define AT91C_MCI_DTOE (1U << 22) /* Data Time-out Error */ -#define AT91C_MCI_OVRE (1U << 30) /* Overrun */ -#define AT91C_MCI_UNRE (1U << 31) /* Underrun */ - -#define AT91C_MCI_IER 0x44 /* Interrupt Enable Register */ -#define AT91C_MCI_IDR 0x48 /* Interrupt Disable Register */ -#define AT91C_MCI_IMR 0x4c /* Interrupt Mask Register */ - -extern int at91_mci_init(void); - -#endif diff --git a/bsp/at91sam9g45/drivers/board.c b/bsp/at91sam9g45/drivers/board.c deleted file mode 100644 index 4adf2d9689..0000000000 --- a/bsp/at91sam9g45/drivers/board.c +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include - -#include "board.h" -#include - -/** - * @addtogroup at91sam9g45 - */ -/*@{*/ -#if defined(__CC_ARM) -extern int Image$$ER_ZI$$ZI$$Limit; -#define HEAP_BEGIN (&Image$$ER_ZI$$ZI$$Limit) -#elif (defined (__GNUC__)) -extern unsigned char __bss_end; -#define HEAP_BEGIN (&__bss_end) -#elif (defined (__ICCARM__)) -#pragma section=".noinit" -#define HEAP_BEGIN (__section_end(".noinit")) -#endif - -#define HEAP_END (((rt_uint32_t)HEAP_BEGIN & 0xF0000000) + 0x04000000) - -extern void rt_hw_interrupt_init(void); -extern void rt_hw_clock_init(void); - -extern void rt_hw_get_clock(void); -extern void rt_hw_set_dividor(rt_uint8_t hdivn, rt_uint8_t pdivn); -extern void rt_hw_set_clock(rt_uint8_t sdiv, rt_uint8_t pdiv, rt_uint8_t mdiv); -extern void rt_dbgu_isr(void); - -#define SAM9G45_BLOCK_SIZE 0x10000000 // 256M -#define MMU_SECTION_SIZE 0x100000 // 1M -#define PERIPHERALS_ADDR // 1M - -#define SECTION_END(sa) ((sa) + MMU_SECTION_SIZE - 1) // sa: start address -#define BLOCK_END(ba) ((ba) + SAM9G45_BLOCK_SIZE - 1) // ba: block address - -static struct mem_desc at91_mem_desc[] = { /* FIXME, hornby, to confirm MMU and memory */ - { 0x00000000, 0xFFFFFFFF , 0x00000000, RW_NCNB }, /* None cached for 4G memory */ - //{ 0x00000000, SECTION_END(0x00000000), 0x00000000, RW_CNB }, /* TLB for ITCM, ITCM map to address zero, 32KB */ - //{ 0x00200000, SECTION_END(0x00200000), 0x00200000, RW_CNB }, /* TLB for DTCM, 32KB */ - //{ 0x00300000, SECTION_END(0x00300000), 0x00300000, RW_CNB }, /* TLB for internal RAM, 64KB, we use it as global variable area */ - //{ 0x00600000, SECTION_END(0x00600000), 0x00600000, RW_NCNB }, /* TLB for UDPHS(DMA) */ - //{ 0x00700000, SECTION_END(0x00700000), 0x00700000, RW_NCNB }, /* TLB for UHP OHCI */ - //{ 0x00800000, SECTION_END(0x00800000), 0x00800000, RW_NCNB }, /* TLB for UHP EHCI */ - //{ 0x30000000, 0x30000000+0x00100000-1, 0x30000000, RW_CB }, /* 1M external SRAM for program code and stack */ - //{ 0x40000000, BLOCK_END(0x40000000), 0x40000000, RW_NCNB }, /* 256M for nand-flash controller */ - //{ 0x60000000, BLOCK_END(0x60000000), 0x60000000, RW_NCNB }, /* 256M for FPGA */ - //{ 0x70000000, 0x70000000+0x08000000-1, 0x70000000, RW_NCNB }, /* 128M for main DDR-SDRAM for print data */ - { 0x00000000, SECTION_END(0x00000000), 0x70000000, RW_CB }, /* isr */ - { 0x70000000, 0x70000000+0x08000000-1, 0x70000000, RW_CB }, /* 128M for main DDR-SDRAM for print data */ - //{ 0xFFF00000, SECTION_END(0xFFF00000), 0xFFF00000, RW_NCNB }, /* Internal Peripherals, 1MB */ -}; - - -#define PIT_CPIV(x) ((x) & AT91C_PITC_CPIV) -#define PIT_PICNT(x) (((x) & AT91C_PITC_PICNT) >> 20) - -static rt_uint32_t pit_cycle; /* write-once */ -static rt_uint32_t pit_cnt; /* access only w/system irq blocked */ - -/** - * This function will handle rtos timer - */ -void rt_timer_handler(int vector, void *param) -{ -#ifdef RT_USING_DBGU - if (readl(AT91C_DBGU_CSR) & AT91C_US_RXRDY) - { - rt_dbgu_isr(); - } -#endif - if (readl(AT91C_PITC_PISR) & AT91C_PITC_PITS) - { - unsigned nr_ticks; - - /* Get number of ticks performed before irq, and ack it */ - nr_ticks = PIT_PICNT(readl(AT91C_PITC_PIVR)); - while (nr_ticks--) - rt_tick_increase(); - } -} - -static void at91sam9g45_pit_reset(void) -{ - /* Disable timer and irqs */ - AT91C_BASE_PITC->PITC_PIMR = 0; - - /* Clear any pending interrupts, wait for PIT to stop counting */ - while (PIT_CPIV(readl(AT91C_PITC_PIVR)) != 0) - ; - - /* Start PIT but don't enable IRQ */ - //AT91C_BASE_PITC->PITC_PIMR = (pit_cycle - 1) | AT91C_PITC_PITEN; - pit_cnt += pit_cycle * PIT_PICNT(readl(AT91C_PITC_PIVR)); - AT91C_BASE_PITC->PITC_PIMR = - (pit_cycle - 1) | AT91C_PITC_PITEN | AT91C_PITC_PITIEN; - rt_kprintf("PIT_MR=0x%08x\n", readl(AT91C_PITC_PIMR)); -} - -/* - * Set up both clocksource and clockevent support. - */ -static void at91sam9g45_pit_init(void) -{ - rt_uint32_t pit_rate; - //rt_uint32_t bits; - - /* - * Use our actual MCK to figure out how many MCK/16 ticks per - * 1/HZ period (instead of a compile-time constant LATCH). - */ - pit_rate = clk_get_rate(clk_get("mck")) / 16; - rt_kprintf("pit_rate=%dHZ\n", pit_rate); - pit_cycle = (pit_rate + RT_TICK_PER_SECOND/2) / RT_TICK_PER_SECOND; - - /* Initialize and enable the timer */ - at91sam9g45_pit_reset(); -} - -/** - * This function will init pit for system ticks - */ -void rt_hw_timer_init() -{ - at91sam9g45_pit_init(); - - /* install interrupt handler */ - rt_hw_interrupt_install(AT91C_ID_SYS, rt_timer_handler, - RT_NULL, "system"); - rt_hw_interrupt_umask(AT91C_ID_SYS); -} - -void at91_tc1_init() -{ - AT91C_BASE_PMC->PMC_PCER = 1<DBGU_CSR & AT91C_US_TXRDY)) - ; - AT91C_BASE_DBGU->DBGU_THR = c; -} - -/** - * This function is used to display a string on console, normally, it's - * invoked by rt_kprintf - * - * @param str the displayed string - */ -void rt_hw_console_output(const char* str) -{ - while (*str) - { - if (*str=='\n') - { - at91_usart_putc('\r'); - } - - at91_usart_putc(*str++); - } -} - -static void rt_hw_console_init(void) -{ - int div; - int mode = 0; - - AT91C_BASE_DBGU->DBGU_CR = AT91C_US_RSTTX | AT91C_US_RSTRX | - AT91C_US_RXDIS | AT91C_US_TXDIS; - mode |= AT91C_US_USMODE_NORMAL | AT91C_US_CLKS_CLOCK | - AT91C_US_CHMODE_NORMAL; - mode |= AT91C_US_CHRL_8_BITS; - mode |= AT91C_US_NBSTOP_1_BIT; - mode |= AT91C_US_PAR_NONE; - AT91C_BASE_DBGU->DBGU_MR = mode; - div = (clk_get_rate(clk_get("mck")) / 16 + BPS/2) / BPS; - AT91C_BASE_DBGU->DBGU_BRGR = div; - AT91C_BASE_DBGU->DBGU_CR = AT91C_US_RXEN | AT91C_US_TXEN; -} - - -/** - * This function will init at91sam9g45 board - */ -void rt_hw_board_init() -{ - /* initialize the system clock */ - rt_hw_clock_init(); - - /* initialize console */ - rt_hw_console_init(); - - /* initialize mmu */ - rt_hw_mmu_init(at91_mem_desc, sizeof(at91_mem_desc)/sizeof(at91_mem_desc[0])); - - /* initialize hardware interrupt */ - rt_hw_interrupt_init(); - - /* initialize early device */ -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif - -#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); -#endif - /* initialize timer0 */ - rt_hw_timer_init(); - -/* initialize board */ -#ifdef RT_USING_HEAP - rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END); -#endif -} - -/*@}*/ diff --git a/bsp/at91sam9g45/drivers/board.h b/bsp/at91sam9g45/drivers/board.h deleted file mode 100644 index 1c3147b8f5..0000000000 --- a/bsp/at91sam9g45/drivers/board.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety add board.h to this bsp - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - -#include - -void rt_hw_board_init(void); - -#endif diff --git a/bsp/at91sam9g45/drivers/led.c b/bsp/at91sam9g45/drivers/led.c deleted file mode 100644 index d4b377e629..0000000000 --- a/bsp/at91sam9g45/drivers/led.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include -#include "led.h" - -// BYHX A-Plus Board -#define LED0 (1UL << 30) -#define LED1 (1UL << 31) -#define LED2 (1UL << 29) -#define LED3 (1UL << 28) -#define LED_ALL (LED0 | LED1 | LED2 | LED3) - -void led_init(void) -{ - AT91C_BASE_PIOC->PIO_PER = LED_ALL; - AT91C_BASE_PIOC->PIO_OER = LED_ALL; - AT91C_BASE_PIOC->PIO_PPUER = LED_ALL; - AT91C_BASE_PIOC->PIO_SODR = LED_ALL; -} - -const static rt_uint32_t m_leds[] = { LED0, LED1, LED2, LED3 }; - -void led_on(int num) -{ - if (num < 4) AT91C_BASE_PIOC->PIO_CODR = m_leds[num]; -} - -void led_off(int num) -{ - if (num < 4) AT91C_BASE_PIOC->PIO_SODR = m_leds[num]; -} diff --git a/bsp/at91sam9g45/drivers/led.h b/bsp/at91sam9g45/drivers/led.h deleted file mode 100644 index 9836eff709..0000000000 --- a/bsp/at91sam9g45/drivers/led.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __LED_H__ -#define __LED_H__ - -void led_init(void); -void led_on(int num); -void led_off(int num); - -#endif diff --git a/bsp/at91sam9g45/drivers/macb.c b/bsp/at91sam9g45/drivers/macb.c deleted file mode 100644 index 8a300725c3..0000000000 --- a/bsp/at91sam9g45/drivers/macb.c +++ /dev/null @@ -1,897 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-18 weety first version - */ - -#include -#include -#include "lwipopts.h" -#include -#include "macb.h" - -#define MMU_NOCACHE_ADDR(a) ((rt_uint32_t)a | (1UL<<31)) - -extern void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size); -extern void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size); - -/* Cache macros - Packet buffers would be from pbuf pool which is cached */ -#define EMAC_VIRT_NOCACHE(addr) (addr) -#define EMAC_CACHE_INVALIDATE(addr, size) \ - mmu_invalidate_dcache((rt_uint32_t)addr, size) -#define EMAC_CACHE_WRITEBACK(addr, size) \ - mmu_clean_dcache((rt_uint32_t)addr, size) -#define EMAC_CACHE_WRITEBACK_INVALIDATE(addr, size) \ - mmu_clean_invalidated_dcache((rt_uint32_t)addr, size) - -/* EMAC has BD's in cached memory - so need cache functions */ -#define BD_CACHE_INVALIDATE(addr, size) -#define BD_CACHE_WRITEBACK(addr, size) -#define BD_CACHE_WRITEBACK_INVALIDATE(addr, size) - -/* EMAC internal utility function */ -rt_inline unsigned long emac_virt_to_phys(unsigned long addr) -{ - return addr; -} - - -#define AT91SAM9260_SRAM0_VIRT_BASE (0x90000000) - -#define MACB_TX_SRAM - -#if defined(MACB_TX_SRAM) -#define MACB_TX_RING_SIZE 2 -#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) -#define TX_RING_BYTES (sizeof(struct macb_dma_desc) * MACB_TX_RING_SIZE) -#else -#define MACB_TX_RING_SIZE 16 -#define MACB_TX_BUFFER_SIZE (1536 * MACB_TX_RING_SIZE) -#endif - -#define MACB_RX_BUFFER_SIZE (4096*4) -#define MACB_RX_RING_SIZE (MACB_RX_BUFFER_SIZE / 128) - -#define DEF_TX_RING_PENDING (MACB_TX_RING_SIZE) - -#define TX_RING_GAP(macb) \ - (MACB_TX_RING_SIZE - (macb)->tx_pending) - -#define TX_BUFFS_AVAIL(macb) \ - (((macb)->tx_tail <= (macb)->tx_head) ? \ - (macb)->tx_tail + (macb)->tx_pending - (macb)->tx_head : \ - (macb)->tx_tail - (macb)->tx_head - TX_RING_GAP(macb)) - -#define NEXT_TX(n) (((n) + 1) & (MACB_TX_RING_SIZE - 1)) - -#define NEXT_RX(n) (((n) + 1) & (MACB_RX_RING_SIZE - 1)) - -/* minimum number of free TX descriptors before waking up TX process */ -#define MACB_TX_WAKEUP_THRESH (MACB_TX_RING_SIZE / 4) - -#define MACB_RX_INT_FLAGS (MACB_BIT(RCOMP) | MACB_BIT(RXUBR) \ - | MACB_BIT(ISR_ROVR)) - -#define MACB_TX_TIMEOUT 1000 -#define MACB_AUTONEG_TIMEOUT 5000000 -#define MACB_LINK_TIMEOUT 500000 - -#define CONFIG_RMII - -struct macb_dma_desc { - rt_uint32_t addr; - rt_uint32_t ctrl; -}; - -#define RXADDR_USED 0x00000001 -#define RXADDR_WRAP 0x00000002 - -#define RXBUF_FRMLEN_MASK 0x00000fff -#define RXBUF_FRAME_START 0x00004000 -#define RXBUF_FRAME_END 0x00008000 -#define RXBUF_TYPEID_MATCH 0x00400000 -#define RXBUF_ADDR4_MATCH 0x00800000 -#define RXBUF_ADDR3_MATCH 0x01000000 -#define RXBUF_ADDR2_MATCH 0x02000000 -#define RXBUF_ADDR1_MATCH 0x04000000 -#define RXBUF_BROADCAST 0x80000000 - -#define TXBUF_FRMLEN_MASK 0x000007ff -#define TXBUF_FRAME_END 0x00008000 -#define TXBUF_NOCRC 0x00010000 -#define TXBUF_EXHAUSTED 0x08000000 -#define TXBUF_UNDERRUN 0x10000000 -#define TXBUF_MAXRETRY 0x20000000 -#define TXBUF_WRAP 0x40000000 -#define TXBUF_USED 0x80000000 - -/* Duplex, half or full. */ -#define DUPLEX_HALF 0x00 -#define DUPLEX_FULL 0x01 - -#define MAX_ADDR_LEN 6 -struct rt_macb_eth -{ - /* inherit from ethernet device */ - struct eth_device parent; - - unsigned int regs; - - unsigned int rx_tail; - unsigned int tx_head; - unsigned int tx_tail; - unsigned int rx_pending; - unsigned int tx_pending; - - void *rx_buffer; - void *tx_buffer; - struct macb_dma_desc *rx_ring; - struct macb_dma_desc *tx_ring; - - unsigned long rx_buffer_dma; - unsigned long tx_buffer_dma; - unsigned long rx_ring_dma; - unsigned long tx_ring_dma; - - unsigned int tx_stop; - - /* interface address info. */ - rt_uint8_t dev_addr[MAX_ADDR_LEN]; /* hw address */ - unsigned short phy_addr; - - struct rt_semaphore mdio_bus_lock; - struct rt_semaphore tx_lock; - struct rt_semaphore rx_lock; - struct rt_semaphore tx_ack; - rt_uint32_t speed; - rt_uint32_t duplex; - rt_uint32_t link; - struct rt_timer timer; -}; -static struct rt_macb_eth macb_device; - -static void macb_tx(struct rt_macb_eth *macb); - -static void udelay(rt_uint32_t us) -{ - rt_uint32_t len; - for (;us > 0; us --) - for (len = 0; len < 10; len++ ); -} - -static void rt_macb_isr(int irq, void *param) -{ - struct rt_macb_eth *macb = (struct rt_macb_eth *)param; - rt_device_t dev = &(macb->parent.parent); - rt_uint32_t status, rsr, tsr; - - status = macb_readl(macb, ISR); - - while (status) { - - if (status & MACB_RX_INT_FLAGS) - { - rsr = macb_readl(macb, RSR); - macb_writel(macb, RSR, rsr); - /* a frame has been received */ - eth_device_ready(&(macb_device.parent)); - - } - - if (status & (MACB_BIT(TCOMP) | MACB_BIT(ISR_TUND) | - MACB_BIT(ISR_RLE))) - { - macb_tx(macb); - } - - /* - * Link change detection isn't possible with RMII, so we'll - * add that if/when we get our hands on a full-blown MII PHY. - */ - - if (status & MACB_BIT(HRESP)) - { - /* - * TODO: Reset the hardware, and maybe move the printk - * to a lower-priority context as well (work queue?) - */ - rt_kprintf("%s: DMA bus error: HRESP not OK\n", - dev->parent.name); - } - - status = macb_readl(macb, ISR); - } - - -} - -static int macb_mdio_write(struct rt_macb_eth *macb, rt_uint8_t reg, rt_uint16_t value) -{ - unsigned long netctl; - unsigned long netstat; - unsigned long frame; - - rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); - netctl = macb_readl(macb, NCR); - netctl |= MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - - frame = (MACB_BF(SOF, 1) - | MACB_BF(RW, 1) - | MACB_BF(PHYA, macb->phy_addr) - | MACB_BF(REGA, reg) - | MACB_BF(CODE, 2) - | MACB_BF(DATA, value)); - macb_writel(macb, MAN, frame); - - do { - netstat = macb_readl(macb, NSR); - } while (!(netstat & MACB_BIT(IDLE))); - - netctl = macb_readl(macb, NCR); - netctl &= ~MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - rt_sem_release(&macb->mdio_bus_lock); -} - -static int macb_mdio_read(struct rt_macb_eth *macb, rt_uint8_t reg) -{ - unsigned long netctl; - unsigned long netstat; - unsigned long frame; - - rt_sem_take(&macb->mdio_bus_lock, RT_WAITING_FOREVER); - netctl = macb_readl(macb, NCR); - netctl |= MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - - frame = (MACB_BF(SOF, 1) - | MACB_BF(RW, 2) - | MACB_BF(PHYA, macb->phy_addr) - | MACB_BF(REGA, reg) - | MACB_BF(CODE, 2)); - macb_writel(macb, MAN, frame); - - do { - netstat = macb_readl(macb, NSR); - } while (!(netstat & MACB_BIT(IDLE))); - - frame = macb_readl(macb, MAN); - - netctl = macb_readl(macb, NCR); - netctl &= ~MACB_BIT(MPE); - macb_writel(macb, NCR, netctl); - rt_sem_release(&macb->mdio_bus_lock); - - return MACB_BFEXT(DATA, frame); -} - -static void macb_phy_reset(rt_device_t dev) -{ - int i; - rt_uint16_t status, adv; - struct rt_macb_eth *macb = dev->user_data;; - - adv = ADVERTISE_CSMA | ADVERTISE_ALL; - macb_mdio_write(macb, MII_ADVERTISE, adv); - rt_kprintf("%s: Starting autonegotiation...\n", dev->parent.name); - macb_mdio_write(macb, MII_BMCR, (BMCR_ANENABLE - | BMCR_ANRESTART)); - - for (i = 0; i < MACB_AUTONEG_TIMEOUT / 100; i++) - { - status = macb_mdio_read(macb, MII_BMSR); - if (status & BMSR_ANEGCOMPLETE) - break; - udelay(100); - } - - if (status & BMSR_ANEGCOMPLETE) - rt_kprintf("%s: Autonegotiation complete\n", dev->parent.name); - else - rt_kprintf("%s: Autonegotiation timed out (status=0x%04x)\n", - dev->parent.name, status); -} - - -static int macb_phy_init(rt_device_t dev) -{ - struct rt_macb_eth *macb = dev->user_data; - rt_uint32_t ncfgr; - rt_uint16_t phy_id, status, adv, lpa; - int media, speed, duplex; - int i; - - /* Check if the PHY is up to snuff... */ - phy_id = macb_mdio_read(macb, MII_PHYSID1); - if (phy_id == 0xffff) - { - rt_kprintf("%s: No PHY present\n", dev->parent.name); - return 0; - } - - status = macb_mdio_read(macb, MII_BMSR); - if (!(status & BMSR_LSTATUS)) - { - /* Try to re-negotiate if we don't have link already. */ - macb_phy_reset(dev); - - for (i = 0; i < MACB_LINK_TIMEOUT / 100; i++) - { - status = macb_mdio_read(macb, MII_BMSR); - if (status & BMSR_LSTATUS) - break; - udelay(100); - } - } - - if (!(status & BMSR_LSTATUS)) - { - rt_kprintf("%s: link down (status: 0x%04x)\n", - dev->parent.name, status); - return 0; - } - else - { - adv = macb_mdio_read(macb, MII_ADVERTISE); - lpa = macb_mdio_read(macb, MII_LPA); - media = mii_nway_result(lpa & adv); - speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) - ? 1 : 0); - duplex = (media & ADVERTISE_FULL) ? 1 : 0; - rt_kprintf("%s: link up, %sMbps %s-duplex (lpa: 0x%04x)\n", - dev->parent.name, - speed ? "100" : "10", - duplex ? "full" : "half", - lpa); - - ncfgr = macb_readl(macb, NCFGR); - ncfgr &= ~(MACB_BIT(SPD) | MACB_BIT(FD)); - if (speed) - ncfgr |= MACB_BIT(SPD); - if (duplex) - ncfgr |= MACB_BIT(FD); - macb_writel(macb, NCFGR, ncfgr); - return 1; - } -} - -void macb_update_link(void *param) -{ - struct rt_macb_eth *macb = (struct rt_macb_eth *)param; - rt_device_t dev = &macb->parent.parent; - int status, status_change = 0; - rt_uint32_t link; - rt_uint32_t media; - rt_uint16_t adv, lpa; - - /* Do a fake read */ - status = macb_mdio_read(macb, MII_BMSR); - if (status < 0) - return; - - /* Read link and autonegotiation status */ - status = macb_mdio_read(macb, MII_BMSR); - if (status < 0) - return; - - if ((status & BMSR_LSTATUS) == 0) - link = 0; - else - link = 1; - - if (link != macb->link) - { - macb->link = link; - status_change = 1; - } - - if (status_change) - { - if (macb->link) - { - adv = macb_mdio_read(macb, MII_ADVERTISE); - lpa = macb_mdio_read(macb, MII_LPA); - media = mii_nway_result(lpa & adv); - macb->speed = (media & (ADVERTISE_100FULL | ADVERTISE_100HALF) - ? 100 : 10); - macb->duplex = (media & ADVERTISE_FULL) ? 1 : 0; - rt_kprintf("%s: link up (%dMbps/%s-duplex)\n", - dev->parent.name, macb->speed, - DUPLEX_FULL == macb->duplex ? "Full":"Half"); - eth_device_linkchange(&macb->parent, RT_TRUE); - } - else - { - rt_kprintf("%s: link down\n", dev->parent.name); - eth_device_linkchange(&macb->parent, RT_FALSE); - } - - } - -} - -/* RT-Thread Device Interface */ -/* initialize the interface */ - -static rt_err_t rt_macb_init(rt_device_t dev) -{ - struct rt_macb_eth *macb = dev->user_data; - unsigned long paddr; - rt_uint32_t hwaddr_bottom; - rt_uint16_t hwaddr_top; - int i; - - /* - * macb_halt should have been called at some point before now, - * so we'll assume the controller is idle. - */ - - /* initialize DMA descriptors */ - paddr = macb->rx_buffer_dma; - for (i = 0; i < MACB_RX_RING_SIZE; i++) - { - if (i == (MACB_RX_RING_SIZE - 1)) - paddr |= RXADDR_WRAP; - macb->rx_ring[i].addr = paddr; - macb->rx_ring[i].ctrl = 0; - paddr += 128; - } - paddr = macb->tx_buffer_dma; - for (i = 0; i < MACB_TX_RING_SIZE; i++) - { - macb->tx_ring[i].addr = paddr; - if (i == (MACB_TX_RING_SIZE - 1)) - macb->tx_ring[i].ctrl = TXBUF_USED | TXBUF_WRAP; - else - macb->tx_ring[i].ctrl = TXBUF_USED; - paddr += 1536; - } - macb->rx_tail = macb->tx_head = macb->tx_tail = 0; - - BD_CACHE_WRITEBACK_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - BD_CACHE_WRITEBACK_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); - macb_writel(macb, RBQP, macb->rx_ring_dma); - macb_writel(macb, TBQP, macb->tx_ring_dma); - - /* set hardware address */ - hwaddr_bottom = (*((rt_uint32_t *)macb->dev_addr)); - macb_writel(macb, SA1B, hwaddr_bottom); - hwaddr_top = (*((rt_uint16_t *)(macb->dev_addr + 4))); - macb_writel(macb, SA1T, hwaddr_top); - - - /* choose RMII or MII mode. This depends on the board */ -#ifdef CONFIG_RMII - macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN)); -#else - macb_writel(macb, USRIO, MACB_BIT(CLKEN)); -#endif /* CONFIG_RMII */ - - if (!macb_phy_init(dev)) - return -RT_ERROR; - - /* Enable TX and RX */ - macb_writel(macb, NCR, MACB_BIT(TE) | MACB_BIT(RE) | MACB_BIT(MPE)); - - /* Enable interrupts */ - macb_writel(macb, IER, (MACB_BIT(RCOMP) - | MACB_BIT(RXUBR) - | MACB_BIT(ISR_TUND) - | MACB_BIT(ISR_RLE) - | MACB_BIT(TXERR) - | MACB_BIT(TCOMP) - | MACB_BIT(ISR_ROVR) - | MACB_BIT(HRESP))); - - /* instal interrupt */ - rt_hw_interrupt_install(AT91SAM9260_ID_EMAC, rt_macb_isr, - (void *)macb, "emac"); - rt_hw_interrupt_umask(AT91SAM9260_ID_EMAC); - - rt_timer_init(&macb->timer, "link_timer", - macb_update_link, - (void *)macb, - RT_TICK_PER_SECOND, - RT_TIMER_FLAG_PERIODIC); - - rt_timer_start(&macb->timer); - - return RT_EOK; -} - -static rt_err_t rt_macb_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -static rt_err_t rt_macb_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t rt_macb_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_size_t rt_macb_write (rt_device_t dev, rt_off_t pos, const void* buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -static rt_err_t rt_macb_control(rt_device_t dev, int cmd, void *args) -{ - switch(cmd) - { - case NIOCTL_GADDR: - /* get mac address */ - if(args) rt_memcpy(args, macb_device.dev_addr, 6); - else return -RT_ERROR; - break; - - default : - break; - } - - return RT_EOK; -} - -static void macb_tx(struct rt_macb_eth *macb) -{ - unsigned int tail; - unsigned int head; - rt_uint32_t status; - - status = macb_readl(macb, TSR); - macb_writel(macb, TSR, status); - - /*rt_kprintf("macb_tx status = %02lx\n", - (unsigned long)status);*/ - - if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) - { - int i; - rt_kprintf("%s: TX %s, resetting buffers\n", - macb->parent.parent.parent.name, status & MACB_BIT(UND) ? - "underrun" : "retry limit exceeded"); - - /* Transfer ongoing, disable transmitter, to avoid confusion */ - if (status & MACB_BIT(TGO)) - macb_writel(macb, NCR, macb_readl(macb, NCR) & ~MACB_BIT(TE)); - - head = macb->tx_head; - - /*Mark all the buffer as used to avoid sending a lost buffer*/ - for (i = 0; i < MACB_TX_RING_SIZE; i++) - macb->tx_ring[i].ctrl = MACB_BIT(TX_USED); - - /* free transmit buffer in upper layer*/ - - macb->tx_head = macb->tx_tail = 0; - - /* Enable the transmitter again */ - if (status & MACB_BIT(TGO)) - macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TE)); - } - - if (!(status & MACB_BIT(COMP))) - /* - * This may happen when a buffer becomes complete - * between reading the ISR and scanning the - * descriptors. Nothing to worry about. - */ - return; - - head = macb->tx_head; - for (tail = macb->tx_tail; tail != head; tail = NEXT_TX(tail)) - { - rt_uint32_t bufstat; - - bufstat = macb->tx_ring[tail].ctrl; - - if (!(bufstat & MACB_BIT(TX_USED))) - break; - } - - macb->tx_tail = tail; - if ((macb->tx_stop == 1) && - TX_BUFFS_AVAIL(macb) > MACB_TX_WAKEUP_THRESH) - rt_sem_release(&macb->tx_ack); -} - - -/* ethernet device interface */ -/* transmit packet. */ -rt_err_t rt_macb_tx( rt_device_t dev, struct pbuf* p) -{ - unsigned long ctrl; - struct pbuf* q; - rt_uint8_t* bufptr; - rt_uint32_t mapping; - struct rt_macb_eth *macb = dev->user_data; - unsigned int tx_head = macb->tx_head; - - rt_sem_take(&macb->tx_lock, RT_WAITING_FOREVER); - if (TX_BUFFS_AVAIL(macb) < 1) - { - rt_sem_release(&macb->tx_lock); - rt_kprintf("Tx Ring full!\n"); - rt_kprintf("tx_head = %u, tx_tail = %u\n", - macb->tx_head, macb->tx_tail); - return -RT_ERROR; - } - - macb->tx_stop = 0; - - ctrl = p->tot_len & TXBUF_FRMLEN_MASK; - ctrl |= TXBUF_FRAME_END; - if (tx_head == (MACB_TX_RING_SIZE - 1)) - { - ctrl |= TXBUF_WRAP; - } -#if defined(MACB_TX_SRAM) - bufptr = macb->tx_buffer + tx_head * 1536; -#else - mapping = (unsigned long)macb->tx_buffer + tx_head * 1536; - bufptr = (rt_uint8_t *)mapping; -#endif - - for (q = p; q != NULL; q = q->next) - { - memcpy(bufptr, q->payload, q->len); - bufptr += q->len; - } -#if !defined(MACB_TX_SRAM) - EMAC_CACHE_WRITEBACK(mapping, p->tot_len); -#endif - macb->tx_ring[tx_head].ctrl = ctrl; - BD_CACHE_WRITEBACK_INVALIDATE(&macb->tx_ring[tx_head], sizeof(struct macb_dma_desc)); - tx_head = NEXT_TX(tx_head); - macb->tx_head = tx_head; - macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); - macb_writel(macb, NCR, macb_readl(macb, NCR) | MACB_BIT(TSTART)); - - if (TX_BUFFS_AVAIL(macb) < 1) - { - macb->tx_stop = 1; - rt_sem_take(&macb->tx_ack, RT_WAITING_FOREVER); - } - rt_sem_release(&macb->tx_lock); - - return RT_EOK; -} - -static void reclaim_rx_buffers(struct rt_macb_eth *macb, - unsigned int new_tail) -{ - unsigned int i; - - i = macb->rx_tail; - while (i > new_tail) - { - macb->rx_ring[i].addr &= ~RXADDR_USED; - i++; - if (i > MACB_RX_RING_SIZE) - i = 0; - } - - while (i < new_tail) - { - macb->rx_ring[i].addr &= ~RXADDR_USED; - i++; - } - - macb->rx_tail = new_tail; -} - -/* reception packet. */ -struct pbuf *rt_macb_rx(rt_device_t dev) -{ - struct rt_macb_eth *macb = dev->user_data; - struct pbuf* p = RT_NULL; - rt_uint32_t len; - unsigned int rx_tail = macb->rx_tail; - void *buffer; - int wrapped = 0; - rt_uint32_t status; - - rt_sem_take(&macb->rx_lock, RT_WAITING_FOREVER); - for (;;) - { - if (!(macb->rx_ring[rx_tail].addr & RXADDR_USED)) - break; - - status = macb->rx_ring[rx_tail].ctrl; - if (status & RXBUF_FRAME_START) - { - if (rx_tail != macb->rx_tail) - reclaim_rx_buffers(macb, rx_tail); - wrapped = 0; - } - - if (status & RXBUF_FRAME_END) - { - buffer = (void *)((unsigned int)macb->rx_buffer + 128 * macb->rx_tail); - len = status & RXBUF_FRMLEN_MASK; - p = pbuf_alloc(PBUF_LINK, len, PBUF_RAM); - if (!p) - { - rt_kprintf("alloc pbuf failed\n"); - break; - } - if (wrapped) - { - unsigned int headlen, taillen; - - headlen = 128 * (MACB_RX_RING_SIZE - - macb->rx_tail); - taillen = len - headlen; - EMAC_CACHE_INVALIDATE(buffer, headlen); - EMAC_CACHE_INVALIDATE(macb->rx_buffer, taillen); - memcpy((void *)p->payload, buffer, headlen); - memcpy((void *)((unsigned int)p->payload + headlen), - macb->rx_buffer, taillen); - } - else - { - EMAC_CACHE_INVALIDATE(buffer, len); - memcpy((void *)p->payload, buffer, p->len); - } - - if (++rx_tail >= MACB_RX_RING_SIZE) - rx_tail = 0; - reclaim_rx_buffers(macb, rx_tail); - break; - } - else - { - if (++rx_tail >= MACB_RX_RING_SIZE) - { - wrapped = 1; - rx_tail = 0; - } - } - } - - rt_sem_release(&macb->rx_lock); - - return p; -} - -void macb_gpio_init() -{ - /* Pins used for MII and RMII */ - AT91C_BASE_PIOA->PIO_PDR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20); - AT91C_BASE_PIOA->PIO_ASR, (1 << 19)|(1 << 17)|(1 << 14)|(1 << 15)|(1 << 18)|(1 << 16)|(1 << 12)|(1 << 13)|(1 << 21)|(1 << 20); - -#ifndef GONFIG_RMII - AT91C_BASE_PIOA->PIO_PDR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29); - AT91C_BASE_PIOA->PIO_ASR, (1 << 22)|(1 << 23)|(1 << 24)|(1 << 25)|(1 << 26)|(1 << 27)|(1 << 28)|(1 << 29); -#endif -} - -rt_err_t macb_initialize() -{ - struct rt_macb_eth *macb = &macb_device; - unsigned long macb_hz; - rt_uint32_t ncfgr; - -#if defined(MACB_TX_SRAM) - macb->tx_ring_dma = AT91SAM9260_SRAM0_BASE; - macb->tx_ring = (struct macb_dma_desc *)AT91SAM9260_SRAM0_VIRT_BASE; - macb->tx_buffer = (char *) macb->tx_ring + TX_RING_BYTES; - macb->tx_buffer_dma = macb->tx_ring_dma + TX_RING_BYTES; -#else - macb->tx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - if (macb->tx_ring == RT_NULL) - goto err1; - EMAC_CACHE_INVALIDATE(macb->tx_ring, MACB_TX_RING_SIZE * sizeof(struct macb_dma_desc)); - macb->tx_ring_dma = emac_virt_to_phys((unsigned long)macb->tx_ring); - macb->tx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->tx_ring); - macb->tx_buffer = rt_malloc(MACB_TX_BUFFER_SIZE); - if (macb->tx_buffer == RT_NULL) - goto err2; - macb->tx_buffer_dma = emac_virt_to_phys((unsigned long)macb->tx_buffer); -#endif - - macb->rx_ring = rt_malloc(MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - if (macb->rx_ring == RT_NULL) - goto err3; - EMAC_CACHE_INVALIDATE(macb->rx_ring, MACB_RX_RING_SIZE * sizeof(struct macb_dma_desc)); - macb->rx_ring_dma = emac_virt_to_phys((unsigned long)macb->rx_ring); - macb->rx_ring = (struct macb_dma_desc *)MMU_NOCACHE_ADDR((unsigned long)macb->rx_ring); - macb->rx_buffer = rt_malloc(MACB_RX_BUFFER_SIZE); - if (macb->rx_buffer == RT_NULL) - goto err4; - macb->rx_buffer_dma = emac_virt_to_phys((unsigned long)macb->rx_buffer); - - macb->tx_pending = DEF_TX_RING_PENDING; - - macb->regs = AT91SAM9260_BASE_EMAC; - macb->phy_addr = 0x00; - - /* - * Do some basic initialization so that we at least can talk - * to the PHY - */ - macb_hz = clk_get_rate(clk_get("mck")); - if (macb_hz < 20000000) - ncfgr = MACB_BF(CLK, MACB_CLK_DIV8); - else if (macb_hz < 40000000) - ncfgr = MACB_BF(CLK, MACB_CLK_DIV16); - else if (macb_hz < 80000000) - ncfgr = MACB_BF(CLK, MACB_CLK_DIV32); - else - ncfgr = MACB_BF(CLK, MACB_CLK_DIV64); - - macb_writel(macb, NCFGR, ncfgr); - - macb->link = 0; - - return RT_EOK; - -err4: - rt_free(macb->rx_ring); - macb->rx_ring = RT_NULL; -err3: -#if !defined(MACB_TX_SRAM) - rt_free(macb->tx_buffer); - macb->tx_buffer = RT_NULL; -err2: - rt_free(macb->tx_ring); - macb->tx_ring = RT_NULL; -err1: -#endif - return -RT_ENOMEM; -} - -int rt_hw_macb_init(void) -{ - rt_err_t ret; - AT91C_BASE_PMC->PMC_PCER = 1 << AT91C_ID_EMAC; //enable macb clock - macb_gpio_init(); - rt_memset(&macb_device, 0, sizeof(macb_device)); - ret = macb_initialize(); - if (ret != RT_EOK) - { - rt_kprintf("AT91 EMAC initialized failed\n"); - return -1; - } - rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO); - rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO); - rt_sem_init(&macb_device.rx_lock, "rx_lock", 1, RT_IPC_FLAG_FIFO); - - macb_device.dev_addr[0] = 0x00; - macb_device.dev_addr[1] = 0x60; - macb_device.dev_addr[2] = 0x6E; - macb_device.dev_addr[3] = 0x11; - macb_device.dev_addr[4] = 0x22; - macb_device.dev_addr[5] = 0x33; - - macb_device.parent.parent.init = rt_macb_init; - macb_device.parent.parent.open = rt_macb_open; - macb_device.parent.parent.close = rt_macb_close; - macb_device.parent.parent.read = rt_macb_read; - macb_device.parent.parent.write = rt_macb_write; - macb_device.parent.parent.control = rt_macb_control; - macb_device.parent.parent.user_data = &macb_device; - - macb_device.parent.eth_rx = rt_macb_rx; - macb_device.parent.eth_tx = rt_macb_tx; - - rt_sem_init(&macb_device.mdio_bus_lock, "mdio_bus_lock", 1, RT_IPC_FLAG_FIFO); - - eth_device_init(&(macb_device.parent), "e0"); - - return 0; -} - -INIT_DEVICE_EXPORT(rt_hw_macb_init); - diff --git a/bsp/at91sam9g45/drivers/macb.h b/bsp/at91sam9g45/drivers/macb.h deleted file mode 100644 index ed2ad390b7..0000000000 --- a/bsp/at91sam9g45/drivers/macb.h +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-18 weety first version - */ -#ifndef _MACB_H -#define _MACB_H -#include - -/* MACB register offsets */ -#define MACB_NCR 0x0000 -#define MACB_NCFGR 0x0004 -#define MACB_NSR 0x0008 -#define MACB_TSR 0x0014 -#define MACB_RBQP 0x0018 -#define MACB_TBQP 0x001c -#define MACB_RSR 0x0020 -#define MACB_ISR 0x0024 -#define MACB_IER 0x0028 -#define MACB_IDR 0x002c -#define MACB_IMR 0x0030 -#define MACB_MAN 0x0034 -#define MACB_PTR 0x0038 -#define MACB_PFR 0x003c -#define MACB_FTO 0x0040 -#define MACB_SCF 0x0044 -#define MACB_MCF 0x0048 -#define MACB_FRO 0x004c -#define MACB_FCSE 0x0050 -#define MACB_ALE 0x0054 -#define MACB_DTF 0x0058 -#define MACB_LCOL 0x005c -#define MACB_EXCOL 0x0060 -#define MACB_TUND 0x0064 -#define MACB_CSE 0x0068 -#define MACB_RRE 0x006c -#define MACB_ROVR 0x0070 -#define MACB_RSE 0x0074 -#define MACB_ELE 0x0078 -#define MACB_RJA 0x007c -#define MACB_USF 0x0080 -#define MACB_STE 0x0084 -#define MACB_RLE 0x0088 -#define MACB_TPF 0x008c -#define MACB_HRB 0x0090 -#define MACB_HRT 0x0094 -#define MACB_SA1B 0x0098 -#define MACB_SA1T 0x009c -#define MACB_SA2B 0x00a0 -#define MACB_SA2T 0x00a4 -#define MACB_SA3B 0x00a8 -#define MACB_SA3T 0x00ac -#define MACB_SA4B 0x00b0 -#define MACB_SA4T 0x00b4 -#define MACB_TID 0x00b8 -#define MACB_TPQ 0x00bc -#define MACB_USRIO 0x00c0 -#define MACB_WOL 0x00c4 - -/* Bitfields in NCR */ -#define MACB_LB_OFFSET 0 -#define MACB_LB_SIZE 1 -#define MACB_LLB_OFFSET 1 -#define MACB_LLB_SIZE 1 -#define MACB_RE_OFFSET 2 -#define MACB_RE_SIZE 1 -#define MACB_TE_OFFSET 3 -#define MACB_TE_SIZE 1 -#define MACB_MPE_OFFSET 4 -#define MACB_MPE_SIZE 1 -#define MACB_CLRSTAT_OFFSET 5 -#define MACB_CLRSTAT_SIZE 1 -#define MACB_INCSTAT_OFFSET 6 -#define MACB_INCSTAT_SIZE 1 -#define MACB_WESTAT_OFFSET 7 -#define MACB_WESTAT_SIZE 1 -#define MACB_BP_OFFSET 8 -#define MACB_BP_SIZE 1 -#define MACB_TSTART_OFFSET 9 -#define MACB_TSTART_SIZE 1 -#define MACB_THALT_OFFSET 10 -#define MACB_THALT_SIZE 1 -#define MACB_NCR_TPF_OFFSET 11 -#define MACB_NCR_TPF_SIZE 1 -#define MACB_TZQ_OFFSET 12 -#define MACB_TZQ_SIZE 1 - -/* Bitfields in NCFGR */ -#define MACB_SPD_OFFSET 0 -#define MACB_SPD_SIZE 1 -#define MACB_FD_OFFSET 1 -#define MACB_FD_SIZE 1 -#define MACB_BIT_RATE_OFFSET 2 -#define MACB_BIT_RATE_SIZE 1 -#define MACB_JFRAME_OFFSET 3 -#define MACB_JFRAME_SIZE 1 -#define MACB_CAF_OFFSET 4 -#define MACB_CAF_SIZE 1 -#define MACB_NBC_OFFSET 5 -#define MACB_NBC_SIZE 1 -#define MACB_NCFGR_MTI_OFFSET 6 -#define MACB_NCFGR_MTI_SIZE 1 -#define MACB_UNI_OFFSET 7 -#define MACB_UNI_SIZE 1 -#define MACB_BIG_OFFSET 8 -#define MACB_BIG_SIZE 1 -#define MACB_EAE_OFFSET 9 -#define MACB_EAE_SIZE 1 -#define MACB_CLK_OFFSET 10 -#define MACB_CLK_SIZE 2 -#define MACB_RTY_OFFSET 12 -#define MACB_RTY_SIZE 1 -#define MACB_PAE_OFFSET 13 -#define MACB_PAE_SIZE 1 -#define MACB_RBOF_OFFSET 14 -#define MACB_RBOF_SIZE 2 -#define MACB_RLCE_OFFSET 16 -#define MACB_RLCE_SIZE 1 -#define MACB_DRFCS_OFFSET 17 -#define MACB_DRFCS_SIZE 1 -#define MACB_EFRHD_OFFSET 18 -#define MACB_EFRHD_SIZE 1 -#define MACB_IRXFCS_OFFSET 19 -#define MACB_IRXFCS_SIZE 1 - -/* Bitfields in NSR */ -#define MACB_NSR_LINK_OFFSET 0 -#define MACB_NSR_LINK_SIZE 1 -#define MACB_MDIO_OFFSET 1 -#define MACB_MDIO_SIZE 1 -#define MACB_IDLE_OFFSET 2 -#define MACB_IDLE_SIZE 1 - -/* Bitfields in TSR */ -#define MACB_UBR_OFFSET 0 -#define MACB_UBR_SIZE 1 -#define MACB_COL_OFFSET 1 -#define MACB_COL_SIZE 1 -#define MACB_TSR_RLE_OFFSET 2 -#define MACB_TSR_RLE_SIZE 1 -#define MACB_TGO_OFFSET 3 -#define MACB_TGO_SIZE 1 -#define MACB_BEX_OFFSET 4 -#define MACB_BEX_SIZE 1 -#define MACB_COMP_OFFSET 5 -#define MACB_COMP_SIZE 1 -#define MACB_UND_OFFSET 6 -#define MACB_UND_SIZE 1 - -/* Bitfields in RSR */ -#define MACB_BNA_OFFSET 0 -#define MACB_BNA_SIZE 1 -#define MACB_REC_OFFSET 1 -#define MACB_REC_SIZE 1 -#define MACB_OVR_OFFSET 2 -#define MACB_OVR_SIZE 1 - -/* Bitfields in ISR/IER/IDR/IMR */ -#define MACB_MFD_OFFSET 0 -#define MACB_MFD_SIZE 1 -#define MACB_RCOMP_OFFSET 1 -#define MACB_RCOMP_SIZE 1 -#define MACB_RXUBR_OFFSET 2 -#define MACB_RXUBR_SIZE 1 -#define MACB_TXUBR_OFFSET 3 -#define MACB_TXUBR_SIZE 1 -#define MACB_ISR_TUND_OFFSET 4 -#define MACB_ISR_TUND_SIZE 1 -#define MACB_ISR_RLE_OFFSET 5 -#define MACB_ISR_RLE_SIZE 1 -#define MACB_TXERR_OFFSET 6 -#define MACB_TXERR_SIZE 1 -#define MACB_TCOMP_OFFSET 7 -#define MACB_TCOMP_SIZE 1 -#define MACB_ISR_LINK_OFFSET 9 -#define MACB_ISR_LINK_SIZE 1 -#define MACB_ISR_ROVR_OFFSET 10 -#define MACB_ISR_ROVR_SIZE 1 -#define MACB_HRESP_OFFSET 11 -#define MACB_HRESP_SIZE 1 -#define MACB_PFR_OFFSET 12 -#define MACB_PFR_SIZE 1 -#define MACB_PTZ_OFFSET 13 -#define MACB_PTZ_SIZE 1 - -/* Bitfields in MAN */ -#define MACB_DATA_OFFSET 0 -#define MACB_DATA_SIZE 16 -#define MACB_CODE_OFFSET 16 -#define MACB_CODE_SIZE 2 -#define MACB_REGA_OFFSET 18 -#define MACB_REGA_SIZE 5 -#define MACB_PHYA_OFFSET 23 -#define MACB_PHYA_SIZE 5 -#define MACB_RW_OFFSET 28 -#define MACB_RW_SIZE 2 -#define MACB_SOF_OFFSET 30 -#define MACB_SOF_SIZE 2 - -/* Bitfields in USRIO (AVR32) */ -#define MACB_MII_OFFSET 0 -#define MACB_MII_SIZE 1 -#define MACB_EAM_OFFSET 1 -#define MACB_EAM_SIZE 1 -#define MACB_TX_PAUSE_OFFSET 2 -#define MACB_TX_PAUSE_SIZE 1 -#define MACB_TX_PAUSE_ZERO_OFFSET 3 -#define MACB_TX_PAUSE_ZERO_SIZE 1 - -/* Bitfields in USRIO (AT91) */ -#define MACB_RMII_OFFSET 0 -#define MACB_RMII_SIZE 1 -#define MACB_CLKEN_OFFSET 1 -#define MACB_CLKEN_SIZE 1 - -/* Bitfields in WOL */ -#define MACB_IP_OFFSET 0 -#define MACB_IP_SIZE 16 -#define MACB_MAG_OFFSET 16 -#define MACB_MAG_SIZE 1 -#define MACB_ARP_OFFSET 17 -#define MACB_ARP_SIZE 1 -#define MACB_SA1_OFFSET 18 -#define MACB_SA1_SIZE 1 -#define MACB_WOL_MTI_OFFSET 19 -#define MACB_WOL_MTI_SIZE 1 - -/* Constants for CLK */ -#define MACB_CLK_DIV8 0 -#define MACB_CLK_DIV16 1 -#define MACB_CLK_DIV32 2 -#define MACB_CLK_DIV64 3 - -/* Constants for MAN register */ -#define MACB_MAN_SOF 1 -#define MACB_MAN_WRITE 1 -#define MACB_MAN_READ 2 -#define MACB_MAN_CODE 2 - -/* Bit manipulation macros */ -#define MACB_BIT(name) \ - (1 << MACB_##name##_OFFSET) -#define MACB_BF(name,value) \ - (((value) & ((1 << MACB_##name##_SIZE) - 1)) \ - << MACB_##name##_OFFSET) -#define MACB_BFEXT(name,value)\ - (((value) >> MACB_##name##_OFFSET) \ - & ((1 << MACB_##name##_SIZE) - 1)) -#define MACB_BFINS(name,value,old) \ - (((old) & ~(((1 << MACB_##name##_SIZE) - 1) \ - << MACB_##name##_OFFSET)) \ - | MACB_BF(name,value)) - -/* Register access macros */ -#define macb_readl(port,reg) \ - readl((port)->regs + MACB_##reg) -#define macb_writel(port,reg,value) \ - writel((value), (port)->regs + MACB_##reg) - -struct dma_desc { - rt_uint32_t addr; - rt_uint32_t ctrl; -}; - -/* DMA descriptor bitfields */ -#define MACB_RX_USED_OFFSET 0 -#define MACB_RX_USED_SIZE 1 -#define MACB_RX_WRAP_OFFSET 1 -#define MACB_RX_WRAP_SIZE 1 -#define MACB_RX_WADDR_OFFSET 2 -#define MACB_RX_WADDR_SIZE 30 - -#define MACB_RX_FRMLEN_OFFSET 0 -#define MACB_RX_FRMLEN_SIZE 12 -#define MACB_RX_OFFSET_OFFSET 12 -#define MACB_RX_OFFSET_SIZE 2 -#define MACB_RX_SOF_OFFSET 14 -#define MACB_RX_SOF_SIZE 1 -#define MACB_RX_EOF_OFFSET 15 -#define MACB_RX_EOF_SIZE 1 -#define MACB_RX_CFI_OFFSET 16 -#define MACB_RX_CFI_SIZE 1 -#define MACB_RX_VLAN_PRI_OFFSET 17 -#define MACB_RX_VLAN_PRI_SIZE 3 -#define MACB_RX_PRI_TAG_OFFSET 20 -#define MACB_RX_PRI_TAG_SIZE 1 -#define MACB_RX_VLAN_TAG_OFFSET 21 -#define MACB_RX_VLAN_TAG_SIZE 1 -#define MACB_RX_TYPEID_MATCH_OFFSET 22 -#define MACB_RX_TYPEID_MATCH_SIZE 1 -#define MACB_RX_SA4_MATCH_OFFSET 23 -#define MACB_RX_SA4_MATCH_SIZE 1 -#define MACB_RX_SA3_MATCH_OFFSET 24 -#define MACB_RX_SA3_MATCH_SIZE 1 -#define MACB_RX_SA2_MATCH_OFFSET 25 -#define MACB_RX_SA2_MATCH_SIZE 1 -#define MACB_RX_SA1_MATCH_OFFSET 26 -#define MACB_RX_SA1_MATCH_SIZE 1 -#define MACB_RX_EXT_MATCH_OFFSET 28 -#define MACB_RX_EXT_MATCH_SIZE 1 -#define MACB_RX_UHASH_MATCH_OFFSET 29 -#define MACB_RX_UHASH_MATCH_SIZE 1 -#define MACB_RX_MHASH_MATCH_OFFSET 30 -#define MACB_RX_MHASH_MATCH_SIZE 1 -#define MACB_RX_BROADCAST_OFFSET 31 -#define MACB_RX_BROADCAST_SIZE 1 - -#define MACB_TX_FRMLEN_OFFSET 0 -#define MACB_TX_FRMLEN_SIZE 11 -#define MACB_TX_LAST_OFFSET 15 -#define MACB_TX_LAST_SIZE 1 -#define MACB_TX_NOCRC_OFFSET 16 -#define MACB_TX_NOCRC_SIZE 1 -#define MACB_TX_BUF_EXHAUSTED_OFFSET 27 -#define MACB_TX_BUF_EXHAUSTED_SIZE 1 -#define MACB_TX_UNDERRUN_OFFSET 28 -#define MACB_TX_UNDERRUN_SIZE 1 -#define MACB_TX_ERROR_OFFSET 29 -#define MACB_TX_ERROR_SIZE 1 -#define MACB_TX_WRAP_OFFSET 30 -#define MACB_TX_WRAP_SIZE 1 -#define MACB_TX_USED_OFFSET 31 -#define MACB_TX_USED_SIZE 1 - -extern int rt_hw_macb_init(); - -#endif /* _MACB_H */ - diff --git a/bsp/at91sam9g45/drivers/mii.h b/bsp/at91sam9g45/drivers/mii.h deleted file mode 100644 index 03d914b7c3..0000000000 --- a/bsp/at91sam9g45/drivers/mii.h +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-18 weety first version - */ - -#ifndef __MII_H__ -#define __MII_H__ - -/* Generic MII registers. */ - -#define MII_BMCR 0x00 /* Basic mode control register */ -#define MII_BMSR 0x01 /* Basic mode status register */ -#define MII_PHYSID1 0x02 /* PHYS ID 1 */ -#define MII_PHYSID2 0x03 /* PHYS ID 2 */ -#define MII_ADVERTISE 0x04 /* Advertisement control reg */ -#define MII_LPA 0x05 /* Link partner ability reg */ -#define MII_EXPANSION 0x06 /* Expansion register */ -#define MII_CTRL1000 0x09 /* 1000BASE-T control */ -#define MII_STAT1000 0x0a /* 1000BASE-T status */ -#define MII_ESTATUS 0x0f /* Extended Status */ -#define MII_DCOUNTER 0x12 /* Disconnect counter */ -#define MII_FCSCOUNTER 0x13 /* False carrier counter */ -#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ -#define MII_RERRCOUNTER 0x15 /* Receive error counter */ -#define MII_SREVISION 0x16 /* Silicon revision */ -#define MII_RESV1 0x17 /* Reserved... */ -#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */ -#define MII_PHYADDR 0x19 /* PHY address */ -#define MII_RESV2 0x1a /* Reserved... */ -#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */ -#define MII_NCONFIG 0x1c /* Network interface config */ - -/* Basic mode control register. */ -#define BMCR_RESV 0x003f /* Unused... */ -#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ -#define BMCR_CTST 0x0080 /* Collision test */ -#define BMCR_FULLDPLX 0x0100 /* Full duplex */ -#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ -#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */ -#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */ -#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ -#define BMCR_SPEED100 0x2000 /* Select 100Mbps */ -#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */ -#define BMCR_RESET 0x8000 /* Reset the DP83840 */ - -/* Basic mode status register. */ -#define BMSR_ERCAP 0x0001 /* Ext-reg capability */ -#define BMSR_JCD 0x0002 /* Jabber detected */ -#define BMSR_LSTATUS 0x0004 /* Link status */ -#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ -#define BMSR_RFAULT 0x0010 /* Remote fault detected */ -#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ -#define BMSR_RESV 0x00c0 /* Unused... */ -#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */ -#define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ -#define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */ -#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */ -#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */ -#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */ -#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */ -#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */ - -/* Advertisement control register. */ -#define ADVERTISE_SLCT 0x001f /* Selector bits */ -#define ADVERTISE_CSMA 0x0001 /* Only selector supported */ -#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ -#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ -#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ -#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ -#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ -#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ -#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ -#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ -#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ -#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ -#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ -#define ADVERTISE_RESV 0x1000 /* Unused... */ -#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */ -#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ -#define ADVERTISE_NPAGE 0x8000 /* Next page bit */ - -#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ - ADVERTISE_CSMA) -#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ - ADVERTISE_100HALF | ADVERTISE_100FULL) - -/* Link partner ability register. */ -#define LPA_SLCT 0x001f /* Same as advertise selector */ -#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ -#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ -#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ -#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ -#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ -#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ -#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ -#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ -#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ -#define LPA_PAUSE_CAP 0x0400 /* Can pause */ -#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ -#define LPA_RESV 0x1000 /* Unused... */ -#define LPA_RFAULT 0x2000 /* Link partner faulted */ -#define LPA_LPACK 0x4000 /* Link partner acked us */ -#define LPA_NPAGE 0x8000 /* Next page bit */ - -#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL) -#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4) - -/* Expansion register for auto-negotiation. */ -#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */ -#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */ -#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */ -#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */ -#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */ -#define EXPANSION_RESV 0xffe0 /* Unused... */ - -#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */ -#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */ - -/* N-way test register. */ -#define NWAYTEST_RESV1 0x00ff /* Unused... */ -#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ -#define NWAYTEST_RESV2 0xfe00 /* Unused... */ - -/* 1000BASE-T Control register */ -#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */ -#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */ - -/* 1000BASE-T Status register */ -#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */ -#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */ -#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ -#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */ - -/* Flow control flags */ -#define FLOW_CTRL_TX 0x01 -#define FLOW_CTRL_RX 0x02 - -/** - * mii_nway_result - * @negotiated: value of MII ANAR and'd with ANLPAR - * - * Given a set of MII abilities, check each bit and returns the - * currently supported media, in the priority order defined by - * IEEE 802.3u. We use LPA_xxx constants but note this is not the - * value of LPA solely, as described above. - * - * The one exception to IEEE 802.3u is that 100baseT4 is placed - * between 100T-full and 100T-half. If your phy does not support - * 100T4 this is fine. If your phy places 100T4 elsewhere in the - * priority order, you will need to roll your own function. - */ -rt_inline unsigned int mii_nway_result (unsigned int negotiated) -{ - unsigned int ret; - - if (negotiated & LPA_100FULL) - ret = LPA_100FULL; - else if (negotiated & LPA_100BASE4) - ret = LPA_100BASE4; - else if (negotiated & LPA_100HALF) - ret = LPA_100HALF; - else if (negotiated & LPA_10FULL) - ret = LPA_10FULL; - else - ret = LPA_10HALF; - - return ret; -} - - -#endif /* __MII_H__ */ - diff --git a/bsp/at91sam9g45/drivers/usart.c b/bsp/at91sam9g45/drivers/usart.c deleted file mode 100644 index fdcb2f8537..0000000000 --- a/bsp/at91sam9g45/drivers/usart.c +++ /dev/null @@ -1,384 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - * 2013-07-21 weety using serial component - */ - -#include -#include -#include -#include - - -struct at91_uart { - AT91S_USART *port; - int irq; -}; - - -/** - * This function will handle serial port interrupt - */ -void rt_at91_usart_handler(int vector, void *param) -{ - int status; - struct at91_uart *uart; - rt_device_t dev = (rt_device_t)param; - uart = (struct at91_uart *)dev->user_data; - status = uart->port->US_CSR; - if (!(status & uart->port->US_IMR)) /* check actived and enabled interrupt */ - { - return; - } - rt_interrupt_enter(); - rt_hw_serial_isr((struct rt_serial_device *)dev, RT_SERIAL_EVENT_RX_IND); - rt_interrupt_leave(); -} - -/** - * UART device in RT-Thread - */ -static rt_err_t at91_usart_configure(struct rt_serial_device *serial, - struct serial_configure *cfg) -{ - int div; - int mode = 0; - struct at91_uart *uart; - - RT_ASSERT(serial != RT_NULL); - RT_ASSERT(cfg != RT_NULL); - uart = (struct at91_uart *)serial->parent.user_data; - - uart->port->US_CR = AT91C_US_RSTTX | AT91C_US_RSTRX | - AT91C_US_RXDIS | AT91C_US_TXDIS; - mode |= AT91C_US_USMODE_NORMAL | AT91C_US_CLKS_CLOCK | - AT91C_US_CHMODE_NORMAL; - switch (cfg->data_bits) - { - case DATA_BITS_8: - mode |= AT91C_US_CHRL_8_BITS; - break; - case DATA_BITS_7: - mode |= AT91C_US_CHRL_7_BITS; - break; - case DATA_BITS_6: - mode |= AT91C_US_CHRL_6_BITS; - break; - case DATA_BITS_5: - mode |= AT91C_US_CHRL_5_BITS; - break; - default: - mode |= AT91C_US_CHRL_8_BITS; - break; - } - - switch (cfg->stop_bits) - { - case STOP_BITS_2: - mode |= AT91C_US_NBSTOP_2_BIT; - break; - case STOP_BITS_1: - default: - mode |= AT91C_US_NBSTOP_1_BIT; - break; - } - - switch (cfg->parity) - { - case PARITY_ODD: - mode |= AT91C_US_PAR_ODD; - break; - case PARITY_EVEN: - mode |= AT91C_US_PAR_EVEN; - break; - case PARITY_NONE: - default: - mode |= AT91C_US_PAR_NONE; - break; - } - - uart->port->US_MR = mode; - /* Assume OVER is cleared and fractional baudrate generator is disabled */ - div = (clk_get_rate(clk_get("mck")) / 16 + cfg->baud_rate/2) / cfg->baud_rate; - uart->port->US_BRGR = div; - uart->port->US_CR = AT91C_US_RXEN | AT91C_US_TXEN; - uart->port->US_IER = AT91C_US_RXRDY; - - return RT_EOK; -} - -static rt_err_t at91_usart_control(struct rt_serial_device *serial, - int cmd, void *arg) -{ - struct at91_uart* uart; - - RT_ASSERT(serial != RT_NULL); - uart = (struct at91_uart *)serial->parent.user_data; - - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: - /* disable rx irq */ - rt_hw_interrupt_mask(uart->irq); - break; - case RT_DEVICE_CTRL_SET_INT: - /* enable rx irq */ - rt_hw_interrupt_umask(uart->irq); - break; - } - - return RT_EOK; -} - -static int at91_usart_putc(struct rt_serial_device *serial, char c) -{ - //rt_uint32_t level; - struct at91_uart *uart = serial->parent.user_data; - - while (!(uart->port->US_CSR & AT91C_US_TXRDY)); - uart->port->US_THR = c; - - return 1; -} - -static int at91_usart_getc(struct rt_serial_device *serial) -{ - int result; - struct at91_uart *uart = serial->parent.user_data; - - if (uart->port->US_CSR & AT91C_US_RXRDY) - { - result = uart->port->US_RHR & 0xff; - } - else - { - result = -1; - } - - return result; -} - -static const struct rt_uart_ops at91_usart_ops = -{ - at91_usart_configure, - at91_usart_control, - at91_usart_putc, - at91_usart_getc, -}; - -#if defined(RT_USING_DBGU) -static struct rt_serial_device serial_dbgu; -struct at91_uart dbgu = { - (AT91PS_USART)AT91C_BASE_DBGU, - AT91C_ID_SYS -}; - -#endif - -#if defined(RT_USING_UART0) -static struct rt_serial_device serial0; -struct at91_uart uart0 = { - AT91C_BASE_US0, - AT91C_ID_US0 -}; -#endif - -#if defined(RT_USING_UART1) -static struct rt_serial_device serial1; -struct at91_uart uart1 = { - AT91C_BASE_US1, - AT91C_ID_US1 -}; -#endif - -#if defined(RT_USING_UART2) -static struct rt_serial_device serial2; -struct at91_uart uart2 = { - AT91C_BASE_US2, - AT91C_ID_US2 -}; -#endif - -#if defined(RT_USING_UART3) -static struct rt_serial_device serial3; -struct at91_uart uart3 = { - AT91C_BASE_US3, - AT91C_ID_US3 -}; -#endif - - -void at91_usart_gpio_init(void) -{ -#ifdef RT_USING_DBGU -#define DRXD 12 // DBGU rx as Peripheral A on PB12 -#define DTXD 13 // DBGU tx as Peripheral A on PB13 - AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1 << AT91C_ID_SYS; -#endif - -#ifdef RT_USING_UART0 -#define RXD0 18 // UART0 rx as Peripheral A on PB18 -#define TXD0 19 // UART0 tx as Peripheral A on PB19 - AT91C_BASE_PMC->PMC_PCER, 1 << AT91C_ID_US0; - AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1 << AT91C_ID_US1; - AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1 << AT91C_ID_US2; - AT91C_BASE_PIOB->PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1<PMC_PCER, 1<PIO_IDR, (1<PIO_PPUER, (1<PIO_PPUDR, (1<PIO_ASR, (1<PIO_PDR, (1< R7 -#define AT91C_ISI_RGB_SWAP_ENABLE (0x1 << 14) // (ISI) D0 -> R7 -#define AT91C_ISI_COL_SPACE (0x1 << 15) // (ISI) Color space for the image data -#define AT91C_ISI_COL_SPACE_YCBCR (0x0 << 15) // (ISI) YCbCr -#define AT91C_ISI_COL_SPACE_RGB (0x1 << 15) // (ISI) RGB -#define AT91C_ISI_IM_HSIZE (0x7FF << 16) // (ISI) Horizontal size of the Image sensor [0..2047] -#define AT91C_ISI_YCC_SWAP (0x3 << 28) // (ISI) Ycc swap -#define AT91C_ISI_YCC_SWAP_YCC_DEFAULT (0x0 << 28) // (ISI) Cb(i) Y(i) Cr(i) Y(i+1) -#define AT91C_ISI_YCC_SWAP_YCC_MODE1 (0x1 << 28) // (ISI) Cr(i) Y(i) Cb(i) Y(i+1) -#define AT91C_ISI_YCC_SWAP_YCC_MODE2 (0x2 << 28) // (ISI) Y(i) Cb(i) Y(i+1) Cr(i) -#define AT91C_ISI_YCC_SWAP_YCC_MODE3 (0x3 << 28) // (ISI) Y(i) Cr(i) Y(i+1) Cb(i) -#define AT91C_ISI_RGB_CFG (0x3 << 30) // (ISI) RGB configuration -#define AT91C_ISI_RGB_CFG_RGB_DEFAULT (0x0 << 30) // (ISI) R/G(MSB) G(LSB)/B R/G(MSB) G(LSB)/B -#define AT91C_ISI_RGB_CFG_RGB_MODE1 (0x1 << 30) // (ISI) B/G(MSB) G(LSB)/R B/G(MSB) G(LSB)/R -#define AT91C_ISI_RGB_CFG_RGB_MODE2 (0x2 << 30) // (ISI) G(LSB)/R B/G(MSB) G(LSB)/R B/G(MSB) -#define AT91C_ISI_RGB_CFG_RGB_MODE3 (0x3 << 30) // (ISI) G(LSB)/B R/G(MSB) G(LSB)/B R/G(MSB) -// -------- ISI_PSIZE : (ISI Offset: 0x8) ISI Preview Register -------- -#define AT91C_ISI_PREV_VSIZE (0x3FF << 0) // (ISI) Vertical size for the preview path -#define AT91C_ISI_PREV_HSIZE (0x3FF << 16) // (ISI) Horizontal size for the preview path -// -------- ISI_PDECF : (ISI Offset: 0xc) ISI Preview Decimation Factor Register -------- -#define AT91C_ISI_DEC_FACTOR (0xFF << 0) // (ISI) Decimation factor -// -------- ISI_Y2RSET0 : (ISI Offset: 0x10) Color Space Conversion YCrCb to RGB Register -------- -#define AT91C_ISI_Y2R_C0 (0xFF << 0) // (ISI) Color Space Conversion Matrix Coefficient C0 -#define AT91C_ISI_Y2R_C1 (0xFF << 8) // (ISI) Color Space Conversion Matrix Coefficient C1 -#define AT91C_ISI_Y2R_C2 (0xFF << 16) // (ISI) Color Space Conversion Matrix Coefficient C2 -#define AT91C_ISI_Y2R_C3 (0xFF << 24) // (ISI) Color Space Conversion Matrix Coefficient C3 -// -------- ISI_Y2RSET1 : (ISI Offset: 0x14) ISI Color Space Conversion YCrCb to RGB set 1 Register -------- -#define AT91C_ISI_Y2R_C4 (0x1FF << 0) // (ISI) Color Space Conversion Matrix Coefficient C4 -#define AT91C_ISI_Y2R_YOFF (0x1 << 12) // (ISI) Color Space Conversion Luninance default offset -#define AT91C_ISI_Y2R_YOFF_0 (0x0 << 12) // (ISI) Offset is 0 -#define AT91C_ISI_Y2R_YOFF_128 (0x1 << 12) // (ISI) Offset is 128 -#define AT91C_ISI_Y2R_CROFF (0x1 << 13) // (ISI) Color Space Conversion Red Chrominance default offset -#define AT91C_ISI_Y2R_CROFF_0 (0x0 << 13) // (ISI) Offset is 0 -#define AT91C_ISI_Y2R_CROFF_16 (0x1 << 13) // (ISI) Offset is 16 -#define AT91C_ISI_Y2R_CBOFF (0x1 << 14) // (ISI) Color Space Conversion Blue Chrominance default offset -#define AT91C_ISI_Y2R_CBOFF_0 (0x0 << 14) // (ISI) Offset is 0 -#define AT91C_ISI_Y2R_CBOFF_16 (0x1 << 14) // (ISI) Offset is 16 -// -------- ISI_R2YSET0 : (ISI Offset: 0x18) Color Space Conversion RGB to YCrCb set 0 register -------- -#define AT91C_ISI_R2Y_C0 (0x7F << 0) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C0 -#define AT91C_ISI_R2Y_C1 (0x7F << 8) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C1 -#define AT91C_ISI_R2Y_C2 (0x7F << 16) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C2 -#define AT91C_ISI_R2Y_ROFF (0x1 << 24) // (ISI) Color Space Conversion Red component offset -#define AT91C_ISI_R2Y_ROFF_0 (0x0 << 24) // (ISI) Offset is 0 -#define AT91C_ISI_R2Y_ROFF_16 (0x1 << 24) // (ISI) Offset is 16 -// -------- ISI_R2YSET1 : (ISI Offset: 0x1c) Color Space Conversion RGB to YCrCb set 1 register -------- -#define AT91C_ISI_R2Y_C3 (0x7F << 0) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C3 -#define AT91C_ISI_R2Y_C4 (0x7F << 8) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C4 -#define AT91C_ISI_R2Y_C5 (0x7F << 16) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C5 -#define AT91C_ISI_R2Y_GOFF (0x1 << 24) // (ISI) Color Space Conversion Green component offset -#define AT91C_ISI_R2Y_GOFF_0 (0x0 << 24) // (ISI) Offset is 0 -#define AT91C_ISI_R2Y_GOFF_128 (0x1 << 24) // (ISI) Offset is 128 -// -------- ISI_R2YSET2 : (ISI Offset: 0x20) Color Space Conversion RGB to YCrCb set 2 register -------- -#define AT91C_ISI_R2Y_C6 (0x7F << 0) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C6 -#define AT91C_ISI_R2Y_C7 (0x7F << 8) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C7 -#define AT91C_ISI_R2Y_C8 (0x7F << 16) // (ISI) Color Space Conversion RGB to YCrCb Matrix coefficient C8 -#define AT91C_ISI_R2Y_BOFF (0x1 << 24) // (ISI) Color Space Conversion Blue component offset -#define AT91C_ISI_R2Y_BOFF_0 (0x0 << 24) // (ISI) Offset is 0 -#define AT91C_ISI_R2Y_BOFF_128 (0x1 << 24) // (ISI) Offset is 128 -// -------- ISI_CTRL : (ISI Offset: 0x24) ISI Control Register -------- -#define AT91C_ISI_EN (0x1 << 0) // (ISI) Image Sensor Interface Enable Request -#define AT91C_ISI_EN_0 (0x0) // (ISI) No effect -#define AT91C_ISI_EN_1 (0x1) // (ISI) Enable the module and the capture -#define AT91C_ISI_DIS (0x1 << 1) // (ISI) Image Sensor Interface Disable Request -#define AT91C_ISI_DIS_0 (0x0 << 1) // (ISI) No effect -#define AT91C_ISI_DIS_1 (0x1 << 1) // (ISI) Disable the module and the capture -#define AT91C_ISI_SRST (0x1 << 2) // (ISI) Software Reset Request -#define AT91C_ISI_SRST_0 (0x0 << 2) // (ISI) No effect -#define AT91C_ISI_SRST_1 (0x1 << 2) // (ISI) Reset the module -#define AT91C_ISI_CDC (0x1 << 8) // (ISI) Codec Request -#define AT91C_ISI_CDC_0 (0x0 << 8) // (ISI) No effect -#define AT91C_ISI_CDC_1 (0x1 << 8) // (ISI) Enable the Codec -// -------- ISI_SR : (ISI Offset: 0x28) ISI Status Register -------- -#define AT91C_ISI_VSYNC (0x1 << 10) // (ISI) Vertical Synchronization -#define AT91C_ISI_VSYNC_0 (0x0 << 10) // (ISI) No effect -#define AT91C_ISI_VSYNC_1 (0x1 << 10) // (ISI) Indicates that a Vertical Synchronization has been detected since last read -#define AT91C_ISI_PXFR_DONE (0x1 << 16) // (ISI) Preview DMA transfer terminated -#define AT91C_ISI_PXFR_DONE_0 (0x0 << 16) // (ISI) No effect -#define AT91C_ISI_PXFR_DONE_1 (0x1 << 16) // (ISI) Indicates that DATA transfer on preview channel has completed since last read -#define AT91C_ISI_CXFR_DONE (0x1 << 17) // (ISI) Codec DMA transfer terminated -#define AT91C_ISI_CXFR_DONE_0 (0x0 << 17) // (ISI) No effect -#define AT91C_ISI_CXFR_DONE_1 (0x1 << 17) // (ISI) Indicates that DATA transfer on preview channel has completed since last read -#define AT91C_ISI_SIP (0x1 << 19) // (ISI) Synchronization In Progress -#define AT91C_ISI_SIP_0 (0x0 << 19) // (ISI) No effect -#define AT91C_ISI_SIP_1 (0x1 << 19) // (ISI) Indicates that Synchronization is in progress -#define AT91C_ISI_P_OVR (0x1 << 24) // (ISI) Fifo Preview Overflow -#define AT91C_ISI_P_OVR_0 (0x0 << 24) // (ISI) No error -#define AT91C_ISI_P_OVR_1 (0x1 << 24) // (ISI) An overrun condition has occurred in input FIFO on the preview path -#define AT91C_ISI_C_OVR (0x1 << 25) // (ISI) Fifo Codec Overflow -#define AT91C_ISI_C_OVR_0 (0x0 << 25) // (ISI) No error -#define AT91C_ISI_C_OVR_1 (0x1 << 25) // (ISI) An overrun condition has occurred in input FIFO on the codec path -#define AT91C_ISI_CRC_ERR (0x1 << 26) // (ISI) CRC synchronisation error -#define AT91C_ISI_CRC_ERR_0 (0x0 << 26) // (ISI) No error -#define AT91C_ISI_CRC_ERR_1 (0x1 << 26) // (ISI) CRC_SYNC is enabled in the control register and an error has been detected and not corrected. The frame is discarded and the ISI waits for a new one. -#define AT91C_ISI_FR_OVR (0x1 << 27) // (ISI) Frame rate overun -#define AT91C_ISI_FR_OVR_0 (0x0 << 27) // (ISI) No error -#define AT91C_ISI_FR_OVR_1 (0x1 << 27) // (ISI) Frame overrun, the current frame is being skipped because a vsync signal has been detected while flushing FIFOs. -// -------- ISI_IER : (ISI Offset: 0x2c) ISI Interrupt Enable Register -------- -// -------- ISI_IDR : (ISI Offset: 0x30) ISI Interrupt Disable Register -------- -// -------- ISI_IMR : (ISI Offset: 0x34) ISI Interrupt Mask Register -------- -// -------- ISI_DMACHER : (ISI Offset: 0x38) DMA Channel Enable Register -------- -#define AT91C_ISI_P_CH_EN (0x1 << 0) // (ISI) Preview Channel Enable -#define AT91C_ISI_P_CH_EN_0 (0x0) // (ISI) No effect -#define AT91C_ISI_P_CH_EN_1 (0x1) // (ISI) Enable the Preview Channel -#define AT91C_ISI_C_CH_EN (0x1 << 1) // (ISI) Codec Channel Enable -#define AT91C_ISI_C_CH_EN_0 (0x0 << 1) // (ISI) No effect -#define AT91C_ISI_C_CH_EN_1 (0x1 << 1) // (ISI) Enable the Codec Channel -// -------- ISI_DMACHDR : (ISI Offset: 0x3c) DMA Channel Enable Register -------- -#define AT91C_ISI_P_CH_DIS (0x1 << 0) // (ISI) Preview Channel Disable -#define AT91C_ISI_P_CH_DIS_0 (0x0) // (ISI) No effect -#define AT91C_ISI_P_CH_DIS_1 (0x1) // (ISI) Disable the Preview Channel -#define AT91C_ISI_C_CH_DIS (0x1 << 1) // (ISI) Codec Channel Disable -#define AT91C_ISI_C_CH_DIS_0 (0x0 << 1) // (ISI) No effect -#define AT91C_ISI_C_CH_DIS_1 (0x1 << 1) // (ISI) Disable the Codec Channel -// -------- ISI_DMACHSR : (ISI Offset: 0x40) DMA Channel Status Register -------- -#define AT91C_ISI_P_CH_S (0x1 << 0) // (ISI) Preview Channel Disable -#define AT91C_ISI_P_CH_S_0 (0x0) // (ISI) Preview Channel is disabled -#define AT91C_ISI_P_CH_S_1 (0x1) // (ISI) Preview Channel is enabled -#define AT91C_ISI_C_CH_S (0x1 << 1) // (ISI) Codec Channel Disable -#define AT91C_ISI_C_CH_S_0 (0x0 << 1) // (ISI) Codec Channel is disabled -#define AT91C_ISI_C_CH_S_1 (0x1 << 1) // (ISI) Codec Channel is enabled -// -------- ISI_DMAPCTRL : (ISI Offset: 0x48) DMA Preview Control Register -------- -#define AT91C_ISI_P_FETCH (0x1 << 0) // (ISI) Preview Descriptor Fetch Control Field -#define AT91C_ISI_P_FETCH_DISABLE (0x0) // (ISI) Preview Channel Fetch Operation is disabled -#define AT91C_ISI_P_FETCH_ENABLE (0x1) // (ISI) Preview Channel Fetch Operation is enabled -#define AT91C_ISI_P_DONE (0x1 << 1) // (ISI) Preview Transfer Done Flag -#define AT91C_ISI_P_DONE_0 (0x0 << 1) // (ISI) Preview Transfer has not been performed -#define AT91C_ISI_P_DONE_1 (0x1 << 1) // (ISI) Preview Transfer has completed -// -------- ISI_DMACCTRL : (ISI Offset: 0x54) DMA Codec Control Register -------- -#define AT91C_ISI_C_FETCH (0x1 << 0) // (ISI) Codec Descriptor Fetch Control Field -#define AT91C_ISI_C_FETCH_DISABLE (0x0) // (ISI) Codec Channel Fetch Operation is disabled -#define AT91C_ISI_C_FETCH_ENABLE (0x1) // (ISI) Codec Channel Fetch Operation is enabled -#define AT91C_ISI_C_DONE (0x1 << 1) // (ISI) Codec Transfer Done Flag -#define AT91C_ISI_C_DONE_0 (0x0 << 1) // (ISI) Codec Transfer has not been performed -#define AT91C_ISI_C_DONE_1 (0x1 << 1) // (ISI) Codec Transfer has completed -// -------- ISI_WPCR : (ISI Offset: 0xe4) Write Protection Control Register -------- -#define AT91C_ISI_WP_EN (0x1 << 0) // (ISI) Write Protection Enable -#define AT91C_ISI_WP_EN_DISABLE (0x0) // (ISI) Write Operation is disabled (if WP_KEY corresponds) -#define AT91C_ISI_WP_EN_ENABLE (0x1) // (ISI) Write Operation is enabled (if WP_KEY corresponds) -#define AT91C_ISI_WP_KEY (0xFFFFFF << 8) // (ISI) Write Protection Key -// -------- ISI_WPSR : (ISI Offset: 0xe8) Write Protection Status Register -------- -#define AT91C_ISI_WP_VS (0xF << 0) // (ISI) Write Protection Violation Status -#define AT91C_ISI_WP_VS_NO_VIOLATION (0x0) // (ISI) No Write Protection Violation detected since last read -#define AT91C_ISI_WP_VS_ON_WRITE (0x1) // (ISI) Write Protection Violation detected since last read -#define AT91C_ISI_WP_VS_ON_RESET (0x2) // (ISI) Software Reset Violation detected since last read -#define AT91C_ISI_WP_VS_ON_BOTH (0x3) // (ISI) Write Protection and Software Reset Violation detected since last read -#define AT91C_ISI_WP_VSRC (0xF << 8) // (ISI) Write Protection Violation Source -#define AT91C_ISI_WP_VSRC_NO_VIOLATION (0x0 << 8) // (ISI) No Write Protection Violation detected since last read -#define AT91C_ISI_WP_VSRC_ISI_CFG1 (0x1 << 8) // (ISI) Write Protection Violation detected on ISI_CFG1 since last read -#define AT91C_ISI_WP_VSRC_ISI_CFG2 (0x2 << 8) // (ISI) Write Protection Violation detected on ISI_CFG2 since last read -#define AT91C_ISI_WP_VSRC_ISI_PSIZE (0x3 << 8) // (ISI) Write Protection Violation detected on ISI_PSIZE since last read -#define AT91C_ISI_WP_VSRC_ISI_PDECF (0x4 << 8) // (ISI) Write Protection Violation detected on ISI_PDECF since last read -#define AT91C_ISI_WP_VSRC_ISI_Y2RSET0 (0x5 << 8) // (ISI) Write Protection Violation detected on ISI_Y2RSET0 since last read -#define AT91C_ISI_WP_VSRC_ISI_Y2RSET1 (0x6 << 8) // (ISI) Write Protection Violation detected on ISI_Y2RSET1 since last read -#define AT91C_ISI_WP_VSRC_ISI_R2YSET0 (0x7 << 8) // (ISI) Write Protection Violation detected on ISI_R2YSET0 since last read -#define AT91C_ISI_WP_VSRC_ISI_R2YSET1 (0x8 << 8) // (ISI) Write Protection Violation detected on ISI_R2YSET1 since last read -#define AT91C_ISI_WP_VSRC_ISI_R2YSET2 (0x9 << 8) // (ISI) Write Protection Violation detected on ISI_R2YSET2 since last read - -// ***************************************************************************** -// SOFTWARE API DEFINITION FOR USB Host Interface -// ***************************************************************************** -#ifndef __ASSEMBLY__ -typedef struct _AT91S_UHPHS_OHCI { - AT91C_REG UHPHS_OHCI_HcRevision; // Revision - AT91C_REG UHPHS_OHCI_HcControl; // Operating modes for the Host Controller - AT91C_REG UHPHS_OHCI_HcCommandStatus; // Command & status Register - AT91C_REG UHPHS_OHCI_HcInterruptStatus; // Interrupt Status Register - AT91C_REG UHPHS_OHCI_HcInterruptEnable; // Interrupt Enable Register - AT91C_REG UHPHS_OHCI_HcInterruptDisable; // Interrupt Disable Register - AT91C_REG UHPHS_OHCI_HcHCCA; // Pointer to the Host Controller Communication Area - AT91C_REG UHPHS_OHCI_HcPeriodCurrentED; // Current Isochronous or Interrupt Endpoint Descriptor - AT91C_REG UHPHS_OHCI_HcControlHeadED; // First Endpoint Descriptor of the Control list - AT91C_REG UHPHS_OHCI_HcControlCurrentED; // Endpoint Control and Status Register - AT91C_REG UHPHS_OHCI_HcBulkHeadED; // First endpoint register of the Bulk list - AT91C_REG UHPHS_OHCI_HcBulkCurrentED; // Current endpoint of the Bulk list - AT91C_REG UHPHS_OHCI_HcBulkDoneHead; // Last completed transfer descriptor - AT91C_REG UHPHS_OHCI_HcFmInterval; // Bit time between 2 consecutive SOFs - AT91C_REG UHPHS_OHCI_HcFmRemaining; // Bit time remaining in the current Frame - AT91C_REG UHPHS_OHCI_HcFmNumber; // Frame number - AT91C_REG UHPHS_OHCI_HcPeriodicStart; // Periodic Start - AT91C_REG UHPHS_OHCI_HcLSThreshold; // LS Threshold - AT91C_REG UHPHS_OHCI_HcRhDescriptorA; // Root Hub characteristics A - AT91C_REG UHPHS_OHCI_HcRhDescriptorB; // Root Hub characteristics B - AT91C_REG UHPHS_OHCI_HcRhStatus; // Root Hub Status register - AT91C_REG UHPHS_OHCI_HcRhPortStatus[2]; // Root Hub Port Status Register -} AT91S_UHPHS_OHCI, *AT91PS_UHPHS_OHCI; -#else -#define HcRevision (AT91C_CAST(AT91C_REG *) 0x00000000) // (HcRevision) Revision -#define HcControl (AT91C_CAST(AT91C_REG *) 0x00000004) // (HcControl) Operating modes for the Host Controller -#define HcCommandStatus (AT91C_CAST(AT91C_REG *) 0x00000008) // (HcCommandStatus) Command & status Register -#define HcInterruptStatus (AT91C_CAST(AT91C_REG *) 0x0000000C) // (HcInterruptStatus) Interrupt Status Register -#define HcInterruptEnable (AT91C_CAST(AT91C_REG *) 0x00000010) // (HcInterruptEnable) Interrupt Enable Register -#define HcInterruptDisable (AT91C_CAST(AT91C_REG *) 0x00000014) // (HcInterruptDisable) Interrupt Disable Register -#define HcHCCA (AT91C_CAST(AT91C_REG *) 0x00000018) // (HcHCCA) Pointer to the Host Controller Communication Area -#define HcPeriodCurrentED (AT91C_CAST(AT91C_REG *) 0x0000001C) // (HcPeriodCurrentED) Current Isochronous or Interrupt Endpoint Descriptor -#define HcControlHeadED (AT91C_CAST(AT91C_REG *) 0x00000020) // (HcControlHeadED) First Endpoint Descriptor of the Control list -#define HcControlCurrentED (AT91C_CAST(AT91C_REG *) 0x00000024) // (HcControlCurrentED) Endpoint Control and Status Register -#define HcBulkHeadED (AT91C_CAST(AT91C_REG *) 0x00000028) // (HcBulkHeadED) First endpoint register of the Bulk list -#define HcBulkCurrentED (AT91C_CAST(AT91C_REG *) 0x0000002C) // (HcBulkCurrentED) Current endpoint of the Bulk list -#define HcBulkDoneHead (AT91C_CAST(AT91C_REG *) 0x00000030) // (HcBulkDoneHead) Last completed transfer descriptor -#define HcFmInterval (AT91C_CAST(AT91C_REG *) 0x00000034) // (HcFmInterval) Bit time between 2 consecutive SOFs -#define HcFmRemaining (AT91C_CAST(AT91C_REG *) 0x00000038) // (HcFmRemaining) Bit time remaining in the current Frame -#define HcFmNumber (AT91C_CAST(AT91C_REG *) 0x0000003C) // (HcFmNumber) Frame number -#define HcPeriodicStart (AT91C_CAST(AT91C_REG *) 0x00000040) // (HcPeriodicStart) Periodic Start -#define HcLSThreshold (AT91C_CAST(AT91C_REG *) 0x00000044) // (HcLSThreshold) LS Threshold -#define HcRhDescriptorA (AT91C_CAST(AT91C_REG *) 0x00000048) // (HcRhDescriptorA) Root Hub characteristics A -#define HcRhDescriptorB (AT91C_CAST(AT91C_REG *) 0x0000004C) // (HcRhDescriptorB) Root Hub characteristics B -#define HcRhStatus (AT91C_CAST(AT91C_REG *) 0x00000050) // (HcRhStatus) Root Hub Status register -#define HcRhPortStatus (AT91C_CAST(AT91C_REG *) 0x00000054) // (HcRhPortStatus) Root Hub Port Status Register - -#endif - -// ***************************************************************************** -// SOFTWARE API DEFINITION FOR USB Host Interface -// ***************************************************************************** -#ifndef __ASSEMBLY__ -typedef struct _AT91S_UHPHS_EHCI { - AT91C_REG UHPHS_EHCI_VERSION; // - AT91C_REG UHPHS_EHCI_HCSPARAMS; // - AT91C_REG UHPHS_EHCI_HCCPARAMS; // - AT91C_REG UHPHS_EHCI_HCSPPORTROUTE; // - AT91C_REG UHPHS_EHCI_USBCMD; // - AT91C_REG UHPHS_EHCI_USBSTS; // - AT91C_REG UHPHS_EHCI_USBINTR; // - AT91C_REG UHPHS_EHCI_FRINDEX; // - AT91C_REG UHPHS_EHCI_CTRLDSSEGMENT; // - AT91C_REG UHPHS_EHCI_PERIODICLISTBASE; // - AT91C_REG UHPHS_EHCI_ASYNCLISTADDR; // - AT91C_REG Reserved0[9]; // - AT91C_REG UHPHS_EHCI_CONFIGFLAG; // - AT91C_REG UHPHS_EHCI_PORTSC[2]; // - AT91C_REG Reserved1[13]; // - AT91C_REG UHPHS_EHCI_INSNREG00; // - AT91C_REG UHPHS_EHCI_INSNREG01; // - AT91C_REG UHPHS_EHCI_INSNREG02; // - AT91C_REG UHPHS_EHCI_INSNREG03; // - AT91C_REG UHPHS_EHCI_INSNREG04; // - AT91C_REG UHPHS_EHCI_INSNREG05; // -} AT91S_UHPHS_EHCI, *AT91PS_UHPHS_EHCI; -#else -#define VERSION (AT91C_CAST(AT91C_REG *) 0x00000000) // (VERSION) -#define HCSPARAMS (AT91C_CAST(AT91C_REG *) 0x00000004) // (HCSPARAMS) -#define HCCPARAMS (AT91C_CAST(AT91C_REG *) 0x00000008) // (HCCPARAMS) -#define HCSPPORTROUTE (AT91C_CAST(AT91C_REG *) 0x0000000C) // (HCSPPORTROUTE) -#define USBCMD (AT91C_CAST(AT91C_REG *) 0x00000010) // (USBCMD) -#define USBSTS (AT91C_CAST(AT91C_REG *) 0x00000014) // (USBSTS) -#define USBINTR (AT91C_CAST(AT91C_REG *) 0x00000018) // (USBINTR) -#define FRINDEX (AT91C_CAST(AT91C_REG *) 0x0000001C) // (FRINDEX) -#define CTRLDSSEGMENT (AT91C_CAST(AT91C_REG *) 0x00000020) // (CTRLDSSEGMENT) -#define PERIODICLISTBASE (AT91C_CAST(AT91C_REG *) 0x00000024) // (PERIODICLISTBASE) -#define ASYNCLISTADDR (AT91C_CAST(AT91C_REG *) 0x00000028) // (ASYNCLISTADDR) -#define CONFIGFLAG (AT91C_CAST(AT91C_REG *) 0x00000050) // (CONFIGFLAG) -#define PORTSC (AT91C_CAST(AT91C_REG *) 0x00000054) // (PORTSC) -#define INSNREG00 (AT91C_CAST(AT91C_REG *) 0x00000090) // (INSNREG00) -#define INSNREG01 (AT91C_CAST(AT91C_REG *) 0x00000094) // (INSNREG01) -#define INSNREG02 (AT91C_CAST(AT91C_REG *) 0x00000098) // (INSNREG02) -#define INSNREG03 (AT91C_CAST(AT91C_REG *) 0x0000009C) // (INSNREG03) -#define INSNREG04 (AT91C_CAST(AT91C_REG *) 0x000000A0) // (INSNREG04) -#define INSNREG05 (AT91C_CAST(AT91C_REG *) 0x000000A4) // (INSNREG05) - -#endif -// -------- VERSION : (UHPHS_EHCI Offset: 0x0) -------- -#define AT91C_UHPHS_CAPLENGTH (0xFF << 0) // (UHPHS_EHCI) CapLength : Offset for control registers -#define AT91C_UHPHS_HCIVERSION (0xFF << 16) // (UHPHS_EHCI) Hci Version - -// ***************************************************************************** -// SOFTWARE API DEFINITION FOR True Random Generator -// ***************************************************************************** -#ifndef __ASSEMBLY__ -typedef struct _AT91S_TRNG { - AT91C_REG TRNG_CR; // Control Register - AT91C_REG Reserved0[3]; // - AT91C_REG TRNG_IER; // Interrupt Enable Register - AT91C_REG TRNG_IDR; // Interrupt Disable Register - AT91C_REG TRNG_IMR; // Interrupt Mask Register - AT91C_REG TRNG_ISR; // Interrupt Status Register - AT91C_REG Reserved1[12]; // - AT91C_REG TRNG_ODATA; // Output Data Register - AT91C_REG Reserved2[42]; // - AT91C_REG TRNG_VERSION; // TRNG Version Register -} AT91S_TRNG, *AT91PS_TRNG; -#else -#define TRNG_CR (AT91C_CAST(AT91C_REG *) 0x00000000) // (TRNG_CR) Control Register -#define TRNG_IER (AT91C_CAST(AT91C_REG *) 0x00000010) // (TRNG_IER) Interrupt Enable Register -#define TRNG_IDR (AT91C_CAST(AT91C_REG *) 0x00000014) // (TRNG_IDR) Interrupt Disable Register -#define TRNG_IMR (AT91C_CAST(AT91C_REG *) 0x00000018) // (TRNG_IMR) Interrupt Mask Register -#define TRNG_ISR (AT91C_CAST(AT91C_REG *) 0x0000001C) // (TRNG_ISR) Interrupt Status Register -#define TRNG_ODATA (AT91C_CAST(AT91C_REG *) 0x00000050) // (TRNG_ODATA) Output Data Register -#define TRNG_VERSION (AT91C_CAST(AT91C_REG *) 0x000000FC) // (TRNG_VERSION) TRNG Version Register - -#endif -// -------- TRNG_CR : (TRNG Offset: 0x0) Control Register -------- -#define AT91C_TRNG_ENABLE (0x1 << 0) // (TRNG) Enable TRNG -// -------- TRNG_IER : (TRNG Offset: 0x10) Interrupt Enable Register -------- -#define AT91C_TRNG_DATRDY (0x1 << 0) // (TRNG) DATRDY -// -------- TRNG_IDR : (TRNG Offset: 0x14) Interrupt Disable Register -------- -// -------- TRNG_IMR : (TRNG Offset: 0x18) Interrupt Mask Register -------- -// -------- TRNG_ISR : (TRNG Offset: 0x1c) Interrupt Status Register -------- - -// ***************************************************************************** -// REGISTER ADDRESS DEFINITION FOR AT91SAM9G45 -// ***************************************************************************** -// ========== Register definition for SFR peripheral ========== -#define AT91C_SFR_INT (AT91C_CAST(AT91C_REG *) 0xFFF74014) // (SFR) OHCI suspend Interrupt status -#define AT91C_SFR_DDRCFG (AT91C_CAST(AT91C_REG *) 0xFFF74004) // (SFR) DDR2 SSTL18 control -#define AT91C_SFR_UTMICFG (AT91C_CAST(AT91C_REG *) 0xFFF74010) // (SFR) UTMI Software Reset, and OHCI suspend interrupt control -#define AT91C_SFR_EBIDELAY (AT91C_CAST(AT91C_REG *) 0xFFF7400C) // (SFR) EBI DDR controller clock delay -#define AT91C_SFR_DDRDELAY (AT91C_CAST(AT91C_REG *) 0xFFF74008) // (SFR) DDR2 controller clock delay -#define AT91C_SFR_EMA (AT91C_CAST(AT91C_REG *) 0xFFF74000) // (SFR) memory Extra Margin Adjustment control -// ========== Register definition for SYS peripheral ========== -#define AT91C_SYS_SLCKSEL (AT91C_CAST(AT91C_REG *) 0xFFFFFD50) // (SYS) Slow Clock Selection Register -#define AT91C_SYS_GPBR (AT91C_CAST(AT91C_REG *) 0xFFFFFD60) // (SYS) General Purpose Register -// ========== Register definition for EBI peripheral ========== -#define AT91C_EBI_DUMMY (AT91C_CAST(AT91C_REG *) 0xFFFFE200) // (EBI) Dummy register - Do not use -// ========== Register definition for DDR2CP1 peripheral ========== -#define AT91C_DDR2CP1_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFE434) // (DDR2CP1) Pad delay2 Register -#define AT91C_DDR2CP1_T3PR (AT91C_CAST(AT91C_REG *) 0xFFFFE418) // (DDR2CP1) Timing3 Register -#define AT91C_DDR2CP1_RTR (AT91C_CAST(AT91C_REG *) 0xFFFFE404) // (DDR2CP1) Refresh Timer Register -#define AT91C_DDR2CP1_T0PR (AT91C_CAST(AT91C_REG *) 0xFFFFE40C) // (DDR2CP1) Timing0 Register -#define AT91C_DDR2CP1_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFFE4E8) // (DDR2CP1) High Speed Register -#define AT91C_DDR2CP1_DELAY8 (AT91C_CAST(AT91C_REG *) 0xFFFFE44C) // (DDR2CP1) Pad delay8 Register -#define AT91C_DDR2CP1_LPR (AT91C_CAST(AT91C_REG *) 0xFFFFE41C) // (DDR2CP1) Low-power Register -#define AT91C_DDR2CP1_VER (AT91C_CAST(AT91C_REG *) 0xFFFFE428) // (DDR2CP1) DLL Version Register -#define AT91C_DDR2CP1_DELAY7 (AT91C_CAST(AT91C_REG *) 0xFFFFE448) // (DDR2CP1) Pad delay7 Register -#define AT91C_DDR2CP1_CR (AT91C_CAST(AT91C_REG *) 0xFFFFE408) // (DDR2CP1) Configuration Register -#define AT91C_DDR2CP1_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFFE4E4) // (DDR2CP1) High Speed Register -#define AT91C_DDR2CP1_MR (AT91C_CAST(AT91C_REG *) 0xFFFFE400) // (DDR2CP1) Mode Register -#define AT91C_DDR2CP1_DELAY5 (AT91C_CAST(AT91C_REG *) 0xFFFFE440) // (DDR2CP1) Pad delay5 Register -#define AT91C_DDR2CP1_T2PR (AT91C_CAST(AT91C_REG *) 0xFFFFE414) // (DDR2CP1) Timing2 Register -#define AT91C_DDR2CP1_HS (AT91C_CAST(AT91C_REG *) 0xFFFFE42C) // (DDR2CP1) High Speed Register -#define AT91C_DDR2CP1_MDR (AT91C_CAST(AT91C_REG *) 0xFFFFE420) // (DDR2CP1) Memory Device Register -#define AT91C_DDR2CP1_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFE43C) // (DDR2CP1) Pad delay4 Register -#define AT91C_DDR2CP1_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFE430) // (DDR2CP1) Pad delay1 Register -#define AT91C_DDR2CP1_DELAY6 (AT91C_CAST(AT91C_REG *) 0xFFFFE444) // (DDR2CP1) Pad delay6 Register -#define AT91C_DDR2CP1_DLL (AT91C_CAST(AT91C_REG *) 0xFFFFE424) // (DDR2CP1) DLL Information Register -#define AT91C_DDR2CP1_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFE438) // (DDR2CP1) Pad delay3 Register -#define AT91C_DDR2CP1_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFE4FC) // (DDR2CP1) Version Register -#define AT91C_DDR2CP1_T1PR (AT91C_CAST(AT91C_REG *) 0xFFFFE410) // (DDR2CP1) Timing1 Register -// ========== Register definition for DDR2C peripheral ========== -#define AT91C_DDR2C_DELAY8 (AT91C_CAST(AT91C_REG *) 0xFFFFE64C) // (DDR2C) Pad delay8 Register -#define AT91C_DDR2C_VER (AT91C_CAST(AT91C_REG *) 0xFFFFE628) // (DDR2C) DLL Version Register -#define AT91C_DDR2C_RTR (AT91C_CAST(AT91C_REG *) 0xFFFFE604) // (DDR2C) Refresh Timer Register -#define AT91C_DDR2C_T0PR (AT91C_CAST(AT91C_REG *) 0xFFFFE60C) // (DDR2C) Timing0 Register -#define AT91C_DDR2C_DELAY5 (AT91C_CAST(AT91C_REG *) 0xFFFFE640) // (DDR2C) Pad delay5 Register -#define AT91C_DDR2C_LPR (AT91C_CAST(AT91C_REG *) 0xFFFFE61C) // (DDR2C) Low-power Register -#define AT91C_DDR2C_HS (AT91C_CAST(AT91C_REG *) 0xFFFFE62C) // (DDR2C) High Speed Register -#define AT91C_DDR2C_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFE634) // (DDR2C) Pad delay2 Register -#define AT91C_DDR2C_T2PR (AT91C_CAST(AT91C_REG *) 0xFFFFE614) // (DDR2C) Timing2 Register -#define AT91C_DDR2C_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFE630) // (DDR2C) Pad delay1 Register -#define AT91C_DDR2C_T1PR (AT91C_CAST(AT91C_REG *) 0xFFFFE610) // (DDR2C) Timing1 Register -#define AT91C_DDR2C_MDR (AT91C_CAST(AT91C_REG *) 0xFFFFE620) // (DDR2C) Memory Device Register -#define AT91C_DDR2C_DELAY6 (AT91C_CAST(AT91C_REG *) 0xFFFFE644) // (DDR2C) Pad delay6 Register -#define AT91C_DDR2C_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFE6FC) // (DDR2C) Version Register -#define AT91C_DDR2C_MR (AT91C_CAST(AT91C_REG *) 0xFFFFE600) // (DDR2C) Mode Register -#define AT91C_DDR2C_DLL (AT91C_CAST(AT91C_REG *) 0xFFFFE624) // (DDR2C) DLL Information Register -#define AT91C_DDR2C_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFE63C) // (DDR2C) Pad delay4 Register -#define AT91C_DDR2C_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFFE6E4) // (DDR2C) High Speed Register -#define AT91C_DDR2C_CR (AT91C_CAST(AT91C_REG *) 0xFFFFE608) // (DDR2C) Configuration Register -#define AT91C_DDR2C_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFE638) // (DDR2C) Pad delay3 Register -#define AT91C_DDR2C_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFFE6E8) // (DDR2C) High Speed Register -#define AT91C_DDR2C_DELAY7 (AT91C_CAST(AT91C_REG *) 0xFFFFE648) // (DDR2C) Pad delay7 Register -#define AT91C_DDR2C_T3PR (AT91C_CAST(AT91C_REG *) 0xFFFFE618) // (DDR2C) Timing3 Register -// ========== Register definition for SMC peripheral ========== -#define AT91C_SMC_PULSE7 (AT91C_CAST(AT91C_REG *) 0xFFFFE874) // (SMC) Pulse Register for CS 7 -#define AT91C_SMC_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFE8C0) // (SMC) SMC Delay Control Register -#define AT91C_SMC_CYCLE2 (AT91C_CAST(AT91C_REG *) 0xFFFFE828) // (SMC) Cycle Register for CS 2 -#define AT91C_SMC_DELAY5 (AT91C_CAST(AT91C_REG *) 0xFFFFE8D0) // (SMC) SMC Delay Control Register -#define AT91C_SMC_DELAY6 (AT91C_CAST(AT91C_REG *) 0xFFFFE8D4) // (SMC) SMC Delay Control Register -#define AT91C_SMC_PULSE2 (AT91C_CAST(AT91C_REG *) 0xFFFFE824) // (SMC) Pulse Register for CS 2 -#define AT91C_SMC_SETUP6 (AT91C_CAST(AT91C_REG *) 0xFFFFE860) // (SMC) Setup Register for CS 6 -#define AT91C_SMC_SETUP5 (AT91C_CAST(AT91C_REG *) 0xFFFFE850) // (SMC) Setup Register for CS 5 -#define AT91C_SMC_CYCLE6 (AT91C_CAST(AT91C_REG *) 0xFFFFE868) // (SMC) Cycle Register for CS 6 -#define AT91C_SMC_PULSE6 (AT91C_CAST(AT91C_REG *) 0xFFFFE864) // (SMC) Pulse Register for CS 6 -#define AT91C_SMC_CTRL5 (AT91C_CAST(AT91C_REG *) 0xFFFFE85C) // (SMC) Control Register for CS 5 -#define AT91C_SMC_CTRL3 (AT91C_CAST(AT91C_REG *) 0xFFFFE83C) // (SMC) Control Register for CS 3 -#define AT91C_SMC_DELAY7 (AT91C_CAST(AT91C_REG *) 0xFFFFE8D8) // (SMC) SMC Delay Control Register -#define AT91C_SMC_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFE8C8) // (SMC) SMC Delay Control Register -#define AT91C_SMC_CYCLE0 (AT91C_CAST(AT91C_REG *) 0xFFFFE808) // (SMC) Cycle Register for CS 0 -#define AT91C_SMC_SETUP1 (AT91C_CAST(AT91C_REG *) 0xFFFFE810) // (SMC) Setup Register for CS 1 -#define AT91C_SMC_PULSE5 (AT91C_CAST(AT91C_REG *) 0xFFFFE854) // (SMC) Pulse Register for CS 5 -#define AT91C_SMC_SETUP7 (AT91C_CAST(AT91C_REG *) 0xFFFFE870) // (SMC) Setup Register for CS 7 -#define AT91C_SMC_CTRL4 (AT91C_CAST(AT91C_REG *) 0xFFFFE84C) // (SMC) Control Register for CS 4 -#define AT91C_SMC_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFE8C4) // (SMC) SMC Delay Control Register -#define AT91C_SMC_PULSE3 (AT91C_CAST(AT91C_REG *) 0xFFFFE834) // (SMC) Pulse Register for CS 3 -#define AT91C_SMC_CYCLE4 (AT91C_CAST(AT91C_REG *) 0xFFFFE848) // (SMC) Cycle Register for CS 4 -#define AT91C_SMC_CTRL1 (AT91C_CAST(AT91C_REG *) 0xFFFFE81C) // (SMC) Control Register for CS 1 -#define AT91C_SMC_SETUP3 (AT91C_CAST(AT91C_REG *) 0xFFFFE830) // (SMC) Setup Register for CS 3 -#define AT91C_SMC_CTRL0 (AT91C_CAST(AT91C_REG *) 0xFFFFE80C) // (SMC) Control Register for CS 0 -#define AT91C_SMC_CYCLE7 (AT91C_CAST(AT91C_REG *) 0xFFFFE878) // (SMC) Cycle Register for CS 7 -#define AT91C_SMC_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFE8CC) // (SMC) SMC Delay Control Register -#define AT91C_SMC_CYCLE1 (AT91C_CAST(AT91C_REG *) 0xFFFFE818) // (SMC) Cycle Register for CS 1 -#define AT91C_SMC_SETUP2 (AT91C_CAST(AT91C_REG *) 0xFFFFE820) // (SMC) Setup Register for CS 2 -#define AT91C_SMC_PULSE1 (AT91C_CAST(AT91C_REG *) 0xFFFFE814) // (SMC) Pulse Register for CS 1 -#define AT91C_SMC_DELAY8 (AT91C_CAST(AT91C_REG *) 0xFFFFE8DC) // (SMC) SMC Delay Control Register -#define AT91C_SMC_CTRL2 (AT91C_CAST(AT91C_REG *) 0xFFFFE82C) // (SMC) Control Register for CS 2 -#define AT91C_SMC_PULSE4 (AT91C_CAST(AT91C_REG *) 0xFFFFE844) // (SMC) Pulse Register for CS 4 -#define AT91C_SMC_SETUP4 (AT91C_CAST(AT91C_REG *) 0xFFFFE840) // (SMC) Setup Register for CS 4 -#define AT91C_SMC_CYCLE3 (AT91C_CAST(AT91C_REG *) 0xFFFFE838) // (SMC) Cycle Register for CS 3 -#define AT91C_SMC_SETUP0 (AT91C_CAST(AT91C_REG *) 0xFFFFE800) // (SMC) Setup Register for CS 0 -#define AT91C_SMC_CYCLE5 (AT91C_CAST(AT91C_REG *) 0xFFFFE858) // (SMC) Cycle Register for CS 5 -#define AT91C_SMC_PULSE0 (AT91C_CAST(AT91C_REG *) 0xFFFFE804) // (SMC) Pulse Register for CS 0 -#define AT91C_SMC_CTRL6 (AT91C_CAST(AT91C_REG *) 0xFFFFE86C) // (SMC) Control Register for CS 6 -#define AT91C_SMC_CTRL7 (AT91C_CAST(AT91C_REG *) 0xFFFFE87C) // (SMC) Control Register for CS 7 -// ========== Register definition for MATRIX peripheral ========== -#define AT91C_MATRIX_SCFG1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA44) // (MATRIX) Slave Configuration Register 1 : SRAM S1 -#define AT91C_MATRIX_MRCR (AT91C_CAST(AT91C_REG *) 0xFFFFEB00) // (MATRIX) Master Remap Control Register -#define AT91C_MATRIX_PRAS2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA90) // (MATRIX) PRAS2 : SRAM S2 -#define AT91C_MATRIX_PRAS1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA88) // (MATRIX) PRAS1 : SRAM S1 -#define AT91C_MATRIX_PRAS0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA80) // (MATRIX) PRAS0 : SRAM S0 -#define AT91C_MATRIX_MCFG8 (AT91C_CAST(AT91C_REG *) 0xFFFFEA20) // (MATRIX) Master Configuration Register 8 : eMAC -#define AT91C_MATRIX_MCFG2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA08) // (MATRIX) Master Configuration Register 2 : pdc -#define AT91C_MATRIX_EBICSA (AT91C_CAST(AT91C_REG *) 0xFFFFEB28) // (MATRIX) EBI Chip Select Assignment Register -#define AT91C_MATRIX_PRAS4 (AT91C_CAST(AT91C_REG *) 0xFFFFEAA0) // (MATRIX) PRAS4 : ROM + USB Dev + USB EHCI + USB OHCI + LCD + Video Decoder -#define AT91C_MATRIX_MCFG3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA0C) // (MATRIX) Master Configuration Register 3 : USB Host OHCI -#define AT91C_MATRIX_SCFG0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA40) // (MATRIX) Slave Configuration Register 0 : SRAM S0 -#define AT91C_MATRIX_MCFG7 (AT91C_CAST(AT91C_REG *) 0xFFFFEA1C) // (MATRIX) Master Configuration Register 7 : lcdc -#define AT91C_MATRIX_PRAS6 (AT91C_CAST(AT91C_REG *) 0xFFFFEAB0) // (MATRIX) PRAS6 : DDR2 S1 -#define AT91C_MATRIX_SCFG7 (AT91C_CAST(AT91C_REG *) 0xFFFFEA5C) // (MATRIX) Slave Configuration Register 7 : DDR2 S2 -#define AT91C_MATRIX_PRAS7 (AT91C_CAST(AT91C_REG *) 0xFFFFEAB8) // (MATRIX) PRAS7 : DDR2 S2 -#define AT91C_MATRIX_SCFG2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA48) // (MATRIX) Slave Configuration Register 2 : SRAM S2 -#define AT91C_MATRIX_WRPROTST (AT91C_CAST(AT91C_REG *) 0xFFFFEBE8) // (MATRIX) Write Protection Status Register -#define AT91C_MATRIX_PRBS0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA84) // (MATRIX) PRBS0 : SRAM S0 -#define AT91C_MATRIX_PRBS2 (AT91C_CAST(AT91C_REG *) 0xFFFFEA94) // (MATRIX) PRBS2 : SRAM S2 -#define AT91C_MATRIX_MCFG4 (AT91C_CAST(AT91C_REG *) 0xFFFFEA10) // (MATRIX) Master Configuration Register 4 : DMA0 -#define AT91C_MATRIX_SCFG5 (AT91C_CAST(AT91C_REG *) 0xFFFFEA54) // (MATRIX) Slave Configuration Register 5 : DDR2 S0 -#define AT91C_MATRIX_PRBS6 (AT91C_CAST(AT91C_REG *) 0xFFFFEAB4) // (MATRIX) PRBS6 : DDR2 S1 -#define AT91C_MATRIX_MCFG1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA04) // (MATRIX) Master Configuration Register 1 ; ARM-D -#define AT91C_MATRIX_SCFG6 (AT91C_CAST(AT91C_REG *) 0xFFFFEA58) // (MATRIX) Slave Configuration Register 6 : DDR2 S1 -#define AT91C_MATRIX_SCFG4 (AT91C_CAST(AT91C_REG *) 0xFFFFEA50) // (MATRIX) Slave Configuration Register 4 ; ROM + USB Dev + USB EHCI + USB OHCI + LCD + Video Decoder -#define AT91C_MATRIX_PRBS1 (AT91C_CAST(AT91C_REG *) 0xFFFFEA8C) // (MATRIX) PRBS1 : SRAM S1 -#define AT91C_MATRIX_PRBS3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA9C) // (MATRIX) PRBS3 : SRAM S3 -#define AT91C_MATRIX_WRPROTEN (AT91C_CAST(AT91C_REG *) 0xFFFFEBE4) // (MATRIX) Write Protection Control Register -#define AT91C_MATRIX_TCMR (AT91C_CAST(AT91C_REG *) 0xFFFFEB10) // (MATRIX) Bus Matrix TCM Configuration Register -#define AT91C_MATRIX_MCFG0 (AT91C_CAST(AT91C_REG *) 0xFFFFEA00) // (MATRIX) Master Configuration Register 0 : ARM-I -#define AT91C_MATRIX_PRAS5 (AT91C_CAST(AT91C_REG *) 0xFFFFEAA8) // (MATRIX) PRAS5 : DDR2 S0 -#define AT91C_MATRIX_DDRMPR (AT91C_CAST(AT91C_REG *) 0xFFFFEB18) // (MATRIX) DDR Multi-Port Register -#define AT91C_MATRIX_PRBS4 (AT91C_CAST(AT91C_REG *) 0xFFFFEAA4) // (MATRIX) PRBS4 : ROM + USB Dev + USB EHCI + USB OHCI + LCD + Video Decoder -#define AT91C_MATRIX_MCFG6 (AT91C_CAST(AT91C_REG *) 0xFFFFEA18) // (MATRIX) Master Configuration Register 6 : hisi -#define AT91C_MATRIX_PRBS5 (AT91C_CAST(AT91C_REG *) 0xFFFFEAAC) // (MATRIX) PRBS5 : DDR2 S0 -#define AT91C_MATRIX_MCFG9 (AT91C_CAST(AT91C_REG *) 0xFFFFEA24) // (MATRIX) Master Configuration Register 9 : USB Device -#define AT91C_MATRIX_MCFG5 (AT91C_CAST(AT91C_REG *) 0xFFFFEA14) // (MATRIX) Master Configuration Register 5 : DMA1 -#define AT91C_MATRIX_PRBS7 (AT91C_CAST(AT91C_REG *) 0xFFFFEABC) // (MATRIX) PRBS7 : DDR2 S2 -#define AT91C_MATRIX_MCFG10 (AT91C_CAST(AT91C_REG *) 0xFFFFEA28) // (MATRIX) Master Configuration Register 10 : USB Host EHCI -#define AT91C_MATRIX_PRAS3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA98) // (MATRIX) PRAS3 : SRAM S3 -#define AT91C_MATRIX_SCFG3 (AT91C_CAST(AT91C_REG *) 0xFFFFEA4C) // (MATRIX) Slave Configuration Register 3 : SRAM S3 -// ========== Register definition for AIC peripheral ========== -#define AT91C_AIC_IVR (AT91C_CAST(AT91C_REG *) 0xFFFFF100) // (AIC) IRQ Vector Register -#define AT91C_AIC_SMR (AT91C_CAST(AT91C_REG *) 0xFFFFF000) // (AIC) Source Mode Register -#define AT91C_AIC_FVR (AT91C_CAST(AT91C_REG *) 0xFFFFF104) // (AIC) FIQ Vector Register -#define AT91C_AIC_DCR (AT91C_CAST(AT91C_REG *) 0xFFFFF138) // (AIC) Debug Control Register (Protect) -#define AT91C_AIC_EOICR (AT91C_CAST(AT91C_REG *) 0xFFFFF130) // (AIC) End of Interrupt Command Register -#define AT91C_AIC_SVR (AT91C_CAST(AT91C_REG *) 0xFFFFF080) // (AIC) Source Vector Register -#define AT91C_AIC_FFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF148) // (AIC) Fast Forcing Status Register -#define AT91C_AIC_ICCR (AT91C_CAST(AT91C_REG *) 0xFFFFF128) // (AIC) Interrupt Clear Command Register -#define AT91C_AIC_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF108) // (AIC) Interrupt Status Register -#define AT91C_AIC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF110) // (AIC) Interrupt Mask Register -#define AT91C_AIC_IPR (AT91C_CAST(AT91C_REG *) 0xFFFFF10C) // (AIC) Interrupt Pending Register -#define AT91C_AIC_FFER (AT91C_CAST(AT91C_REG *) 0xFFFFF140) // (AIC) Fast Forcing Enable Register -#define AT91C_AIC_IECR (AT91C_CAST(AT91C_REG *) 0xFFFFF120) // (AIC) Interrupt Enable Command Register -#define AT91C_AIC_ISCR (AT91C_CAST(AT91C_REG *) 0xFFFFF12C) // (AIC) Interrupt Set Command Register -#define AT91C_AIC_FFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF144) // (AIC) Fast Forcing Disable Register -#define AT91C_AIC_CISR (AT91C_CAST(AT91C_REG *) 0xFFFFF114) // (AIC) Core Interrupt Status Register -#define AT91C_AIC_IDCR (AT91C_CAST(AT91C_REG *) 0xFFFFF124) // (AIC) Interrupt Disable Command Register -#define AT91C_AIC_SPU (AT91C_CAST(AT91C_REG *) 0xFFFFF134) // (AIC) Spurious Vector Register -// ========== Register definition for PDC_DBGU peripheral ========== -#define AT91C_DBGU_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF20) // (PDC_DBGU) PDC Transfer Control Register -#define AT91C_DBGU_RCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF04) // (PDC_DBGU) Receive Counter Register -#define AT91C_DBGU_TCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF0C) // (PDC_DBGU) Transmit Counter Register -#define AT91C_DBGU_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF14) // (PDC_DBGU) Receive Next Counter Register -#define AT91C_DBGU_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF18) // (PDC_DBGU) Transmit Next Pointer Register -#define AT91C_DBGU_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF10) // (PDC_DBGU) Receive Next Pointer Register -#define AT91C_DBGU_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFFEF24) // (PDC_DBGU) PDC Transfer Status Register -#define AT91C_DBGU_RPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF00) // (PDC_DBGU) Receive Pointer Register -#define AT91C_DBGU_TPR (AT91C_CAST(AT91C_REG *) 0xFFFFEF08) // (PDC_DBGU) Transmit Pointer Register -#define AT91C_DBGU_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFFEF1C) // (PDC_DBGU) Transmit Next Counter Register -// ========== Register definition for DBGU peripheral ========== -#define AT91C_DBGU_BRGR (AT91C_CAST(AT91C_REG *) 0xFFFFEE20) // (DBGU) Baud Rate Generator Register -#define AT91C_DBGU_CR (AT91C_CAST(AT91C_REG *) 0xFFFFEE00) // (DBGU) Control Register -#define AT91C_DBGU_THR (AT91C_CAST(AT91C_REG *) 0xFFFFEE1C) // (DBGU) Transmitter Holding Register -#define AT91C_DBGU_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFEE0C) // (DBGU) Interrupt Disable Register -#define AT91C_DBGU_EXID (AT91C_CAST(AT91C_REG *) 0xFFFFEE44) // (DBGU) Chip ID Extension Register -#define AT91C_DBGU_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFEE10) // (DBGU) Interrupt Mask Register -#define AT91C_DBGU_FNTR (AT91C_CAST(AT91C_REG *) 0xFFFFEE48) // (DBGU) Force NTRST Register -#define AT91C_DBGU_IER (AT91C_CAST(AT91C_REG *) 0xFFFFEE08) // (DBGU) Interrupt Enable Register -#define AT91C_DBGU_CSR (AT91C_CAST(AT91C_REG *) 0xFFFFEE14) // (DBGU) Channel Status Register -#define AT91C_DBGU_MR (AT91C_CAST(AT91C_REG *) 0xFFFFEE04) // (DBGU) Mode Register -#define AT91C_DBGU_RHR (AT91C_CAST(AT91C_REG *) 0xFFFFEE18) // (DBGU) Receiver Holding Register -#define AT91C_DBGU_CIDR (AT91C_CAST(AT91C_REG *) 0xFFFFEE40) // (DBGU) Chip ID Register -// ========== Register definition for PIOA peripheral ========== -#define AT91C_PIOA_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF2A4) // (PIOA) Output Write Disable Register -#define AT91C_PIOA_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF2C8) // (PIOA) PIO Delay Control Register -#define AT91C_PIOA_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF24C) // (PIOA) Interrupt Status Register -#define AT91C_PIOA_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF204) // (PIOA) PIO Disable Register -#define AT91C_PIOA_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF218) // (PIOA) Output Status Register -#define AT91C_PIOA_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF278) // (PIOA) AB Select Status Register -#define AT91C_PIOA_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF2C4) // (PIOA) PIO Delay Control Register -#define AT91C_PIOA_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF23C) // (PIOA) Pin Data Status Register -#define AT91C_PIOA_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF274) // (PIOA) Select B Register -#define AT91C_PIOA_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF2C0) // (PIOA) PIO Delay Control Register -#define AT91C_PIOA_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF264) // (PIOA) Pull-up Enable Register -#define AT91C_PIOA_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF210) // (PIOA) Output Enable Register -#define AT91C_PIOA_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF200) // (PIOA) PIO Enable Register -#define AT91C_PIOA_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF2FC) // (PIOA) PIO Version Register -#define AT91C_PIOA_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF260) // (PIOA) Pull-up Disable Register -#define AT91C_PIOA_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF238) // (PIOA) Output Data Status Register -#define AT91C_PIOA_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF2B0) // (PIOA) PIO Slewrate Control Register -#define AT91C_PIOA_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF254) // (PIOA) Multi-driver Disable Register -#define AT91C_PIOA_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF228) // (PIOA) Input Filter Status Register -#define AT91C_PIOA_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF234) // (PIOA) Clear Output Data Register -#define AT91C_PIOA_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF270) // (PIOA) Select A Register -#define AT91C_PIOA_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF2A8) // (PIOA) Output Write Status Register -#define AT91C_PIOA_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF248) // (PIOA) Interrupt Mask Register -#define AT91C_PIOA_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF268) // (PIOA) Pull-up Status Register -#define AT91C_PIOA_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF250) // (PIOA) Multi-driver Enable Register -#define AT91C_PIOA_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF224) // (PIOA) Input Filter Disable Register -#define AT91C_PIOA_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF230) // (PIOA) Set Output Data Register -#define AT91C_PIOA_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF2A0) // (PIOA) Output Write Enable Register -#define AT91C_PIOA_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF244) // (PIOA) Interrupt Disable Register -#define AT91C_PIOA_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF220) // (PIOA) Input Filter Enable Register -#define AT91C_PIOA_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF240) // (PIOA) Interrupt Enable Register -#define AT91C_PIOA_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF214) // (PIOA) Output Disable Registerr -#define AT91C_PIOA_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF258) // (PIOA) Multi-driver Status Register -#define AT91C_PIOA_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF2CC) // (PIOA) PIO Delay Control Register -#define AT91C_PIOA_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF208) // (PIOA) PIO Status Register -// ========== Register definition for PIOB peripheral ========== -#define AT91C_PIOB_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF414) // (PIOB) Output Disable Registerr -#define AT91C_PIOB_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF4CC) // (PIOB) PIO Delay Control Register -#define AT91C_PIOB_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF430) // (PIOB) Set Output Data Register -#define AT91C_PIOB_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF44C) // (PIOB) Interrupt Status Register -#define AT91C_PIOB_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF478) // (PIOB) AB Select Status Register -#define AT91C_PIOB_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF448) // (PIOB) Interrupt Mask Register -#define AT91C_PIOB_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF458) // (PIOB) Multi-driver Status Register -#define AT91C_PIOB_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF468) // (PIOB) Pull-up Status Register -#define AT91C_PIOB_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF43C) // (PIOB) Pin Data Status Register -#define AT91C_PIOB_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF4C8) // (PIOB) PIO Delay Control Register -#define AT91C_PIOB_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF454) // (PIOB) Multi-driver Disable Register -#define AT91C_PIOB_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF434) // (PIOB) Clear Output Data Register -#define AT91C_PIOB_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF450) // (PIOB) Multi-driver Enable Register -#define AT91C_PIOB_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF404) // (PIOB) PIO Disable Register -#define AT91C_PIOB_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF428) // (PIOB) Input Filter Status Register -#define AT91C_PIOB_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF408) // (PIOB) PIO Status Register -#define AT91C_PIOB_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF4B0) // (PIOB) PIO Slewrate Control Register -#define AT91C_PIOB_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF440) // (PIOB) Interrupt Enable Register -#define AT91C_PIOB_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF460) // (PIOB) Pull-up Disable Register -#define AT91C_PIOB_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF400) // (PIOB) PIO Enable Register -#define AT91C_PIOB_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF424) // (PIOB) Input Filter Disable Register -#define AT91C_PIOB_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF444) // (PIOB) Interrupt Disable Register -#define AT91C_PIOB_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF4A4) // (PIOB) Output Write Disable Register -#define AT91C_PIOB_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF438) // (PIOB) Output Data Status Register -#define AT91C_PIOB_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF4C4) // (PIOB) PIO Delay Control Register -#define AT91C_PIOB_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF4A8) // (PIOB) Output Write Status Register -#define AT91C_PIOB_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF474) // (PIOB) Select B Register -#define AT91C_PIOB_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF420) // (PIOB) Input Filter Enable Register -#define AT91C_PIOB_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF4A0) // (PIOB) Output Write Enable Register -#define AT91C_PIOB_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF464) // (PIOB) Pull-up Enable Register -#define AT91C_PIOB_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF418) // (PIOB) Output Status Register -#define AT91C_PIOB_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF470) // (PIOB) Select A Register -#define AT91C_PIOB_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF410) // (PIOB) Output Enable Register -#define AT91C_PIOB_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF4FC) // (PIOB) PIO Version Register -#define AT91C_PIOB_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF4C0) // (PIOB) PIO Delay Control Register -// ========== Register definition for PIOC peripheral ========== -#define AT91C_PIOC_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF6A4) // (PIOC) Output Write Disable Register -#define AT91C_PIOC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF648) // (PIOC) Interrupt Mask Register -#define AT91C_PIOC_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF670) // (PIOC) Select A Register -#define AT91C_PIOC_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF660) // (PIOC) Pull-up Disable Register -#define AT91C_PIOC_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF634) // (PIOC) Clear Output Data Register -#define AT91C_PIOC_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF6A0) // (PIOC) Output Write Enable Register -#define AT91C_PIOC_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF678) // (PIOC) AB Select Status Register -#define AT91C_PIOC_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF624) // (PIOC) Input Filter Disable Register -#define AT91C_PIOC_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF6FC) // (PIOC) PIO Version Register -#define AT91C_PIOC_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF614) // (PIOC) Output Disable Registerr -#define AT91C_PIOC_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF664) // (PIOC) Pull-up Enable Register -#define AT91C_PIOC_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF630) // (PIOC) Set Output Data Register -#define AT91C_PIOC_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF64C) // (PIOC) Interrupt Status Register -#define AT91C_PIOC_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF618) // (PIOC) Output Status Register -#define AT91C_PIOC_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF658) // (PIOC) Multi-driver Status Register -#define AT91C_PIOC_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF620) // (PIOC) Input Filter Enable Register -#define AT91C_PIOC_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF6C4) // (PIOC) PIO Delay Control Register -#define AT91C_PIOC_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF650) // (PIOC) Multi-driver Enable Register -#define AT91C_PIOC_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF668) // (PIOC) Pull-up Status Register -#define AT91C_PIOC_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF608) // (PIOC) PIO Status Register -#define AT91C_PIOC_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF6CC) // (PIOC) PIO Delay Control Register -#define AT91C_PIOC_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF6C8) // (PIOC) PIO Delay Control Register -#define AT91C_PIOC_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF640) // (PIOC) Interrupt Enable Register -#define AT91C_PIOC_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF6B0) // (PIOC) PIO Slewrate Control Register -#define AT91C_PIOC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF644) // (PIOC) Interrupt Disable Register -#define AT91C_PIOC_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF63C) // (PIOC) Pin Data Status Register -#define AT91C_PIOC_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF6C0) // (PIOC) PIO Delay Control Register -#define AT91C_PIOC_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF604) // (PIOC) PIO Disable Register -#define AT91C_PIOC_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF6A8) // (PIOC) Output Write Status Register -#define AT91C_PIOC_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF628) // (PIOC) Input Filter Status Register -#define AT91C_PIOC_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF638) // (PIOC) Output Data Status Register -#define AT91C_PIOC_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF610) // (PIOC) Output Enable Register -#define AT91C_PIOC_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF654) // (PIOC) Multi-driver Disable Register -#define AT91C_PIOC_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF674) // (PIOC) Select B Register -#define AT91C_PIOC_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF600) // (PIOC) PIO Enable Register -// ========== Register definition for PIOD peripheral ========== -#define AT91C_PIOD_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFF8C0) // (PIOD) PIO Delay Control Register -#define AT91C_PIOD_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFF8A4) // (PIOD) Output Write Disable Register -#define AT91C_PIOD_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFF830) // (PIOD) Set Output Data Register -#define AT91C_PIOD_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFF864) // (PIOD) Pull-up Enable Register -#define AT91C_PIOD_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFF834) // (PIOD) Clear Output Data Register -#define AT91C_PIOD_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFF8CC) // (PIOD) PIO Delay Control Register -#define AT91C_PIOD_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFF808) // (PIOD) PIO Status Register -#define AT91C_PIOD_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFF804) // (PIOD) PIO Disable Register -#define AT91C_PIOD_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFF814) // (PIOD) Output Disable Registerr -#define AT91C_PIOD_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFF868) // (PIOD) Pull-up Status Register -#define AT91C_PIOD_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFF828) // (PIOD) Input Filter Status Register -#define AT91C_PIOD_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFF848) // (PIOD) Interrupt Mask Register -#define AT91C_PIOD_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFF870) // (PIOD) Select A Register -#define AT91C_PIOD_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFF8C4) // (PIOD) PIO Delay Control Register -#define AT91C_PIOD_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFF8A8) // (PIOD) Output Write Status Register -#define AT91C_PIOD_PER (AT91C_CAST(AT91C_REG *) 0xFFFFF800) // (PIOD) PIO Enable Register -#define AT91C_PIOD_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFF850) // (PIOD) Multi-driver Enable Register -#define AT91C_PIOD_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF83C) // (PIOD) Pin Data Status Register -#define AT91C_PIOD_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFF858) // (PIOD) Multi-driver Status Register -#define AT91C_PIOD_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFF8A0) // (PIOD) Output Write Enable Register -#define AT91C_PIOD_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFF874) // (PIOD) Select B Register -#define AT91C_PIOD_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFF824) // (PIOD) Input Filter Disable Register -#define AT91C_PIOD_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFF8C8) // (PIOD) PIO Delay Control Register -#define AT91C_PIOD_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFF878) // (PIOD) AB Select Status Register -#define AT91C_PIOD_OER (AT91C_CAST(AT91C_REG *) 0xFFFFF810) // (PIOD) Output Enable Register -#define AT91C_PIOD_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFF854) // (PIOD) Multi-driver Disable Register -#define AT91C_PIOD_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFF844) // (PIOD) Interrupt Disable Register -#define AT91C_PIOD_IER (AT91C_CAST(AT91C_REG *) 0xFFFFF840) // (PIOD) Interrupt Enable Register -#define AT91C_PIOD_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFF860) // (PIOD) Pull-up Disable Register -#define AT91C_PIOD_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFF8FC) // (PIOD) PIO Version Register -#define AT91C_PIOD_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFF84C) // (PIOD) Interrupt Status Register -#define AT91C_PIOD_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFF838) // (PIOD) Output Data Status Register -#define AT91C_PIOD_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFF818) // (PIOD) Output Status Register -#define AT91C_PIOD_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFF820) // (PIOD) Input Filter Enable Register -#define AT91C_PIOD_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFF8B0) // (PIOD) PIO Slewrate Control Register -// ========== Register definition for PIOE peripheral ========== -#define AT91C_PIOE_ODSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA38) // (PIOE) Output Data Status Register -#define AT91C_PIOE_ABSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA78) // (PIOE) AB Select Status Register -#define AT91C_PIOE_PSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA08) // (PIOE) PIO Status Register -#define AT91C_PIOE_PPUDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA60) // (PIOE) Pull-up Disable Register -#define AT91C_PIOE_OER (AT91C_CAST(AT91C_REG *) 0xFFFFFA10) // (PIOE) Output Enable Register -#define AT91C_PIOE_IFSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA28) // (PIOE) Input Filter Status Register -#define AT91C_PIOE_IFER (AT91C_CAST(AT91C_REG *) 0xFFFFFA20) // (PIOE) Input Filter Enable Register -#define AT91C_PIOE_DELAY3 (AT91C_CAST(AT91C_REG *) 0xFFFFFAC8) // (PIOE) PIO Delay Control Register -#define AT91C_PIOE_ODR (AT91C_CAST(AT91C_REG *) 0xFFFFFA14) // (PIOE) Output Disable Registerr -#define AT91C_PIOE_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA44) // (PIOE) Interrupt Disable Register -#define AT91C_PIOE_DELAY1 (AT91C_CAST(AT91C_REG *) 0xFFFFFAC0) // (PIOE) PIO Delay Control Register -#define AT91C_PIOE_OSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA18) // (PIOE) Output Status Register -#define AT91C_PIOE_CODR (AT91C_CAST(AT91C_REG *) 0xFFFFFA34) // (PIOE) Clear Output Data Register -#define AT91C_PIOE_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFFAFC) // (PIOE) PIO Version Register -#define AT91C_PIOE_MDSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA58) // (PIOE) Multi-driver Status Register -#define AT91C_PIOE_PDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA04) // (PIOE) PIO Disable Register -#define AT91C_PIOE_IER (AT91C_CAST(AT91C_REG *) 0xFFFFFA40) // (PIOE) Interrupt Enable Register -#define AT91C_PIOE_OWSR (AT91C_CAST(AT91C_REG *) 0xFFFFFAA8) // (PIOE) Output Write Status Register -#define AT91C_PIOE_BSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA74) // (PIOE) Select B Register -#define AT91C_PIOE_SLEWRATE1 (AT91C_CAST(AT91C_REG *) 0xFFFFFAB0) // (PIOE) PIO Slewrate Control Register -#define AT91C_PIOE_DELAY4 (AT91C_CAST(AT91C_REG *) 0xFFFFFACC) // (PIOE) PIO Delay Control Register -#define AT91C_PIOE_PER (AT91C_CAST(AT91C_REG *) 0xFFFFFA00) // (PIOE) PIO Enable Register -#define AT91C_PIOE_OWDR (AT91C_CAST(AT91C_REG *) 0xFFFFFAA4) // (PIOE) Output Write Disable Register -#define AT91C_PIOE_IFDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA24) // (PIOE) Input Filter Disable Register -#define AT91C_PIOE_PPUSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA68) // (PIOE) Pull-up Status Register -#define AT91C_PIOE_PDSR (AT91C_CAST(AT91C_REG *) 0xFFFFFA3C) // (PIOE) Pin Data Status Register -#define AT91C_PIOE_PPUER (AT91C_CAST(AT91C_REG *) 0xFFFFFA64) // (PIOE) Pull-up Enable Register -#define AT91C_PIOE_MDDR (AT91C_CAST(AT91C_REG *) 0xFFFFFA54) // (PIOE) Multi-driver Disable Register -#define AT91C_PIOE_ISR (AT91C_CAST(AT91C_REG *) 0xFFFFFA4C) // (PIOE) Interrupt Status Register -#define AT91C_PIOE_DELAY2 (AT91C_CAST(AT91C_REG *) 0xFFFFFAC4) // (PIOE) PIO Delay Control Register -#define AT91C_PIOE_SODR (AT91C_CAST(AT91C_REG *) 0xFFFFFA30) // (PIOE) Set Output Data Register -#define AT91C_PIOE_ASR (AT91C_CAST(AT91C_REG *) 0xFFFFFA70) // (PIOE) Select A Register -#define AT91C_PIOE_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFFA48) // (PIOE) Interrupt Mask Register -#define AT91C_PIOE_OWER (AT91C_CAST(AT91C_REG *) 0xFFFFFAA0) // (PIOE) Output Write Enable Register -#define AT91C_PIOE_MDER (AT91C_CAST(AT91C_REG *) 0xFFFFFA50) // (PIOE) Multi-driver Enable Register -// ========== Register definition for PMC peripheral ========== -#define AT91C_PMC_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFFFCEC) // (PMC) -#define AT91C_PMC_PCER (AT91C_CAST(AT91C_REG *) 0xFFFFFC10) // (PMC) Peripheral Clock Enable Register -#define AT91C_PMC_PCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC40) // (PMC) Programmable Clock 0 Register -#define AT91C_PMC_MCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC30) // (PMC) Master Clock Register -#define AT91C_PMC_PLLAR (AT91C_CAST(AT91C_REG *) 0xFFFFFC28) // (PMC) PLL A Register -#define AT91C_PMC_NAME2 (AT91C_CAST(AT91C_REG *) 0xFFFFFCF4) // (PMC) -#define AT91C_PMC_PCDR (AT91C_CAST(AT91C_REG *) 0xFFFFFC14) // (PMC) Peripheral Clock Disable Register -#define AT91C_PMC_SCSR (AT91C_CAST(AT91C_REG *) 0xFFFFFC08) // (PMC) System Clock Status Register -#define AT91C_PMC_MCFR (AT91C_CAST(AT91C_REG *) 0xFFFFFC24) // (PMC) Main Clock Frequency Register -#define AT91C_PMC_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFFFCF8) // (PMC) -#define AT91C_PMC_PLLICPR (AT91C_CAST(AT91C_REG *) 0xFFFFFC80) // (PMC) PLL Charge Pump Current Register -#define AT91C_PMC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFFC6C) // (PMC) Interrupt Mask Register -#define AT91C_PMC_IER (AT91C_CAST(AT91C_REG *) 0xFFFFFC60) // (PMC) Interrupt Enable Register -#define AT91C_PMC_UCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC1C) // (PMC) UTMI Clock Configuration Register -#define AT91C_PMC_USB (AT91C_CAST(AT91C_REG *) 0xFFFFFC38) // (PMC) USB clock register -#define AT91C_PMC_MOR (AT91C_CAST(AT91C_REG *) 0xFFFFFC20) // (PMC) Main Oscillator Register -#define AT91C_PMC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFFC64) // (PMC) Interrupt Disable Register -#define AT91C_PMC_NAME1 (AT91C_CAST(AT91C_REG *) 0xFFFFFCF0) // (PMC) -#define AT91C_PMC_SCDR (AT91C_CAST(AT91C_REG *) 0xFFFFFC04) // (PMC) System Clock Disable Register -#define AT91C_PMC_PCSR (AT91C_CAST(AT91C_REG *) 0xFFFFFC18) // (PMC) Peripheral Clock Status Register -#define AT91C_PMC_SCER (AT91C_CAST(AT91C_REG *) 0xFFFFFC00) // (PMC) System Clock Enable Register -#define AT91C_PMC_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFFFCFC) // (PMC) -#define AT91C_PMC_SR (AT91C_CAST(AT91C_REG *) 0xFFFFFC68) // (PMC) Status Register -// ========== Register definition for CKGR peripheral ========== -#define AT91C_CKGR_MOR (AT91C_CAST(AT91C_REG *) 0xFFFFFC20) // (CKGR) Main Oscillator Register -#define AT91C_CKGR_MCFR (AT91C_CAST(AT91C_REG *) 0xFFFFFC24) // (CKGR) Main Clock Frequency Register -#define AT91C_CKGR_PLLAR (AT91C_CAST(AT91C_REG *) 0xFFFFFC28) // (CKGR) PLL A Register -#define AT91C_CKGR_UCKR (AT91C_CAST(AT91C_REG *) 0xFFFFFC1C) // (CKGR) UTMI Clock Configuration Register -// ========== Register definition for RSTC peripheral ========== -#define AT91C_RSTC_RCR (AT91C_CAST(AT91C_REG *) 0xFFFFFD00) // (RSTC) Reset Control Register -#define AT91C_RSTC_VER (AT91C_CAST(AT91C_REG *) 0xFFFFFDFC) // (RSTC) Version Register -#define AT91C_RSTC_RMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD08) // (RSTC) Reset Mode Register -#define AT91C_RSTC_RSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD04) // (RSTC) Reset Status Register -// ========== Register definition for SHDWC peripheral ========== -#define AT91C_SHDWC_SHSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD18) // (SHDWC) Shut Down Status Register -#define AT91C_SHDWC_SHMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD14) // (SHDWC) Shut Down Mode Register -#define AT91C_SHDWC_SHCR (AT91C_CAST(AT91C_REG *) 0xFFFFFD10) // (SHDWC) Shut Down Control Register -// ========== Register definition for RTTC peripheral ========== -#define AT91C_RTTC_RTSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD2C) // (RTTC) Real-time Status Register -#define AT91C_RTTC_RTMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD20) // (RTTC) Real-time Mode Register -#define AT91C_RTTC_RTVR (AT91C_CAST(AT91C_REG *) 0xFFFFFD28) // (RTTC) Real-time Value Register -#define AT91C_RTTC_RTAR (AT91C_CAST(AT91C_REG *) 0xFFFFFD24) // (RTTC) Real-time Alarm Register -// ========== Register definition for PITC peripheral ========== -#define AT91C_PITC_PIVR (AT91C_CAST(AT91C_REG *) 0xFFFFFD38) // (PITC) Period Interval Value Register -#define AT91C_PITC_PISR (AT91C_CAST(AT91C_REG *) 0xFFFFFD34) // (PITC) Period Interval Status Register -#define AT91C_PITC_PIIR (AT91C_CAST(AT91C_REG *) 0xFFFFFD3C) // (PITC) Period Interval Image Register -#define AT91C_PITC_PIMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD30) // (PITC) Period Interval Mode Register -// ========== Register definition for WDTC peripheral ========== -#define AT91C_WDTC_WDCR (AT91C_CAST(AT91C_REG *) 0xFFFFFD40) // (WDTC) Watchdog Control Register -#define AT91C_WDTC_WDSR (AT91C_CAST(AT91C_REG *) 0xFFFFFD48) // (WDTC) Watchdog Status Register -#define AT91C_WDTC_WDMR (AT91C_CAST(AT91C_REG *) 0xFFFFFD44) // (WDTC) Watchdog Mode Register -// ========== Register definition for RTC peripheral ========== -#define AT91C_RTC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFFFDD4) // (RTC) Interrupt Disable Register -#define AT91C_RTC_SR (AT91C_CAST(AT91C_REG *) 0xFFFFFDC8) // (RTC) Status Register -#define AT91C_RTC_MR (AT91C_CAST(AT91C_REG *) 0xFFFFFDB4) // (RTC) Mode Register -#define AT91C_RTC_IER (AT91C_CAST(AT91C_REG *) 0xFFFFFDD0) // (RTC) Interrupt Enable Register -#define AT91C_RTC_TIMALR (AT91C_CAST(AT91C_REG *) 0xFFFFFDC0) // (RTC) Time Alarm Register -#define AT91C_RTC_CALALR (AT91C_CAST(AT91C_REG *) 0xFFFFFDC4) // (RTC) Calendar Alarm Register -#define AT91C_RTC_CR (AT91C_CAST(AT91C_REG *) 0xFFFFFDB0) // (RTC) Control Register -#define AT91C_RTC_TIMR (AT91C_CAST(AT91C_REG *) 0xFFFFFDB8) // (RTC) Time Register -#define AT91C_RTC_CALR (AT91C_CAST(AT91C_REG *) 0xFFFFFDBC) // (RTC) Calendar Register -#define AT91C_RTC_VER (AT91C_CAST(AT91C_REG *) 0xFFFFFDDC) // (RTC) Valid Entry Register -#define AT91C_RTC_SCCR (AT91C_CAST(AT91C_REG *) 0xFFFFFDCC) // (RTC) Status Clear Command Register -#define AT91C_RTC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFFFDD8) // (RTC) Interrupt Mask Register -// ========== Register definition for TC0 peripheral ========== -#define AT91C_TC0_IER (AT91C_CAST(AT91C_REG *) 0xFFF7C024) // (TC0) Interrupt Enable Register -#define AT91C_TC0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF7C02C) // (TC0) Interrupt Mask Register -#define AT91C_TC0_CCR (AT91C_CAST(AT91C_REG *) 0xFFF7C000) // (TC0) Channel Control Register -#define AT91C_TC0_RB (AT91C_CAST(AT91C_REG *) 0xFFF7C018) // (TC0) Register B -#define AT91C_TC0_CV (AT91C_CAST(AT91C_REG *) 0xFFF7C010) // (TC0) Counter Value -#define AT91C_TC0_SR (AT91C_CAST(AT91C_REG *) 0xFFF7C020) // (TC0) Status Register -#define AT91C_TC0_CMR (AT91C_CAST(AT91C_REG *) 0xFFF7C004) // (TC0) Channel Mode Register (Capture Mode / Waveform Mode) -#define AT91C_TC0_RA (AT91C_CAST(AT91C_REG *) 0xFFF7C014) // (TC0) Register A -#define AT91C_TC0_RC (AT91C_CAST(AT91C_REG *) 0xFFF7C01C) // (TC0) Register C -#define AT91C_TC0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF7C028) // (TC0) Interrupt Disable Register -// ========== Register definition for TC1 peripheral ========== -#define AT91C_TC1_IER (AT91C_CAST(AT91C_REG *) 0xFFF7C064) // (TC1) Interrupt Enable Register -#define AT91C_TC1_SR (AT91C_CAST(AT91C_REG *) 0xFFF7C060) // (TC1) Status Register -#define AT91C_TC1_RC (AT91C_CAST(AT91C_REG *) 0xFFF7C05C) // (TC1) Register C -#define AT91C_TC1_CV (AT91C_CAST(AT91C_REG *) 0xFFF7C050) // (TC1) Counter Value -#define AT91C_TC1_RA (AT91C_CAST(AT91C_REG *) 0xFFF7C054) // (TC1) Register A -#define AT91C_TC1_CMR (AT91C_CAST(AT91C_REG *) 0xFFF7C044) // (TC1) Channel Mode Register (Capture Mode / Waveform Mode) -#define AT91C_TC1_IDR (AT91C_CAST(AT91C_REG *) 0xFFF7C068) // (TC1) Interrupt Disable Register -#define AT91C_TC1_RB (AT91C_CAST(AT91C_REG *) 0xFFF7C058) // (TC1) Register B -#define AT91C_TC1_IMR (AT91C_CAST(AT91C_REG *) 0xFFF7C06C) // (TC1) Interrupt Mask Register -#define AT91C_TC1_CCR (AT91C_CAST(AT91C_REG *) 0xFFF7C040) // (TC1) Channel Control Register -// ========== Register definition for TC2 peripheral ========== -#define AT91C_TC2_SR (AT91C_CAST(AT91C_REG *) 0xFFF7C0A0) // (TC2) Status Register -#define AT91C_TC2_IMR (AT91C_CAST(AT91C_REG *) 0xFFF7C0AC) // (TC2) Interrupt Mask Register -#define AT91C_TC2_IER (AT91C_CAST(AT91C_REG *) 0xFFF7C0A4) // (TC2) Interrupt Enable Register -#define AT91C_TC2_CV (AT91C_CAST(AT91C_REG *) 0xFFF7C090) // (TC2) Counter Value -#define AT91C_TC2_RB (AT91C_CAST(AT91C_REG *) 0xFFF7C098) // (TC2) Register B -#define AT91C_TC2_CCR (AT91C_CAST(AT91C_REG *) 0xFFF7C080) // (TC2) Channel Control Register -#define AT91C_TC2_CMR (AT91C_CAST(AT91C_REG *) 0xFFF7C084) // (TC2) Channel Mode Register (Capture Mode / Waveform Mode) -#define AT91C_TC2_RA (AT91C_CAST(AT91C_REG *) 0xFFF7C094) // (TC2) Register A -#define AT91C_TC2_IDR (AT91C_CAST(AT91C_REG *) 0xFFF7C0A8) // (TC2) Interrupt Disable Register -#define AT91C_TC2_RC (AT91C_CAST(AT91C_REG *) 0xFFF7C09C) // (TC2) Register C -// ========== Register definition for TC3 peripheral ========== -#define AT91C_TC3_SR (AT91C_CAST(AT91C_REG *) 0xFFFD4020) // (TC3) Status Register -#define AT91C_TC3_RC (AT91C_CAST(AT91C_REG *) 0xFFFD401C) // (TC3) Register C -#define AT91C_TC3_IER (AT91C_CAST(AT91C_REG *) 0xFFFD4024) // (TC3) Interrupt Enable Register -#define AT91C_TC3_CV (AT91C_CAST(AT91C_REG *) 0xFFFD4010) // (TC3) Counter Value -#define AT91C_TC3_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD4028) // (TC3) Interrupt Disable Register -#define AT91C_TC3_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD402C) // (TC3) Interrupt Mask Register -#define AT91C_TC3_CMR (AT91C_CAST(AT91C_REG *) 0xFFFD4004) // (TC3) Channel Mode Register (Capture Mode / Waveform Mode) -#define AT91C_TC3_RB (AT91C_CAST(AT91C_REG *) 0xFFFD4018) // (TC3) Register B -#define AT91C_TC3_CCR (AT91C_CAST(AT91C_REG *) 0xFFFD4000) // (TC3) Channel Control Register -#define AT91C_TC3_RA (AT91C_CAST(AT91C_REG *) 0xFFFD4014) // (TC3) Register A -// ========== Register definition for TC4 peripheral ========== -#define AT91C_TC4_CV (AT91C_CAST(AT91C_REG *) 0xFFFD4050) // (TC4) Counter Value -#define AT91C_TC4_RA (AT91C_CAST(AT91C_REG *) 0xFFFD4054) // (TC4) Register A -#define AT91C_TC4_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD4068) // (TC4) Interrupt Disable Register -#define AT91C_TC4_SR (AT91C_CAST(AT91C_REG *) 0xFFFD4060) // (TC4) Status Register -#define AT91C_TC4_CMR (AT91C_CAST(AT91C_REG *) 0xFFFD4044) // (TC4) Channel Mode Register (Capture Mode / Waveform Mode) -#define AT91C_TC4_CCR (AT91C_CAST(AT91C_REG *) 0xFFFD4040) // (TC4) Channel Control Register -#define AT91C_TC4_RB (AT91C_CAST(AT91C_REG *) 0xFFFD4058) // (TC4) Register B -#define AT91C_TC4_RC (AT91C_CAST(AT91C_REG *) 0xFFFD405C) // (TC4) Register C -#define AT91C_TC4_IER (AT91C_CAST(AT91C_REG *) 0xFFFD4064) // (TC4) Interrupt Enable Register -#define AT91C_TC4_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD406C) // (TC4) Interrupt Mask Register -// ========== Register definition for TC5 peripheral ========== -#define AT91C_TC5_IER (AT91C_CAST(AT91C_REG *) 0xFFFD40A4) // (TC5) Interrupt Enable Register -#define AT91C_TC5_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD40A8) // (TC5) Interrupt Disable Register -#define AT91C_TC5_RA (AT91C_CAST(AT91C_REG *) 0xFFFD4094) // (TC5) Register A -#define AT91C_TC5_RB (AT91C_CAST(AT91C_REG *) 0xFFFD4098) // (TC5) Register B -#define AT91C_TC5_CCR (AT91C_CAST(AT91C_REG *) 0xFFFD4080) // (TC5) Channel Control Register -#define AT91C_TC5_SR (AT91C_CAST(AT91C_REG *) 0xFFFD40A0) // (TC5) Status Register -#define AT91C_TC5_CV (AT91C_CAST(AT91C_REG *) 0xFFFD4090) // (TC5) Counter Value -#define AT91C_TC5_RC (AT91C_CAST(AT91C_REG *) 0xFFFD409C) // (TC5) Register C -#define AT91C_TC5_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD40AC) // (TC5) Interrupt Mask Register -#define AT91C_TC5_CMR (AT91C_CAST(AT91C_REG *) 0xFFFD4084) // (TC5) Channel Mode Register (Capture Mode / Waveform Mode) -// ========== Register definition for TCB0 peripheral ========== -#define AT91C_TCB0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF7C0F0) // (TCB0) TC IPNAME1 REGISTER -#define AT91C_TCB0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF7C0F4) // (TCB0) TC IPNAME2 REGISTER -#define AT91C_TCB0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF7C0F8) // (TCB0) TC FEATURES REGISTER -#define AT91C_TCB0_BCR (AT91C_CAST(AT91C_REG *) 0xFFF7C0C0) // (TCB0) TC Block Control Register -#define AT91C_TCB0_VER (AT91C_CAST(AT91C_REG *) 0xFFF7C0FC) // (TCB0) Version Register -#define AT91C_TCB0_BMR (AT91C_CAST(AT91C_REG *) 0xFFF7C0C4) // (TCB0) TC Block Mode Register -#define AT91C_TCB0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF7C0EC) // (TCB0) TC ADDRSIZE REGISTER -// ========== Register definition for TCB1 peripheral ========== -#define AT91C_TCB1_VER (AT91C_CAST(AT91C_REG *) 0xFFFD40FC) // (TCB1) Version Register -#define AT91C_TCB1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFFD40F4) // (TCB1) TC IPNAME2 REGISTER -#define AT91C_TCB1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFD40EC) // (TCB1) TC ADDRSIZE REGISTER -#define AT91C_TCB1_BMR (AT91C_CAST(AT91C_REG *) 0xFFFD40C4) // (TCB1) TC Block Mode Register -#define AT91C_TCB1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFD40F8) // (TCB1) TC FEATURES REGISTER -#define AT91C_TCB1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFFD40F0) // (TCB1) TC IPNAME1 REGISTER -#define AT91C_TCB1_BCR (AT91C_CAST(AT91C_REG *) 0xFFFD40C0) // (TCB1) TC Block Control Register -// ========== Register definition for MCI0 peripheral ========== -#define AT91C_MCI0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8004C) // (MCI0) MCI Interrupt Mask Register -#define AT91C_MCI0_MR (AT91C_CAST(AT91C_REG *) 0xFFF80004) // (MCI0) MCI Mode Register -#define AT91C_MCI0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF800EC) // (MCI0) MCI ADDRSIZE REGISTER -#define AT91C_MCI0_CR (AT91C_CAST(AT91C_REG *) 0xFFF80000) // (MCI0) MCI Control Register -#define AT91C_MCI0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF800F4) // (MCI0) MCI IPNAME2 REGISTER -#define AT91C_MCI0_IER (AT91C_CAST(AT91C_REG *) 0xFFF80044) // (MCI0) MCI Interrupt Enable Register -#define AT91C_MCI0_FIFO (AT91C_CAST(AT91C_REG *) 0xFFF80200) // (MCI0) MCI FIFO Aperture Register -#define AT91C_MCI0_DTOR (AT91C_CAST(AT91C_REG *) 0xFFF80008) // (MCI0) MCI Data Timeout Register -#define AT91C_MCI0_SDCR (AT91C_CAST(AT91C_REG *) 0xFFF8000C) // (MCI0) MCI SD/SDIO Card Register -#define AT91C_MCI0_BLKR (AT91C_CAST(AT91C_REG *) 0xFFF80018) // (MCI0) MCI Block Register -#define AT91C_MCI0_VER (AT91C_CAST(AT91C_REG *) 0xFFF800FC) // (MCI0) MCI VERSION REGISTER -#define AT91C_MCI0_WPSR (AT91C_CAST(AT91C_REG *) 0xFFF800E8) // (MCI0) MCI Write Protection Status Register -#define AT91C_MCI0_CMDR (AT91C_CAST(AT91C_REG *) 0xFFF80014) // (MCI0) MCI Command Register -#define AT91C_MCI0_CSTOR (AT91C_CAST(AT91C_REG *) 0xFFF8001C) // (MCI0) MCI Completion Signal Timeout Register -#define AT91C_MCI0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF800F0) // (MCI0) MCI IPNAME1 REGISTER -#define AT91C_MCI0_DMA (AT91C_CAST(AT91C_REG *) 0xFFF80050) // (MCI0) MCI DMA Configuration Register -#define AT91C_MCI0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF800F8) // (MCI0) MCI FEATURES REGISTER -#define AT91C_MCI0_RDR (AT91C_CAST(AT91C_REG *) 0xFFF80030) // (MCI0) MCI Receive Data Register -#define AT91C_MCI0_SR (AT91C_CAST(AT91C_REG *) 0xFFF80040) // (MCI0) MCI Status Register -#define AT91C_MCI0_TDR (AT91C_CAST(AT91C_REG *) 0xFFF80034) // (MCI0) MCI Transmit Data Register -#define AT91C_MCI0_CFG (AT91C_CAST(AT91C_REG *) 0xFFF80054) // (MCI0) MCI Configuration Register -#define AT91C_MCI0_ARGR (AT91C_CAST(AT91C_REG *) 0xFFF80010) // (MCI0) MCI Argument Register -#define AT91C_MCI0_RSPR (AT91C_CAST(AT91C_REG *) 0xFFF80020) // (MCI0) MCI Response Register -#define AT91C_MCI0_WPCR (AT91C_CAST(AT91C_REG *) 0xFFF800E4) // (MCI0) MCI Write Protection Control Register -#define AT91C_MCI0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF80048) // (MCI0) MCI Interrupt Disable Register -// ========== Register definition for MCI1 peripheral ========== -#define AT91C_MCI1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFFD00F0) // (MCI1) MCI IPNAME1 REGISTER -#define AT91C_MCI1_IDR (AT91C_CAST(AT91C_REG *) 0xFFFD0048) // (MCI1) MCI Interrupt Disable Register -#define AT91C_MCI1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFFD00F4) // (MCI1) MCI IPNAME2 REGISTER -#define AT91C_MCI1_MR (AT91C_CAST(AT91C_REG *) 0xFFFD0004) // (MCI1) MCI Mode Register -#define AT91C_MCI1_SR (AT91C_CAST(AT91C_REG *) 0xFFFD0040) // (MCI1) MCI Status Register -#define AT91C_MCI1_DTOR (AT91C_CAST(AT91C_REG *) 0xFFFD0008) // (MCI1) MCI Data Timeout Register -#define AT91C_MCI1_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFD00E4) // (MCI1) MCI Write Protection Control Register -#define AT91C_MCI1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFD00EC) // (MCI1) MCI ADDRSIZE REGISTER -#define AT91C_MCI1_ARGR (AT91C_CAST(AT91C_REG *) 0xFFFD0010) // (MCI1) MCI Argument Register -#define AT91C_MCI1_FIFO (AT91C_CAST(AT91C_REG *) 0xFFFD0200) // (MCI1) MCI FIFO Aperture Register -#define AT91C_MCI1_IER (AT91C_CAST(AT91C_REG *) 0xFFFD0044) // (MCI1) MCI Interrupt Enable Register -#define AT91C_MCI1_SDCR (AT91C_CAST(AT91C_REG *) 0xFFFD000C) // (MCI1) MCI SD/SDIO Card Register -#define AT91C_MCI1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFD00F8) // (MCI1) MCI FEATURES REGISTER -#define AT91C_MCI1_CR (AT91C_CAST(AT91C_REG *) 0xFFFD0000) // (MCI1) MCI Control Register -#define AT91C_MCI1_CSTOR (AT91C_CAST(AT91C_REG *) 0xFFFD001C) // (MCI1) MCI Completion Signal Timeout Register -#define AT91C_MCI1_RSPR (AT91C_CAST(AT91C_REG *) 0xFFFD0020) // (MCI1) MCI Response Register -#define AT91C_MCI1_IMR (AT91C_CAST(AT91C_REG *) 0xFFFD004C) // (MCI1) MCI Interrupt Mask Register -#define AT91C_MCI1_DMA (AT91C_CAST(AT91C_REG *) 0xFFFD0050) // (MCI1) MCI DMA Configuration Register -#define AT91C_MCI1_BLKR (AT91C_CAST(AT91C_REG *) 0xFFFD0018) // (MCI1) MCI Block Register -#define AT91C_MCI1_RDR (AT91C_CAST(AT91C_REG *) 0xFFFD0030) // (MCI1) MCI Receive Data Register -#define AT91C_MCI1_CFG (AT91C_CAST(AT91C_REG *) 0xFFFD0054) // (MCI1) MCI Configuration Register -#define AT91C_MCI1_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFD00E8) // (MCI1) MCI Write Protection Status Register -#define AT91C_MCI1_CMDR (AT91C_CAST(AT91C_REG *) 0xFFFD0014) // (MCI1) MCI Command Register -#define AT91C_MCI1_TDR (AT91C_CAST(AT91C_REG *) 0xFFFD0034) // (MCI1) MCI Transmit Data Register -#define AT91C_MCI1_VER (AT91C_CAST(AT91C_REG *) 0xFFFD00FC) // (MCI1) MCI VERSION REGISTER -// ========== Register definition for TWI0 peripheral ========== -#define AT91C_TWI0_RHR (AT91C_CAST(AT91C_REG *) 0xFFF84030) // (TWI0) Receive Holding Register -#define AT91C_TWI0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF840EC) // (TWI0) TWI ADDRSIZE REGISTER -#define AT91C_TWI0_SMR (AT91C_CAST(AT91C_REG *) 0xFFF84008) // (TWI0) Slave Mode Register -#define AT91C_TWI0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF84028) // (TWI0) Interrupt Disable Register -#define AT91C_TWI0_CWGR (AT91C_CAST(AT91C_REG *) 0xFFF84010) // (TWI0) Clock Waveform Generator Register -#define AT91C_TWI0_IER (AT91C_CAST(AT91C_REG *) 0xFFF84024) // (TWI0) Interrupt Enable Register -#define AT91C_TWI0_THR (AT91C_CAST(AT91C_REG *) 0xFFF84034) // (TWI0) Transmit Holding Register -#define AT91C_TWI0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF840F4) // (TWI0) TWI IPNAME2 REGISTER -#define AT91C_TWI0_CR (AT91C_CAST(AT91C_REG *) 0xFFF84000) // (TWI0) Control Register -#define AT91C_TWI0_MMR (AT91C_CAST(AT91C_REG *) 0xFFF84004) // (TWI0) Master Mode Register -#define AT91C_TWI0_SR (AT91C_CAST(AT91C_REG *) 0xFFF84020) // (TWI0) Status Register -#define AT91C_TWI0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8402C) // (TWI0) Interrupt Mask Register -#define AT91C_TWI0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF840F8) // (TWI0) TWI FEATURES REGISTER -#define AT91C_TWI0_IADR (AT91C_CAST(AT91C_REG *) 0xFFF8400C) // (TWI0) Internal Address Register -#define AT91C_TWI0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF840F0) // (TWI0) TWI IPNAME1 REGISTER -#define AT91C_TWI0_VER (AT91C_CAST(AT91C_REG *) 0xFFF840FC) // (TWI0) Version Register -// ========== Register definition for TWI1 peripheral ========== -#define AT91C_TWI1_VER (AT91C_CAST(AT91C_REG *) 0xFFF880FC) // (TWI1) Version Register -#define AT91C_TWI1_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8802C) // (TWI1) Interrupt Mask Register -#define AT91C_TWI1_THR (AT91C_CAST(AT91C_REG *) 0xFFF88034) // (TWI1) Transmit Holding Register -#define AT91C_TWI1_IER (AT91C_CAST(AT91C_REG *) 0xFFF88024) // (TWI1) Interrupt Enable Register -#define AT91C_TWI1_MMR (AT91C_CAST(AT91C_REG *) 0xFFF88004) // (TWI1) Master Mode Register -#define AT91C_TWI1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF880F0) // (TWI1) TWI IPNAME1 REGISTER -#define AT91C_TWI1_CR (AT91C_CAST(AT91C_REG *) 0xFFF88000) // (TWI1) Control Register -#define AT91C_TWI1_SR (AT91C_CAST(AT91C_REG *) 0xFFF88020) // (TWI1) Status Register -#define AT91C_TWI1_CWGR (AT91C_CAST(AT91C_REG *) 0xFFF88010) // (TWI1) Clock Waveform Generator Register -#define AT91C_TWI1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF880F4) // (TWI1) TWI IPNAME2 REGISTER -#define AT91C_TWI1_IDR (AT91C_CAST(AT91C_REG *) 0xFFF88028) // (TWI1) Interrupt Disable Register -#define AT91C_TWI1_RHR (AT91C_CAST(AT91C_REG *) 0xFFF88030) // (TWI1) Receive Holding Register -#define AT91C_TWI1_IADR (AT91C_CAST(AT91C_REG *) 0xFFF8800C) // (TWI1) Internal Address Register -#define AT91C_TWI1_SMR (AT91C_CAST(AT91C_REG *) 0xFFF88008) // (TWI1) Slave Mode Register -#define AT91C_TWI1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF880F8) // (TWI1) TWI FEATURES REGISTER -#define AT91C_TWI1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF880EC) // (TWI1) TWI ADDRSIZE REGISTER -// ========== Register definition for PDC_US0 peripheral ========== -#define AT91C_US0_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF8C118) // (PDC_US0) Transmit Next Pointer Register -#define AT91C_US0_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF8C124) // (PDC_US0) PDC Transfer Status Register -#define AT91C_US0_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF8C120) // (PDC_US0) PDC Transfer Control Register -#define AT91C_US0_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF8C114) // (PDC_US0) Receive Next Counter Register -#define AT91C_US0_RCR (AT91C_CAST(AT91C_REG *) 0xFFF8C104) // (PDC_US0) Receive Counter Register -#define AT91C_US0_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF8C11C) // (PDC_US0) Transmit Next Counter Register -#define AT91C_US0_TCR (AT91C_CAST(AT91C_REG *) 0xFFF8C10C) // (PDC_US0) Transmit Counter Register -#define AT91C_US0_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF8C110) // (PDC_US0) Receive Next Pointer Register -#define AT91C_US0_RPR (AT91C_CAST(AT91C_REG *) 0xFFF8C100) // (PDC_US0) Receive Pointer Register -#define AT91C_US0_TPR (AT91C_CAST(AT91C_REG *) 0xFFF8C108) // (PDC_US0) Transmit Pointer Register -// ========== Register definition for US0 peripheral ========== -#define AT91C_US0_MAN (AT91C_CAST(AT91C_REG *) 0xFFF8C050) // (US0) Manchester Encoder Decoder Register -#define AT91C_US0_MR (AT91C_CAST(AT91C_REG *) 0xFFF8C004) // (US0) Mode Register -#define AT91C_US0_RHR (AT91C_CAST(AT91C_REG *) 0xFFF8C018) // (US0) Receiver Holding Register -#define AT91C_US0_CSR (AT91C_CAST(AT91C_REG *) 0xFFF8C014) // (US0) Channel Status Register -#define AT91C_US0_CR (AT91C_CAST(AT91C_REG *) 0xFFF8C000) // (US0) Control Register -#define AT91C_US0_VER (AT91C_CAST(AT91C_REG *) 0xFFF8C0FC) // (US0) VERSION Register -#define AT91C_US0_IER (AT91C_CAST(AT91C_REG *) 0xFFF8C008) // (US0) Interrupt Enable Register -#define AT91C_US0_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF8C020) // (US0) Baud Rate Generator Register -#define AT91C_US0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF8C0F8) // (US0) US FEATURES REGISTER -#define AT91C_US0_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF8C024) // (US0) Receiver Time-out Register -#define AT91C_US0_THR (AT91C_CAST(AT91C_REG *) 0xFFF8C01C) // (US0) Transmitter Holding Register -#define AT91C_US0_NER (AT91C_CAST(AT91C_REG *) 0xFFF8C044) // (US0) Nb Errors Register -#define AT91C_US0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF8C0F0) // (US0) US IPNAME1 REGISTER -#define AT91C_US0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF8C010) // (US0) Interrupt Mask Register -#define AT91C_US0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF8C0EC) // (US0) US ADDRSIZE REGISTER -#define AT91C_US0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF8C00C) // (US0) Interrupt Disable Register -#define AT91C_US0_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF8C040) // (US0) FI_DI_Ratio Register -#define AT91C_US0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF8C0F4) // (US0) US IPNAME2 REGISTER -#define AT91C_US0_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF8C028) // (US0) Transmitter Time-guard Register -#define AT91C_US0_IF (AT91C_CAST(AT91C_REG *) 0xFFF8C04C) // (US0) IRDA_FILTER Register -// ========== Register definition for PDC_US1 peripheral ========== -#define AT91C_US1_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF90120) // (PDC_US1) PDC Transfer Control Register -#define AT91C_US1_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9011C) // (PDC_US1) Transmit Next Counter Register -#define AT91C_US1_RCR (AT91C_CAST(AT91C_REG *) 0xFFF90104) // (PDC_US1) Receive Counter Register -#define AT91C_US1_RPR (AT91C_CAST(AT91C_REG *) 0xFFF90100) // (PDC_US1) Receive Pointer Register -#define AT91C_US1_TPR (AT91C_CAST(AT91C_REG *) 0xFFF90108) // (PDC_US1) Transmit Pointer Register -#define AT91C_US1_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9010C) // (PDC_US1) Transmit Counter Register -#define AT91C_US1_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF90110) // (PDC_US1) Receive Next Pointer Register -#define AT91C_US1_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF90118) // (PDC_US1) Transmit Next Pointer Register -#define AT91C_US1_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF90114) // (PDC_US1) Receive Next Counter Register -#define AT91C_US1_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF90124) // (PDC_US1) PDC Transfer Status Register -// ========== Register definition for US1 peripheral ========== -#define AT91C_US1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF900F8) // (US1) US FEATURES REGISTER -#define AT91C_US1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF900EC) // (US1) US ADDRSIZE REGISTER -#define AT91C_US1_NER (AT91C_CAST(AT91C_REG *) 0xFFF90044) // (US1) Nb Errors Register -#define AT91C_US1_RHR (AT91C_CAST(AT91C_REG *) 0xFFF90018) // (US1) Receiver Holding Register -#define AT91C_US1_IF (AT91C_CAST(AT91C_REG *) 0xFFF9004C) // (US1) IRDA_FILTER Register -#define AT91C_US1_CR (AT91C_CAST(AT91C_REG *) 0xFFF90000) // (US1) Control Register -#define AT91C_US1_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF90028) // (US1) Transmitter Time-guard Register -#define AT91C_US1_MR (AT91C_CAST(AT91C_REG *) 0xFFF90004) // (US1) Mode Register -#define AT91C_US1_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF90040) // (US1) FI_DI_Ratio Register -#define AT91C_US1_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF90024) // (US1) Receiver Time-out Register -#define AT91C_US1_IER (AT91C_CAST(AT91C_REG *) 0xFFF90008) // (US1) Interrupt Enable Register -#define AT91C_US1_MAN (AT91C_CAST(AT91C_REG *) 0xFFF90050) // (US1) Manchester Encoder Decoder Register -#define AT91C_US1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF900F4) // (US1) US IPNAME2 REGISTER -#define AT91C_US1_IMR (AT91C_CAST(AT91C_REG *) 0xFFF90010) // (US1) Interrupt Mask Register -#define AT91C_US1_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9000C) // (US1) Interrupt Disable Register -#define AT91C_US1_CSR (AT91C_CAST(AT91C_REG *) 0xFFF90014) // (US1) Channel Status Register -#define AT91C_US1_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF90020) // (US1) Baud Rate Generator Register -#define AT91C_US1_THR (AT91C_CAST(AT91C_REG *) 0xFFF9001C) // (US1) Transmitter Holding Register -#define AT91C_US1_VER (AT91C_CAST(AT91C_REG *) 0xFFF900FC) // (US1) VERSION Register -#define AT91C_US1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF900F0) // (US1) US IPNAME1 REGISTER -// ========== Register definition for PDC_US2 peripheral ========== -#define AT91C_US2_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF94114) // (PDC_US2) Receive Next Counter Register -#define AT91C_US2_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF94120) // (PDC_US2) PDC Transfer Control Register -#define AT91C_US2_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF94118) // (PDC_US2) Transmit Next Pointer Register -#define AT91C_US2_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9411C) // (PDC_US2) Transmit Next Counter Register -#define AT91C_US2_TPR (AT91C_CAST(AT91C_REG *) 0xFFF94108) // (PDC_US2) Transmit Pointer Register -#define AT91C_US2_RCR (AT91C_CAST(AT91C_REG *) 0xFFF94104) // (PDC_US2) Receive Counter Register -#define AT91C_US2_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF94124) // (PDC_US2) PDC Transfer Status Register -#define AT91C_US2_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9410C) // (PDC_US2) Transmit Counter Register -#define AT91C_US2_RPR (AT91C_CAST(AT91C_REG *) 0xFFF94100) // (PDC_US2) Receive Pointer Register -#define AT91C_US2_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF94110) // (PDC_US2) Receive Next Pointer Register -// ========== Register definition for US2 peripheral ========== -#define AT91C_US2_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF94028) // (US2) Transmitter Time-guard Register -#define AT91C_US2_IER (AT91C_CAST(AT91C_REG *) 0xFFF94008) // (US2) Interrupt Enable Register -#define AT91C_US2_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF940EC) // (US2) US ADDRSIZE REGISTER -#define AT91C_US2_NER (AT91C_CAST(AT91C_REG *) 0xFFF94044) // (US2) Nb Errors Register -#define AT91C_US2_CR (AT91C_CAST(AT91C_REG *) 0xFFF94000) // (US2) Control Register -#define AT91C_US2_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9400C) // (US2) Interrupt Disable Register -#define AT91C_US2_VER (AT91C_CAST(AT91C_REG *) 0xFFF940FC) // (US2) VERSION Register -#define AT91C_US2_THR (AT91C_CAST(AT91C_REG *) 0xFFF9401C) // (US2) Transmitter Holding Register -#define AT91C_US2_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF94020) // (US2) Baud Rate Generator Register -#define AT91C_US2_CSR (AT91C_CAST(AT91C_REG *) 0xFFF94014) // (US2) Channel Status Register -#define AT91C_US2_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF940F4) // (US2) US IPNAME2 REGISTER -#define AT91C_US2_IMR (AT91C_CAST(AT91C_REG *) 0xFFF94010) // (US2) Interrupt Mask Register -#define AT91C_US2_RHR (AT91C_CAST(AT91C_REG *) 0xFFF94018) // (US2) Receiver Holding Register -#define AT91C_US2_MR (AT91C_CAST(AT91C_REG *) 0xFFF94004) // (US2) Mode Register -#define AT91C_US2_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF94040) // (US2) FI_DI_Ratio Register -#define AT91C_US2_MAN (AT91C_CAST(AT91C_REG *) 0xFFF94050) // (US2) Manchester Encoder Decoder Register -#define AT91C_US2_IF (AT91C_CAST(AT91C_REG *) 0xFFF9404C) // (US2) IRDA_FILTER Register -#define AT91C_US2_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF940F8) // (US2) US FEATURES REGISTER -#define AT91C_US2_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF940F0) // (US2) US IPNAME1 REGISTER -#define AT91C_US2_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF94024) // (US2) Receiver Time-out Register -// ========== Register definition for PDC_US3 peripheral ========== -#define AT91C_US3_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF98124) // (PDC_US3) PDC Transfer Status Register -#define AT91C_US3_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9810C) // (PDC_US3) Transmit Counter Register -#define AT91C_US3_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF98110) // (PDC_US3) Receive Next Pointer Register -#define AT91C_US3_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF98114) // (PDC_US3) Receive Next Counter Register -#define AT91C_US3_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF98118) // (PDC_US3) Transmit Next Pointer Register -#define AT91C_US3_RPR (AT91C_CAST(AT91C_REG *) 0xFFF98100) // (PDC_US3) Receive Pointer Register -#define AT91C_US3_TPR (AT91C_CAST(AT91C_REG *) 0xFFF98108) // (PDC_US3) Transmit Pointer Register -#define AT91C_US3_RCR (AT91C_CAST(AT91C_REG *) 0xFFF98104) // (PDC_US3) Receive Counter Register -#define AT91C_US3_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9811C) // (PDC_US3) Transmit Next Counter Register -#define AT91C_US3_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF98120) // (PDC_US3) PDC Transfer Control Register -// ========== Register definition for US3 peripheral ========== -#define AT91C_US3_VER (AT91C_CAST(AT91C_REG *) 0xFFF980FC) // (US3) VERSION Register -#define AT91C_US3_BRGR (AT91C_CAST(AT91C_REG *) 0xFFF98020) // (US3) Baud Rate Generator Register -#define AT91C_US3_TTGR (AT91C_CAST(AT91C_REG *) 0xFFF98028) // (US3) Transmitter Time-guard Register -#define AT91C_US3_RTOR (AT91C_CAST(AT91C_REG *) 0xFFF98024) // (US3) Receiver Time-out Register -#define AT91C_US3_MAN (AT91C_CAST(AT91C_REG *) 0xFFF98050) // (US3) Manchester Encoder Decoder Register -#define AT91C_US3_NER (AT91C_CAST(AT91C_REG *) 0xFFF98044) // (US3) Nb Errors Register -#define AT91C_US3_CR (AT91C_CAST(AT91C_REG *) 0xFFF98000) // (US3) Control Register -#define AT91C_US3_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9800C) // (US3) Interrupt Disable Register -#define AT91C_US3_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF980EC) // (US3) US ADDRSIZE REGISTER -#define AT91C_US3_CSR (AT91C_CAST(AT91C_REG *) 0xFFF98014) // (US3) Channel Status Register -#define AT91C_US3_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF980F4) // (US3) US IPNAME2 REGISTER -#define AT91C_US3_IER (AT91C_CAST(AT91C_REG *) 0xFFF98008) // (US3) Interrupt Enable Register -#define AT91C_US3_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF980F8) // (US3) US FEATURES REGISTER -#define AT91C_US3_MR (AT91C_CAST(AT91C_REG *) 0xFFF98004) // (US3) Mode Register -#define AT91C_US3_IF (AT91C_CAST(AT91C_REG *) 0xFFF9804C) // (US3) IRDA_FILTER Register -#define AT91C_US3_THR (AT91C_CAST(AT91C_REG *) 0xFFF9801C) // (US3) Transmitter Holding Register -#define AT91C_US3_IMR (AT91C_CAST(AT91C_REG *) 0xFFF98010) // (US3) Interrupt Mask Register -#define AT91C_US3_FIDI (AT91C_CAST(AT91C_REG *) 0xFFF98040) // (US3) FI_DI_Ratio Register -#define AT91C_US3_RHR (AT91C_CAST(AT91C_REG *) 0xFFF98018) // (US3) Receiver Holding Register -#define AT91C_US3_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF980F0) // (US3) US IPNAME1 REGISTER -// ========== Register definition for PDC_SSC0 peripheral ========== -#define AT91C_SSC0_TNPR (AT91C_CAST(AT91C_REG *) 0xFFF9C118) // (PDC_SSC0) Transmit Next Pointer Register -#define AT91C_SSC0_PTSR (AT91C_CAST(AT91C_REG *) 0xFFF9C124) // (PDC_SSC0) PDC Transfer Status Register -#define AT91C_SSC0_TNCR (AT91C_CAST(AT91C_REG *) 0xFFF9C11C) // (PDC_SSC0) Transmit Next Counter Register -#define AT91C_SSC0_RNCR (AT91C_CAST(AT91C_REG *) 0xFFF9C114) // (PDC_SSC0) Receive Next Counter Register -#define AT91C_SSC0_TPR (AT91C_CAST(AT91C_REG *) 0xFFF9C108) // (PDC_SSC0) Transmit Pointer Register -#define AT91C_SSC0_RCR (AT91C_CAST(AT91C_REG *) 0xFFF9C104) // (PDC_SSC0) Receive Counter Register -#define AT91C_SSC0_PTCR (AT91C_CAST(AT91C_REG *) 0xFFF9C120) // (PDC_SSC0) PDC Transfer Control Register -#define AT91C_SSC0_RNPR (AT91C_CAST(AT91C_REG *) 0xFFF9C110) // (PDC_SSC0) Receive Next Pointer Register -#define AT91C_SSC0_TCR (AT91C_CAST(AT91C_REG *) 0xFFF9C10C) // (PDC_SSC0) Transmit Counter Register -#define AT91C_SSC0_RPR (AT91C_CAST(AT91C_REG *) 0xFFF9C100) // (PDC_SSC0) Receive Pointer Register -// ========== Register definition for SSC0 peripheral ========== -#define AT91C_SSC0_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF9C0F4) // (SSC0) SSC IPNAME2 REGISTER -#define AT91C_SSC0_SR (AT91C_CAST(AT91C_REG *) 0xFFF9C040) // (SSC0) Status Register -#define AT91C_SSC0_TSHR (AT91C_CAST(AT91C_REG *) 0xFFF9C034) // (SSC0) Transmit Sync Holding Register -#define AT91C_SSC0_TCMR (AT91C_CAST(AT91C_REG *) 0xFFF9C018) // (SSC0) Transmit Clock Mode Register -#define AT91C_SSC0_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF9C0EC) // (SSC0) SSC ADDRSIZE REGISTER -#define AT91C_SSC0_IMR (AT91C_CAST(AT91C_REG *) 0xFFF9C04C) // (SSC0) Interrupt Mask Register -#define AT91C_SSC0_IDR (AT91C_CAST(AT91C_REG *) 0xFFF9C048) // (SSC0) Interrupt Disable Register -#define AT91C_SSC0_CR (AT91C_CAST(AT91C_REG *) 0xFFF9C000) // (SSC0) Control Register -#define AT91C_SSC0_VER (AT91C_CAST(AT91C_REG *) 0xFFF9C0FC) // (SSC0) Version Register -#define AT91C_SSC0_RHR (AT91C_CAST(AT91C_REG *) 0xFFF9C020) // (SSC0) Receive Holding Register -#define AT91C_SSC0_THR (AT91C_CAST(AT91C_REG *) 0xFFF9C024) // (SSC0) Transmit Holding Register -#define AT91C_SSC0_CMR (AT91C_CAST(AT91C_REG *) 0xFFF9C004) // (SSC0) Clock Mode Register -#define AT91C_SSC0_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFF9C0F8) // (SSC0) SSC FEATURES REGISTER -#define AT91C_SSC0_RCMR (AT91C_CAST(AT91C_REG *) 0xFFF9C010) // (SSC0) Receive Clock ModeRegister -#define AT91C_SSC0_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF9C0F0) // (SSC0) SSC IPNAME1 REGISTER -#define AT91C_SSC0_RSHR (AT91C_CAST(AT91C_REG *) 0xFFF9C030) // (SSC0) Receive Sync Holding Register -#define AT91C_SSC0_IER (AT91C_CAST(AT91C_REG *) 0xFFF9C044) // (SSC0) Interrupt Enable Register -#define AT91C_SSC0_TFMR (AT91C_CAST(AT91C_REG *) 0xFFF9C01C) // (SSC0) Transmit Frame Mode Register -#define AT91C_SSC0_RFMR (AT91C_CAST(AT91C_REG *) 0xFFF9C014) // (SSC0) Receive Frame Mode Register -// ========== Register definition for PDC_SSC1 peripheral ========== -#define AT91C_SSC1_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFA0110) // (PDC_SSC1) Receive Next Pointer Register -#define AT91C_SSC1_TCR (AT91C_CAST(AT91C_REG *) 0xFFFA010C) // (PDC_SSC1) Transmit Counter Register -#define AT91C_SSC1_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFA011C) // (PDC_SSC1) Transmit Next Counter Register -#define AT91C_SSC1_RCR (AT91C_CAST(AT91C_REG *) 0xFFFA0104) // (PDC_SSC1) Receive Counter Register -#define AT91C_SSC1_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFA0114) // (PDC_SSC1) Receive Next Counter Register -#define AT91C_SSC1_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFA0120) // (PDC_SSC1) PDC Transfer Control Register -#define AT91C_SSC1_TPR (AT91C_CAST(AT91C_REG *) 0xFFFA0108) // (PDC_SSC1) Transmit Pointer Register -#define AT91C_SSC1_RPR (AT91C_CAST(AT91C_REG *) 0xFFFA0100) // (PDC_SSC1) Receive Pointer Register -#define AT91C_SSC1_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFA0124) // (PDC_SSC1) PDC Transfer Status Register -#define AT91C_SSC1_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFA0118) // (PDC_SSC1) Transmit Next Pointer Register -// ========== Register definition for SSC1 peripheral ========== -#define AT91C_SSC1_SR (AT91C_CAST(AT91C_REG *) 0xFFFA0040) // (SSC1) Status Register -#define AT91C_SSC1_TFMR (AT91C_CAST(AT91C_REG *) 0xFFFA001C) // (SSC1) Transmit Frame Mode Register -#define AT91C_SSC1_IPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFFA00F0) // (SSC1) SSC IPNAME1 REGISTER -#define AT91C_SSC1_CMR (AT91C_CAST(AT91C_REG *) 0xFFFA0004) // (SSC1) Clock Mode Register -#define AT91C_SSC1_THR (AT91C_CAST(AT91C_REG *) 0xFFFA0024) // (SSC1) Transmit Holding Register -#define AT91C_SSC1_FEATURES (AT91C_CAST(AT91C_REG *) 0xFFFA00F8) // (SSC1) SSC FEATURES REGISTER -#define AT91C_SSC1_TSHR (AT91C_CAST(AT91C_REG *) 0xFFFA0034) // (SSC1) Transmit Sync Holding Register -#define AT91C_SSC1_RCMR (AT91C_CAST(AT91C_REG *) 0xFFFA0010) // (SSC1) Receive Clock ModeRegister -#define AT91C_SSC1_RHR (AT91C_CAST(AT91C_REG *) 0xFFFA0020) // (SSC1) Receive Holding Register -#define AT91C_SSC1_VER (AT91C_CAST(AT91C_REG *) 0xFFFA00FC) // (SSC1) Version Register -#define AT91C_SSC1_TCMR (AT91C_CAST(AT91C_REG *) 0xFFFA0018) // (SSC1) Transmit Clock Mode Register -#define AT91C_SSC1_CR (AT91C_CAST(AT91C_REG *) 0xFFFA0000) // (SSC1) Control Register -#define AT91C_SSC1_RSHR (AT91C_CAST(AT91C_REG *) 0xFFFA0030) // (SSC1) Receive Sync Holding Register -#define AT91C_SSC1_IER (AT91C_CAST(AT91C_REG *) 0xFFFA0044) // (SSC1) Interrupt Enable Register -#define AT91C_SSC1_ADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFFA00EC) // (SSC1) SSC ADDRSIZE REGISTER -#define AT91C_SSC1_RFMR (AT91C_CAST(AT91C_REG *) 0xFFFA0014) // (SSC1) Receive Frame Mode Register -#define AT91C_SSC1_IMR (AT91C_CAST(AT91C_REG *) 0xFFFA004C) // (SSC1) Interrupt Mask Register -#define AT91C_SSC1_IDR (AT91C_CAST(AT91C_REG *) 0xFFFA0048) // (SSC1) Interrupt Disable Register -#define AT91C_SSC1_IPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFFA00F4) // (SSC1) SSC IPNAME2 REGISTER -// ========== Register definition for PWMC_CH0 peripheral ========== -#define AT91C_PWMC_CH0_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB820C) // (PWMC_CH0) Channel Counter Register -#define AT91C_PWMC_CH0_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8208) // (PWMC_CH0) Channel Period Register -#define AT91C_PWMC_CH0_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8210) // (PWMC_CH0) Channel Update Register -#define AT91C_PWMC_CH0_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8204) // (PWMC_CH0) Channel Duty Cycle Register -#define AT91C_PWMC_CH0_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8200) // (PWMC_CH0) Channel Mode Register -#define AT91C_PWMC_CH0_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8214) // (PWMC_CH0) Reserved -// ========== Register definition for PWMC_CH1 peripheral ========== -#define AT91C_PWMC_CH1_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB822C) // (PWMC_CH1) Channel Counter Register -#define AT91C_PWMC_CH1_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8224) // (PWMC_CH1) Channel Duty Cycle Register -#define AT91C_PWMC_CH1_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8220) // (PWMC_CH1) Channel Mode Register -#define AT91C_PWMC_CH1_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8228) // (PWMC_CH1) Channel Period Register -#define AT91C_PWMC_CH1_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8234) // (PWMC_CH1) Reserved -#define AT91C_PWMC_CH1_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8230) // (PWMC_CH1) Channel Update Register -// ========== Register definition for PWMC_CH2 peripheral ========== -#define AT91C_PWMC_CH2_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8250) // (PWMC_CH2) Channel Update Register -#define AT91C_PWMC_CH2_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8240) // (PWMC_CH2) Channel Mode Register -#define AT91C_PWMC_CH2_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8254) // (PWMC_CH2) Reserved -#define AT91C_PWMC_CH2_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8248) // (PWMC_CH2) Channel Period Register -#define AT91C_PWMC_CH2_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8244) // (PWMC_CH2) Channel Duty Cycle Register -#define AT91C_PWMC_CH2_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB824C) // (PWMC_CH2) Channel Counter Register -// ========== Register definition for PWMC_CH3 peripheral ========== -#define AT91C_PWMC_CH3_CPRDR (AT91C_CAST(AT91C_REG *) 0xFFFB8268) // (PWMC_CH3) Channel Period Register -#define AT91C_PWMC_CH3_Reserved (AT91C_CAST(AT91C_REG *) 0xFFFB8274) // (PWMC_CH3) Reserved -#define AT91C_PWMC_CH3_CUPDR (AT91C_CAST(AT91C_REG *) 0xFFFB8270) // (PWMC_CH3) Channel Update Register -#define AT91C_PWMC_CH3_CDTYR (AT91C_CAST(AT91C_REG *) 0xFFFB8264) // (PWMC_CH3) Channel Duty Cycle Register -#define AT91C_PWMC_CH3_CCNTR (AT91C_CAST(AT91C_REG *) 0xFFFB826C) // (PWMC_CH3) Channel Counter Register -#define AT91C_PWMC_CH3_CMR (AT91C_CAST(AT91C_REG *) 0xFFFB8260) // (PWMC_CH3) Channel Mode Register -// ========== Register definition for PWMC peripheral ========== -#define AT91C_PWMC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFB8014) // (PWMC) PWMC Interrupt Disable Register -#define AT91C_PWMC_MR (AT91C_CAST(AT91C_REG *) 0xFFFB8000) // (PWMC) PWMC Mode Register -#define AT91C_PWMC_VR (AT91C_CAST(AT91C_REG *) 0xFFFB80FC) // (PWMC) PWMC Version Register -#define AT91C_PWMC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFB8018) // (PWMC) PWMC Interrupt Mask Register -#define AT91C_PWMC_SR (AT91C_CAST(AT91C_REG *) 0xFFFB800C) // (PWMC) PWMC Status Register -#define AT91C_PWMC_ISR (AT91C_CAST(AT91C_REG *) 0xFFFB801C) // (PWMC) PWMC Interrupt Status Register -#define AT91C_PWMC_ENA (AT91C_CAST(AT91C_REG *) 0xFFFB8004) // (PWMC) PWMC Enable Register -#define AT91C_PWMC_IER (AT91C_CAST(AT91C_REG *) 0xFFFB8010) // (PWMC) PWMC Interrupt Enable Register -#define AT91C_PWMC_DIS (AT91C_CAST(AT91C_REG *) 0xFFFB8008) // (PWMC) PWMC Disable Register -// ========== Register definition for PDC_SPI0 peripheral ========== -#define AT91C_SPI0_TPR (AT91C_CAST(AT91C_REG *) 0xFFFA4108) // (PDC_SPI0) Transmit Pointer Register -#define AT91C_SPI0_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFA4120) // (PDC_SPI0) PDC Transfer Control Register -#define AT91C_SPI0_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFA4110) // (PDC_SPI0) Receive Next Pointer Register -#define AT91C_SPI0_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFA411C) // (PDC_SPI0) Transmit Next Counter Register -#define AT91C_SPI0_TCR (AT91C_CAST(AT91C_REG *) 0xFFFA410C) // (PDC_SPI0) Transmit Counter Register -#define AT91C_SPI0_RCR (AT91C_CAST(AT91C_REG *) 0xFFFA4104) // (PDC_SPI0) Receive Counter Register -#define AT91C_SPI0_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFA4114) // (PDC_SPI0) Receive Next Counter Register -#define AT91C_SPI0_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFA4118) // (PDC_SPI0) Transmit Next Pointer Register -#define AT91C_SPI0_RPR (AT91C_CAST(AT91C_REG *) 0xFFFA4100) // (PDC_SPI0) Receive Pointer Register -#define AT91C_SPI0_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFA4124) // (PDC_SPI0) PDC Transfer Status Register -// ========== Register definition for PDC_SPI1 peripheral ========== -#define AT91C_SPI1_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFA8114) // (PDC_SPI1) Receive Next Counter Register -#define AT91C_SPI1_TCR (AT91C_CAST(AT91C_REG *) 0xFFFA810C) // (PDC_SPI1) Transmit Counter Register -#define AT91C_SPI1_RCR (AT91C_CAST(AT91C_REG *) 0xFFFA8104) // (PDC_SPI1) Receive Counter Register -#define AT91C_SPI1_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFA8118) // (PDC_SPI1) Transmit Next Pointer Register -#define AT91C_SPI1_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFA8110) // (PDC_SPI1) Receive Next Pointer Register -#define AT91C_SPI1_RPR (AT91C_CAST(AT91C_REG *) 0xFFFA8100) // (PDC_SPI1) Receive Pointer Register -#define AT91C_SPI1_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFA811C) // (PDC_SPI1) Transmit Next Counter Register -#define AT91C_SPI1_TPR (AT91C_CAST(AT91C_REG *) 0xFFFA8108) // (PDC_SPI1) Transmit Pointer Register -#define AT91C_SPI1_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFA8124) // (PDC_SPI1) PDC Transfer Status Register -#define AT91C_SPI1_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFA8120) // (PDC_SPI1) PDC Transfer Control Register -// ========== Register definition for SPI0 peripheral ========== -#define AT91C_SPI0_MR (AT91C_CAST(AT91C_REG *) 0xFFFA4004) // (SPI0) Mode Register -#define AT91C_SPI0_RDR (AT91C_CAST(AT91C_REG *) 0xFFFA4008) // (SPI0) Receive Data Register -#define AT91C_SPI0_CR (AT91C_CAST(AT91C_REG *) 0xFFFA4000) // (SPI0) Control Register -#define AT91C_SPI0_IER (AT91C_CAST(AT91C_REG *) 0xFFFA4014) // (SPI0) Interrupt Enable Register -#define AT91C_SPI0_TDR (AT91C_CAST(AT91C_REG *) 0xFFFA400C) // (SPI0) Transmit Data Register -#define AT91C_SPI0_IDR (AT91C_CAST(AT91C_REG *) 0xFFFA4018) // (SPI0) Interrupt Disable Register -#define AT91C_SPI0_CSR (AT91C_CAST(AT91C_REG *) 0xFFFA4030) // (SPI0) Chip Select Register -#define AT91C_SPI0_SR (AT91C_CAST(AT91C_REG *) 0xFFFA4010) // (SPI0) Status Register -#define AT91C_SPI0_IMR (AT91C_CAST(AT91C_REG *) 0xFFFA401C) // (SPI0) Interrupt Mask Register -// ========== Register definition for SPI1 peripheral ========== -#define AT91C_SPI1_CSR (AT91C_CAST(AT91C_REG *) 0xFFFA8030) // (SPI1) Chip Select Register -#define AT91C_SPI1_IER (AT91C_CAST(AT91C_REG *) 0xFFFA8014) // (SPI1) Interrupt Enable Register -#define AT91C_SPI1_RDR (AT91C_CAST(AT91C_REG *) 0xFFFA8008) // (SPI1) Receive Data Register -#define AT91C_SPI1_IDR (AT91C_CAST(AT91C_REG *) 0xFFFA8018) // (SPI1) Interrupt Disable Register -#define AT91C_SPI1_MR (AT91C_CAST(AT91C_REG *) 0xFFFA8004) // (SPI1) Mode Register -#define AT91C_SPI1_CR (AT91C_CAST(AT91C_REG *) 0xFFFA8000) // (SPI1) Control Register -#define AT91C_SPI1_SR (AT91C_CAST(AT91C_REG *) 0xFFFA8010) // (SPI1) Status Register -#define AT91C_SPI1_TDR (AT91C_CAST(AT91C_REG *) 0xFFFA800C) // (SPI1) Transmit Data Register -#define AT91C_SPI1_IMR (AT91C_CAST(AT91C_REG *) 0xFFFA801C) // (SPI1) Interrupt Mask Register -// ========== Register definition for PDC_TSADC peripheral ========== -#define AT91C_TSADC_TCR (AT91C_CAST(AT91C_REG *) 0xFFFB010C) // (PDC_TSADC) Transmit Counter Register -#define AT91C_TSADC_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFB0120) // (PDC_TSADC) PDC Transfer Control Register -#define AT91C_TSADC_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFB0114) // (PDC_TSADC) Receive Next Counter Register -#define AT91C_TSADC_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFB0124) // (PDC_TSADC) PDC Transfer Status Register -#define AT91C_TSADC_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFB011C) // (PDC_TSADC) Transmit Next Counter Register -#define AT91C_TSADC_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFB0110) // (PDC_TSADC) Receive Next Pointer Register -#define AT91C_TSADC_RCR (AT91C_CAST(AT91C_REG *) 0xFFFB0104) // (PDC_TSADC) Receive Counter Register -#define AT91C_TSADC_TPR (AT91C_CAST(AT91C_REG *) 0xFFFB0108) // (PDC_TSADC) Transmit Pointer Register -#define AT91C_TSADC_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFB0118) // (PDC_TSADC) Transmit Next Pointer Register -#define AT91C_TSADC_RPR (AT91C_CAST(AT91C_REG *) 0xFFFB0100) // (PDC_TSADC) Receive Pointer Register -// ========== Register definition for TSADC peripheral ========== -#define AT91C_TSADC_CHSR (AT91C_CAST(AT91C_REG *) 0xFFFB0018) // (TSADC) Channel Status Register -#define AT91C_TSADC_CDR5 (AT91C_CAST(AT91C_REG *) 0xFFFB0044) // (TSADC) Channel Data Register 5 -#define AT91C_TSADC_CR (AT91C_CAST(AT91C_REG *) 0xFFFB0000) // (TSADC) Control Register -#define AT91C_TSADC_IMR (AT91C_CAST(AT91C_REG *) 0xFFFB002C) // (TSADC) Interrupt Mask Register -#define AT91C_TSADC_CHDR (AT91C_CAST(AT91C_REG *) 0xFFFB0014) // (TSADC) Channel Disable Register -#define AT91C_TSADC_LCDR (AT91C_CAST(AT91C_REG *) 0xFFFB0020) // (TSADC) Last Converted Register -#define AT91C_TSADC_IER (AT91C_CAST(AT91C_REG *) 0xFFFB0024) // (TSADC) Interrupt Enable Register -#define AT91C_TSADC_TSR (AT91C_CAST(AT91C_REG *) 0xFFFB000C) // (TSADC) Touch Screen Register -#define AT91C_TSADC_CDR2 (AT91C_CAST(AT91C_REG *) 0xFFFB0038) // (TSADC) Channel Data Register 2 -#define AT91C_TSADC_CDR4 (AT91C_CAST(AT91C_REG *) 0xFFFB0040) // (TSADC) Channel Data Register 4 -#define AT91C_TSADC_CHER (AT91C_CAST(AT91C_REG *) 0xFFFB0010) // (TSADC) Channel Enable Register -#define AT91C_TSADC_TRGR (AT91C_CAST(AT91C_REG *) 0xFFFB0008) // (TSADC) Trigger Register -#define AT91C_TSADC_CDR3 (AT91C_CAST(AT91C_REG *) 0xFFFB003C) // (TSADC) Channel Data Register 3 -#define AT91C_TSADC_SR (AT91C_CAST(AT91C_REG *) 0xFFFB001C) // (TSADC) Status Register -#define AT91C_TSADC_CDR0 (AT91C_CAST(AT91C_REG *) 0xFFFB0030) // (TSADC) Channel Data Register 0 -#define AT91C_TSADC_CDR6 (AT91C_CAST(AT91C_REG *) 0xFFFB0048) // (TSADC) Channel Data Register 6 -#define AT91C_TSADC_IDR (AT91C_CAST(AT91C_REG *) 0xFFFB0028) // (TSADC) Interrupt Disable Register -#define AT91C_TSADC_MR (AT91C_CAST(AT91C_REG *) 0xFFFB0004) // (TSADC) Mode Register -#define AT91C_TSADC_CDR7 (AT91C_CAST(AT91C_REG *) 0xFFFB004C) // (TSADC) Channel Data Register 7 -#define AT91C_TSADC_CDR1 (AT91C_CAST(AT91C_REG *) 0xFFFB0034) // (TSADC) Channel Data Register 1 -// ========== Register definition for UDPHS_EPTFIFO peripheral ========== -#define AT91C_UDPHS_EPTFIFO_READEPT3 (AT91C_CAST(AT91C_REG *) 0x00630000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 3 -#define AT91C_UDPHS_EPTFIFO_READEPT5 (AT91C_CAST(AT91C_REG *) 0x00650000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 5 -#define AT91C_UDPHS_EPTFIFO_READEPT1 (AT91C_CAST(AT91C_REG *) 0x00610000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 1 -#define AT91C_UDPHS_EPTFIFO_READEPT0 (AT91C_CAST(AT91C_REG *) 0x00600000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 0 -#define AT91C_UDPHS_EPTFIFO_READEPT6 (AT91C_CAST(AT91C_REG *) 0x00660000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 6 -#define AT91C_UDPHS_EPTFIFO_READEPT2 (AT91C_CAST(AT91C_REG *) 0x00620000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 2 -#define AT91C_UDPHS_EPTFIFO_READEPT4 (AT91C_CAST(AT91C_REG *) 0x00640000) // (UDPHS_EPTFIFO) FIFO Endpoint Data Register 4 -// ========== Register definition for UDPHS_EPT_0 peripheral ========== -#define AT91C_UDPHS_EPT_0_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7811C) // (UDPHS_EPT_0) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_0_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7810C) // (UDPHS_EPT_0) UDPHS Endpoint Control Register -#define AT91C_UDPHS_EPT_0_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78108) // (UDPHS_EPT_0) UDPHS Endpoint Control Disable Register -#define AT91C_UDPHS_EPT_0_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78100) // (UDPHS_EPT_0) UDPHS Endpoint Config Register -#define AT91C_UDPHS_EPT_0_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78118) // (UDPHS_EPT_0) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_0_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78114) // (UDPHS_EPT_0) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_0_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78104) // (UDPHS_EPT_0) UDPHS Endpoint Control Enable Register -// ========== Register definition for UDPHS_EPT_1 peripheral ========== -#define AT91C_UDPHS_EPT_1_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78124) // (UDPHS_EPT_1) UDPHS Endpoint Control Enable Register -#define AT91C_UDPHS_EPT_1_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78120) // (UDPHS_EPT_1) UDPHS Endpoint Config Register -#define AT91C_UDPHS_EPT_1_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7812C) // (UDPHS_EPT_1) UDPHS Endpoint Control Register -#define AT91C_UDPHS_EPT_1_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7813C) // (UDPHS_EPT_1) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_1_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78138) // (UDPHS_EPT_1) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_1_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78134) // (UDPHS_EPT_1) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_1_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78128) // (UDPHS_EPT_1) UDPHS Endpoint Control Disable Register -// ========== Register definition for UDPHS_EPT_2 peripheral ========== -#define AT91C_UDPHS_EPT_2_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78158) // (UDPHS_EPT_2) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_2_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78148) // (UDPHS_EPT_2) UDPHS Endpoint Control Disable Register -#define AT91C_UDPHS_EPT_2_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7815C) // (UDPHS_EPT_2) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_2_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78154) // (UDPHS_EPT_2) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_2_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7814C) // (UDPHS_EPT_2) UDPHS Endpoint Control Register -#define AT91C_UDPHS_EPT_2_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78140) // (UDPHS_EPT_2) UDPHS Endpoint Config Register -#define AT91C_UDPHS_EPT_2_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78144) // (UDPHS_EPT_2) UDPHS Endpoint Control Enable Register -// ========== Register definition for UDPHS_EPT_3 peripheral ========== -#define AT91C_UDPHS_EPT_3_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7816C) // (UDPHS_EPT_3) UDPHS Endpoint Control Register -#define AT91C_UDPHS_EPT_3_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78178) // (UDPHS_EPT_3) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_3_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78168) // (UDPHS_EPT_3) UDPHS Endpoint Control Disable Register -#define AT91C_UDPHS_EPT_3_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7817C) // (UDPHS_EPT_3) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_3_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78174) // (UDPHS_EPT_3) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_3_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78164) // (UDPHS_EPT_3) UDPHS Endpoint Control Enable Register -#define AT91C_UDPHS_EPT_3_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78160) // (UDPHS_EPT_3) UDPHS Endpoint Config Register -// ========== Register definition for UDPHS_EPT_4 peripheral ========== -#define AT91C_UDPHS_EPT_4_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF78198) // (UDPHS_EPT_4) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_4_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF7818C) // (UDPHS_EPT_4) UDPHS Endpoint Control Register -#define AT91C_UDPHS_EPT_4_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF78184) // (UDPHS_EPT_4) UDPHS Endpoint Control Enable Register -#define AT91C_UDPHS_EPT_4_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF7819C) // (UDPHS_EPT_4) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_4_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF78194) // (UDPHS_EPT_4) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_4_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF78180) // (UDPHS_EPT_4) UDPHS Endpoint Config Register -#define AT91C_UDPHS_EPT_4_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF78188) // (UDPHS_EPT_4) UDPHS Endpoint Control Disable Register -// ========== Register definition for UDPHS_EPT_5 peripheral ========== -#define AT91C_UDPHS_EPT_5_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF781BC) // (UDPHS_EPT_5) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_5_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF781B8) // (UDPHS_EPT_5) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_5_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF781A4) // (UDPHS_EPT_5) UDPHS Endpoint Control Enable Register -#define AT91C_UDPHS_EPT_5_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF781B4) // (UDPHS_EPT_5) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_5_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF781A8) // (UDPHS_EPT_5) UDPHS Endpoint Control Disable Register -#define AT91C_UDPHS_EPT_5_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF781A0) // (UDPHS_EPT_5) UDPHS Endpoint Config Register -#define AT91C_UDPHS_EPT_5_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF781AC) // (UDPHS_EPT_5) UDPHS Endpoint Control Register -// ========== Register definition for UDPHS_EPT_6 peripheral ========== -#define AT91C_UDPHS_EPT_6_EPTCLRSTA (AT91C_CAST(AT91C_REG *) 0xFFF781D8) // (UDPHS_EPT_6) UDPHS Endpoint Clear Status Register -#define AT91C_UDPHS_EPT_6_EPTCTLENB (AT91C_CAST(AT91C_REG *) 0xFFF781C4) // (UDPHS_EPT_6) UDPHS Endpoint Control Enable Register -#define AT91C_UDPHS_EPT_6_EPTCTL (AT91C_CAST(AT91C_REG *) 0xFFF781CC) // (UDPHS_EPT_6) UDPHS Endpoint Control Register -#define AT91C_UDPHS_EPT_6_EPTSETSTA (AT91C_CAST(AT91C_REG *) 0xFFF781D4) // (UDPHS_EPT_6) UDPHS Endpoint Set Status Register -#define AT91C_UDPHS_EPT_6_EPTCTLDIS (AT91C_CAST(AT91C_REG *) 0xFFF781C8) // (UDPHS_EPT_6) UDPHS Endpoint Control Disable Register -#define AT91C_UDPHS_EPT_6_EPTSTA (AT91C_CAST(AT91C_REG *) 0xFFF781DC) // (UDPHS_EPT_6) UDPHS Endpoint Status Register -#define AT91C_UDPHS_EPT_6_EPTCFG (AT91C_CAST(AT91C_REG *) 0xFFF781C0) // (UDPHS_EPT_6) UDPHS Endpoint Config Register -// ========== Register definition for UDPHS_DMA_1 peripheral ========== -#define AT91C_UDPHS_DMA_1_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7831C) // (UDPHS_DMA_1) UDPHS DMA Channel Status Register -#define AT91C_UDPHS_DMA_1_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78310) // (UDPHS_DMA_1) UDPHS DMA Channel Next Descriptor Address -#define AT91C_UDPHS_DMA_1_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78318) // (UDPHS_DMA_1) UDPHS DMA Channel Control Register -#define AT91C_UDPHS_DMA_1_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78314) // (UDPHS_DMA_1) UDPHS DMA Channel Address Register -// ========== Register definition for UDPHS_DMA_2 peripheral ========== -#define AT91C_UDPHS_DMA_2_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78328) // (UDPHS_DMA_2) UDPHS DMA Channel Control Register -#define AT91C_UDPHS_DMA_2_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7832C) // (UDPHS_DMA_2) UDPHS DMA Channel Status Register -#define AT91C_UDPHS_DMA_2_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78324) // (UDPHS_DMA_2) UDPHS DMA Channel Address Register -#define AT91C_UDPHS_DMA_2_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78320) // (UDPHS_DMA_2) UDPHS DMA Channel Next Descriptor Address -// ========== Register definition for UDPHS_DMA_3 peripheral ========== -#define AT91C_UDPHS_DMA_3_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78334) // (UDPHS_DMA_3) UDPHS DMA Channel Address Register -#define AT91C_UDPHS_DMA_3_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78330) // (UDPHS_DMA_3) UDPHS DMA Channel Next Descriptor Address -#define AT91C_UDPHS_DMA_3_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78338) // (UDPHS_DMA_3) UDPHS DMA Channel Control Register -#define AT91C_UDPHS_DMA_3_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7833C) // (UDPHS_DMA_3) UDPHS DMA Channel Status Register -// ========== Register definition for UDPHS_DMA_4 peripheral ========== -#define AT91C_UDPHS_DMA_4_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78340) // (UDPHS_DMA_4) UDPHS DMA Channel Next Descriptor Address -#define AT91C_UDPHS_DMA_4_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78344) // (UDPHS_DMA_4) UDPHS DMA Channel Address Register -#define AT91C_UDPHS_DMA_4_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78348) // (UDPHS_DMA_4) UDPHS DMA Channel Control Register -#define AT91C_UDPHS_DMA_4_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7834C) // (UDPHS_DMA_4) UDPHS DMA Channel Status Register -// ========== Register definition for UDPHS_DMA_5 peripheral ========== -#define AT91C_UDPHS_DMA_5_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7835C) // (UDPHS_DMA_5) UDPHS DMA Channel Status Register -#define AT91C_UDPHS_DMA_5_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78358) // (UDPHS_DMA_5) UDPHS DMA Channel Control Register -#define AT91C_UDPHS_DMA_5_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78350) // (UDPHS_DMA_5) UDPHS DMA Channel Next Descriptor Address -#define AT91C_UDPHS_DMA_5_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78354) // (UDPHS_DMA_5) UDPHS DMA Channel Address Register -// ========== Register definition for UDPHS_DMA_6 peripheral ========== -#define AT91C_UDPHS_DMA_6_DMANXTDSC (AT91C_CAST(AT91C_REG *) 0xFFF78360) // (UDPHS_DMA_6) UDPHS DMA Channel Next Descriptor Address -#define AT91C_UDPHS_DMA_6_DMACONTROL (AT91C_CAST(AT91C_REG *) 0xFFF78368) // (UDPHS_DMA_6) UDPHS DMA Channel Control Register -#define AT91C_UDPHS_DMA_6_DMASTATUS (AT91C_CAST(AT91C_REG *) 0xFFF7836C) // (UDPHS_DMA_6) UDPHS DMA Channel Status Register -#define AT91C_UDPHS_DMA_6_DMAADDRESS (AT91C_CAST(AT91C_REG *) 0xFFF78364) // (UDPHS_DMA_6) UDPHS DMA Channel Address Register -// ========== Register definition for UDPHS peripheral ========== -#define AT91C_UDPHS_IEN (AT91C_CAST(AT91C_REG *) 0xFFF78010) // (UDPHS) UDPHS Interrupt Enable Register -#define AT91C_UDPHS_TSTSOFCNT (AT91C_CAST(AT91C_REG *) 0xFFF780D0) // (UDPHS) UDPHS Test SOF Counter Register -#define AT91C_UDPHS_IPFEATURES (AT91C_CAST(AT91C_REG *) 0xFFF780F8) // (UDPHS) UDPHS Features Register -#define AT91C_UDPHS_TST (AT91C_CAST(AT91C_REG *) 0xFFF780E0) // (UDPHS) UDPHS Test Register -#define AT91C_UDPHS_FNUM (AT91C_CAST(AT91C_REG *) 0xFFF78004) // (UDPHS) UDPHS Frame Number Register -#define AT91C_UDPHS_TSTCNTB (AT91C_CAST(AT91C_REG *) 0xFFF780D8) // (UDPHS) UDPHS Test B Counter Register -#define AT91C_UDPHS_RIPPADDRSIZE (AT91C_CAST(AT91C_REG *) 0xFFF780EC) // (UDPHS) UDPHS PADDRSIZE Register -#define AT91C_UDPHS_INTSTA (AT91C_CAST(AT91C_REG *) 0xFFF78014) // (UDPHS) UDPHS Interrupt Status Register -#define AT91C_UDPHS_EPTRST (AT91C_CAST(AT91C_REG *) 0xFFF7801C) // (UDPHS) UDPHS Endpoints Reset Register -#define AT91C_UDPHS_TSTCNTA (AT91C_CAST(AT91C_REG *) 0xFFF780D4) // (UDPHS) UDPHS Test A Counter Register -#define AT91C_UDPHS_RIPNAME2 (AT91C_CAST(AT91C_REG *) 0xFFF780F4) // (UDPHS) UDPHS Name2 Register -#define AT91C_UDPHS_RIPNAME1 (AT91C_CAST(AT91C_REG *) 0xFFF780F0) // (UDPHS) UDPHS Name1 Register -#define AT91C_UDPHS_TSTMODREG (AT91C_CAST(AT91C_REG *) 0xFFF780DC) // (UDPHS) UDPHS Test Mode Register -#define AT91C_UDPHS_CLRINT (AT91C_CAST(AT91C_REG *) 0xFFF78018) // (UDPHS) UDPHS Clear Interrupt Register -#define AT91C_UDPHS_IPVERSION (AT91C_CAST(AT91C_REG *) 0xFFF780FC) // (UDPHS) UDPHS Version Register -#define AT91C_UDPHS_CTRL (AT91C_CAST(AT91C_REG *) 0xFFF78000) // (UDPHS) UDPHS Control Register -// ========== Register definition for PDC_AC97C peripheral ========== -#define AT91C_AC97C_PTSR (AT91C_CAST(AT91C_REG *) 0xFFFAC124) // (PDC_AC97C) PDC Transfer Status Register -#define AT91C_AC97C_RPR (AT91C_CAST(AT91C_REG *) 0xFFFAC100) // (PDC_AC97C) Receive Pointer Register -#define AT91C_AC97C_RNCR (AT91C_CAST(AT91C_REG *) 0xFFFAC114) // (PDC_AC97C) Receive Next Counter Register -#define AT91C_AC97C_RCR (AT91C_CAST(AT91C_REG *) 0xFFFAC104) // (PDC_AC97C) Receive Counter Register -#define AT91C_AC97C_PTCR (AT91C_CAST(AT91C_REG *) 0xFFFAC120) // (PDC_AC97C) PDC Transfer Control Register -#define AT91C_AC97C_TPR (AT91C_CAST(AT91C_REG *) 0xFFFAC108) // (PDC_AC97C) Transmit Pointer Register -#define AT91C_AC97C_RNPR (AT91C_CAST(AT91C_REG *) 0xFFFAC110) // (PDC_AC97C) Receive Next Pointer Register -#define AT91C_AC97C_TNPR (AT91C_CAST(AT91C_REG *) 0xFFFAC118) // (PDC_AC97C) Transmit Next Pointer Register -#define AT91C_AC97C_TCR (AT91C_CAST(AT91C_REG *) 0xFFFAC10C) // (PDC_AC97C) Transmit Counter Register -#define AT91C_AC97C_TNCR (AT91C_CAST(AT91C_REG *) 0xFFFAC11C) // (PDC_AC97C) Transmit Next Counter Register -// ========== Register definition for AC97C peripheral ========== -#define AT91C_AC97C_IER (AT91C_CAST(AT91C_REG *) 0xFFFAC054) // (AC97C) Interrupt Enable Register -#define AT91C_AC97C_COTHR (AT91C_CAST(AT91C_REG *) 0xFFFAC044) // (AC97C) COdec Transmit Holding Register -#define AT91C_AC97C_IDR (AT91C_CAST(AT91C_REG *) 0xFFFAC058) // (AC97C) Interrupt Disable Register -#define AT91C_AC97C_ICA (AT91C_CAST(AT91C_REG *) 0xFFFAC010) // (AC97C) Input Channel AssignementRegister -#define AT91C_AC97C_CATHR (AT91C_CAST(AT91C_REG *) 0xFFFAC024) // (AC97C) Channel A Transmit Holding Register -#define AT91C_AC97C_CBSR (AT91C_CAST(AT91C_REG *) 0xFFFAC038) // (AC97C) Channel B Status Register -#define AT91C_AC97C_CAMR (AT91C_CAST(AT91C_REG *) 0xFFFAC02C) // (AC97C) Channel A Mode Register -#define AT91C_AC97C_SR (AT91C_CAST(AT91C_REG *) 0xFFFAC050) // (AC97C) Status Register -#define AT91C_AC97C_CBTHR (AT91C_CAST(AT91C_REG *) 0xFFFAC034) // (AC97C) Channel B Transmit Holding Register (optional) -#define AT91C_AC97C_CASR (AT91C_CAST(AT91C_REG *) 0xFFFAC028) // (AC97C) Channel A Status Register -#define AT91C_AC97C_COSR (AT91C_CAST(AT91C_REG *) 0xFFFAC048) // (AC97C) CODEC Status Register -#define AT91C_AC97C_MR (AT91C_CAST(AT91C_REG *) 0xFFFAC008) // (AC97C) Mode Register -#define AT91C_AC97C_OCA (AT91C_CAST(AT91C_REG *) 0xFFFAC014) // (AC97C) Output Channel Assignement Register -#define AT91C_AC97C_CORHR (AT91C_CAST(AT91C_REG *) 0xFFFAC040) // (AC97C) COdec Transmit Holding Register -#define AT91C_AC97C_CBRHR (AT91C_CAST(AT91C_REG *) 0xFFFAC030) // (AC97C) Channel B Receive Holding Register (optional) -#define AT91C_AC97C_IMR (AT91C_CAST(AT91C_REG *) 0xFFFAC05C) // (AC97C) Interrupt Mask Register -#define AT91C_AC97C_COMR (AT91C_CAST(AT91C_REG *) 0xFFFAC04C) // (AC97C) CODEC Mask Status Register -#define AT91C_AC97C_CARHR (AT91C_CAST(AT91C_REG *) 0xFFFAC020) // (AC97C) Channel A Receive Holding Register -#define AT91C_AC97C_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFAC0FC) // (AC97C) Version Register -#define AT91C_AC97C_CBMR (AT91C_CAST(AT91C_REG *) 0xFFFAC03C) // (AC97C) Channel B Mode Register -// ========== Register definition for LCDC peripheral ========== -#define AT91C_LCDC_MVAL (AT91C_CAST(AT91C_REG *) 0x00500818) // (LCDC) LCD Mode Toggle Rate Value Register -#define AT91C_LCDC_PWRCON (AT91C_CAST(AT91C_REG *) 0x0050083C) // (LCDC) Power Control Register -#define AT91C_LCDC_ISR (AT91C_CAST(AT91C_REG *) 0x00500854) // (LCDC) Interrupt Enable Register -#define AT91C_LCDC_FRMP1 (AT91C_CAST(AT91C_REG *) 0x00500008) // (LCDC) DMA Frame Pointer Register 1 -#define AT91C_LCDC_CTRSTVAL (AT91C_CAST(AT91C_REG *) 0x00500844) // (LCDC) Contrast Value Register -#define AT91C_LCDC_ICR (AT91C_CAST(AT91C_REG *) 0x00500858) // (LCDC) Interrupt Clear Register -#define AT91C_LCDC_TIM1 (AT91C_CAST(AT91C_REG *) 0x00500808) // (LCDC) LCD Timing Config 1 Register -#define AT91C_LCDC_DMACON (AT91C_CAST(AT91C_REG *) 0x0050001C) // (LCDC) DMA Control Register -#define AT91C_LCDC_ITR (AT91C_CAST(AT91C_REG *) 0x00500860) // (LCDC) Interrupts Test Register -#define AT91C_LCDC_IDR (AT91C_CAST(AT91C_REG *) 0x0050084C) // (LCDC) Interrupt Disable Register -#define AT91C_LCDC_DP4_7 (AT91C_CAST(AT91C_REG *) 0x00500820) // (LCDC) Dithering Pattern DP4_7 Register -#define AT91C_LCDC_DP5_7 (AT91C_CAST(AT91C_REG *) 0x0050082C) // (LCDC) Dithering Pattern DP5_7 Register -#define AT91C_LCDC_IRR (AT91C_CAST(AT91C_REG *) 0x00500864) // (LCDC) Interrupts Raw Status Register -#define AT91C_LCDC_DP3_4 (AT91C_CAST(AT91C_REG *) 0x00500830) // (LCDC) Dithering Pattern DP3_4 Register -#define AT91C_LCDC_IMR (AT91C_CAST(AT91C_REG *) 0x00500850) // (LCDC) Interrupt Mask Register -#define AT91C_LCDC_LCDFRCFG (AT91C_CAST(AT91C_REG *) 0x00500810) // (LCDC) LCD Frame Config Register -#define AT91C_LCDC_CTRSTCON (AT91C_CAST(AT91C_REG *) 0x00500840) // (LCDC) Contrast Control Register -#define AT91C_LCDC_DP1_2 (AT91C_CAST(AT91C_REG *) 0x0050081C) // (LCDC) Dithering Pattern DP1_2 Register -#define AT91C_LCDC_FRMP2 (AT91C_CAST(AT91C_REG *) 0x0050000C) // (LCDC) DMA Frame Pointer Register 2 -#define AT91C_LCDC_LCDCON1 (AT91C_CAST(AT91C_REG *) 0x00500800) // (LCDC) LCD Control 1 Register -#define AT91C_LCDC_DP4_5 (AT91C_CAST(AT91C_REG *) 0x00500834) // (LCDC) Dithering Pattern DP4_5 Register -#define AT91C_LCDC_FRMA2 (AT91C_CAST(AT91C_REG *) 0x00500014) // (LCDC) DMA Frame Address Register 2 -#define AT91C_LCDC_BA1 (AT91C_CAST(AT91C_REG *) 0x00500000) // (LCDC) DMA Base Address Register 1 -#define AT91C_LCDC_DMA2DCFG (AT91C_CAST(AT91C_REG *) 0x00500020) // (LCDC) DMA 2D addressing configuration -#define AT91C_LCDC_LUT_ENTRY (AT91C_CAST(AT91C_REG *) 0x00500C00) // (LCDC) LUT Entries Register -#define AT91C_LCDC_DP6_7 (AT91C_CAST(AT91C_REG *) 0x00500838) // (LCDC) Dithering Pattern DP6_7 Register -#define AT91C_LCDC_FRMCFG (AT91C_CAST(AT91C_REG *) 0x00500018) // (LCDC) DMA Frame Configuration Register -#define AT91C_LCDC_TIM2 (AT91C_CAST(AT91C_REG *) 0x0050080C) // (LCDC) LCD Timing Config 2 Register -#define AT91C_LCDC_DP3_5 (AT91C_CAST(AT91C_REG *) 0x00500824) // (LCDC) Dithering Pattern DP3_5 Register -#define AT91C_LCDC_FRMA1 (AT91C_CAST(AT91C_REG *) 0x00500010) // (LCDC) DMA Frame Address Register 1 -#define AT91C_LCDC_IER (AT91C_CAST(AT91C_REG *) 0x00500848) // (LCDC) Interrupt Enable Register -#define AT91C_LCDC_DP2_3 (AT91C_CAST(AT91C_REG *) 0x00500828) // (LCDC) Dithering Pattern DP2_3 Register -#define AT91C_LCDC_FIFO (AT91C_CAST(AT91C_REG *) 0x00500814) // (LCDC) LCD FIFO Register -#define AT91C_LCDC_BA2 (AT91C_CAST(AT91C_REG *) 0x00500004) // (LCDC) DMA Base Address Register 2 -#define AT91C_LCDC_LCDCON2 (AT91C_CAST(AT91C_REG *) 0x00500804) // (LCDC) LCD Control 2 Register -#define AT91C_LCDC_GPR (AT91C_CAST(AT91C_REG *) 0x0050085C) // (LCDC) General Purpose Register -// ========== Register definition for LCDC_16B_TFT peripheral ========== -#define AT91C_TFT_MVAL (AT91C_CAST(AT91C_REG *) 0x00500818) // (LCDC_16B_TFT) LCD Mode Toggle Rate Value Register -#define AT91C_TFT_PWRCON (AT91C_CAST(AT91C_REG *) 0x0050083C) // (LCDC_16B_TFT) Power Control Register -#define AT91C_TFT_ISR (AT91C_CAST(AT91C_REG *) 0x00500854) // (LCDC_16B_TFT) Interrupt Enable Register -#define AT91C_TFT_FRMP1 (AT91C_CAST(AT91C_REG *) 0x00500008) // (LCDC_16B_TFT) DMA Frame Pointer Register 1 -#define AT91C_TFT_CTRSTVAL (AT91C_CAST(AT91C_REG *) 0x00500844) // (LCDC_16B_TFT) Contrast Value Register -#define AT91C_TFT_ICR (AT91C_CAST(AT91C_REG *) 0x00500858) // (LCDC_16B_TFT) Interrupt Clear Register -#define AT91C_TFT_TIM1 (AT91C_CAST(AT91C_REG *) 0x00500808) // (LCDC_16B_TFT) LCD Timing Config 1 Register -#define AT91C_TFT_DMACON (AT91C_CAST(AT91C_REG *) 0x0050001C) // (LCDC_16B_TFT) DMA Control Register -#define AT91C_TFT_ITR (AT91C_CAST(AT91C_REG *) 0x00500860) // (LCDC_16B_TFT) Interrupts Test Register -#define AT91C_TFT_IDR (AT91C_CAST(AT91C_REG *) 0x0050084C) // (LCDC_16B_TFT) Interrupt Disable Register -#define AT91C_TFT_DP4_7 (AT91C_CAST(AT91C_REG *) 0x00500820) // (LCDC_16B_TFT) Dithering Pattern DP4_7 Register -#define AT91C_TFT_DP5_7 (AT91C_CAST(AT91C_REG *) 0x0050082C) // (LCDC_16B_TFT) Dithering Pattern DP5_7 Register -#define AT91C_TFT_IRR (AT91C_CAST(AT91C_REG *) 0x00500864) // (LCDC_16B_TFT) Interrupts Raw Status Register -#define AT91C_TFT_DP3_4 (AT91C_CAST(AT91C_REG *) 0x00500830) // (LCDC_16B_TFT) Dithering Pattern DP3_4 Register -#define AT91C_TFT_IMR (AT91C_CAST(AT91C_REG *) 0x00500850) // (LCDC_16B_TFT) Interrupt Mask Register -#define AT91C_TFT_LCDFRCFG (AT91C_CAST(AT91C_REG *) 0x00500810) // (LCDC_16B_TFT) LCD Frame Config Register -#define AT91C_TFT_CTRSTCON (AT91C_CAST(AT91C_REG *) 0x00500840) // (LCDC_16B_TFT) Contrast Control Register -#define AT91C_TFT_DP1_2 (AT91C_CAST(AT91C_REG *) 0x0050081C) // (LCDC_16B_TFT) Dithering Pattern DP1_2 Register -#define AT91C_TFT_FRMP2 (AT91C_CAST(AT91C_REG *) 0x0050000C) // (LCDC_16B_TFT) DMA Frame Pointer Register 2 -#define AT91C_TFT_LCDCON1 (AT91C_CAST(AT91C_REG *) 0x00500800) // (LCDC_16B_TFT) LCD Control 1 Register -#define AT91C_TFT_DP4_5 (AT91C_CAST(AT91C_REG *) 0x00500834) // (LCDC_16B_TFT) Dithering Pattern DP4_5 Register -#define AT91C_TFT_FRMA2 (AT91C_CAST(AT91C_REG *) 0x00500014) // (LCDC_16B_TFT) DMA Frame Address Register 2 -#define AT91C_TFT_BA1 (AT91C_CAST(AT91C_REG *) 0x00500000) // (LCDC_16B_TFT) DMA Base Address Register 1 -#define AT91C_TFT_DMA2DCFG (AT91C_CAST(AT91C_REG *) 0x00500020) // (LCDC_16B_TFT) DMA 2D addressing configuration -#define AT91C_TFT_LUT_ENTRY (AT91C_CAST(AT91C_REG *) 0x00500C00) // (LCDC_16B_TFT) LUT Entries Register -#define AT91C_TFT_DP6_7 (AT91C_CAST(AT91C_REG *) 0x00500838) // (LCDC_16B_TFT) Dithering Pattern DP6_7 Register -#define AT91C_TFT_FRMCFG (AT91C_CAST(AT91C_REG *) 0x00500018) // (LCDC_16B_TFT) DMA Frame Configuration Register -#define AT91C_TFT_TIM2 (AT91C_CAST(AT91C_REG *) 0x0050080C) // (LCDC_16B_TFT) LCD Timing Config 2 Register -#define AT91C_TFT_DP3_5 (AT91C_CAST(AT91C_REG *) 0x00500824) // (LCDC_16B_TFT) Dithering Pattern DP3_5 Register -#define AT91C_TFT_FRMA1 (AT91C_CAST(AT91C_REG *) 0x00500010) // (LCDC_16B_TFT) DMA Frame Address Register 1 -#define AT91C_TFT_IER (AT91C_CAST(AT91C_REG *) 0x00500848) // (LCDC_16B_TFT) Interrupt Enable Register -#define AT91C_TFT_DP2_3 (AT91C_CAST(AT91C_REG *) 0x00500828) // (LCDC_16B_TFT) Dithering Pattern DP2_3 Register -#define AT91C_TFT_FIFO (AT91C_CAST(AT91C_REG *) 0x00500814) // (LCDC_16B_TFT) LCD FIFO Register -#define AT91C_TFT_BA2 (AT91C_CAST(AT91C_REG *) 0x00500004) // (LCDC_16B_TFT) DMA Base Address Register 2 -#define AT91C_TFT_LCDCON2 (AT91C_CAST(AT91C_REG *) 0x00500804) // (LCDC_16B_TFT) LCD Control 2 Register -#define AT91C_TFT_GPR (AT91C_CAST(AT91C_REG *) 0x0050085C) // (LCDC_16B_TFT) General Purpose Register -// ========== Register definition for HDMA_CH_0 peripheral ========== -#define AT91C_HDMA_CH_0_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC5C) // (HDMA_CH_0) HDMA Reserved -#define AT91C_HDMA_CH_0_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC40) // (HDMA_CH_0) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_0_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC58) // (HDMA_CH_0) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_0_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC44) // (HDMA_CH_0) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_0_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFEC50) // (HDMA_CH_0) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_0_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC54) // (HDMA_CH_0) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_0_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC60) // (HDMA_CH_0) HDMA Reserved -#define AT91C_HDMA_CH_0_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFEC48) // (HDMA_CH_0) HDMA Channel Control A Register -#define AT91C_HDMA_CH_0_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFEC4C) // (HDMA_CH_0) HDMA Channel Control B Register -#define AT91C_HDMA_CH_0_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC3C) // (HDMA_CH_0) HDMA Channel Source Address Register -// ========== Register definition for HDMA_CH_1 peripheral ========== -#define AT91C_HDMA_CH_1_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC88) // (HDMA_CH_1) HDMA Reserved -#define AT91C_HDMA_CH_1_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC80) // (HDMA_CH_1) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_1_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFEC74) // (HDMA_CH_1) HDMA Channel Control B Register -#define AT91C_HDMA_CH_1_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC64) // (HDMA_CH_1) HDMA Channel Source Address Register -#define AT91C_HDMA_CH_1_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC84) // (HDMA_CH_1) HDMA Reserved -#define AT91C_HDMA_CH_1_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFEC78) // (HDMA_CH_1) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_1_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC6C) // (HDMA_CH_1) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_1_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC68) // (HDMA_CH_1) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_1_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFEC70) // (HDMA_CH_1) HDMA Channel Control A Register -#define AT91C_HDMA_CH_1_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFEC7C) // (HDMA_CH_1) HDMA Channel Source Picture in Picture Configuration Register -// ========== Register definition for HDMA_CH_2 peripheral ========== -#define AT91C_HDMA_CH_2_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC8C) // (HDMA_CH_2) HDMA Channel Source Address Register -#define AT91C_HDMA_CH_2_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECAC) // (HDMA_CH_2) HDMA Reserved -#define AT91C_HDMA_CH_2_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECA8) // (HDMA_CH_2) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_2_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECA4) // (HDMA_CH_2) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_2_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC90) // (HDMA_CH_2) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_2_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFEC94) // (HDMA_CH_2) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_2_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFEC98) // (HDMA_CH_2) HDMA Channel Control A Register -#define AT91C_HDMA_CH_2_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECB0) // (HDMA_CH_2) HDMA Reserved -#define AT91C_HDMA_CH_2_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFECA0) // (HDMA_CH_2) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_2_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFEC9C) // (HDMA_CH_2) HDMA Channel Control B Register -// ========== Register definition for HDMA_CH_3 peripheral ========== -#define AT91C_HDMA_CH_3_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECCC) // (HDMA_CH_3) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_3_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFECC0) // (HDMA_CH_3) HDMA Channel Control A Register -#define AT91C_HDMA_CH_3_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECD0) // (HDMA_CH_3) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_3_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFECC4) // (HDMA_CH_3) HDMA Channel Control B Register -#define AT91C_HDMA_CH_3_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECD4) // (HDMA_CH_3) HDMA Reserved -#define AT91C_HDMA_CH_3_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECBC) // (HDMA_CH_3) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_3_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECD8) // (HDMA_CH_3) HDMA Reserved -#define AT91C_HDMA_CH_3_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFECC8) // (HDMA_CH_3) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_3_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECB8) // (HDMA_CH_3) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_3_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECB4) // (HDMA_CH_3) HDMA Channel Source Address Register -// ========== Register definition for HDMA_CH_4 peripheral ========== -#define AT91C_HDMA_CH_4_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFECF0) // (HDMA_CH_4) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_4_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECFC) // (HDMA_CH_4) HDMA Reserved -#define AT91C_HDMA_CH_4_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED00) // (HDMA_CH_4) HDMA Reserved -#define AT91C_HDMA_CH_4_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECE0) // (HDMA_CH_4) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_4_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFECE8) // (HDMA_CH_4) HDMA Channel Control A Register -#define AT91C_HDMA_CH_4_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFECDC) // (HDMA_CH_4) HDMA Channel Source Address Register -#define AT91C_HDMA_CH_4_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFECEC) // (HDMA_CH_4) HDMA Channel Control B Register -#define AT91C_HDMA_CH_4_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFECE4) // (HDMA_CH_4) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_4_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECF4) // (HDMA_CH_4) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_4_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFECF8) // (HDMA_CH_4) HDMA Channel Destination Picture in Picture Configuration Register -// ========== Register definition for HDMA_CH_5 peripheral ========== -#define AT91C_HDMA_CH_5_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFED14) // (HDMA_CH_5) HDMA Channel Control B Register -#define AT91C_HDMA_CH_5_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED08) // (HDMA_CH_5) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_5_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED1C) // (HDMA_CH_5) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_5_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED0C) // (HDMA_CH_5) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_5_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED20) // (HDMA_CH_5) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_5_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFED18) // (HDMA_CH_5) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_5_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED28) // (HDMA_CH_5) HDMA Reserved -#define AT91C_HDMA_CH_5_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED04) // (HDMA_CH_5) HDMA Channel Source Address Register -#define AT91C_HDMA_CH_5_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED24) // (HDMA_CH_5) HDMA Reserved -#define AT91C_HDMA_CH_5_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFED10) // (HDMA_CH_5) HDMA Channel Control A Register -// ========== Register definition for HDMA_CH_6 peripheral ========== -#define AT91C_HDMA_CH_6_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED2C) // (HDMA_CH_6) HDMA Channel Source Address Register -#define AT91C_HDMA_CH_6_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED4C) // (HDMA_CH_6) HDMA Reserved -#define AT91C_HDMA_CH_6_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED50) // (HDMA_CH_6) HDMA Reserved -#define AT91C_HDMA_CH_6_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED44) // (HDMA_CH_6) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_6_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFED3C) // (HDMA_CH_6) HDMA Channel Control B Register -#define AT91C_HDMA_CH_6_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED34) // (HDMA_CH_6) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_6_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFED40) // (HDMA_CH_6) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_6_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED48) // (HDMA_CH_6) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_6_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED30) // (HDMA_CH_6) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_6_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFED38) // (HDMA_CH_6) HDMA Channel Control A Register -// ========== Register definition for HDMA_CH_7 peripheral ========== -#define AT91C_HDMA_CH_7_CADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED78) // (HDMA_CH_7) HDMA Reserved -#define AT91C_HDMA_CH_7_CFG (AT91C_CAST(AT91C_REG *) 0xFFFFED68) // (HDMA_CH_7) HDMA Channel Configuration Register -#define AT91C_HDMA_CH_7_DADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED58) // (HDMA_CH_7) HDMA Channel Destination Address Register -#define AT91C_HDMA_CH_7_CTRLB (AT91C_CAST(AT91C_REG *) 0xFFFFED64) // (HDMA_CH_7) HDMA Channel Control B Register -#define AT91C_HDMA_CH_7_DSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED5C) // (HDMA_CH_7) HDMA Channel Descriptor Address Register -#define AT91C_HDMA_CH_7_DPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED70) // (HDMA_CH_7) HDMA Channel Destination Picture in Picture Configuration Register -#define AT91C_HDMA_CH_7_CTRLA (AT91C_CAST(AT91C_REG *) 0xFFFFED60) // (HDMA_CH_7) HDMA Channel Control A Register -#define AT91C_HDMA_CH_7_BDSCR (AT91C_CAST(AT91C_REG *) 0xFFFFED74) // (HDMA_CH_7) HDMA Reserved -#define AT91C_HDMA_CH_7_SPIP (AT91C_CAST(AT91C_REG *) 0xFFFFED6C) // (HDMA_CH_7) HDMA Channel Source Picture in Picture Configuration Register -#define AT91C_HDMA_CH_7_SADDR (AT91C_CAST(AT91C_REG *) 0xFFFFED54) // (HDMA_CH_7) HDMA Channel Source Address Register -// ========== Register definition for HDMA peripheral ========== -#define AT91C_HDMA_EBCIDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC1C) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Interrupt Disable register -#define AT91C_HDMA_LAST (AT91C_CAST(AT91C_REG *) 0xFFFFEC10) // (HDMA) HDMA Software Last Transfer Flag Register -#define AT91C_HDMA_SREQ (AT91C_CAST(AT91C_REG *) 0xFFFFEC08) // (HDMA) HDMA Software Single Request Register -#define AT91C_HDMA_RSVD0 (AT91C_CAST(AT91C_REG *) 0xFFFFEC34) // (HDMA) HDMA Reserved -#define AT91C_HDMA_EBCIER (AT91C_CAST(AT91C_REG *) 0xFFFFEC18) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Interrupt Enable register -#define AT91C_HDMA_GCFG (AT91C_CAST(AT91C_REG *) 0xFFFFEC00) // (HDMA) HDMA Global Configuration Register -#define AT91C_HDMA_CHER (AT91C_CAST(AT91C_REG *) 0xFFFFEC28) // (HDMA) HDMA Channel Handler Enable Register -#define AT91C_HDMA_RSVD1 (AT91C_CAST(AT91C_REG *) 0xFFFFEC38) // (HDMA) HDMA Reserved -#define AT91C_HDMA_CHDR (AT91C_CAST(AT91C_REG *) 0xFFFFEC2C) // (HDMA) HDMA Channel Handler Disable Register -#define AT91C_HDMA_EBCIMR (AT91C_CAST(AT91C_REG *) 0xFFFFEC20) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Mask Register -#define AT91C_HDMA_CREQ (AT91C_CAST(AT91C_REG *) 0xFFFFEC0C) // (HDMA) HDMA Software Chunk Transfer Request Register -#define AT91C_HDMA_SYNC (AT91C_CAST(AT91C_REG *) 0xFFFFEC14) // (HDMA) HDMA Request Synchronization Register -#define AT91C_HDMA_EN (AT91C_CAST(AT91C_REG *) 0xFFFFEC04) // (HDMA) HDMA Controller Enable Register -#define AT91C_HDMA_EBCISR (AT91C_CAST(AT91C_REG *) 0xFFFFEC24) // (HDMA) HDMA Error, Chained Buffer transfer completed and Buffer transfer completed Status Register -#define AT91C_HDMA_CHSR (AT91C_CAST(AT91C_REG *) 0xFFFFEC30) // (HDMA) HDMA Channel Handler Status Register -// ========== Register definition for HECC peripheral ========== -#define AT91C_HECC_VR (AT91C_CAST(AT91C_REG *) 0xFFFFE2FC) // (HECC) ECC Version register -#define AT91C_HECC_SR (AT91C_CAST(AT91C_REG *) 0xFFFFE208) // (HECC) ECC Status register -#define AT91C_HECC_CR (AT91C_CAST(AT91C_REG *) 0xFFFFE200) // (HECC) ECC reset register -#define AT91C_HECC_NPR (AT91C_CAST(AT91C_REG *) 0xFFFFE210) // (HECC) ECC Parity N register -#define AT91C_HECC_PR (AT91C_CAST(AT91C_REG *) 0xFFFFE20C) // (HECC) ECC Parity register -#define AT91C_HECC_MR (AT91C_CAST(AT91C_REG *) 0xFFFFE204) // (HECC) ECC Page size register -// ========== Register definition for EMACB peripheral ========== -#define AT91C_EMACB_ALE (AT91C_CAST(AT91C_REG *) 0xFFFBC054) // (EMACB) Alignment Error Register -#define AT91C_EMACB_RRE (AT91C_CAST(AT91C_REG *) 0xFFFBC06C) // (EMACB) Receive Ressource Error Register -#define AT91C_EMACB_SA4H (AT91C_CAST(AT91C_REG *) 0xFFFBC0B4) // (EMACB) Specific Address 4 Top, Last 2 bytes -#define AT91C_EMACB_TPQ (AT91C_CAST(AT91C_REG *) 0xFFFBC0BC) // (EMACB) Transmit Pause Quantum Register -#define AT91C_EMACB_RJA (AT91C_CAST(AT91C_REG *) 0xFFFBC07C) // (EMACB) Receive Jabbers Register -#define AT91C_EMACB_SA2H (AT91C_CAST(AT91C_REG *) 0xFFFBC0A4) // (EMACB) Specific Address 2 Top, Last 2 bytes -#define AT91C_EMACB_TPF (AT91C_CAST(AT91C_REG *) 0xFFFBC08C) // (EMACB) Transmitted Pause Frames Register -#define AT91C_EMACB_ROV (AT91C_CAST(AT91C_REG *) 0xFFFBC070) // (EMACB) Receive Overrun Errors Register -#define AT91C_EMACB_SA4L (AT91C_CAST(AT91C_REG *) 0xFFFBC0B0) // (EMACB) Specific Address 4 Bottom, First 4 bytes -#define AT91C_EMACB_MAN (AT91C_CAST(AT91C_REG *) 0xFFFBC034) // (EMACB) PHY Maintenance Register -#define AT91C_EMACB_TID (AT91C_CAST(AT91C_REG *) 0xFFFBC0B8) // (EMACB) Type ID Checking Register -#define AT91C_EMACB_TBQP (AT91C_CAST(AT91C_REG *) 0xFFFBC01C) // (EMACB) Transmit Buffer Queue Pointer -#define AT91C_EMACB_SA3L (AT91C_CAST(AT91C_REG *) 0xFFFBC0A8) // (EMACB) Specific Address 3 Bottom, First 4 bytes -#define AT91C_EMACB_DTF (AT91C_CAST(AT91C_REG *) 0xFFFBC058) // (EMACB) Deferred Transmission Frame Register -#define AT91C_EMACB_PTR (AT91C_CAST(AT91C_REG *) 0xFFFBC038) // (EMACB) Pause Time Register -#define AT91C_EMACB_CSE (AT91C_CAST(AT91C_REG *) 0xFFFBC068) // (EMACB) Carrier Sense Error Register -#define AT91C_EMACB_ECOL (AT91C_CAST(AT91C_REG *) 0xFFFBC060) // (EMACB) Excessive Collision Register -#define AT91C_EMACB_STE (AT91C_CAST(AT91C_REG *) 0xFFFBC084) // (EMACB) SQE Test Error Register -#define AT91C_EMACB_MCF (AT91C_CAST(AT91C_REG *) 0xFFFBC048) // (EMACB) Multiple Collision Frame Register -#define AT91C_EMACB_IER (AT91C_CAST(AT91C_REG *) 0xFFFBC028) // (EMACB) Interrupt Enable Register -#define AT91C_EMACB_ELE (AT91C_CAST(AT91C_REG *) 0xFFFBC078) // (EMACB) Excessive Length Errors Register -#define AT91C_EMACB_USRIO (AT91C_CAST(AT91C_REG *) 0xFFFBC0C0) // (EMACB) USER Input/Output Register -#define AT91C_EMACB_PFR (AT91C_CAST(AT91C_REG *) 0xFFFBC03C) // (EMACB) Pause Frames received Register -#define AT91C_EMACB_FCSE (AT91C_CAST(AT91C_REG *) 0xFFFBC050) // (EMACB) Frame Check Sequence Error Register -#define AT91C_EMACB_SA1L (AT91C_CAST(AT91C_REG *) 0xFFFBC098) // (EMACB) Specific Address 1 Bottom, First 4 bytes -#define AT91C_EMACB_NCR (AT91C_CAST(AT91C_REG *) 0xFFFBC000) // (EMACB) Network Control Register -#define AT91C_EMACB_HRT (AT91C_CAST(AT91C_REG *) 0xFFFBC094) // (EMACB) Hash Address Top[63:32] -#define AT91C_EMACB_NCFGR (AT91C_CAST(AT91C_REG *) 0xFFFBC004) // (EMACB) Network Configuration Register -#define AT91C_EMACB_SCF (AT91C_CAST(AT91C_REG *) 0xFFFBC044) // (EMACB) Single Collision Frame Register -#define AT91C_EMACB_LCOL (AT91C_CAST(AT91C_REG *) 0xFFFBC05C) // (EMACB) Late Collision Register -#define AT91C_EMACB_SA3H (AT91C_CAST(AT91C_REG *) 0xFFFBC0AC) // (EMACB) Specific Address 3 Top, Last 2 bytes -#define AT91C_EMACB_HRB (AT91C_CAST(AT91C_REG *) 0xFFFBC090) // (EMACB) Hash Address Bottom[31:0] -#define AT91C_EMACB_ISR (AT91C_CAST(AT91C_REG *) 0xFFFBC024) // (EMACB) Interrupt Status Register -#define AT91C_EMACB_IMR (AT91C_CAST(AT91C_REG *) 0xFFFBC030) // (EMACB) Interrupt Mask Register -#define AT91C_EMACB_WOL (AT91C_CAST(AT91C_REG *) 0xFFFBC0C4) // (EMACB) Wake On LAN Register -#define AT91C_EMACB_USF (AT91C_CAST(AT91C_REG *) 0xFFFBC080) // (EMACB) Undersize Frames Register -#define AT91C_EMACB_TSR (AT91C_CAST(AT91C_REG *) 0xFFFBC014) // (EMACB) Transmit Status Register -#define AT91C_EMACB_FRO (AT91C_CAST(AT91C_REG *) 0xFFFBC04C) // (EMACB) Frames Received OK Register -#define AT91C_EMACB_IDR (AT91C_CAST(AT91C_REG *) 0xFFFBC02C) // (EMACB) Interrupt Disable Register -#define AT91C_EMACB_SA1H (AT91C_CAST(AT91C_REG *) 0xFFFBC09C) // (EMACB) Specific Address 1 Top, Last 2 bytes -#define AT91C_EMACB_RLE (AT91C_CAST(AT91C_REG *) 0xFFFBC088) // (EMACB) Receive Length Field Mismatch Register -#define AT91C_EMACB_TUND (AT91C_CAST(AT91C_REG *) 0xFFFBC064) // (EMACB) Transmit Underrun Error Register -#define AT91C_EMACB_RSR (AT91C_CAST(AT91C_REG *) 0xFFFBC020) // (EMACB) Receive Status Register -#define AT91C_EMACB_SA2L (AT91C_CAST(AT91C_REG *) 0xFFFBC0A0) // (EMACB) Specific Address 2 Bottom, First 4 bytes -#define AT91C_EMACB_FTO (AT91C_CAST(AT91C_REG *) 0xFFFBC040) // (EMACB) Frames Transmitted OK Register -#define AT91C_EMACB_RSE (AT91C_CAST(AT91C_REG *) 0xFFFBC074) // (EMACB) Receive Symbol Errors Register -#define AT91C_EMACB_NSR (AT91C_CAST(AT91C_REG *) 0xFFFBC008) // (EMACB) Network Status Register -#define AT91C_EMACB_RBQP (AT91C_CAST(AT91C_REG *) 0xFFFBC018) // (EMACB) Receive Buffer Queue Pointer -#define AT91C_EMACB_REV (AT91C_CAST(AT91C_REG *) 0xFFFBC0FC) // (EMACB) Revision Register -// ========== Register definition for ISI peripheral ========== -#define AT91C_ISI_DMACHDR (AT91C_CAST(AT91C_REG *) 0xFFFB403C) // (ISI) DMA Channel Disable Register -#define AT91C_ISI_IMR (AT91C_CAST(AT91C_REG *) 0xFFFB4034) // (ISI) Interrupt Mask Register -#define AT91C_ISI_R2YSET1 (AT91C_CAST(AT91C_REG *) 0xFFFB401C) // (ISI) Color Space Conversion RGB to YCrCb Register -#define AT91C_ISI_PDECF (AT91C_CAST(AT91C_REG *) 0xFFFB400C) // (ISI) Preview Decimation Factor Register -#define AT91C_ISI_CFG2 (AT91C_CAST(AT91C_REG *) 0xFFFB4004) // (ISI) Configuration Register 2 -#define AT91C_ISI_DMACCTRL (AT91C_CAST(AT91C_REG *) 0xFFFB4054) // (ISI) DMA Codec Control Register -#define AT91C_ISI_CTRL (AT91C_CAST(AT91C_REG *) 0xFFFB4024) // (ISI) Control Register -#define AT91C_ISI_Y2RSET0 (AT91C_CAST(AT91C_REG *) 0xFFFB4010) // (ISI) Color Space Conversion YCrCb to RGB Register -#define AT91C_ISI_WPSR (AT91C_CAST(AT91C_REG *) 0xFFFB40E8) // (ISI) Write Protection Status Register -#define AT91C_ISI_DMACHER (AT91C_CAST(AT91C_REG *) 0xFFFB4038) // (ISI) DMA Channel Enable Register -#define AT91C_ISI_DMACHSR (AT91C_CAST(AT91C_REG *) 0xFFFB4040) // (ISI) DMA Channel Status Register -#define AT91C_ISI_IDR (AT91C_CAST(AT91C_REG *) 0xFFFB4030) // (ISI) Interrupt Disable Register -#define AT91C_ISI_VER (AT91C_CAST(AT91C_REG *) 0xFFFB40FC) // (ISI) Version Register -#define AT91C_ISI_Y2RSET1 (AT91C_CAST(AT91C_REG *) 0xFFFB4014) // (ISI) Color Space Conversion YCrCb to RGB Register -#define AT91C_ISI_R2YSET2 (AT91C_CAST(AT91C_REG *) 0xFFFB4020) // (ISI) Color Space Conversion RGB to YCrCb Register -#define AT91C_ISI_SR (AT91C_CAST(AT91C_REG *) 0xFFFB4028) // (ISI) Status Register -#define AT91C_ISI_DMACDSCR (AT91C_CAST(AT91C_REG *) 0xFFFB4058) // (ISI) DMA Codec Descriptor Address Register -#define AT91C_ISI_IER (AT91C_CAST(AT91C_REG *) 0xFFFB402C) // (ISI) Interrupt Enable Register -#define AT91C_ISI_WPCR (AT91C_CAST(AT91C_REG *) 0xFFFB40E4) // (ISI) Write Protection Control Register -#define AT91C_ISI_DMACADDR (AT91C_CAST(AT91C_REG *) 0xFFFB4050) // (ISI) DMA Codec Base Address Register -#define AT91C_ISI_CFG1 (AT91C_CAST(AT91C_REG *) 0xFFFB4000) // (ISI) Configuration Register 1 -#define AT91C_ISI_R2YSET0 (AT91C_CAST(AT91C_REG *) 0xFFFB4018) // (ISI) Color Space Conversion RGB to YCrCb Register -#define AT91C_ISI_PSIZE (AT91C_CAST(AT91C_REG *) 0xFFFB4008) // (ISI) Preview Size Register -#define AT91C_ISI_DMAPDSCR (AT91C_CAST(AT91C_REG *) 0xFFFB404C) // (ISI) DMA Preview Descriptor Address Register -#define AT91C_ISI_DMAPADDR (AT91C_CAST(AT91C_REG *) 0xFFFB4044) // (ISI) DMA Preview Base Address Register -#define AT91C_ISI_DMAPCTRL (AT91C_CAST(AT91C_REG *) 0xFFFB4048) // (ISI) DMA Preview Control Register -// ========== Register definition for UHPHS_OHCI peripheral ========== -#define AT91C_OHCI_HcRhPortStatus (AT91C_CAST(AT91C_REG *) 0x00700054) // (UHPHS_OHCI) Root Hub Port Status Register -#define AT91C_OHCI_HcFmRemaining (AT91C_CAST(AT91C_REG *) 0x00700038) // (UHPHS_OHCI) Bit time remaining in the current Frame -#define AT91C_OHCI_HcInterruptEnable (AT91C_CAST(AT91C_REG *) 0x00700010) // (UHPHS_OHCI) Interrupt Enable Register -#define AT91C_OHCI_HcControl (AT91C_CAST(AT91C_REG *) 0x00700004) // (UHPHS_OHCI) Operating modes for the Host Controller -#define AT91C_OHCI_HcPeriodicStart (AT91C_CAST(AT91C_REG *) 0x00700040) // (UHPHS_OHCI) Periodic Start -#define AT91C_OHCI_HcInterruptStatus (AT91C_CAST(AT91C_REG *) 0x0070000C) // (UHPHS_OHCI) Interrupt Status Register -#define AT91C_OHCI_HcRhDescriptorB (AT91C_CAST(AT91C_REG *) 0x0070004C) // (UHPHS_OHCI) Root Hub characteristics B -#define AT91C_OHCI_HcInterruptDisable (AT91C_CAST(AT91C_REG *) 0x00700014) // (UHPHS_OHCI) Interrupt Disable Register -#define AT91C_OHCI_HcPeriodCurrentED (AT91C_CAST(AT91C_REG *) 0x0070001C) // (UHPHS_OHCI) Current Isochronous or Interrupt Endpoint Descriptor -#define AT91C_OHCI_HcRhDescriptorA (AT91C_CAST(AT91C_REG *) 0x00700048) // (UHPHS_OHCI) Root Hub characteristics A -#define AT91C_OHCI_HcRhStatus (AT91C_CAST(AT91C_REG *) 0x00700050) // (UHPHS_OHCI) Root Hub Status register -#define AT91C_OHCI_HcBulkCurrentED (AT91C_CAST(AT91C_REG *) 0x0070002C) // (UHPHS_OHCI) Current endpoint of the Bulk list -#define AT91C_OHCI_HcControlHeadED (AT91C_CAST(AT91C_REG *) 0x00700020) // (UHPHS_OHCI) First Endpoint Descriptor of the Control list -#define AT91C_OHCI_HcLSThreshold (AT91C_CAST(AT91C_REG *) 0x00700044) // (UHPHS_OHCI) LS Threshold -#define AT91C_OHCI_HcRevision (AT91C_CAST(AT91C_REG *) 0x00700000) // (UHPHS_OHCI) Revision -#define AT91C_OHCI_HcBulkDoneHead (AT91C_CAST(AT91C_REG *) 0x00700030) // (UHPHS_OHCI) Last completed transfer descriptor -#define AT91C_OHCI_HcFmNumber (AT91C_CAST(AT91C_REG *) 0x0070003C) // (UHPHS_OHCI) Frame number -#define AT91C_OHCI_HcFmInterval (AT91C_CAST(AT91C_REG *) 0x00700034) // (UHPHS_OHCI) Bit time between 2 consecutive SOFs -#define AT91C_OHCI_HcBulkHeadED (AT91C_CAST(AT91C_REG *) 0x00700028) // (UHPHS_OHCI) First endpoint register of the Bulk list -#define AT91C_OHCI_HcHCCA (AT91C_CAST(AT91C_REG *) 0x00700018) // (UHPHS_OHCI) Pointer to the Host Controller Communication Area -#define AT91C_OHCI_HcCommandStatus (AT91C_CAST(AT91C_REG *) 0x00700008) // (UHPHS_OHCI) Command & status Register -#define AT91C_OHCI_HcControlCurrentED (AT91C_CAST(AT91C_REG *) 0x00700024) // (UHPHS_OHCI) Endpoint Control and Status Register -// ========== Register definition for UHPHS_EHCI peripheral ========== -#define AT91C_EHCI_USBSTS (AT91C_CAST(AT91C_REG *) 0x00800014) // (UHPHS_EHCI) -#define AT91C_EHCI_INSNREG03 (AT91C_CAST(AT91C_REG *) 0x0080009C) // (UHPHS_EHCI) -#define AT91C_EHCI_INSNREG00 (AT91C_CAST(AT91C_REG *) 0x00800090) // (UHPHS_EHCI) -#define AT91C_EHCI_HCSPPORTROUTE (AT91C_CAST(AT91C_REG *) 0x0080000C) // (UHPHS_EHCI) -#define AT91C_EHCI_FRINDEX (AT91C_CAST(AT91C_REG *) 0x0080001C) // (UHPHS_EHCI) -#define AT91C_EHCI_CONFIGFLAG (AT91C_CAST(AT91C_REG *) 0x00800050) // (UHPHS_EHCI) -#define AT91C_EHCI_HCCPARAMS (AT91C_CAST(AT91C_REG *) 0x00800008) // (UHPHS_EHCI) -#define AT91C_EHCI_USBINTR (AT91C_CAST(AT91C_REG *) 0x00800018) // (UHPHS_EHCI) -#define AT91C_EHCI_PORTSC (AT91C_CAST(AT91C_REG *) 0x00800054) // (UHPHS_EHCI) -#define AT91C_EHCI_CTRLDSSEGMENT (AT91C_CAST(AT91C_REG *) 0x00800020) // (UHPHS_EHCI) -#define AT91C_EHCI_VERSION (AT91C_CAST(AT91C_REG *) 0x00800000) // (UHPHS_EHCI) -#define AT91C_EHCI_USBCMD (AT91C_CAST(AT91C_REG *) 0x00800010) // (UHPHS_EHCI) -#define AT91C_EHCI_INSNREG04 (AT91C_CAST(AT91C_REG *) 0x008000A0) // (UHPHS_EHCI) -#define AT91C_EHCI_PERIODICLISTBASE (AT91C_CAST(AT91C_REG *) 0x00800024) // (UHPHS_EHCI) -#define AT91C_EHCI_INSNREG01 (AT91C_CAST(AT91C_REG *) 0x00800094) // (UHPHS_EHCI) -#define AT91C_EHCI_HCSPARAMS (AT91C_CAST(AT91C_REG *) 0x00800004) // (UHPHS_EHCI) -#define AT91C_EHCI_INSNREG05 (AT91C_CAST(AT91C_REG *) 0x008000A4) // (UHPHS_EHCI) -#define AT91C_EHCI_ASYNCLISTADDR (AT91C_CAST(AT91C_REG *) 0x00800028) // (UHPHS_EHCI) -#define AT91C_EHCI_INSNREG02 (AT91C_CAST(AT91C_REG *) 0x00800098) // (UHPHS_EHCI) -// ========== Register definition for TRNG peripheral ========== -#define AT91C_TRNG_IDR (AT91C_CAST(AT91C_REG *) 0xFFFCC014) // (TRNG) Interrupt Disable Register -#define AT91C_TRNG_IER (AT91C_CAST(AT91C_REG *) 0xFFFCC010) // (TRNG) Interrupt Enable Register -#define AT91C_TRNG_VERSION (AT91C_CAST(AT91C_REG *) 0xFFFCC0FC) // (TRNG) TRNG Version Register -#define AT91C_TRNG_ISR (AT91C_CAST(AT91C_REG *) 0xFFFCC01C) // (TRNG) Interrupt Status Register -#define AT91C_TRNG_CR (AT91C_CAST(AT91C_REG *) 0xFFFCC000) // (TRNG) Control Register -#define AT91C_TRNG_ODATA (AT91C_CAST(AT91C_REG *) 0xFFFCC050) // (TRNG) Output Data Register -#define AT91C_TRNG_IMR (AT91C_CAST(AT91C_REG *) 0xFFFCC018) // (TRNG) Interrupt Mask Register - -// ***************************************************************************** -// PIO DEFINITIONS FOR AT91SAM9G45 -// ***************************************************************************** -#define AT91C_PIO_PA0 (1 << 0) // Pin Controlled by PA0 -#define AT91C_PA0_MCI0_CK (AT91C_PIO_PA0) // -#define AT91C_PA0_TCLK3 (AT91C_PIO_PA0) // -#define AT91C_PIO_PA1 (1 << 1) // Pin Controlled by PA1 -#define AT91C_PA1_MCI0_CDA (AT91C_PIO_PA1) // -#define AT91C_PA1_TIOA3 (AT91C_PIO_PA1) // -#define AT91C_PIO_PA10 (1 << 10) // Pin Controlled by PA10 -#define AT91C_PA10_ETX0 (AT91C_PIO_PA10) // Ethernet MAC Transmit Data 0 -#define AT91C_PIO_PA11 (1 << 11) // Pin Controlled by PA11 -#define AT91C_PA11_ETX1 (AT91C_PIO_PA11) // Ethernet MAC Transmit Data 1 -#define AT91C_PIO_PA12 (1 << 12) // Pin Controlled by PA12 -#define AT91C_PA12_ERX0 (AT91C_PIO_PA12) // Ethernet MAC Receive Data 0 -#define AT91C_PIO_PA13 (1 << 13) // Pin Controlled by PA13 -#define AT91C_PA13_ERX1 (AT91C_PIO_PA13) // Ethernet MAC Receive Data 1 -#define AT91C_PIO_PA14 (1 << 14) // Pin Controlled by PA14 -#define AT91C_PA14_ETXEN (AT91C_PIO_PA14) // Ethernet MAC Transmit Enable -#define AT91C_PIO_PA15 (1 << 15) // Pin Controlled by PA15 -#define AT91C_PA15_ERXDV (AT91C_PIO_PA15) // Ethernet MAC Receive Data Valid -#define AT91C_PIO_PA16 (1 << 16) // Pin Controlled by PA16 -#define AT91C_PA16_ERXER (AT91C_PIO_PA16) // Ethernet MAC Receive Error -#define AT91C_PIO_PA17 (1 << 17) // Pin Controlled by PA17 -#define AT91C_PA17_ETXCK_EREFCK (AT91C_PIO_PA17) // Ethernet MAC Transmit Clock/Reference Clock -#define AT91C_PIO_PA18 (1 << 18) // Pin Controlled by PA18 -#define AT91C_PA18_EMDC (AT91C_PIO_PA18) // Ethernet MAC Management Data Clock -#define AT91C_PIO_PA19 (1 << 19) // Pin Controlled by PA19 -#define AT91C_PA19_EMDIO (AT91C_PIO_PA19) // Ethernet MAC Management Data Input/Output -#define AT91C_PIO_PA2 (1 << 2) // Pin Controlled by PA2 -#define AT91C_PA2_MCI0_DA0 (AT91C_PIO_PA2) // -#define AT91C_PA2_TIOB3 (AT91C_PIO_PA2) // -#define AT91C_PIO_PA20 (1 << 20) // Pin Controlled by PA20 -#define AT91C_PA20_TWD0 (AT91C_PIO_PA20) // TWI Two-wire Serial Data -#define AT91C_PIO_PA21 (1 << 21) // Pin Controlled by PA21 -#define AT91C_PA21_TWCK0 (AT91C_PIO_PA21) // TWI Two-wire Serial Clock -#define AT91C_PIO_PA22 (1 << 22) // Pin Controlled by PA22 -#define AT91C_PA22_MCI1_CDA (AT91C_PIO_PA22) // -#define AT91C_PA22_SCK3 (AT91C_PIO_PA22) // -#define AT91C_PIO_PA23 (1 << 23) // Pin Controlled by PA23 -#define AT91C_PA23_MCI1_DA0 (AT91C_PIO_PA23) // -#define AT91C_PA23_RTS3 (AT91C_PIO_PA23) // -#define AT91C_PIO_PA24 (1 << 24) // Pin Controlled by PA24 -#define AT91C_PA24_MCI1_DA1 (AT91C_PIO_PA24) // -#define AT91C_PA24_CTS3 (AT91C_PIO_PA24) // -#define AT91C_PIO_PA25 (1 << 25) // Pin Controlled by PA25 -#define AT91C_PA25_MCI1_DA2 (AT91C_PIO_PA25) // -#define AT91C_PA25_PWM3 (AT91C_PIO_PA25) // -#define AT91C_PIO_PA26 (1 << 26) // Pin Controlled by PA26 -#define AT91C_PA26_MCI1_DA3 (AT91C_PIO_PA26) // -#define AT91C_PA26_TIOB2 (AT91C_PIO_PA26) // -#define AT91C_PIO_PA27 (1 << 27) // Pin Controlled by PA27 -#define AT91C_PA27_MCI1_DA4 (AT91C_PIO_PA27) // -#define AT91C_PA27_ETXER (AT91C_PIO_PA27) // Ethernet MAC Transmikt Coding Error -#define AT91C_PIO_PA28 (1 << 28) // Pin Controlled by PA28 -#define AT91C_PA28_MCI1_DA5 (AT91C_PIO_PA28) // -#define AT91C_PA28_ERXCK (AT91C_PIO_PA28) // Ethernet MAC Receive Clock -#define AT91C_PIO_PA29 (1 << 29) // Pin Controlled by PA29 -#define AT91C_PA29_MCI1_DA6 (AT91C_PIO_PA29) // -#define AT91C_PA29_ECRS (AT91C_PIO_PA29) // Ethernet MAC Carrier Sense/Carrier Sense and Data Valid -#define AT91C_PIO_PA3 (1 << 3) // Pin Controlled by PA3 -#define AT91C_PA3_MCI0_DA1 (AT91C_PIO_PA3) // -#define AT91C_PA3_TCLK4 (AT91C_PIO_PA3) // -#define AT91C_PIO_PA30 (1 << 30) // Pin Controlled by PA30 -#define AT91C_PA30_MCI1_DA7 (AT91C_PIO_PA30) // -#define AT91C_PA30_ECOL (AT91C_PIO_PA30) // Ethernet MAC Collision Detected -#define AT91C_PIO_PA31 (1 << 31) // Pin Controlled by PA31 -#define AT91C_PA31_MCI1_CK (AT91C_PIO_PA31) // -#define AT91C_PA31_PCK0 (AT91C_PIO_PA31) // -#define AT91C_PIO_PA4 (1 << 4) // Pin Controlled by PA4 -#define AT91C_PA4_MCI0_DA2 (AT91C_PIO_PA4) // -#define AT91C_PA4_TIOA4 (AT91C_PIO_PA4) // -#define AT91C_PIO_PA5 (1 << 5) // Pin Controlled by PA5 -#define AT91C_PA5_MCI0_DA3 (AT91C_PIO_PA5) // -#define AT91C_PA5_TIOB4 (AT91C_PIO_PA5) // -#define AT91C_PIO_PA6 (1 << 6) // Pin Controlled by PA6 -#define AT91C_PA6_MCI0_DA4 (AT91C_PIO_PA6) // -#define AT91C_PA6_ETX2 (AT91C_PIO_PA6) // Ethernet MAC Transmit Data 2 -#define AT91C_PIO_PA7 (1 << 7) // Pin Controlled by PA7 -#define AT91C_PA7_MCI0_DA5 (AT91C_PIO_PA7) // -#define AT91C_PA7_ETX3 (AT91C_PIO_PA7) // Ethernet MAC Transmit Data 3 -#define AT91C_PIO_PA8 (1 << 8) // Pin Controlled by PA8 -#define AT91C_PA8_MCI0_DA6 (AT91C_PIO_PA8) // -#define AT91C_PA8_ERX2 (AT91C_PIO_PA8) // Ethernet MAC Receive Data 2 -#define AT91C_PIO_PA9 (1 << 9) // Pin Controlled by PA9 -#define AT91C_PA9_MCI0_DA7 (AT91C_PIO_PA9) // -#define AT91C_PA9_ERX3 (AT91C_PIO_PA9) // Ethernet MAC Receive Data 3 -#define AT91C_PIO_PB0 (1 << 0) // Pin Controlled by PB0 -#define AT91C_PB0_SPI0_MISO (AT91C_PIO_PB0) // SPI 0 Master In Slave -#define AT91C_PIO_PB1 (1 << 1) // Pin Controlled by PB1 -#define AT91C_PB1_SPI0_MOSI (AT91C_PIO_PB1) // SPI 0 Master Out Slave -#define AT91C_PIO_PB10 (1 << 10) // Pin Controlled by PB10 -#define AT91C_PB10_TWD1 (AT91C_PIO_PB10) // -#define AT91C_PB10_ISI_D10 (AT91C_PIO_PB10) // -#define AT91C_PIO_PB11 (1 << 11) // Pin Controlled by PB11 -#define AT91C_PB11_TWCK1 (AT91C_PIO_PB11) // -#define AT91C_PB11_ISI_D11 (AT91C_PIO_PB11) // -#define AT91C_PIO_PB12 (1 << 12) // Pin Controlled by PB12 -#define AT91C_PB12_DRXD (AT91C_PIO_PB12) // -#define AT91C_PIO_PB13 (1 << 13) // Pin Controlled by PB13 -#define AT91C_PB13_DTXD (AT91C_PIO_PB13) // -#define AT91C_PIO_PB14 (1 << 14) // Pin Controlled by PB14 -#define AT91C_PB14_SPI1_MISO (AT91C_PIO_PB14) // -#define AT91C_PIO_PB15 (1 << 15) // Pin Controlled by PB15 -#define AT91C_PB15_SPI1_MOSI (AT91C_PIO_PB15) // -#define AT91C_PB15_CTS0 (AT91C_PIO_PB15) // -#define AT91C_PIO_PB16 (1 << 16) // Pin Controlled by PB16 -#define AT91C_PB16_SPI1_SPCK (AT91C_PIO_PB16) // -#define AT91C_PB16_SCK0 (AT91C_PIO_PB16) // -#define AT91C_PIO_PB17 (1 << 17) // Pin Controlled by PB17 -#define AT91C_PB17_SPI1_NPCS0 (AT91C_PIO_PB17) // -#define AT91C_PB17_RTS0 (AT91C_PIO_PB17) // -#define AT91C_PIO_PB18 (1 << 18) // Pin Controlled by PB18 -#define AT91C_PB18_RXD0 (AT91C_PIO_PB18) // -#define AT91C_PB18_SPI0_NPCS1 (AT91C_PIO_PB18) // -#define AT91C_PIO_PB19 (1 << 19) // Pin Controlled by PB19 -#define AT91C_PB19_TXD0 (AT91C_PIO_PB19) // -#define AT91C_PB19_SPI0_NPCS2 (AT91C_PIO_PB19) // -#define AT91C_PIO_PB2 (1 << 2) // Pin Controlled by PB2 -#define AT91C_PB2_SPI0_SPCK (AT91C_PIO_PB2) // SPI 0 Serial Clock -#define AT91C_PIO_PB20 (1 << 20) // Pin Controlled by PB20 -#define AT91C_PB20_ISI_D0 (AT91C_PIO_PB20) // -#define AT91C_PIO_PB21 (1 << 21) // Pin Controlled by PB21 -#define AT91C_PB21_ISI_D1 (AT91C_PIO_PB21) // -#define AT91C_PIO_PB22 (1 << 22) // Pin Controlled by PB22 -#define AT91C_PB22_ISI_D2 (AT91C_PIO_PB22) // -#define AT91C_PIO_PB23 (1 << 23) // Pin Controlled by PB23 -#define AT91C_PB23_ISI_D3 (AT91C_PIO_PB23) // -#define AT91C_PIO_PB24 (1 << 24) // Pin Controlled by PB24 -#define AT91C_PB24_ISI_D4 (AT91C_PIO_PB24) // -#define AT91C_PIO_PB25 (1 << 25) // Pin Controlled by PB25 -#define AT91C_PB25_ISI_D5 (AT91C_PIO_PB25) // -#define AT91C_PIO_PB26 (1 << 26) // Pin Controlled by PB26 -#define AT91C_PB26_ISI_D6 (AT91C_PIO_PB26) // -#define AT91C_PIO_PB27 (1 << 27) // Pin Controlled by PB27 -#define AT91C_PB27_ISI_D7 (AT91C_PIO_PB27) // -#define AT91C_PIO_PB28 (1 << 28) // Pin Controlled by PB28 -#define AT91C_PB28_ISI_PCK (AT91C_PIO_PB28) // -#define AT91C_PIO_PB29 (1 << 29) // Pin Controlled by PB29 -#define AT91C_PB29_ISI_VSYNC (AT91C_PIO_PB29) // -#define AT91C_PIO_PB3 (1 << 3) // Pin Controlled by PB3 -#define AT91C_PB3_SPI0_NPCS0 (AT91C_PIO_PB3) // SPI 0 Peripheral Chip Select 0 -#define AT91C_PIO_PB30 (1 << 30) // Pin Controlled by PB30 -#define AT91C_PB30_ISI_HSYNC (AT91C_PIO_PB30) // -#define AT91C_PIO_PB31 (1 << 31) // Pin Controlled by PB31 -#define AT91C_PB31_ (AT91C_PIO_PB31) // -#define AT91C_PB31_PCK1 (AT91C_PIO_PB31) // -#define AT91C_PIO_PB4 (1 << 4) // Pin Controlled by PB4 -#define AT91C_PB4_TXD1 (AT91C_PIO_PB4) // USART 1 Transmit Data -#define AT91C_PIO_PB5 (1 << 5) // Pin Controlled by PB5 -#define AT91C_PB5_RXD1 (AT91C_PIO_PB5) // USART 1 Receive Data -#define AT91C_PIO_PB6 (1 << 6) // Pin Controlled by PB6 -#define AT91C_PB6_TXD2 (AT91C_PIO_PB6) // USART 2 Transmit Data -#define AT91C_PIO_PB7 (1 << 7) // Pin Controlled by PB7 -#define AT91C_PB7_RXD2 (AT91C_PIO_PB7) // USART 2 Receive Data -#define AT91C_PIO_PB8 (1 << 8) // Pin Controlled by PB8 -#define AT91C_PB8_TXD3 (AT91C_PIO_PB8) // USART 3 Transmit Data -#define AT91C_PB8_ISI_D8 (AT91C_PIO_PB8) // -#define AT91C_PIO_PB9 (1 << 9) // Pin Controlled by PB9 -#define AT91C_PB9_RXD3 (AT91C_PIO_PB9) // USART 3 Receive Data -#define AT91C_PB9_ISI_D9 (AT91C_PIO_PB9) // -#define AT91C_PIO_PC0 (1 << 0) // Pin Controlled by PC0 -#define AT91C_PC0_DQM2 (AT91C_PIO_PC0) // DQM2 -#define AT91C_PIO_PC1 (1 << 1) // Pin Controlled by PC1 -#define AT91C_PC1_DQM3 (AT91C_PIO_PC1) // DQM3 -#define AT91C_PIO_PC10 (1 << 10) // Pin Controlled by PC10 -#define AT91C_PC10_NCS4_CFCS0 (AT91C_PIO_PC10) // -#define AT91C_PC10_TCLK2 (AT91C_PIO_PC10) // -#define AT91C_PIO_PC11 (1 << 11) // Pin Controlled by PC11 -#define AT91C_PC11_NCS5_CFCS1 (AT91C_PIO_PC11) // -#define AT91C_PC11_CTS2 (AT91C_PIO_PC11) // -#define AT91C_PIO_PC12 (1 << 12) // Pin Controlled by PC12 -#define AT91C_PC12_A25_CFRNW (AT91C_PIO_PC12) // -#define AT91C_PIO_PC13 (1 << 13) // Pin Controlled by PC13 -#define AT91C_PC13_NCS2 (AT91C_PIO_PC13) // -#define AT91C_PIO_PC14 (1 << 14) // Pin Controlled by PC14 -#define AT91C_PC14_NCS3_NANDCS (AT91C_PIO_PC14) // -#define AT91C_PIO_PC15 (1 << 15) // Pin Controlled by PC15 -#define AT91C_PC15_NWAIT (AT91C_PIO_PC15) // -#define AT91C_PIO_PC16 (1 << 16) // Pin Controlled by PC16 -#define AT91C_PC16_D16 (AT91C_PIO_PC16) // -#define AT91C_PIO_PC17 (1 << 17) // Pin Controlled by PC17 -#define AT91C_PC17_D17 (AT91C_PIO_PC17) // -#define AT91C_PIO_PC18 (1 << 18) // Pin Controlled by PC18 -#define AT91C_PC18_D18 (AT91C_PIO_PC18) // -#define AT91C_PIO_PC19 (1 << 19) // Pin Controlled by PC19 -#define AT91C_PC19_D19 (AT91C_PIO_PC19) // -#define AT91C_PIO_PC2 (1 << 2) // Pin Controlled by PC2 -#define AT91C_PC2_A19 (AT91C_PIO_PC2) // -#define AT91C_PIO_PC20 (1 << 20) // Pin Controlled by PC20 -#define AT91C_PC20_D20 (AT91C_PIO_PC20) // -#define AT91C_PIO_PC21 (1 << 21) // Pin Controlled by PC21 -#define AT91C_PC21_D21 (AT91C_PIO_PC21) // -#define AT91C_PIO_PC22 (1 << 22) // Pin Controlled by PC22 -#define AT91C_PC22_D22 (AT91C_PIO_PC22) // -#define AT91C_PIO_PC23 (1 << 23) // Pin Controlled by PC23 -#define AT91C_PC23_D23 (AT91C_PIO_PC23) // -#define AT91C_PIO_PC24 (1 << 24) // Pin Controlled by PC24 -#define AT91C_PC24_D24 (AT91C_PIO_PC24) // -#define AT91C_PIO_PC25 (1 << 25) // Pin Controlled by PC25 -#define AT91C_PC25_D25 (AT91C_PIO_PC25) // -#define AT91C_PIO_PC26 (1 << 26) // Pin Controlled by PC26 -#define AT91C_PC26_D26 (AT91C_PIO_PC26) // -#define AT91C_PIO_PC27 (1 << 27) // Pin Controlled by PC27 -#define AT91C_PC27_D27 (AT91C_PIO_PC27) // -#define AT91C_PIO_PC28 (1 << 28) // Pin Controlled by PC28 -#define AT91C_PC28_D28 (AT91C_PIO_PC28) // -#define AT91C_PIO_PC29 (1 << 29) // Pin Controlled by PC29 -#define AT91C_PC29_D29 (AT91C_PIO_PC29) // -#define AT91C_PIO_PC3 (1 << 3) // Pin Controlled by PC3 -#define AT91C_PC3_A20 (AT91C_PIO_PC3) // -#define AT91C_PIO_PC30 (1 << 30) // Pin Controlled by PC30 -#define AT91C_PC30_D30 (AT91C_PIO_PC30) // -#define AT91C_PIO_PC31 (1 << 31) // Pin Controlled by PC31 -#define AT91C_PC31_D31 (AT91C_PIO_PC31) // -#define AT91C_PIO_PC4 (1 << 4) // Pin Controlled by PC4 -#define AT91C_PC4_A21_NANDALE (AT91C_PIO_PC4) // -#define AT91C_PIO_PC5 (1 << 5) // Pin Controlled by PC5 -#define AT91C_PC5_A22_NANDCLE (AT91C_PIO_PC5) // -#define AT91C_PIO_PC6 (1 << 6) // Pin Controlled by PC6 -#define AT91C_PC6_A23 (AT91C_PIO_PC6) // -#define AT91C_PIO_PC7 (1 << 7) // Pin Controlled by PC7 -#define AT91C_PC7_A24 (AT91C_PIO_PC7) // -#define AT91C_PIO_PC8 (1 << 8) // Pin Controlled by PC8 -#define AT91C_PC8_CFCE1 (AT91C_PIO_PC8) // -#define AT91C_PIO_PC9 (1 << 9) // Pin Controlled by PC9 -#define AT91C_PC9_CFCE2 (AT91C_PIO_PC9) // -#define AT91C_PC9_RTS2 (AT91C_PIO_PC9) // -#define AT91C_PIO_PD0 (1 << 0) // Pin Controlled by PD0 -#define AT91C_PD0_TK0 (AT91C_PIO_PD0) // -#define AT91C_PD0_PWM3 (AT91C_PIO_PD0) // -#define AT91C_PIO_PD1 (1 << 1) // Pin Controlled by PD1 -#define AT91C_PD1_TF0 (AT91C_PIO_PD1) // -#define AT91C_PIO_PD10 (1 << 10) // Pin Controlled by PD10 -#define AT91C_PD10_TD1 (AT91C_PIO_PD10) // -#define AT91C_PIO_PD11 (1 << 11) // Pin Controlled by PD11 -#define AT91C_PD11_RD1 (AT91C_PIO_PD11) // -#define AT91C_PIO_PD12 (1 << 12) // Pin Controlled by PD12 -#define AT91C_PD12_TK1 (AT91C_PIO_PD12) // -#define AT91C_PD12_PCK0 (AT91C_PIO_PD12) // -#define AT91C_PIO_PD13 (1 << 13) // Pin Controlled by PD13 -#define AT91C_PD13_RK1 (AT91C_PIO_PD13) // -#define AT91C_PIO_PD14 (1 << 14) // Pin Controlled by PD14 -#define AT91C_PD14_TF1 (AT91C_PIO_PD14) // -#define AT91C_PIO_PD15 (1 << 15) // Pin Controlled by PD15 -#define AT91C_PD15_RF1 (AT91C_PIO_PD15) // -#define AT91C_PIO_PD16 (1 << 16) // Pin Controlled by PD16 -#define AT91C_PD16_RTS1 (AT91C_PIO_PD16) // -#define AT91C_PIO_PD17 (1 << 17) // Pin Controlled by PD17 -#define AT91C_PD17_CTS1 (AT91C_PIO_PD17) // -#define AT91C_PIO_PD18 (1 << 18) // Pin Controlled by PD18 -#define AT91C_PD18_SPI1_NPCS2 (AT91C_PIO_PD18) // -#define AT91C_PD18_IRQ (AT91C_PIO_PD18) // -#define AT91C_PIO_PD19 (1 << 19) // Pin Controlled by PD19 -#define AT91C_PD19_SPI1_NPCS3 (AT91C_PIO_PD19) // -#define AT91C_PD19_FIQ (AT91C_PIO_PD19) // -#define AT91C_PIO_PD2 (1 << 2) // Pin Controlled by PD2 -#define AT91C_PD2_TD0 (AT91C_PIO_PD2) // -#define AT91C_PIO_PD20 (1 << 20) // Pin Controlled by PD20 -#define AT91C_PD20_TIOA0 (AT91C_PIO_PD20) // -#define AT91C_PIO_PD21 (1 << 21) // Pin Controlled by PD21 -#define AT91C_PD21_TIOA1 (AT91C_PIO_PD21) // -#define AT91C_PIO_PD22 (1 << 22) // Pin Controlled by PD22 -#define AT91C_PD22_TIOA2 (AT91C_PIO_PD22) // -#define AT91C_PIO_PD23 (1 << 23) // Pin Controlled by PD23 -#define AT91C_PD23_TCLK0 (AT91C_PIO_PD23) // -#define AT91C_PIO_PD24 (1 << 24) // Pin Controlled by PD24 -#define AT91C_PD24_SPI0_NPCS1 (AT91C_PIO_PD24) // -#define AT91C_PD24_PWM0 (AT91C_PIO_PD24) // -#define AT91C_PIO_PD25 (1 << 25) // Pin Controlled by PD25 -#define AT91C_PD25_SPI0_NPCS2 (AT91C_PIO_PD25) // -#define AT91C_PD25_PWM1 (AT91C_PIO_PD25) // -#define AT91C_PIO_PD26 (1 << 26) // Pin Controlled by PD26 -#define AT91C_PD26_PCK0 (AT91C_PIO_PD26) // -#define AT91C_PD26_PWM2 (AT91C_PIO_PD26) // -#define AT91C_PIO_PD27 (1 << 27) // Pin Controlled by PD27 -#define AT91C_PD27_PCK1 (AT91C_PIO_PD27) // -#define AT91C_PD27_SPI0_NPCS3 (AT91C_PIO_PD27) // -#define AT91C_PIO_PD28 (1 << 28) // Pin Controlled by PD28 -#define AT91C_PD28_TSADTRG (AT91C_PIO_PD28) // -#define AT91C_PD28_SPI1_NPCS1 (AT91C_PIO_PD28) // -#define AT91C_PIO_PD29 (1 << 29) // Pin Controlled by PD29 -#define AT91C_PD29_TCLK1 (AT91C_PIO_PD29) // -#define AT91C_PD29_SCK1 (AT91C_PIO_PD29) // -#define AT91C_PIO_PD3 (1 << 3) // Pin Controlled by PD3 -#define AT91C_PD3_RD0 (AT91C_PIO_PD3) // -#define AT91C_PIO_PD30 (1 << 30) // Pin Controlled by PD30 -#define AT91C_PD30_TIOB0 (AT91C_PIO_PD30) // -#define AT91C_PD30_SCK2 (AT91C_PIO_PD30) // -#define AT91C_PIO_PD31 (1 << 31) // Pin Controlled by PD31 -#define AT91C_PD31_TIOB1 (AT91C_PIO_PD31) // -#define AT91C_PD31_PWM1 (AT91C_PIO_PD31) // -#define AT91C_PIO_PD4 (1 << 4) // Pin Controlled by PD4 -#define AT91C_PD4_RK0 (AT91C_PIO_PD4) // -#define AT91C_PIO_PD5 (1 << 5) // Pin Controlled by PD5 -#define AT91C_PD5_RF0 (AT91C_PIO_PD5) // -#define AT91C_PIO_PD6 (1 << 6) // Pin Controlled by PD6 -#define AT91C_PD6_AC97RX (AT91C_PIO_PD6) // -#define AT91C_PIO_PD7 (1 << 7) // Pin Controlled by PD7 -#define AT91C_PD7_AC97TX (AT91C_PIO_PD7) // -#define AT91C_PD7_TIOA5 (AT91C_PIO_PD7) // -#define AT91C_PIO_PD8 (1 << 8) // Pin Controlled by PD8 -#define AT91C_PD8_AC97FS (AT91C_PIO_PD8) // -#define AT91C_PD8_TIOB5 (AT91C_PIO_PD8) // -#define AT91C_PIO_PD9 (1 << 9) // Pin Controlled by PD9 -#define AT91C_PD9_AC97CK (AT91C_PIO_PD9) // -#define AT91C_PD9_TCLK5 (AT91C_PIO_PD9) // -#define AT91C_PIO_PE0 (1 << 0) // Pin Controlled by PE0 -#define AT91C_PE0_LCDPWR (AT91C_PIO_PE0) // -#define AT91C_PE0_PCK0 (AT91C_PIO_PE0) // -#define AT91C_PIO_PE1 (1 << 1) // Pin Controlled by PE1 -#define AT91C_PE1_LCDMOD (AT91C_PIO_PE1) // -#define AT91C_PIO_PE10 (1 << 10) // Pin Controlled by PE10 -#define AT91C_PE10_LCDD3 (AT91C_PIO_PE10) // -#define AT91C_PE10_LCDD5 (AT91C_PIO_PE10) // -#define AT91C_PIO_PE11 (1 << 11) // Pin Controlled by PE11 -#define AT91C_PE11_LCDD4 (AT91C_PIO_PE11) // -#define AT91C_PE11_LCDD6 (AT91C_PIO_PE11) // -#define AT91C_PIO_PE12 (1 << 12) // Pin Controlled by PE12 -#define AT91C_PE12_LCDD5 (AT91C_PIO_PE12) // -#define AT91C_PE12_LCDD7 (AT91C_PIO_PE12) // -#define AT91C_PIO_PE13 (1 << 13) // Pin Controlled by PE13 -#define AT91C_PE13_LCDD6 (AT91C_PIO_PE13) // -#define AT91C_PE13_LCDD10 (AT91C_PIO_PE13) // -#define AT91C_PIO_PE14 (1 << 14) // Pin Controlled by PE14 -#define AT91C_PE14_LCDD7 (AT91C_PIO_PE14) // -#define AT91C_PE14_LCDD11 (AT91C_PIO_PE14) // -#define AT91C_PIO_PE15 (1 << 15) // Pin Controlled by PE15 -#define AT91C_PE15_LCDD8 (AT91C_PIO_PE15) // -#define AT91C_PE15_LCDD12 (AT91C_PIO_PE15) // -#define AT91C_PIO_PE16 (1 << 16) // Pin Controlled by PE16 -#define AT91C_PE16_LCDD9 (AT91C_PIO_PE16) // -#define AT91C_PE16_LCDD13 (AT91C_PIO_PE16) // -#define AT91C_PIO_PE17 (1 << 17) // Pin Controlled by PE17 -#define AT91C_PE17_LCDD10 (AT91C_PIO_PE17) // -#define AT91C_PE17_LCDD14 (AT91C_PIO_PE17) // -#define AT91C_PIO_PE18 (1 << 18) // Pin Controlled by PE18 -#define AT91C_PE18_LCDD11 (AT91C_PIO_PE18) // -#define AT91C_PE18_LCDD15 (AT91C_PIO_PE18) // -#define AT91C_PIO_PE19 (1 << 19) // Pin Controlled by PE19 -#define AT91C_PE19_LCDD12 (AT91C_PIO_PE19) // -#define AT91C_PE19_LCDD18 (AT91C_PIO_PE19) // -#define AT91C_PIO_PE2 (1 << 2) // Pin Controlled by PE2 -#define AT91C_PE2_LCDCC (AT91C_PIO_PE2) // -#define AT91C_PIO_PE20 (1 << 20) // Pin Controlled by PE20 -#define AT91C_PE20_LCDD13 (AT91C_PIO_PE20) // -#define AT91C_PE20_LCDD19 (AT91C_PIO_PE20) // -#define AT91C_PIO_PE21 (1 << 21) // Pin Controlled by PE21 -#define AT91C_PE21_LCDD14 (AT91C_PIO_PE21) // -#define AT91C_PE21_LCDD20 (AT91C_PIO_PE21) // -#define AT91C_PIO_PE22 (1 << 22) // Pin Controlled by PE22 -#define AT91C_PE22_LCDD15 (AT91C_PIO_PE22) // -#define AT91C_PE22_LCDD21 (AT91C_PIO_PE22) // -#define AT91C_PIO_PE23 (1 << 23) // Pin Controlled by PE23 -#define AT91C_PE23_LCDD16 (AT91C_PIO_PE23) // -#define AT91C_PE23_LCDD22 (AT91C_PIO_PE23) // -#define AT91C_PIO_PE24 (1 << 24) // Pin Controlled by PE24 -#define AT91C_PE24_LCDD17 (AT91C_PIO_PE24) // -#define AT91C_PE24_LCDD23 (AT91C_PIO_PE24) // -#define AT91C_PIO_PE25 (1 << 25) // Pin Controlled by PE25 -#define AT91C_PE25_LCDD18 (AT91C_PIO_PE25) // -#define AT91C_PIO_PE26 (1 << 26) // Pin Controlled by PE26 -#define AT91C_PE26_LCDD19 (AT91C_PIO_PE26) // -#define AT91C_PIO_PE27 (1 << 27) // Pin Controlled by PE27 -#define AT91C_PE27_LCDD20 (AT91C_PIO_PE27) // -#define AT91C_PIO_PE28 (1 << 28) // Pin Controlled by PE28 -#define AT91C_PE28_LCDD21 (AT91C_PIO_PE28) // -#define AT91C_PIO_PE29 (1 << 29) // Pin Controlled by PE29 -#define AT91C_PE29_LCDD22 (AT91C_PIO_PE29) // -#define AT91C_PIO_PE3 (1 << 3) // Pin Controlled by PE3 -#define AT91C_PE3_LCDVSYNC (AT91C_PIO_PE3) // -#define AT91C_PIO_PE30 (1 << 30) // Pin Controlled by PE30 -#define AT91C_PE30_LCDD23 (AT91C_PIO_PE30) // -#define AT91C_PIO_PE31 (1 << 31) // Pin Controlled by PE31 -#define AT91C_PE31_PWM2 (AT91C_PIO_PE31) // -#define AT91C_PE31_PCK1 (AT91C_PIO_PE31) // -#define AT91C_PIO_PE4 (1 << 4) // Pin Controlled by PE4 -#define AT91C_PE4_LCDHSYNC (AT91C_PIO_PE4) // -#define AT91C_PIO_PE5 (1 << 5) // Pin Controlled by PE5 -#define AT91C_PE5_LCDDOTCK (AT91C_PIO_PE5) // -#define AT91C_PIO_PE6 (1 << 6) // Pin Controlled by PE6 -#define AT91C_PE6_LCDDEN (AT91C_PIO_PE6) // -#define AT91C_PIO_PE7 (1 << 7) // Pin Controlled by PE7 -#define AT91C_PE7_LCDD0 (AT91C_PIO_PE7) // -#define AT91C_PE7_LCDD2 (AT91C_PIO_PE7) // -#define AT91C_PIO_PE8 (1 << 8) // Pin Controlled by PE8 -#define AT91C_PE8_LCDD1 (AT91C_PIO_PE8) // -#define AT91C_PE8_LCDD3 (AT91C_PIO_PE8) // -#define AT91C_PIO_PE9 (1 << 9) // Pin Controlled by PE9 -#define AT91C_PE9_LCDD2 (AT91C_PIO_PE9) // -#define AT91C_PE9_LCDD4 (AT91C_PIO_PE9) // - -// ***************************************************************************** -// PERIPHERAL ID DEFINITIONS FOR AT91SAM9G45 -// ***************************************************************************** -#define AT91C_ID_FIQ ( 0) // Advanced Interrupt Controller (FIQ) -#define AT91C_ID_SYS ( 1) // System Controller -#define AT91C_ID_PIOA ( 2) // Parallel IO Controller A -#define AT91C_ID_PIOB ( 3) // Parallel IO Controller B -#define AT91C_ID_PIOC ( 4) // Parallel IO Controller C -#define AT91C_ID_PIOD_E ( 5) // Parallel IO Controller D and E -#define AT91C_ID_TRNG ( 6) // True Random Number Generator -#define AT91C_ID_US0 ( 7) // USART 0 -#define AT91C_ID_US1 ( 8) // USART 1 -#define AT91C_ID_US2 ( 9) // USART 2 -#define AT91C_ID_US3 (10) // USART 2 -#define AT91C_ID_MCI0 (11) // Multimedia Card Interface 0 -#define AT91C_ID_TWI0 (12) // TWI 0 -#define AT91C_ID_TWI1 (13) // TWI 1 -#define AT91C_ID_SPI0 (14) // Serial Peripheral Interface -#define AT91C_ID_SPI1 (15) // Serial Peripheral Interface -#define AT91C_ID_SSC0 (16) // Serial Synchronous Controller 0 -#define AT91C_ID_SSC1 (17) // Serial Synchronous Controller 1 -#define AT91C_ID_TC (18) // Timer Counter 0, 1, 2, 3, 4, 5 -#define AT91C_ID_PWMC (19) // Pulse Width Modulation Controller -#define AT91C_ID_TSADC (20) // Touch Screen Controller -#define AT91C_ID_HDMA (21) // HDMA -#define AT91C_ID_UHPHS (22) // USB Host High Speed -#define AT91C_ID_LCDC (23) // LCD Controller -#define AT91C_ID_AC97C (24) // AC97 Controller -#define AT91C_ID_EMAC (25) // Ethernet MAC -#define AT91C_ID_ISI (26) // Image Sensor Interface -#define AT91C_ID_UDPHS (27) // USB Device HS -#define AT91C_ID_MCI1 (29) // Multimedia Card Interface 1 -#define AT91C_ID_VDEC (30) // Video Decoder -#define AT91C_ID_IRQ0 (31) // Advanced Interrupt Controller (IRQ0) -#define AT91C_ALL_INT (0xEFFFFFFF) // ALL VALID INTERRUPTS - -// ***************************************************************************** -// BASE ADDRESS DEFINITIONS FOR AT91SAM9G45 -// ***************************************************************************** -#define AT91C_BASE_SFR (AT91C_CAST(AT91PS_SFR) 0xFFF74000) // (SFR) Base Address -#define AT91C_BASE_SYS (AT91C_CAST(AT91PS_SYS) 0xFFFFC000) // (SYS) Base Address -#define AT91C_BASE_EBI (AT91C_CAST(AT91PS_EBI) 0xFFFFE200) // (EBI) Base Address -#define AT91C_BASE_DDR2CP1 (AT91C_CAST(AT91PS_HDDRSDRC2) 0xFFFFE400) // (DDR2CP1) Base Address -#define AT91C_BASE_DDR2C (AT91C_CAST(AT91PS_HDDRSDRC2) 0xFFFFE600) // (DDR2C) Base Address -#define AT91C_BASE_SMC (AT91C_CAST(AT91PS_SMC) 0xFFFFE800) // (SMC) Base Address -#define AT91C_BASE_MATRIX (AT91C_CAST(AT91PS_MATRIX) 0xFFFFEA00) // (MATRIX) Base Address -#define AT91C_BASE_AIC (AT91C_CAST(AT91PS_AIC) 0xFFFFF000) // (AIC) Base Address -#define AT91C_BASE_PDC_DBGU (AT91C_CAST(AT91PS_PDC) 0xFFFFEF00) // (PDC_DBGU) Base Address -#define AT91C_BASE_DBGU (AT91C_CAST(AT91PS_DBGU) 0xFFFFEE00) // (DBGU) Base Address -#define AT91C_BASE_PIOA (AT91C_CAST(AT91PS_PIO) 0xFFFFF200) // (PIOA) Base Address -#define AT91C_BASE_PIOB (AT91C_CAST(AT91PS_PIO) 0xFFFFF400) // (PIOB) Base Address -#define AT91C_BASE_PIOC (AT91C_CAST(AT91PS_PIO) 0xFFFFF600) // (PIOC) Base Address -#define AT91C_BASE_PIOD (AT91C_CAST(AT91PS_PIO) 0xFFFFF800) // (PIOD) Base Address -#define AT91C_BASE_PIOE (AT91C_CAST(AT91PS_PIO) 0xFFFFFA00) // (PIOE) Base Address -#define AT91C_BASE_PMC (AT91C_CAST(AT91PS_PMC) 0xFFFFFC00) // (PMC) Base Address -#define AT91C_BASE_CKGR (AT91C_CAST(AT91PS_CKGR) 0xFFFFFC1C) // (CKGR) Base Address -#define AT91C_BASE_RSTC (AT91C_CAST(AT91PS_RSTC) 0xFFFFFD00) // (RSTC) Base Address -#define AT91C_BASE_SHDWC (AT91C_CAST(AT91PS_SHDWC) 0xFFFFFD10) // (SHDWC) Base Address -#define AT91C_BASE_RTTC (AT91C_CAST(AT91PS_RTTC) 0xFFFFFD20) // (RTTC) Base Address -#define AT91C_BASE_PITC (AT91C_CAST(AT91PS_PITC) 0xFFFFFD30) // (PITC) Base Address -#define AT91C_BASE_WDTC (AT91C_CAST(AT91PS_WDTC) 0xFFFFFD40) // (WDTC) Base Address -#define AT91C_BASE_RTC (AT91C_CAST(AT91PS_RTC) 0xFFFFFDB0) // (RTC) Base Address -#define AT91C_BASE_TC0 (AT91C_CAST(AT91PS_TC) 0xFFF7C000) // (TC0) Base Address -#define AT91C_BASE_TC1 (AT91C_CAST(AT91PS_TC) 0xFFF7C040) // (TC1) Base Address -#define AT91C_BASE_TC2 (AT91C_CAST(AT91PS_TC) 0xFFF7C080) // (TC2) Base Address -#define AT91C_BASE_TC3 (AT91C_CAST(AT91PS_TC) 0xFFFD4000) // (TC3) Base Address -#define AT91C_BASE_TC4 (AT91C_CAST(AT91PS_TC) 0xFFFD4040) // (TC4) Base Address -#define AT91C_BASE_TC5 (AT91C_CAST(AT91PS_TC) 0xFFFD4080) // (TC5) Base Address -#define AT91C_BASE_TCB0 (AT91C_CAST(AT91PS_TCB) 0xFFF7C000) // (TCB0) Base Address -#define AT91C_BASE_TCB1 (AT91C_CAST(AT91PS_TCB) 0xFFFD4000) // (TCB1) Base Address -#define AT91C_BASE_MCI0 (AT91C_CAST(AT91PS_MCI) 0xFFF80000) // (MCI0) Base Address -#define AT91C_BASE_MCI1 (AT91C_CAST(AT91PS_MCI) 0xFFFD0000) // (MCI1) Base Address -#define AT91C_BASE_TWI0 (AT91C_CAST(AT91PS_TWI) 0xFFF84000) // (TWI0) Base Address -#define AT91C_BASE_TWI1 (AT91C_CAST(AT91PS_TWI) 0xFFF88000) // (TWI1) Base Address -#define AT91C_BASE_PDC_US0 (AT91C_CAST(AT91PS_PDC) 0xFFF8C100) // (PDC_US0) Base Address -#define AT91C_BASE_US0 (AT91C_CAST(AT91PS_USART) 0xFFF8C000) // (US0) Base Address -#define AT91C_BASE_PDC_US1 (AT91C_CAST(AT91PS_PDC) 0xFFF90100) // (PDC_US1) Base Address -#define AT91C_BASE_US1 (AT91C_CAST(AT91PS_USART) 0xFFF90000) // (US1) Base Address -#define AT91C_BASE_PDC_US2 (AT91C_CAST(AT91PS_PDC) 0xFFF94100) // (PDC_US2) Base Address -#define AT91C_BASE_US2 (AT91C_CAST(AT91PS_USART) 0xFFF94000) // (US2) Base Address -#define AT91C_BASE_PDC_US3 (AT91C_CAST(AT91PS_PDC) 0xFFF98100) // (PDC_US3) Base Address -#define AT91C_BASE_US3 (AT91C_CAST(AT91PS_USART) 0xFFF98000) // (US3) Base Address -#define AT91C_BASE_PDC_SSC0 (AT91C_CAST(AT91PS_PDC) 0xFFF9C100) // (PDC_SSC0) Base Address -#define AT91C_BASE_SSC0 (AT91C_CAST(AT91PS_SSC) 0xFFF9C000) // (SSC0) Base Address -#define AT91C_BASE_PDC_SSC1 (AT91C_CAST(AT91PS_PDC) 0xFFFA0100) // (PDC_SSC1) Base Address -#define AT91C_BASE_SSC1 (AT91C_CAST(AT91PS_SSC) 0xFFFA0000) // (SSC1) Base Address -#define AT91C_BASE_PWMC_CH0 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8200) // (PWMC_CH0) Base Address -#define AT91C_BASE_PWMC_CH1 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8220) // (PWMC_CH1) Base Address -#define AT91C_BASE_PWMC_CH2 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8240) // (PWMC_CH2) Base Address -#define AT91C_BASE_PWMC_CH3 (AT91C_CAST(AT91PS_PWMC_CH) 0xFFFB8260) // (PWMC_CH3) Base Address -#define AT91C_BASE_PWMC (AT91C_CAST(AT91PS_PWMC) 0xFFFB8000) // (PWMC) Base Address -#define AT91C_BASE_PDC_SPI0 (AT91C_CAST(AT91PS_PDC) 0xFFFA4100) // (PDC_SPI0) Base Address -#define AT91C_BASE_PDC_SPI1 (AT91C_CAST(AT91PS_PDC) 0xFFFA8100) // (PDC_SPI1) Base Address -#define AT91C_BASE_SPI0 (AT91C_CAST(AT91PS_SPI) 0xFFFA4000) // (SPI0) Base Address -#define AT91C_BASE_SPI1 (AT91C_CAST(AT91PS_SPI) 0xFFFA8000) // (SPI1) Base Address -#define AT91C_BASE_PDC_TSADC (AT91C_CAST(AT91PS_PDC) 0xFFFB0100) // (PDC_TSADC) Base Address -#define AT91C_BASE_TSADC (AT91C_CAST(AT91PS_TSADC) 0xFFFB0000) // (TSADC) Base Address -#define AT91C_BASE_UDPHS_EPTFIFO (AT91C_CAST(AT91PS_UDPHS_EPTFIFO) 0x00600000) // (UDPHS_EPTFIFO) Base Address -#define AT91C_BASE_UDPHS_EPT_0 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78100) // (UDPHS_EPT_0) Base Address -#define AT91C_BASE_UDPHS_EPT_1 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78120) // (UDPHS_EPT_1) Base Address -#define AT91C_BASE_UDPHS_EPT_2 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78140) // (UDPHS_EPT_2) Base Address -#define AT91C_BASE_UDPHS_EPT_3 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78160) // (UDPHS_EPT_3) Base Address -#define AT91C_BASE_UDPHS_EPT_4 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF78180) // (UDPHS_EPT_4) Base Address -#define AT91C_BASE_UDPHS_EPT_5 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF781A0) // (UDPHS_EPT_5) Base Address -#define AT91C_BASE_UDPHS_EPT_6 (AT91C_CAST(AT91PS_UDPHS_EPT) 0xFFF781C0) // (UDPHS_EPT_6) Base Address -#define AT91C_BASE_UDPHS_DMA_1 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78310) // (UDPHS_DMA_1) Base Address -#define AT91C_BASE_UDPHS_DMA_2 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78320) // (UDPHS_DMA_2) Base Address -#define AT91C_BASE_UDPHS_DMA_3 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78330) // (UDPHS_DMA_3) Base Address -#define AT91C_BASE_UDPHS_DMA_4 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78340) // (UDPHS_DMA_4) Base Address -#define AT91C_BASE_UDPHS_DMA_5 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78350) // (UDPHS_DMA_5) Base Address -#define AT91C_BASE_UDPHS_DMA_6 (AT91C_CAST(AT91PS_UDPHS_DMA) 0xFFF78360) // (UDPHS_DMA_6) Base Address -#define AT91C_BASE_UDPHS (AT91C_CAST(AT91PS_UDPHS) 0xFFF78000) // (UDPHS) Base Address -#define AT91C_BASE_PDC_AC97C (AT91C_CAST(AT91PS_PDC) 0xFFFAC100) // (PDC_AC97C) Base Address -#define AT91C_BASE_AC97C (AT91C_CAST(AT91PS_AC97C) 0xFFFAC000) // (AC97C) Base Address -#define AT91C_BASE_LCDC (AT91C_CAST(AT91PS_LCDC) 0x00500000) // (LCDC) Base Address -#define AT91C_BASE_LCDC_16B_TFT (AT91C_CAST(AT91PS_LCDC) 0x00500000) // (LCDC_16B_TFT) Base Address -#define AT91C_BASE_HDMA_CH_0 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFEC3C) // (HDMA_CH_0) Base Address -#define AT91C_BASE_HDMA_CH_1 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFEC64) // (HDMA_CH_1) Base Address -#define AT91C_BASE_HDMA_CH_2 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFEC8C) // (HDMA_CH_2) Base Address -#define AT91C_BASE_HDMA_CH_3 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFECB4) // (HDMA_CH_3) Base Address -#define AT91C_BASE_HDMA_CH_4 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFECDC) // (HDMA_CH_4) Base Address -#define AT91C_BASE_HDMA_CH_5 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFED04) // (HDMA_CH_5) Base Address -#define AT91C_BASE_HDMA_CH_6 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFED2C) // (HDMA_CH_6) Base Address -#define AT91C_BASE_HDMA_CH_7 (AT91C_CAST(AT91PS_HDMA_CH) 0xFFFFED54) // (HDMA_CH_7) Base Address -#define AT91C_BASE_HDMA (AT91C_CAST(AT91PS_HDMA) 0xFFFFEC00) // (HDMA) Base Address -#define AT91C_BASE_HECC (AT91C_CAST(AT91PS_ECC) 0xFFFFE200) // (HECC) Base Address -#define AT91C_BASE_EMACB (AT91C_CAST(AT91PS_EMAC) 0xFFFBC000) // (EMACB) Base Address -#define AT91C_BASE_ISI (AT91C_CAST(AT91PS_ISI) 0xFFFB4000) // (ISI) Base Address -#define AT91C_BASE_UHPHS_OHCI (AT91C_CAST(AT91PS_UHPHS_OHCI) 0x00700000) // (UHPHS_OHCI) Base Address -#define AT91C_BASE_UHPHS_EHCI (AT91C_CAST(AT91PS_UHPHS_EHCI) 0x00800000) // (UHPHS_EHCI) Base Address -#define AT91C_BASE_TRNG (AT91C_CAST(AT91PS_TRNG) 0xFFFCC000) // (TRNG) Base Address - -// ***************************************************************************** -// MEMORY MAPPING DEFINITIONS FOR AT91SAM9G45 -// ***************************************************************************** -// ITCM -#define AT91C_ITCM (0x00100000) // Maximum ITCM Area base address -// DTCM -#define AT91C_DTCM (0x00200000) // Maximum DTCM Area base address -// IRAM -#define AT91C_IRAM (0x00300000) // Maximum Internal SRAM base address -#define AT91C_IRAM_SIZE (0x00010000) // Maximum Internal SRAM size in byte (64 Kbytes) -// IRAM_MIN -#define AT91C_IRAM_MIN (0x00300000) // Minimum Internal RAM base address -#define AT91C_IRAM_MIN_SIZE (0x00004000) // Minimum Internal RAM size in byte (16 Kbytes) -// IROM -#define AT91C_IROM (0x00400000) // Internal ROM base address -#define AT91C_IROM_SIZE (0x00010000) // Internal ROM size in byte (64 Kbytes) -// EBI_CS0 -#define AT91C_EBI_CS0 (0x10000000) // EBI Chip Select 0 base address -#define AT91C_EBI_CS0_SIZE (0x10000000) // EBI Chip Select 0 size in byte (262144 Kbytes) -// EBI_CS1 -#define AT91C_EBI_CS1 (0x20000000) // EBI Chip Select 1 base address -#define AT91C_EBI_CS1_SIZE (0x10000000) // EBI Chip Select 1 size in byte (262144 Kbytes) -// EBI_SDRAM -#define AT91C_EBI_SDRAM (0x20000000) // SDRAM on EBI Chip Select 1 base address -#define AT91C_EBI_SDRAM_SIZE (0x10000000) // SDRAM on EBI Chip Select 1 size in byte (262144 Kbytes) -// EBI_SDRAM_16BIT -#define AT91C_EBI_SDRAM_16BIT (0x20000000) // SDRAM on EBI Chip Select 1 base address -#define AT91C_EBI_SDRAM_16BIT_SIZE (0x02000000) // SDRAM on EBI Chip Select 1 size in byte (32768 Kbytes) -// EBI_SDRAM_32BIT -#define AT91C_EBI_SDRAM_32BIT (0x20000000) // SDRAM on EBI Chip Select 1 base address -#define AT91C_EBI_SDRAM_32BIT_SIZE (0x04000000) // SDRAM on EBI Chip Select 1 size in byte (65536 Kbytes) -// EBI_CS2 -#define AT91C_EBI_CS2 (0x30000000) // EBI Chip Select 2 base address -#define AT91C_EBI_CS2_SIZE (0x10000000) // EBI Chip Select 2 size in byte (262144 Kbytes) -// EBI_CS3 -#define AT91C_EBI_CS3 (0x40000000) // EBI Chip Select 3 base address -#define AT91C_EBI_CS3_SIZE (0x10000000) // EBI Chip Select 3 size in byte (262144 Kbytes) -// EBI_SM -#define AT91C_EBI_SM (0x40000000) // NANDFLASH on EBI Chip Select 3 base address -#define AT91C_EBI_SM_SIZE (0x10000000) // NANDFLASH on EBI Chip Select 3 size in byte (262144 Kbytes) -// EBI_CS4 -#define AT91C_EBI_CS4 (0x50000000) // EBI Chip Select 4 base address -#define AT91C_EBI_CS4_SIZE (0x10000000) // EBI Chip Select 4 size in byte (262144 Kbytes) -// EBI_CF0 -#define AT91C_EBI_CF0 (0x50000000) // CompactFlash 0 on EBI Chip Select 4 base address -#define AT91C_EBI_CF0_SIZE (0x10000000) // CompactFlash 0 on EBI Chip Select 4 size in byte (262144 Kbytes) -// EBI_CS5 -#define AT91C_EBI_CS5 (0x60000000) // EBI Chip Select 5 base address -#define AT91C_EBI_CS5_SIZE (0x10000000) // EBI Chip Select 5 size in byte (262144 Kbytes) -// EBI_CF1 -#define AT91C_EBI_CF1 (0x60000000) // CompactFlash 1 on EBIChip Select 5 base address -#define AT91C_EBI_CF1_SIZE (0x10000000) // CompactFlash 1 on EBIChip Select 5 size in byte (262144 Kbytes) -// DDR2 -#define AT91C_DDR2 (0x70000000) // DDR2/LPDDR space base address -#define AT91C_DDR2_SIZE (0x10000000) // DDR2/LPDDR space size in byte (262144 Kbytes) - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include "io.h" -#include "irq.h" -#include "gpio.h" - -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - -extern struct clk *clk_get(const char *id); -extern rt_uint32_t clk_get_rate(struct clk *clk); -extern void rt_hw_clock_init(void); - -#define AT91C_SLOW_CLOCK 32768 /* slow clock */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/bsp/at91sam9g45/platform/gpio.h b/bsp/at91sam9g45/platform/gpio.h deleted file mode 100644 index e89ab368be..0000000000 --- a/bsp/at91sam9g45/platform/gpio.h +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __GPIO_H__ -#define __GPIO_H__ - -#include - -#define PIN_BASE AIC_IRQS - -#define MAX_GPIO_BANKS 5 - -#define PIN_IRQS (MAX_GPIO_BANKS*32) - -/* these pin numbers double as IRQ numbers, like AT91xxx_ID_* values */ - -#define AT91C_PIN_PA0 (PIN_BASE + 0x00 + 0) -#define AT91C_PIN_PA1 (PIN_BASE + 0x00 + 1) -#define AT91C_PIN_PA2 (PIN_BASE + 0x00 + 2) -#define AT91C_PIN_PA3 (PIN_BASE + 0x00 + 3) -#define AT91C_PIN_PA4 (PIN_BASE + 0x00 + 4) -#define AT91C_PIN_PA5 (PIN_BASE + 0x00 + 5) -#define AT91C_PIN_PA6 (PIN_BASE + 0x00 + 6) -#define AT91C_PIN_PA7 (PIN_BASE + 0x00 + 7) -#define AT91C_PIN_PA8 (PIN_BASE + 0x00 + 8) -#define AT91C_PIN_PA9 (PIN_BASE + 0x00 + 9) -#define AT91C_PIN_PA10 (PIN_BASE + 0x00 + 10) -#define AT91C_PIN_PA11 (PIN_BASE + 0x00 + 11) -#define AT91C_PIN_PA12 (PIN_BASE + 0x00 + 12) -#define AT91C_PIN_PA13 (PIN_BASE + 0x00 + 13) -#define AT91C_PIN_PA14 (PIN_BASE + 0x00 + 14) -#define AT91C_PIN_PA15 (PIN_BASE + 0x00 + 15) -#define AT91C_PIN_PA16 (PIN_BASE + 0x00 + 16) -#define AT91C_PIN_PA17 (PIN_BASE + 0x00 + 17) -#define AT91C_PIN_PA18 (PIN_BASE + 0x00 + 18) -#define AT91C_PIN_PA19 (PIN_BASE + 0x00 + 19) -#define AT91C_PIN_PA20 (PIN_BASE + 0x00 + 20) -#define AT91C_PIN_PA21 (PIN_BASE + 0x00 + 21) -#define AT91C_PIN_PA22 (PIN_BASE + 0x00 + 22) -#define AT91C_PIN_PA23 (PIN_BASE + 0x00 + 23) -#define AT91C_PIN_PA24 (PIN_BASE + 0x00 + 24) -#define AT91C_PIN_PA25 (PIN_BASE + 0x00 + 25) -#define AT91C_PIN_PA26 (PIN_BASE + 0x00 + 26) -#define AT91C_PIN_PA27 (PIN_BASE + 0x00 + 27) -#define AT91C_PIN_PA28 (PIN_BASE + 0x00 + 28) -#define AT91C_PIN_PA29 (PIN_BASE + 0x00 + 29) -#define AT91C_PIN_PA30 (PIN_BASE + 0x00 + 30) -#define AT91C_PIN_PA31 (PIN_BASE + 0x00 + 31) - -#define AT91C_PIN_PB0 (PIN_BASE + 0x20 + 0) -#define AT91C_PIN_PB1 (PIN_BASE + 0x20 + 1) -#define AT91C_PIN_PB2 (PIN_BASE + 0x20 + 2) -#define AT91C_PIN_PB3 (PIN_BASE + 0x20 + 3) -#define AT91C_PIN_PB4 (PIN_BASE + 0x20 + 4) -#define AT91C_PIN_PB5 (PIN_BASE + 0x20 + 5) -#define AT91C_PIN_PB6 (PIN_BASE + 0x20 + 6) -#define AT91C_PIN_PB7 (PIN_BASE + 0x20 + 7) -#define AT91C_PIN_PB8 (PIN_BASE + 0x20 + 8) -#define AT91C_PIN_PB9 (PIN_BASE + 0x20 + 9) -#define AT91C_PIN_PB10 (PIN_BASE + 0x20 + 10) -#define AT91C_PIN_PB11 (PIN_BASE + 0x20 + 11) -#define AT91C_PIN_PB12 (PIN_BASE + 0x20 + 12) -#define AT91C_PIN_PB13 (PIN_BASE + 0x20 + 13) -#define AT91C_PIN_PB14 (PIN_BASE + 0x20 + 14) -#define AT91C_PIN_PB15 (PIN_BASE + 0x20 + 15) -#define AT91C_PIN_PB16 (PIN_BASE + 0x20 + 16) -#define AT91C_PIN_PB17 (PIN_BASE + 0x20 + 17) -#define AT91C_PIN_PB18 (PIN_BASE + 0x20 + 18) -#define AT91C_PIN_PB19 (PIN_BASE + 0x20 + 19) -#define AT91C_PIN_PB20 (PIN_BASE + 0x20 + 20) -#define AT91C_PIN_PB21 (PIN_BASE + 0x20 + 21) -#define AT91C_PIN_PB22 (PIN_BASE + 0x20 + 22) -#define AT91C_PIN_PB23 (PIN_BASE + 0x20 + 23) -#define AT91C_PIN_PB24 (PIN_BASE + 0x20 + 24) -#define AT91C_PIN_PB25 (PIN_BASE + 0x20 + 25) -#define AT91C_PIN_PB26 (PIN_BASE + 0x20 + 26) -#define AT91C_PIN_PB27 (PIN_BASE + 0x20 + 27) -#define AT91C_PIN_PB28 (PIN_BASE + 0x20 + 28) -#define AT91C_PIN_PB29 (PIN_BASE + 0x20 + 29) -#define AT91C_PIN_PB30 (PIN_BASE + 0x20 + 30) -#define AT91C_PIN_PB31 (PIN_BASE + 0x20 + 31) - -#define AT91C_PIN_PC0 (PIN_BASE + 0x40 + 0) -#define AT91C_PIN_PC1 (PIN_BASE + 0x40 + 1) -#define AT91C_PIN_PC2 (PIN_BASE + 0x40 + 2) -#define AT91C_PIN_PC3 (PIN_BASE + 0x40 + 3) -#define AT91C_PIN_PC4 (PIN_BASE + 0x40 + 4) -#define AT91C_PIN_PC5 (PIN_BASE + 0x40 + 5) -#define AT91C_PIN_PC6 (PIN_BASE + 0x40 + 6) -#define AT91C_PIN_PC7 (PIN_BASE + 0x40 + 7) -#define AT91C_PIN_PC8 (PIN_BASE + 0x40 + 8) -#define AT91C_PIN_PC9 (PIN_BASE + 0x40 + 9) -#define AT91C_PIN_PC10 (PIN_BASE + 0x40 + 10) -#define AT91C_PIN_PC11 (PIN_BASE + 0x40 + 11) -#define AT91C_PIN_PC12 (PIN_BASE + 0x40 + 12) -#define AT91C_PIN_PC13 (PIN_BASE + 0x40 + 13) -#define AT91C_PIN_PC14 (PIN_BASE + 0x40 + 14) -#define AT91C_PIN_PC15 (PIN_BASE + 0x40 + 15) -#define AT91C_PIN_PC16 (PIN_BASE + 0x40 + 16) -#define AT91C_PIN_PC17 (PIN_BASE + 0x40 + 17) -#define AT91C_PIN_PC18 (PIN_BASE + 0x40 + 18) -#define AT91C_PIN_PC19 (PIN_BASE + 0x40 + 19) -#define AT91C_PIN_PC20 (PIN_BASE + 0x40 + 20) -#define AT91C_PIN_PC21 (PIN_BASE + 0x40 + 21) -#define AT91C_PIN_PC22 (PIN_BASE + 0x40 + 22) -#define AT91C_PIN_PC23 (PIN_BASE + 0x40 + 23) -#define AT91C_PIN_PC24 (PIN_BASE + 0x40 + 24) -#define AT91C_PIN_PC25 (PIN_BASE + 0x40 + 25) -#define AT91C_PIN_PC26 (PIN_BASE + 0x40 + 26) -#define AT91C_PIN_PC27 (PIN_BASE + 0x40 + 27) -#define AT91C_PIN_PC28 (PIN_BASE + 0x40 + 28) -#define AT91C_PIN_PC29 (PIN_BASE + 0x40 + 29) -#define AT91C_PIN_PC30 (PIN_BASE + 0x40 + 30) -#define AT91C_PIN_PC31 (PIN_BASE + 0x40 + 31) - -#define AT91C_PIN_PD0 (PIN_BASE + 0x60 + 0) -#define AT91C_PIN_PD1 (PIN_BASE + 0x60 + 1) -#define AT91C_PIN_PD2 (PIN_BASE + 0x60 + 2) -#define AT91C_PIN_PD3 (PIN_BASE + 0x60 + 3) -#define AT91C_PIN_PD4 (PIN_BASE + 0x60 + 4) -#define AT91C_PIN_PD5 (PIN_BASE + 0x60 + 5) -#define AT91C_PIN_PD6 (PIN_BASE + 0x60 + 6) -#define AT91C_PIN_PD7 (PIN_BASE + 0x60 + 7) -#define AT91C_PIN_PD8 (PIN_BASE + 0x60 + 8) -#define AT91C_PIN_PD9 (PIN_BASE + 0x60 + 9) -#define AT91C_PIN_PD10 (PIN_BASE + 0x60 + 10) -#define AT91C_PIN_PD11 (PIN_BASE + 0x60 + 11) -#define AT91C_PIN_PD12 (PIN_BASE + 0x60 + 12) -#define AT91C_PIN_PD13 (PIN_BASE + 0x60 + 13) -#define AT91C_PIN_PD14 (PIN_BASE + 0x60 + 14) -#define AT91C_PIN_PD15 (PIN_BASE + 0x60 + 15) -#define AT91C_PIN_PD16 (PIN_BASE + 0x60 + 16) -#define AT91C_PIN_PD17 (PIN_BASE + 0x60 + 17) -#define AT91C_PIN_PD18 (PIN_BASE + 0x60 + 18) -#define AT91C_PIN_PD19 (PIN_BASE + 0x60 + 19) -#define AT91C_PIN_PD20 (PIN_BASE + 0x60 + 20) -#define AT91C_PIN_PD21 (PIN_BASE + 0x60 + 21) -#define AT91C_PIN_PD22 (PIN_BASE + 0x60 + 22) -#define AT91C_PIN_PD23 (PIN_BASE + 0x60 + 23) -#define AT91C_PIN_PD24 (PIN_BASE + 0x60 + 24) -#define AT91C_PIN_PD25 (PIN_BASE + 0x60 + 25) -#define AT91C_PIN_PD26 (PIN_BASE + 0x60 + 26) -#define AT91C_PIN_PD27 (PIN_BASE + 0x60 + 27) -#define AT91C_PIN_PD28 (PIN_BASE + 0x60 + 28) -#define AT91C_PIN_PD29 (PIN_BASE + 0x60 + 29) -#define AT91C_PIN_PD30 (PIN_BASE + 0x60 + 30) -#define AT91C_PIN_PD31 (PIN_BASE + 0x60 + 31) - -#define AT91C_PIN_PE0 (PIN_BASE + 0x80 + 0) -#define AT91C_PIN_PE1 (PIN_BASE + 0x80 + 1) -#define AT91C_PIN_PE2 (PIN_BASE + 0x80 + 2) -#define AT91C_PIN_PE3 (PIN_BASE + 0x80 + 3) -#define AT91C_PIN_PE4 (PIN_BASE + 0x80 + 4) -#define AT91C_PIN_PE5 (PIN_BASE + 0x80 + 5) -#define AT91C_PIN_PE6 (PIN_BASE + 0x80 + 6) -#define AT91C_PIN_PE7 (PIN_BASE + 0x80 + 7) -#define AT91C_PIN_PE8 (PIN_BASE + 0x80 + 8) -#define AT91C_PIN_PE9 (PIN_BASE + 0x80 + 9) -#define AT91C_PIN_PE10 (PIN_BASE + 0x80 + 10) -#define AT91C_PIN_PE11 (PIN_BASE + 0x80 + 11) -#define AT91C_PIN_PE12 (PIN_BASE + 0x80 + 12) -#define AT91C_PIN_PE13 (PIN_BASE + 0x80 + 13) -#define AT91C_PIN_PE14 (PIN_BASE + 0x80 + 14) -#define AT91C_PIN_PE15 (PIN_BASE + 0x80 + 15) -#define AT91C_PIN_PE16 (PIN_BASE + 0x80 + 16) -#define AT91C_PIN_PE17 (PIN_BASE + 0x80 + 17) -#define AT91C_PIN_PE18 (PIN_BASE + 0x80 + 18) -#define AT91C_PIN_PE19 (PIN_BASE + 0x80 + 19) -#define AT91C_PIN_PE20 (PIN_BASE + 0x80 + 20) -#define AT91C_PIN_PE21 (PIN_BASE + 0x80 + 21) -#define AT91C_PIN_PE22 (PIN_BASE + 0x80 + 22) -#define AT91C_PIN_PE23 (PIN_BASE + 0x80 + 23) -#define AT91C_PIN_PE24 (PIN_BASE + 0x80 + 24) -#define AT91C_PIN_PE25 (PIN_BASE + 0x80 + 25) -#define AT91C_PIN_PE26 (PIN_BASE + 0x80 + 26) -#define AT91C_PIN_PE27 (PIN_BASE + 0x80 + 27) -#define AT91C_PIN_PE28 (PIN_BASE + 0x80 + 28) -#define AT91C_PIN_PE29 (PIN_BASE + 0x80 + 29) -#define AT91C_PIN_PE30 (PIN_BASE + 0x80 + 30) -#define AT91C_PIN_PE31 (PIN_BASE + 0x80 + 31) - -rt_inline rt_uint32_t gpio_to_irq(rt_uint32_t gpio) -{ - return gpio; -} - -#endif diff --git a/bsp/at91sam9g45/platform/interrupt.c b/bsp/at91sam9g45/platform/interrupt.c deleted file mode 100644 index c3dd99e798..0000000000 --- a/bsp/at91sam9g45/platform/interrupt.c +++ /dev/null @@ -1,460 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include "at91sam9g45.h" -#include "interrupt.h" - -#define AIC_IRQS 32 -#define MAX_HANDLERS (AIC_IRQS + PIN_IRQS) - -extern rt_uint32_t rt_interrupt_nest; - -/* exception and interrupt handler table */ -struct rt_irq_desc irq_desc[MAX_HANDLERS]; - -rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread; -rt_uint32_t rt_thread_switch_interrupt_flag; - - -/* -------------------------------------------------------------------- - * Interrupt initialization - * -------------------------------------------------------------------- */ - -rt_uint32_t at91_extern_irq; - -#define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq) - -/* - * The default interrupt priority levels (0 = lowest, 7 = highest). - */ -static rt_uint32_t at91sam9g45_default_irq_priority[MAX_HANDLERS] = { - 7, /* Advanced Interrupt Controller - FIQ */ - 7, /* System Controller Interrupt */ - 1, /* Parallel I/O Controller A, */ - 1, /* Parallel I/O Controller B */ - 1, /* Parallel I/O Controller C */ - 0, /* Parallel I/O Controller D/E */ - 5, /* True Random Number Generator */ - 5, /* USART 0 */ - 5, /* USART 1 */ - 0, /* USART 2 */ - 2, /* USART 3 */ - 6, /* High Speed Multimedia Card Interface 0 */ - 5, /* Two-Wire Interface 0 */ - 5, /* Two-Wire Interface 1 */ - 5, /* Serial Peripheral Interface */ - 0, /* Serial Peripheral Interface */ - 0, /* Synchronous Serial Controller 0 */ - 0, /* Synchronous Serial Controller 1 */ - 0, /* Timer Counter 0,1,2,3,4,5 */ - 0, /* Pulse Width Modulation Controller */ - 2, /* Touch Screen ADC Controller */ - 3, /* DMA Controller */ - 0, /* USB Host High Speed */ - 5, /* LCD Controller */ - 5, /* AC97 Controller */ - 5, /* Ethernet MAC */ - 0, /* Image Sensor Interface */ - 0, /* USB Device High Speed */ - 0, /* N/A */ - 0, /* High Speed Multimedia Card Interface 1 */ - 0, /* Reserved */ - 0, /* Advanced Interrupt Controller - IRQ */ -}; - -/** - * @addtogroup AT91SAM9G45 - */ -/*@{*/ - -void rt_hw_interrupt_mask(int irq); -void rt_hw_interrupt_umask(int irq); - -rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector, void *param) -{ - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); - return RT_NULL; -} - -rt_isr_handler_t at91_gpio_irq_handle(rt_uint32_t bank, void *param) -{ - rt_uint32_t isr, irq_n; - AT91PS_PIO pio; - void *parameter; - - switch (bank) - { - case 0: pio = AT91C_BASE_PIOA; break; - case 1: pio = AT91C_BASE_PIOB; break; - case 2: pio = AT91C_BASE_PIOC; break; - case 3: pio = AT91C_BASE_PIOD; break; - case 4: pio = AT91C_BASE_PIOE; break; - default: return RT_NULL; - } - irq_n = AIC_IRQS + 32*bank; - isr = readl(pio->PIO_ISR); - isr &= readl(pio->PIO_IMR); - while (isr) - { - if (isr & 1) - { - parameter = irq_desc[irq_n].param; - irq_desc[irq_n].handler(irq_n, parameter); - } - isr >>= 1; - irq_n++; - } - - return RT_NULL; -} - -unsigned int SpuriousCount = 0; -static void DefaultSpuriousHandler( void ) -{ - SpuriousCount++; - rt_kprintf("Spurious interrupt %d occured!!!\n", SpuriousCount); - return ; -} - -static void DefaultFiqHandler(void) -{ - rt_kprintf("Unhandled FIQ occured!!!\n"); - while (1); -} - -static void DefaultIrqHandler(void) -{ - rt_kprintf("Unhandled IRQ %d occured!!!\n", AT91C_BASE_AIC->AIC_ISR); - while (1); -} - -/* - * Initialize the AIC interrupt controller. - */ -void at91_aic_init(rt_uint32_t *priority) -{ - rt_uint32_t i; - - /* - * The IVR is used by macro get_irqnr_and_base to read and verify. - * The irq number is NR_AIC_IRQS when a spurious interrupt has occurred. - */ - AT91C_BASE_AIC->AIC_SVR[0] = (rt_uint32_t)DefaultFiqHandler; - for (i = 1; i < AIC_IRQS; i++) { - /* Put irq number in Source Vector Register: */ - AT91C_BASE_AIC->AIC_SVR[i] = (rt_uint32_t)DefaultIrqHandler; // no-used - /* Active Low interrupt, with the specified priority */ - AT91C_BASE_AIC->AIC_SMR[i] = AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE | priority[i]; - //AT91C_AIC_SRCTYPE_FALLING - } - - /* - * Spurious Interrupt ID in Spurious Vector Register is NR_AIC_IRQS - * When there is no current interrupt, the IRQ Vector Register reads the value stored in AIC_SPU - */ - AT91C_BASE_AIC->AIC_SPU = (rt_uint32_t)DefaultSpuriousHandler; - - /* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */ - for (i = 0; i < 8; i++) - AT91C_BASE_AIC->AIC_EOICR = 0; - - /* No debugging in AIC: Debug (Protect) Control Register */ - AT91C_BASE_AIC->AIC_DCR = 0; - - /* Disable and clear all interrupts initially */ - AT91C_BASE_AIC->AIC_IDCR = 0xFFFFFFFF; - AT91C_BASE_AIC->AIC_ICCR = 0xFFFFFFFF; -} - - -static void at91_gpio_irq_init() -{ - int i, idx; - char *name[] = {"PIOA", "PIOB", "PIOC", "PIODE"}; - rt_uint32_t aic_pids[] = { AT91C_ID_PIOA, AT91C_ID_PIOB, AT91C_ID_PIOC, AT91C_ID_PIOD_E }; - - AT91C_BASE_PIOA->PIO_IDR = 0xffffffff; - AT91C_BASE_PIOB->PIO_IDR = 0xffffffff; - AT91C_BASE_PIOC->PIO_IDR = 0xffffffff; - AT91C_BASE_PIOD->PIO_IDR = 0xffffffff; - AT91C_BASE_PIOE->PIO_IDR = 0xffffffff; - - for (i = 0; i < 4; i++) - { - idx = aic_pids[i]; - irq_desc[idx].handler = (rt_isr_handler_t)at91_gpio_irq_handle; - irq_desc[idx].param = RT_NULL; -#ifdef RT_USING_INTERRUPT_INFO - rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, name[i]); - irq_desc[idx].counter = 0; -#endif - - rt_hw_interrupt_umask(idx); - } -} - - -/** - * This function will initialize hardware interrupt - */ -void rt_hw_interrupt_init(void) -{ - register rt_uint32_t idx; - rt_uint32_t *priority = at91sam9g45_default_irq_priority; - - at91_extern_irq = (1UL << AT91C_ID_IRQ0); - - /* Initialize the AIC interrupt controller */ - at91_aic_init(priority); - - /* init exceptions table */ - for(idx=0; idx < MAX_HANDLERS; idx++) - { - irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; - irq_desc[idx].param = RT_NULL; -#ifdef RT_USING_INTERRUPT_INFO - rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); - irq_desc[idx].counter = 0; -#endif - } - - at91_gpio_irq_init(); - - /* init interrupt nest, and context in thread sp */ - rt_interrupt_nest = 0; - rt_interrupt_from_thread = 0; - rt_interrupt_to_thread = 0; - rt_thread_switch_interrupt_flag = 0; -} - -static void at91_gpio_irq_mask(int irq) -{ - rt_uint32_t pin, bank; - AT91PS_PIO pio; - - bank = (irq - AIC_IRQS)>>5; - - switch (bank) - { - case 0: pio = AT91C_BASE_PIOA; break; - case 1: pio = AT91C_BASE_PIOB; break; - case 2: pio = AT91C_BASE_PIOC; break; - case 3: pio = AT91C_BASE_PIOD; break; - case 4: pio = AT91C_BASE_PIOE; break; - default: return; - } - pin = 1 << ((irq - AIC_IRQS) & 31); - pio->PIO_IDR = pin; -} - -/** - * This function will mask a interrupt. - * @param irq the interrupt number - */ -void rt_hw_interrupt_mask(int irq) -{ - if (irq >= AIC_IRQS) - { - at91_gpio_irq_mask(irq); - } - else - { - /* Disable interrupt on AIC */ - AT91C_BASE_AIC->AIC_IDCR = 1 << irq; - } -} - -static void at91_gpio_irq_umask(int irq) -{ - rt_uint32_t pin, bank; - AT91PS_PIO pio; - - bank = (irq - AIC_IRQS)>>5; - - switch (bank) - { - case 0: pio = AT91C_BASE_PIOA; break; - case 1: pio = AT91C_BASE_PIOB; break; - case 2: pio = AT91C_BASE_PIOC; break; - case 3: pio = AT91C_BASE_PIOD; break; - case 4: pio = AT91C_BASE_PIOE; break; - default: return; - } - pin = 1 << ((irq - AIC_IRQS) & 31); - pio->PIO_IER = pin; -} - -/** - * This function will un-mask a interrupt. - * @param vector the interrupt number - */ -void rt_hw_interrupt_umask(int irq) -{ - if (irq >= AIC_IRQS) - { - at91_gpio_irq_umask(irq); - } - else - { - /* Enable interrupt on AIC */ - AT91C_BASE_AIC->AIC_IECR = 1 << irq; - } -} - -/** - * This function will install a interrupt service routine to a interrupt. - * @param vector the interrupt number - * @param handler the interrupt service routine to be installed - * @param param the interrupt service function parameter - * @param name the interrupt name - * @return old handler - */ -rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, - void *param, const char *name) -{ - rt_isr_handler_t old_handler = RT_NULL; - - if (vector < MAX_HANDLERS) - { - old_handler = irq_desc[vector].handler; - if (handler != RT_NULL) - { - irq_desc[vector].handler = (rt_isr_handler_t)handler; - irq_desc[vector].param = param; -#ifdef RT_USING_INTERRUPT_INFO - rt_snprintf(irq_desc[vector].name, RT_NAME_MAX - 1, "%s", name); - irq_desc[vector].counter = 0; -#endif - } - } - - return old_handler; -} - -/*@}*/ - -/* -static int at91_aic_set_type(unsigned irq, unsigned type) -{ - unsigned int smr, srctype; - - switch (type) { - case AT91C_AIC_SRCTYPE_EXT_HIGH_LEVEL: - srctype = AT91C_AIC_SRCTYPE_HIGH; - break; - case AT91C_AIC_SRCTYPE_EXT_POSITIVE_EDGE: - srctype = AT91C_AIC_SRCTYPE_RISING; - break; - case AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE: - // only supported on external interrupts - if ((irq == AT91C_ID_FIQ) || is_extern_irq(irq)) - srctype = AT91C_AIC_SRCTYPE_LOW; - else - return -1; - break; - case AT91C_AIC_SRCTYPE_INT_EDGE_TRIGGERED: - // only supported on external interrupts - if ((irq == AT91C_ID_FIQ) || is_extern_irq(irq)) - srctype = AT91C_AIC_SRCTYPE_FALLING; - else - return -1; - break; - default: - return -1; - } - - smr = readl(AT91C_AIC_SMR(irq)) & ~AT91C_AIC_SRCTYPE; - AT91C_BASE_AIC->AIC_SMR[irq] = smr | srctype; - return 0; -} -*/ -rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq) -{ - - //volatile rt_uint32_t irqstat; - rt_uint32_t id; - if (fiq_irq == INT_FIQ) - return 0; - - //IRQ - /* AIC need this dummy read */ - readl(AT91C_AIC_IVR); - /* clear pending register */ - id = readl(AT91C_AIC_ISR); - - return id; -} - -void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id) -{ - /* new FIQ generation */ - if (fiq_irq == INT_FIQ) - return; - - /* new IRQ generation */ - // EIOCR must be write any value after interrupt, - // or else can't response next interrupt - AT91C_BASE_AIC->AIC_EOICR = 0x0; -} - -void rt_interrupt_dispatch(rt_uint32_t fiq_irq) -{ - rt_isr_handler_t isr_func; - rt_uint32_t irq; - void *param; - - /* get irq number */ - irq = rt_hw_interrupt_get_active(fiq_irq); - - /* get interrupt service routine */ - isr_func = irq_desc[irq].handler; - param = irq_desc[irq].param; - - /* turn to interrupt service routine */ - isr_func(irq, param); - - rt_hw_interrupt_ack(fiq_irq, irq); -#ifdef RT_USING_INTERRUPT_INFO - irq_desc[irq].counter ++; -#endif -} - - -#ifdef RT_USING_FINSH -#ifdef RT_USING_INTERRUPT_INFO -void list_irq(void) -{ - int irq; - - rt_kprintf("number\tcount\tname\n"); - for (irq = 0; irq < MAX_HANDLERS; irq++) - { - if (rt_strncmp(irq_desc[irq].name, "default", sizeof("default"))) - { - rt_kprintf("%02ld: %10ld %s\n", irq, irq_desc[irq].counter, irq_desc[irq].name); - } - } -} - -#include - -#ifdef FINSH_USING_MSH -int cmd_list_irq(int argc, char** argv) -{ - list_irq(); - return 0; -} -MSH_CMD_EXPORT_ALIAS(cmd_list_irq, list_irq, list system irq); -#endif -#endif -#endif - - diff --git a/bsp/at91sam9g45/platform/interrupt.h b/bsp/at91sam9g45/platform/interrupt.h deleted file mode 100644 index 0375164e00..0000000000 --- a/bsp/at91sam9g45/platform/interrupt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2015-04-14 ArdaFu first version - */ -#ifndef __INTERRUPT_H__ -#define __INTERRUPT_H__ - -#define INT_IRQ 0x00 -#define INT_FIQ 0x01 - - -#endif diff --git a/bsp/at91sam9g45/platform/io.h b/bsp/at91sam9g45/platform/io.h deleted file mode 100644 index b3a9188299..0000000000 --- a/bsp/at91sam9g45/platform/io.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __ASM_ARCH_IO_H -#define __ASM_ARCH_IO_H - -#define IO_SPACE_LIMIT 0xFFFFFFFF - -#define readb(a) (*(volatile unsigned char *)(a)) -#define readw(a) (*(volatile unsigned short *)(a)) -#define readl(a) (*(volatile unsigned int *)(a)) - -#define writeb(v,a) (*(volatile unsigned char *)(a) = (v)) -#define writew(v,a) (*(volatile unsigned short *)(a) = (v)) -#define writel(v,a) (*(volatile unsigned int *)(a) = (v)) - -#endif - diff --git a/bsp/at91sam9g45/platform/irq.h b/bsp/at91sam9g45/platform/irq.h deleted file mode 100644 index 76d4200d3b..0000000000 --- a/bsp/at91sam9g45/platform/irq.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#ifndef __IRQ_H__ -#define __IRQ_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * IRQ line status. - * - * Bits 0-7 are reserved - * - * IRQ types - */ -#define IRQ_TYPE_NONE 0x00000000 /* Default, unspecified type */ -#define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ -#define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ -#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) -#define IRQ_TYPE_LEVEL_HIGH 0x00000004 /* Level high type */ -#define IRQ_TYPE_LEVEL_LOW 0x00000008 /* Level low type */ -#define IRQ_TYPE_SENSE_MASK 0x0000000f /* Mask of the above */ -#define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/bsp/at91sam9g45/platform/reset.c b/bsp/at91sam9g45/platform/reset.c deleted file mode 100644 index 33d6f97283..0000000000 --- a/bsp/at91sam9g45/platform/reset.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety modified from mini2440 - */ - -#include -#include -#include "at91sam9g45.h" - -/** - * @addtogroup AT91SAM926X - */ -/*@{*/ - -void machine_reset(void) -{ - AT91C_BASE_RSTC->RSTC_RCR = AT91C_RSTC_KEY | AT91C_RSTC_PROCRST | AT91C_RSTC_PERRST; -} - -void machine_shutdown(void) -{ - AT91C_BASE_SHDWC->SHDWC_SHCR = AT91C_SHDWC_KEY | AT91C_SHDWC_SHDW; -} - -#ifdef RT_USING_FINSH - -#include - -#ifdef FINSH_USING_MSH -int cmd_reset(int argc, char** argv) -{ - rt_hw_cpu_reset(); - return 0; -} -MSH_CMD_EXPORT_ALIAS(cmd_reset, reset, restart the system); - -int cmd_shutdown(int argc, char** argv) -{ - rt_hw_cpu_shutdown(); - return 0; -} -MSH_CMD_EXPORT_ALIAS(cmd_shutdown, shutdown, shutdown the system); - -#endif -#endif - -/*@}*/ diff --git a/bsp/at91sam9g45/platform/rt_low_level_init.c b/bsp/at91sam9g45/platform/rt_low_level_init.c deleted file mode 100644 index b76b84fe5c..0000000000 --- a/bsp/at91sam9g45/platform/rt_low_level_init.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2015-04-14 ArdaFu first version - */ - -/* write register a=address, v=value */ -#define write_reg(a,v) (*(volatile unsigned int *)(a) = (v)) -/* Processor Reset */ -#define AT91C_RSTC_PROCRST (1 << 0) -#define AT91C_RSTC_PERRST (1 << 2) -#define AT91C_RSTC_KEY (0xa5 << 24) -#define AT91C_MATRIX_BASE (0XFFFFEE00) -/* Master Remap Control Register */ -#define AT91C_MATRIX_MRCR (AT91C_MATRIX_BASE + 0x100) -/* Remap Command for AHB Master 0 (ARM926EJ-S InSTRuction Master) */ -#define AT91C_MATRIX_RCB0 (1 << 0) -/* Remap Command for AHB Master 1 (ARM926EJ-S Data Master) */ -#define AT91C_MATRIX_RCB1 (1 << 1) - -#define AT91C_AIC_BASE (0XFFFFF000) -/* Interrupt DisaBLe Command Register */ -#define AT91C_AIC_IDCR (AT91C_AIC_BASE + 0x124) -/* Interrupt Clear Command Register */ -#define AT91C_AIC_ICCR (AT91C_AIC_BASE + 0x128) - -#define AT91C_WDT_BASE (0XFFFFFD40) -#define AT91C_WDT_CR (AT91C_WDT_BASE + 0x00) -#define AT91C_WDT_CR_KEY (0xA5000000) -#define AT91C_WDT_CR_WDRSTT (0x00000001) -#define AT91C_WDT_MR (AT91C_WDT_BASE + 0x04) -#define AT91C_WDT_MR_WDDIS (0x00008000) - -void rt_low_level_init(void) -{ - // Mask all IRQs by clearing all bits in the INTMRS - write_reg(AT91C_AIC_IDCR, 0xFFFFFFFF); - write_reg(AT91C_AIC_ICCR, 0xFFFFFFFF); - // Remap internal ram to 0x00000000 Address - write_reg(AT91C_MATRIX_MRCR, AT91C_MATRIX_RCB0 | AT91C_MATRIX_RCB1); - // Disable the watchdog - //write_reg(AT91C_WDT_CR, AT91C_WDT_CR_KEY|AT91C_WDT_CR_WDRSTT); - //write_reg(AT91C_WDT_MR, AT91C_WDT_MR_WDDIS); -} - diff --git a/bsp/at91sam9g45/platform/rt_low_level_init.h b/bsp/at91sam9g45/platform/rt_low_level_init.h deleted file mode 100644 index c79adf5284..0000000000 --- a/bsp/at91sam9g45/platform/rt_low_level_init.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2018-06-04 ArdaFu first version - */ -#ifndef __RT_LOW_LEVEL_INIT_H__ -#define __RT_LOW_LEVEL_INIT_H__ - -/*-------- Stack size of CPU modes -------------------------------------------*/ -#define UND_STK_SIZE 512 -#define SVC_STK_SIZE 4096 -#define ABT_STK_SIZE 512 -#define IRQ_STK_SIZE 1024 -#define FIQ_STK_SIZE 1024 -#define SYS_STK_SIZE 512 -#define Heap_Size 512 -#endif diff --git a/bsp/at91sam9g45/platform/system_clock.c b/bsp/at91sam9g45/platform/system_clock.c deleted file mode 100644 index fc29064b49..0000000000 --- a/bsp/at91sam9g45/platform/system_clock.c +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-01-13 weety first version - */ - -#include -#include "at91sam9g45.h" - -static rt_list_t clocks; - -struct clk { - char name[32]; - rt_uint32_t rate_hz; - struct clk *parent; - rt_list_t node; -}; - -static struct clk clk32k = { - "clk32k", - AT91C_SLOW_CLOCK, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk main_clk = { - "main", - 0, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk plla = { - "plla", - 0, - &main_clk, - {RT_NULL, RT_NULL}, -}; - -static struct clk mck = { - "mck", - 0, - RT_NULL, - {RT_NULL, RT_NULL}, -}; - -static struct clk upllck = { - "upllck", - 480*1000*1000, - &main_clk, - {RT_NULL, RT_NULL}, -}; - -static struct clk *const standard_pmc_clocks[] = { - /* four primary clocks */ - &clk32k, - &main_clk, - &plla, - - /* MCK */ - &mck -}; - -/* clocks cannot be de-registered no refcounting necessary */ -struct clk *clk_get(const char *id) -{ - struct clk *clk; - rt_list_t *list; - - for (list = (&clocks)->next; list != &clocks; list = list->next) - { - clk = (struct clk *)rt_list_entry(list, struct clk, node); - if (rt_strcmp(id, clk->name) == 0) - return clk; - } - - return RT_NULL; -} - -rt_uint32_t clk_get_rate(struct clk *clk) -{ - rt_uint32_t rate; - - for (;;) { - rate = clk->rate_hz; - if (rate || !clk->parent) - break; - clk = clk->parent; - } - return rate; -} - -static void at91_upllck_init(rt_uint32_t main_clock) -{ - // EHCI USB use fixed 480MHz clock -} - -static struct clk *at91_css_to_clk(unsigned long css) -{ - switch (css) { - case AT91C_PMC_CSS_SLOW_CLK: - return &clk32k; - case AT91C_PMC_CSS_MAIN_CLK: - return &main_clk; - case AT91C_PMC_CSS_PLLA_CLK: - return &plla; - case AT91C_PMC_CSS_UPLL_CLK: - return &upllck; - } - - return RT_NULL; -} - -// TODO: how to auto-set register value by OSC and MCK -/* Settings at 400/133MHz */ -// In datasheet, ATMEL says 12MHz main crystal startup time less than 2ms, so we -// configure OSC startup timeout to 64*8/32768=15.6ms, should enough -#define BOARD_OSCOUNT (AT91C_CKGR_OSCOUNT & (64 << 8)) -// MAINCK => Divider(DIVA) => PLLA(MULA, OUTA) => /1/2 Divider(PLLADIV2) => PLLACK -// pls. refer to doc6438G figure 24-6 on pg294. ICPLLA in reg PMC_PLLICPR -// 12MHz / 3 * (199 + 1) = 800MHz -// OUTA/ICPLLA can as ICPLLA:OUTA[1]:OUTA[0] = (800-PLLAOUT(MHz))/50 -// PLLACOUNT field occupy bit[13:8], max value is 0x3F, then about 19.2ms -#define BOARD_CKGR_PLLA (AT91C_CKGR_SRCA | AT91C_CKGR_OUTA_0) -#define BOARD_PLLACOUNT (0x3F << 8) -#define BOARD_MULA (AT91C_CKGR_MULA & (199 << 16)) -#define BOARD_DIVA (AT91C_CKGR_DIVA & 3) -// Clock Source => select(CCS) => Prescaler(PRES) => Master Clock Divider(MDIV) => MCK -// => Processor Clock Divider => PCK -// Master clock can refer to doc6438G figure 25-2 on pg298 -// PLLADIV2=1(div 2, 400MHz), PRES=0(no div, 400MHz), -// MDIV=3(Master Clock divided by 3, 133MHz), CSS=0(still Slow Clock) -#define BOARD_PRESCALER (0x00001300) //400/133MHz - -#define MHz(n) ((n) * 1000 * 1000) -#define OSC_FREQ MHz(12) -#define PLLA_FREQ MHz(800) - -static void at91_plla_init(void) -{ - rt_uint32_t pllar, mckr; - - // Code refer to doc6438G, 25.10 Programming Sequence - /* Initialize main oscillator - ****************************/ - // enable main OSC and wait OSC startup time timeout. - AT91C_BASE_PMC->PMC_MOR = BOARD_OSCOUNT | AT91C_CKGR_MOSCEN; - while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MOSCS)); - - /* Initialize PLLA, Set PLL to 800MHz and wait PLL stable */ - pllar = (MHz(800) - PLLA_FREQ) / MHz(50); // please refer to Table 46-15 of doc 6438G - AT91C_BASE_PMC->PMC_PLLICPR = (pllar >> 2) & 1; // ICPLLA - pllar = (pllar & 3) << 14; // OUTA - pllar |= BOARD_DIVA; // PLLA input clock as 4MHz - pllar |= BOARD_MULA; // PLLA output clock as 800MHz - pllar |= BOARD_PLLACOUNT; - pllar |= AT91C_CKGR_SRCA; // I don't known what means, but seems must set it - AT91C_BASE_PMC->PMC_PLLAR = pllar; - - while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_LOCKA)); - - /* Wait for the master clock if it was already initialized */ - // make sure Master clock in READY status before operate it - while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MCKRDY)); - - /* Switch to fast clock - **********************/ - /* setup main clock divisor and prescaler, 400MHz/133MHz, but don't switch */ - mckr = AT91C_BASE_PMC->PMC_MCKR; - if ((mckr & AT91C_PMC_MDIV) != (BOARD_PRESCALER & AT91C_PMC_MDIV)) - { - mckr = (mckr & ~(unsigned int)AT91C_PMC_MDIV) | (BOARD_PRESCALER & AT91C_PMC_MDIV); - AT91C_BASE_PMC->PMC_MCKR = mckr; - while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MCKRDY)); - } - - /* Switch to PLL + prescaler, now Switch to PLLA as source, run on the fly */ - if ((mckr & AT91C_PMC_CSS) != AT91C_PMC_CSS_PLLA_CLK) - { - mckr = (mckr & ~(unsigned int)AT91C_PMC_CSS) | AT91C_PMC_CSS_PLLA_CLK; - AT91C_BASE_PMC->PMC_MCKR = mckr; - while (!(AT91C_BASE_PMC->PMC_SR & AT91C_PMC_MCKRDY)); - } - - plla.rate_hz = PLLA_FREQ; -} - -#define false 0 -#define true 1 -int at91_clock_init(rt_uint32_t main_clock) -{ - unsigned tmp, freq, mckr, mdiv; - int i; - - /* - * When the bootloader initialized the main oscillator correctly, - * there's no problem using the cycle counter. But if it didn't, - * or when using oscillator bypass mode, we must be told the speed - * of the main clock. - */ - if (!main_clock) { - do { - tmp = readl(AT91C_CKGR_MCFR); - } while (!(tmp & AT91C_CKGR_MAINRDY)); - main_clock = (tmp & AT91C_CKGR_MAINF) * (AT91C_SLOW_CLOCK / 16); - } - main_clk.rate_hz = main_clock; - - at91_plla_init(); - - at91_upllck_init(main_clock); - - /* - * MCK and CPU derive from one of those primary clocks. - * For now, assume this parentage won't change. - */ - mckr = readl(AT91C_PMC_MCKR); - mck.parent = at91_css_to_clk(mckr & AT91C_PMC_CSS); - freq = mck.parent->rate_hz; - freq /= (1 << ((mckr & AT91C_PMC_PRES) >> 2)); /* prescale */ - mdiv = 1 << ((mckr & AT91C_PMC_MDIV) >> 8); - if (mdiv == 8) mdiv = 3; - freq /= mdiv; /* mdiv */ - if (mckr & AT91C_PMC_PLLADIV2) freq /= 2; /* plla_div2 */ - mck.rate_hz = freq; - - /* Register the PMC's standard clocks */ - rt_list_init(&clocks); - for (i = 0; i < ARRAY_SIZE(standard_pmc_clocks); i++) - rt_list_insert_after(&clocks, &standard_pmc_clocks[i]->node); - - rt_list_insert_after(&clocks, &upllck.node); - - /* MCK and CPU clock are "always on" */ - //clk_enable(&mck); - - /*rt_kprintf("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n", - freq / 1000000, (unsigned) mck.rate_hz / 1000000, - (unsigned) main_clock / 1000000, - ((unsigned) main_clock % 1000000) / 1000);*///cause blocked - - return 0; -} - -/** - * @brief System Clock Configuration - */ -void rt_hw_clock_init(void) -{ - at91_clock_init(MHz(12)); -} - diff --git a/bsp/at91sam9g45/project.uvopt b/bsp/at91sam9g45/project.uvopt deleted file mode 100644 index 2dca5102b8..0000000000 --- a/bsp/at91sam9g45/project.uvopt +++ /dev/null @@ -1,174 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - - - - 0 - 0 - - - - rtthread - 0x4 - ARM-ADS - - 18432000 - - 1 - 1 - 1 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\Listings\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 1 - 0 - 1 - - 16 - - - 0 - Datasheet - DATASHTS\ATMEL\AT91SAM9260_DS.PDF - - - 1 - Summary - DATASHTS\ATMEL\AT91SAM9260_DC.PDF - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - 5 - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - 0 - JLTAgdi - -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 - - - 0 - UL2ARM - -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - - - - - 0 - - - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - -
diff --git a/bsp/at91sam9g45/project.uvproj b/bsp/at91sam9g45/project.uvproj deleted file mode 100644 index 4b927e7dfd..0000000000 --- a/bsp/at91sam9g45/project.uvproj +++ /dev/null @@ -1,914 +0,0 @@ - - - 1.1 -
### uVision Project, (C) Keil Software
- - - rtthread - 0x4 - ARM-ADS - - - AT91SAM9260 - Atmel - IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) - - "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") - UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - 4210 - AT91SAM9260.H - - - - - - - - - - - 0 - 0 - - - - Atmel\SAM9260\ - Atmel\SAM9260\ - - 0 - 0 - 0 - 0 - 1 - - .\Objects\ - rtthread - 1 - 0 - 0 - 1 - 1 - .\Listings\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - SARM.DLL - -cAT91SAM9260 - DARMATS9.DLL - -p91SAM9260 - SARM.DLL - - TARMATS9.DLL - -p91SAM9260 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - - - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - 1 - - 0 - 5 - - - - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - - 1 - 0 - 0 - 0 - 1 - 4096 - - 1 - BIN\UL2ARM.DLL - "" () - .\jlink\at91sam9260.ini - - - - 0 - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - ARM926EJ-S - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 1 - 0x100000 - 0x8000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x20000000 - 0x800000 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x100000 - 0x8000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x20800000 - 0x1800000 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 0 - 0x300000 - 0x1000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - - - __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\components\cplusplus;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;platform;..\..\components\libc\posix\delay;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\components\libc\posix\pthreads;..\..\examples\utest\testcases\kernel - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - .\platform - - - - 0 - 0 - 0 - 0 - 1 - 0 - 0x20000000 - 0x20800000 - - .\link_scripts\at91sam9g45_ram.scat - - - - - - - - - - - Applications - - - application.c - 1 - applications\application.c - - - - - Compiler - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - - - - time.c - 1 - ..\..\components\libc\compilers\common\time.c - - - - - CPlusPlus - - - cxx_Mutex.cpp - 8 - ..\..\components\cplusplus\cxx_Mutex.cpp - - - - - cxx_crt.cpp - 8 - ..\..\components\cplusplus\cxx_crt.cpp - - - - - cxx_Thread.cpp - 8 - ..\..\components\cplusplus\cxx_Thread.cpp - - - - - cxx_crt_init.c - 1 - ..\..\components\cplusplus\cxx_crt_init.c - - - - - cxx_Semaphore.cpp - 8 - ..\..\components\cplusplus\cxx_Semaphore.cpp - - - - - CPU - - - showmem.c - 1 - ..\..\libcpu\arm\common\showmem.c - - - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - - - - mmu.c - 1 - ..\..\libcpu\arm\arm926\mmu.c - - - - - cpuport.c - 1 - ..\..\libcpu\arm\arm926\cpuport.c - - - - - start_rvds.S - 2 - ..\..\libcpu\arm\arm926\start_rvds.S - - - - - machine.c - 1 - ..\..\libcpu\arm\arm926\machine.c - - - - - context_rvds.S - 2 - ..\..\libcpu\arm\arm926\context_rvds.S - - - - - stack.c - 1 - ..\..\libcpu\arm\arm926\stack.c - - - - - trap.c - 1 - ..\..\libcpu\arm\arm926\trap.c - - - - - DeviceDrivers - - - workqueue.c - 1 - ..\..\components\drivers\ipc\workqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\ipc\pipe.c - - - - - ringbuffer.c - 1 - ..\..\components\drivers\ipc\ringbuffer.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\ipc\waitqueue.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\ipc\ringblk_buf.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\ipc\dataqueue.c - - - - - completion.c - 1 - ..\..\components\drivers\ipc\completion.c - - - - - pin.c - 1 - ..\..\components\drivers\misc\pin.c - - - - - serial.c - 1 - ..\..\components\drivers\serial\serial.c - - - - - Drivers - - - usart.c - 1 - drivers\usart.c - - - - - board.c - 1 - drivers\board.c - - - - - led.c - 1 - drivers\led.c - - - - - Filesystem - - - dfs_posix.c - 1 - ..\..\components\dfs\src\dfs_posix.c - - - - - dfs_fs.c - 1 - ..\..\components\dfs\src\dfs_fs.c - - - - - dfs.c - 1 - ..\..\components\dfs\src\dfs.c - - - - - dfs_file.c - 1 - ..\..\components\dfs\src\dfs_file.c - - - - - devfs.c - 1 - ..\..\components\dfs\filesystems\devfs\devfs.c - - - - - Finsh - - - shell.c - 1 - ..\..\components\finsh\shell.c - - - - - msh.c - 1 - ..\..\components\finsh\msh.c - - - - - msh_file.c - 1 - ..\..\components\finsh\msh_file.c - - - - - cmd.c - 1 - ..\..\components\finsh\cmd.c - - - - - Kernel - - - clock.c - 1 - ..\..\src\clock.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - components.c - 1 - ..\..\src\components.c - - - - - object.c - 1 - ..\..\src\object.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - Platform - - - reset.c - 1 - platform\reset.c - - - - - interrupt.c - 1 - platform\interrupt.c - - - - - system_clock.c - 1 - platform\system_clock.c - - - - - rt_low_level_init.c - 1 - platform\rt_low_level_init.c - - - - - POSIX - - - delay.c - 1 - ..\..\components\libc\posix\delay\delay.c - - - - - pthread_attr.c - 1 - ..\..\components\libc\posix\pthreads\pthread_attr.c - - - - - pthread_rwlock.c - 1 - ..\..\components\libc\posix\pthreads\pthread_rwlock.c - - - - - pthread_tls.c - 1 - ..\..\components\libc\posix\pthreads\pthread_tls.c - - - - - pthread_barrier.c - 1 - ..\..\components\libc\posix\pthreads\pthread_barrier.c - - - - - pthread_mutex.c - 1 - ..\..\components\libc\posix\pthreads\pthread_mutex.c - - - - - pthread_cond.c - 1 - ..\..\components\libc\posix\pthreads\pthread_cond.c - - - - - pthread.c - 1 - ..\..\components\libc\posix\pthreads\pthread.c - - - - - sched.c - 1 - ..\..\components\libc\posix\pthreads\sched.c - - - - - pthread_spin.c - 1 - ..\..\components\libc\posix\pthreads\pthread_spin.c - - - - - - -
diff --git a/bsp/at91sam9g45/rtconfig.h b/bsp/at91sam9g45/rtconfig.h deleted file mode 100644 index 016f95229b..0000000000 --- a/bsp/at91sam9g45/rtconfig.h +++ /dev/null @@ -1,215 +0,0 @@ -#ifndef RT_CONFIG_H__ -#define RT_CONFIG_H__ - -/* Automatically generated file; DO NOT EDIT. */ -/* RT-Thread Configuration */ - -/* RT-Thread Kernel */ - -#define RT_NAME_MAX 16 -#define RT_ALIGN_SIZE 4 -#define RT_THREAD_PRIORITY_32 -#define RT_THREAD_PRIORITY_MAX 32 -#define RT_TICK_PER_SECOND 1000 -#define RT_USING_OVERFLOW_CHECK -#define RT_USING_HOOK -#define RT_HOOK_USING_FUNC_PTR -#define RT_USING_IDLE_HOOK -#define RT_IDLE_HOOK_LIST_SIZE 4 -#define IDLE_THREAD_STACK_SIZE 256 -#define RT_USING_TIMER_SOFT -#define RT_TIMER_THREAD_PRIO 4 -#define RT_TIMER_THREAD_STACK_SIZE 512 - -/* kservice optimization */ - -#define RT_DEBUG -#define RT_DEBUG_COLOR - -/* Inter-Thread communication */ - -#define RT_USING_SEMAPHORE -#define RT_USING_MUTEX -#define RT_USING_EVENT -#define RT_USING_MAILBOX -#define RT_USING_MESSAGEQUEUE - -/* Memory Management */ - -#define RT_USING_MEMPOOL -#define RT_USING_SMALL_MEM -#define RT_USING_SMALL_MEM_AS_HEAP -#define RT_USING_HEAP - -/* Kernel Device Object */ - -#define RT_USING_DEVICE -#define RT_USING_INTERRUPT_INFO -#define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 128 -#define RT_CONSOLE_DEVICE_NAME "dbgu" -#define RT_VER_NUM 0x40100 -#define ARCH_ARM -#define ARCH_ARM_ARM9 - -/* RT-Thread Components */ - -#define RT_USING_COMPONENTS_INIT -#define RT_USING_USER_MAIN -#define RT_MAIN_THREAD_STACK_SIZE 2048 -#define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - -#define RT_USING_CPLUSPLUS - -/* Command shell */ - -#define RT_USING_FINSH -#define RT_USING_MSH -#define FINSH_USING_MSH -#define FINSH_THREAD_NAME "tshell" -#define FINSH_THREAD_PRIORITY 20 -#define FINSH_THREAD_STACK_SIZE 4096 -#define FINSH_USING_HISTORY -#define FINSH_HISTORY_LINES 5 -#define FINSH_USING_SYMTAB -#define FINSH_CMD_SIZE 80 -#define MSH_USING_BUILT_IN_COMMANDS -#define FINSH_USING_DESCRIPTION -#define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - -#define RT_USING_DFS -#define DFS_USING_POSIX -#define DFS_USING_WORKDIR -#define DFS_FILESYSTEMS_MAX 2 -#define DFS_FILESYSTEM_TYPES_MAX 2 -#define DFS_FD_MAX 16 -#define RT_USING_DFS_DEVFS - -/* Device Drivers */ - -#define RT_USING_DEVICE_IPC -#define RT_USING_SERIAL -#define RT_USING_SERIAL_V1 -#define RT_SERIAL_USING_DMA -#define RT_SERIAL_RB_BUFSZ 64 -#define RT_USING_PIN - -/* Using USB */ - - -/* POSIX layer and C standard library */ - -#define RT_LIBC_DEFAULT_TIMEZONE 8 - -/* POSIX (Portable Operating System Interface) layer */ - -#define RT_USING_POSIX_DELAY -#define RT_USING_POSIX_CLOCK -#define RT_USING_PTHREADS -#define PTHREAD_NUM_MAX 8 - -/* Interprocess Communication (IPC) */ - - -/* Socket is in the 'Network' category */ - -/* Network */ - -/* Socket abstraction layer */ - - -/* Network interface device */ - - -/* light weight TCP/IP stack */ - - -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ - - -/* Utilities */ - - -/* RT-Thread Utestcases */ - - -/* RT-Thread online packages */ - -/* IoT - internet of things */ - - -/* Wi-Fi */ - -/* Marvell WiFi */ - - -/* Wiced WiFi */ - - -/* IoT Cloud */ - - -/* security packages */ - - -/* language packages */ - - -/* multimedia packages */ - -/* LVGL: powerful and easy-to-use embedded GUI library */ - - -/* u8g2: a monochrome graphic library */ - - -/* PainterEngine: A cross-platform graphics application framework written in C language */ - - -/* tools packages */ - - -/* system packages */ - -/* enhanced kernel services */ - - -/* POSIX extension functions */ - - -/* acceleration: Assembly language or algorithmic acceleration packages */ - - -/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ - - -/* Micrium: Micrium software products porting for RT-Thread */ - - -/* peripheral libraries and drivers */ - - -/* AI packages */ - - -/* miscellaneous packages */ - -/* samples: kernel and components samples */ - - -/* entertainment: terminal games and other interesting software packages */ - -#define SOC_AT91SAM9G45 - -/* Hardware Drivers Config */ - -#define RT_USING_LED - -#endif diff --git a/bsp/at91sam9g45/rtconfig.py b/bsp/at91sam9g45/rtconfig.py deleted file mode 100644 index bd29b56f4f..0000000000 --- a/bsp/at91sam9g45/rtconfig.py +++ /dev/null @@ -1,138 +0,0 @@ -import os -ARCH = 'arm' -CPU = 'arm926' -# toolchains options -CROSS_TOOL = 'gcc' - -#------- toolchains path ------------------------------------------------------- -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = '/usr/bin' -elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = 'C:/Keil_v5' -elif CROSS_TOOL == 'iar': - PLATFORM = 'iar' - EXEC_PATH = 'C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.2' - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -#BUILD = 'debug' -BUILD = 'release' - -CORE = 'arm926ej-s' -MAP_FILE = 'rtthread_at91sam9g45.map' -LINK_FILE = 'link_scripts/at91sam9g45_ram' -TARGET_NAME = 'rtthread.bin' - -#------- GCC settings ---------------------------------------------------------- -if PLATFORM == 'gcc': - # toolchains - PREFIX = 'arm-none-eabi-' - CC = PREFIX + 'gcc' - CXX = PREFIX + 'g++' - AS = PREFIX + 'gcc' - AR = PREFIX + 'ar' - LINK = PREFIX + 'gcc' - TARGET_EXT = 'elf' - SIZE = PREFIX + 'size' - OBJDUMP = PREFIX + 'objdump' - OBJCPY = PREFIX + 'objcopy' - - DEVICE = ' -mcpu=arm926ej-s' - CFLAGS = DEVICE - AFLAGS = '-c'+ DEVICE + ' -x assembler-with-cpp' - AFLAGS += ' -Iplatform' - LFLAGS = DEVICE - LFLAGS += ' -Wl,--gc-sections,-cref,-Map=' + MAP_FILE - LFLAGS += ' -T ' + LINK_FILE + '.ld' - - CPATH = '' - LPATH = '' - - if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' - else: - CFLAGS += ' -O2' - - POST_ACTION = OBJCPY + ' -O binary $TARGET ' + TARGET_NAME + '\n' - POST_ACTION += SIZE + ' $TARGET\n' -#------- Keil settings --------------------------------------------------------- -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - EXEC_PATH += '/arm/armcc/bin/' - - DEVICE = ' --cpu=' + CORE - CFLAGS = DEVICE + ' --apcs=interwork --diag_suppress=870' - AFLAGS = DEVICE + ' -Iplatform' - LFLAGS = DEVICE + ' --strict' - LFLAGS += ' --info sizes --info totals --info unused --info veneers' - LFLAGS += ' --list ' + MAP_FILE - LFLAGS += ' --scatter ' + LINK_FILE + '.scat' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - POST_ACTION = 'fromelf --bin $TARGET --output ' + TARGET_NAME + ' \n' - POST_ACTION += 'fromelf -z $TARGET\n' -#------- IAR settings ---------------------------------------------------------- -elif PLATFORM == 'iar': - # toolchains - CC = 'iccarm' - AS = 'iasmarm' - AR = 'iarchive' - LINK = 'ilinkarm' - TARGET_EXT = 'out' - - DEVICE = CORE - - CFLAGS = '--cpu=' + DEVICE - CFLAGS += ' --diag_suppress Pa050' - CFLAGS += ' --no_cse' - CFLAGS += ' --no_unroll' - CFLAGS += ' --no_inline' - CFLAGS += ' --no_code_motion' - CFLAGS += ' --no_tbaa' - CFLAGS += ' --no_clustering' - CFLAGS += ' --no_scheduling' - - CFLAGS += ' --endian=little' - CFLAGS += ' -e' - CFLAGS += ' --fpu=none' - CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' - CFLAGS += ' --silent' - - AFLAGS = '--cpu '+ DEVICE - AFLAGS += ' -s+' - AFLAGS += ' -w+' - AFLAGS += ' -r' - AFLAGS += ' --fpu none' - AFLAGS += ' -S' - AFLAGS += ' -Iplatform' - - if BUILD == 'debug': - CFLAGS += ' --debug' - CFLAGS += ' -On' - else: - CFLAGS += ' -Oh' - - LFLAGS = '--config ' + LINK_FILE +'.icf' - LFLAGS += ' --entry __iar_program_start' - LFLAGS += ' --map ' + MAP_FILE - LFLAGS += ' --silent' - - EXEC_PATH = EXEC_PATH + '/arm/bin/' - POST_ACTION = 'ielftool --silent --bin $TARGET ' + TARGET_NAME diff --git a/bsp/at91sam9g45/template.ewp b/bsp/at91sam9g45/template.ewp deleted file mode 100644 index 5f2fa0e0a9..0000000000 --- a/bsp/at91sam9g45/template.ewp +++ /dev/null @@ -1,1914 +0,0 @@ - - - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 24 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 31 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 9 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - 0 - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 16 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 24 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 31 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 9 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - 0 - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 16 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - - diff --git a/bsp/at91sam9g45/template.eww b/bsp/at91sam9g45/template.eww deleted file mode 100644 index bd036bb4c9..0000000000 --- a/bsp/at91sam9g45/template.eww +++ /dev/null @@ -1,10 +0,0 @@ - - - - - $WS_DIR$\template.ewp - - - - - diff --git a/bsp/at91sam9g45/template.uvopt b/bsp/at91sam9g45/template.uvopt deleted file mode 100644 index 2dca5102b8..0000000000 --- a/bsp/at91sam9g45/template.uvopt +++ /dev/null @@ -1,174 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - - - - 0 - 0 - - - - rtthread - 0x4 - ARM-ADS - - 18432000 - - 1 - 1 - 1 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\Listings\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 1 - 0 - 1 - - 16 - - - 0 - Datasheet - DATASHTS\ATMEL\AT91SAM9260_DS.PDF - - - 1 - Summary - DATASHTS\ATMEL\AT91SAM9260_DC.PDF - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - 5 - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - 0 - JLTAgdi - -O558 -J1 -Y1000 -Z1 -FO0 -FD200000 -FC800 -FN0 - - - 0 - UL2ARM - -UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - - - - - 0 - - - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - -
diff --git a/bsp/at91sam9g45/template.uvproj b/bsp/at91sam9g45/template.uvproj deleted file mode 100644 index ea6226f101..0000000000 --- a/bsp/at91sam9g45/template.uvproj +++ /dev/null @@ -1,407 +0,0 @@ - - - - 1.1 - -
### uVision Project, (C) Keil Software
- - - - rtthread - 0x4 - ARM-ADS - - - AT91SAM9260 - Atmel - IRAM(0x200000-0x200FFF) IRAM2(0x300000-0x300FFF) IROM(0x100000-0x107FFF) CLOCK(18432000) CPUTYPE(ARM926EJ-S) - - "STARTUP\Atmel\SAM9260.s" ("Atmel AT91SAM9260 Startup Code") - UL2ARM(-UV2077N9E -O47 -S0 -C0 -N00("ARM926EJ-S Core") -D00(0792603F) -L00(4) -FO7 -FD300000 -FC1000 -FN1 -FF0AT91SAM9_DF_P1056_CS1 -FS020000000 -FL083BE00) - 4210 - AT91SAM9260.H - - - - - - - - - - - 0 - 0 - - - - Atmel\SAM9260\ - Atmel\SAM9260\ - - 0 - 0 - 0 - 0 - 1 - - .\Objects\ - rtthread - 1 - 0 - 0 - 1 - 1 - .\Listings\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - SARM.DLL - -cAT91SAM9260 - DARMATS9.DLL - -p91SAM9260 - SARM.DLL - - TARMATS9.DLL - -p91SAM9260 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - - - 1 - 0 - 0 - 1 - 1 - 1 - 0 - 1 - 1 - 1 - 1 - - 0 - 5 - - - - - - - - - - - - - .\jlink\at91sam9260.ini - Segger\JLTAgdi.dll - - - - - 1 - 0 - 0 - 0 - 1 - 4096 - - 1 - BIN\UL2ARM.DLL - "" () - .\jlink\at91sam9260.ini - - - - 0 - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - ARM926EJ-S - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 1 - 0x100000 - 0x8000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x20000000 - 0x800000 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x100000 - 0x8000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x20800000 - 0x1800000 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x200000 - 0x1000 - - - 0 - 0x300000 - 0x1000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - - - RT_USING_INTERRUPT_INFO - - - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - .\platform - - - - 0 - 0 - 0 - 0 - 1 - 0 - 0x20000000 - 0x20800000 - - .\link_scripts\at91sam9g45_ram.scat - - - - - - - - - - - -
-- cgit v1.3.1 From d8aee1c74a585f045228bace0739ab6abdeea57b Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 28 Mar 2022 20:15:54 -0400 Subject: 将mb9x系列BSP并入fujitsu文件夹中 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/action.yml | 8 +- bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript | 19 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.c | 359 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.h | 1166 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmFunc.h | 912 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmInstr.h | 684 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/mb9bf506r.h | 9739 ++++++ bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_gcc.S | 350 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_iar.S | 359 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_rvds.S | 287 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.c | 111 + bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.h | 71 + bsp/fujitsu/mb9x/mb9bf500r/SConscript | 16 + bsp/fujitsu/mb9x/mb9bf500r/SConstruct | 37 + bsp/fujitsu/mb9x/mb9bf500r/adc.c | 129 + bsp/fujitsu/mb9x/mb9bf500r/adc.h | 28 + bsp/fujitsu/mb9x/mb9bf500r/application.c | 142 + bsp/fujitsu/mb9x/mb9bf500r/board.c | 50 + bsp/fujitsu/mb9x/mb9bf500r/board.h | 25 + bsp/fujitsu/mb9x/mb9bf500r/cpuusage.c | 124 + bsp/fujitsu/mb9x/mb9bf500r/cpuusage.h | 19 + bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.ewp | 2027 ++ bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.eww | 10 + bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.ld | 133 + bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.sct | 15 + bsp/fujitsu/mb9x/mb9bf500r/font.h | 970 + bsp/fujitsu/mb9x/mb9bf500r/info.c | 222 + bsp/fujitsu/mb9x/mb9bf500r/key.c | 160 + bsp/fujitsu/mb9x/mb9bf500r/key.h | 43 + bsp/fujitsu/mb9x/mb9bf500r/lcd.c | 477 + bsp/fujitsu/mb9x/mb9bf500r/lcd.h | 185 + bsp/fujitsu/mb9x/mb9bf500r/led.c | 146 + bsp/fujitsu/mb9x/mb9bf500r/led.h | 38 + bsp/fujitsu/mb9x/mb9bf500r/mb9bf500r.icf | 32 + bsp/fujitsu/mb9x/mb9bf500r/project.uvopt | 559 + bsp/fujitsu/mb9x/mb9bf500r/project.uvproj | 547 + bsp/fujitsu/mb9x/mb9bf500r/rtconfig.h | 88 + bsp/fujitsu/mb9x/mb9bf500r/rtconfig.py | 124 + bsp/fujitsu/mb9x/mb9bf500r/startup.c | 90 + bsp/fujitsu/mb9x/mb9bf506r/SConscript | 12 + bsp/fujitsu/mb9x/mb9bf506r/SConstruct | 35 + bsp/fujitsu/mb9x/mb9bf506r/applications/SConscript | 9 + .../mb9x/mb9bf506r/applications/application.c | 63 + bsp/fujitsu/mb9x/mb9bf506r/applications/startup.c | 93 + bsp/fujitsu/mb9x/mb9bf506r/drivers/SConscript | 16 + bsp/fujitsu/mb9x/mb9bf506r/drivers/board.c | 57 + bsp/fujitsu/mb9x/mb9bf506r/drivers/board.h | 25 + bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.c | 929 + bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.h | 82 + bsp/fujitsu/mb9x/mb9bf506r/drivers/led.c | 137 + bsp/fujitsu/mb9x/mb9bf506r/drivers/led.h | 39 + bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.c | 663 + bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.h | 53 + .../mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h | 209 + .../mb9bf506r/libraries/CMSIS/Include/core_cm3.h | 1612 + .../libraries/CMSIS/Include/core_cmFunc.h | 616 + .../libraries/CMSIS/Include/core_cmInstr.h | 618 + .../Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h | 17483 +++++++++++ .../Device/FUJISTU/MB9BF50x/Include/mcu.h | 62 + .../FUJISTU/MB9BF50x/Include/system_mb9bf50x.h | 679 + .../FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S | 327 + .../FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S | 290 + .../FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S | 402 + .../FUJISTU/MB9BF50x/Source/system_mb9bf50x.c | 202 + bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript | 23 + bsp/fujitsu/mb9x/mb9bf506r/project.ewp | 1945 ++ bsp/fujitsu/mb9x/mb9bf506r/project.eww | 10 + bsp/fujitsu/mb9x/mb9bf506r/project.uvproj | 697 + bsp/fujitsu/mb9x/mb9bf506r/rtconfig.h | 179 + bsp/fujitsu/mb9x/mb9bf506r/rtconfig.py | 121 + bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.icf | 34 + bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.ld | 221 + bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.sct | 15 + bsp/fujitsu/mb9x/mb9bf506r/template.ewp | 1739 ++ bsp/fujitsu/mb9x/mb9bf506r/template.uvproj | 388 + .../CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s | 584 + .../mb9bf568r/CMSIS/DeviceSupport/base_types.h | 160 + .../CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S | 290 + .../mb9x/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h | 28433 ++++++++++++++++++ .../CMSIS/DeviceSupport/system_mb9abxxx.c | 240 + .../CMSIS/DeviceSupport/system_mb9bf56xr.h | 674 + .../mb9bf568r/CMSIS/Include/arm_common_tables.h | 35 + .../mb9x/mb9bf568r/CMSIS/Include/arm_math.h | 7051 +++++ .../mb9x/mb9bf568r/CMSIS/Include/core_cm0.h | 665 + .../mb9x/mb9bf568r/CMSIS/Include/core_cm3.h | 1236 + .../mb9x/mb9bf568r/CMSIS/Include/core_cm4.h | 1378 + .../mb9x/mb9bf568r/CMSIS/Include/core_cm4_simd.h | 701 + .../mb9x/mb9bf568r/CMSIS/Include/core_cmFunc.h | 609 + .../mb9x/mb9bf568r/CMSIS/Include/core_cmInstr.h | 585 + bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript | 19 + bsp/fujitsu/mb9x/mb9bf568r/SConscript | 14 + bsp/fujitsu/mb9x/mb9bf568r/SConstruct | 36 + bsp/fujitsu/mb9x/mb9bf568r/applications/SConscript | 11 + .../mb9x/mb9bf568r/applications/application.c | 52 + bsp/fujitsu/mb9x/mb9bf568r/applications/startup.c | 87 + bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript | 11 + bsp/fujitsu/mb9x/mb9bf568r/drivers/board.c | 92 + bsp/fujitsu/mb9x/mb9bf568r/drivers/board.h | 35 + bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c | 163 + bsp/fujitsu/mb9x/mb9bf568r/drivers/mcu.h | 65 + bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.c | 355 + bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.h | 96 + bsp/fujitsu/mb9x/mb9bf568r/project.uvopt | 172 + bsp/fujitsu/mb9x/mb9bf568r/project.uvproj | 629 + bsp/fujitsu/mb9x/mb9bf568r/rtconfig.h | 75 + bsp/fujitsu/mb9x/mb9bf568r/rtconfig.py | 86 + bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.ld | 221 + bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.sct | 23 + bsp/fujitsu/mb9x/mb9bf568r/template.uvopt | 172 + bsp/fujitsu/mb9x/mb9bf568r/template.uvproj | 398 + .../DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h | 29269 ++++++++++++++++++ .../DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h | 29338 +++++++++++++++++++ .../mb9bf61x/startup/arm/startup_mb9bf61x.S | 333 + .../mb9bf61x/startup/gcc/startup_mb9bf61x.c | 244 + .../mb9bf61x/startup/iar/startup_mb9bf61x.S | 417 + .../fujitsu/mb9bf61x/system_mb9bf61x.c | 206 + .../fujitsu/mb9bf61x/system_mb9bf61x.h | 678 + .../mb9bf618s/CMSIS/Include/arm_common_tables.h | 93 + .../mb9bf618s/CMSIS/Include/arm_const_structs.h | 85 + .../mb9x/mb9bf618s/CMSIS/Include/arm_math.h | 7306 +++++ .../mb9x/mb9bf618s/CMSIS/Include/core_cm0.h | 682 + .../mb9x/mb9bf618s/CMSIS/Include/core_cm0plus.h | 793 + .../mb9x/mb9bf618s/CMSIS/Include/core_cm3.h | 1627 + .../mb9x/mb9bf618s/CMSIS/Include/core_cm4.h | 1772 ++ .../mb9x/mb9bf618s/CMSIS/Include/core_cm4_simd.h | 673 + .../mb9x/mb9bf618s/CMSIS/Include/core_cmFunc.h | 636 + .../mb9x/mb9bf618s/CMSIS/Include/core_cmInstr.h | 688 + .../mb9x/mb9bf618s/CMSIS/Include/core_sc000.h | 813 + .../mb9x/mb9bf618s/CMSIS/Include/core_sc300.h | 1598 + bsp/fujitsu/mb9x/mb9bf618s/CMSIS/README.txt | 37 + bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript | 21 + bsp/fujitsu/mb9x/mb9bf618s/SConscript | 14 + bsp/fujitsu/mb9x/mb9bf618s/SConstruct | 35 + bsp/fujitsu/mb9x/mb9bf618s/applications/SConscript | 11 + .../mb9x/mb9bf618s/applications/application.c | 50 + bsp/fujitsu/mb9x/mb9bf618s/applications/startup.c | 87 + bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript | 11 + bsp/fujitsu/mb9x/mb9bf618s/drivers/board.c | 92 + bsp/fujitsu/mb9x/mb9bf618s/drivers/board.h | 46 + bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c | 166 + bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.c | 433 + bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.h | 95 + bsp/fujitsu/mb9x/mb9bf618s/project.ewp | 2012 ++ bsp/fujitsu/mb9x/mb9bf618s/project.eww | 10 + bsp/fujitsu/mb9x/mb9bf618s/project.uvproj | 630 + bsp/fujitsu/mb9x/mb9bf618s/rtconfig.h | 75 + bsp/fujitsu/mb9x/mb9bf618s/rtconfig.py | 126 + bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.icf | 34 + bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.ld | 143 + bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.sct | 15 + bsp/fujitsu/mb9x/mb9bf618s/template.ewp | 1839 ++ bsp/fujitsu/mb9x/mb9bf618s/template.uvproj | 394 + bsp/mb9bf500r/CMSIS/SConscript | 19 - bsp/mb9bf500r/CMSIS/core_cm3.c | 359 - bsp/mb9bf500r/CMSIS/core_cm3.h | 1166 - bsp/mb9bf500r/CMSIS/core_cmFunc.h | 912 - bsp/mb9bf500r/CMSIS/core_cmInstr.h | 684 - bsp/mb9bf500r/CMSIS/mb9bf506r.h | 9739 ------ bsp/mb9bf500r/CMSIS/start_gcc.S | 350 - bsp/mb9bf500r/CMSIS/start_iar.S | 359 - bsp/mb9bf500r/CMSIS/start_rvds.S | 287 - bsp/mb9bf500r/CMSIS/system_mb9bf50x.c | 111 - bsp/mb9bf500r/CMSIS/system_mb9bf50x.h | 71 - bsp/mb9bf500r/SConscript | 16 - bsp/mb9bf500r/SConstruct | 37 - bsp/mb9bf500r/adc.c | 129 - bsp/mb9bf500r/adc.h | 28 - bsp/mb9bf500r/application.c | 142 - bsp/mb9bf500r/board.c | 50 - bsp/mb9bf500r/board.h | 25 - bsp/mb9bf500r/cpuusage.c | 124 - bsp/mb9bf500r/cpuusage.h | 19 - bsp/mb9bf500r/fm3_easy_kit.ewp | 2027 -- bsp/mb9bf500r/fm3_easy_kit.eww | 10 - bsp/mb9bf500r/fm3_rom.ld | 133 - bsp/mb9bf500r/fm3_rom.sct | 15 - bsp/mb9bf500r/font.h | 970 - bsp/mb9bf500r/info.c | 222 - bsp/mb9bf500r/key.c | 160 - bsp/mb9bf500r/key.h | 43 - bsp/mb9bf500r/lcd.c | 477 - bsp/mb9bf500r/lcd.h | 185 - bsp/mb9bf500r/led.c | 146 - bsp/mb9bf500r/led.h | 38 - bsp/mb9bf500r/mb9bf500r.icf | 32 - bsp/mb9bf500r/project.uvopt | 559 - bsp/mb9bf500r/project.uvproj | 547 - bsp/mb9bf500r/rtconfig.h | 88 - bsp/mb9bf500r/rtconfig.py | 124 - bsp/mb9bf500r/startup.c | 90 - bsp/mb9bf506r/SConscript | 12 - bsp/mb9bf506r/SConstruct | 35 - bsp/mb9bf506r/applications/SConscript | 9 - bsp/mb9bf506r/applications/application.c | 63 - bsp/mb9bf506r/applications/startup.c | 93 - bsp/mb9bf506r/drivers/SConscript | 16 - bsp/mb9bf506r/drivers/board.c | 57 - bsp/mb9bf506r/drivers/board.h | 25 - bsp/mb9bf506r/drivers/fm3_uart.c | 929 - bsp/mb9bf506r/drivers/fm3_uart.h | 82 - bsp/mb9bf506r/drivers/led.c | 137 - bsp/mb9bf506r/drivers/led.h | 39 - bsp/mb9bf506r/drivers/nand.c | 663 - bsp/mb9bf506r/drivers/nand.h | 53 - bsp/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h | 209 - bsp/mb9bf506r/libraries/CMSIS/Include/core_cm3.h | 1612 - .../libraries/CMSIS/Include/core_cmFunc.h | 616 - .../libraries/CMSIS/Include/core_cmInstr.h | 618 - .../Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h | 17483 ----------- .../Device/FUJISTU/MB9BF50x/Include/mcu.h | 62 - .../FUJISTU/MB9BF50x/Include/system_mb9bf50x.h | 679 - .../FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S | 327 - .../FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S | 290 - .../FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S | 402 - .../FUJISTU/MB9BF50x/Source/system_mb9bf50x.c | 202 - bsp/mb9bf506r/libraries/SConscript | 23 - bsp/mb9bf506r/project.ewp | 1945 -- bsp/mb9bf506r/project.eww | 10 - bsp/mb9bf506r/project.uvproj | 697 - bsp/mb9bf506r/rtconfig.h | 179 - bsp/mb9bf506r/rtconfig.py | 121 - bsp/mb9bf506r/rtthread-mb9bf506.icf | 34 - bsp/mb9bf506r/rtthread-mb9bf506.ld | 221 - bsp/mb9bf506r/rtthread-mb9bf506.sct | 15 - bsp/mb9bf506r/template.ewp | 1739 -- bsp/mb9bf506r/template.uvproj | 388 - .../CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s | 584 - bsp/mb9bf568r/CMSIS/DeviceSupport/base_types.h | 160 - .../CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S | 290 - bsp/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h | 28433 ------------------ .../CMSIS/DeviceSupport/system_mb9abxxx.c | 240 - .../CMSIS/DeviceSupport/system_mb9bf56xr.h | 674 - bsp/mb9bf568r/CMSIS/Include/arm_common_tables.h | 35 - bsp/mb9bf568r/CMSIS/Include/arm_math.h | 7051 ----- bsp/mb9bf568r/CMSIS/Include/core_cm0.h | 665 - bsp/mb9bf568r/CMSIS/Include/core_cm3.h | 1236 - bsp/mb9bf568r/CMSIS/Include/core_cm4.h | 1378 - bsp/mb9bf568r/CMSIS/Include/core_cm4_simd.h | 701 - bsp/mb9bf568r/CMSIS/Include/core_cmFunc.h | 609 - bsp/mb9bf568r/CMSIS/Include/core_cmInstr.h | 585 - bsp/mb9bf568r/CMSIS/SConscript | 19 - bsp/mb9bf568r/SConscript | 14 - bsp/mb9bf568r/SConstruct | 36 - bsp/mb9bf568r/applications/SConscript | 11 - bsp/mb9bf568r/applications/application.c | 52 - bsp/mb9bf568r/applications/startup.c | 87 - bsp/mb9bf568r/drivers/SConscript | 11 - bsp/mb9bf568r/drivers/board.c | 92 - bsp/mb9bf568r/drivers/board.h | 35 - bsp/mb9bf568r/drivers/led.c | 163 - bsp/mb9bf568r/drivers/mcu.h | 65 - bsp/mb9bf568r/drivers/serial.c | 355 - bsp/mb9bf568r/drivers/serial.h | 96 - bsp/mb9bf568r/project.uvopt | 172 - bsp/mb9bf568r/project.uvproj | 629 - bsp/mb9bf568r/rtconfig.h | 75 - bsp/mb9bf568r/rtconfig.py | 86 - bsp/mb9bf568r/rtthread-mb9bf568r.ld | 221 - bsp/mb9bf568r/rtthread-mb9bf568r.sct | 23 - bsp/mb9bf568r/template.uvopt | 172 - bsp/mb9bf568r/template.uvproj | 398 - .../CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf | Bin 24914 -> 0 bytes .../DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h | 29269 ------------------ .../DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h | 29338 ------------------- .../mb9bf61x/startup/arm/startup_mb9bf61x.S | 333 - .../mb9bf61x/startup/gcc/startup_mb9bf61x.c | 244 - .../mb9bf61x/startup/iar/startup_mb9bf61x.S | 417 - .../fujitsu/mb9bf61x/system_mb9bf61x.c | 206 - .../fujitsu/mb9bf61x/system_mb9bf61x.h | 678 - bsp/mb9bf618s/CMSIS/Include/arm_common_tables.h | 93 - bsp/mb9bf618s/CMSIS/Include/arm_const_structs.h | 85 - bsp/mb9bf618s/CMSIS/Include/arm_math.h | 7306 ----- bsp/mb9bf618s/CMSIS/Include/core_cm0.h | 682 - bsp/mb9bf618s/CMSIS/Include/core_cm0plus.h | 793 - bsp/mb9bf618s/CMSIS/Include/core_cm3.h | 1627 - bsp/mb9bf618s/CMSIS/Include/core_cm4.h | 1772 -- bsp/mb9bf618s/CMSIS/Include/core_cm4_simd.h | 673 - bsp/mb9bf618s/CMSIS/Include/core_cmFunc.h | 636 - bsp/mb9bf618s/CMSIS/Include/core_cmInstr.h | 688 - bsp/mb9bf618s/CMSIS/Include/core_sc000.h | 813 - bsp/mb9bf618s/CMSIS/Include/core_sc300.h | 1598 - bsp/mb9bf618s/CMSIS/README.txt | 37 - bsp/mb9bf618s/CMSIS/SConscript | 21 - bsp/mb9bf618s/SConscript | 14 - bsp/mb9bf618s/SConstruct | 35 - bsp/mb9bf618s/applications/SConscript | 11 - bsp/mb9bf618s/applications/application.c | 50 - bsp/mb9bf618s/applications/startup.c | 87 - bsp/mb9bf618s/drivers/SConscript | 11 - bsp/mb9bf618s/drivers/board.c | 92 - bsp/mb9bf618s/drivers/board.h | 46 - bsp/mb9bf618s/drivers/led.c | 166 - bsp/mb9bf618s/drivers/serial.c | 433 - bsp/mb9bf618s/drivers/serial.h | 95 - bsp/mb9bf618s/project.ewp | 2012 -- bsp/mb9bf618s/project.eww | 10 - bsp/mb9bf618s/project.uvproj | 630 - bsp/mb9bf618s/rtconfig.h | 75 - bsp/mb9bf618s/rtconfig.py | 126 - bsp/mb9bf618s/rtthread-fm3.icf | 34 - bsp/mb9bf618s/rtthread-fm3.ld | 143 - bsp/mb9bf618s/rtthread-fm3.sct | 15 - bsp/mb9bf618s/template.ewp | 1839 -- bsp/mb9bf618s/template.uvproj | 394 - 304 files changed, 179662 insertions(+), 179662 deletions(-) create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmFunc.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmInstr.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/mb9bf506r.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_gcc.S create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_iar.S create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_rvds.S create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/SConstruct create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/adc.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/adc.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/application.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/board.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/board.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/cpuusage.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/cpuusage.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.ewp create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.eww create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.ld create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.sct create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/font.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/info.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/key.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/key.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/lcd.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/lcd.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/led.c create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/led.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/mb9bf500r.icf create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/project.uvopt create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/project.uvproj create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/rtconfig.h create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/rtconfig.py create mode 100644 bsp/fujitsu/mb9x/mb9bf500r/startup.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/SConstruct create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/applications/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/applications/application.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/applications/startup.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/board.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/board.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/led.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/led.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cm3.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/project.ewp create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/project.eww create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/project.uvproj create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/rtconfig.h create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/rtconfig.py create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.icf create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.ld create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.sct create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/template.ewp create mode 100644 bsp/fujitsu/mb9x/mb9bf506r/template.uvproj create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/base_types.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_common_tables.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_math.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm0.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm3.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4_simd.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmFunc.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmInstr.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/SConstruct create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/applications/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/applications/application.c create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/applications/startup.c create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/board.c create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/board.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/mcu.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.c create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/project.uvopt create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/project.uvproj create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/rtconfig.h create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/rtconfig.py create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.ld create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.sct create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/template.uvopt create mode 100644 bsp/fujitsu/mb9x/mb9bf568r/template.uvproj create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_common_tables.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_const_structs.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_math.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0plus.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm3.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4_simd.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmFunc.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmInstr.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc000.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc300.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/README.txt create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/SConstruct create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/applications/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/applications/application.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/applications/startup.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/drivers/board.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/drivers/board.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.c create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/project.ewp create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/project.eww create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/project.uvproj create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/rtconfig.h create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/rtconfig.py create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.icf create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.ld create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.sct create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/template.ewp create mode 100644 bsp/fujitsu/mb9x/mb9bf618s/template.uvproj delete mode 100644 bsp/mb9bf500r/CMSIS/SConscript delete mode 100644 bsp/mb9bf500r/CMSIS/core_cm3.c delete mode 100644 bsp/mb9bf500r/CMSIS/core_cm3.h delete mode 100644 bsp/mb9bf500r/CMSIS/core_cmFunc.h delete mode 100644 bsp/mb9bf500r/CMSIS/core_cmInstr.h delete mode 100644 bsp/mb9bf500r/CMSIS/mb9bf506r.h delete mode 100644 bsp/mb9bf500r/CMSIS/start_gcc.S delete mode 100644 bsp/mb9bf500r/CMSIS/start_iar.S delete mode 100644 bsp/mb9bf500r/CMSIS/start_rvds.S delete mode 100644 bsp/mb9bf500r/CMSIS/system_mb9bf50x.c delete mode 100644 bsp/mb9bf500r/CMSIS/system_mb9bf50x.h delete mode 100644 bsp/mb9bf500r/SConscript delete mode 100644 bsp/mb9bf500r/SConstruct delete mode 100644 bsp/mb9bf500r/adc.c delete mode 100644 bsp/mb9bf500r/adc.h delete mode 100644 bsp/mb9bf500r/application.c delete mode 100644 bsp/mb9bf500r/board.c delete mode 100644 bsp/mb9bf500r/board.h delete mode 100644 bsp/mb9bf500r/cpuusage.c delete mode 100644 bsp/mb9bf500r/cpuusage.h delete mode 100644 bsp/mb9bf500r/fm3_easy_kit.ewp delete mode 100644 bsp/mb9bf500r/fm3_easy_kit.eww delete mode 100644 bsp/mb9bf500r/fm3_rom.ld delete mode 100644 bsp/mb9bf500r/fm3_rom.sct delete mode 100644 bsp/mb9bf500r/font.h delete mode 100644 bsp/mb9bf500r/info.c delete mode 100644 bsp/mb9bf500r/key.c delete mode 100644 bsp/mb9bf500r/key.h delete mode 100644 bsp/mb9bf500r/lcd.c delete mode 100644 bsp/mb9bf500r/lcd.h delete mode 100644 bsp/mb9bf500r/led.c delete mode 100644 bsp/mb9bf500r/led.h delete mode 100644 bsp/mb9bf500r/mb9bf500r.icf delete mode 100644 bsp/mb9bf500r/project.uvopt delete mode 100644 bsp/mb9bf500r/project.uvproj delete mode 100644 bsp/mb9bf500r/rtconfig.h delete mode 100644 bsp/mb9bf500r/rtconfig.py delete mode 100644 bsp/mb9bf500r/startup.c delete mode 100644 bsp/mb9bf506r/SConscript delete mode 100644 bsp/mb9bf506r/SConstruct delete mode 100644 bsp/mb9bf506r/applications/SConscript delete mode 100644 bsp/mb9bf506r/applications/application.c delete mode 100644 bsp/mb9bf506r/applications/startup.c delete mode 100644 bsp/mb9bf506r/drivers/SConscript delete mode 100644 bsp/mb9bf506r/drivers/board.c delete mode 100644 bsp/mb9bf506r/drivers/board.h delete mode 100644 bsp/mb9bf506r/drivers/fm3_uart.c delete mode 100644 bsp/mb9bf506r/drivers/fm3_uart.h delete mode 100644 bsp/mb9bf506r/drivers/led.c delete mode 100644 bsp/mb9bf506r/drivers/led.h delete mode 100644 bsp/mb9bf506r/drivers/nand.c delete mode 100644 bsp/mb9bf506r/drivers/nand.h delete mode 100644 bsp/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h delete mode 100644 bsp/mb9bf506r/libraries/CMSIS/Include/core_cm3.h delete mode 100644 bsp/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h delete mode 100644 bsp/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S delete mode 100644 bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c delete mode 100644 bsp/mb9bf506r/libraries/SConscript delete mode 100644 bsp/mb9bf506r/project.ewp delete mode 100644 bsp/mb9bf506r/project.eww delete mode 100644 bsp/mb9bf506r/project.uvproj delete mode 100644 bsp/mb9bf506r/rtconfig.h delete mode 100644 bsp/mb9bf506r/rtconfig.py delete mode 100644 bsp/mb9bf506r/rtthread-mb9bf506.icf delete mode 100644 bsp/mb9bf506r/rtthread-mb9bf506.ld delete mode 100644 bsp/mb9bf506r/rtthread-mb9bf506.sct delete mode 100644 bsp/mb9bf506r/template.ewp delete mode 100644 bsp/mb9bf506r/template.uvproj delete mode 100644 bsp/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s delete mode 100644 bsp/mb9bf568r/CMSIS/DeviceSupport/base_types.h delete mode 100644 bsp/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S delete mode 100644 bsp/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h delete mode 100644 bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c delete mode 100644 bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/arm_common_tables.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/arm_math.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/core_cm0.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/core_cm3.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/core_cm4.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/core_cm4_simd.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/core_cmFunc.h delete mode 100644 bsp/mb9bf568r/CMSIS/Include/core_cmInstr.h delete mode 100644 bsp/mb9bf568r/CMSIS/SConscript delete mode 100644 bsp/mb9bf568r/SConscript delete mode 100644 bsp/mb9bf568r/SConstruct delete mode 100644 bsp/mb9bf568r/applications/SConscript delete mode 100644 bsp/mb9bf568r/applications/application.c delete mode 100644 bsp/mb9bf568r/applications/startup.c delete mode 100644 bsp/mb9bf568r/drivers/SConscript delete mode 100644 bsp/mb9bf568r/drivers/board.c delete mode 100644 bsp/mb9bf568r/drivers/board.h delete mode 100644 bsp/mb9bf568r/drivers/led.c delete mode 100644 bsp/mb9bf568r/drivers/mcu.h delete mode 100644 bsp/mb9bf568r/drivers/serial.c delete mode 100644 bsp/mb9bf568r/drivers/serial.h delete mode 100644 bsp/mb9bf568r/project.uvopt delete mode 100644 bsp/mb9bf568r/project.uvproj delete mode 100644 bsp/mb9bf568r/rtconfig.h delete mode 100644 bsp/mb9bf568r/rtconfig.py delete mode 100644 bsp/mb9bf568r/rtthread-mb9bf568r.ld delete mode 100644 bsp/mb9bf568r/rtthread-mb9bf568r.sct delete mode 100644 bsp/mb9bf568r/template.uvopt delete mode 100644 bsp/mb9bf568r/template.uvproj delete mode 100644 bsp/mb9bf618s/CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c delete mode 100644 bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/arm_common_tables.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/arm_const_structs.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/arm_math.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cm0.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cm0plus.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cm3.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cm4.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cm4_simd.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cmFunc.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_cmInstr.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_sc000.h delete mode 100644 bsp/mb9bf618s/CMSIS/Include/core_sc300.h delete mode 100644 bsp/mb9bf618s/CMSIS/README.txt delete mode 100644 bsp/mb9bf618s/CMSIS/SConscript delete mode 100644 bsp/mb9bf618s/SConscript delete mode 100644 bsp/mb9bf618s/SConstruct delete mode 100644 bsp/mb9bf618s/applications/SConscript delete mode 100644 bsp/mb9bf618s/applications/application.c delete mode 100644 bsp/mb9bf618s/applications/startup.c delete mode 100644 bsp/mb9bf618s/drivers/SConscript delete mode 100644 bsp/mb9bf618s/drivers/board.c delete mode 100644 bsp/mb9bf618s/drivers/board.h delete mode 100644 bsp/mb9bf618s/drivers/led.c delete mode 100644 bsp/mb9bf618s/drivers/serial.c delete mode 100644 bsp/mb9bf618s/drivers/serial.h delete mode 100644 bsp/mb9bf618s/project.ewp delete mode 100644 bsp/mb9bf618s/project.eww delete mode 100644 bsp/mb9bf618s/project.uvproj delete mode 100644 bsp/mb9bf618s/rtconfig.h delete mode 100644 bsp/mb9bf618s/rtconfig.py delete mode 100644 bsp/mb9bf618s/rtthread-fm3.icf delete mode 100644 bsp/mb9bf618s/rtthread-fm3.ld delete mode 100644 bsp/mb9bf618s/rtthread-fm3.sct delete mode 100644 bsp/mb9bf618s/template.ewp delete mode 100644 bsp/mb9bf618s/template.uvproj (limited to '.github/workflows') diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index e2941cec64..0a42aa1dbb 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -75,10 +75,10 @@ jobs: - {RTT_BSP: "loongson/ls1bdev", RTT_TOOL_CHAIN: "sourcery-mips"} - {RTT_BSP: "loongson/ls1cdev", RTT_TOOL_CHAIN: "sourcery-mips"} - {RTT_BSP: "loongson/ls2kdev", RTT_TOOL_CHAIN: "sourcery-mips"} - - {RTT_BSP: "mb9bf500r", RTT_TOOL_CHAIN: "sourcery-arm"} - - {RTT_BSP: "mb9bf506r", RTT_TOOL_CHAIN: "sourcery-arm"} - - {RTT_BSP: "mb9bf618s", RTT_TOOL_CHAIN: "sourcery-arm"} - - {RTT_BSP: "mb9bf568r", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "fujitsu/mb9x/mb9bf500r", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "fujitsu/mb9x/mb9bf506r", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "fujitsu/mb9x/mb9bf618s", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "fujitsu/mb9x/mb9bf568r", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "mini2440", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "nrf5x/nrf51822", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "nrf5x/nrf52832", RTT_TOOL_CHAIN: "sourcery-arm"} diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript new file mode 100644 index 0000000000..165b344fe8 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript @@ -0,0 +1,19 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +src = Glob('*.c') + +# add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + src = src + ['start_gcc.S'] +elif rtconfig.CROSS_TOOL == 'keil': + src = src + ['start_rvds.S'] +elif rtconfig.CROSS_TOOL == 'iar': + src = src + ['start_iar.S'] + +CPPPATH = [GetCurrentDir()] + +group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, LIBRARY = '') + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.c b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.c new file mode 100644 index 0000000000..f176c3acca --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.c @@ -0,0 +1,359 @@ +/**************************************************************************//** + * @file core_cm3.c + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Source File + * @version V1.40 + * @date 18. February 2010 + * + * @note + * Copyright (C) 2009-2010 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#include + +/* define compiler specific symbols */ +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */ + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + +#endif + + +/* ########################## Core Instruction Access ######################### */ + +#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ + +/** + * @brief Reverse byte order (16 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in unsigned short value + */ +#if (__ARMCC_VERSION < 400677) +__ASM uint32_t __REV16(uint16_t value) +{ + rev16 r0, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Reverse byte order in signed short value with sign extension to integer + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in signed short value with sign extension to integer + */ +#if (__ARMCC_VERSION < 400677) +__ASM int32_t __REVSH(int16_t value) +{ + revsh r0, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + + /** + * @brief Remove the exclusive lock created by ldrex + * + * Removes the exclusive lock which is created by ldrex. + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __CLREX(void) +{ + clrex +} +#endif /* __ARMCC_VERSION */ + + +#elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ +/* obsolete */ +#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ +/* obsolete */ +#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ +/* obsolete */ +#endif + + +/* ########################### Core Function Access ########################### */ + +#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ + +/** + * @brief Return the Control Register value +* +* @return Control value + * + * Return the content of the control register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_CONTROL(void) +{ + mrs r0, control + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Control Register value + * + * @param control Control value + * + * Set the control register + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __set_CONTROL(uint32_t control) +{ + msr control, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Get IPSR Register value + * + * @return uint32_t IPSR value + * + * return the content of the IPSR register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_IPSR(void) +{ + mrs r0, ipsr + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Get APSR Register value + * + * @return uint32_t APSR value + * + * return the content of the APSR register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_APSR(void) +{ + mrs r0, apsr + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Get xPSR Register value + * + * @return uint32_t xPSR value + * + * return the content of the xPSR register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_xPSR(void) +{ + mrs r0, xpsr + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Process Stack Pointer + * + * @return ProcessStackPointer + * + * Return the actual process stack pointer + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_PSP(void) +{ + mrs r0, psp + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Process Stack Pointer + * + * @param topOfProcStack Process Stack Pointer + * + * Assign the value ProcessStackPointer to the MSP + * (process stack pointer) Cortex processor register + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __set_PSP(uint32_t topOfProcStack) +{ + msr psp, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Main Stack Pointer + * + * @return Main Stack Pointer + * + * Return the current value of the MSP (main stack pointer) + * Cortex processor register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_MSP(void) +{ + mrs r0, msp + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Main Stack Pointer + * + * @param topOfMainStack Main Stack Pointer + * + * Assign the value mainStackPointer to the MSP + * (main stack pointer) Cortex processor register + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __set_MSP(uint32_t mainStackPointer) +{ + msr msp, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Base Priority value + * + * @return BasePriority + * + * Return the content of the base priority register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_BASEPRI(void) +{ + mrs r0, basepri + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Base Priority value + * + * @param basePri BasePriority + * + * Set the base priority register + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __set_BASEPRI(uint32_t basePri) +{ + msr basepri, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Priority Mask value + * + * @return PriMask + * + * Return state of the priority mask bit from the priority mask register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_PRIMASK(void) +{ + mrs r0, primask + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Priority Mask value + * + * @param priMask PriMask + * + * Set the priority mask bit in the priority mask register + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __set_PRIMASK(uint32_t priMask) +{ + msr primask, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Fault Mask value + * + * @return FaultMask + * + * Return the content of the fault mask register + */ +#if (__ARMCC_VERSION < 400000) +__ASM uint32_t __get_FAULTMASK(void) +{ + mrs r0, faultmask + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Fault Mask value + * + * @param faultMask faultMask value + * + * Set the fault mask register + */ +#if (__ARMCC_VERSION < 400000) +__ASM void __set_FAULTMASK(uint32_t faultMask) +{ + msr faultmask, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the FPSCR value + * + * @return FloatingPointStatusControlRegister + * + * Return the content of the FPSCR register + */ + +/** + * @brief Set the FPSCR value + * + * @param fpscr FloatingPointStatusControlRegister + * + * Set the FPSCR register + */ + + +#elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ +/* obsolete */ +#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ +/* obsolete */ +#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ +/* obsolete */ +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.h b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.h new file mode 100644 index 0000000000..e062e30606 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cm3.h @@ -0,0 +1,1166 @@ +/**************************************************************************//** + * @file core_cm3.h + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File + * @version V1.40 + * @date 16. February 2010 + * + * @note + * Copyright (C) 2009-2010 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CM3_H__ +#define __CORE_CM3_H__ + +/** @addtogroup CMSIS_CM3_core_LintCinfiguration CMSIS CM3 Core Lint Configuration + * + * List of Lint messages which will be suppressed and not shown: + * - not yet checked + * . + * Note: To re-enable a Message, insert a space before 'lint' * + * + */ + + +/** @addtogroup CMSIS_CM3_core_definitions CM3 Core Definitions + This file defines all structures and symbols for CMSIS core: + - CMSIS version number + - Cortex-M core registers and bitfields + - Cortex-M core peripheral base address + @{ + */ + +#ifdef __cplusplus + extern "C" { +#endif + +#define __CM3_CMSIS_VERSION_MAIN (0x01) /*!< [31:16] CMSIS HAL main version */ +#define __CM3_CMSIS_VERSION_SUB (0x40) /*!< [15:0] CMSIS HAL sub version */ +#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | __CM3_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x03) /*!< Cortex core */ + +#ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 /*!< standard definition for NVIC Priority Bits */ +#endif + + +#include /* Include standard types */ + + + +/** + * IO definitions + * + * define access restrictions to peripheral registers + */ + +#ifdef __cplusplus + #define __I volatile /*!< defines 'read only' permissions */ +#else + #define __I volatile const /*!< defines 'read only' permissions */ +#endif +#define __O volatile /*!< defines 'write only' permissions */ +#define __IO volatile /*!< defines 'read / write' permissions */ + + + +/******************************************************************************* + * Register Abstraction + ******************************************************************************/ +/** @addtogroup CMSIS_CM3_core_register CMSIS CM3 Core Register + @{ +*/ + +/** @addtogroup CMSIS_ARM_CORE CMSIS ARM Core + memory mapped structure for Nested Vectored Interrupt Controller (NVIC) + @{ + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; +#else + uint32_t _reserved0:16; + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; + uint32_t w; +} APSR_Type; + +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 00..08 Exception number */ + uint32_t _reserved0:23; + } b; + uint32_t w; +} IPSR_Type; + +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 00..08 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; +#else + uint32_t _reserved0:7; + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; + uint32_t w; +} xPSR_Type; + +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 00 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 01 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 02 FP extension active flag */ + uint32_t _reserved0:29; + } b; + uint32_t w; +} CONTROL_Type; + +/*@}*/ /* end of group CMSIS_ARM_CORE */ + + +/** @addtogroup CMSIS_CM3_NVIC CMSIS CM3 NVIC + memory mapped structure for Nested Vectored Interrupt Controller (NVIC) + @{ + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 Software Trigger Interrupt Register */ +} NVIC_Type; +/*@}*/ /* end of group CMSIS_CM3_NVIC */ + + +/** @addtogroup CMSIS_CM3_SCB CMSIS CM3 SCB + memory mapped structure for System Control Block (SCB) + @{ + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x00 CPU ID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x04 Interrupt Control State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x08 Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x0C Application Interrupt / Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x10 System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x14 Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x18 System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x24 System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x28 Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x2C Hard Fault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x30 Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x34 Mem Manage Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x38 Bus Fault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x3C Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x40 Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x48 Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x4C Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x50 Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x60 ISA Feature Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFul << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFul << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFul << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFul << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1ul << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1ul << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1ul << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1ul << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1ul << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1ul << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1ul << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFul << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1ul << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFul << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ +#define SCB_VTOR_TBLBASE_Msk (0x1FFul << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ + +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFul << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFul << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFul << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1ul << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7ul << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1ul << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1ul << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1ul << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1ul << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1ul << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1ul << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1ul << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1ul << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1ul << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1ul << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1ul << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1ul << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1ul << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1ul << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1ul << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1ul << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1ul << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1ul << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1ul << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1ul << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1ul << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1ul << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1ul << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1ul << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1ul << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1ul << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFul << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFul << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFul << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1ul << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1ul << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1ul << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1ul << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1ul << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1ul << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1ul << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1ul << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ +/*@}*/ /* end of group CMSIS_CM3_SCB */ + + +/** @addtogroup CMSIS_CM3_SysTick CMSIS CM3 SysTick + memory mapped structure for SysTick + @{ + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x00 SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x04 SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x08 SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x0C SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1ul << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1ul << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1ul << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1ul << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFul << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFul << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1ul << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1ul << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFul << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ +/*@}*/ /* end of group CMSIS_CM3_SysTick */ + + +/** @addtogroup CMSIS_CM3_ITM CMSIS CM3 ITM + memory mapped structure for Instrumentation Trace Macrocell (ITM) + @{ + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x00 ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: ITM Trace Control Register */ + uint32_t RESERVED3[29]; + __IO uint32_t IWR; /*!< Offset: ITM Integration Write Register */ + __IO uint32_t IRR; /*!< Offset: ITM Integration Read Register */ + __IO uint32_t IMCR; /*!< Offset: ITM Integration Mode Control Register */ + uint32_t RESERVED4[43]; + __IO uint32_t LAR; /*!< Offset: ITM Lock Access Register */ + __IO uint32_t LSR; /*!< Offset: ITM Lock Status Register */ + uint32_t RESERVED5[6]; + __I uint32_t PID4; /*!< Offset: ITM Peripheral Identification Register #4 */ + __I uint32_t PID5; /*!< Offset: ITM Peripheral Identification Register #5 */ + __I uint32_t PID6; /*!< Offset: ITM Peripheral Identification Register #6 */ + __I uint32_t PID7; /*!< Offset: ITM Peripheral Identification Register #7 */ + __I uint32_t PID0; /*!< Offset: ITM Peripheral Identification Register #0 */ + __I uint32_t PID1; /*!< Offset: ITM Peripheral Identification Register #1 */ + __I uint32_t PID2; /*!< Offset: ITM Peripheral Identification Register #2 */ + __I uint32_t PID3; /*!< Offset: ITM Peripheral Identification Register #3 */ + __I uint32_t CID0; /*!< Offset: ITM Component Identification Register #0 */ + __I uint32_t CID1; /*!< Offset: ITM Component Identification Register #1 */ + __I uint32_t CID2; /*!< Offset: ITM Component Identification Register #2 */ + __I uint32_t CID3; /*!< Offset: ITM Component Identification Register #3 */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFul << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1ul << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_ATBID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_ATBID_Msk (0x7Ful << ITM_TCR_ATBID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3ul << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1ul << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ +#define ITM_TCR_DWTENA_Msk (1ul << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1ul << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1ul << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1ul << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/* ITM Integration Write Register Definitions */ +#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ +#define ITM_IWR_ATVALIDM_Msk (1ul << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ + +/* ITM Integration Read Register Definitions */ +#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ +#define ITM_IRR_ATREADYM_Msk (1ul << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ + +/* ITM Integration Mode Control Register Definitions */ +#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ +#define ITM_IMCR_INTEGRATION_Msk (1ul << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ + +/* ITM Lock Status Register Definitions */ +#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ +#define ITM_LSR_ByteAcc_Msk (1ul << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ + +#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ +#define ITM_LSR_Access_Msk (1ul << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ + +#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ +#define ITM_LSR_Present_Msk (1ul << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ +/*@}*/ /* end of group CMSIS_CM3_ITM */ + + +/** @addtogroup CMSIS_CM3_InterruptType CMSIS CM3 Interrupt Type + memory mapped structure for Interrupt Type + @{ + */ +typedef struct +{ + uint32_t RESERVED0; + __I uint32_t ICTR; /*!< Offset: 0x04 Interrupt Control Type Register */ + __IO uint32_t ACTLR; /*!< Offset: 0x08 Auxiliary Control Register */ +} InterruptType_Type; + +/* Interrupt Controller Type Register Definitions */ +#define InterruptType_ICTR_INTLINESNUM_Pos 0 /*!< InterruptType ICTR: INTLINESNUM Position */ +#define InterruptType_ICTR_INTLINESNUM_Msk (0x1Ful << InterruptType_ICTR_INTLINESNUM_Pos) /*!< InterruptType ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ +#define InterruptType_ACTLR_DISFOLD_Pos 2 /*!< InterruptType ACTLR: DISFOLD Position */ +#define InterruptType_ACTLR_DISFOLD_Msk (1ul << InterruptType_ACTLR_DISFOLD_Pos) /*!< InterruptType ACTLR: DISFOLD Mask */ + +#define InterruptType_ACTLR_DISDEFWBUF_Pos 1 /*!< InterruptType ACTLR: DISDEFWBUF Position */ +#define InterruptType_ACTLR_DISDEFWBUF_Msk (1ul << InterruptType_ACTLR_DISDEFWBUF_Pos) /*!< InterruptType ACTLR: DISDEFWBUF Mask */ + +#define InterruptType_ACTLR_DISMCYCINT_Pos 0 /*!< InterruptType ACTLR: DISMCYCINT Position */ +#define InterruptType_ACTLR_DISMCYCINT_Msk (1ul << InterruptType_ACTLR_DISMCYCINT_Pos) /*!< InterruptType ACTLR: DISMCYCINT Mask */ +/*@}*/ /* end of group CMSIS_CM3_InterruptType */ + + +#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1) +/** @addtogroup CMSIS_CM3_MPU CMSIS CM3 MPU + memory mapped structure for Memory Protection Unit (MPU) + @{ + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x00 MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x04 MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x08 MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x0C MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x10 MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x14 MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x18 MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x1C MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x20 MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x24 MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x28 MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFul << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFul << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1ul << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1ul << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1ul << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1ul << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFul << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFul << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1ul << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFul << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: XN Position */ +#define MPU_RASR_XN_Msk (1ul << MPU_RASR_XN_Pos) /*!< MPU RASR: XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: AP Position */ +#define MPU_RASR_AP_Msk (7ul << MPU_RASR_AP_Pos) /*!< MPU RASR: AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: TEX Position */ +#define MPU_RASR_TEX_Msk (7ul << MPU_RASR_TEX_Pos) /*!< MPU RASR: TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: Shareable bit Position */ +#define MPU_RASR_S_Msk (1ul << MPU_RASR_S_Pos) /*!< MPU RASR: Shareable bit Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: Cacheable bit Position */ +#define MPU_RASR_C_Msk (1ul << MPU_RASR_C_Pos) /*!< MPU RASR: Cacheable bit Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: Bufferable bit Position */ +#define MPU_RASR_B_Msk (1ul << MPU_RASR_B_Pos) /*!< MPU RASR: Bufferable bit Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFul << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1Ful << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENA_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENA_Msk (0x1Ful << MPU_RASR_ENA_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@}*/ /* end of group CMSIS_CM3_MPU */ +#endif + + +/** @addtogroup CMSIS_CM3_CoreDebug CMSIS CM3 Core Debug + memory mapped structure for Core Debug Register + @{ + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x00 Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x04 Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x08 Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x0C Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFul << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1ul << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1ul << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1ul << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1ul << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1ul << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1ul << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1ul << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1ul << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1ul << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1ul << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1ul << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1ul << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1Ful << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1ul << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1ul << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1ul << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1ul << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1ul << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1ul << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1ul << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1ul << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1ul << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1ul << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1ul << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1ul << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1ul << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ +/*@}*/ /* end of group CMSIS_CM3_CoreDebug */ + + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000) /*!< ITM Base Address */ +#define CoreDebug_BASE (0xE000EDF0) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00) /*!< System Control Block Base Address */ + +#define InterruptType ((InterruptType_Type *) SCS_BASE) /*!< Interrupt Type Register */ +#define SCB ((SCB_Type *) SCB_BASE) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE) /*!< ITM configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type*) MPU_BASE) /*!< Memory Protection Unit */ +#endif + +/*@}*/ /* end of group CMSIS_CM3_core_register */ + + +/******************************************************************************* + * Hardware Abstraction Layer + ******************************************************************************/ + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */ + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + +#endif + +/* ########################## Core Instruction Access ######################### */ +#include "core_cmInstr.h" + +/* ########################### Core Function Access ########################### */ +#include "core_cmFunc.h" + + +/** @addtogroup CMSIS_CM3_Core_FunctionInterface CMSIS CM3 Core Function Interface + Core Function Interface containing: + - Core NVIC Functions + - Core SysTick Functions + - Core Reset Functions +*/ +/*@{*/ + +/* ########################## NVIC functions #################################### */ + +/** + * @brief Set the Priority Grouping in NVIC Interrupt Controller + * + * @param PriorityGroup is priority grouping field + * + * Set the priority grouping field using the required unlock sequence. + * The parameter priority_grouping is assigned to the field + * SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. + * In case of a conflict between priority grouping and available + * priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. + */ +static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + (0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + +/** + * @brief Get the Priority Grouping from NVIC Interrupt Controller + * + * @return priority grouping field + * + * Get the priority grouping from NVIC Interrupt Controller. + * priority grouping is SCB->AIRCR [10:8] PRIGROUP field. + */ +static __INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + +/** + * @brief Enable Interrupt in NVIC Interrupt Controller + * + * @param IRQn The positive number of the external interrupt to enable + * + * Enable a device specific interupt in the NVIC interrupt controller. + * The interrupt number cannot be a negative value. + */ +static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + +/** + * @brief Disable the interrupt line for external interrupt specified + * + * @param IRQn The positive number of the external interrupt to disable + * + * Disable a device specific interupt in the NVIC interrupt controller. + * The interrupt number cannot be a negative value. + */ +static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + +/** + * @brief Read the interrupt pending bit for a device specific interrupt source + * + * @param IRQn The number of the device specifc interrupt + * @return 1 = interrupt pending, 0 = interrupt not pending + * + * Read the pending register in NVIC and return 1 if its status is pending, + * otherwise it returns 0 + */ +static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + +/** + * @brief Set the pending bit for an external interrupt + * + * @param IRQn The number of the interrupt for set pending + * + * Set the pending bit for the specified interrupt. + * The interrupt number cannot be a negative value. + */ +static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + +/** + * @brief Clear the pending bit for an external interrupt + * + * @param IRQn The number of the interrupt for clear pending + * + * Clear the pending bit for the specified interrupt. + * The interrupt number cannot be a negative value. + */ +static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + +/** + * @brief Read the active bit for an external interrupt + * + * @param IRQn The number of the interrupt for read active bit + * @return 1 = interrupt active, 0 = interrupt not active + * + * Read the active register in NVIC and returns 1 if its status is active, + * otherwise it returns 0. + */ +static __INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + +/** + * @brief Set the priority for an interrupt + * + * @param IRQn The number of the interrupt for set priority + * @param priority The priority to set + * + * Set the priority for the specified interrupt. The interrupt + * number can be positive to specify an external (device specific) + * interrupt, or negative to specify an internal (core) interrupt. + * + * Note: The priority cannot be set for every core interrupt. + */ +static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M3 System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + +/** + * @brief Read the priority for an interrupt + * + * @param IRQn The number of the interrupt for get priority + * @return The priority for the interrupt + * + * Read the priority for the specified interrupt. The interrupt + * number can be positive to specify an external (device specific) + * interrupt, or negative to specify an internal (core) interrupt. + * + * The returned priority value is automatically aligned to the implemented + * priority bits of the microcontroller. + * + * Note: The priority cannot be set for every core interrupt. + */ +static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M3 system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** + * @brief Encode the priority for an interrupt + * + * @param PriorityGroup The used priority group + * @param PreemptPriority The preemptive priority value (starting from 0) + * @param SubPriority The sub priority value (starting from 0) + * @return The encoded priority for the interrupt + * + * Encode the priority for an interrupt with the given priority group, + * preemptive priority value and sub priority value. + * In case of a conflict between priority grouping and available + * priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + * + * The returned priority value can be used for NVIC_SetPriority(...) function + */ +static __INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** + * @brief Decode the priority of an interrupt + * + * @param Priority The priority for the interrupt + * @param PriorityGroup The used priority group + * @param pPreemptPriority The preemptive priority value (starting from 0) + * @param pSubPriority The sub priority value (starting from 0) + * + * Decode an interrupt priority value with the given priority group to + * preemptive priority value and sub priority value. + * In case of a conflict between priority grouping and available + * priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + * + * The priority value can be retrieved with NVIC_GetPriority(...) function + */ +static __INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + + +/* ################################## SysTick function ############################################ */ + +#if (!defined (__Vendor_SysTickConfig)) || (__Vendor_SysTickConfig == 0) + +/** + * @brief Initialize and start the SysTick counter and its interrupt. + * + * @param ticks number of ticks between two interrupts + * @return 1 = failed, 0 = successful + * + * Initialise the system tick timer and its interrupt and start the + * system tick timer / counter in free running mode to generate + * periodical interrupts. + */ +static __INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + + + + +/* ################################## Reset function ############################################ */ + +/** + * @brief Initiate a system reset request. + * + * Initiate a system reset request to reset the MCU + */ +static __INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@}*/ /* end of group CMSIS_CM3_Core_FunctionInterface */ + + + +/* ##################################### Debug In/Output function ########################################### */ + +/** @addtogroup CMSIS_CM3_CoreDebugInterface CMSIS CM3 Core Debug Interface + Core Debug Interface containing: + - Core Debug Receive / Transmit Functions + - Core Debug Defines + - Core Debug Variables +*/ +/*@{*/ + +extern volatile int ITM_RxBuffer; /*!< variable to receive characters */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< value identifying ITM_RxBuffer is ready for next character */ + + +/** + * @brief Outputs a character via the ITM channel 0 + * + * @param ch character to output + * @return character to output + * + * The function outputs a character via the ITM channel 0. + * The function returns when no debugger is connected that has booked the output. + * It is blocking when a debugger is connected, but the previous character send is not transmitted. + */ +static __INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk) && /* Trace enabled */ + (ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1ul << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** + * @brief Inputs a character via variable ITM_RxBuffer + * + * @return received character, -1 = no character received + * + * The function inputs a character via variable ITM_RxBuffer. + * The function returns when no debugger is connected that has booked the output. + * It is blocking when a debugger is connected, but the previous character send is not transmitted. + */ +static __INLINE int ITM_ReceiveChar (void) { + int ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** + * @brief Check if a character via variable ITM_RxBuffer is available + * + * @return 1 = character available, 0 = no character available + * + * The function checks variable ITM_RxBuffer whether a character is available or not. + * The function returns '1' if a character is available and '0' if no character is available. + */ +static __INLINE int ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@}*/ /* end of group CMSIS_CM3_core_DebugInterface */ + + +#ifdef __cplusplus +} +#endif + +/*@}*/ /* end of group CMSIS_CM3_core_definitions */ + +#endif /* __CORE_CM3_H__ */ + +/*lint -restore */ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmFunc.h b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmFunc.h new file mode 100644 index 0000000000..b9500f5510 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmFunc.h @@ -0,0 +1,912 @@ +/**************************************************************************//** + * @file core_cmFunc.h + * @brief CMSIS Cortex-M Core Function Access Header File + * @version V1.40 + * @date 16. February 2010 + * + * @note + * Copyright (C) 2009-2010 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMFUNC_H__ +#define __CORE_CMFUNC_H__ + +/* ########################### Core Function Access ########################### */ + +#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ +/* ARM armcc specific functions */ + + /** + * @brief Enable IRQ Interrupts + * + * Enables IRQ interrupts by clearing the I-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +/* intrinsic void __enable_irq(); */ + + /** + * @brief Disable IRQ Interrupts + * + * Disables IRQ interrupts by setting the I-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +/* intrinsic void __disable_irq(); */ + +/** + * @brief Return the Control Register value +* +* @return Control value + * + * Return the content of the control register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_CONTROL(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_CONTROL(void) +{ + register uint32_t __regControl __ASM("control"); + return(__regControl); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Control Register value + * + * @param control Control value + * + * Set the control register + */ +#if (__ARMCC_VERSION < 400000) +extern void __set_CONTROL(uint32_t control); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE void __set_CONTROL(uint32_t control) +{ + register uint32_t __regControl __ASM("control"); + __regControl = control; +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Get IPSR Register value + * + * @return uint32_t IPSR value + * + * return the content of the IPSR register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_IPSR(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_IPSR(void) +{ + register uint32_t __regIPSR __ASM("ipsr"); + return(__regIPSR); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Get APSR Register value + * + * @return uint32_t APSR value + * + * return the content of the APSR register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_APSR(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_APSR(void) +{ + register uint32_t __regAPSR __ASM("apsr"); + return(__regAPSR); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Get xPSR Register value + * + * @return uint32_t xPSR value + * + * return the content of the xPSR register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_xPSR(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_xPSR(void) +{ + register uint32_t __regXPSR __ASM("xpsr"); + return(__regXPSR); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Process Stack Pointer + * + * @return ProcessStackPointer + * + * Return the actual process stack pointer + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_PSP(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_PSP(void) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + return(__regProcessStackPointer); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Process Stack Pointer + * + * @param topOfProcStack Process Stack Pointer + * + * Assign the value ProcessStackPointer to the MSP + * (process stack pointer) Cortex processor register + */ +#if (__ARMCC_VERSION < 400000) +extern void __set_PSP(uint32_t topOfProcStack); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE void __set_PSP(uint32_t topOfProcStack) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + __regProcessStackPointer = topOfProcStack; +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Main Stack Pointer + * + * @return Main Stack Pointer + * + * Return the current value of the MSP (main stack pointer) + * Cortex processor register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_MSP(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_MSP(void) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + return(__regMainStackPointer); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Main Stack Pointer + * + * @param topOfMainStack Main Stack Pointer + * + * Assign the value mainStackPointer to the MSP + * (main stack pointer) Cortex processor register + */ +#if (__ARMCC_VERSION < 400000) +extern void __set_MSP(uint32_t topOfMainStack); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE void __set_MSP(uint32_t mainStackPointer) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + __regMainStackPointer = mainStackPointer; +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Priority Mask value + * + * @return PriMask + * + * Return state of the priority mask bit from the priority mask register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_PRIMASK(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_PRIMASK(void) +{ + register uint32_t __regPriMask __ASM("primask"); + return(__regPriMask); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Priority Mask value + * + * @param priMask PriMask + * + * Set the priority mask bit in the priority mask register + */ +#if (__ARMCC_VERSION < 400000) +extern void __set_PRIMASK(uint32_t priMask); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE void __set_PRIMASK(uint32_t priMask) +{ + register uint32_t __regPriMask __ASM("primask"); + __regPriMask = (priMask); +} +#endif /* __ARMCC_VERSION */ + + +#if (__CORTEX_M >= 0x03) + + /** + * @brief Enable FIQ Interrupts + * + * Enables FIQ interrupts by clearing the F-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +#define __enable_fault_irq __enable_fiq + + /** + * @brief Disable FIQ Interrupts + * + * Disables FIQ interrupts by setting the F-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +#define __disable_fault_irq __disable_fiq + +/** + * @brief Return the Base Priority value + * + * @return BasePriority + * + * Return the content of the base priority register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_BASEPRI(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_BASEPRI(void) +{ + register uint32_t __regBasePri __ASM("basepri"); + return(__regBasePri); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Base Priority value + * + * @param basePri BasePriority + * + * Set the base priority register + */ +#if (__ARMCC_VERSION < 400000) +extern void __set_BASEPRI(uint32_t basePri); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE void __set_BASEPRI(uint32_t basePri) +{ + register uint32_t __regBasePri __ASM("basepri"); + __regBasePri = (basePri & 0xff); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Return the Fault Mask value + * + * @return FaultMask + * + * Return the content of the fault mask register + */ +#if (__ARMCC_VERSION < 400000) +extern uint32_t __get_FAULTMASK(void); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE uint32_t __get_FAULTMASK(void) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + return(__regFaultMask); +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Set the Fault Mask value + * + * @param faultMask faultMask value + * + * Set the fault mask register + */ +#if (__ARMCC_VERSION < 400000) +extern void __set_FAULTMASK(uint32_t faultMask); +#else /* (__ARMCC_VERSION >= 400000) */ +static __INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + __regFaultMask = (faultMask & 1); +} +#endif /* __ARMCC_VERSION */ + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** + * @brief Return the FPSCR value + * + * @return FloatingPointStatusControlRegister + * + * Return the content of the FPSCR register + */ +static __INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) + register uint32_t __regfpscr __ASM("fpscr"); + return(__regfpscr); +#else + return(0); +#endif +} + +/** + * @brief Set the FPSCR value + * + * @param fpscr FloatingPointStatusControlRegister + * + * Set the FPSCR register + */ +static __INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) + register uint32_t __regfpscr __ASM("fpscr"); + __regfpscr = (fpscr); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + + #elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ +/* IAR iccarm specific functions */ +#if defined (__ICCARM__) + #include /* IAR Intrinsics */ +#endif + +#pragma diag_suppress=Pe940 + + /** + * @brief Enable IRQ Interrupts + * + * Enables IRQ interrupts by clearing the I-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +#define __enable_irq __enable_interrupt + + /** + * @brief Disable IRQ Interrupts + * + * Disables IRQ interrupts by setting the I-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +#define __disable_irq __disable_interrupt + +/** + * @brief Return the Control Register value +* +* @return Control value + * + * Return the content of the control register + */ +/* intrinsic unsigned long __get_CONTROL( void ); (see intrinsic.h) */ + +/** + * @brief Set the Control Register value + * + * @param control Control value + * + * Set the control register + */ +/* intrinsic void __set_CONTROL( unsigned long ); (see intrinsic.h) */ + +/** + * @brief Get IPSR Register value + * + * @return uint32_t IPSR value + * + * return the content of the IPSR register + */ +static uint32_t __get_IPSR(void) +{ + __ASM("mrs r0, ipsr"); +} + +/** + * @brief Get APSR Register value + * + * @return uint32_t APSR value + * + * return the content of the APSR register + */ +/* __intrinsic unsigned long __get_APSR( void ); (see intrinsic.h) */ + +/** + * @brief Get xPSR Register value + * + * @return uint32_t xPSR value + * + * return the content of the xPSR register + */ +static uint32_t __get_xPSR(void) +{ + __ASM("mrs r0, psr"); // assembler does not know "xpsr" +} + +/** + * @brief Return the Process Stack Pointer + * + * @return ProcessStackPointer + * + * Return the actual process stack pointer + */ + static uint32_t __get_PSP(void) +{ + __ASM("mrs r0, psp"); +} + +/** + * @brief Set the Process Stack Pointer + * + * @param topOfProcStack Process Stack Pointer + * + * Assign the value ProcessStackPointer to the MSP + * (process stack pointer) Cortex processor register + */ +static void __set_PSP(uint32_t topOfProcStack) +{ + __ASM("msr psp, r0"); +} + +/** + * @brief Return the Main Stack Pointer + * + * @return Main Stack Pointer + * + * Return the current value of the MSP (main stack pointer) + * Cortex processor register + */ +static uint32_t __get_MSP(void) +{ + __ASM("mrs r0, msp"); +} + +/** + * @brief Set the Main Stack Pointer + * + * @param topOfMainStack Main Stack Pointer + * + * Assign the value mainStackPointer to the MSP + * (main stack pointer) Cortex processor register + */ +static void __set_MSP(uint32_t topOfMainStack) +{ + __ASM("msr msp, r0"); +} + +/** + * @brief Return the Priority Mask value + * + * @return PriMask + * + * Return state of the priority mask bit from the priority mask register + */ +/* intrinsic unsigned long __get_PRIMASK( void ); (see intrinsic.h) */ + +/** + * @brief Set the Priority Mask value + * + * @param priMask PriMask + * + * Set the priority mask bit in the priority mask register + */ +/* intrinsic void __set_PRIMASK( unsigned long ); (see intrinsic.h) */ + + +#if (__CORTEX_M >= 0x03) + + /** + * @brief Enable FIQ Interrupts + * + * Enables FIQ interrupts by clearing the F-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +static __INLINE void __enable_fault_irq() { __ASM ("cpsie f"); } + + /** + * @brief Disable FIQ Interrupts + * + * Disables FIQ interrupts by setting the F-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +static __INLINE void __disable_fault_irq() { __ASM ("cpsid f"); } + +/** + * @brief Return the Base Priority value + * + * @return BasePriority + * + * Return the content of the base priority register + */ +/* intrinsic unsigned long __get_BASEPRI( void ); (see intrinsic.h) */ + +/** + * @brief Set the Base Priority value + * + * @param basePri BasePriority + * + * Set the base priority register + */ +/* intrinsic void __set_BASEPRI( unsigned long ); (see intrinsic.h) */ + +/** + * @brief Return the Fault Mask value + * + * @return FaultMask + * + * Return the content of the fault mask register + */ +/* intrinsic unsigned long __get_FAULTMASK( void ); (see intrinsic.h) */ + +/** + * @brief Set the Fault Mask value + * + * @param faultMask faultMask value + * + * Set the fault mask register + */ +/* intrinsic void __set_FAULTMASK(unsigned long); (see intrinsic.h) */ + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** + * @brief Return the FPSCR value + * + * @return FloatingPointStatusControlRegister + * + * Return the content of the FPSCR register + */ +static __INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) + /* not yet implemented */ + return(0); +#else + return(0); +#endif +} + +/** + * @brief Set the FPSCR value + * + * @param fpscr FloatingPointStatusControlRegister + * + * Set the FPSCR register + */ +static __INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) + /* not yet implemented */ +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + +#pragma diag_default=Pe940 + + +#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + /** + * @brief Enable IRQ Interrupts + * + * Enables IRQ interrupts by clearing the I-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +static __INLINE void __enable_irq() { __ASM volatile ("cpsie i"); } + + /** + * @brief Disable IRQ Interrupts + * + * Disables IRQ interrupts by setting the I-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +static __INLINE void __disable_irq() { __ASM volatile ("cpsid i"); } + +/** + * @brief Return the Control Register value +* +* @return Control value + * + * Return the content of the control register + */ +static __INLINE uint32_t __get_CONTROL(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, control" : "=r" (result) ); + return(result); +} + +/** + * @brief Set the Control Register value + * + * @param control Control value + * + * Set the control register + */ +static __INLINE void __set_CONTROL(uint32_t control) +{ + __ASM volatile ("MSR control, %0" : : "r" (control) ); +} + +/** + * @brief Get IPSR Register value + * + * @return uint32_t IPSR value + * + * return the content of the IPSR register + */ +static __INLINE uint32_t __get_IPSR(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); + return(result); +} + +/** + * @brief Get APSR Register value + * + * @return uint32_t APSR value + * + * return the content of the APSR register + */ +static __INLINE uint32_t __get_APSR(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, apsr" : "=r" (result) ); + return(result); +} + +/** + * @brief Get xPSR Register value + * + * @return uint32_t xPSR value + * + * return the content of the xPSR register + */ +static __INLINE uint32_t __get_xPSR(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); + return(result); +} + +/** + * @brief Return the Process Stack Pointer + * + * @return ProcessStackPointer + * + * Return the actual process stack pointer + */ +static __INLINE uint32_t __get_PSP(void) __attribute__( ( naked ) ); +static __INLINE uint32_t __get_PSP(void) +{ + register uint32_t result __ASM ("r0") = 0; + + __ASM volatile ("MRS %0, psp\n" + "BX lr \n" : "=r" (result) ); + return(result); +} + +/** + * @brief Set the Process Stack Pointer + * + * @param topOfProcStack Process Stack Pointer + * + * Assign the value ProcessStackPointer to the MSP + * (process stack pointer) Cortex processor register + */ +static __INLINE void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) ); +static __INLINE void __set_PSP(uint32_t topOfProcStack) +{ + __ASM volatile ("MSR psp, %0\n" + "BX lr \n" : : "r" (topOfProcStack) ); +} + +/** + * @brief Return the Main Stack Pointer + * + * @return Main Stack Pointer + * + * Return the current value of the MSP (main stack pointer) + * Cortex processor register + */ +static __INLINE uint32_t __get_MSP(void) __attribute__( ( naked ) ); +static __INLINE uint32_t __get_MSP(void) +{ + register uint32_t result __ASM ("r0") = 0; + + __ASM volatile ("MRS %0, msp\n" + "BX lr \n" : "=r" (result) ); + return(result); +} + +/** + * @brief Set the Main Stack Pointer + * + * @param topOfMainStack Main Stack Pointer + * + * Assign the value mainStackPointer to the MSP + * (main stack pointer) Cortex processor register + */ +static __INLINE void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) ); +static __INLINE void __set_MSP(uint32_t topOfMainStack) +{ + __ASM volatile ("MSR msp, %0\n" + "BX lr \n" : : "r" (topOfMainStack) ); +} + +/** + * @brief Return the Priority Mask value + * + * @return PriMask + * + * Return state of the priority mask bit from the priority mask register + */ +static __INLINE uint32_t __get_PRIMASK(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, primask" : "=r" (result) ); + return(result); +} + +/** + * @brief Set the Priority Mask value + * + * @param priMask PriMask + * + * Set the priority mask bit in the priority mask register + */ +static __INLINE void __set_PRIMASK(uint32_t priMask) +{ + __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); +} + + +#if (__CORTEX_M >= 0x03) + + /** + * @brief Enable FIQ Interrupts + * + * Enables FIQ interrupts by clearing the F-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +static __INLINE void __enable_fault_irq() { __ASM volatile ("cpsie f"); } + + /** + * @brief Disable FIQ Interrupts + * + * Disables FIQ interrupts by setting the F-bit in the CPSR. + * Can only be executed in Privileged modes. + */ +static __INLINE void __disable_fault_irq() { __ASM volatile ("cpsid f"); } + +/** + * @brief Return the Base Priority value + * + * @return BasePriority + * + * Return the content of the base priority register + */ +static __INLINE uint32_t __get_BASEPRI(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); + return(result); +} + +/** + * @brief Set the Base Priority value + * + * @param basePri BasePriority + * + * Set the base priority register + */ +static __INLINE void __set_BASEPRI(uint32_t value) +{ + __ASM volatile ("MSR basepri, %0" : : "r" (value) ); +} + +/** + * @brief Return the Fault Mask value + * + * @return FaultMask + * + * Return the content of the fault mask register + */ +static __INLINE uint32_t __get_FAULTMASK(void) +{ + uint32_t result=0; + + __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); + return(result); +} + +#endif /* (__CORTEX_M >= 0x03) */ + +/** + * @brief Set the Fault Mask value + * + * @param faultMask faultMask value + * + * Set the fault mask register + */ +static __INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); +} + + +#if (__CORTEX_M == 0x04) + +/** + * @brief Return the FPSCR value + * + * @return FloatingPointStatusControlRegister + * + * Return the content of the FPSCR register + */ +static __INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) + uint32_t result=0; + + __ASM volatile ("MRS %0, fpscr" : "=r" (result) ); + return(result); +#else + return(0); +#endif +} + +/** + * @brief Set the FPSCR value + * + * @param fpscr FloatingPointStatusControlRegister + * + * Set the FPSCR register + */ +static __INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) + __ASM volatile ("MSR control, %0" : : "r" (fpscr) ); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +#endif // __CORE_CMFUNC_H__ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmInstr.h b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmInstr.h new file mode 100644 index 0000000000..e9bbde943d --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/core_cmInstr.h @@ -0,0 +1,684 @@ +/**************************************************************************//** + * @file core_cmInstr.h + * @brief CMSIS Cortex-M Core Instruction Access Header File + * @version V1.40 + * @date 16. February 2010 + * + * @note + * Copyright (C) 2009-2010 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMINSTR_H__ +#define __CORE_CMINSTR_H__ + +/* ########################## Core Instruction Access ######################### */ + +#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ +/* ARM armcc specific functions */ + + /** + * @brief No Operation + * + * No Operation does nothing. This instruction can be used for code alignment + * purposes. + */ +#define __NOP __nop + + /** + * @brief Wait For Interrupt + * + * Wait For Interrupt is a hint instruction that suspends execution until + * one of a number of events occurs. + */ +#define __WFI __wfi + + /** + * @brief Wait For Event + * + * Wait For Event is a hint instruction that permits the processor to enter + * a low-power state until one of a number of events occurs. + */ +#define __WFE __wfe + + /** + * @brief Send Event + * + * Send Event is a hint instruction. It causes an event to be signaled + * to the CPU. + */ +#define __SEV __sev + + /** + * @brief Instruction Synchronization Barrier + * + * Instruction Synchronization Barrier flushes the pipeline in the processor, + * so that all instructions following the ISB are fetched from cache or + * memory, after the instruction has been completed + */ +#define __ISB() __isb(0xF) + + /** + * @brief Data Synchronization Barrier + * + * The DSB instruction operation acts as a special kind of Data Memory Barrier. + * The DSB operation completes when all explicit memory accesses before this + * instruction complete. + */ +#define __DSB() __dsb(0xF) + + /** + * @brief Data Memory Barrier + * + * DMB ensures the apparent order of the explicit memory operations before + * and after the instruction, without ensuring their completion. + */ +#define __DMB() __dmb(0xF) + +/** + * @brief Reverse byte order (32 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in integer value + */ +#define __REV __rev + +/** + * @brief Reverse byte order (16 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in unsigned short value + */ +#if (__ARMCC_VERSION < 400677) +extern uint32_t __REV16(uint16_t value); +#else /* (__ARMCC_VERSION >= 400677) */ +static __INLINE __ASM uint32_t __REV16(uint16_t value) +{ + rev16 r0, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + +/** + * @brief Reverse byte order in signed short value with sign extension to integer + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in signed short value with sign extension to integer + */ +#if (__ARMCC_VERSION < 400677) +extern int32_t __REVSH(int16_t value); +#else /* (__ARMCC_VERSION >= 400677) */ +static __INLINE __ASM int32_t __REVSH(int16_t value) +{ + revsh r0, r0 + bx lr +} +#endif /* __ARMCC_VERSION */ + + +#if (__CORTEX_M >= 0x03) + +/** + * @brief Reverse bit order of value + * + * @param value value to reverse + * @return reversed value + * + * Reverse bit order of value + */ +#define __RBIT __rbit + +/** + * @brief LDR Exclusive (8 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 8 bit value + */ +#define __LDREXB(ptr) ((unsigned char ) __ldrex(ptr)) + +/** + * @brief LDR Exclusive (16 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 16 bit values + */ +#define __LDREXH(ptr) ((unsigned short) __ldrex(ptr)) + +/** + * @brief LDR Exclusive (32 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 32 bit values + */ +#define __LDREXW(ptr) ((unsigned int ) __ldrex(ptr)) + +/** + * @brief STR Exclusive (8 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 8 bit values + */ +#define __STREXB(value, ptr) __strex(value, ptr) + +/** + * @brief STR Exclusive (16 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 16 bit values + */ +#define __STREXH(value, ptr) __strex(value, ptr) + +/** + * @brief STR Exclusive (32 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 32 bit values + */ +#define __STREXW(value, ptr) __strex(value, ptr) + + /** + * @brief Remove the exclusive lock created by ldrex + * + * Removes the exclusive lock which is created by ldrex. + */ +#if (__ARMCC_VERSION < 400000) +extern void __CLREX(void); +#else /* (__ARMCC_VERSION >= 400000) */ +#define __CLREX __clrex +#endif /* __ARMCC_VERSION */ + +#endif /* (__CORTEX_M >= 0x03) */ + + +#elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ +/* IAR iccarm specific functions */ +#if defined (__ICCARM__) + #include /* IAR Intrinsics */ +#endif + +#pragma diag_suppress=Pe940 + + /** + * @brief No Operation + * + * No Operation does nothing. This instruction can be used for code alignment + * purposes. + */ +#define __NOP __no_operation + + /** + * @brief Wait For Interrupt + * + * Wait For Interrupt is a hint instruction that suspends execution until + * one of a number of events occurs. + */ +static __INLINE void __WFI() { __ASM ("wfi"); } + + /** + * @brief Wait For Event + * + * Wait For Event is a hint instruction that permits the processor to enter + * a low-power state until one of a number of events occurs. + */ +static __INLINE void __WFE() { __ASM ("wfe"); } + + /** + * @brief Send Event + * + * Send Event is a hint instruction. It causes an event to be signaled + * to the CPU. + */ +static __INLINE void __SEV() { __ASM ("sev"); } + + /** + * @brief Instruction Synchronization Barrier + * + * Instruction Synchronization Barrier flushes the pipeline in the processor, + * so that all instructions following the ISB are fetched from cache or + * memory, after the instruction has been completed + */ +/* intrinsic void __ISB(void) (see intrinsics.h */ + + /** + * @brief Data Synchronization Barrier + * + * The DSB instruction operation acts as a special kind of Data Memory Barrier. + * The DSB operation completes when all explicit memory accesses before this + * instruction complete. + */ +/* intrinsic void __DSB(void) (see intrinsics.h */ + + /** + * @brief Data Memory Barrier + * + * DMB ensures the apparent order of the explicit memory operations before + * and after the instruction, without ensuring their completion. + */ +/* intrinsic void __DMB(void) (see intrinsics.h */ + +/** + * @brief Reverse byte order (32 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in integer value + */ +/* intrinsic uint32_t __REV(uint32_t value) (see intrinsics.h */ + +/** + * @brief Reverse byte order (16 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in unsigned short value + */ +static uint32_t __REV16(uint16_t value) +{ + __ASM("rev16 r0, r0"); +} + +/** + * @brief Reverse byte order in signed short value with sign extension to integer + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in signed short value with sign extension to integer + */ +/* intrinsic uint32_t __REVSH(uint32_t value) (see intrinsics.h */ + + +#if (__CORTEX_M >= 0x03) + +/** + * @brief Reverse bit order of value + * + * @param value value to reverse + * @return reversed value + * + * Reverse bit order of value + */ +static uint32_t __RBIT(uint32_t value) +{ + __ASM("rbit r0, r0"); +} + +/** + * @brief LDR Exclusive (8 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 8 bit value + */ +static uint8_t __LDREXB(uint8_t *addr) +{ + __ASM("ldrexb r0, [r0]"); +} + +/** + * @brief LDR Exclusive (16 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 16 bit values + */ +static uint16_t __LDREXH(uint16_t *addr) +{ + __ASM("ldrexh r0, [r0]"); +} + +/** + * @brief LDR Exclusive (32 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 32 bit values + */ +/* intrinsic unsigned long __LDREX(unsigned long *) (see intrinsics.h */ +static uint32_t __LDREXW(uint32_t *addr) +{ + __ASM("ldrex r0, [r0]"); +} + +/** + * @brief STR Exclusive (8 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 8 bit values + */ +static uint32_t __STREXB(uint8_t value, uint8_t *addr) +{ + __ASM("strexb r0, r0, [r1]"); +} + +/** + * @brief STR Exclusive (16 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 16 bit values + */ +static uint32_t __STREXH(uint16_t value, uint16_t *addr) +{ + __ASM("strexh r0, r0, [r1]"); +} + +/** + * @brief STR Exclusive (32 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 32 bit values + */ +/* intrinsic unsigned long __STREX(unsigned long, unsigned long) (see intrinsics.h */ +static uint32_t __STREXW(uint32_t value, uint32_t *addr) +{ + __ASM("strex r0, r0, [r1]"); +} + + /** + * @brief Remove the exclusive lock created by ldrex + * + * Removes the exclusive lock which is created by ldrex. + */ +static __INLINE void __CLREX() { __ASM ("clrex"); } + +#endif /* (__CORTEX_M >= 0x03) */ + +#pragma diag_default=Pe940 + + +#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + + /** + * @brief No Operation + * + * No Operation does nothing. This instruction can be used for code alignment + * purposes. + */ +static __INLINE void __NOP() { __ASM volatile ("nop"); } + + /** + * @brief Wait For Interrupt + * + * Wait For Interrupt is a hint instruction that suspends execution until + * one of a number of events occurs. + */ +static __INLINE void __WFI() { __ASM volatile ("wfi"); } + + /** + * @brief Wait For Event + * + * Wait For Event is a hint instruction that permits the processor to enter + * a low-power state until one of a number of events occurs. + */ +static __INLINE void __WFE() { __ASM volatile ("wfe"); } + + /** + * @brief Send Event + * + * Send Event is a hint instruction. It causes an event to be signaled + * to the CPU. + */ +static __INLINE void __SEV() { __ASM volatile ("sev"); } + + /** + * @brief Instruction Synchronization Barrier + * + * Instruction Synchronization Barrier flushes the pipeline in the processor, + * so that all instructions following the ISB are fetched from cache or + * memory, after the instruction has been completed + */ +static __INLINE void __ISB() { __ASM volatile ("isb"); } + + /** + * @brief Data Synchronization Barrier + * + * The DSB instruction operation acts as a special kind of Data Memory Barrier. + * The DSB operation completes when all explicit memory accesses before this + * instruction complete. + */ +static __INLINE void __DSB() { __ASM volatile ("dsb"); } + + /** + * @brief Data Memory Barrier + * + * DMB ensures the apparent order of the explicit memory operations before + * and after the instruction, without ensuring their completion. + */ +static __INLINE void __DMB() { __ASM volatile ("dmb"); } + +/** + * @brief Reverse byte order (32 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in integer value + */ +static __INLINE uint32_t __REV(uint32_t value) +{ + uint32_t result=0; + + __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +/** + * @brief Reverse byte order (16 bit) + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in unsigned short value + */ +static __INLINE uint32_t __REV16(uint16_t value) +{ + uint32_t result=0; + + __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +/** + * @brief Reverse byte order in signed short value with sign extension to integer + * + * @param value value to reverse + * @return reversed value + * + * Reverse byte order in signed short value with sign extension to integer + */ +static __INLINE int32_t __REVSH(int16_t value) +{ + uint32_t result=0; + + __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +#if (__CORTEX_M >= 0x03) + +/** + * @brief Reverse bit order of value + * + * @param value value to reverse + * @return reversed value + * + * Reverse bit order of value + */ +static __INLINE uint32_t __RBIT(uint32_t value) +{ + uint32_t result=0; + + __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +/** + * @brief LDR Exclusive (8 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 8 bit value + */ +static __INLINE uint8_t __LDREXB(uint8_t *addr) +{ + uint8_t result=0; + + __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + +/** + * @brief LDR Exclusive (16 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 16 bit values + */ +static __INLINE uint16_t __LDREXH(uint16_t *addr) +{ + uint16_t result=0; + + __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + +/** + * @brief LDR Exclusive (32 bit) + * + * @param *addr address pointer + * @return value of (*address) + * + * Exclusive LDR command for 32 bit values + */ +static __INLINE uint32_t __LDREXW(uint32_t *addr) +{ + uint32_t result=0; + + __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + +/** + * @brief STR Exclusive (8 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 8 bit values + */ +static __INLINE uint32_t __STREXB(uint8_t value, uint8_t *addr) +{ + uint32_t result=0; + + __ASM volatile ("strexb %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + return(result); +} + +/** + * @brief STR Exclusive (16 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 16 bit values + */ +static __INLINE uint32_t __STREXH(uint16_t value, uint16_t *addr) +{ + uint32_t result=0; + + __ASM volatile ("strexh %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + return(result); +} + +/** + * @brief STR Exclusive (32 bit) + * + * @param value value to store + * @param *addr address pointer + * @return successful / failed + * + * Exclusive STR command for 32 bit values + */ +static __INLINE uint32_t __STREXW(uint32_t value, uint32_t *addr) +{ + uint32_t result=0; + + __ASM volatile ("strex %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + /** + * @brief Remove the exclusive lock created by ldrex + * + * Removes the exclusive lock which is created by ldrex. + */ +static __INLINE void __CLREX() { __ASM volatile ("clrex"); } + +#endif /* (__CORTEX_M >= 0x03) */ + + +#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +#endif // __CORE_CMINSTR_H__ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/mb9bf506r.h b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/mb9bf506r.h new file mode 100644 index 0000000000..68d3e8b362 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/mb9bf506r.h @@ -0,0 +1,9739 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/* */ +/* Header File for Device MB9BF506R */ +/* Version V1.00 */ +/* Date 2011-01-21 */ +/* */ +/************************************************************************/ + +#ifndef _MB9BF506R_H_ +#define _MB9BF506R_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/****************************************************************************** + * Configuration of the Cortex-M3 Processor and Core Peripherals + ******************************************************************************/ +#define __MPU_PRESENT 1 /* FM3 provide an MPU */ +#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ + + +/****************************************************************************** + * Interrupt Number Definition + ******************************************************************************/ +typedef enum IRQn +{ + NMI_IRQn = -14, /* 2 Non Maskable */ + HardFault_IRQn = -13, /* 3 Hard Fault */ + MemManage_IRQn = -12, /* 4 Memory Management */ + BusFault_IRQn = -11, /* 5 Bus Fault */ + UsageFault_IRQn = -10, /* 6 Usage Fault */ + SVC_IRQn = -5, /* 11 SV Call */ + DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ + PendSVC_IRQn = -2, /* 14 Pend SV */ + SysTick_IRQn = -1, /* 15 System Tick */ + + CSV_IRQn = 0, /* Clock Super Visor */ + SWDT_IRQn = 1, /* Software Watchdog Timer */ + LVD_IRQn = 2, /* Low Voltage Detector */ + WFG_IRQn = 3, /* Wave Form Generator */ + EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ + EXINT8_15_IRQn = 5, /* External Interrupt Request ch.8 to ch.15 */ + DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ + MFS0RX_IRQn = 7, /* MultiFunction Serial ch.0 */ + MFS0TX_IRQn = 8, /* MultiFunction Serial ch.0 */ + MFS1RX_IRQn = 9, /* MultiFunction Serial ch.1 */ + MFS1TX_IRQn = 10, /* MultiFunction Serial ch.1 */ + MFS2RX_IRQn = 11, /* MultiFunction Serial ch.2 */ + MFS2TX_IRQn = 12, /* MultiFunction Serial ch.2 */ + MFS3RX_IRQn = 13, /* MultiFunction Serial ch.3 */ + MFS3TX_IRQn = 14, /* MultiFunction Serial ch.3 */ + MFS4RX_IRQn = 15, /* MultiFunction Serial ch.4 */ + MFS4TX_IRQn = 16, /* MultiFunction Serial ch.4 */ + MFS5RX_IRQn = 17, /* MultiFunction Serial ch.5 */ + MFS5TX_IRQn = 18, /* MultiFunction Serial ch.5 */ + MFS6RX_IRQn = 19, /* MultiFunction Serial ch.6 */ + MFS6TX_IRQn = 20, /* MultiFunction Serial ch.6 */ + MFS7RX_IRQn = 21, /* MultiFunction Serial ch.7 */ + MFS7TX_IRQn = 22, /* MultiFunction Serial ch.7 */ + PPG_IRQn = 23, /* PPG */ + OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ + ADC0_IRQn = 25, /* ADC0 */ + ADC1_IRQn = 26, /* ADC1 */ + ADC2_IRQn = 27, /* ADC2 */ + FRTIM_IRQn = 28, /* Free-run Timer */ + INCAP_IRQn = 29, /* Input Capture */ + OUTCOMP_IRQn = 30, /* Output Compare */ + BTIM_IRQn = 31, /* Base Timer ch.0 to ch.7 */ + CAN0_IRQn = 32, /* CAN ch.0 */ + CAN1_IRQn = 33, /* CAN ch.1 */ + USBF_IRQn = 34, /* USB Function */ + USBF_USBH_IRQn = 35, /* USB Function / USB HOST */ + /* Reserved = 36, */ + /* Reserved = 37, */ + DMAC0_IRQn = 38, /* DMAC ch.0 */ + DMAC1_IRQn = 39, /* DMAC ch.1 */ + DMAC2_IRQn = 40, /* DMAC ch.2 */ + DMAC3_IRQn = 41, /* DMAC ch.3 */ + DMAC4_IRQn = 42, /* DMAC ch.4 */ + DMAC5_IRQn = 43, /* DMAC ch.5 */ + DMAC6_IRQn = 44, /* DMAC ch.6 */ + DMAC7_IRQn = 45, /* DMAC ch.7 */ + /* Reserved = 46, */ + /* Reserved = 47, */ +} IRQn_Type; + + +#include "core_cm3.h" +#include "system_mb9bf50x.h" +#include + +#define SUCCESS 0 +#define ERROR -1 + +#ifndef NULL +#define NULL 0 +#endif + + +/******************************************************************************/ +/* Device Specific Peripheral Registers structures */ +/******************************************************************************/ + +#if defined ( __CC_ARM ) +#pragma anon_unions +#endif + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash interface registers */ +typedef struct +{ + __IO uint32_t FASZR; + __IO uint32_t FRWTR; + __IO uint32_t FSTR; + uint8_t RESERVED0[4]; + __IO uint32_t FSYNDN; + uint8_t RESERVED1[236]; + __IO uint32_t CRTRMM; +}FM3_FIF_TypeDef; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock and reset registers */ +typedef struct +{ + __IO uint8_t SCM_CTL; + uint8_t RESERVED0[3]; + __IO uint8_t SCM_STR; + uint8_t RESERVED1[3]; + __IO uint32_t STB_CTL; + __IO uint16_t RST_STR; + uint8_t RESERVED2[2]; + __IO uint8_t BSC_PSR; + uint8_t RESERVED3[3]; + __IO uint8_t APBC0_PSR; + uint8_t RESERVED4[3]; + __IO uint8_t APBC1_PSR; + uint8_t RESERVED5[3]; + __IO uint8_t APBC2_PSR; + uint8_t RESERVED6[3]; + __IO uint8_t SWC_PSR; + uint8_t RESERVED7[7]; + __IO uint8_t TTC_PSR; + uint8_t RESERVED8[7]; + __IO uint8_t CSW_TMR; + uint8_t RESERVED9[3]; + __IO uint8_t PSW_TMR; + uint8_t RESERVED10[3]; + __IO uint8_t PLL_CTL1; + uint8_t RESERVED11[3]; + __IO uint8_t PLL_CTL2; + uint8_t RESERVED12[3]; + __IO uint16_t CSV_CTL; + uint8_t RESERVED13[2]; + __IO uint8_t CSV_STR; + uint8_t RESERVED14[3]; + __IO uint16_t FCSWH_CTL; + uint8_t RESERVED15[2]; + __IO uint16_t FCSWL_CTL; + uint8_t RESERVED16[2]; + __IO uint16_t FCSWD_CTL; + uint8_t RESERVED17[2]; + __IO uint8_t DBWDT_CTL; + uint8_t RESERVED18[11]; + __IO uint8_t INT_ENR; + uint8_t RESERVED19[3]; + __IO uint8_t INT_STR; + uint8_t RESERVED20[3]; + __IO uint8_t INT_CLR; +}FM3_CRG_TypeDef; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* Hardware watchdog registers */ +typedef struct +{ + __IO uint32_t WDG_LDR; + __IO uint32_t WDG_VLR; + __IO uint8_t WDG_CTL; + uint8_t RESERVED0[3]; + __IO uint8_t WDG_ICL; + uint8_t RESERVED1[3]; + __IO uint8_t WDG_RIS; + uint8_t RESERVED2[3055]; + __IO uint32_t WDG_LCK; +}FM3_HWWDT_TypeDef; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* Software watchdog registers */ +typedef struct +{ + __IO uint32_t WDOGLOAD; + __IO uint32_t WDOGVALUE; + __IO uint8_t WDOGCONTROL; + uint8_t RESERVED0[3]; + __IO uint32_t WDOGINTCLR; + __IO uint8_t WDOGRIS; + uint8_t RESERVED1[3055]; + __IO uint32_t WDOGLOCK; +}FM3_SWWDT_TypeDef; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* Dual timer 1/2 registers */ +typedef struct +{ + __IO uint32_t TIMER1LOAD; + __IO uint32_t TIMER1VALUE; + __IO uint32_t TIMER1CONTROL; + __IO uint32_t TIMER1INTCLR; + __IO uint32_t TIMER1RIS; + __IO uint32_t TIMER1MIS; + __IO uint32_t TIMER1BGLOAD; + uint8_t RESERVED0[4]; + __IO uint32_t TIMER2LOAD; + __IO uint32_t TIMER2VALUE; + __IO uint32_t TIMER2CONTROL; + __IO uint32_t TIMER2INTCLR; + __IO uint32_t TIMER2RIS; + __IO uint32_t TIMER2MIS; + __IO uint32_t TIMER2BGLOAD; +}FM3_DTIM_TypeDef; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Free Running Timer registers */ +typedef struct +{ + uint8_t RESERVED0[40]; + __IO uint16_t TCCP0; + uint8_t RESERVED1[2]; + __IO uint16_t TCDT0; + uint8_t RESERVED2[2]; + __IO uint16_t TCSA0; + uint8_t RESERVED3[2]; + __IO uint16_t TCSB0; + uint8_t RESERVED4[2]; + __IO uint16_t TCCP1; + uint8_t RESERVED5[2]; + __IO uint16_t TCDT1; + uint8_t RESERVED6[2]; + __IO uint16_t TCSA1; + uint8_t RESERVED7[2]; + __IO uint16_t TCSB1; + uint8_t RESERVED8[2]; + __IO uint16_t TCCP2; + uint8_t RESERVED9[2]; + __IO uint16_t TCDT2; + uint8_t RESERVED10[2]; + __IO uint16_t TCSA2; + uint8_t RESERVED11[2]; + __IO uint16_t TCSB2; +}FM3_MFT_FRT_TypeDef; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Output Compare Unit registers */ +typedef struct +{ + __IO uint16_t OCCP0; + uint8_t RESERVED0[2]; + __IO uint16_t OCCP1; + uint8_t RESERVED1[2]; + __IO uint16_t OCCP2; + uint8_t RESERVED2[2]; + __IO uint16_t OCCP3; + uint8_t RESERVED3[2]; + __IO uint16_t OCCP4; + uint8_t RESERVED4[2]; + __IO uint16_t OCCP5; + uint8_t RESERVED5[2]; + __IO uint8_t OCSA10; + __IO uint8_t OCSB10; + uint8_t RESERVED6[2]; + __IO uint8_t OCSA32; + __IO uint8_t OCSB32; + uint8_t RESERVED7[2]; + __IO uint8_t OCSA54; + __IO uint8_t OCSB54; + uint8_t RESERVED8[3]; + __IO uint8_t OCSC; + uint8_t RESERVED9[50]; + __IO uint8_t OCFS10; + __IO uint8_t OCFS32; + uint8_t RESERVED10[2]; + __IO uint8_t OCFS54; +}FM3_MFT_OCU_TypeDef; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +typedef struct +{ + uint8_t RESERVED0[128]; + __IO uint16_t WFTM10; + uint8_t RESERVED1[2]; + __IO uint16_t WFTM32; + uint8_t RESERVED2[2]; + __IO uint16_t WFTM54; + uint8_t RESERVED3[2]; + __IO uint16_t WFSA10; + uint8_t RESERVED4[2]; + __IO uint16_t WFSA32; + uint8_t RESERVED5[2]; + __IO uint16_t WFSA54; + uint8_t RESERVED6[2]; + __IO uint16_t WFIR; + uint8_t RESERVED7[2]; + __IO uint16_t NZCL; +}FM3_MFT_WFG_TypeDef; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Input Capture Unit registers */ +typedef struct +{ + uint8_t RESERVED0[96]; + __IO uint8_t ICFS10; + __IO uint8_t ICFS32; + uint8_t RESERVED1[6]; + __IO uint16_t ICCP0; + uint8_t RESERVED2[2]; + __IO uint16_t ICCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ICCP2; + uint8_t RESERVED4[2]; + __IO uint16_t ICCP3; + uint8_t RESERVED5[2]; + __IO uint8_t ICSA10; + __IO uint8_t ICSB10; + uint8_t RESERVED6[2]; + __IO uint8_t ICSA32; + __IO uint8_t ICSB32; +}FM3_MFT_ICU_TypeDef; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +typedef struct +{ + uint8_t RESERVED0[160]; + __IO uint16_t ACCP0; + uint8_t RESERVED1[2]; + __IO uint16_t ACCPDN0; + uint8_t RESERVED2[2]; + __IO uint16_t ACCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ACCPDN1; + uint8_t RESERVED4[2]; + __IO uint16_t ACCP2; + uint8_t RESERVED5[2]; + __IO uint16_t ACCPDN2; + uint8_t RESERVED6[2]; + __IO uint8_t ACSB; + uint8_t RESERVED7[3]; + __IO uint16_t ACSA; + uint8_t RESERVED8[2]; + __IO uint16_t ATSA; +}FM3_MFT_ADCMP_TypeDef; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* Multifunction Timer PPG registers */ +typedef struct +{ + uint8_t RESERVED0; + __IO uint8_t TTCR0; + uint8_t RESERVED1[7]; + __IO uint8_t COMP0; + uint8_t RESERVED2[2]; + __IO uint8_t COMP2; + uint8_t RESERVED3[4]; + __IO uint8_t COMP4; + uint8_t RESERVED4[2]; + __IO uint8_t COMP6; + uint8_t RESERVED5[12]; + __IO uint8_t TTCR1; + uint8_t RESERVED6[7]; + __IO uint8_t COMP1; + uint8_t RESERVED7[2]; + __IO uint8_t COMP3; + uint8_t RESERVED8[4]; + __IO uint8_t COMP5; + uint8_t RESERVED9[2]; + __IO uint8_t COMP7; + uint8_t RESERVED10[203]; + __IO uint16_t TRG; + uint8_t RESERVED11[2]; + __IO uint16_t REVC; + uint8_t RESERVED12[250]; + __IO uint8_t PPGC1; + __IO uint8_t PPGC0; + uint8_t RESERVED13[2]; + __IO uint8_t PPGC3; + __IO uint8_t PPGC2; + uint8_t RESERVED14[2]; + union { + __IO uint16_t PRL0; + struct { + __IO uint8_t PRLL0; + __IO uint8_t PRLH0; + }; + }; + uint8_t RESERVED15[2]; + union { + __IO uint16_t PRL1; + struct { + __IO uint8_t PRLL1; + __IO uint8_t PRLH1; + }; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t PRL2; + struct { + __IO uint8_t PRLL2; + __IO uint8_t PRLH2; + }; + }; + uint8_t RESERVED17[2]; + union { + __IO uint16_t PRL3; + struct { + __IO uint8_t PRLL3; + __IO uint8_t PRLH3; + }; + }; + uint8_t RESERVED18[2]; + __IO uint8_t GATEC0; + uint8_t RESERVED19[39]; + __IO uint8_t PPGC5; + __IO uint8_t PPGC4; + uint8_t RESERVED20[2]; + __IO uint8_t PPGC7; + __IO uint8_t PPGC6; + uint8_t RESERVED21[2]; + union { + __IO uint16_t PRL4; + struct { + __IO uint8_t PRLL4; + __IO uint8_t PRLH4; + }; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t PRL5; + struct { + __IO uint8_t PRLL5; + __IO uint8_t PRLH5; + }; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t PRL6; + struct { + __IO uint8_t PRLL6; + __IO uint8_t PRLH6; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t PRL7; + struct { + __IO uint8_t PRLL7; + __IO uint8_t PRLH7; + }; + }; + uint8_t RESERVED25[2]; + __IO uint8_t GATEC4; + uint8_t RESERVED26[39]; + __IO uint8_t PPGC9; + __IO uint8_t PPGC8; + uint8_t RESERVED27[2]; + __IO uint8_t PPGC11; + __IO uint8_t PPGC10; + uint8_t RESERVED28[2]; + union { + __IO uint16_t PRL8; + struct { + __IO uint8_t PRLL8; + __IO uint8_t PRLH8; + }; + }; + uint8_t RESERVED29[2]; + union { + __IO uint16_t PRL9; + struct { + __IO uint8_t PRLL9; + __IO uint8_t PRLH9; + }; + }; + uint8_t RESERVED30[2]; + union { + __IO uint16_t PRL10; + struct { + __IO uint8_t PRLL10; + __IO uint8_t PRLH10; + }; + }; + uint8_t RESERVED31[2]; + union { + __IO uint16_t PRL11; + struct { + __IO uint8_t PRLL11; + __IO uint8_t PRLH11; + }; + }; + uint8_t RESERVED32[2]; + __IO uint8_t GATEC8; + uint8_t RESERVED33[39]; + __IO uint8_t PPGC13; + __IO uint8_t PPGC12; + uint8_t RESERVED34[2]; + __IO uint8_t PPGC15; + __IO uint8_t PPGC14; + uint8_t RESERVED35[2]; + union { + __IO uint16_t PRL12; + struct { + __IO uint8_t PRLL12; + __IO uint8_t PRLH12; + }; + }; + uint8_t RESERVED36[2]; + union { + __IO uint16_t PRL13; + struct { + __IO uint8_t PRLL13; + __IO uint8_t PRLH13; + }; + }; + uint8_t RESERVED37[2]; + union { + __IO uint16_t PRL14; + struct { + __IO uint8_t PRLL14; + __IO uint8_t PRLH14; + }; + }; + uint8_t RESERVED38[2]; + union { + __IO uint16_t PRL15; + struct { + __IO uint8_t PRLL15; + __IO uint8_t PRLH15; + }; + }; + uint8_t RESERVED39[2]; + __IO uint8_t GATEC12; +}FM3_MFT_PPG_TypeDef; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* Base Timer 0 PPG registers */ +typedef struct +{ + __IO uint16_t PRLL; + uint8_t RESERVED0[2]; + __IO uint16_t PRLH; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + __IO uint16_t TMCR; + uint8_t RESERVED3[2]; + __IO uint8_t STC; + __IO uint8_t TMCR2; +}FM3_BT_PPG_TypeDef; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* Base Timer 0 PWM registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[2]; + __IO uint16_t PDUT; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + __IO uint16_t TMCR; + uint8_t RESERVED3[2]; + __IO uint8_t STC; + __IO uint8_t TMCR2; +}FM3_BT_PWM_TypeDef; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* Base Timer 0 RT registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[6]; + __IO uint16_t TMR; + uint8_t RESERVED1[2]; + __IO uint16_t TMCR; + uint8_t RESERVED2[2]; + __IO uint8_t STC; + __IO uint8_t TMCR2; +}FM3_BT_RT_TypeDef; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* Base Timer 0 PWC registers */ +typedef struct +{ + uint8_t RESERVED0[4]; + __IO uint16_t DTBF; + uint8_t RESERVED1[6]; + __IO uint16_t TMCR; + uint8_t RESERVED2[2]; + __IO uint8_t STC; + __IO uint8_t TMCR2; +}FM3_BT_PWC_TypeDef; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 0 - channel 3 registers */ +typedef struct +{ + uint8_t RESERVED0; + __IO uint8_t BTSEL0123; +}FM3_BTIOSEL03_TypeDef; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 4 - channel 7 registers */ +typedef struct +{ + uint8_t RESERVED0; + __IO uint8_t BTSEL4567; +}FM3_BTIOSEL47_TypeDef; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* Software based Simulation Startup (Base Timer) register */ +typedef struct +{ + __IO uint16_t BTSSSR; +}FM3_SBSSR_TypeDef; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* Quad position and revolution counter channel 0 registers */ +typedef struct +{ + __IO uint16_t QPCR; + uint8_t RESERVED0[2]; + __IO uint16_t QRCR; + uint8_t RESERVED1[2]; + __IO uint16_t QPCCR; + uint8_t RESERVED2[2]; + __IO uint16_t QPRCR; + uint8_t RESERVED3[2]; + __IO uint16_t QMPR; + uint8_t RESERVED4[2]; + union { + __IO uint16_t QICR; + struct { + __IO uint8_t QICRL; + __IO uint8_t QICRH; + }; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t QCR; + struct { + __IO uint8_t QCRL; + __IO uint8_t QCRH; + }; + }; + uint8_t RESERVED6[2]; + __IO uint16_t QECR; +}FM3_QPRC_TypeDef; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* 12-bit ADC unit 0 registers */ +typedef struct +{ + __IO uint8_t ADSR; + __IO uint8_t ADCR; + uint8_t RESERVED0[6]; + __IO uint8_t SFNS; + __IO uint8_t SCCR; + uint8_t RESERVED1[2]; + union { + __IO uint32_t SCFD; + struct { + __IO uint16_t SCFDL; + __IO uint16_t SCFDH; + }; + }; + union { + __IO uint16_t SCIS23; + struct { + __IO uint8_t SCIS2; + __IO uint8_t SCIS3; + }; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t SCIS01; + struct { + __IO uint8_t SCIS0; + __IO uint8_t SCIS1; + }; + }; + uint8_t RESERVED3[2]; + __IO uint8_t PFNS; + __IO uint8_t PCCR; + uint8_t RESERVED4[2]; + union { + __IO uint32_t PCFD; + struct { + __IO uint16_t PCFDL; + __IO uint16_t PCFDH; + }; + }; + __IO uint8_t PCIS; + uint8_t RESERVED5[3]; + __IO uint8_t CMPCR; + uint8_t RESERVED6; + __IO uint16_t CMPD; + union { + __IO uint16_t ADSS23; + struct { + __IO uint8_t ADSS2; + __IO uint8_t ADSS3; + }; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t ADSS01; + struct { + __IO uint8_t ADSS0; + __IO uint8_t ADSS1; + }; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t ADST01; + struct { + __IO uint8_t ADST1; + __IO uint8_t ADST0; + }; + }; + uint8_t RESERVED9[2]; + __IO uint8_t ADCT; + uint8_t RESERVED10[3]; + __IO uint8_t PRTSL; + __IO uint8_t SCTSL; + uint8_t RESERVED11[2]; + __IO uint8_t ADCEN; +}FM3_ADC_TypeDef; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CR trimming registers */ +typedef struct +{ + __IO uint8_t MCR_PSR; + uint8_t RESERVED0[3]; + __IO uint16_t MCR_FTRM; + uint8_t RESERVED1[6]; + __IO uint32_t MCR_RLR; +}FM3_CRTRIM_TypeDef; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* External interrupt registers */ +typedef struct +{ + __IO uint16_t ENIR; + uint8_t RESERVED0[2]; + __IO uint16_t EIRR; + uint8_t RESERVED1[2]; + __IO uint16_t EICL; + uint8_t RESERVED2[2]; + __IO uint32_t ELVR; + uint8_t RESERVED3[4]; + __IO uint8_t NMIRR; + uint8_t RESERVED4[3]; + __IO uint8_t NMICL; +}FM3_EXTI_TypeDef; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* Interrupt request read registers */ +typedef struct +{ + __IO uint32_t DRQSEL; + uint8_t RESERVED0[12]; + __IO uint32_t EXC02MON; + __IO uint32_t IRQ00MON; + __IO uint32_t IRQ01MON; + __IO uint32_t IRQ02MON; + __IO uint32_t IRQ03MON; + __IO uint32_t IRQ04MON; + __IO uint32_t IRQ05MON; + __IO uint32_t IRQ06MON; + __IO uint32_t IRQ07MON; + __IO uint32_t IRQ08MON; + __IO uint32_t IRQ09MON; + __IO uint32_t IRQ10MON; + __IO uint32_t IRQ11MON; + __IO uint32_t IRQ12MON; + __IO uint32_t IRQ13MON; + __IO uint32_t IRQ14MON; + __IO uint32_t IRQ15MON; + __IO uint32_t IRQ16MON; + __IO uint32_t IRQ17MON; + __IO uint32_t IRQ18MON; + __IO uint32_t IRQ19MON; + __IO uint32_t IRQ20MON; + __IO uint32_t IRQ21MON; + __IO uint32_t IRQ22MON; + __IO uint32_t IRQ23MON; + __IO uint32_t IRQ24MON; + __IO uint32_t IRQ25MON; + __IO uint32_t IRQ26MON; + __IO uint32_t IRQ27MON; + __IO uint32_t IRQ28MON; + __IO uint32_t IRQ29MON; + __IO uint32_t IRQ30MON; + __IO uint32_t IRQ31MON; + __IO uint32_t IRQ32MON; + __IO uint32_t IRQ33MON; + __IO uint32_t IRQ34MON; + __IO uint32_t IRQ35MON; + __IO uint32_t IRQ36MON; + __IO uint32_t IRQ37MON; + __IO uint32_t IRQ38MON; + __IO uint32_t IRQ39MON; + __IO uint32_t IRQ40MON; + __IO uint32_t IRQ41MON; + __IO uint32_t IRQ42MON; + __IO uint32_t IRQ43MON; + __IO uint32_t IRQ44MON; + __IO uint32_t IRQ45MON; + __IO uint32_t IRQ46MON; + __IO uint32_t IRQ47MON; +}FM3_INTREQ_TypeDef; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* General purpose I/O registers */ +typedef struct +{ + __IO uint32_t PFR0; + __IO uint32_t PFR1; + __IO uint32_t PFR2; + __IO uint32_t PFR3; + __IO uint32_t PFR4; + __IO uint32_t PFR5; + __IO uint32_t PFR6; + __IO uint32_t PFR7; + __IO uint32_t PFR8; + uint8_t RESERVED0[220]; + __IO uint32_t PCR0; + __IO uint32_t PCR1; + __IO uint32_t PCR2; + __IO uint32_t PCR3; + __IO uint32_t PCR4; + __IO uint32_t PCR5; + __IO uint32_t PCR6; + __IO uint32_t PCR7; + uint8_t RESERVED1[224]; + __IO uint32_t DDR0; + __IO uint32_t DDR1; + __IO uint32_t DDR2; + __IO uint32_t DDR3; + __IO uint32_t DDR4; + __IO uint32_t DDR5; + __IO uint32_t DDR6; + __IO uint32_t DDR7; + __IO uint32_t DDR8; + uint8_t RESERVED2[220]; + __IO uint32_t PDIR0; + __IO uint32_t PDIR1; + __IO uint32_t PDIR2; + __IO uint32_t PDIR3; + __IO uint32_t PDIR4; + __IO uint32_t PDIR5; + __IO uint32_t PDIR6; + __IO uint32_t PDIR7; + __IO uint32_t PDIR8; + uint8_t RESERVED3[220]; + __IO uint32_t PDOR0; + __IO uint32_t PDOR1; + __IO uint32_t PDOR2; + __IO uint32_t PDOR3; + __IO uint32_t PDOR4; + __IO uint32_t PDOR5; + __IO uint32_t PDOR6; + __IO uint32_t PDOR7; + __IO uint32_t PDOR8; + uint8_t RESERVED4[220]; + __IO uint32_t ADE; + uint8_t RESERVED5[124]; + __IO uint32_t SPSR; + uint8_t RESERVED6[124]; + __IO uint32_t EPFR00; + __IO uint32_t EPFR01; + __IO uint32_t EPFR02; + uint8_t RESERVED7[4]; + __IO uint32_t EPFR04; + __IO uint32_t EPFR05; + __IO uint32_t EPFR06; + __IO uint32_t EPFR07; + __IO uint32_t EPFR08; + __IO uint32_t EPFR09; + __IO uint32_t EPFR10; +}FM3_GPIO_TypeDef; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* Low voltage detection registers */ +typedef struct +{ + __IO uint8_t LVD_CTL; + uint8_t RESERVED0[3]; + __IO uint8_t LVD_STR; + uint8_t RESERVED1[3]; + __IO uint8_t LVD_CLR; + uint8_t RESERVED2[3]; + __IO uint32_t LVD_RLR; + __IO uint8_t LVD_STR2; +}FM3_LVD_TypeDef; + +/****************************************************************************** + * USBCLK + ******************************************************************************/ +/* USB clock registers */ +typedef struct +{ + __IO uint8_t UCCR; + uint8_t RESERVED0[3]; + __IO uint8_t UPCR1; + uint8_t RESERVED1[3]; + __IO uint8_t UPCR2; + uint8_t RESERVED2[3]; + __IO uint8_t UPCR3; + uint8_t RESERVED3[3]; + __IO uint8_t UPCR4; + uint8_t RESERVED4[3]; + __IO uint8_t UP_STR; + uint8_t RESERVED5[3]; + __IO uint8_t UPINT_ENR; + uint8_t RESERVED6[3]; + __IO uint8_t UPINT_CLR; + uint8_t RESERVED7[3]; + __IO uint8_t UPINT_STR; + uint8_t RESERVED8[15]; + __IO uint8_t USBEN; +}FM3_USBCLK_TypeDef; + +/****************************************************************************** + * CANPRE_MODULE + ******************************************************************************/ +/* CAN prescaler register */ +typedef struct +{ + __IO uint8_t CANPRE; +}FM3_CANPRE_TypeDef; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 0 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t SCR; + uint8_t RESERVED0[2]; + __IO uint8_t ESCR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; +}FM3_MFS03_UART_TypeDef; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 0 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t SCR; + uint8_t RESERVED0[2]; + __IO uint8_t ESCR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; +}FM3_MFS03_CSIO_TypeDef; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 0 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t SCR; + uint8_t RESERVED0[2]; + __IO uint8_t ESCR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; +}FM3_MFS03_LIN_TypeDef; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* I2C channel 0 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t IBCR; + uint8_t RESERVED0[2]; + __IO uint8_t IBSR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + __IO uint8_t ISBA; + __IO uint8_t ISMK; +}FM3_MFS03_I2C_TypeDef; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 4 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t SCR; + uint8_t RESERVED0[2]; + __IO uint8_t ESCR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[6]; + union { + __IO uint16_t FCR; + struct { + __IO uint8_t FCR0; + __IO uint8_t FCR1; + }; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t FBYTE; + struct { + __IO uint8_t FBYTE1; + __IO uint8_t FBYTE2; + }; + }; +}FM3_MFS47_UART_TypeDef; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 4 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t SCR; + uint8_t RESERVED0[2]; + __IO uint8_t ESCR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[6]; + union { + __IO uint16_t FCR; + struct { + __IO uint8_t FCR0; + __IO uint8_t FCR1; + }; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t FBYTE; + struct { + __IO uint8_t FBYTE1; + __IO uint8_t FBYTE2; + }; + }; +}FM3_MFS47_CSIO_TypeDef; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 4 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t SCR; + uint8_t RESERVED0[2]; + __IO uint8_t ESCR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[6]; + union { + __IO uint16_t FCR; + struct { + __IO uint8_t FCR0; + __IO uint8_t FCR1; + }; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t FBYTE; + struct { + __IO uint8_t FBYTE1; + __IO uint8_t FBYTE2; + }; + }; +}FM3_MFS47_LIN_TypeDef; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* I2C channel 4 registers */ +typedef struct +{ + __IO uint8_t SMR; + __IO uint8_t IBCR; + uint8_t RESERVED0[2]; + __IO uint8_t IBSR; + __IO uint8_t SSR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + __IO uint8_t ISBA; + __IO uint8_t ISMK; + uint8_t RESERVED4[2]; + union { + __IO uint16_t FCR; + struct { + __IO uint8_t FCR0; + __IO uint8_t FCR1; + }; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t FBYTE; + struct { + __IO uint8_t FBYTE1; + __IO uint8_t FBYTE2; + }; + }; +}FM3_MFS47_I2C_TypeDef; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC registers */ +typedef struct +{ + __IO uint8_t CRCCR; + uint8_t RESERVED0[3]; + __IO uint32_t CRCINIT; + union { + __IO uint32_t CRCIN; + struct { + union { + __IO uint16_t CRCINL; + struct { + __IO uint8_t CRCINLL; + __IO uint8_t CRCINLH; + }; + }; + union { + __IO uint16_t CRCINH; + struct { + __IO uint8_t CRCINHL; + __IO uint8_t CRCINHH; + }; + }; + }; + }; + __IO uint32_t CRCR; +}FM3_CRC_TypeDef; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* Watch counter registers */ +typedef struct +{ + __IO uint8_t WCRD; + __IO uint8_t WCRL; + __IO uint8_t WCCR; + uint8_t RESERVED0[13]; + __IO uint16_t CLK_SEL; + uint8_t RESERVED1[2]; + __IO uint8_t CLK_EN; +}FM3_WC_TypeDef; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* External bus interface registers */ +typedef struct +{ + __IO uint32_t MODE0; + __IO uint32_t MODE1; + __IO uint32_t MODE2; + __IO uint32_t MODE3; + __IO uint32_t MODE4; + __IO uint32_t MODE5; + __IO uint32_t MODE6; + __IO uint32_t MODE7; + __IO uint32_t TIM0; + __IO uint32_t TIM1; + __IO uint32_t TIM2; + __IO uint32_t TIM3; + __IO uint32_t TIM4; + __IO uint32_t TIM5; + __IO uint32_t TIM6; + __IO uint32_t TIM7; + __IO uint32_t AREA0; + __IO uint32_t AREA1; + __IO uint32_t AREA2; + __IO uint32_t AREA3; + __IO uint32_t AREA4; + __IO uint32_t AREA5; + __IO uint32_t AREA6; + __IO uint32_t AREA7; +}FM3_EXBUS_TypeDef; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB channel 0 registers */ +typedef struct +{ + union { + __IO uint16_t HCNT; + struct { + __IO uint8_t HCNT0; + __IO uint8_t HCNT1; + }; + }; + uint8_t RESERVED0[2]; + __IO uint8_t HIRQ; + __IO uint8_t HERR; + uint8_t RESERVED1[2]; + __IO uint8_t HSTATE; + __IO uint8_t HFCOMP; + uint8_t RESERVED2[2]; + union { + __IO uint16_t HRTIMER; + struct { + __IO uint8_t HRTIMER0; + __IO uint8_t HRTIMER1; + }; + }; + uint8_t RESERVED3[2]; + __IO uint8_t HRTIMER2; + __IO uint8_t HADR; + uint8_t RESERVED4[2]; + union { + __IO uint16_t HEOF; + struct { + __IO uint8_t HEOF0; + __IO uint8_t HEOF1; + }; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t HFRAME; + struct { + __IO uint8_t HFRAME0; + __IO uint8_t HFRAME1; + }; + }; + uint8_t RESERVED6[2]; + __IO uint8_t HTOKEN; + uint8_t RESERVED7[3]; + __IO uint16_t UDCC; + uint8_t RESERVED8[2]; + __IO uint16_t EP0C; + uint8_t RESERVED9[2]; + __IO uint16_t EP1C; + uint8_t RESERVED10[2]; + __IO uint16_t EP2C; + uint8_t RESERVED11[2]; + __IO uint16_t EP3C; + uint8_t RESERVED12[2]; + __IO uint16_t EP4C; + uint8_t RESERVED13[2]; + __IO uint16_t EP5C; + uint8_t RESERVED14[2]; + __IO uint16_t TMSP; + uint8_t RESERVED15[2]; + __IO uint8_t UDCS; + __IO uint8_t UDCIE; + uint8_t RESERVED16[2]; + __IO uint16_t EP0IS; + uint8_t RESERVED17[2]; + __IO uint16_t EP0OS; + uint8_t RESERVED18[2]; + __IO uint16_t EP1S; + uint8_t RESERVED19[2]; + __IO uint16_t EP2S; + uint8_t RESERVED20[2]; + __IO uint16_t EP3S; + uint8_t RESERVED21[2]; + __IO uint16_t EP4S; + uint8_t RESERVED22[2]; + __IO uint16_t EP5S; + uint8_t RESERVED23[2]; + union { + __IO uint16_t EP0DT; + struct { + __IO uint8_t EP0DTL; + __IO uint8_t EP0DTH; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t EP1DT; + struct { + __IO uint8_t EP1DTL; + __IO uint8_t EP1DTH; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint16_t EP2DT; + struct { + __IO uint8_t EP2DTL; + __IO uint8_t EP2DTH; + }; + }; + uint8_t RESERVED26[2]; + union { + __IO uint16_t EP3DT; + struct { + __IO uint8_t EP3DTL; + __IO uint8_t EP3DTH; + }; + }; + uint8_t RESERVED27[2]; + union { + __IO uint16_t EP4DT; + struct { + __IO uint8_t EP4DTL; + __IO uint8_t EP4DTH; + }; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t EP5DT; + struct { + __IO uint8_t EP5DTL; + __IO uint8_t EP5DTH; + }; + }; +}FM3_USB_TypeDef; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMA controller */ +typedef struct +{ + __IO uint32_t DMACR; + uint8_t RESERVED0[12]; + __IO uint32_t DMACA0; + __IO uint32_t DMACB0; + __IO uint32_t DMACSA0; + __IO uint32_t DMACDA0; + __IO uint32_t DMACA1; + __IO uint32_t DMACB1; + __IO uint32_t DMACSA1; + __IO uint32_t DMACDA1; + __IO uint32_t DMACA2; + __IO uint32_t DMACB2; + __IO uint32_t DMACSA2; + __IO uint32_t DMACDA2; + __IO uint32_t DMACA3; + __IO uint32_t DMACB3; + __IO uint32_t DMACSA3; + __IO uint32_t DMACDA3; + __IO uint32_t DMACA4; + __IO uint32_t DMACB4; + __IO uint32_t DMACSA4; + __IO uint32_t DMACDA4; + __IO uint32_t DMACA5; + __IO uint32_t DMACB5; + __IO uint32_t DMACSA5; + __IO uint32_t DMACDA5; + __IO uint32_t DMACA6; + __IO uint32_t DMACB6; + __IO uint32_t DMACSA6; + __IO uint32_t DMACDA6; + __IO uint32_t DMACA7; + __IO uint32_t DMACB7; + __IO uint32_t DMACSA7; + __IO uint32_t DMACDA7; +}FM3_DMAC_TypeDef; + +/****************************************************************************** + * CAN_MODULE + ******************************************************************************/ +/* CAN channel 0 registers */ +typedef struct +{ + __IO uint16_t CTRLR; + __IO uint16_t STATR; + __IO uint16_t ERRCNT; + __IO uint16_t BTR; + __IO uint16_t INTR; + __IO uint16_t TESTR; + __IO uint16_t BRPER; + uint8_t RESERVED0[2]; + __IO uint16_t IF1CREQ; + __IO uint16_t IF1CMSK; + union { + __IO uint32_t IF1MSK; + struct { + __IO uint16_t IF1MSK1; + __IO uint16_t IF1MSK2; + }; + }; + union { + __IO uint32_t IF1ARB; + struct { + __IO uint16_t IF1ARB1; + __IO uint16_t IF1ARB2; + }; + }; + __IO uint16_t IF1MCTR; + uint8_t RESERVED1[2]; + union { + __IO uint32_t IF1DTA_L; + struct { + __IO uint16_t IF1DTA1_L; + __IO uint16_t IF1DTA2_L; + }; + }; + union { + __IO uint32_t IF1DTB_L; + struct { + __IO uint16_t IF1DTB1_L; + __IO uint16_t IF1DTB2_L; + }; + }; + uint8_t RESERVED2[8]; + union { + __IO uint32_t IF1DTA_B; + struct { + __IO uint16_t IF1DTA2_B; + __IO uint16_t IF1DTA1_B; + }; + }; + union { + __IO uint32_t IF1DTB_B; + struct { + __IO uint16_t IF1DTB2_B; + __IO uint16_t IF1DTB1_B; + }; + }; + uint8_t RESERVED3[8]; + __IO uint16_t IF2CREQ; + __IO uint16_t IF2CMSK; + union { + __IO uint32_t IF2MSK; + struct { + __IO uint16_t IF2MSK1; + __IO uint16_t IF2MSK2; + }; + }; + union { + __IO uint32_t IF2ARB; + struct { + __IO uint16_t IF2ARB1; + __IO uint16_t IF2ARB2; + }; + }; + __IO uint16_t IF2MCTR; + uint8_t RESERVED4[2]; + union { + __IO uint32_t IF2DTA_L; + struct { + __IO uint16_t IF2DTA1_L; + __IO uint16_t IF2DTA2_L; + }; + }; + union { + __IO uint32_t IF2DTB_L; + struct { + __IO uint16_t IF2DTB1_L; + __IO uint16_t IF2DTB2_L; + }; + }; + uint8_t RESERVED5[8]; + union { + __IO uint32_t IF2DTA_B; + struct { + __IO uint16_t IF2DTA2_B; + __IO uint16_t IF2DTA1_B; + }; + }; + union { + __IO uint32_t IF2DTB_B; + struct { + __IO uint16_t IF2DTB2_B; + __IO uint16_t IF2DTB1_B; + }; + }; + uint8_t RESERVED6[24]; + union { + __IO uint32_t TREQR; + struct { + __IO uint16_t TREQR1; + __IO uint16_t TREQR2; + }; + }; + uint8_t RESERVED7[12]; + union { + __IO uint32_t NEWDT; + struct { + __IO uint16_t NEWDT1; + __IO uint16_t NEWDT2; + }; + }; + uint8_t RESERVED8[12]; + union { + __IO uint32_t INTPND; + struct { + __IO uint16_t INTPND1; + __IO uint16_t INTPND2; + }; + }; + uint8_t RESERVED9[12]; + union { + __IO uint32_t MSGVAL; + struct { + __IO uint16_t MSGVAL1; + __IO uint16_t MSGVAL2; + }; + }; +}FM3_CAN_TypeDef; + + +/****************************************************************************** + * Peripheral memory map + ******************************************************************************/ +#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ +#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ +#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ + +#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ +#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ +#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ +#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ +#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ +#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ +#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ +#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ +#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ +#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ +#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ +#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ +#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ +#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ +#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ +#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ +#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ +#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ +#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ +#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ +#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ +#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ +#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ +#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ +#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ +#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ +#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ +#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ +#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ +#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ +#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ +#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ +#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ +#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ +#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ +#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ +#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ +#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ +#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ +#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ +#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ +#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ +#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ +#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ +#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ +#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ +#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ +#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ +#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ +#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ +#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ +#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ +#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ +#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ +#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ +#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ +#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ +#define FM3_USBCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ +#define FM3_CANPRES_BASE (FM3_PERIPH_BASE + 0x37000UL) /* CAN prescaler register */ +#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ +#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ +#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ +#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ +#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ +#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ +#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ +#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ +#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ +#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ +#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ +#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ +#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ +#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ +#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ +#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ +#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ +#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ +#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ +#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ +#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ +#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ +#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ +#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ +#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ +#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ +#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ +#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ +#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ +#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ +#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ +#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ +#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ +#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ +#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ +#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ +#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ +#define FM3_CAN0_BASE (FM3_PERIPH_BASE + 0x62000UL) /* CAN channel 0 registers */ +#define FM3_CAN1_BASE (FM3_PERIPH_BASE + 0x63000UL) /* CAN channel 1 registers */ + +/****************************************************************************** + * Peripheral declaration + ******************************************************************************/ +#define FM3_FLASH_IF ((FM3_FIF_TypeDef *)FM3_FLASH_IF_BASE) +#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) +#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) +#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) +#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) +#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) +#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) +#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) +#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) +#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) +#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) +#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) +#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) +#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) +#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) +#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) +#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) +#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) +#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) +#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) +#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) +#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) +#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) +#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) +#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) +#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) +#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) +#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) +#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) +#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) +#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) +#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) +#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) +#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) +#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) +#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) +#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) +#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) +#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) +#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) +#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) +#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) +#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) +#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) +#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) +#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) +#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) +#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) +#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) +#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) +#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) +#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) +#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) +#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) +#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) +#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) +#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) +#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) +#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) +#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) +#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) +#define FM3_USBCLK ((FM3_USBCLK_TypeDef *)FM3_USBCLK_BASE) +#define FM3_CANPRES ((FM3_CANPRE_TypeDef *)FM3_CANPRES_BASE) +#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) +#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) +#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) +#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) +#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) +#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) +#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) +#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) +#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) +#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) +#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) +#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) +#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) +#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) +#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) +#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) +#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) +#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) +#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) +#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) +#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) +#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) +#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) +#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) +#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) +#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) +#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) +#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) +#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) +#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) +#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) +#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) +#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) +#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) +#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) +#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) +#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) +#define FM3_CAN0 ((FM3_CAN_TypeDef *)FM3_CAN0_BASE) +#define FM3_CAN1 ((FM3_CAN_TypeDef *)FM3_CAN1_BASE) + +/****************************************************************************** + * Peripheral Bit Band Alias declaration + ******************************************************************************/ + +/* Flash interface registers */ +#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) +#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) +#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) +#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) +#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) +#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) +#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) +#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) +#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) + +/* Clock and reset registers */ +#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) +#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) +#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) +#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) +#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) +#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) +#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) +#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) +#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) +#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) +#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) +#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) +#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) +#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) +#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) +#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) +#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) +#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) +#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) +#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) +#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) +#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) +#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) +#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) +#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) +#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) +#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) +#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) +#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) +#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) +#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) +#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) +#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) +#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) +#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) +#define bFM3_CRG_TTC_PSR_TTC *((volatile unsigned int*)(0x42200500UL)) +#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) +#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) +#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) +#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) +#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) +#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) +#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) +#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) +#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) +#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) +#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) +#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) +#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) +#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) +#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) +#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) +#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) +#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) +#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) +#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) +#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) +#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) +#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) +#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) +#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) +#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) +#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) +#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) +#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) +#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) +#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) +#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) +#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) +#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) +#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) +#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) +#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) +#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) +#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) +#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) +#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) +#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) +#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) +#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) +#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) + +/* Hardware watchdog registers */ +#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) +#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) +#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) + +/* Software watchdog registers */ +#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) +#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) +#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) + +/* Dual timer 1/2 registers */ +#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) +#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) +#define bFM3_DTIM_TIMER1RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0200UL)) +#define bFM3_DTIM_TIMER1MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0280UL)) +#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) +#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) +#define bFM3_DTIM_TIMER2RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0600UL)) +#define bFM3_DTIM_TIMER2MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0680UL)) + +/* Multifunction Timer unit 0 Free Running Timer registers */ +#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) +#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) +#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) +#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) +#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) +#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) +#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) +#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) +#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) +#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) +#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) +#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) +#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) +#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) +#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) +#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) +#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) +#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) +#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) +#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) +#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) +#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) +#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) +#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) +#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) +#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) +#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) +#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) +#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) +#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) +#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) + +/* Multifunction Timer unit 0 Output Compare Unit registers */ +#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) +#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) +#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) +#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) +#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) +#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) +#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) +#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) +#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) +#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) +#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) +#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) +#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) +#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) +#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) +#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) +#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) +#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) +#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) +#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) +#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) +#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) +#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) +#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) +#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) +#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) + +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) +#define bFM3_MFT0_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4240118CUL)) +#define bFM3_MFT0_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42401190UL)) +#define bFM3_MFT0_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42401194UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) +#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) +#define bFM3_MFT0_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4240120CUL)) +#define bFM3_MFT0_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42401210UL)) +#define bFM3_MFT0_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42401214UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) +#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) +#define bFM3_MFT0_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4240128CUL)) +#define bFM3_MFT0_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42401290UL)) +#define bFM3_MFT0_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42401294UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) +#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) +#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) +#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) +#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) +#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) +#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) +#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) +#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) +#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) + +/* Multifunction Timer unit 0 Input Capture Unit registers */ +#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) +#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) +#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) +#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) +#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) +#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) +#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) +#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) +#define bFM3_MFT0_ICU_ICSA10_IPC0 *((volatile unsigned int*)(0x42400F18UL)) +#define bFM3_MFT0_ICU_ICSA10_IPC1 *((volatile unsigned int*)(0x42400F1CUL)) +#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) +#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) +#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) +#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) +#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) +#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) +#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) +#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) +#define bFM3_MFT0_ICU_ICSA32_IPC2 *((volatile unsigned int*)(0x42400F98UL)) +#define bFM3_MFT0_ICU_ICSA32_IPC3 *((volatile unsigned int*)(0x42400F9CUL)) +#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) +#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) + +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) +#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) + +/* Multifunction Timer unit 1 Free Running Timer registers */ +#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) +#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) +#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) +#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) +#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) +#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) +#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) +#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) +#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) +#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) +#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) +#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) +#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) +#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) +#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) +#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) +#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) +#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) +#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) +#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) +#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) +#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) +#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) +#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) +#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) +#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) +#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) +#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) +#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) +#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) +#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) + +/* Multifunction Timer unit 1 Output Compare Unit registers */ +#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) +#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) +#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) +#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) +#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) +#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) +#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) +#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) +#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) +#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) +#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) +#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) +#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) +#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) +#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) +#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) +#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) +#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) +#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) +#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) +#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) +#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) +#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) +#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) +#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) +#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) + +/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) +#define bFM3_MFT1_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4242118CUL)) +#define bFM3_MFT1_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42421190UL)) +#define bFM3_MFT1_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42421194UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) +#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) +#define bFM3_MFT1_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4242120CUL)) +#define bFM3_MFT1_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42421210UL)) +#define bFM3_MFT1_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42421214UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) +#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) +#define bFM3_MFT1_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4242128CUL)) +#define bFM3_MFT1_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42421290UL)) +#define bFM3_MFT1_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42421294UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) +#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) +#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) +#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) +#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) +#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) +#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) +#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) +#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) +#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) + +/* Multifunction Timer unit 1 Input Capture Unit registers */ +#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) +#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) +#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) +#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) +#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) +#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) +#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) +#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) +#define bFM3_MFT1_ICU_ICSA10_IPC0 *((volatile unsigned int*)(0x42420F18UL)) +#define bFM3_MFT1_ICU_ICSA10_IPC1 *((volatile unsigned int*)(0x42420F1CUL)) +#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) +#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) +#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) +#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) +#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) +#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) +#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) +#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) +#define bFM3_MFT1_ICU_ICSA32_IPC2 *((volatile unsigned int*)(0x42420F98UL)) +#define bFM3_MFT1_ICU_ICSA32_IPC3 *((volatile unsigned int*)(0x42420F9CUL)) +#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) +#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) + +/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) +#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) + +/* Multifunction Timer PPG registers */ +#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) +#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) +#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) +#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) +#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) +#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) +#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) +#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) +#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) +#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) +#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) +#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) +#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) +#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) +#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) +#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) +#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) +#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) +#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) +#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) +#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) +#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) +#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) +#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) +#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) +#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) +#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) +#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) +#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) +#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) +#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) +#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) +#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) +#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) +#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) +#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) +#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) +#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) +#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) +#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) +#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) +#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) +#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) +#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) +#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) +#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) +#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) +#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) +#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) +#define bFM3_MFT_PPG_PPGC1_MD0 *((volatile unsigned int*)(0x42484004UL)) +#define bFM3_MFT_PPG_PPGC1_MD1 *((volatile unsigned int*)(0x42484008UL)) +#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) +#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) +#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) +#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) +#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) +#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) +#define bFM3_MFT_PPG_PPGC0_MD0 *((volatile unsigned int*)(0x42484024UL)) +#define bFM3_MFT_PPG_PPGC0_MD1 *((volatile unsigned int*)(0x42484028UL)) +#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) +#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) +#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) +#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) +#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) +#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) +#define bFM3_MFT_PPG_PPGC3_MD0 *((volatile unsigned int*)(0x42484084UL)) +#define bFM3_MFT_PPG_PPGC3_MD1 *((volatile unsigned int*)(0x42484088UL)) +#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) +#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) +#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) +#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) +#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) +#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) +#define bFM3_MFT_PPG_PPGC2_MD0 *((volatile unsigned int*)(0x424840A4UL)) +#define bFM3_MFT_PPG_PPGC2_MD1 *((volatile unsigned int*)(0x424840A8UL)) +#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) +#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) +#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) +#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) +#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) +#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) +#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) +#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) +#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) +#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) +#define bFM3_MFT_PPG_PPGC5_MD0 *((volatile unsigned int*)(0x42484804UL)) +#define bFM3_MFT_PPG_PPGC5_MD1 *((volatile unsigned int*)(0x42484808UL)) +#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) +#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) +#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) +#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) +#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) +#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) +#define bFM3_MFT_PPG_PPGC4_MD0 *((volatile unsigned int*)(0x42484824UL)) +#define bFM3_MFT_PPG_PPGC4_MD1 *((volatile unsigned int*)(0x42484828UL)) +#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) +#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) +#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) +#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) +#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) +#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) +#define bFM3_MFT_PPG_PPGC7_MD0 *((volatile unsigned int*)(0x42484884UL)) +#define bFM3_MFT_PPG_PPGC7_MD1 *((volatile unsigned int*)(0x42484888UL)) +#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) +#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) +#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) +#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) +#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) +#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) +#define bFM3_MFT_PPG_PPGC6_MD0 *((volatile unsigned int*)(0x424848A4UL)) +#define bFM3_MFT_PPG_PPGC6_MD1 *((volatile unsigned int*)(0x424848A8UL)) +#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) +#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) +#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) +#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) +#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) +#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) +#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) +#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) +#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) +#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) +#define bFM3_MFT_PPG_PPGC9_MD0 *((volatile unsigned int*)(0x42485004UL)) +#define bFM3_MFT_PPG_PPGC9_MD1 *((volatile unsigned int*)(0x42485008UL)) +#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) +#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) +#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) +#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) +#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) +#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) +#define bFM3_MFT_PPG_PPGC8_MD0 *((volatile unsigned int*)(0x42485024UL)) +#define bFM3_MFT_PPG_PPGC8_MD1 *((volatile unsigned int*)(0x42485028UL)) +#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) +#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) +#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) +#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) +#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) +#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) +#define bFM3_MFT_PPG_PPGC11_MD0 *((volatile unsigned int*)(0x42485084UL)) +#define bFM3_MFT_PPG_PPGC11_MD1 *((volatile unsigned int*)(0x42485088UL)) +#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) +#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) +#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) +#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) +#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) +#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) +#define bFM3_MFT_PPG_PPGC10_MD0 *((volatile unsigned int*)(0x424850A4UL)) +#define bFM3_MFT_PPG_PPGC10_MD1 *((volatile unsigned int*)(0x424850A8UL)) +#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) +#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) +#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) +#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) +#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) +#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) +#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) +#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) +#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) +#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) +#define bFM3_MFT_PPG_PPGC13_MD0 *((volatile unsigned int*)(0x42485804UL)) +#define bFM3_MFT_PPG_PPGC13_MD1 *((volatile unsigned int*)(0x42485808UL)) +#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) +#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) +#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) +#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) +#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) +#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) +#define bFM3_MFT_PPG_PPGC12_MD0 *((volatile unsigned int*)(0x42485824UL)) +#define bFM3_MFT_PPG_PPGC12_MD1 *((volatile unsigned int*)(0x42485828UL)) +#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) +#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) +#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) +#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) +#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) +#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) +#define bFM3_MFT_PPG_PPGC15_MD0 *((volatile unsigned int*)(0x42485884UL)) +#define bFM3_MFT_PPG_PPGC15_MD1 *((volatile unsigned int*)(0x42485888UL)) +#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) +#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) +#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) +#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) +#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) +#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) +#define bFM3_MFT_PPG_PPGC14_MD0 *((volatile unsigned int*)(0x424858A4UL)) +#define bFM3_MFT_PPG_PPGC14_MD1 *((volatile unsigned int*)(0x424858A8UL)) +#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) +#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) +#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) +#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) +#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) +#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) +#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) +#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) +#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) + +/* Base Timer 0 PPG registers */ +#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWM registers */ +#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) +#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) +#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 RT registers */ +#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWC registers */ +#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) +#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 1 PPG registers */ +#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWM registers */ +#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) +#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) +#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 RT registers */ +#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWC registers */ +#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) +#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 2 PPG registers */ +#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWM registers */ +#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) +#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) +#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 RT registers */ +#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWC registers */ +#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) +#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 3 PPG registers */ +#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWM registers */ +#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) +#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) +#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 RT registers */ +#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWC registers */ +#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) +#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 4 PPG registers */ +#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWM registers */ +#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) +#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) +#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 RT registers */ +#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWC registers */ +#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) +#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 5 PPG registers */ +#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWM registers */ +#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) +#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) +#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 RT registers */ +#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWC registers */ +#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) +#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 6 PPG registers */ +#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWM registers */ +#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) +#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) +#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 RT registers */ +#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWC registers */ +#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) +#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 7 PPG registers */ +#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWM registers */ +#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) +#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) +#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 RT registers */ +#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWC registers */ +#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) +#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer I/O selector channel 0 - channel 3 registers */ +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) + +/* Base Timer I/O selector channel 4 - channel 7 registers */ +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) + +/* Software based Simulation Startup (Base Timer) register */ +#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) +#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) +#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) +#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) +#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) +#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) +#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) +#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) +#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) +#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) +#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) +#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) +#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) +#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) +#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) +#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) + +/* Quad position and revolution counter channel 0 registers */ +#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) +#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) +#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) + +/* Quad position and revolution counter channel 1 registers */ +#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) +#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) +#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) + +/* 12-bit ADC unit 0 registers */ +#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) +#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) +#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) +#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) +#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) +#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) +#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) +#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) +#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) +#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) +#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) +#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) +#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) +#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) +#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) +#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) +#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) +#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) +#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) +#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) +#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) +#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) +#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) +#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) +#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) +#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) +#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) +#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) +#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) +#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) +#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) +#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) +#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) +#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) +#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) +#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) +#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) +#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) +#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) +#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) +#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) +#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) +#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) +#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) +#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) +#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) +#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) +#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) +#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) +#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) +#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) +#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) +#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) +#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) +#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) +#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) +#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) +#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) +#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) +#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) +#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) +#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) +#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) +#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) +#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) +#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) +#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) +#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) +#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) +#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) +#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) +#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) +#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) +#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) + +/* 12-bit ADC unit 1 registers */ +#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) +#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) +#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) +#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) +#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) +#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) +#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) +#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) +#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) +#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) +#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) +#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) +#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) +#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) +#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) +#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) +#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) +#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) +#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) +#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) +#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) +#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) +#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) +#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) +#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) +#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) +#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) +#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) +#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) +#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) +#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) +#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) +#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) +#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) +#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) +#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) +#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) +#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) +#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) +#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) +#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) +#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) +#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) +#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) +#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) +#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) +#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) +#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) +#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) +#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) +#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) +#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) +#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) +#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) +#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) +#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) +#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) +#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) +#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) +#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) +#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) +#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) +#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) +#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) +#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) +#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) +#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) +#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) +#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) +#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) +#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) +#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) +#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) +#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) + +/* 12-bit ADC unit 2 registers */ +#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) +#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) +#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) +#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) +#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) +#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) +#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) +#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) +#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) +#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) +#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) +#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) +#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) +#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) +#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) +#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) +#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) +#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) +#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) +#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) +#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) +#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) +#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) +#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) +#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) +#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) +#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) +#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) +#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) +#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) +#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) +#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) +#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) +#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) +#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) +#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) +#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) +#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) +#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) +#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) +#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) +#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) +#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) +#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) +#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) +#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) +#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) +#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) +#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) +#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) +#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) +#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) +#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) +#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) +#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) +#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) +#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) +#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) +#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) +#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) +#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) +#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) +#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) +#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) +#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) +#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) +#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) +#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) +#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) +#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) +#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) +#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) +#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) +#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) + +/* CR trimming registers */ +#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) +#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD8 *((volatile unsigned int*)(0x425C00A0UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD9 *((volatile unsigned int*)(0x425C00A4UL)) + +/* External interrupt registers */ +#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) +#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) +#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) +#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) +#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) +#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) +#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) +#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) +#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) +#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) +#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) +#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) +#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) +#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) +#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) +#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) +#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) +#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) +#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) +#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) +#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) +#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) +#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) +#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) +#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) +#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) +#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) +#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) +#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) +#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) +#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) +#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) +#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) +#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) +#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) +#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) +#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) +#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) +#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) +#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) +#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) +#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) +#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) +#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) +#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) +#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) +#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) +#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) +#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) +#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) +#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) +#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) +#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) +#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) +#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) +#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) +#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) +#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) +#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) +#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) +#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) +#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) +#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) +#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) +#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) +#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) +#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) +#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) +#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) +#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) +#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) +#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) +#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) +#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) +#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) +#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) +#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) +#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) +#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) +#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) +#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) +#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) + +/* Interrupt request read registers */ +#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) +#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) +#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) +#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) +#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) +#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT0 *((volatile unsigned int*)(0x42620580UL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620584UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) +#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) +#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) +#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) +#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) +#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) +#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) +#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) +#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) +#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) +#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) +#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) +#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) +#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) +#define bFM3_INTREQ_IRQ32MON_CANINT *((volatile unsigned int*)(0x42621280UL)) +#define bFM3_INTREQ_IRQ33MON_CANINT *((volatile unsigned int*)(0x42621300UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) +#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) +#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) +#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) +#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) +#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) +#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) +#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) +#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) + +/* General purpose I/O registers */ +#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) +#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) +#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) +#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) +#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) +#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) +#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) +#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) +#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) +#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) +#define bFM3_GPIO_PFR0_PA *((volatile unsigned int*)(0x42660028UL)) +#define bFM3_GPIO_PFR0_PB *((volatile unsigned int*)(0x4266002CUL)) +#define bFM3_GPIO_PFR0_PC *((volatile unsigned int*)(0x42660030UL)) +#define bFM3_GPIO_PFR0_PD *((volatile unsigned int*)(0x42660034UL)) +#define bFM3_GPIO_PFR0_PE *((volatile unsigned int*)(0x42660038UL)) +#define bFM3_GPIO_PFR0_PF *((volatile unsigned int*)(0x4266003CUL)) +#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) +#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) +#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) +#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) +#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) +#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) +#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) +#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) +#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) +#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) +#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) +#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) +#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) +#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) +#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) +#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) +#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) +#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) +#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) +#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) +#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) +#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) +#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) +#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) +#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) +#define bFM3_GPIO_PFR3_P0 *((volatile unsigned int*)(0x42660180UL)) +#define bFM3_GPIO_PFR3_P1 *((volatile unsigned int*)(0x42660184UL)) +#define bFM3_GPIO_PFR3_P2 *((volatile unsigned int*)(0x42660188UL)) +#define bFM3_GPIO_PFR3_P3 *((volatile unsigned int*)(0x4266018CUL)) +#define bFM3_GPIO_PFR3_P4 *((volatile unsigned int*)(0x42660190UL)) +#define bFM3_GPIO_PFR3_P5 *((volatile unsigned int*)(0x42660194UL)) +#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) +#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) +#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) +#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) +#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) +#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) +#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) +#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) +#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) +#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) +#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) +#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) +#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) +#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) +#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) +#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) +#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) +#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) +#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) +#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) +#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) +#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) +#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) +#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) +#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) +#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) +#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) +#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) +#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) +#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) +#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) +#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) +#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) +#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) +#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) +#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) +#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) +#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) +#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) +#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) +#define bFM3_GPIO_PFR6_P3 *((volatile unsigned int*)(0x4266030CUL)) +#define bFM3_GPIO_PFR6_P4 *((volatile unsigned int*)(0x42660310UL)) +#define bFM3_GPIO_PFR6_P5 *((volatile unsigned int*)(0x42660314UL)) +#define bFM3_GPIO_PFR6_P6 *((volatile unsigned int*)(0x42660318UL)) +#define bFM3_GPIO_PFR6_P7 *((volatile unsigned int*)(0x4266031CUL)) +#define bFM3_GPIO_PFR6_P8 *((volatile unsigned int*)(0x42660320UL)) +#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) +#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) +#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) +#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) +#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) +#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) +#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) +#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) +#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) +#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) +#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) +#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) +#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) +#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) +#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) +#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) +#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) +#define bFM3_GPIO_PCR0_PA *((volatile unsigned int*)(0x42662028UL)) +#define bFM3_GPIO_PCR0_PB *((volatile unsigned int*)(0x4266202CUL)) +#define bFM3_GPIO_PCR0_PC *((volatile unsigned int*)(0x42662030UL)) +#define bFM3_GPIO_PCR0_PD *((volatile unsigned int*)(0x42662034UL)) +#define bFM3_GPIO_PCR0_PE *((volatile unsigned int*)(0x42662038UL)) +#define bFM3_GPIO_PCR0_PF *((volatile unsigned int*)(0x4266203CUL)) +#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) +#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) +#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) +#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) +#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) +#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) +#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) +#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) +#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) +#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) +#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) +#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) +#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) +#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) +#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) +#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) +#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) +#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) +#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) +#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) +#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) +#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) +#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) +#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) +#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) +#define bFM3_GPIO_PCR3_P0 *((volatile unsigned int*)(0x42662180UL)) +#define bFM3_GPIO_PCR3_P1 *((volatile unsigned int*)(0x42662184UL)) +#define bFM3_GPIO_PCR3_P2 *((volatile unsigned int*)(0x42662188UL)) +#define bFM3_GPIO_PCR3_P3 *((volatile unsigned int*)(0x4266218CUL)) +#define bFM3_GPIO_PCR3_P4 *((volatile unsigned int*)(0x42662190UL)) +#define bFM3_GPIO_PCR3_P5 *((volatile unsigned int*)(0x42662194UL)) +#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) +#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) +#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) +#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) +#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) +#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) +#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) +#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) +#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) +#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) +#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) +#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) +#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) +#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) +#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) +#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) +#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) +#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) +#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) +#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) +#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) +#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) +#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) +#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) +#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) +#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) +#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) +#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) +#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) +#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) +#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) +#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) +#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) +#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) +#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) +#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) +#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) +#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) +#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) +#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) +#define bFM3_GPIO_PCR6_P3 *((volatile unsigned int*)(0x4266230CUL)) +#define bFM3_GPIO_PCR6_P4 *((volatile unsigned int*)(0x42662310UL)) +#define bFM3_GPIO_PCR6_P5 *((volatile unsigned int*)(0x42662314UL)) +#define bFM3_GPIO_PCR6_P6 *((volatile unsigned int*)(0x42662318UL)) +#define bFM3_GPIO_PCR6_P7 *((volatile unsigned int*)(0x4266231CUL)) +#define bFM3_GPIO_PCR6_P8 *((volatile unsigned int*)(0x42662320UL)) +#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) +#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) +#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) +#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) +#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) +#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) +#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) +#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) +#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) +#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) +#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) +#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) +#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) +#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) +#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) +#define bFM3_GPIO_DDR0_PA *((volatile unsigned int*)(0x42664028UL)) +#define bFM3_GPIO_DDR0_PB *((volatile unsigned int*)(0x4266402CUL)) +#define bFM3_GPIO_DDR0_PC *((volatile unsigned int*)(0x42664030UL)) +#define bFM3_GPIO_DDR0_PD *((volatile unsigned int*)(0x42664034UL)) +#define bFM3_GPIO_DDR0_PE *((volatile unsigned int*)(0x42664038UL)) +#define bFM3_GPIO_DDR0_PF *((volatile unsigned int*)(0x4266403CUL)) +#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) +#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) +#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) +#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) +#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) +#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) +#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) +#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) +#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) +#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) +#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) +#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) +#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) +#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) +#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) +#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) +#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) +#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) +#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) +#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) +#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) +#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) +#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) +#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) +#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) +#define bFM3_GPIO_DDR3_P0 *((volatile unsigned int*)(0x42664180UL)) +#define bFM3_GPIO_DDR3_P1 *((volatile unsigned int*)(0x42664184UL)) +#define bFM3_GPIO_DDR3_P2 *((volatile unsigned int*)(0x42664188UL)) +#define bFM3_GPIO_DDR3_P3 *((volatile unsigned int*)(0x4266418CUL)) +#define bFM3_GPIO_DDR3_P4 *((volatile unsigned int*)(0x42664190UL)) +#define bFM3_GPIO_DDR3_P5 *((volatile unsigned int*)(0x42664194UL)) +#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) +#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) +#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) +#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) +#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) +#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) +#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) +#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) +#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) +#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) +#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) +#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) +#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) +#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) +#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) +#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) +#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) +#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) +#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) +#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) +#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) +#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) +#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) +#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) +#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) +#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) +#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) +#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) +#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) +#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) +#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) +#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) +#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) +#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) +#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) +#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) +#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) +#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) +#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) +#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) +#define bFM3_GPIO_DDR6_P3 *((volatile unsigned int*)(0x4266430CUL)) +#define bFM3_GPIO_DDR6_P4 *((volatile unsigned int*)(0x42664310UL)) +#define bFM3_GPIO_DDR6_P5 *((volatile unsigned int*)(0x42664314UL)) +#define bFM3_GPIO_DDR6_P6 *((volatile unsigned int*)(0x42664318UL)) +#define bFM3_GPIO_DDR6_P7 *((volatile unsigned int*)(0x4266431CUL)) +#define bFM3_GPIO_DDR6_P8 *((volatile unsigned int*)(0x42664320UL)) +#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) +#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) +#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) +#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) +#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) +#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) +#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) +#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) +#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) +#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) +#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) +#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) +#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) +#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) +#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) +#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) +#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) +#define bFM3_GPIO_PDIR0_PA *((volatile unsigned int*)(0x42666028UL)) +#define bFM3_GPIO_PDIR0_PB *((volatile unsigned int*)(0x4266602CUL)) +#define bFM3_GPIO_PDIR0_PC *((volatile unsigned int*)(0x42666030UL)) +#define bFM3_GPIO_PDIR0_PD *((volatile unsigned int*)(0x42666034UL)) +#define bFM3_GPIO_PDIR0_PE *((volatile unsigned int*)(0x42666038UL)) +#define bFM3_GPIO_PDIR0_PF *((volatile unsigned int*)(0x4266603CUL)) +#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) +#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) +#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) +#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) +#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) +#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) +#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) +#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) +#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) +#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) +#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) +#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) +#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) +#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) +#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) +#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) +#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) +#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) +#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) +#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) +#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) +#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) +#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) +#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) +#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) +#define bFM3_GPIO_PDIR3_P0 *((volatile unsigned int*)(0x42666180UL)) +#define bFM3_GPIO_PDIR3_P1 *((volatile unsigned int*)(0x42666184UL)) +#define bFM3_GPIO_PDIR3_P2 *((volatile unsigned int*)(0x42666188UL)) +#define bFM3_GPIO_PDIR3_P3 *((volatile unsigned int*)(0x4266618CUL)) +#define bFM3_GPIO_PDIR3_P4 *((volatile unsigned int*)(0x42666190UL)) +#define bFM3_GPIO_PDIR3_P5 *((volatile unsigned int*)(0x42666194UL)) +#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) +#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) +#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) +#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) +#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) +#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) +#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) +#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) +#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) +#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) +#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) +#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) +#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) +#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) +#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) +#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) +#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) +#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) +#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) +#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) +#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) +#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) +#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) +#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) +#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) +#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) +#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) +#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) +#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) +#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) +#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) +#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) +#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) +#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) +#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) +#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) +#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) +#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) +#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) +#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) +#define bFM3_GPIO_PDIR6_P3 *((volatile unsigned int*)(0x4266630CUL)) +#define bFM3_GPIO_PDIR6_P4 *((volatile unsigned int*)(0x42666310UL)) +#define bFM3_GPIO_PDIR6_P5 *((volatile unsigned int*)(0x42666314UL)) +#define bFM3_GPIO_PDIR6_P6 *((volatile unsigned int*)(0x42666318UL)) +#define bFM3_GPIO_PDIR6_P7 *((volatile unsigned int*)(0x4266631CUL)) +#define bFM3_GPIO_PDIR6_P8 *((volatile unsigned int*)(0x42666320UL)) +#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) +#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) +#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) +#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) +#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) +#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) +#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) +#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) +#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) +#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) +#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) +#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) +#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) +#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) +#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) +#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) +#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) +#define bFM3_GPIO_PDOR0_PA *((volatile unsigned int*)(0x42668028UL)) +#define bFM3_GPIO_PDOR0_PB *((volatile unsigned int*)(0x4266802CUL)) +#define bFM3_GPIO_PDOR0_PC *((volatile unsigned int*)(0x42668030UL)) +#define bFM3_GPIO_PDOR0_PD *((volatile unsigned int*)(0x42668034UL)) +#define bFM3_GPIO_PDOR0_PE *((volatile unsigned int*)(0x42668038UL)) +#define bFM3_GPIO_PDOR0_PF *((volatile unsigned int*)(0x4266803CUL)) +#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) +#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) +#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) +#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) +#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) +#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) +#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) +#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) +#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) +#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) +#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) +#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) +#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) +#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) +#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) +#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) +#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) +#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) +#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) +#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) +#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) +#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) +#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) +#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) +#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) +#define bFM3_GPIO_PDOR3_P0 *((volatile unsigned int*)(0x42668180UL)) +#define bFM3_GPIO_PDOR3_P1 *((volatile unsigned int*)(0x42668184UL)) +#define bFM3_GPIO_PDOR3_P2 *((volatile unsigned int*)(0x42668188UL)) +#define bFM3_GPIO_PDOR3_P3 *((volatile unsigned int*)(0x4266818CUL)) +#define bFM3_GPIO_PDOR3_P4 *((volatile unsigned int*)(0x42668190UL)) +#define bFM3_GPIO_PDOR3_P5 *((volatile unsigned int*)(0x42668194UL)) +#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) +#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) +#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) +#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) +#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) +#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) +#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) +#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) +#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) +#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) +#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) +#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) +#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) +#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) +#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) +#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) +#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) +#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) +#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) +#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) +#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) +#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) +#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) +#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) +#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) +#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) +#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) +#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) +#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) +#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) +#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) +#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) +#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) +#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) +#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) +#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) +#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) +#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) +#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) +#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) +#define bFM3_GPIO_PDOR6_P3 *((volatile unsigned int*)(0x4266830CUL)) +#define bFM3_GPIO_PDOR6_P4 *((volatile unsigned int*)(0x42668310UL)) +#define bFM3_GPIO_PDOR6_P5 *((volatile unsigned int*)(0x42668314UL)) +#define bFM3_GPIO_PDOR6_P6 *((volatile unsigned int*)(0x42668318UL)) +#define bFM3_GPIO_PDOR6_P7 *((volatile unsigned int*)(0x4266831CUL)) +#define bFM3_GPIO_PDOR6_P8 *((volatile unsigned int*)(0x42668320UL)) +#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) +#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) +#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) +#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) +#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) +#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) +#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) +#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) +#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) +#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) +#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) +#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) +#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) +#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) +#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) +#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) +#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) +#define bFM3_GPIO_ADE_ANA *((volatile unsigned int*)(0x4266A028UL)) +#define bFM3_GPIO_ADE_ANB *((volatile unsigned int*)(0x4266A02CUL)) +#define bFM3_GPIO_ADE_ANC *((volatile unsigned int*)(0x4266A030UL)) +#define bFM3_GPIO_ADE_AND *((volatile unsigned int*)(0x4266A034UL)) +#define bFM3_GPIO_ADE_ANE *((volatile unsigned int*)(0x4266A038UL)) +#define bFM3_GPIO_ADE_ANF *((volatile unsigned int*)(0x4266A03CUL)) +#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) +#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) +#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) +#define bFM3_GPIO_EPFR00_CROUTE *((volatile unsigned int*)(0x4266C004UL)) +#define bFM3_GPIO_EPFR00_USB0PE *((volatile unsigned int*)(0x4266C024UL)) +#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) +#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) +#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) +#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) +#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) +#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) +#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) +#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) +#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) +#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) +#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) +#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) +#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) +#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) +#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) +#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) +#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) +#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) +#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) +#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) +#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) +#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) +#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) +#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) +#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) +#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) +#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) +#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) +#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) +#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) +#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) +#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) +#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) +#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) +#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) +#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) +#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) +#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) +#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) +#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) +#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) +#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) +#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) +#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) +#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) +#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) +#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) +#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) +#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) +#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) +#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) +#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) +#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) +#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) +#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) +#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) +#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) +#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) +#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) +#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) +#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) +#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) +#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) +#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) +#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) +#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) +#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) +#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) +#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) +#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) +#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) +#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) +#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) +#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) +#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) +#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) +#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) +#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) +#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) +#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) +#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) +#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) +#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) +#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) +#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) +#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) +#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) +#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) +#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) +#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) +#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) +#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) +#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) +#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) +#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) +#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) +#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) +#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) +#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) +#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) +#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) +#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) +#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) +#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) +#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) +#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) +#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) +#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) +#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) +#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) +#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) +#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) +#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) +#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) +#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) +#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) +#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) +#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) +#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) +#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) +#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) +#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) +#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) +#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) +#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) +#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) +#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) +#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) +#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) +#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) +#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) +#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) +#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) +#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) +#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) +#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) +#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) +#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) +#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) +#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) +#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) +#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) +#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) +#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) +#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) +#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) +#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) +#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) +#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) +#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) +#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) +#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) +#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) +#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) +#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) +#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) +#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) +#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) +#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) +#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) +#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) +#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) +#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) +#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) +#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) +#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) +#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) +#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) +#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) +#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) +#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) +#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) +#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) +#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) +#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) +#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) +#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) +#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) +#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) +#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) +#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) +#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) +#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) +#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) +#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) +#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) +#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) +#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) +#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) +#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) +#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) +#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) +#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) +#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) +#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) +#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) +#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) +#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) +#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) +#define bFM3_GPIO_EPFR09_CRX0S0 *((volatile unsigned int*)(0x4266C4E0UL)) +#define bFM3_GPIO_EPFR09_CRX0S1 *((volatile unsigned int*)(0x4266C4E4UL)) +#define bFM3_GPIO_EPFR09_CTX0E0 *((volatile unsigned int*)(0x4266C4E8UL)) +#define bFM3_GPIO_EPFR09_CTX0E1 *((volatile unsigned int*)(0x4266C4ECUL)) +#define bFM3_GPIO_EPFR09_CRX1S0 *((volatile unsigned int*)(0x4266C4F0UL)) +#define bFM3_GPIO_EPFR09_CRX1S1 *((volatile unsigned int*)(0x4266C4F4UL)) +#define bFM3_GPIO_EPFR09_CTX1E0 *((volatile unsigned int*)(0x4266C4F8UL)) +#define bFM3_GPIO_EPFR09_CTX1E1 *((volatile unsigned int*)(0x4266C4FCUL)) +#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) +#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) +#define bFM3_GPIO_EPFR10_TESTB *((volatile unsigned int*)(0x4266C508UL)) +#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) +#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) +#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) +#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) +#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) +#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) +#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) +#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) +#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) +#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) +#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) +#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) +#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) +#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) +#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) +#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) +#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) +#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) +#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) +#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) +#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) +#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) +#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) +#define bFM3_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x4266C568UL)) +#define bFM3_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x4266C56CUL)) +#define bFM3_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x4266C570UL)) +#define bFM3_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x4266C574UL)) +#define bFM3_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x4266C578UL)) +#define bFM3_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x4266C57CUL)) + +/* Low voltage detection registers */ +#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) +#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) +#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) +#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) +#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) +#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) +#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) +#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) + +/* USB clock registers */ +#define bFM3_USBCLK_UCCR_UCEN *((volatile unsigned int*)(0x426C0000UL)) +#define bFM3_USBCLK_UCCR_UCSEL *((volatile unsigned int*)(0x426C0004UL)) +#define bFM3_USBCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) +#define bFM3_USBCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) +#define bFM3_USBCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) +#define bFM3_USBCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) +#define bFM3_USBCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) +#define bFM3_USBCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) +#define bFM3_USBCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) +#define bFM3_USBCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) +#define bFM3_USBCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) +#define bFM3_USBCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) +#define bFM3_USBCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) +#define bFM3_USBCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) +#define bFM3_USBCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) +#define bFM3_USBCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) +#define bFM3_USBCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) +#define bFM3_USBCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) +#define bFM3_USBCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) +#define bFM3_USBCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) +#define bFM3_USBCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) +#define bFM3_USBCLK_USBEN_USBEN *((volatile unsigned int*)(0x426C0600UL)) + +/* CAN prescaler register */ +#define bFM3_CANPRES_CANPRE_CANPRE0 *((volatile unsigned int*)(0x426E0000UL)) +#define bFM3_CANPRES_CANPRE_CANPRE1 *((volatile unsigned int*)(0x426E0004UL)) +#define bFM3_CANPRES_CANPRE_CANPRE2 *((volatile unsigned int*)(0x426E0008UL)) +#define bFM3_CANPRES_CANPRE_CANPRE3 *((volatile unsigned int*)(0x426E000CUL)) + +/* UART asynchronous channel 0 registers */ +#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* UART synchronous channel 0 registers */ +#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) + +/* UART LIN channel 0 registers */ +#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* I2C channel 0 registers */ +#define bFM3_MFS0_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) +#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) +#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) +#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) +#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) +#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) +#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) +#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) +#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) +#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) +#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) +#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) +#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) +#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) +#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) +#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) +#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) + +/* UART asynchronous channel 1 registers */ +#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* UART synchronous channel 1 registers */ +#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) + +/* UART LIN channel 1 registers */ +#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* I2C channel 1 registers */ +#define bFM3_MFS1_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) +#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) +#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) +#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) +#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) +#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) +#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) +#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) +#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) +#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) +#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) +#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) +#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) +#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) +#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) +#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) +#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) + +/* UART asynchronous channel 2 registers */ +#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* UART synchronous channel 2 registers */ +#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) + +/* UART LIN channel 2 registers */ +#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* I2C channel 2 registers */ +#define bFM3_MFS2_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) +#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) +#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) +#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) +#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) +#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) +#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) +#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) +#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) +#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) +#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) +#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) +#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) +#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) +#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) +#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) +#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) + +/* UART asynchronous channel 3 registers */ +#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* UART synchronous channel 3 registers */ +#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) + +/* UART LIN channel 3 registers */ +#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* I2C channel 3 registers */ +#define bFM3_MFS3_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) +#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) +#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) +#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) +#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) +#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) +#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) +#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) +#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) +#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) +#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) +#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) +#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) +#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) +#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) +#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) +#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) + +/* UART asynchronous channel 4 registers */ +#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART synchronous channel 4 registers */ +#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708340UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708344UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708348UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270834CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708350UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708354UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708358UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270835CUL)) + +/* UART LIN channel 4 registers */ +#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708340UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708344UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708348UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270834CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708350UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708354UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708358UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270835CUL)) + +/* I2C channel 4 registers */ +#define bFM3_MFS4_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) +#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) +#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) +#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) +#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) +#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) +#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) +#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) +#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) +#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) +#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) +#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) +#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) +#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) +#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) +#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) +#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) +#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708340UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708344UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708348UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270834CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708350UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708354UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708358UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270835CUL)) + +/* UART asynchronous channel 5 registers */ +#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART synchronous channel 5 registers */ +#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A340UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A344UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A348UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A34CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A350UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A354UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A358UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A35CUL)) + +/* UART LIN channel 5 registers */ +#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A340UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A344UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A348UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A34CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A350UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A354UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A358UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A35CUL)) + +/* I2C channel 5 registers */ +#define bFM3_MFS5_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) +#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) +#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) +#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) +#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) +#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) +#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) +#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) +#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) +#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) +#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) +#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) +#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) +#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) +#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) +#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) +#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) +#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A340UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A344UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A348UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A34CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A350UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A354UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A358UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A35CUL)) + +/* UART asynchronous channel 6 registers */ +#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART synchronous channel 6 registers */ +#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C340UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C344UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C348UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C34CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C350UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C354UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C358UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C35CUL)) + +/* UART LIN channel 6 registers */ +#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C340UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C344UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C348UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C34CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C350UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C354UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C358UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C35CUL)) + +/* I2C channel 6 registers */ +#define bFM3_MFS6_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) +#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) +#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) +#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) +#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) +#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) +#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) +#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) +#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) +#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) +#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) +#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) +#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) +#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) +#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) +#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) +#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) +#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C340UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C344UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C348UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C34CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C350UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C354UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C358UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C35CUL)) + +/* UART asynchronous channel 7 registers */ +#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART synchronous channel 7 registers */ +#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E340UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E344UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E348UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E34CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E350UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E354UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E358UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E35CUL)) + +/* UART LIN channel 7 registers */ +#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E340UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E344UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E348UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E34CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E350UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E354UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E358UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E35CUL)) + +/* I2C channel 7 registers */ +#define bFM3_MFS7_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) +#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) +#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) +#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) +#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) +#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) +#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) +#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) +#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) +#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) +#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) +#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) +#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) +#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) +#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) +#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) +#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) +#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E340UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E344UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E348UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E34CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E350UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E354UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E358UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E35CUL)) + +/* CRC registers */ +#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) +#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) +#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) +#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) +#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) +#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) +#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) + +/* Watch counter registers */ +#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) +#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) +#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) +#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) +#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) +#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) +#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) +#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) +#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) +#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) +#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) +#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) +#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) +#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) +#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) +#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) +#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) +#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) +#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) +#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) +#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) +#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) + +/* External bus interface registers */ +#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) +#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) +#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) +#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) +#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0010UL)) +#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) +#define bFM3_EXBUS_MODE0_TEST *((volatile unsigned int*)(0x427E0018UL)) +#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) +#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) +#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) +#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) +#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) +#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) +#define bFM3_EXBUS_MODE1_TEST *((volatile unsigned int*)(0x427E0098UL)) +#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) +#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) +#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) +#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) +#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) +#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) +#define bFM3_EXBUS_MODE2_TEST *((volatile unsigned int*)(0x427E0118UL)) +#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) +#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) +#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) +#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) +#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) +#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) +#define bFM3_EXBUS_MODE3_TEST *((volatile unsigned int*)(0x427E0198UL)) +#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) +#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) +#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) +#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) +#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) +#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) +#define bFM3_EXBUS_MODE4_TEST *((volatile unsigned int*)(0x427E0218UL)) +#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) +#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) +#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) +#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) +#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) +#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) +#define bFM3_EXBUS_MODE5_TEST *((volatile unsigned int*)(0x427E0298UL)) +#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) +#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) +#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) +#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) +#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) +#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) +#define bFM3_EXBUS_MODE6_TEST *((volatile unsigned int*)(0x427E0318UL)) +#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) +#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) +#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) +#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) +#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) +#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) +#define bFM3_EXBUS_MODE7_TEST *((volatile unsigned int*)(0x427E0398UL)) +#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) +#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) +#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) +#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) +#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) +#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) +#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) +#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) +#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) +#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) +#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) +#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) +#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) +#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) +#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) +#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) +#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) +#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) +#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) +#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) +#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) +#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) +#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) +#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) +#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) +#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) +#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) +#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) +#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) +#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) +#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) +#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) +#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) +#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) +#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) +#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) +#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) +#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) +#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) +#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) +#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) +#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) +#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) +#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) +#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) +#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) +#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) +#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) +#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) +#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) +#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) +#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) +#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) +#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) +#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) +#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) +#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) +#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) +#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) +#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) +#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) +#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) +#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) +#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) +#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) +#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) +#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) +#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) +#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) +#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) +#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) +#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) +#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) +#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) +#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) +#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) +#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) +#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) +#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) +#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) +#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) +#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) +#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) +#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) +#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) +#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) +#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) +#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) +#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) +#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) +#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) +#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) +#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) +#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) +#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) +#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) +#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) +#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) +#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) +#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) +#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) +#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) +#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) +#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) +#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) +#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) +#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) +#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) +#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) +#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) +#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) +#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) +#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) +#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) +#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) +#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) +#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) +#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) +#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) +#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) +#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) +#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) +#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) +#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) +#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) +#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) +#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) +#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) +#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) +#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) +#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) +#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) +#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) +#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) +#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) +#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) +#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) +#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) +#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) +#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) +#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) +#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) +#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) +#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) +#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) +#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) +#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) +#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) +#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) +#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) +#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) +#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) +#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) +#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) +#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) +#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) +#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) +#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) +#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) +#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) +#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) +#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) +#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) +#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) +#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) +#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) +#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) +#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) +#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) +#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) +#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) +#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) +#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) +#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) +#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) +#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) +#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) +#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) +#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) +#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) +#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) +#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) +#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) +#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) +#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) +#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) +#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) +#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) +#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) +#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) +#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) +#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) +#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) +#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) +#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) +#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) +#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) +#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) +#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) +#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) +#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) +#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) +#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) +#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) +#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) +#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) +#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) +#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) +#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) +#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) +#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) +#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) +#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) +#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) +#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) +#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) +#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) +#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) +#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) +#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) +#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) +#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) +#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) +#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) +#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) +#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) +#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) +#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) +#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) +#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) +#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) +#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) +#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) +#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) +#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) +#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) +#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) +#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) +#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) +#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) +#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) +#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) +#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) +#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) +#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) +#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) +#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) +#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) +#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) +#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) +#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) +#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) +#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) +#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) +#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) +#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) +#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) +#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) +#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) +#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) +#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) +#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) +#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) +#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) +#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) +#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) +#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) +#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) +#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) +#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) +#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) +#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) +#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) +#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) +#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) +#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) +#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) +#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) +#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) +#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) +#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) +#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) +#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) +#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) +#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) +#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) +#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) +#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) +#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) +#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) +#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) +#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) +#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) +#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) +#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) +#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) +#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) +#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) +#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) +#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) +#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) +#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) +#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) +#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) +#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) +#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) +#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) +#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) +#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) +#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) +#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) +#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) +#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) +#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) +#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) +#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) +#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) +#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) +#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) +#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) +#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) +#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) +#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) +#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) +#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) +#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) +#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) +#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) +#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) +#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) +#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) +#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) +#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) +#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) +#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) +#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) +#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) +#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) +#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) +#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) +#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) +#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) +#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) +#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) +#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) +#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) +#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) +#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) +#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) +#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) +#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) +#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) +#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) +#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) +#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) +#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) +#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) +#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) +#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) +#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) +#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) +#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) +#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) +#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) +#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) +#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) +#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) +#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) +#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) +#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) +#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) +#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) +#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) +#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) +#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) +#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) + +/* USB channel 0 registers */ +#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) +#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) +#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) +#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) +#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) +#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) +#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) +#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) +#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) +#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) +#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) +#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) +#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) +#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) +#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) +#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) +#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) +#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) +#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) +#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) +#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) +#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) +#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) +#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) +#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) +#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) +#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) +#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) +#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) +#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) +#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) +#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) +#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) +#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) +#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) +#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) +#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) +#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) +#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) +#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) +#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) +#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) +#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) +#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) +#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) +#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) +#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) +#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) +#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) +#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) +#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) +#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) +#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) +#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) +#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) +#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) +#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) +#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) +#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) +#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) +#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) +#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) +#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) +#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) +#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) +#define bFM3_USB0_EP1C_PSK18 *((volatile unsigned int*)(0x42842520UL)) +#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) +#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) +#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) +#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) +#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) +#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) +#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) +#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) +#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) +#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) +#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) +#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) +#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) +#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) +#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) +#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) +#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) +#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) +#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) +#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) +#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) +#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) +#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) +#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) +#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) +#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) +#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) +#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) +#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) +#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) +#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) +#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) +#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) +#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) +#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) +#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) +#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) +#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) +#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) +#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) +#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) +#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) +#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) +#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) +#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) +#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) +#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) +#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) +#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) +#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) +#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) +#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) +#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) +#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) +#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) +#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) +#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) +#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) +#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) +#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) +#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) +#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) +#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) +#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) +#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) +#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) +#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) +#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) +#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) +#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) +#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) +#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) +#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) +#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) +#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) +#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) +#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) +#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) +#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) +#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) +#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) +#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) +#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) +#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) +#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) +#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) +#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) +#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) +#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) +#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) +#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) +#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) +#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) +#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) +#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) +#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) +#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) +#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) +#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) +#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) +#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) +#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) +#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) +#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) +#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) +#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) +#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) +#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) +#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) +#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) +#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) +#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) +#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) +#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) +#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) +#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) +#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) +#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) +#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) +#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) +#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) +#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) +#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) +#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) +#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) +#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) +#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) +#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) +#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) +#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) +#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) +#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) +#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) +#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) +#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) +#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) +#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) +#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) +#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) +#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) +#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) +#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) +#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) +#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) +#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) +#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) +#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) +#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) +#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) +#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) +#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) +#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) +#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) +#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) +#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) +#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) +#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) +#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) +#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) +#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) +#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) +#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) +#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) +#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) +#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) +#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) +#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) + +/* DMA controller */ +#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) +#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) +#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) +#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) +#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) +#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) +#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) +#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) +#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) +#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) +#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) +#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) +#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) +#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) +#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) +#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) +#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) +#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) +#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) +#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) +#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) +#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) +#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) +#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) +#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) +#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) +#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) +#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) +#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) +#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) +#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) +#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) +#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) +#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) +#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) +#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) +#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) +#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) +#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) +#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) +#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) +#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) +#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) +#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) +#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) +#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) +#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) +#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) +#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) +#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) +#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) +#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) +#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) +#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) +#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) +#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) +#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) +#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) +#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) +#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) +#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) +#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) +#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) +#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) +#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) +#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) +#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) +#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) +#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) +#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) +#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) +#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) +#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) +#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) +#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) +#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) +#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) +#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) +#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) +#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) +#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) +#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) +#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) +#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) +#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) +#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) +#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) +#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) +#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) +#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) +#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) +#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) +#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) +#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) +#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) +#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) +#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) +#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) +#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) +#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) +#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) +#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) +#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) +#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) +#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) +#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) +#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) +#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) +#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) +#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) +#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) +#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) +#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) +#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) +#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) +#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) +#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) +#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) +#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) +#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) +#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) +#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) +#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) +#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) +#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) +#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) +#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) +#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) +#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) +#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) +#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) +#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) +#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) +#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) +#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) +#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) +#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) +#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) +#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) +#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) +#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) +#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) +#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) +#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) +#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) +#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) +#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) +#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) +#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) +#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) +#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) +#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) +#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) +#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) +#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) +#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) +#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) +#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) +#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) +#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) +#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) +#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) +#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) +#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) +#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) +#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) +#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) +#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) +#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) +#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) +#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) +#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) +#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) +#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) +#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) +#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) +#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) +#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) +#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) +#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) +#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) +#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) +#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) +#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) +#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) +#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) +#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) +#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) +#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) +#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) +#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) +#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) +#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) +#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) +#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) +#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) +#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) +#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) +#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) +#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) +#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) +#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) +#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) +#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) +#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) +#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) +#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) +#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) +#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) +#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) +#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) +#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) +#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) +#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) +#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) +#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) +#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) +#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) +#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) +#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) +#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) +#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) +#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) +#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) +#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) +#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) +#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) +#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) +#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) +#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) +#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) +#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) +#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) +#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) +#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) +#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) +#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) +#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) +#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) +#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) +#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) +#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) +#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) +#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) +#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) +#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) +#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) +#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) +#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) +#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) +#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) +#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) +#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) +#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) +#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) +#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) +#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) +#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) +#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) +#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) +#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) +#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) +#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) +#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) +#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) +#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) +#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) +#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) +#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) +#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) +#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) +#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) +#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) +#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) +#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) +#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) +#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) +#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) +#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) +#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) +#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) +#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) +#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) +#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) +#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) +#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) +#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) +#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) +#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) +#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) +#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) +#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) +#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) +#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) +#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) +#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) +#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) +#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) +#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) +#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) +#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) +#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) +#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) +#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) +#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) +#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) +#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) +#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) +#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) +#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) +#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) +#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) +#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) +#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) +#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) +#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) +#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) +#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) +#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) +#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) +#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) +#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) +#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) +#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) +#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) +#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) +#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) +#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) +#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) +#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) +#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) +#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) +#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) +#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) +#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) +#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) +#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) +#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) +#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) +#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) +#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) +#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) +#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) +#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) +#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) +#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) +#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) +#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) +#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) +#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) +#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) +#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) +#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) +#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) +#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) +#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) +#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) +#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) +#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) + +/* CAN channel 0 registers */ +#define bFM3_CAN0_CTRLR_INIT *((volatile unsigned int*)(0x42C40000UL)) +#define bFM3_CAN0_CTRLR_IE *((volatile unsigned int*)(0x42C40004UL)) +#define bFM3_CAN0_CTRLR_SIE *((volatile unsigned int*)(0x42C40008UL)) +#define bFM3_CAN0_CTRLR_EIE *((volatile unsigned int*)(0x42C4000CUL)) +#define bFM3_CAN0_CTRLR_DAR *((volatile unsigned int*)(0x42C40014UL)) +#define bFM3_CAN0_CTRLR_CCE *((volatile unsigned int*)(0x42C40018UL)) +#define bFM3_CAN0_CTRLR_TEST *((volatile unsigned int*)(0x42C4001CUL)) +#define bFM3_CAN0_STATR_LEC0 *((volatile unsigned int*)(0x42C40040UL)) +#define bFM3_CAN0_STATR_LEC1 *((volatile unsigned int*)(0x42C40044UL)) +#define bFM3_CAN0_STATR_LEC2 *((volatile unsigned int*)(0x42C40048UL)) +#define bFM3_CAN0_STATR_TXOK *((volatile unsigned int*)(0x42C4004CUL)) +#define bFM3_CAN0_STATR_RXOK *((volatile unsigned int*)(0x42C40050UL)) +#define bFM3_CAN0_STATR_EPASS *((volatile unsigned int*)(0x42C40054UL)) +#define bFM3_CAN0_STATR_EWARM *((volatile unsigned int*)(0x42C40058UL)) +#define bFM3_CAN0_STATR_BOFF *((volatile unsigned int*)(0x42C4005CUL)) +#define bFM3_CAN0_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C40080UL)) +#define bFM3_CAN0_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C40084UL)) +#define bFM3_CAN0_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C40088UL)) +#define bFM3_CAN0_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C4008CUL)) +#define bFM3_CAN0_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C40090UL)) +#define bFM3_CAN0_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C40094UL)) +#define bFM3_CAN0_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C40098UL)) +#define bFM3_CAN0_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C4009CUL)) +#define bFM3_CAN0_ERRCNT_REC0 *((volatile unsigned int*)(0x42C400A0UL)) +#define bFM3_CAN0_ERRCNT_REC1 *((volatile unsigned int*)(0x42C400A4UL)) +#define bFM3_CAN0_ERRCNT_REC2 *((volatile unsigned int*)(0x42C400A8UL)) +#define bFM3_CAN0_ERRCNT_REC3 *((volatile unsigned int*)(0x42C400ACUL)) +#define bFM3_CAN0_ERRCNT_REC4 *((volatile unsigned int*)(0x42C400B0UL)) +#define bFM3_CAN0_ERRCNT_REC5 *((volatile unsigned int*)(0x42C400B4UL)) +#define bFM3_CAN0_ERRCNT_REC6 *((volatile unsigned int*)(0x42C400B8UL)) +#define bFM3_CAN0_ERRCNT_RP *((volatile unsigned int*)(0x42C400BCUL)) +#define bFM3_CAN0_BTR_BRP0 *((volatile unsigned int*)(0x42C400C0UL)) +#define bFM3_CAN0_BTR_BRP1 *((volatile unsigned int*)(0x42C400C4UL)) +#define bFM3_CAN0_BTR_BRP2 *((volatile unsigned int*)(0x42C400C8UL)) +#define bFM3_CAN0_BTR_BRP3 *((volatile unsigned int*)(0x42C400CCUL)) +#define bFM3_CAN0_BTR_BRP4 *((volatile unsigned int*)(0x42C400D0UL)) +#define bFM3_CAN0_BTR_BRP5 *((volatile unsigned int*)(0x42C400D4UL)) +#define bFM3_CAN0_BTR_SJW0 *((volatile unsigned int*)(0x42C400D8UL)) +#define bFM3_CAN0_BTR_SJW1 *((volatile unsigned int*)(0x42C400DCUL)) +#define bFM3_CAN0_BTR_TSEG10 *((volatile unsigned int*)(0x42C400E0UL)) +#define bFM3_CAN0_BTR_TSEG11 *((volatile unsigned int*)(0x42C400E4UL)) +#define bFM3_CAN0_BTR_TSEG12 *((volatile unsigned int*)(0x42C400E8UL)) +#define bFM3_CAN0_BTR_TSEG13 *((volatile unsigned int*)(0x42C400ECUL)) +#define bFM3_CAN0_BTR_TSEG20 *((volatile unsigned int*)(0x42C400F0UL)) +#define bFM3_CAN0_BTR_TSEG21 *((volatile unsigned int*)(0x42C400F4UL)) +#define bFM3_CAN0_BTR_TSEG22 *((volatile unsigned int*)(0x42C400F8UL)) +#define bFM3_CAN0_INTR_INTID0 *((volatile unsigned int*)(0x42C40100UL)) +#define bFM3_CAN0_INTR_INTID1 *((volatile unsigned int*)(0x42C40104UL)) +#define bFM3_CAN0_INTR_INTID2 *((volatile unsigned int*)(0x42C40108UL)) +#define bFM3_CAN0_INTR_INTID3 *((volatile unsigned int*)(0x42C4010CUL)) +#define bFM3_CAN0_INTR_INTID4 *((volatile unsigned int*)(0x42C40110UL)) +#define bFM3_CAN0_INTR_INTID5 *((volatile unsigned int*)(0x42C40114UL)) +#define bFM3_CAN0_INTR_INTID6 *((volatile unsigned int*)(0x42C40118UL)) +#define bFM3_CAN0_INTR_INTID7 *((volatile unsigned int*)(0x42C4011CUL)) +#define bFM3_CAN0_INTR_INTID8 *((volatile unsigned int*)(0x42C40120UL)) +#define bFM3_CAN0_INTR_INTID9 *((volatile unsigned int*)(0x42C40124UL)) +#define bFM3_CAN0_INTR_INTID10 *((volatile unsigned int*)(0x42C40128UL)) +#define bFM3_CAN0_INTR_INTID11 *((volatile unsigned int*)(0x42C4012CUL)) +#define bFM3_CAN0_INTR_INTID12 *((volatile unsigned int*)(0x42C40130UL)) +#define bFM3_CAN0_INTR_INTID13 *((volatile unsigned int*)(0x42C40134UL)) +#define bFM3_CAN0_INTR_INTID14 *((volatile unsigned int*)(0x42C40138UL)) +#define bFM3_CAN0_INTR_INTID15 *((volatile unsigned int*)(0x42C4013CUL)) +#define bFM3_CAN0_TESTR_BASIC *((volatile unsigned int*)(0x42C40148UL)) +#define bFM3_CAN0_TESTR_SILENT *((volatile unsigned int*)(0x42C4014CUL)) +#define bFM3_CAN0_TESTR_LBACK *((volatile unsigned int*)(0x42C40150UL)) +#define bFM3_CAN0_TESTR_TX0 *((volatile unsigned int*)(0x42C40154UL)) +#define bFM3_CAN0_TESTR_TX1 *((volatile unsigned int*)(0x42C40158UL)) +#define bFM3_CAN0_TESTR_RX *((volatile unsigned int*)(0x42C4015CUL)) +#define bFM3_CAN0_BRPER_BRPE0 *((volatile unsigned int*)(0x42C40180UL)) +#define bFM3_CAN0_BRPER_BRPE1 *((volatile unsigned int*)(0x42C40184UL)) +#define bFM3_CAN0_BRPER_BRPE2 *((volatile unsigned int*)(0x42C40188UL)) +#define bFM3_CAN0_BRPER_BRPE3 *((volatile unsigned int*)(0x42C4018CUL)) +#define bFM3_CAN0_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C4023CUL)) +#define bFM3_CAN0_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C40240UL)) +#define bFM3_CAN0_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C40244UL)) +#define bFM3_CAN0_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C40248UL)) +#define bFM3_CAN0_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C40248UL)) +#define bFM3_CAN0_IF1CMSK_CIP *((volatile unsigned int*)(0x42C4024CUL)) +#define bFM3_CAN0_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C40250UL)) +#define bFM3_CAN0_IF1CMSK_ARB *((volatile unsigned int*)(0x42C40254UL)) +#define bFM3_CAN0_IF1CMSK_MASK *((volatile unsigned int*)(0x42C40258UL)) +#define bFM3_CAN0_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C4025CUL)) +#define bFM3_CAN0_IF1MSK_MDIR *((volatile unsigned int*)(0x42C402F8UL)) +#define bFM3_CAN0_IF1MSK_MXTD *((volatile unsigned int*)(0x42C402FCUL)) +#define bFM3_CAN0_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C402F8UL)) +#define bFM3_CAN0_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C402FCUL)) +#define bFM3_CAN0_IF1ARB_DIR *((volatile unsigned int*)(0x42C40374UL)) +#define bFM3_CAN0_IF1ARB_XTD *((volatile unsigned int*)(0x42C40378UL)) +#define bFM3_CAN0_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) +#define bFM3_CAN0_IF1ARB2_DIR *((volatile unsigned int*)(0x42C40374UL)) +#define bFM3_CAN0_IF1ARB2_XTD *((volatile unsigned int*)(0x42C40378UL)) +#define bFM3_CAN0_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) +#define bFM3_CAN0_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C40380UL)) +#define bFM3_CAN0_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C40384UL)) +#define bFM3_CAN0_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C40388UL)) +#define bFM3_CAN0_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C4038CUL)) +#define bFM3_CAN0_IF1MCTR_EOB *((volatile unsigned int*)(0x42C4039CUL)) +#define bFM3_CAN0_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C403A0UL)) +#define bFM3_CAN0_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C403A4UL)) +#define bFM3_CAN0_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C403A8UL)) +#define bFM3_CAN0_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C403ACUL)) +#define bFM3_CAN0_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C403B0UL)) +#define bFM3_CAN0_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C403B4UL)) +#define bFM3_CAN0_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C403B8UL)) +#define bFM3_CAN0_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C403BCUL)) +#define bFM3_CAN0_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C4083CUL)) +#define bFM3_CAN0_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C40840UL)) +#define bFM3_CAN0_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C40844UL)) +#define bFM3_CAN0_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C40848UL)) +#define bFM3_CAN0_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C40848UL)) +#define bFM3_CAN0_IF2CMSK_CIP *((volatile unsigned int*)(0x42C4084CUL)) +#define bFM3_CAN0_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C40850UL)) +#define bFM3_CAN0_IF2CMSK_ARB *((volatile unsigned int*)(0x42C40854UL)) +#define bFM3_CAN0_IF2CMSK_MASK *((volatile unsigned int*)(0x42C40858UL)) +#define bFM3_CAN0_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C4085CUL)) +#define bFM3_CAN0_IF2MSK_MDIR *((volatile unsigned int*)(0x42C408F8UL)) +#define bFM3_CAN0_IF2MSK_MXTD *((volatile unsigned int*)(0x42C408FCUL)) +#define bFM3_CAN0_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C408F8UL)) +#define bFM3_CAN0_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C408FCUL)) +#define bFM3_CAN0_IF2ARB_DIR *((volatile unsigned int*)(0x42C40974UL)) +#define bFM3_CAN0_IF2ARB_XTD *((volatile unsigned int*)(0x42C40978UL)) +#define bFM3_CAN0_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) +#define bFM3_CAN0_IF2ARB2_DIR *((volatile unsigned int*)(0x42C40974UL)) +#define bFM3_CAN0_IF2ARB2_XTD *((volatile unsigned int*)(0x42C40978UL)) +#define bFM3_CAN0_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) +#define bFM3_CAN0_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C40980UL)) +#define bFM3_CAN0_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C40984UL)) +#define bFM3_CAN0_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C40988UL)) +#define bFM3_CAN0_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C4098CUL)) +#define bFM3_CAN0_IF2MCTR_EOB *((volatile unsigned int*)(0x42C4099CUL)) +#define bFM3_CAN0_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C409A0UL)) +#define bFM3_CAN0_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C409A4UL)) +#define bFM3_CAN0_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C409A8UL)) +#define bFM3_CAN0_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C409ACUL)) +#define bFM3_CAN0_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C409B0UL)) +#define bFM3_CAN0_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C409B4UL)) +#define bFM3_CAN0_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C409B8UL)) +#define bFM3_CAN0_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C409BCUL)) +#define bFM3_CAN0_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) +#define bFM3_CAN0_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) +#define bFM3_CAN0_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) +#define bFM3_CAN0_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) +#define bFM3_CAN0_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) +#define bFM3_CAN0_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) +#define bFM3_CAN0_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) +#define bFM3_CAN0_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) +#define bFM3_CAN0_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) +#define bFM3_CAN0_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) +#define bFM3_CAN0_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) +#define bFM3_CAN0_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) +#define bFM3_CAN0_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) +#define bFM3_CAN0_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) +#define bFM3_CAN0_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) +#define bFM3_CAN0_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) +#define bFM3_CAN0_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) +#define bFM3_CAN0_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) +#define bFM3_CAN0_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) +#define bFM3_CAN0_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) +#define bFM3_CAN0_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) +#define bFM3_CAN0_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) +#define bFM3_CAN0_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) +#define bFM3_CAN0_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) +#define bFM3_CAN0_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) +#define bFM3_CAN0_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) +#define bFM3_CAN0_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) +#define bFM3_CAN0_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) +#define bFM3_CAN0_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) +#define bFM3_CAN0_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) +#define bFM3_CAN0_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) +#define bFM3_CAN0_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) +#define bFM3_CAN0_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) +#define bFM3_CAN0_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) +#define bFM3_CAN0_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) +#define bFM3_CAN0_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) +#define bFM3_CAN0_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) +#define bFM3_CAN0_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) +#define bFM3_CAN0_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) +#define bFM3_CAN0_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) +#define bFM3_CAN0_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) +#define bFM3_CAN0_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) +#define bFM3_CAN0_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) +#define bFM3_CAN0_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) +#define bFM3_CAN0_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) +#define bFM3_CAN0_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) +#define bFM3_CAN0_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) +#define bFM3_CAN0_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) +#define bFM3_CAN0_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) +#define bFM3_CAN0_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) +#define bFM3_CAN0_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) +#define bFM3_CAN0_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) +#define bFM3_CAN0_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) +#define bFM3_CAN0_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) +#define bFM3_CAN0_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) +#define bFM3_CAN0_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) +#define bFM3_CAN0_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) +#define bFM3_CAN0_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) +#define bFM3_CAN0_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) +#define bFM3_CAN0_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) +#define bFM3_CAN0_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) +#define bFM3_CAN0_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) +#define bFM3_CAN0_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) +#define bFM3_CAN0_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) +#define bFM3_CAN0_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) +#define bFM3_CAN0_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) +#define bFM3_CAN0_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) +#define bFM3_CAN0_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) +#define bFM3_CAN0_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) +#define bFM3_CAN0_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) +#define bFM3_CAN0_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) +#define bFM3_CAN0_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) +#define bFM3_CAN0_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) +#define bFM3_CAN0_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) +#define bFM3_CAN0_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) +#define bFM3_CAN0_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) +#define bFM3_CAN0_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) +#define bFM3_CAN0_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) +#define bFM3_CAN0_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) +#define bFM3_CAN0_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) +#define bFM3_CAN0_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) +#define bFM3_CAN0_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) +#define bFM3_CAN0_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) +#define bFM3_CAN0_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) +#define bFM3_CAN0_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) +#define bFM3_CAN0_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) +#define bFM3_CAN0_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) +#define bFM3_CAN0_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) +#define bFM3_CAN0_INTPND_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) +#define bFM3_CAN0_INTPND_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) +#define bFM3_CAN0_INTPND_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) +#define bFM3_CAN0_INTPND_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) +#define bFM3_CAN0_INTPND_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) +#define bFM3_CAN0_INTPND_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) +#define bFM3_CAN0_INTPND_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) +#define bFM3_CAN0_INTPND_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) +#define bFM3_CAN0_INTPND_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) +#define bFM3_CAN0_INTPND_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) +#define bFM3_CAN0_INTPND_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) +#define bFM3_CAN0_INTPND_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) +#define bFM3_CAN0_INTPND_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) +#define bFM3_CAN0_INTPND_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) +#define bFM3_CAN0_INTPND_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) +#define bFM3_CAN0_INTPND_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) +#define bFM3_CAN0_INTPND_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) +#define bFM3_CAN0_INTPND_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) +#define bFM3_CAN0_INTPND_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) +#define bFM3_CAN0_INTPND_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) +#define bFM3_CAN0_INTPND_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) +#define bFM3_CAN0_INTPND_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) +#define bFM3_CAN0_INTPND_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) +#define bFM3_CAN0_INTPND_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) +#define bFM3_CAN0_INTPND_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) +#define bFM3_CAN0_INTPND_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) +#define bFM3_CAN0_INTPND_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) +#define bFM3_CAN0_INTPND_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) +#define bFM3_CAN0_INTPND_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) +#define bFM3_CAN0_INTPND_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) +#define bFM3_CAN0_INTPND_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) +#define bFM3_CAN0_INTPND_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) +#define bFM3_CAN0_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) +#define bFM3_CAN0_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) +#define bFM3_CAN0_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) +#define bFM3_CAN0_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) +#define bFM3_CAN0_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) +#define bFM3_CAN0_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) +#define bFM3_CAN0_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) +#define bFM3_CAN0_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) +#define bFM3_CAN0_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) +#define bFM3_CAN0_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) +#define bFM3_CAN0_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) +#define bFM3_CAN0_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) +#define bFM3_CAN0_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) +#define bFM3_CAN0_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) +#define bFM3_CAN0_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) +#define bFM3_CAN0_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) +#define bFM3_CAN0_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) +#define bFM3_CAN0_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) +#define bFM3_CAN0_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) +#define bFM3_CAN0_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) +#define bFM3_CAN0_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) +#define bFM3_CAN0_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) +#define bFM3_CAN0_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) +#define bFM3_CAN0_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) +#define bFM3_CAN0_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) +#define bFM3_CAN0_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) +#define bFM3_CAN0_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) +#define bFM3_CAN0_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) +#define bFM3_CAN0_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) +#define bFM3_CAN0_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) +#define bFM3_CAN0_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) +#define bFM3_CAN0_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) + +/* CAN channel 1 registers */ +#define bFM3_CAN1_CTRLR_INIT *((volatile unsigned int*)(0x42C60000UL)) +#define bFM3_CAN1_CTRLR_IE *((volatile unsigned int*)(0x42C60004UL)) +#define bFM3_CAN1_CTRLR_SIE *((volatile unsigned int*)(0x42C60008UL)) +#define bFM3_CAN1_CTRLR_EIE *((volatile unsigned int*)(0x42C6000CUL)) +#define bFM3_CAN1_CTRLR_DAR *((volatile unsigned int*)(0x42C60014UL)) +#define bFM3_CAN1_CTRLR_CCE *((volatile unsigned int*)(0x42C60018UL)) +#define bFM3_CAN1_CTRLR_TEST *((volatile unsigned int*)(0x42C6001CUL)) +#define bFM3_CAN1_STATR_LEC0 *((volatile unsigned int*)(0x42C60040UL)) +#define bFM3_CAN1_STATR_LEC1 *((volatile unsigned int*)(0x42C60044UL)) +#define bFM3_CAN1_STATR_LEC2 *((volatile unsigned int*)(0x42C60048UL)) +#define bFM3_CAN1_STATR_TXOK *((volatile unsigned int*)(0x42C6004CUL)) +#define bFM3_CAN1_STATR_RXOK *((volatile unsigned int*)(0x42C60050UL)) +#define bFM3_CAN1_STATR_EPASS *((volatile unsigned int*)(0x42C60054UL)) +#define bFM3_CAN1_STATR_EWARM *((volatile unsigned int*)(0x42C60058UL)) +#define bFM3_CAN1_STATR_BOFF *((volatile unsigned int*)(0x42C6005CUL)) +#define bFM3_CAN1_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C60080UL)) +#define bFM3_CAN1_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C60084UL)) +#define bFM3_CAN1_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C60088UL)) +#define bFM3_CAN1_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C6008CUL)) +#define bFM3_CAN1_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C60090UL)) +#define bFM3_CAN1_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C60094UL)) +#define bFM3_CAN1_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C60098UL)) +#define bFM3_CAN1_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C6009CUL)) +#define bFM3_CAN1_ERRCNT_REC0 *((volatile unsigned int*)(0x42C600A0UL)) +#define bFM3_CAN1_ERRCNT_REC1 *((volatile unsigned int*)(0x42C600A4UL)) +#define bFM3_CAN1_ERRCNT_REC2 *((volatile unsigned int*)(0x42C600A8UL)) +#define bFM3_CAN1_ERRCNT_REC3 *((volatile unsigned int*)(0x42C600ACUL)) +#define bFM3_CAN1_ERRCNT_REC4 *((volatile unsigned int*)(0x42C600B0UL)) +#define bFM3_CAN1_ERRCNT_REC5 *((volatile unsigned int*)(0x42C600B4UL)) +#define bFM3_CAN1_ERRCNT_REC6 *((volatile unsigned int*)(0x42C600B8UL)) +#define bFM3_CAN1_ERRCNT_RP *((volatile unsigned int*)(0x42C600BCUL)) +#define bFM3_CAN1_BTR_BRP0 *((volatile unsigned int*)(0x42C600C0UL)) +#define bFM3_CAN1_BTR_BRP1 *((volatile unsigned int*)(0x42C600C4UL)) +#define bFM3_CAN1_BTR_BRP2 *((volatile unsigned int*)(0x42C600C8UL)) +#define bFM3_CAN1_BTR_BRP3 *((volatile unsigned int*)(0x42C600CCUL)) +#define bFM3_CAN1_BTR_BRP4 *((volatile unsigned int*)(0x42C600D0UL)) +#define bFM3_CAN1_BTR_BRP5 *((volatile unsigned int*)(0x42C600D4UL)) +#define bFM3_CAN1_BTR_SJW0 *((volatile unsigned int*)(0x42C600D8UL)) +#define bFM3_CAN1_BTR_SJW1 *((volatile unsigned int*)(0x42C600DCUL)) +#define bFM3_CAN1_BTR_TSEG10 *((volatile unsigned int*)(0x42C600E0UL)) +#define bFM3_CAN1_BTR_TSEG11 *((volatile unsigned int*)(0x42C600E4UL)) +#define bFM3_CAN1_BTR_TSEG12 *((volatile unsigned int*)(0x42C600E8UL)) +#define bFM3_CAN1_BTR_TSEG13 *((volatile unsigned int*)(0x42C600ECUL)) +#define bFM3_CAN1_BTR_TSEG20 *((volatile unsigned int*)(0x42C600F0UL)) +#define bFM3_CAN1_BTR_TSEG21 *((volatile unsigned int*)(0x42C600F4UL)) +#define bFM3_CAN1_BTR_TSEG22 *((volatile unsigned int*)(0x42C600F8UL)) +#define bFM3_CAN1_INTR_INTID0 *((volatile unsigned int*)(0x42C60100UL)) +#define bFM3_CAN1_INTR_INTID1 *((volatile unsigned int*)(0x42C60104UL)) +#define bFM3_CAN1_INTR_INTID2 *((volatile unsigned int*)(0x42C60108UL)) +#define bFM3_CAN1_INTR_INTID3 *((volatile unsigned int*)(0x42C6010CUL)) +#define bFM3_CAN1_INTR_INTID4 *((volatile unsigned int*)(0x42C60110UL)) +#define bFM3_CAN1_INTR_INTID5 *((volatile unsigned int*)(0x42C60114UL)) +#define bFM3_CAN1_INTR_INTID6 *((volatile unsigned int*)(0x42C60118UL)) +#define bFM3_CAN1_INTR_INTID7 *((volatile unsigned int*)(0x42C6011CUL)) +#define bFM3_CAN1_INTR_INTID8 *((volatile unsigned int*)(0x42C60120UL)) +#define bFM3_CAN1_INTR_INTID9 *((volatile unsigned int*)(0x42C60124UL)) +#define bFM3_CAN1_INTR_INTID10 *((volatile unsigned int*)(0x42C60128UL)) +#define bFM3_CAN1_INTR_INTID11 *((volatile unsigned int*)(0x42C6012CUL)) +#define bFM3_CAN1_INTR_INTID12 *((volatile unsigned int*)(0x42C60130UL)) +#define bFM3_CAN1_INTR_INTID13 *((volatile unsigned int*)(0x42C60134UL)) +#define bFM3_CAN1_INTR_INTID14 *((volatile unsigned int*)(0x42C60138UL)) +#define bFM3_CAN1_INTR_INTID15 *((volatile unsigned int*)(0x42C6013CUL)) +#define bFM3_CAN1_TESTR_BASIC *((volatile unsigned int*)(0x42C60148UL)) +#define bFM3_CAN1_TESTR_SILENT *((volatile unsigned int*)(0x42C6014CUL)) +#define bFM3_CAN1_TESTR_LBACK *((volatile unsigned int*)(0x42C60150UL)) +#define bFM3_CAN1_TESTR_TX0 *((volatile unsigned int*)(0x42C60154UL)) +#define bFM3_CAN1_TESTR_TX1 *((volatile unsigned int*)(0x42C60158UL)) +#define bFM3_CAN1_TESTR_RX *((volatile unsigned int*)(0x42C6015CUL)) +#define bFM3_CAN1_BRPER_BRPE0 *((volatile unsigned int*)(0x42C60180UL)) +#define bFM3_CAN1_BRPER_BRPE1 *((volatile unsigned int*)(0x42C60184UL)) +#define bFM3_CAN1_BRPER_BRPE2 *((volatile unsigned int*)(0x42C60188UL)) +#define bFM3_CAN1_BRPER_BRPE3 *((volatile unsigned int*)(0x42C6018CUL)) +#define bFM3_CAN1_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C6023CUL)) +#define bFM3_CAN1_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C60240UL)) +#define bFM3_CAN1_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C60244UL)) +#define bFM3_CAN1_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C60248UL)) +#define bFM3_CAN1_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C60248UL)) +#define bFM3_CAN1_IF1CMSK_CIP *((volatile unsigned int*)(0x42C6024CUL)) +#define bFM3_CAN1_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C60250UL)) +#define bFM3_CAN1_IF1CMSK_ARB *((volatile unsigned int*)(0x42C60254UL)) +#define bFM3_CAN1_IF1CMSK_MASK *((volatile unsigned int*)(0x42C60258UL)) +#define bFM3_CAN1_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C6025CUL)) +#define bFM3_CAN1_IF1MSK_MDIR *((volatile unsigned int*)(0x42C602F8UL)) +#define bFM3_CAN1_IF1MSK_MXTD *((volatile unsigned int*)(0x42C602FCUL)) +#define bFM3_CAN1_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C602F8UL)) +#define bFM3_CAN1_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C602FCUL)) +#define bFM3_CAN1_IF1ARB_DIR *((volatile unsigned int*)(0x42C60374UL)) +#define bFM3_CAN1_IF1ARB_XTD *((volatile unsigned int*)(0x42C60378UL)) +#define bFM3_CAN1_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) +#define bFM3_CAN1_IF1ARB2_DIR *((volatile unsigned int*)(0x42C60374UL)) +#define bFM3_CAN1_IF1ARB2_XTD *((volatile unsigned int*)(0x42C60378UL)) +#define bFM3_CAN1_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) +#define bFM3_CAN1_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C60380UL)) +#define bFM3_CAN1_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C60384UL)) +#define bFM3_CAN1_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C60388UL)) +#define bFM3_CAN1_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C6038CUL)) +#define bFM3_CAN1_IF1MCTR_EOB *((volatile unsigned int*)(0x42C6039CUL)) +#define bFM3_CAN1_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C603A0UL)) +#define bFM3_CAN1_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C603A4UL)) +#define bFM3_CAN1_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C603A8UL)) +#define bFM3_CAN1_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C603ACUL)) +#define bFM3_CAN1_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C603B0UL)) +#define bFM3_CAN1_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C603B4UL)) +#define bFM3_CAN1_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C603B8UL)) +#define bFM3_CAN1_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C603BCUL)) +#define bFM3_CAN1_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C6083CUL)) +#define bFM3_CAN1_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C60840UL)) +#define bFM3_CAN1_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C60844UL)) +#define bFM3_CAN1_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C60848UL)) +#define bFM3_CAN1_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C60848UL)) +#define bFM3_CAN1_IF2CMSK_CIP *((volatile unsigned int*)(0x42C6084CUL)) +#define bFM3_CAN1_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C60850UL)) +#define bFM3_CAN1_IF2CMSK_ARB *((volatile unsigned int*)(0x42C60854UL)) +#define bFM3_CAN1_IF2CMSK_MASK *((volatile unsigned int*)(0x42C60858UL)) +#define bFM3_CAN1_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C6085CUL)) +#define bFM3_CAN1_IF2MSK_MDIR *((volatile unsigned int*)(0x42C608F8UL)) +#define bFM3_CAN1_IF2MSK_MXTD *((volatile unsigned int*)(0x42C608FCUL)) +#define bFM3_CAN1_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C608F8UL)) +#define bFM3_CAN1_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C608FCUL)) +#define bFM3_CAN1_IF2ARB_DIR *((volatile unsigned int*)(0x42C60974UL)) +#define bFM3_CAN1_IF2ARB_XTD *((volatile unsigned int*)(0x42C60978UL)) +#define bFM3_CAN1_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) +#define bFM3_CAN1_IF2ARB2_DIR *((volatile unsigned int*)(0x42C60974UL)) +#define bFM3_CAN1_IF2ARB2_XTD *((volatile unsigned int*)(0x42C60978UL)) +#define bFM3_CAN1_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) +#define bFM3_CAN1_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C60980UL)) +#define bFM3_CAN1_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C60984UL)) +#define bFM3_CAN1_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C60988UL)) +#define bFM3_CAN1_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C6098CUL)) +#define bFM3_CAN1_IF2MCTR_EOB *((volatile unsigned int*)(0x42C6099CUL)) +#define bFM3_CAN1_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C609A0UL)) +#define bFM3_CAN1_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C609A4UL)) +#define bFM3_CAN1_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C609A8UL)) +#define bFM3_CAN1_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C609ACUL)) +#define bFM3_CAN1_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C609B0UL)) +#define bFM3_CAN1_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C609B4UL)) +#define bFM3_CAN1_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C609B8UL)) +#define bFM3_CAN1_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C609BCUL)) +#define bFM3_CAN1_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) +#define bFM3_CAN1_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) +#define bFM3_CAN1_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) +#define bFM3_CAN1_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) +#define bFM3_CAN1_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) +#define bFM3_CAN1_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) +#define bFM3_CAN1_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) +#define bFM3_CAN1_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) +#define bFM3_CAN1_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) +#define bFM3_CAN1_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) +#define bFM3_CAN1_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) +#define bFM3_CAN1_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) +#define bFM3_CAN1_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) +#define bFM3_CAN1_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) +#define bFM3_CAN1_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) +#define bFM3_CAN1_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) +#define bFM3_CAN1_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) +#define bFM3_CAN1_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) +#define bFM3_CAN1_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) +#define bFM3_CAN1_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) +#define bFM3_CAN1_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) +#define bFM3_CAN1_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) +#define bFM3_CAN1_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) +#define bFM3_CAN1_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) +#define bFM3_CAN1_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) +#define bFM3_CAN1_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) +#define bFM3_CAN1_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) +#define bFM3_CAN1_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) +#define bFM3_CAN1_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) +#define bFM3_CAN1_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) +#define bFM3_CAN1_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) +#define bFM3_CAN1_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) +#define bFM3_CAN1_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) +#define bFM3_CAN1_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) +#define bFM3_CAN1_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) +#define bFM3_CAN1_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) +#define bFM3_CAN1_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) +#define bFM3_CAN1_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) +#define bFM3_CAN1_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) +#define bFM3_CAN1_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) +#define bFM3_CAN1_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) +#define bFM3_CAN1_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) +#define bFM3_CAN1_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) +#define bFM3_CAN1_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) +#define bFM3_CAN1_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) +#define bFM3_CAN1_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) +#define bFM3_CAN1_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) +#define bFM3_CAN1_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) +#define bFM3_CAN1_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) +#define bFM3_CAN1_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) +#define bFM3_CAN1_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) +#define bFM3_CAN1_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) +#define bFM3_CAN1_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) +#define bFM3_CAN1_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) +#define bFM3_CAN1_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) +#define bFM3_CAN1_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) +#define bFM3_CAN1_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) +#define bFM3_CAN1_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) +#define bFM3_CAN1_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) +#define bFM3_CAN1_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) +#define bFM3_CAN1_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) +#define bFM3_CAN1_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) +#define bFM3_CAN1_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) +#define bFM3_CAN1_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) +#define bFM3_CAN1_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) +#define bFM3_CAN1_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) +#define bFM3_CAN1_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) +#define bFM3_CAN1_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) +#define bFM3_CAN1_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) +#define bFM3_CAN1_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) +#define bFM3_CAN1_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) +#define bFM3_CAN1_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) +#define bFM3_CAN1_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) +#define bFM3_CAN1_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) +#define bFM3_CAN1_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) +#define bFM3_CAN1_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) +#define bFM3_CAN1_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) +#define bFM3_CAN1_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) +#define bFM3_CAN1_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) +#define bFM3_CAN1_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) +#define bFM3_CAN1_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) +#define bFM3_CAN1_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) +#define bFM3_CAN1_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) +#define bFM3_CAN1_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) +#define bFM3_CAN1_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) +#define bFM3_CAN1_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) +#define bFM3_CAN1_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) +#define bFM3_CAN1_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) +#define bFM3_CAN1_INTPND_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) +#define bFM3_CAN1_INTPND_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) +#define bFM3_CAN1_INTPND_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) +#define bFM3_CAN1_INTPND_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) +#define bFM3_CAN1_INTPND_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) +#define bFM3_CAN1_INTPND_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) +#define bFM3_CAN1_INTPND_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) +#define bFM3_CAN1_INTPND_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) +#define bFM3_CAN1_INTPND_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) +#define bFM3_CAN1_INTPND_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) +#define bFM3_CAN1_INTPND_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) +#define bFM3_CAN1_INTPND_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) +#define bFM3_CAN1_INTPND_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) +#define bFM3_CAN1_INTPND_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) +#define bFM3_CAN1_INTPND_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) +#define bFM3_CAN1_INTPND_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) +#define bFM3_CAN1_INTPND_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) +#define bFM3_CAN1_INTPND_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) +#define bFM3_CAN1_INTPND_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) +#define bFM3_CAN1_INTPND_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) +#define bFM3_CAN1_INTPND_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) +#define bFM3_CAN1_INTPND_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) +#define bFM3_CAN1_INTPND_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) +#define bFM3_CAN1_INTPND_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) +#define bFM3_CAN1_INTPND_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) +#define bFM3_CAN1_INTPND_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) +#define bFM3_CAN1_INTPND_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) +#define bFM3_CAN1_INTPND_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) +#define bFM3_CAN1_INTPND_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) +#define bFM3_CAN1_INTPND_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) +#define bFM3_CAN1_INTPND_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) +#define bFM3_CAN1_INTPND_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) +#define bFM3_CAN1_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) +#define bFM3_CAN1_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) +#define bFM3_CAN1_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) +#define bFM3_CAN1_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) +#define bFM3_CAN1_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) +#define bFM3_CAN1_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) +#define bFM3_CAN1_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) +#define bFM3_CAN1_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) +#define bFM3_CAN1_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) +#define bFM3_CAN1_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) +#define bFM3_CAN1_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) +#define bFM3_CAN1_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) +#define bFM3_CAN1_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) +#define bFM3_CAN1_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) +#define bFM3_CAN1_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) +#define bFM3_CAN1_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) +#define bFM3_CAN1_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) +#define bFM3_CAN1_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) +#define bFM3_CAN1_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) +#define bFM3_CAN1_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) +#define bFM3_CAN1_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) +#define bFM3_CAN1_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) +#define bFM3_CAN1_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) +#define bFM3_CAN1_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) +#define bFM3_CAN1_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) +#define bFM3_CAN1_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) +#define bFM3_CAN1_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) +#define bFM3_CAN1_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) +#define bFM3_CAN1_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) +#define bFM3_CAN1_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) +#define bFM3_CAN1_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) +#define bFM3_CAN1_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) + +#ifdef __cplusplus +} +#endif + +#endif /* _MB9BF506R_H_ */ + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_gcc.S b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_gcc.S new file mode 100644 index 0000000000..8789adb8f6 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_gcc.S @@ -0,0 +1,350 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-07-01 lgnq first version + */ + + .syntax unified + .cpu cortex-m3 + .fpu softvfp + .thumb + +.global g_pfnVectors +.global Default_Handler + +/* start address for the initialization values of the .data section. +defined in linker script */ +.word _sidata +/* start address for the .data section. defined in linker script */ +.word _sdata +/* end address for the .data section. defined in linker script */ +.word _edata +/* start address for the .bss section. defined in linker script */ +.word _sbss +/* end address for the .bss section. defined in linker script */ +.word _ebss + +// .equ Initial_spTop, 0x20000200 +.equ BootRAM, 0xF1E0F85F +/** + * @brief This is the code that gets called when the processor first + * starts execution following a reset event. Only the absolutely + * necessary set is performed, after which the application + * supplied main() routine is called. + * @param None + * @retval : None +*/ + + .section .text.Reset_Handler + .weak Reset_Handler + .type Reset_Handler, %function +Reset_Handler: +/* restore original stack pointer */ + ldr sp, =_estack /* set stack pointer */ + +/* Copy the data segment initializers from flash to SRAM */ + movs r1, #0 + b LoopCopyDataInit + +CopyDataInit: + ldr r3, =_sidata + ldr r3, [r3, r1] + str r3, [r0, r1] + adds r1, r1, #4 + +LoopCopyDataInit: + ldr r0, =_sdata + ldr r3, =_edata + adds r2, r0, r1 + cmp r2, r3 + bcc CopyDataInit + ldr r2, =_sbss + b LoopFillZerobss +/* Zero fill the bss segment. */ +FillZerobss: + movs r3, #0 + str r3, [r2], #4 + +LoopFillZerobss: + ldr r3, = _ebss + cmp r2, r3 + bcc FillZerobss +/* Call the application's entry point.*/ + bl main + bx lr +.size Reset_Handler, .-Reset_Handler + +/** + * @brief This is the code that gets called when the processor receives an + * unexpected interrupt. This simply enters an infinite loop, preserving + * the system state for examination by a debugger. + * + * @param None + * @retval : None +*/ + .section .text.Default_Handler,"ax",%progbits +Default_Handler: +Infinite_Loop: + b Infinite_Loop + .size Default_Handler, .-Default_Handler +/****************************************************************************** +* +* The minimal vector table for a Cortex M3. Note that the proper constructs +* must be placed on this to ensure that it ends up at physical address +* 0x0000.0000. +* +******************************************************************************/ + .section .isr_vector,"a",%progbits + .type g_pfnVectors, %object + .size g_pfnVectors, .-g_pfnVectors + +g_pfnVectors: + .word _estack + .word Reset_Handler + .word NMI_Handler + .word HardFault_Handler + .word MemManage_Handler + .word BusFault_Handler + .word UsageFault_Handler + .word 0 + .word 0 + .word 0 + .word 0 + .word SVC_Handler + .word DebugMon_Handler + .word 0 + .word PendSV_Handler + .word SysTick_Handler + + .word CSV_IRQHandler + .word SWDT_IRQHandler + .word LVD_IRQHandler + .word WFG_IRQHandler + .word EXINT0_7_IRQHandler + .word EXINT8_15_IRQHandler + .word DTIM_QDU_IRQHandler + .word MFS0RX_IRQHandler + .word MFS0TX_IRQHandler + .word MFS1RX_IRQHandler + .word MFS1TX_IRQHandler + .word MFS2RX_IRQHandler + .word MFS2TX_IRQHandler + .word MFS3RX_IRQHandler + .word MFS3TX_IRQHandler + .word MFS4RX_IRQHandler + .word MFS4TX_IRQHandler + .word MFS5RX_IRQHandler + .word MFS5TX_IRQHandler + .word MFS6RX_IRQHandler + .word MFS6TX_IRQHandler + .word MFS7RX_IRQHandler + .word MFS7TX_IRQHandler + .word PPG_IRQHandler + .word OSC_PLL_WC_IRQHandler + .word ADC0_IRQHandler + .word ADC1_IRQHandler + .word ADC2_IRQHandler + .word FRTIM_IRQHandler + .word INCAP_IRQHandler + .word OUTCOMP_IRQHandler + .word BTIM_IRQHandler + .word CAN0_IRQHandler + .word CAN1_IRQHandler + .word USBF_IRQHandler + .word USBF_USBH_IRQHandler + .word RESERVED_1_IRQHandler + .word RESERVED_2_IRQHandler + .word DMAC0_IRQHandler + .word DMAC1_IRQHandler + .word DMAC2_IRQHandler + .word DMAC3_IRQHandler + .word DMAC4_IRQHandler + .word DMAC5_IRQHandler + .word DMAC6_IRQHandler + .word DMAC7_IRQHandler + .word RESERVED_3_IRQHandler + .word RESERVED_4_IRQHandler + +/******************************************************************************* +* +* Provide weak aliases for each Exception handler to the Default_Handler. +* As they are weak aliases, any function with the same name will override +* this definition. +* +*******************************************************************************/ + + .weak NMI_Handler + .thumb_set NMI_Handler,Default_Handler + + .weak HardFault_Handler + .thumb_set HardFault_Handler,Default_Handler + + .weak MemManage_Handler + .thumb_set MemManage_Handler,Default_Handler + + .weak BusFault_Handler + .thumb_set BusFault_Handler,Default_Handler + + .weak UsageFault_Handler + .thumb_set UsageFault_Handler,Default_Handler + + .weak SVC_Handler + .thumb_set SVC_Handler,Default_Handler + + .weak DebugMon_Handler + .thumb_set DebugMon_Handler,Default_Handler + + .weak PendSV_Handler + .thumb_set PendSV_Handler,Default_Handler + + .weak SysTick_Handler + .thumb_set SysTick_Handler,Default_Handler + + .weak CSV_IRQHandler + .thumb_set CSV_IRQHandler,Default_Handler + + .weak SWDT_IRQHandler + .thumb_set SWDT_IRQHandler,Default_Handler + + .weak LVD_IRQHandler + .thumb_set LVD_IRQHandler,Default_Handler + + .weak WFG_IRQHandler + .thumb_set WFG_IRQHandler,Default_Handler + + .weak EXINT0_7_IRQHandler + .thumb_set EXINT0_7_IRQHandler,Default_Handler + + .weak EXINT8_15_IRQHandler + .thumb_set EXINT8_15_IRQHandler,Default_Handler + + .weak DTIM_QDU_IRQHandler + .thumb_set DTIM_QDU_IRQHandler,Default_Handler + + .weak MFS0RX_IRQHandler + .thumb_set MFS0RX_IRQHandler,Default_Handler + + .weak MFS0TX_IRQHandler + .thumb_set MFS0TX_IRQHandler,Default_Handler + + .weak MFS1RX_IRQHandler + .thumb_set MFS1RX_IRQHandler,Default_Handler + + .weak MFS1TX_IRQHandler + .thumb_set MFS1TX_IRQHandler,Default_Handler + + .weak MFS2RX_IRQHandler + .thumb_set MFS2RX_IRQHandler,Default_Handler + + .weak MFS2TX_IRQHandler + .thumb_set MFS2TX_IRQHandler,Default_Handler + + .weak MFS3RX_IRQHandler + .thumb_set MFS3RX_IRQHandler,Default_Handler + + .weak MFS3TX_IRQHandler + .thumb_set MFS3TX_IRQHandler,Default_Handler + + .weak MFS4RX_IRQHandler + .thumb_set MFS4RX_IRQHandler,Default_Handler + + .weak MFS4TX_IRQHandler + .thumb_set MFS4TX_IRQHandler,Default_Handler + + .weak MFS5RX_IRQHandler + .thumb_set MFS5RX_IRQHandler,Default_Handler + + .weak MFS5TX_IRQHandler + .thumb_set MFS5TX_IRQHandler,Default_Handler + + .weak MFS6RX_IRQHandler + .thumb_set MFS6RX_IRQHandler,Default_Handler + + .weak MFS6TX_IRQHandler + .thumb_set MFS6TX_IRQHandler,Default_Handler + + .weak MFS7RX_IRQHandler + .thumb_set MFS7RX_IRQHandler,Default_Handler + + .weak MFS7TX_IRQHandler + .thumb_set MFS7TX_IRQHandler,Default_Handler + + .weak PPG_IRQHandler + .thumb_set PPG_IRQHandler,Default_Handler + + .weak OSC_PLL_WC_IRQHandler + .thumb_set OSC_PLL_WC_IRQHandler,Default_Handler + + .weak ADC0_IRQHandler + .thumb_set ADC0_IRQHandler,Default_Handler + + .weak ADC1_IRQHandler + .thumb_set ADC1_IRQHandler,Default_Handler + + .weak ADC2_IRQHandler + .thumb_set ADC2_IRQHandler,Default_Handler + + .weak FRTIM_IRQHandler + .thumb_set FRTIM_IRQHandler,Default_Handler + + .weak INCAP_IRQHandler + .thumb_set INCAP_IRQHandler,Default_Handler + + .weak OUTCOMP_IRQHandler + .thumb_set OUTCOMP_IRQHandler,Default_Handler + + .weak BTIM_IRQHandler + .thumb_set BTIM_IRQHandler,Default_Handler + + .weak CAN0_IRQHandler + .thumb_set CAN0_IRQHandler,Default_Handler + + .weak CAN1_IRQHandler + .thumb_set CAN1_IRQHandler,Default_Handler + + .weak USBF_IRQHandler + .thumb_set USBF_IRQHandler,Default_Handler + + .weak USBF_USBH_IRQHandler + .thumb_set USBF_USBH_IRQHandler,Default_Handler + + .weak RESERVED_1_IRQHandler + .thumb_set RESERVED_1_IRQHandler,Default_Handler + + .weak RESERVED_2_IRQHandler + .thumb_set RESERVED_2_IRQHandler,Default_Handler + + .weak DMAC0_IRQHandler + .thumb_set DMAC0_IRQHandler,Default_Handler + + .weak DMAC1_IRQHandler + .thumb_set DMAC1_IRQHandler,Default_Handler + + .weak DMAC2_IRQHandler + .thumb_set DMAC2_IRQHandler,Default_Handler + + .weak DMAC3_IRQHandler + .thumb_set DMAC3_IRQHandler,Default_Handler + + .weak DMAC4_IRQHandler + .thumb_set DMAC4_IRQHandler,Default_Handler + + .weak DMAC5_IRQHandler + .thumb_set DMAC5_IRQHandler,Default_Handler + + .weak DMAC6_IRQHandler + .thumb_set DMAC6_IRQHandler,Default_Handler + + .weak DMAC7_IRQHandler + .thumb_set DMAC7_IRQHandler,Default_Handler + + .weak RESERVED_3_IRQHandler + .thumb_set RESERVED_3_IRQHandler,Default_Handler + + .weak RESERVED_4_IRQHandler + .thumb_set RESERVED_4_IRQHandler,Default_Handler + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_iar.S b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_iar.S new file mode 100644 index 0000000000..e60f066822 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_iar.S @@ -0,0 +1,359 @@ +;/* +; * Copyright (c) 2006-2021, RT-Thread Development Team +; * +; * SPDX-License-Identifier: Apache-2.0 +; * +; * Change Logs: +; * Date Author Notes +; * 2009-01-17 Bernard first version +; * 2009-09-27 Bernard add protect when contex switch occurs +; */ + +#include "rtconfig.h" + + MODULE ?cstartup + +;; ICODE is the same segment as cstartup. By placing __low_level_init +;; in the same segment, we make sure it can be reached with BL. */ + + SECTION CSTACK:DATA:NOROOT(3) + SECTION .icode:CODE:NOROOT(2) + +#ifdef RT_USING_UART2 + IMPORT MFS2RX_IRQHandler +#endif + PUBLIC __low_level_init + + PUBWEAK SystemInit_ExtMemCtl + SECTION .text:CODE:REORDER(2) + THUMB +SystemInit_ExtMemCtl + BX LR + +__low_level_init: + ;; Initialize hardware. + LDR R0, = SystemInit_ExtMemCtl ; initialize external memory controller + MOV R11, LR + BLX R0 + LDR R1, =sfe(CSTACK) ; restore original stack pointer + MSR MSP, R1 + MOV R0,#1 + ;; Return with BX to be independent of mode of caller + BX R11 + + ;; Forward declaration of sections. + SECTION .intvec:CODE:NOROOT(2) + + EXTERN __iar_program_start + PUBLIC __vector_table + + DATA +__vector_table + DCD sfe(CSTACK) + DCD __iar_program_start + + DCD NMI_Handler ; NMI Handler + DCD HardFault_Handler ; Hard Fault Handler + DCD MemManage_Handler ; MPU Fault Handler + DCD BusFault_Handler ; Bus Fault Handler + DCD UsageFault_Handler ; Usage Fault Handler + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall Handler + DCD DebugMon_Handler ; Debug Monitor Handler + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV Handler + DCD SysTick_Handler ; SysTick Handler + + ; External Interrupts + DCD CSV_IRQHandler ; Clock Super Visor + DCD SWDT_IRQHandler ; Software Watchdog Timer + DCD LVD_IRQHandler ; Low Voltage Detector + DCD WFG_IRQHandler ; Wave Form Generator + DCD EXINT0_7_IRQHandler ; External Interrupt Request ch.0 to ch.7 + DCD EXINT8_15_IRQHandler ; External Interrupt Request ch.8 to ch.15 + DCD DTIM_QDU_IRQHandler ; Dual Timer / Quad Decoder + DCD MFS0RX_IRQHandler ; MultiFunction Serial ch.0 + DCD MFS0TX_IRQHandler ; MultiFunction Serial ch.0 + DCD MFS1RX_IRQHandler ; MultiFunction Serial ch.1 + DCD MFS1TX_IRQHandler ; MultiFunction Serial ch.1 +#ifdef RT_USING_UART2 + DCD MFS2RX_IRQHandler ; MultiFunction Serial ch.2 +#else + DCD NULL_IRQHandler ; MultiFunction Serial ch.2 +#endif + DCD MFS2TX_IRQHandler ; MultiFunction Serial ch.2 + DCD MFS3RX_IRQHandler ; MultiFunction Serial ch.3 + DCD MFS3TX_IRQHandler ; MultiFunction Serial ch.3 + DCD MFS4RX_IRQHandler ; MultiFunction Serial ch.4 + DCD MFS4TX_IRQHandler ; MultiFunction Serial ch.4 + DCD MFS5RX_IRQHandler ; MultiFunction Serial ch.5 + DCD MFS5TX_IRQHandler ; MultiFunction Serial ch.5 + DCD MFS6RX_IRQHandler ; MultiFunction Serial ch.6 + DCD MFS6TX_IRQHandler ; MultiFunction Serial ch.6 + DCD MFS7RX_IRQHandler ; MultiFunction Serial ch.7 + DCD MFS7TX_IRQHandler ; MultiFunction Serial ch.7 + DCD PPG_IRQHandler ; PPG + DCD OSC_PLL_WC_IRQHandler ; OSC / PLL / Watch Counter + DCD ADC0_IRQHandler ; ADC0 + DCD ADC1_IRQHandler ; ADC1 + DCD ADC2_IRQHandler ; ADC2 + DCD FRTIM_IRQHandler ; Free-run Timer + DCD INCAP_IRQHandler ; Input Capture + DCD OUTCOMP_IRQHandler ; Output Compare + DCD BTIM_IRQHandler ; Base Timer ch.0 to ch.7 + DCD CAN0_IRQHandler ; CAN ch.0 + DCD CAN1_IRQHandler ; CAN ch.1 + DCD USBF_IRQHandler ; USB Function + DCD USBF_USBH_IRQHandler ; USB Function / USB HOST + DCD RESERVED_1_IRQHandler ; Reserved_1 + DCD RESERVED_2_IRQHandler ; Reserved_2 + DCD DMAC0_IRQHandler ; DMAC ch.0 + DCD DMAC1_IRQHandler ; DMAC ch.1 + DCD DMAC2_IRQHandler ; DMAC ch.2 + DCD DMAC3_IRQHandler ; DMAC ch.3 + DCD DMAC4_IRQHandler ; DMAC ch.4 + DCD DMAC5_IRQHandler ; DMAC ch.5 + DCD DMAC6_IRQHandler ; DMAC ch.6 + DCD DMAC7_IRQHandler ; DMAC ch.7 + DCD RESERVED_3_IRQHandler ; Reserved_3 + DCD RESERVED_4_IRQHandler ; Reserved_4 + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; +;; Default interrupt handlers. +;; + THUMB + + PUBWEAK NMI_Handler + SECTION .text:CODE:REORDER(1) +NMI_Handler + B NMI_Handler + PUBWEAK HardFault_Handler + SECTION .text:CODE:REORDER(1) +HardFault_Handler + B HardFault_Handler + PUBWEAK MemManage_Handler + SECTION .text:CODE:REORDER(1) +MemManage_Handler + B MemManage_Handler + PUBWEAK BusFault_Handler + SECTION .text:CODE:REORDER(1) +BusFault_Handler + B BusFault_Handler + PUBWEAK UsageFault_Handler + SECTION .text:CODE:REORDER(1) +UsageFault_Handler + B UsageFault_Handler + PUBWEAK SVC_Handler + SECTION .text:CODE:REORDER(1) +SVC_Handler + B SVC_Handler + PUBWEAK DebugMon_Handler + SECTION .text:CODE:REORDER(1) +DebugMon_Handler + B DebugMon_Handler + PUBWEAK PendSV_Handler + SECTION .text:CODE:REORDER(1) +PendSV_Handler + B PendSV_Handler + PUBWEAK SysTick_Handler + SECTION .text:CODE:REORDER(1) +SysTick_Handler + B SysTick_Handler + PUBWEAK CSV_IRQHandler + SECTION .text:CODE:REORDER(1) +CSV_IRQHandler + B CSV_IRQHandler + PUBWEAK SWDT_IRQHandler + SECTION .text:CODE:REORDER(1) +SWDT_IRQHandler + B SWDT_IRQHandler + PUBWEAK LVD_IRQHandler + SECTION .text:CODE:REORDER(1) +LVD_IRQHandler + B LVD_IRQHandler + PUBWEAK WFG_IRQHandler + SECTION .text:CODE:REORDER(1) +WFG_IRQHandler + B WFG_IRQHandler + PUBWEAK EXINT0_7_IRQHandler + SECTION .text:CODE:REORDER(1) +EXINT0_7_IRQHandler + B EXINT0_7_IRQHandler + PUBWEAK EXINT8_15_IRQHandler + SECTION .text:CODE:REORDER(1) +EXINT8_15_IRQHandler + B EXINT8_15_IRQHandler + PUBWEAK DTIM_QDU_IRQHandler + SECTION .text:CODE:REORDER(1) +DTIM_QDU_IRQHandler + B DTIM_QDU_IRQHandler + PUBWEAK MFS0RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS0RX_IRQHandler + B MFS0RX_IRQHandler + PUBWEAK MFS0TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS0TX_IRQHandler + B MFS0TX_IRQHandler + PUBWEAK MFS1RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS1RX_IRQHandler + B MFS1RX_IRQHandler + PUBWEAK MFS1TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS1TX_IRQHandler + B MFS1TX_IRQHandler + PUBWEAK NULL_IRQHandler + SECTION .text:CODE:REORDER(1) +NULL_IRQHandler + B NULL_IRQHandler + PUBWEAK MFS2TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS2TX_IRQHandler + B MFS2TX_IRQHandler + PUBWEAK MFS3RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS3RX_IRQHandler + B MFS3RX_IRQHandler + PUBWEAK MFS3TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS3TX_IRQHandler + B MFS3TX_IRQHandler + PUBWEAK MFS4RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS4RX_IRQHandler + B MFS4RX_IRQHandler + PUBWEAK MFS4TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS4TX_IRQHandler + B MFS4TX_IRQHandler + PUBWEAK MFS5RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS5RX_IRQHandler + B MFS5RX_IRQHandler + PUBWEAK MFS5TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS5TX_IRQHandler + B MFS5TX_IRQHandler + PUBWEAK MFS6RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS6RX_IRQHandler + B MFS6RX_IRQHandler + PUBWEAK MFS6TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS6TX_IRQHandler + B MFS6TX_IRQHandler + PUBWEAK MFS7RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS7RX_IRQHandler + B MFS7RX_IRQHandler + PUBWEAK MFS7TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS7TX_IRQHandler + B MFS7TX_IRQHandler + PUBWEAK PPG_IRQHandler + SECTION .text:CODE:REORDER(1) +PPG_IRQHandler + B PPG_IRQHandler + PUBWEAK OSC_PLL_WC_IRQHandler + SECTION .text:CODE:REORDER(1) +OSC_PLL_WC_IRQHandler + B OSC_PLL_WC_IRQHandler + PUBWEAK ADC0_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC0_IRQHandler + B ADC0_IRQHandler + PUBWEAK ADC1_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC1_IRQHandler + B ADC1_IRQHandler + PUBWEAK ADC2_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC2_IRQHandler + B ADC2_IRQHandler + PUBWEAK FRTIM_IRQHandler + SECTION .text:CODE:REORDER(1) +FRTIM_IRQHandler + B FRTIM_IRQHandler + PUBWEAK INCAP_IRQHandler + SECTION .text:CODE:REORDER(1) +INCAP_IRQHandler + B INCAP_IRQHandler + PUBWEAK OUTCOMP_IRQHandler + SECTION .text:CODE:REORDER(1) +OUTCOMP_IRQHandler + B OUTCOMP_IRQHandler + PUBWEAK BTIM_IRQHandler + SECTION .text:CODE:REORDER(1) +BTIM_IRQHandler + B BTIM_IRQHandler + PUBWEAK CAN0_IRQHandler + SECTION .text:CODE:REORDER(1) +CAN0_IRQHandler + B CAN0_IRQHandler + PUBWEAK CAN1_IRQHandler + SECTION .text:CODE:REORDER(1) +CAN1_IRQHandler + B CAN1_IRQHandler + PUBWEAK USBF_IRQHandler + SECTION .text:CODE:REORDER(1) +USBF_IRQHandler + B USBF_IRQHandler + PUBWEAK USBF_USBH_IRQHandler + SECTION .text:CODE:REORDER(1) +USBF_USBH_IRQHandler + B USBF_USBH_IRQHandler + PUBWEAK RESERVED_1_IRQHandler + SECTION .text:CODE:REORDER(1) +RESERVED_1_IRQHandler + B RESERVED_1_IRQHandler + PUBWEAK RESERVED_2_IRQHandler + SECTION .text:CODE:REORDER(1) +RESERVED_2_IRQHandler + B RESERVED_2_IRQHandler + PUBWEAK DMAC0_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC0_IRQHandler + B DMAC0_IRQHandler + PUBWEAK DMAC1_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC1_IRQHandler + B DMAC1_IRQHandler + PUBWEAK DMAC2_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC2_IRQHandler + B DMAC2_IRQHandler + PUBWEAK DMAC3_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC3_IRQHandler + B DMAC3_IRQHandler + PUBWEAK DMAC4_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC4_IRQHandler + B DMAC4_IRQHandler + PUBWEAK DMAC5_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC5_IRQHandler + B DMAC5_IRQHandler + PUBWEAK DMAC6_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC6_IRQHandler + B DMAC6_IRQHandler + PUBWEAK DMAC7_IRQHandler + SECTION .text:CODE:REORDER(1) +DMAC7_IRQHandler + B DMAC7_IRQHandler + PUBWEAK RESERVED_3_IRQHandler + SECTION .text:CODE:REORDER(1) +RESERVED_3_IRQHandler + B RESERVED_3_IRQHandler + PUBWEAK RESERVED_4_IRQHandler + SECTION .text:CODE:REORDER(1) +RESERVED_4_IRQHandler + B RESERVED_4_IRQHandler + + END diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_rvds.S b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_rvds.S new file mode 100644 index 0000000000..451f17aa0d --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/start_rvds.S @@ -0,0 +1,287 @@ +; /* +; * Copyright (c) 2006-2021, RT-Thread Development Team +; * +; * SPDX-License-Identifier: Apache-2.0 +; * +; * Change Logs: +; * Date Author Notes +; * 2011-02-23 Bernard first implementation +; */ + +;* <<< Use Configuration Wizard in Context Menu >>> + +; Amount of memory (in bytes) allocated for Stack +; Tailor this value to your application needs +; Stack Configuration +; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> +; + +Stack_Size EQU 0x00000200 + + AREA STACK, NOINIT, READWRITE, ALIGN=3 +Stack_Mem SPACE Stack_Size +__initial_sp + +; Note: RT-Thread not use malloc/free in Keil MDK, therefore the heap size is 0. +Heap_Size EQU 0x00000000 + + AREA HEAP, NOINIT, READWRITE, ALIGN=3 +__heap_base +Heap_Mem SPACE Heap_Size +__heap_limit + + PRESERVE8 + THUMB + +; Vector Table Mapped to Address 0 at Reset + AREA RESET, DATA, READONLY + EXPORT __Vectors + EXPORT __Vectors_End + EXPORT __Vectors_Size + +__Vectors DCD __initial_sp ; Top of Stack + DCD Reset_Handler ; Reset Handler + DCD NMI_Handler ; NMI Handler + DCD HardFault_Handler ; Hard Fault Handler + DCD MemManage_Handler ; MPU Fault Handler + DCD BusFault_Handler ; Bus Fault Handler + DCD UsageFault_Handler ; Usage Fault Handler + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall Handler + DCD DebugMon_Handler ; Debug Monitor Handler + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV Handler + DCD SysTick_Handler ; SysTick Handler + + DCD CSV_Handler ; 0: Clock Super Visor + DCD SWDT_Handler ; 1: Software Watchdog Timer + DCD LVD_Handler ; 2: Low Voltage Detector + DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF + DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 + DCD INT8_15_Handler ; 5: External Interrupt Request ch.8 to ch.15 + DCD DT_Handler ; 6: Dual Timer / Quad Decoder + DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 + DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 + DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 + DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 + DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 + DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 + DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 + DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 + DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 + DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 + DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 + DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 + DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 + DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 + DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 + DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 + DCD PPG_Handler ; 23: PPG + DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter + DCD ADC0_IRQHandler ; 25: ADC0 + DCD ADC1_IRQHandler ; 26: ADC1 + DCD ADC2_IRQHandler ; 27: ADC2 + DCD MFT_FRT_IRQHandler ; 28: Free-run Timer + DCD MFT_IPC_IRQHandler ; 29: Input Capture + DCD MFT_OPC_IRQHandler ; 30: Output Compare + DCD BT_IRQHandler ; 31: Base Timer ch.0 to ch.7 + DCD CAN0_IRQHandler ; 32: CAN ch.0 + DCD CAN1_IRQHandler ; 33: CAN ch.1 + DCD USBF_Handler ; 34: USB Function + DCD USB_Handler ; 35: USB Function / USB HOST + DCD DummyHandler ; 36: Reserved + DCD DummyHandler ; 37: Reserved + DCD DMAC0_Handler ; 38: DMAC ch.0 + DCD DMAC1_Handler ; 39: DMAC ch.1 + DCD DMAC2_Handler ; 40: DMAC ch.2 + DCD DMAC3_Handler ; 41: DMAC ch.3 + DCD DMAC4_Handler ; 42: DMAC ch.4 + DCD DMAC5_Handler ; 43: DMAC ch.5 + DCD DMAC6_Handler ; 44: DMAC ch.6 + DCD DMAC7_Handler ; 45: DMAC ch.7 + DCD DummyHandler ; 46: Reserved + DCD DummyHandler ; 47: Reserved +__Vectors_End + +__Vectors_Size EQU __Vectors_End - __Vectors + + AREA |.text|, CODE, READONLY + +; Reset handler routine +Reset_Handler PROC + EXPORT Reset_Handler [WEAK] + IMPORT __main + IMPORT SystemInit + LDR R1, = __initial_sp ; restore original stack pointer + MSR MSP, R1 + LDR R0, =SystemInit + BLX R0 + LDR R0, =__main + BX R0 + ENDP + +; Dummy Exception Handlers (infinite loops which can be modified) + +NMI_Handler PROC + EXPORT NMI_Handler [WEAK] + B . + ENDP +HardFault_Handler\ + PROC + EXPORT HardFault_Handler [WEAK] + B . + ENDP +MemManage_Handler\ + PROC + EXPORT MemManage_Handler [WEAK] + B . + ENDP +BusFault_Handler\ + PROC + EXPORT BusFault_Handler [WEAK] + B . + ENDP +UsageFault_Handler\ + PROC + EXPORT UsageFault_Handler [WEAK] + B . + ENDP +SVC_Handler PROC + EXPORT SVC_Handler [WEAK] + B . + ENDP +DebugMon_Handler\ + PROC + EXPORT DebugMon_Handler [WEAK] + B . + ENDP +PendSV_Handler PROC + EXPORT PendSV_Handler [WEAK] + B . + ENDP +SysTick_Handler PROC + EXPORT SysTick_Handler [WEAK] + B . + ENDP + +Default_Handler PROC + + EXPORT CSV_Handler [WEAK] + EXPORT SWDT_Handler [WEAK] + EXPORT LVD_Handler [WEAK] + EXPORT MFT_WG_IRQHandler [WEAK] + EXPORT INT0_7_Handler [WEAK] + EXPORT INT8_15_Handler [WEAK] + EXPORT DT_Handler [WEAK] + EXPORT MFS0RX_IRQHandler [WEAK] + EXPORT MFS0TX_IRQHandler [WEAK] + EXPORT MFS1RX_IRQHandler [WEAK] + EXPORT MFS1TX_IRQHandler [WEAK] + EXPORT MFS2RX_IRQHandler [WEAK] + EXPORT MFS2TX_IRQHandler [WEAK] + EXPORT MFS3RX_IRQHandler [WEAK] + EXPORT MFS3TX_IRQHandler [WEAK] + EXPORT MFS4RX_IRQHandler [WEAK] + EXPORT MFS4TX_IRQHandler [WEAK] + EXPORT MFS5RX_IRQHandler [WEAK] + EXPORT MFS5TX_IRQHandler [WEAK] + EXPORT MFS6RX_IRQHandler [WEAK] + EXPORT MFS6TX_IRQHandler [WEAK] + EXPORT MFS7RX_IRQHandler [WEAK] + EXPORT MFS7TX_IRQHandler [WEAK] + EXPORT PPG_Handler [WEAK] + EXPORT TIM_IRQHandler [WEAK] + EXPORT ADC0_IRQHandler [WEAK] + EXPORT ADC1_IRQHandler [WEAK] + EXPORT ADC2_IRQHandler [WEAK] + EXPORT MFT_FRT_IRQHandler [WEAK] + EXPORT MFT_IPC_IRQHandler [WEAK] + EXPORT MFT_OPC_IRQHandler [WEAK] + EXPORT BT_IRQHandler [WEAK] + EXPORT CAN0_IRQHandler [WEAK] + EXPORT CAN1_IRQHandler [WEAK] + EXPORT USBF_Handler [WEAK] + EXPORT USB_Handler [WEAK] + EXPORT DMAC0_Handler [WEAK] + EXPORT DMAC1_Handler [WEAK] + EXPORT DMAC2_Handler [WEAK] + EXPORT DMAC3_Handler [WEAK] + EXPORT DMAC4_Handler [WEAK] + EXPORT DMAC5_Handler [WEAK] + EXPORT DMAC6_Handler [WEAK] + EXPORT DMAC7_Handler [WEAK] + EXPORT DummyHandler [WEAK] + +CSV_Handler +SWDT_Handler +LVD_Handler +MFT_WG_IRQHandler +INT0_7_Handler +INT8_15_Handler +DT_Handler +MFS0RX_IRQHandler +MFS0TX_IRQHandler +MFS1RX_IRQHandler +MFS1TX_IRQHandler +MFS2RX_IRQHandler +MFS2TX_IRQHandler +MFS3RX_IRQHandler +MFS3TX_IRQHandler +MFS4RX_IRQHandler +MFS4TX_IRQHandler +MFS5RX_IRQHandler +MFS5TX_IRQHandler +MFS6RX_IRQHandler +MFS6TX_IRQHandler +MFS7RX_IRQHandler +MFS7TX_IRQHandler +PPG_Handler +TIM_IRQHandler +ADC0_IRQHandler +ADC1_IRQHandler +ADC2_IRQHandler +MFT_FRT_IRQHandler +MFT_IPC_IRQHandler +MFT_OPC_IRQHandler +BT_IRQHandler +CAN0_IRQHandler +CAN1_IRQHandler +USBF_Handler +USB_Handler +DMAC0_Handler +DMAC1_Handler +DMAC2_Handler +DMAC3_Handler +DMAC4_Handler +DMAC5_Handler +DMAC6_Handler +DMAC7_Handler +DummyHandler + B . + ENDP + ALIGN + +; User Initial Stack & Heap + + IF :DEF:__MICROLIB + EXPORT __initial_sp + EXPORT __heap_base + EXPORT __heap_limit + ELSE + IMPORT __use_two_region_memory + EXPORT __user_initial_stackheap +__user_initial_stackheap + + LDR R0, = Heap_Mem + LDR R1, =(Stack_Mem + Stack_Size) + LDR R2, = (Heap_Mem + Heap_Size) + LDR R3, = Stack_Mem + BX LR + + ALIGN + ENDIF + + END diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.c b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.c new file mode 100644 index 0000000000..12f9772e9f --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.c @@ -0,0 +1,111 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user’s obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intention and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.4) */ +/************************************************************************/ + +#include "mb9bf506r.h" + +/* + * 80MHz : Master Clock + */ +const uint32_t SystemFrequency = 80000000UL; + +uint32_t SysFreHCLK = 80000000UL; /* HCLK = MasterClock / 1 */ +uint32_t SysFrePCLK0 = 40000000UL; /* PCLK0 = HCLK / 2 */ +uint32_t SysFrePCLK1 = 40000000UL; /* PCLK1 = HCLK / 2 */ +uint32_t SysFrePCLK2 = 40000000UL; /* PCLK2 = HCLK / 2 */ +uint32_t SysFreTPIU = 0UL; /* TPIUCLK : Disable */ + +/* + * Prototype of internal function + */ +static void ClockInit(void); +static void HwwdtDisable(void); + + +/* + * Setup the microcontroller system + */ +void SystemInit (void) +{ + HwwdtDisable(); /* Disable Hardware Watchdog */ + ClockInit(); /* Initialize Clock */ +} +/* + * Initialize Clock + */ +static void ClockInit(void) +{ + /*set Main clock stabilization + wait time to 2ms*/ + FM3_CRG->CSW_TMR = 0x79; + /*Enable Main Oscilator*/ + FM3_CRG->SCM_CTL |= 1<<1; + /*Wait stabilization end*/ + while(!(FM3_CRG->SCM_STR & 0x02)); + + /* sub CLK enable */ + //FM3_CRG->SCM_CTL |= 0x08; + //while(!(FM3_CRG->SCM_STR & 0x08)); + + /*Set PLL stabilization + wait time to 512uS*/ + FM3_CRG->PSW_TMR |= 2; + /*Set PLL to 80MHz*/ + FM3_CRG->PLL_CTL1 = 0; /*K = 1, M=1*/ + FM3_CRG->PLL_CTL2 = 19; /*N = 20*/ + /*Enable PLL*/ + FM3_CRG->SCM_CTL |= 0x10; + /*Set bus prescalers*/ + FM3_CRG->BSC_PSR = 0; /*Base clock Prescaler 1:1*/ + FM3_CRG->APBC0_PSR |= 1; /*APB0 clock Prescaler 1:2*/ + FM3_CRG->APBC1_PSR |= 1; /*APB1 clock Prescaler 1:2*/ + FM3_CRG->APBC2_PSR |= 1; /*APB2 clock Prescaler 1:2*/ + /*Wait PLL stabilizatoin end*/ + while(!(FM3_CRG->SCM_STR & 0x10)); + /*Select PLL for main clock*/ + FM3_CRG->SCM_CTL |= 2<<5; + /*Wait PLL to be connected*/ + while((FM3_CRG->SCM_STR & 0xe0) != 0x40); + +} +/* + * Stop HW Watchdog Timer + */ +static void HwwdtDisable(void) +{ + /* UnLock (except WDG_CTL) */ + FM3_HWWDT->WDG_LCK = 0x1ACCE551; + /* UnLock (WDG_CTL) */ + FM3_HWWDT->WDG_LCK = 0xE5331AAE; + /* Disable WDG */ + FM3_HWWDT->WDG_CTL = 0x00; +} diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.h b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.h new file mode 100644 index 0000000000..2750d1efcb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/system_mb9bf50x.h @@ -0,0 +1,71 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ + +#ifndef _SYSTEM_MB9BF50X_H_ +#define _SYSTEM_MB9BF50X_H_ + +#ifdef __cplusplus + extern "C" { +#endif + +#include + +extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ + +/** + * Initialize the system + * + * @param none + * @return none + * + * @brief Setup the microcontroller system. + * Initialize the System and update the SystemCoreClock variable. + */ +extern void SystemInit (void); + +/** + * Update SystemCoreClock variable + * + * @param none + * @return none + * + * @brief Updates the SystemCoreClock with current core Clock + * retrieved from cpu registers. + */ +extern void SystemCoreClockUpdate (void); + +#ifdef __cplusplus +} +#endif + +#endif /* __SYSTEM_MB9BF50X_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/SConscript b/bsp/fujitsu/mb9x/mb9bf500r/SConscript new file mode 100644 index 0000000000..2679fc6ce5 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/SConscript @@ -0,0 +1,16 @@ +import rtconfig +Import('RTT_ROOT') +from building import * + +src_bsp = ['application.c', 'startup.c', 'board.c', 'led.c', 'cpuusage.c'] +src_drv = ['adc.c', 'lcd.c', 'key.c'] + +if GetDepend('RT_USING_RTGUI'): + src_drv += ['info.c'] + +src = src_bsp + src_drv +CPPPATH = [GetCurrentDir()] +CPPDEFINES = [] +group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf500r/SConstruct b/bsp/fujitsu/mb9x/mb9bf500r/SConstruct new file mode 100644 index 0000000000..67d8d9c3a5 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/SConstruct @@ -0,0 +1,37 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +if rtconfig.PLATFORM == 'iar': + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +objs = objs + SConscript('CMSIS/SConscript', variant_dir='build/bsp/CMSIS', duplicate=0) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/fujitsu/mb9x/mb9bf500r/adc.c b/bsp/fujitsu/mb9x/mb9bf500r/adc.c new file mode 100644 index 0000000000..2e431e90c9 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/adc.c @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq First version + */ + +#include +#include +#include "mb9bf506r.h" +#include "adc.h" +#include "led.h" +#include "lcd.h" + +#ifdef RT_USING_RTGUI +#include +#include +#include +#endif + +static struct rt_device adc; + +static rt_err_t rt_adc_init(rt_device_t dev) +{ + RT_ASSERT(dev != RT_NULL); + + if(!(dev->flag & RT_DEVICE_FLAG_ACTIVATED)) + { + /* I/O setting AN08 - P18 */ + FM3_GPIO->ADE |= 0x100; + FM3_GPIO->PFR1 = 0x100; + + /* A/DC setting */ + FM3_ADC0->SCIS1 = 0x01; + FM3_ADC0->ADSS1 = 0x00; /* sampling timming ADST0 */ + FM3_ADC0->ADST1 = 0x43; + FM3_ADC0->ADCT = 0x02; + FM3_ADC0->SCCR = 0x10; /* FIFO clear,single mode */ + FM3_ADC0->CMPCR = 0x00; /* disable comparator */ + + /* starting A/DC */ + FM3_ADC0->SCCR |= 0x01; /* A/DC start */ + + dev->flag |= RT_DEVICE_FLAG_ACTIVATED; + } + return RT_EOK; +} + +static rt_err_t rt_adc_control(rt_device_t dev, int cmd, void *args) +{ + RT_ASSERT(dev != RT_NULL); + + switch (cmd) + { + case RT_DEVICE_CTRL_ADC_START: + FM3_ADC0->SCCR |= 0x1; + break; + + case RT_DEVICE_CTRL_ADC_RESULT: + while(FM3_ADC0->ADSR & 0x1) + ; + *((rt_uint16_t*)args) = FM3_ADC0->SCFD; + *((rt_uint16_t*)args) = *((rt_uint16_t*)args) >> 6; + *((rt_uint16_t*)args) = (*((rt_uint16_t*)args)*3300)/1024; + break; + } + return RT_EOK; +} + +extern struct rt_messagequeue mq; +extern rt_thread_t info_tid; +rt_uint16_t adc_value; +static void adc_thread_entry(void *parameter) +{ + rt_device_t device; + +#ifdef RT_USING_RTGUI + struct rtgui_event_command ecmd; + + RTGUI_EVENT_COMMAND_INIT(&ecmd); + ecmd.type = RTGUI_CMD_USER_INT; + ecmd.command_id = ADC_UPDATE; +#else + struct lcd_msg msg; +#endif + + device = rt_device_find("adc"); + + while(1) + { + rt_device_control(device, RT_DEVICE_CTRL_ADC_START, RT_NULL); + rt_device_control(device, RT_DEVICE_CTRL_ADC_RESULT, &adc_value); + pwm_update(adc_value/3); +#ifdef RT_USING_RTGUI + rtgui_thread_send(info_tid, &ecmd.parent, sizeof(ecmd)); +#else + msg.type = ADC_MSG; + msg.adc_value = adc_value; + rt_mq_send(&mq, &msg, sizeof(msg)); +#endif + rt_thread_delay(20); + } +} + +static rt_thread_t adc_thread; +void rt_hw_adc_init(void) +{ + adc.type = RT_Device_Class_Char; + adc.rx_indicate = RT_NULL; + adc.tx_complete = RT_NULL; + adc.init = rt_adc_init; + adc.open = RT_NULL; + adc.close = RT_NULL; + adc.read = RT_NULL; + adc.write = RT_NULL; + adc.control = rt_adc_control; + adc.user_data = RT_NULL; + + adc_thread = rt_thread_create("adc", adc_thread_entry, RT_NULL, 384, 26, 5); + if(adc_thread != RT_NULL) + rt_thread_startup(adc_thread); + + /* register a character device */ + rt_device_register(&adc, "adc", RT_DEVICE_FLAG_RDWR); +} + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/adc.h b/bsp/fujitsu/mb9x/mb9bf500r/adc.h new file mode 100644 index 0000000000..c8846b0beb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/adc.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#ifndef __ADC_H__ +#define __ADC_H__ + +/* Exported constants ---------------------------------------------------------*/ +/* Exported macro -------------------------------------------------------------*/ +#define ADC_MODE_SINGLE 0x00UL +#define ADC_MODE_SCAN 0x01UL +#define ADC_MODE_TAILGATE 0x02UL + +#define RT_DEVICE_CTRL_ADC_START 0xF1 /* start ADC conversion */ +#define RT_DEVICE_CTRL_ADC_RESULT 0xF2 /* get ADC result */ + +#define ADC_UPDATE 0 + +/* Exported functions --------------------------------------------------------- */ +void rt_hw_adc_init(void); + +#endif /*__ADC_H__ */ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/application.c b/bsp/fujitsu/mb9x/mb9bf500r/application.c new file mode 100644 index 0000000000..1cbd0c2d83 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/application.c @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard the first version + */ + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +#include +#include "board.h" +#include "led.h" +#include "key.h" +#include "adc.h" +#include "lcd.h" +#include "cpuusage.h" + +#ifdef RT_USING_RTGUI +#include +#include +extern void rtgui_startup(); +#endif + +struct rt_messagequeue mq; +static char msg_pool[2048]; + +void rt_init_thread_entry(void *parameter) +{ + rt_device_t lcd; + + rt_hw_led_init(); + rt_hw_key_init(); + rt_hw_adc_init(); + rt_hw_lcd_init(); + rt_hw_cpu_init(); + +#ifdef RT_USING_RTGUI + extern void rtgui_system_server_init(void); + + /* find lcd device */ + lcd = rt_device_find("lcd"); + + /* set lcd device as rtgui graphic driver */ + rtgui_graphic_set_device(lcd); + + /* init rtgui system server */ + rtgui_system_server_init(); + + /* startup rtgui */ + rtgui_startup(); +#else + { + char buf[20] = {'\0'}; + struct lcd_msg msg; + rt_device_t device; + device = rt_device_find("lcd"); + rt_device_control(device, RT_DEVICE_CTRL_LCD_CLEAR_SCR, RT_NULL); + x = 1; + y = 1; + rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, "ADC"); + x = 1; + y = 20; + rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, "CPU"); + x = 1; + y = 40; + rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, "KEY"); + + while(1) + { + if (rt_mq_recv(&mq, &msg, sizeof(msg), RT_WAITING_FOREVER) == RT_EOK) + { + switch(msg.type) + { + case ADC_MSG: + x = 40; + y = 1; + rt_memset(buf, 0, sizeof(buf)); + rt_sprintf(buf, "%04d", msg.adc_value); + rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, buf); + break; + case CPU_MSG: + x = 40; + y = 20; + rt_memset(buf, 0, sizeof(buf)); + rt_sprintf(buf, "%03d %03d", msg.major, msg.minor); + rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, buf); + break; + case KEY_MSG: + x = 40; + y = 40; + rt_memset(buf, 0, sizeof(buf)); + switch(msg.key) + { + case KEY_DOWN: + rt_sprintf(buf, "DOWN KEY "); + break; + case KEY_UP: + rt_sprintf(buf, "UP KEY "); + break; + case KEY_RIGHT: + rt_sprintf(buf, "RIGHT KEY"); + break; + case KEY_LEFT: + rt_sprintf(buf, "LEFT KEY "); + break; + case KEY_ENTER: + rt_sprintf(buf, "ENTER KEY"); + break; + default: + rt_sprintf(buf, "NO KEY "); + break; + } + rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, buf); + break; + } + } + } + } +#endif +} + +int rt_application_init(void) +{ + rt_thread_t init_thread; + + rt_mq_init(&mq, "mqt", &msg_pool[0], 128 - sizeof(void*), sizeof(msg_pool), RT_IPC_FLAG_FIFO); + + init_thread = rt_thread_create("init", rt_init_thread_entry, RT_NULL, 1024, 21, 20); + if(init_thread != RT_NULL) + rt_thread_startup(init_thread); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/board.c b/bsp/fujitsu/mb9x/mb9bf500r/board.c new file mode 100644 index 0000000000..f52a5fa3a8 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/board.c @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" +#include "mb9bf506r.h" +#include "core_cm3.h" + +extern const uint32_t SystemFrequency; + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +/** + * This is the timer interrupt service routine. + * + */ +void SysTick_Handler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + + rt_tick_increase(); + + /* leave interrupt */ + rt_interrupt_leave(); +} + +/** +* This function will initial FM3 Easy Kit board. + */ +void rt_hw_board_init() +{ + /* init systick */ + SysTick_Config(SystemFrequency/RT_TICK_PER_SECOND); +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/board.h b/bsp/fujitsu/mb9x/mb9bf500r/board.h new file mode 100644 index 0000000000..2b419c759e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/board.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2009-09-22 Bernard add board.h to this bsp + * 2011-03-04 lgnq add board.h to FM3 bsp + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +//Internal SRAM memory size[Kbytes] <8-64> +//MB9BF500 : 32 +//MB9BF504 : 32 +//MB9BF505 : 48 +//MB9BF506 : 64 +#define FM3_SRAM_SIZE 32 +#define FM3_SRAM_END (0x1FFFC000 + FM3_SRAM_SIZE * 1024) + +void rt_hw_board_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/cpuusage.c b/bsp/fujitsu/mb9x/mb9bf500r/cpuusage.c new file mode 100644 index 0000000000..df8ba2c240 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/cpuusage.c @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ + +#include +#include +#include "cpuusage.h" +#include "lcd.h" + +#ifdef RT_USING_RTGUI +#include +#include +#include +#endif + +#define CPU_USAGE_CALC_TICK 10 +#define CPU_USAGE_LOOP 100 + +static rt_uint8_t cpu_usage_major = 0, cpu_usage_minor= 0; +static rt_uint32_t total_count = 0; + +static void cpu_usage_idle_hook() +{ + rt_tick_t tick; + rt_uint32_t count; + volatile rt_uint32_t loop; + + if (total_count == 0) + { + loop = 0; + + /* get total count */ + rt_enter_critical(); + tick = rt_tick_get(); + while(rt_tick_get() - tick < CPU_USAGE_CALC_TICK) + { + total_count ++; + while (loop < CPU_USAGE_LOOP) loop ++; + } + rt_exit_critical(); + } + + count = 0; + loop = 0; + /* get CPU usage */ + tick = rt_tick_get(); + while (rt_tick_get() - tick < CPU_USAGE_CALC_TICK) + { + count ++; + while (loop < CPU_USAGE_LOOP) loop ++; + } + + /* calculate major and minor */ + if (count < total_count) + { + count = total_count - count; + cpu_usage_major = (count * 100) / total_count; + cpu_usage_minor = ((count * 100) % total_count) * 100 / total_count; + } + else + { + total_count = count; + + /* no CPU usage */ + cpu_usage_major = 0; + cpu_usage_minor = 0; + } +} + +void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor) +{ + RT_ASSERT(major != RT_NULL); + RT_ASSERT(minor != RT_NULL); + + *major = cpu_usage_major; + *minor = cpu_usage_minor; +} + +void cpu_usage_init() +{ + /* set idle thread hook */ + rt_thread_idle_sethook(cpu_usage_idle_hook); +} +extern struct rt_messagequeue mq; +extern rt_thread_t info_tid; +static void cpu_thread_entry(void *parameter) +{ +#ifdef RT_USING_RTGUI + struct rtgui_event_command ecmd; + + RTGUI_EVENT_COMMAND_INIT(&ecmd); + ecmd.type = RTGUI_CMD_USER_INT; + ecmd.command_id = CPU_UPDATE; +#else + struct lcd_msg msg; +#endif + + while (1) + { +#ifdef RT_USING_RTGUI + rtgui_thread_send(info_tid, &ecmd.parent, sizeof(ecmd)); +#else + msg.type = CPU_MSG; + msg.major = cpu_usage_major; + msg.minor = cpu_usage_minor; + rt_mq_send(&mq, &msg, sizeof(msg)); +#endif + rt_thread_delay(20); + } +} + +static rt_thread_t cpu_thread; +void rt_hw_cpu_init(void) +{ + cpu_usage_init(); + cpu_thread = rt_thread_create("cpu", cpu_thread_entry, RT_NULL, 384, 27, 5); + if(cpu_thread != RT_NULL) + rt_thread_startup(cpu_thread); +} diff --git a/bsp/fujitsu/mb9x/mb9bf500r/cpuusage.h b/bsp/fujitsu/mb9x/mb9bf500r/cpuusage.h new file mode 100644 index 0000000000..6a53481f3f --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/cpuusage.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#ifndef __CPUUSAGE_H__ +#define __CPUUSAGE_H__ + +#define CPU_UPDATE 1 + +void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor); +void rt_hw_cpu_init(void); + +#endif /*__ADC_H__ */ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.ewp b/bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.ewp new file mode 100644 index 0000000000..d51d49cf6b --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.ewp @@ -0,0 +1,2027 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 20 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 26 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 11 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 20 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 26 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 11 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + CMSIS + + $PROJ_DIR$\CMSIS\core_cm3.c + + + $PROJ_DIR$\CMSIS\start_iar.S + + + $PROJ_DIR$\CMSIS\system_mb9bf50x.c + + + + FM3 + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c + + + + Kernel + + $PROJ_DIR$\..\..\src\clock.c + + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\idle.c + + + $PROJ_DIR$\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\src\irq.c + + + $PROJ_DIR$\..\..\src\kservice.c + + + $PROJ_DIR$\..\..\src\mem.c + + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\object.c + + + $PROJ_DIR$\..\..\src\rtm.c + + + $PROJ_DIR$\..\..\src\scheduler.c + + + $PROJ_DIR$\..\..\src\slab.c + + + $PROJ_DIR$\..\..\src\thread.c + + + $PROJ_DIR$\..\..\src\timer.c + + + + Rtgui + + $PROJ_DIR$\..\..\components\rtgui\widgets\about_view.c + + + $PROJ_DIR$\..\..\components\rtgui\common\asc12font.c + + + $PROJ_DIR$\..\..\components\rtgui\common\asc16font.c + + + $PROJ_DIR$\..\..\components\rtgui\common\blit.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\box.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\button.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\checkbox.c + + + $PROJ_DIR$\..\..\components\rtgui\common\color.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\combobox.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\container.c + + + $PROJ_DIR$\..\..\components\rtgui\common\dc.c + + + $PROJ_DIR$\..\..\components\rtgui\common\dc_buffer.c + + + $PROJ_DIR$\..\..\components\rtgui\common\dc_client.c + + + $PROJ_DIR$\..\..\components\rtgui\common\dc_hw.c + + + $PROJ_DIR$\..\..\components\rtgui\server\driver.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\filelist_view.c + + + $PROJ_DIR$\..\..\components\rtgui\common\filerw.c + + + $PROJ_DIR$\..\..\components\rtgui\common\font.c + + + $PROJ_DIR$\..\..\components\rtgui\common\font_bmp.c + + + $PROJ_DIR$\..\..\components\rtgui\common\font_freetype.c + + + $PROJ_DIR$\..\..\components\rtgui\common\font_hz_bmp.c + + + $PROJ_DIR$\..\..\components\rtgui\common\font_hz_file.c + + + $PROJ_DIR$\..\..\components\rtgui\common\framebuffer_driver.c + + + $PROJ_DIR$\..\..\components\rtgui\common\hz12font.c + + + $PROJ_DIR$\..\..\components\rtgui\common\hz16font.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\iconbox.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image_bmp.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image_container.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image_hdc.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image_jpg.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image_png.c + + + $PROJ_DIR$\..\..\components\rtgui\common\image_xpm.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\label.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\list_view.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\listbox.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\listctrl.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\menu.c + + + $PROJ_DIR$\..\..\components\rtgui\server\mouse.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\notebook.c + + + $PROJ_DIR$\..\..\components\rtgui\server\panel.c + + + $PROJ_DIR$\..\..\components\rtgui\common\pixel_driver.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\progressbar.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\radiobox.c + + + $PROJ_DIR$\..\..\components\rtgui\common\region.c + + + $PROJ_DIR$\..\..\components\rtgui\common\rtgui_object.c + + + $PROJ_DIR$\..\..\components\rtgui\common\rtgui_system.c + + + $PROJ_DIR$\..\..\components\rtgui\common\rtgui_theme.c + + + $PROJ_DIR$\..\..\components\rtgui\common\rtgui_xml.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\scrollbar.c + + + $PROJ_DIR$\..\..\components\rtgui\server\server.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\slider.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\staticline.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\textbox.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\textview.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\title.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\toplevel.c + + + $PROJ_DIR$\..\..\components\rtgui\server\topwin.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\view.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\widget.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\window.c + + + $PROJ_DIR$\..\..\components\rtgui\widgets\workbench.c + + + + Startup + + $PROJ_DIR$\adc.c + + + $PROJ_DIR$\application.c + + + $PROJ_DIR$\board.c + + + $PROJ_DIR$\cpuusage.c + + + $PROJ_DIR$\info.c + + + $PROJ_DIR$\key.c + + + $PROJ_DIR$\lcd.c + + + $PROJ_DIR$\led.c + + + $PROJ_DIR$\startup.c + + + + + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.eww b/bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.eww new file mode 100644 index 0000000000..bdaf802ebd --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/fm3_easy_kit.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\fm3_easy_kit.ewp + + + + + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.ld b/bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.ld new file mode 100644 index 0000000000..3d0151d23b --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.ld @@ -0,0 +1,133 @@ +/* Program Entry, set to mark it as "used" and avoid gc */ +MEMORY +{ + CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 + DATA (rw) : ORIGIN = 0x1FFFC000, LENGTH = 0x0000C000 +} +ENTRY(Reset_Handler) +_system_stack_size = 0x200; + +SECTIONS +{ + .text : + { + . = ALIGN(4); + KEEP(*(.isr_vector)) /* Startup code */ + . = ALIGN(4); + *(.text) /* remaining code */ + *(.text.*) /* remaining code */ + *(.rodata) /* read-only data (constants) */ + *(.rodata*) + *(.glue_7) + *(.glue_7t) + *(.gnu.linkonce.t*) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + + . = ALIGN(4); + _etext = .; + } > CODE = 0 + + /* .ARM.exidx is sorted, so has to go in its own output section. */ + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + + /* This is used by the startup in order to initialize the .data secion */ + _sidata = .; + } > CODE + __exidx_end = .; + + /* .data section which is used for initialized data */ + + .data : AT (_sidata) + { + . = ALIGN(4); + /* This is used by the startup in order to initialize the .data secion */ + _sdata = . ; + + *(.data) + *(.data.*) + *(.gnu.linkonce.d*) + + . = ALIGN(4); + /* This is used by the startup in order to initialize the .data secion */ + _edata = . ; + } >DATA + + .stack : + { + . = . + _system_stack_size; + . = ALIGN(4); + _estack = .; + } >DATA + + __bss_start = .; + .bss : + { + . = ALIGN(4); + /* This is used by the startup in order to initialize the .bss secion */ + _sbss = .; + + *(.bss) + *(.bss.*) + *(COMMON) + + . = ALIGN(4); + /* This is used by the startup in order to initialize the .bss secion */ + _ebss = . ; + } > DATA + __bss_end = .; + + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} diff --git a/bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.sct b/bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.sct new file mode 100644 index 0000000000..f1a09f4900 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/fm3_rom.sct @@ -0,0 +1,15 @@ +; ************************************************************* +; *** Scatter-Loading Description File generated by uVision *** +; ************************************************************* + +LR_IROM1 0x00000000 0x00040000 { ; load region size_region + ER_IROM1 0x00000000 0x00040000 { ; load address = execution address + *.o (RESET, +First) + *(InRoot$$Sections) + .ANY (+RO) + } + RW_IRAM1 0x20000000 0x00004000 { ; RW data + .ANY (+RW +ZI) + } +} + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/font.h b/bsp/fujitsu/mb9x/mb9bf500r/font.h new file mode 100644 index 0000000000..92253c59c3 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/font.h @@ -0,0 +1,970 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ + +#ifndef __FONT_H +#define __FONT_H + +/* Font definition */ +#define ________ 0x00 +#define _______X 0x01 +#define ______X_ 0x02 +#define ______XX 0x03 +#define _____X__ 0x04 +#define _____X_X 0x05 +#define _____XX_ 0x06 +#define _____XXX 0x07 +#define ____X___ 0x08 +#define ____X__X 0x09 +#define ____X_X_ 0x0a +#define ____X_XX 0x0b +#define ____XX__ 0x0c +#define ____XX_X 0x0d +#define ____XXX_ 0x0e +#define ____XXXX 0x0f +#define ___X____ 0x10 +#define ___X___X 0x11 +#define ___X__X_ 0x12 +#define ___X__XX 0x13 +#define ___X_X__ 0x14 +#define ___X_X_X 0x15 +#define ___X_XX_ 0x16 +#define ___X_XXX 0x17 +#define ___XX___ 0x18 +#define ___XX__X 0x19 +#define ___XX_X_ 0x1a +#define ___XX_XX 0x1b +#define ___XXX__ 0x1c +#define ___XXX_X 0x1d +#define ___XXXX_ 0x1e +#define ___XXXXX 0x1f +#define __X_____ 0x20 +#define __X____X 0x21 +#define __X___X_ 0x22 +#define __X___XX 0x23 +#define __X__X__ 0x24 +#define __X__X_X 0x25 +#define __X__XX_ 0x26 +#define __X__XXX 0x27 +#define __X_X___ 0x28 +#define __X_X__X 0x29 +#define __X_X_X_ 0x2a +#define __X_X_XX 0x2b +#define __X_XX__ 0x2c +#define __X_XX_X 0x2d +#define __X_XXX_ 0x2e +#define __X_XXXX 0x2f +#define __XX____ 0x30 +#define __XX___X 0x31 +#define __XX__X_ 0x32 +#define __XX__XX 0x33 +#define __XX_X__ 0x34 +#define __XX_X_X 0x35 +#define __XX_XX_ 0x36 +#define __XX_XXX 0x37 +#define __XXX___ 0x38 +#define __XXX__X 0x39 +#define __XXX_X_ 0x3a +#define __XXX_XX 0x3b +#define __XXXX__ 0x3c +#define __XXXX_X 0x3d +#define __XXXXX_ 0x3e +#define __XXXXXX 0x3f +#define _X______ 0x40 +#define _X_____X 0x41 +#define _X____X_ 0x42 +#define _X____XX 0x43 +#define _X___X__ 0x44 +#define _X___X_X 0x45 +#define _X___XX_ 0x46 +#define _X___XXX 0x47 +#define _X__X___ 0x48 +#define _X__X__X 0x49 +#define _X__X_X_ 0x4a +#define _X__X_XX 0x4b +#define _X__XX__ 0x4c +#define _X__XX_X 0x4d +#define _X__XXX_ 0x4e +#define _X__XXXX 0x4f +#define _X_X____ 0x50 +#define _X_X___X 0x51 +#define _X_X__X_ 0x52 +#define _X_X__XX 0x53 +#define _X_X_X__ 0x54 +#define _X_X_X_X 0x55 +#define _X_X_XX_ 0x56 +#define _X_X_XXX 0x57 +#define _X_XX___ 0x58 +#define _X_XX__X 0x59 +#define _X_XX_X_ 0x5a +#define _X_XX_XX 0x5b +#define _X_XXX__ 0x5c +#define _X_XXX_X 0x5d +#define _X_XXXX_ 0x5e +#define _X_XXXXX 0x5f +#define _XX_____ 0x60 +#define _XX____X 0x61 +#define _XX___X_ 0x62 +#define _XX___XX 0x63 +#define _XX__X__ 0x64 +#define _XX__X_X 0x65 +#define _XX__XX_ 0x66 +#define _XX__XXX 0x67 +#define _XX_X___ 0x68 +#define _XX_X__X 0x69 +#define _XX_X_X_ 0x6a +#define _XX_X_XX 0x6b +#define _XX_XX__ 0x6c +#define _XX_XX_X 0x6d +#define _XX_XXX_ 0x6e +#define _XX_XXXX 0x6f +#define _XXX____ 0x70 +#define _XXX___X 0x71 +#define _XXX__X_ 0x72 +#define _XXX__XX 0x73 +#define _XXX_X__ 0x74 +#define _XXX_X_X 0x75 +#define _XXX_XX_ 0x76 +#define _XXX_XXX 0x77 +#define _XXXX___ 0x78 +#define _XXXX__X 0x79 +#define _XXXX_X_ 0x7a +#define _XXXX_XX 0x7b +#define _XXXXX__ 0x7c +#define _XXXXX_X 0x7d +#define _XXXXXX_ 0x7e +#define _XXXXXXX 0x7f +#define X_______ 0x80 +#define X______X 0x81 +#define X_____X_ 0x82 +#define X_____XX 0x83 +#define X____X__ 0x84 +#define X____X_X 0x85 +#define X____XX_ 0x86 +#define X____XXX 0x87 +#define X___X___ 0x88 +#define X___X__X 0x89 +#define X___X_X_ 0x8a +#define X___X_XX 0x8b +#define X___XX__ 0x8c +#define X___XX_X 0x8d +#define X___XXX_ 0x8e +#define X___XXXX 0x8f +#define X__X____ 0x90 +#define X__X___X 0x91 +#define X__X__X_ 0x92 +#define X__X__XX 0x93 +#define X__X_X__ 0x94 +#define X__X_X_X 0x95 +#define X__X_XX_ 0x96 +#define X__X_XXX 0x97 +#define X__XX___ 0x98 +#define X__XX__X 0x99 +#define X__XX_X_ 0x9a +#define X__XX_XX 0x9b +#define X__XXX__ 0x9c +#define X__XXX_X 0x9d +#define X__XXXX_ 0x9e +#define X__XXXXX 0x9f +#define X_X_____ 0xa0 +#define X_X____X 0xa1 +#define X_X___X_ 0xa2 +#define X_X___XX 0xa3 +#define X_X__X__ 0xa4 +#define X_X__X_X 0xa5 +#define X_X__XX_ 0xa6 +#define X_X__XXX 0xa7 +#define X_X_X___ 0xa8 +#define X_X_X__X 0xa9 +#define X_X_X_X_ 0xaa +#define X_X_X_XX 0xab +#define X_X_XX__ 0xac +#define X_X_XX_X 0xad +#define X_X_XXX_ 0xae +#define X_X_XXXX 0xaf +#define X_XX____ 0xb0 +#define X_XX___X 0xb1 +#define X_XX__X_ 0xb2 +#define X_XX__XX 0xb3 +#define X_XX_X__ 0xb4 +#define X_XX_X_X 0xb5 +#define X_XX_XX_ 0xb6 +#define X_XX_XXX 0xb7 +#define X_XXX___ 0xb8 +#define X_XXX__X 0xb9 +#define X_XXX_X_ 0xba +#define X_XXX_XX 0xbb +#define X_XXXX__ 0xbc +#define X_XXXX_X 0xbd +#define X_XXXXX_ 0xbe +#define X_XXXXXX 0xbf +#define XX______ 0xc0 +#define XX_____X 0xc1 +#define XX____X_ 0xc2 +#define XX____XX 0xc3 +#define XX___X__ 0xc4 +#define XX___X_X 0xc5 +#define XX___XX_ 0xc6 +#define XX___XXX 0xc7 +#define XX__X___ 0xc8 +#define XX__X__X 0xc9 +#define XX__X_X_ 0xca +#define XX__X_XX 0xcb +#define XX__XX__ 0xcc +#define XX__XX_X 0xcd +#define XX__XXX_ 0xce +#define XX__XXXX 0xcf +#define XX_X____ 0xd0 +#define XX_X___X 0xd1 +#define XX_X__X_ 0xd2 +#define XX_X__XX 0xd3 +#define XX_X_X__ 0xd4 +#define XX_X_X_X 0xd5 +#define XX_X_XX_ 0xd6 +#define XX_X_XXX 0xd7 +#define XX_XX___ 0xd8 +#define XX_XX__X 0xd9 +#define XX_XX_X_ 0xda +#define XX_XX_XX 0xdb +#define XX_XXX__ 0xdc +#define XX_XXX_X 0xdd +#define XX_XXXX_ 0xde +#define XX_XXXXX 0xdf +#define XXX_____ 0xe0 +#define XXX____X 0xe1 +#define XXX___X_ 0xe2 +#define XXX___XX 0xe3 +#define XXX__X__ 0xe4 +#define XXX__X_X 0xe5 +#define XXX__XX_ 0xe6 +#define XXX__XXX 0xe7 +#define XXX_X___ 0xe8 +#define XXX_X__X 0xe9 +#define XXX_X_X_ 0xea +#define XXX_X_XX 0xeb +#define XXX_XX__ 0xec +#define XXX_XX_X 0xed +#define XXX_XXX_ 0xee +#define XXX_XXXX 0xef +#define XXXX____ 0xf0 +#define XXXX___X 0xf1 +#define XXXX__X_ 0xf2 +#define XXXX__XX 0xf3 +#define XXXX_X__ 0xf4 +#define XXXX_X_X 0xf5 +#define XXXX_XX_ 0xf6 +#define XXXX_XXX 0xf7 +#define XXXXX___ 0xf8 +#define XXXXX__X 0xf9 +#define XXXXX_X_ 0xfa +#define XXXXX_XX 0xfb +#define XXXXXX__ 0xfc +#define XXXXXX_X 0xfd +#define XXXXXXX_ 0xfe +#define XXXXXXXX 0xff + + + + +const unsigned char FONTTYPE8_8[][8] = { +/* blank */ + { + ________, + ________, + ________, + ________, + ________, + ________, + ________, + ________} + +/* 0 */ + ,{ + __XXX___, + _XX_XX__, + XX___XX_, + XX___XX_, + XX___XX_, + _XX_XX__, + __XXX___, + ________} + +/* 1 */ + ,{ + ___XX___, + __XXX___, + ___XX___, + ___XX___, + ___XX___, + ___XX___, + _XXXXXX_, + ________} + +/* 2 */ + ,{ + _XXXXX__, + XX___XX_, + _____XX_, + ___XXX__, + __XX____, + _XX__XX_, + XXXXXXX_, + ________} + +/* 3 */ + ,{ + _XXXXX__, + XX___XX_, + _____XX_, + __XXXX__, + _____XX_, + XX___XX_, + _XXXXX__, + ________} + +/* 4 */ + ,{ + ___XXX__, + __XXXX__, + _XX_XX__, + XX__XX__, + XXXXXXX_, + ____XX__, + ___XXXX_, + ________} + +/* 5 */ + ,{ + XXXXXXX_, + XX______, + XX______, + XXXXXX__, + _____XX_, + XX___XX_, + _XXXXX__, + ________} + +/* 6 */ + ,{ + __XXX___, + _XX_____, + XX______, + XXXXXX__, + XX___XX_, + XX___XX_, + _XXXXX__, + ________} + +/* 7 */ + ,{ + XXXXXXX_, + XX___XX_, + ____XX__, + ___XX___, + __XX____, + __XX____, + __XX____, + ________} + +/* 8 */ + ,{ + _XXXXX__, + XX___XX_, + XX___XX_, + _XXXXX__, + XX___XX_, + XX___XX_, + _XXXXX__, + ________} + +/* 9 */ + ,{ + _XXXXX__, + XX___XX_, + XX___XX_, + _XXXXXX_, + _____XX_, + ____XX__, + _XXXX___, + ________} + +/* A */ + ,{ + __XXX___, + _XX_XX__, + XX___XX_, + XXXXXXX_, + XX___XX_, + XX___XX_, + XX___XX_, + ________} + +/* B */ + ,{ + XXXXXX__, + _XX__XX_, + _XX__XX_, + _XXXXX__, + _XX__XX_, + _XX__XX_, + XXXXXX__, + ________} + +/* C */ + ,{ + __XXXX__, + _XX__XX_, + XX______, + XX______, + XX______, + _XX__XX_, + __XXXX__, + ________} + +/* D */ + ,{ + XXXXX___, + _XX_XX__, + _XX__XX_, + _XX__XX_, + _XX__XX_, + _XX_XX__, + XXXXX___, + ________} + +/* E */ + ,{ + XXXXXXX_, + _XX___X_, + _XX_X___, + _XXXX___, + _XX_X___, + _XX___X_, + XXXXXXX_, + ________} + +/* F */ + ,{ + XXXXXXX_, + _XX___X_, + _XX_X___, + _XXXX___, + _XX_X___, + _XX_____, + XXXX____, + ________} + +/* G */ + ,{ + __XXXX__, + _XX__XX_, + XX______, + XX______, + XX__XXX_, + _XX__XX_, + __XXX_X_, + ________} + +/* H */ + ,{ + XX___XX_, + XX___XX_, + XX___XX_, + XXXXXXX_, + XX___XX_, + XX___XX_, + XX___XX_, + ________} + +/* I */ + ,{ + __XXXX__, + ___XX___, + ___XX___, + ___XX___, + ___XX___, + ___XX___, + __XXXX__, + ________} + +/* J */ + ,{ + ___XXXX_, + ____XX__, + ____XX__, + ____XX__, + XX__XX__, + XX__XX__, + _XXXX___, + ________} + +/* K */ + ,{ + XXX__XX_, + _XX__XX_, + _XX_XX__, + _XXXX___, + _XX_XX__, + _XX__XX_, + XXX__XX_, + ________} + +/* L */ + ,{ + XXXX____, + _XX_____, + _XX_____, + _XX_____, + _XX___X_, + _XX__XX_, + XXXXXXX_, + ________} + +/* M */ + ,{ + XX___XX_, + XXX_XXX_, + XXXXXXX_, + XXXXXXX_, + XX_X_XX_, + XX___XX_, + XX___XX_, + ________} + +/* N */ + ,{ + XX___XX_, + XXX__XX_, + XXXX_XX_, + XX_XXXX_, + XX__XXX_, + XX___XX_, + XX___XX_, + ________} + +/* O */ + ,{ + _XXXXX__, + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + _XXXXX__, + ________} + +/* P */ + ,{ + XXXXXX__, + _XX__XX_, + _XX__XX_, + _XXXXX__, + _XX_____, + _XX_____, + XXXX____, + ________} + +/* Q */ + ,{ + _XXXXX__, + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + XX__XXX_, + _XXXXX__, + ____XXX_} + +/* R */ + ,{ + XXXXXX__, + _XX__XX_, + _XX__XX_, + _XXXXX__, + _XX_XX__, + _XX__XX_, + XXX__XX_, + ________} + +/* S */ + ,{ + __XXXX__, + _XX__XX_, + __XX____, + ___XX___, + ____XX__, + _XX__XX_, + __XXXX__, + ________} + +/* T */ + ,{ + _XXXXXX_, + _XXXXXX_, + _X_XX_X_, + ___XX___, + ___XX___, + ___XX___, + __XXXX__, + ________} + +/* U */ + ,{ + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + _XXXXX__, + ________} + +/* V */ + ,{ + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + XX___XX_, + _XX_XX__, + __XXX___, + ________} + +/* W */ + ,{ + XX___XX_, + XX___XX_, + XX___XX_, + XX_X_XX_, + XX_X_XX_, + XXXXXXX_, + _XX_XX__, + ________} + +/* X */ + ,{ + XX___XX_, + XX___XX_, + _XX_XX__, + __XXX___, + _XX_XX__, + XX___XX_, + XX___XX_, + ________} + +/* Y */ + ,{ + _XX__XX_, + _XX__XX_, + _XX__XX_, + __XXXX__, + ___XX___, + ___XX___, + __XXXX__, + ________} + +/* Z */ + ,{ + XXXXXXX_, + XX___XX_, + X___XX__, + ___XX___, + __XX__X_, + _XX__XX_, + XXXXXXX_, + ________} + +/* a */ + ,{ + ________, + ________, + _XXXX___, + ____XX__, + _XXXXX__, + XX__XX__, + _XXX_XX_, + ________} + +/* b */ + ,{ + XXX_____, + _XX_____, + _XXXXX__, + _XX__XX_, + _XX__XX_, + _XX__XX_, + XX_XXX__, + ________} + +/* c */ + ,{ + ________, + ________, + _XXXXX__, + XX___XX_, + XX______, + XX___XX_, + _XXXXX__, + ________} + +/* d */ + ,{ + ___XXX__, + ____XX__, + _XXXXX__, + XX__XX__, + XX__XX__, + XX__XX__, + _XXX_XX_, + ________} + +/* e */ + ,{ + ________, + ________, + _XXXXX__, + XX___XX_, + XXXXXXX_, + XX______, + _XXXXX__, + ________} + +/* f */ + ,{ + __XXXX__, + _XX__XX_, + _XX_____, + XXXXX___, + _XX_____, + _XX_____, + XXXX____, + ________} + +/* g */ + ,{ + ________, + ________, + _XXX_XX_, + XX__XX__, + XX__XX__, + _XXXXX__, + ____XX__, + XXXXX___} + +/* h */ + ,{ + XXX_____, + _XX_____, + _XX_XX__, + _XXX_XX_, + _XX__XX_, + _XX__XX_, + XXX__XX_, + ________} + +/* i */ + ,{ + ___XX___, + ________, + __XXX___, + ___XX___, + ___XX___, + ___XX___, + __XXXX__, + ________} + +/* j */ + ,{ + _____XX_, + ________, + _____XX_, + _____XX_, + _____XX_, + _XX__XX_, + _XX__XX_, + __XXXX__} + +/* k */ + ,{ + XXX_____, + _XX_____, + _XX__XX_, + _XX_XX__, + _XXXX___, + _XX_XX__, + XXX__XX_, + ________} + +/* l */ + ,{ + __XXX___, + ___XX___, + ___XX___, + ___XX___, + ___XX___, + ___XX___, + __XXXX__, + ________} + +/* m */ + ,{ + ________, + ________, + XXX_XX__, + XXXXXXX_, + XX_X_XX_, + XX_X_XX_, + XX_X_XX_, + ________} + +/* n */ + ,{ + ________, + ________, + XX_XXX__, + _XX__XX_, + _XX__XX_, + _XX__XX_, + _XX__XX_, + ________} + +/* o */ + ,{ + ________, + ________, + _XXXXX__, + XX___XX_, + XX___XX_, + XX___XX_, + _XXXXX__, + ________} + +/* p */ + ,{ + ________, + ________, + XX_XXX__, + _XX__XX_, + _XX__XX_, + _XXXXX__, + _XX_____, + XXXX____} + +/* q */ + ,{ + ________, + ________, + _XXX_XX_, + XX__XX__, + XX__XX__, + _XXXXX__, + ____XX__, + ___XXXX_} + +/* r */ + ,{ + ________, + ________, + XX_XXX__, + _XXX_XX_, + _XX_____, + _XX_____, + XXXX____, + ________} + +/* s */ + ,{ + ________, + ________, + _XXXXXX_, + XX______, + _XXXXX__, + _____XX_, + XXXXXX__, + ________} + +/* t */ + ,{ + __XX____, + __XX____, + XXXXXX__, + __XX____, + __XX____, + __XX_XX_, + ___XXX__, + ________} + +/* u */ + ,{ + ________, + ________, + XX__XX__, + XX__XX__, + XX__XX__, + XX__XX__, + _XXX_XX_, + ________} + +/* v */ + ,{ + ________, + ________, + XX___XX_, + XX___XX_, + XX___XX_, + _XX_XX__, + __XXX___, + ________} + +/* w */ + ,{ + ________, + ________, + XX___XX_, + XX_X_XX_, + XX_X_XX_, + XXXXXXX_, + _XX_XX__, + ________} + +/* x */ + ,{ + ________, + ________, + XX___XX_, + _XX_XX__, + __XXX___, + _XX_XX__, + XX___XX_, + ________} + +/* y */ + ,{ + ________, + ________, + XX___XX_, + XX___XX_, + XX___XX_, + _XXXXXX_, + _____XX_, + XXXXXX__} + +/* z */ + ,{ + ________, + ________, + _XXXXXX_, + _X__XX__, + ___XX___, + __XX__X_, + _XXXXXX_, + ________} + +}; + +#endif /* __FONT_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf500r/info.c b/bsp/fujitsu/mb9x/mb9bf500r/info.c new file mode 100644 index 0000000000..fcf514f1b0 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/info.c @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ + +#include + +#ifdef RT_USING_RTGUI +#include +#include +#include + +#include +#include + +#include "adc.h" +#include "cpuusage.h" + +extern rt_uint16_t adc_value; +static rt_uint8_t index = 0 ; +static rt_bool_t view_event_handler(struct rtgui_widget* widget, struct rtgui_event* event) +{ + if (event->type == RTGUI_EVENT_PAINT) + { + struct rtgui_dc* dc; + struct rtgui_rect rect; + + dc = rtgui_dc_begin_drawing(widget); + if (dc == RT_NULL) + return RT_FALSE; + rtgui_widget_get_rect(widget, &rect); + + rtgui_dc_fill_rect(dc, &rect); + rect.x2 -= 1; rect.y2 -= 1; + rtgui_dc_draw_hline(dc, rect.x1, rect.x2, rect.y1); + rtgui_dc_draw_vline(dc, rect.x1, rect.y1, rect.y2); + + rtgui_dc_draw_hline(dc, rect.x1, rect.x2, rect.y2); + rtgui_dc_draw_vline(dc, rect.x2, rect.y1, rect.y2 + 1); + + /* shrink border */ + rtgui_rect_inflate(&rect, -1); + + /* draw text */ + rtgui_widget_get_rect(widget, &rect); + rect.y1 += 25; + rtgui_dc_draw_text(dc, " FM3 Easy Kit Demo", &rect); + rect.y1 += 10; + rtgui_dc_draw_text(dc, " rt-thread / RTGUI", &rect); + rtgui_dc_end_drawing(dc, RT_TRUE); + + return RT_FALSE; + } + else if (event->type == RTGUI_EVENT_KBD) + { + struct rtgui_dc* dc; + struct rtgui_rect rect; + struct rtgui_event_kbd* ekbd = (struct rtgui_event_kbd*)event; + if (ekbd->type == RTGUI_KEYDOWN) + { + char key_str[16]; + switch (ekbd->key) + { + case RTGUIK_LEFT: + rt_sprintf(key_str, "%s", "L"); + break; + case RTGUIK_RIGHT: + rt_sprintf(key_str, "%s", "R"); + break; + case RTGUIK_DOWN: + rt_sprintf(key_str, "%s", "D"); + break; + case RTGUIK_UP: + rt_sprintf(key_str, "%s", "U"); + break; + default: + rt_sprintf(key_str, "%s", "S"); + break; + } + dc = rtgui_dc_begin_drawing(widget); + if (dc == RT_NULL) + return RT_FALSE; + rect.x1 = 118; + rect.y1 = 1; + rect.x2 = 127; + rect.y2 = 10; + rtgui_dc_fill_rect(dc, &rect); + rtgui_dc_draw_text(dc, key_str, &rect); + rtgui_dc_end_drawing(dc, RT_TRUE); + } + else if (ekbd->type == RTGUI_KEYUP) + { + dc = rtgui_dc_begin_drawing(widget); + if (dc == RT_NULL) + return RT_FALSE; + rect.x1 = 118; + rect.y1 = 1; + rect.x2 = 127; + rect.y2 = 10; + rtgui_dc_fill_rect(dc, &rect); + //rtgui_dc_draw_text(dc, key_str, &rect); + rtgui_dc_end_drawing(dc, RT_TRUE); + } + } + else if (event->type == RTGUI_EVENT_COMMAND) + { + char str[16]; + struct rtgui_dc* dc; + struct rtgui_rect rect; + struct rtgui_event_command* ecmd; + rt_uint8_t major,minor; + dc = rtgui_dc_begin_drawing(widget); + if (dc == RT_NULL) + return RT_FALSE; + + ecmd = (struct rtgui_event_command*)event; + switch (ecmd->command_id) + { + case ADC_UPDATE: + rect.x1 = 1; + rect.y1 = 1; + rect.x2 = 117; + rect.y2 = 10; + rtgui_dc_fill_rect(dc, &rect); + rt_sprintf(str, "ADC = %d mv", adc_value); + rtgui_dc_draw_text(dc, str, &rect); + break; + case CPU_UPDATE: + cpu_usage_get(&major, &minor); + rect.x1 = 1; + rect.y1 = 12; + rect.x2 = 127; + rect.y2 = 22; + rtgui_dc_fill_rect(dc, &rect); + rt_sprintf(str, "CPU : %d.%d%", major, minor); + rtgui_dc_draw_text(dc, str, &rect); + + rect.y1 = 23; + rect.y2 = 63; + index++; + if (index == 127) + { + index = 1; + rtgui_dc_fill_rect(dc, &rect); + } + if (major>40) + rtgui_dc_draw_vline(dc, index, rect.y1, rect.y2); + else + rtgui_dc_draw_vline(dc, index, rect.y2-major, rect.y2); + break; + } + rtgui_dc_end_drawing(dc, RT_TRUE); + } + + return rtgui_view_event_handler(widget, event); +} + +static void info_entry(void* parameter) +{ + rt_mq_t mq; + struct rtgui_view* view; + struct rtgui_workbench* workbench; + + mq = rt_mq_create("qInfo", 256, 4, RT_IPC_FLAG_FIFO); + rtgui_thread_register(rt_thread_self(), mq); + + workbench = rtgui_workbench_create("info", "workbench"); + if(workbench == RT_NULL) + return; + + view = rtgui_view_create("view"); + RTGUI_WIDGET_BACKGROUND(RTGUI_WIDGET(view)) = white; + RTGUI_WIDGET_FOREGROUND(RTGUI_WIDGET(view)) = black; + rtgui_widget_set_event_handler(RTGUI_WIDGET(view), view_event_handler); + + rtgui_workbench_add_view(workbench, view); + /* this view can be focused */ + RTGUI_WIDGET(view)->flag |= RTGUI_WIDGET_FLAG_FOCUSABLE; + /* set widget focus */ + rtgui_widget_focus(RTGUI_WIDGET(view)); + + rtgui_view_show(view, RT_FALSE); + + rtgui_workbench_event_loop(workbench); + + rtgui_thread_deregister(rt_thread_self()); + rt_mq_delete(mq); +} + +rt_thread_t info_tid; +void info_init() +{ + info_tid = rt_thread_create("info", + info_entry, RT_NULL, + 2048, 25, 10); + + if (info_tid != RT_NULL) rt_thread_startup(info_tid); +} + +void rtgui_startup() +{ + rtgui_rect_t rect; + + rtgui_system_server_init(); + + /* register dock panel */ + rect.x1 = 0; + rect.y1 = 0; + rect.x2 = 128; + rect.y2 = 64; + rtgui_panel_register("info", &rect); + rtgui_panel_set_default_focused("info"); + + /*init info workbench */ + info_init(); +} + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/key.c b/bsp/fujitsu/mb9x/mb9bf500r/key.c new file mode 100644 index 0000000000..1886e72974 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/key.c @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#include +#include "key.h" +#include "lcd.h" + +#ifdef RT_USING_RTGUI +#include +#include +#endif + +static void key_io_init(void) +{ + /*Select CPIO function*/ + KEY_PFR &= ~KEY_MASK; + /*Set CPIO Pull-Up function*/ + KEY_PCR |= KEY_MASK; + /*Make button pins inputs*/ + KEY_DDR &= ~KEY_MASK; +} + +static void key_thread_entry(void *parameter) +{ +#ifdef RT_USING_RTGUI + rt_time_t next_delay; + rt_uint8_t i; + + struct rtgui_event_kbd kbd_event; + + key_io_init(); + + /* init keyboard event */ + RTGUI_EVENT_KBD_INIT(&kbd_event); + kbd_event.mod = RTGUI_KMOD_NONE; + kbd_event.unicode = 0; + + while (1) + { + next_delay = RT_TICK_PER_SECOND/10; + kbd_event.key = RTGUIK_UNKNOWN; + kbd_event.type = RTGUI_KEYDOWN; + + if (KEY_ENTER_GETVALUE() == 0 ) + { + for(i=0; ; i++) + { + rt_thread_delay( next_delay ); + if (KEY_ENTER_GETVALUE() == 0) + { + if (i>=4) + { + /* HOME key */ + kbd_event.key = RTGUIK_HOME; + next_delay = RT_TICK_PER_SECOND/5; + break; + } + } + else + { + kbd_event.key = RTGUIK_RETURN; + break; + } + } + } + + if (KEY_DOWN_GETVALUE() == 0) + { + kbd_event.key = RTGUIK_DOWN; + } + + if (KEY_UP_GETVALUE() == 0) + { + kbd_event.key = RTGUIK_UP; + } + + if (KEY_RIGHT_GETVALUE() == 0) + { + kbd_event.key = RTGUIK_RIGHT; + } + + if (KEY_LEFT_GETVALUE() == 0) + { + kbd_event.key = RTGUIK_LEFT; + } + + if (kbd_event.key != RTGUIK_UNKNOWN) + { + /* post down event */ + rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event)); + } + else + { + kbd_event.type = RTGUI_KEYUP; + rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event)); + } + /* wait next key press */ + rt_thread_delay(next_delay); + } +#else + extern struct rt_messagequeue mq; + rt_time_t next_delay; + struct lcd_msg msg; + msg.type = KEY_MSG; + + key_io_init(); + + while (1) + { + msg.key = NO_KEY; + + next_delay = RT_TICK_PER_SECOND/10; + + if (KEY_ENTER_GETVALUE() == 0 ) + { + msg.key = KEY_ENTER; + } + + if (KEY_DOWN_GETVALUE() == 0) + { + msg.key = KEY_DOWN; + } + + if (KEY_UP_GETVALUE() == 0) + { + msg.key = KEY_UP; + } + + if (KEY_RIGHT_GETVALUE() == 0) + { + msg.key = KEY_RIGHT; + } + + if (KEY_LEFT_GETVALUE() == 0) + { + msg.key = KEY_LEFT; + } + + rt_mq_send(&mq, &msg, sizeof(msg)); + + /* wait next key press */ + rt_thread_delay(next_delay); + } +#endif +} + +static rt_thread_t key_thread; +void rt_hw_key_init(void) +{ + key_thread = rt_thread_create("key", key_thread_entry, RT_NULL, 384, 28, 5); + if (key_thread != RT_NULL) + rt_thread_startup(key_thread); +} diff --git a/bsp/fujitsu/mb9x/mb9bf500r/key.h b/bsp/fujitsu/mb9x/mb9bf500r/key.h new file mode 100644 index 0000000000..45c044c7c0 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/key.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-06 lgnq + */ +#ifndef __KEY_H__ +#define __KEY_H__ + +#include "mb9bf506r.h" + +#define KEY_DOWN (1<<0) +#define KEY_ENTER (1<<1) +#define KEY_LEFT (1<<2) +#define KEY_RIGHT (1<<3) +#define KEY_UP (1<<4) +#define NO_KEY (1<<5) + +#define KEY_MASK (KEY_DOWN | KEY_ENTER | KEY_LEFT | KEY_RIGHT | KEY_UP) +#define KEY_PFR (FM3_GPIO->PFR7) +#define KEY_PCR (FM3_GPIO->PCR7) +#define KEY_PDIR (FM3_GPIO->PDIR7) +#define KEY_DDR (FM3_GPIO->DDR7) + +#define RT_DEVICE_CTRL_KEY_SCAN 0 +#define RT_DEVICE_CTRL_KEY_STATUS 1 + +#define SET_BIT(byte, bit) ((byte) |= (1<<(bit))) +#define CLR_BIT(byte, bit) ((byte) &= ~(1<<(bit))) +#define TST_BIT(byte, bit) (((byte) & (1<<(bit)))?1:0) + +#define KEY_ENTER_GETVALUE() TST_BIT(KEY_PDIR, 1) +#define KEY_DOWN_GETVALUE() TST_BIT(KEY_PDIR, 0) +#define KEY_UP_GETVALUE() TST_BIT(KEY_PDIR, 4) +#define KEY_RIGHT_GETVALUE() TST_BIT(KEY_PDIR, 3) +#define KEY_LEFT_GETVALUE() TST_BIT(KEY_PDIR, 2) + +void rt_hw_key_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/lcd.c b/bsp/fujitsu/mb9x/mb9bf500r/lcd.c new file mode 100644 index 0000000000..8b61abf2e0 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/lcd.c @@ -0,0 +1,477 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-05 lgnq ZYMG12864C3 LCD driver + */ + +#include +#include "lcd.h" +#include "font.h" + +static struct rt_device_graphic_info _lcd_info; +static rt_uint8_t gui_disp_buf[GUI_LCM_YMAX/8][GUI_LCM_XMAX]; +const unsigned char BIT_MASK[8] = {0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01}; +/* simple font: ' ', '0'~'9','a'~'z','A'~'Z' */ +extern const unsigned char FONTTYPE8_8[][8]; + +rt_uint32_t x; +rt_uint32_t y; + +void power_delay(void) +{ + rt_uint32_t i = 0x4ffff; + while(i--) + ; +} + +void delay(void) +{ + rt_uint8_t i = 0x8; + while(i--) + ; +} + +void reset_delay(void) +{ + rt_uint8_t i = 0xff; + while(i--) + ; +} + +void lcd_write_cmd(unsigned char command) +{ + rt_uint8_t i; + + LCD_PS_LOW(); + LCD_CS_LOW(); + LCD_CD_LOW(); + for (i=0; i<8; i++) + { + if (command & (0x80 >> i)) + LCD_DATA_HIGH(); + else + LCD_DATA_LOW(); + + LCD_CLK_LOW(); + delay(); + LCD_CLK_HIGH(); + delay(); + } + LCD_CS_HIGH(); +} + +void lcd_write_data(unsigned char data) +{ + rt_uint8_t i; + + LCD_PS_LOW(); + LCD_CS_LOW(); + LCD_CD_HIGH(); + for (i=0; i<8; i++) + { + if (data & (0x80 >> i)) + LCD_DATA_HIGH(); + else + LCD_DATA_LOW(); + + LCD_CLK_LOW(); + delay(); + LCD_CLK_HIGH(); + delay(); + } + LCD_CS_HIGH(); +} + +#ifdef RT_USING_RTGUI +#include +#include + +static void rt_hw_lcd_update(struct rt_device_rect_info *rect_info) +{ + rt_uint8_t i,j = GUI_LCM_XMAX; + rt_uint8_t* p = (rt_uint8_t*)gui_disp_buf; + + for (i=0; i> 4; + lcd_write_cmd(SET_PAGE_ADDR_0 | page); + lcd_write_cmd(SET_COLH_ADDR_0 | colh); + lcd_write_cmd(SET_COLL_ADDR_0 | coll); + lcd_write_data(gui_disp_buf[page][i]); + } +} + +const struct rtgui_graphic_driver_ops _lcd_ops = +{ + rt_hw_lcd_set_pixel, + rt_hw_lcd_get_pixel, + rt_hw_lcd_draw_hline, + rt_hw_lcd_draw_vline, + rt_hw_lcd_draw_raw_hline +}; +#endif + +void lcd_io_init() +{ + /* Release the analog input function*/ + FM3_GPIO->ADE =0x03; + /*Select CPIO function*/ + LCD_CS_PFR &= ~LCD_CS; + /*Make pin output*/ + LCD_CS_DDR |= LCD_CS; + /*Select CPIO function*/ + LCD_CD_PFR &= ~LCD_CD; + /*Make pin output*/ + LCD_CD_DDR |= LCD_CD; + /*Select CPIO function*/ + LCD_PS_PFR &= ~LCD_PS; + /*Make pin output*/ + LCD_PS_DDR |= LCD_PS; + /*Select CPIO function*/ + LCD_CLK_PFR &= ~LCD_CLK; + /*Make pin output*/ + LCD_CLK_DDR |= LCD_CLK; + /*Select CPIO function*/ + LCD_DATA_PFR &= ~LCD_DATA; + /*Make pin output*/ + LCD_DATA_DDR |= LCD_DATA; +} + +/* RT-Thread Device Interface */ +static rt_err_t rt_lcd_init (rt_device_t dev) +{ + lcd_io_init(); + + power_delay(); + lcd_write_cmd(DISPLAY_OFF); + reset_delay(); + // Resetting circuit + lcd_write_cmd(RESET_LCD); + reset_delay(); + // LCD bias setting + lcd_write_cmd(SET_LCD_BIAS_9); + reset_delay(); + // ADC selection: display from left to right + lcd_write_cmd(SET_ADC_NORMAL); + reset_delay(); + // Common output state selection: display from up to down + lcd_write_cmd(COM_SCAN_DIR_REVERSE); + reset_delay(); + + lcd_write_cmd(POWER_BOOSTER_ON); + power_delay(); // 50ms requried + lcd_write_cmd(POWER_REGULATOR_ON); + power_delay(); // 50ms + lcd_write_cmd(POWER_FOLLOWER_ON); + power_delay(); // 50ms + + // Setting the built-in resistance radio for regulation of the V0 voltage + // Electronic volume control + // Power control setting + lcd_write_cmd(SET_ELECVOL_REG|0x05); + delay(); + lcd_write_cmd(SET_ELECVOL_MODE); + delay(); + lcd_write_cmd(SET_ELECVOL_REG); + delay(); + // LCD_Clear(); + delay(); + lcd_write_cmd(SET_PAGE_ADDR_0); + delay(); + lcd_write_cmd(SET_COLH_ADDR_0); + delay(); + lcd_write_cmd(SET_COLL_ADDR_0); + delay(); + lcd_write_cmd(DISPLAY_ON); + delay(); + + lcd_write_cmd(DISPLAY_ALL_ON); + delay(); + lcd_write_cmd(DISPLAY_OFF); + delay(); + lcd_write_cmd(DISPLAY_ON); + delay(); + lcd_write_cmd(DISPLAY_ALL_NORMAL); + delay(); + + return RT_EOK; +} + +/******************************************************************************* +* Function Name : LCD_FillAll +* Description : Fill the whole LCD. +* Input : None +* Output : None +* Return : None +*******************************************************************************/ +void LCD_FillAll(unsigned char* buffer) +{ + unsigned char i,j = GUI_LCM_XMAX; + unsigned char* p = buffer; + + for (i=0; i> 4; + + lcd_write_cmd(SET_PAGE_ADDR_0 | page); // page no. + lcd_write_cmd(SET_COLH_ADDR_0 | colh); // fixed col first addr + lcd_write_cmd(SET_COLL_ADDR_0 | coll); + lcd_write_data(gui_disp_buf[page][x]); +} + +/**************************************************************************** +* Function Name : LCD_PutChar +* Description : output a char to screen + (the char only can be ' ','0'~'9','A'~'Z','a'~'z') +* Input : x X-coordinate + y Y-coordinate + ch character +* Output : None +* Return : 1 Success + 0 Fail +****************************************************************************/ +unsigned char LCD_PutChar(unsigned long x, unsigned long y, unsigned char ch) +{ + unsigned char data; + unsigned char i, j; + + if( x >=(GUI_LCM_XMAX-8) ) return(0); + if( y >=(GUI_LCM_YMAX-8) ) return(0); + + if(ch == 0x20) + ch -= 0x20; + else if((ch >= 0x30)&&(ch <= 0x39)) + ch -= 0x2f; + else if((ch >= 0x41)&&(ch <= 0x5a)) + ch -= 0x36; + else if((ch >= 0x61)&&(ch <= 0x7a)) + ch -= 0x3C; + else + return(0); + + for(i = 0; i < 8; i++) + { + data = FONTTYPE8_8[ch][i]; + + for(j = 0; j < 8; j++) + { + if( (data&BIT_MASK[j]) == 0) + gui_disp_buf[y / 8][x] &= (~(0x01 << ( y % 8))); + else + gui_disp_buf[y / 8][x] |= (0x01 <<( y % 8)); + LCD_UpdatePoint(x, y); + x ++; + } + x -= 8; + y++; + } + + return(1); +} + +/**************************************************************************** +* Function Name : LCD_PutString +* Description : output string to screen +* Input : x X-coordinate + y Y-coordinate + str pointer to string +* Output : None +* Return : None +****************************************************************************/ +void LCD_PutString(unsigned long x, unsigned long y, char *str) +{ + while(1) + { + if( (*str)=='\0' ) break; + if( LCD_PutChar(x, y, *str++) == 0 ) break; + x += 6; + } +} + +static rt_err_t rt_lcd_control (rt_device_t dev, int cmd, void *args) +{ + switch (cmd) + { +#ifdef RT_USING_RTGUI + case RTGRAPHIC_CTRL_RECT_UPDATE: + rt_hw_lcd_update(args); + break; + case RTGRAPHIC_CTRL_POWERON: + break; + case RTGRAPHIC_CTRL_POWEROFF: + break; + case RTGRAPHIC_CTRL_GET_INFO: + rt_memcpy(args, &_lcd_info, sizeof(_lcd_info)); + break; + case RTGRAPHIC_CTRL_SET_MODE: + break; +#else + case RT_DEVICE_CTRL_LCD_DISPLAY_ON: + lcd_write_cmd(DISPLAY_ON); + break; + case RT_DEVICE_CTRL_LCD_DISPLAY_OFF: + lcd_write_cmd(DISPLAY_OFF); + break; + case RT_DEVICE_CTRL_LCD_PUT_STRING: + LCD_PutString(x, y, (char*)args); + break; + case RT_DEVICE_CTRL_LCD_CLEAR_SCR: + LCD_ClearSCR(); + break; +#endif + } + + return RT_EOK; +} + +void rt_hw_lcd_init(void) +{ + rt_device_t lcd = rt_malloc(sizeof(struct rt_device)); + if (lcd == RT_NULL) return; /* no memory yet */ + + _lcd_info.bits_per_pixel = 16; + _lcd_info.pixel_format = RTGRAPHIC_PIXEL_FORMAT_RGB565; + _lcd_info.framebuffer = RT_NULL; + _lcd_info.width = LCD_WIDTH; + _lcd_info.height = LCD_HEIGHT; + + /* init device structure */ + lcd->type = RT_Device_Class_Unknown; + lcd->init = rt_lcd_init; + lcd->open = RT_NULL; + lcd->close = RT_NULL; + lcd->control = rt_lcd_control; +#ifdef RT_USING_RTGUI + lcd->user_data = (void*)&_lcd_ops; +#endif + /* register lcd device to RT-Thread */ + rt_device_register(lcd, "lcd", RT_DEVICE_FLAG_RDWR); +} diff --git a/bsp/fujitsu/mb9x/mb9bf500r/lcd.h b/bsp/fujitsu/mb9x/mb9bf500r/lcd.h new file mode 100644 index 0000000000..e0fa9efdc3 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/lcd.h @@ -0,0 +1,185 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2008-03-29 Yi.Qiu + * 2011-06-13 lgnq modified for FM3 easy kit + */ +#ifndef __LCD_H__ +#define __LCD_H__ + +#include +#include "mb9bf506r.h" + +/********* LCD Hardward Interface ************* +LCD_CS PORT1.7 +LCD_CD PORT1.6 +LCD_WR PORT1.5 +LCD_RD PORT1.4 +LCD_SCK PORT1.3 +LCD_MOSI PORT1.2 +LCD_C86 PORT1.1 +LCD_PS PORT1.0 +LCD_DATA[0..7] PORT5.[0..7] +***********************************************/ +#define LCD_CS (1UL << 7) +#define LCD_CS_DDR (FM3_GPIO->DDR1) +#define LCD_CS_PFR (FM3_GPIO->PFR1) +#define LCD_CS_PDOR (FM3_GPIO->PDOR1) + +#define LCD_CD (1UL << 6) +#define LCD_CD_DDR (FM3_GPIO->DDR1) +#define LCD_CD_PFR (FM3_GPIO->PFR1) +#define LCD_CD_PDOR (FM3_GPIO->PDOR1) + +#define LCD_PS (1UL << 0) +#define LCD_PS_DDR (FM3_GPIO->DDR1) +#define LCD_PS_PFR (FM3_GPIO->PFR1) +#define LCD_PS_PDOR (FM3_GPIO->PDOR1) + +#define LCD_CLK (1UL << 6) +#define LCD_CLK_DDR (FM3_GPIO->DDR5) +#define LCD_CLK_PFR (FM3_GPIO->PFR5) +#define LCD_CLK_PDOR (FM3_GPIO->PDOR5) + +#define LCD_DATA (1UL << 7) +#define LCD_DATA_DDR (FM3_GPIO->DDR5) +#define LCD_DATA_PFR (FM3_GPIO->PFR5) +#define LCD_DATA_PDOR (FM3_GPIO->PDOR5) + +/* LCD driver for ZYMG12864C3 */ +#define LCD_WIDTH 128 +#define LCD_HEIGHT 64 + +// Driver the LCD with Parallel or serial interface and the command/data control pin is gpio +#define LCD_CS_HIGH() LCD_CS_PDOR |= LCD_CS +#define LCD_CS_LOW() LCD_CS_PDOR &= ~LCD_CS + +#define LCD_CD_HIGH() LCD_CD_PDOR |= LCD_CD +#define LCD_CD_LOW() LCD_CD_PDOR &= ~LCD_CD + +#define LCD_PS_HIGH() LCD_PS_PDOR |= LCD_PS +#define LCD_PS_LOW() LCD_PS_PDOR &= ~LCD_PS + +#define LCD_CLK_HIGH() LCD_CLK_PDOR |= LCD_CLK +#define LCD_CLK_LOW() LCD_CLK_PDOR &= ~LCD_CLK + +#define LCD_DATA_HIGH() LCD_DATA_PDOR |= LCD_DATA +#define LCD_DATA_LOW() LCD_DATA_PDOR &= ~LCD_DATA + +// define the arrtibute of ZYMG12864(LCM) +#define GUI_LCM_XMAX 128 // defined the lcd's line-number is 128 +#define GUI_LCM_YMAX 64 // defined the lcd's column-number is 64 +#define GUI_LCM_PAGE 8 // defined the lcd's page-number is 8(GUI_LCM_YMAX/8) + +/* set LCD command */ +#define DISPLAY_ON 0xAF // A0,RD,WR:010 +#define DISPLAY_OFF 0xAE // A0,RD,WR:010 + +#define SET_START_LINE_0 0x40 // A0,RD,WR:010; line0~line63 +#define SET_PAGE_ADDR_0 0xB0 // A0,RD,WR:010; addr0~addr8 +#define SET_COLH_ADDR_0 0x10 // A0,RD,WR:010; +#define SET_COLL_ADDR_0 0x00 // A0,RD,WR:010; addr0~addr131 + +#define READ_STATUS 0x-0 // A0,RD,WR:001; BUSY | ADC | ON/OFF | RESET | 0 0 0 0 +#define STATUS_BUSY 0x80 +#define STATUS_ADC_REVERSE 0x40 // column address 131-n : SEG n, else column address n : SEG n +#define STATUS_DISPLAY_OFF 0x20 +#define STATUS_RESET 0x80 + +#define WRITE_DATA 0x-- // A0,RD,WR:110 +#define READ_DATE 0x-- // A0,RD,WR:101; spi mode is unavailable + +#define SET_ADC_NORMAL 0xA0 // A0,RD,WR:010 +#define SET_ADC_REVERSE 0xA1 // A0,RD,WR:010 +#define DISPLAY_NORMAL 0xA6 // A0,RD,WR:010 +#define DISPLAY_REVERSE 0xA7 // A0,RD,WR:010; reverse color +#define DISPLAY_ALL_ON 0xA5 // A0,RD,WR:010 +#define DISPLAY_ALL_NORMAL 0xA4 // A0,RD,WR:010 + +/************************************************************* +* bias: 1/65duty | 1/49duty | 1/33duty | 1/55duty | 1/53duty * +* ---------------|----------|----------|----------|--------- * +* A2: 1/9 bias | 1/8 bias | 1/6 bias | 1/8 bias | 1/8 bias * +* A3: 1/7 bias | 1/6 bias | 1/5 bias | 1/6 bias | 1/6 bias * +**************************************************************/ + +#define SET_LCD_BIAS_7 0xA3 // A0,RD,WR:010 +#define SET_LCD_BIAS_9 0xA2 // A0,RD,WR:010 + +#define RMW_MODE_ENABLE 0xE0 // A0,RD,WR:010; the column address locked when read command operating +#define RMW_MODE_END 0xEE // A0,RD,WR:010; returns to the column address when RMW was entered. +#define RESET_LCD 0xE2 // A0,RD,WR:010 + + +/************************************************************************************** +* Com Scan Dir: | 1/65duty | 1/49duty | 1/33duty | 1/55duty | 1/53duty * +* --------------|-------------|-------------|-------------|------------------------ * +* C0: Normal | COM0:COM63 | COM0:COM47 | COM0:COM31 | COM0:COM53 | COM0:COM51 * +* C8: Reverse | COM63:COM0 | COM47:COM0 | COM31:COM0 | COM53:COM0 | COM51:COM0 * +***************************************************************************************/ + +#define COM_SCAN_DIR_NORMAL 0xC0 // A0,RD,WR:010 +#define COM_SCAN_DIR_REVERSE 0xC8 // A0,RD,WR:010 + +// 0 0 1 0 1 | Booster On | Regulator On | Follower On +#define POWER_BOOSTER_ON 0x2C // A0,RD,WR:010 +#define POWER_REGULATOR_ON 0x2E // A0,RD,WR:010 +#define POWER_FOLLOWER_ON 0x2F // A0,RD,WR:010 + +#define SET_RESISTOR_RATIO 0x20 // A0,RD,WR:010; 20~27:small~large + +#define SET_ELECVOL_MODE 0x81 // A0,RD,WR:010; double byte command +#define SET_ELECVOL_REG 0x20 // A0,RD,WR:010; the electronic volume(64 voltage levels:00~3F) function is not used. + +#define SLEEP_MODE_ENABLE 0xAC // A0,RD,WR:010; double byte command, preceding command +#define SLEEP_MODE_DISABLE 0xAD // A0,RD,WR:010; preceding command +#define SLEEP_MODE_DELIVER 0x00 // A0,RD,WR:010; following command + +#define BOOST_RATIO_SET 0xF8 // A0,RD,WR:010; double byte command, preceding command +#define BOOST_RATIO_234 0x00 // A0,RD,WR:010; following command +#define BOOST_RATIO_5 0x01 // A0,RD,WR:010; following command +#define BOOST_RATIO_6 0x03 // A0,RD,WR:010; following command + +#define COMMAND_NOP 0xE3 // A0,RD,WR:010 +#define COMMAND_IC_TEST 0xFC // A0,RD,WR:010; don't use + +#define RT_DEVICE_CTRL_LCD_GET_WIDTH 0 +#define RT_DEVICE_CTRL_LCD_GET_HEIGHT 1 +#define RT_DEVICE_CTRL_LCD_GET_BPP 2 +#define RT_DEVICE_CTRL_LCD_GET_FRAMEBUFFER 3 +#define RT_DEVICE_CTRL_LCD_POWER_ON 4 +#define RT_DEVICE_CTRL_LCD_POWER_OFF 5 +#define RT_DEVICE_CTRL_LCD_CLEAR_SCR 6 +#define RT_DEVICE_CTRL_LCD_FILL_ALL 7 +#define RT_DEVICE_CTRL_LCD_UPDATE_POINT 8 +#define RT_DEVICE_CTRL_LCD_DISPLAY_ON 9 +#define RT_DEVICE_CTRL_LCD_DISPLAY_OFF 10 +#define RT_DEVICE_CTRL_LCD_PUT_STRING 11 + +enum +{ + ADC_MSG, + KEY_MSG, + CPU_MSG, + MAX_MSG, +}; + +struct lcd_msg +{ + rt_uint8_t type; + rt_uint16_t adc_value; + rt_uint8_t key; + rt_uint16_t major; + rt_uint16_t minor; +}; + +extern rt_uint32_t x; +extern rt_uint32_t y; + +void rt_hw_lcd_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/led.c b/bsp/fujitsu/mb9x/mb9bf500r/led.c new file mode 100644 index 0000000000..ee28af7035 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/led.c @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#include +#include + +#include "mb9bf506r.h" +#include "led.h" + +void rt_hw_led_on(rt_uint8_t num) +{ + RT_ASSERT(num < LEDS_MAX_NUMBER); + + switch (num) + { + case 1: + LED_PDOR &= ~LED1; + break; + case 2: + LED_PDOR &= ~LED2; + break; + case 3: + LED_PDOR &= ~LED3; + break; + default: + break; + } +} + +void rt_hw_led_off(rt_uint8_t num) +{ + RT_ASSERT(num < LEDS_MAX_NUMBER); + + switch (num) + { + case 1: + LED_PDOR |= LED1; + break; + case 2: + LED_PDOR |= LED2; + break; + case 3: + LED_PDOR |= LED3; + break; + default: + break; + } +} + +void rt_hw_led_toggle(rt_uint8_t num) +{ + RT_ASSERT(num < LEDS_MAX_NUMBER); + + switch (num) + { + case 1: + if (LED_PDOR&LED1) + LED_PDOR &= ~LED1; + else + LED_PDOR |= LED1; + break; + case 2: + if (LED_PDOR&LED2) + LED_PDOR &= ~LED2; + else + LED_PDOR |= LED2; + break; + case 3: + if (LED_PDOR&LED3) + LED_PDOR &= ~LED3; + else + LED_PDOR |= LED3; + break; + default: + break; + } +} + +static rt_err_t led_io_init(void) +{ + /*Select CPIO function*/ + LED_PFR &= ~LED_MASK; + /*Set Pin to turn off leds*/ + LED_PDOR |= LED_MASK; + /*Make led pins outputs*/ + LED_DDR |= LED_MASK; + + //LED3 is controled by PWM + FM3_GPIO->PFR3 = 0x1000; + FM3_GPIO->EPFR04 = 0x00080000; + FM3_BT2_PWM->TMCR = 0x0018; + FM3_BT2_PWM->TMCR2 = 0x01; /* cks=0b1000 count clk 1/512 */ + FM3_BT2_PWM->STC = 0x00; + FM3_BT2_PWM->PCSR = 0x61A; /* Down count = 1562 */ + FM3_BT2_PWM->PDUT = 0x0; /* Duty count = 16/1562=10% */ + + FM3_BT2_PWM->TMCR |= 0x03; /* start base timer(softwere TRG) */ + return RT_EOK; +} + +void pwm_update(rt_uint16_t value) +{ + FM3_BT2_PWM->PDUT = value; +} + +static void led1_thread_entry(void *parameter) +{ + while (1) + { + rt_hw_led_toggle(1); + rt_thread_delay(RT_TICK_PER_SECOND); + } +} + +static void led2_thread_entry(void *parameter) +{ + while (1) + { + rt_hw_led_toggle(2); + rt_thread_delay(RT_TICK_PER_SECOND/2); + } +} + +static rt_thread_t led1_thread; +static rt_thread_t led2_thread; +void rt_hw_led_init(void) +{ + led_io_init(); + + led1_thread = rt_thread_create("led1", led1_thread_entry, RT_NULL, 384, 29, 5); + if (led1_thread != RT_NULL) + rt_thread_startup(led1_thread); + + led2_thread = rt_thread_create("led2", led2_thread_entry, RT_NULL, 384, 30, 5); + if (led2_thread != RT_NULL) + rt_thread_startup(led2_thread); +} + + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/led.h b/bsp/fujitsu/mb9x/mb9bf500r/led.h new file mode 100644 index 0000000000..c4a433cb81 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/led.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#ifndef __LED_H__ +#define __LED_H__ + +#include "mb9bf506r.h" + +#define LEDS_MAX_NUMBER 4 + +/*LEDs*/ +#define LED1 (1UL<<10) +#define LED2 (1UL<<11) +#define LED3 (1UL<<12) +#define LED_MASK (LED1 | LED2 | LED3) + +#define LED_PFR (FM3_GPIO->PFR3) +#define LED_DDR (FM3_GPIO->DDR3) +#define LED_PDOR (FM3_GPIO->PDOR3) + +#define RT_DEVICE_CTRL_LED_ON 0 +#define RT_DEVICE_CTRL_LED_OFF 1 +#define RT_DEVICE_CTRL_LED_TOGGLE 2 + +void rt_hw_led_init(void); +void rt_hw_led_on(rt_uint8_t num); +void rt_hw_led_off(rt_uint8_t num); +void rt_hw_led_toggle(rt_uint8_t num); +void pwm_update(rt_uint16_t value); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/mb9bf500r.icf b/bsp/fujitsu/mb9x/mb9bf500r/mb9bf500r.icf new file mode 100644 index 0000000000..ff723823ce --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/mb9bf500r.icf @@ -0,0 +1,32 @@ +/*###ICF### Section handled by ICF editor, don't touch! ****/ +/*-Editor annotation file-*/ +/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ +/*-Specials-*/ +define symbol __ICFEDIT_intvec_start__ = 0x00000000; +/*-Memory Regions-*/ +define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; +define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF; +define symbol __ICFEDIT_region_RAM_start__ = 0x1FFFC000; +define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF; +/*-Sizes-*/ +define symbol __ICFEDIT_size_cstack__ = 0x800; +define symbol __ICFEDIT_size_heap__ = 0x0; +/**** End of ICF editor section. ###ICF###*/ + + +define memory mem with size = 4G; +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; +define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; + +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; + +initialize by copy { readwrite }; +//initialize by copy with packing = none { section __DLIB_PERTHREAD }; // Required in a multi-threaded application +do not initialize { section .noinit }; + +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; + +place in ROM_region { readonly }; +place in RAM_region { readwrite, + block CSTACK, block HEAP }; diff --git a/bsp/fujitsu/mb9x/mb9bf500r/project.uvopt b/bsp/fujitsu/mb9x/mb9bf500r/project.uvopt new file mode 100644 index 0000000000..f4ebac8267 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/project.uvopt @@ -0,0 +1,559 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + + + + 0 + 0 + + + + RT-Thread FM3 + 0x4 + ARM-ADS + + 4000000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\obj\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 0 + 0 + 1 + + 255 + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 0 + 0 + 7 + + + + + + + + + + + Segger\JL2CM3.dll + + + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + Startup + 0 + 0 + 0 + + 1 + 1 + 1 + 0 + 0 + 43 + 0 + 121 + 121 + 0 + .\application.c + application.c + + + 1 + 2 + 1 + 0 + 0 + 20 + 0 + 32 + 34 + 0 + .\board.c + board.c + + + 1 + 3 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\startup.c + startup.c + + + 1 + 4 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\adc.c + adc.c + + + 1 + 5 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\cpuusage.c + cpuusage.c + + + 1 + 6 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\key.c + key.c + + + 1 + 7 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\lcd.c + lcd.c + + + 1 + 8 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\led.c + led.c + + + 1 + 9 + 1 + 0 + 0 + 39 + 0 + 14 + 25 + 0 + .\info.c + info.c + + + + + FM3 + 0 + 0 + 0 + + 2 + 10 + 2 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + ..\..\libcpu\arm\cortex-m3\context_rvds.S + context_rvds.S + + + 2 + 11 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m3\cpuport.c + cpuport.c + + + + + CMSIS + 0 + 0 + 0 + + 3 + 12 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\CMSIS\core_cm3.c + core_cm3.c + + + 3 + 13 + 2 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + .\CMSIS\start_rvds.S + start_rvds.S + + + 3 + 14 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + .\CMSIS\system_mb9bf50x.c + system_mb9bf50x.c + + + + + Kernel + 0 + 0 + 0 + + 4 + 15 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + + + 4 + 16 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\device.c + device.c + + + 4 + 17 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + + + 4 + 18 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + + + 4 + 19 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + + + 4 + 20 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + + + 4 + 21 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\mem.c + mem.c + + + 4 + 22 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\mempool.c + mempool.c + + + 4 + 24 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\object.c + object.c + + + 4 + 26 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + + + 4 + 27 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\slab.c + slab.c + + + 4 + 28 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + + + 4 + 29 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\src\timer.c + timer.c + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf500r/project.uvproj b/bsp/fujitsu/mb9x/mb9bf500r/project.uvproj new file mode 100644 index 0000000000..971e04f6e1 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/project.uvproj @@ -0,0 +1,547 @@ + + + + 1.1 + +
### uVision Project, (C) Keil Software
+ + + + RT-Thread FM3 + 0x4 + ARM-ADS + + + MB9BF500R + Fujitsu Semiconductors + IRAM(0x20000000-0x20003FFF) IROM(0x00000000-0x0003FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "STARTUP\FUJITSU\MB9BF50x\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BF50x_256 -FS00 -FL040000) + 5155 + MB9BF50x.h + + + + + + + + + + + 0 + + + + Fujitsu\MB9BF50x\ + Fujitsu\MB9BF50x\ + + 0 + 0 + 0 + 0 + 1 + + .\obj\ + rtthread-fm3 + 1 + 0 + 0 + 1 + 1 + .\obj\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + + 0 + 7 + + + + + + + + + + + + + + Segger\JL2CM3.dll + + + + + 1 + 0 + 0 + 1 + 1 + 4099 + + Segger\JL2CM3.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 8 + 1 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x4000 + + + 1 + 0x0 + 0x40000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x40000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x4000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + CMSIS;.;..\..\include;..\..\components\rtgui\include + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x00000000 + 0x10000000 + + + + + + + + + + + + Startup + + + application.c + 1 + .\application.c + + + board.c + 1 + .\board.c + + + startup.c + 1 + .\startup.c + + + adc.c + 1 + .\adc.c + + + cpuusage.c + 1 + .\cpuusage.c + + + key.c + 1 + .\key.c + + + lcd.c + 1 + .\lcd.c + + + led.c + 1 + .\led.c + + + info.c + 1 + .\info.c + + + + + FM3 + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m3\context_rvds.S + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m3\cpuport.c + + + + + CMSIS + + + core_cm3.c + 1 + .\CMSIS\core_cm3.c + + + start_rvds.S + 2 + .\CMSIS\start_rvds.S + + + system_mb9bf50x.c + 1 + .\CMSIS\system_mb9bf50x.c + + + + + Kernel + + + clock.c + 1 + ..\..\src\clock.c + + + device.c + 1 + ..\..\src\device.c + + + idle.c + 1 + ..\..\src\idle.c + + + ipc.c + 1 + ..\..\src\ipc.c + + + irq.c + 1 + ..\..\src\irq.c + + + kservice.c + 1 + ..\..\src\kservice.c + + + mem.c + 1 + ..\..\src\mem.c + + + mempool.c + 1 + ..\..\src\mempool.c + + + object.c + 1 + ..\..\src\object.c + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + slab.c + 1 + ..\..\src\slab.c + + + thread.c + 1 + ..\..\src\thread.c + + + timer.c + 1 + ..\..\src\timer.c + + + + + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf500r/rtconfig.h b/bsp/fujitsu/mb9x/mb9bf500r/rtconfig.h new file mode 100644 index 0000000000..ac37ecb464 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/rtconfig.h @@ -0,0 +1,88 @@ +/* RT-Thread config file */ +#ifndef __RTTHREAD_CFG_H__ +#define __RTTHREAD_CFG_H__ + +/* RT_NAME_MAX*/ +#define RT_NAME_MAX 8 + +/* RT_ALIGN_SIZE*/ +#define RT_ALIGN_SIZE 4 + +/* PRIORITY_MAX */ +#define RT_THREAD_PRIORITY_MAX 32 + +/* Tick per Second */ +#define RT_TICK_PER_SECOND 100 + +/* SECTION: RT_DEBUG */ +/* Thread Debug */ +/* #define RT_DEBUG */ +#define RT_USING_OVERFLOW_CHECK + +/* Using Hook */ +#define RT_USING_HOOK + +/* SECTION: IPC */ +/* Using Semaphore */ +#define RT_USING_SEMAPHORE + +/* Using Mutex */ +#define RT_USING_MUTEX + +/* Using Event */ +#define RT_USING_EVENT + +/* Using MailBox */ +#define RT_USING_MAILBOX + +/* Using Message Queue */ +#define RT_USING_MESSAGEQUEUE + +/* SECTION: Memory Management */ +/* Using Memory Pool Management*/ +#define RT_USING_MEMPOOL + +/* Using Dynamic Heap Management */ +#define RT_USING_HEAP + +/* Using Small MM */ +#define RT_USING_SMALL_MEM + +/* SECTION: Device System */ +/* Using Device System */ +#define RT_USING_DEVICE +/* RT_USING_UART */ +#define RT_USING_UART0 +#define RT_UART_RX_BUFFER_SIZE 64 + +/* SECTION: Console options */ +#define RT_TINY_SIZE +#define RT_USING_CONSOLE +/* the buffer size of console */ +#define RT_CONSOLEBUF_SIZE 128 + +/* SECTION: RTGUI support */ +/* using RTGUI support */ +/* #define RT_USING_RTGUI */ + +/* name length of RTGUI object */ +#define RTGUI_NAME_MAX 16 +/* support 16 weight font */ +//#define RTGUI_USING_FONT16 +/* support 12 weight font */ +#define RTGUI_USING_FONT12 +/* support Chinese font */ +//#define RTGUI_USING_FONTHZ +/* use DFS as file interface */ +//#define RTGUI_USING_DFS_FILERW +/* use font file as Chinese font */ +/* #define RTGUI_USING_HZ_FILE */ +/* use Chinese bitmap font */ +//#define RTGUI_USING_HZ_BMP +/* use small size in RTGUI */ +//#define RTGUI_USING_SMALL_SIZE +/* use mouse cursor */ +/* #define RTGUI_USING_MOUSE_CURSOR */ +#define RTGUI_DEFAULT_FONT_SIZE 12 + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf500r/rtconfig.py b/bsp/fujitsu/mb9x/mb9bf500r/rtconfig.py new file mode 100644 index 0000000000..24ae26d0ab --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/rtconfig.py @@ -0,0 +1,124 @@ +import os + +# toolchains options +ARCH='arm' +CPU='cortex-m3' +CROSS_TOOL='gcc' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +# cross_tool provides the cross compiler +# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = 'C:/Keil' +elif CROSS_TOOL == 'iar': + print('================ERROR============================') + print('Not support iar yet!') + print('=================================================') + exit(0) + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' + CFLAGS = DEVICE + AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T fm3_rom.ld' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + +elif PLATFORM == 'armcc': + # toolchains + CC = 'armcc' + AS = 'armasm' + AR = 'armar' + LINK = 'armlink' + TARGET_EXT = 'axf' + + DEVICE = ' --device DARMSTM' + CFLAGS = DEVICE + ' --apcs=interwork' + AFLAGS = DEVICE + LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-fm3.map --scatter fm3_rom.sct' + + CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' + LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' + + EXEC_PATH += '/arm/bin40/' + + if BUILD == 'debug': + CFLAGS += ' -g -O0' + AFLAGS += ' -g' + else: + CFLAGS += ' -O2' + + POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' + +elif PLATFORM == 'iar': + # toolchains + CC = 'iccarm' + AS = 'iasmarm' + AR = 'iarchive' + LINK = 'ilinkarm' + TARGET_EXT = 'out' + + CFLAGS = '' + CFLAGS += ' --diag_suppress Pa050' + CFLAGS += ' --no_cse' + CFLAGS += ' --no_unroll' + CFLAGS += ' --no_inline' + CFLAGS += ' --no_code_motion' + CFLAGS += ' --no_tbaa' + CFLAGS += ' --no_clustering' + CFLAGS += ' --no_scheduling' + CFLAGS += ' --debug' + CFLAGS += ' --endian=little' + CFLAGS += ' --cpu=Cortex-M3' + CFLAGS += ' -e' + CFLAGS += ' --fpu=None' + CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' + CFLAGS += ' -Ol' + CFLAGS += ' --use_c++_inline' + + AFLAGS = '' + AFLAGS += ' -s+' + AFLAGS += ' -w+' + AFLAGS += ' -r' + AFLAGS += ' --cpu Cortex-M3' + AFLAGS += ' --fpu None' + AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"' + + LFLAGS = ' --config mb9bf500r.icf' + LFLAGS += ' --semihosting' + LFLAGS += ' --entry __iar_program_start' + + EXEC_PATH = EXEC_PATH + '/arm/bin/' + POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec' diff --git a/bsp/fujitsu/mb9x/mb9bf500r/startup.c b/bsp/fujitsu/mb9x/mb9bf500r/startup.c new file mode 100644 index 0000000000..1e7309ae3e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf500r/startup.c @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" +#include "mb9bf506r.h" +/** + * @addtogroup FM3 + */ + +/*@{*/ + +extern int rt_application_init(void); + +#ifdef __CC_ARM +extern int Image$$RW_IRAM1$$ZI$$Limit; +#elif __ICCARM__ +#pragma section="HEAP" +#else +extern int __bss_end; +#endif + +/** + * This function will startup RT-Thread RTOS. + */ +void rtthread_startup(void) +{ + /* init board */ + rt_hw_board_init(); + + /* show version */ + rt_show_version(); + + /* init timer system */ + rt_system_timer_init(); + +#ifdef RT_USING_HEAP + #ifdef __CC_ARM + rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM3_SRAM_END); + #elif __ICCARM__ + rt_system_heap_init(__segment_end("HEAP"), (void*)FM3_SRAM_END); + #else + /* init memory system */ + rt_system_heap_init((void*)&__bss_end, (void*)FM3_SRAM_END); + #endif +#endif + + /* init scheduler system */ + rt_system_scheduler_init(); + + /* init application */ + rt_application_init(); + + /* init timer thread */ + rt_system_timer_thread_init(); + + /* init idle thread */ + rt_thread_idle_init(); + + /* start scheduler */ + rt_system_scheduler_start(); + + /* never reach here */ + return ; +} + +int main(void) +{ + /* disable interrupt first */ + rt_hw_interrupt_disable(); + + /* init system setting */ + SystemInit(); + + /* startup RT-Thread RTOS */ + rtthread_startup(); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/SConscript b/bsp/fujitsu/mb9x/mb9bf506r/SConscript new file mode 100644 index 0000000000..0992612410 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/SConscript @@ -0,0 +1,12 @@ +from building import * + +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/fujitsu/mb9x/mb9bf506r/SConstruct b/bsp/fujitsu/mb9x/mb9bf506r/SConstruct new file mode 100644 index 0000000000..97f374e663 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/SConstruct @@ -0,0 +1,35 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +if rtconfig.PLATFORM == 'iar': + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/fujitsu/mb9x/mb9bf506r/applications/SConscript b/bsp/fujitsu/mb9x/mb9bf506r/applications/SConscript new file mode 100644 index 0000000000..4ccb177207 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/applications/SConscript @@ -0,0 +1,9 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf506r/applications/application.c b/bsp/fujitsu/mb9x/mb9bf506r/applications/application.c new file mode 100644 index 0000000000..fdc42a9100 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/applications/application.c @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-05-24 Bernard the first version + */ + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +#include +#include "board.h" +#include "led.h" + +#ifdef RT_USING_DFS +/* dfs init */ +#include +/* dfs filesystem:ELM filesystem init */ +#include +/* dfs Filesystem APIs */ +#include +#endif + +void rt_init_thread_entry(void *parameter) +{ + /* LED Initialization */ + rt_hw_led_init(); + +#ifdef RT_USING_COMPONENTS_INIT + /* initialization RT-Thread Components */ + rt_components_init(); +#endif + + /* Filesystem Initialization */ +#ifdef RT_USING_DFS + /* mount nand fat partition 1 as root directory */ + if (dfs_mount("nand", "/", "elm", 0, 0) == 0) + rt_kprintf("File System initialized!\n"); + else + rt_kprintf("File System init failed!\n"); +#endif +} + +int rt_application_init(void) +{ + rt_thread_t tid; + + tid = rt_thread_create("init", + rt_init_thread_entry, RT_NULL, + 2048, RT_THREAD_PRIORITY_MAX/3, 20); + if (tid != RT_NULL) + rt_thread_startup(tid); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/applications/startup.c b/bsp/fujitsu/mb9x/mb9bf506r/applications/startup.c new file mode 100644 index 0000000000..ccb31d40b4 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/applications/startup.c @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +extern int rt_application_init(void); + +#ifdef __CC_ARM +extern int Image$$RW_IRAM1$$ZI$$Limit; +#elif __ICCARM__ +#pragma section="HEAP" +#else +extern int __bss_end; +#endif + +/** + * This function will startup RT-Thread RTOS. + */ +void rtthread_startup(void) +{ + /* initialize board */ + rt_hw_board_init(); + + /* show version */ + rt_show_version(); + +#ifdef RT_USING_HEAP + #ifdef __CC_ARM + rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM3_SRAM_END); + #elif __ICCARM__ + rt_system_heap_init(__segment_end("HEAP"), (void*)FM3_SRAM_END); + #else + /* init memory system */ + rt_system_heap_init((void*)&__bss_end, (void*)FM3_SRAM_END); + #endif +#endif + + /* init scheduler system */ + rt_system_scheduler_init(); + +#ifdef RT_USING_DEVICE +#if defined(RT_USING_DFS) && defined(RT_USING_DFS_UFFS) + rt_hw_nand_init(); +#endif +#endif + + /* initialize application */ + rt_application_init(); + + /* initialize timer */ + rt_system_timer_init(); + + /* initialize timer thread */ + rt_system_timer_thread_init(); + + /* initialize idle thread */ + rt_thread_idle_init(); + + /* start scheduler */ + rt_system_scheduler_start(); + + /* never reach here */ + return ; +} + +int main(void) +{ + /* disable interrupt first */ + rt_hw_interrupt_disable(); + + /* startup RT-Thread RTOS */ + rtthread_startup(); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/SConscript b/bsp/fujitsu/mb9x/mb9bf506r/drivers/SConscript new file mode 100644 index 0000000000..f4b66bd711 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/SConscript @@ -0,0 +1,16 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + +# remove no need file. +if GetDepend('RT_USING_LWIP') == False: + SrcRemove(src, 'emac.c') +if GetDepend('RT_USING_DFS') == False: + SrcRemove(src, 'sd.c') + +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/board.c b/bsp/fujitsu/mb9x/mb9bf506r/drivers/board.c new file mode 100644 index 0000000000..d687bea929 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/board.c @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" +#include "mcu.h" + +#include "fm3_uart.h" +#include "nand.h" + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +/** + * This is the timer interrupt service routine. + */ +void SysTick_Handler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + + rt_tick_increase(); + + /* leave interrupt */ + rt_interrupt_leave(); +} + +/** + * This function will initial FM3 Easy Kit board. + */ +void rt_hw_board_init(void) +{ + /* init systick */ + SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND); + + /* initialize UART device */ + rt_hw_serial_init(); + /* set console as UART device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); + + /* initialize nand flash device */ + rt_hw_nand_init(); +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/board.h b/bsp/fujitsu/mb9x/mb9bf506r/drivers/board.h new file mode 100644 index 0000000000..d2f252990c --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/board.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2009-09-22 Bernard add board.h to this bsp + * 2011-03-04 lgnq add board.h to FM3 bsp + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +//Internal SRAM memory size[Kbytes] <8-64> +//MB9BF500 : 32 +//MB9BF504 : 32 +//MB9BF505 : 48 +//MB9BF506 : 64 +#define FM3_SRAM_SIZE 64 +#define FM3_SRAM_END (0x1FFF8000 + FM3_SRAM_SIZE * 1024) + +void rt_hw_board_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.c b/bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.c new file mode 100644 index 0000000000..ece042cca4 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.c @@ -0,0 +1,929 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2012-05-15 lgnq first version. + * 2012-05-28 heyuanjie87 change interfaces + */ + +#include +#include +#include "fm3_uart.h" + +#if (defined(RT_USING_UART0_0) || defined(RT_USING_UART0_1)) +/* UART0 device driver structure */ +struct uart03_device uart0 = +{ + FM3_MFS0_UART, + MFS0RX_IRQn, + MFS0TX_IRQn, +}; +struct rt_serial_device serial0; + +void MFS0RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial0, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART1_0) || defined(RT_USING_UART1_1)) +/* UART1 device driver structure */ +struct uart03_device uart1 = +{ + FM3_MFS1_UART, + MFS1RX_IRQn, + MFS1TX_IRQn, +}; +struct rt_serial_device serial1; + +void MFS1RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART2_0) || defined(RT_USING_UART2_1) || defined(RT_USING_UART2_2)) +/* UART2 device driver structure */ +struct uart03_device uart2 = +{ + FM3_MFS2_UART, + MFS2RX_IRQn, + MFS2TX_IRQn, +}; +struct rt_serial_device serial2; + +void MFS2RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial2, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART3_0) || defined(RT_USING_UART3_1) || defined(RT_USING_UART3_2)) +/* UART3 device driver structure */ +struct uart03_device uart3 = +{ + FM3_MFS3_UART, + MFS3RX_IRQn, + MFS3TX_IRQn, +}; +struct rt_serial_device serial3; + +void MFS3RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial3, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART4_0) || defined(RT_USING_UART4_1) || defined(RT_USING_UART4_2)) +/* UART4 device driver structure */ +struct uart47_device uart4 = +{ + FM3_MFS4_UART, + MFS4RX_IRQn, + MFS4TX_IRQn, + FIFO_SIZE, +}; +struct rt_serial_device serial4; + +void MFS4RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial4, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART5_0) || defined(RT_USING_UART5_1) || defined(RT_USING_UART5_2)) +/* UART5 device driver structure */ +struct uart47_device uart5 = +{ + FM3_MFS5_UART, + MFS5RX_IRQn, + MFS5TX_IRQn, + FIFO_SIZE, +}; +struct rt_serial_device serial5; + +void MFS5RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial5, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART6_0) || defined(RT_USING_UART6_1)) +/* UART6 device driver structure */ +struct uart47_device uart6 = +{ + FM3_MFS6_UART, + MFS6RX_IRQn, + MFS6TX_IRQn, + FIFO_SIZE, +}; +struct rt_serial_device serial6; + +void MFS6RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial6, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif + +#if (defined(RT_USING_UART7_0) || defined(RT_USING_UART7_1)) +/* UART7 device driver structure */ +struct uart47_device uart7 = +{ + FM3_MFS7_UART, + MFS7RX_IRQn, + MFS7TX_IRQn, + FIFO_SIZE, +}; +struct rt_serial_device serial7; + +void MFS7RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&serial7, RT_SERIAL_EVENT_RX_IND); + /* leave interrupt */ + rt_interrupt_leave(); +} + +#endif + +void uart_pin_setup(void) +{ +#if defined(RT_USING_UART0_0) + /* Set UART Ch0 Port, SIN0_0(P21), SOT0_0(P22) */ + FM3_GPIO->PFR2_f.P1 = 1; + FM3_GPIO->PFR2_f.P2 = 1; + FM3_GPIO->EPFR07_f.SIN0S0 = 1; + FM3_GPIO->EPFR07_f.SIN0S1 = 0; + FM3_GPIO->EPFR07_f.SOT0B0 = 1; + FM3_GPIO->EPFR07_f.SOT0B1 = 0; +#elif defined(RT_USING_UART0_1) + /* Set UART Ch0 Port, SIN0_1(P14), SOT0_1(P15) */ + FM3_GPIO->PFR1_f.P4 = 1; + FM3_GPIO->PFR1_f.P5 = 1; + FM3_GPIO->EPFR07_f.SIN0S0 = 0; + FM3_GPIO->EPFR07_f.SIN0S1 = 1; + FM3_GPIO->EPFR07_f.SOT0B0 = 0; + FM3_GPIO->EPFR07_f.SOT0B1 = 1; +#endif + +#if defined(RT_USING_UART1_0) + /* Set UART Ch1 Port, SIN1_0(P56), SOT1_0(P57) */ + FM3_GPIO->PFR5_f.P6 = 1; + FM3_GPIO->PFR5_f.P7 = 1; + FM3_GPIO->EPFR07_f.SIN1S0 = 1; + FM3_GPIO->EPFR07_f.SIN1S1 = 0; + FM3_GPIO->EPFR07_f.SOT1B0 = 1; + FM3_GPIO->EPFR07_f.SOT1B1 = 0; +#elif defined(RT_USING_UART1_1) + /* Set UART Ch1 Port, SIN1_1(P11), SOT1_1(P12) */ + FM3_GPIO->PFR1_f.P1 = 1; + FM3_GPIO->PFR1_f.P2 = 1; + FM3_GPIO->EPFR07_f.SIN1S0 = 0; + FM3_GPIO->EPFR07_f.SIN1S1 = 1; + FM3_GPIO->EPFR07_f.SOT1B0 = 0; + FM3_GPIO->EPFR07_f.SOT1B1 = 1; +#endif + +#if defined(RT_USING_UART2_0) + /* Set UART Ch2 Port, SIN2_0(P72), SOT2_0(P73) */ + FM3_GPIO->PFR7_f.P2 = 1; + FM3_GPIO->PFR7_f.P3 = 1; + FM3_GPIO->EPFR07_f.SIN2S0 = 1; + FM3_GPIO->EPFR07_f.SIN2S1 = 0; + FM3_GPIO->EPFR07_f.SOT2B0 = 1; + FM3_GPIO->EPFR07_f.SOT2B1 = 0; +#elif defined(RT_USING_UART2_1) + /* Set UART Ch2 Port, SIN2_1(P24), SOT2_1(P25) */ + FM3_GPIO->PFR2_f.P4 = 1; + FM3_GPIO->PFR2_f.P5 = 1; + FM3_GPIO->EPFR07_f.SIN2S0 = 0; + FM3_GPIO->EPFR07_f.SIN2S1 = 1; + FM3_GPIO->EPFR07_f.SOT2B0 = 0; + FM3_GPIO->EPFR07_f.SOT2B1 = 1; +#elif defined(RT_USING_UART2_2) + /* Set UART Ch2 Port, SIN2_2(P17), SOT2_2(P18) */ + FM3_GPIO->PFR1_f.P7 = 1; + FM3_GPIO->PFR1_f.P8 = 1; + FM3_GPIO->EPFR07_f.SIN2S0 = 1; + FM3_GPIO->EPFR07_f.SIN2S1 = 1; + FM3_GPIO->EPFR07_f.SOT2B0 = 1; + FM3_GPIO->EPFR07_f.SOT2B1 = 1; +#endif + +#if defined(RT_USING_UART3_0) + /* Set UART Ch3 Port, SIN3_0(P66), SOT3_0(P67) */ + FM3_GPIO->PFR6_f.P6 = 1; + FM3_GPIO->PFR6_f.P7 = 1; + FM3_GPIO->EPFR07_f.SIN3S0 = 1; + FM3_GPIO->EPFR07_f.SIN3S1 = 0; + FM3_GPIO->EPFR07_f.SOT3B0 = 1; + FM3_GPIO->EPFR07_f.SOT3B1 = 0; +#elif defined(RT_USING_UART3_1) + /* Set UART Ch3 Port, SIN3_1(P50), SOT3_1(P51) */ + FM3_GPIO->PFR5_f.P0 = 1; + FM3_GPIO->PFR5_f.P1 = 1; + FM3_GPIO->EPFR07_f.SIN3S0 = 0; + FM3_GPIO->EPFR07_f.SIN3S1 = 1; + FM3_GPIO->EPFR07_f.SOT3B0 = 0; + FM3_GPIO->EPFR07_f.SOT3B1 = 1; +#elif defined(RT_USING_UART3_2) + /* Set UART Ch3 Port, SIN3_2(P48), SOT3_2(P49) */ + FM3_GPIO->PFR4_f.P8 = 1; + FM3_GPIO->PFR4_f.P9 = 1; + FM3_GPIO->EPFR07_f.SIN3S0 = 1; + FM3_GPIO->EPFR07_f.SIN3S1 = 1; + FM3_GPIO->EPFR07_f.SOT3B0 = 1; + FM3_GPIO->EPFR07_f.SOT3B1 = 1; +#endif + +#if defined(RT_USING_UART4_0) + /* Set UART Ch4 Port, SIN4_0(P0A), SOT4_0(P0B), CTS4_0(P0E), RTS4_0(P0D) */ + FM3_GPIO->PFR0_f.PA = 1; + FM3_GPIO->PFR0_f.PB = 1; + FM3_GPIO->PFR0_f.PD = 1; + FM3_GPIO->PFR0_f.PE = 1; + FM3_GPIO->EPFR08_f.SIN4S0 = 1; + FM3_GPIO->EPFR08_f.SIN4S1 = 0; + FM3_GPIO->EPFR08_f.SOT4B0 = 1; + FM3_GPIO->EPFR08_f.SOT4B1 = 0; + FM3_GPIO->EPFR08_f.CTS4S0 = 1; + FM3_GPIO->EPFR08_f.CTS4S1 = 0; + FM3_GPIO->EPFR08_f.RTS4E0 = 1; + FM3_GPIO->EPFR08_f.RTS4E1 = 0; +#elif defined(RT_USING_UART4_1) + /* Set UART Ch4 Port, SIN4_1(P1A), SOT4_1(P1B), CTS4_1(P1D), RTS4_1(P1E) */ + FM3_GPIO->PFR1_f.PA = 1; + FM3_GPIO->PFR1_f.PB = 1; + FM3_GPIO->PFR1_f.PD = 1; + FM3_GPIO->PFR1_f.PE = 1; + FM3_GPIO->EPFR08_f.SIN4S0 = 0; + FM3_GPIO->EPFR08_f.SIN4S1 = 1; + FM3_GPIO->EPFR08_f.SOT4B0 = 0; + FM3_GPIO->EPFR08_f.SOT4B1 = 1; + FM3_GPIO->EPFR08_f.CTS4S0 = 0; + FM3_GPIO->EPFR08_f.CTS4S1 = 1; + FM3_GPIO->EPFR08_f.RTS4E0 = 0; + FM3_GPIO->EPFR08_f.RTS4E1 = 1; +#elif defined(RT_USING_UART4_2) + /* Set UART Ch4 Port, SIN4_2(P05), SOT4_2(P06), CTS4_2(P08), RTS4_2(P09)*/ + FM3_GPIO->PFR0_f.P5 = 1; + FM3_GPIO->PFR0_f.P6 = 1; + FM3_GPIO->PFR0_f.P8 = 1; + FM3_GPIO->PFR0_f.P9 = 1; + FM3_GPIO->EPFR08_f.SIN4S0 = 1; + FM3_GPIO->EPFR08_f.SIN4S1 = 1; + FM3_GPIO->EPFR08_f.SOT4B0 = 1; + FM3_GPIO->EPFR08_f.SOT4B1 = 1; + FM3_GPIO->EPFR08_f.CTS4S0 = 1; + FM3_GPIO->EPFR08_f.CTS4S1 = 1; + FM3_GPIO->EPFR08_f.RTS4E0 = 1; + FM3_GPIO->EPFR08_f.RTS4E1 = 1; +#endif + +#if defined(RT_USING_UART5_0) + /* Set UART Ch5 Port, SIN5_0(P60), SOT5_0(P61) */ + FM3_GPIO->PFR6_f.P0 = 1; + FM3_GPIO->PFR6_f.P1 = 1; + FM3_GPIO->EPFR08_f.SIN5S0 = 1; + FM3_GPIO->EPFR08_f.SIN5S1 = 0; + FM3_GPIO->EPFR08_f.SOT5B0 = 1; + FM3_GPIO->EPFR08_f.SOT5B1 = 0; +#elif defined(RT_USING_UART5_1) + /* Set UART Ch5 Port, SIN5_1(P63), SOT5_1(P64) */ + FM3_GPIO->PFR6_f.P3 = 1; + FM3_GPIO->PFR6_f.P4 = 1; + FM3_GPIO->EPFR08_f.SIN5S0 = 0; + FM3_GPIO->EPFR08_f.SIN5S1 = 1; + FM3_GPIO->EPFR08_f.SOT5B0 = 0; + FM3_GPIO->EPFR08_f.SOT5B1 = 1; +#elif defined(RT_USING_UART5_2) + /* Set UART Ch5 Port, SIN5_2(P36), SOT5_2(P37) */ + FM3_GPIO->PFR3_f.P6 = 1; + FM3_GPIO->PFR3_f.P7 = 1; + FM3_GPIO->EPFR08_f.SIN5S0 = 1; + FM3_GPIO->EPFR08_f.SIN5S1 = 1; + FM3_GPIO->EPFR08_f.SOT5B0 = 1; + FM3_GPIO->EPFR08_f.SOT5B1 = 1; +#endif + +#if defined(RT_USING_UART6_0) + /* Set UART Ch6 Port, SIN6_0(P53), SOT6_0(P54) */ + FM3_GPIO->PFR5_f.P3 = 1; + FM3_GPIO->PFR5_f.P4 = 1; + FM3_GPIO->EPFR08_f.SIN6S0 = 1; + FM3_GPIO->EPFR08_f.SIN6S1 = 0; + FM3_GPIO->EPFR08_f.SOT6B0 = 1; + FM3_GPIO->EPFR08_f.SOT6B1 = 0; +#elif defined(RT_USING_UART6_1) + /* Set UART Ch6 Port, SIN6_1(P33), SOT6_1(P32) */ + FM3_GPIO->PFR3_f.P2 = 1; + FM3_GPIO->PFR3_f.P3 = 1; + FM3_GPIO->EPFR08_f.SIN6S0 = 0; + FM3_GPIO->EPFR08_f.SIN6S1 = 1; + FM3_GPIO->EPFR08_f.SOT6B0 = 0; + FM3_GPIO->EPFR08_f.SOT6B1 = 1; +#endif + +#if defined(RT_USING_UART7_0) + /* Set UART Ch7 Port, SIN7_0(P59), SOT7_0(P5A) */ + FM3_GPIO->PFR5_f.P9 = 1; + FM3_GPIO->PFR5_f.PA = 1; + FM3_GPIO->EPFR08_f.SIN7S0 = 1; + FM3_GPIO->EPFR08_f.SIN7S1 = 0; + FM3_GPIO->EPFR08_f.SOT7B0 = 1; + FM3_GPIO->EPFR08_f.SOT7B1 = 0; +#elif defined(RT_USING_UART7_1) + /* Set UART Ch7 Port, SIN7_1(P4E), SOT7_1(P4D) */ + FM3_GPIO->PFR4_f.PD = 1; + FM3_GPIO->PFR4_f.PE = 1; + FM3_GPIO->EPFR08_f.SIN7S0 = 0; + FM3_GPIO->EPFR08_f.SIN7S1 = 1; + FM3_GPIO->EPFR08_f.SOT7B0 = 0; + FM3_GPIO->EPFR08_f.SOT7B1 = 1; +#endif +} + +static rt_err_t uart03_configure(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + struct uart03_device *uart; + + RT_ASSERT(serial != RT_NULL); + + uart = (struct uart03_device *)serial->parent.user_data; + + uart->uart_regs->SMR = SMR_MD_UART | SMR_SOE; + + /* set baudreate */ + uart->uart_regs->BGR = (40000000UL + (cfg->baud_rate/2))/cfg->baud_rate - 1; + + /* set stop bits */ + switch (cfg->stop_bits) + { + case STOP_BITS_1: + uart->uart_regs->SMR_f.SBL = 0; + uart->uart_regs->ESCR_f.ESBL = 0; + break; + case STOP_BITS_2: + uart->uart_regs->SMR_f.SBL = 1; + uart->uart_regs->ESCR_f.ESBL = 0; + break; + case STOP_BITS_3: + uart->uart_regs->SMR_f.SBL = 0; + uart->uart_regs->ESCR_f.ESBL = 1; + break; + case STOP_BITS_4: + uart->uart_regs->SMR_f.SBL = 1; + uart->uart_regs->ESCR_f.ESBL = 1; + break; + default: + return RT_ERROR; + } + + /* set data bits */ + switch (cfg->data_bits) + { + case DATA_BITS_5: + uart->uart_regs->ESCR_f.L0 = 1; + uart->uart_regs->ESCR_f.L1 = 0; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_6: + uart->uart_regs->ESCR_f.L0 = 0; + uart->uart_regs->ESCR_f.L1 = 1; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_7: + uart->uart_regs->ESCR_f.L0 = 1; + uart->uart_regs->ESCR_f.L1 = 1; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_8: + uart->uart_regs->ESCR_f.L0 = 0; + uart->uart_regs->ESCR_f.L1 = 0; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_9: + uart->uart_regs->ESCR_f.L0 = 0; + uart->uart_regs->ESCR_f.L1 = 0; + uart->uart_regs->ESCR_f.L2 = 1; + break; + default: + return RT_ERROR; + } + + /* set parity */ + switch (cfg->parity) + { + case PARITY_NONE: + uart->uart_regs->ESCR_f.PEN = 0; + break; + case PARITY_EVEN: + uart->uart_regs->ESCR_f.PEN = 1; + uart->uart_regs->ESCR_f.P = 0; + break; + case PARITY_ODD: + uart->uart_regs->ESCR_f.PEN = 1; + uart->uart_regs->ESCR_f.P = 1; + break; + default: + return RT_ERROR; + } + + /* set bit order */ + switch (cfg->bit_order) + { + case BIT_ORDER_LSB: + uart->uart_regs->SMR_f.BDS = 0; + break; + case BIT_ORDER_MSB: + uart->uart_regs->SMR_f.BDS = 1; + break; + default: + return RT_ERROR; + } + + /* set NRZ mode */ + switch (cfg->invert) + { + case NRZ_NORMAL: + uart->uart_regs->ESCR_f.INV = 0; + break; + case NRZ_INVERTED: + uart->uart_regs->ESCR_f.INV = 1; + break; + default: + return RT_ERROR; + } + + uart->uart_regs->SCR = SCR_RXE | SCR_TXE | SCR_RIE; + + return RT_EOK; +} + +static rt_err_t uart03_control(struct rt_serial_device *serial, int cmd, void *arg) +{ + struct uart03_device *uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct uart03_device *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: + /* disable rx irq */ + UART_DISABLE_IRQ(uart->rx_irq); + break; + case RT_DEVICE_CTRL_SET_INT: + /* enable rx irq */ + UART_ENABLE_IRQ(uart->rx_irq); + break; + } + + return (RT_EOK); +} + +static int uart03_putc(struct rt_serial_device *serial, char c) +{ + struct uart03_device *uart; + + RT_ASSERT(serial != RT_NULL); + + uart = (struct uart03_device *)serial->parent.user_data; + /* while send buffer is empty */ + while (!(uart->uart_regs->SSR & SSR_TDRE)); + /* write to send buffer */ + uart->uart_regs->TDR = c; + + return (1); +} + +static int uart03_getc(struct rt_serial_device *serial) +{ + struct uart03_device *uart; + int ch; + + RT_ASSERT(serial != RT_NULL); + + uart = (struct uart03_device *)serial->parent.user_data; + /* receive buffer is full */ + if (uart->uart_regs->SSR & SSR_RDRF) + { + ch = uart->uart_regs->RDR & 0xff; + return (ch); + } + else + return (-1); +} + +static struct rt_uart_ops uart03_ops = +{ + uart03_configure, + uart03_control, + uart03_putc, + uart03_getc, +}; + +static rt_err_t uart47_configure(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + struct uart47_device *uart; + + RT_ASSERT(serial != RT_NULL); + + uart = (struct uart47_device *)serial->parent.user_data; + + uart->uart_regs->SMR = SMR_MD_UART | SMR_SOE; + + /* set baudreate */ + uart->uart_regs->BGR = (40000000UL + (cfg->baud_rate/2))/cfg->baud_rate - 1; + + /* set stop bits */ + switch (cfg->stop_bits) + { + case STOP_BITS_1: + uart->uart_regs->SMR_f.SBL = 0; + uart->uart_regs->ESCR_f.ESBL = 0; + break; + case STOP_BITS_2: + uart->uart_regs->SMR_f.SBL = 1; + uart->uart_regs->ESCR_f.ESBL = 0; + break; + case STOP_BITS_3: + uart->uart_regs->SMR_f.SBL = 0; + uart->uart_regs->ESCR_f.ESBL = 1; + break; + case STOP_BITS_4: + uart->uart_regs->SMR_f.SBL = 1; + uart->uart_regs->ESCR_f.ESBL = 1; + break; + default: + return RT_ERROR; + } + + /* set data bits */ + switch (cfg->data_bits) + { + case DATA_BITS_5: + uart->uart_regs->ESCR_f.L0 = 1; + uart->uart_regs->ESCR_f.L1 = 0; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_6: + uart->uart_regs->ESCR_f.L0 = 0; + uart->uart_regs->ESCR_f.L1 = 1; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_7: + uart->uart_regs->ESCR_f.L0 = 1; + uart->uart_regs->ESCR_f.L1 = 1; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_8: + uart->uart_regs->ESCR_f.L0 = 0; + uart->uart_regs->ESCR_f.L1 = 0; + uart->uart_regs->ESCR_f.L2 = 0; + break; + case DATA_BITS_9: + uart->uart_regs->ESCR_f.L0 = 0; + uart->uart_regs->ESCR_f.L1 = 0; + uart->uart_regs->ESCR_f.L2 = 1; + break; + default: + return RT_ERROR; + } + + /* set parity */ + switch (cfg->parity) + { + case PARITY_NONE: + uart->uart_regs->ESCR_f.PEN = 0; + break; + case PARITY_EVEN: + uart->uart_regs->ESCR_f.PEN = 1; + uart->uart_regs->ESCR_f.P = 0; + break; + case PARITY_ODD: + uart->uart_regs->ESCR_f.PEN = 1; + uart->uart_regs->ESCR_f.P = 1; + break; + default: + return RT_ERROR; + } + + /* set bit order */ + switch (cfg->bit_order) + { + case BIT_ORDER_LSB: + uart->uart_regs->SMR_f.BDS = 0; + break; + case BIT_ORDER_MSB: + uart->uart_regs->SMR_f.BDS = 1; + break; + default: + return RT_ERROR; + } + + /* set NRZ mode */ + switch (cfg->invert) + { + case NRZ_NORMAL: + uart->uart_regs->ESCR_f.INV = 0; + break; + case NRZ_INVERTED: + uart->uart_regs->ESCR_f.INV = 1; + break; + default: + return RT_ERROR; + } + + /* configure fifo */ + /* Disable the Data Lost detection */ + uart->uart_regs->FCR1_f.FLSTE = 0; + /* Enable the received FIFO idle detection */ + uart->uart_regs->FCR1_f.FRIE = 1; + /* Requests for the transmit FIFO data */ + uart->uart_regs->FCR1_f.FDRQ = 1; + /* Disable the transmit FIFO interrupt */ + uart->uart_regs->FCR1_f.FTIE = 0; + /* Transmit FIFO:FIFO1; Received FIFO:FIFO2 */ + uart->uart_regs->FCR1_f.FSEL = 0; + + /* Transfer data count */ + uart->uart_regs->FBYTE1 = 0; + /* Set the data count to generate a received interrupt */ + uart->uart_regs->FBYTE2 = uart->fifo_size; + + /* FIFO pointer Not reloaded */ + uart->uart_regs->FCR0_f.FLD = 0; + /* FIFO pointer Not saved */ + uart->uart_regs->FCR0_f.FSET = 0; + /* FIFO2 is reset */ + uart->uart_regs->FCR0_f.FCL2 = 1; + /* FIFO1 is reset */ + uart->uart_regs->FCR0_f.FCL1 = 1; + /* Enables the FIFO2 operation */ + uart->uart_regs->FCR0_f.FE2 = 1; + /* Enables the FIFO1 operation */ + uart->uart_regs->FCR0_f.FE1 = 1; + + /* enable receive and send */ + uart->uart_regs->SCR = SCR_RXE | SCR_TXE | SCR_RIE; + + return RT_EOK; +} + +static rt_err_t uart47_control(struct rt_serial_device *serial, int cmd, void *arg) +{ + struct uart47_device *uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct uart47_device *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: + /* disable rx irq */ + UART_DISABLE_IRQ(uart->rx_irq); + break; + case RT_DEVICE_CTRL_SET_INT: + /* enable rx irq */ + UART_ENABLE_IRQ(uart->rx_irq); + break; + } + + return (RT_EOK); +} + +static int uart47_putc(struct rt_serial_device *serial, char c) +{ + struct uart47_device *uart; + + RT_ASSERT(serial != RT_NULL); + + uart = (struct uart47_device *)serial->parent.user_data; + + /* while send fifo is empty */ + while (!(uart->uart_regs->SSR & SSR_TDRE)); + /* write to fifo */ + uart->uart_regs->TDR = c; + + return (1); +} + +static int uart47_getc(struct rt_serial_device *serial) +{ + int ch; + struct uart47_device *uart; + + RT_ASSERT(serial != RT_NULL); + + uart = (struct uart47_device *)serial->parent.user_data; + + /* receive is disabled */ + if (!(uart->uart_regs->SCR & SCR_RXE)) + return (-1); + /* receive fifo is not full */ + if ((uart->uart_regs->SSR & SSR_RDRF) == 0) + return (-1); + /* read char */ + ch = uart->uart_regs->RDR & 0xff; + + return (ch); +} + +static struct rt_uart_ops uart47_ops = +{ + uart47_configure, + uart47_control, + uart47_putc, + uart47_getc, +}; + +void rt_hw_serial_init(void) +{ + struct serial_configure config; + + uart_pin_setup(); + +#if (defined(RT_USING_UART0_0) || defined(RT_USING_UART0_1)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial0.ops = &uart03_ops; + serial0.config = config; + + /* register UART0 device */ + rt_hw_serial_register(&serial0, "uart0", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart0); +#endif + +#if (defined(RT_USING_UART1_0) || defined(RT_USING_UART1_1)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial1.ops = &uart03_ops; + serial1.config = config; + + /* register UART1 device */ + rt_hw_serial_register(&serial1, + "uart1", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart1); +#endif + +#if (defined(RT_USING_UART2_0) || defined(RT_USING_UART2_1) || defined(RT_USING_UART2_2)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial2.ops = &uart03_ops; + serial2.config = config; + + /* register UART2 device */ + rt_hw_serial_register(&serial2, + "uart2", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart2); +#endif + +#if (defined(RT_USING_UART3_0) || defined(RT_USING_UART3_1) || defined(RT_USING_UART3_2)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial3.ops = &uart03_ops; + serial3.config = config; + + /* register UART3 device */ + rt_hw_serial_register(&serial3, + "uart3", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart3); +#endif + +#if (defined(RT_USING_UART4_0) || defined(RT_USING_UART4_1) || defined(RT_USING_UART4_2)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial4.ops = &uart47_ops; + serial4.config = config; + + /* register UART4 device */ + rt_hw_serial_register(&serial4, + "uart4", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart4); +#endif + +#if (defined(RT_USING_UART5_0) || defined(RT_USING_UART5_1) || defined(RT_USING_UART5_2)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial5.ops = &uart47_ops; + serial5.config = config; + + /* register UART5 device */ + rt_hw_serial_register(&serial5, + "uart5", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart5); +#endif + +#if (defined(RT_USING_UART6_0) || defined(RT_USING_UART6_1)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial6.ops = &uart47_ops; + serial6.config = config; + + /* register UART6 device */ + rt_hw_serial_register(&serial6, + "uart6", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart6); +#endif + +#if (defined(RT_USING_UART7_0) || defined(RT_USING_UART7_1)) + config.baud_rate = BAUD_RATE_115200; + config.bit_order = BIT_ORDER_LSB; + config.data_bits = DATA_BITS_8; + config.parity = PARITY_NONE; + config.stop_bits = STOP_BITS_1; + config.invert = NRZ_NORMAL; + config.bufsz = RT_SERIAL_RB_BUFSZ; + + serial7.ops = &uart47_ops; + serial7.config = config; + + /* register UART7 device */ + rt_hw_serial_register(&serial7, + "uart7", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart7); +#endif +} diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.h b/bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.h new file mode 100644 index 0000000000..824592c850 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/fm3_uart.h @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2006-03-13 Bernard first version + * 2011-05-15 lgnq modified according bernard's implementaion. + */ + +#ifndef __FM3_UART_H__ +#define __FM3_UART_H__ + +#include +#include "mb9bf506r.h" + +#define SMR_SOE 0x01U +#define SMR_BDS 0x04U +#define SMR_SBL 0x08U +#define SMR_WUCR 0x10U +#define SMR_MD_UART 0x00U +#define SMR_MD_UART_MP 0x20U +#define SMR_MD_SIO 0x40U +#define SMR_MD_LIN 0x60U +#define SMR_MD_I2C 0x80U + +#define SCR_TXE 0x01U +#define SCR_RXE 0x02U +#define SCR_TBIE 0x04U +#define SCR_TIE 0x08U +#define SCR_RIE 0x10U +#define SCR_UPGL 0x80U + +#define SSR_TBI 0x01U +#define SSR_TDRE 0x02U +#define SSR_RDRF 0x04U +#define SSR_ORE 0x08U +#define SSR_FRE 0x10U +#define SSR_PE 0x20U +#define SSR_REC 0x80U + +#define ESCR_P 0x08U +#define ESCR_PEN 0x10U +#define ESCR_INV 0x20U +#define ESCR_ESBL 0x40U +#define ESCR_FLWEN 0x80U +#define ESCR_DATABITS_8 0x00U +#define ESCR_DATABITS_5 0x01U +#define ESCR_DATABITS_6 0x02U +#define ESCR_DATABITS_7 0x03U +#define ESCR_DATABITS_9 0x04U + +#define FIFO_SIZE 16 + +/* + * Enable/DISABLE Interrupt Controller + */ +/* deviation from MISRA-C:2004 Rule 19.7 */ +#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) +#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) + +struct uart03_device +{ + FM3_MFS03_UART_TypeDef *uart_regs; + /* irq number */ + IRQn_Type rx_irq; + IRQn_Type tx_irq; +}; + +struct uart47_device +{ + FM3_MFS47_UART_TypeDef *uart_regs; + /* irq number */ + IRQn_Type rx_irq; + IRQn_Type tx_irq; + rt_uint8_t fifo_size; +}; + +void rt_hw_serial_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/led.c b/bsp/fujitsu/mb9x/mb9bf506r/drivers/led.c new file mode 100644 index 0000000000..3f6a11fcfe --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/led.c @@ -0,0 +1,137 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#include +#include + +#include "mb9bf506r.h" +#include "led.h" + +void rt_hw_led_on(rt_uint8_t num) +{ + RT_ASSERT(num < LEDS_MAX_NUMBER); + + switch (num) + { + case 1: + USER_LED_PDOR &= ~USER_LED1; + break; + case 2: + USER_LED_PDOR &= ~USER_LED2; + break; + case 3: + USER_LED_PDOR &= ~USER_LED3; + break; + default: + break; + } +} + +void rt_hw_led_off(rt_uint8_t num) +{ + RT_ASSERT(num < LEDS_MAX_NUMBER); + + switch (num) + { + case 1: + USER_LED_PDOR |= USER_LED1; + break; + case 2: + USER_LED_PDOR |= USER_LED2; + break; + case 3: + USER_LED_PDOR |= USER_LED3; + break; + default: + break; + } +} + +void rt_hw_led_toggle(rt_uint8_t num) +{ + RT_ASSERT(num < LEDS_MAX_NUMBER); + + switch (num) + { + case 1: + if (USER_LED_PDOR&USER_LED1) + USER_LED_PDOR &= ~USER_LED1; + else + USER_LED_PDOR |= USER_LED1; + break; + case 2: + if (USER_LED_PDOR&USER_LED2) + USER_LED_PDOR &= ~USER_LED2; + else + USER_LED_PDOR |= USER_LED2; + break; + case 3: + if (USER_LED_PDOR&USER_LED3) + USER_LED_PDOR &= ~USER_LED3; + else + USER_LED_PDOR |= USER_LED3; + break; + default: + break; + } +} + +void led_init(void) +{ + /*Select CPIO function*/ + USER_LED_PFR &= ~USER_LED_MASK; + /* disable analog input */ + FM3_GPIO->ADE &= ~USER_LED_MASK; + /*Set CPIO Pull-Up function*/ + USER_LED_PCR |= USER_LED_MASK; + /*Make led pins outputs*/ + USER_LED_DDR |= USER_LED_MASK; + USER_LED_PDOR |= USER_LED_MASK; +} + +void pwm_update(rt_uint16_t value) +{ + FM3_BT2_PWM->PDUT = value; +} + +static void led1_thread_entry(void *parameter) +{ + while (1) + { + rt_hw_led_toggle(1); + rt_thread_delay(RT_TICK_PER_SECOND); + } +} + +static void led2_thread_entry(void *parameter) +{ + while (1) + { + rt_hw_led_toggle(2); + rt_thread_delay(RT_TICK_PER_SECOND/2); + } +} + +static rt_thread_t led1_thread; +static rt_thread_t led2_thread; +void rt_hw_led_init(void) +{ + led_init(); + + led1_thread = rt_thread_create("led1", led1_thread_entry, RT_NULL, 384, 29, 5); + if (led1_thread != RT_NULL) + rt_thread_startup(led1_thread); + + led2_thread = rt_thread_create("led2", led2_thread_entry, RT_NULL, 384, 30, 5); + if (led2_thread != RT_NULL) + rt_thread_startup(led2_thread); +} + + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/led.h b/bsp/fujitsu/mb9x/mb9bf506r/drivers/led.h new file mode 100644 index 0000000000..bcbfaf9b62 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/led.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-03-03 lgnq + */ + +#ifndef __LED_H__ +#define __LED_H__ + +#include "mb9bf506r.h" + +#define LEDS_MAX_NUMBER 4 + +/* LED */ +#define USER_LED1 (1UL<<0x9) +#define USER_LED2 (1UL<<0xa) +#define USER_LED3 (1UL<<0xb) + +#define USER_LED_MASK (USER_LED1 | USER_LED2 | USER_LED3) +#define USER_LED_PFR FM3_GPIO->PFR1 +#define USER_LED_PCR FM3_GPIO->PCR1 +#define USER_LED_PDOR FM3_GPIO->PDOR1 +#define USER_LED_DDR FM3_GPIO->DDR1 + +#define RT_DEVICE_CTRL_LED_ON 0 +#define RT_DEVICE_CTRL_LED_OFF 1 +#define RT_DEVICE_CTRL_LED_TOGGLE 2 + +void rt_hw_led_init(void); +void rt_hw_led_on(rt_uint8_t num); +void rt_hw_led_off(rt_uint8_t num); +void rt_hw_led_toggle(rt_uint8_t num); +void pwm_update(rt_uint16_t value); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.c b/bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.c new file mode 100644 index 0000000000..1c03120d14 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.c @@ -0,0 +1,663 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-05-25 Bernard first version + */ + +#include "nand.h" +#include "mb9bf506r.h" + +/* + * NandFlash driver for SamSung K9F5608 + * 32M x 8bit + */ +#define PAGE_SIZE 512 +#define PAGE_PER_BLOCK 32 +#define BLOCK_NUM 2048 + +/* device driver debug trace */ +/* #define NAND_DEBUG */ +#ifdef NAND_DEBUG +#define trace_log rt_kprintf +#else +#define trace_log(...) +#endif + +/* + * OOB, + * when block has been erased, OOB is 0xff. + * when block has been written, OOB is 0x00. + */ +struct rt_device_nand +{ + struct rt_device parent; /* which is inherited from rt_device */ + + rt_uint16_t block_num; /* total block number in device */ + rt_uint16_t page_per_block; /* pages in one block */ + rt_uint16_t page_size; /* page size */ + + /* this buffer which used as to save data before erase block */ + rt_uint8_t block_buffer[PAGE_SIZE * PAGE_PER_BLOCK]; +}; +static struct rt_device_nand _nand; + +/* Flash operation definition */ +#define NF_CMD(cmd) {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_CMD_OFFSET) = (unsigned char)(cmd);} +#define NF_ADDR(addr) {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_ADDR_OFFSET)= (unsigned char)(addr);} +#define NF_RDDATA() (*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_DATA_OFFSET)) +#define NF_WRDATA(data) {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_DATA_OFFSET)= (unsigned char)(data);} +#define NF_CLR_ALE() {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_ALE_OFFSET) = (unsigned char)0;} + +/* Flash Control IO definition */ +#define NF_OE_H() {IO_NF_PDOR |= NF_EN;} +#define NF_OE_L() {IO_NF_PDOR &= ~NF_EN;} + +#define NF_DATA_OUT() {IO_NF_PDOR &= ~NF_DATA_DIR;} +#define NF_DATA_IN() {IO_NF_PDOR |= NF_DATA_DIR;} + +static unsigned char NF_ReadStatus(void); +static void Wait(unsigned int cnt); +static void NF_Reset(void); + +static void Wait(unsigned int cnt) +{ + while(cnt--); +} + +static void NF_Reset(void) +{ + NF_OE_L(); + NF_DATA_OUT(); + NF_CMD(NAND_CMD_RESET); + NF_OE_H(); + + Wait(10000); /* wait for Trst */ +} + +static unsigned char NF_ReadStatus(void) +{ + unsigned int timeout=0; + NF_DATA_OUT(); + NF_CMD(NAND_CMD_STATUS); + NF_DATA_IN(); + + while(!(NF_RDDATA() & 0x40)) + { + timeout++; + if(timeout == 0x00080000) + return FLASH_NG; + } + if(NF_RDDATA() & 0x01)return FLASH_NG; + + return FLASH_OK; +} + +/* + * @ Funciton: NF_Init + * Parameter: None + * Return: None + */ +static void NF_Init(void) +{ + FM3_GPIO->PFR5 |= (0x7ff); /* D0-D5, CS7, ALE, CLE, WEX, REX */ + FM3_GPIO->PFR3 |= (0x3); /* D6-D7 */ + FM3_GPIO->EPFR10 |= (1<<13 /* CS enable */ + |1<<6 /* ALE, CLE, WEX, REX enable */ + |1<<0); /* D0-D7 enable */ + FM3_EXBUS->AREA7 = 0x001f00e0; /* Select CS7 area, 32Mbyte size */ + FM3_EXBUS->MODE7 |= (1<<4); /* Nand Flash mode turn on, set 8 bit width */ + + IO_NF_PFR = IO_NF_PFR & ~(NF_EN|NF_DATA_DIR); + IO_NF_DDR = IO_NF_DDR | (NF_EN|NF_DATA_DIR); + IO_NF_PDOR = IO_NF_PDOR | (NF_EN | NF_DATA_DIR); /* disable Flash operation */ + + /*Reset NAND*/ + NF_Reset(); +} + +static void NF_UnInit(void) +{ + FM3_GPIO->PFR5 &= ~(0x7ff); /* disable D0-D5, CS7, ALE, CLE, WEX, REX */ + FM3_GPIO->PFR3 &= ~(0x3); /* disable D6-D7 */ + FM3_GPIO->EPFR10 &= ~(1<<13 /* disable CS enable */ + |1<<6 /* disable ALE, CLE, WEX, REX enable */ + |1<<0); /* disable D0-D7 enable */ + FM3_EXBUS->MODE7 &= ~(1<<4); + IO_NF_PFR = IO_NF_PFR & ~(NF_EN|NF_DATA_DIR); + IO_NF_DDR = IO_NF_DDR | (NF_EN|NF_DATA_DIR); + IO_NF_PDOR = IO_NF_PDOR | (NF_EN | NF_DATA_DIR); /* disable Flash operation */ +} + +/* + * @ Funciton: NF_ReadPage + * Parameter: block (max: 2048) + * page (max:32) + * buffer: pointer to data buffer + * Return: 0: Flash Operation OK + * 1: Flash Operation NG + */ +int NF_ReadPage(unsigned int block, unsigned int page, unsigned char *buffer, + unsigned char *oob) +{ + unsigned int blockPage,i; + + NF_Init(); + blockPage=(block<<5)+page; /* 1 block=32 page */ + NF_OE_L(); + NF_DATA_OUT(); + if (buffer != RT_NULL) + { + volatile unsigned char ch; + + NF_CMD(NAND_CMD_READ0); /* send read data */ + + NF_ADDR(0); + NF_ADDR(blockPage & 0xff); + NF_ADDR((blockPage>>8) & 0xff); /* send 3 byte address */ + NF_CLR_ALE(); + NF_DATA_IN(); + + Wait(500); + + for(i=0;i<512;i++) /* read 512 bytes data */ + buffer[i] = NF_RDDATA(); + for(i=0;i<16;i++) /* read 16 bytes oob */ + if (oob != RT_NULL) + oob[i] = NF_RDDATA(); + else + ch = NF_RDDATA(); + } + else + { + NF_CMD(NAND_CMD_READOOB); /* send read data */ + + NF_ADDR(0); + NF_ADDR(blockPage & 0xff); + NF_ADDR((blockPage>>8) & 0xff); /* send 3 byte address */ + NF_CLR_ALE(); + NF_DATA_IN(); + + Wait(500); + + for (i=0; i<16; i++) /* read 16 bytes oob */ + oob[i] = NF_RDDATA(); + } + + NF_OE_H(); + NF_UnInit(); + return 0; +} + +/* + * @ Funciton: NF_EraseBlock + * Parameter: block (max: 2048) + * Return: 0: Flash Operation OK + * 1: Flash Operation NG + */ +int NF_EraseBlock(unsigned int block) +{ + rt_uint32_t blockPage; + + trace_log("Erase block %d: ", block); + + NF_Init(); + blockPage = (block << 5); + NF_OE_L(); + NF_DATA_OUT(); + NF_CMD(NAND_CMD_ERASE1); /* send erase command */ + NF_ADDR(blockPage & 0xff); + NF_ADDR((blockPage >> 8) & 0xff); + NF_CMD(NAND_CMD_ERASE2); /* start erase */ + + if(NF_ReadStatus()) + { + NF_Reset(); + NF_OE_H(); + NF_UnInit(); + trace_log("Failed\n"); + rt_kprintf("erase block failed\n"); + + return FLASH_NG; + } + + NF_OE_H(); + NF_UnInit(); + + trace_log("OK\n"); + + return FLASH_OK; +} + +/* + * @ Funciton: NF_WritePage + * Parameter: block (max: 2048) + * page (max:32) + * buffer: pointer to data buffer + * Return: 0: Flash Operation OK + * 1: Flash Operation NG + */ +int NF_WritePage(unsigned block, unsigned page, const rt_uint8_t *buffer) +{ + unsigned int blockPage,i; + unsigned char se[16] = {0}; + unsigned char data; + + blockPage = (block<<5)+page; + NF_Init(); + NF_OE_L(); + NF_DATA_OUT(); + NF_CMD(0x00); /* set programming area */ + NF_CMD(NAND_CMD_SEQIN); /* send write command */ + NF_ADDR(0); + NF_ADDR(blockPage & 0xff); + NF_ADDR((blockPage>>8) & 0xff); + NF_CLR_ALE(); + + for(i=0;i<512;i++) NF_WRDATA(buffer[i]); /* write data */ + for(i=0;i<16;i++) NF_WRDATA(se[i]); /* dummy write */ + + NF_CMD(NAND_CMD_PAGEPROG); /* start programming */ + + if(NF_ReadStatus()) + { + NF_Reset(); + NF_OE_H(); + NF_UnInit(); + + trace_log("write failed\n"); + return FLASH_NG; + } + + /* verify the write data */ + NF_DATA_OUT(); + NF_CMD(NAND_CMD_READ0); /* send read command */ + NF_ADDR(0); + NF_ADDR(blockPage & 0xff); + NF_ADDR((blockPage>>8) & 0xff); + NF_CLR_ALE(); + NF_DATA_IN(); + + Wait(500); + for(i=0; i<512; i++) + { + data=NF_RDDATA(); /* verify 1-512 byte */ + if(data != buffer[i]) + { + trace_log("block %d, page %d\n", block , page); + trace_log("write data failed[%d]: %02x %02x\n", i, data, buffer[i]); + + NF_Reset(); + NF_OE_H(); + NF_UnInit(); + return FLASH_NG; + } + } + + for(i=0; i<16; i++) + { + data=NF_RDDATA(); /* verify 16 byte dummy data */ + if(data != se[i]) + { + trace_log("block %d, page %d\n", block , page); + trace_log("write oob failed[%d]: %02x %02x\n", i, data, se[i]); + NF_Reset(); + NF_OE_H(); + NF_UnInit(); + return FLASH_NG; + } + } + + NF_OE_H(); + NF_UnInit(); + return FLASH_OK; +} + +/* + * @ Funciton: NF_ReadID + * Parameter: id: pointer to device ID + * Return: None + */ +void NF_ReadID(unsigned char *id) +{ + unsigned char maker_code; + NF_Init(); + NF_OE_L(); + NF_DATA_OUT(); + NF_CMD(NAND_CMD_READID); + NF_ADDR(0x00); + NF_CLR_ALE(); + Wait(10); + NF_DATA_IN(); + maker_code = NF_RDDATA(); + maker_code = maker_code; + *id = NF_RDDATA(); + NF_OE_H(); + NF_UnInit(); +} + +static rt_err_t rt_nand_init (rt_device_t dev) +{ + /* empty implementation */ + return RT_EOK; +} + +static rt_err_t rt_nand_open(rt_device_t dev, rt_uint16_t oflag) +{ + /* empty implementation */ + return RT_EOK; +} + +static rt_err_t rt_nand_close(rt_device_t dev) +{ + /* empty implementation */ + return RT_EOK; +} + +/* nand device read */ +static rt_size_t rt_nand_read (rt_device_t dev, rt_off_t pos, void* buffer, + rt_size_t size) +{ + rt_ubase_t block; /* block of position */ + rt_ubase_t page, index; /* page in block of position */ + rt_uint8_t *page_ptr, oob[16]; + struct rt_device_nand *nand; + + /* get nand device */ + nand = (struct rt_device_nand*) dev; + RT_ASSERT(nand != RT_NULL); + + /* get block and page */ + block = pos / nand->page_per_block; + page = pos % nand->page_per_block; + + trace_log("nand read: position %d, block %d, page %d, size %d\n", + pos, block, page, size); + + /* set page buffer pointer */ + page_ptr = (rt_uint8_t*) buffer; + for (index = 0; index < size; index ++) + { + NF_ReadPage(block, page + index, page_ptr, oob); + page_ptr += nand->page_size; + + if (page + index > nand->page_per_block) + { + block += 1; + page = 0; + } + } + + /* return read size (count of block) */ + return size; +} + +/* + * write pages by erase block first + * @param nand the nand device driver + * @param block the block of page + * @param page the page + * @param buffer the data buffer to be written + * @param pages the number of pages to be written + */ +static int rt_nand_eraseblock_writepage(struct rt_device_nand* nand, + rt_ubase_t block, rt_ubase_t page, + const rt_uint8_t *buffer, rt_ubase_t pages) +{ + rt_ubase_t index; + rt_uint32_t page_status; + rt_uint8_t *page_ptr, oob[16]; + + /* set page status */ + page_status = 0; + + /* read each page in block */ + page_ptr = nand->block_buffer; + for (index = 0; index < nand->page_per_block; index ++) + { + NF_ReadPage(block, index, page_ptr, oob); + if (!oob[0]) + page_status |= (1 << index); + page_ptr += nand->page_size; + } + + /* erase block */ + NF_EraseBlock(block); + + page_ptr = &(nand->block_buffer[page * nand->page_size]); + /* merge buffer to page buffer */ + for (index = 0; index < pages; index ++) + { + rt_memcpy(page_ptr, buffer, nand->page_size); + + /* set page status */ + page_status |= (1 << (page + index)); + + /* move to next page */ + page_ptr += nand->page_size; + buffer += nand->page_size; + } + + /* write to flash */ + page_ptr = nand->block_buffer; + for (index = 0; index < nand->page_per_block; index ++) + { + if (page_status & (1 << index)) + NF_WritePage(block, index, page_ptr); + + /* move to next page */ + page_ptr += nand->page_size; + } + + return 0; +} + +/* nand device write */ +static rt_size_t rt_nand_write (rt_device_t dev, rt_off_t pos, + const void* buffer, rt_size_t size) +{ + rt_ubase_t block, page; + rt_uint8_t oob[16]; + struct rt_device_nand *nand; + + nand = (struct rt_device_nand*) dev; + RT_ASSERT(nand != RT_NULL); + + /* get block and page */ + block = pos / nand->page_per_block; + page = pos % nand->page_per_block; + + trace_log("nand write: position %d, block %d, page %d, size %d\n", + pos, block, page, size); + + if (size == 1) + { + /* write one page */ + + /* read oob to get page status */ + NF_ReadPage(block, page, RT_NULL, oob); + if (oob[0]) + NF_WritePage(block, page, buffer); + else + /* erase block and then write page */ + rt_nand_eraseblock_writepage(nand, block, page, buffer, 1); + } + else if (size > 1) + { + rt_ubase_t index; + rt_ubase_t need_erase_block; + const rt_uint8_t *page_ptr; + rt_ubase_t chunk_pages, pages; + + pages = size; + page_ptr = (const rt_uint8_t*) buffer; + do + { + need_erase_block = 0; + /* calculate pages in current chunk */ + if (pages > nand->page_per_block - page) + chunk_pages = nand->page_per_block - page; + else + chunk_pages = pages; + + /* get page status in current block */ + for (index = page; index < page + chunk_pages; index ++) + { + NF_ReadPage(block, index, RT_NULL, oob); + if (!oob[0]) + { + /* this page has data, need erase this block firstly */ + need_erase_block = 1; + break; + } + } + + if (need_erase_block) + { + /* erase block and then write it */ + rt_nand_eraseblock_writepage(nand, block, page, page_ptr, chunk_pages); + page_ptr += chunk_pages * nand->page_size; + } + else + { + /* write pages directly */ + for (index = page; index < page + chunk_pages; index ++) + { + NF_WritePage(block, index, page_ptr); + page_ptr += nand->page_size; + } + } + + pages -= chunk_pages; + page = 0; block ++; /* move to next block */ + } + while (pages); + } + + return size; +} + +static rt_err_t rt_nand_control (rt_device_t dev, int cmd, void *args) +{ + struct rt_device_nand *nand; + + nand = (struct rt_device_nand*) dev; + RT_ASSERT(dev != RT_NULL); + + switch (cmd) + { + case RT_DEVICE_CTRL_BLK_GETGEOME: + { + struct rt_device_blk_geometry *geometry; + + geometry = (struct rt_device_blk_geometry *)args; + if (geometry == RT_NULL) return -RT_ERROR; + + geometry->bytes_per_sector = nand->page_size; + geometry->block_size = nand->page_size * nand->page_per_block; + geometry->sector_count = nand->block_num * nand->page_per_block; + } + break; + } + + return RT_EOK; +} + +void rt_hw_nand_init(void) +{ + /* initialize nand flash structure */ + _nand.block_num = BLOCK_NUM; + _nand.page_per_block = PAGE_PER_BLOCK; + _nand.page_size = PAGE_SIZE; + + rt_memset(_nand.block_buffer, 0, sizeof(_nand.block_buffer)); + + _nand.parent.type = RT_Device_Class_MTD; + _nand.parent.rx_indicate = RT_NULL; + _nand.parent.tx_complete = RT_NULL; + _nand.parent.init = rt_nand_init; + _nand.parent.open = rt_nand_open; + _nand.parent.close = rt_nand_close; + _nand.parent.read = rt_nand_read; + _nand.parent.write = rt_nand_write; + _nand.parent.control = rt_nand_control; + + /* register a MTD device */ + rt_device_register(&(_nand.parent), "nand", RT_DEVICE_FLAG_RDWR); +} + +#ifdef NAND_DEBUG +#include +unsigned char nand_buffer[512]; +unsigned char nand_oob[16]; + +void dump_mem(unsigned char* buffer, int length) +{ + int i; + + if (length > 64) length = 64; + for (i = 0; i < length; i ++) + { + rt_kprintf("%02x ", *buffer++); + if (((i+1) % 16) == 0) + rt_kprintf("\n"); + } + rt_kprintf("\n"); +} + +void nand_read(int block, int page) +{ + rt_kprintf("read block %d, page %d\n", block, page); + + NF_ReadPage(block, page, nand_buffer, nand_oob); + rt_kprintf("page data:\n"); + dump_mem(nand_buffer, 512); + rt_kprintf("oob data:\n"); + dump_mem(nand_oob, 16); +} +FINSH_FUNCTION_EXPORT_ALIAS(nand_read, read_page, read page[block/page]); + +void nand_write(int block, int page) +{ + int i; + for (i = 0; i < 512; i ++) + nand_buffer[i] = i; + + NF_WritePage(block, page, nand_buffer); +} +FINSH_FUNCTION_EXPORT_ALIAS(nand_write, write_page, write page[block/page]); + +void nand_erase(int block) +{ + NF_EraseBlock(block); +} +FINSH_FUNCTION_EXPORT_ALIAS(nand_erase, erase_block, erase block[block]); + +void nand_readoob(int block, int page) +{ + rt_kprintf("read oob on block %d, page %d\n", block, page); + + NF_ReadPage(block, page, RT_NULL, (unsigned char*)nand_oob); + rt_kprintf("oob data:\n"); + dump_mem(nand_oob, 16); +} +FINSH_FUNCTION_EXPORT_ALIAS(nand_readoob, readoob, read oob[block/page]); + +void nand_erase_chip(void) +{ + int i; + unsigned char id; + + NF_ReadID(&id); + rt_kprintf("id: %02x\n", id); + + for (i = 0; i < 2048; i ++) + { + NF_EraseBlock(i); + } +} +FINSH_FUNCTION_EXPORT_ALIAS(nand_erase_chip, erase_chip, erase whole chip); +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.h b/bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.h new file mode 100644 index 0000000000..d00909ddce --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-05-25 Bernard first version + */ + +#ifndef __NAND_H__ +#define __NAND_H__ + +#include + +#define IO_NF_PFR FM3_GPIO->PFR3 +#define IO_NF_DDR FM3_GPIO->DDR3 +#define IO_NF_PDOR FM3_GPIO->PDOR3 + +#define NF_EN 0x0008 +#define NF_DATA_DIR 0x0004 + +#define EXT_BUS_BASE_ADDR 0x60000000 +#define EXT_CS7_OFFSET 0x0E000000 +#define EXT_CS7_SIZE 0x02000000 + +#define NF_FLASH_BASE_ADDR (EXT_BUS_BASE_ADDR+EXT_CS7_OFFSET) + +#define NF_ALE_OFFSET 0x00003000 +#define NF_ADDR_OFFSET 0x00002000 +#define NF_CMD_OFFSET 0x00001000 +#define NF_DATA_OFFSET 0x00000000 + +/* NAND command */ +#define NAND_CMD_READ0 0x00 +#define NAND_CMD_READ1 0x01 +#define NAND_CMD_PAGEPROG 0x10 +#define NAND_CMD_READOOB 0x50 +#define NAND_CMD_ERASE1 0x60 +#define NAND_CMD_STATUS 0x70 +#define NAND_CMD_SEQIN 0x80 +#define NAND_CMD_READID 0x90 +#define NAND_CMD_READID1 0x91 +#define NAND_CMD_ERASE2 0xd0 +#define NAND_CMD_RESET 0xff + +#define FLASH_OK 0 +#define FLASH_NG 1 + +/* nand flash device initialization */ +void rt_hw_nand_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h new file mode 100644 index 0000000000..1b7029a755 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h @@ -0,0 +1,209 @@ +/************************************************** + * + * This file shall be included in appropriate CMSIS header + * files, to provide required functions and intrinsics when + * building with the IAR C/C++ Compiler for ARM (iccarm). + * + * Copyright 2011 IAR Systems. All rights reserved. + * + * $Revision: 50409 $ + * + **************************************************/ + +#ifndef __CMSIS_IAR_H__ +#define __CMSIS_IAR_H__ + +#ifndef __ICCARM__ + #error This file should only be compiled by ICCARM +#endif + +#pragma system_include + +#include + +#if (__CORE__ == __ARM6M__) + /* Avoid clash between intrinsics.h and arm_math.h when compiling for Cortex-M0. */ + #define __CLZ __cmsis_iar_clz + #define __SSAT __cmsis_iar_ssat +#endif + +#pragma diag_suppress=Pe940 +#pragma diag_suppress=Pe177 + +#define __enable_irq __enable_interrupt +#define __disable_irq __disable_interrupt +#define __NOP __no_operation + +#if (__VER__ < 6020000) /* If iccarm version is older than 6.20.0 ---------- */ + +#if (__VER__ < 6010002) /* If iccarm version is older than 6.10.2 ---------- */ + +static uint32_t __get_APSR(void) +{ + __ASM("mrs r0, apsr"); +} + +static uint32_t __get_xPSR(void) +{ + __ASM("mrs r0, psr"); /* assembler does not know "xpsr" */ +} + +#endif /* __VER__ < 6010002 */ + +static uint32_t __get_IPSR(void) +{ + __ASM("mrs r0, ipsr"); +} + +static uint32_t __get_PSR(void) +{ + __ASM("mrs r0, psr"); +} + +static uint32_t __get_PSP(void) +{ + __ASM("mrs r0, psp"); +} + +static void __set_PSP(uint32_t topOfProcStack) +{ + __ASM("msr psp, r0"); +} + +static uint32_t __get_MSP(void) +{ + __ASM("mrs r0, msp"); +} + +static void __set_MSP(uint32_t topOfMainStack) +{ + __ASM("msr msp, r0"); +} + +static __INLINE void __WFI(void) +{ + __ASM ("wfi"); +} + +static __INLINE void __WFE(void) +{ + __ASM ("wfe"); +} + +static __INLINE void __SEV(void) +{ + __ASM ("sev"); +} + +static uint32_t __REV16(uint32_t value) +{ + __ASM("rev16 r0, r0"); +} + +#else /* __VER__ < 6020000 */ + +static uint32_t __get_xPSR(void) +{ + return __get_PSR(); /* __get_PSR() intrinsic introduced in iccarm 6.20 */ +} + +#endif /* __VER__ < 6020000 */ + +#if (__CORTEX_M >= 0x03) /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ + +#if (__VER__ < 6020000) /* If iccarm version is older than 6.20.0 ---------- */ + +static __INLINE void __enable_fault_irq(void) +{ + __ASM ("cpsie f"); +} + +static __INLINE void __disable_fault_irq(void) +{ + __ASM ("cpsid f"); +} + +static uint32_t __RBIT(uint32_t value) +{ + __ASM("rbit r0, r0"); +} + +static uint8_t __LDREXB(volatile uint8_t *addr) +{ + __ASM("ldrexb r0, [r0]"); +} + +static uint16_t __LDREXH(volatile uint16_t *addr) +{ + __ASM("ldrexh r0, [r0]"); +} + +static uint32_t __LDREXW(volatile uint32_t *addr) +{ + __ASM("ldrex r0, [r0]"); +} + +static uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) +{ + __ASM("strexb r0, r0, [r1]"); +} + +static uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) +{ + __ASM("strexh r0, r0, [r1]"); +} + +static uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) +{ + __ASM("strex r0, r0, [r1]"); +} + +static __INLINE void __CLREX(void) +{ + __ASM ("clrex"); +} + +#else /* __VER__ >= 6020000 --------------------- */ + +#define __LDREXW __LDREX +#define __STREXW __STREX +#define __enable_fault_irq __enable_fiq +#define __disable_fault_irq __disable_fiq + +#endif /* __VER__ < 6020000 */ + +#endif /* (__CORTEX_M >= 0x03) */ + +#if (__CORTEX_M == 0x04) /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ + +#if (__VER__ < 6020000) /* If iccarm version is older than 6.20.0 ---------- */ + +static uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) /* __FPU_PRESENT is defined in the device header file, if present in current device. */ + __ASM("vmrs r0, fpscr"); +#else + return(0); +#endif +} + +static void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) /* __FPU_PRESENT is defined in the device header file, if present in current device. */ + __ASM("vmsr fpscr, r0"); +#endif +} + +#endif /* __VER__ < 6020000 */ + +#endif /* (__CORTEX_M == 0x04) */ + +static __INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) +{ + return (op1 >> op2) | (op1 << ((sizeof(op1)*8)-op2)); +} + +#pragma diag_default=Pe940 +#pragma diag_default=Pe177 + +#endif /* __CMSIS_IAR_H__ */ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cm3.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cm3.h new file mode 100644 index 0000000000..0173893fbd --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cm3.h @@ -0,0 +1,1612 @@ +/**************************************************************************//** + * @file core_cm3.h + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File + * @version V3.01 + * @date 22. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM3_H_GENERIC +#define __CORE_CM3_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex_M3 + @{ + */ + +/* CMSIS CM3 definitions */ +#define __CM3_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM3_CMSIS_VERSION_SUB (0x01) /*!< [15:0] CMSIS HAL sub version */ +#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | \ + __CM3_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x03) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __TMS470__ ) + #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TMS470__ ) + #if defined __TI__VFP_SUPPORT____ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_CM3_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM3_H_DEPENDANT +#define __CORE_CM3_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM3_REV + #define __CM3_REV 0x0200 + #warning "__CM3_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex_M3 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#if (__CM3_REV < 0x0201) /* core r2p1 */ +#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ +#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ + +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#else +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#endif + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ +#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +#else + uint32_t RESERVED1[1]; +#endif +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) + \brief Type definitions for the Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ + uint32_t RESERVED3[29]; + __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ + __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ + __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ + uint32_t RESERVED4[43]; + __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ + __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ + uint32_t RESERVED5[6]; + __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ + __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ + __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ + __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ + __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ + __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ + __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ + __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ + __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ + __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ + __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ + __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ +#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/* ITM Integration Write Register Definitions */ +#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ +#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ + +/* ITM Integration Read Register Definitions */ +#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ +#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ + +/* ITM Integration Mode Control Register Definitions */ +#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ +#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ + +/* ITM Lock Status Register Definitions */ +#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ +#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ + +#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ +#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ + +#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ +#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) + \brief Type definitions for the Data Watchpoint and Trace (DWT) + @{ + */ + +/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ + __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ + __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ + __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ + __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ + __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ + __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ + __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ + __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ + __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ + __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ + uint32_t RESERVED0[1]; + __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ + __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ + __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ + uint32_t RESERVED1[1]; + __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ + __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ + __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ + uint32_t RESERVED2[1]; + __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ + __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ + __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ +} DWT_Type; + +/* DWT Control Register Definitions */ +#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ +#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ + +#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ +#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ + +#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ +#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ + +#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ +#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ + +#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ +#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ + +#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ +#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ + +#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ +#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ + +#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ +#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ + +#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ +#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ + +#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ +#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ + +#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ +#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ + +#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ +#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ + +#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ +#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ + +#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ +#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ + +#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ +#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ + +#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ +#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ + +#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ +#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ + +#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ +#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ + +/* DWT CPI Count Register Definitions */ +#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ +#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ + +/* DWT Exception Overhead Count Register Definitions */ +#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ +#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ + +/* DWT Sleep Count Register Definitions */ +#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ +#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ + +/* DWT LSU Count Register Definitions */ +#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ +#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ + +/* DWT Folded-instruction Count Register Definitions */ +#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ +#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ + +/* DWT Comparator Mask Register Definitions */ +#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ +#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ + +/* DWT Comparator Function Register Definitions */ +#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ +#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ + +#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ +#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ + +#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ +#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ + +#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ +#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ + +#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ +#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ + +#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ +#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ + +#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ +#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ + +#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ +#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ + +#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ +#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ + +/*@}*/ /* end of group CMSIS_DWT */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_TPI Trace Port Interface (TPI) + \brief Type definitions for the Trace Port Interface (TPI) + @{ + */ + +/** \brief Structure type to access the Trace Port Interface Register (TPI). + */ +typedef struct +{ + __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ + __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ + uint32_t RESERVED0[2]; + __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ + uint32_t RESERVED1[55]; + __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ + uint32_t RESERVED2[131]; + __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ + __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ + __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ + uint32_t RESERVED3[759]; + __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ + __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ + __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ + uint32_t RESERVED4[1]; + __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ + __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ + __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ + uint32_t RESERVED5[39]; + __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ + __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ + uint32_t RESERVED7[8]; + __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ + __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ +} TPI_Type; + +/* TPI Asynchronous Clock Prescaler Register Definitions */ +#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ +#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ + +/* TPI Selected Pin Protocol Register Definitions */ +#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ +#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ + +/* TPI Formatter and Flush Status Register Definitions */ +#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ +#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ + +#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ +#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ + +#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ +#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ + +#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ +#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ + +/* TPI Formatter and Flush Control Register Definitions */ +#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ +#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ + +#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ +#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ + +/* TPI TRIGGER Register Definitions */ +#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ +#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ + +/* TPI Integration ETM Data Register Definitions (FIFO0) */ +#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ +#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ + +#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ +#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ + +#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ +#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ + +#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ +#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ + +#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ +#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ + +#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ +#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ + +#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ +#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ + +/* TPI ITATBCTR2 Register Definitions */ +#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ +#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ + +/* TPI Integration ITM Data Register Definitions (FIFO1) */ +#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ +#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ + +#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ +#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ + +#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ +#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ + +#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ +#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ + +#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ +#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ + +#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ +#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ + +#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ +#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ + +/* TPI ITATBCTR0 Register Definitions */ +#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ +#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ + +/* TPI Integration Mode Control Register Definitions */ +#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ +#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ + +/* TPI DEVID Register Definitions */ +#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ +#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ + +#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ +#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ + +#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ +#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ + +#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ +#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ + +#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ +#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ + +#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ +#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ + +/* TPI DEVTYPE Register Definitions */ +#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ +#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ + +#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ +#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ + +/*@}*/ /* end of group CMSIS_TPI */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ +#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ +#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ +#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ +#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ +#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ +#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Type definitions for the Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ +#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ +#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/** \brief Set Priority Grouping + + The function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field. + */ +__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + The function reads the priority grouping field from the NVIC Interrupt Controller. + + \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). + */ +__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + The function reads the active register in NVIC and returns the active bit. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not active. + \return 1 Interrupt status is active. + */ +__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + The function encodes the priority for an interrupt with the given priority group, + preemptive priority value, and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. + + \param [in] PriorityGroup Used priority group. + \param [in] PreemptPriority Preemptive priority value (starting from 0). + \param [in] SubPriority Subpriority value (starting from 0). + \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). + */ +__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + The function decodes an interrupt priority value with a given priority group to + preemptive priority value and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). + \param [in] PriorityGroup Used priority group. + \param [out] pPreemptPriority Preemptive priority value (starting from 0). + \param [out] pSubPriority Subpriority value (starting from 0). + */ +__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions ITM Functions + \brief Functions that access the ITM debug interface. + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ + + +/** \brief ITM Send Character + + The function transmits a character via the ITM channel 0, and + \li Just returns when no debugger is connected that has booked the output. + \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. + + \param [in] ch Character to transmit. + + \returns Character to transmit. + */ +__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + The function inputs a character via the external variable \ref ITM_RxBuffer. + + \return Received character. + \return -1 No character pending. + */ +__STATIC_INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. + + \return 0 No character available. + \return 1 Character available. + */ +__STATIC_INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM3_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h new file mode 100644 index 0000000000..3c932e0d6e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h @@ -0,0 +1,616 @@ +/**************************************************************************//** + * @file core_cmFunc.h + * @brief CMSIS Cortex-M Core Function Access Header File + * @version V3.01 + * @date 06. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMFUNC_H +#define __CORE_CMFUNC_H + + +/* ########################### Core Function Access ########################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions + @{ + */ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + +/* intrinsic void __enable_irq(); */ +/* intrinsic void __disable_irq(); */ + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__STATIC_INLINE uint32_t __get_CONTROL(void) +{ + register uint32_t __regControl __ASM("control"); + return(__regControl); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + register uint32_t __regControl __ASM("control"); + __regControl = control; +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__STATIC_INLINE uint32_t __get_IPSR(void) +{ + register uint32_t __regIPSR __ASM("ipsr"); + return(__regIPSR); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__STATIC_INLINE uint32_t __get_APSR(void) +{ + register uint32_t __regAPSR __ASM("apsr"); + return(__regAPSR); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__STATIC_INLINE uint32_t __get_xPSR(void) +{ + register uint32_t __regXPSR __ASM("xpsr"); + return(__regXPSR); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + return(__regProcessStackPointer); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + __regProcessStackPointer = topOfProcStack; +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + return(__regMainStackPointer); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + __regMainStackPointer = topOfMainStack; +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + register uint32_t __regPriMask __ASM("primask"); + return(__regPriMask); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + register uint32_t __regPriMask __ASM("primask"); + __regPriMask = (priMask); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __enable_fault_irq __enable_fiq + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __disable_fault_irq __disable_fiq + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + register uint32_t __regBasePri __ASM("basepri"); + return(__regBasePri); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__STATIC_INLINE void __set_BASEPRI(uint32_t basePri) +{ + register uint32_t __regBasePri __ASM("basepri"); + __regBasePri = (basePri & 0xff); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + return(__regFaultMask); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + __regFaultMask = (faultMask & (uint32_t)1); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + return(__regfpscr); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + __regfpscr = (fpscr); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief Enable IRQ Interrupts + + This function enables IRQ interrupts by clearing the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) +{ + __ASM volatile ("cpsie i"); +} + + +/** \brief Disable IRQ Interrupts + + This function disables IRQ interrupts by setting the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) +{ + __ASM volatile ("cpsid i"); +} + + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, control" : "=r" (result) ); + return(result); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + __ASM volatile ("MSR control, %0" : : "r" (control) ); +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, apsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) ); +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) ); +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, primask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) +{ + __ASM volatile ("cpsie f"); +} + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) +{ + __ASM volatile ("cpsid f"); +} + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); + return(result); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) +{ + __ASM volatile ("MSR basepri, %0" : : "r" (value) ); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + uint32_t result; + + __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); + return(result); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) ); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@} end of CMSIS_Core_RegAccFunctions */ + + +#endif /* __CORE_CMFUNC_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h new file mode 100644 index 0000000000..597e64df04 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h @@ -0,0 +1,618 @@ +/**************************************************************************//** + * @file core_cmInstr.h + * @brief CMSIS Cortex-M Core Instruction Access Header File + * @version V3.01 + * @date 06. March 2012 + * + * @note + * Copyright (C) 2009-2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMINSTR_H +#define __CORE_CMINSTR_H + + +/* ########################## Core Instruction Access ######################### */ +/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface + Access to dedicated instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +#define __NOP __nop + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +#define __WFI __wfi + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +#define __WFE __wfe + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +#define __SEV __sev + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +#define __ISB() __isb(0xF) + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +#define __DSB() __dsb(0xF) + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +#define __DMB() __dmb(0xF) + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __REV __rev + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) +{ + rev16 r0, r0 + bx lr +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) +{ + revsh r0, r0 + bx lr +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +#define __ROR __ror + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __RBIT __rbit + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXB(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXH(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXW(value, ptr) __strex(value, ptr) + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +#define __CLREX __clrex + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT __ssat + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT __usat + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +#define __CLZ __clz + +#endif /* (__CORTEX_M >= 0x03) */ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void) +{ + __ASM volatile ("nop"); +} + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void) +{ + __ASM volatile ("wfi"); +} + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void) +{ + __ASM volatile ("wfe"); +} + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void) +{ + __ASM volatile ("sev"); +} + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void) +{ + __ASM volatile ("isb"); +} + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void) +{ + __ASM volatile ("dsb"); +} + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void) +{ + __ASM volatile ("dmb"); +} + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value) +{ + uint32_t result; + + __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) +{ + + __ASM volatile ("ror %0, %0, %1" : "+r" (op1) : "r" (op2) ); + return(op1); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) +{ + uint8_t result; + + __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) +{ + uint16_t result; + + __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("strex %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void) +{ + __ASM volatile ("clrex"); +} + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value) +{ + uint8_t result; + + __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all intrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ + +#endif /* __CORE_CMINSTR_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h new file mode 100644 index 0000000000..df507ee456 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h @@ -0,0 +1,17483 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/* */ +/* Header File for Device MB9BF506R */ +/* Version V1.03 */ +/* Date 2011-05-16 */ +/* */ +/************************************************************************/ + +#ifndef _MB9BF506R_H_ +#define _MB9BF506R_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/****************************************************************************** + * Configuration of the Cortex-M3 Processor and Core Peripherals + ******************************************************************************/ +#define __MPU_PRESENT 1 /* FM3 provide an MPU */ +#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ + + +/****************************************************************************** + * Interrupt Number Definition + ******************************************************************************/ +typedef enum IRQn +{ + NMI_IRQn = -14, /* 2 Non Maskable */ + HardFault_IRQn = -13, /* 3 Hard Fault */ + MemManage_IRQn = -12, /* 4 Memory Management */ + BusFault_IRQn = -11, /* 5 Bus Fault */ + UsageFault_IRQn = -10, /* 6 Usage Fault */ + SVC_IRQn = -5, /* 11 SV Call */ + DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ + PendSV_IRQn = -2, /* 14 Pend SV */ + SysTick_IRQn = -1, /* 15 System Tick */ + + CSV_IRQn = 0, /* Clock Super Visor */ + SWDT_IRQn = 1, /* Software Watchdog Timer */ + LVD_IRQn = 2, /* Low Voltage Detector */ + WFG_IRQn = 3, /* Wave Form Generator */ + EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ + EXINT8_15_IRQn = 5, /* External Interrupt Request ch.8 to ch.15 */ + DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ + MFS0RX_IRQn = 7, /* MultiFunction Serial Reception ch.0 */ + MFS0TX_IRQn = 8, /* MultiFunction Serial Transmission ch.0 */ + MFS1RX_IRQn = 9, /* MultiFunction Serial Reception ch.1 */ + MFS1TX_IRQn = 10, /* MultiFunction Serial Transmission ch.1 */ + MFS2RX_IRQn = 11, /* MultiFunction Serial Reception ch.2 */ + MFS2TX_IRQn = 12, /* MultiFunction Serial Transmission ch.2 */ + MFS3RX_IRQn = 13, /* MultiFunction Serial Reception ch.3 */ + MFS3TX_IRQn = 14, /* MultiFunction Serial Transmission ch.3 */ + MFS4RX_IRQn = 15, /* MultiFunction Serial Reception ch.4 */ + MFS4TX_IRQn = 16, /* MultiFunction Serial Transmission ch.4 */ + MFS5RX_IRQn = 17, /* MultiFunction Serial Reception ch.5 */ + MFS5TX_IRQn = 18, /* MultiFunction Serial Transmission ch.5 */ + MFS6RX_IRQn = 19, /* MultiFunction Serial Reception ch.6 */ + MFS6TX_IRQn = 20, /* MultiFunction Serial Transmission ch.6 */ + MFS7RX_IRQn = 21, /* MultiFunction Serial Reception ch.7 */ + MFS7TX_IRQn = 22, /* MultiFunction Serial Transmission ch.7 */ + PPG_IRQn = 23, /* PPG */ + OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ + ADC0_IRQn = 25, /* ADC0 */ + ADC1_IRQn = 26, /* ADC1 */ + ADC2_IRQn = 27, /* ADC2 */ + FRTIM_IRQn = 28, /* Free-run Timer */ + INCAP_IRQn = 29, /* Input Capture */ + OUTCOMP_IRQn = 30, /* Output Compare */ + BTIM_IRQn = 31, /* Base Timer ch.0 to ch.7 */ + CAN0_IRQn = 32, /* CAN ch.0 */ + CAN1_IRQn = 33, /* CAN ch.1 */ + USBF_IRQn = 34, /* USB Function */ + USBF_USBH_IRQn = 35, /* USB Function / USB HOST */ + /* Reserved = 36 */ + /* Reserved = 37 */ + DMAC0_IRQn = 38, /* DMAC ch.0 */ + DMAC1_IRQn = 39, /* DMAC ch.1 */ + DMAC2_IRQn = 40, /* DMAC ch.2 */ + DMAC3_IRQn = 41, /* DMAC ch.3 */ + DMAC4_IRQn = 42, /* DMAC ch.4 */ + DMAC5_IRQn = 43, /* DMAC ch.5 */ + DMAC6_IRQn = 44, /* DMAC ch.6 */ + DMAC7_IRQn = 45 /* DMAC ch.7 */ + /* Reserved = 46 */ + /* Reserved = 47 */ +} IRQn_Type; + + +#include "core_cm3.h" +#include "system_mb9bf50x.h" +#include + +#define SUCCESS 0 +#define ERROR -1 + +#ifndef NULL +#define NULL 0 +#endif + + +/******************************************************************************/ +/* Device Specific Peripheral Registers structures */ +/******************************************************************************/ + +#if defined ( __CC_ARM ) +#pragma anon_unions +#endif + +/****************************************************************************** + * Peripheral register bit fields + ******************************************************************************/ + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash_IF_MODULE register bit fields */ +typedef struct stc_flash_if_faszr_field +{ + __IO uint32_t ASZ0 : 1; + __IO uint32_t ASZ1 : 1; +} stc_flash_if_faszr_field_t; + +typedef struct stc_flash_if_frwtr_field +{ + __IO uint32_t RWT0 : 1; + __IO uint32_t RWT1 : 1; +} stc_flash_if_frwtr_field_t; + +typedef struct stc_flash_if_fstr_field +{ + __IO uint32_t RDY : 1; + __IO uint32_t HNG : 1; + __IO uint32_t EER : 1; +} stc_flash_if_fstr_field_t; + +typedef struct stc_flash_if_fsyndn_field +{ + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; +} stc_flash_if_fsyndn_field_t; + +typedef struct stc_flash_if_crtrmm_field +{ + __IO uint32_t TRMM0 : 1; + __IO uint32_t TRMM1 : 1; + __IO uint32_t TRMM2 : 1; + __IO uint32_t TRMM3 : 1; + __IO uint32_t TRMM4 : 1; + __IO uint32_t TRMM5 : 1; + __IO uint32_t TRMM6 : 1; + __IO uint32_t TRMM7 : 1; + __IO uint32_t TRMM8 : 1; + __IO uint32_t TRMM9 : 1; +} stc_flash_if_crtrmm_field_t; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock_Reset_MODULE register bit fields */ +typedef struct stc_crg_scm_ctl_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MOSCE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SOSCE : 1; + __IO uint8_t PLLE : 1; + __IO uint8_t RCS0 : 1; + __IO uint8_t RCS1 : 1; + __IO uint8_t RCS2 : 1; +} stc_crg_scm_ctl_field_t; + +typedef struct stc_crg_scm_str_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MORDY : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SORDY : 1; + __IO uint8_t PLRDY : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t RCM2 : 1; +} stc_crg_scm_str_field_t; + +typedef struct stc_crg_rst_str_field +{ + __IO uint16_t PONR : 1; + __IO uint16_t INITX : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SWDT : 1; + __IO uint16_t HWDT : 1; + __IO uint16_t CSVR : 1; + __IO uint16_t FCSR : 1; + __IO uint16_t SRST : 1; +} stc_crg_rst_str_field_t; + +typedef struct stc_crg_bsc_psr_field +{ + __IO uint8_t BSR0 : 1; + __IO uint8_t BSR1 : 1; + __IO uint8_t BSR2 : 1; +} stc_crg_bsc_psr_field_t; + +typedef struct stc_crg_apbc0_psr_field +{ + __IO uint8_t APBC00 : 1; + __IO uint8_t APBC01 : 1; +} stc_crg_apbc0_psr_field_t; + +typedef struct stc_crg_apbc1_psr_field +{ + __IO uint8_t APBC10 : 1; + __IO uint8_t APBC11 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC1RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC1EN : 1; +} stc_crg_apbc1_psr_field_t; + +typedef struct stc_crg_apbc2_psr_field +{ + __IO uint8_t APBC20 : 1; + __IO uint8_t APBC21 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC2RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC2EN : 1; +} stc_crg_apbc2_psr_field_t; + +typedef struct stc_crg_swc_psr_field +{ + __IO uint8_t SWDS0 : 1; + __IO uint8_t SWDS1 : 1; + uint8_t RESERVED1 : 5; + __IO uint8_t TESTB : 1; +} stc_crg_swc_psr_field_t; + +typedef struct stc_crg_ttc_psr_field +{ + __IO uint8_t TTC : 1; +} stc_crg_ttc_psr_field_t; + +typedef struct stc_crg_csw_tmr_field +{ + __IO uint8_t MOWT0 : 1; + __IO uint8_t MOWT1 : 1; + __IO uint8_t MOWT2 : 1; + __IO uint8_t MOWT3 : 1; + __IO uint8_t SOWT0 : 1; + __IO uint8_t SOWT1 : 1; + __IO uint8_t SOWT2 : 1; +} stc_crg_csw_tmr_field_t; + +typedef struct stc_crg_psw_tmr_field +{ + __IO uint8_t POWT0 : 1; + __IO uint8_t POWT1 : 1; + __IO uint8_t POWT2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t PINC : 1; +} stc_crg_psw_tmr_field_t; + +typedef struct stc_crg_pll_ctl1_field +{ + __IO uint8_t PLLM0 : 1; + __IO uint8_t PLLM1 : 1; + __IO uint8_t PLLM2 : 1; + __IO uint8_t PLLM3 : 1; + __IO uint8_t PLLK0 : 1; + __IO uint8_t PLLK1 : 1; + __IO uint8_t PLLK2 : 1; + __IO uint8_t PLLK3 : 1; +} stc_crg_pll_ctl1_field_t; + +typedef struct stc_crg_pll_ctl2_field +{ + __IO uint8_t PLLN0 : 1; + __IO uint8_t PLLN1 : 1; + __IO uint8_t PLLN2 : 1; + __IO uint8_t PLLN3 : 1; + __IO uint8_t PLLN4 : 1; + __IO uint8_t PLLN5 : 1; +} stc_crg_pll_ctl2_field_t; + +typedef struct stc_crg_csv_ctl_field +{ + __IO uint16_t MCSVE : 1; + __IO uint16_t SCSVE : 1; + uint16_t RESERVED1 : 6; + __IO uint16_t FCSDE : 1; + __IO uint16_t FCSRE : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t FCD0 : 1; + __IO uint16_t FCD1 : 1; + __IO uint16_t FCD2 : 1; +} stc_crg_csv_ctl_field_t; + +typedef struct stc_crg_csv_str_field +{ + __IO uint8_t MCMF : 1; + __IO uint8_t SCMF : 1; +} stc_crg_csv_str_field_t; + +typedef struct stc_crg_dbwdt_ctl_field +{ + uint8_t RESERVED1 : 5; + __IO uint8_t DPSWBE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t DPHWBE : 1; +} stc_crg_dbwdt_ctl_field_t; + +typedef struct stc_crg_int_enr_field +{ + __IO uint8_t MCSE : 1; + __IO uint8_t SCSE : 1; + __IO uint8_t PCSE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSE : 1; +} stc_crg_int_enr_field_t; + +typedef struct stc_crg_int_str_field +{ + __IO uint8_t MCSI : 1; + __IO uint8_t SCSI : 1; + __IO uint8_t PCSI : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSI : 1; +} stc_crg_int_str_field_t; + +typedef struct stc_crg_int_clr_field +{ + __IO uint8_t MCSC : 1; + __IO uint8_t SCSC : 1; + __IO uint8_t PCSC : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSC : 1; +} stc_crg_int_clr_field_t; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* HWWDT_MODULE register bit fields */ +typedef struct stc_hwwdt_wdg_ctl_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_hwwdt_wdg_ctl_field_t; + +typedef struct stc_hwwdt_wdg_ris_field +{ + __IO uint8_t RIS : 1; +} stc_hwwdt_wdg_ris_field_t; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* SWWDT_MODULE register bit fields */ +typedef struct stc_swwdt_wdogcontrol_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_swwdt_wdogcontrol_field_t; + +typedef struct stc_swwdt_wdogris_field +{ + __IO uint8_t RIS : 1; +} stc_swwdt_wdogris_field_t; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* DTIM_MODULE register bit fields */ +typedef struct stc_dtim_timer1control_field +{ + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; +} stc_dtim_timer1control_field_t; + +typedef struct stc_dtim_timer1ris_field +{ + __IO uint32_t TIMERXRIS : 1; +} stc_dtim_timer1ris_field_t; + +typedef struct stc_dtim_timer1mis_field +{ + __IO uint32_t TIMERXRIS : 1; +} stc_dtim_timer1mis_field_t; + +typedef struct stc_dtim_timer2control_field +{ + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; +} stc_dtim_timer2control_field_t; + +typedef struct stc_dtim_timer2ris_field +{ + __IO uint32_t TIMERXRIS : 1; +} stc_dtim_timer2ris_field_t; + +typedef struct stc_dtim_timer2mis_field +{ + __IO uint32_t TIMERXRIS : 1; +} stc_dtim_timer2mis_field_t; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* MFT_FRT_MODULE register bit fields */ +typedef struct stc_mft_frt_tcsa0_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa0_field_t; + +typedef struct stc_mft_frt_tcsb0_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb0_field_t; + +typedef struct stc_mft_frt_tcsa1_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa1_field_t; + +typedef struct stc_mft_frt_tcsb1_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb1_field_t; + +typedef struct stc_mft_frt_tcsa2_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa2_field_t; + +typedef struct stc_mft_frt_tcsb2_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb2_field_t; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* MFT_OCU_MODULE register bit fields */ +typedef struct stc_mft_ocu_ocsa10_field +{ + __IO uint8_t CST0 : 1; + __IO uint8_t CST1 : 1; + __IO uint8_t BDIS0 : 1; + __IO uint8_t BDIS1 : 1; + __IO uint8_t IOE0 : 1; + __IO uint8_t IOE1 : 1; + __IO uint8_t IOP0 : 1; + __IO uint8_t IOP1 : 1; +} stc_mft_ocu_ocsa10_field_t; + +typedef struct stc_mft_ocu_ocsb10_field +{ + __IO uint8_t OTD0 : 1; + __IO uint8_t OTD1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS0 : 1; + __IO uint8_t BTS1 : 1; +} stc_mft_ocu_ocsb10_field_t; + +typedef struct stc_mft_ocu_ocsa32_field +{ + __IO uint8_t CST2 : 1; + __IO uint8_t CST3 : 1; + __IO uint8_t BDIS2 : 1; + __IO uint8_t BDIS3 : 1; + __IO uint8_t IOE2 : 1; + __IO uint8_t IOE3 : 1; + __IO uint8_t IOP2 : 1; + __IO uint8_t IOP3 : 1; +} stc_mft_ocu_ocsa32_field_t; + +typedef struct stc_mft_ocu_ocsb32_field +{ + __IO uint8_t OTD2 : 1; + __IO uint8_t OTD3 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS2 : 1; + __IO uint8_t BTS3 : 1; +} stc_mft_ocu_ocsb32_field_t; + +typedef struct stc_mft_ocu_ocsa54_field +{ + __IO uint8_t CST4 : 1; + __IO uint8_t CST5 : 1; + __IO uint8_t BDIS4 : 1; + __IO uint8_t BDIS5 : 1; + __IO uint8_t IOE4 : 1; + __IO uint8_t IOE5 : 1; + __IO uint8_t IOP4 : 1; + __IO uint8_t IOP5 : 1; +} stc_mft_ocu_ocsa54_field_t; + +typedef struct stc_mft_ocu_ocsb54_field +{ + __IO uint8_t OTD4 : 1; + __IO uint8_t OTD5 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS4 : 1; + __IO uint8_t BTS5 : 1; +} stc_mft_ocu_ocsb54_field_t; + +typedef struct stc_mft_ocu_ocsc_field +{ + __IO uint8_t MOD0 : 1; + __IO uint8_t MOD1 : 1; + __IO uint8_t MOD2 : 1; + __IO uint8_t MOD3 : 1; + __IO uint8_t MOD4 : 1; + __IO uint8_t MOD5 : 1; +} stc_mft_ocu_ocsc_field_t; + +typedef struct stc_mft_ocu_ocfs10_field +{ + __IO uint8_t FSO00 : 1; + __IO uint8_t FSO01 : 1; + __IO uint8_t FSO02 : 1; + __IO uint8_t FSO03 : 1; + __IO uint8_t FSO10 : 1; + __IO uint8_t FSO11 : 1; + __IO uint8_t FSO12 : 1; + __IO uint8_t FSO13 : 1; +} stc_mft_ocu_ocfs10_field_t; + +typedef struct stc_mft_ocu_ocfs32_field +{ + __IO uint8_t FSO20 : 1; + __IO uint8_t FSO21 : 1; + __IO uint8_t FSO22 : 1; + __IO uint8_t FSO23 : 1; + __IO uint8_t FSO30 : 1; + __IO uint8_t FSO31 : 1; + __IO uint8_t FSO32 : 1; + __IO uint8_t FSO33 : 1; +} stc_mft_ocu_ocfs32_field_t; + +typedef struct stc_mft_ocu_ocfs54_field +{ + __IO uint8_t FSO40 : 1; + __IO uint8_t FSO41 : 1; + __IO uint8_t FSO42 : 1; + __IO uint8_t FSO43 : 1; + __IO uint8_t FSO50 : 1; + __IO uint8_t FSO51 : 1; + __IO uint8_t FSO52 : 1; + __IO uint8_t FSO53 : 1; +} stc_mft_ocu_ocfs54_field_t; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* MFT_WFG_MODULE register bit fields */ +typedef struct stc_mft_wfg_wfsa10_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD0 : 1; + __IO uint16_t TMD1 : 1; + __IO uint16_t TMD2 : 1; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa10_field_t; + +typedef struct stc_mft_wfg_wfsa32_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD0 : 1; + __IO uint16_t TMD1 : 1; + __IO uint16_t TMD2 : 1; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa32_field_t; + +typedef struct stc_mft_wfg_wfsa54_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD0 : 1; + __IO uint16_t TMD1 : 1; + __IO uint16_t TMD2 : 1; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa54_field_t; + +typedef struct stc_mft_wfg_wfir_field +{ + __IO uint16_t DTIF : 1; + __IO uint16_t DTIC : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t TMIF10 : 1; + __IO uint16_t TMIC10 : 1; + __IO uint16_t TMIE10 : 1; + __IO uint16_t TMIS10 : 1; + __IO uint16_t TMIF32 : 1; + __IO uint16_t TMIC32 : 1; + __IO uint16_t TMIE32 : 1; + __IO uint16_t TMIS32 : 1; + __IO uint16_t TMIF54 : 1; + __IO uint16_t TMIC54 : 1; + __IO uint16_t TMIE54 : 1; + __IO uint16_t TMIS54 : 1; +} stc_mft_wfg_wfir_field_t; + +typedef struct stc_mft_wfg_nzcl_field +{ + __IO uint16_t DTIE : 1; + __IO uint16_t NWS0 : 1; + __IO uint16_t NWS1 : 1; + __IO uint16_t NWS2 : 1; + __IO uint16_t SDTI : 1; +} stc_mft_wfg_nzcl_field_t; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* MFT_ICU_MODULE register bit fields */ +typedef struct stc_mft_icu_icfs10_field +{ + __IO uint8_t FSI00 : 1; + __IO uint8_t FSI01 : 1; + __IO uint8_t FSI02 : 1; + __IO uint8_t FSI03 : 1; + __IO uint8_t FSI10 : 1; + __IO uint8_t FSI11 : 1; + __IO uint8_t FSI12 : 1; + __IO uint8_t FSI13 : 1; +} stc_mft_icu_icfs10_field_t; + +typedef struct stc_mft_icu_icfs32_field +{ + __IO uint8_t FSI20 : 1; + __IO uint8_t FSI21 : 1; + __IO uint8_t FSI22 : 1; + __IO uint8_t FSI23 : 1; + __IO uint8_t FSI30 : 1; + __IO uint8_t FSI31 : 1; + __IO uint8_t FSI32 : 1; + __IO uint8_t FSI33 : 1; +} stc_mft_icu_icfs32_field_t; + +typedef struct stc_mft_icu_icsa10_field +{ + __IO uint8_t EG00 : 1; + __IO uint8_t EG01 : 1; + __IO uint8_t EG10 : 1; + __IO uint8_t EG11 : 1; + __IO uint8_t ICE0 : 1; + __IO uint8_t ICE1 : 1; + __IO uint8_t ICP0 : 1; + __IO uint8_t ICP1 : 1; +} stc_mft_icu_icsa10_field_t; + +typedef struct stc_mft_icu_icsb10_field +{ + __IO uint8_t IEI0 : 1; + __IO uint8_t IEI1 : 1; +} stc_mft_icu_icsb10_field_t; + +typedef struct stc_mft_icu_icsa32_field +{ + __IO uint8_t EG20 : 1; + __IO uint8_t EG21 : 1; + __IO uint8_t EG30 : 1; + __IO uint8_t EG31 : 1; + __IO uint8_t ICE2 : 1; + __IO uint8_t ICE3 : 1; + __IO uint8_t ICP2 : 1; + __IO uint8_t ICP3 : 1; +} stc_mft_icu_icsa32_field_t; + +typedef struct stc_mft_icu_icsb32_field +{ + __IO uint8_t IEI2 : 1; + __IO uint8_t IEI3 : 1; +} stc_mft_icu_icsb32_field_t; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* MFT_ADCMP_MODULE register bit fields */ +typedef struct stc_mft_adcmp_acsb_field +{ + __IO uint8_t BDIS0 : 1; + __IO uint8_t BDIS1 : 1; + __IO uint8_t BDIS2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BTS0 : 1; + __IO uint8_t BTS1 : 1; + __IO uint8_t BTS2 : 1; +} stc_mft_adcmp_acsb_field_t; + +typedef struct stc_mft_adcmp_acsa_field +{ + __IO uint16_t CE00 : 1; + __IO uint16_t CE01 : 1; + __IO uint16_t CE10 : 1; + __IO uint16_t CE11 : 1; + __IO uint16_t CE20 : 1; + __IO uint16_t CE21 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SEL00 : 1; + __IO uint16_t SEL01 : 1; + __IO uint16_t SEL10 : 1; + __IO uint16_t SEL11 : 1; + __IO uint16_t SEL20 : 1; + __IO uint16_t SEL21 : 1; +} stc_mft_adcmp_acsa_field_t; + +typedef struct stc_mft_adcmp_atsa_field +{ + __IO uint16_t AD0S0 : 1; + __IO uint16_t AD0S1 : 1; + __IO uint16_t AD1S0 : 1; + __IO uint16_t AD1S1 : 1; + __IO uint16_t AD2S0 : 1; + __IO uint16_t AD2S1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t AD0P0 : 1; + __IO uint16_t AD0P1 : 1; + __IO uint16_t AD1P0 : 1; + __IO uint16_t AD1P1 : 1; + __IO uint16_t AD2P0 : 1; + __IO uint16_t AD2P1 : 1; +} stc_mft_adcmp_atsa_field_t; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* MFT_PPG_MODULE register bit fields */ +typedef struct stc_mft_ppg_ttcr0_field +{ + __IO uint8_t STR0 : 1; + __IO uint8_t MONI0 : 1; + __IO uint8_t CS00 : 1; + __IO uint8_t CS01 : 1; + __IO uint8_t TRG0O : 1; + __IO uint8_t TRG2O : 1; + __IO uint8_t TRG4O : 1; + __IO uint8_t TRG6O : 1; +} stc_mft_ppg_ttcr0_field_t; + +typedef struct stc_mft_ppg_ttcr1_field +{ + __IO uint8_t STR1 : 1; + __IO uint8_t MONI1 : 1; + __IO uint8_t CS10 : 1; + __IO uint8_t CS11 : 1; + __IO uint8_t TRG1O : 1; + __IO uint8_t TRG3O : 1; + __IO uint8_t TRG5O : 1; + __IO uint8_t TRG7O : 1; +} stc_mft_ppg_ttcr1_field_t; + +typedef struct stc_mft_ppg_trg_field +{ + __IO uint16_t PEN00 : 1; + __IO uint16_t PEN01 : 1; + __IO uint16_t PEN02 : 1; + __IO uint16_t PEN03 : 1; + __IO uint16_t PEN04 : 1; + __IO uint16_t PEN05 : 1; + __IO uint16_t PEN06 : 1; + __IO uint16_t PEN07 : 1; + __IO uint16_t PEN08 : 1; + __IO uint16_t PEN09 : 1; + __IO uint16_t PEN10 : 1; + __IO uint16_t PEN11 : 1; + __IO uint16_t PEN12 : 1; + __IO uint16_t PEN13 : 1; + __IO uint16_t PEN14 : 1; + __IO uint16_t PEN15 : 1; +} stc_mft_ppg_trg_field_t; + +typedef struct stc_mft_ppg_revc_field +{ + __IO uint16_t REV00 : 1; + __IO uint16_t REV01 : 1; + __IO uint16_t REV02 : 1; + __IO uint16_t REV03 : 1; + __IO uint16_t REV04 : 1; + __IO uint16_t REV05 : 1; + __IO uint16_t REV06 : 1; + __IO uint16_t REV07 : 1; + __IO uint16_t REV08 : 1; + __IO uint16_t REV09 : 1; + __IO uint16_t REV10 : 1; + __IO uint16_t REV11 : 1; + __IO uint16_t REV12 : 1; + __IO uint16_t REV13 : 1; + __IO uint16_t REV14 : 1; + __IO uint16_t REV15 : 1; +} stc_mft_ppg_revc_field_t; + +typedef struct stc_mft_ppg_ppgc1_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc1_field_t; + +typedef struct stc_mft_ppg_ppgc0_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc0_field_t; + +typedef struct stc_mft_ppg_ppgc3_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc3_field_t; + +typedef struct stc_mft_ppg_ppgc2_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc2_field_t; + +typedef struct stc_mft_ppg_gatec0_field +{ + __IO uint8_t EDGE0 : 1; + __IO uint8_t STRG0 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE2 : 1; + __IO uint8_t STRG2 : 1; +} stc_mft_ppg_gatec0_field_t; + +typedef struct stc_mft_ppg_ppgc5_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc5_field_t; + +typedef struct stc_mft_ppg_ppgc4_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc4_field_t; + +typedef struct stc_mft_ppg_ppgc7_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc7_field_t; + +typedef struct stc_mft_ppg_ppgc6_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc6_field_t; + +typedef struct stc_mft_ppg_gatec4_field +{ + __IO uint8_t EDGE4 : 1; + __IO uint8_t STRG4 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE6 : 1; + __IO uint8_t STRG6 : 1; +} stc_mft_ppg_gatec4_field_t; + +typedef struct stc_mft_ppg_ppgc9_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc9_field_t; + +typedef struct stc_mft_ppg_ppgc8_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc8_field_t; + +typedef struct stc_mft_ppg_ppgc11_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc11_field_t; + +typedef struct stc_mft_ppg_ppgc10_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc10_field_t; + +typedef struct stc_mft_ppg_gatec8_field +{ + __IO uint8_t EDGE8 : 1; + __IO uint8_t STRG8 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE10 : 1; + __IO uint8_t STRG10 : 1; +} stc_mft_ppg_gatec8_field_t; + +typedef struct stc_mft_ppg_ppgc13_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc13_field_t; + +typedef struct stc_mft_ppg_ppgc12_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc12_field_t; + +typedef struct stc_mft_ppg_ppgc15_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc15_field_t; + +typedef struct stc_mft_ppg_ppgc14_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc14_field_t; + +typedef struct stc_mft_ppg_gatec12_field +{ + __IO uint8_t EDGE12 : 1; + __IO uint8_t STRG12 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE14 : 1; + __IO uint8_t STRG14 : 1; +} stc_mft_ppg_gatec12_field_t; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* BT_PPG_MODULE register bit fields */ +typedef struct stc_bt_ppg_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_ppg_tmcr_field_t; + +typedef struct stc_bt_ppg_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_ppg_stc_field_t; + +typedef struct stc_bt_ppg_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_ppg_tmcr2_field_t; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* BT_PWM_MODULE register bit fields */ +typedef struct stc_bt_pwm_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwm_tmcr_field_t; + +typedef struct stc_bt_pwm_stc_field +{ + __IO uint8_t UDIR : 1; + __IO uint8_t DTIR : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t UDIE : 1; + __IO uint8_t DTIE : 1; + __IO uint8_t TGIE : 1; +} stc_bt_pwm_stc_field_t; + +typedef struct stc_bt_pwm_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwm_tmcr2_field_t; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* BT_RT_MODULE register bit fields */ +typedef struct stc_bt_rt_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_rt_tmcr_field_t; + +typedef struct stc_bt_rt_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_rt_stc_field_t; + +typedef struct stc_bt_rt_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_rt_tmcr2_field_t; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* BT_PWC_MODULE register bit fields */ +typedef struct stc_bt_pwc_tmcr_field +{ + uint16_t RESERVED1 : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t EGS2 : 1; + uint16_t RESERVED3 : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwc_tmcr_field_t; + +typedef struct stc_bt_pwc_stc_field +{ + __IO uint8_t OVIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t EDIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t OVIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t EDIE : 1; + __IO uint8_t ERR : 1; +} stc_bt_pwc_stc_field_t; + +typedef struct stc_bt_pwc_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwc_tmcr2_field_t; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* BTIOSEL03_MODULE register bit fields */ +typedef struct stc_btiosel03_btsel0123_field +{ + __IO uint8_t SEL01_0 : 1; + __IO uint8_t SEL01_1 : 1; + __IO uint8_t SEL01_2 : 1; + __IO uint8_t SEL01_3 : 1; + __IO uint8_t SEL23_0 : 1; + __IO uint8_t SEL23_1 : 1; + __IO uint8_t SEL23_2 : 1; + __IO uint8_t SEL23_3 : 1; +} stc_btiosel03_btsel0123_field_t; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* BTIOSEL47_MODULE register bit fields */ +typedef struct stc_btiosel47_btsel4567_field +{ + __IO uint8_t SEL45_0 : 1; + __IO uint8_t SEL45_1 : 1; + __IO uint8_t SEL45_2 : 1; + __IO uint8_t SEL45_3 : 1; + __IO uint8_t SEL67_0 : 1; + __IO uint8_t SEL67_1 : 1; + __IO uint8_t SEL67_2 : 1; + __IO uint8_t SEL67_3 : 1; +} stc_btiosel47_btsel4567_field_t; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* SBSSR_MODULE register bit fields */ +typedef struct stc_sbssr_btsssr_field +{ + __IO uint16_t SSR0 : 1; + __IO uint16_t SSR1 : 1; + __IO uint16_t SSR2 : 1; + __IO uint16_t SSR3 : 1; + __IO uint16_t SSR4 : 1; + __IO uint16_t SSR5 : 1; + __IO uint16_t SSR6 : 1; + __IO uint16_t SSR7 : 1; + __IO uint16_t SSR8 : 1; + __IO uint16_t SSR9 : 1; + __IO uint16_t SSR10 : 1; + __IO uint16_t SSR11 : 1; + __IO uint16_t SSR12 : 1; + __IO uint16_t SSR13 : 1; + __IO uint16_t SSR14 : 1; + __IO uint16_t SSR15 : 1; +} stc_sbssr_btsssr_field_t; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* QPRC_MODULE register bit fields */ +typedef struct stc_qprc_qicr_field +{ + __IO uint16_t QPCMIE : 1; + __IO uint16_t QPCMF : 1; + __IO uint16_t QPRCMIE : 1; + __IO uint16_t QPRCMF : 1; + __IO uint16_t OUZIE : 1; + __IO uint16_t UFDF : 1; + __IO uint16_t OFDF : 1; + __IO uint16_t ZIIF : 1; + __IO uint16_t CDCIE : 1; + __IO uint16_t CDCF : 1; + __IO uint16_t DIRPC : 1; + __IO uint16_t DIROU : 1; + __IO uint16_t QPCNRCMIE : 1; + __IO uint16_t QPCNRCMF : 1; +} stc_qprc_qicr_field_t; + +typedef struct stc_qprc_qicrl_field +{ + __IO uint8_t QPCMIE : 1; + __IO uint8_t QPCMF : 1; + __IO uint8_t QPRCMIE : 1; + __IO uint8_t QPRCMF : 1; + __IO uint8_t OUZIE : 1; + __IO uint8_t UFDF : 1; + __IO uint8_t OFDF : 1; + __IO uint8_t ZIIF : 1; +} stc_qprc_qicrl_field_t; + +typedef struct stc_qprc_qicrh_field +{ + __IO uint8_t CDCIE : 1; + __IO uint8_t CDCF : 1; + __IO uint8_t DIRPC : 1; + __IO uint8_t DIROU : 1; + __IO uint8_t QPCNRCMIE : 1; + __IO uint8_t QPCNRCMF : 1; +} stc_qprc_qicrh_field_t; + +typedef struct stc_qprc_qcr_field +{ + __IO uint16_t PCM0 : 1; + __IO uint16_t PCM1 : 1; + __IO uint16_t RCM0 : 1; + __IO uint16_t RCM1 : 1; + __IO uint16_t PSTP : 1; + __IO uint16_t CGSC : 1; + __IO uint16_t RSEL : 1; + __IO uint16_t SWAP : 1; + __IO uint16_t PCRM0 : 1; + __IO uint16_t PCRM1 : 1; + __IO uint16_t AES0 : 1; + __IO uint16_t AES1 : 1; + __IO uint16_t BES0 : 1; + __IO uint16_t BES1 : 1; + __IO uint16_t CGE0 : 1; + __IO uint16_t CGE1 : 1; +} stc_qprc_qcr_field_t; + +typedef struct stc_qprc_qcrl_field +{ + __IO uint8_t PCM0 : 1; + __IO uint8_t PCM1 : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t PSTP : 1; + __IO uint8_t CGSC : 1; + __IO uint8_t RSEL : 1; + __IO uint8_t SWAP : 1; +} stc_qprc_qcrl_field_t; + +typedef struct stc_qprc_qcrh_field +{ + __IO uint8_t PCRM0 : 1; + __IO uint8_t PCRM1 : 1; + __IO uint8_t AES0 : 1; + __IO uint8_t AES1 : 1; + __IO uint8_t BES0 : 1; + __IO uint8_t BES1 : 1; + __IO uint8_t CGE0 : 1; + __IO uint8_t CGE1 : 1; +} stc_qprc_qcrh_field_t; + +typedef struct stc_qprc_qecr_field +{ + __IO uint16_t ORNGMD : 1; + __IO uint16_t ORNGF : 1; + __IO uint16_t ORNGIE : 1; +} stc_qprc_qecr_field_t; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* ADC12_MODULE register bit fields */ +typedef struct stc_adc_adsr_field +{ + __IO uint8_t SCS : 1; + __IO uint8_t PCS : 1; + __IO uint8_t PCNS : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t FDAS : 1; + __IO uint8_t ADSTP : 1; +} stc_adc_adsr_field_t; + +typedef struct stc_adc_adcr_field +{ + __IO uint8_t OVRIE : 1; + __IO uint8_t CMPIE : 1; + __IO uint8_t PCIE : 1; + __IO uint8_t SCIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t CMPIF : 1; + __IO uint8_t PCIF : 1; + __IO uint8_t SCIF : 1; +} stc_adc_adcr_field_t; + +typedef struct stc_adc_sfns_field +{ + __IO uint8_t SFS0 : 1; + __IO uint8_t SFS1 : 1; + __IO uint8_t SFS2 : 1; + __IO uint8_t SFS3 : 1; +} stc_adc_sfns_field_t; + +typedef struct stc_adc_sccr_field +{ + __IO uint8_t SSTR : 1; + __IO uint8_t SHEN : 1; + __IO uint8_t RPT : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t SFCLR : 1; + __IO uint8_t SOVR : 1; + __IO uint8_t SFUL : 1; + __IO uint8_t SEMP : 1; +} stc_adc_sccr_field_t; + +typedef struct stc_adc_scfd_field +{ + __IO uint32_t SC0 : 1; + __IO uint32_t SC1 : 1; + __IO uint32_t SC2 : 1; + __IO uint32_t SC3 : 1; + __IO uint32_t SC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; + __IO uint32_t SD3 : 1; + __IO uint32_t SD4 : 1; + __IO uint32_t SD5 : 1; + __IO uint32_t SD6 : 1; + __IO uint32_t SD7 : 1; + __IO uint32_t SD8 : 1; + __IO uint32_t SD9 : 1; + __IO uint32_t SD10 : 1; + __IO uint32_t SD11 : 1; +} stc_adc_scfd_field_t; + +typedef struct stc_adc_scfdl_field +{ + __IO uint16_t SC0 : 1; + __IO uint16_t SC1 : 1; + __IO uint16_t SC2 : 1; + __IO uint16_t SC3 : 1; + __IO uint16_t SC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t INVL : 1; +} stc_adc_scfdl_field_t; + +typedef struct stc_adc_scfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t SD0 : 1; + __IO uint16_t SD1 : 1; + __IO uint16_t SD2 : 1; + __IO uint16_t SD3 : 1; + __IO uint16_t SD4 : 1; + __IO uint16_t SD5 : 1; + __IO uint16_t SD6 : 1; + __IO uint16_t SD7 : 1; + __IO uint16_t SD8 : 1; + __IO uint16_t SD9 : 1; + __IO uint16_t SD10 : 1; + __IO uint16_t SD11 : 1; +} stc_adc_scfdh_field_t; + +typedef struct stc_adc_scis23_field +{ + __IO uint16_t AN16 : 1; + __IO uint16_t AN17 : 1; + __IO uint16_t AN18 : 1; + __IO uint16_t AN19 : 1; + __IO uint16_t AN20 : 1; + __IO uint16_t AN21 : 1; + __IO uint16_t AN22 : 1; + __IO uint16_t AN23 : 1; + __IO uint16_t AN24 : 1; + __IO uint16_t AN25 : 1; + __IO uint16_t AN26 : 1; + __IO uint16_t AN27 : 1; + __IO uint16_t AN28 : 1; + __IO uint16_t AN29 : 1; + __IO uint16_t AN30 : 1; + __IO uint16_t AN31 : 1; +} stc_adc_scis23_field_t; + +typedef struct stc_adc_scis2_field +{ + __IO uint8_t AN16 : 1; + __IO uint8_t AN17 : 1; + __IO uint8_t AN18 : 1; + __IO uint8_t AN19 : 1; + __IO uint8_t AN20 : 1; + __IO uint8_t AN21 : 1; + __IO uint8_t AN22 : 1; + __IO uint8_t AN23 : 1; +} stc_adc_scis2_field_t; + +typedef struct stc_adc_scis3_field +{ + __IO uint8_t AN24 : 1; + __IO uint8_t AN25 : 1; + __IO uint8_t AN26 : 1; + __IO uint8_t AN27 : 1; + __IO uint8_t AN28 : 1; + __IO uint8_t AN29 : 1; + __IO uint8_t AN30 : 1; + __IO uint8_t AN31 : 1; +} stc_adc_scis3_field_t; + +typedef struct stc_adc_scis01_field +{ + __IO uint16_t AN0 : 1; + __IO uint16_t AN1 : 1; + __IO uint16_t AN2 : 1; + __IO uint16_t AN3 : 1; + __IO uint16_t AN4 : 1; + __IO uint16_t AN5 : 1; + __IO uint16_t AN6 : 1; + __IO uint16_t AN7 : 1; + __IO uint16_t AN8 : 1; + __IO uint16_t AN9 : 1; + __IO uint16_t AN10 : 1; + __IO uint16_t AN11 : 1; + __IO uint16_t AN12 : 1; + __IO uint16_t AN13 : 1; + __IO uint16_t AN14 : 1; + __IO uint16_t AN15 : 1; +} stc_adc_scis01_field_t; + +typedef struct stc_adc_scis0_field +{ + __IO uint8_t AN0 : 1; + __IO uint8_t AN1 : 1; + __IO uint8_t AN2 : 1; + __IO uint8_t AN3 : 1; + __IO uint8_t AN4 : 1; + __IO uint8_t AN5 : 1; + __IO uint8_t AN6 : 1; + __IO uint8_t AN7 : 1; +} stc_adc_scis0_field_t; + +typedef struct stc_adc_scis1_field +{ + __IO uint8_t AN8 : 1; + __IO uint8_t AN9 : 1; + __IO uint8_t AN10 : 1; + __IO uint8_t AN11 : 1; + __IO uint8_t AN12 : 1; + __IO uint8_t AN13 : 1; + __IO uint8_t AN14 : 1; + __IO uint8_t AN15 : 1; +} stc_adc_scis1_field_t; + +typedef struct stc_adc_pfns_field +{ + __IO uint8_t PFS0 : 1; + __IO uint8_t PFS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t TEST0 : 1; + __IO uint8_t TEST1 : 1; +} stc_adc_pfns_field_t; + +typedef struct stc_adc_pccr_field +{ + __IO uint8_t PSTR : 1; + __IO uint8_t PHEN : 1; + __IO uint8_t PEEN : 1; + __IO uint8_t ESCE : 1; + __IO uint8_t PFCLR : 1; + __IO uint8_t POVR : 1; + __IO uint8_t PFUL : 1; + __IO uint8_t PEMP : 1; +} stc_adc_pccr_field_t; + +typedef struct stc_adc_pcfd_field +{ + __IO uint32_t PC0 : 1; + __IO uint32_t PC1 : 1; + __IO uint32_t PC2 : 1; + __IO uint32_t PC3 : 1; + __IO uint32_t PC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + __IO uint32_t RS2 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t PD0 : 1; + __IO uint32_t PD1 : 1; + __IO uint32_t PD2 : 1; + __IO uint32_t PD3 : 1; + __IO uint32_t PD4 : 1; + __IO uint32_t PD5 : 1; + __IO uint32_t PD6 : 1; + __IO uint32_t PD7 : 1; + __IO uint32_t PD8 : 1; + __IO uint32_t PD9 : 1; + __IO uint32_t PD10 : 1; + __IO uint32_t PD11 : 1; +} stc_adc_pcfd_field_t; + +typedef struct stc_adc_pcfdl_field +{ + __IO uint16_t PC0 : 1; + __IO uint16_t PC1 : 1; + __IO uint16_t PC2 : 1; + __IO uint16_t PC3 : 1; + __IO uint16_t PC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + __IO uint16_t RS2 : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t INVL : 1; +} stc_adc_pcfdl_field_t; + +typedef struct stc_adc_pcfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t PD0 : 1; + __IO uint16_t PD1 : 1; + __IO uint16_t PD2 : 1; + __IO uint16_t PD3 : 1; + __IO uint16_t PD4 : 1; + __IO uint16_t PD5 : 1; + __IO uint16_t PD6 : 1; + __IO uint16_t PD7 : 1; + __IO uint16_t PD8 : 1; + __IO uint16_t PD9 : 1; + __IO uint16_t PD10 : 1; + __IO uint16_t PD11 : 1; +} stc_adc_pcfdh_field_t; + +typedef struct stc_adc_pcis_field +{ + __IO uint8_t P1A0 : 1; + __IO uint8_t P1A1 : 1; + __IO uint8_t P1A2 : 1; + __IO uint8_t P2A0 : 1; + __IO uint8_t P2A1 : 1; + __IO uint8_t P2A2 : 1; + __IO uint8_t P2A3 : 1; + __IO uint8_t P2A4 : 1; +} stc_adc_pcis_field_t; + +typedef struct stc_adc_cmpcr_field +{ + __IO uint8_t CCH0 : 1; + __IO uint8_t CCH1 : 1; + __IO uint8_t CCH2 : 1; + __IO uint8_t CCH3 : 1; + __IO uint8_t CCH4 : 1; + __IO uint8_t CMD0 : 1; + __IO uint8_t CMD1 : 1; + __IO uint8_t CMPEN : 1; +} stc_adc_cmpcr_field_t; + +typedef struct stc_adc_cmpd_field +{ + uint16_t RESERVED1 : 6; + __IO uint16_t CMAD2 : 1; + __IO uint16_t CMAD3 : 1; + __IO uint16_t CMAD4 : 1; + __IO uint16_t CMAD5 : 1; + __IO uint16_t CMAD6 : 1; + __IO uint16_t CMAD7 : 1; + __IO uint16_t CMAD8 : 1; + __IO uint16_t CMAD9 : 1; + __IO uint16_t CMAD10 : 1; + __IO uint16_t CMAD11 : 1; +} stc_adc_cmpd_field_t; + +typedef struct stc_adc_adss23_field +{ + __IO uint16_t TS16 : 1; + __IO uint16_t TS17 : 1; + __IO uint16_t TS18 : 1; + __IO uint16_t TS19 : 1; + __IO uint16_t TS20 : 1; + __IO uint16_t TS21 : 1; + __IO uint16_t TS22 : 1; + __IO uint16_t TS23 : 1; + __IO uint16_t TS24 : 1; + __IO uint16_t TS25 : 1; + __IO uint16_t TS26 : 1; + __IO uint16_t TS27 : 1; + __IO uint16_t TS28 : 1; + __IO uint16_t TS29 : 1; + __IO uint16_t TS30 : 1; + __IO uint16_t TS31 : 1; +} stc_adc_adss23_field_t; + +typedef struct stc_adc_adss2_field +{ + __IO uint8_t TS16 : 1; + __IO uint8_t TS17 : 1; + __IO uint8_t TS18 : 1; + __IO uint8_t TS19 : 1; + __IO uint8_t TS20 : 1; + __IO uint8_t TS21 : 1; + __IO uint8_t TS22 : 1; + __IO uint8_t TS23 : 1; +} stc_adc_adss2_field_t; + +typedef struct stc_adc_adss3_field +{ + __IO uint8_t TS24 : 1; + __IO uint8_t TS25 : 1; + __IO uint8_t TS26 : 1; + __IO uint8_t TS27 : 1; + __IO uint8_t TS28 : 1; + __IO uint8_t TS29 : 1; + __IO uint8_t TS30 : 1; + __IO uint8_t TS31 : 1; +} stc_adc_adss3_field_t; + +typedef struct stc_adc_adss01_field +{ + __IO uint16_t TS0 : 1; + __IO uint16_t TS1 : 1; + __IO uint16_t TS2 : 1; + __IO uint16_t TS3 : 1; + __IO uint16_t TS4 : 1; + __IO uint16_t TS5 : 1; + __IO uint16_t TS6 : 1; + __IO uint16_t TS7 : 1; + __IO uint16_t TS8 : 1; + __IO uint16_t TS9 : 1; + __IO uint16_t TS10 : 1; + __IO uint16_t TS11 : 1; + __IO uint16_t TS12 : 1; + __IO uint16_t TS13 : 1; + __IO uint16_t TS14 : 1; + __IO uint16_t TS15 : 1; +} stc_adc_adss01_field_t; + +typedef struct stc_adc_adss0_field +{ + __IO uint8_t TS0 : 1; + __IO uint8_t TS1 : 1; + __IO uint8_t TS2 : 1; + __IO uint8_t TS3 : 1; + __IO uint8_t TS4 : 1; + __IO uint8_t TS5 : 1; + __IO uint8_t TS6 : 1; + __IO uint8_t TS7 : 1; +} stc_adc_adss0_field_t; + +typedef struct stc_adc_adss1_field +{ + __IO uint8_t TS8 : 1; + __IO uint8_t TS9 : 1; + __IO uint8_t TS10 : 1; + __IO uint8_t TS11 : 1; + __IO uint8_t TS12 : 1; + __IO uint8_t TS13 : 1; + __IO uint8_t TS14 : 1; + __IO uint8_t TS15 : 1; +} stc_adc_adss1_field_t; + +typedef struct stc_adc_adst01_field +{ + __IO uint16_t ST10 : 1; + __IO uint16_t ST11 : 1; + __IO uint16_t ST12 : 1; + __IO uint16_t ST13 : 1; + __IO uint16_t ST14 : 1; + __IO uint16_t STX10 : 1; + __IO uint16_t STX11 : 1; + __IO uint16_t STX12 : 1; + __IO uint16_t ST00 : 1; + __IO uint16_t ST01 : 1; + __IO uint16_t ST02 : 1; + __IO uint16_t ST03 : 1; + __IO uint16_t ST04 : 1; + __IO uint16_t STX00 : 1; + __IO uint16_t STX01 : 1; + __IO uint16_t STX02 : 1; +} stc_adc_adst01_field_t; + +typedef struct stc_adc_adst1_field +{ + __IO uint8_t ST10 : 1; + __IO uint8_t ST11 : 1; + __IO uint8_t ST12 : 1; + __IO uint8_t ST13 : 1; + __IO uint8_t ST14 : 1; + __IO uint8_t STX10 : 1; + __IO uint8_t STX11 : 1; + __IO uint8_t STX12 : 1; +} stc_adc_adst1_field_t; + +typedef struct stc_adc_adst0_field +{ + __IO uint8_t ST00 : 1; + __IO uint8_t ST01 : 1; + __IO uint8_t ST02 : 1; + __IO uint8_t ST03 : 1; + __IO uint8_t ST04 : 1; + __IO uint8_t STX00 : 1; + __IO uint8_t STX01 : 1; + __IO uint8_t STX02 : 1; +} stc_adc_adst0_field_t; + +typedef struct stc_adc_adct_field +{ + __IO uint8_t CT0 : 1; + __IO uint8_t CT1 : 1; + __IO uint8_t CT2 : 1; + __IO uint8_t CT3 : 1; + __IO uint8_t CT4 : 1; + __IO uint8_t CT5 : 1; + __IO uint8_t CT6 : 1; + __IO uint8_t CT7 : 1; +} stc_adc_adct_field_t; + +typedef struct stc_adc_prtsl_field +{ + __IO uint8_t PRTSL0 : 1; + __IO uint8_t PRTSL1 : 1; + __IO uint8_t PRTSL2 : 1; + __IO uint8_t PRTSL3 : 1; +} stc_adc_prtsl_field_t; + +typedef struct stc_adc_sctsl_field +{ + __IO uint8_t SCTSL0 : 1; + __IO uint8_t SCTSL1 : 1; + __IO uint8_t SCTSL2 : 1; + __IO uint8_t SCTSL3 : 1; +} stc_adc_sctsl_field_t; + +typedef struct stc_adc_adcen_field +{ + __IO uint8_t ENBL : 1; + __IO uint8_t READY : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CYCLSL0 : 1; + __IO uint8_t CYCLSL1 : 1; +} stc_adc_adcen_field_t; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CRTRIM_MODULE register bit fields */ +typedef struct stc_crtrim_mcr_psr_field +{ + __IO uint8_t CSR0 : 1; + __IO uint8_t CSR1 : 1; +} stc_crtrim_mcr_psr_field_t; + +typedef struct stc_crtrim_mcr_ftrm_field +{ + __IO uint16_t TRD0 : 1; + __IO uint16_t TRD1 : 1; + __IO uint16_t TRD2 : 1; + __IO uint16_t TRD3 : 1; + __IO uint16_t TRD4 : 1; + __IO uint16_t TRD5 : 1; + __IO uint16_t TRD6 : 1; + __IO uint16_t TRD7 : 1; + __IO uint16_t TRD8 : 1; + __IO uint16_t TRD9 : 1; +} stc_crtrim_mcr_ftrm_field_t; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* EXTI_MODULE register bit fields */ +typedef struct stc_exti_enir_field +{ + __IO uint16_t EN0 : 1; + __IO uint16_t EN1 : 1; + __IO uint16_t EN2 : 1; + __IO uint16_t EN3 : 1; + __IO uint16_t EN4 : 1; + __IO uint16_t EN5 : 1; + __IO uint16_t EN6 : 1; + __IO uint16_t EN7 : 1; + __IO uint16_t EN8 : 1; + __IO uint16_t EN9 : 1; + __IO uint16_t EN10 : 1; + __IO uint16_t EN11 : 1; + __IO uint16_t EN12 : 1; + __IO uint16_t EN13 : 1; + __IO uint16_t EN14 : 1; + __IO uint16_t EN15 : 1; +} stc_exti_enir_field_t; + +typedef struct stc_exti_eirr_field +{ + __IO uint16_t ER0 : 1; + __IO uint16_t ER1 : 1; + __IO uint16_t ER2 : 1; + __IO uint16_t ER3 : 1; + __IO uint16_t ER4 : 1; + __IO uint16_t ER5 : 1; + __IO uint16_t ER6 : 1; + __IO uint16_t ER7 : 1; + __IO uint16_t ER8 : 1; + __IO uint16_t ER9 : 1; + __IO uint16_t ER10 : 1; + __IO uint16_t ER11 : 1; + __IO uint16_t ER12 : 1; + __IO uint16_t ER13 : 1; + __IO uint16_t ER14 : 1; + __IO uint16_t ER15 : 1; +} stc_exti_eirr_field_t; + +typedef struct stc_exti_eicl_field +{ + __IO uint16_t ECL0 : 1; + __IO uint16_t ECL1 : 1; + __IO uint16_t ECL2 : 1; + __IO uint16_t ECL3 : 1; + __IO uint16_t ECL4 : 1; + __IO uint16_t ECL5 : 1; + __IO uint16_t ECL6 : 1; + __IO uint16_t ECL7 : 1; + __IO uint16_t ECL8 : 1; + __IO uint16_t ECL9 : 1; + __IO uint16_t ECL10 : 1; + __IO uint16_t ECL11 : 1; + __IO uint16_t ECL12 : 1; + __IO uint16_t ECL13 : 1; + __IO uint16_t ECL14 : 1; + __IO uint16_t ECL15 : 1; +} stc_exti_eicl_field_t; + +typedef struct stc_exti_elvr_field +{ + __IO uint32_t LA0 : 1; + __IO uint32_t LB0 : 1; + __IO uint32_t LA1 : 1; + __IO uint32_t LB1 : 1; + __IO uint32_t LA2 : 1; + __IO uint32_t LB2 : 1; + __IO uint32_t LA3 : 1; + __IO uint32_t LB3 : 1; + __IO uint32_t LA4 : 1; + __IO uint32_t LB4 : 1; + __IO uint32_t LA5 : 1; + __IO uint32_t LB5 : 1; + __IO uint32_t LA6 : 1; + __IO uint32_t LB6 : 1; + __IO uint32_t LA7 : 1; + __IO uint32_t LB7 : 1; + __IO uint32_t LA8 : 1; + __IO uint32_t LB8 : 1; + __IO uint32_t LA9 : 1; + __IO uint32_t LB9 : 1; + __IO uint32_t LA10 : 1; + __IO uint32_t LB10 : 1; + __IO uint32_t LA11 : 1; + __IO uint32_t LB11 : 1; + __IO uint32_t LA12 : 1; + __IO uint32_t LB12 : 1; + __IO uint32_t LA13 : 1; + __IO uint32_t LB13 : 1; + __IO uint32_t LA14 : 1; + __IO uint32_t LB14 : 1; + __IO uint32_t LA15 : 1; + __IO uint32_t LB15 : 1; +} stc_exti_elvr_field_t; + +typedef struct stc_exti_nmirr_field +{ + __IO uint8_t NR0 : 1; +} stc_exti_nmirr_field_t; + +typedef struct stc_exti_nmicl_field +{ + __IO uint8_t NCL0 : 1; +} stc_exti_nmicl_field_t; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* INTREQ_MODULE register bit fields */ +typedef struct stc_intreq_drqsel_field +{ + __IO uint32_t DRQSEL0 : 1; + __IO uint32_t DRQSEL1 : 1; + __IO uint32_t DRQSEL2 : 1; + __IO uint32_t DRQSEL3 : 1; + __IO uint32_t DRQSEL4 : 1; + __IO uint32_t DRQSEL5 : 1; + __IO uint32_t DRQSEL6 : 1; + __IO uint32_t DRQSEL7 : 1; + __IO uint32_t DRQSEL8 : 1; + __IO uint32_t DRQSEL9 : 1; + __IO uint32_t DRQSEL10 : 1; + __IO uint32_t DRQSEL11 : 1; + __IO uint32_t DRQSEL12 : 1; + __IO uint32_t DRQSEL13 : 1; + __IO uint32_t DRQSEL14 : 1; + __IO uint32_t DRQSEL15 : 1; + __IO uint32_t DRQSEL16 : 1; + __IO uint32_t DRQSEL17 : 1; + __IO uint32_t DRQSEL18 : 1; + __IO uint32_t DRQSEL19 : 1; + __IO uint32_t DRQSEL20 : 1; + __IO uint32_t DRQSEL21 : 1; + __IO uint32_t DRQSEL22 : 1; + __IO uint32_t DRQSEL23 : 1; + __IO uint32_t DRQSEL24 : 1; + __IO uint32_t DRQSEL25 : 1; + __IO uint32_t DRQSEL26 : 1; + __IO uint32_t DRQSEL27 : 1; + __IO uint32_t DRQSEL28 : 1; + __IO uint32_t DRQSEL29 : 1; + __IO uint32_t DRQSEL30 : 1; + __IO uint32_t DRQSEL31 : 1; +} stc_intreq_drqsel_field_t; + +typedef struct stc_intreq_exc02mon_field +{ + __IO uint32_t NMI : 1; + __IO uint32_t HWINT : 1; +} stc_intreq_exc02mon_field_t; + +typedef struct stc_intreq_irq00mon_field +{ + __IO uint32_t FCSINT : 1; +} stc_intreq_irq00mon_field_t; + +typedef struct stc_intreq_irq01mon_field +{ + __IO uint32_t SWWDTINT : 1; +} stc_intreq_irq01mon_field_t; + +typedef struct stc_intreq_irq02mon_field +{ + __IO uint32_t LVDINT : 1; +} stc_intreq_irq02mon_field_t; + +typedef struct stc_intreq_irq03mon_field +{ + __IO uint32_t WAVE0INT0 : 1; + __IO uint32_t WAVE0INT1 : 1; + __IO uint32_t WAVE0INT2 : 1; + __IO uint32_t WAVE0INT3 : 1; + __IO uint32_t WAVE1INT0 : 1; + __IO uint32_t WAVE1INT1 : 1; + __IO uint32_t WAVE1INT2 : 1; + __IO uint32_t WAVE1INT3 : 1; +} stc_intreq_irq03mon_field_t; + +typedef struct stc_intreq_irq04mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; + __IO uint32_t EXTINT4 : 1; + __IO uint32_t EXTINT5 : 1; + __IO uint32_t EXTINT6 : 1; + __IO uint32_t EXTINT7 : 1; +} stc_intreq_irq04mon_field_t; + +typedef struct stc_intreq_irq05mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; + __IO uint32_t EXTINT4 : 1; + __IO uint32_t EXTINT5 : 1; + __IO uint32_t EXTINT6 : 1; + __IO uint32_t EXTINT7 : 1; +} stc_intreq_irq05mon_field_t; + +typedef struct stc_intreq_irq06mon_field +{ + __IO uint32_t TIMINT0 : 1; + __IO uint32_t TIMINT1 : 1; + __IO uint32_t QUD0INT0 : 1; + __IO uint32_t QUD0INT1 : 1; + __IO uint32_t QUD0INT2 : 1; + __IO uint32_t QUD0INT3 : 1; + __IO uint32_t QUD0INT4 : 1; + __IO uint32_t QUD0INT5 : 1; + __IO uint32_t QUD1INT0 : 1; + __IO uint32_t QUD1INT1 : 1; + __IO uint32_t QUD1INT2 : 1; + __IO uint32_t QUD1INT3 : 1; + __IO uint32_t QUD1INT4 : 1; + __IO uint32_t QUD1INT5 : 1; +} stc_intreq_irq06mon_field_t; + +typedef struct stc_intreq_irq07mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq07mon_field_t; + +typedef struct stc_intreq_irq08mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq08mon_field_t; + +typedef struct stc_intreq_irq09mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq09mon_field_t; + +typedef struct stc_intreq_irq10mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq10mon_field_t; + +typedef struct stc_intreq_irq11mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq11mon_field_t; + +typedef struct stc_intreq_irq12mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq12mon_field_t; + +typedef struct stc_intreq_irq13mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq13mon_field_t; + +typedef struct stc_intreq_irq14mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq14mon_field_t; + +typedef struct stc_intreq_irq15mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq15mon_field_t; + +typedef struct stc_intreq_irq16mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq16mon_field_t; + +typedef struct stc_intreq_irq17mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq17mon_field_t; + +typedef struct stc_intreq_irq18mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq18mon_field_t; + +typedef struct stc_intreq_irq19mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq19mon_field_t; + +typedef struct stc_intreq_irq20mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq20mon_field_t; + +typedef struct stc_intreq_irq21mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq21mon_field_t; + +typedef struct stc_intreq_irq22mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq22mon_field_t; + +typedef struct stc_intreq_irq23mon_field +{ + __IO uint32_t PPGINT0 : 1; + __IO uint32_t PPGINT1 : 1; + __IO uint32_t PPGINT2 : 1; + __IO uint32_t PPGINT3 : 1; + __IO uint32_t PPGINT4 : 1; + __IO uint32_t PPGINT5 : 1; +} stc_intreq_irq23mon_field_t; + +typedef struct stc_intreq_irq24mon_field +{ + __IO uint32_t MOSCINT : 1; + __IO uint32_t SOSCINT : 1; + __IO uint32_t MPLLINT : 1; + __IO uint32_t UPLLINT : 1; + __IO uint32_t WCINT : 1; +} stc_intreq_irq24mon_field_t; + +typedef struct stc_intreq_irq25mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq25mon_field_t; + +typedef struct stc_intreq_irq26mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq26mon_field_t; + +typedef struct stc_intreq_irq27mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq27mon_field_t; + +typedef struct stc_intreq_irq28mon_field +{ + __IO uint32_t FRT0INT0 : 1; + __IO uint32_t FRT0INT1 : 1; + __IO uint32_t FRT0INT2 : 1; + __IO uint32_t FRT0INT3 : 1; + __IO uint32_t FRT0INT4 : 1; + __IO uint32_t FRT0INT5 : 1; + __IO uint32_t FRT1INT0 : 1; + __IO uint32_t FRT1INT1 : 1; + __IO uint32_t FRT1INT2 : 1; + __IO uint32_t FRT1INT3 : 1; + __IO uint32_t FRT1INT4 : 1; + __IO uint32_t FRT1INT5 : 1; +} stc_intreq_irq28mon_field_t; + +typedef struct stc_intreq_irq29mon_field +{ + __IO uint32_t ICU0INT0 : 1; + __IO uint32_t ICU0INT1 : 1; + __IO uint32_t ICU0INT2 : 1; + __IO uint32_t ICU0INT3 : 1; + __IO uint32_t ICU1INT0 : 1; + __IO uint32_t ICU1INT1 : 1; + __IO uint32_t ICU1INT2 : 1; + __IO uint32_t ICU1INT3 : 1; +} stc_intreq_irq29mon_field_t; + +typedef struct stc_intreq_irq30mon_field +{ + __IO uint32_t OCU0INT0 : 1; + __IO uint32_t OCU0INT1 : 1; + __IO uint32_t OCU0INT2 : 1; + __IO uint32_t OCU0INT3 : 1; + __IO uint32_t OCU0INT4 : 1; + __IO uint32_t OCU0INT5 : 1; + __IO uint32_t OCU1INT0 : 1; + __IO uint32_t OCU1INT1 : 1; + __IO uint32_t OCU1INT2 : 1; + __IO uint32_t OCU1INT3 : 1; + __IO uint32_t OCU1INT4 : 1; + __IO uint32_t OCU1INT5 : 1; +} stc_intreq_irq30mon_field_t; + +typedef struct stc_intreq_irq31mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; + __IO uint32_t BTINT2 : 1; + __IO uint32_t BTINT3 : 1; + __IO uint32_t BTINT4 : 1; + __IO uint32_t BTINT5 : 1; + __IO uint32_t BTINT6 : 1; + __IO uint32_t BTINT7 : 1; + __IO uint32_t BTINT8 : 1; + __IO uint32_t BTINT9 : 1; + __IO uint32_t BTINT10 : 1; + __IO uint32_t BTINT11 : 1; + __IO uint32_t BTINT12 : 1; + __IO uint32_t BTINT13 : 1; + __IO uint32_t BTINT14 : 1; + __IO uint32_t BTINT15 : 1; +} stc_intreq_irq31mon_field_t; + +typedef struct stc_intreq_irq32mon_field +{ + __IO uint32_t CANINT : 1; +} stc_intreq_irq32mon_field_t; + +typedef struct stc_intreq_irq33mon_field +{ + __IO uint32_t CANINT : 1; +} stc_intreq_irq33mon_field_t; + +typedef struct stc_intreq_irq34mon_field +{ + __IO uint32_t USB0INT0 : 1; + __IO uint32_t USB0INT1 : 1; + __IO uint32_t USB0INT2 : 1; + __IO uint32_t USB0INT3 : 1; + __IO uint32_t USB0INT4 : 1; +} stc_intreq_irq34mon_field_t; + +typedef struct stc_intreq_irq35mon_field +{ + __IO uint32_t USB0INT0 : 1; + __IO uint32_t USB0INT1 : 1; + __IO uint32_t USB0INT2 : 1; + __IO uint32_t USB0INT3 : 1; + __IO uint32_t USB0INT4 : 1; + __IO uint32_t USB0INT5 : 1; +} stc_intreq_irq35mon_field_t; + +typedef struct stc_intreq_irq38mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq38mon_field_t; + +typedef struct stc_intreq_irq39mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq39mon_field_t; + +typedef struct stc_intreq_irq40mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq40mon_field_t; + +typedef struct stc_intreq_irq41mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq41mon_field_t; + +typedef struct stc_intreq_irq42mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq42mon_field_t; + +typedef struct stc_intreq_irq43mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq43mon_field_t; + +typedef struct stc_intreq_irq44mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq44mon_field_t; + +typedef struct stc_intreq_irq45mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq45mon_field_t; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* GPIO_MODULE register bit fields */ +typedef struct stc_gpio_pfr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr0_field_t; + +typedef struct stc_gpio_pfr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr1_field_t; + +typedef struct stc_gpio_pfr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pfr2_field_t; + +typedef struct stc_gpio_pfr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr3_field_t; + +typedef struct stc_gpio_pfr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pfr4_field_t; + +typedef struct stc_gpio_pfr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pfr5_field_t; + +typedef struct stc_gpio_pfr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pfr6_field_t; + +typedef struct stc_gpio_pfr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; +} stc_gpio_pfr7_field_t; + +typedef struct stc_gpio_pfr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; +} stc_gpio_pfr8_field_t; + +typedef struct stc_gpio_pcr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr0_field_t; + +typedef struct stc_gpio_pcr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr1_field_t; + +typedef struct stc_gpio_pcr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pcr2_field_t; + +typedef struct stc_gpio_pcr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr3_field_t; + +typedef struct stc_gpio_pcr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pcr4_field_t; + +typedef struct stc_gpio_pcr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pcr5_field_t; + +typedef struct stc_gpio_pcr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pcr6_field_t; + +typedef struct stc_gpio_pcr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; +} stc_gpio_pcr7_field_t; + +typedef struct stc_gpio_ddr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr0_field_t; + +typedef struct stc_gpio_ddr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr1_field_t; + +typedef struct stc_gpio_ddr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_ddr2_field_t; + +typedef struct stc_gpio_ddr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr3_field_t; + +typedef struct stc_gpio_ddr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_ddr4_field_t; + +typedef struct stc_gpio_ddr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_ddr5_field_t; + +typedef struct stc_gpio_ddr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_ddr6_field_t; + +typedef struct stc_gpio_ddr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; +} stc_gpio_ddr7_field_t; + +typedef struct stc_gpio_ddr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; +} stc_gpio_ddr8_field_t; + +typedef struct stc_gpio_pdir0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir0_field_t; + +typedef struct stc_gpio_pdir1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir1_field_t; + +typedef struct stc_gpio_pdir2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pdir2_field_t; + +typedef struct stc_gpio_pdir3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir3_field_t; + +typedef struct stc_gpio_pdir4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pdir4_field_t; + +typedef struct stc_gpio_pdir5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pdir5_field_t; + +typedef struct stc_gpio_pdir6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pdir6_field_t; + +typedef struct stc_gpio_pdir7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; +} stc_gpio_pdir7_field_t; + +typedef struct stc_gpio_pdir8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; +} stc_gpio_pdir8_field_t; + +typedef struct stc_gpio_pdor0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor0_field_t; + +typedef struct stc_gpio_pdor1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor1_field_t; + +typedef struct stc_gpio_pdor2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pdor2_field_t; + +typedef struct stc_gpio_pdor3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor3_field_t; + +typedef struct stc_gpio_pdor4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pdor4_field_t; + +typedef struct stc_gpio_pdor5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pdor5_field_t; + +typedef struct stc_gpio_pdor6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; +} stc_gpio_pdor6_field_t; + +typedef struct stc_gpio_pdor7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; +} stc_gpio_pdor7_field_t; + +typedef struct stc_gpio_pdor8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; +} stc_gpio_pdor8_field_t; + +typedef struct stc_gpio_ade_field +{ + __IO uint32_t AN0 : 1; + __IO uint32_t AN1 : 1; + __IO uint32_t AN2 : 1; + __IO uint32_t AN3 : 1; + __IO uint32_t AN4 : 1; + __IO uint32_t AN5 : 1; + __IO uint32_t AN6 : 1; + __IO uint32_t AN7 : 1; + __IO uint32_t AN8 : 1; + __IO uint32_t AN9 : 1; + __IO uint32_t ANA : 1; + __IO uint32_t ANB : 1; + __IO uint32_t ANC : 1; + __IO uint32_t AND : 1; + __IO uint32_t ANE : 1; + __IO uint32_t ANF : 1; +} stc_gpio_ade_field_t; + +typedef struct stc_gpio_spsr_field +{ + __IO uint32_t SUBXC : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t USB0C : 1; +} stc_gpio_spsr_field_t; + +typedef struct stc_gpio_epfr00_field +{ + __IO uint32_t NMIS : 1; + __IO uint32_t CROUTE : 1; + uint32_t RESERVED1 : 7; + __IO uint32_t USB0PE : 1; + uint32_t RESERVED2 : 6; + __IO uint32_t JTAGEN0B : 1; + __IO uint32_t JTAGEN1S : 1; + uint32_t RESERVED3 : 6; + __IO uint32_t TRC0E : 1; + __IO uint32_t TRC1E : 1; +} stc_gpio_epfr00_field_t; + +typedef struct stc_gpio_epfr01_field +{ + __IO uint32_t RTO00E0 : 1; + __IO uint32_t RTO00E1 : 1; + __IO uint32_t RTO01E0 : 1; + __IO uint32_t RTO01E1 : 1; + __IO uint32_t RTO02E0 : 1; + __IO uint32_t RTO02E1 : 1; + __IO uint32_t RTO03E0 : 1; + __IO uint32_t RTO03E1 : 1; + __IO uint32_t RTO04E0 : 1; + __IO uint32_t RTO04E1 : 1; + __IO uint32_t RTO05E0 : 1; + __IO uint32_t RTO05E1 : 1; + __IO uint32_t DTTI0C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI0S0 : 1; + __IO uint32_t DTTI0S1 : 1; + __IO uint32_t FRCK0S0 : 1; + __IO uint32_t FRCK0S1 : 1; + __IO uint32_t IC00S0 : 1; + __IO uint32_t IC00S1 : 1; + __IO uint32_t IC00S2 : 1; + __IO uint32_t IC01S0 : 1; + __IO uint32_t IC01S1 : 1; + __IO uint32_t IC01S2 : 1; + __IO uint32_t IC02S0 : 1; + __IO uint32_t IC02S1 : 1; + __IO uint32_t IC02S2 : 1; + __IO uint32_t IC03S0 : 1; + __IO uint32_t IC03S1 : 1; + __IO uint32_t IC03S2 : 1; +} stc_gpio_epfr01_field_t; + +typedef struct stc_gpio_epfr02_field +{ + __IO uint32_t RTO10E0 : 1; + __IO uint32_t RTO10E1 : 1; + __IO uint32_t RTO11E0 : 1; + __IO uint32_t RTO11E1 : 1; + __IO uint32_t RTO12E0 : 1; + __IO uint32_t RTO12E1 : 1; + __IO uint32_t RTO13E0 : 1; + __IO uint32_t RTO13E1 : 1; + __IO uint32_t RTO14E0 : 1; + __IO uint32_t RTO14E1 : 1; + __IO uint32_t RTO15E0 : 1; + __IO uint32_t RTO15E1 : 1; + __IO uint32_t DTTI1C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI1S0 : 1; + __IO uint32_t DTTI1S1 : 1; + __IO uint32_t FRCK1S0 : 1; + __IO uint32_t FRCK1S1 : 1; + __IO uint32_t IC10S0 : 1; + __IO uint32_t IC10S1 : 1; + __IO uint32_t IC10S2 : 1; + __IO uint32_t IC11S0 : 1; + __IO uint32_t IC11S1 : 1; + __IO uint32_t IC11S2 : 1; + __IO uint32_t IC12S0 : 1; + __IO uint32_t IC12S1 : 1; + __IO uint32_t IC12S2 : 1; + __IO uint32_t IC13S0 : 1; + __IO uint32_t IC13S1 : 1; + __IO uint32_t IC13S2 : 1; +} stc_gpio_epfr02_field_t; + +typedef struct stc_gpio_epfr04_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA0E0 : 1; + __IO uint32_t TIOA0E1 : 1; + __IO uint32_t TIOB0S0 : 1; + __IO uint32_t TIOB0S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA1S0 : 1; + __IO uint32_t TIOA1S1 : 1; + __IO uint32_t TIOA1E0 : 1; + __IO uint32_t TIOA1E1 : 1; + __IO uint32_t TIOB1S0 : 1; + __IO uint32_t TIOB1S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA2E0 : 1; + __IO uint32_t TIOA2E1 : 1; + __IO uint32_t TIOB2S0 : 1; + __IO uint32_t TIOB2S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA3S0 : 1; + __IO uint32_t TIOA3S1 : 1; + __IO uint32_t TIOA3E0 : 1; + __IO uint32_t TIOA3E1 : 1; + __IO uint32_t TIOB3S0 : 1; + __IO uint32_t TIOB3S1 : 1; +} stc_gpio_epfr04_field_t; + +typedef struct stc_gpio_epfr05_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA4E0 : 1; + __IO uint32_t TIOA4E1 : 1; + __IO uint32_t TIOB4S0 : 1; + __IO uint32_t TIOB4S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA5S0 : 1; + __IO uint32_t TIOA5S1 : 1; + __IO uint32_t TIOA5E0 : 1; + __IO uint32_t TIOA5E1 : 1; + __IO uint32_t TIOB5S0 : 1; + __IO uint32_t TIOB5S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA6E0 : 1; + __IO uint32_t TIOA6E1 : 1; + __IO uint32_t TIOB6S0 : 1; + __IO uint32_t TIOB6S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA7S0 : 1; + __IO uint32_t TIOA7S1 : 1; + __IO uint32_t TIOA7E0 : 1; + __IO uint32_t TIOA7E1 : 1; + __IO uint32_t TIOB7S0 : 1; + __IO uint32_t TIOB7S1 : 1; +} stc_gpio_epfr05_field_t; + +typedef struct stc_gpio_epfr06_field +{ + __IO uint32_t EINT00S0 : 1; + __IO uint32_t EINT00S1 : 1; + __IO uint32_t EINT01S0 : 1; + __IO uint32_t EINT01S1 : 1; + __IO uint32_t EINT02S0 : 1; + __IO uint32_t EINT02S1 : 1; + __IO uint32_t EINT03S0 : 1; + __IO uint32_t EINT03S1 : 1; + __IO uint32_t EINT04S0 : 1; + __IO uint32_t EINT04S1 : 1; + __IO uint32_t EINT05S0 : 1; + __IO uint32_t EINT05S1 : 1; + __IO uint32_t EINT06S0 : 1; + __IO uint32_t EINT06S1 : 1; + __IO uint32_t EINT07S0 : 1; + __IO uint32_t EINT07S1 : 1; + __IO uint32_t EINT08S0 : 1; + __IO uint32_t EINT08S1 : 1; + __IO uint32_t EINT09S0 : 1; + __IO uint32_t EINT09S1 : 1; + __IO uint32_t EINT10S0 : 1; + __IO uint32_t EINT10S1 : 1; + __IO uint32_t EINT11S0 : 1; + __IO uint32_t EINT11S1 : 1; + __IO uint32_t EINT12S0 : 1; + __IO uint32_t EINT12S1 : 1; + __IO uint32_t EINT13S0 : 1; + __IO uint32_t EINT13S1 : 1; + __IO uint32_t EINT14S0 : 1; + __IO uint32_t EINT14S1 : 1; + __IO uint32_t EINT15S0 : 1; + __IO uint32_t EINT15S1 : 1; +} stc_gpio_epfr06_field_t; + +typedef struct stc_gpio_epfr07_field +{ + uint32_t RESERVED1 : 4; + __IO uint32_t SIN0S0 : 1; + __IO uint32_t SIN0S1 : 1; + __IO uint32_t SOT0B0 : 1; + __IO uint32_t SOT0B1 : 1; + __IO uint32_t SCK0B0 : 1; + __IO uint32_t SCK0B1 : 1; + __IO uint32_t SIN1S0 : 1; + __IO uint32_t SIN1S1 : 1; + __IO uint32_t SOT1B0 : 1; + __IO uint32_t SOT1B1 : 1; + __IO uint32_t SCK1B0 : 1; + __IO uint32_t SCK1B1 : 1; + __IO uint32_t SIN2S0 : 1; + __IO uint32_t SIN2S1 : 1; + __IO uint32_t SOT2B0 : 1; + __IO uint32_t SOT2B1 : 1; + __IO uint32_t SCK2B0 : 1; + __IO uint32_t SCK2B1 : 1; + __IO uint32_t SIN3S0 : 1; + __IO uint32_t SIN3S1 : 1; + __IO uint32_t SOT3B0 : 1; + __IO uint32_t SOT3B1 : 1; + __IO uint32_t SCK3B0 : 1; + __IO uint32_t SCK3B1 : 1; +} stc_gpio_epfr07_field_t; + +typedef struct stc_gpio_epfr08_field +{ + __IO uint32_t RTS4E0 : 1; + __IO uint32_t RTS4E1 : 1; + __IO uint32_t CTS4S0 : 1; + __IO uint32_t CTS4S1 : 1; + __IO uint32_t SIN4S0 : 1; + __IO uint32_t SIN4S1 : 1; + __IO uint32_t SOT4B0 : 1; + __IO uint32_t SOT4B1 : 1; + __IO uint32_t SCK4B0 : 1; + __IO uint32_t SCK4B1 : 1; + __IO uint32_t SIN5S0 : 1; + __IO uint32_t SIN5S1 : 1; + __IO uint32_t SOT5B0 : 1; + __IO uint32_t SOT5B1 : 1; + __IO uint32_t SCK5B0 : 1; + __IO uint32_t SCK5B1 : 1; + __IO uint32_t SIN6S0 : 1; + __IO uint32_t SIN6S1 : 1; + __IO uint32_t SOT6B0 : 1; + __IO uint32_t SOT6B1 : 1; + __IO uint32_t SCK6B0 : 1; + __IO uint32_t SCK6B1 : 1; + __IO uint32_t SIN7S0 : 1; + __IO uint32_t SIN7S1 : 1; + __IO uint32_t SOT7B0 : 1; + __IO uint32_t SOT7B1 : 1; + __IO uint32_t SCK7B0 : 1; + __IO uint32_t SCK7B1 : 1; +} stc_gpio_epfr08_field_t; + +typedef struct stc_gpio_epfr09_field +{ + __IO uint32_t QAIN0S0 : 1; + __IO uint32_t QAIN0S1 : 1; + __IO uint32_t QBIN0S0 : 1; + __IO uint32_t QBIN0S1 : 1; + __IO uint32_t QZIN0S0 : 1; + __IO uint32_t QZIN0S1 : 1; + __IO uint32_t QAIN1S0 : 1; + __IO uint32_t QAIN1S1 : 1; + __IO uint32_t QBIN1S0 : 1; + __IO uint32_t QBIN1S1 : 1; + __IO uint32_t QZIN1S0 : 1; + __IO uint32_t QZIN1S1 : 1; + __IO uint32_t ADTRG0S0 : 1; + __IO uint32_t ADTRG0S1 : 1; + __IO uint32_t ADTRG0S2 : 1; + __IO uint32_t ADTRG0S3 : 1; + __IO uint32_t ADTRG1S0 : 1; + __IO uint32_t ADTRG1S1 : 1; + __IO uint32_t ADTRG1S2 : 1; + __IO uint32_t ADTRG1S3 : 1; + __IO uint32_t ADTRG2S0 : 1; + __IO uint32_t ADTRG2S1 : 1; + __IO uint32_t ADTRG2S2 : 1; + __IO uint32_t ADTRG2S3 : 1; + __IO uint32_t CRX0S0 : 1; + __IO uint32_t CRX0S1 : 1; + __IO uint32_t CTX0E0 : 1; + __IO uint32_t CTX0E1 : 1; + __IO uint32_t CRX1S0 : 1; + __IO uint32_t CRX1S1 : 1; + __IO uint32_t CTX1E0 : 1; + __IO uint32_t CTX1E1 : 1; +} stc_gpio_epfr09_field_t; + +typedef struct stc_gpio_epfr10_field +{ + __IO uint32_t UEDEFB : 1; + __IO uint32_t UEDTHB : 1; + __IO uint32_t TESTB : 1; + __IO uint32_t UEWEXE : 1; + __IO uint32_t UEDQME : 1; + __IO uint32_t UEOEXE : 1; + __IO uint32_t UEFLSE : 1; + __IO uint32_t UECS1E : 1; + __IO uint32_t UECS2E : 1; + __IO uint32_t UECS3E : 1; + __IO uint32_t UECS4E : 1; + __IO uint32_t UECS5E : 1; + __IO uint32_t UECS6E : 1; + __IO uint32_t UECS7E : 1; + __IO uint32_t UEAOOE : 1; + __IO uint32_t UEA08E : 1; + __IO uint32_t UEA09E : 1; + __IO uint32_t UEA10E : 1; + __IO uint32_t UEA11E : 1; + __IO uint32_t UEA12E : 1; + __IO uint32_t UEA13E : 1; + __IO uint32_t UEA14E : 1; + __IO uint32_t UEA15E : 1; + __IO uint32_t UEA16E : 1; + __IO uint32_t UEA17E : 1; + __IO uint32_t UEA18E : 1; + __IO uint32_t UEA19E : 1; + __IO uint32_t UEA20E : 1; + __IO uint32_t UEA21E : 1; + __IO uint32_t UEA22E : 1; + __IO uint32_t UEA23E : 1; + __IO uint32_t UEA24E : 1; +} stc_gpio_epfr10_field_t; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* LVD_MODULE register bit fields */ +typedef struct stc_lvd_lvd_ctl_field +{ + uint8_t RESERVED1 : 2; + __IO uint8_t SVHI0 : 1; + __IO uint8_t SVHI1 : 1; + __IO uint8_t SVHI2 : 1; + __IO uint8_t SVHI3 : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t LVDIE : 1; +} stc_lvd_lvd_ctl_field_t; + +typedef struct stc_lvd_lvd_str_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIR : 1; +} stc_lvd_lvd_str_field_t; + +typedef struct stc_lvd_lvd_clr_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDCL : 1; +} stc_lvd_lvd_clr_field_t; + +typedef struct stc_lvd_lvd_str2_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIRDY : 1; +} stc_lvd_lvd_str2_field_t; + +/****************************************************************************** + * USBCLK + ******************************************************************************/ +/* USBCLK register bit fields */ +typedef struct stc_usbclk_uccr_field +{ + __IO uint8_t UCEN : 1; + __IO uint8_t UCSEL : 1; +} stc_usbclk_uccr_field_t; + +typedef struct stc_usbclk_upcr1_field +{ + __IO uint8_t UPLLEN : 1; + __IO uint8_t UPINC : 1; +} stc_usbclk_upcr1_field_t; + +typedef struct stc_usbclk_upcr2_field +{ + __IO uint8_t UPOWT0 : 1; + __IO uint8_t UPOWT1 : 1; + __IO uint8_t UPOWT2 : 1; +} stc_usbclk_upcr2_field_t; + +typedef struct stc_usbclk_upcr3_field +{ + __IO uint8_t UPLLK0 : 1; + __IO uint8_t UPLLK1 : 1; + __IO uint8_t UPLLK2 : 1; + __IO uint8_t UPLLK3 : 1; + __IO uint8_t UPLLK4 : 1; +} stc_usbclk_upcr3_field_t; + +typedef struct stc_usbclk_upcr4_field +{ + __IO uint8_t UPLLN0 : 1; + __IO uint8_t UPLLN1 : 1; + __IO uint8_t UPLLN2 : 1; + __IO uint8_t UPLLN3 : 1; + __IO uint8_t UPLLN4 : 1; +} stc_usbclk_upcr4_field_t; + +typedef struct stc_usbclk_up_str_field +{ + __IO uint8_t UPRDY : 1; +} stc_usbclk_up_str_field_t; + +typedef struct stc_usbclk_upint_enr_field +{ + __IO uint8_t UPCSE : 1; +} stc_usbclk_upint_enr_field_t; + +typedef struct stc_usbclk_upint_clr_field +{ + __IO uint8_t UPCSC : 1; +} stc_usbclk_upint_clr_field_t; + +typedef struct stc_usbclk_upint_str_field +{ + __IO uint8_t UPCSI : 1; +} stc_usbclk_upint_str_field_t; + +typedef struct stc_usbclk_usben_field +{ + __IO uint8_t USBEN : 1; +} stc_usbclk_usben_field_t; + +/****************************************************************************** + * CANPRE_MODULE + ******************************************************************************/ +/* CANPRE_MODULE register bit fields */ +typedef struct stc_canpre_canpre_field +{ + __IO uint8_t CANPRE0 : 1; + __IO uint8_t CANPRE1 : 1; + __IO uint8_t CANPRE2 : 1; + __IO uint8_t CANPRE3 : 1; +} stc_canpre_canpre_field_t; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* MFS03_UART_MODULE register bit fields */ +typedef struct stc_mfs03_uart_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_uart_smr_field_t; + +typedef struct stc_mfs03_uart_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; +} stc_mfs03_uart_scr_field_t; + +typedef struct stc_mfs03_uart_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t P : 1; + __IO uint8_t PEN : 1; + __IO uint8_t INV : 1; + __IO uint8_t ESBL : 1; + __IO uint8_t FLWEN : 1; +} stc_mfs03_uart_escr_field_t; + +typedef struct stc_mfs03_uart_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t PE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs03_uart_ssr_field_t; + +typedef struct stc_mfs03_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs03_uart_rdr_field_t; + +typedef struct stc_mfs03_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs03_uart_tdr_field_t; + +typedef struct stc_mfs03_uart_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs03_uart_bgr_field_t; + +typedef struct stc_mfs03_uart_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs03_uart_bgr1_field_t; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* MFS03_CSIO_MODULE register bit fields */ +typedef struct stc_mfs03_csio_smr_field +{ + __IO uint8_t SOE : 1; + __IO uint8_t SCKE : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SCINV : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_csio_smr_field_t; + +typedef struct stc_mfs03_csio_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t SPI : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs03_csio_scr_field_t; + +typedef struct stc_mfs03_csio_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t WT0 : 1; + __IO uint8_t WT1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SOP : 1; +} stc_mfs03_csio_escr_field_t; + +typedef struct stc_mfs03_csio_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t REC : 1; +} stc_mfs03_csio_ssr_field_t; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* MFS03_LIN_MODULE register bit fields */ +typedef struct stc_mfs03_lin_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_lin_smr_field_t; + +typedef struct stc_mfs03_lin_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t LBR : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs03_lin_scr_field_t; + +typedef struct stc_mfs03_lin_escr_field +{ + __IO uint8_t DEL0 : 1; + __IO uint8_t DEL1 : 1; + __IO uint8_t LBL0 : 1; + __IO uint8_t LBL1 : 1; + __IO uint8_t LBIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t ESBL : 1; +} stc_mfs03_lin_escr_field_t; + +typedef struct stc_mfs03_lin_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t LBD : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs03_lin_ssr_field_t; + +typedef struct stc_mfs03_lin_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs03_lin_bgr_field_t; + +typedef struct stc_mfs03_lin_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs03_lin_bgr1_field_t; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* MFS03_I2C_MODULE register bit fields */ +typedef struct stc_mfs03_i2c_smr_field +{ + __IO uint8_t ITST0 : 1; + __IO uint8_t ITST1 : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_i2c_smr_field_t; + +typedef struct stc_mfs03_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs03_i2c_ibcr_field_t; + +typedef struct stc_mfs03_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs03_i2c_ibsr_field_t; + +typedef struct stc_mfs03_i2c_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t DMA : 1; + __IO uint8_t TSET : 1; + __IO uint8_t REC : 1; +} stc_mfs03_i2c_ssr_field_t; + +typedef struct stc_mfs03_i2c_isba_field +{ + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + __IO uint8_t SAEN : 1; +} stc_mfs03_i2c_isba_field_t; + +typedef struct stc_mfs03_i2c_ismk_field +{ + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + __IO uint8_t EN : 1; +} stc_mfs03_i2c_ismk_field_t; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* MFS47_UART_MODULE register bit fields */ +typedef struct stc_mfs47_uart_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_uart_smr_field_t; + +typedef struct stc_mfs47_uart_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; +} stc_mfs47_uart_scr_field_t; + +typedef struct stc_mfs47_uart_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t P : 1; + __IO uint8_t PEN : 1; + __IO uint8_t INV : 1; + __IO uint8_t ESBL : 1; + __IO uint8_t FLWEN : 1; +} stc_mfs47_uart_escr_field_t; + +typedef struct stc_mfs47_uart_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t PE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs47_uart_ssr_field_t; + +typedef struct stc_mfs47_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs47_uart_rdr_field_t; + +typedef struct stc_mfs47_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs47_uart_tdr_field_t; + +typedef struct stc_mfs47_uart_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs47_uart_bgr_field_t; + +typedef struct stc_mfs47_uart_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs47_uart_bgr1_field_t; + +typedef struct stc_mfs47_uart_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_uart_fcr_field_t; + +typedef struct stc_mfs47_uart_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_uart_fcr0_field_t; + +typedef struct stc_mfs47_uart_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_uart_fcr1_field_t; + +typedef struct stc_mfs47_uart_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_uart_fbyte_field_t; + +typedef struct stc_mfs47_uart_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_uart_fbyte1_field_t; + +typedef struct stc_mfs47_uart_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_uart_fbyte2_field_t; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* MFS47_CSIO_MODULE register bit fields */ +typedef struct stc_mfs47_csio_smr_field +{ + __IO uint8_t SOE : 1; + __IO uint8_t SCKE : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SCINV : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_csio_smr_field_t; + +typedef struct stc_mfs47_csio_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t SPI : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs47_csio_scr_field_t; + +typedef struct stc_mfs47_csio_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t WT0 : 1; + __IO uint8_t WT1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SOP : 1; +} stc_mfs47_csio_escr_field_t; + +typedef struct stc_mfs47_csio_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t REC : 1; +} stc_mfs47_csio_ssr_field_t; + +typedef struct stc_mfs47_csio_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_csio_fcr_field_t; + +typedef struct stc_mfs47_csio_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_csio_fcr0_field_t; + +typedef struct stc_mfs47_csio_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_csio_fcr1_field_t; + +typedef struct stc_mfs47_csio_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_csio_fbyte_field_t; + +typedef struct stc_mfs47_csio_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_csio_fbyte1_field_t; + +typedef struct stc_mfs47_csio_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_csio_fbyte2_field_t; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* MFS47_LIN_MODULE register bit fields */ +typedef struct stc_mfs47_lin_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_lin_smr_field_t; + +typedef struct stc_mfs47_lin_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t LBR : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs47_lin_scr_field_t; + +typedef struct stc_mfs47_lin_escr_field +{ + __IO uint8_t DEL0 : 1; + __IO uint8_t DEL1 : 1; + __IO uint8_t LBL0 : 1; + __IO uint8_t LBL1 : 1; + __IO uint8_t LBIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t ESBL : 1; +} stc_mfs47_lin_escr_field_t; + +typedef struct stc_mfs47_lin_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t LBD : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs47_lin_ssr_field_t; + +typedef struct stc_mfs47_lin_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs47_lin_bgr_field_t; + +typedef struct stc_mfs47_lin_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs47_lin_bgr1_field_t; + +typedef struct stc_mfs47_lin_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_lin_fcr_field_t; + +typedef struct stc_mfs47_lin_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_lin_fcr0_field_t; + +typedef struct stc_mfs47_lin_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_lin_fcr1_field_t; + +typedef struct stc_mfs47_lin_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_lin_fbyte_field_t; + +typedef struct stc_mfs47_lin_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_lin_fbyte1_field_t; + +typedef struct stc_mfs47_lin_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_lin_fbyte2_field_t; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* MFS47_I2C_MODULE register bit fields */ +typedef struct stc_mfs47_i2c_smr_field +{ + __IO uint8_t ITST0 : 1; + __IO uint8_t ITST1 : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_i2c_smr_field_t; + +typedef struct stc_mfs47_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs47_i2c_ibcr_field_t; + +typedef struct stc_mfs47_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs47_i2c_ibsr_field_t; + +typedef struct stc_mfs47_i2c_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t DMA : 1; + __IO uint8_t TSET : 1; + __IO uint8_t REC : 1; +} stc_mfs47_i2c_ssr_field_t; + +typedef struct stc_mfs47_i2c_isba_field +{ + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + __IO uint8_t SAEN : 1; +} stc_mfs47_i2c_isba_field_t; + +typedef struct stc_mfs47_i2c_ismk_field +{ + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + __IO uint8_t EN : 1; +} stc_mfs47_i2c_ismk_field_t; + +typedef struct stc_mfs47_i2c_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_i2c_fcr_field_t; + +typedef struct stc_mfs47_i2c_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_i2c_fcr0_field_t; + +typedef struct stc_mfs47_i2c_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_i2c_fcr1_field_t; + +typedef struct stc_mfs47_i2c_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_i2c_fbyte_field_t; + +typedef struct stc_mfs47_i2c_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_i2c_fbyte1_field_t; + +typedef struct stc_mfs47_i2c_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_i2c_fbyte2_field_t; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC_MODULE register bit fields */ +typedef struct stc_crc_crccr_field +{ + __IO uint8_t INIT : 1; + __IO uint8_t CRC32 : 1; + __IO uint8_t LTLEND : 1; + __IO uint8_t LSBFST : 1; + __IO uint8_t CRCLTE : 1; + __IO uint8_t CRCLSF : 1; + __IO uint8_t FXOR : 1; +} stc_crc_crccr_field_t; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* WC_MODULE register bit fields */ +typedef struct stc_wc_wcrd_field +{ + __IO uint8_t CTR0 : 1; + __IO uint8_t CTR1 : 1; + __IO uint8_t CTR2 : 1; + __IO uint8_t CTR3 : 1; + __IO uint8_t CTR4 : 1; + __IO uint8_t CTR5 : 1; +} stc_wc_wcrd_field_t; + +typedef struct stc_wc_wcrl_field +{ + __IO uint8_t RLC0 : 1; + __IO uint8_t RLC1 : 1; + __IO uint8_t RLC2 : 1; + __IO uint8_t RLC3 : 1; + __IO uint8_t RLC4 : 1; + __IO uint8_t RLC5 : 1; +} stc_wc_wcrl_field_t; + +typedef struct stc_wc_wccr_field +{ + __IO uint8_t WCIF : 1; + __IO uint8_t WCIE : 1; + __IO uint8_t CS0 : 1; + __IO uint8_t CS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t WCOP : 1; + __IO uint8_t WCEN : 1; +} stc_wc_wccr_field_t; + +typedef struct stc_wc_clk_sel_field +{ + __IO uint16_t SEL_IN : 1; + uint16_t RESERVED1 : 7; + __IO uint16_t SEL_OUT : 1; +} stc_wc_clk_sel_field_t; + +typedef struct stc_wc_clk_en_field +{ + __IO uint8_t CLK_EN : 1; + __IO uint8_t CLK_EN_R : 1; +} stc_wc_clk_en_field_t; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* EXBUS_MODULE register bit fields */ +typedef struct stc_exbus_mode0_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode0_field_t; + +typedef struct stc_exbus_mode1_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode1_field_t; + +typedef struct stc_exbus_mode2_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode2_field_t; + +typedef struct stc_exbus_mode3_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode3_field_t; + +typedef struct stc_exbus_mode4_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode4_field_t; + +typedef struct stc_exbus_mode5_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode5_field_t; + +typedef struct stc_exbus_mode6_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode6_field_t; + +typedef struct stc_exbus_mode7_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t TEST : 1; +} stc_exbus_mode7_field_t; + +typedef struct stc_exbus_tim0_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim0_field_t; + +typedef struct stc_exbus_tim1_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim1_field_t; + +typedef struct stc_exbus_tim2_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim2_field_t; + +typedef struct stc_exbus_tim3_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim3_field_t; + +typedef struct stc_exbus_tim4_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim4_field_t; + +typedef struct stc_exbus_tim5_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim5_field_t; + +typedef struct stc_exbus_tim6_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim6_field_t; + +typedef struct stc_exbus_tim7_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim7_field_t; + +typedef struct stc_exbus_area0_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area0_field_t; + +typedef struct stc_exbus_area1_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area1_field_t; + +typedef struct stc_exbus_area2_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area2_field_t; + +typedef struct stc_exbus_area3_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area3_field_t; + +typedef struct stc_exbus_area4_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area4_field_t; + +typedef struct stc_exbus_area5_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area5_field_t; + +typedef struct stc_exbus_area6_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area6_field_t; + +typedef struct stc_exbus_area7_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area7_field_t; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB_MODULE register bit fields */ +typedef struct stc_usb_hcnt_field +{ + __IO uint16_t HOST : 1; + __IO uint16_t URST : 1; + __IO uint16_t SOFIRE : 1; + __IO uint16_t DIRE : 1; + __IO uint16_t CNNIRE : 1; + __IO uint16_t CMPIRE : 1; + __IO uint16_t URIRE : 1; + __IO uint16_t RWKIRE : 1; + __IO uint16_t RETRY : 1; + __IO uint16_t CANCEL : 1; + __IO uint16_t SOFSTEP : 1; +} stc_usb_hcnt_field_t; + +typedef struct stc_usb_hcnt0_field +{ + __IO uint8_t HOST : 1; + __IO uint8_t URST : 1; + __IO uint8_t SOFIRE : 1; + __IO uint8_t DIRE : 1; + __IO uint8_t CNNIRE : 1; + __IO uint8_t CMPIRE : 1; + __IO uint8_t URIRE : 1; + __IO uint8_t RWKIRE : 1; +} stc_usb_hcnt0_field_t; + +typedef struct stc_usb_hcnt1_field +{ + __IO uint8_t RETRY : 1; + __IO uint8_t CANCEL : 1; + __IO uint8_t SOFSTEP : 1; +} stc_usb_hcnt1_field_t; + +typedef struct stc_usb_hirq_field +{ + __IO uint8_t SOFIRQ : 1; + __IO uint8_t DIRQ : 1; + __IO uint8_t CNNIRQ : 1; + __IO uint8_t CMPIRQ : 1; + __IO uint8_t URIRQ : 1; + __IO uint8_t RWKIRQ : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TCAN : 1; +} stc_usb_hirq_field_t; + +typedef struct stc_usb_herr_field +{ + __IO uint8_t HS0 : 1; + __IO uint8_t HS1 : 1; + __IO uint8_t STUFF : 1; + __IO uint8_t TGERR : 1; + __IO uint8_t CRC : 1; + __IO uint8_t TOUT : 1; + __IO uint8_t RERR : 1; + __IO uint8_t LSTOF : 1; +} stc_usb_herr_field_t; + +typedef struct stc_usb_hstate_field +{ + __IO uint8_t CSTAT : 1; + __IO uint8_t TMODE : 1; + __IO uint8_t SUSP : 1; + __IO uint8_t SOFBUSY : 1; + __IO uint8_t CLKSEL : 1; + __IO uint8_t ALIVE : 1; +} stc_usb_hstate_field_t; + +typedef struct stc_usb_hfcomp_field +{ + __IO uint8_t FRAMECOMP0 : 1; + __IO uint8_t FRAMECOMP1 : 1; + __IO uint8_t FRAMECOMP2 : 1; + __IO uint8_t FRAMECOMP3 : 1; + __IO uint8_t FRAMECOMP4 : 1; + __IO uint8_t FRAMECOMP5 : 1; + __IO uint8_t FRAMECOMP6 : 1; + __IO uint8_t FRAMECOMP7 : 1; +} stc_usb_hfcomp_field_t; + +typedef struct stc_usb_hrtimer_field +{ + __IO uint16_t RTIMER0 : 1; + __IO uint16_t RTIMER1 : 1; + __IO uint16_t RTIMER2 : 1; + __IO uint16_t RTIMER3 : 1; + __IO uint16_t RTIMER4 : 1; + __IO uint16_t RTIMER5 : 1; + __IO uint16_t RTIMER6 : 1; + __IO uint16_t RTIMER7 : 1; + __IO uint16_t RTIMER8 : 1; + __IO uint16_t RTIMER9 : 1; + __IO uint16_t RTIMER10 : 1; + __IO uint16_t RTIMER11 : 1; + __IO uint16_t RTIMER12 : 1; + __IO uint16_t RTIMER13 : 1; + __IO uint16_t RTIMER14 : 1; + __IO uint16_t RTIMER15 : 1; +} stc_usb_hrtimer_field_t; + +typedef struct stc_usb_hrtimer0_field +{ + __IO uint8_t RTIMER00 : 1; + __IO uint8_t RTIMER01 : 1; + __IO uint8_t RTIMER02 : 1; + __IO uint8_t RTIMER03 : 1; + __IO uint8_t RTIMER04 : 1; + __IO uint8_t RTIMER05 : 1; + __IO uint8_t RTIMER06 : 1; + __IO uint8_t RTIMER07 : 1; +} stc_usb_hrtimer0_field_t; + +typedef struct stc_usb_hrtimer1_field +{ + __IO uint8_t RTIMER10 : 1; + __IO uint8_t RTIMER11 : 1; + __IO uint8_t RTIMER12 : 1; + __IO uint8_t RTIMER13 : 1; + __IO uint8_t RTIMER14 : 1; + __IO uint8_t RTIMER15 : 1; + __IO uint8_t RTIMER16 : 1; + __IO uint8_t RTIMER17 : 1; +} stc_usb_hrtimer1_field_t; + +typedef struct stc_usb_hrtimer2_field +{ + __IO uint8_t RTIMER20 : 1; + __IO uint8_t RTIMER21 : 1; + __IO uint8_t RTIMER22 : 1; +} stc_usb_hrtimer2_field_t; + +typedef struct stc_usb_hadr_field +{ + __IO uint8_t ADDRESS0 : 1; + __IO uint8_t ADDRESS1 : 1; + __IO uint8_t ADDRESS2 : 1; + __IO uint8_t ADDRESS3 : 1; + __IO uint8_t ADDRESS4 : 1; + __IO uint8_t ADDRESS5 : 1; + __IO uint8_t ADDRESS6 : 1; +} stc_usb_hadr_field_t; + +typedef struct stc_usb_heof_field +{ + __IO uint16_t EOF0 : 1; + __IO uint16_t EOF1 : 1; + __IO uint16_t EOF2 : 1; + __IO uint16_t EOF3 : 1; + __IO uint16_t EOF4 : 1; + __IO uint16_t EOF5 : 1; + __IO uint16_t EOF6 : 1; + __IO uint16_t EOF7 : 1; + __IO uint16_t EOF8 : 1; + __IO uint16_t EOF9 : 1; + __IO uint16_t EOF10 : 1; + __IO uint16_t EOF11 : 1; + __IO uint16_t EOF12 : 1; + __IO uint16_t EOF13 : 1; + __IO uint16_t EOF14 : 1; + __IO uint16_t EOF15 : 1; +} stc_usb_heof_field_t; + +typedef struct stc_usb_heof0_field +{ + __IO uint8_t EOF00 : 1; + __IO uint8_t EOF01 : 1; + __IO uint8_t EOF02 : 1; + __IO uint8_t EOF03 : 1; + __IO uint8_t EOF04 : 1; + __IO uint8_t EOF05 : 1; + __IO uint8_t EOF06 : 1; + __IO uint8_t EOF07 : 1; +} stc_usb_heof0_field_t; + +typedef struct stc_usb_heof1_field +{ + __IO uint8_t EOF10 : 1; + __IO uint8_t EOF11 : 1; + __IO uint8_t EOF12 : 1; + __IO uint8_t EOF13 : 1; + __IO uint8_t EOF14 : 1; + __IO uint8_t EOF15 : 1; +} stc_usb_heof1_field_t; + +typedef struct stc_usb_hframe_field +{ + __IO uint16_t FRAME0 : 1; + __IO uint16_t FRAME1 : 1; + __IO uint16_t FRAME2 : 1; + __IO uint16_t FRAME3 : 1; + __IO uint16_t FRAME4 : 1; + __IO uint16_t FRAME5 : 1; + __IO uint16_t FRAME6 : 1; + __IO uint16_t FRAME7 : 1; + __IO uint16_t FRAME8 : 1; + __IO uint16_t FRAME9 : 1; + __IO uint16_t FRAME10 : 1; +} stc_usb_hframe_field_t; + +typedef struct stc_usb_hframe0_field +{ + __IO uint8_t FRAME00 : 1; + __IO uint8_t FRAME01 : 1; + __IO uint8_t FRAME02 : 1; + __IO uint8_t FRAME03 : 1; + __IO uint8_t FRAME04 : 1; + __IO uint8_t FRAME05 : 1; + __IO uint8_t FRAME06 : 1; + __IO uint8_t FRAME07 : 1; +} stc_usb_hframe0_field_t; + +typedef struct stc_usb_hframe1_field +{ + __IO uint8_t FRAME10 : 1; + __IO uint8_t FRAME11 : 1; + __IO uint8_t FRAME12 : 1; + __IO uint8_t FRAME13 : 1; +} stc_usb_hframe1_field_t; + +typedef struct stc_usb_htoken_field +{ + __IO uint8_t ENDPT0 : 1; + __IO uint8_t ENDPT1 : 1; + __IO uint8_t ENDPT2 : 1; + __IO uint8_t ENDPT3 : 1; + __IO uint8_t TKNEN0 : 1; + __IO uint8_t TKNEN1 : 1; + __IO uint8_t TKNEN2 : 1; + __IO uint8_t TGGL : 1; +} stc_usb_htoken_field_t; + +typedef struct stc_usb_udcc_field +{ + __IO uint16_t PWC : 1; + __IO uint16_t RFBK : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t STALCLREN : 1; + __IO uint16_t USTP : 1; + __IO uint16_t HCONX : 1; + __IO uint16_t RESUM : 1; + __IO uint16_t RST : 1; +} stc_usb_udcc_field_t; + +typedef struct stc_usb_ep0c_field +{ + __IO uint16_t PKS00 : 1; + __IO uint16_t PKS01 : 1; + __IO uint16_t PKS02 : 1; + __IO uint16_t PKS03 : 1; + __IO uint16_t PKS04 : 1; + __IO uint16_t PKS05 : 1; + __IO uint16_t PKS06 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; +} stc_usb_ep0c_field_t; + +typedef struct stc_usb_ep1c_field +{ + __IO uint16_t PKS10 : 1; + __IO uint16_t PKS11 : 1; + __IO uint16_t PKS12 : 1; + __IO uint16_t PKS13 : 1; + __IO uint16_t PKS14 : 1; + __IO uint16_t PKS15 : 1; + __IO uint16_t PKS16 : 1; + __IO uint16_t PKS17 : 1; + __IO uint16_t PKS18 : 1; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep1c_field_t; + +typedef struct stc_usb_ep2c_field +{ + __IO uint16_t PKS20 : 1; + __IO uint16_t PKS21 : 1; + __IO uint16_t PKS22 : 1; + __IO uint16_t PKS23 : 1; + __IO uint16_t PKS24 : 1; + __IO uint16_t PKS25 : 1; + __IO uint16_t PKS26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep2c_field_t; + +typedef struct stc_usb_ep3c_field +{ + __IO uint16_t PKS30 : 1; + __IO uint16_t PKS31 : 1; + __IO uint16_t PKS32 : 1; + __IO uint16_t PKS33 : 1; + __IO uint16_t PKS34 : 1; + __IO uint16_t PKS35 : 1; + __IO uint16_t PKS36 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep3c_field_t; + +typedef struct stc_usb_ep4c_field +{ + __IO uint16_t PKS40 : 1; + __IO uint16_t PKS41 : 1; + __IO uint16_t PKS42 : 1; + __IO uint16_t PKS43 : 1; + __IO uint16_t PKS44 : 1; + __IO uint16_t PKS45 : 1; + __IO uint16_t PKS46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep4c_field_t; + +typedef struct stc_usb_ep5c_field +{ + __IO uint16_t PKS50 : 1; + __IO uint16_t PKS51 : 1; + __IO uint16_t PKS52 : 1; + __IO uint16_t PKS53 : 1; + __IO uint16_t PKS54 : 1; + __IO uint16_t PKS55 : 1; + __IO uint16_t PKS56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep5c_field_t; + +typedef struct stc_usb_tmsp_field +{ + __IO uint16_t TMSP0 : 1; + __IO uint16_t TMSP1 : 1; + __IO uint16_t TMSP2 : 1; + __IO uint16_t TMSP3 : 1; + __IO uint16_t TMSP4 : 1; + __IO uint16_t TMSP5 : 1; + __IO uint16_t TMSP6 : 1; + __IO uint16_t TMSP7 : 1; + __IO uint16_t TMSP8 : 1; + __IO uint16_t TMSP9 : 1; + __IO uint16_t TMSP10 : 1; +} stc_usb_tmsp_field_t; + +typedef struct stc_usb_udcs_field +{ + __IO uint8_t CONF : 1; + __IO uint8_t SETP : 1; + __IO uint8_t WKUP : 1; + __IO uint8_t BRST : 1; + __IO uint8_t SOF : 1; + __IO uint8_t SUSP : 1; +} stc_usb_udcs_field_t; + +typedef struct stc_usb_udcie_field +{ + __IO uint8_t CONFIE : 1; + __IO uint8_t CONFN : 1; + __IO uint8_t WKUPIE : 1; + __IO uint8_t BRSTIE : 1; + __IO uint8_t SOFIE : 1; + __IO uint8_t SUSPIE : 1; +} stc_usb_udcie_field_t; + +typedef struct stc_usb_ep0is_field +{ + uint16_t RESERVED1 : 10; + __IO uint16_t DRQI : 1; + uint16_t RESERVED2 : 3; + __IO uint16_t DRQIIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0is_field_t; + +typedef struct stc_usb_ep0os_field +{ + __IO uint16_t SIZE0 : 1; + __IO uint16_t SIZE1 : 1; + __IO uint16_t SIZE2 : 1; + __IO uint16_t SIZE3 : 1; + __IO uint16_t SIZE4 : 1; + __IO uint16_t SIZE5 : 1; + __IO uint16_t SIZE6 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQO : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQOIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0os_field_t; + +typedef struct stc_usb_ep1s_field +{ + __IO uint16_t SIZE10 : 1; + __IO uint16_t SIZE11 : 1; + __IO uint16_t SIZE12 : 1; + __IO uint16_t SIZE13 : 1; + __IO uint16_t SIZE14 : 1; + __IO uint16_t SIZE15 : 1; + __IO uint16_t SIZE16 : 1; + __IO uint16_t SIZE17 : 1; + __IO uint16_t SIZE18 : 1; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep1s_field_t; + +typedef struct stc_usb_ep2s_field +{ + __IO uint16_t SIZE20 : 1; + __IO uint16_t SIZE21 : 1; + __IO uint16_t SIZE22 : 1; + __IO uint16_t SIZE23 : 1; + __IO uint16_t SIZE24 : 1; + __IO uint16_t SIZE25 : 1; + __IO uint16_t SIZE26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep2s_field_t; + +typedef struct stc_usb_ep4s_field +{ + __IO uint16_t SIZE40 : 1; + __IO uint16_t SIZE41 : 1; + __IO uint16_t SIZE42 : 1; + __IO uint16_t SIZE43 : 1; + __IO uint16_t SIZE44 : 1; + __IO uint16_t SIZE45 : 1; + __IO uint16_t SIZE46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep4s_field_t; + +typedef struct stc_usb_ep5s_field +{ + __IO uint16_t SIZE50 : 1; + __IO uint16_t SIZE51 : 1; + __IO uint16_t SIZE52 : 1; + __IO uint16_t SIZE53 : 1; + __IO uint16_t SIZE54 : 1; + __IO uint16_t SIZE55 : 1; + __IO uint16_t SIZE56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep5s_field_t; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMAC_MODULE register bit fields */ +typedef struct stc_dmac_dmacr_field +{ + uint32_t RESERVED1 : 24; + __IO uint32_t DH0 : 1; + __IO uint32_t DH1 : 1; + __IO uint32_t DH2 : 1; + __IO uint32_t DH3 : 1; + __IO uint32_t PR : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t DS : 1; + __IO uint32_t DE : 1; +} stc_dmac_dmacr_field_t; + +typedef struct stc_dmac_dmaca0_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca0_field_t; + +typedef struct stc_dmac_dmacb0_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb0_field_t; + +typedef struct stc_dmac_dmaca1_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca1_field_t; + +typedef struct stc_dmac_dmacb1_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb1_field_t; + +typedef struct stc_dmac_dmaca2_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca2_field_t; + +typedef struct stc_dmac_dmacb2_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb2_field_t; + +typedef struct stc_dmac_dmaca3_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca3_field_t; + +typedef struct stc_dmac_dmacb3_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb3_field_t; + +typedef struct stc_dmac_dmaca4_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca4_field_t; + +typedef struct stc_dmac_dmacb4_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb4_field_t; + +typedef struct stc_dmac_dmaca5_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca5_field_t; + +typedef struct stc_dmac_dmacb5_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb5_field_t; + +typedef struct stc_dmac_dmaca6_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca6_field_t; + +typedef struct stc_dmac_dmacb6_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb6_field_t; + +typedef struct stc_dmac_dmaca7_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca7_field_t; + +typedef struct stc_dmac_dmacb7_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb7_field_t; + +/****************************************************************************** + * CAN_MODULE + ******************************************************************************/ +/* CAN_MODULE register bit fields */ +typedef struct stc_can_ctrlr_field +{ + __IO uint16_t INIT : 1; + __IO uint16_t IE : 1; + __IO uint16_t SIE : 1; + __IO uint16_t EIE : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t DAR : 1; + __IO uint16_t CCE : 1; + __IO uint16_t TEST : 1; +} stc_can_ctrlr_field_t; + +typedef struct stc_can_statr_field +{ + __IO uint16_t LEC0 : 1; + __IO uint16_t LEC1 : 1; + __IO uint16_t LEC2 : 1; + __IO uint16_t TXOK : 1; + __IO uint16_t RXOK : 1; + __IO uint16_t EPASS : 1; + __IO uint16_t EWARM : 1; + __IO uint16_t BOFF : 1; +} stc_can_statr_field_t; + +typedef struct stc_can_errcnt_field +{ + __IO uint16_t TEC0 : 1; + __IO uint16_t TEC1 : 1; + __IO uint16_t TEC2 : 1; + __IO uint16_t TEC3 : 1; + __IO uint16_t TEC4 : 1; + __IO uint16_t TEC5 : 1; + __IO uint16_t TEC6 : 1; + __IO uint16_t TEC7 : 1; + __IO uint16_t REC0 : 1; + __IO uint16_t REC1 : 1; + __IO uint16_t REC2 : 1; + __IO uint16_t REC3 : 1; + __IO uint16_t REC4 : 1; + __IO uint16_t REC5 : 1; + __IO uint16_t REC6 : 1; + __IO uint16_t RP : 1; +} stc_can_errcnt_field_t; + +typedef struct stc_can_btr_field +{ + __IO uint16_t BRP0 : 1; + __IO uint16_t BRP1 : 1; + __IO uint16_t BRP2 : 1; + __IO uint16_t BRP3 : 1; + __IO uint16_t BRP4 : 1; + __IO uint16_t BRP5 : 1; + __IO uint16_t SJW0 : 1; + __IO uint16_t SJW1 : 1; + __IO uint16_t TSEG10 : 1; + __IO uint16_t TSEG11 : 1; + __IO uint16_t TSEG12 : 1; + __IO uint16_t TSEG13 : 1; + __IO uint16_t TSEG20 : 1; + __IO uint16_t TSEG21 : 1; + __IO uint16_t TSEG22 : 1; +} stc_can_btr_field_t; + +typedef struct stc_can_intr_field +{ + __IO uint16_t INTID0 : 1; + __IO uint16_t INTID1 : 1; + __IO uint16_t INTID2 : 1; + __IO uint16_t INTID3 : 1; + __IO uint16_t INTID4 : 1; + __IO uint16_t INTID5 : 1; + __IO uint16_t INTID6 : 1; + __IO uint16_t INTID7 : 1; + __IO uint16_t INTID8 : 1; + __IO uint16_t INTID9 : 1; + __IO uint16_t INTID10 : 1; + __IO uint16_t INTID11 : 1; + __IO uint16_t INTID12 : 1; + __IO uint16_t INTID13 : 1; + __IO uint16_t INTID14 : 1; + __IO uint16_t INTID15 : 1; +} stc_can_intr_field_t; + +typedef struct stc_can_testr_field +{ + uint16_t RESERVED1 : 2; + __IO uint16_t BASIC : 1; + __IO uint16_t SILENT : 1; + __IO uint16_t LBACK : 1; + __IO uint16_t TX0 : 1; + __IO uint16_t TX1 : 1; + __IO uint16_t RX : 1; +} stc_can_testr_field_t; + +typedef struct stc_can_brper_field +{ + __IO uint16_t BRPE0 : 1; + __IO uint16_t BRPE1 : 1; + __IO uint16_t BRPE2 : 1; + __IO uint16_t BRPE3 : 1; +} stc_can_brper_field_t; + +typedef struct stc_can_if1creq_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t BUSY : 1; +} stc_can_if1creq_field_t; + +typedef struct stc_can_if1cmsk_field +{ + __IO uint16_t DATAB : 1; + __IO uint16_t DATAA : 1; + __IO uint16_t NEWDAT : 1; + __IO uint16_t CIP : 1; + __IO uint16_t CONTROL : 1; + __IO uint16_t ARB : 1; + __IO uint16_t MASK : 1; + __IO uint16_t WRRD : 1; +} stc_can_if1cmsk_field_t; + +typedef struct stc_can_if1msk_field +{ + uint32_t RESERVED1 : 30; + __IO uint32_t MDIR : 1; + __IO uint32_t MXTD : 1; +} stc_can_if1msk_field_t; + +typedef struct stc_can_if1msk2_field +{ + uint16_t RESERVED1 : 14; + __IO uint16_t MDIR : 1; + __IO uint16_t MXTD : 1; +} stc_can_if1msk2_field_t; + +typedef struct stc_can_if1arb_field +{ + uint32_t RESERVED1 : 29; + __IO uint32_t DIR : 1; + __IO uint32_t XTD : 1; + __IO uint32_t MSGVAL : 1; +} stc_can_if1arb_field_t; + +typedef struct stc_can_if1arb2_field +{ + uint16_t RESERVED1 : 13; + __IO uint16_t DIR : 1; + __IO uint16_t XTD : 1; + __IO uint16_t MSGVAL : 1; +} stc_can_if1arb2_field_t; + +typedef struct stc_can_if1mctr_field +{ + __IO uint16_t DLC0 : 1; + __IO uint16_t DLC1 : 1; + __IO uint16_t DLC2 : 1; + __IO uint16_t DLC3 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t EOB : 1; + __IO uint16_t TXRQST : 1; + __IO uint16_t RMTEN : 1; + __IO uint16_t RXIE : 1; + __IO uint16_t TXIE : 1; + __IO uint16_t UMASK : 1; + __IO uint16_t INTPND : 1; + __IO uint16_t MSGLST : 1; + __IO uint16_t NEWDAT : 1; +} stc_can_if1mctr_field_t; + +typedef struct stc_can_if2creq_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t BUSY : 1; +} stc_can_if2creq_field_t; + +typedef struct stc_can_if2cmsk_field +{ + __IO uint16_t DATAB : 1; + __IO uint16_t DATAA : 1; + __IO uint16_t NEWDAT : 1; + __IO uint16_t CIP : 1; + __IO uint16_t CONTROL : 1; + __IO uint16_t ARB : 1; + __IO uint16_t MASK : 1; + __IO uint16_t WRRD : 1; +} stc_can_if2cmsk_field_t; + +typedef struct stc_can_if2msk_field +{ + uint32_t RESERVED1 : 30; + __IO uint32_t MDIR : 1; + __IO uint32_t MXTD : 1; +} stc_can_if2msk_field_t; + +typedef struct stc_can_if2msk2_field +{ + uint16_t RESERVED1 : 14; + __IO uint16_t MDIR : 1; + __IO uint16_t MXTD : 1; +} stc_can_if2msk2_field_t; + +typedef struct stc_can_if2arb2_field +{ + uint16_t RESERVED1 : 13; + __IO uint16_t DIR : 1; + __IO uint16_t XTD : 1; + __IO uint16_t MSGVAL : 1; +} stc_can_if2arb2_field_t; + +typedef struct stc_can_if2mctr_field +{ + __IO uint16_t DLC0 : 1; + __IO uint16_t DLC1 : 1; + __IO uint16_t DLC2 : 1; + __IO uint16_t DLC3 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t EOB : 1; + __IO uint16_t TXRQST : 1; + __IO uint16_t RMTEN : 1; + __IO uint16_t RXIE : 1; + __IO uint16_t TXIE : 1; + __IO uint16_t UMASK : 1; + __IO uint16_t INTPND : 1; + __IO uint16_t MSGLST : 1; + __IO uint16_t NEWDAT : 1; +} stc_can_if2mctr_field_t; + +typedef struct stc_can_treqr_field +{ + __IO uint32_t TXRQST1 : 1; + __IO uint32_t TXRQST2 : 1; + __IO uint32_t TXRQST3 : 1; + __IO uint32_t TXRQST4 : 1; + __IO uint32_t TXRQST5 : 1; + __IO uint32_t TXRQST6 : 1; + __IO uint32_t TXRQST7 : 1; + __IO uint32_t TXRQST8 : 1; + __IO uint32_t TXRQST9 : 1; + __IO uint32_t TXRQST10 : 1; + __IO uint32_t TXRQST11 : 1; + __IO uint32_t TXRQST12 : 1; + __IO uint32_t TXRQST13 : 1; + __IO uint32_t TXRQST14 : 1; + __IO uint32_t TXRQST15 : 1; + __IO uint32_t TXRQST16 : 1; + __IO uint32_t TXRQST17 : 1; + __IO uint32_t TXRQST18 : 1; + __IO uint32_t TXRQST19 : 1; + __IO uint32_t TXRQST20 : 1; + __IO uint32_t TXRQST21 : 1; + __IO uint32_t TXRQST22 : 1; + __IO uint32_t TXRQST23 : 1; + __IO uint32_t TXRQST24 : 1; + __IO uint32_t TXRQST25 : 1; + __IO uint32_t TXRQST26 : 1; + __IO uint32_t TXRQST27 : 1; + __IO uint32_t TXRQST28 : 1; + __IO uint32_t TXRQST29 : 1; + __IO uint32_t TXRQST30 : 1; + __IO uint32_t TXRQST31 : 1; + __IO uint32_t TXRQST32 : 1; +} stc_can_treqr_field_t; + +typedef struct stc_can_treqr1_field +{ + __IO uint16_t TXRQST1 : 1; + __IO uint16_t TXRQST2 : 1; + __IO uint16_t TXRQST3 : 1; + __IO uint16_t TXRQST4 : 1; + __IO uint16_t TXRQST5 : 1; + __IO uint16_t TXRQST6 : 1; + __IO uint16_t TXRQST7 : 1; + __IO uint16_t TXRQST8 : 1; + __IO uint16_t TXRQST9 : 1; + __IO uint16_t TXRQST10 : 1; + __IO uint16_t TXRQST11 : 1; + __IO uint16_t TXRQST12 : 1; + __IO uint16_t TXRQST13 : 1; + __IO uint16_t TXRQST14 : 1; + __IO uint16_t TXRQST15 : 1; + __IO uint16_t TXRQST16 : 1; +} stc_can_treqr1_field_t; + +typedef struct stc_can_treqr2_field +{ + __IO uint16_t TXRQST17 : 1; + __IO uint16_t TXRQST18 : 1; + __IO uint16_t TXRQST19 : 1; + __IO uint16_t TXRQST20 : 1; + __IO uint16_t TXRQST21 : 1; + __IO uint16_t TXRQST22 : 1; + __IO uint16_t TXRQST23 : 1; + __IO uint16_t TXRQST24 : 1; + __IO uint16_t TXRQST25 : 1; + __IO uint16_t TXRQST26 : 1; + __IO uint16_t TXRQST27 : 1; + __IO uint16_t TXRQST28 : 1; + __IO uint16_t TXRQST29 : 1; + __IO uint16_t TXRQST30 : 1; + __IO uint16_t TXRQST31 : 1; + __IO uint16_t TXRQST32 : 1; +} stc_can_treqr2_field_t; + +typedef struct stc_can_newdt_field +{ + __IO uint32_t NEWDAT1 : 1; + __IO uint32_t NEWDAT2 : 1; + __IO uint32_t NEWDAT3 : 1; + __IO uint32_t NEWDAT4 : 1; + __IO uint32_t NEWDAT5 : 1; + __IO uint32_t NEWDAT6 : 1; + __IO uint32_t NEWDAT7 : 1; + __IO uint32_t NEWDAT8 : 1; + __IO uint32_t NEWDAT9 : 1; + __IO uint32_t NEWDAT10 : 1; + __IO uint32_t NEWDAT11 : 1; + __IO uint32_t NEWDAT12 : 1; + __IO uint32_t NEWDAT13 : 1; + __IO uint32_t NEWDAT14 : 1; + __IO uint32_t NEWDAT15 : 1; + __IO uint32_t NEWDAT16 : 1; + __IO uint32_t NEWDAT17 : 1; + __IO uint32_t NEWDAT18 : 1; + __IO uint32_t NEWDAT19 : 1; + __IO uint32_t NEWDAT20 : 1; + __IO uint32_t NEWDAT21 : 1; + __IO uint32_t NEWDAT22 : 1; + __IO uint32_t NEWDAT23 : 1; + __IO uint32_t NEWDAT24 : 1; + __IO uint32_t NEWDAT25 : 1; + __IO uint32_t NEWDAT26 : 1; + __IO uint32_t NEWDAT27 : 1; + __IO uint32_t NEWDAT28 : 1; + __IO uint32_t NEWDAT29 : 1; + __IO uint32_t NEWDAT30 : 1; + __IO uint32_t NEWDAT31 : 1; + __IO uint32_t NEWDAT32 : 1; +} stc_can_newdt_field_t; + +typedef struct stc_can_newdt1_field +{ + __IO uint16_t NEWDAT1 : 1; + __IO uint16_t NEWDAT2 : 1; + __IO uint16_t NEWDAT3 : 1; + __IO uint16_t NEWDAT4 : 1; + __IO uint16_t NEWDAT5 : 1; + __IO uint16_t NEWDAT6 : 1; + __IO uint16_t NEWDAT7 : 1; + __IO uint16_t NEWDAT8 : 1; + __IO uint16_t NEWDAT9 : 1; + __IO uint16_t NEWDAT10 : 1; + __IO uint16_t NEWDAT11 : 1; + __IO uint16_t NEWDAT12 : 1; + __IO uint16_t NEWDAT13 : 1; + __IO uint16_t NEWDAT14 : 1; + __IO uint16_t NEWDAT15 : 1; + __IO uint16_t NEWDAT16 : 1; +} stc_can_newdt1_field_t; + +typedef struct stc_can_intpnd_field +{ + __IO uint32_t INTPND1 : 1; + __IO uint32_t INTPND2 : 1; + __IO uint32_t INTPND3 : 1; + __IO uint32_t INTPND4 : 1; + __IO uint32_t INTPND5 : 1; + __IO uint32_t INTPND6 : 1; + __IO uint32_t INTPND7 : 1; + __IO uint32_t INTPND8 : 1; + __IO uint32_t INTPND9 : 1; + __IO uint32_t INTPND10 : 1; + __IO uint32_t INTPND11 : 1; + __IO uint32_t INTPND12 : 1; + __IO uint32_t INTPND13 : 1; + __IO uint32_t INTPND14 : 1; + __IO uint32_t INTPND15 : 1; + __IO uint32_t INTPND16 : 1; + __IO uint32_t INTPND17 : 1; + __IO uint32_t INTPND18 : 1; + __IO uint32_t INTPND19 : 1; + __IO uint32_t INTPND20 : 1; + __IO uint32_t INTPND21 : 1; + __IO uint32_t INTPND22 : 1; + __IO uint32_t INTPND23 : 1; + __IO uint32_t INTPND24 : 1; + __IO uint32_t INTPND25 : 1; + __IO uint32_t INTPND26 : 1; + __IO uint32_t INTPND27 : 1; + __IO uint32_t INTPND28 : 1; + __IO uint32_t INTPND29 : 1; + __IO uint32_t INTPND30 : 1; + __IO uint32_t INTPND31 : 1; + __IO uint32_t INTPND32 : 1; +} stc_can_intpnd_field_t; + +typedef struct stc_can_intpnd1_field +{ + __IO uint16_t INTPND1 : 1; + __IO uint16_t INTPND2 : 1; + __IO uint16_t INTPND3 : 1; + __IO uint16_t INTPND4 : 1; + __IO uint16_t INTPND5 : 1; + __IO uint16_t INTPND6 : 1; + __IO uint16_t INTPND7 : 1; + __IO uint16_t INTPND8 : 1; + __IO uint16_t INTPND9 : 1; + __IO uint16_t INTPND10 : 1; + __IO uint16_t INTPND11 : 1; + __IO uint16_t INTPND12 : 1; + __IO uint16_t INTPND13 : 1; + __IO uint16_t INTPND14 : 1; + __IO uint16_t INTPND15 : 1; + __IO uint16_t INTPND16 : 1; +} stc_can_intpnd1_field_t; + +typedef struct stc_can_intpnd2_field +{ + __IO uint16_t INTPND17 : 1; + __IO uint16_t INTPND18 : 1; + __IO uint16_t INTPND19 : 1; + __IO uint16_t INTPND20 : 1; + __IO uint16_t INTPND21 : 1; + __IO uint16_t INTPND22 : 1; + __IO uint16_t INTPND23 : 1; + __IO uint16_t INTPND24 : 1; + __IO uint16_t INTPND25 : 1; + __IO uint16_t INTPND26 : 1; + __IO uint16_t INTPND27 : 1; + __IO uint16_t INTPND28 : 1; + __IO uint16_t INTPND29 : 1; + __IO uint16_t INTPND30 : 1; + __IO uint16_t INTPND31 : 1; + __IO uint16_t INTPND32 : 1; +} stc_can_intpnd2_field_t; + +typedef struct stc_can_msgval_field +{ + __IO uint32_t MSGVAL1 : 1; + __IO uint32_t MSGVAL2 : 1; + __IO uint32_t MSGVAL3 : 1; + __IO uint32_t MSGVAL4 : 1; + __IO uint32_t MSGVAL5 : 1; + __IO uint32_t MSGVAL6 : 1; + __IO uint32_t MSGVAL7 : 1; + __IO uint32_t MSGVAL8 : 1; + __IO uint32_t MSGVAL9 : 1; + __IO uint32_t MSGVAL10 : 1; + __IO uint32_t MSGVAL11 : 1; + __IO uint32_t MSGVAL12 : 1; + __IO uint32_t MSGVAL13 : 1; + __IO uint32_t MSGVAL14 : 1; + __IO uint32_t MSGVAL15 : 1; + __IO uint32_t MSGVAL16 : 1; + __IO uint32_t MSGVAL17 : 1; + __IO uint32_t MSGVAL18 : 1; + __IO uint32_t MSGVAL19 : 1; + __IO uint32_t MSGVAL20 : 1; + __IO uint32_t MSGVAL21 : 1; + __IO uint32_t MSGVAL22 : 1; + __IO uint32_t MSGVAL23 : 1; + __IO uint32_t MSGVAL24 : 1; + __IO uint32_t MSGVAL25 : 1; + __IO uint32_t MSGVAL26 : 1; + __IO uint32_t MSGVAL27 : 1; + __IO uint32_t MSGVAL28 : 1; + __IO uint32_t MSGVAL29 : 1; + __IO uint32_t MSGVAL30 : 1; + __IO uint32_t MSGVAL31 : 1; + __IO uint32_t MSGVAL32 : 1; +} stc_can_msgval_field_t; + +typedef struct stc_can_msgval1_field +{ + __IO uint16_t MSGVAL1 : 1; + __IO uint16_t MSGVAL2 : 1; + __IO uint16_t MSGVAL3 : 1; + __IO uint16_t MSGVAL4 : 1; + __IO uint16_t MSGVAL5 : 1; + __IO uint16_t MSGVAL6 : 1; + __IO uint16_t MSGVAL7 : 1; + __IO uint16_t MSGVAL8 : 1; + __IO uint16_t MSGVAL9 : 1; + __IO uint16_t MSGVAL10 : 1; + __IO uint16_t MSGVAL11 : 1; + __IO uint16_t MSGVAL12 : 1; + __IO uint16_t MSGVAL13 : 1; + __IO uint16_t MSGVAL14 : 1; + __IO uint16_t MSGVAL15 : 1; + __IO uint16_t MSGVAL16 : 1; +} stc_can_msgval1_field_t; + +typedef struct stc_can_msgval2_field +{ + __IO uint16_t MSGVAL17 : 1; + __IO uint16_t MSGVAL18 : 1; + __IO uint16_t MSGVAL19 : 1; + __IO uint16_t MSGVAL20 : 1; + __IO uint16_t MSGVAL21 : 1; + __IO uint16_t MSGVAL22 : 1; + __IO uint16_t MSGVAL23 : 1; + __IO uint16_t MSGVAL24 : 1; + __IO uint16_t MSGVAL25 : 1; + __IO uint16_t MSGVAL26 : 1; + __IO uint16_t MSGVAL27 : 1; + __IO uint16_t MSGVAL28 : 1; + __IO uint16_t MSGVAL29 : 1; + __IO uint16_t MSGVAL30 : 1; + __IO uint16_t MSGVAL31 : 1; + __IO uint16_t MSGVAL32 : 1; +} stc_can_msgval2_field_t; + + +/****************************************************************************** + * Peripheral register structures + ******************************************************************************/ + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash interface registers */ +typedef struct +{ + union { + __IO uint32_t FASZR; + stc_flash_if_faszr_field_t FASZR_f; + }; + union { + __IO uint32_t FRWTR; + stc_flash_if_frwtr_field_t FRWTR_f; + }; + union { + __IO uint32_t FSTR; + stc_flash_if_fstr_field_t FSTR_f; + }; + uint8_t RESERVED0[4]; + union { + __IO uint32_t FSYNDN; + stc_flash_if_fsyndn_field_t FSYNDN_f; + }; + uint8_t RESERVED1[236]; + union { + __IO uint32_t CRTRMM; + stc_flash_if_crtrmm_field_t CRTRMM_f; + }; +}FM3_FLASH_IF_TypeDef; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock and reset registers */ +typedef struct +{ + union { + __IO uint8_t SCM_CTL; + stc_crg_scm_ctl_field_t SCM_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t SCM_STR; + stc_crg_scm_str_field_t SCM_STR_f; + }; + uint8_t RESERVED1[3]; + __IO uint32_t STB_CTL; + union { + __IO uint16_t RST_STR; + stc_crg_rst_str_field_t RST_STR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t BSC_PSR; + stc_crg_bsc_psr_field_t BSC_PSR_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t APBC0_PSR; + stc_crg_apbc0_psr_field_t APBC0_PSR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t APBC1_PSR; + stc_crg_apbc1_psr_field_t APBC1_PSR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t APBC2_PSR; + stc_crg_apbc2_psr_field_t APBC2_PSR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t SWC_PSR; + stc_crg_swc_psr_field_t SWC_PSR_f; + }; + uint8_t RESERVED7[7]; + union { + __IO uint8_t TTC_PSR; + stc_crg_ttc_psr_field_t TTC_PSR_f; + }; + uint8_t RESERVED8[7]; + union { + __IO uint8_t CSW_TMR; + stc_crg_csw_tmr_field_t CSW_TMR_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t PSW_TMR; + stc_crg_psw_tmr_field_t PSW_TMR_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PLL_CTL1; + stc_crg_pll_ctl1_field_t PLL_CTL1_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t PLL_CTL2; + stc_crg_pll_ctl2_field_t PLL_CTL2_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint16_t CSV_CTL; + stc_crg_csv_ctl_field_t CSV_CTL_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint8_t CSV_STR; + stc_crg_csv_str_field_t CSV_STR_f; + }; + uint8_t RESERVED14[3]; + __IO uint16_t FCSWH_CTL; + uint8_t RESERVED15[2]; + __IO uint16_t FCSWL_CTL; + uint8_t RESERVED16[2]; + __IO uint16_t FCSWD_CTL; + uint8_t RESERVED17[2]; + union { + __IO uint8_t DBWDT_CTL; + stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; + }; + uint8_t RESERVED18[11]; + union { + __IO uint8_t INT_ENR; + stc_crg_int_enr_field_t INT_ENR_f; + }; + uint8_t RESERVED19[3]; + union { + __IO uint8_t INT_STR; + stc_crg_int_str_field_t INT_STR_f; + }; + uint8_t RESERVED20[3]; + union { + __IO uint8_t INT_CLR; + stc_crg_int_clr_field_t INT_CLR_f; + }; +}FM3_CRG_TypeDef; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* Hardware watchdog registers */ +typedef struct +{ + __IO uint32_t WDG_LDR; + __IO uint32_t WDG_VLR; + union { + __IO uint8_t WDG_CTL; + stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; + }; + uint8_t RESERVED0[3]; + __IO uint8_t WDG_ICL; + uint8_t RESERVED1[3]; + union { + __IO uint8_t WDG_RIS; + stc_hwwdt_wdg_ris_field_t WDG_RIS_f; + }; + uint8_t RESERVED2[3055]; + __IO uint32_t WDG_LCK; +}FM3_HWWDT_TypeDef; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* Software watchdog registers */ +typedef struct +{ + __IO uint32_t WDOGLOAD; + __IO uint32_t WDOGVALUE; + union { + __IO uint8_t WDOGCONTROL; + stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t WDOGINTCLR; + union { + __IO uint8_t WDOGRIS; + stc_swwdt_wdogris_field_t WDOGRIS_f; + }; + uint8_t RESERVED1[3055]; + __IO uint32_t WDOGLOCK; +}FM3_SWWDT_TypeDef; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* Dual timer 1/2 registers */ +typedef struct +{ + __IO uint32_t TIMER1LOAD; + __IO uint32_t TIMER1VALUE; + union { + __IO uint32_t TIMER1CONTROL; + stc_dtim_timer1control_field_t TIMER1CONTROL_f; + }; + __IO uint32_t TIMER1INTCLR; + union { + __IO uint32_t TIMER1RIS; + stc_dtim_timer1ris_field_t TIMER1RIS_f; + }; + union { + __IO uint32_t TIMER1MIS; + stc_dtim_timer1mis_field_t TIMER1MIS_f; + }; + __IO uint32_t TIMER1BGLOAD; + uint8_t RESERVED0[4]; + __IO uint32_t TIMER2LOAD; + __IO uint32_t TIMER2VALUE; + union { + __IO uint32_t TIMER2CONTROL; + stc_dtim_timer2control_field_t TIMER2CONTROL_f; + }; + __IO uint32_t TIMER2INTCLR; + union { + __IO uint32_t TIMER2RIS; + stc_dtim_timer2ris_field_t TIMER2RIS_f; + }; + union { + __IO uint32_t TIMER2MIS; + stc_dtim_timer2mis_field_t TIMER2MIS_f; + }; + __IO uint32_t TIMER2BGLOAD; +}FM3_DTIM_TypeDef; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Free Running Timer registers */ +typedef struct +{ + uint8_t RESERVED0[40]; + __IO uint16_t TCCP0; + uint8_t RESERVED1[2]; + __IO uint16_t TCDT0; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TCSA0; + stc_mft_frt_tcsa0_field_t TCSA0_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t TCSB0; + stc_mft_frt_tcsb0_field_t TCSB0_f; + }; + uint8_t RESERVED4[2]; + __IO uint16_t TCCP1; + uint8_t RESERVED5[2]; + __IO uint16_t TCDT1; + uint8_t RESERVED6[2]; + union { + __IO uint16_t TCSA1; + stc_mft_frt_tcsa1_field_t TCSA1_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t TCSB1; + stc_mft_frt_tcsb1_field_t TCSB1_f; + }; + uint8_t RESERVED8[2]; + __IO uint16_t TCCP2; + uint8_t RESERVED9[2]; + __IO uint16_t TCDT2; + uint8_t RESERVED10[2]; + union { + __IO uint16_t TCSA2; + stc_mft_frt_tcsa2_field_t TCSA2_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t TCSB2; + stc_mft_frt_tcsb2_field_t TCSB2_f; + }; +}FM3_MFT_FRT_TypeDef; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Output Compare Unit registers */ +typedef struct +{ + __IO uint16_t OCCP0; + uint8_t RESERVED0[2]; + __IO uint16_t OCCP1; + uint8_t RESERVED1[2]; + __IO uint16_t OCCP2; + uint8_t RESERVED2[2]; + __IO uint16_t OCCP3; + uint8_t RESERVED3[2]; + __IO uint16_t OCCP4; + uint8_t RESERVED4[2]; + __IO uint16_t OCCP5; + uint8_t RESERVED5[2]; + union { + __IO uint8_t OCSA10; + stc_mft_ocu_ocsa10_field_t OCSA10_f; + }; + union { + __IO uint8_t OCSB10; + stc_mft_ocu_ocsb10_field_t OCSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t OCSA32; + stc_mft_ocu_ocsa32_field_t OCSA32_f; + }; + union { + __IO uint8_t OCSB32; + stc_mft_ocu_ocsb32_field_t OCSB32_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint8_t OCSA54; + stc_mft_ocu_ocsa54_field_t OCSA54_f; + }; + union { + __IO uint8_t OCSB54; + stc_mft_ocu_ocsb54_field_t OCSB54_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t OCSC; + stc_mft_ocu_ocsc_field_t OCSC_f; + }; + uint8_t RESERVED9[50]; + union { + __IO uint8_t OCFS10; + stc_mft_ocu_ocfs10_field_t OCFS10_f; + }; + union { + __IO uint8_t OCFS32; + stc_mft_ocu_ocfs32_field_t OCFS32_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint8_t OCFS54; + stc_mft_ocu_ocfs54_field_t OCFS54_f; + }; +}FM3_MFT_OCU_TypeDef; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +typedef struct +{ + uint8_t RESERVED0[128]; + __IO uint16_t WFTM10; + uint8_t RESERVED1[2]; + __IO uint16_t WFTM32; + uint8_t RESERVED2[2]; + __IO uint16_t WFTM54; + uint8_t RESERVED3[2]; + union { + __IO uint16_t WFSA10; + stc_mft_wfg_wfsa10_field_t WFSA10_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t WFSA32; + stc_mft_wfg_wfsa32_field_t WFSA32_f; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t WFSA54; + stc_mft_wfg_wfsa54_field_t WFSA54_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t WFIR; + stc_mft_wfg_wfir_field_t WFIR_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t NZCL; + stc_mft_wfg_nzcl_field_t NZCL_f; + }; +}FM3_MFT_WFG_TypeDef; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Input Capture Unit registers */ +typedef struct +{ + uint8_t RESERVED0[96]; + union { + __IO uint8_t ICFS10; + stc_mft_icu_icfs10_field_t ICFS10_f; + }; + union { + __IO uint8_t ICFS32; + stc_mft_icu_icfs32_field_t ICFS32_f; + }; + uint8_t RESERVED1[6]; + __IO uint16_t ICCP0; + uint8_t RESERVED2[2]; + __IO uint16_t ICCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ICCP2; + uint8_t RESERVED4[2]; + __IO uint16_t ICCP3; + uint8_t RESERVED5[2]; + union { + __IO uint8_t ICSA10; + stc_mft_icu_icsa10_field_t ICSA10_f; + }; + union { + __IO uint8_t ICSB10; + stc_mft_icu_icsb10_field_t ICSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ICSA32; + stc_mft_icu_icsa32_field_t ICSA32_f; + }; + union { + __IO uint8_t ICSB32; + stc_mft_icu_icsb32_field_t ICSB32_f; + }; +}FM3_MFT_ICU_TypeDef; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +typedef struct +{ + uint8_t RESERVED0[160]; + __IO uint16_t ACCP0; + uint8_t RESERVED1[2]; + __IO uint16_t ACCPDN0; + uint8_t RESERVED2[2]; + __IO uint16_t ACCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ACCPDN1; + uint8_t RESERVED4[2]; + __IO uint16_t ACCP2; + uint8_t RESERVED5[2]; + __IO uint16_t ACCPDN2; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ACSB; + stc_mft_adcmp_acsb_field_t ACSB_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t ACSA; + stc_mft_adcmp_acsa_field_t ACSA_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t ATSA; + stc_mft_adcmp_atsa_field_t ATSA_f; + }; +}FM3_MFT_ADCMP_TypeDef; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* Multifunction Timer PPG registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t TTCR0; + stc_mft_ppg_ttcr0_field_t TTCR0_f; + }; + uint8_t RESERVED1[7]; + __IO uint8_t COMP0; + uint8_t RESERVED2[2]; + __IO uint8_t COMP2; + uint8_t RESERVED3[4]; + __IO uint8_t COMP4; + uint8_t RESERVED4[2]; + __IO uint8_t COMP6; + uint8_t RESERVED5[12]; + union { + __IO uint8_t TTCR1; + stc_mft_ppg_ttcr1_field_t TTCR1_f; + }; + uint8_t RESERVED6[7]; + __IO uint8_t COMP1; + uint8_t RESERVED7[2]; + __IO uint8_t COMP3; + uint8_t RESERVED8[4]; + __IO uint8_t COMP5; + uint8_t RESERVED9[2]; + __IO uint8_t COMP7; + uint8_t RESERVED10[203]; + union { + __IO uint16_t TRG; + stc_mft_ppg_trg_field_t TRG_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t REVC; + stc_mft_ppg_revc_field_t REVC_f; + }; + uint8_t RESERVED12[250]; + union { + __IO uint8_t PPGC1; + stc_mft_ppg_ppgc1_field_t PPGC1_f; + }; + union { + __IO uint8_t PPGC0; + stc_mft_ppg_ppgc0_field_t PPGC0_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint8_t PPGC3; + stc_mft_ppg_ppgc3_field_t PPGC3_f; + }; + union { + __IO uint8_t PPGC2; + stc_mft_ppg_ppgc2_field_t PPGC2_f; + }; + uint8_t RESERVED14[2]; + union { + __IO uint16_t PRL0; + struct { + __IO uint8_t PRLL0; + __IO uint8_t PRLH0; + }; + }; + uint8_t RESERVED15[2]; + union { + __IO uint16_t PRL1; + struct { + __IO uint8_t PRLL1; + __IO uint8_t PRLH1; + }; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t PRL2; + struct { + __IO uint8_t PRLL2; + __IO uint8_t PRLH2; + }; + }; + uint8_t RESERVED17[2]; + union { + __IO uint16_t PRL3; + struct { + __IO uint8_t PRLL3; + __IO uint8_t PRLH3; + }; + }; + uint8_t RESERVED18[2]; + union { + __IO uint8_t GATEC0; + stc_mft_ppg_gatec0_field_t GATEC0_f; + }; + uint8_t RESERVED19[39]; + union { + __IO uint8_t PPGC5; + stc_mft_ppg_ppgc5_field_t PPGC5_f; + }; + union { + __IO uint8_t PPGC4; + stc_mft_ppg_ppgc4_field_t PPGC4_f; + }; + uint8_t RESERVED20[2]; + union { + __IO uint8_t PPGC7; + stc_mft_ppg_ppgc7_field_t PPGC7_f; + }; + union { + __IO uint8_t PPGC6; + stc_mft_ppg_ppgc6_field_t PPGC6_f; + }; + uint8_t RESERVED21[2]; + union { + __IO uint16_t PRL4; + struct { + __IO uint8_t PRLL4; + __IO uint8_t PRLH4; + }; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t PRL5; + struct { + __IO uint8_t PRLL5; + __IO uint8_t PRLH5; + }; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t PRL6; + struct { + __IO uint8_t PRLL6; + __IO uint8_t PRLH6; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t PRL7; + struct { + __IO uint8_t PRLL7; + __IO uint8_t PRLH7; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint8_t GATEC4; + stc_mft_ppg_gatec4_field_t GATEC4_f; + }; + uint8_t RESERVED26[39]; + union { + __IO uint8_t PPGC9; + stc_mft_ppg_ppgc9_field_t PPGC9_f; + }; + union { + __IO uint8_t PPGC8; + stc_mft_ppg_ppgc8_field_t PPGC8_f; + }; + uint8_t RESERVED27[2]; + union { + __IO uint8_t PPGC11; + stc_mft_ppg_ppgc11_field_t PPGC11_f; + }; + union { + __IO uint8_t PPGC10; + stc_mft_ppg_ppgc10_field_t PPGC10_f; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t PRL8; + struct { + __IO uint8_t PRLL8; + __IO uint8_t PRLH8; + }; + }; + uint8_t RESERVED29[2]; + union { + __IO uint16_t PRL9; + struct { + __IO uint8_t PRLL9; + __IO uint8_t PRLH9; + }; + }; + uint8_t RESERVED30[2]; + union { + __IO uint16_t PRL10; + struct { + __IO uint8_t PRLL10; + __IO uint8_t PRLH10; + }; + }; + uint8_t RESERVED31[2]; + union { + __IO uint16_t PRL11; + struct { + __IO uint8_t PRLL11; + __IO uint8_t PRLH11; + }; + }; + uint8_t RESERVED32[2]; + union { + __IO uint8_t GATEC8; + stc_mft_ppg_gatec8_field_t GATEC8_f; + }; + uint8_t RESERVED33[39]; + union { + __IO uint8_t PPGC13; + stc_mft_ppg_ppgc13_field_t PPGC13_f; + }; + union { + __IO uint8_t PPGC12; + stc_mft_ppg_ppgc12_field_t PPGC12_f; + }; + uint8_t RESERVED34[2]; + union { + __IO uint8_t PPGC15; + stc_mft_ppg_ppgc15_field_t PPGC15_f; + }; + union { + __IO uint8_t PPGC14; + stc_mft_ppg_ppgc14_field_t PPGC14_f; + }; + uint8_t RESERVED35[2]; + union { + __IO uint16_t PRL12; + struct { + __IO uint8_t PRLL12; + __IO uint8_t PRLH12; + }; + }; + uint8_t RESERVED36[2]; + union { + __IO uint16_t PRL13; + struct { + __IO uint8_t PRLL13; + __IO uint8_t PRLH13; + }; + }; + uint8_t RESERVED37[2]; + union { + __IO uint16_t PRL14; + struct { + __IO uint8_t PRLL14; + __IO uint8_t PRLH14; + }; + }; + uint8_t RESERVED38[2]; + union { + __IO uint16_t PRL15; + struct { + __IO uint8_t PRLL15; + __IO uint8_t PRLH15; + }; + }; + uint8_t RESERVED39[2]; + union { + __IO uint8_t GATEC12; + stc_mft_ppg_gatec12_field_t GATEC12_f; + }; +}FM3_MFT_PPG_TypeDef; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* Base Timer 0 PPG registers */ +typedef struct +{ + __IO uint16_t PRLL; + uint8_t RESERVED0[2]; + __IO uint16_t PRLH; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_ppg_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_ppg_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_ppg_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PPG_TypeDef; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* Base Timer 0 PWM registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[2]; + __IO uint16_t PDUT; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_pwm_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_pwm_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwm_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PWM_TypeDef; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* Base Timer 0 RT registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[6]; + __IO uint16_t TMR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t TMCR; + stc_bt_rt_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_rt_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_rt_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_RT_TypeDef; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* Base Timer 0 PWC registers */ +typedef struct +{ + uint8_t RESERVED0[4]; + __IO uint16_t DTBF; + uint8_t RESERVED1[6]; + union { + __IO uint16_t TMCR; + stc_bt_pwc_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_pwc_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwc_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PWC_TypeDef; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 0 - channel 3 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL0123; + stc_btiosel03_btsel0123_field_t BTSEL0123_f; + }; +}FM3_BTIOSEL03_TypeDef; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 4 - channel 7 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL4567; + stc_btiosel47_btsel4567_field_t BTSEL4567_f; + }; +}FM3_BTIOSEL47_TypeDef; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* Software based Simulation Startup (Base Timer) register */ +typedef struct +{ + union { + __IO uint16_t BTSSSR; + stc_sbssr_btsssr_field_t BTSSSR_f; + }; +}FM3_SBSSR_TypeDef; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* Quad position and revolution counter channel 0 registers */ +typedef struct +{ + __IO uint16_t QPCR; + uint8_t RESERVED0[2]; + __IO uint16_t QRCR; + uint8_t RESERVED1[2]; + __IO uint16_t QPCCR; + uint8_t RESERVED2[2]; + __IO uint16_t QPRCR; + uint8_t RESERVED3[2]; + __IO uint16_t QMPR; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t QICR; + stc_qprc_qicr_field_t QICR_f; + }; + struct { + union { + __IO uint8_t QICRL; + stc_qprc_qicrl_field_t QICRL_f; + }; + union { + __IO uint8_t QICRH; + stc_qprc_qicrh_field_t QICRH_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t QCR; + stc_qprc_qcr_field_t QCR_f; + }; + struct { + union { + __IO uint8_t QCRL; + stc_qprc_qcrl_field_t QCRL_f; + }; + union { + __IO uint8_t QCRH; + stc_qprc_qcrh_field_t QCRH_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t QECR; + stc_qprc_qecr_field_t QECR_f; + }; +}FM3_QPRC_TypeDef; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* 12-bit ADC unit 0 registers */ +typedef struct +{ + union { + __IO uint8_t ADSR; + stc_adc_adsr_field_t ADSR_f; + }; + union { + __IO uint8_t ADCR; + stc_adc_adcr_field_t ADCR_f; + }; + uint8_t RESERVED0[6]; + union { + __IO uint8_t SFNS; + stc_adc_sfns_field_t SFNS_f; + }; + union { + __IO uint8_t SCCR; + stc_adc_sccr_field_t SCCR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint32_t SCFD; + stc_adc_scfd_field_t SCFD_f; + }; + struct { + union { + __IO uint16_t SCFDL; + stc_adc_scfdl_field_t SCFDL_f; + }; + union { + __IO uint16_t SCFDH; + stc_adc_scfdh_field_t SCFDH_f; + }; + }; + }; + union { + union { + __IO uint16_t SCIS23; + stc_adc_scis23_field_t SCIS23_f; + }; + struct { + union { + __IO uint8_t SCIS2; + stc_adc_scis2_field_t SCIS2_f; + }; + union { + __IO uint8_t SCIS3; + stc_adc_scis3_field_t SCIS3_f; + }; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t SCIS01; + stc_adc_scis01_field_t SCIS01_f; + }; + struct { + union { + __IO uint8_t SCIS0; + stc_adc_scis0_field_t SCIS0_f; + }; + union { + __IO uint8_t SCIS1; + stc_adc_scis1_field_t SCIS1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t PFNS; + stc_adc_pfns_field_t PFNS_f; + }; + union { + __IO uint8_t PCCR; + stc_adc_pccr_field_t PCCR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint32_t PCFD; + stc_adc_pcfd_field_t PCFD_f; + }; + struct { + union { + __IO uint16_t PCFDL; + stc_adc_pcfdl_field_t PCFDL_f; + }; + union { + __IO uint16_t PCFDH; + stc_adc_pcfdh_field_t PCFDH_f; + }; + }; + }; + union { + __IO uint8_t PCIS; + stc_adc_pcis_field_t PCIS_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t CMPCR; + stc_adc_cmpcr_field_t CMPCR_f; + }; + uint8_t RESERVED6; + union { + __IO uint16_t CMPD; + stc_adc_cmpd_field_t CMPD_f; + }; + union { + union { + __IO uint16_t ADSS23; + stc_adc_adss23_field_t ADSS23_f; + }; + struct { + union { + __IO uint8_t ADSS2; + stc_adc_adss2_field_t ADSS2_f; + }; + union { + __IO uint8_t ADSS3; + stc_adc_adss3_field_t ADSS3_f; + }; + }; + }; + uint8_t RESERVED7[2]; + union { + union { + __IO uint16_t ADSS01; + stc_adc_adss01_field_t ADSS01_f; + }; + struct { + union { + __IO uint8_t ADSS0; + stc_adc_adss0_field_t ADSS0_f; + }; + union { + __IO uint8_t ADSS1; + stc_adc_adss1_field_t ADSS1_f; + }; + }; + }; + uint8_t RESERVED8[2]; + union { + union { + __IO uint16_t ADST01; + stc_adc_adst01_field_t ADST01_f; + }; + struct { + union { + __IO uint8_t ADST1; + stc_adc_adst1_field_t ADST1_f; + }; + union { + __IO uint8_t ADST0; + stc_adc_adst0_field_t ADST0_f; + }; + }; + }; + uint8_t RESERVED9[2]; + union { + __IO uint8_t ADCT; + stc_adc_adct_field_t ADCT_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PRTSL; + stc_adc_prtsl_field_t PRTSL_f; + }; + union { + __IO uint8_t SCTSL; + stc_adc_sctsl_field_t SCTSL_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint8_t ADCEN; + stc_adc_adcen_field_t ADCEN_f; + }; +}FM3_ADC_TypeDef; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CR trimming registers */ +typedef struct +{ + union { + __IO uint8_t MCR_PSR; + stc_crtrim_mcr_psr_field_t MCR_PSR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint16_t MCR_FTRM; + stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; + }; + uint8_t RESERVED1[6]; + __IO uint32_t MCR_RLR; +}FM3_CRTRIM_TypeDef; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* External interrupt registers */ +typedef struct +{ + union { + __IO uint16_t ENIR; + stc_exti_enir_field_t ENIR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint16_t EIRR; + stc_exti_eirr_field_t EIRR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t EICL; + stc_exti_eicl_field_t EICL_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint32_t ELVR; + stc_exti_elvr_field_t ELVR_f; + }; + uint8_t RESERVED3[4]; + union { + __IO uint8_t NMIRR; + stc_exti_nmirr_field_t NMIRR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t NMICL; + stc_exti_nmicl_field_t NMICL_f; + }; +}FM3_EXTI_TypeDef; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* Interrupt request read registers */ +typedef struct +{ + union { + __IO uint32_t DRQSEL; + stc_intreq_drqsel_field_t DRQSEL_f; + }; + uint8_t RESERVED0[12]; + union { + __IO uint32_t EXC02MON; + stc_intreq_exc02mon_field_t EXC02MON_f; + }; + union { + __IO uint32_t IRQ00MON; + stc_intreq_irq00mon_field_t IRQ00MON_f; + }; + union { + __IO uint32_t IRQ01MON; + stc_intreq_irq01mon_field_t IRQ01MON_f; + }; + union { + __IO uint32_t IRQ02MON; + stc_intreq_irq02mon_field_t IRQ02MON_f; + }; + union { + __IO uint32_t IRQ03MON; + stc_intreq_irq03mon_field_t IRQ03MON_f; + }; + union { + __IO uint32_t IRQ04MON; + stc_intreq_irq04mon_field_t IRQ04MON_f; + }; + union { + __IO uint32_t IRQ05MON; + stc_intreq_irq05mon_field_t IRQ05MON_f; + }; + union { + __IO uint32_t IRQ06MON; + stc_intreq_irq06mon_field_t IRQ06MON_f; + }; + union { + __IO uint32_t IRQ07MON; + stc_intreq_irq07mon_field_t IRQ07MON_f; + }; + union { + __IO uint32_t IRQ08MON; + stc_intreq_irq08mon_field_t IRQ08MON_f; + }; + union { + __IO uint32_t IRQ09MON; + stc_intreq_irq09mon_field_t IRQ09MON_f; + }; + union { + __IO uint32_t IRQ10MON; + stc_intreq_irq10mon_field_t IRQ10MON_f; + }; + union { + __IO uint32_t IRQ11MON; + stc_intreq_irq11mon_field_t IRQ11MON_f; + }; + union { + __IO uint32_t IRQ12MON; + stc_intreq_irq12mon_field_t IRQ12MON_f; + }; + union { + __IO uint32_t IRQ13MON; + stc_intreq_irq13mon_field_t IRQ13MON_f; + }; + union { + __IO uint32_t IRQ14MON; + stc_intreq_irq14mon_field_t IRQ14MON_f; + }; + union { + __IO uint32_t IRQ15MON; + stc_intreq_irq15mon_field_t IRQ15MON_f; + }; + union { + __IO uint32_t IRQ16MON; + stc_intreq_irq16mon_field_t IRQ16MON_f; + }; + union { + __IO uint32_t IRQ17MON; + stc_intreq_irq17mon_field_t IRQ17MON_f; + }; + union { + __IO uint32_t IRQ18MON; + stc_intreq_irq18mon_field_t IRQ18MON_f; + }; + union { + __IO uint32_t IRQ19MON; + stc_intreq_irq19mon_field_t IRQ19MON_f; + }; + union { + __IO uint32_t IRQ20MON; + stc_intreq_irq20mon_field_t IRQ20MON_f; + }; + union { + __IO uint32_t IRQ21MON; + stc_intreq_irq21mon_field_t IRQ21MON_f; + }; + union { + __IO uint32_t IRQ22MON; + stc_intreq_irq22mon_field_t IRQ22MON_f; + }; + union { + __IO uint32_t IRQ23MON; + stc_intreq_irq23mon_field_t IRQ23MON_f; + }; + union { + __IO uint32_t IRQ24MON; + stc_intreq_irq24mon_field_t IRQ24MON_f; + }; + union { + __IO uint32_t IRQ25MON; + stc_intreq_irq25mon_field_t IRQ25MON_f; + }; + union { + __IO uint32_t IRQ26MON; + stc_intreq_irq26mon_field_t IRQ26MON_f; + }; + union { + __IO uint32_t IRQ27MON; + stc_intreq_irq27mon_field_t IRQ27MON_f; + }; + union { + __IO uint32_t IRQ28MON; + stc_intreq_irq28mon_field_t IRQ28MON_f; + }; + union { + __IO uint32_t IRQ29MON; + stc_intreq_irq29mon_field_t IRQ29MON_f; + }; + union { + __IO uint32_t IRQ30MON; + stc_intreq_irq30mon_field_t IRQ30MON_f; + }; + union { + __IO uint32_t IRQ31MON; + stc_intreq_irq31mon_field_t IRQ31MON_f; + }; + union { + __IO uint32_t IRQ32MON; + stc_intreq_irq32mon_field_t IRQ32MON_f; + }; + union { + __IO uint32_t IRQ33MON; + stc_intreq_irq33mon_field_t IRQ33MON_f; + }; + union { + __IO uint32_t IRQ34MON; + stc_intreq_irq34mon_field_t IRQ34MON_f; + }; + union { + __IO uint32_t IRQ35MON; + stc_intreq_irq35mon_field_t IRQ35MON_f; + }; + __IO uint32_t IRQ36MON; + __IO uint32_t IRQ37MON; + union { + __IO uint32_t IRQ38MON; + stc_intreq_irq38mon_field_t IRQ38MON_f; + }; + union { + __IO uint32_t IRQ39MON; + stc_intreq_irq39mon_field_t IRQ39MON_f; + }; + union { + __IO uint32_t IRQ40MON; + stc_intreq_irq40mon_field_t IRQ40MON_f; + }; + union { + __IO uint32_t IRQ41MON; + stc_intreq_irq41mon_field_t IRQ41MON_f; + }; + union { + __IO uint32_t IRQ42MON; + stc_intreq_irq42mon_field_t IRQ42MON_f; + }; + union { + __IO uint32_t IRQ43MON; + stc_intreq_irq43mon_field_t IRQ43MON_f; + }; + union { + __IO uint32_t IRQ44MON; + stc_intreq_irq44mon_field_t IRQ44MON_f; + }; + union { + __IO uint32_t IRQ45MON; + stc_intreq_irq45mon_field_t IRQ45MON_f; + }; + __IO uint32_t IRQ46MON; + __IO uint32_t IRQ47MON; +}FM3_INTREQ_TypeDef; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* General purpose I/O registers */ +typedef struct +{ + union { + __IO uint32_t PFR0; + stc_gpio_pfr0_field_t PFR0_f; + }; + union { + __IO uint32_t PFR1; + stc_gpio_pfr1_field_t PFR1_f; + }; + union { + __IO uint32_t PFR2; + stc_gpio_pfr2_field_t PFR2_f; + }; + union { + __IO uint32_t PFR3; + stc_gpio_pfr3_field_t PFR3_f; + }; + union { + __IO uint32_t PFR4; + stc_gpio_pfr4_field_t PFR4_f; + }; + union { + __IO uint32_t PFR5; + stc_gpio_pfr5_field_t PFR5_f; + }; + union { + __IO uint32_t PFR6; + stc_gpio_pfr6_field_t PFR6_f; + }; + union { + __IO uint32_t PFR7; + stc_gpio_pfr7_field_t PFR7_f; + }; + union { + __IO uint32_t PFR8; + stc_gpio_pfr8_field_t PFR8_f; + }; + uint8_t RESERVED0[220]; + union { + __IO uint32_t PCR0; + stc_gpio_pcr0_field_t PCR0_f; + }; + union { + __IO uint32_t PCR1; + stc_gpio_pcr1_field_t PCR1_f; + }; + union { + __IO uint32_t PCR2; + stc_gpio_pcr2_field_t PCR2_f; + }; + union { + __IO uint32_t PCR3; + stc_gpio_pcr3_field_t PCR3_f; + }; + union { + __IO uint32_t PCR4; + stc_gpio_pcr4_field_t PCR4_f; + }; + union { + __IO uint32_t PCR5; + stc_gpio_pcr5_field_t PCR5_f; + }; + union { + __IO uint32_t PCR6; + stc_gpio_pcr6_field_t PCR6_f; + }; + union { + __IO uint32_t PCR7; + stc_gpio_pcr7_field_t PCR7_f; + }; + uint8_t RESERVED1[224]; + union { + __IO uint32_t DDR0; + stc_gpio_ddr0_field_t DDR0_f; + }; + union { + __IO uint32_t DDR1; + stc_gpio_ddr1_field_t DDR1_f; + }; + union { + __IO uint32_t DDR2; + stc_gpio_ddr2_field_t DDR2_f; + }; + union { + __IO uint32_t DDR3; + stc_gpio_ddr3_field_t DDR3_f; + }; + union { + __IO uint32_t DDR4; + stc_gpio_ddr4_field_t DDR4_f; + }; + union { + __IO uint32_t DDR5; + stc_gpio_ddr5_field_t DDR5_f; + }; + union { + __IO uint32_t DDR6; + stc_gpio_ddr6_field_t DDR6_f; + }; + union { + __IO uint32_t DDR7; + stc_gpio_ddr7_field_t DDR7_f; + }; + union { + __IO uint32_t DDR8; + stc_gpio_ddr8_field_t DDR8_f; + }; + uint8_t RESERVED2[220]; + union { + __IO uint32_t PDIR0; + stc_gpio_pdir0_field_t PDIR0_f; + }; + union { + __IO uint32_t PDIR1; + stc_gpio_pdir1_field_t PDIR1_f; + }; + union { + __IO uint32_t PDIR2; + stc_gpio_pdir2_field_t PDIR2_f; + }; + union { + __IO uint32_t PDIR3; + stc_gpio_pdir3_field_t PDIR3_f; + }; + union { + __IO uint32_t PDIR4; + stc_gpio_pdir4_field_t PDIR4_f; + }; + union { + __IO uint32_t PDIR5; + stc_gpio_pdir5_field_t PDIR5_f; + }; + union { + __IO uint32_t PDIR6; + stc_gpio_pdir6_field_t PDIR6_f; + }; + union { + __IO uint32_t PDIR7; + stc_gpio_pdir7_field_t PDIR7_f; + }; + union { + __IO uint32_t PDIR8; + stc_gpio_pdir8_field_t PDIR8_f; + }; + uint8_t RESERVED3[220]; + union { + __IO uint32_t PDOR0; + stc_gpio_pdor0_field_t PDOR0_f; + }; + union { + __IO uint32_t PDOR1; + stc_gpio_pdor1_field_t PDOR1_f; + }; + union { + __IO uint32_t PDOR2; + stc_gpio_pdor2_field_t PDOR2_f; + }; + union { + __IO uint32_t PDOR3; + stc_gpio_pdor3_field_t PDOR3_f; + }; + union { + __IO uint32_t PDOR4; + stc_gpio_pdor4_field_t PDOR4_f; + }; + union { + __IO uint32_t PDOR5; + stc_gpio_pdor5_field_t PDOR5_f; + }; + union { + __IO uint32_t PDOR6; + stc_gpio_pdor6_field_t PDOR6_f; + }; + union { + __IO uint32_t PDOR7; + stc_gpio_pdor7_field_t PDOR7_f; + }; + union { + __IO uint32_t PDOR8; + stc_gpio_pdor8_field_t PDOR8_f; + }; + uint8_t RESERVED4[220]; + union { + __IO uint32_t ADE; + stc_gpio_ade_field_t ADE_f; + }; + uint8_t RESERVED5[124]; + union { + __IO uint32_t SPSR; + stc_gpio_spsr_field_t SPSR_f; + }; + uint8_t RESERVED6[124]; + union { + __IO uint32_t EPFR00; + stc_gpio_epfr00_field_t EPFR00_f; + }; + union { + __IO uint32_t EPFR01; + stc_gpio_epfr01_field_t EPFR01_f; + }; + union { + __IO uint32_t EPFR02; + stc_gpio_epfr02_field_t EPFR02_f; + }; + uint8_t RESERVED7[4]; + union { + __IO uint32_t EPFR04; + stc_gpio_epfr04_field_t EPFR04_f; + }; + union { + __IO uint32_t EPFR05; + stc_gpio_epfr05_field_t EPFR05_f; + }; + union { + __IO uint32_t EPFR06; + stc_gpio_epfr06_field_t EPFR06_f; + }; + union { + __IO uint32_t EPFR07; + stc_gpio_epfr07_field_t EPFR07_f; + }; + union { + __IO uint32_t EPFR08; + stc_gpio_epfr08_field_t EPFR08_f; + }; + union { + __IO uint32_t EPFR09; + stc_gpio_epfr09_field_t EPFR09_f; + }; + union { + __IO uint32_t EPFR10; + stc_gpio_epfr10_field_t EPFR10_f; + }; +}FM3_GPIO_TypeDef; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* Low voltage detection registers */ +typedef struct +{ + union { + __IO uint8_t LVD_CTL; + stc_lvd_lvd_ctl_field_t LVD_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t LVD_STR; + stc_lvd_lvd_str_field_t LVD_STR_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t LVD_CLR; + stc_lvd_lvd_clr_field_t LVD_CLR_f; + }; + uint8_t RESERVED2[3]; + __IO uint32_t LVD_RLR; + union { + __IO uint8_t LVD_STR2; + stc_lvd_lvd_str2_field_t LVD_STR2_f; + }; +}FM3_LVD_TypeDef; + +/****************************************************************************** + * USBCLK + ******************************************************************************/ +/* USB clock registers */ +typedef struct +{ + union { + __IO uint8_t UCCR; + stc_usbclk_uccr_field_t UCCR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t UPCR1; + stc_usbclk_upcr1_field_t UPCR1_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t UPCR2; + stc_usbclk_upcr2_field_t UPCR2_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint8_t UPCR3; + stc_usbclk_upcr3_field_t UPCR3_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t UPCR4; + stc_usbclk_upcr4_field_t UPCR4_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t UP_STR; + stc_usbclk_up_str_field_t UP_STR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t UPINT_ENR; + stc_usbclk_upint_enr_field_t UPINT_ENR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t UPINT_CLR; + stc_usbclk_upint_clr_field_t UPINT_CLR_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint8_t UPINT_STR; + stc_usbclk_upint_str_field_t UPINT_STR_f; + }; + uint8_t RESERVED8[15]; + union { + __IO uint8_t USBEN; + stc_usbclk_usben_field_t USBEN_f; + }; +}FM3_USBCLK_TypeDef; + +/****************************************************************************** + * CANPRE_MODULE + ******************************************************************************/ +/* CAN prescaler register */ +typedef struct +{ + union { + __IO uint8_t CANPRE; + stc_canpre_canpre_field_t CANPRE_f; + }; +}FM3_CANPRE_TypeDef; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_uart_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_uart_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_uart_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_uart_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint16_t RDR; + stc_mfs03_uart_rdr_field_t RDR_f; + }; + union { + __IO uint16_t TDR; + stc_mfs03_uart_tdr_field_t TDR_f; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs03_uart_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs03_uart_bgr1_field_t BGR1_f; + }; + }; + }; +}FM3_MFS03_UART_TypeDef; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_csio_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_csio_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_csio_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_csio_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; +}FM3_MFS03_CSIO_TypeDef; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_lin_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_lin_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_lin_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_lin_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs03_lin_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs03_lin_bgr1_field_t BGR1_f; + }; + }; + }; +}FM3_MFS03_LIN_TypeDef; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* I2C channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_i2c_smr_field_t SMR_f; + }; + union { + __IO uint8_t IBCR; + stc_mfs03_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t IBSR; + stc_mfs03_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_i2c_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t ISBA; + stc_mfs03_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs03_i2c_ismk_field_t ISMK_f; + }; +}FM3_MFS03_I2C_TypeDef; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_uart_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_uart_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_uart_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_uart_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint16_t RDR; + stc_mfs47_uart_rdr_field_t RDR_f; + }; + union { + __IO uint16_t TDR; + stc_mfs47_uart_tdr_field_t TDR_f; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs47_uart_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs47_uart_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_uart_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_uart_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_uart_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_uart_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_uart_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_uart_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_UART_TypeDef; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_csio_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_csio_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_csio_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_csio_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_csio_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_csio_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_csio_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_csio_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_csio_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_csio_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_CSIO_TypeDef; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_lin_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_lin_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_lin_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_lin_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs47_lin_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs47_lin_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_lin_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_lin_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_lin_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_lin_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_lin_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_lin_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_LIN_TypeDef; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* I2C channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_i2c_smr_field_t SMR_f; + }; + union { + __IO uint8_t IBCR; + stc_mfs47_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t IBSR; + stc_mfs47_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_i2c_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t ISBA; + stc_mfs47_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs47_i2c_ismk_field_t ISMK_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_i2c_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_i2c_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_i2c_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_i2c_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_i2c_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_i2c_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_I2C_TypeDef; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC registers */ +typedef struct +{ + union { + __IO uint8_t CRCCR; + stc_crc_crccr_field_t CRCCR_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t CRCINIT; + union { + __IO uint32_t CRCIN; + struct { + union { + __IO uint16_t CRCINL; + struct { + __IO uint8_t CRCINLL; + __IO uint8_t CRCINLH; + }; + }; + union { + __IO uint16_t CRCINH; + struct { + __IO uint8_t CRCINHL; + __IO uint8_t CRCINHH; + }; + }; + }; + }; + __IO uint32_t CRCR; +}FM3_CRC_TypeDef; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* Watch counter registers */ +typedef struct +{ + union { + __IO uint8_t WCRD; + stc_wc_wcrd_field_t WCRD_f; + }; + union { + __IO uint8_t WCRL; + stc_wc_wcrl_field_t WCRL_f; + }; + union { + __IO uint8_t WCCR; + stc_wc_wccr_field_t WCCR_f; + }; + uint8_t RESERVED0[13]; + union { + __IO uint16_t CLK_SEL; + stc_wc_clk_sel_field_t CLK_SEL_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t CLK_EN; + stc_wc_clk_en_field_t CLK_EN_f; + }; +}FM3_WC_TypeDef; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* External bus interface registers */ +typedef struct +{ + union { + __IO uint32_t MODE0; + stc_exbus_mode0_field_t MODE0_f; + }; + union { + __IO uint32_t MODE1; + stc_exbus_mode1_field_t MODE1_f; + }; + union { + __IO uint32_t MODE2; + stc_exbus_mode2_field_t MODE2_f; + }; + union { + __IO uint32_t MODE3; + stc_exbus_mode3_field_t MODE3_f; + }; + union { + __IO uint32_t MODE4; + stc_exbus_mode4_field_t MODE4_f; + }; + union { + __IO uint32_t MODE5; + stc_exbus_mode5_field_t MODE5_f; + }; + union { + __IO uint32_t MODE6; + stc_exbus_mode6_field_t MODE6_f; + }; + union { + __IO uint32_t MODE7; + stc_exbus_mode7_field_t MODE7_f; + }; + union { + __IO uint32_t TIM0; + stc_exbus_tim0_field_t TIM0_f; + }; + union { + __IO uint32_t TIM1; + stc_exbus_tim1_field_t TIM1_f; + }; + union { + __IO uint32_t TIM2; + stc_exbus_tim2_field_t TIM2_f; + }; + union { + __IO uint32_t TIM3; + stc_exbus_tim3_field_t TIM3_f; + }; + union { + __IO uint32_t TIM4; + stc_exbus_tim4_field_t TIM4_f; + }; + union { + __IO uint32_t TIM5; + stc_exbus_tim5_field_t TIM5_f; + }; + union { + __IO uint32_t TIM6; + stc_exbus_tim6_field_t TIM6_f; + }; + union { + __IO uint32_t TIM7; + stc_exbus_tim7_field_t TIM7_f; + }; + union { + __IO uint32_t AREA0; + stc_exbus_area0_field_t AREA0_f; + }; + union { + __IO uint32_t AREA1; + stc_exbus_area1_field_t AREA1_f; + }; + union { + __IO uint32_t AREA2; + stc_exbus_area2_field_t AREA2_f; + }; + union { + __IO uint32_t AREA3; + stc_exbus_area3_field_t AREA3_f; + }; + union { + __IO uint32_t AREA4; + stc_exbus_area4_field_t AREA4_f; + }; + union { + __IO uint32_t AREA5; + stc_exbus_area5_field_t AREA5_f; + }; + union { + __IO uint32_t AREA6; + stc_exbus_area6_field_t AREA6_f; + }; + union { + __IO uint32_t AREA7; + stc_exbus_area7_field_t AREA7_f; + }; +}FM3_EXBUS_TypeDef; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB channel 0 registers */ +typedef struct +{ + union { + union { + __IO uint16_t HCNT; + stc_usb_hcnt_field_t HCNT_f; + }; + struct { + union { + __IO uint8_t HCNT0; + stc_usb_hcnt0_field_t HCNT0_f; + }; + union { + __IO uint8_t HCNT1; + stc_usb_hcnt1_field_t HCNT1_f; + }; + }; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t HIRQ; + stc_usb_hirq_field_t HIRQ_f; + }; + union { + __IO uint8_t HERR; + stc_usb_herr_field_t HERR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t HSTATE; + stc_usb_hstate_field_t HSTATE_f; + }; + union { + __IO uint8_t HFCOMP; + stc_usb_hfcomp_field_t HFCOMP_f; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t HRTIMER; + stc_usb_hrtimer_field_t HRTIMER_f; + }; + struct { + union { + __IO uint8_t HRTIMER0; + stc_usb_hrtimer0_field_t HRTIMER0_f; + }; + union { + __IO uint8_t HRTIMER1; + stc_usb_hrtimer1_field_t HRTIMER1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t HRTIMER2; + stc_usb_hrtimer2_field_t HRTIMER2_f; + }; + union { + __IO uint8_t HADR; + stc_usb_hadr_field_t HADR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t HEOF; + stc_usb_heof_field_t HEOF_f; + }; + struct { + union { + __IO uint8_t HEOF0; + stc_usb_heof0_field_t HEOF0_f; + }; + union { + __IO uint8_t HEOF1; + stc_usb_heof1_field_t HEOF1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t HFRAME; + stc_usb_hframe_field_t HFRAME_f; + }; + struct { + union { + __IO uint8_t HFRAME0; + stc_usb_hframe0_field_t HFRAME0_f; + }; + union { + __IO uint8_t HFRAME1; + stc_usb_hframe1_field_t HFRAME1_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t HTOKEN; + stc_usb_htoken_field_t HTOKEN_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t UDCC; + stc_usb_udcc_field_t UDCC_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t EP0C; + stc_usb_ep0c_field_t EP0C_f; + }; + uint8_t RESERVED9[2]; + union { + __IO uint16_t EP1C; + stc_usb_ep1c_field_t EP1C_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint16_t EP2C; + stc_usb_ep2c_field_t EP2C_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t EP3C; + stc_usb_ep3c_field_t EP3C_f; + }; + uint8_t RESERVED12[2]; + union { + __IO uint16_t EP4C; + stc_usb_ep4c_field_t EP4C_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint16_t EP5C; + stc_usb_ep5c_field_t EP5C_f; + }; + uint8_t RESERVED14[2]; + union { + __IO uint16_t TMSP; + stc_usb_tmsp_field_t TMSP_f; + }; + uint8_t RESERVED15[2]; + union { + __IO uint8_t UDCS; + stc_usb_udcs_field_t UDCS_f; + }; + union { + __IO uint8_t UDCIE; + stc_usb_udcie_field_t UDCIE_f; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t EP0IS; + stc_usb_ep0is_field_t EP0IS_f; + }; + uint8_t RESERVED17[2]; + union { + __IO uint16_t EP0OS; + stc_usb_ep0os_field_t EP0OS_f; + }; + uint8_t RESERVED18[2]; + union { + __IO uint16_t EP1S; + stc_usb_ep1s_field_t EP1S_f; + }; + uint8_t RESERVED19[2]; + union { + __IO uint16_t EP2S; + stc_usb_ep2s_field_t EP2S_f; + }; + uint8_t RESERVED20[2]; + __IO uint16_t EP3S; + uint8_t RESERVED21[2]; + union { + __IO uint16_t EP4S; + stc_usb_ep4s_field_t EP4S_f; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t EP5S; + stc_usb_ep5s_field_t EP5S_f; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t EP0DT; + struct { + __IO uint8_t EP0DTL; + __IO uint8_t EP0DTH; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t EP1DT; + struct { + __IO uint8_t EP1DTL; + __IO uint8_t EP1DTH; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint16_t EP2DT; + struct { + __IO uint8_t EP2DTL; + __IO uint8_t EP2DTH; + }; + }; + uint8_t RESERVED26[2]; + union { + __IO uint16_t EP3DT; + struct { + __IO uint8_t EP3DTL; + __IO uint8_t EP3DTH; + }; + }; + uint8_t RESERVED27[2]; + union { + __IO uint16_t EP4DT; + struct { + __IO uint8_t EP4DTL; + __IO uint8_t EP4DTH; + }; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t EP5DT; + struct { + __IO uint8_t EP5DTL; + __IO uint8_t EP5DTH; + }; + }; +}FM3_USB_TypeDef; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMA controller */ +typedef struct +{ + union { + __IO uint32_t DMACR; + stc_dmac_dmacr_field_t DMACR_f; + }; + uint8_t RESERVED0[12]; + union { + __IO uint32_t DMACA0; + stc_dmac_dmaca0_field_t DMACA0_f; + }; + union { + __IO uint32_t DMACB0; + stc_dmac_dmacb0_field_t DMACB0_f; + }; + __IO uint32_t DMACSA0; + __IO uint32_t DMACDA0; + union { + __IO uint32_t DMACA1; + stc_dmac_dmaca1_field_t DMACA1_f; + }; + union { + __IO uint32_t DMACB1; + stc_dmac_dmacb1_field_t DMACB1_f; + }; + __IO uint32_t DMACSA1; + __IO uint32_t DMACDA1; + union { + __IO uint32_t DMACA2; + stc_dmac_dmaca2_field_t DMACA2_f; + }; + union { + __IO uint32_t DMACB2; + stc_dmac_dmacb2_field_t DMACB2_f; + }; + __IO uint32_t DMACSA2; + __IO uint32_t DMACDA2; + union { + __IO uint32_t DMACA3; + stc_dmac_dmaca3_field_t DMACA3_f; + }; + union { + __IO uint32_t DMACB3; + stc_dmac_dmacb3_field_t DMACB3_f; + }; + __IO uint32_t DMACSA3; + __IO uint32_t DMACDA3; + union { + __IO uint32_t DMACA4; + stc_dmac_dmaca4_field_t DMACA4_f; + }; + union { + __IO uint32_t DMACB4; + stc_dmac_dmacb4_field_t DMACB4_f; + }; + __IO uint32_t DMACSA4; + __IO uint32_t DMACDA4; + union { + __IO uint32_t DMACA5; + stc_dmac_dmaca5_field_t DMACA5_f; + }; + union { + __IO uint32_t DMACB5; + stc_dmac_dmacb5_field_t DMACB5_f; + }; + __IO uint32_t DMACSA5; + __IO uint32_t DMACDA5; + union { + __IO uint32_t DMACA6; + stc_dmac_dmaca6_field_t DMACA6_f; + }; + union { + __IO uint32_t DMACB6; + stc_dmac_dmacb6_field_t DMACB6_f; + }; + __IO uint32_t DMACSA6; + __IO uint32_t DMACDA6; + union { + __IO uint32_t DMACA7; + stc_dmac_dmaca7_field_t DMACA7_f; + }; + union { + __IO uint32_t DMACB7; + stc_dmac_dmacb7_field_t DMACB7_f; + }; + __IO uint32_t DMACSA7; + __IO uint32_t DMACDA7; +}FM3_DMAC_TypeDef; + +/****************************************************************************** + * CAN_MODULE + ******************************************************************************/ +/* CAN channel 0 registers */ +typedef struct +{ + union { + __IO uint16_t CTRLR; + stc_can_ctrlr_field_t CTRLR_f; + }; + union { + __IO uint16_t STATR; + stc_can_statr_field_t STATR_f; + }; + union { + __IO uint16_t ERRCNT; + stc_can_errcnt_field_t ERRCNT_f; + }; + union { + __IO uint16_t BTR; + stc_can_btr_field_t BTR_f; + }; + union { + __IO uint16_t INTR; + stc_can_intr_field_t INTR_f; + }; + union { + __IO uint16_t TESTR; + stc_can_testr_field_t TESTR_f; + }; + union { + __IO uint16_t BRPER; + stc_can_brper_field_t BRPER_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint16_t IF1CREQ; + stc_can_if1creq_field_t IF1CREQ_f; + }; + union { + __IO uint16_t IF1CMSK; + stc_can_if1cmsk_field_t IF1CMSK_f; + }; + union { + union { + __IO uint32_t IF1MSK; + stc_can_if1msk_field_t IF1MSK_f; + }; + struct { + __IO uint16_t IF1MSK1; + union { + __IO uint16_t IF1MSK2; + stc_can_if1msk2_field_t IF1MSK2_f; + }; + }; + }; + union { + union { + __IO uint32_t IF1ARB; + stc_can_if1arb_field_t IF1ARB_f; + }; + struct { + __IO uint16_t IF1ARB1; + union { + __IO uint16_t IF1ARB2; + stc_can_if1arb2_field_t IF1ARB2_f; + }; + }; + }; + union { + __IO uint16_t IF1MCTR; + stc_can_if1mctr_field_t IF1MCTR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint32_t IF1DTA_L; + struct { + __IO uint16_t IF1DTA1_L; + __IO uint16_t IF1DTA2_L; + }; + }; + union { + __IO uint32_t IF1DTB_L; + struct { + __IO uint16_t IF1DTB1_L; + __IO uint16_t IF1DTB2_L; + }; + }; + uint8_t RESERVED2[8]; + union { + __IO uint32_t IF1DTA_B; + struct { + __IO uint16_t IF1DTA2_B; + __IO uint16_t IF1DTA1_B; + }; + }; + union { + __IO uint32_t IF1DTB_B; + struct { + __IO uint16_t IF1DTB2_B; + __IO uint16_t IF1DTB1_B; + }; + }; + uint8_t RESERVED3[8]; + union { + __IO uint16_t IF2CREQ; + stc_can_if2creq_field_t IF2CREQ_f; + }; + union { + __IO uint16_t IF2CMSK; + stc_can_if2cmsk_field_t IF2CMSK_f; + }; + union { + union { + __IO uint32_t IF2MSK; + stc_can_if2msk_field_t IF2MSK_f; + }; + struct { + __IO uint16_t IF2MSK1; + union { + __IO uint16_t IF2MSK2; + stc_can_if2msk2_field_t IF2MSK2_f; + }; + }; + }; + union { + __IO uint32_t IF2ARB; + struct { + __IO uint16_t IF2ARB1; + union { + __IO uint16_t IF2ARB2; + stc_can_if2arb2_field_t IF2ARB2_f; + }; + }; + }; + union { + __IO uint16_t IF2MCTR; + stc_can_if2mctr_field_t IF2MCTR_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint32_t IF2DTA_L; + struct { + __IO uint16_t IF2DTA1_L; + __IO uint16_t IF2DTA2_L; + }; + }; + union { + __IO uint32_t IF2DTB_L; + struct { + __IO uint16_t IF2DTB1_L; + __IO uint16_t IF2DTB2_L; + }; + }; + uint8_t RESERVED5[8]; + union { + __IO uint32_t IF2DTA_B; + struct { + __IO uint16_t IF2DTA2_B; + __IO uint16_t IF2DTA1_B; + }; + }; + union { + __IO uint32_t IF2DTB_B; + struct { + __IO uint16_t IF2DTB2_B; + __IO uint16_t IF2DTB1_B; + }; + }; + uint8_t RESERVED6[24]; + union { + union { + __IO uint32_t TREQR; + stc_can_treqr_field_t TREQR_f; + }; + struct { + union { + __IO uint16_t TREQR1; + stc_can_treqr1_field_t TREQR1_f; + }; + union { + __IO uint16_t TREQR2; + stc_can_treqr2_field_t TREQR2_f; + }; + }; + }; + uint8_t RESERVED7[12]; + union { + union { + __IO uint32_t NEWDT; + stc_can_newdt_field_t NEWDT_f; + }; + struct { + union { + __IO uint16_t NEWDT1; + stc_can_newdt1_field_t NEWDT1_f; + }; + __IO uint16_t NEWDT2; + }; + }; + uint8_t RESERVED8[12]; + union { + union { + __IO uint32_t INTPND; + stc_can_intpnd_field_t INTPND_f; + }; + struct { + union { + __IO uint16_t INTPND1; + stc_can_intpnd1_field_t INTPND1_f; + }; + union { + __IO uint16_t INTPND2; + stc_can_intpnd2_field_t INTPND2_f; + }; + }; + }; + uint8_t RESERVED9[12]; + union { + union { + __IO uint32_t MSGVAL; + stc_can_msgval_field_t MSGVAL_f; + }; + struct { + union { + __IO uint16_t MSGVAL1; + stc_can_msgval1_field_t MSGVAL1_f; + }; + union { + __IO uint16_t MSGVAL2; + stc_can_msgval2_field_t MSGVAL2_f; + }; + }; + }; +}FM3_CAN_TypeDef; + + +/****************************************************************************** + * Peripheral memory map + ******************************************************************************/ +#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ +#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ +#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ + +#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ +#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ +#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ +#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ +#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ +#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ +#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ +#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ +#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ +#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ +#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ +#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ +#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ +#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ +#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ +#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ +#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ +#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ +#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ +#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ +#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ +#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ +#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ +#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ +#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ +#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ +#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ +#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ +#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ +#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ +#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ +#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ +#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ +#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ +#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ +#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ +#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ +#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ +#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ +#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ +#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ +#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ +#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ +#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ +#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ +#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ +#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ +#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ +#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ +#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ +#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ +#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ +#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ +#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ +#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ +#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ +#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ +#define FM3_USBCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ +#define FM3_CANPRES_BASE (FM3_PERIPH_BASE + 0x37000UL) /* CAN prescaler register */ +#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ +#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ +#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ +#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ +#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ +#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ +#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ +#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ +#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ +#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ +#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ +#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ +#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ +#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ +#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ +#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ +#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ +#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ +#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ +#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ +#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ +#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ +#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ +#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ +#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ +#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ +#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ +#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ +#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ +#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ +#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ +#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ +#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ +#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ +#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ +#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ +#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ +#define FM3_CAN0_BASE (FM3_PERIPH_BASE + 0x62000UL) /* CAN channel 0 registers */ +#define FM3_CAN1_BASE (FM3_PERIPH_BASE + 0x63000UL) /* CAN channel 1 registers */ + +/****************************************************************************** + * Peripheral declaration + ******************************************************************************/ +#define FM3_FLASH_IF ((FM3_FLASH_IF_TypeDef *)FM3_FLASH_IF_BASE) +#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) +#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) +#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) +#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) +#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) +#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) +#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) +#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) +#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) +#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) +#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) +#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) +#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) +#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) +#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) +#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) +#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) +#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) +#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) +#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) +#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) +#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) +#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) +#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) +#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) +#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) +#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) +#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) +#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) +#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) +#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) +#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) +#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) +#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) +#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) +#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) +#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) +#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) +#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) +#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) +#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) +#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) +#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) +#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) +#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) +#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) +#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) +#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) +#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) +#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) +#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) +#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) +#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) +#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) +#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) +#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) +#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) +#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) +#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) +#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) +#define FM3_USBCLK ((FM3_USBCLK_TypeDef *)FM3_USBCLK_BASE) +#define FM3_CANPRES ((FM3_CANPRE_TypeDef *)FM3_CANPRES_BASE) +#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) +#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) +#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) +#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) +#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) +#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) +#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) +#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) +#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) +#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) +#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) +#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) +#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) +#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) +#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) +#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) +#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) +#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) +#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) +#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) +#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) +#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) +#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) +#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) +#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) +#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) +#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) +#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) +#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) +#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) +#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) +#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) +#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) +#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) +#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) +#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) +#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) +#define FM3_CAN0 ((FM3_CAN_TypeDef *)FM3_CAN0_BASE) +#define FM3_CAN1 ((FM3_CAN_TypeDef *)FM3_CAN1_BASE) + +/****************************************************************************** + * Peripheral Bit Band Alias declaration + ******************************************************************************/ + +/* Flash interface registers */ +#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) +#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) +#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) +#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) +#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) +#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) +#define bFM3_FLASH_IF_FSTR_EER *((volatile unsigned int*)(0x42000108UL)) +#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) +#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) +#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) + +/* Clock and reset registers */ +#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) +#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) +#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) +#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) +#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) +#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) +#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) +#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) +#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) +#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) +#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) +#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) +#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) +#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) +#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) +#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) +#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) +#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) +#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) +#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) +#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) +#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) +#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) +#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) +#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) +#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) +#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) +#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) +#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) +#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) +#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) +#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) +#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) +#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) +#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) +#define bFM3_CRG_TTC_PSR_TTC *((volatile unsigned int*)(0x42200500UL)) +#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) +#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) +#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) +#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) +#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) +#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) +#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) +#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) +#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) +#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) +#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) +#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) +#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) +#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) +#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) +#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) +#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) +#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) +#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) +#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) +#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) +#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) +#define bFM3_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) +#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) +#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) +#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) +#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) +#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) +#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) +#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) +#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) +#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) +#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) +#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) +#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) +#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) +#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) +#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) +#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) +#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) +#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) +#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) +#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) +#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) +#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) +#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) + +/* Hardware watchdog registers */ +#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) +#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) +#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) + +/* Software watchdog registers */ +#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) +#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) +#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) + +/* Dual timer 1/2 registers */ +#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) +#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) +#define bFM3_DTIM_TIMER1RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0200UL)) +#define bFM3_DTIM_TIMER1MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0280UL)) +#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) +#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) +#define bFM3_DTIM_TIMER2RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0600UL)) +#define bFM3_DTIM_TIMER2MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0680UL)) + +/* Multifunction Timer unit 0 Free Running Timer registers */ +#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) +#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) +#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) +#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) +#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) +#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) +#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) +#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) +#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) +#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) +#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) +#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) +#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) +#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) +#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) +#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) +#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) +#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) +#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) +#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) +#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) +#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) +#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) +#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) +#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) +#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) +#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) +#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) +#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) +#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) +#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) + +/* Multifunction Timer unit 0 Output Compare Unit registers */ +#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) +#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) +#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) +#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) +#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) +#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) +#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) +#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) +#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) +#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) +#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) +#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) +#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) +#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) +#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) +#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) +#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) +#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) +#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) +#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) +#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) +#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) +#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) +#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) +#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) +#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) + +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) +#define bFM3_MFT0_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4240118CUL)) +#define bFM3_MFT0_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42401190UL)) +#define bFM3_MFT0_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42401194UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) +#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) +#define bFM3_MFT0_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4240120CUL)) +#define bFM3_MFT0_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42401210UL)) +#define bFM3_MFT0_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42401214UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) +#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) +#define bFM3_MFT0_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4240128CUL)) +#define bFM3_MFT0_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42401290UL)) +#define bFM3_MFT0_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42401294UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) +#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) +#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) +#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) +#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) +#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) +#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) +#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) +#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) +#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) + +/* Multifunction Timer unit 0 Input Capture Unit registers */ +#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) +#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) +#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) +#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) +#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) +#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) +#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) +#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) +#define bFM3_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42400F18UL)) +#define bFM3_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42400F1CUL)) +#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) +#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) +#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) +#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) +#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) +#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) +#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) +#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) +#define bFM3_MFT0_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42400F98UL)) +#define bFM3_MFT0_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42400F9CUL)) +#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) +#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) + +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) +#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) + +/* Multifunction Timer unit 1 Free Running Timer registers */ +#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) +#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) +#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) +#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) +#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) +#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) +#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) +#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) +#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) +#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) +#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) +#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) +#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) +#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) +#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) +#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) +#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) +#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) +#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) +#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) +#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) +#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) +#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) +#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) +#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) +#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) +#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) +#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) +#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) +#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) +#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) + +/* Multifunction Timer unit 1 Output Compare Unit registers */ +#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) +#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) +#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) +#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) +#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) +#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) +#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) +#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) +#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) +#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) +#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) +#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) +#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) +#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) +#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) +#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) +#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) +#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) +#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) +#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) +#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) +#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) +#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) +#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) +#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) +#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) + +/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) +#define bFM3_MFT1_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4242118CUL)) +#define bFM3_MFT1_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42421190UL)) +#define bFM3_MFT1_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42421194UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) +#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) +#define bFM3_MFT1_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4242120CUL)) +#define bFM3_MFT1_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42421210UL)) +#define bFM3_MFT1_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42421214UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) +#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) +#define bFM3_MFT1_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4242128CUL)) +#define bFM3_MFT1_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42421290UL)) +#define bFM3_MFT1_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42421294UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) +#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) +#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) +#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) +#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) +#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) +#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) +#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) +#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) +#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) + +/* Multifunction Timer unit 1 Input Capture Unit registers */ +#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) +#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) +#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) +#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) +#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) +#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) +#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) +#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) +#define bFM3_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42420F18UL)) +#define bFM3_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42420F1CUL)) +#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) +#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) +#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) +#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) +#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) +#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) +#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) +#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) +#define bFM3_MFT1_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42420F98UL)) +#define bFM3_MFT1_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42420F9CUL)) +#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) +#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) + +/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) +#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) + +/* Multifunction Timer PPG registers */ +#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) +#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) +#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) +#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) +#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) +#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) +#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) +#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) +#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) +#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) +#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) +#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) +#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) +#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) +#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) +#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) +#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) +#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) +#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) +#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) +#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) +#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) +#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) +#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) +#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) +#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) +#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) +#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) +#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) +#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) +#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) +#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) +#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) +#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) +#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) +#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) +#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) +#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) +#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) +#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) +#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) +#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) +#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) +#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) +#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) +#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) +#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) +#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) +#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) +#define bFM3_MFT_PPG_PPGC1_MD0 *((volatile unsigned int*)(0x42484004UL)) +#define bFM3_MFT_PPG_PPGC1_MD1 *((volatile unsigned int*)(0x42484008UL)) +#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) +#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) +#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) +#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) +#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) +#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) +#define bFM3_MFT_PPG_PPGC0_MD0 *((volatile unsigned int*)(0x42484024UL)) +#define bFM3_MFT_PPG_PPGC0_MD1 *((volatile unsigned int*)(0x42484028UL)) +#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) +#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) +#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) +#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) +#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) +#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) +#define bFM3_MFT_PPG_PPGC3_MD0 *((volatile unsigned int*)(0x42484084UL)) +#define bFM3_MFT_PPG_PPGC3_MD1 *((volatile unsigned int*)(0x42484088UL)) +#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) +#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) +#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) +#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) +#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) +#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) +#define bFM3_MFT_PPG_PPGC2_MD0 *((volatile unsigned int*)(0x424840A4UL)) +#define bFM3_MFT_PPG_PPGC2_MD1 *((volatile unsigned int*)(0x424840A8UL)) +#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) +#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) +#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) +#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) +#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) +#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) +#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) +#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) +#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) +#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) +#define bFM3_MFT_PPG_PPGC5_MD0 *((volatile unsigned int*)(0x42484804UL)) +#define bFM3_MFT_PPG_PPGC5_MD1 *((volatile unsigned int*)(0x42484808UL)) +#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) +#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) +#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) +#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) +#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) +#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) +#define bFM3_MFT_PPG_PPGC4_MD0 *((volatile unsigned int*)(0x42484824UL)) +#define bFM3_MFT_PPG_PPGC4_MD1 *((volatile unsigned int*)(0x42484828UL)) +#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) +#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) +#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) +#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) +#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) +#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) +#define bFM3_MFT_PPG_PPGC7_MD0 *((volatile unsigned int*)(0x42484884UL)) +#define bFM3_MFT_PPG_PPGC7_MD1 *((volatile unsigned int*)(0x42484888UL)) +#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) +#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) +#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) +#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) +#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) +#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) +#define bFM3_MFT_PPG_PPGC6_MD0 *((volatile unsigned int*)(0x424848A4UL)) +#define bFM3_MFT_PPG_PPGC6_MD1 *((volatile unsigned int*)(0x424848A8UL)) +#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) +#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) +#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) +#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) +#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) +#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) +#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) +#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) +#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) +#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) +#define bFM3_MFT_PPG_PPGC9_MD0 *((volatile unsigned int*)(0x42485004UL)) +#define bFM3_MFT_PPG_PPGC9_MD1 *((volatile unsigned int*)(0x42485008UL)) +#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) +#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) +#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) +#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) +#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) +#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) +#define bFM3_MFT_PPG_PPGC8_MD0 *((volatile unsigned int*)(0x42485024UL)) +#define bFM3_MFT_PPG_PPGC8_MD1 *((volatile unsigned int*)(0x42485028UL)) +#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) +#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) +#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) +#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) +#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) +#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) +#define bFM3_MFT_PPG_PPGC11_MD0 *((volatile unsigned int*)(0x42485084UL)) +#define bFM3_MFT_PPG_PPGC11_MD1 *((volatile unsigned int*)(0x42485088UL)) +#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) +#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) +#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) +#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) +#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) +#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) +#define bFM3_MFT_PPG_PPGC10_MD0 *((volatile unsigned int*)(0x424850A4UL)) +#define bFM3_MFT_PPG_PPGC10_MD1 *((volatile unsigned int*)(0x424850A8UL)) +#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) +#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) +#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) +#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) +#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) +#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) +#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) +#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) +#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) +#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) +#define bFM3_MFT_PPG_PPGC13_MD0 *((volatile unsigned int*)(0x42485804UL)) +#define bFM3_MFT_PPG_PPGC13_MD1 *((volatile unsigned int*)(0x42485808UL)) +#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) +#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) +#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) +#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) +#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) +#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) +#define bFM3_MFT_PPG_PPGC12_MD0 *((volatile unsigned int*)(0x42485824UL)) +#define bFM3_MFT_PPG_PPGC12_MD1 *((volatile unsigned int*)(0x42485828UL)) +#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) +#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) +#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) +#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) +#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) +#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) +#define bFM3_MFT_PPG_PPGC15_MD0 *((volatile unsigned int*)(0x42485884UL)) +#define bFM3_MFT_PPG_PPGC15_MD1 *((volatile unsigned int*)(0x42485888UL)) +#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) +#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) +#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) +#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) +#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) +#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) +#define bFM3_MFT_PPG_PPGC14_MD0 *((volatile unsigned int*)(0x424858A4UL)) +#define bFM3_MFT_PPG_PPGC14_MD1 *((volatile unsigned int*)(0x424858A8UL)) +#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) +#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) +#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) +#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) +#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) +#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) +#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) +#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) +#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) + +/* Base Timer 0 PPG registers */ +#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWM registers */ +#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) +#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) +#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 RT registers */ +#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWC registers */ +#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) +#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 1 PPG registers */ +#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWM registers */ +#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) +#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) +#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 RT registers */ +#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWC registers */ +#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) +#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 2 PPG registers */ +#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWM registers */ +#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) +#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) +#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 RT registers */ +#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWC registers */ +#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) +#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 3 PPG registers */ +#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWM registers */ +#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) +#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) +#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 RT registers */ +#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWC registers */ +#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) +#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 4 PPG registers */ +#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWM registers */ +#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) +#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) +#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 RT registers */ +#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWC registers */ +#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) +#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 5 PPG registers */ +#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWM registers */ +#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) +#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) +#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 RT registers */ +#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWC registers */ +#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) +#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 6 PPG registers */ +#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWM registers */ +#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) +#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) +#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 RT registers */ +#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWC registers */ +#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) +#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 7 PPG registers */ +#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWM registers */ +#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) +#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) +#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 RT registers */ +#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWC registers */ +#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) +#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer I/O selector channel 0 - channel 3 registers */ +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) + +/* Base Timer I/O selector channel 4 - channel 7 registers */ +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) + +/* Software based Simulation Startup (Base Timer) register */ +#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) +#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) +#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) +#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) +#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) +#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) +#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) +#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) +#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) +#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) +#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) +#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) +#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) +#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) +#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) +#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) + +/* Quad position and revolution counter channel 0 registers */ +#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) +#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) +#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) + +/* Quad position and revolution counter channel 1 registers */ +#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) +#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) +#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) + +/* 12-bit ADC unit 0 registers */ +#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) +#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) +#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) +#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) +#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) +#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) +#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) +#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) +#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) +#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) +#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) +#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) +#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) +#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) +#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) +#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) +#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) +#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) +#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) +#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) +#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) +#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) +#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) +#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) +#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) +#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) +#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) +#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) +#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) +#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) +#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) +#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) +#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) +#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) +#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) +#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) +#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) +#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) +#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) +#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) +#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) +#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) +#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) +#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) +#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) +#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) +#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) +#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) +#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) +#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) +#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) +#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) +#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) +#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) +#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) +#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) +#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) +#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) +#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) +#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) +#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) +#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) +#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) +#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) +#define bFM3_ADC0_ADCT_CT3 *((volatile unsigned int*)(0x424E068CUL)) +#define bFM3_ADC0_ADCT_CT4 *((volatile unsigned int*)(0x424E0690UL)) +#define bFM3_ADC0_ADCT_CT5 *((volatile unsigned int*)(0x424E0694UL)) +#define bFM3_ADC0_ADCT_CT6 *((volatile unsigned int*)(0x424E0698UL)) +#define bFM3_ADC0_ADCT_CT7 *((volatile unsigned int*)(0x424E069CUL)) +#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) +#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) +#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) +#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) +#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) +#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) +#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) +#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) +#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) +#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) +#define bFM3_ADC0_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E0790UL)) +#define bFM3_ADC0_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E0794UL)) + +/* 12-bit ADC unit 1 registers */ +#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) +#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) +#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) +#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) +#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) +#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) +#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) +#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) +#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) +#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) +#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) +#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) +#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) +#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) +#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) +#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) +#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) +#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) +#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) +#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) +#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) +#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) +#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) +#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) +#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) +#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) +#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) +#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) +#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) +#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) +#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) +#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) +#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) +#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) +#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) +#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) +#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) +#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) +#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) +#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) +#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) +#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) +#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) +#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) +#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) +#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) +#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) +#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) +#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) +#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) +#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) +#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) +#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) +#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) +#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) +#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) +#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) +#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) +#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) +#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) +#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) +#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) +#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) +#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) +#define bFM3_ADC1_ADCT_CT3 *((volatile unsigned int*)(0x424E268CUL)) +#define bFM3_ADC1_ADCT_CT4 *((volatile unsigned int*)(0x424E2690UL)) +#define bFM3_ADC1_ADCT_CT5 *((volatile unsigned int*)(0x424E2694UL)) +#define bFM3_ADC1_ADCT_CT6 *((volatile unsigned int*)(0x424E2698UL)) +#define bFM3_ADC1_ADCT_CT7 *((volatile unsigned int*)(0x424E269CUL)) +#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) +#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) +#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) +#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) +#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) +#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) +#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) +#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) +#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) +#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) +#define bFM3_ADC1_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E2790UL)) +#define bFM3_ADC1_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E2794UL)) + +/* 12-bit ADC unit 2 registers */ +#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) +#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) +#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) +#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) +#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) +#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) +#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) +#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) +#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) +#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) +#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) +#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) +#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) +#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) +#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) +#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) +#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) +#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) +#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) +#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) +#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) +#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) +#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) +#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) +#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) +#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) +#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) +#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) +#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) +#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) +#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) +#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) +#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) +#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) +#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) +#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) +#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) +#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) +#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) +#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) +#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) +#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) +#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) +#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) +#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) +#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) +#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) +#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) +#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) +#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) +#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) +#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) +#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) +#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) +#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) +#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) +#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) +#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) +#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) +#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) +#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) +#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) +#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) +#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) +#define bFM3_ADC2_ADCT_CT3 *((volatile unsigned int*)(0x424E468CUL)) +#define bFM3_ADC2_ADCT_CT4 *((volatile unsigned int*)(0x424E4690UL)) +#define bFM3_ADC2_ADCT_CT5 *((volatile unsigned int*)(0x424E4694UL)) +#define bFM3_ADC2_ADCT_CT6 *((volatile unsigned int*)(0x424E4698UL)) +#define bFM3_ADC2_ADCT_CT7 *((volatile unsigned int*)(0x424E469CUL)) +#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) +#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) +#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) +#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) +#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) +#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) +#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) +#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) +#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) +#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) +#define bFM3_ADC2_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E4790UL)) +#define bFM3_ADC2_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E4794UL)) + +/* CR trimming registers */ +#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) +#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD8 *((volatile unsigned int*)(0x425C00A0UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD9 *((volatile unsigned int*)(0x425C00A4UL)) + +/* External interrupt registers */ +#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) +#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) +#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) +#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) +#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) +#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) +#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) +#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) +#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) +#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) +#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) +#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) +#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) +#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) +#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) +#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) +#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) +#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) +#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) +#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) +#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) +#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) +#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) +#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) +#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) +#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) +#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) +#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) +#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) +#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) +#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) +#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) +#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) +#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) +#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) +#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) +#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) +#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) +#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) +#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) +#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) +#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) +#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) +#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) +#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) +#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) +#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) +#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) +#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) +#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) +#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) +#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) +#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) +#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) +#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) +#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) +#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) +#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) +#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) +#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) +#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) +#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) +#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) +#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) +#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) +#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) +#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) +#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) +#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) +#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) +#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) +#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) +#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) +#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) +#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) +#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) +#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) +#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) +#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) +#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) +#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) +#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) + +/* Interrupt request read registers */ +#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) +#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) +#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) +#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) +#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) +#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT0 *((volatile unsigned int*)(0x42620580UL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620584UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) +#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) +#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) +#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) +#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) +#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) +#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) +#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) +#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) +#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) +#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) +#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) +#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) +#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) +#define bFM3_INTREQ_IRQ32MON_CANINT *((volatile unsigned int*)(0x42621280UL)) +#define bFM3_INTREQ_IRQ33MON_CANINT *((volatile unsigned int*)(0x42621300UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT5 *((volatile unsigned int*)(0x42621414UL)) +#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) +#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) +#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) +#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) +#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) +#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) +#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) +#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) + +/* General purpose I/O registers */ +#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) +#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) +#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) +#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) +#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) +#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) +#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) +#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) +#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) +#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) +#define bFM3_GPIO_PFR0_PA *((volatile unsigned int*)(0x42660028UL)) +#define bFM3_GPIO_PFR0_PB *((volatile unsigned int*)(0x4266002CUL)) +#define bFM3_GPIO_PFR0_PC *((volatile unsigned int*)(0x42660030UL)) +#define bFM3_GPIO_PFR0_PD *((volatile unsigned int*)(0x42660034UL)) +#define bFM3_GPIO_PFR0_PE *((volatile unsigned int*)(0x42660038UL)) +#define bFM3_GPIO_PFR0_PF *((volatile unsigned int*)(0x4266003CUL)) +#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) +#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) +#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) +#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) +#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) +#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) +#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) +#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) +#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) +#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) +#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) +#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) +#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) +#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) +#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) +#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) +#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) +#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) +#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) +#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) +#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) +#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) +#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) +#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) +#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) +#define bFM3_GPIO_PFR3_P0 *((volatile unsigned int*)(0x42660180UL)) +#define bFM3_GPIO_PFR3_P1 *((volatile unsigned int*)(0x42660184UL)) +#define bFM3_GPIO_PFR3_P2 *((volatile unsigned int*)(0x42660188UL)) +#define bFM3_GPIO_PFR3_P3 *((volatile unsigned int*)(0x4266018CUL)) +#define bFM3_GPIO_PFR3_P4 *((volatile unsigned int*)(0x42660190UL)) +#define bFM3_GPIO_PFR3_P5 *((volatile unsigned int*)(0x42660194UL)) +#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) +#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) +#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) +#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) +#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) +#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) +#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) +#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) +#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) +#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) +#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) +#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) +#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) +#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) +#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) +#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) +#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) +#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) +#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) +#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) +#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) +#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) +#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) +#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) +#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) +#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) +#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) +#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) +#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) +#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) +#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) +#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) +#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) +#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) +#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) +#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) +#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) +#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) +#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) +#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) +#define bFM3_GPIO_PFR6_P3 *((volatile unsigned int*)(0x4266030CUL)) +#define bFM3_GPIO_PFR6_P4 *((volatile unsigned int*)(0x42660310UL)) +#define bFM3_GPIO_PFR6_P5 *((volatile unsigned int*)(0x42660314UL)) +#define bFM3_GPIO_PFR6_P6 *((volatile unsigned int*)(0x42660318UL)) +#define bFM3_GPIO_PFR6_P7 *((volatile unsigned int*)(0x4266031CUL)) +#define bFM3_GPIO_PFR6_P8 *((volatile unsigned int*)(0x42660320UL)) +#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) +#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) +#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) +#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) +#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) +#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) +#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) +#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) +#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) +#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) +#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) +#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) +#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) +#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) +#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) +#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) +#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) +#define bFM3_GPIO_PCR0_PA *((volatile unsigned int*)(0x42662028UL)) +#define bFM3_GPIO_PCR0_PB *((volatile unsigned int*)(0x4266202CUL)) +#define bFM3_GPIO_PCR0_PC *((volatile unsigned int*)(0x42662030UL)) +#define bFM3_GPIO_PCR0_PD *((volatile unsigned int*)(0x42662034UL)) +#define bFM3_GPIO_PCR0_PE *((volatile unsigned int*)(0x42662038UL)) +#define bFM3_GPIO_PCR0_PF *((volatile unsigned int*)(0x4266203CUL)) +#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) +#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) +#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) +#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) +#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) +#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) +#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) +#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) +#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) +#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) +#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) +#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) +#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) +#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) +#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) +#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) +#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) +#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) +#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) +#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) +#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) +#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) +#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) +#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) +#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) +#define bFM3_GPIO_PCR3_P0 *((volatile unsigned int*)(0x42662180UL)) +#define bFM3_GPIO_PCR3_P1 *((volatile unsigned int*)(0x42662184UL)) +#define bFM3_GPIO_PCR3_P2 *((volatile unsigned int*)(0x42662188UL)) +#define bFM3_GPIO_PCR3_P3 *((volatile unsigned int*)(0x4266218CUL)) +#define bFM3_GPIO_PCR3_P4 *((volatile unsigned int*)(0x42662190UL)) +#define bFM3_GPIO_PCR3_P5 *((volatile unsigned int*)(0x42662194UL)) +#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) +#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) +#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) +#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) +#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) +#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) +#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) +#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) +#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) +#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) +#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) +#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) +#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) +#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) +#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) +#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) +#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) +#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) +#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) +#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) +#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) +#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) +#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) +#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) +#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) +#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) +#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) +#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) +#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) +#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) +#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) +#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) +#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) +#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) +#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) +#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) +#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) +#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) +#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) +#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) +#define bFM3_GPIO_PCR6_P3 *((volatile unsigned int*)(0x4266230CUL)) +#define bFM3_GPIO_PCR6_P4 *((volatile unsigned int*)(0x42662310UL)) +#define bFM3_GPIO_PCR6_P5 *((volatile unsigned int*)(0x42662314UL)) +#define bFM3_GPIO_PCR6_P6 *((volatile unsigned int*)(0x42662318UL)) +#define bFM3_GPIO_PCR6_P7 *((volatile unsigned int*)(0x4266231CUL)) +#define bFM3_GPIO_PCR6_P8 *((volatile unsigned int*)(0x42662320UL)) +#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) +#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) +#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) +#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) +#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) +#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) +#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) +#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) +#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) +#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) +#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) +#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) +#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) +#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) +#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) +#define bFM3_GPIO_DDR0_PA *((volatile unsigned int*)(0x42664028UL)) +#define bFM3_GPIO_DDR0_PB *((volatile unsigned int*)(0x4266402CUL)) +#define bFM3_GPIO_DDR0_PC *((volatile unsigned int*)(0x42664030UL)) +#define bFM3_GPIO_DDR0_PD *((volatile unsigned int*)(0x42664034UL)) +#define bFM3_GPIO_DDR0_PE *((volatile unsigned int*)(0x42664038UL)) +#define bFM3_GPIO_DDR0_PF *((volatile unsigned int*)(0x4266403CUL)) +#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) +#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) +#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) +#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) +#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) +#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) +#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) +#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) +#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) +#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) +#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) +#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) +#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) +#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) +#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) +#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) +#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) +#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) +#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) +#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) +#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) +#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) +#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) +#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) +#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) +#define bFM3_GPIO_DDR3_P0 *((volatile unsigned int*)(0x42664180UL)) +#define bFM3_GPIO_DDR3_P1 *((volatile unsigned int*)(0x42664184UL)) +#define bFM3_GPIO_DDR3_P2 *((volatile unsigned int*)(0x42664188UL)) +#define bFM3_GPIO_DDR3_P3 *((volatile unsigned int*)(0x4266418CUL)) +#define bFM3_GPIO_DDR3_P4 *((volatile unsigned int*)(0x42664190UL)) +#define bFM3_GPIO_DDR3_P5 *((volatile unsigned int*)(0x42664194UL)) +#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) +#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) +#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) +#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) +#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) +#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) +#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) +#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) +#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) +#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) +#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) +#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) +#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) +#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) +#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) +#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) +#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) +#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) +#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) +#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) +#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) +#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) +#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) +#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) +#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) +#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) +#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) +#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) +#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) +#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) +#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) +#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) +#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) +#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) +#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) +#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) +#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) +#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) +#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) +#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) +#define bFM3_GPIO_DDR6_P3 *((volatile unsigned int*)(0x4266430CUL)) +#define bFM3_GPIO_DDR6_P4 *((volatile unsigned int*)(0x42664310UL)) +#define bFM3_GPIO_DDR6_P5 *((volatile unsigned int*)(0x42664314UL)) +#define bFM3_GPIO_DDR6_P6 *((volatile unsigned int*)(0x42664318UL)) +#define bFM3_GPIO_DDR6_P7 *((volatile unsigned int*)(0x4266431CUL)) +#define bFM3_GPIO_DDR6_P8 *((volatile unsigned int*)(0x42664320UL)) +#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) +#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) +#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) +#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) +#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) +#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) +#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) +#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) +#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) +#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) +#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) +#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) +#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) +#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) +#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) +#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) +#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) +#define bFM3_GPIO_PDIR0_PA *((volatile unsigned int*)(0x42666028UL)) +#define bFM3_GPIO_PDIR0_PB *((volatile unsigned int*)(0x4266602CUL)) +#define bFM3_GPIO_PDIR0_PC *((volatile unsigned int*)(0x42666030UL)) +#define bFM3_GPIO_PDIR0_PD *((volatile unsigned int*)(0x42666034UL)) +#define bFM3_GPIO_PDIR0_PE *((volatile unsigned int*)(0x42666038UL)) +#define bFM3_GPIO_PDIR0_PF *((volatile unsigned int*)(0x4266603CUL)) +#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) +#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) +#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) +#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) +#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) +#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) +#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) +#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) +#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) +#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) +#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) +#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) +#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) +#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) +#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) +#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) +#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) +#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) +#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) +#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) +#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) +#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) +#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) +#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) +#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) +#define bFM3_GPIO_PDIR3_P0 *((volatile unsigned int*)(0x42666180UL)) +#define bFM3_GPIO_PDIR3_P1 *((volatile unsigned int*)(0x42666184UL)) +#define bFM3_GPIO_PDIR3_P2 *((volatile unsigned int*)(0x42666188UL)) +#define bFM3_GPIO_PDIR3_P3 *((volatile unsigned int*)(0x4266618CUL)) +#define bFM3_GPIO_PDIR3_P4 *((volatile unsigned int*)(0x42666190UL)) +#define bFM3_GPIO_PDIR3_P5 *((volatile unsigned int*)(0x42666194UL)) +#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) +#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) +#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) +#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) +#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) +#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) +#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) +#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) +#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) +#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) +#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) +#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) +#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) +#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) +#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) +#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) +#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) +#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) +#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) +#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) +#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) +#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) +#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) +#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) +#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) +#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) +#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) +#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) +#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) +#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) +#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) +#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) +#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) +#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) +#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) +#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) +#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) +#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) +#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) +#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) +#define bFM3_GPIO_PDIR6_P3 *((volatile unsigned int*)(0x4266630CUL)) +#define bFM3_GPIO_PDIR6_P4 *((volatile unsigned int*)(0x42666310UL)) +#define bFM3_GPIO_PDIR6_P5 *((volatile unsigned int*)(0x42666314UL)) +#define bFM3_GPIO_PDIR6_P6 *((volatile unsigned int*)(0x42666318UL)) +#define bFM3_GPIO_PDIR6_P7 *((volatile unsigned int*)(0x4266631CUL)) +#define bFM3_GPIO_PDIR6_P8 *((volatile unsigned int*)(0x42666320UL)) +#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) +#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) +#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) +#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) +#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) +#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) +#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) +#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) +#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) +#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) +#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) +#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) +#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) +#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) +#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) +#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) +#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) +#define bFM3_GPIO_PDOR0_PA *((volatile unsigned int*)(0x42668028UL)) +#define bFM3_GPIO_PDOR0_PB *((volatile unsigned int*)(0x4266802CUL)) +#define bFM3_GPIO_PDOR0_PC *((volatile unsigned int*)(0x42668030UL)) +#define bFM3_GPIO_PDOR0_PD *((volatile unsigned int*)(0x42668034UL)) +#define bFM3_GPIO_PDOR0_PE *((volatile unsigned int*)(0x42668038UL)) +#define bFM3_GPIO_PDOR0_PF *((volatile unsigned int*)(0x4266803CUL)) +#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) +#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) +#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) +#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) +#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) +#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) +#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) +#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) +#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) +#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) +#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) +#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) +#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) +#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) +#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) +#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) +#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) +#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) +#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) +#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) +#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) +#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) +#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) +#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) +#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) +#define bFM3_GPIO_PDOR3_P0 *((volatile unsigned int*)(0x42668180UL)) +#define bFM3_GPIO_PDOR3_P1 *((volatile unsigned int*)(0x42668184UL)) +#define bFM3_GPIO_PDOR3_P2 *((volatile unsigned int*)(0x42668188UL)) +#define bFM3_GPIO_PDOR3_P3 *((volatile unsigned int*)(0x4266818CUL)) +#define bFM3_GPIO_PDOR3_P4 *((volatile unsigned int*)(0x42668190UL)) +#define bFM3_GPIO_PDOR3_P5 *((volatile unsigned int*)(0x42668194UL)) +#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) +#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) +#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) +#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) +#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) +#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) +#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) +#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) +#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) +#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) +#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) +#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) +#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) +#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) +#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) +#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) +#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) +#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) +#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) +#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) +#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) +#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) +#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) +#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) +#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) +#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) +#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) +#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) +#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) +#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) +#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) +#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) +#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) +#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) +#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) +#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) +#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) +#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) +#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) +#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) +#define bFM3_GPIO_PDOR6_P3 *((volatile unsigned int*)(0x4266830CUL)) +#define bFM3_GPIO_PDOR6_P4 *((volatile unsigned int*)(0x42668310UL)) +#define bFM3_GPIO_PDOR6_P5 *((volatile unsigned int*)(0x42668314UL)) +#define bFM3_GPIO_PDOR6_P6 *((volatile unsigned int*)(0x42668318UL)) +#define bFM3_GPIO_PDOR6_P7 *((volatile unsigned int*)(0x4266831CUL)) +#define bFM3_GPIO_PDOR6_P8 *((volatile unsigned int*)(0x42668320UL)) +#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) +#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) +#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) +#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) +#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) +#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) +#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) +#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) +#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) +#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) +#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) +#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) +#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) +#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) +#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) +#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) +#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) +#define bFM3_GPIO_ADE_ANA *((volatile unsigned int*)(0x4266A028UL)) +#define bFM3_GPIO_ADE_ANB *((volatile unsigned int*)(0x4266A02CUL)) +#define bFM3_GPIO_ADE_ANC *((volatile unsigned int*)(0x4266A030UL)) +#define bFM3_GPIO_ADE_AND *((volatile unsigned int*)(0x4266A034UL)) +#define bFM3_GPIO_ADE_ANE *((volatile unsigned int*)(0x4266A038UL)) +#define bFM3_GPIO_ADE_ANF *((volatile unsigned int*)(0x4266A03CUL)) +#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) +#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) +#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) +#define bFM3_GPIO_EPFR00_CROUTE *((volatile unsigned int*)(0x4266C004UL)) +#define bFM3_GPIO_EPFR00_USB0PE *((volatile unsigned int*)(0x4266C024UL)) +#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) +#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) +#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) +#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) +#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) +#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) +#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) +#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) +#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) +#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) +#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) +#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) +#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) +#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) +#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) +#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) +#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) +#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) +#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) +#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) +#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) +#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) +#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) +#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) +#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) +#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) +#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) +#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) +#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) +#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) +#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) +#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) +#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) +#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) +#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) +#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) +#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) +#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) +#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) +#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) +#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) +#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) +#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) +#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) +#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) +#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) +#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) +#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) +#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) +#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) +#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) +#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) +#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) +#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) +#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) +#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) +#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) +#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) +#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) +#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) +#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) +#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) +#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) +#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) +#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) +#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) +#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) +#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) +#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) +#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) +#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) +#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) +#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) +#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) +#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) +#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) +#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) +#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) +#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) +#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) +#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) +#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) +#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) +#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) +#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) +#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) +#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) +#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) +#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) +#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) +#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) +#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) +#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) +#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) +#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) +#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) +#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) +#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) +#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) +#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) +#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) +#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) +#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) +#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) +#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) +#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) +#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) +#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) +#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) +#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) +#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) +#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) +#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) +#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) +#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) +#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) +#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) +#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) +#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) +#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) +#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) +#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) +#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) +#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) +#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) +#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) +#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) +#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) +#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) +#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) +#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) +#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) +#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) +#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) +#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) +#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) +#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) +#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) +#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) +#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) +#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) +#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) +#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) +#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) +#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) +#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) +#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) +#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) +#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) +#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) +#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) +#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) +#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) +#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) +#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) +#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) +#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) +#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) +#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) +#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) +#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) +#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) +#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) +#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) +#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) +#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) +#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) +#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) +#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) +#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) +#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) +#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) +#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) +#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) +#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) +#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) +#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) +#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) +#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) +#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) +#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) +#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) +#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) +#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) +#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) +#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) +#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) +#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) +#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) +#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) +#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) +#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) +#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) +#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) +#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) +#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) +#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) +#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) +#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) +#define bFM3_GPIO_EPFR09_CRX0S0 *((volatile unsigned int*)(0x4266C4E0UL)) +#define bFM3_GPIO_EPFR09_CRX0S1 *((volatile unsigned int*)(0x4266C4E4UL)) +#define bFM3_GPIO_EPFR09_CTX0E0 *((volatile unsigned int*)(0x4266C4E8UL)) +#define bFM3_GPIO_EPFR09_CTX0E1 *((volatile unsigned int*)(0x4266C4ECUL)) +#define bFM3_GPIO_EPFR09_CRX1S0 *((volatile unsigned int*)(0x4266C4F0UL)) +#define bFM3_GPIO_EPFR09_CRX1S1 *((volatile unsigned int*)(0x4266C4F4UL)) +#define bFM3_GPIO_EPFR09_CTX1E0 *((volatile unsigned int*)(0x4266C4F8UL)) +#define bFM3_GPIO_EPFR09_CTX1E1 *((volatile unsigned int*)(0x4266C4FCUL)) +#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) +#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) +#define bFM3_GPIO_EPFR10_TESTB *((volatile unsigned int*)(0x4266C508UL)) +#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) +#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) +#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) +#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) +#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) +#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) +#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) +#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) +#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) +#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) +#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) +#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) +#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) +#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) +#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) +#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) +#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) +#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) +#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) +#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) +#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) +#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) +#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) +#define bFM3_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x4266C568UL)) +#define bFM3_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x4266C56CUL)) +#define bFM3_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x4266C570UL)) +#define bFM3_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x4266C574UL)) +#define bFM3_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x4266C578UL)) +#define bFM3_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x4266C57CUL)) + +/* Low voltage detection registers */ +#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) +#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) +#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) +#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) +#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) +#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) +#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) +#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) + +/* USB clock registers */ +#define bFM3_USBCLK_UCCR_UCEN *((volatile unsigned int*)(0x426C0000UL)) +#define bFM3_USBCLK_UCCR_UCSEL *((volatile unsigned int*)(0x426C0004UL)) +#define bFM3_USBCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) +#define bFM3_USBCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) +#define bFM3_USBCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) +#define bFM3_USBCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) +#define bFM3_USBCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) +#define bFM3_USBCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) +#define bFM3_USBCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) +#define bFM3_USBCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) +#define bFM3_USBCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) +#define bFM3_USBCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) +#define bFM3_USBCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) +#define bFM3_USBCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) +#define bFM3_USBCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) +#define bFM3_USBCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) +#define bFM3_USBCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) +#define bFM3_USBCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) +#define bFM3_USBCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) +#define bFM3_USBCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) +#define bFM3_USBCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) +#define bFM3_USBCLK_USBEN_USBEN *((volatile unsigned int*)(0x426C0600UL)) + +/* CAN prescaler register */ +#define bFM3_CANPRES_CANPRE_CANPRE0 *((volatile unsigned int*)(0x426E0000UL)) +#define bFM3_CANPRES_CANPRE_CANPRE1 *((volatile unsigned int*)(0x426E0004UL)) +#define bFM3_CANPRES_CANPRE_CANPRE2 *((volatile unsigned int*)(0x426E0008UL)) +#define bFM3_CANPRES_CANPRE_CANPRE3 *((volatile unsigned int*)(0x426E000CUL)) + +/* UART asynchronous channel 0 registers */ +#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* UART synchronous channel 0 registers */ +#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) + +/* UART LIN channel 0 registers */ +#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* I2C channel 0 registers */ +#define bFM3_MFS0_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) +#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) +#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) +#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) +#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) +#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) +#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) +#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) +#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) +#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) +#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) +#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) +#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) +#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) +#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) +#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) +#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) + +/* UART asynchronous channel 1 registers */ +#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* UART synchronous channel 1 registers */ +#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) + +/* UART LIN channel 1 registers */ +#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* I2C channel 1 registers */ +#define bFM3_MFS1_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) +#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) +#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) +#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) +#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) +#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) +#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) +#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) +#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) +#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) +#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) +#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) +#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) +#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) +#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) +#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) +#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) + +/* UART asynchronous channel 2 registers */ +#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* UART synchronous channel 2 registers */ +#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) + +/* UART LIN channel 2 registers */ +#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* I2C channel 2 registers */ +#define bFM3_MFS2_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) +#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) +#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) +#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) +#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) +#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) +#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) +#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) +#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) +#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) +#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) +#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) +#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) +#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) +#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) +#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) +#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) + +/* UART asynchronous channel 3 registers */ +#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* UART synchronous channel 3 registers */ +#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) + +/* UART LIN channel 3 registers */ +#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* I2C channel 3 registers */ +#define bFM3_MFS3_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) +#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) +#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) +#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) +#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) +#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) +#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) +#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) +#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) +#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) +#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) +#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) +#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) +#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) +#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) +#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) +#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) + +/* UART asynchronous channel 4 registers */ +#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART synchronous channel 4 registers */ +#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART LIN channel 4 registers */ +#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* I2C channel 4 registers */ +#define bFM3_MFS4_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) +#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) +#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) +#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) +#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) +#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) +#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) +#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) +#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) +#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) +#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) +#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) +#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) +#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) +#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) +#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) +#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) +#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART asynchronous channel 5 registers */ +#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART synchronous channel 5 registers */ +#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART LIN channel 5 registers */ +#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* I2C channel 5 registers */ +#define bFM3_MFS5_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) +#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) +#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) +#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) +#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) +#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) +#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) +#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) +#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) +#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) +#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) +#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) +#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) +#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) +#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) +#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) +#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) +#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART asynchronous channel 6 registers */ +#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART synchronous channel 6 registers */ +#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART LIN channel 6 registers */ +#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* I2C channel 6 registers */ +#define bFM3_MFS6_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) +#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) +#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) +#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) +#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) +#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) +#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) +#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) +#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) +#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) +#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) +#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) +#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) +#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) +#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) +#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) +#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) +#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART asynchronous channel 7 registers */ +#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART synchronous channel 7 registers */ +#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART LIN channel 7 registers */ +#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* I2C channel 7 registers */ +#define bFM3_MFS7_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) +#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) +#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) +#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) +#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) +#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) +#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) +#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) +#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) +#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) +#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) +#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) +#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) +#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) +#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) +#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) +#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) +#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* CRC registers */ +#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) +#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) +#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) +#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) +#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) +#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) +#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) + +/* Watch counter registers */ +#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) +#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) +#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) +#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) +#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) +#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) +#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) +#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) +#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) +#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) +#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) +#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) +#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) +#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) +#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) +#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) +#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) +#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) +#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) +#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) +#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) +#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) + +/* External bus interface registers */ +#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) +#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) +#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) +#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) +#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0010UL)) +#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) +#define bFM3_EXBUS_MODE0_TEST *((volatile unsigned int*)(0x427E0018UL)) +#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) +#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) +#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) +#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) +#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) +#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) +#define bFM3_EXBUS_MODE1_TEST *((volatile unsigned int*)(0x427E0098UL)) +#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) +#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) +#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) +#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) +#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) +#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) +#define bFM3_EXBUS_MODE2_TEST *((volatile unsigned int*)(0x427E0118UL)) +#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) +#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) +#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) +#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) +#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) +#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) +#define bFM3_EXBUS_MODE3_TEST *((volatile unsigned int*)(0x427E0198UL)) +#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) +#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) +#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) +#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) +#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) +#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) +#define bFM3_EXBUS_MODE4_TEST *((volatile unsigned int*)(0x427E0218UL)) +#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) +#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) +#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) +#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) +#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) +#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) +#define bFM3_EXBUS_MODE5_TEST *((volatile unsigned int*)(0x427E0298UL)) +#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) +#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) +#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) +#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) +#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) +#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) +#define bFM3_EXBUS_MODE6_TEST *((volatile unsigned int*)(0x427E0318UL)) +#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) +#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) +#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) +#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) +#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) +#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) +#define bFM3_EXBUS_MODE7_TEST *((volatile unsigned int*)(0x427E0398UL)) +#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) +#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) +#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) +#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) +#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) +#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) +#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) +#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) +#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) +#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) +#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) +#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) +#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) +#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) +#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) +#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) +#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) +#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) +#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) +#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) +#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) +#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) +#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) +#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) +#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) +#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) +#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) +#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) +#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) +#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) +#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) +#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) +#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) +#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) +#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) +#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) +#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) +#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) +#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) +#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) +#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) +#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) +#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) +#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) +#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) +#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) +#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) +#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) +#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) +#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) +#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) +#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) +#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) +#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) +#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) +#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) +#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) +#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) +#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) +#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) +#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) +#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) +#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) +#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) +#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) +#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) +#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) +#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) +#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) +#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) +#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) +#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) +#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) +#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) +#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) +#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) +#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) +#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) +#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) +#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) +#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) +#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) +#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) +#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) +#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) +#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) +#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) +#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) +#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) +#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) +#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) +#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) +#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) +#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) +#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) +#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) +#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) +#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) +#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) +#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) +#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) +#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) +#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) +#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) +#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) +#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) +#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) +#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) +#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) +#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) +#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) +#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) +#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) +#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) +#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) +#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) +#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) +#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) +#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) +#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) +#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) +#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) +#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) +#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) +#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) +#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) +#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) +#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) +#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) +#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) +#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) +#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) +#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) +#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) +#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) +#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) +#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) +#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) +#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) +#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) +#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) +#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) +#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) +#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) +#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) +#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) +#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) +#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) +#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) +#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) +#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) +#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) +#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) +#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) +#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) +#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) +#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) +#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) +#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) +#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) +#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) +#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) +#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) +#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) +#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) +#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) +#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) +#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) +#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) +#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) +#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) +#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) +#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) +#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) +#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) +#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) +#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) +#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) +#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) +#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) +#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) +#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) +#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) +#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) +#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) +#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) +#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) +#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) +#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) +#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) +#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) +#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) +#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) +#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) +#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) +#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) +#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) +#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) +#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) +#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) +#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) +#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) +#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) +#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) +#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) +#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) +#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) +#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) +#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) +#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) +#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) +#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) +#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) +#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) +#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) +#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) +#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) +#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) +#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) +#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) +#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) +#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) +#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) +#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) +#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) +#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) +#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) +#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) +#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) +#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) +#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) +#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) +#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) +#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) +#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) +#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) +#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) +#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) +#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) +#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) +#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) +#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) +#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) +#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) +#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) +#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) +#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) +#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) +#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) +#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) +#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) +#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) +#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) +#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) +#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) +#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) +#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) +#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) +#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) +#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) +#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) +#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) +#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) +#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) +#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) +#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) +#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) +#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) +#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) +#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) +#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) +#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) +#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) +#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) +#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) +#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) +#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) +#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) +#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) +#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) +#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) +#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) +#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) +#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) +#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) +#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) +#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) +#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) +#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) +#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) +#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) +#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) +#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) +#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) +#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) +#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) +#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) +#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) +#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) +#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) +#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) +#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) +#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) +#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) +#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) +#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) +#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) +#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) +#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) +#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) +#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) +#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) +#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) +#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) +#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) +#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) +#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) +#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) +#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) +#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) +#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) +#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) +#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) +#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) +#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) +#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) +#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) +#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) +#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) +#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) +#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) +#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) +#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) +#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) +#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) +#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) +#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) +#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) +#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) +#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) +#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) +#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) +#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) +#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) +#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) +#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) +#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) +#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) +#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) +#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) +#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) +#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) +#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) +#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) +#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) +#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) +#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) +#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) +#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) +#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) +#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) +#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) +#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) +#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) +#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) +#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) +#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) +#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) +#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) +#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) +#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) +#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) +#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) +#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) +#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) +#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) + +/* USB channel 0 registers */ +#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) +#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) +#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) +#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) +#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) +#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) +#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) +#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) +#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) +#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) +#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) +#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) +#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) +#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) +#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) +#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) +#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) +#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) +#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) +#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) +#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) +#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) +#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) +#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) +#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) +#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) +#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) +#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) +#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) +#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) +#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) +#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) +#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) +#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) +#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) +#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) +#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) +#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) +#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) +#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) +#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) +#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) +#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) +#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) +#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) +#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) +#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) +#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) +#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) +#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) +#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) +#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) +#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) +#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) +#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) +#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) +#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) +#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) +#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) +#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) +#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) +#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) +#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) +#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) +#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) +#define bFM3_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) +#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) +#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) +#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) +#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) +#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) +#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) +#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) +#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) +#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) +#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) +#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) +#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) +#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) +#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) +#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) +#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) +#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) +#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) +#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) +#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) +#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) +#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) +#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) +#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) +#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) +#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) +#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) +#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) +#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) +#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) +#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) +#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) +#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) +#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) +#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) +#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) +#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) +#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) +#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) +#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) +#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) +#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) +#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) +#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) +#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) +#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) +#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) +#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) +#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) +#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) +#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) +#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) +#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) +#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) +#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) +#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) +#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) +#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) +#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) +#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) +#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) +#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) +#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) +#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) +#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) +#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) +#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) +#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) +#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) +#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) +#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) +#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) +#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) +#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) +#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) +#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) +#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) +#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) +#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) +#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) +#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) +#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) +#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) +#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) +#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) +#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) +#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) +#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) +#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) +#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) +#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) +#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) +#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) +#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) +#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) +#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) +#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) +#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) +#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) +#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) +#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) +#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) +#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) +#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) +#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) +#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) +#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) +#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) +#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) +#define bFM3_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) +#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) +#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) +#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) +#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) +#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) +#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) +#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) +#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) +#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) +#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) +#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) +#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) +#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) +#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) +#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) +#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) +#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) +#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) +#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) +#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) +#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) +#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) +#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) +#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) +#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) +#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) +#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) +#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) +#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) +#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) +#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) +#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) +#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) +#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) +#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) +#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) +#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) +#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) +#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) +#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) +#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) +#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) +#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) +#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) +#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) +#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) +#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) +#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) +#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) +#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) +#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) +#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) +#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) +#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) +#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) +#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) +#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) +#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) + +/* DMA controller */ +#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) +#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) +#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) +#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) +#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) +#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) +#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) +#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) +#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) +#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) +#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) +#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) +#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) +#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) +#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) +#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) +#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) +#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) +#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) +#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) +#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) +#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) +#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) +#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) +#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) +#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) +#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) +#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) +#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) +#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) +#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) +#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) +#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) +#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) +#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) +#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) +#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) +#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) +#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) +#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) +#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) +#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) +#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) +#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) +#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) +#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) +#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) +#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) +#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) +#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) +#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) +#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) +#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) +#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) +#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) +#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) +#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) +#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) +#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) +#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) +#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) +#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) +#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) +#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) +#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) +#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) +#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) +#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) +#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) +#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) +#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) +#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) +#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) +#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) +#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) +#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) +#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) +#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) +#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) +#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) +#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) +#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) +#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) +#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) +#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) +#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) +#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) +#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) +#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) +#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) +#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) +#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) +#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) +#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) +#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) +#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) +#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) +#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) +#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) +#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) +#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) +#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) +#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) +#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) +#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) +#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) +#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) +#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) +#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) +#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) +#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) +#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) +#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) +#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) +#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) +#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) +#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) +#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) +#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) +#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) +#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) +#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) +#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) +#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) +#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) +#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) +#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) +#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) +#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) +#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) +#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) +#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) +#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) +#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) +#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) +#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) +#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) +#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) +#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) +#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) +#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) +#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) +#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) +#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) +#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) +#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) +#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) +#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) +#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) +#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) +#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) +#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) +#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) +#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) +#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) +#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) +#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) +#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) +#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) +#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) +#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) +#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) +#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) +#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) +#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) +#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) +#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) +#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) +#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) +#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) +#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) +#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) +#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) +#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) +#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) +#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) +#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) +#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) +#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) +#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) +#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) +#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) +#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) +#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) +#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) +#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) +#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) +#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) +#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) +#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) +#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) +#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) +#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) +#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) +#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) +#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) +#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) +#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) +#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) +#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) +#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) +#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) +#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) +#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) +#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) +#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) +#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) +#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) +#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) +#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) +#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) +#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) +#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) +#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) +#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) +#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) +#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) +#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) +#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) +#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) +#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) +#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) +#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) +#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) +#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) +#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) +#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) +#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) +#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) +#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) +#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) +#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) +#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) +#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) +#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) +#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) +#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) +#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) +#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) +#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) +#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) +#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) +#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) +#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) +#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) +#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) +#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) +#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) +#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) +#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) +#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) +#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) +#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) +#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) +#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) +#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) +#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) +#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) +#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) +#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) +#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) +#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) +#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) +#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) +#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) +#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) +#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) +#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) +#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) +#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) +#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) +#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) +#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) +#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) +#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) +#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) +#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) +#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) +#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) +#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) +#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) +#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) +#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) +#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) +#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) +#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) +#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) +#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) +#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) +#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) +#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) +#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) +#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) +#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) +#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) +#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) +#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) +#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) +#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) +#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) +#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) +#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) +#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) +#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) +#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) +#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) +#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) +#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) +#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) +#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) +#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) +#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) +#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) +#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) +#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) +#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) +#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) +#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) +#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) +#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) +#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) +#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) +#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) +#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) +#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) +#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) +#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) +#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) +#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) +#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) +#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) +#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) +#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) +#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) +#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) +#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) +#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) +#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) +#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) +#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) +#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) +#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) +#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) +#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) +#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) +#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) +#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) +#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) +#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) +#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) +#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) +#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) +#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) +#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) +#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) +#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) +#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) +#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) +#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) + +/* CAN channel 0 registers */ +#define bFM3_CAN0_CTRLR_INIT *((volatile unsigned int*)(0x42C40000UL)) +#define bFM3_CAN0_CTRLR_IE *((volatile unsigned int*)(0x42C40004UL)) +#define bFM3_CAN0_CTRLR_SIE *((volatile unsigned int*)(0x42C40008UL)) +#define bFM3_CAN0_CTRLR_EIE *((volatile unsigned int*)(0x42C4000CUL)) +#define bFM3_CAN0_CTRLR_DAR *((volatile unsigned int*)(0x42C40014UL)) +#define bFM3_CAN0_CTRLR_CCE *((volatile unsigned int*)(0x42C40018UL)) +#define bFM3_CAN0_CTRLR_TEST *((volatile unsigned int*)(0x42C4001CUL)) +#define bFM3_CAN0_STATR_LEC0 *((volatile unsigned int*)(0x42C40040UL)) +#define bFM3_CAN0_STATR_LEC1 *((volatile unsigned int*)(0x42C40044UL)) +#define bFM3_CAN0_STATR_LEC2 *((volatile unsigned int*)(0x42C40048UL)) +#define bFM3_CAN0_STATR_TXOK *((volatile unsigned int*)(0x42C4004CUL)) +#define bFM3_CAN0_STATR_RXOK *((volatile unsigned int*)(0x42C40050UL)) +#define bFM3_CAN0_STATR_EPASS *((volatile unsigned int*)(0x42C40054UL)) +#define bFM3_CAN0_STATR_EWARM *((volatile unsigned int*)(0x42C40058UL)) +#define bFM3_CAN0_STATR_BOFF *((volatile unsigned int*)(0x42C4005CUL)) +#define bFM3_CAN0_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C40080UL)) +#define bFM3_CAN0_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C40084UL)) +#define bFM3_CAN0_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C40088UL)) +#define bFM3_CAN0_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C4008CUL)) +#define bFM3_CAN0_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C40090UL)) +#define bFM3_CAN0_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C40094UL)) +#define bFM3_CAN0_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C40098UL)) +#define bFM3_CAN0_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C4009CUL)) +#define bFM3_CAN0_ERRCNT_REC0 *((volatile unsigned int*)(0x42C400A0UL)) +#define bFM3_CAN0_ERRCNT_REC1 *((volatile unsigned int*)(0x42C400A4UL)) +#define bFM3_CAN0_ERRCNT_REC2 *((volatile unsigned int*)(0x42C400A8UL)) +#define bFM3_CAN0_ERRCNT_REC3 *((volatile unsigned int*)(0x42C400ACUL)) +#define bFM3_CAN0_ERRCNT_REC4 *((volatile unsigned int*)(0x42C400B0UL)) +#define bFM3_CAN0_ERRCNT_REC5 *((volatile unsigned int*)(0x42C400B4UL)) +#define bFM3_CAN0_ERRCNT_REC6 *((volatile unsigned int*)(0x42C400B8UL)) +#define bFM3_CAN0_ERRCNT_RP *((volatile unsigned int*)(0x42C400BCUL)) +#define bFM3_CAN0_BTR_BRP0 *((volatile unsigned int*)(0x42C400C0UL)) +#define bFM3_CAN0_BTR_BRP1 *((volatile unsigned int*)(0x42C400C4UL)) +#define bFM3_CAN0_BTR_BRP2 *((volatile unsigned int*)(0x42C400C8UL)) +#define bFM3_CAN0_BTR_BRP3 *((volatile unsigned int*)(0x42C400CCUL)) +#define bFM3_CAN0_BTR_BRP4 *((volatile unsigned int*)(0x42C400D0UL)) +#define bFM3_CAN0_BTR_BRP5 *((volatile unsigned int*)(0x42C400D4UL)) +#define bFM3_CAN0_BTR_SJW0 *((volatile unsigned int*)(0x42C400D8UL)) +#define bFM3_CAN0_BTR_SJW1 *((volatile unsigned int*)(0x42C400DCUL)) +#define bFM3_CAN0_BTR_TSEG10 *((volatile unsigned int*)(0x42C400E0UL)) +#define bFM3_CAN0_BTR_TSEG11 *((volatile unsigned int*)(0x42C400E4UL)) +#define bFM3_CAN0_BTR_TSEG12 *((volatile unsigned int*)(0x42C400E8UL)) +#define bFM3_CAN0_BTR_TSEG13 *((volatile unsigned int*)(0x42C400ECUL)) +#define bFM3_CAN0_BTR_TSEG20 *((volatile unsigned int*)(0x42C400F0UL)) +#define bFM3_CAN0_BTR_TSEG21 *((volatile unsigned int*)(0x42C400F4UL)) +#define bFM3_CAN0_BTR_TSEG22 *((volatile unsigned int*)(0x42C400F8UL)) +#define bFM3_CAN0_INTR_INTID0 *((volatile unsigned int*)(0x42C40100UL)) +#define bFM3_CAN0_INTR_INTID1 *((volatile unsigned int*)(0x42C40104UL)) +#define bFM3_CAN0_INTR_INTID2 *((volatile unsigned int*)(0x42C40108UL)) +#define bFM3_CAN0_INTR_INTID3 *((volatile unsigned int*)(0x42C4010CUL)) +#define bFM3_CAN0_INTR_INTID4 *((volatile unsigned int*)(0x42C40110UL)) +#define bFM3_CAN0_INTR_INTID5 *((volatile unsigned int*)(0x42C40114UL)) +#define bFM3_CAN0_INTR_INTID6 *((volatile unsigned int*)(0x42C40118UL)) +#define bFM3_CAN0_INTR_INTID7 *((volatile unsigned int*)(0x42C4011CUL)) +#define bFM3_CAN0_INTR_INTID8 *((volatile unsigned int*)(0x42C40120UL)) +#define bFM3_CAN0_INTR_INTID9 *((volatile unsigned int*)(0x42C40124UL)) +#define bFM3_CAN0_INTR_INTID10 *((volatile unsigned int*)(0x42C40128UL)) +#define bFM3_CAN0_INTR_INTID11 *((volatile unsigned int*)(0x42C4012CUL)) +#define bFM3_CAN0_INTR_INTID12 *((volatile unsigned int*)(0x42C40130UL)) +#define bFM3_CAN0_INTR_INTID13 *((volatile unsigned int*)(0x42C40134UL)) +#define bFM3_CAN0_INTR_INTID14 *((volatile unsigned int*)(0x42C40138UL)) +#define bFM3_CAN0_INTR_INTID15 *((volatile unsigned int*)(0x42C4013CUL)) +#define bFM3_CAN0_TESTR_BASIC *((volatile unsigned int*)(0x42C40148UL)) +#define bFM3_CAN0_TESTR_SILENT *((volatile unsigned int*)(0x42C4014CUL)) +#define bFM3_CAN0_TESTR_LBACK *((volatile unsigned int*)(0x42C40150UL)) +#define bFM3_CAN0_TESTR_TX0 *((volatile unsigned int*)(0x42C40154UL)) +#define bFM3_CAN0_TESTR_TX1 *((volatile unsigned int*)(0x42C40158UL)) +#define bFM3_CAN0_TESTR_RX *((volatile unsigned int*)(0x42C4015CUL)) +#define bFM3_CAN0_BRPER_BRPE0 *((volatile unsigned int*)(0x42C40180UL)) +#define bFM3_CAN0_BRPER_BRPE1 *((volatile unsigned int*)(0x42C40184UL)) +#define bFM3_CAN0_BRPER_BRPE2 *((volatile unsigned int*)(0x42C40188UL)) +#define bFM3_CAN0_BRPER_BRPE3 *((volatile unsigned int*)(0x42C4018CUL)) +#define bFM3_CAN0_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C4023CUL)) +#define bFM3_CAN0_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C40240UL)) +#define bFM3_CAN0_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C40244UL)) +#define bFM3_CAN0_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C40248UL)) +#define bFM3_CAN0_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C40248UL)) +#define bFM3_CAN0_IF1CMSK_CIP *((volatile unsigned int*)(0x42C4024CUL)) +#define bFM3_CAN0_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C40250UL)) +#define bFM3_CAN0_IF1CMSK_ARB *((volatile unsigned int*)(0x42C40254UL)) +#define bFM3_CAN0_IF1CMSK_MASK *((volatile unsigned int*)(0x42C40258UL)) +#define bFM3_CAN0_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C4025CUL)) +#define bFM3_CAN0_IF1MSK_MDIR *((volatile unsigned int*)(0x42C402F8UL)) +#define bFM3_CAN0_IF1MSK_MXTD *((volatile unsigned int*)(0x42C402FCUL)) +#define bFM3_CAN0_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C402F8UL)) +#define bFM3_CAN0_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C402FCUL)) +#define bFM3_CAN0_IF1ARB_DIR *((volatile unsigned int*)(0x42C40374UL)) +#define bFM3_CAN0_IF1ARB_XTD *((volatile unsigned int*)(0x42C40378UL)) +#define bFM3_CAN0_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) +#define bFM3_CAN0_IF1ARB2_DIR *((volatile unsigned int*)(0x42C40374UL)) +#define bFM3_CAN0_IF1ARB2_XTD *((volatile unsigned int*)(0x42C40378UL)) +#define bFM3_CAN0_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) +#define bFM3_CAN0_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C40380UL)) +#define bFM3_CAN0_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C40384UL)) +#define bFM3_CAN0_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C40388UL)) +#define bFM3_CAN0_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C4038CUL)) +#define bFM3_CAN0_IF1MCTR_EOB *((volatile unsigned int*)(0x42C4039CUL)) +#define bFM3_CAN0_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C403A0UL)) +#define bFM3_CAN0_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C403A4UL)) +#define bFM3_CAN0_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C403A8UL)) +#define bFM3_CAN0_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C403ACUL)) +#define bFM3_CAN0_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C403B0UL)) +#define bFM3_CAN0_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C403B4UL)) +#define bFM3_CAN0_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C403B8UL)) +#define bFM3_CAN0_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C403BCUL)) +#define bFM3_CAN0_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C4083CUL)) +#define bFM3_CAN0_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C40840UL)) +#define bFM3_CAN0_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C40844UL)) +#define bFM3_CAN0_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C40848UL)) +#define bFM3_CAN0_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C40848UL)) +#define bFM3_CAN0_IF2CMSK_CIP *((volatile unsigned int*)(0x42C4084CUL)) +#define bFM3_CAN0_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C40850UL)) +#define bFM3_CAN0_IF2CMSK_ARB *((volatile unsigned int*)(0x42C40854UL)) +#define bFM3_CAN0_IF2CMSK_MASK *((volatile unsigned int*)(0x42C40858UL)) +#define bFM3_CAN0_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C4085CUL)) +#define bFM3_CAN0_IF2MSK_MDIR *((volatile unsigned int*)(0x42C408F8UL)) +#define bFM3_CAN0_IF2MSK_MXTD *((volatile unsigned int*)(0x42C408FCUL)) +#define bFM3_CAN0_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C408F8UL)) +#define bFM3_CAN0_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C408FCUL)) +#define bFM3_CAN0_IF2ARB_DIR *((volatile unsigned int*)(0x42C40974UL)) +#define bFM3_CAN0_IF2ARB_XTD *((volatile unsigned int*)(0x42C40978UL)) +#define bFM3_CAN0_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) +#define bFM3_CAN0_IF2ARB2_DIR *((volatile unsigned int*)(0x42C40974UL)) +#define bFM3_CAN0_IF2ARB2_XTD *((volatile unsigned int*)(0x42C40978UL)) +#define bFM3_CAN0_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) +#define bFM3_CAN0_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C40980UL)) +#define bFM3_CAN0_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C40984UL)) +#define bFM3_CAN0_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C40988UL)) +#define bFM3_CAN0_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C4098CUL)) +#define bFM3_CAN0_IF2MCTR_EOB *((volatile unsigned int*)(0x42C4099CUL)) +#define bFM3_CAN0_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C409A0UL)) +#define bFM3_CAN0_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C409A4UL)) +#define bFM3_CAN0_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C409A8UL)) +#define bFM3_CAN0_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C409ACUL)) +#define bFM3_CAN0_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C409B0UL)) +#define bFM3_CAN0_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C409B4UL)) +#define bFM3_CAN0_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C409B8UL)) +#define bFM3_CAN0_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C409BCUL)) +#define bFM3_CAN0_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) +#define bFM3_CAN0_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) +#define bFM3_CAN0_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) +#define bFM3_CAN0_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) +#define bFM3_CAN0_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) +#define bFM3_CAN0_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) +#define bFM3_CAN0_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) +#define bFM3_CAN0_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) +#define bFM3_CAN0_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) +#define bFM3_CAN0_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) +#define bFM3_CAN0_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) +#define bFM3_CAN0_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) +#define bFM3_CAN0_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) +#define bFM3_CAN0_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) +#define bFM3_CAN0_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) +#define bFM3_CAN0_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) +#define bFM3_CAN0_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) +#define bFM3_CAN0_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) +#define bFM3_CAN0_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) +#define bFM3_CAN0_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) +#define bFM3_CAN0_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) +#define bFM3_CAN0_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) +#define bFM3_CAN0_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) +#define bFM3_CAN0_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) +#define bFM3_CAN0_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) +#define bFM3_CAN0_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) +#define bFM3_CAN0_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) +#define bFM3_CAN0_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) +#define bFM3_CAN0_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) +#define bFM3_CAN0_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) +#define bFM3_CAN0_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) +#define bFM3_CAN0_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) +#define bFM3_CAN0_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) +#define bFM3_CAN0_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) +#define bFM3_CAN0_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) +#define bFM3_CAN0_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) +#define bFM3_CAN0_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) +#define bFM3_CAN0_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) +#define bFM3_CAN0_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) +#define bFM3_CAN0_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) +#define bFM3_CAN0_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) +#define bFM3_CAN0_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) +#define bFM3_CAN0_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) +#define bFM3_CAN0_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) +#define bFM3_CAN0_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) +#define bFM3_CAN0_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) +#define bFM3_CAN0_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) +#define bFM3_CAN0_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) +#define bFM3_CAN0_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) +#define bFM3_CAN0_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) +#define bFM3_CAN0_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) +#define bFM3_CAN0_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) +#define bFM3_CAN0_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) +#define bFM3_CAN0_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) +#define bFM3_CAN0_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) +#define bFM3_CAN0_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) +#define bFM3_CAN0_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) +#define bFM3_CAN0_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) +#define bFM3_CAN0_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) +#define bFM3_CAN0_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) +#define bFM3_CAN0_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) +#define bFM3_CAN0_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) +#define bFM3_CAN0_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) +#define bFM3_CAN0_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) +#define bFM3_CAN0_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) +#define bFM3_CAN0_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) +#define bFM3_CAN0_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) +#define bFM3_CAN0_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) +#define bFM3_CAN0_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) +#define bFM3_CAN0_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) +#define bFM3_CAN0_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) +#define bFM3_CAN0_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) +#define bFM3_CAN0_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) +#define bFM3_CAN0_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) +#define bFM3_CAN0_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) +#define bFM3_CAN0_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) +#define bFM3_CAN0_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) +#define bFM3_CAN0_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) +#define bFM3_CAN0_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) +#define bFM3_CAN0_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) +#define bFM3_CAN0_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) +#define bFM3_CAN0_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) +#define bFM3_CAN0_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) +#define bFM3_CAN0_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) +#define bFM3_CAN0_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) +#define bFM3_CAN0_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) +#define bFM3_CAN0_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) +#define bFM3_CAN0_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) +#define bFM3_CAN0_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) +#define bFM3_CAN0_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) +#define bFM3_CAN0_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) +#define bFM3_CAN0_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) +#define bFM3_CAN0_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) +#define bFM3_CAN0_INTPND_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) +#define bFM3_CAN0_INTPND_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) +#define bFM3_CAN0_INTPND_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) +#define bFM3_CAN0_INTPND_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) +#define bFM3_CAN0_INTPND_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) +#define bFM3_CAN0_INTPND_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) +#define bFM3_CAN0_INTPND_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) +#define bFM3_CAN0_INTPND_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) +#define bFM3_CAN0_INTPND_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) +#define bFM3_CAN0_INTPND_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) +#define bFM3_CAN0_INTPND_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) +#define bFM3_CAN0_INTPND_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) +#define bFM3_CAN0_INTPND_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) +#define bFM3_CAN0_INTPND_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) +#define bFM3_CAN0_INTPND_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) +#define bFM3_CAN0_INTPND_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) +#define bFM3_CAN0_INTPND_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) +#define bFM3_CAN0_INTPND_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) +#define bFM3_CAN0_INTPND_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) +#define bFM3_CAN0_INTPND_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) +#define bFM3_CAN0_INTPND_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) +#define bFM3_CAN0_INTPND_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) +#define bFM3_CAN0_INTPND_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) +#define bFM3_CAN0_INTPND_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) +#define bFM3_CAN0_INTPND_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) +#define bFM3_CAN0_INTPND_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) +#define bFM3_CAN0_INTPND_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) +#define bFM3_CAN0_INTPND_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) +#define bFM3_CAN0_INTPND_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) +#define bFM3_CAN0_INTPND_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) +#define bFM3_CAN0_INTPND_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) +#define bFM3_CAN0_INTPND_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) +#define bFM3_CAN0_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) +#define bFM3_CAN0_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) +#define bFM3_CAN0_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) +#define bFM3_CAN0_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) +#define bFM3_CAN0_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) +#define bFM3_CAN0_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) +#define bFM3_CAN0_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) +#define bFM3_CAN0_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) +#define bFM3_CAN0_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) +#define bFM3_CAN0_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) +#define bFM3_CAN0_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) +#define bFM3_CAN0_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) +#define bFM3_CAN0_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) +#define bFM3_CAN0_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) +#define bFM3_CAN0_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) +#define bFM3_CAN0_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) +#define bFM3_CAN0_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) +#define bFM3_CAN0_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) +#define bFM3_CAN0_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) +#define bFM3_CAN0_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) +#define bFM3_CAN0_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) +#define bFM3_CAN0_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) +#define bFM3_CAN0_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) +#define bFM3_CAN0_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) +#define bFM3_CAN0_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) +#define bFM3_CAN0_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) +#define bFM3_CAN0_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) +#define bFM3_CAN0_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) +#define bFM3_CAN0_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) +#define bFM3_CAN0_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) +#define bFM3_CAN0_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) +#define bFM3_CAN0_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) +#define bFM3_CAN0_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) +#define bFM3_CAN0_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) +#define bFM3_CAN0_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) +#define bFM3_CAN0_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) + +/* CAN channel 1 registers */ +#define bFM3_CAN1_CTRLR_INIT *((volatile unsigned int*)(0x42C60000UL)) +#define bFM3_CAN1_CTRLR_IE *((volatile unsigned int*)(0x42C60004UL)) +#define bFM3_CAN1_CTRLR_SIE *((volatile unsigned int*)(0x42C60008UL)) +#define bFM3_CAN1_CTRLR_EIE *((volatile unsigned int*)(0x42C6000CUL)) +#define bFM3_CAN1_CTRLR_DAR *((volatile unsigned int*)(0x42C60014UL)) +#define bFM3_CAN1_CTRLR_CCE *((volatile unsigned int*)(0x42C60018UL)) +#define bFM3_CAN1_CTRLR_TEST *((volatile unsigned int*)(0x42C6001CUL)) +#define bFM3_CAN1_STATR_LEC0 *((volatile unsigned int*)(0x42C60040UL)) +#define bFM3_CAN1_STATR_LEC1 *((volatile unsigned int*)(0x42C60044UL)) +#define bFM3_CAN1_STATR_LEC2 *((volatile unsigned int*)(0x42C60048UL)) +#define bFM3_CAN1_STATR_TXOK *((volatile unsigned int*)(0x42C6004CUL)) +#define bFM3_CAN1_STATR_RXOK *((volatile unsigned int*)(0x42C60050UL)) +#define bFM3_CAN1_STATR_EPASS *((volatile unsigned int*)(0x42C60054UL)) +#define bFM3_CAN1_STATR_EWARM *((volatile unsigned int*)(0x42C60058UL)) +#define bFM3_CAN1_STATR_BOFF *((volatile unsigned int*)(0x42C6005CUL)) +#define bFM3_CAN1_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C60080UL)) +#define bFM3_CAN1_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C60084UL)) +#define bFM3_CAN1_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C60088UL)) +#define bFM3_CAN1_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C6008CUL)) +#define bFM3_CAN1_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C60090UL)) +#define bFM3_CAN1_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C60094UL)) +#define bFM3_CAN1_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C60098UL)) +#define bFM3_CAN1_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C6009CUL)) +#define bFM3_CAN1_ERRCNT_REC0 *((volatile unsigned int*)(0x42C600A0UL)) +#define bFM3_CAN1_ERRCNT_REC1 *((volatile unsigned int*)(0x42C600A4UL)) +#define bFM3_CAN1_ERRCNT_REC2 *((volatile unsigned int*)(0x42C600A8UL)) +#define bFM3_CAN1_ERRCNT_REC3 *((volatile unsigned int*)(0x42C600ACUL)) +#define bFM3_CAN1_ERRCNT_REC4 *((volatile unsigned int*)(0x42C600B0UL)) +#define bFM3_CAN1_ERRCNT_REC5 *((volatile unsigned int*)(0x42C600B4UL)) +#define bFM3_CAN1_ERRCNT_REC6 *((volatile unsigned int*)(0x42C600B8UL)) +#define bFM3_CAN1_ERRCNT_RP *((volatile unsigned int*)(0x42C600BCUL)) +#define bFM3_CAN1_BTR_BRP0 *((volatile unsigned int*)(0x42C600C0UL)) +#define bFM3_CAN1_BTR_BRP1 *((volatile unsigned int*)(0x42C600C4UL)) +#define bFM3_CAN1_BTR_BRP2 *((volatile unsigned int*)(0x42C600C8UL)) +#define bFM3_CAN1_BTR_BRP3 *((volatile unsigned int*)(0x42C600CCUL)) +#define bFM3_CAN1_BTR_BRP4 *((volatile unsigned int*)(0x42C600D0UL)) +#define bFM3_CAN1_BTR_BRP5 *((volatile unsigned int*)(0x42C600D4UL)) +#define bFM3_CAN1_BTR_SJW0 *((volatile unsigned int*)(0x42C600D8UL)) +#define bFM3_CAN1_BTR_SJW1 *((volatile unsigned int*)(0x42C600DCUL)) +#define bFM3_CAN1_BTR_TSEG10 *((volatile unsigned int*)(0x42C600E0UL)) +#define bFM3_CAN1_BTR_TSEG11 *((volatile unsigned int*)(0x42C600E4UL)) +#define bFM3_CAN1_BTR_TSEG12 *((volatile unsigned int*)(0x42C600E8UL)) +#define bFM3_CAN1_BTR_TSEG13 *((volatile unsigned int*)(0x42C600ECUL)) +#define bFM3_CAN1_BTR_TSEG20 *((volatile unsigned int*)(0x42C600F0UL)) +#define bFM3_CAN1_BTR_TSEG21 *((volatile unsigned int*)(0x42C600F4UL)) +#define bFM3_CAN1_BTR_TSEG22 *((volatile unsigned int*)(0x42C600F8UL)) +#define bFM3_CAN1_INTR_INTID0 *((volatile unsigned int*)(0x42C60100UL)) +#define bFM3_CAN1_INTR_INTID1 *((volatile unsigned int*)(0x42C60104UL)) +#define bFM3_CAN1_INTR_INTID2 *((volatile unsigned int*)(0x42C60108UL)) +#define bFM3_CAN1_INTR_INTID3 *((volatile unsigned int*)(0x42C6010CUL)) +#define bFM3_CAN1_INTR_INTID4 *((volatile unsigned int*)(0x42C60110UL)) +#define bFM3_CAN1_INTR_INTID5 *((volatile unsigned int*)(0x42C60114UL)) +#define bFM3_CAN1_INTR_INTID6 *((volatile unsigned int*)(0x42C60118UL)) +#define bFM3_CAN1_INTR_INTID7 *((volatile unsigned int*)(0x42C6011CUL)) +#define bFM3_CAN1_INTR_INTID8 *((volatile unsigned int*)(0x42C60120UL)) +#define bFM3_CAN1_INTR_INTID9 *((volatile unsigned int*)(0x42C60124UL)) +#define bFM3_CAN1_INTR_INTID10 *((volatile unsigned int*)(0x42C60128UL)) +#define bFM3_CAN1_INTR_INTID11 *((volatile unsigned int*)(0x42C6012CUL)) +#define bFM3_CAN1_INTR_INTID12 *((volatile unsigned int*)(0x42C60130UL)) +#define bFM3_CAN1_INTR_INTID13 *((volatile unsigned int*)(0x42C60134UL)) +#define bFM3_CAN1_INTR_INTID14 *((volatile unsigned int*)(0x42C60138UL)) +#define bFM3_CAN1_INTR_INTID15 *((volatile unsigned int*)(0x42C6013CUL)) +#define bFM3_CAN1_TESTR_BASIC *((volatile unsigned int*)(0x42C60148UL)) +#define bFM3_CAN1_TESTR_SILENT *((volatile unsigned int*)(0x42C6014CUL)) +#define bFM3_CAN1_TESTR_LBACK *((volatile unsigned int*)(0x42C60150UL)) +#define bFM3_CAN1_TESTR_TX0 *((volatile unsigned int*)(0x42C60154UL)) +#define bFM3_CAN1_TESTR_TX1 *((volatile unsigned int*)(0x42C60158UL)) +#define bFM3_CAN1_TESTR_RX *((volatile unsigned int*)(0x42C6015CUL)) +#define bFM3_CAN1_BRPER_BRPE0 *((volatile unsigned int*)(0x42C60180UL)) +#define bFM3_CAN1_BRPER_BRPE1 *((volatile unsigned int*)(0x42C60184UL)) +#define bFM3_CAN1_BRPER_BRPE2 *((volatile unsigned int*)(0x42C60188UL)) +#define bFM3_CAN1_BRPER_BRPE3 *((volatile unsigned int*)(0x42C6018CUL)) +#define bFM3_CAN1_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C6023CUL)) +#define bFM3_CAN1_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C60240UL)) +#define bFM3_CAN1_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C60244UL)) +#define bFM3_CAN1_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C60248UL)) +#define bFM3_CAN1_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C60248UL)) +#define bFM3_CAN1_IF1CMSK_CIP *((volatile unsigned int*)(0x42C6024CUL)) +#define bFM3_CAN1_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C60250UL)) +#define bFM3_CAN1_IF1CMSK_ARB *((volatile unsigned int*)(0x42C60254UL)) +#define bFM3_CAN1_IF1CMSK_MASK *((volatile unsigned int*)(0x42C60258UL)) +#define bFM3_CAN1_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C6025CUL)) +#define bFM3_CAN1_IF1MSK_MDIR *((volatile unsigned int*)(0x42C602F8UL)) +#define bFM3_CAN1_IF1MSK_MXTD *((volatile unsigned int*)(0x42C602FCUL)) +#define bFM3_CAN1_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C602F8UL)) +#define bFM3_CAN1_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C602FCUL)) +#define bFM3_CAN1_IF1ARB_DIR *((volatile unsigned int*)(0x42C60374UL)) +#define bFM3_CAN1_IF1ARB_XTD *((volatile unsigned int*)(0x42C60378UL)) +#define bFM3_CAN1_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) +#define bFM3_CAN1_IF1ARB2_DIR *((volatile unsigned int*)(0x42C60374UL)) +#define bFM3_CAN1_IF1ARB2_XTD *((volatile unsigned int*)(0x42C60378UL)) +#define bFM3_CAN1_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) +#define bFM3_CAN1_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C60380UL)) +#define bFM3_CAN1_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C60384UL)) +#define bFM3_CAN1_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C60388UL)) +#define bFM3_CAN1_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C6038CUL)) +#define bFM3_CAN1_IF1MCTR_EOB *((volatile unsigned int*)(0x42C6039CUL)) +#define bFM3_CAN1_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C603A0UL)) +#define bFM3_CAN1_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C603A4UL)) +#define bFM3_CAN1_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C603A8UL)) +#define bFM3_CAN1_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C603ACUL)) +#define bFM3_CAN1_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C603B0UL)) +#define bFM3_CAN1_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C603B4UL)) +#define bFM3_CAN1_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C603B8UL)) +#define bFM3_CAN1_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C603BCUL)) +#define bFM3_CAN1_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C6083CUL)) +#define bFM3_CAN1_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C60840UL)) +#define bFM3_CAN1_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C60844UL)) +#define bFM3_CAN1_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C60848UL)) +#define bFM3_CAN1_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C60848UL)) +#define bFM3_CAN1_IF2CMSK_CIP *((volatile unsigned int*)(0x42C6084CUL)) +#define bFM3_CAN1_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C60850UL)) +#define bFM3_CAN1_IF2CMSK_ARB *((volatile unsigned int*)(0x42C60854UL)) +#define bFM3_CAN1_IF2CMSK_MASK *((volatile unsigned int*)(0x42C60858UL)) +#define bFM3_CAN1_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C6085CUL)) +#define bFM3_CAN1_IF2MSK_MDIR *((volatile unsigned int*)(0x42C608F8UL)) +#define bFM3_CAN1_IF2MSK_MXTD *((volatile unsigned int*)(0x42C608FCUL)) +#define bFM3_CAN1_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C608F8UL)) +#define bFM3_CAN1_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C608FCUL)) +#define bFM3_CAN1_IF2ARB_DIR *((volatile unsigned int*)(0x42C60974UL)) +#define bFM3_CAN1_IF2ARB_XTD *((volatile unsigned int*)(0x42C60978UL)) +#define bFM3_CAN1_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) +#define bFM3_CAN1_IF2ARB2_DIR *((volatile unsigned int*)(0x42C60974UL)) +#define bFM3_CAN1_IF2ARB2_XTD *((volatile unsigned int*)(0x42C60978UL)) +#define bFM3_CAN1_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) +#define bFM3_CAN1_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C60980UL)) +#define bFM3_CAN1_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C60984UL)) +#define bFM3_CAN1_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C60988UL)) +#define bFM3_CAN1_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C6098CUL)) +#define bFM3_CAN1_IF2MCTR_EOB *((volatile unsigned int*)(0x42C6099CUL)) +#define bFM3_CAN1_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C609A0UL)) +#define bFM3_CAN1_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C609A4UL)) +#define bFM3_CAN1_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C609A8UL)) +#define bFM3_CAN1_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C609ACUL)) +#define bFM3_CAN1_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C609B0UL)) +#define bFM3_CAN1_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C609B4UL)) +#define bFM3_CAN1_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C609B8UL)) +#define bFM3_CAN1_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C609BCUL)) +#define bFM3_CAN1_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) +#define bFM3_CAN1_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) +#define bFM3_CAN1_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) +#define bFM3_CAN1_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) +#define bFM3_CAN1_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) +#define bFM3_CAN1_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) +#define bFM3_CAN1_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) +#define bFM3_CAN1_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) +#define bFM3_CAN1_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) +#define bFM3_CAN1_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) +#define bFM3_CAN1_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) +#define bFM3_CAN1_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) +#define bFM3_CAN1_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) +#define bFM3_CAN1_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) +#define bFM3_CAN1_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) +#define bFM3_CAN1_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) +#define bFM3_CAN1_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) +#define bFM3_CAN1_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) +#define bFM3_CAN1_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) +#define bFM3_CAN1_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) +#define bFM3_CAN1_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) +#define bFM3_CAN1_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) +#define bFM3_CAN1_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) +#define bFM3_CAN1_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) +#define bFM3_CAN1_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) +#define bFM3_CAN1_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) +#define bFM3_CAN1_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) +#define bFM3_CAN1_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) +#define bFM3_CAN1_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) +#define bFM3_CAN1_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) +#define bFM3_CAN1_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) +#define bFM3_CAN1_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) +#define bFM3_CAN1_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) +#define bFM3_CAN1_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) +#define bFM3_CAN1_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) +#define bFM3_CAN1_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) +#define bFM3_CAN1_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) +#define bFM3_CAN1_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) +#define bFM3_CAN1_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) +#define bFM3_CAN1_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) +#define bFM3_CAN1_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) +#define bFM3_CAN1_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) +#define bFM3_CAN1_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) +#define bFM3_CAN1_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) +#define bFM3_CAN1_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) +#define bFM3_CAN1_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) +#define bFM3_CAN1_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) +#define bFM3_CAN1_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) +#define bFM3_CAN1_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) +#define bFM3_CAN1_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) +#define bFM3_CAN1_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) +#define bFM3_CAN1_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) +#define bFM3_CAN1_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) +#define bFM3_CAN1_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) +#define bFM3_CAN1_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) +#define bFM3_CAN1_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) +#define bFM3_CAN1_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) +#define bFM3_CAN1_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) +#define bFM3_CAN1_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) +#define bFM3_CAN1_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) +#define bFM3_CAN1_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) +#define bFM3_CAN1_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) +#define bFM3_CAN1_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) +#define bFM3_CAN1_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) +#define bFM3_CAN1_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) +#define bFM3_CAN1_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) +#define bFM3_CAN1_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) +#define bFM3_CAN1_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) +#define bFM3_CAN1_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) +#define bFM3_CAN1_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) +#define bFM3_CAN1_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) +#define bFM3_CAN1_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) +#define bFM3_CAN1_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) +#define bFM3_CAN1_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) +#define bFM3_CAN1_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) +#define bFM3_CAN1_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) +#define bFM3_CAN1_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) +#define bFM3_CAN1_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) +#define bFM3_CAN1_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) +#define bFM3_CAN1_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) +#define bFM3_CAN1_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) +#define bFM3_CAN1_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) +#define bFM3_CAN1_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) +#define bFM3_CAN1_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) +#define bFM3_CAN1_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) +#define bFM3_CAN1_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) +#define bFM3_CAN1_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) +#define bFM3_CAN1_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) +#define bFM3_CAN1_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) +#define bFM3_CAN1_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) +#define bFM3_CAN1_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) +#define bFM3_CAN1_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) +#define bFM3_CAN1_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) +#define bFM3_CAN1_INTPND_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) +#define bFM3_CAN1_INTPND_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) +#define bFM3_CAN1_INTPND_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) +#define bFM3_CAN1_INTPND_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) +#define bFM3_CAN1_INTPND_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) +#define bFM3_CAN1_INTPND_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) +#define bFM3_CAN1_INTPND_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) +#define bFM3_CAN1_INTPND_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) +#define bFM3_CAN1_INTPND_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) +#define bFM3_CAN1_INTPND_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) +#define bFM3_CAN1_INTPND_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) +#define bFM3_CAN1_INTPND_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) +#define bFM3_CAN1_INTPND_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) +#define bFM3_CAN1_INTPND_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) +#define bFM3_CAN1_INTPND_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) +#define bFM3_CAN1_INTPND_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) +#define bFM3_CAN1_INTPND_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) +#define bFM3_CAN1_INTPND_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) +#define bFM3_CAN1_INTPND_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) +#define bFM3_CAN1_INTPND_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) +#define bFM3_CAN1_INTPND_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) +#define bFM3_CAN1_INTPND_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) +#define bFM3_CAN1_INTPND_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) +#define bFM3_CAN1_INTPND_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) +#define bFM3_CAN1_INTPND_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) +#define bFM3_CAN1_INTPND_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) +#define bFM3_CAN1_INTPND_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) +#define bFM3_CAN1_INTPND_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) +#define bFM3_CAN1_INTPND_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) +#define bFM3_CAN1_INTPND_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) +#define bFM3_CAN1_INTPND_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) +#define bFM3_CAN1_INTPND_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) +#define bFM3_CAN1_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) +#define bFM3_CAN1_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) +#define bFM3_CAN1_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) +#define bFM3_CAN1_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) +#define bFM3_CAN1_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) +#define bFM3_CAN1_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) +#define bFM3_CAN1_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) +#define bFM3_CAN1_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) +#define bFM3_CAN1_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) +#define bFM3_CAN1_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) +#define bFM3_CAN1_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) +#define bFM3_CAN1_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) +#define bFM3_CAN1_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) +#define bFM3_CAN1_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) +#define bFM3_CAN1_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) +#define bFM3_CAN1_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) +#define bFM3_CAN1_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) +#define bFM3_CAN1_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) +#define bFM3_CAN1_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) +#define bFM3_CAN1_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) +#define bFM3_CAN1_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) +#define bFM3_CAN1_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) +#define bFM3_CAN1_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) +#define bFM3_CAN1_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) +#define bFM3_CAN1_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) +#define bFM3_CAN1_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) +#define bFM3_CAN1_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) +#define bFM3_CAN1_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) +#define bFM3_CAN1_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) +#define bFM3_CAN1_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) +#define bFM3_CAN1_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) +#define bFM3_CAN1_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) +#define bFM3_CAN1_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) +#define bFM3_CAN1_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) +#define bFM3_CAN1_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) +#define bFM3_CAN1_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) + +#ifdef __cplusplus +} +#endif + +#endif /* _MB9BF506R_H_ */ + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h new file mode 100644 index 0000000000..4e5eff2db3 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h @@ -0,0 +1,62 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/** + ****************************************************************************** + ** \file mcu.h + ** + ** Header File for device dependent includes + ** + ** History: + ** 2011-05-19 V1.00 MWi first version + ** + ******************************************************************************/ + +/** + ****************************************************************************** + ** \brief MCU header file include + ** + ******************************************************************************/ +#ifndef _MB9BF506R_H_ + #include "mb9bf506r.h" +#endif + +/** + ****************************************************************************** + ** \brief MCU system start-up header file include + ** + ******************************************************************************/ +#ifndef _SYSTEM_MB9BF50X_H_ + #include "system_mb9bf50x.h" +#endif + + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h new file mode 100644 index 0000000000..947349e2af --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h @@ -0,0 +1,679 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/** \file system_mb9bf50x.h + ** + ** Headerfile for FM3 system parameters + ** + ** User clock definitions can be done for the following clock settings: + ** - CLOCK_SETUP : Execute the clock settings form the settings below in + ** SystemInit() + ** - __CLKMO : External clock frequency for main oscillion + ** - __CLKSO : External clock frequency for sub oscillion + ** - SCM_CTL : System Clock Mode Control Register + ** - BSC_PSR : Base Clock Prescaler Register + ** - APBC0_PSR : APB0 Prescaler Register + ** - APBC1_PSR : APB1 Prescaler Register + ** - APBC2_PSR : APB2 Prescaler Register + ** - SWC_PSR : Software Watchdog Clock Prescaler Register + ** - TTC_PSR : Trace Clock Prescaler Register + ** - CSW_TMR : Clock Stabilization Wait Time Register + ** - PSW_TMR : PLL Clock Stabilization Wait Time Setup Register + ** - PLL_CTL1 : PLL Control Register 1 + ** - PLL_CTL2 : PLL Control Register 2 + ** + ** The register settings are check for correct values of reserved bits. + ** Otherwise a preprocessor error is output and stops the build process. + ** Furthermore the 'master clock' is retrieved from the register settings + ** and the system clock (HCLK) is calculated from the Base Clock Prescaler + ** Register (BSC_PSR). This value is used for the global CMSIS variable + ** #SystemCoreClock. Also the absolute external, PLL and HCL freqeuncy is + ** is checked. Note that not all possible wrong setting are checked! The + ** user has to take care to fulfill the settings stated in the according + ** device's data sheet! + ** + ** User definition for Hardware Watchdog: + ** - HWWD_DISABLE : Disables Hardware Watchdog in SystemInit() + ** + ** User definition for CR Trimming: + ** - CR_TRIM_SETUP : Enables CR trimming in SystemInit() + ** + ** History: + ** 2011-05-16 V1.0 MWi original version + ** 2011-12-20 V1.1 EH corresponded to C++ + *****************************************************************************/ + +#ifndef _SYSTEM_MB9BF50X_H_ +#define _SYSTEM_MB9BF50X_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/******************************************************************************/ +/* Include files */ +/******************************************************************************/ + +#include + +/******************************************************************************/ +/* Global pre-processor symbols/macros ('define') */ +/******************************************************************************/ + +/******************************************************************************/ +/* */ +/* START OF USER SETTINGS HERE */ +/* =========================== */ +/* */ +/* All lines with '<<<' can be set by user. */ +/* */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Clock Setup Enable + ** (USER SETTING) + ** + ** - 0 = No clock setup done by system_mb9xfxxx.c + ** - 1 = Clock setup done by system_mb9xfxxx.c + ******************************************************************************/ +#define CLOCK_SETUP 1 // <<< Define clock setup here + +/** + ****************************************************************************** + ** \brief External Main Clock Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKMO ( 4000000UL) // <<< External 4MHz Crystal + +/** + ****************************************************************************** + ** \brief External Sub Clock Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKSO ( 32768UL) // <<< External 32KHz Crystal + +/** + ****************************************************************************** + ** \brief System Clock Mode Control Register value definition + ** (USER SETTING) + ** + ** SCM_CTL + ** + ** Bit#7-5 : RCS[2:0] + ** - 0 = Internal high-speed CR oscillation (default) + ** - 1 = Main oscillation clock + ** - 2 = PLL oscillation clock + ** - 3 = (not allowed) + ** - 4 = Internal low-speed CR oscillation + ** - 5 = Sub clock oscillation + ** - 6 = (not allowed) + ** - 7 = (not allowed) + ** + ** Bit#4 : PLLE + ** - 0 = Disable PLL (default) + ** - 1 = Enable PLL + ** + ** Bit#3 : SOSCE + ** - 0 = Disable sub oscillation (default) + ** - 1 = Enable sub oscillation + ** + ** Bit#2 : (reserved) + ** + ** Bit#1 : MOSCE + ** - 0 = Disable main oscillation (default) + ** - 1 = Enable main oscillation + ** + ** Bit#0 : (reserved) + ******************************************************************************/ +#define SCM_CTL_Val 0x00000052 // <<< Define SCM_CTL here + +/** + ****************************************************************************** + ** \brief Base Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** BSC_PSR + ** + ** Bit#7-3 : (reserved) + ** + ** Bit#2-0 : BSR[2:0] + ** - 0 = HCLK = Master Clock + ** - 1 = HCLK = Master Clock / 2 + ** - 2 = HCLK = Master Clock / 3 + ** - 3 = HCLK = Master Clock / 4 + ** - 4 = HCLK = Master Clock / 6 + ** - 5 = HCLK = Master Clock / 8 + ** - 6 = HCLK = Master Clock / 16 + ** - 7 = (reserved) + ******************************************************************************/ +#define BSC_PSR_Val 0x00000000 // <<< Define BSC_PSR here + +/** + ****************************************************************************** + ** \brief APB0 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC0_PSR + ** + ** Bit#7-2 : (reserved) + ** + ** Bit#1-0 : BSR[2:0] + ** - 0 = PCLK0 = HCLK + ** - 1 = PCLK0 = HCLK / 2 + ** - 2 = PCLK0 = HCLK / 4 + ** - 3 = PCLK0 = HCLK / 8 + ******************************************************************************/ +#define APBC0_PSR_Val 0x00000001 // <<< Define APBC0_PSR here + +/** + ****************************************************************************** + ** \brief APB1 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC1_PSR + ** + ** Bit#7 : APBC1EN + ** - 0 = Disable PCLK1 output + ** - 1 = Enables PCLK1 (default) + ** + ** Bit#6-5 : (reserved) + ** + ** Bit#4 : APBC1RST + ** - 0 = APB1 bus reset, inactive (default) + ** - 1 = APB1 bus reset, active + ** + ** Bit#3-2 : (reserved) + ** + ** Bit#1-0 : APBC1[2:0] + ** - 0 = PCLK1 = HCLK + ** - 1 = PCLK1 = HCLK / 2 + ** - 2 = PCLK1 = HCLK / 4 + ** - 3 = PCLK1 = HCLK / 8 + ******************************************************************************/ +#define APBC1_PSR_Val 0x00000081 // <<< Define APBC1_PSR here + +/** + ****************************************************************************** + ** \brief APB2 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC2_PSR + ** + ** Bit#7 : APBC2EN + ** - 0 = Disable PCLK2 output + ** - 1 = Enables PCLK2 (default) + ** + ** Bit#6-5 : (reserved) + ** + ** Bit#4 : APBC2RST + ** - 0 = APB2 bus reset, inactive (default) + ** - 1 = APB2 bus reset, active + ** + ** Bit#3-2 : (reserved) + ** + ** Bit#1-0 : APBC2[1:0] + ** - 0 = PCLK2 = HCLK + ** - 1 = PCLK2 = HCLK / 2 + ** - 2 = PCLK2 = HCLK / 4 + ** - 3 = PCLK2 = HCLK / 8 + ******************************************************************************/ +#define APBC2_PSR_Val 0x00000081 // <<< Define APBC2_PSR here + +/** + ****************************************************************************** + ** \brief Software Watchdog Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** SWC_PSR + ** + ** Bit#7 : TESTB + ** - 0 = (not allowed) + ** - 1 = (always write "1" to this bit) + ** + ** Bit#6-2 : (reserved) + ** + ** Bit#1-0 : SWDS[2:0] + ** - 0 = SWDGOGCLK = PCLK0 + ** - 1 = SWDGOGCLK = PCLK0 / 2 + ** - 2 = SWDGOGCLK = PCLK0 / 4 + ** - 3 = SWDGOGCLK = PCLK0 / 8 + ******************************************************************************/ +#define SWC_PSR_Val 0x00000003 // <<< Define SWC_PSR here + +/** + ****************************************************************************** + ** \brief Trace Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** TTC_PSR + ** + ** Bit#7-1 : (reserved) + ** + ** Bit#0 : TTC + ** - 0 = TPIUCLK = HCLK + ** - 1 = TPIUCLK = HCLK / 2 + ******************************************************************************/ +#define TTC_PSR_Val 0x00000000 // <<< Define TTC_PSR here + +/** + ****************************************************************************** + ** \brief Clock Stabilization Wait Time Register value definition + ** (USER SETTING) + ** + ** CSW_TMR + ** + ** Bit#7 : (reserved) + ** + ** Bit#6-4 : SOWT[2:0] + ** - 0 = ~10.3 ms (default) + ** - 1 = ~20.5 ms + ** - 2 = ~41 ms + ** - 3 = ~82 ms + ** - 4 = ~164 ms + ** - 5 = ~327 ms + ** - 6 = ~655 ms + ** - 7 = ~1.31 s + ** + ** Bit#3-0 : MOWT[3:0] + ** - 0 = ~500 ns (default) + ** - 1 = ~8 us + ** - 2 = ~16 us + ** - 3 = ~32 us + ** - 4 = ~64 us + ** - 5 = ~128 us + ** - 6 = ~256 us + ** - 7 = ~512 us + ** - 8 = ~1.0 ms + ** - 9 = ~2.0 ms + ** - 10 = ~4.0 ms + ** - 11 = ~8.0 ms + ** - 12 = ~33.0 ms + ** - 13 = ~131 ms + ** - 14 = ~524 ms + ** - 15 = ~2.0 s + ******************************************************************************/ +#define CSW_TMR_Val 0x0000005C // <<< Define CSW_TMR here + +/** + ****************************************************************************** + ** \brief PLL Clock Stabilization Wait Time Setup Register value definition + ** (USER SETTING) + ** + ** PSW_TMR + ** + ** Bit#7-5 : (reserved) + ** + ** Bit#4 : PINC + ** - 0 = Selects CLKMO (main oscillation) (default) + ** - 1 = (setting diabled) + ** + ** Bit#3 : (reserved) + ** + ** Bit#2-0 : POWT[2:0] + ** - 0 = ~128 us (default) + ** - 1 = ~256 us + ** - 2 = ~512 us + ** - 3 = ~1.02 ms + ** - 4 = ~2.05 ms + ** - 5 = ~4.10 ms + ** - 6 = ~8.20 ms + ** - 7 = ~16.40 ms + ******************************************************************************/ +#define PSW_TMR_Val 0x00000000 // <<< Define PSW_TMR here + +/** + ****************************************************************************** + ** \brief PLL Control Register 1 value definition + ** (USER SETTING) + ** + ** PLL_CTL1 + ** + ** Bit#7-4 : PLLK[3:0] + ** - 0 = Division(PLLK) = 1/1 (default) + ** - 1 = Division(PLLK) = 1/2 + ** - 2 = Division(PLLK) = 1/3 + ** - . . . + ** - 15 = Division(PLLK) = 1/16 + ** + ** Bit#3-0 : PLLM[3:0] + ** - 0 = Division(PLLM) = 1/1 (default) + ** - 1 = Division(PLLM) = 1/2 + ** - 2 = Division(PLLM) = 1/3 + ** - . . . + ** - 15 = Division(PLLM) = 1/16 + ******************************************************************************/ +#define PLL_CTL1_Val 0x00000000 // <<< Define PLL_CTL1 here + +/** + ****************************************************************************** + ** \brief PLL Control Register 2 value definition + ** (USER SETTING) + ** + ** PLL_CTL2 + ** + ** Bit#7-6 : (reserved) + ** + ** Bit#5-0 : PLLN[5:0] + ** - 0 = Division(PLLN) = 1/1 (default) + ** - 1 = Division(PLLN) = 1/2 + ** - 2 = Division(PLLN) = 1/3 + ** - . . . + ** - 63 = Division(PLLN) = 1/64 + ******************************************************************************/ +#define PLL_CTL2_Val 0x00000013 // <<< Define PLL_CTL2 here + +/** + ****************************************************************************** + ** \brief Hardware Watchdog disable definition + ** (USER SETTING) + ** + ** - 0 = Hardware Watchdog enable + ** - 1 = Hardware Watchdog disable + ******************************************************************************/ +#define HWWD_DISABLE 1 // <<< Define HW Watach dog enable here + +/** + ****************************************************************************** + ** \brief Trimming CR + ** (USER SETTING) + ** + ** - 0 = CR is not trimmed at startup + ** - 1 = CR is trimmed at startup + ******************************************************************************/ +#define CR_TRIM_SETUP 1 // <<< Define CR trimming at startup enable here + + +/******************************************************************************/ +/* */ +/* END OF USER SETTINGS HERE */ +/* ========================= */ +/* */ +/******************************************************************************/ + +/******************************************************************************/ +/* Device dependent System Clock absolute maximum ranges */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Internal High-Speed CR Oscillator Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKHC ( 4000000UL) /* Internal 4MHz CR Oscillator */ + +/** + ****************************************************************************** + ** \brief Internal Low-Speed CR Oscillator Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKLC ( 100000UL) /* Internal 100KHz CR Oscillator */ + +/** + ****************************************************************************** + ** \brief Any case minimum Main Clock frequency (in Hz, [value]UL) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKMOMIN ( 4000000UL) + +/** + ****************************************************************************** + ** \brief Maximum Main Clock frequency using external clock + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKMOMAX ( 48000000UL) + +/** + ****************************************************************************** + ** \brief Any case minimum Sub Clock frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKSOMIN ( 32000UL) + +/** + ****************************************************************************** + ** \brief Maximum Sub Clock frequency using external clock + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKSOMAX ( 100000UL) + +/** + ****************************************************************************** + ** \brief Absolute minimum PLL input frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKINMIN ( 4000000UL) + +/** + ****************************************************************************** + ** \brief Absolute maximum PLL input frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKINMAX ( 30000000UL) + +/** + ****************************************************************************** + ** \brief Absolute minimum PLL oscillation frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKMIN ( 60000000UL) + +/** + ****************************************************************************** + ** \brief Absolute maximum PLL oscillation frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKMAX (120000000UL) + +/** + ****************************************************************************** + ** \brief Absolute maximum System Clock frequency (HCLK) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __HCLKMAX ( 80000000UL) + +/** + ****************************************************************************** + ** \brief Preprocessor macro for checking range (clock settings) + ******************************************************************************/ +#define CHECK_RANGE(val, min, max) ((val < min) || (val > max)) + +/** + ****************************************************************************** + ** \brief Preprocessor macro for checking bits with mask (clock settings) + ******************************************************************************/ +#define CHECK_RSVD(val, mask) (val & mask) + + +/******************************************************************************/ +/* Check register settings */ +/******************************************************************************/ +#if (CHECK_RSVD((SCM_CTL_Val), ~0x000000FA)) + #error "SCM_CTL: Invalid values of reserved bits!" +#endif + +#if ((SCM_CTL_Val & 0xE0) == 0x40) && ((SCM_CTL_Val & 0x10) != 0x10) + #error "SCM_CTL: CLKPLL is selected but PLL is not enabled!" +#endif + +#if (CHECK_RSVD((CSW_TMR_Val), ~0x0000007F)) + #error "CSW_TMR: Invalid values of reserved bits!" +#endif + +#if ((SCM_CTL_Val & 0x10)) /* if PLL is used */ + #if (CHECK_RSVD((PSW_TMR_val), ~0x00000007)) + #error "PSW_TMR: Invalid values of reserved bits!" + #endif + + #if (CHECK_RSVD((PLL_CTL1_Val), ~0x000000FF)) + #error "PLL_CTL1: Invalid values of reserved bits!" + #endif + + #if (CHECK_RSVD((PLL_CTL2_Val), ~0x0000003F)) + #error "PLL_CTL2: Invalid values of reserved bits!" + #endif +#endif + +#if (CHECK_RSVD((BSC_PSR_Val), ~0x00000007)) + #error "BSC_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC0_PSR_Val), ~0x00000003)) + #error "APBC0_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC1_PSR_Val), ~0x00000083)) + #error "APBC1_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC2_PSR_Val), ~0x00000083)) + #error "APBC2_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((SWC_PSR_Val), ~0x00000003)) + #error "SWC_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((TTC_PSR_Val), ~0x00000001)) + #error "TTC_PSR: Invalid values of reserved bits!" +#endif + +/******************************************************************************/ +/* Define clocks with checking settings */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Calculate PLL K factor from settings + ******************************************************************************/ +#define __PLLK (((PLL_CTL1_Val >> 4) & 0x0F) + 1) + +/** + ****************************************************************************** + ** \brief Calculate PLL N factor from settings + ******************************************************************************/ +#define __PLLN (((PLL_CTL2_Val ) & 0x1F) + 1) + +/** + ****************************************************************************** + ** \brief Calculate PLL M factor from settings + ******************************************************************************/ +#define __PLLM (((PLL_CTL1_Val ) & 0x0F) + 1) + +/** + ****************************************************************************** + ** \brief Calculate PLL output frequency from settings + ******************************************************************************/ +#define __PLLCLK ((__CLKMO * __PLLN) / __PLLK) + +/******************************************************************************/ +/* Determine core clock frequency according to settings */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Define Master Clock from settings + ******************************************************************************/ +#if (((SCM_CTL_Val >> 5) & 0x07) == 0) + #define __MASTERCLK (__CLKHC) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 1) + #define __MASTERCLK (__CLKMO) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 2) + #define __MASTERCLK (__PLLCLK) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 4) + #define __MASTERCLK (__CLKLC) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 5) + #define __MASTERCLK (__CLKSO) +#else + #define __MASTERCLK (0UL) +#endif + +/** + ****************************************************************************** + ** \brief Define System Clock Frequency (Core Clock) from settings + ******************************************************************************/ +#if ((BSC_PSR_Val & 0x07) == 0) + #define __HCLK (__MASTERCLK / 1) +#elif ((BSC_PSR_Val & 0x07) == 1) + #define __HCLK (__MASTERCLK / 2) +#elif ((BSC_PSR_Val & 0x07) == 2) + #define __HCLK (__MASTERCLK / 3) +#elif ((BSC_PSR_Val & 0x07) == 3) + #define __HCLK (__MASTERCLK / 4) +#elif ((BSC_PSR_Val & 0x07) == 4) + #define __HCLK (__MASTERCLK / 6) +#elif ((BSC_PSR_Val & 0x07) == 5) + #define __HCLK (__MASTERCLK / 8) +#elif ((BSC_PSR_Val & 0x07) == 6) + #define __HCLK (__MASTERCLK /16) +#else + #define __HCLK (0UL) +#endif + +/******************************************************************************/ +/* HCLK range check */ +/******************************************************************************/ +#if (CHECK_RANGE(__CLKMO, __CLKMOMIN, __CLKMOMAX) != 0) + #error "Main Oscillator Clock (CLKMO) out of range!" +#endif + +#if (CHECK_RANGE(__CLKSO, __CLKSOMIN, __CLKSOMAX) != 0) + #error "Sub Oscillator Clock (CLKMO) out of range!" +#endif + +#if (CHECK_RANGE((__CLKMO / __PLLK), __PLLCLKINMIN, __PLLCLKINMAX) != 0) + #error "PLL input frequency out of range!" +#endif + +#if (CHECK_RANGE(((__CLKMO * __PLLN * __PLLM) / __PLLK), __PLLCLKMIN, __PLLCLKMAX) != 0) + #error "PLL oscillation frequency out of range!" +#endif + +#if (CHECK_RANGE(__HCLK, 0, __HCLKMAX) != 0) + #error "System Clock (HCLK) out of range!" +#endif + +/******************************************************************************/ +/* Global function prototypes ('extern', definition in C source) */ +/******************************************************************************/ + +extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) + +extern void SystemInit (void); // Initialize the system + +extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable + +#ifdef __cplusplus +} +#endif + +#endif /* __SYSTEM_MB9BF50X_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S new file mode 100644 index 0000000000..3d163aa6dd --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S @@ -0,0 +1,327 @@ +;/************************************************************************/ +;/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +;/* */ +;/* The following software deliverable is intended for and must only be */ +;/* used for reference and in an evaluation laboratory environment. */ +;/* It is provided on an as-is basis without charge and is subject to */ +;/* alterations. */ +;/* It is the user's obligation to fully test the software in its */ +;/* environment and to ensure proper functionality, qualification and */ +;/* compliance with component specifications. */ +;/* */ +;/* In the event the software deliverable includes the use of open */ +;/* source components, the provisions of the governing open source */ +;/* license agreement shall apply with respect to such software */ +;/* deliverable. */ +;/* FSEU does not warrant that the deliverables do not infringe any */ +;/* third party intellectual property right (IPR). In the event that */ +;/* the deliverables infringe a third party IPR it is the sole */ +;/* responsibility of the customer to obtain necessary licenses to */ +;/* continue the usage of the deliverable. */ +;/* */ +;/* To the maximum extent permitted by applicable law FSEU disclaims all */ +;/* warranties, whether express or implied, in particular, but not */ +;/* limited to, warranties of merchantability and fitness for a */ +;/* particular purpose for which the deliverable is not designated. */ +;/* */ +;/* To the maximum extent permitted by applicable law, FSEU's liability */ +;/* is restricted to intentional misconduct and gross negligence. */ +;/* FSEU is not liable for consequential damages. */ +;/* */ +;/* (V1.5) */ +;/************************************************************************/ +;/* Startup for ARM */ +;/* Version V1.02 */ +;/* Date 2011-01-12 */ +;/* Target-mcu MB9B5xx */ +;/************************************************************************/ + +; Stack Configuration +; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> + +Stack_Size EQU 0x00000200 + + AREA STACK, NOINIT, READWRITE, ALIGN=3 +Stack_Mem SPACE Stack_Size +__initial_sp + + +; Heap Configuration +; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> + +Heap_Size EQU 0x00000000 + + AREA HEAP, NOINIT, READWRITE, ALIGN=3 +__heap_base +Heap_Mem SPACE Heap_Size +__heap_limit + + + PRESERVE8 + THUMB + + +; Vector Table Mapped to Address 0 at Reset + + AREA RESET, DATA, READONLY + EXPORT __Vectors + EXPORT __Vectors_End + EXPORT __Vectors_Size + +__Vectors DCD __initial_sp ; Top of Stack + DCD Reset_Handler ; Reset Handler + DCD NMI_Handler ; NMI Handler + DCD HardFault_Handler ; Hard Fault Handler + DCD MemManage_Handler ; MPU Fault Handler + DCD BusFault_Handler ; Bus Fault Handler + DCD UsageFault_Handler ; Usage Fault Handler + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall Handler + DCD DebugMon_Handler ; Debug Monitor Handler + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV Handler + DCD SysTick_Handler ; SysTick Handler + + DCD CSV_Handler ; 0: Clock Super Visor + DCD SWDT_Handler ; 1: Software Watchdog Timer + DCD LVD_Handler ; 2: Low Voltage Detector + DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF + DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 + DCD INT8_15_Handler ; 5: External Interrupt Request ch.8 to ch.15 + DCD DT_Handler ; 6: Dual Timer / Quad Decoder + DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 + DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 + DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 + DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 + DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 + DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 + DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 + DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 + DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 + DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 + DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 + DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 + DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 + DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 + DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 + DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 + DCD PPG_Handler ; 23: PPG + DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter + DCD ADC0_IRQHandler ; 25: ADC0 + DCD ADC1_IRQHandler ; 26: ADC1 + DCD ADC2_IRQHandler ; 27: ADC2 + DCD MFT_FRT_IRQHandler ; 28: Free-run Timer + DCD MFT_IPC_IRQHandler ; 29: Input Capture + DCD MFT_OPC_IRQHandler ; 30: Output Compare + DCD BT_IRQHandler ; 31: Base Timer ch.0 to ch.7 + DCD CAN0_IRQHandler ; 32: CAN ch.0 + DCD CAN1_IRQHandler ; 33: CAN ch.1 + DCD USBF_Handler ; 34: USB Function + DCD USB_Handler ; 35: USB Function / USB HOST + DCD DummyHandler ; 36: Reserved + DCD DummyHandler ; 37: Reserved + DCD DMAC0_Handler ; 38: DMAC ch.0 + DCD DMAC1_Handler ; 39: DMAC ch.1 + DCD DMAC2_Handler ; 40: DMAC ch.2 + DCD DMAC3_Handler ; 41: DMAC ch.3 + DCD DMAC4_Handler ; 42: DMAC ch.4 + DCD DMAC5_Handler ; 43: DMAC ch.5 + DCD DMAC6_Handler ; 44: DMAC ch.6 + DCD DMAC7_Handler ; 45: DMAC ch.7 + DCD DummyHandler ; 46: Reserved + DCD DummyHandler ; 47: Reserved +__Vectors_End + +__Vectors_Size EQU __Vectors_End - __Vectors + + AREA |.text|, CODE, READONLY + + +; Reset Handler + +Reset_Handler PROC + EXPORT Reset_Handler [WEAK] + IMPORT SystemInit + IMPORT __main + LDR R0, =SystemInit + BLX R0 + LDR R0, =__main + BX R0 + ENDP + + +; Dummy Exception Handlers (infinite loops which can be modified) + +NMI_Handler PROC + EXPORT NMI_Handler [WEAK] + B . + ENDP +HardFault_Handler\ + PROC + EXPORT HardFault_Handler [WEAK] + B . + ENDP +MemManage_Handler\ + PROC + EXPORT MemManage_Handler [WEAK] + B . + ENDP +BusFault_Handler\ + PROC + EXPORT BusFault_Handler [WEAK] + B . + ENDP +UsageFault_Handler\ + PROC + EXPORT UsageFault_Handler [WEAK] + B . + ENDP +SVC_Handler PROC + EXPORT SVC_Handler [WEAK] + B . + ENDP +DebugMon_Handler\ + PROC + EXPORT DebugMon_Handler [WEAK] + B . + ENDP +PendSV_Handler PROC + EXPORT PendSV_Handler [WEAK] + B . + ENDP +SysTick_Handler PROC + EXPORT SysTick_Handler [WEAK] + B . + ENDP + +Default_Handler PROC + + EXPORT CSV_Handler [WEAK] + EXPORT SWDT_Handler [WEAK] + EXPORT LVD_Handler [WEAK] + EXPORT MFT_WG_IRQHandler [WEAK] + EXPORT INT0_7_Handler [WEAK] + EXPORT INT8_15_Handler [WEAK] + EXPORT DT_Handler [WEAK] + EXPORT MFS0RX_IRQHandler [WEAK] + EXPORT MFS0TX_IRQHandler [WEAK] + EXPORT MFS1RX_IRQHandler [WEAK] + EXPORT MFS1TX_IRQHandler [WEAK] + EXPORT MFS2RX_IRQHandler [WEAK] + EXPORT MFS2TX_IRQHandler [WEAK] + EXPORT MFS3RX_IRQHandler [WEAK] + EXPORT MFS3TX_IRQHandler [WEAK] + EXPORT MFS4RX_IRQHandler [WEAK] + EXPORT MFS4TX_IRQHandler [WEAK] + EXPORT MFS5RX_IRQHandler [WEAK] + EXPORT MFS5TX_IRQHandler [WEAK] + EXPORT MFS6RX_IRQHandler [WEAK] + EXPORT MFS6TX_IRQHandler [WEAK] + EXPORT MFS7RX_IRQHandler [WEAK] + EXPORT MFS7TX_IRQHandler [WEAK] + EXPORT PPG_Handler [WEAK] + EXPORT TIM_IRQHandler [WEAK] + EXPORT ADC0_IRQHandler [WEAK] + EXPORT ADC1_IRQHandler [WEAK] + EXPORT ADC2_IRQHandler [WEAK] + EXPORT MFT_FRT_IRQHandler [WEAK] + EXPORT MFT_IPC_IRQHandler [WEAK] + EXPORT MFT_OPC_IRQHandler [WEAK] + EXPORT BT_IRQHandler [WEAK] + EXPORT CAN0_IRQHandler [WEAK] + EXPORT CAN1_IRQHandler [WEAK] + EXPORT USBF_Handler [WEAK] + EXPORT USB_Handler [WEAK] + EXPORT DMAC0_Handler [WEAK] + EXPORT DMAC1_Handler [WEAK] + EXPORT DMAC2_Handler [WEAK] + EXPORT DMAC3_Handler [WEAK] + EXPORT DMAC4_Handler [WEAK] + EXPORT DMAC5_Handler [WEAK] + EXPORT DMAC6_Handler [WEAK] + EXPORT DMAC7_Handler [WEAK] + EXPORT DummyHandler [WEAK] + +CSV_Handler +SWDT_Handler +LVD_Handler +MFT_WG_IRQHandler +INT0_7_Handler +INT8_15_Handler +DT_Handler +MFS0RX_IRQHandler +MFS0TX_IRQHandler +MFS1RX_IRQHandler +MFS1TX_IRQHandler +MFS2RX_IRQHandler +MFS2TX_IRQHandler +MFS3RX_IRQHandler +MFS3TX_IRQHandler +MFS4RX_IRQHandler +MFS4TX_IRQHandler +MFS5RX_IRQHandler +MFS5TX_IRQHandler +MFS6RX_IRQHandler +MFS6TX_IRQHandler +MFS7RX_IRQHandler +MFS7TX_IRQHandler +PPG_Handler +TIM_IRQHandler +ADC0_IRQHandler +ADC1_IRQHandler +ADC2_IRQHandler +MFT_FRT_IRQHandler +MFT_IPC_IRQHandler +MFT_OPC_IRQHandler +BT_IRQHandler +CAN0_IRQHandler +CAN1_IRQHandler +USBF_Handler +USB_Handler +DMAC0_Handler +DMAC1_Handler +DMAC2_Handler +DMAC3_Handler +DMAC4_Handler +DMAC5_Handler +DMAC6_Handler +DMAC7_Handler +DummyHandler + + B . + + ENDP + + + ALIGN + + +; User Initial Stack & Heap + + IF :DEF:__MICROLIB + + EXPORT __initial_sp + EXPORT __heap_base + EXPORT __heap_limit + + ELSE + + IMPORT __use_two_region_memory + EXPORT __user_initial_stackheap +__user_initial_stackheap + + LDR R0, = Heap_Mem + LDR R1, =(Stack_Mem + Stack_Size) + LDR R2, = (Heap_Mem + Heap_Size) + LDR R3, = Stack_Mem + BX LR + + ALIGN + + ENDIF + + + END diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S new file mode 100644 index 0000000000..72981f1edb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S @@ -0,0 +1,290 @@ +/**************************************************************************//** + * @file startup_.s + * @brief CMSIS Cortex-M# Core Device Startup File for + * Device + * @version V3.01 + * @date 06. March 2012 + * + * @note Version CodeSourcery Sourcery G++ Lite (with CS3) + * Copyright (C) 2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +/* +//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------ +*/ + + +/* +// Stack Configuration +// Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> +// +*/ + + .equ Stack_Size, 0x00000400 + .section ".stack", "w" + .align 3 + .globl __cs3_stack_mem + .globl __cs3_stack_size +__cs3_stack_mem: + .if Stack_Size + .space Stack_Size + .endif + .size __cs3_stack_mem, . - __cs3_stack_mem + .set __cs3_stack_size, . - __cs3_stack_mem + + +/* +// Heap Configuration +// Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> +// +*/ + + .equ Heap_Size, 0x00000100 + + .section ".heap", "w" + .align 3 + .globl __cs3_heap_start + .globl __cs3_heap_end +__cs3_heap_start: + .if Heap_Size + .space Heap_Size + .endif +__cs3_heap_end: + + +/* Vector Table */ + + .section ".cs3.interrupt_vector" + .globl __cs3_interrupt_vector_cortex_m + .type __cs3_interrupt_vector_cortex_m, %object + +__cs3_interrupt_vector_cortex_m: + .long __cs3_stack /* Top of Stack */ + .long __cs3_reset /* Reset Handler */ + .long NMI_Handler /* NMI Handler */ + .long HardFault_Handler /* Hard Fault Handler */ + .long MemManage_Handler /* MPU Fault Handler */ + .long BusFault_Handler /* Bus Fault Handler */ + .long UsageFault_Handler /* Usage Fault Handler */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long SVC_Handler /* SVCall Handler */ + .long DebugMon_Handler /* Debug Monitor Handler */ + .long 0 /* Reserved */ + .long PendSV_Handler /* PendSV Handler */ + .long SysTick_Handler /* SysTick Handler */ + + /* External Interrupts */ +/* ToDo: Add here the vectors for the device specific external interrupts handler */ + .long CSV_Handler /* 0: Clock Super Visor */ + .long SWDT_Handler /* 1: Software Watchdog Timer */ + .long LVD_Handler /* 2: Low Voltage Detector */ + .long MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ + .long INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ + .long INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ + .long DT_Handler /* 6: Dual Timer / Quad Decoder */ + .long MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ + .long MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ + .long MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ + .long MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ + .long MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ + .long MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ + .long MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ + .long MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ + .long MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ + .long MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ + .long MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ + .long MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ + .long MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ + .long MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ + .long MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ + .long MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ + .long PPG_Handler /* 23: PPG */ + .long TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ + .long ADC0_IRQHandler /* 25: ADC0 */ + .long ADC1_IRQHandler /* 26: ADC1 */ + .long ADC2_IRQHandler /* 27: ADC2 */ + .long MFT_FRT_IRQHandler /* 28: Free-run Timer */ + .long MFT_IPC_IRQHandler /* 29: Input Capture */ + .long MFT_OPC_IRQHandler /* 30: Output Compare */ + .long BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ + .long CAN0_IRQHandler /* 32: CAN ch.0 */ + .long CAN1_IRQHandler /* 33: CAN ch.1 */ + .long USBF_Handler /* 34: USB Function */ + .long USB_Handler /* 35: USB Function / USB HOST */ + .long RESERVED_1_IRQHandler /* 36: Reserved */ + .long RESERVED_2_IRQHandler /* 37: Reserved */ + .long DMAC0_Handler /* 38: DMAC ch.0 */ + .long DMAC1_Handler /* 39: DMAC ch.1 */ + .long DMAC2_Handler /* 40: DMAC ch.2 */ + .long DMAC3_Handler /* 41: DMAC ch.3 */ + .long DMAC4_Handler /* 42: DMAC ch.4 */ + .long DMAC5_Handler /* 43: DMAC ch.5 */ + .long DMAC6_Handler /* 44: DMAC ch.6 */ + .long DMAC7_Handler /* 45: DMAC ch.7 */ + .long RESERVED_3_IRQHandler /* 46: Reserved */ + .long RESERVED_4_IRQHandler /* 47: Reserved */ + + .size __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m + + + .thumb + + +/* Reset Handler */ + + .section .cs3.reset,"x",%progbits + .thumb_func + .globl __cs3_reset_cortex_m + .globl _start + .type __cs3_reset_cortex_m, %function +__cs3_reset_cortex_m: +_start: + .fnstart + LDR R0, =SystemInit + BLX R0 + LDR R0,=_start + BX R0 + .pool + .cantunwind + .fnend + .size __cs3_reset_cortex_m,.-__cs3_reset_cortex_m + + .section ".text" + +/* Exception Handlers */ + + .weak NMI_Handler + .type NMI_Handler, %function +NMI_Handler: + B . + .size NMI_Handler, . - NMI_Handler + + .weak HardFault_Handler + .type HardFault_Handler, %function +HardFault_Handler: + B . + .size HardFault_Handler, . - HardFault_Handler + + .weak MemManage_Handler + .type MemManage_Handler, %function +MemManage_Handler: + B . + .size MemManage_Handler, . - MemManage_Handler + + .weak BusFault_Handler + .type BusFault_Handler, %function +BusFault_Handler: + B . + .size BusFault_Handler, . - BusFault_Handler + + .weak UsageFault_Handler + .type UsageFault_Handler, %function +UsageFault_Handler: + B . + .size UsageFault_Handler, . - UsageFault_Handler + + .weak SVC_Handler + .type SVC_Handler, %function +SVC_Handler: + B . + .size SVC_Handler, . - SVC_Handler + + .weak DebugMon_Handler + .type DebugMon_Handler, %function +DebugMon_Handler: + B . + .size DebugMon_Handler, . - DebugMon_Handler + + .weak PendSV_Handler + .type PendSV_Handler, %function +PendSV_Handler: + B . + .size PendSV_Handler, . - PendSV_Handler + + .weak SysTick_Handler + .type SysTick_Handler, %function +SysTick_Handler: + B . + .size SysTick_Handler, . - SysTick_Handler + + +/* IRQ Handlers */ + +/* ToDo: Add here the export definition for the device specific external interrupts handler */ +/* ToDo: Add here the names for the device specific external interrupts handler */ + .globl Default_Handler + .type Default_Handler, %function +Default_Handler: + B . + .size Default_Handler, . - Default_Handler + + .macro IRQ handler + .weak \handler + .set \handler, Default_Handler + .endm + + IRQ CSV_Handler /* 0: Clock Super Visor */ + IRQ SWDT_Handler /* 1: Software Watchdog Timer */ + IRQ LVD_Handler /* 2: Low Voltage Detector */ + IRQ MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ + IRQ INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ + IRQ INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ + IRQ DT_Handler /* 6: Dual Timer / Quad Decoder */ + IRQ MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ + IRQ MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ + IRQ MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ + IRQ MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ + IRQ MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ + IRQ MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ + IRQ MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ + IRQ MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ + IRQ MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ + IRQ MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ + IRQ MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ + IRQ MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ + IRQ MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ + IRQ MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ + IRQ MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ + IRQ MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ + IRQ PPG_Handler /* 23: PPG */ + IRQ TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ + IRQ ADC0_IRQHandler /* 25: ADC0 */ + IRQ ADC1_IRQHandler /* 26: ADC1 */ + IRQ ADC2_IRQHandler /* 27: ADC2 */ + IRQ MFT_FRT_IRQHandler /* 28: Free-run Timer */ + IRQ MFT_IPC_IRQHandler /* 29: Input Capture */ + IRQ MFT_OPC_IRQHandler /* 30: Output Compare */ + IRQ BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ + IRQ CAN0_IRQHandler /* 32: CAN ch.0 */ + IRQ CAN1_IRQHandler /* 33: CAN ch.1 */ + IRQ USBF_Handler /* 34: USB Function */ + IRQ USB_Handler /* 35: USB Function / USB HOST */ + IRQ RESERVED_1_IRQHandler /* 36: Reserved */ + IRQ RESERVED_2_IRQHandler /* 37: Reserved */ + IRQ DMAC0_Handler /* 38: DMAC ch.0 */ + IRQ DMAC1_Handler /* 39: DMAC ch.1 */ + IRQ DMAC2_Handler /* 40: DMAC ch.2 */ + IRQ DMAC3_Handler /* 41: DMAC ch.3 */ + IRQ DMAC4_Handler /* 42: DMAC ch.4 */ + IRQ DMAC5_Handler /* 43: DMAC ch.5 */ + IRQ DMAC6_Handler /* 44: DMAC ch.6 */ + IRQ DMAC7_Handler /* 45: DMAC ch.7 */ + IRQ RESERVED_3_IRQHandler /* 46: Reserved */ + IRQ RESERVED_4_IRQHandler /* 47: Reserved */ + + .end diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S new file mode 100644 index 0000000000..9ac63778f5 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S @@ -0,0 +1,402 @@ +;/************************************************************************/ +;/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +;/* */ +;/* The following software deliverable is intended for and must only be */ +;/* used for reference and in an evaluation laboratory environment. */ +;/* It is provided on an as-is basis without charge and is subject to */ +;/* alterations. */ +;/* It is the user's obligation to fully test the software in its */ +;/* environment and to ensure proper functionality, qualification and */ +;/* compliance with component specifications. */ +;/* */ +;/* In the event the software deliverable includes the use of open */ +;/* source components, the provisions of the governing open source */ +;/* license agreement shall apply with respect to such software */ +;/* deliverable. */ +;/* FSEU does not warrant that the deliverables do not infringe any */ +;/* third party intellectual property right (IPR). In the event that */ +;/* the deliverables infringe a third party IPR it is the sole */ +;/* responsibility of the customer to obtain necessary licenses to */ +;/* continue the usage of the deliverable. */ +;/* */ +;/* To the maximum extent permitted by applicable law FSEU disclaims all */ +;/* warranties, whether express or implied, in particular, but not */ +;/* limited to, warranties of merchantability and fitness for a */ +;/* particular purpose for which the deliverable is not designated. */ +;/* */ +;/* To the maximum extent permitted by applicable law, FSEU's liability */ +;/* is restricted to intentional misconduct and gross negligence. */ +;/* FSEU is not liable for consequential damages. */ +;/* */ +;/* (V1.5) */ +;/************************************************************************/ +;/* Startup for IAR */ +;/* Version V1.02 */ +;/* Date 2011-01-05 */ +;/* Target-mcu MB9B5xx */ +;/************************************************************************/ + + + MODULE ?cstartup + + ;; Forward declaration of sections. + SECTION CSTACK:DATA:NOROOT(3) + + SECTION .intvec:CODE:NOROOT(2) + + EXTERN __iar_program_start + EXTERN SystemInit + PUBLIC __vector_table + + DATA +__vector_table DCD sfe(CSTACK) ; Top of Stack + DCD Reset_Handler ; Reset + DCD NMI_Handler ; NMI + DCD HardFault_Handler ; Hard Fault + DCD MemManage_Handler ; MPU Fault + DCD BusFault_Handler ; Bus Fault + DCD UsageFault_Handler ; Usage Fault + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall + DCD DebugMon_Handler ; Debug Monitor + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV + DCD SysTick_Handler ; SysTick + + DCD CSV_Handler ; 0: Clock Super Visor + DCD SWDT_Handler ; 1: Software Watchdog Timer + DCD LVD_Handler ; 2: Low Voltage Detector + DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF + DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 + DCD INT8_15_Handler ; 5: External Interrupt Request ch.8 to ch.15 + DCD DT_Handler ; 6: Dual Timer / Quad Decoder + DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 + DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 + DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 + DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 + DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 + DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 + DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 + DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 + DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 + DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 + DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 + DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 + DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 + DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 + DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 + DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 + DCD PPG_Handler ; 23: PPG + DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter + DCD ADC0_IRQHandler ; 25: ADC0 + DCD ADC1_IRQHandler ; 26: ADC1 + DCD ADC2_IRQHandler ; 27: ADC2 + DCD MFT_FRT_IRQHandler ; 28: Free-run Timer + DCD MFT_IPC_IRQHandler ; 29: Input Capture + DCD MFT_OPC_IRQHandler ; 30: Output Compare + DCD BT_IRQHandler ; 31: Base Timer ch.0 to ch.7 + DCD CAN0_IRQHandler ; 32: CAN ch.0 + DCD CAN1_IRQHandler ; 33: CAN ch.1 + DCD USBF_Handler ; 34: USB Function + DCD USB_Handler ; 35: USB Function / USB HOST + DCD DummyHandler ; 36: Reserved + DCD DummyHandler ; 37: Reserved + DCD DMAC0_Handler ; 38: DMAC ch.0 + DCD DMAC1_Handler ; 39: DMAC ch.1 + DCD DMAC2_Handler ; 40: DMAC ch.2 + DCD DMAC3_Handler ; 41: DMAC ch.3 + DCD DMAC4_Handler ; 42: DMAC ch.4 + DCD DMAC5_Handler ; 43: DMAC ch.5 + DCD DMAC6_Handler ; 44: DMAC ch.6 + DCD DMAC7_Handler ; 45: DMAC ch.7 + DCD DummyHandler ; 46: Reserved + DCD DummyHandler ; 47: Reserved + + THUMB +; Dummy Exception Handlers (infinite loops which can be modified) + + PUBWEAK Reset_Handler + SECTION .text:CODE:REORDER(2) +Reset_Handler + LDR R0, =SystemInit + BLX R0 + LDR R0, =__iar_program_start + BX R0 + + PUBWEAK NMI_Handler + SECTION .text:CODE:REORDER(1) +NMI_Handler + B NMI_Handler + + PUBWEAK HardFault_Handler + SECTION .text:CODE:REORDER(1) +HardFault_Handler + B HardFault_Handler + + PUBWEAK MemManage_Handler + SECTION .text:CODE:REORDER(1) +MemManage_Handler + B MemManage_Handler + + PUBWEAK BusFault_Handler + SECTION .text:CODE:REORDER(1) +BusFault_Handler + B BusFault_Handler + + PUBWEAK UsageFault_Handler + SECTION .text:CODE:REORDER(1) +UsageFault_Handler + B UsageFault_Handler + + PUBWEAK SVC_Handler + SECTION .text:CODE:REORDER(1) +SVC_Handler + B SVC_Handler + + PUBWEAK DebugMon_Handler + SECTION .text:CODE:REORDER(1) +DebugMon_Handler + B DebugMon_Handler + + PUBWEAK PendSV_Handler + SECTION .text:CODE:REORDER(1) +PendSV_Handler + B PendSV_Handler + + PUBWEAK SysTick_Handler + SECTION .text:CODE:REORDER(1) +SysTick_Handler + B SysTick_Handler + + + + PUBWEAK CSV_Handler + SECTION .text:CODE:REORDER(1) +CSV_Handler + B CSV_Handler + + PUBWEAK SWDT_Handler + SECTION .text:CODE:REORDER(1) +SWDT_Handler + B SWDT_Handler + + PUBWEAK LVD_Handler + SECTION .text:CODE:REORDER(1) +LVD_Handler + B LVD_Handler + + PUBWEAK MFT_WG_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_WG_IRQHandler + B MFT_WG_IRQHandler + + PUBWEAK INT0_7_Handler + SECTION .text:CODE:REORDER(1) +INT0_7_Handler + B INT0_7_Handler + + PUBWEAK INT8_15_Handler + SECTION .text:CODE:REORDER(1) +INT8_15_Handler + B INT8_15_Handler + + PUBWEAK DT_Handler + SECTION .text:CODE:REORDER(1) +DT_Handler + B DT_Handler + + PUBWEAK MFS0RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS0RX_IRQHandler + B MFS0RX_IRQHandler + + PUBWEAK MFS0TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS0TX_IRQHandler + B MFS0TX_IRQHandler + + PUBWEAK MFS1RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS1RX_IRQHandler + B MFS1RX_IRQHandler + + PUBWEAK MFS1TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS1TX_IRQHandler + B MFS1TX_IRQHandler + + PUBWEAK MFS2RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS2RX_IRQHandler + B MFS2RX_IRQHandler + + PUBWEAK MFS2TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS2TX_IRQHandler + B MFS2TX_IRQHandler + + PUBWEAK MFS3RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS3RX_IRQHandler + B MFS3RX_IRQHandler + + PUBWEAK MFS3TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS3TX_IRQHandler + B MFS3TX_IRQHandler + + PUBWEAK MFS4RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS4RX_IRQHandler + B MFS4RX_IRQHandler + + PUBWEAK MFS4TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS4TX_IRQHandler + B MFS4TX_IRQHandler + + PUBWEAK MFS5RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS5RX_IRQHandler + B MFS5RX_IRQHandler + + PUBWEAK MFS5TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS5TX_IRQHandler + B MFS5TX_IRQHandler + + PUBWEAK MFS6RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS6RX_IRQHandler + B MFS6RX_IRQHandler + + PUBWEAK MFS6TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS6TX_IRQHandler + B MFS6TX_IRQHandler + + PUBWEAK MFS7RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS7RX_IRQHandler + B MFS7RX_IRQHandler + + PUBWEAK MFS7TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS7TX_IRQHandler + B MFS7TX_IRQHandler + + PUBWEAK PPG_Handler + SECTION .text:CODE:REORDER(1) +PPG_Handler + B PPG_Handler + + PUBWEAK TIM_IRQHandler + SECTION .text:CODE:REORDER(1) +TIM_IRQHandler + B TIM_IRQHandler + + PUBWEAK ADC0_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC0_IRQHandler + B ADC0_IRQHandler + + PUBWEAK ADC1_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC1_IRQHandler + B ADC1_IRQHandler + + PUBWEAK ADC2_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC2_IRQHandler + B ADC2_IRQHandler + + PUBWEAK MFT_FRT_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_FRT_IRQHandler + B MFT_FRT_IRQHandler + + PUBWEAK MFT_IPC_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_IPC_IRQHandler + B MFT_IPC_IRQHandler + + PUBWEAK MFT_OPC_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_OPC_IRQHandler + B MFT_OPC_IRQHandler + + PUBWEAK BT_IRQHandler + SECTION .text:CODE:REORDER(1) +BT_IRQHandler + B BT_IRQHandler + + PUBWEAK CAN0_IRQHandler + SECTION .text:CODE:REORDER(1) +CAN0_IRQHandler + B CAN0_IRQHandler + + PUBWEAK CAN1_IRQHandler + SECTION .text:CODE:REORDER(1) +CAN1_IRQHandler + B CAN1_IRQHandler + + PUBWEAK USBF_Handler + SECTION .text:CODE:REORDER(1) +USBF_Handler + B USBF_Handler + + PUBWEAK USB_Handler + SECTION .text:CODE:REORDER(1) +USB_Handler + B USB_Handler + + PUBWEAK DMAC0_Handler + SECTION .text:CODE:REORDER(1) +DMAC0_Handler + B DMAC0_Handler + + + PUBWEAK DMAC1_Handler + SECTION .text:CODE:REORDER(1) +DMAC1_Handler + B DMAC1_Handler + + PUBWEAK DMAC2_Handler + SECTION .text:CODE:REORDER(1) +DMAC2_Handler + B DMAC2_Handler + + PUBWEAK DMAC3_Handler + SECTION .text:CODE:REORDER(1) +DMAC3_Handler + B DMAC3_Handler + + PUBWEAK DMAC4_Handler + SECTION .text:CODE:REORDER(1) +DMAC4_Handler + B DMAC4_Handler + + PUBWEAK DMAC5_Handler + SECTION .text:CODE:REORDER(1) +DMAC5_Handler + B DMAC5_Handler + + PUBWEAK DMAC6_Handler + SECTION .text:CODE:REORDER(1) +DMAC6_Handler + B DMAC6_Handler + + PUBWEAK DMAC7_Handler + SECTION .text:CODE:REORDER(1) +DMAC7_Handler + B DMAC7_Handler + + PUBWEAK DummyHandler + SECTION .text:CODE:REORDER(1) +DummyHandler + B DummyHandler + + END diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c new file mode 100644 index 0000000000..6ccf1ff957 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c @@ -0,0 +1,202 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ + +#include "mcu.h" + +/** \file system_mb9bf50x.c + ** + ** FM3 system initialization functions + ** All adjustments can be done in belonging header file. + ** + ** History: + ** 2011-05-16 V1.0 MWi original version + ******************************************************************************/ + +/** + ****************************************************************************** + ** System Clock Frequency (Core Clock) Variable according CMSIS + ******************************************************************************/ +uint32_t SystemCoreClock = __HCLK; + +/** + ****************************************************************************** + ** \brief Update the System Core Clock with current core Clock retrieved from + ** cpu registers. + ** \param none + ** \return none + ******************************************************************************/ +void SystemCoreClockUpdate (void) { + uint32_t masterClk; + uint32_t u32RegisterRead; // Workaround variable for MISRA C rule conformance + + switch ((FM3_CRG->SCM_CTL >> 5) & 0x07) { + case 0: /* internal High-speed Cr osc. */ + masterClk = __CLKHC; + break; + + case 1: /* external main osc. */ + masterClk = __CLKMO; + break; + + case 2: /* PLL clock */ + // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) + // violation: + // "Unordered accesses to a volatile location" + u32RegisterRead = (__CLKMO * (((FM3_CRG->PLL_CTL2) & 0x1F) + 1)); + masterClk = (u32RegisterRead / (((FM3_CRG->PLL_CTL1 >> 4) & 0x0F) + 1)); + break; + + case 4: /* internal Low-speed CR osc. */ + masterClk = __CLKLC; + break; + + case 5: /* external Sub osc. */ + masterClk = __CLKSO; + break; + + default: + masterClk = 0Ul; + break; + } + + switch (FM3_CRG->BSC_PSR & 0x07) { + case 0: + SystemCoreClock = masterClk; + break; + + case 1: + SystemCoreClock = masterClk / 2; + break; + + case 2: + SystemCoreClock = masterClk / 3; + break; + + case 3: + SystemCoreClock = masterClk / 4; + break; + + case 4: + SystemCoreClock = masterClk / 6; + break; + + case 5: + SystemCoreClock = masterClk /8; + break; + + case 6: + SystemCoreClock = masterClk /16; + break; + + default: + SystemCoreClock = 0Ul; + break; + } + +} + +/** + ****************************************************************************** + ** \brief Setup the microcontroller system. Initialize the System and update + ** the SystemCoreClock variable. + ** + ** \param none + ** \return none + ******************************************************************************/ +void SystemInit (void) { + + static uint32_t u32IoRegisterRead; // Workaround variable for MISRA C rule conformance + +#if (HWWD_DISABLE) /* HW Watchdog Disable */ + FM3_HWWDT->WDG_LCK = 0x1ACCE551; /* HW Watchdog Unlock */ + FM3_HWWDT->WDG_LCK = 0xE5331AAE; + FM3_HWWDT->WDG_CTL = 0; /* HW Watchdog stop */ +#endif + +#if (CLOCK_SETUP) /* Clock Setup */ + FM3_CRG->BSC_PSR = BSC_PSR_Val; /* set System Clock presacaler */ + FM3_CRG->APBC0_PSR = APBC0_PSR_Val; /* set APB0 presacaler */ + FM3_CRG->APBC1_PSR = APBC1_PSR_Val; /* set APB1 presacaler */ + FM3_CRG->APBC2_PSR = APBC2_PSR_Val; /* set APB2 presacaler */ + FM3_CRG->SWC_PSR = SWC_PSR_Val | (1UL << 7); /* set SW Watchdog presacaler */ + FM3_CRG->TTC_PSR = TTC_PSR_Val; /* set Trace Clock presacaler */ + + FM3_CRG->CSW_TMR = CSW_TMR_Val; /* set oscillation stabilization wait time */ + + if (SCM_CTL_Val & (1UL << 1)) { /* Main clock oscillator enabled ? */ + FM3_CRG->SCM_CTL |= (1UL << 1); /* enable main oscillator */ + while (!(FM3_CRG->SCM_STR & (1UL << 1))); /* wait for Main clock oscillation stable */ + } + + if (SCM_CTL_Val & (1UL << 3)) { /* Sub clock oscillator enabled ? */ + FM3_CRG->SCM_CTL |= (1UL << 3); /* enable sub oscillator */ + while (!(FM3_CRG->SCM_STR & (1UL << 3))); /* wait for Sub clock oscillation stable */ + } + + FM3_CRG->PSW_TMR = PSW_TMR_Val; /* set PLL stabilization wait time */ + FM3_CRG->PLL_CTL1 = PLL_CTL1_Val; /* set PLLM and PLLK */ + FM3_CRG->PLL_CTL2 = PLL_CTL2_Val; /* set PLLN */ + + if (SCM_CTL_Val & (1UL << 4)) { /* PLL enabled ? */ + FM3_CRG->SCM_CTL |= (1UL << 4); /* enable PLL */ + while (!(FM3_CRG->SCM_STR & (1UL << 4))); /* wait for PLL stable */ + } + + FM3_CRG->SCM_CTL |= (SCM_CTL_Val & 0xE0); /* Set Master Clock switch */ + + // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) + // violations: + // "Unordered reads and writes to or from same location" and + // "Unordered accesses to a volatile location" + do + { + u32IoRegisterRead = (FM3_CRG->SCM_CTL & 0xE0); + }while ((FM3_CRG->SCM_STR & 0xE0) != u32IoRegisterRead); +#endif // (CLOCK_SETUP) + +#if (CR_TRIM_SETUP) + /* CR Trimming Data */ + if( 0x000003FF != (FM3_FLASH_IF->CRTRMM & 0x000003FF) ) + { + /* UnLock (MCR_FTRM) */ + FM3_CRTRIM->MCR_RLR = 0x1ACCE554; + /* Set MCR_FTRM */ + FM3_CRTRIM->MCR_FTRM = FM3_FLASH_IF->CRTRMM; + /* Lock (MCR_FTRM) */ + FM3_CRTRIM->MCR_RLR = 0x00000000; + } +#endif // (CR_TRIM_SETUP) +} + + + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript b/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript new file mode 100644 index 0000000000..a0fa5ca72d --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript @@ -0,0 +1,23 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c'] + +# add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S'] +elif rtconfig.CROSS_TOOL == 'keil': + src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S'] +elif rtconfig.CROSS_TOOL == 'iar': + src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S'] + +CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include'] + +CPPPATH += [cwd + '/CMSIS/Include'] + +group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf506r/project.ewp b/bsp/fujitsu/mb9x/mb9bf506r/project.ewp new file mode 100644 index 0000000000..a258e109b6 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/project.ewp @@ -0,0 +1,1945 @@ + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 20 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 26 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 11 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 20 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 26 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 11 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + Applications + + $PROJ_DIR$\applications\application.c + + + $PROJ_DIR$\applications\startup.c + + + + CMSIS + + $PROJ_DIR$\libraries\Device\FUJISTU\MB9BF50x\Source\system_mb9bf50x.c + + + $PROJ_DIR$\libraries\Device\FUJISTU\MB9BF50x\Source\IAR\startup_mb9bf50x.S + + + + Compiler + + $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c + + + $PROJ_DIR$\..\..\components\libc\compilers\common\time.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c + + + + CPU + + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c + + + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + + + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S + + + + DeviceDrivers + + $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\completion.c + + + $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c + + + $PROJ_DIR$\..\..\components\drivers\serial\serial.c + + + + Drivers + + $PROJ_DIR$\drivers\fm3_uart.c + + + $PROJ_DIR$\drivers\led.c + + + $PROJ_DIR$\drivers\nand.c + + + $PROJ_DIR$\drivers\board.c + + + + Finsh + + $PROJ_DIR$\..\..\components\finsh\shell.c + + + $PROJ_DIR$\..\..\components\finsh\msh.c + + + + Kernel + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\mem.c + + + $PROJ_DIR$\..\..\src\idle.c + + + $PROJ_DIR$\..\..\src\memheap.c + + + $PROJ_DIR$\..\..\src\irq.c + + + $PROJ_DIR$\..\..\src\object.c + + + $PROJ_DIR$\..\..\src\components.c + + + $PROJ_DIR$\..\..\src\kservice.c + + + $PROJ_DIR$\..\..\src\thread.c + + + $PROJ_DIR$\..\..\src\clock.c + + + $PROJ_DIR$\..\..\src\timer.c + + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\src\scheduler.c + + + + POSIX + + + utestcases + + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/project.eww b/bsp/fujitsu/mb9x/mb9bf506r/project.eww new file mode 100644 index 0000000000..c2cb02eb1e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/project.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\project.ewp + + + + + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/project.uvproj b/bsp/fujitsu/mb9x/mb9bf506r/project.uvproj new file mode 100644 index 0000000000..8eaab29744 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/project.uvproj @@ -0,0 +1,697 @@ + + + 1.1 +
### uVision Project, (C) Keil Software
+ + + rtthread-fm3 + 0x4 + ARM-ADS + + + MB9BF506R + Fujitsu Semiconductors + IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000) + 5216 + MB9BF506R.h + + + + + + + + + + SFD\Fujitsu\MB9B500\MB9BF506R.SFR + 0 + + + + Fujitsu\MB9B500\ + Fujitsu\MB9B500\ + + 0 + 0 + 0 + 0 + 1 + + .\build\ + rtthread-stm32 + 1 + 0 + 0 + 1 + 0 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + + 0 + 7 + + + + + + + + + + + + + + Segger\JL2CM3.dll + + + + + 1 + 0 + 0 + 1 + 1 + 4099 + + Segger\JL2CM3.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x8000 + + + 1 + 0x0 + 0x80000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x80000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x8000 + + + 0 + 0x1fff8000 + 0x8000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND + + applications;.;libraries\Device\FUJISTU\MB9BF50x\Include;libraries\CMSIS\Include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + + + + + + + + + + + + Applications + + + application.c + 1 + applications\application.c + + + + + startup.c + 1 + applications\startup.c + + + + + CMSIS + + + startup_mb9bf50x.S + 2 + libraries\Device\FUJISTU\MB9BF50x\Source\ARM\startup_mb9bf50x.S + + + + + system_mb9bf50x.c + 1 + libraries\Device\FUJISTU\MB9BF50x\Source\system_mb9bf50x.c + + + + + Compiler + + + syscall_mem.c + 1 + ..\..\components\libc\compilers\armlibc\syscall_mem.c + + + + + syscalls.c + 1 + ..\..\components\libc\compilers\armlibc\syscalls.c + + + + + time.c + 1 + ..\..\components\libc\compilers\common\time.c + + + + + stdlib.c + 1 + ..\..\components\libc\compilers\common\stdlib.c + + + + + CPU + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + + + + showmem.c + 1 + ..\..\libcpu\arm\common\showmem.c + + + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m3\context_rvds.S + + + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m3\cpuport.c + + + + + DeviceDrivers + + + ringbuffer.c + 1 + ..\..\components\drivers\ipc\ringbuffer.c + + + + + completion.c + 1 + ..\..\components\drivers\ipc\completion.c + + + + + ringblk_buf.c + 1 + ..\..\components\drivers\ipc\ringblk_buf.c + + + + + dataqueue.c + 1 + ..\..\components\drivers\ipc\dataqueue.c + + + + + pipe.c + 1 + ..\..\components\drivers\ipc\pipe.c + + + + + workqueue.c + 1 + ..\..\components\drivers\ipc\workqueue.c + + + + + waitqueue.c + 1 + ..\..\components\drivers\ipc\waitqueue.c + + + + + serial.c + 1 + ..\..\components\drivers\serial\serial.c + + + + + Drivers + + + led.c + 1 + drivers\led.c + + + + + board.c + 1 + drivers\board.c + + + + + nand.c + 1 + drivers\nand.c + + + + + fm3_uart.c + 1 + drivers\fm3_uart.c + + + + + Finsh + + + shell.c + 1 + ..\..\components\finsh\shell.c + + + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + + + Kernel + + + components.c + 1 + ..\..\src\components.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + device.c + 1 + ..\..\src\device.c + + + + + memheap.c + 1 + ..\..\src\memheap.c + + + + + mem.c + 1 + ..\..\src\mem.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + clock.c + 1 + ..\..\src\clock.c + + + + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf506r/rtconfig.h b/bsp/fujitsu/mb9x/mb9bf506r/rtconfig.h new file mode 100644 index 0000000000..b7b675ab20 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/rtconfig.h @@ -0,0 +1,179 @@ +/* RT-Thread config file */ +#ifndef __RTTHREAD_CFG_H__ +#define __RTTHREAD_CFG_H__ + +// + +// +#define RT_NAME_MAX 8 +// +#define RT_ALIGN_SIZE 8 +// +// 8 +// 32 +// 256 +// +#define RT_THREAD_PRIORITY_MAX 32 +// +#define RT_TICK_PER_SECOND 100 +//
+// #define RT_DEBUG +// +// #define RT_THREAD_DEBUG +// +#define RT_USING_OVERFLOW_CHECK +//
+ +// +#define RT_USING_HOOK +//
+// #define RT_USING_TIMER_SOFT +// +#define RT_TIMER_THREAD_PRIO 8 +// +#define RT_TIMER_THREAD_STACK_SIZE 512 +// +#define RT_TIMER_TICK_PER_SECOND 10 +//
+ +//
+// +#define RT_USING_SEMAPHORE +// +#define RT_USING_MUTEX +// +#define RT_USING_EVENT +// +#define RT_USING_MAILBOX +// +#define RT_USING_MESSAGEQUEUE +//
+ +//
+// +#define RT_USING_MEMPOOL +// +#define RT_USING_MEMHEAP +// +#define RT_USING_HEAP +// +#define RT_USING_SMALL_MEM +// +// #define RT_USING_SLAB +//
+ +//
+#define RT_USING_DEVICE +// +#define RT_USING_DEVICE_IPC +// +#define RT_USING_SERIAL +#define RT_SERIAL_USING_DMA +// +#define RT_USING_UART0_0 +// +// #define RT_USING_UART0_1 +// +// #define RT_USING_UART1_0 +// +// #define RT_USING_UART1_1 +// +// #define RT_USING_UART2_0 +// +// #define RT_USING_UART2_1 +// +// #define RT_USING_UART2_2 +// +// #define RT_USING_UART3_0 +// +// #define RT_USING_UART3_1 +// +// #define RT_USING_UART3_2 +// +// #define RT_USING_UART4_0 +// +// #define RT_USING_UART4_1 +// +#define RT_USING_UART4_2 +// +// #define RT_USING_UART5_0 +// +// #define RT_USING_UART5_1 +// +// #define RT_USING_UART5_2 +// +// #define RT_USING_UART6_0 +// +// #define RT_USING_UART6_1 +// +#define RT_USING_UART7_0 +// +// #define RT_USING_UART7_1 +// +#define RT_UART_RX_BUFFER_SIZE 64 +//
+ +//
+#define RT_USING_CONSOLE +// +#define RT_CONSOLEBUF_SIZE 128 +// +#define RT_CONSOLE_DEVICE_NAME "uart0" +//
+ +// +#define RT_USING_COMPONENTS_INIT +//
+#define RT_USING_FINSH +// +#define FINSH_USING_SYMTAB +// +#define FINSH_USING_DESCRIPTION +// +#define FINSH_THREAD_STACK_SIZE 4096 +//
+ +//
+// +// #define RT_USING_NEWLIB +// +// #define RT_USING_PTHREADS +//
+ +//
+// #define RT_USING_DFS +// +// #define DFS_USING_WORKDIR +// +#define DFS_FILESYSTEMS_MAX 2 +// +#define DFS_FD_MAX 4 +// +#define RT_USING_DFS_ELMFAT +// +// 1 +// 2 +// +#define RT_DFS_ELM_USE_LFN 1 +// +#define RT_DFS_ELM_MAX_LFN 64 +// +// #define RT_USING_DFS_YAFFS2 +// +// #define RT_USING_DFS_UFFS +// +// #define RT_USING_DFS_DEVFS +// +// #define RT_USING_DFS_NFS +// +#define RT_NFS_HOST_EXPORT "192.168.1.5:/" +//
+ +// +// #define RT_USING_CMSIS_OS +// +// #define RT_USING_BSP_CMSIS + +//
+ +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf506r/rtconfig.py b/bsp/fujitsu/mb9x/mb9bf506r/rtconfig.py new file mode 100644 index 0000000000..d8b525f291 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/rtconfig.py @@ -0,0 +1,121 @@ +import os + +# toolchains options +ARCH='arm' +CPU='cortex-m3' +CROSS_TOOL='iar' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +# cross_tool provides the cross compiler +# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = 'C:/Keil' +elif CROSS_TOOL == 'iar': + PLATFORM = 'iar' + EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation' + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' + CFLAGS = DEVICE + AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-mb9bf506.ld -nostartfiles' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' +elif PLATFORM == 'armcc': + # toolchains + CC = 'armcc' + AS = 'armasm' + AR = 'armar' + LINK = 'armlink' + TARGET_EXT = 'axf' + + DEVICE = ' --device DARMSTM' + CFLAGS = DEVICE + ' --apcs=interwork' + AFLAGS = DEVICE + LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-fm3.map --scatter rtthread-mb9bf506.sct' + + CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' + LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' + + EXEC_PATH += '/arm/bin40/' + + if BUILD == 'debug': + CFLAGS += ' -g -O0' + AFLAGS += ' -g' + else: + CFLAGS += ' -O2' + + POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' + +elif PLATFORM == 'iar': + # toolchains + CC = 'iccarm' + AS = 'iasmarm' + AR = 'iarchive' + LINK = 'ilinkarm' + TARGET_EXT = 'out' + + CFLAGS = '' + CFLAGS += ' --diag_suppress Pa050' + CFLAGS += ' --no_cse' + CFLAGS += ' --no_unroll' + CFLAGS += ' --no_inline' + CFLAGS += ' --no_code_motion' + CFLAGS += ' --no_tbaa' + CFLAGS += ' --no_clustering' + CFLAGS += ' --no_scheduling' + CFLAGS += ' --debug' + CFLAGS += ' --endian=little' + CFLAGS += ' --cpu=Cortex-M3' + CFLAGS += ' -e' + CFLAGS += ' --fpu=None' + CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' + CFLAGS += ' -Ol' + CFLAGS += ' --use_c++_inline' + + AFLAGS = '' + AFLAGS += ' -s+' + AFLAGS += ' -w+' + AFLAGS += ' -r' + AFLAGS += ' --cpu Cortex-M3' + AFLAGS += ' --fpu None' + AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"' + + LFLAGS = ' --config rtthread-mb9bf506.icf' + LFLAGS += ' --semihosting' + LFLAGS += ' --entry __iar_program_start' + + EXEC_PATH = EXEC_PATH + '/arm/bin/' + POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec' diff --git a/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.icf b/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.icf new file mode 100644 index 0000000000..66b859d099 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.icf @@ -0,0 +1,34 @@ +/*###ICF### Section handled by ICF editor, don't touch! ****/ +/*-Editor annotation file-*/ +/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ +/*-Specials-*/ +define symbol __ICFEDIT_intvec_start__ = 0x00000000; +/*-Memory Regions-*/ +define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; +define symbol __ICFEDIT_region_ROM_end__ = 0x0007FFFF; +define symbol __ICFEDIT_region_RAM_start__ = 0x1FFF8000; +define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF; +/*-Sizes-*/ +define symbol __ICFEDIT_size_cstack__ = 0x400; +define symbol __ICFEDIT_size_heap__ = 0; +/**** End of ICF editor section. ###ICF###*/ + + +define memory mem with size = 4G; +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; +define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; + +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; + +initialize by copy { readwrite }; +do not initialize { section .noinit }; + +keep { section FSymTab }; +keep { section VSymTab }; + +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; + +place in ROM_region { readonly }; +place in RAM_region { readwrite, + block CSTACK, block HEAP }; \ No newline at end of file diff --git a/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.ld b/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.ld new file mode 100644 index 0000000000..644c891306 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.ld @@ -0,0 +1,221 @@ +/* Linker script to configure memory regions + * + * Version:CodeSourcery Sourcery G++ Lite 2007q3-53 + * BugURL:https://support.codesourcery.com/GNUToolchain/ + * + * Copyright 2007 CodeSourcery. + * + * 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(_start) +SEARCH_DIR(.) + +MEMORY +{ + rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00080000 /* 512k */ + ram (rwx) : ORIGIN = 0x1FFF8000, LENGTH = 0x00010000 /* 32k */ +} + +/* These force the linker to search for particular symbols from + * the start of the link process and thus ensure the user's + * overrides are picked up + */ +EXTERN(__cs3_reset_cortex_m) +EXTERN(__cs3_interrupt_vector_cortex_m) +EXTERN(__cs3_start_c main __cs3_stack __cs3_stack_size __cs3_heap_end) + +PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram); +PROVIDE(__cs3_stack_size = __cs3_region_start_ram + __cs3_region_size_ram - _end); +PROVIDE(__cs3_heap_start = _end); +PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); + +SECTIONS +{ + .text : + { + CREATE_OBJECT_SYMBOLS + __cs3_region_start_rom = .; + *(.cs3.region-head.rom) + __cs3_interrupt_vector = __cs3_interrupt_vector_cortex_m; + *(.cs3.interrupt_vector) + /* Make sure we pulled in an interrupt vector. */ + ASSERT (. != __cs3_interrupt_vector_cortex_m, "No interrupt vector"); + *(.rom) + *(.rom.b) + + __cs3_reset = __cs3_reset_cortex_m; + *(.cs3.reset) + /* Make sure we pulled in some reset code. */ + ASSERT (. != __cs3_reset, "No reset code"); + + *(.text .text.* .gnu.linkonce.t.*) + *(.plt) + *(.gnu.warning) + *(.glue_7t) *(.glue_7) *(.vfp11_veneer) + + *(.rodata .rodata.* .gnu.linkonce.r.*) + + *(.ARM.extab* .gnu.linkonce.armextab.*) + *(.gcc_except_table) + *(.eh_frame_hdr) + *(.eh_frame) + + . = ALIGN(4); + KEEP(*(.init)) + + . = ALIGN(4); + __preinit_array_start = .; + KEEP (*(.preinit_array)) + __preinit_array_end = .; + + . = ALIGN(4); + __init_array_start = .; + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array)) + __init_array_end = .; + + . = ALIGN(0x4); + KEEP (*crtbegin.o(.ctors)) + KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) + KEEP (*(SORT(.ctors.*))) + KEEP (*crtend.o(.ctors)) + + . = ALIGN(4); + KEEP(*(.fini)) + + . = ALIGN(4); + __fini_array_start = .; + KEEP (*(.fini_array)) + KEEP (*(SORT(.fini_array.*))) + __fini_array_end = .; + + KEEP (*crtbegin.o(.dtors)) + KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) + KEEP (*(SORT(.dtors.*))) + KEEP (*crtend.o(.dtors)) + + . = ALIGN(4); + __cs3_regions = .; + LONG (0) + LONG (__cs3_region_init_ram) + LONG (__cs3_region_start_ram) + LONG (__cs3_region_init_size_ram) + LONG (__cs3_region_zero_size_ram) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + + } + + /* .ARM.exidx is sorted, so has to go in its own output section. */ + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + } >rom + __exidx_end = .; + .text.align : + { + . = ALIGN(8); + _etext = .; + } >rom + __cs3_region_size_rom = LENGTH(rom); + __cs3_region_num = 1; + + .data : + { + __cs3_region_start_ram = .; + *(.cs3.region-head.ram) + KEEP(*(.jcr)) + *(.got.plt) *(.got) + *(.shdata) + *(.data .data.* .gnu.linkonce.d.*) + *(.ram) + . = ALIGN (8); + _edata = .; + } >ram AT>rom + + .bss : + { + *(.shbss) + *(.bss .bss.* .gnu.linkonce.b.*) + *(COMMON) + *(.ram.b) + . = ALIGN (8); + _end = .; + __end = .; + } >ram AT>rom + + .heap : + { + *(.heap) + } >ram + + __bss_end = .; + + .stack (__cs3_stack - __cs3_stack_size) : + { + *(.stack) + } >ram + + __cs3_region_init_ram = LOADADDR (.data); + __cs3_region_init_size_ram = _edata - __cs3_region_start_ram; + __cs3_region_zero_size_ram = _end - _edata; + __cs3_region_size_ram = LENGTH(ram); + __cs3_region_num = 1; + + .stab 0 (NOLOAD) : { *(.stab) } + .stabstr 0 (NOLOAD) : { *(.stabstr) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } + + .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } + .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) } + /DISCARD/ : { *(.note.GNU-stack) } +} diff --git a/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.sct b/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.sct new file mode 100644 index 0000000000..6a8744246a --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/rtthread-mb9bf506.sct @@ -0,0 +1,15 @@ +; ************************************************************* +; *** Scatter-Loading Description File generated by uVision *** +; ************************************************************* + +LR_IROM1 0x00000000 0x00080000 { ; load region size_region + ER_IROM1 0x00000000 0x00080000 { ; load address = execution address + *.o (RESET, +First) + *(InRoot$$Sections) + .ANY (+RO) + } + RW_IRAM1 0x20000000 0x00008000 { ; RW data + .ANY (+RW +ZI) + } +} + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/template.ewp b/bsp/fujitsu/mb9x/mb9bf506r/template.ewp new file mode 100644 index 0000000000..40100eb5cb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/template.ewp @@ -0,0 +1,1739 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 20 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 26 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 11 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 20 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 26 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 11 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + + diff --git a/bsp/fujitsu/mb9x/mb9bf506r/template.uvproj b/bsp/fujitsu/mb9x/mb9bf506r/template.uvproj new file mode 100644 index 0000000000..137c045dea --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf506r/template.uvproj @@ -0,0 +1,388 @@ + + + + 1.1 + +
### uVision Project, (C) Keil Software
+ + + + rtthread-fm3 + 0x4 + ARM-ADS + + + MB9BF506R + Fujitsu Semiconductors + IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000) + 5216 + MB9BF506R.h + + + + + + + + + + SFD\Fujitsu\MB9B500\MB9BF506R.SFR + 0 + + + + Fujitsu\MB9B500\ + Fujitsu\MB9B500\ + + 0 + 0 + 0 + 0 + 1 + + .\build\ + rtthread-stm32 + 1 + 0 + 0 + 1 + 0 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + + 0 + 7 + + + + + + + + + + + + + + Segger\JL2CM3.dll + + + + + 1 + 0 + 0 + 1 + 1 + 4099 + + Segger\JL2CM3.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x8000 + + + 1 + 0x0 + 0x80000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x80000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x8000 + + + 0 + 0x1fff8000 + 0x8000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + + + + + + + + + + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s new file mode 100644 index 0000000000..416a56f41d --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s @@ -0,0 +1,584 @@ +;******************************************************************************* +; Copyright (C) 2013 Spansion LLC. All Rights Reserved. +; +; This software is owned and published by: +; Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). +; +; BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND +; BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. +; +; This software contains source code for use with Spansion +; components. This software is licensed by Spansion to be adapted only +; for use in systems utilizing Spansion components. Spansion shall not be +; responsible for misuse or illegal use of this software for devices not +; supported herein. Spansion is providing this software "AS IS" and will +; not be responsible for issues arising from incorrect user implementation +; of the software. +; +; SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, +; REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), +; ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, +; WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED +; WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED +; WARRANTY OF NONINFRINGEMENT. +; SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, +; NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT +; LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, +; LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR +; INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, +; INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, +; SAVINGS OR PROFITS, +; EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +; YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR +; INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED +; FROM, THE SOFTWARE. +; +; This software may be replicated in part or whole for the licensed use, +; with the restriction that this Disclaimer and Copyright notice must be +; included with each copy of this software, whether used in part or whole, +; at all times. +; + +; Stack Configuration +; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> + +Stack_Size EQU 0x00000400 + + AREA STACK, NOINIT, READWRITE, ALIGN=3 +Stack_Mem SPACE Stack_Size +__initial_sp + + +; Heap Configuration +; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> + +Heap_Size EQU 0x00000200 + + AREA HEAP, NOINIT, READWRITE, ALIGN=3 +__heap_base +Heap_Mem SPACE Heap_Size +__heap_limit + + + PRESERVE8 + THUMB + + +; Vector Table Mapped to Address 0 at Reset + + AREA RESET, DATA, READONLY + EXPORT __Vectors + EXPORT __Vectors_End + EXPORT __Vectors_Size + +__Vectors DCD __initial_sp ; Top of Stack + DCD Reset_Handler ; Reset Handler + DCD NMI_Handler ; NMI Handler + DCD HardFault_Handler ; Hard Fault Handler + DCD MemManage_Handler ; MPU Fault Handler + DCD BusFault_Handler ; Bus Fault Handler + DCD UsageFault_Handler ; Usage Fault Handler + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall Handler + DCD DebugMon_Handler ; Debug Monitor Handler + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV Handler + DCD SysTick_Handler ; SysTick Handler + +; Numbered IRQ handler vectors + +; Note: renaming to device dependent ISR function names are done in +; pdl.h (section "IRQ name definition for all type MCUs" + + DCD CSV_IRQHandler + DCD SWDT_IRQHandler + DCD LVD_IRQHandler + DCD IRQ003SEL_IRQHandler + DCD IRQ004SEL_IRQHandler + DCD IRQ005SEL_IRQHandler + DCD IRQ006SEL_IRQHandler + DCD IRQ007SEL_IRQHandler + DCD IRQ008SEL_IRQHandler + DCD IRQ009SEL_IRQHandler + DCD IRQ010SEL_IRQHandler + DCD EXINT0_IRQHandler + DCD EXINT1_IRQHandler + DCD EXINT2_IRQHandler + DCD EXINT3_IRQHandler + DCD EXINT4_IRQHandler + DCD EXINT5_IRQHandler + DCD EXINT6_IRQHandler + DCD EXINT7_IRQHandler + DCD QPRC0_IRQHandler + DCD QPRC1_IRQHandler + DCD WFG0_DTIF0_IRQHandler + DCD WFG1_DTIF1_IRQHandler + DCD WFG2_DTIF2_IRQHandler + DCD FRT0_PEAK_IRQHandler + DCD FRT0_ZERO_IRQHandler + DCD ICU0_IRQHandler + DCD OCU0_IRQHandler + DCD FRT1_PEAK_IRQHandler + DCD FRT1_ZERO_IRQHandler + DCD ICU1_IRQHandler + DCD OCU1_IRQHandler + DCD FRT2_PEAK_IRQHandler + DCD FRT2_ZERO_IRQHandler + DCD ICU2_IRQHandler + DCD OCU2_IRQHandler + DCD PPG00_02_04_IRQHandler + DCD PPG08_10_12_IRQHandler + DCD PPG16_18_20_IRQHandler + DCD BT0_IRQHandler + DCD BT1_IRQHandler + DCD BT2_IRQHandler + DCD BT3_IRQHandler + DCD BT4_IRQHandler + DCD BT5_IRQHandler + DCD BT6_IRQHandler + DCD BT7_IRQHandler + DCD DT1_2_IRAHandler + DCD WC_IRQHandler + DCD EXTBUS_ERR_Handler + DCD RTC_IRQHandler + DCD EXTINT8_IRQHandler + DCD EXTINT9_IRQHandler + DCD EXTINT10_IRQHandler + DCD EXTINT11_IRQHandler + DCD EXTINT12_IRQHandler + DCD EXTINT13_IRQHandler + DCD EXTINT14_IRQHandler + DCD EXTINT15_IRQHandler + DCD TIM_IRQHandler + DCD MFS0_RX_IRQHandler + DCD MFS0_TX_IRQHandler + DCD MFS1_RX_IRQHandler + DCD MFS1_TX_IRQHandler + DCD MFS2_RX_IRQHandler + DCD MFS2_TX_IRQHandler + DCD MFS3_RX_IRQHandler + DCD MFS3_TX_IRQHandler + DCD MFS4_RX_IRQHandler + DCD MFS4_TX_IRQHandler + DCD MFS5_RX_IRQHandler + DCD MFS5_TX_IRQHandler + DCD MFS6_RX_IRQHandler + DCD MFS6_TX_IRQHandler + DCD MFS7_RX_IRQHandler + DCD MFS7_TX_IRQHandler + DCD ADC0_IRQHandler + DCD ADC1_IRQHandler + DCD USB0_IRQHandler + DCD USB0_HOST_IRQHandler + DCD CAN0_IRQHandler + DCD CAN1_IRQHandler + DCD ETHER0_IRQHandler + DCD DMAC0_IRQHandler + DCD DMAC1_IRQHandler + DCD DMAC2_IRQHandler + DCD DMAC3_IRQHandler + DCD DMAC4_IRQHandler + DCD DMAC5_IRQHandler + DCD DMAC6_IRQHandler + DCD DMAC7_IRQHandler + DCD DSTC_IRQHandler + DCD EXINT16_17_18_19_IRQHandler + DCD EXINT20_21_22_23_IRQHandler + DCD EXINT24_25_26_27_IRQHandler + DCD EXINT28_29_30_31_IRQHandler + DCD QPRC2_IRQHandler + DCD QPRC3_IRQHandler + DCD BT8_IRQHandler + DCD BT9_IRQHandler + DCD BT10_IRQHandler + DCD BT11_IRQHandler + DCD BT12_15_IRQHandler + DCD MFS8_RX_IRQHandler + DCD MFS8_TX_IRQHandler + DCD MFS9_RX_IRQHandler + DCD MFS9_TX_IRQHandler + DCD MFS10_RX_IRQHandler + DCD MFS10_TX_IRQHandler + DCD MFS11_RX_IRQHandler + DCD MFS11_TX_IRQHandler + DCD ADC2_IRQHandler + DCD Dummy + DCD USB1_IRQHandler + DCD USB1_HOST_IRQHandler + DCD Dummy + DCD Dummy + DCD Dummy + DCD SD_IRQHandler + DCD FLASHIF_IRQHandler + DCD MFS12_RX_IRQHandler + DCD MFS12_TX_IRQHandler + DCD MFS13_RX_IRQHandler + DCD MFS13_TX_IRQHandler + DCD MFS14_RX_IRQHandler + DCD MFS14_TX_IRQHandler + DCD MFS15_RX_IRQHandler + DCD MFS15_TX_IRQHandler +__Vectors_End + +__Vectors_Size EQU __Vectors_End - __Vectors + + AREA |.text|, CODE, READONLY + + +; Reset Handler + +Reset_Handler PROC + EXPORT Reset_Handler [WEAK] + IMPORT SystemInit + IMPORT __main + + LDR.W R0, =0xE000ED88 ; CPACR is located at address 0xE000ED88 + LDR R1, [R0] ; Read CPACR + ORR R1, R1, #(0xF << 20) ; Set bits 20-23 to enable CP10 and CP11 coprocessors + STR R1, [R0] ; Write back the modified value to the CPACR + + LDR R0, =SystemInit + BLX R0 + LDR R0, =__main + BX R0 + ENDP + + +; Dummy Exception Handlers (infinite loops which can be modified) + +NMI_Handler PROC + EXPORT NMI_Handler [WEAK] + B . + ENDP +HardFault_Handler\ + PROC + EXPORT HardFault_Handler [WEAK] + B . + ENDP +MemManage_Handler\ + PROC + EXPORT MemManage_Handler [WEAK] + B . + ENDP +BusFault_Handler\ + PROC + EXPORT BusFault_Handler [WEAK] + B . + ENDP +UsageFault_Handler\ + PROC + EXPORT UsageFault_Handler [WEAK] + B . + ENDP +SVC_Handler PROC + EXPORT SVC_Handler [WEAK] + B . + ENDP +DebugMon_Handler\ + PROC + EXPORT DebugMon_Handler [WEAK] + B . + ENDP +PendSV_Handler PROC + EXPORT PendSV_Handler [WEAK] + B . + ENDP +SysTick_Handler PROC + EXPORT SysTick_Handler [WEAK] + B . + ENDP + +Default_Handler PROC + + EXPORT CSV_IRQHandler [WEAK] + EXPORT SWDT_IRQHandler [WEAK] + EXPORT LVD_IRQHandler [WEAK] + EXPORT IRQ003SEL_IRQHandler [WEAK] + EXPORT IRQ004SEL_IRQHandler [WEAK] + EXPORT IRQ005SEL_IRQHandler [WEAK] + EXPORT IRQ006SEL_IRQHandler [WEAK] + EXPORT IRQ007SEL_IRQHandler [WEAK] + EXPORT IRQ008SEL_IRQHandler [WEAK] + EXPORT IRQ009SEL_IRQHandler [WEAK] + EXPORT IRQ010SEL_IRQHandler [WEAK] + EXPORT EXINT0_IRQHandler [WEAK] + EXPORT EXINT1_IRQHandler [WEAK] + EXPORT EXINT2_IRQHandler [WEAK] + EXPORT EXINT3_IRQHandler [WEAK] + EXPORT EXINT4_IRQHandler [WEAK] + EXPORT EXINT5_IRQHandler [WEAK] + EXPORT EXINT6_IRQHandler [WEAK] + EXPORT EXINT7_IRQHandler [WEAK] + EXPORT QPRC0_IRQHandler [WEAK] + EXPORT QPRC1_IRQHandler [WEAK] + EXPORT WFG0_DTIF0_IRQHandler [WEAK] + EXPORT WFG1_DTIF1_IRQHandler [WEAK] + EXPORT WFG2_DTIF2_IRQHandler [WEAK] + EXPORT FRT0_PEAK_IRQHandler [WEAK] + EXPORT FRT0_ZERO_IRQHandler [WEAK] + EXPORT ICU0_IRQHandler [WEAK] + EXPORT OCU0_IRQHandler [WEAK] + EXPORT FRT1_PEAK_IRQHandler [WEAK] + EXPORT FRT1_ZERO_IRQHandler [WEAK] + EXPORT ICU1_IRQHandler [WEAK] + EXPORT OCU1_IRQHandler [WEAK] + EXPORT FRT2_PEAK_IRQHandler [WEAK] + EXPORT FRT2_ZERO_IRQHandler [WEAK] + EXPORT ICU2_IRQHandler [WEAK] + EXPORT OCU2_IRQHandler [WEAK] + EXPORT PPG00_02_04_IRQHandler [WEAK] + EXPORT PPG08_10_12_IRQHandler [WEAK] + EXPORT PPG16_18_20_IRQHandler [WEAK] + EXPORT BT0_IRQHandler [WEAK] + EXPORT BT1_IRQHandler [WEAK] + EXPORT BT2_IRQHandler [WEAK] + EXPORT BT3_IRQHandler [WEAK] + EXPORT BT4_IRQHandler [WEAK] + EXPORT BT5_IRQHandler [WEAK] + EXPORT BT6_IRQHandler [WEAK] + EXPORT BT7_IRQHandler [WEAK] + EXPORT DT1_2_IRAHandler [WEAK] + EXPORT WC_IRQHandler [WEAK] + EXPORT EXTBUS_ERR_Handler [WEAK] + EXPORT RTC_IRQHandler [WEAK] + EXPORT EXTINT8_IRQHandler [WEAK] + EXPORT EXTINT9_IRQHandler [WEAK] + EXPORT EXTINT10_IRQHandler [WEAK] + EXPORT EXTINT11_IRQHandler [WEAK] + EXPORT EXTINT12_IRQHandler [WEAK] + EXPORT EXTINT13_IRQHandler [WEAK] + EXPORT EXTINT14_IRQHandler [WEAK] + EXPORT EXTINT15_IRQHandler [WEAK] + EXPORT TIM_IRQHandler [WEAK] + EXPORT MFS0_RX_IRQHandler [WEAK] + EXPORT MFS0_TX_IRQHandler [WEAK] + EXPORT MFS1_RX_IRQHandler [WEAK] + EXPORT MFS1_TX_IRQHandler [WEAK] + EXPORT MFS2_RX_IRQHandler [WEAK] + EXPORT MFS2_TX_IRQHandler [WEAK] + EXPORT MFS3_RX_IRQHandler [WEAK] + EXPORT MFS3_TX_IRQHandler [WEAK] + EXPORT MFS4_RX_IRQHandler [WEAK] + EXPORT MFS4_TX_IRQHandler [WEAK] + EXPORT MFS5_RX_IRQHandler [WEAK] + EXPORT MFS5_TX_IRQHandler [WEAK] + EXPORT MFS6_RX_IRQHandler [WEAK] + EXPORT MFS6_TX_IRQHandler [WEAK] + EXPORT MFS7_RX_IRQHandler [WEAK] + EXPORT MFS7_TX_IRQHandler [WEAK] + EXPORT ADC0_IRQHandler [WEAK] + EXPORT ADC1_IRQHandler [WEAK] + EXPORT USB0_IRQHandler [WEAK] + EXPORT USB0_HOST_IRQHandler [WEAK] + EXPORT CAN0_IRQHandler [WEAK] + EXPORT CAN1_IRQHandler [WEAK] + EXPORT ETHER0_IRQHandler [WEAK] + EXPORT DMAC0_IRQHandler [WEAK] + EXPORT DMAC1_IRQHandler [WEAK] + EXPORT DMAC2_IRQHandler [WEAK] + EXPORT DMAC3_IRQHandler [WEAK] + EXPORT DMAC4_IRQHandler [WEAK] + EXPORT DMAC5_IRQHandler [WEAK] + EXPORT DMAC6_IRQHandler [WEAK] + EXPORT DMAC7_IRQHandler [WEAK] + EXPORT DSTC_IRQHandler [WEAK] + EXPORT EXINT16_17_18_19_IRQHandler [WEAK] + EXPORT EXINT20_21_22_23_IRQHandler [WEAK] + EXPORT EXINT24_25_26_27_IRQHandler [WEAK] + EXPORT EXINT28_29_30_31_IRQHandler [WEAK] + EXPORT QPRC2_IRQHandler [WEAK] + EXPORT QPRC3_IRQHandler [WEAK] + EXPORT BT8_IRQHandler [WEAK] + EXPORT BT9_IRQHandler [WEAK] + EXPORT BT10_IRQHandler [WEAK] + EXPORT BT11_IRQHandler [WEAK] + EXPORT BT12_15_IRQHandler [WEAK] + EXPORT MFS8_RX_IRQHandler [WEAK] + EXPORT MFS8_TX_IRQHandler [WEAK] + EXPORT MFS9_RX_IRQHandler [WEAK] + EXPORT MFS9_TX_IRQHandler [WEAK] + EXPORT MFS10_RX_IRQHandler [WEAK] + EXPORT MFS10_TX_IRQHandler [WEAK] + EXPORT MFS11_RX_IRQHandler [WEAK] + EXPORT MFS11_TX_IRQHandler [WEAK] + EXPORT ADC2_IRQHandler [WEAK] + EXPORT USB1_IRQHandler [WEAK] + EXPORT USB1_HOST_IRQHandler [WEAK] + EXPORT SD_IRQHandler [WEAK] + EXPORT FLASHIF_IRQHandler [WEAK] + EXPORT MFS12_RX_IRQHandler [WEAK] + EXPORT MFS12_TX_IRQHandler [WEAK] + EXPORT MFS13_RX_IRQHandler [WEAK] + EXPORT MFS13_TX_IRQHandler [WEAK] + EXPORT MFS14_RX_IRQHandler [WEAK] + EXPORT MFS14_TX_IRQHandler [WEAK] + EXPORT MFS15_RX_IRQHandler [WEAK] + EXPORT MFS15_TX_IRQHandler [WEAK] + EXPORT Dummy [WEAK] + + + +CSV_IRQHandler +SWDT_IRQHandler +LVD_IRQHandler +IRQ003SEL_IRQHandler +IRQ004SEL_IRQHandler +IRQ005SEL_IRQHandler +IRQ006SEL_IRQHandler +IRQ007SEL_IRQHandler +IRQ008SEL_IRQHandler +IRQ009SEL_IRQHandler +IRQ010SEL_IRQHandler +EXINT0_IRQHandler +EXINT1_IRQHandler +EXINT2_IRQHandler +EXINT3_IRQHandler +EXINT4_IRQHandler +EXINT5_IRQHandler +EXINT6_IRQHandler +EXINT7_IRQHandler +QPRC0_IRQHandler +QPRC1_IRQHandler +WFG0_DTIF0_IRQHandler +WFG1_DTIF1_IRQHandler +WFG2_DTIF2_IRQHandler +FRT0_PEAK_IRQHandler +FRT0_ZERO_IRQHandler +ICU0_IRQHandler +OCU0_IRQHandler +FRT1_PEAK_IRQHandler +FRT1_ZERO_IRQHandler +ICU1_IRQHandler +OCU1_IRQHandler +FRT2_PEAK_IRQHandler +FRT2_ZERO_IRQHandler +ICU2_IRQHandler +OCU2_IRQHandler +PPG00_02_04_IRQHandler +PPG08_10_12_IRQHandler +PPG16_18_20_IRQHandler +BT0_IRQHandler +BT1_IRQHandler +BT2_IRQHandler +BT3_IRQHandler +BT4_IRQHandler +BT5_IRQHandler +BT6_IRQHandler +BT7_IRQHandler +DT1_2_IRAHandler +WC_IRQHandler +EXTBUS_ERR_Handler +RTC_IRQHandler +EXTINT8_IRQHandler +EXTINT9_IRQHandler +EXTINT10_IRQHandler +EXTINT11_IRQHandler +EXTINT12_IRQHandler +EXTINT13_IRQHandler +EXTINT14_IRQHandler +EXTINT15_IRQHandler +TIM_IRQHandler +MFS0_RX_IRQHandler +MFS0_TX_IRQHandler +MFS1_RX_IRQHandler +MFS1_TX_IRQHandler +MFS2_RX_IRQHandler +MFS2_TX_IRQHandler +MFS3_RX_IRQHandler +MFS3_TX_IRQHandler +MFS4_RX_IRQHandler +MFS4_TX_IRQHandler +MFS5_RX_IRQHandler +MFS5_TX_IRQHandler +MFS6_RX_IRQHandler +MFS6_TX_IRQHandler +MFS7_RX_IRQHandler +MFS7_TX_IRQHandler +ADC0_IRQHandler +ADC1_IRQHandler +USB0_IRQHandler +USB0_HOST_IRQHandler +CAN0_IRQHandler +CAN1_IRQHandler +ETHER0_IRQHandler +DMAC0_IRQHandler +DMAC1_IRQHandler +DMAC2_IRQHandler +DMAC3_IRQHandler +DMAC4_IRQHandler +DMAC5_IRQHandler +DMAC6_IRQHandler +DMAC7_IRQHandler +DSTC_IRQHandler +EXINT16_17_18_19_IRQHandler +EXINT20_21_22_23_IRQHandler +EXINT24_25_26_27_IRQHandler +EXINT28_29_30_31_IRQHandler +QPRC2_IRQHandler +QPRC3_IRQHandler +BT8_IRQHandler +BT9_IRQHandler +BT10_IRQHandler +BT11_IRQHandler +BT12_15_IRQHandler +MFS8_RX_IRQHandler +MFS8_TX_IRQHandler +MFS9_RX_IRQHandler +MFS9_TX_IRQHandler +MFS10_RX_IRQHandler +MFS10_TX_IRQHandler +MFS11_RX_IRQHandler +MFS11_TX_IRQHandler +ADC2_IRQHandler +USB1_IRQHandler +USB1_HOST_IRQHandler +SD_IRQHandler +FLASHIF_IRQHandler +MFS12_RX_IRQHandler +MFS12_TX_IRQHandler +MFS13_RX_IRQHandler +MFS13_TX_IRQHandler +MFS14_RX_IRQHandler +MFS14_TX_IRQHandler +MFS15_RX_IRQHandler +MFS15_TX_IRQHandler +Dummy + + + B . + + ENDP + + + ALIGN + + +; User Initial Stack & Heap + + IF :DEF:__MICROLIB + + EXPORT __initial_sp + EXPORT __heap_base + EXPORT __heap_limit + + ELSE + + IMPORT __use_two_region_memory + EXPORT __user_initial_stackheap +__user_initial_stackheap + + LDR R0, = Heap_Mem + LDR R1, = (Stack_Mem + Stack_Size) + LDR R2, = (Heap_Mem + Heap_Size) + LDR R3, = Stack_Mem + BX LR + + ALIGN + + ENDIF + + + END diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/base_types.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/base_types.h new file mode 100644 index 0000000000..7b2fa72b5c --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/base_types.h @@ -0,0 +1,160 @@ +/******************************************************************************* +* Copyright (C) 2013 Spansion LLC. All Rights Reserved. +* +* This software is owned and published by: +* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). +* +* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND +* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. +* +* This software contains source code for use with Spansion +* components. This software is licensed by Spansion to be adapted only +* for use in systems utilizing Spansion components. Spansion shall not be +* responsible for misuse or illegal use of this software for devices not +* supported herein. Spansion is providing this software "AS IS" and will +* not be responsible for issues arising from incorrect user implementation +* of the software. +* +* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, +* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), +* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, +* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED +* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED +* WARRANTY OF NONINFRINGEMENT. +* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, +* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT +* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, +* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR +* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, +* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, +* SAVINGS OR PROFITS, +* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR +* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED +* FROM, THE SOFTWARE. +* +* This software may be replicated in part or whole for the licensed use, +* with the restriction that this Disclaimer and Copyright notice must be +* included with each copy of this software, whether used in part or whole, +* at all times. +*/ + +/*****************************************************************************/ +/** \file base_types.h + ** + ** Additional base type definitions to stddef.h and stdint.h + ** + ** History: + ** - 2013-03-21 1.0 MWi First version. + ** + *****************************************************************************/ + +#ifndef __BASE_TYPES_H__ +#define __BASE_TYPES_H__ + +/*****************************************************************************/ +/* Include files */ +/*****************************************************************************/ +#include +#include "stdint.h" + +/*****************************************************************************/ +/* Global pre-processor symbols/macros ('#define') */ +/*****************************************************************************/ +#ifndef TRUE + /** Value is true (boolean_t type) */ + #define TRUE ((boolean_t) 1) +#endif + +#ifndef FALSE + /** Value is false (boolean_t type) */ + #define FALSE ((boolean_t) 0) +#endif + +/** Returns the minimum value out of two values */ +#define MIN( X, Y ) ((X) < (Y) ? (X) : (Y)) + +/** Returns the maximum value out of two values */ +#define MAX( X, Y ) ((X) > (Y) ? (X) : (Y)) + +/** Returns the dimension of an array */ +#define DIM( X ) (sizeof(X) / sizeof(X[0])) + +/****************************************************************************** + * Global type definitions + ******************************************************************************/ + +/** logical datatype (only values are TRUE and FALSE) */ +typedef uint8_t boolean_t; + +/** single precision floating point number (4 byte) */ +typedef float float32_t; + +/** double precision floating point number (8 byte) */ +typedef double float64_t; + +/** ASCCI character for string generation (8 bit) */ +typedef char char_t; + +/** function pointer type to void/void function */ +typedef void (*func_ptr_t)(void); + +/** function pointer type to void/uint8_t function */ +typedef void (*func_ptr_arg1_t)(uint8_t); + +/** generic error codes */ +typedef enum en_result +{ + Ok = 0, ///< No error + Error = 1, ///< Non-specific error code + ErrorAddressAlignment = 2, ///< Address alignment does not match + ErrorAccessRights = 3, ///< Wrong mode (e.g. user/system) mode is set + ErrorInvalidParameter = 4, ///< Provided parameter is not valid + ErrorOperationInProgress = 5, ///< A conflicting or requested operation is still in progress + ErrorInvalidMode = 6, ///< Operation not allowed in current mode + ErrorUninitialized = 7, ///< Module (or part of it) was not initialized properly + ErrorBufferFull = 8, ///< Circular buffer can not be written because the buffer is full + ErrorTimeout = 9, ///< Time Out error occurred (e.g. I2C arbitration lost, Flash time-out, etc.) + ErrorNotReady = 10, ///< A requested final state is not reached + OperationInProgress = 11 ///< Indicator for operation in progress (e.g. ADC conversion not finished, DMA channel used, etc.) +} en_result_t; + +/** + ****************************************************************************** + ** \brief Level + ** + ** Specifies levels. + ** + ******************************************************************************/ +typedef enum en_level +{ + PDLLow = 0, ///< Low level '0' + PDLHigh = 1 ///< High level '1' +} en_level_t; + +/** + ****************************************************************************** + ** \brief Generic Flag Code + ** + ** Specifies flags. + ** + ******************************************************************************/ +typedef enum en_flag +{ + PdlClr = 0, ///< Flag clr '0' + PdlSet = 1 ///< Flag set '1' +} en_stat_flag_t, en_int_flag_t; + +/*****************************************************************************/ +/* Global variable declarations ('extern', definition in C source) */ +/*****************************************************************************/ + +/*****************************************************************************/ +/* Global function prototypes ('extern', definition in C source) */ +/*****************************************************************************/ + +#endif /* __BASE_TYPES_H__ */ + +/******************************************************************************/ +/* EOF (not truncated) */ +/******************************************************************************/ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S new file mode 100644 index 0000000000..72981f1edb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S @@ -0,0 +1,290 @@ +/**************************************************************************//** + * @file startup_.s + * @brief CMSIS Cortex-M# Core Device Startup File for + * Device + * @version V3.01 + * @date 06. March 2012 + * + * @note Version CodeSourcery Sourcery G++ Lite (with CS3) + * Copyright (C) 2012 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +/* +//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------ +*/ + + +/* +// Stack Configuration +// Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> +// +*/ + + .equ Stack_Size, 0x00000400 + .section ".stack", "w" + .align 3 + .globl __cs3_stack_mem + .globl __cs3_stack_size +__cs3_stack_mem: + .if Stack_Size + .space Stack_Size + .endif + .size __cs3_stack_mem, . - __cs3_stack_mem + .set __cs3_stack_size, . - __cs3_stack_mem + + +/* +// Heap Configuration +// Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> +// +*/ + + .equ Heap_Size, 0x00000100 + + .section ".heap", "w" + .align 3 + .globl __cs3_heap_start + .globl __cs3_heap_end +__cs3_heap_start: + .if Heap_Size + .space Heap_Size + .endif +__cs3_heap_end: + + +/* Vector Table */ + + .section ".cs3.interrupt_vector" + .globl __cs3_interrupt_vector_cortex_m + .type __cs3_interrupt_vector_cortex_m, %object + +__cs3_interrupt_vector_cortex_m: + .long __cs3_stack /* Top of Stack */ + .long __cs3_reset /* Reset Handler */ + .long NMI_Handler /* NMI Handler */ + .long HardFault_Handler /* Hard Fault Handler */ + .long MemManage_Handler /* MPU Fault Handler */ + .long BusFault_Handler /* Bus Fault Handler */ + .long UsageFault_Handler /* Usage Fault Handler */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long 0 /* Reserved */ + .long SVC_Handler /* SVCall Handler */ + .long DebugMon_Handler /* Debug Monitor Handler */ + .long 0 /* Reserved */ + .long PendSV_Handler /* PendSV Handler */ + .long SysTick_Handler /* SysTick Handler */ + + /* External Interrupts */ +/* ToDo: Add here the vectors for the device specific external interrupts handler */ + .long CSV_Handler /* 0: Clock Super Visor */ + .long SWDT_Handler /* 1: Software Watchdog Timer */ + .long LVD_Handler /* 2: Low Voltage Detector */ + .long MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ + .long INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ + .long INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ + .long DT_Handler /* 6: Dual Timer / Quad Decoder */ + .long MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ + .long MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ + .long MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ + .long MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ + .long MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ + .long MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ + .long MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ + .long MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ + .long MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ + .long MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ + .long MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ + .long MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ + .long MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ + .long MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ + .long MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ + .long MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ + .long PPG_Handler /* 23: PPG */ + .long TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ + .long ADC0_IRQHandler /* 25: ADC0 */ + .long ADC1_IRQHandler /* 26: ADC1 */ + .long ADC2_IRQHandler /* 27: ADC2 */ + .long MFT_FRT_IRQHandler /* 28: Free-run Timer */ + .long MFT_IPC_IRQHandler /* 29: Input Capture */ + .long MFT_OPC_IRQHandler /* 30: Output Compare */ + .long BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ + .long CAN0_IRQHandler /* 32: CAN ch.0 */ + .long CAN1_IRQHandler /* 33: CAN ch.1 */ + .long USBF_Handler /* 34: USB Function */ + .long USB_Handler /* 35: USB Function / USB HOST */ + .long RESERVED_1_IRQHandler /* 36: Reserved */ + .long RESERVED_2_IRQHandler /* 37: Reserved */ + .long DMAC0_Handler /* 38: DMAC ch.0 */ + .long DMAC1_Handler /* 39: DMAC ch.1 */ + .long DMAC2_Handler /* 40: DMAC ch.2 */ + .long DMAC3_Handler /* 41: DMAC ch.3 */ + .long DMAC4_Handler /* 42: DMAC ch.4 */ + .long DMAC5_Handler /* 43: DMAC ch.5 */ + .long DMAC6_Handler /* 44: DMAC ch.6 */ + .long DMAC7_Handler /* 45: DMAC ch.7 */ + .long RESERVED_3_IRQHandler /* 46: Reserved */ + .long RESERVED_4_IRQHandler /* 47: Reserved */ + + .size __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m + + + .thumb + + +/* Reset Handler */ + + .section .cs3.reset,"x",%progbits + .thumb_func + .globl __cs3_reset_cortex_m + .globl _start + .type __cs3_reset_cortex_m, %function +__cs3_reset_cortex_m: +_start: + .fnstart + LDR R0, =SystemInit + BLX R0 + LDR R0,=_start + BX R0 + .pool + .cantunwind + .fnend + .size __cs3_reset_cortex_m,.-__cs3_reset_cortex_m + + .section ".text" + +/* Exception Handlers */ + + .weak NMI_Handler + .type NMI_Handler, %function +NMI_Handler: + B . + .size NMI_Handler, . - NMI_Handler + + .weak HardFault_Handler + .type HardFault_Handler, %function +HardFault_Handler: + B . + .size HardFault_Handler, . - HardFault_Handler + + .weak MemManage_Handler + .type MemManage_Handler, %function +MemManage_Handler: + B . + .size MemManage_Handler, . - MemManage_Handler + + .weak BusFault_Handler + .type BusFault_Handler, %function +BusFault_Handler: + B . + .size BusFault_Handler, . - BusFault_Handler + + .weak UsageFault_Handler + .type UsageFault_Handler, %function +UsageFault_Handler: + B . + .size UsageFault_Handler, . - UsageFault_Handler + + .weak SVC_Handler + .type SVC_Handler, %function +SVC_Handler: + B . + .size SVC_Handler, . - SVC_Handler + + .weak DebugMon_Handler + .type DebugMon_Handler, %function +DebugMon_Handler: + B . + .size DebugMon_Handler, . - DebugMon_Handler + + .weak PendSV_Handler + .type PendSV_Handler, %function +PendSV_Handler: + B . + .size PendSV_Handler, . - PendSV_Handler + + .weak SysTick_Handler + .type SysTick_Handler, %function +SysTick_Handler: + B . + .size SysTick_Handler, . - SysTick_Handler + + +/* IRQ Handlers */ + +/* ToDo: Add here the export definition for the device specific external interrupts handler */ +/* ToDo: Add here the names for the device specific external interrupts handler */ + .globl Default_Handler + .type Default_Handler, %function +Default_Handler: + B . + .size Default_Handler, . - Default_Handler + + .macro IRQ handler + .weak \handler + .set \handler, Default_Handler + .endm + + IRQ CSV_Handler /* 0: Clock Super Visor */ + IRQ SWDT_Handler /* 1: Software Watchdog Timer */ + IRQ LVD_Handler /* 2: Low Voltage Detector */ + IRQ MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ + IRQ INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ + IRQ INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ + IRQ DT_Handler /* 6: Dual Timer / Quad Decoder */ + IRQ MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ + IRQ MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ + IRQ MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ + IRQ MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ + IRQ MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ + IRQ MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ + IRQ MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ + IRQ MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ + IRQ MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ + IRQ MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ + IRQ MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ + IRQ MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ + IRQ MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ + IRQ MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ + IRQ MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ + IRQ MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ + IRQ PPG_Handler /* 23: PPG */ + IRQ TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ + IRQ ADC0_IRQHandler /* 25: ADC0 */ + IRQ ADC1_IRQHandler /* 26: ADC1 */ + IRQ ADC2_IRQHandler /* 27: ADC2 */ + IRQ MFT_FRT_IRQHandler /* 28: Free-run Timer */ + IRQ MFT_IPC_IRQHandler /* 29: Input Capture */ + IRQ MFT_OPC_IRQHandler /* 30: Output Compare */ + IRQ BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ + IRQ CAN0_IRQHandler /* 32: CAN ch.0 */ + IRQ CAN1_IRQHandler /* 33: CAN ch.1 */ + IRQ USBF_Handler /* 34: USB Function */ + IRQ USB_Handler /* 35: USB Function / USB HOST */ + IRQ RESERVED_1_IRQHandler /* 36: Reserved */ + IRQ RESERVED_2_IRQHandler /* 37: Reserved */ + IRQ DMAC0_Handler /* 38: DMAC ch.0 */ + IRQ DMAC1_Handler /* 39: DMAC ch.1 */ + IRQ DMAC2_Handler /* 40: DMAC ch.2 */ + IRQ DMAC3_Handler /* 41: DMAC ch.3 */ + IRQ DMAC4_Handler /* 42: DMAC ch.4 */ + IRQ DMAC5_Handler /* 43: DMAC ch.5 */ + IRQ DMAC6_Handler /* 44: DMAC ch.6 */ + IRQ DMAC7_Handler /* 45: DMAC ch.7 */ + IRQ RESERVED_3_IRQHandler /* 46: Reserved */ + IRQ RESERVED_4_IRQHandler /* 47: Reserved */ + + .end diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h new file mode 100644 index 0000000000..317f63644c --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h @@ -0,0 +1,28433 @@ +/******************************************************************************* +* Copyright (C) 2013 Spansion LLC. All Rights Reserved. +* +* This software is owned and published by: +* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). +* +* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND +* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. +* +* This software contains source code for use with Spansion +* components. This software is licensed by Spansion to be adapted only +* for use in systems utilizing Spansion components. Spansion shall not be +* responsible for misuse or illegal use of this software for devices not +* supported herein. Spansion is providing this software "AS IS" and will +* not be responsible for issues arising from incorrect user implementation +* of the software. +* +* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, +* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), +* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, +* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED +* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED +* WARRANTY OF NONINFRINGEMENT. +* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, +* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT +* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, +* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR +* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, +* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, +* SAVINGS OR PROFITS, +* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR +* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED +* FROM, THE SOFTWARE. +* +* This software may be replicated in part or whole for the licensed use, +* with the restriction that this Disclaimer and Copyright notice must be +* included with each copy of this software, whether used in part or whole, +* at all times. +*/ +/******************************************************************************/ +/** \file mb9b560r.h + ** + ** Unfified Header File for FM4 PDL + ** + ** History: + ** - 2013-01-21 0.0.1 MWi First version + ** - 2013-02-06 0.0.2 MWi All FM3_ prexifes changed to FM4_; New defines + ** for MFS8-15 added; FM4_MFS_NFC_BASE added + ** - 2013-06-28 0.0.3 EH Modified bitband address of RTC + ** - 2013-08-08 0.0.4 EH Modified UESMCE bit of EPFR20 register to UESMCEE + ** Modified DESP bit of MONERS register to EDESP in DSTC + ** Modified DQID bit of MONERS register to ECH in DSTC + ** Modified HS bit of MONERS register to EHS in DSTC + ** Modified DREQEMSK register to DQMSK in DSTC + ** Added DQMSKCLK register in DSTC + ** Added AN16-AN31 bits to ADE register in GPIO + ** Modified FERRAD bit of FERRAD register to ERRAD + ** Modified DAC register composition + ** - 2013-08-21 0.0.5 EH Added IRQSEL_MODULE definition + ** - 2013-09-10 0.0.6 EH Modified structure of FM4_EXBUS_TypeDef + ** + ******************************************************************************/ + +#ifndef _MB9B560R_H_ +#define _MB9B560R_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/****************************************************************************** + * Configuration of the Cortex-M3 Processor and Core Peripherals + ******************************************************************************/ +#define __MPU_PRESENT 1 /* FM3 provide an MPU */ +#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ +#define __FPU_PRESENT 1 /* FPU present */ + +#include "mcu.h" + +/** + ****************************************************************************** + ** \brief Interrupt number definition for all type MCUs + ******************************************************************************/ +#if (PDL_MCU_INT_TYPE == PDL_INT_TYPE_A) +typedef enum IRQn +{ + NMI_IRQn = -14, /* 2 Non Maskable */ + HardFault_IRQn = -13, /* 3 Hard Fault */ + MemManage_IRQn = -12, /* 4 Memory Management */ + BusFault_IRQn = -11, /* 5 Bus Fault */ + UsageFault_IRQn = -10, /* 6 Usage Fault */ + SVC_IRQn = -5, /* 11 SV Call */ + DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ + PendSV_IRQn = -2, /* 14 Pend SV */ + SysTick_IRQn = -1, /* 15 System Tick */ + + CSV_IRQn = 0, /* Clock Supervisor */ + SWDT_IRQn = 1, /* Software Watchdog Timer */ + LVD_IRQn = 2, /* Low Voltage Detection */ + IRQ003SEL_IRQn = 3, /* Interrupt Selection IRQ003SEL */ + IRQ004SEL_IRQn = 4, /* Interrupt Selection IRQ004SEL */ + IRQ005SEL_IRQn = 5, /* Interrupt Selection IRQ005SEL */ + IRQ006SEL_IRQn = 6, /* Interrupt Selection IRQ006SEL */ + IRQ007SEL_IRQn = 7, /* Interrupt Selection IRQ007SEL */ + IRQ008SEL_IRQn = 8, /* Interrupt Selection IRQ008SEL */ + IRQ009SEL_IRQn = 9, /* Interrupt Selection IRQ009SEL */ + IRQ010SEL_IRQn = 10, /* Interrupt Selection IRQ010SEL */ + EXINT0_IRQn = 11, /* External Interrupt Ch. 0 */ + EXINT1_IRQn = 12, /* External Interrupt Ch. 1 */ + EXINT2_IRQn = 13, /* External Interrupt Ch. 2 */ + EXINT3_IRQn = 14, /* External Interrupt Ch. 3 */ + EXINT4_IRQn = 15, /* External Interrupt Ch. 4 */ + EXINT5_IRQn = 16, /* External Interrupt Ch. 5 */ + EXINT6_IRQn = 17, /* External Interrupt Ch. 6 */ + EXINT7_IRQn = 18, /* External Interrupt Ch. 7 */ + QPRC0_IRQn = 19, /* Quad Decoder and Revolution Counter Ch. 0 */ + QPRC1_IRQn = 20, /* Quad Decoder and Revolution Counter Ch. 1 */ + WFG0_DTIF0_IRQn = 21, /* MFT0 Wave Form Generator / DTIF */ + WFG1_DTIF1_IRQn = 22, /* MFT1 Wave Form Generator / DTIF */ + WFG2_DTIF2_IRQn = 23, /* MFT2 Wave Form Generator / DTIF */ + FRT0_PEAK_IRQn = 24, /* MFT0 Free Running Timer Peak Detection */ + FRT0_ZERO_IRQn = 25, /* MFT0 Free Running Timer Zero Detection */ + ICU0_IRQn = 26, /* MFT0 Input Capture Unit */ + OCU0_IRQn = 27, /* MFT0 Output Compare Unit */ + FRT1_PEAK_IRQn = 28, /* MFT1 Free Running Timer Peak Detection */ + FRT1_ZERO_IRQn = 29, /* MFT1 Free Running Timer Zero Detection */ + ICU1_IRQn = 30, /* MFT1 Input Capture Unit */ + OCU1_IRQn = 31, /* MFT1 Output Compare Unit */ + FRT2_PEAK_IRQn = 32, /* MFT2 Free Running Timer Peak Detection */ + FRT2_ZERO_IRQn = 33, /* MFT2 Free Running Timer Zero Detection */ + ICU2_IRQn = 34, /* MFT2 Input Capture Unit */ + OCU2_IRQn = 35, /* MFT2 Output Compare Unit */ + PPG00_02_04_IRQn = 36, /* Programmable Pulse Generator Ch. 0, 2, 4 */ + PPG08_10_12_IRQn = 37, /* Programmable Pulse Generator Ch. 8, 10, 12 */ + PPG16_18_20_IRQn = 38, /* Programmable Pulse Generator Ch. 16, 18, 20 */ + BT0_IRQn = 39, /* Base Timer Ch. 0 */ + BT1_IRQn = 40, /* Base Timer Ch. 1 */ + BT2_IRQn = 41, /* Base Timer Ch. 2 */ + BT3_IRQn = 42, /* Base Timer Ch. 3 */ + BT4_IRQn = 43, /* Base Timer Ch. 4 */ + BT5_IRQn = 44, /* Base Timer Ch. 5 */ + BT6_IRQn = 45, /* Base Timer Ch. 6 */ + BT7_IRQn = 46, /* Base Timer Ch. 7 */ + DT1_2_IRQn = 47, /* Dual Timmer Ch. 1, 2 */ + WC_IRQn = 48, /* Watch Counter */ + EXTBUS_ERR_IRQn = 49, /* External Bus Error */ + RTC_IRQn = 50, /* Realtime Clock */ + EXINT8_IRQn = 51, /* External Interrupt Ch. 8 */ + EXINT9_IRQn = 52, /* External Interrupt Ch. 9 */ + EXINT10_IRQn = 53, /* External Interrupt Ch. 10 */ + EXINT11_IRQn = 54, /* External Interrupt Ch. 11 */ + EXINT12_IRQn = 55, /* External Interrupt Ch. 12 */ + EXINT13_IRQn = 56, /* External Interrupt Ch. 13 */ + EXINT14_IRQn = 57, /* External Interrupt Ch. 14 */ + EXINT15_IRQn = 58, /* External Interrupt Ch. 15 */ + TIM_IRQn = 59, /* Clock/PLL Timer */ + MFS0_RX_IRQn = 60, /* Multifunction Serial I/F Reception Ch. 0 */ + MFS0_TX_IRQn = 61, /* Multifunction Serial I/F Transmission Ch. 0 */ + MFS1_RX_IRQn = 62, /* Multifunction Serial I/F Reception Ch. 1 */ + MFS1_TX_IRQn = 63, /* Multifunction Serial I/F Transmission Ch. 1 */ + MFS2_RX_IRQn = 64, /* Multifunction Serial I/F Reception Ch. 2 */ + MFS2_TX_IRQn = 65, /* Multifunction Serial I/F Transmission Ch. 2 */ + MFS3_RX_IRQn = 66, /* Multifunction Serial I/F Reception Ch. 3 */ + MFS3_TX_IRQn = 67, /* Multifunction Serial I/F Transmission Ch. 3 */ + MFS4_RX_IRQn = 68, /* Multifunction Serial I/F Reception Ch. 4 */ + MFS4_TX_IRQn = 69, /* Multifunction Serial I/F Transmission Ch. 4 */ + MFS5_RX_IRQn = 70, /* Multifunction Serial I/F Reception Ch. 5 */ + MFS5_TX_IRQn = 71, /* Multifunction Serial I/F Transmission Ch. 5 */ + MFS6_RX_IRQn = 72, /* Multifunction Serial I/F Reception Ch. 6 */ + MFS6_TX_IRQn = 73, /* Multifunction Serial I/F Transmission Ch. 6 */ + MFS7_RX_IRQn = 74, /* Multifunction Serial I/F Reception Ch. 7 */ + MFS7_TX_IRQn = 75, /* Multifunction Serial I/F Transmission Ch. 7 */ + ADC0_IRQn = 76, /* Analog Digital Converter Unit 0 */ + ADC1_IRQn = 77, /* Analog Digital Converter Unit 1 */ + USB0_IRQn = 78, /* USB0 Function */ + USB0_HOST_IRQn = 79, /* USB0 Function and Host */ + CAN0_IRQn = 80, /* CAN I/F Ch. 0 */ + CAN1_IRQn = 81, /* CAN I/F Ch. 1 */ + ETHER0_IRQn = 82, /* Ethernet */ + DMAC0_IRQn = 83, /* Direct Memory Access Controller Ch. 0 */ + DMAC1_IRQn = 84, /* Direct Memory Access Controller Ch. 1 */ + DMAC2_IRQn = 85, /* Direct Memory Access Controller Ch. 2 */ + DMAC3_IRQn = 86, /* Direct Memory Access Controller Ch. 3 */ + DMAC4_IRQn = 87, /* Direct Memory Access Controller Ch. 4 */ + DMAC5_IRQn = 88, /* Direct Memory Access Controller Ch. 5 */ + DMAC6_IRQn = 89, /* Direct Memory Access Controller Ch. 6 */ + DMAC7_IRQn = 90, /* Direct Memory Access Controller Ch. 7 */ + DSTC_IRQn = 91, /* DSTC SW Transfer */ + EXINT16_17_18_19_IRQn = 92, /* External Interrupt Ch. 16 - 19 */ + EXINT20_21_22_23_IRQn = 93, /* External Interrupt Ch. 20 - 23 */ + EXINT24_25_26_27_IRQn = 94, /* External Interrupt Ch. 24 - 27 */ + EXINT28_29_30_31_IRQn = 95, /* External Interrupt Ch. 28 - 31 */ + QPRC2_IRQn = 96, /* Quad Decoder and Revolution Counter Ch. 2 */ + QPRC3_IRQn = 97, /* Quad Decoder and Revolution Counter Ch. 3 */ + BT8_IRQn = 98, /* Base Timer Ch. 8 */ + BT9_IRQn = 99, /* Base Timer Ch. 9 */ + BT10_IRQn = 100, /* Base Timer Ch. 10 */ + BT11_IRQn = 101, /* Base Timer Ch. 11 */ + BT12_IRQn = 102, /* Base Timer Ch. 12 */ + MFS8_RX_IRQn = 103, /* Multifunction Serial I/F Reception Ch. 8 */ + MFS8_TX_IRQn = 104, /* Multifunction Serial I/F Transmission Ch. 8 */ + MFS9_RX_IRQn = 105, /* Multifunction Serial I/F Reception Ch. 9 */ + MFS9_TX_IRQn = 106, /* Multifunction Serial I/F Transmission Ch. 9 */ + MFS10_RX_IRQn = 107, /* Multifunction Serial I/F Reception Ch. 10 */ + MFS10_TX_IRQn = 108, /* Multifunction Serial I/F Transmission Ch. 10 */ + MFS11_RX_IRQn = 109, /* Multifunction Serial I/F Reception Ch. 11 */ + MFS11_TX_IRQn = 110, /* Multifunction Serial I/F Transmission Ch. 11 */ + ADC2_IRQn = 111, /* Analog Digital Converter Unit 2 */ + USB1_IRQn = 113, /* USB1 Function */ + USB1_HOST_IRQn = 114, /* USB1 Function and Host */ + SD_IRQn = 118, /* SD Card I/F */ + FLASH_IRQn = 119 /* Flash */ +} IRQn_Type; + +#elif (PDL_MCU_INT_TYPE == PDL_INT_TYPE_C) +typedef enum IRQn +{ + NMI_IRQn = -14, /* A<- */ + HardFault_IRQn = -13, /* A<- */ + MemManage_IRQn = -12, /* A<- */ + BusFault_IRQn = -11, /* A<- */ + UsageFault_IRQn = -10, /* A<- */ + SVC_IRQn = -5, /* A<- */ + DebugMonitor_IRQn = -4, /* A<- */ + PendSV_IRQn = -2, /* A<- */ + SysTick_IRQn = -1, /* A<- */ + + CSV_IRQn = 0, /* A<- */ + SWDT_IRQn = 1, /* A<- */ + LVD_IRQn = 2, /* A<- */ + WFG_IRQn = 3, /* A<- */ + EXINT0_7_IRQn = 4, /* A<- */ + EXINT8_31_IRQn = 5, /* A<- */ + MFS0_8_RX_IRQn = 6, /* A<- */ + MFS0_8_TX_IRQn = 7, /* A<- */ + MFS1_9_RX_IRQn = 8, /* A<- */ + MFS1_9_TX_IRQn = 9, /* A<- */ + MFS2_10_RX_IRQn = 10,/* A<- */ + MFS2_10_TX_IRQn = 11,/* A<- */ + MFS3_11_RX_IRQn = 12, /* A<- */ + MFS3_11_TX_IRQn = 13, /* A<- */ + MFS4_12_RX_IRQn = 14, /* A<- */ + MFS4_12_TX_IRQn = 15, /* A<- */ + MFS5_13_RX_IRQn = 16, /* A<- */ + MFS5_13_TX_IRQn = 17, /* A<- */ + MFS6_14_RX_IRQn = 18, /* A<- */ + MFS6_14_TX_IRQn = 19, /* A<- */ + MFS7_15_RX_IRQn = 20, /* A<- */ + MFS7_15_TX_IRQn = 21, /* A<- */ + PPG_IRQn = 22, /* A<- */ + OSC_PLL_WC_RTC_IRQn = 23, /* A<- */ + ADC0_IRQn = 24, /* A<- */ + FRTIM_IRQn = 25, /* A<- */ + INCAP_IRQn = 26, /* A<- */ + OUTCOMP_IRQn = 27, /* A<- */ + BTIM0_7_IRQn = 28, /* A<- */ + ADC2_LCD_IRQn = 29, /* A<- */ + USB1F_HDMICEC0_IRQn = 30, /* A<- */ + USB1F_USB1H_HDMICEC1_IRQn = 31, /* A<- */ +} IRQn_Type; +#else + #error Interrupt Type not found! +#endif // PDL_INT_TYPE + +#include "core_cm4.h" +#include "system_mb9bf56xr.h" +#include + +#define SUCCESS 0 +#define ERROR -1 + +#ifndef NULL +#define NULL 0 +#endif + + +/******************************************************************************/ +/* Device Specific Peripheral Registers structures */ +/******************************************************************************/ + +#if defined ( __CC_ARM ) +#pragma anon_unions +#endif + +/****************************************************************************** + * INTREQ_MODULE Bit fields and registers depending on device type + ******************************************************************************/ +#if (PDL_MCU_INT_TYPE == PDL_INT_TYPE_A) + +/* Interrupt request read registers */ +typedef struct +{ + __IO uint32_t DRQSEL; + uint8_t RESERVED0[12]; + __IO uint32_t EXC02MON; + __IO uint32_t IRQ00MON; + __IO uint32_t IRQ01MON; + __IO uint32_t IRQ02MON; + __IO uint32_t IRQ03MON; + __IO uint32_t IRQ04MON; + __IO uint32_t IRQ05MON; + __IO uint32_t IRQ06MON; + __IO uint32_t IRQ07MON; + __IO uint32_t IRQ08MON; + __IO uint32_t IRQ09MON; + __IO uint32_t IRQ10MON; + __IO uint32_t IRQ11MON; + __IO uint32_t IRQ12MON; + __IO uint32_t IRQ13MON; + __IO uint32_t IRQ14MON; + __IO uint32_t IRQ15MON; + __IO uint32_t IRQ16MON; + __IO uint32_t IRQ17MON; + __IO uint32_t IRQ18MON; + __IO uint32_t IRQ19MON; + __IO uint32_t IRQ20MON; + __IO uint32_t IRQ21MON; + __IO uint32_t IRQ22MON; + __IO uint32_t IRQ23MON; + __IO uint32_t IRQ24MON; + __IO uint32_t IRQ25MON; + __IO uint32_t IRQ26MON; + __IO uint32_t IRQ27MON; + __IO uint32_t IRQ28MON; + __IO uint32_t IRQ29MON; + __IO uint32_t IRQ30MON; + __IO uint32_t IRQ31MON; + __IO uint32_t IRQ32MON; + __IO uint32_t IRQ33MON; + __IO uint32_t IRQ34MON; + __IO uint32_t IRQ35MON; + __IO uint32_t IRQ36MON; + __IO uint32_t IRQ37MON; + __IO uint32_t IRQ38MON; + __IO uint32_t IRQ39MON; + __IO uint32_t IRQ40MON; + __IO uint32_t IRQ41MON; + __IO uint32_t IRQ42MON; + __IO uint32_t IRQ43MON; + __IO uint32_t IRQ44MON; + __IO uint32_t IRQ45MON; + __IO uint32_t IRQ46MON; + __IO uint32_t IRQ47MON; +}PDL_INTREQ_TypeDef; + +#define PDL_INTREQ_BASE (PDL_PERIPH_BASE + 0x31000UL) // Interrupt request read registers +#define PDL_INTREQ ((PDL_INTREQ_TypeDef *)PDL_INTREQ_BASE) + +#elif (PDL_MCU_INT_TYPE == PDL_INT_TYPE_C) + +/* Interrupt request read registers */ +typedef struct +{ + uint8_t RESERVED0[16]; + __IO uint32_t EXC02MON; + __IO uint32_t IRQ00MON; + __IO uint32_t IRQ01MON; + __IO uint32_t IRQ02MON; + __IO uint32_t IRQ03MON; + __IO uint32_t IRQ04MON; + __IO uint32_t IRQ05MON; + __IO uint32_t IRQ06MON; + __IO uint32_t IRQ07MON; + __IO uint32_t IRQ08MON; + __IO uint32_t IRQ09MON; + __IO uint32_t IRQ10MON; + __IO uint32_t IRQ11MON; + __IO uint32_t IRQ12MON; + __IO uint32_t IRQ13MON; + __IO uint32_t IRQ14MON; + __IO uint32_t IRQ15MON; + __IO uint32_t IRQ16MON; + __IO uint32_t IRQ17MON; + __IO uint32_t IRQ18MON; + __IO uint32_t IRQ19MON; + __IO uint32_t IRQ20MON; + __IO uint32_t IRQ21MON; + __IO uint32_t IRQ22MON; + __IO uint32_t IRQ23MON; + __IO uint32_t IRQ24MON; + __IO uint32_t IRQ25MON; + __IO uint32_t IRQ26MON; + __IO uint32_t IRQ27MON; + __IO uint32_t IRQ28MON; + __IO uint32_t IRQ29MON; + __IO uint32_t IRQ30MON; + __IO uint32_t IRQ31MON; +}PDL_INTREQ_TypeDef; + +#define PDL_INTREQ_BASE (PDL_PERIPH_BASE + 0x31000UL) // Interrupt request read registers +#define FPDL_INTREQ ((PDL_INTREQ_TypeDef *)PDL_INTREQ_BASE) + +#endif // PDL_INT_TYPE + + +/****************************************************************************** + * Peripheral register bit fields + ******************************************************************************/ + +/****************************************************************************** + * WorkFlash_IF_MODULE + ******************************************************************************/ +/* WorkFlash_IF_MODULE register bit fields */ +typedef struct stc_workflash_if_wfaszr_field +{ + __IO uint32_t ASZ : 1; +} stc_workflash_if_wfaszr_field_t; + +typedef struct stc_workflash_if_wfrwtr_field +{ + __IO uint32_t RWT : 3; +} stc_workflash_if_wfrwtr_field_t; + +typedef struct stc_workflash_if_wfstr_field +{ + __IO uint32_t RDY : 1; + __IO uint32_t HNG : 1; +} stc_workflash_if_wfstr_field_t; + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash_IF_MODULE register bit fields */ +typedef struct stc_flash_if_faszr_field +{ + __IO uint32_t ASZ : 2; +} stc_flash_if_faszr_field_t; + +typedef struct stc_flash_if_frwtr_field +{ + __IO uint32_t RWT : 2; +} stc_flash_if_frwtr_field_t; + +typedef struct stc_flash_if_fstr_field +{ + __IO uint32_t RDY : 1; + __IO uint32_t HNG : 1; + __IO uint32_t ERR : 1; +} stc_flash_if_fstr_field_t; + +typedef struct stc_flash_if_fsyndn_field +{ + __IO uint32_t SD : 3; +} stc_flash_if_fsyndn_field_t; + +typedef struct stc_flash_if_fbfcr_field +{ + __IO uint32_t BE : 1; + __IO uint32_t BS : 1; +} stc_flash_if_fbfcr_field_t; + +typedef struct stc_flash_if_ficr_field +{ + __IO uint32_t RDYIE : 1; + __IO uint32_t HANGIE : 1; + __IO uint32_t ERRIE : 1; +} stc_flash_if_ficr_field_t; + +typedef struct stc_flash_if_fisr_field +{ + __IO uint32_t RDYIF : 1; + __IO uint32_t HANGIF : 1; + __IO uint32_t ERRIF : 1; +} stc_flash_if_fisr_field_t; + +typedef struct stc_flash_if_ficlr_field +{ + __IO uint32_t RDYIC : 1; + __IO uint32_t HANGIC : 1; + __IO uint32_t ERRIC : 1; +} stc_flash_if_ficlr_field_t; + +typedef struct stc_flash_if_crtrmm_field +{ + __IO uint32_t TRMM :10; + uint32_t RESERVED10 : 6; + __IO uint32_t TTRMM : 5; +} stc_flash_if_crtrmm_field_t; + +/****************************************************************************** + * UNIQUE_ID_MODULE + ******************************************************************************/ +/* UNIQUE_ID_MODULE register bit fields */ +typedef struct stc_unique_id_uidr0_field +{ + uint32_t RESERVED0 : 4; + __IO uint32_t UID :28; +} stc_unique_id_uidr0_field_t; + +typedef struct stc_unique_id_uidr1_field +{ + __IO uint32_t UID :13; +} stc_unique_id_uidr1_field_t; + +/****************************************************************************** + * ECC_CAPTURE_MODULE + ******************************************************************************/ +/* ECC_CAPTURE_MODULE register bit fields */ +typedef struct stc_ecc_capture_ferrad_field +{ + __IO uint32_t ERRAD :23; +} stc_ecc_capture_ferrad_field_t; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock_Reset_MODULE register bit fields */ +typedef struct stc_crg_scm_ctl_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MOSCE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SOSCE : 1; + __IO uint8_t PLLE : 1; + __IO uint8_t RCS : 3; +} stc_crg_scm_ctl_field_t; + +typedef struct stc_crg_scm_str_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MORDY : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SORDY : 1; + __IO uint8_t PLRDY : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t RCM2 : 1; +} stc_crg_scm_str_field_t; + +typedef struct stc_crg_rst_str_field +{ + __IO uint16_t PONR : 1; + __IO uint16_t INITX : 1; + __IO uint16_t LVDH : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t SWDT : 1; + __IO uint16_t HWDT : 1; + __IO uint16_t CSVR : 1; + __IO uint16_t FCSR : 1; + __IO uint16_t SRST : 1; +} stc_crg_rst_str_field_t; + +typedef struct stc_crg_bsc_psr_field +{ + __IO uint8_t BSR0 : 1; + __IO uint8_t BSR1 : 1; + __IO uint8_t BSR2 : 1; +} stc_crg_bsc_psr_field_t; + +typedef struct stc_crg_apbc0_psr_field +{ + __IO uint8_t APBC00 : 1; + __IO uint8_t APBC01 : 1; +} stc_crg_apbc0_psr_field_t; + +typedef struct stc_crg_apbc1_psr_field +{ + __IO uint8_t APBC10 : 1; + __IO uint8_t APBC11 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC1RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC1EN : 1; +} stc_crg_apbc1_psr_field_t; + +typedef struct stc_crg_apbc2_psr_field +{ + __IO uint8_t APBC20 : 1; + __IO uint8_t APBC21 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC2RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC2EN : 1; +} stc_crg_apbc2_psr_field_t; + +typedef struct stc_crg_swc_psr_field +{ + __IO uint8_t SWDS0 : 1; + __IO uint8_t SWDS1 : 1; + uint8_t RESERVED1 : 5; + __IO uint8_t TESTB : 1; +} stc_crg_swc_psr_field_t; + +typedef struct stc_crg_ttc_psr_field +{ + __IO uint8_t TTC : 2; +} stc_crg_ttc_psr_field_t; + +typedef struct stc_crg_csw_tmr_field +{ + __IO uint8_t MOWT0 : 1; + __IO uint8_t MOWT1 : 1; + __IO uint8_t MOWT2 : 1; + __IO uint8_t MOWT3 : 1; + __IO uint8_t SOWT0 : 1; + __IO uint8_t SOWT1 : 1; + __IO uint8_t SOWT2 : 1; + __IO uint8_t SOWT3 : 1; +} stc_crg_csw_tmr_field_t; + +typedef struct stc_crg_psw_tmr_field +{ + __IO uint8_t POWT0 : 1; + __IO uint8_t POWT1 : 1; + __IO uint8_t POWT2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t PINC : 1; +} stc_crg_psw_tmr_field_t; + +typedef struct stc_crg_pll_ctl1_field +{ + __IO uint8_t PLLM0 : 1; + __IO uint8_t PLLM1 : 1; + __IO uint8_t PLLM2 : 1; + __IO uint8_t PLLM3 : 1; + __IO uint8_t PLLK0 : 1; + __IO uint8_t PLLK1 : 1; + __IO uint8_t PLLK2 : 1; + __IO uint8_t PLLK3 : 1; +} stc_crg_pll_ctl1_field_t; + +typedef struct stc_crg_pll_ctl2_field +{ + __IO uint8_t PLLN0 : 1; + __IO uint8_t PLLN1 : 1; + __IO uint8_t PLLN2 : 1; + __IO uint8_t PLLN3 : 1; + __IO uint8_t PLLN4 : 1; + __IO uint8_t PLLN5 : 1; +} stc_crg_pll_ctl2_field_t; + +typedef struct stc_crg_csv_ctl_field +{ + __IO uint16_t MCSVE : 1; + __IO uint16_t SCSVE : 1; + uint16_t RESERVED1 : 6; + __IO uint16_t FCSDE : 1; + __IO uint16_t FCSRE : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t FCD0 : 1; + __IO uint16_t FCD1 : 1; + __IO uint16_t FCD2 : 1; +} stc_crg_csv_ctl_field_t; + +typedef struct stc_crg_csv_str_field +{ + __IO uint8_t MCMF : 1; + __IO uint8_t SCMF : 1; +} stc_crg_csv_str_field_t; + +typedef struct stc_crg_dbwdt_ctl_field +{ + uint8_t RESERVED1 : 5; + __IO uint8_t DPSWBE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t DPHWBE : 1; +} stc_crg_dbwdt_ctl_field_t; + +typedef struct stc_crg_int_enr_field +{ + __IO uint8_t MCSE : 1; + __IO uint8_t SCSE : 1; + __IO uint8_t PCSE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSE : 1; +} stc_crg_int_enr_field_t; + +typedef struct stc_crg_int_str_field +{ + __IO uint8_t MCSI : 1; + __IO uint8_t SCSI : 1; + __IO uint8_t PCSI : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSI : 1; +} stc_crg_int_str_field_t; + +typedef struct stc_crg_int_clr_field +{ + __IO uint8_t MCSC : 1; + __IO uint8_t SCSC : 1; + __IO uint8_t PCSC : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSC : 1; +} stc_crg_int_clr_field_t; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* HWWDT_MODULE register bit fields */ +typedef struct stc_hwwdt_wdg_ctl_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_hwwdt_wdg_ctl_field_t; + +typedef struct stc_hwwdt_wdg_ris_field +{ + __IO uint8_t RIS : 1; +} stc_hwwdt_wdg_ris_field_t; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* SWWDT_MODULE register bit fields */ +typedef struct stc_swwdt_wdogcontrol_field +{ + union { + struct { + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; + __IO uint8_t TWD : 2; + __IO uint8_t SPM : 1; + uint8_t RESERVED1 : 3; + }; + struct { + uint8_t RESERVED2 : 2; + __IO uint8_t TWD0 : 1; + __IO uint8_t TWD1 : 1; + uint8_t RESERVED3 : 4; + }; + }; +} stc_swwdt_wdogcontrol_field_t; + +typedef struct stc_swwdt_wdogris_field +{ + __IO uint8_t RIS : 1; + uint8_t RESERVED1 : 7; +} stc_swwdt_wdogris_field_t; + +typedef struct stc_swwdt_wdogspmc_field +{ + __IO uint8_t TGR : 1; + uint8_t RESERVED1 : 7; +} stc_swwdt_wdogspmc_field_t; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* DTIM_MODULE register bit fields */ +typedef struct stc_dtim_timerXcontrol_field +{ + union { + struct { + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE : 2; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; + uint32_t RESERVED2 : 24; + }; + struct { + uint32_t RESERVED3 : 2; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED4 : 28; + }; + }; +} stc_dtim_timerXcontrol_field_t; + +typedef struct stc_dtim_timerXris_field +{ + __IO uint32_t TIMERXRIS : 1; + uint32_t RESERVED1 : 31; +} stc_dtim_timerXris_field_t; + +typedef struct stc_dtim_timerXmis_field +{ + __IO uint32_t TIMERXMIS : 1; + uint32_t RESERVED1 : 31; +} stc_dtim_timerXmis_field_t; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* MFT_FRT_MODULE register bit fields */ +typedef struct stc_mft_frt_tcsa0_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa0_field_t; + +typedef struct stc_mft_frt_tcsc0_field +{ + __IO uint16_t MSZI : 4; + __IO uint16_t MSPI : 4; + __IO uint16_t MSZC : 4; + __IO uint16_t MSPC : 4; +} stc_mft_frt_tcsc0_field_t; + +typedef struct stc_mft_frt_tcsa1_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa1_field_t; + +typedef struct stc_mft_frt_tcsc1_field +{ + __IO uint16_t MSZI : 4; + __IO uint16_t MSPI : 4; + __IO uint16_t MSZC : 4; + __IO uint16_t MSPC : 4; +} stc_mft_frt_tcsc1_field_t; + +typedef struct stc_mft_frt_tcsa2_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa2_field_t; + +typedef struct stc_mft_frt_tcsc2_field +{ + __IO uint16_t MSZI : 4; + __IO uint16_t MSPI : 4; + __IO uint16_t MSZC : 4; + __IO uint16_t MSPC : 4; +} stc_mft_frt_tcsc2_field_t; + +typedef struct stc_mft_frt_tcal_field +{ + __IO uint32_t STOP00 : 1; + __IO uint32_t STOP01 : 1; + __IO uint32_t STOP02 : 1; + __IO uint32_t STOP10 : 1; + __IO uint32_t STOP11 : 1; + __IO uint32_t STOP12 : 1; + __IO uint32_t STOP20 : 1; + __IO uint32_t STOP21 : 1; + __IO uint32_t STOP22 : 1; + __IO uint32_t RESERVED1 : 7; + __IO uint32_t SCLR00 : 1; + __IO uint32_t SCLR01 : 1; + __IO uint32_t SCLR02 : 1; + __IO uint32_t SCLR10 : 1; + __IO uint32_t SCLR11 : 1; + __IO uint32_t SCLR12 : 1; + __IO uint32_t SCLR20 : 1; + __IO uint32_t SCLR21 : 1; + __IO uint32_t SCLR22 : 1; + __IO uint32_t RESERVED2 : 7; +} stc_mft_frt_tcal_field_t; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* MFT_OCU_MODULE register bit fields */ +typedef struct stc_mft_ocu_ocsa10_field +{ + __IO uint8_t CST0 : 1; + __IO uint8_t CST1 : 1; + __IO uint8_t RESERVED1 : 2; + __IO uint8_t IOE0 : 1; + __IO uint8_t IOE1 : 1; + __IO uint8_t IOP0 : 1; + __IO uint8_t IOP1 : 1; +} stc_mft_ocu_ocsa10_field_t; + +typedef struct stc_mft_ocu_ocsb10_field +{ + __IO uint8_t OTD0 : 1; + __IO uint8_t OTD1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t FM4 : 1; +} stc_mft_ocu_ocsb10_field_t; + +typedef struct stc_mft_ocu_ocsa32_field +{ + __IO uint8_t CST0 : 1; + __IO uint8_t CST1 : 1; + __IO uint8_t RESERVED1 : 2; + __IO uint8_t IOE0 : 1; + __IO uint8_t IOE1 : 1; + __IO uint8_t IOP0 : 1; + __IO uint8_t IOP1 : 1; +} stc_mft_ocu_ocsa32_field_t; + +typedef struct stc_mft_ocu_ocsb32_field +{ + __IO uint8_t OTD0 : 1; + __IO uint8_t OTD1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t FM4 : 1; +} stc_mft_ocu_ocsb32_field_t; + +typedef struct stc_mft_ocu_ocsa54_field +{ + __IO uint8_t CST0 : 1; + __IO uint8_t CST1 : 1; + __IO uint8_t RESERVED1 : 2; + __IO uint8_t IOE0 : 1; + __IO uint8_t IOE1 : 1; + __IO uint8_t IOP0 : 1; + __IO uint8_t IOP1 : 1; +} stc_mft_ocu_ocsa54_field_t; + +typedef struct stc_mft_ocu_ocsb54_field +{ + __IO uint8_t OTD0 : 1; + __IO uint8_t OTD1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t FM4 : 1; +} stc_mft_ocu_ocsb54_field_t; + +typedef struct stc_mft_ocu_ocsc_field +{ + __IO uint8_t MOD0 : 1; + __IO uint8_t MOD1 : 1; + __IO uint8_t MOD2 : 1; + __IO uint8_t MOD3 : 1; + __IO uint8_t MOD4 : 1; + __IO uint8_t MOD5 : 1; +} stc_mft_ocu_ocsc_field_t; + +typedef struct stc_mft_ocu_ocfs10_field +{ + __IO uint8_t FSO00 : 1; + __IO uint8_t FSO01 : 1; + __IO uint8_t FSO02 : 1; + __IO uint8_t FSO03 : 1; + __IO uint8_t FSO10 : 1; + __IO uint8_t FSO11 : 1; + __IO uint8_t FSO12 : 1; + __IO uint8_t FSO13 : 1; +} stc_mft_ocu_ocfs10_field_t; + +typedef struct stc_mft_ocu_ocfs32_field +{ + __IO uint8_t FSO00 : 1; + __IO uint8_t FSO01 : 1; + __IO uint8_t FSO02 : 1; + __IO uint8_t FSO03 : 1; + __IO uint8_t FSO10 : 1; + __IO uint8_t FSO11 : 1; + __IO uint8_t FSO12 : 1; + __IO uint8_t FSO13 : 1; +} stc_mft_ocu_ocfs32_field_t; + +typedef struct stc_mft_ocu_ocfs54_field +{ + __IO uint8_t FSO00 : 1; + __IO uint8_t FSO01 : 1; + __IO uint8_t FSO02 : 1; + __IO uint8_t FSO03 : 1; + __IO uint8_t FSO10 : 1; + __IO uint8_t FSO11 : 1; + __IO uint8_t FSO12 : 1; + __IO uint8_t FSO13 : 1; +} stc_mft_ocu_ocfs54_field_t; + +typedef struct stc_mft_ocu_ocsd10_field +{ + __IO uint8_t OCCP0BUFE : 2; + __IO uint8_t OCCP1BUFE : 2; + __IO uint8_t OCSE0BUFE : 2; + __IO uint8_t OCSE1BUFE : 2; +} stc_mft_ocu_ocsd10_field_t; + +typedef struct stc_mft_ocu_ocsd32_field +{ + __IO uint8_t OCCP2BUFE : 2; + __IO uint8_t OCCP3BUFE : 2; + __IO uint8_t OCSE2BUFE : 2; + __IO uint8_t OCSE3BUFE : 2; +} stc_mft_ocu_ocsd32_field_t; + +typedef struct stc_mft_ocu_ocsd54_field +{ + __IO uint8_t OCCP4BUFE : 2; + __IO uint8_t OCCP5BUFE : 2; + __IO uint8_t OCSE4BUFE : 2; + __IO uint8_t OCSE5BUFE : 2; +} stc_mft_ocu_ocsd54_field_t; + +typedef struct stc_mft_ocu_ocse0_field +{ + __IO uint16_t OCSE : 16; +} stc_mft_ocu_ocse0_field_t; + +typedef struct stc_mft_ocu_ocse1_field +{ + __IO uint32_t OCSE : 32; +} stc_mft_ocu_ocse1_field_t; + +typedef struct stc_mft_ocu_ocse2_field +{ + __IO uint16_t OCSE : 16; +} stc_mft_ocu_ocse2_field_t; + +typedef struct stc_mft_ocu_ocse3_field +{ + __IO uint32_t OCSE : 32; +} stc_mft_ocu_ocse3_field_t; + +typedef struct stc_mft_ocu_ocse4_field +{ + __IO uint16_t OCSE : 16; +} stc_mft_ocu_ocse4_field_t; + +typedef struct stc_mft_ocu_ocse5_field +{ + __IO uint32_t OCSE : 32; +} stc_mft_ocu_ocse5_field_t; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* MFT_WFG_MODULE register bit fields */ +typedef struct stc_mft_wfg_wfsa10_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD : 3; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 2; +} stc_mft_wfg_wfsa10_field_t; + +typedef struct stc_mft_wfg_wfsa32_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD : 3; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 2; +} stc_mft_wfg_wfsa32_field_t; + +typedef struct stc_mft_wfg_wfsa54_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD : 3; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 2; +} stc_mft_wfg_wfsa54_field_t; + +typedef struct stc_mft_wfg_wfir_field +{ + __IO uint16_t DTIFA : 1; + __IO uint16_t DTICA : 1; + __IO uint16_t DTIFB : 1; + __IO uint16_t DTICB : 1; + __IO uint16_t TMIF10 : 1; + __IO uint16_t TMIC10 : 1; + __IO uint16_t TMIE10 : 1; + __IO uint16_t TMIS10 : 1; + __IO uint16_t TMIF32 : 1; + __IO uint16_t TMIC32 : 1; + __IO uint16_t TMIE32 : 1; + __IO uint16_t TMIS32 : 1; + __IO uint16_t TMIF54 : 1; + __IO uint16_t TMIC54 : 1; + __IO uint16_t TMIE54 : 1; + __IO uint16_t TMIS54 : 1; +} stc_mft_wfg_wfir_field_t; + +typedef struct stc_mft_wfg_nzcl_field +{ + __IO uint16_t DTIEA : 1; + __IO uint16_t NWS0 : 1; + __IO uint16_t NWS1 : 1; + __IO uint16_t NWS2 : 1; + __IO uint16_t SDTI : 1; + __IO uint16_t DTIEB : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t DIMA : 1; + __IO uint16_t DIMB : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t WIM10 : 1; + __IO uint16_t WIM32 : 1; + __IO uint16_t WIM54 : 1; + uint16_t RESERVED3 : 1; +} stc_mft_wfg_nzcl_field_t; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* MFT_ICU_MODULE register bit fields */ +typedef struct stc_mft_icu_icfs10_field +{ + __IO uint8_t FSI00 : 1; + __IO uint8_t FSI01 : 1; + __IO uint8_t FSI02 : 1; + __IO uint8_t FSI03 : 1; + __IO uint8_t FSI10 : 1; + __IO uint8_t FSI11 : 1; + __IO uint8_t FSI12 : 1; + __IO uint8_t FSI13 : 1; +} stc_mft_icu_icfs10_field_t; + +typedef struct stc_mft_icu_icfs32_field +{ + __IO uint8_t FSI00 : 1; + __IO uint8_t FSI01 : 1; + __IO uint8_t FSI02 : 1; + __IO uint8_t FSI03 : 1; + __IO uint8_t FSI10 : 1; + __IO uint8_t FSI11 : 1; + __IO uint8_t FSI12 : 1; + __IO uint8_t FSI13 : 1; +} stc_mft_icu_icfs32_field_t; + +typedef struct stc_mft_icu_icsa10_field +{ + __IO uint8_t EG00 : 1; + __IO uint8_t EG01 : 1; + __IO uint8_t EG10 : 1; + __IO uint8_t EG11 : 1; + __IO uint8_t ICE0 : 1; + __IO uint8_t ICE1 : 1; + __IO uint8_t ICP0 : 1; + __IO uint8_t ICP1 : 1; +} stc_mft_icu_icsa10_field_t; + +typedef struct stc_mft_icu_icsb10_field +{ + __IO uint8_t IEI0 : 1; + __IO uint8_t IEI1 : 1; +} stc_mft_icu_icsb10_field_t; + +typedef struct stc_mft_icu_icsa32_field +{ + __IO uint8_t EG00 : 1; + __IO uint8_t EG01 : 1; + __IO uint8_t EG10 : 1; + __IO uint8_t EG11 : 1; + __IO uint8_t ICE0 : 1; + __IO uint8_t ICE1 : 1; + __IO uint8_t ICP0 : 1; + __IO uint8_t ICP1 : 1; +} stc_mft_icu_icsa32_field_t; + +typedef struct stc_mft_icu_icsb32_field +{ + __IO uint8_t IEI0 : 1; + __IO uint8_t IEI1 : 1; +} stc_mft_icu_icsb32_field_t; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* MFT_ADCMP_MODULE register bit fields */ +typedef struct stc_mft_adcmp_acfs10_field +{ + __IO uint8_t FSA0 : 4; + __IO uint8_t FSA1 : 4; +} stc_mft_adcmp_acfs10_field_t; + +typedef struct stc_mft_adcmp_acfs32_field +{ + __IO uint8_t FSA2 : 4; + __IO uint8_t FSA3 : 4; +} stc_mft_adcmp_acfs32_field_t; + +typedef struct stc_mft_adcmp_acfs54_field +{ + __IO uint8_t FSA4 : 4; + __IO uint8_t FSA5 : 4; +} stc_mft_adcmp_acfs54_field_t; + +typedef struct stc_mft_adcmp_acsa_field +{ + __IO uint16_t CE10 : 2; + __IO uint16_t CE32 : 2; + __IO uint16_t CE54 : 2; + uint16_t RESERVED1 : 2; + __IO uint16_t SEL10 : 2; + __IO uint16_t SEL32 : 2; + __IO uint16_t SEL54 : 2; +} stc_mft_adcmp_acsa_field_t; + +typedef struct stc_mft_adcmp_acsc_field +{ + __IO uint8_t BUFE : 2; + __IO uint8_t ADSEL : 3; + uint8_t RESERVED1 : 3; +} stc_mft_adcmp_acsc_field_t; + +typedef struct stc_mft_adcmp_acsd_field +{ + __IO uint8_t AMOD : 1; + __IO uint8_t OCUS : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t DE : 1; + __IO uint8_t PE : 1; + __IO uint8_t UE : 1; + __IO uint8_t ZE : 1; +} stc_mft_adcmp_acsd_field_t; + +/****************************************************************************** + * DAC MODULE + ******************************************************************************/ +typedef struct stc_dacr_field +{ + __IO uint8_t DAE : 1; + __IO uint8_t DRDY : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t DAC10 : 1; + __IO uint8_t DDAS : 1; + __IO uint8_t RESERVED2 : 2; +} stc_dacr_field_t; + +typedef struct stc_dadr_field +{ + __IO uint16_t DA : 12; + __IO uint16_t RESERVED : 4; +} stc_dadr_field_t; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* MFT_PPG_MODULE register bit fields */ +typedef struct stc_mft_ppg_ttcr0_field +{ + __IO uint8_t STR0 : 1; + __IO uint8_t MONI0 : 1; + __IO uint8_t CS00 : 1; + __IO uint8_t CS01 : 1; + __IO uint8_t TRG0O : 1; + __IO uint8_t TRG2O : 1; + __IO uint8_t TRG4O : 1; + __IO uint8_t TRG6O : 1; +} stc_mft_ppg_ttcr0_field_t; + +typedef struct stc_mft_ppg_ttcr1_field +{ + __IO uint8_t STR1 : 1; + __IO uint8_t MONI1 : 1; + __IO uint8_t CS10 : 1; + __IO uint8_t CS11 : 1; + __IO uint8_t TRG1O : 1; + __IO uint8_t TRG3O : 1; + __IO uint8_t TRG5O : 1; + __IO uint8_t TRG7O : 1; +} stc_mft_ppg_ttcr1_field_t; + +typedef struct stc_mft_ppg_ttcr2_field +{ + __IO uint8_t STR2 : 1; + __IO uint8_t MONI2 : 1; + __IO uint8_t CS20 : 1; + __IO uint8_t CS21 : 1; + __IO uint8_t TRG16O : 1; + __IO uint8_t TRG18O : 1; + __IO uint8_t TRG20O : 1; + __IO uint8_t TRG22O : 1; +} stc_mft_ppg_ttcr2_field_t; + +typedef struct stc_mft_ppg_trg_field +{ + __IO uint16_t PEN00 : 1; + __IO uint16_t PEN01 : 1; + __IO uint16_t PEN02 : 1; + __IO uint16_t PEN03 : 1; + __IO uint16_t PEN04 : 1; + __IO uint16_t PEN05 : 1; + __IO uint16_t PEN06 : 1; + __IO uint16_t PEN07 : 1; + __IO uint16_t PEN08 : 1; + __IO uint16_t PEN09 : 1; + __IO uint16_t PEN10 : 1; + __IO uint16_t PEN11 : 1; + __IO uint16_t PEN12 : 1; + __IO uint16_t PEN13 : 1; + __IO uint16_t PEN14 : 1; + __IO uint16_t PEN15 : 1; +} stc_mft_ppg_trg0_field_t; + +typedef struct stc_mft_ppg_trg1_field +{ + __IO uint16_t PEN16 : 1; + __IO uint16_t PEN17 : 1; + __IO uint16_t PEN18 : 1; + __IO uint16_t PEN19 : 1; + __IO uint16_t PEN20 : 1; + __IO uint16_t PEN21 : 1; + __IO uint16_t PEN22 : 1; + __IO uint16_t PEN23 : 1; +} stc_mft_ppg_trg1_field_t; + +typedef struct stc_mft_ppg_revc_field +{ + __IO uint16_t REV00 : 1; + __IO uint16_t REV01 : 1; + __IO uint16_t REV02 : 1; + __IO uint16_t REV03 : 1; + __IO uint16_t REV04 : 1; + __IO uint16_t REV05 : 1; + __IO uint16_t REV06 : 1; + __IO uint16_t REV07 : 1; + __IO uint16_t REV08 : 1; + __IO uint16_t REV09 : 1; + __IO uint16_t REV10 : 1; + __IO uint16_t REV11 : 1; + __IO uint16_t REV12 : 1; + __IO uint16_t REV13 : 1; + __IO uint16_t REV14 : 1; + __IO uint16_t REV15 : 1; +} stc_mft_ppg_revc0_field_t; + +typedef struct stc_mft_ppg_revc1_field +{ + __IO uint16_t REV16 : 1; + __IO uint16_t REV17 : 1; + __IO uint16_t REV18 : 1; + __IO uint16_t REV19 : 1; + __IO uint16_t REV20 : 1; + __IO uint16_t REV21 : 1; + __IO uint16_t REV22 : 1; + __IO uint16_t REV23 : 1; +} stc_mft_ppg_revc1_field_t; + +typedef struct stc_mft_ppg_ppgc1_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc1_field_t; + +typedef struct stc_mft_ppg_ppgc0_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc0_field_t; + +typedef struct stc_mft_ppg_ppgc3_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc3_field_t; + +typedef struct stc_mft_ppg_ppgc2_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc2_field_t; + +typedef struct stc_mft_ppg_gatec0_field +{ + __IO uint8_t EDGE0 : 1; + __IO uint8_t STRG0 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE2 : 1; + __IO uint8_t STRG2 : 1; +} stc_mft_ppg_gatec0_field_t; + +typedef struct stc_mft_ppg_ppgc5_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc5_field_t; + +typedef struct stc_mft_ppg_ppgc4_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc4_field_t; + +typedef struct stc_mft_ppg_ppgc7_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc7_field_t; + +typedef struct stc_mft_ppg_ppgc6_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc6_field_t; + +typedef struct stc_mft_ppg_gatec4_field +{ + __IO uint8_t EDGE4 : 1; + __IO uint8_t STRG4 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE6 : 1; + __IO uint8_t STRG6 : 1; +} stc_mft_ppg_gatec4_field_t; + +typedef struct stc_mft_ppg_ppgc9_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc9_field_t; + +typedef struct stc_mft_ppg_ppgc8_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc8_field_t; + +typedef struct stc_mft_ppg_ppgc11_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc11_field_t; + +typedef struct stc_mft_ppg_ppgc10_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc10_field_t; + +typedef struct stc_mft_ppg_gatec8_field +{ + __IO uint8_t EDGE8 : 1; + __IO uint8_t STRG8 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE10 : 1; + __IO uint8_t STRG10 : 1; +} stc_mft_ppg_gatec8_field_t; + +typedef struct stc_mft_ppg_ppgc13_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc13_field_t; + +typedef struct stc_mft_ppg_ppgc12_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc12_field_t; + +typedef struct stc_mft_ppg_ppgc15_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc15_field_t; + +typedef struct stc_mft_ppg_ppgc14_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc14_field_t; + +typedef struct stc_mft_ppg_gatec12_field +{ + __IO uint8_t EDGE12 : 1; + __IO uint8_t STRG12 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE14 : 1; + __IO uint8_t STRG14 : 1; +} stc_mft_ppg_gatec12_field_t; + +typedef struct stc_mft_ppg_ppgc17_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc17_field_t; + +typedef struct stc_mft_ppg_ppgc16_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc16_field_t; + +typedef struct stc_mft_ppg_ppgc19_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc19_field_t; + +typedef struct stc_mft_ppg_ppgc18_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc18_field_t; + +typedef struct stc_mft_ppg_gatec16_field +{ + __IO uint8_t EDGE16 : 1; + __IO uint8_t STRG16 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE18 : 1; + __IO uint8_t STRG18 : 1; +} stc_mft_ppg_gatec16_field_t; + +typedef struct stc_mft_ppg_ppgc21_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc21_field_t; + +typedef struct stc_mft_ppg_ppgc20_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc20_field_t; + +typedef struct stc_mft_ppg_ppgc23_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc23_field_t; + +typedef struct stc_mft_ppg_ppgc22_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc22_field_t; + +typedef struct stc_mft_ppg_gatec20_field +{ + __IO uint8_t EDGE20 : 1; + __IO uint8_t STRG20 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE22 : 1; + __IO uint8_t STRG22 : 1; +} stc_mft_ppg_gatec20_field_t; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* BT_PPG_MODULE register bit fields */ +typedef struct stc_bt_ppg_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_ppg_tmcr_field_t; + +typedef struct stc_bt_ppg_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_ppg_stc_field_t; + +typedef struct stc_bt_ppg_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_ppg_tmcr2_field_t; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* BT_PWM_MODULE register bit fields */ +typedef struct stc_bt_pwm_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwm_tmcr_field_t; + +typedef struct stc_bt_pwm_stc_field +{ + __IO uint8_t UDIR : 1; + __IO uint8_t DTIR : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t UDIE : 1; + __IO uint8_t DTIE : 1; + __IO uint8_t TGIE : 1; +} stc_bt_pwm_stc_field_t; + +typedef struct stc_bt_pwm_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwm_tmcr2_field_t; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* BT_RT_MODULE register bit fields */ +typedef struct stc_bt_rt_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_rt_tmcr_field_t; + +typedef struct stc_bt_rt_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_rt_stc_field_t; + +typedef struct stc_bt_rt_tmcr2_field +{ + __IO uint8_t CKS3 : 1; + __IO uint8_t RESERVED1 : 6; + __IO uint8_t GATE : 1; +} stc_bt_rt_tmcr2_field_t; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* BT_PWC_MODULE register bit fields */ +typedef struct stc_bt_pwc_tmcr_field +{ + uint16_t RESERVED1 : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t EGS2 : 1; + uint16_t RESERVED3 : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwc_tmcr_field_t; + +typedef struct stc_bt_pwc_stc_field +{ + __IO uint8_t OVIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t EDIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t OVIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t EDIE : 1; + __IO uint8_t ERR : 1; +} stc_bt_pwc_stc_field_t; + +typedef struct stc_bt_pwc_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwc_tmcr2_field_t; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* BTIOSEL03_MODULE register bit fields */ +typedef struct stc_btiosel03_btsel0123_field +{ + __IO uint8_t SEL01_0 : 1; + __IO uint8_t SEL01_1 : 1; + __IO uint8_t SEL01_2 : 1; + __IO uint8_t SEL01_3 : 1; + __IO uint8_t SEL23_0 : 1; + __IO uint8_t SEL23_1 : 1; + __IO uint8_t SEL23_2 : 1; + __IO uint8_t SEL23_3 : 1; +} stc_btiosel03_btsel0123_field_t; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* BTIOSEL47_MODULE register bit fields */ +typedef struct stc_btiosel47_btsel4567_field +{ + __IO uint8_t SEL45_0 : 1; + __IO uint8_t SEL45_1 : 1; + __IO uint8_t SEL45_2 : 1; + __IO uint8_t SEL45_3 : 1; + __IO uint8_t SEL67_0 : 1; + __IO uint8_t SEL67_1 : 1; + __IO uint8_t SEL67_2 : 1; + __IO uint8_t SEL67_3 : 1; +} stc_btiosel47_btsel4567_field_t; + +/****************************************************************************** + * BTIOSEL811_MODULE + ******************************************************************************/ +/* BTIOSEL811_MODULE register bit fields */ +typedef struct stc_btiosel8b_btsel89ab_field +{ + __IO uint8_t SEL89_0 : 1; + __IO uint8_t SEL89_1 : 1; + __IO uint8_t SEL89_2 : 1; + __IO uint8_t SEL89_3 : 1; + __IO uint8_t SELAB_0 : 1; + __IO uint8_t SELAB_1 : 1; + __IO uint8_t SELAB_2 : 1; + __IO uint8_t SELAB_3 : 1; +} stc_btiosel8b_btsel89ab_field_t; + +/****************************************************************************** + * BTIOSEL1215_MODULE + ******************************************************************************/ +/* BTIOSEL1215_MODULE register bit fields */ +typedef struct stc_btioselcf_btselcdef_field +{ + __IO uint8_t SELCD_0 : 1; + __IO uint8_t SELCD_1 : 1; + __IO uint8_t SELCD_2 : 1; + __IO uint8_t SELCD_3 : 1; + __IO uint8_t SELEF_0 : 1; + __IO uint8_t SELEF_1 : 1; + __IO uint8_t SELEF_2 : 1; + __IO uint8_t SELEF_3 : 1; +} stc_btioselcf_btselcdef_field_t; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* SBSSR_MODULE register bit fields */ +typedef struct stc_sbssr_btsssr_field +{ + __IO uint16_t SSR0 : 1; + __IO uint16_t SSR1 : 1; + __IO uint16_t SSR2 : 1; + __IO uint16_t SSR3 : 1; + __IO uint16_t SSR4 : 1; + __IO uint16_t SSR5 : 1; + __IO uint16_t SSR6 : 1; + __IO uint16_t SSR7 : 1; + __IO uint16_t SSR8 : 1; + __IO uint16_t SSR9 : 1; + __IO uint16_t SSR10 : 1; + __IO uint16_t SSR11 : 1; + __IO uint16_t SSR12 : 1; + __IO uint16_t SSR13 : 1; + __IO uint16_t SSR14 : 1; + __IO uint16_t SSR15 : 1; +} stc_sbssr_btsssr_field_t; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* QPRC_MODULE register bit fields */ +typedef struct stc_qprc_qicr_field +{ + __IO uint16_t QPCMIE : 1; + __IO uint16_t QPCMF : 1; + __IO uint16_t QPRCMIE : 1; + __IO uint16_t QPRCMF : 1; + __IO uint16_t OUZIE : 1; + __IO uint16_t UFDF : 1; + __IO uint16_t OFDF : 1; + __IO uint16_t ZIIF : 1; + __IO uint16_t CDCIE : 1; + __IO uint16_t CDCF : 1; + __IO uint16_t DIRPC : 1; + __IO uint16_t DIROU : 1; + __IO uint16_t QPCNRCMIE : 1; + __IO uint16_t QPCNRCMF : 1; +} stc_qprc_qicr_field_t; + +typedef struct stc_qprc_qicrl_field +{ + __IO uint8_t QPCMIE : 1; + __IO uint8_t QPCMF : 1; + __IO uint8_t QPRCMIE : 1; + __IO uint8_t QPRCMF : 1; + __IO uint8_t OUZIE : 1; + __IO uint8_t UFDF : 1; + __IO uint8_t OFDF : 1; + __IO uint8_t ZIIF : 1; +} stc_qprc_qicrl_field_t; + +typedef struct stc_qprc_qicrh_field +{ + __IO uint8_t CDCIE : 1; + __IO uint8_t CDCF : 1; + __IO uint8_t DIRPC : 1; + __IO uint8_t DIROU : 1; + __IO uint8_t QPCNRCMIE : 1; + __IO uint8_t QPCNRCMF : 1; +} stc_qprc_qicrh_field_t; + +typedef struct stc_qprc_qcr_field +{ + __IO uint16_t PCM0 : 1; + __IO uint16_t PCM1 : 1; + __IO uint16_t RCM0 : 1; + __IO uint16_t RCM1 : 1; + __IO uint16_t PSTP : 1; + __IO uint16_t CGSC : 1; + __IO uint16_t RSEL : 1; + __IO uint16_t SWAP : 1; + __IO uint16_t PCRM0 : 1; + __IO uint16_t PCRM1 : 1; + __IO uint16_t AES0 : 1; + __IO uint16_t AES1 : 1; + __IO uint16_t BES0 : 1; + __IO uint16_t BES1 : 1; + __IO uint16_t CGE0 : 1; + __IO uint16_t CGE1 : 1; +} stc_qprc_qcr_field_t; + +typedef struct stc_qprc_qcrl_field +{ + __IO uint8_t PCM0 : 1; + __IO uint8_t PCM1 : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t PSTP : 1; + __IO uint8_t CGSC : 1; + __IO uint8_t RSEL : 1; + __IO uint8_t SWAP : 1; +} stc_qprc_qcrl_field_t; + +typedef struct stc_qprc_qcrh_field +{ + __IO uint8_t PCRM0 : 1; + __IO uint8_t PCRM1 : 1; + __IO uint8_t AES0 : 1; + __IO uint8_t AES1 : 1; + __IO uint8_t BES0 : 1; + __IO uint8_t BES1 : 1; + __IO uint8_t CGE0 : 1; + __IO uint8_t CGE1 : 1; +} stc_qprc_qcrh_field_t; + +typedef struct stc_qprc_qecr_field +{ + __IO uint16_t ORNGMD : 1; + __IO uint16_t ORNGF : 1; + __IO uint16_t ORNGIE : 1; +} stc_qprc_qecr_field_t; + +/****************************************************************************** + * QPRC_NF_MODULE + ******************************************************************************/ +/* QPRC_NF_MODULE register bit fields */ +typedef struct stc_qprc_nf_nfctla_field +{ + __IO uint8_t AINNWS : 3; + uint8_t RESERVED1 : 1; + __IO uint8_t AINLV : 1; + __IO uint8_t AINMD : 1; +} stc_qprc_nf_nfctla_field_t; + +typedef struct stc_qprc_nf_nfctlb_field +{ + __IO uint8_t BINNWS : 3; + uint8_t RESERVED1 : 1; + __IO uint8_t BINLV : 1; + __IO uint8_t BINMD : 1; +} stc_qprc_nf_nfctlb_field_t; + +typedef struct stc_qprc_nf_nfrctlz_field +{ + __IO uint8_t ZINNWS : 3; + uint8_t RESERVED1 : 1; + __IO uint8_t ZINLV : 1; + __IO uint8_t ZINMD : 1; +} stc_qprc_nf_nfrctlz_field_t; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* ADC12_MODULE register bit fields */ +typedef struct stc_adc_adsr_field +{ + __IO uint8_t SCS : 1; + __IO uint8_t PCS : 1; + __IO uint8_t PCNS : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t FDAS : 1; + __IO uint8_t ADSTP : 1; +} stc_adc_adsr_field_t; + +typedef struct stc_adc_adcr_field +{ + __IO uint8_t OVRIE : 1; + __IO uint8_t CMPIE : 1; + __IO uint8_t PCIE : 1; + __IO uint8_t SCIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t CMPIF : 1; + __IO uint8_t PCIF : 1; + __IO uint8_t SCIF : 1; +} stc_adc_adcr_field_t; + +typedef struct stc_adc_sfns_field +{ + __IO uint8_t SFS0 : 1; + __IO uint8_t SFS1 : 1; + __IO uint8_t SFS2 : 1; + __IO uint8_t SFS3 : 1; +} stc_adc_sfns_field_t; + +typedef struct stc_adc_sccr_field +{ + __IO uint8_t SSTR : 1; + __IO uint8_t SHEN : 1; + __IO uint8_t RPT : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t SFCLR : 1; + __IO uint8_t SOVR : 1; + __IO uint8_t SFUL : 1; + __IO uint8_t SEMP : 1; +} stc_adc_sccr_field_t; + +typedef struct stc_adc_scfd_field +{ + __IO uint32_t SC0 : 1; + __IO uint32_t SC1 : 1; + __IO uint32_t SC2 : 1; + __IO uint32_t SC3 : 1; + __IO uint32_t SC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; + __IO uint32_t SD3 : 1; + __IO uint32_t SD4 : 1; + __IO uint32_t SD5 : 1; + __IO uint32_t SD6 : 1; + __IO uint32_t SD7 : 1; + __IO uint32_t SD8 : 1; + __IO uint32_t SD9 : 1; + __IO uint32_t SD10 : 1; + __IO uint32_t SD11 : 1; +} stc_adc_scfd_field_t; + +typedef struct stc_adc_scfdl_field +{ + __IO uint16_t SC0 : 1; + __IO uint16_t SC1 : 1; + __IO uint16_t SC2 : 1; + __IO uint16_t SC3 : 1; + __IO uint16_t SC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t INVL : 1; +} stc_adc_scfdl_field_t; + +typedef struct stc_adc_scfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t SD0 : 1; + __IO uint16_t SD1 : 1; + __IO uint16_t SD2 : 1; + __IO uint16_t SD3 : 1; + __IO uint16_t SD4 : 1; + __IO uint16_t SD5 : 1; + __IO uint16_t SD6 : 1; + __IO uint16_t SD7 : 1; + __IO uint16_t SD8 : 1; + __IO uint16_t SD9 : 1; + __IO uint16_t SD10 : 1; + __IO uint16_t SD11 : 1; +} stc_adc_scfdh_field_t; + +typedef struct stc_adc_scis23_field +{ + __IO uint16_t AN16 : 1; + __IO uint16_t AN17 : 1; + __IO uint16_t AN18 : 1; + __IO uint16_t AN19 : 1; + __IO uint16_t AN20 : 1; + __IO uint16_t AN21 : 1; + __IO uint16_t AN22 : 1; + __IO uint16_t AN23 : 1; + __IO uint16_t AN24 : 1; + __IO uint16_t AN25 : 1; + __IO uint16_t AN26 : 1; + __IO uint16_t AN27 : 1; + __IO uint16_t AN28 : 1; + __IO uint16_t AN29 : 1; + __IO uint16_t AN30 : 1; + __IO uint16_t AN31 : 1; +} stc_adc_scis23_field_t; + +typedef struct stc_adc_scis2_field +{ + __IO uint8_t AN16 : 1; + __IO uint8_t AN17 : 1; + __IO uint8_t AN18 : 1; + __IO uint8_t AN19 : 1; + __IO uint8_t AN20 : 1; + __IO uint8_t AN21 : 1; + __IO uint8_t AN22 : 1; + __IO uint8_t AN23 : 1; +} stc_adc_scis2_field_t; + +typedef struct stc_adc_scis3_field +{ + __IO uint8_t AN24 : 1; + __IO uint8_t AN25 : 1; + __IO uint8_t AN26 : 1; + __IO uint8_t AN27 : 1; + __IO uint8_t AN28 : 1; + __IO uint8_t AN29 : 1; + __IO uint8_t AN30 : 1; + __IO uint8_t AN31 : 1; +} stc_adc_scis3_field_t; + +typedef struct stc_adc_scis01_field +{ + __IO uint16_t AN0 : 1; + __IO uint16_t AN1 : 1; + __IO uint16_t AN2 : 1; + __IO uint16_t AN3 : 1; + __IO uint16_t AN4 : 1; + __IO uint16_t AN5 : 1; + __IO uint16_t AN6 : 1; + __IO uint16_t AN7 : 1; + __IO uint16_t AN8 : 1; + __IO uint16_t AN9 : 1; + __IO uint16_t AN10 : 1; + __IO uint16_t AN11 : 1; + __IO uint16_t AN12 : 1; + __IO uint16_t AN13 : 1; + __IO uint16_t AN14 : 1; + __IO uint16_t AN15 : 1; +} stc_adc_scis01_field_t; + +typedef struct stc_adc_scis0_field +{ + __IO uint8_t AN0 : 1; + __IO uint8_t AN1 : 1; + __IO uint8_t AN2 : 1; + __IO uint8_t AN3 : 1; + __IO uint8_t AN4 : 1; + __IO uint8_t AN5 : 1; + __IO uint8_t AN6 : 1; + __IO uint8_t AN7 : 1; +} stc_adc_scis0_field_t; + +typedef struct stc_adc_scis1_field +{ + __IO uint8_t AN8 : 1; + __IO uint8_t AN9 : 1; + __IO uint8_t AN10 : 1; + __IO uint8_t AN11 : 1; + __IO uint8_t AN12 : 1; + __IO uint8_t AN13 : 1; + __IO uint8_t AN14 : 1; + __IO uint8_t AN15 : 1; +} stc_adc_scis1_field_t; + +typedef struct stc_adc_pfns_field +{ + __IO uint8_t PFS : 2; + uint8_t RESERVED1 : 2; + __IO uint8_t TEST0 : 1; + __IO uint8_t TEST1 : 1; +} stc_adc_pfns_field_t; + +typedef struct stc_adc_pccr_field +{ + __IO uint8_t PSTR : 1; + __IO uint8_t PHEN : 1; + __IO uint8_t PEEN : 1; + __IO uint8_t ESCE : 1; + __IO uint8_t PFCLR : 1; + __IO uint8_t POVR : 1; + __IO uint8_t PFUL : 1; + __IO uint8_t PEMP : 1; +} stc_adc_pccr_field_t; + +typedef struct stc_adc_pcfd_field +{ + __IO uint32_t PC0 : 1; + __IO uint32_t PC1 : 1; + __IO uint32_t PC2 : 1; + __IO uint32_t PC3 : 1; + __IO uint32_t PC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + __IO uint32_t RS2 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t PD0 : 1; + __IO uint32_t PD1 : 1; + __IO uint32_t PD2 : 1; + __IO uint32_t PD3 : 1; + __IO uint32_t PD4 : 1; + __IO uint32_t PD5 : 1; + __IO uint32_t PD6 : 1; + __IO uint32_t PD7 : 1; + __IO uint32_t PD8 : 1; + __IO uint32_t PD9 : 1; + __IO uint32_t PD10 : 1; + __IO uint32_t PD11 : 1; +} stc_adc_pcfd_field_t; + +typedef struct stc_adc_pcfdl_field +{ + __IO uint16_t PC0 : 1; + __IO uint16_t PC1 : 1; + __IO uint16_t PC2 : 1; + __IO uint16_t PC3 : 1; + __IO uint16_t PC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + __IO uint16_t RS2 : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t INVL : 1; +} stc_adc_pcfdl_field_t; + +typedef struct stc_adc_pcfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t PD0 : 1; + __IO uint16_t PD1 : 1; + __IO uint16_t PD2 : 1; + __IO uint16_t PD3 : 1; + __IO uint16_t PD4 : 1; + __IO uint16_t PD5 : 1; + __IO uint16_t PD6 : 1; + __IO uint16_t PD7 : 1; + __IO uint16_t PD8 : 1; + __IO uint16_t PD9 : 1; + __IO uint16_t PD10 : 1; + __IO uint16_t PD11 : 1; +} stc_adc_pcfdh_field_t; + +typedef struct stc_adc_pcis_field +{ + __IO uint8_t P1A : 3; + __IO uint8_t P2A : 5; +} stc_adc_pcis_field_t; + +typedef struct stc_adc_cmpcr_field +{ + __IO uint8_t CCH : 5; + __IO uint8_t CMD0 : 1; + __IO uint8_t CMD1 : 1; + __IO uint8_t CMPEN : 1; +} stc_adc_cmpcr_field_t; + +typedef struct stc_adc_cmpd_field +{ + uint16_t RESERVED1 : 6; + __IO uint16_t CMAD2 : 1; + __IO uint16_t CMAD3 : 1; + __IO uint16_t CMAD4 : 1; + __IO uint16_t CMAD5 : 1; + __IO uint16_t CMAD6 : 1; + __IO uint16_t CMAD7 : 1; + __IO uint16_t CMAD8 : 1; + __IO uint16_t CMAD9 : 1; + __IO uint16_t CMAD10 : 1; + __IO uint16_t CMAD11 : 1; +} stc_adc_cmpd_field_t; + +typedef struct stc_adc_adss23_field +{ + __IO uint16_t TS16 : 1; + __IO uint16_t TS17 : 1; + __IO uint16_t TS18 : 1; + __IO uint16_t TS19 : 1; + __IO uint16_t TS20 : 1; + __IO uint16_t TS21 : 1; + __IO uint16_t TS22 : 1; + __IO uint16_t TS23 : 1; + __IO uint16_t TS24 : 1; + __IO uint16_t TS25 : 1; + __IO uint16_t TS26 : 1; + __IO uint16_t TS27 : 1; + __IO uint16_t TS28 : 1; + __IO uint16_t TS29 : 1; + __IO uint16_t TS30 : 1; + __IO uint16_t TS31 : 1; +} stc_adc_adss23_field_t; + +typedef struct stc_adc_adss2_field +{ + __IO uint8_t TS16 : 1; + __IO uint8_t TS17 : 1; + __IO uint8_t TS18 : 1; + __IO uint8_t TS19 : 1; + __IO uint8_t TS20 : 1; + __IO uint8_t TS21 : 1; + __IO uint8_t TS22 : 1; + __IO uint8_t TS23 : 1; +} stc_adc_adss2_field_t; + +typedef struct stc_adc_adss3_field +{ + __IO uint8_t TS24 : 1; + __IO uint8_t TS25 : 1; + __IO uint8_t TS26 : 1; + __IO uint8_t TS27 : 1; + __IO uint8_t TS28 : 1; + __IO uint8_t TS29 : 1; + __IO uint8_t TS30 : 1; + __IO uint8_t TS31 : 1; +} stc_adc_adss3_field_t; + +typedef struct stc_adc_adss01_field +{ + __IO uint16_t TS0 : 1; + __IO uint16_t TS1 : 1; + __IO uint16_t TS2 : 1; + __IO uint16_t TS3 : 1; + __IO uint16_t TS4 : 1; + __IO uint16_t TS5 : 1; + __IO uint16_t TS6 : 1; + __IO uint16_t TS7 : 1; + __IO uint16_t TS8 : 1; + __IO uint16_t TS9 : 1; + __IO uint16_t TS10 : 1; + __IO uint16_t TS11 : 1; + __IO uint16_t TS12 : 1; + __IO uint16_t TS13 : 1; + __IO uint16_t TS14 : 1; + __IO uint16_t TS15 : 1; +} stc_adc_adss01_field_t; + +typedef struct stc_adc_adss0_field +{ + __IO uint8_t TS0 : 1; + __IO uint8_t TS1 : 1; + __IO uint8_t TS2 : 1; + __IO uint8_t TS3 : 1; + __IO uint8_t TS4 : 1; + __IO uint8_t TS5 : 1; + __IO uint8_t TS6 : 1; + __IO uint8_t TS7 : 1; +} stc_adc_adss0_field_t; + +typedef struct stc_adc_adss1_field +{ + __IO uint8_t TS8 : 1; + __IO uint8_t TS9 : 1; + __IO uint8_t TS10 : 1; + __IO uint8_t TS11 : 1; + __IO uint8_t TS12 : 1; + __IO uint8_t TS13 : 1; + __IO uint8_t TS14 : 1; + __IO uint8_t TS15 : 1; +} stc_adc_adss1_field_t; + +typedef struct stc_adc_adst01_field +{ + __IO uint16_t ST10 : 1; + __IO uint16_t ST11 : 1; + __IO uint16_t ST12 : 1; + __IO uint16_t ST13 : 1; + __IO uint16_t ST14 : 1; + __IO uint16_t STX10 : 1; + __IO uint16_t STX11 : 1; + __IO uint16_t STX12 : 1; + __IO uint16_t ST00 : 1; + __IO uint16_t ST01 : 1; + __IO uint16_t ST02 : 1; + __IO uint16_t ST03 : 1; + __IO uint16_t ST04 : 1; + __IO uint16_t STX00 : 1; + __IO uint16_t STX01 : 1; + __IO uint16_t STX02 : 1; +} stc_adc_adst01_field_t; + +typedef struct stc_adc_adst1_field +{ + __IO uint8_t ST1 : 5; + __IO uint8_t STX1 : 3; +} stc_adc_adst1_field_t; + +typedef struct stc_adc_adst0_field +{ + __IO uint8_t ST0 : 5; + __IO uint8_t STX0 : 3; +} stc_adc_adst0_field_t; + +typedef struct stc_adc_adct_field +{ + __IO uint8_t CT0 : 1; + __IO uint8_t CT1 : 1; + __IO uint8_t CT2 : 1; +} stc_adc_adct_field_t; + +typedef struct stc_adc_prtsl_field +{ + __IO uint8_t PRTSL0 : 1; + __IO uint8_t PRTSL1 : 1; + __IO uint8_t PRTSL2 : 1; + __IO uint8_t PRTSL3 : 1; +} stc_adc_prtsl_field_t; + +typedef struct stc_adc_sctsl_field +{ + __IO uint8_t SCTSL0 : 1; + __IO uint8_t SCTSL1 : 1; + __IO uint8_t SCTSL2 : 1; + __IO uint8_t SCTSL3 : 1; +} stc_adc_sctsl_field_t; + +typedef struct stc_adc_adcen_field +{ + __IO uint16_t ENBL : 1; + __IO uint16_t READY : 1; + __IO uint16_t RESERVED : 6; + __IO uint16_t ENBLTIME : 8; +} stc_adc_adcen_field_t; + +typedef struct stc_adc_wcmpdh_field +{ + uint16_t RESERVED : 6; + __IO uint16_t CMHD : 10; +} stc_adc_wcmpdh_field_t; + +typedef struct stc_adc_wcmpcr_field +{ + uint8_t RESERVED : 2; + __IO uint8_t RCOE : 1; + __IO uint8_t RCOIE : 1; + __IO uint8_t RCOIRRS : 1; + __IO uint8_t RCOCD : 3; +} stc_adc_wcmpcr_field_t; + +typedef struct stc_adc_wcmpdl_field +{ + uint16_t RESERVED : 6; + __IO uint16_t CMLD : 10; +} stc_adc_wcmpdl_field_t; + +typedef struct stc_adc_wcmpsr_field +{ + __IO uint8_t WCCH : 5; + __IO uint8_t WCMD : 1; + __IO uint8_t RESERVED : 2; +} stc_adc_wcmpsr_field_t; + +typedef struct stc_adc_wcmrcot_field +{ + __IO uint32_t RCOOF : 1; + uint32_t RESERVED : 31; +} stc_adc_wcmrcot_field_t; + +typedef struct stc_adc_wcmrcif_field +{ + __IO uint32_t RCINT : 1; + uint32_t RESERVED : 31; +} stc_adc_wcmrcif_field_t; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CRTRIM_MODULE register bit fields */ +typedef struct stc_crtrim_mcr_psr_field +{ + __IO uint8_t CSR : 3; +} stc_crtrim_mcr_psr_field_t; + +typedef struct stc_crtrim_mcr_ftrm_field +{ + __IO uint16_t TRD :10; +} stc_crtrim_mcr_ftrm_field_t; + +typedef struct stc_crtrim_mcr_ttrm_field +{ + __IO uint8_t TRT : 5; +} stc_crtrim_mcr_ttrm_field_t; + +typedef struct stc_crtrim_mcr_rlr_field +{ + __IO uint32_t TRMLCK :32; +} stc_crtrim_mcr_rlr_field_t; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* EXTI_MODULE register bit fields */ +typedef struct stc_exti_enir_field +{ + __IO uint32_t EN0 : 1; + __IO uint32_t EN1 : 1; + __IO uint32_t EN2 : 1; + __IO uint32_t EN3 : 1; + __IO uint32_t EN4 : 1; + __IO uint32_t EN5 : 1; + __IO uint32_t EN6 : 1; + __IO uint32_t EN7 : 1; + __IO uint32_t EN8 : 1; + __IO uint32_t EN9 : 1; + __IO uint32_t EN10 : 1; + __IO uint32_t EN11 : 1; + __IO uint32_t EN12 : 1; + __IO uint32_t EN13 : 1; + __IO uint32_t EN14 : 1; + __IO uint32_t EN15 : 1; + __IO uint32_t EN16 : 1; + __IO uint32_t EN17 : 1; + __IO uint32_t EN18 : 1; + __IO uint32_t EN19 : 1; + __IO uint32_t EN20 : 1; + __IO uint32_t EN21 : 1; + __IO uint32_t EN22 : 1; + __IO uint32_t EN23 : 1; + __IO uint32_t EN24 : 1; + __IO uint32_t EN25 : 1; + __IO uint32_t EN26 : 1; + __IO uint32_t EN27 : 1; + __IO uint32_t EN28 : 1; + __IO uint32_t EN29 : 1; + __IO uint32_t EN30 : 1; + __IO uint32_t EN31 : 1; +} stc_exti_enir_field_t; + +typedef struct stc_exti_eirr_field +{ + __IO uint32_t ER0 : 1; + __IO uint32_t ER1 : 1; + __IO uint32_t ER2 : 1; + __IO uint32_t ER3 : 1; + __IO uint32_t ER4 : 1; + __IO uint32_t ER5 : 1; + __IO uint32_t ER6 : 1; + __IO uint32_t ER7 : 1; + __IO uint32_t ER8 : 1; + __IO uint32_t ER9 : 1; + __IO uint32_t ER10 : 1; + __IO uint32_t ER11 : 1; + __IO uint32_t ER12 : 1; + __IO uint32_t ER13 : 1; + __IO uint32_t ER14 : 1; + __IO uint32_t ER15 : 1; + __IO uint32_t ER16 : 1; + __IO uint32_t ER17 : 1; + __IO uint32_t ER18 : 1; + __IO uint32_t ER19 : 1; + __IO uint32_t ER20 : 1; + __IO uint32_t ER21 : 1; + __IO uint32_t ER22 : 1; + __IO uint32_t ER23 : 1; + __IO uint32_t ER24 : 1; + __IO uint32_t ER25 : 1; + __IO uint32_t ER26 : 1; + __IO uint32_t ER27 : 1; + __IO uint32_t ER28 : 1; + __IO uint32_t ER29 : 1; + __IO uint32_t ER30 : 1; + __IO uint32_t ER31 : 1; +} stc_exti_eirr_field_t; + +typedef struct stc_exti_eicl_field +{ + __IO uint32_t ECL0 : 1; + __IO uint32_t ECL1 : 1; + __IO uint32_t ECL2 : 1; + __IO uint32_t ECL3 : 1; + __IO uint32_t ECL4 : 1; + __IO uint32_t ECL5 : 1; + __IO uint32_t ECL6 : 1; + __IO uint32_t ECL7 : 1; + __IO uint32_t ECL8 : 1; + __IO uint32_t ECL9 : 1; + __IO uint32_t ECL10 : 1; + __IO uint32_t ECL11 : 1; + __IO uint32_t ECL12 : 1; + __IO uint32_t ECL13 : 1; + __IO uint32_t ECL14 : 1; + __IO uint32_t ECL15 : 1; + __IO uint32_t ECL16 : 1; + __IO uint32_t ECL17 : 1; + __IO uint32_t ECL18 : 1; + __IO uint32_t ECL19 : 1; + __IO uint32_t ECL20 : 1; + __IO uint32_t ECL21 : 1; + __IO uint32_t ECL22 : 1; + __IO uint32_t ECL23 : 1; + __IO uint32_t ECL24 : 1; + __IO uint32_t ECL25 : 1; + __IO uint32_t ECL26 : 1; + __IO uint32_t ECL27 : 1; + __IO uint32_t ECL28 : 1; + __IO uint32_t ECL29 : 1; + __IO uint32_t ECL30 : 1; + __IO uint32_t ECL31 : 1; +} stc_exti_eicl_field_t; + +typedef struct stc_exti_elvr_field +{ + __IO uint32_t LA0 : 1; + __IO uint32_t LB0 : 1; + __IO uint32_t LA1 : 1; + __IO uint32_t LB1 : 1; + __IO uint32_t LA2 : 1; + __IO uint32_t LB2 : 1; + __IO uint32_t LA3 : 1; + __IO uint32_t LB3 : 1; + __IO uint32_t LA4 : 1; + __IO uint32_t LB4 : 1; + __IO uint32_t LA5 : 1; + __IO uint32_t LB5 : 1; + __IO uint32_t LA6 : 1; + __IO uint32_t LB6 : 1; + __IO uint32_t LA7 : 1; + __IO uint32_t LB7 : 1; + __IO uint32_t LA8 : 1; + __IO uint32_t LB8 : 1; + __IO uint32_t LA9 : 1; + __IO uint32_t LB9 : 1; + __IO uint32_t LA10 : 1; + __IO uint32_t LB10 : 1; + __IO uint32_t LA11 : 1; + __IO uint32_t LB11 : 1; + __IO uint32_t LA12 : 1; + __IO uint32_t LB12 : 1; + __IO uint32_t LA13 : 1; + __IO uint32_t LB13 : 1; + __IO uint32_t LA14 : 1; + __IO uint32_t LB14 : 1; + __IO uint32_t LA15 : 1; + __IO uint32_t LB15 : 1; +} stc_exti_elvr_field_t; + +typedef struct stc_exti_elvr1_field +{ + __IO uint32_t LA16 : 1; + __IO uint32_t LB16 : 1; + __IO uint32_t LA17 : 1; + __IO uint32_t LB17 : 1; + __IO uint32_t LA18 : 1; + __IO uint32_t LB18 : 1; + __IO uint32_t LA19 : 1; + __IO uint32_t LB19 : 1; + __IO uint32_t LA20 : 1; + __IO uint32_t LB20 : 1; + __IO uint32_t LA21 : 1; + __IO uint32_t LB21 : 1; + __IO uint32_t LA22 : 1; + __IO uint32_t LB22 : 1; + __IO uint32_t LA23 : 1; + __IO uint32_t LB23 : 1; + __IO uint32_t LA24 : 1; + __IO uint32_t LB24 : 1; + __IO uint32_t LA25 : 1; + __IO uint32_t LB25 : 1; + __IO uint32_t LA26 : 1; + __IO uint32_t LB26 : 1; + __IO uint32_t LA27 : 1; + __IO uint32_t LB27 : 1; + __IO uint32_t LA28 : 1; + __IO uint32_t LB28 : 1; + __IO uint32_t LA29 : 1; + __IO uint32_t LB29 : 1; + __IO uint32_t LA30 : 1; + __IO uint32_t LB30 : 1; + __IO uint32_t LA31 : 1; + __IO uint32_t LB31 : 1; +} stc_exti_elvr1_field_t; + +typedef struct stc_exti_nmirr_field +{ + __IO uint8_t NR : 1; +} stc_exti_nmirr_field_t; + +typedef struct stc_exti_nmicl_field +{ + __IO uint8_t NCL : 1; +} stc_exti_nmicl_field_t; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* INTREQ_MODULE register bit fields */ +typedef struct stc_intreq_drqsel_field +{ + __IO uint32_t DRQSEL0 : 1; + __IO uint32_t DRQSEL1 : 1; + __IO uint32_t DRQSEL2 : 1; + __IO uint32_t DRQSEL3 : 1; + __IO uint32_t DRQSEL4 : 1; + __IO uint32_t DRQSEL5 : 1; + __IO uint32_t DRQSEL6 : 1; + __IO uint32_t DRQSEL7 : 1; + __IO uint32_t DRQSEL8 : 1; + __IO uint32_t DRQSEL9 : 1; + __IO uint32_t DRQSEL10 : 1; + __IO uint32_t DRQSEL11 : 1; + __IO uint32_t DRQSEL12 : 1; + __IO uint32_t DRQSEL13 : 1; + __IO uint32_t DRQSEL14 : 1; + __IO uint32_t DRQSEL15 : 1; + __IO uint32_t DRQSEL16 : 1; + __IO uint32_t DRQSEL17 : 1; + __IO uint32_t DRQSEL18 : 1; + __IO uint32_t DRQSEL19 : 1; + __IO uint32_t DRQSEL20 : 1; + __IO uint32_t DRQSEL21 : 1; + __IO uint32_t DRQSEL22 : 1; + __IO uint32_t DRQSEL23 : 1; + __IO uint32_t DRQSEL24 : 1; + __IO uint32_t DRQSEL25 : 1; + __IO uint32_t DRQSEL26 : 1; + __IO uint32_t DRQSEL27 : 1; + __IO uint32_t DRQSEL28 : 1; + __IO uint32_t DRQSEL29 : 1; + __IO uint32_t DRQSEL30 : 1; + __IO uint32_t DRQSEL31 : 1; +} stc_intreq_drqsel_field_t; + +typedef struct stc_intreq_oddpks_field +{ + __IO uint8_t ODDPKS0 : 1; + __IO uint8_t ODDPKS1 : 1; + __IO uint8_t ODDPKS2 : 1; + __IO uint8_t ODDPKS3 : 1; + __IO uint8_t ODDPKS4 : 1; +} stc_intreq_oddpks_field_t; + +typedef struct stc_intreq_irq003sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq003sel_field_t; + +typedef struct stc_intreq_irq004sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq004sel_field_t; + +typedef struct stc_intreq_irq005sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq005sel_field_t; + +typedef struct stc_intreq_irq006sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq006sel_field_t; + +typedef struct stc_intreq_irq007sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq007sel_field_t; + +typedef struct stc_intreq_irq008sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq008sel_field_t; + +typedef struct stc_intreq_irq009sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq009sel_field_t; + +typedef struct stc_intreq_irq010sel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED8 : 8; + __IO uint32_t SELBIT : 8; +} stc_intreq_irq010sel_field_t; + +typedef struct stc_intreq_exc02mon_field +{ + __IO uint32_t NMI : 1; + __IO uint32_t HWINT : 1; +} stc_intreq_exc02mon_field_t; + +typedef struct stc_intreq_irq000mon_field +{ + __IO uint32_t FCSINT : 1; +} stc_intreq_irq000mon_field_t; + +typedef struct stc_intreq_irq001mon_field +{ + __IO uint32_t SWWDTINT : 1; +} stc_intreq_irq001mon_field_t; + +typedef struct stc_intreq_irq002mon_field +{ + __IO uint32_t LVDINT : 1; +} stc_intreq_irq002mon_field_t; + +typedef struct stc_intreq_irq003mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq003mon_field_t; + +typedef struct stc_intreq_irq004mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq004mon_field_t; + +typedef struct stc_intreq_irq005mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq005mon_field_t; + +typedef struct stc_intreq_irq006mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq006mon_field_t; + +typedef struct stc_intreq_irq007mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq007mon_field_t; + +typedef struct stc_intreq_irq008mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq008mon_field_t; + +typedef struct stc_intreq_irq009mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq009mon_field_t; + +typedef struct stc_intreq_irq010mon_field +{ + __IO uint32_t IRQBIT0 : 1; + __IO uint32_t IRQBIT1 : 1; + __IO uint32_t IRQBIT2 : 1; + __IO uint32_t IRQBIT3 : 1; + __IO uint32_t IRQBIT4 : 1; + __IO uint32_t IRQBIT5 : 1; + __IO uint32_t IRQBIT6 : 1; + __IO uint32_t IRQBIT7 : 1; +} stc_intreq_irq010mon_field_t; + +typedef struct stc_intreq_irq011mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq011mon_field_t; + +typedef struct stc_intreq_irq012mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq012mon_field_t; + +typedef struct stc_intreq_irq013mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq013mon_field_t; + +typedef struct stc_intreq_irq014mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq014mon_field_t; + +typedef struct stc_intreq_irq015mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq015mon_field_t; + +typedef struct stc_intreq_irq016mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq016mon_field_t; + +typedef struct stc_intreq_irq017mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq017mon_field_t; + +typedef struct stc_intreq_irq018mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq018mon_field_t; + +typedef struct stc_intreq_irq019mon_field +{ + __IO uint32_t QUDINT0 : 1; + __IO uint32_t QUDINT1 : 1; + __IO uint32_t QUDINT2 : 1; + __IO uint32_t QUDINT3 : 1; + __IO uint32_t QUDINT4 : 1; + __IO uint32_t QUDINT5 : 1; +} stc_intreq_irq019mon_field_t; + +typedef struct stc_intreq_irq020mon_field +{ + __IO uint32_t QUDINT0 : 1; + __IO uint32_t QUDINT1 : 1; + __IO uint32_t QUDINT2 : 1; + __IO uint32_t QUDINT3 : 1; + __IO uint32_t QUDINT4 : 1; + __IO uint32_t QUDINT5 : 1; +} stc_intreq_irq020mon_field_t; + +typedef struct stc_intreq_irq021mon_field +{ + __IO uint32_t WAVEINT0 : 1; + __IO uint32_t WAVEINT1 : 1; + __IO uint32_t WAVEINT2 : 1; + __IO uint32_t WAVEINT3 : 1; +} stc_intreq_irq021mon_field_t; + +typedef struct stc_intreq_irq022mon_field +{ + __IO uint32_t WAVEINT0 : 1; + __IO uint32_t WAVEINT1 : 1; + __IO uint32_t WAVEINT2 : 1; + __IO uint32_t WAVEINT3 : 1; +} stc_intreq_irq022mon_field_t; + +typedef struct stc_intreq_irq023mon_field +{ + __IO uint32_t WAVEINT0 : 1; + __IO uint32_t WAVEINT1 : 1; + __IO uint32_t WAVEINT2 : 1; + __IO uint32_t WAVEINT3 : 1; +} stc_intreq_irq023mon_field_t; + +typedef struct stc_intreq_irq024mon_field +{ + __IO uint32_t FRT_PEAK_INT0: 1; + __IO uint32_t FRT_PEAK_INT1: 1; + __IO uint32_t FRT_PEAK_INT2: 1; +} stc_intreq_irq024mon_field_t; + +typedef struct stc_intreq_irq025mon_field +{ + __IO uint32_t FRT_ZERO_INT0: 1; + __IO uint32_t FRT_ZERO_INT1: 1; + __IO uint32_t FRT_ZERO_INT2: 1; +} stc_intreq_irq025mon_field_t; + +typedef struct stc_intreq_irq026mon_field +{ + __IO uint32_t ICUINT0 : 1; + __IO uint32_t ICUINT1 : 1; + __IO uint32_t ICUINT2 : 1; + __IO uint32_t ICUINT3 : 1; +} stc_intreq_irq026mon_field_t; + +typedef struct stc_intreq_irq027mon_field +{ + __IO uint32_t OCUINT0 : 1; + __IO uint32_t OCUINT1 : 1; + __IO uint32_t OCUINT2 : 1; + __IO uint32_t OCUINT3 : 1; + __IO uint32_t OCUINT4 : 1; + __IO uint32_t OCUINT5 : 1; +} stc_intreq_irq027mon_field_t; + +typedef struct stc_intreq_irq028mon_field +{ + __IO uint32_t FRT_PEAK_INT0: 1; + __IO uint32_t FRT_PEAK_INT1: 1; + __IO uint32_t FRT_PEAK_INT2: 1; +} stc_intreq_irq028mon_field_t; + +typedef struct stc_intreq_irq029mon_field +{ + __IO uint32_t FRT_ZERO_INT0: 1; + __IO uint32_t FRT_ZERO_INT1: 1; + __IO uint32_t FRT_ZERO_INT2: 1; +} stc_intreq_irq029mon_field_t; + +typedef struct stc_intreq_irq030mon_field +{ + __IO uint32_t ICUINT0 : 1; + __IO uint32_t ICUINT1 : 1; + __IO uint32_t ICUINT2 : 1; + __IO uint32_t ICUINT3 : 1; +} stc_intreq_irq030mon_field_t; + +typedef struct stc_intreq_irq031mon_field +{ + __IO uint32_t OCUINT0 : 1; + __IO uint32_t OCUINT1 : 1; + __IO uint32_t OCUINT2 : 1; + __IO uint32_t OCUINT3 : 1; + __IO uint32_t OCUINT4 : 1; + __IO uint32_t OCUINT5 : 1; +} stc_intreq_irq031mon_field_t; + +typedef struct stc_intreq_irq032mon_field +{ + __IO uint32_t FRT_PEAK_INT0: 1; + __IO uint32_t FRT_PEAK_INT1: 1; + __IO uint32_t FRT_PEAK_INT2: 1; +} stc_intreq_irq032mon_field_t; + +typedef struct stc_intreq_irq033mon_field +{ + __IO uint32_t FRT_ZERO_INT0: 1; + __IO uint32_t FRT_ZERO_INT1: 1; + __IO uint32_t FRT_ZERO_INT2: 1; +} stc_intreq_irq033mon_field_t; + +typedef struct stc_intreq_irq034mon_field +{ + __IO uint32_t ICUINT0 : 1; + __IO uint32_t ICUINT1 : 1; + __IO uint32_t ICUINT2 : 1; + __IO uint32_t ICUINT3 : 1; +} stc_intreq_irq034mon_field_t; + +typedef struct stc_intreq_irq035mon_field +{ + __IO uint32_t OCUINT0 : 1; + __IO uint32_t OCUINT1 : 1; + __IO uint32_t OCUINT2 : 1; + __IO uint32_t OCUINT3 : 1; + __IO uint32_t OCUINT4 : 1; + __IO uint32_t OCUINT5 : 1; +} stc_intreq_irq035mon_field_t; + +typedef struct stc_intreq_irq036mon_field +{ + __IO uint32_t PPGINT0 : 1; + __IO uint32_t PPGINT1 : 1; + __IO uint32_t PPGINT2 : 1; +} stc_intreq_irq036mon_field_t; + +typedef struct stc_intreq_irq037mon_field +{ + __IO uint32_t PPGINT0 : 1; + __IO uint32_t PPGINT1 : 1; + __IO uint32_t PPGINT2 : 1; +} stc_intreq_irq037mon_field_t; + +typedef struct stc_intreq_irq038mon_field +{ + __IO uint32_t PPGINT0 : 1; + __IO uint32_t PPGINT1 : 1; + __IO uint32_t PPGINT2 : 1; +} stc_intreq_irq038mon_field_t; + +typedef struct stc_intreq_irq039mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq039mon_field_t; + +typedef struct stc_intreq_irq040mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq040mon_field_t; + +typedef struct stc_intreq_irq041mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq041mon_field_t; + +typedef struct stc_intreq_irq042mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq042mon_field_t; + +typedef struct stc_intreq_irq043mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq043mon_field_t; + +typedef struct stc_intreq_irq044mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq044mon_field_t; + +typedef struct stc_intreq_irq045mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq045mon_field_t; + +typedef struct stc_intreq_irq046mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq046mon_field_t; + +typedef struct stc_intreq_irq047mon_field +{ + __IO uint32_t TIMINT1 : 1; + __IO uint32_t TIMINT2 : 1; +} stc_intreq_irq047mon_field_t; + +typedef struct stc_intreq_irq048mon_field +{ + __IO uint32_t WCINT : 1; +} stc_intreq_irq048mon_field_t; + +typedef struct stc_intreq_irq049mon_field +{ + __IO uint32_t BMEMCS : 1; +} stc_intreq_irq049mon_field_t; + +typedef struct stc_intreq_irq050mon_field +{ + __IO uint32_t RTCINT : 1; +} stc_intreq_irq050mon_field_t; + +typedef struct stc_intreq_irq051mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq051mon_field_t; + +typedef struct stc_intreq_irq052mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq052mon_field_t; + +typedef struct stc_intreq_irq053mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq053mon_field_t; + +typedef struct stc_intreq_irq054mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq054mon_field_t; + +typedef struct stc_intreq_irq055mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq055mon_field_t; + +typedef struct stc_intreq_irq056mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq056mon_field_t; + +typedef struct stc_intreq_irq057mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq057mon_field_t; + +typedef struct stc_intreq_irq058mon_field +{ + __IO uint32_t EXTINT : 1; +} stc_intreq_irq058mon_field_t; + +typedef struct stc_intreq_irq059mon_field +{ + __IO uint32_t MOSCINT : 1; + __IO uint32_t SOSCINT : 1; + __IO uint32_t MPLLINT : 1; + __IO uint32_t UPLLINT : 1; +} stc_intreq_irq059mon_field_t; + +typedef struct stc_intreq_irq060mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq060mon_field_t; + +typedef struct stc_intreq_irq061mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq061mon_field_t; + +typedef struct stc_intreq_irq062mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq062mon_field_t; + +typedef struct stc_intreq_irq063mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq063mon_field_t; + +typedef struct stc_intreq_irq064mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq064mon_field_t; + +typedef struct stc_intreq_irq065mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq065mon_field_t; + +typedef struct stc_intreq_irq066mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq066mon_field_t; + +typedef struct stc_intreq_irq067mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq067mon_field_t; + +typedef struct stc_intreq_irq068mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq068mon_field_t; + +typedef struct stc_intreq_irq069mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq069mon_field_t; + +typedef struct stc_intreq_irq070mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq070mon_field_t; + +typedef struct stc_intreq_irq071mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq071mon_field_t; + +typedef struct stc_intreq_irq072mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq072mon_field_t; + +typedef struct stc_intreq_irq073mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq073mon_field_t; + +typedef struct stc_intreq_irq074mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq074mon_field_t; + +typedef struct stc_intreq_irq075mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq075mon_field_t; + +typedef struct stc_intreq_irq076mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; + __IO uint32_t ADCINT4 : 1; +} stc_intreq_irq076mon_field_t; + +typedef struct stc_intreq_irq077mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; + __IO uint32_t ADCINT4 : 1; +} stc_intreq_irq077mon_field_t; + +typedef struct stc_intreq_irq078mon_field +{ + __IO uint32_t USB_DRQ_INT0: 1; + __IO uint32_t USB_DRQ_INT1: 1; + __IO uint32_t USB_DRQ_INT2: 1; + __IO uint32_t USB_DRQ_INT3: 1; + __IO uint32_t USB_DRQ_INT4: 1; +} stc_intreq_irq078mon_field_t; + +typedef struct stc_intreq_irq079mon_field +{ + __IO uint32_t USB_INT0 : 1; + __IO uint32_t USB_INT1 : 1; + __IO uint32_t USB_INT2 : 1; + __IO uint32_t USB_INT3 : 1; + __IO uint32_t USB_INT4 : 1; + __IO uint32_t USB_INT5 : 1; +} stc_intreq_irq079mon_field_t; + +typedef struct stc_intreq_irq080mon_field +{ + __IO uint32_t CANINT : 1; +} stc_intreq_irq080mon_field_t; + +typedef struct stc_intreq_irq081mon_field +{ + __IO uint32_t CANINT : 1; +} stc_intreq_irq081mon_field_t; + +typedef struct stc_intreq_irq082mon_field +{ + __IO uint32_t MACSBD : 1; + __IO uint32_t MACPMT : 1; + __IO uint32_t MACLPI : 1; +} stc_intreq_irq082mon_field_t; + +typedef struct stc_intreq_irq083mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq083mon_field_t; + +typedef struct stc_intreq_irq084mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq084mon_field_t; + +typedef struct stc_intreq_irq085mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq085mon_field_t; + +typedef struct stc_intreq_irq086mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq086mon_field_t; + +typedef struct stc_intreq_irq087mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq087mon_field_t; + +typedef struct stc_intreq_irq088mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq088mon_field_t; + +typedef struct stc_intreq_irq089mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq089mon_field_t; + +typedef struct stc_intreq_irq090mon_field +{ + __IO uint32_t DMACINT : 1; +} stc_intreq_irq090mon_field_t; + +typedef struct stc_intreq_irq091mon_field +{ + __IO uint32_t DSTCINT0 : 1; + __IO uint32_t DSTCINT1 : 1; +} stc_intreq_irq091mon_field_t; + +typedef struct stc_intreq_irq092mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; +} stc_intreq_irq092mon_field_t; + +typedef struct stc_intreq_irq093mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; +} stc_intreq_irq093mon_field_t; + +typedef struct stc_intreq_irq094mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; +} stc_intreq_irq094mon_field_t; + +typedef struct stc_intreq_irq095mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; +} stc_intreq_irq095mon_field_t; + +typedef struct stc_intreq_irq096mon_field +{ + __IO uint32_t QUDINT0 : 1; + __IO uint32_t QUDINT1 : 1; + __IO uint32_t QUDINT2 : 1; + __IO uint32_t QUDINT3 : 1; + __IO uint32_t QUDINT4 : 1; + __IO uint32_t QUDINT5 : 1; +} stc_intreq_irq096mon_field_t; + +typedef struct stc_intreq_irq097mon_field +{ + __IO uint32_t QUDINT0 : 1; + __IO uint32_t QUDINT1 : 1; + __IO uint32_t QUDINT2 : 1; + __IO uint32_t QUDINT3 : 1; + __IO uint32_t QUDINT4 : 1; + __IO uint32_t QUDINT5 : 1; +} stc_intreq_irq097mon_field_t; + +typedef struct stc_intreq_irq098mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq098mon_field_t; + +typedef struct stc_intreq_irq099mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq099mon_field_t; + +typedef struct stc_intreq_irq100mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq100mon_field_t; + +typedef struct stc_intreq_irq101mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; +} stc_intreq_irq101mon_field_t; + +typedef struct stc_intreq_irq102mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; + __IO uint32_t BTINT2 : 1; + __IO uint32_t BTINT3 : 1; + __IO uint32_t BTINT4 : 1; + __IO uint32_t BTINT5 : 1; + __IO uint32_t BTINT6 : 1; + __IO uint32_t BTINT7 : 1; +} stc_intreq_irq102mon_field_t; + +typedef struct stc_intreq_irq103mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq103mon_field_t; + +typedef struct stc_intreq_irq104mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq104mon_field_t; + +typedef struct stc_intreq_irq105mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq105mon_field_t; + +typedef struct stc_intreq_irq106mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq106mon_field_t; + +typedef struct stc_intreq_irq107mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq107mon_field_t; + +typedef struct stc_intreq_irq108mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq108mon_field_t; + +typedef struct stc_intreq_irq109mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq109mon_field_t; + +typedef struct stc_intreq_irq110mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq110mon_field_t; + +typedef struct stc_intreq_irq111mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; + __IO uint32_t ADCINT4 : 1; +} stc_intreq_irq111mon_field_t; + +typedef struct stc_intreq_irq113mon_field +{ + __IO uint32_t USB_DRQ_INT0: 1; + __IO uint32_t USB_DRQ_INT1: 1; + __IO uint32_t USB_DRQ_INT2: 1; + __IO uint32_t USB_DRQ_INT3: 1; + __IO uint32_t USB_DRQ_INT4: 1; +} stc_intreq_irq113mon_field_t; + +typedef struct stc_intreq_irq114mon_field +{ + __IO uint32_t USB_INT0 : 1; + __IO uint32_t USB_INT1 : 1; + __IO uint32_t USB_INT2 : 1; + __IO uint32_t USB_INT3 : 1; + __IO uint32_t USB_INT4 : 1; + __IO uint32_t USB_INT5 : 1; +} stc_intreq_irq114mon_field_t; + +typedef struct stc_intreq_irq118mon_field +{ + __IO uint32_t SDINT0 : 1; + __IO uint32_t SDINT1 : 1; +} stc_intreq_irq118mon_field_t; + +typedef struct stc_intreq_irq119mon_field +{ + __IO uint32_t FLINT : 1; +} stc_intreq_irq119mon_field_t; + +typedef struct stc_intreq_irq120mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq120mon_field_t; + +typedef struct stc_intreq_irq121mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq121mon_field_t; + +typedef struct stc_intreq_irq122mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq122mon_field_t; + +typedef struct stc_intreq_irq123mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq123mon_field_t; + +typedef struct stc_intreq_irq124mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq124mon_field_t; + +typedef struct stc_intreq_irq125mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq125mon_field_t; + +typedef struct stc_intreq_irq126mon_field +{ + __IO uint32_t MFSRINT : 1; +} stc_intreq_irq126mon_field_t; + +typedef struct stc_intreq_irq127mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq127mon_field_t; + +/****************************************************************************** + * IRQSEL_MODULE +******************************************************************************/ +typedef struct stc_irqsel_field +{ + __IO uint32_t SELIRQ : 8; + uint32_t RESERVED0 : 8; + __IO uint32_t SELBIT : 8; + uint32_t RESERVED1 : 8; +} stc_irqsel_field_t; + +/****************************************************************************** + * DSTC_MODULE + ******************************************************************************/ +/* DSTC_MODULE register bit fields */ +typedef struct stc_dstc_hwdesp_field +{ + __IO uint32_t CHANNEL : 8; + uint32_t RESERVED1 : 8; + __IO uint32_t HWDESP : 14; + uint32_t RESERVED2 : 2; +} stc_dstc_hwdesp_field_t; + +typedef struct stc_dstc_cfg_field +{ + __IO uint8_t SWINTE : 1; + __IO uint8_t ERINTE : 1; + __IO uint8_t RBDIS : 1; + __IO uint8_t ESTE : 1; + __IO uint8_t SWPR : 3; + uint8_t RESERVED : 1; +} stc_dstc_cfg_field_t; + +typedef struct stc_dstc_swtr_field +{ + __IO uint16_t SWDESP : 14; + __IO uint16_t SWREQ : 1; + __IO uint16_t SWST : 1; +} stc_dstc_swtr_field_t; + +typedef struct stc_dstc_moners_field +{ + __IO uint32_t EST : 3; + __IO uint32_t DER : 1; + __IO uint32_t ESTOP : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t EHS : 1; + __IO uint32_t RESERVED2 : 1; + __IO uint32_t ECH : 8; + __IO uint32_t EDESP : 14; + uint32_t RESERVED3 : 2; +} stc_dstc_moners_field_t; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* GPIO_MODULE register bit fields */ +typedef struct stc_gpio_pfr0_field +{ + __IO uint32_t P00 : 1; + __IO uint32_t P01 : 1; + __IO uint32_t P02 : 1; + __IO uint32_t P03 : 1; + __IO uint32_t P04 : 1; + __IO uint32_t P05 : 1; + __IO uint32_t P06 : 1; + __IO uint32_t P07 : 1; + __IO uint32_t P08 : 1; + __IO uint32_t P09 : 1; + __IO uint32_t P0A : 1; + __IO uint32_t P0B : 1; + __IO uint32_t P0C : 1; + __IO uint32_t P0D : 1; + __IO uint32_t P0E : 1; +} stc_gpio_pfr0_field_t; + +typedef struct stc_gpio_pfr1_field +{ + __IO uint32_t P10 : 1; + __IO uint32_t P11 : 1; + __IO uint32_t P12 : 1; + __IO uint32_t P13 : 1; + __IO uint32_t P14 : 1; + __IO uint32_t P15 : 1; + __IO uint32_t P16 : 1; + __IO uint32_t P17 : 1; + __IO uint32_t P18 : 1; + __IO uint32_t P19 : 1; + __IO uint32_t P1A : 1; + __IO uint32_t P1B : 1; + __IO uint32_t P1C : 1; + __IO uint32_t P1D : 1; + __IO uint32_t P1E : 1; + __IO uint32_t P1F : 1; +} stc_gpio_pfr1_field_t; + +typedef struct stc_gpio_pfr2_field +{ + __IO uint32_t P20 : 1; + __IO uint32_t P21 : 1; + __IO uint32_t P22 : 1; + __IO uint32_t P23 : 1; + __IO uint32_t P24 : 1; + __IO uint32_t P25 : 1; + __IO uint32_t P26 : 1; + __IO uint32_t P27 : 1; +} stc_gpio_pfr2_field_t; + +typedef struct stc_gpio_pfr3_field +{ + __IO uint32_t P30 : 1; + __IO uint32_t P31 : 1; + __IO uint32_t P32 : 1; + __IO uint32_t P33 : 1; + __IO uint32_t P34 : 1; + __IO uint32_t P35 : 1; + __IO uint32_t P36 : 1; + __IO uint32_t P37 : 1; + __IO uint32_t P38 : 1; + __IO uint32_t P39 : 1; + __IO uint32_t P3A : 1; + __IO uint32_t P3B : 1; + __IO uint32_t P3C : 1; + __IO uint32_t P3D : 1; + __IO uint32_t P3E : 1; + __IO uint32_t P3F : 1; +} stc_gpio_pfr3_field_t; + +typedef struct stc_gpio_pfr4_field +{ + __IO uint32_t P40 : 1; + __IO uint32_t P41 : 1; + __IO uint32_t P42 : 1; + __IO uint32_t P43 : 1; + __IO uint32_t P44 : 1; + __IO uint32_t P45 : 1; + __IO uint32_t P46 : 1; + __IO uint32_t P47 : 1; + __IO uint32_t P48 : 1; + __IO uint32_t P49 : 1; + __IO uint32_t P4A : 1; + __IO uint32_t P4B : 1; + __IO uint32_t P4C : 1; + __IO uint32_t P4D : 1; + __IO uint32_t P4E : 1; +} stc_gpio_pfr4_field_t; + +typedef struct stc_gpio_pfr5_field +{ + __IO uint32_t P50 : 1; + __IO uint32_t P51 : 1; + __IO uint32_t P52 : 1; + __IO uint32_t P53 : 1; + __IO uint32_t P54 : 1; + __IO uint32_t P55 : 1; + __IO uint32_t P56 : 1; + __IO uint32_t P57 : 1; + __IO uint32_t P58 : 1; + __IO uint32_t P59 : 1; + __IO uint32_t P5A : 1; + __IO uint32_t P5B : 1; +} stc_gpio_pfr5_field_t; + +typedef struct stc_gpio_pfr6_field +{ + __IO uint32_t P60 : 1; + __IO uint32_t P61 : 1; + __IO uint32_t P62 : 1; + __IO uint32_t P63 : 1; + __IO uint32_t P64 : 1; + __IO uint32_t P65 : 1; + __IO uint32_t P66 : 1; + __IO uint32_t P67 : 1; + __IO uint32_t P68 : 1; +} stc_gpio_pfr6_field_t; + +typedef struct stc_gpio_pfr7_field +{ + __IO uint32_t P70 : 1; + __IO uint32_t P71 : 1; + __IO uint32_t P72 : 1; + __IO uint32_t P73 : 1; + __IO uint32_t P74 : 1; +} stc_gpio_pfr7_field_t; + +typedef struct stc_gpio_pfr8_field +{ + __IO uint32_t P80 : 1; + __IO uint32_t P81 : 1; +} stc_gpio_pfr8_field_t; + +typedef struct stc_gpio_pfre_field +{ + __IO uint32_t PE0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t PE2 : 1; + __IO uint32_t PE3 : 1; +} stc_gpio_pfre_field_t; + +typedef struct stc_gpio_pcr0_field +{ + __IO uint32_t P00 : 1; + __IO uint32_t P01 : 1; + __IO uint32_t P02 : 1; + __IO uint32_t P03 : 1; + __IO uint32_t P04 : 1; + __IO uint32_t P05 : 1; + __IO uint32_t P06 : 1; + __IO uint32_t P07 : 1; + __IO uint32_t P08 : 1; + __IO uint32_t P09 : 1; + __IO uint32_t P0A : 1; + __IO uint32_t P0B : 1; + __IO uint32_t P0C : 1; + __IO uint32_t P0D : 1; + __IO uint32_t P0E : 1; +} stc_gpio_pcr0_field_t; + +typedef struct stc_gpio_pcr1_field +{ + __IO uint32_t P10 : 1; + __IO uint32_t P11 : 1; + __IO uint32_t P12 : 1; + __IO uint32_t P13 : 1; + __IO uint32_t P14 : 1; + __IO uint32_t P15 : 1; + __IO uint32_t P16 : 1; + __IO uint32_t P17 : 1; + __IO uint32_t P18 : 1; + __IO uint32_t P19 : 1; + __IO uint32_t P1A : 1; + __IO uint32_t P1B : 1; + __IO uint32_t P1C : 1; + __IO uint32_t P1D : 1; + __IO uint32_t P1E : 1; + __IO uint32_t P1F : 1; +} stc_gpio_pcr1_field_t; + +typedef struct stc_gpio_pcr2_field +{ + __IO uint32_t P20 : 1; + __IO uint32_t P21 : 1; + __IO uint32_t P22 : 1; + __IO uint32_t P23 : 1; + __IO uint32_t P24 : 1; + __IO uint32_t P25 : 1; + __IO uint32_t P26 : 1; + __IO uint32_t P27 : 1; +} stc_gpio_pcr2_field_t; + +typedef struct stc_gpio_pcr3_field +{ + __IO uint32_t P30 : 1; + __IO uint32_t P31 : 1; + __IO uint32_t P32 : 1; + __IO uint32_t P33 : 1; + __IO uint32_t P34 : 1; + __IO uint32_t P35 : 1; + __IO uint32_t P36 : 1; + __IO uint32_t P37 : 1; + __IO uint32_t P38 : 1; + __IO uint32_t P39 : 1; + __IO uint32_t P3A : 1; + __IO uint32_t P3B : 1; + __IO uint32_t P3C : 1; + __IO uint32_t P3D : 1; + __IO uint32_t P3E : 1; + __IO uint32_t P3F : 1; +} stc_gpio_pcr3_field_t; + +typedef struct stc_gpio_pcr4_field +{ + __IO uint32_t P40 : 1; + __IO uint32_t P41 : 1; + __IO uint32_t P42 : 1; + __IO uint32_t P43 : 1; + __IO uint32_t P44 : 1; + __IO uint32_t P45 : 1; + __IO uint32_t P46 : 1; + __IO uint32_t P47 : 1; + __IO uint32_t P48 : 1; + __IO uint32_t P49 : 1; + __IO uint32_t P4A : 1; + __IO uint32_t P4B : 1; + __IO uint32_t P4C : 1; + __IO uint32_t P4D : 1; + __IO uint32_t P4E : 1; +} stc_gpio_pcr4_field_t; + +typedef struct stc_gpio_pcr5_field +{ + __IO uint32_t P50 : 1; + __IO uint32_t P51 : 1; + __IO uint32_t P52 : 1; + __IO uint32_t P53 : 1; + __IO uint32_t P54 : 1; + __IO uint32_t P55 : 1; + __IO uint32_t P56 : 1; + __IO uint32_t P57 : 1; + __IO uint32_t P58 : 1; + __IO uint32_t P59 : 1; + __IO uint32_t P5A : 1; + __IO uint32_t P5B : 1; +} stc_gpio_pcr5_field_t; + +typedef struct stc_gpio_pcr6_field +{ + __IO uint32_t P60 : 1; + __IO uint32_t P61 : 1; + __IO uint32_t P62 : 1; + __IO uint32_t P63 : 1; + __IO uint32_t P64 : 1; + __IO uint32_t P65 : 1; + __IO uint32_t P66 : 1; + __IO uint32_t P67 : 1; + __IO uint32_t P68 : 1; +} stc_gpio_pcr6_field_t; + +typedef struct stc_gpio_pcr7_field +{ + __IO uint32_t P70 : 1; + __IO uint32_t P71 : 1; + __IO uint32_t P72 : 1; + __IO uint32_t P73 : 1; + __IO uint32_t P74 : 1; +} stc_gpio_pcr7_field_t; + +typedef struct stc_gpio_pcr8_field +{ + __IO uint32_t P80 : 1; + __IO uint32_t P81 : 1; +} stc_gpio_pcr8_field_t; + +typedef struct stc_gpio_pcre_field +{ + __IO uint32_t PE0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t PE2 : 1; + __IO uint32_t PE3 : 1; +} stc_gpio_pcre_field_t; + +typedef struct stc_gpio_ddr0_field +{ + __IO uint32_t P00 : 1; + __IO uint32_t P01 : 1; + __IO uint32_t P02 : 1; + __IO uint32_t P03 : 1; + __IO uint32_t P04 : 1; + __IO uint32_t P05 : 1; + __IO uint32_t P06 : 1; + __IO uint32_t P07 : 1; + __IO uint32_t P08 : 1; + __IO uint32_t P09 : 1; + __IO uint32_t P0A : 1; + __IO uint32_t P0B : 1; + __IO uint32_t P0C : 1; + __IO uint32_t P0D : 1; + __IO uint32_t P0E : 1; + __IO uint32_t P0F : 1; +} stc_gpio_ddr0_field_t; + +typedef struct stc_gpio_ddr1_field +{ + __IO uint32_t P10 : 1; + __IO uint32_t P11 : 1; + __IO uint32_t P12 : 1; + __IO uint32_t P13 : 1; + __IO uint32_t P14 : 1; + __IO uint32_t P15 : 1; + __IO uint32_t P16 : 1; + __IO uint32_t P17 : 1; + __IO uint32_t P18 : 1; + __IO uint32_t P19 : 1; + __IO uint32_t P1A : 1; + __IO uint32_t P1B : 1; + __IO uint32_t P1C : 1; + __IO uint32_t P1D : 1; + __IO uint32_t P1E : 1; + __IO uint32_t P1F : 1; +} stc_gpio_ddr1_field_t; + +typedef struct stc_gpio_ddr2_field +{ + __IO uint32_t P20 : 1; + __IO uint32_t P21 : 1; + __IO uint32_t P22 : 1; + __IO uint32_t P23 : 1; + __IO uint32_t P24 : 1; + __IO uint32_t P25 : 1; + __IO uint32_t P26 : 1; + __IO uint32_t P27 : 1; +} stc_gpio_ddr2_field_t; + +typedef struct stc_gpio_ddr3_field +{ + __IO uint32_t P30 : 1; + __IO uint32_t P31 : 1; + __IO uint32_t P32 : 1; + __IO uint32_t P33 : 1; + __IO uint32_t P34 : 1; + __IO uint32_t P35 : 1; + __IO uint32_t P36 : 1; + __IO uint32_t P37 : 1; + __IO uint32_t P38 : 1; + __IO uint32_t P39 : 1; + __IO uint32_t P3A : 1; + __IO uint32_t P3B : 1; + __IO uint32_t P3C : 1; + __IO uint32_t P3D : 1; + __IO uint32_t P3E : 1; + __IO uint32_t P3F : 1; +} stc_gpio_ddr3_field_t; + +typedef struct stc_gpio_ddr4_field +{ + __IO uint32_t P40 : 1; + __IO uint32_t P41 : 1; + __IO uint32_t P42 : 1; + __IO uint32_t P43 : 1; + __IO uint32_t P44 : 1; + __IO uint32_t P45 : 1; + __IO uint32_t P46 : 1; + __IO uint32_t P47 : 1; + __IO uint32_t P48 : 1; + __IO uint32_t P49 : 1; + __IO uint32_t P4A : 1; + __IO uint32_t P4B : 1; + __IO uint32_t P4C : 1; + __IO uint32_t P4D : 1; + __IO uint32_t P4E : 1; +} stc_gpio_ddr4_field_t; + +typedef struct stc_gpio_ddr5_field +{ + __IO uint32_t P50 : 1; + __IO uint32_t P51 : 1; + __IO uint32_t P52 : 1; + __IO uint32_t P53 : 1; + __IO uint32_t P54 : 1; + __IO uint32_t P55 : 1; + __IO uint32_t P56 : 1; + __IO uint32_t P57 : 1; + __IO uint32_t P58 : 1; + __IO uint32_t P59 : 1; + __IO uint32_t P5A : 1; + __IO uint32_t P5B : 1; +} stc_gpio_ddr5_field_t; + +typedef struct stc_gpio_ddr6_field +{ + __IO uint32_t P60 : 1; + __IO uint32_t P61 : 1; + __IO uint32_t P62 : 1; + __IO uint32_t P63 : 1; + __IO uint32_t P64 : 1; + __IO uint32_t P65 : 1; + __IO uint32_t P66 : 1; + __IO uint32_t P67 : 1; + __IO uint32_t P68 : 1; +} stc_gpio_ddr6_field_t; + +typedef struct stc_gpio_ddr7_field +{ + __IO uint32_t P70 : 1; + __IO uint32_t P71 : 1; + __IO uint32_t P72 : 1; + __IO uint32_t P73 : 1; + __IO uint32_t P74 : 1; +} stc_gpio_ddr7_field_t; + +typedef struct stc_gpio_ddr8_field +{ + __IO uint32_t P80 : 1; + __IO uint32_t P81 : 1; +} stc_gpio_ddr8_field_t; + +typedef struct stc_gpio_ddre_field +{ + __IO uint32_t PE0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t PE2 : 1; + __IO uint32_t PE3 : 1; +} stc_gpio_ddre_field_t; + +typedef struct stc_gpio_pdir0_field +{ + __IO uint32_t P00 : 1; + __IO uint32_t P01 : 1; + __IO uint32_t P02 : 1; + __IO uint32_t P03 : 1; + __IO uint32_t P04 : 1; + __IO uint32_t P05 : 1; + __IO uint32_t P06 : 1; + __IO uint32_t P07 : 1; + __IO uint32_t P08 : 1; + __IO uint32_t P09 : 1; + __IO uint32_t P0A : 1; + __IO uint32_t P0B : 1; + __IO uint32_t P0C : 1; + __IO uint32_t P0D : 1; + __IO uint32_t P0E : 1; + __IO uint32_t P0F : 1; +} stc_gpio_pdir0_field_t; + +typedef struct stc_gpio_pdir1_field +{ + __IO uint32_t P10 : 1; + __IO uint32_t P11 : 1; + __IO uint32_t P12 : 1; + __IO uint32_t P13 : 1; + __IO uint32_t P14 : 1; + __IO uint32_t P15 : 1; + __IO uint32_t P16 : 1; + __IO uint32_t P17 : 1; + __IO uint32_t P18 : 1; + __IO uint32_t P19 : 1; + __IO uint32_t P1A : 1; + __IO uint32_t P1B : 1; + __IO uint32_t P1C : 1; + __IO uint32_t P1D : 1; + __IO uint32_t P1E : 1; + __IO uint32_t P1F : 1; +} stc_gpio_pdir1_field_t; + +typedef struct stc_gpio_pdir2_field +{ + __IO uint32_t P20 : 1; + __IO uint32_t P21 : 1; + __IO uint32_t P22 : 1; + __IO uint32_t P23 : 1; + __IO uint32_t P24 : 1; + __IO uint32_t P25 : 1; + __IO uint32_t P26 : 1; + __IO uint32_t P27 : 1; +} stc_gpio_pdir2_field_t; + +typedef struct stc_gpio_pdir3_field +{ + __IO uint32_t P30 : 1; + __IO uint32_t P31 : 1; + __IO uint32_t P32 : 1; + __IO uint32_t P33 : 1; + __IO uint32_t P34 : 1; + __IO uint32_t P35 : 1; + __IO uint32_t P36 : 1; + __IO uint32_t P37 : 1; + __IO uint32_t P38 : 1; + __IO uint32_t P39 : 1; + __IO uint32_t P3A : 1; + __IO uint32_t P3B : 1; + __IO uint32_t P3C : 1; + __IO uint32_t P3D : 1; + __IO uint32_t P3E : 1; + __IO uint32_t P3F : 1; +} stc_gpio_pdir3_field_t; + +typedef struct stc_gpio_pdir4_field +{ + __IO uint32_t P40 : 1; + __IO uint32_t P41 : 1; + __IO uint32_t P42 : 1; + __IO uint32_t P43 : 1; + __IO uint32_t P44 : 1; + __IO uint32_t P45 : 1; + __IO uint32_t P46 : 1; + __IO uint32_t P47 : 1; + __IO uint32_t P48 : 1; + __IO uint32_t P49 : 1; + __IO uint32_t P4A : 1; + __IO uint32_t P4B : 1; + __IO uint32_t P4C : 1; + __IO uint32_t P4D : 1; + __IO uint32_t P4E : 1; +} stc_gpio_pdir4_field_t; + +typedef struct stc_gpio_pdir5_field +{ + __IO uint32_t P50 : 1; + __IO uint32_t P51 : 1; + __IO uint32_t P52 : 1; + __IO uint32_t P53 : 1; + __IO uint32_t P54 : 1; + __IO uint32_t P55 : 1; + __IO uint32_t P56 : 1; + __IO uint32_t P57 : 1; + __IO uint32_t P58 : 1; + __IO uint32_t P59 : 1; + __IO uint32_t P5A : 1; + __IO uint32_t P5B : 1; +} stc_gpio_pdir5_field_t; + +typedef struct stc_gpio_pdir6_field +{ + __IO uint32_t P60 : 1; + __IO uint32_t P61 : 1; + __IO uint32_t P62 : 1; + __IO uint32_t P63 : 1; + __IO uint32_t P64 : 1; + __IO uint32_t P65 : 1; + __IO uint32_t P66 : 1; + __IO uint32_t P67 : 1; + __IO uint32_t P68 : 1; +} stc_gpio_pdir6_field_t; + +typedef struct stc_gpio_pdir7_field +{ + __IO uint32_t P70 : 1; + __IO uint32_t P71 : 1; + __IO uint32_t P72 : 1; + __IO uint32_t P73 : 1; + __IO uint32_t P74 : 1; +} stc_gpio_pdir7_field_t; + +typedef struct stc_gpio_pdir8_field +{ + __IO uint32_t P80 : 1; + __IO uint32_t P81 : 1; +} stc_gpio_pdir8_field_t; + +typedef struct stc_gpio_pdire_field +{ + __IO uint32_t PE0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t PE2 : 1; + __IO uint32_t PE3 : 1; +} stc_gpio_pdire_field_t; + +typedef struct stc_gpio_pdor0_field +{ + __IO uint32_t P00 : 1; + __IO uint32_t P01 : 1; + __IO uint32_t P02 : 1; + __IO uint32_t P03 : 1; + __IO uint32_t P04 : 1; + __IO uint32_t P05 : 1; + __IO uint32_t P06 : 1; + __IO uint32_t P07 : 1; + __IO uint32_t P08 : 1; + __IO uint32_t P09 : 1; + __IO uint32_t P0A : 1; + __IO uint32_t P0B : 1; + __IO uint32_t P0C : 1; + __IO uint32_t P0D : 1; + __IO uint32_t P0E : 1; + __IO uint32_t P0F : 1; +} stc_gpio_pdor0_field_t; + +typedef struct stc_gpio_pdor1_field +{ + __IO uint32_t P10 : 1; + __IO uint32_t P11 : 1; + __IO uint32_t P12 : 1; + __IO uint32_t P13 : 1; + __IO uint32_t P14 : 1; + __IO uint32_t P15 : 1; + __IO uint32_t P16 : 1; + __IO uint32_t P17 : 1; + __IO uint32_t P18 : 1; + __IO uint32_t P19 : 1; + __IO uint32_t P1A : 1; + __IO uint32_t P1B : 1; + __IO uint32_t P1C : 1; + __IO uint32_t P1D : 1; + __IO uint32_t P1E : 1; + __IO uint32_t P1F : 1; +} stc_gpio_pdor1_field_t; + +typedef struct stc_gpio_pdor2_field +{ + __IO uint32_t P20 : 1; + __IO uint32_t P21 : 1; + __IO uint32_t P22 : 1; + __IO uint32_t P23 : 1; + __IO uint32_t P24 : 1; + __IO uint32_t P25 : 1; + __IO uint32_t P26 : 1; + __IO uint32_t P27 : 1; +} stc_gpio_pdor2_field_t; + +typedef struct stc_gpio_pdor3_field +{ + __IO uint32_t P30 : 1; + __IO uint32_t P31 : 1; + __IO uint32_t P32 : 1; + __IO uint32_t P33 : 1; + __IO uint32_t P34 : 1; + __IO uint32_t P35 : 1; + __IO uint32_t P36 : 1; + __IO uint32_t P37 : 1; + __IO uint32_t P38 : 1; + __IO uint32_t P39 : 1; + __IO uint32_t P3A : 1; + __IO uint32_t P3B : 1; + __IO uint32_t P3C : 1; + __IO uint32_t P3D : 1; + __IO uint32_t P3E : 1; + __IO uint32_t P3F : 1; +} stc_gpio_pdor3_field_t; + +typedef struct stc_gpio_pdor4_field +{ + __IO uint32_t P40 : 1; + __IO uint32_t P41 : 1; + __IO uint32_t P42 : 1; + __IO uint32_t P43 : 1; + __IO uint32_t P44 : 1; + __IO uint32_t P45 : 1; + __IO uint32_t P46 : 1; + __IO uint32_t P47 : 1; + __IO uint32_t P48 : 1; + __IO uint32_t P49 : 1; + __IO uint32_t P4A : 1; + __IO uint32_t P4B : 1; + __IO uint32_t P4C : 1; + __IO uint32_t P4D : 1; + __IO uint32_t P4E : 1; +} stc_gpio_pdor4_field_t; + +typedef struct stc_gpio_pdor5_field +{ + __IO uint32_t P50 : 1; + __IO uint32_t P51 : 1; + __IO uint32_t P52 : 1; + __IO uint32_t P53 : 1; + __IO uint32_t P54 : 1; + __IO uint32_t P55 : 1; + __IO uint32_t P56 : 1; + __IO uint32_t P57 : 1; + __IO uint32_t P58 : 1; + __IO uint32_t P59 : 1; + __IO uint32_t P5A : 1; + __IO uint32_t P5B : 1; +} stc_gpio_pdor5_field_t; + +typedef struct stc_gpio_pdor6_field +{ + __IO uint32_t P60 : 1; + __IO uint32_t P61 : 1; + __IO uint32_t P62 : 1; + __IO uint32_t P63 : 1; + __IO uint32_t P64 : 1; + __IO uint32_t P65 : 1; + __IO uint32_t P66 : 1; + __IO uint32_t P67 : 1; + __IO uint32_t P68 : 1; +} stc_gpio_pdor6_field_t; + +typedef struct stc_gpio_pdor7_field +{ + __IO uint32_t P70 : 1; + __IO uint32_t P71 : 1; + __IO uint32_t P72 : 1; + __IO uint32_t P73 : 1; + __IO uint32_t P74 : 1; +} stc_gpio_pdor7_field_t; + +typedef struct stc_gpio_pdor8_field +{ + __IO uint32_t P80 : 1; + __IO uint32_t P81 : 1; +} stc_gpio_pdor8_field_t; + +typedef struct stc_gpio_pdore_field +{ + __IO uint32_t PE0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t PE2 : 1; + __IO uint32_t PE3 : 1; +} stc_gpio_pdore_field_t; + +typedef struct stc_gpio_ade_field +{ + __IO uint32_t AN00 : 1; + __IO uint32_t AN01 : 1; + __IO uint32_t AN02 : 1; + __IO uint32_t AN03 : 1; + __IO uint32_t AN04 : 1; + __IO uint32_t AN05 : 1; + __IO uint32_t AN06 : 1; + __IO uint32_t AN07 : 1; + __IO uint32_t AN08 : 1; + __IO uint32_t AN09 : 1; + __IO uint32_t AN10 : 1; + __IO uint32_t AN11 : 1; + __IO uint32_t AN12 : 1; + __IO uint32_t AN13 : 1; + __IO uint32_t AN14 : 1; + __IO uint32_t AN15 : 1; + __IO uint32_t AN16 : 1; + __IO uint32_t AN17 : 1; + __IO uint32_t AN18 : 1; + __IO uint32_t AN19 : 1; + __IO uint32_t AN20 : 1; + __IO uint32_t AN21 : 1; + __IO uint32_t AN22 : 1; + __IO uint32_t AN23 : 1; + __IO uint32_t AN24 : 1; + __IO uint32_t AN25 : 1; + __IO uint32_t AN26 : 1; + __IO uint32_t AN27 : 1; + __IO uint32_t AN28 : 1; + __IO uint32_t AN29 : 1; + __IO uint32_t AN30 : 1; + __IO uint32_t AN31 : 1; +} stc_gpio_ade_field_t; + +typedef struct stc_gpio_spsr_field +{ + uint32_t RESERVED0 : 2; + __IO uint32_t MAINXC : 2; + __IO uint32_t USB0C : 1; + __IO uint32_t USB1C : 1; +} stc_gpio_spsr_field_t; + +typedef struct stc_gpio_epfr00_field +{ + __IO uint32_t NMIS : 1; + __IO uint32_t CROUTE : 2; + uint32_t RESERVED3 : 1; + __IO uint32_t RTCCOE : 2; + __IO uint32_t SUBOUTE : 2; + uint32_t RESERVED8 : 1; + __IO uint32_t USBP0E : 1; + uint32_t RESERVED10 : 3; + __IO uint32_t USBP1E : 1; + uint32_t RESERVED14 : 2; + __IO uint32_t JTAGEN0B : 1; + __IO uint32_t JTAGEN1S : 1; + uint32_t RESERVED18 : 6; + __IO uint32_t TRC0E : 1; + __IO uint32_t TRC1E : 1; +} stc_gpio_epfr00_field_t; + +typedef struct stc_gpio_epfr01_field +{ + __IO uint32_t RTO00E : 2; + __IO uint32_t RTO01E : 2; + __IO uint32_t RTO02E : 2; + __IO uint32_t RTO03E : 2; + __IO uint32_t RTO04E : 2; + __IO uint32_t RTO05E : 2; + __IO uint32_t DTTI0C : 1; + uint32_t RESERVED13 : 3; + __IO uint32_t DTTI0S : 2; + __IO uint32_t FRCK0S : 2; + __IO uint32_t IC00S : 3; + __IO uint32_t IC01S : 3; + __IO uint32_t IC02S : 3; + __IO uint32_t IC03S : 3; +} stc_gpio_epfr01_field_t; + +typedef struct stc_gpio_epfr02_field +{ + __IO uint32_t RTO10E : 2; + __IO uint32_t RTO11E : 2; + __IO uint32_t RTO12E : 2; + __IO uint32_t RTO13E : 2; + __IO uint32_t RTO14E : 2; + __IO uint32_t RTO15E : 2; + __IO uint32_t DTTI1C : 1; + uint32_t RESERVED13 : 3; + __IO uint32_t DTTI1S : 2; + __IO uint32_t FRCK1S : 2; + __IO uint32_t IC10S : 3; + __IO uint32_t IC11S : 3; + __IO uint32_t IC12S : 3; + __IO uint32_t IC13S : 3; +} stc_gpio_epfr02_field_t; + +typedef struct stc_gpio_epfr03_field +{ + __IO uint32_t RTO20E : 2; + __IO uint32_t RTO21E : 2; + __IO uint32_t RTO22E : 2; + __IO uint32_t RTO23E : 2; + __IO uint32_t RTO24E : 2; + __IO uint32_t RTO25E : 2; + __IO uint32_t DTTI2C : 1; + uint32_t RESERVED13 : 3; + __IO uint32_t DTTI2S : 2; + __IO uint32_t FRCK2S : 2; + __IO uint32_t IC20S : 3; + __IO uint32_t IC21S : 3; + __IO uint32_t IC22S : 3; + __IO uint32_t IC23S : 3; +} stc_gpio_epfr03_field_t; + +typedef struct stc_gpio_epfr04_field +{ + uint32_t RESERVED0 : 2; + __IO uint32_t TIOA0E : 2; + __IO uint32_t TIOB0S : 3; + uint32_t RESERVED7 : 1; + __IO uint32_t TIOA1S : 2; + __IO uint32_t TIOA1E : 2; + __IO uint32_t TIOB1S : 2; + uint32_t RESERVED14 : 4; + __IO uint32_t TIOA2E : 2; + __IO uint32_t TIOB2S : 2; + uint32_t RESERVED22 : 2; + __IO uint32_t TIOA3S : 2; + __IO uint32_t TIOA3E : 2; + __IO uint32_t TIOB3S : 2; +} stc_gpio_epfr04_field_t; + +typedef struct stc_gpio_epfr05_field +{ + uint32_t RESERVED0 : 2; + __IO uint32_t TIOA4E : 2; + __IO uint32_t TIOB4S : 2; + uint32_t RESERVED6 : 2; + __IO uint32_t TIOA5S : 2; + __IO uint32_t TIOA5E : 2; + __IO uint32_t TIOB5S : 2; + uint32_t RESERVED14 : 4; + __IO uint32_t TIOA6E : 2; + __IO uint32_t TIOB6S : 2; + uint32_t RESERVED22 : 2; + __IO uint32_t TIOA7S : 2; + __IO uint32_t TIOA7E : 2; + __IO uint32_t TIOB7S : 2; +} stc_gpio_epfr05_field_t; + +typedef struct stc_gpio_epfr06_field +{ + __IO uint32_t EINT00S : 2; + __IO uint32_t EINT01S : 2; + __IO uint32_t EINT02S : 2; + __IO uint32_t EINT03S : 2; + __IO uint32_t EINT04S : 2; + __IO uint32_t EINT05S : 2; + __IO uint32_t EINT06S : 2; + __IO uint32_t EINT07S : 2; + __IO uint32_t EINT08S : 2; + __IO uint32_t EINT09S : 2; + __IO uint32_t EINT10S : 2; + __IO uint32_t EINT11S : 2; + __IO uint32_t EINT12S : 2; + __IO uint32_t EINT13S : 2; + __IO uint32_t EINT14S : 2; + __IO uint32_t EINT15S : 2; +} stc_gpio_epfr06_field_t; + +typedef struct stc_gpio_epfr07_field +{ + uint32_t RESERVED0 : 4; + __IO uint32_t SIN0S : 2; + __IO uint32_t SOT0B : 2; + __IO uint32_t SCK0B : 2; + __IO uint32_t SIN1S : 2; + __IO uint32_t SOT1B : 2; + __IO uint32_t SCK1B : 2; + __IO uint32_t SIN2S : 2; + __IO uint32_t SOT2B : 2; + __IO uint32_t SCK2B : 2; + __IO uint32_t SIN3S : 2; + __IO uint32_t SOT3B : 2; + __IO uint32_t SCK3B : 2; +} stc_gpio_epfr07_field_t; + +typedef struct stc_gpio_epfr08_field +{ + __IO uint32_t RTS4E : 2; + __IO uint32_t CTS4S : 2; + __IO uint32_t SIN4S : 2; + __IO uint32_t SOT4B : 2; + __IO uint32_t SCK4B : 2; + __IO uint32_t SIN5S : 2; + __IO uint32_t SOT5B : 2; + __IO uint32_t SCK5B : 2; + __IO uint32_t SIN6S : 2; + __IO uint32_t SOT6B : 2; + __IO uint32_t SCK6B : 2; + __IO uint32_t SIN7S : 2; + __IO uint32_t SOT7B : 2; + __IO uint32_t SCK7B : 2; + __IO uint32_t RTS5E : 2; + __IO uint32_t CTS5S : 2; +} stc_gpio_epfr08_field_t; + +typedef struct stc_gpio_epfr09_field +{ + __IO uint32_t QAIN0S : 2; + __IO uint32_t QBIN0S : 2; + __IO uint32_t QZIN0S : 2; + __IO uint32_t QAIN1S : 2; + __IO uint32_t QBIN1S : 2; + __IO uint32_t QZIN1S : 2; + __IO uint32_t ADTRG0S : 4; + __IO uint32_t ADTRG1S : 4; + __IO uint32_t ADTRG2S : 4; + __IO uint32_t CRX0S : 2; + __IO uint32_t CTX0E : 2; + __IO uint32_t CRX1S : 2; + __IO uint32_t CTX1E : 2; +} stc_gpio_epfr09_field_t; + +typedef struct stc_gpio_epfr10_field +{ + __IO uint32_t UEDEFB : 1; + __IO uint32_t UEDTHB : 1; + __IO uint32_t UECLKE : 1; + __IO uint32_t UEWEXE : 1; + __IO uint32_t UEDQME : 1; + __IO uint32_t UEOEXE : 1; + __IO uint32_t UEFLSE : 1; + __IO uint32_t UECS1E : 1; + __IO uint32_t UECS2E : 1; + __IO uint32_t UECS3E : 1; + __IO uint32_t UECS4E : 1; + __IO uint32_t UECS5E : 1; + __IO uint32_t UECS6E : 1; + __IO uint32_t UECS7E : 1; + __IO uint32_t UEAOOE : 1; + __IO uint32_t UEA08E : 1; + __IO uint32_t UEA09E : 1; + __IO uint32_t UEA10E : 1; + __IO uint32_t UEA11E : 1; + __IO uint32_t UEA12E : 1; + __IO uint32_t UEA13E : 1; + __IO uint32_t UEA14E : 1; + __IO uint32_t UEA15E : 1; + __IO uint32_t UEA16E : 1; + __IO uint32_t UEA17E : 1; + __IO uint32_t UEA18E : 1; + __IO uint32_t UEA19E : 1; + __IO uint32_t UEA20E : 1; + __IO uint32_t UEA21E : 1; + __IO uint32_t UEA22E : 1; + __IO uint32_t UEA23E : 1; + __IO uint32_t UEA24E : 1; +} stc_gpio_epfr10_field_t; + +typedef struct stc_gpio_epfr11_field +{ + __IO uint32_t UEALEE : 1; + __IO uint32_t UECS0E : 1; + __IO uint32_t UEA01E : 1; + __IO uint32_t UEA02E : 1; + __IO uint32_t UEA03E : 1; + __IO uint32_t UEA04E : 1; + __IO uint32_t UEA05E : 1; + __IO uint32_t UEA06E : 1; + __IO uint32_t UEA07E : 1; + __IO uint32_t UED00B : 1; + __IO uint32_t UED01B : 1; + __IO uint32_t UED02B : 1; + __IO uint32_t UED03B : 1; + __IO uint32_t UED04B : 1; + __IO uint32_t UED05B : 1; + __IO uint32_t UED06B : 1; + __IO uint32_t UED07B : 1; + __IO uint32_t UED08B : 1; + __IO uint32_t UED09B : 1; + __IO uint32_t UED10B : 1; + __IO uint32_t UED11B : 1; + __IO uint32_t UED12B : 1; + __IO uint32_t UED13B : 1; + __IO uint32_t UED14B : 1; + __IO uint32_t UED15B : 1; + __IO uint32_t UERLC : 1; +} stc_gpio_epfr11_field_t; + +typedef struct stc_gpio_epfr12_field +{ + uint32_t RESERVED0 : 2; + __IO uint32_t TIOA8E : 2; + __IO uint32_t TIOB8S : 2; + uint32_t RESERVED6 : 2; + __IO uint32_t TIOA9S : 2; + __IO uint32_t TIOA9E : 2; + __IO uint32_t TIOB9S : 2; + uint32_t RESERVED14 : 4; + __IO uint32_t TIOA10E : 2; + __IO uint32_t TIOB10S : 2; + uint32_t RESERVED22 : 2; + __IO uint32_t TIOA11S : 2; + __IO uint32_t TIOA11E : 2; + __IO uint32_t TIOB11S : 2; +} stc_gpio_epfr12_field_t; + +typedef struct stc_gpio_epfr13_field +{ + uint32_t RESERVED0 : 2; + __IO uint32_t TIOA12E : 2; + __IO uint32_t TIOB12S : 2; + uint32_t RESERVED6 : 2; + __IO uint32_t TIOA13S : 2; + __IO uint32_t TIOA13E : 2; + __IO uint32_t TIOB13S : 2; + uint32_t RESERVED14 : 4; + __IO uint32_t TIOA14E : 2; + __IO uint32_t TIOB14S : 2; + uint32_t RESERVED22 : 2; + __IO uint32_t TIOA15S : 2; + __IO uint32_t TIOA15E : 2; + __IO uint32_t TIOB15S : 2; +} stc_gpio_epfr13_field_t; + +typedef struct stc_gpio_epfr14_field +{ + __IO uint32_t QAIN2S : 2; + __IO uint32_t QBIN2S : 2; + __IO uint32_t QZIN2S : 2; + uint32_t RESERVED6 :12; + __IO uint32_t E_TD0E : 1; + __IO uint32_t E_TD1E : 1; + __IO uint32_t E_TE0E : 1; + __IO uint32_t E_TE1E : 1; + __IO uint32_t E_MC0E : 1; + __IO uint32_t E_MC1B : 1; + __IO uint32_t E_MD0B : 1; + __IO uint32_t E_MD1B : 1; + __IO uint32_t E_CKE : 1; + __IO uint32_t E_PSE : 1; + __IO uint32_t E_SPLC : 2; +} stc_gpio_epfr14_field_t; + +typedef struct stc_gpio_epfr15_field +{ + __IO uint32_t EINT16S : 2; + __IO uint32_t EINT17S : 2; + __IO uint32_t EINT18S : 2; + __IO uint32_t EINT19S : 2; + __IO uint32_t EINT20S : 2; + __IO uint32_t EINT21S : 2; + __IO uint32_t EINT22S : 2; + __IO uint32_t EINT23S : 2; + __IO uint32_t EINT24S : 2; + __IO uint32_t EINT25S : 2; + __IO uint32_t EINT26S : 2; + __IO uint32_t EINT27S : 2; + __IO uint32_t EINT28S : 2; + __IO uint32_t EINT29S : 2; + __IO uint32_t EINT30S : 2; + __IO uint32_t EINT31S : 2; +} stc_gpio_epfr15_field_t; + +typedef struct stc_gpio_epfr16_field +{ + __IO uint32_t SCS6B : 2; + __IO uint32_t SCS7B : 2; + __IO uint32_t SIN8S : 2; + __IO uint32_t SOT8B : 2; + __IO uint32_t SCK8B : 2; + __IO uint32_t SIN9S : 2; + __IO uint32_t SOT9B : 2; + __IO uint32_t SCK9B : 2; + __IO uint32_t SIN10S : 2; + __IO uint32_t SOT10B : 2; + __IO uint32_t SCK10B : 2; + __IO uint32_t SIN11S : 2; + __IO uint32_t SOT11B : 2; + __IO uint32_t SCK11B : 2; + __IO uint32_t SFMPAC : 1; + __IO uint32_t SFMPBC : 1; +} stc_gpio_epfr16_field_t; + +typedef struct stc_gpio_epfr17_field +{ + uint32_t RESERVED0 : 4; + __IO uint32_t SIN12S : 2; + __IO uint32_t SOT12B : 2; + __IO uint32_t SCK12B : 2; + __IO uint32_t SIN13S : 2; + __IO uint32_t SOT13B : 2; + __IO uint32_t SCK13B : 2; + __IO uint32_t SIN14S : 2; + __IO uint32_t SOT14B : 2; + __IO uint32_t SCK14B : 2; + __IO uint32_t SIN15S : 2; + __IO uint32_t SOT15B : 2; + __IO uint32_t SCK15B : 2; +} stc_gpio_epfr17_field_t; + +typedef struct stc_gpio_epfr18_field +{ + uint32_t RESERVED0 : 4; + __IO uint32_t QAIN3S : 2; + __IO uint32_t QBIN3S : 2; + __IO uint32_t QZIN3S : 2; + uint32_t RESERVED10 : 4; + __IO uint32_t SDCLKE : 2; + __IO uint32_t SDCMDB : 2; + __IO uint32_t SDDATA0B : 2; + __IO uint32_t SDDATA1B : 2; + __IO uint32_t SDDATA2B : 2; + __IO uint32_t SDDATA3B : 2; + __IO uint32_t SDCDS : 2; + __IO uint32_t SDWPS : 2; +} stc_gpio_epfr18_field_t; + +typedef struct stc_gpio_epfr20_field +{ + __IO uint32_t UESMCEE : 1; + __IO uint32_t UESMCKE : 1; + __IO uint32_t UERASE : 1; + __IO uint32_t UECASE : 1; + __IO uint32_t UEDWEXE : 1; + __IO uint32_t UECSXE : 1; + __IO uint32_t UEDQM2E : 1; + __IO uint32_t UEDQM3E : 1; + __IO uint32_t UEDTHHB : 1; + __IO uint32_t UED16B : 1; + __IO uint32_t UED17B : 1; + __IO uint32_t UED18B : 1; + __IO uint32_t UED19B : 1; + __IO uint32_t UED20B : 1; + __IO uint32_t UED21B : 1; + __IO uint32_t UED22B : 1; + __IO uint32_t UED23B : 1; + __IO uint32_t UED24B : 1; + __IO uint32_t UED25B : 1; + __IO uint32_t UED26B : 1; + __IO uint32_t UED27B : 1; + __IO uint32_t UED28B : 1; + __IO uint32_t UED29B : 1; + __IO uint32_t UED30B : 1; + __IO uint32_t UED31B : 1; +} stc_gpio_epfr20_field_t; + +typedef struct stc_gpio_pzr0_field +{ + __IO uint32_t P00 : 1; + __IO uint32_t P01 : 1; + __IO uint32_t P02 : 1; + __IO uint32_t P03 : 1; + __IO uint32_t P04 : 1; + __IO uint32_t P05 : 1; + __IO uint32_t P06 : 1; + __IO uint32_t P07 : 1; + __IO uint32_t P08 : 1; + __IO uint32_t P09 : 1; + __IO uint32_t P0A : 1; + __IO uint32_t P0B : 1; + __IO uint32_t P0C : 1; + __IO uint32_t P0D : 1; + __IO uint32_t P0E : 1; + __IO uint32_t P0F : 1; +} stc_gpio_pzr0_field_t; + +typedef struct stc_gpio_pzr1_field +{ + __IO uint32_t P10 : 1; + __IO uint32_t P11 : 1; + __IO uint32_t P12 : 1; + __IO uint32_t P13 : 1; + __IO uint32_t P14 : 1; + __IO uint32_t P15 : 1; + __IO uint32_t P16 : 1; + __IO uint32_t P17 : 1; + __IO uint32_t P18 : 1; + __IO uint32_t P19 : 1; + __IO uint32_t P1A : 1; + __IO uint32_t P1B : 1; + __IO uint32_t P1C : 1; + __IO uint32_t P1D : 1; + __IO uint32_t P1E : 1; + __IO uint32_t P1F : 1; +} stc_gpio_pzr1_field_t; + +typedef struct stc_gpio_pzr2_field +{ + __IO uint32_t P20 : 1; + __IO uint32_t P21 : 1; + __IO uint32_t P22 : 1; + __IO uint32_t P23 : 1; + __IO uint32_t P24 : 1; + __IO uint32_t P25 : 1; + __IO uint32_t P26 : 1; + __IO uint32_t P27 : 1; +} stc_gpio_pzr2_field_t; + +typedef struct stc_gpio_pzr3_field +{ + __IO uint32_t P30 : 1; + __IO uint32_t P31 : 1; + __IO uint32_t P32 : 1; + __IO uint32_t P33 : 1; + __IO uint32_t P34 : 1; + __IO uint32_t P35 : 1; + __IO uint32_t P36 : 1; + __IO uint32_t P37 : 1; + __IO uint32_t P38 : 1; + __IO uint32_t P39 : 1; + __IO uint32_t P3A : 1; + __IO uint32_t P3B : 1; + __IO uint32_t P3C : 1; + __IO uint32_t P3D : 1; + __IO uint32_t P3E : 1; + __IO uint32_t P3F : 1; +} stc_gpio_pzr3_field_t; + +typedef struct stc_gpio_pzr4_field +{ + __IO uint32_t P40 : 1; + __IO uint32_t P41 : 1; + __IO uint32_t P42 : 1; + __IO uint32_t P43 : 1; + __IO uint32_t P44 : 1; + __IO uint32_t P45 : 1; + __IO uint32_t P46 : 1; + __IO uint32_t P47 : 1; + __IO uint32_t P48 : 1; + __IO uint32_t P49 : 1; + __IO uint32_t P4A : 1; + __IO uint32_t P4B : 1; + __IO uint32_t P4C : 1; + __IO uint32_t P4D : 1; + __IO uint32_t P4E : 1; +} stc_gpio_pzr4_field_t; + +typedef struct stc_gpio_pzr5_field +{ + __IO uint32_t P50 : 1; + __IO uint32_t P51 : 1; + __IO uint32_t P52 : 1; + __IO uint32_t P53 : 1; + __IO uint32_t P54 : 1; + __IO uint32_t P55 : 1; + __IO uint32_t P56 : 1; + __IO uint32_t P57 : 1; + __IO uint32_t P58 : 1; + __IO uint32_t P59 : 1; + __IO uint32_t P5A : 1; + __IO uint32_t P5B : 1; +} stc_gpio_pzr5_field_t; + +typedef struct stc_gpio_pzr6_field +{ + __IO uint32_t P60 : 1; + __IO uint32_t P61 : 1; + __IO uint32_t P62 : 1; + __IO uint32_t P63 : 1; + __IO uint32_t P64 : 1; + __IO uint32_t P65 : 1; + __IO uint32_t P66 : 1; + __IO uint32_t P67 : 1; + __IO uint32_t P68 : 1; +} stc_gpio_pzr6_field_t; + +typedef struct stc_gpio_pzr7_field +{ + __IO uint32_t P70 : 1; + __IO uint32_t P71 : 1; + __IO uint32_t P72 : 1; + __IO uint32_t P73 : 1; + __IO uint32_t P74 : 1; +} stc_gpio_pzr7_field_t; + +typedef struct stc_gpio_pzr8_field +{ + __IO uint32_t P80 : 1; + __IO uint32_t P81 : 1; +} stc_gpio_pzr8_field_t; + +typedef struct stc_gpio_pzre_field +{ + __IO uint32_t PE0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t PE2 : 1; + __IO uint32_t PE3 : 1; +} stc_gpio_pzre_field_t; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* LVD_MODULE register bit fields */ +typedef struct stc_lvd_lvd_ctl_field +{ + union { + struct { + uint8_t RESERVED1 : 2; + __IO uint8_t SVHI : 4; + uint8_t RESERVED2 : 1; + __IO uint8_t LVDIE : 1; + }; + struct { + uint8_t RESERVED3 : 2; + __IO uint8_t SVHI0 : 1; + __IO uint8_t SVHI1 : 1; + __IO uint8_t SVHI2 : 1; + __IO uint8_t SVHI3 : 1; + uint8_t RESERVED4 : 2; + }; + }; +} stc_lvd_lvd_ctl_field_t; + +typedef struct stc_lvd_lvd_str_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIR : 1; +} stc_lvd_lvd_str_field_t; + +typedef struct stc_lvd_lvd_clr_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDCL : 1; +} stc_lvd_lvd_clr_field_t; + +typedef struct stc_lvd_lvd_str2_field +{ + uint8_t RESERVED1 : 6; + __IO uint8_t LVDRRDY : 1; + __IO uint8_t LVDIRDY : 1; +} stc_lvd_lvd_str2_field_t; + +/****************************************************************************** + * DS_MODULE + ******************************************************************************/ +/* DS_MODULE register bit fields */ +typedef struct stc_ds_rck_ctl_field +{ + __IO uint8_t RTCCKE : 1; +} stc_ds_rck_ctl_field_t; + +typedef struct stc_ds_pmd_ctl_field +{ + __IO uint8_t RTCE : 1; +} stc_ds_pmd_ctl_field_t; + +typedef struct stc_ds_wrfsr_field +{ + __IO uint8_t WINITX : 1; + __IO uint8_t WLVDH : 1; +} stc_ds_wrfsr_field_t; + +typedef struct stc_ds_wifsr_field +{ + __IO uint16_t WRTCI : 1; + __IO uint16_t WLVDI : 1; + __IO uint16_t WUI0 : 1; + __IO uint16_t WUI1 : 1; + __IO uint16_t WUI2 : 1; + __IO uint16_t WUI3 : 1; + __IO uint16_t WUI4 : 1; + __IO uint16_t WUI5 : 1; +} stc_ds_wifsr_field_t; + +typedef struct stc_ds_wier_field +{ + __IO uint16_t WRTCE : 1; + __IO uint16_t WLVDE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t WUI1E : 1; + __IO uint16_t WUI2E : 1; + __IO uint16_t WUI3E : 1; + __IO uint16_t WUI4E : 1; + __IO uint16_t WUI5E : 1; +} stc_ds_wier_field_t; + +typedef struct stc_ds_wilvr_field +{ + __IO uint8_t WUI1LV : 1; + __IO uint8_t WUI2LV : 1; + __IO uint8_t WUI3LV : 1; + __IO uint8_t WUI4LV : 1; + __IO uint8_t WUI5LV : 1; +} stc_ds_wilvr_field_t; + +typedef struct stc_ds_dsramr_field +{ + __IO uint8_t SRAMR : 2; +} stc_ds_dsramr_field_t; + +/****************************************************************************** + * USB Ethernet CLK + ******************************************************************************/ +/* USB ETHERNET CLK register bit fields */ +typedef struct stc_usbethernetclk_uccr_field +{ + __IO uint8_t UCEN0 : 1; + __IO uint8_t UCSEL0 : 1; + __IO uint8_t UCSEL1 : 1; + __IO uint8_t UCEN1 : 1; + __IO uint8_t ECEN : 1; + __IO uint8_t ECSEL0 : 1; + __IO uint8_t ECSEL1 : 1; +} stc_usbethernetclk_uccr_field_t; + +typedef struct stc_usbethernetclk_upcr1_field +{ + __IO uint8_t UPLLEN : 1; + __IO uint8_t UPINC : 1; +} stc_usbethernetclk_upcr1_field_t; + +typedef struct stc_usbethernetclk_upcr2_field +{ + __IO uint8_t UPOWT0 : 1; + __IO uint8_t UPOWT1 : 1; + __IO uint8_t UPOWT2 : 1; +} stc_usbethernetclk_upcr2_field_t; + +typedef struct stc_usbethernetclk_upcr3_field +{ + __IO uint8_t UPLLK0 : 1; + __IO uint8_t UPLLK1 : 1; + __IO uint8_t UPLLK2 : 1; + __IO uint8_t UPLLK3 : 1; + __IO uint8_t UPLLK4 : 1; +} stc_usbethernetclk_upcr3_field_t; + +typedef struct stc_usbethernetclk_upcr4_field +{ + __IO uint8_t UPLLN0 : 1; + __IO uint8_t UPLLN1 : 1; + __IO uint8_t UPLLN2 : 1; + __IO uint8_t UPLLN3 : 1; + __IO uint8_t UPLLN4 : 1; + __IO uint8_t UPLLN5 : 1; + __IO uint8_t UPLLN6 : 1; +} stc_usbethernetclk_upcr4_field_t; + +typedef struct stc_usbethernetclk_up_str_field +{ + __IO uint8_t UPRDY : 1; +} stc_usbethernetclk_up_str_field_t; + +typedef struct stc_usbethernetclk_upint_enr_field +{ + __IO uint8_t UPCSE : 1; +} stc_usbethernetclk_upint_enr_field_t; + +typedef struct stc_usbethernetclk_upint_clr_field +{ + __IO uint8_t UPCSC : 1; +} stc_usbethernetclk_upint_clr_field_t; + +typedef struct stc_usbethernetclk_upint_str_field +{ + __IO uint8_t UPCSI : 1; +} stc_usbethernetclk_upint_str_field_t; + +typedef struct stc_usbethernetclk_upcr5_field +{ + __IO uint8_t UPLLM0 : 1; + __IO uint8_t UPLLM1 : 1; + __IO uint8_t UPLLM2 : 1; + __IO uint8_t UPLLM3 : 1; +} stc_usbethernetclk_upcr5_field_t; + +typedef struct stc_usbethernetclk_upcr6_field +{ + __IO uint8_t UBSR0 : 1; + __IO uint8_t UBSR1 : 1; + __IO uint8_t UBSR2 : 1; + __IO uint8_t UBSR3 : 1; +} stc_usbethernetclk_upcr6_field_t; + +typedef struct stc_usbethernetclk_upcr7_field +{ + __IO uint8_t EPLLEN : 1; +} stc_usbethernetclk_upcr7_field_t; + +typedef struct stc_usbethernetclk_usben0_field +{ + __IO uint8_t USBEN0 : 1; +} stc_usbethernetclk_usben0_field_t; + +typedef struct stc_usbethernetclk_usben1_field +{ + __IO uint8_t USBEN1 : 1; +} stc_usbethernetclk_usben1_field_t; + + +/****************************************************************************** + * USBCLK + ******************************************************************************/ +/* USBCLK register bit fields */ +typedef struct stc_usbclk_uccr_field +{ + __IO uint8_t UCEN : 1; + __IO uint8_t UCSEL : 1; +} stc_usbclk_uccr_field_t; + +typedef struct stc_usbclk_upcr1_field +{ + __IO uint8_t UPLLEN : 1; + __IO uint8_t UPINC : 1; +} stc_usbclk_upcr1_field_t; + +typedef struct stc_usbclk_upcr2_field +{ + __IO uint8_t UPOWT0 : 1; + __IO uint8_t UPOWT1 : 1; + __IO uint8_t UPOWT2 : 1; +} stc_usbclk_upcr2_field_t; + +typedef struct stc_usbclk_upcr3_field +{ + __IO uint8_t UPLLK0 : 1; + __IO uint8_t UPLLK1 : 1; + __IO uint8_t UPLLK2 : 1; + __IO uint8_t UPLLK3 : 1; + __IO uint8_t UPLLK4 : 1; +} stc_usbclk_upcr3_field_t; + +typedef struct stc_usbclk_upcr4_field +{ + __IO uint8_t UPLLN0 : 1; + __IO uint8_t UPLLN1 : 1; + __IO uint8_t UPLLN2 : 1; + __IO uint8_t UPLLN3 : 1; + __IO uint8_t UPLLN4 : 1; +} stc_usbclk_upcr4_field_t; + +typedef struct stc_usbclk_up_str_field +{ + __IO uint8_t UPRDY : 1; +} stc_usbclk_up_str_field_t; + +typedef struct stc_usbclk_upint_enr_field +{ + __IO uint8_t UPCSE : 1; +} stc_usbclk_upint_enr_field_t; + +typedef struct stc_usbclk_upint_clr_field +{ + __IO uint8_t UPCSC : 1; +} stc_usbclk_upint_clr_field_t; + +typedef struct stc_usbclk_upint_str_field +{ + __IO uint8_t UPCSI : 1; +} stc_usbclk_upint_str_field_t; + +typedef struct stc_usbclk_usben_field +{ + __IO uint8_t USBEN : 1; +} stc_usbclk_usben_field_t; + +/****************************************************************************** + * CANPRE_MODULE + ******************************************************************************/ +/* CANPRE_MODULE register bit fields */ +typedef struct stc_canpre_canpre_field +{ + __IO uint8_t CANPRE0 : 1; + __IO uint8_t CANPRE1 : 1; + __IO uint8_t CANPRE2 : 1; + __IO uint8_t CANPRE3 : 1; +} stc_canpre_canpre_field_t; + +/****************************************************************************** + * MFS_MODULE(COMMON) + ******************************************************************************/ +/* MFS_MODULE(COMMON) register bit fields */ +typedef struct stc_mfs_smr_field +{ + union { + struct { + __IO uint8_t SOE : 1; /* for UART/CSIO/LIN */ + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; /* for UART/CSIO */ + __IO uint8_t SBL : 1; /* for UART/LIN */ + __IO uint8_t WUCR : 1; /* for UART/LIN */ + __IO uint8_t MD : 3; /* for UART/CSIO/LIN/I2C */ + }; + struct { + uint8_t RESERVED2 : 1; + __IO uint8_t SCKE : 1; /* for CSIO */ + uint8_t RESERVED3 : 1; + __IO uint8_t SCINV : 1; /* for CSIO */ + uint8_t RESERVED4 : 4; + }; + struct { + uint8_t RESERVED5 : 2; + __IO uint8_t TIE : 1; /* for I2C */ + __IO uint8_t RIE : 1; /* for I2C */ + uint8_t RESERVED6 : 4; + }; + }; +} stc_mfs_smr_field_t; + +typedef struct stc_mfs_scr_field +{ + union { + struct { + __IO uint8_t TXE : 1; /* for UART/CSIO/LIN */ + __IO uint8_t RXE : 1; /* for UART/CSIO/LIN */ + __IO uint8_t TBIE : 1; /* for UART/CSIO/LIN */ + __IO uint8_t TIE : 1; /* for UART/CSIO/LIN */ + __IO uint8_t RIE : 1; /* for UART/CSIO/LIN */ + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; /* for UART/CSIO/LIN */ + }; + struct { + uint8_t RESERVED2 : 5; + __IO uint8_t SPI : 1; /* for CSIO */ + __IO uint8_t MS : 1; /* for CSIO/LIN */ + uint8_t RESERVED3 : 1; + }; + struct { + uint8_t RESERVED4 : 5; + __IO uint8_t LBR : 1; /* for LIN */ + uint8_t RESERVED5 : 2; + }; + }; +} stc_mfs_scr_field_t; + +typedef struct stc_mfs_escr_field +{ + union { + struct { + __IO uint8_t L : 3; /* for UART/CSIO */ + __IO uint8_t P : 1; /* for UART */ + __IO uint8_t PEN : 1; /* for UART */ + __IO uint8_t INV : 1; /* for UART */ + __IO uint8_t ESBL : 1; /* for UART/LIN */ + __IO uint8_t FLWEN : 1; /* for UART */ + }; + struct { + __IO uint8_t L0 : 1; /* for UART/CSIO */ + __IO uint8_t L1 : 1; /* for UART/CSIO */ + __IO uint8_t L2 : 1; /* for UART/CSIO */ + __IO uint8_t WT : 2; /* for CSIO */ + uint8_t RESERVED2 : 1; + __IO uint8_t L3 : 1; /* for CSIO */ + __IO uint8_t SOP : 1; /* for CSIO */ + }; + struct { + uint8_t RESERVED3 : 3; + __IO uint8_t WT0 : 1; /* for CSIO */ + __IO uint8_t WT1 : 1; /* for CSIO */ + uint8_t RESERVED4 : 3; + }; + struct { + __IO uint8_t DEL : 2; /* for LIN */ + __IO uint8_t LBL : 2; /* for LIN */ + __IO uint8_t LBIE : 1; /* for LIN */ + uint8_t RESERVED5 : 3; + }; + struct { + __IO uint8_t DEL0 : 1; /* for LIN */ + __IO uint8_t DEL1 : 1; /* for LIN */ + __IO uint8_t LBL0 : 1; /* for LIN */ + __IO uint8_t LBL1 : 1; /* for LIN */ + uint8_t RESERVED6 : 4; + }; + }; +} stc_mfs_escr_field_t; + +typedef struct stc_mfs_ssr_field +{ + union { + struct { + __IO uint8_t TBI : 1; /* for UART/CSIO/LIN/I2C */ + __IO uint8_t TDRE : 1; /* for UART/CSIO/LIN/I2C */ + __IO uint8_t RDRF : 1; /* for UART/CSIO/LIN/I2C */ + __IO uint8_t ORE : 1; /* for UART/CSIO/LIN/I2C */ + __IO uint8_t FRE : 1; /* for UART/LIN */ + __IO uint8_t PE : 1; /* for UART */ + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; /* for UART/CSIO/LIN/I2C */ + }; + struct { + uint8_t RESERVED2 : 4; + __IO uint8_t AWC : 1; /* for CSIO */ + uint8_t RESERVED3 : 3; + }; + struct { + uint8_t RESERVED4 : 5; + __IO uint8_t LBD : 1; /* for LIN */ + uint8_t RESERVED5 : 2; + }; + struct { + uint8_t RESERVED6 : 4; + __IO uint8_t TBIE : 1; /* for I2C */ + __IO uint8_t DMA : 1; /* for I2C */ + __IO uint8_t TSET : 1; /* for I2C */ + uint8_t RESERVED7 : 1; + }; + }; +} stc_mfs_ssr_field_t; + +typedef struct stc_mfs_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs_bgr_field_t; + +typedef struct stc_mfs_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs_bgr1_field_t; + +typedef struct stc_mfs_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs_fcr_field_t; + +typedef struct stc_mfs_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; + uint8_t RESERVED1 : 1; +} stc_mfs_fcr0_field_t; + +typedef struct stc_mfs_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs_fcr1_field_t; + +typedef struct stc_mfs_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs_fbyte_field_t; + +typedef struct stc_mfs_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs_fbyte1_field_t; + +typedef struct stc_mfs_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs_fbyte2_field_t; + +/****************************************************************************** + * MFS_MODULE(UART) + ******************************************************************************/ +/* MFS_MODULE(UART) register bit fields */ +typedef struct stc_mfs_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; + uint16_t RESERVED2 : 7; +} stc_mfs_uart_rdr_field_t; + +typedef struct stc_mfs_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; + uint16_t RESERVED2 : 7; +} stc_mfs_uart_tdr_field_t; + +/****************************************************************************** + * MFS_MODULE(CSIO) + ******************************************************************************/ +/* MFS_MODULE(CSIO) register bit fields */ +typedef struct stc_mfs_csio_scstr10_field +{ + __IO uint16_t CSHD0 : 1; + __IO uint16_t CSHD1 : 1; + __IO uint16_t CSHD2 : 1; + __IO uint16_t CSHD3 : 1; + __IO uint16_t CSHD4 : 1; + __IO uint16_t CSHD5 : 1; + __IO uint16_t CSHD6 : 1; + __IO uint16_t CSHD7 : 1; + __IO uint16_t CSSU0 : 1; + __IO uint16_t CSSU1 : 1; + __IO uint16_t CSSU2 : 1; + __IO uint16_t CSSU3 : 1; + __IO uint16_t CSSU4 : 1; + __IO uint16_t CSSU5 : 1; + __IO uint16_t CSSU6 : 1; + __IO uint16_t CSSU7 : 1; +} stc_mfs_csio_scstr10_field_t; + +typedef struct stc_mfs_csio_scstr0_field +{ + __IO uint8_t CSHD0 : 1; + __IO uint8_t CSHD1 : 1; + __IO uint8_t CSHD2 : 1; + __IO uint8_t CSHD3 : 1; + __IO uint8_t CSHD4 : 1; + __IO uint8_t CSHD5 : 1; + __IO uint8_t CSHD6 : 1; + __IO uint8_t CSHD7 : 1; +} stc_mfs_csio_scstr0_field_t; + +typedef struct stc_mfs_csio_scstr1_field +{ + __IO uint8_t CSSU0 : 1; + __IO uint8_t CSSU1 : 1; + __IO uint8_t CSSU2 : 1; + __IO uint8_t CSSU3 : 1; + __IO uint8_t CSSU4 : 1; + __IO uint8_t CSSU5 : 1; + __IO uint8_t CSSU6 : 1; + __IO uint8_t CSSU7 : 1; +} stc_mfs_csio_scstr1_field_t; + +typedef struct stc_mfs_csio_scstr32_field +{ + __IO uint16_t CSDS0 : 1; + __IO uint16_t CSDS1 : 1; + __IO uint16_t CSDS2 : 1; + __IO uint16_t CSDS3 : 1; + __IO uint16_t CSDS4 : 1; + __IO uint16_t CSDS5 : 1; + __IO uint16_t CSDS6 : 1; + __IO uint16_t CSDS7 : 1; + __IO uint16_t CSDS8 : 1; + __IO uint16_t CSDS9 : 1; + __IO uint16_t CSDS10 : 1; + __IO uint16_t CSDS11 : 1; + __IO uint16_t CSDS12 : 1; + __IO uint16_t CSDS13 : 1; + __IO uint16_t CSDS14 : 1; + __IO uint16_t CSDS15 : 1; +} stc_mfs_csio_scstr32_field_t; + +typedef struct stc_mfs_csio_scstr2_field +{ + __IO uint8_t CSDS0 : 1; + __IO uint8_t CSDS1 : 1; + __IO uint8_t CSDS2 : 1; + __IO uint8_t CSDS3 : 1; + __IO uint8_t CSDS4 : 1; + __IO uint8_t CSDS5 : 1; + __IO uint8_t CSDS6 : 1; + __IO uint8_t CSDS7 : 1; +} stc_mfs_csio_scstr2_field_t; + +typedef struct stc_mfs_csio_scstr3_field +{ + __IO uint8_t CSDS8 : 1; + __IO uint8_t CSDS9 : 1; + __IO uint8_t CSDS10 : 1; + __IO uint8_t CSDS11 : 1; + __IO uint8_t CSDS12 : 1; + __IO uint8_t CSDS13 : 1; + __IO uint8_t CSDS14 : 1; + __IO uint8_t CSDS15 : 1; +} stc_mfs_csio_scstr3_field_t; + +typedef struct stc_mfs_csio_sacsr_field +{ + __IO uint16_t TMRE : 1; + __IO uint16_t TDIV : 4; + uint16_t RESERVED1 : 1; + __IO uint16_t TSYNE : 1; + __IO uint16_t TINTE : 1; + __IO uint16_t TINT : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t CSE : 1; + __IO uint16_t CSEIE : 1; + __IO uint16_t TBEEN : 1; + uint16_t RESERVED3 : 2; +} stc_mfs_csio_sacsr_field_t; + +typedef struct stc_mfs_csio_sacsr0_field +{ + __IO uint8_t TMRE : 1; + __IO uint8_t TDIV : 4; + uint8_t RESERVED1 : 1; + __IO uint8_t TSYNE : 1; + __IO uint8_t TINTE : 1; +} stc_mfs_csio_sacsr0_field_t; + +typedef struct stc_mfs_csio_sacsr1_field +{ + __IO uint8_t TINT : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CSE : 1; + __IO uint8_t CSEIE : 1; + __IO uint8_t TBEEN : 1; + uint8_t RESERVED2 : 2; +} stc_mfs_csio_sacsr1_field_t; + +typedef struct stc_mfs_csio_stmr_field +{ + __IO uint16_t TM0 : 1; + __IO uint16_t TM1 : 1; + __IO uint16_t TM2 : 1; + __IO uint16_t TM3 : 1; + __IO uint16_t TM4 : 1; + __IO uint16_t TM5 : 1; + __IO uint16_t TM6 : 1; + __IO uint16_t TM7 : 1; + __IO uint16_t TM8 : 1; + __IO uint16_t TM9 : 1; + __IO uint16_t TM10 : 1; + __IO uint16_t TM11 : 1; + __IO uint16_t TM12 : 1; + __IO uint16_t TM13 : 1; + __IO uint16_t TM14 : 1; + __IO uint16_t TM15 : 1; +} stc_mfs_csio_stmr_field_t; + +typedef struct stc_mfs_csio_stmr0_field +{ + __IO uint8_t TM0 : 1; + __IO uint8_t TM1 : 1; + __IO uint8_t TM2 : 1; + __IO uint8_t TM3 : 1; + __IO uint8_t TM4 : 1; + __IO uint8_t TM5 : 1; + __IO uint8_t TM6 : 1; + __IO uint8_t TM7 : 1; +} stc_mfs_csio_stmr0_field_t; + +typedef struct stc_mfs_csio_stmr1_field +{ + __IO uint8_t TM8 : 1; + __IO uint8_t TM9 : 1; + __IO uint8_t TM10 : 1; + __IO uint8_t TM11 : 1; + __IO uint8_t TM12 : 1; + __IO uint8_t TM13 : 1; + __IO uint8_t TM14 : 1; + __IO uint8_t TM15 : 1; +} stc_mfs_csio_stmr1_field_t; + +typedef struct stc_mfs_csio_stmcr_field +{ + __IO uint16_t TC0 : 1; + __IO uint16_t TC1 : 1; + __IO uint16_t TC2 : 1; + __IO uint16_t TC3 : 1; + __IO uint16_t TC4 : 1; + __IO uint16_t TC5 : 1; + __IO uint16_t TC6 : 1; + __IO uint16_t TC7 : 1; + __IO uint16_t TC8 : 1; + __IO uint16_t TC9 : 1; + __IO uint16_t TC10 : 1; + __IO uint16_t TC11 : 1; + __IO uint16_t TC12 : 1; + __IO uint16_t TC13 : 1; + __IO uint16_t TC14 : 1; + __IO uint16_t TC15 : 1; +} stc_mfs_csio_stmcr_field_t; + +typedef struct stc_mfs_csio_stmcr0_field +{ + __IO uint8_t TC0 : 1; + __IO uint8_t TC1 : 1; + __IO uint8_t TC2 : 1; + __IO uint8_t TC3 : 1; + __IO uint8_t TC4 : 1; + __IO uint8_t TC5 : 1; + __IO uint8_t TC6 : 1; + __IO uint8_t TC7 : 1; +} stc_mfs_csio_stmcr0_field_t; + +typedef struct stc_mfs_csio_stmcr1_field +{ + __IO uint8_t TC8 : 1; + __IO uint8_t TC9 : 1; + __IO uint8_t TC10 : 1; + __IO uint8_t TC11 : 1; + __IO uint8_t TC12 : 1; + __IO uint8_t TC13 : 1; + __IO uint8_t TC14 : 1; + __IO uint8_t TC15 : 1; +} stc_mfs_csio_stmcr1_field_t; + +typedef struct stc_mfs_csio_scscr_field +{ + __IO uint16_t CSOE : 1; + __IO uint16_t CSEN0 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t CSLVL : 1; + __IO uint16_t CDIV : 3; + __IO uint16_t SCAM : 1; + uint16_t RESERVED2 : 6; +} stc_mfs_csio_scscr_field_t; + +/****************************************************************************** + * MFS_MODULE(I2C) + ******************************************************************************/ +/* MFS_MODULE(I2C) register bit fields */ +typedef struct stc_mfs_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t ACT_SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs_i2c_ibcr_field_t; + +typedef struct stc_mfs_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs_i2c_ibsr_field_t; + +typedef struct stc_mfs_i2c_isba_field +{ + union { + struct { + __IO uint8_t SA : 7; + __IO uint8_t SAEN : 1; + }; + struct { + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + uint8_t RESERVED1 : 1; + }; + }; +} stc_mfs_i2c_isba_field_t; + +typedef struct stc_mfs_i2c_ismk_field +{ + union { + struct { + __IO uint8_t SM : 7; + __IO uint8_t EN : 1; + }; + struct { + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + uint8_t RESERVED1 : 1; + }; + }; +} stc_mfs_i2c_ismk_field_t; + +typedef struct stc_mfs_i2c_nfcr_field +{ + __IO uint8_t NFT : 5; + uint8_t RESERVED1 : 3; +} stc_mfs_i2c_nfcr_field_t; + +typedef struct stc_mfs_i2c_eibcr_field +{ + __IO uint8_t BEC : 1; + __IO uint8_t SOCE : 1; + __IO uint8_t SCLC : 1; + __IO uint8_t SDAC : 1; + __IO uint8_t SCLS : 1; + __IO uint8_t SDAS : 1; + uint8_t RESERVED1 : 2; +} stc_mfs_i2c_eibcr_field_t; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC_MODULE register bit fields */ +typedef struct stc_crc_crccr_field +{ + __IO uint8_t INIT : 1; + __IO uint8_t CRC32 : 1; + __IO uint8_t LTLEND : 1; + __IO uint8_t LSBFST : 1; + __IO uint8_t CRCLTE : 1; + __IO uint8_t CRCLSF : 1; + __IO uint8_t FXOR : 1; +} stc_crc_crccr_field_t; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* WC_MODULE register bit fields */ +typedef struct stc_wc_wcrd_field +{ + __IO uint8_t CTR0 : 1; + __IO uint8_t CTR1 : 1; + __IO uint8_t CTR2 : 1; + __IO uint8_t CTR3 : 1; + __IO uint8_t CTR4 : 1; + __IO uint8_t CTR5 : 1; +} stc_wc_wcrd_field_t; + +typedef struct stc_wc_wcrl_field +{ + __IO uint8_t RLC0 : 1; + __IO uint8_t RLC1 : 1; + __IO uint8_t RLC2 : 1; + __IO uint8_t RLC3 : 1; + __IO uint8_t RLC4 : 1; + __IO uint8_t RLC5 : 1; +} stc_wc_wcrl_field_t; + +typedef struct stc_wc_wccr_field +{ + __IO uint8_t WCIF : 1; + __IO uint8_t WCIE : 1; + __IO uint8_t CS0 : 1; + __IO uint8_t CS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t WCOP : 1; + __IO uint8_t WCEN : 1; +} stc_wc_wccr_field_t; + +typedef struct stc_wc_clk_sel_field +{ + __IO uint16_t SEL_IN : 2; + uint16_t RESERVED1 : 6; + __IO uint16_t SEL_OUT : 3; +} stc_wc_clk_sel_field_t; + +typedef struct stc_wc_clk_en_field +{ + __IO uint8_t CLK_EN : 1; + __IO uint8_t CLK_EN_R : 1; +} stc_wc_clk_en_field_t; + +/****************************************************************************** + * RTC_MODULE + ******************************************************************************/ +/* RTC_MODULE register bit fields */ +/* RTC CNT */ +typedef struct stc_rtc_wtcr10_field +{ + __IO uint8_t ST : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t RUN : 1; + __IO uint8_t SRST : 1; + __IO uint8_t SCST : 1; + __IO uint8_t SCRST : 1; + __IO uint8_t BUSY : 1; + __IO uint8_t TRANS : 1; +} stc_rtc_wtcr10_field_t; + +typedef struct stc_rtc_wtcr11_field +{ + __IO uint8_t MIEN : 1; + __IO uint8_t HEN : 1; + __IO uint8_t DEN : 1; + __IO uint8_t MOEN : 1; + __IO uint8_t YEN : 1; + uint8_t RESERVED1 : 3; +} stc_rtc_wtcr11_field_t; + +typedef struct stc_rtc_wtcr12_field +{ + __IO uint8_t INTSSI : 1; + __IO uint8_t INTSI : 1; + __IO uint8_t INTMI : 1; + __IO uint8_t INTHI : 1; + __IO uint8_t INTTMI : 1; + __IO uint8_t INTALI : 1; + __IO uint8_t INTERI : 1; + __IO uint8_t INTCRI : 1; +} stc_rtc_wtcr12_field_t; + +typedef struct stc_rtc_wtcr13_field +{ + __IO uint8_t INTSSIE : 1; + __IO uint8_t INTSIE : 1; + __IO uint8_t INTMIE : 1; + __IO uint8_t INTHIE : 1; + __IO uint8_t INTTMIE : 1; + __IO uint8_t INTALIE : 1; + __IO uint8_t INTERIE : 1; + __IO uint8_t INTCRIE : 1; +} stc_rtc_wtcr13_field_t; + +typedef struct stc_rtc_wtcr20_field +{ + __IO uint8_t CREAD : 1; + __IO uint8_t CWRITE : 1; + __IO uint8_t BREAD : 1; + __IO uint8_t BWRITE : 1; + __IO uint8_t PREAD : 1; + __IO uint8_t PWRITE : 1; + uint8_t RESERVED1 : 2; +} stc_rtc_wtcr20_field_t; + +typedef struct stc_rtc_wtcr21_field +{ + __IO uint8_t TMST : 1; + __IO uint8_t TMEN : 1; + __IO uint8_t TMRUN : 1; + uint8_t RESERVED1 : 5; +} stc_rtc_wtcr21_field_t; + +typedef struct stc_rtc_wtsr_field +{ + union { + struct { + __IO uint8_t S : 4; + __IO uint8_t TS : 3; + uint8_t RESERVED1 : 1; + }; + struct { + __IO uint8_t S0 : 1; + __IO uint8_t S1 : 1; + __IO uint8_t S2 : 1; + __IO uint8_t S3 : 1; + __IO uint8_t TS0 : 1; + __IO uint8_t TS1 : 1; + __IO uint8_t TS2 : 1; + uint8_t RESERVED2 : 1; + }; + }; +} stc_rtc_wtsr_field_t; + +typedef struct stc_rtc_wtmir_field +{ + union { + struct { + __IO uint8_t MI : 4; + __IO uint8_t TMI : 3; + uint8_t RESERVED1 : 1; + }; + struct { + __IO uint8_t MI0 : 1; + __IO uint8_t MI1 : 1; + __IO uint8_t MI2 : 1; + __IO uint8_t MI3 : 1; + __IO uint8_t TMI0 : 1; + __IO uint8_t TMI1 : 1; + __IO uint8_t TMI2 : 1; + uint8_t RESERVED2 : 1; + }; + }; +} stc_rtc_wtmir_field_t; + +typedef struct stc_rtc_wthr_field +{ + union { + struct { + __IO uint8_t H : 4; + __IO uint8_t TH : 2; + uint8_t RESERVED1 : 2; + }; + struct { + __IO uint8_t H0 : 1; + __IO uint8_t H1 : 1; + __IO uint8_t H2 : 1; + __IO uint8_t H3 : 1; + __IO uint8_t TH0 : 1; + __IO uint8_t TH1 : 1; + uint8_t RESERVED2 : 2; + }; + }; +} stc_rtc_wthr_field_t; + +typedef struct stc_rtc_wtdr_field +{ + union { + struct { + __IO uint8_t D : 4; + __IO uint8_t TD : 2; + uint8_t RESERVED1 : 2; + }; + struct { + __IO uint8_t D0 : 1; + __IO uint8_t D1 : 1; + __IO uint8_t D2 : 1; + __IO uint8_t D3 : 1; + __IO uint8_t TD0 : 1; + __IO uint8_t TD1 : 1; + uint8_t RESERVED2 : 2; + }; + }; +} stc_rtc_wtdr_field_t; + +typedef struct stc_rtc_wtdw_field +{ + union { + struct { + __IO uint8_t DW : 3; + uint8_t RESERVED1 : 5; + }; + struct { + __IO uint8_t DW0 : 1; + __IO uint8_t DW1 : 1; + __IO uint8_t DW2 : 1; + uint8_t RESERVED2 : 5; + }; + }; +} stc_rtc_wtdw_field_t; + +typedef struct stc_rtc_wtmor_field +{ + union { + struct { + __IO uint8_t MO : 4; + __IO uint8_t TMO : 1; + uint8_t RESERVED1 : 3; + }; + struct { + __IO uint8_t MO0 : 1; + __IO uint8_t MO1 : 1; + __IO uint8_t MO2 : 1; + __IO uint8_t MO3 : 1; + uint8_t RESERVED2 : 4; + }; + }; +} stc_rtc_wtmor_field_t; + +typedef struct stc_rtc_wtyr_field +{ + union { + struct { + __IO uint8_t Y : 4; + __IO uint8_t TY : 4; + }; + struct { + __IO uint8_t Y0 : 1; + __IO uint8_t Y1 : 1; + __IO uint8_t Y2 : 1; + __IO uint8_t Y3 : 1; + __IO uint8_t TY0 : 1; + __IO uint8_t TY1 : 1; + __IO uint8_t TY2 : 1; + __IO uint8_t TY3 : 1; + }; + }; +} stc_rtc_wtyr_field_t; + +typedef struct stc_rtc_almir_field +{ + union { + struct { + __IO uint8_t AMI : 4; + __IO uint8_t TAMI : 3; + uint8_t RESERVED1 : 1; + }; + struct { + __IO uint8_t AMI0 : 1; + __IO uint8_t AMI1 : 1; + __IO uint8_t AMI2 : 1; + __IO uint8_t AMI3 : 1; + __IO uint8_t TAMI0 : 1; + __IO uint8_t TAMI1 : 1; + __IO uint8_t TAMI2 : 1; + uint8_t RESERVED2 : 1; + }; + }; +} stc_rtc_almir_field_t; + +typedef struct stc_rtc_alhr_field +{ + union { + struct { + __IO uint8_t AH : 4; + __IO uint8_t TAH : 2; + uint8_t RESERVED1 : 2; + }; + struct { + __IO uint8_t AH0 : 1; + __IO uint8_t AH1 : 1; + __IO uint8_t AH2 : 1; + __IO uint8_t AH3 : 1; + __IO uint8_t TAH0 : 1; + __IO uint8_t TAH1 : 1; + uint8_t RESERVED2 : 2; + }; + }; +} stc_rtc_alhr_field_t; + +typedef struct stc_rtc_aldr_field +{ + union { + struct { + __IO uint8_t AD : 4; + __IO uint8_t TAD : 2; + uint8_t RESERVED1 : 2; + }; + struct { + __IO uint8_t AD0 : 1; + __IO uint8_t AD1 : 1; + __IO uint8_t AD2 : 1; + __IO uint8_t AD3 : 1; + __IO uint8_t TAD0 : 1; + __IO uint8_t TAD1 : 1; + uint8_t RESERVED2 : 2; + }; + }; +} stc_rtc_aldr_field_t; + +typedef struct stc_rtc_almor_field +{ + union { + struct { + __IO uint8_t AMO : 4; + __IO uint8_t TAMO : 1; + uint8_t RESERVED1 : 3; + }; + struct { + __IO uint8_t AMO0 : 1; + __IO uint8_t AMO1 : 1; + __IO uint8_t AMO2 : 1; + __IO uint8_t AMO3 : 1; + uint8_t RESERVED2 : 4; + }; + }; +} stc_rtc_almor_field_t; + +typedef struct stc_rtc_alyr_field +{ + union { + struct { + __IO uint8_t AY : 4; + __IO uint8_t TAY : 4; + }; + struct { + __IO uint8_t AY0 : 1; + __IO uint8_t AY1 : 1; + __IO uint8_t AY2 : 1; + __IO uint8_t AY3 : 1; + __IO uint8_t TAY0 : 1; + __IO uint8_t TAY1 : 1; + __IO uint8_t TAY2 : 1; + __IO uint8_t TAY3 : 1; + }; + }; +} stc_rtc_alyr_field_t; + +typedef struct stc_rtc_wttr0_field +{ + __IO uint8_t TM0 : 1; + __IO uint8_t TM1 : 1; + __IO uint8_t TM2 : 1; + __IO uint8_t TM3 : 1; + __IO uint8_t TM4 : 1; + __IO uint8_t TM5 : 1; + __IO uint8_t TM6 : 1; + __IO uint8_t TM7 : 1; +} stc_rtc_wttr0_field_t; + +typedef struct stc_rtc_wttr1_field +{ + __IO uint8_t TM8 : 1; + __IO uint8_t TM9 : 1; + __IO uint8_t TM10 : 1; + __IO uint8_t TM11 : 1; + __IO uint8_t TM12 : 1; + __IO uint8_t TM13 : 1; + __IO uint8_t TM14 : 1; + __IO uint8_t TM15 : 1; +} stc_rtc_wttr1_field_t; + +typedef struct stc_rtc_wttr2_field +{ + __IO uint8_t TM16 : 1; + __IO uint8_t TM17 : 1; + uint8_t RESERVED1 : 6; +} stc_rtc_wttr2_field_t; + +/* RTC CLK */ +typedef struct stc_rtc_wtcal1_field +{ + union { + struct { + __IO uint8_t WTCAL1 : 2; + uint8_t RESERVED1 : 6; + }; + struct { + __IO uint8_t WTCAL10 : 1; + __IO uint8_t WTCAL11 : 1; + uint8_t RESERVED2 : 6; + }; + }; +} stc_rtc_wtcal1_field_t; + +typedef struct stc_rtc_wtcalen_field +{ + __IO uint8_t WTCALEN : 1; + uint8_t RESERVED1 : 7; +} stc_rtc_wtcalen_field_t; + +typedef struct stc_rtc_wtdiv_field +{ + union { + struct { + __IO uint8_t WTDIV : 4; + uint8_t RESERVED1 : 4; + }; + struct { + __IO uint8_t WTDIV0 : 1; + __IO uint8_t WTDIV1 : 1; + __IO uint8_t WTDIV2 : 1; + __IO uint8_t WTDIV3 : 1; + uint8_t RESERVED2 : 4; + }; + }; +} stc_rtc_wtdiv_field_t; + +typedef struct stc_rtc_wtdiven_field +{ + __IO uint8_t WTDIVEN : 1; + __IO uint8_t WTDIVRDY : 1; + uint8_t RESERVED1 : 6; +} stc_rtc_wtdiven_field_t; + +typedef struct stc_rtc_wtcalprd_field +{ + union { + struct { + __IO uint8_t WTCALPRD : 6; + uint8_t RESERVED1 : 2; + }; + struct { + __IO uint8_t WTCALPRD0 : 1; + __IO uint8_t WTCALPRD1 : 1; + __IO uint8_t WTCALPRD2 : 1; + __IO uint8_t WTCALPRD3 : 1; + __IO uint8_t WTCALPRD4 : 1; + __IO uint8_t WTCALPRD5 : 1; + uint8_t RESERVED2 : 2; + }; + }; +} stc_rtc_wtcalprd_field_t; + +typedef struct stc_rtc_wtcosel_field +{ + __IO uint8_t WTCOSEL : 1; + __IO uint8_t WTDIVRDY : 7; +} stc_rtc_wtcosel_field_t; + +/* VBVat Domain */ +typedef struct stc_rtc_vb_clkdiv_field +{ + __IO uint8_t DIV : 8; +} stc_rtc_vb_clkdiv_field_t; + +typedef struct stc_rtc_wtosccnt_field +{ + __IO uint8_t SOSCEX : 1; + __IO uint8_t SOSCNTL : 1; +} stc_rtc_wtosccnt_field_t; + +typedef struct stc_rtc_boost_field +{ + __IO uint8_t BOOST : 2; +} stc_rtc_boost_field_t; + +typedef struct stc_rtc_ewkup_field +{ + __IO uint8_t WUP0 : 1; +} stc_rtc_ewkup_field_t; + +typedef struct stc_rtc_vdet_field +{ + uint8_t RESERVED0 : 7; + __IO uint8_t PON : 1; +} stc_rtc_vdet_field_t; + +typedef struct stc_rtc_hibrst_field +{ + __IO uint8_t HIBRST : 1; +} stc_rtc_hibrst_field_t; + +typedef struct stc_rtc_vbpfr_field +{ + __IO uint8_t VPFR0 : 1; + __IO uint8_t VPFR1 : 1; + __IO uint8_t VPFR2 : 1; + __IO uint8_t VPFR3 : 1; + __IO uint8_t SPSR0 : 1; + __IO uint8_t SPSR1 : 1; +} stc_rtc_vbpfr_field_t; + +typedef struct stc_rtc_vbpcr_field +{ + __IO uint8_t VPCR0 : 1; + __IO uint8_t VPCR1 : 1; + __IO uint8_t VPCR2 : 1; + __IO uint8_t VPCR3 : 1; +} stc_rtc_vbpcr_field_t; + +typedef struct stc_rtc_vbddr_field +{ + __IO uint8_t VDDR0 : 1; + __IO uint8_t VDDR1 : 1; + __IO uint8_t VDDR2 : 1; + __IO uint8_t VDDR3 : 1; +} stc_rtc_vbddr_field_t; + +typedef struct stc_rtc_vbdir_field +{ + __IO uint8_t VDIR0 : 1; + __IO uint8_t VDIR1 : 1; + __IO uint8_t VDIR2 : 1; + __IO uint8_t VDIR3 : 1; +} stc_rtc_vbdir_field_t; + +typedef struct stc_rtc_vbdor_field +{ + __IO uint8_t VDOR0 : 1; + __IO uint8_t VDOR1 : 1; + __IO uint8_t VDOR2 : 1; + __IO uint8_t VDOR3 : 1; +} stc_rtc_vbdor_field_t; + +typedef struct stc_rtc_vbpzr_field +{ + __IO uint8_t VPZR0 : 1; + __IO uint8_t VPZR1 : 1; +} stc_rtc_vbpzr_field_t; + +/****************************************************************************** + * LCR_MODULE + ******************************************************************************/ +/* LCR_MODULE register bit fields */ +typedef struct stc_lcr_lcr_prsld_field +{ + __IO uint8_t LCR_PRSLD : 6; +} stc_lcr_lcr_prsld_field_t; + +/****************************************************************************** + * CLK_GATING_MODULE + ******************************************************************************/ +/* CLK_GATING_MODULE register bit fields */ +typedef struct stc_clk_gating_cken0_field +{ + __IO uint32_t MFSCK0 : 1; + __IO uint32_t MFSCK1 : 1; + __IO uint32_t MFSCK2 : 1; + __IO uint32_t MFSCK3 : 1; + __IO uint32_t MFSCK4 : 1; + __IO uint32_t MFSCK5 : 1; + __IO uint32_t MFSCK6 : 1; + __IO uint32_t MFSCK7 : 1; + __IO uint32_t MFSCK8 : 1; + __IO uint32_t MFSCK9 : 1; + __IO uint32_t MFSCK10 : 1; + __IO uint32_t MFSCK11 : 1; + __IO uint32_t MFSCK12 : 1; + __IO uint32_t MFSCK13 : 1; + __IO uint32_t MFSCK14 : 1; + __IO uint32_t MFSCK15 : 1; + __IO uint32_t ADCCK0 : 1; + __IO uint32_t ADCCK1 : 1; + __IO uint32_t ADCCK2 : 1; + __IO uint32_t ADCCK3 : 1; + uint32_t RESERVED20 : 4; + __IO uint32_t DMACK : 1; + uint32_t RESERVED25 : 1; + __IO uint32_t EXBCK : 1; + uint32_t RESERVED27 : 1; + __IO uint32_t GIOCK : 1; +} stc_clk_gating_cken0_field_t; + +typedef struct stc_clk_gating_mrst0_field +{ + __IO uint32_t MFSRST0 : 1; + __IO uint32_t MFSRST1 : 1; + __IO uint32_t MFSRST2 : 1; + __IO uint32_t MFSRST3 : 1; + __IO uint32_t MFSRST4 : 1; + __IO uint32_t MFSRST5 : 1; + __IO uint32_t MFSRST6 : 1; + __IO uint32_t MFSRST7 : 1; + __IO uint32_t MFSRST8 : 1; + __IO uint32_t MFSRST9 : 1; + __IO uint32_t MFSRST10 : 1; + __IO uint32_t MFSRST11 : 1; + __IO uint32_t MFSRST12 : 1; + __IO uint32_t MFSRST13 : 1; + __IO uint32_t MFSRST14 : 1; + __IO uint32_t MFSRST15 : 1; + __IO uint32_t ADCRST0 : 1; + __IO uint32_t ADCRST1 : 1; + __IO uint32_t ADCRST2 : 1; + __IO uint32_t ADCRST3 : 1; + uint32_t RESERVED20 : 4; + __IO uint32_t DMARST : 1; + uint32_t RESERVED25 : 1; + __IO uint32_t EXBRST : 1; +} stc_clk_gating_mrst0_field_t; + +typedef struct stc_clk_gating_cken1_field +{ + __IO uint32_t BTMCK0 : 1; + __IO uint32_t BTMCK1 : 1; + __IO uint32_t BTMCK2 : 1; + __IO uint32_t BTMCK3 : 1; + uint32_t RESERVED4 : 4; + __IO uint32_t MFTCK0 : 1; + __IO uint32_t MFTCK1 : 1; + __IO uint32_t MFTCK2 : 1; + __IO uint32_t MFTCK3 : 1; + uint32_t RESERVED12 : 4; + __IO uint32_t QDUCK0 : 1; + __IO uint32_t QDUCK1 : 1; + __IO uint32_t QDUCK2 : 1; + __IO uint32_t QDUCK3 : 1; +} stc_clk_gating_cken1_field_t; + +typedef struct stc_clk_gating_mrst1_field +{ + __IO uint32_t BTMRST0 : 1; + __IO uint32_t BTMRST1 : 1; + __IO uint32_t BTMRST2 : 1; + __IO uint32_t BTMRST3 : 1; + uint32_t RESERVED4 : 4; + __IO uint32_t MFTRST0 : 1; + __IO uint32_t MFTRST1 : 1; + __IO uint32_t MFTRST2 : 1; + __IO uint32_t MFTRST3 : 1; + uint32_t RESERVED12 : 4; + __IO uint32_t QDURST0 : 1; + __IO uint32_t QDURST1 : 1; + __IO uint32_t QDURST2 : 1; + __IO uint32_t QDURST3 : 1; +} stc_clk_gating_mrst1_field_t; + +typedef struct stc_clk_gating_cken2_field +{ + __IO uint32_t USBCK0 : 1; + __IO uint32_t USBCK1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t CANCK0 : 1; + __IO uint32_t CANCK1 : 1; + uint32_t RESERVED6 : 2; + __IO uint32_t SDCCK : 1; +} stc_clk_gating_cken2_field_t; + +typedef struct stc_clk_gating_mrst2_field +{ + __IO uint32_t USBRST0 : 1; + __IO uint32_t USBRST1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t CANRST0 : 1; + __IO uint32_t CANRST1 : 1; + uint32_t RESERVED6 : 2; + __IO uint32_t SDCRST : 1; +} stc_clk_gating_mrst2_field_t; + + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* EXBUS_MODULE register bit fields */ +typedef struct stc_exbus_mode_field +{ + __IO uint32_t WDTH : 2; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; + uint32_t RESERVED : 18; +} stc_exbus_mode_field_t; + +typedef struct stc_exbus_tim_field +{ + __IO uint32_t RACC : 4; + __IO uint32_t RADC : 4; + __IO uint32_t FRADC : 4; + __IO uint32_t RIDLC : 4; + __IO uint32_t WACC : 4; + __IO uint32_t WADC : 4; + __IO uint32_t WWEC : 4; + __IO uint32_t WIDLC : 4; +} stc_exbus_tim_field_t; + +typedef struct stc_exbus_area_field +{ + __IO uint32_t ADDR : 8; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK : 7; + uint32_t RESERVED2 : 9; +} stc_exbus_area_field_t; + +typedef struct stc_exbus_atim_field +{ + __IO uint32_t ALC : 4; + __IO uint32_t ALES : 4; + __IO uint32_t ALEW : 4; + uint32_t RESERVED : 20; +} stc_exbus_atim_field_t; + +typedef struct stc_exbus_sdmode_field +{ + __IO uint32_t SDON : 1; + __IO uint32_t PDON : 1; + __IO uint32_t ROFF : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t CASEL : 2; + uint32_t RESERVED2 : 2; + __IO uint32_t RASEL : 4; + __IO uint32_t BASEL : 4; + __IO uint32_t MSDCLK : 1; + uint32_t RESERVED3 : 15; +} stc_exbus_sdmode_field_t; + +typedef struct stc_exbus_reftim_field +{ + __IO uint32_t REFC : 16; + __IO uint32_t NREF : 8; + __IO uint32_t PREF : 1; + uint32_t RESERVED : 7; +} stc_exbus_reftim_field_t; + +typedef struct stc_exbus_pwrdwn_field +{ + __IO uint32_t PDC : 16; + uint32_t RESERVED : 16; +} stc_exbus_pwrdwn_field_t; + +typedef struct stc_exbus_sdtim_field +{ + __IO uint32_t CL : 2; + uint32_t RESERVED1 : 2; + __IO uint32_t TRC : 4; + __IO uint32_t TRP : 4; + __IO uint32_t TRCD : 4; + __IO uint32_t TRAS : 4; + __IO uint32_t TREFC : 4; + __IO uint32_t TDPL : 2; + uint32_t RESERVED2 : 6; +} stc_exbus_sdtim_field_t; + +typedef struct stc_exbus_sdcmd_field +{ + __IO uint32_t SDAD : 16; + __IO uint32_t SDWE : 1; + __IO uint32_t SDCAS : 1; + __IO uint32_t SDRAS : 1; + __IO uint32_t SDCS : 1; + __IO uint32_t SDCKE : 1; + uint32_t RESERVED2 : 10; + __IO uint32_t PEND : 1; +} stc_exbus_sdcmd_field_t; + +typedef struct stc_exbus_memcerr_field +{ + __IO uint32_t SFER : 1; + __IO uint32_t SDER : 1; + __IO uint32_t SFION : 1; + __IO uint32_t SDION : 1; + uint32_t RESERVED : 28; +} stc_exbus_memcerr_field_t; + +typedef struct stc_exbus_dclkr_field +{ + __IO uint32_t MDIV : 4; + __IO uint32_t MCLKON : 1; + uint32_t RESERVED : 27; +} stc_exbus_dclkr_field_t; + +typedef struct stc_exbus_est_field +{ + __IO uint32_t WERR : 1; + uint32_t RESERVED : 31; +} stc_exbus_est_field_t; + +typedef struct stc_exbus_wead_field +{ + __IO uint32_t ADDR : 32; +} stc_exbus_wead_field_t; + +typedef struct stc_exbus_esclr_field +{ + __IO uint32_t WERRCLR : 1; + uint32_t RESERVED : 31; +} stc_exbus_esclr_field_t; + +typedef struct stc_exbus_amode_field +{ + __IO uint32_t WAEN : 1; + uint32_t RESERVED : 31; +} stc_exbus_amode_field_t; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB_MODULE register bit fields */ +typedef struct stc_usb_hcnt_field +{ + __IO uint16_t HOST : 1; + __IO uint16_t URST : 1; + __IO uint16_t SOFIRE : 1; + __IO uint16_t DIRE : 1; + __IO uint16_t CNNIRE : 1; + __IO uint16_t CMPIRE : 1; + __IO uint16_t URIRE : 1; + __IO uint16_t RWKIRE : 1; + __IO uint16_t RETRY : 1; + __IO uint16_t CANCEL : 1; + __IO uint16_t SOFSTEP : 1; +} stc_usb_hcnt_field_t; + +typedef struct stc_usb_hcnt0_field +{ + __IO uint8_t HOST : 1; + __IO uint8_t URST : 1; + __IO uint8_t SOFIRE : 1; + __IO uint8_t DIRE : 1; + __IO uint8_t CNNIRE : 1; + __IO uint8_t CMPIRE : 1; + __IO uint8_t URIRE : 1; + __IO uint8_t RWKIRE : 1; +} stc_usb_hcnt0_field_t; + +typedef struct stc_usb_hcnt1_field +{ + __IO uint8_t RETRY : 1; + __IO uint8_t CANCEL : 1; + __IO uint8_t SOFSTEP : 1; +} stc_usb_hcnt1_field_t; + +typedef struct stc_usb_hirq_field +{ + __IO uint8_t SOFIRQ : 1; + __IO uint8_t DIRQ : 1; + __IO uint8_t CNNIRQ : 1; + __IO uint8_t CMPIRQ : 1; + __IO uint8_t URIRQ : 1; + __IO uint8_t RWKIRQ : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TCAN : 1; +} stc_usb_hirq_field_t; + +typedef struct stc_usb_herr_field +{ + __IO uint8_t HS0 : 1; + __IO uint8_t HS1 : 1; + __IO uint8_t STUFF : 1; + __IO uint8_t TGERR : 1; + __IO uint8_t CRC : 1; + __IO uint8_t TOUT : 1; + __IO uint8_t RERR : 1; + __IO uint8_t LSTOF : 1; +} stc_usb_herr_field_t; + +typedef struct stc_usb_hstate_field +{ + __IO uint8_t CSTAT : 1; + __IO uint8_t TMODE : 1; + __IO uint8_t SUSP : 1; + __IO uint8_t SOFBUSY : 1; + __IO uint8_t CLKSEL : 1; + __IO uint8_t ALIVE : 1; +} stc_usb_hstate_field_t; + +typedef struct stc_usb_hfcomp_field +{ + __IO uint8_t FRAMECOMP0 : 1; + __IO uint8_t FRAMECOMP1 : 1; + __IO uint8_t FRAMECOMP2 : 1; + __IO uint8_t FRAMECOMP3 : 1; + __IO uint8_t FRAMECOMP4 : 1; + __IO uint8_t FRAMECOMP5 : 1; + __IO uint8_t FRAMECOMP6 : 1; + __IO uint8_t FRAMECOMP7 : 1; +} stc_usb_hfcomp_field_t; + +typedef struct stc_usb_hrtimer_field +{ + __IO uint16_t RTIMER0 : 1; + __IO uint16_t RTIMER1 : 1; + __IO uint16_t RTIMER2 : 1; + __IO uint16_t RTIMER3 : 1; + __IO uint16_t RTIMER4 : 1; + __IO uint16_t RTIMER5 : 1; + __IO uint16_t RTIMER6 : 1; + __IO uint16_t RTIMER7 : 1; + __IO uint16_t RTIMER8 : 1; + __IO uint16_t RTIMER9 : 1; + __IO uint16_t RTIMER10 : 1; + __IO uint16_t RTIMER11 : 1; + __IO uint16_t RTIMER12 : 1; + __IO uint16_t RTIMER13 : 1; + __IO uint16_t RTIMER14 : 1; + __IO uint16_t RTIMER15 : 1; +} stc_usb_hrtimer_field_t; + +typedef struct stc_usb_hrtimer0_field +{ + __IO uint8_t RTIMER00 : 1; + __IO uint8_t RTIMER01 : 1; + __IO uint8_t RTIMER02 : 1; + __IO uint8_t RTIMER03 : 1; + __IO uint8_t RTIMER04 : 1; + __IO uint8_t RTIMER05 : 1; + __IO uint8_t RTIMER06 : 1; + __IO uint8_t RTIMER07 : 1; +} stc_usb_hrtimer0_field_t; + +typedef struct stc_usb_hrtimer1_field +{ + __IO uint8_t RTIMER10 : 1; + __IO uint8_t RTIMER11 : 1; + __IO uint8_t RTIMER12 : 1; + __IO uint8_t RTIMER13 : 1; + __IO uint8_t RTIMER14 : 1; + __IO uint8_t RTIMER15 : 1; + __IO uint8_t RTIMER16 : 1; + __IO uint8_t RTIMER17 : 1; +} stc_usb_hrtimer1_field_t; + +typedef struct stc_usb_hrtimer2_field +{ + __IO uint8_t RTIMER20 : 1; + __IO uint8_t RTIMER21 : 1; + __IO uint8_t RTIMER22 : 1; +} stc_usb_hrtimer2_field_t; + +typedef struct stc_usb_hadr_field +{ + __IO uint8_t ADDRESS0 : 1; + __IO uint8_t ADDRESS1 : 1; + __IO uint8_t ADDRESS2 : 1; + __IO uint8_t ADDRESS3 : 1; + __IO uint8_t ADDRESS4 : 1; + __IO uint8_t ADDRESS5 : 1; + __IO uint8_t ADDRESS6 : 1; +} stc_usb_hadr_field_t; + +typedef struct stc_usb_heof_field +{ + __IO uint16_t EOF0 : 1; + __IO uint16_t EOF1 : 1; + __IO uint16_t EOF2 : 1; + __IO uint16_t EOF3 : 1; + __IO uint16_t EOF4 : 1; + __IO uint16_t EOF5 : 1; + __IO uint16_t EOF6 : 1; + __IO uint16_t EOF7 : 1; + __IO uint16_t EOF8 : 1; + __IO uint16_t EOF9 : 1; + __IO uint16_t EOF10 : 1; + __IO uint16_t EOF11 : 1; + __IO uint16_t EOF12 : 1; + __IO uint16_t EOF13 : 1; + __IO uint16_t EOF14 : 1; + __IO uint16_t EOF15 : 1; +} stc_usb_heof_field_t; + +typedef struct stc_usb_heof0_field +{ + __IO uint8_t EOF00 : 1; + __IO uint8_t EOF01 : 1; + __IO uint8_t EOF02 : 1; + __IO uint8_t EOF03 : 1; + __IO uint8_t EOF04 : 1; + __IO uint8_t EOF05 : 1; + __IO uint8_t EOF06 : 1; + __IO uint8_t EOF07 : 1; +} stc_usb_heof0_field_t; + +typedef struct stc_usb_heof1_field +{ + __IO uint8_t EOF10 : 1; + __IO uint8_t EOF11 : 1; + __IO uint8_t EOF12 : 1; + __IO uint8_t EOF13 : 1; + __IO uint8_t EOF14 : 1; + __IO uint8_t EOF15 : 1; +} stc_usb_heof1_field_t; + +typedef struct stc_usb_hframe_field +{ + __IO uint16_t FRAME0 : 1; + __IO uint16_t FRAME1 : 1; + __IO uint16_t FRAME2 : 1; + __IO uint16_t FRAME3 : 1; + __IO uint16_t FRAME4 : 1; + __IO uint16_t FRAME5 : 1; + __IO uint16_t FRAME6 : 1; + __IO uint16_t FRAME7 : 1; + __IO uint16_t FRAME8 : 1; + __IO uint16_t FRAME9 : 1; + __IO uint16_t FRAME10 : 1; +} stc_usb_hframe_field_t; + +typedef struct stc_usb_hframe0_field +{ + __IO uint8_t FRAME00 : 1; + __IO uint8_t FRAME01 : 1; + __IO uint8_t FRAME02 : 1; + __IO uint8_t FRAME03 : 1; + __IO uint8_t FRAME04 : 1; + __IO uint8_t FRAME05 : 1; + __IO uint8_t FRAME06 : 1; + __IO uint8_t FRAME07 : 1; +} stc_usb_hframe0_field_t; + +typedef struct stc_usb_hframe1_field +{ + __IO uint8_t FRAME10 : 1; + __IO uint8_t FRAME11 : 1; + __IO uint8_t FRAME12 : 1; + __IO uint8_t FRAME13 : 1; +} stc_usb_hframe1_field_t; + +typedef struct stc_usb_htoken_field +{ + __IO uint8_t ENDPT0 : 1; + __IO uint8_t ENDPT1 : 1; + __IO uint8_t ENDPT2 : 1; + __IO uint8_t ENDPT3 : 1; + __IO uint8_t TKNEN0 : 1; + __IO uint8_t TKNEN1 : 1; + __IO uint8_t TKNEN2 : 1; + __IO uint8_t TGGL : 1; +} stc_usb_htoken_field_t; + +typedef struct stc_usb_udcc_field +{ + __IO uint16_t PWC : 1; + __IO uint16_t RFBK : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t STALCLREN : 1; + __IO uint16_t USTP : 1; + __IO uint16_t HCONX : 1; + __IO uint16_t RESUM : 1; + __IO uint16_t RST : 1; +} stc_usb_udcc_field_t; + +typedef struct stc_usb_ep0c_field +{ + __IO uint16_t PKS00 : 1; + __IO uint16_t PKS01 : 1; + __IO uint16_t PKS02 : 1; + __IO uint16_t PKS03 : 1; + __IO uint16_t PKS04 : 1; + __IO uint16_t PKS05 : 1; + __IO uint16_t PKS06 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; +} stc_usb_ep0c_field_t; + +typedef struct stc_usb_ep1c_field +{ + __IO uint16_t PKS10 : 1; + __IO uint16_t PKS11 : 1; + __IO uint16_t PKS12 : 1; + __IO uint16_t PKS13 : 1; + __IO uint16_t PKS14 : 1; + __IO uint16_t PKS15 : 1; + __IO uint16_t PKS16 : 1; + __IO uint16_t PKS17 : 1; + __IO uint16_t PKS18 : 1; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep1c_field_t; + +typedef struct stc_usb_ep2c_field +{ + __IO uint16_t PKS20 : 1; + __IO uint16_t PKS21 : 1; + __IO uint16_t PKS22 : 1; + __IO uint16_t PKS23 : 1; + __IO uint16_t PKS24 : 1; + __IO uint16_t PKS25 : 1; + __IO uint16_t PKS26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep2c_field_t; + +typedef struct stc_usb_ep3c_field +{ + __IO uint16_t PKS30 : 1; + __IO uint16_t PKS31 : 1; + __IO uint16_t PKS32 : 1; + __IO uint16_t PKS33 : 1; + __IO uint16_t PKS34 : 1; + __IO uint16_t PKS35 : 1; + __IO uint16_t PKS36 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep3c_field_t; + +typedef struct stc_usb_ep4c_field +{ + __IO uint16_t PKS40 : 1; + __IO uint16_t PKS41 : 1; + __IO uint16_t PKS42 : 1; + __IO uint16_t PKS43 : 1; + __IO uint16_t PKS44 : 1; + __IO uint16_t PKS45 : 1; + __IO uint16_t PKS46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep4c_field_t; + +typedef struct stc_usb_ep5c_field +{ + __IO uint16_t PKS50 : 1; + __IO uint16_t PKS51 : 1; + __IO uint16_t PKS52 : 1; + __IO uint16_t PKS53 : 1; + __IO uint16_t PKS54 : 1; + __IO uint16_t PKS55 : 1; + __IO uint16_t PKS56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep5c_field_t; + +typedef struct stc_usb_tmsp_field +{ + __IO uint16_t TMSP0 : 1; + __IO uint16_t TMSP1 : 1; + __IO uint16_t TMSP2 : 1; + __IO uint16_t TMSP3 : 1; + __IO uint16_t TMSP4 : 1; + __IO uint16_t TMSP5 : 1; + __IO uint16_t TMSP6 : 1; + __IO uint16_t TMSP7 : 1; + __IO uint16_t TMSP8 : 1; + __IO uint16_t TMSP9 : 1; + __IO uint16_t TMSP10 : 1; +} stc_usb_tmsp_field_t; + +typedef struct stc_usb_udcs_field +{ + __IO uint8_t CONF : 1; + __IO uint8_t SETP : 1; + __IO uint8_t WKUP : 1; + __IO uint8_t BRST : 1; + __IO uint8_t SOF : 1; + __IO uint8_t SUSP : 1; +} stc_usb_udcs_field_t; + +typedef struct stc_usb_udcie_field +{ + __IO uint8_t CONFIE : 1; + __IO uint8_t CONFN : 1; + __IO uint8_t WKUPIE : 1; + __IO uint8_t BRSTIE : 1; + __IO uint8_t SOFIE : 1; + __IO uint8_t SUSPIE : 1; +} stc_usb_udcie_field_t; + +typedef struct stc_usb_ep0is_field +{ + uint16_t RESERVED1 : 10; + __IO uint16_t DRQI : 1; + uint16_t RESERVED2 : 3; + __IO uint16_t DRQIIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0is_field_t; + +typedef struct stc_usb_ep0os_field +{ + __IO uint16_t SIZE0 : 1; + __IO uint16_t SIZE1 : 1; + __IO uint16_t SIZE2 : 1; + __IO uint16_t SIZE3 : 1; + __IO uint16_t SIZE4 : 1; + __IO uint16_t SIZE5 : 1; + __IO uint16_t SIZE6 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQO : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQOIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0os_field_t; + +typedef struct stc_usb_ep1s_field +{ + __IO uint16_t SIZE10 : 1; + __IO uint16_t SIZE11 : 1; + __IO uint16_t SIZE12 : 1; + __IO uint16_t SIZE13 : 1; + __IO uint16_t SIZE14 : 1; + __IO uint16_t SIZE15 : 1; + __IO uint16_t SIZE16 : 1; + __IO uint16_t SIZE17 : 1; + __IO uint16_t SIZE18 : 1; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep1s_field_t; + +typedef struct stc_usb_ep2s_field +{ + __IO uint16_t SIZE20 : 1; + __IO uint16_t SIZE21 : 1; + __IO uint16_t SIZE22 : 1; + __IO uint16_t SIZE23 : 1; + __IO uint16_t SIZE24 : 1; + __IO uint16_t SIZE25 : 1; + __IO uint16_t SIZE26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep2s_field_t; + +typedef struct stc_usb_ep4s_field +{ + __IO uint16_t SIZE40 : 1; + __IO uint16_t SIZE41 : 1; + __IO uint16_t SIZE42 : 1; + __IO uint16_t SIZE43 : 1; + __IO uint16_t SIZE44 : 1; + __IO uint16_t SIZE45 : 1; + __IO uint16_t SIZE46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep4s_field_t; + +typedef struct stc_usb_ep5s_field +{ + __IO uint16_t SIZE50 : 1; + __IO uint16_t SIZE51 : 1; + __IO uint16_t SIZE52 : 1; + __IO uint16_t SIZE53 : 1; + __IO uint16_t SIZE54 : 1; + __IO uint16_t SIZE55 : 1; + __IO uint16_t SIZE56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep5s_field_t; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMAC_MODULE register bit fields */ +typedef struct stc_dmac_dmacr_field +{ + uint32_t RESERVED1 : 24; + __IO uint32_t DH0 : 1; + __IO uint32_t DH1 : 1; + __IO uint32_t DH2 : 1; + __IO uint32_t DH3 : 1; + __IO uint32_t PR : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t DS : 1; + __IO uint32_t DE : 1; +} stc_dmac_dmacr_field_t; + +typedef struct stc_dmac_dmaca0_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca0_field_t; + +typedef struct stc_dmac_dmacb0_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb0_field_t; + +typedef struct stc_dmac_dmaca1_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca1_field_t; + +typedef struct stc_dmac_dmacb1_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb1_field_t; + +typedef struct stc_dmac_dmaca2_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca2_field_t; + +typedef struct stc_dmac_dmacb2_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb2_field_t; + +typedef struct stc_dmac_dmaca3_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca3_field_t; + +typedef struct stc_dmac_dmacb3_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb3_field_t; + +typedef struct stc_dmac_dmaca4_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca4_field_t; + +typedef struct stc_dmac_dmacb4_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb4_field_t; + +typedef struct stc_dmac_dmaca5_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca5_field_t; + +typedef struct stc_dmac_dmacb5_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb5_field_t; + +typedef struct stc_dmac_dmaca6_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca6_field_t; + +typedef struct stc_dmac_dmacb6_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb6_field_t; + +typedef struct stc_dmac_dmaca7_field +{ + __IO uint32_t TC : 16; + __IO uint32_t BC : 4; + uint32_t RESERVED1 : 3; + __IO uint32_t IS : 6; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca7_field_t; + +typedef struct stc_dmac_dmacb7_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS : 3; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW : 2; + __IO uint32_t MS : 2; +} stc_dmac_dmacb7_field_t; + +/****************************************************************************** + * CAN_MODULE + ******************************************************************************/ +/* CAN_MODULE register bit fields */ +typedef struct stc_can_ctrlr_field +{ + __IO uint16_t INIT : 1; + __IO uint16_t IE : 1; + __IO uint16_t SIE : 1; + __IO uint16_t EIE : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t DAR : 1; + __IO uint16_t CCE : 1; + __IO uint16_t TEST : 1; +} stc_can_ctrlr_field_t; + +typedef struct stc_can_statr_field +{ + __IO uint16_t LEC : 3; + __IO uint16_t TXOK : 1; + __IO uint16_t RXOK : 1; + __IO uint16_t EPASS : 1; + __IO uint16_t EWARN : 1; + __IO uint16_t BOFF : 1; +} stc_can_statr_field_t; + +typedef struct stc_can_errcnt_field +{ + __IO uint16_t TEC0 : 1; + __IO uint16_t TEC1 : 1; + __IO uint16_t TEC2 : 1; + __IO uint16_t TEC3 : 1; + __IO uint16_t TEC4 : 1; + __IO uint16_t TEC5 : 1; + __IO uint16_t TEC6 : 1; + __IO uint16_t TEC7 : 1; + __IO uint16_t REC0 : 1; + __IO uint16_t REC1 : 1; + __IO uint16_t REC2 : 1; + __IO uint16_t REC3 : 1; + __IO uint16_t REC4 : 1; + __IO uint16_t REC5 : 1; + __IO uint16_t REC6 : 1; + __IO uint16_t RP : 1; +} stc_can_errcnt_field_t; + +typedef struct stc_can_btr_field +{ + __IO uint16_t BRP : 6; + __IO uint16_t SJW : 2; + __IO uint16_t TSEG1 : 4; + __IO uint16_t TSEG2 : 3; +} stc_can_btr_field_t; + +typedef struct stc_can_intr_field +{ + __IO uint16_t INTID0 : 1; + __IO uint16_t INTID1 : 1; + __IO uint16_t INTID2 : 1; + __IO uint16_t INTID3 : 1; + __IO uint16_t INTID4 : 1; + __IO uint16_t INTID5 : 1; + __IO uint16_t INTID6 : 1; + __IO uint16_t INTID7 : 1; + __IO uint16_t INTID8 : 1; + __IO uint16_t INTID9 : 1; + __IO uint16_t INTID10 : 1; + __IO uint16_t INTID11 : 1; + __IO uint16_t INTID12 : 1; + __IO uint16_t INTID13 : 1; + __IO uint16_t INTID14 : 1; + __IO uint16_t INTID15 : 1; +} stc_can_intr_field_t; + +typedef struct stc_can_testr_field +{ + uint16_t RESERVED1 : 2; + __IO uint16_t BASIC : 1; + __IO uint16_t SILENT : 1; + __IO uint16_t LBACK : 1; + __IO uint16_t TX0 : 1; + __IO uint16_t TX1 : 1; + __IO uint16_t RX : 1; +} stc_can_testr_field_t; + +typedef struct stc_can_brper_field +{ + __IO uint16_t BRPE0 : 1; + __IO uint16_t BRPE1 : 1; + __IO uint16_t BRPE2 : 1; + __IO uint16_t BRPE3 : 1; +} stc_can_brper_field_t; + +typedef struct stc_can_if1creq_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t BUSY : 1; +} stc_can_if1creq_field_t; + +typedef struct stc_can_if1cmsk_field +{ + __IO uint16_t DATAB : 1; + __IO uint16_t DATAA : 1; + __IO uint16_t NEWDAT : 1; + __IO uint16_t CIP : 1; + __IO uint16_t CONTROL : 1; + __IO uint16_t ARB : 1; + __IO uint16_t MASK : 1; + __IO uint16_t WRRD : 1; +} stc_can_if1cmsk_field_t; + +typedef struct stc_can_if1msk_field +{ + __IO uint32_t MSK : 29; + uint32_t RESERVED1 : 1; + __IO uint32_t MDIR : 1; + __IO uint32_t MXTD : 1; +} stc_can_if1msk_field_t; + +typedef struct stc_can_if1msk2_field +{ + uint16_t RESERVED1 : 14; + __IO uint16_t MDIR : 1; + __IO uint16_t MXTD : 1; +} stc_can_if1msk2_field_t; + +typedef struct stc_can_if1arb_field +{ + __IO uint32_t ID : 29; + __IO uint32_t DIR : 1; + __IO uint32_t XTD : 1; + __IO uint32_t MSGVAL : 1; +} stc_can_if1arb_field_t; + +typedef struct stc_can_if1arb2_field +{ + uint16_t RESERVED1 : 13; + __IO uint16_t DIR : 1; + __IO uint16_t XTD : 1; + __IO uint16_t MSGVAL : 1; +} stc_can_if1arb2_field_t; + +typedef struct stc_can_if1mctr_field +{ + __IO uint16_t DLC : 4; + uint16_t RESERVED1 : 3; + __IO uint16_t EOB : 1; + __IO uint16_t TXRQST : 1; + __IO uint16_t RMTEN : 1; + __IO uint16_t RXIE : 1; + __IO uint16_t TXIE : 1; + __IO uint16_t UMASK : 1; + __IO uint16_t INTPND : 1; + __IO uint16_t MSGLST : 1; + __IO uint16_t NEWDAT : 1; +} stc_can_if1mctr_field_t; + +typedef struct stc_can_if2creq_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t BUSY : 1; +} stc_can_if2creq_field_t; + +typedef struct stc_can_if2cmsk_field +{ + __IO uint16_t DATAB : 1; + __IO uint16_t DATAA : 1; + __IO uint16_t NEWDAT : 1; + __IO uint16_t CIP : 1; + __IO uint16_t CONTROL : 1; + __IO uint16_t ARB : 1; + __IO uint16_t MASK : 1; + __IO uint16_t WRRD : 1; +} stc_can_if2cmsk_field_t; + +typedef struct stc_can_if2msk_field +{ + uint32_t RESERVED1 : 30; + __IO uint32_t MDIR : 1; + __IO uint32_t MXTD : 1; +} stc_can_if2msk_field_t; + +typedef struct stc_can_if2msk2_field +{ + uint16_t RESERVED1 : 14; + __IO uint16_t MDIR : 1; + __IO uint16_t MXTD : 1; +} stc_can_if2msk2_field_t; + +typedef struct stc_can_if2arb2_field +{ + uint16_t RESERVED1 : 13; + __IO uint16_t DIR : 1; + __IO uint16_t XTD : 1; + __IO uint16_t MSGVAL : 1; +} stc_can_if2arb2_field_t; + +typedef struct stc_can_if2mctr_field +{ + __IO uint16_t DLC : 4; + uint16_t RESERVED1 : 3; + __IO uint16_t EOB : 1; + __IO uint16_t TXRQST : 1; + __IO uint16_t RMTEN : 1; + __IO uint16_t RXIE : 1; + __IO uint16_t TXIE : 1; + __IO uint16_t UMASK : 1; + __IO uint16_t INTPND : 1; + __IO uint16_t MSGLST : 1; + __IO uint16_t NEWDAT : 1; +} stc_can_if2mctr_field_t; + +typedef struct stc_can_treqr_field +{ + __IO uint32_t TXRQST1 : 1; + __IO uint32_t TXRQST2 : 1; + __IO uint32_t TXRQST3 : 1; + __IO uint32_t TXRQST4 : 1; + __IO uint32_t TXRQST5 : 1; + __IO uint32_t TXRQST6 : 1; + __IO uint32_t TXRQST7 : 1; + __IO uint32_t TXRQST8 : 1; + __IO uint32_t TXRQST9 : 1; + __IO uint32_t TXRQST10 : 1; + __IO uint32_t TXRQST11 : 1; + __IO uint32_t TXRQST12 : 1; + __IO uint32_t TXRQST13 : 1; + __IO uint32_t TXRQST14 : 1; + __IO uint32_t TXRQST15 : 1; + __IO uint32_t TXRQST16 : 1; + __IO uint32_t TXRQST17 : 1; + __IO uint32_t TXRQST18 : 1; + __IO uint32_t TXRQST19 : 1; + __IO uint32_t TXRQST20 : 1; + __IO uint32_t TXRQST21 : 1; + __IO uint32_t TXRQST22 : 1; + __IO uint32_t TXRQST23 : 1; + __IO uint32_t TXRQST24 : 1; + __IO uint32_t TXRQST25 : 1; + __IO uint32_t TXRQST26 : 1; + __IO uint32_t TXRQST27 : 1; + __IO uint32_t TXRQST28 : 1; + __IO uint32_t TXRQST29 : 1; + __IO uint32_t TXRQST30 : 1; + __IO uint32_t TXRQST31 : 1; + __IO uint32_t TXRQST32 : 1; +} stc_can_treqr_field_t; + +typedef struct stc_can_treqr1_field +{ + __IO uint16_t TXRQST1 : 1; + __IO uint16_t TXRQST2 : 1; + __IO uint16_t TXRQST3 : 1; + __IO uint16_t TXRQST4 : 1; + __IO uint16_t TXRQST5 : 1; + __IO uint16_t TXRQST6 : 1; + __IO uint16_t TXRQST7 : 1; + __IO uint16_t TXRQST8 : 1; + __IO uint16_t TXRQST9 : 1; + __IO uint16_t TXRQST10 : 1; + __IO uint16_t TXRQST11 : 1; + __IO uint16_t TXRQST12 : 1; + __IO uint16_t TXRQST13 : 1; + __IO uint16_t TXRQST14 : 1; + __IO uint16_t TXRQST15 : 1; + __IO uint16_t TXRQST16 : 1; +} stc_can_treqr1_field_t; + +typedef struct stc_can_treqr2_field +{ + __IO uint16_t TXRQST17 : 1; + __IO uint16_t TXRQST18 : 1; + __IO uint16_t TXRQST19 : 1; + __IO uint16_t TXRQST20 : 1; + __IO uint16_t TXRQST21 : 1; + __IO uint16_t TXRQST22 : 1; + __IO uint16_t TXRQST23 : 1; + __IO uint16_t TXRQST24 : 1; + __IO uint16_t TXRQST25 : 1; + __IO uint16_t TXRQST26 : 1; + __IO uint16_t TXRQST27 : 1; + __IO uint16_t TXRQST28 : 1; + __IO uint16_t TXRQST29 : 1; + __IO uint16_t TXRQST30 : 1; + __IO uint16_t TXRQST31 : 1; + __IO uint16_t TXRQST32 : 1; +} stc_can_treqr2_field_t; + +typedef struct stc_can_newdt_field +{ + __IO uint32_t NEWDAT1 : 1; + __IO uint32_t NEWDAT2 : 1; + __IO uint32_t NEWDAT3 : 1; + __IO uint32_t NEWDAT4 : 1; + __IO uint32_t NEWDAT5 : 1; + __IO uint32_t NEWDAT6 : 1; + __IO uint32_t NEWDAT7 : 1; + __IO uint32_t NEWDAT8 : 1; + __IO uint32_t NEWDAT9 : 1; + __IO uint32_t NEWDAT10 : 1; + __IO uint32_t NEWDAT11 : 1; + __IO uint32_t NEWDAT12 : 1; + __IO uint32_t NEWDAT13 : 1; + __IO uint32_t NEWDAT14 : 1; + __IO uint32_t NEWDAT15 : 1; + __IO uint32_t NEWDAT16 : 1; + __IO uint32_t NEWDAT17 : 1; + __IO uint32_t NEWDAT18 : 1; + __IO uint32_t NEWDAT19 : 1; + __IO uint32_t NEWDAT20 : 1; + __IO uint32_t NEWDAT21 : 1; + __IO uint32_t NEWDAT22 : 1; + __IO uint32_t NEWDAT23 : 1; + __IO uint32_t NEWDAT24 : 1; + __IO uint32_t NEWDAT25 : 1; + __IO uint32_t NEWDAT26 : 1; + __IO uint32_t NEWDAT27 : 1; + __IO uint32_t NEWDAT28 : 1; + __IO uint32_t NEWDAT29 : 1; + __IO uint32_t NEWDAT30 : 1; + __IO uint32_t NEWDAT31 : 1; + __IO uint32_t NEWDAT32 : 1; +} stc_can_newdt_field_t; + +typedef struct stc_can_newdt1_field +{ + __IO uint16_t NEWDAT1 : 1; + __IO uint16_t NEWDAT2 : 1; + __IO uint16_t NEWDAT3 : 1; + __IO uint16_t NEWDAT4 : 1; + __IO uint16_t NEWDAT5 : 1; + __IO uint16_t NEWDAT6 : 1; + __IO uint16_t NEWDAT7 : 1; + __IO uint16_t NEWDAT8 : 1; + __IO uint16_t NEWDAT9 : 1; + __IO uint16_t NEWDAT10 : 1; + __IO uint16_t NEWDAT11 : 1; + __IO uint16_t NEWDAT12 : 1; + __IO uint16_t NEWDAT13 : 1; + __IO uint16_t NEWDAT14 : 1; + __IO uint16_t NEWDAT15 : 1; + __IO uint16_t NEWDAT16 : 1; +} stc_can_newdt1_field_t; + +typedef struct stc_can_intpnd_field +{ + __IO uint32_t INTPND1 : 1; + __IO uint32_t INTPND2 : 1; + __IO uint32_t INTPND3 : 1; + __IO uint32_t INTPND4 : 1; + __IO uint32_t INTPND5 : 1; + __IO uint32_t INTPND6 : 1; + __IO uint32_t INTPND7 : 1; + __IO uint32_t INTPND8 : 1; + __IO uint32_t INTPND9 : 1; + __IO uint32_t INTPND10 : 1; + __IO uint32_t INTPND11 : 1; + __IO uint32_t INTPND12 : 1; + __IO uint32_t INTPND13 : 1; + __IO uint32_t INTPND14 : 1; + __IO uint32_t INTPND15 : 1; + __IO uint32_t INTPND16 : 1; + __IO uint32_t INTPND17 : 1; + __IO uint32_t INTPND18 : 1; + __IO uint32_t INTPND19 : 1; + __IO uint32_t INTPND20 : 1; + __IO uint32_t INTPND21 : 1; + __IO uint32_t INTPND22 : 1; + __IO uint32_t INTPND23 : 1; + __IO uint32_t INTPND24 : 1; + __IO uint32_t INTPND25 : 1; + __IO uint32_t INTPND26 : 1; + __IO uint32_t INTPND27 : 1; + __IO uint32_t INTPND28 : 1; + __IO uint32_t INTPND29 : 1; + __IO uint32_t INTPND30 : 1; + __IO uint32_t INTPND31 : 1; + __IO uint32_t INTPND32 : 1; +} stc_can_intpnd_field_t; + +typedef struct stc_can_intpnd1_field +{ + __IO uint16_t INTPND1 : 1; + __IO uint16_t INTPND2 : 1; + __IO uint16_t INTPND3 : 1; + __IO uint16_t INTPND4 : 1; + __IO uint16_t INTPND5 : 1; + __IO uint16_t INTPND6 : 1; + __IO uint16_t INTPND7 : 1; + __IO uint16_t INTPND8 : 1; + __IO uint16_t INTPND9 : 1; + __IO uint16_t INTPND10 : 1; + __IO uint16_t INTPND11 : 1; + __IO uint16_t INTPND12 : 1; + __IO uint16_t INTPND13 : 1; + __IO uint16_t INTPND14 : 1; + __IO uint16_t INTPND15 : 1; + __IO uint16_t INTPND16 : 1; +} stc_can_intpnd1_field_t; + +typedef struct stc_can_intpnd2_field +{ + __IO uint16_t INTPND17 : 1; + __IO uint16_t INTPND18 : 1; + __IO uint16_t INTPND19 : 1; + __IO uint16_t INTPND20 : 1; + __IO uint16_t INTPND21 : 1; + __IO uint16_t INTPND22 : 1; + __IO uint16_t INTPND23 : 1; + __IO uint16_t INTPND24 : 1; + __IO uint16_t INTPND25 : 1; + __IO uint16_t INTPND26 : 1; + __IO uint16_t INTPND27 : 1; + __IO uint16_t INTPND28 : 1; + __IO uint16_t INTPND29 : 1; + __IO uint16_t INTPND30 : 1; + __IO uint16_t INTPND31 : 1; + __IO uint16_t INTPND32 : 1; +} stc_can_intpnd2_field_t; + +typedef struct stc_can_msgval_field +{ + __IO uint32_t MSGVAL1 : 1; + __IO uint32_t MSGVAL2 : 1; + __IO uint32_t MSGVAL3 : 1; + __IO uint32_t MSGVAL4 : 1; + __IO uint32_t MSGVAL5 : 1; + __IO uint32_t MSGVAL6 : 1; + __IO uint32_t MSGVAL7 : 1; + __IO uint32_t MSGVAL8 : 1; + __IO uint32_t MSGVAL9 : 1; + __IO uint32_t MSGVAL10 : 1; + __IO uint32_t MSGVAL11 : 1; + __IO uint32_t MSGVAL12 : 1; + __IO uint32_t MSGVAL13 : 1; + __IO uint32_t MSGVAL14 : 1; + __IO uint32_t MSGVAL15 : 1; + __IO uint32_t MSGVAL16 : 1; + __IO uint32_t MSGVAL17 : 1; + __IO uint32_t MSGVAL18 : 1; + __IO uint32_t MSGVAL19 : 1; + __IO uint32_t MSGVAL20 : 1; + __IO uint32_t MSGVAL21 : 1; + __IO uint32_t MSGVAL22 : 1; + __IO uint32_t MSGVAL23 : 1; + __IO uint32_t MSGVAL24 : 1; + __IO uint32_t MSGVAL25 : 1; + __IO uint32_t MSGVAL26 : 1; + __IO uint32_t MSGVAL27 : 1; + __IO uint32_t MSGVAL28 : 1; + __IO uint32_t MSGVAL29 : 1; + __IO uint32_t MSGVAL30 : 1; + __IO uint32_t MSGVAL31 : 1; + __IO uint32_t MSGVAL32 : 1; +} stc_can_msgval_field_t; + +typedef struct stc_can_msgval1_field +{ + __IO uint16_t MSGVAL1 : 1; + __IO uint16_t MSGVAL2 : 1; + __IO uint16_t MSGVAL3 : 1; + __IO uint16_t MSGVAL4 : 1; + __IO uint16_t MSGVAL5 : 1; + __IO uint16_t MSGVAL6 : 1; + __IO uint16_t MSGVAL7 : 1; + __IO uint16_t MSGVAL8 : 1; + __IO uint16_t MSGVAL9 : 1; + __IO uint16_t MSGVAL10 : 1; + __IO uint16_t MSGVAL11 : 1; + __IO uint16_t MSGVAL12 : 1; + __IO uint16_t MSGVAL13 : 1; + __IO uint16_t MSGVAL14 : 1; + __IO uint16_t MSGVAL15 : 1; + __IO uint16_t MSGVAL16 : 1; +} stc_can_msgval1_field_t; + +typedef struct stc_can_msgval2_field +{ + __IO uint16_t MSGVAL17 : 1; + __IO uint16_t MSGVAL18 : 1; + __IO uint16_t MSGVAL19 : 1; + __IO uint16_t MSGVAL20 : 1; + __IO uint16_t MSGVAL21 : 1; + __IO uint16_t MSGVAL22 : 1; + __IO uint16_t MSGVAL23 : 1; + __IO uint16_t MSGVAL24 : 1; + __IO uint16_t MSGVAL25 : 1; + __IO uint16_t MSGVAL26 : 1; + __IO uint16_t MSGVAL27 : 1; + __IO uint16_t MSGVAL28 : 1; + __IO uint16_t MSGVAL29 : 1; + __IO uint16_t MSGVAL30 : 1; + __IO uint16_t MSGVAL31 : 1; + __IO uint16_t MSGVAL32 : 1; +} stc_can_msgval2_field_t; + +/****************************************************************************** + * SDIF_MODULE + ******************************************************************************/ +/* SDIF_MODULE register bit fields */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/****************************************************************************** + * Peripheral register structures + ******************************************************************************/ + +/****************************************************************************** + * WorkFlash_IF_MODULE + ******************************************************************************/ +/* WorkFlash interface registers */ +typedef struct +{ + union { + __IO uint32_t WFASZR; + stc_workflash_if_wfaszr_field_t WFASZR_f; + }; + union { + __IO uint32_t WFRWTR; + stc_workflash_if_wfrwtr_field_t WFRWTR_f; + }; + union { + __IO uint32_t WFSTR; + stc_workflash_if_wfstr_field_t WFSTR_f; + }; +}FM4_WORKFLASH_IF_TypeDef; + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash interface registers */ +typedef struct +{ + union { + __IO uint32_t FASZR; + stc_flash_if_faszr_field_t FASZR_f; + }; + union { + __IO uint32_t FRWTR; + stc_flash_if_frwtr_field_t FRWTR_f; + }; + union { + __IO uint32_t FSTR; + stc_flash_if_fstr_field_t FSTR_f; + }; + uint8_t RESERVED2[4]; + union { + __IO uint32_t FSYNDN; + stc_flash_if_fsyndn_field_t FSYNDN_f; + }; + union { + __IO uint32_t FBFCR; + stc_flash_if_fbfcr_field_t FBFCR_f; + }; + uint8_t RESERVED4[8]; + union { + __IO uint32_t FICR; + stc_flash_if_ficr_field_t FICR_f; + }; + union { + __IO uint32_t FISR; + stc_flash_if_fisr_field_t FISR_f; + }; + union { + __IO uint32_t FICLR; + stc_flash_if_ficlr_field_t FICLR_f; + }; + uint8_t RESERVED7[212]; + union { + __IO uint32_t CRTRMM; + stc_flash_if_crtrmm_field_t CRTRMM_f; + }; +}FM4_FLASH_IF_TypeDef; + +/****************************************************************************** + * UNIQUE_ID_MODULE + ******************************************************************************/ +/* Unique ID registers */ +typedef struct +{ + union { + __IO uint32_t UIDR0; + stc_unique_id_uidr0_field_t UIDR0_f; + }; + union { + __IO uint32_t UIDR1; + stc_unique_id_uidr1_field_t UIDR1_f; + }; +}FM4_UNIQUE_ID_TypeDef; + +/****************************************************************************** + * ECC_CAPTURE_MODULE + ******************************************************************************/ +/* ECC Capture address registers */ +typedef struct +{ + union { + __IO uint32_t FERRAD; + stc_ecc_capture_ferrad_field_t FERRAD_f; + }; +}FM4_ECC_CAPTURE_TypeDef; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock and reset registers */ +typedef struct +{ + union { + __IO uint8_t SCM_CTL; + stc_crg_scm_ctl_field_t SCM_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t SCM_STR; + stc_crg_scm_str_field_t SCM_STR_f; + }; + uint8_t RESERVED1[3]; + __IO uint32_t STB_CTL; + union { + __IO uint16_t RST_STR; + stc_crg_rst_str_field_t RST_STR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t BSC_PSR; + stc_crg_bsc_psr_field_t BSC_PSR_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t APBC0_PSR; + stc_crg_apbc0_psr_field_t APBC0_PSR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t APBC1_PSR; + stc_crg_apbc1_psr_field_t APBC1_PSR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t APBC2_PSR; + stc_crg_apbc2_psr_field_t APBC2_PSR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t SWC_PSR; + stc_crg_swc_psr_field_t SWC_PSR_f; + }; + uint8_t RESERVED7[7]; + union { + __IO uint8_t TTC_PSR; + stc_crg_ttc_psr_field_t TTC_PSR_f; + }; + uint8_t RESERVED8[7]; + union { + __IO uint8_t CSW_TMR; + stc_crg_csw_tmr_field_t CSW_TMR_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t PSW_TMR; + stc_crg_psw_tmr_field_t PSW_TMR_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PLL_CTL1; + stc_crg_pll_ctl1_field_t PLL_CTL1_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t PLL_CTL2; + stc_crg_pll_ctl2_field_t PLL_CTL2_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint16_t CSV_CTL; + stc_crg_csv_ctl_field_t CSV_CTL_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint8_t CSV_STR; + stc_crg_csv_str_field_t CSV_STR_f; + }; + uint8_t RESERVED14[3]; + __IO uint16_t FCSWH_CTL; + uint8_t RESERVED15[2]; + __IO uint16_t FCSWL_CTL; + uint8_t RESERVED16[2]; + __IO uint16_t FCSWD_CTL; + uint8_t RESERVED17[2]; + union { + __IO uint8_t DBWDT_CTL; + stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; + }; + uint8_t RESERVED18[11]; + union { + __IO uint8_t INT_ENR; + stc_crg_int_enr_field_t INT_ENR_f; + }; + uint8_t RESERVED19[3]; + union { + __IO uint8_t INT_STR; + stc_crg_int_str_field_t INT_STR_f; + }; + uint8_t RESERVED20[3]; + union { + __IO uint8_t INT_CLR; + stc_crg_int_clr_field_t INT_CLR_f; + }; +}FM4_CRG_TypeDef; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* Hardware watchdog registers */ +typedef struct +{ + __IO uint32_t WDG_LDR; + __IO uint32_t WDG_VLR; + union { + __IO uint8_t WDG_CTL; + stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; + }; + uint8_t RESERVED0[3]; + __IO uint8_t WDG_ICL; + uint8_t RESERVED1[3]; + union { + __IO uint8_t WDG_RIS; + stc_hwwdt_wdg_ris_field_t WDG_RIS_f; + }; + uint8_t RESERVED2[3055]; + __IO uint32_t WDG_LCK; +}FM4_HWWDT_TypeDef; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* Software watchdog registers */ +typedef struct +{ + __IO uint32_t WDOGLOAD; + __IO uint32_t WDOGVALUE; + union { + __IO uint8_t WDOGCONTROL; + stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t WDOGINTCLR; + union { + __IO uint8_t WDOGRIS; + stc_swwdt_wdogris_field_t WDOGRIS_f; + }; + uint8_t RESERVED1[7]; + union { + __IO uint8_t WDOGSPMC; + stc_swwdt_wdogspmc_field_t WDOGSPMC_f; + }; + uint8_t RESERVED2[3047]; + __IO uint32_t WDOGLOCK; +}FM4_SWWDT_TypeDef; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* Dual timer 1/2 registers */ +typedef struct +{ + __IO uint32_t TIMERXLOAD; + __IO uint32_t TIMERXVALUE; + union { + __IO uint32_t TIMERXCONTROL; + stc_dtim_timerXcontrol_field_t TIMERXCONTROL_f; + }; + __IO uint32_t TIMERXINTCLR; + union { + __IO uint32_t TIMERXRIS; + stc_dtim_timerXris_field_t TIMERXRIS_f; + }; + union { + __IO uint32_t TIMERXMIS; + stc_dtim_timerXmis_field_t TIMERXMIS_f; + }; + __IO uint32_t TIMERXBGLOAD; + uint8_t RESERVED0[4]; +}FM4_DTIM_TypeDef; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Free Running Timer registers */ +typedef struct +{ + uint8_t RESERVED0[66]; + __IO uint16_t TCCP0; + uint8_t RESERVED1[2]; + __IO uint16_t TCDT0; + union { + __IO uint16_t TCSA0; + stc_mft_frt_tcsa0_field_t TCSA0_f; + }; + union { + __IO uint16_t TCSC0; + stc_mft_frt_tcsc0_field_t TCSC0_f; + }; + uint8_t RESERVED2[2]; + __IO uint16_t TCCP1; + uint8_t RESERVED3[2]; + __IO uint16_t TCDT1; + union { + __IO uint16_t TCSA1; + stc_mft_frt_tcsa1_field_t TCSA1_f; + }; + union { + __IO uint16_t TCSC1; + stc_mft_frt_tcsc1_field_t TCSC1_f; + }; + uint8_t RESERVED4[2]; + __IO uint16_t TCCP2; + uint8_t RESERVED5[2]; + __IO uint16_t TCDT2; + union { + __IO uint16_t TCSA2; + stc_mft_frt_tcsa2_field_t TCSA2_f; + }; + union { + __IO uint16_t TCSC2; + stc_mft_frt_tcsc2_field_t TCSC2_f; + }; + union { + __IO uint32_t TCAL; + stc_mft_frt_tcal_field_t TCAL_f; + }; +}FM4_MFT_FRT_TypeDef; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Output Compare Unit registers */ +typedef struct +{ + uint8_t RESERVED0[2]; + __IO uint16_t OCCP0; + uint8_t RESERVED1[2]; + __IO uint16_t OCCP1; + uint8_t RESERVED2[2]; + __IO uint16_t OCCP2; + uint8_t RESERVED3[2]; + __IO uint16_t OCCP3; + uint8_t RESERVED4[2]; + __IO uint16_t OCCP4; + uint8_t RESERVED5[2]; + __IO uint16_t OCCP5; + union { + __IO uint8_t OCSA10; + stc_mft_ocu_ocsa10_field_t OCSA10_f; + }; + union { + __IO uint8_t OCSB10; + stc_mft_ocu_ocsb10_field_t OCSB10_f; + }; + union { + __IO uint8_t OCSD10; + stc_mft_ocu_ocsd10_field_t OCSD10_f; + }; + uint8_t RESERVED6; + union { + __IO uint8_t OCSA32; + stc_mft_ocu_ocsa32_field_t OCSA32_f; + }; + union { + __IO uint8_t OCSB32; + stc_mft_ocu_ocsb32_field_t OCSB32_f; + }; + union { + __IO uint8_t OCSD32; + stc_mft_ocu_ocsd32_field_t OCSD32_f; + }; + uint8_t RESERVED7; + union { + __IO uint8_t OCSA54; + stc_mft_ocu_ocsa54_field_t OCSA54_f; + }; + union { + __IO uint8_t OCSB54; + stc_mft_ocu_ocsb54_field_t OCSB54_f; + }; + union { + __IO uint8_t OCSD54; + stc_mft_ocu_ocsd54_field_t OCSD54_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint8_t OCSC; + stc_mft_ocu_ocsc_field_t OCSC_f; + }; + uint8_t RESERVED9[2]; + union { + __IO uint16_t OCSE0; + stc_mft_ocu_ocse0_field_t OCSE0_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint32_t OCSE1; + stc_mft_ocu_ocse1_field_t OCSE1_f; + }; + union { + __IO uint16_t OCSE2; + stc_mft_ocu_ocse2_field_t OCSE2_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint32_t OCSE3; + stc_mft_ocu_ocse3_field_t OCSE3_f; + }; + union { + __IO uint16_t OCSE4; + stc_mft_ocu_ocse4_field_t OCSE4_f; + }; + uint8_t RESERVED12[2]; + union { + __IO uint32_t OCSE5; + stc_mft_ocu_ocse5_field_t OCSE5_f; + }; + uint8_t RESERVED13[40]; + union { + __IO uint8_t OCFS10; + stc_mft_ocu_ocfs10_field_t OCFS10_f; + }; + union { + __IO uint8_t OCFS32; + stc_mft_ocu_ocfs32_field_t OCFS32_f; + }; + union { + __IO uint8_t OCFS54; + stc_mft_ocu_ocfs54_field_t OCFS54_f; + }; +}FM4_MFT_OCU_TypeDef; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +typedef struct +{ + uint8_t RESERVED0[142]; + __IO uint16_t WFTF10; + __IO uint16_t WFTA10; + __IO uint16_t WFTB10; + uint8_t RESERVED1[2]; + __IO uint16_t WFTF32; + __IO uint16_t WFTA32; + __IO uint16_t WFTB32; + uint8_t RESERVED2[2]; + __IO uint16_t WFTF54; + __IO uint16_t WFTA54; + __IO uint16_t WFTB54; + union { + __IO uint16_t WFSA10; + stc_mft_wfg_wfsa10_field_t WFSA10_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t WFSA32; + stc_mft_wfg_wfsa32_field_t WFSA32_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t WFSA54; + stc_mft_wfg_wfsa54_field_t WFSA54_f; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t WFIR; + stc_mft_wfg_wfir_field_t WFIR_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t NZCL; + stc_mft_wfg_nzcl_field_t NZCL_f; + }; +}FM4_MFT_WFG_TypeDef; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Input Capture Unit registers */ +typedef struct +{ + uint8_t RESERVED0[108]; + union { + __IO uint8_t ICFS10; + stc_mft_icu_icfs10_field_t ICFS10_f; + }; + union { + __IO uint8_t ICFS32; + stc_mft_icu_icfs32_field_t ICFS32_f; + }; + uint8_t RESERVED1[8]; + __IO uint16_t ICCP0; + uint8_t RESERVED2[2]; + __IO uint16_t ICCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ICCP2; + uint8_t RESERVED4[2]; + __IO uint16_t ICCP3; + union { + __IO uint8_t ICSA10; + stc_mft_icu_icsa10_field_t ICSA10_f; + }; + union { + __IO uint8_t ICSB10; + stc_mft_icu_icsb10_field_t ICSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ICSA32; + stc_mft_icu_icsa32_field_t ICSA32_f; + }; + union { + __IO uint8_t ICSB32; + stc_mft_icu_icsb32_field_t ICSB32_f; + }; +}FM4_MFT_ICU_TypeDef; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +typedef struct +{ + uint8_t RESERVED0[112]; + union { + __IO uint8_t ACFS10; + stc_mft_adcmp_acfs10_field_t ACFS10_f; + }; + union { + __IO uint8_t ACFS32; + stc_mft_adcmp_acfs32_field_t ACFS32_f; + }; + union { + __IO uint8_t ACFS54; + stc_mft_adcmp_acfs54_field_t ACFS54_f; + }; + uint8_t RESERVED1[71]; + __IO uint16_t ACMP0; + uint8_t RESERVED2[2]; + __IO uint16_t ACMP1; + uint8_t RESERVED3[2]; + __IO uint16_t ACMP2; + uint8_t RESERVED4[2]; + __IO uint16_t ACMP3; + uint8_t RESERVED5[2]; + __IO uint16_t ACMP4; + uint8_t RESERVED6[2]; + __IO uint16_t ACMP5; + union { + __IO uint16_t ACSA; + stc_mft_adcmp_acsa_field_t ACSA_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint8_t ACSC0; + stc_mft_adcmp_acsc_field_t ACSC0_f; + }; + union { + __IO uint8_t ACSD0; + stc_mft_adcmp_acsd_field_t ACSD0_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint8_t ACSC1; + stc_mft_adcmp_acsc_field_t ACSC1_f; + }; + union { + __IO uint8_t ACSD1; + stc_mft_adcmp_acsd_field_t ACSD1_f; + }; + uint8_t RESERVED9[2]; + union { + __IO uint8_t ACSC2; + stc_mft_adcmp_acsc_field_t ACSC2_f; + }; + union { + __IO uint8_t ACSD2; + stc_mft_adcmp_acsd_field_t ACSD2_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint8_t ACSC3; + stc_mft_adcmp_acsc_field_t ACSC3_f; + }; + union { + __IO uint8_t ACSD3; + stc_mft_adcmp_acsd_field_t ACSD3_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint8_t ACSC4; + stc_mft_adcmp_acsc_field_t ACSC4_f; + }; + union { + __IO uint8_t ACSD4; + stc_mft_adcmp_acsd_field_t ACSD4_f; + }; + uint8_t RESERVED12[2]; + union { + __IO uint8_t ACSC5; + stc_mft_adcmp_acsc_field_t ACSC5_f; + }; + union { + __IO uint8_t ACSD5; + stc_mft_adcmp_acsd_field_t ACSD5_f; + }; + uint8_t RESERVED13[2]; +}FM4_MFT_ADCMP_TypeDef; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* Multifunction Timer PPG registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t TTCR0; + stc_mft_ppg_ttcr0_field_t TTCR0_f; + }; + uint8_t RESERVED1[2]; + __IO uint8_t TSTPR0; + uint8_t RESERVED3[4]; + __IO uint8_t COMP0; + uint8_t RESERVED4[2]; + __IO uint8_t COMP2; + uint8_t RESERVED5[4]; + __IO uint8_t COMP4; + uint8_t RESERVED6[2]; + __IO uint8_t COMP6; + uint8_t RESERVED7[12]; + union { + __IO uint8_t TTCR1; + stc_mft_ppg_ttcr1_field_t TTCR1_f; + }; + uint8_t RESERVED8[2]; + __IO uint8_t TSTPR1; + uint8_t RESERVED9[4]; + __IO uint8_t COMP1; + uint8_t RESERVED10[2]; + __IO uint8_t COMP3; + uint8_t RESERVED11[4]; + __IO uint8_t COMP5; + uint8_t RESERVED12[2]; + __IO uint8_t COMP7; + uint8_t RESERVED13[12]; + union { + __IO uint8_t TTCR2; + stc_mft_ppg_ttcr2_field_t TTCR2_f; + }; + uint8_t RESERVED14[2]; + __IO uint8_t TSTPR2; + uint8_t RESERVED15[4]; + __IO uint8_t COMP8; + uint8_t RESERVED16[2]; + __IO uint8_t COMP10; + uint8_t RESERVED17[4]; + __IO uint8_t COMP12; + uint8_t RESERVED18[2]; + __IO uint8_t COMP14; + uint8_t RESERVED19[171]; + union { + __IO uint16_t TRG0; + stc_mft_ppg_trg0_field_t TRG0_f; + }; + uint8_t RESERVED20[2]; + union { + __IO uint16_t REVC0; + stc_mft_ppg_revc0_field_t REVC0_f; + }; + uint8_t RESERVED21[58]; + union { + __IO uint16_t TRG1; + stc_mft_ppg_trg1_field_t TRG1_f; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t REVC1; + stc_mft_ppg_revc1_field_t REVC1_f; + }; + uint8_t RESERVED23[186]; + union { + __IO uint8_t PPGC1; + stc_mft_ppg_ppgc1_field_t PPGC1_f; + }; + union { + __IO uint8_t PPGC0; + stc_mft_ppg_ppgc0_field_t PPGC0_f; + }; + uint8_t RESERVED24[2]; + union { + __IO uint8_t PPGC3; + stc_mft_ppg_ppgc3_field_t PPGC3_f; + }; + union { + __IO uint8_t PPGC2; + stc_mft_ppg_ppgc2_field_t PPGC2_f; + }; + uint8_t RESERVED25[2]; + union { + __IO uint16_t PRL0; + struct { + __IO uint8_t PRLL0; + __IO uint8_t PRLH0; + }; + }; + uint8_t RESERVED26[2]; + union { + __IO uint16_t PRL1; + struct { + __IO uint8_t PRLL1; + __IO uint8_t PRLH1; + }; + }; + uint8_t RESERVED27[2]; + union { + __IO uint16_t PRL2; + struct { + __IO uint8_t PRLL2; + __IO uint8_t PRLH2; + }; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t PRL3; + struct { + __IO uint8_t PRLL3; + __IO uint8_t PRLH3; + }; + }; + uint8_t RESERVED29[2]; + union { + __IO uint8_t GATEC0; + stc_mft_ppg_gatec0_field_t GATEC0_f; + }; + uint8_t RESERVED30[39]; + union { + __IO uint8_t PPGC5; + stc_mft_ppg_ppgc5_field_t PPGC5_f; + }; + union { + __IO uint8_t PPGC4; + stc_mft_ppg_ppgc4_field_t PPGC4_f; + }; + uint8_t RESERVED31[2]; + union { + __IO uint8_t PPGC7; + stc_mft_ppg_ppgc7_field_t PPGC7_f; + }; + union { + __IO uint8_t PPGC6; + stc_mft_ppg_ppgc6_field_t PPGC6_f; + }; + uint8_t RESERVED32[2]; + union { + __IO uint16_t PRL4; + struct { + __IO uint8_t PRLL4; + __IO uint8_t PRLH4; + }; + }; + uint8_t RESERVED33[2]; + union { + __IO uint16_t PRL5; + struct { + __IO uint8_t PRLL5; + __IO uint8_t PRLH5; + }; + }; + uint8_t RESERVED34[2]; + union { + __IO uint16_t PRL6; + struct { + __IO uint8_t PRLL6; + __IO uint8_t PRLH6; + }; + }; + uint8_t RESERVED35[2]; + union { + __IO uint16_t PRL7; + struct { + __IO uint8_t PRLL7; + __IO uint8_t PRLH7; + }; + }; + uint8_t RESERVED36[2]; + union { + __IO uint8_t GATEC4; + stc_mft_ppg_gatec4_field_t GATEC4_f; + }; + uint8_t RESERVED37[39]; + union { + __IO uint8_t PPGC9; + stc_mft_ppg_ppgc9_field_t PPGC9_f; + }; + union { + __IO uint8_t PPGC8; + stc_mft_ppg_ppgc8_field_t PPGC8_f; + }; + uint8_t RESERVED38[2]; + union { + __IO uint8_t PPGC11; + stc_mft_ppg_ppgc11_field_t PPGC11_f; + }; + union { + __IO uint8_t PPGC10; + stc_mft_ppg_ppgc10_field_t PPGC10_f; + }; + uint8_t RESERVED39[2]; + union { + __IO uint16_t PRL8; + struct { + __IO uint8_t PRLL8; + __IO uint8_t PRLH8; + }; + }; + uint8_t RESERVED40[2]; + union { + __IO uint16_t PRL9; + struct { + __IO uint8_t PRLL9; + __IO uint8_t PRLH9; + }; + }; + uint8_t RESERVED41[2]; + union { + __IO uint16_t PRL10; + struct { + __IO uint8_t PRLL10; + __IO uint8_t PRLH10; + }; + }; + uint8_t RESERVED42[2]; + union { + __IO uint16_t PRL11; + struct { + __IO uint8_t PRLL11; + __IO uint8_t PRLH11; + }; + }; + uint8_t RESERVED43[2]; + union { + __IO uint8_t GATEC8; + stc_mft_ppg_gatec8_field_t GATEC8_f; + }; + uint8_t RESERVED44[39]; + union { + __IO uint8_t PPGC13; + stc_mft_ppg_ppgc13_field_t PPGC13_f; + }; + union { + __IO uint8_t PPGC12; + stc_mft_ppg_ppgc12_field_t PPGC12_f; + }; + uint8_t RESERVED45[2]; + union { + __IO uint8_t PPGC15; + stc_mft_ppg_ppgc15_field_t PPGC15_f; + }; + union { + __IO uint8_t PPGC14; + stc_mft_ppg_ppgc14_field_t PPGC14_f; + }; + uint8_t RESERVED46[2]; + union { + __IO uint16_t PRL12; + struct { + __IO uint8_t PRLL12; + __IO uint8_t PRLH12; + }; + }; + uint8_t RESERVED47[2]; + union { + __IO uint16_t PRL13; + struct { + __IO uint8_t PRLL13; + __IO uint8_t PRLH13; + }; + }; + uint8_t RESERVED48[2]; + union { + __IO uint16_t PRL14; + struct { + __IO uint8_t PRLL14; + __IO uint8_t PRLH14; + }; + }; + uint8_t RESERVED49[2]; + union { + __IO uint16_t PRL15; + struct { + __IO uint8_t PRLL15; + __IO uint8_t PRLH15; + }; + }; + uint8_t RESERVED50[2]; + union { + __IO uint8_t GATEC12; + stc_mft_ppg_gatec12_field_t GATEC12_f; + }; + uint8_t RESERVED51[39]; + union { + __IO uint8_t PPGC17; + stc_mft_ppg_ppgc17_field_t PPGC17_f; + }; + union { + __IO uint8_t PPGC16; + stc_mft_ppg_ppgc16_field_t PPGC16_f; + }; + uint8_t RESERVED52[2]; + union { + __IO uint8_t PPGC19; + stc_mft_ppg_ppgc19_field_t PPGC19_f; + }; + union { + __IO uint8_t PPGC18; + stc_mft_ppg_ppgc18_field_t PPGC18_f; + }; + uint8_t RESERVED53[2]; + union { + __IO uint16_t PRL16; + struct { + __IO uint8_t PRLL16; + __IO uint8_t PRLH16; + }; + }; + uint8_t RESERVED54[2]; + union { + __IO uint16_t PRL17; + struct { + __IO uint8_t PRLL17; + __IO uint8_t PRLH17; + }; + }; + uint8_t RESERVED55[2]; + union { + __IO uint16_t PRL18; + struct { + __IO uint8_t PRLL18; + __IO uint8_t PRLH18; + }; + }; + uint8_t RESERVED56[2]; + union { + __IO uint16_t PRL19; + struct { + __IO uint8_t PRLL19; + __IO uint8_t PRLH19; + }; + }; + uint8_t RESERVED57[2]; + union { + __IO uint8_t GATEC16; + stc_mft_ppg_gatec16_field_t GATEC16_f; + }; + uint8_t RESERVED58[39]; + union { + __IO uint8_t PPGC21; + stc_mft_ppg_ppgc21_field_t PPGC21_f; + }; + union { + __IO uint8_t PPGC20; + stc_mft_ppg_ppgc20_field_t PPGC20_f; + }; + uint8_t RESERVED59[2]; + union { + __IO uint8_t PPGC23; + stc_mft_ppg_ppgc23_field_t PPGC23_f; + }; + union { + __IO uint8_t PPGC22; + stc_mft_ppg_ppgc22_field_t PPGC22_f; + }; + uint8_t RESERVED60[2]; + union { + __IO uint16_t PRL20; + struct { + __IO uint8_t PRLL20; + __IO uint8_t PRLH20; + }; + }; + uint8_t RESERVED61[2]; + union { + __IO uint16_t PRL21; + struct { + __IO uint8_t PRLL21; + __IO uint8_t PRLH21; + }; + }; + uint8_t RESERVED62[2]; + union { + __IO uint16_t PRL22; + struct { + __IO uint8_t PRLL22; + __IO uint8_t PRLH22; + }; + }; + uint8_t RESERVED63[2]; + union { + __IO uint16_t PRL23; + struct { + __IO uint8_t PRLL23; + __IO uint8_t PRLH23; + }; + }; + uint8_t RESERVED64[2]; + union { + __IO uint8_t GATEC20; + stc_mft_ppg_gatec20_field_t GATEC20_f; + }; + uint8_t RESERVED65[39]; + __IO uint8_t IGBTC; + uint8_t RESERVED66[39]; +}FM4_MFT_PPG_TypeDef; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* Base Timer 0 PPG registers */ +typedef struct +{ + __IO uint16_t PRLL; + uint8_t RESERVED0[2]; + __IO uint16_t PRLH; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_ppg_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_ppg_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_ppg_tmcr2_field_t TMCR2_f; + }; +}FM4_BT_PPG_TypeDef; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* Base Timer 0 PWM registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[2]; + __IO uint16_t PDUT; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_pwm_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_pwm_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwm_tmcr2_field_t TMCR2_f; + }; +}FM4_BT_PWM_TypeDef; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* Base Timer 0 RT registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[6]; + __IO uint16_t TMR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t TMCR; + stc_bt_rt_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_rt_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_rt_tmcr2_field_t TMCR2_f; + }; +}FM4_BT_RT_TypeDef; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* Base Timer 0 PWC registers */ +typedef struct +{ + uint8_t RESERVED0[4]; + __IO uint16_t DTBF; + uint8_t RESERVED1[6]; + union { + __IO uint16_t TMCR; + stc_bt_pwc_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_pwc_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwc_tmcr2_field_t TMCR2_f; + }; +}FM4_BT_PWC_TypeDef; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 0 - channel 3 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL0123; + stc_btiosel03_btsel0123_field_t BTSEL0123_f; + }; +}FM4_BTIOSEL03_TypeDef; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 4 - channel 7 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL4567; + stc_btiosel47_btsel4567_field_t BTSEL4567_f; + }; +}FM4_BTIOSEL47_TypeDef; + +/****************************************************************************** + * BTIOSEL8B_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 8 - channel 11 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL89AB; + stc_btiosel8b_btsel89ab_field_t BTSEL89AB_f; + }; +}FM4_BTIOSEL8B_TypeDef; + +/****************************************************************************** + * BTIOSELCF_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 12 - channel 15 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSELCDEF; + stc_btioselcf_btselcdef_field_t BTSELCDEF_f; + }; +}FM4_BTIOSELCF_TypeDef; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* Software based Simulation Startup (Base Timer) register */ +typedef struct +{ + union { + __IO uint16_t BTSSSR; + stc_sbssr_btsssr_field_t BTSSSR_f; + }; +}FM4_SBSSR_TypeDef; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* Quad position and revolution counter channel 0 registers */ +typedef struct +{ + __IO uint16_t QPCR; + uint8_t RESERVED0[2]; + __IO uint16_t QRCR; + uint8_t RESERVED1[2]; + __IO uint16_t QPCCR; + uint8_t RESERVED2[2]; + __IO uint16_t QPRCR; + uint8_t RESERVED3[2]; + __IO uint16_t QMPR; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t QICR; + stc_qprc_qicr_field_t QICR_f; + }; + struct { + union { + __IO uint8_t QICRL; + stc_qprc_qicrl_field_t QICRL_f; + }; + union { + __IO uint8_t QICRH; + stc_qprc_qicrh_field_t QICRH_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t QCR; + stc_qprc_qcr_field_t QCR_f; + }; + struct { + union { + __IO uint8_t QCRL; + stc_qprc_qcrl_field_t QCRL_f; + }; + union { + __IO uint8_t QCRH; + stc_qprc_qcrh_field_t QCRH_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t QECR; + stc_qprc_qecr_field_t QECR_f; + }; +}FM4_QPRC_TypeDef; + +/****************************************************************************** + * QPRC_NF_MODULE + ******************************************************************************/ +/* Quad position and revolution counter noise filter registers */ +typedef struct +{ + union { + __IO uint8_t NFCTLA; + stc_qprc_nf_nfctla_field_t NFCTLA_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t NFCTLB; + stc_qprc_nf_nfctlb_field_t NFCTLB_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t NFRCTLZ; + stc_qprc_nf_nfrctlz_field_t NFRCTLZ_f; + }; + uint8_t RESERVED2[7]; +}FM4_QPRC_NF_TypeDef; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* 12-bit ADC unit 0 registers */ +typedef struct +{ + union { + __IO uint8_t ADSR; + stc_adc_adsr_field_t ADSR_f; + }; + union { + __IO uint8_t ADCR; + stc_adc_adcr_field_t ADCR_f; + }; + uint8_t RESERVED0[6]; + union { + __IO uint8_t SFNS; + stc_adc_sfns_field_t SFNS_f; + }; + union { + __IO uint8_t SCCR; + stc_adc_sccr_field_t SCCR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint32_t SCFD; + stc_adc_scfd_field_t SCFD_f; + }; + struct { + union { + __IO uint16_t SCFDL; + stc_adc_scfdl_field_t SCFDL_f; + }; + union { + __IO uint16_t SCFDH; + stc_adc_scfdh_field_t SCFDH_f; + }; + }; + }; + union { + union { + __IO uint16_t SCIS23; + stc_adc_scis23_field_t SCIS23_f; + }; + struct { + union { + __IO uint8_t SCIS2; + stc_adc_scis2_field_t SCIS2_f; + }; + union { + __IO uint8_t SCIS3; + stc_adc_scis3_field_t SCIS3_f; + }; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t SCIS01; + stc_adc_scis01_field_t SCIS01_f; + }; + struct { + union { + __IO uint8_t SCIS0; + stc_adc_scis0_field_t SCIS0_f; + }; + union { + __IO uint8_t SCIS1; + stc_adc_scis1_field_t SCIS1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t PFNS; + stc_adc_pfns_field_t PFNS_f; + }; + union { + __IO uint8_t PCCR; + stc_adc_pccr_field_t PCCR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint32_t PCFD; + stc_adc_pcfd_field_t PCFD_f; + }; + struct { + union { + __IO uint16_t PCFDL; + stc_adc_pcfdl_field_t PCFDL_f; + }; + union { + __IO uint16_t PCFDH; + stc_adc_pcfdh_field_t PCFDH_f; + }; + }; + }; + union { + __IO uint8_t PCIS; + stc_adc_pcis_field_t PCIS_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t CMPCR; + stc_adc_cmpcr_field_t CMPCR_f; + }; + uint8_t RESERVED6; + union { + __IO uint16_t CMPD; + stc_adc_cmpd_field_t CMPD_f; + }; + union { + union { + __IO uint16_t ADSS23; + stc_adc_adss23_field_t ADSS23_f; + }; + struct { + union { + __IO uint8_t ADSS2; + stc_adc_adss2_field_t ADSS2_f; + }; + union { + __IO uint8_t ADSS3; + stc_adc_adss3_field_t ADSS3_f; + }; + }; + }; + uint8_t RESERVED7[2]; + union { + union { + __IO uint16_t ADSS01; + stc_adc_adss01_field_t ADSS01_f; + }; + struct { + union { + __IO uint8_t ADSS0; + stc_adc_adss0_field_t ADSS0_f; + }; + union { + __IO uint8_t ADSS1; + stc_adc_adss1_field_t ADSS1_f; + }; + }; + }; + uint8_t RESERVED8[2]; + union { + union { + __IO uint16_t ADST01; + stc_adc_adst01_field_t ADST01_f; + }; + struct { + union { + __IO uint8_t ADST1; + stc_adc_adst1_field_t ADST1_f; + }; + union { + __IO uint8_t ADST0; + stc_adc_adst0_field_t ADST0_f; + }; + }; + }; + uint8_t RESERVED9[2]; + union { + __IO uint8_t ADCT; + stc_adc_adct_field_t ADCT_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PRTSL; + stc_adc_prtsl_field_t PRTSL_f; + }; + union { + __IO uint8_t SCTSL; + stc_adc_sctsl_field_t SCTSL_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t ADCEN; + stc_adc_adcen_field_t ADCEN_f; + }; + uint8_t RESERVED12[2]; + uint32_t OFFESET; + union { + __IO uint8_t WCMRCOT; + stc_adc_wcmrcot_field_t WCMRCOT_f; + }; + uint8_t RESERVED13[3]; + union { + __IO uint8_t WCMRCIF; + stc_adc_wcmrcif_field_t WCMRCIF_f; + }; + uint8_t RESERVED14[3]; + union { + __IO uint8_t WCMPCR; + stc_adc_wcmpcr_field_t WCMPCR_f; + }; + union { + __IO uint8_t WCMPSR; + stc_adc_wcmpsr_field_t WCMPSR_f; + }; + uint8_t RESERVED15[2]; + union { + __IO uint16_t WCMPDL; + stc_adc_wcmpdl_field_t WCMPDL_f; + }; + union { + __IO uint16_t WCMPDH; + stc_adc_wcmpdh_field_t WCMPDH_f; + }; +}FM4_ADC_TypeDef; + +/****************************************************************************** + * DAC_MODULE + ******************************************************************************/ + +typedef struct +{ + union { + __IO uint8_t DACR; + stc_dacr_field_t DACR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint16_t DADR; + stc_dadr_field_t DADR_f; + }; +}FM4_DAC_TypeDef; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CR trimming registers */ +typedef struct +{ + union { + __IO uint8_t MCR_PSR; + stc_crtrim_mcr_psr_field_t MCR_PSR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint16_t MCR_FTRM; + stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t MCR_TTRM; + stc_crtrim_mcr_ttrm_field_t MCR_TTRM_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint32_t MCR_RLR; + stc_crtrim_mcr_rlr_field_t MCR_RLR_f; + }; +}FM4_CRTRIM_TypeDef; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* External interrupt registers */ +typedef struct +{ + union { + __IO uint32_t ENIR; + stc_exti_enir_field_t ENIR_f; + }; + union { + __IO uint32_t EIRR; + stc_exti_eirr_field_t EIRR_f; + }; + union { + __IO uint32_t EICL; + stc_exti_eicl_field_t EICL_f; + }; + union { + __IO uint32_t ELVR; + stc_exti_elvr_field_t ELVR_f; + }; + union { + __IO uint32_t ELVR1; + stc_exti_elvr1_field_t ELVR1_f; + }; + union { + __IO uint8_t NMIRR; + stc_exti_nmirr_field_t NMIRR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t NMICL; + stc_exti_nmicl_field_t NMICL_f; + }; +}FM4_EXTI_TypeDef; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* Interrupt request read registers */ +typedef struct +{ + union { + __IO uint32_t DRQSEL; + stc_intreq_drqsel_field_t DRQSEL_f; + }; + uint8_t RESERVED0[12]; + union { + __IO uint8_t ODDPKS; + stc_intreq_oddpks_field_t ODDPKS_f; + }; + uint8_t RESERVED1[255]; + union { + __IO uint32_t IRQ003SEL; + stc_intreq_irq003sel_field_t IRQ003SEL_f; + }; + union { + __IO uint32_t IRQ004SEL; + stc_intreq_irq004sel_field_t IRQ004SEL_f; + }; + union { + __IO uint32_t IRQ005SEL; + stc_intreq_irq005sel_field_t IRQ005SEL_f; + }; + union { + __IO uint32_t IRQ006SEL; + stc_intreq_irq006sel_field_t IRQ006SEL_f; + }; + union { + __IO uint32_t IRQ007SEL; + stc_intreq_irq007sel_field_t IRQ007SEL_f; + }; + union { + __IO uint32_t IRQ008SEL; + stc_intreq_irq008sel_field_t IRQ008SEL_f; + }; + union { + __IO uint32_t IRQ009SEL; + stc_intreq_irq009sel_field_t IRQ009SEL_f; + }; + union { + __IO uint32_t IRQ010SEL; + stc_intreq_irq010sel_field_t IRQ010SEL_f; + }; + uint8_t RESERVED9[208]; + union { + __IO uint32_t EXC02MON; + stc_intreq_exc02mon_field_t EXC02MON_f; + }; + union { + __IO uint32_t IRQ000MON; + stc_intreq_irq000mon_field_t IRQ000MON_f; + }; + union { + __IO uint32_t IRQ001MON; + stc_intreq_irq001mon_field_t IRQ001MON_f; + }; + union { + __IO uint32_t IRQ002MON; + stc_intreq_irq002mon_field_t IRQ002MON_f; + }; + union { + __IO uint32_t IRQ003MON; + stc_intreq_irq003mon_field_t IRQ003MON_f; + }; + union { + __IO uint32_t IRQ004MON; + stc_intreq_irq004mon_field_t IRQ004MON_f; + }; + union { + __IO uint32_t IRQ005MON; + stc_intreq_irq005mon_field_t IRQ005MON_f; + }; + union { + __IO uint32_t IRQ006MON; + stc_intreq_irq006mon_field_t IRQ006MON_f; + }; + union { + __IO uint32_t IRQ007MON; + stc_intreq_irq007mon_field_t IRQ007MON_f; + }; + union { + __IO uint32_t IRQ008MON; + stc_intreq_irq008mon_field_t IRQ008MON_f; + }; + union { + __IO uint32_t IRQ009MON; + stc_intreq_irq009mon_field_t IRQ009MON_f; + }; + union { + __IO uint32_t IRQ010MON; + stc_intreq_irq010mon_field_t IRQ010MON_f; + }; + union { + __IO uint32_t IRQ011MON; + stc_intreq_irq011mon_field_t IRQ011MON_f; + }; + union { + __IO uint32_t IRQ012MON; + stc_intreq_irq012mon_field_t IRQ012MON_f; + }; + union { + __IO uint32_t IRQ013MON; + stc_intreq_irq013mon_field_t IRQ013MON_f; + }; + union { + __IO uint32_t IRQ014MON; + stc_intreq_irq014mon_field_t IRQ014MON_f; + }; + union { + __IO uint32_t IRQ015MON; + stc_intreq_irq015mon_field_t IRQ015MON_f; + }; + union { + __IO uint32_t IRQ016MON; + stc_intreq_irq016mon_field_t IRQ016MON_f; + }; + union { + __IO uint32_t IRQ017MON; + stc_intreq_irq017mon_field_t IRQ017MON_f; + }; + union { + __IO uint32_t IRQ018MON; + stc_intreq_irq018mon_field_t IRQ018MON_f; + }; + union { + __IO uint32_t IRQ019MON; + stc_intreq_irq019mon_field_t IRQ019MON_f; + }; + union { + __IO uint32_t IRQ020MON; + stc_intreq_irq020mon_field_t IRQ020MON_f; + }; + union { + __IO uint32_t IRQ021MON; + stc_intreq_irq021mon_field_t IRQ021MON_f; + }; + union { + __IO uint32_t IRQ022MON; + stc_intreq_irq022mon_field_t IRQ022MON_f; + }; + union { + __IO uint32_t IRQ023MON; + stc_intreq_irq023mon_field_t IRQ023MON_f; + }; + union { + __IO uint32_t IRQ024MON; + stc_intreq_irq024mon_field_t IRQ024MON_f; + }; + union { + __IO uint32_t IRQ025MON; + stc_intreq_irq025mon_field_t IRQ025MON_f; + }; + union { + __IO uint32_t IRQ026MON; + stc_intreq_irq026mon_field_t IRQ026MON_f; + }; + union { + __IO uint32_t IRQ027MON; + stc_intreq_irq027mon_field_t IRQ027MON_f; + }; + union { + __IO uint32_t IRQ028MON; + stc_intreq_irq028mon_field_t IRQ028MON_f; + }; + union { + __IO uint32_t IRQ029MON; + stc_intreq_irq029mon_field_t IRQ029MON_f; + }; + union { + __IO uint32_t IRQ030MON; + stc_intreq_irq030mon_field_t IRQ030MON_f; + }; + union { + __IO uint32_t IRQ031MON; + stc_intreq_irq031mon_field_t IRQ031MON_f; + }; + union { + __IO uint32_t IRQ032MON; + stc_intreq_irq032mon_field_t IRQ032MON_f; + }; + union { + __IO uint32_t IRQ033MON; + stc_intreq_irq033mon_field_t IRQ033MON_f; + }; + union { + __IO uint32_t IRQ034MON; + stc_intreq_irq034mon_field_t IRQ034MON_f; + }; + union { + __IO uint32_t IRQ035MON; + stc_intreq_irq035mon_field_t IRQ035MON_f; + }; + union { + __IO uint32_t IRQ036MON; + stc_intreq_irq036mon_field_t IRQ036MON_f; + }; + union { + __IO uint32_t IRQ037MON; + stc_intreq_irq037mon_field_t IRQ037MON_f; + }; + union { + __IO uint32_t IRQ038MON; + stc_intreq_irq038mon_field_t IRQ038MON_f; + }; + union { + __IO uint32_t IRQ039MON; + stc_intreq_irq039mon_field_t IRQ039MON_f; + }; + union { + __IO uint32_t IRQ040MON; + stc_intreq_irq040mon_field_t IRQ040MON_f; + }; + union { + __IO uint32_t IRQ041MON; + stc_intreq_irq041mon_field_t IRQ041MON_f; + }; + union { + __IO uint32_t IRQ042MON; + stc_intreq_irq042mon_field_t IRQ042MON_f; + }; + union { + __IO uint32_t IRQ043MON; + stc_intreq_irq043mon_field_t IRQ043MON_f; + }; + union { + __IO uint32_t IRQ044MON; + stc_intreq_irq044mon_field_t IRQ044MON_f; + }; + union { + __IO uint32_t IRQ045MON; + stc_intreq_irq045mon_field_t IRQ045MON_f; + }; + union { + __IO uint32_t IRQ046MON; + stc_intreq_irq046mon_field_t IRQ046MON_f; + }; + union { + __IO uint32_t IRQ047MON; + stc_intreq_irq047mon_field_t IRQ047MON_f; + }; + union { + __IO uint32_t IRQ048MON; + stc_intreq_irq048mon_field_t IRQ048MON_f; + }; + union { + __IO uint32_t IRQ049MON; + stc_intreq_irq049mon_field_t IRQ049MON_f; + }; + union { + __IO uint32_t IRQ050MON; + stc_intreq_irq050mon_field_t IRQ050MON_f; + }; + union { + __IO uint32_t IRQ051MON; + stc_intreq_irq051mon_field_t IRQ051MON_f; + }; + union { + __IO uint32_t IRQ052MON; + stc_intreq_irq052mon_field_t IRQ052MON_f; + }; + union { + __IO uint32_t IRQ053MON; + stc_intreq_irq053mon_field_t IRQ053MON_f; + }; + union { + __IO uint32_t IRQ054MON; + stc_intreq_irq054mon_field_t IRQ054MON_f; + }; + union { + __IO uint32_t IRQ055MON; + stc_intreq_irq055mon_field_t IRQ055MON_f; + }; + union { + __IO uint32_t IRQ056MON; + stc_intreq_irq056mon_field_t IRQ056MON_f; + }; + union { + __IO uint32_t IRQ057MON; + stc_intreq_irq057mon_field_t IRQ057MON_f; + }; + union { + __IO uint32_t IRQ058MON; + stc_intreq_irq058mon_field_t IRQ058MON_f; + }; + union { + __IO uint32_t IRQ059MON; + stc_intreq_irq059mon_field_t IRQ059MON_f; + }; + union { + __IO uint32_t IRQ060MON; + stc_intreq_irq060mon_field_t IRQ060MON_f; + }; + union { + __IO uint32_t IRQ061MON; + stc_intreq_irq061mon_field_t IRQ061MON_f; + }; + union { + __IO uint32_t IRQ062MON; + stc_intreq_irq062mon_field_t IRQ062MON_f; + }; + union { + __IO uint32_t IRQ063MON; + stc_intreq_irq063mon_field_t IRQ063MON_f; + }; + union { + __IO uint32_t IRQ064MON; + stc_intreq_irq064mon_field_t IRQ064MON_f; + }; + union { + __IO uint32_t IRQ065MON; + stc_intreq_irq065mon_field_t IRQ065MON_f; + }; + union { + __IO uint32_t IRQ066MON; + stc_intreq_irq066mon_field_t IRQ066MON_f; + }; + union { + __IO uint32_t IRQ067MON; + stc_intreq_irq067mon_field_t IRQ067MON_f; + }; + union { + __IO uint32_t IRQ068MON; + stc_intreq_irq068mon_field_t IRQ068MON_f; + }; + union { + __IO uint32_t IRQ069MON; + stc_intreq_irq069mon_field_t IRQ069MON_f; + }; + union { + __IO uint32_t IRQ070MON; + stc_intreq_irq070mon_field_t IRQ070MON_f; + }; + union { + __IO uint32_t IRQ071MON; + stc_intreq_irq071mon_field_t IRQ071MON_f; + }; + union { + __IO uint32_t IRQ072MON; + stc_intreq_irq072mon_field_t IRQ072MON_f; + }; + union { + __IO uint32_t IRQ073MON; + stc_intreq_irq073mon_field_t IRQ073MON_f; + }; + union { + __IO uint32_t IRQ074MON; + stc_intreq_irq074mon_field_t IRQ074MON_f; + }; + union { + __IO uint32_t IRQ075MON; + stc_intreq_irq075mon_field_t IRQ075MON_f; + }; + union { + __IO uint32_t IRQ076MON; + stc_intreq_irq076mon_field_t IRQ076MON_f; + }; + union { + __IO uint32_t IRQ077MON; + stc_intreq_irq077mon_field_t IRQ077MON_f; + }; + union { + __IO uint32_t IRQ078MON; + stc_intreq_irq078mon_field_t IRQ078MON_f; + }; + union { + __IO uint32_t IRQ079MON; + stc_intreq_irq079mon_field_t IRQ079MON_f; + }; + union { + __IO uint32_t IRQ080MON; + stc_intreq_irq080mon_field_t IRQ080MON_f; + }; + union { + __IO uint32_t IRQ081MON; + stc_intreq_irq081mon_field_t IRQ081MON_f; + }; + union { + __IO uint32_t IRQ082MON; + stc_intreq_irq082mon_field_t IRQ082MON_f; + }; + union { + __IO uint32_t IRQ083MON; + stc_intreq_irq083mon_field_t IRQ083MON_f; + }; + union { + __IO uint32_t IRQ084MON; + stc_intreq_irq084mon_field_t IRQ084MON_f; + }; + union { + __IO uint32_t IRQ085MON; + stc_intreq_irq085mon_field_t IRQ085MON_f; + }; + union { + __IO uint32_t IRQ086MON; + stc_intreq_irq086mon_field_t IRQ086MON_f; + }; + union { + __IO uint32_t IRQ087MON; + stc_intreq_irq087mon_field_t IRQ087MON_f; + }; + union { + __IO uint32_t IRQ088MON; + stc_intreq_irq088mon_field_t IRQ088MON_f; + }; + union { + __IO uint32_t IRQ089MON; + stc_intreq_irq089mon_field_t IRQ089MON_f; + }; + union { + __IO uint32_t IRQ090MON; + stc_intreq_irq090mon_field_t IRQ090MON_f; + }; + union { + __IO uint32_t IRQ091MON; + stc_intreq_irq091mon_field_t IRQ091MON_f; + }; + union { + __IO uint32_t IRQ092MON; + stc_intreq_irq092mon_field_t IRQ092MON_f; + }; + union { + __IO uint32_t IRQ093MON; + stc_intreq_irq093mon_field_t IRQ093MON_f; + }; + union { + __IO uint32_t IRQ094MON; + stc_intreq_irq094mon_field_t IRQ094MON_f; + }; + union { + __IO uint32_t IRQ095MON; + stc_intreq_irq095mon_field_t IRQ095MON_f; + }; + union { + __IO uint32_t IRQ096MON; + stc_intreq_irq096mon_field_t IRQ096MON_f; + }; + union { + __IO uint32_t IRQ097MON; + stc_intreq_irq097mon_field_t IRQ097MON_f; + }; + union { + __IO uint32_t IRQ098MON; + stc_intreq_irq098mon_field_t IRQ098MON_f; + }; + union { + __IO uint32_t IRQ099MON; + stc_intreq_irq099mon_field_t IRQ099MON_f; + }; + union { + __IO uint32_t IRQ100MON; + stc_intreq_irq100mon_field_t IRQ100MON_f; + }; + union { + __IO uint32_t IRQ101MON; + stc_intreq_irq101mon_field_t IRQ101MON_f; + }; + union { + __IO uint32_t IRQ102MON; + stc_intreq_irq102mon_field_t IRQ102MON_f; + }; + union { + __IO uint32_t IRQ103MON; + stc_intreq_irq103mon_field_t IRQ103MON_f; + }; + union { + __IO uint32_t IRQ104MON; + stc_intreq_irq104mon_field_t IRQ104MON_f; + }; + union { + __IO uint32_t IRQ105MON; + stc_intreq_irq105mon_field_t IRQ105MON_f; + }; + union { + __IO uint32_t IRQ106MON; + stc_intreq_irq106mon_field_t IRQ106MON_f; + }; + union { + __IO uint32_t IRQ107MON; + stc_intreq_irq107mon_field_t IRQ107MON_f; + }; + union { + __IO uint32_t IRQ108MON; + stc_intreq_irq108mon_field_t IRQ108MON_f; + }; + union { + __IO uint32_t IRQ109MON; + stc_intreq_irq109mon_field_t IRQ109MON_f; + }; + union { + __IO uint32_t IRQ110MON; + stc_intreq_irq110mon_field_t IRQ110MON_f; + }; + union { + __IO uint32_t IRQ111MON; + stc_intreq_irq111mon_field_t IRQ111MON_f; + }; + __IO uint32_t IRQ112MON; + union { + __IO uint32_t IRQ113MON; + stc_intreq_irq113mon_field_t IRQ113MON_f; + }; + union { + __IO uint32_t IRQ114MON; + stc_intreq_irq114mon_field_t IRQ114MON_f; + }; + __IO uint32_t IRQ115MON; + __IO uint32_t IRQ116MON; + __IO uint32_t IRQ117MON; + union { + __IO uint32_t IRQ118MON; + stc_intreq_irq118mon_field_t IRQ118MON_f; + }; + union { + __IO uint32_t IRQ119MON; + stc_intreq_irq119mon_field_t IRQ119MON_f; + }; + union { + __IO uint32_t IRQ120MON; + stc_intreq_irq120mon_field_t IRQ120MON_f; + }; + union { + __IO uint32_t IRQ121MON; + stc_intreq_irq121mon_field_t IRQ121MON_f; + }; + union { + __IO uint32_t IRQ122MON; + stc_intreq_irq122mon_field_t IRQ122MON_f; + }; + union { + __IO uint32_t IRQ123MON; + stc_intreq_irq123mon_field_t IRQ123MON_f; + }; + union { + __IO uint32_t IRQ124MON; + stc_intreq_irq124mon_field_t IRQ124MON_f; + }; + union { + __IO uint32_t IRQ125MON; + stc_intreq_irq125mon_field_t IRQ125MON_f; + }; + union { + __IO uint32_t IRQ126MON; + stc_intreq_irq126mon_field_t IRQ126MON_f; + }; + union { + __IO uint32_t IRQ127MON; + stc_intreq_irq127mon_field_t IRQ127MON_f; + }; +}FM4_INTREQ_TypeDef; + +/****************************************************************************** + * IRQSEL_MODULE +******************************************************************************/ +typedef struct +{ + union { + __IO uint32_t IRQ03SEL; + stc_irqsel_field_t IRQ03SEL_f; + }; + union { + __IO uint32_t IRQ04SEL; + stc_irqsel_field_t IRQ04SEL_f; + }; + union { + __IO uint32_t IRQ05SEL; + stc_irqsel_field_t IRQ05SEL_f; + }; + union { + __IO uint32_t IRQ06SEL; + stc_irqsel_field_t IRQ06SEL_f; + }; + union { + __IO uint32_t IRQ07SEL; + stc_irqsel_field_t IRQ07SEL_f; + }; + union { + __IO uint32_t IRQ08SEL; + stc_irqsel_field_t IRQ08SEL_f; + }; + union { + __IO uint32_t IRQ09SEL; + stc_irqsel_field_t IRQ09SEL_f; + }; + union { + __IO uint32_t IRQ10SEL; + stc_irqsel_field_t IRQ10SEL_f; + }; +} FM4_IRQSEL_TypeDef; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* General purpose I/O registers */ +typedef struct +{ + union { + __IO uint32_t PFR0; + stc_gpio_pfr0_field_t PFR0_f; + }; + union { + __IO uint32_t PFR1; + stc_gpio_pfr1_field_t PFR1_f; + }; + union { + __IO uint32_t PFR2; + stc_gpio_pfr2_field_t PFR2_f; + }; + union { + __IO uint32_t PFR3; + stc_gpio_pfr3_field_t PFR3_f; + }; + union { + __IO uint32_t PFR4; + stc_gpio_pfr4_field_t PFR4_f; + }; + union { + __IO uint32_t PFR5; + stc_gpio_pfr5_field_t PFR5_f; + }; + union { + __IO uint32_t PFR6; + stc_gpio_pfr6_field_t PFR6_f; + }; + union { + __IO uint32_t PFR7; + stc_gpio_pfr7_field_t PFR7_f; + }; + union { + __IO uint32_t PFR8; + stc_gpio_pfr8_field_t PFR8_f; + }; + uint8_t RESERVED8[20]; + union { + __IO uint32_t PFRE; + stc_gpio_pfre_field_t PFRE_f; + }; + uint8_t RESERVED9[196]; + union { + __IO uint32_t PCR0; + stc_gpio_pcr0_field_t PCR0_f; + }; + union { + __IO uint32_t PCR1; + stc_gpio_pcr1_field_t PCR1_f; + }; + union { + __IO uint32_t PCR2; + stc_gpio_pcr2_field_t PCR2_f; + }; + union { + __IO uint32_t PCR3; + stc_gpio_pcr3_field_t PCR3_f; + }; + union { + __IO uint32_t PCR4; + stc_gpio_pcr4_field_t PCR4_f; + }; + union { + __IO uint32_t PCR5; + stc_gpio_pcr5_field_t PCR5_f; + }; + union { + __IO uint32_t PCR6; + stc_gpio_pcr6_field_t PCR6_f; + }; + union { + __IO uint32_t PCR7; + stc_gpio_pcr7_field_t PCR7_f; + }; + union { + __IO uint32_t PCR8; + stc_gpio_pcr8_field_t PCR8_f; + }; + uint8_t RESERVED18[20]; + union { + __IO uint32_t PCRE; + stc_gpio_pcre_field_t PCRE_f; + }; + uint8_t RESERVED19[196]; + union { + __IO uint32_t DDR0; + stc_gpio_ddr0_field_t DDR0_f; + }; + union { + __IO uint32_t DDR1; + stc_gpio_ddr1_field_t DDR1_f; + }; + union { + __IO uint32_t DDR2; + stc_gpio_ddr2_field_t DDR2_f; + }; + union { + __IO uint32_t DDR3; + stc_gpio_ddr3_field_t DDR3_f; + }; + union { + __IO uint32_t DDR4; + stc_gpio_ddr4_field_t DDR4_f; + }; + union { + __IO uint32_t DDR5; + stc_gpio_ddr5_field_t DDR5_f; + }; + union { + __IO uint32_t DDR6; + stc_gpio_ddr6_field_t DDR6_f; + }; + union { + __IO uint32_t DDR7; + stc_gpio_ddr7_field_t DDR7_f; + }; + union { + __IO uint32_t DDR8; + stc_gpio_ddr8_field_t DDR8_f; + }; + uint8_t RESERVED28[20]; + union { + __IO uint32_t DDRE; + stc_gpio_ddre_field_t DDRE_f; + }; + uint8_t RESERVED29[196]; + union { + __IO uint32_t PDIR0; + stc_gpio_pdir0_field_t PDIR0_f; + }; + union { + __IO uint32_t PDIR1; + stc_gpio_pdir1_field_t PDIR1_f; + }; + union { + __IO uint32_t PDIR2; + stc_gpio_pdir2_field_t PDIR2_f; + }; + union { + __IO uint32_t PDIR3; + stc_gpio_pdir3_field_t PDIR3_f; + }; + union { + __IO uint32_t PDIR4; + stc_gpio_pdir4_field_t PDIR4_f; + }; + union { + __IO uint32_t PDIR5; + stc_gpio_pdir5_field_t PDIR5_f; + }; + union { + __IO uint32_t PDIR6; + stc_gpio_pdir6_field_t PDIR6_f; + }; + union { + __IO uint32_t PDIR7; + stc_gpio_pdir7_field_t PDIR7_f; + }; + union { + __IO uint32_t PDIR8; + stc_gpio_pdir8_field_t PDIR8_f; + }; + uint8_t RESERVED38[20]; + union { + __IO uint32_t PDIRE; + stc_gpio_pdire_field_t PDIRE_f; + }; + uint8_t RESERVED39[196]; + union { + __IO uint32_t PDOR0; + stc_gpio_pdor0_field_t PDOR0_f; + }; + union { + __IO uint32_t PDOR1; + stc_gpio_pdor1_field_t PDOR1_f; + }; + union { + __IO uint32_t PDOR2; + stc_gpio_pdor2_field_t PDOR2_f; + }; + union { + __IO uint32_t PDOR3; + stc_gpio_pdor3_field_t PDOR3_f; + }; + union { + __IO uint32_t PDOR4; + stc_gpio_pdor4_field_t PDOR4_f; + }; + union { + __IO uint32_t PDOR5; + stc_gpio_pdor5_field_t PDOR5_f; + }; + union { + __IO uint32_t PDOR6; + stc_gpio_pdor6_field_t PDOR6_f; + }; + union { + __IO uint32_t PDOR7; + stc_gpio_pdor7_field_t PDOR7_f; + }; + union { + __IO uint32_t PDOR8; + stc_gpio_pdor8_field_t PDOR8_f; + }; + uint8_t RESERVED48[20]; + union { + __IO uint32_t PDORE; + stc_gpio_pdore_field_t PDORE_f; + }; + uint8_t RESERVED49[196]; + union { + __IO uint32_t ADE; + stc_gpio_ade_field_t ADE_f; + }; + uint8_t RESERVED50[124]; + union { + __IO uint32_t SPSR; + stc_gpio_spsr_field_t SPSR_f; + }; + uint8_t RESERVED51[124]; + union { + __IO uint32_t EPFR00; + stc_gpio_epfr00_field_t EPFR00_f; + }; + union { + __IO uint32_t EPFR01; + stc_gpio_epfr01_field_t EPFR01_f; + }; + union { + __IO uint32_t EPFR02; + stc_gpio_epfr02_field_t EPFR02_f; + }; + union { + __IO uint32_t EPFR03; + stc_gpio_epfr03_field_t EPFR03_f; + }; + union { + __IO uint32_t EPFR04; + stc_gpio_epfr04_field_t EPFR04_f; + }; + union { + __IO uint32_t EPFR05; + stc_gpio_epfr05_field_t EPFR05_f; + }; + union { + __IO uint32_t EPFR06; + stc_gpio_epfr06_field_t EPFR06_f; + }; + union { + __IO uint32_t EPFR07; + stc_gpio_epfr07_field_t EPFR07_f; + }; + union { + __IO uint32_t EPFR08; + stc_gpio_epfr08_field_t EPFR08_f; + }; + union { + __IO uint32_t EPFR09; + stc_gpio_epfr09_field_t EPFR09_f; + }; + union { + __IO uint32_t EPFR10; + stc_gpio_epfr10_field_t EPFR10_f; + }; + union { + __IO uint32_t EPFR11; + stc_gpio_epfr11_field_t EPFR11_f; + }; + union { + __IO uint32_t EPFR12; + stc_gpio_epfr12_field_t EPFR12_f; + }; + union { + __IO uint32_t EPFR13; + stc_gpio_epfr13_field_t EPFR13_f; + }; + union { + __IO uint32_t EPFR14; + stc_gpio_epfr14_field_t EPFR14_f; + }; + union { + __IO uint32_t EPFR15; + stc_gpio_epfr15_field_t EPFR15_f; + }; + union { + __IO uint32_t EPFR16; + stc_gpio_epfr16_field_t EPFR16_f; + }; + union { + __IO uint32_t EPFR17; + stc_gpio_epfr17_field_t EPFR17_f; + }; + union { + __IO uint32_t EPFR18; + stc_gpio_epfr18_field_t EPFR18_f; + }; + __IO uint32_t EPFR19; + union { + __IO uint32_t EPFR20; + stc_gpio_epfr20_field_t EPFR20_f; + }; + uint8_t RESERVED72[172]; + union { + __IO uint32_t PZR0; + stc_gpio_pzr0_field_t PZR0_f; + }; + union { + __IO uint32_t PZR1; + stc_gpio_pzr1_field_t PZR1_f; + }; + union { + __IO uint32_t PZR2; + stc_gpio_pzr2_field_t PZR2_f; + }; + union { + __IO uint32_t PZR3; + stc_gpio_pzr3_field_t PZR3_f; + }; + union { + __IO uint32_t PZR4; + stc_gpio_pzr4_field_t PZR4_f; + }; + union { + __IO uint32_t PZR5; + stc_gpio_pzr5_field_t PZR5_f; + }; + union { + __IO uint32_t PZR6; + stc_gpio_pzr6_field_t PZR6_f; + }; + union { + __IO uint32_t PZR7; + stc_gpio_pzr7_field_t PZR7_f; + }; + union { + __IO uint32_t PZR8; + stc_gpio_pzr8_field_t PZR8_f; + }; + uint8_t RESERVED81[20]; + union { + __IO uint32_t PZRE; + stc_gpio_pzre_field_t PZRE_f; + }; +}FM4_GPIO_TypeDef; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* Low voltage detection registers */ +typedef struct +{ + union { + __IO uint8_t LVD_CTL; + stc_lvd_lvd_ctl_field_t LVD_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t LVD_STR; + stc_lvd_lvd_str_field_t LVD_STR_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t LVD_CLR; + stc_lvd_lvd_clr_field_t LVD_CLR_f; + }; + uint8_t RESERVED2[3]; + __IO uint32_t LVD_RLR; + union { + __IO uint8_t LVD_STR2; + stc_lvd_lvd_str2_field_t LVD_STR2_f; + }; +}FM4_LVD_TypeDef; + +/****************************************************************************** + * DS_MODULE + ******************************************************************************/ +/* Deep standby mode registers */ +typedef struct +{ + uint8_t RESERVED10[4]; + union { + __IO uint8_t RCK_CTL; + stc_ds_rck_ctl_field_t RCK_CTL_f; + }; + uint8_t RESERVED0[1787]; + union { + __IO uint8_t PMD_CTL; + stc_ds_pmd_ctl_field_t PMD_CTL_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t WRFSR; + stc_ds_wrfsr_field_t WRFSR_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint16_t WIFSR; + stc_ds_wifsr_field_t WIFSR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t WIER; + stc_ds_wier_field_t WIER_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint8_t WILVR; + stc_ds_wilvr_field_t WILVR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t DSRAMR; + stc_ds_dsramr_field_t DSRAMR_f; + }; + uint8_t RESERVED6[235]; + __IO uint8_t BUR01; + __IO uint8_t BUR02; + __IO uint8_t BUR03; + __IO uint8_t BUR04; + __IO uint8_t BUR05; + __IO uint8_t BUR06; + __IO uint8_t BUR07; + __IO uint8_t BUR08; + __IO uint8_t BUR09; + __IO uint8_t BUR10; + __IO uint8_t BUR11; + __IO uint8_t BUR12; + __IO uint8_t BUR13; + __IO uint8_t BUR14; + __IO uint8_t BUR15; + __IO uint8_t BUR16; +}FM4_DS_TypeDef; + +/****************************************************************************** + * USBCLK + ******************************************************************************/ +/* USB clock registers */ +/* +typedef struct +{ + union { + __IO uint8_t UCCR; + stc_usbclk_uccr_field_t UCCR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t UPCR1; + stc_usbclk_upcr1_field_t UPCR1_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t UPCR2; + stc_usbclk_upcr2_field_t UPCR2_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint8_t UPCR3; + stc_usbclk_upcr3_field_t UPCR3_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t UPCR4; + stc_usbclk_upcr4_field_t UPCR4_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t UP_STR; + stc_usbclk_up_str_field_t UP_STR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t UPINT_ENR; + stc_usbclk_upint_enr_field_t UPINT_ENR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t UPINT_CLR; + stc_usbclk_upint_clr_field_t UPINT_CLR_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint8_t UPINT_STR; + stc_usbclk_upint_str_field_t UPINT_STR_f; + }; + uint8_t RESERVED8[15]; + union { + __IO uint8_t USBEN; + stc_usbclk_usben_field_t USBEN_f; + }; +}FM4_USBCLK_TypeDef; +*/ + +/****************************************************************************** + * CANPRE_MODULE + ******************************************************************************/ +/* CAN prescaler register */ +typedef struct +{ + union { + __IO uint8_t CANPRE; + stc_canpre_canpre_field_t CANPRE_f; + }; +}FM4_CANPRE_TypeDef; + +/****************************************************************************** + * USBETHERNETCLK + ******************************************************************************/ +/* USB Ethernet clock registers */ +typedef struct +{ + union { + __IO uint8_t UCCR; + stc_usbethernetclk_uccr_field_t UCCR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t UPCR1; + stc_usbethernetclk_upcr1_field_t UPCR1_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t UPCR2; + stc_usbethernetclk_upcr2_field_t UPCR2_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint8_t UPCR3; + stc_usbethernetclk_upcr3_field_t UPCR3_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t UPCR4; + stc_usbethernetclk_upcr4_field_t UPCR4_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t UP_STR; + stc_usbethernetclk_up_str_field_t UP_STR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t UPINT_ENR; + stc_usbethernetclk_upint_enr_field_t UPINT_ENR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t UPINT_CLR; + stc_usbethernetclk_upint_clr_field_t UPINT_CLR_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint8_t UPINT_STR; + stc_usbethernetclk_upint_str_field_t UPINT_STR_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t UPCR5; + stc_usbethernetclk_upcr5_field_t UPCR5_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t UPCR6; + stc_usbethernetclk_upcr6_field_t UPCR6_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t UPCR7; + stc_usbethernetclk_upcr7_field_t UPCR7_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t USBEN0; + stc_usbethernetclk_usben0_field_t USBEN0_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint8_t USBEN1; + stc_usbethernetclk_usben1_field_t USBEN1_f; + }; +}FM4_USBETHERNETCLK_TypeDef; + +/****************************************************************************** + * MFS_MODULE + ******************************************************************************/ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs_scr_field_t SCR_f; + __IO uint8_t IBCR; + stc_mfs_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs_escr_field_t ESCR_f; + __IO uint8_t IBSR; + stc_mfs_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint32_t RDR32; + __IO uint32_t TDR32; + struct { + union { + __IO uint16_t RDR; + stc_mfs_uart_rdr_field_t RDR_f; + }; + uint8_t RESERVED2[2]; + }; + struct { + union { + __IO uint16_t TDR; + stc_mfs_uart_tdr_field_t TDR_f; + }; + uint8_t RESERVED3[2]; + }; + }; + union { + union { + __IO uint16_t BGR; + stc_mfs_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + __IO uint8_t ISBA; + stc_mfs_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs_i2c_ismk_field_t ISMK_f; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t FCR; + stc_mfs_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs_fbyte2_field_t FBYTE2_f; + }; + }; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t SCSTR10; + stc_mfs_csio_scstr10_field_t SCSTR10_f; + struct { + union { + __IO uint8_t SCSTR0; + stc_mfs_csio_scstr0_field_t SCSTR0_f; + __IO uint8_t NFCR; + stc_mfs_i2c_nfcr_field_t NFCR_f; + }; + union { + __IO uint8_t SCSTR1; + stc_mfs_csio_scstr1_field_t SCSTR1_f; + __IO uint8_t EIBCR; + stc_mfs_i2c_eibcr_field_t EIBCR_f; + }; + }; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t SCSTR32; + stc_mfs_csio_scstr32_field_t SCSTR32_f; + struct { + union { + __IO uint8_t SCSTR2; + stc_mfs_csio_scstr2_field_t SCSTR2_f; + }; + union { + __IO uint8_t SCSTR3; + stc_mfs_csio_scstr3_field_t SCSTR3_f; + }; + }; + }; + uint8_t RESERVED9[2]; + union { + __IO uint16_t SACSR; + stc_mfs_csio_sacsr_field_t SACSR_f; + struct { + union { + __IO uint8_t SACSR0; + stc_mfs_csio_sacsr0_field_t SACSR0_f; + }; + union { + __IO uint8_t SACSR1; + stc_mfs_csio_sacsr1_field_t SACSR1_f; + }; + }; + }; + uint8_t RESERVED10[2]; + union { + __IO uint16_t STMR; + stc_mfs_csio_stmr_field_t STMR_f; + struct { + union { + __IO uint8_t STMR0; + stc_mfs_csio_stmr0_field_t STMR0_f; + }; + union { + __IO uint8_t STMR1; + stc_mfs_csio_stmr1_field_t STMR1_f; + }; + }; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t STMCR; + stc_mfs_csio_stmcr_field_t STMCR_f; + struct { + union { + __IO uint8_t STMCR0; + stc_mfs_csio_stmcr0_field_t STMCR0_f; + }; + union { + __IO uint8_t STMCR1; + stc_mfs_csio_stmcr1_field_t STMCR1_f; + }; + }; + }; + uint8_t RESERVED12[2]; + union { + __IO uint16_t SCSCR; + stc_mfs_csio_scscr_field_t SCSCR_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint16_t SCSFR; + struct { + __IO uint8_t SCSFR0; + __IO uint8_t SCSFR1; + }; + }; + uint8_t RESERVED14[2]; + __IO uint8_t SCSFR2; + uint8_t RESERVED15[3]; + union { + __IO uint16_t TBYTE10; + struct { + __IO uint8_t TBYTE0; + __IO uint8_t TBYTE1; + }; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t TBYTE32; + struct { + __IO uint8_t TBYTE2; + __IO uint8_t TBYTE3; + }; + }; +}FM4_MFS_TypeDef; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC registers */ +typedef struct +{ + union { + __IO uint8_t CRCCR; + stc_crc_crccr_field_t CRCCR_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t CRCINIT; + union { + __IO uint32_t CRCIN; + struct { + union { + __IO uint16_t CRCINL; + struct { + __IO uint8_t CRCINLL; + __IO uint8_t CRCINLH; + }; + }; + union { + __IO uint16_t CRCINH; + struct { + __IO uint8_t CRCINHL; + __IO uint8_t CRCINHH; + }; + }; + }; + }; + __IO uint32_t CRCR; +}FM4_CRC_TypeDef; + +/****************************************************************************** + * DSTC_MODULE + ******************************************************************************/ +/* DSTC registers */ +typedef struct +{ + __IO uint32_t DESTP; + union { + __IO uint32_t HWDESP; + stc_dstc_hwdesp_field_t HWDESP_f; + }; + __IO uint8_t CMD; + union { + __IO uint8_t CFG; + stc_dstc_cfg_field_t CFG_f; + }; + union { + __IO uint16_t SWTR; + stc_dstc_swtr_field_t SWTR_f; + }; + union { + __IO uint32_t MONERS; + stc_dstc_moners_field_t MONERS_f; + }; + __IO uint32_t DREQENB0; + __IO uint32_t DREQENB1; + __IO uint32_t DREQENB2; + __IO uint32_t DREQENB3; + __IO uint32_t DREQENB4; + __IO uint32_t DREQENB5; + __IO uint32_t DREQENB6; + __IO uint32_t DREQENB7; + __IO uint32_t HWINT0; + __IO uint32_t HWINT1; + __IO uint32_t HWINT2; + __IO uint32_t HWINT3; + __IO uint32_t HWINT4; + __IO uint32_t HWINT5; + __IO uint32_t HWINT6; + __IO uint32_t HWINT7; + __IO uint32_t HWINTCLR0; + __IO uint32_t HWINTCLR1; + __IO uint32_t HWINTCLR2; + __IO uint32_t HWINTCLR3; + __IO uint32_t HWINTCLR4; + __IO uint32_t HWINTCLR5; + __IO uint32_t HWINTCLR6; + __IO uint32_t HWINTCLR7; + __IO uint32_t DQMSK0; + __IO uint32_t DQMSK1; + __IO uint32_t DQMSK2; + __IO uint32_t DQMSK3; + __IO uint32_t DQMSK4; + __IO uint32_t DQMSK5; + __IO uint32_t DQMSK6; + __IO uint32_t DQMSK7; + __IO uint32_t DQMSKCLR0; + __IO uint32_t DQMSKCLR1; + __IO uint32_t DQMSKCLR2; + __IO uint32_t DQMSKCLR3; + __IO uint32_t DQMSKCLR4; + __IO uint32_t DQMSKCLR5; + __IO uint32_t DQMSKCLR6; + __IO uint32_t DQMSKCLR7; +}FM4_DSTC_TypeDef; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* Watch counter registers */ +typedef struct +{ + union { + __IO uint8_t WCRD; + stc_wc_wcrd_field_t WCRD_f; + }; + union { + __IO uint8_t WCRL; + stc_wc_wcrl_field_t WCRL_f; + }; + union { + __IO uint8_t WCCR; + stc_wc_wccr_field_t WCCR_f; + }; + uint8_t RESERVED0[13]; + union { + __IO uint16_t CLK_SEL; + stc_wc_clk_sel_field_t CLK_SEL_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t CLK_EN; + stc_wc_clk_en_field_t CLK_EN_f; + }; +}FM4_WC_TypeDef; + +/****************************************************************************** + * RTC_MODULE + ******************************************************************************/ +/* Real time clock registers */ +typedef struct +{ + union { + __IO uint8_t WTCR10; + stc_rtc_wtcr10_field_t WTCR10_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t WTCR11; + stc_rtc_wtcr11_field_t WTCR11_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint8_t WTCR12; + stc_rtc_wtcr12_field_t WTCR12_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t WTCR13; + stc_rtc_wtcr13_field_t WTCR13_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t WTCR20; + stc_rtc_wtcr20_field_t WTCR20_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t WTCR21; + stc_rtc_wtcr21_field_t WTCR21_f; + }; + uint8_t RESERVED6[3]; + __IO uint8_t WTCR22; + uint8_t RESERVED7[3]; + union { + __IO uint8_t WTSR; + stc_rtc_wtsr_field_t WTSR_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t WTMIR; + stc_rtc_wtmir_field_t WTMIR_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t WTHR; + stc_rtc_wthr_field_t WTHR_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t WTDR; + stc_rtc_wtdr_field_t WTDR_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t WTDW; + stc_rtc_wtdw_field_t WTDW_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint8_t WTMOR; + stc_rtc_wtmor_field_t WTMOR_f; + }; + uint8_t RESERVED13[3]; + union { + __IO uint8_t WTYR; + stc_rtc_wtyr_field_t WTYR_f; + }; + uint8_t RESERVED14[3]; + union { + __IO uint8_t ALMIR; + stc_rtc_almir_field_t ALMIR_f; + }; + uint8_t RESERVED15[3]; + union { + __IO uint8_t ALHR; + stc_rtc_alhr_field_t ALHR_f; + }; + uint8_t RESERVED16[3]; + union { + __IO uint8_t ALDR; + stc_rtc_aldr_field_t ALDR_f; + }; + uint8_t RESERVED17[3]; + union { + __IO uint8_t ALMOR; + stc_rtc_almor_field_t ALMOR_f; + }; + uint8_t RESERVED18[3]; + union { + __IO uint8_t ALYR; + stc_rtc_alyr_field_t ALYR_f; + }; + uint8_t RESERVED19[3]; + union { + __IO uint8_t WTTR0; + stc_rtc_wttr0_field_t WTTR0_f; + }; + uint8_t RESERVED20[3]; + union { + __IO uint8_t WTTR1; + stc_rtc_wttr1_field_t WTTR1_f; + }; + uint8_t RESERVED21[3]; + union { + __IO uint8_t WTTR2; + stc_rtc_wttr2_field_t WTTR2_f; + }; + uint8_t RESERVED22[3]; + __IO uint8_t WTCAL0; + uint8_t RESERVED23[3]; + union { + __IO uint8_t WTCAL1; + stc_rtc_wtcal1_field_t WTCAL1_f; + }; + uint8_t RESERVED24[3]; + union { + __IO uint8_t WTCALEN; + stc_rtc_wtcalen_field_t WTCALEN_f; + }; + uint8_t RESERVED25[3]; + union { + __IO uint8_t WTDIV; + stc_rtc_wtdiv_field_t WTDIV_f; + }; + uint8_t RESERVED26[3]; + union { + __IO uint8_t WTDIVEN; + stc_rtc_wtdiven_field_t WTDIVEN_f; + }; + uint8_t RESERVED27[3]; + union { + __IO uint8_t WTCALPRD; + stc_rtc_wtcalprd_field_t WTCALPRD_f; + }; + uint8_t RESERVED28[3]; + union { + __IO uint8_t WTCOSEL; + stc_rtc_wtcosel_field_t WTCOSEL_f; + }; + uint8_t RESERVED29[3]; + union { + __IO uint8_t VB_CLKDIV; + stc_rtc_vb_clkdiv_field_t VB_CLKDIV_f; + }; + uint8_t RESERVED30[3]; + union { + __IO uint8_t WTOSCCNT; + stc_rtc_wtosccnt_field_t WTOSCCNT_f; + }; + uint8_t RESERVED31[3]; + __IO uint8_t CCS; + uint8_t RESERVED32[3]; + __IO uint8_t CCB; + uint8_t RESERVED33[3]; + /* Don't exist on peripheral manual */ + __IO uint8_t TRIM; + uint8_t RESERVED34[3]; + union { + __IO uint8_t BOOST; + stc_rtc_boost_field_t BOOST_f; + }; + uint8_t RESERVED35[3]; + union { + __IO uint8_t EWKUP; + stc_rtc_ewkup_field_t EWKUP_f; + }; + uint8_t RESERVED36[3]; + union { + __IO uint8_t VDET; + stc_rtc_vdet_field_t VDET_f; + }; + uint8_t RESERVED37[3]; + /* Don't exist on peripheral manual */ + __IO uint8_t FDET; + uint8_t RESERVED38[3]; + union { + __IO uint8_t HIBRST; + stc_rtc_hibrst_field_t HIBRST_f; + }; + uint8_t RESERVED39[3]; + union { + __IO uint8_t VBPFR; + stc_rtc_vbpfr_field_t VBPFR_f; + }; + uint8_t RESERVED40[3]; + union { + __IO uint8_t VBPCR; + stc_rtc_vbpcr_field_t VBPCR_f; + }; + uint8_t RESERVED41[3]; + union { + __IO uint8_t VBDDR; + stc_rtc_vbddr_field_t VBDDR_f; + }; + uint8_t RESERVED42[3]; + union { + __IO uint8_t VBDIR; + stc_rtc_vbdir_field_t VBDIR_f; + }; + uint8_t RESERVED43[3]; + union { + __IO uint8_t VBDOR; + stc_rtc_vbdor_field_t VBDOR_f; + }; + uint8_t RESERVED44[3]; + union { + __IO uint8_t VBPZR; + stc_rtc_vbpzr_field_t VBPZR_f; + }; + uint8_t RESERVED45[87]; + union { + __IO uint32_t BREG00_03; + struct { + __IO uint16_t BREG00_01; + __IO uint16_t BREG02_03; + }; + struct { + __IO uint8_t BREG00; + __IO uint8_t BREG01; + __IO uint8_t BREG02; + __IO uint8_t BREG03; + }; + }; + union { + __IO uint32_t BREG04_07; + struct { + __IO uint16_t BREG04_05; + __IO uint16_t BREG06_07; + }; + struct { + __IO uint8_t BREG04; + __IO uint8_t BREG05; + __IO uint8_t BREG06; + __IO uint8_t BREG07; + }; + }; + union { + __IO uint32_t BREG08_0B; + struct { + __IO uint16_t BREG08_09; + __IO uint16_t BREG0A_0B; + }; + struct { + __IO uint8_t BREG08; + __IO uint8_t BREG09; + __IO uint8_t BREG0A; + __IO uint8_t BREG0B; + }; + }; + union { + __IO uint32_t BREG0C_0F; + struct { + __IO uint16_t BREG0C_0D; + __IO uint16_t BREG0E_0F; + }; + struct { + __IO uint8_t BREG0C; + __IO uint8_t BREG0D; + __IO uint8_t BREG0E; + __IO uint8_t BREG0F; + }; + }; + union { + __IO uint32_t BREG10_13; + struct { + __IO uint16_t BREG10_11; + __IO uint16_t BREG12_13; + }; + struct { + __IO uint8_t BREG10; + __IO uint8_t BREG11; + __IO uint8_t BREG12; + __IO uint8_t BREG13; + }; + }; + union { + __IO uint32_t BREG14_17; + struct { + __IO uint16_t BREG14_15; + __IO uint16_t BREG16_17; + }; + struct { + __IO uint8_t BREG14; + __IO uint8_t BREG15; + __IO uint8_t BREG16; + __IO uint8_t BREG17; + }; + }; + union { + __IO uint32_t BREG18_1B; + struct { + __IO uint16_t BREG18_19; + __IO uint16_t BREG1A_1B; + }; + struct { + __IO uint8_t BREG18; + __IO uint8_t BREG19; + __IO uint8_t BREG1A; + __IO uint8_t BREG1B; + }; + }; + union { + __IO uint32_t BREG1C_1F; + struct { + __IO uint16_t BREG1C_1D; + __IO uint16_t BREG1E_1F; + }; + struct { + __IO uint8_t BREG1C; + __IO uint8_t BREG1D; + __IO uint8_t BREG1E; + __IO uint8_t BREG1F; + }; + }; + union { + __IO uint32_t BREG20_23; + struct { + __IO uint16_t BREG20_21; + __IO uint16_t BREG22_23; + }; + struct { + __IO uint8_t BREG20; + __IO uint8_t BREG21; + __IO uint8_t BREG22; + __IO uint8_t BREG23; + }; + }; + union { + __IO uint32_t BREG24_27; + struct { + __IO uint16_t BREG24_25; + __IO uint16_t BREG26_27; + }; + struct { + __IO uint8_t BREG24; + __IO uint8_t BREG25; + __IO uint8_t BREG26; + __IO uint8_t BREG27; + }; + }; + union { + __IO uint32_t BREG28_2B; + struct { + __IO uint16_t BREG28_29; + __IO uint16_t BREG2A_2B; + }; + struct { + __IO uint8_t BREG28; + __IO uint8_t BREG29; + __IO uint8_t BREG2A; + __IO uint8_t BREG2B; + }; + }; + union { + __IO uint32_t BREG2C_2F; + struct { + __IO uint16_t BREG2C_2D; + __IO uint16_t BREG2E_2F; + }; + struct { + __IO uint8_t BREG2C; + __IO uint8_t BREG2D; + __IO uint8_t BREG2E; + __IO uint8_t BREG2F; + }; + }; + union { + __IO uint32_t BREG30_33; + struct { + __IO uint16_t BREG30_31; + __IO uint16_t BREG32_33; + }; + struct { + __IO uint8_t BREG30; + __IO uint8_t BREG31; + __IO uint8_t BREG32; + __IO uint8_t BREG33; + }; + }; + union { + __IO uint32_t BREG34_37; + struct { + __IO uint16_t BREG34_35; + __IO uint16_t BREG36_37; + }; + struct { + __IO uint8_t BREG34; + __IO uint8_t BREG35; + __IO uint8_t BREG36; + __IO uint8_t BREG37; + }; + }; + union { + __IO uint32_t BREG38_3B; + struct { + __IO uint16_t BREG38_39; + __IO uint16_t BREG3A_3B; + }; + struct { + __IO uint8_t BREG38; + __IO uint8_t BREG39; + __IO uint8_t BREG3A; + __IO uint8_t BREG3B; + }; + }; + union { + __IO uint32_t BREG3C_3F; + struct { + __IO uint16_t BREG3C_3D; + __IO uint16_t BREG3E_3F; + }; + struct { + __IO uint8_t BREG3C; + __IO uint8_t BREG3D; + __IO uint8_t BREG3E; + __IO uint8_t BREG3F; + }; + }; + union { + __IO uint32_t BREG40_43; + struct { + __IO uint16_t BREG40_41; + __IO uint16_t BREG42_43; + }; + struct { + __IO uint8_t BREG40; + __IO uint8_t BREG41; + __IO uint8_t BREG42; + __IO uint8_t BREG43; + }; + }; + union { + __IO uint32_t BREG44_47; + struct { + __IO uint16_t BREG44_45; + __IO uint16_t BREG46_47; + }; + struct { + __IO uint8_t BREG44; + __IO uint8_t BREG45; + __IO uint8_t BREG46; + __IO uint8_t BREG47; + }; + }; + union { + __IO uint32_t BREG48_4B; + struct { + __IO uint16_t BREG48_49; + __IO uint16_t BREG4A_4B; + }; + struct { + __IO uint8_t BREG48; + __IO uint8_t BREG49; + __IO uint8_t BREG4A; + __IO uint8_t BREG4B; + }; + }; + union { + __IO uint32_t BREG4C_4F; + struct { + __IO uint16_t BREG4C_4D; + __IO uint16_t BREG4E_4F; + }; + struct { + __IO uint8_t BREG4C; + __IO uint8_t BREG4D; + __IO uint8_t BREG4E; + __IO uint8_t BREG4F; + }; + }; + union { + __IO uint32_t BREG50_53; + struct { + __IO uint16_t BREG50_51; + __IO uint16_t BREG52_53; + }; + struct { + __IO uint8_t BREG50; + __IO uint8_t BREG51; + __IO uint8_t BREG52; + __IO uint8_t BREG53; + }; + }; + union { + __IO uint32_t BREG54_57; + struct { + __IO uint16_t BREG54_55; + __IO uint16_t BREG56_57; + }; + struct { + __IO uint8_t BREG54; + __IO uint8_t BREG55; + __IO uint8_t BREG56; + __IO uint8_t BREG57; + }; + }; + union { + __IO uint32_t BREG58_5B; + struct { + __IO uint16_t BREG58_59; + __IO uint16_t BREG5A_5B; + }; + struct { + __IO uint8_t BREG58; + __IO uint8_t BREG59; + __IO uint8_t BREG5A; + __IO uint8_t BREG5B; + }; + }; + union { + __IO uint32_t BREG5C_5F; + struct { + __IO uint16_t BREG5C_5D; + __IO uint16_t BREG5E_5F; + }; + struct { + __IO uint8_t BREG5C; + __IO uint8_t BREG5D; + __IO uint8_t BREG5E; + __IO uint8_t BREG5F; + }; + }; + union { + __IO uint32_t BREG60_63; + struct { + __IO uint16_t BREG60_61; + __IO uint16_t BREG62_63; + }; + struct { + __IO uint8_t BREG60; + __IO uint8_t BREG61; + __IO uint8_t BREG62; + __IO uint8_t BREG63; + }; + }; + union { + __IO uint32_t BREG64_67; + struct { + __IO uint16_t BREG64_65; + __IO uint16_t BREG66_67; + }; + struct { + __IO uint8_t BREG64; + __IO uint8_t BREG65; + __IO uint8_t BREG66; + __IO uint8_t BREG67; + }; + }; + union { + __IO uint32_t BREG68_6B; + struct { + __IO uint16_t BREG68_69; + __IO uint16_t BREG6A_6B; + }; + struct { + __IO uint8_t BREG68; + __IO uint8_t BREG69; + __IO uint8_t BREG6A; + __IO uint8_t BREG6B; + }; + }; + union { + __IO uint32_t BREG6C_6F; + struct { + __IO uint16_t BREG6C_6D; + __IO uint16_t BREG6E_6F; + }; + struct { + __IO uint8_t BREG6C; + __IO uint8_t BREG6D; + __IO uint8_t BREG6E; + __IO uint8_t BREG6F; + }; + }; + union { + __IO uint32_t BREG70_73; + struct { + __IO uint16_t BREG70_71; + __IO uint16_t BREG72_73; + }; + struct { + __IO uint8_t BREG70; + __IO uint8_t BREG71; + __IO uint8_t BREG72; + __IO uint8_t BREG73; + }; + }; + union { + __IO uint32_t BREG74_77; + struct { + __IO uint16_t BREG74_75; + __IO uint16_t BREG76_77; + }; + struct { + __IO uint8_t BREG74; + __IO uint8_t BREG75; + __IO uint8_t BREG76; + __IO uint8_t BREG77; + }; + }; + union { + __IO uint32_t BREG78_7B; + struct { + __IO uint16_t BREG78_79; + __IO uint16_t BREG7A_7B; + }; + struct { + __IO uint8_t BREG78; + __IO uint8_t BREG79; + __IO uint8_t BREG7A; + __IO uint8_t BREG7B; + }; + }; + union { + __IO uint32_t BREG7C_7F; + struct { + __IO uint16_t BREG7C_7D; + __IO uint16_t BREG7E_7F; + }; + struct { + __IO uint8_t BREG7C; + __IO uint8_t BREG7D; + __IO uint8_t BREG7E; + __IO uint8_t BREG7F; + }; + }; +}FM4_RTC_TypeDef; + +/****************************************************************************** + * LCR_MODULE + ******************************************************************************/ +/* Low-speed CR prescaler registers */ +typedef struct +{ + union { + __IO uint8_t LCR_PRSLD; + stc_lcr_lcr_prsld_field_t LCR_PRSLD_f; + }; +}FM4_LCR_TypeDef; + +/****************************************************************************** + * CLK_GATING_MODULE + ******************************************************************************/ +/* CLK_GATING registers */ +typedef struct +{ + union { + __IO uint32_t CKEN0; + stc_clk_gating_cken0_field_t CKEN0_f; + }; + union { + __IO uint32_t MRST0; + stc_clk_gating_mrst0_field_t MRST0_f; + }; + uint8_t RESERVED1[8]; + union { + __IO uint32_t CKEN1; + stc_clk_gating_cken1_field_t CKEN1_f; + }; + union { + __IO uint32_t MRST1; + stc_clk_gating_mrst1_field_t MRST1_f; + }; + uint8_t RESERVED3[8]; + union { + __IO uint32_t CKEN2; + stc_clk_gating_cken2_field_t CKEN2_f; + }; + union { + __IO uint32_t MRST2; + stc_clk_gating_mrst2_field_t MRST2_f; + }; +}FM4_CLK_GATING_TypeDef; + +/****************************************************************************** + * PLL_CONTROL_MODULE + ******************************************************************************/ +/* PLL_CONTROL registers */ +typedef struct +{ + __IO uint32_t SSCTL1; + __IO uint32_t SSCTL2; +}FM4_PLL_CONTROL_TypeDef; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* External bus interface registers */ +typedef struct +{ + union { + __IO uint32_t MODE0; + stc_exbus_mode_field_t MODE0_f; + }; + union { + __IO uint32_t MODE1; + stc_exbus_mode_field_t MODE1_f; + }; + union { + __IO uint32_t MODE2; + stc_exbus_mode_field_t MODE2_f; + }; + union { + __IO uint32_t MODE3; + stc_exbus_mode_field_t MODE3_f; + }; + union { + __IO uint32_t MODE4; + stc_exbus_mode_field_t MODE4_f; + }; + union { + __IO uint32_t MODE5; + stc_exbus_mode_field_t MODE5_f; + }; + union { + __IO uint32_t MODE6; + stc_exbus_mode_field_t MODE6_f; + }; + union { + __IO uint32_t MODE7; + stc_exbus_mode_field_t MODE7_f; + }; + union { + __IO uint32_t TIM0; + stc_exbus_tim_field_t TIM0_f; + }; + __IO uint32_t TIM1; + union { + __IO uint32_t TIM2; + stc_exbus_tim_field_t TIM2_f; + }; + union { + __IO uint32_t TIM3; + stc_exbus_tim_field_t TIM3_f; + }; + union { + __IO uint32_t TIM4; + stc_exbus_tim_field_t TIM4_f; + }; + union { + __IO uint32_t TIM5; + stc_exbus_tim_field_t TIM5_f; + }; + union { + __IO uint32_t TIM6; + stc_exbus_tim_field_t TIM6_f; + }; + union { + __IO uint32_t TIM7; + stc_exbus_tim_field_t TIM7_f; + }; + union { + __IO uint32_t AREA0; + stc_exbus_area_field_t AREA0_f; + }; + union { + __IO uint32_t AREA1; + stc_exbus_area_field_t AREA1_f; + }; + union { + __IO uint32_t AREA2; + stc_exbus_area_field_t AREA2_f; + }; + union { + __IO uint32_t AREA3; + stc_exbus_area_field_t AREA3_f; + }; + union { + __IO uint32_t AREA4; + stc_exbus_area_field_t AREA4_f; + }; + union { + __IO uint32_t AREA5; + stc_exbus_area_field_t AREA5_f; + }; + union { + __IO uint32_t AREA6; + stc_exbus_area_field_t AREA6_f; + }; + union { + __IO uint32_t AREA7; + stc_exbus_area_field_t AREA7_f; + }; + union { + __IO uint32_t ATIM0; + stc_exbus_atim_field_t ATIM0_f; + }; + union { + __IO uint32_t ATIM1; + stc_exbus_atim_field_t ATIM1_f; + }; + union { + __IO uint32_t ATIM2; + stc_exbus_atim_field_t ATIM2_f; + }; + union { + __IO uint32_t ATIM3; + stc_exbus_atim_field_t ATIM3_f; + }; + union { + __IO uint32_t ATIM4; + stc_exbus_atim_field_t ATIM4_f; + }; + union { + __IO uint32_t ATIM5; + stc_exbus_atim_field_t ATIM5_f; + }; + union { + __IO uint32_t ATIM6; + stc_exbus_atim_field_t ATIM6_f; + }; + union { + __IO uint32_t ATIM7; + stc_exbus_atim_field_t ATIM7_f; + }; + uint8_t RESERVED1[128]; + union { + __IO uint32_t SDMODE; + stc_exbus_sdmode_field_t SDMODE_f; + }; + union { + __IO uint32_t REFTIM; + stc_exbus_reftim_field_t REFTIM_f; + }; + union { + __IO uint32_t PWRDWN; + stc_exbus_pwrdwn_field_t PWRDWN_f; + }; + union { + __IO uint32_t SDTIM; + stc_exbus_sdtim_field_t SDTIM_f; + }; + union { + __IO uint32_t SDCMD; + stc_exbus_sdcmd_field_t SDCMD_f; + }; + uint8_t RESERVED2[236]; + union { + __IO uint32_t MEMCERR; + stc_exbus_memcerr_field_t MEMCERR_f; + }; + uint8_t RESERVED3[252]; + union { + __IO uint32_t DCLKR; + stc_exbus_dclkr_field_t DCLKR_f; + }; + union { + __IO uint32_t EST; + stc_exbus_est_field_t EST_f; + }; + union { + __IO uint32_t WEAD; + stc_exbus_wead_field_t WEAD_f; + }; + union { + __IO uint32_t ESCLR; + stc_exbus_esclr_field_t ESCLR_f; + }; + union { + __IO uint32_t AMODE; + stc_exbus_amode_field_t AMODE_f; + }; +}FM4_EXBUS_TypeDef; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB channel 0 registers */ +typedef struct +{ + union { + union { + __IO uint16_t HCNT; + stc_usb_hcnt_field_t HCNT_f; + }; + struct { + union { + __IO uint8_t HCNT0; + stc_usb_hcnt0_field_t HCNT0_f; + }; + union { + __IO uint8_t HCNT1; + stc_usb_hcnt1_field_t HCNT1_f; + }; + }; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t HIRQ; + stc_usb_hirq_field_t HIRQ_f; + }; + union { + __IO uint8_t HERR; + stc_usb_herr_field_t HERR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t HSTATE; + stc_usb_hstate_field_t HSTATE_f; + }; + union { + __IO uint8_t HFCOMP; + stc_usb_hfcomp_field_t HFCOMP_f; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t HRTIMER; + stc_usb_hrtimer_field_t HRTIMER_f; + }; + struct { + union { + __IO uint8_t HRTIMER0; + stc_usb_hrtimer0_field_t HRTIMER0_f; + }; + union { + __IO uint8_t HRTIMER1; + stc_usb_hrtimer1_field_t HRTIMER1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t HRTIMER2; + stc_usb_hrtimer2_field_t HRTIMER2_f; + }; + union { + __IO uint8_t HADR; + stc_usb_hadr_field_t HADR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t HEOF; + stc_usb_heof_field_t HEOF_f; + }; + struct { + union { + __IO uint8_t HEOF0; + stc_usb_heof0_field_t HEOF0_f; + }; + union { + __IO uint8_t HEOF1; + stc_usb_heof1_field_t HEOF1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t HFRAME; + stc_usb_hframe_field_t HFRAME_f; + }; + struct { + union { + __IO uint8_t HFRAME0; + stc_usb_hframe0_field_t HFRAME0_f; + }; + union { + __IO uint8_t HFRAME1; + stc_usb_hframe1_field_t HFRAME1_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t HTOKEN; + stc_usb_htoken_field_t HTOKEN_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t UDCC; + stc_usb_udcc_field_t UDCC_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t EP0C; + stc_usb_ep0c_field_t EP0C_f; + }; + uint8_t RESERVED9[2]; + union { + __IO uint16_t EP1C; + stc_usb_ep1c_field_t EP1C_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint16_t EP2C; + stc_usb_ep2c_field_t EP2C_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t EP3C; + stc_usb_ep3c_field_t EP3C_f; + }; + uint8_t RESERVED12[2]; + union { + __IO uint16_t EP4C; + stc_usb_ep4c_field_t EP4C_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint16_t EP5C; + stc_usb_ep5c_field_t EP5C_f; + }; + uint8_t RESERVED14[2]; + union { + __IO uint16_t TMSP; + stc_usb_tmsp_field_t TMSP_f; + }; + uint8_t RESERVED15[2]; + union { + __IO uint8_t UDCS; + stc_usb_udcs_field_t UDCS_f; + }; + union { + __IO uint8_t UDCIE; + stc_usb_udcie_field_t UDCIE_f; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t EP0IS; + stc_usb_ep0is_field_t EP0IS_f; + }; + uint8_t RESERVED17[2]; + union { + __IO uint16_t EP0OS; + stc_usb_ep0os_field_t EP0OS_f; + }; + uint8_t RESERVED18[2]; + union { + __IO uint16_t EP1S; + stc_usb_ep1s_field_t EP1S_f; + }; + uint8_t RESERVED19[2]; + union { + __IO uint16_t EP2S; + stc_usb_ep2s_field_t EP2S_f; + }; + uint8_t RESERVED20[2]; + __IO uint16_t EP3S; + uint8_t RESERVED21[2]; + union { + __IO uint16_t EP4S; + stc_usb_ep4s_field_t EP4S_f; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t EP5S; + stc_usb_ep5s_field_t EP5S_f; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t EP0DT; + struct { + __IO uint8_t EP0DTL; + __IO uint8_t EP0DTH; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t EP1DT; + struct { + __IO uint8_t EP1DTL; + __IO uint8_t EP1DTH; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint16_t EP2DT; + struct { + __IO uint8_t EP2DTL; + __IO uint8_t EP2DTH; + }; + }; + uint8_t RESERVED26[2]; + union { + __IO uint16_t EP3DT; + struct { + __IO uint8_t EP3DTL; + __IO uint8_t EP3DTH; + }; + }; + uint8_t RESERVED27[2]; + union { + __IO uint16_t EP4DT; + struct { + __IO uint8_t EP4DTL; + __IO uint8_t EP4DTH; + }; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t EP5DT; + struct { + __IO uint8_t EP5DTL; + __IO uint8_t EP5DTH; + }; + }; +}FM4_USB_TypeDef; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMA controller */ +typedef struct +{ + union { + __IO uint32_t DMACR; + stc_dmac_dmacr_field_t DMACR_f; + }; + uint8_t RESERVED0[12]; + union { + __IO uint32_t DMACA0; + stc_dmac_dmaca0_field_t DMACA0_f; + }; + union { + __IO uint32_t DMACB0; + stc_dmac_dmacb0_field_t DMACB0_f; + }; + __IO uint32_t DMACSA0; + __IO uint32_t DMACDA0; + union { + __IO uint32_t DMACA1; + stc_dmac_dmaca1_field_t DMACA1_f; + }; + union { + __IO uint32_t DMACB1; + stc_dmac_dmacb1_field_t DMACB1_f; + }; + __IO uint32_t DMACSA1; + __IO uint32_t DMACDA1; + union { + __IO uint32_t DMACA2; + stc_dmac_dmaca2_field_t DMACA2_f; + }; + union { + __IO uint32_t DMACB2; + stc_dmac_dmacb2_field_t DMACB2_f; + }; + __IO uint32_t DMACSA2; + __IO uint32_t DMACDA2; + union { + __IO uint32_t DMACA3; + stc_dmac_dmaca3_field_t DMACA3_f; + }; + union { + __IO uint32_t DMACB3; + stc_dmac_dmacb3_field_t DMACB3_f; + }; + __IO uint32_t DMACSA3; + __IO uint32_t DMACDA3; + union { + __IO uint32_t DMACA4; + stc_dmac_dmaca4_field_t DMACA4_f; + }; + union { + __IO uint32_t DMACB4; + stc_dmac_dmacb4_field_t DMACB4_f; + }; + __IO uint32_t DMACSA4; + __IO uint32_t DMACDA4; + union { + __IO uint32_t DMACA5; + stc_dmac_dmaca5_field_t DMACA5_f; + }; + union { + __IO uint32_t DMACB5; + stc_dmac_dmacb5_field_t DMACB5_f; + }; + __IO uint32_t DMACSA5; + __IO uint32_t DMACDA5; + union { + __IO uint32_t DMACA6; + stc_dmac_dmaca6_field_t DMACA6_f; + }; + union { + __IO uint32_t DMACB6; + stc_dmac_dmacb6_field_t DMACB6_f; + }; + __IO uint32_t DMACSA6; + __IO uint32_t DMACDA6; + union { + __IO uint32_t DMACA7; + stc_dmac_dmaca7_field_t DMACA7_f; + }; + union { + __IO uint32_t DMACB7; + stc_dmac_dmacb7_field_t DMACB7_f; + }; + __IO uint32_t DMACSA7; + __IO uint32_t DMACDA7; +}FM4_DMAC_TypeDef; + +/****************************************************************************** + * CAN_MODULE + ******************************************************************************/ +/* CAN channel 0 registers */ +typedef struct +{ + union { + __IO uint16_t CTRLR; + stc_can_ctrlr_field_t CTRLR_f; + }; + union { + __IO uint16_t STATR; + stc_can_statr_field_t STATR_f; + }; + union { + __IO uint16_t ERRCNT; + stc_can_errcnt_field_t ERRCNT_f; + }; + union { + __IO uint16_t BTR; + stc_can_btr_field_t BTR_f; + }; + union { + __IO uint16_t INTR; + stc_can_intr_field_t INTR_f; + }; + union { + __IO uint16_t TESTR; + stc_can_testr_field_t TESTR_f; + }; + union { + __IO uint16_t BRPER; + stc_can_brper_field_t BRPER_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint16_t IF1CREQ; + stc_can_if1creq_field_t IF1CREQ_f; + }; + union { + __IO uint16_t IF1CMSK; + stc_can_if1cmsk_field_t IF1CMSK_f; + }; + union { + union { + __IO uint32_t IF1MSK; + stc_can_if1msk_field_t IF1MSK_f; + }; + struct { + __IO uint16_t IF1MSK1; + union { + __IO uint16_t IF1MSK2; + stc_can_if1msk2_field_t IF1MSK2_f; + }; + }; + }; + union { + union { + __IO uint32_t IF1ARB; + stc_can_if1arb_field_t IF1ARB_f; + }; + struct { + __IO uint16_t IF1ARB1; + union { + __IO uint16_t IF1ARB2; + stc_can_if1arb2_field_t IF1ARB2_f; + }; + }; + }; + union { + __IO uint16_t IF1MCTR; + stc_can_if1mctr_field_t IF1MCTR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint32_t IF1DTA_L; + struct { + __IO uint16_t IF1DTA1_L; + __IO uint16_t IF1DTA2_L; + }; + }; + union { + __IO uint32_t IF1DTB_L; + struct { + __IO uint16_t IF1DTB1_L; + __IO uint16_t IF1DTB2_L; + }; + }; + uint8_t RESERVED2[8]; + union { + __IO uint32_t IF1DTA_B; + struct { + __IO uint16_t IF1DTA2_B; + __IO uint16_t IF1DTA1_B; + }; + }; + union { + __IO uint32_t IF1DTB_B; + struct { + __IO uint16_t IF1DTB2_B; + __IO uint16_t IF1DTB1_B; + }; + }; + uint8_t RESERVED3[8]; + union { + __IO uint16_t IF2CREQ; + stc_can_if2creq_field_t IF2CREQ_f; + }; + union { + __IO uint16_t IF2CMSK; + stc_can_if2cmsk_field_t IF2CMSK_f; + }; + union { + union { + __IO uint32_t IF2MSK; + stc_can_if2msk_field_t IF2MSK_f; + }; + struct { + __IO uint16_t IF2MSK1; + union { + __IO uint16_t IF2MSK2; + stc_can_if2msk2_field_t IF2MSK2_f; + }; + }; + }; + union { + __IO uint32_t IF2ARB; + struct { + __IO uint16_t IF2ARB1; + union { + __IO uint16_t IF2ARB2; + stc_can_if2arb2_field_t IF2ARB2_f; + }; + }; + }; + union { + __IO uint16_t IF2MCTR; + stc_can_if2mctr_field_t IF2MCTR_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint32_t IF2DTA_L; + struct { + __IO uint16_t IF2DTA1_L; + __IO uint16_t IF2DTA2_L; + }; + }; + union { + __IO uint32_t IF2DTB_L; + struct { + __IO uint16_t IF2DTB1_L; + __IO uint16_t IF2DTB2_L; + }; + }; + uint8_t RESERVED5[8]; + union { + __IO uint32_t IF2DTA_B; + struct { + __IO uint16_t IF2DTA2_B; + __IO uint16_t IF2DTA1_B; + }; + }; + union { + __IO uint32_t IF2DTB_B; + struct { + __IO uint16_t IF2DTB2_B; + __IO uint16_t IF2DTB1_B; + }; + }; + uint8_t RESERVED6[24]; + union { + union { + __IO uint32_t TREQR; + stc_can_treqr_field_t TREQR_f; + }; + struct { + union { + __IO uint16_t TREQR1; + stc_can_treqr1_field_t TREQR1_f; + }; + union { + __IO uint16_t TREQR2; + stc_can_treqr2_field_t TREQR2_f; + }; + }; + }; + uint8_t RESERVED7[12]; + union { + union { + __IO uint32_t NEWDT; + stc_can_newdt_field_t NEWDT_f; + }; + struct { + union { + __IO uint16_t NEWDT1; + stc_can_newdt1_field_t NEWDT1_f; + }; + __IO uint16_t NEWDT2; + }; + }; + uint8_t RESERVED8[12]; + union { + union { + __IO uint32_t INTPND; + stc_can_intpnd_field_t INTPND_f; + }; + struct { + union { + __IO uint16_t INTPND1; + stc_can_intpnd1_field_t INTPND1_f; + }; + union { + __IO uint16_t INTPND2; + stc_can_intpnd2_field_t INTPND2_f; + }; + }; + }; + uint8_t RESERVED9[12]; + union { + union { + __IO uint32_t MSGVAL; + stc_can_msgval_field_t MSGVAL_f; + }; + struct { + union { + __IO uint16_t MSGVAL1; + stc_can_msgval1_field_t MSGVAL1_f; + }; + union { + __IO uint16_t MSGVAL2; + stc_can_msgval2_field_t MSGVAL2_f; + }; + }; + }; +}FM4_CAN_TypeDef; + +/****************************************************************************** + * SDIF_MODULE + ******************************************************************************/ +/* SD interface registers */ + + +/****************************************************************************** + * Peripheral memory map + ******************************************************************************/ +#define FM4_FLASH_BASE (0x00000000UL) /* Flash Base */ +#define FM4_WORKFLASH_BASE (0x200C0000UL) /* Work Flash Base */ +#define FM4_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ +#define FM4_CM3_BASE (0xE0100000UL) /* CM3 Private */ + +#define FM4_WORKFLASH_IF_BASE (FM4_WORKFLASH_BASE + 0x20000UL) /* Work Flash interface registers */ +#define FM4_FLASH_IF_BASE (FM4_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ +#define FM4_UNIQUE_ID_BASE (FM4_PERIPH_BASE + 0x00200UL) /* Unique ID registers */ +#define FM4_ECC_CAPTURE_BASE (FM4_PERIPH_BASE + 0x00300UL) /* ECC Capture address registers */ +#define FM4_CRG_BASE (FM4_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ +#define FM4_HWWDT_BASE (FM4_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ +#define FM4_SWWDT_BASE (FM4_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ +#define FM4_DTIM_BASE (FM4_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ +#define FM4_MFT0_FRT_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Free Running Timer registers */ +#define FM4_MFT0_OCU_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ +#define FM4_MFT0_WFG_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define FM4_MFT0_ICU_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ +#define FM4_MFT0_ADCMP_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define FM4_MFT1_FRT_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Free Running Timer registers */ +#define FM4_MFT1_OCU_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ +#define FM4_MFT1_WFG_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define FM4_MFT1_ICU_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ +#define FM4_MFT1_ADCMP_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define FM4_MFT2_FRT_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Free Running Timer registers */ +#define FM4_MFT2_OCU_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Output Compare Unit registers */ +#define FM4_MFT2_WFG_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ +#define FM4_MFT2_ICU_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Input Capture Unit registers */ +#define FM4_MFT2_ADCMP_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 ADC Start Compare Unit registers */ +#define FM4_MFT_PPG_BASE (FM4_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ +#define FM4_BT0_PPG_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ +#define FM4_BT0_PWM_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ +#define FM4_BT0_RT_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ +#define FM4_BT0_PWC_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ +#define FM4_BT1_PPG_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ +#define FM4_BT1_PWM_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ +#define FM4_BT1_RT_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ +#define FM4_BT1_PWC_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ +#define FM4_BT2_PPG_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ +#define FM4_BT2_PWM_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ +#define FM4_BT2_RT_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ +#define FM4_BT2_PWC_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ +#define FM4_BT3_PPG_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ +#define FM4_BT3_PWM_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ +#define FM4_BT3_RT_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ +#define FM4_BT3_PWC_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ +#define FM4_BT4_PPG_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ +#define FM4_BT4_PWM_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ +#define FM4_BT4_RT_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ +#define FM4_BT4_PWC_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ +#define FM4_BT5_PPG_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ +#define FM4_BT5_PWM_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ +#define FM4_BT5_RT_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ +#define FM4_BT5_PWC_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ +#define FM4_BT6_PPG_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ +#define FM4_BT6_PWM_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ +#define FM4_BT6_RT_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ +#define FM4_BT6_PWC_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ +#define FM4_BT7_PPG_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ +#define FM4_BT7_PWM_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ +#define FM4_BT7_RT_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ +#define FM4_BT7_PWC_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ +#define FM4_BTIOSEL03_BASE (FM4_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ +#define FM4_BTIOSEL47_BASE (FM4_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ +#define FM4_BT8_PPG_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PPG registers */ +#define FM4_BT8_PWM_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWM registers */ +#define FM4_BT8_RT_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 RT registers */ +#define FM4_BT8_PWC_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWC registers */ +#define FM4_BT9_PPG_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PPG registers */ +#define FM4_BT9_PWM_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWM registers */ +#define FM4_BT9_RT_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 RT registers */ +#define FM4_BT9_PWC_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWC registers */ +#define FM4_BT10_PPG_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PPG registers */ +#define FM4_BT10_PWM_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWM registers */ +#define FM4_BT10_RT_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 RT registers */ +#define FM4_BT10_PWC_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWC registers */ +#define FM4_BT11_PPG_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PPG registers */ +#define FM4_BT11_PWM_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWM registers */ +#define FM4_BT11_RT_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 RT registers */ +#define FM4_BT11_PWC_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWC registers */ +#define FM4_BT12_PPG_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PPG registers */ +#define FM4_BT12_PWM_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWM registers */ +#define FM4_BT12_RT_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 RT registers */ +#define FM4_BT12_PWC_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWC registers */ +#define FM4_BT13_PPG_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PPG registers */ +#define FM4_BT13_PWM_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWM registers */ +#define FM4_BT13_RT_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 RT registers */ +#define FM4_BT13_PWC_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWC registers */ +#define FM4_BT14_PPG_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PPG registers */ +#define FM4_BT14_PWM_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWM registers */ +#define FM4_BT14_RT_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 RT registers */ +#define FM4_BT14_PWC_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWC registers */ +#define FM4_BT15_PPG_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PPG registers */ +#define FM4_BT15_PWM_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWM registers */ +#define FM4_BT15_RT_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 RT registers */ +#define FM4_BT15_PWC_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWC registers */ +#define FM4_BTIOSEL8B_BASE (FM4_PERIPH_BASE + 0x25500UL) /* Base Timer I/O selector channel 8 - channel 11 registers */ +#define FM4_BTIOSELCF_BASE (FM4_PERIPH_BASE + 0x25700UL) /* Base Timer I/O selector channel 12 - channel 15 registers */ +#define FM4_SBSSR_BASE (FM4_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ +#define FM4_QPRC0_BASE (FM4_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ +#define FM4_QPRC1_BASE (FM4_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ +#define FM4_QPRC2_BASE (FM4_PERIPH_BASE + 0x26080UL) /* Quad position and revolution counter channel 2 registers */ +#define FM4_QPRC3_BASE (FM4_PERIPH_BASE + 0x260C0UL) /* Quad position and revolution counter channel 3 registers */ +#define FM4_QPRC0_NF_BASE (FM4_PERIPH_BASE + 0x26100UL) /* Quad position and revolution counter channel 0 noise filter registers */ +#define FM4_QPRC1_NF_BASE (FM4_PERIPH_BASE + 0x26110UL) /* Quad position and revolution counter channel 0 noise filter registers */ +#define FM4_QPRC2_NF_BASE (FM4_PERIPH_BASE + 0x26120UL) /* Quad position and revolution counter channel 0 noise filter registers */ +#define FM4_QPRC3_NF_BASE (FM4_PERIPH_BASE + 0x26130UL) /* Quad position and revolution counter channel 0 noise filter registers */ +#define FM4_ADC0_BASE (FM4_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ +#define FM4_ADC1_BASE (FM4_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ +#define FM4_ADC2_BASE (FM4_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ +#define FM4_DAC0_BASE (FM4_PERIPH_BASE + 0x33000UL) /* 12-bit DAC uint 0 registers */ +#define FM4_DAC1_BASE (FM4_PERIPH_BASE + 0x33008UL) /* 12-bit DAC uint 1 registers */ +#define FM4_CRTRIM_BASE (FM4_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ +#define FM4_EXTI_BASE (FM4_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ +#define FM4_INTREQ_BASE (FM4_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ +#define FM4_IRQSEL_BASE (FM4_PERIPH_BASE + 0x31110UL) /* Interrupt Selector */ +#define FM4_GPIO_BASE (FM4_PERIPH_BASE + 0x6F000UL) /* General purpose I/O registers */ +#define FM4_LVD_BASE (FM4_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ +#define FM4_DS_BASE (FM4_PERIPH_BASE + 0x35100UL) /* Deep standby mode registers */ +#define FM4_USBCLK_BASE (FM4_PERIPH_BASE + 0x36000UL) /* USB clock registers */ +#define FM4_CANPRES_BASE (FM4_PERIPH_BASE + 0x37000UL) /* CAN prescaler register */ +#define FM4_MFS0_BASE (FM4_PERIPH_BASE + 0x38000UL) /* MFS channel 0 registers */ +#define FM4_MFS1_BASE (FM4_PERIPH_BASE + 0x38100UL) /* MFS channel 1 registers */ +#define FM4_MFS2_BASE (FM4_PERIPH_BASE + 0x38200UL) /* MFS channel 2 registers */ +#define FM4_MFS3_BASE (FM4_PERIPH_BASE + 0x38300UL) /* MFS channel 3 registers */ +#define FM4_MFS4_BASE (FM4_PERIPH_BASE + 0x38400UL) /* MFS channel 4 registers */ +#define FM4_MFS5_BASE (FM4_PERIPH_BASE + 0x38500UL) /* MFS channel 5 registers */ +#define FM4_MFS6_BASE (FM4_PERIPH_BASE + 0x38600UL) /* MFS channel 6 registers */ +#define FM4_MFS7_BASE (FM4_PERIPH_BASE + 0x38700UL) /* MFS channel 7 registers */ +#define FM4_MFS8_BASE (FM4_PERIPH_BASE + 0x38800UL) /* MFS channel 8 registers */ +#define FM4_MFS9_BASE (FM4_PERIPH_BASE + 0x38900UL) /* MFS channel 9 registers */ +#define FM4_MFS10_BASE (FM4_PERIPH_BASE + 0x38A00UL) /* MFS channel 10 registers */ +#define FM4_MFS11_BASE (FM4_PERIPH_BASE + 0x38B00UL) /* MFS channel 11 registers */ +#define FM4_MFS12_BASE (FM4_PERIPH_BASE + 0x38C00UL) /* MFS channel 12 registers */ +#define FM4_MFS13_BASE (FM4_PERIPH_BASE + 0x38D00UL) /* MFS channel 13 registers */ +#define FM4_MFS14_BASE (FM4_PERIPH_BASE + 0x38E00UL) /* MFS channel 14 registers */ +#define FM4_MFS15_BASE (FM4_PERIPH_BASE + 0x38F00UL) /* MFS channel 15 registers */ +#define FM4_MFS_NFC_BASE (FM4_PERIPH_BASE + 0x38FFFF0) /* JUST A RANDOM ADDRESS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ +#define FM4_CRC_BASE (FM4_PERIPH_BASE + 0x39000UL) /* CRC registers */ +#define FM4_WC_BASE (FM4_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ +#define FM4_RTC_BASE (FM4_PERIPH_BASE + 0x3B100UL) /* RTC registers */ +#define FM4_LCR_BASE (FM4_PERIPH_BASE + 0x3C000UL) /* Low-speed CR prescaler registers */ +#define FM4_CLK_GATING_BASE (FM4_PERIPH_BASE + 0x3C100UL) /* Peripheral Clock Gating registers */ +#define FM4_PLL_CONTROL_BASE (FM4_PERIPH_BASE + 0x3C800UL) /* Main PLL Control registers */ +#define FM4_EXBUS_BASE (FM4_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ +#define FM4_USB0_BASE (FM4_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ +#define FM4_DMAC_BASE (FM4_PERIPH_BASE + 0x60000UL) /* DMA controller */ +#define FM4_DSTC_BASE (FM4_PERIPH_BASE + 0x61000UL) /* DSTC controller */ +#define FM4_CAN0_BASE (FM4_PERIPH_BASE + 0x62000UL) /* CAN channel 0 registers */ +#define FM4_CAN1_BASE (FM4_PERIPH_BASE + 0x63000UL) /* CAN channel 1 registers */ +#define FM4_SDIF_BASE (FM4_PERIPH_BASE + 0x6E000UL) /* SDIF registers */ + +/****************************************************************************** + * Peripheral declaration + ******************************************************************************/ +#define FM4_WORKFLASH_IF ((FM4_WORKFLASH_IF_TypeDef *)FM4_WORKFLASH_IF_BASE) +#define FM4_FLASH_IF ((FM4_FLASH_IF_TypeDef *)FM4_FLASH_IF_BASE) +#define FM4_UNIQUE_ID ((FM4_UNIQUE_ID_TypeDef *)FM4_UNIQUE_ID_BASE) +#define FM4_ECC_CAPTURE ((FM4_ECC_CAPTURE_TypeDef *)FM4_ECC_CAPTURE_BASE) +#define FM4_CRG ((FM4_CRG_TypeDef *)FM4_CRG_BASE) +#define FM4_HWWDT ((FM4_HWWDT_TypeDef *)FM4_HWWDT_BASE) +#define FM4_SWWDT ((FM4_SWWDT_TypeDef *)FM4_SWWDT_BASE) +#define FM4_DTIM ((FM4_DTIM_TypeDef *)FM4_DTIM_BASE) +#define FM4_MFT0_FRT ((FM4_MFT_FRT_TypeDef *)FM4_MFT0_FRT_BASE) +#define FM4_MFT0_OCU ((FM4_MFT_OCU_TypeDef *)FM4_MFT0_OCU_BASE) +#define FM4_MFT0_WFG ((FM4_MFT_WFG_TypeDef *)FM4_MFT0_WFG_BASE) +#define FM4_MFT0_ICU ((FM4_MFT_ICU_TypeDef *)FM4_MFT0_ICU_BASE) +#define FM4_MFT0_ADCMP ((FM4_MFT_ADCMP_TypeDef *)FM4_MFT0_ADCMP_BASE) +#define FM4_MFT1_FRT ((FM4_MFT_FRT_TypeDef *)FM4_MFT1_FRT_BASE) +#define FM4_MFT1_OCU ((FM4_MFT_OCU_TypeDef *)FM4_MFT1_OCU_BASE) +#define FM4_MFT1_WFG ((FM4_MFT_WFG_TypeDef *)FM4_MFT1_WFG_BASE) +#define FM4_MFT1_ICU ((FM4_MFT_ICU_TypeDef *)FM4_MFT1_ICU_BASE) +#define FM4_MFT1_ADCMP ((FM4_MFT_ADCMP_TypeDef *)FM4_MFT1_ADCMP_BASE) +#define FM4_MFT2_FRT ((FM4_MFT_FRT_TypeDef *)FM4_MFT2_FRT_BASE) +#define FM4_MFT2_OCU ((FM4_MFT_OCU_TypeDef *)FM4_MFT2_OCU_BASE) +#define FM4_MFT2_WFG ((FM4_MFT_WFG_TypeDef *)FM4_MFT2_WFG_BASE) +#define FM4_MFT2_ICU ((FM4_MFT_ICU_TypeDef *)FM4_MFT2_ICU_BASE) +#define FM4_MFT2_ADCMP ((FM4_MFT_ADCMP_TypeDef *)FM4_MFT2_ADCMP_BASE) +#define FM4_MFT_PPG ((FM4_MFT_PPG_TypeDef *)FM4_MFT_PPG_BASE) +#define FM4_BT0_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT0_PPG_BASE) +#define FM4_BT0_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT0_PWM_BASE) +#define FM4_BT0_RT ((FM4_BT_RT_TypeDef *)FM4_BT0_RT_BASE) +#define FM4_BT0_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT0_PWC_BASE) +#define FM4_BT1_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT1_PPG_BASE) +#define FM4_BT1_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT1_PWM_BASE) +#define FM4_BT1_RT ((FM4_BT_RT_TypeDef *)FM4_BT1_RT_BASE) +#define FM4_BT1_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT1_PWC_BASE) +#define FM4_BT2_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT2_PPG_BASE) +#define FM4_BT2_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT2_PWM_BASE) +#define FM4_BT2_RT ((FM4_BT_RT_TypeDef *)FM4_BT2_RT_BASE) +#define FM4_BT2_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT2_PWC_BASE) +#define FM4_BT3_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT3_PPG_BASE) +#define FM4_BT3_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT3_PWM_BASE) +#define FM4_BT3_RT ((FM4_BT_RT_TypeDef *)FM4_BT3_RT_BASE) +#define FM4_BT3_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT3_PWC_BASE) +#define FM4_BT4_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT4_PPG_BASE) +#define FM4_BT4_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT4_PWM_BASE) +#define FM4_BT4_RT ((FM4_BT_RT_TypeDef *)FM4_BT4_RT_BASE) +#define FM4_BT4_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT4_PWC_BASE) +#define FM4_BT5_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT5_PPG_BASE) +#define FM4_BT5_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT5_PWM_BASE) +#define FM4_BT5_RT ((FM4_BT_RT_TypeDef *)FM4_BT5_RT_BASE) +#define FM4_BT5_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT5_PWC_BASE) +#define FM4_BT6_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT6_PPG_BASE) +#define FM4_BT6_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT6_PWM_BASE) +#define FM4_BT6_RT ((FM4_BT_RT_TypeDef *)FM4_BT6_RT_BASE) +#define FM4_BT6_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT6_PWC_BASE) +#define FM4_BT7_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT7_PPG_BASE) +#define FM4_BT7_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT7_PWM_BASE) +#define FM4_BT7_RT ((FM4_BT_RT_TypeDef *)FM4_BT7_RT_BASE) +#define FM4_BT7_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT7_PWC_BASE) +#define FM4_BTIOSEL03 ((FM4_BTIOSEL03_TypeDef *)FM4_BTIOSEL03_BASE) +#define FM4_BTIOSEL47 ((FM4_BTIOSEL47_TypeDef *)FM4_BTIOSEL47_BASE) +#define FM4_BT8_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT8_PPG_BASE) +#define FM4_BT8_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT8_PWM_BASE) +#define FM4_BT8_RT ((FM4_BT_RT_TypeDef *)FM4_BT8_RT_BASE) +#define FM4_BT8_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT8_PWC_BASE) +#define FM4_BT9_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT9_PPG_BASE) +#define FM4_BT9_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT9_PWM_BASE) +#define FM4_BT9_RT ((FM4_BT_RT_TypeDef *)FM4_BT9_RT_BASE) +#define FM4_BT9_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT9_PWC_BASE) +#define FM4_BT10_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT10_PPG_BASE) +#define FM4_BT10_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT10_PWM_BASE) +#define FM4_BT10_RT ((FM4_BT_RT_TypeDef *)FM4_BT10_RT_BASE) +#define FM4_BT10_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT10_PWC_BASE) +#define FM4_BT11_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT11_PPG_BASE) +#define FM4_BT11_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT11_PWM_BASE) +#define FM4_BT11_RT ((FM4_BT_RT_TypeDef *)FM4_BT11_RT_BASE) +#define FM4_BT11_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT11_PWC_BASE) +#define FM4_BT12_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT12_PPG_BASE) +#define FM4_BT12_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT12_PWM_BASE) +#define FM4_BT12_RT ((FM4_BT_RT_TypeDef *)FM4_BT12_RT_BASE) +#define FM4_BT12_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT12_PWC_BASE) +#define FM4_BT13_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT13_PPG_BASE) +#define FM4_BT13_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT13_PWM_BASE) +#define FM4_BT13_RT ((FM4_BT_RT_TypeDef *)FM4_BT13_RT_BASE) +#define FM4_BT13_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT13_PWC_BASE) +#define FM4_BT14_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT14_PPG_BASE) +#define FM4_BT14_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT14_PWM_BASE) +#define FM4_BT14_RT ((FM4_BT_RT_TypeDef *)FM4_BT14_RT_BASE) +#define FM4_BT14_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT14_PWC_BASE) +#define FM4_BT15_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT15_PPG_BASE) +#define FM4_BT15_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT15_PWM_BASE) +#define FM4_BT15_RT ((FM4_BT_RT_TypeDef *)FM4_BT15_RT_BASE) +#define FM4_BT15_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT15_PWC_BASE) +#define FM4_BTIOSEL8B ((FM4_BTIOSEL8B_TypeDef *)FM4_BTIOSEL8B_BASE) +#define FM4_BTIOSELCF ((FM4_BTIOSELCF_TypeDef *)FM4_BTIOSELCF_BASE) +#define FM4_SBSSR ((FM4_SBSSR_TypeDef *)FM4_SBSSR_BASE) +#define FM4_QPRC0 ((FM4_QPRC_TypeDef *)FM4_QPRC0_BASE) +#define FM4_QPRC1 ((FM4_QPRC_TypeDef *)FM4_QPRC1_BASE) +#define FM4_QPRC2 ((FM4_QPRC_TypeDef *)FM4_QPRC2_BASE) +#define FM4_QPRC3 ((FM4_QPRC_TypeDef *)FM4_QPRC3_BASE) +#define FM4_QPRC0_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC0_NF_BASE) +#define FM4_QPRC1_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC1_NF_BASE) +#define FM4_QPRC2_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC2_NF_BASE) +#define FM4_QPRC3_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC3_NF_BASE) +#define FM4_ADC0 ((FM4_ADC_TypeDef *)FM4_ADC0_BASE) +#define FM4_ADC1 ((FM4_ADC_TypeDef *)FM4_ADC1_BASE) +#define FM4_ADC2 ((FM4_ADC_TypeDef *)FM4_ADC2_BASE) +#define FM4_DAC0 ((FM4_DAC_TypeDef *)FM4_DAC0_BASE) +#define FM4_DAC1 ((FM4_DAC_TypeDef *)FM4_DAC1_BASE) +#define FM4_CRTRIM ((FM4_CRTRIM_TypeDef *)FM4_CRTRIM_BASE) +#define FM4_EXTI ((FM4_EXTI_TypeDef *)FM4_EXTI_BASE) +#define FM4_INTREQ ((FM4_INTREQ_TypeDef *)FM4_INTREQ_BASE) +#define FM4_IRQSEL ((FM4_IRQSEL_TypeDef *)FM4_IRQSEL_BASE) +#define FM4_GPIO ((FM4_GPIO_TypeDef *)FM4_GPIO_BASE) +#define FM4_LVD ((FM4_LVD_TypeDef *)FM4_LVD_BASE) +#define FM4_DS ((FM4_DS_TypeDef *)FM4_DS_BASE) +#define FM4_USBCLK ((FM4_USBCLK_TypeDef *)FM4_USBCLK_BASE) +#define FM4_CANPRES ((FM4_CANPRE_TypeDef *)FM4_CANPRES_BASE) +#define FM4_MFS0 ((FM4_MFS_TypeDef *)FM4_MFS0_BASE) +#define FM4_MFS1 ((FM4_MFS_TypeDef *)FM4_MFS1_BASE) +#define FM4_MFS2 ((FM4_MFS_TypeDef *)FM4_MFS2_BASE) +#define FM4_MFS3 ((FM4_MFS_TypeDef *)FM4_MFS3_BASE) +#define FM4_MFS4 ((FM4_MFS_TypeDef *)FM4_MFS4_BASE) +#define FM4_MFS5 ((FM4_MFS_TypeDef *)FM4_MFS5_BASE) +#define FM4_MFS6 ((FM4_MFS_TypeDef *)FM4_MFS6_BASE) +#define FM4_MFS7 ((FM4_MFS_TypeDef *)FM4_MFS7_BASE) +#define FM4_MFS8 ((FM4_MFS_TypeDef *)FM4_MFS8_BASE) +#define FM4_MFS9 ((FM4_MFS_TypeDef *)FM4_MFS9_BASE) +#define FM4_MFS10 ((FM4_MFS_TypeDef *)FM4_MFS10_BASE) +#define FM4_MFS11 ((FM4_MFS_TypeDef *)FM4_MFS11_BASE) +#define FM4_MFS12 ((FM4_MFS_TypeDef *)FM4_MFS12_BASE) +#define FM4_MFS13 ((FM4_MFS_TypeDef *)FM4_MFS13_BASE) +#define FM4_MFS14 ((FM4_MFS_TypeDef *)FM4_MFS14_BASE) +#define FM4_MFS15 ((FM4_MFS_TypeDef *)FM4_MFS15_BASE) +#define FM4_CRC ((FM4_CRC_TypeDef *)FM4_CRC_BASE) +#define FM4_WC ((FM4_WC_TypeDef *)FM4_WC_BASE) +#define FM4_RTC ((FM4_RTC_TypeDef *)FM4_RTC_BASE) +#define FM4_LCR ((FM4_LCR_TypeDef *)FM4_LCR_BASE) +#define FM4_CLK_GATING ((FM4_CLK_GATING_TypeDef *)FM4_CLK_GATING_BASE) +#define FM4_PLL_CONTROL ((FM4_PLL_CONTROL_TypeDef *)FM4_PLL_CONTROL_BASE) +#define FM4_EXBUS ((FM4_EXBUS_TypeDef *)FM4_EXBUS_BASE) +#define FM4_USB0 ((FM4_USB_TypeDef *)FM4_USB0_BASE) +#define FM4_DMAC ((FM4_DMAC_TypeDef *)FM4_DMAC_BASE) +#define FM4_DSTC ((FM4_DSTC_TypeDef *)FM4_DSTC_BASE) +#define FM4_CAN0 ((FM4_CAN_TypeDef *)FM4_CAN0_BASE) +#define FM4_CAN1 ((FM4_CAN_TypeDef *)FM4_CAN1_BASE) +#define FM4_SDIF ((FM4_SDIF_TypeDef *)FM4_SDIF_BASE) + +/****************************************************************************** + * Peripheral Bit Band Alias declaration + ******************************************************************************/ + +/* Work Flash interface registers */ +#define bFM4_WORKFLASH_IF_WFASZR_ASZ *((volatile unsigned int*)(0x23C00000UL)) +#define bFM4_WORKFLASH_IF_WFRWTR_RWT0 *((volatile unsigned int*)(0x23C00080UL)) +#define bFM4_WORKFLASH_IF_WFRWTR_RWT1 *((volatile unsigned int*)(0x23C00084UL)) +#define bFM4_WORKFLASH_IF_WFRWTR_RWT2 *((volatile unsigned int*)(0x23C00088UL)) +#define bFM4_WORKFLASH_IF_WFSTR_RDY *((volatile unsigned int*)(0x23C00100UL)) +#define bFM4_WORKFLASH_IF_WFSTR_HNG *((volatile unsigned int*)(0x23C00104UL)) + +/* Flash interface registers */ +#define bFM4_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) +#define bFM4_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) +#define bFM4_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) +#define bFM4_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) +#define bFM4_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) +#define bFM4_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) +#define bFM4_FLASH_IF_FSTR_ERR *((volatile unsigned int*)(0x42000108UL)) +#define bFM4_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) +#define bFM4_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) +#define bFM4_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) +#define bFM4_FLASH_IF_FBFCR_BE *((volatile unsigned int*)(0x42000280UL)) +#define bFM4_FLASH_IF_FBFCR_BS *((volatile unsigned int*)(0x42000284UL)) +#define bFM4_FLASH_IF_FICR_RDYIE *((volatile unsigned int*)(0x42000400UL)) +#define bFM4_FLASH_IF_FICR_HANGIE *((volatile unsigned int*)(0x42000404UL)) +#define bFM4_FLASH_IF_FICR_ERRIE *((volatile unsigned int*)(0x42000408UL)) +#define bFM4_FLASH_IF_FISR_RDYIF *((volatile unsigned int*)(0x42000480UL)) +#define bFM4_FLASH_IF_FISR_HANGIF *((volatile unsigned int*)(0x42000484UL)) +#define bFM4_FLASH_IF_FISR_ERRIF *((volatile unsigned int*)(0x42000488UL)) +#define bFM4_FLASH_IF_FICLR_RDYIC *((volatile unsigned int*)(0x42000500UL)) +#define bFM4_FLASH_IF_FICLR_HANGIC *((volatile unsigned int*)(0x42000504UL)) +#define bFM4_FLASH_IF_FICLR_ERRIC *((volatile unsigned int*)(0x42000508UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) +#define bFM4_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) +#define bFM4_FLASH_IF_CRTRMM_TTRMM0 *((volatile unsigned int*)(0x42002040UL)) +#define bFM4_FLASH_IF_CRTRMM_TTRMM1 *((volatile unsigned int*)(0x42002044UL)) +#define bFM4_FLASH_IF_CRTRMM_TTRMM2 *((volatile unsigned int*)(0x42002048UL)) +#define bFM4_FLASH_IF_CRTRMM_TTRMM3 *((volatile unsigned int*)(0x4200204CUL)) +#define bFM4_FLASH_IF_CRTRMM_TTRMM4 *((volatile unsigned int*)(0x42002050UL)) + +/* Unique ID registers */ +#define bFM4_UNIQUE_ID_UIDR0_UID0 *((volatile unsigned int*)(0x42004010UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID1 *((volatile unsigned int*)(0x42004014UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID2 *((volatile unsigned int*)(0x42004018UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID3 *((volatile unsigned int*)(0x4200401CUL)) +#define bFM4_UNIQUE_ID_UIDR0_UID4 *((volatile unsigned int*)(0x42004020UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID5 *((volatile unsigned int*)(0x42004024UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID6 *((volatile unsigned int*)(0x42004028UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID7 *((volatile unsigned int*)(0x4200402CUL)) +#define bFM4_UNIQUE_ID_UIDR0_UID8 *((volatile unsigned int*)(0x42004030UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID9 *((volatile unsigned int*)(0x42004034UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID10 *((volatile unsigned int*)(0x42004038UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID11 *((volatile unsigned int*)(0x4200403CUL)) +#define bFM4_UNIQUE_ID_UIDR0_UID12 *((volatile unsigned int*)(0x42004040UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID13 *((volatile unsigned int*)(0x42004044UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID14 *((volatile unsigned int*)(0x42004048UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID15 *((volatile unsigned int*)(0x4200404CUL)) +#define bFM4_UNIQUE_ID_UIDR0_UID16 *((volatile unsigned int*)(0x42004050UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID17 *((volatile unsigned int*)(0x42004054UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID18 *((volatile unsigned int*)(0x42004058UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID19 *((volatile unsigned int*)(0x4200405CUL)) +#define bFM4_UNIQUE_ID_UIDR0_UID20 *((volatile unsigned int*)(0x42004060UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID21 *((volatile unsigned int*)(0x42004064UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID22 *((volatile unsigned int*)(0x42004068UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID23 *((volatile unsigned int*)(0x4200406CUL)) +#define bFM4_UNIQUE_ID_UIDR0_UID24 *((volatile unsigned int*)(0x42004070UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID25 *((volatile unsigned int*)(0x42004074UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID26 *((volatile unsigned int*)(0x42004078UL)) +#define bFM4_UNIQUE_ID_UIDR0_UID27 *((volatile unsigned int*)(0x4200407CUL)) +#define bFM4_UNIQUE_ID_UIDR1_UID28 *((volatile unsigned int*)(0x42004080UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID29 *((volatile unsigned int*)(0x42004084UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID30 *((volatile unsigned int*)(0x42004088UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID31 *((volatile unsigned int*)(0x4200408CUL)) +#define bFM4_UNIQUE_ID_UIDR1_UID32 *((volatile unsigned int*)(0x42004090UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID33 *((volatile unsigned int*)(0x42004094UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID34 *((volatile unsigned int*)(0x42004098UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID35 *((volatile unsigned int*)(0x4200409CUL)) +#define bFM4_UNIQUE_ID_UIDR1_UID36 *((volatile unsigned int*)(0x420040A0UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID37 *((volatile unsigned int*)(0x420040A4UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID38 *((volatile unsigned int*)(0x420040A8UL)) +#define bFM4_UNIQUE_ID_UIDR1_UID39 *((volatile unsigned int*)(0x420040ACUL)) +#define bFM4_UNIQUE_ID_UIDR1_UID40 *((volatile unsigned int*)(0x420040B0UL)) + +/* ECC_CAPTURE registers */ +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD0 *((volatile unsigned int*)(0x42006000UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD1 *((volatile unsigned int*)(0x42006004UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD2 *((volatile unsigned int*)(0x42006008UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD3 *((volatile unsigned int*)(0x4200600CUL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD4 *((volatile unsigned int*)(0x42006010UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD5 *((volatile unsigned int*)(0x42006014UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD6 *((volatile unsigned int*)(0x42006018UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD7 *((volatile unsigned int*)(0x4200601CUL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD8 *((volatile unsigned int*)(0x42006020UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD9 *((volatile unsigned int*)(0x42006024UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD10 *((volatile unsigned int*)(0x42006028UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD11 *((volatile unsigned int*)(0x4200602CUL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD12 *((volatile unsigned int*)(0x42006030UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD13 *((volatile unsigned int*)(0x42006034UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD14 *((volatile unsigned int*)(0x42006038UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD15 *((volatile unsigned int*)(0x4200603CUL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD16 *((volatile unsigned int*)(0x42006040UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD17 *((volatile unsigned int*)(0x42006044UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD18 *((volatile unsigned int*)(0x42006048UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD19 *((volatile unsigned int*)(0x4200604CUL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD20 *((volatile unsigned int*)(0x42006050UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD21 *((volatile unsigned int*)(0x42006054UL)) +#define bFM4_ECC_CAPTURE_FERRAD_ERRAD22 *((volatile unsigned int*)(0x42006058UL)) + +/* Clock and reset registers */ +#define bFM4_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) +#define bFM4_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) +#define bFM4_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) +#define bFM4_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) +#define bFM4_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) +#define bFM4_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) +#define bFM4_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) +#define bFM4_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) +#define bFM4_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) +#define bFM4_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) +#define bFM4_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) +#define bFM4_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) +#define bFM4_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) +#define bFM4_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) +#define bFM4_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) +#define bFM4_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) +#define bFM4_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) +#define bFM4_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) +#define bFM4_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) +#define bFM4_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) +#define bFM4_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) +#define bFM4_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) +#define bFM4_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) +#define bFM4_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) +#define bFM4_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) +#define bFM4_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) +#define bFM4_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) +#define bFM4_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) +#define bFM4_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) +#define bFM4_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) +#define bFM4_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) +#define bFM4_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) +#define bFM4_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) +#define bFM4_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) +#define bFM4_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) +#define bFM4_CRG_TTC_PSR_TTC0 *((volatile unsigned int*)(0x42200500UL)) +#define bFM4_CRG_TTC_PSR_TTC1 *((volatile unsigned int*)(0x42200504UL)) +#define bFM4_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) +#define bFM4_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) +#define bFM4_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) +#define bFM4_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) +#define bFM4_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) +#define bFM4_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) +#define bFM4_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) +#define bFM4_CRG_CSW_TMR_SOWT3 *((volatile unsigned int*)(0x4220061CUL)) +#define bFM4_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) +#define bFM4_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) +#define bFM4_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) +#define bFM4_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) +#define bFM4_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) +#define bFM4_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) +#define bFM4_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) +#define bFM4_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) +#define bFM4_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) +#define bFM4_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) +#define bFM4_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) +#define bFM4_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) +#define bFM4_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) +#define bFM4_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) +#define bFM4_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) +#define bFM4_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) +#define bFM4_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) +#define bFM4_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) +#define bFM4_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) +#define bFM4_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) +#define bFM4_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) +#define bFM4_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) +#define bFM4_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) +#define bFM4_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) +#define bFM4_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) +#define bFM4_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) +#define bFM4_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) +#define bFM4_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) +#define bFM4_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) +#define bFM4_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) +#define bFM4_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) +#define bFM4_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) +#define bFM4_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) +#define bFM4_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) +#define bFM4_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) +#define bFM4_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) +#define bFM4_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) +#define bFM4_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) +#define bFM4_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) +#define bFM4_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) +#define bFM4_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) + +/* Hardware watchdog registers */ +#define bFM4_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) +#define bFM4_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) +#define bFM4_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) + +/* Software watchdog registers */ +#define bFM4_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) +#define bFM4_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) +#define bFM4_SWWDT_WDOGCONTROL_TWD0 *((volatile unsigned int*)(0x42240108UL)) +#define bFM4_SWWDT_WDOGCONTROL_TWD1 *((volatile unsigned int*)(0x4224010CUL)) +#define bFM4_SWWDT_WDOGCONTROL_SPM *((volatile unsigned int*)(0x42240110UL)) +#define bFM4_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) +#define bFM4_SWWDT_WDOGSPMC_TGR *((volatile unsigned int*)(0x42240300UL)) + +/* Dual timer 1/2 registers */ +#define bFM4_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) +#define bFM4_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) +#define bFM4_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) +#define bFM4_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) +#define bFM4_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) +#define bFM4_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) +#define bFM4_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) +#define bFM4_DTIM_TIMER1RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0200UL)) +#define bFM4_DTIM_TIMER1MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0280UL)) +#define bFM4_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) +#define bFM4_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) +#define bFM4_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) +#define bFM4_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) +#define bFM4_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) +#define bFM4_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) +#define bFM4_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) +#define bFM4_DTIM_TIMER2RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0600UL)) +#define bFM4_DTIM_TIMER2MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0680UL)) + +/* Multifunction Timer unit 0 Free Running Timer registers */ +#define bFM4_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42402900UL)) +#define bFM4_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42402904UL)) +#define bFM4_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42402908UL)) +#define bFM4_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240290cUL)) +#define bFM4_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42402910UL)) +#define bFM4_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42402914UL)) +#define bFM4_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42402918UL)) +#define bFM4_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240291cUL)) +#define bFM4_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42402920UL)) +#define bFM4_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42402924UL)) +#define bFM4_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42402934UL)) +#define bFM4_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42402938UL)) +#define bFM4_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240293cUL)) +#define bFM4_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42402a80UL)) +#define bFM4_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42402a84UL)) +#define bFM4_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42402a88UL)) +#define bFM4_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x42402a8cUL)) +#define bFM4_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42402a90UL)) +#define bFM4_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42402a94UL)) +#define bFM4_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42402a98UL)) +#define bFM4_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x42402a9cUL)) +#define bFM4_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42402aa0UL)) +#define bFM4_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42402aa4UL)) +#define bFM4_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42402ab4UL)) +#define bFM4_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42402ab8UL)) +#define bFM4_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x42402abcUL)) +#define bFM4_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42402c00UL)) +#define bFM4_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42402c04UL)) +#define bFM4_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42402c08UL)) +#define bFM4_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42402c0cUL)) +#define bFM4_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42402c10UL)) +#define bFM4_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42402c14UL)) +#define bFM4_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42402c18UL)) +#define bFM4_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42402c1cUL)) +#define bFM4_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42402c20UL)) +#define bFM4_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42402c24UL)) +#define bFM4_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42402c34UL)) +#define bFM4_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42402c38UL)) +#define bFM4_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42402c3cUL)) +#define bFM4_MFT0_FRT_TCAL_STOP00 *((volatile unsigned int*)(0x42402c80UL)) +#define bFM4_MFT0_FRT_TCAL_STOP01 *((volatile unsigned int*)(0x42402c84UL)) +#define bFM4_MFT0_FRT_TCAL_STOP02 *((volatile unsigned int*)(0x42402c88UL)) +#define bFM4_MFT0_FRT_TCAL_STOP10 *((volatile unsigned int*)(0x42402c8cUL)) +#define bFM4_MFT0_FRT_TCAL_STOP11 *((volatile unsigned int*)(0x42402c90UL)) +#define bFM4_MFT0_FRT_TCAL_STOP12 *((volatile unsigned int*)(0x42402c94UL)) +#define bFM4_MFT0_FRT_TCAL_STOP20 *((volatile unsigned int*)(0x42402c98UL)) +#define bFM4_MFT0_FRT_TCAL_STOP21 *((volatile unsigned int*)(0x42402c9cUL)) +#define bFM4_MFT0_FRT_TCAL_STOP22 *((volatile unsigned int*)(0x42402ca0UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR00 *((volatile unsigned int*)(0x42402cc0UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR01 *((volatile unsigned int*)(0x42402cc4UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR02 *((volatile unsigned int*)(0x42402cc8UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR10 *((volatile unsigned int*)(0x42402cccUL)) +#define bFM4_MFT0_FRT_TCAL_SCLR11 *((volatile unsigned int*)(0x42402cd0UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR12 *((volatile unsigned int*)(0x42402cd4UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR20 *((volatile unsigned int*)(0x42402cd8UL)) +#define bFM4_MFT0_FRT_TCAL_SCLR21 *((volatile unsigned int*)(0x42402cdcUL)) +#define bFM4_MFT0_FRT_TCAL_SCLR22 *((volatile unsigned int*)(0x42402ce0UL)) + +/* Multifunction Timer unit 0 Output Compare Unit registers */ +#define bFM4_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42402300UL)) +#define bFM4_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42402304UL)) +#define bFM4_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42402310UL)) +#define bFM4_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42402314UL)) +#define bFM4_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42402318UL)) +#define bFM4_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240231cUL)) +#define bFM4_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42402320UL)) +#define bFM4_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42402324UL)) +#define bFM4_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42402330UL)) +#define bFM4_MFT0_OCU_OCSB10_FM4 *((volatile unsigned int*)(0x4240233cUL)) +#define bFM4_MFT0_OCU_OCSA32_CST0 *((volatile unsigned int*)(0x42402380UL)) +#define bFM4_MFT0_OCU_OCSA32_CST1 *((volatile unsigned int*)(0x42402384UL)) +#define bFM4_MFT0_OCU_OCSA32_IOE0 *((volatile unsigned int*)(0x42402390UL)) +#define bFM4_MFT0_OCU_OCSA32_IOE1 *((volatile unsigned int*)(0x42402394UL)) +#define bFM4_MFT0_OCU_OCSA32_IOP0 *((volatile unsigned int*)(0x42402398UL)) +#define bFM4_MFT0_OCU_OCSA32_IOP1 *((volatile unsigned int*)(0x4240239cUL)) +#define bFM4_MFT0_OCU_OCSB32_OTD0 *((volatile unsigned int*)(0x424023a0UL)) +#define bFM4_MFT0_OCU_OCSB32_OTD1 *((volatile unsigned int*)(0x424023a4UL)) +#define bFM4_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424023b0UL)) +#define bFM4_MFT0_OCU_OCSB32_FM4 *((volatile unsigned int*)(0x424023bcUL)) +#define bFM4_MFT0_OCU_OCSA54_CST0 *((volatile unsigned int*)(0x42402400UL)) +#define bFM4_MFT0_OCU_OCSA54_CST1 *((volatile unsigned int*)(0x42402404UL)) +#define bFM4_MFT0_OCU_OCSA54_IOE0 *((volatile unsigned int*)(0x42402410UL)) +#define bFM4_MFT0_OCU_OCSA54_IOE1 *((volatile unsigned int*)(0x42402414UL)) +#define bFM4_MFT0_OCU_OCSA54_IOP0 *((volatile unsigned int*)(0x42402418UL)) +#define bFM4_MFT0_OCU_OCSA54_IOP1 *((volatile unsigned int*)(0x4240241cUL)) +#define bFM4_MFT0_OCU_OCSB54_OTD0 *((volatile unsigned int*)(0x42402420UL)) +#define bFM4_MFT0_OCU_OCSB54_OTD1 *((volatile unsigned int*)(0x42402424UL)) +#define bFM4_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42402430UL)) +#define bFM4_MFT0_OCU_OCSB54_FM4 *((volatile unsigned int*)(0x4240243cUL)) +#define bFM4_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424024a0UL)) +#define bFM4_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424024a4UL)) +#define bFM4_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424024a8UL)) +#define bFM4_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424024acUL)) +#define bFM4_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424024b0UL)) +#define bFM4_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424024b4UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42402d00UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42402d04UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42402d08UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42402d0cUL)) +#define bFM4_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42402d10UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42402d14UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42402d18UL)) +#define bFM4_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42402d1cUL)) +#define bFM4_MFT0_OCU_OCFS32_FSO00 *((volatile unsigned int*)(0x42402d20UL)) +#define bFM4_MFT0_OCU_OCFS32_FSO01 *((volatile unsigned int*)(0x42402d24UL)) +#define bFM4_MFT0_OCU_OCFS32_FSO02 *((volatile unsigned int*)(0x42402d28UL)) +#define bFM4_MFT0_OCU_OCFS32_FSO03 *((volatile unsigned int*)(0x42402d2cUL)) +#define bFM4_MFT0_OCU_OCFS32_FSO10 *((volatile unsigned int*)(0x42402d30UL)) +#define bFM4_MFT0_OCU_OCFS32_FSO11 *((volatile unsigned int*)(0x42402d34UL)) +#define bFM4_MFT0_OCU_OCFS32_FSO12 *((volatile unsigned int*)(0x42402d38UL)) +#define bFM4_MFT0_OCU_OCFS32_FSO13 *((volatile unsigned int*)(0x42402d3cUL)) +#define bFM4_MFT0_OCU_OCFS54_FSO00 *((volatile unsigned int*)(0x42402d40UL)) +#define bFM4_MFT0_OCU_OCFS54_FSO01 *((volatile unsigned int*)(0x42402d44UL)) +#define bFM4_MFT0_OCU_OCFS54_FSO02 *((volatile unsigned int*)(0x42402d48UL)) +#define bFM4_MFT0_OCU_OCFS54_FSO03 *((volatile unsigned int*)(0x42402d4cUL)) +#define bFM4_MFT0_OCU_OCFS54_FSO10 *((volatile unsigned int*)(0x42402d50UL)) +#define bFM4_MFT0_OCU_OCFS54_FSO11 *((volatile unsigned int*)(0x42402d54UL)) +#define bFM4_MFT0_OCU_OCFS54_FSO12 *((volatile unsigned int*)(0x42402d58UL)) +#define bFM4_MFT0_OCU_OCFS54_FSO13 *((volatile unsigned int*)(0x42402d5cUL)) + +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define bFM4_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42403480UL)) +#define bFM4_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42403484UL)) +#define bFM4_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42403488UL)) +#define bFM4_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42403498UL)) +#define bFM4_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240349cUL)) +#define bFM4_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424034a0UL)) +#define bFM4_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424034a4UL)) +#define bFM4_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424034a8UL)) +#define bFM4_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424034acUL)) +#define bFM4_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42403500UL)) +#define bFM4_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42403504UL)) +#define bFM4_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42403508UL)) +#define bFM4_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42403518UL)) +#define bFM4_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240351cUL)) +#define bFM4_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42403520UL)) +#define bFM4_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42403524UL)) +#define bFM4_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42403528UL)) +#define bFM4_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240352cUL)) +#define bFM4_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42403580UL)) +#define bFM4_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42403584UL)) +#define bFM4_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42403588UL)) +#define bFM4_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42403598UL)) +#define bFM4_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240359cUL)) +#define bFM4_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424035a0UL)) +#define bFM4_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424035a4UL)) +#define bFM4_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424035a8UL)) +#define bFM4_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424035acUL)) +#define bFM4_MFT0_WFG_WFIR_DTIFA *((volatile unsigned int*)(0x42403600UL)) +#define bFM4_MFT0_WFG_WFIR_DTICA *((volatile unsigned int*)(0x42403604UL)) +#define bFM4_MFT0_WFG_WFIR_DTIFB *((volatile unsigned int*)(0x42403608UL)) +#define bFM4_MFT0_WFG_WFIR_DTICB *((volatile unsigned int*)(0x4240360cUL)) +#define bFM4_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42403610UL)) +#define bFM4_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42403614UL)) +#define bFM4_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42403618UL)) +#define bFM4_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240361cUL)) +#define bFM4_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42403620UL)) +#define bFM4_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42403624UL)) +#define bFM4_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42403628UL)) +#define bFM4_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240362cUL)) +#define bFM4_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42403630UL)) +#define bFM4_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42403634UL)) +#define bFM4_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42403638UL)) +#define bFM4_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240363cUL)) +#define bFM4_MFT0_WFG_NZCL_DTIEA *((volatile unsigned int*)(0x42403680UL)) +#define bFM4_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42403684UL)) +#define bFM4_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42403688UL)) +#define bFM4_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240368cUL)) +#define bFM4_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42403690UL)) +#define bFM4_MFT0_WFG_NZCL_DTIEB *((volatile unsigned int*)(0x42403694UL)) +#define bFM4_MFT0_WFG_NZCL_DIMA *((volatile unsigned int*)(0x424036a0UL)) +#define bFM4_MFT0_WFG_NZCL_DIMB *((volatile unsigned int*)(0x424036a4UL)) +#define bFM4_MFT0_WFG_NZCL_WIM10 *((volatile unsigned int*)(0x424036b0UL)) +#define bFM4_MFT0_WFG_NZCL_WIM32 *((volatile unsigned int*)(0x424036b4UL)) +#define bFM4_MFT0_WFG_NZCL_WIM54 *((volatile unsigned int*)(0x424036b8UL)) + +/* Multifunction Timer unit 0 Input Capture Unit registers */ +#define bFM4_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42402d80UL)) +#define bFM4_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42402d84UL)) +#define bFM4_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42402d88UL)) +#define bFM4_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42402d8cUL)) +#define bFM4_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42402d90UL)) +#define bFM4_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42402d94UL)) +#define bFM4_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42402d98UL)) +#define bFM4_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42402d9cUL)) +#define bFM4_MFT0_ICU_ICFS32_FSI00 *((volatile unsigned int*)(0x42402da0UL)) +#define bFM4_MFT0_ICU_ICFS32_FSI01 *((volatile unsigned int*)(0x42402da4UL)) +#define bFM4_MFT0_ICU_ICFS32_FSI02 *((volatile unsigned int*)(0x42402da8UL)) +#define bFM4_MFT0_ICU_ICFS32_FSI03 *((volatile unsigned int*)(0x42402dacUL)) +#define bFM4_MFT0_ICU_ICFS32_FSI10 *((volatile unsigned int*)(0x42402db0UL)) +#define bFM4_MFT0_ICU_ICFS32_FSI11 *((volatile unsigned int*)(0x42402db4UL)) +#define bFM4_MFT0_ICU_ICFS32_FSI12 *((volatile unsigned int*)(0x42402db8UL)) +#define bFM4_MFT0_ICU_ICFS32_FSI13 *((volatile unsigned int*)(0x42402dbcUL)) +#define bFM4_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42403080UL)) +#define bFM4_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42403084UL)) +#define bFM4_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42403088UL)) +#define bFM4_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x4240308cUL)) +#define bFM4_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42403090UL)) +#define bFM4_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42403094UL)) +#define bFM4_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42403098UL)) +#define bFM4_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x4240309cUL)) +#define bFM4_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x424030a0UL)) +#define bFM4_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x424030a4UL)) +#define bFM4_MFT0_ICU_ICSA32_EG00 *((volatile unsigned int*)(0x42403100UL)) +#define bFM4_MFT0_ICU_ICSA32_EG01 *((volatile unsigned int*)(0x42403104UL)) +#define bFM4_MFT0_ICU_ICSA32_EG10 *((volatile unsigned int*)(0x42403108UL)) +#define bFM4_MFT0_ICU_ICSA32_EG11 *((volatile unsigned int*)(0x4240310cUL)) +#define bFM4_MFT0_ICU_ICSA32_ICE0 *((volatile unsigned int*)(0x42403110UL)) +#define bFM4_MFT0_ICU_ICSA32_ICE1 *((volatile unsigned int*)(0x42403114UL)) +#define bFM4_MFT0_ICU_ICSA32_ICP0 *((volatile unsigned int*)(0x42403118UL)) +#define bFM4_MFT0_ICU_ICSA32_ICP1 *((volatile unsigned int*)(0x4240311cUL)) +#define bFM4_MFT0_ICU_ICSB32_IEI0 *((volatile unsigned int*)(0x42403120UL)) +#define bFM4_MFT0_ICU_ICSB32_IEI1 *((volatile unsigned int*)(0x42403124UL)) + +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define bFM4_MFT0_ADCMP_ACSD0_AMOD *((volatile unsigned int*)(0x42403aa0UL)) +#define bFM4_MFT0_ADCMP_ACSD0_OCUS *((volatile unsigned int*)(0x42403aa4UL)) +#define bFM4_MFT0_ADCMP_ACSD0_DE *((volatile unsigned int*)(0x42403ab0UL)) +#define bFM4_MFT0_ADCMP_ACSD0_PE *((volatile unsigned int*)(0x42403ab4UL)) +#define bFM4_MFT0_ADCMP_ACSD0_UE *((volatile unsigned int*)(0x42403ab8UL)) +#define bFM4_MFT0_ADCMP_ACSD0_ZE *((volatile unsigned int*)(0x42403abcUL)) +#define bFM4_MFT0_ADCMP_ACSD1_AMOD *((volatile unsigned int*)(0x42403b20UL)) +#define bFM4_MFT0_ADCMP_ACSD1_OCUS *((volatile unsigned int*)(0x42403b24UL)) +#define bFM4_MFT0_ADCMP_ACSD1_DE *((volatile unsigned int*)(0x42403b30UL)) +#define bFM4_MFT0_ADCMP_ACSD1_PE *((volatile unsigned int*)(0x42403b34UL)) +#define bFM4_MFT0_ADCMP_ACSD1_UE *((volatile unsigned int*)(0x42403b38UL)) +#define bFM4_MFT0_ADCMP_ACSD1_ZE *((volatile unsigned int*)(0x42403b3cUL)) +#define bFM4_MFT0_ADCMP_ACSD2_AMOD *((volatile unsigned int*)(0x42403ba0UL)) +#define bFM4_MFT0_ADCMP_ACSD2_OCUS *((volatile unsigned int*)(0x42403ba4UL)) +#define bFM4_MFT0_ADCMP_ACSD2_DE *((volatile unsigned int*)(0x42403bb0UL)) +#define bFM4_MFT0_ADCMP_ACSD2_PE *((volatile unsigned int*)(0x42403bb4UL)) +#define bFM4_MFT0_ADCMP_ACSD2_UE *((volatile unsigned int*)(0x42403bb8UL)) +#define bFM4_MFT0_ADCMP_ACSD2_ZE *((volatile unsigned int*)(0x42403bbcUL)) +#define bFM4_MFT0_ADCMP_ACSD3_AMOD *((volatile unsigned int*)(0x42403c20UL)) +#define bFM4_MFT0_ADCMP_ACSD3_OCUS *((volatile unsigned int*)(0x42403c24UL)) +#define bFM4_MFT0_ADCMP_ACSD3_DE *((volatile unsigned int*)(0x42403c30UL)) +#define bFM4_MFT0_ADCMP_ACSD3_PE *((volatile unsigned int*)(0x42403c34UL)) +#define bFM4_MFT0_ADCMP_ACSD3_UE *((volatile unsigned int*)(0x42403c38UL)) +#define bFM4_MFT0_ADCMP_ACSD3_ZE *((volatile unsigned int*)(0x42403c3cUL)) +#define bFM4_MFT0_ADCMP_ACSD4_AMOD *((volatile unsigned int*)(0x42403ca0UL)) +#define bFM4_MFT0_ADCMP_ACSD4_OCUS *((volatile unsigned int*)(0x42403ca4UL)) +#define bFM4_MFT0_ADCMP_ACSD4_DE *((volatile unsigned int*)(0x42403cb0UL)) +#define bFM4_MFT0_ADCMP_ACSD4_PE *((volatile unsigned int*)(0x42403cb4UL)) +#define bFM4_MFT0_ADCMP_ACSD4_UE *((volatile unsigned int*)(0x42403cb8UL)) +#define bFM4_MFT0_ADCMP_ACSD4_ZE *((volatile unsigned int*)(0x42403cbcUL)) +#define bFM4_MFT0_ADCMP_ACSD5_AMOD *((volatile unsigned int*)(0x42403d20UL)) +#define bFM4_MFT0_ADCMP_ACSD5_OCUS *((volatile unsigned int*)(0x42403d24UL)) +#define bFM4_MFT0_ADCMP_ACSD5_DE *((volatile unsigned int*)(0x42403d30UL)) +#define bFM4_MFT0_ADCMP_ACSD5_PE *((volatile unsigned int*)(0x42403d34UL)) +#define bFM4_MFT0_ADCMP_ACSD5_UE *((volatile unsigned int*)(0x42403d38UL)) +#define bFM4_MFT0_ADCMP_ACSD5_ZE *((volatile unsigned int*)(0x42403d3cUL)) + +/* Multifunction Timer unit 1 Free Running Timer registers */ +#define bFM4_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42422900UL)) +#define bFM4_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42422904UL)) +#define bFM4_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42422908UL)) +#define bFM4_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242290cUL)) +#define bFM4_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42422910UL)) +#define bFM4_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42422914UL)) +#define bFM4_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42422918UL)) +#define bFM4_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242291cUL)) +#define bFM4_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42422920UL)) +#define bFM4_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42422924UL)) +#define bFM4_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42422934UL)) +#define bFM4_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42422938UL)) +#define bFM4_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242293cUL)) +#define bFM4_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42422a80UL)) +#define bFM4_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42422a84UL)) +#define bFM4_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42422a88UL)) +#define bFM4_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x42422a8cUL)) +#define bFM4_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42422a90UL)) +#define bFM4_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42422a94UL)) +#define bFM4_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42422a98UL)) +#define bFM4_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x42422a9cUL)) +#define bFM4_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42422aa0UL)) +#define bFM4_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42422aa4UL)) +#define bFM4_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42422ab4UL)) +#define bFM4_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42422ab8UL)) +#define bFM4_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x42422abcUL)) +#define bFM4_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42422c00UL)) +#define bFM4_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42422c04UL)) +#define bFM4_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42422c08UL)) +#define bFM4_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42422c0cUL)) +#define bFM4_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42422c10UL)) +#define bFM4_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42422c14UL)) +#define bFM4_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42422c18UL)) +#define bFM4_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42422c1cUL)) +#define bFM4_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42422c20UL)) +#define bFM4_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42422c24UL)) +#define bFM4_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42422c34UL)) +#define bFM4_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42422c38UL)) +#define bFM4_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42422c3cUL)) +#define bFM4_MFT1_FRT_TCAL_STOP00 *((volatile unsigned int*)(0x42422c80UL)) +#define bFM4_MFT1_FRT_TCAL_STOP01 *((volatile unsigned int*)(0x42422c84UL)) +#define bFM4_MFT1_FRT_TCAL_STOP02 *((volatile unsigned int*)(0x42422c88UL)) +#define bFM4_MFT1_FRT_TCAL_STOP10 *((volatile unsigned int*)(0x42422c8cUL)) +#define bFM4_MFT1_FRT_TCAL_STOP11 *((volatile unsigned int*)(0x42422c90UL)) +#define bFM4_MFT1_FRT_TCAL_STOP12 *((volatile unsigned int*)(0x42422c94UL)) +#define bFM4_MFT1_FRT_TCAL_STOP20 *((volatile unsigned int*)(0x42422c98UL)) +#define bFM4_MFT1_FRT_TCAL_STOP21 *((volatile unsigned int*)(0x42422c9cUL)) +#define bFM4_MFT1_FRT_TCAL_STOP22 *((volatile unsigned int*)(0x42422ca0UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR00 *((volatile unsigned int*)(0x42422cc0UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR01 *((volatile unsigned int*)(0x42422cc4UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR02 *((volatile unsigned int*)(0x42422cc8UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR10 *((volatile unsigned int*)(0x42422cccUL)) +#define bFM4_MFT1_FRT_TCAL_SCLR11 *((volatile unsigned int*)(0x42422cd0UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR12 *((volatile unsigned int*)(0x42422cd4UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR20 *((volatile unsigned int*)(0x42422cd8UL)) +#define bFM4_MFT1_FRT_TCAL_SCLR21 *((volatile unsigned int*)(0x42422cdcUL)) +#define bFM4_MFT1_FRT_TCAL_SCLR22 *((volatile unsigned int*)(0x42422ce0UL)) + +/* Multifunction Timer unit 1 Output Compare Unit registers */ +#define bFM4_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42422300UL)) +#define bFM4_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42422304UL)) +#define bFM4_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42422310UL)) +#define bFM4_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42422314UL)) +#define bFM4_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42422318UL)) +#define bFM4_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242231cUL)) +#define bFM4_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42422320UL)) +#define bFM4_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42422324UL)) +#define bFM4_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42422330UL)) +#define bFM4_MFT1_OCU_OCSB10_FM4 *((volatile unsigned int*)(0x4242233cUL)) +#define bFM4_MFT1_OCU_OCSA32_CST0 *((volatile unsigned int*)(0x42422380UL)) +#define bFM4_MFT1_OCU_OCSA32_CST1 *((volatile unsigned int*)(0x42422384UL)) +#define bFM4_MFT1_OCU_OCSA32_IOE0 *((volatile unsigned int*)(0x42422390UL)) +#define bFM4_MFT1_OCU_OCSA32_IOE1 *((volatile unsigned int*)(0x42422394UL)) +#define bFM4_MFT1_OCU_OCSA32_IOP0 *((volatile unsigned int*)(0x42422398UL)) +#define bFM4_MFT1_OCU_OCSA32_IOP1 *((volatile unsigned int*)(0x4242239cUL)) +#define bFM4_MFT1_OCU_OCSB32_OTD0 *((volatile unsigned int*)(0x424223a0UL)) +#define bFM4_MFT1_OCU_OCSB32_OTD1 *((volatile unsigned int*)(0x424223a4UL)) +#define bFM4_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424223b0UL)) +#define bFM4_MFT1_OCU_OCSB32_FM4 *((volatile unsigned int*)(0x424223bcUL)) +#define bFM4_MFT1_OCU_OCSA54_CST0 *((volatile unsigned int*)(0x42422400UL)) +#define bFM4_MFT1_OCU_OCSA54_CST1 *((volatile unsigned int*)(0x42422404UL)) +#define bFM4_MFT1_OCU_OCSA54_IOE0 *((volatile unsigned int*)(0x42422410UL)) +#define bFM4_MFT1_OCU_OCSA54_IOE1 *((volatile unsigned int*)(0x42422414UL)) +#define bFM4_MFT1_OCU_OCSA54_IOP0 *((volatile unsigned int*)(0x42422418UL)) +#define bFM4_MFT1_OCU_OCSA54_IOP1 *((volatile unsigned int*)(0x4242241cUL)) +#define bFM4_MFT1_OCU_OCSB54_OTD0 *((volatile unsigned int*)(0x42422420UL)) +#define bFM4_MFT1_OCU_OCSB54_OTD1 *((volatile unsigned int*)(0x42422424UL)) +#define bFM4_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42422430UL)) +#define bFM4_MFT1_OCU_OCSB54_FM4 *((volatile unsigned int*)(0x4242243cUL)) +#define bFM4_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424224a0UL)) +#define bFM4_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424224a4UL)) +#define bFM4_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424224a8UL)) +#define bFM4_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424224acUL)) +#define bFM4_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424224b0UL)) +#define bFM4_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424224b4UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42422d00UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42422d04UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42422d08UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42422d0cUL)) +#define bFM4_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42422d10UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42422d14UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42422d18UL)) +#define bFM4_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42422d1cUL)) +#define bFM4_MFT1_OCU_OCFS32_FSO00 *((volatile unsigned int*)(0x42422d20UL)) +#define bFM4_MFT1_OCU_OCFS32_FSO01 *((volatile unsigned int*)(0x42422d24UL)) +#define bFM4_MFT1_OCU_OCFS32_FSO02 *((volatile unsigned int*)(0x42422d28UL)) +#define bFM4_MFT1_OCU_OCFS32_FSO03 *((volatile unsigned int*)(0x42422d2cUL)) +#define bFM4_MFT1_OCU_OCFS32_FSO10 *((volatile unsigned int*)(0x42422d30UL)) +#define bFM4_MFT1_OCU_OCFS32_FSO11 *((volatile unsigned int*)(0x42422d34UL)) +#define bFM4_MFT1_OCU_OCFS32_FSO12 *((volatile unsigned int*)(0x42422d38UL)) +#define bFM4_MFT1_OCU_OCFS32_FSO13 *((volatile unsigned int*)(0x42422d3cUL)) +#define bFM4_MFT1_OCU_OCFS54_FSO00 *((volatile unsigned int*)(0x42422d40UL)) +#define bFM4_MFT1_OCU_OCFS54_FSO01 *((volatile unsigned int*)(0x42422d44UL)) +#define bFM4_MFT1_OCU_OCFS54_FSO02 *((volatile unsigned int*)(0x42422d48UL)) +#define bFM4_MFT1_OCU_OCFS54_FSO03 *((volatile unsigned int*)(0x42422d4cUL)) +#define bFM4_MFT1_OCU_OCFS54_FSO10 *((volatile unsigned int*)(0x42422d50UL)) +#define bFM4_MFT1_OCU_OCFS54_FSO11 *((volatile unsigned int*)(0x42422d54UL)) +#define bFM4_MFT1_OCU_OCFS54_FSO12 *((volatile unsigned int*)(0x42422d58UL)) +#define bFM4_MFT1_OCU_OCFS54_FSO13 *((volatile unsigned int*)(0x42422d5cUL)) + +/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define bFM4_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42423480UL)) +#define bFM4_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42423484UL)) +#define bFM4_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42423488UL)) +#define bFM4_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42423498UL)) +#define bFM4_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242349cUL)) +#define bFM4_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424234a0UL)) +#define bFM4_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424234a4UL)) +#define bFM4_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424234a8UL)) +#define bFM4_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424234acUL)) +#define bFM4_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42423500UL)) +#define bFM4_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42423504UL)) +#define bFM4_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42423508UL)) +#define bFM4_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42423518UL)) +#define bFM4_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242351cUL)) +#define bFM4_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42423520UL)) +#define bFM4_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42423524UL)) +#define bFM4_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42423528UL)) +#define bFM4_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242352cUL)) +#define bFM4_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42423580UL)) +#define bFM4_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42423584UL)) +#define bFM4_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42423588UL)) +#define bFM4_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42423598UL)) +#define bFM4_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242359cUL)) +#define bFM4_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424235a0UL)) +#define bFM4_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424235a4UL)) +#define bFM4_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424235a8UL)) +#define bFM4_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424235acUL)) +#define bFM4_MFT1_WFG_WFIR_DTIFA *((volatile unsigned int*)(0x42423600UL)) +#define bFM4_MFT1_WFG_WFIR_DTICA *((volatile unsigned int*)(0x42423604UL)) +#define bFM4_MFT1_WFG_WFIR_DTIFB *((volatile unsigned int*)(0x42423608UL)) +#define bFM4_MFT1_WFG_WFIR_DTICB *((volatile unsigned int*)(0x4242360cUL)) +#define bFM4_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42423610UL)) +#define bFM4_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42423614UL)) +#define bFM4_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42423618UL)) +#define bFM4_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242361cUL)) +#define bFM4_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42423620UL)) +#define bFM4_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42423624UL)) +#define bFM4_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42423628UL)) +#define bFM4_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242362cUL)) +#define bFM4_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42423630UL)) +#define bFM4_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42423634UL)) +#define bFM4_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42423638UL)) +#define bFM4_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242363cUL)) +#define bFM4_MFT1_WFG_NZCL_DTIEA *((volatile unsigned int*)(0x42423680UL)) +#define bFM4_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42423684UL)) +#define bFM4_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42423688UL)) +#define bFM4_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242368cUL)) +#define bFM4_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42423690UL)) +#define bFM4_MFT1_WFG_NZCL_DTIEB *((volatile unsigned int*)(0x42423694UL)) +#define bFM4_MFT1_WFG_NZCL_DIMA *((volatile unsigned int*)(0x424236a0UL)) +#define bFM4_MFT1_WFG_NZCL_DIMB *((volatile unsigned int*)(0x424236a4UL)) +#define bFM4_MFT1_WFG_NZCL_WIM10 *((volatile unsigned int*)(0x424236b0UL)) +#define bFM4_MFT1_WFG_NZCL_WIM32 *((volatile unsigned int*)(0x424236b4UL)) +#define bFM4_MFT1_WFG_NZCL_WIM54 *((volatile unsigned int*)(0x424236b8UL)) + +/* Multifunction Timer unit 1 Input Capture Unit registers */ +#define bFM4_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42422d80UL)) +#define bFM4_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42422d84UL)) +#define bFM4_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42422d88UL)) +#define bFM4_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42422d8cUL)) +#define bFM4_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42422d90UL)) +#define bFM4_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42422d94UL)) +#define bFM4_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42422d98UL)) +#define bFM4_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42422d9cUL)) +#define bFM4_MFT1_ICU_ICFS32_FSI00 *((volatile unsigned int*)(0x42422da0UL)) +#define bFM4_MFT1_ICU_ICFS32_FSI01 *((volatile unsigned int*)(0x42422da4UL)) +#define bFM4_MFT1_ICU_ICFS32_FSI02 *((volatile unsigned int*)(0x42422da8UL)) +#define bFM4_MFT1_ICU_ICFS32_FSI03 *((volatile unsigned int*)(0x42422dacUL)) +#define bFM4_MFT1_ICU_ICFS32_FSI10 *((volatile unsigned int*)(0x42422db0UL)) +#define bFM4_MFT1_ICU_ICFS32_FSI11 *((volatile unsigned int*)(0x42422db4UL)) +#define bFM4_MFT1_ICU_ICFS32_FSI12 *((volatile unsigned int*)(0x42422db8UL)) +#define bFM4_MFT1_ICU_ICFS32_FSI13 *((volatile unsigned int*)(0x42422dbcUL)) +#define bFM4_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42423080UL)) +#define bFM4_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42423084UL)) +#define bFM4_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42423088UL)) +#define bFM4_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x4242308cUL)) +#define bFM4_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42423090UL)) +#define bFM4_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42423094UL)) +#define bFM4_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42423098UL)) +#define bFM4_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x4242309cUL)) +#define bFM4_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x424230a0UL)) +#define bFM4_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x424230a4UL)) +#define bFM4_MFT1_ICU_ICSA32_EG00 *((volatile unsigned int*)(0x42423100UL)) +#define bFM4_MFT1_ICU_ICSA32_EG01 *((volatile unsigned int*)(0x42423104UL)) +#define bFM4_MFT1_ICU_ICSA32_EG10 *((volatile unsigned int*)(0x42423108UL)) +#define bFM4_MFT1_ICU_ICSA32_EG11 *((volatile unsigned int*)(0x4242310cUL)) +#define bFM4_MFT1_ICU_ICSA32_ICE0 *((volatile unsigned int*)(0x42423110UL)) +#define bFM4_MFT1_ICU_ICSA32_ICE1 *((volatile unsigned int*)(0x42423114UL)) +#define bFM4_MFT1_ICU_ICSA32_ICP0 *((volatile unsigned int*)(0x42423118UL)) +#define bFM4_MFT1_ICU_ICSA32_ICP1 *((volatile unsigned int*)(0x4242311cUL)) +#define bFM4_MFT1_ICU_ICSB32_IEI0 *((volatile unsigned int*)(0x42423120UL)) +#define bFM4_MFT1_ICU_ICSB32_IEI1 *((volatile unsigned int*)(0x42423124UL)) + +/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define bFM4_MFT1_ADCMP_ACSD0_AMOD *((volatile unsigned int*)(0x42423aa0UL)) +#define bFM4_MFT1_ADCMP_ACSD0_OCUS *((volatile unsigned int*)(0x42423aa4UL)) +#define bFM4_MFT1_ADCMP_ACSD0_DE *((volatile unsigned int*)(0x42423ab0UL)) +#define bFM4_MFT1_ADCMP_ACSD0_PE *((volatile unsigned int*)(0x42423ab4UL)) +#define bFM4_MFT1_ADCMP_ACSD0_UE *((volatile unsigned int*)(0x42423ab8UL)) +#define bFM4_MFT1_ADCMP_ACSD0_ZE *((volatile unsigned int*)(0x42423abcUL)) +#define bFM4_MFT1_ADCMP_ACSD1_AMOD *((volatile unsigned int*)(0x42423b20UL)) +#define bFM4_MFT1_ADCMP_ACSD1_OCUS *((volatile unsigned int*)(0x42423b24UL)) +#define bFM4_MFT1_ADCMP_ACSD1_DE *((volatile unsigned int*)(0x42423b30UL)) +#define bFM4_MFT1_ADCMP_ACSD1_PE *((volatile unsigned int*)(0x42423b34UL)) +#define bFM4_MFT1_ADCMP_ACSD1_UE *((volatile unsigned int*)(0x42423b38UL)) +#define bFM4_MFT1_ADCMP_ACSD1_ZE *((volatile unsigned int*)(0x42423b3cUL)) +#define bFM4_MFT1_ADCMP_ACSD2_AMOD *((volatile unsigned int*)(0x42423ba0UL)) +#define bFM4_MFT1_ADCMP_ACSD2_OCUS *((volatile unsigned int*)(0x42423ba4UL)) +#define bFM4_MFT1_ADCMP_ACSD2_DE *((volatile unsigned int*)(0x42423bb0UL)) +#define bFM4_MFT1_ADCMP_ACSD2_PE *((volatile unsigned int*)(0x42423bb4UL)) +#define bFM4_MFT1_ADCMP_ACSD2_UE *((volatile unsigned int*)(0x42423bb8UL)) +#define bFM4_MFT1_ADCMP_ACSD2_ZE *((volatile unsigned int*)(0x42423bbcUL)) +#define bFM4_MFT1_ADCMP_ACSD3_AMOD *((volatile unsigned int*)(0x42423c20UL)) +#define bFM4_MFT1_ADCMP_ACSD3_OCUS *((volatile unsigned int*)(0x42423c24UL)) +#define bFM4_MFT1_ADCMP_ACSD3_DE *((volatile unsigned int*)(0x42423c30UL)) +#define bFM4_MFT1_ADCMP_ACSD3_PE *((volatile unsigned int*)(0x42423c34UL)) +#define bFM4_MFT1_ADCMP_ACSD3_UE *((volatile unsigned int*)(0x42423c38UL)) +#define bFM4_MFT1_ADCMP_ACSD3_ZE *((volatile unsigned int*)(0x42423c3cUL)) +#define bFM4_MFT1_ADCMP_ACSD4_AMOD *((volatile unsigned int*)(0x42423ca0UL)) +#define bFM4_MFT1_ADCMP_ACSD4_OCUS *((volatile unsigned int*)(0x42423ca4UL)) +#define bFM4_MFT1_ADCMP_ACSD4_DE *((volatile unsigned int*)(0x42423cb0UL)) +#define bFM4_MFT1_ADCMP_ACSD4_PE *((volatile unsigned int*)(0x42423cb4UL)) +#define bFM4_MFT1_ADCMP_ACSD4_UE *((volatile unsigned int*)(0x42423cb8UL)) +#define bFM4_MFT1_ADCMP_ACSD4_ZE *((volatile unsigned int*)(0x42423cbcUL)) +#define bFM4_MFT1_ADCMP_ACSD5_AMOD *((volatile unsigned int*)(0x42423d20UL)) +#define bFM4_MFT1_ADCMP_ACSD5_OCUS *((volatile unsigned int*)(0x42423d24UL)) +#define bFM4_MFT1_ADCMP_ACSD5_DE *((volatile unsigned int*)(0x42423d30UL)) +#define bFM4_MFT1_ADCMP_ACSD5_PE *((volatile unsigned int*)(0x42423d34UL)) +#define bFM4_MFT1_ADCMP_ACSD5_UE *((volatile unsigned int*)(0x42423d38UL)) +#define bFM4_MFT1_ADCMP_ACSD5_ZE *((volatile unsigned int*)(0x42423d3cUL)) + +/* Multifunction Timer unit 2 Free Running Timer registers */ +#define bFM4_MFT2_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42442900UL)) +#define bFM4_MFT2_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42442904UL)) +#define bFM4_MFT2_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42442908UL)) +#define bFM4_MFT2_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4244290cUL)) +#define bFM4_MFT2_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42442910UL)) +#define bFM4_MFT2_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42442914UL)) +#define bFM4_MFT2_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42442918UL)) +#define bFM4_MFT2_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4244291cUL)) +#define bFM4_MFT2_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42442920UL)) +#define bFM4_MFT2_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42442924UL)) +#define bFM4_MFT2_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42442934UL)) +#define bFM4_MFT2_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42442938UL)) +#define bFM4_MFT2_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4244293cUL)) +#define bFM4_MFT2_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42442a80UL)) +#define bFM4_MFT2_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42442a84UL)) +#define bFM4_MFT2_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42442a88UL)) +#define bFM4_MFT2_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x42442a8cUL)) +#define bFM4_MFT2_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42442a90UL)) +#define bFM4_MFT2_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42442a94UL)) +#define bFM4_MFT2_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42442a98UL)) +#define bFM4_MFT2_FRT_TCSA1_BFE *((volatile unsigned int*)(0x42442a9cUL)) +#define bFM4_MFT2_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42442aa0UL)) +#define bFM4_MFT2_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42442aa4UL)) +#define bFM4_MFT2_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42442ab4UL)) +#define bFM4_MFT2_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42442ab8UL)) +#define bFM4_MFT2_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x42442abcUL)) +#define bFM4_MFT2_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42442c00UL)) +#define bFM4_MFT2_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42442c04UL)) +#define bFM4_MFT2_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42442c08UL)) +#define bFM4_MFT2_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42442c0cUL)) +#define bFM4_MFT2_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42442c10UL)) +#define bFM4_MFT2_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42442c14UL)) +#define bFM4_MFT2_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42442c18UL)) +#define bFM4_MFT2_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42442c1cUL)) +#define bFM4_MFT2_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42442c20UL)) +#define bFM4_MFT2_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42442c24UL)) +#define bFM4_MFT2_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42442c34UL)) +#define bFM4_MFT2_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42442c38UL)) +#define bFM4_MFT2_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42442c3cUL)) +#define bFM4_MFT2_FRT_TCAL_STOP00 *((volatile unsigned int*)(0x42442c80UL)) +#define bFM4_MFT2_FRT_TCAL_STOP01 *((volatile unsigned int*)(0x42442c84UL)) +#define bFM4_MFT2_FRT_TCAL_STOP02 *((volatile unsigned int*)(0x42442c88UL)) +#define bFM4_MFT2_FRT_TCAL_STOP10 *((volatile unsigned int*)(0x42442c8cUL)) +#define bFM4_MFT2_FRT_TCAL_STOP11 *((volatile unsigned int*)(0x42442c90UL)) +#define bFM4_MFT2_FRT_TCAL_STOP12 *((volatile unsigned int*)(0x42442c94UL)) +#define bFM4_MFT2_FRT_TCAL_STOP20 *((volatile unsigned int*)(0x42442c98UL)) +#define bFM4_MFT2_FRT_TCAL_STOP21 *((volatile unsigned int*)(0x42442c9cUL)) +#define bFM4_MFT2_FRT_TCAL_STOP22 *((volatile unsigned int*)(0x42442ca0UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR00 *((volatile unsigned int*)(0x42442cc0UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR01 *((volatile unsigned int*)(0x42442cc4UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR02 *((volatile unsigned int*)(0x42442cc8UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR10 *((volatile unsigned int*)(0x42442cccUL)) +#define bFM4_MFT2_FRT_TCAL_SCLR11 *((volatile unsigned int*)(0x42442cd0UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR12 *((volatile unsigned int*)(0x42442cd4UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR20 *((volatile unsigned int*)(0x42442cd8UL)) +#define bFM4_MFT2_FRT_TCAL_SCLR21 *((volatile unsigned int*)(0x42442cdcUL)) +#define bFM4_MFT2_FRT_TCAL_SCLR22 *((volatile unsigned int*)(0x42442ce0UL)) + +/* Multifunction Timer unit 2 Output Compare Unit registers */ +#define bFM4_MFT2_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42442300UL)) +#define bFM4_MFT2_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42442304UL)) +#define bFM4_MFT2_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42442310UL)) +#define bFM4_MFT2_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42442314UL)) +#define bFM4_MFT2_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42442318UL)) +#define bFM4_MFT2_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4244231cUL)) +#define bFM4_MFT2_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42442320UL)) +#define bFM4_MFT2_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42442324UL)) +#define bFM4_MFT2_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42442330UL)) +#define bFM4_MFT2_OCU_OCSB10_FM4 *((volatile unsigned int*)(0x4244233cUL)) +#define bFM4_MFT2_OCU_OCSA32_CST0 *((volatile unsigned int*)(0x42442380UL)) +#define bFM4_MFT2_OCU_OCSA32_CST1 *((volatile unsigned int*)(0x42442384UL)) +#define bFM4_MFT2_OCU_OCSA32_IOE0 *((volatile unsigned int*)(0x42442390UL)) +#define bFM4_MFT2_OCU_OCSA32_IOE1 *((volatile unsigned int*)(0x42442394UL)) +#define bFM4_MFT2_OCU_OCSA32_IOP0 *((volatile unsigned int*)(0x42442398UL)) +#define bFM4_MFT2_OCU_OCSA32_IOP1 *((volatile unsigned int*)(0x4244239cUL)) +#define bFM4_MFT2_OCU_OCSB32_OTD0 *((volatile unsigned int*)(0x424423a0UL)) +#define bFM4_MFT2_OCU_OCSB32_OTD1 *((volatile unsigned int*)(0x424423a4UL)) +#define bFM4_MFT2_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424423b0UL)) +#define bFM4_MFT2_OCU_OCSB32_FM4 *((volatile unsigned int*)(0x424423bcUL)) +#define bFM4_MFT2_OCU_OCSA54_CST0 *((volatile unsigned int*)(0x42442400UL)) +#define bFM4_MFT2_OCU_OCSA54_CST1 *((volatile unsigned int*)(0x42442404UL)) +#define bFM4_MFT2_OCU_OCSA54_IOE0 *((volatile unsigned int*)(0x42442410UL)) +#define bFM4_MFT2_OCU_OCSA54_IOE1 *((volatile unsigned int*)(0x42442414UL)) +#define bFM4_MFT2_OCU_OCSA54_IOP0 *((volatile unsigned int*)(0x42442418UL)) +#define bFM4_MFT2_OCU_OCSA54_IOP1 *((volatile unsigned int*)(0x4244241cUL)) +#define bFM4_MFT2_OCU_OCSB54_OTD0 *((volatile unsigned int*)(0x42442420UL)) +#define bFM4_MFT2_OCU_OCSB54_OTD1 *((volatile unsigned int*)(0x42442424UL)) +#define bFM4_MFT2_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42442430UL)) +#define bFM4_MFT2_OCU_OCSB54_FM4 *((volatile unsigned int*)(0x4244243cUL)) +#define bFM4_MFT2_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424424a0UL)) +#define bFM4_MFT2_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424424a4UL)) +#define bFM4_MFT2_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424424a8UL)) +#define bFM4_MFT2_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424424acUL)) +#define bFM4_MFT2_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424424b0UL)) +#define bFM4_MFT2_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424424b4UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42442d00UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42442d04UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42442d08UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42442d0cUL)) +#define bFM4_MFT2_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42442d10UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42442d14UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42442d18UL)) +#define bFM4_MFT2_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42442d1cUL)) +#define bFM4_MFT2_OCU_OCFS32_FSO00 *((volatile unsigned int*)(0x42442d20UL)) +#define bFM4_MFT2_OCU_OCFS32_FSO01 *((volatile unsigned int*)(0x42442d24UL)) +#define bFM4_MFT2_OCU_OCFS32_FSO02 *((volatile unsigned int*)(0x42442d28UL)) +#define bFM4_MFT2_OCU_OCFS32_FSO03 *((volatile unsigned int*)(0x42442d2cUL)) +#define bFM4_MFT2_OCU_OCFS32_FSO10 *((volatile unsigned int*)(0x42442d30UL)) +#define bFM4_MFT2_OCU_OCFS32_FSO11 *((volatile unsigned int*)(0x42442d34UL)) +#define bFM4_MFT2_OCU_OCFS32_FSO12 *((volatile unsigned int*)(0x42442d38UL)) +#define bFM4_MFT2_OCU_OCFS32_FSO13 *((volatile unsigned int*)(0x42442d3cUL)) +#define bFM4_MFT2_OCU_OCFS54_FSO00 *((volatile unsigned int*)(0x42442d40UL)) +#define bFM4_MFT2_OCU_OCFS54_FSO01 *((volatile unsigned int*)(0x42442d44UL)) +#define bFM4_MFT2_OCU_OCFS54_FSO02 *((volatile unsigned int*)(0x42442d48UL)) +#define bFM4_MFT2_OCU_OCFS54_FSO03 *((volatile unsigned int*)(0x42442d4cUL)) +#define bFM4_MFT2_OCU_OCFS54_FSO10 *((volatile unsigned int*)(0x42442d50UL)) +#define bFM4_MFT2_OCU_OCFS54_FSO11 *((volatile unsigned int*)(0x42442d54UL)) +#define bFM4_MFT2_OCU_OCFS54_FSO12 *((volatile unsigned int*)(0x42442d58UL)) +#define bFM4_MFT2_OCU_OCFS54_FSO13 *((volatile unsigned int*)(0x42442d5cUL)) + +/* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ +#define bFM4_MFT2_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42443480UL)) +#define bFM4_MFT2_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42443484UL)) +#define bFM4_MFT2_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42443488UL)) +#define bFM4_MFT2_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42443498UL)) +#define bFM4_MFT2_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4244349cUL)) +#define bFM4_MFT2_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424434a0UL)) +#define bFM4_MFT2_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424434a4UL)) +#define bFM4_MFT2_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424434a8UL)) +#define bFM4_MFT2_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424434acUL)) +#define bFM4_MFT2_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42443500UL)) +#define bFM4_MFT2_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42443504UL)) +#define bFM4_MFT2_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42443508UL)) +#define bFM4_MFT2_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42443518UL)) +#define bFM4_MFT2_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4244351cUL)) +#define bFM4_MFT2_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42443520UL)) +#define bFM4_MFT2_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42443524UL)) +#define bFM4_MFT2_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42443528UL)) +#define bFM4_MFT2_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4244352cUL)) +#define bFM4_MFT2_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42443580UL)) +#define bFM4_MFT2_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42443584UL)) +#define bFM4_MFT2_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42443588UL)) +#define bFM4_MFT2_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42443598UL)) +#define bFM4_MFT2_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4244359cUL)) +#define bFM4_MFT2_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424435a0UL)) +#define bFM4_MFT2_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424435a4UL)) +#define bFM4_MFT2_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424435a8UL)) +#define bFM4_MFT2_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424435acUL)) +#define bFM4_MFT2_WFG_WFIR_DTIFA *((volatile unsigned int*)(0x42443600UL)) +#define bFM4_MFT2_WFG_WFIR_DTICA *((volatile unsigned int*)(0x42443604UL)) +#define bFM4_MFT2_WFG_WFIR_DTIFB *((volatile unsigned int*)(0x42443608UL)) +#define bFM4_MFT2_WFG_WFIR_DTICB *((volatile unsigned int*)(0x4244360cUL)) +#define bFM4_MFT2_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42443610UL)) +#define bFM4_MFT2_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42443614UL)) +#define bFM4_MFT2_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42443618UL)) +#define bFM4_MFT2_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4244361cUL)) +#define bFM4_MFT2_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42443620UL)) +#define bFM4_MFT2_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42443624UL)) +#define bFM4_MFT2_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42443628UL)) +#define bFM4_MFT2_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4244362cUL)) +#define bFM4_MFT2_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42443630UL)) +#define bFM4_MFT2_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42443634UL)) +#define bFM4_MFT2_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42443638UL)) +#define bFM4_MFT2_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4244363cUL)) +#define bFM4_MFT2_WFG_NZCL_DTIEA *((volatile unsigned int*)(0x42443680UL)) +#define bFM4_MFT2_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42443684UL)) +#define bFM4_MFT2_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42443688UL)) +#define bFM4_MFT2_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4244368cUL)) +#define bFM4_MFT2_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42443690UL)) +#define bFM4_MFT2_WFG_NZCL_DTIEB *((volatile unsigned int*)(0x42443694UL)) +#define bFM4_MFT2_WFG_NZCL_DIMA *((volatile unsigned int*)(0x424436a0UL)) +#define bFM4_MFT2_WFG_NZCL_DIMB *((volatile unsigned int*)(0x424436a4UL)) +#define bFM4_MFT2_WFG_NZCL_WIM10 *((volatile unsigned int*)(0x424436b0UL)) +#define bFM4_MFT2_WFG_NZCL_WIM32 *((volatile unsigned int*)(0x424436b4UL)) +#define bFM4_MFT2_WFG_NZCL_WIM54 *((volatile unsigned int*)(0x424436b8UL)) + +/* Multifunction Timer unit 2 Input Capture Unit registers */ +#define bFM4_MFT2_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42442d80UL)) +#define bFM4_MFT2_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42442d84UL)) +#define bFM4_MFT2_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42442d88UL)) +#define bFM4_MFT2_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42442d8cUL)) +#define bFM4_MFT2_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42442d90UL)) +#define bFM4_MFT2_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42442d94UL)) +#define bFM4_MFT2_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42442d98UL)) +#define bFM4_MFT2_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42442d9cUL)) +#define bFM4_MFT2_ICU_ICFS32_FSI00 *((volatile unsigned int*)(0x42442da0UL)) +#define bFM4_MFT2_ICU_ICFS32_FSI01 *((volatile unsigned int*)(0x42442da4UL)) +#define bFM4_MFT2_ICU_ICFS32_FSI02 *((volatile unsigned int*)(0x42442da8UL)) +#define bFM4_MFT2_ICU_ICFS32_FSI03 *((volatile unsigned int*)(0x42442dacUL)) +#define bFM4_MFT2_ICU_ICFS32_FSI10 *((volatile unsigned int*)(0x42442db0UL)) +#define bFM4_MFT2_ICU_ICFS32_FSI11 *((volatile unsigned int*)(0x42442db4UL)) +#define bFM4_MFT2_ICU_ICFS32_FSI12 *((volatile unsigned int*)(0x42442db8UL)) +#define bFM4_MFT2_ICU_ICFS32_FSI13 *((volatile unsigned int*)(0x42442dbcUL)) +#define bFM4_MFT2_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42443080UL)) +#define bFM4_MFT2_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42443084UL)) +#define bFM4_MFT2_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42443088UL)) +#define bFM4_MFT2_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x4244308cUL)) +#define bFM4_MFT2_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42443090UL)) +#define bFM4_MFT2_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42443094UL)) +#define bFM4_MFT2_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42443098UL)) +#define bFM4_MFT2_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x4244309cUL)) +#define bFM4_MFT2_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x424430a0UL)) +#define bFM4_MFT2_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x424430a4UL)) +#define bFM4_MFT2_ICU_ICSA32_EG00 *((volatile unsigned int*)(0x42443100UL)) +#define bFM4_MFT2_ICU_ICSA32_EG01 *((volatile unsigned int*)(0x42443104UL)) +#define bFM4_MFT2_ICU_ICSA32_EG10 *((volatile unsigned int*)(0x42443108UL)) +#define bFM4_MFT2_ICU_ICSA32_EG11 *((volatile unsigned int*)(0x4244310cUL)) +#define bFM4_MFT2_ICU_ICSA32_ICE0 *((volatile unsigned int*)(0x42443110UL)) +#define bFM4_MFT2_ICU_ICSA32_ICE1 *((volatile unsigned int*)(0x42443114UL)) +#define bFM4_MFT2_ICU_ICSA32_ICP0 *((volatile unsigned int*)(0x42443118UL)) +#define bFM4_MFT2_ICU_ICSA32_ICP1 *((volatile unsigned int*)(0x4244311cUL)) +#define bFM4_MFT2_ICU_ICSB32_IEI0 *((volatile unsigned int*)(0x42443120UL)) +#define bFM4_MFT2_ICU_ICSB32_IEI1 *((volatile unsigned int*)(0x42443124UL)) + +/* Multifunction Timer unit 2 ADC Start Compare Unit registers */ +#define bFM4_MFT2_ADCMP_ACSD0_AMOD *((volatile unsigned int*)(0x42443aa0UL)) +#define bFM4_MFT2_ADCMP_ACSD0_OCUS *((volatile unsigned int*)(0x42443aa4UL)) +#define bFM4_MFT2_ADCMP_ACSD0_DE *((volatile unsigned int*)(0x42443ab0UL)) +#define bFM4_MFT2_ADCMP_ACSD0_PE *((volatile unsigned int*)(0x42443ab4UL)) +#define bFM4_MFT2_ADCMP_ACSD0_UE *((volatile unsigned int*)(0x42443ab8UL)) +#define bFM4_MFT2_ADCMP_ACSD0_ZE *((volatile unsigned int*)(0x42443abcUL)) +#define bFM4_MFT2_ADCMP_ACSD1_AMOD *((volatile unsigned int*)(0x42443b20UL)) +#define bFM4_MFT2_ADCMP_ACSD1_OCUS *((volatile unsigned int*)(0x42443b24UL)) +#define bFM4_MFT2_ADCMP_ACSD1_DE *((volatile unsigned int*)(0x42443b30UL)) +#define bFM4_MFT2_ADCMP_ACSD1_PE *((volatile unsigned int*)(0x42443b34UL)) +#define bFM4_MFT2_ADCMP_ACSD1_UE *((volatile unsigned int*)(0x42443b38UL)) +#define bFM4_MFT2_ADCMP_ACSD1_ZE *((volatile unsigned int*)(0x42443b3cUL)) +#define bFM4_MFT2_ADCMP_ACSD2_AMOD *((volatile unsigned int*)(0x42443ba0UL)) +#define bFM4_MFT2_ADCMP_ACSD2_OCUS *((volatile unsigned int*)(0x42443ba4UL)) +#define bFM4_MFT2_ADCMP_ACSD2_DE *((volatile unsigned int*)(0x42443bb0UL)) +#define bFM4_MFT2_ADCMP_ACSD2_PE *((volatile unsigned int*)(0x42443bb4UL)) +#define bFM4_MFT2_ADCMP_ACSD2_UE *((volatile unsigned int*)(0x42443bb8UL)) +#define bFM4_MFT2_ADCMP_ACSD2_ZE *((volatile unsigned int*)(0x42443bbcUL)) +#define bFM4_MFT2_ADCMP_ACSD3_AMOD *((volatile unsigned int*)(0x42443c20UL)) +#define bFM4_MFT2_ADCMP_ACSD3_OCUS *((volatile unsigned int*)(0x42443c24UL)) +#define bFM4_MFT2_ADCMP_ACSD3_DE *((volatile unsigned int*)(0x42443c30UL)) +#define bFM4_MFT2_ADCMP_ACSD3_PE *((volatile unsigned int*)(0x42443c34UL)) +#define bFM4_MFT2_ADCMP_ACSD3_UE *((volatile unsigned int*)(0x42443c38UL)) +#define bFM4_MFT2_ADCMP_ACSD3_ZE *((volatile unsigned int*)(0x42443c3cUL)) +#define bFM4_MFT2_ADCMP_ACSD4_AMOD *((volatile unsigned int*)(0x42443ca0UL)) +#define bFM4_MFT2_ADCMP_ACSD4_OCUS *((volatile unsigned int*)(0x42443ca4UL)) +#define bFM4_MFT2_ADCMP_ACSD4_DE *((volatile unsigned int*)(0x42443cb0UL)) +#define bFM4_MFT2_ADCMP_ACSD4_PE *((volatile unsigned int*)(0x42443cb4UL)) +#define bFM4_MFT2_ADCMP_ACSD4_UE *((volatile unsigned int*)(0x42443cb8UL)) +#define bFM4_MFT2_ADCMP_ACSD4_ZE *((volatile unsigned int*)(0x42443cbcUL)) +#define bFM4_MFT2_ADCMP_ACSD5_AMOD *((volatile unsigned int*)(0x42443d20UL)) +#define bFM4_MFT2_ADCMP_ACSD5_OCUS *((volatile unsigned int*)(0x42443d24UL)) +#define bFM4_MFT2_ADCMP_ACSD5_DE *((volatile unsigned int*)(0x42443d30UL)) +#define bFM4_MFT2_ADCMP_ACSD5_PE *((volatile unsigned int*)(0x42443d34UL)) +#define bFM4_MFT2_ADCMP_ACSD5_UE *((volatile unsigned int*)(0x42443d38UL)) +#define bFM4_MFT2_ADCMP_ACSD5_ZE *((volatile unsigned int*)(0x42443d3cUL)) + +/* Multifunction Timer PPG registers */ +#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) +#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) +#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) +#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) +#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) +#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) +#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) +#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) +#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) +#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) +#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) +#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) +#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) +#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) +#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) +#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) +#define bFM3_MFT_PPG_TTCR2_STR2 *((volatile unsigned int*)(0x42480820UL)) +#define bFM3_MFT_PPG_TTCR2_MONI2 *((volatile unsigned int*)(0x42480824UL)) +#define bFM3_MFT_PPG_TTCR2_CS20 *((volatile unsigned int*)(0x42480828UL)) +#define bFM3_MFT_PPG_TTCR2_CS21 *((volatile unsigned int*)(0x4248082CUL)) +#define bFM3_MFT_PPG_TTCR2_TRG16O *((volatile unsigned int*)(0x42480830UL)) +#define bFM3_MFT_PPG_TTCR2_TRG18O *((volatile unsigned int*)(0x42480834UL)) +#define bFM3_MFT_PPG_TTCR2_TRG20O *((volatile unsigned int*)(0x42480838UL)) +#define bFM3_MFT_PPG_TTCR2_TRG22O *((volatile unsigned int*)(0x4248083CUL)) +#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) +#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) +#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) +#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) +#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) +#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) +#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) +#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) +#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) +#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) +#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) +#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) +#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) +#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) +#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) +#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) +#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) +#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) +#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) +#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) +#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) +#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) +#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) +#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) +#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) +#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) +#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) +#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) +#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) +#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) +#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) +#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) +#define bFM3_MFT_PPG_TRG1_PEN16 *((volatile unsigned int*)(0x42482800UL)) +#define bFM3_MFT_PPG_TRG1_PEN17 *((volatile unsigned int*)(0x42482804UL)) +#define bFM3_MFT_PPG_TRG1_PEN18 *((volatile unsigned int*)(0x42482808UL)) +#define bFM3_MFT_PPG_TRG1_PEN19 *((volatile unsigned int*)(0x4248280CUL)) +#define bFM3_MFT_PPG_TRG1_PEN20 *((volatile unsigned int*)(0x42482810UL)) +#define bFM3_MFT_PPG_TRG1_PEN21 *((volatile unsigned int*)(0x42482814UL)) +#define bFM3_MFT_PPG_TRG1_PEN22 *((volatile unsigned int*)(0x42482818UL)) +#define bFM3_MFT_PPG_TRG1_PEN23 *((volatile unsigned int*)(0x4248281CUL)) +#define bFM3_MFT_PPG_REVC1_REV16 *((volatile unsigned int*)(0x42482880UL)) +#define bFM3_MFT_PPG_REVC1_REV17 *((volatile unsigned int*)(0x42482884UL)) +#define bFM3_MFT_PPG_REVC1_REV18 *((volatile unsigned int*)(0x42482888UL)) +#define bFM3_MFT_PPG_REVC1_REV19 *((volatile unsigned int*)(0x4248288CUL)) +#define bFM3_MFT_PPG_REVC1_REV20 *((volatile unsigned int*)(0x42482890UL)) +#define bFM3_MFT_PPG_REVC1_REV21 *((volatile unsigned int*)(0x42482894UL)) +#define bFM3_MFT_PPG_REVC1_REV22 *((volatile unsigned int*)(0x42482898UL)) +#define bFM3_MFT_PPG_REVC1_REV23 *((volatile unsigned int*)(0x4248289CUL)) +#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) +#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) +#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) +#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) +#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) +#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) +#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) +#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) +#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) +#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) +#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) +#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) +#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) +#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) +#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) +#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) +#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) +#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) +#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) +#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) +#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) +#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) +#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) +#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) +#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) +#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) +#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) +#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) +#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) +#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) +#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) +#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) +#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) +#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) +#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) +#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) +#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) +#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) +#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) +#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) +#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) +#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) +#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) +#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) +#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) +#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) +#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) +#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) +#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) +#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) +#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) +#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) +#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) +#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) +#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) +#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) +#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) +#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) +#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) +#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) +#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) +#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) +#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) +#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) +#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) +#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) +#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) +#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) +#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) +#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) +#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) +#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) +#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) +#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) +#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) +#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) +#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) +#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) +#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) +#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) +#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) +#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) +#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) +#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) +#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) +#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) +#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) +#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) +#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) +#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) +#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) +#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) +#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) +#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) +#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) +#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) +#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) +#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) +#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) +#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) +#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) +#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) +#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) +#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) +#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) +#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) +#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) +#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) +#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) +#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) +#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) +#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) +#define bFM3_MFT_PPG_PPGC17_TTRG *((volatile unsigned int*)(0x42486000UL)) +#define bFM3_MFT_PPG_PPGC17_PCS0 *((volatile unsigned int*)(0x4248600CUL)) +#define bFM3_MFT_PPG_PPGC17_PCS1 *((volatile unsigned int*)(0x42486010UL)) +#define bFM3_MFT_PPG_PPGC17_INTM *((volatile unsigned int*)(0x42486014UL)) +#define bFM3_MFT_PPG_PPGC17_PUF *((volatile unsigned int*)(0x42486018UL)) +#define bFM3_MFT_PPG_PPGC17_PIE *((volatile unsigned int*)(0x4248601CUL)) +#define bFM3_MFT_PPG_PPGC16_TTRG *((volatile unsigned int*)(0x42486020UL)) +#define bFM3_MFT_PPG_PPGC16_PCS0 *((volatile unsigned int*)(0x4248602CUL)) +#define bFM3_MFT_PPG_PPGC16_PCS1 *((volatile unsigned int*)(0x42486030UL)) +#define bFM3_MFT_PPG_PPGC16_INTM *((volatile unsigned int*)(0x42486034UL)) +#define bFM3_MFT_PPG_PPGC16_PUF *((volatile unsigned int*)(0x42486038UL)) +#define bFM3_MFT_PPG_PPGC16_PIE *((volatile unsigned int*)(0x4248603CUL)) +#define bFM3_MFT_PPG_PPGC19_TTRG *((volatile unsigned int*)(0x42486080UL)) +#define bFM3_MFT_PPG_PPGC19_PCS0 *((volatile unsigned int*)(0x4248608CUL)) +#define bFM3_MFT_PPG_PPGC19_PCS1 *((volatile unsigned int*)(0x42486090UL)) +#define bFM3_MFT_PPG_PPGC19_INTM *((volatile unsigned int*)(0x42486094UL)) +#define bFM3_MFT_PPG_PPGC19_PUF *((volatile unsigned int*)(0x42486098UL)) +#define bFM3_MFT_PPG_PPGC19_PIE *((volatile unsigned int*)(0x4248609CUL)) +#define bFM3_MFT_PPG_PPGC18_TTRG *((volatile unsigned int*)(0x424860A0UL)) +#define bFM3_MFT_PPG_PPGC18_PCS0 *((volatile unsigned int*)(0x424860ACUL)) +#define bFM3_MFT_PPG_PPGC18_PCS1 *((volatile unsigned int*)(0x424860B0UL)) +#define bFM3_MFT_PPG_PPGC18_INTM *((volatile unsigned int*)(0x424860B4UL)) +#define bFM3_MFT_PPG_PPGC18_PUF *((volatile unsigned int*)(0x424860B8UL)) +#define bFM3_MFT_PPG_PPGC18_PIE *((volatile unsigned int*)(0x424860BCUL)) +#define bFM3_MFT_PPG_GATEC16_EDGE16 *((volatile unsigned int*)(0x42486300UL)) +#define bFM3_MFT_PPG_GATEC16_STRG16 *((volatile unsigned int*)(0x42486304UL)) +#define bFM3_MFT_PPG_GATEC16_EDGE18 *((volatile unsigned int*)(0x42486310UL)) +#define bFM3_MFT_PPG_GATEC16_STRG18 *((volatile unsigned int*)(0x42486314UL)) +#define bFM3_MFT_PPG_PPGC21_TTRG *((volatile unsigned int*)(0x42486800UL)) +#define bFM3_MFT_PPG_PPGC21_PCS0 *((volatile unsigned int*)(0x4248680CUL)) +#define bFM3_MFT_PPG_PPGC21_PCS1 *((volatile unsigned int*)(0x42486810UL)) +#define bFM3_MFT_PPG_PPGC21_INTM *((volatile unsigned int*)(0x42486814UL)) +#define bFM3_MFT_PPG_PPGC21_PUF *((volatile unsigned int*)(0x42486818UL)) +#define bFM3_MFT_PPG_PPGC21_PIE *((volatile unsigned int*)(0x4248681CUL)) +#define bFM3_MFT_PPG_PPGC20_TTRG *((volatile unsigned int*)(0x42486820UL)) +#define bFM3_MFT_PPG_PPGC20_PCS0 *((volatile unsigned int*)(0x4248682CUL)) +#define bFM3_MFT_PPG_PPGC20_PCS1 *((volatile unsigned int*)(0x42486830UL)) +#define bFM3_MFT_PPG_PPGC20_INTM *((volatile unsigned int*)(0x42486834UL)) +#define bFM3_MFT_PPG_PPGC20_PUF *((volatile unsigned int*)(0x42486838UL)) +#define bFM3_MFT_PPG_PPGC20_PIE *((volatile unsigned int*)(0x4248683CUL)) +#define bFM3_MFT_PPG_PPGC23_TTRG *((volatile unsigned int*)(0x42486880UL)) +#define bFM3_MFT_PPG_PPGC23_PCS0 *((volatile unsigned int*)(0x4248688CUL)) +#define bFM3_MFT_PPG_PPGC23_PCS1 *((volatile unsigned int*)(0x42486890UL)) +#define bFM3_MFT_PPG_PPGC23_INTM *((volatile unsigned int*)(0x42486894UL)) +#define bFM3_MFT_PPG_PPGC23_PUF *((volatile unsigned int*)(0x42486898UL)) +#define bFM3_MFT_PPG_PPGC23_PIE *((volatile unsigned int*)(0x4248689CUL)) +#define bFM3_MFT_PPG_PPGC22_TTRG *((volatile unsigned int*)(0x424868A0UL)) +#define bFM3_MFT_PPG_PPGC22_PCS0 *((volatile unsigned int*)(0x424868ACUL)) +#define bFM3_MFT_PPG_PPGC22_PCS1 *((volatile unsigned int*)(0x424868B0UL)) +#define bFM3_MFT_PPG_PPGC22_INTM *((volatile unsigned int*)(0x424868B4UL)) +#define bFM3_MFT_PPG_PPGC22_PUF *((volatile unsigned int*)(0x424868B8UL)) +#define bFM3_MFT_PPG_PPGC22_PIE *((volatile unsigned int*)(0x424868BCUL)) +#define bFM3_MFT_PPG_GATEC20_EDGE20 *((volatile unsigned int*)(0x42486B00UL)) +#define bFM3_MFT_PPG_GATEC20_STRG20 *((volatile unsigned int*)(0x42486B04UL)) +#define bFM3_MFT_PPG_GATEC20_EDGE22 *((volatile unsigned int*)(0x42486B10UL)) +#define bFM3_MFT_PPG_GATEC20_STRG22 *((volatile unsigned int*)(0x42486B14UL)) + +/* Base Timer 0 PPG registers */ +#define bFM4_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM4_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM4_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM4_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM4_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM4_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM4_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM4_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM4_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM4_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM4_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM4_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM4_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM4_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM4_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM4_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM4_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM4_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM4_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWM registers */ +#define bFM4_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM4_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM4_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM4_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM4_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM4_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM4_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM4_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM4_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM4_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM4_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM4_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM4_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM4_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM4_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM4_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) +#define bFM4_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM4_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM4_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) +#define bFM4_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM4_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 RT registers */ +#define bFM4_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM4_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM4_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM4_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM4_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM4_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM4_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM4_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM4_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM4_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM4_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM4_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM4_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM4_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM4_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM4_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM4_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM4_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWC registers */ +#define bFM4_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM4_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM4_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM4_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM4_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM4_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM4_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM4_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM4_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM4_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM4_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM4_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM4_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM4_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM4_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM4_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM4_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) +#define bFM4_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 1 PPG registers */ +#define bFM4_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM4_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM4_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM4_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM4_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM4_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM4_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM4_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM4_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM4_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM4_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM4_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM4_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM4_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM4_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM4_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM4_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM4_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM4_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWM registers */ +#define bFM4_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM4_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM4_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM4_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM4_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM4_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM4_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM4_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM4_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM4_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM4_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM4_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM4_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM4_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM4_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM4_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) +#define bFM4_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM4_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM4_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) +#define bFM4_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM4_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 RT registers */ +#define bFM4_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM4_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM4_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM4_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM4_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM4_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM4_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM4_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM4_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM4_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM4_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM4_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM4_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM4_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM4_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM4_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM4_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM4_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWC registers */ +#define bFM4_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM4_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM4_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM4_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM4_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM4_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM4_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM4_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM4_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM4_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM4_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM4_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM4_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM4_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM4_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM4_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM4_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) +#define bFM4_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 2 PPG registers */ +#define bFM4_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM4_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM4_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM4_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM4_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM4_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM4_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM4_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM4_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM4_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM4_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM4_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM4_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM4_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM4_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM4_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM4_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM4_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM4_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWM registers */ +#define bFM4_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM4_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM4_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM4_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM4_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM4_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM4_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM4_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM4_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM4_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM4_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM4_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM4_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM4_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM4_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM4_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) +#define bFM4_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM4_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM4_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) +#define bFM4_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM4_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 RT registers */ +#define bFM4_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM4_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM4_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM4_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM4_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM4_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM4_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM4_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM4_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM4_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM4_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM4_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM4_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM4_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM4_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM4_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM4_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM4_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWC registers */ +#define bFM4_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM4_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM4_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM4_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM4_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM4_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM4_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM4_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM4_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM4_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM4_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM4_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM4_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM4_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM4_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM4_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM4_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) +#define bFM4_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 3 PPG registers */ +#define bFM4_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM4_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM4_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM4_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM4_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM4_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM4_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM4_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM4_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM4_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM4_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM4_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM4_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM4_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM4_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM4_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM4_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM4_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM4_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWM registers */ +#define bFM4_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM4_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM4_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM4_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM4_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM4_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM4_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM4_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM4_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM4_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM4_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM4_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM4_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM4_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM4_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM4_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) +#define bFM4_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM4_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM4_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) +#define bFM4_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM4_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 RT registers */ +#define bFM4_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM4_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM4_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM4_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM4_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM4_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM4_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM4_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM4_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM4_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM4_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM4_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM4_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM4_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM4_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM4_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM4_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM4_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWC registers */ +#define bFM4_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM4_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM4_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM4_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM4_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM4_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM4_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM4_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM4_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM4_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM4_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM4_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM4_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM4_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM4_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM4_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM4_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) +#define bFM4_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 4 PPG registers */ +#define bFM4_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM4_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM4_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM4_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM4_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM4_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM4_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM4_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM4_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM4_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM4_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM4_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM4_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM4_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM4_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM4_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM4_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM4_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM4_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWM registers */ +#define bFM4_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM4_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM4_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM4_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM4_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM4_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM4_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM4_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM4_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM4_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM4_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM4_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM4_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM4_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM4_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM4_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) +#define bFM4_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM4_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM4_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) +#define bFM4_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM4_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 RT registers */ +#define bFM4_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM4_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM4_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM4_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM4_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM4_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM4_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM4_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM4_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM4_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM4_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM4_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM4_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM4_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM4_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM4_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM4_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM4_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWC registers */ +#define bFM4_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM4_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM4_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM4_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM4_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM4_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM4_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM4_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM4_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM4_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM4_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM4_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM4_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM4_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM4_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM4_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM4_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) +#define bFM4_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 5 PPG registers */ +#define bFM4_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM4_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM4_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM4_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM4_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM4_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM4_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM4_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM4_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM4_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM4_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM4_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM4_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM4_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM4_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM4_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM4_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM4_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM4_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWM registers */ +#define bFM4_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM4_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM4_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM4_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM4_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM4_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM4_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM4_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM4_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM4_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM4_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM4_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM4_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM4_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM4_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM4_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) +#define bFM4_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM4_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM4_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) +#define bFM4_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM4_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 RT registers */ +#define bFM4_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM4_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM4_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM4_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM4_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM4_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM4_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM4_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM4_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM4_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM4_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM4_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM4_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM4_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM4_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM4_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM4_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM4_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWC registers */ +#define bFM4_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM4_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM4_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM4_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM4_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM4_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM4_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM4_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM4_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM4_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM4_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM4_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM4_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM4_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM4_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM4_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM4_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) +#define bFM4_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 6 PPG registers */ +#define bFM4_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM4_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM4_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM4_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM4_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM4_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM4_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM4_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM4_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM4_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM4_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM4_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM4_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM4_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM4_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM4_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM4_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM4_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM4_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWM registers */ +#define bFM4_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM4_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM4_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM4_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM4_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM4_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM4_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM4_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM4_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM4_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM4_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM4_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM4_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM4_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM4_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM4_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) +#define bFM4_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM4_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM4_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) +#define bFM4_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM4_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 RT registers */ +#define bFM4_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM4_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM4_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM4_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM4_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM4_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM4_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM4_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM4_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM4_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM4_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM4_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM4_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM4_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM4_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM4_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM4_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM4_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWC registers */ +#define bFM4_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM4_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM4_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM4_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM4_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM4_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM4_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM4_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM4_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM4_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM4_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM4_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM4_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM4_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM4_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM4_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM4_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) +#define bFM4_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 7 PPG registers */ +#define bFM4_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM4_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM4_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM4_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM4_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM4_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM4_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM4_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM4_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM4_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM4_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM4_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM4_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM4_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM4_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM4_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM4_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM4_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM4_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWM registers */ +#define bFM4_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM4_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM4_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM4_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM4_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM4_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM4_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM4_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM4_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM4_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM4_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM4_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM4_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM4_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM4_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM4_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) +#define bFM4_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM4_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM4_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) +#define bFM4_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM4_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 RT registers */ +#define bFM4_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM4_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM4_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM4_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM4_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM4_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM4_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM4_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM4_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM4_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM4_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM4_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM4_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM4_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM4_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM4_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM4_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM4_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWC registers */ +#define bFM4_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM4_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM4_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM4_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM4_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM4_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM4_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM4_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM4_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM4_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM4_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM4_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM4_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM4_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM4_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM4_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM4_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) +#define bFM4_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer I/O selector channel 0 - channel 3 registers */ +#define bFM4_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) +#define bFM4_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) + +/* Base Timer I/O selector channel 4 - channel 7 registers */ +#define bFM4_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) +#define bFM4_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) + +/* Base Timer 8 PPG registers */ +#define bFM4_BT8_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM4_BT8_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM4_BT8_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM4_BT8_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM4_BT8_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM4_BT8_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM4_BT8_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM4_BT8_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) +#define bFM4_BT8_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM4_BT8_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM4_BT8_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM4_BT8_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM4_BT8_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM4_BT8_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM4_BT8_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM4_BT8_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 PWM registers */ +#define bFM4_BT8_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM4_BT8_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM4_BT8_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM4_BT8_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM4_BT8_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM4_BT8_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM4_BT8_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM4_BT8_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) +#define bFM4_BT8_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM4_BT8_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM4_BT8_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM4_BT8_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM4_BT8_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8204UL)) +#define bFM4_BT8_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM4_BT8_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM4_BT8_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8214UL)) +#define bFM4_BT8_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM4_BT8_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 RT registers */ +#define bFM4_BT8_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM4_BT8_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM4_BT8_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM4_BT8_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM4_BT8_RT_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) +#define bFM4_BT8_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM4_BT8_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM4_BT8_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM4_BT8_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM4_BT8_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM4_BT8_RT_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM4_BT8_RT_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM4_BT8_RT_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM4_BT8_RT_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM4_BT8_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 PWC registers */ +#define bFM4_BT8_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM4_BT8_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM4_BT8_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) +#define bFM4_BT8_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM4_BT8_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM4_BT8_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM4_BT8_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM4_BT8_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM4_BT8_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM4_BT8_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM4_BT8_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM4_BT8_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM4_BT8_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM4_BT8_PWC_STC_ERR *((volatile unsigned int*)(0x424A821CUL)) +#define bFM4_BT8_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 9 PPG registers */ +#define bFM4_BT9_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM4_BT9_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM4_BT9_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM4_BT9_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM4_BT9_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM4_BT9_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM4_BT9_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM4_BT9_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) +#define bFM4_BT9_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM4_BT9_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM4_BT9_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM4_BT9_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM4_BT9_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM4_BT9_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM4_BT9_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM4_BT9_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 PWM registers */ +#define bFM4_BT9_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM4_BT9_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM4_BT9_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM4_BT9_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM4_BT9_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM4_BT9_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM4_BT9_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM4_BT9_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) +#define bFM4_BT9_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM4_BT9_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM4_BT9_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM4_BT9_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM4_BT9_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8A04UL)) +#define bFM4_BT9_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM4_BT9_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM4_BT9_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8A14UL)) +#define bFM4_BT9_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM4_BT9_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 RT registers */ +#define bFM4_BT9_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM4_BT9_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM4_BT9_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM4_BT9_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM4_BT9_RT_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) +#define bFM4_BT9_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM4_BT9_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM4_BT9_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM4_BT9_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM4_BT9_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM4_BT9_RT_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM4_BT9_RT_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM4_BT9_RT_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM4_BT9_RT_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM4_BT9_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 PWC registers */ +#define bFM4_BT9_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM4_BT9_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM4_BT9_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) +#define bFM4_BT9_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM4_BT9_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM4_BT9_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM4_BT9_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM4_BT9_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM4_BT9_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM4_BT9_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM4_BT9_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM4_BT9_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM4_BT9_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM4_BT9_PWC_STC_ERR *((volatile unsigned int*)(0x424A8A1CUL)) +#define bFM4_BT9_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 10 PPG registers */ +#define bFM4_BT10_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM4_BT10_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM4_BT10_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM4_BT10_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM4_BT10_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM4_BT10_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM4_BT10_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM4_BT10_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) +#define bFM4_BT10_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM4_BT10_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM4_BT10_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM4_BT10_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM4_BT10_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM4_BT10_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM4_BT10_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM4_BT10_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 PWM registers */ +#define bFM4_BT10_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM4_BT10_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM4_BT10_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM4_BT10_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM4_BT10_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM4_BT10_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM4_BT10_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM4_BT10_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) +#define bFM4_BT10_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM4_BT10_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM4_BT10_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM4_BT10_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM4_BT10_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9204UL)) +#define bFM4_BT10_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM4_BT10_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM4_BT10_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9214UL)) +#define bFM4_BT10_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM4_BT10_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 RT registers */ +#define bFM4_BT10_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM4_BT10_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM4_BT10_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM4_BT10_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM4_BT10_RT_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) +#define bFM4_BT10_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM4_BT10_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM4_BT10_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM4_BT10_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM4_BT10_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM4_BT10_RT_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM4_BT10_RT_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM4_BT10_RT_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM4_BT10_RT_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM4_BT10_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 PWC registers */ +#define bFM4_BT10_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM4_BT10_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM4_BT10_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) +#define bFM4_BT10_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM4_BT10_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM4_BT10_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM4_BT10_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM4_BT10_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM4_BT10_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM4_BT10_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM4_BT10_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM4_BT10_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM4_BT10_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM4_BT10_PWC_STC_ERR *((volatile unsigned int*)(0x424A921CUL)) +#define bFM4_BT10_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 11 PPG registers */ +#define bFM4_BT11_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM4_BT11_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM4_BT11_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM4_BT11_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM4_BT11_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM4_BT11_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM4_BT11_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM4_BT11_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) +#define bFM4_BT11_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM4_BT11_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM4_BT11_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM4_BT11_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM4_BT11_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM4_BT11_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM4_BT11_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM4_BT11_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 PWM registers */ +#define bFM4_BT11_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM4_BT11_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM4_BT11_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM4_BT11_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM4_BT11_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM4_BT11_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM4_BT11_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM4_BT11_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) +#define bFM4_BT11_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM4_BT11_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM4_BT11_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM4_BT11_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM4_BT11_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9A04UL)) +#define bFM4_BT11_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM4_BT11_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM4_BT11_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9A14UL)) +#define bFM4_BT11_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM4_BT11_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 RT registers */ +#define bFM4_BT11_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM4_BT11_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM4_BT11_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM4_BT11_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM4_BT11_RT_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) +#define bFM4_BT11_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM4_BT11_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM4_BT11_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM4_BT11_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM4_BT11_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM4_BT11_RT_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM4_BT11_RT_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM4_BT11_RT_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM4_BT11_RT_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM4_BT11_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 PWC registers */ +#define bFM4_BT11_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM4_BT11_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM4_BT11_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) +#define bFM4_BT11_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM4_BT11_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM4_BT11_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM4_BT11_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM4_BT11_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM4_BT11_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM4_BT11_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM4_BT11_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM4_BT11_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM4_BT11_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM4_BT11_PWC_STC_ERR *((volatile unsigned int*)(0x424A9A1CUL)) +#define bFM4_BT11_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 12 PPG registers */ +#define bFM4_BT12_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM4_BT12_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM4_BT12_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM4_BT12_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM4_BT12_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM4_BT12_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM4_BT12_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM4_BT12_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) +#define bFM4_BT12_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM4_BT12_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM4_BT12_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM4_BT12_PPG_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM4_BT12_PPG_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM4_BT12_PPG_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM4_BT12_PPG_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM4_BT12_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 PWM registers */ +#define bFM4_BT12_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM4_BT12_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM4_BT12_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM4_BT12_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM4_BT12_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM4_BT12_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM4_BT12_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM4_BT12_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) +#define bFM4_BT12_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM4_BT12_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM4_BT12_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM4_BT12_PWM_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM4_BT12_PWM_STC_DTIR *((volatile unsigned int*)(0x424AC204UL)) +#define bFM4_BT12_PWM_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM4_BT12_PWM_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM4_BT12_PWM_STC_DTIE *((volatile unsigned int*)(0x424AC214UL)) +#define bFM4_BT12_PWM_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM4_BT12_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 RT registers */ +#define bFM4_BT12_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM4_BT12_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM4_BT12_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM4_BT12_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM4_BT12_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) +#define bFM4_BT12_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM4_BT12_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM4_BT12_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM4_BT12_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM4_BT12_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM4_BT12_RT_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM4_BT12_RT_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM4_BT12_RT_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM4_BT12_RT_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM4_BT12_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 PWC registers */ +#define bFM4_BT12_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM4_BT12_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM4_BT12_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) +#define bFM4_BT12_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM4_BT12_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM4_BT12_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM4_BT12_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM4_BT12_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM4_BT12_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM4_BT12_PWC_STC_OVIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM4_BT12_PWC_STC_EDIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM4_BT12_PWC_STC_OVIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM4_BT12_PWC_STC_EDIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM4_BT12_PWC_STC_ERR *((volatile unsigned int*)(0x424AC21CUL)) +#define bFM4_BT12_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 13 PPG registers */ +#define bFM4_BT13_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM4_BT13_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM4_BT13_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM4_BT13_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM4_BT13_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM4_BT13_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM4_BT13_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM4_BT13_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) +#define bFM4_BT13_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM4_BT13_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM4_BT13_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM4_BT13_PPG_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM4_BT13_PPG_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM4_BT13_PPG_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM4_BT13_PPG_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM4_BT13_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 PWM registers */ +#define bFM4_BT13_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM4_BT13_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM4_BT13_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM4_BT13_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM4_BT13_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM4_BT13_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM4_BT13_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM4_BT13_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) +#define bFM4_BT13_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM4_BT13_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM4_BT13_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM4_BT13_PWM_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM4_BT13_PWM_STC_DTIR *((volatile unsigned int*)(0x424ACA04UL)) +#define bFM4_BT13_PWM_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM4_BT13_PWM_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM4_BT13_PWM_STC_DTIE *((volatile unsigned int*)(0x424ACA14UL)) +#define bFM4_BT13_PWM_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM4_BT13_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 RT registers */ +#define bFM4_BT13_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM4_BT13_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM4_BT13_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM4_BT13_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM4_BT13_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) +#define bFM4_BT13_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM4_BT13_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM4_BT13_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM4_BT13_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM4_BT13_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM4_BT13_RT_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM4_BT13_RT_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM4_BT13_RT_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM4_BT13_RT_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM4_BT13_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 PWC registers */ +#define bFM4_BT13_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM4_BT13_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM4_BT13_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) +#define bFM4_BT13_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM4_BT13_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM4_BT13_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM4_BT13_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM4_BT13_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM4_BT13_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM4_BT13_PWC_STC_OVIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM4_BT13_PWC_STC_EDIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM4_BT13_PWC_STC_OVIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM4_BT13_PWC_STC_EDIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM4_BT13_PWC_STC_ERR *((volatile unsigned int*)(0x424ACA1CUL)) +#define bFM4_BT13_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 14 PPG registers */ +#define bFM4_BT14_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM4_BT14_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM4_BT14_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM4_BT14_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM4_BT14_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM4_BT14_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM4_BT14_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM4_BT14_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) +#define bFM4_BT14_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM4_BT14_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM4_BT14_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM4_BT14_PPG_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM4_BT14_PPG_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM4_BT14_PPG_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM4_BT14_PPG_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM4_BT14_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 PWM registers */ +#define bFM4_BT14_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM4_BT14_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM4_BT14_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM4_BT14_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM4_BT14_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM4_BT14_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM4_BT14_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM4_BT14_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) +#define bFM4_BT14_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM4_BT14_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM4_BT14_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM4_BT14_PWM_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM4_BT14_PWM_STC_DTIR *((volatile unsigned int*)(0x424AD204UL)) +#define bFM4_BT14_PWM_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM4_BT14_PWM_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM4_BT14_PWM_STC_DTIE *((volatile unsigned int*)(0x424AD214UL)) +#define bFM4_BT14_PWM_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM4_BT14_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 RT registers */ +#define bFM4_BT14_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM4_BT14_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM4_BT14_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM4_BT14_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM4_BT14_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) +#define bFM4_BT14_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM4_BT14_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM4_BT14_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM4_BT14_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM4_BT14_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM4_BT14_RT_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM4_BT14_RT_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM4_BT14_RT_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM4_BT14_RT_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM4_BT14_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 PWC registers */ +#define bFM4_BT14_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM4_BT14_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM4_BT14_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) +#define bFM4_BT14_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM4_BT14_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM4_BT14_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM4_BT14_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM4_BT14_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM4_BT14_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM4_BT14_PWC_STC_OVIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM4_BT14_PWC_STC_EDIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM4_BT14_PWC_STC_OVIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM4_BT14_PWC_STC_EDIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM4_BT14_PWC_STC_ERR *((volatile unsigned int*)(0x424AD21CUL)) +#define bFM4_BT14_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 15 PPG registers */ +#define bFM4_BT15_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM4_BT15_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM4_BT15_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM4_BT15_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM4_BT15_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM4_BT15_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM4_BT15_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM4_BT15_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) +#define bFM4_BT15_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM4_BT15_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM4_BT15_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM4_BT15_PPG_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM4_BT15_PPG_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM4_BT15_PPG_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM4_BT15_PPG_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM4_BT15_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 PWM registers */ +#define bFM4_BT15_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM4_BT15_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM4_BT15_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM4_BT15_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM4_BT15_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM4_BT15_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM4_BT15_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM4_BT15_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) +#define bFM4_BT15_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM4_BT15_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM4_BT15_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM4_BT15_PWM_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM4_BT15_PWM_STC_DTIR *((volatile unsigned int*)(0x424ADA04UL)) +#define bFM4_BT15_PWM_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM4_BT15_PWM_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM4_BT15_PWM_STC_DTIE *((volatile unsigned int*)(0x424ADA14UL)) +#define bFM4_BT15_PWM_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM4_BT15_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 RT registers */ +#define bFM4_BT15_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM4_BT15_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM4_BT15_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM4_BT15_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM4_BT15_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) +#define bFM4_BT15_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM4_BT15_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM4_BT15_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM4_BT15_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM4_BT15_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM4_BT15_RT_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM4_BT15_RT_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM4_BT15_RT_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM4_BT15_RT_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM4_BT15_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 PWC registers */ +#define bFM4_BT15_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM4_BT15_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM4_BT15_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) +#define bFM4_BT15_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM4_BT15_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM4_BT15_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM4_BT15_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM4_BT15_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM4_BT15_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM4_BT15_PWC_STC_OVIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM4_BT15_PWC_STC_EDIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM4_BT15_PWC_STC_OVIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM4_BT15_PWC_STC_EDIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM4_BT15_PWC_STC_ERR *((volatile unsigned int*)(0x424ADA1CUL)) +#define bFM4_BT15_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer I/O selector channel 8 - channel 11 registers */ +#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_0 *((volatile unsigned int*)(0x424AA020UL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_1 *((volatile unsigned int*)(0x424AA024UL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_2 *((volatile unsigned int*)(0x424AA028UL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_3 *((volatile unsigned int*)(0x424AA02CUL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_0 *((volatile unsigned int*)(0x424AA030UL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_1 *((volatile unsigned int*)(0x424AA034UL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_2 *((volatile unsigned int*)(0x424AA038UL)) +#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_3 *((volatile unsigned int*)(0x424AA03CUL)) + +/* Base Timer I/O selector channel 12 - channel 15 registers */ +#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_0 *((volatile unsigned int*)(0x424AE020UL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_1 *((volatile unsigned int*)(0x424AE024UL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_2 *((volatile unsigned int*)(0x424AE028UL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_3 *((volatile unsigned int*)(0x424AE02CUL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_0 *((volatile unsigned int*)(0x424AE030UL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_1 *((volatile unsigned int*)(0x424AE034UL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_2 *((volatile unsigned int*)(0x424AE038UL)) +#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_3 *((volatile unsigned int*)(0x424AE03CUL)) + +/* Software based Simulation Startup (Base Timer) register */ +#define bFM4_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) +#define bFM4_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) +#define bFM4_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) +#define bFM4_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) +#define bFM4_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) +#define bFM4_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) +#define bFM4_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) +#define bFM4_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) +#define bFM4_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) +#define bFM4_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) +#define bFM4_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) +#define bFM4_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) +#define bFM4_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) +#define bFM4_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) +#define bFM4_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) +#define bFM4_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) + +/* Quad position and revolution counter channel 0 registers */ +#define bFM4_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM4_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM4_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM4_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM4_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM4_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM4_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM4_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM4_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM4_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM4_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM4_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM4_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM4_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM4_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM4_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM4_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM4_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM4_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM4_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM4_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM4_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM4_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM4_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM4_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM4_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM4_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM4_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM4_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM4_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM4_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM4_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM4_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM4_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM4_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM4_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM4_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM4_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM4_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM4_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM4_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM4_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM4_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM4_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM4_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM4_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM4_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM4_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM4_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM4_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM4_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM4_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM4_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM4_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM4_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM4_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM4_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM4_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM4_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM4_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM4_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) +#define bFM4_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) +#define bFM4_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) + +/* Quad position and revolution counter channel 1 registers */ +#define bFM4_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM4_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM4_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM4_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM4_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM4_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM4_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM4_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM4_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM4_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM4_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM4_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM4_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM4_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM4_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM4_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM4_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM4_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM4_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM4_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM4_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM4_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM4_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM4_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM4_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM4_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM4_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM4_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM4_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM4_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM4_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM4_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM4_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM4_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM4_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM4_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM4_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM4_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM4_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM4_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM4_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM4_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM4_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM4_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM4_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM4_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM4_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM4_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM4_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM4_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM4_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM4_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM4_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM4_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM4_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM4_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM4_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM4_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM4_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM4_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM4_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) +#define bFM4_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) +#define bFM4_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) + +/* Quad position and revolution counter channel 2 registers */ +#define bFM4_QPRC2_QICR_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) +#define bFM4_QPRC2_QICR_QPCMF *((volatile unsigned int*)(0x424C1284UL)) +#define bFM4_QPRC2_QICR_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) +#define bFM4_QPRC2_QICR_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) +#define bFM4_QPRC2_QICR_OUZIE *((volatile unsigned int*)(0x424C1290UL)) +#define bFM4_QPRC2_QICR_UFDF *((volatile unsigned int*)(0x424C1294UL)) +#define bFM4_QPRC2_QICR_OFDF *((volatile unsigned int*)(0x424C1298UL)) +#define bFM4_QPRC2_QICR_ZIIF *((volatile unsigned int*)(0x424C129CUL)) +#define bFM4_QPRC2_QICR_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) +#define bFM4_QPRC2_QICR_CDCF *((volatile unsigned int*)(0x424C12A4UL)) +#define bFM4_QPRC2_QICR_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) +#define bFM4_QPRC2_QICR_DIROU *((volatile unsigned int*)(0x424C12ACUL)) +#define bFM4_QPRC2_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) +#define bFM4_QPRC2_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) +#define bFM4_QPRC2_QICRL_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) +#define bFM4_QPRC2_QICRL_QPCMF *((volatile unsigned int*)(0x424C1284UL)) +#define bFM4_QPRC2_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) +#define bFM4_QPRC2_QICRL_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) +#define bFM4_QPRC2_QICRL_OUZIE *((volatile unsigned int*)(0x424C1290UL)) +#define bFM4_QPRC2_QICRL_UFDF *((volatile unsigned int*)(0x424C1294UL)) +#define bFM4_QPRC2_QICRL_OFDF *((volatile unsigned int*)(0x424C1298UL)) +#define bFM4_QPRC2_QICRL_ZIIF *((volatile unsigned int*)(0x424C129CUL)) +#define bFM4_QPRC2_QICRH_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) +#define bFM4_QPRC2_QICRH_CDCF *((volatile unsigned int*)(0x424C12A4UL)) +#define bFM4_QPRC2_QICRH_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) +#define bFM4_QPRC2_QICRH_DIROU *((volatile unsigned int*)(0x424C12ACUL)) +#define bFM4_QPRC2_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) +#define bFM4_QPRC2_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) +#define bFM4_QPRC2_QCR_PCM0 *((volatile unsigned int*)(0x424C1300UL)) +#define bFM4_QPRC2_QCR_PCM1 *((volatile unsigned int*)(0x424C1304UL)) +#define bFM4_QPRC2_QCR_RCM0 *((volatile unsigned int*)(0x424C1308UL)) +#define bFM4_QPRC2_QCR_RCM1 *((volatile unsigned int*)(0x424C130CUL)) +#define bFM4_QPRC2_QCR_PSTP *((volatile unsigned int*)(0x424C1310UL)) +#define bFM4_QPRC2_QCR_CGSC *((volatile unsigned int*)(0x424C1314UL)) +#define bFM4_QPRC2_QCR_RSEL *((volatile unsigned int*)(0x424C1318UL)) +#define bFM4_QPRC2_QCR_SWAP *((volatile unsigned int*)(0x424C131CUL)) +#define bFM4_QPRC2_QCR_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) +#define bFM4_QPRC2_QCR_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) +#define bFM4_QPRC2_QCR_AES0 *((volatile unsigned int*)(0x424C1328UL)) +#define bFM4_QPRC2_QCR_AES1 *((volatile unsigned int*)(0x424C132CUL)) +#define bFM4_QPRC2_QCR_BES0 *((volatile unsigned int*)(0x424C1330UL)) +#define bFM4_QPRC2_QCR_BES1 *((volatile unsigned int*)(0x424C1334UL)) +#define bFM4_QPRC2_QCR_CGE0 *((volatile unsigned int*)(0x424C1338UL)) +#define bFM4_QPRC2_QCR_CGE1 *((volatile unsigned int*)(0x424C133CUL)) +#define bFM4_QPRC2_QCRL_PCM0 *((volatile unsigned int*)(0x424C1300UL)) +#define bFM4_QPRC2_QCRL_PCM1 *((volatile unsigned int*)(0x424C1304UL)) +#define bFM4_QPRC2_QCRL_RCM0 *((volatile unsigned int*)(0x424C1308UL)) +#define bFM4_QPRC2_QCRL_RCM1 *((volatile unsigned int*)(0x424C130CUL)) +#define bFM4_QPRC2_QCRL_PSTP *((volatile unsigned int*)(0x424C1310UL)) +#define bFM4_QPRC2_QCRL_CGSC *((volatile unsigned int*)(0x424C1314UL)) +#define bFM4_QPRC2_QCRL_RSEL *((volatile unsigned int*)(0x424C1318UL)) +#define bFM4_QPRC2_QCRL_SWAP *((volatile unsigned int*)(0x424C131CUL)) +#define bFM4_QPRC2_QCRH_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) +#define bFM4_QPRC2_QCRH_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) +#define bFM4_QPRC2_QCRH_AES0 *((volatile unsigned int*)(0x424C1328UL)) +#define bFM4_QPRC2_QCRH_AES1 *((volatile unsigned int*)(0x424C132CUL)) +#define bFM4_QPRC2_QCRH_BES0 *((volatile unsigned int*)(0x424C1330UL)) +#define bFM4_QPRC2_QCRH_BES1 *((volatile unsigned int*)(0x424C1334UL)) +#define bFM4_QPRC2_QCRH_CGE0 *((volatile unsigned int*)(0x424C1338UL)) +#define bFM4_QPRC2_QCRH_CGE1 *((volatile unsigned int*)(0x424C133CUL)) +#define bFM4_QPRC2_QECR_ORNGMD *((volatile unsigned int*)(0x424C1380UL)) +#define bFM4_QPRC2_QECR_ORNGF *((volatile unsigned int*)(0x424C1384UL)) +#define bFM4_QPRC2_QECR_ORNGIE *((volatile unsigned int*)(0x424C1388UL)) + +/* Quad position and revolution counter channel 3 registers */ +#define bFM4_QPRC3_QICR_QPCMIE *((volatile unsigned int*)(0x424c1a80UL)) +#define bFM4_QPRC3_QICR_QPCMF *((volatile unsigned int*)(0x424c1a84UL)) +#define bFM4_QPRC3_QICR_QPRCMIE *((volatile unsigned int*)(0x424c1a88UL)) +#define bFM4_QPRC3_QICR_QPRCMF *((volatile unsigned int*)(0x424c1a8cUL)) +#define bFM4_QPRC3_QICR_OUZIE *((volatile unsigned int*)(0x424c1a90UL)) +#define bFM4_QPRC3_QICR_UFDF *((volatile unsigned int*)(0x424c1a94UL)) +#define bFM4_QPRC3_QICR_OFDF *((volatile unsigned int*)(0x424c1a98UL)) +#define bFM4_QPRC3_QICR_ZIIF *((volatile unsigned int*)(0x424c1a9cUL)) +#define bFM4_QPRC3_QICR_CDCIE *((volatile unsigned int*)(0x424c1aa0UL)) +#define bFM4_QPRC3_QICR_CDCF *((volatile unsigned int*)(0x424c1aa4UL)) +#define bFM4_QPRC3_QICR_DIRPC *((volatile unsigned int*)(0x424c1aa8UL)) +#define bFM4_QPRC3_QICR_DIROU *((volatile unsigned int*)(0x424c1aacUL)) +#define bFM4_QPRC3_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424c1ab0UL)) +#define bFM4_QPRC3_QICR_QPCNRCMF *((volatile unsigned int*)(0x424c1ab4UL)) +#define bFM4_QPRC3_QCR_PCM0 *((volatile unsigned int*)(0x424c1b00UL)) +#define bFM4_QPRC3_QCR_PCM1 *((volatile unsigned int*)(0x424c1b04UL)) +#define bFM4_QPRC3_QCR_RCM0 *((volatile unsigned int*)(0x424c1b08UL)) +#define bFM4_QPRC3_QCR_RCM1 *((volatile unsigned int*)(0x424c1b0cUL)) +#define bFM4_QPRC3_QCR_PSTP *((volatile unsigned int*)(0x424c1b10UL)) +#define bFM4_QPRC3_QCR_CGSC *((volatile unsigned int*)(0x424c1b14UL)) +#define bFM4_QPRC3_QCR_RSEL *((volatile unsigned int*)(0x424c1b18UL)) +#define bFM4_QPRC3_QCR_SWAP *((volatile unsigned int*)(0x424c1b1cUL)) +#define bFM4_QPRC3_QCR_PCRM0 *((volatile unsigned int*)(0x424c1b20UL)) +#define bFM4_QPRC3_QCR_PCRM1 *((volatile unsigned int*)(0x424c1b24UL)) +#define bFM4_QPRC3_QCR_AES0 *((volatile unsigned int*)(0x424c1b28UL)) +#define bFM4_QPRC3_QCR_AES1 *((volatile unsigned int*)(0x424c1b2cUL)) +#define bFM4_QPRC3_QCR_BES0 *((volatile unsigned int*)(0x424c1b30UL)) +#define bFM4_QPRC3_QCR_BES1 *((volatile unsigned int*)(0x424c1b34UL)) +#define bFM4_QPRC3_QCR_CGE0 *((volatile unsigned int*)(0x424c1b38UL)) +#define bFM4_QPRC3_QCR_CGE1 *((volatile unsigned int*)(0x424c1b3cUL)) +#define bFM4_QPRC3_QECR_ORNGMD *((volatile unsigned int*)(0x424c1b80UL)) +#define bFM4_QPRC3_QECR_ORNGF *((volatile unsigned int*)(0x424c1b84UL)) +#define bFM4_QPRC3_QECR_ORNGIE *((volatile unsigned int*)(0x424c1b88UL)) + +/* QPRC NF channel 0 registers */ +#define bFM4_QPRC0_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2010UL)) +#define bFM4_QPRC0_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2014UL)) +#define bFM4_QPRC0_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2090UL)) +#define bFM4_QPRC0_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2094UL)) +#define bFM4_QPRC0_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2110UL)) +#define bFM4_QPRC0_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2114UL)) + +/* QPRC NF channel 1 registers */ +#define bFM4_QPRC1_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2210UL)) +#define bFM4_QPRC1_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2214UL)) +#define bFM4_QPRC1_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2290UL)) +#define bFM4_QPRC1_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2294UL)) +#define bFM4_QPRC1_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2310UL)) +#define bFM4_QPRC1_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2314UL)) + +/* QPRC NF channel 2 registers */ +#define bFM4_QPRC2_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2410UL)) +#define bFM4_QPRC2_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2414UL)) +#define bFM4_QPRC2_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2490UL)) +#define bFM4_QPRC2_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2494UL)) +#define bFM4_QPRC2_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2510UL)) +#define bFM4_QPRC2_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2514UL)) + +/* QPRC NF channel 3 registers */ +#define bFM4_QPRC3_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2610UL)) +#define bFM4_QPRC3_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2614UL)) +#define bFM4_QPRC3_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2690UL)) +#define bFM4_QPRC3_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2694UL)) +#define bFM4_QPRC3_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2710UL)) +#define bFM4_QPRC3_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2714UL)) + +/* 12-bit ADC unit 0 registers */ +#define bFM4_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) +#define bFM4_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) +#define bFM4_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) +#define bFM4_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) +#define bFM4_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) +#define bFM4_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) +#define bFM4_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) +#define bFM4_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) +#define bFM4_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) +#define bFM4_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) +#define bFM4_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) +#define bFM4_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) +#define bFM4_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) +#define bFM4_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) +#define bFM4_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) +#define bFM4_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) +#define bFM4_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) +#define bFM4_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) +#define bFM4_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) +#define bFM4_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) +#define bFM4_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) +#define bFM4_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) +#define bFM4_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) +#define bFM4_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM4_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM4_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM4_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM4_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM4_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM4_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM4_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM4_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM4_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM4_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM4_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM4_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM4_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM4_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM4_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM4_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM4_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM4_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM4_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM4_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM4_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM4_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM4_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM4_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM4_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM4_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM4_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM4_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM4_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM4_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM4_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM4_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM4_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM4_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM4_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM4_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM4_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM4_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM4_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM4_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM4_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM4_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM4_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM4_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM4_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM4_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM4_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM4_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM4_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM4_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM4_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM4_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM4_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM4_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM4_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM4_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM4_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM4_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM4_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM4_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM4_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM4_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM4_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM4_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM4_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM4_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM4_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM4_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM4_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM4_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM4_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM4_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM4_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM4_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM4_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM4_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM4_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM4_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM4_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM4_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM4_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM4_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM4_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM4_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM4_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM4_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM4_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM4_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM4_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM4_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM4_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM4_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM4_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM4_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM4_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM4_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM4_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM4_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM4_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM4_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM4_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM4_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM4_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM4_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) +#define bFM4_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) +#define bFM4_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) +#define bFM4_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) +#define bFM4_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) +#define bFM4_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) +#define bFM4_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) +#define bFM4_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) +#define bFM4_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) +#define bFM4_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) +#define bFM4_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) +#define bFM4_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) +#define bFM4_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM4_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM4_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM4_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM4_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM4_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM4_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM4_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM4_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM4_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM4_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM4_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM4_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM4_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM4_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM4_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM4_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM4_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM4_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM4_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM4_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM4_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM4_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM4_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM4_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM4_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM4_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM4_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM4_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM4_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM4_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM4_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM4_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM4_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM4_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM4_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM4_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM4_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM4_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM4_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM4_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM4_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM4_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) +#define bFM4_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) +#define bFM4_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) +#define bFM4_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) +#define bFM4_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) +#define bFM4_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) +#define bFM4_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) +#define bFM4_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) +#define bFM4_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) +#define bFM4_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) +#define bFM4_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) +#define bFM4_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) +#define bFM4_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) +#define bFM4_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) +#define bFM4_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) +#define bFM4_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) +#define bFM4_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) +#define bFM4_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) +#define bFM4_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) +#define bFM4_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) +#define bFM4_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) +#define bFM4_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) +#define bFM4_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) +#define bFM4_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) +#define bFM4_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) +#define bFM4_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) +#define bFM4_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM4_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM4_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM4_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM4_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM4_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM4_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM4_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM4_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM4_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM4_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM4_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM4_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM4_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM4_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM4_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM4_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM4_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM4_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM4_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM4_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM4_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM4_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM4_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM4_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM4_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM4_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM4_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM4_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM4_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM4_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM4_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM4_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM4_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM4_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM4_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM4_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM4_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM4_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM4_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM4_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM4_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM4_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM4_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM4_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM4_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM4_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM4_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM4_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM4_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM4_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM4_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM4_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM4_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM4_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM4_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM4_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM4_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM4_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM4_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM4_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM4_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM4_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM4_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM4_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM4_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM4_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM4_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM4_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM4_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM4_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM4_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM4_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM4_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM4_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM4_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM4_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM4_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM4_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM4_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM4_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM4_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM4_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM4_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM4_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM4_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM4_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM4_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM4_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM4_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM4_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM4_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM4_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM4_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM4_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM4_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM4_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) +#define bFM4_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) +#define bFM4_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) +#define bFM4_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) +#define bFM4_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) +#define bFM4_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) +#define bFM4_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) +#define bFM4_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) +#define bFM4_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) +#define bFM4_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) +#define bFM4_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) +#define bFM4_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) +#define bFM4_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) + +/* 12-bit ADC unit 1 registers */ +#define bFM4_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) +#define bFM4_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) +#define bFM4_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) +#define bFM4_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) +#define bFM4_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) +#define bFM4_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) +#define bFM4_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) +#define bFM4_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) +#define bFM4_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) +#define bFM4_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) +#define bFM4_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) +#define bFM4_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) +#define bFM4_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) +#define bFM4_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) +#define bFM4_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) +#define bFM4_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) +#define bFM4_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) +#define bFM4_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) +#define bFM4_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) +#define bFM4_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) +#define bFM4_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) +#define bFM4_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) +#define bFM4_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) +#define bFM4_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM4_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM4_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM4_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM4_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM4_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM4_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM4_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM4_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM4_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM4_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM4_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM4_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM4_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM4_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM4_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM4_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM4_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM4_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM4_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM4_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM4_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM4_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM4_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM4_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM4_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM4_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM4_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM4_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM4_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM4_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM4_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM4_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM4_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM4_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM4_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM4_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM4_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM4_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM4_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM4_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM4_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM4_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM4_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM4_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM4_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM4_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM4_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM4_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM4_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM4_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM4_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM4_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM4_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM4_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM4_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM4_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM4_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM4_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM4_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM4_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM4_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM4_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM4_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM4_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM4_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM4_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM4_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM4_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM4_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM4_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM4_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM4_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM4_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM4_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM4_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM4_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM4_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM4_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM4_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM4_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM4_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM4_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM4_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM4_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM4_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM4_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM4_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM4_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM4_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM4_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM4_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM4_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM4_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM4_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM4_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM4_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM4_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM4_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM4_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM4_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM4_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM4_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM4_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM4_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) +#define bFM4_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) +#define bFM4_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) +#define bFM4_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) +#define bFM4_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) +#define bFM4_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) +#define bFM4_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) +#define bFM4_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) +#define bFM4_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) +#define bFM4_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) +#define bFM4_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) +#define bFM4_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) +#define bFM4_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM4_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM4_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM4_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM4_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM4_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM4_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM4_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM4_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM4_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM4_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM4_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM4_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM4_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM4_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM4_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM4_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM4_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM4_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM4_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM4_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM4_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM4_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM4_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM4_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM4_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM4_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM4_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM4_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM4_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM4_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM4_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM4_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM4_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM4_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM4_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM4_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM4_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM4_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM4_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM4_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM4_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM4_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) +#define bFM4_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) +#define bFM4_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) +#define bFM4_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) +#define bFM4_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) +#define bFM4_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) +#define bFM4_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) +#define bFM4_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) +#define bFM4_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) +#define bFM4_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) +#define bFM4_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) +#define bFM4_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) +#define bFM4_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) +#define bFM4_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) +#define bFM4_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) +#define bFM4_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) +#define bFM4_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) +#define bFM4_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) +#define bFM4_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) +#define bFM4_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) +#define bFM4_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) +#define bFM4_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) +#define bFM4_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) +#define bFM4_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) +#define bFM4_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) +#define bFM4_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) +#define bFM4_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM4_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM4_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM4_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM4_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM4_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM4_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM4_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM4_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM4_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM4_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM4_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM4_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM4_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM4_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM4_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM4_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM4_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM4_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM4_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM4_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM4_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM4_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM4_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM4_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM4_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM4_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM4_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM4_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM4_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM4_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM4_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM4_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM4_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM4_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM4_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM4_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM4_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM4_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM4_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM4_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM4_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM4_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM4_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM4_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM4_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM4_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM4_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM4_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM4_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM4_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM4_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM4_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM4_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM4_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM4_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM4_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM4_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM4_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM4_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM4_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM4_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM4_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM4_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM4_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM4_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM4_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM4_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM4_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM4_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM4_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM4_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM4_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM4_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM4_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM4_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM4_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM4_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM4_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM4_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM4_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM4_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM4_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM4_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM4_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM4_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM4_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM4_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM4_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM4_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM4_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM4_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM4_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM4_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM4_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM4_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM4_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) +#define bFM4_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) +#define bFM4_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) +#define bFM4_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) +#define bFM4_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) +#define bFM4_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) +#define bFM4_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) +#define bFM4_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) +#define bFM4_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) +#define bFM4_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) +#define bFM4_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) +#define bFM4_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) +#define bFM4_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) + +/* 12-bit ADC unit 2 registers */ +#define bFM4_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) +#define bFM4_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) +#define bFM4_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) +#define bFM4_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) +#define bFM4_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) +#define bFM4_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) +#define bFM4_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) +#define bFM4_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) +#define bFM4_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) +#define bFM4_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) +#define bFM4_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) +#define bFM4_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) +#define bFM4_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) +#define bFM4_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) +#define bFM4_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) +#define bFM4_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) +#define bFM4_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) +#define bFM4_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) +#define bFM4_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) +#define bFM4_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) +#define bFM4_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) +#define bFM4_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) +#define bFM4_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) +#define bFM4_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM4_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM4_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM4_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM4_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM4_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM4_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM4_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM4_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM4_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM4_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM4_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM4_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM4_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM4_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM4_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM4_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM4_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM4_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM4_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM4_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM4_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM4_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM4_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM4_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM4_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM4_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM4_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM4_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM4_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM4_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM4_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM4_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM4_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM4_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM4_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM4_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM4_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM4_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM4_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM4_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM4_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM4_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM4_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM4_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM4_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM4_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM4_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM4_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM4_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM4_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM4_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM4_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM4_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM4_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM4_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM4_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM4_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM4_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM4_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM4_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM4_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM4_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM4_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM4_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM4_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM4_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM4_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM4_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM4_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM4_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM4_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM4_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM4_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM4_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM4_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM4_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM4_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM4_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM4_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM4_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM4_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM4_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM4_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM4_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM4_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM4_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM4_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM4_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM4_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM4_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM4_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM4_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM4_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM4_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM4_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM4_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM4_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM4_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM4_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM4_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM4_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM4_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM4_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM4_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) +#define bFM4_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) +#define bFM4_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) +#define bFM4_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) +#define bFM4_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) +#define bFM4_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) +#define bFM4_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) +#define bFM4_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) +#define bFM4_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) +#define bFM4_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) +#define bFM4_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) +#define bFM4_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) +#define bFM4_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM4_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM4_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM4_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM4_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM4_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM4_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM4_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM4_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM4_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM4_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM4_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM4_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM4_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM4_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM4_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM4_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM4_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM4_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM4_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM4_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM4_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM4_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM4_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM4_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM4_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM4_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM4_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM4_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM4_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM4_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM4_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM4_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM4_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM4_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM4_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM4_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM4_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM4_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM4_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM4_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM4_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM4_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) +#define bFM4_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) +#define bFM4_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) +#define bFM4_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) +#define bFM4_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) +#define bFM4_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) +#define bFM4_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) +#define bFM4_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) +#define bFM4_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) +#define bFM4_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) +#define bFM4_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) +#define bFM4_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) +#define bFM4_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) +#define bFM4_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) +#define bFM4_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) +#define bFM4_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) +#define bFM4_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) +#define bFM4_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) +#define bFM4_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) +#define bFM4_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) +#define bFM4_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) +#define bFM4_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) +#define bFM4_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) +#define bFM4_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) +#define bFM4_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) +#define bFM4_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) +#define bFM4_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM4_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM4_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM4_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM4_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM4_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM4_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM4_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM4_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM4_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM4_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM4_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM4_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM4_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM4_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM4_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM4_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM4_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM4_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM4_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM4_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM4_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM4_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM4_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM4_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM4_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM4_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM4_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM4_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM4_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM4_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM4_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM4_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM4_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM4_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM4_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM4_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM4_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM4_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM4_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM4_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM4_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM4_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM4_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM4_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM4_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM4_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM4_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM4_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM4_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM4_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM4_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM4_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM4_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM4_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM4_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM4_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM4_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM4_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM4_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM4_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM4_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM4_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM4_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM4_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM4_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM4_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM4_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM4_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM4_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM4_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM4_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM4_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM4_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM4_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM4_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM4_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM4_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM4_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM4_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM4_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM4_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM4_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM4_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM4_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM4_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM4_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM4_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM4_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM4_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM4_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM4_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM4_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM4_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM4_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM4_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM4_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) +#define bFM4_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) +#define bFM4_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) +#define bFM4_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) +#define bFM4_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) +#define bFM4_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) +#define bFM4_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) +#define bFM4_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) +#define bFM4_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) +#define bFM4_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) +#define bFM4_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) +#define bFM4_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) +#define bFM4_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) + +/* CR trimming registers */ +#define bFM4_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) +#define bFM4_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) +#define bFM4_CRTRIM_MCR_PSR_CSR2 *((volatile unsigned int*)(0x425C0008UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD8 *((volatile unsigned int*)(0x425C00A0UL)) +#define bFM4_CRTRIM_MCR_FTRM_TRD9 *((volatile unsigned int*)(0x425C00A4UL)) +#define bFM4_CRTRIM_MCR_TTRM_TRT0 *((volatile unsigned int*)(0x425C0100UL)) +#define bFM4_CRTRIM_MCR_TTRM_TRT1 *((volatile unsigned int*)(0x425C0104UL)) +#define bFM4_CRTRIM_MCR_TTRM_TRT2 *((volatile unsigned int*)(0x425C0108UL)) +#define bFM4_CRTRIM_MCR_TTRM_TRT3 *((volatile unsigned int*)(0x425C010CUL)) +#define bFM4_CRTRIM_MCR_TTRM_TRT4 *((volatile unsigned int*)(0x425C0110UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK0 *((volatile unsigned int*)(0x425C0180UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK1 *((volatile unsigned int*)(0x425C0184UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK2 *((volatile unsigned int*)(0x425C0188UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK3 *((volatile unsigned int*)(0x425C018CUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK4 *((volatile unsigned int*)(0x425C0190UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK5 *((volatile unsigned int*)(0x425C0194UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK6 *((volatile unsigned int*)(0x425C0198UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK7 *((volatile unsigned int*)(0x425C019CUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK8 *((volatile unsigned int*)(0x425C01A0UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK9 *((volatile unsigned int*)(0x425C01A4UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK10 *((volatile unsigned int*)(0x425C01A8UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK11 *((volatile unsigned int*)(0x425C01ACUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK12 *((volatile unsigned int*)(0x425C01B0UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK13 *((volatile unsigned int*)(0x425C01B4UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK14 *((volatile unsigned int*)(0x425C01B8UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK15 *((volatile unsigned int*)(0x425C01BCUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK16 *((volatile unsigned int*)(0x425C01C0UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK17 *((volatile unsigned int*)(0x425C01C4UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK18 *((volatile unsigned int*)(0x425C01C8UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK19 *((volatile unsigned int*)(0x425C01CCUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK20 *((volatile unsigned int*)(0x425C01D0UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK21 *((volatile unsigned int*)(0x425C01D4UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK22 *((volatile unsigned int*)(0x425C01D8UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK23 *((volatile unsigned int*)(0x425C01DCUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK24 *((volatile unsigned int*)(0x425C01E0UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK25 *((volatile unsigned int*)(0x425C01E4UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK26 *((volatile unsigned int*)(0x425C01E8UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK27 *((volatile unsigned int*)(0x425C01ECUL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK28 *((volatile unsigned int*)(0x425C01F0UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK29 *((volatile unsigned int*)(0x425C01F4UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK30 *((volatile unsigned int*)(0x425C01F8UL)) +#define bFM4_CRTRIM_MCR_RLR_TRMLCK31 *((volatile unsigned int*)(0x425C01FCUL)) + +/* External interrupt registers */ +#define bFM4_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) +#define bFM4_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) +#define bFM4_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) +#define bFM4_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) +#define bFM4_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) +#define bFM4_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) +#define bFM4_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) +#define bFM4_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) +#define bFM4_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) +#define bFM4_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) +#define bFM4_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) +#define bFM4_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) +#define bFM4_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) +#define bFM4_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) +#define bFM4_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) +#define bFM4_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) +#define bFM4_EXTI_ENIR_EN16 *((volatile unsigned int*)(0x42600040UL)) +#define bFM4_EXTI_ENIR_EN17 *((volatile unsigned int*)(0x42600044UL)) +#define bFM4_EXTI_ENIR_EN18 *((volatile unsigned int*)(0x42600048UL)) +#define bFM4_EXTI_ENIR_EN19 *((volatile unsigned int*)(0x4260004CUL)) +#define bFM4_EXTI_ENIR_EN20 *((volatile unsigned int*)(0x42600050UL)) +#define bFM4_EXTI_ENIR_EN21 *((volatile unsigned int*)(0x42600054UL)) +#define bFM4_EXTI_ENIR_EN22 *((volatile unsigned int*)(0x42600058UL)) +#define bFM4_EXTI_ENIR_EN23 *((volatile unsigned int*)(0x4260005CUL)) +#define bFM4_EXTI_ENIR_EN24 *((volatile unsigned int*)(0x42600060UL)) +#define bFM4_EXTI_ENIR_EN25 *((volatile unsigned int*)(0x42600064UL)) +#define bFM4_EXTI_ENIR_EN26 *((volatile unsigned int*)(0x42600068UL)) +#define bFM4_EXTI_ENIR_EN27 *((volatile unsigned int*)(0x4260006CUL)) +#define bFM4_EXTI_ENIR_EN28 *((volatile unsigned int*)(0x42600070UL)) +#define bFM4_EXTI_ENIR_EN29 *((volatile unsigned int*)(0x42600074UL)) +#define bFM4_EXTI_ENIR_EN30 *((volatile unsigned int*)(0x42600078UL)) +#define bFM4_EXTI_ENIR_EN31 *((volatile unsigned int*)(0x4260007CUL)) +#define bFM4_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) +#define bFM4_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) +#define bFM4_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) +#define bFM4_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) +#define bFM4_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) +#define bFM4_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) +#define bFM4_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) +#define bFM4_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) +#define bFM4_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) +#define bFM4_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) +#define bFM4_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) +#define bFM4_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) +#define bFM4_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) +#define bFM4_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) +#define bFM4_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) +#define bFM4_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) +#define bFM4_EXTI_EIRR_ER16 *((volatile unsigned int*)(0x426000C0UL)) +#define bFM4_EXTI_EIRR_ER17 *((volatile unsigned int*)(0x426000C4UL)) +#define bFM4_EXTI_EIRR_ER18 *((volatile unsigned int*)(0x426000C8UL)) +#define bFM4_EXTI_EIRR_ER19 *((volatile unsigned int*)(0x426000CCUL)) +#define bFM4_EXTI_EIRR_ER20 *((volatile unsigned int*)(0x426000D0UL)) +#define bFM4_EXTI_EIRR_ER21 *((volatile unsigned int*)(0x426000D4UL)) +#define bFM4_EXTI_EIRR_ER22 *((volatile unsigned int*)(0x426000D8UL)) +#define bFM4_EXTI_EIRR_ER23 *((volatile unsigned int*)(0x426000DCUL)) +#define bFM4_EXTI_EIRR_ER24 *((volatile unsigned int*)(0x426000E0UL)) +#define bFM4_EXTI_EIRR_ER25 *((volatile unsigned int*)(0x426000E4UL)) +#define bFM4_EXTI_EIRR_ER26 *((volatile unsigned int*)(0x426000E8UL)) +#define bFM4_EXTI_EIRR_ER27 *((volatile unsigned int*)(0x426000ECUL)) +#define bFM4_EXTI_EIRR_ER28 *((volatile unsigned int*)(0x426000F0UL)) +#define bFM4_EXTI_EIRR_ER29 *((volatile unsigned int*)(0x426000F4UL)) +#define bFM4_EXTI_EIRR_ER30 *((volatile unsigned int*)(0x426000F8UL)) +#define bFM4_EXTI_EIRR_ER31 *((volatile unsigned int*)(0x426000FCUL)) +#define bFM4_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) +#define bFM4_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) +#define bFM4_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) +#define bFM4_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) +#define bFM4_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) +#define bFM4_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) +#define bFM4_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) +#define bFM4_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) +#define bFM4_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) +#define bFM4_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) +#define bFM4_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) +#define bFM4_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) +#define bFM4_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) +#define bFM4_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) +#define bFM4_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) +#define bFM4_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) +#define bFM4_EXTI_EICL_ECL16 *((volatile unsigned int*)(0x42600140UL)) +#define bFM4_EXTI_EICL_ECL17 *((volatile unsigned int*)(0x42600144UL)) +#define bFM4_EXTI_EICL_ECL18 *((volatile unsigned int*)(0x42600148UL)) +#define bFM4_EXTI_EICL_ECL19 *((volatile unsigned int*)(0x4260014CUL)) +#define bFM4_EXTI_EICL_ECL20 *((volatile unsigned int*)(0x42600150UL)) +#define bFM4_EXTI_EICL_ECL21 *((volatile unsigned int*)(0x42600154UL)) +#define bFM4_EXTI_EICL_ECL22 *((volatile unsigned int*)(0x42600158UL)) +#define bFM4_EXTI_EICL_ECL23 *((volatile unsigned int*)(0x4260015CUL)) +#define bFM4_EXTI_EICL_ECL24 *((volatile unsigned int*)(0x42600160UL)) +#define bFM4_EXTI_EICL_ECL25 *((volatile unsigned int*)(0x42600164UL)) +#define bFM4_EXTI_EICL_ECL26 *((volatile unsigned int*)(0x42600168UL)) +#define bFM4_EXTI_EICL_ECL27 *((volatile unsigned int*)(0x4260016CUL)) +#define bFM4_EXTI_EICL_ECL28 *((volatile unsigned int*)(0x42600170UL)) +#define bFM4_EXTI_EICL_ECL29 *((volatile unsigned int*)(0x42600174UL)) +#define bFM4_EXTI_EICL_ECL30 *((volatile unsigned int*)(0x42600178UL)) +#define bFM4_EXTI_EICL_ECL31 *((volatile unsigned int*)(0x4260017CUL)) +#define bFM4_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) +#define bFM4_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) +#define bFM4_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) +#define bFM4_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) +#define bFM4_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) +#define bFM4_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) +#define bFM4_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) +#define bFM4_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) +#define bFM4_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) +#define bFM4_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) +#define bFM4_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) +#define bFM4_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) +#define bFM4_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) +#define bFM4_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) +#define bFM4_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) +#define bFM4_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) +#define bFM4_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) +#define bFM4_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) +#define bFM4_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) +#define bFM4_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) +#define bFM4_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) +#define bFM4_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) +#define bFM4_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) +#define bFM4_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) +#define bFM4_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) +#define bFM4_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) +#define bFM4_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) +#define bFM4_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) +#define bFM4_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) +#define bFM4_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) +#define bFM4_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) +#define bFM4_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) +#define bFM4_EXTI_ELVR1_LA16 *((volatile unsigned int*)(0x42600200UL)) +#define bFM4_EXTI_ELVR1_LB16 *((volatile unsigned int*)(0x42600204UL)) +#define bFM4_EXTI_ELVR1_LA17 *((volatile unsigned int*)(0x42600208UL)) +#define bFM4_EXTI_ELVR1_LB17 *((volatile unsigned int*)(0x4260020CUL)) +#define bFM4_EXTI_ELVR1_LA18 *((volatile unsigned int*)(0x42600210UL)) +#define bFM4_EXTI_ELVR1_LB18 *((volatile unsigned int*)(0x42600214UL)) +#define bFM4_EXTI_ELVR1_LA19 *((volatile unsigned int*)(0x42600218UL)) +#define bFM4_EXTI_ELVR1_LB19 *((volatile unsigned int*)(0x4260021CUL)) +#define bFM4_EXTI_ELVR1_LA20 *((volatile unsigned int*)(0x42600220UL)) +#define bFM4_EXTI_ELVR1_LB20 *((volatile unsigned int*)(0x42600224UL)) +#define bFM4_EXTI_ELVR1_LA21 *((volatile unsigned int*)(0x42600228UL)) +#define bFM4_EXTI_ELVR1_LB21 *((volatile unsigned int*)(0x4260022CUL)) +#define bFM4_EXTI_ELVR1_LA22 *((volatile unsigned int*)(0x42600230UL)) +#define bFM4_EXTI_ELVR1_LB22 *((volatile unsigned int*)(0x42600234UL)) +#define bFM4_EXTI_ELVR1_LA23 *((volatile unsigned int*)(0x42600238UL)) +#define bFM4_EXTI_ELVR1_LB23 *((volatile unsigned int*)(0x4260023CUL)) +#define bFM4_EXTI_ELVR1_LA24 *((volatile unsigned int*)(0x42600240UL)) +#define bFM4_EXTI_ELVR1_LB24 *((volatile unsigned int*)(0x42600244UL)) +#define bFM4_EXTI_ELVR1_LA25 *((volatile unsigned int*)(0x42600248UL)) +#define bFM4_EXTI_ELVR1_LB25 *((volatile unsigned int*)(0x4260024CUL)) +#define bFM4_EXTI_ELVR1_LA26 *((volatile unsigned int*)(0x42600250UL)) +#define bFM4_EXTI_ELVR1_LB26 *((volatile unsigned int*)(0x42600254UL)) +#define bFM4_EXTI_ELVR1_LA27 *((volatile unsigned int*)(0x42600258UL)) +#define bFM4_EXTI_ELVR1_LB27 *((volatile unsigned int*)(0x4260025CUL)) +#define bFM4_EXTI_ELVR1_LA28 *((volatile unsigned int*)(0x42600260UL)) +#define bFM4_EXTI_ELVR1_LB28 *((volatile unsigned int*)(0x42600264UL)) +#define bFM4_EXTI_ELVR1_LA29 *((volatile unsigned int*)(0x42600268UL)) +#define bFM4_EXTI_ELVR1_LB29 *((volatile unsigned int*)(0x4260026CUL)) +#define bFM4_EXTI_ELVR1_LA30 *((volatile unsigned int*)(0x42600270UL)) +#define bFM4_EXTI_ELVR1_LB30 *((volatile unsigned int*)(0x42600274UL)) +#define bFM4_EXTI_ELVR1_LA31 *((volatile unsigned int*)(0x42600278UL)) +#define bFM4_EXTI_ELVR1_LB31 *((volatile unsigned int*)(0x4260027CUL)) +#define bFM4_EXTI_NMIRR_NR *((volatile unsigned int*)(0x42600280UL)) +#define bFM4_EXTI_NMICL_NCL *((volatile unsigned int*)(0x42600300UL)) + +/* Interrupt request read registers */ +#define bFM4_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) +#define bFM4_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) +#define bFM4_INTREQ_ODDPKS_ODDPKS0 *((volatile unsigned int*)(0x42620200UL)) +#define bFM4_INTREQ_ODDPKS_ODDPKS1 *((volatile unsigned int*)(0x42620204UL)) +#define bFM4_INTREQ_ODDPKS_ODDPKS2 *((volatile unsigned int*)(0x42620208UL)) +#define bFM4_INTREQ_ODDPKS_ODDPKS3 *((volatile unsigned int*)(0x4262020CUL)) +#define bFM4_INTREQ_ODDPKS_ODDPKS4 *((volatile unsigned int*)(0x42620210UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ0 *((volatile unsigned int*)(0x42622200UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ1 *((volatile unsigned int*)(0x42622204UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ2 *((volatile unsigned int*)(0x42622208UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ3 *((volatile unsigned int*)(0x4262220CUL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ4 *((volatile unsigned int*)(0x42622210UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ5 *((volatile unsigned int*)(0x42622214UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ6 *((volatile unsigned int*)(0x42622218UL)) +#define bFM4_INTREQ_IRQ003SEL_SELIRQ7 *((volatile unsigned int*)(0x4262221CUL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT0 *((volatile unsigned int*)(0x42622240UL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT1 *((volatile unsigned int*)(0x42622244UL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT2 *((volatile unsigned int*)(0x42622248UL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT3 *((volatile unsigned int*)(0x4262224CUL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT4 *((volatile unsigned int*)(0x42622250UL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT5 *((volatile unsigned int*)(0x42622254UL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT6 *((volatile unsigned int*)(0x42622258UL)) +#define bFM4_INTREQ_IRQ003SEL_SELBIT7 *((volatile unsigned int*)(0x4262225CUL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ0 *((volatile unsigned int*)(0x42622280UL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ1 *((volatile unsigned int*)(0x42622284UL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ2 *((volatile unsigned int*)(0x42622288UL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ3 *((volatile unsigned int*)(0x4262228CUL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ4 *((volatile unsigned int*)(0x42622290UL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ5 *((volatile unsigned int*)(0x42622294UL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ6 *((volatile unsigned int*)(0x42622298UL)) +#define bFM4_INTREQ_IRQ004SEL_SELIRQ7 *((volatile unsigned int*)(0x4262229CUL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT0 *((volatile unsigned int*)(0x426222C0UL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT1 *((volatile unsigned int*)(0x426222C4UL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT2 *((volatile unsigned int*)(0x426222C8UL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT3 *((volatile unsigned int*)(0x426222CCUL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT4 *((volatile unsigned int*)(0x426222D0UL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT5 *((volatile unsigned int*)(0x426222D4UL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT6 *((volatile unsigned int*)(0x426222D8UL)) +#define bFM4_INTREQ_IRQ004SEL_SELBIT7 *((volatile unsigned int*)(0x426222DCUL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ0 *((volatile unsigned int*)(0x42622300UL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ1 *((volatile unsigned int*)(0x42622304UL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ2 *((volatile unsigned int*)(0x42622308UL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ3 *((volatile unsigned int*)(0x4262230CUL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ4 *((volatile unsigned int*)(0x42622310UL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ5 *((volatile unsigned int*)(0x42622314UL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ6 *((volatile unsigned int*)(0x42622318UL)) +#define bFM4_INTREQ_IRQ005SEL_SELIRQ7 *((volatile unsigned int*)(0x4262231CUL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT0 *((volatile unsigned int*)(0x42622340UL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT1 *((volatile unsigned int*)(0x42622344UL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT2 *((volatile unsigned int*)(0x42622348UL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT3 *((volatile unsigned int*)(0x4262234CUL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT4 *((volatile unsigned int*)(0x42622350UL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT5 *((volatile unsigned int*)(0x42622354UL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT6 *((volatile unsigned int*)(0x42622358UL)) +#define bFM4_INTREQ_IRQ005SEL_SELBIT7 *((volatile unsigned int*)(0x4262235CUL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ0 *((volatile unsigned int*)(0x42622380UL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ1 *((volatile unsigned int*)(0x42622384UL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ2 *((volatile unsigned int*)(0x42622388UL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ3 *((volatile unsigned int*)(0x4262238CUL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ4 *((volatile unsigned int*)(0x42622390UL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ5 *((volatile unsigned int*)(0x42622394UL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ6 *((volatile unsigned int*)(0x42622398UL)) +#define bFM4_INTREQ_IRQ006SEL_SELIRQ7 *((volatile unsigned int*)(0x4262239CUL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT0 *((volatile unsigned int*)(0x426223C0UL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT1 *((volatile unsigned int*)(0x426223C4UL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT2 *((volatile unsigned int*)(0x426223C8UL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT3 *((volatile unsigned int*)(0x426223CCUL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT4 *((volatile unsigned int*)(0x426223D0UL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT5 *((volatile unsigned int*)(0x426223D4UL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT6 *((volatile unsigned int*)(0x426223D8UL)) +#define bFM4_INTREQ_IRQ006SEL_SELBIT7 *((volatile unsigned int*)(0x426223DCUL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ0 *((volatile unsigned int*)(0x42622400UL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ1 *((volatile unsigned int*)(0x42622404UL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ2 *((volatile unsigned int*)(0x42622408UL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ3 *((volatile unsigned int*)(0x4262240CUL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ4 *((volatile unsigned int*)(0x42622410UL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ5 *((volatile unsigned int*)(0x42622414UL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ6 *((volatile unsigned int*)(0x42622418UL)) +#define bFM4_INTREQ_IRQ007SEL_SELIRQ7 *((volatile unsigned int*)(0x4262241CUL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT0 *((volatile unsigned int*)(0x42622440UL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT1 *((volatile unsigned int*)(0x42622444UL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT2 *((volatile unsigned int*)(0x42622448UL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT3 *((volatile unsigned int*)(0x4262244CUL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT4 *((volatile unsigned int*)(0x42622450UL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT5 *((volatile unsigned int*)(0x42622454UL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT6 *((volatile unsigned int*)(0x42622458UL)) +#define bFM4_INTREQ_IRQ007SEL_SELBIT7 *((volatile unsigned int*)(0x4262245CUL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ0 *((volatile unsigned int*)(0x42622480UL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ1 *((volatile unsigned int*)(0x42622484UL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ2 *((volatile unsigned int*)(0x42622488UL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ3 *((volatile unsigned int*)(0x4262248CUL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ4 *((volatile unsigned int*)(0x42622490UL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ5 *((volatile unsigned int*)(0x42622494UL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ6 *((volatile unsigned int*)(0x42622498UL)) +#define bFM4_INTREQ_IRQ008SEL_SELIRQ7 *((volatile unsigned int*)(0x4262249CUL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT0 *((volatile unsigned int*)(0x426224C0UL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT1 *((volatile unsigned int*)(0x426224C4UL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT2 *((volatile unsigned int*)(0x426224C8UL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT3 *((volatile unsigned int*)(0x426224CCUL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT4 *((volatile unsigned int*)(0x426224D0UL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT5 *((volatile unsigned int*)(0x426224D4UL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT6 *((volatile unsigned int*)(0x426224D8UL)) +#define bFM4_INTREQ_IRQ008SEL_SELBIT7 *((volatile unsigned int*)(0x426224DCUL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ0 *((volatile unsigned int*)(0x42622500UL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ1 *((volatile unsigned int*)(0x42622504UL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ2 *((volatile unsigned int*)(0x42622508UL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ3 *((volatile unsigned int*)(0x4262250CUL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ4 *((volatile unsigned int*)(0x42622510UL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ5 *((volatile unsigned int*)(0x42622514UL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ6 *((volatile unsigned int*)(0x42622518UL)) +#define bFM4_INTREQ_IRQ009SEL_SELIRQ7 *((volatile unsigned int*)(0x4262251CUL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT0 *((volatile unsigned int*)(0x42622540UL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT1 *((volatile unsigned int*)(0x42622544UL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT2 *((volatile unsigned int*)(0x42622548UL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT3 *((volatile unsigned int*)(0x4262254CUL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT4 *((volatile unsigned int*)(0x42622550UL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT5 *((volatile unsigned int*)(0x42622554UL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT6 *((volatile unsigned int*)(0x42622558UL)) +#define bFM4_INTREQ_IRQ009SEL_SELBIT7 *((volatile unsigned int*)(0x4262255CUL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ0 *((volatile unsigned int*)(0x42622580UL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ1 *((volatile unsigned int*)(0x42622584UL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ2 *((volatile unsigned int*)(0x42622588UL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ3 *((volatile unsigned int*)(0x4262258CUL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ4 *((volatile unsigned int*)(0x42622590UL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ5 *((volatile unsigned int*)(0x42622594UL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ6 *((volatile unsigned int*)(0x42622598UL)) +#define bFM4_INTREQ_IRQ010SEL_SELIRQ7 *((volatile unsigned int*)(0x4262259CUL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT0 *((volatile unsigned int*)(0x426225C0UL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT1 *((volatile unsigned int*)(0x426225C4UL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT2 *((volatile unsigned int*)(0x426225C8UL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT3 *((volatile unsigned int*)(0x426225CCUL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT4 *((volatile unsigned int*)(0x426225D0UL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT5 *((volatile unsigned int*)(0x426225D4UL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT6 *((volatile unsigned int*)(0x426225D8UL)) +#define bFM4_INTREQ_IRQ010SEL_SELBIT7 *((volatile unsigned int*)(0x426225DCUL)) +#define bFM4_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42624000UL)) +#define bFM4_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42624004UL)) +#define bFM4_INTREQ_IRQ000MON_FCSINT *((volatile unsigned int*)(0x42624080UL)) +#define bFM4_INTREQ_IRQ001MON_SWWDTINT *((volatile unsigned int*)(0x42624100UL)) +#define bFM4_INTREQ_IRQ002MON_LVDINT *((volatile unsigned int*)(0x42624180UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT0 *((volatile unsigned int*)(0x42624200UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT1 *((volatile unsigned int*)(0x42624204UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT2 *((volatile unsigned int*)(0x42624208UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT3 *((volatile unsigned int*)(0x4262420CUL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT4 *((volatile unsigned int*)(0x42624210UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT5 *((volatile unsigned int*)(0x42624214UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT6 *((volatile unsigned int*)(0x42624218UL)) +#define bFM4_INTREQ_IRQ003MON_IRQBIT7 *((volatile unsigned int*)(0x4262421CUL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT0 *((volatile unsigned int*)(0x42624280UL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT1 *((volatile unsigned int*)(0x42624284UL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT2 *((volatile unsigned int*)(0x42624288UL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT3 *((volatile unsigned int*)(0x4262428CUL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT4 *((volatile unsigned int*)(0x42624290UL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT5 *((volatile unsigned int*)(0x42624294UL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT6 *((volatile unsigned int*)(0x42624298UL)) +#define bFM4_INTREQ_IRQ004MON_IRQBIT7 *((volatile unsigned int*)(0x4262429CUL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT0 *((volatile unsigned int*)(0x42624300UL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT1 *((volatile unsigned int*)(0x42624304UL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT2 *((volatile unsigned int*)(0x42624308UL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT3 *((volatile unsigned int*)(0x4262430CUL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT4 *((volatile unsigned int*)(0x42624310UL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT5 *((volatile unsigned int*)(0x42624314UL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT6 *((volatile unsigned int*)(0x42624318UL)) +#define bFM4_INTREQ_IRQ005MON_IRQBIT7 *((volatile unsigned int*)(0x4262431CUL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT0 *((volatile unsigned int*)(0x42624380UL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT1 *((volatile unsigned int*)(0x42624384UL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT2 *((volatile unsigned int*)(0x42624388UL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT3 *((volatile unsigned int*)(0x4262438CUL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT4 *((volatile unsigned int*)(0x42624390UL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT5 *((volatile unsigned int*)(0x42624394UL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT6 *((volatile unsigned int*)(0x42624398UL)) +#define bFM4_INTREQ_IRQ006MON_IRQBIT7 *((volatile unsigned int*)(0x4262439CUL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT0 *((volatile unsigned int*)(0x42624400UL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT1 *((volatile unsigned int*)(0x42624404UL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT2 *((volatile unsigned int*)(0x42624408UL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT3 *((volatile unsigned int*)(0x4262440CUL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT4 *((volatile unsigned int*)(0x42624410UL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT5 *((volatile unsigned int*)(0x42624414UL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT6 *((volatile unsigned int*)(0x42624418UL)) +#define bFM4_INTREQ_IRQ007MON_IRQBIT7 *((volatile unsigned int*)(0x4262441CUL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT0 *((volatile unsigned int*)(0x42624480UL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT1 *((volatile unsigned int*)(0x42624484UL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT2 *((volatile unsigned int*)(0x42624488UL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT3 *((volatile unsigned int*)(0x4262448CUL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT4 *((volatile unsigned int*)(0x42624490UL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT5 *((volatile unsigned int*)(0x42624494UL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT6 *((volatile unsigned int*)(0x42624498UL)) +#define bFM4_INTREQ_IRQ008MON_IRQBIT7 *((volatile unsigned int*)(0x4262449CUL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT0 *((volatile unsigned int*)(0x42624500UL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT1 *((volatile unsigned int*)(0x42624504UL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT2 *((volatile unsigned int*)(0x42624508UL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT3 *((volatile unsigned int*)(0x4262450CUL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT4 *((volatile unsigned int*)(0x42624510UL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT5 *((volatile unsigned int*)(0x42624514UL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT6 *((volatile unsigned int*)(0x42624518UL)) +#define bFM4_INTREQ_IRQ009MON_IRQBIT7 *((volatile unsigned int*)(0x4262451CUL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT0 *((volatile unsigned int*)(0x42624580UL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT1 *((volatile unsigned int*)(0x42624584UL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT2 *((volatile unsigned int*)(0x42624588UL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT3 *((volatile unsigned int*)(0x4262458CUL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT4 *((volatile unsigned int*)(0x42624590UL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT5 *((volatile unsigned int*)(0x42624594UL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT6 *((volatile unsigned int*)(0x42624598UL)) +#define bFM4_INTREQ_IRQ010MON_IRQBIT7 *((volatile unsigned int*)(0x4262459CUL)) +#define bFM4_INTREQ_IRQ011MON_EXTINT *((volatile unsigned int*)(0x42624600UL)) +#define bFM4_INTREQ_IRQ012MON_EXTINT *((volatile unsigned int*)(0x42624680UL)) +#define bFM4_INTREQ_IRQ013MON_EXTINT *((volatile unsigned int*)(0x42624700UL)) +#define bFM4_INTREQ_IRQ014MON_EXTINT *((volatile unsigned int*)(0x42624780UL)) +#define bFM4_INTREQ_IRQ015MON_EXTINT *((volatile unsigned int*)(0x42624800UL)) +#define bFM4_INTREQ_IRQ016MON_EXTINT *((volatile unsigned int*)(0x42624880UL)) +#define bFM4_INTREQ_IRQ017MON_EXTINT *((volatile unsigned int*)(0x42624900UL)) +#define bFM4_INTREQ_IRQ018MON_EXTINT *((volatile unsigned int*)(0x42624980UL)) +#define bFM4_INTREQ_IRQ019MON_QUDINT0 *((volatile unsigned int*)(0x42624A00UL)) +#define bFM4_INTREQ_IRQ019MON_QUDINT1 *((volatile unsigned int*)(0x42624A04UL)) +#define bFM4_INTREQ_IRQ019MON_QUDINT2 *((volatile unsigned int*)(0x42624A08UL)) +#define bFM4_INTREQ_IRQ019MON_QUDINT3 *((volatile unsigned int*)(0x42624A0CUL)) +#define bFM4_INTREQ_IRQ019MON_QUDINT4 *((volatile unsigned int*)(0x42624A10UL)) +#define bFM4_INTREQ_IRQ019MON_QUDINT5 *((volatile unsigned int*)(0x42624A14UL)) +#define bFM4_INTREQ_IRQ020MON_QUDINT0 *((volatile unsigned int*)(0x42624A80UL)) +#define bFM4_INTREQ_IRQ020MON_QUDINT1 *((volatile unsigned int*)(0x42624A84UL)) +#define bFM4_INTREQ_IRQ020MON_QUDINT2 *((volatile unsigned int*)(0x42624A88UL)) +#define bFM4_INTREQ_IRQ020MON_QUDINT3 *((volatile unsigned int*)(0x42624A8CUL)) +#define bFM4_INTREQ_IRQ020MON_QUDINT4 *((volatile unsigned int*)(0x42624A90UL)) +#define bFM4_INTREQ_IRQ020MON_QUDINT5 *((volatile unsigned int*)(0x42624A94UL)) +#define bFM4_INTREQ_IRQ021MON_WAVEINT0 *((volatile unsigned int*)(0x42624B00UL)) +#define bFM4_INTREQ_IRQ021MON_WAVEINT1 *((volatile unsigned int*)(0x42624B04UL)) +#define bFM4_INTREQ_IRQ021MON_WAVEINT2 *((volatile unsigned int*)(0x42624B08UL)) +#define bFM4_INTREQ_IRQ021MON_WAVEINT3 *((volatile unsigned int*)(0x42624B0CUL)) +#define bFM4_INTREQ_IRQ022MON_WAVEINT0 *((volatile unsigned int*)(0x42624B80UL)) +#define bFM4_INTREQ_IRQ022MON_WAVEINT1 *((volatile unsigned int*)(0x42624B84UL)) +#define bFM4_INTREQ_IRQ022MON_WAVEINT2 *((volatile unsigned int*)(0x42624B88UL)) +#define bFM4_INTREQ_IRQ022MON_WAVEINT3 *((volatile unsigned int*)(0x42624B8CUL)) +#define bFM4_INTREQ_IRQ023MON_WAVEINT0 *((volatile unsigned int*)(0x42624C00UL)) +#define bFM4_INTREQ_IRQ023MON_WAVEINT1 *((volatile unsigned int*)(0x42624C04UL)) +#define bFM4_INTREQ_IRQ023MON_WAVEINT2 *((volatile unsigned int*)(0x42624C08UL)) +#define bFM4_INTREQ_IRQ023MON_WAVEINT3 *((volatile unsigned int*)(0x42624C0CUL)) +#define bFM4_INTREQ_IRQ024MON_FRT_PEAK_INT0 *((volatile unsigned int*)(0x42624C80UL)) +#define bFM4_INTREQ_IRQ024MON_FRT_PEAK_INT1 *((volatile unsigned int*)(0x42624C84UL)) +#define bFM4_INTREQ_IRQ024MON_FRT_PEAK_INT2 *((volatile unsigned int*)(0x42624C88UL)) +#define bFM4_INTREQ_IRQ025MON_FRT_ZERO_INT0 *((volatile unsigned int*)(0x42624D00UL)) +#define bFM4_INTREQ_IRQ025MON_FRT_ZERO_INT1 *((volatile unsigned int*)(0x42624D04UL)) +#define bFM4_INTREQ_IRQ025MON_FRT_ZERO_INT2 *((volatile unsigned int*)(0x42624D08UL)) +#define bFM4_INTREQ_IRQ026MON_ICUINT0 *((volatile unsigned int*)(0x42624D80UL)) +#define bFM4_INTREQ_IRQ026MON_ICUINT1 *((volatile unsigned int*)(0x42624D84UL)) +#define bFM4_INTREQ_IRQ026MON_ICUINT2 *((volatile unsigned int*)(0x42624D88UL)) +#define bFM4_INTREQ_IRQ026MON_ICUINT3 *((volatile unsigned int*)(0x42624D8CUL)) +#define bFM4_INTREQ_IRQ027MON_OCUINT0 *((volatile unsigned int*)(0x42624E00UL)) +#define bFM4_INTREQ_IRQ027MON_OCUINT1 *((volatile unsigned int*)(0x42624E04UL)) +#define bFM4_INTREQ_IRQ027MON_OCUINT2 *((volatile unsigned int*)(0x42624E08UL)) +#define bFM4_INTREQ_IRQ027MON_OCUINT3 *((volatile unsigned int*)(0x42624E0CUL)) +#define bFM4_INTREQ_IRQ027MON_OCUINT4 *((volatile unsigned int*)(0x42624E10UL)) +#define bFM4_INTREQ_IRQ027MON_OCUINT5 *((volatile unsigned int*)(0x42624E14UL)) +#define bFM4_INTREQ_IRQ028MON_FRT_PEAK_INT0 *((volatile unsigned int*)(0x42624E80UL)) +#define bFM4_INTREQ_IRQ028MON_FRT_PEAK_INT1 *((volatile unsigned int*)(0x42624E84UL)) +#define bFM4_INTREQ_IRQ028MON_FRT_PEAK_INT2 *((volatile unsigned int*)(0x42624E88UL)) +#define bFM4_INTREQ_IRQ029MON_FRT_ZERO_INT0 *((volatile unsigned int*)(0x42624F00UL)) +#define bFM4_INTREQ_IRQ029MON_FRT_ZERO_INT1 *((volatile unsigned int*)(0x42624F04UL)) +#define bFM4_INTREQ_IRQ029MON_FRT_ZERO_INT2 *((volatile unsigned int*)(0x42624F08UL)) +#define bFM4_INTREQ_IRQ030MON_ICUINT0 *((volatile unsigned int*)(0x42624F80UL)) +#define bFM4_INTREQ_IRQ030MON_ICUINT1 *((volatile unsigned int*)(0x42624F84UL)) +#define bFM4_INTREQ_IRQ030MON_ICUINT2 *((volatile unsigned int*)(0x42624F88UL)) +#define bFM4_INTREQ_IRQ030MON_ICUINT3 *((volatile unsigned int*)(0x42624F8CUL)) +#define bFM4_INTREQ_IRQ031MON_OCUINT0 *((volatile unsigned int*)(0x42625000UL)) +#define bFM4_INTREQ_IRQ031MON_OCUINT1 *((volatile unsigned int*)(0x42625004UL)) +#define bFM4_INTREQ_IRQ031MON_OCUINT2 *((volatile unsigned int*)(0x42625008UL)) +#define bFM4_INTREQ_IRQ031MON_OCUINT3 *((volatile unsigned int*)(0x4262500CUL)) +#define bFM4_INTREQ_IRQ031MON_OCUINT4 *((volatile unsigned int*)(0x42625010UL)) +#define bFM4_INTREQ_IRQ031MON_OCUINT5 *((volatile unsigned int*)(0x42625014UL)) +#define bFM4_INTREQ_IRQ032MON_FRT_PEAK_INT0 *((volatile unsigned int*)(0x42625080UL)) +#define bFM4_INTREQ_IRQ032MON_FRT_PEAK_INT1 *((volatile unsigned int*)(0x42625084UL)) +#define bFM4_INTREQ_IRQ032MON_FRT_PEAK_INT2 *((volatile unsigned int*)(0x42625088UL)) +#define bFM4_INTREQ_IRQ033MON_FRT_ZERO_INT0 *((volatile unsigned int*)(0x42625100UL)) +#define bFM4_INTREQ_IRQ033MON_FRT_ZERO_INT1 *((volatile unsigned int*)(0x42625104UL)) +#define bFM4_INTREQ_IRQ033MON_FRT_ZERO_INT2 *((volatile unsigned int*)(0x42625108UL)) +#define bFM4_INTREQ_IRQ034MON_ICUINT0 *((volatile unsigned int*)(0x42625180UL)) +#define bFM4_INTREQ_IRQ034MON_ICUINT1 *((volatile unsigned int*)(0x42625184UL)) +#define bFM4_INTREQ_IRQ034MON_ICUINT2 *((volatile unsigned int*)(0x42625188UL)) +#define bFM4_INTREQ_IRQ034MON_ICUINT3 *((volatile unsigned int*)(0x4262518CUL)) +#define bFM4_INTREQ_IRQ035MON_OCUINT0 *((volatile unsigned int*)(0x42625200UL)) +#define bFM4_INTREQ_IRQ035MON_OCUINT1 *((volatile unsigned int*)(0x42625204UL)) +#define bFM4_INTREQ_IRQ035MON_OCUINT2 *((volatile unsigned int*)(0x42625208UL)) +#define bFM4_INTREQ_IRQ035MON_OCUINT3 *((volatile unsigned int*)(0x4262520CUL)) +#define bFM4_INTREQ_IRQ035MON_OCUINT4 *((volatile unsigned int*)(0x42625210UL)) +#define bFM4_INTREQ_IRQ035MON_OCUINT5 *((volatile unsigned int*)(0x42625214UL)) +#define bFM4_INTREQ_IRQ036MON_PPGINT0 *((volatile unsigned int*)(0x42625280UL)) +#define bFM4_INTREQ_IRQ036MON_PPGINT1 *((volatile unsigned int*)(0x42625284UL)) +#define bFM4_INTREQ_IRQ036MON_PPGINT2 *((volatile unsigned int*)(0x42625288UL)) +#define bFM4_INTREQ_IRQ037MON_PPGINT0 *((volatile unsigned int*)(0x42625300UL)) +#define bFM4_INTREQ_IRQ037MON_PPGINT1 *((volatile unsigned int*)(0x42625304UL)) +#define bFM4_INTREQ_IRQ037MON_PPGINT2 *((volatile unsigned int*)(0x42625308UL)) +#define bFM4_INTREQ_IRQ038MON_PPGINT0 *((volatile unsigned int*)(0x42625380UL)) +#define bFM4_INTREQ_IRQ038MON_PPGINT1 *((volatile unsigned int*)(0x42625384UL)) +#define bFM4_INTREQ_IRQ038MON_PPGINT2 *((volatile unsigned int*)(0x42625388UL)) +#define bFM4_INTREQ_IRQ039MON_BTINT0 *((volatile unsigned int*)(0x42625400UL)) +#define bFM4_INTREQ_IRQ039MON_BTINT1 *((volatile unsigned int*)(0x42625404UL)) +#define bFM4_INTREQ_IRQ040MON_BTINT0 *((volatile unsigned int*)(0x42625480UL)) +#define bFM4_INTREQ_IRQ040MON_BTINT1 *((volatile unsigned int*)(0x42625484UL)) +#define bFM4_INTREQ_IRQ041MON_BTINT0 *((volatile unsigned int*)(0x42625500UL)) +#define bFM4_INTREQ_IRQ041MON_BTINT1 *((volatile unsigned int*)(0x42625504UL)) +#define bFM4_INTREQ_IRQ042MON_BTINT0 *((volatile unsigned int*)(0x42625580UL)) +#define bFM4_INTREQ_IRQ042MON_BTINT1 *((volatile unsigned int*)(0x42625584UL)) +#define bFM4_INTREQ_IRQ043MON_BTINT0 *((volatile unsigned int*)(0x42625600UL)) +#define bFM4_INTREQ_IRQ043MON_BTINT1 *((volatile unsigned int*)(0x42625604UL)) +#define bFM4_INTREQ_IRQ044MON_BTINT0 *((volatile unsigned int*)(0x42625680UL)) +#define bFM4_INTREQ_IRQ044MON_BTINT1 *((volatile unsigned int*)(0x42625684UL)) +#define bFM4_INTREQ_IRQ045MON_BTINT0 *((volatile unsigned int*)(0x42625700UL)) +#define bFM4_INTREQ_IRQ045MON_BTINT1 *((volatile unsigned int*)(0x42625704UL)) +#define bFM4_INTREQ_IRQ046MON_BTINT0 *((volatile unsigned int*)(0x42625780UL)) +#define bFM4_INTREQ_IRQ046MON_BTINT1 *((volatile unsigned int*)(0x42625784UL)) +#define bFM4_INTREQ_IRQ047MON_TIMINT1 *((volatile unsigned int*)(0x42625800UL)) +#define bFM4_INTREQ_IRQ047MON_TIMINT2 *((volatile unsigned int*)(0x42625804UL)) +#define bFM4_INTREQ_IRQ048MON_WCINT *((volatile unsigned int*)(0x42625880UL)) +#define bFM4_INTREQ_IRQ049MON_BMEMCS *((volatile unsigned int*)(0x42625900UL)) +#define bFM4_INTREQ_IRQ050MON_RTCINT *((volatile unsigned int*)(0x42625980UL)) +#define bFM4_INTREQ_IRQ051MON_EXTINT *((volatile unsigned int*)(0x42625A00UL)) +#define bFM4_INTREQ_IRQ052MON_EXTINT *((volatile unsigned int*)(0x42625A80UL)) +#define bFM4_INTREQ_IRQ053MON_EXTINT *((volatile unsigned int*)(0x42625B00UL)) +#define bFM4_INTREQ_IRQ054MON_EXTINT *((volatile unsigned int*)(0x42625B80UL)) +#define bFM4_INTREQ_IRQ055MON_EXTINT *((volatile unsigned int*)(0x42625C00UL)) +#define bFM4_INTREQ_IRQ056MON_EXTINT *((volatile unsigned int*)(0x42625C80UL)) +#define bFM4_INTREQ_IRQ057MON_EXTINT *((volatile unsigned int*)(0x42625D00UL)) +#define bFM4_INTREQ_IRQ058MON_EXTINT *((volatile unsigned int*)(0x42625D80UL)) +#define bFM4_INTREQ_IRQ059MON_MOSCINT *((volatile unsigned int*)(0x42625E00UL)) +#define bFM4_INTREQ_IRQ059MON_SOSCINT *((volatile unsigned int*)(0x42625E04UL)) +#define bFM4_INTREQ_IRQ059MON_MPLLINT *((volatile unsigned int*)(0x42625E08UL)) +#define bFM4_INTREQ_IRQ059MON_UPLLINT *((volatile unsigned int*)(0x42625E0CUL)) +#define bFM4_INTREQ_IRQ060MON_MFSRINT *((volatile unsigned int*)(0x42625E80UL)) +#define bFM4_INTREQ_IRQ061MON_MFSINT0 *((volatile unsigned int*)(0x42625F00UL)) +#define bFM4_INTREQ_IRQ061MON_MFSINT1 *((volatile unsigned int*)(0x42625F04UL)) +#define bFM4_INTREQ_IRQ062MON_MFSRINT *((volatile unsigned int*)(0x42625F80UL)) +#define bFM4_INTREQ_IRQ063MON_MFSINT0 *((volatile unsigned int*)(0x42626000UL)) +#define bFM4_INTREQ_IRQ063MON_MFSINT1 *((volatile unsigned int*)(0x42626004UL)) +#define bFM4_INTREQ_IRQ064MON_MFSRINT *((volatile unsigned int*)(0x42626080UL)) +#define bFM4_INTREQ_IRQ065MON_MFSINT0 *((volatile unsigned int*)(0x42626100UL)) +#define bFM4_INTREQ_IRQ065MON_MFSINT1 *((volatile unsigned int*)(0x42626104UL)) +#define bFM4_INTREQ_IRQ066MON_MFSRINT *((volatile unsigned int*)(0x42626180UL)) +#define bFM4_INTREQ_IRQ067MON_MFSINT0 *((volatile unsigned int*)(0x42626200UL)) +#define bFM4_INTREQ_IRQ067MON_MFSINT1 *((volatile unsigned int*)(0x42626204UL)) +#define bFM4_INTREQ_IRQ068MON_MFSRINT *((volatile unsigned int*)(0x42626280UL)) +#define bFM4_INTREQ_IRQ069MON_MFSINT0 *((volatile unsigned int*)(0x42626300UL)) +#define bFM4_INTREQ_IRQ069MON_MFSINT1 *((volatile unsigned int*)(0x42626304UL)) +#define bFM4_INTREQ_IRQ070MON_MFSRINT *((volatile unsigned int*)(0x42626380UL)) +#define bFM4_INTREQ_IRQ071MON_MFSINT0 *((volatile unsigned int*)(0x42626400UL)) +#define bFM4_INTREQ_IRQ071MON_MFSINT1 *((volatile unsigned int*)(0x42626404UL)) +#define bFM4_INTREQ_IRQ072MON_MFSRINT *((volatile unsigned int*)(0x42626480UL)) +#define bFM4_INTREQ_IRQ073MON_MFSINT0 *((volatile unsigned int*)(0x42626500UL)) +#define bFM4_INTREQ_IRQ073MON_MFSINT1 *((volatile unsigned int*)(0x42626504UL)) +#define bFM4_INTREQ_IRQ074MON_MFSRINT *((volatile unsigned int*)(0x42626580UL)) +#define bFM4_INTREQ_IRQ075MON_MFSINT0 *((volatile unsigned int*)(0x42626600UL)) +#define bFM4_INTREQ_IRQ075MON_MFSINT1 *((volatile unsigned int*)(0x42626604UL)) +#define bFM4_INTREQ_IRQ076MON_ADCINT0 *((volatile unsigned int*)(0x42626680UL)) +#define bFM4_INTREQ_IRQ076MON_ADCINT1 *((volatile unsigned int*)(0x42626684UL)) +#define bFM4_INTREQ_IRQ076MON_ADCINT2 *((volatile unsigned int*)(0x42626688UL)) +#define bFM4_INTREQ_IRQ076MON_ADCINT3 *((volatile unsigned int*)(0x4262668CUL)) +#define bFM4_INTREQ_IRQ076MON_ADCINT4 *((volatile unsigned int*)(0x42626690UL)) +#define bFM4_INTREQ_IRQ077MON_ADCINT0 *((volatile unsigned int*)(0x42626700UL)) +#define bFM4_INTREQ_IRQ077MON_ADCINT1 *((volatile unsigned int*)(0x42626704UL)) +#define bFM4_INTREQ_IRQ077MON_ADCINT2 *((volatile unsigned int*)(0x42626708UL)) +#define bFM4_INTREQ_IRQ077MON_ADCINT3 *((volatile unsigned int*)(0x4262670CUL)) +#define bFM4_INTREQ_IRQ077MON_ADCINT4 *((volatile unsigned int*)(0x42626710UL)) +#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT0 *((volatile unsigned int*)(0x42626780UL)) +#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT1 *((volatile unsigned int*)(0x42626784UL)) +#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT2 *((volatile unsigned int*)(0x42626788UL)) +#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT3 *((volatile unsigned int*)(0x4262678CUL)) +#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT4 *((volatile unsigned int*)(0x42626790UL)) +#define bFM4_INTREQ_IRQ079MON_USB_INT0 *((volatile unsigned int*)(0x42626800UL)) +#define bFM4_INTREQ_IRQ079MON_USB_INT1 *((volatile unsigned int*)(0x42626804UL)) +#define bFM4_INTREQ_IRQ079MON_USB_INT2 *((volatile unsigned int*)(0x42626808UL)) +#define bFM4_INTREQ_IRQ079MON_USB_INT3 *((volatile unsigned int*)(0x4262680CUL)) +#define bFM4_INTREQ_IRQ079MON_USB_INT4 *((volatile unsigned int*)(0x42626810UL)) +#define bFM4_INTREQ_IRQ079MON_USB_INT5 *((volatile unsigned int*)(0x42626814UL)) +#define bFM4_INTREQ_IRQ080MON_CANINT *((volatile unsigned int*)(0x42626880UL)) +#define bFM4_INTREQ_IRQ081MON_CANINT *((volatile unsigned int*)(0x42626900UL)) +#define bFM4_INTREQ_IRQ082MON_MACSBD *((volatile unsigned int*)(0x42626980UL)) +#define bFM4_INTREQ_IRQ082MON_MACPMT *((volatile unsigned int*)(0x42626984UL)) +#define bFM4_INTREQ_IRQ082MON_MACLPI *((volatile unsigned int*)(0x42626988UL)) +#define bFM4_INTREQ_IRQ083MON_DMACINT *((volatile unsigned int*)(0x42626A00UL)) +#define bFM4_INTREQ_IRQ084MON_DMACINT *((volatile unsigned int*)(0x42626A80UL)) +#define bFM4_INTREQ_IRQ085MON_DMACINT *((volatile unsigned int*)(0x42626B00UL)) +#define bFM4_INTREQ_IRQ086MON_DMACINT *((volatile unsigned int*)(0x42626B80UL)) +#define bFM4_INTREQ_IRQ087MON_DMACINT *((volatile unsigned int*)(0x42626C00UL)) +#define bFM4_INTREQ_IRQ088MON_DMACINT *((volatile unsigned int*)(0x42626C80UL)) +#define bFM4_INTREQ_IRQ089MON_DMACINT *((volatile unsigned int*)(0x42626D00UL)) +#define bFM4_INTREQ_IRQ090MON_DMACINT *((volatile unsigned int*)(0x42626D80UL)) +#define bFM4_INTREQ_IRQ091MON_DSTCINT0 *((volatile unsigned int*)(0x42626E00UL)) +#define bFM4_INTREQ_IRQ091MON_DSTCINT1 *((volatile unsigned int*)(0x42626E04UL)) +#define bFM4_INTREQ_IRQ092MON_EXTINT0 *((volatile unsigned int*)(0x42626E80UL)) +#define bFM4_INTREQ_IRQ092MON_EXTINT1 *((volatile unsigned int*)(0x42626E84UL)) +#define bFM4_INTREQ_IRQ092MON_EXTINT2 *((volatile unsigned int*)(0x42626E88UL)) +#define bFM4_INTREQ_IRQ092MON_EXTINT3 *((volatile unsigned int*)(0x42626E8CUL)) +#define bFM4_INTREQ_IRQ093MON_EXTINT0 *((volatile unsigned int*)(0x42626F00UL)) +#define bFM4_INTREQ_IRQ093MON_EXTINT1 *((volatile unsigned int*)(0x42626F04UL)) +#define bFM4_INTREQ_IRQ093MON_EXTINT2 *((volatile unsigned int*)(0x42626F08UL)) +#define bFM4_INTREQ_IRQ093MON_EXTINT3 *((volatile unsigned int*)(0x42626F0CUL)) +#define bFM4_INTREQ_IRQ094MON_EXTINT0 *((volatile unsigned int*)(0x42626F80UL)) +#define bFM4_INTREQ_IRQ094MON_EXTINT1 *((volatile unsigned int*)(0x42626F84UL)) +#define bFM4_INTREQ_IRQ094MON_EXTINT2 *((volatile unsigned int*)(0x42626F88UL)) +#define bFM4_INTREQ_IRQ094MON_EXTINT3 *((volatile unsigned int*)(0x42626F8CUL)) +#define bFM4_INTREQ_IRQ095MON_EXTINT0 *((volatile unsigned int*)(0x42627000UL)) +#define bFM4_INTREQ_IRQ095MON_EXTINT1 *((volatile unsigned int*)(0x42627004UL)) +#define bFM4_INTREQ_IRQ095MON_EXTINT2 *((volatile unsigned int*)(0x42627008UL)) +#define bFM4_INTREQ_IRQ095MON_EXTINT3 *((volatile unsigned int*)(0x4262700CUL)) +#define bFM4_INTREQ_IRQ096MON_QUDINT0 *((volatile unsigned int*)(0x42627080UL)) +#define bFM4_INTREQ_IRQ096MON_QUDINT1 *((volatile unsigned int*)(0x42627084UL)) +#define bFM4_INTREQ_IRQ096MON_QUDINT2 *((volatile unsigned int*)(0x42627088UL)) +#define bFM4_INTREQ_IRQ096MON_QUDINT3 *((volatile unsigned int*)(0x4262708CUL)) +#define bFM4_INTREQ_IRQ096MON_QUDINT4 *((volatile unsigned int*)(0x42627090UL)) +#define bFM4_INTREQ_IRQ096MON_QUDINT5 *((volatile unsigned int*)(0x42627094UL)) +#define bFM4_INTREQ_IRQ097MON_QUDINT0 *((volatile unsigned int*)(0x42627100UL)) +#define bFM4_INTREQ_IRQ097MON_QUDINT1 *((volatile unsigned int*)(0x42627104UL)) +#define bFM4_INTREQ_IRQ097MON_QUDINT2 *((volatile unsigned int*)(0x42627108UL)) +#define bFM4_INTREQ_IRQ097MON_QUDINT3 *((volatile unsigned int*)(0x4262710CUL)) +#define bFM4_INTREQ_IRQ097MON_QUDINT4 *((volatile unsigned int*)(0x42627110UL)) +#define bFM4_INTREQ_IRQ097MON_QUDINT5 *((volatile unsigned int*)(0x42627114UL)) +#define bFM4_INTREQ_IRQ098MON_BTINT0 *((volatile unsigned int*)(0x42627180UL)) +#define bFM4_INTREQ_IRQ098MON_BTINT1 *((volatile unsigned int*)(0x42627184UL)) +#define bFM4_INTREQ_IRQ099MON_BTINT0 *((volatile unsigned int*)(0x42627200UL)) +#define bFM4_INTREQ_IRQ099MON_BTINT1 *((volatile unsigned int*)(0x42627204UL)) +#define bFM4_INTREQ_IRQ100MON_BTINT0 *((volatile unsigned int*)(0x42627280UL)) +#define bFM4_INTREQ_IRQ100MON_BTINT1 *((volatile unsigned int*)(0x42627284UL)) +#define bFM4_INTREQ_IRQ101MON_BTINT0 *((volatile unsigned int*)(0x42627300UL)) +#define bFM4_INTREQ_IRQ101MON_BTINT1 *((volatile unsigned int*)(0x42627304UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT0 *((volatile unsigned int*)(0x42627380UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT1 *((volatile unsigned int*)(0x42627384UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT2 *((volatile unsigned int*)(0x42627388UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT3 *((volatile unsigned int*)(0x4262738CUL)) +#define bFM4_INTREQ_IRQ102MON_BTINT4 *((volatile unsigned int*)(0x42627390UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT5 *((volatile unsigned int*)(0x42627394UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT6 *((volatile unsigned int*)(0x42627398UL)) +#define bFM4_INTREQ_IRQ102MON_BTINT7 *((volatile unsigned int*)(0x4262739CUL)) +#define bFM4_INTREQ_IRQ103MON_MFSRINT *((volatile unsigned int*)(0x42627400UL)) +#define bFM4_INTREQ_IRQ104MON_MFSINT0 *((volatile unsigned int*)(0x42627480UL)) +#define bFM4_INTREQ_IRQ104MON_MFSINT1 *((volatile unsigned int*)(0x42627484UL)) +#define bFM4_INTREQ_IRQ105MON_MFSRINT *((volatile unsigned int*)(0x42627500UL)) +#define bFM4_INTREQ_IRQ106MON_MFSINT0 *((volatile unsigned int*)(0x42627580UL)) +#define bFM4_INTREQ_IRQ106MON_MFSINT1 *((volatile unsigned int*)(0x42627584UL)) +#define bFM4_INTREQ_IRQ107MON_MFSRINT *((volatile unsigned int*)(0x42627600UL)) +#define bFM4_INTREQ_IRQ108MON_MFSINT0 *((volatile unsigned int*)(0x42627680UL)) +#define bFM4_INTREQ_IRQ108MON_MFSINT1 *((volatile unsigned int*)(0x42627684UL)) +#define bFM4_INTREQ_IRQ109MON_MFSRINT *((volatile unsigned int*)(0x42627700UL)) +#define bFM4_INTREQ_IRQ110MON_MFSINT0 *((volatile unsigned int*)(0x42627780UL)) +#define bFM4_INTREQ_IRQ110MON_MFSINT1 *((volatile unsigned int*)(0x42627784UL)) +#define bFM4_INTREQ_IRQ111MON_ADCINT0 *((volatile unsigned int*)(0x42627800UL)) +#define bFM4_INTREQ_IRQ111MON_ADCINT1 *((volatile unsigned int*)(0x42627804UL)) +#define bFM4_INTREQ_IRQ111MON_ADCINT2 *((volatile unsigned int*)(0x42627808UL)) +#define bFM4_INTREQ_IRQ111MON_ADCINT3 *((volatile unsigned int*)(0x4262780CUL)) +#define bFM4_INTREQ_IRQ111MON_ADCINT4 *((volatile unsigned int*)(0x42627810UL)) +#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT0 *((volatile unsigned int*)(0x42627900UL)) +#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT1 *((volatile unsigned int*)(0x42627904UL)) +#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT2 *((volatile unsigned int*)(0x42627908UL)) +#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT3 *((volatile unsigned int*)(0x4262790CUL)) +#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT4 *((volatile unsigned int*)(0x42627910UL)) +#define bFM4_INTREQ_IRQ114MON_USB_INT0 *((volatile unsigned int*)(0x42627980UL)) +#define bFM4_INTREQ_IRQ114MON_USB_INT1 *((volatile unsigned int*)(0x42627984UL)) +#define bFM4_INTREQ_IRQ114MON_USB_INT2 *((volatile unsigned int*)(0x42627988UL)) +#define bFM4_INTREQ_IRQ114MON_USB_INT3 *((volatile unsigned int*)(0x4262798CUL)) +#define bFM4_INTREQ_IRQ114MON_USB_INT4 *((volatile unsigned int*)(0x42627990UL)) +#define bFM4_INTREQ_IRQ114MON_USB_INT5 *((volatile unsigned int*)(0x42627994UL)) +#define bFM4_INTREQ_IRQ118MON_SDINT0 *((volatile unsigned int*)(0x42627B80UL)) +#define bFM4_INTREQ_IRQ118MON_SDINT1 *((volatile unsigned int*)(0x42627B84UL)) +#define bFM4_INTREQ_IRQ119MON_FLINT *((volatile unsigned int*)(0x42627C00UL)) +#define bFM4_INTREQ_IRQ120MON_MFSRINT *((volatile unsigned int*)(0x42627C80UL)) +#define bFM4_INTREQ_IRQ121MON_MFSINT0 *((volatile unsigned int*)(0x42627D00UL)) +#define bFM4_INTREQ_IRQ121MON_MFSINT1 *((volatile unsigned int*)(0x42627D04UL)) +#define bFM4_INTREQ_IRQ122MON_MFSRINT *((volatile unsigned int*)(0x42627D80UL)) +#define bFM4_INTREQ_IRQ123MON_MFSINT0 *((volatile unsigned int*)(0x42627E00UL)) +#define bFM4_INTREQ_IRQ123MON_MFSINT1 *((volatile unsigned int*)(0x42627E04UL)) +#define bFM4_INTREQ_IRQ124MON_MFSRINT *((volatile unsigned int*)(0x42627E80UL)) +#define bFM4_INTREQ_IRQ125MON_MFSINT0 *((volatile unsigned int*)(0x42627F00UL)) +#define bFM4_INTREQ_IRQ125MON_MFSINT1 *((volatile unsigned int*)(0x42627F04UL)) +#define bFM4_INTREQ_IRQ126MON_MFSRINT *((volatile unsigned int*)(0x42627F80UL)) +#define bFM4_INTREQ_IRQ127MON_MFSINT0 *((volatile unsigned int*)(0x42628000UL)) +#define bFM4_INTREQ_IRQ127MON_MFSINT1 *((volatile unsigned int*)(0x42628004UL)) + +/* 12-bit DAC unit 0 registers */ +#define bFM4_DAC0_DACR_DAE *((volatile unsigned int*)(0x42660000UL)) +#define bFM4_DAC0_DACR_DRDY *((volatile unsigned int*)(0x42660004UL)) +#define bFM4_DAC0_DACR_DAC10 *((volatile unsigned int*)(0x42660010UL)) +#define bFM4_DAC0_DACR_DDAS *((volatile unsigned int*)(0x42660014UL)) +#define bFM4_DAC0_DADR_DA0 *((volatile unsigned int*)(0x42660080UL)) +#define bFM4_DAC0_DADR_DA1 *((volatile unsigned int*)(0x42660084UL)) +#define bFM4_DAC0_DADR_DA2 *((volatile unsigned int*)(0x42660088UL)) +#define bFM4_DAC0_DADR_DA3 *((volatile unsigned int*)(0x4266008CUL)) +#define bFM4_DAC0_DADR_DA4 *((volatile unsigned int*)(0x42660090UL)) +#define bFM4_DAC0_DADR_DA5 *((volatile unsigned int*)(0x42660094UL)) +#define bFM4_DAC0_DADR_DA6 *((volatile unsigned int*)(0x42660098UL)) +#define bFM4_DAC0_DADR_DA7 *((volatile unsigned int*)(0x4266009CUL)) +#define bFM4_DAC0_DADR_DA8 *((volatile unsigned int*)(0x426600A0UL)) +#define bFM4_DAC0_DADR_DA9 *((volatile unsigned int*)(0x426600A4UL)) +#define bFM4_DAC0_DADR_DA10 *((volatile unsigned int*)(0x426600A8UL)) +#define bFM4_DAC0_DADR_DA11 *((volatile unsigned int*)(0x426600ACUL)) + +/* 12-bit DAC unit 1 registers */ +#define bFM4_DAC1_DACR_DAE *((volatile unsigned int*)(0x42660100UL)) +#define bFM4_DAC1_DACR_DRDY *((volatile unsigned int*)(0x42660104UL)) +#define bFM4_DAC1_DACR_DAC10 *((volatile unsigned int*)(0x42660110UL)) +#define bFM4_DAC1_DACR_DDAS *((volatile unsigned int*)(0x42660114UL)) +#define bFM4_DAC1_DADR_DA0 *((volatile unsigned int*)(0x42660180UL)) +#define bFM4_DAC1_DADR_DA1 *((volatile unsigned int*)(0x42660184UL)) +#define bFM4_DAC1_DADR_DA2 *((volatile unsigned int*)(0x42660188UL)) +#define bFM4_DAC1_DADR_DA3 *((volatile unsigned int*)(0x4266018CUL)) +#define bFM4_DAC1_DADR_DA4 *((volatile unsigned int*)(0x42660190UL)) +#define bFM4_DAC1_DADR_DA5 *((volatile unsigned int*)(0x42660194UL)) +#define bFM4_DAC1_DADR_DA6 *((volatile unsigned int*)(0x42660198UL)) +#define bFM4_DAC1_DADR_DA7 *((volatile unsigned int*)(0x4266019CUL)) +#define bFM4_DAC1_DADR_DA8 *((volatile unsigned int*)(0x426601A0UL)) +#define bFM4_DAC1_DADR_DA9 *((volatile unsigned int*)(0x426601A4UL)) +#define bFM4_DAC1_DADR_DA10 *((volatile unsigned int*)(0x426601A8UL)) +#define bFM4_DAC1_DADR_DA11 *((volatile unsigned int*)(0x426601ACUL)) + +/* General purpose I/O registers */ +#define bFM4_GPIO_PFR0_P00 *((volatile unsigned int*)(0x42DE0000UL)) +#define bFM4_GPIO_PFR0_P01 *((volatile unsigned int*)(0x42DE0004UL)) +#define bFM4_GPIO_PFR0_P02 *((volatile unsigned int*)(0x42DE0008UL)) +#define bFM4_GPIO_PFR0_P03 *((volatile unsigned int*)(0x42DE000CUL)) +#define bFM4_GPIO_PFR0_P04 *((volatile unsigned int*)(0x42DE0010UL)) +#define bFM4_GPIO_PFR0_P05 *((volatile unsigned int*)(0x42DE0014UL)) +#define bFM4_GPIO_PFR0_P06 *((volatile unsigned int*)(0x42DE0018UL)) +#define bFM4_GPIO_PFR0_P07 *((volatile unsigned int*)(0x42DE001CUL)) +#define bFM4_GPIO_PFR0_P08 *((volatile unsigned int*)(0x42DE0020UL)) +#define bFM4_GPIO_PFR0_P09 *((volatile unsigned int*)(0x42DE0024UL)) +#define bFM4_GPIO_PFR0_P0A *((volatile unsigned int*)(0x42DE0028UL)) +#define bFM4_GPIO_PFR0_P0B *((volatile unsigned int*)(0x42DE002CUL)) +#define bFM4_GPIO_PFR0_P0C *((volatile unsigned int*)(0x42DE0030UL)) +#define bFM4_GPIO_PFR0_P0D *((volatile unsigned int*)(0x42DE0034UL)) +#define bFM4_GPIO_PFR0_P0E *((volatile unsigned int*)(0x42DE0038UL)) +#define bFM4_GPIO_PFR1_P10 *((volatile unsigned int*)(0x42DE0080UL)) +#define bFM4_GPIO_PFR1_P11 *((volatile unsigned int*)(0x42DE0084UL)) +#define bFM4_GPIO_PFR1_P12 *((volatile unsigned int*)(0x42DE0088UL)) +#define bFM4_GPIO_PFR1_P13 *((volatile unsigned int*)(0x42DE008CUL)) +#define bFM4_GPIO_PFR1_P14 *((volatile unsigned int*)(0x42DE0090UL)) +#define bFM4_GPIO_PFR1_P15 *((volatile unsigned int*)(0x42DE0094UL)) +#define bFM4_GPIO_PFR1_P16 *((volatile unsigned int*)(0x42DE0098UL)) +#define bFM4_GPIO_PFR1_P17 *((volatile unsigned int*)(0x42DE009CUL)) +#define bFM4_GPIO_PFR1_P18 *((volatile unsigned int*)(0x42DE00A0UL)) +#define bFM4_GPIO_PFR1_P19 *((volatile unsigned int*)(0x42DE00A4UL)) +#define bFM4_GPIO_PFR1_P1A *((volatile unsigned int*)(0x42DE00A8UL)) +#define bFM4_GPIO_PFR1_P1B *((volatile unsigned int*)(0x42DE00ACUL)) +#define bFM4_GPIO_PFR1_P1C *((volatile unsigned int*)(0x42DE00B0UL)) +#define bFM4_GPIO_PFR1_P1D *((volatile unsigned int*)(0x42DE00B4UL)) +#define bFM4_GPIO_PFR1_P1E *((volatile unsigned int*)(0x42DE00B8UL)) +#define bFM4_GPIO_PFR1_P1F *((volatile unsigned int*)(0x42DE00BCUL)) +#define bFM4_GPIO_PFR2_P20 *((volatile unsigned int*)(0x42DE0100UL)) +#define bFM4_GPIO_PFR2_P21 *((volatile unsigned int*)(0x42DE0104UL)) +#define bFM4_GPIO_PFR2_P22 *((volatile unsigned int*)(0x42DE0108UL)) +#define bFM4_GPIO_PFR2_P23 *((volatile unsigned int*)(0x42DE010CUL)) +#define bFM4_GPIO_PFR2_P24 *((volatile unsigned int*)(0x42DE0110UL)) +#define bFM4_GPIO_PFR2_P25 *((volatile unsigned int*)(0x42DE0114UL)) +#define bFM4_GPIO_PFR2_P26 *((volatile unsigned int*)(0x42DE0118UL)) +#define bFM4_GPIO_PFR2_P27 *((volatile unsigned int*)(0x42DE011CUL)) +#define bFM4_GPIO_PFR3_P30 *((volatile unsigned int*)(0x42DE0180UL)) +#define bFM4_GPIO_PFR3_P31 *((volatile unsigned int*)(0x42DE0184UL)) +#define bFM4_GPIO_PFR3_P32 *((volatile unsigned int*)(0x42DE0188UL)) +#define bFM4_GPIO_PFR3_P33 *((volatile unsigned int*)(0x42DE018CUL)) +#define bFM4_GPIO_PFR3_P34 *((volatile unsigned int*)(0x42DE0190UL)) +#define bFM4_GPIO_PFR3_P35 *((volatile unsigned int*)(0x42DE0194UL)) +#define bFM4_GPIO_PFR3_P36 *((volatile unsigned int*)(0x42DE0198UL)) +#define bFM4_GPIO_PFR3_P37 *((volatile unsigned int*)(0x42DE019CUL)) +#define bFM4_GPIO_PFR3_P38 *((volatile unsigned int*)(0x42DE01A0UL)) +#define bFM4_GPIO_PFR3_P39 *((volatile unsigned int*)(0x42DE01A4UL)) +#define bFM4_GPIO_PFR3_P3A *((volatile unsigned int*)(0x42DE01A8UL)) +#define bFM4_GPIO_PFR3_P3B *((volatile unsigned int*)(0x42DE01ACUL)) +#define bFM4_GPIO_PFR3_P3C *((volatile unsigned int*)(0x42DE01B0UL)) +#define bFM4_GPIO_PFR3_P3D *((volatile unsigned int*)(0x42DE01B4UL)) +#define bFM4_GPIO_PFR3_P3E *((volatile unsigned int*)(0x42DE01B8UL)) +#define bFM4_GPIO_PFR3_P3F *((volatile unsigned int*)(0x42DE01BCUL)) +#define bFM4_GPIO_PFR4_P40 *((volatile unsigned int*)(0x42DE0200UL)) +#define bFM4_GPIO_PFR4_P41 *((volatile unsigned int*)(0x42DE0204UL)) +#define bFM4_GPIO_PFR4_P42 *((volatile unsigned int*)(0x42DE0208UL)) +#define bFM4_GPIO_PFR4_P43 *((volatile unsigned int*)(0x42DE020CUL)) +#define bFM4_GPIO_PFR4_P44 *((volatile unsigned int*)(0x42DE0210UL)) +#define bFM4_GPIO_PFR4_P45 *((volatile unsigned int*)(0x42DE0214UL)) +#define bFM4_GPIO_PFR4_P46 *((volatile unsigned int*)(0x42DE0218UL)) +#define bFM4_GPIO_PFR4_P47 *((volatile unsigned int*)(0x42DE021CUL)) +#define bFM4_GPIO_PFR4_P48 *((volatile unsigned int*)(0x42DE0220UL)) +#define bFM4_GPIO_PFR4_P49 *((volatile unsigned int*)(0x42DE0224UL)) +#define bFM4_GPIO_PFR4_P4A *((volatile unsigned int*)(0x42DE0228UL)) +#define bFM4_GPIO_PFR4_P4B *((volatile unsigned int*)(0x42DE022CUL)) +#define bFM4_GPIO_PFR4_P4C *((volatile unsigned int*)(0x42DE0230UL)) +#define bFM4_GPIO_PFR4_P4D *((volatile unsigned int*)(0x42DE0234UL)) +#define bFM4_GPIO_PFR4_P4E *((volatile unsigned int*)(0x42DE0238UL)) +#define bFM4_GPIO_PFR5_P50 *((volatile unsigned int*)(0x42DE0280UL)) +#define bFM4_GPIO_PFR5_P51 *((volatile unsigned int*)(0x42DE0284UL)) +#define bFM4_GPIO_PFR5_P52 *((volatile unsigned int*)(0x42DE0288UL)) +#define bFM4_GPIO_PFR5_P53 *((volatile unsigned int*)(0x42DE028CUL)) +#define bFM4_GPIO_PFR5_P54 *((volatile unsigned int*)(0x42DE0290UL)) +#define bFM4_GPIO_PFR5_P55 *((volatile unsigned int*)(0x42DE0294UL)) +#define bFM4_GPIO_PFR5_P56 *((volatile unsigned int*)(0x42DE0298UL)) +#define bFM4_GPIO_PFR5_P57 *((volatile unsigned int*)(0x42DE029CUL)) +#define bFM4_GPIO_PFR5_P58 *((volatile unsigned int*)(0x42DE02A0UL)) +#define bFM4_GPIO_PFR5_P59 *((volatile unsigned int*)(0x42DE02A4UL)) +#define bFM4_GPIO_PFR5_P5A *((volatile unsigned int*)(0x42DE02A8UL)) +#define bFM4_GPIO_PFR5_P5B *((volatile unsigned int*)(0x42DE02ACUL)) +#define bFM4_GPIO_PFR6_P60 *((volatile unsigned int*)(0x42DE0300UL)) +#define bFM4_GPIO_PFR6_P61 *((volatile unsigned int*)(0x42DE0304UL)) +#define bFM4_GPIO_PFR6_P62 *((volatile unsigned int*)(0x42DE0308UL)) +#define bFM4_GPIO_PFR6_P63 *((volatile unsigned int*)(0x42DE030CUL)) +#define bFM4_GPIO_PFR6_P64 *((volatile unsigned int*)(0x42DE0310UL)) +#define bFM4_GPIO_PFR6_P65 *((volatile unsigned int*)(0x42DE0314UL)) +#define bFM4_GPIO_PFR6_P66 *((volatile unsigned int*)(0x42DE0318UL)) +#define bFM4_GPIO_PFR6_P67 *((volatile unsigned int*)(0x42DE031CUL)) +#define bFM4_GPIO_PFR6_P68 *((volatile unsigned int*)(0x42DE0320UL)) +#define bFM4_GPIO_PFR7_P70 *((volatile unsigned int*)(0x42DE0380UL)) +#define bFM4_GPIO_PFR7_P71 *((volatile unsigned int*)(0x42DE0384UL)) +#define bFM4_GPIO_PFR7_P72 *((volatile unsigned int*)(0x42DE0388UL)) +#define bFM4_GPIO_PFR7_P73 *((volatile unsigned int*)(0x42DE038CUL)) +#define bFM4_GPIO_PFR7_P74 *((volatile unsigned int*)(0x42DE0390UL)) +#define bFM4_GPIO_PFR8_P80 *((volatile unsigned int*)(0x42DE0400UL)) +#define bFM4_GPIO_PFR8_P81 *((volatile unsigned int*)(0x42DE0404UL)) +#define bFM4_GPIO_PFRE_PE0 *((volatile unsigned int*)(0x42DE0700UL)) +#define bFM4_GPIO_PFRE_PE2 *((volatile unsigned int*)(0x42DE0708UL)) +#define bFM4_GPIO_PFRE_PE3 *((volatile unsigned int*)(0x42DE070CUL)) +#define bFM4_GPIO_PCR0_P00 *((volatile unsigned int*)(0x42DE2000UL)) +#define bFM4_GPIO_PCR0_P01 *((volatile unsigned int*)(0x42DE2004UL)) +#define bFM4_GPIO_PCR0_P02 *((volatile unsigned int*)(0x42DE2008UL)) +#define bFM4_GPIO_PCR0_P03 *((volatile unsigned int*)(0x42DE200CUL)) +#define bFM4_GPIO_PCR0_P04 *((volatile unsigned int*)(0x42DE2010UL)) +#define bFM4_GPIO_PCR0_P05 *((volatile unsigned int*)(0x42DE2014UL)) +#define bFM4_GPIO_PCR0_P06 *((volatile unsigned int*)(0x42DE2018UL)) +#define bFM4_GPIO_PCR0_P07 *((volatile unsigned int*)(0x42DE201CUL)) +#define bFM4_GPIO_PCR0_P08 *((volatile unsigned int*)(0x42DE2020UL)) +#define bFM4_GPIO_PCR0_P09 *((volatile unsigned int*)(0x42DE2024UL)) +#define bFM4_GPIO_PCR0_P0A *((volatile unsigned int*)(0x42DE2028UL)) +#define bFM4_GPIO_PCR0_P0B *((volatile unsigned int*)(0x42DE202CUL)) +#define bFM4_GPIO_PCR0_P0C *((volatile unsigned int*)(0x42DE2030UL)) +#define bFM4_GPIO_PCR0_P0D *((volatile unsigned int*)(0x42DE2034UL)) +#define bFM4_GPIO_PCR0_P0E *((volatile unsigned int*)(0x42DE2038UL)) +#define bFM4_GPIO_PCR1_P10 *((volatile unsigned int*)(0x42DE2080UL)) +#define bFM4_GPIO_PCR1_P11 *((volatile unsigned int*)(0x42DE2084UL)) +#define bFM4_GPIO_PCR1_P12 *((volatile unsigned int*)(0x42DE2088UL)) +#define bFM4_GPIO_PCR1_P13 *((volatile unsigned int*)(0x42DE208CUL)) +#define bFM4_GPIO_PCR1_P14 *((volatile unsigned int*)(0x42DE2090UL)) +#define bFM4_GPIO_PCR1_P15 *((volatile unsigned int*)(0x42DE2094UL)) +#define bFM4_GPIO_PCR1_P16 *((volatile unsigned int*)(0x42DE2098UL)) +#define bFM4_GPIO_PCR1_P17 *((volatile unsigned int*)(0x42DE209CUL)) +#define bFM4_GPIO_PCR1_P18 *((volatile unsigned int*)(0x42DE20A0UL)) +#define bFM4_GPIO_PCR1_P19 *((volatile unsigned int*)(0x42DE20A4UL)) +#define bFM4_GPIO_PCR1_P1A *((volatile unsigned int*)(0x42DE20A8UL)) +#define bFM4_GPIO_PCR1_P1B *((volatile unsigned int*)(0x42DE20ACUL)) +#define bFM4_GPIO_PCR1_P1C *((volatile unsigned int*)(0x42DE20B0UL)) +#define bFM4_GPIO_PCR1_P1D *((volatile unsigned int*)(0x42DE20B4UL)) +#define bFM4_GPIO_PCR1_P1E *((volatile unsigned int*)(0x42DE20B8UL)) +#define bFM4_GPIO_PCR1_P1F *((volatile unsigned int*)(0x42DE20BCUL)) +#define bFM4_GPIO_PCR2_P20 *((volatile unsigned int*)(0x42DE2100UL)) +#define bFM4_GPIO_PCR2_P21 *((volatile unsigned int*)(0x42DE2104UL)) +#define bFM4_GPIO_PCR2_P22 *((volatile unsigned int*)(0x42DE2108UL)) +#define bFM4_GPIO_PCR2_P23 *((volatile unsigned int*)(0x42DE210CUL)) +#define bFM4_GPIO_PCR2_P24 *((volatile unsigned int*)(0x42DE2110UL)) +#define bFM4_GPIO_PCR2_P25 *((volatile unsigned int*)(0x42DE2114UL)) +#define bFM4_GPIO_PCR2_P26 *((volatile unsigned int*)(0x42DE2118UL)) +#define bFM4_GPIO_PCR2_P27 *((volatile unsigned int*)(0x42DE211CUL)) +#define bFM4_GPIO_PCR3_P30 *((volatile unsigned int*)(0x42DE2180UL)) +#define bFM4_GPIO_PCR3_P31 *((volatile unsigned int*)(0x42DE2184UL)) +#define bFM4_GPIO_PCR3_P32 *((volatile unsigned int*)(0x42DE2188UL)) +#define bFM4_GPIO_PCR3_P33 *((volatile unsigned int*)(0x42DE218CUL)) +#define bFM4_GPIO_PCR3_P34 *((volatile unsigned int*)(0x42DE2190UL)) +#define bFM4_GPIO_PCR3_P35 *((volatile unsigned int*)(0x42DE2194UL)) +#define bFM4_GPIO_PCR3_P36 *((volatile unsigned int*)(0x42DE2198UL)) +#define bFM4_GPIO_PCR3_P37 *((volatile unsigned int*)(0x42DE219CUL)) +#define bFM4_GPIO_PCR3_P38 *((volatile unsigned int*)(0x42DE21A0UL)) +#define bFM4_GPIO_PCR3_P39 *((volatile unsigned int*)(0x42DE21A4UL)) +#define bFM4_GPIO_PCR3_P3A *((volatile unsigned int*)(0x42DE21A8UL)) +#define bFM4_GPIO_PCR3_P3B *((volatile unsigned int*)(0x42DE21ACUL)) +#define bFM4_GPIO_PCR3_P3C *((volatile unsigned int*)(0x42DE21B0UL)) +#define bFM4_GPIO_PCR3_P3D *((volatile unsigned int*)(0x42DE21B4UL)) +#define bFM4_GPIO_PCR3_P3E *((volatile unsigned int*)(0x42DE21B8UL)) +#define bFM4_GPIO_PCR3_P3F *((volatile unsigned int*)(0x42DE21BCUL)) +#define bFM4_GPIO_PCR4_P40 *((volatile unsigned int*)(0x42DE2200UL)) +#define bFM4_GPIO_PCR4_P41 *((volatile unsigned int*)(0x42DE2204UL)) +#define bFM4_GPIO_PCR4_P42 *((volatile unsigned int*)(0x42DE2208UL)) +#define bFM4_GPIO_PCR4_P43 *((volatile unsigned int*)(0x42DE220CUL)) +#define bFM4_GPIO_PCR4_P44 *((volatile unsigned int*)(0x42DE2210UL)) +#define bFM4_GPIO_PCR4_P45 *((volatile unsigned int*)(0x42DE2214UL)) +#define bFM4_GPIO_PCR4_P46 *((volatile unsigned int*)(0x42DE2218UL)) +#define bFM4_GPIO_PCR4_P47 *((volatile unsigned int*)(0x42DE221CUL)) +#define bFM4_GPIO_PCR4_P48 *((volatile unsigned int*)(0x42DE2220UL)) +#define bFM4_GPIO_PCR4_P49 *((volatile unsigned int*)(0x42DE2224UL)) +#define bFM4_GPIO_PCR4_P4A *((volatile unsigned int*)(0x42DE2228UL)) +#define bFM4_GPIO_PCR4_P4B *((volatile unsigned int*)(0x42DE222CUL)) +#define bFM4_GPIO_PCR4_P4C *((volatile unsigned int*)(0x42DE2230UL)) +#define bFM4_GPIO_PCR4_P4D *((volatile unsigned int*)(0x42DE2234UL)) +#define bFM4_GPIO_PCR4_P4E *((volatile unsigned int*)(0x42DE2238UL)) +#define bFM4_GPIO_PCR5_P50 *((volatile unsigned int*)(0x42DE2280UL)) +#define bFM4_GPIO_PCR5_P51 *((volatile unsigned int*)(0x42DE2284UL)) +#define bFM4_GPIO_PCR5_P52 *((volatile unsigned int*)(0x42DE2288UL)) +#define bFM4_GPIO_PCR5_P53 *((volatile unsigned int*)(0x42DE228CUL)) +#define bFM4_GPIO_PCR5_P54 *((volatile unsigned int*)(0x42DE2290UL)) +#define bFM4_GPIO_PCR5_P55 *((volatile unsigned int*)(0x42DE2294UL)) +#define bFM4_GPIO_PCR5_P56 *((volatile unsigned int*)(0x42DE2298UL)) +#define bFM4_GPIO_PCR5_P57 *((volatile unsigned int*)(0x42DE229CUL)) +#define bFM4_GPIO_PCR5_P58 *((volatile unsigned int*)(0x42DE22A0UL)) +#define bFM4_GPIO_PCR5_P59 *((volatile unsigned int*)(0x42DE22A4UL)) +#define bFM4_GPIO_PCR5_P5A *((volatile unsigned int*)(0x42DE22A8UL)) +#define bFM4_GPIO_PCR5_P5B *((volatile unsigned int*)(0x42DE22ACUL)) +#define bFM4_GPIO_PCR6_P60 *((volatile unsigned int*)(0x42DE2300UL)) +#define bFM4_GPIO_PCR6_P61 *((volatile unsigned int*)(0x42DE2304UL)) +#define bFM4_GPIO_PCR6_P62 *((volatile unsigned int*)(0x42DE2308UL)) +#define bFM4_GPIO_PCR6_P63 *((volatile unsigned int*)(0x42DE230CUL)) +#define bFM4_GPIO_PCR6_P64 *((volatile unsigned int*)(0x42DE2310UL)) +#define bFM4_GPIO_PCR6_P65 *((volatile unsigned int*)(0x42DE2314UL)) +#define bFM4_GPIO_PCR6_P66 *((volatile unsigned int*)(0x42DE2318UL)) +#define bFM4_GPIO_PCR6_P67 *((volatile unsigned int*)(0x42DE231CUL)) +#define bFM4_GPIO_PCR6_P68 *((volatile unsigned int*)(0x42DE2320UL)) +#define bFM4_GPIO_PCR7_P70 *((volatile unsigned int*)(0x42DE2380UL)) +#define bFM4_GPIO_PCR7_P71 *((volatile unsigned int*)(0x42DE2384UL)) +#define bFM4_GPIO_PCR7_P72 *((volatile unsigned int*)(0x42DE2388UL)) +#define bFM4_GPIO_PCR7_P73 *((volatile unsigned int*)(0x42DE238CUL)) +#define bFM4_GPIO_PCR7_P74 *((volatile unsigned int*)(0x42DE2390UL)) +#define bFM4_GPIO_PCR8_P80 *((volatile unsigned int*)(0x42DE2400UL)) +#define bFM4_GPIO_PCR8_P81 *((volatile unsigned int*)(0x42DE2404UL)) +#define bFM4_GPIO_PCRE_PE0 *((volatile unsigned int*)(0x42DE2700UL)) +#define bFM4_GPIO_PCRE_PE2 *((volatile unsigned int*)(0x42DE2708UL)) +#define bFM4_GPIO_PCRE_PE3 *((volatile unsigned int*)(0x42DE270CUL)) +#define bFM4_GPIO_DDR0_P00 *((volatile unsigned int*)(0x42DE4000UL)) +#define bFM4_GPIO_DDR0_P01 *((volatile unsigned int*)(0x42DE4004UL)) +#define bFM4_GPIO_DDR0_P02 *((volatile unsigned int*)(0x42DE4008UL)) +#define bFM4_GPIO_DDR0_P03 *((volatile unsigned int*)(0x42DE400CUL)) +#define bFM4_GPIO_DDR0_P04 *((volatile unsigned int*)(0x42DE4010UL)) +#define bFM4_GPIO_DDR0_P05 *((volatile unsigned int*)(0x42DE4014UL)) +#define bFM4_GPIO_DDR0_P06 *((volatile unsigned int*)(0x42DE4018UL)) +#define bFM4_GPIO_DDR0_P07 *((volatile unsigned int*)(0x42DE401CUL)) +#define bFM4_GPIO_DDR0_P08 *((volatile unsigned int*)(0x42DE4020UL)) +#define bFM4_GPIO_DDR0_P09 *((volatile unsigned int*)(0x42DE4024UL)) +#define bFM4_GPIO_DDR0_P0A *((volatile unsigned int*)(0x42DE4028UL)) +#define bFM4_GPIO_DDR0_P0B *((volatile unsigned int*)(0x42DE402CUL)) +#define bFM4_GPIO_DDR0_P0C *((volatile unsigned int*)(0x42DE4030UL)) +#define bFM4_GPIO_DDR0_P0D *((volatile unsigned int*)(0x42DE4034UL)) +#define bFM4_GPIO_DDR0_P0E *((volatile unsigned int*)(0x42DE4038UL)) +#define bFM4_GPIO_DDR0_P0F *((volatile unsigned int*)(0x42DE403CUL)) +#define bFM4_GPIO_DDR1_P10 *((volatile unsigned int*)(0x42DE4080UL)) +#define bFM4_GPIO_DDR1_P11 *((volatile unsigned int*)(0x42DE4084UL)) +#define bFM4_GPIO_DDR1_P12 *((volatile unsigned int*)(0x42DE4088UL)) +#define bFM4_GPIO_DDR1_P13 *((volatile unsigned int*)(0x42DE408CUL)) +#define bFM4_GPIO_DDR1_P14 *((volatile unsigned int*)(0x42DE4090UL)) +#define bFM4_GPIO_DDR1_P15 *((volatile unsigned int*)(0x42DE4094UL)) +#define bFM4_GPIO_DDR1_P16 *((volatile unsigned int*)(0x42DE4098UL)) +#define bFM4_GPIO_DDR1_P17 *((volatile unsigned int*)(0x42DE409CUL)) +#define bFM4_GPIO_DDR1_P18 *((volatile unsigned int*)(0x42DE40A0UL)) +#define bFM4_GPIO_DDR1_P19 *((volatile unsigned int*)(0x42DE40A4UL)) +#define bFM4_GPIO_DDR1_P1A *((volatile unsigned int*)(0x42DE40A8UL)) +#define bFM4_GPIO_DDR1_P1B *((volatile unsigned int*)(0x42DE40ACUL)) +#define bFM4_GPIO_DDR1_P1C *((volatile unsigned int*)(0x42DE40B0UL)) +#define bFM4_GPIO_DDR1_P1D *((volatile unsigned int*)(0x42DE40B4UL)) +#define bFM4_GPIO_DDR1_P1E *((volatile unsigned int*)(0x42DE40B8UL)) +#define bFM4_GPIO_DDR1_P1F *((volatile unsigned int*)(0x42DE40BCUL)) +#define bFM4_GPIO_DDR2_P20 *((volatile unsigned int*)(0x42DE4100UL)) +#define bFM4_GPIO_DDR2_P21 *((volatile unsigned int*)(0x42DE4104UL)) +#define bFM4_GPIO_DDR2_P22 *((volatile unsigned int*)(0x42DE4108UL)) +#define bFM4_GPIO_DDR2_P23 *((volatile unsigned int*)(0x42DE410CUL)) +#define bFM4_GPIO_DDR2_P24 *((volatile unsigned int*)(0x42DE4110UL)) +#define bFM4_GPIO_DDR2_P25 *((volatile unsigned int*)(0x42DE4114UL)) +#define bFM4_GPIO_DDR2_P26 *((volatile unsigned int*)(0x42DE4118UL)) +#define bFM4_GPIO_DDR2_P27 *((volatile unsigned int*)(0x42DE411CUL)) +#define bFM4_GPIO_DDR3_P30 *((volatile unsigned int*)(0x42DE4180UL)) +#define bFM4_GPIO_DDR3_P31 *((volatile unsigned int*)(0x42DE4184UL)) +#define bFM4_GPIO_DDR3_P32 *((volatile unsigned int*)(0x42DE4188UL)) +#define bFM4_GPIO_DDR3_P33 *((volatile unsigned int*)(0x42DE418CUL)) +#define bFM4_GPIO_DDR3_P34 *((volatile unsigned int*)(0x42DE4190UL)) +#define bFM4_GPIO_DDR3_P35 *((volatile unsigned int*)(0x42DE4194UL)) +#define bFM4_GPIO_DDR3_P36 *((volatile unsigned int*)(0x42DE4198UL)) +#define bFM4_GPIO_DDR3_P37 *((volatile unsigned int*)(0x42DE419CUL)) +#define bFM4_GPIO_DDR3_P38 *((volatile unsigned int*)(0x42DE41A0UL)) +#define bFM4_GPIO_DDR3_P39 *((volatile unsigned int*)(0x42DE41A4UL)) +#define bFM4_GPIO_DDR3_P3A *((volatile unsigned int*)(0x42DE41A8UL)) +#define bFM4_GPIO_DDR3_P3B *((volatile unsigned int*)(0x42DE41ACUL)) +#define bFM4_GPIO_DDR3_P3C *((volatile unsigned int*)(0x42DE41B0UL)) +#define bFM4_GPIO_DDR3_P3D *((volatile unsigned int*)(0x42DE41B4UL)) +#define bFM4_GPIO_DDR3_P3E *((volatile unsigned int*)(0x42DE41B8UL)) +#define bFM4_GPIO_DDR3_P3F *((volatile unsigned int*)(0x42DE41BCUL)) +#define bFM4_GPIO_DDR4_P40 *((volatile unsigned int*)(0x42DE4200UL)) +#define bFM4_GPIO_DDR4_P41 *((volatile unsigned int*)(0x42DE4204UL)) +#define bFM4_GPIO_DDR4_P42 *((volatile unsigned int*)(0x42DE4208UL)) +#define bFM4_GPIO_DDR4_P43 *((volatile unsigned int*)(0x42DE420CUL)) +#define bFM4_GPIO_DDR4_P44 *((volatile unsigned int*)(0x42DE4210UL)) +#define bFM4_GPIO_DDR4_P45 *((volatile unsigned int*)(0x42DE4214UL)) +#define bFM4_GPIO_DDR4_P46 *((volatile unsigned int*)(0x42DE4218UL)) +#define bFM4_GPIO_DDR4_P47 *((volatile unsigned int*)(0x42DE421CUL)) +#define bFM4_GPIO_DDR4_P48 *((volatile unsigned int*)(0x42DE4220UL)) +#define bFM4_GPIO_DDR4_P49 *((volatile unsigned int*)(0x42DE4224UL)) +#define bFM4_GPIO_DDR4_P4A *((volatile unsigned int*)(0x42DE4228UL)) +#define bFM4_GPIO_DDR4_P4B *((volatile unsigned int*)(0x42DE422CUL)) +#define bFM4_GPIO_DDR4_P4C *((volatile unsigned int*)(0x42DE4230UL)) +#define bFM4_GPIO_DDR4_P4D *((volatile unsigned int*)(0x42DE4234UL)) +#define bFM4_GPIO_DDR4_P4E *((volatile unsigned int*)(0x42DE4238UL)) +#define bFM4_GPIO_DDR5_P50 *((volatile unsigned int*)(0x42DE4280UL)) +#define bFM4_GPIO_DDR5_P51 *((volatile unsigned int*)(0x42DE4284UL)) +#define bFM4_GPIO_DDR5_P52 *((volatile unsigned int*)(0x42DE4288UL)) +#define bFM4_GPIO_DDR5_P53 *((volatile unsigned int*)(0x42DE428CUL)) +#define bFM4_GPIO_DDR5_P54 *((volatile unsigned int*)(0x42DE4290UL)) +#define bFM4_GPIO_DDR5_P55 *((volatile unsigned int*)(0x42DE4294UL)) +#define bFM4_GPIO_DDR5_P56 *((volatile unsigned int*)(0x42DE4298UL)) +#define bFM4_GPIO_DDR5_P57 *((volatile unsigned int*)(0x42DE429CUL)) +#define bFM4_GPIO_DDR5_P58 *((volatile unsigned int*)(0x42DE42A0UL)) +#define bFM4_GPIO_DDR5_P59 *((volatile unsigned int*)(0x42DE42A4UL)) +#define bFM4_GPIO_DDR5_P5A *((volatile unsigned int*)(0x42DE42A8UL)) +#define bFM4_GPIO_DDR5_P5B *((volatile unsigned int*)(0x42DE42ACUL)) +#define bFM4_GPIO_DDR6_P60 *((volatile unsigned int*)(0x42DE4300UL)) +#define bFM4_GPIO_DDR6_P61 *((volatile unsigned int*)(0x42DE4304UL)) +#define bFM4_GPIO_DDR6_P62 *((volatile unsigned int*)(0x42DE4308UL)) +#define bFM4_GPIO_DDR6_P63 *((volatile unsigned int*)(0x42DE430CUL)) +#define bFM4_GPIO_DDR6_P64 *((volatile unsigned int*)(0x42DE4310UL)) +#define bFM4_GPIO_DDR6_P65 *((volatile unsigned int*)(0x42DE4314UL)) +#define bFM4_GPIO_DDR6_P66 *((volatile unsigned int*)(0x42DE4318UL)) +#define bFM4_GPIO_DDR6_P67 *((volatile unsigned int*)(0x42DE431CUL)) +#define bFM4_GPIO_DDR6_P68 *((volatile unsigned int*)(0x42DE4320UL)) +#define bFM4_GPIO_DDR7_P70 *((volatile unsigned int*)(0x42DE4380UL)) +#define bFM4_GPIO_DDR7_P71 *((volatile unsigned int*)(0x42DE4384UL)) +#define bFM4_GPIO_DDR7_P72 *((volatile unsigned int*)(0x42DE4388UL)) +#define bFM4_GPIO_DDR7_P73 *((volatile unsigned int*)(0x42DE438CUL)) +#define bFM4_GPIO_DDR7_P74 *((volatile unsigned int*)(0x42DE4390UL)) +#define bFM4_GPIO_DDR8_P80 *((volatile unsigned int*)(0x42DE4400UL)) +#define bFM4_GPIO_DDR8_P81 *((volatile unsigned int*)(0x42DE4404UL)) +#define bFM4_GPIO_DDRE_PE0 *((volatile unsigned int*)(0x42DE4700UL)) +#define bFM4_GPIO_DDRE_PE2 *((volatile unsigned int*)(0x42DE4708UL)) +#define bFM4_GPIO_DDRE_PE3 *((volatile unsigned int*)(0x42DE470CUL)) +#define bFM4_GPIO_PDIR0_P00 *((volatile unsigned int*)(0x42DE6000UL)) +#define bFM4_GPIO_PDIR0_P01 *((volatile unsigned int*)(0x42DE6004UL)) +#define bFM4_GPIO_PDIR0_P02 *((volatile unsigned int*)(0x42DE6008UL)) +#define bFM4_GPIO_PDIR0_P03 *((volatile unsigned int*)(0x42DE600CUL)) +#define bFM4_GPIO_PDIR0_P04 *((volatile unsigned int*)(0x42DE6010UL)) +#define bFM4_GPIO_PDIR0_P05 *((volatile unsigned int*)(0x42DE6014UL)) +#define bFM4_GPIO_PDIR0_P06 *((volatile unsigned int*)(0x42DE6018UL)) +#define bFM4_GPIO_PDIR0_P07 *((volatile unsigned int*)(0x42DE601CUL)) +#define bFM4_GPIO_PDIR0_P08 *((volatile unsigned int*)(0x42DE6020UL)) +#define bFM4_GPIO_PDIR0_P09 *((volatile unsigned int*)(0x42DE6024UL)) +#define bFM4_GPIO_PDIR0_P0A *((volatile unsigned int*)(0x42DE6028UL)) +#define bFM4_GPIO_PDIR0_P0B *((volatile unsigned int*)(0x42DE602CUL)) +#define bFM4_GPIO_PDIR0_P0C *((volatile unsigned int*)(0x42DE6030UL)) +#define bFM4_GPIO_PDIR0_P0D *((volatile unsigned int*)(0x42DE6034UL)) +#define bFM4_GPIO_PDIR0_P0E *((volatile unsigned int*)(0x42DE6038UL)) +#define bFM4_GPIO_PDIR0_P0F *((volatile unsigned int*)(0x42DE603CUL)) +#define bFM4_GPIO_PDIR1_P10 *((volatile unsigned int*)(0x42DE6080UL)) +#define bFM4_GPIO_PDIR1_P11 *((volatile unsigned int*)(0x42DE6084UL)) +#define bFM4_GPIO_PDIR1_P12 *((volatile unsigned int*)(0x42DE6088UL)) +#define bFM4_GPIO_PDIR1_P13 *((volatile unsigned int*)(0x42DE608CUL)) +#define bFM4_GPIO_PDIR1_P14 *((volatile unsigned int*)(0x42DE6090UL)) +#define bFM4_GPIO_PDIR1_P15 *((volatile unsigned int*)(0x42DE6094UL)) +#define bFM4_GPIO_PDIR1_P16 *((volatile unsigned int*)(0x42DE6098UL)) +#define bFM4_GPIO_PDIR1_P17 *((volatile unsigned int*)(0x42DE609CUL)) +#define bFM4_GPIO_PDIR1_P18 *((volatile unsigned int*)(0x42DE60A0UL)) +#define bFM4_GPIO_PDIR1_P19 *((volatile unsigned int*)(0x42DE60A4UL)) +#define bFM4_GPIO_PDIR1_P1A *((volatile unsigned int*)(0x42DE60A8UL)) +#define bFM4_GPIO_PDIR1_P1B *((volatile unsigned int*)(0x42DE60ACUL)) +#define bFM4_GPIO_PDIR1_P1C *((volatile unsigned int*)(0x42DE60B0UL)) +#define bFM4_GPIO_PDIR1_P1D *((volatile unsigned int*)(0x42DE60B4UL)) +#define bFM4_GPIO_PDIR1_P1E *((volatile unsigned int*)(0x42DE60B8UL)) +#define bFM4_GPIO_PDIR1_P1F *((volatile unsigned int*)(0x42DE60BCUL)) +#define bFM4_GPIO_PDIR2_P20 *((volatile unsigned int*)(0x42DE6100UL)) +#define bFM4_GPIO_PDIR2_P21 *((volatile unsigned int*)(0x42DE6104UL)) +#define bFM4_GPIO_PDIR2_P22 *((volatile unsigned int*)(0x42DE6108UL)) +#define bFM4_GPIO_PDIR2_P23 *((volatile unsigned int*)(0x42DE610CUL)) +#define bFM4_GPIO_PDIR2_P24 *((volatile unsigned int*)(0x42DE6110UL)) +#define bFM4_GPIO_PDIR2_P25 *((volatile unsigned int*)(0x42DE6114UL)) +#define bFM4_GPIO_PDIR2_P26 *((volatile unsigned int*)(0x42DE6118UL)) +#define bFM4_GPIO_PDIR2_P27 *((volatile unsigned int*)(0x42DE611CUL)) +#define bFM4_GPIO_PDIR3_P30 *((volatile unsigned int*)(0x42DE6180UL)) +#define bFM4_GPIO_PDIR3_P31 *((volatile unsigned int*)(0x42DE6184UL)) +#define bFM4_GPIO_PDIR3_P32 *((volatile unsigned int*)(0x42DE6188UL)) +#define bFM4_GPIO_PDIR3_P33 *((volatile unsigned int*)(0x42DE618CUL)) +#define bFM4_GPIO_PDIR3_P34 *((volatile unsigned int*)(0x42DE6190UL)) +#define bFM4_GPIO_PDIR3_P35 *((volatile unsigned int*)(0x42DE6194UL)) +#define bFM4_GPIO_PDIR3_P36 *((volatile unsigned int*)(0x42DE6198UL)) +#define bFM4_GPIO_PDIR3_P37 *((volatile unsigned int*)(0x42DE619CUL)) +#define bFM4_GPIO_PDIR3_P38 *((volatile unsigned int*)(0x42DE61A0UL)) +#define bFM4_GPIO_PDIR3_P39 *((volatile unsigned int*)(0x42DE61A4UL)) +#define bFM4_GPIO_PDIR3_P3A *((volatile unsigned int*)(0x42DE61A8UL)) +#define bFM4_GPIO_PDIR3_P3B *((volatile unsigned int*)(0x42DE61ACUL)) +#define bFM4_GPIO_PDIR3_P3C *((volatile unsigned int*)(0x42DE61B0UL)) +#define bFM4_GPIO_PDIR3_P3D *((volatile unsigned int*)(0x42DE61B4UL)) +#define bFM4_GPIO_PDIR3_P3E *((volatile unsigned int*)(0x42DE61B8UL)) +#define bFM4_GPIO_PDIR3_P3F *((volatile unsigned int*)(0x42DE61BCUL)) +#define bFM4_GPIO_PDIR4_P40 *((volatile unsigned int*)(0x42DE6200UL)) +#define bFM4_GPIO_PDIR4_P41 *((volatile unsigned int*)(0x42DE6204UL)) +#define bFM4_GPIO_PDIR4_P42 *((volatile unsigned int*)(0x42DE6208UL)) +#define bFM4_GPIO_PDIR4_P43 *((volatile unsigned int*)(0x42DE620CUL)) +#define bFM4_GPIO_PDIR4_P44 *((volatile unsigned int*)(0x42DE6210UL)) +#define bFM4_GPIO_PDIR4_P45 *((volatile unsigned int*)(0x42DE6214UL)) +#define bFM4_GPIO_PDIR4_P46 *((volatile unsigned int*)(0x42DE6218UL)) +#define bFM4_GPIO_PDIR4_P47 *((volatile unsigned int*)(0x42DE621CUL)) +#define bFM4_GPIO_PDIR4_P48 *((volatile unsigned int*)(0x42DE6220UL)) +#define bFM4_GPIO_PDIR4_P49 *((volatile unsigned int*)(0x42DE6224UL)) +#define bFM4_GPIO_PDIR4_P4A *((volatile unsigned int*)(0x42DE6228UL)) +#define bFM4_GPIO_PDIR4_P4B *((volatile unsigned int*)(0x42DE622CUL)) +#define bFM4_GPIO_PDIR4_P4C *((volatile unsigned int*)(0x42DE6230UL)) +#define bFM4_GPIO_PDIR4_P4D *((volatile unsigned int*)(0x42DE6234UL)) +#define bFM4_GPIO_PDIR4_P4E *((volatile unsigned int*)(0x42DE6238UL)) +#define bFM4_GPIO_PDIR5_P50 *((volatile unsigned int*)(0x42DE6280UL)) +#define bFM4_GPIO_PDIR5_P51 *((volatile unsigned int*)(0x42DE6284UL)) +#define bFM4_GPIO_PDIR5_P52 *((volatile unsigned int*)(0x42DE6288UL)) +#define bFM4_GPIO_PDIR5_P53 *((volatile unsigned int*)(0x42DE628CUL)) +#define bFM4_GPIO_PDIR5_P54 *((volatile unsigned int*)(0x42DE6290UL)) +#define bFM4_GPIO_PDIR5_P55 *((volatile unsigned int*)(0x42DE6294UL)) +#define bFM4_GPIO_PDIR5_P56 *((volatile unsigned int*)(0x42DE6298UL)) +#define bFM4_GPIO_PDIR5_P57 *((volatile unsigned int*)(0x42DE629CUL)) +#define bFM4_GPIO_PDIR5_P58 *((volatile unsigned int*)(0x42DE62A0UL)) +#define bFM4_GPIO_PDIR5_P59 *((volatile unsigned int*)(0x42DE62A4UL)) +#define bFM4_GPIO_PDIR5_P5A *((volatile unsigned int*)(0x42DE62A8UL)) +#define bFM4_GPIO_PDIR5_P5B *((volatile unsigned int*)(0x42DE62ACUL)) +#define bFM4_GPIO_PDIR6_P60 *((volatile unsigned int*)(0x42DE6300UL)) +#define bFM4_GPIO_PDIR6_P61 *((volatile unsigned int*)(0x42DE6304UL)) +#define bFM4_GPIO_PDIR6_P62 *((volatile unsigned int*)(0x42DE6308UL)) +#define bFM4_GPIO_PDIR6_P63 *((volatile unsigned int*)(0x42DE630CUL)) +#define bFM4_GPIO_PDIR6_P64 *((volatile unsigned int*)(0x42DE6310UL)) +#define bFM4_GPIO_PDIR6_P65 *((volatile unsigned int*)(0x42DE6314UL)) +#define bFM4_GPIO_PDIR6_P66 *((volatile unsigned int*)(0x42DE6318UL)) +#define bFM4_GPIO_PDIR6_P67 *((volatile unsigned int*)(0x42DE631CUL)) +#define bFM4_GPIO_PDIR6_P68 *((volatile unsigned int*)(0x42DE6320UL)) +#define bFM4_GPIO_PDIR7_P70 *((volatile unsigned int*)(0x42DE6380UL)) +#define bFM4_GPIO_PDIR7_P71 *((volatile unsigned int*)(0x42DE6384UL)) +#define bFM4_GPIO_PDIR7_P72 *((volatile unsigned int*)(0x42DE6388UL)) +#define bFM4_GPIO_PDIR7_P73 *((volatile unsigned int*)(0x42DE638CUL)) +#define bFM4_GPIO_PDIR7_P74 *((volatile unsigned int*)(0x42DE6390UL)) +#define bFM4_GPIO_PDIR8_P80 *((volatile unsigned int*)(0x42DE6400UL)) +#define bFM4_GPIO_PDIR8_P81 *((volatile unsigned int*)(0x42DE6404UL)) +#define bFM4_GPIO_PDIRE_PE0 *((volatile unsigned int*)(0x42DE6700UL)) +#define bFM4_GPIO_PDIRE_PE2 *((volatile unsigned int*)(0x42DE6708UL)) +#define bFM4_GPIO_PDIRE_PE3 *((volatile unsigned int*)(0x42DE670CUL)) +#define bFM4_GPIO_PDOR0_P00 *((volatile unsigned int*)(0x42DE8000UL)) +#define bFM4_GPIO_PDOR0_P01 *((volatile unsigned int*)(0x42DE8004UL)) +#define bFM4_GPIO_PDOR0_P02 *((volatile unsigned int*)(0x42DE8008UL)) +#define bFM4_GPIO_PDOR0_P03 *((volatile unsigned int*)(0x42DE800CUL)) +#define bFM4_GPIO_PDOR0_P04 *((volatile unsigned int*)(0x42DE8010UL)) +#define bFM4_GPIO_PDOR0_P05 *((volatile unsigned int*)(0x42DE8014UL)) +#define bFM4_GPIO_PDOR0_P06 *((volatile unsigned int*)(0x42DE8018UL)) +#define bFM4_GPIO_PDOR0_P07 *((volatile unsigned int*)(0x42DE801CUL)) +#define bFM4_GPIO_PDOR0_P08 *((volatile unsigned int*)(0x42DE8020UL)) +#define bFM4_GPIO_PDOR0_P09 *((volatile unsigned int*)(0x42DE8024UL)) +#define bFM4_GPIO_PDOR0_P0A *((volatile unsigned int*)(0x42DE8028UL)) +#define bFM4_GPIO_PDOR0_P0B *((volatile unsigned int*)(0x42DE802CUL)) +#define bFM4_GPIO_PDOR0_P0C *((volatile unsigned int*)(0x42DE8030UL)) +#define bFM4_GPIO_PDOR0_P0D *((volatile unsigned int*)(0x42DE8034UL)) +#define bFM4_GPIO_PDOR0_P0E *((volatile unsigned int*)(0x42DE8038UL)) +#define bFM4_GPIO_PDOR0_P0F *((volatile unsigned int*)(0x42DE803CUL)) +#define bFM4_GPIO_PDOR1_P10 *((volatile unsigned int*)(0x42DE8080UL)) +#define bFM4_GPIO_PDOR1_P11 *((volatile unsigned int*)(0x42DE8084UL)) +#define bFM4_GPIO_PDOR1_P12 *((volatile unsigned int*)(0x42DE8088UL)) +#define bFM4_GPIO_PDOR1_P13 *((volatile unsigned int*)(0x42DE808CUL)) +#define bFM4_GPIO_PDOR1_P14 *((volatile unsigned int*)(0x42DE8090UL)) +#define bFM4_GPIO_PDOR1_P15 *((volatile unsigned int*)(0x42DE8094UL)) +#define bFM4_GPIO_PDOR1_P16 *((volatile unsigned int*)(0x42DE8098UL)) +#define bFM4_GPIO_PDOR1_P17 *((volatile unsigned int*)(0x42DE809CUL)) +#define bFM4_GPIO_PDOR1_P18 *((volatile unsigned int*)(0x42DE80A0UL)) +#define bFM4_GPIO_PDOR1_P19 *((volatile unsigned int*)(0x42DE80A4UL)) +#define bFM4_GPIO_PDOR1_P1A *((volatile unsigned int*)(0x42DE80A8UL)) +#define bFM4_GPIO_PDOR1_P1B *((volatile unsigned int*)(0x42DE80ACUL)) +#define bFM4_GPIO_PDOR1_P1C *((volatile unsigned int*)(0x42DE80B0UL)) +#define bFM4_GPIO_PDOR1_P1D *((volatile unsigned int*)(0x42DE80B4UL)) +#define bFM4_GPIO_PDOR1_P1E *((volatile unsigned int*)(0x42DE80B8UL)) +#define bFM4_GPIO_PDOR1_P1F *((volatile unsigned int*)(0x42DE80BCUL)) +#define bFM4_GPIO_PDOR2_P20 *((volatile unsigned int*)(0x42DE8100UL)) +#define bFM4_GPIO_PDOR2_P21 *((volatile unsigned int*)(0x42DE8104UL)) +#define bFM4_GPIO_PDOR2_P22 *((volatile unsigned int*)(0x42DE8108UL)) +#define bFM4_GPIO_PDOR2_P23 *((volatile unsigned int*)(0x42DE810CUL)) +#define bFM4_GPIO_PDOR2_P24 *((volatile unsigned int*)(0x42DE8110UL)) +#define bFM4_GPIO_PDOR2_P25 *((volatile unsigned int*)(0x42DE8114UL)) +#define bFM4_GPIO_PDOR2_P26 *((volatile unsigned int*)(0x42DE8118UL)) +#define bFM4_GPIO_PDOR2_P27 *((volatile unsigned int*)(0x42DE811CUL)) +#define bFM4_GPIO_PDOR3_P30 *((volatile unsigned int*)(0x42DE8180UL)) +#define bFM4_GPIO_PDOR3_P31 *((volatile unsigned int*)(0x42DE8184UL)) +#define bFM4_GPIO_PDOR3_P32 *((volatile unsigned int*)(0x42DE8188UL)) +#define bFM4_GPIO_PDOR3_P33 *((volatile unsigned int*)(0x42DE818CUL)) +#define bFM4_GPIO_PDOR3_P34 *((volatile unsigned int*)(0x42DE8190UL)) +#define bFM4_GPIO_PDOR3_P35 *((volatile unsigned int*)(0x42DE8194UL)) +#define bFM4_GPIO_PDOR3_P36 *((volatile unsigned int*)(0x42DE8198UL)) +#define bFM4_GPIO_PDOR3_P37 *((volatile unsigned int*)(0x42DE819CUL)) +#define bFM4_GPIO_PDOR3_P38 *((volatile unsigned int*)(0x42DE81A0UL)) +#define bFM4_GPIO_PDOR3_P39 *((volatile unsigned int*)(0x42DE81A4UL)) +#define bFM4_GPIO_PDOR3_P3A *((volatile unsigned int*)(0x42DE81A8UL)) +#define bFM4_GPIO_PDOR3_P3B *((volatile unsigned int*)(0x42DE81ACUL)) +#define bFM4_GPIO_PDOR3_P3C *((volatile unsigned int*)(0x42DE81B0UL)) +#define bFM4_GPIO_PDOR3_P3D *((volatile unsigned int*)(0x42DE81B4UL)) +#define bFM4_GPIO_PDOR3_P3E *((volatile unsigned int*)(0x42DE81B8UL)) +#define bFM4_GPIO_PDOR3_P3F *((volatile unsigned int*)(0x42DE81BCUL)) +#define bFM4_GPIO_PDOR4_P40 *((volatile unsigned int*)(0x42DE8200UL)) +#define bFM4_GPIO_PDOR4_P41 *((volatile unsigned int*)(0x42DE8204UL)) +#define bFM4_GPIO_PDOR4_P42 *((volatile unsigned int*)(0x42DE8208UL)) +#define bFM4_GPIO_PDOR4_P43 *((volatile unsigned int*)(0x42DE820CUL)) +#define bFM4_GPIO_PDOR4_P44 *((volatile unsigned int*)(0x42DE8210UL)) +#define bFM4_GPIO_PDOR4_P45 *((volatile unsigned int*)(0x42DE8214UL)) +#define bFM4_GPIO_PDOR4_P46 *((volatile unsigned int*)(0x42DE8218UL)) +#define bFM4_GPIO_PDOR4_P47 *((volatile unsigned int*)(0x42DE821CUL)) +#define bFM4_GPIO_PDOR4_P48 *((volatile unsigned int*)(0x42DE8220UL)) +#define bFM4_GPIO_PDOR4_P49 *((volatile unsigned int*)(0x42DE8224UL)) +#define bFM4_GPIO_PDOR4_P4A *((volatile unsigned int*)(0x42DE8228UL)) +#define bFM4_GPIO_PDOR4_P4B *((volatile unsigned int*)(0x42DE822CUL)) +#define bFM4_GPIO_PDOR4_P4C *((volatile unsigned int*)(0x42DE8230UL)) +#define bFM4_GPIO_PDOR4_P4D *((volatile unsigned int*)(0x42DE8234UL)) +#define bFM4_GPIO_PDOR4_P4E *((volatile unsigned int*)(0x42DE8238UL)) +#define bFM4_GPIO_PDOR5_P50 *((volatile unsigned int*)(0x42DE8280UL)) +#define bFM4_GPIO_PDOR5_P51 *((volatile unsigned int*)(0x42DE8284UL)) +#define bFM4_GPIO_PDOR5_P52 *((volatile unsigned int*)(0x42DE8288UL)) +#define bFM4_GPIO_PDOR5_P53 *((volatile unsigned int*)(0x42DE828CUL)) +#define bFM4_GPIO_PDOR5_P54 *((volatile unsigned int*)(0x42DE8290UL)) +#define bFM4_GPIO_PDOR5_P55 *((volatile unsigned int*)(0x42DE8294UL)) +#define bFM4_GPIO_PDOR5_P56 *((volatile unsigned int*)(0x42DE8298UL)) +#define bFM4_GPIO_PDOR5_P57 *((volatile unsigned int*)(0x42DE829CUL)) +#define bFM4_GPIO_PDOR5_P58 *((volatile unsigned int*)(0x42DE82A0UL)) +#define bFM4_GPIO_PDOR5_P59 *((volatile unsigned int*)(0x42DE82A4UL)) +#define bFM4_GPIO_PDOR5_P5A *((volatile unsigned int*)(0x42DE82A8UL)) +#define bFM4_GPIO_PDOR5_P5B *((volatile unsigned int*)(0x42DE82ACUL)) +#define bFM4_GPIO_PDOR6_P60 *((volatile unsigned int*)(0x42DE8300UL)) +#define bFM4_GPIO_PDOR6_P61 *((volatile unsigned int*)(0x42DE8304UL)) +#define bFM4_GPIO_PDOR6_P62 *((volatile unsigned int*)(0x42DE8308UL)) +#define bFM4_GPIO_PDOR6_P63 *((volatile unsigned int*)(0x42DE830CUL)) +#define bFM4_GPIO_PDOR6_P64 *((volatile unsigned int*)(0x42DE8310UL)) +#define bFM4_GPIO_PDOR6_P65 *((volatile unsigned int*)(0x42DE8314UL)) +#define bFM4_GPIO_PDOR6_P66 *((volatile unsigned int*)(0x42DE8318UL)) +#define bFM4_GPIO_PDOR6_P67 *((volatile unsigned int*)(0x42DE831CUL)) +#define bFM4_GPIO_PDOR6_P68 *((volatile unsigned int*)(0x42DE8320UL)) +#define bFM4_GPIO_PDOR7_P70 *((volatile unsigned int*)(0x42DE8380UL)) +#define bFM4_GPIO_PDOR7_P71 *((volatile unsigned int*)(0x42DE8384UL)) +#define bFM4_GPIO_PDOR7_P72 *((volatile unsigned int*)(0x42DE8388UL)) +#define bFM4_GPIO_PDOR7_P73 *((volatile unsigned int*)(0x42DE838CUL)) +#define bFM4_GPIO_PDOR7_P74 *((volatile unsigned int*)(0x42DE8390UL)) +#define bFM4_GPIO_PDOR8_P80 *((volatile unsigned int*)(0x42DE8400UL)) +#define bFM4_GPIO_PDOR8_P81 *((volatile unsigned int*)(0x42DE8404UL)) +#define bFM4_GPIO_PDORE_PE0 *((volatile unsigned int*)(0x42DE8700UL)) +#define bFM4_GPIO_PDORE_PE2 *((volatile unsigned int*)(0x42DE8708UL)) +#define bFM4_GPIO_PDORE_PE3 *((volatile unsigned int*)(0x42DE870CUL)) +#define bFM4_GPIO_ADE_AN00 *((volatile unsigned int*)(0x42DEA000UL)) +#define bFM4_GPIO_ADE_AN01 *((volatile unsigned int*)(0x42DEA004UL)) +#define bFM4_GPIO_ADE_AN02 *((volatile unsigned int*)(0x42DEA008UL)) +#define bFM4_GPIO_ADE_AN03 *((volatile unsigned int*)(0x42DEA00CUL)) +#define bFM4_GPIO_ADE_AN04 *((volatile unsigned int*)(0x42DEA010UL)) +#define bFM4_GPIO_ADE_AN05 *((volatile unsigned int*)(0x42DEA014UL)) +#define bFM4_GPIO_ADE_AN06 *((volatile unsigned int*)(0x42DEA018UL)) +#define bFM4_GPIO_ADE_AN07 *((volatile unsigned int*)(0x42DEA01CUL)) +#define bFM4_GPIO_ADE_AN08 *((volatile unsigned int*)(0x42DEA020UL)) +#define bFM4_GPIO_ADE_AN09 *((volatile unsigned int*)(0x42DEA024UL)) +#define bFM4_GPIO_ADE_AN10 *((volatile unsigned int*)(0x42DEA028UL)) +#define bFM4_GPIO_ADE_AN11 *((volatile unsigned int*)(0x42DEA02CUL)) +#define bFM4_GPIO_ADE_AN12 *((volatile unsigned int*)(0x42DEA030UL)) +#define bFM4_GPIO_ADE_AN13 *((volatile unsigned int*)(0x42DEA034UL)) +#define bFM4_GPIO_ADE_AN14 *((volatile unsigned int*)(0x42DEA038UL)) +#define bFM4_GPIO_ADE_AN15 *((volatile unsigned int*)(0x42DEA03CUL)) +#define bFM4_GPIO_ADE_AN16 *((volatile unsigned int*)(0x42DEA040UL)) +#define bFM4_GPIO_ADE_AN17 *((volatile unsigned int*)(0x42DEA044UL)) +#define bFM4_GPIO_ADE_AN18 *((volatile unsigned int*)(0x42DEA048UL)) +#define bFM4_GPIO_ADE_AN19 *((volatile unsigned int*)(0x42DEA04CUL)) +#define bFM4_GPIO_ADE_AN20 *((volatile unsigned int*)(0x42DEA050UL)) +#define bFM4_GPIO_ADE_AN21 *((volatile unsigned int*)(0x42DEA054UL)) +#define bFM4_GPIO_ADE_AN22 *((volatile unsigned int*)(0x42DEA058UL)) +#define bFM4_GPIO_ADE_AN23 *((volatile unsigned int*)(0x42DEA05CUL)) +#define bFM4_GPIO_ADE_AN24 *((volatile unsigned int*)(0x42DEA060UL)) +#define bFM4_GPIO_ADE_AN25 *((volatile unsigned int*)(0x42DEA064UL)) +#define bFM4_GPIO_ADE_AN26 *((volatile unsigned int*)(0x42DEA068UL)) +#define bFM4_GPIO_ADE_AN27 *((volatile unsigned int*)(0x42DEA06CUL)) +#define bFM4_GPIO_ADE_AN28 *((volatile unsigned int*)(0x42DEA070UL)) +#define bFM4_GPIO_ADE_AN29 *((volatile unsigned int*)(0x42DEA074UL)) +#define bFM4_GPIO_ADE_AN30 *((volatile unsigned int*)(0x42DEA078UL)) +#define bFM4_GPIO_ADE_AN31 *((volatile unsigned int*)(0x42DEA07CUL)) +#define bFM4_GPIO_SPSR_MAINXC0 *((volatile unsigned int*)(0x42DEB008UL)) +#define bFM4_GPIO_SPSR_MAINXC1 *((volatile unsigned int*)(0x42DEB00CUL)) +#define bFM4_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x42DEB010UL)) +#define bFM4_GPIO_SPSR_USB1C *((volatile unsigned int*)(0x42DEB014UL)) +#define bFM4_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x42DEC000UL)) +#define bFM4_GPIO_EPFR00_CROUTE0 *((volatile unsigned int*)(0x42DEC004UL)) +#define bFM4_GPIO_EPFR00_CROUTE1 *((volatile unsigned int*)(0x42DEC008UL)) +#define bFM4_GPIO_EPFR00_RTCCOE0 *((volatile unsigned int*)(0x42DEC010UL)) +#define bFM4_GPIO_EPFR00_RTCCOE1 *((volatile unsigned int*)(0x42DEC014UL)) +#define bFM4_GPIO_EPFR00_SUBOUTE0 *((volatile unsigned int*)(0x42DEC018UL)) +#define bFM4_GPIO_EPFR00_SUBOUTE1 *((volatile unsigned int*)(0x42DEC01CUL)) +#define bFM4_GPIO_EPFR00_USBP0E *((volatile unsigned int*)(0x42DEC024UL)) +#define bFM4_GPIO_EPFR00_USBP1E *((volatile unsigned int*)(0x42DEC034UL)) +#define bFM4_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x42DEC040UL)) +#define bFM4_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x42DEC044UL)) +#define bFM4_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x42DEC060UL)) +#define bFM4_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x42DEC064UL)) +#define bFM4_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x42DEC080UL)) +#define bFM4_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x42DEC084UL)) +#define bFM4_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x42DEC088UL)) +#define bFM4_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x42DEC08CUL)) +#define bFM4_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x42DEC090UL)) +#define bFM4_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x42DEC094UL)) +#define bFM4_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x42DEC098UL)) +#define bFM4_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x42DEC09CUL)) +#define bFM4_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x42DEC0A0UL)) +#define bFM4_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x42DEC0A4UL)) +#define bFM4_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x42DEC0A8UL)) +#define bFM4_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x42DEC0ACUL)) +#define bFM4_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x42DEC0B0UL)) +#define bFM4_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x42DEC0C0UL)) +#define bFM4_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x42DEC0C4UL)) +#define bFM4_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x42DEC0C8UL)) +#define bFM4_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x42DEC0CCUL)) +#define bFM4_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x42DEC0D0UL)) +#define bFM4_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x42DEC0D4UL)) +#define bFM4_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x42DEC0D8UL)) +#define bFM4_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x42DEC0DCUL)) +#define bFM4_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x42DEC0E0UL)) +#define bFM4_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x42DEC0E4UL)) +#define bFM4_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x42DEC0E8UL)) +#define bFM4_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x42DEC0ECUL)) +#define bFM4_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x42DEC0F0UL)) +#define bFM4_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x42DEC0F4UL)) +#define bFM4_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x42DEC0F8UL)) +#define bFM4_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x42DEC0FCUL)) +#define bFM4_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x42DEC100UL)) +#define bFM4_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x42DEC104UL)) +#define bFM4_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x42DEC108UL)) +#define bFM4_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x42DEC10CUL)) +#define bFM4_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x42DEC110UL)) +#define bFM4_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x42DEC114UL)) +#define bFM4_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x42DEC118UL)) +#define bFM4_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x42DEC11CUL)) +#define bFM4_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x42DEC120UL)) +#define bFM4_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x42DEC124UL)) +#define bFM4_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x42DEC128UL)) +#define bFM4_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x42DEC12CUL)) +#define bFM4_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x42DEC130UL)) +#define bFM4_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x42DEC140UL)) +#define bFM4_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x42DEC144UL)) +#define bFM4_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x42DEC148UL)) +#define bFM4_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x42DEC14CUL)) +#define bFM4_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x42DEC150UL)) +#define bFM4_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x42DEC154UL)) +#define bFM4_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x42DEC158UL)) +#define bFM4_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x42DEC15CUL)) +#define bFM4_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x42DEC160UL)) +#define bFM4_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x42DEC164UL)) +#define bFM4_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x42DEC168UL)) +#define bFM4_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x42DEC16CUL)) +#define bFM4_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x42DEC170UL)) +#define bFM4_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x42DEC174UL)) +#define bFM4_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x42DEC178UL)) +#define bFM4_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x42DEC17CUL)) +#define bFM4_GPIO_EPFR03_RTO20E0 *((volatile unsigned int*)(0x42DEC180UL)) +#define bFM4_GPIO_EPFR03_RTO20E1 *((volatile unsigned int*)(0x42DEC184UL)) +#define bFM4_GPIO_EPFR03_RTO21E0 *((volatile unsigned int*)(0x42DEC188UL)) +#define bFM4_GPIO_EPFR03_RTO21E1 *((volatile unsigned int*)(0x42DEC18CUL)) +#define bFM4_GPIO_EPFR03_RTO22E0 *((volatile unsigned int*)(0x42DEC190UL)) +#define bFM4_GPIO_EPFR03_RTO22E1 *((volatile unsigned int*)(0x42DEC194UL)) +#define bFM4_GPIO_EPFR03_RTO23E0 *((volatile unsigned int*)(0x42DEC198UL)) +#define bFM4_GPIO_EPFR03_RTO23E1 *((volatile unsigned int*)(0x42DEC19CUL)) +#define bFM4_GPIO_EPFR03_RTO24E0 *((volatile unsigned int*)(0x42DEC1A0UL)) +#define bFM4_GPIO_EPFR03_RTO24E1 *((volatile unsigned int*)(0x42DEC1A4UL)) +#define bFM4_GPIO_EPFR03_RTO25E0 *((volatile unsigned int*)(0x42DEC1A8UL)) +#define bFM4_GPIO_EPFR03_RTO25E1 *((volatile unsigned int*)(0x42DEC1ACUL)) +#define bFM4_GPIO_EPFR03_DTTI2C *((volatile unsigned int*)(0x42DEC1B0UL)) +#define bFM4_GPIO_EPFR03_DTTI2S0 *((volatile unsigned int*)(0x42DEC1C0UL)) +#define bFM4_GPIO_EPFR03_DTTI2S1 *((volatile unsigned int*)(0x42DEC1C4UL)) +#define bFM4_GPIO_EPFR03_FRCK2S0 *((volatile unsigned int*)(0x42DEC1C8UL)) +#define bFM4_GPIO_EPFR03_FRCK2S1 *((volatile unsigned int*)(0x42DEC1CCUL)) +#define bFM4_GPIO_EPFR03_IC20S0 *((volatile unsigned int*)(0x42DEC1D0UL)) +#define bFM4_GPIO_EPFR03_IC20S1 *((volatile unsigned int*)(0x42DEC1D4UL)) +#define bFM4_GPIO_EPFR03_IC20S2 *((volatile unsigned int*)(0x42DEC1D8UL)) +#define bFM4_GPIO_EPFR03_IC21S0 *((volatile unsigned int*)(0x42DEC1DCUL)) +#define bFM4_GPIO_EPFR03_IC21S1 *((volatile unsigned int*)(0x42DEC1E0UL)) +#define bFM4_GPIO_EPFR03_IC21S2 *((volatile unsigned int*)(0x42DEC1E4UL)) +#define bFM4_GPIO_EPFR03_IC22S0 *((volatile unsigned int*)(0x42DEC1E8UL)) +#define bFM4_GPIO_EPFR03_IC22S1 *((volatile unsigned int*)(0x42DEC1ECUL)) +#define bFM4_GPIO_EPFR03_IC22S2 *((volatile unsigned int*)(0x42DEC1F0UL)) +#define bFM4_GPIO_EPFR03_IC23S0 *((volatile unsigned int*)(0x42DEC1F4UL)) +#define bFM4_GPIO_EPFR03_IC23S1 *((volatile unsigned int*)(0x42DEC1F8UL)) +#define bFM4_GPIO_EPFR03_IC23S2 *((volatile unsigned int*)(0x42DEC1FCUL)) +#define bFM4_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x42DEC208UL)) +#define bFM4_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x42DEC20CUL)) +#define bFM4_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x42DEC210UL)) +#define bFM4_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x42DEC214UL)) +#define bFM4_GPIO_EPFR04_TIOB0S2 *((volatile unsigned int*)(0x42DEC218UL)) +#define bFM4_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x42DEC220UL)) +#define bFM4_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x42DEC224UL)) +#define bFM4_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x42DEC228UL)) +#define bFM4_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x42DEC22CUL)) +#define bFM4_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x42DEC230UL)) +#define bFM4_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x42DEC234UL)) +#define bFM4_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x42DEC248UL)) +#define bFM4_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x42DEC24CUL)) +#define bFM4_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x42DEC250UL)) +#define bFM4_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x42DEC254UL)) +#define bFM4_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x42DEC260UL)) +#define bFM4_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x42DEC264UL)) +#define bFM4_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x42DEC268UL)) +#define bFM4_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x42DEC26CUL)) +#define bFM4_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x42DEC270UL)) +#define bFM4_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x42DEC274UL)) +#define bFM4_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x42DEC288UL)) +#define bFM4_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x42DEC28CUL)) +#define bFM4_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x42DEC290UL)) +#define bFM4_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x42DEC294UL)) +#define bFM4_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x42DEC2A0UL)) +#define bFM4_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x42DEC2A4UL)) +#define bFM4_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x42DEC2A8UL)) +#define bFM4_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x42DEC2ACUL)) +#define bFM4_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x42DEC2B0UL)) +#define bFM4_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x42DEC2B4UL)) +#define bFM4_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x42DEC2C8UL)) +#define bFM4_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x42DEC2CCUL)) +#define bFM4_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x42DEC2D0UL)) +#define bFM4_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x42DEC2D4UL)) +#define bFM4_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x42DEC2E0UL)) +#define bFM4_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x42DEC2E4UL)) +#define bFM4_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x42DEC2E8UL)) +#define bFM4_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x42DEC2ECUL)) +#define bFM4_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x42DEC2F0UL)) +#define bFM4_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x42DEC2F4UL)) +#define bFM4_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x42DEC300UL)) +#define bFM4_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x42DEC304UL)) +#define bFM4_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x42DEC308UL)) +#define bFM4_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x42DEC30CUL)) +#define bFM4_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x42DEC310UL)) +#define bFM4_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x42DEC314UL)) +#define bFM4_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x42DEC318UL)) +#define bFM4_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x42DEC31CUL)) +#define bFM4_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x42DEC320UL)) +#define bFM4_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x42DEC324UL)) +#define bFM4_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x42DEC328UL)) +#define bFM4_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x42DEC32CUL)) +#define bFM4_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x42DEC330UL)) +#define bFM4_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x42DEC334UL)) +#define bFM4_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x42DEC338UL)) +#define bFM4_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x42DEC33CUL)) +#define bFM4_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x42DEC340UL)) +#define bFM4_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x42DEC344UL)) +#define bFM4_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x42DEC348UL)) +#define bFM4_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x42DEC34CUL)) +#define bFM4_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x42DEC350UL)) +#define bFM4_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x42DEC354UL)) +#define bFM4_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x42DEC358UL)) +#define bFM4_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x42DEC35CUL)) +#define bFM4_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x42DEC360UL)) +#define bFM4_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x42DEC364UL)) +#define bFM4_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x42DEC368UL)) +#define bFM4_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x42DEC36CUL)) +#define bFM4_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x42DEC370UL)) +#define bFM4_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x42DEC374UL)) +#define bFM4_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x42DEC378UL)) +#define bFM4_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x42DEC37CUL)) +#define bFM4_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x42DEC390UL)) +#define bFM4_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x42DEC394UL)) +#define bFM4_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x42DEC398UL)) +#define bFM4_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x42DEC39CUL)) +#define bFM4_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x42DEC3A0UL)) +#define bFM4_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x42DEC3A4UL)) +#define bFM4_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x42DEC3A8UL)) +#define bFM4_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x42DEC3ACUL)) +#define bFM4_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x42DEC3B0UL)) +#define bFM4_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x42DEC3B4UL)) +#define bFM4_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x42DEC3B8UL)) +#define bFM4_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x42DEC3BCUL)) +#define bFM4_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x42DEC3C0UL)) +#define bFM4_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x42DEC3C4UL)) +#define bFM4_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x42DEC3C8UL)) +#define bFM4_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x42DEC3CCUL)) +#define bFM4_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x42DEC3D0UL)) +#define bFM4_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x42DEC3D4UL)) +#define bFM4_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x42DEC3D8UL)) +#define bFM4_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x42DEC3DCUL)) +#define bFM4_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x42DEC3E0UL)) +#define bFM4_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x42DEC3E4UL)) +#define bFM4_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x42DEC3E8UL)) +#define bFM4_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x42DEC3ECUL)) +#define bFM4_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x42DEC400UL)) +#define bFM4_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x42DEC404UL)) +#define bFM4_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x42DEC408UL)) +#define bFM4_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x42DEC40CUL)) +#define bFM4_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x42DEC410UL)) +#define bFM4_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x42DEC414UL)) +#define bFM4_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x42DEC418UL)) +#define bFM4_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x42DEC41CUL)) +#define bFM4_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x42DEC420UL)) +#define bFM4_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x42DEC424UL)) +#define bFM4_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x42DEC428UL)) +#define bFM4_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x42DEC42CUL)) +#define bFM4_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x42DEC430UL)) +#define bFM4_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x42DEC434UL)) +#define bFM4_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x42DEC438UL)) +#define bFM4_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x42DEC43CUL)) +#define bFM4_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x42DEC440UL)) +#define bFM4_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x42DEC444UL)) +#define bFM4_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x42DEC448UL)) +#define bFM4_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x42DEC44CUL)) +#define bFM4_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x42DEC450UL)) +#define bFM4_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x42DEC454UL)) +#define bFM4_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x42DEC458UL)) +#define bFM4_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x42DEC45CUL)) +#define bFM4_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x42DEC460UL)) +#define bFM4_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x42DEC464UL)) +#define bFM4_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x42DEC468UL)) +#define bFM4_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x42DEC46CUL)) +#define bFM4_GPIO_EPFR08_RTS5E0 *((volatile unsigned int*)(0x42DEC470UL)) +#define bFM4_GPIO_EPFR08_RTS5E1 *((volatile unsigned int*)(0x42DEC474UL)) +#define bFM4_GPIO_EPFR08_CTS5S0 *((volatile unsigned int*)(0x42DEC478UL)) +#define bFM4_GPIO_EPFR08_CTS5S1 *((volatile unsigned int*)(0x42DEC47CUL)) +#define bFM4_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x42DEC480UL)) +#define bFM4_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x42DEC484UL)) +#define bFM4_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x42DEC488UL)) +#define bFM4_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x42DEC48CUL)) +#define bFM4_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x42DEC490UL)) +#define bFM4_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x42DEC494UL)) +#define bFM4_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x42DEC498UL)) +#define bFM4_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x42DEC49CUL)) +#define bFM4_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x42DEC4A0UL)) +#define bFM4_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x42DEC4A4UL)) +#define bFM4_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x42DEC4A8UL)) +#define bFM4_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x42DEC4ACUL)) +#define bFM4_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x42DEC4B0UL)) +#define bFM4_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x42DEC4B4UL)) +#define bFM4_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x42DEC4B8UL)) +#define bFM4_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x42DEC4BCUL)) +#define bFM4_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x42DEC4C0UL)) +#define bFM4_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x42DEC4C4UL)) +#define bFM4_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x42DEC4C8UL)) +#define bFM4_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x42DEC4CCUL)) +#define bFM4_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x42DEC4D0UL)) +#define bFM4_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x42DEC4D4UL)) +#define bFM4_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x42DEC4D8UL)) +#define bFM4_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x42DEC4DCUL)) +#define bFM4_GPIO_EPFR09_CRX0S0 *((volatile unsigned int*)(0x42DEC4E0UL)) +#define bFM4_GPIO_EPFR09_CRX0S1 *((volatile unsigned int*)(0x42DEC4E4UL)) +#define bFM4_GPIO_EPFR09_CTX0E0 *((volatile unsigned int*)(0x42DEC4E8UL)) +#define bFM4_GPIO_EPFR09_CTX0E1 *((volatile unsigned int*)(0x42DEC4ECUL)) +#define bFM4_GPIO_EPFR09_CRX1S0 *((volatile unsigned int*)(0x42DEC4F0UL)) +#define bFM4_GPIO_EPFR09_CRX1S1 *((volatile unsigned int*)(0x42DEC4F4UL)) +#define bFM4_GPIO_EPFR09_CTX1E0 *((volatile unsigned int*)(0x42DEC4F8UL)) +#define bFM4_GPIO_EPFR09_CTX1E1 *((volatile unsigned int*)(0x42DEC4FCUL)) +#define bFM4_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x42DEC500UL)) +#define bFM4_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x42DEC504UL)) +#define bFM4_GPIO_EPFR10_UECLKE *((volatile unsigned int*)(0x42DEC508UL)) +#define bFM4_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x42DEC50CUL)) +#define bFM4_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x42DEC510UL)) +#define bFM4_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x42DEC514UL)) +#define bFM4_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x42DEC518UL)) +#define bFM4_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x42DEC51CUL)) +#define bFM4_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x42DEC520UL)) +#define bFM4_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x42DEC524UL)) +#define bFM4_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x42DEC528UL)) +#define bFM4_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x42DEC52CUL)) +#define bFM4_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x42DEC530UL)) +#define bFM4_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x42DEC534UL)) +#define bFM4_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x42DEC538UL)) +#define bFM4_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x42DEC53CUL)) +#define bFM4_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x42DEC540UL)) +#define bFM4_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x42DEC544UL)) +#define bFM4_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x42DEC548UL)) +#define bFM4_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x42DEC54CUL)) +#define bFM4_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x42DEC550UL)) +#define bFM4_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x42DEC554UL)) +#define bFM4_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x42DEC558UL)) +#define bFM4_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x42DEC55CUL)) +#define bFM4_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x42DEC560UL)) +#define bFM4_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x42DEC564UL)) +#define bFM4_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x42DEC568UL)) +#define bFM4_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x42DEC56CUL)) +#define bFM4_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x42DEC570UL)) +#define bFM4_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x42DEC574UL)) +#define bFM4_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x42DEC578UL)) +#define bFM4_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x42DEC57CUL)) +#define bFM4_GPIO_EPFR11_UEALEE *((volatile unsigned int*)(0x42DEC580UL)) +#define bFM4_GPIO_EPFR11_UECS0E *((volatile unsigned int*)(0x42DEC584UL)) +#define bFM4_GPIO_EPFR11_UEA01E *((volatile unsigned int*)(0x42DEC588UL)) +#define bFM4_GPIO_EPFR11_UEA02E *((volatile unsigned int*)(0x42DEC58CUL)) +#define bFM4_GPIO_EPFR11_UEA03E *((volatile unsigned int*)(0x42DEC590UL)) +#define bFM4_GPIO_EPFR11_UEA04E *((volatile unsigned int*)(0x42DEC594UL)) +#define bFM4_GPIO_EPFR11_UEA05E *((volatile unsigned int*)(0x42DEC598UL)) +#define bFM4_GPIO_EPFR11_UEA06E *((volatile unsigned int*)(0x42DEC59CUL)) +#define bFM4_GPIO_EPFR11_UEA07E *((volatile unsigned int*)(0x42DEC5A0UL)) +#define bFM4_GPIO_EPFR11_UED00B *((volatile unsigned int*)(0x42DEC5A4UL)) +#define bFM4_GPIO_EPFR11_UED01B *((volatile unsigned int*)(0x42DEC5A8UL)) +#define bFM4_GPIO_EPFR11_UED02B *((volatile unsigned int*)(0x42DEC5ACUL)) +#define bFM4_GPIO_EPFR11_UED03B *((volatile unsigned int*)(0x42DEC5B0UL)) +#define bFM4_GPIO_EPFR11_UED04B *((volatile unsigned int*)(0x42DEC5B4UL)) +#define bFM4_GPIO_EPFR11_UED05B *((volatile unsigned int*)(0x42DEC5B8UL)) +#define bFM4_GPIO_EPFR11_UED06B *((volatile unsigned int*)(0x42DEC5BCUL)) +#define bFM4_GPIO_EPFR11_UED07B *((volatile unsigned int*)(0x42DEC5C0UL)) +#define bFM4_GPIO_EPFR11_UED08B *((volatile unsigned int*)(0x42DEC5C4UL)) +#define bFM4_GPIO_EPFR11_UED09B *((volatile unsigned int*)(0x42DEC5C8UL)) +#define bFM4_GPIO_EPFR11_UED10B *((volatile unsigned int*)(0x42DEC5CCUL)) +#define bFM4_GPIO_EPFR11_UED11B *((volatile unsigned int*)(0x42DEC5D0UL)) +#define bFM4_GPIO_EPFR11_UED12B *((volatile unsigned int*)(0x42DEC5D4UL)) +#define bFM4_GPIO_EPFR11_UED13B *((volatile unsigned int*)(0x42DEC5D8UL)) +#define bFM4_GPIO_EPFR11_UED14B *((volatile unsigned int*)(0x42DEC5DCUL)) +#define bFM4_GPIO_EPFR11_UED15B *((volatile unsigned int*)(0x42DEC5E0UL)) +#define bFM4_GPIO_EPFR11_UERLC *((volatile unsigned int*)(0x42DEC5E4UL)) +#define bFM4_GPIO_EPFR12_TIOA8E0 *((volatile unsigned int*)(0x42DEC608UL)) +#define bFM4_GPIO_EPFR12_TIOA8E1 *((volatile unsigned int*)(0x42DEC60CUL)) +#define bFM4_GPIO_EPFR12_TIOB8S0 *((volatile unsigned int*)(0x42DEC610UL)) +#define bFM4_GPIO_EPFR12_TIOB8S1 *((volatile unsigned int*)(0x42DEC614UL)) +#define bFM4_GPIO_EPFR12_TIOA9S0 *((volatile unsigned int*)(0x42DEC620UL)) +#define bFM4_GPIO_EPFR12_TIOA9S1 *((volatile unsigned int*)(0x42DEC624UL)) +#define bFM4_GPIO_EPFR12_TIOA9E0 *((volatile unsigned int*)(0x42DEC628UL)) +#define bFM4_GPIO_EPFR12_TIOA9E1 *((volatile unsigned int*)(0x42DEC62CUL)) +#define bFM4_GPIO_EPFR12_TIOB9S0 *((volatile unsigned int*)(0x42DEC630UL)) +#define bFM4_GPIO_EPFR12_TIOB9S1 *((volatile unsigned int*)(0x42DEC634UL)) +#define bFM4_GPIO_EPFR12_TIOA10E0 *((volatile unsigned int*)(0x42DEC648UL)) +#define bFM4_GPIO_EPFR12_TIOA10E1 *((volatile unsigned int*)(0x42DEC64CUL)) +#define bFM4_GPIO_EPFR12_TIOB10S0 *((volatile unsigned int*)(0x42DEC650UL)) +#define bFM4_GPIO_EPFR12_TIOB10S1 *((volatile unsigned int*)(0x42DEC654UL)) +#define bFM4_GPIO_EPFR12_TIOA11S0 *((volatile unsigned int*)(0x42DEC660UL)) +#define bFM4_GPIO_EPFR12_TIOA11S1 *((volatile unsigned int*)(0x42DEC664UL)) +#define bFM4_GPIO_EPFR12_TIOA11E0 *((volatile unsigned int*)(0x42DEC668UL)) +#define bFM4_GPIO_EPFR12_TIOA11E1 *((volatile unsigned int*)(0x42DEC66CUL)) +#define bFM4_GPIO_EPFR12_TIOB11S0 *((volatile unsigned int*)(0x42DEC670UL)) +#define bFM4_GPIO_EPFR12_TIOB11S1 *((volatile unsigned int*)(0x42DEC674UL)) +#define bFM4_GPIO_EPFR13_TIOA12E0 *((volatile unsigned int*)(0x42DEC688UL)) +#define bFM4_GPIO_EPFR13_TIOA12E1 *((volatile unsigned int*)(0x42DEC68CUL)) +#define bFM4_GPIO_EPFR13_TIOB12S0 *((volatile unsigned int*)(0x42DEC690UL)) +#define bFM4_GPIO_EPFR13_TIOB12S1 *((volatile unsigned int*)(0x42DEC694UL)) +#define bFM4_GPIO_EPFR13_TIOA13S0 *((volatile unsigned int*)(0x42DEC6A0UL)) +#define bFM4_GPIO_EPFR13_TIOA13S1 *((volatile unsigned int*)(0x42DEC6A4UL)) +#define bFM4_GPIO_EPFR13_TIOA13E0 *((volatile unsigned int*)(0x42DEC6A8UL)) +#define bFM4_GPIO_EPFR13_TIOA13E1 *((volatile unsigned int*)(0x42DEC6ACUL)) +#define bFM4_GPIO_EPFR13_TIOB13S0 *((volatile unsigned int*)(0x42DEC6B0UL)) +#define bFM4_GPIO_EPFR13_TIOB13S1 *((volatile unsigned int*)(0x42DEC6B4UL)) +#define bFM4_GPIO_EPFR13_TIOA14E0 *((volatile unsigned int*)(0x42DEC6C8UL)) +#define bFM4_GPIO_EPFR13_TIOA14E1 *((volatile unsigned int*)(0x42DEC6CCUL)) +#define bFM4_GPIO_EPFR13_TIOB14S0 *((volatile unsigned int*)(0x42DEC6D0UL)) +#define bFM4_GPIO_EPFR13_TIOB14S1 *((volatile unsigned int*)(0x42DEC6D4UL)) +#define bFM4_GPIO_EPFR13_TIOA15S0 *((volatile unsigned int*)(0x42DEC6E0UL)) +#define bFM4_GPIO_EPFR13_TIOA15S1 *((volatile unsigned int*)(0x42DEC6E4UL)) +#define bFM4_GPIO_EPFR13_TIOA15E0 *((volatile unsigned int*)(0x42DEC6E8UL)) +#define bFM4_GPIO_EPFR13_TIOA15E1 *((volatile unsigned int*)(0x42DEC6ECUL)) +#define bFM4_GPIO_EPFR13_TIOB15S0 *((volatile unsigned int*)(0x42DEC6F0UL)) +#define bFM4_GPIO_EPFR13_TIOB15S1 *((volatile unsigned int*)(0x42DEC6F4UL)) +#define bFM4_GPIO_EPFR14_QAIN2S0 *((volatile unsigned int*)(0x42DEC700UL)) +#define bFM4_GPIO_EPFR14_QAIN2S1 *((volatile unsigned int*)(0x42DEC704UL)) +#define bFM4_GPIO_EPFR14_QBIN2S0 *((volatile unsigned int*)(0x42DEC708UL)) +#define bFM4_GPIO_EPFR14_QBIN2S1 *((volatile unsigned int*)(0x42DEC70CUL)) +#define bFM4_GPIO_EPFR14_QZIN2S0 *((volatile unsigned int*)(0x42DEC710UL)) +#define bFM4_GPIO_EPFR14_QZIN2S1 *((volatile unsigned int*)(0x42DEC714UL)) +#define bFM4_GPIO_EPFR14_E_TD0E *((volatile unsigned int*)(0x42DEC748UL)) +#define bFM4_GPIO_EPFR14_E_TD1E *((volatile unsigned int*)(0x42DEC74CUL)) +#define bFM4_GPIO_EPFR14_E_TE0E *((volatile unsigned int*)(0x42DEC750UL)) +#define bFM4_GPIO_EPFR14_E_TE1E *((volatile unsigned int*)(0x42DEC754UL)) +#define bFM4_GPIO_EPFR14_E_MC0E *((volatile unsigned int*)(0x42DEC758UL)) +#define bFM4_GPIO_EPFR14_E_MC1B *((volatile unsigned int*)(0x42DEC75CUL)) +#define bFM4_GPIO_EPFR14_E_MD0B *((volatile unsigned int*)(0x42DEC760UL)) +#define bFM4_GPIO_EPFR14_E_MD1B *((volatile unsigned int*)(0x42DEC764UL)) +#define bFM4_GPIO_EPFR14_E_CKE *((volatile unsigned int*)(0x42DEC768UL)) +#define bFM4_GPIO_EPFR14_E_PSE *((volatile unsigned int*)(0x42DEC76CUL)) +#define bFM4_GPIO_EPFR14_E_SPLC0 *((volatile unsigned int*)(0x42DEC770UL)) +#define bFM4_GPIO_EPFR14_E_SPLC1 *((volatile unsigned int*)(0x42DEC774UL)) +#define bFM4_GPIO_EPFR15_EINT16S0 *((volatile unsigned int*)(0x42DEC780UL)) +#define bFM4_GPIO_EPFR15_EINT16S1 *((volatile unsigned int*)(0x42DEC784UL)) +#define bFM4_GPIO_EPFR15_EINT17S0 *((volatile unsigned int*)(0x42DEC788UL)) +#define bFM4_GPIO_EPFR15_EINT17S1 *((volatile unsigned int*)(0x42DEC78CUL)) +#define bFM4_GPIO_EPFR15_EINT18S0 *((volatile unsigned int*)(0x42DEC790UL)) +#define bFM4_GPIO_EPFR15_EINT18S1 *((volatile unsigned int*)(0x42DEC794UL)) +#define bFM4_GPIO_EPFR15_EINT19S0 *((volatile unsigned int*)(0x42DEC798UL)) +#define bFM4_GPIO_EPFR15_EINT19S1 *((volatile unsigned int*)(0x42DEC79CUL)) +#define bFM4_GPIO_EPFR15_EINT20S0 *((volatile unsigned int*)(0x42DEC7A0UL)) +#define bFM4_GPIO_EPFR15_EINT20S1 *((volatile unsigned int*)(0x42DEC7A4UL)) +#define bFM4_GPIO_EPFR15_EINT21S0 *((volatile unsigned int*)(0x42DEC7A8UL)) +#define bFM4_GPIO_EPFR15_EINT21S1 *((volatile unsigned int*)(0x42DEC7ACUL)) +#define bFM4_GPIO_EPFR15_EINT22S0 *((volatile unsigned int*)(0x42DEC7B0UL)) +#define bFM4_GPIO_EPFR15_EINT22S1 *((volatile unsigned int*)(0x42DEC7B4UL)) +#define bFM4_GPIO_EPFR15_EINT23S0 *((volatile unsigned int*)(0x42DEC7B8UL)) +#define bFM4_GPIO_EPFR15_EINT23S1 *((volatile unsigned int*)(0x42DEC7BCUL)) +#define bFM4_GPIO_EPFR15_EINT24S0 *((volatile unsigned int*)(0x42DEC7C0UL)) +#define bFM4_GPIO_EPFR15_EINT24S1 *((volatile unsigned int*)(0x42DEC7C4UL)) +#define bFM4_GPIO_EPFR15_EINT25S0 *((volatile unsigned int*)(0x42DEC7C8UL)) +#define bFM4_GPIO_EPFR15_EINT25S1 *((volatile unsigned int*)(0x42DEC7CCUL)) +#define bFM4_GPIO_EPFR15_EINT26S0 *((volatile unsigned int*)(0x42DEC7D0UL)) +#define bFM4_GPIO_EPFR15_EINT26S1 *((volatile unsigned int*)(0x42DEC7D4UL)) +#define bFM4_GPIO_EPFR15_EINT27S0 *((volatile unsigned int*)(0x42DEC7D8UL)) +#define bFM4_GPIO_EPFR15_EINT27S1 *((volatile unsigned int*)(0x42DEC7DCUL)) +#define bFM4_GPIO_EPFR15_EINT28S0 *((volatile unsigned int*)(0x42DEC7E0UL)) +#define bFM4_GPIO_EPFR15_EINT28S1 *((volatile unsigned int*)(0x42DEC7E4UL)) +#define bFM4_GPIO_EPFR15_EINT29S0 *((volatile unsigned int*)(0x42DEC7E8UL)) +#define bFM4_GPIO_EPFR15_EINT29S1 *((volatile unsigned int*)(0x42DEC7ECUL)) +#define bFM4_GPIO_EPFR15_EINT30S0 *((volatile unsigned int*)(0x42DEC7F0UL)) +#define bFM4_GPIO_EPFR15_EINT30S1 *((volatile unsigned int*)(0x42DEC7F4UL)) +#define bFM4_GPIO_EPFR15_EINT31S0 *((volatile unsigned int*)(0x42DEC7F8UL)) +#define bFM4_GPIO_EPFR15_EINT31S1 *((volatile unsigned int*)(0x42DEC7FCUL)) +#define bFM4_GPIO_EPFR16_SCS6B0 *((volatile unsigned int*)(0x42DEC800UL)) +#define bFM4_GPIO_EPFR16_SCS6B1 *((volatile unsigned int*)(0x42DEC804UL)) +#define bFM4_GPIO_EPFR16_SCS7B0 *((volatile unsigned int*)(0x42DEC808UL)) +#define bFM4_GPIO_EPFR16_SCS7B1 *((volatile unsigned int*)(0x42DEC80CUL)) +#define bFM4_GPIO_EPFR16_SIN8S0 *((volatile unsigned int*)(0x42DEC810UL)) +#define bFM4_GPIO_EPFR16_SIN8S1 *((volatile unsigned int*)(0x42DEC814UL)) +#define bFM4_GPIO_EPFR16_SOT8B0 *((volatile unsigned int*)(0x42DEC818UL)) +#define bFM4_GPIO_EPFR16_SOT8B1 *((volatile unsigned int*)(0x42DEC81CUL)) +#define bFM4_GPIO_EPFR16_SCK8B0 *((volatile unsigned int*)(0x42DEC820UL)) +#define bFM4_GPIO_EPFR16_SCK8B1 *((volatile unsigned int*)(0x42DEC824UL)) +#define bFM4_GPIO_EPFR16_SIN9S0 *((volatile unsigned int*)(0x42DEC828UL)) +#define bFM4_GPIO_EPFR16_SIN9S1 *((volatile unsigned int*)(0x42DEC82CUL)) +#define bFM4_GPIO_EPFR16_SOT9B0 *((volatile unsigned int*)(0x42DEC830UL)) +#define bFM4_GPIO_EPFR16_SOT9B1 *((volatile unsigned int*)(0x42DEC834UL)) +#define bFM4_GPIO_EPFR16_SCK9B0 *((volatile unsigned int*)(0x42DEC838UL)) +#define bFM4_GPIO_EPFR16_SCK9B1 *((volatile unsigned int*)(0x42DEC83CUL)) +#define bFM4_GPIO_EPFR16_SIN10S0 *((volatile unsigned int*)(0x42DEC840UL)) +#define bFM4_GPIO_EPFR16_SIN10S1 *((volatile unsigned int*)(0x42DEC844UL)) +#define bFM4_GPIO_EPFR16_SOT10B0 *((volatile unsigned int*)(0x42DEC848UL)) +#define bFM4_GPIO_EPFR16_SOT10B1 *((volatile unsigned int*)(0x42DEC84CUL)) +#define bFM4_GPIO_EPFR16_SCK10B0 *((volatile unsigned int*)(0x42DEC850UL)) +#define bFM4_GPIO_EPFR16_SCK10B1 *((volatile unsigned int*)(0x42DEC854UL)) +#define bFM4_GPIO_EPFR16_SIN11S0 *((volatile unsigned int*)(0x42DEC858UL)) +#define bFM4_GPIO_EPFR16_SIN11S1 *((volatile unsigned int*)(0x42DEC85CUL)) +#define bFM4_GPIO_EPFR16_SOT11B0 *((volatile unsigned int*)(0x42DEC860UL)) +#define bFM4_GPIO_EPFR16_SOT11B1 *((volatile unsigned int*)(0x42DEC864UL)) +#define bFM4_GPIO_EPFR16_SCK11B0 *((volatile unsigned int*)(0x42DEC868UL)) +#define bFM4_GPIO_EPFR16_SCK11B1 *((volatile unsigned int*)(0x42DEC86CUL)) +#define bFM4_GPIO_EPFR16_SFMPAC *((volatile unsigned int*)(0x42DEC870UL)) +#define bFM4_GPIO_EPFR16_SFMPBC *((volatile unsigned int*)(0x42DEC874UL)) +#define bFM4_GPIO_EPFR17_SIN12S0 *((volatile unsigned int*)(0x42DEC890UL)) +#define bFM4_GPIO_EPFR17_SIN12S1 *((volatile unsigned int*)(0x42DEC894UL)) +#define bFM4_GPIO_EPFR17_SOT12B0 *((volatile unsigned int*)(0x42DEC898UL)) +#define bFM4_GPIO_EPFR17_SOT12B1 *((volatile unsigned int*)(0x42DEC89CUL)) +#define bFM4_GPIO_EPFR17_SCK12B0 *((volatile unsigned int*)(0x42DEC8A0UL)) +#define bFM4_GPIO_EPFR17_SCK12B1 *((volatile unsigned int*)(0x42DEC8A4UL)) +#define bFM4_GPIO_EPFR17_SIN13S0 *((volatile unsigned int*)(0x42DEC8A8UL)) +#define bFM4_GPIO_EPFR17_SIN13S1 *((volatile unsigned int*)(0x42DEC8ACUL)) +#define bFM4_GPIO_EPFR17_SOT13B0 *((volatile unsigned int*)(0x42DEC8B0UL)) +#define bFM4_GPIO_EPFR17_SOT13B1 *((volatile unsigned int*)(0x42DEC8B4UL)) +#define bFM4_GPIO_EPFR17_SCK13B0 *((volatile unsigned int*)(0x42DEC8B8UL)) +#define bFM4_GPIO_EPFR17_SCK13B1 *((volatile unsigned int*)(0x42DEC8BCUL)) +#define bFM4_GPIO_EPFR17_SIN14S0 *((volatile unsigned int*)(0x42DEC8C0UL)) +#define bFM4_GPIO_EPFR17_SIN14S1 *((volatile unsigned int*)(0x42DEC8C4UL)) +#define bFM4_GPIO_EPFR17_SOT14B0 *((volatile unsigned int*)(0x42DEC8C8UL)) +#define bFM4_GPIO_EPFR17_SOT14B1 *((volatile unsigned int*)(0x42DEC8CCUL)) +#define bFM4_GPIO_EPFR17_SCK14B0 *((volatile unsigned int*)(0x42DEC8D0UL)) +#define bFM4_GPIO_EPFR17_SCK14B1 *((volatile unsigned int*)(0x42DEC8D4UL)) +#define bFM4_GPIO_EPFR17_SIN15S0 *((volatile unsigned int*)(0x42DEC8D8UL)) +#define bFM4_GPIO_EPFR17_SIN15S1 *((volatile unsigned int*)(0x42DEC8DCUL)) +#define bFM4_GPIO_EPFR17_SOT15B0 *((volatile unsigned int*)(0x42DEC8E0UL)) +#define bFM4_GPIO_EPFR17_SOT15B1 *((volatile unsigned int*)(0x42DEC8E4UL)) +#define bFM4_GPIO_EPFR17_SCK15B0 *((volatile unsigned int*)(0x42DEC8E8UL)) +#define bFM4_GPIO_EPFR17_SCK15B1 *((volatile unsigned int*)(0x42DEC8ECUL)) +#define bFM4_GPIO_EPFR18_QAIN3S0 *((volatile unsigned int*)(0x42DEC910UL)) +#define bFM4_GPIO_EPFR18_QAIN3S1 *((volatile unsigned int*)(0x42DEC914UL)) +#define bFM4_GPIO_EPFR18_QBIN3S0 *((volatile unsigned int*)(0x42DEC918UL)) +#define bFM4_GPIO_EPFR18_QBIN3S1 *((volatile unsigned int*)(0x42DEC91CUL)) +#define bFM4_GPIO_EPFR18_QZIN3S0 *((volatile unsigned int*)(0x42DEC920UL)) +#define bFM4_GPIO_EPFR18_QZIN3S1 *((volatile unsigned int*)(0x42DEC924UL)) +#define bFM4_GPIO_EPFR18_SDCLKE0 *((volatile unsigned int*)(0x42DEC938UL)) +#define bFM4_GPIO_EPFR18_SDCLKE1 *((volatile unsigned int*)(0x42DEC93CUL)) +#define bFM4_GPIO_EPFR18_SDCMDB0 *((volatile unsigned int*)(0x42DEC940UL)) +#define bFM4_GPIO_EPFR18_SDCMDB1 *((volatile unsigned int*)(0x42DEC944UL)) +#define bFM4_GPIO_EPFR18_SDDATA0B0 *((volatile unsigned int*)(0x42DEC948UL)) +#define bFM4_GPIO_EPFR18_SDDATA0B1 *((volatile unsigned int*)(0x42DEC94CUL)) +#define bFM4_GPIO_EPFR18_SDDATA1B0 *((volatile unsigned int*)(0x42DEC950UL)) +#define bFM4_GPIO_EPFR18_SDDATA1B1 *((volatile unsigned int*)(0x42DEC954UL)) +#define bFM4_GPIO_EPFR18_SDDATA2B0 *((volatile unsigned int*)(0x42DEC958UL)) +#define bFM4_GPIO_EPFR18_SDDATA2B1 *((volatile unsigned int*)(0x42DEC95CUL)) +#define bFM4_GPIO_EPFR18_SDDATA3B0 *((volatile unsigned int*)(0x42DEC960UL)) +#define bFM4_GPIO_EPFR18_SDDATA3B1 *((volatile unsigned int*)(0x42DEC964UL)) +#define bFM4_GPIO_EPFR18_SDCDS0 *((volatile unsigned int*)(0x42DEC968UL)) +#define bFM4_GPIO_EPFR18_SDCDS1 *((volatile unsigned int*)(0x42DEC96CUL)) +#define bFM4_GPIO_EPFR18_SDWPS0 *((volatile unsigned int*)(0x42DEC970UL)) +#define bFM4_GPIO_EPFR18_SDWPS1 *((volatile unsigned int*)(0x42DEC974UL)) +#define bFM4_GPIO_EPFR20_UESMCKE *((volatile unsigned int*)(0x42DECA00UL)) +#define bFM4_GPIO_EPFR20_UESMCEE *((volatile unsigned int*)(0x42DECA04UL)) +#define bFM4_GPIO_EPFR20_UERASE *((volatile unsigned int*)(0x42DECA08UL)) +#define bFM4_GPIO_EPFR20_UECASE *((volatile unsigned int*)(0x42DECA0CUL)) +#define bFM4_GPIO_EPFR20_UEDWEXE *((volatile unsigned int*)(0x42DECA10UL)) +#define bFM4_GPIO_EPFR20_UECSXE *((volatile unsigned int*)(0x42DECA14UL)) +#define bFM4_GPIO_EPFR20_UEDQM2E *((volatile unsigned int*)(0x42DECA18UL)) +#define bFM4_GPIO_EPFR20_UEDQM3E *((volatile unsigned int*)(0x42DECA1CUL)) +#define bFM4_GPIO_EPFR20_UEDTHHB *((volatile unsigned int*)(0x42DECA20UL)) +#define bFM4_GPIO_EPFR20_UED16B *((volatile unsigned int*)(0x42DECA24UL)) +#define bFM4_GPIO_EPFR20_UED17B *((volatile unsigned int*)(0x42DECA28UL)) +#define bFM4_GPIO_EPFR20_UED18B *((volatile unsigned int*)(0x42DECA2CUL)) +#define bFM4_GPIO_EPFR20_UED19B *((volatile unsigned int*)(0x42DECA30UL)) +#define bFM4_GPIO_EPFR20_UED20B *((volatile unsigned int*)(0x42DECA34UL)) +#define bFM4_GPIO_EPFR20_UED21B *((volatile unsigned int*)(0x42DECA38UL)) +#define bFM4_GPIO_EPFR20_UED22B *((volatile unsigned int*)(0x42DECA3CUL)) +#define bFM4_GPIO_EPFR20_UED23B *((volatile unsigned int*)(0x42DECA40UL)) +#define bFM4_GPIO_EPFR20_UED24B *((volatile unsigned int*)(0x42DECA44UL)) +#define bFM4_GPIO_EPFR20_UED25B *((volatile unsigned int*)(0x42DECA48UL)) +#define bFM4_GPIO_EPFR20_UED26B *((volatile unsigned int*)(0x42DECA4CUL)) +#define bFM4_GPIO_EPFR20_UED27B *((volatile unsigned int*)(0x42DECA50UL)) +#define bFM4_GPIO_EPFR20_UED28B *((volatile unsigned int*)(0x42DECA54UL)) +#define bFM4_GPIO_EPFR20_UED29B *((volatile unsigned int*)(0x42DECA58UL)) +#define bFM4_GPIO_EPFR20_UED30B *((volatile unsigned int*)(0x42DECA5CUL)) +#define bFM4_GPIO_EPFR20_UED31B *((volatile unsigned int*)(0x42DECA60UL)) +#define bFM4_GPIO_PZR0_P00 *((volatile unsigned int*)(0x42DEE000UL)) +#define bFM4_GPIO_PZR0_P01 *((volatile unsigned int*)(0x42DEE004UL)) +#define bFM4_GPIO_PZR0_P02 *((volatile unsigned int*)(0x42DEE008UL)) +#define bFM4_GPIO_PZR0_P03 *((volatile unsigned int*)(0x42DEE00CUL)) +#define bFM4_GPIO_PZR0_P04 *((volatile unsigned int*)(0x42DEE010UL)) +#define bFM4_GPIO_PZR0_P05 *((volatile unsigned int*)(0x42DEE014UL)) +#define bFM4_GPIO_PZR0_P06 *((volatile unsigned int*)(0x42DEE018UL)) +#define bFM4_GPIO_PZR0_P07 *((volatile unsigned int*)(0x42DEE01CUL)) +#define bFM4_GPIO_PZR0_P08 *((volatile unsigned int*)(0x42DEE020UL)) +#define bFM4_GPIO_PZR0_P09 *((volatile unsigned int*)(0x42DEE024UL)) +#define bFM4_GPIO_PZR0_P0A *((volatile unsigned int*)(0x42DEE028UL)) +#define bFM4_GPIO_PZR0_P0B *((volatile unsigned int*)(0x42DEE02CUL)) +#define bFM4_GPIO_PZR0_P0C *((volatile unsigned int*)(0x42DEE030UL)) +#define bFM4_GPIO_PZR0_P0D *((volatile unsigned int*)(0x42DEE034UL)) +#define bFM4_GPIO_PZR0_P0E *((volatile unsigned int*)(0x42DEE038UL)) +#define bFM4_GPIO_PZR0_P0F *((volatile unsigned int*)(0x42DEE03CUL)) +#define bFM4_GPIO_PZR1_P10 *((volatile unsigned int*)(0x42DEE080UL)) +#define bFM4_GPIO_PZR1_P11 *((volatile unsigned int*)(0x42DEE084UL)) +#define bFM4_GPIO_PZR1_P12 *((volatile unsigned int*)(0x42DEE088UL)) +#define bFM4_GPIO_PZR1_P13 *((volatile unsigned int*)(0x42DEE08CUL)) +#define bFM4_GPIO_PZR1_P14 *((volatile unsigned int*)(0x42DEE090UL)) +#define bFM4_GPIO_PZR1_P15 *((volatile unsigned int*)(0x42DEE094UL)) +#define bFM4_GPIO_PZR1_P16 *((volatile unsigned int*)(0x42DEE098UL)) +#define bFM4_GPIO_PZR1_P17 *((volatile unsigned int*)(0x42DEE09CUL)) +#define bFM4_GPIO_PZR1_P18 *((volatile unsigned int*)(0x42DEE0A0UL)) +#define bFM4_GPIO_PZR1_P19 *((volatile unsigned int*)(0x42DEE0A4UL)) +#define bFM4_GPIO_PZR1_P1A *((volatile unsigned int*)(0x42DEE0A8UL)) +#define bFM4_GPIO_PZR1_P1B *((volatile unsigned int*)(0x42DEE0ACUL)) +#define bFM4_GPIO_PZR1_P1C *((volatile unsigned int*)(0x42DEE0B0UL)) +#define bFM4_GPIO_PZR1_P1D *((volatile unsigned int*)(0x42DEE0B4UL)) +#define bFM4_GPIO_PZR1_P1E *((volatile unsigned int*)(0x42DEE0B8UL)) +#define bFM4_GPIO_PZR1_P1F *((volatile unsigned int*)(0x42DEE0BCUL)) +#define bFM4_GPIO_PZR2_P20 *((volatile unsigned int*)(0x42DEE100UL)) +#define bFM4_GPIO_PZR2_P21 *((volatile unsigned int*)(0x42DEE104UL)) +#define bFM4_GPIO_PZR2_P22 *((volatile unsigned int*)(0x42DEE108UL)) +#define bFM4_GPIO_PZR2_P23 *((volatile unsigned int*)(0x42DEE10CUL)) +#define bFM4_GPIO_PZR2_P24 *((volatile unsigned int*)(0x42DEE110UL)) +#define bFM4_GPIO_PZR2_P25 *((volatile unsigned int*)(0x42DEE114UL)) +#define bFM4_GPIO_PZR2_P26 *((volatile unsigned int*)(0x42DEE118UL)) +#define bFM4_GPIO_PZR2_P27 *((volatile unsigned int*)(0x42DEE11CUL)) +#define bFM4_GPIO_PZR3_P30 *((volatile unsigned int*)(0x42DEE180UL)) +#define bFM4_GPIO_PZR3_P31 *((volatile unsigned int*)(0x42DEE184UL)) +#define bFM4_GPIO_PZR3_P32 *((volatile unsigned int*)(0x42DEE188UL)) +#define bFM4_GPIO_PZR3_P33 *((volatile unsigned int*)(0x42DEE18CUL)) +#define bFM4_GPIO_PZR3_P34 *((volatile unsigned int*)(0x42DEE190UL)) +#define bFM4_GPIO_PZR3_P35 *((volatile unsigned int*)(0x42DEE194UL)) +#define bFM4_GPIO_PZR3_P36 *((volatile unsigned int*)(0x42DEE198UL)) +#define bFM4_GPIO_PZR3_P37 *((volatile unsigned int*)(0x42DEE19CUL)) +#define bFM4_GPIO_PZR3_P38 *((volatile unsigned int*)(0x42DEE1A0UL)) +#define bFM4_GPIO_PZR3_P39 *((volatile unsigned int*)(0x42DEE1A4UL)) +#define bFM4_GPIO_PZR3_P3A *((volatile unsigned int*)(0x42DEE1A8UL)) +#define bFM4_GPIO_PZR3_P3B *((volatile unsigned int*)(0x42DEE1ACUL)) +#define bFM4_GPIO_PZR3_P3C *((volatile unsigned int*)(0x42DEE1B0UL)) +#define bFM4_GPIO_PZR3_P3D *((volatile unsigned int*)(0x42DEE1B4UL)) +#define bFM4_GPIO_PZR3_P3E *((volatile unsigned int*)(0x42DEE1B8UL)) +#define bFM4_GPIO_PZR3_P3F *((volatile unsigned int*)(0x42DEE1BCUL)) +#define bFM4_GPIO_PZR4_P40 *((volatile unsigned int*)(0x42DEE200UL)) +#define bFM4_GPIO_PZR4_P41 *((volatile unsigned int*)(0x42DEE204UL)) +#define bFM4_GPIO_PZR4_P42 *((volatile unsigned int*)(0x42DEE208UL)) +#define bFM4_GPIO_PZR4_P43 *((volatile unsigned int*)(0x42DEE20CUL)) +#define bFM4_GPIO_PZR4_P44 *((volatile unsigned int*)(0x42DEE210UL)) +#define bFM4_GPIO_PZR4_P45 *((volatile unsigned int*)(0x42DEE214UL)) +#define bFM4_GPIO_PZR4_P46 *((volatile unsigned int*)(0x42DEE218UL)) +#define bFM4_GPIO_PZR4_P47 *((volatile unsigned int*)(0x42DEE21CUL)) +#define bFM4_GPIO_PZR4_P48 *((volatile unsigned int*)(0x42DEE220UL)) +#define bFM4_GPIO_PZR4_P49 *((volatile unsigned int*)(0x42DEE224UL)) +#define bFM4_GPIO_PZR4_P4A *((volatile unsigned int*)(0x42DEE228UL)) +#define bFM4_GPIO_PZR4_P4B *((volatile unsigned int*)(0x42DEE22CUL)) +#define bFM4_GPIO_PZR4_P4C *((volatile unsigned int*)(0x42DEE230UL)) +#define bFM4_GPIO_PZR4_P4D *((volatile unsigned int*)(0x42DEE234UL)) +#define bFM4_GPIO_PZR4_P4E *((volatile unsigned int*)(0x42DEE238UL)) +#define bFM4_GPIO_PZR5_P50 *((volatile unsigned int*)(0x42DEE280UL)) +#define bFM4_GPIO_PZR5_P51 *((volatile unsigned int*)(0x42DEE284UL)) +#define bFM4_GPIO_PZR5_P52 *((volatile unsigned int*)(0x42DEE288UL)) +#define bFM4_GPIO_PZR5_P53 *((volatile unsigned int*)(0x42DEE28CUL)) +#define bFM4_GPIO_PZR5_P54 *((volatile unsigned int*)(0x42DEE290UL)) +#define bFM4_GPIO_PZR5_P55 *((volatile unsigned int*)(0x42DEE294UL)) +#define bFM4_GPIO_PZR5_P56 *((volatile unsigned int*)(0x42DEE298UL)) +#define bFM4_GPIO_PZR5_P57 *((volatile unsigned int*)(0x42DEE29CUL)) +#define bFM4_GPIO_PZR5_P58 *((volatile unsigned int*)(0x42DEE2A0UL)) +#define bFM4_GPIO_PZR5_P59 *((volatile unsigned int*)(0x42DEE2A4UL)) +#define bFM4_GPIO_PZR5_P5A *((volatile unsigned int*)(0x42DEE2A8UL)) +#define bFM4_GPIO_PZR5_P5B *((volatile unsigned int*)(0x42DEE2ACUL)) +#define bFM4_GPIO_PZR6_P60 *((volatile unsigned int*)(0x42DEE300UL)) +#define bFM4_GPIO_PZR6_P61 *((volatile unsigned int*)(0x42DEE304UL)) +#define bFM4_GPIO_PZR6_P62 *((volatile unsigned int*)(0x42DEE308UL)) +#define bFM4_GPIO_PZR6_P63 *((volatile unsigned int*)(0x42DEE30CUL)) +#define bFM4_GPIO_PZR6_P64 *((volatile unsigned int*)(0x42DEE310UL)) +#define bFM4_GPIO_PZR6_P65 *((volatile unsigned int*)(0x42DEE314UL)) +#define bFM4_GPIO_PZR6_P66 *((volatile unsigned int*)(0x42DEE318UL)) +#define bFM4_GPIO_PZR6_P67 *((volatile unsigned int*)(0x42DEE31CUL)) +#define bFM4_GPIO_PZR6_P68 *((volatile unsigned int*)(0x42DEE320UL)) +#define bFM4_GPIO_PZR7_P70 *((volatile unsigned int*)(0x42DEE380UL)) +#define bFM4_GPIO_PZR7_P71 *((volatile unsigned int*)(0x42DEE384UL)) +#define bFM4_GPIO_PZR7_P72 *((volatile unsigned int*)(0x42DEE388UL)) +#define bFM4_GPIO_PZR7_P73 *((volatile unsigned int*)(0x42DEE38CUL)) +#define bFM4_GPIO_PZR7_P74 *((volatile unsigned int*)(0x42DEE390UL)) +#define bFM4_GPIO_PZR8_P80 *((volatile unsigned int*)(0x42DEE400UL)) +#define bFM4_GPIO_PZR8_P81 *((volatile unsigned int*)(0x42DEE404UL)) +#define bFM4_GPIO_PZRE_PE0 *((volatile unsigned int*)(0x42DEE700UL)) +#define bFM4_GPIO_PZRE_PE2 *((volatile unsigned int*)(0x42DEE708UL)) +#define bFM4_GPIO_PZRE_PE3 *((volatile unsigned int*)(0x42DEE70CUL)) + +/* Low voltage detection registers */ +#define bFM4_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) +#define bFM4_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) +#define bFM4_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) +#define bFM4_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) +#define bFM4_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) +#define bFM4_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) +#define bFM4_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) +#define bFM4_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) + +/* DS mode registers */ +#define bFM4_DS_RCK_CTL_RTCCKE *((volatile unsigned int*)(0x426A2080UL)) +#define bFM4_DS_PMD_CTL_RTCE *((volatile unsigned int*)(0x426B0000UL)) +#define bFM4_DS_WRFSR_WINITX *((volatile unsigned int*)(0x426B0080UL)) +#define bFM4_DS_WRFSR_WLVDH *((volatile unsigned int*)(0x426B0084UL)) +#define bFM4_DS_WIFSR_WRTCI *((volatile unsigned int*)(0x426B0100UL)) +#define bFM4_DS_WIFSR_WLVDI *((volatile unsigned int*)(0x426B0104UL)) +#define bFM4_DS_WIFSR_WUI0 *((volatile unsigned int*)(0x426B0108UL)) +#define bFM4_DS_WIFSR_WUI1 *((volatile unsigned int*)(0x426B010CUL)) +#define bFM4_DS_WIFSR_WUI2 *((volatile unsigned int*)(0x426B0110UL)) +#define bFM4_DS_WIFSR_WUI3 *((volatile unsigned int*)(0x426B0114UL)) +#define bFM4_DS_WIFSR_WUI4 *((volatile unsigned int*)(0x426B0118UL)) +#define bFM4_DS_WIFSR_WUI5 *((volatile unsigned int*)(0x426B011CUL)) +#define bFM4_DS_WIER_WRTCE *((volatile unsigned int*)(0x426B0180UL)) +#define bFM4_DS_WIER_WLVDE *((volatile unsigned int*)(0x426B0184UL)) +#define bFM4_DS_WIER_WUI1E *((volatile unsigned int*)(0x426B018CUL)) +#define bFM4_DS_WIER_WUI2E *((volatile unsigned int*)(0x426B0190UL)) +#define bFM4_DS_WIER_WUI3E *((volatile unsigned int*)(0x426B0194UL)) +#define bFM4_DS_WIER_WUI4E *((volatile unsigned int*)(0x426B0198UL)) +#define bFM4_DS_WIER_WUI5E *((volatile unsigned int*)(0x426B019CUL)) +#define bFM4_DS_WILVR_WUI1LV *((volatile unsigned int*)(0x426B0200UL)) +#define bFM4_DS_WILVR_WUI2LV *((volatile unsigned int*)(0x426B0204UL)) +#define bFM4_DS_WILVR_WUI3LV *((volatile unsigned int*)(0x426B0208UL)) +#define bFM4_DS_WILVR_WUI4LV *((volatile unsigned int*)(0x426B020CUL)) +#define bFM4_DS_WILVR_WUI5LV *((volatile unsigned int*)(0x426B0210UL)) +#define bFM4_DS_DSRAMR_SRAMR0 *((volatile unsigned int*)(0x426B0280UL)) +#define bFM4_DS_DSRAMR_SRAMR1 *((volatile unsigned int*)(0x426B0284UL)) + +/* USB clock registers */ +#define bFM4_USBCLK_UCCR_UCEN *((volatile unsigned int*)(0x426C0000UL)) +#define bFM4_USBCLK_UCCR_UCSEL *((volatile unsigned int*)(0x426C0004UL)) +#define bFM4_USBCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) +#define bFM4_USBCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) +#define bFM4_USBCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) +#define bFM4_USBCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) +#define bFM4_USBCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) +#define bFM4_USBCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) +#define bFM4_USBCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) +#define bFM4_USBCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) +#define bFM4_USBCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) +#define bFM4_USBCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) +#define bFM4_USBCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) +#define bFM4_USBCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) +#define bFM4_USBCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) +#define bFM4_USBCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) +#define bFM4_USBCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) +#define bFM4_USBCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) +#define bFM4_USBCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) +#define bFM4_USBCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) +#define bFM4_USBCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) +#define bFM4_USBCLK_USBEN_USBEN *((volatile unsigned int*)(0x426C0600UL)) + +/* CAN prescaler register */ +#define bFM4_CANPRES_CANPRE_CANPRE0 *((volatile unsigned int*)(0x426E0000UL)) +#define bFM4_CANPRES_CANPRE_CANPRE1 *((volatile unsigned int*)(0x426E0004UL)) +#define bFM4_CANPRES_CANPRE_CANPRE2 *((volatile unsigned int*)(0x426E0008UL)) +#define bFM4_CANPRES_CANPRE_CANPRE3 *((volatile unsigned int*)(0x426E000CUL)) + +/* MFS UART channel 0 registers */ +#define bFM4_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM4_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM4_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM4_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM4_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM4_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM4_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM4_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM4_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM4_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM4_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM4_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM4_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM4_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM4_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM4_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM4_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) +#define bFM4_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) +#define bFM4_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) +#define bFM4_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM4_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) +#define bFM4_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM4_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM4_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM4_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM4_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM4_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) +#define bFM4_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM4_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM4_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM4_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM4_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM4_MFS0_UART_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_UART_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_UART_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_UART_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_UART_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_UART_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_UART_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_UART_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_UART_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_UART_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_UART_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_UART_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_UART_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_UART_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_UART_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_UART_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_UART_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_UART_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) +#define bFM4_MFS0_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) + +/* MFS CSIO channel 0 registers */ +#define bFM4_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM4_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) +#define bFM4_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM4_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) +#define bFM4_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM4_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM4_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM4_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM4_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM4_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM4_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM4_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM4_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) +#define bFM4_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM4_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM4_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM4_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM4_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM4_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM4_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) +#define bFM4_MFS0_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42700098UL)) +#define bFM4_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) +#define bFM4_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM4_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM4_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM4_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM4_MFS0_CSIO_SSR_AWC *((volatile unsigned int*)(0x427000B0UL)) +#define bFM4_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM4_MFS0_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_CSIO_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_CSIO_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_CSIO_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42700380UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42700384UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42700388UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270038CUL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42700390UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42700394UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42700398UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270039CUL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427003A0UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427003A4UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427003A8UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427003ACUL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427003B0UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427003B4UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427003B8UL)) +#define bFM4_MFS0_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427003BCUL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42700400UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42700404UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42700408UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270040CUL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42700410UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42700414UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42700418UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270041CUL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42700420UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42700424UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42700428UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270042CUL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42700430UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42700434UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42700438UL)) +#define bFM4_MFS0_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270043CUL)) +#define bFM4_MFS0_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42700480UL)) +#define bFM4_MFS0_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42700484UL)) +#define bFM4_MFS0_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42700488UL)) +#define bFM4_MFS0_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270048CUL)) +#define bFM4_MFS0_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42700490UL)) +#define bFM4_MFS0_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42700498UL)) +#define bFM4_MFS0_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270049CUL)) +#define bFM4_MFS0_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427004A0UL)) +#define bFM4_MFS0_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427004ACUL)) +#define bFM4_MFS0_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427004B0UL)) +#define bFM4_MFS0_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427004B4UL)) +#define bFM4_MFS0_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42700500UL)) +#define bFM4_MFS0_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42700504UL)) +#define bFM4_MFS0_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42700508UL)) +#define bFM4_MFS0_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270050CUL)) +#define bFM4_MFS0_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42700510UL)) +#define bFM4_MFS0_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42700514UL)) +#define bFM4_MFS0_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42700518UL)) +#define bFM4_MFS0_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270051CUL)) +#define bFM4_MFS0_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42700520UL)) +#define bFM4_MFS0_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42700524UL)) +#define bFM4_MFS0_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42700528UL)) +#define bFM4_MFS0_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270052CUL)) +#define bFM4_MFS0_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42700530UL)) +#define bFM4_MFS0_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42700534UL)) +#define bFM4_MFS0_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42700538UL)) +#define bFM4_MFS0_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270053CUL)) +#define bFM4_MFS0_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42700580UL)) +#define bFM4_MFS0_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42700584UL)) +#define bFM4_MFS0_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42700588UL)) +#define bFM4_MFS0_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270058CUL)) +#define bFM4_MFS0_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42700590UL)) +#define bFM4_MFS0_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42700594UL)) +#define bFM4_MFS0_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42700598UL)) +#define bFM4_MFS0_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270059CUL)) +#define bFM4_MFS0_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427005A0UL)) +#define bFM4_MFS0_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427005A4UL)) +#define bFM4_MFS0_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427005A8UL)) +#define bFM4_MFS0_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427005ACUL)) +#define bFM4_MFS0_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427005B0UL)) +#define bFM4_MFS0_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427005B4UL)) +#define bFM4_MFS0_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427005B8UL)) +#define bFM4_MFS0_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427005BCUL)) +#define bFM4_MFS0_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42700600UL)) +#define bFM4_MFS0_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42700604UL)) +#define bFM4_MFS0_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42700614UL)) +#define bFM4_MFS0_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42700618UL)) +#define bFM4_MFS0_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270061CUL)) +#define bFM4_MFS0_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42700620UL)) +#define bFM4_MFS0_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42700624UL)) + +/* MFS LIN channel 0 registers */ +#define bFM4_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM4_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM4_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM4_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM4_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM4_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM4_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM4_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM4_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM4_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM4_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM4_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) +#define bFM4_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM4_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM4_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM4_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM4_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) +#define bFM4_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM4_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) +#define bFM4_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM4_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM4_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM4_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM4_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM4_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM4_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) +#define bFM4_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM4_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM4_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM4_MFS0_LIN_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_LIN_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_LIN_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_LIN_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_LIN_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_LIN_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_LIN_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_LIN_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_LIN_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_LIN_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) +#define bFM4_MFS0_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) + +/* MFS I2C channel 0 registers */ +#define bFM4_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) +#define bFM4_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) +#define bFM4_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM4_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM4_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM4_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) +#define bFM4_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) +#define bFM4_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) +#define bFM4_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM4_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) +#define bFM4_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) +#define bFM4_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) +#define bFM4_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) +#define bFM4_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) +#define bFM4_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) +#define bFM4_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) +#define bFM4_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) +#define bFM4_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) +#define bFM4_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) +#define bFM4_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) +#define bFM4_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) +#define bFM4_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) +#define bFM4_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM4_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM4_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM4_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM4_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM4_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) +#define bFM4_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) +#define bFM4_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM4_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) +#define bFM4_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) +#define bFM4_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) +#define bFM4_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) +#define bFM4_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) +#define bFM4_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) +#define bFM4_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) +#define bFM4_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) +#define bFM4_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) +#define bFM4_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) +#define bFM4_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) +#define bFM4_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) +#define bFM4_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) +#define bFM4_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) +#define bFM4_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) +#define bFM4_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) +#define bFM4_MFS0_I2C_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_I2C_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_I2C_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_I2C_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_I2C_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_I2C_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_I2C_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) +#define bFM4_MFS0_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) +#define bFM4_MFS0_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) +#define bFM4_MFS0_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) +#define bFM4_MFS0_I2C_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) +#define bFM4_MFS0_I2C_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) +#define bFM4_MFS0_I2C_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) +#define bFM4_MFS0_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) +#define bFM4_MFS0_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) +#define bFM4_MFS0_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) +#define bFM4_MFS0_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) +#define bFM4_MFS0_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) +#define bFM4_MFS0_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) +#define bFM4_MFS0_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) +#define bFM4_MFS0_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) +#define bFM4_MFS0_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) +#define bFM4_MFS0_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) +#define bFM4_MFS0_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) +#define bFM4_MFS0_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) +#define bFM4_MFS0_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) +#define bFM4_MFS0_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) +#define bFM4_MFS0_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) +#define bFM4_MFS0_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) +#define bFM4_MFS0_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) +#define bFM4_MFS0_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) +#define bFM4_MFS0_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) +#define bFM4_MFS0_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) +#define bFM4_MFS0_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) +#define bFM4_MFS0_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) + +/* MFS UART channel 1 registers */ +#define bFM4_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM4_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM4_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM4_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM4_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM4_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM4_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM4_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM4_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM4_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM4_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM4_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM4_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM4_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM4_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM4_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM4_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) +#define bFM4_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) +#define bFM4_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) +#define bFM4_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM4_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) +#define bFM4_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM4_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM4_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM4_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM4_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM4_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) +#define bFM4_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM4_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM4_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM4_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM4_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM4_MFS1_UART_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_UART_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_UART_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_UART_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_UART_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_UART_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_UART_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_UART_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_UART_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_UART_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_UART_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_UART_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_UART_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_UART_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_UART_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_UART_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_UART_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_UART_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) +#define bFM4_MFS1_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) + +/* MFS CSIO channel 1 registers */ +#define bFM4_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM4_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) +#define bFM4_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM4_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) +#define bFM4_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM4_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM4_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM4_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM4_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM4_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM4_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM4_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM4_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) +#define bFM4_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM4_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM4_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM4_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM4_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM4_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM4_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) +#define bFM4_MFS1_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42702098UL)) +#define bFM4_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) +#define bFM4_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM4_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM4_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM4_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM4_MFS1_CSIO_SSR_AWC *((volatile unsigned int*)(0x427020B0UL)) +#define bFM4_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM4_MFS1_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_CSIO_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_CSIO_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_CSIO_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42702380UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42702384UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42702388UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270238CUL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42702390UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42702394UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42702398UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270239CUL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427023A0UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427023A4UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427023A8UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427023ACUL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427023B0UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427023B4UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427023B8UL)) +#define bFM4_MFS1_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427023BCUL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42702400UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42702404UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42702408UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270240CUL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42702410UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42702414UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42702418UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270241CUL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42702420UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42702424UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42702428UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270242CUL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42702430UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42702434UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42702438UL)) +#define bFM4_MFS1_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270243CUL)) +#define bFM4_MFS1_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42702480UL)) +#define bFM4_MFS1_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42702484UL)) +#define bFM4_MFS1_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42702488UL)) +#define bFM4_MFS1_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270248CUL)) +#define bFM4_MFS1_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42702490UL)) +#define bFM4_MFS1_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42702498UL)) +#define bFM4_MFS1_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270249CUL)) +#define bFM4_MFS1_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427024A0UL)) +#define bFM4_MFS1_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427024ACUL)) +#define bFM4_MFS1_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427024B0UL)) +#define bFM4_MFS1_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427024B4UL)) +#define bFM4_MFS1_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42702500UL)) +#define bFM4_MFS1_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42702504UL)) +#define bFM4_MFS1_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42702508UL)) +#define bFM4_MFS1_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270250CUL)) +#define bFM4_MFS1_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42702510UL)) +#define bFM4_MFS1_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42702514UL)) +#define bFM4_MFS1_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42702518UL)) +#define bFM4_MFS1_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270251CUL)) +#define bFM4_MFS1_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42702520UL)) +#define bFM4_MFS1_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42702524UL)) +#define bFM4_MFS1_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42702528UL)) +#define bFM4_MFS1_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270252CUL)) +#define bFM4_MFS1_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42702530UL)) +#define bFM4_MFS1_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42702534UL)) +#define bFM4_MFS1_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42702538UL)) +#define bFM4_MFS1_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270253CUL)) +#define bFM4_MFS1_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42702580UL)) +#define bFM4_MFS1_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42702584UL)) +#define bFM4_MFS1_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42702588UL)) +#define bFM4_MFS1_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270258CUL)) +#define bFM4_MFS1_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42702590UL)) +#define bFM4_MFS1_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42702594UL)) +#define bFM4_MFS1_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42702598UL)) +#define bFM4_MFS1_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270259CUL)) +#define bFM4_MFS1_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427025A0UL)) +#define bFM4_MFS1_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427025A4UL)) +#define bFM4_MFS1_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427025A8UL)) +#define bFM4_MFS1_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427025ACUL)) +#define bFM4_MFS1_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427025B0UL)) +#define bFM4_MFS1_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427025B4UL)) +#define bFM4_MFS1_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427025B8UL)) +#define bFM4_MFS1_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427025BCUL)) +#define bFM4_MFS1_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42702600UL)) +#define bFM4_MFS1_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42702604UL)) +#define bFM4_MFS1_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42702614UL)) +#define bFM4_MFS1_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42702618UL)) +#define bFM4_MFS1_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270261CUL)) +#define bFM4_MFS1_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42702620UL)) +#define bFM4_MFS1_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42702624UL)) + +/* MFS LIN channel 1 registers */ +#define bFM4_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM4_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM4_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM4_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM4_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM4_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM4_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM4_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM4_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM4_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM4_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM4_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) +#define bFM4_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM4_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM4_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM4_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM4_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) +#define bFM4_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM4_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) +#define bFM4_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM4_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM4_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM4_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM4_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM4_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM4_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) +#define bFM4_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM4_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM4_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM4_MFS1_LIN_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_LIN_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_LIN_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_LIN_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_LIN_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_LIN_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_LIN_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_LIN_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_LIN_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_LIN_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) +#define bFM4_MFS1_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) + +/* MFS I2C channel 1 registers */ +#define bFM4_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) +#define bFM4_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) +#define bFM4_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM4_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM4_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM4_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) +#define bFM4_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) +#define bFM4_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) +#define bFM4_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM4_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) +#define bFM4_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) +#define bFM4_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) +#define bFM4_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) +#define bFM4_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) +#define bFM4_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) +#define bFM4_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) +#define bFM4_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) +#define bFM4_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) +#define bFM4_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) +#define bFM4_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) +#define bFM4_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) +#define bFM4_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) +#define bFM4_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM4_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM4_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM4_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM4_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM4_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) +#define bFM4_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) +#define bFM4_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM4_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) +#define bFM4_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) +#define bFM4_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) +#define bFM4_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) +#define bFM4_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) +#define bFM4_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) +#define bFM4_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) +#define bFM4_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) +#define bFM4_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) +#define bFM4_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) +#define bFM4_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) +#define bFM4_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) +#define bFM4_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) +#define bFM4_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) +#define bFM4_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) +#define bFM4_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) +#define bFM4_MFS1_I2C_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_I2C_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_I2C_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_I2C_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_I2C_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_I2C_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_I2C_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) +#define bFM4_MFS1_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) +#define bFM4_MFS1_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) +#define bFM4_MFS1_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) +#define bFM4_MFS1_I2C_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) +#define bFM4_MFS1_I2C_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) +#define bFM4_MFS1_I2C_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) +#define bFM4_MFS1_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) +#define bFM4_MFS1_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) +#define bFM4_MFS1_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) +#define bFM4_MFS1_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) +#define bFM4_MFS1_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) +#define bFM4_MFS1_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) +#define bFM4_MFS1_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) +#define bFM4_MFS1_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) +#define bFM4_MFS1_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) +#define bFM4_MFS1_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) +#define bFM4_MFS1_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) +#define bFM4_MFS1_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) +#define bFM4_MFS1_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) +#define bFM4_MFS1_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) +#define bFM4_MFS1_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) +#define bFM4_MFS1_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) +#define bFM4_MFS1_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) +#define bFM4_MFS1_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) +#define bFM4_MFS1_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) +#define bFM4_MFS1_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) +#define bFM4_MFS1_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) +#define bFM4_MFS1_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) + +/* MFS UART channel 2 registers */ +#define bFM4_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM4_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM4_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM4_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM4_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM4_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM4_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM4_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM4_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM4_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM4_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM4_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM4_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM4_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM4_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM4_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM4_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) +#define bFM4_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) +#define bFM4_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) +#define bFM4_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM4_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) +#define bFM4_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM4_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM4_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM4_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM4_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM4_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) +#define bFM4_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM4_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM4_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM4_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM4_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM4_MFS2_UART_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_UART_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_UART_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_UART_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_UART_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_UART_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_UART_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_UART_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_UART_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_UART_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_UART_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_UART_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_UART_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_UART_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_UART_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_UART_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_UART_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_UART_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) +#define bFM4_MFS2_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) + +/* MFS CSIO channel 2 registers */ +#define bFM4_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM4_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) +#define bFM4_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM4_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) +#define bFM4_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM4_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM4_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM4_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM4_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM4_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM4_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM4_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM4_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) +#define bFM4_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM4_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM4_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM4_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM4_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM4_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM4_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) +#define bFM4_MFS2_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42704098UL)) +#define bFM4_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) +#define bFM4_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM4_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM4_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM4_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM4_MFS2_CSIO_SSR_AWC *((volatile unsigned int*)(0x427040B0UL)) +#define bFM4_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM4_MFS2_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_CSIO_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_CSIO_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_CSIO_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42704380UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42704384UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42704388UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270438CUL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42704390UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42704394UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42704398UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270439CUL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427043A0UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427043A4UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427043A8UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427043ACUL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427043B0UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427043B4UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427043B8UL)) +#define bFM4_MFS2_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427043BCUL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42704400UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42704404UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42704408UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270440CUL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42704410UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42704414UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42704418UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270441CUL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42704420UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42704424UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42704428UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270442CUL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42704430UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42704434UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42704438UL)) +#define bFM4_MFS2_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270443CUL)) +#define bFM4_MFS2_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42704480UL)) +#define bFM4_MFS2_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42704484UL)) +#define bFM4_MFS2_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42704488UL)) +#define bFM4_MFS2_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270448CUL)) +#define bFM4_MFS2_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42704490UL)) +#define bFM4_MFS2_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42704498UL)) +#define bFM4_MFS2_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270449CUL)) +#define bFM4_MFS2_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427044A0UL)) +#define bFM4_MFS2_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427044ACUL)) +#define bFM4_MFS2_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427044B0UL)) +#define bFM4_MFS2_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427044B4UL)) +#define bFM4_MFS2_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42704500UL)) +#define bFM4_MFS2_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42704504UL)) +#define bFM4_MFS2_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42704508UL)) +#define bFM4_MFS2_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270450CUL)) +#define bFM4_MFS2_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42704510UL)) +#define bFM4_MFS2_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42704514UL)) +#define bFM4_MFS2_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42704518UL)) +#define bFM4_MFS2_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270451CUL)) +#define bFM4_MFS2_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42704520UL)) +#define bFM4_MFS2_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42704524UL)) +#define bFM4_MFS2_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42704528UL)) +#define bFM4_MFS2_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270452CUL)) +#define bFM4_MFS2_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42704530UL)) +#define bFM4_MFS2_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42704534UL)) +#define bFM4_MFS2_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42704538UL)) +#define bFM4_MFS2_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270453CUL)) +#define bFM4_MFS2_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42704580UL)) +#define bFM4_MFS2_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42704584UL)) +#define bFM4_MFS2_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42704588UL)) +#define bFM4_MFS2_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270458CUL)) +#define bFM4_MFS2_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42704590UL)) +#define bFM4_MFS2_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42704594UL)) +#define bFM4_MFS2_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42704598UL)) +#define bFM4_MFS2_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270459CUL)) +#define bFM4_MFS2_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427045A0UL)) +#define bFM4_MFS2_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427045A4UL)) +#define bFM4_MFS2_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427045A8UL)) +#define bFM4_MFS2_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427045ACUL)) +#define bFM4_MFS2_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427045B0UL)) +#define bFM4_MFS2_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427045B4UL)) +#define bFM4_MFS2_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427045B8UL)) +#define bFM4_MFS2_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427045BCUL)) +#define bFM4_MFS2_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42704600UL)) +#define bFM4_MFS2_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42704604UL)) +#define bFM4_MFS2_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42704614UL)) +#define bFM4_MFS2_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42704618UL)) +#define bFM4_MFS2_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270461CUL)) +#define bFM4_MFS2_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42704620UL)) +#define bFM4_MFS2_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42704624UL)) + +/* MFS LIN channel 2 registers */ +#define bFM4_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM4_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM4_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM4_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM4_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM4_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM4_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM4_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM4_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM4_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM4_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM4_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) +#define bFM4_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM4_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM4_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM4_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM4_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) +#define bFM4_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM4_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) +#define bFM4_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM4_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM4_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM4_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM4_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM4_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM4_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) +#define bFM4_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM4_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM4_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM4_MFS2_LIN_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_LIN_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_LIN_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_LIN_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_LIN_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_LIN_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_LIN_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_LIN_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_LIN_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_LIN_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) +#define bFM4_MFS2_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) + +/* MFS I2C channel 2 registers */ +#define bFM4_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) +#define bFM4_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) +#define bFM4_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM4_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM4_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM4_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) +#define bFM4_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) +#define bFM4_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) +#define bFM4_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM4_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) +#define bFM4_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) +#define bFM4_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) +#define bFM4_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) +#define bFM4_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) +#define bFM4_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) +#define bFM4_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) +#define bFM4_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) +#define bFM4_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) +#define bFM4_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) +#define bFM4_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) +#define bFM4_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) +#define bFM4_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) +#define bFM4_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM4_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM4_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM4_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM4_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM4_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) +#define bFM4_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) +#define bFM4_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM4_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) +#define bFM4_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) +#define bFM4_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) +#define bFM4_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) +#define bFM4_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) +#define bFM4_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) +#define bFM4_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) +#define bFM4_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) +#define bFM4_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) +#define bFM4_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) +#define bFM4_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) +#define bFM4_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) +#define bFM4_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) +#define bFM4_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) +#define bFM4_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) +#define bFM4_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) +#define bFM4_MFS2_I2C_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_I2C_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_I2C_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_I2C_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_I2C_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_I2C_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_I2C_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) +#define bFM4_MFS2_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) +#define bFM4_MFS2_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) +#define bFM4_MFS2_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) +#define bFM4_MFS2_I2C_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) +#define bFM4_MFS2_I2C_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) +#define bFM4_MFS2_I2C_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) +#define bFM4_MFS2_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) +#define bFM4_MFS2_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) +#define bFM4_MFS2_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) +#define bFM4_MFS2_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) +#define bFM4_MFS2_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) +#define bFM4_MFS2_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) +#define bFM4_MFS2_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) +#define bFM4_MFS2_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) +#define bFM4_MFS2_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) +#define bFM4_MFS2_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) +#define bFM4_MFS2_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) +#define bFM4_MFS2_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) +#define bFM4_MFS2_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) +#define bFM4_MFS2_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) +#define bFM4_MFS2_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) +#define bFM4_MFS2_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) +#define bFM4_MFS2_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) +#define bFM4_MFS2_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) +#define bFM4_MFS2_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) +#define bFM4_MFS2_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) +#define bFM4_MFS2_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) +#define bFM4_MFS2_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) + +/* MFS UART channel 3 registers */ +#define bFM4_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM4_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM4_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM4_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM4_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM4_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM4_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM4_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM4_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM4_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM4_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM4_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM4_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM4_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM4_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM4_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM4_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) +#define bFM4_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) +#define bFM4_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) +#define bFM4_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM4_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) +#define bFM4_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM4_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM4_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM4_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM4_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM4_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) +#define bFM4_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM4_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM4_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM4_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM4_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM4_MFS3_UART_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_UART_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_UART_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_UART_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_UART_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_UART_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_UART_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_UART_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_UART_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_UART_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_UART_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_UART_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_UART_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_UART_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_UART_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_UART_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_UART_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_UART_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) +#define bFM4_MFS3_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) + +/* MFS CSIO channel 3 registers */ +#define bFM4_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM4_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) +#define bFM4_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM4_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) +#define bFM4_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM4_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM4_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM4_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM4_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM4_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM4_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM4_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM4_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) +#define bFM4_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM4_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM4_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM4_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM4_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM4_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM4_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) +#define bFM4_MFS3_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42706098UL)) +#define bFM4_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) +#define bFM4_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM4_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM4_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM4_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM4_MFS3_CSIO_SSR_AWC *((volatile unsigned int*)(0x427060B0UL)) +#define bFM4_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM4_MFS3_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_CSIO_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_CSIO_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_CSIO_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42706380UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42706384UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42706388UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270638CUL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42706390UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42706394UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42706398UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270639CUL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427063A0UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427063A4UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427063A8UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427063ACUL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427063B0UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427063B4UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427063B8UL)) +#define bFM4_MFS3_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427063BCUL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42706400UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42706404UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42706408UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270640CUL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42706410UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42706414UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42706418UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270641CUL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42706420UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42706424UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42706428UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270642CUL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42706430UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42706434UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42706438UL)) +#define bFM4_MFS3_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270643CUL)) +#define bFM4_MFS3_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42706480UL)) +#define bFM4_MFS3_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42706484UL)) +#define bFM4_MFS3_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42706488UL)) +#define bFM4_MFS3_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270648CUL)) +#define bFM4_MFS3_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42706490UL)) +#define bFM4_MFS3_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42706498UL)) +#define bFM4_MFS3_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270649CUL)) +#define bFM4_MFS3_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427064A0UL)) +#define bFM4_MFS3_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427064ACUL)) +#define bFM4_MFS3_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427064B0UL)) +#define bFM4_MFS3_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427064B4UL)) +#define bFM4_MFS3_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42706500UL)) +#define bFM4_MFS3_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42706504UL)) +#define bFM4_MFS3_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42706508UL)) +#define bFM4_MFS3_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270650CUL)) +#define bFM4_MFS3_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42706510UL)) +#define bFM4_MFS3_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42706514UL)) +#define bFM4_MFS3_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42706518UL)) +#define bFM4_MFS3_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270651CUL)) +#define bFM4_MFS3_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42706520UL)) +#define bFM4_MFS3_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42706524UL)) +#define bFM4_MFS3_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42706528UL)) +#define bFM4_MFS3_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270652CUL)) +#define bFM4_MFS3_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42706530UL)) +#define bFM4_MFS3_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42706534UL)) +#define bFM4_MFS3_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42706538UL)) +#define bFM4_MFS3_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270653CUL)) +#define bFM4_MFS3_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42706580UL)) +#define bFM4_MFS3_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42706584UL)) +#define bFM4_MFS3_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42706588UL)) +#define bFM4_MFS3_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270658CUL)) +#define bFM4_MFS3_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42706590UL)) +#define bFM4_MFS3_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42706594UL)) +#define bFM4_MFS3_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42706598UL)) +#define bFM4_MFS3_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270659CUL)) +#define bFM4_MFS3_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427065A0UL)) +#define bFM4_MFS3_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427065A4UL)) +#define bFM4_MFS3_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427065A8UL)) +#define bFM4_MFS3_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427065ACUL)) +#define bFM4_MFS3_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427065B0UL)) +#define bFM4_MFS3_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427065B4UL)) +#define bFM4_MFS3_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427065B8UL)) +#define bFM4_MFS3_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427065BCUL)) +#define bFM4_MFS3_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42706600UL)) +#define bFM4_MFS3_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42706604UL)) +#define bFM4_MFS3_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42706614UL)) +#define bFM4_MFS3_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42706618UL)) +#define bFM4_MFS3_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270661CUL)) +#define bFM4_MFS3_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42706620UL)) +#define bFM4_MFS3_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42706624UL)) + +/* MFS LIN channel 3 registers */ +#define bFM4_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM4_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM4_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM4_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM4_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM4_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM4_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM4_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM4_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM4_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM4_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM4_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) +#define bFM4_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM4_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM4_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM4_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM4_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) +#define bFM4_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM4_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) +#define bFM4_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM4_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM4_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM4_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM4_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM4_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM4_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) +#define bFM4_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM4_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM4_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM4_MFS3_LIN_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_LIN_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_LIN_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_LIN_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_LIN_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_LIN_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_LIN_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_LIN_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_LIN_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_LIN_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) +#define bFM4_MFS3_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) + +/* MFS I2C channel 3 registers */ +#define bFM4_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) +#define bFM4_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) +#define bFM4_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM4_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM4_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM4_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) +#define bFM4_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) +#define bFM4_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) +#define bFM4_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM4_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) +#define bFM4_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) +#define bFM4_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) +#define bFM4_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) +#define bFM4_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) +#define bFM4_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) +#define bFM4_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) +#define bFM4_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) +#define bFM4_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) +#define bFM4_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) +#define bFM4_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) +#define bFM4_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) +#define bFM4_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) +#define bFM4_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM4_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM4_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM4_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM4_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM4_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) +#define bFM4_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) +#define bFM4_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM4_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) +#define bFM4_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) +#define bFM4_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) +#define bFM4_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) +#define bFM4_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) +#define bFM4_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) +#define bFM4_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) +#define bFM4_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) +#define bFM4_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) +#define bFM4_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) +#define bFM4_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) +#define bFM4_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) +#define bFM4_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) +#define bFM4_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) +#define bFM4_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) +#define bFM4_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) +#define bFM4_MFS3_I2C_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_I2C_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_I2C_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_I2C_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_I2C_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_I2C_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_I2C_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) +#define bFM4_MFS3_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) +#define bFM4_MFS3_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) +#define bFM4_MFS3_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) +#define bFM4_MFS3_I2C_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) +#define bFM4_MFS3_I2C_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) +#define bFM4_MFS3_I2C_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) +#define bFM4_MFS3_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) +#define bFM4_MFS3_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) +#define bFM4_MFS3_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) +#define bFM4_MFS3_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) +#define bFM4_MFS3_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) +#define bFM4_MFS3_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) +#define bFM4_MFS3_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) +#define bFM4_MFS3_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) +#define bFM4_MFS3_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) +#define bFM4_MFS3_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) +#define bFM4_MFS3_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) +#define bFM4_MFS3_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) +#define bFM4_MFS3_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) +#define bFM4_MFS3_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) +#define bFM4_MFS3_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) +#define bFM4_MFS3_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) +#define bFM4_MFS3_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) +#define bFM4_MFS3_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) +#define bFM4_MFS3_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) +#define bFM4_MFS3_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) +#define bFM4_MFS3_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) +#define bFM4_MFS3_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) + +/* MFS UART channel 4 registers */ +#define bFM4_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM4_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM4_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM4_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM4_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM4_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM4_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM4_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM4_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM4_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM4_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM4_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM4_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM4_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM4_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM4_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM4_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) +#define bFM4_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) +#define bFM4_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) +#define bFM4_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM4_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) +#define bFM4_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM4_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM4_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM4_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM4_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM4_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) +#define bFM4_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM4_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM4_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM4_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM4_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM4_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_UART_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM4_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* MFS CSIO channel 4 registers */ +#define bFM4_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM4_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) +#define bFM4_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM4_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) +#define bFM4_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM4_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM4_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM4_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM4_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM4_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM4_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM4_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM4_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) +#define bFM4_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM4_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM4_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM4_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM4_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM4_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM4_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) +#define bFM4_MFS4_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42708098UL)) +#define bFM4_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) +#define bFM4_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM4_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM4_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM4_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM4_MFS4_CSIO_SSR_AWC *((volatile unsigned int*)(0x427080B0UL)) +#define bFM4_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM4_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42708380UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42708384UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42708388UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270838CUL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42708390UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42708394UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42708398UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270839CUL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427083A0UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427083A4UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427083A8UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427083ACUL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427083B0UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427083B4UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427083B8UL)) +#define bFM4_MFS4_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427083BCUL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42708400UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42708404UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42708408UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270840CUL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42708410UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42708414UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42708418UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270841CUL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42708420UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42708424UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42708428UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270842CUL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42708430UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42708434UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42708438UL)) +#define bFM4_MFS4_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270843CUL)) +#define bFM4_MFS4_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42708480UL)) +#define bFM4_MFS4_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42708484UL)) +#define bFM4_MFS4_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42708488UL)) +#define bFM4_MFS4_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270848CUL)) +#define bFM4_MFS4_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42708490UL)) +#define bFM4_MFS4_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42708498UL)) +#define bFM4_MFS4_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270849CUL)) +#define bFM4_MFS4_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427084A0UL)) +#define bFM4_MFS4_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427084ACUL)) +#define bFM4_MFS4_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427084B0UL)) +#define bFM4_MFS4_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427084B4UL)) +#define bFM4_MFS4_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42708500UL)) +#define bFM4_MFS4_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42708504UL)) +#define bFM4_MFS4_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42708508UL)) +#define bFM4_MFS4_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270850CUL)) +#define bFM4_MFS4_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42708510UL)) +#define bFM4_MFS4_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42708514UL)) +#define bFM4_MFS4_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42708518UL)) +#define bFM4_MFS4_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270851CUL)) +#define bFM4_MFS4_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42708520UL)) +#define bFM4_MFS4_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42708524UL)) +#define bFM4_MFS4_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42708528UL)) +#define bFM4_MFS4_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270852CUL)) +#define bFM4_MFS4_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42708530UL)) +#define bFM4_MFS4_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42708534UL)) +#define bFM4_MFS4_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42708538UL)) +#define bFM4_MFS4_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270853CUL)) +#define bFM4_MFS4_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42708580UL)) +#define bFM4_MFS4_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42708584UL)) +#define bFM4_MFS4_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42708588UL)) +#define bFM4_MFS4_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270858CUL)) +#define bFM4_MFS4_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42708590UL)) +#define bFM4_MFS4_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42708594UL)) +#define bFM4_MFS4_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42708598UL)) +#define bFM4_MFS4_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270859CUL)) +#define bFM4_MFS4_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427085A0UL)) +#define bFM4_MFS4_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427085A4UL)) +#define bFM4_MFS4_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427085A8UL)) +#define bFM4_MFS4_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427085ACUL)) +#define bFM4_MFS4_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427085B0UL)) +#define bFM4_MFS4_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427085B4UL)) +#define bFM4_MFS4_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427085B8UL)) +#define bFM4_MFS4_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427085BCUL)) +#define bFM4_MFS4_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42708600UL)) +#define bFM4_MFS4_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42708604UL)) +#define bFM4_MFS4_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42708614UL)) +#define bFM4_MFS4_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42708618UL)) +#define bFM4_MFS4_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270861CUL)) +#define bFM4_MFS4_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42708620UL)) +#define bFM4_MFS4_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42708624UL)) + +/* MFS LIN channel 4 registers */ +#define bFM4_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM4_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM4_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM4_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM4_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM4_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM4_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM4_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM4_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM4_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM4_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM4_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) +#define bFM4_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM4_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM4_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM4_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM4_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) +#define bFM4_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM4_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) +#define bFM4_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM4_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM4_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM4_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM4_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM4_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM4_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) +#define bFM4_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM4_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM4_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM4_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM4_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* MFS I2C channel 4 registers */ +#define bFM4_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) +#define bFM4_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) +#define bFM4_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM4_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM4_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM4_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) +#define bFM4_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) +#define bFM4_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) +#define bFM4_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM4_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) +#define bFM4_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) +#define bFM4_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) +#define bFM4_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) +#define bFM4_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) +#define bFM4_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) +#define bFM4_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) +#define bFM4_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) +#define bFM4_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) +#define bFM4_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) +#define bFM4_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) +#define bFM4_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) +#define bFM4_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) +#define bFM4_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM4_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM4_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM4_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM4_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM4_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) +#define bFM4_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) +#define bFM4_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM4_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) +#define bFM4_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) +#define bFM4_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) +#define bFM4_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) +#define bFM4_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) +#define bFM4_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) +#define bFM4_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) +#define bFM4_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) +#define bFM4_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) +#define bFM4_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) +#define bFM4_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) +#define bFM4_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) +#define bFM4_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) +#define bFM4_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) +#define bFM4_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) +#define bFM4_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) +#define bFM4_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM4_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM4_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM4_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM4_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM4_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM4_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM4_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM4_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM4_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM4_MFS4_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM4_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM4_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM4_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM4_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM4_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM4_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM4_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM4_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM4_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM4_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM4_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM4_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM4_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM4_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM4_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM4_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM4_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM4_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* MFS UART channel 5 registers */ +#define bFM4_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM4_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM4_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM4_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM4_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM4_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM4_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM4_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM4_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM4_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM4_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM4_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM4_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM4_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM4_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM4_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM4_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM4_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) +#define bFM4_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) +#define bFM4_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM4_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM4_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM4_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM4_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM4_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM4_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM4_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM4_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM4_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM4_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM4_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM4_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM4_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_UART_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM4_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* MFS CSIO channel 5 registers */ +#define bFM4_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM4_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) +#define bFM4_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM4_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM4_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM4_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM4_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM4_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM4_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM4_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM4_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM4_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM4_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) +#define bFM4_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM4_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM4_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM4_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM4_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM4_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM4_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) +#define bFM4_MFS5_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4270A098UL)) +#define bFM4_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM4_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM4_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM4_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM4_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM4_MFS5_CSIO_SSR_AWC *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM4_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM4_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4270A380UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4270A384UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4270A388UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270A38CUL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4270A390UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4270A394UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4270A398UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270A39CUL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4270A3A0UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4270A3A4UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4270A3A8UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4270A3ACUL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4270A3B0UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4270A3B4UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4270A3B8UL)) +#define bFM4_MFS5_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4270A3BCUL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4270A400UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4270A404UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4270A408UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270A40CUL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4270A410UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4270A414UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4270A418UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270A41CUL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4270A420UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4270A424UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4270A428UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270A42CUL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4270A430UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4270A434UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4270A438UL)) +#define bFM4_MFS5_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270A43CUL)) +#define bFM4_MFS5_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4270A480UL)) +#define bFM4_MFS5_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4270A484UL)) +#define bFM4_MFS5_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4270A488UL)) +#define bFM4_MFS5_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270A48CUL)) +#define bFM4_MFS5_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4270A490UL)) +#define bFM4_MFS5_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4270A498UL)) +#define bFM4_MFS5_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270A49CUL)) +#define bFM4_MFS5_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4270A4A0UL)) +#define bFM4_MFS5_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4270A4ACUL)) +#define bFM4_MFS5_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4270A4B0UL)) +#define bFM4_MFS5_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4270A4B4UL)) +#define bFM4_MFS5_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4270A500UL)) +#define bFM4_MFS5_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4270A504UL)) +#define bFM4_MFS5_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4270A508UL)) +#define bFM4_MFS5_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270A50CUL)) +#define bFM4_MFS5_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4270A510UL)) +#define bFM4_MFS5_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4270A514UL)) +#define bFM4_MFS5_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4270A518UL)) +#define bFM4_MFS5_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270A51CUL)) +#define bFM4_MFS5_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4270A520UL)) +#define bFM4_MFS5_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4270A524UL)) +#define bFM4_MFS5_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4270A528UL)) +#define bFM4_MFS5_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270A52CUL)) +#define bFM4_MFS5_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4270A530UL)) +#define bFM4_MFS5_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4270A534UL)) +#define bFM4_MFS5_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4270A538UL)) +#define bFM4_MFS5_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270A53CUL)) +#define bFM4_MFS5_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4270A580UL)) +#define bFM4_MFS5_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4270A584UL)) +#define bFM4_MFS5_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4270A588UL)) +#define bFM4_MFS5_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270A58CUL)) +#define bFM4_MFS5_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4270A590UL)) +#define bFM4_MFS5_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4270A594UL)) +#define bFM4_MFS5_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4270A598UL)) +#define bFM4_MFS5_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270A59CUL)) +#define bFM4_MFS5_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4270A5A0UL)) +#define bFM4_MFS5_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4270A5A4UL)) +#define bFM4_MFS5_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4270A5A8UL)) +#define bFM4_MFS5_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4270A5ACUL)) +#define bFM4_MFS5_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4270A5B0UL)) +#define bFM4_MFS5_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4270A5B4UL)) +#define bFM4_MFS5_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4270A5B8UL)) +#define bFM4_MFS5_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4270A5BCUL)) +#define bFM4_MFS5_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4270A600UL)) +#define bFM4_MFS5_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4270A604UL)) +#define bFM4_MFS5_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4270A614UL)) +#define bFM4_MFS5_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4270A618UL)) +#define bFM4_MFS5_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270A61CUL)) +#define bFM4_MFS5_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4270A620UL)) +#define bFM4_MFS5_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4270A624UL)) + +/* MFS LIN channel 5 registers */ +#define bFM4_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM4_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM4_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM4_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM4_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM4_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM4_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM4_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM4_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM4_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM4_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM4_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) +#define bFM4_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM4_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM4_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM4_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM4_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM4_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM4_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) +#define bFM4_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM4_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM4_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM4_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM4_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM4_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM4_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM4_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM4_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM4_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM4_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM4_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* MFS I2C channel 5 registers */ +#define bFM4_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) +#define bFM4_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM4_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM4_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM4_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM4_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) +#define bFM4_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) +#define bFM4_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM4_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM4_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) +#define bFM4_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) +#define bFM4_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) +#define bFM4_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) +#define bFM4_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM4_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) +#define bFM4_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) +#define bFM4_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) +#define bFM4_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM4_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) +#define bFM4_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) +#define bFM4_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) +#define bFM4_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM4_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM4_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM4_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM4_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM4_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM4_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM4_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) +#define bFM4_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM4_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) +#define bFM4_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) +#define bFM4_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) +#define bFM4_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) +#define bFM4_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) +#define bFM4_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) +#define bFM4_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) +#define bFM4_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) +#define bFM4_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) +#define bFM4_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) +#define bFM4_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) +#define bFM4_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) +#define bFM4_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) +#define bFM4_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) +#define bFM4_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) +#define bFM4_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) +#define bFM4_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM4_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM4_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM4_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM4_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM4_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM4_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM4_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM4_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM4_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM4_MFS5_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM4_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM4_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM4_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM4_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM4_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM4_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM4_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM4_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM4_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM4_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM4_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM4_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM4_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM4_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM4_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM4_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM4_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM4_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* MFS UART channel 6 registers */ +#define bFM4_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM4_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM4_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM4_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM4_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM4_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM4_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM4_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM4_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM4_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM4_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM4_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM4_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM4_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM4_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM4_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM4_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM4_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) +#define bFM4_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) +#define bFM4_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM4_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM4_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM4_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM4_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM4_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM4_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM4_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM4_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM4_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM4_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM4_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM4_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM4_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_UART_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM4_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* MFS CSIO channel 6 registers */ +#define bFM4_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM4_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) +#define bFM4_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM4_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM4_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM4_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM4_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM4_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM4_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM4_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM4_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM4_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM4_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) +#define bFM4_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM4_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM4_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM4_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM4_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM4_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM4_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) +#define bFM4_MFS6_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4270C098UL)) +#define bFM4_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM4_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM4_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM4_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM4_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM4_MFS6_CSIO_SSR_AWC *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM4_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM4_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4270C380UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4270C384UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4270C388UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270C38CUL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4270C390UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4270C394UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4270C398UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270C39CUL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4270C3A0UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4270C3A4UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4270C3A8UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4270C3ACUL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4270C3B0UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4270C3B4UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4270C3B8UL)) +#define bFM4_MFS6_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4270C3BCUL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4270C400UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4270C404UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4270C408UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270C40CUL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4270C410UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4270C414UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4270C418UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270C41CUL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4270C420UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4270C424UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4270C428UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270C42CUL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4270C430UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4270C434UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4270C438UL)) +#define bFM4_MFS6_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270C43CUL)) +#define bFM4_MFS6_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4270C480UL)) +#define bFM4_MFS6_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4270C484UL)) +#define bFM4_MFS6_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4270C488UL)) +#define bFM4_MFS6_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270C48CUL)) +#define bFM4_MFS6_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4270C490UL)) +#define bFM4_MFS6_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4270C498UL)) +#define bFM4_MFS6_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270C49CUL)) +#define bFM4_MFS6_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4270C4A0UL)) +#define bFM4_MFS6_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4270C4ACUL)) +#define bFM4_MFS6_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4270C4B0UL)) +#define bFM4_MFS6_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4270C4B4UL)) +#define bFM4_MFS6_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4270C500UL)) +#define bFM4_MFS6_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4270C504UL)) +#define bFM4_MFS6_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4270C508UL)) +#define bFM4_MFS6_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270C50CUL)) +#define bFM4_MFS6_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4270C510UL)) +#define bFM4_MFS6_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4270C514UL)) +#define bFM4_MFS6_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4270C518UL)) +#define bFM4_MFS6_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270C51CUL)) +#define bFM4_MFS6_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4270C520UL)) +#define bFM4_MFS6_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4270C524UL)) +#define bFM4_MFS6_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4270C528UL)) +#define bFM4_MFS6_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270C52CUL)) +#define bFM4_MFS6_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4270C530UL)) +#define bFM4_MFS6_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4270C534UL)) +#define bFM4_MFS6_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4270C538UL)) +#define bFM4_MFS6_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270C53CUL)) +#define bFM4_MFS6_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4270C580UL)) +#define bFM4_MFS6_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4270C584UL)) +#define bFM4_MFS6_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4270C588UL)) +#define bFM4_MFS6_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270C58CUL)) +#define bFM4_MFS6_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4270C590UL)) +#define bFM4_MFS6_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4270C594UL)) +#define bFM4_MFS6_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4270C598UL)) +#define bFM4_MFS6_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270C59CUL)) +#define bFM4_MFS6_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4270C5A0UL)) +#define bFM4_MFS6_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4270C5A4UL)) +#define bFM4_MFS6_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4270C5A8UL)) +#define bFM4_MFS6_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4270C5ACUL)) +#define bFM4_MFS6_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4270C5B0UL)) +#define bFM4_MFS6_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4270C5B4UL)) +#define bFM4_MFS6_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4270C5B8UL)) +#define bFM4_MFS6_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4270C5BCUL)) +#define bFM4_MFS6_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4270C600UL)) +#define bFM4_MFS6_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4270C604UL)) +#define bFM4_MFS6_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4270C614UL)) +#define bFM4_MFS6_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4270C618UL)) +#define bFM4_MFS6_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270C61CUL)) +#define bFM4_MFS6_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4270C620UL)) +#define bFM4_MFS6_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4270C624UL)) + +/* MFS LIN channel 6 registers */ +#define bFM4_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM4_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM4_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM4_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM4_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM4_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM4_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM4_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM4_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM4_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM4_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM4_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) +#define bFM4_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM4_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM4_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM4_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM4_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM4_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM4_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) +#define bFM4_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM4_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM4_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM4_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM4_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM4_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM4_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM4_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM4_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM4_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM4_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM4_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* MFS I2C channel 6 registers */ +#define bFM4_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) +#define bFM4_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM4_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM4_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM4_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM4_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) +#define bFM4_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) +#define bFM4_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM4_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM4_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) +#define bFM4_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) +#define bFM4_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) +#define bFM4_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) +#define bFM4_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM4_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) +#define bFM4_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) +#define bFM4_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) +#define bFM4_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM4_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) +#define bFM4_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) +#define bFM4_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) +#define bFM4_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM4_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM4_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM4_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM4_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM4_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM4_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM4_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) +#define bFM4_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM4_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) +#define bFM4_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) +#define bFM4_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) +#define bFM4_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) +#define bFM4_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) +#define bFM4_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) +#define bFM4_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) +#define bFM4_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) +#define bFM4_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) +#define bFM4_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) +#define bFM4_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) +#define bFM4_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) +#define bFM4_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) +#define bFM4_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) +#define bFM4_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) +#define bFM4_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) +#define bFM4_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM4_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM4_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM4_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM4_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM4_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM4_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM4_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM4_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM4_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM4_MFS6_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM4_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM4_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM4_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM4_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM4_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM4_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM4_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM4_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM4_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM4_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM4_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM4_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM4_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM4_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM4_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM4_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM4_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM4_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* MFS UART channel 7 registers */ +#define bFM4_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM4_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM4_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM4_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM4_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM4_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM4_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM4_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM4_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM4_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM4_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM4_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM4_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM4_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM4_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM4_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM4_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM4_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) +#define bFM4_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) +#define bFM4_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM4_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM4_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM4_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM4_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM4_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM4_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM4_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM4_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM4_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM4_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM4_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM4_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM4_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_UART_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM4_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* MFS CSIO channel 7 registers */ +#define bFM4_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM4_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) +#define bFM4_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM4_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM4_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM4_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM4_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM4_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM4_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM4_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM4_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM4_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM4_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) +#define bFM4_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM4_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM4_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM4_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM4_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM4_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM4_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) +#define bFM4_MFS7_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4270E098UL)) +#define bFM4_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM4_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM4_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM4_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM4_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM4_MFS7_CSIO_SSR_AWC *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM4_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM4_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4270E380UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4270E384UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4270E388UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270E38CUL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4270E390UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4270E394UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4270E398UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270E39CUL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4270E3A0UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4270E3A4UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4270E3A8UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4270E3ACUL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4270E3B0UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4270E3B4UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4270E3B8UL)) +#define bFM4_MFS7_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4270E3BCUL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4270E400UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4270E404UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4270E408UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270E40CUL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4270E410UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4270E414UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4270E418UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270E41CUL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4270E420UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4270E424UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4270E428UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270E42CUL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4270E430UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4270E434UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4270E438UL)) +#define bFM4_MFS7_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270E43CUL)) +#define bFM4_MFS7_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4270E480UL)) +#define bFM4_MFS7_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4270E484UL)) +#define bFM4_MFS7_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4270E488UL)) +#define bFM4_MFS7_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270E48CUL)) +#define bFM4_MFS7_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4270E490UL)) +#define bFM4_MFS7_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4270E498UL)) +#define bFM4_MFS7_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270E49CUL)) +#define bFM4_MFS7_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4270E4A0UL)) +#define bFM4_MFS7_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4270E4ACUL)) +#define bFM4_MFS7_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4270E4B0UL)) +#define bFM4_MFS7_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4270E4B4UL)) +#define bFM4_MFS7_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4270E500UL)) +#define bFM4_MFS7_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4270E504UL)) +#define bFM4_MFS7_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4270E508UL)) +#define bFM4_MFS7_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270E50CUL)) +#define bFM4_MFS7_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4270E510UL)) +#define bFM4_MFS7_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4270E514UL)) +#define bFM4_MFS7_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4270E518UL)) +#define bFM4_MFS7_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270E51CUL)) +#define bFM4_MFS7_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4270E520UL)) +#define bFM4_MFS7_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4270E524UL)) +#define bFM4_MFS7_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4270E528UL)) +#define bFM4_MFS7_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270E52CUL)) +#define bFM4_MFS7_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4270E530UL)) +#define bFM4_MFS7_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4270E534UL)) +#define bFM4_MFS7_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4270E538UL)) +#define bFM4_MFS7_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270E53CUL)) +#define bFM4_MFS7_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4270E580UL)) +#define bFM4_MFS7_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4270E584UL)) +#define bFM4_MFS7_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4270E588UL)) +#define bFM4_MFS7_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270E58CUL)) +#define bFM4_MFS7_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4270E590UL)) +#define bFM4_MFS7_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4270E594UL)) +#define bFM4_MFS7_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4270E598UL)) +#define bFM4_MFS7_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270E59CUL)) +#define bFM4_MFS7_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4270E5A0UL)) +#define bFM4_MFS7_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4270E5A4UL)) +#define bFM4_MFS7_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4270E5A8UL)) +#define bFM4_MFS7_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4270E5ACUL)) +#define bFM4_MFS7_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4270E5B0UL)) +#define bFM4_MFS7_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4270E5B4UL)) +#define bFM4_MFS7_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4270E5B8UL)) +#define bFM4_MFS7_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4270E5BCUL)) +#define bFM4_MFS7_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4270E600UL)) +#define bFM4_MFS7_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4270E604UL)) +#define bFM4_MFS7_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4270E614UL)) +#define bFM4_MFS7_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4270E618UL)) +#define bFM4_MFS7_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270E61CUL)) +#define bFM4_MFS7_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4270E620UL)) +#define bFM4_MFS7_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4270E624UL)) + +/* MFS LIN channel 7 registers */ +#define bFM4_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM4_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM4_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM4_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM4_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM4_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM4_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM4_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM4_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM4_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM4_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM4_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) +#define bFM4_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM4_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM4_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM4_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM4_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM4_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM4_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) +#define bFM4_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM4_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM4_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM4_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM4_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM4_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM4_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM4_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM4_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM4_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM4_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM4_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* MFS I2C channel 7 registers */ +#define bFM4_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) +#define bFM4_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM4_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM4_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM4_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM4_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) +#define bFM4_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) +#define bFM4_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM4_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM4_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) +#define bFM4_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) +#define bFM4_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) +#define bFM4_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) +#define bFM4_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM4_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) +#define bFM4_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) +#define bFM4_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) +#define bFM4_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM4_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) +#define bFM4_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) +#define bFM4_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) +#define bFM4_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM4_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM4_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM4_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM4_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM4_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM4_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM4_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) +#define bFM4_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM4_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) +#define bFM4_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) +#define bFM4_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) +#define bFM4_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) +#define bFM4_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) +#define bFM4_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) +#define bFM4_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) +#define bFM4_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) +#define bFM4_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) +#define bFM4_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) +#define bFM4_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) +#define bFM4_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) +#define bFM4_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) +#define bFM4_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) +#define bFM4_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) +#define bFM4_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) +#define bFM4_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM4_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM4_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM4_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM4_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM4_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM4_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM4_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM4_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM4_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM4_MFS7_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM4_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM4_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM4_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM4_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM4_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM4_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM4_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM4_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM4_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM4_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM4_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM4_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM4_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM4_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM4_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM4_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM4_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM4_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* MFS UART channel 8 registers */ +#define bFM4_MFS8_UART_SMR_SOE *((volatile unsigned int*)(0x42710000UL)) +#define bFM4_MFS8_UART_SMR_BDS *((volatile unsigned int*)(0x42710008UL)) +#define bFM4_MFS8_UART_SMR_SBL *((volatile unsigned int*)(0x4271000CUL)) +#define bFM4_MFS8_UART_SMR_WUCR *((volatile unsigned int*)(0x42710010UL)) +#define bFM4_MFS8_UART_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) +#define bFM4_MFS8_UART_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) +#define bFM4_MFS8_UART_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) +#define bFM4_MFS8_UART_SCR_TXE *((volatile unsigned int*)(0x42710020UL)) +#define bFM4_MFS8_UART_SCR_RXE *((volatile unsigned int*)(0x42710024UL)) +#define bFM4_MFS8_UART_SCR_TBIE *((volatile unsigned int*)(0x42710028UL)) +#define bFM4_MFS8_UART_SCR_TIE *((volatile unsigned int*)(0x4271002CUL)) +#define bFM4_MFS8_UART_SCR_RIE *((volatile unsigned int*)(0x42710030UL)) +#define bFM4_MFS8_UART_SCR_UPCL *((volatile unsigned int*)(0x4271003CUL)) +#define bFM4_MFS8_UART_ESCR_L0 *((volatile unsigned int*)(0x42710080UL)) +#define bFM4_MFS8_UART_ESCR_L1 *((volatile unsigned int*)(0x42710084UL)) +#define bFM4_MFS8_UART_ESCR_L2 *((volatile unsigned int*)(0x42710088UL)) +#define bFM4_MFS8_UART_ESCR_P *((volatile unsigned int*)(0x4271008CUL)) +#define bFM4_MFS8_UART_ESCR_PEN *((volatile unsigned int*)(0x42710090UL)) +#define bFM4_MFS8_UART_ESCR_INV *((volatile unsigned int*)(0x42710094UL)) +#define bFM4_MFS8_UART_ESCR_ESBL *((volatile unsigned int*)(0x42710098UL)) +#define bFM4_MFS8_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271009CUL)) +#define bFM4_MFS8_UART_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) +#define bFM4_MFS8_UART_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) +#define bFM4_MFS8_UART_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) +#define bFM4_MFS8_UART_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) +#define bFM4_MFS8_UART_SSR_FRE *((volatile unsigned int*)(0x427100B0UL)) +#define bFM4_MFS8_UART_SSR_PE *((volatile unsigned int*)(0x427100B4UL)) +#define bFM4_MFS8_UART_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) +#define bFM4_MFS8_UART_RDR_AD *((volatile unsigned int*)(0x42710120UL)) +#define bFM4_MFS8_UART_TDR_AD *((volatile unsigned int*)(0x42710120UL)) +#define bFM4_MFS8_UART_BGR_EXT *((volatile unsigned int*)(0x427101BCUL)) +#define bFM4_MFS8_UART_BGR1_EXT *((volatile unsigned int*)(0x427101BCUL)) +#define bFM4_MFS8_UART_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_UART_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_UART_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_UART_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_UART_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_UART_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_UART_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_UART_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_UART_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_UART_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_UART_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_UART_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_UART_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_UART_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_UART_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_UART_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_UART_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_UART_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) +#define bFM4_MFS8_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) + +/* MFS CSIO channel 8 registers */ +#define bFM4_MFS8_CSIO_SMR_SOE *((volatile unsigned int*)(0x42710000UL)) +#define bFM4_MFS8_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42710004UL)) +#define bFM4_MFS8_CSIO_SMR_BDS *((volatile unsigned int*)(0x42710008UL)) +#define bFM4_MFS8_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271000CUL)) +#define bFM4_MFS8_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) +#define bFM4_MFS8_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) +#define bFM4_MFS8_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) +#define bFM4_MFS8_CSIO_SCR_TXE *((volatile unsigned int*)(0x42710020UL)) +#define bFM4_MFS8_CSIO_SCR_RXE *((volatile unsigned int*)(0x42710024UL)) +#define bFM4_MFS8_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42710028UL)) +#define bFM4_MFS8_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271002CUL)) +#define bFM4_MFS8_CSIO_SCR_RIE *((volatile unsigned int*)(0x42710030UL)) +#define bFM4_MFS8_CSIO_SCR_SPI *((volatile unsigned int*)(0x42710034UL)) +#define bFM4_MFS8_CSIO_SCR_MS *((volatile unsigned int*)(0x42710038UL)) +#define bFM4_MFS8_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271003CUL)) +#define bFM4_MFS8_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42710080UL)) +#define bFM4_MFS8_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42710084UL)) +#define bFM4_MFS8_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42710088UL)) +#define bFM4_MFS8_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271008CUL)) +#define bFM4_MFS8_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42710090UL)) +#define bFM4_MFS8_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42710098UL)) +#define bFM4_MFS8_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271009CUL)) +#define bFM4_MFS8_CSIO_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) +#define bFM4_MFS8_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) +#define bFM4_MFS8_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) +#define bFM4_MFS8_CSIO_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) +#define bFM4_MFS8_CSIO_SSR_AWC *((volatile unsigned int*)(0x427100B0UL)) +#define bFM4_MFS8_CSIO_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) +#define bFM4_MFS8_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_CSIO_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_CSIO_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_CSIO_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42710380UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42710384UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42710388UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271038CUL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42710390UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42710394UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42710398UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271039CUL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427103A0UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427103A4UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427103A8UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427103ACUL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427103B0UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427103B4UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427103B8UL)) +#define bFM4_MFS8_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427103BCUL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42710400UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42710404UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42710408UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271040CUL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42710410UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42710414UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42710418UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271041CUL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42710420UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42710424UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42710428UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271042CUL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42710430UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42710434UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42710438UL)) +#define bFM4_MFS8_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271043CUL)) +#define bFM4_MFS8_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42710480UL)) +#define bFM4_MFS8_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42710484UL)) +#define bFM4_MFS8_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42710488UL)) +#define bFM4_MFS8_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271048CUL)) +#define bFM4_MFS8_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42710490UL)) +#define bFM4_MFS8_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42710498UL)) +#define bFM4_MFS8_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271049CUL)) +#define bFM4_MFS8_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427104A0UL)) +#define bFM4_MFS8_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427104ACUL)) +#define bFM4_MFS8_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427104B0UL)) +#define bFM4_MFS8_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427104B4UL)) +#define bFM4_MFS8_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42710500UL)) +#define bFM4_MFS8_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42710504UL)) +#define bFM4_MFS8_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42710508UL)) +#define bFM4_MFS8_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271050CUL)) +#define bFM4_MFS8_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42710510UL)) +#define bFM4_MFS8_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42710514UL)) +#define bFM4_MFS8_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42710518UL)) +#define bFM4_MFS8_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271051CUL)) +#define bFM4_MFS8_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42710520UL)) +#define bFM4_MFS8_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42710524UL)) +#define bFM4_MFS8_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42710528UL)) +#define bFM4_MFS8_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271052CUL)) +#define bFM4_MFS8_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42710530UL)) +#define bFM4_MFS8_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42710534UL)) +#define bFM4_MFS8_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42710538UL)) +#define bFM4_MFS8_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271053CUL)) +#define bFM4_MFS8_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42710580UL)) +#define bFM4_MFS8_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42710584UL)) +#define bFM4_MFS8_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42710588UL)) +#define bFM4_MFS8_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271058CUL)) +#define bFM4_MFS8_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42710590UL)) +#define bFM4_MFS8_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42710594UL)) +#define bFM4_MFS8_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42710598UL)) +#define bFM4_MFS8_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271059CUL)) +#define bFM4_MFS8_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427105A0UL)) +#define bFM4_MFS8_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427105A4UL)) +#define bFM4_MFS8_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427105A8UL)) +#define bFM4_MFS8_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427105ACUL)) +#define bFM4_MFS8_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427105B0UL)) +#define bFM4_MFS8_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427105B4UL)) +#define bFM4_MFS8_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427105B8UL)) +#define bFM4_MFS8_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427105BCUL)) +#define bFM4_MFS8_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42710600UL)) +#define bFM4_MFS8_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42710604UL)) +#define bFM4_MFS8_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42710614UL)) +#define bFM4_MFS8_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42710618UL)) +#define bFM4_MFS8_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271061CUL)) +#define bFM4_MFS8_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42710620UL)) +#define bFM4_MFS8_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42710624UL)) + +/* MFS LIN channel 8 registers */ +#define bFM4_MFS8_LIN_SMR_SOE *((volatile unsigned int*)(0x42710000UL)) +#define bFM4_MFS8_LIN_SMR_SBL *((volatile unsigned int*)(0x4271000CUL)) +#define bFM4_MFS8_LIN_SMR_WUCR *((volatile unsigned int*)(0x42710010UL)) +#define bFM4_MFS8_LIN_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) +#define bFM4_MFS8_LIN_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) +#define bFM4_MFS8_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) +#define bFM4_MFS8_LIN_SCR_TXE *((volatile unsigned int*)(0x42710020UL)) +#define bFM4_MFS8_LIN_SCR_RXE *((volatile unsigned int*)(0x42710024UL)) +#define bFM4_MFS8_LIN_SCR_TBIE *((volatile unsigned int*)(0x42710028UL)) +#define bFM4_MFS8_LIN_SCR_TIE *((volatile unsigned int*)(0x4271002CUL)) +#define bFM4_MFS8_LIN_SCR_RIE *((volatile unsigned int*)(0x42710030UL)) +#define bFM4_MFS8_LIN_SCR_LBR *((volatile unsigned int*)(0x42710034UL)) +#define bFM4_MFS8_LIN_SCR_MS *((volatile unsigned int*)(0x42710038UL)) +#define bFM4_MFS8_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271003CUL)) +#define bFM4_MFS8_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42710080UL)) +#define bFM4_MFS8_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42710084UL)) +#define bFM4_MFS8_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42710088UL)) +#define bFM4_MFS8_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271008CUL)) +#define bFM4_MFS8_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42710090UL)) +#define bFM4_MFS8_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42710098UL)) +#define bFM4_MFS8_LIN_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) +#define bFM4_MFS8_LIN_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) +#define bFM4_MFS8_LIN_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) +#define bFM4_MFS8_LIN_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) +#define bFM4_MFS8_LIN_SSR_FRE *((volatile unsigned int*)(0x427100B0UL)) +#define bFM4_MFS8_LIN_SSR_LBD *((volatile unsigned int*)(0x427100B4UL)) +#define bFM4_MFS8_LIN_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) +#define bFM4_MFS8_LIN_BGR_EXT *((volatile unsigned int*)(0x427101BCUL)) +#define bFM4_MFS8_LIN_BGR1_EXT *((volatile unsigned int*)(0x427101BCUL)) +#define bFM4_MFS8_LIN_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_LIN_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_LIN_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_LIN_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_LIN_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_LIN_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_LIN_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_LIN_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_LIN_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_LIN_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) +#define bFM4_MFS8_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) + +/* MFS I2C channel 8 registers */ +#define bFM4_MFS8_I2C_SMR_TIE *((volatile unsigned int*)(0x42710008UL)) +#define bFM4_MFS8_I2C_SMR_RIE *((volatile unsigned int*)(0x4271000CUL)) +#define bFM4_MFS8_I2C_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) +#define bFM4_MFS8_I2C_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) +#define bFM4_MFS8_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) +#define bFM4_MFS8_I2C_IBCR_INT *((volatile unsigned int*)(0x42710020UL)) +#define bFM4_MFS8_I2C_IBCR_BER *((volatile unsigned int*)(0x42710024UL)) +#define bFM4_MFS8_I2C_IBCR_INTE *((volatile unsigned int*)(0x42710028UL)) +#define bFM4_MFS8_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271002CUL)) +#define bFM4_MFS8_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42710030UL)) +#define bFM4_MFS8_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42710034UL)) +#define bFM4_MFS8_I2C_IBCR_ACT *((volatile unsigned int*)(0x42710038UL)) +#define bFM4_MFS8_I2C_IBCR_SCC *((volatile unsigned int*)(0x42710038UL)) +#define bFM4_MFS8_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271003CUL)) +#define bFM4_MFS8_I2C_IBSR_BB *((volatile unsigned int*)(0x42710080UL)) +#define bFM4_MFS8_I2C_IBSR_SPC *((volatile unsigned int*)(0x42710084UL)) +#define bFM4_MFS8_I2C_IBSR_RSC *((volatile unsigned int*)(0x42710088UL)) +#define bFM4_MFS8_I2C_IBSR_AL *((volatile unsigned int*)(0x4271008CUL)) +#define bFM4_MFS8_I2C_IBSR_TRX *((volatile unsigned int*)(0x42710090UL)) +#define bFM4_MFS8_I2C_IBSR_RSA *((volatile unsigned int*)(0x42710094UL)) +#define bFM4_MFS8_I2C_IBSR_RACK *((volatile unsigned int*)(0x42710098UL)) +#define bFM4_MFS8_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271009CUL)) +#define bFM4_MFS8_I2C_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) +#define bFM4_MFS8_I2C_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) +#define bFM4_MFS8_I2C_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) +#define bFM4_MFS8_I2C_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) +#define bFM4_MFS8_I2C_SSR_TBIE *((volatile unsigned int*)(0x427100B0UL)) +#define bFM4_MFS8_I2C_SSR_DMA *((volatile unsigned int*)(0x427100B4UL)) +#define bFM4_MFS8_I2C_SSR_TSET *((volatile unsigned int*)(0x427100B8UL)) +#define bFM4_MFS8_I2C_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) +#define bFM4_MFS8_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42710200UL)) +#define bFM4_MFS8_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42710204UL)) +#define bFM4_MFS8_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42710208UL)) +#define bFM4_MFS8_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271020CUL)) +#define bFM4_MFS8_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42710210UL)) +#define bFM4_MFS8_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42710214UL)) +#define bFM4_MFS8_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42710218UL)) +#define bFM4_MFS8_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271021CUL)) +#define bFM4_MFS8_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42710220UL)) +#define bFM4_MFS8_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42710224UL)) +#define bFM4_MFS8_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42710228UL)) +#define bFM4_MFS8_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271022CUL)) +#define bFM4_MFS8_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42710230UL)) +#define bFM4_MFS8_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42710234UL)) +#define bFM4_MFS8_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42710238UL)) +#define bFM4_MFS8_I2C_ISMK_EN *((volatile unsigned int*)(0x4271023CUL)) +#define bFM4_MFS8_I2C_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_I2C_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_I2C_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_I2C_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_I2C_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_I2C_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_I2C_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) +#define bFM4_MFS8_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) +#define bFM4_MFS8_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) +#define bFM4_MFS8_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) +#define bFM4_MFS8_I2C_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) +#define bFM4_MFS8_I2C_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) +#define bFM4_MFS8_I2C_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) +#define bFM4_MFS8_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) +#define bFM4_MFS8_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) +#define bFM4_MFS8_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) +#define bFM4_MFS8_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) +#define bFM4_MFS8_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) +#define bFM4_MFS8_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) +#define bFM4_MFS8_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) +#define bFM4_MFS8_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) +#define bFM4_MFS8_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) +#define bFM4_MFS8_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) +#define bFM4_MFS8_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) +#define bFM4_MFS8_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) +#define bFM4_MFS8_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) +#define bFM4_MFS8_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) +#define bFM4_MFS8_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) +#define bFM4_MFS8_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) +#define bFM4_MFS8_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) +#define bFM4_MFS8_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) +#define bFM4_MFS8_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) +#define bFM4_MFS8_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) +#define bFM4_MFS8_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) +#define bFM4_MFS8_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) + +/* MFS UART channel 9 registers */ +#define bFM4_MFS9_UART_SMR_SOE *((volatile unsigned int*)(0x42712000UL)) +#define bFM4_MFS9_UART_SMR_BDS *((volatile unsigned int*)(0x42712008UL)) +#define bFM4_MFS9_UART_SMR_SBL *((volatile unsigned int*)(0x4271200CUL)) +#define bFM4_MFS9_UART_SMR_WUCR *((volatile unsigned int*)(0x42712010UL)) +#define bFM4_MFS9_UART_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) +#define bFM4_MFS9_UART_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) +#define bFM4_MFS9_UART_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) +#define bFM4_MFS9_UART_SCR_TXE *((volatile unsigned int*)(0x42712020UL)) +#define bFM4_MFS9_UART_SCR_RXE *((volatile unsigned int*)(0x42712024UL)) +#define bFM4_MFS9_UART_SCR_TBIE *((volatile unsigned int*)(0x42712028UL)) +#define bFM4_MFS9_UART_SCR_TIE *((volatile unsigned int*)(0x4271202CUL)) +#define bFM4_MFS9_UART_SCR_RIE *((volatile unsigned int*)(0x42712030UL)) +#define bFM4_MFS9_UART_SCR_UPCL *((volatile unsigned int*)(0x4271203CUL)) +#define bFM4_MFS9_UART_ESCR_L0 *((volatile unsigned int*)(0x42712080UL)) +#define bFM4_MFS9_UART_ESCR_L1 *((volatile unsigned int*)(0x42712084UL)) +#define bFM4_MFS9_UART_ESCR_L2 *((volatile unsigned int*)(0x42712088UL)) +#define bFM4_MFS9_UART_ESCR_P *((volatile unsigned int*)(0x4271208CUL)) +#define bFM4_MFS9_UART_ESCR_PEN *((volatile unsigned int*)(0x42712090UL)) +#define bFM4_MFS9_UART_ESCR_INV *((volatile unsigned int*)(0x42712094UL)) +#define bFM4_MFS9_UART_ESCR_ESBL *((volatile unsigned int*)(0x42712098UL)) +#define bFM4_MFS9_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271209CUL)) +#define bFM4_MFS9_UART_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) +#define bFM4_MFS9_UART_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) +#define bFM4_MFS9_UART_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) +#define bFM4_MFS9_UART_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) +#define bFM4_MFS9_UART_SSR_FRE *((volatile unsigned int*)(0x427120B0UL)) +#define bFM4_MFS9_UART_SSR_PE *((volatile unsigned int*)(0x427120B4UL)) +#define bFM4_MFS9_UART_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) +#define bFM4_MFS9_UART_RDR_AD *((volatile unsigned int*)(0x42712120UL)) +#define bFM4_MFS9_UART_TDR_AD *((volatile unsigned int*)(0x42712120UL)) +#define bFM4_MFS9_UART_BGR_EXT *((volatile unsigned int*)(0x427121BCUL)) +#define bFM4_MFS9_UART_BGR1_EXT *((volatile unsigned int*)(0x427121BCUL)) +#define bFM4_MFS9_UART_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_UART_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_UART_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_UART_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_UART_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_UART_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_UART_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_UART_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_UART_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_UART_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_UART_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_UART_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_UART_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_UART_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_UART_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_UART_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_UART_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_UART_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) +#define bFM4_MFS9_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) + +/* MFS CSIO channel 9 registers */ +#define bFM4_MFS9_CSIO_SMR_SOE *((volatile unsigned int*)(0x42712000UL)) +#define bFM4_MFS9_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42712004UL)) +#define bFM4_MFS9_CSIO_SMR_BDS *((volatile unsigned int*)(0x42712008UL)) +#define bFM4_MFS9_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271200CUL)) +#define bFM4_MFS9_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) +#define bFM4_MFS9_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) +#define bFM4_MFS9_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) +#define bFM4_MFS9_CSIO_SCR_TXE *((volatile unsigned int*)(0x42712020UL)) +#define bFM4_MFS9_CSIO_SCR_RXE *((volatile unsigned int*)(0x42712024UL)) +#define bFM4_MFS9_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42712028UL)) +#define bFM4_MFS9_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271202CUL)) +#define bFM4_MFS9_CSIO_SCR_RIE *((volatile unsigned int*)(0x42712030UL)) +#define bFM4_MFS9_CSIO_SCR_SPI *((volatile unsigned int*)(0x42712034UL)) +#define bFM4_MFS9_CSIO_SCR_MS *((volatile unsigned int*)(0x42712038UL)) +#define bFM4_MFS9_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271203CUL)) +#define bFM4_MFS9_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42712080UL)) +#define bFM4_MFS9_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42712084UL)) +#define bFM4_MFS9_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42712088UL)) +#define bFM4_MFS9_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271208CUL)) +#define bFM4_MFS9_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42712090UL)) +#define bFM4_MFS9_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42712098UL)) +#define bFM4_MFS9_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271209CUL)) +#define bFM4_MFS9_CSIO_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) +#define bFM4_MFS9_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) +#define bFM4_MFS9_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) +#define bFM4_MFS9_CSIO_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) +#define bFM4_MFS9_CSIO_SSR_AWC *((volatile unsigned int*)(0x427120B0UL)) +#define bFM4_MFS9_CSIO_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) +#define bFM4_MFS9_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_CSIO_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_CSIO_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_CSIO_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42712380UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42712384UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42712388UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271238CUL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42712390UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42712394UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42712398UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271239CUL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427123A0UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427123A4UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427123A8UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427123ACUL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427123B0UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427123B4UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427123B8UL)) +#define bFM4_MFS9_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427123BCUL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42712400UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42712404UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42712408UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271240CUL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42712410UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42712414UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42712418UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271241CUL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42712420UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42712424UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42712428UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271242CUL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42712430UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42712434UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42712438UL)) +#define bFM4_MFS9_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271243CUL)) +#define bFM4_MFS9_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42712480UL)) +#define bFM4_MFS9_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42712484UL)) +#define bFM4_MFS9_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42712488UL)) +#define bFM4_MFS9_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271248CUL)) +#define bFM4_MFS9_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42712490UL)) +#define bFM4_MFS9_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42712498UL)) +#define bFM4_MFS9_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271249CUL)) +#define bFM4_MFS9_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427124A0UL)) +#define bFM4_MFS9_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427124ACUL)) +#define bFM4_MFS9_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427124B0UL)) +#define bFM4_MFS9_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427124B4UL)) +#define bFM4_MFS9_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42712500UL)) +#define bFM4_MFS9_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42712504UL)) +#define bFM4_MFS9_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42712508UL)) +#define bFM4_MFS9_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271250CUL)) +#define bFM4_MFS9_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42712510UL)) +#define bFM4_MFS9_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42712514UL)) +#define bFM4_MFS9_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42712518UL)) +#define bFM4_MFS9_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271251CUL)) +#define bFM4_MFS9_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42712520UL)) +#define bFM4_MFS9_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42712524UL)) +#define bFM4_MFS9_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42712528UL)) +#define bFM4_MFS9_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271252CUL)) +#define bFM4_MFS9_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42712530UL)) +#define bFM4_MFS9_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42712534UL)) +#define bFM4_MFS9_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42712538UL)) +#define bFM4_MFS9_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271253CUL)) +#define bFM4_MFS9_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42712580UL)) +#define bFM4_MFS9_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42712584UL)) +#define bFM4_MFS9_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42712588UL)) +#define bFM4_MFS9_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271258CUL)) +#define bFM4_MFS9_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42712590UL)) +#define bFM4_MFS9_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42712594UL)) +#define bFM4_MFS9_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42712598UL)) +#define bFM4_MFS9_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271259CUL)) +#define bFM4_MFS9_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427125A0UL)) +#define bFM4_MFS9_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427125A4UL)) +#define bFM4_MFS9_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427125A8UL)) +#define bFM4_MFS9_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427125ACUL)) +#define bFM4_MFS9_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427125B0UL)) +#define bFM4_MFS9_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427125B4UL)) +#define bFM4_MFS9_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427125B8UL)) +#define bFM4_MFS9_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427125BCUL)) +#define bFM4_MFS9_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42712600UL)) +#define bFM4_MFS9_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42712604UL)) +#define bFM4_MFS9_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42712614UL)) +#define bFM4_MFS9_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42712618UL)) +#define bFM4_MFS9_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271261CUL)) +#define bFM4_MFS9_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42712620UL)) +#define bFM4_MFS9_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42712624UL)) + +/* MFS LIN channel 9 registers */ +#define bFM4_MFS9_LIN_SMR_SOE *((volatile unsigned int*)(0x42712000UL)) +#define bFM4_MFS9_LIN_SMR_SBL *((volatile unsigned int*)(0x4271200CUL)) +#define bFM4_MFS9_LIN_SMR_WUCR *((volatile unsigned int*)(0x42712010UL)) +#define bFM4_MFS9_LIN_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) +#define bFM4_MFS9_LIN_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) +#define bFM4_MFS9_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) +#define bFM4_MFS9_LIN_SCR_TXE *((volatile unsigned int*)(0x42712020UL)) +#define bFM4_MFS9_LIN_SCR_RXE *((volatile unsigned int*)(0x42712024UL)) +#define bFM4_MFS9_LIN_SCR_TBIE *((volatile unsigned int*)(0x42712028UL)) +#define bFM4_MFS9_LIN_SCR_TIE *((volatile unsigned int*)(0x4271202CUL)) +#define bFM4_MFS9_LIN_SCR_RIE *((volatile unsigned int*)(0x42712030UL)) +#define bFM4_MFS9_LIN_SCR_LBR *((volatile unsigned int*)(0x42712034UL)) +#define bFM4_MFS9_LIN_SCR_MS *((volatile unsigned int*)(0x42712038UL)) +#define bFM4_MFS9_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271203CUL)) +#define bFM4_MFS9_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42712080UL)) +#define bFM4_MFS9_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42712084UL)) +#define bFM4_MFS9_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42712088UL)) +#define bFM4_MFS9_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271208CUL)) +#define bFM4_MFS9_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42712090UL)) +#define bFM4_MFS9_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42712098UL)) +#define bFM4_MFS9_LIN_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) +#define bFM4_MFS9_LIN_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) +#define bFM4_MFS9_LIN_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) +#define bFM4_MFS9_LIN_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) +#define bFM4_MFS9_LIN_SSR_FRE *((volatile unsigned int*)(0x427120B0UL)) +#define bFM4_MFS9_LIN_SSR_LBD *((volatile unsigned int*)(0x427120B4UL)) +#define bFM4_MFS9_LIN_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) +#define bFM4_MFS9_LIN_BGR_EXT *((volatile unsigned int*)(0x427121BCUL)) +#define bFM4_MFS9_LIN_BGR1_EXT *((volatile unsigned int*)(0x427121BCUL)) +#define bFM4_MFS9_LIN_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_LIN_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_LIN_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_LIN_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_LIN_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_LIN_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_LIN_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_LIN_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_LIN_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_LIN_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) +#define bFM4_MFS9_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) + +/* MFS I2C channel 9 registers */ +#define bFM4_MFS9_I2C_SMR_TIE *((volatile unsigned int*)(0x42712008UL)) +#define bFM4_MFS9_I2C_SMR_RIE *((volatile unsigned int*)(0x4271200CUL)) +#define bFM4_MFS9_I2C_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) +#define bFM4_MFS9_I2C_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) +#define bFM4_MFS9_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) +#define bFM4_MFS9_I2C_IBCR_INT *((volatile unsigned int*)(0x42712020UL)) +#define bFM4_MFS9_I2C_IBCR_BER *((volatile unsigned int*)(0x42712024UL)) +#define bFM4_MFS9_I2C_IBCR_INTE *((volatile unsigned int*)(0x42712028UL)) +#define bFM4_MFS9_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271202CUL)) +#define bFM4_MFS9_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42712030UL)) +#define bFM4_MFS9_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42712034UL)) +#define bFM4_MFS9_I2C_IBCR_ACT *((volatile unsigned int*)(0x42712038UL)) +#define bFM4_MFS9_I2C_IBCR_SCC *((volatile unsigned int*)(0x42712038UL)) +#define bFM4_MFS9_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271203CUL)) +#define bFM4_MFS9_I2C_IBSR_BB *((volatile unsigned int*)(0x42712080UL)) +#define bFM4_MFS9_I2C_IBSR_SPC *((volatile unsigned int*)(0x42712084UL)) +#define bFM4_MFS9_I2C_IBSR_RSC *((volatile unsigned int*)(0x42712088UL)) +#define bFM4_MFS9_I2C_IBSR_AL *((volatile unsigned int*)(0x4271208CUL)) +#define bFM4_MFS9_I2C_IBSR_TRX *((volatile unsigned int*)(0x42712090UL)) +#define bFM4_MFS9_I2C_IBSR_RSA *((volatile unsigned int*)(0x42712094UL)) +#define bFM4_MFS9_I2C_IBSR_RACK *((volatile unsigned int*)(0x42712098UL)) +#define bFM4_MFS9_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271209CUL)) +#define bFM4_MFS9_I2C_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) +#define bFM4_MFS9_I2C_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) +#define bFM4_MFS9_I2C_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) +#define bFM4_MFS9_I2C_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) +#define bFM4_MFS9_I2C_SSR_TBIE *((volatile unsigned int*)(0x427120B0UL)) +#define bFM4_MFS9_I2C_SSR_DMA *((volatile unsigned int*)(0x427120B4UL)) +#define bFM4_MFS9_I2C_SSR_TSET *((volatile unsigned int*)(0x427120B8UL)) +#define bFM4_MFS9_I2C_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) +#define bFM4_MFS9_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42712200UL)) +#define bFM4_MFS9_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42712204UL)) +#define bFM4_MFS9_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42712208UL)) +#define bFM4_MFS9_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271220CUL)) +#define bFM4_MFS9_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42712210UL)) +#define bFM4_MFS9_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42712214UL)) +#define bFM4_MFS9_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42712218UL)) +#define bFM4_MFS9_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271221CUL)) +#define bFM4_MFS9_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42712220UL)) +#define bFM4_MFS9_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42712224UL)) +#define bFM4_MFS9_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42712228UL)) +#define bFM4_MFS9_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271222CUL)) +#define bFM4_MFS9_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42712230UL)) +#define bFM4_MFS9_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42712234UL)) +#define bFM4_MFS9_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42712238UL)) +#define bFM4_MFS9_I2C_ISMK_EN *((volatile unsigned int*)(0x4271223CUL)) +#define bFM4_MFS9_I2C_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_I2C_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_I2C_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_I2C_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_I2C_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_I2C_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_I2C_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) +#define bFM4_MFS9_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) +#define bFM4_MFS9_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) +#define bFM4_MFS9_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) +#define bFM4_MFS9_I2C_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) +#define bFM4_MFS9_I2C_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) +#define bFM4_MFS9_I2C_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) +#define bFM4_MFS9_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) +#define bFM4_MFS9_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) +#define bFM4_MFS9_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) +#define bFM4_MFS9_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) +#define bFM4_MFS9_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) +#define bFM4_MFS9_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) +#define bFM4_MFS9_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) +#define bFM4_MFS9_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) +#define bFM4_MFS9_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) +#define bFM4_MFS9_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) +#define bFM4_MFS9_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) +#define bFM4_MFS9_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) +#define bFM4_MFS9_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) +#define bFM4_MFS9_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) +#define bFM4_MFS9_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) +#define bFM4_MFS9_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) +#define bFM4_MFS9_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) +#define bFM4_MFS9_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) +#define bFM4_MFS9_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) +#define bFM4_MFS9_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) +#define bFM4_MFS9_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) +#define bFM4_MFS9_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) + +/* MFS UART channel 10 registers */ +#define bFM4_MFS10_UART_SMR_SOE *((volatile unsigned int*)(0x42714000UL)) +#define bFM4_MFS10_UART_SMR_BDS *((volatile unsigned int*)(0x42714008UL)) +#define bFM4_MFS10_UART_SMR_SBL *((volatile unsigned int*)(0x4271400CUL)) +#define bFM4_MFS10_UART_SMR_WUCR *((volatile unsigned int*)(0x42714010UL)) +#define bFM4_MFS10_UART_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) +#define bFM4_MFS10_UART_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) +#define bFM4_MFS10_UART_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) +#define bFM4_MFS10_UART_SCR_TXE *((volatile unsigned int*)(0x42714020UL)) +#define bFM4_MFS10_UART_SCR_RXE *((volatile unsigned int*)(0x42714024UL)) +#define bFM4_MFS10_UART_SCR_TBIE *((volatile unsigned int*)(0x42714028UL)) +#define bFM4_MFS10_UART_SCR_TIE *((volatile unsigned int*)(0x4271402CUL)) +#define bFM4_MFS10_UART_SCR_RIE *((volatile unsigned int*)(0x42714030UL)) +#define bFM4_MFS10_UART_SCR_UPCL *((volatile unsigned int*)(0x4271403CUL)) +#define bFM4_MFS10_UART_ESCR_L0 *((volatile unsigned int*)(0x42714080UL)) +#define bFM4_MFS10_UART_ESCR_L1 *((volatile unsigned int*)(0x42714084UL)) +#define bFM4_MFS10_UART_ESCR_L2 *((volatile unsigned int*)(0x42714088UL)) +#define bFM4_MFS10_UART_ESCR_P *((volatile unsigned int*)(0x4271408CUL)) +#define bFM4_MFS10_UART_ESCR_PEN *((volatile unsigned int*)(0x42714090UL)) +#define bFM4_MFS10_UART_ESCR_INV *((volatile unsigned int*)(0x42714094UL)) +#define bFM4_MFS10_UART_ESCR_ESBL *((volatile unsigned int*)(0x42714098UL)) +#define bFM4_MFS10_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271409CUL)) +#define bFM4_MFS10_UART_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) +#define bFM4_MFS10_UART_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) +#define bFM4_MFS10_UART_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) +#define bFM4_MFS10_UART_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) +#define bFM4_MFS10_UART_SSR_FRE *((volatile unsigned int*)(0x427140B0UL)) +#define bFM4_MFS10_UART_SSR_PE *((volatile unsigned int*)(0x427140B4UL)) +#define bFM4_MFS10_UART_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) +#define bFM4_MFS10_UART_RDR_AD *((volatile unsigned int*)(0x42714120UL)) +#define bFM4_MFS10_UART_TDR_AD *((volatile unsigned int*)(0x42714120UL)) +#define bFM4_MFS10_UART_BGR_EXT *((volatile unsigned int*)(0x427141BCUL)) +#define bFM4_MFS10_UART_BGR1_EXT *((volatile unsigned int*)(0x427141BCUL)) +#define bFM4_MFS10_UART_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_UART_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_UART_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_UART_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_UART_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_UART_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_UART_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_UART_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_UART_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_UART_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_UART_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_UART_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_UART_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_UART_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_UART_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_UART_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_UART_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_UART_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) +#define bFM4_MFS10_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) + +/* MFS CSIO channel 10 registers */ +#define bFM4_MFS10_CSIO_SMR_SOE *((volatile unsigned int*)(0x42714000UL)) +#define bFM4_MFS10_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42714004UL)) +#define bFM4_MFS10_CSIO_SMR_BDS *((volatile unsigned int*)(0x42714008UL)) +#define bFM4_MFS10_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271400CUL)) +#define bFM4_MFS10_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) +#define bFM4_MFS10_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) +#define bFM4_MFS10_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) +#define bFM4_MFS10_CSIO_SCR_TXE *((volatile unsigned int*)(0x42714020UL)) +#define bFM4_MFS10_CSIO_SCR_RXE *((volatile unsigned int*)(0x42714024UL)) +#define bFM4_MFS10_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42714028UL)) +#define bFM4_MFS10_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271402CUL)) +#define bFM4_MFS10_CSIO_SCR_RIE *((volatile unsigned int*)(0x42714030UL)) +#define bFM4_MFS10_CSIO_SCR_SPI *((volatile unsigned int*)(0x42714034UL)) +#define bFM4_MFS10_CSIO_SCR_MS *((volatile unsigned int*)(0x42714038UL)) +#define bFM4_MFS10_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271403CUL)) +#define bFM4_MFS10_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42714080UL)) +#define bFM4_MFS10_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42714084UL)) +#define bFM4_MFS10_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42714088UL)) +#define bFM4_MFS10_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271408CUL)) +#define bFM4_MFS10_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42714090UL)) +#define bFM4_MFS10_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42714098UL)) +#define bFM4_MFS10_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271409CUL)) +#define bFM4_MFS10_CSIO_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) +#define bFM4_MFS10_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) +#define bFM4_MFS10_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) +#define bFM4_MFS10_CSIO_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) +#define bFM4_MFS10_CSIO_SSR_AWC *((volatile unsigned int*)(0x427140B0UL)) +#define bFM4_MFS10_CSIO_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) +#define bFM4_MFS10_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_CSIO_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_CSIO_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_CSIO_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42714380UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42714384UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42714388UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271438CUL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42714390UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42714394UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42714398UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271439CUL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427143A0UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427143A4UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427143A8UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427143ACUL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427143B0UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427143B4UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427143B8UL)) +#define bFM4_MFS10_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427143BCUL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42714400UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42714404UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42714408UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271440CUL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42714410UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42714414UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42714418UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271441CUL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42714420UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42714424UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42714428UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271442CUL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42714430UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42714434UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42714438UL)) +#define bFM4_MFS10_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271443CUL)) +#define bFM4_MFS10_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42714480UL)) +#define bFM4_MFS10_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42714484UL)) +#define bFM4_MFS10_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42714488UL)) +#define bFM4_MFS10_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271448CUL)) +#define bFM4_MFS10_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42714490UL)) +#define bFM4_MFS10_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42714498UL)) +#define bFM4_MFS10_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271449CUL)) +#define bFM4_MFS10_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427144A0UL)) +#define bFM4_MFS10_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427144ACUL)) +#define bFM4_MFS10_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427144B0UL)) +#define bFM4_MFS10_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427144B4UL)) +#define bFM4_MFS10_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42714500UL)) +#define bFM4_MFS10_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42714504UL)) +#define bFM4_MFS10_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42714508UL)) +#define bFM4_MFS10_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271450CUL)) +#define bFM4_MFS10_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42714510UL)) +#define bFM4_MFS10_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42714514UL)) +#define bFM4_MFS10_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42714518UL)) +#define bFM4_MFS10_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271451CUL)) +#define bFM4_MFS10_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42714520UL)) +#define bFM4_MFS10_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42714524UL)) +#define bFM4_MFS10_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42714528UL)) +#define bFM4_MFS10_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271452CUL)) +#define bFM4_MFS10_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42714530UL)) +#define bFM4_MFS10_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42714534UL)) +#define bFM4_MFS10_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42714538UL)) +#define bFM4_MFS10_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271453CUL)) +#define bFM4_MFS10_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42714580UL)) +#define bFM4_MFS10_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42714584UL)) +#define bFM4_MFS10_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42714588UL)) +#define bFM4_MFS10_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271458CUL)) +#define bFM4_MFS10_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42714590UL)) +#define bFM4_MFS10_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42714594UL)) +#define bFM4_MFS10_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42714598UL)) +#define bFM4_MFS10_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271459CUL)) +#define bFM4_MFS10_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427145A0UL)) +#define bFM4_MFS10_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427145A4UL)) +#define bFM4_MFS10_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427145A8UL)) +#define bFM4_MFS10_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427145ACUL)) +#define bFM4_MFS10_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427145B0UL)) +#define bFM4_MFS10_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427145B4UL)) +#define bFM4_MFS10_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427145B8UL)) +#define bFM4_MFS10_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427145BCUL)) +#define bFM4_MFS10_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42714600UL)) +#define bFM4_MFS10_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42714604UL)) +#define bFM4_MFS10_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42714614UL)) +#define bFM4_MFS10_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42714618UL)) +#define bFM4_MFS10_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271461CUL)) +#define bFM4_MFS10_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42714620UL)) +#define bFM4_MFS10_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42714624UL)) + +/* MFS LIN channel 10 registers */ +#define bFM4_MFS10_LIN_SMR_SOE *((volatile unsigned int*)(0x42714000UL)) +#define bFM4_MFS10_LIN_SMR_SBL *((volatile unsigned int*)(0x4271400CUL)) +#define bFM4_MFS10_LIN_SMR_WUCR *((volatile unsigned int*)(0x42714010UL)) +#define bFM4_MFS10_LIN_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) +#define bFM4_MFS10_LIN_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) +#define bFM4_MFS10_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) +#define bFM4_MFS10_LIN_SCR_TXE *((volatile unsigned int*)(0x42714020UL)) +#define bFM4_MFS10_LIN_SCR_RXE *((volatile unsigned int*)(0x42714024UL)) +#define bFM4_MFS10_LIN_SCR_TBIE *((volatile unsigned int*)(0x42714028UL)) +#define bFM4_MFS10_LIN_SCR_TIE *((volatile unsigned int*)(0x4271402CUL)) +#define bFM4_MFS10_LIN_SCR_RIE *((volatile unsigned int*)(0x42714030UL)) +#define bFM4_MFS10_LIN_SCR_LBR *((volatile unsigned int*)(0x42714034UL)) +#define bFM4_MFS10_LIN_SCR_MS *((volatile unsigned int*)(0x42714038UL)) +#define bFM4_MFS10_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271403CUL)) +#define bFM4_MFS10_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42714080UL)) +#define bFM4_MFS10_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42714084UL)) +#define bFM4_MFS10_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42714088UL)) +#define bFM4_MFS10_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271408CUL)) +#define bFM4_MFS10_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42714090UL)) +#define bFM4_MFS10_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42714098UL)) +#define bFM4_MFS10_LIN_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) +#define bFM4_MFS10_LIN_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) +#define bFM4_MFS10_LIN_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) +#define bFM4_MFS10_LIN_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) +#define bFM4_MFS10_LIN_SSR_FRE *((volatile unsigned int*)(0x427140B0UL)) +#define bFM4_MFS10_LIN_SSR_LBD *((volatile unsigned int*)(0x427140B4UL)) +#define bFM4_MFS10_LIN_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) +#define bFM4_MFS10_LIN_BGR_EXT *((volatile unsigned int*)(0x427141BCUL)) +#define bFM4_MFS10_LIN_BGR1_EXT *((volatile unsigned int*)(0x427141BCUL)) +#define bFM4_MFS10_LIN_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_LIN_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_LIN_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_LIN_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_LIN_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_LIN_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_LIN_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_LIN_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_LIN_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_LIN_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) +#define bFM4_MFS10_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) + +/* MFS I2C channel 10 registers */ +#define bFM4_MFS10_I2C_SMR_TIE *((volatile unsigned int*)(0x42714008UL)) +#define bFM4_MFS10_I2C_SMR_RIE *((volatile unsigned int*)(0x4271400CUL)) +#define bFM4_MFS10_I2C_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) +#define bFM4_MFS10_I2C_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) +#define bFM4_MFS10_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) +#define bFM4_MFS10_I2C_IBCR_INT *((volatile unsigned int*)(0x42714020UL)) +#define bFM4_MFS10_I2C_IBCR_BER *((volatile unsigned int*)(0x42714024UL)) +#define bFM4_MFS10_I2C_IBCR_INTE *((volatile unsigned int*)(0x42714028UL)) +#define bFM4_MFS10_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271402CUL)) +#define bFM4_MFS10_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42714030UL)) +#define bFM4_MFS10_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42714034UL)) +#define bFM4_MFS10_I2C_IBCR_ACT *((volatile unsigned int*)(0x42714038UL)) +#define bFM4_MFS10_I2C_IBCR_SCC *((volatile unsigned int*)(0x42714038UL)) +#define bFM4_MFS10_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271403CUL)) +#define bFM4_MFS10_I2C_IBSR_BB *((volatile unsigned int*)(0x42714080UL)) +#define bFM4_MFS10_I2C_IBSR_SPC *((volatile unsigned int*)(0x42714084UL)) +#define bFM4_MFS10_I2C_IBSR_RSC *((volatile unsigned int*)(0x42714088UL)) +#define bFM4_MFS10_I2C_IBSR_AL *((volatile unsigned int*)(0x4271408CUL)) +#define bFM4_MFS10_I2C_IBSR_TRX *((volatile unsigned int*)(0x42714090UL)) +#define bFM4_MFS10_I2C_IBSR_RSA *((volatile unsigned int*)(0x42714094UL)) +#define bFM4_MFS10_I2C_IBSR_RACK *((volatile unsigned int*)(0x42714098UL)) +#define bFM4_MFS10_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271409CUL)) +#define bFM4_MFS10_I2C_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) +#define bFM4_MFS10_I2C_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) +#define bFM4_MFS10_I2C_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) +#define bFM4_MFS10_I2C_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) +#define bFM4_MFS10_I2C_SSR_TBIE *((volatile unsigned int*)(0x427140B0UL)) +#define bFM4_MFS10_I2C_SSR_DMA *((volatile unsigned int*)(0x427140B4UL)) +#define bFM4_MFS10_I2C_SSR_TSET *((volatile unsigned int*)(0x427140B8UL)) +#define bFM4_MFS10_I2C_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) +#define bFM4_MFS10_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42714200UL)) +#define bFM4_MFS10_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42714204UL)) +#define bFM4_MFS10_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42714208UL)) +#define bFM4_MFS10_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271420CUL)) +#define bFM4_MFS10_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42714210UL)) +#define bFM4_MFS10_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42714214UL)) +#define bFM4_MFS10_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42714218UL)) +#define bFM4_MFS10_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271421CUL)) +#define bFM4_MFS10_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42714220UL)) +#define bFM4_MFS10_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42714224UL)) +#define bFM4_MFS10_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42714228UL)) +#define bFM4_MFS10_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271422CUL)) +#define bFM4_MFS10_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42714230UL)) +#define bFM4_MFS10_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42714234UL)) +#define bFM4_MFS10_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42714238UL)) +#define bFM4_MFS10_I2C_ISMK_EN *((volatile unsigned int*)(0x4271423CUL)) +#define bFM4_MFS10_I2C_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_I2C_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_I2C_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_I2C_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_I2C_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_I2C_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_I2C_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) +#define bFM4_MFS10_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) +#define bFM4_MFS10_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) +#define bFM4_MFS10_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) +#define bFM4_MFS10_I2C_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) +#define bFM4_MFS10_I2C_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) +#define bFM4_MFS10_I2C_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) +#define bFM4_MFS10_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) +#define bFM4_MFS10_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) +#define bFM4_MFS10_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) +#define bFM4_MFS10_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) +#define bFM4_MFS10_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) +#define bFM4_MFS10_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) +#define bFM4_MFS10_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) +#define bFM4_MFS10_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) +#define bFM4_MFS10_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) +#define bFM4_MFS10_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) +#define bFM4_MFS10_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) +#define bFM4_MFS10_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) +#define bFM4_MFS10_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) +#define bFM4_MFS10_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) +#define bFM4_MFS10_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) +#define bFM4_MFS10_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) +#define bFM4_MFS10_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) +#define bFM4_MFS10_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) +#define bFM4_MFS10_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) +#define bFM4_MFS10_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) +#define bFM4_MFS10_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) +#define bFM4_MFS10_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) + +/* MFS UART channel 11 registers */ +#define bFM4_MFS11_UART_SMR_SOE *((volatile unsigned int*)(0x42716000UL)) +#define bFM4_MFS11_UART_SMR_BDS *((volatile unsigned int*)(0x42716008UL)) +#define bFM4_MFS11_UART_SMR_SBL *((volatile unsigned int*)(0x4271600CUL)) +#define bFM4_MFS11_UART_SMR_WUCR *((volatile unsigned int*)(0x42716010UL)) +#define bFM4_MFS11_UART_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) +#define bFM4_MFS11_UART_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) +#define bFM4_MFS11_UART_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) +#define bFM4_MFS11_UART_SCR_TXE *((volatile unsigned int*)(0x42716020UL)) +#define bFM4_MFS11_UART_SCR_RXE *((volatile unsigned int*)(0x42716024UL)) +#define bFM4_MFS11_UART_SCR_TBIE *((volatile unsigned int*)(0x42716028UL)) +#define bFM4_MFS11_UART_SCR_TIE *((volatile unsigned int*)(0x4271602CUL)) +#define bFM4_MFS11_UART_SCR_RIE *((volatile unsigned int*)(0x42716030UL)) +#define bFM4_MFS11_UART_SCR_UPCL *((volatile unsigned int*)(0x4271603CUL)) +#define bFM4_MFS11_UART_ESCR_L0 *((volatile unsigned int*)(0x42716080UL)) +#define bFM4_MFS11_UART_ESCR_L1 *((volatile unsigned int*)(0x42716084UL)) +#define bFM4_MFS11_UART_ESCR_L2 *((volatile unsigned int*)(0x42716088UL)) +#define bFM4_MFS11_UART_ESCR_P *((volatile unsigned int*)(0x4271608CUL)) +#define bFM4_MFS11_UART_ESCR_PEN *((volatile unsigned int*)(0x42716090UL)) +#define bFM4_MFS11_UART_ESCR_INV *((volatile unsigned int*)(0x42716094UL)) +#define bFM4_MFS11_UART_ESCR_ESBL *((volatile unsigned int*)(0x42716098UL)) +#define bFM4_MFS11_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271609CUL)) +#define bFM4_MFS11_UART_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) +#define bFM4_MFS11_UART_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) +#define bFM4_MFS11_UART_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) +#define bFM4_MFS11_UART_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) +#define bFM4_MFS11_UART_SSR_FRE *((volatile unsigned int*)(0x427160B0UL)) +#define bFM4_MFS11_UART_SSR_PE *((volatile unsigned int*)(0x427160B4UL)) +#define bFM4_MFS11_UART_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) +#define bFM4_MFS11_UART_RDR_AD *((volatile unsigned int*)(0x42716120UL)) +#define bFM4_MFS11_UART_TDR_AD *((volatile unsigned int*)(0x42716120UL)) +#define bFM4_MFS11_UART_BGR_EXT *((volatile unsigned int*)(0x427161BCUL)) +#define bFM4_MFS11_UART_BGR1_EXT *((volatile unsigned int*)(0x427161BCUL)) +#define bFM4_MFS11_UART_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_UART_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_UART_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_UART_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_UART_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_UART_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_UART_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_UART_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_UART_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_UART_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_UART_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_UART_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_UART_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_UART_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_UART_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_UART_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_UART_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_UART_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) +#define bFM4_MFS11_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) + +/* MFS CSIO channel 11 registers */ +#define bFM4_MFS11_CSIO_SMR_SOE *((volatile unsigned int*)(0x42716000UL)) +#define bFM4_MFS11_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42716004UL)) +#define bFM4_MFS11_CSIO_SMR_BDS *((volatile unsigned int*)(0x42716008UL)) +#define bFM4_MFS11_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271600CUL)) +#define bFM4_MFS11_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) +#define bFM4_MFS11_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) +#define bFM4_MFS11_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) +#define bFM4_MFS11_CSIO_SCR_TXE *((volatile unsigned int*)(0x42716020UL)) +#define bFM4_MFS11_CSIO_SCR_RXE *((volatile unsigned int*)(0x42716024UL)) +#define bFM4_MFS11_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42716028UL)) +#define bFM4_MFS11_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271602CUL)) +#define bFM4_MFS11_CSIO_SCR_RIE *((volatile unsigned int*)(0x42716030UL)) +#define bFM4_MFS11_CSIO_SCR_SPI *((volatile unsigned int*)(0x42716034UL)) +#define bFM4_MFS11_CSIO_SCR_MS *((volatile unsigned int*)(0x42716038UL)) +#define bFM4_MFS11_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271603CUL)) +#define bFM4_MFS11_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42716080UL)) +#define bFM4_MFS11_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42716084UL)) +#define bFM4_MFS11_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42716088UL)) +#define bFM4_MFS11_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271608CUL)) +#define bFM4_MFS11_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42716090UL)) +#define bFM4_MFS11_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42716098UL)) +#define bFM4_MFS11_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271609CUL)) +#define bFM4_MFS11_CSIO_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) +#define bFM4_MFS11_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) +#define bFM4_MFS11_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) +#define bFM4_MFS11_CSIO_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) +#define bFM4_MFS11_CSIO_SSR_AWC *((volatile unsigned int*)(0x427160B0UL)) +#define bFM4_MFS11_CSIO_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) +#define bFM4_MFS11_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_CSIO_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_CSIO_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_CSIO_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42716380UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42716384UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42716388UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271638CUL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42716390UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42716394UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42716398UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271639CUL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427163A0UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427163A4UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427163A8UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427163ACUL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427163B0UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427163B4UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427163B8UL)) +#define bFM4_MFS11_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427163BCUL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42716400UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42716404UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42716408UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271640CUL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42716410UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42716414UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42716418UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271641CUL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42716420UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42716424UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42716428UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271642CUL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42716430UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42716434UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42716438UL)) +#define bFM4_MFS11_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271643CUL)) +#define bFM4_MFS11_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42716480UL)) +#define bFM4_MFS11_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42716484UL)) +#define bFM4_MFS11_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42716488UL)) +#define bFM4_MFS11_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271648CUL)) +#define bFM4_MFS11_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42716490UL)) +#define bFM4_MFS11_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42716498UL)) +#define bFM4_MFS11_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271649CUL)) +#define bFM4_MFS11_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427164A0UL)) +#define bFM4_MFS11_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427164ACUL)) +#define bFM4_MFS11_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427164B0UL)) +#define bFM4_MFS11_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427164B4UL)) +#define bFM4_MFS11_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42716500UL)) +#define bFM4_MFS11_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42716504UL)) +#define bFM4_MFS11_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42716508UL)) +#define bFM4_MFS11_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271650CUL)) +#define bFM4_MFS11_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42716510UL)) +#define bFM4_MFS11_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42716514UL)) +#define bFM4_MFS11_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42716518UL)) +#define bFM4_MFS11_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271651CUL)) +#define bFM4_MFS11_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42716520UL)) +#define bFM4_MFS11_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42716524UL)) +#define bFM4_MFS11_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42716528UL)) +#define bFM4_MFS11_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271652CUL)) +#define bFM4_MFS11_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42716530UL)) +#define bFM4_MFS11_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42716534UL)) +#define bFM4_MFS11_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42716538UL)) +#define bFM4_MFS11_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271653CUL)) +#define bFM4_MFS11_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42716580UL)) +#define bFM4_MFS11_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42716584UL)) +#define bFM4_MFS11_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42716588UL)) +#define bFM4_MFS11_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271658CUL)) +#define bFM4_MFS11_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42716590UL)) +#define bFM4_MFS11_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42716594UL)) +#define bFM4_MFS11_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42716598UL)) +#define bFM4_MFS11_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271659CUL)) +#define bFM4_MFS11_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427165A0UL)) +#define bFM4_MFS11_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427165A4UL)) +#define bFM4_MFS11_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427165A8UL)) +#define bFM4_MFS11_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427165ACUL)) +#define bFM4_MFS11_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427165B0UL)) +#define bFM4_MFS11_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427165B4UL)) +#define bFM4_MFS11_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427165B8UL)) +#define bFM4_MFS11_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427165BCUL)) +#define bFM4_MFS11_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42716600UL)) +#define bFM4_MFS11_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42716604UL)) +#define bFM4_MFS11_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42716614UL)) +#define bFM4_MFS11_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42716618UL)) +#define bFM4_MFS11_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271661CUL)) +#define bFM4_MFS11_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42716620UL)) +#define bFM4_MFS11_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42716624UL)) + +/* MFS LIN channel 11 registers */ +#define bFM4_MFS11_LIN_SMR_SOE *((volatile unsigned int*)(0x42716000UL)) +#define bFM4_MFS11_LIN_SMR_SBL *((volatile unsigned int*)(0x4271600CUL)) +#define bFM4_MFS11_LIN_SMR_WUCR *((volatile unsigned int*)(0x42716010UL)) +#define bFM4_MFS11_LIN_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) +#define bFM4_MFS11_LIN_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) +#define bFM4_MFS11_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) +#define bFM4_MFS11_LIN_SCR_TXE *((volatile unsigned int*)(0x42716020UL)) +#define bFM4_MFS11_LIN_SCR_RXE *((volatile unsigned int*)(0x42716024UL)) +#define bFM4_MFS11_LIN_SCR_TBIE *((volatile unsigned int*)(0x42716028UL)) +#define bFM4_MFS11_LIN_SCR_TIE *((volatile unsigned int*)(0x4271602CUL)) +#define bFM4_MFS11_LIN_SCR_RIE *((volatile unsigned int*)(0x42716030UL)) +#define bFM4_MFS11_LIN_SCR_LBR *((volatile unsigned int*)(0x42716034UL)) +#define bFM4_MFS11_LIN_SCR_MS *((volatile unsigned int*)(0x42716038UL)) +#define bFM4_MFS11_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271603CUL)) +#define bFM4_MFS11_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42716080UL)) +#define bFM4_MFS11_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42716084UL)) +#define bFM4_MFS11_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42716088UL)) +#define bFM4_MFS11_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271608CUL)) +#define bFM4_MFS11_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42716090UL)) +#define bFM4_MFS11_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42716098UL)) +#define bFM4_MFS11_LIN_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) +#define bFM4_MFS11_LIN_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) +#define bFM4_MFS11_LIN_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) +#define bFM4_MFS11_LIN_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) +#define bFM4_MFS11_LIN_SSR_FRE *((volatile unsigned int*)(0x427160B0UL)) +#define bFM4_MFS11_LIN_SSR_LBD *((volatile unsigned int*)(0x427160B4UL)) +#define bFM4_MFS11_LIN_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) +#define bFM4_MFS11_LIN_BGR_EXT *((volatile unsigned int*)(0x427161BCUL)) +#define bFM4_MFS11_LIN_BGR1_EXT *((volatile unsigned int*)(0x427161BCUL)) +#define bFM4_MFS11_LIN_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_LIN_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_LIN_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_LIN_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_LIN_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_LIN_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_LIN_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_LIN_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_LIN_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_LIN_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) +#define bFM4_MFS11_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) + +/* MFS I2C channel 11 registers */ +#define bFM4_MFS11_I2C_SMR_TIE *((volatile unsigned int*)(0x42716008UL)) +#define bFM4_MFS11_I2C_SMR_RIE *((volatile unsigned int*)(0x4271600CUL)) +#define bFM4_MFS11_I2C_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) +#define bFM4_MFS11_I2C_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) +#define bFM4_MFS11_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) +#define bFM4_MFS11_I2C_IBCR_INT *((volatile unsigned int*)(0x42716020UL)) +#define bFM4_MFS11_I2C_IBCR_BER *((volatile unsigned int*)(0x42716024UL)) +#define bFM4_MFS11_I2C_IBCR_INTE *((volatile unsigned int*)(0x42716028UL)) +#define bFM4_MFS11_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271602CUL)) +#define bFM4_MFS11_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42716030UL)) +#define bFM4_MFS11_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42716034UL)) +#define bFM4_MFS11_I2C_IBCR_ACT *((volatile unsigned int*)(0x42716038UL)) +#define bFM4_MFS11_I2C_IBCR_SCC *((volatile unsigned int*)(0x42716038UL)) +#define bFM4_MFS11_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271603CUL)) +#define bFM4_MFS11_I2C_IBSR_BB *((volatile unsigned int*)(0x42716080UL)) +#define bFM4_MFS11_I2C_IBSR_SPC *((volatile unsigned int*)(0x42716084UL)) +#define bFM4_MFS11_I2C_IBSR_RSC *((volatile unsigned int*)(0x42716088UL)) +#define bFM4_MFS11_I2C_IBSR_AL *((volatile unsigned int*)(0x4271608CUL)) +#define bFM4_MFS11_I2C_IBSR_TRX *((volatile unsigned int*)(0x42716090UL)) +#define bFM4_MFS11_I2C_IBSR_RSA *((volatile unsigned int*)(0x42716094UL)) +#define bFM4_MFS11_I2C_IBSR_RACK *((volatile unsigned int*)(0x42716098UL)) +#define bFM4_MFS11_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271609CUL)) +#define bFM4_MFS11_I2C_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) +#define bFM4_MFS11_I2C_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) +#define bFM4_MFS11_I2C_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) +#define bFM4_MFS11_I2C_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) +#define bFM4_MFS11_I2C_SSR_TBIE *((volatile unsigned int*)(0x427160B0UL)) +#define bFM4_MFS11_I2C_SSR_DMA *((volatile unsigned int*)(0x427160B4UL)) +#define bFM4_MFS11_I2C_SSR_TSET *((volatile unsigned int*)(0x427160B8UL)) +#define bFM4_MFS11_I2C_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) +#define bFM4_MFS11_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42716200UL)) +#define bFM4_MFS11_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42716204UL)) +#define bFM4_MFS11_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42716208UL)) +#define bFM4_MFS11_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271620CUL)) +#define bFM4_MFS11_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42716210UL)) +#define bFM4_MFS11_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42716214UL)) +#define bFM4_MFS11_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42716218UL)) +#define bFM4_MFS11_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271621CUL)) +#define bFM4_MFS11_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42716220UL)) +#define bFM4_MFS11_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42716224UL)) +#define bFM4_MFS11_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42716228UL)) +#define bFM4_MFS11_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271622CUL)) +#define bFM4_MFS11_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42716230UL)) +#define bFM4_MFS11_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42716234UL)) +#define bFM4_MFS11_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42716238UL)) +#define bFM4_MFS11_I2C_ISMK_EN *((volatile unsigned int*)(0x4271623CUL)) +#define bFM4_MFS11_I2C_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_I2C_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_I2C_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_I2C_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_I2C_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_I2C_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_I2C_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) +#define bFM4_MFS11_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) +#define bFM4_MFS11_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) +#define bFM4_MFS11_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) +#define bFM4_MFS11_I2C_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) +#define bFM4_MFS11_I2C_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) +#define bFM4_MFS11_I2C_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) +#define bFM4_MFS11_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) +#define bFM4_MFS11_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) +#define bFM4_MFS11_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) +#define bFM4_MFS11_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) +#define bFM4_MFS11_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) +#define bFM4_MFS11_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) +#define bFM4_MFS11_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) +#define bFM4_MFS11_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) +#define bFM4_MFS11_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) +#define bFM4_MFS11_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) +#define bFM4_MFS11_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) +#define bFM4_MFS11_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) +#define bFM4_MFS11_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) +#define bFM4_MFS11_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) +#define bFM4_MFS11_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) +#define bFM4_MFS11_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) +#define bFM4_MFS11_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) +#define bFM4_MFS11_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) +#define bFM4_MFS11_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) +#define bFM4_MFS11_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) +#define bFM4_MFS11_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) +#define bFM4_MFS11_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) + +/* MFS UART channel 12 registers */ +#define bFM4_MFS12_UART_SMR_SOE *((volatile unsigned int*)(0x42718000UL)) +#define bFM4_MFS12_UART_SMR_BDS *((volatile unsigned int*)(0x42718008UL)) +#define bFM4_MFS12_UART_SMR_SBL *((volatile unsigned int*)(0x4271800CUL)) +#define bFM4_MFS12_UART_SMR_WUCR *((volatile unsigned int*)(0x42718010UL)) +#define bFM4_MFS12_UART_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) +#define bFM4_MFS12_UART_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) +#define bFM4_MFS12_UART_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) +#define bFM4_MFS12_UART_SCR_TXE *((volatile unsigned int*)(0x42718020UL)) +#define bFM4_MFS12_UART_SCR_RXE *((volatile unsigned int*)(0x42718024UL)) +#define bFM4_MFS12_UART_SCR_TBIE *((volatile unsigned int*)(0x42718028UL)) +#define bFM4_MFS12_UART_SCR_TIE *((volatile unsigned int*)(0x4271802CUL)) +#define bFM4_MFS12_UART_SCR_RIE *((volatile unsigned int*)(0x42718030UL)) +#define bFM4_MFS12_UART_SCR_UPCL *((volatile unsigned int*)(0x4271803CUL)) +#define bFM4_MFS12_UART_ESCR_L0 *((volatile unsigned int*)(0x42718080UL)) +#define bFM4_MFS12_UART_ESCR_L1 *((volatile unsigned int*)(0x42718084UL)) +#define bFM4_MFS12_UART_ESCR_L2 *((volatile unsigned int*)(0x42718088UL)) +#define bFM4_MFS12_UART_ESCR_P *((volatile unsigned int*)(0x4271808CUL)) +#define bFM4_MFS12_UART_ESCR_PEN *((volatile unsigned int*)(0x42718090UL)) +#define bFM4_MFS12_UART_ESCR_INV *((volatile unsigned int*)(0x42718094UL)) +#define bFM4_MFS12_UART_ESCR_ESBL *((volatile unsigned int*)(0x42718098UL)) +#define bFM4_MFS12_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271809CUL)) +#define bFM4_MFS12_UART_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) +#define bFM4_MFS12_UART_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) +#define bFM4_MFS12_UART_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) +#define bFM4_MFS12_UART_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) +#define bFM4_MFS12_UART_SSR_FRE *((volatile unsigned int*)(0x427180B0UL)) +#define bFM4_MFS12_UART_SSR_PE *((volatile unsigned int*)(0x427180B4UL)) +#define bFM4_MFS12_UART_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) +#define bFM4_MFS12_UART_RDR_AD *((volatile unsigned int*)(0x42718120UL)) +#define bFM4_MFS12_UART_TDR_AD *((volatile unsigned int*)(0x42718120UL)) +#define bFM4_MFS12_UART_BGR_EXT *((volatile unsigned int*)(0x427181BCUL)) +#define bFM4_MFS12_UART_BGR1_EXT *((volatile unsigned int*)(0x427181BCUL)) +#define bFM4_MFS12_UART_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_UART_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_UART_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_UART_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_UART_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_UART_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_UART_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_UART_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_UART_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_UART_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_UART_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_UART_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_UART_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_UART_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_UART_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_UART_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_UART_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_UART_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) +#define bFM4_MFS12_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) + +/* MFS CSIO channel 12 registers */ +#define bFM4_MFS12_CSIO_SMR_SOE *((volatile unsigned int*)(0x42718000UL)) +#define bFM4_MFS12_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42718004UL)) +#define bFM4_MFS12_CSIO_SMR_BDS *((volatile unsigned int*)(0x42718008UL)) +#define bFM4_MFS12_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271800CUL)) +#define bFM4_MFS12_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) +#define bFM4_MFS12_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) +#define bFM4_MFS12_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) +#define bFM4_MFS12_CSIO_SCR_TXE *((volatile unsigned int*)(0x42718020UL)) +#define bFM4_MFS12_CSIO_SCR_RXE *((volatile unsigned int*)(0x42718024UL)) +#define bFM4_MFS12_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42718028UL)) +#define bFM4_MFS12_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271802CUL)) +#define bFM4_MFS12_CSIO_SCR_RIE *((volatile unsigned int*)(0x42718030UL)) +#define bFM4_MFS12_CSIO_SCR_SPI *((volatile unsigned int*)(0x42718034UL)) +#define bFM4_MFS12_CSIO_SCR_MS *((volatile unsigned int*)(0x42718038UL)) +#define bFM4_MFS12_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271803CUL)) +#define bFM4_MFS12_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42718080UL)) +#define bFM4_MFS12_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42718084UL)) +#define bFM4_MFS12_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42718088UL)) +#define bFM4_MFS12_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271808CUL)) +#define bFM4_MFS12_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42718090UL)) +#define bFM4_MFS12_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42718098UL)) +#define bFM4_MFS12_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271809CUL)) +#define bFM4_MFS12_CSIO_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) +#define bFM4_MFS12_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) +#define bFM4_MFS12_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) +#define bFM4_MFS12_CSIO_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) +#define bFM4_MFS12_CSIO_SSR_AWC *((volatile unsigned int*)(0x427180B0UL)) +#define bFM4_MFS12_CSIO_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) +#define bFM4_MFS12_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_CSIO_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_CSIO_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_CSIO_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42718380UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42718384UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42718388UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271838CUL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42718390UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42718394UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42718398UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271839CUL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427183A0UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427183A4UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427183A8UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427183ACUL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427183B0UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427183B4UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427183B8UL)) +#define bFM4_MFS12_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427183BCUL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42718400UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42718404UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42718408UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271840CUL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42718410UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42718414UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42718418UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271841CUL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42718420UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42718424UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42718428UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271842CUL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42718430UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42718434UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42718438UL)) +#define bFM4_MFS12_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271843CUL)) +#define bFM4_MFS12_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42718480UL)) +#define bFM4_MFS12_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42718484UL)) +#define bFM4_MFS12_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42718488UL)) +#define bFM4_MFS12_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271848CUL)) +#define bFM4_MFS12_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42718490UL)) +#define bFM4_MFS12_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42718498UL)) +#define bFM4_MFS12_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271849CUL)) +#define bFM4_MFS12_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427184A0UL)) +#define bFM4_MFS12_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427184ACUL)) +#define bFM4_MFS12_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427184B0UL)) +#define bFM4_MFS12_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427184B4UL)) +#define bFM4_MFS12_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42718500UL)) +#define bFM4_MFS12_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42718504UL)) +#define bFM4_MFS12_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42718508UL)) +#define bFM4_MFS12_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271850CUL)) +#define bFM4_MFS12_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42718510UL)) +#define bFM4_MFS12_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42718514UL)) +#define bFM4_MFS12_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42718518UL)) +#define bFM4_MFS12_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271851CUL)) +#define bFM4_MFS12_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42718520UL)) +#define bFM4_MFS12_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42718524UL)) +#define bFM4_MFS12_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42718528UL)) +#define bFM4_MFS12_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271852CUL)) +#define bFM4_MFS12_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42718530UL)) +#define bFM4_MFS12_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42718534UL)) +#define bFM4_MFS12_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42718538UL)) +#define bFM4_MFS12_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271853CUL)) +#define bFM4_MFS12_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42718580UL)) +#define bFM4_MFS12_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42718584UL)) +#define bFM4_MFS12_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42718588UL)) +#define bFM4_MFS12_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271858CUL)) +#define bFM4_MFS12_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42718590UL)) +#define bFM4_MFS12_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42718594UL)) +#define bFM4_MFS12_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42718598UL)) +#define bFM4_MFS12_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271859CUL)) +#define bFM4_MFS12_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427185A0UL)) +#define bFM4_MFS12_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427185A4UL)) +#define bFM4_MFS12_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427185A8UL)) +#define bFM4_MFS12_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427185ACUL)) +#define bFM4_MFS12_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427185B0UL)) +#define bFM4_MFS12_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427185B4UL)) +#define bFM4_MFS12_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427185B8UL)) +#define bFM4_MFS12_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427185BCUL)) +#define bFM4_MFS12_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42718600UL)) +#define bFM4_MFS12_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42718604UL)) +#define bFM4_MFS12_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42718614UL)) +#define bFM4_MFS12_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42718618UL)) +#define bFM4_MFS12_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271861CUL)) +#define bFM4_MFS12_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42718620UL)) +#define bFM4_MFS12_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42718624UL)) + +/* MFS LIN channel 12 registers */ +#define bFM4_MFS12_LIN_SMR_SOE *((volatile unsigned int*)(0x42718000UL)) +#define bFM4_MFS12_LIN_SMR_SBL *((volatile unsigned int*)(0x4271800CUL)) +#define bFM4_MFS12_LIN_SMR_WUCR *((volatile unsigned int*)(0x42718010UL)) +#define bFM4_MFS12_LIN_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) +#define bFM4_MFS12_LIN_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) +#define bFM4_MFS12_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) +#define bFM4_MFS12_LIN_SCR_TXE *((volatile unsigned int*)(0x42718020UL)) +#define bFM4_MFS12_LIN_SCR_RXE *((volatile unsigned int*)(0x42718024UL)) +#define bFM4_MFS12_LIN_SCR_TBIE *((volatile unsigned int*)(0x42718028UL)) +#define bFM4_MFS12_LIN_SCR_TIE *((volatile unsigned int*)(0x4271802CUL)) +#define bFM4_MFS12_LIN_SCR_RIE *((volatile unsigned int*)(0x42718030UL)) +#define bFM4_MFS12_LIN_SCR_LBR *((volatile unsigned int*)(0x42718034UL)) +#define bFM4_MFS12_LIN_SCR_MS *((volatile unsigned int*)(0x42718038UL)) +#define bFM4_MFS12_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271803CUL)) +#define bFM4_MFS12_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42718080UL)) +#define bFM4_MFS12_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42718084UL)) +#define bFM4_MFS12_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42718088UL)) +#define bFM4_MFS12_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271808CUL)) +#define bFM4_MFS12_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42718090UL)) +#define bFM4_MFS12_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42718098UL)) +#define bFM4_MFS12_LIN_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) +#define bFM4_MFS12_LIN_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) +#define bFM4_MFS12_LIN_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) +#define bFM4_MFS12_LIN_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) +#define bFM4_MFS12_LIN_SSR_FRE *((volatile unsigned int*)(0x427180B0UL)) +#define bFM4_MFS12_LIN_SSR_LBD *((volatile unsigned int*)(0x427180B4UL)) +#define bFM4_MFS12_LIN_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) +#define bFM4_MFS12_LIN_BGR_EXT *((volatile unsigned int*)(0x427181BCUL)) +#define bFM4_MFS12_LIN_BGR1_EXT *((volatile unsigned int*)(0x427181BCUL)) +#define bFM4_MFS12_LIN_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_LIN_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_LIN_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_LIN_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_LIN_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_LIN_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_LIN_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_LIN_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_LIN_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_LIN_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) +#define bFM4_MFS12_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) + +/* MFS I2C channel 12 registers */ +#define bFM4_MFS12_I2C_SMR_TIE *((volatile unsigned int*)(0x42718008UL)) +#define bFM4_MFS12_I2C_SMR_RIE *((volatile unsigned int*)(0x4271800CUL)) +#define bFM4_MFS12_I2C_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) +#define bFM4_MFS12_I2C_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) +#define bFM4_MFS12_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) +#define bFM4_MFS12_I2C_IBCR_INT *((volatile unsigned int*)(0x42718020UL)) +#define bFM4_MFS12_I2C_IBCR_BER *((volatile unsigned int*)(0x42718024UL)) +#define bFM4_MFS12_I2C_IBCR_INTE *((volatile unsigned int*)(0x42718028UL)) +#define bFM4_MFS12_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271802CUL)) +#define bFM4_MFS12_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42718030UL)) +#define bFM4_MFS12_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42718034UL)) +#define bFM4_MFS12_I2C_IBCR_ACT *((volatile unsigned int*)(0x42718038UL)) +#define bFM4_MFS12_I2C_IBCR_SCC *((volatile unsigned int*)(0x42718038UL)) +#define bFM4_MFS12_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271803CUL)) +#define bFM4_MFS12_I2C_IBSR_BB *((volatile unsigned int*)(0x42718080UL)) +#define bFM4_MFS12_I2C_IBSR_SPC *((volatile unsigned int*)(0x42718084UL)) +#define bFM4_MFS12_I2C_IBSR_RSC *((volatile unsigned int*)(0x42718088UL)) +#define bFM4_MFS12_I2C_IBSR_AL *((volatile unsigned int*)(0x4271808CUL)) +#define bFM4_MFS12_I2C_IBSR_TRX *((volatile unsigned int*)(0x42718090UL)) +#define bFM4_MFS12_I2C_IBSR_RSA *((volatile unsigned int*)(0x42718094UL)) +#define bFM4_MFS12_I2C_IBSR_RACK *((volatile unsigned int*)(0x42718098UL)) +#define bFM4_MFS12_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271809CUL)) +#define bFM4_MFS12_I2C_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) +#define bFM4_MFS12_I2C_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) +#define bFM4_MFS12_I2C_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) +#define bFM4_MFS12_I2C_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) +#define bFM4_MFS12_I2C_SSR_TBIE *((volatile unsigned int*)(0x427180B0UL)) +#define bFM4_MFS12_I2C_SSR_DMA *((volatile unsigned int*)(0x427180B4UL)) +#define bFM4_MFS12_I2C_SSR_TSET *((volatile unsigned int*)(0x427180B8UL)) +#define bFM4_MFS12_I2C_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) +#define bFM4_MFS12_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42718200UL)) +#define bFM4_MFS12_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42718204UL)) +#define bFM4_MFS12_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42718208UL)) +#define bFM4_MFS12_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271820CUL)) +#define bFM4_MFS12_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42718210UL)) +#define bFM4_MFS12_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42718214UL)) +#define bFM4_MFS12_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42718218UL)) +#define bFM4_MFS12_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271821CUL)) +#define bFM4_MFS12_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42718220UL)) +#define bFM4_MFS12_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42718224UL)) +#define bFM4_MFS12_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42718228UL)) +#define bFM4_MFS12_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271822CUL)) +#define bFM4_MFS12_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42718230UL)) +#define bFM4_MFS12_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42718234UL)) +#define bFM4_MFS12_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42718238UL)) +#define bFM4_MFS12_I2C_ISMK_EN *((volatile unsigned int*)(0x4271823CUL)) +#define bFM4_MFS12_I2C_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_I2C_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_I2C_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_I2C_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_I2C_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_I2C_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_I2C_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) +#define bFM4_MFS12_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) +#define bFM4_MFS12_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) +#define bFM4_MFS12_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) +#define bFM4_MFS12_I2C_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) +#define bFM4_MFS12_I2C_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) +#define bFM4_MFS12_I2C_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) +#define bFM4_MFS12_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) +#define bFM4_MFS12_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) +#define bFM4_MFS12_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) +#define bFM4_MFS12_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) +#define bFM4_MFS12_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) +#define bFM4_MFS12_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) +#define bFM4_MFS12_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) +#define bFM4_MFS12_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) +#define bFM4_MFS12_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) +#define bFM4_MFS12_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) +#define bFM4_MFS12_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) +#define bFM4_MFS12_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) +#define bFM4_MFS12_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) +#define bFM4_MFS12_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) +#define bFM4_MFS12_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) +#define bFM4_MFS12_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) +#define bFM4_MFS12_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) +#define bFM4_MFS12_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) +#define bFM4_MFS12_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) +#define bFM4_MFS12_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) +#define bFM4_MFS12_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) +#define bFM4_MFS12_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) + +/* MFS UART channel 13 registers */ +#define bFM4_MFS13_UART_SMR_SOE *((volatile unsigned int*)(0x4271A000UL)) +#define bFM4_MFS13_UART_SMR_BDS *((volatile unsigned int*)(0x4271A008UL)) +#define bFM4_MFS13_UART_SMR_SBL *((volatile unsigned int*)(0x4271A00CUL)) +#define bFM4_MFS13_UART_SMR_WUCR *((volatile unsigned int*)(0x4271A010UL)) +#define bFM4_MFS13_UART_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) +#define bFM4_MFS13_UART_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) +#define bFM4_MFS13_UART_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) +#define bFM4_MFS13_UART_SCR_TXE *((volatile unsigned int*)(0x4271A020UL)) +#define bFM4_MFS13_UART_SCR_RXE *((volatile unsigned int*)(0x4271A024UL)) +#define bFM4_MFS13_UART_SCR_TBIE *((volatile unsigned int*)(0x4271A028UL)) +#define bFM4_MFS13_UART_SCR_TIE *((volatile unsigned int*)(0x4271A02CUL)) +#define bFM4_MFS13_UART_SCR_RIE *((volatile unsigned int*)(0x4271A030UL)) +#define bFM4_MFS13_UART_SCR_UPCL *((volatile unsigned int*)(0x4271A03CUL)) +#define bFM4_MFS13_UART_ESCR_L0 *((volatile unsigned int*)(0x4271A080UL)) +#define bFM4_MFS13_UART_ESCR_L1 *((volatile unsigned int*)(0x4271A084UL)) +#define bFM4_MFS13_UART_ESCR_L2 *((volatile unsigned int*)(0x4271A088UL)) +#define bFM4_MFS13_UART_ESCR_P *((volatile unsigned int*)(0x4271A08CUL)) +#define bFM4_MFS13_UART_ESCR_PEN *((volatile unsigned int*)(0x4271A090UL)) +#define bFM4_MFS13_UART_ESCR_INV *((volatile unsigned int*)(0x4271A094UL)) +#define bFM4_MFS13_UART_ESCR_ESBL *((volatile unsigned int*)(0x4271A098UL)) +#define bFM4_MFS13_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271A09CUL)) +#define bFM4_MFS13_UART_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) +#define bFM4_MFS13_UART_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) +#define bFM4_MFS13_UART_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) +#define bFM4_MFS13_UART_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) +#define bFM4_MFS13_UART_SSR_FRE *((volatile unsigned int*)(0x4271A0B0UL)) +#define bFM4_MFS13_UART_SSR_PE *((volatile unsigned int*)(0x4271A0B4UL)) +#define bFM4_MFS13_UART_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) +#define bFM4_MFS13_UART_RDR_AD *((volatile unsigned int*)(0x4271A120UL)) +#define bFM4_MFS13_UART_TDR_AD *((volatile unsigned int*)(0x4271A120UL)) +#define bFM4_MFS13_UART_BGR_EXT *((volatile unsigned int*)(0x4271A1BCUL)) +#define bFM4_MFS13_UART_BGR1_EXT *((volatile unsigned int*)(0x4271A1BCUL)) +#define bFM4_MFS13_UART_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_UART_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_UART_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_UART_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_UART_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_UART_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_UART_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_UART_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_UART_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_UART_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_UART_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_UART_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_UART_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_UART_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_UART_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_UART_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_UART_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_UART_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) +#define bFM4_MFS13_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) + +/* MFS CSIO channel 13 registers */ +#define bFM4_MFS13_CSIO_SMR_SOE *((volatile unsigned int*)(0x4271A000UL)) +#define bFM4_MFS13_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4271A004UL)) +#define bFM4_MFS13_CSIO_SMR_BDS *((volatile unsigned int*)(0x4271A008UL)) +#define bFM4_MFS13_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271A00CUL)) +#define bFM4_MFS13_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) +#define bFM4_MFS13_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) +#define bFM4_MFS13_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) +#define bFM4_MFS13_CSIO_SCR_TXE *((volatile unsigned int*)(0x4271A020UL)) +#define bFM4_MFS13_CSIO_SCR_RXE *((volatile unsigned int*)(0x4271A024UL)) +#define bFM4_MFS13_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4271A028UL)) +#define bFM4_MFS13_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271A02CUL)) +#define bFM4_MFS13_CSIO_SCR_RIE *((volatile unsigned int*)(0x4271A030UL)) +#define bFM4_MFS13_CSIO_SCR_SPI *((volatile unsigned int*)(0x4271A034UL)) +#define bFM4_MFS13_CSIO_SCR_MS *((volatile unsigned int*)(0x4271A038UL)) +#define bFM4_MFS13_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271A03CUL)) +#define bFM4_MFS13_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4271A080UL)) +#define bFM4_MFS13_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4271A084UL)) +#define bFM4_MFS13_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4271A088UL)) +#define bFM4_MFS13_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271A08CUL)) +#define bFM4_MFS13_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4271A090UL)) +#define bFM4_MFS13_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4271A098UL)) +#define bFM4_MFS13_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271A09CUL)) +#define bFM4_MFS13_CSIO_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) +#define bFM4_MFS13_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) +#define bFM4_MFS13_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) +#define bFM4_MFS13_CSIO_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) +#define bFM4_MFS13_CSIO_SSR_AWC *((volatile unsigned int*)(0x4271A0B0UL)) +#define bFM4_MFS13_CSIO_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) +#define bFM4_MFS13_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_CSIO_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_CSIO_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_CSIO_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4271A380UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4271A384UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4271A388UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271A38CUL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4271A390UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4271A394UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4271A398UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271A39CUL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4271A3A0UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4271A3A4UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4271A3A8UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4271A3ACUL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4271A3B0UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4271A3B4UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4271A3B8UL)) +#define bFM4_MFS13_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4271A3BCUL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4271A400UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4271A404UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4271A408UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271A40CUL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4271A410UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4271A414UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4271A418UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271A41CUL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4271A420UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4271A424UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4271A428UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271A42CUL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4271A430UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4271A434UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4271A438UL)) +#define bFM4_MFS13_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271A43CUL)) +#define bFM4_MFS13_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4271A480UL)) +#define bFM4_MFS13_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4271A484UL)) +#define bFM4_MFS13_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4271A488UL)) +#define bFM4_MFS13_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271A48CUL)) +#define bFM4_MFS13_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4271A490UL)) +#define bFM4_MFS13_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4271A498UL)) +#define bFM4_MFS13_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271A49CUL)) +#define bFM4_MFS13_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4271A4A0UL)) +#define bFM4_MFS13_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4271A4ACUL)) +#define bFM4_MFS13_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4271A4B0UL)) +#define bFM4_MFS13_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4271A4B4UL)) +#define bFM4_MFS13_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4271A500UL)) +#define bFM4_MFS13_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4271A504UL)) +#define bFM4_MFS13_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4271A508UL)) +#define bFM4_MFS13_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271A50CUL)) +#define bFM4_MFS13_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4271A510UL)) +#define bFM4_MFS13_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4271A514UL)) +#define bFM4_MFS13_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4271A518UL)) +#define bFM4_MFS13_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271A51CUL)) +#define bFM4_MFS13_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4271A520UL)) +#define bFM4_MFS13_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4271A524UL)) +#define bFM4_MFS13_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4271A528UL)) +#define bFM4_MFS13_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271A52CUL)) +#define bFM4_MFS13_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4271A530UL)) +#define bFM4_MFS13_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4271A534UL)) +#define bFM4_MFS13_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4271A538UL)) +#define bFM4_MFS13_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271A53CUL)) +#define bFM4_MFS13_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4271A580UL)) +#define bFM4_MFS13_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4271A584UL)) +#define bFM4_MFS13_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4271A588UL)) +#define bFM4_MFS13_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271A58CUL)) +#define bFM4_MFS13_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4271A590UL)) +#define bFM4_MFS13_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4271A594UL)) +#define bFM4_MFS13_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4271A598UL)) +#define bFM4_MFS13_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271A59CUL)) +#define bFM4_MFS13_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4271A5A0UL)) +#define bFM4_MFS13_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4271A5A4UL)) +#define bFM4_MFS13_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4271A5A8UL)) +#define bFM4_MFS13_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4271A5ACUL)) +#define bFM4_MFS13_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4271A5B0UL)) +#define bFM4_MFS13_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4271A5B4UL)) +#define bFM4_MFS13_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4271A5B8UL)) +#define bFM4_MFS13_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4271A5BCUL)) +#define bFM4_MFS13_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4271A600UL)) +#define bFM4_MFS13_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4271A604UL)) +#define bFM4_MFS13_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4271A614UL)) +#define bFM4_MFS13_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4271A618UL)) +#define bFM4_MFS13_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271A61CUL)) +#define bFM4_MFS13_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4271A620UL)) +#define bFM4_MFS13_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4271A624UL)) + +/* MFS LIN channel 13 registers */ +#define bFM4_MFS13_LIN_SMR_SOE *((volatile unsigned int*)(0x4271A000UL)) +#define bFM4_MFS13_LIN_SMR_SBL *((volatile unsigned int*)(0x4271A00CUL)) +#define bFM4_MFS13_LIN_SMR_WUCR *((volatile unsigned int*)(0x4271A010UL)) +#define bFM4_MFS13_LIN_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) +#define bFM4_MFS13_LIN_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) +#define bFM4_MFS13_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) +#define bFM4_MFS13_LIN_SCR_TXE *((volatile unsigned int*)(0x4271A020UL)) +#define bFM4_MFS13_LIN_SCR_RXE *((volatile unsigned int*)(0x4271A024UL)) +#define bFM4_MFS13_LIN_SCR_TBIE *((volatile unsigned int*)(0x4271A028UL)) +#define bFM4_MFS13_LIN_SCR_TIE *((volatile unsigned int*)(0x4271A02CUL)) +#define bFM4_MFS13_LIN_SCR_RIE *((volatile unsigned int*)(0x4271A030UL)) +#define bFM4_MFS13_LIN_SCR_LBR *((volatile unsigned int*)(0x4271A034UL)) +#define bFM4_MFS13_LIN_SCR_MS *((volatile unsigned int*)(0x4271A038UL)) +#define bFM4_MFS13_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271A03CUL)) +#define bFM4_MFS13_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4271A080UL)) +#define bFM4_MFS13_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4271A084UL)) +#define bFM4_MFS13_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4271A088UL)) +#define bFM4_MFS13_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271A08CUL)) +#define bFM4_MFS13_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4271A090UL)) +#define bFM4_MFS13_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4271A098UL)) +#define bFM4_MFS13_LIN_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) +#define bFM4_MFS13_LIN_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) +#define bFM4_MFS13_LIN_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) +#define bFM4_MFS13_LIN_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) +#define bFM4_MFS13_LIN_SSR_FRE *((volatile unsigned int*)(0x4271A0B0UL)) +#define bFM4_MFS13_LIN_SSR_LBD *((volatile unsigned int*)(0x4271A0B4UL)) +#define bFM4_MFS13_LIN_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) +#define bFM4_MFS13_LIN_BGR_EXT *((volatile unsigned int*)(0x4271A1BCUL)) +#define bFM4_MFS13_LIN_BGR1_EXT *((volatile unsigned int*)(0x4271A1BCUL)) +#define bFM4_MFS13_LIN_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_LIN_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_LIN_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_LIN_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_LIN_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_LIN_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_LIN_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_LIN_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_LIN_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_LIN_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) +#define bFM4_MFS13_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) + +/* MFS I2C channel 13 registers */ +#define bFM4_MFS13_I2C_SMR_TIE *((volatile unsigned int*)(0x4271A008UL)) +#define bFM4_MFS13_I2C_SMR_RIE *((volatile unsigned int*)(0x4271A00CUL)) +#define bFM4_MFS13_I2C_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) +#define bFM4_MFS13_I2C_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) +#define bFM4_MFS13_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) +#define bFM4_MFS13_I2C_IBCR_INT *((volatile unsigned int*)(0x4271A020UL)) +#define bFM4_MFS13_I2C_IBCR_BER *((volatile unsigned int*)(0x4271A024UL)) +#define bFM4_MFS13_I2C_IBCR_INTE *((volatile unsigned int*)(0x4271A028UL)) +#define bFM4_MFS13_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271A02CUL)) +#define bFM4_MFS13_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4271A030UL)) +#define bFM4_MFS13_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4271A034UL)) +#define bFM4_MFS13_I2C_IBCR_ACT *((volatile unsigned int*)(0x4271A038UL)) +#define bFM4_MFS13_I2C_IBCR_SCC *((volatile unsigned int*)(0x4271A038UL)) +#define bFM4_MFS13_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271A03CUL)) +#define bFM4_MFS13_I2C_IBSR_BB *((volatile unsigned int*)(0x4271A080UL)) +#define bFM4_MFS13_I2C_IBSR_SPC *((volatile unsigned int*)(0x4271A084UL)) +#define bFM4_MFS13_I2C_IBSR_RSC *((volatile unsigned int*)(0x4271A088UL)) +#define bFM4_MFS13_I2C_IBSR_AL *((volatile unsigned int*)(0x4271A08CUL)) +#define bFM4_MFS13_I2C_IBSR_TRX *((volatile unsigned int*)(0x4271A090UL)) +#define bFM4_MFS13_I2C_IBSR_RSA *((volatile unsigned int*)(0x4271A094UL)) +#define bFM4_MFS13_I2C_IBSR_RACK *((volatile unsigned int*)(0x4271A098UL)) +#define bFM4_MFS13_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271A09CUL)) +#define bFM4_MFS13_I2C_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) +#define bFM4_MFS13_I2C_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) +#define bFM4_MFS13_I2C_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) +#define bFM4_MFS13_I2C_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) +#define bFM4_MFS13_I2C_SSR_TBIE *((volatile unsigned int*)(0x4271A0B0UL)) +#define bFM4_MFS13_I2C_SSR_DMA *((volatile unsigned int*)(0x4271A0B4UL)) +#define bFM4_MFS13_I2C_SSR_TSET *((volatile unsigned int*)(0x4271A0B8UL)) +#define bFM4_MFS13_I2C_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) +#define bFM4_MFS13_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4271A200UL)) +#define bFM4_MFS13_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4271A204UL)) +#define bFM4_MFS13_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4271A208UL)) +#define bFM4_MFS13_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271A20CUL)) +#define bFM4_MFS13_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4271A210UL)) +#define bFM4_MFS13_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4271A214UL)) +#define bFM4_MFS13_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4271A218UL)) +#define bFM4_MFS13_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271A21CUL)) +#define bFM4_MFS13_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4271A220UL)) +#define bFM4_MFS13_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4271A224UL)) +#define bFM4_MFS13_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4271A228UL)) +#define bFM4_MFS13_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271A22CUL)) +#define bFM4_MFS13_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4271A230UL)) +#define bFM4_MFS13_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4271A234UL)) +#define bFM4_MFS13_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4271A238UL)) +#define bFM4_MFS13_I2C_ISMK_EN *((volatile unsigned int*)(0x4271A23CUL)) +#define bFM4_MFS13_I2C_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_I2C_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_I2C_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_I2C_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_I2C_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_I2C_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_I2C_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) +#define bFM4_MFS13_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) +#define bFM4_MFS13_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) +#define bFM4_MFS13_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) +#define bFM4_MFS13_I2C_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) +#define bFM4_MFS13_I2C_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) +#define bFM4_MFS13_I2C_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) +#define bFM4_MFS13_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) +#define bFM4_MFS13_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) +#define bFM4_MFS13_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) +#define bFM4_MFS13_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) +#define bFM4_MFS13_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) +#define bFM4_MFS13_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) +#define bFM4_MFS13_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) +#define bFM4_MFS13_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) +#define bFM4_MFS13_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) +#define bFM4_MFS13_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) +#define bFM4_MFS13_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) +#define bFM4_MFS13_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) +#define bFM4_MFS13_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) +#define bFM4_MFS13_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) +#define bFM4_MFS13_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) +#define bFM4_MFS13_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) +#define bFM4_MFS13_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) +#define bFM4_MFS13_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) +#define bFM4_MFS13_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) +#define bFM4_MFS13_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) +#define bFM4_MFS13_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) +#define bFM4_MFS13_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) + +/* MFS UART channel 14 registers */ +#define bFM4_MFS14_UART_SMR_SOE *((volatile unsigned int*)(0x4271C000UL)) +#define bFM4_MFS14_UART_SMR_BDS *((volatile unsigned int*)(0x4271C008UL)) +#define bFM4_MFS14_UART_SMR_SBL *((volatile unsigned int*)(0x4271C00CUL)) +#define bFM4_MFS14_UART_SMR_WUCR *((volatile unsigned int*)(0x4271C010UL)) +#define bFM4_MFS14_UART_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) +#define bFM4_MFS14_UART_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) +#define bFM4_MFS14_UART_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) +#define bFM4_MFS14_UART_SCR_TXE *((volatile unsigned int*)(0x4271C020UL)) +#define bFM4_MFS14_UART_SCR_RXE *((volatile unsigned int*)(0x4271C024UL)) +#define bFM4_MFS14_UART_SCR_TBIE *((volatile unsigned int*)(0x4271C028UL)) +#define bFM4_MFS14_UART_SCR_TIE *((volatile unsigned int*)(0x4271C02CUL)) +#define bFM4_MFS14_UART_SCR_RIE *((volatile unsigned int*)(0x4271C030UL)) +#define bFM4_MFS14_UART_SCR_UPCL *((volatile unsigned int*)(0x4271C03CUL)) +#define bFM4_MFS14_UART_ESCR_L0 *((volatile unsigned int*)(0x4271C080UL)) +#define bFM4_MFS14_UART_ESCR_L1 *((volatile unsigned int*)(0x4271C084UL)) +#define bFM4_MFS14_UART_ESCR_L2 *((volatile unsigned int*)(0x4271C088UL)) +#define bFM4_MFS14_UART_ESCR_P *((volatile unsigned int*)(0x4271C08CUL)) +#define bFM4_MFS14_UART_ESCR_PEN *((volatile unsigned int*)(0x4271C090UL)) +#define bFM4_MFS14_UART_ESCR_INV *((volatile unsigned int*)(0x4271C094UL)) +#define bFM4_MFS14_UART_ESCR_ESBL *((volatile unsigned int*)(0x4271C098UL)) +#define bFM4_MFS14_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271C09CUL)) +#define bFM4_MFS14_UART_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) +#define bFM4_MFS14_UART_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) +#define bFM4_MFS14_UART_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) +#define bFM4_MFS14_UART_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) +#define bFM4_MFS14_UART_SSR_FRE *((volatile unsigned int*)(0x4271C0B0UL)) +#define bFM4_MFS14_UART_SSR_PE *((volatile unsigned int*)(0x4271C0B4UL)) +#define bFM4_MFS14_UART_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) +#define bFM4_MFS14_UART_RDR_AD *((volatile unsigned int*)(0x4271C120UL)) +#define bFM4_MFS14_UART_TDR_AD *((volatile unsigned int*)(0x4271C120UL)) +#define bFM4_MFS14_UART_BGR_EXT *((volatile unsigned int*)(0x4271C1BCUL)) +#define bFM4_MFS14_UART_BGR1_EXT *((volatile unsigned int*)(0x4271C1BCUL)) +#define bFM4_MFS14_UART_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_UART_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_UART_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_UART_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_UART_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_UART_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_UART_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_UART_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_UART_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_UART_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_UART_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_UART_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_UART_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_UART_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_UART_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_UART_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_UART_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_UART_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) +#define bFM4_MFS14_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) + +/* MFS CSIO channel 14 registers */ +#define bFM4_MFS14_CSIO_SMR_SOE *((volatile unsigned int*)(0x4271C000UL)) +#define bFM4_MFS14_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4271C004UL)) +#define bFM4_MFS14_CSIO_SMR_BDS *((volatile unsigned int*)(0x4271C008UL)) +#define bFM4_MFS14_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271C00CUL)) +#define bFM4_MFS14_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) +#define bFM4_MFS14_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) +#define bFM4_MFS14_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) +#define bFM4_MFS14_CSIO_SCR_TXE *((volatile unsigned int*)(0x4271C020UL)) +#define bFM4_MFS14_CSIO_SCR_RXE *((volatile unsigned int*)(0x4271C024UL)) +#define bFM4_MFS14_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4271C028UL)) +#define bFM4_MFS14_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271C02CUL)) +#define bFM4_MFS14_CSIO_SCR_RIE *((volatile unsigned int*)(0x4271C030UL)) +#define bFM4_MFS14_CSIO_SCR_SPI *((volatile unsigned int*)(0x4271C034UL)) +#define bFM4_MFS14_CSIO_SCR_MS *((volatile unsigned int*)(0x4271C038UL)) +#define bFM4_MFS14_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271C03CUL)) +#define bFM4_MFS14_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4271C080UL)) +#define bFM4_MFS14_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4271C084UL)) +#define bFM4_MFS14_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4271C088UL)) +#define bFM4_MFS14_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271C08CUL)) +#define bFM4_MFS14_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4271C090UL)) +#define bFM4_MFS14_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4271C098UL)) +#define bFM4_MFS14_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271C09CUL)) +#define bFM4_MFS14_CSIO_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) +#define bFM4_MFS14_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) +#define bFM4_MFS14_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) +#define bFM4_MFS14_CSIO_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) +#define bFM4_MFS14_CSIO_SSR_AWC *((volatile unsigned int*)(0x4271C0B0UL)) +#define bFM4_MFS14_CSIO_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) +#define bFM4_MFS14_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_CSIO_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_CSIO_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_CSIO_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4271C380UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4271C384UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4271C388UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271C38CUL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4271C390UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4271C394UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4271C398UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271C39CUL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4271C3A0UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4271C3A4UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4271C3A8UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4271C3ACUL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4271C3B0UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4271C3B4UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4271C3B8UL)) +#define bFM4_MFS14_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4271C3BCUL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4271C400UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4271C404UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4271C408UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271C40CUL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4271C410UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4271C414UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4271C418UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271C41CUL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4271C420UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4271C424UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4271C428UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271C42CUL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4271C430UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4271C434UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4271C438UL)) +#define bFM4_MFS14_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271C43CUL)) +#define bFM4_MFS14_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4271C480UL)) +#define bFM4_MFS14_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4271C484UL)) +#define bFM4_MFS14_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4271C488UL)) +#define bFM4_MFS14_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271C48CUL)) +#define bFM4_MFS14_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4271C490UL)) +#define bFM4_MFS14_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4271C498UL)) +#define bFM4_MFS14_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271C49CUL)) +#define bFM4_MFS14_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4271C4A0UL)) +#define bFM4_MFS14_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4271C4ACUL)) +#define bFM4_MFS14_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4271C4B0UL)) +#define bFM4_MFS14_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4271C4B4UL)) +#define bFM4_MFS14_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4271C500UL)) +#define bFM4_MFS14_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4271C504UL)) +#define bFM4_MFS14_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4271C508UL)) +#define bFM4_MFS14_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271C50CUL)) +#define bFM4_MFS14_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4271C510UL)) +#define bFM4_MFS14_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4271C514UL)) +#define bFM4_MFS14_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4271C518UL)) +#define bFM4_MFS14_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271C51CUL)) +#define bFM4_MFS14_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4271C520UL)) +#define bFM4_MFS14_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4271C524UL)) +#define bFM4_MFS14_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4271C528UL)) +#define bFM4_MFS14_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271C52CUL)) +#define bFM4_MFS14_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4271C530UL)) +#define bFM4_MFS14_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4271C534UL)) +#define bFM4_MFS14_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4271C538UL)) +#define bFM4_MFS14_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271C53CUL)) +#define bFM4_MFS14_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4271C580UL)) +#define bFM4_MFS14_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4271C584UL)) +#define bFM4_MFS14_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4271C588UL)) +#define bFM4_MFS14_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271C58CUL)) +#define bFM4_MFS14_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4271C590UL)) +#define bFM4_MFS14_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4271C594UL)) +#define bFM4_MFS14_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4271C598UL)) +#define bFM4_MFS14_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271C59CUL)) +#define bFM4_MFS14_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4271C5A0UL)) +#define bFM4_MFS14_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4271C5A4UL)) +#define bFM4_MFS14_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4271C5A8UL)) +#define bFM4_MFS14_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4271C5ACUL)) +#define bFM4_MFS14_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4271C5B0UL)) +#define bFM4_MFS14_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4271C5B4UL)) +#define bFM4_MFS14_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4271C5B8UL)) +#define bFM4_MFS14_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4271C5BCUL)) +#define bFM4_MFS14_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4271C600UL)) +#define bFM4_MFS14_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4271C604UL)) +#define bFM4_MFS14_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4271C614UL)) +#define bFM4_MFS14_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4271C618UL)) +#define bFM4_MFS14_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271C61CUL)) +#define bFM4_MFS14_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4271C620UL)) +#define bFM4_MFS14_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4271C624UL)) + +/* MFS LIN channel 14 registers */ +#define bFM4_MFS14_LIN_SMR_SOE *((volatile unsigned int*)(0x4271C000UL)) +#define bFM4_MFS14_LIN_SMR_SBL *((volatile unsigned int*)(0x4271C00CUL)) +#define bFM4_MFS14_LIN_SMR_WUCR *((volatile unsigned int*)(0x4271C010UL)) +#define bFM4_MFS14_LIN_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) +#define bFM4_MFS14_LIN_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) +#define bFM4_MFS14_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) +#define bFM4_MFS14_LIN_SCR_TXE *((volatile unsigned int*)(0x4271C020UL)) +#define bFM4_MFS14_LIN_SCR_RXE *((volatile unsigned int*)(0x4271C024UL)) +#define bFM4_MFS14_LIN_SCR_TBIE *((volatile unsigned int*)(0x4271C028UL)) +#define bFM4_MFS14_LIN_SCR_TIE *((volatile unsigned int*)(0x4271C02CUL)) +#define bFM4_MFS14_LIN_SCR_RIE *((volatile unsigned int*)(0x4271C030UL)) +#define bFM4_MFS14_LIN_SCR_LBR *((volatile unsigned int*)(0x4271C034UL)) +#define bFM4_MFS14_LIN_SCR_MS *((volatile unsigned int*)(0x4271C038UL)) +#define bFM4_MFS14_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271C03CUL)) +#define bFM4_MFS14_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4271C080UL)) +#define bFM4_MFS14_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4271C084UL)) +#define bFM4_MFS14_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4271C088UL)) +#define bFM4_MFS14_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271C08CUL)) +#define bFM4_MFS14_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4271C090UL)) +#define bFM4_MFS14_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4271C098UL)) +#define bFM4_MFS14_LIN_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) +#define bFM4_MFS14_LIN_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) +#define bFM4_MFS14_LIN_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) +#define bFM4_MFS14_LIN_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) +#define bFM4_MFS14_LIN_SSR_FRE *((volatile unsigned int*)(0x4271C0B0UL)) +#define bFM4_MFS14_LIN_SSR_LBD *((volatile unsigned int*)(0x4271C0B4UL)) +#define bFM4_MFS14_LIN_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) +#define bFM4_MFS14_LIN_BGR_EXT *((volatile unsigned int*)(0x4271C1BCUL)) +#define bFM4_MFS14_LIN_BGR1_EXT *((volatile unsigned int*)(0x4271C1BCUL)) +#define bFM4_MFS14_LIN_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_LIN_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_LIN_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_LIN_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_LIN_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_LIN_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_LIN_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_LIN_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_LIN_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_LIN_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) +#define bFM4_MFS14_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) + +/* MFS I2C channel 14 registers */ +#define bFM4_MFS14_I2C_SMR_TIE *((volatile unsigned int*)(0x4271C008UL)) +#define bFM4_MFS14_I2C_SMR_RIE *((volatile unsigned int*)(0x4271C00CUL)) +#define bFM4_MFS14_I2C_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) +#define bFM4_MFS14_I2C_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) +#define bFM4_MFS14_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) +#define bFM4_MFS14_I2C_IBCR_INT *((volatile unsigned int*)(0x4271C020UL)) +#define bFM4_MFS14_I2C_IBCR_BER *((volatile unsigned int*)(0x4271C024UL)) +#define bFM4_MFS14_I2C_IBCR_INTE *((volatile unsigned int*)(0x4271C028UL)) +#define bFM4_MFS14_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271C02CUL)) +#define bFM4_MFS14_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4271C030UL)) +#define bFM4_MFS14_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4271C034UL)) +#define bFM4_MFS14_I2C_IBCR_ACT *((volatile unsigned int*)(0x4271C038UL)) +#define bFM4_MFS14_I2C_IBCR_SCC *((volatile unsigned int*)(0x4271C038UL)) +#define bFM4_MFS14_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271C03CUL)) +#define bFM4_MFS14_I2C_IBSR_BB *((volatile unsigned int*)(0x4271C080UL)) +#define bFM4_MFS14_I2C_IBSR_SPC *((volatile unsigned int*)(0x4271C084UL)) +#define bFM4_MFS14_I2C_IBSR_RSC *((volatile unsigned int*)(0x4271C088UL)) +#define bFM4_MFS14_I2C_IBSR_AL *((volatile unsigned int*)(0x4271C08CUL)) +#define bFM4_MFS14_I2C_IBSR_TRX *((volatile unsigned int*)(0x4271C090UL)) +#define bFM4_MFS14_I2C_IBSR_RSA *((volatile unsigned int*)(0x4271C094UL)) +#define bFM4_MFS14_I2C_IBSR_RACK *((volatile unsigned int*)(0x4271C098UL)) +#define bFM4_MFS14_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271C09CUL)) +#define bFM4_MFS14_I2C_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) +#define bFM4_MFS14_I2C_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) +#define bFM4_MFS14_I2C_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) +#define bFM4_MFS14_I2C_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) +#define bFM4_MFS14_I2C_SSR_TBIE *((volatile unsigned int*)(0x4271C0B0UL)) +#define bFM4_MFS14_I2C_SSR_DMA *((volatile unsigned int*)(0x4271C0B4UL)) +#define bFM4_MFS14_I2C_SSR_TSET *((volatile unsigned int*)(0x4271C0B8UL)) +#define bFM4_MFS14_I2C_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) +#define bFM4_MFS14_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4271C200UL)) +#define bFM4_MFS14_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4271C204UL)) +#define bFM4_MFS14_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4271C208UL)) +#define bFM4_MFS14_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271C20CUL)) +#define bFM4_MFS14_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4271C210UL)) +#define bFM4_MFS14_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4271C214UL)) +#define bFM4_MFS14_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4271C218UL)) +#define bFM4_MFS14_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271C21CUL)) +#define bFM4_MFS14_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4271C220UL)) +#define bFM4_MFS14_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4271C224UL)) +#define bFM4_MFS14_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4271C228UL)) +#define bFM4_MFS14_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271C22CUL)) +#define bFM4_MFS14_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4271C230UL)) +#define bFM4_MFS14_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4271C234UL)) +#define bFM4_MFS14_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4271C238UL)) +#define bFM4_MFS14_I2C_ISMK_EN *((volatile unsigned int*)(0x4271C23CUL)) +#define bFM4_MFS14_I2C_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_I2C_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_I2C_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_I2C_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_I2C_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_I2C_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_I2C_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) +#define bFM4_MFS14_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) +#define bFM4_MFS14_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) +#define bFM4_MFS14_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) +#define bFM4_MFS14_I2C_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) +#define bFM4_MFS14_I2C_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) +#define bFM4_MFS14_I2C_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) +#define bFM4_MFS14_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) +#define bFM4_MFS14_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) +#define bFM4_MFS14_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) +#define bFM4_MFS14_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) +#define bFM4_MFS14_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) +#define bFM4_MFS14_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) +#define bFM4_MFS14_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) +#define bFM4_MFS14_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) +#define bFM4_MFS14_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) +#define bFM4_MFS14_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) +#define bFM4_MFS14_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) +#define bFM4_MFS14_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) +#define bFM4_MFS14_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) +#define bFM4_MFS14_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) +#define bFM4_MFS14_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) +#define bFM4_MFS14_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) +#define bFM4_MFS14_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) +#define bFM4_MFS14_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) +#define bFM4_MFS14_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) +#define bFM4_MFS14_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) +#define bFM4_MFS14_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) +#define bFM4_MFS14_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) + +/* MFS UART channel 15 registers */ +#define bFM4_MFS15_UART_SMR_SOE *((volatile unsigned int*)(0x4271E000UL)) +#define bFM4_MFS15_UART_SMR_BDS *((volatile unsigned int*)(0x4271E008UL)) +#define bFM4_MFS15_UART_SMR_SBL *((volatile unsigned int*)(0x4271E00CUL)) +#define bFM4_MFS15_UART_SMR_WUCR *((volatile unsigned int*)(0x4271E010UL)) +#define bFM4_MFS15_UART_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) +#define bFM4_MFS15_UART_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) +#define bFM4_MFS15_UART_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) +#define bFM4_MFS15_UART_SCR_TXE *((volatile unsigned int*)(0x4271E020UL)) +#define bFM4_MFS15_UART_SCR_RXE *((volatile unsigned int*)(0x4271E024UL)) +#define bFM4_MFS15_UART_SCR_TBIE *((volatile unsigned int*)(0x4271E028UL)) +#define bFM4_MFS15_UART_SCR_TIE *((volatile unsigned int*)(0x4271E02CUL)) +#define bFM4_MFS15_UART_SCR_RIE *((volatile unsigned int*)(0x4271E030UL)) +#define bFM4_MFS15_UART_SCR_UPCL *((volatile unsigned int*)(0x4271E03CUL)) +#define bFM4_MFS15_UART_ESCR_L0 *((volatile unsigned int*)(0x4271E080UL)) +#define bFM4_MFS15_UART_ESCR_L1 *((volatile unsigned int*)(0x4271E084UL)) +#define bFM4_MFS15_UART_ESCR_L2 *((volatile unsigned int*)(0x4271E088UL)) +#define bFM4_MFS15_UART_ESCR_P *((volatile unsigned int*)(0x4271E08CUL)) +#define bFM4_MFS15_UART_ESCR_PEN *((volatile unsigned int*)(0x4271E090UL)) +#define bFM4_MFS15_UART_ESCR_INV *((volatile unsigned int*)(0x4271E094UL)) +#define bFM4_MFS15_UART_ESCR_ESBL *((volatile unsigned int*)(0x4271E098UL)) +#define bFM4_MFS15_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271E09CUL)) +#define bFM4_MFS15_UART_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) +#define bFM4_MFS15_UART_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) +#define bFM4_MFS15_UART_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) +#define bFM4_MFS15_UART_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) +#define bFM4_MFS15_UART_SSR_FRE *((volatile unsigned int*)(0x4271E0B0UL)) +#define bFM4_MFS15_UART_SSR_PE *((volatile unsigned int*)(0x4271E0B4UL)) +#define bFM4_MFS15_UART_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) +#define bFM4_MFS15_UART_RDR_AD *((volatile unsigned int*)(0x4271E120UL)) +#define bFM4_MFS15_UART_TDR_AD *((volatile unsigned int*)(0x4271E120UL)) +#define bFM4_MFS15_UART_BGR_EXT *((volatile unsigned int*)(0x4271E1BCUL)) +#define bFM4_MFS15_UART_BGR1_EXT *((volatile unsigned int*)(0x4271E1BCUL)) +#define bFM4_MFS15_UART_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_UART_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_UART_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_UART_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_UART_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_UART_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_UART_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_UART_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_UART_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_UART_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_UART_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_UART_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_UART_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_UART_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_UART_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_UART_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_UART_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_UART_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) +#define bFM4_MFS15_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) + +/* MFS CSIO channel 15 registers */ +#define bFM4_MFS15_CSIO_SMR_SOE *((volatile unsigned int*)(0x4271E000UL)) +#define bFM4_MFS15_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4271E004UL)) +#define bFM4_MFS15_CSIO_SMR_BDS *((volatile unsigned int*)(0x4271E008UL)) +#define bFM4_MFS15_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271E00CUL)) +#define bFM4_MFS15_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) +#define bFM4_MFS15_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) +#define bFM4_MFS15_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) +#define bFM4_MFS15_CSIO_SCR_TXE *((volatile unsigned int*)(0x4271E020UL)) +#define bFM4_MFS15_CSIO_SCR_RXE *((volatile unsigned int*)(0x4271E024UL)) +#define bFM4_MFS15_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4271E028UL)) +#define bFM4_MFS15_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271E02CUL)) +#define bFM4_MFS15_CSIO_SCR_RIE *((volatile unsigned int*)(0x4271E030UL)) +#define bFM4_MFS15_CSIO_SCR_SPI *((volatile unsigned int*)(0x4271E034UL)) +#define bFM4_MFS15_CSIO_SCR_MS *((volatile unsigned int*)(0x4271E038UL)) +#define bFM4_MFS15_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271E03CUL)) +#define bFM4_MFS15_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4271E080UL)) +#define bFM4_MFS15_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4271E084UL)) +#define bFM4_MFS15_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4271E088UL)) +#define bFM4_MFS15_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271E08CUL)) +#define bFM4_MFS15_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4271E090UL)) +#define bFM4_MFS15_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4271E098UL)) +#define bFM4_MFS15_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271E09CUL)) +#define bFM4_MFS15_CSIO_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) +#define bFM4_MFS15_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) +#define bFM4_MFS15_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) +#define bFM4_MFS15_CSIO_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) +#define bFM4_MFS15_CSIO_SSR_AWC *((volatile unsigned int*)(0x4271E0B0UL)) +#define bFM4_MFS15_CSIO_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) +#define bFM4_MFS15_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_CSIO_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_CSIO_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_CSIO_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4271E380UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4271E384UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4271E388UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271E38CUL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4271E390UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4271E394UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4271E398UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271E39CUL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4271E3A0UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4271E3A4UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4271E3A8UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4271E3ACUL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4271E3B0UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4271E3B4UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4271E3B8UL)) +#define bFM4_MFS15_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4271E3BCUL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4271E400UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4271E404UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4271E408UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271E40CUL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4271E410UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4271E414UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4271E418UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271E41CUL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4271E420UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4271E424UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4271E428UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271E42CUL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4271E430UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4271E434UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4271E438UL)) +#define bFM4_MFS15_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271E43CUL)) +#define bFM4_MFS15_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4271E480UL)) +#define bFM4_MFS15_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4271E484UL)) +#define bFM4_MFS15_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4271E488UL)) +#define bFM4_MFS15_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271E48CUL)) +#define bFM4_MFS15_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4271E490UL)) +#define bFM4_MFS15_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4271E498UL)) +#define bFM4_MFS15_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271E49CUL)) +#define bFM4_MFS15_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4271E4A0UL)) +#define bFM4_MFS15_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4271E4ACUL)) +#define bFM4_MFS15_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4271E4B0UL)) +#define bFM4_MFS15_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4271E4B4UL)) +#define bFM4_MFS15_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4271E500UL)) +#define bFM4_MFS15_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4271E504UL)) +#define bFM4_MFS15_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4271E508UL)) +#define bFM4_MFS15_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271E50CUL)) +#define bFM4_MFS15_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4271E510UL)) +#define bFM4_MFS15_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4271E514UL)) +#define bFM4_MFS15_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4271E518UL)) +#define bFM4_MFS15_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271E51CUL)) +#define bFM4_MFS15_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4271E520UL)) +#define bFM4_MFS15_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4271E524UL)) +#define bFM4_MFS15_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4271E528UL)) +#define bFM4_MFS15_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271E52CUL)) +#define bFM4_MFS15_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4271E530UL)) +#define bFM4_MFS15_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4271E534UL)) +#define bFM4_MFS15_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4271E538UL)) +#define bFM4_MFS15_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271E53CUL)) +#define bFM4_MFS15_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4271E580UL)) +#define bFM4_MFS15_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4271E584UL)) +#define bFM4_MFS15_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4271E588UL)) +#define bFM4_MFS15_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271E58CUL)) +#define bFM4_MFS15_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4271E590UL)) +#define bFM4_MFS15_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4271E594UL)) +#define bFM4_MFS15_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4271E598UL)) +#define bFM4_MFS15_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271E59CUL)) +#define bFM4_MFS15_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4271E5A0UL)) +#define bFM4_MFS15_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4271E5A4UL)) +#define bFM4_MFS15_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4271E5A8UL)) +#define bFM4_MFS15_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4271E5ACUL)) +#define bFM4_MFS15_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4271E5B0UL)) +#define bFM4_MFS15_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4271E5B4UL)) +#define bFM4_MFS15_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4271E5B8UL)) +#define bFM4_MFS15_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4271E5BCUL)) +#define bFM4_MFS15_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4271E600UL)) +#define bFM4_MFS15_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4271E604UL)) +#define bFM4_MFS15_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4271E614UL)) +#define bFM4_MFS15_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4271E618UL)) +#define bFM4_MFS15_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271E61CUL)) +#define bFM4_MFS15_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4271E620UL)) +#define bFM4_MFS15_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4271E624UL)) + +/* MFS LIN channel 15 registers */ +#define bFM4_MFS15_LIN_SMR_SOE *((volatile unsigned int*)(0x4271E000UL)) +#define bFM4_MFS15_LIN_SMR_SBL *((volatile unsigned int*)(0x4271E00CUL)) +#define bFM4_MFS15_LIN_SMR_WUCR *((volatile unsigned int*)(0x4271E010UL)) +#define bFM4_MFS15_LIN_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) +#define bFM4_MFS15_LIN_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) +#define bFM4_MFS15_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) +#define bFM4_MFS15_LIN_SCR_TXE *((volatile unsigned int*)(0x4271E020UL)) +#define bFM4_MFS15_LIN_SCR_RXE *((volatile unsigned int*)(0x4271E024UL)) +#define bFM4_MFS15_LIN_SCR_TBIE *((volatile unsigned int*)(0x4271E028UL)) +#define bFM4_MFS15_LIN_SCR_TIE *((volatile unsigned int*)(0x4271E02CUL)) +#define bFM4_MFS15_LIN_SCR_RIE *((volatile unsigned int*)(0x4271E030UL)) +#define bFM4_MFS15_LIN_SCR_LBR *((volatile unsigned int*)(0x4271E034UL)) +#define bFM4_MFS15_LIN_SCR_MS *((volatile unsigned int*)(0x4271E038UL)) +#define bFM4_MFS15_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271E03CUL)) +#define bFM4_MFS15_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4271E080UL)) +#define bFM4_MFS15_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4271E084UL)) +#define bFM4_MFS15_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4271E088UL)) +#define bFM4_MFS15_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271E08CUL)) +#define bFM4_MFS15_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4271E090UL)) +#define bFM4_MFS15_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4271E098UL)) +#define bFM4_MFS15_LIN_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) +#define bFM4_MFS15_LIN_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) +#define bFM4_MFS15_LIN_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) +#define bFM4_MFS15_LIN_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) +#define bFM4_MFS15_LIN_SSR_FRE *((volatile unsigned int*)(0x4271E0B0UL)) +#define bFM4_MFS15_LIN_SSR_LBD *((volatile unsigned int*)(0x4271E0B4UL)) +#define bFM4_MFS15_LIN_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) +#define bFM4_MFS15_LIN_BGR_EXT *((volatile unsigned int*)(0x4271E1BCUL)) +#define bFM4_MFS15_LIN_BGR1_EXT *((volatile unsigned int*)(0x4271E1BCUL)) +#define bFM4_MFS15_LIN_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_LIN_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_LIN_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_LIN_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_LIN_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_LIN_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_LIN_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_LIN_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_LIN_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_LIN_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) +#define bFM4_MFS15_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) + +/* MFS I2C channel 15 registers */ +#define bFM4_MFS15_I2C_SMR_TIE *((volatile unsigned int*)(0x4271E008UL)) +#define bFM4_MFS15_I2C_SMR_RIE *((volatile unsigned int*)(0x4271E00CUL)) +#define bFM4_MFS15_I2C_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) +#define bFM4_MFS15_I2C_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) +#define bFM4_MFS15_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) +#define bFM4_MFS15_I2C_IBCR_INT *((volatile unsigned int*)(0x4271E020UL)) +#define bFM4_MFS15_I2C_IBCR_BER *((volatile unsigned int*)(0x4271E024UL)) +#define bFM4_MFS15_I2C_IBCR_INTE *((volatile unsigned int*)(0x4271E028UL)) +#define bFM4_MFS15_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271E02CUL)) +#define bFM4_MFS15_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4271E030UL)) +#define bFM4_MFS15_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4271E034UL)) +#define bFM4_MFS15_I2C_IBCR_ACT *((volatile unsigned int*)(0x4271E038UL)) +#define bFM4_MFS15_I2C_IBCR_SCC *((volatile unsigned int*)(0x4271E038UL)) +#define bFM4_MFS15_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271E03CUL)) +#define bFM4_MFS15_I2C_IBSR_BB *((volatile unsigned int*)(0x4271E080UL)) +#define bFM4_MFS15_I2C_IBSR_SPC *((volatile unsigned int*)(0x4271E084UL)) +#define bFM4_MFS15_I2C_IBSR_RSC *((volatile unsigned int*)(0x4271E088UL)) +#define bFM4_MFS15_I2C_IBSR_AL *((volatile unsigned int*)(0x4271E08CUL)) +#define bFM4_MFS15_I2C_IBSR_TRX *((volatile unsigned int*)(0x4271E090UL)) +#define bFM4_MFS15_I2C_IBSR_RSA *((volatile unsigned int*)(0x4271E094UL)) +#define bFM4_MFS15_I2C_IBSR_RACK *((volatile unsigned int*)(0x4271E098UL)) +#define bFM4_MFS15_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271E09CUL)) +#define bFM4_MFS15_I2C_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) +#define bFM4_MFS15_I2C_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) +#define bFM4_MFS15_I2C_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) +#define bFM4_MFS15_I2C_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) +#define bFM4_MFS15_I2C_SSR_TBIE *((volatile unsigned int*)(0x4271E0B0UL)) +#define bFM4_MFS15_I2C_SSR_DMA *((volatile unsigned int*)(0x4271E0B4UL)) +#define bFM4_MFS15_I2C_SSR_TSET *((volatile unsigned int*)(0x4271E0B8UL)) +#define bFM4_MFS15_I2C_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) +#define bFM4_MFS15_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4271E200UL)) +#define bFM4_MFS15_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4271E204UL)) +#define bFM4_MFS15_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4271E208UL)) +#define bFM4_MFS15_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271E20CUL)) +#define bFM4_MFS15_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4271E210UL)) +#define bFM4_MFS15_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4271E214UL)) +#define bFM4_MFS15_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4271E218UL)) +#define bFM4_MFS15_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271E21CUL)) +#define bFM4_MFS15_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4271E220UL)) +#define bFM4_MFS15_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4271E224UL)) +#define bFM4_MFS15_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4271E228UL)) +#define bFM4_MFS15_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271E22CUL)) +#define bFM4_MFS15_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4271E230UL)) +#define bFM4_MFS15_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4271E234UL)) +#define bFM4_MFS15_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4271E238UL)) +#define bFM4_MFS15_I2C_ISMK_EN *((volatile unsigned int*)(0x4271E23CUL)) +#define bFM4_MFS15_I2C_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_I2C_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_I2C_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_I2C_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_I2C_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_I2C_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_I2C_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) +#define bFM4_MFS15_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) +#define bFM4_MFS15_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) +#define bFM4_MFS15_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) +#define bFM4_MFS15_I2C_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) +#define bFM4_MFS15_I2C_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) +#define bFM4_MFS15_I2C_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) +#define bFM4_MFS15_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) +#define bFM4_MFS15_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) +#define bFM4_MFS15_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) +#define bFM4_MFS15_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) +#define bFM4_MFS15_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) +#define bFM4_MFS15_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) +#define bFM4_MFS15_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) +#define bFM4_MFS15_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) +#define bFM4_MFS15_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) +#define bFM4_MFS15_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) +#define bFM4_MFS15_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) +#define bFM4_MFS15_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) +#define bFM4_MFS15_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) +#define bFM4_MFS15_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) +#define bFM4_MFS15_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) +#define bFM4_MFS15_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) +#define bFM4_MFS15_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) +#define bFM4_MFS15_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) +#define bFM4_MFS15_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) +#define bFM4_MFS15_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) +#define bFM4_MFS15_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) +#define bFM4_MFS15_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) + +/* CRC registers */ +#define bFM4_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) +#define bFM4_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) +#define bFM4_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) +#define bFM4_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) +#define bFM4_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) +#define bFM4_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) +#define bFM4_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) + +/* Watch counter registers */ +#define bFM4_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) +#define bFM4_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) +#define bFM4_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) +#define bFM4_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) +#define bFM4_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) +#define bFM4_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) +#define bFM4_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) +#define bFM4_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) +#define bFM4_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) +#define bFM4_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) +#define bFM4_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) +#define bFM4_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) +#define bFM4_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) +#define bFM4_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) +#define bFM4_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) +#define bFM4_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) +#define bFM4_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) +#define bFM4_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) +#define bFM4_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) +#define bFM4_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) +#define bFM4_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) +#define bFM4_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) + +/* Real time clock registers */ +#define bFM4_RTC_WTCR10_ST *((volatile unsigned int*)(0x42762000UL)) +#define bFM4_RTC_WTCR10_RUN *((volatile unsigned int*)(0x42762008UL)) +#define bFM4_RTC_WTCR10_SRST *((volatile unsigned int*)(0x4276200CUL)) +#define bFM4_RTC_WTCR10_SCST *((volatile unsigned int*)(0x42762010UL)) +#define bFM4_RTC_WTCR10_SCRST *((volatile unsigned int*)(0x42762014UL)) +#define bFM4_RTC_WTCR10_BUSY *((volatile unsigned int*)(0x42762018UL)) +#define bFM4_RTC_WTCR10_TRANS *((volatile unsigned int*)(0x4276201CUL)) +#define bFM4_RTC_WTCR11_MIEN *((volatile unsigned int*)(0x42762080UL)) +#define bFM4_RTC_WTCR11_HEN *((volatile unsigned int*)(0x42762084UL)) +#define bFM4_RTC_WTCR11_DEN *((volatile unsigned int*)(0x42762088UL)) +#define bFM4_RTC_WTCR11_MOEN *((volatile unsigned int*)(0x4276208CUL)) +#define bFM4_RTC_WTCR11_YEN *((volatile unsigned int*)(0x42762090UL)) +#define bFM4_RTC_WTCR12_INTSSI *((volatile unsigned int*)(0x42762100UL)) +#define bFM4_RTC_WTCR12_INTSI *((volatile unsigned int*)(0x42762104UL)) +#define bFM4_RTC_WTCR12_INTMI *((volatile unsigned int*)(0x42762108UL)) +#define bFM4_RTC_WTCR12_INTHI *((volatile unsigned int*)(0x4276210CUL)) +#define bFM4_RTC_WTCR12_INTTMI *((volatile unsigned int*)(0x42762110UL)) +#define bFM4_RTC_WTCR12_INTALI *((volatile unsigned int*)(0x42762114UL)) +#define bFM4_RTC_WTCR12_INTERI *((volatile unsigned int*)(0x42762118UL)) +#define bFM4_RTC_WTCR12_INTCRI *((volatile unsigned int*)(0x4276211CUL)) +#define bFM4_RTC_WTCR13_INTSSIE *((volatile unsigned int*)(0x42762180UL)) +#define bFM4_RTC_WTCR13_INTSIE *((volatile unsigned int*)(0x42762184UL)) +#define bFM4_RTC_WTCR13_INTMIE *((volatile unsigned int*)(0x42762188UL)) +#define bFM4_RTC_WTCR13_INTHIE *((volatile unsigned int*)(0x4276218CUL)) +#define bFM4_RTC_WTCR13_INTTMIE *((volatile unsigned int*)(0x42762190UL)) +#define bFM4_RTC_WTCR13_INTALIE *((volatile unsigned int*)(0x42762194UL)) +#define bFM4_RTC_WTCR13_INTERIE *((volatile unsigned int*)(0x42762198UL)) +#define bFM4_RTC_WTCR13_INTCRIE *((volatile unsigned int*)(0x4276219CUL)) +#define bFM4_RTC_WTCR20_CREAD *((volatile unsigned int*)(0x42762200UL)) +#define bFM4_RTC_WTCR20_CWRITE *((volatile unsigned int*)(0x42762204UL)) +#define bFM4_RTC_WTCR20_BREAD *((volatile unsigned int*)(0x42762208UL)) +#define bFM4_RTC_WTCR20_BWRITE *((volatile unsigned int*)(0x4276220CUL)) +#define bFM4_RTC_WTCR20_PREAD *((volatile unsigned int*)(0x42762210UL)) +#define bFM4_RTC_WTCR20_PWRITE *((volatile unsigned int*)(0x42762214UL)) +#define bFM4_RTC_WTCR21_TMST *((volatile unsigned int*)(0x42762280UL)) +#define bFM4_RTC_WTCR21_TMEN *((volatile unsigned int*)(0x42762284UL)) +#define bFM4_RTC_WTCR21_TMRUN *((volatile unsigned int*)(0x42762288UL)) +#define bFM4_RTC_WTSR_S0 *((volatile unsigned int*)(0x42762380UL)) +#define bFM4_RTC_WTSR_S1 *((volatile unsigned int*)(0x42762384UL)) +#define bFM4_RTC_WTSR_S2 *((volatile unsigned int*)(0x42762388UL)) +#define bFM4_RTC_WTSR_S3 *((volatile unsigned int*)(0x4276238CUL)) +#define bFM4_RTC_WTSR_TS0 *((volatile unsigned int*)(0x42762390UL)) +#define bFM4_RTC_WTSR_TS1 *((volatile unsigned int*)(0x42762394UL)) +#define bFM4_RTC_WTSR_TS2 *((volatile unsigned int*)(0x42762398UL)) +#define bFM4_RTC_WTMIR_MI0 *((volatile unsigned int*)(0x42762400UL)) +#define bFM4_RTC_WTMIR_MI1 *((volatile unsigned int*)(0x42762404UL)) +#define bFM4_RTC_WTMIR_MI2 *((volatile unsigned int*)(0x42762408UL)) +#define bFM4_RTC_WTMIR_MI3 *((volatile unsigned int*)(0x4276240CUL)) +#define bFM4_RTC_WTMIR_TMI0 *((volatile unsigned int*)(0x42762410UL)) +#define bFM4_RTC_WTMIR_TMI1 *((volatile unsigned int*)(0x42762414UL)) +#define bFM4_RTC_WTMIR_TMI2 *((volatile unsigned int*)(0x42762418UL)) +#define bFM4_RTC_WTHR_H0 *((volatile unsigned int*)(0x42762480UL)) +#define bFM4_RTC_WTHR_H1 *((volatile unsigned int*)(0x42762484UL)) +#define bFM4_RTC_WTHR_H2 *((volatile unsigned int*)(0x42762488UL)) +#define bFM4_RTC_WTHR_H3 *((volatile unsigned int*)(0x4276248CUL)) +#define bFM4_RTC_WTHR_TH0 *((volatile unsigned int*)(0x42762490UL)) +#define bFM4_RTC_WTHR_TH1 *((volatile unsigned int*)(0x42762494UL)) +#define bFM4_RTC_WTDR_D0 *((volatile unsigned int*)(0x42762500UL)) +#define bFM4_RTC_WTDR_D1 *((volatile unsigned int*)(0x42762504UL)) +#define bFM4_RTC_WTDR_D2 *((volatile unsigned int*)(0x42762508UL)) +#define bFM4_RTC_WTDR_D3 *((volatile unsigned int*)(0x4276250CUL)) +#define bFM4_RTC_WTDR_TD0 *((volatile unsigned int*)(0x42762510UL)) +#define bFM4_RTC_WTDR_TD1 *((volatile unsigned int*)(0x42762514UL)) +#define bFM4_RTC_WTDW_DW0 *((volatile unsigned int*)(0x42762580UL)) +#define bFM4_RTC_WTDW_DW1 *((volatile unsigned int*)(0x42762584UL)) +#define bFM4_RTC_WTDW_DW2 *((volatile unsigned int*)(0x42762588UL)) +#define bFM4_RTC_WTMOR_MO0 *((volatile unsigned int*)(0x42762600UL)) +#define bFM4_RTC_WTMOR_MO1 *((volatile unsigned int*)(0x42762604UL)) +#define bFM4_RTC_WTMOR_MO2 *((volatile unsigned int*)(0x42762608UL)) +#define bFM4_RTC_WTMOR_MO3 *((volatile unsigned int*)(0x4276260CUL)) +#define bFM4_RTC_WTMOR_TMO *((volatile unsigned int*)(0x42762610UL)) +#define bFM4_RTC_WTYR_Y0 *((volatile unsigned int*)(0x42762680UL)) +#define bFM4_RTC_WTYR_Y1 *((volatile unsigned int*)(0x42762684UL)) +#define bFM4_RTC_WTYR_Y2 *((volatile unsigned int*)(0x42762688UL)) +#define bFM4_RTC_WTYR_Y3 *((volatile unsigned int*)(0x4276268CUL)) +#define bFM4_RTC_WTYR_TY0 *((volatile unsigned int*)(0x42762690UL)) +#define bFM4_RTC_WTYR_TY1 *((volatile unsigned int*)(0x42762694UL)) +#define bFM4_RTC_WTYR_TY2 *((volatile unsigned int*)(0x42762698UL)) +#define bFM4_RTC_WTYR_TY3 *((volatile unsigned int*)(0x4276269CUL)) +#define bFM4_RTC_ALMIR_AMI0 *((volatile unsigned int*)(0x42762700UL)) +#define bFM4_RTC_ALMIR_AMI1 *((volatile unsigned int*)(0x42762704UL)) +#define bFM4_RTC_ALMIR_AMI2 *((volatile unsigned int*)(0x42762708UL)) +#define bFM4_RTC_ALMIR_AMI3 *((volatile unsigned int*)(0x4276270CUL)) +#define bFM4_RTC_ALMIR_TAMI0 *((volatile unsigned int*)(0x42762710UL)) +#define bFM4_RTC_ALMIR_TAMI1 *((volatile unsigned int*)(0x42762714UL)) +#define bFM4_RTC_ALMIR_TAMI2 *((volatile unsigned int*)(0x42762718UL)) +#define bFM4_RTC_ALHR_AH0 *((volatile unsigned int*)(0x42762780UL)) +#define bFM4_RTC_ALHR_AH1 *((volatile unsigned int*)(0x42762784UL)) +#define bFM4_RTC_ALHR_AH2 *((volatile unsigned int*)(0x42762788UL)) +#define bFM4_RTC_ALHR_AH3 *((volatile unsigned int*)(0x4276278CUL)) +#define bFM4_RTC_ALHR_TAH0 *((volatile unsigned int*)(0x42762790UL)) +#define bFM4_RTC_ALHR_TAH1 *((volatile unsigned int*)(0x42762794UL)) +#define bFM4_RTC_ALDR_AD0 *((volatile unsigned int*)(0x42762800UL)) +#define bFM4_RTC_ALDR_AD1 *((volatile unsigned int*)(0x42762804UL)) +#define bFM4_RTC_ALDR_AD2 *((volatile unsigned int*)(0x42762808UL)) +#define bFM4_RTC_ALDR_AD3 *((volatile unsigned int*)(0x4276280CUL)) +#define bFM4_RTC_ALDR_TAD0 *((volatile unsigned int*)(0x42762810UL)) +#define bFM4_RTC_ALDR_TAD1 *((volatile unsigned int*)(0x42762814UL)) +#define bFM4_RTC_ALMOR_AMO0 *((volatile unsigned int*)(0x42762880UL)) +#define bFM4_RTC_ALMOR_AMO1 *((volatile unsigned int*)(0x42762884UL)) +#define bFM4_RTC_ALMOR_AMO2 *((volatile unsigned int*)(0x42762888UL)) +#define bFM4_RTC_ALMOR_AMO3 *((volatile unsigned int*)(0x4276288CUL)) +#define bFM4_RTC_ALMOR_TAMO *((volatile unsigned int*)(0x42762890UL)) +#define bFM4_RTC_ALYR_AY0 *((volatile unsigned int*)(0x42762900UL)) +#define bFM4_RTC_ALYR_AY1 *((volatile unsigned int*)(0x42762904UL)) +#define bFM4_RTC_ALYR_AY2 *((volatile unsigned int*)(0x42762908UL)) +#define bFM4_RTC_ALYR_AY3 *((volatile unsigned int*)(0x4276290CUL)) +#define bFM4_RTC_ALYR_TAY0 *((volatile unsigned int*)(0x42762910UL)) +#define bFM4_RTC_ALYR_TAY1 *((volatile unsigned int*)(0x42762914UL)) +#define bFM4_RTC_ALYR_TAY2 *((volatile unsigned int*)(0x42762918UL)) +#define bFM4_RTC_ALYR_TAY3 *((volatile unsigned int*)(0x4276291CUL)) +#define bFM4_RTC_WTTR0_TM0 *((volatile unsigned int*)(0x42762980UL)) +#define bFM4_RTC_WTTR0_TM1 *((volatile unsigned int*)(0x42762984UL)) +#define bFM4_RTC_WTTR0_TM2 *((volatile unsigned int*)(0x42762988UL)) +#define bFM4_RTC_WTTR0_TM3 *((volatile unsigned int*)(0x4276298CUL)) +#define bFM4_RTC_WTTR0_TM4 *((volatile unsigned int*)(0x42762990UL)) +#define bFM4_RTC_WTTR0_TM5 *((volatile unsigned int*)(0x42762994UL)) +#define bFM4_RTC_WTTR0_TM6 *((volatile unsigned int*)(0x42762998UL)) +#define bFM4_RTC_WTTR0_TM7 *((volatile unsigned int*)(0x4276299CUL)) +#define bFM4_RTC_WTTR1_TM8 *((volatile unsigned int*)(0x42762A00UL)) +#define bFM4_RTC_WTTR1_TM9 *((volatile unsigned int*)(0x42762A04UL)) +#define bFM4_RTC_WTTR1_TM10 *((volatile unsigned int*)(0x42762A08UL)) +#define bFM4_RTC_WTTR1_TM11 *((volatile unsigned int*)(0x42762A0CUL)) +#define bFM4_RTC_WTTR1_TM12 *((volatile unsigned int*)(0x42762A10UL)) +#define bFM4_RTC_WTTR1_TM13 *((volatile unsigned int*)(0x42762A14UL)) +#define bFM4_RTC_WTTR1_TM14 *((volatile unsigned int*)(0x42762A18UL)) +#define bFM4_RTC_WTTR1_TM15 *((volatile unsigned int*)(0x42762A1CUL)) +#define bFM4_RTC_WTTR2_TM16 *((volatile unsigned int*)(0x42762A80UL)) +#define bFM4_RTC_WTTR2_TM17 *((volatile unsigned int*)(0x42762A84UL)) +#define bFM4_RTC_WTCAL1_WTCAL10 *((volatile unsigned int*)(0x42762B80UL)) +#define bFM4_RTC_WTCAL1_WTCAL11 *((volatile unsigned int*)(0x42762B84UL)) +#define bFM4_RTC_WTCALEN_WTCALEN *((volatile unsigned int*)(0x42762C00UL)) +#define bFM4_RTC_WTDIV_WTDIV0 *((volatile unsigned int*)(0x42762C80UL)) +#define bFM4_RTC_WTDIV_WTDIV1 *((volatile unsigned int*)(0x42762C84UL)) +#define bFM4_RTC_WTDIV_WTDIV2 *((volatile unsigned int*)(0x42762C88UL)) +#define bFM4_RTC_WTDIV_WTDIV3 *((volatile unsigned int*)(0x42762C8CUL)) +#define bFM4_RTC_WTDIVEN_WTDIVEN *((volatile unsigned int*)(0x42762D00UL)) +#define bFM4_RTC_WTDIVEN_WTDIVRDY *((volatile unsigned int*)(0x42762D04UL)) +#define bFM4_RTC_WTCALPRD_WTCALPRD0 *((volatile unsigned int*)(0x42762D80UL)) +#define bFM4_RTC_WTCALPRD_WTCALPRD1 *((volatile unsigned int*)(0x42762D84UL)) +#define bFM4_RTC_WTCALPRD_WTCALPRD2 *((volatile unsigned int*)(0x42762D88UL)) +#define bFM4_RTC_WTCALPRD_WTCALPRD3 *((volatile unsigned int*)(0x42762D8CUL)) +#define bFM4_RTC_WTCALPRD_WTCALPRD4 *((volatile unsigned int*)(0x42762D90UL)) +#define bFM4_RTC_WTCALPRD_WTCALPRD5 *((volatile unsigned int*)(0x42762D94UL)) +#define bFM4_RTC_WTCOSEL_WTCOSEL *((volatile unsigned int*)(0x42762E00UL)) +#define bFM4_RTC_VB_CLKDIV_DIV0 *((volatile unsigned int*)(0x42762E80UL)) +#define bFM4_RTC_VB_CLKDIV_DIV1 *((volatile unsigned int*)(0x42762E84UL)) +#define bFM4_RTC_VB_CLKDIV_DIV2 *((volatile unsigned int*)(0x42762E88UL)) +#define bFM4_RTC_VB_CLKDIV_DIV3 *((volatile unsigned int*)(0x42762E8CUL)) +#define bFM4_RTC_VB_CLKDIV_DIV4 *((volatile unsigned int*)(0x42762E90UL)) +#define bFM4_RTC_VB_CLKDIV_DIV5 *((volatile unsigned int*)(0x42762E94UL)) +#define bFM4_RTC_VB_CLKDIV_DIV6 *((volatile unsigned int*)(0x42762E98UL)) +#define bFM4_RTC_VB_CLKDIV_DIV7 *((volatile unsigned int*)(0x42762E9CUL)) +#define bFM4_RTC_WTOSCCNT_SOSCEX *((volatile unsigned int*)(0x42762F00UL)) +#define bFM4_RTC_WTOSCCNT_SOSCNTL *((volatile unsigned int*)(0x42762F04UL)) +#define bFM4_RTC_BOOST_BOOST0 *((volatile unsigned int*)(0x42763100UL)) +#define bFM4_RTC_BOOST_BOOST1 *((volatile unsigned int*)(0x42763104UL)) +#define bFM4_RTC_EWKUP_WUP0 *((volatile unsigned int*)(0x42763180UL)) +#define bFM4_RTC_VDET_PON *((volatile unsigned int*)(0x4276321CUL)) +#define bFM4_RTC_HIBRST_HIBRST *((volatile unsigned int*)(0x42763300UL)) +#define bFM4_RTC_VBPFR_VPFR0 *((volatile unsigned int*)(0x42763380UL)) +#define bFM4_RTC_VBPFR_VPFR1 *((volatile unsigned int*)(0x42763384UL)) +#define bFM4_RTC_VBPFR_VPFR2 *((volatile unsigned int*)(0x42763388UL)) +#define bFM4_RTC_VBPFR_VPFR3 *((volatile unsigned int*)(0x4276338CUL)) +#define bFM4_RTC_VBPFR_SPSR0 *((volatile unsigned int*)(0x42763390UL)) +#define bFM4_RTC_VBPFR_SPSR1 *((volatile unsigned int*)(0x42763394UL)) +#define bFM4_RTC_VBPCR_VPCR0 *((volatile unsigned int*)(0x42763400UL)) +#define bFM4_RTC_VBPCR_VPCR1 *((volatile unsigned int*)(0x42763404UL)) +#define bFM4_RTC_VBPCR_VPCR2 *((volatile unsigned int*)(0x42763408UL)) +#define bFM4_RTC_VBPCR_VPCR3 *((volatile unsigned int*)(0x4276340CUL)) +#define bFM4_RTC_VBDDR_VDDR0 *((volatile unsigned int*)(0x42763480UL)) +#define bFM4_RTC_VBDDR_VDDR1 *((volatile unsigned int*)(0x42763484UL)) +#define bFM4_RTC_VBDDR_VDDR2 *((volatile unsigned int*)(0x42763488UL)) +#define bFM4_RTC_VBDDR_VDDR3 *((volatile unsigned int*)(0x4276348CUL)) +#define bFM4_RTC_VBDIR_VDIR0 *((volatile unsigned int*)(0x42763500UL)) +#define bFM4_RTC_VBDIR_VDIR1 *((volatile unsigned int*)(0x42763504UL)) +#define bFM4_RTC_VBDIR_VDIR2 *((volatile unsigned int*)(0x42763508UL)) +#define bFM4_RTC_VBDIR_VDIR3 *((volatile unsigned int*)(0x4276350CUL)) +#define bFM4_RTC_VBDOR_VDOR0 *((volatile unsigned int*)(0x42763580UL)) +#define bFM4_RTC_VBDOR_VDOR1 *((volatile unsigned int*)(0x42763584UL)) +#define bFM4_RTC_VBDOR_VDOR2 *((volatile unsigned int*)(0x42763588UL)) +#define bFM4_RTC_VBDOR_VDOR3 *((volatile unsigned int*)(0x4276358CUL)) +#define bFM4_RTC_VBPZR_VPZR0 *((volatile unsigned int*)(0x42763600UL)) +#define bFM4_RTC_VBPZR_VPZR1 *((volatile unsigned int*)(0x42763604UL)) + +/* Low-speed CR prescaler registers */ +#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD0 *((volatile unsigned int*)(0x42780000UL)) +#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD1 *((volatile unsigned int*)(0x42780004UL)) +#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD2 *((volatile unsigned int*)(0x42780008UL)) +#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD3 *((volatile unsigned int*)(0x4278000CUL)) +#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD4 *((volatile unsigned int*)(0x42780010UL)) +#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD5 *((volatile unsigned int*)(0x42780014UL)) + +/* Peripheral Clock Gating registers */ +#define bFM4_CLK_GATING_CKEN0_MFSCK0 *((volatile unsigned int*)(0x42782000UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK1 *((volatile unsigned int*)(0x42782004UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK2 *((volatile unsigned int*)(0x42782008UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK3 *((volatile unsigned int*)(0x4278200CUL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK4 *((volatile unsigned int*)(0x42782010UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK5 *((volatile unsigned int*)(0x42782014UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK6 *((volatile unsigned int*)(0x42782018UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK7 *((volatile unsigned int*)(0x4278201CUL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK8 *((volatile unsigned int*)(0x42782020UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK9 *((volatile unsigned int*)(0x42782024UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK10 *((volatile unsigned int*)(0x42782028UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK11 *((volatile unsigned int*)(0x4278202CUL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK12 *((volatile unsigned int*)(0x42782030UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK13 *((volatile unsigned int*)(0x42782034UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK14 *((volatile unsigned int*)(0x42782038UL)) +#define bFM4_CLK_GATING_CKEN0_MFSCK15 *((volatile unsigned int*)(0x4278203CUL)) +#define bFM4_CLK_GATING_CKEN0_ADCCK0 *((volatile unsigned int*)(0x42782040UL)) +#define bFM4_CLK_GATING_CKEN0_ADCCK1 *((volatile unsigned int*)(0x42782044UL)) +#define bFM4_CLK_GATING_CKEN0_ADCCK2 *((volatile unsigned int*)(0x42782048UL)) +#define bFM4_CLK_GATING_CKEN0_ADCCK3 *((volatile unsigned int*)(0x4278204CUL)) +#define bFM4_CLK_GATING_CKEN0_DMACK *((volatile unsigned int*)(0x42782060UL)) +#define bFM4_CLK_GATING_CKEN0_EXBCK *((volatile unsigned int*)(0x42782068UL)) +#define bFM4_CLK_GATING_CKEN0_GIOCK *((volatile unsigned int*)(0x42782070UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST0 *((volatile unsigned int*)(0x42782080UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST1 *((volatile unsigned int*)(0x42782084UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST2 *((volatile unsigned int*)(0x42782088UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST3 *((volatile unsigned int*)(0x4278208CUL)) +#define bFM4_CLK_GATING_MRST0_MFSRST4 *((volatile unsigned int*)(0x42782090UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST5 *((volatile unsigned int*)(0x42782094UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST6 *((volatile unsigned int*)(0x42782098UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST7 *((volatile unsigned int*)(0x4278209CUL)) +#define bFM4_CLK_GATING_MRST0_MFSRST8 *((volatile unsigned int*)(0x427820A0UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST9 *((volatile unsigned int*)(0x427820A4UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST10 *((volatile unsigned int*)(0x427820A8UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST11 *((volatile unsigned int*)(0x427820ACUL)) +#define bFM4_CLK_GATING_MRST0_MFSRST12 *((volatile unsigned int*)(0x427820B0UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST13 *((volatile unsigned int*)(0x427820B4UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST14 *((volatile unsigned int*)(0x427820B8UL)) +#define bFM4_CLK_GATING_MRST0_MFSRST15 *((volatile unsigned int*)(0x427820BCUL)) +#define bFM4_CLK_GATING_MRST0_ADCRST0 *((volatile unsigned int*)(0x427820C0UL)) +#define bFM4_CLK_GATING_MRST0_ADCRST1 *((volatile unsigned int*)(0x427820C4UL)) +#define bFM4_CLK_GATING_MRST0_ADCRST2 *((volatile unsigned int*)(0x427820C8UL)) +#define bFM4_CLK_GATING_MRST0_ADCRST3 *((volatile unsigned int*)(0x427820CCUL)) +#define bFM4_CLK_GATING_MRST0_DMARST *((volatile unsigned int*)(0x427820E0UL)) +#define bFM4_CLK_GATING_MRST0_EXBRST *((volatile unsigned int*)(0x427820E8UL)) +#define bFM4_CLK_GATING_CKEN1_BTMCK0 *((volatile unsigned int*)(0x42782200UL)) +#define bFM4_CLK_GATING_CKEN1_BTMCK1 *((volatile unsigned int*)(0x42782204UL)) +#define bFM4_CLK_GATING_CKEN1_BTMCK2 *((volatile unsigned int*)(0x42782208UL)) +#define bFM4_CLK_GATING_CKEN1_BTMCK3 *((volatile unsigned int*)(0x4278220CUL)) +#define bFM4_CLK_GATING_CKEN1_MFTCK0 *((volatile unsigned int*)(0x42782220UL)) +#define bFM4_CLK_GATING_CKEN1_MFTCK1 *((volatile unsigned int*)(0x42782224UL)) +#define bFM4_CLK_GATING_CKEN1_MFTCK2 *((volatile unsigned int*)(0x42782228UL)) +#define bFM4_CLK_GATING_CKEN1_MFTCK3 *((volatile unsigned int*)(0x4278222CUL)) +#define bFM4_CLK_GATING_CKEN1_QDUCK0 *((volatile unsigned int*)(0x42782240UL)) +#define bFM4_CLK_GATING_CKEN1_QDUCK1 *((volatile unsigned int*)(0x42782244UL)) +#define bFM4_CLK_GATING_CKEN1_QDUCK2 *((volatile unsigned int*)(0x42782248UL)) +#define bFM4_CLK_GATING_CKEN1_QDUCK3 *((volatile unsigned int*)(0x4278224CUL)) +#define bFM4_CLK_GATING_MRST1_BTMRST0 *((volatile unsigned int*)(0x42782280UL)) +#define bFM4_CLK_GATING_MRST1_BTMRST1 *((volatile unsigned int*)(0x42782284UL)) +#define bFM4_CLK_GATING_MRST1_BTMRST2 *((volatile unsigned int*)(0x42782288UL)) +#define bFM4_CLK_GATING_MRST1_BTMRST3 *((volatile unsigned int*)(0x4278228CUL)) +#define bFM4_CLK_GATING_MRST1_MFTRST0 *((volatile unsigned int*)(0x427822A0UL)) +#define bFM4_CLK_GATING_MRST1_MFTRST1 *((volatile unsigned int*)(0x427822A4UL)) +#define bFM4_CLK_GATING_MRST1_MFTRST2 *((volatile unsigned int*)(0x427822A8UL)) +#define bFM4_CLK_GATING_MRST1_MFTRST3 *((volatile unsigned int*)(0x427822ACUL)) +#define bFM4_CLK_GATING_MRST1_QDURST0 *((volatile unsigned int*)(0x427822C0UL)) +#define bFM4_CLK_GATING_MRST1_QDURST1 *((volatile unsigned int*)(0x427822C4UL)) +#define bFM4_CLK_GATING_MRST1_QDURST2 *((volatile unsigned int*)(0x427822C8UL)) +#define bFM4_CLK_GATING_MRST1_QDURST3 *((volatile unsigned int*)(0x427822CCUL)) +#define bFM4_CLK_GATING_CKEN2_USBCK0 *((volatile unsigned int*)(0x42782400UL)) +#define bFM4_CLK_GATING_CKEN2_USBCK1 *((volatile unsigned int*)(0x42782404UL)) +#define bFM4_CLK_GATING_CKEN2_CANCK0 *((volatile unsigned int*)(0x42782410UL)) +#define bFM4_CLK_GATING_CKEN2_CANCK1 *((volatile unsigned int*)(0x42782414UL)) +#define bFM4_CLK_GATING_CKEN2_SDCCK *((volatile unsigned int*)(0x42782420UL)) +#define bFM4_CLK_GATING_MRST2_USBRST0 *((volatile unsigned int*)(0x42782480UL)) +#define bFM4_CLK_GATING_MRST2_USBRST1 *((volatile unsigned int*)(0x42782484UL)) +#define bFM4_CLK_GATING_MRST2_CANRST0 *((volatile unsigned int*)(0x42782490UL)) +#define bFM4_CLK_GATING_MRST2_CANRST1 *((volatile unsigned int*)(0x42782494UL)) +#define bFM4_CLK_GATING_MRST2_SDCRST *((volatile unsigned int*)(0x427824A0UL)) + +/* External bus interface registers */ +#define bFM4_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) +#define bFM4_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) +#define bFM4_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) +#define bFM4_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) +#define bFM4_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) +#define bFM4_EXBUS_MODE0_TEST *((volatile unsigned int*)(0x427E0018UL)) +#define bFM4_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) +#define bFM4_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) +#define bFM4_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) +#define bFM4_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) +#define bFM4_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) +#define bFM4_EXBUS_MODE1_TEST *((volatile unsigned int*)(0x427E0098UL)) +#define bFM4_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) +#define bFM4_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) +#define bFM4_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) +#define bFM4_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) +#define bFM4_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) +#define bFM4_EXBUS_MODE2_TEST *((volatile unsigned int*)(0x427E0118UL)) +#define bFM4_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) +#define bFM4_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) +#define bFM4_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) +#define bFM4_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) +#define bFM4_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) +#define bFM4_EXBUS_MODE3_TEST *((volatile unsigned int*)(0x427E0198UL)) +#define bFM4_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) +#define bFM4_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) +#define bFM4_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) +#define bFM4_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) +#define bFM4_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) +#define bFM4_EXBUS_MODE7_TEST *((volatile unsigned int*)(0x427E0398UL)) +#define bFM4_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) +#define bFM4_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) +#define bFM4_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) +#define bFM4_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) +#define bFM4_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) +#define bFM4_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) +#define bFM4_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) +#define bFM4_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) +#define bFM4_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) +#define bFM4_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) +#define bFM4_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) +#define bFM4_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) +#define bFM4_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) +#define bFM4_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) +#define bFM4_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) +#define bFM4_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) +#define bFM4_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) +#define bFM4_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) +#define bFM4_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) +#define bFM4_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) +#define bFM4_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) +#define bFM4_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) +#define bFM4_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) +#define bFM4_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) +#define bFM4_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) +#define bFM4_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) +#define bFM4_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) +#define bFM4_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) +#define bFM4_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) +#define bFM4_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) +#define bFM4_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) +#define bFM4_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) +#define bFM4_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) +#define bFM4_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) +#define bFM4_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) +#define bFM4_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) +#define bFM4_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) +#define bFM4_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) +#define bFM4_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) +#define bFM4_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) +#define bFM4_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) +#define bFM4_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) +#define bFM4_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) +#define bFM4_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) +#define bFM4_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) +#define bFM4_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) +#define bFM4_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) +#define bFM4_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) +#define bFM4_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) +#define bFM4_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) +#define bFM4_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) +#define bFM4_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) +#define bFM4_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) +#define bFM4_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) +#define bFM4_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) +#define bFM4_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) +#define bFM4_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) +#define bFM4_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) +#define bFM4_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) +#define bFM4_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) +#define bFM4_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) +#define bFM4_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) +#define bFM4_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) +#define bFM4_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) +#define bFM4_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) +#define bFM4_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) +#define bFM4_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) +#define bFM4_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) +#define bFM4_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) +#define bFM4_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) +#define bFM4_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) +#define bFM4_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) +#define bFM4_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) +#define bFM4_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) +#define bFM4_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) +#define bFM4_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) +#define bFM4_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) +#define bFM4_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) +#define bFM4_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) +#define bFM4_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) +#define bFM4_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) +#define bFM4_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) +#define bFM4_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) +#define bFM4_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) +#define bFM4_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) +#define bFM4_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) +#define bFM4_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) +#define bFM4_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) +#define bFM4_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) +#define bFM4_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) +#define bFM4_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) +#define bFM4_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) +#define bFM4_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) +#define bFM4_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) +#define bFM4_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) +#define bFM4_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) +#define bFM4_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) +#define bFM4_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) +#define bFM4_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) +#define bFM4_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) +#define bFM4_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) +#define bFM4_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) +#define bFM4_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) +#define bFM4_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) +#define bFM4_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) +#define bFM4_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) +#define bFM4_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) +#define bFM4_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) +#define bFM4_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) +#define bFM4_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) +#define bFM4_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) +#define bFM4_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) +#define bFM4_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) +#define bFM4_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) +#define bFM4_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) +#define bFM4_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) +#define bFM4_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) +#define bFM4_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) +#define bFM4_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) +#define bFM4_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) +#define bFM4_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) +#define bFM4_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) +#define bFM4_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) +#define bFM4_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) +#define bFM4_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) +#define bFM4_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) +#define bFM4_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) +#define bFM4_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) +#define bFM4_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) +#define bFM4_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) +#define bFM4_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) +#define bFM4_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) +#define bFM4_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) +#define bFM4_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) +#define bFM4_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) +#define bFM4_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) +#define bFM4_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) +#define bFM4_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) +#define bFM4_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) +#define bFM4_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) +#define bFM4_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) +#define bFM4_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) +#define bFM4_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) +#define bFM4_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) +#define bFM4_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) +#define bFM4_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) +#define bFM4_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) +#define bFM4_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) +#define bFM4_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) +#define bFM4_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) +#define bFM4_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) +#define bFM4_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) +#define bFM4_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) +#define bFM4_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) +#define bFM4_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) +#define bFM4_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) +#define bFM4_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) +#define bFM4_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) +#define bFM4_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) +#define bFM4_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) +#define bFM4_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) +#define bFM4_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) +#define bFM4_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) +#define bFM4_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) +#define bFM4_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) +#define bFM4_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) +#define bFM4_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) +#define bFM4_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) +#define bFM4_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) +#define bFM4_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) +#define bFM4_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) +#define bFM4_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) +#define bFM4_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) +#define bFM4_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) +#define bFM4_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) +#define bFM4_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) +#define bFM4_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) +#define bFM4_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) +#define bFM4_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) +#define bFM4_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) +#define bFM4_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) +#define bFM4_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) +#define bFM4_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) +#define bFM4_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) +#define bFM4_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) +#define bFM4_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) +#define bFM4_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) +#define bFM4_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) +#define bFM4_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) +#define bFM4_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) +#define bFM4_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) +#define bFM4_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) +#define bFM4_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) +#define bFM4_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) +#define bFM4_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) +#define bFM4_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) +#define bFM4_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) +#define bFM4_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) +#define bFM4_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) +#define bFM4_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) +#define bFM4_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) +#define bFM4_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) +#define bFM4_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) +#define bFM4_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) +#define bFM4_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) +#define bFM4_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) +#define bFM4_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) +#define bFM4_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) +#define bFM4_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) +#define bFM4_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) +#define bFM4_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) +#define bFM4_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) +#define bFM4_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) +#define bFM4_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) +#define bFM4_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) +#define bFM4_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) +#define bFM4_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) +#define bFM4_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) +#define bFM4_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) +#define bFM4_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) +#define bFM4_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) +#define bFM4_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) +#define bFM4_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) +#define bFM4_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) +#define bFM4_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) +#define bFM4_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) +#define bFM4_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) +#define bFM4_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) +#define bFM4_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) +#define bFM4_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) +#define bFM4_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) +#define bFM4_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) +#define bFM4_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) +#define bFM4_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) +#define bFM4_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) + +/* USB channel 0 registers */ +#define bFM4_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM4_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM4_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM4_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM4_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM4_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM4_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM4_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM4_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM4_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM4_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM4_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM4_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM4_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM4_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM4_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM4_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM4_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM4_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM4_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM4_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM4_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM4_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) +#define bFM4_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) +#define bFM4_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) +#define bFM4_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) +#define bFM4_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) +#define bFM4_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) +#define bFM4_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) +#define bFM4_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) +#define bFM4_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) +#define bFM4_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) +#define bFM4_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) +#define bFM4_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) +#define bFM4_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) +#define bFM4_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) +#define bFM4_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) +#define bFM4_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) +#define bFM4_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) +#define bFM4_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) +#define bFM4_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) +#define bFM4_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) +#define bFM4_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) +#define bFM4_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) +#define bFM4_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) +#define bFM4_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) +#define bFM4_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) +#define bFM4_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM4_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) +#define bFM4_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) +#define bFM4_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) +#define bFM4_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM4_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM4_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM4_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM4_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM4_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM4_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM4_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM4_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM4_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) +#define bFM4_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) +#define bFM4_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) +#define bFM4_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM4_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) +#define bFM4_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) +#define bFM4_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) +#define bFM4_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM4_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM4_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM4_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM4_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM4_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM4_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM4_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM4_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM4_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) +#define bFM4_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) +#define bFM4_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) +#define bFM4_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) +#define bFM4_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) +#define bFM4_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) +#define bFM4_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) +#define bFM4_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) +#define bFM4_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) +#define bFM4_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) +#define bFM4_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) +#define bFM4_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) +#define bFM4_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) +#define bFM4_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM4_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) +#define bFM4_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) +#define bFM4_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) +#define bFM4_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM4_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM4_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM4_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM4_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM4_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM4_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM4_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) +#define bFM4_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) +#define bFM4_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) +#define bFM4_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) +#define bFM4_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) +#define bFM4_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM4_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) +#define bFM4_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) +#define bFM4_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) +#define bFM4_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM4_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM4_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM4_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM4_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM4_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM4_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM4_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) +#define bFM4_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) +#define bFM4_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) +#define bFM4_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM4_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) +#define bFM4_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) +#define bFM4_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) +#define bFM4_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM4_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) +#define bFM4_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) +#define bFM4_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) +#define bFM4_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) +#define bFM4_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) +#define bFM4_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) +#define bFM4_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM4_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) +#define bFM4_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) +#define bFM4_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) +#define bFM4_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM4_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) +#define bFM4_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) +#define bFM4_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) +#define bFM4_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) +#define bFM4_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) +#define bFM4_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) +#define bFM4_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) +#define bFM4_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) +#define bFM4_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) +#define bFM4_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) +#define bFM4_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) +#define bFM4_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) +#define bFM4_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) +#define bFM4_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) +#define bFM4_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) +#define bFM4_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) +#define bFM4_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) +#define bFM4_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) +#define bFM4_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) +#define bFM4_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) +#define bFM4_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) +#define bFM4_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) +#define bFM4_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) +#define bFM4_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) +#define bFM4_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) +#define bFM4_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) +#define bFM4_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) +#define bFM4_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) +#define bFM4_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) +#define bFM4_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) +#define bFM4_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) +#define bFM4_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) +#define bFM4_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) +#define bFM4_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) +#define bFM4_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) +#define bFM4_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) +#define bFM4_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) +#define bFM4_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) +#define bFM4_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) +#define bFM4_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) +#define bFM4_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) +#define bFM4_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) +#define bFM4_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) +#define bFM4_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) +#define bFM4_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) +#define bFM4_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) +#define bFM4_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) +#define bFM4_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) +#define bFM4_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) +#define bFM4_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) +#define bFM4_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) +#define bFM4_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) +#define bFM4_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) +#define bFM4_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) +#define bFM4_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) +#define bFM4_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) +#define bFM4_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) +#define bFM4_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) +#define bFM4_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) +#define bFM4_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) +#define bFM4_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) +#define bFM4_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) +#define bFM4_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) +#define bFM4_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) +#define bFM4_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) +#define bFM4_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) +#define bFM4_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) +#define bFM4_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) +#define bFM4_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) +#define bFM4_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) +#define bFM4_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) +#define bFM4_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) +#define bFM4_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) +#define bFM4_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) +#define bFM4_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) +#define bFM4_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) +#define bFM4_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) +#define bFM4_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) +#define bFM4_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) +#define bFM4_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) +#define bFM4_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) +#define bFM4_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) +#define bFM4_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) +#define bFM4_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) +#define bFM4_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) +#define bFM4_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) +#define bFM4_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) +#define bFM4_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) +#define bFM4_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) +#define bFM4_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) +#define bFM4_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) +#define bFM4_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) +#define bFM4_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) +#define bFM4_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) +#define bFM4_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) +#define bFM4_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) +#define bFM4_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) +#define bFM4_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) +#define bFM4_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) +#define bFM4_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) +#define bFM4_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) +#define bFM4_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) +#define bFM4_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) +#define bFM4_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) +#define bFM4_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) +#define bFM4_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) +#define bFM4_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) +#define bFM4_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) +#define bFM4_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) +#define bFM4_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) +#define bFM4_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) +#define bFM4_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) +#define bFM4_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) +#define bFM4_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) +#define bFM4_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) +#define bFM4_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) +#define bFM4_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) +#define bFM4_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) +#define bFM4_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) +#define bFM4_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) +#define bFM4_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) +#define bFM4_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) +#define bFM4_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) +#define bFM4_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) +#define bFM4_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) +#define bFM4_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) +#define bFM4_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) +#define bFM4_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) +#define bFM4_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) +#define bFM4_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) +#define bFM4_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) +#define bFM4_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) +#define bFM4_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) +#define bFM4_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) +#define bFM4_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) +#define bFM4_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) +#define bFM4_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) +#define bFM4_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) +#define bFM4_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) +#define bFM4_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) +#define bFM4_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) +#define bFM4_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) +#define bFM4_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) +#define bFM4_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) +#define bFM4_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) +#define bFM4_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) +#define bFM4_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) +#define bFM4_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) +#define bFM4_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) +#define bFM4_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) +#define bFM4_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) +#define bFM4_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) +#define bFM4_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) +#define bFM4_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) +#define bFM4_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) +#define bFM4_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) +#define bFM4_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) +#define bFM4_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) +#define bFM4_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) +#define bFM4_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) +#define bFM4_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) +#define bFM4_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) +#define bFM4_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) +#define bFM4_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) +#define bFM4_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) +#define bFM4_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) +#define bFM4_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) +#define bFM4_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) +#define bFM4_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) +#define bFM4_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) +#define bFM4_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) +#define bFM4_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) +#define bFM4_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) +#define bFM4_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) +#define bFM4_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) +#define bFM4_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) +#define bFM4_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) +#define bFM4_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) +#define bFM4_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) +#define bFM4_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) +#define bFM4_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) +#define bFM4_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) +#define bFM4_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) +#define bFM4_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) +#define bFM4_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) +#define bFM4_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) +#define bFM4_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) +#define bFM4_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) +#define bFM4_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) +#define bFM4_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) +#define bFM4_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) +#define bFM4_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) +#define bFM4_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) +#define bFM4_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) +#define bFM4_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) +#define bFM4_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) +#define bFM4_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) +#define bFM4_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) +#define bFM4_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) +#define bFM4_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) +#define bFM4_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) +#define bFM4_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) +#define bFM4_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) +#define bFM4_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) + +/* DMA controller */ +#define bFM4_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) +#define bFM4_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) +#define bFM4_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) +#define bFM4_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) +#define bFM4_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) +#define bFM4_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) +#define bFM4_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) +#define bFM4_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) +#define bFM4_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) +#define bFM4_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) +#define bFM4_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) +#define bFM4_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) +#define bFM4_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) +#define bFM4_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) +#define bFM4_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) +#define bFM4_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) +#define bFM4_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) +#define bFM4_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) +#define bFM4_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) +#define bFM4_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) +#define bFM4_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) +#define bFM4_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) +#define bFM4_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) +#define bFM4_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) +#define bFM4_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) +#define bFM4_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) +#define bFM4_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) +#define bFM4_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) +#define bFM4_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) +#define bFM4_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) +#define bFM4_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) +#define bFM4_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) +#define bFM4_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) +#define bFM4_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) +#define bFM4_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) +#define bFM4_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) +#define bFM4_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) +#define bFM4_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) +#define bFM4_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) +#define bFM4_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) +#define bFM4_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) +#define bFM4_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) +#define bFM4_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) +#define bFM4_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) +#define bFM4_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) +#define bFM4_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) +#define bFM4_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) +#define bFM4_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) +#define bFM4_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) +#define bFM4_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) +#define bFM4_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) +#define bFM4_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) +#define bFM4_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) +#define bFM4_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) +#define bFM4_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) +#define bFM4_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) +#define bFM4_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) +#define bFM4_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) +#define bFM4_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) +#define bFM4_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) +#define bFM4_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) +#define bFM4_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) +#define bFM4_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) +#define bFM4_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) +#define bFM4_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) +#define bFM4_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) +#define bFM4_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) +#define bFM4_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) +#define bFM4_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) +#define bFM4_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) +#define bFM4_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) +#define bFM4_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) +#define bFM4_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) +#define bFM4_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) +#define bFM4_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) +#define bFM4_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) +#define bFM4_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) +#define bFM4_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) +#define bFM4_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) +#define bFM4_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) +#define bFM4_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) +#define bFM4_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) +#define bFM4_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) +#define bFM4_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) +#define bFM4_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) +#define bFM4_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) +#define bFM4_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) +#define bFM4_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) +#define bFM4_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) +#define bFM4_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) +#define bFM4_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) +#define bFM4_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) +#define bFM4_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) +#define bFM4_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) +#define bFM4_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) +#define bFM4_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) +#define bFM4_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) +#define bFM4_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) +#define bFM4_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) +#define bFM4_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) +#define bFM4_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) +#define bFM4_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) +#define bFM4_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) +#define bFM4_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) +#define bFM4_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) +#define bFM4_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) +#define bFM4_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) +#define bFM4_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) +#define bFM4_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) +#define bFM4_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) +#define bFM4_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) +#define bFM4_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) +#define bFM4_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) +#define bFM4_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) +#define bFM4_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) +#define bFM4_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) +#define bFM4_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) +#define bFM4_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) +#define bFM4_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) +#define bFM4_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) +#define bFM4_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) +#define bFM4_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) +#define bFM4_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) +#define bFM4_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) +#define bFM4_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) +#define bFM4_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) +#define bFM4_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) +#define bFM4_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) +#define bFM4_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) +#define bFM4_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) +#define bFM4_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) +#define bFM4_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) +#define bFM4_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) +#define bFM4_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) +#define bFM4_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) +#define bFM4_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) +#define bFM4_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) +#define bFM4_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) +#define bFM4_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) +#define bFM4_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) +#define bFM4_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) +#define bFM4_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) +#define bFM4_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) +#define bFM4_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) +#define bFM4_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) +#define bFM4_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) +#define bFM4_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) +#define bFM4_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) +#define bFM4_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) +#define bFM4_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) +#define bFM4_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) +#define bFM4_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) +#define bFM4_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) +#define bFM4_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) +#define bFM4_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) +#define bFM4_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) +#define bFM4_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) +#define bFM4_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) +#define bFM4_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) +#define bFM4_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) +#define bFM4_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) +#define bFM4_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) +#define bFM4_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) +#define bFM4_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) +#define bFM4_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) +#define bFM4_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) +#define bFM4_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) +#define bFM4_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) +#define bFM4_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) +#define bFM4_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) +#define bFM4_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) +#define bFM4_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) +#define bFM4_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) +#define bFM4_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) +#define bFM4_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) +#define bFM4_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) +#define bFM4_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) +#define bFM4_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) +#define bFM4_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) +#define bFM4_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) +#define bFM4_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) +#define bFM4_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) +#define bFM4_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) +#define bFM4_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) +#define bFM4_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) +#define bFM4_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) +#define bFM4_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) +#define bFM4_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) +#define bFM4_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) +#define bFM4_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) +#define bFM4_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) +#define bFM4_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) +#define bFM4_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) +#define bFM4_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) +#define bFM4_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) +#define bFM4_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) +#define bFM4_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) +#define bFM4_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) +#define bFM4_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) +#define bFM4_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) +#define bFM4_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) +#define bFM4_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) +#define bFM4_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) +#define bFM4_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) +#define bFM4_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) +#define bFM4_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) +#define bFM4_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) +#define bFM4_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) +#define bFM4_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) +#define bFM4_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) +#define bFM4_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) +#define bFM4_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) +#define bFM4_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) +#define bFM4_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) +#define bFM4_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) +#define bFM4_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) +#define bFM4_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) +#define bFM4_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) +#define bFM4_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) +#define bFM4_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) +#define bFM4_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) +#define bFM4_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) +#define bFM4_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) +#define bFM4_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) +#define bFM4_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) +#define bFM4_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) +#define bFM4_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) +#define bFM4_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) +#define bFM4_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) +#define bFM4_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) +#define bFM4_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) +#define bFM4_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) +#define bFM4_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) +#define bFM4_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) +#define bFM4_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) +#define bFM4_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) +#define bFM4_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) +#define bFM4_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) +#define bFM4_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) +#define bFM4_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) +#define bFM4_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) +#define bFM4_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) +#define bFM4_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) +#define bFM4_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) +#define bFM4_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) +#define bFM4_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) +#define bFM4_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) +#define bFM4_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) +#define bFM4_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) +#define bFM4_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) +#define bFM4_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) +#define bFM4_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) +#define bFM4_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) +#define bFM4_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) +#define bFM4_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) +#define bFM4_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) +#define bFM4_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) +#define bFM4_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) +#define bFM4_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) +#define bFM4_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) +#define bFM4_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) +#define bFM4_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) +#define bFM4_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) +#define bFM4_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) +#define bFM4_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) +#define bFM4_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) +#define bFM4_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) +#define bFM4_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) +#define bFM4_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) +#define bFM4_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) +#define bFM4_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) +#define bFM4_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) +#define bFM4_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) +#define bFM4_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) +#define bFM4_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) +#define bFM4_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) +#define bFM4_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) +#define bFM4_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) +#define bFM4_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) +#define bFM4_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) +#define bFM4_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) +#define bFM4_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) +#define bFM4_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) +#define bFM4_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) +#define bFM4_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) +#define bFM4_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) +#define bFM4_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) +#define bFM4_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) +#define bFM4_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) +#define bFM4_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) +#define bFM4_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) +#define bFM4_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) +#define bFM4_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) +#define bFM4_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) +#define bFM4_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) +#define bFM4_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) +#define bFM4_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) +#define bFM4_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) +#define bFM4_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) +#define bFM4_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) +#define bFM4_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) +#define bFM4_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) +#define bFM4_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) +#define bFM4_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) +#define bFM4_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) +#define bFM4_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) +#define bFM4_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) +#define bFM4_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) +#define bFM4_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) +#define bFM4_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) +#define bFM4_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) +#define bFM4_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) +#define bFM4_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) +#define bFM4_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) +#define bFM4_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) +#define bFM4_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) +#define bFM4_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) +#define bFM4_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) +#define bFM4_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) +#define bFM4_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) +#define bFM4_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) +#define bFM4_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) +#define bFM4_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) +#define bFM4_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) +#define bFM4_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) +#define bFM4_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) +#define bFM4_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) +#define bFM4_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) +#define bFM4_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) +#define bFM4_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) +#define bFM4_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) +#define bFM4_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) +#define bFM4_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) +#define bFM4_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) +#define bFM4_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) +#define bFM4_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) +#define bFM4_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) +#define bFM4_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) +#define bFM4_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) +#define bFM4_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) +#define bFM4_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) +#define bFM4_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) +#define bFM4_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) +#define bFM4_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) +#define bFM4_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) +#define bFM4_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) +#define bFM4_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) +#define bFM4_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) +#define bFM4_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) +#define bFM4_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) +#define bFM4_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) +#define bFM4_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) +#define bFM4_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) +#define bFM4_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) +#define bFM4_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) +#define bFM4_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) +#define bFM4_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) +#define bFM4_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) +#define bFM4_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) + +/* CAN channel 0 registers */ +#define bFM4_CAN0_CTRLR_INIT *((volatile unsigned int*)(0x42C40000UL)) +#define bFM4_CAN0_CTRLR_IE *((volatile unsigned int*)(0x42C40004UL)) +#define bFM4_CAN0_CTRLR_SIE *((volatile unsigned int*)(0x42C40008UL)) +#define bFM4_CAN0_CTRLR_EIE *((volatile unsigned int*)(0x42C4000CUL)) +#define bFM4_CAN0_CTRLR_DAR *((volatile unsigned int*)(0x42C40014UL)) +#define bFM4_CAN0_CTRLR_CCE *((volatile unsigned int*)(0x42C40018UL)) +#define bFM4_CAN0_CTRLR_TEST *((volatile unsigned int*)(0x42C4001CUL)) +#define bFM4_CAN0_STATR_LEC0 *((volatile unsigned int*)(0x42C40040UL)) +#define bFM4_CAN0_STATR_LEC1 *((volatile unsigned int*)(0x42C40044UL)) +#define bFM4_CAN0_STATR_LEC2 *((volatile unsigned int*)(0x42C40048UL)) +#define bFM4_CAN0_STATR_TXOK *((volatile unsigned int*)(0x42C4004CUL)) +#define bFM4_CAN0_STATR_RXOK *((volatile unsigned int*)(0x42C40050UL)) +#define bFM4_CAN0_STATR_EPASS *((volatile unsigned int*)(0x42C40054UL)) +#define bFM4_CAN0_STATR_EWARM *((volatile unsigned int*)(0x42C40058UL)) +#define bFM4_CAN0_STATR_BOFF *((volatile unsigned int*)(0x42C4005CUL)) +#define bFM4_CAN0_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C40080UL)) +#define bFM4_CAN0_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C40084UL)) +#define bFM4_CAN0_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C40088UL)) +#define bFM4_CAN0_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C4008CUL)) +#define bFM4_CAN0_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C40090UL)) +#define bFM4_CAN0_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C40094UL)) +#define bFM4_CAN0_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C40098UL)) +#define bFM4_CAN0_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C4009CUL)) +#define bFM4_CAN0_ERRCNT_REC0 *((volatile unsigned int*)(0x42C400A0UL)) +#define bFM4_CAN0_ERRCNT_REC1 *((volatile unsigned int*)(0x42C400A4UL)) +#define bFM4_CAN0_ERRCNT_REC2 *((volatile unsigned int*)(0x42C400A8UL)) +#define bFM4_CAN0_ERRCNT_REC3 *((volatile unsigned int*)(0x42C400ACUL)) +#define bFM4_CAN0_ERRCNT_REC4 *((volatile unsigned int*)(0x42C400B0UL)) +#define bFM4_CAN0_ERRCNT_REC5 *((volatile unsigned int*)(0x42C400B4UL)) +#define bFM4_CAN0_ERRCNT_REC6 *((volatile unsigned int*)(0x42C400B8UL)) +#define bFM4_CAN0_ERRCNT_RP *((volatile unsigned int*)(0x42C400BCUL)) +#define bFM4_CAN0_BTR_BRP0 *((volatile unsigned int*)(0x42C400C0UL)) +#define bFM4_CAN0_BTR_BRP1 *((volatile unsigned int*)(0x42C400C4UL)) +#define bFM4_CAN0_BTR_BRP2 *((volatile unsigned int*)(0x42C400C8UL)) +#define bFM4_CAN0_BTR_BRP3 *((volatile unsigned int*)(0x42C400CCUL)) +#define bFM4_CAN0_BTR_BRP4 *((volatile unsigned int*)(0x42C400D0UL)) +#define bFM4_CAN0_BTR_BRP5 *((volatile unsigned int*)(0x42C400D4UL)) +#define bFM4_CAN0_BTR_SJW0 *((volatile unsigned int*)(0x42C400D8UL)) +#define bFM4_CAN0_BTR_SJW1 *((volatile unsigned int*)(0x42C400DCUL)) +#define bFM4_CAN0_BTR_TSEG10 *((volatile unsigned int*)(0x42C400E0UL)) +#define bFM4_CAN0_BTR_TSEG11 *((volatile unsigned int*)(0x42C400E4UL)) +#define bFM4_CAN0_BTR_TSEG12 *((volatile unsigned int*)(0x42C400E8UL)) +#define bFM4_CAN0_BTR_TSEG13 *((volatile unsigned int*)(0x42C400ECUL)) +#define bFM4_CAN0_BTR_TSEG20 *((volatile unsigned int*)(0x42C400F0UL)) +#define bFM4_CAN0_BTR_TSEG21 *((volatile unsigned int*)(0x42C400F4UL)) +#define bFM4_CAN0_BTR_TSEG22 *((volatile unsigned int*)(0x42C400F8UL)) +#define bFM4_CAN0_INTR_INTID0 *((volatile unsigned int*)(0x42C40100UL)) +#define bFM4_CAN0_INTR_INTID1 *((volatile unsigned int*)(0x42C40104UL)) +#define bFM4_CAN0_INTR_INTID2 *((volatile unsigned int*)(0x42C40108UL)) +#define bFM4_CAN0_INTR_INTID3 *((volatile unsigned int*)(0x42C4010CUL)) +#define bFM4_CAN0_INTR_INTID4 *((volatile unsigned int*)(0x42C40110UL)) +#define bFM4_CAN0_INTR_INTID5 *((volatile unsigned int*)(0x42C40114UL)) +#define bFM4_CAN0_INTR_INTID6 *((volatile unsigned int*)(0x42C40118UL)) +#define bFM4_CAN0_INTR_INTID7 *((volatile unsigned int*)(0x42C4011CUL)) +#define bFM4_CAN0_INTR_INTID8 *((volatile unsigned int*)(0x42C40120UL)) +#define bFM4_CAN0_INTR_INTID9 *((volatile unsigned int*)(0x42C40124UL)) +#define bFM4_CAN0_INTR_INTID10 *((volatile unsigned int*)(0x42C40128UL)) +#define bFM4_CAN0_INTR_INTID11 *((volatile unsigned int*)(0x42C4012CUL)) +#define bFM4_CAN0_INTR_INTID12 *((volatile unsigned int*)(0x42C40130UL)) +#define bFM4_CAN0_INTR_INTID13 *((volatile unsigned int*)(0x42C40134UL)) +#define bFM4_CAN0_INTR_INTID14 *((volatile unsigned int*)(0x42C40138UL)) +#define bFM4_CAN0_INTR_INTID15 *((volatile unsigned int*)(0x42C4013CUL)) +#define bFM4_CAN0_TESTR_BASIC *((volatile unsigned int*)(0x42C40148UL)) +#define bFM4_CAN0_TESTR_SILENT *((volatile unsigned int*)(0x42C4014CUL)) +#define bFM4_CAN0_TESTR_LBACK *((volatile unsigned int*)(0x42C40150UL)) +#define bFM4_CAN0_TESTR_TX0 *((volatile unsigned int*)(0x42C40154UL)) +#define bFM4_CAN0_TESTR_TX1 *((volatile unsigned int*)(0x42C40158UL)) +#define bFM4_CAN0_TESTR_RX *((volatile unsigned int*)(0x42C4015CUL)) +#define bFM4_CAN0_BRPER_BRPE0 *((volatile unsigned int*)(0x42C40180UL)) +#define bFM4_CAN0_BRPER_BRPE1 *((volatile unsigned int*)(0x42C40184UL)) +#define bFM4_CAN0_BRPER_BRPE2 *((volatile unsigned int*)(0x42C40188UL)) +#define bFM4_CAN0_BRPER_BRPE3 *((volatile unsigned int*)(0x42C4018CUL)) +#define bFM4_CAN0_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C4023CUL)) +#define bFM4_CAN0_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C40240UL)) +#define bFM4_CAN0_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C40244UL)) +#define bFM4_CAN0_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C40248UL)) +#define bFM4_CAN0_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C40248UL)) +#define bFM4_CAN0_IF1CMSK_CIP *((volatile unsigned int*)(0x42C4024CUL)) +#define bFM4_CAN0_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C40250UL)) +#define bFM4_CAN0_IF1CMSK_ARB *((volatile unsigned int*)(0x42C40254UL)) +#define bFM4_CAN0_IF1CMSK_MASK *((volatile unsigned int*)(0x42C40258UL)) +#define bFM4_CAN0_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C4025CUL)) +#define bFM4_CAN0_IF1MSK_MDIR *((volatile unsigned int*)(0x42C402F8UL)) +#define bFM4_CAN0_IF1MSK_MXTD *((volatile unsigned int*)(0x42C402FCUL)) +#define bFM4_CAN0_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C402F8UL)) +#define bFM4_CAN0_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C402FCUL)) +#define bFM4_CAN0_IF1ARB_DIR *((volatile unsigned int*)(0x42C40374UL)) +#define bFM4_CAN0_IF1ARB_XTD *((volatile unsigned int*)(0x42C40378UL)) +#define bFM4_CAN0_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) +#define bFM4_CAN0_IF1ARB2_DIR *((volatile unsigned int*)(0x42C40374UL)) +#define bFM4_CAN0_IF1ARB2_XTD *((volatile unsigned int*)(0x42C40378UL)) +#define bFM4_CAN0_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) +#define bFM4_CAN0_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C40380UL)) +#define bFM4_CAN0_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C40384UL)) +#define bFM4_CAN0_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C40388UL)) +#define bFM4_CAN0_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C4038CUL)) +#define bFM4_CAN0_IF1MCTR_EOB *((volatile unsigned int*)(0x42C4039CUL)) +#define bFM4_CAN0_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C403A0UL)) +#define bFM4_CAN0_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C403A4UL)) +#define bFM4_CAN0_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C403A8UL)) +#define bFM4_CAN0_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C403ACUL)) +#define bFM4_CAN0_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C403B0UL)) +#define bFM4_CAN0_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C403B4UL)) +#define bFM4_CAN0_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C403B8UL)) +#define bFM4_CAN0_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C403BCUL)) +#define bFM4_CAN0_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C4083CUL)) +#define bFM4_CAN0_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C40840UL)) +#define bFM4_CAN0_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C40844UL)) +#define bFM4_CAN0_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C40848UL)) +#define bFM4_CAN0_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C40848UL)) +#define bFM4_CAN0_IF2CMSK_CIP *((volatile unsigned int*)(0x42C4084CUL)) +#define bFM4_CAN0_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C40850UL)) +#define bFM4_CAN0_IF2CMSK_ARB *((volatile unsigned int*)(0x42C40854UL)) +#define bFM4_CAN0_IF2CMSK_MASK *((volatile unsigned int*)(0x42C40858UL)) +#define bFM4_CAN0_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C4085CUL)) +#define bFM4_CAN0_IF2MSK_MDIR *((volatile unsigned int*)(0x42C408F8UL)) +#define bFM4_CAN0_IF2MSK_MXTD *((volatile unsigned int*)(0x42C408FCUL)) +#define bFM4_CAN0_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C408F8UL)) +#define bFM4_CAN0_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C408FCUL)) +#define bFM4_CAN0_IF2ARB_DIR *((volatile unsigned int*)(0x42C40974UL)) +#define bFM4_CAN0_IF2ARB_XTD *((volatile unsigned int*)(0x42C40978UL)) +#define bFM4_CAN0_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) +#define bFM4_CAN0_IF2ARB2_DIR *((volatile unsigned int*)(0x42C40974UL)) +#define bFM4_CAN0_IF2ARB2_XTD *((volatile unsigned int*)(0x42C40978UL)) +#define bFM4_CAN0_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) +#define bFM4_CAN0_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C40980UL)) +#define bFM4_CAN0_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C40984UL)) +#define bFM4_CAN0_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C40988UL)) +#define bFM4_CAN0_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C4098CUL)) +#define bFM4_CAN0_IF2MCTR_EOB *((volatile unsigned int*)(0x42C4099CUL)) +#define bFM4_CAN0_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C409A0UL)) +#define bFM4_CAN0_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C409A4UL)) +#define bFM4_CAN0_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C409A8UL)) +#define bFM4_CAN0_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C409ACUL)) +#define bFM4_CAN0_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C409B0UL)) +#define bFM4_CAN0_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C409B4UL)) +#define bFM4_CAN0_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C409B8UL)) +#define bFM4_CAN0_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C409BCUL)) +#define bFM4_CAN0_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) +#define bFM4_CAN0_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) +#define bFM4_CAN0_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) +#define bFM4_CAN0_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) +#define bFM4_CAN0_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) +#define bFM4_CAN0_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) +#define bFM4_CAN0_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) +#define bFM4_CAN0_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) +#define bFM4_CAN0_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) +#define bFM4_CAN0_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) +#define bFM4_CAN0_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) +#define bFM4_CAN0_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) +#define bFM4_CAN0_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) +#define bFM4_CAN0_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) +#define bFM4_CAN0_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) +#define bFM4_CAN0_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) +#define bFM4_CAN0_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) +#define bFM4_CAN0_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) +#define bFM4_CAN0_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) +#define bFM4_CAN0_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) +#define bFM4_CAN0_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) +#define bFM4_CAN0_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) +#define bFM4_CAN0_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) +#define bFM4_CAN0_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) +#define bFM4_CAN0_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) +#define bFM4_CAN0_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) +#define bFM4_CAN0_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) +#define bFM4_CAN0_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) +#define bFM4_CAN0_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) +#define bFM4_CAN0_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) +#define bFM4_CAN0_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) +#define bFM4_CAN0_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) +#define bFM4_CAN0_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) +#define bFM4_CAN0_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) +#define bFM4_CAN0_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) +#define bFM4_CAN0_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) +#define bFM4_CAN0_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) +#define bFM4_CAN0_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) +#define bFM4_CAN0_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) +#define bFM4_CAN0_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) +#define bFM4_CAN0_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) +#define bFM4_CAN0_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) +#define bFM4_CAN0_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) +#define bFM4_CAN0_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) +#define bFM4_CAN0_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) +#define bFM4_CAN0_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) +#define bFM4_CAN0_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) +#define bFM4_CAN0_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) +#define bFM4_CAN0_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) +#define bFM4_CAN0_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) +#define bFM4_CAN0_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) +#define bFM4_CAN0_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) +#define bFM4_CAN0_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) +#define bFM4_CAN0_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) +#define bFM4_CAN0_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) +#define bFM4_CAN0_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) +#define bFM4_CAN0_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) +#define bFM4_CAN0_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) +#define bFM4_CAN0_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) +#define bFM4_CAN0_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) +#define bFM4_CAN0_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) +#define bFM4_CAN0_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) +#define bFM4_CAN0_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) +#define bFM4_CAN0_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) +#define bFM4_CAN0_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) +#define bFM4_CAN0_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) +#define bFM4_CAN0_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) +#define bFM4_CAN0_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) +#define bFM4_CAN0_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) +#define bFM4_CAN0_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) +#define bFM4_CAN0_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) +#define bFM4_CAN0_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) +#define bFM4_CAN0_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) +#define bFM4_CAN0_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) +#define bFM4_CAN0_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) +#define bFM4_CAN0_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) +#define bFM4_CAN0_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) +#define bFM4_CAN0_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) +#define bFM4_CAN0_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) +#define bFM4_CAN0_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) +#define bFM4_CAN0_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) +#define bFM4_CAN0_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) +#define bFM4_CAN0_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) +#define bFM4_CAN0_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) +#define bFM4_CAN0_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) +#define bFM4_CAN0_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) +#define bFM4_CAN0_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) +#define bFM4_CAN0_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) +#define bFM4_CAN0_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) +#define bFM4_CAN0_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) +#define bFM4_CAN0_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) +#define bFM4_CAN0_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) +#define bFM4_CAN0_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) +#define bFM4_CAN0_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) +#define bFM4_CAN0_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) +#define bFM4_CAN0_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) +#define bFM4_CAN0_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) +#define bFM4_CAN0_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) +#define bFM4_CAN0_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) +#define bFM4_CAN0_INTPND_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) +#define bFM4_CAN0_INTPND_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) +#define bFM4_CAN0_INTPND_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) +#define bFM4_CAN0_INTPND_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) +#define bFM4_CAN0_INTPND_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) +#define bFM4_CAN0_INTPND_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) +#define bFM4_CAN0_INTPND_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) +#define bFM4_CAN0_INTPND_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) +#define bFM4_CAN0_INTPND_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) +#define bFM4_CAN0_INTPND_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) +#define bFM4_CAN0_INTPND_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) +#define bFM4_CAN0_INTPND_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) +#define bFM4_CAN0_INTPND_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) +#define bFM4_CAN0_INTPND_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) +#define bFM4_CAN0_INTPND_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) +#define bFM4_CAN0_INTPND_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) +#define bFM4_CAN0_INTPND_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) +#define bFM4_CAN0_INTPND_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) +#define bFM4_CAN0_INTPND_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) +#define bFM4_CAN0_INTPND_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) +#define bFM4_CAN0_INTPND_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) +#define bFM4_CAN0_INTPND_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) +#define bFM4_CAN0_INTPND_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) +#define bFM4_CAN0_INTPND_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) +#define bFM4_CAN0_INTPND_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) +#define bFM4_CAN0_INTPND_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) +#define bFM4_CAN0_INTPND_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) +#define bFM4_CAN0_INTPND_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) +#define bFM4_CAN0_INTPND_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) +#define bFM4_CAN0_INTPND_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) +#define bFM4_CAN0_INTPND_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) +#define bFM4_CAN0_INTPND_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) +#define bFM4_CAN0_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) +#define bFM4_CAN0_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) +#define bFM4_CAN0_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) +#define bFM4_CAN0_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) +#define bFM4_CAN0_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) +#define bFM4_CAN0_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) +#define bFM4_CAN0_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) +#define bFM4_CAN0_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) +#define bFM4_CAN0_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) +#define bFM4_CAN0_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) +#define bFM4_CAN0_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) +#define bFM4_CAN0_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) +#define bFM4_CAN0_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) +#define bFM4_CAN0_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) +#define bFM4_CAN0_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) +#define bFM4_CAN0_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) +#define bFM4_CAN0_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) +#define bFM4_CAN0_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) +#define bFM4_CAN0_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) +#define bFM4_CAN0_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) +#define bFM4_CAN0_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) +#define bFM4_CAN0_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) +#define bFM4_CAN0_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) +#define bFM4_CAN0_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) +#define bFM4_CAN0_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) +#define bFM4_CAN0_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) +#define bFM4_CAN0_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) +#define bFM4_CAN0_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) +#define bFM4_CAN0_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) +#define bFM4_CAN0_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) +#define bFM4_CAN0_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) +#define bFM4_CAN0_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) +#define bFM4_CAN0_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) +#define bFM4_CAN0_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) +#define bFM4_CAN0_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) +#define bFM4_CAN0_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) + +/* CAN channel 1 registers */ +#define bFM4_CAN1_CTRLR_INIT *((volatile unsigned int*)(0x42C60000UL)) +#define bFM4_CAN1_CTRLR_IE *((volatile unsigned int*)(0x42C60004UL)) +#define bFM4_CAN1_CTRLR_SIE *((volatile unsigned int*)(0x42C60008UL)) +#define bFM4_CAN1_CTRLR_EIE *((volatile unsigned int*)(0x42C6000CUL)) +#define bFM4_CAN1_CTRLR_DAR *((volatile unsigned int*)(0x42C60014UL)) +#define bFM4_CAN1_CTRLR_CCE *((volatile unsigned int*)(0x42C60018UL)) +#define bFM4_CAN1_CTRLR_TEST *((volatile unsigned int*)(0x42C6001CUL)) +#define bFM4_CAN1_STATR_LEC0 *((volatile unsigned int*)(0x42C60040UL)) +#define bFM4_CAN1_STATR_LEC1 *((volatile unsigned int*)(0x42C60044UL)) +#define bFM4_CAN1_STATR_LEC2 *((volatile unsigned int*)(0x42C60048UL)) +#define bFM4_CAN1_STATR_TXOK *((volatile unsigned int*)(0x42C6004CUL)) +#define bFM4_CAN1_STATR_RXOK *((volatile unsigned int*)(0x42C60050UL)) +#define bFM4_CAN1_STATR_EPASS *((volatile unsigned int*)(0x42C60054UL)) +#define bFM4_CAN1_STATR_EWARM *((volatile unsigned int*)(0x42C60058UL)) +#define bFM4_CAN1_STATR_BOFF *((volatile unsigned int*)(0x42C6005CUL)) +#define bFM4_CAN1_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C60080UL)) +#define bFM4_CAN1_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C60084UL)) +#define bFM4_CAN1_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C60088UL)) +#define bFM4_CAN1_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C6008CUL)) +#define bFM4_CAN1_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C60090UL)) +#define bFM4_CAN1_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C60094UL)) +#define bFM4_CAN1_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C60098UL)) +#define bFM4_CAN1_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C6009CUL)) +#define bFM4_CAN1_ERRCNT_REC0 *((volatile unsigned int*)(0x42C600A0UL)) +#define bFM4_CAN1_ERRCNT_REC1 *((volatile unsigned int*)(0x42C600A4UL)) +#define bFM4_CAN1_ERRCNT_REC2 *((volatile unsigned int*)(0x42C600A8UL)) +#define bFM4_CAN1_ERRCNT_REC3 *((volatile unsigned int*)(0x42C600ACUL)) +#define bFM4_CAN1_ERRCNT_REC4 *((volatile unsigned int*)(0x42C600B0UL)) +#define bFM4_CAN1_ERRCNT_REC5 *((volatile unsigned int*)(0x42C600B4UL)) +#define bFM4_CAN1_ERRCNT_REC6 *((volatile unsigned int*)(0x42C600B8UL)) +#define bFM4_CAN1_ERRCNT_RP *((volatile unsigned int*)(0x42C600BCUL)) +#define bFM4_CAN1_BTR_BRP0 *((volatile unsigned int*)(0x42C600C0UL)) +#define bFM4_CAN1_BTR_BRP1 *((volatile unsigned int*)(0x42C600C4UL)) +#define bFM4_CAN1_BTR_BRP2 *((volatile unsigned int*)(0x42C600C8UL)) +#define bFM4_CAN1_BTR_BRP3 *((volatile unsigned int*)(0x42C600CCUL)) +#define bFM4_CAN1_BTR_BRP4 *((volatile unsigned int*)(0x42C600D0UL)) +#define bFM4_CAN1_BTR_BRP5 *((volatile unsigned int*)(0x42C600D4UL)) +#define bFM4_CAN1_BTR_SJW0 *((volatile unsigned int*)(0x42C600D8UL)) +#define bFM4_CAN1_BTR_SJW1 *((volatile unsigned int*)(0x42C600DCUL)) +#define bFM4_CAN1_BTR_TSEG10 *((volatile unsigned int*)(0x42C600E0UL)) +#define bFM4_CAN1_BTR_TSEG11 *((volatile unsigned int*)(0x42C600E4UL)) +#define bFM4_CAN1_BTR_TSEG12 *((volatile unsigned int*)(0x42C600E8UL)) +#define bFM4_CAN1_BTR_TSEG13 *((volatile unsigned int*)(0x42C600ECUL)) +#define bFM4_CAN1_BTR_TSEG20 *((volatile unsigned int*)(0x42C600F0UL)) +#define bFM4_CAN1_BTR_TSEG21 *((volatile unsigned int*)(0x42C600F4UL)) +#define bFM4_CAN1_BTR_TSEG22 *((volatile unsigned int*)(0x42C600F8UL)) +#define bFM4_CAN1_INTR_INTID0 *((volatile unsigned int*)(0x42C60100UL)) +#define bFM4_CAN1_INTR_INTID1 *((volatile unsigned int*)(0x42C60104UL)) +#define bFM4_CAN1_INTR_INTID2 *((volatile unsigned int*)(0x42C60108UL)) +#define bFM4_CAN1_INTR_INTID3 *((volatile unsigned int*)(0x42C6010CUL)) +#define bFM4_CAN1_INTR_INTID4 *((volatile unsigned int*)(0x42C60110UL)) +#define bFM4_CAN1_INTR_INTID5 *((volatile unsigned int*)(0x42C60114UL)) +#define bFM4_CAN1_INTR_INTID6 *((volatile unsigned int*)(0x42C60118UL)) +#define bFM4_CAN1_INTR_INTID7 *((volatile unsigned int*)(0x42C6011CUL)) +#define bFM4_CAN1_INTR_INTID8 *((volatile unsigned int*)(0x42C60120UL)) +#define bFM4_CAN1_INTR_INTID9 *((volatile unsigned int*)(0x42C60124UL)) +#define bFM4_CAN1_INTR_INTID10 *((volatile unsigned int*)(0x42C60128UL)) +#define bFM4_CAN1_INTR_INTID11 *((volatile unsigned int*)(0x42C6012CUL)) +#define bFM4_CAN1_INTR_INTID12 *((volatile unsigned int*)(0x42C60130UL)) +#define bFM4_CAN1_INTR_INTID13 *((volatile unsigned int*)(0x42C60134UL)) +#define bFM4_CAN1_INTR_INTID14 *((volatile unsigned int*)(0x42C60138UL)) +#define bFM4_CAN1_INTR_INTID15 *((volatile unsigned int*)(0x42C6013CUL)) +#define bFM4_CAN1_TESTR_BASIC *((volatile unsigned int*)(0x42C60148UL)) +#define bFM4_CAN1_TESTR_SILENT *((volatile unsigned int*)(0x42C6014CUL)) +#define bFM4_CAN1_TESTR_LBACK *((volatile unsigned int*)(0x42C60150UL)) +#define bFM4_CAN1_TESTR_TX0 *((volatile unsigned int*)(0x42C60154UL)) +#define bFM4_CAN1_TESTR_TX1 *((volatile unsigned int*)(0x42C60158UL)) +#define bFM4_CAN1_TESTR_RX *((volatile unsigned int*)(0x42C6015CUL)) +#define bFM4_CAN1_BRPER_BRPE0 *((volatile unsigned int*)(0x42C60180UL)) +#define bFM4_CAN1_BRPER_BRPE1 *((volatile unsigned int*)(0x42C60184UL)) +#define bFM4_CAN1_BRPER_BRPE2 *((volatile unsigned int*)(0x42C60188UL)) +#define bFM4_CAN1_BRPER_BRPE3 *((volatile unsigned int*)(0x42C6018CUL)) +#define bFM4_CAN1_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C6023CUL)) +#define bFM4_CAN1_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C60240UL)) +#define bFM4_CAN1_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C60244UL)) +#define bFM4_CAN1_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C60248UL)) +#define bFM4_CAN1_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C60248UL)) +#define bFM4_CAN1_IF1CMSK_CIP *((volatile unsigned int*)(0x42C6024CUL)) +#define bFM4_CAN1_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C60250UL)) +#define bFM4_CAN1_IF1CMSK_ARB *((volatile unsigned int*)(0x42C60254UL)) +#define bFM4_CAN1_IF1CMSK_MASK *((volatile unsigned int*)(0x42C60258UL)) +#define bFM4_CAN1_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C6025CUL)) +#define bFM4_CAN1_IF1MSK_MDIR *((volatile unsigned int*)(0x42C602F8UL)) +#define bFM4_CAN1_IF1MSK_MXTD *((volatile unsigned int*)(0x42C602FCUL)) +#define bFM4_CAN1_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C602F8UL)) +#define bFM4_CAN1_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C602FCUL)) +#define bFM4_CAN1_IF1ARB_DIR *((volatile unsigned int*)(0x42C60374UL)) +#define bFM4_CAN1_IF1ARB_XTD *((volatile unsigned int*)(0x42C60378UL)) +#define bFM4_CAN1_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) +#define bFM4_CAN1_IF1ARB2_DIR *((volatile unsigned int*)(0x42C60374UL)) +#define bFM4_CAN1_IF1ARB2_XTD *((volatile unsigned int*)(0x42C60378UL)) +#define bFM4_CAN1_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) +#define bFM4_CAN1_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C60380UL)) +#define bFM4_CAN1_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C60384UL)) +#define bFM4_CAN1_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C60388UL)) +#define bFM4_CAN1_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C6038CUL)) +#define bFM4_CAN1_IF1MCTR_EOB *((volatile unsigned int*)(0x42C6039CUL)) +#define bFM4_CAN1_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C603A0UL)) +#define bFM4_CAN1_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C603A4UL)) +#define bFM4_CAN1_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C603A8UL)) +#define bFM4_CAN1_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C603ACUL)) +#define bFM4_CAN1_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C603B0UL)) +#define bFM4_CAN1_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C603B4UL)) +#define bFM4_CAN1_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C603B8UL)) +#define bFM4_CAN1_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C603BCUL)) +#define bFM4_CAN1_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C6083CUL)) +#define bFM4_CAN1_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C60840UL)) +#define bFM4_CAN1_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C60844UL)) +#define bFM4_CAN1_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C60848UL)) +#define bFM4_CAN1_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C60848UL)) +#define bFM4_CAN1_IF2CMSK_CIP *((volatile unsigned int*)(0x42C6084CUL)) +#define bFM4_CAN1_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C60850UL)) +#define bFM4_CAN1_IF2CMSK_ARB *((volatile unsigned int*)(0x42C60854UL)) +#define bFM4_CAN1_IF2CMSK_MASK *((volatile unsigned int*)(0x42C60858UL)) +#define bFM4_CAN1_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C6085CUL)) +#define bFM4_CAN1_IF2MSK_MDIR *((volatile unsigned int*)(0x42C608F8UL)) +#define bFM4_CAN1_IF2MSK_MXTD *((volatile unsigned int*)(0x42C608FCUL)) +#define bFM4_CAN1_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C608F8UL)) +#define bFM4_CAN1_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C608FCUL)) +#define bFM4_CAN1_IF2ARB_DIR *((volatile unsigned int*)(0x42C60974UL)) +#define bFM4_CAN1_IF2ARB_XTD *((volatile unsigned int*)(0x42C60978UL)) +#define bFM4_CAN1_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) +#define bFM4_CAN1_IF2ARB2_DIR *((volatile unsigned int*)(0x42C60974UL)) +#define bFM4_CAN1_IF2ARB2_XTD *((volatile unsigned int*)(0x42C60978UL)) +#define bFM4_CAN1_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) +#define bFM4_CAN1_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C60980UL)) +#define bFM4_CAN1_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C60984UL)) +#define bFM4_CAN1_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C60988UL)) +#define bFM4_CAN1_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C6098CUL)) +#define bFM4_CAN1_IF2MCTR_EOB *((volatile unsigned int*)(0x42C6099CUL)) +#define bFM4_CAN1_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C609A0UL)) +#define bFM4_CAN1_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C609A4UL)) +#define bFM4_CAN1_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C609A8UL)) +#define bFM4_CAN1_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C609ACUL)) +#define bFM4_CAN1_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C609B0UL)) +#define bFM4_CAN1_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C609B4UL)) +#define bFM4_CAN1_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C609B8UL)) +#define bFM4_CAN1_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C609BCUL)) +#define bFM4_CAN1_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) +#define bFM4_CAN1_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) +#define bFM4_CAN1_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) +#define bFM4_CAN1_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) +#define bFM4_CAN1_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) +#define bFM4_CAN1_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) +#define bFM4_CAN1_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) +#define bFM4_CAN1_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) +#define bFM4_CAN1_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) +#define bFM4_CAN1_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) +#define bFM4_CAN1_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) +#define bFM4_CAN1_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) +#define bFM4_CAN1_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) +#define bFM4_CAN1_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) +#define bFM4_CAN1_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) +#define bFM4_CAN1_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) +#define bFM4_CAN1_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) +#define bFM4_CAN1_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) +#define bFM4_CAN1_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) +#define bFM4_CAN1_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) +#define bFM4_CAN1_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) +#define bFM4_CAN1_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) +#define bFM4_CAN1_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) +#define bFM4_CAN1_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) +#define bFM4_CAN1_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) +#define bFM4_CAN1_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) +#define bFM4_CAN1_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) +#define bFM4_CAN1_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) +#define bFM4_CAN1_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) +#define bFM4_CAN1_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) +#define bFM4_CAN1_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) +#define bFM4_CAN1_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) +#define bFM4_CAN1_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) +#define bFM4_CAN1_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) +#define bFM4_CAN1_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) +#define bFM4_CAN1_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) +#define bFM4_CAN1_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) +#define bFM4_CAN1_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) +#define bFM4_CAN1_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) +#define bFM4_CAN1_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) +#define bFM4_CAN1_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) +#define bFM4_CAN1_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) +#define bFM4_CAN1_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) +#define bFM4_CAN1_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) +#define bFM4_CAN1_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) +#define bFM4_CAN1_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) +#define bFM4_CAN1_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) +#define bFM4_CAN1_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) +#define bFM4_CAN1_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) +#define bFM4_CAN1_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) +#define bFM4_CAN1_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) +#define bFM4_CAN1_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) +#define bFM4_CAN1_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) +#define bFM4_CAN1_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) +#define bFM4_CAN1_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) +#define bFM4_CAN1_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) +#define bFM4_CAN1_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) +#define bFM4_CAN1_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) +#define bFM4_CAN1_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) +#define bFM4_CAN1_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) +#define bFM4_CAN1_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) +#define bFM4_CAN1_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) +#define bFM4_CAN1_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) +#define bFM4_CAN1_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) +#define bFM4_CAN1_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) +#define bFM4_CAN1_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) +#define bFM4_CAN1_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) +#define bFM4_CAN1_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) +#define bFM4_CAN1_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) +#define bFM4_CAN1_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) +#define bFM4_CAN1_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) +#define bFM4_CAN1_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) +#define bFM4_CAN1_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) +#define bFM4_CAN1_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) +#define bFM4_CAN1_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) +#define bFM4_CAN1_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) +#define bFM4_CAN1_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) +#define bFM4_CAN1_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) +#define bFM4_CAN1_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) +#define bFM4_CAN1_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) +#define bFM4_CAN1_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) +#define bFM4_CAN1_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) +#define bFM4_CAN1_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) +#define bFM4_CAN1_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) +#define bFM4_CAN1_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) +#define bFM4_CAN1_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) +#define bFM4_CAN1_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) +#define bFM4_CAN1_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) +#define bFM4_CAN1_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) +#define bFM4_CAN1_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) +#define bFM4_CAN1_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) +#define bFM4_CAN1_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) +#define bFM4_CAN1_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) +#define bFM4_CAN1_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) +#define bFM4_CAN1_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) +#define bFM4_CAN1_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) +#define bFM4_CAN1_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) +#define bFM4_CAN1_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) +#define bFM4_CAN1_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) +#define bFM4_CAN1_INTPND_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) +#define bFM4_CAN1_INTPND_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) +#define bFM4_CAN1_INTPND_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) +#define bFM4_CAN1_INTPND_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) +#define bFM4_CAN1_INTPND_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) +#define bFM4_CAN1_INTPND_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) +#define bFM4_CAN1_INTPND_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) +#define bFM4_CAN1_INTPND_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) +#define bFM4_CAN1_INTPND_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) +#define bFM4_CAN1_INTPND_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) +#define bFM4_CAN1_INTPND_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) +#define bFM4_CAN1_INTPND_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) +#define bFM4_CAN1_INTPND_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) +#define bFM4_CAN1_INTPND_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) +#define bFM4_CAN1_INTPND_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) +#define bFM4_CAN1_INTPND_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) +#define bFM4_CAN1_INTPND_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) +#define bFM4_CAN1_INTPND_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) +#define bFM4_CAN1_INTPND_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) +#define bFM4_CAN1_INTPND_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) +#define bFM4_CAN1_INTPND_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) +#define bFM4_CAN1_INTPND_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) +#define bFM4_CAN1_INTPND_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) +#define bFM4_CAN1_INTPND_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) +#define bFM4_CAN1_INTPND_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) +#define bFM4_CAN1_INTPND_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) +#define bFM4_CAN1_INTPND_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) +#define bFM4_CAN1_INTPND_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) +#define bFM4_CAN1_INTPND_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) +#define bFM4_CAN1_INTPND_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) +#define bFM4_CAN1_INTPND_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) +#define bFM4_CAN1_INTPND_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) +#define bFM4_CAN1_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) +#define bFM4_CAN1_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) +#define bFM4_CAN1_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) +#define bFM4_CAN1_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) +#define bFM4_CAN1_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) +#define bFM4_CAN1_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) +#define bFM4_CAN1_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) +#define bFM4_CAN1_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) +#define bFM4_CAN1_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) +#define bFM4_CAN1_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) +#define bFM4_CAN1_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) +#define bFM4_CAN1_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) +#define bFM4_CAN1_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) +#define bFM4_CAN1_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) +#define bFM4_CAN1_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) +#define bFM4_CAN1_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) +#define bFM4_CAN1_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) +#define bFM4_CAN1_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) +#define bFM4_CAN1_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) +#define bFM4_CAN1_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) +#define bFM4_CAN1_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) +#define bFM4_CAN1_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) +#define bFM4_CAN1_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) +#define bFM4_CAN1_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) +#define bFM4_CAN1_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) +#define bFM4_CAN1_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) +#define bFM4_CAN1_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) +#define bFM4_CAN1_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) +#define bFM4_CAN1_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) +#define bFM4_CAN1_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) +#define bFM4_CAN1_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) +#define bFM4_CAN1_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) +#define bFM4_CAN1_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) +#define bFM4_CAN1_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) +#define bFM4_CAN1_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) +#define bFM4_CAN1_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) + +/* SD IF registers */ + +#ifdef __cplusplus +} +#endif + +#endif /* _MB9B560R_H_ */ + diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c new file mode 100644 index 0000000000..f58f1ac2ad --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c @@ -0,0 +1,240 @@ +/******************************************************************************* +* Copyright (C) 2013 Spansion LLC. All Rights Reserved. +* +* This software is owned and published by: +* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). +* +* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND +* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. +* +* This software contains source code for use with Spansion +* components. This software is licensed by Spansion to be adapted only +* for use in systems utilizing Spansion components. Spansion shall not be +* responsible for misuse or illegal use of this software for devices not +* supported herein. Spansion is providing this software "AS IS" and will +* not be responsible for issues arising from incorrect user implementation +* of the software. +* +* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, +* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), +* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, +* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED +* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED +* WARRANTY OF NONINFRINGEMENT. +* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, +* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT +* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, +* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR +* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, +* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, +* SAVINGS OR PROFITS, +* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR +* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED +* FROM, THE SOFTWARE. +* +* This software may be replicated in part or whole for the licensed use, +* with the restriction that this Disclaimer and Copyright notice must be +* included with each copy of this software, whether used in part or whole, +* at all times. +*/ +/** + ****************************************************************************** + ** \file system_mb9abxxx.c + ** + ** FM3 system initialization functions + ** All adjustments can be done in belonging header file. + ** + ** History: + ** 2013-01-21 0.1 MWi AI: Unification to be done + ** 2013-01-23 0.2 MWi mcu.h inclusion changed to pdl.h + ** 2013-06-28 0.3 EH Added Trace Buffer enable + ******************************************************************************/ + +#include "mcu.h" + +/** + ****************************************************************************** + ** System Clock Frequency (Core Clock) Variable according CMSIS + ******************************************************************************/ +uint32_t SystemCoreClock = __HCLK; + +/** + ****************************************************************************** + ** \brief Update the System Core Clock with current core Clock retrieved from + ** cpu registers. + ** \param none + ** \return none + ******************************************************************************/ +void SystemCoreClockUpdate (void) { + uint32_t masterClk; + uint32_t u32RegisterRead; // Workaround variable for MISRA C rule conformance + + switch ((FM4_CRG->SCM_CTL >> 5U) & 0x07U) { + case 0u: /* internal High-speed Cr osc. */ + masterClk = __CLKHC; + break; + + case 1u: /* external main osc. */ + masterClk = __CLKMO; + break; + + case 2u: /* PLL clock */ + // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) + // violation: + // "Unordered accesses to a volatile location" + u32RegisterRead = (__CLKMO * (((uint32_t)(FM4_CRG->PLL_CTL2) & 0x3Fu) + 1u)); + masterClk = (u32RegisterRead / ((((uint32_t)(FM4_CRG->PLL_CTL1) >> 4ul) & 0x0Fu) + 1u)); + break; + + case 4u: /* internal Low-speed CR osc. */ + masterClk = __CLKLC; + break; + + case 5u: /* external Sub osc. */ + masterClk = __CLKSO; + break; + + default: + masterClk = 0ul; + break; + } + + switch (FM4_CRG->BSC_PSR & 0x07u) { + case 0u: + SystemCoreClock = masterClk; + break; + + case 1u: + SystemCoreClock = masterClk / 2u; + break; + + case 2u: + SystemCoreClock = masterClk / 3u; + break; + + case 3u: + SystemCoreClock = masterClk / 4u; + break; + + case 4u: + SystemCoreClock = masterClk / 6u; + break; + + case 5u: + SystemCoreClock = masterClk /8u; + break; + + case 6u: + SystemCoreClock = masterClk /16u; + break; + + default: + SystemCoreClock = 0ul; + break; + } + +} + +/** + ****************************************************************************** + ** \brief Setup the microcontroller system. Initialize the System and update + ** the SystemCoreClock variable. + ** + ** \param none + ** \return none + ******************************************************************************/ +void SystemInit (void) { + + static uint8_t u8IoRegisterRead; // Workaround variable for MISRA C rule conformance + +#if (HWWD_DISABLE) /* HW Watchdog Disable */ + FM4_HWWDT->WDG_LCK = 0x1ACCE551u; /* HW Watchdog Unlock */ + FM4_HWWDT->WDG_LCK = 0xE5331AAEu; + FM4_HWWDT->WDG_CTL = 0u; /* HW Watchdog stop */ +#endif + +#if (TRACE_BUFFER_ENABLE) + FM4_FLASH_IF->FBFCR = 0x01; /* Trace Buffer enable */ +#endif + +#if (CLOCK_SETUP) /* Clock Setup */ + FM4_CRG->BSC_PSR = (uint8_t)BSC_PSR_Val; /* set System Clock presacaler */ + FM4_CRG->APBC0_PSR = (uint8_t)APBC0_PSR_Val; /* set APB0 presacaler */ + FM4_CRG->APBC1_PSR = (uint8_t)APBC1_PSR_Val; /* set APB1 presacaler */ + FM4_CRG->APBC2_PSR = (uint8_t)APBC2_PSR_Val; /* set APB2 presacaler */ + FM4_CRG->SWC_PSR = (uint8_t)(SWC_PSR_Val | (1ul << 7u)); /* set SW Watchdog presacaler */ + FM4_CRG->TTC_PSR = (uint8_t)TTC_PSR_Val; /* set Trace Clock presacaler */ + + FM4_CRG->CSW_TMR = (uint8_t)CSW_TMR_Val; /* set oscillation stabilization wait time */ + + if (SCM_CTL_Val & (1ul << 1u)) { /* Main clock oscillator enabled ? */ + FM4_CRG->SCM_CTL |= (uint8_t)(1ul << 1u); /* enable main oscillator */ + + while (!((FM4_CRG->SCM_STR) & (uint8_t)(1ul << 1u))) /* wait for Main clock oscillation stable */ + {} + } + + if (SCM_CTL_Val & (1UL << 3)) { /* Sub clock oscillator enabled ? */ + // Initialize VBAT (Temporary process) + FM4_RTC->VDET = 0x00; + FM4_RTC->VBPFR = 0x1C; + FM4_RTC->CCB = 0x10; + FM4_RTC->CCS = 0x08; + + // VB_CLK is less or equal to 1MHz (Temporary process) + FM4_RTC->VB_CLKDIV = 0x4E; + FM4_RTC->BOOST = 0x03; + + // Enable SUB CLK oscilation (Temporary process) + FM4_RTC->WTOSCCNT_f.SOSCEX = 0; + FM4_RTC->WTOSCCNT_f.SOSCNTL = 1; + + // Transmit to VBAT domain (Temporary process) + FM4_RTC->WTCR20_f.PWRITE = 1; + + // Wait to complete transmission + while(0 != FM4_RTC->WTCR10_f.TRANS) + + FM4_CRG->SCM_CTL |= (1UL << 3); /* enable sub oscillator */ + while (!(FM4_CRG->SCM_STR & (1UL << 3))); /* wait for Sub clock oscillation stable */ + } + + FM4_CRG->PSW_TMR = (uint8_t)PSW_TMR_Val; /* set PLL stabilization wait time */ + FM4_CRG->PLL_CTL1 = (uint8_t) PLL_CTL1_Val; /* set PLLM and PLLK */ + FM4_CRG->PLL_CTL2 = (uint8_t)PLL_CTL2_Val; /* set PLLN */ + + if (SCM_CTL_Val & (uint8_t)(1ul << 4u)) { /* PLL enabled ? */ + FM4_CRG->SCM_CTL |= (uint8_t)(1ul << 4u); /* enable PLL */ + while (!(FM4_CRG->SCM_STR & (uint8_t)(1ul << 4u))) /* wait for PLL stable */ + {} + } + + FM4_CRG->SCM_CTL |= (uint8_t)(SCM_CTL_Val & 0xE0u); /* Set Master Clock switch */ + + // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) + // violations: + // "Unordered reads and writes to or from same location" and + // "Unordered accesses to a volatile location" + do + { + u8IoRegisterRead = (FM4_CRG->SCM_CTL & 0xE0u); + }while ((FM4_CRG->SCM_STR & 0xE0u) != u8IoRegisterRead); +#endif // (CLOCK_SETUP) + +#if (CR_TRIM_SETUP) + /* CR Trimming Data */ + if( 0x000003FFu != (FM4_FLASH_IF->CRTRMM & 0x000003FFu) ) + { + /* UnLock (MCR_FTRM) */ + FM4_CRTRIM->MCR_RLR = (uint32_t)0x1ACCE554u; + /* Set MCR_FTRM */ + FM4_CRTRIM->MCR_FTRM = (uint16_t)FM4_FLASH_IF->CRTRMM; + /* Lock (MCR_FTRM) */ + FM4_CRTRIM->MCR_RLR = (uint32_t)0x00000000u; + } +#endif // (CR_TRIM_SETUP) +} + + + diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h new file mode 100644 index 0000000000..23cd07d188 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h @@ -0,0 +1,674 @@ +/******************************************************************************* +* Copyright (C) 2013 Spansion LLC. All Rights Reserved. +* +* This software is owned and published by: +* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). +* +* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND +* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. +* +* This software contains source code for use with Spansion +* components. This software is licensed by Spansion to be adapted only +* for use in systems utilizing Spansion components. Spansion shall not be +* responsible for misuse or illegal use of this software for devices not +* supported herein. Spansion is providing this software "AS IS" and will +* not be responsible for issues arising from incorrect user implementation +* of the software. +* +* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, +* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), +* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, +* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED +* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED +* WARRANTY OF NONINFRINGEMENT. +* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, +* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT +* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, +* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR +* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, +* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, +* SAVINGS OR PROFITS, +* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR +* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED +* FROM, THE SOFTWARE. +* +* This software may be replicated in part or whole for the licensed use, +* with the restriction that this Disclaimer and Copyright notice must be +* included with each copy of this software, whether used in part or whole, +* at all times. +*/ + +/******************************************************************************/ +/** \file system_mb9bf56xr.h + ** + ** Headerfile for FM4 system parameters + ** + ** History: + ** 2013-01-21 0.1 MWi AI: Unification to be done + ** 2013-02-06 0.2 MWi CMSIS coding restored; unifying still to be done + ** 2013-06-28 0.3 EH Added Trace Buffer enable definition + ** 2013-08-15 0.4 EH Changed APB1 Prescaler value + ******************************************************************************/ + +#ifndef _SYSTEM_MB9ABXXX_H_ +#define _SYSTEM_MB9ABXXX_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/******************************************************************************/ +/* Include files */ +/******************************************************************************/ +#include + +/******************************************************************************/ +/* Global pre-processor symbols/macros ('define') */ +/******************************************************************************/ + +/******************************************************************************/ +/* */ +/* START OF USER SETTINGS HERE */ +/* =========================== */ +/* */ +/* All lines with '<<<' can be set by user. */ +/* */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Clock Setup Enable + ** (USER SETTING) + ** + ** - 0 = No clock setup done by system_mb9xfxxx.c + ** - 1 = Clock setup done by system_mb9xfxxx.c + ******************************************************************************/ +#define CLOCK_SETUP 1 // <<< Define clock setup here + +/** + ****************************************************************************** + ** \brief External Main Clock Frequency (in Hz, [value]ul) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKMO ( 4000000ul) // <<< External 4MHz Crystal + +/** + ****************************************************************************** + ** \brief External Sub Clock Frequency (in Hz, [value]ul) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKSO ( 32768ul) // <<< External 32KHz Crystal + +/** + ****************************************************************************** + ** \brief System Clock Mode Control Register value definition + ** (USER SETTING) + ** + ** SCM_CTL + ** + ** Bit#7-5 : RCS[2:0] + ** - 0 = Internal high-speed CR oscillation (default) + ** - 1 = Main oscillation clock + ** - 2 = PLL oscillation clock + ** - 3 = (not allowed) + ** - 4 = Internal low-speed CR oscillation + ** - 5 = Sub clock oscillation + ** - 6 = (not allowed) + ** - 7 = (not allowed) + ** + ** Bit#4 : PLLE + ** - 0 = Disable PLL (default) + ** - 1 = Enable PLL + ** + ** Bit#3 : SOSCE + ** - 0 = Disable sub oscillation (default) + ** - 1 = Enable sub oscillation + ** + ** Bit#2 : (reserved) + ** + ** Bit#1 : MOSCE + ** - 0 = Disable main oscillation (default) + ** - 1 = Enable main oscillation + ** + ** Bit#0 : (reserved) + ******************************************************************************/ +#define SCM_CTL_Val 0x00000052ul // <<< Define SCM_CTL here + +/** + ****************************************************************************** + ** \brief Base Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** BSC_PSR + ** + ** Bit#7-3 : (reserved) + ** + ** Bit#2-0 : BSR[2:0] + ** - 0 = HCLK = Master Clock + ** - 1 = HCLK = Master Clock / 2 + ** - 2 = HCLK = Master Clock / 3 + ** - 3 = HCLK = Master Clock / 4 + ** - 4 = HCLK = Master Clock / 6 + ** - 5 = HCLK = Master Clock / 8 + ** - 6 = HCLK = Master Clock / 16 + ** - 7 = (reserved) + ******************************************************************************/ +#define BSC_PSR_Val 0x00000000ul // <<< Define BSC_PSR here + +/** + ****************************************************************************** + ** \brief APB0 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC0_PSR + ** + ** Bit#7-2 : (reserved) + ** + ** Bit#1-0 : BSR[2:0] + ** - 0 = PCLK0 = HCLK + ** - 1 = PCLK0 = HCLK / 2 + ** - 2 = PCLK0 = HCLK / 4 + ** - 3 = PCLK0 = HCLK / 8 + ******************************************************************************/ +#define APBC0_PSR_Val 0x00000001UL // <<< Define APBC0_PSR here + +/** + ****************************************************************************** + ** \brief APB1 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC1_PSR + ** + ** Bit#7 : APBC1EN + ** - 0 = Disable PCLK1 output + ** - 1 = Enables PCLK1 (default) + ** + ** Bit#6-5 : (reserved) + ** + ** Bit#4 : APBC1RST + ** - 0 = APB1 bus reset, inactive (default) + ** - 1 = APB1 bus reset, active + ** + ** Bit#3-2 : (reserved) + ** + ** Bit#1-0 : APBC1[2:0] + ** - 0 = PCLK1 = HCLK + ** - 1 = PCLK1 = HCLK / 2 + ** - 2 = PCLK1 = HCLK / 4 + ** - 3 = PCLK1 = HCLK / 8 + ******************************************************************************/ +#define APBC1_PSR_Val 0x00000080ul // <<< Define APBC1_PSR here + +/** + ****************************************************************************** + ** \brief APB2 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC2_PSR + ** + ** Bit#7 : APBC2EN + ** - 0 = Disable PCLK2 output + ** - 1 = Enables PCLK2 (default) + ** + ** Bit#6-5 : (reserved) + ** + ** Bit#4 : APBC2RST + ** - 0 = APB2 bus reset, inactive (default) + ** - 1 = APB2 bus reset, active + ** + ** Bit#3-2 : (reserved) + ** + ** Bit#1-0 : APBC2[1:0] + ** - 0 = PCLK2 = HCLK + ** - 1 = PCLK2 = HCLK / 2 + ** - 2 = PCLK2 = HCLK / 4 + ** - 3 = PCLK2 = HCLK / 8 + ******************************************************************************/ +#define APBC2_PSR_Val 0x00000081ul // <<< Define APBC2_PSR here + +/** + ****************************************************************************** + ** \brief Software Watchdog Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** SWC_PSR + ** + ** Bit#7 : TESTB + ** - 0 = (not allowed) + ** - 1 = (always write "1" to this bit) + ** + ** Bit#6-2 : (reserved) + ** + ** Bit#1-0 : SWDS[2:0] + ** - 0 = SWDGOGCLK = PCLK0 + ** - 1 = SWDGOGCLK = PCLK0 / 2 + ** - 2 = SWDGOGCLK = PCLK0 / 4 + ** - 3 = SWDGOGCLK = PCLK0 / 8 + ******************************************************************************/ +#define SWC_PSR_Val 0x00000003ul // <<< Define SWC_PSR here + +/** + ****************************************************************************** + ** \brief Trace Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** TTC_PSR + ** + ** Bit#7-1 : (reserved) + ** + ** Bit#0 : TTC + ** - 0 = TPIUCLK = HCLK + ** - 1 = TPIUCLK = HCLK / 2 + ******************************************************************************/ +#define TTC_PSR_Val 0x00000000ul // <<< Define TTC_PSR here + +/** + ****************************************************************************** + ** \brief Clock Stabilization Wait Time Register value definition + ** (USER SETTING) + ** + ** CSW_TMR + ** + ** Bit#7 : (reserved) + ** + ** Bit#6-4 : SOWT[2:0] + ** - 0 = ~10.3 ms (default) + ** - 1 = ~20.5 ms + ** - 2 = ~41 ms + ** - 3 = ~82 ms + ** - 4 = ~164 ms + ** - 5 = ~327 ms + ** - 6 = ~655 ms + ** - 7 = ~1.31 s + ** + ** Bit#3-0 : MOWT[3:0] + ** - 0 = ~500 ns (default) + ** - 1 = ~8 us + ** - 2 = ~16 us + ** - 3 = ~32 us + ** - 4 = ~64 us + ** - 5 = ~128 us + ** - 6 = ~256 us + ** - 7 = ~512 us + ** - 8 = ~1.0 ms + ** - 9 = ~2.0 ms + ** - 10 = ~4.0 ms + ** - 11 = ~8.0 ms + ** - 12 = ~33.0 ms + ** - 13 = ~131 ms + ** - 14 = ~524 ms + ** - 15 = ~2.0 s + ******************************************************************************/ +#define CSW_TMR_Val 0x0000005Cul // <<< Define CSW_TMR here + +/** + ****************************************************************************** + ** \brief PLL Clock Stabilization Wait Time Setup Register value definition + ** (USER SETTING) + ** + ** PSW_TMR + ** + ** Bit#7-5 : (reserved) + ** + ** Bit#4 : PINC + ** - 0 = Selects CLKMO (main oscillation) (default) + ** - 1 = (setting diabled) + ** + ** Bit#3 : (reserved) + ** + ** Bit#2-0 : POWT[2:0] + ** - 0 = ~128 us (default) + ** - 1 = ~256 us + ** - 2 = ~512 us + ** - 3 = ~1.02 ms + ** - 4 = ~2.05 ms + ** - 5 = ~4.10 ms + ** - 6 = ~8.20 ms + ** - 7 = ~16.40 ms + ******************************************************************************/ +#define PSW_TMR_Val 0x00000000ul // <<< Define PSW_TMR here + +/** + ****************************************************************************** + ** \brief PLL Control Register 1 value definition + ** (USER SETTING) + ** + ** PLL_CTL1 + ** + ** Bit#7-4 : PLLK[3:0] + ** - 0 = Division(PLLK) = 1/1 (default) + ** - 1 = Division(PLLK) = 1/2 + ** - 2 = Division(PLLK) = 1/3 + ** - . . . + ** - 15 = Division(PLLK) = 1/16 + ** + ** Bit#3-0 : PLLM[3:0] + ** - 0 = Division(PLLM) = 1/1 (default) + ** - 1 = Division(PLLM) = 1/2 + ** - 2 = Division(PLLM) = 1/3 + ** - . . . + ** - 15 = Division(PLLM) = 1/16 + ******************************************************************************/ +#define PLL_CTL1_Val 0x00000001ul // <<< Define PLL_CTL1 here + +/** + ****************************************************************************** + ** \brief PLL Control Register 2 value definition + ** (USER SETTING) + ** + ** PLL_CTL2 + ** + ** Bit#7-6 : (reserved) + ** + ** Bit#5-0 : PLLN[5:0] + ** - 0 = Division(PLLN) = 1/1 (default) + ** - 1 = Division(PLLN) = 1/2 + ** - 2 = Division(PLLN) = 1/3 + ** - . . . + ** - 63 = Division(PLLN) = 1/64 + ******************************************************************************/ +#define PLL_CTL2_Val 0x00000027ul // <<< Define PLL_CTL2 here + +/** + ****************************************************************************** + ** \brief Hardware Watchdog disable definition + ** (USER SETTING) + ** + ** - 0 = Hardware Watchdog enable + ** - 1 = Hardware Watchdog disable + ******************************************************************************/ +#define HWWD_DISABLE 1 // <<< Define HW Watach dog enable here + +/** + ****************************************************************************** + ** \brief Trimming CR + ** (USER SETTING) + ** + ** - 0 = CR is not trimmed at startup + ** - 1 = CR is trimmed at startup + ******************************************************************************/ +#define CR_TRIM_SETUP 1 // <<< Define CR trimming at startup enable here + +/** + ****************************************************************************** + ** brief Trace Buffer enable definition + ** (USER SETTING) + ** + ** - 0 = Trace Buffer disable + ** - 1 = Trace Buffer enable + ******************************************************************************/ +#define TRACE_BUFFER_ENABLE 1 // <<< Define Trace Buffer enable here + + +/******************************************************************************/ +/* */ +/* END OF USER SETTINGS HERE */ +/* ========================= */ +/* */ +/******************************************************************************/ + +/******************************************************************************/ +/* Device dependent System Clock absolute maximum ranges */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Internal High-Speed CR Oscillator Frequency (in Hz, [value]ul) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKHC ( 4000000ul) /* Internal 4MHz CR Oscillator */ + +/** + ****************************************************************************** + ** \brief Internal Low-Speed CR Oscillator Frequency (in Hz, [value]ul) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKLC ( 100000ul) /* Internal 100KHz CR Oscillator */ + +/** + ****************************************************************************** + ** \brief Any case minimum Main Clock frequency (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKMOMIN ( 4000000ul) + +/** + ****************************************************************************** + ** \brief Maximum Main Clock frequency using external clock (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKMOMAX ( 48000000ul) + +/** + ****************************************************************************** + ** \brief Any case minimum Sub Clock frequency (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKSOMIN ( 32000ul) + +/** + ****************************************************************************** + ** \brief Maximum Sub Clock frequency using external clock (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKSOMAX ( 100000ul) + +/** + ****************************************************************************** + ** \brief Absolute minimum PLL input frequency (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKINMIN ( 4000000ul) + +/** + ****************************************************************************** + ** \brief Absolute maximum PLL input frequency (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKINMAX ( 16000000ul) + +/** + ****************************************************************************** + ** \brief Absolute minimum PLL oscillation frequency (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKMIN (200000000ul) + +/** + ****************************************************************************** + ** \brief Absolute maximum PLL oscillation frequency (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKMAX (320000000ul) + +/** + ****************************************************************************** + ** \brief Absolute maximum System Clock frequency (HCLK) (in Hz, [value]ul) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __HCLKMAX (160000000ul) + +/** + ****************************************************************************** + ** \brief Preprocessor macro for checking range (clock settings). + ** + ** \return 0 Within range + ** \return 1 Out of range + ******************************************************************************/ +#define CHECK_RANGE(val, min, max) (((val) < (min)) || ((val) > (max))) + +/** + ****************************************************************************** + ** \brief Preprocessor macro for checking bits with mask (clock settings). + ** Prevents from setting reserved bits by mistake. + ** + ** \return 0 All bits within mask + ** \return 1 One or more bits out of mask + ******************************************************************************/ +#define CHECK_RSVD(val, mask) ((val) & (mask)) + + +/******************************************************************************/ +/* Check register settings */ +/******************************************************************************/ +#if (CHECK_RSVD((SCM_CTL_Val), ~0x000000FAul)) + #error "SCM_CTL: Invalid values of reserved bits!" +#endif + +#if ((SCM_CTL_Val & 0xE0ul) == 0x40ul) && ((SCM_CTL_Val & 0x10ul) != 0x10ul) + #error "SCM_CTL: CLKPLL is selected but PLL is not enabled!" +#endif + +#if (CHECK_RSVD((CSW_TMR_Val), ~0x0000007Ful)) + #error "CSW_TMR: Invalid values of reserved bits!" +#endif + +#if ((SCM_CTL_Val & 0x10ul)) /* if PLL is used */ + #if (CHECK_RSVD((PSW_TMR_Val), ~0x00000017ul)) + #error "PSW_TMR: Invalid values of reserved bits!" + #endif + + #if (CHECK_RSVD((PLL_CTL1_Val), ~0x000000FFul)) + #error "PLL_CTL1: Invalid values of reserved bits!" + #endif + + #if (CHECK_RSVD((PLL_CTL2_Val), ~0x0000003Ful)) + #error "PLL_CTL2: Invalid values of reserved bits!" + #endif +#endif + +#if (CHECK_RSVD((BSC_PSR_Val), ~0x00000007ul)) + #error "BSC_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC0_PSR_Val), ~0x00000003ul)) + #error "APBC0_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC1_PSR_Val), ~0x00000093ul)) + #error "APBC1_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC2_PSR_Val), ~0x00000093ul)) + #error "APBC2_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((SWC_PSR_Val), ~0x00000003ul)) + #error "SWC_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((TTC_PSR_Val), ~0x00000003ul)) + #error "TTC_PSR: Invalid values of reserved bits!" +#endif + +/******************************************************************************/ +/* Define clocks with checking settings */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Calculate PLL K factor from settings + ******************************************************************************/ +#define __PLLK (((PLL_CTL1_Val >> 4ul) & 0x0Ful) + 1ul) + +/** + ****************************************************************************** + ** \brief Calculate PLL N factor from settings + ******************************************************************************/ +#define __PLLN (((PLL_CTL2_Val ) & 0x3Ful) + 1ul) + +/** + ****************************************************************************** + ** \brief Calculate PLL M factor from settings + ******************************************************************************/ +#define __PLLM (((PLL_CTL1_Val ) & 0x0Ful) + 1ul) + +/** + ****************************************************************************** + ** \brief Calculate PLL output frequency from settings + ******************************************************************************/ +#define __PLLCLK ((__CLKMO * __PLLN) / __PLLK) + +/******************************************************************************/ +/* Determine core clock frequency according to settings */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Define Master Clock from settings + ******************************************************************************/ +#if (((SCM_CTL_Val >> 5ul) & 0x07UL) == 0ul) + #define __MASTERCLK (__CLKHC) +#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 1ul) + #define __MASTERCLK (__CLKMO) +#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 2ul) + #define __MASTERCLK (__PLLCLK) +#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 4ul) + #define __MASTERCLK (__CLKLC) +#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 5ul) + #define __MASTERCLK (__CLKSO) +#else + #define __MASTERCLK (0UL) +#endif + +/** + ****************************************************************************** + ** \brief Define System Clock Frequency (Core Clock) from settings + ******************************************************************************/ +#if ((BSC_PSR_Val & 0x07UL) == 0ul) + #define __HCLK (__MASTERCLK / 1ul) +#elif ((BSC_PSR_Val & 0x07UL) == 1ul) + #define __HCLK (__MASTERCLK / 2ul) +#elif ((BSC_PSR_Val & 0x07UL) == 2ul) + #define __HCLK (__MASTERCLK / 3ul) +#elif ((BSC_PSR_Val & 0x07UL) == 3ul) + #define __HCLK (__MASTERCLK / 4ul) +#elif ((BSC_PSR_Val & 0x07UL) == 4ul) + #define __HCLK (__MASTERCLK / 6ul) +#elif ((BSC_PSR_Val & 0x07UL) == 5ul) + #define __HCLK (__MASTERCLK / 8ul) +#elif ((BSC_PSR_Val & 0x07UL) == 6ul) + #define __HCLK (__MASTERCLK /16ul) +#else + #define __HCLK (0ul) +#endif + +/******************************************************************************/ +/* HCLK range check */ +/******************************************************************************/ +#if (CHECK_RANGE(__CLKMO, __CLKMOMIN, __CLKMOMAX)) + #error "Main Oscillator Clock (CLKMO) out of range!" +#endif + +#if (CHECK_RANGE(__CLKSO, __CLKSOMIN, __CLKSOMAX)) + #error "Sub Oscillator Clock (CLKMO) out of range!" +#endif + +#if (CHECK_RANGE((__CLKMO / __PLLK), __PLLCLKINMIN, __PLLCLKINMAX)) + #error "PLL input frequency out of range!" +#endif + +#if (CHECK_RANGE(((__CLKMO * __PLLN * __PLLM) / __PLLK), __PLLCLKMIN, __PLLCLKMAX)) + #error "PLL oscillation frequency out of range!" +#endif + +#if (CHECK_RANGE(__HCLK, 0UL, __HCLKMAX)) + #error "System Clock (HCLK) out of range!" +#endif + +/******************************************************************************/ +/* Global function prototypes ('extern', definition in C source) */ +/******************************************************************************/ + +extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) + +extern void SystemInit (void); // Initialize the system + +extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable + +#ifdef __cplusplus +} +#endif + +#endif /* _SYSTEM_MB9ABXXX_H_ */ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_common_tables.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_common_tables.h new file mode 100644 index 0000000000..7245c4f12b --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_common_tables.h @@ -0,0 +1,35 @@ +/* ---------------------------------------------------------------------- +* Copyright (C) 2010 ARM Limited. All rights reserved. +* +* $Date: 11. November 2010 +* $Revision: V1.0.2 +* +* Project: CMSIS DSP Library +* Title: arm_common_tables.h +* +* Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions +* +* Target Processor: Cortex-M4/Cortex-M3 +* +* Version 1.0.2 2010/11/11 +* Documentation updated. +* +* Version 1.0.1 2010/10/05 +* Production release and review comments incorporated. +* +* Version 1.0.0 2010/09/20 +* Production release and review comments incorporated. +* -------------------------------------------------------------------- */ + +#ifndef _ARM_COMMON_TABLES_H +#define _ARM_COMMON_TABLES_H + +#include "arm_math.h" + +extern uint16_t armBitRevTable[256]; +extern q15_t armRecipTableQ15[64]; +extern q31_t armRecipTableQ31[64]; +extern const q31_t realCoefAQ31[1024]; +extern const q31_t realCoefBQ31[1024]; + +#endif /* ARM_COMMON_TABLES_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_math.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_math.h new file mode 100644 index 0000000000..ffa03b6fd1 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/arm_math.h @@ -0,0 +1,7051 @@ +/* ---------------------------------------------------------------------- + * Copyright (C) 2010 ARM Limited. All rights reserved. + * + * $Date: 15. July 2011 + * $Revision: V1.0.10 + * + * Project: CMSIS DSP Library + * Title: arm_math.h + * + * Description: Public header file for CMSIS DSP Library + * + * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0 + * + * Version 1.0.10 2011/7/15 + * Big Endian support added and Merged M0 and M3/M4 Source code. + * + * Version 1.0.3 2010/11/29 + * Re-organized the CMSIS folders and updated documentation. + * + * Version 1.0.2 2010/11/11 + * Documentation updated. + * + * Version 1.0.1 2010/10/05 + * Production release and review comments incorporated. + * + * Version 1.0.0 2010/09/20 + * Production release and review comments incorporated. + * -------------------------------------------------------------------- */ + +/** + \mainpage CMSIS DSP Software Library + * + * Introduction + * + * This user manual describes the CMSIS DSP software library, + * a suite of common signal processing functions for use on Cortex-M processor based devices. + * + * The library is divided into a number of modules each covering a specific category: + * - Basic math functions + * - Fast math functions + * - Complex math functions + * - Filters + * - Matrix functions + * - Transforms + * - Motor control functions + * - Statistical functions + * - Support functions + * - Interpolation functions + * + * The library has separate functions for operating on 8-bit integers, 16-bit integers, + * 32-bit integer and 32-bit floating-point values. + * + * Processor Support + * + * The library is completely written in C and is fully CMSIS compliant. + * High performance is achieved through maximum use of Cortex-M4 intrinsics. + * + * The supplied library source code also builds and runs on the Cortex-M3 and Cortex-M0 processor, + * with the DSP intrinsics being emulated through software. + * + * + * Toolchain Support + * + * The library has been developed and tested with MDK-ARM version 4.21. + * The library is being tested in GCC and IAR toolchains and updates on this activity will be made available shortly. + * + * Using the Library + * + * The library installer contains prebuilt versions of the libraries in the Lib folder. + * - arm_cortexM4lf_math.lib (Little endian and Floating Point Unit on Cortex-M4) + * - arm_cortexM4bf_math.lib (Big endian and Floating Point Unit on Cortex-M4) + * - arm_cortexM4l_math.lib (Little endian on Cortex-M4) + * - arm_cortexM4b_math.lib (Big endian on Cortex-M4) + * - arm_cortexM3l_math.lib (Little endian on Cortex-M3) + * - arm_cortexM3b_math.lib (Big endian on Cortex-M3) + * - arm_cortexM0l_math.lib (Little endian on Cortex-M0) + * - arm_cortexM0b_math.lib (Big endian on Cortex-M3) + * + * The library functions are declared in the public file arm_math.h which is placed in the Include folder. + * Simply include this file and link the appropriate library in the application and begin calling the library functions. The Library supports single + * public header file arm_math.h for Cortex-M4/M3/M0 with little endian and big endian. Same header file will be used for floating point unit(FPU) variants. + * Define the appropriate pre processor MACRO ARM_MATH_CM4 or ARM_MATH_CM3 or + * ARM_MATH_CM0 depending on the target processor in the application. + * + * Examples + * + * The library ships with a number of examples which demonstrate how to use the library functions. + * + * Building the Library + * + * The library installer contains project files to re build libraries on MDK Tool chain in the CMSIS\DSP_Lib\Source\ARM folder. + * - arm_cortexM0b_math.uvproj + * - arm_cortexM0l_math.uvproj + * - arm_cortexM3b_math.uvproj + * - arm_cortexM3l_math.uvproj + * - arm_cortexM4b_math.uvproj + * - arm_cortexM4l_math.uvproj + * - arm_cortexM4bf_math.uvproj + * - arm_cortexM4lf_math.uvproj + * + * Each library project have differant pre-processor macros. + * + * ARM_MATH_CMx: + * Define macro ARM_MATH_CM4 for building the library on Cortex-M4 target, ARM_MATH_CM3 for building library on Cortex-M3 target + * and ARM_MATH_CM0 for building library on cortex-M0 target. + * + * ARM_MATH_BIG_ENDIAN: + * Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets. + * + * ARM_MATH_MATRIX_CHECK: + * Define macro for checking on the input and output sizes of matrices + * + * ARM_MATH_ROUNDING: + * Define macro for rounding on support functions + * + * __FPU_PRESENT: + * Initialize macro __FPU_PRESENT = 1 when building on FPU supported Targets. Enable this macro for M4bf and M4lf libraries + * + * + * The project can be built by opening the appropriate project in MDK-ARM 4.21 chain and defining the optional pre processor MACROs detailed above. + * + * Copyright Notice + * + * Copyright (C) 2010 ARM Limited. All rights reserved. + */ + + +/** + * @defgroup groupMath Basic Math Functions + */ + +/** + * @defgroup groupFastMath Fast Math Functions + * This set of functions provides a fast approximation to sine, cosine, and square root. + * As compared to most of the other functions in the CMSIS math library, the fast math functions + * operate on individual values and not arrays. + * There are separate functions for Q15, Q31, and floating-point data. + * + */ + +/** + * @defgroup groupCmplxMath Complex Math Functions + * This set of functions operates on complex data vectors. + * The data in the complex arrays is stored in an interleaved fashion + * (real, imag, real, imag, ...). + * In the API functions, the number of samples in a complex array refers + * to the number of complex values; the array contains twice this number of + * real values. + */ + +/** + * @defgroup groupFilters Filtering Functions + */ + +/** + * @defgroup groupMatrix Matrix Functions + * + * This set of functions provides basic matrix math operations. + * The functions operate on matrix data structures. For example, + * the type + * definition for the floating-point matrix structure is shown + * below: + *
+ *     typedef struct
+ *     {
+ *       uint16_t numRows;     // number of rows of the matrix.
+ *       uint16_t numCols;     // number of columns of the matrix.
+ *       float32_t *pData;     // points to the data of the matrix.
+ *     } arm_matrix_instance_f32;
+ * 
+ * There are similar definitions for Q15 and Q31 data types. + * + * The structure specifies the size of the matrix and then points to + * an array of data. The array is of size numRows X numCols + * and the values are arranged in row order. That is, the + * matrix element (i, j) is stored at: + *
+ *     pData[i*numCols + j]
+ * 
+ * + * \par Init Functions + * There is an associated initialization function for each type of matrix + * data structure. + * The initialization function sets the values of the internal structure fields. + * Refer to the function arm_mat_init_f32(), arm_mat_init_q31() + * and arm_mat_init_q15() for floating-point, Q31 and Q15 types, respectively. + * + * \par + * Use of the initialization function is optional. However, if initialization function is used + * then the instance structure cannot be placed into a const data section. + * To place the instance structure in a const data + * section, manually initialize the data structure. For example: + *
+ * arm_matrix_instance_f32 S = {nRows, nColumns, pData};
+ * arm_matrix_instance_q31 S = {nRows, nColumns, pData};
+ * arm_matrix_instance_q15 S = {nRows, nColumns, pData};
+ * 
+ * where nRows specifies the number of rows, nColumns + * specifies the number of columns, and pData points to the + * data array. + * + * \par Size Checking + * By default all of the matrix functions perform size checking on the input and + * output matrices. For example, the matrix addition function verifies that the + * two input matrices and the output matrix all have the same number of rows and + * columns. If the size check fails the functions return: + *
+ *     ARM_MATH_SIZE_MISMATCH
+ * 
+ * Otherwise the functions return + *
+ *     ARM_MATH_SUCCESS
+ * 
+ * There is some overhead associated with this matrix size checking. + * The matrix size checking is enabled via the #define + *
+ *     ARM_MATH_MATRIX_CHECK
+ * 
+ * within the library project settings. By default this macro is defined + * and size checking is enabled. By changing the project settings and + * undefining this macro size checking is eliminated and the functions + * run a bit faster. With size checking disabled the functions always + * return ARM_MATH_SUCCESS. + */ + +/** + * @defgroup groupTransforms Transform Functions + */ + +/** + * @defgroup groupController Controller Functions + */ + +/** + * @defgroup groupStats Statistics Functions + */ +/** + * @defgroup groupSupport Support Functions + */ + +/** + * @defgroup groupInterpolation Interpolation Functions + * These functions perform 1- and 2-dimensional interpolation of data. + * Linear interpolation is used for 1-dimensional data and + * bilinear interpolation is used for 2-dimensional data. + */ + +/** + * @defgroup groupExamples Examples + */ +#ifndef _ARM_MATH_H +#define _ARM_MATH_H + +#define __CMSIS_GENERIC /* disable NVIC and Systick functions */ + +#if defined (ARM_MATH_CM4) + #include "core_cm4.h" +#elif defined (ARM_MATH_CM3) + #include "core_cm3.h" +#elif defined (ARM_MATH_CM0) + #include "core_cm0.h" +#else +#include "ARMCM4.h" +#warning "Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4....." +#endif + +#undef __CMSIS_GENERIC /* enable NVIC and Systick functions */ +#include "string.h" + #include "math.h" +#ifdef __cplusplus +extern "C" +{ +#endif + + + /** + * @brief Macros required for reciprocal calculation in Normalized LMS + */ + +#define DELTA_Q31 (0x100) +#define DELTA_Q15 0x5 +#define INDEX_MASK 0x0000003F +#define PI 3.14159265358979f + + /** + * @brief Macros required for SINE and COSINE Fast math approximations + */ + +#define TABLE_SIZE 256 +#define TABLE_SPACING_Q31 0x800000 +#define TABLE_SPACING_Q15 0x80 + + /** + * @brief Macros required for SINE and COSINE Controller functions + */ + /* 1.31(q31) Fixed value of 2/360 */ + /* -1 to +1 is divided into 360 values so total spacing is (2/360) */ +#define INPUT_SPACING 0xB60B61 + + + /** + * @brief Error status returned by some functions in the library. + */ + + typedef enum + { + ARM_MATH_SUCCESS = 0, /**< No error */ + ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */ + ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */ + ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */ + ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */ + ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */ + ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */ + } arm_status; + + /** + * @brief 8-bit fractional data type in 1.7 format. + */ + typedef int8_t q7_t; + + /** + * @brief 16-bit fractional data type in 1.15 format. + */ + typedef int16_t q15_t; + + /** + * @brief 32-bit fractional data type in 1.31 format. + */ + typedef int32_t q31_t; + + /** + * @brief 64-bit fractional data type in 1.63 format. + */ + typedef int64_t q63_t; + + /** + * @brief 32-bit floating-point type definition. + */ + typedef float float32_t; + + /** + * @brief 64-bit floating-point type definition. + */ + typedef double float64_t; + + /** + * @brief definition to read/write two 16 bit values. + */ +#define __SIMD32(addr) (*(int32_t **) & (addr)) + +#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0) + /** + * @brief definition to pack two 16 bit values. + */ +#define __PKHBT(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0x0000FFFF) | \ + (((int32_t)(ARG2) << ARG3) & (int32_t)0xFFFF0000) ) + +#endif + + + /** + * @brief definition to pack four 8 bit values. + */ +#ifndef ARM_MATH_BIG_ENDIAN + +#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v0) << 0) & (int32_t)0x000000FF) | \ + (((int32_t)(v1) << 8) & (int32_t)0x0000FF00) | \ + (((int32_t)(v2) << 16) & (int32_t)0x00FF0000) | \ + (((int32_t)(v3) << 24) & (int32_t)0xFF000000) ) +#else + +#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v3) << 0) & (int32_t)0x000000FF) | \ + (((int32_t)(v2) << 8) & (int32_t)0x0000FF00) | \ + (((int32_t)(v1) << 16) & (int32_t)0x00FF0000) | \ + (((int32_t)(v0) << 24) & (int32_t)0xFF000000) ) + +#endif + + + /** + * @brief Clips Q63 to Q31 values. + */ + static __INLINE q31_t clip_q63_to_q31( + q63_t x) + { + return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? + ((0x7FFFFFFF ^ ((q31_t) (x >> 63)))) : (q31_t) x; + } + + /** + * @brief Clips Q63 to Q15 values. + */ + static __INLINE q15_t clip_q63_to_q15( + q63_t x) + { + return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? + ((0x7FFF ^ ((q15_t) (x >> 63)))) : (q15_t) (x >> 15); + } + + /** + * @brief Clips Q31 to Q7 values. + */ + static __INLINE q7_t clip_q31_to_q7( + q31_t x) + { + return ((q31_t) (x >> 24) != ((q31_t) x >> 23)) ? + ((0x7F ^ ((q7_t) (x >> 31)))) : (q7_t) x; + } + + /** + * @brief Clips Q31 to Q15 values. + */ + static __INLINE q15_t clip_q31_to_q15( + q31_t x) + { + return ((q31_t) (x >> 16) != ((q31_t) x >> 15)) ? + ((0x7FFF ^ ((q15_t) (x >> 31)))) : (q15_t) x; + } + + /** + * @brief Multiplies 32 X 64 and returns 32 bit result in 2.30 format. + */ + + static __INLINE q63_t mult32x64( + q63_t x, + q31_t y) + { + return ((((q63_t) (x & 0x00000000FFFFFFFF) * y) >> 32) + + (((q63_t) (x >> 32) * y))); + } + + +#if defined (ARM_MATH_CM0) && defined ( __CC_ARM ) +#define __CLZ __clz +#endif + +#if defined (ARM_MATH_CM0) && ((defined (__ICCARM__)) ||(defined (__GNUC__)) || defined (__TASKING__) ) + + static __INLINE uint32_t __CLZ(q31_t data); + + + static __INLINE uint32_t __CLZ(q31_t data) + { + uint32_t count = 0; + uint32_t mask = 0x80000000; + + while((data & mask) == 0) + { + count += 1u; + mask = mask >> 1u; + } + + return(count); + + } + +#endif + + /** + * @brief Function to Calculates 1/in(reciprocal) value of Q31 Data type. + */ + + static __INLINE uint32_t arm_recip_q31( + q31_t in, + q31_t * dst, + q31_t * pRecipTable) + { + + uint32_t out, tempVal; + uint32_t index, i; + uint32_t signBits; + + if(in > 0) + { + signBits = __CLZ(in) - 1; + } + else + { + signBits = __CLZ(-in) - 1; + } + + /* Convert input sample to 1.31 format */ + in = in << signBits; + + /* calculation of index for initial approximated Val */ + index = (uint32_t) (in >> 24u); + index = (index & INDEX_MASK); + + /* 1.31 with exp 1 */ + out = pRecipTable[index]; + + /* calculation of reciprocal value */ + /* running approximation for two iterations */ + for (i = 0u; i < 2u; i++) + { + tempVal = (q31_t) (((q63_t) in * out) >> 31u); + tempVal = 0x7FFFFFFF - tempVal; + /* 1.31 with exp 1 */ + //out = (q31_t) (((q63_t) out * tempVal) >> 30u); + out = (q31_t) clip_q63_to_q31(((q63_t) out * tempVal) >> 30u); + } + + /* write output */ + *dst = out; + + /* return num of signbits of out = 1/in value */ + return (signBits + 1u); + + } + + /** + * @brief Function to Calculates 1/in(reciprocal) value of Q15 Data type. + */ + static __INLINE uint32_t arm_recip_q15( + q15_t in, + q15_t * dst, + q15_t * pRecipTable) + { + + uint32_t out = 0, tempVal = 0; + uint32_t index = 0, i = 0; + uint32_t signBits = 0; + + if(in > 0) + { + signBits = __CLZ(in) - 17; + } + else + { + signBits = __CLZ(-in) - 17; + } + + /* Convert input sample to 1.15 format */ + in = in << signBits; + + /* calculation of index for initial approximated Val */ + index = in >> 8; + index = (index & INDEX_MASK); + + /* 1.15 with exp 1 */ + out = pRecipTable[index]; + + /* calculation of reciprocal value */ + /* running approximation for two iterations */ + for (i = 0; i < 2; i++) + { + tempVal = (q15_t) (((q31_t) in * out) >> 15); + tempVal = 0x7FFF - tempVal; + /* 1.15 with exp 1 */ + out = (q15_t) (((q31_t) out * tempVal) >> 14); + } + + /* write output */ + *dst = out; + + /* return num of signbits of out = 1/in value */ + return (signBits + 1); + + } + + + /* + * @brief C custom defined intrinisic function for only M0 processors + */ +#if defined(ARM_MATH_CM0) + + static __INLINE q31_t __SSAT( + q31_t x, + uint32_t y) + { + int32_t posMax, negMin; + uint32_t i; + + posMax = 1; + for (i = 0; i < (y - 1); i++) + { + posMax = posMax * 2; + } + + if(x > 0) + { + posMax = (posMax - 1); + + if(x > posMax) + { + x = posMax; + } + } + else + { + negMin = -posMax; + + if(x < negMin) + { + x = negMin; + } + } + return (x); + + + } + +#endif /* end of ARM_MATH_CM0 */ + + + + /* + * @brief C custom defined intrinsic function for M3 and M0 processors + */ +#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0) + + /* + * @brief C custom defined QADD8 for M3 and M0 processors + */ + static __INLINE q31_t __QADD8( + q31_t x, + q31_t y) + { + + q31_t sum; + q7_t r, s, t, u; + + r = (char) x; + s = (char) y; + + r = __SSAT((q31_t) (r + s), 8); + s = __SSAT(((q31_t) (((x << 16) >> 24) + ((y << 16) >> 24))), 8); + t = __SSAT(((q31_t) (((x << 8) >> 24) + ((y << 8) >> 24))), 8); + u = __SSAT(((q31_t) ((x >> 24) + (y >> 24))), 8); + + sum = (((q31_t) u << 24) & 0xFF000000) | (((q31_t) t << 16) & 0x00FF0000) | + (((q31_t) s << 8) & 0x0000FF00) | (r & 0x000000FF); + + return sum; + + } + + /* + * @brief C custom defined QSUB8 for M3 and M0 processors + */ + static __INLINE q31_t __QSUB8( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s, t, u; + + r = (char) x; + s = (char) y; + + r = __SSAT((r - s), 8); + s = __SSAT(((q31_t) (((x << 16) >> 24) - ((y << 16) >> 24))), 8) << 8; + t = __SSAT(((q31_t) (((x << 8) >> 24) - ((y << 8) >> 24))), 8) << 16; + u = __SSAT(((q31_t) ((x >> 24) - (y >> 24))), 8) << 24; + + sum = + (u & 0xFF000000) | (t & 0x00FF0000) | (s & 0x0000FF00) | (r & 0x000000FF); + + return sum; + } + + /* + * @brief C custom defined QADD16 for M3 and M0 processors + */ + + /* + * @brief C custom defined QADD16 for M3 and M0 processors + */ + static __INLINE q31_t __QADD16( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = __SSAT(r + s, 16); + s = __SSAT(((q31_t) ((x >> 16) + (y >> 16))), 16) << 16; + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + + } + + /* + * @brief C custom defined SHADD16 for M3 and M0 processors + */ + static __INLINE q31_t __SHADD16( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) + (s >> 1)); + s = ((q31_t) ((x >> 17) + (y >> 17))) << 16; + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + + } + + /* + * @brief C custom defined QSUB16 for M3 and M0 processors + */ + static __INLINE q31_t __QSUB16( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = __SSAT(r - s, 16); + s = __SSAT(((q31_t) ((x >> 16) - (y >> 16))), 16) << 16; + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + } + + /* + * @brief C custom defined SHSUB16 for M3 and M0 processors + */ + static __INLINE q31_t __SHSUB16( + q31_t x, + q31_t y) + { + + q31_t diff; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) - (s >> 1)); + s = (((x >> 17) - (y >> 17)) << 16); + + diff = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return diff; + } + + /* + * @brief C custom defined QASX for M3 and M0 processors + */ + static __INLINE q31_t __QASX( + q31_t x, + q31_t y) + { + + q31_t sum = 0; + + sum = ((sum + clip_q31_to_q15((q31_t) ((short) (x >> 16) + (short) y))) << 16) + + clip_q31_to_q15((q31_t) ((short) x - (short) (y >> 16))); + + return sum; + } + + /* + * @brief C custom defined SHASX for M3 and M0 processors + */ + static __INLINE q31_t __SHASX( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) - (y >> 17)); + s = (((x >> 17) + (s >> 1)) << 16); + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + } + + + /* + * @brief C custom defined QSAX for M3 and M0 processors + */ + static __INLINE q31_t __QSAX( + q31_t x, + q31_t y) + { + + q31_t sum = 0; + + sum = ((sum + clip_q31_to_q15((q31_t) ((short) (x >> 16) - (short) y))) << 16) + + clip_q31_to_q15((q31_t) ((short) x + (short) (y >> 16))); + + return sum; + } + + /* + * @brief C custom defined SHSAX for M3 and M0 processors + */ + static __INLINE q31_t __SHSAX( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) + (y >> 17)); + s = (((x >> 17) - (s >> 1)) << 16); + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + } + + /* + * @brief C custom defined SMUSDX for M3 and M0 processors + */ + static __INLINE q31_t __SMUSDX( + q31_t x, + q31_t y) + { + + return ((q31_t)(((short) x * (short) (y >> 16)) - + ((short) (x >> 16) * (short) y))); + } + + /* + * @brief C custom defined SMUADX for M3 and M0 processors + */ + static __INLINE q31_t __SMUADX( + q31_t x, + q31_t y) + { + + return ((q31_t)(((short) x * (short) (y >> 16)) + + ((short) (x >> 16) * (short) y))); + } + + /* + * @brief C custom defined QADD for M3 and M0 processors + */ + static __INLINE q31_t __QADD( + q31_t x, + q31_t y) + { + return clip_q63_to_q31((q63_t) x + y); + } + + /* + * @brief C custom defined QSUB for M3 and M0 processors + */ + static __INLINE q31_t __QSUB( + q31_t x, + q31_t y) + { + return clip_q63_to_q31((q63_t) x - y); + } + + /* + * @brief C custom defined SMLAD for M3 and M0 processors + */ + static __INLINE q31_t __SMLAD( + q31_t x, + q31_t y, + q31_t sum) + { + + return (sum + ((short) (x >> 16) * (short) (y >> 16)) + + ((short) x * (short) y)); + } + + /* + * @brief C custom defined SMLADX for M3 and M0 processors + */ + static __INLINE q31_t __SMLADX( + q31_t x, + q31_t y, + q31_t sum) + { + + return (sum + ((short) (x >> 16) * (short) (y)) + + ((short) x * (short) (y >> 16))); + } + + /* + * @brief C custom defined SMLSDX for M3 and M0 processors + */ + static __INLINE q31_t __SMLSDX( + q31_t x, + q31_t y, + q31_t sum) + { + + return (sum - ((short) (x >> 16) * (short) (y)) + + ((short) x * (short) (y >> 16))); + } + + /* + * @brief C custom defined SMLALD for M3 and M0 processors + */ + static __INLINE q63_t __SMLALD( + q31_t x, + q31_t y, + q63_t sum) + { + + return (sum + ((short) (x >> 16) * (short) (y >> 16)) + + ((short) x * (short) y)); + } + + /* + * @brief C custom defined SMLALDX for M3 and M0 processors + */ + static __INLINE q63_t __SMLALDX( + q31_t x, + q31_t y, + q63_t sum) + { + + return (sum + ((short) (x >> 16) * (short) y)) + + ((short) x * (short) (y >> 16)); + } + + /* + * @brief C custom defined SMUAD for M3 and M0 processors + */ + static __INLINE q31_t __SMUAD( + q31_t x, + q31_t y) + { + + return (((x >> 16) * (y >> 16)) + + (((x << 16) >> 16) * ((y << 16) >> 16))); + } + + /* + * @brief C custom defined SMUSD for M3 and M0 processors + */ + static __INLINE q31_t __SMUSD( + q31_t x, + q31_t y) + { + + return (-((x >> 16) * (y >> 16)) + + (((x << 16) >> 16) * ((y << 16) >> 16))); + } + + + + +#endif /* (ARM_MATH_CM3) || defined (ARM_MATH_CM0) */ + + + /** + * @brief Instance structure for the Q7 FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + } arm_fir_instance_q7; + + /** + * @brief Instance structure for the Q15 FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + } arm_fir_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + } arm_fir_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + } arm_fir_instance_f32; + + + /** + * @brief Processing function for the Q7 FIR filter. + * @param[in] *S points to an instance of the Q7 FIR filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_q7( + const arm_fir_instance_q7 * S, + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q7 FIR filter. + * @param[in,out] *S points to an instance of the Q7 FIR structure. + * @param[in] numTaps Number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed. + * @return none + */ + void arm_fir_init_q7( + arm_fir_instance_q7 * S, + uint16_t numTaps, + q7_t * pCoeffs, + q7_t * pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q15 FIR filter. + * @param[in] *S points to an instance of the Q15 FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_q15( + const arm_fir_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the fast Q15 FIR filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q15 FIR filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_fast_q15( + const arm_fir_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q15 FIR filter. + * @param[in,out] *S points to an instance of the Q15 FIR filter structure. + * @param[in] numTaps Number of filter coefficients in the filter. Must be even and greater than or equal to 4. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed at a time. + * @return The function returns ARM_MATH_SUCCESS if initialization was successful or ARM_MATH_ARGUMENT_ERROR if + * numTaps is not a supported value. + */ + + arm_status arm_fir_init_q15( + arm_fir_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR filter. + * @param[in] *S points to an instance of the Q31 FIR filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_q31( + const arm_fir_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the fast Q31 FIR filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q31 FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_fast_q31( + const arm_fir_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 FIR filter. + * @param[in,out] *S points to an instance of the Q31 FIR structure. + * @param[in] numTaps Number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed at a time. + * @return none. + */ + void arm_fir_init_q31( + arm_fir_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the floating-point FIR filter. + * @param[in] *S points to an instance of the floating-point FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_f32( + const arm_fir_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point FIR filter. + * @param[in,out] *S points to an instance of the floating-point FIR filter structure. + * @param[in] numTaps Number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed at a time. + * @return none. + */ + void arm_fir_init_f32( + arm_fir_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q15 Biquad cascade filter. + */ + typedef struct + { + int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ + q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ + int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ + + } arm_biquad_casd_df1_inst_q15; + + + /** + * @brief Instance structure for the Q31 Biquad cascade filter. + */ + typedef struct + { + uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ + q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ + uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ + + } arm_biquad_casd_df1_inst_q31; + + /** + * @brief Instance structure for the floating-point Biquad cascade filter. + */ + typedef struct + { + uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ + float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ + + + } arm_biquad_casd_df1_inst_f32; + + + + /** + * @brief Processing function for the Q15 Biquad cascade filter. + * @param[in] *S points to an instance of the Q15 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_q15( + const arm_biquad_casd_df1_inst_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q15 Biquad cascade filter. + * @param[in,out] *S points to an instance of the Q15 Biquad cascade structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format + * @return none + */ + + void arm_biquad_cascade_df1_init_q15( + arm_biquad_casd_df1_inst_q15 * S, + uint8_t numStages, + q15_t * pCoeffs, + q15_t * pState, + int8_t postShift); + + + /** + * @brief Fast but less precise processing function for the Q15 Biquad cascade filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q15 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_fast_q15( + const arm_biquad_casd_df1_inst_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q31 Biquad cascade filter + * @param[in] *S points to an instance of the Q31 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_q31( + const arm_biquad_casd_df1_inst_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Fast but less precise processing function for the Q31 Biquad cascade filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q31 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_fast_q31( + const arm_biquad_casd_df1_inst_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 Biquad cascade filter. + * @param[in,out] *S points to an instance of the Q31 Biquad cascade structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format + * @return none + */ + + void arm_biquad_cascade_df1_init_q31( + arm_biquad_casd_df1_inst_q31 * S, + uint8_t numStages, + q31_t * pCoeffs, + q31_t * pState, + int8_t postShift); + + /** + * @brief Processing function for the floating-point Biquad cascade filter. + * @param[in] *S points to an instance of the floating-point Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_f32( + const arm_biquad_casd_df1_inst_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point Biquad cascade filter. + * @param[in,out] *S points to an instance of the floating-point Biquad cascade structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @return none + */ + + void arm_biquad_cascade_df1_init_f32( + arm_biquad_casd_df1_inst_f32 * S, + uint8_t numStages, + float32_t * pCoeffs, + float32_t * pState); + + + /** + * @brief Instance structure for the floating-point matrix structure. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows of the matrix. */ + uint16_t numCols; /**< number of columns of the matrix. */ + float32_t *pData; /**< points to the data of the matrix. */ + } arm_matrix_instance_f32; + + /** + * @brief Instance structure for the Q15 matrix structure. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows of the matrix. */ + uint16_t numCols; /**< number of columns of the matrix. */ + q15_t *pData; /**< points to the data of the matrix. */ + + } arm_matrix_instance_q15; + + /** + * @brief Instance structure for the Q31 matrix structure. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows of the matrix. */ + uint16_t numCols; /**< number of columns of the matrix. */ + q31_t *pData; /**< points to the data of the matrix. */ + + } arm_matrix_instance_q31; + + + + /** + * @brief Floating-point matrix addition. + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_add_f32( + const arm_matrix_instance_f32 * pSrcA, + const arm_matrix_instance_f32 * pSrcB, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix addition. + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_add_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix addition. + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_add_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Floating-point matrix transpose. + * @param[in] *pSrc points to the input matrix + * @param[out] *pDst points to the output matrix + * @return The function returns either ARM_MATH_SIZE_MISMATCH + * or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_trans_f32( + const arm_matrix_instance_f32 * pSrc, + arm_matrix_instance_f32 * pDst); + + + /** + * @brief Q15 matrix transpose. + * @param[in] *pSrc points to the input matrix + * @param[out] *pDst points to the output matrix + * @return The function returns either ARM_MATH_SIZE_MISMATCH + * or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_trans_q15( + const arm_matrix_instance_q15 * pSrc, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix transpose. + * @param[in] *pSrc points to the input matrix + * @param[out] *pDst points to the output matrix + * @return The function returns either ARM_MATH_SIZE_MISMATCH + * or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_trans_q31( + const arm_matrix_instance_q31 * pSrc, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Floating-point matrix multiplication + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_f32( + const arm_matrix_instance_f32 * pSrcA, + const arm_matrix_instance_f32 * pSrcB, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix multiplication + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst, + q15_t * pState); + + /** + * @brief Q15 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @param[in] *pState points to the array for storing intermediate results + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_fast_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst, + q15_t * pState); + + /** + * @brief Q31 matrix multiplication + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + /** + * @brief Q31 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_fast_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Floating-point matrix subtraction + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_sub_f32( + const arm_matrix_instance_f32 * pSrcA, + const arm_matrix_instance_f32 * pSrcB, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix subtraction + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_sub_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix subtraction + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_sub_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + /** + * @brief Floating-point matrix scaling. + * @param[in] *pSrc points to the input matrix + * @param[in] scale scale factor + * @param[out] *pDst points to the output matrix + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_scale_f32( + const arm_matrix_instance_f32 * pSrc, + float32_t scale, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix scaling. + * @param[in] *pSrc points to input matrix + * @param[in] scaleFract fractional portion of the scale factor + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to output matrix + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_scale_q15( + const arm_matrix_instance_q15 * pSrc, + q15_t scaleFract, + int32_t shift, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix scaling. + * @param[in] *pSrc points to input matrix + * @param[in] scaleFract fractional portion of the scale factor + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_scale_q31( + const arm_matrix_instance_q31 * pSrc, + q31_t scaleFract, + int32_t shift, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Q31 matrix initialization. + * @param[in,out] *S points to an instance of the floating-point matrix structure. + * @param[in] nRows number of rows in the matrix. + * @param[in] nColumns number of columns in the matrix. + * @param[in] *pData points to the matrix data array. + * @return none + */ + + void arm_mat_init_q31( + arm_matrix_instance_q31 * S, + uint16_t nRows, + uint16_t nColumns, + q31_t *pData); + + /** + * @brief Q15 matrix initialization. + * @param[in,out] *S points to an instance of the floating-point matrix structure. + * @param[in] nRows number of rows in the matrix. + * @param[in] nColumns number of columns in the matrix. + * @param[in] *pData points to the matrix data array. + * @return none + */ + + void arm_mat_init_q15( + arm_matrix_instance_q15 * S, + uint16_t nRows, + uint16_t nColumns, + q15_t *pData); + + /** + * @brief Floating-point matrix initialization. + * @param[in,out] *S points to an instance of the floating-point matrix structure. + * @param[in] nRows number of rows in the matrix. + * @param[in] nColumns number of columns in the matrix. + * @param[in] *pData points to the matrix data array. + * @return none + */ + + void arm_mat_init_f32( + arm_matrix_instance_f32 * S, + uint16_t nRows, + uint16_t nColumns, + float32_t *pData); + + + + /** + * @brief Instance structure for the Q15 PID Control. + */ + typedef struct + { + q15_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ + #ifdef ARM_MATH_CM0 + q15_t A1; + q15_t A2; + #else + q31_t A1; /**< The derived gain A1 = -Kp - 2Kd | Kd.*/ + #endif + q15_t state[3]; /**< The state array of length 3. */ + q15_t Kp; /**< The proportional gain. */ + q15_t Ki; /**< The integral gain. */ + q15_t Kd; /**< The derivative gain. */ + } arm_pid_instance_q15; + + /** + * @brief Instance structure for the Q31 PID Control. + */ + typedef struct + { + q31_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ + q31_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ + q31_t A2; /**< The derived gain, A2 = Kd . */ + q31_t state[3]; /**< The state array of length 3. */ + q31_t Kp; /**< The proportional gain. */ + q31_t Ki; /**< The integral gain. */ + q31_t Kd; /**< The derivative gain. */ + + } arm_pid_instance_q31; + + /** + * @brief Instance structure for the floating-point PID Control. + */ + typedef struct + { + float32_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ + float32_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ + float32_t A2; /**< The derived gain, A2 = Kd . */ + float32_t state[3]; /**< The state array of length 3. */ + float32_t Kp; /**< The proportional gain. */ + float32_t Ki; /**< The integral gain. */ + float32_t Kd; /**< The derivative gain. */ + } arm_pid_instance_f32; + + + + /** + * @brief Initialization function for the floating-point PID Control. + * @param[in,out] *S points to an instance of the PID structure. + * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. + * @return none. + */ + void arm_pid_init_f32( + arm_pid_instance_f32 * S, + int32_t resetStateFlag); + + /** + * @brief Reset function for the floating-point PID Control. + * @param[in,out] *S is an instance of the floating-point PID Control structure + * @return none + */ + void arm_pid_reset_f32( + arm_pid_instance_f32 * S); + + + /** + * @brief Initialization function for the Q31 PID Control. + * @param[in,out] *S points to an instance of the Q15 PID structure. + * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. + * @return none. + */ + void arm_pid_init_q31( + arm_pid_instance_q31 * S, + int32_t resetStateFlag); + + + /** + * @brief Reset function for the Q31 PID Control. + * @param[in,out] *S points to an instance of the Q31 PID Control structure + * @return none + */ + + void arm_pid_reset_q31( + arm_pid_instance_q31 * S); + + /** + * @brief Initialization function for the Q15 PID Control. + * @param[in,out] *S points to an instance of the Q15 PID structure. + * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. + * @return none. + */ + void arm_pid_init_q15( + arm_pid_instance_q15 * S, + int32_t resetStateFlag); + + /** + * @brief Reset function for the Q15 PID Control. + * @param[in,out] *S points to an instance of the q15 PID Control structure + * @return none + */ + void arm_pid_reset_q15( + arm_pid_instance_q15 * S); + + + /** + * @brief Instance structure for the floating-point Linear Interpolate function. + */ + typedef struct + { + uint32_t nValues; + float32_t x1; + float32_t xSpacing; + float32_t *pYData; /**< pointer to the table of Y values */ + } arm_linear_interp_instance_f32; + + /** + * @brief Instance structure for the floating-point bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + float32_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_f32; + + /** + * @brief Instance structure for the Q31 bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + q31_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_q31; + + /** + * @brief Instance structure for the Q15 bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + q15_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_q15; + + /** + * @brief Instance structure for the Q15 bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + q7_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_q7; + + + /** + * @brief Q7 vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_q7( + q7_t * pSrcA, + q7_t * pSrcB, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Floating-point vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q15 CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + q15_t *pTwiddle; /**< points to the twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + } arm_cfft_radix4_instance_q15; + + /** + * @brief Instance structure for the Q31 CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + q31_t *pTwiddle; /**< points to the twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + } arm_cfft_radix4_instance_q31; + + /** + * @brief Instance structure for the floating-point CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + float32_t *pTwiddle; /**< points to the twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + float32_t onebyfftLen; /**< value of 1/fftLen. */ + } arm_cfft_radix4_instance_f32; + + /** + * @brief Processing function for the Q15 CFFT/CIFFT. + * @param[in] *S points to an instance of the Q15 CFFT/CIFFT structure. + * @param[in, out] *pSrc points to the complex data buffer. Processing occurs in-place. + * @return none. + */ + + void arm_cfft_radix4_q15( + const arm_cfft_radix4_instance_q15 * S, + q15_t * pSrc); + + /** + * @brief Initialization function for the Q15 CFFT/CIFFT. + * @param[in,out] *S points to an instance of the Q15 CFFT/CIFFT structure. + * @param[in] fftLen length of the FFT. + * @param[in] ifftFlag flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. + * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLen is not a supported value. + */ + + arm_status arm_cfft_radix4_init_q15( + arm_cfft_radix4_instance_q15 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + /** + * @brief Processing function for the Q31 CFFT/CIFFT. + * @param[in] *S points to an instance of the Q31 CFFT/CIFFT structure. + * @param[in, out] *pSrc points to the complex data buffer. Processing occurs in-place. + * @return none. + */ + + void arm_cfft_radix4_q31( + const arm_cfft_radix4_instance_q31 * S, + q31_t * pSrc); + + /** + * @brief Initialization function for the Q31 CFFT/CIFFT. + * @param[in,out] *S points to an instance of the Q31 CFFT/CIFFT structure. + * @param[in] fftLen length of the FFT. + * @param[in] ifftFlag flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. + * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLen is not a supported value. + */ + + arm_status arm_cfft_radix4_init_q31( + arm_cfft_radix4_instance_q31 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + /** + * @brief Processing function for the floating-point CFFT/CIFFT. + * @param[in] *S points to an instance of the floating-point CFFT/CIFFT structure. + * @param[in, out] *pSrc points to the complex data buffer. Processing occurs in-place. + * @return none. + */ + + void arm_cfft_radix4_f32( + const arm_cfft_radix4_instance_f32 * S, + float32_t * pSrc); + + /** + * @brief Initialization function for the floating-point CFFT/CIFFT. + * @param[in,out] *S points to an instance of the floating-point CFFT/CIFFT structure. + * @param[in] fftLen length of the FFT. + * @param[in] ifftFlag flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. + * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLen is not a supported value. + */ + + arm_status arm_cfft_radix4_init_f32( + arm_cfft_radix4_instance_f32 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + + + /*---------------------------------------------------------------------- + * Internal functions prototypes FFT function + ----------------------------------------------------------------------*/ + + /** + * @brief Core function for the floating-point CFFT butterfly process. + * @param[in, out] *pSrc points to the in-place buffer of floating-point data type. + * @param[in] fftLen length of the FFT. + * @param[in] *pCoef points to the twiddle coefficient buffer. + * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. + * @return none. + */ + + void arm_radix4_butterfly_f32( + float32_t * pSrc, + uint16_t fftLen, + float32_t * pCoef, + uint16_t twidCoefModifier); + + /** + * @brief Core function for the floating-point CIFFT butterfly process. + * @param[in, out] *pSrc points to the in-place buffer of floating-point data type. + * @param[in] fftLen length of the FFT. + * @param[in] *pCoef points to twiddle coefficient buffer. + * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. + * @param[in] onebyfftLen value of 1/fftLen. + * @return none. + */ + + void arm_radix4_butterfly_inverse_f32( + float32_t * pSrc, + uint16_t fftLen, + float32_t * pCoef, + uint16_t twidCoefModifier, + float32_t onebyfftLen); + + /** + * @brief In-place bit reversal function. + * @param[in, out] *pSrc points to the in-place buffer of floating-point data type. + * @param[in] fftSize length of the FFT. + * @param[in] bitRevFactor bit reversal modifier that supports different size FFTs with the same bit reversal table. + * @param[in] *pBitRevTab points to the bit reversal table. + * @return none. + */ + + void arm_bitreversal_f32( + float32_t *pSrc, + uint16_t fftSize, + uint16_t bitRevFactor, + uint16_t *pBitRevTab); + + /** + * @brief Core function for the Q31 CFFT butterfly process. + * @param[in, out] *pSrc points to the in-place buffer of Q31 data type. + * @param[in] fftLen length of the FFT. + * @param[in] *pCoef points to twiddle coefficient buffer. + * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. + * @return none. + */ + + void arm_radix4_butterfly_q31( + q31_t *pSrc, + uint32_t fftLen, + q31_t *pCoef, + uint32_t twidCoefModifier); + + /** + * @brief Core function for the Q31 CIFFT butterfly process. + * @param[in, out] *pSrc points to the in-place buffer of Q31 data type. + * @param[in] fftLen length of the FFT. + * @param[in] *pCoef points to twiddle coefficient buffer. + * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. + * @return none. + */ + + void arm_radix4_butterfly_inverse_q31( + q31_t * pSrc, + uint32_t fftLen, + q31_t * pCoef, + uint32_t twidCoefModifier); + + /** + * @brief In-place bit reversal function. + * @param[in, out] *pSrc points to the in-place buffer of Q31 data type. + * @param[in] fftLen length of the FFT. + * @param[in] bitRevFactor bit reversal modifier that supports different size FFTs with the same bit reversal table + * @param[in] *pBitRevTab points to bit reversal table. + * @return none. + */ + + void arm_bitreversal_q31( + q31_t * pSrc, + uint32_t fftLen, + uint16_t bitRevFactor, + uint16_t *pBitRevTab); + + /** + * @brief Core function for the Q15 CFFT butterfly process. + * @param[in, out] *pSrc16 points to the in-place buffer of Q15 data type. + * @param[in] fftLen length of the FFT. + * @param[in] *pCoef16 points to twiddle coefficient buffer. + * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. + * @return none. + */ + + void arm_radix4_butterfly_q15( + q15_t *pSrc16, + uint32_t fftLen, + q15_t *pCoef16, + uint32_t twidCoefModifier); + + /** + * @brief Core function for the Q15 CIFFT butterfly process. + * @param[in, out] *pSrc16 points to the in-place buffer of Q15 data type. + * @param[in] fftLen length of the FFT. + * @param[in] *pCoef16 points to twiddle coefficient buffer. + * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. + * @return none. + */ + + void arm_radix4_butterfly_inverse_q15( + q15_t *pSrc16, + uint32_t fftLen, + q15_t *pCoef16, + uint32_t twidCoefModifier); + + /** + * @brief In-place bit reversal function. + * @param[in, out] *pSrc points to the in-place buffer of Q15 data type. + * @param[in] fftLen length of the FFT. + * @param[in] bitRevFactor bit reversal modifier that supports different size FFTs with the same bit reversal table + * @param[in] *pBitRevTab points to bit reversal table. + * @return none. + */ + + void arm_bitreversal_q15( + q15_t * pSrc, + uint32_t fftLen, + uint16_t bitRevFactor, + uint16_t *pBitRevTab); + + /** + * @brief Instance structure for the Q15 RFFT/RIFFT function. + */ + + typedef struct + { + uint32_t fftLenReal; /**< length of the real FFT. */ + uint32_t fftLenBy2; /**< length of the complex FFT. */ + uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ + uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ + uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + q15_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ + q15_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ + arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ + } arm_rfft_instance_q15; + + /** + * @brief Instance structure for the Q31 RFFT/RIFFT function. + */ + + typedef struct + { + uint32_t fftLenReal; /**< length of the real FFT. */ + uint32_t fftLenBy2; /**< length of the complex FFT. */ + uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ + uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ + uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + q31_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ + q31_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ + arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ + } arm_rfft_instance_q31; + + /** + * @brief Instance structure for the floating-point RFFT/RIFFT function. + */ + + typedef struct + { + uint32_t fftLenReal; /**< length of the real FFT. */ + uint16_t fftLenBy2; /**< length of the complex FFT. */ + uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ + uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ + uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + float32_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ + float32_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ + arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ + } arm_rfft_instance_f32; + + /** + * @brief Processing function for the Q15 RFFT/RIFFT. + * @param[in] *S points to an instance of the Q15 RFFT/RIFFT structure. + * @param[in] *pSrc points to the input buffer. + * @param[out] *pDst points to the output buffer. + * @return none. + */ + + void arm_rfft_q15( + const arm_rfft_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst); + + /** + * @brief Initialization function for the Q15 RFFT/RIFFT. + * @param[in, out] *S points to an instance of the Q15 RFFT/RIFFT structure. + * @param[in] *S_CFFT points to an instance of the Q15 CFFT/CIFFT structure. + * @param[in] fftLenReal length of the FFT. + * @param[in] ifftFlagR flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. + * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported value. + */ + + arm_status arm_rfft_init_q15( + arm_rfft_instance_q15 * S, + arm_cfft_radix4_instance_q15 * S_CFFT, + uint32_t fftLenReal, + uint32_t ifftFlagR, + uint32_t bitReverseFlag); + + /** + * @brief Processing function for the Q31 RFFT/RIFFT. + * @param[in] *S points to an instance of the Q31 RFFT/RIFFT structure. + * @param[in] *pSrc points to the input buffer. + * @param[out] *pDst points to the output buffer. + * @return none. + */ + + void arm_rfft_q31( + const arm_rfft_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst); + + /** + * @brief Initialization function for the Q31 RFFT/RIFFT. + * @param[in, out] *S points to an instance of the Q31 RFFT/RIFFT structure. + * @param[in, out] *S_CFFT points to an instance of the Q31 CFFT/CIFFT structure. + * @param[in] fftLenReal length of the FFT. + * @param[in] ifftFlagR flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. + * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported value. + */ + + arm_status arm_rfft_init_q31( + arm_rfft_instance_q31 * S, + arm_cfft_radix4_instance_q31 * S_CFFT, + uint32_t fftLenReal, + uint32_t ifftFlagR, + uint32_t bitReverseFlag); + + /** + * @brief Initialization function for the floating-point RFFT/RIFFT. + * @param[in,out] *S points to an instance of the floating-point RFFT/RIFFT structure. + * @param[in,out] *S_CFFT points to an instance of the floating-point CFFT/CIFFT structure. + * @param[in] fftLenReal length of the FFT. + * @param[in] ifftFlagR flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. + * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported value. + */ + + arm_status arm_rfft_init_f32( + arm_rfft_instance_f32 * S, + arm_cfft_radix4_instance_f32 * S_CFFT, + uint32_t fftLenReal, + uint32_t ifftFlagR, + uint32_t bitReverseFlag); + + /** + * @brief Processing function for the floating-point RFFT/RIFFT. + * @param[in] *S points to an instance of the floating-point RFFT/RIFFT structure. + * @param[in] *pSrc points to the input buffer. + * @param[out] *pDst points to the output buffer. + * @return none. + */ + + void arm_rfft_f32( + const arm_rfft_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst); + + /** + * @brief Instance structure for the floating-point DCT4/IDCT4 function. + */ + + typedef struct + { + uint16_t N; /**< length of the DCT4. */ + uint16_t Nby2; /**< half of the length of the DCT4. */ + float32_t normalize; /**< normalizing factor. */ + float32_t *pTwiddle; /**< points to the twiddle factor table. */ + float32_t *pCosFactor; /**< points to the cosFactor table. */ + arm_rfft_instance_f32 *pRfft; /**< points to the real FFT instance. */ + arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ + } arm_dct4_instance_f32; + + /** + * @brief Initialization function for the floating-point DCT4/IDCT4. + * @param[in,out] *S points to an instance of floating-point DCT4/IDCT4 structure. + * @param[in] *S_RFFT points to an instance of floating-point RFFT/RIFFT structure. + * @param[in] *S_CFFT points to an instance of floating-point CFFT/CIFFT structure. + * @param[in] N length of the DCT4. + * @param[in] Nby2 half of the length of the DCT4. + * @param[in] normalize normalizing factor. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported transform length. + */ + + arm_status arm_dct4_init_f32( + arm_dct4_instance_f32 * S, + arm_rfft_instance_f32 * S_RFFT, + arm_cfft_radix4_instance_f32 * S_CFFT, + uint16_t N, + uint16_t Nby2, + float32_t normalize); + + /** + * @brief Processing function for the floating-point DCT4/IDCT4. + * @param[in] *S points to an instance of the floating-point DCT4/IDCT4 structure. + * @param[in] *pState points to state buffer. + * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. + * @return none. + */ + + void arm_dct4_f32( + const arm_dct4_instance_f32 * S, + float32_t * pState, + float32_t * pInlineBuffer); + + /** + * @brief Instance structure for the Q31 DCT4/IDCT4 function. + */ + + typedef struct + { + uint16_t N; /**< length of the DCT4. */ + uint16_t Nby2; /**< half of the length of the DCT4. */ + q31_t normalize; /**< normalizing factor. */ + q31_t *pTwiddle; /**< points to the twiddle factor table. */ + q31_t *pCosFactor; /**< points to the cosFactor table. */ + arm_rfft_instance_q31 *pRfft; /**< points to the real FFT instance. */ + arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ + } arm_dct4_instance_q31; + + /** + * @brief Initialization function for the Q31 DCT4/IDCT4. + * @param[in,out] *S points to an instance of Q31 DCT4/IDCT4 structure. + * @param[in] *S_RFFT points to an instance of Q31 RFFT/RIFFT structure + * @param[in] *S_CFFT points to an instance of Q31 CFFT/CIFFT structure + * @param[in] N length of the DCT4. + * @param[in] Nby2 half of the length of the DCT4. + * @param[in] normalize normalizing factor. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. + */ + + arm_status arm_dct4_init_q31( + arm_dct4_instance_q31 * S, + arm_rfft_instance_q31 * S_RFFT, + arm_cfft_radix4_instance_q31 * S_CFFT, + uint16_t N, + uint16_t Nby2, + q31_t normalize); + + /** + * @brief Processing function for the Q31 DCT4/IDCT4. + * @param[in] *S points to an instance of the Q31 DCT4 structure. + * @param[in] *pState points to state buffer. + * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. + * @return none. + */ + + void arm_dct4_q31( + const arm_dct4_instance_q31 * S, + q31_t * pState, + q31_t * pInlineBuffer); + + /** + * @brief Instance structure for the Q15 DCT4/IDCT4 function. + */ + + typedef struct + { + uint16_t N; /**< length of the DCT4. */ + uint16_t Nby2; /**< half of the length of the DCT4. */ + q15_t normalize; /**< normalizing factor. */ + q15_t *pTwiddle; /**< points to the twiddle factor table. */ + q15_t *pCosFactor; /**< points to the cosFactor table. */ + arm_rfft_instance_q15 *pRfft; /**< points to the real FFT instance. */ + arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ + } arm_dct4_instance_q15; + + /** + * @brief Initialization function for the Q15 DCT4/IDCT4. + * @param[in,out] *S points to an instance of Q15 DCT4/IDCT4 structure. + * @param[in] *S_RFFT points to an instance of Q15 RFFT/RIFFT structure. + * @param[in] *S_CFFT points to an instance of Q15 CFFT/CIFFT structure. + * @param[in] N length of the DCT4. + * @param[in] Nby2 half of the length of the DCT4. + * @param[in] normalize normalizing factor. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. + */ + + arm_status arm_dct4_init_q15( + arm_dct4_instance_q15 * S, + arm_rfft_instance_q15 * S_RFFT, + arm_cfft_radix4_instance_q15 * S_CFFT, + uint16_t N, + uint16_t Nby2, + q15_t normalize); + + /** + * @brief Processing function for the Q15 DCT4/IDCT4. + * @param[in] *S points to an instance of the Q15 DCT4 structure. + * @param[in] *pState points to state buffer. + * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. + * @return none. + */ + + void arm_dct4_q15( + const arm_dct4_instance_q15 * S, + q15_t * pState, + q15_t * pInlineBuffer); + + /** + * @brief Floating-point vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Q7 vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_q7( + q7_t * pSrcA, + q7_t * pSrcB, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Floating-point vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Q7 vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_q7( + q7_t * pSrcA, + q7_t * pSrcB, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a floating-point vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scale scale factor to be applied + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_f32( + float32_t * pSrc, + float32_t scale, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a Q7 vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scaleFract fractional portion of the scale value + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_q7( + q7_t * pSrc, + q7_t scaleFract, + int8_t shift, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a Q15 vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scaleFract fractional portion of the scale value + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_q15( + q15_t * pSrc, + q15_t scaleFract, + int8_t shift, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a Q31 vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scaleFract fractional portion of the scale value + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_q31( + q31_t * pSrc, + q31_t scaleFract, + int8_t shift, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Q7 vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_q7( + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Floating-point vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Dot product of floating-point vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_f32( + float32_t * pSrcA, + float32_t * pSrcB, + uint32_t blockSize, + float32_t * result); + + /** + * @brief Dot product of Q7 vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_q7( + q7_t * pSrcA, + q7_t * pSrcB, + uint32_t blockSize, + q31_t * result); + + /** + * @brief Dot product of Q15 vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_q15( + q15_t * pSrcA, + q15_t * pSrcB, + uint32_t blockSize, + q63_t * result); + + /** + * @brief Dot product of Q31 vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_q31( + q31_t * pSrcA, + q31_t * pSrcB, + uint32_t blockSize, + q63_t * result); + + /** + * @brief Shifts the elements of a Q7 vector a specified number of bits. + * @param[in] *pSrc points to the input vector + * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_shift_q7( + q7_t * pSrc, + int8_t shiftBits, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Shifts the elements of a Q15 vector a specified number of bits. + * @param[in] *pSrc points to the input vector + * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_shift_q15( + q15_t * pSrc, + int8_t shiftBits, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Shifts the elements of a Q31 vector a specified number of bits. + * @param[in] *pSrc points to the input vector + * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_shift_q31( + q31_t * pSrc, + int8_t shiftBits, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a floating-point vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_f32( + float32_t * pSrc, + float32_t offset, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a Q7 vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_q7( + q7_t * pSrc, + q7_t offset, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a Q15 vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_q15( + q15_t * pSrc, + q15_t offset, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a Q31 vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_q31( + q31_t * pSrc, + q31_t offset, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a floating-point vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a Q7 vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_q7( + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a Q15 vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a Q31 vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + /** + * @brief Copies the elements of a floating-point vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Copies the elements of a Q7 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_q7( + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Copies the elements of a Q15 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Copies the elements of a Q31 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + /** + * @brief Fills a constant value into a floating-point vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_f32( + float32_t value, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Fills a constant value into a Q7 vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_q7( + q7_t value, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Fills a constant value into a Q15 vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_q15( + q15_t value, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Fills a constant value into a Q31 vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_q31( + q31_t value, + q31_t * pDst, + uint32_t blockSize); + +/** + * @brief Convolution of floating-point sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_f32( + float32_t * pSrcA, + uint32_t srcALen, + float32_t * pSrcB, + uint32_t srcBLen, + float32_t * pDst); + +/** + * @brief Convolution of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_fast_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Convolution of Q31 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + /** + * @brief Convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_fast_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + /** + * @brief Convolution of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst); + + /** + * @brief Partial convolution of floating-point sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_f32( + float32_t * pSrcA, + uint32_t srcALen, + float32_t * pSrcB, + uint32_t srcBLen, + float32_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + /** + * @brief Partial convolution of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + /** + * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_fast_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + /** + * @brief Partial convolution of Q31 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + + /** + * @brief Partial convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_fast_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + /** + * @brief Partial convolution of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + + /** + * @brief Instance structure for the Q15 FIR decimator. + */ + + typedef struct + { + uint8_t M; /**< decimation factor. */ + uint16_t numTaps; /**< number of coefficients in the filter. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + } arm_fir_decimate_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR decimator. + */ + + typedef struct + { + uint8_t M; /**< decimation factor. */ + uint16_t numTaps; /**< number of coefficients in the filter. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + + } arm_fir_decimate_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR decimator. + */ + + typedef struct + { + uint8_t M; /**< decimation factor. */ + uint16_t numTaps; /**< number of coefficients in the filter. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + + } arm_fir_decimate_instance_f32; + + + + /** + * @brief Processing function for the floating-point FIR decimator. + * @param[in] *S points to an instance of the floating-point FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_f32( + const arm_fir_decimate_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the floating-point FIR decimator. + * @param[in,out] *S points to an instance of the floating-point FIR decimator structure. + * @param[in] numTaps number of coefficients in the filter. + * @param[in] M decimation factor. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * blockSize is not a multiple of M. + */ + + arm_status arm_fir_decimate_init_f32( + arm_fir_decimate_instance_f32 * S, + uint16_t numTaps, + uint8_t M, + float32_t * pCoeffs, + float32_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q15 FIR decimator. + * @param[in] *S points to an instance of the Q15 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_q15( + const arm_fir_decimate_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the Q15 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q15 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_fast_q15( + const arm_fir_decimate_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + + /** + * @brief Initialization function for the Q15 FIR decimator. + * @param[in,out] *S points to an instance of the Q15 FIR decimator structure. + * @param[in] numTaps number of coefficients in the filter. + * @param[in] M decimation factor. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * blockSize is not a multiple of M. + */ + + arm_status arm_fir_decimate_init_q15( + arm_fir_decimate_instance_q15 * S, + uint16_t numTaps, + uint8_t M, + q15_t * pCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR decimator. + * @param[in] *S points to an instance of the Q31 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_q31( + const arm_fir_decimate_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q31 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_fast_q31( + arm_fir_decimate_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q31 FIR decimator. + * @param[in,out] *S points to an instance of the Q31 FIR decimator structure. + * @param[in] numTaps number of coefficients in the filter. + * @param[in] M decimation factor. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * blockSize is not a multiple of M. + */ + + arm_status arm_fir_decimate_init_q31( + arm_fir_decimate_instance_q31 * S, + uint16_t numTaps, + uint8_t M, + q31_t * pCoeffs, + q31_t * pState, + uint32_t blockSize); + + + + /** + * @brief Instance structure for the Q15 FIR interpolator. + */ + + typedef struct + { + uint8_t L; /**< upsample factor. */ + uint16_t phaseLength; /**< length of each polyphase filter component. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ + q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ + } arm_fir_interpolate_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR interpolator. + */ + + typedef struct + { + uint8_t L; /**< upsample factor. */ + uint16_t phaseLength; /**< length of each polyphase filter component. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ + q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ + } arm_fir_interpolate_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR interpolator. + */ + + typedef struct + { + uint8_t L; /**< upsample factor. */ + uint16_t phaseLength; /**< length of each polyphase filter component. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ + float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */ + } arm_fir_interpolate_instance_f32; + + + /** + * @brief Processing function for the Q15 FIR interpolator. + * @param[in] *S points to an instance of the Q15 FIR interpolator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_interpolate_q15( + const arm_fir_interpolate_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q15 FIR interpolator. + * @param[in,out] *S points to an instance of the Q15 FIR interpolator structure. + * @param[in] L upsample factor. + * @param[in] numTaps number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * the filter length numTaps is not a multiple of the interpolation factor L. + */ + + arm_status arm_fir_interpolate_init_q15( + arm_fir_interpolate_instance_q15 * S, + uint8_t L, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR interpolator. + * @param[in] *S points to an instance of the Q15 FIR interpolator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_interpolate_q31( + const arm_fir_interpolate_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 FIR interpolator. + * @param[in,out] *S points to an instance of the Q31 FIR interpolator structure. + * @param[in] L upsample factor. + * @param[in] numTaps number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * the filter length numTaps is not a multiple of the interpolation factor L. + */ + + arm_status arm_fir_interpolate_init_q31( + arm_fir_interpolate_instance_q31 * S, + uint8_t L, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the floating-point FIR interpolator. + * @param[in] *S points to an instance of the floating-point FIR interpolator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_interpolate_f32( + const arm_fir_interpolate_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point FIR interpolator. + * @param[in,out] *S points to an instance of the floating-point FIR interpolator structure. + * @param[in] L upsample factor. + * @param[in] numTaps number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * the filter length numTaps is not a multiple of the interpolation factor L. + */ + + arm_status arm_fir_interpolate_init_f32( + arm_fir_interpolate_instance_f32 * S, + uint8_t L, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + uint32_t blockSize); + + /** + * @brief Instance structure for the high precision Q31 Biquad cascade filter. + */ + + typedef struct + { + uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ + q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ + uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */ + + } arm_biquad_cas_df1_32x64_ins_q31; + + + /** + * @param[in] *S points to an instance of the high precision Q31 Biquad cascade filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cas_df1_32x64_q31( + const arm_biquad_cas_df1_32x64_ins_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @param[in,out] *S points to an instance of the high precision Q31 Biquad cascade filter structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] postShift shift to be applied to the output. Varies according to the coefficients format + * @return none + */ + + void arm_biquad_cas_df1_32x64_init_q31( + arm_biquad_cas_df1_32x64_ins_q31 * S, + uint8_t numStages, + q31_t * pCoeffs, + q63_t * pState, + uint8_t postShift); + + + + /** + * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. + */ + + typedef struct + { + uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ + float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ + } arm_biquad_cascade_df2T_instance_f32; + + + /** + * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. + * @param[in] *S points to an instance of the filter data structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df2T_f32( + const arm_biquad_cascade_df2T_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. + * @param[in,out] *S points to an instance of the filter data structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @return none + */ + + void arm_biquad_cascade_df2T_init_f32( + arm_biquad_cascade_df2T_instance_f32 * S, + uint8_t numStages, + float32_t * pCoeffs, + float32_t * pState); + + + + /** + * @brief Instance structure for the Q15 FIR lattice filter. + */ + + typedef struct + { + uint16_t numStages; /**< number of filter stages. */ + q15_t *pState; /**< points to the state variable array. The array is of length numStages. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ + } arm_fir_lattice_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR lattice filter. + */ + + typedef struct + { + uint16_t numStages; /**< number of filter stages. */ + q31_t *pState; /**< points to the state variable array. The array is of length numStages. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ + } arm_fir_lattice_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR lattice filter. + */ + + typedef struct + { + uint16_t numStages; /**< number of filter stages. */ + float32_t *pState; /**< points to the state variable array. The array is of length numStages. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ + } arm_fir_lattice_instance_f32; + + /** + * @brief Initialization function for the Q15 FIR lattice filter. + * @param[in] *S points to an instance of the Q15 FIR lattice structure. + * @param[in] numStages number of filter stages. + * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. + * @param[in] *pState points to the state buffer. The array is of length numStages. + * @return none. + */ + + void arm_fir_lattice_init_q15( + arm_fir_lattice_instance_q15 * S, + uint16_t numStages, + q15_t * pCoeffs, + q15_t * pState); + + + /** + * @brief Processing function for the Q15 FIR lattice filter. + * @param[in] *S points to an instance of the Q15 FIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_lattice_q15( + const arm_fir_lattice_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 FIR lattice filter. + * @param[in] *S points to an instance of the Q31 FIR lattice structure. + * @param[in] numStages number of filter stages. + * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. + * @param[in] *pState points to the state buffer. The array is of length numStages. + * @return none. + */ + + void arm_fir_lattice_init_q31( + arm_fir_lattice_instance_q31 * S, + uint16_t numStages, + q31_t * pCoeffs, + q31_t * pState); + + + /** + * @brief Processing function for the Q31 FIR lattice filter. + * @param[in] *S points to an instance of the Q31 FIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_fir_lattice_q31( + const arm_fir_lattice_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + +/** + * @brief Initialization function for the floating-point FIR lattice filter. + * @param[in] *S points to an instance of the floating-point FIR lattice structure. + * @param[in] numStages number of filter stages. + * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. + * @param[in] *pState points to the state buffer. The array is of length numStages. + * @return none. + */ + + void arm_fir_lattice_init_f32( + arm_fir_lattice_instance_f32 * S, + uint16_t numStages, + float32_t * pCoeffs, + float32_t * pState); + + /** + * @brief Processing function for the floating-point FIR lattice filter. + * @param[in] *S points to an instance of the floating-point FIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_fir_lattice_f32( + const arm_fir_lattice_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Instance structure for the Q15 IIR lattice filter. + */ + typedef struct + { + uint16_t numStages; /**< number of stages in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ + q15_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ + q15_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ + } arm_iir_lattice_instance_q15; + + /** + * @brief Instance structure for the Q31 IIR lattice filter. + */ + typedef struct + { + uint16_t numStages; /**< number of stages in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ + q31_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ + q31_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ + } arm_iir_lattice_instance_q31; + + /** + * @brief Instance structure for the floating-point IIR lattice filter. + */ + typedef struct + { + uint16_t numStages; /**< number of stages in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ + float32_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ + float32_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ + } arm_iir_lattice_instance_f32; + + /** + * @brief Processing function for the floating-point IIR lattice filter. + * @param[in] *S points to an instance of the floating-point IIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_f32( + const arm_iir_lattice_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point IIR lattice filter. + * @param[in] *S points to an instance of the floating-point IIR lattice structure. + * @param[in] numStages number of stages in the filter. + * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. + * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. + * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize-1. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_init_f32( + arm_iir_lattice_instance_f32 * S, + uint16_t numStages, + float32_t *pkCoeffs, + float32_t *pvCoeffs, + float32_t *pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q31 IIR lattice filter. + * @param[in] *S points to an instance of the Q31 IIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_q31( + const arm_iir_lattice_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q31 IIR lattice filter. + * @param[in] *S points to an instance of the Q31 IIR lattice structure. + * @param[in] numStages number of stages in the filter. + * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. + * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. + * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_init_q31( + arm_iir_lattice_instance_q31 * S, + uint16_t numStages, + q31_t *pkCoeffs, + q31_t *pvCoeffs, + q31_t *pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q15 IIR lattice filter. + * @param[in] *S points to an instance of the Q15 IIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_q15( + const arm_iir_lattice_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + +/** + * @brief Initialization function for the Q15 IIR lattice filter. + * @param[in] *S points to an instance of the fixed-point Q15 IIR lattice structure. + * @param[in] numStages number of stages in the filter. + * @param[in] *pkCoeffs points to reflection coefficient buffer. The array is of length numStages. + * @param[in] *pvCoeffs points to ladder coefficient buffer. The array is of length numStages+1. + * @param[in] *pState points to state buffer. The array is of length numStages+blockSize. + * @param[in] blockSize number of samples to process per call. + * @return none. + */ + + void arm_iir_lattice_init_q15( + arm_iir_lattice_instance_q15 * S, + uint16_t numStages, + q15_t *pkCoeffs, + q15_t *pvCoeffs, + q15_t *pState, + uint32_t blockSize); + + /** + * @brief Instance structure for the floating-point LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + float32_t mu; /**< step size that controls filter coefficient updates. */ + } arm_lms_instance_f32; + + /** + * @brief Processing function for floating-point LMS filter. + * @param[in] *S points to an instance of the floating-point LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_f32( + const arm_lms_instance_f32 * S, + float32_t * pSrc, + float32_t * pRef, + float32_t * pOut, + float32_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for floating-point LMS filter. + * @param[in] *S points to an instance of the floating-point LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to the coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_init_f32( + arm_lms_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + float32_t mu, + uint32_t blockSize); + + /** + * @brief Instance structure for the Q15 LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q15_t mu; /**< step size that controls filter coefficient updates. */ + uint32_t postShift; /**< bit shift applied to coefficients. */ + } arm_lms_instance_q15; + + + /** + * @brief Initialization function for the Q15 LMS filter. + * @param[in] *S points to an instance of the Q15 LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to the coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_init_q15( + arm_lms_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + q15_t mu, + uint32_t blockSize, + uint32_t postShift); + + /** + * @brief Processing function for Q15 LMS filter. + * @param[in] *S points to an instance of the Q15 LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_q15( + const arm_lms_instance_q15 * S, + q15_t * pSrc, + q15_t * pRef, + q15_t * pOut, + q15_t * pErr, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q31 LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q31_t mu; /**< step size that controls filter coefficient updates. */ + uint32_t postShift; /**< bit shift applied to coefficients. */ + + } arm_lms_instance_q31; + + /** + * @brief Processing function for Q31 LMS filter. + * @param[in] *S points to an instance of the Q15 LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_q31( + const arm_lms_instance_q31 * S, + q31_t * pSrc, + q31_t * pRef, + q31_t * pOut, + q31_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for Q31 LMS filter. + * @param[in] *S points to an instance of the Q31 LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_init_q31( + arm_lms_instance_q31 * S, + uint16_t numTaps, + q31_t *pCoeffs, + q31_t *pState, + q31_t mu, + uint32_t blockSize, + uint32_t postShift); + + /** + * @brief Instance structure for the floating-point normalized LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + float32_t mu; /**< step size that control filter coefficient updates. */ + float32_t energy; /**< saves previous frame energy. */ + float32_t x0; /**< saves previous input sample. */ + } arm_lms_norm_instance_f32; + + /** + * @brief Processing function for floating-point normalized LMS filter. + * @param[in] *S points to an instance of the floating-point normalized LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_f32( + arm_lms_norm_instance_f32 * S, + float32_t * pSrc, + float32_t * pRef, + float32_t * pOut, + float32_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for floating-point normalized LMS filter. + * @param[in] *S points to an instance of the floating-point LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_init_f32( + arm_lms_norm_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + float32_t mu, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q31 normalized LMS filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q31_t mu; /**< step size that controls filter coefficient updates. */ + uint8_t postShift; /**< bit shift applied to coefficients. */ + q31_t *recipTable; /**< points to the reciprocal initial value table. */ + q31_t energy; /**< saves previous frame energy. */ + q31_t x0; /**< saves previous input sample. */ + } arm_lms_norm_instance_q31; + + /** + * @brief Processing function for Q31 normalized LMS filter. + * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_q31( + arm_lms_norm_instance_q31 * S, + q31_t * pSrc, + q31_t * pRef, + q31_t * pOut, + q31_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for Q31 normalized LMS filter. + * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_norm_init_q31( + arm_lms_norm_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + q31_t mu, + uint32_t blockSize, + uint8_t postShift); + + /** + * @brief Instance structure for the Q15 normalized LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< Number of coefficients in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q15_t mu; /**< step size that controls filter coefficient updates. */ + uint8_t postShift; /**< bit shift applied to coefficients. */ + q15_t *recipTable; /**< Points to the reciprocal initial value table. */ + q15_t energy; /**< saves previous frame energy. */ + q15_t x0; /**< saves previous input sample. */ + } arm_lms_norm_instance_q15; + + /** + * @brief Processing function for Q15 normalized LMS filter. + * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_q15( + arm_lms_norm_instance_q15 * S, + q15_t * pSrc, + q15_t * pRef, + q15_t * pOut, + q15_t * pErr, + uint32_t blockSize); + + + /** + * @brief Initialization function for Q15 normalized LMS filter. + * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_norm_init_q15( + arm_lms_norm_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + q15_t mu, + uint32_t blockSize, + uint8_t postShift); + + /** + * @brief Correlation of floating-point sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_f32( + float32_t * pSrcA, + uint32_t srcALen, + float32_t * pSrcB, + uint32_t srcBLen, + float32_t * pDst); + + /** + * @brief Correlation of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_fast_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Correlation of Q31 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + /** + * @brief Correlation of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_fast_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + /** + * @brief Correlation of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst); + + /** + * @brief Instance structure for the floating-point sparse FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_f32; + + /** + * @brief Instance structure for the Q31 sparse FIR filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_q31; + + /** + * @brief Instance structure for the Q15 sparse FIR filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_q15; + + /** + * @brief Instance structure for the Q7 sparse FIR filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_q7; + + /** + * @brief Processing function for the floating-point sparse FIR filter. + * @param[in] *S points to an instance of the floating-point sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_f32( + arm_fir_sparse_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + float32_t * pScratchIn, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point sparse FIR filter. + * @param[in,out] *S points to an instance of the floating-point sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_f32( + arm_fir_sparse_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 sparse FIR filter. + * @param[in] *S points to an instance of the Q31 sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_q31( + arm_fir_sparse_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + q31_t * pScratchIn, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 sparse FIR filter. + * @param[in,out] *S points to an instance of the Q31 sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_q31( + arm_fir_sparse_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + /** + * @brief Processing function for the Q15 sparse FIR filter. + * @param[in] *S points to an instance of the Q15 sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] *pScratchOut points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_q15( + arm_fir_sparse_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + q15_t * pScratchIn, + q31_t * pScratchOut, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q15 sparse FIR filter. + * @param[in,out] *S points to an instance of the Q15 sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_q15( + arm_fir_sparse_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + /** + * @brief Processing function for the Q7 sparse FIR filter. + * @param[in] *S points to an instance of the Q7 sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] *pScratchOut points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_q7( + arm_fir_sparse_instance_q7 * S, + q7_t * pSrc, + q7_t * pDst, + q7_t * pScratchIn, + q31_t * pScratchOut, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q7 sparse FIR filter. + * @param[in,out] *S points to an instance of the Q7 sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_q7( + arm_fir_sparse_instance_q7 * S, + uint16_t numTaps, + q7_t * pCoeffs, + q7_t * pState, + int32_t *pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + + /* + * @brief Floating-point sin_cos function. + * @param[in] theta input value in degrees + * @param[out] *pSinVal points to the processed sine output. + * @param[out] *pCosVal points to the processed cos output. + * @return none. + */ + + void arm_sin_cos_f32( + float32_t theta, + float32_t *pSinVal, + float32_t *pCcosVal); + + /* + * @brief Q31 sin_cos function. + * @param[in] theta scaled input value in degrees + * @param[out] *pSinVal points to the processed sine output. + * @param[out] *pCosVal points to the processed cosine output. + * @return none. + */ + + void arm_sin_cos_q31( + q31_t theta, + q31_t *pSinVal, + q31_t *pCosVal); + + + /** + * @brief Floating-point complex conjugate. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_conj_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex conjugate. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_conj_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex conjugate. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_conj_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t numSamples); + + + + /** + * @brief Floating-point complex magnitude squared + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_squared_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex magnitude squared + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_squared_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex magnitude squared + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_squared_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t numSamples); + + + /** + * @ingroup groupController + */ + + /** + * @defgroup PID PID Motor Control + * + * A Proportional Integral Derivative (PID) controller is a generic feedback control + * loop mechanism widely used in industrial control systems. + * A PID controller is the most commonly used type of feedback controller. + * + * This set of functions implements (PID) controllers + * for Q15, Q31, and floating-point data types. The functions operate on a single sample + * of data and each call to the function returns a single processed value. + * S points to an instance of the PID control data structure. in + * is the input sample value. The functions return the output value. + * + * \par Algorithm: + *
+   *    y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2]
+   *    A0 = Kp + Ki + Kd
+   *    A1 = (-Kp ) - (2 * Kd )
+   *    A2 = Kd  
+ * + * \par + * where \c Kp is proportional constant, \c Ki is Integral constant and \c Kd is Derivative constant + * + * \par + * \image html PID.gif "Proportional Integral Derivative Controller" + * + * \par + * The PID controller calculates an "error" value as the difference between + * the measured output and the reference input. + * The controller attempts to minimize the error by adjusting the process control inputs. + * The proportional value determines the reaction to the current error, + * the integral value determines the reaction based on the sum of recent errors, + * and the derivative value determines the reaction based on the rate at which the error has been changing. + * + * \par Instance Structure + * The Gains A0, A1, A2 and state variables for a PID controller are stored together in an instance data structure. + * A separate instance structure must be defined for each PID Controller. + * There are separate instance structure declarations for each of the 3 supported data types. + * + * \par Reset Functions + * There is also an associated reset function for each data type which clears the state array. + * + * \par Initialization Functions + * There is also an associated initialization function for each data type. + * The initialization function performs the following operations: + * - Initializes the Gains A0, A1, A2 from Kp,Ki, Kd gains. + * - Zeros out the values in the state buffer. + * + * \par + * Instance structure cannot be placed into a const data section and it is recommended to use the initialization function. + * + * \par Fixed-Point Behavior + * Care must be taken when using the fixed-point versions of the PID Controller functions. + * In particular, the overflow and saturation behavior of the accumulator used in each function must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup PID + * @{ + */ + + /** + * @brief Process function for the floating-point PID Control. + * @param[in,out] *S is an instance of the floating-point PID Control structure + * @param[in] in input sample to process + * @return out processed output sample. + */ + + + static __INLINE float32_t arm_pid_f32( + arm_pid_instance_f32 * S, + float32_t in) + { + float32_t out; + + /* y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2] */ + out = (S->A0 * in) + + (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); + + /* Update state */ + S->state[1] = S->state[0]; + S->state[0] = in; + S->state[2] = out; + + /* return to application */ + return (out); + + } + + /** + * @brief Process function for the Q31 PID Control. + * @param[in,out] *S points to an instance of the Q31 PID Control structure + * @param[in] in input sample to process + * @return out processed output sample. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 64-bit accumulator. + * The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit. + * Thus, if the accumulator result overflows it wraps around rather than clip. + * In order to avoid overflows completely the input signal must be scaled down by 2 bits as there are four additions. + * After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format. + */ + + static __INLINE q31_t arm_pid_q31( + arm_pid_instance_q31 * S, + q31_t in) + { + q63_t acc; + q31_t out; + + /* acc = A0 * x[n] */ + acc = (q63_t) S->A0 * in; + + /* acc += A1 * x[n-1] */ + acc += (q63_t) S->A1 * S->state[0]; + + /* acc += A2 * x[n-2] */ + acc += (q63_t) S->A2 * S->state[1]; + + /* convert output to 1.31 format to add y[n-1] */ + out = (q31_t) (acc >> 31u); + + /* out += y[n-1] */ + out += S->state[2]; + + /* Update state */ + S->state[1] = S->state[0]; + S->state[0] = in; + S->state[2] = out; + + /* return to application */ + return (out); + + } + + /** + * @brief Process function for the Q15 PID Control. + * @param[in,out] *S points to an instance of the Q15 PID Control structure + * @param[in] in input sample to process + * @return out processed output sample. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using a 64-bit internal accumulator. + * Both Gains and state variables are represented in 1.15 format and multiplications yield a 2.30 result. + * The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format. + * There is no risk of internal overflow with this approach and the full precision of intermediate multiplications is preserved. + * After all additions have been performed, the accumulator is truncated to 34.15 format by discarding low 15 bits. + * Lastly, the accumulator is saturated to yield a result in 1.15 format. + */ + + static __INLINE q15_t arm_pid_q15( + arm_pid_instance_q15 * S, + q15_t in) + { + q63_t acc; + q15_t out; + + /* Implementation of PID controller */ + + #ifdef ARM_MATH_CM0 + + /* acc = A0 * x[n] */ + acc = ((q31_t) S->A0 )* in ; + + #else + + /* acc = A0 * x[n] */ + acc = (q31_t) __SMUAD(S->A0, in); + + #endif + + #ifdef ARM_MATH_CM0 + + /* acc += A1 * x[n-1] + A2 * x[n-2] */ + acc += (q31_t) S->A1 * S->state[0] ; + acc += (q31_t) S->A2 * S->state[1] ; + + #else + + /* acc += A1 * x[n-1] + A2 * x[n-2] */ + acc = __SMLALD(S->A1, (q31_t)__SIMD32(S->state), acc); + + #endif + + /* acc += y[n-1] */ + acc += (q31_t) S->state[2] << 15; + + /* saturate the output */ + out = (q15_t) (__SSAT((acc >> 15), 16)); + + /* Update state */ + S->state[1] = S->state[0]; + S->state[0] = in; + S->state[2] = out; + + /* return to application */ + return (out); + + } + + /** + * @} end of PID group + */ + + + /** + * @brief Floating-point matrix inverse. + * @param[in] *src points to the instance of the input floating-point matrix structure. + * @param[out] *dst points to the instance of the output floating-point matrix structure. + * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. + * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. + */ + + arm_status arm_mat_inverse_f32( + const arm_matrix_instance_f32 * src, + arm_matrix_instance_f32 * dst); + + + + /** + * @ingroup groupController + */ + + + /** + * @defgroup clarke Vector Clarke Transform + * Forward Clarke transform converts the instantaneous stator phases into a two-coordinate time invariant vector. + * Generally the Clarke transform uses three-phase currents Ia, Ib and Ic to calculate currents + * in the two-phase orthogonal stator axis Ialpha and Ibeta. + * When Ialpha is superposed with Ia as shown in the figure below + * \image html clarke.gif Stator current space vector and its components in (a,b). + * and Ia + Ib + Ic = 0, in this condition Ialpha and Ibeta + * can be calculated using only Ia and Ib. + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html clarkeFormula.gif + * where Ia and Ib are the instantaneous stator phases and + * pIalpha and pIbeta are the two coordinates of time invariant vector. + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Clarke transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup clarke + * @{ + */ + + /** + * + * @brief Floating-point Clarke transform + * @param[in] Ia input three-phase coordinate a + * @param[in] Ib input three-phase coordinate b + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @return none. + */ + + static __INLINE void arm_clarke_f32( + float32_t Ia, + float32_t Ib, + float32_t * pIalpha, + float32_t * pIbeta) + { + /* Calculate pIalpha using the equation, pIalpha = Ia */ + *pIalpha = Ia; + + /* Calculate pIbeta using the equation, pIbeta = (1/sqrt(3)) * Ia + (2/sqrt(3)) * Ib */ + *pIbeta = ((float32_t) 0.57735026919 * Ia + (float32_t) 1.15470053838 * Ib); + + } + + /** + * @brief Clarke transform for Q31 version + * @param[in] Ia input three-phase coordinate a + * @param[in] Ib input three-phase coordinate b + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the addition, hence there is no risk of overflow. + */ + + static __INLINE void arm_clarke_q31( + q31_t Ia, + q31_t Ib, + q31_t * pIalpha, + q31_t * pIbeta) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + + /* Calculating pIalpha from Ia by equation pIalpha = Ia */ + *pIalpha = Ia; + + /* Intermediate product is calculated by (1/(sqrt(3)) * Ia) */ + product1 = (q31_t) (((q63_t) Ia * 0x24F34E8B) >> 30); + + /* Intermediate product is calculated by (2/sqrt(3) * Ib) */ + product2 = (q31_t) (((q63_t) Ib * 0x49E69D16) >> 30); + + /* pIbeta is calculated by adding the intermediate products */ + *pIbeta = __QADD(product1, product2); + } + + /** + * @} end of clarke group + */ + + /** + * @brief Converts the elements of the Q7 vector to Q31 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_q7_to_q31( + q7_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + + + /** + * @ingroup groupController + */ + + /** + * @defgroup inv_clarke Vector Inverse Clarke Transform + * Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases. + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html clarkeInvFormula.gif + * where pIa and pIb are the instantaneous stator phases and + * Ialpha and Ibeta are the two coordinates of time invariant vector. + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Clarke transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup inv_clarke + * @{ + */ + + /** + * @brief Floating-point Inverse Clarke transform + * @param[in] Ialpha input two-phase orthogonal vector axis alpha + * @param[in] Ibeta input two-phase orthogonal vector axis beta + * @param[out] *pIa points to output three-phase coordinate a + * @param[out] *pIb points to output three-phase coordinate b + * @return none. + */ + + + static __INLINE void arm_inv_clarke_f32( + float32_t Ialpha, + float32_t Ibeta, + float32_t * pIa, + float32_t * pIb) + { + /* Calculating pIa from Ialpha by equation pIa = Ialpha */ + *pIa = Ialpha; + + /* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */ + *pIb = -0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta; + + } + + /** + * @brief Inverse Clarke transform for Q31 version + * @param[in] Ialpha input two-phase orthogonal vector axis alpha + * @param[in] Ibeta input two-phase orthogonal vector axis beta + * @param[out] *pIa points to output three-phase coordinate a + * @param[out] *pIb points to output three-phase coordinate b + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the subtraction, hence there is no risk of overflow. + */ + + static __INLINE void arm_inv_clarke_q31( + q31_t Ialpha, + q31_t Ibeta, + q31_t * pIa, + q31_t * pIb) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + + /* Calculating pIa from Ialpha by equation pIa = Ialpha */ + *pIa = Ialpha; + + /* Intermediate product is calculated by (1/(2*sqrt(3)) * Ia) */ + product1 = (q31_t) (((q63_t) (Ialpha) * (0x40000000)) >> 31); + + /* Intermediate product is calculated by (1/sqrt(3) * pIb) */ + product2 = (q31_t) (((q63_t) (Ibeta) * (0x6ED9EBA1)) >> 31); + + /* pIb is calculated by subtracting the products */ + *pIb = __QSUB(product2, product1); + + } + + /** + * @} end of inv_clarke group + */ + + /** + * @brief Converts the elements of the Q7 vector to Q15 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_q7_to_q15( + q7_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + + /** + * @ingroup groupController + */ + + /** + * @defgroup park Vector Park Transform + * + * Forward Park transform converts the input two-coordinate vector to flux and torque components. + * The Park transform can be used to realize the transformation of the Ialpha and the Ibeta currents + * from the stationary to the moving reference frame and control the spatial relationship between + * the stator vector current and rotor flux vector. + * If we consider the d axis aligned with the rotor flux, the diagram below shows the + * current vector and the relationship from the two reference frames: + * \image html park.gif "Stator current space vector and its component in (a,b) and in the d,q rotating reference frame" + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html parkFormula.gif + * where Ialpha and Ibeta are the stator vector components, + * pId and pIq are rotor vector components and cosVal and sinVal are the + * cosine and sine values of theta (rotor flux position). + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Park transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup park + * @{ + */ + + /** + * @brief Floating-point Park transform + * @param[in] Ialpha input two-phase vector coordinate alpha + * @param[in] Ibeta input two-phase vector coordinate beta + * @param[out] *pId points to output rotor reference frame d + * @param[out] *pIq points to output rotor reference frame q + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + * + * The function implements the forward Park transform. + * + */ + + static __INLINE void arm_park_f32( + float32_t Ialpha, + float32_t Ibeta, + float32_t * pId, + float32_t * pIq, + float32_t sinVal, + float32_t cosVal) + { + /* Calculate pId using the equation, pId = Ialpha * cosVal + Ibeta * sinVal */ + *pId = Ialpha * cosVal + Ibeta * sinVal; + + /* Calculate pIq using the equation, pIq = - Ialpha * sinVal + Ibeta * cosVal */ + *pIq = -Ialpha * sinVal + Ibeta * cosVal; + + } + + /** + * @brief Park transform for Q31 version + * @param[in] Ialpha input two-phase vector coordinate alpha + * @param[in] Ibeta input two-phase vector coordinate beta + * @param[out] *pId points to output rotor reference frame d + * @param[out] *pIq points to output rotor reference frame q + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the addition and subtraction, hence there is no risk of overflow. + */ + + + static __INLINE void arm_park_q31( + q31_t Ialpha, + q31_t Ibeta, + q31_t * pId, + q31_t * pIq, + q31_t sinVal, + q31_t cosVal) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + q31_t product3, product4; /* Temporary variables used to store intermediate results */ + + /* Intermediate product is calculated by (Ialpha * cosVal) */ + product1 = (q31_t) (((q63_t) (Ialpha) * (cosVal)) >> 31); + + /* Intermediate product is calculated by (Ibeta * sinVal) */ + product2 = (q31_t) (((q63_t) (Ibeta) * (sinVal)) >> 31); + + + /* Intermediate product is calculated by (Ialpha * sinVal) */ + product3 = (q31_t) (((q63_t) (Ialpha) * (sinVal)) >> 31); + + /* Intermediate product is calculated by (Ibeta * cosVal) */ + product4 = (q31_t) (((q63_t) (Ibeta) * (cosVal)) >> 31); + + /* Calculate pId by adding the two intermediate products 1 and 2 */ + *pId = __QADD(product1, product2); + + /* Calculate pIq by subtracting the two intermediate products 3 from 4 */ + *pIq = __QSUB(product4, product3); + } + + /** + * @} end of park group + */ + + /** + * @brief Converts the elements of the Q7 vector to floating-point vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q7_to_float( + q7_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @ingroup groupController + */ + + /** + * @defgroup inv_park Vector Inverse Park transform + * Inverse Park transform converts the input flux and torque components to two-coordinate vector. + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html parkInvFormula.gif + * where pIalpha and pIbeta are the stator vector components, + * Id and Iq are rotor vector components and cosVal and sinVal are the + * cosine and sine values of theta (rotor flux position). + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Park transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup inv_park + * @{ + */ + + /** + * @brief Floating-point Inverse Park transform + * @param[in] Id input coordinate of rotor reference frame d + * @param[in] Iq input coordinate of rotor reference frame q + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + */ + + static __INLINE void arm_inv_park_f32( + float32_t Id, + float32_t Iq, + float32_t * pIalpha, + float32_t * pIbeta, + float32_t sinVal, + float32_t cosVal) + { + /* Calculate pIalpha using the equation, pIalpha = Id * cosVal - Iq * sinVal */ + *pIalpha = Id * cosVal - Iq * sinVal; + + /* Calculate pIbeta using the equation, pIbeta = Id * sinVal + Iq * cosVal */ + *pIbeta = Id * sinVal + Iq * cosVal; + + } + + + /** + * @brief Inverse Park transform for Q31 version + * @param[in] Id input coordinate of rotor reference frame d + * @param[in] Iq input coordinate of rotor reference frame q + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the addition, hence there is no risk of overflow. + */ + + + static __INLINE void arm_inv_park_q31( + q31_t Id, + q31_t Iq, + q31_t * pIalpha, + q31_t * pIbeta, + q31_t sinVal, + q31_t cosVal) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + q31_t product3, product4; /* Temporary variables used to store intermediate results */ + + /* Intermediate product is calculated by (Id * cosVal) */ + product1 = (q31_t) (((q63_t) (Id) * (cosVal)) >> 31); + + /* Intermediate product is calculated by (Iq * sinVal) */ + product2 = (q31_t) (((q63_t) (Iq) * (sinVal)) >> 31); + + + /* Intermediate product is calculated by (Id * sinVal) */ + product3 = (q31_t) (((q63_t) (Id) * (sinVal)) >> 31); + + /* Intermediate product is calculated by (Iq * cosVal) */ + product4 = (q31_t) (((q63_t) (Iq) * (cosVal)) >> 31); + + /* Calculate pIalpha by using the two intermediate products 1 and 2 */ + *pIalpha = __QSUB(product1, product2); + + /* Calculate pIbeta by using the two intermediate products 3 and 4 */ + *pIbeta = __QADD(product4, product3); + + } + + /** + * @} end of Inverse park group + */ + + + /** + * @brief Converts the elements of the Q31 vector to floating-point vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q31_to_float( + q31_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @ingroup groupInterpolation + */ + + /** + * @defgroup LinearInterpolate Linear Interpolation + * + * Linear interpolation is a method of curve fitting using linear polynomials. + * Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line + * + * \par + * \image html LinearInterp.gif "Linear interpolation" + * + * \par + * A Linear Interpolate function calculates an output value(y), for the input(x) + * using linear interpolation of the input values x0, x1( nearest input values) and the output values y0 and y1(nearest output values) + * + * \par Algorithm: + *
+   *       y = y0 + (x - x0) * ((y1 - y0)/(x1-x0))
+   *       where x0, x1 are nearest values of input x
+   *             y0, y1 are nearest values to output y
+   * 
+ * + * \par + * This set of functions implements Linear interpolation process + * for Q7, Q15, Q31, and floating-point data types. The functions operate on a single + * sample of data and each call to the function returns a single processed value. + * S points to an instance of the Linear Interpolate function data structure. + * x is the input sample value. The functions returns the output value. + * + * \par + * if x is outside of the table boundary, Linear interpolation returns first value of the table + * if x is below input range and returns last value of table if x is above range. + */ + + /** + * @addtogroup LinearInterpolate + * @{ + */ + + /** + * @brief Process function for the floating-point Linear Interpolation Function. + * @param[in,out] *S is an instance of the floating-point Linear Interpolation structure + * @param[in] x input sample to process + * @return y processed output sample. + * + */ + + static __INLINE float32_t arm_linear_interp_f32( + arm_linear_interp_instance_f32 * S, + float32_t x) + { + + float32_t y; + float32_t x0, x1; /* Nearest input values */ + float32_t y0, y1; /* Nearest output values */ + float32_t xSpacing = S->xSpacing; /* spacing between input values */ + int32_t i; /* Index variable */ + float32_t *pYData = S->pYData; /* pointer to output table */ + + /* Calculation of index */ + i = (x - S->x1) / xSpacing; + + if(i < 0) + { + /* Iniatilize output for below specified range as least output value of table */ + y = pYData[0]; + } + else if(i >= S->nValues) + { + /* Iniatilize output for above specified range as last output value of table */ + y = pYData[S->nValues-1]; + } + else + { + /* Calculation of nearest input values */ + x0 = S->x1 + i * xSpacing; + x1 = S->x1 + (i +1) * xSpacing; + + /* Read of nearest output values */ + y0 = pYData[i]; + y1 = pYData[i + 1]; + + /* Calculation of output */ + y = y0 + (x - x0) * ((y1 - y0)/(x1-x0)); + + } + + /* returns output value */ + return (y); + } + + /** + * + * @brief Process function for the Q31 Linear Interpolation Function. + * @param[in] *pYData pointer to Q31 Linear Interpolation table + * @param[in] x input sample to process + * @param[in] nValues number of table values + * @return y processed output sample. + * + * \par + * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. + * This function can support maximum of table size 2^12. + * + */ + + + static __INLINE q31_t arm_linear_interp_q31(q31_t *pYData, + q31_t x, uint32_t nValues) + { + q31_t y; /* output */ + q31_t y0, y1; /* Nearest output values */ + q31_t fract; /* fractional part */ + int32_t index; /* Index to read nearest output values */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + index = ((x & 0xFFF00000) >> 20); + + if(index >= (nValues - 1)) + { + return(pYData[nValues - 1]); + } + else if(index < 0) + { + return(pYData[0]); + } + else + { + + /* 20 bits for the fractional part */ + /* shift left by 11 to keep fract in 1.31 format */ + fract = (x & 0x000FFFFF) << 11; + + /* Read two nearest output values from the index in 1.31(q31) format */ + y0 = pYData[index]; + y1 = pYData[index + 1u]; + + /* Calculation of y0 * (1-fract) and y is in 2.30 format */ + y = ((q31_t) ((q63_t) y0 * (0x7FFFFFFF - fract) >> 32)); + + /* Calculation of y0 * (1-fract) + y1 *fract and y is in 2.30 format */ + y += ((q31_t) (((q63_t) y1 * fract) >> 32)); + + /* Convert y to 1.31 format */ + return (y << 1u); + + } + + } + + /** + * + * @brief Process function for the Q15 Linear Interpolation Function. + * @param[in] *pYData pointer to Q15 Linear Interpolation table + * @param[in] x input sample to process + * @param[in] nValues number of table values + * @return y processed output sample. + * + * \par + * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. + * This function can support maximum of table size 2^12. + * + */ + + + static __INLINE q15_t arm_linear_interp_q15(q15_t *pYData, q31_t x, uint32_t nValues) + { + q63_t y; /* output */ + q15_t y0, y1; /* Nearest output values */ + q31_t fract; /* fractional part */ + int32_t index; /* Index to read nearest output values */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + index = ((x & 0xFFF00000) >> 20u); + + if(index >= (nValues - 1)) + { + return(pYData[nValues - 1]); + } + else if(index < 0) + { + return(pYData[0]); + } + else + { + /* 20 bits for the fractional part */ + /* fract is in 12.20 format */ + fract = (x & 0x000FFFFF); + + /* Read two nearest output values from the index */ + y0 = pYData[index]; + y1 = pYData[index + 1u]; + + /* Calculation of y0 * (1-fract) and y is in 13.35 format */ + y = ((q63_t) y0 * (0xFFFFF - fract)); + + /* Calculation of (y0 * (1-fract) + y1 * fract) and y is in 13.35 format */ + y += ((q63_t) y1 * (fract)); + + /* convert y to 1.15 format */ + return (y >> 20); + } + + + } + + /** + * + * @brief Process function for the Q7 Linear Interpolation Function. + * @param[in] *pYData pointer to Q7 Linear Interpolation table + * @param[in] x input sample to process + * @param[in] nValues number of table values + * @return y processed output sample. + * + * \par + * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. + * This function can support maximum of table size 2^12. + */ + + + static __INLINE q7_t arm_linear_interp_q7(q7_t *pYData, q31_t x, uint32_t nValues) + { + q31_t y; /* output */ + q7_t y0, y1; /* Nearest output values */ + q31_t fract; /* fractional part */ + int32_t index; /* Index to read nearest output values */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + index = ((x & 0xFFF00000) >> 20u); + + + if(index >= (nValues - 1)) + { + return(pYData[nValues - 1]); + } + else if(index < 0) + { + return(pYData[0]); + } + else + { + + /* 20 bits for the fractional part */ + /* fract is in 12.20 format */ + fract = (x & 0x000FFFFF); + + /* Read two nearest output values from the index and are in 1.7(q7) format */ + y0 = pYData[index]; + y1 = pYData[index + 1u]; + + /* Calculation of y0 * (1-fract ) and y is in 13.27(q27) format */ + y = ((y0 * (0xFFFFF - fract))); + + /* Calculation of y1 * fract + y0 * (1-fract) and y is in 13.27(q27) format */ + y += (y1 * fract); + + /* convert y to 1.7(q7) format */ + return (y >> 20u); + + } + + } + /** + * @} end of LinearInterpolate group + */ + + /** + * @brief Fast approximation to the trigonometric sine function for floating-point data. + * @param[in] x input value in radians. + * @return sin(x). + */ + + float32_t arm_sin_f32( + float32_t x); + + /** + * @brief Fast approximation to the trigonometric sine function for Q31 data. + * @param[in] x Scaled input value in radians. + * @return sin(x). + */ + + q31_t arm_sin_q31( + q31_t x); + + /** + * @brief Fast approximation to the trigonometric sine function for Q15 data. + * @param[in] x Scaled input value in radians. + * @return sin(x). + */ + + q15_t arm_sin_q15( + q15_t x); + + /** + * @brief Fast approximation to the trigonometric cosine function for floating-point data. + * @param[in] x input value in radians. + * @return cos(x). + */ + + float32_t arm_cos_f32( + float32_t x); + + /** + * @brief Fast approximation to the trigonometric cosine function for Q31 data. + * @param[in] x Scaled input value in radians. + * @return cos(x). + */ + + q31_t arm_cos_q31( + q31_t x); + + /** + * @brief Fast approximation to the trigonometric cosine function for Q15 data. + * @param[in] x Scaled input value in radians. + * @return cos(x). + */ + + q15_t arm_cos_q15( + q15_t x); + + + /** + * @ingroup groupFastMath + */ + + + /** + * @defgroup SQRT Square Root + * + * Computes the square root of a number. + * There are separate functions for Q15, Q31, and floating-point data types. + * The square root function is computed using the Newton-Raphson algorithm. + * This is an iterative algorithm of the form: + *
+   *      x1 = x0 - f(x0)/f'(x0)
+   * 
+ * where x1 is the current estimate, + * x0 is the previous estimate and + * f'(x0) is the derivative of f() evaluated at x0. + * For the square root function, the algorithm reduces to: + *
+   *     x0 = in/2                         [initial guess]
+   *     x1 = 1/2 * ( x0 + in / x0)        [each iteration]
+   * 
+ */ + + + /** + * @addtogroup SQRT + * @{ + */ + + /** + * @brief Floating-point square root function. + * @param[in] in input value. + * @param[out] *pOut square root of input value. + * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if + * in is negative value and returns zero output for negative values. + */ + + static __INLINE arm_status arm_sqrt_f32( + float32_t in, float32_t *pOut) + { + if(in > 0) + { + +// #if __FPU_USED + #if (__FPU_USED == 1) && defined ( __CC_ARM ) + *pOut = __sqrtf(in); + #else + *pOut = sqrtf(in); + #endif + + return (ARM_MATH_SUCCESS); + } + else + { + *pOut = 0.0f; + return (ARM_MATH_ARGUMENT_ERROR); + } + + } + + + /** + * @brief Q31 square root function. + * @param[in] in input value. The range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. + * @param[out] *pOut square root of input value. + * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if + * in is negative value and returns zero output for negative values. + */ + arm_status arm_sqrt_q31( + q31_t in, q31_t *pOut); + + /** + * @brief Q15 square root function. + * @param[in] in input value. The range of the input value is [0 +1) or 0x0000 to 0x7FFF. + * @param[out] *pOut square root of input value. + * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if + * in is negative value and returns zero output for negative values. + */ + arm_status arm_sqrt_q15( + q15_t in, q15_t *pOut); + + /** + * @} end of SQRT group + */ + + + + + + + /** + * @brief floating-point Circular write function. + */ + + static __INLINE void arm_circularWrite_f32( + int32_t * circBuffer, + int32_t L, + uint16_t * writeOffset, + int32_t bufferInc, + const int32_t * src, + int32_t srcInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t wOffset; + + /* Copy the value of Index pointer that points + * to the current location where the input samples to be copied */ + wOffset = *writeOffset; + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the input sample to the circular buffer */ + circBuffer[wOffset] = *src; + + /* Update the input pointer */ + src += srcInc; + + /* Circularly update wOffset. Watch out for positive and negative value */ + wOffset += bufferInc; + if(wOffset >= L) + wOffset -= L; + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *writeOffset = wOffset; + } + + + + /** + * @brief floating-point Circular Read function. + */ + static __INLINE void arm_circularRead_f32( + int32_t * circBuffer, + int32_t L, + int32_t * readOffset, + int32_t bufferInc, + int32_t * dst, + int32_t * dst_base, + int32_t dst_length, + int32_t dstInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t rOffset, dst_end; + + /* Copy the value of Index pointer that points + * to the current location from where the input samples to be read */ + rOffset = *readOffset; + dst_end = (int32_t) (dst_base + dst_length); + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the sample from the circular buffer to the destination buffer */ + *dst = circBuffer[rOffset]; + + /* Update the input pointer */ + dst += dstInc; + + if(dst == (int32_t *) dst_end) + { + dst = dst_base; + } + + /* Circularly update rOffset. Watch out for positive and negative value */ + rOffset += bufferInc; + + if(rOffset >= L) + { + rOffset -= L; + } + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *readOffset = rOffset; + } + + /** + * @brief Q15 Circular write function. + */ + + static __INLINE void arm_circularWrite_q15( + q15_t * circBuffer, + int32_t L, + uint16_t * writeOffset, + int32_t bufferInc, + const q15_t * src, + int32_t srcInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t wOffset; + + /* Copy the value of Index pointer that points + * to the current location where the input samples to be copied */ + wOffset = *writeOffset; + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the input sample to the circular buffer */ + circBuffer[wOffset] = *src; + + /* Update the input pointer */ + src += srcInc; + + /* Circularly update wOffset. Watch out for positive and negative value */ + wOffset += bufferInc; + if(wOffset >= L) + wOffset -= L; + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *writeOffset = wOffset; + } + + + + /** + * @brief Q15 Circular Read function. + */ + static __INLINE void arm_circularRead_q15( + q15_t * circBuffer, + int32_t L, + int32_t * readOffset, + int32_t bufferInc, + q15_t * dst, + q15_t * dst_base, + int32_t dst_length, + int32_t dstInc, + uint32_t blockSize) + { + uint32_t i = 0; + int32_t rOffset, dst_end; + + /* Copy the value of Index pointer that points + * to the current location from where the input samples to be read */ + rOffset = *readOffset; + + dst_end = (int32_t) (dst_base + dst_length); + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the sample from the circular buffer to the destination buffer */ + *dst = circBuffer[rOffset]; + + /* Update the input pointer */ + dst += dstInc; + + if(dst == (q15_t *) dst_end) + { + dst = dst_base; + } + + /* Circularly update wOffset. Watch out for positive and negative value */ + rOffset += bufferInc; + + if(rOffset >= L) + { + rOffset -= L; + } + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *readOffset = rOffset; + } + + + /** + * @brief Q7 Circular write function. + */ + + static __INLINE void arm_circularWrite_q7( + q7_t * circBuffer, + int32_t L, + uint16_t * writeOffset, + int32_t bufferInc, + const q7_t * src, + int32_t srcInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t wOffset; + + /* Copy the value of Index pointer that points + * to the current location where the input samples to be copied */ + wOffset = *writeOffset; + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the input sample to the circular buffer */ + circBuffer[wOffset] = *src; + + /* Update the input pointer */ + src += srcInc; + + /* Circularly update wOffset. Watch out for positive and negative value */ + wOffset += bufferInc; + if(wOffset >= L) + wOffset -= L; + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *writeOffset = wOffset; + } + + + + /** + * @brief Q7 Circular Read function. + */ + static __INLINE void arm_circularRead_q7( + q7_t * circBuffer, + int32_t L, + int32_t * readOffset, + int32_t bufferInc, + q7_t * dst, + q7_t * dst_base, + int32_t dst_length, + int32_t dstInc, + uint32_t blockSize) + { + uint32_t i = 0; + int32_t rOffset, dst_end; + + /* Copy the value of Index pointer that points + * to the current location from where the input samples to be read */ + rOffset = *readOffset; + + dst_end = (int32_t) (dst_base + dst_length); + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the sample from the circular buffer to the destination buffer */ + *dst = circBuffer[rOffset]; + + /* Update the input pointer */ + dst += dstInc; + + if(dst == (q7_t *) dst_end) + { + dst = dst_base; + } + + /* Circularly update rOffset. Watch out for positive and negative value */ + rOffset += bufferInc; + + if(rOffset >= L) + { + rOffset -= L; + } + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *readOffset = rOffset; + } + + + /** + * @brief Sum of the squares of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_q31( + q31_t * pSrc, + uint32_t blockSize, + q63_t * pResult); + + /** + * @brief Sum of the squares of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Sum of the squares of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_q15( + q15_t * pSrc, + uint32_t blockSize, + q63_t * pResult); + + /** + * @brief Sum of the squares of the elements of a Q7 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_q7( + q7_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Mean value of a Q7 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_mean_q7( + q7_t * pSrc, + uint32_t blockSize, + q7_t * pResult); + + /** + * @brief Mean value of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + void arm_mean_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult); + + /** + * @brief Mean value of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + void arm_mean_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Mean value of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + void arm_mean_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Variance of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_var_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Variance of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_var_q31( + q31_t * pSrc, + uint32_t blockSize, + q63_t * pResult); + + /** + * @brief Variance of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_var_q15( + q15_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Root Mean Square of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_rms_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Root Mean Square of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_rms_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Root Mean Square of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_rms_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult); + + /** + * @brief Standard deviation of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_std_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Standard deviation of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_std_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Standard deviation of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_std_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult); + + /** + * @brief Floating-point complex magnitude + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex magnitude + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex magnitude + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex dot product + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] numSamples number of complex samples in each vector + * @param[out] *realResult real part of the result returned here + * @param[out] *imagResult imaginary part of the result returned here + * @return none. + */ + + void arm_cmplx_dot_prod_q15( + q15_t * pSrcA, + q15_t * pSrcB, + uint32_t numSamples, + q31_t * realResult, + q31_t * imagResult); + + /** + * @brief Q31 complex dot product + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] numSamples number of complex samples in each vector + * @param[out] *realResult real part of the result returned here + * @param[out] *imagResult imaginary part of the result returned here + * @return none. + */ + + void arm_cmplx_dot_prod_q31( + q31_t * pSrcA, + q31_t * pSrcB, + uint32_t numSamples, + q63_t * realResult, + q63_t * imagResult); + + /** + * @brief Floating-point complex dot product + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] numSamples number of complex samples in each vector + * @param[out] *realResult real part of the result returned here + * @param[out] *imagResult imaginary part of the result returned here + * @return none. + */ + + void arm_cmplx_dot_prod_f32( + float32_t * pSrcA, + float32_t * pSrcB, + uint32_t numSamples, + float32_t * realResult, + float32_t * imagResult); + + /** + * @brief Q15 complex-by-real multiplication + * @param[in] *pSrcCmplx points to the complex input vector + * @param[in] *pSrcReal points to the real input vector + * @param[out] *pCmplxDst points to the complex output vector + * @param[in] numSamples number of samples in each vector + * @return none. + */ + + void arm_cmplx_mult_real_q15( + q15_t * pSrcCmplx, + q15_t * pSrcReal, + q15_t * pCmplxDst, + uint32_t numSamples); + + /** + * @brief Q31 complex-by-real multiplication + * @param[in] *pSrcCmplx points to the complex input vector + * @param[in] *pSrcReal points to the real input vector + * @param[out] *pCmplxDst points to the complex output vector + * @param[in] numSamples number of samples in each vector + * @return none. + */ + + void arm_cmplx_mult_real_q31( + q31_t * pSrcCmplx, + q31_t * pSrcReal, + q31_t * pCmplxDst, + uint32_t numSamples); + + /** + * @brief Floating-point complex-by-real multiplication + * @param[in] *pSrcCmplx points to the complex input vector + * @param[in] *pSrcReal points to the real input vector + * @param[out] *pCmplxDst points to the complex output vector + * @param[in] numSamples number of samples in each vector + * @return none. + */ + + void arm_cmplx_mult_real_f32( + float32_t * pSrcCmplx, + float32_t * pSrcReal, + float32_t * pCmplxDst, + uint32_t numSamples); + + /** + * @brief Minimum value of a Q7 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *result is output pointer + * @param[in] index is the array index of the minimum value in the input buffer. + * @return none. + */ + + void arm_min_q7( + q7_t * pSrc, + uint32_t blockSize, + q7_t * result, + uint32_t * index); + + /** + * @brief Minimum value of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output pointer + * @param[in] *pIndex is the array index of the minimum value in the input buffer. + * @return none. + */ + + void arm_min_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult, + uint32_t * pIndex); + + /** + * @brief Minimum value of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output pointer + * @param[out] *pIndex is the array index of the minimum value in the input buffer. + * @return none. + */ + void arm_min_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult, + uint32_t * pIndex); + + /** + * @brief Minimum value of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output pointer + * @param[out] *pIndex is the array index of the minimum value in the input buffer. + * @return none. + */ + + void arm_min_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a Q7 vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_q7( + q7_t * pSrc, + uint32_t blockSize, + q7_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a Q15 vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a Q31 vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a floating-point vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult, + uint32_t * pIndex); + + /** + * @brief Q15 complex-by-complex multiplication + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_mult_cmplx_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex-by-complex multiplication + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_mult_cmplx_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Floating-point complex-by-complex multiplication + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_mult_cmplx_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Converts the elements of the floating-point vector to Q31 vector. + * @param[in] *pSrc points to the floating-point input vector + * @param[out] *pDst points to the Q31 output vector + * @param[in] blockSize length of the input vector + * @return none. + */ + void arm_float_to_q31( + float32_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the floating-point vector to Q15 vector. + * @param[in] *pSrc points to the floating-point input vector + * @param[out] *pDst points to the Q15 output vector + * @param[in] blockSize length of the input vector + * @return none + */ + void arm_float_to_q15( + float32_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the floating-point vector to Q7 vector. + * @param[in] *pSrc points to the floating-point input vector + * @param[out] *pDst points to the Q7 output vector + * @param[in] blockSize length of the input vector + * @return none + */ + void arm_float_to_q7( + float32_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + + /** + * @brief Converts the elements of the Q31 vector to Q15 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q31_to_q15( + q31_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the Q31 vector to Q7 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q31_to_q7( + q31_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the Q15 vector to floating-point vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q15_to_float( + q15_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Converts the elements of the Q15 vector to Q31 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q15_to_q31( + q15_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @brief Converts the elements of the Q15 vector to Q7 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q15_to_q7( + q15_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + + /** + * @ingroup groupInterpolation + */ + + /** + * @defgroup BilinearInterpolate Bilinear Interpolation + * + * Bilinear interpolation is an extension of linear interpolation applied to a two dimensional grid. + * The underlying function f(x, y) is sampled on a regular grid and the interpolation process + * determines values between the grid points. + * Bilinear interpolation is equivalent to two step linear interpolation, first in the x-dimension and then in the y-dimension. + * Bilinear interpolation is often used in image processing to rescale images. + * The CMSIS DSP library provides bilinear interpolation functions for Q7, Q15, Q31, and floating-point data types. + * + * Algorithm + * \par + * The instance structure used by the bilinear interpolation functions describes a two dimensional data table. + * For floating-point, the instance structure is defined as: + *
+   *   typedef struct
+   *   {
+   *     uint16_t numRows;
+   *     uint16_t numCols;
+   *     float32_t *pData;
+   * } arm_bilinear_interp_instance_f32;
+   * 
+ * + * \par + * where numRows specifies the number of rows in the table; + * numCols specifies the number of columns in the table; + * and pData points to an array of size numRows*numCols values. + * The data table pTable is organized in row order and the supplied data values fall on integer indexes. + * That is, table element (x,y) is located at pTable[x + y*numCols] where x and y are integers. + * + * \par + * Let (x, y) specify the desired interpolation point. Then define: + *
+   *     XF = floor(x)
+   *     YF = floor(y)
+   * 
+ * \par + * The interpolated output point is computed as: + *
+   *  f(x, y) = f(XF, YF) * (1-(x-XF)) * (1-(y-YF))
+   *           + f(XF+1, YF) * (x-XF)*(1-(y-YF))
+   *           + f(XF, YF+1) * (1-(x-XF))*(y-YF)
+   *           + f(XF+1, YF+1) * (x-XF)*(y-YF)
+   * 
+ * Note that the coordinates (x, y) contain integer and fractional components. + * The integer components specify which portion of the table to use while the + * fractional components control the interpolation processor. + * + * \par + * if (x,y) are outside of the table boundary, Bilinear interpolation returns zero output. + */ + + /** + * @addtogroup BilinearInterpolate + * @{ + */ + + /** + * + * @brief Floating-point bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate. + * @param[in] Y interpolation coordinate. + * @return out interpolated value. + */ + + + static __INLINE float32_t arm_bilinear_interp_f32( + const arm_bilinear_interp_instance_f32 * S, + float32_t X, + float32_t Y) + { + float32_t out; + float32_t f00, f01, f10, f11; + float32_t *pData = S->pData; + int32_t xIndex, yIndex, index; + float32_t xdiff, ydiff; + float32_t b1, b2, b3, b4; + + xIndex = (int32_t) X; + yIndex = (int32_t) Y; + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(xIndex < 0 || xIndex > (S->numRows-1) || yIndex < 0 || yIndex > ( S->numCols-1)) + { + return(0); + } + + /* Calculation of index for two nearest points in X-direction */ + index = (xIndex - 1) + (yIndex-1) * S->numCols ; + + + /* Read two nearest points in X-direction */ + f00 = pData[index]; + f01 = pData[index + 1]; + + /* Calculation of index for two nearest points in Y-direction */ + index = (xIndex-1) + (yIndex) * S->numCols; + + + /* Read two nearest points in Y-direction */ + f10 = pData[index]; + f11 = pData[index + 1]; + + /* Calculation of intermediate values */ + b1 = f00; + b2 = f01 - f00; + b3 = f10 - f00; + b4 = f00 - f01 - f10 + f11; + + /* Calculation of fractional part in X */ + xdiff = X - xIndex; + + /* Calculation of fractional part in Y */ + ydiff = Y - yIndex; + + /* Calculation of bi-linear interpolated output */ + out = b1 + b2 * xdiff + b3 * ydiff + b4 * xdiff * ydiff; + + /* return to application */ + return (out); + + } + + /** + * + * @brief Q31 bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate in 12.20 format. + * @param[in] Y interpolation coordinate in 12.20 format. + * @return out interpolated value. + */ + + static __INLINE q31_t arm_bilinear_interp_q31( + arm_bilinear_interp_instance_q31 * S, + q31_t X, + q31_t Y) + { + q31_t out; /* Temporary output */ + q31_t acc = 0; /* output */ + q31_t xfract, yfract; /* X, Y fractional parts */ + q31_t x1, x2, y1, y2; /* Nearest output values */ + int32_t rI, cI; /* Row and column indices */ + q31_t *pYData = S->pData; /* pointer to output table values */ + uint32_t nCols = S->numCols; /* num of rows */ + + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + rI = ((X & 0xFFF00000) >> 20u); + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + cI = ((Y & 0xFFF00000) >> 20u); + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(rI < 0 || rI > (S->numRows-1) || cI < 0 || cI > ( S->numCols-1)) + { + return(0); + } + + /* 20 bits for the fractional part */ + /* shift left xfract by 11 to keep 1.31 format */ + xfract = (X & 0x000FFFFF) << 11u; + + /* Read two nearest output values from the index */ + x1 = pYData[(rI) + nCols * (cI)]; + x2 = pYData[(rI) + nCols * (cI) + 1u]; + + /* 20 bits for the fractional part */ + /* shift left yfract by 11 to keep 1.31 format */ + yfract = (Y & 0x000FFFFF) << 11u; + + /* Read two nearest output values from the index */ + y1 = pYData[(rI) + nCols * (cI + 1)]; + y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; + + /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 3.29(q29) format */ + out = ((q31_t) (((q63_t) x1 * (0x7FFFFFFF - xfract)) >> 32)); + acc = ((q31_t) (((q63_t) out * (0x7FFFFFFF - yfract)) >> 32)); + + /* x2 * (xfract) * (1-yfract) in 3.29(q29) and adding to acc */ + out = ((q31_t) ((q63_t) x2 * (0x7FFFFFFF - yfract) >> 32)); + acc += ((q31_t) ((q63_t) out * (xfract) >> 32)); + + /* y1 * (1 - xfract) * (yfract) in 3.29(q29) and adding to acc */ + out = ((q31_t) ((q63_t) y1 * (0x7FFFFFFF - xfract) >> 32)); + acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); + + /* y2 * (xfract) * (yfract) in 3.29(q29) and adding to acc */ + out = ((q31_t) ((q63_t) y2 * (xfract) >> 32)); + acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); + + /* Convert acc to 1.31(q31) format */ + return (acc << 2u); + + } + + /** + * @brief Q15 bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate in 12.20 format. + * @param[in] Y interpolation coordinate in 12.20 format. + * @return out interpolated value. + */ + + static __INLINE q15_t arm_bilinear_interp_q15( + arm_bilinear_interp_instance_q15 * S, + q31_t X, + q31_t Y) + { + q63_t acc = 0; /* output */ + q31_t out; /* Temporary output */ + q15_t x1, x2, y1, y2; /* Nearest output values */ + q31_t xfract, yfract; /* X, Y fractional parts */ + int32_t rI, cI; /* Row and column indices */ + q15_t *pYData = S->pData; /* pointer to output table values */ + uint32_t nCols = S->numCols; /* num of rows */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + rI = ((X & 0xFFF00000) >> 20); + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + cI = ((Y & 0xFFF00000) >> 20); + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(rI < 0 || rI > (S->numRows-1) || cI < 0 || cI > ( S->numCols-1)) + { + return(0); + } + + /* 20 bits for the fractional part */ + /* xfract should be in 12.20 format */ + xfract = (X & 0x000FFFFF); + + /* Read two nearest output values from the index */ + x1 = pYData[(rI) + nCols * (cI)]; + x2 = pYData[(rI) + nCols * (cI) + 1u]; + + + /* 20 bits for the fractional part */ + /* yfract should be in 12.20 format */ + yfract = (Y & 0x000FFFFF); + + /* Read two nearest output values from the index */ + y1 = pYData[(rI) + nCols * (cI + 1)]; + y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; + + /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 13.51 format */ + + /* x1 is in 1.15(q15), xfract in 12.20 format and out is in 13.35 format */ + /* convert 13.35 to 13.31 by right shifting and out is in 1.31 */ + out = (q31_t) (((q63_t) x1 * (0xFFFFF - xfract)) >> 4u); + acc = ((q63_t) out * (0xFFFFF - yfract)); + + /* x2 * (xfract) * (1-yfract) in 1.51 and adding to acc */ + out = (q31_t) (((q63_t) x2 * (0xFFFFF - yfract)) >> 4u); + acc += ((q63_t) out * (xfract)); + + /* y1 * (1 - xfract) * (yfract) in 1.51 and adding to acc */ + out = (q31_t) (((q63_t) y1 * (0xFFFFF - xfract)) >> 4u); + acc += ((q63_t) out * (yfract)); + + /* y2 * (xfract) * (yfract) in 1.51 and adding to acc */ + out = (q31_t) (((q63_t) y2 * (xfract)) >> 4u); + acc += ((q63_t) out * (yfract)); + + /* acc is in 13.51 format and down shift acc by 36 times */ + /* Convert out to 1.15 format */ + return (acc >> 36); + + } + + /** + * @brief Q7 bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate in 12.20 format. + * @param[in] Y interpolation coordinate in 12.20 format. + * @return out interpolated value. + */ + + static __INLINE q7_t arm_bilinear_interp_q7( + arm_bilinear_interp_instance_q7 * S, + q31_t X, + q31_t Y) + { + q63_t acc = 0; /* output */ + q31_t out; /* Temporary output */ + q31_t xfract, yfract; /* X, Y fractional parts */ + q7_t x1, x2, y1, y2; /* Nearest output values */ + int32_t rI, cI; /* Row and column indices */ + q7_t *pYData = S->pData; /* pointer to output table values */ + uint32_t nCols = S->numCols; /* num of rows */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + rI = ((X & 0xFFF00000) >> 20); + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + cI = ((Y & 0xFFF00000) >> 20); + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(rI < 0 || rI > (S->numRows-1) || cI < 0 || cI > ( S->numCols-1)) + { + return(0); + } + + /* 20 bits for the fractional part */ + /* xfract should be in 12.20 format */ + xfract = (X & 0x000FFFFF); + + /* Read two nearest output values from the index */ + x1 = pYData[(rI) + nCols * (cI)]; + x2 = pYData[(rI) + nCols * (cI) + 1u]; + + + /* 20 bits for the fractional part */ + /* yfract should be in 12.20 format */ + yfract = (Y & 0x000FFFFF); + + /* Read two nearest output values from the index */ + y1 = pYData[(rI) + nCols * (cI + 1)]; + y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; + + /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 16.47 format */ + out = ((x1 * (0xFFFFF - xfract))); + acc = (((q63_t) out * (0xFFFFF - yfract))); + + /* x2 * (xfract) * (1-yfract) in 2.22 and adding to acc */ + out = ((x2 * (0xFFFFF - yfract))); + acc += (((q63_t) out * (xfract))); + + /* y1 * (1 - xfract) * (yfract) in 2.22 and adding to acc */ + out = ((y1 * (0xFFFFF - xfract))); + acc += (((q63_t) out * (yfract))); + + /* y2 * (xfract) * (yfract) in 2.22 and adding to acc */ + out = ((y2 * (yfract))); + acc += (((q63_t) out * (xfract))); + + /* acc in 16.47 format and down shift by 40 to convert to 1.7 format */ + return (acc >> 40); + + } + + /** + * @} end of BilinearInterpolate group + */ + + + + + + +#ifdef __cplusplus +} +#endif + + +#endif /* _ARM_MATH_H */ + + +/** + * + * End of file. + */ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm0.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm0.h new file mode 100644 index 0000000000..9d7a19f9ae --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm0.h @@ -0,0 +1,665 @@ +/**************************************************************************//** + * @file core_cm0.h + * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File + * @version V2.10 + * @date 19. July 2011 + * + * @note + * Copyright (C) 2009-2011 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM0_H_GENERIC +#define __CORE_CM0_H_GENERIC + + +/** \mainpage CMSIS Cortex-M0 + + This documentation describes the CMSIS Cortex-M Core Peripheral Access Layer. + It consists of: + + - Cortex-M Core Register Definitions + - Cortex-M functions + - Cortex-M instructions + + The CMSIS Cortex-M0 Core Peripheral Access Layer contains C and assembly functions that ease + access to the Cortex-M Core + */ + +/** \defgroup CMSIS_MISRA_Exceptions CMSIS MISRA-C:2004 Compliance Exceptions + CMSIS violates following MISRA-C2004 Rules: + + - Violates MISRA 2004 Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + - Violates MISRA 2004 Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + - Violates MISRA 2004 Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \defgroup CMSIS_core_definitions CMSIS Core Definitions + This file defines all structures and symbols for CMSIS core: + - CMSIS version number + - Cortex-M core + - Cortex-M core Revision Number + @{ + */ + +/* CMSIS CM0 definitions */ +#define __CM0_CMSIS_VERSION_MAIN (0x02) /*!< [31:16] CMSIS HAL main version */ +#define __CM0_CMSIS_VERSION_SUB (0x10) /*!< [15:0] CMSIS HAL sub version */ +#define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16) | __CM0_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x00) /*!< Cortex core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + +#endif + +/*!< __FPU_USED to be checked prior to making use of FPU specific registers and functions */ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + /* add preprocessor checks */ +#endif + +#include /*!< standard types definitions */ +#include "core_cmInstr.h" /*!< Core Instruction Access */ +#include "core_cmFunc.h" /*!< Core Function Access */ + +#endif /* __CORE_CM0_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM0_H_DEPENDANT +#define __CORE_CM0_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM0_REV + #define __CM0_REV 0x0000 + #warning "__CM0_REV not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 2 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +#ifdef __cplusplus + #define __I volatile /*!< defines 'read only' permissions */ +#else + #define __I volatile const /*!< defines 'read only' permissions */ +#endif +#define __O volatile /*!< defines 'write only' permissions */ +#define __IO volatile /*!< defines 'read / write' permissions */ + +/*@} end of group CMSIS_core_definitions */ + + + +/******************************************************************************* + * Register Abstraction + ******************************************************************************/ +/** \defgroup CMSIS_core_register CMSIS Core Register + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE CMSIS Core + Type definitions for the Cortex-M Core Registers + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC CMSIS NVIC + Type definitions for the Cortex-M NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[31]; + __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[31]; + __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[31]; + __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[31]; + uint32_t RESERVED4[64]; + __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ +} NVIC_Type; + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB CMSIS SCB + Type definitions for the Cortex-M System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + uint32_t RESERVED0; + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + uint32_t RESERVED1; + __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick CMSIS SysTick + Type definitions for the Cortex-M System Timer Registers + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug CMSIS Core Debug + Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP + and not via processor. Therefore they are not covered by the Cortex-M0 header file. + @{ + */ +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + @{ + */ + +/* Memory mapping of Cortex-M0 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ + + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface CMSIS Core Function Interface + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Register Access Functions +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions CMSIS Core NVIC Functions + @{ + */ + +/* Interrupt Priorities are WORD accessible only under ARMv6M */ +/* The following MACROS handle generation of the register offset and byte masks */ +#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) +#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) +#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) + + +/** \brief Enable External Interrupt + + This function enables a device specific interrupt in the NVIC interrupt controller. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the external interrupt to enable + */ +static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Disable External Interrupt + + This function disables a device specific interrupt in the NVIC interrupt controller. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the external interrupt to disable + */ +static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Get Pending Interrupt + + This function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Number of the interrupt for get pending + \return 0 Interrupt status is not pending + \return 1 Interrupt status is pending + */ +static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); +} + + +/** \brief Set Pending Interrupt + + This function sets the pending bit for the specified interrupt. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the interrupt for set pending + */ +static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Clear Pending Interrupt + + This function clears the pending bit for the specified interrupt. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the interrupt for clear pending + */ +static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Set Interrupt Priority + + This function sets the priority for the specified interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + Note: The priority cannot be set for every core interrupt. + + \param [in] IRQn Number of the interrupt for set priority + \param [in] priority Priority to set + */ +static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } + else { + NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } +} + + +/** \brief Get Interrupt Priority + + This function reads the priority for the specified interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + The returned priority value is automatically aligned to the implemented + priority bits of the microcontroller. + + \param [in] IRQn Number of the interrupt for get priority + \return Interrupt Priority + */ +static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ + else { + return((uint32_t)((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief System Reset + + This function initiate a system reset request to reset the MCU. + */ +static __INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + SCB_AIRCR_SYSRESETREQ_Msk); + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions CMSIS Core SysTick Functions + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + This function initialises the system tick timer and its interrupt and start the system tick timer. + Counter is in free running mode to generate periodical interrupts. + + \param [in] ticks Number of ticks between two interrupts + \return 0 Function succeeded + \return 1 Function failed + */ +static __INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + + +#endif /* __CORE_CM0_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm3.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm3.h new file mode 100644 index 0000000000..1c688181af --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm3.h @@ -0,0 +1,1236 @@ +/**************************************************************************//** + * @file core_cm3.h + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File + * @version V2.10 + * @date 19. July 2011 + * + * @note + * Copyright (C) 2009-2011 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM3_H_GENERIC +#define __CORE_CM3_H_GENERIC + + +/** \mainpage CMSIS Cortex-M3 + + This documentation describes the CMSIS Cortex-M Core Peripheral Access Layer. + It consists of: + + - Cortex-M Core Register Definitions + - Cortex-M functions + - Cortex-M instructions + + The CMSIS Cortex-M3 Core Peripheral Access Layer contains C and assembly functions that ease + access to the Cortex-M Core + */ + +/** \defgroup CMSIS_MISRA_Exceptions CMSIS MISRA-C:2004 Compliance Exceptions + CMSIS violates following MISRA-C2004 Rules: + + - Violates MISRA 2004 Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + - Violates MISRA 2004 Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + - Violates MISRA 2004 Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \defgroup CMSIS_core_definitions CMSIS Core Definitions + This file defines all structures and symbols for CMSIS core: + - CMSIS version number + - Cortex-M core + - Cortex-M core Revision Number + @{ + */ + +/* CMSIS CM3 definitions */ +#define __CM3_CMSIS_VERSION_MAIN (0x02) /*!< [31:16] CMSIS HAL main version */ +#define __CM3_CMSIS_VERSION_SUB (0x10) /*!< [15:0] CMSIS HAL sub version */ +#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | __CM3_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x03) /*!< Cortex core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + +#endif + +/*!< __FPU_USED to be checked prior to making use of FPU specific registers and functions */ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + /* add preprocessor checks */ +#endif + +#include /*!< standard types definitions */ +#include "core_cmInstr.h" /*!< Core Instruction Access */ +#include "core_cmFunc.h" /*!< Core Function Access */ + +#endif /* __CORE_CM3_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM3_H_DEPENDANT +#define __CORE_CM3_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM3_REV + #define __CM3_REV 0x0200 + #warning "__CM3_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +#ifdef __cplusplus + #define __I volatile /*!< defines 'read only' permissions */ +#else + #define __I volatile const /*!< defines 'read only' permissions */ +#endif +#define __O volatile /*!< defines 'write only' permissions */ +#define __IO volatile /*!< defines 'read / write' permissions */ + +/*@} end of group CMSIS_core_definitions */ + + + +/******************************************************************************* + * Register Abstraction + ******************************************************************************/ +/** \defgroup CMSIS_core_register CMSIS Core Register + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE CMSIS Core + Type definitions for the Cortex-M Core Registers + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC CMSIS NVIC + Type definitions for the Cortex-M NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB CMSIS SCB + Type definitions for the Cortex-M System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB CMSIS System Control and ID Register not in the SCB + Type definitions for the Cortex-M System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ +#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +#else + uint32_t RESERVED1[1]; +#endif +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick CMSIS SysTick + Type definitions for the Cortex-M System Timer Registers + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM CMSIS ITM + Type definitions for the Cortex-M Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_TXENA_Pos 3 /*!< ITM TCR: TXENA Position */ +#define ITM_TCR_TXENA_Msk (1UL << ITM_TCR_TXENA_Pos) /*!< ITM TCR: TXENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU CMSIS MPU + Type definitions for the Cortex-M Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug CMSIS Core Debug + Type definitions for the Cortex-M Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + @{ + */ + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface CMSIS Core Function Interface + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions CMSIS Core NVIC Functions + @{ + */ + +/** \brief Set Priority Grouping + + This function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field + */ +static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + This function gets the priority grouping from NVIC Interrupt Controller. + Priority grouping is SCB->AIRCR [10:8] PRIGROUP field. + + \return Priority grouping field + */ +static __INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + This function enables a device specific interrupt in the NVIC interrupt controller. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the external interrupt to enable + */ +static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + This function disables a device specific interrupt in the NVIC interrupt controller. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the external interrupt to disable + */ +static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + This function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Number of the interrupt for get pending + \return 0 Interrupt status is not pending + \return 1 Interrupt status is pending + */ +static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + This function sets the pending bit for the specified interrupt. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the interrupt for set pending + */ +static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + This function clears the pending bit for the specified interrupt. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the interrupt for clear pending + */ +static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + This function reads the active register in NVIC and returns the active bit. + \param [in] IRQn Number of the interrupt for get active + \return 0 Interrupt status is not active + \return 1 Interrupt status is active + */ +static __INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + This function sets the priority for the specified interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + Note: The priority cannot be set for every core interrupt. + + \param [in] IRQn Number of the interrupt for set priority + \param [in] priority Priority to set + */ +static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + This function reads the priority for the specified interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + The returned priority value is automatically aligned to the implemented + priority bits of the microcontroller. + + \param [in] IRQn Number of the interrupt for get priority + \return Interrupt Priority + */ +static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + This function encodes the priority for an interrupt with the given priority group, + preemptive priority value and sub priority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + The returned priority value can be used for NVIC_SetPriority(...) function + + \param [in] PriorityGroup Used priority group + \param [in] PreemptPriority Preemptive priority value (starting from 0) + \param [in] SubPriority Sub priority value (starting from 0) + \return Encoded priority for the interrupt + */ +static __INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + This function decodes an interrupt priority value with the given priority group to + preemptive priority value and sub priority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + The priority value can be retrieved with NVIC_GetPriority(...) function + + \param [in] Priority Priority value + \param [in] PriorityGroup Used priority group + \param [out] pPreemptPriority Preemptive priority value (starting from 0) + \param [out] pSubPriority Sub priority value (starting from 0) + */ +static __INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + This function initiate a system reset request to reset the MCU. + */ +static __INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions CMSIS Core SysTick Functions + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + This function initialises the system tick timer and its interrupt and start the system tick timer. + Counter is in free running mode to generate periodical interrupts. + + \param [in] ticks Number of ticks between two interrupts + \return 0 Function succeeded + \return 1 Function failed + */ +static __INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions CMSIS Core Debug Functions + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< external variable to receive characters */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< value identifying ITM_RxBuffer is ready for next character */ + + +/** \brief ITM Send Character + + This function transmits a character via the ITM channel 0. + It just returns when no debugger is connected that has booked the output. + It is blocking when a debugger is connected, but the previous character send is not transmitted. + + \param [in] ch Character to transmit + \return Character to transmit + */ +static __INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk) && /* Trace enabled */ + (ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + This function inputs a character via external variable ITM_RxBuffer. + It just returns when no debugger is connected that has booked the output. + It is blocking when a debugger is connected, but the previous character send is not transmitted. + + \return Received character + \return -1 No character received + */ +static __INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + This function checks external variable ITM_RxBuffer whether a character is available or not. + It returns '1' if a character is available and '0' if no character is available. + + \return 0 No character available + \return 1 Character available + */ +static __INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM3_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4.h new file mode 100644 index 0000000000..bf022ba67f --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4.h @@ -0,0 +1,1378 @@ +/**************************************************************************//** + * @file core_cm4.h + * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File + * @version V2.10 + * @date 19. July 2011 + * + * @note + * Copyright (C) 2009-2011 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM4_H_GENERIC +#define __CORE_CM4_H_GENERIC + + +/** \mainpage CMSIS Cortex-M4 + + This documentation describes the CMSIS Cortex-M Core Peripheral Access Layer. + It consists of: + + - Cortex-M Core Register Definitions + - Cortex-M functions + - Cortex-M instructions + - Cortex-M SIMD instructions + + The CMSIS Cortex-M4 Core Peripheral Access Layer contains C and assembly functions that ease + access to the Cortex-M Core + */ + +/** \defgroup CMSIS_MISRA_Exceptions CMSIS MISRA-C:2004 Compliance Exceptions + CMSIS violates following MISRA-C2004 Rules: + + - Violates MISRA 2004 Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + - Violates MISRA 2004 Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + - Violates MISRA 2004 Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \defgroup CMSIS_core_definitions CMSIS Core Definitions + This file defines all structures and symbols for CMSIS core: + - CMSIS version number + - Cortex-M core + - Cortex-M core Revision Number + @{ + */ + +/* CMSIS CM4 definitions */ +#define __CM4_CMSIS_VERSION_MAIN (0x02) /*!< [31:16] CMSIS HAL main version */ +#define __CM4_CMSIS_VERSION_SUB (0x10) /*!< [15:0] CMSIS HAL sub version */ +#define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN << 16) | __CM4_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x04) /*!< Cortex core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + +#endif + +/*!< __FPU_USED to be checked prior to making use of FPU specific registers and functions */ +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __TASKING__ ) + /* add preprocessor checks to define __FPU_USED */ + #define __FPU_USED 0 +#endif + +#include /*!< standard types definitions */ +#include /*!< Core Instruction Access */ +#include /*!< Core Function Access */ +#include /*!< Compiler specific SIMD Intrinsics */ + +#endif /* __CORE_CM4_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM4_H_DEPENDANT +#define __CORE_CM4_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM4_REV + #define __CM4_REV 0x0000 + #warning "__CM4_REV not defined in device header file; using default!" + #endif + + #ifndef __FPU_PRESENT + #define __FPU_PRESENT 0 + #warning "__FPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +#ifdef __cplusplus + #define __I volatile /*!< defines 'read only' permissions */ +#else + #define __I volatile const /*!< defines 'read only' permissions */ +#endif +#define __O volatile /*!< defines 'write only' permissions */ +#define __IO volatile /*!< defines 'read / write' permissions */ + +/*@} end of group CMSIS_core_definitions */ + + + +/******************************************************************************* + * Register Abstraction + ******************************************************************************/ +/** \defgroup CMSIS_core_register CMSIS Core Register + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + - Core FPU Register +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE CMSIS Core + Type definitions for the Cortex-M Core Registers + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC CMSIS NVIC + Type definitions for the Cortex-M NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB CMSIS SCB + Type definitions for the Cortex-M System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB CMSIS System Control and ID Register not in the SCB + Type definitions for the Cortex-M System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ +#define SCnSCB_ACTLR_DISOOFP_Pos 9 /*!< ACTLR: DISOOFP Position */ +#define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ + +#define SCnSCB_ACTLR_DISFPCA_Pos 8 /*!< ACTLR: DISFPCA Position */ +#define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick CMSIS SysTick + Type definitions for the Cortex-M System Timer Registers + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM CMSIS ITM + Type definitions for the Cortex-M Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_TXENA_Pos 3 /*!< ITM TCR: TXENA Position */ +#define ITM_TCR_TXENA_Msk (1UL << ITM_TCR_TXENA_Pos) /*!< ITM TCR: TXENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU CMSIS MPU + Type definitions for the Cortex-M Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +#if (__FPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_FPU CMSIS FPU + Type definitions for the Cortex-M Floating Point Unit (FPU) + @{ + */ + +/** \brief Structure type to access the Floating Point Unit (FPU). + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __IO uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ + __IO uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ + __IO uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ + __I uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ + __I uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ +} FPU_Type; + +/* Floating-Point Context Control Register */ +#define FPU_FPCCR_ASPEN_Pos 31 /*!< FPCCR: ASPEN bit Position */ +#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ + +#define FPU_FPCCR_LSPEN_Pos 30 /*!< FPCCR: LSPEN Position */ +#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ + +#define FPU_FPCCR_MONRDY_Pos 8 /*!< FPCCR: MONRDY Position */ +#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ + +#define FPU_FPCCR_BFRDY_Pos 6 /*!< FPCCR: BFRDY Position */ +#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ + +#define FPU_FPCCR_MMRDY_Pos 5 /*!< FPCCR: MMRDY Position */ +#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ + +#define FPU_FPCCR_HFRDY_Pos 4 /*!< FPCCR: HFRDY Position */ +#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ + +#define FPU_FPCCR_THREAD_Pos 3 /*!< FPCCR: processor mode bit Position */ +#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ + +#define FPU_FPCCR_USER_Pos 1 /*!< FPCCR: privilege level bit Position */ +#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ + +#define FPU_FPCCR_LSPACT_Pos 0 /*!< FPCCR: Lazy state preservation active bit Position */ +#define FPU_FPCCR_LSPACT_Msk (1UL << FPU_FPCCR_LSPACT_Pos) /*!< FPCCR: Lazy state preservation active bit Mask */ + +/* Floating-Point Context Address Register */ +#define FPU_FPCAR_ADDRESS_Pos 3 /*!< FPCAR: ADDRESS bit Position */ +#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ + +/* Floating-Point Default Status Control Register */ +#define FPU_FPDSCR_AHP_Pos 26 /*!< FPDSCR: AHP bit Position */ +#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ + +#define FPU_FPDSCR_DN_Pos 25 /*!< FPDSCR: DN bit Position */ +#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ + +#define FPU_FPDSCR_FZ_Pos 24 /*!< FPDSCR: FZ bit Position */ +#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ + +#define FPU_FPDSCR_RMode_Pos 22 /*!< FPDSCR: RMode bit Position */ +#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ + +/* Media and FP Feature Register 0 */ +#define FPU_MVFR0_FP_rounding_modes_Pos 28 /*!< MVFR0: FP rounding modes bits Position */ +#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ + +#define FPU_MVFR0_Short_vectors_Pos 24 /*!< MVFR0: Short vectors bits Position */ +#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ + +#define FPU_MVFR0_Square_root_Pos 20 /*!< MVFR0: Square root bits Position */ +#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ + +#define FPU_MVFR0_Divide_Pos 16 /*!< MVFR0: Divide bits Position */ +#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ + +#define FPU_MVFR0_FP_excep_trapping_Pos 12 /*!< MVFR0: FP exception trapping bits Position */ +#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ + +#define FPU_MVFR0_Double_precision_Pos 8 /*!< MVFR0: Double-precision bits Position */ +#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ + +#define FPU_MVFR0_Single_precision_Pos 4 /*!< MVFR0: Single-precision bits Position */ +#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ + +#define FPU_MVFR0_A_SIMD_registers_Pos 0 /*!< MVFR0: A_SIMD registers bits Position */ +#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL << FPU_MVFR0_A_SIMD_registers_Pos) /*!< MVFR0: A_SIMD registers bits Mask */ + +/* Media and FP Feature Register 1 */ +#define FPU_MVFR1_FP_fused_MAC_Pos 28 /*!< MVFR1: FP fused MAC bits Position */ +#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ + +#define FPU_MVFR1_FP_HPFP_Pos 24 /*!< MVFR1: FP HPFP bits Position */ +#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ + +#define FPU_MVFR1_D_NaN_mode_Pos 4 /*!< MVFR1: D_NaN mode bits Position */ +#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ + +#define FPU_MVFR1_FtZ_mode_Pos 0 /*!< MVFR1: FtZ mode bits Position */ +#define FPU_MVFR1_FtZ_mode_Msk (0xFUL << FPU_MVFR1_FtZ_mode_Pos) /*!< MVFR1: FtZ mode bits Mask */ + +/*@} end of group CMSIS_FPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug CMSIS Core Debug + Type definitions for the Cortex-M Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + @{ + */ + +/* Memory mapping of Cortex-M4 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +#if (__FPU_PRESENT == 1) + #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ + #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface CMSIS Core Function Interface + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions CMSIS Core NVIC Functions + @{ + */ + +/** \brief Set Priority Grouping + + This function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field + */ +static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + This function gets the priority grouping from NVIC Interrupt Controller. + Priority grouping is SCB->AIRCR [10:8] PRIGROUP field. + + \return Priority grouping field + */ +static __INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + This function enables a device specific interrupt in the NVIC interrupt controller. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the external interrupt to enable + */ +static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ +/* NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); enable interrupt */ + NVIC->ISER[(uint32_t)((int32_t)IRQn) >> 5] = (uint32_t)(1 << ((uint32_t)((int32_t)IRQn) & (uint32_t)0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + This function disables a device specific interrupt in the NVIC interrupt controller. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the external interrupt to disable + */ +static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + This function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Number of the interrupt for get pending + \return 0 Interrupt status is not pending + \return 1 Interrupt status is pending + */ +static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + This function sets the pending bit for the specified interrupt. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the interrupt for set pending + */ +static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + This function clears the pending bit for the specified interrupt. + The interrupt number cannot be a negative value. + + \param [in] IRQn Number of the interrupt for clear pending + */ +static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + This function reads the active register in NVIC and returns the active bit. + \param [in] IRQn Number of the interrupt for get active + \return 0 Interrupt status is not active + \return 1 Interrupt status is active + */ +static __INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + This function sets the priority for the specified interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + Note: The priority cannot be set for every core interrupt. + + \param [in] IRQn Number of the interrupt for set priority + \param [in] priority Priority to set + */ +static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + This function reads the priority for the specified interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + The returned priority value is automatically aligned to the implemented + priority bits of the microcontroller. + + \param [in] IRQn Number of the interrupt for get priority + \return Interrupt Priority + */ +static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + This function encodes the priority for an interrupt with the given priority group, + preemptive priority value and sub priority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + The returned priority value can be used for NVIC_SetPriority(...) function + + \param [in] PriorityGroup Used priority group + \param [in] PreemptPriority Preemptive priority value (starting from 0) + \param [in] SubPriority Sub priority value (starting from 0) + \return Encoded priority for the interrupt + */ +static __INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + This function decodes an interrupt priority value with the given priority group to + preemptive priority value and sub priority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + The priority value can be retrieved with NVIC_GetPriority(...) function + + \param [in] Priority Priority value + \param [in] PriorityGroup Used priority group + \param [out] pPreemptPriority Preemptive priority value (starting from 0) + \param [out] pSubPriority Sub priority value (starting from 0) + */ +static __INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + This function initiate a system reset request to reset the MCU. + */ +static __INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions CMSIS Core SysTick Functions + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + This function initialises the system tick timer and its interrupt and start the system tick timer. + Counter is in free running mode to generate periodical interrupts. + + \param [in] ticks Number of ticks between two interrupts + \return 0 Function succeeded + \return 1 Function failed + */ +static __INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions CMSIS Core Debug Functions + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< external variable to receive characters */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< value identifying ITM_RxBuffer is ready for next character */ + + +/** \brief ITM Send Character + + This function transmits a character via the ITM channel 0. + It just returns when no debugger is connected that has booked the output. + It is blocking when a debugger is connected, but the previous character send is not transmitted. + + \param [in] ch Character to transmit + \return Character to transmit + */ +static __INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk) && /* Trace enabled */ + (ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + This function inputs a character via external variable ITM_RxBuffer. + It just returns when no debugger is connected that has booked the output. + It is blocking when a debugger is connected, but the previous character send is not transmitted. + + \return Received character + \return -1 No character received + */ +static __INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + This function checks external variable ITM_RxBuffer whether a character is available or not. + It returns '1' if a character is available and '0' if no character is available. + + \return 0 No character available + \return 1 Character available + */ +static __INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM4_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4_simd.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4_simd.h new file mode 100644 index 0000000000..e7b6765225 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cm4_simd.h @@ -0,0 +1,701 @@ +/**************************************************************************//** + * @file core_cm4_simd.h + * @brief CMSIS Cortex-M4 SIMD Header File + * @version V2.10 + * @date 19. July 2011 + * + * @note + * Copyright (C) 2010-2011 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM4_SIMD_H +#define __CORE_CM4_SIMD_H + + +/******************************************************************************* + * Hardware Abstraction Layer + ******************************************************************************/ + + +/* ################### Compiler specific Intrinsics ########################### */ +/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics + Access to dedicated SIMD instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +/*------ CM4 SOMD Intrinsics -----------------------------------------------------*/ +#define __SADD8 __sadd8 +#define __QADD8 __qadd8 +#define __SHADD8 __shadd8 +#define __UADD8 __uadd8 +#define __UQADD8 __uqadd8 +#define __UHADD8 __uhadd8 +#define __SSUB8 __ssub8 +#define __QSUB8 __qsub8 +#define __SHSUB8 __shsub8 +#define __USUB8 __usub8 +#define __UQSUB8 __uqsub8 +#define __UHSUB8 __uhsub8 +#define __SADD16 __sadd16 +#define __QADD16 __qadd16 +#define __SHADD16 __shadd16 +#define __UADD16 __uadd16 +#define __UQADD16 __uqadd16 +#define __UHADD16 __uhadd16 +#define __SSUB16 __ssub16 +#define __QSUB16 __qsub16 +#define __SHSUB16 __shsub16 +#define __USUB16 __usub16 +#define __UQSUB16 __uqsub16 +#define __UHSUB16 __uhsub16 +#define __SASX __sasx +#define __QASX __qasx +#define __SHASX __shasx +#define __UASX __uasx +#define __UQASX __uqasx +#define __UHASX __uhasx +#define __SSAX __ssax +#define __QSAX __qsax +#define __SHSAX __shsax +#define __USAX __usax +#define __UQSAX __uqsax +#define __UHSAX __uhsax +#define __USAD8 __usad8 +#define __USADA8 __usada8 +#define __SSAT16 __ssat16 +#define __USAT16 __usat16 +#define __UXTB16 __uxtb16 +#define __UXTAB16 __uxtab16 +#define __SXTB16 __sxtb16 +#define __SXTAB16 __sxtab16 +#define __SMUAD __smuad +#define __SMUADX __smuadx +#define __SMLAD __smlad +#define __SMLADX __smladx +#define __SMLALD __smlald +#define __SMLALDX __smlaldx +#define __SMUSD __smusd +#define __SMUSDX __smusdx +#define __SMLSD __smlsd +#define __SMLSDX __smlsdx +#define __SMLSLD __smlsld +#define __SMLSLDX __smlsldx +#define __SEL __sel +#define __QADD __qadd +#define __QSUB __qsub + +#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ + ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) + +#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ + ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) + + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + +/*------ CM4 SIMDDSP Intrinsics -----------------------------------------------------*/ +/* intrinsic __SADD8 see intrinsics.h */ +/* intrinsic __QADD8 see intrinsics.h */ +/* intrinsic __SHADD8 see intrinsics.h */ +/* intrinsic __UADD8 see intrinsics.h */ +/* intrinsic __UQADD8 see intrinsics.h */ +/* intrinsic __UHADD8 see intrinsics.h */ +/* intrinsic __SSUB8 see intrinsics.h */ +/* intrinsic __QSUB8 see intrinsics.h */ +/* intrinsic __SHSUB8 see intrinsics.h */ +/* intrinsic __USUB8 see intrinsics.h */ +/* intrinsic __UQSUB8 see intrinsics.h */ +/* intrinsic __UHSUB8 see intrinsics.h */ +/* intrinsic __SADD16 see intrinsics.h */ +/* intrinsic __QADD16 see intrinsics.h */ +/* intrinsic __SHADD16 see intrinsics.h */ +/* intrinsic __UADD16 see intrinsics.h */ +/* intrinsic __UQADD16 see intrinsics.h */ +/* intrinsic __UHADD16 see intrinsics.h */ +/* intrinsic __SSUB16 see intrinsics.h */ +/* intrinsic __QSUB16 see intrinsics.h */ +/* intrinsic __SHSUB16 see intrinsics.h */ +/* intrinsic __USUB16 see intrinsics.h */ +/* intrinsic __UQSUB16 see intrinsics.h */ +/* intrinsic __UHSUB16 see intrinsics.h */ +/* intrinsic __SASX see intrinsics.h */ +/* intrinsic __QASX see intrinsics.h */ +/* intrinsic __SHASX see intrinsics.h */ +/* intrinsic __UASX see intrinsics.h */ +/* intrinsic __UQASX see intrinsics.h */ +/* intrinsic __UHASX see intrinsics.h */ +/* intrinsic __SSAX see intrinsics.h */ +/* intrinsic __QSAX see intrinsics.h */ +/* intrinsic __SHSAX see intrinsics.h */ +/* intrinsic __USAX see intrinsics.h */ +/* intrinsic __UQSAX see intrinsics.h */ +/* intrinsic __UHSAX see intrinsics.h */ +/* intrinsic __USAD8 see intrinsics.h */ +/* intrinsic __USADA8 see intrinsics.h */ +/* intrinsic __SSAT16 see intrinsics.h */ +/* intrinsic __USAT16 see intrinsics.h */ +/* intrinsic __UXTB16 see intrinsics.h */ +/* intrinsic __SXTB16 see intrinsics.h */ +/* intrinsic __UXTAB16 see intrinsics.h */ +/* intrinsic __SXTAB16 see intrinsics.h */ +/* intrinsic __SMUAD see intrinsics.h */ +/* intrinsic __SMUADX see intrinsics.h */ +/* intrinsic __SMLAD see intrinsics.h */ +/* intrinsic __SMLADX see intrinsics.h */ +/* intrinsic __SMLALD see intrinsics.h */ +/* intrinsic __SMLALDX see intrinsics.h */ +/* intrinsic __SMUSD see intrinsics.h */ +/* intrinsic __SMUSDX see intrinsics.h */ +/* intrinsic __SMLSD see intrinsics.h */ +/* intrinsic __SMLSDX see intrinsics.h */ +/* intrinsic __SMLSLD see intrinsics.h */ +/* intrinsic __SMLSLDX see intrinsics.h */ +/* intrinsic __SEL see intrinsics.h */ +/* intrinsic __QADD see intrinsics.h */ +/* intrinsic __QSUB see intrinsics.h */ +/* intrinsic __PKHBT see intrinsics.h */ +/* intrinsic __PKHTB see intrinsics.h */ + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __USAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +#define __SSAT16(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + +#define __USAT16(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UXTB16(uint32_t op1) +{ + uint32_t result; + + __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SXTB16(uint32_t op1) +{ + uint32_t result; + + __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +#define __SMLALD(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +#define __SMLALDX(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +#define __SMLSLD(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +#define __SMLSLDX(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __SEL (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QADD(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSUB(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +#define __PKHBT(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ + __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ + __RES; \ + }) + +#define __PKHTB(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ + if (ARG3 == 0) \ + __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ + else \ + __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ + __RES; \ + }) + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +/* not yet supported */ +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + +#endif + +/*@} end of group CMSIS_SIMD_intrinsics */ + + +#endif /* __CORE_CM4_SIMD_H */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmFunc.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmFunc.h new file mode 100644 index 0000000000..88819f9dd1 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmFunc.h @@ -0,0 +1,609 @@ +/**************************************************************************//** + * @file core_cmFunc.h + * @brief CMSIS Cortex-M Core Function Access Header File + * @version V2.10 + * @date 26. July 2011 + * + * @note + * Copyright (C) 2009-2011 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMFUNC_H +#define __CORE_CMFUNC_H + + +/* ########################### Core Function Access ########################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions + @{ + */ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + +/* intrinsic void __enable_irq(); */ +/* intrinsic void __disable_irq(); */ + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +static __INLINE uint32_t __get_CONTROL(void) +{ + register uint32_t __regControl __ASM("control"); + return(__regControl); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +static __INLINE void __set_CONTROL(uint32_t control) +{ + register uint32_t __regControl __ASM("control"); + __regControl = control; +} + + +/** \brief Get ISPR Register + + This function returns the content of the ISPR Register. + + \return ISPR Register value + */ +static __INLINE uint32_t __get_IPSR(void) +{ + register uint32_t __regIPSR __ASM("ipsr"); + return(__regIPSR); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +static __INLINE uint32_t __get_APSR(void) +{ + register uint32_t __regAPSR __ASM("apsr"); + return(__regAPSR); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +static __INLINE uint32_t __get_xPSR(void) +{ + register uint32_t __regXPSR __ASM("xpsr"); + return(__regXPSR); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +static __INLINE uint32_t __get_PSP(void) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + return(__regProcessStackPointer); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +static __INLINE void __set_PSP(uint32_t topOfProcStack) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + __regProcessStackPointer = topOfProcStack; +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +static __INLINE uint32_t __get_MSP(void) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + return(__regMainStackPointer); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +static __INLINE void __set_MSP(uint32_t topOfMainStack) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + __regMainStackPointer = topOfMainStack; +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +static __INLINE uint32_t __get_PRIMASK(void) +{ + register uint32_t __regPriMask __ASM("primask"); + return(__regPriMask); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +static __INLINE void __set_PRIMASK(uint32_t priMask) +{ + register uint32_t __regPriMask __ASM("primask"); + __regPriMask = (priMask); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __enable_fault_irq __enable_fiq + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __disable_fault_irq __disable_fiq + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +static __INLINE uint32_t __get_BASEPRI(void) +{ + register uint32_t __regBasePri __ASM("basepri"); + return(__regBasePri); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +static __INLINE void __set_BASEPRI(uint32_t basePri) +{ + register uint32_t __regBasePri __ASM("basepri"); + __regBasePri = (basePri & 0xff); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +static __INLINE uint32_t __get_FAULTMASK(void) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + return(__regFaultMask); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +static __INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + __regFaultMask = (faultMask & (uint32_t)1); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +static __INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + return(__regfpscr); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +static __INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + __regfpscr = (fpscr); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief Enable IRQ Interrupts + + This function enables IRQ interrupts by clearing the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) static __INLINE void __enable_irq(void) +{ + __ASM volatile ("cpsie i"); +} + + +/** \brief Disable IRQ Interrupts + + This function disables IRQ interrupts by setting the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) static __INLINE void __disable_irq(void) +{ + __ASM volatile ("cpsid i"); +} + + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_CONTROL(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, control" : "=r" (result) ); + return(result); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_CONTROL(uint32_t control) +{ + __ASM volatile ("MSR control, %0" : : "r" (control) ); +} + + +/** \brief Get ISPR Register + + This function returns the content of the ISPR Register. + + \return ISPR Register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_IPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_APSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, apsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_xPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_PSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_PSP(uint32_t topOfProcStack) +{ + __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) ); +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_MSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_MSP(uint32_t topOfMainStack) +{ + __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) ); +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_PRIMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, primask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_PRIMASK(uint32_t priMask) +{ + __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) static __INLINE void __enable_fault_irq(void) +{ + __ASM volatile ("cpsie f"); +} + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) static __INLINE void __disable_fault_irq(void) +{ + __ASM volatile ("cpsid f"); +} + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_BASEPRI(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); + return(result); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_BASEPRI(uint32_t value) +{ + __ASM volatile ("MSR basepri, %0" : : "r" (value) ); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_FAULTMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + uint32_t result; + + __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); + return(result); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__attribute__( ( always_inline ) ) static __INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) ); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@} end of CMSIS_Core_RegAccFunctions */ + + +#endif /* __CORE_CMFUNC_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmInstr.h b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmInstr.h new file mode 100644 index 0000000000..78d2ef80ba --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/Include/core_cmInstr.h @@ -0,0 +1,585 @@ +/**************************************************************************//** + * @file core_cmInstr.h + * @brief CMSIS Cortex-M Core Instruction Access Header File + * @version V2.10 + * @date 19. July 2011 + * + * @note + * Copyright (C) 2009-2011 ARM Limited. All rights reserved. + * + * @par + * ARM Limited (ARM) is supplying this software for use with Cortex-M + * processor based microcontrollers. This file can be freely distributed + * within development tools that are supporting such ARM based processors. + * + * @par + * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED + * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. + * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR + * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. + * + ******************************************************************************/ + +#ifndef __CORE_CMINSTR_H +#define __CORE_CMINSTR_H + + +/* ########################## Core Instruction Access ######################### */ +/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface + Access to dedicated instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +#define __NOP __nop + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +#define __WFI __wfi + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +#define __WFE __wfe + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +#define __SEV __sev + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +#define __ISB() __isb(0xF) + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +#define __DSB() __dsb(0xF) + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +#define __DMB() __dmb(0xF) + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __REV __rev + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +static __INLINE __ASM uint32_t __REV16(uint32_t value) +{ + rev16 r0, r0 + bx lr +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +static __INLINE __ASM int32_t __REVSH(int32_t value) +{ + revsh r0, r0 + bx lr +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __RBIT __rbit + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXB(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXH(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXW(value, ptr) __strex(value, ptr) + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +#define __CLREX __clrex + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT __ssat + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT __usat + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +#define __CLZ __clz + +#endif /* (__CORTEX_M >= 0x03) */ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +__attribute__( ( always_inline ) ) static __INLINE void __NOP(void) +{ + __ASM volatile ("nop"); +} + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) static __INLINE void __WFI(void) +{ + __ASM volatile ("wfi"); +} + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) static __INLINE void __WFE(void) +{ + __ASM volatile ("wfe"); +} + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +__attribute__( ( always_inline ) ) static __INLINE void __SEV(void) +{ + __ASM volatile ("sev"); +} + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +__attribute__( ( always_inline ) ) static __INLINE void __ISB(void) +{ + __ASM volatile ("isb"); +} + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +__attribute__( ( always_inline ) ) static __INLINE void __DSB(void) +{ + __ASM volatile ("dsb"); +} + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +__attribute__( ( always_inline ) ) static __INLINE void __DMB(void) +{ + __ASM volatile ("dmb"); +} + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __REV(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __REV16(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) static __INLINE int32_t __REVSH(int32_t value) +{ + uint32_t result; + + __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __RBIT(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +__attribute__( ( always_inline ) ) static __INLINE uint8_t __LDREXB(volatile uint8_t *addr) +{ + uint8_t result; + + __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +__attribute__( ( always_inline ) ) static __INLINE uint16_t __LDREXH(volatile uint16_t *addr) +{ + uint16_t result; + + __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __LDREXW(volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); + return(result); +} + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexb %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexh %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) static __INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("strex %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); + return(result); +} + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +__attribute__( ( always_inline ) ) static __INLINE void __CLREX(void) +{ + __ASM volatile ("clrex"); +} + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +__attribute__( ( always_inline ) ) static __INLINE uint8_t __CLZ(uint32_t value) +{ + uint8_t result; + + __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all intrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ + +#endif /* __CORE_CMINSTR_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript new file mode 100644 index 0000000000..6ab907fca5 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript @@ -0,0 +1,19 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = Glob('DeviceSupport/*.c') + +CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport'] + +# add for startup script +if rtconfig.CROSS_TOOL == 'keil': + src += ['DeviceSupport/arm/startup_mb9bf56xr.s'] + +if rtconfig.CROSS_TOOL == 'gcc': + src += ['DeviceSupport/gcc/startup_mb9bf56xr.S'] + +group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf568r/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/SConscript new file mode 100644 index 0000000000..fe0ae941ae --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/SConscript @@ -0,0 +1,14 @@ +# for module compiling +import os +Import('RTT_ROOT') + +cwd = str(Dir('#')) +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/fujitsu/mb9x/mb9bf568r/SConstruct b/bsp/fujitsu/mb9x/mb9bf568r/SConstruct new file mode 100644 index 0000000000..1725b1f69c --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/SConstruct @@ -0,0 +1,36 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread-fm4.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +if rtconfig.PLATFORM == 'iar': + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/fujitsu/mb9x/mb9bf568r/applications/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/applications/SConscript new file mode 100644 index 0000000000..01eb940dfb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/applications/SConscript @@ -0,0 +1,11 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'applications') +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf568r/applications/application.c b/bsp/fujitsu/mb9x/mb9bf568r/applications/application.c new file mode 100644 index 0000000000..12199175b2 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/applications/application.c @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-05-24 Bernard the first version + */ + +/** + * @addtogroup FM4 + */ +/*@{*/ + +#include +#include "board.h" + +void rt_init_thread_entry(void *parameter) +{ +#ifdef RT_USING_COMPONENTS_INIT + /* initialization RT-Thread Components */ + rt_components_init(); +#endif + + + //finsh_system_init(); +#if !defined(RT_USING_POSIX_STDIO) && defined(RT_USING_DEVICE) + finsh_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + + /**< init led device */ + { + extern void rt_led_hw_init(void); + rt_led_hw_init(); + } + +} + +int rt_application_init() +{ + rt_thread_t tid; + + tid = rt_thread_create("init", + rt_init_thread_entry, RT_NULL, + 2048, 8, 20); + if (tid != RT_NULL) rt_thread_startup(tid); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/applications/startup.c b/bsp/fujitsu/mb9x/mb9bf568r/applications/startup.c new file mode 100644 index 0000000000..263bd20a28 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/applications/startup.c @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" + +/** + * @addtogroup FM4 + */ + +/*@{*/ + +extern int rt_application_init(void); + +#ifdef __CC_ARM +extern int Image$$RW_IRAM1$$ZI$$Limit; +#elif __ICCARM__ +#pragma section="HEAP" +#else +extern int __bss_end; +#endif + +/** + * This function will startup RT-Thread RTOS. + */ +void rtthread_startup(void) +{ + /* init board */ + rt_hw_board_init(); + + /* show version */ + rt_show_version(); + + /* init timer system */ + rt_system_timer_init(); + +#ifdef RT_USING_HEAP +#ifdef __CC_ARM + rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM4_SRAM_END); +#elif __ICCARM__ + rt_system_heap_init(__segment_end("HEAP"), (void*)FM4_SRAM_END); +#else + /* init memory system */ + rt_system_heap_init((void*)&__bss_end, (void*)FM4_SRAM_END); +#endif +#endif + + /* init scheduler system */ + rt_system_scheduler_init(); + + /* init timer thread */ + rt_system_timer_thread_init(); + + /* init application */ + rt_application_init(); + + /* init idle thread */ + rt_thread_idle_init(); + + /* start scheduler */ + rt_system_scheduler_start(); + + /* never reach here */ + return ; +} + +int main(void) +{ + /* disable interrupt first */ + rt_hw_interrupt_disable(); + + /* startup RT-Thread RTOS */ + rtthread_startup(); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript new file mode 100644 index 0000000000..5bbef48785 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript @@ -0,0 +1,11 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'drivers') +src = Glob('*.c') +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/board.c b/bsp/fujitsu/mb9x/mb9bf568r/drivers/board.c new file mode 100644 index 0000000000..bd44ad80b1 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/board.c @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" + +#include "serial.h" + +/** + * @addtogroup FM4 + */ + +/*@{*/ + +/** + * This is the timer interrupt service routine. + * + */ +void SysTick_Handler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + + rt_tick_increase(); + + /* leave interrupt */ + rt_interrupt_leave(); +} + +/** + * This fucntion returns milliseconds since system passed + */ +rt_uint32_t rt_hw_tick_get_millisecond(void) +{ + rt_tick_t tick; + rt_uint32_t value; + +#define TICK_MS (1000/RT_TICK_PER_SECOND) + + tick = rt_tick_get(); + value = tick * TICK_MS + (SysTick->LOAD - SysTick->VAL) * TICK_MS / SysTick->LOAD; + + return value; +} + +/** + * This fucntion returns microseconds since system passed + */ +rt_uint32_t rt_hw_tick_get_microsecond(void) +{ + rt_tick_t tick; + rt_uint32_t value; + +#define TICK_US (1000000/RT_TICK_PER_SECOND) + + tick = rt_tick_get(); + value = tick * TICK_US + (SysTick->LOAD - SysTick->VAL) * TICK_US / SysTick->LOAD; + + return value; +} + +/** +* This function will initial FM3 Easy Kit board. + */ +void rt_hw_board_init(void) +{ + /* disable all analog input. */ + FM4_GPIO->ADE = 0x00u; + + /* init systick */ + SysTick_Config(SystemCoreClock/RT_TICK_PER_SECOND); + + /* initialize UART device */ + rt_hw_serial_init(); + /* set console as UART device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); + +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/board.h b/bsp/fujitsu/mb9x/mb9bf568r/drivers/board.h new file mode 100644 index 0000000000..ed258f82a0 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/board.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2009-09-22 Bernard add board.h to this bsp + * 2011-03-04 lgnq add board.h to FM3 bsp + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + + +#include +#include +#include + +#include "serial.h" + + +#define FM4_SRAM_SIZE 128 +#define FM4_SRAM_END (0x1FFF0000 + FM4_SRAM_SIZE * 1024) + +/* RT_USING_UART */ +#define RT_USING_UART0 + +#define RT_UART_RX_BUFFER_SIZE 128 + +void rt_hw_board_init(void); +rt_uint32_t rt_hw_tick_get_millisecond(void); +rt_uint32_t rt_hw_tick_get_microsecond(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c b/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c new file mode 100644 index 0000000000..db80b56fd0 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c @@ -0,0 +1,163 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ +#include +#include "board.h" + +#define RT_DEVICE_CTRL_RTC_GET_COUNT 0x81 /**< get count */ + +#define LED_NUM 3 +struct fm4_gpio_ctrl +{ + uint32_t led_num; + volatile uint32_t * PDOR; + volatile uint32_t * PDIR; +}; + +struct fm4_led +{ + /* inherit from rt_device */ + struct rt_device parent; + + struct fm4_gpio_ctrl fm4_gpio_ctrl[LED_NUM]; +}; + +static struct fm4_led fm4_led; + +static rt_err_t rt_led_init (rt_device_t dev) +{ + uint32_t i; + + /* led0-1-2 : P27-P38-PE0 */ + FM4_GPIO->PFR2 &= ~((1<<7) ); /* set P27 fuction is GPIO. */ + FM4_GPIO->DDR2 |= (1<<7) ; /* set P27 output. */ + FM4_GPIO->PFR3 &= ~((1<<8) ); /* set P38 fuction is GPIO. */ + FM4_GPIO->DDR3 |= (1<<8) ; /* set P38 output. */ + FM4_GPIO->PFRE &= ~((1<<0) ); /* set PE0 fuction is GPIO. */ + FM4_GPIO->DDRE |= (1<<0) ; /* set PE0 output. */ + + /* LED0 */ + i = 0; + fm4_led.fm4_gpio_ctrl[i].led_num = 7; + fm4_led.fm4_gpio_ctrl[i].PDOR = &FM4_GPIO->PDOR2; + fm4_led.fm4_gpio_ctrl[i].PDIR = &FM4_GPIO->PDIR2; + + /* LED1 */ + i++; + fm4_led.fm4_gpio_ctrl[i].led_num = 8; + fm4_led.fm4_gpio_ctrl[i].PDOR = &FM4_GPIO->PDOR3; + fm4_led.fm4_gpio_ctrl[i].PDIR = &FM4_GPIO->PDIR3; + + /* LED2 */ + i++; + fm4_led.fm4_gpio_ctrl[i].led_num = 0; + fm4_led.fm4_gpio_ctrl[i].PDOR = &FM4_GPIO->PDORE; + fm4_led.fm4_gpio_ctrl[i].PDIR = &FM4_GPIO->PDIRE; + + return RT_EOK; +} + +static rt_err_t rt_led_open(rt_device_t dev, rt_uint16_t oflag) +{ + return RT_EOK; +} + +static rt_err_t rt_led_close(rt_device_t dev) +{ + return RT_EOK; +} + +static rt_size_t rt_led_read (rt_device_t dev, rt_off_t pos, void* buffer, + rt_size_t size) +{ + rt_ubase_t index = 0; + rt_ubase_t nr = size; + rt_uint8_t * value = buffer; + + RT_ASSERT(dev == &fm4_led.parent); + RT_ASSERT((pos+size) <= LED_NUM ); + + for(index=0; index +void led(rt_uint32_t led, rt_uint32_t value) +{ + rt_uint8_t led_value = value; + rt_led_write(&fm4_led.parent, led, &led_value, 1); +} +FINSH_FUNCTION_EXPORT(led, e.g:led(0,0)/led(0,1).) +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/mcu.h b/bsp/fujitsu/mb9x/mb9bf568r/drivers/mcu.h new file mode 100644 index 0000000000..5717ff37cc --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/mcu.h @@ -0,0 +1,65 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/** + ****************************************************************************** + ** \file mcu.h + ** + ** Header File for device dependent includes + ** + ** History: + ** 2011-05-19 V1.00 MWi first version + ** + ******************************************************************************/ + +#define PDL_INT_TYPE_C 1 +#define PDL_INT_TYPE_A 2 + +#define PDL_MCU_INT_TYPE PDL_INT_TYPE_A + +/** + ****************************************************************************** + ** \brief MCU header file include + ** + ******************************************************************************/ +#ifndef _MB9B560R_H_ + #include "mb9b560r.h" +#endif + +/** + ****************************************************************************** + ** \brief MCU system start-up header file include + ** + ******************************************************************************/ +#ifndef _SYSTEM_MB9ABXXX_H_ + #include "system_mb9bf56xr.h" +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.c b/bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.c new file mode 100644 index 0000000000..6c3a132216 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.c @@ -0,0 +1,355 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2006-03-13 Bernard first version + * 2011-05-15 lgnq modified according bernard's implementaion. + */ + +#include + +#include "serial.h" + +/** + * @addtogroup FM4 MB9BF568R + */ +/*@{*/ + +/* RT-Thread Device Interface */ +/** + * This function initializes serial + */ +static rt_err_t rt_serial_init (rt_device_t dev) +{ + struct serial_device* uart = (struct serial_device*) dev->user_data; + + if (!(dev->flag & RT_DEVICE_FLAG_ACTIVATED)) + { + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + rt_memset(uart->int_rx->rx_buffer, 0, + sizeof(uart->int_rx->rx_buffer)); + uart->int_rx->read_index = uart->int_rx->save_index = 0; + } + + if (dev->flag & RT_DEVICE_FLAG_INT_TX) + { + rt_memset(uart->int_tx->tx_buffer, 0, + sizeof(uart->int_tx->tx_buffer)); + uart->int_tx->write_index = uart->int_tx->save_index = 0; + } + + dev->flag |= RT_DEVICE_FLAG_ACTIVATED; + } + + return RT_EOK; +} + +/* save a char to serial buffer */ +static void rt_serial_savechar(struct serial_device* uart, char ch) +{ + rt_base_t level; + + /* disable interrupt */ + level = rt_hw_interrupt_disable(); + + uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; + uart->int_rx->save_index ++; + if (uart->int_rx->save_index >= UART_RX_BUFFER_SIZE) + uart->int_rx->save_index = 0; + + /* if the next position is read index, discard this 'read char' */ + if (uart->int_rx->save_index == uart->int_rx->read_index) + { + uart->int_rx->read_index ++; + if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) + uart->int_rx->read_index = 0; + } + + /* enable interrupt */ + rt_hw_interrupt_enable(level); +} + +static rt_err_t rt_serial_open(rt_device_t dev, rt_uint16_t oflag) +{ + struct serial_device* uart; + + RT_ASSERT(dev != RT_NULL); + uart = (struct serial_device*) dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + /* enable interrupt */ + UART_ENABLE_IRQ(uart->rx_irq); + } + + return RT_EOK; +} + +static rt_err_t rt_serial_close(rt_device_t dev) +{ + struct serial_device* uart; + + RT_ASSERT(dev != RT_NULL); + uart = (struct serial_device*) dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + /* disable interrupt */ + UART_DISABLE_IRQ(uart->rx_irq); + } + + return RT_EOK; +} + +static rt_size_t rt_serial_read (rt_device_t dev, rt_off_t pos, void* buffer, + rt_size_t size) +{ + rt_uint8_t* ptr; + rt_err_t err_code; + struct serial_device* uart; + + ptr = buffer; + err_code = RT_EOK; + uart = (struct serial_device*)dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + rt_base_t level; + + /* interrupt mode Rx */ + while (size) + { + if (uart->int_rx->read_index != uart->int_rx->save_index) + { + *ptr++ = uart->int_rx->rx_buffer[uart->int_rx->read_index]; + size --; + + /* disable interrupt */ + level = rt_hw_interrupt_disable(); + + uart->int_rx->read_index ++; + if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) + uart->int_rx->read_index = 0; + + /* enable interrupt */ + rt_hw_interrupt_enable(level); + } + else + { + /* set error code */ + err_code = -RT_EEMPTY; + break; + } + } + } + else + { + /* polling mode */ + while ((rt_uint32_t)ptr - (rt_uint32_t)buffer < size) + { + while (uart->uart_device->SSR & SSR_RDRF) + { + *ptr = uart->uart_device->RDR & 0xff; + ptr ++; + } + } + } + + /* set error code */ + rt_set_errno(err_code); + return (rt_uint32_t)ptr - (rt_uint32_t)buffer; +} + +static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, + const void* buffer, rt_size_t size) +{ + rt_uint8_t* ptr; + rt_err_t err_code; + struct serial_device* uart; + + err_code = RT_EOK; + ptr = (rt_uint8_t*)buffer; + uart = (struct serial_device*)dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_TX) + { + /* interrupt mode Tx */ + while (uart->int_tx->save_index != uart->int_tx->write_index) + { + /* save on tx buffer */ + uart->int_tx->tx_buffer[uart->int_tx->save_index] = *ptr++; + + -- size; + + /* move to next position */ + uart->int_tx->save_index ++; + + /* wrap save index */ + if (uart->int_tx->save_index >= UART_TX_BUFFER_SIZE) + uart->int_tx->save_index = 0; + } + + /* set error code */ + if (size > 0) + err_code = -RT_EFULL; + } + else + { + /* polling mode */ + while (size) + { + /* + * to be polite with serial console add a line feed + * to the carriage return character + */ + if (*ptr == '\n' && (dev->flag & RT_DEVICE_FLAG_STREAM)) + { + while (!(uart->uart_device->SSR & SSR_TDRE)); + uart->uart_device->TDR = '\r'; + } + + while (!(uart->uart_device->SSR & SSR_TDRE)); + uart->uart_device->TDR = (*ptr & 0x1FF); + + ++ptr; + --size; + } + } + + /* set error code */ + rt_set_errno(err_code); + + return (rt_uint32_t)ptr - (rt_uint32_t)buffer; +} + +static rt_err_t rt_serial_control (rt_device_t dev, int cmd, void *args) +{ + RT_ASSERT(dev != RT_NULL); + + switch (cmd) + { + case RT_DEVICE_CTRL_SUSPEND: + /* suspend device */ + dev->flag |= RT_DEVICE_FLAG_SUSPENDED; + break; + + case RT_DEVICE_CTRL_RESUME: + /* resume device */ + dev->flag &= ~RT_DEVICE_FLAG_SUSPENDED; + break; + } + + return RT_EOK; +} + +/* + * serial register + */ +rt_err_t rt_hw_serial_register(rt_device_t device, const char* name, + rt_uint32_t flag, struct serial_device *serial) +{ + RT_ASSERT(device != RT_NULL); + + device->type = RT_Device_Class_Char; + device->rx_indicate = RT_NULL; + device->tx_complete = RT_NULL; + device->init = rt_serial_init; + device->open = rt_serial_open; + device->close = rt_serial_close; + device->read = rt_serial_read; + device->write = rt_serial_write; + device->control = rt_serial_control; + device->user_data = serial; + + /* register a character device */ + return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR | flag); +} + +/* ISR for serial interrupt */ +void rt_hw_serial_isr(rt_device_t device) +{ + struct serial_device* uart = (struct serial_device*) device->user_data; + + /* interrupt mode receive */ + RT_ASSERT(device->flag & RT_DEVICE_FLAG_INT_RX); + + /* save on rx buffer */ + while (uart->uart_device->SSR & SSR_RDRF) + { + rt_serial_savechar(uart, uart->uart_device->RDR & 0xff); + } + + /* invoke callback */ + if (device->rx_indicate != RT_NULL) + { + rt_size_t rx_length; + + /* get rx length */ + rx_length = uart->int_rx->read_index > uart->int_rx->save_index ? + UART_RX_BUFFER_SIZE - uart->int_rx->read_index + uart->int_rx->save_index : + uart->int_rx->save_index - uart->int_rx->read_index; + + device->rx_indicate(device, rx_length); + } +} + +#ifdef RT_USING_UART0 +/* UART0 device driver structure */ +#define UART0 FM4_MFS0 +struct serial_int_rx uart0_int_rx; +struct serial_device uart0 = +{ + UART0, + MFS0_RX_IRQn, + MFS0_TX_IRQn, + &uart0_int_rx, + RT_NULL +}; +struct rt_device uart0_device; + +void MFS0_RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&uart0_device); + /* leave interrupt */ + rt_interrupt_leave(); +} + + +#endif /**< #ifdef RT_USING_UART0 */ + + +void rt_hw_serial_init(void) +{ + uint32_t APB2_clock = (SystemCoreClock >> (APBC2_PSR_Val & 0x03)); + +#ifdef RT_USING_UART0 + // Initialize ports for MFS0 + FM4_GPIO->PFR2 = 0x06u; // P21>SIN0_0, P22>SOT0_0 + FM4_GPIO->EPFR07 &= 0xFFFFFF0Ful; + FM4_GPIO->EPFR07 |= 0x00000040ul; + + // Initialize MFS to UART asynchronous mode + + uart0.uart_device->SMR = SMR_MD_UART | SMR_SOE;; + uart0.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ + uart0.uart_device->ESCR = ESCR_DATABITS_8; + uart0.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; + + /* register UART0 device */ + rt_hw_serial_register(&uart0_device, + "uart0", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart0); + + +#endif /**< #ifdef RT_USING_UART0 */ + +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.h b/bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.h new file mode 100644 index 0000000000..776b2a3877 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/serial.h @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2006-03-13 Bernard first version + * 2011-05-15 lgnq modified according bernard's implementaion. + */ + +#ifndef __RT_HW_SERIAL_H__ +#define __RT_HW_SERIAL_H__ + +#include +#include + +#include "board.h" + +#define SMR_SOE 0x01U +#define SMR_BDS 0x04U +#define SMR_SBL 0x08U +#define SMR_WUCR 0x10U +#define SMR_MD_UART 0x00U +#define SMR_MD_UART_MP 0x20U +#define SMR_MD_SIO 0x40U +#define SMR_MD_LIN 0x60U +#define SMR_MD_I2C 0x80U + +#define SCR_TXE 0x01U +#define SCR_RXE 0x02U +#define SCR_TBIE 0x04U +#define SCR_TIE 0x08U +#define SCR_RIE 0x10U +#define SCR_UPGL 0x80U + +#define SSR_TBI 0x01U +#define SSR_TDRE 0x02U +#define SSR_RDRF 0x04U +#define SSR_ORE 0x08U +#define SSR_FRE 0x10U +#define SSR_PE 0x20U +#define SSR_REC 0x80U + +#define ESCR_P 0x08U +#define ESCR_PEN 0x10U +#define ESCR_INV 0x20U +#define ESCR_ESBL 0x40U +#define ESCR_FLWEN 0x80U +#define ESCR_DATABITS_8 0x00U +#define ESCR_DATABITS_5 0x01U +#define ESCR_DATABITS_6 0x02U +#define ESCR_DATABITS_7 0x03U +#define ESCR_DATABITS_9 0x04U + +#define BPS 115200 /* serial baudrate */ + +#define UART_RX_BUFFER_SIZE 128 +#define UART_TX_BUFFER_SIZE 128 + +struct serial_int_rx +{ + rt_uint8_t rx_buffer[UART_RX_BUFFER_SIZE]; + rt_uint32_t read_index, save_index; +}; + +struct serial_int_tx +{ + rt_uint8_t tx_buffer[UART_TX_BUFFER_SIZE]; + rt_uint32_t write_index, save_index; +}; + +/* + * Enable/DISABLE Interrupt Controller + */ +/* deviation from MISRA-C:2004 Rule 19.7 */ +#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) +#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) + +struct serial_device +{ + FM4_MFS_TypeDef* uart_device; + /* irq number */ + IRQn_Type rx_irq; + IRQn_Type tx_irq; + + /* rx structure */ + struct serial_int_rx* int_rx; + /* tx structure */ + struct serial_int_tx* int_tx; +}; + +void rt_hw_serial_isr(rt_device_t device); +void rt_hw_serial_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/project.uvopt b/bsp/fujitsu/mb9x/mb9bf568r/project.uvopt new file mode 100644 index 0000000000..c7c71b2bbf --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/project.uvopt @@ -0,0 +1,172 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + + + + 0 + 0 + + + + rtthread-fm4 + 0x4 + ARM-ADS + + 4000000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\build\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 0 + 0 + 1 + + 255 + + SARMCM3.DLL + + DCM.DLL + -pCM4 + SARMCM3.DLL + + TCM.DLL + -pCM4 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 14 + + + + + + + + + + + BIN\CMSIS_AGDI.dll + + + + 0 + CMSIS_AGDI + -X"CMSIS-DAP" -U -O175 -S0 -C0 -P00 -N00("ARM CoreSight JTAG-DP") -D00(4BA00477) -L00(0) -FO15 -FD20000000 -FC8000 -FN2 -FF0MB9B560_1024 -FS00 -FL0100000 -FF1MB9B560_WORK32 -FS1200C0000 -FL18000 + + + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + 0 + + + + + + + + Source Group 1 + 0 + 0 + 0 + 0 + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf568r/project.uvproj b/bsp/fujitsu/mb9x/mb9bf568r/project.uvproj new file mode 100644 index 0000000000..2518cee715 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/project.uvproj @@ -0,0 +1,629 @@ + + + 1.1 +
### uVision Project, (C) Keil Software
+ + + rtthread-fm4 + 0x4 + ARM-ADS + + + Cortex-M4 FPU + ARM + CLOCK(12000000) CPUTYPE("Cortex-M4") ESEL ELITTLE FPU2 + + + + 5237 + + + + + + + + + + + + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\build\ + template_mb9b56xx + 1 + 0 + 0 + 1 + 1 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + + DCM.DLL + -pCM4 + SARMCM3.DLL + + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + + 0 + 14 + + + + + + + + + + + + + + BIN\CMSIS_AGDI.dll + + + + + 1 + 0 + 0 + 0 + 1 + 4105 + + BIN\CMSIS_AGDI.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 8 + 0 + 1 + 0 + 0 + 5 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x100000 + + + 1 + 0x200c0000 + 0x8000 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x1fff0000 + 0x10000 + + + 0 + 0x20038000 + 0x10000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND + + applications;.;CMSIS\Include;CMSIS\DeviceSupport;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x00000000 + 0x00000000 + + + + + + + + + + + + Applications + + + startup.c + 1 + applications\startup.c + + + + + application.c + 1 + applications\application.c + + + + + CMSIS + + + startup_mb9bf56xr.s + 2 + CMSIS\DeviceSupport\arm\startup_mb9bf56xr.s + + + + + system_mb9abxxx.c + 1 + CMSIS\DeviceSupport\system_mb9abxxx.c + + + + + Compiler + + + syscall_mem.c + 1 + ..\..\components\libc\compilers\armlibc\syscall_mem.c + + + + + syscalls.c + 1 + ..\..\components\libc\compilers\armlibc\syscalls.c + + + + + time.c + 1 + ..\..\components\libc\compilers\common\time.c + + + + + stdlib.c + 1 + ..\..\components\libc\compilers\common\stdlib.c + + + + + CPU + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + + + + showmem.c + 1 + ..\..\libcpu\arm\common\showmem.c + + + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m4\context_rvds.S + + + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m4\cpuport.c + + + + + Drivers + + + serial.c + 1 + drivers\serial.c + + + + + board.c + 1 + drivers\board.c + + + + + led.c + 1 + drivers\led.c + + + + + Finsh + + + shell.c + 1 + ..\..\components\finsh\shell.c + + + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + + + Kernel + + + object.c + 1 + ..\..\src\object.c + + + + + clock.c + 1 + ..\..\src\clock.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + mem.c + 1 + ..\..\src\mem.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + device.c + 1 + ..\..\src\device.c + + + + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf568r/rtconfig.h b/bsp/fujitsu/mb9x/mb9bf568r/rtconfig.h new file mode 100644 index 0000000000..8191fc8e65 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/rtconfig.h @@ -0,0 +1,75 @@ +/* RT-Thread config file */ +#ifndef __RTTHREAD_CFG_H__ +#define __RTTHREAD_CFG_H__ + +/* RT_NAME_MAX*/ +#define RT_NAME_MAX 8 + +/* RT_ALIGN_SIZE*/ +#define RT_ALIGN_SIZE 4 + +/* PRIORITY_MAX */ +#define RT_THREAD_PRIORITY_MAX 64 + +/* Tick per Second */ +#define RT_TICK_PER_SECOND 100 + +/* SECTION: RT_DEBUG */ +/* Thread Debug */ +#define RT_DEBUG +#define RT_DEBUG_COLOR +#define RT_USING_OVERFLOW_CHECK + +/* Using Hook */ +#define RT_USING_HOOK + +/* SECTION: IPC */ +/* Using Semaphore */ +#define RT_USING_SEMAPHORE + +/* Using Mutex */ +#define RT_USING_MUTEX + +/* Using Event */ +#define RT_USING_EVENT + +/* Using MailBox */ +#define RT_USING_MAILBOX + +/* Using Message Queue */ +#define RT_USING_MESSAGEQUEUE + +/* SECTION: Memory Management */ +/* Using Memory Pool Management*/ +#define RT_USING_MEMPOOL + +/* Using Dynamic Heap Management */ +#define RT_USING_HEAP + +/* Using Small MM */ +#define RT_USING_SMALL_MEM + +// +#define RT_USING_COMPONENTS_INIT + +/* SECTION: Device System */ +/* Using Device System */ +#define RT_USING_DEVICE + +/* SECTION: Console options */ +/* #define RT_TINY_SIZE */ +#define RT_USING_CONSOLE +/* the buffer size of console */ +#define RT_CONSOLEBUF_SIZE 128 +// +#define RT_CONSOLE_DEVICE_NAME "uart0" + +/* SECTION: finsh, a C-Express shell */ +/* Using FinSH as Shell*/ +#define RT_USING_FINSH +/* Using symbol table */ +#define FINSH_USING_SYMTAB +#define FINSH_USING_DESCRIPTION +#define FINSH_THREAD_STACK_SIZE 1024 + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf568r/rtconfig.py b/bsp/fujitsu/mb9x/mb9bf568r/rtconfig.py new file mode 100644 index 0000000000..abee5014b2 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/rtconfig.py @@ -0,0 +1,86 @@ +import os + +# toolchains options +ARCH='arm' +CPU='cortex-m4' +CROSS_TOOL='keil' +BOARD_NAME = 'mb9bf568r' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = r'D:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = 'C:/Keil_MDK_471' +elif CROSS_TOOL == 'iar': + print('================ERROR============================') + print('Not support iar yet!') + print('=================================================') + exit(0) + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + CXX = PREFIX + 'g++' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'g++' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=cortex-m4 -mthumb' + CFLAGS = DEVICE + AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-' + BOARD_NAME + '.map,-cref,-u,Reset_Handler -T rtthread-' + BOARD_NAME + '.ld -nostartfiles' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + CXXFLAGS = CFLAGS + + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + +elif PLATFORM == 'armcc': + # toolchains + CC = 'armcc' + CXX = 'armcc' + AS = 'armasm' + AR = 'armar' + LINK = 'armlink' + TARGET_EXT = 'axf' + + DEVICE = ' --cpu Cortex-M4.fp' + CFLAGS = DEVICE + ' --apcs=interwork' + AFLAGS = DEVICE + LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread_' + \ + BOARD_NAME + '.map --scatter rtthread-' + BOARD_NAME + '.sct' + + CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' + LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' + + EXEC_PATH += '/arm/bin40/' + + if BUILD == 'debug': + CFLAGS += ' -g -O0' + AFLAGS += ' -g' + else: + CFLAGS += ' -O2' + + CXXFLAGS = CFLAGS + POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' diff --git a/bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.ld b/bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.ld new file mode 100644 index 0000000000..c6700b9535 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.ld @@ -0,0 +1,221 @@ +/* Linker script to configure memory regions + * + * Version:CodeSourcery Sourcery G++ Lite 2007q3-53 + * BugURL:https://support.codesourcery.com/GNUToolchain/ + * + * Copyright 2007 CodeSourcery. + * + * 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(_start) +SEARCH_DIR(.) + +MEMORY +{ + rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00100000 /* 1024k */ + ram (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 /* 64k */ +} + +/* These force the linker to search for particular symbols from + * the start of the link process and thus ensure the user's + * overrides are picked up + */ +EXTERN(__cs3_reset_cortex_m) +EXTERN(__cs3_interrupt_vector_cortex_m) +EXTERN(__cs3_start_c main __cs3_stack __cs3_stack_size __cs3_heap_end) + +PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram); +PROVIDE(__cs3_stack_size = __cs3_region_start_ram + __cs3_region_size_ram - _end); +PROVIDE(__cs3_heap_start = _end); +PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); + +SECTIONS +{ + .text : + { + CREATE_OBJECT_SYMBOLS + __cs3_region_start_rom = .; + *(.cs3.region-head.rom) + __cs3_interrupt_vector = __cs3_interrupt_vector_cortex_m; + *(.cs3.interrupt_vector) + /* Make sure we pulled in an interrupt vector. */ + ASSERT (. != __cs3_interrupt_vector_cortex_m, "No interrupt vector"); + *(.rom) + *(.rom.b) + + __cs3_reset = __cs3_reset_cortex_m; + *(.cs3.reset) + /* Make sure we pulled in some reset code. */ + ASSERT (. != __cs3_reset, "No reset code"); + + *(.text .text.* .gnu.linkonce.t.*) + *(.plt) + *(.gnu.warning) + *(.glue_7t) *(.glue_7) *(.vfp11_veneer) + + *(.rodata .rodata.* .gnu.linkonce.r.*) + + *(.ARM.extab* .gnu.linkonce.armextab.*) + *(.gcc_except_table) + *(.eh_frame_hdr) + *(.eh_frame) + + . = ALIGN(4); + KEEP(*(.init)) + + . = ALIGN(4); + __preinit_array_start = .; + KEEP (*(.preinit_array)) + __preinit_array_end = .; + + . = ALIGN(4); + __init_array_start = .; + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array)) + __init_array_end = .; + + . = ALIGN(0x4); + KEEP (*crtbegin.o(.ctors)) + KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) + KEEP (*(SORT(.ctors.*))) + KEEP (*crtend.o(.ctors)) + + . = ALIGN(4); + KEEP(*(.fini)) + + . = ALIGN(4); + __fini_array_start = .; + KEEP (*(.fini_array)) + KEEP (*(SORT(.fini_array.*))) + __fini_array_end = .; + + KEEP (*crtbegin.o(.dtors)) + KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) + KEEP (*(SORT(.dtors.*))) + KEEP (*crtend.o(.dtors)) + + . = ALIGN(4); + __cs3_regions = .; + LONG (0) + LONG (__cs3_region_init_ram) + LONG (__cs3_region_start_ram) + LONG (__cs3_region_init_size_ram) + LONG (__cs3_region_zero_size_ram) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + + } + + /* .ARM.exidx is sorted, so has to go in its own output section. */ + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + } >rom + __exidx_end = .; + .text.align : + { + . = ALIGN(8); + _etext = .; + } >rom + __cs3_region_size_rom = LENGTH(rom); + __cs3_region_num = 1; + + .data : + { + __cs3_region_start_ram = .; + *(.cs3.region-head.ram) + KEEP(*(.jcr)) + *(.got.plt) *(.got) + *(.shdata) + *(.data .data.* .gnu.linkonce.d.*) + *(.ram) + . = ALIGN (8); + _edata = .; + } >ram AT>rom + + .bss : + { + *(.shbss) + *(.bss .bss.* .gnu.linkonce.b.*) + *(COMMON) + *(.ram.b) + . = ALIGN (8); + _end = .; + __end = .; + } >ram AT>rom + + .heap : + { + *(.heap) + } >ram + + __bss_end = .; + + .stack (__cs3_stack - __cs3_stack_size) : + { + *(.stack) + } >ram + + __cs3_region_init_ram = LOADADDR (.data); + __cs3_region_init_size_ram = _edata - __cs3_region_start_ram; + __cs3_region_zero_size_ram = _end - _edata; + __cs3_region_size_ram = LENGTH(ram); + __cs3_region_num = 1; + + .stab 0 (NOLOAD) : { *(.stab) } + .stabstr 0 (NOLOAD) : { *(.stabstr) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } + + .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } + .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) } + /DISCARD/ : { *(.note.GNU-stack) } +} diff --git a/bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.sct b/bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.sct new file mode 100644 index 0000000000..5b025eb611 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/rtthread-mb9bf568r.sct @@ -0,0 +1,23 @@ +; ************************************************************* +; *** Scatter-Loading Description File generated by uVision *** +; ************************************************************* + +LR_IROM1 0x00000000 0x00100000 { ; load region size_region + ER_IROM1 0x00000000 0x00100000 { ; load address = execution address + *.o (RESET, +First) + *(InRoot$$Sections) + .ANY (+RO) + } + RW_IRAM1 0x1FFF0000 0x00010000 { ; RW data + .ANY (+RW +ZI) + } + RW_IRAM2 0x20038000 0x00010000 { + .ANY (+RW +ZI) + } +} + +LR_IROM2 0x200C0000 0x00008000 { + ER_IROM2 0x200C0000 0x00008000 { ; load address = execution address + .ANY (+RO) + } +} diff --git a/bsp/fujitsu/mb9x/mb9bf568r/template.uvopt b/bsp/fujitsu/mb9x/mb9bf568r/template.uvopt new file mode 100644 index 0000000000..c7c71b2bbf --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/template.uvopt @@ -0,0 +1,172 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + + + + 0 + 0 + + + + rtthread-fm4 + 0x4 + ARM-ADS + + 4000000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\build\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 0 + 0 + 1 + + 255 + + SARMCM3.DLL + + DCM.DLL + -pCM4 + SARMCM3.DLL + + TCM.DLL + -pCM4 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 14 + + + + + + + + + + + BIN\CMSIS_AGDI.dll + + + + 0 + CMSIS_AGDI + -X"CMSIS-DAP" -U -O175 -S0 -C0 -P00 -N00("ARM CoreSight JTAG-DP") -D00(4BA00477) -L00(0) -FO15 -FD20000000 -FC8000 -FN2 -FF0MB9B560_1024 -FS00 -FL0100000 -FF1MB9B560_WORK32 -FS1200C0000 -FL18000 + + + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + 0 + + + + + + + + Source Group 1 + 0 + 0 + 0 + 0 + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf568r/template.uvproj b/bsp/fujitsu/mb9x/mb9bf568r/template.uvproj new file mode 100644 index 0000000000..b65281bbef --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf568r/template.uvproj @@ -0,0 +1,398 @@ + + + + 1.1 + +
### uVision Project, (C) Keil Software
+ + + + rtthread-fm4 + 0x4 + ARM-ADS + + + Cortex-M4 FPU + ARM + CLOCK(12000000) CPUTYPE("Cortex-M4") ESEL ELITTLE FPU2 + + + + 5237 + + + + + + + + + + + + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\build\ + template_mb9b56xx + 1 + 0 + 0 + 1 + 1 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + + DCM.DLL + -pCM4 + SARMCM3.DLL + + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + + 0 + 14 + + + + + + + + + + + + + + BIN\CMSIS_AGDI.dll + + + + + 1 + 0 + 0 + 0 + 1 + 4105 + + BIN\CMSIS_AGDI.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 8 + 0 + 1 + 0 + 0 + 5 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 1 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x100000 + + + 1 + 0x200c0000 + 0x8000 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x1fff0000 + 0x10000 + + + 0 + 0x20038000 + 0x10000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x00000000 + 0x00000000 + + + + + + + + + + + + Source Group 1 + + + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h new file mode 100644 index 0000000000..374040f314 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h @@ -0,0 +1,29269 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/* */ +/* Header File for Device MB9BF618S */ +/* Version V1.00 */ +/* Date 2011-08-04 */ +/* */ +/************************************************************************/ + +#ifndef _MB9BF618S_H_ +#define _MB9BF618S_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/****************************************************************************** + * Configuration of the Cortex-M3 Processor and Core Peripherals + ******************************************************************************/ +#define __MPU_PRESENT 1 /* FM3 provide an MPU */ +#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ + + +/****************************************************************************** + * Interrupt Number Definition + ******************************************************************************/ +typedef enum IRQn +{ + NMI_IRQn = -14, /* 2 Non Maskable */ + HardFault_IRQn = -13, /* 3 Hard Fault */ + MemManage_IRQn = -12, /* 4 Memory Management */ + BusFault_IRQn = -11, /* 5 Bus Fault */ + UsageFault_IRQn = -10, /* 6 Usage Fault */ + SVC_IRQn = -5, /* 11 SV Call */ + DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ + PendSV_IRQn = -2, /* 14 Pend SV */ + SysTick_IRQn = -1, /* 15 System Tick */ + + CSV_IRQn = 0, /* Clock Super Visor */ + SWDT_IRQn = 1, /* Software Watchdog Timer */ + LVD_IRQn = 2, /* Low Voltage Detector */ + WFG_IRQn = 3, /* Wave Form Generator */ + EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ + EXINT8_31_IRQn = 5, /* External Interrupt Request ch.8 to ch.31 */ + DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ + MFS0RX_IRQn = 7, /* MultiFunction Serial Reception ch.0 */ + MFS0TX_IRQn = 8, /* MultiFunction Serial Transmission ch.0 */ + MFS1RX_IRQn = 9, /* MultiFunction Serial Reception ch.1 */ + MFS1TX_IRQn = 10, /* MultiFunction Serial Transmission ch.1 */ + MFS2RX_IRQn = 11, /* MultiFunction Serial Reception ch.2 */ + MFS2TX_IRQn = 12, /* MultiFunction Serial Transmission ch.2 */ + MFS3RX_IRQn = 13, /* MultiFunction Serial Reception ch.3 */ + MFS3TX_IRQn = 14, /* MultiFunction Serial Transmission ch.3 */ + MFS4RX_IRQn = 15, /* MultiFunction Serial Reception ch.4 */ + MFS4TX_IRQn = 16, /* MultiFunction Serial Transmission ch.4 */ + MFS5RX_IRQn = 17, /* MultiFunction Serial Reception ch.5 */ + MFS5TX_IRQn = 18, /* MultiFunction Serial Transmission ch.5 */ + MFS6RX_IRQn = 19, /* MultiFunction Serial Reception ch.6 */ + MFS6TX_IRQn = 20, /* MultiFunction Serial Transmission ch.6 */ + MFS7RX_IRQn = 21, /* MultiFunction Serial Reception ch.7 */ + MFS7TX_IRQn = 22, /* MultiFunction Serial Transmission ch.7 */ + PPG_IRQn = 23, /* PPG */ + OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ + ADC0_IRQn = 25, /* ADC0 */ + ADC1_IRQn = 26, /* ADC1 */ + ADC2_IRQn = 27, /* ADC2 */ + FRTIM_IRQn = 28, /* Free-run Timer */ + INCAP_IRQn = 29, /* Input Capture */ + OUTCOMP_IRQn = 30, /* Output Compare */ + BTIM0_7_IRQn = 31, /* Base Timer ch.0 to ch.7 */ + ETHER_MAC0_IRQn = 32, /* Ethernet MAC ch.0 */ + ETHER_MAC1_IRQn = 33, /* Ethernet MAC ch.1 */ + USB0F_IRQn = 34, /* USB Function ch.0 */ + USB0F_USB0H_IRQn = 35, /* USB Function ch.0 / USB Host ch.0 */ + USB1F_IRQn = 36, /* USB Function ch.1 */ + USB1F_USB1H_IRQn = 37, /* USB Function ch.1 / USB Host ch.1 */ + DMAC0_IRQn = 38, /* DMAC ch.0 */ + DMAC1_IRQn = 39, /* DMAC ch.1 */ + DMAC2_IRQn = 40, /* DMAC ch.2 */ + DMAC3_IRQn = 41, /* DMAC ch.3 */ + DMAC4_IRQn = 42, /* DMAC ch.4 */ + DMAC5_IRQn = 43, /* DMAC ch.5 */ + DMAC6_IRQn = 44, /* DMAC ch.6 */ + DMAC7_IRQn = 45, /* DMAC ch.7 */ + BTIM8_15_IRQn = 46 /* Base Timer ch.8 to ch.15 */ + /* Reserved = 47 */ +} IRQn_Type; + + +#include +#include "system_mb9bf61x.h" +#include + +#define SUCCESS 0 +#define ERROR -1 + +#ifndef NULL +#define NULL 0 +#endif + + +/******************************************************************************/ +/* Device Specific Peripheral Registers structures */ +/******************************************************************************/ + +#if defined ( __CC_ARM ) +#pragma anon_unions +#endif + +/****************************************************************************** + * Peripheral register bit fields + ******************************************************************************/ + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash_IF_MODULE register bit fields */ +typedef struct stc_flash_if_faszr_field +{ + __IO uint32_t ASZ0 : 1; + __IO uint32_t ASZ1 : 1; +} stc_flash_if_faszr_field_t; + +typedef struct stc_flash_if_frwtr_field +{ + __IO uint32_t RWT0 : 1; + __IO uint32_t RWT1 : 1; +} stc_flash_if_frwtr_field_t; + +typedef struct stc_flash_if_fstr_field +{ + __IO uint32_t RDY : 1; + __IO uint32_t HNG : 1; + __IO uint32_t EER : 1; +} stc_flash_if_fstr_field_t; + +typedef struct stc_flash_if_fsyndn_field +{ + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; +} stc_flash_if_fsyndn_field_t; + +typedef struct stc_flash_if_crtrmm_field +{ + __IO uint32_t TRMM0 : 1; + __IO uint32_t TRMM1 : 1; + __IO uint32_t TRMM2 : 1; + __IO uint32_t TRMM3 : 1; + __IO uint32_t TRMM4 : 1; + __IO uint32_t TRMM5 : 1; + __IO uint32_t TRMM6 : 1; + __IO uint32_t TRMM7 : 1; + __IO uint32_t TRMM8 : 1; + __IO uint32_t TRMM9 : 1; +} stc_flash_if_crtrmm_field_t; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock_Reset_MODULE register bit fields */ +typedef struct stc_crg_scm_ctl_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MOSCE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SOSCE : 1; + __IO uint8_t PLLE : 1; + __IO uint8_t RCS0 : 1; + __IO uint8_t RCS1 : 1; + __IO uint8_t RCS2 : 1; +} stc_crg_scm_ctl_field_t; + +typedef struct stc_crg_scm_str_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MORDY : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SORDY : 1; + __IO uint8_t PLRDY : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t RCM2 : 1; +} stc_crg_scm_str_field_t; + +typedef struct stc_crg_rst_str_field +{ + __IO uint16_t PONR : 1; + __IO uint16_t INITX : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SWDT : 1; + __IO uint16_t HWDT : 1; + __IO uint16_t CSVR : 1; + __IO uint16_t FCSR : 1; + __IO uint16_t SRST : 1; +} stc_crg_rst_str_field_t; + +typedef struct stc_crg_bsc_psr_field +{ + __IO uint8_t BSR0 : 1; + __IO uint8_t BSR1 : 1; + __IO uint8_t BSR2 : 1; +} stc_crg_bsc_psr_field_t; + +typedef struct stc_crg_apbc0_psr_field +{ + __IO uint8_t APBC00 : 1; + __IO uint8_t APBC01 : 1; +} stc_crg_apbc0_psr_field_t; + +typedef struct stc_crg_apbc1_psr_field +{ + __IO uint8_t APBC10 : 1; + __IO uint8_t APBC11 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC1RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC1EN : 1; +} stc_crg_apbc1_psr_field_t; + +typedef struct stc_crg_apbc2_psr_field +{ + __IO uint8_t APBC20 : 1; + __IO uint8_t APBC21 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC2RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC2EN : 1; +} stc_crg_apbc2_psr_field_t; + +typedef struct stc_crg_swc_psr_field +{ + __IO uint8_t SWDS0 : 1; + __IO uint8_t SWDS1 : 1; + uint8_t RESERVED1 : 5; + __IO uint8_t TESTB : 1; +} stc_crg_swc_psr_field_t; + +typedef struct stc_crg_ttc_psr_field +{ + __IO uint8_t TTC0 : 1; + __IO uint8_t TTC1 : 1; +} stc_crg_ttc_psr_field_t; + +typedef struct stc_crg_csw_tmr_field +{ + __IO uint8_t MOWT0 : 1; + __IO uint8_t MOWT1 : 1; + __IO uint8_t MOWT2 : 1; + __IO uint8_t MOWT3 : 1; + __IO uint8_t SOWT0 : 1; + __IO uint8_t SOWT1 : 1; + __IO uint8_t SOWT2 : 1; +} stc_crg_csw_tmr_field_t; + +typedef struct stc_crg_psw_tmr_field +{ + __IO uint8_t POWT0 : 1; + __IO uint8_t POWT1 : 1; + __IO uint8_t POWT2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t PINC : 1; +} stc_crg_psw_tmr_field_t; + +typedef struct stc_crg_pll_ctl1_field +{ + __IO uint8_t PLLM0 : 1; + __IO uint8_t PLLM1 : 1; + __IO uint8_t PLLM2 : 1; + __IO uint8_t PLLM3 : 1; + __IO uint8_t PLLK0 : 1; + __IO uint8_t PLLK1 : 1; + __IO uint8_t PLLK2 : 1; + __IO uint8_t PLLK3 : 1; +} stc_crg_pll_ctl1_field_t; + +typedef struct stc_crg_pll_ctl2_field +{ + __IO uint8_t PLLN0 : 1; + __IO uint8_t PLLN1 : 1; + __IO uint8_t PLLN2 : 1; + __IO uint8_t PLLN3 : 1; + __IO uint8_t PLLN4 : 1; + __IO uint8_t PLLN5 : 1; +} stc_crg_pll_ctl2_field_t; + +typedef struct stc_crg_csv_ctl_field +{ + __IO uint16_t MCSVE : 1; + __IO uint16_t SCSVE : 1; + uint16_t RESERVED1 : 6; + __IO uint16_t FCSDE : 1; + __IO uint16_t FCSRE : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t FCD0 : 1; + __IO uint16_t FCD1 : 1; + __IO uint16_t FCD2 : 1; +} stc_crg_csv_ctl_field_t; + +typedef struct stc_crg_csv_str_field +{ + __IO uint8_t MCMF : 1; + __IO uint8_t SCMF : 1; +} stc_crg_csv_str_field_t; + +typedef struct stc_crg_dbwdt_ctl_field +{ + uint8_t RESERVED1 : 5; + __IO uint8_t DPSWBE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t DPHWBE : 1; +} stc_crg_dbwdt_ctl_field_t; + +typedef struct stc_crg_int_enr_field +{ + __IO uint8_t MCSE : 1; + __IO uint8_t SCSE : 1; + __IO uint8_t PCSE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSE : 1; +} stc_crg_int_enr_field_t; + +typedef struct stc_crg_int_str_field +{ + __IO uint8_t MCSI : 1; + __IO uint8_t SCSI : 1; + __IO uint8_t PCSI : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSI : 1; +} stc_crg_int_str_field_t; + +typedef struct stc_crg_int_clr_field +{ + __IO uint8_t MCSC : 1; + __IO uint8_t SCSC : 1; + __IO uint8_t PCSC : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSC : 1; +} stc_crg_int_clr_field_t; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* HWWDT_MODULE register bit fields */ +typedef struct stc_hwwdt_wdg_ctl_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_hwwdt_wdg_ctl_field_t; + +typedef struct stc_hwwdt_wdg_ris_field +{ + __IO uint8_t RIS : 1; +} stc_hwwdt_wdg_ris_field_t; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* SWWDT_MODULE register bit fields */ +typedef struct stc_swwdt_wdogcontrol_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_swwdt_wdogcontrol_field_t; + +typedef struct stc_swwdt_wdogris_field +{ + __IO uint8_t RIS : 1; +} stc_swwdt_wdogris_field_t; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* DTIM_MODULE register bit fields */ +typedef struct stc_dtim_timer1control_field +{ + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; +} stc_dtim_timer1control_field_t; + +typedef struct stc_dtim_timer1ris_field +{ + __IO uint32_t TIMER1RIS : 1; +} stc_dtim_timer1ris_field_t; + +typedef struct stc_dtim_timer1mis_field +{ + __IO uint32_t TIMER1MIS : 1; +} stc_dtim_timer1mis_field_t; + +typedef struct stc_dtim_timer2control_field +{ + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; +} stc_dtim_timer2control_field_t; + +typedef struct stc_dtim_timer2ris_field +{ + __IO uint32_t TIMER2RIS : 1; +} stc_dtim_timer2ris_field_t; + +typedef struct stc_dtim_timer2mis_field +{ + __IO uint32_t TIMER2MIS : 1; +} stc_dtim_timer2mis_field_t; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* MFT_FRT_MODULE register bit fields */ +typedef struct stc_mft_frt_tcsa0_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa0_field_t; + +typedef struct stc_mft_frt_tcsb0_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb0_field_t; + +typedef struct stc_mft_frt_tcsa1_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa1_field_t; + +typedef struct stc_mft_frt_tcsb1_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb1_field_t; + +typedef struct stc_mft_frt_tcsa2_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa2_field_t; + +typedef struct stc_mft_frt_tcsb2_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb2_field_t; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* MFT_OCU_MODULE register bit fields */ +typedef struct stc_mft_ocu_ocsa10_field +{ + __IO uint8_t CST0 : 1; + __IO uint8_t CST1 : 1; + __IO uint8_t BDIS0 : 1; + __IO uint8_t BDIS1 : 1; + __IO uint8_t IOE0 : 1; + __IO uint8_t IOE1 : 1; + __IO uint8_t IOP0 : 1; + __IO uint8_t IOP1 : 1; +} stc_mft_ocu_ocsa10_field_t; + +typedef struct stc_mft_ocu_ocsb10_field +{ + __IO uint8_t OTD0 : 1; + __IO uint8_t OTD1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS0 : 1; + __IO uint8_t BTS1 : 1; +} stc_mft_ocu_ocsb10_field_t; + +typedef struct stc_mft_ocu_ocsa32_field +{ + __IO uint8_t CST2 : 1; + __IO uint8_t CST3 : 1; + __IO uint8_t BDIS2 : 1; + __IO uint8_t BDIS3 : 1; + __IO uint8_t IOE2 : 1; + __IO uint8_t IOE3 : 1; + __IO uint8_t IOP2 : 1; + __IO uint8_t IOP3 : 1; +} stc_mft_ocu_ocsa32_field_t; + +typedef struct stc_mft_ocu_ocsb32_field +{ + __IO uint8_t OTD2 : 1; + __IO uint8_t OTD3 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS2 : 1; + __IO uint8_t BTS3 : 1; +} stc_mft_ocu_ocsb32_field_t; + +typedef struct stc_mft_ocu_ocsa54_field +{ + __IO uint8_t CST4 : 1; + __IO uint8_t CST5 : 1; + __IO uint8_t BDIS4 : 1; + __IO uint8_t BDIS5 : 1; + __IO uint8_t IOE4 : 1; + __IO uint8_t IOE5 : 1; + __IO uint8_t IOP4 : 1; + __IO uint8_t IOP5 : 1; +} stc_mft_ocu_ocsa54_field_t; + +typedef struct stc_mft_ocu_ocsb54_field +{ + __IO uint8_t OTD4 : 1; + __IO uint8_t OTD5 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS4 : 1; + __IO uint8_t BTS5 : 1; +} stc_mft_ocu_ocsb54_field_t; + +typedef struct stc_mft_ocu_ocsc_field +{ + __IO uint8_t MOD0 : 1; + __IO uint8_t MOD1 : 1; + __IO uint8_t MOD2 : 1; + __IO uint8_t MOD3 : 1; + __IO uint8_t MOD4 : 1; + __IO uint8_t MOD5 : 1; +} stc_mft_ocu_ocsc_field_t; + +typedef struct stc_mft_ocu_ocfs10_field +{ + __IO uint8_t FSO00 : 1; + __IO uint8_t FSO01 : 1; + __IO uint8_t FSO02 : 1; + __IO uint8_t FSO03 : 1; + __IO uint8_t FSO10 : 1; + __IO uint8_t FSO11 : 1; + __IO uint8_t FSO12 : 1; + __IO uint8_t FSO13 : 1; +} stc_mft_ocu_ocfs10_field_t; + +typedef struct stc_mft_ocu_ocfs32_field +{ + __IO uint8_t FSO20 : 1; + __IO uint8_t FSO21 : 1; + __IO uint8_t FSO22 : 1; + __IO uint8_t FSO23 : 1; + __IO uint8_t FSO30 : 1; + __IO uint8_t FSO31 : 1; + __IO uint8_t FSO32 : 1; + __IO uint8_t FSO33 : 1; +} stc_mft_ocu_ocfs32_field_t; + +typedef struct stc_mft_ocu_ocfs54_field +{ + __IO uint8_t FSO40 : 1; + __IO uint8_t FSO41 : 1; + __IO uint8_t FSO42 : 1; + __IO uint8_t FSO43 : 1; + __IO uint8_t FSO50 : 1; + __IO uint8_t FSO51 : 1; + __IO uint8_t FSO52 : 1; + __IO uint8_t FSO53 : 1; +} stc_mft_ocu_ocfs54_field_t; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* MFT_WFG_MODULE register bit fields */ +typedef struct stc_mft_wfg_wfsa10_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD0 : 1; + __IO uint16_t TMD1 : 1; + __IO uint16_t TMD2 : 1; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa10_field_t; + +typedef struct stc_mft_wfg_wfsa32_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD0 : 1; + __IO uint16_t TMD1 : 1; + __IO uint16_t TMD2 : 1; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa32_field_t; + +typedef struct stc_mft_wfg_wfsa54_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD0 : 1; + __IO uint16_t TMD1 : 1; + __IO uint16_t TMD2 : 1; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa54_field_t; + +typedef struct stc_mft_wfg_wfir_field +{ + __IO uint16_t DTIF : 1; + __IO uint16_t DTIC : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t TMIF10 : 1; + __IO uint16_t TMIC10 : 1; + __IO uint16_t TMIE10 : 1; + __IO uint16_t TMIS10 : 1; + __IO uint16_t TMIF32 : 1; + __IO uint16_t TMIC32 : 1; + __IO uint16_t TMIE32 : 1; + __IO uint16_t TMIS32 : 1; + __IO uint16_t TMIF54 : 1; + __IO uint16_t TMIC54 : 1; + __IO uint16_t TMIE54 : 1; + __IO uint16_t TMIS54 : 1; +} stc_mft_wfg_wfir_field_t; + +typedef struct stc_mft_wfg_nzcl_field +{ + __IO uint16_t DTIE : 1; + __IO uint16_t NWS0 : 1; + __IO uint16_t NWS1 : 1; + __IO uint16_t NWS2 : 1; + __IO uint16_t SDTI : 1; +} stc_mft_wfg_nzcl_field_t; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* MFT_ICU_MODULE register bit fields */ +typedef struct stc_mft_icu_icfs10_field +{ + __IO uint8_t FSI00 : 1; + __IO uint8_t FSI01 : 1; + __IO uint8_t FSI02 : 1; + __IO uint8_t FSI03 : 1; + __IO uint8_t FSI10 : 1; + __IO uint8_t FSI11 : 1; + __IO uint8_t FSI12 : 1; + __IO uint8_t FSI13 : 1; +} stc_mft_icu_icfs10_field_t; + +typedef struct stc_mft_icu_icfs32_field +{ + __IO uint8_t FSI20 : 1; + __IO uint8_t FSI21 : 1; + __IO uint8_t FSI22 : 1; + __IO uint8_t FSI23 : 1; + __IO uint8_t FSI30 : 1; + __IO uint8_t FSI31 : 1; + __IO uint8_t FSI32 : 1; + __IO uint8_t FSI33 : 1; +} stc_mft_icu_icfs32_field_t; + +typedef struct stc_mft_icu_icsa10_field +{ + __IO uint8_t EG00 : 1; + __IO uint8_t EG01 : 1; + __IO uint8_t EG10 : 1; + __IO uint8_t EG11 : 1; + __IO uint8_t ICE0 : 1; + __IO uint8_t ICE1 : 1; + __IO uint8_t ICP0 : 1; + __IO uint8_t ICP1 : 1; +} stc_mft_icu_icsa10_field_t; + +typedef struct stc_mft_icu_icsb10_field +{ + __IO uint8_t IEI0 : 1; + __IO uint8_t IEI1 : 1; +} stc_mft_icu_icsb10_field_t; + +typedef struct stc_mft_icu_icsa32_field +{ + __IO uint8_t EG20 : 1; + __IO uint8_t EG21 : 1; + __IO uint8_t EG30 : 1; + __IO uint8_t EG31 : 1; + __IO uint8_t ICE2 : 1; + __IO uint8_t ICE3 : 1; + __IO uint8_t ICP2 : 1; + __IO uint8_t ICP3 : 1; +} stc_mft_icu_icsa32_field_t; + +typedef struct stc_mft_icu_icsb32_field +{ + __IO uint8_t IEI2 : 1; + __IO uint8_t IEI3 : 1; +} stc_mft_icu_icsb32_field_t; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* MFT_ADCMP_MODULE register bit fields */ +typedef struct stc_mft_adcmp_acsb_field +{ + __IO uint8_t BDIS0 : 1; + __IO uint8_t BDIS1 : 1; + __IO uint8_t BDIS2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BTS0 : 1; + __IO uint8_t BTS1 : 1; + __IO uint8_t BTS2 : 1; +} stc_mft_adcmp_acsb_field_t; + +typedef struct stc_mft_adcmp_acsa_field +{ + __IO uint16_t CE00 : 1; + __IO uint16_t CE01 : 1; + __IO uint16_t CE10 : 1; + __IO uint16_t CE11 : 1; + __IO uint16_t CE20 : 1; + __IO uint16_t CE21 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SEL00 : 1; + __IO uint16_t SEL01 : 1; + __IO uint16_t SEL10 : 1; + __IO uint16_t SEL11 : 1; + __IO uint16_t SEL20 : 1; + __IO uint16_t SEL21 : 1; +} stc_mft_adcmp_acsa_field_t; + +typedef struct stc_mft_adcmp_atsa_field +{ + __IO uint16_t AD0S0 : 1; + __IO uint16_t AD0S1 : 1; + __IO uint16_t AD1S0 : 1; + __IO uint16_t AD1S1 : 1; + __IO uint16_t AD2S0 : 1; + __IO uint16_t AD2S1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t AD0P0 : 1; + __IO uint16_t AD0P1 : 1; + __IO uint16_t AD1P0 : 1; + __IO uint16_t AD1P1 : 1; + __IO uint16_t AD2P0 : 1; + __IO uint16_t AD2P1 : 1; +} stc_mft_adcmp_atsa_field_t; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* MFT_PPG_MODULE register bit fields */ +typedef struct stc_mft_ppg_ttcr0_field +{ + __IO uint8_t STR0 : 1; + __IO uint8_t MONI0 : 1; + __IO uint8_t CS00 : 1; + __IO uint8_t CS01 : 1; + __IO uint8_t TRG0O : 1; + __IO uint8_t TRG2O : 1; + __IO uint8_t TRG4O : 1; + __IO uint8_t TRG6O : 1; +} stc_mft_ppg_ttcr0_field_t; + +typedef struct stc_mft_ppg_ttcr1_field +{ + __IO uint8_t STR1 : 1; + __IO uint8_t MONI1 : 1; + __IO uint8_t CS10 : 1; + __IO uint8_t CS11 : 1; + __IO uint8_t TRG1O : 1; + __IO uint8_t TRG3O : 1; + __IO uint8_t TRG5O : 1; + __IO uint8_t TRG7O : 1; +} stc_mft_ppg_ttcr1_field_t; + +typedef struct stc_mft_ppg_ttcr2_field +{ + __IO uint8_t STR2 : 1; + __IO uint8_t MONI2 : 1; + __IO uint8_t CS20 : 1; + __IO uint8_t CS21 : 1; + __IO uint8_t TRG16O : 1; + __IO uint8_t TRG18O : 1; + __IO uint8_t TRG20O : 1; + __IO uint8_t TRG22O : 1; +} stc_mft_ppg_ttcr2_field_t; + +typedef struct stc_mft_ppg_trg_field +{ + __IO uint16_t PEN00 : 1; + __IO uint16_t PEN01 : 1; + __IO uint16_t PEN02 : 1; + __IO uint16_t PEN03 : 1; + __IO uint16_t PEN04 : 1; + __IO uint16_t PEN05 : 1; + __IO uint16_t PEN06 : 1; + __IO uint16_t PEN07 : 1; + __IO uint16_t PEN08 : 1; + __IO uint16_t PEN09 : 1; + __IO uint16_t PEN10 : 1; + __IO uint16_t PEN11 : 1; + __IO uint16_t PEN12 : 1; + __IO uint16_t PEN13 : 1; + __IO uint16_t PEN14 : 1; + __IO uint16_t PEN15 : 1; +} stc_mft_ppg_trg_field_t; + +typedef struct stc_mft_ppg_trg1_field +{ + __IO uint16_t PEN16 : 1; + __IO uint16_t PEN17 : 1; + __IO uint16_t PEN18 : 1; + __IO uint16_t PEN19 : 1; + __IO uint16_t PEN20 : 1; + __IO uint16_t PEN21 : 1; + __IO uint16_t PEN22 : 1; + __IO uint16_t PEN23 : 1; +} stc_mft_ppg_trg1_field_t; + +typedef struct stc_mft_ppg_revc_field +{ + __IO uint16_t REV00 : 1; + __IO uint16_t REV01 : 1; + __IO uint16_t REV02 : 1; + __IO uint16_t REV03 : 1; + __IO uint16_t REV04 : 1; + __IO uint16_t REV05 : 1; + __IO uint16_t REV06 : 1; + __IO uint16_t REV07 : 1; + __IO uint16_t REV08 : 1; + __IO uint16_t REV09 : 1; + __IO uint16_t REV10 : 1; + __IO uint16_t REV11 : 1; + __IO uint16_t REV12 : 1; + __IO uint16_t REV13 : 1; + __IO uint16_t REV14 : 1; + __IO uint16_t REV15 : 1; +} stc_mft_ppg_revc_field_t; + +typedef struct stc_mft_ppg_revc1_field +{ + __IO uint16_t REV16 : 1; + __IO uint16_t REV17 : 1; + __IO uint16_t REV18 : 1; + __IO uint16_t REV19 : 1; + __IO uint16_t REV20 : 1; + __IO uint16_t REV21 : 1; + __IO uint16_t REV22 : 1; + __IO uint16_t REV23 : 1; +} stc_mft_ppg_revc1_field_t; + +typedef struct stc_mft_ppg_ppgc1_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc1_field_t; + +typedef struct stc_mft_ppg_ppgc0_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc0_field_t; + +typedef struct stc_mft_ppg_ppgc3_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc3_field_t; + +typedef struct stc_mft_ppg_ppgc2_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc2_field_t; + +typedef struct stc_mft_ppg_gatec0_field +{ + __IO uint8_t EDGE0 : 1; + __IO uint8_t STRG0 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE2 : 1; + __IO uint8_t STRG2 : 1; +} stc_mft_ppg_gatec0_field_t; + +typedef struct stc_mft_ppg_ppgc5_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc5_field_t; + +typedef struct stc_mft_ppg_ppgc4_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc4_field_t; + +typedef struct stc_mft_ppg_ppgc7_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc7_field_t; + +typedef struct stc_mft_ppg_ppgc6_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc6_field_t; + +typedef struct stc_mft_ppg_gatec4_field +{ + __IO uint8_t EDGE4 : 1; + __IO uint8_t STRG4 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE6 : 1; + __IO uint8_t STRG6 : 1; +} stc_mft_ppg_gatec4_field_t; + +typedef struct stc_mft_ppg_ppgc9_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc9_field_t; + +typedef struct stc_mft_ppg_ppgc8_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc8_field_t; + +typedef struct stc_mft_ppg_ppgc11_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc11_field_t; + +typedef struct stc_mft_ppg_ppgc10_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc10_field_t; + +typedef struct stc_mft_ppg_gatec8_field +{ + __IO uint8_t EDGE8 : 1; + __IO uint8_t STRG8 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE10 : 1; + __IO uint8_t STRG10 : 1; +} stc_mft_ppg_gatec8_field_t; + +typedef struct stc_mft_ppg_ppgc13_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc13_field_t; + +typedef struct stc_mft_ppg_ppgc12_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc12_field_t; + +typedef struct stc_mft_ppg_ppgc15_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc15_field_t; + +typedef struct stc_mft_ppg_ppgc14_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc14_field_t; + +typedef struct stc_mft_ppg_gatec12_field +{ + __IO uint8_t EDGE12 : 1; + __IO uint8_t STRG12 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE14 : 1; + __IO uint8_t STRG14 : 1; +} stc_mft_ppg_gatec12_field_t; + +typedef struct stc_mft_ppg_ppgc17_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc17_field_t; + +typedef struct stc_mft_ppg_ppgc16_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc16_field_t; + +typedef struct stc_mft_ppg_ppgc19_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc19_field_t; + +typedef struct stc_mft_ppg_ppgc18_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc18_field_t; + +typedef struct stc_mft_ppg_gatec16_field +{ + __IO uint8_t EDGE16 : 1; + __IO uint8_t STRG16 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE18 : 1; + __IO uint8_t STRG18 : 1; +} stc_mft_ppg_gatec16_field_t; + +typedef struct stc_mft_ppg_ppgc21_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc21_field_t; + +typedef struct stc_mft_ppg_ppgc20_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc20_field_t; + +typedef struct stc_mft_ppg_ppgc23_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc23_field_t; + +typedef struct stc_mft_ppg_ppgc22_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc22_field_t; + +typedef struct stc_mft_ppg_gatec20_field +{ + __IO uint8_t EDGE20 : 1; + __IO uint8_t STRG20 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE22 : 1; + __IO uint8_t STRG22 : 1; +} stc_mft_ppg_gatec20_field_t; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* BT_PPG_MODULE register bit fields */ +typedef struct stc_bt_ppg_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_ppg_tmcr_field_t; + +typedef struct stc_bt_ppg_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_ppg_stc_field_t; + +typedef struct stc_bt_ppg_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_ppg_tmcr2_field_t; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* BT_PWM_MODULE register bit fields */ +typedef struct stc_bt_pwm_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwm_tmcr_field_t; + +typedef struct stc_bt_pwm_stc_field +{ + __IO uint8_t UDIR : 1; + __IO uint8_t DTIR : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t UDIE : 1; + __IO uint8_t DTIE : 1; + __IO uint8_t TGIE : 1; +} stc_bt_pwm_stc_field_t; + +typedef struct stc_bt_pwm_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwm_tmcr2_field_t; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* BT_RT_MODULE register bit fields */ +typedef struct stc_bt_rt_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_rt_tmcr_field_t; + +typedef struct stc_bt_rt_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_rt_stc_field_t; + +typedef struct stc_bt_rt_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_rt_tmcr2_field_t; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* BT_PWC_MODULE register bit fields */ +typedef struct stc_bt_pwc_tmcr_field +{ + uint16_t RESERVED1 : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FMD0 : 1; + __IO uint16_t FMD1 : 1; + __IO uint16_t FMD2 : 1; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t EGS2 : 1; + uint16_t RESERVED3 : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwc_tmcr_field_t; + +typedef struct stc_bt_pwc_stc_field +{ + __IO uint8_t OVIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t EDIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t OVIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t EDIE : 1; + __IO uint8_t ERR : 1; +} stc_bt_pwc_stc_field_t; + +typedef struct stc_bt_pwc_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwc_tmcr2_field_t; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* BTIOSEL03_MODULE register bit fields */ +typedef struct stc_btiosel03_btsel0123_field +{ + __IO uint8_t SEL01_0 : 1; + __IO uint8_t SEL01_1 : 1; + __IO uint8_t SEL01_2 : 1; + __IO uint8_t SEL01_3 : 1; + __IO uint8_t SEL23_0 : 1; + __IO uint8_t SEL23_1 : 1; + __IO uint8_t SEL23_2 : 1; + __IO uint8_t SEL23_3 : 1; +} stc_btiosel03_btsel0123_field_t; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* BTIOSEL47_MODULE register bit fields */ +typedef struct stc_btiosel47_btsel4567_field +{ + __IO uint8_t SEL45_0 : 1; + __IO uint8_t SEL45_1 : 1; + __IO uint8_t SEL45_2 : 1; + __IO uint8_t SEL45_3 : 1; + __IO uint8_t SEL67_0 : 1; + __IO uint8_t SEL67_1 : 1; + __IO uint8_t SEL67_2 : 1; + __IO uint8_t SEL67_3 : 1; +} stc_btiosel47_btsel4567_field_t; + +/****************************************************************************** + * BTIOSEL811_MODULE + ******************************************************************************/ +/* BTIOSEL811_MODULE register bit fields */ +typedef struct stc_btiosel8b_btsel89ab_field +{ + __IO uint8_t SEL89_0 : 1; + __IO uint8_t SEL89_1 : 1; + __IO uint8_t SEL89_2 : 1; + __IO uint8_t SEL89_3 : 1; + __IO uint8_t SELAB_0 : 1; + __IO uint8_t SELAB_1 : 1; + __IO uint8_t SELAB_2 : 1; + __IO uint8_t SELAB_3 : 1; +} stc_btiosel8b_btsel89ab_field_t; + +/****************************************************************************** + * BTIOSEL1215_MODULE + ******************************************************************************/ +/* BTIOSEL1215_MODULE register bit fields */ +typedef struct stc_btioselcf_btselcdef_field +{ + __IO uint8_t SELCD_0 : 1; + __IO uint8_t SELCD_1 : 1; + __IO uint8_t SELCD_2 : 1; + __IO uint8_t SELCD_3 : 1; + __IO uint8_t SELEF_0 : 1; + __IO uint8_t SELEF_1 : 1; + __IO uint8_t SELEF_2 : 1; + __IO uint8_t SELEF_3 : 1; +} stc_btioselcf_btselcdef_field_t; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* SBSSR_MODULE register bit fields */ +typedef struct stc_sbssr_btsssr_field +{ + __IO uint16_t SSR0 : 1; + __IO uint16_t SSR1 : 1; + __IO uint16_t SSR2 : 1; + __IO uint16_t SSR3 : 1; + __IO uint16_t SSR4 : 1; + __IO uint16_t SSR5 : 1; + __IO uint16_t SSR6 : 1; + __IO uint16_t SSR7 : 1; + __IO uint16_t SSR8 : 1; + __IO uint16_t SSR9 : 1; + __IO uint16_t SSR10 : 1; + __IO uint16_t SSR11 : 1; + __IO uint16_t SSR12 : 1; + __IO uint16_t SSR13 : 1; + __IO uint16_t SSR14 : 1; + __IO uint16_t SSR15 : 1; +} stc_sbssr_btsssr_field_t; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* QPRC_MODULE register bit fields */ +typedef struct stc_qprc_qicr_field +{ + __IO uint16_t QPCMIE : 1; + __IO uint16_t QPCMF : 1; + __IO uint16_t QPRCMIE : 1; + __IO uint16_t QPRCMF : 1; + __IO uint16_t OUZIE : 1; + __IO uint16_t UFDF : 1; + __IO uint16_t OFDF : 1; + __IO uint16_t ZIIF : 1; + __IO uint16_t CDCIE : 1; + __IO uint16_t CDCF : 1; + __IO uint16_t DIRPC : 1; + __IO uint16_t DIROU : 1; + __IO uint16_t QPCNRCMIE : 1; + __IO uint16_t QPCNRCMF : 1; +} stc_qprc_qicr_field_t; + +typedef struct stc_qprc_qicrl_field +{ + __IO uint8_t QPCMIE : 1; + __IO uint8_t QPCMF : 1; + __IO uint8_t QPRCMIE : 1; + __IO uint8_t QPRCMF : 1; + __IO uint8_t OUZIE : 1; + __IO uint8_t UFDF : 1; + __IO uint8_t OFDF : 1; + __IO uint8_t ZIIF : 1; +} stc_qprc_qicrl_field_t; + +typedef struct stc_qprc_qicrh_field +{ + __IO uint8_t CDCIE : 1; + __IO uint8_t CDCF : 1; + __IO uint8_t DIRPC : 1; + __IO uint8_t DIROU : 1; + __IO uint8_t QPCNRCMIE : 1; + __IO uint8_t QPCNRCMF : 1; +} stc_qprc_qicrh_field_t; + +typedef struct stc_qprc_qcr_field +{ + __IO uint16_t PCM0 : 1; + __IO uint16_t PCM1 : 1; + __IO uint16_t RCM0 : 1; + __IO uint16_t RCM1 : 1; + __IO uint16_t PSTP : 1; + __IO uint16_t CGSC : 1; + __IO uint16_t RSEL : 1; + __IO uint16_t SWAP : 1; + __IO uint16_t PCRM0 : 1; + __IO uint16_t PCRM1 : 1; + __IO uint16_t AES0 : 1; + __IO uint16_t AES1 : 1; + __IO uint16_t BES0 : 1; + __IO uint16_t BES1 : 1; + __IO uint16_t CGE0 : 1; + __IO uint16_t CGE1 : 1; +} stc_qprc_qcr_field_t; + +typedef struct stc_qprc_qcrl_field +{ + __IO uint8_t PCM0 : 1; + __IO uint8_t PCM1 : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t PSTP : 1; + __IO uint8_t CGSC : 1; + __IO uint8_t RSEL : 1; + __IO uint8_t SWAP : 1; +} stc_qprc_qcrl_field_t; + +typedef struct stc_qprc_qcrh_field +{ + __IO uint8_t PCRM0 : 1; + __IO uint8_t PCRM1 : 1; + __IO uint8_t AES0 : 1; + __IO uint8_t AES1 : 1; + __IO uint8_t BES0 : 1; + __IO uint8_t BES1 : 1; + __IO uint8_t CGE0 : 1; + __IO uint8_t CGE1 : 1; +} stc_qprc_qcrh_field_t; + +typedef struct stc_qprc_qecr_field +{ + __IO uint16_t ORNGMD : 1; + __IO uint16_t ORNGF : 1; + __IO uint16_t ORNGIE : 1; +} stc_qprc_qecr_field_t; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* ADC12_MODULE register bit fields */ +typedef struct stc_adc_adsr_field +{ + __IO uint8_t SCS : 1; + __IO uint8_t PCS : 1; + __IO uint8_t PCNS : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t FDAS : 1; + __IO uint8_t ADSTP : 1; +} stc_adc_adsr_field_t; + +typedef struct stc_adc_adcr_field +{ + __IO uint8_t OVRIE : 1; + __IO uint8_t CMPIE : 1; + __IO uint8_t PCIE : 1; + __IO uint8_t SCIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t CMPIF : 1; + __IO uint8_t PCIF : 1; + __IO uint8_t SCIF : 1; +} stc_adc_adcr_field_t; + +typedef struct stc_adc_sfns_field +{ + __IO uint8_t SFS0 : 1; + __IO uint8_t SFS1 : 1; + __IO uint8_t SFS2 : 1; + __IO uint8_t SFS3 : 1; +} stc_adc_sfns_field_t; + +typedef struct stc_adc_sccr_field +{ + __IO uint8_t SSTR : 1; + __IO uint8_t SHEN : 1; + __IO uint8_t RPT : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t SFCLR : 1; + __IO uint8_t SOVR : 1; + __IO uint8_t SFUL : 1; + __IO uint8_t SEMP : 1; +} stc_adc_sccr_field_t; + +typedef struct stc_adc_scfd_field +{ + __IO uint32_t SC0 : 1; + __IO uint32_t SC1 : 1; + __IO uint32_t SC2 : 1; + __IO uint32_t SC3 : 1; + __IO uint32_t SC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; + __IO uint32_t SD3 : 1; + __IO uint32_t SD4 : 1; + __IO uint32_t SD5 : 1; + __IO uint32_t SD6 : 1; + __IO uint32_t SD7 : 1; + __IO uint32_t SD8 : 1; + __IO uint32_t SD9 : 1; + __IO uint32_t SD10 : 1; + __IO uint32_t SD11 : 1; +} stc_adc_scfd_field_t; + +typedef struct stc_adc_scfdl_field +{ + __IO uint16_t SC0 : 1; + __IO uint16_t SC1 : 1; + __IO uint16_t SC2 : 1; + __IO uint16_t SC3 : 1; + __IO uint16_t SC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t INVL : 1; +} stc_adc_scfdl_field_t; + +typedef struct stc_adc_scfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t SD0 : 1; + __IO uint16_t SD1 : 1; + __IO uint16_t SD2 : 1; + __IO uint16_t SD3 : 1; + __IO uint16_t SD4 : 1; + __IO uint16_t SD5 : 1; + __IO uint16_t SD6 : 1; + __IO uint16_t SD7 : 1; + __IO uint16_t SD8 : 1; + __IO uint16_t SD9 : 1; + __IO uint16_t SD10 : 1; + __IO uint16_t SD11 : 1; +} stc_adc_scfdh_field_t; + +typedef struct stc_adc_scis23_field +{ + __IO uint16_t AN16 : 1; + __IO uint16_t AN17 : 1; + __IO uint16_t AN18 : 1; + __IO uint16_t AN19 : 1; + __IO uint16_t AN20 : 1; + __IO uint16_t AN21 : 1; + __IO uint16_t AN22 : 1; + __IO uint16_t AN23 : 1; + __IO uint16_t AN24 : 1; + __IO uint16_t AN25 : 1; + __IO uint16_t AN26 : 1; + __IO uint16_t AN27 : 1; + __IO uint16_t AN28 : 1; + __IO uint16_t AN29 : 1; + __IO uint16_t AN30 : 1; + __IO uint16_t AN31 : 1; +} stc_adc_scis23_field_t; + +typedef struct stc_adc_scis2_field +{ + __IO uint8_t AN16 : 1; + __IO uint8_t AN17 : 1; + __IO uint8_t AN18 : 1; + __IO uint8_t AN19 : 1; + __IO uint8_t AN20 : 1; + __IO uint8_t AN21 : 1; + __IO uint8_t AN22 : 1; + __IO uint8_t AN23 : 1; +} stc_adc_scis2_field_t; + +typedef struct stc_adc_scis3_field +{ + __IO uint8_t AN24 : 1; + __IO uint8_t AN25 : 1; + __IO uint8_t AN26 : 1; + __IO uint8_t AN27 : 1; + __IO uint8_t AN28 : 1; + __IO uint8_t AN29 : 1; + __IO uint8_t AN30 : 1; + __IO uint8_t AN31 : 1; +} stc_adc_scis3_field_t; + +typedef struct stc_adc_scis01_field +{ + __IO uint16_t AN0 : 1; + __IO uint16_t AN1 : 1; + __IO uint16_t AN2 : 1; + __IO uint16_t AN3 : 1; + __IO uint16_t AN4 : 1; + __IO uint16_t AN5 : 1; + __IO uint16_t AN6 : 1; + __IO uint16_t AN7 : 1; + __IO uint16_t AN8 : 1; + __IO uint16_t AN9 : 1; + __IO uint16_t AN10 : 1; + __IO uint16_t AN11 : 1; + __IO uint16_t AN12 : 1; + __IO uint16_t AN13 : 1; + __IO uint16_t AN14 : 1; + __IO uint16_t AN15 : 1; +} stc_adc_scis01_field_t; + +typedef struct stc_adc_scis0_field +{ + __IO uint8_t AN0 : 1; + __IO uint8_t AN1 : 1; + __IO uint8_t AN2 : 1; + __IO uint8_t AN3 : 1; + __IO uint8_t AN4 : 1; + __IO uint8_t AN5 : 1; + __IO uint8_t AN6 : 1; + __IO uint8_t AN7 : 1; +} stc_adc_scis0_field_t; + +typedef struct stc_adc_scis1_field +{ + __IO uint8_t AN8 : 1; + __IO uint8_t AN9 : 1; + __IO uint8_t AN10 : 1; + __IO uint8_t AN11 : 1; + __IO uint8_t AN12 : 1; + __IO uint8_t AN13 : 1; + __IO uint8_t AN14 : 1; + __IO uint8_t AN15 : 1; +} stc_adc_scis1_field_t; + +typedef struct stc_adc_pfns_field +{ + __IO uint8_t PFS0 : 1; + __IO uint8_t PFS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t TEST0 : 1; + __IO uint8_t TEST1 : 1; +} stc_adc_pfns_field_t; + +typedef struct stc_adc_pccr_field +{ + __IO uint8_t PSTR : 1; + __IO uint8_t PHEN : 1; + __IO uint8_t PEEN : 1; + __IO uint8_t ESCE : 1; + __IO uint8_t PFCLR : 1; + __IO uint8_t POVR : 1; + __IO uint8_t PFUL : 1; + __IO uint8_t PEMP : 1; +} stc_adc_pccr_field_t; + +typedef struct stc_adc_pcfd_field +{ + __IO uint32_t PC0 : 1; + __IO uint32_t PC1 : 1; + __IO uint32_t PC2 : 1; + __IO uint32_t PC3 : 1; + __IO uint32_t PC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + __IO uint32_t RS2 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t PD0 : 1; + __IO uint32_t PD1 : 1; + __IO uint32_t PD2 : 1; + __IO uint32_t PD3 : 1; + __IO uint32_t PD4 : 1; + __IO uint32_t PD5 : 1; + __IO uint32_t PD6 : 1; + __IO uint32_t PD7 : 1; + __IO uint32_t PD8 : 1; + __IO uint32_t PD9 : 1; + __IO uint32_t PD10 : 1; + __IO uint32_t PD11 : 1; +} stc_adc_pcfd_field_t; + +typedef struct stc_adc_pcfdl_field +{ + __IO uint16_t PC0 : 1; + __IO uint16_t PC1 : 1; + __IO uint16_t PC2 : 1; + __IO uint16_t PC3 : 1; + __IO uint16_t PC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + __IO uint16_t RS2 : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t INVL : 1; +} stc_adc_pcfdl_field_t; + +typedef struct stc_adc_pcfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t PD0 : 1; + __IO uint16_t PD1 : 1; + __IO uint16_t PD2 : 1; + __IO uint16_t PD3 : 1; + __IO uint16_t PD4 : 1; + __IO uint16_t PD5 : 1; + __IO uint16_t PD6 : 1; + __IO uint16_t PD7 : 1; + __IO uint16_t PD8 : 1; + __IO uint16_t PD9 : 1; + __IO uint16_t PD10 : 1; + __IO uint16_t PD11 : 1; +} stc_adc_pcfdh_field_t; + +typedef struct stc_adc_pcis_field +{ + __IO uint8_t P1A0 : 1; + __IO uint8_t P1A1 : 1; + __IO uint8_t P1A2 : 1; + __IO uint8_t P2A0 : 1; + __IO uint8_t P2A1 : 1; + __IO uint8_t P2A2 : 1; + __IO uint8_t P2A3 : 1; + __IO uint8_t P2A4 : 1; +} stc_adc_pcis_field_t; + +typedef struct stc_adc_cmpcr_field +{ + __IO uint8_t CCH0 : 1; + __IO uint8_t CCH1 : 1; + __IO uint8_t CCH2 : 1; + __IO uint8_t CCH3 : 1; + __IO uint8_t CCH4 : 1; + __IO uint8_t CMD0 : 1; + __IO uint8_t CMD1 : 1; + __IO uint8_t CMPEN : 1; +} stc_adc_cmpcr_field_t; + +typedef struct stc_adc_cmpd_field +{ + uint16_t RESERVED1 : 6; + __IO uint16_t CMAD2 : 1; + __IO uint16_t CMAD3 : 1; + __IO uint16_t CMAD4 : 1; + __IO uint16_t CMAD5 : 1; + __IO uint16_t CMAD6 : 1; + __IO uint16_t CMAD7 : 1; + __IO uint16_t CMAD8 : 1; + __IO uint16_t CMAD9 : 1; + __IO uint16_t CMAD10 : 1; + __IO uint16_t CMAD11 : 1; +} stc_adc_cmpd_field_t; + +typedef struct stc_adc_adss23_field +{ + __IO uint16_t TS16 : 1; + __IO uint16_t TS17 : 1; + __IO uint16_t TS18 : 1; + __IO uint16_t TS19 : 1; + __IO uint16_t TS20 : 1; + __IO uint16_t TS21 : 1; + __IO uint16_t TS22 : 1; + __IO uint16_t TS23 : 1; + __IO uint16_t TS24 : 1; + __IO uint16_t TS25 : 1; + __IO uint16_t TS26 : 1; + __IO uint16_t TS27 : 1; + __IO uint16_t TS28 : 1; + __IO uint16_t TS29 : 1; + __IO uint16_t TS30 : 1; + __IO uint16_t TS31 : 1; +} stc_adc_adss23_field_t; + +typedef struct stc_adc_adss2_field +{ + __IO uint8_t TS16 : 1; + __IO uint8_t TS17 : 1; + __IO uint8_t TS18 : 1; + __IO uint8_t TS19 : 1; + __IO uint8_t TS20 : 1; + __IO uint8_t TS21 : 1; + __IO uint8_t TS22 : 1; + __IO uint8_t TS23 : 1; +} stc_adc_adss2_field_t; + +typedef struct stc_adc_adss3_field +{ + __IO uint8_t TS24 : 1; + __IO uint8_t TS25 : 1; + __IO uint8_t TS26 : 1; + __IO uint8_t TS27 : 1; + __IO uint8_t TS28 : 1; + __IO uint8_t TS29 : 1; + __IO uint8_t TS30 : 1; + __IO uint8_t TS31 : 1; +} stc_adc_adss3_field_t; + +typedef struct stc_adc_adss01_field +{ + __IO uint16_t TS0 : 1; + __IO uint16_t TS1 : 1; + __IO uint16_t TS2 : 1; + __IO uint16_t TS3 : 1; + __IO uint16_t TS4 : 1; + __IO uint16_t TS5 : 1; + __IO uint16_t TS6 : 1; + __IO uint16_t TS7 : 1; + __IO uint16_t TS8 : 1; + __IO uint16_t TS9 : 1; + __IO uint16_t TS10 : 1; + __IO uint16_t TS11 : 1; + __IO uint16_t TS12 : 1; + __IO uint16_t TS13 : 1; + __IO uint16_t TS14 : 1; + __IO uint16_t TS15 : 1; +} stc_adc_adss01_field_t; + +typedef struct stc_adc_adss0_field +{ + __IO uint8_t TS0 : 1; + __IO uint8_t TS1 : 1; + __IO uint8_t TS2 : 1; + __IO uint8_t TS3 : 1; + __IO uint8_t TS4 : 1; + __IO uint8_t TS5 : 1; + __IO uint8_t TS6 : 1; + __IO uint8_t TS7 : 1; +} stc_adc_adss0_field_t; + +typedef struct stc_adc_adss1_field +{ + __IO uint8_t TS8 : 1; + __IO uint8_t TS9 : 1; + __IO uint8_t TS10 : 1; + __IO uint8_t TS11 : 1; + __IO uint8_t TS12 : 1; + __IO uint8_t TS13 : 1; + __IO uint8_t TS14 : 1; + __IO uint8_t TS15 : 1; +} stc_adc_adss1_field_t; + +typedef struct stc_adc_adst01_field +{ + __IO uint16_t ST10 : 1; + __IO uint16_t ST11 : 1; + __IO uint16_t ST12 : 1; + __IO uint16_t ST13 : 1; + __IO uint16_t ST14 : 1; + __IO uint16_t STX10 : 1; + __IO uint16_t STX11 : 1; + __IO uint16_t STX12 : 1; + __IO uint16_t ST00 : 1; + __IO uint16_t ST01 : 1; + __IO uint16_t ST02 : 1; + __IO uint16_t ST03 : 1; + __IO uint16_t ST04 : 1; + __IO uint16_t STX00 : 1; + __IO uint16_t STX01 : 1; + __IO uint16_t STX02 : 1; +} stc_adc_adst01_field_t; + +typedef struct stc_adc_adst1_field +{ + __IO uint8_t ST10 : 1; + __IO uint8_t ST11 : 1; + __IO uint8_t ST12 : 1; + __IO uint8_t ST13 : 1; + __IO uint8_t ST14 : 1; + __IO uint8_t STX10 : 1; + __IO uint8_t STX11 : 1; + __IO uint8_t STX12 : 1; +} stc_adc_adst1_field_t; + +typedef struct stc_adc_adst0_field +{ + __IO uint8_t ST00 : 1; + __IO uint8_t ST01 : 1; + __IO uint8_t ST02 : 1; + __IO uint8_t ST03 : 1; + __IO uint8_t ST04 : 1; + __IO uint8_t STX00 : 1; + __IO uint8_t STX01 : 1; + __IO uint8_t STX02 : 1; +} stc_adc_adst0_field_t; + +typedef struct stc_adc_adct_field +{ + __IO uint8_t CT0 : 1; + __IO uint8_t CT1 : 1; + __IO uint8_t CT2 : 1; + __IO uint8_t CT3 : 1; + __IO uint8_t CT4 : 1; + __IO uint8_t CT5 : 1; + __IO uint8_t CT6 : 1; + __IO uint8_t CT7 : 1; +} stc_adc_adct_field_t; + +typedef struct stc_adc_prtsl_field +{ + __IO uint8_t PRTSL0 : 1; + __IO uint8_t PRTSL1 : 1; + __IO uint8_t PRTSL2 : 1; + __IO uint8_t PRTSL3 : 1; +} stc_adc_prtsl_field_t; + +typedef struct stc_adc_sctsl_field +{ + __IO uint8_t SCTSL0 : 1; + __IO uint8_t SCTSL1 : 1; + __IO uint8_t SCTSL2 : 1; + __IO uint8_t SCTSL3 : 1; +} stc_adc_sctsl_field_t; + +typedef struct stc_adc_adcen_field +{ + __IO uint8_t ENBL : 1; + __IO uint8_t READY : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CYCLSL0 : 1; + __IO uint8_t CYCLSL1 : 1; +} stc_adc_adcen_field_t; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CRTRIM_MODULE register bit fields */ +typedef struct stc_crtrim_mcr_psr_field +{ + __IO uint8_t CSR0 : 1; + __IO uint8_t CSR1 : 1; +} stc_crtrim_mcr_psr_field_t; + +typedef struct stc_crtrim_mcr_ftrm_field +{ + __IO uint16_t TRD0 : 1; + __IO uint16_t TRD1 : 1; + __IO uint16_t TRD2 : 1; + __IO uint16_t TRD3 : 1; + __IO uint16_t TRD4 : 1; + __IO uint16_t TRD5 : 1; + __IO uint16_t TRD6 : 1; + __IO uint16_t TRD7 : 1; +} stc_crtrim_mcr_ftrm_field_t; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* EXTI_MODULE registEN bit fields */ +typedef struct stc_exti_enir_field +{ + __IO uint16_t EN0 : 1; + __IO uint16_t EN1 : 1; + __IO uint16_t EN2 : 1; + __IO uint16_t EN3 : 1; + __IO uint16_t EN4 : 1; + __IO uint16_t EN5 : 1; + __IO uint16_t EN6 : 1; + __IO uint16_t EN7 : 1; + __IO uint16_t EN8 : 1; + __IO uint16_t EN9 : 1; + __IO uint16_t EN10 : 1; + __IO uint16_t EN11 : 1; + __IO uint16_t EN12 : 1; + __IO uint16_t EN13 : 1; + __IO uint16_t EN14 : 1; + __IO uint16_t EN15 : 1; + __IO uint16_t EN16 : 1; + __IO uint16_t EN17 : 1; + __IO uint16_t EN18 : 1; + __IO uint16_t EN19 : 1; + __IO uint16_t EN20 : 1; + __IO uint16_t EN21 : 1; + __IO uint16_t EN22 : 1; + __IO uint16_t EN23 : 1; + __IO uint16_t EN24 : 1; + __IO uint16_t EN25 : 1; + __IO uint16_t EN26 : 1; + __IO uint16_t EN27 : 1; + __IO uint16_t EN28 : 1; + __IO uint16_t EN29 : 1; + __IO uint16_t EN30 : 1; + __IO uint16_t EN31 : 1; +} stc_exti_enir_field_t; + +typedef struct stc_exti_eirr_field +{ + __IO uint16_t ER0 : 1; + __IO uint16_t ER1 : 1; + __IO uint16_t ER2 : 1; + __IO uint16_t ER3 : 1; + __IO uint16_t ER4 : 1; + __IO uint16_t ER5 : 1; + __IO uint16_t ER6 : 1; + __IO uint16_t ER7 : 1; + __IO uint16_t ER8 : 1; + __IO uint16_t ER9 : 1; + __IO uint16_t ER10 : 1; + __IO uint16_t ER11 : 1; + __IO uint16_t ER12 : 1; + __IO uint16_t ER13 : 1; + __IO uint16_t ER14 : 1; + __IO uint16_t ER15 : 1; + __IO uint16_t ER16 : 1; + __IO uint16_t ER17 : 1; + __IO uint16_t ER18 : 1; + __IO uint16_t ER19 : 1; + __IO uint16_t ER20 : 1; + __IO uint16_t ER21 : 1; + __IO uint16_t ER22 : 1; + __IO uint16_t ER23 : 1; + __IO uint16_t ER24 : 1; + __IO uint16_t ER25 : 1; + __IO uint16_t ER26 : 1; + __IO uint16_t ER27 : 1; + __IO uint16_t ER28 : 1; + __IO uint16_t ER29 : 1; + __IO uint16_t ER30 : 1; + __IO uint16_t ER31 : 1; +} stc_exti_eirr_field_t; + +typedef struct stc_exti_eicl_field +{ + __IO uint16_t ECL0 : 1; + __IO uint16_t ECL1 : 1; + __IO uint16_t ECL2 : 1; + __IO uint16_t ECL3 : 1; + __IO uint16_t ECL4 : 1; + __IO uint16_t ECL5 : 1; + __IO uint16_t ECL6 : 1; + __IO uint16_t ECL7 : 1; + __IO uint16_t ECL8 : 1; + __IO uint16_t ECL9 : 1; + __IO uint16_t ECL10 : 1; + __IO uint16_t ECL11 : 1; + __IO uint16_t ECL12 : 1; + __IO uint16_t ECL13 : 1; + __IO uint16_t ECL14 : 1; + __IO uint16_t ECL15 : 1; + __IO uint16_t ECL16 : 1; + __IO uint16_t ECL17 : 1; + __IO uint16_t ECL18 : 1; + __IO uint16_t ECL19 : 1; + __IO uint16_t ECL20 : 1; + __IO uint16_t ECL21 : 1; + __IO uint16_t ECL22 : 1; + __IO uint16_t ECL23 : 1; + __IO uint16_t ECL24 : 1; + __IO uint16_t ECL25 : 1; + __IO uint16_t ECL26 : 1; + __IO uint16_t ECL27 : 1; + __IO uint16_t ECL28 : 1; + __IO uint16_t ECL29 : 1; + __IO uint16_t ECL30 : 1; + __IO uint16_t ECL31 : 1; +} stc_exti_eicl_field_t; + +typedef struct stc_exti_elvr_field +{ + __IO uint32_t LA0 : 1; + __IO uint32_t LB0 : 1; + __IO uint32_t LA1 : 1; + __IO uint32_t LB1 : 1; + __IO uint32_t LA2 : 1; + __IO uint32_t LB2 : 1; + __IO uint32_t LA3 : 1; + __IO uint32_t LB3 : 1; + __IO uint32_t LA4 : 1; + __IO uint32_t LB4 : 1; + __IO uint32_t LA5 : 1; + __IO uint32_t LB5 : 1; + __IO uint32_t LA6 : 1; + __IO uint32_t LB6 : 1; + __IO uint32_t LA7 : 1; + __IO uint32_t LB7 : 1; + __IO uint32_t LA8 : 1; + __IO uint32_t LB8 : 1; + __IO uint32_t LA9 : 1; + __IO uint32_t LB9 : 1; + __IO uint32_t LA10 : 1; + __IO uint32_t LB10 : 1; + __IO uint32_t LA11 : 1; + __IO uint32_t LB11 : 1; + __IO uint32_t LA12 : 1; + __IO uint32_t LB12 : 1; + __IO uint32_t LA13 : 1; + __IO uint32_t LB13 : 1; + __IO uint32_t LA14 : 1; + __IO uint32_t LB14 : 1; + __IO uint32_t LA15 : 1; + __IO uint32_t LB15 : 1; +} stc_exti_elvr_field_t; + +typedef struct stc_exti_elvr1_field +{ + __IO uint32_t LA16 : 1; + __IO uint32_t LB16 : 1; + __IO uint32_t LA17 : 1; + __IO uint32_t LB17 : 1; + __IO uint32_t LA18 : 1; + __IO uint32_t LB18 : 1; + __IO uint32_t LA19 : 1; + __IO uint32_t LB19 : 1; + __IO uint32_t LA20 : 1; + __IO uint32_t LB20 : 1; + __IO uint32_t LA21 : 1; + __IO uint32_t LB21 : 1; + __IO uint32_t LA22 : 1; + __IO uint32_t LB22 : 1; + __IO uint32_t LA23 : 1; + __IO uint32_t LB23 : 1; + __IO uint32_t LA24 : 1; + __IO uint32_t LB24 : 1; + __IO uint32_t LA25 : 1; + __IO uint32_t LB25 : 1; + __IO uint32_t LA26 : 1; + __IO uint32_t LB26 : 1; + __IO uint32_t LA27 : 1; + __IO uint32_t LB27 : 1; + __IO uint32_t LA28 : 1; + __IO uint32_t LB28 : 1; + __IO uint32_t LA29 : 1; + __IO uint32_t LB29 : 1; + __IO uint32_t LA30 : 1; + __IO uint32_t LB30 : 1; + __IO uint32_t LA31 : 1; + __IO uint32_t LB31 : 1; +} stc_exti_elvr1_field_t; + +typedef struct stc_exti_nmirr_field +{ + __IO uint8_t NR0 : 1; +} stc_exti_nmirr_field_t; + +typedef struct stc_exti_nmicl_field +{ + __IO uint8_t NCL0 : 1; +} stc_exti_nmicl_field_t; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* INTREQ_MODULE register bit fields */ +typedef struct stc_intreq_drqsel_field +{ + __IO uint32_t DRQSEL0 : 1; + __IO uint32_t DRQSEL1 : 1; + __IO uint32_t DRQSEL2 : 1; + __IO uint32_t DRQSEL3 : 1; + __IO uint32_t DRQSEL4 : 1; + __IO uint32_t DRQSEL5 : 1; + __IO uint32_t DRQSEL6 : 1; + __IO uint32_t DRQSEL7 : 1; + __IO uint32_t DRQSEL8 : 1; + __IO uint32_t DRQSEL9 : 1; + __IO uint32_t DRQSEL10 : 1; + __IO uint32_t DRQSEL11 : 1; + __IO uint32_t DRQSEL12 : 1; + __IO uint32_t DRQSEL13 : 1; + __IO uint32_t DRQSEL14 : 1; + __IO uint32_t DRQSEL15 : 1; + __IO uint32_t DRQSEL16 : 1; + __IO uint32_t DRQSEL17 : 1; + __IO uint32_t DRQSEL18 : 1; + __IO uint32_t DRQSEL19 : 1; + __IO uint32_t DRQSEL20 : 1; + __IO uint32_t DRQSEL21 : 1; + __IO uint32_t DRQSEL22 : 1; + __IO uint32_t DRQSEL23 : 1; + __IO uint32_t DRQSEL24 : 1; + __IO uint32_t DRQSEL25 : 1; + __IO uint32_t DRQSEL26 : 1; + __IO uint32_t DRQSEL27 : 1; + __IO uint32_t DRQSEL28 : 1; + __IO uint32_t DRQSEL29 : 1; + __IO uint32_t DRQSEL30 : 1; + __IO uint32_t DRQSEL31 : 1; +} stc_intreq_drqsel_field_t; + +typedef struct stc_intreq_oddpks_field +{ + __IO uint8_t ODDPKS0 : 1; + __IO uint8_t ODDPKS1 : 1; + __IO uint8_t ODDPKS2 : 1; + __IO uint8_t ODDPKS3 : 1; + __IO uint8_t ODDPKS4 : 1; +} stc_intreq_oddpks_field_t; + +typedef struct stc_intreq_exc02mon_field +{ + __IO uint32_t NMI : 1; + __IO uint32_t HWINT : 1; +} stc_intreq_exc02mon_field_t; + +typedef struct stc_intreq_irq00mon_field +{ + __IO uint32_t FCSINT : 1; +} stc_intreq_irq00mon_field_t; + +typedef struct stc_intreq_irq01mon_field +{ + __IO uint32_t SWWDTINT : 1; +} stc_intreq_irq01mon_field_t; + +typedef struct stc_intreq_irq02mon_field +{ + __IO uint32_t LVDINT : 1; +} stc_intreq_irq02mon_field_t; + +typedef struct stc_intreq_irq03mon_field +{ + __IO uint32_t WAVE0INT0 : 1; + __IO uint32_t WAVE0INT1 : 1; + __IO uint32_t WAVE0INT2 : 1; + __IO uint32_t WAVE0INT3 : 1; + __IO uint32_t WAVE1INT0 : 1; + __IO uint32_t WAVE1INT1 : 1; + __IO uint32_t WAVE1INT2 : 1; + __IO uint32_t WAVE1INT3 : 1; + __IO uint32_t WAVE2INT0 : 1; + __IO uint32_t WAVE2INT1 : 1; + __IO uint32_t WAVE2INT2 : 1; + __IO uint32_t WAVE2INT3 : 1; +} stc_intreq_irq03mon_field_t; + +typedef struct stc_intreq_irq04mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; + __IO uint32_t EXTINT4 : 1; + __IO uint32_t EXTINT5 : 1; + __IO uint32_t EXTINT6 : 1; + __IO uint32_t EXTINT7 : 1; +} stc_intreq_irq04mon_field_t; + +typedef struct stc_intreq_irq05mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; + __IO uint32_t EXTINT4 : 1; + __IO uint32_t EXTINT5 : 1; + __IO uint32_t EXTINT6 : 1; + __IO uint32_t EXTINT7 : 1; + __IO uint32_t EXTINT8 : 1; + __IO uint32_t EXTINT9 : 1; + __IO uint32_t EXTINT10 : 1; + __IO uint32_t EXTINT11 : 1; + __IO uint32_t EXTINT12 : 1; + __IO uint32_t EXTINT13 : 1; + __IO uint32_t EXTINT14 : 1; + __IO uint32_t EXTINT15 : 1; + __IO uint32_t EXTINT16 : 1; + __IO uint32_t EXTINT17 : 1; + __IO uint32_t EXTINT18 : 1; + __IO uint32_t EXTINT19 : 1; + __IO uint32_t EXTINT20 : 1; + __IO uint32_t EXTINT21 : 1; + __IO uint32_t EXTINT22 : 1; + __IO uint32_t EXTINT23 : 1; +} stc_intreq_irq05mon_field_t; + +typedef struct stc_intreq_irq06mon_field +{ + __IO uint32_t TIMINT1 : 1; + __IO uint32_t TIMINT2 : 1; + __IO uint32_t QUD0INT0 : 1; + __IO uint32_t QUD0INT1 : 1; + __IO uint32_t QUD0INT2 : 1; + __IO uint32_t QUD0INT3 : 1; + __IO uint32_t QUD0INT4 : 1; + __IO uint32_t QUD0INT5 : 1; + __IO uint32_t QUD1INT0 : 1; + __IO uint32_t QUD1INT1 : 1; + __IO uint32_t QUD1INT2 : 1; + __IO uint32_t QUD1INT3 : 1; + __IO uint32_t QUD1INT4 : 1; + __IO uint32_t QUD1INT5 : 1; + __IO uint32_t QUD2INT0 : 1; + __IO uint32_t QUD2INT1 : 1; + __IO uint32_t QUD2INT2 : 1; + __IO uint32_t QUD2INT3 : 1; + __IO uint32_t QUD2INT4 : 1; + __IO uint32_t QUD2INT5 : 1; +} stc_intreq_irq06mon_field_t; + +typedef struct stc_intreq_irq07mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq07mon_field_t; + +typedef struct stc_intreq_irq08mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq08mon_field_t; + +typedef struct stc_intreq_irq09mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq09mon_field_t; + +typedef struct stc_intreq_irq10mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq10mon_field_t; + +typedef struct stc_intreq_irq11mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq11mon_field_t; + +typedef struct stc_intreq_irq12mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq12mon_field_t; + +typedef struct stc_intreq_irq13mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq13mon_field_t; + +typedef struct stc_intreq_irq14mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq14mon_field_t; + +typedef struct stc_intreq_irq15mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq15mon_field_t; + +typedef struct stc_intreq_irq16mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq16mon_field_t; + +typedef struct stc_intreq_irq17mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq17mon_field_t; + +typedef struct stc_intreq_irq18mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq18mon_field_t; + +typedef struct stc_intreq_irq19mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq19mon_field_t; + +typedef struct stc_intreq_irq20mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq20mon_field_t; + +typedef struct stc_intreq_irq21mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq21mon_field_t; + +typedef struct stc_intreq_irq22mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq22mon_field_t; + +typedef struct stc_intreq_irq23mon_field +{ + __IO uint32_t PPGINT0 : 1; + __IO uint32_t PPGINT1 : 1; + __IO uint32_t PPGINT2 : 1; + __IO uint32_t PPGINT3 : 1; + __IO uint32_t PPGINT4 : 1; + __IO uint32_t PPGINT5 : 1; + __IO uint32_t PPGINT6 : 1; + __IO uint32_t PPGINT7 : 1; + __IO uint32_t PPGINT8 : 1; +} stc_intreq_irq23mon_field_t; + +typedef struct stc_intreq_irq24mon_field +{ + __IO uint32_t MOSCINT : 1; + __IO uint32_t SOSCINT : 1; + __IO uint32_t MPLLINT : 1; + __IO uint32_t UPLLINT : 1; + __IO uint32_t WCINT : 1; +} stc_intreq_irq24mon_field_t; + +typedef struct stc_intreq_irq25mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq25mon_field_t; + +typedef struct stc_intreq_irq26mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq26mon_field_t; + +typedef struct stc_intreq_irq27mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq27mon_field_t; + +typedef struct stc_intreq_irq28mon_field +{ + __IO uint32_t FRT0INT0 : 1; + __IO uint32_t FRT0INT1 : 1; + __IO uint32_t FRT0INT2 : 1; + __IO uint32_t FRT0INT3 : 1; + __IO uint32_t FRT0INT4 : 1; + __IO uint32_t FRT0INT5 : 1; + __IO uint32_t FRT1INT0 : 1; + __IO uint32_t FRT1INT1 : 1; + __IO uint32_t FRT1INT2 : 1; + __IO uint32_t FRT1INT3 : 1; + __IO uint32_t FRT1INT4 : 1; + __IO uint32_t FRT1INT5 : 1; + __IO uint32_t FRT2INT0 : 1; + __IO uint32_t FRT2INT1 : 1; + __IO uint32_t FRT2INT2 : 1; + __IO uint32_t FRT2INT3 : 1; + __IO uint32_t FRT2INT4 : 1; + __IO uint32_t FRT2INT5 : 1; +} stc_intreq_irq28mon_field_t; + +typedef struct stc_intreq_irq29mon_field +{ + __IO uint32_t ICU0INT0 : 1; + __IO uint32_t ICU0INT1 : 1; + __IO uint32_t ICU0INT2 : 1; + __IO uint32_t ICU0INT3 : 1; + __IO uint32_t ICU1INT0 : 1; + __IO uint32_t ICU1INT1 : 1; + __IO uint32_t ICU1INT2 : 1; + __IO uint32_t ICU1INT3 : 1; + __IO uint32_t ICU2INT0 : 1; + __IO uint32_t ICU2INT1 : 1; + __IO uint32_t ICU2INT2 : 1; + __IO uint32_t ICU2INT3 : 1; +} stc_intreq_irq29mon_field_t; + +typedef struct stc_intreq_irq30mon_field +{ + __IO uint32_t OCU0INT0 : 1; + __IO uint32_t OCU0INT1 : 1; + __IO uint32_t OCU0INT2 : 1; + __IO uint32_t OCU0INT3 : 1; + __IO uint32_t OCU0INT4 : 1; + __IO uint32_t OCU0INT5 : 1; + __IO uint32_t OCU1INT0 : 1; + __IO uint32_t OCU1INT1 : 1; + __IO uint32_t OCU1INT2 : 1; + __IO uint32_t OCU1INT3 : 1; + __IO uint32_t OCU1INT4 : 1; + __IO uint32_t OCU1INT5 : 1; + __IO uint32_t OCU2INT0 : 1; + __IO uint32_t OCU2INT1 : 1; + __IO uint32_t OCU2INT2 : 1; + __IO uint32_t OCU2INT3 : 1; + __IO uint32_t OCU2INT4 : 1; + __IO uint32_t OCU2INT5 : 1; +} stc_intreq_irq30mon_field_t; + +typedef struct stc_intreq_irq31mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; + __IO uint32_t BTINT2 : 1; + __IO uint32_t BTINT3 : 1; + __IO uint32_t BTINT4 : 1; + __IO uint32_t BTINT5 : 1; + __IO uint32_t BTINT6 : 1; + __IO uint32_t BTINT7 : 1; + __IO uint32_t BTINT8 : 1; + __IO uint32_t BTINT9 : 1; + __IO uint32_t BTINT10 : 1; + __IO uint32_t BTINT11 : 1; + __IO uint32_t BTINT12 : 1; + __IO uint32_t BTINT13 : 1; + __IO uint32_t BTINT14 : 1; + __IO uint32_t BTINT15 : 1; +} stc_intreq_irq31mon_field_t; + +typedef struct stc_intreq_irq32mon_field +{ + uint32_t RESERVED1 : 1; + __IO uint32_t MAC0SBD : 1; + __IO uint32_t MAC0PMI : 1; + __IO uint32_t MAC0LPI : 1; +} stc_intreq_irq32mon_field_t; + +typedef struct stc_intreq_irq33mon_field +{ + uint32_t RESERVED1 : 1; + __IO uint32_t MAC1SBD : 1; + __IO uint32_t MAC1PMI : 1; +} stc_intreq_irq33mon_field_t; + +typedef struct stc_intreq_irq34mon_field +{ + __IO uint32_t USB0INT0 : 1; + __IO uint32_t USB0INT1 : 1; + __IO uint32_t USB0INT2 : 1; + __IO uint32_t USB0INT3 : 1; + __IO uint32_t USB0INT4 : 1; +} stc_intreq_irq34mon_field_t; + +typedef struct stc_intreq_irq35mon_field +{ + __IO uint32_t USB0INT0 : 1; + __IO uint32_t USB0INT1 : 1; + __IO uint32_t USB0INT2 : 1; + __IO uint32_t USB0INT3 : 1; + __IO uint32_t USB0INT4 : 1; + __IO uint32_t USB0INT5 : 1; +} stc_intreq_irq35mon_field_t; + +typedef struct stc_intreq_irq36mon_field +{ + __IO uint32_t USB1INT0 : 1; + __IO uint32_t USB1INT1 : 1; + __IO uint32_t USB1INT2 : 1; + __IO uint32_t USB1INT3 : 1; + __IO uint32_t USB1INT4 : 1; +} stc_intreq_irq36mon_field_t; + +typedef struct stc_intreq_irq37mon_field +{ + __IO uint32_t USB1INT0 : 1; + __IO uint32_t USB1INT1 : 1; + __IO uint32_t USB1INT2 : 1; + __IO uint32_t USB1INT3 : 1; + __IO uint32_t USB1INT4 : 1; + __IO uint32_t USB1INT5 : 1; +} stc_intreq_irq37mon_field_t; + +typedef struct stc_intreq_irq38mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq38mon_field_t; + +typedef struct stc_intreq_irq39mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq39mon_field_t; + +typedef struct stc_intreq_irq40mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq40mon_field_t; + +typedef struct stc_intreq_irq41mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq41mon_field_t; + +typedef struct stc_intreq_irq42mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq42mon_field_t; + +typedef struct stc_intreq_irq43mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq43mon_field_t; + +typedef struct stc_intreq_irq44mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq44mon_field_t; + +typedef struct stc_intreq_irq45mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq45mon_field_t; + +typedef struct stc_intreq_irq46mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; + __IO uint32_t BTINT2 : 1; + __IO uint32_t BTINT3 : 1; + __IO uint32_t BTINT4 : 1; + __IO uint32_t BTINT5 : 1; + __IO uint32_t BTINT6 : 1; + __IO uint32_t BTINT7 : 1; + __IO uint32_t BTINT8 : 1; + __IO uint32_t BTINT9 : 1; + __IO uint32_t BTINT10 : 1; + __IO uint32_t BTINT11 : 1; + __IO uint32_t BTINT12 : 1; + __IO uint32_t BTINT13 : 1; + __IO uint32_t BTINT14 : 1; + __IO uint32_t BTINT15 : 1; +} stc_intreq_irq46mon_field_t; + +typedef struct stc_intreq_drqsel1_field +{ + __IO uint32_t DRQSEL10 : 1; + __IO uint32_t DRQSEL11 : 1; + __IO uint32_t DRQSEL12 : 1; + __IO uint32_t DRQSEL13 : 1; + __IO uint32_t DRQSEL14 : 1; +} stc_intreq_drqsel1_field_t; + +typedef struct stc_intreq_dqesel_field +{ + __IO uint32_t ESEL100 : 1; + __IO uint32_t ESEL101 : 1; + __IO uint32_t ESEL102 : 1; + __IO uint32_t ESEL103 : 1; + __IO uint32_t ESEL110 : 1; + __IO uint32_t ESEL111 : 1; + __IO uint32_t ESEL112 : 1; + __IO uint32_t ESEL113 : 1; + __IO uint32_t ESEL240 : 1; + __IO uint32_t ESEL241 : 1; + __IO uint32_t ESEL242 : 1; + __IO uint32_t ESEL243 : 1; + __IO uint32_t ESEL250 : 1; + __IO uint32_t ESEL251 : 1; + __IO uint32_t ESEL252 : 1; + __IO uint32_t ESEL253 : 1; + __IO uint32_t ESEL260 : 1; + __IO uint32_t ESEL261 : 1; + __IO uint32_t ESEL262 : 1; + __IO uint32_t ESEL263 : 1; + __IO uint32_t ESEL270 : 1; + __IO uint32_t ESEL271 : 1; + __IO uint32_t ESEL272 : 1; + __IO uint32_t ESEL273 : 1; + __IO uint32_t ESEL300 : 1; + __IO uint32_t ESEL301 : 1; + __IO uint32_t ESEL302 : 1; + __IO uint32_t ESEL303 : 1; + __IO uint32_t ESEL310 : 1; + __IO uint32_t ESEL311 : 1; + __IO uint32_t ESEL312 : 1; + __IO uint32_t ESEL313 : 1; +} stc_intreq_dqesel_field_t; + +typedef struct stc_intreq_oddpks1_field +{ + __IO uint8_t ODDPKS10 : 1; + __IO uint8_t ODDPKS11 : 1; + __IO uint8_t ODDPKS12 : 1; + __IO uint8_t ODDPKS13 : 1; + __IO uint8_t ODDPKS14 : 1; +} stc_intreq_oddpks1_field_t; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* GPIO_MODULE register bit fields */ +typedef struct stc_gpio_pfr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pfr0_field_t; + +typedef struct stc_gpio_pfr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr1_field_t; + +typedef struct stc_gpio_pfr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pfr2_field_t; + +typedef struct stc_gpio_pfr3_field +{ + uint32_t RESERVED1 : 6; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr3_field_t; + +typedef struct stc_gpio_pfr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pfr4_field_t; + +typedef struct stc_gpio_pfr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pfr5_field_t; + +typedef struct stc_gpio_pfr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pfr6_field_t; + +typedef struct stc_gpio_pfr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; +} stc_gpio_pfr7_field_t; + +typedef struct stc_gpio_pfr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pfr8_field_t; + + +typedef struct stc_gpio_pfra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pfra_field_t; + +typedef struct stc_gpio_pfrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfrc_field_t; + +typedef struct stc_gpio_pfrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pfrd_field_t; + +typedef struct stc_gpio_pfre_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pfre_field_t; + +typedef struct stc_gpio_pfrf_field +{ + uint32_t RESERVED1 : 5; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pfrf_field_t; + +typedef struct stc_gpio_pcr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pcr0_field_t; + +typedef struct stc_gpio_pcr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr1_field_t; + +typedef struct stc_gpio_pcr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pcr2_field_t; + +typedef struct stc_gpio_pcr3_field +{ + uint32_t RESERVED1 : 6; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr3_field_t; + +typedef struct stc_gpio_pcr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pcr4_field_t; + +typedef struct stc_gpio_pcr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pcr5_field_t; + +typedef struct stc_gpio_pcr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pcr6_field_t; + +typedef struct stc_gpio_pcr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; +} stc_gpio_pcr7_field_t; + +typedef struct stc_gpio_pcra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pcra_field_t; + +typedef struct stc_gpio_pcrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcrc_field_t; + +typedef struct stc_gpio_pcrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pcrd_field_t; + +typedef struct stc_gpio_pcre_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pcre_field_t; + +typedef struct stc_gpio_ddr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_ddr0_field_t; + +typedef struct stc_gpio_ddr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr1_field_t; + +typedef struct stc_gpio_ddr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_ddr2_field_t; + +typedef struct stc_gpio_ddr3_field +{ + uint32_t RESERVED1 : 6; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr3_field_t; + +typedef struct stc_gpio_ddr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_ddr4_field_t; + +typedef struct stc_gpio_ddr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_ddr5_field_t; + +typedef struct stc_gpio_ddr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_ddr6_field_t; + +typedef struct stc_gpio_ddr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; +} stc_gpio_ddr7_field_t; + +typedef struct stc_gpio_ddr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_ddr8_field_t; + +typedef struct stc_gpio_ddra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_ddra_field_t; + +typedef struct stc_gpio_ddrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddrc_field_t; + +typedef struct stc_gpio_ddrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_ddrd_field_t; + +typedef struct stc_gpio_ddre_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_ddre_field_t; + +typedef struct stc_gpio_ddrf_field +{ + uint32_t RESERVED1 : 5; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_ddrf_field_t; + +typedef struct stc_gpio_pdir0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdir0_field_t; + +typedef struct stc_gpio_pdir1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir1_field_t; + +typedef struct stc_gpio_pdir2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdir2_field_t; + +typedef struct stc_gpio_pdir3_field +{ + uint32_t RESERVED1 : 6; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir3_field_t; + +typedef struct stc_gpio_pdir4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pdir4_field_t; + +typedef struct stc_gpio_pdir5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pdir5_field_t; + +typedef struct stc_gpio_pdir6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pdir6_field_t; + +typedef struct stc_gpio_pdir7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; +} stc_gpio_pdir7_field_t; + +typedef struct stc_gpio_pdir8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdir8_field_t; + +typedef struct stc_gpio_pdira_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pdira_field_t; + +typedef struct stc_gpio_pdirc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdirc_field_t; + +typedef struct stc_gpio_pdird_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdird_field_t; + +typedef struct stc_gpio_pdire_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdire_field_t; + +typedef struct stc_gpio_pdirf_field +{ + uint32_t RESERVED1 : 5; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pdirf_field_t; + +typedef struct stc_gpio_pdor0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdor0_field_t; + +typedef struct stc_gpio_pdor1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor1_field_t; + +typedef struct stc_gpio_pdor2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdor2_field_t; + +typedef struct stc_gpio_pdor3_field +{ + uint32_t RESERVED1 : 6; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor3_field_t; + +typedef struct stc_gpio_pdor4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pdor4_field_t; + +typedef struct stc_gpio_pdor5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pdor5_field_t; + +typedef struct stc_gpio_pdor6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pdor6_field_t; + +typedef struct stc_gpio_pdor7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; +} stc_gpio_pdor7_field_t; + +typedef struct stc_gpio_pdor8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdor8_field_t; + +typedef struct stc_gpio_pdora_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pdora_field_t; + +typedef struct stc_gpio_pdorc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdorc_field_t; + +typedef struct stc_gpio_pdord_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdord_field_t; + +typedef struct stc_gpio_pdore_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdore_field_t; + +typedef struct stc_gpio_pdorf_field +{ + uint32_t RESERVED1 : 5; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pdorf_field_t; + +typedef struct stc_gpio_ade_field +{ + __IO uint32_t AN0 : 1; + __IO uint32_t AN1 : 1; + __IO uint32_t AN2 : 1; + __IO uint32_t AN3 : 1; + __IO uint32_t AN4 : 1; + __IO uint32_t AN5 : 1; + __IO uint32_t AN6 : 1; + __IO uint32_t AN7 : 1; + __IO uint32_t AN8 : 1; + __IO uint32_t AN9 : 1; + __IO uint32_t AN10 : 1; + __IO uint32_t AN11 : 1; + __IO uint32_t AN12 : 1; + __IO uint32_t AN13 : 1; + __IO uint32_t AN14 : 1; + __IO uint32_t AN15 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t AN24 : 1; + __IO uint32_t AN25 : 1; + __IO uint32_t AN26 : 1; + __IO uint32_t AN27 : 1; + __IO uint32_t AN28 : 1; + __IO uint32_t AN29 : 1; + __IO uint32_t AN30 : 1; + __IO uint32_t AN31 : 1; +} stc_gpio_ade_field_t; + +typedef struct stc_gpio_spsr_field +{ + __IO uint32_t SUBXC : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MAINXC : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t USB0C : 1; + __IO uint32_t USB1C : 1; +} stc_gpio_spsr_field_t; + +typedef struct stc_gpio_epfr00_field +{ + __IO uint32_t NMIS : 1; + __IO uint32_t CROUTE0 : 1; + __IO uint32_t CROUTE1 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t SUBOUTE0 : 1; + __IO uint32_t SUBOUTE1 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t USBP0E : 1; + uint32_t RESERVED3 : 3; + __IO uint32_t USBP1E : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t JTAGEN0B : 1; + __IO uint32_t JTAGEN1S : 1; + uint32_t RESERVED5 : 6; + __IO uint32_t TRC0E : 1; + __IO uint32_t TRC1E : 1; +} stc_gpio_epfr00_field_t; + +typedef struct stc_gpio_epfr01_field +{ + __IO uint32_t RTO00E0 : 1; + __IO uint32_t RTO00E1 : 1; + __IO uint32_t RTO01E0 : 1; + __IO uint32_t RTO01E1 : 1; + __IO uint32_t RTO02E0 : 1; + __IO uint32_t RTO02E1 : 1; + __IO uint32_t RTO03E0 : 1; + __IO uint32_t RTO03E1 : 1; + __IO uint32_t RTO04E0 : 1; + __IO uint32_t RTO04E1 : 1; + __IO uint32_t RTO05E0 : 1; + __IO uint32_t RTO05E1 : 1; + __IO uint32_t DTTI0C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI0S0 : 1; + __IO uint32_t DTTI0S1 : 1; + __IO uint32_t FRCK0S0 : 1; + __IO uint32_t FRCK0S1 : 1; + __IO uint32_t IC00S0 : 1; + __IO uint32_t IC00S1 : 1; + __IO uint32_t IC00S2 : 1; + __IO uint32_t IC01S0 : 1; + __IO uint32_t IC01S1 : 1; + __IO uint32_t IC01S2 : 1; + __IO uint32_t IC02S0 : 1; + __IO uint32_t IC02S1 : 1; + __IO uint32_t IC02S2 : 1; + __IO uint32_t IC03S0 : 1; + __IO uint32_t IC03S1 : 1; + __IO uint32_t IC03S2 : 1; +} stc_gpio_epfr01_field_t; + +typedef struct stc_gpio_epfr02_field +{ + __IO uint32_t RTO10E0 : 1; + __IO uint32_t RTO10E1 : 1; + __IO uint32_t RTO11E0 : 1; + __IO uint32_t RTO11E1 : 1; + __IO uint32_t RTO12E0 : 1; + __IO uint32_t RTO12E1 : 1; + __IO uint32_t RTO13E0 : 1; + __IO uint32_t RTO13E1 : 1; + __IO uint32_t RTO14E0 : 1; + __IO uint32_t RTO14E1 : 1; + __IO uint32_t RTO15E0 : 1; + __IO uint32_t RTO15E1 : 1; + __IO uint32_t DTTI1C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI1S0 : 1; + __IO uint32_t DTTI1S1 : 1; + __IO uint32_t FRCK1S0 : 1; + __IO uint32_t FRCK1S1 : 1; + __IO uint32_t IC10S0 : 1; + __IO uint32_t IC10S1 : 1; + __IO uint32_t IC10S2 : 1; + __IO uint32_t IC11S0 : 1; + __IO uint32_t IC11S1 : 1; + __IO uint32_t IC11S2 : 1; + __IO uint32_t IC12S0 : 1; + __IO uint32_t IC12S1 : 1; + __IO uint32_t IC12S2 : 1; + __IO uint32_t IC13S0 : 1; + __IO uint32_t IC13S1 : 1; + __IO uint32_t IC13S2 : 1; +} stc_gpio_epfr02_field_t; + +typedef struct stc_gpio_epfr03_field +{ + __IO uint32_t RTO20E0 : 1; + __IO uint32_t RTO20E1 : 1; + __IO uint32_t RTO21E0 : 1; + __IO uint32_t RTO21E1 : 1; + __IO uint32_t RTO22E0 : 1; + __IO uint32_t RTO22E1 : 1; + __IO uint32_t RTO23E0 : 1; + __IO uint32_t RTO23E1 : 1; + __IO uint32_t RTO24E0 : 1; + __IO uint32_t RTO24E1 : 1; + __IO uint32_t RTO25E0 : 1; + __IO uint32_t RTO25E1 : 1; + __IO uint32_t DTTI2C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI2S0 : 1; + __IO uint32_t DTTI2S1 : 1; + __IO uint32_t FRCK2S0 : 1; + __IO uint32_t FRCK2S1 : 1; + __IO uint32_t IC20S0 : 1; + __IO uint32_t IC20S1 : 1; + __IO uint32_t IC20S2 : 1; + __IO uint32_t IC21S0 : 1; + __IO uint32_t IC21S1 : 1; + __IO uint32_t IC21S2 : 1; + __IO uint32_t IC22S0 : 1; + __IO uint32_t IC22S1 : 1; + __IO uint32_t IC22S2 : 1; + __IO uint32_t IC23S0 : 1; + __IO uint32_t IC23S1 : 1; + __IO uint32_t IC23S2 : 1; +} stc_gpio_epfr03_field_t; + +typedef struct stc_gpio_epfr04_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA0E0 : 1; + __IO uint32_t TIOA0E1 : 1; + __IO uint32_t TIOB0S0 : 1; + __IO uint32_t TIOB0S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA1S0 : 1; + __IO uint32_t TIOA1S1 : 1; + __IO uint32_t TIOA1E0 : 1; + __IO uint32_t TIOA1E1 : 1; + __IO uint32_t TIOB1S0 : 1; + __IO uint32_t TIOB1S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA2E0 : 1; + __IO uint32_t TIOA2E1 : 1; + __IO uint32_t TIOB2S0 : 1; + __IO uint32_t TIOB2S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA3S0 : 1; + __IO uint32_t TIOA3S1 : 1; + __IO uint32_t TIOA3E0 : 1; + __IO uint32_t TIOA3E1 : 1; + __IO uint32_t TIOB3S0 : 1; + __IO uint32_t TIOB3S1 : 1; +} stc_gpio_epfr04_field_t; + +typedef struct stc_gpio_epfr05_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA4E0 : 1; + __IO uint32_t TIOA4E1 : 1; + __IO uint32_t TIOB4S0 : 1; + __IO uint32_t TIOB4S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA5S0 : 1; + __IO uint32_t TIOA5S1 : 1; + __IO uint32_t TIOA5E0 : 1; + __IO uint32_t TIOA5E1 : 1; + __IO uint32_t TIOB5S0 : 1; + __IO uint32_t TIOB5S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA6E0 : 1; + __IO uint32_t TIOA6E1 : 1; + __IO uint32_t TIOB6S0 : 1; + __IO uint32_t TIOB6S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA7S0 : 1; + __IO uint32_t TIOA7S1 : 1; + __IO uint32_t TIOA7E0 : 1; + __IO uint32_t TIOA7E1 : 1; + __IO uint32_t TIOB7S0 : 1; + __IO uint32_t TIOB7S1 : 1; +} stc_gpio_epfr05_field_t; + +typedef struct stc_gpio_epfr06_field +{ + __IO uint32_t EINT00S0 : 1; + __IO uint32_t EINT00S1 : 1; + __IO uint32_t EINT01S0 : 1; + __IO uint32_t EINT01S1 : 1; + __IO uint32_t EINT02S0 : 1; + __IO uint32_t EINT02S1 : 1; + __IO uint32_t EINT03S0 : 1; + __IO uint32_t EINT03S1 : 1; + __IO uint32_t EINT04S0 : 1; + __IO uint32_t EINT04S1 : 1; + __IO uint32_t EINT05S0 : 1; + __IO uint32_t EINT05S1 : 1; + __IO uint32_t EINT06S0 : 1; + __IO uint32_t EINT06S1 : 1; + __IO uint32_t EINT07S0 : 1; + __IO uint32_t EINT07S1 : 1; + __IO uint32_t EINT08S0 : 1; + __IO uint32_t EINT08S1 : 1; + __IO uint32_t EINT09S0 : 1; + __IO uint32_t EINT09S1 : 1; + __IO uint32_t EINT10S0 : 1; + __IO uint32_t EINT10S1 : 1; + __IO uint32_t EINT11S0 : 1; + __IO uint32_t EINT11S1 : 1; + __IO uint32_t EINT12S0 : 1; + __IO uint32_t EINT12S1 : 1; + __IO uint32_t EINT13S0 : 1; + __IO uint32_t EINT13S1 : 1; + __IO uint32_t EINT14S0 : 1; + __IO uint32_t EINT14S1 : 1; + __IO uint32_t EINT15S0 : 1; + __IO uint32_t EINT15S1 : 1; +} stc_gpio_epfr06_field_t; + +typedef struct stc_gpio_epfr07_field +{ + uint32_t RESERVED1 : 4; + __IO uint32_t SIN0S0 : 1; + __IO uint32_t SIN0S1 : 1; + __IO uint32_t SOT0B0 : 1; + __IO uint32_t SOT0B1 : 1; + __IO uint32_t SCK0B0 : 1; + __IO uint32_t SCK0B1 : 1; + __IO uint32_t SIN1S0 : 1; + __IO uint32_t SIN1S1 : 1; + __IO uint32_t SOT1B0 : 1; + __IO uint32_t SOT1B1 : 1; + __IO uint32_t SCK1B0 : 1; + __IO uint32_t SCK1B1 : 1; + __IO uint32_t SIN2S0 : 1; + __IO uint32_t SIN2S1 : 1; + __IO uint32_t SOT2B0 : 1; + __IO uint32_t SOT2B1 : 1; + __IO uint32_t SCK2B0 : 1; + __IO uint32_t SCK2B1 : 1; + __IO uint32_t SIN3S0 : 1; + __IO uint32_t SIN3S1 : 1; + __IO uint32_t SOT3B0 : 1; + __IO uint32_t SOT3B1 : 1; + __IO uint32_t SCK3B0 : 1; + __IO uint32_t SCK3B1 : 1; +} stc_gpio_epfr07_field_t; + +typedef struct stc_gpio_epfr08_field +{ + __IO uint32_t RTS4E0 : 1; + __IO uint32_t RTS4E1 : 1; + __IO uint32_t CTS4S0 : 1; + __IO uint32_t CTS4S1 : 1; + __IO uint32_t SIN4S0 : 1; + __IO uint32_t SIN4S1 : 1; + __IO uint32_t SOT4B0 : 1; + __IO uint32_t SOT4B1 : 1; + __IO uint32_t SCK4B0 : 1; + __IO uint32_t SCK4B1 : 1; + __IO uint32_t SIN5S0 : 1; + __IO uint32_t SIN5S1 : 1; + __IO uint32_t SOT5B0 : 1; + __IO uint32_t SOT5B1 : 1; + __IO uint32_t SCK5B0 : 1; + __IO uint32_t SCK5B1 : 1; + __IO uint32_t SIN6S0 : 1; + __IO uint32_t SIN6S1 : 1; + __IO uint32_t SOT6B0 : 1; + __IO uint32_t SOT6B1 : 1; + __IO uint32_t SCK6B0 : 1; + __IO uint32_t SCK6B1 : 1; + __IO uint32_t SIN7S0 : 1; + __IO uint32_t SIN7S1 : 1; + __IO uint32_t SOT7B0 : 1; + __IO uint32_t SOT7B1 : 1; + __IO uint32_t SCK7B0 : 1; + __IO uint32_t SCK7B1 : 1; +} stc_gpio_epfr08_field_t; + +typedef struct stc_gpio_epfr09_field +{ + __IO uint32_t QAIN0S0 : 1; + __IO uint32_t QAIN0S1 : 1; + __IO uint32_t QBIN0S0 : 1; + __IO uint32_t QBIN0S1 : 1; + __IO uint32_t QZIN0S0 : 1; + __IO uint32_t QZIN0S1 : 1; + __IO uint32_t QAIN1S0 : 1; + __IO uint32_t QAIN1S1 : 1; + __IO uint32_t QBIN1S0 : 1; + __IO uint32_t QBIN1S1 : 1; + __IO uint32_t QZIN1S0 : 1; + __IO uint32_t QZIN1S1 : 1; + __IO uint32_t ADTRG0S0 : 1; + __IO uint32_t ADTRG0S1 : 1; + __IO uint32_t ADTRG0S2 : 1; + __IO uint32_t ADTRG0S3 : 1; + __IO uint32_t ADTRG1S0 : 1; + __IO uint32_t ADTRG1S1 : 1; + __IO uint32_t ADTRG1S2 : 1; + __IO uint32_t ADTRG1S3 : 1; + __IO uint32_t ADTRG2S0 : 1; + __IO uint32_t ADTRG2S1 : 1; + __IO uint32_t ADTRG2S2 : 1; + __IO uint32_t ADTRG2S3 : 1; +} stc_gpio_epfr09_field_t; + +typedef struct stc_gpio_epfr10_field +{ + __IO uint32_t UEDEFB : 1; + __IO uint32_t UEDTHB : 1; + __IO uint32_t UECLKE : 1; + __IO uint32_t UEWEXE : 1; + __IO uint32_t UEDQME : 1; + __IO uint32_t UEOEXE : 1; + __IO uint32_t UEFLSE : 1; + __IO uint32_t UECS1E : 1; + __IO uint32_t UECS2E : 1; + __IO uint32_t UECS3E : 1; + __IO uint32_t UECS4E : 1; + __IO uint32_t UECS5E : 1; + __IO uint32_t UECS6E : 1; + __IO uint32_t UECS7E : 1; + __IO uint32_t UEAOOE : 1; + __IO uint32_t UEA08E : 1; + __IO uint32_t UEA09E : 1; + __IO uint32_t UEA10E : 1; + __IO uint32_t UEA11E : 1; + __IO uint32_t UEA12E : 1; + __IO uint32_t UEA13E : 1; + __IO uint32_t UEA14E : 1; + __IO uint32_t UEA15E : 1; + __IO uint32_t UEA16E : 1; + __IO uint32_t UEA17E : 1; + __IO uint32_t UEA18E : 1; +} stc_gpio_epfr10_field_t; + +typedef struct stc_gpio_epfr11_field +{ + __IO uint32_t UEALEE : 1; + __IO uint32_t UECS0E : 1; + __IO uint32_t UEA01E : 1; + __IO uint32_t UEA02E : 1; + __IO uint32_t UEA03E : 1; + __IO uint32_t UEA04E : 1; + __IO uint32_t UEA05E : 1; + __IO uint32_t UEA06E : 1; + __IO uint32_t UEA07E : 1; + __IO uint32_t UED00B : 1; + __IO uint32_t UED01B : 1; + __IO uint32_t UED02B : 1; + __IO uint32_t UED03B : 1; + __IO uint32_t UED04B : 1; + __IO uint32_t UED05B : 1; + __IO uint32_t UED06B : 1; + __IO uint32_t UED07B : 1; + __IO uint32_t UED08B : 1; + __IO uint32_t UED09B : 1; + __IO uint32_t UED10B : 1; + __IO uint32_t UED11B : 1; + __IO uint32_t UED12B : 1; + __IO uint32_t UED13B : 1; + __IO uint32_t UED14B : 1; + __IO uint32_t UED15B : 1; + __IO uint32_t UERLC : 1; +} stc_gpio_epfr11_field_t; + +typedef struct stc_gpio_epfr12_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA8E0 : 1; + __IO uint32_t TIOA8E1 : 1; + __IO uint32_t TIOB8S0 : 1; + __IO uint32_t TIOB8S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA9S0 : 1; + __IO uint32_t TIOA9S1 : 1; + __IO uint32_t TIOA9E0 : 1; + __IO uint32_t TIOA9E1 : 1; + __IO uint32_t TIOB9S0 : 1; + __IO uint32_t TIOB9S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA10E0 : 1; + __IO uint32_t TIOA10E1 : 1; + __IO uint32_t TIOB10S0 : 1; + __IO uint32_t TIOB10S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA11S0 : 1; + __IO uint32_t TIOA11S1 : 1; + __IO uint32_t TIOA11E0 : 1; + __IO uint32_t TIOA11E1 : 1; + __IO uint32_t TIOB11S0 : 1; + __IO uint32_t TIOB11S1 : 1; +} stc_gpio_epfr12_field_t; + +typedef struct stc_gpio_epfr13_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA12E0 : 1; + __IO uint32_t TIOA12E1 : 1; + __IO uint32_t TIOB12S0 : 1; + __IO uint32_t TIOB12S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA13S0 : 1; + __IO uint32_t TIOA13S1 : 1; + __IO uint32_t TIOA13E0 : 1; + __IO uint32_t TIOA13E1 : 1; + __IO uint32_t TIOB13S0 : 1; + __IO uint32_t TIOB13S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA14E0 : 1; + __IO uint32_t TIOA14E1 : 1; + __IO uint32_t TIOB14S0 : 1; + __IO uint32_t TIOB14S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA15S0 : 1; + __IO uint32_t TIOA15S1 : 1; + __IO uint32_t TIOA15E0 : 1; + __IO uint32_t TIOA15E1 : 1; + __IO uint32_t TIOB15S0 : 1; + __IO uint32_t TIOB15S1 : 1; +} stc_gpio_epfr13_field_t; + +typedef struct stc_gpio_epfr14_field +{ + __IO uint32_t QAIN2S0 : 1; + __IO uint32_t QAIN2S1 : 1; + __IO uint32_t QBIN2S0 : 1; + __IO uint32_t QBIN2S1 : 1; + __IO uint32_t QZIN2S0 : 1; + __IO uint32_t QZIN2S1 : 1; + uint32_t RESERVED1 : 12; + __IO uint32_t E_TD0E : 1; + __IO uint32_t E_TD1E : 1; + __IO uint32_t E_TE0E : 1; + __IO uint32_t E_TE1E : 1; + __IO uint32_t E_MC0E : 1; + __IO uint32_t E_MC1B : 1; + __IO uint32_t E_MD0B : 1; + __IO uint32_t E_MD1B : 1; + __IO uint32_t E_CKE : 1; + __IO uint32_t E_PSE : 1; + __IO uint32_t E_SPLC0 : 1; + __IO uint32_t E_SPLC1 : 1; +} stc_gpio_epfr14_field_t; + +typedef struct stc_gpio_epfr15_field +{ + __IO uint32_t EINT16S0 : 1; + __IO uint32_t EINT16S1 : 1; + __IO uint32_t EINT17S0 : 1; + __IO uint32_t EINT17S1 : 1; + __IO uint32_t EINT18S0 : 1; + __IO uint32_t EINT18S1 : 1; + __IO uint32_t EINT19S0 : 1; + __IO uint32_t EINT19S1 : 1; + __IO uint32_t EINT20S0 : 1; + __IO uint32_t EINT20S1 : 1; + __IO uint32_t EINT21S0 : 1; + __IO uint32_t EINT21S1 : 1; + __IO uint32_t EINT22S0 : 1; + __IO uint32_t EINT22S1 : 1; + __IO uint32_t EINT23S0 : 1; + __IO uint32_t EINT23S1 : 1; + __IO uint32_t EINT24S0 : 1; + __IO uint32_t EINT24S1 : 1; + __IO uint32_t EINT25S0 : 1; + __IO uint32_t EINT25S1 : 1; + __IO uint32_t EINT26S0 : 1; + __IO uint32_t EINT26S1 : 1; + __IO uint32_t EINT27S0 : 1; + __IO uint32_t EINT27S1 : 1; + __IO uint32_t EINT28S0 : 1; + __IO uint32_t EINT28S1 : 1; + __IO uint32_t EINT29S0 : 1; + __IO uint32_t EINT29S1 : 1; + __IO uint32_t EINT30S0 : 1; + __IO uint32_t EINT30S1 : 1; + __IO uint32_t EINT31S0 : 1; + __IO uint32_t EINT31S1 : 1; +} stc_gpio_epfr15_field_t; + +typedef struct stc_gpio_pzr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pzr0_field_t; + +typedef struct stc_gpio_pzr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzr1_field_t; + +typedef struct stc_gpio_pzr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pzr2_field_t; + +typedef struct stc_gpio_pzr3_field +{ + uint32_t RESERVED1 : 6; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzr3_field_t; + +typedef struct stc_gpio_pzr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pzr4_field_t; + +typedef struct stc_gpio_pzr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; +} stc_gpio_pzr5_field_t; + +typedef struct stc_gpio_pzr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pzr6_field_t; + +typedef struct stc_gpio_pzr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; +} stc_gpio_pzr7_field_t; + +typedef struct stc_gpio_pzr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pzr8_field_t; + +typedef struct stc_gpio_pzra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pzra_field_t; + +typedef struct stc_gpio_pzrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzrc_field_t; + +typedef struct stc_gpio_pzrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pzrd_field_t; + +typedef struct stc_gpio_pzre_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pzre_field_t; + +typedef struct stc_gpio_pzrf_field +{ + uint32_t RESERVED1 : 5; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pzrf_field_t; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* LVD_MODULE register bit fields */ +typedef struct stc_lvd_lvd_ctl_field +{ + uint8_t RESERVED1 : 2; + __IO uint8_t SVHI0 : 1; + __IO uint8_t SVHI1 : 1; + __IO uint8_t SVHI2 : 1; + __IO uint8_t SVHI3 : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t LVDIE : 1; +} stc_lvd_lvd_ctl_field_t; + +typedef struct stc_lvd_lvd_str_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIR : 1; +} stc_lvd_lvd_str_field_t; + +typedef struct stc_lvd_lvd_clr_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDCL : 1; +} stc_lvd_lvd_clr_field_t; + +typedef struct stc_lvd_lvd_str2_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIRDY : 1; +} stc_lvd_lvd_str2_field_t; + +/****************************************************************************** + * USB Ethernet CLK + ******************************************************************************/ +/* USB ETHERNET CLK register bit fields */ +typedef struct stc_usbethernetclk_uccr_field +{ + __IO uint8_t UCEN0 : 1; + __IO uint8_t UCSEL0 : 1; + __IO uint8_t UCSEL1 : 1; + __IO uint8_t UCEN1 : 1; + __IO uint8_t ECEN : 1; + __IO uint8_t ECSEL0 : 1; + __IO uint8_t ECSEL1 : 1; +} stc_usbethernetclk_uccr_field_t; + +typedef struct stc_usbethernetclk_upcr1_field +{ + __IO uint8_t UPLLEN : 1; + __IO uint8_t UPINC : 1; +} stc_usbethernetclk_upcr1_field_t; + +typedef struct stc_usbethernetclk_upcr2_field +{ + __IO uint8_t UPOWT0 : 1; + __IO uint8_t UPOWT1 : 1; + __IO uint8_t UPOWT2 : 1; +} stc_usbethernetclk_upcr2_field_t; + +typedef struct stc_usbethernetclk_upcr3_field +{ + __IO uint8_t UPLLK0 : 1; + __IO uint8_t UPLLK1 : 1; + __IO uint8_t UPLLK2 : 1; + __IO uint8_t UPLLK3 : 1; + __IO uint8_t UPLLK4 : 1; +} stc_usbethernetclk_upcr3_field_t; + +typedef struct stc_usbethernetclk_upcr4_field +{ + __IO uint8_t UPLLN0 : 1; + __IO uint8_t UPLLN1 : 1; + __IO uint8_t UPLLN2 : 1; + __IO uint8_t UPLLN3 : 1; + __IO uint8_t UPLLN4 : 1; + __IO uint8_t UPLLN5 : 1; + __IO uint8_t UPLLN6 : 1; +} stc_usbethernetclk_upcr4_field_t; + +typedef struct stc_usbethernetclk_up_str_field +{ + __IO uint8_t UPRDY : 1; +} stc_usbethernetclk_up_str_field_t; + +typedef struct stc_usbethernetclk_upint_enr_field +{ + __IO uint8_t UPCSE : 1; +} stc_usbethernetclk_upint_enr_field_t; + +typedef struct stc_usbethernetclk_upint_clr_field +{ + __IO uint8_t UPCSC : 1; +} stc_usbethernetclk_upint_clr_field_t; + +typedef struct stc_usbethernetclk_upint_str_field +{ + __IO uint8_t UPCSI : 1; +} stc_usbethernetclk_upint_str_field_t; + +typedef struct stc_usbethernetclk_upcr5_field +{ + __IO uint8_t UPLLM0 : 1; + __IO uint8_t UPLLM1 : 1; + __IO uint8_t UPLLM2 : 1; + __IO uint8_t UPLLM3 : 1; +} stc_usbethernetclk_upcr5_field_t; + +typedef struct stc_usbethernetclk_upcr6_field +{ + __IO uint8_t UBSR0 : 1; + __IO uint8_t UBSR1 : 1; + __IO uint8_t UBSR2 : 1; + __IO uint8_t UBSR3 : 1; +} stc_usbethernetclk_upcr6_field_t; + +typedef struct stc_usbethernetclk_upcr7_field +{ + __IO uint8_t EPLLEN : 1; +} stc_usbethernetclk_upcr7_field_t; + +typedef struct stc_usbethernetclk_usben0_field +{ + __IO uint8_t USBEN0 : 1; +} stc_usbethernetclk_usben0_field_t; + +typedef struct stc_usbethernetclk_usben1_field +{ + __IO uint8_t USBEN1 : 1; +} stc_usbethernetclk_usben1_field_t; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* MFS03_UART_MODULE register bit fields */ +typedef struct stc_mfs03_uart_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_uart_smr_field_t; + +typedef struct stc_mfs03_uart_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; +} stc_mfs03_uart_scr_field_t; + +typedef struct stc_mfs03_uart_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t P : 1; + __IO uint8_t PEN : 1; + __IO uint8_t INV : 1; + __IO uint8_t ESBL : 1; + __IO uint8_t FLWEN : 1; +} stc_mfs03_uart_escr_field_t; + +typedef struct stc_mfs03_uart_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t PE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs03_uart_ssr_field_t; + +typedef struct stc_mfs03_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs03_uart_rdr_field_t; + +typedef struct stc_mfs03_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs03_uart_tdr_field_t; + +typedef struct stc_mfs03_uart_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs03_uart_bgr_field_t; + +typedef struct stc_mfs03_uart_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs03_uart_bgr1_field_t; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* MFS03_CSIO_MODULE register bit fields */ +typedef struct stc_mfs03_csio_smr_field +{ + __IO uint8_t SOE : 1; + __IO uint8_t SCKE : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SCINV : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_csio_smr_field_t; + +typedef struct stc_mfs03_csio_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t SPI : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs03_csio_scr_field_t; + +typedef struct stc_mfs03_csio_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t WT0 : 1; + __IO uint8_t WT1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SOP : 1; +} stc_mfs03_csio_escr_field_t; + +typedef struct stc_mfs03_csio_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t REC : 1; +} stc_mfs03_csio_ssr_field_t; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* MFS03_LIN_MODULE register bit fields */ +typedef struct stc_mfs03_lin_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_lin_smr_field_t; + +typedef struct stc_mfs03_lin_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t LBR : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs03_lin_scr_field_t; + +typedef struct stc_mfs03_lin_escr_field +{ + __IO uint8_t DEL0 : 1; + __IO uint8_t DEL1 : 1; + __IO uint8_t LBL0 : 1; + __IO uint8_t LBL1 : 1; + __IO uint8_t LBIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t ESBL : 1; +} stc_mfs03_lin_escr_field_t; + +typedef struct stc_mfs03_lin_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t LBD : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs03_lin_ssr_field_t; + +typedef struct stc_mfs03_lin_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs03_lin_bgr_field_t; + +typedef struct stc_mfs03_lin_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs03_lin_bgr1_field_t; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* MFS03_I2C_MODULE register bit fields */ +typedef struct stc_mfs03_i2c_smr_field +{ + __IO uint8_t ITST0 : 1; + __IO uint8_t ITST1 : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs03_i2c_smr_field_t; + +typedef struct stc_mfs03_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs03_i2c_ibcr_field_t; + +typedef struct stc_mfs03_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs03_i2c_ibsr_field_t; + +typedef struct stc_mfs03_i2c_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t DMA : 1; + __IO uint8_t TSET : 1; + __IO uint8_t REC : 1; +} stc_mfs03_i2c_ssr_field_t; + +typedef struct stc_mfs03_i2c_isba_field +{ + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + __IO uint8_t SAEN : 1; +} stc_mfs03_i2c_isba_field_t; + +typedef struct stc_mfs03_i2c_ismk_field +{ + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + __IO uint8_t EN : 1; +} stc_mfs03_i2c_ismk_field_t; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* MFS47_UART_MODULE register bit fields */ +typedef struct stc_mfs47_uart_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_uart_smr_field_t; + +typedef struct stc_mfs47_uart_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; +} stc_mfs47_uart_scr_field_t; + +typedef struct stc_mfs47_uart_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t P : 1; + __IO uint8_t PEN : 1; + __IO uint8_t INV : 1; + __IO uint8_t ESBL : 1; + __IO uint8_t FLWEN : 1; +} stc_mfs47_uart_escr_field_t; + +typedef struct stc_mfs47_uart_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t PE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs47_uart_ssr_field_t; + +typedef struct stc_mfs47_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs47_uart_rdr_field_t; + +typedef struct stc_mfs47_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs47_uart_tdr_field_t; + +typedef struct stc_mfs47_uart_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs47_uart_bgr_field_t; + +typedef struct stc_mfs47_uart_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs47_uart_bgr1_field_t; + +typedef struct stc_mfs47_uart_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_uart_fcr_field_t; + +typedef struct stc_mfs47_uart_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_uart_fcr0_field_t; + +typedef struct stc_mfs47_uart_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_uart_fcr1_field_t; + +typedef struct stc_mfs47_uart_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_uart_fbyte_field_t; + +typedef struct stc_mfs47_uart_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_uart_fbyte1_field_t; + +typedef struct stc_mfs47_uart_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_uart_fbyte2_field_t; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* MFS47_CSIO_MODULE register bit fields */ +typedef struct stc_mfs47_csio_smr_field +{ + __IO uint8_t SOE : 1; + __IO uint8_t SCKE : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SCINV : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_csio_smr_field_t; + +typedef struct stc_mfs47_csio_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t SPI : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs47_csio_scr_field_t; + +typedef struct stc_mfs47_csio_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t WT0 : 1; + __IO uint8_t WT1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SOP : 1; +} stc_mfs47_csio_escr_field_t; + +typedef struct stc_mfs47_csio_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t REC : 1; +} stc_mfs47_csio_ssr_field_t; + +typedef struct stc_mfs47_csio_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_csio_fcr_field_t; + +typedef struct stc_mfs47_csio_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_csio_fcr0_field_t; + +typedef struct stc_mfs47_csio_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_csio_fcr1_field_t; + +typedef struct stc_mfs47_csio_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_csio_fbyte_field_t; + +typedef struct stc_mfs47_csio_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_csio_fbyte1_field_t; + +typedef struct stc_mfs47_csio_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_csio_fbyte2_field_t; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* MFS47_LIN_MODULE register bit fields */ +typedef struct stc_mfs47_lin_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_lin_smr_field_t; + +typedef struct stc_mfs47_lin_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t LBR : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs47_lin_scr_field_t; + +typedef struct stc_mfs47_lin_escr_field +{ + __IO uint8_t DEL0 : 1; + __IO uint8_t DEL1 : 1; + __IO uint8_t LBL0 : 1; + __IO uint8_t LBL1 : 1; + __IO uint8_t LBIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t ESBL : 1; +} stc_mfs47_lin_escr_field_t; + +typedef struct stc_mfs47_lin_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t LBD : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs47_lin_ssr_field_t; + +typedef struct stc_mfs47_lin_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs47_lin_bgr_field_t; + +typedef struct stc_mfs47_lin_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs47_lin_bgr1_field_t; + +typedef struct stc_mfs47_lin_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_lin_fcr_field_t; + +typedef struct stc_mfs47_lin_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_lin_fcr0_field_t; + +typedef struct stc_mfs47_lin_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_lin_fcr1_field_t; + +typedef struct stc_mfs47_lin_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_lin_fbyte_field_t; + +typedef struct stc_mfs47_lin_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_lin_fbyte1_field_t; + +typedef struct stc_mfs47_lin_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_lin_fbyte2_field_t; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* MFS47_I2C_MODULE register bit fields */ +typedef struct stc_mfs47_i2c_smr_field +{ + __IO uint8_t ITST0 : 1; + __IO uint8_t ITST1 : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD0 : 1; + __IO uint8_t MD1 : 1; + __IO uint8_t MD2 : 1; +} stc_mfs47_i2c_smr_field_t; + +typedef struct stc_mfs47_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs47_i2c_ibcr_field_t; + +typedef struct stc_mfs47_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs47_i2c_ibsr_field_t; + +typedef struct stc_mfs47_i2c_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t DMA : 1; + __IO uint8_t TSET : 1; + __IO uint8_t REC : 1; +} stc_mfs47_i2c_ssr_field_t; + +typedef struct stc_mfs47_i2c_isba_field +{ + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + __IO uint8_t SAEN : 1; +} stc_mfs47_i2c_isba_field_t; + +typedef struct stc_mfs47_i2c_ismk_field +{ + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + __IO uint8_t EN : 1; +} stc_mfs47_i2c_ismk_field_t; + +typedef struct stc_mfs47_i2c_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_i2c_fcr_field_t; + +typedef struct stc_mfs47_i2c_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_i2c_fcr0_field_t; + +typedef struct stc_mfs47_i2c_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_i2c_fcr1_field_t; + +typedef struct stc_mfs47_i2c_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_i2c_fbyte_field_t; + +typedef struct stc_mfs47_i2c_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_i2c_fbyte1_field_t; + +typedef struct stc_mfs47_i2c_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_i2c_fbyte2_field_t; + +/****************************************************************************** + * MFS_NFC_MODULE + ******************************************************************************/ +/* MFS_NFC_MODULE register bit fields */ +typedef struct stc_mfs_nfc_i2cdnf_field +{ + __IO uint16_t I2CDNF00 : 1; + __IO uint16_t I2CDNF01 : 1; + __IO uint16_t I2CDNF10 : 1; + __IO uint16_t I2CDNF11 : 1; + __IO uint16_t I2CDNF20 : 1; + __IO uint16_t I2CDNF21 : 1; + __IO uint16_t I2CDNF30 : 1; + __IO uint16_t I2CDNF31 : 1; + __IO uint16_t I2CDNF40 : 1; + __IO uint16_t I2CDNF41 : 1; + __IO uint16_t I2CDNF50 : 1; + __IO uint16_t I2CDNF51 : 1; + __IO uint16_t I2CDNF60 : 1; + __IO uint16_t I2CDNF61 : 1; + __IO uint16_t I2CDNF70 : 1; + __IO uint16_t I2CDNF71 : 1; +} stc_mfs_nfc_i2cdnf_field_t; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC_MODULE register bit fields */ +typedef struct stc_crc_crccr_field +{ + __IO uint8_t INIT : 1; + __IO uint8_t CRC32 : 1; + __IO uint8_t LTLEND : 1; + __IO uint8_t LSBFST : 1; + __IO uint8_t CRCLTE : 1; + __IO uint8_t CRCLSF : 1; + __IO uint8_t FXOR : 1; +} stc_crc_crccr_field_t; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* WC_MODULE register bit fields */ +typedef struct stc_wc_wcrd_field +{ + __IO uint8_t CTR0 : 1; + __IO uint8_t CTR1 : 1; + __IO uint8_t CTR2 : 1; + __IO uint8_t CTR3 : 1; + __IO uint8_t CTR4 : 1; + __IO uint8_t CTR5 : 1; +} stc_wc_wcrd_field_t; + +typedef struct stc_wc_wcrl_field +{ + __IO uint8_t RLC0 : 1; + __IO uint8_t RLC1 : 1; + __IO uint8_t RLC2 : 1; + __IO uint8_t RLC3 : 1; + __IO uint8_t RLC4 : 1; + __IO uint8_t RLC5 : 1; +} stc_wc_wcrl_field_t; + +typedef struct stc_wc_wccr_field +{ + __IO uint8_t WCIF : 1; + __IO uint8_t WCIE : 1; + __IO uint8_t CS0 : 1; + __IO uint8_t CS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t WCOP : 1; + __IO uint8_t WCEN : 1; +} stc_wc_wccr_field_t; + +typedef struct stc_wc_clk_sel_field +{ + __IO uint16_t SEL_IN : 1; + uint16_t RESERVED1 : 7; + __IO uint16_t SEL_OUT : 1; +} stc_wc_clk_sel_field_t; + +typedef struct stc_wc_clk_en_field +{ + __IO uint8_t CLK_EN : 1; + __IO uint8_t CLK_EN_R : 1; +} stc_wc_clk_en_field_t; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* EXBUS_MODULE register bit fields */ +typedef struct stc_exbus_mode0_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode0_field_t; + +typedef struct stc_exbus_mode1_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode1_field_t; + +typedef struct stc_exbus_mode2_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode2_field_t; + +typedef struct stc_exbus_mode3_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode3_field_t; + +typedef struct stc_exbus_mode4_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode4_field_t; + +typedef struct stc_exbus_mode5_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode5_field_t; + +typedef struct stc_exbus_mode6_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode6_field_t; + +typedef struct stc_exbus_mode7_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode7_field_t; + +typedef struct stc_exbus_tim0_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim0_field_t; + +typedef struct stc_exbus_tim1_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim1_field_t; + +typedef struct stc_exbus_tim2_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim2_field_t; + +typedef struct stc_exbus_tim3_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim3_field_t; + +typedef struct stc_exbus_tim4_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim4_field_t; + +typedef struct stc_exbus_tim5_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim5_field_t; + +typedef struct stc_exbus_tim6_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim6_field_t; + +typedef struct stc_exbus_tim7_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim7_field_t; + +typedef struct stc_exbus_area0_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area0_field_t; + +typedef struct stc_exbus_area1_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area1_field_t; + +typedef struct stc_exbus_area2_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area2_field_t; + +typedef struct stc_exbus_area3_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area3_field_t; + +typedef struct stc_exbus_area4_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area4_field_t; + +typedef struct stc_exbus_area5_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area5_field_t; + +typedef struct stc_exbus_area6_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area6_field_t; + +typedef struct stc_exbus_area7_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area7_field_t; + +typedef struct stc_exbus_atim0_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim0_field_t; + +typedef struct stc_exbus_atim1_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim1_field_t; + +typedef struct stc_exbus_atim2_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim2_field_t; + +typedef struct stc_exbus_atim3_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim3_field_t; + +typedef struct stc_exbus_atim4_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim4_field_t; + +typedef struct stc_exbus_atim5_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim5_field_t; + +typedef struct stc_exbus_atim6_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim6_field_t; + +typedef struct stc_exbus_atim7_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim7_field_t; + +typedef struct stc_exbus_dclkr_field +{ + __IO uint8_t MDIV0 : 1; + __IO uint8_t MDIV1 : 1; + __IO uint8_t MDIV2 : 1; + __IO uint8_t MDIV3 : 1; + __IO uint8_t MCLKON : 1; +} stc_exbus_dclkr_field_t; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB_MODULE register bit fields */ +typedef struct stc_usb_hcnt_field +{ + __IO uint16_t HOST : 1; + __IO uint16_t URST : 1; + __IO uint16_t SOFIRE : 1; + __IO uint16_t DIRE : 1; + __IO uint16_t CNNIRE : 1; + __IO uint16_t CMPIRE : 1; + __IO uint16_t URIRE : 1; + __IO uint16_t RWKIRE : 1; + __IO uint16_t RETRY : 1; + __IO uint16_t CANCEL : 1; + __IO uint16_t SOFSTEP : 1; +} stc_usb_hcnt_field_t; + +typedef struct stc_usb_hcnt0_field +{ + __IO uint8_t HOST : 1; + __IO uint8_t URST : 1; + __IO uint8_t SOFIRE : 1; + __IO uint8_t DIRE : 1; + __IO uint8_t CNNIRE : 1; + __IO uint8_t CMPIRE : 1; + __IO uint8_t URIRE : 1; + __IO uint8_t RWKIRE : 1; +} stc_usb_hcnt0_field_t; + +typedef struct stc_usb_hcnt1_field +{ + __IO uint8_t RETRY : 1; + __IO uint8_t CANCEL : 1; + __IO uint8_t SOFSTEP : 1; +} stc_usb_hcnt1_field_t; + +typedef struct stc_usb_hirq_field +{ + __IO uint8_t SOFIRQ : 1; + __IO uint8_t DIRQ : 1; + __IO uint8_t CNNIRQ : 1; + __IO uint8_t CMPIRQ : 1; + __IO uint8_t URIRQ : 1; + __IO uint8_t RWKIRQ : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TCAN : 1; +} stc_usb_hirq_field_t; + +typedef struct stc_usb_herr_field +{ + __IO uint8_t HS0 : 1; + __IO uint8_t HS1 : 1; + __IO uint8_t STUFF : 1; + __IO uint8_t TGERR : 1; + __IO uint8_t CRC : 1; + __IO uint8_t TOUT : 1; + __IO uint8_t RERR : 1; + __IO uint8_t LSTOF : 1; +} stc_usb_herr_field_t; + +typedef struct stc_usb_hstate_field +{ + __IO uint8_t CSTAT : 1; + __IO uint8_t TMODE : 1; + __IO uint8_t SUSP : 1; + __IO uint8_t SOFBUSY : 1; + __IO uint8_t CLKSEL : 1; + __IO uint8_t ALIVE : 1; +} stc_usb_hstate_field_t; + +typedef struct stc_usb_hfcomp_field +{ + __IO uint8_t FRAMECOMP0 : 1; + __IO uint8_t FRAMECOMP1 : 1; + __IO uint8_t FRAMECOMP2 : 1; + __IO uint8_t FRAMECOMP3 : 1; + __IO uint8_t FRAMECOMP4 : 1; + __IO uint8_t FRAMECOMP5 : 1; + __IO uint8_t FRAMECOMP6 : 1; + __IO uint8_t FRAMECOMP7 : 1; +} stc_usb_hfcomp_field_t; + +typedef struct stc_usb_hrtimer_field +{ + __IO uint16_t RTIMER0 : 1; + __IO uint16_t RTIMER1 : 1; + __IO uint16_t RTIMER2 : 1; + __IO uint16_t RTIMER3 : 1; + __IO uint16_t RTIMER4 : 1; + __IO uint16_t RTIMER5 : 1; + __IO uint16_t RTIMER6 : 1; + __IO uint16_t RTIMER7 : 1; + __IO uint16_t RTIMER8 : 1; + __IO uint16_t RTIMER9 : 1; + __IO uint16_t RTIMER10 : 1; + __IO uint16_t RTIMER11 : 1; + __IO uint16_t RTIMER12 : 1; + __IO uint16_t RTIMER13 : 1; + __IO uint16_t RTIMER14 : 1; + __IO uint16_t RTIMER15 : 1; +} stc_usb_hrtimer_field_t; + +typedef struct stc_usb_hrtimer0_field +{ + __IO uint8_t RTIMER00 : 1; + __IO uint8_t RTIMER01 : 1; + __IO uint8_t RTIMER02 : 1; + __IO uint8_t RTIMER03 : 1; + __IO uint8_t RTIMER04 : 1; + __IO uint8_t RTIMER05 : 1; + __IO uint8_t RTIMER06 : 1; + __IO uint8_t RTIMER07 : 1; +} stc_usb_hrtimer0_field_t; + +typedef struct stc_usb_hrtimer1_field +{ + __IO uint8_t RTIMER10 : 1; + __IO uint8_t RTIMER11 : 1; + __IO uint8_t RTIMER12 : 1; + __IO uint8_t RTIMER13 : 1; + __IO uint8_t RTIMER14 : 1; + __IO uint8_t RTIMER15 : 1; + __IO uint8_t RTIMER16 : 1; + __IO uint8_t RTIMER17 : 1; +} stc_usb_hrtimer1_field_t; + +typedef struct stc_usb_hrtimer2_field +{ + __IO uint8_t RTIMER20 : 1; + __IO uint8_t RTIMER21 : 1; + __IO uint8_t RTIMER22 : 1; +} stc_usb_hrtimer2_field_t; + +typedef struct stc_usb_hadr_field +{ + __IO uint8_t ADDRESS0 : 1; + __IO uint8_t ADDRESS1 : 1; + __IO uint8_t ADDRESS2 : 1; + __IO uint8_t ADDRESS3 : 1; + __IO uint8_t ADDRESS4 : 1; + __IO uint8_t ADDRESS5 : 1; + __IO uint8_t ADDRESS6 : 1; +} stc_usb_hadr_field_t; + +typedef struct stc_usb_heof_field +{ + __IO uint16_t EOF0 : 1; + __IO uint16_t EOF1 : 1; + __IO uint16_t EOF2 : 1; + __IO uint16_t EOF3 : 1; + __IO uint16_t EOF4 : 1; + __IO uint16_t EOF5 : 1; + __IO uint16_t EOF6 : 1; + __IO uint16_t EOF7 : 1; + __IO uint16_t EOF8 : 1; + __IO uint16_t EOF9 : 1; + __IO uint16_t EOF10 : 1; + __IO uint16_t EOF11 : 1; + __IO uint16_t EOF12 : 1; + __IO uint16_t EOF13 : 1; + __IO uint16_t EOF14 : 1; + __IO uint16_t EOF15 : 1; +} stc_usb_heof_field_t; + +typedef struct stc_usb_heof0_field +{ + __IO uint8_t EOF00 : 1; + __IO uint8_t EOF01 : 1; + __IO uint8_t EOF02 : 1; + __IO uint8_t EOF03 : 1; + __IO uint8_t EOF04 : 1; + __IO uint8_t EOF05 : 1; + __IO uint8_t EOF06 : 1; + __IO uint8_t EOF07 : 1; +} stc_usb_heof0_field_t; + +typedef struct stc_usb_heof1_field +{ + __IO uint8_t EOF10 : 1; + __IO uint8_t EOF11 : 1; + __IO uint8_t EOF12 : 1; + __IO uint8_t EOF13 : 1; + __IO uint8_t EOF14 : 1; + __IO uint8_t EOF15 : 1; +} stc_usb_heof1_field_t; + +typedef struct stc_usb_hframe_field +{ + __IO uint16_t FRAME0 : 1; + __IO uint16_t FRAME1 : 1; + __IO uint16_t FRAME2 : 1; + __IO uint16_t FRAME3 : 1; + __IO uint16_t FRAME4 : 1; + __IO uint16_t FRAME5 : 1; + __IO uint16_t FRAME6 : 1; + __IO uint16_t FRAME7 : 1; + __IO uint16_t FRAME8 : 1; + __IO uint16_t FRAME9 : 1; + __IO uint16_t FRAME10 : 1; +} stc_usb_hframe_field_t; + +typedef struct stc_usb_hframe0_field +{ + __IO uint8_t FRAME00 : 1; + __IO uint8_t FRAME01 : 1; + __IO uint8_t FRAME02 : 1; + __IO uint8_t FRAME03 : 1; + __IO uint8_t FRAME04 : 1; + __IO uint8_t FRAME05 : 1; + __IO uint8_t FRAME06 : 1; + __IO uint8_t FRAME07 : 1; +} stc_usb_hframe0_field_t; + +typedef struct stc_usb_hframe1_field +{ + __IO uint8_t FRAME10 : 1; + __IO uint8_t FRAME11 : 1; + __IO uint8_t FRAME12 : 1; + __IO uint8_t FRAME13 : 1; +} stc_usb_hframe1_field_t; + +typedef struct stc_usb_htoken_field +{ + __IO uint8_t ENDPT0 : 1; + __IO uint8_t ENDPT1 : 1; + __IO uint8_t ENDPT2 : 1; + __IO uint8_t ENDPT3 : 1; + __IO uint8_t TKNEN0 : 1; + __IO uint8_t TKNEN1 : 1; + __IO uint8_t TKNEN2 : 1; + __IO uint8_t TGGL : 1; +} stc_usb_htoken_field_t; + +typedef struct stc_usb_udcc_field +{ + __IO uint16_t PWC : 1; + __IO uint16_t RFBK : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t STALCLREN : 1; + __IO uint16_t USTP : 1; + __IO uint16_t HCONX : 1; + __IO uint16_t RESUM : 1; + __IO uint16_t RST : 1; +} stc_usb_udcc_field_t; + +typedef struct stc_usb_ep0c_field +{ + __IO uint16_t PKS00 : 1; + __IO uint16_t PKS01 : 1; + __IO uint16_t PKS02 : 1; + __IO uint16_t PKS03 : 1; + __IO uint16_t PKS04 : 1; + __IO uint16_t PKS05 : 1; + __IO uint16_t PKS06 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; +} stc_usb_ep0c_field_t; + +typedef struct stc_usb_ep1c_field +{ + __IO uint16_t PKS10 : 1; + __IO uint16_t PKS11 : 1; + __IO uint16_t PKS12 : 1; + __IO uint16_t PKS13 : 1; + __IO uint16_t PKS14 : 1; + __IO uint16_t PKS15 : 1; + __IO uint16_t PKS16 : 1; + __IO uint16_t PKS17 : 1; + __IO uint16_t PKS18 : 1; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep1c_field_t; + +typedef struct stc_usb_ep2c_field +{ + __IO uint16_t PKS20 : 1; + __IO uint16_t PKS21 : 1; + __IO uint16_t PKS22 : 1; + __IO uint16_t PKS23 : 1; + __IO uint16_t PKS24 : 1; + __IO uint16_t PKS25 : 1; + __IO uint16_t PKS26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep2c_field_t; + +typedef struct stc_usb_ep3c_field +{ + __IO uint16_t PKS30 : 1; + __IO uint16_t PKS31 : 1; + __IO uint16_t PKS32 : 1; + __IO uint16_t PKS33 : 1; + __IO uint16_t PKS34 : 1; + __IO uint16_t PKS35 : 1; + __IO uint16_t PKS36 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep3c_field_t; + +typedef struct stc_usb_ep4c_field +{ + __IO uint16_t PKS40 : 1; + __IO uint16_t PKS41 : 1; + __IO uint16_t PKS42 : 1; + __IO uint16_t PKS43 : 1; + __IO uint16_t PKS44 : 1; + __IO uint16_t PKS45 : 1; + __IO uint16_t PKS46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep4c_field_t; + +typedef struct stc_usb_ep5c_field +{ + __IO uint16_t PKS50 : 1; + __IO uint16_t PKS51 : 1; + __IO uint16_t PKS52 : 1; + __IO uint16_t PKS53 : 1; + __IO uint16_t PKS54 : 1; + __IO uint16_t PKS55 : 1; + __IO uint16_t PKS56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep5c_field_t; + +typedef struct stc_usb_tmsp_field +{ + __IO uint16_t TMSP0 : 1; + __IO uint16_t TMSP1 : 1; + __IO uint16_t TMSP2 : 1; + __IO uint16_t TMSP3 : 1; + __IO uint16_t TMSP4 : 1; + __IO uint16_t TMSP5 : 1; + __IO uint16_t TMSP6 : 1; + __IO uint16_t TMSP7 : 1; + __IO uint16_t TMSP8 : 1; + __IO uint16_t TMSP9 : 1; + __IO uint16_t TMSP10 : 1; +} stc_usb_tmsp_field_t; + +typedef struct stc_usb_udcs_field +{ + __IO uint8_t CONF : 1; + __IO uint8_t SETP : 1; + __IO uint8_t WKUP : 1; + __IO uint8_t BRST : 1; + __IO uint8_t SOF : 1; + __IO uint8_t SUSP : 1; +} stc_usb_udcs_field_t; + +typedef struct stc_usb_udcie_field +{ + __IO uint8_t CONFIE : 1; + __IO uint8_t CONFN : 1; + __IO uint8_t WKUPIE : 1; + __IO uint8_t BRSTIE : 1; + __IO uint8_t SOFIE : 1; + __IO uint8_t SUSPIE : 1; +} stc_usb_udcie_field_t; + +typedef struct stc_usb_ep0is_field +{ + uint16_t RESERVED1 : 10; + __IO uint16_t DRQI : 1; + uint16_t RESERVED2 : 3; + __IO uint16_t DRQIIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0is_field_t; + +typedef struct stc_usb_ep0os_field +{ + __IO uint16_t SIZE0 : 1; + __IO uint16_t SIZE1 : 1; + __IO uint16_t SIZE2 : 1; + __IO uint16_t SIZE3 : 1; + __IO uint16_t SIZE4 : 1; + __IO uint16_t SIZE5 : 1; + __IO uint16_t SIZE6 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQO : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQOIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0os_field_t; + +typedef struct stc_usb_ep1s_field +{ + __IO uint16_t SIZE10 : 1; + __IO uint16_t SIZE11 : 1; + __IO uint16_t SIZE12 : 1; + __IO uint16_t SIZE13 : 1; + __IO uint16_t SIZE14 : 1; + __IO uint16_t SIZE15 : 1; + __IO uint16_t SIZE16 : 1; + __IO uint16_t SIZE17 : 1; + __IO uint16_t SIZE18 : 1; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep1s_field_t; + +typedef struct stc_usb_ep2s_field +{ + __IO uint16_t SIZE20 : 1; + __IO uint16_t SIZE21 : 1; + __IO uint16_t SIZE22 : 1; + __IO uint16_t SIZE23 : 1; + __IO uint16_t SIZE24 : 1; + __IO uint16_t SIZE25 : 1; + __IO uint16_t SIZE26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep2s_field_t; + +typedef struct stc_usb_ep4s_field +{ + __IO uint16_t SIZE40 : 1; + __IO uint16_t SIZE41 : 1; + __IO uint16_t SIZE42 : 1; + __IO uint16_t SIZE43 : 1; + __IO uint16_t SIZE44 : 1; + __IO uint16_t SIZE45 : 1; + __IO uint16_t SIZE46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep4s_field_t; + +typedef struct stc_usb_ep5s_field +{ + __IO uint16_t SIZE50 : 1; + __IO uint16_t SIZE51 : 1; + __IO uint16_t SIZE52 : 1; + __IO uint16_t SIZE53 : 1; + __IO uint16_t SIZE54 : 1; + __IO uint16_t SIZE55 : 1; + __IO uint16_t SIZE56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep5s_field_t; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMAC_MODULE register bit fields */ +typedef struct stc_dmac_dmacr_field +{ + uint32_t RESERVED1 : 24; + __IO uint32_t DH0 : 1; + __IO uint32_t DH1 : 1; + __IO uint32_t DH2 : 1; + __IO uint32_t DH3 : 1; + __IO uint32_t PR : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t DS : 1; + __IO uint32_t DE : 1; +} stc_dmac_dmacr_field_t; + +typedef struct stc_dmac_dmaca0_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca0_field_t; + +typedef struct stc_dmac_dmacb0_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb0_field_t; + +typedef struct stc_dmac_dmaca1_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca1_field_t; + +typedef struct stc_dmac_dmacb1_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb1_field_t; + +typedef struct stc_dmac_dmaca2_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca2_field_t; + +typedef struct stc_dmac_dmacb2_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb2_field_t; + +typedef struct stc_dmac_dmaca3_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca3_field_t; + +typedef struct stc_dmac_dmacb3_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb3_field_t; + +typedef struct stc_dmac_dmaca4_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca4_field_t; + +typedef struct stc_dmac_dmacb4_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb4_field_t; + +typedef struct stc_dmac_dmaca5_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca5_field_t; + +typedef struct stc_dmac_dmacb5_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb5_field_t; + +typedef struct stc_dmac_dmaca6_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca6_field_t; + +typedef struct stc_dmac_dmacb6_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb6_field_t; + +typedef struct stc_dmac_dmaca7_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca7_field_t; + +typedef struct stc_dmac_dmacb7_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb7_field_t; + +/****************************************************************************** + * ETHERNET_MAC_MODULE + ******************************************************************************/ +/* ETHERNET_MAC_MODULE register bit fields */ +typedef struct stc_ethernet_mac_mcr_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t RE : 1; + __IO uint32_t TE : 1; + __IO uint32_t DC : 1; + __IO uint32_t BL0 : 1; + __IO uint32_t BL1 : 1; + __IO uint32_t ACS : 1; + __IO uint32_t LUD : 1; + __IO uint32_t DR : 1; + __IO uint32_t IPC : 1; + __IO uint32_t DM : 1; + __IO uint32_t LM : 1; + __IO uint32_t DO : 1; + __IO uint32_t FES : 1; + __IO uint32_t PS : 1; + __IO uint32_t DCRS : 1; + __IO uint32_t IFG0 : 1; + __IO uint32_t IFG1 : 1; + __IO uint32_t IFG2 : 1; + __IO uint32_t JE : 1; + __IO uint32_t BE : 1; + __IO uint32_t JD : 1; + __IO uint32_t WD : 1; + __IO uint32_t TC : 1; + __IO uint32_t CST : 1; +} stc_ethernet_mac_mcr_field_t; + +typedef struct stc_ethernet_mac_mffr_field +{ + __IO uint32_t PR : 1; + __IO uint32_t HUC : 1; + __IO uint32_t HMC : 1; + __IO uint32_t DAIF : 1; + __IO uint32_t PM : 1; + __IO uint32_t DB : 1; + __IO uint32_t PCF0 : 1; + __IO uint32_t PCF1 : 1; + __IO uint32_t SAIF : 1; + __IO uint32_t SAF : 1; + __IO uint32_t HPF : 1; + uint32_t RESERVED1 :20; + __IO uint32_t RA : 1; +} stc_ethernet_mac_mffr_field_t; + +typedef struct stc_ethernet_mac_mhtrh_field +{ + __IO uint32_t HTH0 : 1; + __IO uint32_t HTH1 : 1; + __IO uint32_t HTH2 : 1; + __IO uint32_t HTH3 : 1; + __IO uint32_t HTH4 : 1; + __IO uint32_t HTH5 : 1; + __IO uint32_t HTH6 : 1; + __IO uint32_t HTH7 : 1; + __IO uint32_t HTH8 : 1; + __IO uint32_t HTH9 : 1; + __IO uint32_t HTH10 : 1; + __IO uint32_t HTH11 : 1; + __IO uint32_t HTH12 : 1; + __IO uint32_t HTH13 : 1; + __IO uint32_t HTH14 : 1; + __IO uint32_t HTH15 : 1; + __IO uint32_t HTH16 : 1; + __IO uint32_t HTH17 : 1; + __IO uint32_t HTH18 : 1; + __IO uint32_t HTH19 : 1; + __IO uint32_t HTH20 : 1; + __IO uint32_t HTH21 : 1; + __IO uint32_t HTH22 : 1; + __IO uint32_t HTH23 : 1; + __IO uint32_t HTH24 : 1; + __IO uint32_t HTH25 : 1; + __IO uint32_t HTH26 : 1; + __IO uint32_t HTH27 : 1; + __IO uint32_t HTH28 : 1; + __IO uint32_t HTH29 : 1; + __IO uint32_t HTH30 : 1; + __IO uint32_t HTH31 : 1; +} stc_ethernet_mac_mhtrh_field_t; + +typedef struct stc_ethernet_mac_mhtrl_field +{ + __IO uint32_t HTL0 : 1; + __IO uint32_t HTL1 : 1; + __IO uint32_t HTL2 : 1; + __IO uint32_t HTL3 : 1; + __IO uint32_t HTL4 : 1; + __IO uint32_t HTL5 : 1; + __IO uint32_t HTL6 : 1; + __IO uint32_t HTL7 : 1; + __IO uint32_t HTL8 : 1; + __IO uint32_t HTL9 : 1; + __IO uint32_t HTL10 : 1; + __IO uint32_t HTL11 : 1; + __IO uint32_t HTL12 : 1; + __IO uint32_t HTL13 : 1; + __IO uint32_t HTL14 : 1; + __IO uint32_t HTL15 : 1; + __IO uint32_t HTL16 : 1; + __IO uint32_t HTL17 : 1; + __IO uint32_t HTL18 : 1; + __IO uint32_t HTL19 : 1; + __IO uint32_t HTL20 : 1; + __IO uint32_t HTL21 : 1; + __IO uint32_t HTL22 : 1; + __IO uint32_t HTL23 : 1; + __IO uint32_t HTL24 : 1; + __IO uint32_t HTL25 : 1; + __IO uint32_t HTL26 : 1; + __IO uint32_t HTL27 : 1; + __IO uint32_t HTL28 : 1; + __IO uint32_t HTL29 : 1; + __IO uint32_t HTL30 : 1; + __IO uint32_t HTL31 : 1; +} stc_ethernet_mac_mhtrl_field_t; + +typedef struct stc_ethernet_mac_gar_field +{ + __IO uint32_t GB : 1; + __IO uint32_t GW : 1; + __IO uint32_t CR0 : 1; + __IO uint32_t CR1 : 1; + __IO uint32_t CR2 : 1; + __IO uint32_t CR3 : 1; + __IO uint32_t GR0 : 1; + __IO uint32_t GR1 : 1; + __IO uint32_t GR2 : 1; + __IO uint32_t GR3 : 1; + __IO uint32_t GR4 : 1; + __IO uint32_t PA0 : 1; + __IO uint32_t PA1 : 1; + __IO uint32_t PA2 : 1; + __IO uint32_t PA3 : 1; + __IO uint32_t PA4 : 1; +} stc_ethernet_mac_gar_field_t; + +typedef struct stc_ethernet_mac_gdr_field +{ + __IO uint32_t GD0 : 1; + __IO uint32_t GD1 : 1; + __IO uint32_t GD2 : 1; + __IO uint32_t GD3 : 1; + __IO uint32_t GD4 : 1; + __IO uint32_t GD5 : 1; + __IO uint32_t GD6 : 1; + __IO uint32_t GD7 : 1; + __IO uint32_t GD8 : 1; + __IO uint32_t GD9 : 1; + __IO uint32_t GD10 : 1; + __IO uint32_t GD11 : 1; + __IO uint32_t GD12 : 1; + __IO uint32_t GD13 : 1; + __IO uint32_t GD14 : 1; + __IO uint32_t GD15 : 1; +} stc_ethernet_mac_gdr_field_t; + +typedef struct stc_ethernet_mac_fcr_field +{ + __IO uint32_t FCB_BPA : 1; + __IO uint32_t TFE : 1; + __IO uint32_t RFE : 1; + __IO uint32_t UP : 1; + __IO uint32_t PLT0 : 1; + __IO uint32_t PLT1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t DZPQ : 1; + uint32_t RESERVED2 : 8; + __IO uint32_t PT0 : 1; + __IO uint32_t PT1 : 1; + __IO uint32_t PT2 : 1; + __IO uint32_t PT3 : 1; + __IO uint32_t PT4 : 1; + __IO uint32_t PT5 : 1; + __IO uint32_t PT6 : 1; + __IO uint32_t PT7 : 1; + __IO uint32_t PT8 : 1; + __IO uint32_t PT9 : 1; + __IO uint32_t PT10 : 1; + __IO uint32_t PT11 : 1; + __IO uint32_t PT12 : 1; + __IO uint32_t PT13 : 1; + __IO uint32_t PT14 : 1; + __IO uint32_t PT15 : 1; +} stc_ethernet_mac_fcr_field_t; + +typedef struct stc_ethernet_mac_vtr_field +{ + __IO uint32_t VL0 : 1; + __IO uint32_t VL1 : 1; + __IO uint32_t VL2 : 1; + __IO uint32_t VL3 : 1; + __IO uint32_t VL4 : 1; + __IO uint32_t VL5 : 1; + __IO uint32_t VL6 : 1; + __IO uint32_t VL7 : 1; + __IO uint32_t VL8 : 1; + __IO uint32_t VL9 : 1; + __IO uint32_t VL10 : 1; + __IO uint32_t VL11 : 1; + __IO uint32_t VL12 : 1; + __IO uint32_t VL13 : 1; + __IO uint32_t VL14 : 1; + __IO uint32_t VL15 : 1; + __IO uint32_t ETV : 1; +} stc_ethernet_mac_vtr_field_t; + +typedef struct stc_ethernet_mac_rwffr_field +{ + __IO uint32_t RWFFR0 : 1; + __IO uint32_t RWFFR1 : 1; + __IO uint32_t RWFFR2 : 1; + __IO uint32_t RWFFR3 : 1; + __IO uint32_t RWFFR4 : 1; + __IO uint32_t RWFFR5 : 1; + __IO uint32_t RWFFR6 : 1; + __IO uint32_t RWFFR7 : 1; + __IO uint32_t RWFFR8 : 1; + __IO uint32_t RWFFR9 : 1; + __IO uint32_t RWFFR10 : 1; + __IO uint32_t RWFFR11 : 1; + __IO uint32_t RWFFR12 : 1; + __IO uint32_t RWFFR13 : 1; + __IO uint32_t RWFFR14 : 1; + __IO uint32_t RWFFR15 : 1; + __IO uint32_t RWFFR16 : 1; + __IO uint32_t RWFFR17 : 1; + __IO uint32_t RWFFR18 : 1; + __IO uint32_t RWFFR19 : 1; + __IO uint32_t RWFFR20 : 1; + __IO uint32_t RWFFR21 : 1; + __IO uint32_t RWFFR22 : 1; + __IO uint32_t RWFFR23 : 1; + __IO uint32_t RWFFR24 : 1; + __IO uint32_t RWFFR25 : 1; + __IO uint32_t RWFFR26 : 1; + __IO uint32_t RWFFR27 : 1; + __IO uint32_t RWFFR28 : 1; + __IO uint32_t RWFFR29 : 1; + __IO uint32_t RWFFR30 : 1; + __IO uint32_t RWFFR31 : 1; +} stc_ethernet_mac_rwffr_field_t; + +typedef struct stc_ethernet_mac_pmtr_field +{ + __IO uint32_t PD : 1; + __IO uint32_t MPE : 1; + __IO uint32_t WFE : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t MPR : 1; + __IO uint32_t WPR : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t GU : 1; + uint32_t RESERVED3 :21; + __IO uint32_t RWFFRPR : 1; +} stc_ethernet_mac_pmtr_field_t; + +typedef struct stc_ethernet_mac_lpicsr_field +{ + __IO uint32_t TLPIEN : 1; + __IO uint32_t TLPIEX : 1; + __IO uint32_t RLPIEN : 1; + __IO uint32_t RLPIEX : 1; + uint32_t RESERVED1 : 4; + __IO uint32_t TLPIST : 1; + __IO uint32_t RLPIST : 1; + uint32_t RESERVED2 : 6; + __IO uint32_t LPIEN : 1; + __IO uint32_t PLS : 1; + __IO uint32_t PLSEN : 1; + __IO uint32_t LPITXA : 1; +} stc_ethernet_mac_lpicsr_field_t; + +typedef struct stc_ethernet_mac_lpitcr_field +{ + __IO uint32_t TWT0 : 1; + __IO uint32_t TWT1 : 1; + __IO uint32_t TWT2 : 1; + __IO uint32_t TWT3 : 1; + __IO uint32_t TWT4 : 1; + __IO uint32_t TWT5 : 1; + __IO uint32_t TWT6 : 1; + __IO uint32_t TWT7 : 1; + __IO uint32_t TWT8 : 1; + __IO uint32_t TWT9 : 1; + __IO uint32_t TWT10 : 1; + __IO uint32_t TWT11 : 1; + __IO uint32_t TWT12 : 1; + __IO uint32_t TWT13 : 1; + __IO uint32_t TWT14 : 1; + __IO uint32_t TWT15 : 1; + __IO uint32_t LIT0 : 1; + __IO uint32_t LIT1 : 1; + __IO uint32_t LIT2 : 1; + __IO uint32_t LIT3 : 1; + __IO uint32_t LIT4 : 1; + __IO uint32_t LIT5 : 1; + __IO uint32_t LIT6 : 1; + __IO uint32_t LIT7 : 1; + __IO uint32_t LIT8 : 1; + __IO uint32_t LIT9 : 1; +} stc_ethernet_mac_lpitcr_field_t; + +typedef struct stc_ethernet_mac_isr_field +{ + __IO uint32_t RGIS : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t PIS : 1; + __IO uint32_t MIS : 1; + __IO uint32_t RIS : 1; + __IO uint32_t TIS : 1; + __IO uint32_t COIS : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t TSIS : 1; + __IO uint32_t LPIIS : 1; +} stc_ethernet_mac_isr_field_t; + +typedef struct stc_ethernet_mac_imr_field +{ + __IO uint32_t RGIM : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t PIM : 1; + uint32_t RESERVED2 : 5; + __IO uint32_t TSIM : 1; + __IO uint32_t LPIIM : 1; +} stc_ethernet_mac_imr_field_t; + +typedef struct stc_ethernet_mac_mar0h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 :15; + __IO uint32_t MO : 1; +} stc_ethernet_mac_mar0h_field_t; + +typedef struct stc_ethernet_mac_mar0l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar0l_field_t; + +typedef struct stc_ethernet_mac_mar1h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar1h_field_t; + +typedef struct stc_ethernet_mac_mar1l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar1l_field_t; + +typedef struct stc_ethernet_mac_mar2h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar2h_field_t; + +typedef struct stc_ethernet_mac_mar2l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar2l_field_t; + +typedef struct stc_ethernet_mac_mar3h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar3h_field_t; + +typedef struct stc_ethernet_mac_mar3l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar3l_field_t; + +typedef struct stc_ethernet_mac_mar4h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar4h_field_t; + +typedef struct stc_ethernet_mac_mar4l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar4l_field_t; + +typedef struct stc_ethernet_mac_mar5h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar5h_field_t; + +typedef struct stc_ethernet_mac_mar5l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar5l_field_t; + +typedef struct stc_ethernet_mac_mar6h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar6h_field_t; + +typedef struct stc_ethernet_mac_mar6l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar6l_field_t; + +typedef struct stc_ethernet_mac_mar7h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar7h_field_t; + +typedef struct stc_ethernet_mac_mar7l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar7l_field_t; + +typedef struct stc_ethernet_mac_mar8h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar8h_field_t; + +typedef struct stc_ethernet_mac_mar8l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar8l_field_t; + +typedef struct stc_ethernet_mac_mar9h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar9h_field_t; + +typedef struct stc_ethernet_mac_mar9l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar9l_field_t; + +typedef struct stc_ethernet_mac_mar10h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar10h_field_t; + +typedef struct stc_ethernet_mac_mar10l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar10l_field_t; + +typedef struct stc_ethernet_mac_mar11h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar11h_field_t; + +typedef struct stc_ethernet_mac_mar11l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar11l_field_t; + +typedef struct stc_ethernet_mac_mar12h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar12h_field_t; + +typedef struct stc_ethernet_mac_mar12l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar12l_field_t; + +typedef struct stc_ethernet_mac_mar13h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar13h_field_t; + +typedef struct stc_ethernet_mac_mar13l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar13l_field_t; + +typedef struct stc_ethernet_mac_mar14h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar14h_field_t; + +typedef struct stc_ethernet_mac_mar14l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar14l_field_t; + +typedef struct stc_ethernet_mac_mar15h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar15h_field_t; + +typedef struct stc_ethernet_mac_mar15l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar15l_field_t; + +typedef struct stc_ethernet_mac_rgsr_field +{ + __IO uint32_t LM : 1; + __IO uint32_t LSP0 : 1; + __IO uint32_t LSP1 : 1; + __IO uint32_t LS : 1; +} stc_ethernet_mac_rgsr_field_t; + +typedef struct stc_ethernet_mac_tscr_field +{ + __IO uint32_t TSE : 1; + __IO uint32_t TFCU : 1; + __IO uint32_t TSI : 1; + __IO uint32_t TSU : 1; + __IO uint32_t TITE : 1; + __IO uint32_t TARU : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t TSEA : 1; + __IO uint32_t TSDB : 1; + __IO uint32_t TSV2E : 1; + __IO uint32_t TETSP : 1; + __IO uint32_t TSIP6E : 1; + __IO uint32_t TSIP4E : 1; + __IO uint32_t TETSEM : 1; + __IO uint32_t TSMRM : 1; + __IO uint32_t TSPS0 : 1; + __IO uint32_t TSPS1 : 1; + __IO uint32_t TSENMF : 1; + uint32_t RESERVED2 : 5; + __IO uint32_t ATSFC : 1; +} stc_ethernet_mac_tscr_field_t; + +typedef struct stc_ethernet_mac_ssir_field +{ + __IO uint32_t SSINC0 : 1; + __IO uint32_t SSINC1 : 1; + __IO uint32_t SSINC2 : 1; + __IO uint32_t SSINC3 : 1; + __IO uint32_t SSINC4 : 1; + __IO uint32_t SSINC5 : 1; + __IO uint32_t SSINC6 : 1; + __IO uint32_t SSINC7 : 1; +} stc_ethernet_mac_ssir_field_t; + +typedef struct stc_ethernet_mac_stsr_field +{ + __IO uint32_t TSS0 : 1; + __IO uint32_t TSS1 : 1; + __IO uint32_t TSS2 : 1; + __IO uint32_t TSS3 : 1; + __IO uint32_t TSS4 : 1; + __IO uint32_t TSS5 : 1; + __IO uint32_t TSS6 : 1; + __IO uint32_t TSS7 : 1; + __IO uint32_t TSS8 : 1; + __IO uint32_t TSS9 : 1; + __IO uint32_t TSS10 : 1; + __IO uint32_t TSS11 : 1; + __IO uint32_t TSS12 : 1; + __IO uint32_t TSS13 : 1; + __IO uint32_t TSS14 : 1; + __IO uint32_t TSS15 : 1; + __IO uint32_t TSS16 : 1; + __IO uint32_t TSS17 : 1; + __IO uint32_t TSS18 : 1; + __IO uint32_t TSS19 : 1; + __IO uint32_t TSS20 : 1; + __IO uint32_t TSS21 : 1; + __IO uint32_t TSS22 : 1; + __IO uint32_t TSS23 : 1; + __IO uint32_t TSS24 : 1; + __IO uint32_t TSS25 : 1; + __IO uint32_t TSS26 : 1; + __IO uint32_t TSS27 : 1; + __IO uint32_t TSS28 : 1; + __IO uint32_t TSS29 : 1; + __IO uint32_t TSS30 : 1; + __IO uint32_t TSS31 : 1; +} stc_ethernet_mac_stsr_field_t; + +typedef struct stc_ethernet_mac_stnr_field +{ + __IO uint32_t TSSS0 : 1; + __IO uint32_t TSSS1 : 1; + __IO uint32_t TSSS2 : 1; + __IO uint32_t TSSS3 : 1; + __IO uint32_t TSSS4 : 1; + __IO uint32_t TSSS5 : 1; + __IO uint32_t TSSS6 : 1; + __IO uint32_t TSSS7 : 1; + __IO uint32_t TSSS8 : 1; + __IO uint32_t TSSS9 : 1; + __IO uint32_t TSSS10 : 1; + __IO uint32_t TSSS11 : 1; + __IO uint32_t TSSS12 : 1; + __IO uint32_t TSSS13 : 1; + __IO uint32_t TSSS14 : 1; + __IO uint32_t TSSS15 : 1; + __IO uint32_t TSSS16 : 1; + __IO uint32_t TSSS17 : 1; + __IO uint32_t TSSS18 : 1; + __IO uint32_t TSSS19 : 1; + __IO uint32_t TSSS20 : 1; + __IO uint32_t TSSS21 : 1; + __IO uint32_t TSSS22 : 1; + __IO uint32_t TSSS23 : 1; + __IO uint32_t TSSS24 : 1; + __IO uint32_t TSSS25 : 1; + __IO uint32_t TSSS26 : 1; + __IO uint32_t TSSS27 : 1; + __IO uint32_t TSSS28 : 1; + __IO uint32_t TSSS29 : 1; + __IO uint32_t TSSS30 : 1; +} stc_ethernet_mac_stnr_field_t; + +typedef struct stc_ethernet_mac_stsur_field +{ + __IO uint32_t TSS0 : 1; + __IO uint32_t TSS1 : 1; + __IO uint32_t TSS2 : 1; + __IO uint32_t TSS3 : 1; + __IO uint32_t TSS4 : 1; + __IO uint32_t TSS5 : 1; + __IO uint32_t TSS6 : 1; + __IO uint32_t TSS7 : 1; + __IO uint32_t TSS8 : 1; + __IO uint32_t TSS9 : 1; + __IO uint32_t TSS10 : 1; + __IO uint32_t TSS11 : 1; + __IO uint32_t TSS12 : 1; + __IO uint32_t TSS13 : 1; + __IO uint32_t TSS14 : 1; + __IO uint32_t TSS15 : 1; + __IO uint32_t TSS16 : 1; + __IO uint32_t TSS17 : 1; + __IO uint32_t TSS18 : 1; + __IO uint32_t TSS19 : 1; + __IO uint32_t TSS20 : 1; + __IO uint32_t TSS21 : 1; + __IO uint32_t TSS22 : 1; + __IO uint32_t TSS23 : 1; + __IO uint32_t TSS24 : 1; + __IO uint32_t TSS25 : 1; + __IO uint32_t TSS26 : 1; + __IO uint32_t TSS27 : 1; + __IO uint32_t TSS28 : 1; + __IO uint32_t TSS29 : 1; + __IO uint32_t TSS30 : 1; + __IO uint32_t TSS31 : 1; +} stc_ethernet_mac_stsur_field_t; + +typedef struct stc_ethernet_mac_stnur_field +{ + __IO uint32_t TSSS0 : 1; + __IO uint32_t TSSS1 : 1; + __IO uint32_t TSSS2 : 1; + __IO uint32_t TSSS3 : 1; + __IO uint32_t TSSS4 : 1; + __IO uint32_t TSSS5 : 1; + __IO uint32_t TSSS6 : 1; + __IO uint32_t TSSS7 : 1; + __IO uint32_t TSSS8 : 1; + __IO uint32_t TSSS9 : 1; + __IO uint32_t TSSS10 : 1; + __IO uint32_t TSSS11 : 1; + __IO uint32_t TSSS12 : 1; + __IO uint32_t TSSS13 : 1; + __IO uint32_t TSSS14 : 1; + __IO uint32_t TSSS15 : 1; + __IO uint32_t TSSS16 : 1; + __IO uint32_t TSSS17 : 1; + __IO uint32_t TSSS18 : 1; + __IO uint32_t TSSS19 : 1; + __IO uint32_t TSSS20 : 1; + __IO uint32_t TSSS21 : 1; + __IO uint32_t TSSS22 : 1; + __IO uint32_t TSSS23 : 1; + __IO uint32_t TSSS24 : 1; + __IO uint32_t TSSS25 : 1; + __IO uint32_t TSSS26 : 1; + __IO uint32_t TSSS27 : 1; + __IO uint32_t TSSS28 : 1; + __IO uint32_t TSSS29 : 1; + __IO uint32_t TSSS30 : 1; + __IO uint32_t ADDSUB : 1; +} stc_ethernet_mac_stnur_field_t; + +typedef struct stc_ethernet_mac_tsar_field +{ + __IO uint32_t TSAR0 : 1; + __IO uint32_t TSAR1 : 1; + __IO uint32_t TSAR2 : 1; + __IO uint32_t TSAR3 : 1; + __IO uint32_t TSAR4 : 1; + __IO uint32_t TSAR5 : 1; + __IO uint32_t TSAR6 : 1; + __IO uint32_t TSAR7 : 1; + __IO uint32_t TSAR8 : 1; + __IO uint32_t TSAR9 : 1; + __IO uint32_t TSAR10 : 1; + __IO uint32_t TSAR11 : 1; + __IO uint32_t TSAR12 : 1; + __IO uint32_t TSAR13 : 1; + __IO uint32_t TSAR14 : 1; + __IO uint32_t TSAR15 : 1; + __IO uint32_t TSAR16 : 1; + __IO uint32_t TSAR17 : 1; + __IO uint32_t TSAR18 : 1; + __IO uint32_t TSAR19 : 1; + __IO uint32_t TSAR20 : 1; + __IO uint32_t TSAR21 : 1; + __IO uint32_t TSAR22 : 1; + __IO uint32_t TSAR23 : 1; + __IO uint32_t TSAR24 : 1; + __IO uint32_t TSAR25 : 1; + __IO uint32_t TSAR26 : 1; + __IO uint32_t TSAR27 : 1; + __IO uint32_t TSAR28 : 1; + __IO uint32_t TSAR29 : 1; + __IO uint32_t TSAR30 : 1; + __IO uint32_t TSAR31 : 1; +} stc_ethernet_mac_tsar_field_t; + +typedef struct stc_ethernet_mac_ttsr_field +{ + __IO uint32_t TSTR0 : 1; + __IO uint32_t TSTR1 : 1; + __IO uint32_t TSTR2 : 1; + __IO uint32_t TSTR3 : 1; + __IO uint32_t TSTR4 : 1; + __IO uint32_t TSTR5 : 1; + __IO uint32_t TSTR6 : 1; + __IO uint32_t TSTR7 : 1; + __IO uint32_t TSTR8 : 1; + __IO uint32_t TSTR9 : 1; + __IO uint32_t TSTR10 : 1; + __IO uint32_t TSTR11 : 1; + __IO uint32_t TSTR12 : 1; + __IO uint32_t TSTR13 : 1; + __IO uint32_t TSTR14 : 1; + __IO uint32_t TSTR15 : 1; + __IO uint32_t TSTR16 : 1; + __IO uint32_t TSTR17 : 1; + __IO uint32_t TSTR18 : 1; + __IO uint32_t TSTR19 : 1; + __IO uint32_t TSTR20 : 1; + __IO uint32_t TSTR21 : 1; + __IO uint32_t TSTR22 : 1; + __IO uint32_t TSTR23 : 1; + __IO uint32_t TSTR24 : 1; + __IO uint32_t TSTR25 : 1; + __IO uint32_t TSTR26 : 1; + __IO uint32_t TSTR27 : 1; + __IO uint32_t TSTR28 : 1; + __IO uint32_t TSTR29 : 1; + __IO uint32_t TSTR30 : 1; + __IO uint32_t TSTR31 : 1; +} stc_ethernet_mac_ttsr_field_t; + +typedef struct stc_ethernet_mac_ttnr_field +{ + __IO uint32_t TSTR0 : 1; + __IO uint32_t TSTR1 : 1; + __IO uint32_t TSTR2 : 1; + __IO uint32_t TSTR3 : 1; + __IO uint32_t TSTR4 : 1; + __IO uint32_t TSTR5 : 1; + __IO uint32_t TSTR6 : 1; + __IO uint32_t TSTR7 : 1; + __IO uint32_t TSTR8 : 1; + __IO uint32_t TSTR9 : 1; + __IO uint32_t TSTR10 : 1; + __IO uint32_t TSTR11 : 1; + __IO uint32_t TSTR12 : 1; + __IO uint32_t TSTR13 : 1; + __IO uint32_t TSTR14 : 1; + __IO uint32_t TSTR15 : 1; + __IO uint32_t TSTR16 : 1; + __IO uint32_t TSTR17 : 1; + __IO uint32_t TSTR18 : 1; + __IO uint32_t TSTR19 : 1; + __IO uint32_t TSTR20 : 1; + __IO uint32_t TSTR21 : 1; + __IO uint32_t TSTR22 : 1; + __IO uint32_t TSTR23 : 1; + __IO uint32_t TSTR24 : 1; + __IO uint32_t TSTR25 : 1; + __IO uint32_t TSTR26 : 1; + __IO uint32_t TSTR27 : 1; + __IO uint32_t TSTR28 : 1; + __IO uint32_t TSTR29 : 1; + __IO uint32_t TSTR30 : 1; +} stc_ethernet_mac_ttnr_field_t; + +typedef struct stc_ethernet_mac_sthwsr_field +{ + __IO uint32_t TSHWR0 : 1; + __IO uint32_t TSHWR1 : 1; + __IO uint32_t TSHWR2 : 1; + __IO uint32_t TSHWR3 : 1; + __IO uint32_t TSHWR4 : 1; + __IO uint32_t TSHWR5 : 1; + __IO uint32_t TSHWR6 : 1; + __IO uint32_t TSHWR7 : 1; + __IO uint32_t TSHWR8 : 1; + __IO uint32_t TSHWR9 : 1; + __IO uint32_t TSHWR10 : 1; + __IO uint32_t TSHWR11 : 1; + __IO uint32_t TSHWR12 : 1; + __IO uint32_t TSHWR13 : 1; + __IO uint32_t TSHWR14 : 1; + __IO uint32_t TSHWR15 : 1; +} stc_ethernet_mac_sthwsr_field_t; + +typedef struct stc_ethernet_mac_tsr_field +{ + __IO uint32_t TSSOVF : 1; + __IO uint32_t TSTART : 1; + __IO uint32_t ATSTS : 1; + __IO uint32_t TRGTER : 1; + uint32_t RESERVED1 :20; + __IO uint32_t ATSSTM : 1; + __IO uint32_t ATSNS0 : 1; + __IO uint32_t ATSNS1 : 1; + __IO uint32_t ATSNS2 : 1; +} stc_ethernet_mac_tsr_field_t; + +typedef struct stc_ethernet_mac_ppscr_field +{ + __IO uint32_t PPSCTRL0 : 1; + __IO uint32_t PPSCTRL1 : 1; + __IO uint32_t PPSCTRL2 : 1; + __IO uint32_t PPSCTRL3 : 1; +} stc_ethernet_mac_ppscr_field_t; + +typedef struct stc_ethernet_mac_atnr_field +{ + __IO uint32_t ATN0 : 1; + __IO uint32_t ATN1 : 1; + __IO uint32_t ATN2 : 1; + __IO uint32_t ATN3 : 1; + __IO uint32_t ATN4 : 1; + __IO uint32_t ATN5 : 1; + __IO uint32_t ATN6 : 1; + __IO uint32_t ATN7 : 1; + __IO uint32_t ATN8 : 1; + __IO uint32_t ATN9 : 1; + __IO uint32_t ATN10 : 1; + __IO uint32_t ATN11 : 1; + __IO uint32_t ATN12 : 1; + __IO uint32_t ATN13 : 1; + __IO uint32_t ATN14 : 1; + __IO uint32_t ATN15 : 1; + __IO uint32_t ATN16 : 1; + __IO uint32_t ATN17 : 1; + __IO uint32_t ATN18 : 1; + __IO uint32_t ATN19 : 1; + __IO uint32_t ATN20 : 1; + __IO uint32_t ATN21 : 1; + __IO uint32_t ATN22 : 1; + __IO uint32_t ATN23 : 1; + __IO uint32_t ATN24 : 1; + __IO uint32_t ATN25 : 1; + __IO uint32_t ATN26 : 1; + __IO uint32_t ATN27 : 1; + __IO uint32_t ATN28 : 1; + __IO uint32_t ATN29 : 1; + __IO uint32_t ATN30 : 1; +} stc_ethernet_mac_atnr_field_t; + +typedef struct stc_ethernet_mac_atsr_field +{ + __IO uint32_t ATS0 : 1; + __IO uint32_t ATS1 : 1; + __IO uint32_t ATS2 : 1; + __IO uint32_t ATS3 : 1; + __IO uint32_t ATS4 : 1; + __IO uint32_t ATS5 : 1; + __IO uint32_t ATS6 : 1; + __IO uint32_t ATS7 : 1; + __IO uint32_t ATS8 : 1; + __IO uint32_t ATS9 : 1; + __IO uint32_t ATS10 : 1; + __IO uint32_t ATS11 : 1; + __IO uint32_t ATS12 : 1; + __IO uint32_t ATS13 : 1; + __IO uint32_t ATS14 : 1; + __IO uint32_t ATS15 : 1; + __IO uint32_t ATS16 : 1; + __IO uint32_t ATS17 : 1; + __IO uint32_t ATS18 : 1; + __IO uint32_t ATS19 : 1; + __IO uint32_t ATS20 : 1; + __IO uint32_t ATS21 : 1; + __IO uint32_t ATS22 : 1; + __IO uint32_t ATS23 : 1; + __IO uint32_t ATS24 : 1; + __IO uint32_t ATS25 : 1; + __IO uint32_t ATS26 : 1; + __IO uint32_t ATS27 : 1; + __IO uint32_t ATS28 : 1; + __IO uint32_t ATS29 : 1; + __IO uint32_t ATS30 : 1; + __IO uint32_t ATS31 : 1; +} stc_ethernet_mac_atsr_field_t; + +typedef struct stc_ethernet_mac_mar16h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar16h_field_t; + +typedef struct stc_ethernet_mac_mar16l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar16l_field_t; + +typedef struct stc_ethernet_mac_mar17h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar17h_field_t; + +typedef struct stc_ethernet_mac_mar17l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar17l_field_t; + +typedef struct stc_ethernet_mac_mar18h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar18h_field_t; + +typedef struct stc_ethernet_mac_mar18l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar18l_field_t; + +typedef struct stc_ethernet_mac_mar19h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar19h_field_t; + +typedef struct stc_ethernet_mac_mar19l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar19l_field_t; + +typedef struct stc_ethernet_mac_mar20h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar20h_field_t; + +typedef struct stc_ethernet_mac_mar20l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar20l_field_t; + +typedef struct stc_ethernet_mac_mar21h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar21h_field_t; + +typedef struct stc_ethernet_mac_mar21l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar21l_field_t; + +typedef struct stc_ethernet_mac_mar22h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar22h_field_t; + +typedef struct stc_ethernet_mac_mar22l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar22l_field_t; + +typedef struct stc_ethernet_mac_mar23h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar23h_field_t; + +typedef struct stc_ethernet_mac_mar23l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar23l_field_t; + +typedef struct stc_ethernet_mac_mar24h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar24h_field_t; + +typedef struct stc_ethernet_mac_mar24l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar24l_field_t; + +typedef struct stc_ethernet_mac_mar25h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar25h_field_t; + +typedef struct stc_ethernet_mac_mar25l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar25l_field_t; + +typedef struct stc_ethernet_mac_mar26h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar26h_field_t; + +typedef struct stc_ethernet_mac_mar26l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar26l_field_t; + +typedef struct stc_ethernet_mac_mar27h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar27h_field_t; + +typedef struct stc_ethernet_mac_mar27l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar27l_field_t; + +typedef struct stc_ethernet_mac_mar28h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar28h_field_t; + +typedef struct stc_ethernet_mac_mar28l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar28l_field_t; + +typedef struct stc_ethernet_mac_mar29h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar29h_field_t; + +typedef struct stc_ethernet_mac_mar29l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar29l_field_t; + +typedef struct stc_ethernet_mac_mar30h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar30h_field_t; + +typedef struct stc_ethernet_mac_mar30l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar30l_field_t; + +typedef struct stc_ethernet_mac_mar31h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar31h_field_t; + +typedef struct stc_ethernet_mac_mar31l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar31l_field_t; + +typedef struct stc_ethernet_mac_bmr_field +{ + __IO uint32_t SWR : 1; + __IO uint32_t DA : 1; + __IO uint32_t DSL0 : 1; + __IO uint32_t DSL1 : 1; + __IO uint32_t DSL2 : 1; + __IO uint32_t DSL3 : 1; + __IO uint32_t DSL4 : 1; + __IO uint32_t ATDS : 1; + __IO uint32_t PBL0 : 1; + __IO uint32_t PBL1 : 1; + __IO uint32_t PBL2 : 1; + __IO uint32_t PBL3 : 1; + __IO uint32_t PBL4 : 1; + __IO uint32_t PBL5 : 1; + __IO uint32_t PR0 : 1; + __IO uint32_t PR1 : 1; + __IO uint32_t FB : 1; + __IO uint32_t RPBL0 : 1; + __IO uint32_t RPBL1 : 1; + __IO uint32_t RPBL2 : 1; + __IO uint32_t RPBL3 : 1; + __IO uint32_t RPBL4 : 1; + __IO uint32_t RPBL5 : 1; + __IO uint32_t USP : 1; + __IO uint32_t _8XPBL : 1; + __IO uint32_t AAL : 1; + __IO uint32_t MB : 1; + __IO uint32_t TXPR : 1; +} stc_ethernet_mac_bmr_field_t; + +typedef struct stc_ethernet_mac_tpdr_field +{ + __IO uint32_t TPD0 : 1; + __IO uint32_t TPD1 : 1; + __IO uint32_t TPD2 : 1; + __IO uint32_t TPD3 : 1; + __IO uint32_t TPD4 : 1; + __IO uint32_t TPD5 : 1; + __IO uint32_t TPD6 : 1; + __IO uint32_t TPD7 : 1; + __IO uint32_t TPD8 : 1; + __IO uint32_t TPD9 : 1; + __IO uint32_t TPD10 : 1; + __IO uint32_t TPD11 : 1; + __IO uint32_t TPD12 : 1; + __IO uint32_t TPD13 : 1; + __IO uint32_t TPD14 : 1; + __IO uint32_t TPD15 : 1; + __IO uint32_t TPD16 : 1; + __IO uint32_t TPD17 : 1; + __IO uint32_t TPD18 : 1; + __IO uint32_t TPD19 : 1; + __IO uint32_t TPD20 : 1; + __IO uint32_t TPD21 : 1; + __IO uint32_t TPD22 : 1; + __IO uint32_t TPD23 : 1; + __IO uint32_t TPD24 : 1; + __IO uint32_t TPD25 : 1; + __IO uint32_t TPD26 : 1; + __IO uint32_t TPD27 : 1; + __IO uint32_t TPD28 : 1; + __IO uint32_t TPD29 : 1; + __IO uint32_t TPD30 : 1; + __IO uint32_t TPD31 : 1; +} stc_ethernet_mac_tpdr_field_t; + +typedef struct stc_ethernet_mac_rpdr_field +{ + __IO uint32_t RPD0 : 1; + __IO uint32_t RPD1 : 1; + __IO uint32_t RPD2 : 1; + __IO uint32_t RPD3 : 1; + __IO uint32_t RPD4 : 1; + __IO uint32_t RPD5 : 1; + __IO uint32_t RPD6 : 1; + __IO uint32_t RPD7 : 1; + __IO uint32_t RPD8 : 1; + __IO uint32_t RPD9 : 1; + __IO uint32_t RPD10 : 1; + __IO uint32_t RPD11 : 1; + __IO uint32_t RPD12 : 1; + __IO uint32_t RPD13 : 1; + __IO uint32_t RPD14 : 1; + __IO uint32_t RPD15 : 1; + __IO uint32_t RPD16 : 1; + __IO uint32_t RPD17 : 1; + __IO uint32_t RPD18 : 1; + __IO uint32_t RPD19 : 1; + __IO uint32_t RPD20 : 1; + __IO uint32_t RPD21 : 1; + __IO uint32_t RPD22 : 1; + __IO uint32_t RPD23 : 1; + __IO uint32_t RPD24 : 1; + __IO uint32_t RPD25 : 1; + __IO uint32_t RPD26 : 1; + __IO uint32_t RPD27 : 1; + __IO uint32_t RPD28 : 1; + __IO uint32_t RPD29 : 1; + __IO uint32_t RPD30 : 1; + __IO uint32_t RPD31 : 1; +} stc_ethernet_mac_rpdr_field_t; + +typedef struct stc_ethernet_mac_rdlar_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t SRL2 : 1; + __IO uint32_t SRL3 : 1; + __IO uint32_t SRL4 : 1; + __IO uint32_t SRL5 : 1; + __IO uint32_t SRL6 : 1; + __IO uint32_t SRL7 : 1; + __IO uint32_t SRL8 : 1; + __IO uint32_t SRL9 : 1; + __IO uint32_t SRL10 : 1; + __IO uint32_t SRL11 : 1; + __IO uint32_t SRL12 : 1; + __IO uint32_t SRL13 : 1; + __IO uint32_t SRL14 : 1; + __IO uint32_t SRL15 : 1; + __IO uint32_t SRL16 : 1; + __IO uint32_t SRL17 : 1; + __IO uint32_t SRL18 : 1; + __IO uint32_t SRL19 : 1; + __IO uint32_t SRL20 : 1; + __IO uint32_t SRL21 : 1; + __IO uint32_t SRL22 : 1; + __IO uint32_t SRL23 : 1; + __IO uint32_t SRL24 : 1; + __IO uint32_t SRL25 : 1; + __IO uint32_t SRL26 : 1; + __IO uint32_t SRL27 : 1; + __IO uint32_t SRL28 : 1; + __IO uint32_t SRL29 : 1; + __IO uint32_t SRL30 : 1; + __IO uint32_t SRL31 : 1; +} stc_ethernet_mac_rdlar_field_t; + +typedef struct stc_ethernet_mac_tdlar_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t STL2 : 1; + __IO uint32_t STL3 : 1; + __IO uint32_t STL4 : 1; + __IO uint32_t STL5 : 1; + __IO uint32_t STL6 : 1; + __IO uint32_t STL7 : 1; + __IO uint32_t STL8 : 1; + __IO uint32_t STL9 : 1; + __IO uint32_t STL10 : 1; + __IO uint32_t STL11 : 1; + __IO uint32_t STL12 : 1; + __IO uint32_t STL13 : 1; + __IO uint32_t STL14 : 1; + __IO uint32_t STL15 : 1; + __IO uint32_t STL16 : 1; + __IO uint32_t STL17 : 1; + __IO uint32_t STL18 : 1; + __IO uint32_t STL19 : 1; + __IO uint32_t STL20 : 1; + __IO uint32_t STL21 : 1; + __IO uint32_t STL22 : 1; + __IO uint32_t STL23 : 1; + __IO uint32_t STL24 : 1; + __IO uint32_t STL25 : 1; + __IO uint32_t STL26 : 1; + __IO uint32_t STL27 : 1; + __IO uint32_t STL28 : 1; + __IO uint32_t STL29 : 1; + __IO uint32_t STL30 : 1; + __IO uint32_t STL31 : 1; +} stc_ethernet_mac_tdlar_field_t; + +typedef struct stc_ethernet_mac_sr_field +{ + __IO uint32_t TI : 1; + __IO uint32_t TPS : 1; + __IO uint32_t TU : 1; + __IO uint32_t TJT : 1; + __IO uint32_t OVF : 1; + __IO uint32_t UNF : 1; + __IO uint32_t RI : 1; + __IO uint32_t RU : 1; + __IO uint32_t RPS : 1; + __IO uint32_t RWT : 1; + __IO uint32_t ETI : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t FBI : 1; + __IO uint32_t ERI : 1; + __IO uint32_t AIS : 1; + __IO uint32_t NIS : 1; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + __IO uint32_t RS2 : 1; + __IO uint32_t TS0 : 1; + __IO uint32_t TS1 : 1; + __IO uint32_t TS2 : 1; + __IO uint32_t EB0 : 1; + __IO uint32_t EB1 : 1; + __IO uint32_t EB2 : 1; + __IO uint32_t GLI : 1; + __IO uint32_t GMI : 1; + __IO uint32_t GPI : 1; + __IO uint32_t TTI : 1; + __IO uint32_t GLPII : 1; +} stc_ethernet_mac_sr_field_t; + +typedef struct stc_ethernet_mac_omr_field +{ + uint32_t RESERVED1 : 1; + __IO uint32_t SR : 1; + __IO uint32_t OSF : 1; + __IO uint32_t RTC0 : 1; + __IO uint32_t RTC1 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t FUF : 1; + __IO uint32_t FEF : 1; + uint32_t RESERVED3 : 5; + __IO uint32_t ST : 1; + __IO uint32_t TTC0 : 1; + __IO uint32_t TTC1 : 1; + __IO uint32_t TTC2 : 1; + uint32_t RESERVED4 : 3; + __IO uint32_t FTF : 1; + __IO uint32_t TSF : 1; + uint32_t RESERVED5 : 2; + __IO uint32_t DFF : 1; + __IO uint32_t RSF : 1; + __IO uint32_t DT : 1; +} stc_ethernet_mac_omr_field_t; + +typedef struct stc_ethernet_mac_ier_field +{ + __IO uint32_t TIE : 1; + __IO uint32_t TSE : 1; + __IO uint32_t TUE : 1; + __IO uint32_t TJE : 1; + __IO uint32_t OVE : 1; + __IO uint32_t UNE : 1; + __IO uint32_t RIE : 1; + __IO uint32_t RUE : 1; + __IO uint32_t RSE : 1; + __IO uint32_t RWE : 1; + __IO uint32_t ETE : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t FBE : 1; + __IO uint32_t ERE : 1; + __IO uint32_t AIE : 1; + __IO uint32_t NIE : 1; +} stc_ethernet_mac_ier_field_t; + +typedef struct stc_ethernet_mac_mfbocr_field +{ + __IO uint32_t NMFH0 : 1; + __IO uint32_t NMFH1 : 1; + __IO uint32_t NMFH2 : 1; + __IO uint32_t NMFH3 : 1; + __IO uint32_t NMFH4 : 1; + __IO uint32_t NMFH5 : 1; + __IO uint32_t NMFH6 : 1; + __IO uint32_t NMFH7 : 1; + __IO uint32_t NMFH8 : 1; + __IO uint32_t NMFH9 : 1; + __IO uint32_t NMFH10 : 1; + __IO uint32_t NMFH11 : 1; + __IO uint32_t NMFH12 : 1; + __IO uint32_t NMFH13 : 1; + __IO uint32_t NMFH14 : 1; + __IO uint32_t NMFH15 : 1; + __IO uint32_t ONMFH : 1; + __IO uint32_t NMFF0 : 1; + __IO uint32_t NMFF1 : 1; + __IO uint32_t NMFF2 : 1; + __IO uint32_t NMFF3 : 1; + __IO uint32_t NMFF4 : 1; + __IO uint32_t NMFF5 : 1; + __IO uint32_t NMFF6 : 1; + __IO uint32_t NMFF7 : 1; + __IO uint32_t NMFF8 : 1; + __IO uint32_t NMFF9 : 1; + __IO uint32_t NMFF10 : 1; + __IO uint32_t ONMFF : 1; +} stc_ethernet_mac_mfbocr_field_t; + +typedef struct stc_ethernet_mac_riwtr_field +{ + __IO uint32_t RIWT0 : 1; + __IO uint32_t RIWT1 : 1; + __IO uint32_t RIWT2 : 1; + __IO uint32_t RIWT3 : 1; + __IO uint32_t RIWT4 : 1; + __IO uint32_t RIWT5 : 1; + __IO uint32_t RIWT6 : 1; + __IO uint32_t RIWT7 : 1; +} stc_ethernet_mac_riwtr_field_t; + +typedef struct stc_ethernet_mac_ahbsr_field +{ + __IO uint32_t AHBS : 1; +} stc_ethernet_mac_ahbsr_field_t; + +typedef struct stc_ethernet_mac_chtdr_field +{ + __IO uint32_t HTDAP0 : 1; + __IO uint32_t HTDAP1 : 1; + __IO uint32_t HTDAP2 : 1; + __IO uint32_t HTDAP3 : 1; + __IO uint32_t HTDAP4 : 1; + __IO uint32_t HTDAP5 : 1; + __IO uint32_t HTDAP6 : 1; + __IO uint32_t HTDAP7 : 1; + __IO uint32_t HTDAP8 : 1; + __IO uint32_t HTDAP9 : 1; + __IO uint32_t HTDAP10 : 1; + __IO uint32_t HTDAP11 : 1; + __IO uint32_t HTDAP12 : 1; + __IO uint32_t HTDAP13 : 1; + __IO uint32_t HTDAP14 : 1; + __IO uint32_t HTDAP15 : 1; + __IO uint32_t HTDAP16 : 1; + __IO uint32_t HTDAP17 : 1; + __IO uint32_t HTDAP18 : 1; + __IO uint32_t HTDAP19 : 1; + __IO uint32_t HTDAP20 : 1; + __IO uint32_t HTDAP21 : 1; + __IO uint32_t HTDAP22 : 1; + __IO uint32_t HTDAP23 : 1; + __IO uint32_t HTDAP24 : 1; + __IO uint32_t HTDAP25 : 1; + __IO uint32_t HTDAP26 : 1; + __IO uint32_t HTDAP27 : 1; + __IO uint32_t HTDAP28 : 1; + __IO uint32_t HTDAP29 : 1; + __IO uint32_t HTDAP30 : 1; + __IO uint32_t HTDAP31 : 1; +} stc_ethernet_mac_chtdr_field_t; + +typedef struct stc_ethernet_mac_chrdr_field +{ + __IO uint32_t HRDAP0 : 1; + __IO uint32_t HRDAP1 : 1; + __IO uint32_t HRDAP2 : 1; + __IO uint32_t HRDAP3 : 1; + __IO uint32_t HRDAP4 : 1; + __IO uint32_t HRDAP5 : 1; + __IO uint32_t HRDAP6 : 1; + __IO uint32_t HRDAP7 : 1; + __IO uint32_t HRDAP8 : 1; + __IO uint32_t HRDAP9 : 1; + __IO uint32_t HRDAP10 : 1; + __IO uint32_t HRDAP11 : 1; + __IO uint32_t HRDAP12 : 1; + __IO uint32_t HRDAP13 : 1; + __IO uint32_t HRDAP14 : 1; + __IO uint32_t HRDAP15 : 1; + __IO uint32_t HRDAP16 : 1; + __IO uint32_t HRDAP17 : 1; + __IO uint32_t HRDAP18 : 1; + __IO uint32_t HRDAP19 : 1; + __IO uint32_t HRDAP20 : 1; + __IO uint32_t HRDAP21 : 1; + __IO uint32_t HRDAP22 : 1; + __IO uint32_t HRDAP23 : 1; + __IO uint32_t HRDAP24 : 1; + __IO uint32_t HRDAP25 : 1; + __IO uint32_t HRDAP26 : 1; + __IO uint32_t HRDAP27 : 1; + __IO uint32_t HRDAP28 : 1; + __IO uint32_t HRDAP29 : 1; + __IO uint32_t HRDAP30 : 1; + __IO uint32_t HRDAP31 : 1; +} stc_ethernet_mac_chrdr_field_t; + +typedef struct stc_ethernet_mac_chtbar_field +{ + __IO uint32_t HTBAR0 : 1; + __IO uint32_t HTBAR1 : 1; + __IO uint32_t HTBAR2 : 1; + __IO uint32_t HTBAR3 : 1; + __IO uint32_t HTBAR4 : 1; + __IO uint32_t HTBAR5 : 1; + __IO uint32_t HTBAR6 : 1; + __IO uint32_t HTBAR7 : 1; + __IO uint32_t HTBAR8 : 1; + __IO uint32_t HTBAR9 : 1; + __IO uint32_t HTBAR10 : 1; + __IO uint32_t HTBAR11 : 1; + __IO uint32_t HTBAR12 : 1; + __IO uint32_t HTBAR13 : 1; + __IO uint32_t HTBAR14 : 1; + __IO uint32_t HTBAR15 : 1; + __IO uint32_t HTBAR16 : 1; + __IO uint32_t HTBAR17 : 1; + __IO uint32_t HTBAR18 : 1; + __IO uint32_t HTBAR19 : 1; + __IO uint32_t HTBAR20 : 1; + __IO uint32_t HTBAR21 : 1; + __IO uint32_t HTBAR22 : 1; + __IO uint32_t HTBAR23 : 1; + __IO uint32_t HTBAR24 : 1; + __IO uint32_t HTBAR25 : 1; + __IO uint32_t HTBAR26 : 1; + __IO uint32_t HTBAR27 : 1; + __IO uint32_t HTBAR28 : 1; + __IO uint32_t HTBAR29 : 1; + __IO uint32_t HTBAR30 : 1; + __IO uint32_t HTBAR31 : 1; +} stc_ethernet_mac_chtbar_field_t; + +typedef struct stc_ethernet_mac_chrbar_field +{ + __IO uint32_t HRBAR0 : 1; + __IO uint32_t HRBAR1 : 1; + __IO uint32_t HRBAR2 : 1; + __IO uint32_t HRBAR3 : 1; + __IO uint32_t HRBAR4 : 1; + __IO uint32_t HRBAR5 : 1; + __IO uint32_t HRBAR6 : 1; + __IO uint32_t HRBAR7 : 1; + __IO uint32_t HRBAR8 : 1; + __IO uint32_t HRBAR9 : 1; + __IO uint32_t HRBAR10 : 1; + __IO uint32_t HRBAR11 : 1; + __IO uint32_t HRBAR12 : 1; + __IO uint32_t HRBAR13 : 1; + __IO uint32_t HRBAR14 : 1; + __IO uint32_t HRBAR15 : 1; + __IO uint32_t HRBAR16 : 1; + __IO uint32_t HRBAR17 : 1; + __IO uint32_t HRBAR18 : 1; + __IO uint32_t HRBAR19 : 1; + __IO uint32_t HRBAR20 : 1; + __IO uint32_t HRBAR21 : 1; + __IO uint32_t HRBAR22 : 1; + __IO uint32_t HRBAR23 : 1; + __IO uint32_t HRBAR24 : 1; + __IO uint32_t HRBAR25 : 1; + __IO uint32_t HRBAR26 : 1; + __IO uint32_t HRBAR27 : 1; + __IO uint32_t HRBAR28 : 1; + __IO uint32_t HRBAR29 : 1; + __IO uint32_t HRBAR30 : 1; + __IO uint32_t HRBAR31 : 1; +} stc_ethernet_mac_chrbar_field_t; + +/* ETHERNET_CONTROL_MODULE register bit fields */ +typedef struct stc_ethernet_control_eth_mode_field +{ + __IO uint32_t IFMODE : 1; + uint32_t RESERVED1 : 7; + __IO uint32_t RST0 : 1; + __IO uint32_t RST1 : 1; + uint32_t RESERVED2 :18; + __IO uint32_t ASZPPSSEL : 1; +} stc_ethernet_control_eth_mode_field_t; + +typedef struct stc_ethernet_control_eth_clkg_field +{ + __IO uint32_t MACEN0 : 1; + __IO uint32_t MACEN1 : 1; +} stc_ethernet_control_eth_clkg_field_t; + +/****************************************************************************** + * Peripheral register structures + ******************************************************************************/ + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash interface registers */ +typedef struct +{ + union { + __IO uint32_t FASZR; + stc_flash_if_faszr_field_t FASZR_f; + }; + union { + __IO uint32_t FRWTR; + stc_flash_if_frwtr_field_t FRWTR_f; + }; + union { + __IO uint32_t FSTR; + stc_flash_if_fstr_field_t FSTR_f; + }; + uint8_t RESERVED0[4]; + union { + __IO uint32_t FSYNDN; + stc_flash_if_fsyndn_field_t FSYNDN_f; + }; + uint8_t RESERVED1[236]; + union { + __IO uint32_t CRTRMM; + stc_flash_if_crtrmm_field_t CRTRMM_f; + }; +}FM3_FLASH_IF_TypeDef; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock and reset registers */ +typedef struct +{ + union { + __IO uint8_t SCM_CTL; + stc_crg_scm_ctl_field_t SCM_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t SCM_STR; + stc_crg_scm_str_field_t SCM_STR_f; + }; + uint8_t RESERVED1[3]; + __IO uint32_t STB_CTL; + union { + __IO uint16_t RST_STR; + stc_crg_rst_str_field_t RST_STR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t BSC_PSR; + stc_crg_bsc_psr_field_t BSC_PSR_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t APBC0_PSR; + stc_crg_apbc0_psr_field_t APBC0_PSR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t APBC1_PSR; + stc_crg_apbc1_psr_field_t APBC1_PSR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t APBC2_PSR; + stc_crg_apbc2_psr_field_t APBC2_PSR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t SWC_PSR; + stc_crg_swc_psr_field_t SWC_PSR_f; + }; + uint8_t RESERVED7[7]; + union { + __IO uint8_t TTC_PSR; + stc_crg_ttc_psr_field_t TTC_PSR_f; + }; + uint8_t RESERVED8[7]; + union { + __IO uint8_t CSW_TMR; + stc_crg_csw_tmr_field_t CSW_TMR_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t PSW_TMR; + stc_crg_psw_tmr_field_t PSW_TMR_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PLL_CTL1; + stc_crg_pll_ctl1_field_t PLL_CTL1_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t PLL_CTL2; + stc_crg_pll_ctl2_field_t PLL_CTL2_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint16_t CSV_CTL; + stc_crg_csv_ctl_field_t CSV_CTL_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint8_t CSV_STR; + stc_crg_csv_str_field_t CSV_STR_f; + }; + uint8_t RESERVED14[3]; + __IO uint16_t FCSWH_CTL; + uint8_t RESERVED15[2]; + __IO uint16_t FCSWL_CTL; + uint8_t RESERVED16[2]; + __IO uint16_t FCSWD_CTL; + uint8_t RESERVED17[2]; + union { + __IO uint8_t DBWDT_CTL; + stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; + }; + uint8_t RESERVED18[11]; + union { + __IO uint8_t INT_ENR; + stc_crg_int_enr_field_t INT_ENR_f; + }; + uint8_t RESERVED19[3]; + union { + __IO uint8_t INT_STR; + stc_crg_int_str_field_t INT_STR_f; + }; + uint8_t RESERVED20[3]; + union { + __IO uint8_t INT_CLR; + stc_crg_int_clr_field_t INT_CLR_f; + }; +}FM3_CRG_TypeDef; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* Hardware watchdog registers */ +typedef struct +{ + __IO uint32_t WDG_LDR; + __IO uint32_t WDG_VLR; + union { + __IO uint8_t WDG_CTL; + stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; + }; + uint8_t RESERVED0[3]; + __IO uint8_t WDG_ICL; + uint8_t RESERVED1[3]; + union { + __IO uint8_t WDG_RIS; + stc_hwwdt_wdg_ris_field_t WDG_RIS_f; + }; + uint8_t RESERVED2[3055]; + __IO uint32_t WDG_LCK; +}FM3_HWWDT_TypeDef; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* Software watchdog registers */ +typedef struct +{ + __IO uint32_t WDOGLOAD; + __IO uint32_t WDOGVALUE; + union { + __IO uint8_t WDOGCONTROL; + stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t WDOGINTCLR; + union { + __IO uint8_t WDOGRIS; + stc_swwdt_wdogris_field_t WDOGRIS_f; + }; + uint8_t RESERVED1[3055]; + __IO uint32_t WDOGLOCK; +}FM3_SWWDT_TypeDef; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* Dual timer 1/2 registers */ +typedef struct +{ + __IO uint32_t TIMER1LOAD; + __IO uint32_t TIMER1VALUE; + union { + __IO uint32_t TIMER1CONTROL; + stc_dtim_timer1control_field_t TIMER1CONTROL_f; + }; + __IO uint32_t TIMER1INTCLR; + union { + __IO uint32_t TIMER1RIS; + stc_dtim_timer1ris_field_t TIMER1RIS_f; + }; + union { + __IO uint32_t TIMER1MIS; + stc_dtim_timer1mis_field_t TIMER1MIS_f; + }; + __IO uint32_t TIMER1BGLOAD; + uint8_t RESERVED0[4]; + __IO uint32_t TIMER2LOAD; + __IO uint32_t TIMER2VALUE; + union { + __IO uint32_t TIMER2CONTROL; + stc_dtim_timer2control_field_t TIMER2CONTROL_f; + }; + __IO uint32_t TIMER2INTCLR; + union { + __IO uint32_t TIMER2RIS; + stc_dtim_timer2ris_field_t TIMER2RIS_f; + }; + union { + __IO uint32_t TIMER2MIS; + stc_dtim_timer2mis_field_t TIMER2MIS_f; + }; + __IO uint32_t TIMER2BGLOAD; +}FM3_DTIM_TypeDef; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Free Running Timer registers */ +typedef struct +{ + uint8_t RESERVED0[40]; + __IO uint16_t TCCP0; + uint8_t RESERVED1[2]; + __IO uint16_t TCDT0; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TCSA0; + stc_mft_frt_tcsa0_field_t TCSA0_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t TCSB0; + stc_mft_frt_tcsb0_field_t TCSB0_f; + }; + uint8_t RESERVED4[2]; + __IO uint16_t TCCP1; + uint8_t RESERVED5[2]; + __IO uint16_t TCDT1; + uint8_t RESERVED6[2]; + union { + __IO uint16_t TCSA1; + stc_mft_frt_tcsa1_field_t TCSA1_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t TCSB1; + stc_mft_frt_tcsb1_field_t TCSB1_f; + }; + uint8_t RESERVED8[2]; + __IO uint16_t TCCP2; + uint8_t RESERVED9[2]; + __IO uint16_t TCDT2; + uint8_t RESERVED10[2]; + union { + __IO uint16_t TCSA2; + stc_mft_frt_tcsa2_field_t TCSA2_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t TCSB2; + stc_mft_frt_tcsb2_field_t TCSB2_f; + }; +}FM3_MFT_FRT_TypeDef; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Output Compare Unit registers */ +typedef struct +{ + __IO uint16_t OCCP0; + uint8_t RESERVED0[2]; + __IO uint16_t OCCP1; + uint8_t RESERVED1[2]; + __IO uint16_t OCCP2; + uint8_t RESERVED2[2]; + __IO uint16_t OCCP3; + uint8_t RESERVED3[2]; + __IO uint16_t OCCP4; + uint8_t RESERVED4[2]; + __IO uint16_t OCCP5; + uint8_t RESERVED5[2]; + union { + __IO uint8_t OCSA10; + stc_mft_ocu_ocsa10_field_t OCSA10_f; + }; + union { + __IO uint8_t OCSB10; + stc_mft_ocu_ocsb10_field_t OCSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t OCSA32; + stc_mft_ocu_ocsa32_field_t OCSA32_f; + }; + union { + __IO uint8_t OCSB32; + stc_mft_ocu_ocsb32_field_t OCSB32_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint8_t OCSA54; + stc_mft_ocu_ocsa54_field_t OCSA54_f; + }; + union { + __IO uint8_t OCSB54; + stc_mft_ocu_ocsb54_field_t OCSB54_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t OCSC; + stc_mft_ocu_ocsc_field_t OCSC_f; + }; + uint8_t RESERVED9[50]; + union { + __IO uint8_t OCFS10; + stc_mft_ocu_ocfs10_field_t OCFS10_f; + }; + union { + __IO uint8_t OCFS32; + stc_mft_ocu_ocfs32_field_t OCFS32_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint8_t OCFS54; + stc_mft_ocu_ocfs54_field_t OCFS54_f; + }; +}FM3_MFT_OCU_TypeDef; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +typedef struct +{ + uint8_t RESERVED0[128]; + __IO uint16_t WFTM10; + uint8_t RESERVED1[2]; + __IO uint16_t WFTM32; + uint8_t RESERVED2[2]; + __IO uint16_t WFTM54; + uint8_t RESERVED3[2]; + union { + __IO uint16_t WFSA10; + stc_mft_wfg_wfsa10_field_t WFSA10_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t WFSA32; + stc_mft_wfg_wfsa32_field_t WFSA32_f; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t WFSA54; + stc_mft_wfg_wfsa54_field_t WFSA54_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t WFIR; + stc_mft_wfg_wfir_field_t WFIR_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t NZCL; + stc_mft_wfg_nzcl_field_t NZCL_f; + }; +}FM3_MFT_WFG_TypeDef; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Input Capture Unit registers */ +typedef struct +{ + uint8_t RESERVED0[96]; + union { + __IO uint8_t ICFS10; + stc_mft_icu_icfs10_field_t ICFS10_f; + }; + union { + __IO uint8_t ICFS32; + stc_mft_icu_icfs32_field_t ICFS32_f; + }; + uint8_t RESERVED1[6]; + __IO uint16_t ICCP0; + uint8_t RESERVED2[2]; + __IO uint16_t ICCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ICCP2; + uint8_t RESERVED4[2]; + __IO uint16_t ICCP3; + uint8_t RESERVED5[2]; + union { + __IO uint8_t ICSA10; + stc_mft_icu_icsa10_field_t ICSA10_f; + }; + union { + __IO uint8_t ICSB10; + stc_mft_icu_icsb10_field_t ICSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ICSA32; + stc_mft_icu_icsa32_field_t ICSA32_f; + }; + union { + __IO uint8_t ICSB32; + stc_mft_icu_icsb32_field_t ICSB32_f; + }; +}FM3_MFT_ICU_TypeDef; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +typedef struct +{ + uint8_t RESERVED0[160]; + __IO uint16_t ACCP0; + uint8_t RESERVED1[2]; + __IO uint16_t ACCPDN0; + uint8_t RESERVED2[2]; + __IO uint16_t ACCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ACCPDN1; + uint8_t RESERVED4[2]; + __IO uint16_t ACCP2; + uint8_t RESERVED5[2]; + __IO uint16_t ACCPDN2; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ACSB; + stc_mft_adcmp_acsb_field_t ACSB_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t ACSA; + stc_mft_adcmp_acsa_field_t ACSA_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t ATSA; + stc_mft_adcmp_atsa_field_t ATSA_f; + }; +}FM3_MFT_ADCMP_TypeDef; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* Multifunction Timer PPG registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t TTCR0; + stc_mft_ppg_ttcr0_field_t TTCR0_f; + }; + uint8_t RESERVED1[7]; + __IO uint8_t COMP0; + uint8_t RESERVED2[2]; + __IO uint8_t COMP2; + uint8_t RESERVED3[4]; + __IO uint8_t COMP4; + uint8_t RESERVED4[2]; + __IO uint8_t COMP6; + uint8_t RESERVED5[12]; + union { + __IO uint8_t TTCR1; + stc_mft_ppg_ttcr1_field_t TTCR1_f; + }; + uint8_t RESERVED6[7]; + __IO uint8_t COMP1; + uint8_t RESERVED7[2]; + __IO uint8_t COMP3; + uint8_t RESERVED8[4]; + __IO uint8_t COMP5; + uint8_t RESERVED9[2]; + __IO uint8_t COMP7; + uint8_t RESERVED10[12]; + union { + __IO uint8_t TTCR2; + stc_mft_ppg_ttcr2_field_t TTCR2_f; + }; + uint8_t RESERVED11[7]; + __IO uint8_t COMP8; + uint8_t RESERVED12[2]; + __IO uint8_t COMP10; + uint8_t RESERVED13[4]; + __IO uint8_t COMP12; + uint8_t RESERVED14[2]; + __IO uint8_t COMP14; + uint8_t RESERVED15[171]; + union { + __IO uint16_t TRG; + stc_mft_ppg_trg_field_t TRG_f; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t REVC; + stc_mft_ppg_revc_field_t REVC_f; + }; + uint8_t RESERVED17[58]; + union { + __IO uint16_t TRG1; + stc_mft_ppg_trg1_field_t TRG1_f; + }; + uint8_t RESERVED18[2]; + union { + __IO uint16_t REVC1; + stc_mft_ppg_revc1_field_t REVC1_f; + }; + uint8_t RESERVED19[186]; + union { + __IO uint8_t PPGC1; + stc_mft_ppg_ppgc1_field_t PPGC1_f; + }; + union { + __IO uint8_t PPGC0; + stc_mft_ppg_ppgc0_field_t PPGC0_f; + }; + uint8_t RESERVED20[2]; + union { + __IO uint8_t PPGC3; + stc_mft_ppg_ppgc3_field_t PPGC3_f; + }; + union { + __IO uint8_t PPGC2; + stc_mft_ppg_ppgc2_field_t PPGC2_f; + }; + uint8_t RESERVED21[2]; + union { + __IO uint16_t PRL0; + struct { + __IO uint8_t PRLL0; + __IO uint8_t PRLH0; + }; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t PRL1; + struct { + __IO uint8_t PRLL1; + __IO uint8_t PRLH1; + }; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t PRL2; + struct { + __IO uint8_t PRLL2; + __IO uint8_t PRLH2; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t PRL3; + struct { + __IO uint8_t PRLL3; + __IO uint8_t PRLH3; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint8_t GATEC0; + stc_mft_ppg_gatec0_field_t GATEC0_f; + }; + uint8_t RESERVED26[39]; + union { + __IO uint8_t PPGC5; + stc_mft_ppg_ppgc5_field_t PPGC5_f; + }; + union { + __IO uint8_t PPGC4; + stc_mft_ppg_ppgc4_field_t PPGC4_f; + }; + uint8_t RESERVED27[2]; + union { + __IO uint8_t PPGC7; + stc_mft_ppg_ppgc7_field_t PPGC7_f; + }; + union { + __IO uint8_t PPGC6; + stc_mft_ppg_ppgc6_field_t PPGC6_f; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t PRL4; + struct { + __IO uint8_t PRLL4; + __IO uint8_t PRLH4; + }; + }; + uint8_t RESERVED29[2]; + union { + __IO uint16_t PRL5; + struct { + __IO uint8_t PRLL5; + __IO uint8_t PRLH5; + }; + }; + uint8_t RESERVED30[2]; + union { + __IO uint16_t PRL6; + struct { + __IO uint8_t PRLL6; + __IO uint8_t PRLH6; + }; + }; + uint8_t RESERVED31[2]; + union { + __IO uint16_t PRL7; + struct { + __IO uint8_t PRLL7; + __IO uint8_t PRLH7; + }; + }; + uint8_t RESERVED32[2]; + union { + __IO uint8_t GATEC4; + stc_mft_ppg_gatec4_field_t GATEC4_f; + }; + uint8_t RESERVED33[39]; + union { + __IO uint8_t PPGC9; + stc_mft_ppg_ppgc9_field_t PPGC9_f; + }; + union { + __IO uint8_t PPGC8; + stc_mft_ppg_ppgc8_field_t PPGC8_f; + }; + uint8_t RESERVED34[2]; + union { + __IO uint8_t PPGC11; + stc_mft_ppg_ppgc11_field_t PPGC11_f; + }; + union { + __IO uint8_t PPGC10; + stc_mft_ppg_ppgc10_field_t PPGC10_f; + }; + uint8_t RESERVED35[2]; + union { + __IO uint16_t PRL8; + struct { + __IO uint8_t PRLL8; + __IO uint8_t PRLH8; + }; + }; + uint8_t RESERVED36[2]; + union { + __IO uint16_t PRL9; + struct { + __IO uint8_t PRLL9; + __IO uint8_t PRLH9; + }; + }; + uint8_t RESERVED37[2]; + union { + __IO uint16_t PRL10; + struct { + __IO uint8_t PRLL10; + __IO uint8_t PRLH10; + }; + }; + uint8_t RESERVED38[2]; + union { + __IO uint16_t PRL11; + struct { + __IO uint8_t PRLL11; + __IO uint8_t PRLH11; + }; + }; + uint8_t RESERVED39[2]; + union { + __IO uint8_t GATEC8; + stc_mft_ppg_gatec8_field_t GATEC8_f; + }; + uint8_t RESERVED40[39]; + union { + __IO uint8_t PPGC13; + stc_mft_ppg_ppgc13_field_t PPGC13_f; + }; + union { + __IO uint8_t PPGC12; + stc_mft_ppg_ppgc12_field_t PPGC12_f; + }; + uint8_t RESERVED41[2]; + union { + __IO uint8_t PPGC15; + stc_mft_ppg_ppgc15_field_t PPGC15_f; + }; + union { + __IO uint8_t PPGC14; + stc_mft_ppg_ppgc14_field_t PPGC14_f; + }; + uint8_t RESERVED42[2]; + union { + __IO uint16_t PRL12; + struct { + __IO uint8_t PRLL12; + __IO uint8_t PRLH12; + }; + }; + uint8_t RESERVED43[2]; + union { + __IO uint16_t PRL13; + struct { + __IO uint8_t PRLL13; + __IO uint8_t PRLH13; + }; + }; + uint8_t RESERVED44[2]; + union { + __IO uint16_t PRL14; + struct { + __IO uint8_t PRLL14; + __IO uint8_t PRLH14; + }; + }; + uint8_t RESERVED45[2]; + union { + __IO uint16_t PRL15; + struct { + __IO uint8_t PRLL15; + __IO uint8_t PRLH15; + }; + }; + uint8_t RESERVED46[2]; + union { + __IO uint8_t GATEC12; + stc_mft_ppg_gatec12_field_t GATEC12_f; + }; + uint8_t RESERVED47[39]; + union { + __IO uint8_t PPGC17; + stc_mft_ppg_ppgc17_field_t PPGC17_f; + }; + union { + __IO uint8_t PPGC16; + stc_mft_ppg_ppgc16_field_t PPGC16_f; + }; + uint8_t RESERVED48[2]; + union { + __IO uint8_t PPGC19; + stc_mft_ppg_ppgc19_field_t PPGC19_f; + }; + union { + __IO uint8_t PPGC18; + stc_mft_ppg_ppgc18_field_t PPGC18_f; + }; + uint8_t RESERVED49[2]; + union { + __IO uint16_t PRL16; + struct { + __IO uint8_t PRLL16; + __IO uint8_t PRLH16; + }; + }; + uint8_t RESERVED50[2]; + union { + __IO uint16_t PRL17; + struct { + __IO uint8_t PRLL17; + __IO uint8_t PRLH17; + }; + }; + uint8_t RESERVED51[2]; + union { + __IO uint16_t PRL18; + struct { + __IO uint8_t PRLL18; + __IO uint8_t PRLH18; + }; + }; + uint8_t RESERVED52[2]; + union { + __IO uint16_t PRL19; + struct { + __IO uint8_t PRLL19; + __IO uint8_t PRLH19; + }; + }; + uint8_t RESERVED53[2]; + union { + __IO uint8_t GATEC16; + stc_mft_ppg_gatec16_field_t GATEC16_f; + }; + uint8_t RESERVED54[39]; + union { + __IO uint8_t PPGC21; + stc_mft_ppg_ppgc21_field_t PPGC21_f; + }; + union { + __IO uint8_t PPGC20; + stc_mft_ppg_ppgc20_field_t PPGC20_f; + }; + uint8_t RESERVED55[2]; + union { + __IO uint8_t PPGC23; + stc_mft_ppg_ppgc23_field_t PPGC23_f; + }; + union { + __IO uint8_t PPGC22; + stc_mft_ppg_ppgc22_field_t PPGC22_f; + }; + uint8_t RESERVED56[2]; + union { + __IO uint16_t PRL20; + struct { + __IO uint8_t PRLL20; + __IO uint8_t PRLH20; + }; + }; + uint8_t RESERVED57[2]; + union { + __IO uint16_t PRL21; + struct { + __IO uint8_t PRLL21; + __IO uint8_t PRLH21; + }; + }; + uint8_t RESERVED58[2]; + union { + __IO uint16_t PRL22; + struct { + __IO uint8_t PRLL22; + __IO uint8_t PRLH22; + }; + }; + uint8_t RESERVED59[2]; + union { + __IO uint16_t PRL23; + struct { + __IO uint8_t PRLL23; + __IO uint8_t PRLH23; + }; + }; + uint8_t RESERVED60[2]; + union { + __IO uint8_t GATEC20; + stc_mft_ppg_gatec20_field_t GATEC20_f; + }; +}FM3_MFT_PPG_TypeDef; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* Base Timer 0 PPG registers */ +typedef struct +{ + __IO uint16_t PRLL; + uint8_t RESERVED0[2]; + __IO uint16_t PRLH; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_ppg_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_ppg_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_ppg_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PPG_TypeDef; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* Base Timer 0 PWM registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[2]; + __IO uint16_t PDUT; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_pwm_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_pwm_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwm_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PWM_TypeDef; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* Base Timer 0 RT registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[6]; + __IO uint16_t TMR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t TMCR; + stc_bt_rt_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_rt_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_rt_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_RT_TypeDef; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* Base Timer 0 PWC registers */ +typedef struct +{ + uint8_t RESERVED0[4]; + __IO uint16_t DTBF; + uint8_t RESERVED1[6]; + union { + __IO uint16_t TMCR; + stc_bt_pwc_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_pwc_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwc_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PWC_TypeDef; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 0 - channel 3 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL0123; + stc_btiosel03_btsel0123_field_t BTSEL0123_f; + }; +}FM3_BTIOSEL03_TypeDef; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 4 - channel 7 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL4567; + stc_btiosel47_btsel4567_field_t BTSEL4567_f; + }; +}FM3_BTIOSEL47_TypeDef; + +/****************************************************************************** + * BTIOSEL8B_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 8 - channel 11 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL89AB; + stc_btiosel8b_btsel89ab_field_t BTSEL89AB_f; + }; +}FM3_BTIOSEL8B_TypeDef; + +/****************************************************************************** + * BTIOSELCF_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 12 - channel 15 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSELCDEF; + stc_btioselcf_btselcdef_field_t BTSELCDEF_f; + }; +}FM3_BTIOSELCF_TypeDef; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* Software based Simulation Startup (Base Timer) register */ +typedef struct +{ + union { + __IO uint16_t BTSSSR; + stc_sbssr_btsssr_field_t BTSSSR_f; + }; +}FM3_SBSSR_TypeDef; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* Quad position and revolution counter channel 0 registers */ +typedef struct +{ + __IO uint16_t QPCR; + uint8_t RESERVED0[2]; + __IO uint16_t QRCR; + uint8_t RESERVED1[2]; + __IO uint16_t QPCCR; + uint8_t RESERVED2[2]; + __IO uint16_t QPRCR; + uint8_t RESERVED3[2]; + __IO uint16_t QMPR; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t QICR; + stc_qprc_qicr_field_t QICR_f; + }; + struct { + union { + __IO uint8_t QICRL; + stc_qprc_qicrl_field_t QICRL_f; + }; + union { + __IO uint8_t QICRH; + stc_qprc_qicrh_field_t QICRH_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t QCR; + stc_qprc_qcr_field_t QCR_f; + }; + struct { + union { + __IO uint8_t QCRL; + stc_qprc_qcrl_field_t QCRL_f; + }; + union { + __IO uint8_t QCRH; + stc_qprc_qcrh_field_t QCRH_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t QECR; + stc_qprc_qecr_field_t QECR_f; + }; + uint8_t RESERVED7[30]; + __IO uint16_t QRCRR; + __IO uint16_t QPCRR; +}FM3_QPRC_TypeDef; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* 12-bit ADC unit 0 registers */ +typedef struct +{ + union { + __IO uint8_t ADSR; + stc_adc_adsr_field_t ADSR_f; + }; + union { + __IO uint8_t ADCR; + stc_adc_adcr_field_t ADCR_f; + }; + uint8_t RESERVED0[6]; + union { + __IO uint8_t SFNS; + stc_adc_sfns_field_t SFNS_f; + }; + union { + __IO uint8_t SCCR; + stc_adc_sccr_field_t SCCR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint32_t SCFD; + stc_adc_scfd_field_t SCFD_f; + }; + struct { + union { + __IO uint16_t SCFDL; + stc_adc_scfdl_field_t SCFDL_f; + }; + union { + __IO uint16_t SCFDH; + stc_adc_scfdh_field_t SCFDH_f; + }; + }; + }; + union { + union { + __IO uint16_t SCIS23; + stc_adc_scis23_field_t SCIS23_f; + }; + struct { + union { + __IO uint8_t SCIS2; + stc_adc_scis2_field_t SCIS2_f; + }; + union { + __IO uint8_t SCIS3; + stc_adc_scis3_field_t SCIS3_f; + }; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t SCIS01; + stc_adc_scis01_field_t SCIS01_f; + }; + struct { + union { + __IO uint8_t SCIS0; + stc_adc_scis0_field_t SCIS0_f; + }; + union { + __IO uint8_t SCIS1; + stc_adc_scis1_field_t SCIS1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t PFNS; + stc_adc_pfns_field_t PFNS_f; + }; + union { + __IO uint8_t PCCR; + stc_adc_pccr_field_t PCCR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint32_t PCFD; + stc_adc_pcfd_field_t PCFD_f; + }; + struct { + union { + __IO uint16_t PCFDL; + stc_adc_pcfdl_field_t PCFDL_f; + }; + union { + __IO uint16_t PCFDH; + stc_adc_pcfdh_field_t PCFDH_f; + }; + }; + }; + union { + __IO uint8_t PCIS; + stc_adc_pcis_field_t PCIS_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t CMPCR; + stc_adc_cmpcr_field_t CMPCR_f; + }; + uint8_t RESERVED6; + union { + __IO uint16_t CMPD; + stc_adc_cmpd_field_t CMPD_f; + }; + union { + union { + __IO uint16_t ADSS23; + stc_adc_adss23_field_t ADSS23_f; + }; + struct { + union { + __IO uint8_t ADSS2; + stc_adc_adss2_field_t ADSS2_f; + }; + union { + __IO uint8_t ADSS3; + stc_adc_adss3_field_t ADSS3_f; + }; + }; + }; + uint8_t RESERVED7[2]; + union { + union { + __IO uint16_t ADSS01; + stc_adc_adss01_field_t ADSS01_f; + }; + struct { + union { + __IO uint8_t ADSS0; + stc_adc_adss0_field_t ADSS0_f; + }; + union { + __IO uint8_t ADSS1; + stc_adc_adss1_field_t ADSS1_f; + }; + }; + }; + uint8_t RESERVED8[2]; + union { + union { + __IO uint16_t ADST01; + stc_adc_adst01_field_t ADST01_f; + }; + struct { + union { + __IO uint8_t ADST1; + stc_adc_adst1_field_t ADST1_f; + }; + union { + __IO uint8_t ADST0; + stc_adc_adst0_field_t ADST0_f; + }; + }; + }; + uint8_t RESERVED9[2]; + union { + __IO uint8_t ADCT; + stc_adc_adct_field_t ADCT_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PRTSL; + stc_adc_prtsl_field_t PRTSL_f; + }; + union { + __IO uint8_t SCTSL; + stc_adc_sctsl_field_t SCTSL_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint8_t ADCEN; + stc_adc_adcen_field_t ADCEN_f; + }; +}FM3_ADC_TypeDef; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CR trimming registers */ +typedef struct +{ + union { + __IO uint8_t MCR_PSR; + stc_crtrim_mcr_psr_field_t MCR_PSR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint16_t MCR_FTRM; + stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; + }; + uint8_t RESERVED1[6]; + __IO uint32_t MCR_RLR; +}FM3_CRTRIM_TypeDef; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* External interrupt registers */ +typedef struct +{ + union { + __IO uint32_t ENIR; + stc_exti_enir_field_t ENIR_f; + }; + union { + __IO uint32_t EIRR; + stc_exti_eirr_field_t EIRR_f; + }; + union { + __IO uint32_t EICL; + stc_exti_eicl_field_t EICL_f; + }; + union { + __IO uint32_t ELVR; + stc_exti_elvr_field_t ELVR_f; + }; + union { + __IO uint32_t ELVR1; + stc_exti_elvr1_field_t ELVR1_f; + }; + union { + __IO uint8_t NMIRR; + stc_exti_nmirr_field_t NMIRR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t NMICL; + stc_exti_nmicl_field_t NMICL_f; + }; +}FM3_EXTI_TypeDef; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* Interrupt request read registers */ +typedef struct +{ + union { + __IO uint32_t DRQSEL; + stc_intreq_drqsel_field_t DRQSEL_f; + }; + uint8_t RESERVED0[7]; + union { + __IO uint8_t ODDPKS; + stc_intreq_oddpks_field_t ODDPKS_f; + }; + uint8_t RESERVED1[4]; + union { + __IO uint32_t EXC02MON; + stc_intreq_exc02mon_field_t EXC02MON_f; + }; + union { + __IO uint32_t IRQ00MON; + stc_intreq_irq00mon_field_t IRQ00MON_f; + }; + union { + __IO uint32_t IRQ01MON; + stc_intreq_irq01mon_field_t IRQ01MON_f; + }; + union { + __IO uint32_t IRQ02MON; + stc_intreq_irq02mon_field_t IRQ02MON_f; + }; + union { + __IO uint32_t IRQ03MON; + stc_intreq_irq03mon_field_t IRQ03MON_f; + }; + union { + __IO uint32_t IRQ04MON; + stc_intreq_irq04mon_field_t IRQ04MON_f; + }; + union { + __IO uint32_t IRQ05MON; + stc_intreq_irq05mon_field_t IRQ05MON_f; + }; + union { + __IO uint32_t IRQ06MON; + stc_intreq_irq06mon_field_t IRQ06MON_f; + }; + union { + __IO uint32_t IRQ07MON; + stc_intreq_irq07mon_field_t IRQ07MON_f; + }; + union { + __IO uint32_t IRQ08MON; + stc_intreq_irq08mon_field_t IRQ08MON_f; + }; + union { + __IO uint32_t IRQ09MON; + stc_intreq_irq09mon_field_t IRQ09MON_f; + }; + union { + __IO uint32_t IRQ10MON; + stc_intreq_irq10mon_field_t IRQ10MON_f; + }; + union { + __IO uint32_t IRQ11MON; + stc_intreq_irq11mon_field_t IRQ11MON_f; + }; + union { + __IO uint32_t IRQ12MON; + stc_intreq_irq12mon_field_t IRQ12MON_f; + }; + union { + __IO uint32_t IRQ13MON; + stc_intreq_irq13mon_field_t IRQ13MON_f; + }; + union { + __IO uint32_t IRQ14MON; + stc_intreq_irq14mon_field_t IRQ14MON_f; + }; + union { + __IO uint32_t IRQ15MON; + stc_intreq_irq15mon_field_t IRQ15MON_f; + }; + union { + __IO uint32_t IRQ16MON; + stc_intreq_irq16mon_field_t IRQ16MON_f; + }; + union { + __IO uint32_t IRQ17MON; + stc_intreq_irq17mon_field_t IRQ17MON_f; + }; + union { + __IO uint32_t IRQ18MON; + stc_intreq_irq18mon_field_t IRQ18MON_f; + }; + union { + __IO uint32_t IRQ19MON; + stc_intreq_irq19mon_field_t IRQ19MON_f; + }; + union { + __IO uint32_t IRQ20MON; + stc_intreq_irq20mon_field_t IRQ20MON_f; + }; + union { + __IO uint32_t IRQ21MON; + stc_intreq_irq21mon_field_t IRQ21MON_f; + }; + union { + __IO uint32_t IRQ22MON; + stc_intreq_irq22mon_field_t IRQ22MON_f; + }; + union { + __IO uint32_t IRQ23MON; + stc_intreq_irq23mon_field_t IRQ23MON_f; + }; + union { + __IO uint32_t IRQ24MON; + stc_intreq_irq24mon_field_t IRQ24MON_f; + }; + union { + __IO uint32_t IRQ25MON; + stc_intreq_irq25mon_field_t IRQ25MON_f; + }; + union { + __IO uint32_t IRQ26MON; + stc_intreq_irq26mon_field_t IRQ26MON_f; + }; + union { + __IO uint32_t IRQ27MON; + stc_intreq_irq27mon_field_t IRQ27MON_f; + }; + union { + __IO uint32_t IRQ28MON; + stc_intreq_irq28mon_field_t IRQ28MON_f; + }; + union { + __IO uint32_t IRQ29MON; + stc_intreq_irq29mon_field_t IRQ29MON_f; + }; + union { + __IO uint32_t IRQ30MON; + stc_intreq_irq30mon_field_t IRQ30MON_f; + }; + union { + __IO uint32_t IRQ31MON; + stc_intreq_irq31mon_field_t IRQ31MON_f; + }; + union { + __IO uint32_t IRQ32MON; + stc_intreq_irq32mon_field_t IRQ32MON_f; + }; + union { + __IO uint32_t IRQ33MON; + stc_intreq_irq33mon_field_t IRQ33MON_f; + }; + union { + __IO uint32_t IRQ34MON; + stc_intreq_irq34mon_field_t IRQ34MON_f; + }; + union { + __IO uint32_t IRQ35MON; + stc_intreq_irq35mon_field_t IRQ35MON_f; + }; + union { + __IO uint32_t IRQ36MON; + stc_intreq_irq36mon_field_t IRQ36MON_f; + }; + union { + __IO uint32_t IRQ37MON; + stc_intreq_irq37mon_field_t IRQ37MON_f; + }; + union { + __IO uint32_t IRQ38MON; + stc_intreq_irq38mon_field_t IRQ38MON_f; + }; + union { + __IO uint32_t IRQ39MON; + stc_intreq_irq39mon_field_t IRQ39MON_f; + }; + union { + __IO uint32_t IRQ40MON; + stc_intreq_irq40mon_field_t IRQ40MON_f; + }; + union { + __IO uint32_t IRQ41MON; + stc_intreq_irq41mon_field_t IRQ41MON_f; + }; + union { + __IO uint32_t IRQ42MON; + stc_intreq_irq42mon_field_t IRQ42MON_f; + }; + union { + __IO uint32_t IRQ43MON; + stc_intreq_irq43mon_field_t IRQ43MON_f; + }; + union { + __IO uint32_t IRQ44MON; + stc_intreq_irq44mon_field_t IRQ44MON_f; + }; + union { + __IO uint32_t IRQ45MON; + stc_intreq_irq45mon_field_t IRQ45MON_f; + }; + union { + __IO uint32_t IRQ46MON; + stc_intreq_irq46mon_field_t IRQ46MON_f; + }; + uint8_t RESERVED2[300]; + union { + __IO uint32_t DRQSEL1; + stc_intreq_drqsel1_field_t DRQSEL1_f; + }; + union { + __IO uint32_t DQESEL; + stc_intreq_dqesel_field_t DQESEL_f; + }; + uint8_t RESERVED3[7]; + union { + __IO uint8_t ODDPKS1; + stc_intreq_oddpks1_field_t ODDPKS1_f; + }; +}FM3_INTREQ_TypeDef; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* General purpose I/O registers */ +typedef struct +{ + union { + __IO uint32_t PFR0; + stc_gpio_pfr0_field_t PFR0_f; + }; + union { + __IO uint32_t PFR1; + stc_gpio_pfr1_field_t PFR1_f; + }; + union { + __IO uint32_t PFR2; + stc_gpio_pfr2_field_t PFR2_f; + }; + union { + __IO uint32_t PFR3; + stc_gpio_pfr3_field_t PFR3_f; + }; + union { + __IO uint32_t PFR4; + stc_gpio_pfr4_field_t PFR4_f; + }; + union { + __IO uint32_t PFR5; + stc_gpio_pfr5_field_t PFR5_f; + }; + union { + __IO uint32_t PFR6; + stc_gpio_pfr6_field_t PFR6_f; + }; + union { + __IO uint32_t PFR7; + stc_gpio_pfr7_field_t PFR7_f; + }; + union { + __IO uint32_t PFR8; + stc_gpio_pfr8_field_t PFR8_f; + }; + __IO uint32_t PFR9; + union { + __IO uint32_t PFRA; + stc_gpio_pfra_field_t PFRA_f; + }; + __IO uint32_t PFRB; + union { + __IO uint32_t PFRC; + stc_gpio_pfrc_field_t PFRC_f; + }; + union { + __IO uint32_t PFRD; + stc_gpio_pfrd_field_t PFRD_f; + }; + union { + __IO uint32_t PFRE; + stc_gpio_pfre_field_t PFRE_f; + }; + union { + __IO uint32_t PFRF; + stc_gpio_pfrf_field_t PFRF_f; + }; + uint8_t RESERVED0[192]; + union { + __IO uint32_t PCR0; + stc_gpio_pcr0_field_t PCR0_f; + }; + union { + __IO uint32_t PCR1; + stc_gpio_pcr1_field_t PCR1_f; + }; + union { + __IO uint32_t PCR2; + stc_gpio_pcr2_field_t PCR2_f; + }; + union { + __IO uint32_t PCR3; + stc_gpio_pcr3_field_t PCR3_f; + }; + union { + __IO uint32_t PCR4; + stc_gpio_pcr4_field_t PCR4_f; + }; + union { + __IO uint32_t PCR5; + stc_gpio_pcr5_field_t PCR5_f; + }; + union { + __IO uint32_t PCR6; + stc_gpio_pcr6_field_t PCR6_f; + }; + union { + __IO uint32_t PCR7; + stc_gpio_pcr7_field_t PCR7_f; + }; + __IO uint32_t PCR8; + __IO uint32_t PCR9; + union { + __IO uint32_t PCRA; + stc_gpio_pcra_field_t PCRA_f; + }; + __IO uint32_t PCRB; + union { + __IO uint32_t PCRC; + stc_gpio_pcrc_field_t PCRC_f; + }; + union { + __IO uint32_t PCRD; + stc_gpio_pcrd_field_t PCRD_f; + }; + union { + __IO uint32_t PCRE; + stc_gpio_pcre_field_t PCRE_f; + }; + __IO uint32_t PCRF; + uint8_t RESERVED1[192]; + union { + __IO uint32_t DDR0; + stc_gpio_ddr0_field_t DDR0_f; + }; + union { + __IO uint32_t DDR1; + stc_gpio_ddr1_field_t DDR1_f; + }; + union { + __IO uint32_t DDR2; + stc_gpio_ddr2_field_t DDR2_f; + }; + union { + __IO uint32_t DDR3; + stc_gpio_ddr3_field_t DDR3_f; + }; + union { + __IO uint32_t DDR4; + stc_gpio_ddr4_field_t DDR4_f; + }; + union { + __IO uint32_t DDR5; + stc_gpio_ddr5_field_t DDR5_f; + }; + union { + __IO uint32_t DDR6; + stc_gpio_ddr6_field_t DDR6_f; + }; + union { + __IO uint32_t DDR7; + stc_gpio_ddr7_field_t DDR7_f; + }; + union { + __IO uint32_t DDR8; + stc_gpio_ddr8_field_t DDR8_f; + }; + __IO uint32_t DDR9; + union { + __IO uint32_t DDRA; + stc_gpio_ddra_field_t DDRA_f; + }; + __IO uint32_t DDRB; + union { + __IO uint32_t DDRC; + stc_gpio_ddrc_field_t DDRC_f; + }; + union { + __IO uint32_t DDRD; + stc_gpio_ddrd_field_t DDRD_f; + }; + union { + __IO uint32_t DDRE; + stc_gpio_ddre_field_t DDRE_f; + }; + union { + __IO uint32_t DDRF; + stc_gpio_ddrf_field_t DDRF_f; + }; + uint8_t RESERVED2[192]; + union { + __IO uint32_t PDIR0; + stc_gpio_pdir0_field_t PDIR0_f; + }; + union { + __IO uint32_t PDIR1; + stc_gpio_pdir1_field_t PDIR1_f; + }; + union { + __IO uint32_t PDIR2; + stc_gpio_pdir2_field_t PDIR2_f; + }; + union { + __IO uint32_t PDIR3; + stc_gpio_pdir3_field_t PDIR3_f; + }; + union { + __IO uint32_t PDIR4; + stc_gpio_pdir4_field_t PDIR4_f; + }; + union { + __IO uint32_t PDIR5; + stc_gpio_pdir5_field_t PDIR5_f; + }; + union { + __IO uint32_t PDIR6; + stc_gpio_pdir6_field_t PDIR6_f; + }; + union { + __IO uint32_t PDIR7; + stc_gpio_pdir7_field_t PDIR7_f; + }; + union { + __IO uint32_t PDIR8; + stc_gpio_pdir8_field_t PDIR8_f; + }; + __IO uint32_t PDIR9; + union { + __IO uint32_t PDIRA; + stc_gpio_pdira_field_t PDIRA_f; + }; + __IO uint32_t PDIRB; + union { + __IO uint32_t PDIRC; + stc_gpio_pdirc_field_t PDIRC_f; + }; + union { + __IO uint32_t PDIRD; + stc_gpio_pdird_field_t PDIRD_f; + }; + union { + __IO uint32_t PDIRE; + stc_gpio_pdire_field_t PDIRE_f; + }; + union { + __IO uint32_t PDIRF; + stc_gpio_pdirf_field_t PDIRF_f; + }; + uint8_t RESERVED3[192]; + union { + __IO uint32_t PDOR0; + stc_gpio_pdor0_field_t PDOR0_f; + }; + union { + __IO uint32_t PDOR1; + stc_gpio_pdor1_field_t PDOR1_f; + }; + union { + __IO uint32_t PDOR2; + stc_gpio_pdor2_field_t PDOR2_f; + }; + union { + __IO uint32_t PDOR3; + stc_gpio_pdor3_field_t PDOR3_f; + }; + union { + __IO uint32_t PDOR4; + stc_gpio_pdor4_field_t PDOR4_f; + }; + union { + __IO uint32_t PDOR5; + stc_gpio_pdor5_field_t PDOR5_f; + }; + union { + __IO uint32_t PDOR6; + stc_gpio_pdor6_field_t PDOR6_f; + }; + union { + __IO uint32_t PDOR7; + stc_gpio_pdor7_field_t PDOR7_f; + }; + union { + __IO uint32_t PDOR8; + stc_gpio_pdor8_field_t PDOR8_f; + }; + __IO uint32_t PDOR9; + union { + __IO uint32_t PDORA; + stc_gpio_pdora_field_t PDORA_f; + }; + __IO uint32_t PDORB; + union { + __IO uint32_t PDORC; + stc_gpio_pdorc_field_t PDORC_f; + }; + union { + __IO uint32_t PDORD; + stc_gpio_pdord_field_t PDORD_f; + }; + union { + __IO uint32_t PDORE; + stc_gpio_pdore_field_t PDORE_f; + }; + union { + __IO uint32_t PDORF; + stc_gpio_pdorf_field_t PDORF_f; + }; + uint8_t RESERVED4[192]; + union { + __IO uint32_t ADE; + stc_gpio_ade_field_t ADE_f; + }; + uint8_t RESERVED5[124]; + union { + __IO uint32_t SPSR; + stc_gpio_spsr_field_t SPSR_f; + }; + uint8_t RESERVED6[124]; + union { + __IO uint32_t EPFR00; + stc_gpio_epfr00_field_t EPFR00_f; + }; + union { + __IO uint32_t EPFR01; + stc_gpio_epfr01_field_t EPFR01_f; + }; + union { + __IO uint32_t EPFR02; + stc_gpio_epfr02_field_t EPFR02_f; + }; + union { + __IO uint32_t EPFR03; + stc_gpio_epfr03_field_t EPFR03_f; + }; + union { + __IO uint32_t EPFR04; + stc_gpio_epfr04_field_t EPFR04_f; + }; + union { + __IO uint32_t EPFR05; + stc_gpio_epfr05_field_t EPFR05_f; + }; + union { + __IO uint32_t EPFR06; + stc_gpio_epfr06_field_t EPFR06_f; + }; + union { + __IO uint32_t EPFR07; + stc_gpio_epfr07_field_t EPFR07_f; + }; + union { + __IO uint32_t EPFR08; + stc_gpio_epfr08_field_t EPFR08_f; + }; + union { + __IO uint32_t EPFR09; + stc_gpio_epfr09_field_t EPFR09_f; + }; + union { + __IO uint32_t EPFR10; + stc_gpio_epfr10_field_t EPFR10_f; + }; + union { + __IO uint32_t EPFR11; + stc_gpio_epfr11_field_t EPFR11_f; + }; + union { + __IO uint32_t EPFR12; + stc_gpio_epfr12_field_t EPFR12_f; + }; + union { + __IO uint32_t EPFR13; + stc_gpio_epfr13_field_t EPFR13_f; + }; + union { + __IO uint32_t EPFR14; + stc_gpio_epfr14_field_t EPFR14_f; + }; + union { + __IO uint32_t EPFR15; + stc_gpio_epfr15_field_t EPFR15_f; + }; + uint8_t RESERVED7[192]; + union { + __IO uint32_t PZR0; + stc_gpio_pzr0_field_t PZR0_f; + }; + union { + __IO uint32_t PZR1; + stc_gpio_pzr1_field_t PZR1_f; + }; + union { + __IO uint32_t PZR2; + stc_gpio_pzr2_field_t PZR2_f; + }; + union { + __IO uint32_t PZR3; + stc_gpio_pzr3_field_t PZR3_f; + }; + union { + __IO uint32_t PZR4; + stc_gpio_pzr4_field_t PZR4_f; + }; + union { + __IO uint32_t PZR5; + stc_gpio_pzr5_field_t PZR5_f; + }; + union { + __IO uint32_t PZR6; + stc_gpio_pzr6_field_t PZR6_f; + }; + union { + __IO uint32_t PZR7; + stc_gpio_pzr7_field_t PZR7_f; + }; + union { + __IO uint32_t PZR8; + stc_gpio_pzr8_field_t PZR8_f; + }; + __IO uint32_t PZR9; + union { + __IO uint32_t PZRA; + stc_gpio_pzra_field_t PZRA_f; + }; + __IO uint32_t PZRB; + union { + __IO uint32_t PZRC; + stc_gpio_pzrc_field_t PZRC_f; + }; + union { + __IO uint32_t PZRD; + stc_gpio_pzrd_field_t PZRD_f; + }; + union { + __IO uint32_t PZRE; + stc_gpio_pzre_field_t PZRE_f; + }; + union { + __IO uint32_t PZRF; + stc_gpio_pzrf_field_t PZRF_f; + }; +}FM3_GPIO_TypeDef; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* Low voltage detection registers */ +typedef struct +{ + union { + __IO uint8_t LVD_CTL; + stc_lvd_lvd_ctl_field_t LVD_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t LVD_STR; + stc_lvd_lvd_str_field_t LVD_STR_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t LVD_CLR; + stc_lvd_lvd_clr_field_t LVD_CLR_f; + }; + uint8_t RESERVED2[3]; + __IO uint32_t LVD_RLR; + union { + __IO uint8_t LVD_STR2; + stc_lvd_lvd_str2_field_t LVD_STR2_f; + }; +}FM3_LVD_TypeDef; + +/****************************************************************************** + * USBETHERNETCLK + ******************************************************************************/ +/* USB Ethernet clock registers */ +typedef struct +{ + union { + __IO uint8_t UCCR; + stc_usbethernetclk_uccr_field_t UCCR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t UPCR1; + stc_usbethernetclk_upcr1_field_t UPCR1_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t UPCR2; + stc_usbethernetclk_upcr2_field_t UPCR2_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint8_t UPCR3; + stc_usbethernetclk_upcr3_field_t UPCR3_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t UPCR4; + stc_usbethernetclk_upcr4_field_t UPCR4_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t UP_STR; + stc_usbethernetclk_up_str_field_t UP_STR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t UPINT_ENR; + stc_usbethernetclk_upint_enr_field_t UPINT_ENR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t UPINT_CLR; + stc_usbethernetclk_upint_clr_field_t UPINT_CLR_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint8_t UPINT_STR; + stc_usbethernetclk_upint_str_field_t UPINT_STR_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t UPCR5; + stc_usbethernetclk_upcr5_field_t UPCR5_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t UPCR6; + stc_usbethernetclk_upcr6_field_t UPCR6_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t UPCR7; + stc_usbethernetclk_upcr7_field_t UPCR7_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t USBEN0; + stc_usbethernetclk_usben0_field_t USBEN0_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint8_t USBEN1; + stc_usbethernetclk_usben1_field_t USBEN1_f; + }; +}FM3_USBETHERNETCLK_TypeDef; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_uart_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_uart_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_uart_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_uart_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint16_t RDR; + stc_mfs03_uart_rdr_field_t RDR_f; + }; + union { + __IO uint16_t TDR; + stc_mfs03_uart_tdr_field_t TDR_f; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs03_uart_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs03_uart_bgr1_field_t BGR1_f; + }; + }; + }; +}FM3_MFS03_UART_TypeDef; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_csio_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_csio_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_csio_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_csio_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; +}FM3_MFS03_CSIO_TypeDef; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_lin_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_lin_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_lin_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_lin_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs03_lin_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs03_lin_bgr1_field_t BGR1_f; + }; + }; + }; +}FM3_MFS03_LIN_TypeDef; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* I2C channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_i2c_smr_field_t SMR_f; + }; + union { + __IO uint8_t IBCR; + stc_mfs03_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t IBSR; + stc_mfs03_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_i2c_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t ISBA; + stc_mfs03_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs03_i2c_ismk_field_t ISMK_f; + }; +}FM3_MFS03_I2C_TypeDef; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_uart_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_uart_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_uart_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_uart_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint16_t RDR; + stc_mfs47_uart_rdr_field_t RDR_f; + }; + union { + __IO uint16_t TDR; + stc_mfs47_uart_tdr_field_t TDR_f; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs47_uart_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs47_uart_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_uart_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_uart_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_uart_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_uart_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_uart_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_uart_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_UART_TypeDef; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_csio_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_csio_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_csio_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_csio_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_csio_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_csio_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_csio_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_csio_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_csio_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_csio_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_CSIO_TypeDef; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_lin_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_lin_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_lin_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_lin_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs47_lin_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs47_lin_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_lin_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_lin_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_lin_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_lin_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_lin_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_lin_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_LIN_TypeDef; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* I2C channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_i2c_smr_field_t SMR_f; + }; + union { + __IO uint8_t IBCR; + stc_mfs47_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t IBSR; + stc_mfs47_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_i2c_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t ISBA; + stc_mfs47_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs47_i2c_ismk_field_t ISMK_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_i2c_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_i2c_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_i2c_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_i2c_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_i2c_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_i2c_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_I2C_TypeDef; + +/****************************************************************************** + * MFS_NFC_MODULE + ******************************************************************************/ +/* MFS_NFC_MODULE register bit fields */ +typedef struct +{ + union { + __IO uint16_t I2CDNF; + stc_mfs_nfc_i2cdnf_field_t I2CDNF_f; + }; +}FM3_MFS_NFC_TypeDef; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC registers */ +typedef struct +{ + union { + __IO uint8_t CRCCR; + stc_crc_crccr_field_t CRCCR_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t CRCINIT; + union { + __IO uint32_t CRCIN; + struct { + union { + __IO uint16_t CRCINL; + struct { + __IO uint8_t CRCINLL; + __IO uint8_t CRCINLH; + }; + }; + union { + __IO uint16_t CRCINH; + struct { + __IO uint8_t CRCINHL; + __IO uint8_t CRCINHH; + }; + }; + }; + }; + __IO uint32_t CRCR; +}FM3_CRC_TypeDef; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* Watch counter registers */ +typedef struct +{ + union { + __IO uint8_t WCRD; + stc_wc_wcrd_field_t WCRD_f; + }; + union { + __IO uint8_t WCRL; + stc_wc_wcrl_field_t WCRL_f; + }; + union { + __IO uint8_t WCCR; + stc_wc_wccr_field_t WCCR_f; + }; + uint8_t RESERVED0[13]; + union { + __IO uint16_t CLK_SEL; + stc_wc_clk_sel_field_t CLK_SEL_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t CLK_EN; + stc_wc_clk_en_field_t CLK_EN_f; + }; +}FM3_WC_TypeDef; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* External bus interface registers */ +typedef struct +{ + union { + __IO uint32_t MODE0; + stc_exbus_mode0_field_t MODE0_f; + }; + union { + __IO uint32_t MODE1; + stc_exbus_mode1_field_t MODE1_f; + }; + union { + __IO uint32_t MODE2; + stc_exbus_mode2_field_t MODE2_f; + }; + union { + __IO uint32_t MODE3; + stc_exbus_mode3_field_t MODE3_f; + }; + union { + __IO uint32_t MODE4; + stc_exbus_mode4_field_t MODE4_f; + }; + union { + __IO uint32_t MODE5; + stc_exbus_mode5_field_t MODE5_f; + }; + union { + __IO uint32_t MODE6; + stc_exbus_mode6_field_t MODE6_f; + }; + union { + __IO uint32_t MODE7; + stc_exbus_mode7_field_t MODE7_f; + }; + union { + __IO uint32_t TIM0; + stc_exbus_tim0_field_t TIM0_f; + }; + union { + __IO uint32_t TIM1; + stc_exbus_tim1_field_t TIM1_f; + }; + union { + __IO uint32_t TIM2; + stc_exbus_tim2_field_t TIM2_f; + }; + union { + __IO uint32_t TIM3; + stc_exbus_tim3_field_t TIM3_f; + }; + union { + __IO uint32_t TIM4; + stc_exbus_tim4_field_t TIM4_f; + }; + union { + __IO uint32_t TIM5; + stc_exbus_tim5_field_t TIM5_f; + }; + union { + __IO uint32_t TIM6; + stc_exbus_tim6_field_t TIM6_f; + }; + union { + __IO uint32_t TIM7; + stc_exbus_tim7_field_t TIM7_f; + }; + union { + __IO uint32_t AREA0; + stc_exbus_area0_field_t AREA0_f; + }; + union { + __IO uint32_t AREA1; + stc_exbus_area1_field_t AREA1_f; + }; + union { + __IO uint32_t AREA2; + stc_exbus_area2_field_t AREA2_f; + }; + union { + __IO uint32_t AREA3; + stc_exbus_area3_field_t AREA3_f; + }; + union { + __IO uint32_t AREA4; + stc_exbus_area4_field_t AREA4_f; + }; + union { + __IO uint32_t AREA5; + stc_exbus_area5_field_t AREA5_f; + }; + union { + __IO uint32_t AREA6; + stc_exbus_area6_field_t AREA6_f; + }; + union { + __IO uint32_t AREA7; + stc_exbus_area7_field_t AREA7_f; + }; + union { + __IO uint16_t ATIM0; + stc_exbus_atim0_field_t ATIM0_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint16_t ATIM1; + stc_exbus_atim1_field_t ATIM1_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t ATIM2; + stc_exbus_atim2_field_t ATIM2_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t ATIM3; + stc_exbus_atim3_field_t ATIM3_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t ATIM4; + stc_exbus_atim4_field_t ATIM4_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t ATIM5; + stc_exbus_atim5_field_t ATIM5_f; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t ATIM6; + stc_exbus_atim6_field_t ATIM6_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t ATIM7; + stc_exbus_atim7_field_t ATIM7_f; + }; + uint8_t RESERVED7[642]; + union { + __IO uint8_t DCLKR; + stc_exbus_dclkr_field_t DCLKR_f; + }; +}FM3_EXBUS_TypeDef; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB channel 0 registers */ +typedef struct +{ + union { + union { + __IO uint16_t HCNT; + stc_usb_hcnt_field_t HCNT_f; + }; + struct { + union { + __IO uint8_t HCNT0; + stc_usb_hcnt0_field_t HCNT0_f; + }; + union { + __IO uint8_t HCNT1; + stc_usb_hcnt1_field_t HCNT1_f; + }; + }; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t HIRQ; + stc_usb_hirq_field_t HIRQ_f; + }; + union { + __IO uint8_t HERR; + stc_usb_herr_field_t HERR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t HSTATE; + stc_usb_hstate_field_t HSTATE_f; + }; + union { + __IO uint8_t HFCOMP; + stc_usb_hfcomp_field_t HFCOMP_f; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t HRTIMER; + stc_usb_hrtimer_field_t HRTIMER_f; + }; + struct { + union { + __IO uint8_t HRTIMER0; + stc_usb_hrtimer0_field_t HRTIMER0_f; + }; + union { + __IO uint8_t HRTIMER1; + stc_usb_hrtimer1_field_t HRTIMER1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t HRTIMER2; + stc_usb_hrtimer2_field_t HRTIMER2_f; + }; + union { + __IO uint8_t HADR; + stc_usb_hadr_field_t HADR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t HEOF; + stc_usb_heof_field_t HEOF_f; + }; + struct { + union { + __IO uint8_t HEOF0; + stc_usb_heof0_field_t HEOF0_f; + }; + union { + __IO uint8_t HEOF1; + stc_usb_heof1_field_t HEOF1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t HFRAME; + stc_usb_hframe_field_t HFRAME_f; + }; + struct { + union { + __IO uint8_t HFRAME0; + stc_usb_hframe0_field_t HFRAME0_f; + }; + union { + __IO uint8_t HFRAME1; + stc_usb_hframe1_field_t HFRAME1_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t HTOKEN; + stc_usb_htoken_field_t HTOKEN_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t UDCC; + stc_usb_udcc_field_t UDCC_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t EP0C; + stc_usb_ep0c_field_t EP0C_f; + }; + uint8_t RESERVED9[2]; + union { + __IO uint16_t EP1C; + stc_usb_ep1c_field_t EP1C_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint16_t EP2C; + stc_usb_ep2c_field_t EP2C_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t EP3C; + stc_usb_ep3c_field_t EP3C_f; + }; + uint8_t RESERVED12[2]; + union { + __IO uint16_t EP4C; + stc_usb_ep4c_field_t EP4C_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint16_t EP5C; + stc_usb_ep5c_field_t EP5C_f; + }; + uint8_t RESERVED14[2]; + union { + __IO uint16_t TMSP; + stc_usb_tmsp_field_t TMSP_f; + }; + uint8_t RESERVED15[2]; + union { + __IO uint8_t UDCS; + stc_usb_udcs_field_t UDCS_f; + }; + union { + __IO uint8_t UDCIE; + stc_usb_udcie_field_t UDCIE_f; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t EP0IS; + stc_usb_ep0is_field_t EP0IS_f; + }; + uint8_t RESERVED17[2]; + union { + __IO uint16_t EP0OS; + stc_usb_ep0os_field_t EP0OS_f; + }; + uint8_t RESERVED18[2]; + union { + __IO uint16_t EP1S; + stc_usb_ep1s_field_t EP1S_f; + }; + uint8_t RESERVED19[2]; + union { + __IO uint16_t EP2S; + stc_usb_ep2s_field_t EP2S_f; + }; + uint8_t RESERVED20[2]; + __IO uint16_t EP3S; + uint8_t RESERVED21[2]; + union { + __IO uint16_t EP4S; + stc_usb_ep4s_field_t EP4S_f; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t EP5S; + stc_usb_ep5s_field_t EP5S_f; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t EP0DT; + struct { + __IO uint8_t EP0DTL; + __IO uint8_t EP0DTH; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t EP1DT; + struct { + __IO uint8_t EP1DTL; + __IO uint8_t EP1DTH; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint16_t EP2DT; + struct { + __IO uint8_t EP2DTL; + __IO uint8_t EP2DTH; + }; + }; + uint8_t RESERVED26[2]; + union { + __IO uint16_t EP3DT; + struct { + __IO uint8_t EP3DTL; + __IO uint8_t EP3DTH; + }; + }; + uint8_t RESERVED27[2]; + union { + __IO uint16_t EP4DT; + struct { + __IO uint8_t EP4DTL; + __IO uint8_t EP4DTH; + }; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t EP5DT; + struct { + __IO uint8_t EP5DTL; + __IO uint8_t EP5DTH; + }; + }; +}FM3_USB_TypeDef; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMA controller */ +typedef struct +{ + union { + __IO uint32_t DMACR; + stc_dmac_dmacr_field_t DMACR_f; + }; + uint8_t RESERVED0[12]; + union { + __IO uint32_t DMACA0; + stc_dmac_dmaca0_field_t DMACA0_f; + }; + union { + __IO uint32_t DMACB0; + stc_dmac_dmacb0_field_t DMACB0_f; + }; + __IO uint32_t DMACSA0; + __IO uint32_t DMACDA0; + union { + __IO uint32_t DMACA1; + stc_dmac_dmaca1_field_t DMACA1_f; + }; + union { + __IO uint32_t DMACB1; + stc_dmac_dmacb1_field_t DMACB1_f; + }; + __IO uint32_t DMACSA1; + __IO uint32_t DMACDA1; + union { + __IO uint32_t DMACA2; + stc_dmac_dmaca2_field_t DMACA2_f; + }; + union { + __IO uint32_t DMACB2; + stc_dmac_dmacb2_field_t DMACB2_f; + }; + __IO uint32_t DMACSA2; + __IO uint32_t DMACDA2; + union { + __IO uint32_t DMACA3; + stc_dmac_dmaca3_field_t DMACA3_f; + }; + union { + __IO uint32_t DMACB3; + stc_dmac_dmacb3_field_t DMACB3_f; + }; + __IO uint32_t DMACSA3; + __IO uint32_t DMACDA3; + union { + __IO uint32_t DMACA4; + stc_dmac_dmaca4_field_t DMACA4_f; + }; + union { + __IO uint32_t DMACB4; + stc_dmac_dmacb4_field_t DMACB4_f; + }; + __IO uint32_t DMACSA4; + __IO uint32_t DMACDA4; + union { + __IO uint32_t DMACA5; + stc_dmac_dmaca5_field_t DMACA5_f; + }; + union { + __IO uint32_t DMACB5; + stc_dmac_dmacb5_field_t DMACB5_f; + }; + __IO uint32_t DMACSA5; + __IO uint32_t DMACDA5; + union { + __IO uint32_t DMACA6; + stc_dmac_dmaca6_field_t DMACA6_f; + }; + union { + __IO uint32_t DMACB6; + stc_dmac_dmacb6_field_t DMACB6_f; + }; + __IO uint32_t DMACSA6; + __IO uint32_t DMACDA6; + union { + __IO uint32_t DMACA7; + stc_dmac_dmaca7_field_t DMACA7_f; + }; + union { + __IO uint32_t DMACB7; + stc_dmac_dmacb7_field_t DMACB7_f; + }; + __IO uint32_t DMACSA7; + __IO uint32_t DMACDA7; +}FM3_DMAC_TypeDef; + +/****************************************************************************** + * ETHERNET_MAC_MODULE + ******************************************************************************/ +/* ETHERNET-MAC registers */ +typedef struct +{ + union { + __IO uint32_t MCR; + stc_ethernet_mac_mcr_field_t MCR_f; + }; + union { + __IO uint32_t MFFR; + stc_ethernet_mac_mffr_field_t MFFR_f; + }; + union { + __IO uint32_t MHTRH; + stc_ethernet_mac_mhtrh_field_t MHTRH_f; + }; + union { + __IO uint32_t MHTRL; + stc_ethernet_mac_mhtrl_field_t MHTRL_f; + }; + union { + __IO uint32_t GAR; + stc_ethernet_mac_gar_field_t GAR_f; + }; + union { + __IO uint32_t GDR; + stc_ethernet_mac_gdr_field_t GDR_f; + }; + union { + __IO uint32_t FCR; + stc_ethernet_mac_fcr_field_t FCR_f; + }; + union { + __IO uint32_t VTR; + stc_ethernet_mac_vtr_field_t VTR_f; + }; + uint8_t RESERVED0[8]; + union { + __IO uint32_t RWFFR; + stc_ethernet_mac_rwffr_field_t RWFFR_f; + }; + union { + __IO uint32_t PMTR; + stc_ethernet_mac_pmtr_field_t PMTR_f; + }; + union { + __IO uint32_t LPICSR; + stc_ethernet_mac_lpicsr_field_t LPICSR_f; + }; + union { + __IO uint32_t LPITCR; + stc_ethernet_mac_lpitcr_field_t LPITCR_f; + }; + union { + __IO uint32_t ISR; + stc_ethernet_mac_isr_field_t ISR_f; + }; + union { + __IO uint32_t IMR; + stc_ethernet_mac_imr_field_t IMR_f; + }; + union { + __IO uint32_t MAR0H; + stc_ethernet_mac_mar0h_field_t MAR0H_f; + }; + union { + __IO uint32_t MAR0L; + stc_ethernet_mac_mar0l_field_t MAR0L_f; + }; + union { + __IO uint32_t MAR1H; + stc_ethernet_mac_mar1h_field_t MAR1H_f; + }; + union { + __IO uint32_t MAR1L; + stc_ethernet_mac_mar1l_field_t MAR1L_f; + }; + union { + __IO uint32_t MAR2H; + stc_ethernet_mac_mar2h_field_t MAR2H_f; + }; + union { + __IO uint32_t MAR2L; + stc_ethernet_mac_mar2l_field_t MAR2L_f; + }; + union { + __IO uint32_t MAR3H; + stc_ethernet_mac_mar3h_field_t MAR3H_f; + }; + union { + __IO uint32_t MAR3L; + stc_ethernet_mac_mar3l_field_t MAR3L_f; + }; + union { + __IO uint32_t MAR4H; + stc_ethernet_mac_mar4h_field_t MAR4H_f; + }; + union { + __IO uint32_t MAR4L; + stc_ethernet_mac_mar4l_field_t MAR4L_f; + }; + union { + __IO uint32_t MAR5H; + stc_ethernet_mac_mar5h_field_t MAR5H_f; + }; + union { + __IO uint32_t MAR5L; + stc_ethernet_mac_mar5l_field_t MAR5L_f; + }; + union { + __IO uint32_t MAR6H; + stc_ethernet_mac_mar6h_field_t MAR6H_f; + }; + union { + __IO uint32_t MAR6L; + stc_ethernet_mac_mar6l_field_t MAR6L_f; + }; + union { + __IO uint32_t MAR7H; + stc_ethernet_mac_mar7h_field_t MAR7H_f; + }; + union { + __IO uint32_t MAR7L; + stc_ethernet_mac_mar7l_field_t MAR7L_f; + }; + union { + __IO uint32_t MAR8H; + stc_ethernet_mac_mar8h_field_t MAR8H_f; + }; + union { + __IO uint32_t MAR8L; + stc_ethernet_mac_mar8l_field_t MAR8L_f; + }; + union { + __IO uint32_t MAR9H; + stc_ethernet_mac_mar9h_field_t MAR9H_f; + }; + union { + __IO uint32_t MAR9L; + stc_ethernet_mac_mar9l_field_t MAR9L_f; + }; + union { + __IO uint32_t MAR10H; + stc_ethernet_mac_mar10h_field_t MAR10H_f; + }; + union { + __IO uint32_t MAR10L; + stc_ethernet_mac_mar10l_field_t MAR10L_f; + }; + union { + __IO uint32_t MAR11H; + stc_ethernet_mac_mar11h_field_t MAR11H_f; + }; + union { + __IO uint32_t MAR11L; + stc_ethernet_mac_mar11l_field_t MAR11L_f; + }; + union { + __IO uint32_t MAR12H; + stc_ethernet_mac_mar12h_field_t MAR12H_f; + }; + union { + __IO uint32_t MAR12L; + stc_ethernet_mac_mar12l_field_t MAR12L_f; + }; + union { + __IO uint32_t MAR13H; + stc_ethernet_mac_mar13h_field_t MAR13H_f; + }; + union { + __IO uint32_t MAR13L; + stc_ethernet_mac_mar13l_field_t MAR13L_f; + }; + union { + __IO uint32_t MAR14H; + stc_ethernet_mac_mar14h_field_t MAR14H_f; + }; + union { + __IO uint32_t MAR14L; + stc_ethernet_mac_mar14l_field_t MAR14L_f; + }; + union { + __IO uint32_t MAR15H; + stc_ethernet_mac_mar15h_field_t MAR15H_f; + }; + union { + __IO uint32_t MAR15L; + stc_ethernet_mac_mar15l_field_t MAR15L_f; + }; + uint8_t RESERVED1[24]; + union { + __IO uint32_t RGSR; + stc_ethernet_mac_rgsr_field_t RGSR_f; + }; + uint8_t RESERVED2[36]; + __IO uint32_t mmc_cntl; + __IO uint32_t mmc_intr_rx; + __IO uint32_t mmc_intr_tx; + __IO uint32_t mmc_intr_mask_rx; + __IO uint32_t mmc_intr_mask_tx; + __IO uint32_t txoctetcount_gb; + __IO uint32_t txframecount_gb; + __IO uint32_t txbroadcastframes_g; + __IO uint32_t txmulticastframes_g; + __IO uint32_t tx64octets_gb; + __IO uint32_t tx65to127octets_gb; + __IO uint32_t tx128to255octets_gb; + __IO uint32_t tx256to511octets_gb; + __IO uint32_t tx512to1023octets_gb; + __IO uint32_t tx1024tomaxoctets_gb; + __IO uint32_t txunicastframes_gb; + __IO uint32_t txmulticastframes_gb; + __IO uint32_t txbroadcastframes_gb; + __IO uint32_t txunderflowerror; + __IO uint32_t txsinglecol_g; + __IO uint32_t txmulticol_g; + __IO uint32_t txdeferred; + __IO uint32_t txlatecol; + __IO uint32_t txexesscol; + __IO uint32_t txcarriererror; + __IO uint32_t txoctetcount_g; + __IO uint32_t txframecount_g; + __IO uint32_t txexecessdef_g; + __IO uint32_t txpauseframes; + __IO uint32_t txvlanframes_g; + uint8_t RESERVED3[8]; + __IO uint32_t rxframecount_gb; + __IO uint32_t rxoctetcount_gb; + __IO uint32_t rxoctetcount_g; + __IO uint32_t rxbroadcastframes_g; + __IO uint32_t rxmulticastframes_g; + __IO uint32_t rxcrcerror; + __IO uint32_t rxallignmenterror; + __IO uint32_t rxrunterror; + __IO uint32_t rxjabbererror; + __IO uint32_t rxundersize_g; + __IO uint32_t rxoversize_g; + __IO uint32_t rx64octets_gb; + __IO uint32_t rx65to127octets_gb; + __IO uint32_t rx128to255octets_gb; + __IO uint32_t rx256to511octets_gb; + __IO uint32_t rx512to1023octets_gb; + __IO uint32_t rx1024tomaxoctets_gb; + __IO uint32_t rxunicastframes_g; + __IO uint32_t rxlengtherror; + __IO uint32_t rxoutofrangetype; + __IO uint32_t rxpauseframes; + __IO uint32_t rxfifooverflow; + __IO uint32_t rxvlanframes_gb; + __IO uint32_t rxwatchdogerror; + uint8_t RESERVED4[32]; + __IO uint32_t mmc_ipc_intr_mask_rx; + uint8_t RESERVED5[4]; + __IO uint32_t mmc_ipc_intr_rx; + uint8_t RESERVED6[4]; + __IO uint32_t rxipv4_gd_frms; + __IO uint32_t rxipv4_hdrerr_frms; + __IO uint32_t rxipv4_nopay_frms; + __IO uint32_t rxipv4_frag_frms; + __IO uint32_t rxipv4_udsbl_frms; + __IO uint32_t rxipv6_gd_frms; + __IO uint32_t rxipv6_hdrerr_frms; + __IO uint32_t rxipv6_nopay_frms; + __IO uint32_t rxudp_gd_frms; + __IO uint32_t rxudp_err_frms; + __IO uint32_t rxtcp_gd_frms; + __IO uint32_t rxtcp_err_frms; + __IO uint32_t rxicmp_gd_frms; + __IO uint32_t rxicmp_err_frms; + uint8_t RESERVED7[8]; + __IO uint32_t rxipv4_gd_octets; + __IO uint32_t rxipv4_hdrerr_octets; + __IO uint32_t rxipv4_nopay_octets; + __IO uint32_t rxipv4_frag_octets; + __IO uint32_t rxipv4_udsbl_octets; + __IO uint32_t rxipv6_gd_octets; + __IO uint32_t rxipv6_hdrerr_octets; + __IO uint32_t rxipv6_nopay_octets; + __IO uint32_t rxudp_gd_octets; + __IO uint32_t rxudp_err_octets; + __IO uint32_t rxtcp_gd_octets; + __IO uint32_t rxtcp_err_octets; + __IO uint32_t rxicmp_gd_octets; + __IO uint32_t rxicmp_err_octets; + uint8_t RESERVED8[1144]; + union { + __IO uint32_t TSCR; + stc_ethernet_mac_tscr_field_t TSCR_f; + }; + union { + __IO uint32_t SSIR; + stc_ethernet_mac_ssir_field_t SSIR_f; + }; + union { + __IO uint32_t STSR; + stc_ethernet_mac_stsr_field_t STSR_f; + }; + union { + __IO uint32_t STNR; + stc_ethernet_mac_stnr_field_t STNR_f; + }; + union { + __IO uint32_t STSUR; + stc_ethernet_mac_stsur_field_t STSUR_f; + }; + union { + __IO uint32_t STNUR; + stc_ethernet_mac_stnur_field_t STNUR_f; + }; + union { + __IO uint32_t TSAR; + stc_ethernet_mac_tsar_field_t TSAR_f; + }; + union { + __IO uint32_t TTSR; + stc_ethernet_mac_ttsr_field_t TTSR_f; + }; + union { + __IO uint32_t TTNR; + stc_ethernet_mac_ttnr_field_t TTNR_f; + }; + union { + __IO uint32_t STHWSR; + stc_ethernet_mac_sthwsr_field_t STHWSR_f; + }; + union { + __IO uint32_t TSR; + stc_ethernet_mac_tsr_field_t TSR_f; + }; + union { + __IO uint32_t PPSCR; + stc_ethernet_mac_ppscr_field_t PPSCR_f; + }; + union { + __IO uint32_t ATNR; + stc_ethernet_mac_atnr_field_t ATNR_f; + }; + union { + __IO uint32_t ATSR; + stc_ethernet_mac_atsr_field_t ATSR_f; + }; + uint8_t RESERVED9[200]; + union { + __IO uint32_t MAR16H; + stc_ethernet_mac_mar16h_field_t MAR16H_f; + }; + union { + __IO uint32_t MAR16L; + stc_ethernet_mac_mar16l_field_t MAR16L_f; + }; + union { + __IO uint32_t MAR17H; + stc_ethernet_mac_mar17h_field_t MAR17H_f; + }; + union { + __IO uint32_t MAR17L; + stc_ethernet_mac_mar17l_field_t MAR17L_f; + }; + union { + __IO uint32_t MAR18H; + stc_ethernet_mac_mar18h_field_t MAR18H_f; + }; + union { + __IO uint32_t MAR18L; + stc_ethernet_mac_mar18l_field_t MAR18L_f; + }; + union { + __IO uint32_t MAR19H; + stc_ethernet_mac_mar19h_field_t MAR19H_f; + }; + union { + __IO uint32_t MAR19L; + stc_ethernet_mac_mar19l_field_t MAR19L_f; + }; + union { + __IO uint32_t MAR20H; + stc_ethernet_mac_mar20h_field_t MAR20H_f; + }; + union { + __IO uint32_t MAR20L; + stc_ethernet_mac_mar20l_field_t MAR20L_f; + }; + union { + __IO uint32_t MAR21H; + stc_ethernet_mac_mar21h_field_t MAR21H_f; + }; + union { + __IO uint32_t MAR21L; + stc_ethernet_mac_mar21l_field_t MAR21L_f; + }; + union { + __IO uint32_t MAR22H; + stc_ethernet_mac_mar22h_field_t MAR22H_f; + }; + union { + __IO uint32_t MAR22L; + stc_ethernet_mac_mar22l_field_t MAR22L_f; + }; + union { + __IO uint32_t MAR23H; + stc_ethernet_mac_mar23h_field_t MAR23H_f; + }; + union { + __IO uint32_t MAR23L; + stc_ethernet_mac_mar23l_field_t MAR23L_f; + }; + union { + __IO uint32_t MAR24H; + stc_ethernet_mac_mar24h_field_t MAR24H_f; + }; + union { + __IO uint32_t MAR24L; + stc_ethernet_mac_mar24l_field_t MAR24L_f; + }; + union { + __IO uint32_t MAR25H; + stc_ethernet_mac_mar25h_field_t MAR25H_f; + }; + union { + __IO uint32_t MAR25L; + stc_ethernet_mac_mar25l_field_t MAR25L_f; + }; + union { + __IO uint32_t MAR26H; + stc_ethernet_mac_mar26h_field_t MAR26H_f; + }; + union { + __IO uint32_t MAR26L; + stc_ethernet_mac_mar26l_field_t MAR26L_f; + }; + union { + __IO uint32_t MAR27H; + stc_ethernet_mac_mar27h_field_t MAR27H_f; + }; + union { + __IO uint32_t MAR27L; + stc_ethernet_mac_mar27l_field_t MAR27L_f; + }; + union { + __IO uint32_t MAR28H; + stc_ethernet_mac_mar28h_field_t MAR28H_f; + }; + union { + __IO uint32_t MAR28L; + stc_ethernet_mac_mar28l_field_t MAR28L_f; + }; + union { + __IO uint32_t MAR29H; + stc_ethernet_mac_mar29h_field_t MAR29H_f; + }; + union { + __IO uint32_t MAR29L; + stc_ethernet_mac_mar29l_field_t MAR29L_f; + }; + union { + __IO uint32_t MAR30H; + stc_ethernet_mac_mar30h_field_t MAR30H_f; + }; + union { + __IO uint32_t MAR30L; + stc_ethernet_mac_mar30l_field_t MAR30L_f; + }; + union { + __IO uint32_t MAR31H; + stc_ethernet_mac_mar31h_field_t MAR31H_f; + }; + union { + __IO uint32_t MAR31L; + stc_ethernet_mac_mar31l_field_t MAR31L_f; + }; + uint8_t RESERVED10[1920]; + union { + __IO uint32_t BMR; + stc_ethernet_mac_bmr_field_t BMR_f; + }; + union { + __IO uint32_t TPDR; + stc_ethernet_mac_tpdr_field_t TPDR_f; + }; + union { + __IO uint32_t RPDR; + stc_ethernet_mac_rpdr_field_t RPDR_f; + }; + union { + __IO uint32_t RDLAR; + stc_ethernet_mac_rdlar_field_t RDLAR_f; + }; + union { + __IO uint32_t TDLAR; + stc_ethernet_mac_tdlar_field_t TDLAR_f; + }; + union { + __IO uint32_t SR; + stc_ethernet_mac_sr_field_t SR_f; + }; + union { + __IO uint32_t OMR; + stc_ethernet_mac_omr_field_t OMR_f; + }; + union { + __IO uint32_t IER; + stc_ethernet_mac_ier_field_t IER_f; + }; + union { + __IO uint32_t MFBOCR; + stc_ethernet_mac_mfbocr_field_t MFBOCR_f; + }; + union { + __IO uint32_t RIWTR; + stc_ethernet_mac_riwtr_field_t RIWTR_f; + }; + uint8_t RESERVED11[4]; + union { + __IO uint32_t AHBSR; + stc_ethernet_mac_ahbsr_field_t AHBSR_f; + }; + uint8_t RESERVED12[24]; + union { + __IO uint32_t CHTDR; + stc_ethernet_mac_chtdr_field_t CHTDR_f; + }; + union { + __IO uint32_t CHRDR; + stc_ethernet_mac_chrdr_field_t CHRDR_f; + }; + union { + __IO uint32_t CHTBAR; + stc_ethernet_mac_chtbar_field_t CHTBAR_f; + }; + union { + __IO uint32_t CHRBAR; + stc_ethernet_mac_chrbar_field_t CHRBAR_f; + }; +}FM3_ETHERNET_MAC_TypeDef; + +/* ETHERNET-CONTROL registers */ +typedef struct +{ + union { + __IO uint32_t ETH_MODE; + stc_ethernet_control_eth_mode_field_t ETH_MODE_f; + }; + uint8_t RESERVED1[4]; + union { + __IO uint32_t ETH_CLKG; + stc_ethernet_control_eth_clkg_field_t ETH_CLKG_f; + }; +}FM3_ETHERNET_CONTROL_TypeDef; + +/****************************************************************************** + * Peripheral memory map + ******************************************************************************/ +#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ +#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ +#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ + +#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ +#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ +#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ +#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ +#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ +#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ +#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ +#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ +#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ +#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ +#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ +#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define FM3_MFT2_FRT_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Free Running Timer registers */ +#define FM3_MFT2_OCU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Output Compare Unit registers */ +#define FM3_MFT2_WFG_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT2_ICU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Input Capture Unit registers */ +#define FM3_MFT2_ADCMP_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 ADC Start Compare Unit registers */ +#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ +#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ +#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ +#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ +#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ +#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ +#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ +#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ +#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ +#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ +#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ +#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ +#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ +#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ +#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ +#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ +#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ +#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ +#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ +#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ +#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ +#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ +#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ +#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ +#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ +#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ +#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ +#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ +#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ +#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ +#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ +#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ +#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ +#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ +#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ +#define FM3_BT8_PPG_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PPG registers */ +#define FM3_BT8_PWM_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWM registers */ +#define FM3_BT8_RT_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 RT registers */ +#define FM3_BT8_PWC_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWC registers */ +#define FM3_BT9_PPG_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PPG registers */ +#define FM3_BT9_PWM_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWM registers */ +#define FM3_BT9_RT_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 RT registers */ +#define FM3_BT9_PWC_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWC registers */ +#define FM3_BT10_PPG_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PPG registers */ +#define FM3_BT10_PWM_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWM registers */ +#define FM3_BT10_RT_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 RT registers */ +#define FM3_BT10_PWC_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWC registers */ +#define FM3_BT11_PPG_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PPG registers */ +#define FM3_BT11_PWM_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWM registers */ +#define FM3_BT11_RT_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 RT registers */ +#define FM3_BT11_PWC_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWC registers */ +#define FM3_BT12_PPG_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PPG registers */ +#define FM3_BT12_PWM_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWM registers */ +#define FM3_BT12_RT_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 RT registers */ +#define FM3_BT12_PWC_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWC registers */ +#define FM3_BT13_PPG_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PPG registers */ +#define FM3_BT13_PWM_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWM registers */ +#define FM3_BT13_RT_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 RT registers */ +#define FM3_BT13_PWC_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWC registers */ +#define FM3_BT14_PPG_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PPG registers */ +#define FM3_BT14_PWM_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWM registers */ +#define FM3_BT14_RT_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 RT registers */ +#define FM3_BT14_PWC_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWC registers */ +#define FM3_BT15_PPG_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PPG registers */ +#define FM3_BT15_PWM_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWM registers */ +#define FM3_BT15_RT_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 RT registers */ +#define FM3_BT15_PWC_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWC registers */ +#define FM3_BTIOSEL8B_BASE (FM3_PERIPH_BASE + 0x25500UL) /* Base Timer I/O selector channel 8 - channel 11 registers */ +#define FM3_BTIOSELCF_BASE (FM3_PERIPH_BASE + 0x25700UL) /* Base Timer I/O selector channel 12 - channel 15 registers */ +#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ +#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ +#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ +#define FM3_QPRC2_BASE (FM3_PERIPH_BASE + 0x26080UL) /* Quad position and revolution counter channel 2 registers */ +#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ +#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ +#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ +#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ +#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ +#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ +#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ +#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ +#define FM3_USBETHERNETCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ +#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ +#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ +#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ +#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ +#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ +#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ +#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ +#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ +#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ +#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ +#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ +#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ +#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ +#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ +#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ +#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ +#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ +#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ +#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ +#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ +#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ +#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ +#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ +#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ +#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ +#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ +#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ +#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ +#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ +#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ +#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ +#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ +#define FM3_MFS_NFC_BASE (FM3_PERIPH_BASE + 0x38800UL) /* MFS Noise Filter Control register */ +#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ +#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ +#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ +#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ +#define FM3_USB1_BASE (FM3_PERIPH_BASE + 0x52100UL) /* USB channel 1 registers */ +#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ +#define FM3_ETHERNET_MAC0_BASE (FM3_PERIPH_BASE + 0x64000UL) /* Ethernet MAC 0 registers */ +#define FM3_ETHERNET_CONTROL_BASE (FM3_PERIPH_BASE + 0x66000UL) /* Ethernet MAC control registers */ +#define FM3_ETHERNET_MAC1_BASE (FM3_PERIPH_BASE + 0x67000UL) /* Ethernet MAC 1 registers */ + +/****************************************************************************** + * Peripheral declaration + ******************************************************************************/ +#define FM3_FLASH_IF ((FM3_FLASH_IF_TypeDef *)FM3_FLASH_IF_BASE) +#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) +#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) +#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) +#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) +#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) +#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) +#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) +#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) +#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) +#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) +#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) +#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) +#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) +#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) +#define FM3_MFT2_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT2_FRT_BASE) +#define FM3_MFT2_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT2_OCU_BASE) +#define FM3_MFT2_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT2_WFG_BASE) +#define FM3_MFT2_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT2_ICU_BASE) +#define FM3_MFT2_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT2_ADCMP_BASE) +#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) +#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) +#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) +#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) +#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) +#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) +#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) +#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) +#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) +#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) +#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) +#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) +#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) +#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) +#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) +#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) +#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) +#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) +#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) +#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) +#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) +#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) +#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) +#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) +#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) +#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) +#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) +#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) +#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) +#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) +#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) +#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) +#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) +#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) +#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) +#define FM3_BT8_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT8_PPG_BASE) +#define FM3_BT8_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT8_PWM_BASE) +#define FM3_BT8_RT ((FM3_BT_RT_TypeDef *)FM3_BT8_RT_BASE) +#define FM3_BT8_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT8_PWC_BASE) +#define FM3_BT9_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT9_PPG_BASE) +#define FM3_BT9_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT9_PWM_BASE) +#define FM3_BT9_RT ((FM3_BT_RT_TypeDef *)FM3_BT9_RT_BASE) +#define FM3_BT9_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT9_PWC_BASE) +#define FM3_BT10_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT10_PPG_BASE) +#define FM3_BT10_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT10_PWM_BASE) +#define FM3_BT10_RT ((FM3_BT_RT_TypeDef *)FM3_BT10_RT_BASE) +#define FM3_BT10_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT10_PWC_BASE) +#define FM3_BT11_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT11_PPG_BASE) +#define FM3_BT11_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT11_PWM_BASE) +#define FM3_BT11_RT ((FM3_BT_RT_TypeDef *)FM3_BT11_RT_BASE) +#define FM3_BT11_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT11_PWC_BASE) +#define FM3_BT12_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT12_PPG_BASE) +#define FM3_BT12_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT12_PWM_BASE) +#define FM3_BT12_RT ((FM3_BT_RT_TypeDef *)FM3_BT12_RT_BASE) +#define FM3_BT12_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT12_PWC_BASE) +#define FM3_BT13_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT13_PPG_BASE) +#define FM3_BT13_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT13_PWM_BASE) +#define FM3_BT13_RT ((FM3_BT_RT_TypeDef *)FM3_BT13_RT_BASE) +#define FM3_BT13_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT13_PWC_BASE) +#define FM3_BT14_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT14_PPG_BASE) +#define FM3_BT14_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT14_PWM_BASE) +#define FM3_BT14_RT ((FM3_BT_RT_TypeDef *)FM3_BT14_RT_BASE) +#define FM3_BT14_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT14_PWC_BASE) +#define FM3_BT15_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT15_PPG_BASE) +#define FM3_BT15_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT15_PWM_BASE) +#define FM3_BT15_RT ((FM3_BT_RT_TypeDef *)FM3_BT15_RT_BASE) +#define FM3_BT15_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT15_PWC_BASE) +#define FM3_BTIOSEL8B ((FM3_BTIOSEL8B_TypeDef *)FM3_BTIOSEL8B_BASE) +#define FM3_BTIOSELCF ((FM3_BTIOSELCF_TypeDef *)FM3_BTIOSELCF_BASE) +#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) +#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) +#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) +#define FM3_QPRC3 ((FM3_QPRC_TypeDef *)FM3_QPRC2_BASE) +#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) +#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) +#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) +#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) +#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) +#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) +#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) +#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) +#define FM3_USBETHERNETCLK ((FM3_USBETHERNETCLK_TypeDef *)FM3_USBETHERNETCLK_BASE) +#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) +#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) +#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) +#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) +#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) +#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) +#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) +#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) +#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) +#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) +#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) +#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) +#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) +#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) +#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) +#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) +#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) +#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) +#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) +#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) +#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) +#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) +#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) +#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) +#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) +#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) +#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) +#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) +#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) +#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) +#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) +#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) +#define FM3_MFS_NFC ((FM3_MFS_NFC_TypeDef *)FM3_MFS_NFC_BASE) +#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) +#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) +#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) +#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) +#define FM3_USB1 ((FM3_USB_TypeDef *)FM3_USB1_BASE) +#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) +#define FM3_ETHERNET_MAC0 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC0_BASE) +#define FM3_ETHERNET_CONTROL ((FM3_ETHERNET_CONTROL_TypeDef *)FM3_ETHERNET_CONTROL_BASE) +#define FM3_ETHERNET_MAC1 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC1_BASE) + +/****************************************************************************** + * Peripheral Bit Band Alias declaration + ******************************************************************************/ + +/* Flash interface registers */ +#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) +#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) +#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) +#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) +#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) +#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) +#define bFM3_FLASH_IF_FSTR_EER *((volatile unsigned int*)(0x42000108UL)) +#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) +#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) +#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) + +/* Clock and reset registers */ +#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) +#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) +#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) +#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) +#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) +#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) +#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) +#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) +#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) +#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) +#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) +#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) +#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) +#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) +#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) +#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) +#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) +#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) +#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) +#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) +#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) +#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) +#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) +#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) +#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) +#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) +#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) +#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) +#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) +#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) +#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) +#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) +#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) +#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) +#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) +#define bFM3_CRG_TTC_PSR_TTC0 *((volatile unsigned int*)(0x42200500UL)) +#define bFM3_CRG_TTC_PSR_TTC1 *((volatile unsigned int*)(0x42200504UL)) +#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) +#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) +#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) +#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) +#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) +#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) +#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) +#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) +#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) +#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) +#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) +#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) +#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) +#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) +#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) +#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) +#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) +#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) +#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) +#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) +#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) +#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) +#define bFM3_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) +#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) +#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) +#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) +#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) +#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) +#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) +#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) +#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) +#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) +#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) +#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) +#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) +#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) +#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) +#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) +#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) +#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) +#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) +#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) +#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) +#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) +#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) +#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) + +/* Hardware watchdog registers */ +#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) +#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) +#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) + +/* Software watchdog registers */ +#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) +#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) +#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) + +/* Dual timer 1/2 registers */ +#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) +#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) +#define bFM3_DTIM_TIMER1RIS_TIMER1RIS *((volatile unsigned int*)(0x422A0200UL)) +#define bFM3_DTIM_TIMER1MIS_TIMER1MIS *((volatile unsigned int*)(0x422A0280UL)) +#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) +#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) +#define bFM3_DTIM_TIMER2RIS_TIMER2RIS *((volatile unsigned int*)(0x422A0600UL)) +#define bFM3_DTIM_TIMER2MIS_TIMER2MIS *((volatile unsigned int*)(0x422A0680UL)) + +/* Multifunction Timer unit 0 Free Running Timer registers */ +#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) +#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) +#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) +#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) +#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) +#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) +#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) +#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) +#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) +#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) +#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) +#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) +#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) +#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) +#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) +#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) +#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) +#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) +#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) +#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) +#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) +#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) +#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) +#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) +#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) +#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) +#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) +#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) +#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) +#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) +#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) + +/* Multifunction Timer unit 0 Output Compare Unit registers */ +#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) +#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) +#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) +#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) +#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) +#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) +#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) +#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) +#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) +#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) +#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) +#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) +#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) +#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) +#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) +#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) +#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) +#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) +#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) +#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) +#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) +#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) +#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) +#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) +#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) +#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) + +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) +#define bFM3_MFT0_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4240118CUL)) +#define bFM3_MFT0_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42401190UL)) +#define bFM3_MFT0_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42401194UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) +#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) +#define bFM3_MFT0_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4240120CUL)) +#define bFM3_MFT0_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42401210UL)) +#define bFM3_MFT0_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42401214UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) +#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) +#define bFM3_MFT0_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4240128CUL)) +#define bFM3_MFT0_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42401290UL)) +#define bFM3_MFT0_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42401294UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) +#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) +#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) +#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) +#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) +#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) +#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) +#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) +#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) +#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) + +/* Multifunction Timer unit 0 Input Capture Unit registers */ +#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) +#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) +#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) +#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) +#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) +#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) +#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) +#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) +#define bFM3_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42400F18UL)) +#define bFM3_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42400F1CUL)) +#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) +#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) +#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) +#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) +#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) +#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) +#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) +#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) +#define bFM3_MFT0_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42400F98UL)) +#define bFM3_MFT0_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42400F9CUL)) +#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) +#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) + +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) +#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) + +/* Multifunction Timer unit 1 Free Running Timer registers */ +#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) +#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) +#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) +#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) +#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) +#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) +#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) +#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) +#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) +#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) +#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) +#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) +#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) +#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) +#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) +#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) +#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) +#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) +#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) +#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) +#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) +#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) +#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) +#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) +#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) +#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) +#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) +#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) +#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) +#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) +#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) + +/* Multifunction Timer unit 1 Output Compare Unit registers */ +#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) +#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) +#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) +#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) +#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) +#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) +#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) +#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) +#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) +#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) +#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) +#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) +#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) +#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) +#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) +#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) +#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) +#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) +#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) +#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) +#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) +#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) +#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) +#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) +#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) +#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) + +/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) +#define bFM3_MFT1_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4242118CUL)) +#define bFM3_MFT1_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42421190UL)) +#define bFM3_MFT1_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42421194UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) +#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) +#define bFM3_MFT1_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4242120CUL)) +#define bFM3_MFT1_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42421210UL)) +#define bFM3_MFT1_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42421214UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) +#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) +#define bFM3_MFT1_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4242128CUL)) +#define bFM3_MFT1_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42421290UL)) +#define bFM3_MFT1_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42421294UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) +#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) +#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) +#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) +#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) +#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) +#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) +#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) +#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) +#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) + +/* Multifunction Timer unit 1 Input Capture Unit registers */ +#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) +#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) +#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) +#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) +#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) +#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) +#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) +#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) +#define bFM3_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42420F18UL)) +#define bFM3_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42420F1CUL)) +#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) +#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) +#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) +#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) +#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) +#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) +#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) +#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) +#define bFM3_MFT1_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42420F98UL)) +#define bFM3_MFT1_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42420F9CUL)) +#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) +#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) + +/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) +#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) + +/* Multifunction Timer unit 2 Free Running Timer registers */ +#define bFM3_MFT2_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42440600UL)) +#define bFM3_MFT2_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42440604UL)) +#define bFM3_MFT2_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42440608UL)) +#define bFM3_MFT2_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4244060CUL)) +#define bFM3_MFT2_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42440610UL)) +#define bFM3_MFT2_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42440614UL)) +#define bFM3_MFT2_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42440618UL)) +#define bFM3_MFT2_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4244061CUL)) +#define bFM3_MFT2_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42440620UL)) +#define bFM3_MFT2_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42440624UL)) +#define bFM3_MFT2_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42440634UL)) +#define bFM3_MFT2_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42440638UL)) +#define bFM3_MFT2_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4244063CUL)) +#define bFM3_MFT2_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42440680UL)) +#define bFM3_MFT2_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42440684UL)) +#define bFM3_MFT2_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42440688UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42440800UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42440804UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42440808UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4244080CUL)) +#define bFM3_MFT2_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42440810UL)) +#define bFM3_MFT2_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42440814UL)) +#define bFM3_MFT2_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42440818UL)) +#define bFM3_MFT2_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4244081CUL)) +#define bFM3_MFT2_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42440820UL)) +#define bFM3_MFT2_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42440824UL)) +#define bFM3_MFT2_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42440834UL)) +#define bFM3_MFT2_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42440838UL)) +#define bFM3_MFT2_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4244083CUL)) +#define bFM3_MFT2_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42440880UL)) +#define bFM3_MFT2_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42440884UL)) +#define bFM3_MFT2_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42440888UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42440A00UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42440A04UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42440A08UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42440A0CUL)) +#define bFM3_MFT2_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42440A10UL)) +#define bFM3_MFT2_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42440A14UL)) +#define bFM3_MFT2_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42440A18UL)) +#define bFM3_MFT2_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42440A1CUL)) +#define bFM3_MFT2_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42440A20UL)) +#define bFM3_MFT2_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42440A24UL)) +#define bFM3_MFT2_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42440A34UL)) +#define bFM3_MFT2_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42440A38UL)) +#define bFM3_MFT2_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42440A3CUL)) +#define bFM3_MFT2_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42440A80UL)) +#define bFM3_MFT2_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42440A84UL)) +#define bFM3_MFT2_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42440A88UL)) + +/* Multifunction Timer unit 2 Output Compare Unit registers */ +#define bFM3_MFT2_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42440300UL)) +#define bFM3_MFT2_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42440304UL)) +#define bFM3_MFT2_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42440308UL)) +#define bFM3_MFT2_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4244030CUL)) +#define bFM3_MFT2_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42440310UL)) +#define bFM3_MFT2_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42440314UL)) +#define bFM3_MFT2_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42440318UL)) +#define bFM3_MFT2_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4244031CUL)) +#define bFM3_MFT2_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42440320UL)) +#define bFM3_MFT2_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42440324UL)) +#define bFM3_MFT2_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42440330UL)) +#define bFM3_MFT2_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42440334UL)) +#define bFM3_MFT2_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42440338UL)) +#define bFM3_MFT2_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42440380UL)) +#define bFM3_MFT2_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42440384UL)) +#define bFM3_MFT2_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42440388UL)) +#define bFM3_MFT2_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4244038CUL)) +#define bFM3_MFT2_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42440390UL)) +#define bFM3_MFT2_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42440394UL)) +#define bFM3_MFT2_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42440398UL)) +#define bFM3_MFT2_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4244039CUL)) +#define bFM3_MFT2_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424403A0UL)) +#define bFM3_MFT2_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424403A4UL)) +#define bFM3_MFT2_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424403B0UL)) +#define bFM3_MFT2_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424403B4UL)) +#define bFM3_MFT2_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424403B8UL)) +#define bFM3_MFT2_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42440400UL)) +#define bFM3_MFT2_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42440404UL)) +#define bFM3_MFT2_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42440408UL)) +#define bFM3_MFT2_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4244040CUL)) +#define bFM3_MFT2_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42440410UL)) +#define bFM3_MFT2_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42440414UL)) +#define bFM3_MFT2_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42440418UL)) +#define bFM3_MFT2_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4244041CUL)) +#define bFM3_MFT2_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42440420UL)) +#define bFM3_MFT2_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42440424UL)) +#define bFM3_MFT2_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42440430UL)) +#define bFM3_MFT2_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42440434UL)) +#define bFM3_MFT2_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42440438UL)) +#define bFM3_MFT2_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424404A0UL)) +#define bFM3_MFT2_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424404A4UL)) +#define bFM3_MFT2_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424404A8UL)) +#define bFM3_MFT2_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424404ACUL)) +#define bFM3_MFT2_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424404B0UL)) +#define bFM3_MFT2_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424404B4UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42440B00UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42440B04UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42440B08UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42440B0CUL)) +#define bFM3_MFT2_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42440B10UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42440B14UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42440B18UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42440B1CUL)) +#define bFM3_MFT2_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42440B20UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42440B24UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42440B28UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42440B2CUL)) +#define bFM3_MFT2_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42440B30UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42440B34UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42440B38UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42440B3CUL)) +#define bFM3_MFT2_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42440B80UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42440B84UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42440B88UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42440B8CUL)) +#define bFM3_MFT2_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42440B90UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42440B94UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42440B98UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42440B9CUL)) + +/* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT2_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42441180UL)) +#define bFM3_MFT2_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42441184UL)) +#define bFM3_MFT2_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42441188UL)) +#define bFM3_MFT2_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4244118CUL)) +#define bFM3_MFT2_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42441190UL)) +#define bFM3_MFT2_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42441194UL)) +#define bFM3_MFT2_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42441198UL)) +#define bFM3_MFT2_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4244119CUL)) +#define bFM3_MFT2_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424411A0UL)) +#define bFM3_MFT2_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424411A4UL)) +#define bFM3_MFT2_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424411A8UL)) +#define bFM3_MFT2_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424411ACUL)) +#define bFM3_MFT2_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424411B0UL)) +#define bFM3_MFT2_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42441200UL)) +#define bFM3_MFT2_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42441204UL)) +#define bFM3_MFT2_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42441208UL)) +#define bFM3_MFT2_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4244120CUL)) +#define bFM3_MFT2_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42441210UL)) +#define bFM3_MFT2_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42441214UL)) +#define bFM3_MFT2_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42441218UL)) +#define bFM3_MFT2_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4244121CUL)) +#define bFM3_MFT2_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42441220UL)) +#define bFM3_MFT2_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42441224UL)) +#define bFM3_MFT2_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42441228UL)) +#define bFM3_MFT2_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4244122CUL)) +#define bFM3_MFT2_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42441230UL)) +#define bFM3_MFT2_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42441280UL)) +#define bFM3_MFT2_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42441284UL)) +#define bFM3_MFT2_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42441288UL)) +#define bFM3_MFT2_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4244128CUL)) +#define bFM3_MFT2_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42441290UL)) +#define bFM3_MFT2_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42441294UL)) +#define bFM3_MFT2_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42441298UL)) +#define bFM3_MFT2_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4244129CUL)) +#define bFM3_MFT2_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424412A0UL)) +#define bFM3_MFT2_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424412A4UL)) +#define bFM3_MFT2_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424412A8UL)) +#define bFM3_MFT2_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424412ACUL)) +#define bFM3_MFT2_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424412B0UL)) +#define bFM3_MFT2_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42441300UL)) +#define bFM3_MFT2_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42441304UL)) +#define bFM3_MFT2_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42441310UL)) +#define bFM3_MFT2_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42441314UL)) +#define bFM3_MFT2_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42441318UL)) +#define bFM3_MFT2_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4244131CUL)) +#define bFM3_MFT2_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42441320UL)) +#define bFM3_MFT2_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42441324UL)) +#define bFM3_MFT2_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42441328UL)) +#define bFM3_MFT2_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4244132CUL)) +#define bFM3_MFT2_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42441330UL)) +#define bFM3_MFT2_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42441334UL)) +#define bFM3_MFT2_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42441338UL)) +#define bFM3_MFT2_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4244133CUL)) +#define bFM3_MFT2_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42441380UL)) +#define bFM3_MFT2_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42441384UL)) +#define bFM3_MFT2_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42441388UL)) +#define bFM3_MFT2_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4244138CUL)) +#define bFM3_MFT2_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42441390UL)) + +/* Multifunction Timer unit 2 Input Capture Unit registers */ +#define bFM3_MFT2_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42440C00UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42440C04UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42440C08UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42440C0CUL)) +#define bFM3_MFT2_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42440C10UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42440C14UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42440C18UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42440C1CUL)) +#define bFM3_MFT2_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42440C20UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42440C24UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42440C28UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42440C2CUL)) +#define bFM3_MFT2_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42440C30UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42440C34UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42440C38UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42440C3CUL)) +#define bFM3_MFT2_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42440F00UL)) +#define bFM3_MFT2_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42440F04UL)) +#define bFM3_MFT2_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42440F08UL)) +#define bFM3_MFT2_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42440F0CUL)) +#define bFM3_MFT2_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42440F10UL)) +#define bFM3_MFT2_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42440F14UL)) +#define bFM3_MFT2_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42440F18UL)) +#define bFM3_MFT2_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42440F1CUL)) +#define bFM3_MFT2_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42440F20UL)) +#define bFM3_MFT2_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42440F24UL)) +#define bFM3_MFT2_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42440F80UL)) +#define bFM3_MFT2_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42440F84UL)) +#define bFM3_MFT2_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42440F88UL)) +#define bFM3_MFT2_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42440F8CUL)) +#define bFM3_MFT2_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42440F90UL)) +#define bFM3_MFT2_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42440F94UL)) +#define bFM3_MFT2_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42440F98UL)) +#define bFM3_MFT2_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42440F9CUL)) +#define bFM3_MFT2_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42440FA0UL)) +#define bFM3_MFT2_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42440FA4UL)) + +/* Multifunction Timer unit 2 ADC Start Compare Unit registers */ +#define bFM3_MFT2_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42441700UL)) +#define bFM3_MFT2_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42441704UL)) +#define bFM3_MFT2_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42441708UL)) +#define bFM3_MFT2_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42441710UL)) +#define bFM3_MFT2_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42441714UL)) +#define bFM3_MFT2_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42441718UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42441780UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42441784UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42441788UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4244178CUL)) +#define bFM3_MFT2_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42441790UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42441794UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424417A0UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424417A4UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424417A8UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424417ACUL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424417B0UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424417B4UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42441800UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42441804UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42441808UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4244180CUL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42441810UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42441814UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42441820UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42441824UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42441828UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4244182CUL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42441830UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42441834UL)) + +/* Multifunction Timer PPG registers */ +#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) +#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) +#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) +#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) +#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) +#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) +#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) +#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) +#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) +#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) +#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) +#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) +#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) +#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) +#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) +#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) +#define bFM3_MFT_PPG_TTCR2_STR2 *((volatile unsigned int*)(0x42480820UL)) +#define bFM3_MFT_PPG_TTCR2_MONI2 *((volatile unsigned int*)(0x42480824UL)) +#define bFM3_MFT_PPG_TTCR2_CS20 *((volatile unsigned int*)(0x42480828UL)) +#define bFM3_MFT_PPG_TTCR2_CS21 *((volatile unsigned int*)(0x4248082CUL)) +#define bFM3_MFT_PPG_TTCR2_TRG16O *((volatile unsigned int*)(0x42480830UL)) +#define bFM3_MFT_PPG_TTCR2_TRG18O *((volatile unsigned int*)(0x42480834UL)) +#define bFM3_MFT_PPG_TTCR2_TRG20O *((volatile unsigned int*)(0x42480838UL)) +#define bFM3_MFT_PPG_TTCR2_TRG22O *((volatile unsigned int*)(0x4248083CUL)) +#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) +#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) +#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) +#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) +#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) +#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) +#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) +#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) +#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) +#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) +#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) +#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) +#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) +#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) +#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) +#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) +#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) +#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) +#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) +#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) +#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) +#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) +#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) +#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) +#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) +#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) +#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) +#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) +#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) +#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) +#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) +#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) +#define bFM3_MFT_PPG_TRG1_PEN16 *((volatile unsigned int*)(0x42482800UL)) +#define bFM3_MFT_PPG_TRG1_PEN17 *((volatile unsigned int*)(0x42482804UL)) +#define bFM3_MFT_PPG_TRG1_PEN18 *((volatile unsigned int*)(0x42482808UL)) +#define bFM3_MFT_PPG_TRG1_PEN19 *((volatile unsigned int*)(0x4248280CUL)) +#define bFM3_MFT_PPG_TRG1_PEN20 *((volatile unsigned int*)(0x42482810UL)) +#define bFM3_MFT_PPG_TRG1_PEN21 *((volatile unsigned int*)(0x42482814UL)) +#define bFM3_MFT_PPG_TRG1_PEN22 *((volatile unsigned int*)(0x42482818UL)) +#define bFM3_MFT_PPG_TRG1_PEN23 *((volatile unsigned int*)(0x4248281CUL)) +#define bFM3_MFT_PPG_REVC1_REV16 *((volatile unsigned int*)(0x42482880UL)) +#define bFM3_MFT_PPG_REVC1_REV17 *((volatile unsigned int*)(0x42482884UL)) +#define bFM3_MFT_PPG_REVC1_REV18 *((volatile unsigned int*)(0x42482888UL)) +#define bFM3_MFT_PPG_REVC1_REV19 *((volatile unsigned int*)(0x4248288CUL)) +#define bFM3_MFT_PPG_REVC1_REV20 *((volatile unsigned int*)(0x42482890UL)) +#define bFM3_MFT_PPG_REVC1_REV21 *((volatile unsigned int*)(0x42482894UL)) +#define bFM3_MFT_PPG_REVC1_REV22 *((volatile unsigned int*)(0x42482898UL)) +#define bFM3_MFT_PPG_REVC1_REV23 *((volatile unsigned int*)(0x4248289CUL)) +#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) +#define bFM3_MFT_PPG_PPGC1_MD0 *((volatile unsigned int*)(0x42484004UL)) +#define bFM3_MFT_PPG_PPGC1_MD1 *((volatile unsigned int*)(0x42484008UL)) +#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) +#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) +#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) +#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) +#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) +#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) +#define bFM3_MFT_PPG_PPGC0_MD0 *((volatile unsigned int*)(0x42484024UL)) +#define bFM3_MFT_PPG_PPGC0_MD1 *((volatile unsigned int*)(0x42484028UL)) +#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) +#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) +#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) +#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) +#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) +#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) +#define bFM3_MFT_PPG_PPGC3_MD0 *((volatile unsigned int*)(0x42484084UL)) +#define bFM3_MFT_PPG_PPGC3_MD1 *((volatile unsigned int*)(0x42484088UL)) +#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) +#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) +#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) +#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) +#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) +#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) +#define bFM3_MFT_PPG_PPGC2_MD0 *((volatile unsigned int*)(0x424840A4UL)) +#define bFM3_MFT_PPG_PPGC2_MD1 *((volatile unsigned int*)(0x424840A8UL)) +#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) +#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) +#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) +#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) +#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) +#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) +#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) +#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) +#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) +#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) +#define bFM3_MFT_PPG_PPGC5_MD0 *((volatile unsigned int*)(0x42484804UL)) +#define bFM3_MFT_PPG_PPGC5_MD1 *((volatile unsigned int*)(0x42484808UL)) +#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) +#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) +#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) +#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) +#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) +#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) +#define bFM3_MFT_PPG_PPGC4_MD0 *((volatile unsigned int*)(0x42484824UL)) +#define bFM3_MFT_PPG_PPGC4_MD1 *((volatile unsigned int*)(0x42484828UL)) +#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) +#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) +#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) +#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) +#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) +#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) +#define bFM3_MFT_PPG_PPGC7_MD0 *((volatile unsigned int*)(0x42484884UL)) +#define bFM3_MFT_PPG_PPGC7_MD1 *((volatile unsigned int*)(0x42484888UL)) +#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) +#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) +#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) +#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) +#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) +#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) +#define bFM3_MFT_PPG_PPGC6_MD0 *((volatile unsigned int*)(0x424848A4UL)) +#define bFM3_MFT_PPG_PPGC6_MD1 *((volatile unsigned int*)(0x424848A8UL)) +#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) +#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) +#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) +#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) +#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) +#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) +#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) +#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) +#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) +#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) +#define bFM3_MFT_PPG_PPGC9_MD0 *((volatile unsigned int*)(0x42485004UL)) +#define bFM3_MFT_PPG_PPGC9_MD1 *((volatile unsigned int*)(0x42485008UL)) +#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) +#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) +#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) +#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) +#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) +#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) +#define bFM3_MFT_PPG_PPGC8_MD0 *((volatile unsigned int*)(0x42485024UL)) +#define bFM3_MFT_PPG_PPGC8_MD1 *((volatile unsigned int*)(0x42485028UL)) +#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) +#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) +#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) +#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) +#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) +#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) +#define bFM3_MFT_PPG_PPGC11_MD0 *((volatile unsigned int*)(0x42485084UL)) +#define bFM3_MFT_PPG_PPGC11_MD1 *((volatile unsigned int*)(0x42485088UL)) +#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) +#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) +#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) +#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) +#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) +#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) +#define bFM3_MFT_PPG_PPGC10_MD0 *((volatile unsigned int*)(0x424850A4UL)) +#define bFM3_MFT_PPG_PPGC10_MD1 *((volatile unsigned int*)(0x424850A8UL)) +#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) +#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) +#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) +#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) +#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) +#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) +#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) +#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) +#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) +#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) +#define bFM3_MFT_PPG_PPGC13_MD0 *((volatile unsigned int*)(0x42485804UL)) +#define bFM3_MFT_PPG_PPGC13_MD1 *((volatile unsigned int*)(0x42485808UL)) +#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) +#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) +#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) +#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) +#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) +#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) +#define bFM3_MFT_PPG_PPGC12_MD0 *((volatile unsigned int*)(0x42485824UL)) +#define bFM3_MFT_PPG_PPGC12_MD1 *((volatile unsigned int*)(0x42485828UL)) +#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) +#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) +#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) +#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) +#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) +#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) +#define bFM3_MFT_PPG_PPGC15_MD0 *((volatile unsigned int*)(0x42485884UL)) +#define bFM3_MFT_PPG_PPGC15_MD1 *((volatile unsigned int*)(0x42485888UL)) +#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) +#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) +#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) +#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) +#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) +#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) +#define bFM3_MFT_PPG_PPGC14_MD0 *((volatile unsigned int*)(0x424858A4UL)) +#define bFM3_MFT_PPG_PPGC14_MD1 *((volatile unsigned int*)(0x424858A8UL)) +#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) +#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) +#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) +#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) +#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) +#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) +#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) +#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) +#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) +#define bFM3_MFT_PPG_PPGC17_TTRG *((volatile unsigned int*)(0x42486000UL)) +#define bFM3_MFT_PPG_PPGC17_MD0 *((volatile unsigned int*)(0x42486004UL)) +#define bFM3_MFT_PPG_PPGC17_MD1 *((volatile unsigned int*)(0x42486008UL)) +#define bFM3_MFT_PPG_PPGC17_PCS0 *((volatile unsigned int*)(0x4248600CUL)) +#define bFM3_MFT_PPG_PPGC17_PCS1 *((volatile unsigned int*)(0x42486010UL)) +#define bFM3_MFT_PPG_PPGC17_INTM *((volatile unsigned int*)(0x42486014UL)) +#define bFM3_MFT_PPG_PPGC17_PUF *((volatile unsigned int*)(0x42486018UL)) +#define bFM3_MFT_PPG_PPGC17_PIE *((volatile unsigned int*)(0x4248601CUL)) +#define bFM3_MFT_PPG_PPGC16_TTRG *((volatile unsigned int*)(0x42486020UL)) +#define bFM3_MFT_PPG_PPGC16_MD0 *((volatile unsigned int*)(0x42486024UL)) +#define bFM3_MFT_PPG_PPGC16_MD1 *((volatile unsigned int*)(0x42486028UL)) +#define bFM3_MFT_PPG_PPGC16_PCS0 *((volatile unsigned int*)(0x4248602CUL)) +#define bFM3_MFT_PPG_PPGC16_PCS1 *((volatile unsigned int*)(0x42486030UL)) +#define bFM3_MFT_PPG_PPGC16_INTM *((volatile unsigned int*)(0x42486034UL)) +#define bFM3_MFT_PPG_PPGC16_PUF *((volatile unsigned int*)(0x42486038UL)) +#define bFM3_MFT_PPG_PPGC16_PIE *((volatile unsigned int*)(0x4248603CUL)) +#define bFM3_MFT_PPG_PPGC19_TTRG *((volatile unsigned int*)(0x42486080UL)) +#define bFM3_MFT_PPG_PPGC19_MD0 *((volatile unsigned int*)(0x42486084UL)) +#define bFM3_MFT_PPG_PPGC19_MD1 *((volatile unsigned int*)(0x42486088UL)) +#define bFM3_MFT_PPG_PPGC19_PCS0 *((volatile unsigned int*)(0x4248608CUL)) +#define bFM3_MFT_PPG_PPGC19_PCS1 *((volatile unsigned int*)(0x42486090UL)) +#define bFM3_MFT_PPG_PPGC19_INTM *((volatile unsigned int*)(0x42486094UL)) +#define bFM3_MFT_PPG_PPGC19_PUF *((volatile unsigned int*)(0x42486098UL)) +#define bFM3_MFT_PPG_PPGC19_PIE *((volatile unsigned int*)(0x4248609CUL)) +#define bFM3_MFT_PPG_PPGC18_TTRG *((volatile unsigned int*)(0x424860A0UL)) +#define bFM3_MFT_PPG_PPGC18_MD0 *((volatile unsigned int*)(0x424860A4UL)) +#define bFM3_MFT_PPG_PPGC18_MD1 *((volatile unsigned int*)(0x424860A8UL)) +#define bFM3_MFT_PPG_PPGC18_PCS0 *((volatile unsigned int*)(0x424860ACUL)) +#define bFM3_MFT_PPG_PPGC18_PCS1 *((volatile unsigned int*)(0x424860B0UL)) +#define bFM3_MFT_PPG_PPGC18_INTM *((volatile unsigned int*)(0x424860B4UL)) +#define bFM3_MFT_PPG_PPGC18_PUF *((volatile unsigned int*)(0x424860B8UL)) +#define bFM3_MFT_PPG_PPGC18_PIE *((volatile unsigned int*)(0x424860BCUL)) +#define bFM3_MFT_PPG_GATEC16_EDGE16 *((volatile unsigned int*)(0x42486300UL)) +#define bFM3_MFT_PPG_GATEC16_STRG16 *((volatile unsigned int*)(0x42486304UL)) +#define bFM3_MFT_PPG_GATEC16_EDGE18 *((volatile unsigned int*)(0x42486310UL)) +#define bFM3_MFT_PPG_GATEC16_STRG18 *((volatile unsigned int*)(0x42486314UL)) +#define bFM3_MFT_PPG_PPGC21_TTRG *((volatile unsigned int*)(0x42486800UL)) +#define bFM3_MFT_PPG_PPGC21_MD0 *((volatile unsigned int*)(0x42486804UL)) +#define bFM3_MFT_PPG_PPGC21_MD1 *((volatile unsigned int*)(0x42486808UL)) +#define bFM3_MFT_PPG_PPGC21_PCS0 *((volatile unsigned int*)(0x4248680CUL)) +#define bFM3_MFT_PPG_PPGC21_PCS1 *((volatile unsigned int*)(0x42486810UL)) +#define bFM3_MFT_PPG_PPGC21_INTM *((volatile unsigned int*)(0x42486814UL)) +#define bFM3_MFT_PPG_PPGC21_PUF *((volatile unsigned int*)(0x42486818UL)) +#define bFM3_MFT_PPG_PPGC21_PIE *((volatile unsigned int*)(0x4248681CUL)) +#define bFM3_MFT_PPG_PPGC20_TTRG *((volatile unsigned int*)(0x42486820UL)) +#define bFM3_MFT_PPG_PPGC20_MD0 *((volatile unsigned int*)(0x42486824UL)) +#define bFM3_MFT_PPG_PPGC20_MD1 *((volatile unsigned int*)(0x42486828UL)) +#define bFM3_MFT_PPG_PPGC20_PCS0 *((volatile unsigned int*)(0x4248682CUL)) +#define bFM3_MFT_PPG_PPGC20_PCS1 *((volatile unsigned int*)(0x42486830UL)) +#define bFM3_MFT_PPG_PPGC20_INTM *((volatile unsigned int*)(0x42486834UL)) +#define bFM3_MFT_PPG_PPGC20_PUF *((volatile unsigned int*)(0x42486838UL)) +#define bFM3_MFT_PPG_PPGC20_PIE *((volatile unsigned int*)(0x4248683CUL)) +#define bFM3_MFT_PPG_PPGC23_TTRG *((volatile unsigned int*)(0x42486880UL)) +#define bFM3_MFT_PPG_PPGC23_MD0 *((volatile unsigned int*)(0x42486884UL)) +#define bFM3_MFT_PPG_PPGC23_MD1 *((volatile unsigned int*)(0x42486888UL)) +#define bFM3_MFT_PPG_PPGC23_PCS0 *((volatile unsigned int*)(0x4248688CUL)) +#define bFM3_MFT_PPG_PPGC23_PCS1 *((volatile unsigned int*)(0x42486890UL)) +#define bFM3_MFT_PPG_PPGC23_INTM *((volatile unsigned int*)(0x42486894UL)) +#define bFM3_MFT_PPG_PPGC23_PUF *((volatile unsigned int*)(0x42486898UL)) +#define bFM3_MFT_PPG_PPGC23_PIE *((volatile unsigned int*)(0x4248689CUL)) +#define bFM3_MFT_PPG_PPGC22_TTRG *((volatile unsigned int*)(0x424868A0UL)) +#define bFM3_MFT_PPG_PPGC22_MD0 *((volatile unsigned int*)(0x424868A4UL)) +#define bFM3_MFT_PPG_PPGC22_MD1 *((volatile unsigned int*)(0x424868A8UL)) +#define bFM3_MFT_PPG_PPGC22_PCS0 *((volatile unsigned int*)(0x424868ACUL)) +#define bFM3_MFT_PPG_PPGC22_PCS1 *((volatile unsigned int*)(0x424868B0UL)) +#define bFM3_MFT_PPG_PPGC22_INTM *((volatile unsigned int*)(0x424868B4UL)) +#define bFM3_MFT_PPG_PPGC22_PUF *((volatile unsigned int*)(0x424868B8UL)) +#define bFM3_MFT_PPG_PPGC22_PIE *((volatile unsigned int*)(0x424868BCUL)) +#define bFM3_MFT_PPG_GATEC20_EDGE20 *((volatile unsigned int*)(0x42486B00UL)) +#define bFM3_MFT_PPG_GATEC20_STRG20 *((volatile unsigned int*)(0x42486B04UL)) +#define bFM3_MFT_PPG_GATEC20_EDGE22 *((volatile unsigned int*)(0x42486B10UL)) +#define bFM3_MFT_PPG_GATEC20_STRG22 *((volatile unsigned int*)(0x42486B14UL)) + +/* Base Timer 0 PPG registers */ +#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWM registers */ +#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) +#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) +#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 RT registers */ +#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWC registers */ +#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) +#define bFM3_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) +#define bFM3_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) +#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) +#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 1 PPG registers */ +#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWM registers */ +#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) +#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) +#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 RT registers */ +#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWC registers */ +#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) +#define bFM3_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) +#define bFM3_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) +#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) +#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 2 PPG registers */ +#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWM registers */ +#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) +#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) +#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 RT registers */ +#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWC registers */ +#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) +#define bFM3_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) +#define bFM3_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) +#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) +#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 3 PPG registers */ +#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWM registers */ +#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) +#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) +#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 RT registers */ +#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWC registers */ +#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) +#define bFM3_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) +#define bFM3_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) +#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) +#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 4 PPG registers */ +#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWM registers */ +#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) +#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) +#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 RT registers */ +#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWC registers */ +#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) +#define bFM3_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) +#define bFM3_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) +#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) +#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 5 PPG registers */ +#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWM registers */ +#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) +#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) +#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 RT registers */ +#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWC registers */ +#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) +#define bFM3_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) +#define bFM3_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) +#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) +#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 6 PPG registers */ +#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWM registers */ +#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) +#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) +#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 RT registers */ +#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWC registers */ +#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) +#define bFM3_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) +#define bFM3_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) +#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) +#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 7 PPG registers */ +#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWM registers */ +#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) +#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) +#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 RT registers */ +#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWC registers */ +#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) +#define bFM3_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) +#define bFM3_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) +#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) +#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer I/O selector channel 0 - channel 3 registers */ +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) + +/* Base Timer I/O selector channel 4 - channel 7 registers */ +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) + +/* Base Timer 8 PPG registers */ +#define bFM3_BT8_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM3_BT8_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM3_BT8_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) +#define bFM3_BT8_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) +#define bFM3_BT8_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) +#define bFM3_BT8_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM3_BT8_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) +#define bFM3_BT8_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 PWM registers */ +#define bFM3_BT8_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM3_BT8_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM3_BT8_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) +#define bFM3_BT8_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) +#define bFM3_BT8_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) +#define bFM3_BT8_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM3_BT8_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) +#define bFM3_BT8_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8204UL)) +#define bFM3_BT8_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8214UL)) +#define bFM3_BT8_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 RT registers */ +#define bFM3_BT8_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM3_BT8_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM3_BT8_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) +#define bFM3_BT8_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) +#define bFM3_BT8_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) +#define bFM3_BT8_RT_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) +#define bFM3_BT8_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_RT_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_RT_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_RT_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_RT_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 PWC registers */ +#define bFM3_BT8_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) +#define bFM3_BT8_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) +#define bFM3_BT8_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) +#define bFM3_BT8_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) +#define bFM3_BT8_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM3_BT8_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_PWC_STC_ERR *((volatile unsigned int*)(0x424A821CUL)) +#define bFM3_BT8_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 9 PPG registers */ +#define bFM3_BT9_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM3_BT9_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM3_BT9_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) +#define bFM3_BT9_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) +#define bFM3_BT9_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) +#define bFM3_BT9_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM3_BT9_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) +#define bFM3_BT9_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 PWM registers */ +#define bFM3_BT9_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM3_BT9_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM3_BT9_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) +#define bFM3_BT9_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) +#define bFM3_BT9_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) +#define bFM3_BT9_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM3_BT9_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) +#define bFM3_BT9_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8A04UL)) +#define bFM3_BT9_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8A14UL)) +#define bFM3_BT9_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 RT registers */ +#define bFM3_BT9_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM3_BT9_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM3_BT9_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) +#define bFM3_BT9_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) +#define bFM3_BT9_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) +#define bFM3_BT9_RT_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) +#define bFM3_BT9_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_RT_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_RT_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_RT_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_RT_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 PWC registers */ +#define bFM3_BT9_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) +#define bFM3_BT9_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) +#define bFM3_BT9_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) +#define bFM3_BT9_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) +#define bFM3_BT9_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM3_BT9_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_PWC_STC_ERR *((volatile unsigned int*)(0x424A8A1CUL)) +#define bFM3_BT9_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 10 PPG registers */ +#define bFM3_BT10_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM3_BT10_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM3_BT10_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) +#define bFM3_BT10_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) +#define bFM3_BT10_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) +#define bFM3_BT10_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM3_BT10_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) +#define bFM3_BT10_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 PWM registers */ +#define bFM3_BT10_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM3_BT10_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM3_BT10_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) +#define bFM3_BT10_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) +#define bFM3_BT10_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) +#define bFM3_BT10_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM3_BT10_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) +#define bFM3_BT10_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9204UL)) +#define bFM3_BT10_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9214UL)) +#define bFM3_BT10_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 RT registers */ +#define bFM3_BT10_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM3_BT10_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM3_BT10_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) +#define bFM3_BT10_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) +#define bFM3_BT10_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) +#define bFM3_BT10_RT_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) +#define bFM3_BT10_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_RT_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_RT_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_RT_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_RT_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 PWC registers */ +#define bFM3_BT10_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) +#define bFM3_BT10_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) +#define bFM3_BT10_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) +#define bFM3_BT10_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) +#define bFM3_BT10_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM3_BT10_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_PWC_STC_ERR *((volatile unsigned int*)(0x424A921CUL)) +#define bFM3_BT10_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 11 PPG registers */ +#define bFM3_BT11_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM3_BT11_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM3_BT11_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) +#define bFM3_BT11_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) +#define bFM3_BT11_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) +#define bFM3_BT11_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM3_BT11_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) +#define bFM3_BT11_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 PWM registers */ +#define bFM3_BT11_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM3_BT11_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM3_BT11_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) +#define bFM3_BT11_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) +#define bFM3_BT11_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) +#define bFM3_BT11_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM3_BT11_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) +#define bFM3_BT11_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9A04UL)) +#define bFM3_BT11_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9A14UL)) +#define bFM3_BT11_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 RT registers */ +#define bFM3_BT11_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM3_BT11_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM3_BT11_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) +#define bFM3_BT11_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) +#define bFM3_BT11_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) +#define bFM3_BT11_RT_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) +#define bFM3_BT11_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_RT_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_RT_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_RT_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_RT_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 PWC registers */ +#define bFM3_BT11_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) +#define bFM3_BT11_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) +#define bFM3_BT11_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) +#define bFM3_BT11_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) +#define bFM3_BT11_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM3_BT11_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_PWC_STC_ERR *((volatile unsigned int*)(0x424A9A1CUL)) +#define bFM3_BT11_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 12 PPG registers */ +#define bFM3_BT12_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM3_BT12_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM3_BT12_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) +#define bFM3_BT12_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) +#define bFM3_BT12_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) +#define bFM3_BT12_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM3_BT12_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) +#define bFM3_BT12_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_PPG_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_PPG_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_PPG_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_PPG_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 PWM registers */ +#define bFM3_BT12_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM3_BT12_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM3_BT12_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) +#define bFM3_BT12_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) +#define bFM3_BT12_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) +#define bFM3_BT12_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM3_BT12_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) +#define bFM3_BT12_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_PWM_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_PWM_STC_DTIR *((volatile unsigned int*)(0x424AC204UL)) +#define bFM3_BT12_PWM_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_PWM_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_PWM_STC_DTIE *((volatile unsigned int*)(0x424AC214UL)) +#define bFM3_BT12_PWM_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 RT registers */ +#define bFM3_BT12_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM3_BT12_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM3_BT12_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) +#define bFM3_BT12_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) +#define bFM3_BT12_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) +#define bFM3_BT12_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) +#define bFM3_BT12_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_RT_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_RT_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_RT_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_RT_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 PWC registers */ +#define bFM3_BT12_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) +#define bFM3_BT12_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) +#define bFM3_BT12_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) +#define bFM3_BT12_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) +#define bFM3_BT12_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM3_BT12_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_PWC_STC_OVIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_PWC_STC_EDIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_PWC_STC_OVIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_PWC_STC_EDIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_PWC_STC_ERR *((volatile unsigned int*)(0x424AC21CUL)) +#define bFM3_BT12_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 13 PPG registers */ +#define bFM3_BT13_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM3_BT13_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM3_BT13_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) +#define bFM3_BT13_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) +#define bFM3_BT13_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) +#define bFM3_BT13_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM3_BT13_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) +#define bFM3_BT13_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_PPG_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_PPG_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_PPG_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_PPG_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 PWM registers */ +#define bFM3_BT13_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM3_BT13_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM3_BT13_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) +#define bFM3_BT13_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) +#define bFM3_BT13_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) +#define bFM3_BT13_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM3_BT13_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) +#define bFM3_BT13_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_PWM_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_PWM_STC_DTIR *((volatile unsigned int*)(0x424ACA04UL)) +#define bFM3_BT13_PWM_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_PWM_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_PWM_STC_DTIE *((volatile unsigned int*)(0x424ACA14UL)) +#define bFM3_BT13_PWM_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 RT registers */ +#define bFM3_BT13_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM3_BT13_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM3_BT13_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) +#define bFM3_BT13_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) +#define bFM3_BT13_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) +#define bFM3_BT13_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) +#define bFM3_BT13_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_RT_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_RT_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_RT_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_RT_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 PWC registers */ +#define bFM3_BT13_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) +#define bFM3_BT13_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) +#define bFM3_BT13_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) +#define bFM3_BT13_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) +#define bFM3_BT13_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM3_BT13_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_PWC_STC_OVIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_PWC_STC_EDIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_PWC_STC_OVIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_PWC_STC_EDIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_PWC_STC_ERR *((volatile unsigned int*)(0x424ACA1CUL)) +#define bFM3_BT13_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 14 PPG registers */ +#define bFM3_BT14_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM3_BT14_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM3_BT14_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) +#define bFM3_BT14_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) +#define bFM3_BT14_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) +#define bFM3_BT14_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM3_BT14_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) +#define bFM3_BT14_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_PPG_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_PPG_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_PPG_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_PPG_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 PWM registers */ +#define bFM3_BT14_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM3_BT14_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM3_BT14_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) +#define bFM3_BT14_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) +#define bFM3_BT14_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) +#define bFM3_BT14_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM3_BT14_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) +#define bFM3_BT14_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_PWM_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_PWM_STC_DTIR *((volatile unsigned int*)(0x424AD204UL)) +#define bFM3_BT14_PWM_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_PWM_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_PWM_STC_DTIE *((volatile unsigned int*)(0x424AD214UL)) +#define bFM3_BT14_PWM_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 RT registers */ +#define bFM3_BT14_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM3_BT14_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM3_BT14_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) +#define bFM3_BT14_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) +#define bFM3_BT14_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) +#define bFM3_BT14_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) +#define bFM3_BT14_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_RT_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_RT_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_RT_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_RT_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 PWC registers */ +#define bFM3_BT14_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) +#define bFM3_BT14_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) +#define bFM3_BT14_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) +#define bFM3_BT14_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) +#define bFM3_BT14_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM3_BT14_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_PWC_STC_OVIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_PWC_STC_EDIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_PWC_STC_OVIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_PWC_STC_EDIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_PWC_STC_ERR *((volatile unsigned int*)(0x424AD21CUL)) +#define bFM3_BT14_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 15 PPG registers */ +#define bFM3_BT15_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM3_BT15_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM3_BT15_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) +#define bFM3_BT15_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) +#define bFM3_BT15_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) +#define bFM3_BT15_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM3_BT15_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) +#define bFM3_BT15_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_PPG_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_PPG_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_PPG_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_PPG_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 PWM registers */ +#define bFM3_BT15_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM3_BT15_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM3_BT15_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) +#define bFM3_BT15_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) +#define bFM3_BT15_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) +#define bFM3_BT15_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM3_BT15_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) +#define bFM3_BT15_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_PWM_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_PWM_STC_DTIR *((volatile unsigned int*)(0x424ADA04UL)) +#define bFM3_BT15_PWM_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_PWM_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_PWM_STC_DTIE *((volatile unsigned int*)(0x424ADA14UL)) +#define bFM3_BT15_PWM_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 RT registers */ +#define bFM3_BT15_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM3_BT15_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM3_BT15_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) +#define bFM3_BT15_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) +#define bFM3_BT15_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) +#define bFM3_BT15_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) +#define bFM3_BT15_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_RT_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_RT_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_RT_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_RT_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 PWC registers */ +#define bFM3_BT15_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) +#define bFM3_BT15_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) +#define bFM3_BT15_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) +#define bFM3_BT15_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) +#define bFM3_BT15_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM3_BT15_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_PWC_STC_OVIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_PWC_STC_EDIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_PWC_STC_OVIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_PWC_STC_EDIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_PWC_STC_ERR *((volatile unsigned int*)(0x424ADA1CUL)) +#define bFM3_BT15_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer I/O selector channel 8 - channel 11 registers */ +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_0 *((volatile unsigned int*)(0x424AA020UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_1 *((volatile unsigned int*)(0x424AA024UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_2 *((volatile unsigned int*)(0x424AA028UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_3 *((volatile unsigned int*)(0x424AA02CUL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_0 *((volatile unsigned int*)(0x424AA030UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_1 *((volatile unsigned int*)(0x424AA034UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_2 *((volatile unsigned int*)(0x424AA038UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_3 *((volatile unsigned int*)(0x424AA03CUL)) + +/* Base Timer I/O selector channel 12 - channel 15 registers */ +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_0 *((volatile unsigned int*)(0x424AE020UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_1 *((volatile unsigned int*)(0x424AE024UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_2 *((volatile unsigned int*)(0x424AE028UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_3 *((volatile unsigned int*)(0x424AE02CUL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_0 *((volatile unsigned int*)(0x424AE030UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_1 *((volatile unsigned int*)(0x424AE034UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_2 *((volatile unsigned int*)(0x424AE038UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_3 *((volatile unsigned int*)(0x424AE03CUL)) + +/* Software based Simulation Startup (Base Timer) register */ +#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) +#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) +#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) +#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) +#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) +#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) +#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) +#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) +#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) +#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) +#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) +#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) +#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) +#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) +#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) +#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) + +/* Quad position and revolution counter channel 0 registers */ +#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) +#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) +#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) + +/* Quad position and revolution counter channel 1 registers */ +#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) +#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) +#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) + +/* Quad position and revolution counter channel 2 registers */ +#define bFM3_QPRC2_QICR_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) +#define bFM3_QPRC2_QICR_QPCMF *((volatile unsigned int*)(0x424C1284UL)) +#define bFM3_QPRC2_QICR_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) +#define bFM3_QPRC2_QICR_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) +#define bFM3_QPRC2_QICR_OUZIE *((volatile unsigned int*)(0x424C1290UL)) +#define bFM3_QPRC2_QICR_UFDF *((volatile unsigned int*)(0x424C1294UL)) +#define bFM3_QPRC2_QICR_OFDF *((volatile unsigned int*)(0x424C1298UL)) +#define bFM3_QPRC2_QICR_ZIIF *((volatile unsigned int*)(0x424C129CUL)) +#define bFM3_QPRC2_QICR_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) +#define bFM3_QPRC2_QICR_CDCF *((volatile unsigned int*)(0x424C12A4UL)) +#define bFM3_QPRC2_QICR_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) +#define bFM3_QPRC2_QICR_DIROU *((volatile unsigned int*)(0x424C12ACUL)) +#define bFM3_QPRC2_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) +#define bFM3_QPRC2_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) +#define bFM3_QPRC2_QICRL_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) +#define bFM3_QPRC2_QICRL_QPCMF *((volatile unsigned int*)(0x424C1284UL)) +#define bFM3_QPRC2_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) +#define bFM3_QPRC2_QICRL_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) +#define bFM3_QPRC2_QICRL_OUZIE *((volatile unsigned int*)(0x424C1290UL)) +#define bFM3_QPRC2_QICRL_UFDF *((volatile unsigned int*)(0x424C1294UL)) +#define bFM3_QPRC2_QICRL_OFDF *((volatile unsigned int*)(0x424C1298UL)) +#define bFM3_QPRC2_QICRL_ZIIF *((volatile unsigned int*)(0x424C129CUL)) +#define bFM3_QPRC2_QICRH_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) +#define bFM3_QPRC2_QICRH_CDCF *((volatile unsigned int*)(0x424C12A4UL)) +#define bFM3_QPRC2_QICRH_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) +#define bFM3_QPRC2_QICRH_DIROU *((volatile unsigned int*)(0x424C12ACUL)) +#define bFM3_QPRC2_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) +#define bFM3_QPRC2_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) +#define bFM3_QPRC2_QCR_PCM0 *((volatile unsigned int*)(0x424C1300UL)) +#define bFM3_QPRC2_QCR_PCM1 *((volatile unsigned int*)(0x424C1304UL)) +#define bFM3_QPRC2_QCR_RCM0 *((volatile unsigned int*)(0x424C1308UL)) +#define bFM3_QPRC2_QCR_RCM1 *((volatile unsigned int*)(0x424C130CUL)) +#define bFM3_QPRC2_QCR_PSTP *((volatile unsigned int*)(0x424C1310UL)) +#define bFM3_QPRC2_QCR_CGSC *((volatile unsigned int*)(0x424C1314UL)) +#define bFM3_QPRC2_QCR_RSEL *((volatile unsigned int*)(0x424C1318UL)) +#define bFM3_QPRC2_QCR_SWAP *((volatile unsigned int*)(0x424C131CUL)) +#define bFM3_QPRC2_QCR_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) +#define bFM3_QPRC2_QCR_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) +#define bFM3_QPRC2_QCR_AES0 *((volatile unsigned int*)(0x424C1328UL)) +#define bFM3_QPRC2_QCR_AES1 *((volatile unsigned int*)(0x424C132CUL)) +#define bFM3_QPRC2_QCR_BES0 *((volatile unsigned int*)(0x424C1330UL)) +#define bFM3_QPRC2_QCR_BES1 *((volatile unsigned int*)(0x424C1334UL)) +#define bFM3_QPRC2_QCR_CGE0 *((volatile unsigned int*)(0x424C1338UL)) +#define bFM3_QPRC2_QCR_CGE1 *((volatile unsigned int*)(0x424C133CUL)) +#define bFM3_QPRC2_QCRL_PCM0 *((volatile unsigned int*)(0x424C1300UL)) +#define bFM3_QPRC2_QCRL_PCM1 *((volatile unsigned int*)(0x424C1304UL)) +#define bFM3_QPRC2_QCRL_RCM0 *((volatile unsigned int*)(0x424C1308UL)) +#define bFM3_QPRC2_QCRL_RCM1 *((volatile unsigned int*)(0x424C130CUL)) +#define bFM3_QPRC2_QCRL_PSTP *((volatile unsigned int*)(0x424C1310UL)) +#define bFM3_QPRC2_QCRL_CGSC *((volatile unsigned int*)(0x424C1314UL)) +#define bFM3_QPRC2_QCRL_RSEL *((volatile unsigned int*)(0x424C1318UL)) +#define bFM3_QPRC2_QCRL_SWAP *((volatile unsigned int*)(0x424C131CUL)) +#define bFM3_QPRC2_QCRH_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) +#define bFM3_QPRC2_QCRH_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) +#define bFM3_QPRC2_QCRH_AES0 *((volatile unsigned int*)(0x424C1328UL)) +#define bFM3_QPRC2_QCRH_AES1 *((volatile unsigned int*)(0x424C132CUL)) +#define bFM3_QPRC2_QCRH_BES0 *((volatile unsigned int*)(0x424C1330UL)) +#define bFM3_QPRC2_QCRH_BES1 *((volatile unsigned int*)(0x424C1334UL)) +#define bFM3_QPRC2_QCRH_CGE0 *((volatile unsigned int*)(0x424C1338UL)) +#define bFM3_QPRC2_QCRH_CGE1 *((volatile unsigned int*)(0x424C133CUL)) +#define bFM3_QPRC2_QECR_ORNGMD *((volatile unsigned int*)(0x424C1380UL)) +#define bFM3_QPRC2_QECR_ORNGF *((volatile unsigned int*)(0x424C1384UL)) +#define bFM3_QPRC2_QECR_ORNGIE *((volatile unsigned int*)(0x424C1388UL)) + +/* 12-bit ADC unit 0 registers */ +#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) +#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) +#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) +#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) +#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) +#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) +#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) +#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) +#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) +#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) +#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) +#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) +#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) +#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) +#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) +#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) +#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) +#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) +#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) +#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) +#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) +#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) +#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) +#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) +#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) +#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) +#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) +#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) +#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) +#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) +#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) +#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) +#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) +#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) +#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) +#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) +#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) +#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) +#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) +#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) +#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) +#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) +#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) +#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) +#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) +#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) +#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) +#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) +#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) +#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) +#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) +#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) +#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) +#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) +#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) +#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) +#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) +#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) +#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) +#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) +#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) +#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) +#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) +#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) +#define bFM3_ADC0_ADCT_CT3 *((volatile unsigned int*)(0x424E068CUL)) +#define bFM3_ADC0_ADCT_CT4 *((volatile unsigned int*)(0x424E0690UL)) +#define bFM3_ADC0_ADCT_CT5 *((volatile unsigned int*)(0x424E0694UL)) +#define bFM3_ADC0_ADCT_CT6 *((volatile unsigned int*)(0x424E0698UL)) +#define bFM3_ADC0_ADCT_CT7 *((volatile unsigned int*)(0x424E069CUL)) +#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) +#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) +#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) +#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) +#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) +#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) +#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) +#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) +#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) +#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) +#define bFM3_ADC0_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E0790UL)) +#define bFM3_ADC0_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E0794UL)) + +/* 12-bit ADC unit 1 registers */ +#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) +#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) +#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) +#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) +#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) +#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) +#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) +#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) +#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) +#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) +#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) +#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) +#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) +#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) +#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) +#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) +#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) +#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) +#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) +#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) +#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) +#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) +#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) +#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) +#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) +#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) +#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) +#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) +#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) +#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) +#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) +#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) +#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) +#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) +#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) +#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) +#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) +#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) +#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) +#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) +#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) +#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) +#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) +#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) +#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) +#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) +#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) +#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) +#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) +#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) +#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) +#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) +#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) +#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) +#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) +#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) +#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) +#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) +#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) +#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) +#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) +#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) +#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) +#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) +#define bFM3_ADC1_ADCT_CT3 *((volatile unsigned int*)(0x424E268CUL)) +#define bFM3_ADC1_ADCT_CT4 *((volatile unsigned int*)(0x424E2690UL)) +#define bFM3_ADC1_ADCT_CT5 *((volatile unsigned int*)(0x424E2694UL)) +#define bFM3_ADC1_ADCT_CT6 *((volatile unsigned int*)(0x424E2698UL)) +#define bFM3_ADC1_ADCT_CT7 *((volatile unsigned int*)(0x424E269CUL)) +#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) +#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) +#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) +#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) +#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) +#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) +#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) +#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) +#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) +#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) +#define bFM3_ADC1_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E2790UL)) +#define bFM3_ADC1_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E2794UL)) + +/* 12-bit ADC unit 2 registers */ +#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) +#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) +#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) +#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) +#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) +#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) +#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) +#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) +#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) +#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) +#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) +#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) +#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) +#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) +#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) +#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) +#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) +#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) +#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) +#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) +#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) +#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) +#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) +#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) +#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) +#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) +#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) +#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) +#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) +#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) +#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) +#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) +#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) +#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) +#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) +#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) +#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) +#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) +#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) +#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) +#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) +#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) +#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) +#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) +#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) +#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) +#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) +#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) +#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) +#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) +#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) +#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) +#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) +#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) +#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) +#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) +#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) +#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) +#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) +#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) +#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) +#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) +#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) +#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) +#define bFM3_ADC2_ADCT_CT3 *((volatile unsigned int*)(0x424E468CUL)) +#define bFM3_ADC2_ADCT_CT4 *((volatile unsigned int*)(0x424E4690UL)) +#define bFM3_ADC2_ADCT_CT5 *((volatile unsigned int*)(0x424E4694UL)) +#define bFM3_ADC2_ADCT_CT6 *((volatile unsigned int*)(0x424E4698UL)) +#define bFM3_ADC2_ADCT_CT7 *((volatile unsigned int*)(0x424E469CUL)) +#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) +#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) +#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) +#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) +#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) +#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) +#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) +#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) +#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) +#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) +#define bFM3_ADC2_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E4790UL)) +#define bFM3_ADC2_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E4794UL)) + +/* CR trimming registers */ +#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) +#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) + +/* External interrupt registers */ +#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) +#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) +#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) +#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) +#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) +#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) +#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) +#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) +#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) +#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) +#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) +#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) +#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) +#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) +#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) +#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) +#define bFM3_EXTI_ENIR_EN16 *((volatile unsigned int*)(0x42600040UL)) +#define bFM3_EXTI_ENIR_EN17 *((volatile unsigned int*)(0x42600044UL)) +#define bFM3_EXTI_ENIR_EN18 *((volatile unsigned int*)(0x42600048UL)) +#define bFM3_EXTI_ENIR_EN19 *((volatile unsigned int*)(0x4260004CUL)) +#define bFM3_EXTI_ENIR_EN20 *((volatile unsigned int*)(0x42600050UL)) +#define bFM3_EXTI_ENIR_EN21 *((volatile unsigned int*)(0x42600054UL)) +#define bFM3_EXTI_ENIR_EN22 *((volatile unsigned int*)(0x42600058UL)) +#define bFM3_EXTI_ENIR_EN23 *((volatile unsigned int*)(0x4260005CUL)) +#define bFM3_EXTI_ENIR_EN24 *((volatile unsigned int*)(0x42600060UL)) +#define bFM3_EXTI_ENIR_EN25 *((volatile unsigned int*)(0x42600064UL)) +#define bFM3_EXTI_ENIR_EN26 *((volatile unsigned int*)(0x42600068UL)) +#define bFM3_EXTI_ENIR_EN27 *((volatile unsigned int*)(0x4260006CUL)) +#define bFM3_EXTI_ENIR_EN28 *((volatile unsigned int*)(0x42600070UL)) +#define bFM3_EXTI_ENIR_EN29 *((volatile unsigned int*)(0x42600074UL)) +#define bFM3_EXTI_ENIR_EN30 *((volatile unsigned int*)(0x42600078UL)) +#define bFM3_EXTI_ENIR_EN31 *((volatile unsigned int*)(0x4260007CUL)) +#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) +#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) +#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) +#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) +#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) +#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) +#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) +#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) +#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) +#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) +#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) +#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) +#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) +#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) +#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) +#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) +#define bFM3_EXTI_EIRR_ER16 *((volatile unsigned int*)(0x426000C0UL)) +#define bFM3_EXTI_EIRR_ER17 *((volatile unsigned int*)(0x426000C4UL)) +#define bFM3_EXTI_EIRR_ER18 *((volatile unsigned int*)(0x426000C8UL)) +#define bFM3_EXTI_EIRR_ER19 *((volatile unsigned int*)(0x426000CCUL)) +#define bFM3_EXTI_EIRR_ER20 *((volatile unsigned int*)(0x426000D0UL)) +#define bFM3_EXTI_EIRR_ER21 *((volatile unsigned int*)(0x426000D4UL)) +#define bFM3_EXTI_EIRR_ER22 *((volatile unsigned int*)(0x426000D8UL)) +#define bFM3_EXTI_EIRR_ER23 *((volatile unsigned int*)(0x426000DCUL)) +#define bFM3_EXTI_EIRR_ER24 *((volatile unsigned int*)(0x426000E0UL)) +#define bFM3_EXTI_EIRR_ER25 *((volatile unsigned int*)(0x426000E4UL)) +#define bFM3_EXTI_EIRR_ER26 *((volatile unsigned int*)(0x426000E8UL)) +#define bFM3_EXTI_EIRR_ER27 *((volatile unsigned int*)(0x426000ECUL)) +#define bFM3_EXTI_EIRR_ER28 *((volatile unsigned int*)(0x426000F0UL)) +#define bFM3_EXTI_EIRR_ER29 *((volatile unsigned int*)(0x426000F4UL)) +#define bFM3_EXTI_EIRR_ER30 *((volatile unsigned int*)(0x426000F8UL)) +#define bFM3_EXTI_EIRR_ER31 *((volatile unsigned int*)(0x426000FCUL)) +#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) +#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) +#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) +#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) +#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) +#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) +#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) +#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) +#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) +#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) +#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) +#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) +#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) +#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) +#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) +#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) +#define bFM3_EXTI_EICL_ECL16 *((volatile unsigned int*)(0x42600140UL)) +#define bFM3_EXTI_EICL_ECL17 *((volatile unsigned int*)(0x42600144UL)) +#define bFM3_EXTI_EICL_ECL18 *((volatile unsigned int*)(0x42600148UL)) +#define bFM3_EXTI_EICL_ECL19 *((volatile unsigned int*)(0x4260014CUL)) +#define bFM3_EXTI_EICL_ECL20 *((volatile unsigned int*)(0x42600150UL)) +#define bFM3_EXTI_EICL_ECL21 *((volatile unsigned int*)(0x42600154UL)) +#define bFM3_EXTI_EICL_ECL22 *((volatile unsigned int*)(0x42600158UL)) +#define bFM3_EXTI_EICL_ECL23 *((volatile unsigned int*)(0x4260015CUL)) +#define bFM3_EXTI_EICL_ECL24 *((volatile unsigned int*)(0x42600160UL)) +#define bFM3_EXTI_EICL_ECL25 *((volatile unsigned int*)(0x42600164UL)) +#define bFM3_EXTI_EICL_ECL26 *((volatile unsigned int*)(0x42600168UL)) +#define bFM3_EXTI_EICL_ECL27 *((volatile unsigned int*)(0x4260016CUL)) +#define bFM3_EXTI_EICL_ECL28 *((volatile unsigned int*)(0x42600170UL)) +#define bFM3_EXTI_EICL_ECL29 *((volatile unsigned int*)(0x42600174UL)) +#define bFM3_EXTI_EICL_ECL30 *((volatile unsigned int*)(0x42600178UL)) +#define bFM3_EXTI_EICL_ECL31 *((volatile unsigned int*)(0x4260017CUL)) +#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) +#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) +#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) +#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) +#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) +#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) +#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) +#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) +#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) +#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) +#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) +#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) +#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) +#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) +#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) +#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) +#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) +#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) +#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) +#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) +#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) +#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) +#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) +#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) +#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) +#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) +#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) +#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) +#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) +#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) +#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) +#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) +#define bFM3_EXTI_ELVR_LA16 *((volatile unsigned int*)(0x42600200UL)) +#define bFM3_EXTI_ELVR_LB16 *((volatile unsigned int*)(0x42600204UL)) +#define bFM3_EXTI_ELVR_LA17 *((volatile unsigned int*)(0x42600208UL)) +#define bFM3_EXTI_ELVR_LB17 *((volatile unsigned int*)(0x4260020CUL)) +#define bFM3_EXTI_ELVR_LA18 *((volatile unsigned int*)(0x42600210UL)) +#define bFM3_EXTI_ELVR_LB18 *((volatile unsigned int*)(0x42600214UL)) +#define bFM3_EXTI_ELVR_LA19 *((volatile unsigned int*)(0x42600218UL)) +#define bFM3_EXTI_ELVR_LB19 *((volatile unsigned int*)(0x4260021CUL)) +#define bFM3_EXTI_ELVR_LA20 *((volatile unsigned int*)(0x42600220UL)) +#define bFM3_EXTI_ELVR_LB20 *((volatile unsigned int*)(0x42600224UL)) +#define bFM3_EXTI_ELVR_LA21 *((volatile unsigned int*)(0x42600228UL)) +#define bFM3_EXTI_ELVR_LB21 *((volatile unsigned int*)(0x4260022CUL)) +#define bFM3_EXTI_ELVR_LA22 *((volatile unsigned int*)(0x42600230UL)) +#define bFM3_EXTI_ELVR_LB22 *((volatile unsigned int*)(0x42600234UL)) +#define bFM3_EXTI_ELVR_LA23 *((volatile unsigned int*)(0x42600238UL)) +#define bFM3_EXTI_ELVR_LB23 *((volatile unsigned int*)(0x4260023CUL)) +#define bFM3_EXTI_ELVR_LA24 *((volatile unsigned int*)(0x42600240UL)) +#define bFM3_EXTI_ELVR_LB24 *((volatile unsigned int*)(0x42600244UL)) +#define bFM3_EXTI_ELVR_LA25 *((volatile unsigned int*)(0x42600248UL)) +#define bFM3_EXTI_ELVR_LB25 *((volatile unsigned int*)(0x4260024CUL)) +#define bFM3_EXTI_ELVR_LA26 *((volatile unsigned int*)(0x42600250UL)) +#define bFM3_EXTI_ELVR_LB26 *((volatile unsigned int*)(0x42600254UL)) +#define bFM3_EXTI_ELVR_LA27 *((volatile unsigned int*)(0x42600258UL)) +#define bFM3_EXTI_ELVR_LB27 *((volatile unsigned int*)(0x4260025CUL)) +#define bFM3_EXTI_ELVR_LA28 *((volatile unsigned int*)(0x42600260UL)) +#define bFM3_EXTI_ELVR_LB28 *((volatile unsigned int*)(0x42600264UL)) +#define bFM3_EXTI_ELVR_LA29 *((volatile unsigned int*)(0x42600268UL)) +#define bFM3_EXTI_ELVR_LB29 *((volatile unsigned int*)(0x4260026CUL)) +#define bFM3_EXTI_ELVR_LA30 *((volatile unsigned int*)(0x42600270UL)) +#define bFM3_EXTI_ELVR_LB30 *((volatile unsigned int*)(0x42600274UL)) +#define bFM3_EXTI_ELVR_LA31 *((volatile unsigned int*)(0x42600278UL)) +#define bFM3_EXTI_ELVR_LB31 *((volatile unsigned int*)(0x4260027CUL)) +#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) +#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) + +/* Interrupt request read registers */ +#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS0 *((volatile unsigned char*)(0x42620160UL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS1 *((volatile unsigned char*)(0x42620164UL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS2 *((volatile unsigned char*)(0x42620168UL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS3 *((volatile unsigned char*)(0x4262016CUL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS4 *((volatile unsigned char*)(0x42620170UL)) +#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) +#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) +#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) +#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) +#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT0 *((volatile unsigned int*)(0x42620420UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT1 *((volatile unsigned int*)(0x42620424UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT2 *((volatile unsigned int*)(0x42620428UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT3 *((volatile unsigned int*)(0x4262042CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT8 *((volatile unsigned int*)(0x42620520UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT9 *((volatile unsigned int*)(0x42620524UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT10 *((volatile unsigned int*)(0x42620528UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT11 *((volatile unsigned int*)(0x4262052CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT12 *((volatile unsigned int*)(0x42620530UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT13 *((volatile unsigned int*)(0x42620534UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT14 *((volatile unsigned int*)(0x42620538UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT15 *((volatile unsigned int*)(0x4262053CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT16 *((volatile unsigned int*)(0x42620540UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT17 *((volatile unsigned int*)(0x42620544UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT18 *((volatile unsigned int*)(0x42620548UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT19 *((volatile unsigned int*)(0x4262054CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT20 *((volatile unsigned int*)(0x42620550UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT21 *((volatile unsigned int*)(0x42620554UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT22 *((volatile unsigned int*)(0x42620558UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT23 *((volatile unsigned int*)(0x4262055CUL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620580UL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT2 *((volatile unsigned int*)(0x42620584UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT0 *((volatile unsigned int*)(0x426205B8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT1 *((volatile unsigned int*)(0x426205BCUL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT2 *((volatile unsigned int*)(0x426205C0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT3 *((volatile unsigned int*)(0x426205C4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT4 *((volatile unsigned int*)(0x426205C8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT5 *((volatile unsigned int*)(0x426205CCUL)) +#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) +#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) +#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) +#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) +#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) +#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) +#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) +#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT6 *((volatile unsigned int*)(0x42620E18UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT7 *((volatile unsigned int*)(0x42620E1CUL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT8 *((volatile unsigned int*)(0x42620E20UL)) +#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) +#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) +#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) +#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) +#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT0 *((volatile unsigned int*)(0x426210B0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT1 *((volatile unsigned int*)(0x426210B4UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT2 *((volatile unsigned int*)(0x426210B8UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT3 *((volatile unsigned int*)(0x426210BCUL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT4 *((volatile unsigned int*)(0x426210C0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT5 *((volatile unsigned int*)(0x426210C4UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT0 *((volatile unsigned int*)(0x42621120UL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT1 *((volatile unsigned int*)(0x42621124UL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT2 *((volatile unsigned int*)(0x42621128UL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT3 *((volatile unsigned int*)(0x4262112CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT0 *((volatile unsigned int*)(0x426211B0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT1 *((volatile unsigned int*)(0x426211B4UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT2 *((volatile unsigned int*)(0x426211B8UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT3 *((volatile unsigned int*)(0x426211BCUL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT4 *((volatile unsigned int*)(0x426211C0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT5 *((volatile unsigned int*)(0x426211C4UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) +#define bFM3_INTREQ_IRQ32MON_MAC0SBD *((volatile unsigned int*)(0x42621284UL)) +#define bFM3_INTREQ_IRQ32MON_MAC0PMI *((volatile unsigned int*)(0x42621288UL)) +#define bFM3_INTREQ_IRQ32MON_MAC0LPI *((volatile unsigned int*)(0x4262128CUL)) +#define bFM3_INTREQ_IRQ33MON_MAC1SBD *((volatile unsigned int*)(0x42621304UL)) +#define bFM3_INTREQ_IRQ33MON_MAC1PMI *((volatile unsigned int*)(0x42621308UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT5 *((volatile unsigned int*)(0x42621414UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT0 *((volatile unsigned int*)(0x42621480UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT1 *((volatile unsigned int*)(0x42621484UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT2 *((volatile unsigned int*)(0x42621488UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT3 *((volatile unsigned int*)(0x4262148CUL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT4 *((volatile unsigned int*)(0x42621490UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT0 *((volatile unsigned int*)(0x42621500UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT1 *((volatile unsigned int*)(0x42621504UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT2 *((volatile unsigned int*)(0x42621508UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT3 *((volatile unsigned int*)(0x4262150CUL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT4 *((volatile unsigned int*)(0x42621510UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT5 *((volatile unsigned int*)(0x42621514UL)) +#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) +#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) +#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) +#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) +#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) +#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) +#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) +#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT0 *((volatile unsigned int*)(0x42621980UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT1 *((volatile unsigned int*)(0x42621984UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT2 *((volatile unsigned int*)(0x42621988UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT3 *((volatile unsigned int*)(0x4262198CUL)) +#define bFM3_INTREQ_IRQ46MON_BTINT4 *((volatile unsigned int*)(0x42621990UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT5 *((volatile unsigned int*)(0x42621994UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT6 *((volatile unsigned int*)(0x42621998UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT7 *((volatile unsigned int*)(0x4262199CUL)) +#define bFM3_INTREQ_IRQ46MON_BTINT8 *((volatile unsigned int*)(0x426219A0UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT9 *((volatile unsigned int*)(0x426219A4UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT10 *((volatile unsigned int*)(0x426219A8UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT11 *((volatile unsigned int*)(0x426219ACUL)) +#define bFM3_INTREQ_IRQ46MON_BTINT12 *((volatile unsigned int*)(0x426219B0UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT13 *((volatile unsigned int*)(0x426219B4UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT14 *((volatile unsigned int*)(0x426219B8UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT15 *((volatile unsigned int*)(0x426219BCUL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL10 *((volatile unsigned int*)(0x42624000UL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL11 *((volatile unsigned int*)(0x42624004UL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL12 *((volatile unsigned int*)(0x42624008UL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL13 *((volatile unsigned int*)(0x4262400CUL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL14 *((volatile unsigned int*)(0x42624010UL)) +#define bFM3_INTREQ_DQESEL_ESEL100 *((volatile unsigned int*)(0x42624080UL)) +#define bFM3_INTREQ_DQESEL_ESEL101 *((volatile unsigned int*)(0x42624084UL)) +#define bFM3_INTREQ_DQESEL_ESEL102 *((volatile unsigned int*)(0x42624088UL)) +#define bFM3_INTREQ_DQESEL_ESEL103 *((volatile unsigned int*)(0x4262408CUL)) +#define bFM3_INTREQ_DQESEL_ESEL110 *((volatile unsigned int*)(0x42624090UL)) +#define bFM3_INTREQ_DQESEL_ESEL111 *((volatile unsigned int*)(0x42624094UL)) +#define bFM3_INTREQ_DQESEL_ESEL112 *((volatile unsigned int*)(0x42624098UL)) +#define bFM3_INTREQ_DQESEL_ESEL113 *((volatile unsigned int*)(0x4262409CUL)) +#define bFM3_INTREQ_DQESEL_ESEL240 *((volatile unsigned int*)(0x426240A0UL)) +#define bFM3_INTREQ_DQESEL_ESEL241 *((volatile unsigned int*)(0x426240A4UL)) +#define bFM3_INTREQ_DQESEL_ESEL242 *((volatile unsigned int*)(0x426240A8UL)) +#define bFM3_INTREQ_DQESEL_ESEL243 *((volatile unsigned int*)(0x426240ACUL)) +#define bFM3_INTREQ_DQESEL_ESEL250 *((volatile unsigned int*)(0x426240B0UL)) +#define bFM3_INTREQ_DQESEL_ESEL251 *((volatile unsigned int*)(0x426240B4UL)) +#define bFM3_INTREQ_DQESEL_ESEL252 *((volatile unsigned int*)(0x426240B8UL)) +#define bFM3_INTREQ_DQESEL_ESEL253 *((volatile unsigned int*)(0x426240BCUL)) +#define bFM3_INTREQ_DQESEL_ESEL260 *((volatile unsigned int*)(0x426240C0UL)) +#define bFM3_INTREQ_DQESEL_ESEL261 *((volatile unsigned int*)(0x426240C4UL)) +#define bFM3_INTREQ_DQESEL_ESEL262 *((volatile unsigned int*)(0x426240C8UL)) +#define bFM3_INTREQ_DQESEL_ESEL263 *((volatile unsigned int*)(0x426240CCUL)) +#define bFM3_INTREQ_DQESEL_ESEL270 *((volatile unsigned int*)(0x426240D0UL)) +#define bFM3_INTREQ_DQESEL_ESEL271 *((volatile unsigned int*)(0x426240D4UL)) +#define bFM3_INTREQ_DQESEL_ESEL272 *((volatile unsigned int*)(0x426240D8UL)) +#define bFM3_INTREQ_DQESEL_ESEL273 *((volatile unsigned int*)(0x426240DCUL)) +#define bFM3_INTREQ_DQESEL_ESEL300 *((volatile unsigned int*)(0x426240E0UL)) +#define bFM3_INTREQ_DQESEL_ESEL301 *((volatile unsigned int*)(0x426240E4UL)) +#define bFM3_INTREQ_DQESEL_ESEL302 *((volatile unsigned int*)(0x426240E8UL)) +#define bFM3_INTREQ_DQESEL_ESEL303 *((volatile unsigned int*)(0x426240ECUL)) +#define bFM3_INTREQ_DQESEL_ESEL310 *((volatile unsigned int*)(0x426240F0UL)) +#define bFM3_INTREQ_DQESEL_ESEL311 *((volatile unsigned int*)(0x426240F4UL)) +#define bFM3_INTREQ_DQESEL_ESEL312 *((volatile unsigned int*)(0x426240F8UL)) +#define bFM3_INTREQ_DQESEL_ESEL313 *((volatile unsigned int*)(0x426240FCUL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS10 *((volatile unsigned char*)(0x426241E0UL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS11 *((volatile unsigned char*)(0x426241E4UL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS12 *((volatile unsigned char*)(0x426241E8UL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS13 *((volatile unsigned char*)(0x426241ECUL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS14 *((volatile unsigned char*)(0x426241F0UL)) + +/* General purpose I/O registers */ +#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) +#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) +#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) +#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) +#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) +#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) +#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) +#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) +#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) +#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) +#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) +#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) +#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) +#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) +#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) +#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) +#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) +#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) +#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) +#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) +#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) +#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) +#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) +#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) +#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) +#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) +#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) +#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) +#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) +#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) +#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) +#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) +#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) +#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) +#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) +#define bFM3_GPIO_PFR2_P9 *((volatile unsigned int*)(0x42660124UL)) +#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) +#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) +#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) +#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) +#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) +#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) +#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) +#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) +#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) +#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) +#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) +#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) +#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) +#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) +#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) +#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) +#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) +#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) +#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) +#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) +#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) +#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) +#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) +#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) +#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) +#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) +#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) +#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) +#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) +#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) +#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) +#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) +#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) +#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) +#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) +#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) +#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) +#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) +#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) +#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) +#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) +#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) +#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) +#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) +#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) +#define bFM3_GPIO_PFR7_P5 *((volatile unsigned int*)(0x42660394UL)) +#define bFM3_GPIO_PFR7_P6 *((volatile unsigned int*)(0x42660398UL)) +#define bFM3_GPIO_PFR7_P7 *((volatile unsigned int*)(0x4266039CUL)) +#define bFM3_GPIO_PFR7_P8 *((volatile unsigned int*)(0x426603A0UL)) +#define bFM3_GPIO_PFR7_P9 *((volatile unsigned int*)(0x426603A4UL)) +#define bFM3_GPIO_PFR7_PA *((volatile unsigned int*)(0x426603A8UL)) +#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) +#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) +#define bFM3_GPIO_PFR8_P2 *((volatile unsigned int*)(0x42660408UL)) +#define bFM3_GPIO_PFR8_P3 *((volatile unsigned int*)(0x4266040CUL)) +#define bFM3_GPIO_PFRA_P0 *((volatile unsigned int*)(0x42660500UL)) +#define bFM3_GPIO_PFRA_P1 *((volatile unsigned int*)(0x42660504UL)) +#define bFM3_GPIO_PFRA_P2 *((volatile unsigned int*)(0x42660508UL)) +#define bFM3_GPIO_PFRA_P3 *((volatile unsigned int*)(0x4266050CUL)) +#define bFM3_GPIO_PFRA_P4 *((volatile unsigned int*)(0x42660510UL)) +#define bFM3_GPIO_PFRA_P5 *((volatile unsigned int*)(0x42660514UL)) +#define bFM3_GPIO_PFRC_P0 *((volatile unsigned int*)(0x42660600UL)) +#define bFM3_GPIO_PFRC_P1 *((volatile unsigned int*)(0x42660604UL)) +#define bFM3_GPIO_PFRC_P2 *((volatile unsigned int*)(0x42660608UL)) +#define bFM3_GPIO_PFRC_P3 *((volatile unsigned int*)(0x4266060CUL)) +#define bFM3_GPIO_PFRC_P4 *((volatile unsigned int*)(0x42660610UL)) +#define bFM3_GPIO_PFRC_P5 *((volatile unsigned int*)(0x42660614UL)) +#define bFM3_GPIO_PFRC_P6 *((volatile unsigned int*)(0x42660618UL)) +#define bFM3_GPIO_PFRC_P7 *((volatile unsigned int*)(0x4266061CUL)) +#define bFM3_GPIO_PFRC_P8 *((volatile unsigned int*)(0x42660620UL)) +#define bFM3_GPIO_PFRC_P9 *((volatile unsigned int*)(0x42660624UL)) +#define bFM3_GPIO_PFRC_PA *((volatile unsigned int*)(0x42660628UL)) +#define bFM3_GPIO_PFRC_PB *((volatile unsigned int*)(0x4266062CUL)) +#define bFM3_GPIO_PFRC_PC *((volatile unsigned int*)(0x42660630UL)) +#define bFM3_GPIO_PFRC_PD *((volatile unsigned int*)(0x42660634UL)) +#define bFM3_GPIO_PFRC_PE *((volatile unsigned int*)(0x42660638UL)) +#define bFM3_GPIO_PFRC_PF *((volatile unsigned int*)(0x4266063CUL)) +#define bFM3_GPIO_PFRD_P0 *((volatile unsigned int*)(0x42660680UL)) +#define bFM3_GPIO_PFRD_P1 *((volatile unsigned int*)(0x42660684UL)) +#define bFM3_GPIO_PFRD_P2 *((volatile unsigned int*)(0x42660688UL)) +#define bFM3_GPIO_PFRD_P3 *((volatile unsigned int*)(0x4266068CUL)) +#define bFM3_GPIO_PFRE_P0 *((volatile unsigned int*)(0x42660700UL)) +#define bFM3_GPIO_PFRE_P2 *((volatile unsigned int*)(0x42660708UL)) +#define bFM3_GPIO_PFRE_P3 *((volatile unsigned int*)(0x4266070CUL)) +#define bFM3_GPIO_PFRF_P5 *((volatile unsigned int*)(0x42660794UL)) +#define bFM3_GPIO_PFRF_P6 *((volatile unsigned int*)(0x42660798UL)) +#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) +#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) +#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) +#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) +#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) +#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) +#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) +#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) +#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) +#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) +#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) +#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) +#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) +#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) +#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) +#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) +#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) +#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) +#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) +#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) +#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) +#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) +#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) +#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) +#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) +#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) +#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) +#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) +#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) +#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) +#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) +#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) +#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) +#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) +#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) +#define bFM3_GPIO_PCR2_P9 *((volatile unsigned int*)(0x42662124UL)) +#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) +#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) +#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) +#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) +#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) +#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) +#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) +#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) +#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) +#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) +#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) +#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) +#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) +#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) +#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) +#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) +#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) +#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) +#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) +#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) +#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) +#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) +#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) +#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) +#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) +#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) +#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) +#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) +#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) +#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) +#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) +#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) +#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) +#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) +#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) +#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) +#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) +#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) +#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) +#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) +#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) +#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) +#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) +#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) +#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) +#define bFM3_GPIO_PCR7_P5 *((volatile unsigned int*)(0x42662394UL)) +#define bFM3_GPIO_PCR7_P6 *((volatile unsigned int*)(0x42662398UL)) +#define bFM3_GPIO_PCR7_P7 *((volatile unsigned int*)(0x4266239CUL)) +#define bFM3_GPIO_PCR7_P8 *((volatile unsigned int*)(0x426623A0UL)) +#define bFM3_GPIO_PCR7_P9 *((volatile unsigned int*)(0x426623A4UL)) +#define bFM3_GPIO_PCR7_PA *((volatile unsigned int*)(0x426623A8UL)) +#define bFM3_GPIO_PCRA_P0 *((volatile unsigned int*)(0x42662500UL)) +#define bFM3_GPIO_PCRA_P1 *((volatile unsigned int*)(0x42662504UL)) +#define bFM3_GPIO_PCRA_P2 *((volatile unsigned int*)(0x42662508UL)) +#define bFM3_GPIO_PCRA_P3 *((volatile unsigned int*)(0x4266250CUL)) +#define bFM3_GPIO_PCRA_P4 *((volatile unsigned int*)(0x42662510UL)) +#define bFM3_GPIO_PCRA_P5 *((volatile unsigned int*)(0x42662514UL)) +#define bFM3_GPIO_PCRC_P0 *((volatile unsigned int*)(0x42662600UL)) +#define bFM3_GPIO_PCRC_P1 *((volatile unsigned int*)(0x42662604UL)) +#define bFM3_GPIO_PCRC_P2 *((volatile unsigned int*)(0x42662608UL)) +#define bFM3_GPIO_PCRC_P3 *((volatile unsigned int*)(0x4266260CUL)) +#define bFM3_GPIO_PCRC_P4 *((volatile unsigned int*)(0x42662610UL)) +#define bFM3_GPIO_PCRC_P5 *((volatile unsigned int*)(0x42662614UL)) +#define bFM3_GPIO_PCRC_P6 *((volatile unsigned int*)(0x42662618UL)) +#define bFM3_GPIO_PCRC_P7 *((volatile unsigned int*)(0x4266261CUL)) +#define bFM3_GPIO_PCRC_P8 *((volatile unsigned int*)(0x42662620UL)) +#define bFM3_GPIO_PCRC_P9 *((volatile unsigned int*)(0x42662624UL)) +#define bFM3_GPIO_PCRC_PA *((volatile unsigned int*)(0x42662628UL)) +#define bFM3_GPIO_PCRC_PB *((volatile unsigned int*)(0x4266262CUL)) +#define bFM3_GPIO_PCRC_PC *((volatile unsigned int*)(0x42662630UL)) +#define bFM3_GPIO_PCRC_PD *((volatile unsigned int*)(0x42662634UL)) +#define bFM3_GPIO_PCRC_PE *((volatile unsigned int*)(0x42662638UL)) +#define bFM3_GPIO_PCRC_PF *((volatile unsigned int*)(0x4266263CUL)) +#define bFM3_GPIO_PCRD_P0 *((volatile unsigned int*)(0x42662680UL)) +#define bFM3_GPIO_PCRD_P1 *((volatile unsigned int*)(0x42662684UL)) +#define bFM3_GPIO_PCRD_P2 *((volatile unsigned int*)(0x42662688UL)) +#define bFM3_GPIO_PCRD_P3 *((volatile unsigned int*)(0x4266268CUL)) +#define bFM3_GPIO_PCRE_P2 *((volatile unsigned int*)(0x42662708UL)) +#define bFM3_GPIO_PCRE_P3 *((volatile unsigned int*)(0x4266270CUL)) +#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) +#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) +#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) +#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) +#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) +#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) +#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) +#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) +#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) +#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) +#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) +#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) +#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) +#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) +#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) +#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) +#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) +#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) +#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) +#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) +#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) +#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) +#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) +#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) +#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) +#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) +#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) +#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) +#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) +#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) +#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) +#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) +#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) +#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) +#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) +#define bFM3_GPIO_DDR2_P9 *((volatile unsigned int*)(0x42664124UL)) +#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) +#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) +#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) +#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) +#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) +#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) +#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) +#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) +#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) +#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) +#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) +#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) +#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) +#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) +#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) +#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) +#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) +#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) +#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) +#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) +#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) +#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) +#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) +#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) +#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) +#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) +#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) +#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) +#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) +#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) +#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) +#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) +#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) +#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) +#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) +#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) +#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) +#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) +#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) +#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) +#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) +#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) +#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) +#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) +#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) +#define bFM3_GPIO_DDR7_P5 *((volatile unsigned int*)(0x42664394UL)) +#define bFM3_GPIO_DDR7_P6 *((volatile unsigned int*)(0x42664398UL)) +#define bFM3_GPIO_DDR7_P7 *((volatile unsigned int*)(0x4266439CUL)) +#define bFM3_GPIO_DDR7_P8 *((volatile unsigned int*)(0x426643A0UL)) +#define bFM3_GPIO_DDR7_P9 *((volatile unsigned int*)(0x426643A4UL)) +#define bFM3_GPIO_DDR7_PA *((volatile unsigned int*)(0x426643A8UL)) +#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) +#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) +#define bFM3_GPIO_DDR8_P2 *((volatile unsigned int*)(0x42664408UL)) +#define bFM3_GPIO_DDR8_P3 *((volatile unsigned int*)(0x4266440CUL)) +#define bFM3_GPIO_DDRA_P0 *((volatile unsigned int*)(0x42664500UL)) +#define bFM3_GPIO_DDRA_P1 *((volatile unsigned int*)(0x42664504UL)) +#define bFM3_GPIO_DDRA_P2 *((volatile unsigned int*)(0x42664508UL)) +#define bFM3_GPIO_DDRA_P3 *((volatile unsigned int*)(0x4266450CUL)) +#define bFM3_GPIO_DDRA_P4 *((volatile unsigned int*)(0x42664510UL)) +#define bFM3_GPIO_DDRA_P5 *((volatile unsigned int*)(0x42664514UL)) +#define bFM3_GPIO_DDRC_P0 *((volatile unsigned int*)(0x42664600UL)) +#define bFM3_GPIO_DDRC_P1 *((volatile unsigned int*)(0x42664604UL)) +#define bFM3_GPIO_DDRC_P2 *((volatile unsigned int*)(0x42664608UL)) +#define bFM3_GPIO_DDRC_P3 *((volatile unsigned int*)(0x4266460CUL)) +#define bFM3_GPIO_DDRC_P4 *((volatile unsigned int*)(0x42664610UL)) +#define bFM3_GPIO_DDRC_P5 *((volatile unsigned int*)(0x42664614UL)) +#define bFM3_GPIO_DDRC_P6 *((volatile unsigned int*)(0x42664618UL)) +#define bFM3_GPIO_DDRC_P7 *((volatile unsigned int*)(0x4266461CUL)) +#define bFM3_GPIO_DDRC_P8 *((volatile unsigned int*)(0x42664620UL)) +#define bFM3_GPIO_DDRC_P9 *((volatile unsigned int*)(0x42664624UL)) +#define bFM3_GPIO_DDRC_PA *((volatile unsigned int*)(0x42664628UL)) +#define bFM3_GPIO_DDRC_PB *((volatile unsigned int*)(0x4266462CUL)) +#define bFM3_GPIO_DDRC_PC *((volatile unsigned int*)(0x42664630UL)) +#define bFM3_GPIO_DDRC_PD *((volatile unsigned int*)(0x42664634UL)) +#define bFM3_GPIO_DDRC_PE *((volatile unsigned int*)(0x42664638UL)) +#define bFM3_GPIO_DDRC_PF *((volatile unsigned int*)(0x4266463CUL)) +#define bFM3_GPIO_DDRD_P0 *((volatile unsigned int*)(0x42664680UL)) +#define bFM3_GPIO_DDRD_P1 *((volatile unsigned int*)(0x42664684UL)) +#define bFM3_GPIO_DDRD_P2 *((volatile unsigned int*)(0x42664688UL)) +#define bFM3_GPIO_DDRD_P3 *((volatile unsigned int*)(0x4266468CUL)) +#define bFM3_GPIO_DDRE_P0 *((volatile unsigned int*)(0x42664700UL)) +#define bFM3_GPIO_DDRE_P2 *((volatile unsigned int*)(0x42664708UL)) +#define bFM3_GPIO_DDRE_P3 *((volatile unsigned int*)(0x4266470CUL)) +#define bFM3_GPIO_DDRF_P5 *((volatile unsigned int*)(0x42664794UL)) +#define bFM3_GPIO_DDRF_P6 *((volatile unsigned int*)(0x42664798UL)) +#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) +#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) +#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) +#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) +#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) +#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) +#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) +#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) +#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) +#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) +#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) +#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) +#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) +#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) +#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) +#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) +#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) +#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) +#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) +#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) +#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) +#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) +#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) +#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) +#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) +#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) +#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) +#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) +#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) +#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) +#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) +#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) +#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) +#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) +#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) +#define bFM3_GPIO_PDIR2_P9 *((volatile unsigned int*)(0x42666124UL)) +#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) +#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) +#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) +#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) +#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) +#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) +#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) +#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) +#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) +#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) +#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) +#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) +#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) +#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) +#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) +#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) +#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) +#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) +#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) +#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) +#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) +#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) +#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) +#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) +#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) +#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) +#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) +#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) +#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) +#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) +#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) +#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) +#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) +#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) +#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) +#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) +#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) +#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) +#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) +#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) +#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) +#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) +#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) +#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) +#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) +#define bFM3_GPIO_PDIR7_P5 *((volatile unsigned int*)(0x42666394UL)) +#define bFM3_GPIO_PDIR7_P6 *((volatile unsigned int*)(0x42666398UL)) +#define bFM3_GPIO_PDIR7_P7 *((volatile unsigned int*)(0x4266639CUL)) +#define bFM3_GPIO_PDIR7_P8 *((volatile unsigned int*)(0x426663A0UL)) +#define bFM3_GPIO_PDIR7_P9 *((volatile unsigned int*)(0x426663A4UL)) +#define bFM3_GPIO_PDIR7_PA *((volatile unsigned int*)(0x426663A8UL)) +#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) +#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) +#define bFM3_GPIO_PDIR8_P2 *((volatile unsigned int*)(0x42666408UL)) +#define bFM3_GPIO_PDIR8_P3 *((volatile unsigned int*)(0x4266640CUL)) +#define bFM3_GPIO_PDIRA_P0 *((volatile unsigned int*)(0x42666500UL)) +#define bFM3_GPIO_PDIRA_P1 *((volatile unsigned int*)(0x42666504UL)) +#define bFM3_GPIO_PDIRA_P2 *((volatile unsigned int*)(0x42666508UL)) +#define bFM3_GPIO_PDIRA_P3 *((volatile unsigned int*)(0x4266650CUL)) +#define bFM3_GPIO_PDIRA_P4 *((volatile unsigned int*)(0x42666510UL)) +#define bFM3_GPIO_PDIRA_P5 *((volatile unsigned int*)(0x42666514UL)) +#define bFM3_GPIO_PDIRC_P0 *((volatile unsigned int*)(0x42666600UL)) +#define bFM3_GPIO_PDIRC_P1 *((volatile unsigned int*)(0x42666604UL)) +#define bFM3_GPIO_PDIRC_P2 *((volatile unsigned int*)(0x42666608UL)) +#define bFM3_GPIO_PDIRC_P3 *((volatile unsigned int*)(0x4266660CUL)) +#define bFM3_GPIO_PDIRC_P4 *((volatile unsigned int*)(0x42666610UL)) +#define bFM3_GPIO_PDIRC_P5 *((volatile unsigned int*)(0x42666614UL)) +#define bFM3_GPIO_PDIRC_P6 *((volatile unsigned int*)(0x42666618UL)) +#define bFM3_GPIO_PDIRC_P7 *((volatile unsigned int*)(0x4266661CUL)) +#define bFM3_GPIO_PDIRC_P8 *((volatile unsigned int*)(0x42666620UL)) +#define bFM3_GPIO_PDIRC_P9 *((volatile unsigned int*)(0x42666624UL)) +#define bFM3_GPIO_PDIRC_PA *((volatile unsigned int*)(0x42666628UL)) +#define bFM3_GPIO_PDIRC_PB *((volatile unsigned int*)(0x4266662CUL)) +#define bFM3_GPIO_PDIRC_PC *((volatile unsigned int*)(0x42666630UL)) +#define bFM3_GPIO_PDIRC_PD *((volatile unsigned int*)(0x42666634UL)) +#define bFM3_GPIO_PDIRC_PE *((volatile unsigned int*)(0x42666638UL)) +#define bFM3_GPIO_PDIRC_PF *((volatile unsigned int*)(0x4266663CUL)) +#define bFM3_GPIO_PDIRD_P0 *((volatile unsigned int*)(0x42666680UL)) +#define bFM3_GPIO_PDIRD_P1 *((volatile unsigned int*)(0x42666684UL)) +#define bFM3_GPIO_PDIRD_P2 *((volatile unsigned int*)(0x42666688UL)) +#define bFM3_GPIO_PDIRD_P3 *((volatile unsigned int*)(0x4266668CUL)) +#define bFM3_GPIO_PDIRE_P0 *((volatile unsigned int*)(0x42666700UL)) +#define bFM3_GPIO_PDIRE_P2 *((volatile unsigned int*)(0x42666708UL)) +#define bFM3_GPIO_PDIRE_P3 *((volatile unsigned int*)(0x4266670CUL)) +#define bFM3_GPIO_PDIRF_P5 *((volatile unsigned int*)(0x42666794UL)) +#define bFM3_GPIO_PDIRF_P6 *((volatile unsigned int*)(0x42666798UL)) +#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) +#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) +#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) +#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) +#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) +#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) +#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) +#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) +#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) +#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) +#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) +#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) +#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) +#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) +#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) +#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) +#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) +#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) +#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) +#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) +#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) +#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) +#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) +#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) +#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) +#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) +#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) +#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) +#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) +#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) +#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) +#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) +#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) +#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) +#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) +#define bFM3_GPIO_PDOR2_P9 *((volatile unsigned int*)(0x42668124UL)) +#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) +#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) +#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) +#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) +#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) +#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) +#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) +#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) +#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) +#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) +#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) +#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) +#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) +#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) +#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) +#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) +#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) +#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) +#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) +#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) +#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) +#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) +#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) +#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) +#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) +#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) +#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) +#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) +#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) +#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) +#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) +#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) +#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) +#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) +#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) +#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) +#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) +#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) +#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) +#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) +#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) +#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) +#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) +#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) +#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) +#define bFM3_GPIO_PDOR7_P5 *((volatile unsigned int*)(0x42668394UL)) +#define bFM3_GPIO_PDOR7_P6 *((volatile unsigned int*)(0x42668398UL)) +#define bFM3_GPIO_PDOR7_P7 *((volatile unsigned int*)(0x4266839CUL)) +#define bFM3_GPIO_PDOR7_P8 *((volatile unsigned int*)(0x426683A0UL)) +#define bFM3_GPIO_PDOR7_P9 *((volatile unsigned int*)(0x426683A4UL)) +#define bFM3_GPIO_PDOR7_PA *((volatile unsigned int*)(0x426683A8UL)) +#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) +#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) +#define bFM3_GPIO_PDOR8_P2 *((volatile unsigned int*)(0x42668408UL)) +#define bFM3_GPIO_PDOR8_P3 *((volatile unsigned int*)(0x4266840CUL)) +#define bFM3_GPIO_PDORA_P0 *((volatile unsigned int*)(0x42668500UL)) +#define bFM3_GPIO_PDORA_P1 *((volatile unsigned int*)(0x42668504UL)) +#define bFM3_GPIO_PDORA_P2 *((volatile unsigned int*)(0x42668508UL)) +#define bFM3_GPIO_PDORA_P3 *((volatile unsigned int*)(0x4266850CUL)) +#define bFM3_GPIO_PDORA_P4 *((volatile unsigned int*)(0x42668510UL)) +#define bFM3_GPIO_PDORA_P5 *((volatile unsigned int*)(0x42668514UL)) +#define bFM3_GPIO_PDORC_P0 *((volatile unsigned int*)(0x42668600UL)) +#define bFM3_GPIO_PDORC_P1 *((volatile unsigned int*)(0x42668604UL)) +#define bFM3_GPIO_PDORC_P2 *((volatile unsigned int*)(0x42668608UL)) +#define bFM3_GPIO_PDORC_P3 *((volatile unsigned int*)(0x4266860CUL)) +#define bFM3_GPIO_PDORC_P4 *((volatile unsigned int*)(0x42668610UL)) +#define bFM3_GPIO_PDORC_P5 *((volatile unsigned int*)(0x42668614UL)) +#define bFM3_GPIO_PDORC_P6 *((volatile unsigned int*)(0x42668618UL)) +#define bFM3_GPIO_PDORC_P7 *((volatile unsigned int*)(0x4266861CUL)) +#define bFM3_GPIO_PDORC_P8 *((volatile unsigned int*)(0x42668620UL)) +#define bFM3_GPIO_PDORC_P9 *((volatile unsigned int*)(0x42668624UL)) +#define bFM3_GPIO_PDORC_PA *((volatile unsigned int*)(0x42668628UL)) +#define bFM3_GPIO_PDORC_PB *((volatile unsigned int*)(0x4266862CUL)) +#define bFM3_GPIO_PDORC_PC *((volatile unsigned int*)(0x42668630UL)) +#define bFM3_GPIO_PDORC_PD *((volatile unsigned int*)(0x42668634UL)) +#define bFM3_GPIO_PDORC_PE *((volatile unsigned int*)(0x42668638UL)) +#define bFM3_GPIO_PDORC_PF *((volatile unsigned int*)(0x4266863CUL)) +#define bFM3_GPIO_PDORD_P0 *((volatile unsigned int*)(0x42668680UL)) +#define bFM3_GPIO_PDORD_P1 *((volatile unsigned int*)(0x42668684UL)) +#define bFM3_GPIO_PDORD_P2 *((volatile unsigned int*)(0x42668688UL)) +#define bFM3_GPIO_PDORD_P3 *((volatile unsigned int*)(0x4266868CUL)) +#define bFM3_GPIO_PDORE_P0 *((volatile unsigned int*)(0x42668700UL)) +#define bFM3_GPIO_PDORE_P2 *((volatile unsigned int*)(0x42668708UL)) +#define bFM3_GPIO_PDORE_P3 *((volatile unsigned int*)(0x4266870CUL)) +#define bFM3_GPIO_PDORF_P5 *((volatile unsigned int*)(0x42668794UL)) +#define bFM3_GPIO_PDORF_P6 *((volatile unsigned int*)(0x42668798UL)) +#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) +#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) +#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) +#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) +#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) +#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) +#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) +#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) +#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) +#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) +#define bFM3_GPIO_ADE_AN10 *((volatile unsigned int*)(0x4266A028UL)) +#define bFM3_GPIO_ADE_AN11 *((volatile unsigned int*)(0x4266A02CUL)) +#define bFM3_GPIO_ADE_AN12 *((volatile unsigned int*)(0x4266A030UL)) +#define bFM3_GPIO_ADE_AN13 *((volatile unsigned int*)(0x4266A034UL)) +#define bFM3_GPIO_ADE_AN14 *((volatile unsigned int*)(0x4266A038UL)) +#define bFM3_GPIO_ADE_AN15 *((volatile unsigned int*)(0x4266A03CUL)) +#define bFM3_GPIO_ADE_AN24 *((volatile unsigned int*)(0x4266A060UL)) +#define bFM3_GPIO_ADE_AN25 *((volatile unsigned int*)(0x4266A064UL)) +#define bFM3_GPIO_ADE_AN26 *((volatile unsigned int*)(0x4266A068UL)) +#define bFM3_GPIO_ADE_AN27 *((volatile unsigned int*)(0x4266A06CUL)) +#define bFM3_GPIO_ADE_AN28 *((volatile unsigned int*)(0x4266A070UL)) +#define bFM3_GPIO_ADE_AN29 *((volatile unsigned int*)(0x4266A074UL)) +#define bFM3_GPIO_ADE_AN30 *((volatile unsigned int*)(0x4266A078UL)) +#define bFM3_GPIO_ADE_AN31 *((volatile unsigned int*)(0x4266A07CUL)) +#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) +#define bFM3_GPIO_SPSR_MAINXC *((volatile unsigned int*)(0x4266B008UL)) +#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) +#define bFM3_GPIO_SPSR_USB1C *((volatile unsigned int*)(0x4266B014UL)) +#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) +#define bFM3_GPIO_EPFR00_CROUTE0 *((volatile unsigned int*)(0x4266C004UL)) +#define bFM3_GPIO_EPFR00_CROUTE1 *((volatile unsigned int*)(0x4266C008UL)) +#define bFM3_GPIO_EPFR00_SUBOUTE0 *((volatile unsigned int*)(0x4266C018UL)) +#define bFM3_GPIO_EPFR00_SUBOUTE1 *((volatile unsigned int*)(0x4266C01CUL)) +#define bFM3_GPIO_EPFR00_USBP0E *((volatile unsigned int*)(0x4266C024UL)) +#define bFM3_GPIO_EPFR00_USBP1E *((volatile unsigned int*)(0x4266C034UL)) +#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) +#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) +#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) +#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) +#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) +#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) +#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) +#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) +#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) +#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) +#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) +#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) +#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) +#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) +#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) +#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) +#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) +#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) +#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) +#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) +#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) +#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) +#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) +#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) +#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) +#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) +#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) +#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) +#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) +#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) +#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) +#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) +#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) +#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) +#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) +#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) +#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) +#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) +#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) +#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) +#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) +#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) +#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) +#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) +#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) +#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) +#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) +#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) +#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) +#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) +#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) +#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) +#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) +#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) +#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) +#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) +#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) +#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) +#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) +#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) +#define bFM3_GPIO_EPFR03_RTO20E0 *((volatile unsigned int*)(0x4266C180UL)) +#define bFM3_GPIO_EPFR03_RTO20E1 *((volatile unsigned int*)(0x4266C184UL)) +#define bFM3_GPIO_EPFR03_RTO21E0 *((volatile unsigned int*)(0x4266C188UL)) +#define bFM3_GPIO_EPFR03_RTO21E1 *((volatile unsigned int*)(0x4266C18CUL)) +#define bFM3_GPIO_EPFR03_RTO22E0 *((volatile unsigned int*)(0x4266C190UL)) +#define bFM3_GPIO_EPFR03_RTO22E1 *((volatile unsigned int*)(0x4266C194UL)) +#define bFM3_GPIO_EPFR03_RTO23E0 *((volatile unsigned int*)(0x4266C198UL)) +#define bFM3_GPIO_EPFR03_RTO23E1 *((volatile unsigned int*)(0x4266C19CUL)) +#define bFM3_GPIO_EPFR03_RTO24E0 *((volatile unsigned int*)(0x4266C1A0UL)) +#define bFM3_GPIO_EPFR03_RTO24E1 *((volatile unsigned int*)(0x4266C1A4UL)) +#define bFM3_GPIO_EPFR03_RTO25E0 *((volatile unsigned int*)(0x4266C1A8UL)) +#define bFM3_GPIO_EPFR03_RTO25E1 *((volatile unsigned int*)(0x4266C1ACUL)) +#define bFM3_GPIO_EPFR03_DTTI2C *((volatile unsigned int*)(0x4266C1B0UL)) +#define bFM3_GPIO_EPFR03_DTTI2S0 *((volatile unsigned int*)(0x4266C1C0UL)) +#define bFM3_GPIO_EPFR03_DTTI2S1 *((volatile unsigned int*)(0x4266C1C4UL)) +#define bFM3_GPIO_EPFR03_FRCK2S0 *((volatile unsigned int*)(0x4266C1C8UL)) +#define bFM3_GPIO_EPFR03_FRCK2S1 *((volatile unsigned int*)(0x4266C1CCUL)) +#define bFM3_GPIO_EPFR03_IC20S0 *((volatile unsigned int*)(0x4266C1D0UL)) +#define bFM3_GPIO_EPFR03_IC20S1 *((volatile unsigned int*)(0x4266C1D4UL)) +#define bFM3_GPIO_EPFR03_IC20S2 *((volatile unsigned int*)(0x4266C1D8UL)) +#define bFM3_GPIO_EPFR03_IC21S0 *((volatile unsigned int*)(0x4266C1DCUL)) +#define bFM3_GPIO_EPFR03_IC21S1 *((volatile unsigned int*)(0x4266C1E0UL)) +#define bFM3_GPIO_EPFR03_IC21S2 *((volatile unsigned int*)(0x4266C1E4UL)) +#define bFM3_GPIO_EPFR03_IC22S0 *((volatile unsigned int*)(0x4266C1E8UL)) +#define bFM3_GPIO_EPFR03_IC22S1 *((volatile unsigned int*)(0x4266C1ECUL)) +#define bFM3_GPIO_EPFR03_IC22S2 *((volatile unsigned int*)(0x4266C1F0UL)) +#define bFM3_GPIO_EPFR03_IC23S0 *((volatile unsigned int*)(0x4266C1F4UL)) +#define bFM3_GPIO_EPFR03_IC23S1 *((volatile unsigned int*)(0x4266C1F8UL)) +#define bFM3_GPIO_EPFR03_IC23S2 *((volatile unsigned int*)(0x4266C1FCUL)) +#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) +#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) +#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) +#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) +#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) +#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) +#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) +#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) +#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) +#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) +#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) +#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) +#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) +#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) +#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) +#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) +#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) +#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) +#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) +#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) +#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) +#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) +#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) +#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) +#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) +#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) +#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) +#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) +#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) +#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) +#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) +#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) +#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) +#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) +#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) +#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) +#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) +#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) +#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) +#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) +#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) +#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) +#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) +#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) +#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) +#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) +#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) +#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) +#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) +#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) +#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) +#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) +#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) +#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) +#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) +#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) +#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) +#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) +#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) +#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) +#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) +#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) +#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) +#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) +#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) +#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) +#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) +#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) +#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) +#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) +#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) +#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) +#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) +#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) +#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) +#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) +#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) +#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) +#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) +#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) +#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) +#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) +#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) +#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) +#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) +#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) +#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) +#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) +#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) +#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) +#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) +#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) +#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) +#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) +#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) +#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) +#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) +#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) +#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) +#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) +#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) +#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) +#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) +#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) +#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) +#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) +#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) +#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) +#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) +#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) +#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) +#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) +#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) +#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) +#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) +#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) +#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) +#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) +#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) +#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) +#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) +#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) +#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) +#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) +#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) +#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) +#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) +#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) +#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) +#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) +#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) +#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) +#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) +#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) +#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) +#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) +#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) +#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) +#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) +#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) +#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) +#define bFM3_GPIO_EPFR10_UECLKE *((volatile unsigned int*)(0x4266C508UL)) +#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) +#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) +#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) +#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) +#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) +#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) +#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) +#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) +#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) +#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) +#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) +#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) +#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) +#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) +#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) +#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) +#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) +#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) +#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) +#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) +#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) +#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) +#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) +#define bFM3_GPIO_EPFR11_UEALEE *((volatile unsigned int*)(0x4266C580UL)) +#define bFM3_GPIO_EPFR11_UECS0E *((volatile unsigned int*)(0x4266C584UL)) +#define bFM3_GPIO_EPFR11_UEA01E *((volatile unsigned int*)(0x4266C588UL)) +#define bFM3_GPIO_EPFR11_UEA02E *((volatile unsigned int*)(0x4266C58CUL)) +#define bFM3_GPIO_EPFR11_UEA03E *((volatile unsigned int*)(0x4266C590UL)) +#define bFM3_GPIO_EPFR11_UEA04E *((volatile unsigned int*)(0x4266C594UL)) +#define bFM3_GPIO_EPFR11_UEA05E *((volatile unsigned int*)(0x4266C598UL)) +#define bFM3_GPIO_EPFR11_UEA06E *((volatile unsigned int*)(0x4266C59CUL)) +#define bFM3_GPIO_EPFR11_UEA07E *((volatile unsigned int*)(0x4266C5A0UL)) +#define bFM3_GPIO_EPFR11_UED00B *((volatile unsigned int*)(0x4266C5A4UL)) +#define bFM3_GPIO_EPFR11_UED01B *((volatile unsigned int*)(0x4266C5A8UL)) +#define bFM3_GPIO_EPFR11_UED02B *((volatile unsigned int*)(0x4266C5ACUL)) +#define bFM3_GPIO_EPFR11_UED03B *((volatile unsigned int*)(0x4266C5B0UL)) +#define bFM3_GPIO_EPFR11_UED04B *((volatile unsigned int*)(0x4266C5B4UL)) +#define bFM3_GPIO_EPFR11_UED05B *((volatile unsigned int*)(0x4266C5B8UL)) +#define bFM3_GPIO_EPFR11_UED06B *((volatile unsigned int*)(0x4266C5BCUL)) +#define bFM3_GPIO_EPFR11_UED07B *((volatile unsigned int*)(0x4266C5C0UL)) +#define bFM3_GPIO_EPFR11_UED08B *((volatile unsigned int*)(0x4266C5C4UL)) +#define bFM3_GPIO_EPFR11_UED09B *((volatile unsigned int*)(0x4266C5C8UL)) +#define bFM3_GPIO_EPFR11_UED10B *((volatile unsigned int*)(0x4266C5CCUL)) +#define bFM3_GPIO_EPFR11_UED11B *((volatile unsigned int*)(0x4266C5D0UL)) +#define bFM3_GPIO_EPFR11_UED12B *((volatile unsigned int*)(0x4266C5D4UL)) +#define bFM3_GPIO_EPFR11_UED13B *((volatile unsigned int*)(0x4266C5D8UL)) +#define bFM3_GPIO_EPFR11_UED14B *((volatile unsigned int*)(0x4266C5DCUL)) +#define bFM3_GPIO_EPFR11_UED15B *((volatile unsigned int*)(0x4266C5E0UL)) +#define bFM3_GPIO_EPFR11_UERLC *((volatile unsigned int*)(0x4266C5E4UL)) +#define bFM3_GPIO_EPFR12_TIOA8E0 *((volatile unsigned int*)(0x4266C608UL)) +#define bFM3_GPIO_EPFR12_TIOA8E1 *((volatile unsigned int*)(0x4266C60CUL)) +#define bFM3_GPIO_EPFR12_TIOB8S0 *((volatile unsigned int*)(0x4266C610UL)) +#define bFM3_GPIO_EPFR12_TIOB8S1 *((volatile unsigned int*)(0x4266C614UL)) +#define bFM3_GPIO_EPFR12_TIOA9S0 *((volatile unsigned int*)(0x4266C620UL)) +#define bFM3_GPIO_EPFR12_TIOA9S1 *((volatile unsigned int*)(0x4266C624UL)) +#define bFM3_GPIO_EPFR12_TIOA9E0 *((volatile unsigned int*)(0x4266C628UL)) +#define bFM3_GPIO_EPFR12_TIOA9E1 *((volatile unsigned int*)(0x4266C62CUL)) +#define bFM3_GPIO_EPFR12_TIOB9S0 *((volatile unsigned int*)(0x4266C630UL)) +#define bFM3_GPIO_EPFR12_TIOB9S1 *((volatile unsigned int*)(0x4266C634UL)) +#define bFM3_GPIO_EPFR12_TIOA10E0 *((volatile unsigned int*)(0x4266C648UL)) +#define bFM3_GPIO_EPFR12_TIOA10E1 *((volatile unsigned int*)(0x4266C64CUL)) +#define bFM3_GPIO_EPFR12_TIOB10S0 *((volatile unsigned int*)(0x4266C650UL)) +#define bFM3_GPIO_EPFR12_TIOB10S1 *((volatile unsigned int*)(0x4266C654UL)) +#define bFM3_GPIO_EPFR12_TIOA11S0 *((volatile unsigned int*)(0x4266C660UL)) +#define bFM3_GPIO_EPFR12_TIOA11S1 *((volatile unsigned int*)(0x4266C664UL)) +#define bFM3_GPIO_EPFR12_TIOA11E0 *((volatile unsigned int*)(0x4266C668UL)) +#define bFM3_GPIO_EPFR12_TIOA11E1 *((volatile unsigned int*)(0x4266C66CUL)) +#define bFM3_GPIO_EPFR12_TIOB11S0 *((volatile unsigned int*)(0x4266C670UL)) +#define bFM3_GPIO_EPFR12_TIOB11S1 *((volatile unsigned int*)(0x4266C674UL)) +#define bFM3_GPIO_EPFR13_TIOA12E0 *((volatile unsigned int*)(0x4266C688UL)) +#define bFM3_GPIO_EPFR13_TIOA12E1 *((volatile unsigned int*)(0x4266C68CUL)) +#define bFM3_GPIO_EPFR13_TIOB12S0 *((volatile unsigned int*)(0x4266C690UL)) +#define bFM3_GPIO_EPFR13_TIOB12S1 *((volatile unsigned int*)(0x4266C694UL)) +#define bFM3_GPIO_EPFR13_TIOA13S0 *((volatile unsigned int*)(0x4266C6A0UL)) +#define bFM3_GPIO_EPFR13_TIOA13S1 *((volatile unsigned int*)(0x4266C6A4UL)) +#define bFM3_GPIO_EPFR13_TIOA13E0 *((volatile unsigned int*)(0x4266C6A8UL)) +#define bFM3_GPIO_EPFR13_TIOA13E1 *((volatile unsigned int*)(0x4266C6ACUL)) +#define bFM3_GPIO_EPFR13_TIOB13S0 *((volatile unsigned int*)(0x4266C6B0UL)) +#define bFM3_GPIO_EPFR13_TIOB13S1 *((volatile unsigned int*)(0x4266C6B4UL)) +#define bFM3_GPIO_EPFR13_TIOA14E0 *((volatile unsigned int*)(0x4266C6C8UL)) +#define bFM3_GPIO_EPFR13_TIOA14E1 *((volatile unsigned int*)(0x4266C6CCUL)) +#define bFM3_GPIO_EPFR13_TIOB14S0 *((volatile unsigned int*)(0x4266C6D0UL)) +#define bFM3_GPIO_EPFR13_TIOB14S1 *((volatile unsigned int*)(0x4266C6D4UL)) +#define bFM3_GPIO_EPFR13_TIOA15S0 *((volatile unsigned int*)(0x4266C6E0UL)) +#define bFM3_GPIO_EPFR13_TIOA15S1 *((volatile unsigned int*)(0x4266C6E4UL)) +#define bFM3_GPIO_EPFR13_TIOA15E0 *((volatile unsigned int*)(0x4266C6E8UL)) +#define bFM3_GPIO_EPFR13_TIOA15E1 *((volatile unsigned int*)(0x4266C6ECUL)) +#define bFM3_GPIO_EPFR13_TIOB15S0 *((volatile unsigned int*)(0x4266C6F0UL)) +#define bFM3_GPIO_EPFR13_TIOB15S1 *((volatile unsigned int*)(0x4266C6F4UL)) +#define bFM3_GPIO_EPFR14_QAIN2S0 *((volatile unsigned int*)(0x4266C700UL)) +#define bFM3_GPIO_EPFR14_QAIN2S1 *((volatile unsigned int*)(0x4266C704UL)) +#define bFM3_GPIO_EPFR14_QBIN2S0 *((volatile unsigned int*)(0x4266C708UL)) +#define bFM3_GPIO_EPFR14_QBIN2S1 *((volatile unsigned int*)(0x4266C70CUL)) +#define bFM3_GPIO_EPFR14_QZIN2S0 *((volatile unsigned int*)(0x4266C710UL)) +#define bFM3_GPIO_EPFR14_QZIN2S1 *((volatile unsigned int*)(0x4266C714UL)) +#define bFM3_GPIO_EPFR14_E_TD0E *((volatile unsigned int*)(0x4266C748UL)) +#define bFM3_GPIO_EPFR14_E_TD1E *((volatile unsigned int*)(0x4266C74CUL)) +#define bFM3_GPIO_EPFR14_E_TE0E *((volatile unsigned int*)(0x4266C750UL)) +#define bFM3_GPIO_EPFR14_E_TE1E *((volatile unsigned int*)(0x4266C754UL)) +#define bFM3_GPIO_EPFR14_E_MC0E *((volatile unsigned int*)(0x4266C758UL)) +#define bFM3_GPIO_EPFR14_E_MC1B *((volatile unsigned int*)(0x4266C75CUL)) +#define bFM3_GPIO_EPFR14_E_MD0B *((volatile unsigned int*)(0x4266C760UL)) +#define bFM3_GPIO_EPFR14_E_MD1B *((volatile unsigned int*)(0x4266C764UL)) +#define bFM3_GPIO_EPFR14_E_CKE *((volatile unsigned int*)(0x4266C768UL)) +#define bFM3_GPIO_EPFR14_E_PSE *((volatile unsigned int*)(0x4266C76CUL)) +#define bFM3_GPIO_EPFR14_E_SPLC0 *((volatile unsigned int*)(0x4266C770UL)) +#define bFM3_GPIO_EPFR14_E_SPLC1 *((volatile unsigned int*)(0x4266C774UL)) +#define bFM3_GPIO_EPFR15_EINT16S0 *((volatile unsigned int*)(0x4266C780UL)) +#define bFM3_GPIO_EPFR15_EINT16S1 *((volatile unsigned int*)(0x4266C784UL)) +#define bFM3_GPIO_EPFR15_EINT17S0 *((volatile unsigned int*)(0x4266C788UL)) +#define bFM3_GPIO_EPFR15_EINT17S1 *((volatile unsigned int*)(0x4266C78CUL)) +#define bFM3_GPIO_EPFR15_EINT18S0 *((volatile unsigned int*)(0x4266C790UL)) +#define bFM3_GPIO_EPFR15_EINT18S1 *((volatile unsigned int*)(0x4266C794UL)) +#define bFM3_GPIO_EPFR15_EINT19S0 *((volatile unsigned int*)(0x4266C798UL)) +#define bFM3_GPIO_EPFR15_EINT19S1 *((volatile unsigned int*)(0x4266C79CUL)) +#define bFM3_GPIO_EPFR15_EINT20S0 *((volatile unsigned int*)(0x4266C7A0UL)) +#define bFM3_GPIO_EPFR15_EINT20S1 *((volatile unsigned int*)(0x4266C7A4UL)) +#define bFM3_GPIO_EPFR15_EINT21S0 *((volatile unsigned int*)(0x4266C7A8UL)) +#define bFM3_GPIO_EPFR15_EINT21S1 *((volatile unsigned int*)(0x4266C7ACUL)) +#define bFM3_GPIO_EPFR15_EINT22S0 *((volatile unsigned int*)(0x4266C7B0UL)) +#define bFM3_GPIO_EPFR15_EINT22S1 *((volatile unsigned int*)(0x4266C7B4UL)) +#define bFM3_GPIO_EPFR15_EINT23S0 *((volatile unsigned int*)(0x4266C7B8UL)) +#define bFM3_GPIO_EPFR15_EINT23S1 *((volatile unsigned int*)(0x4266C7BCUL)) +#define bFM3_GPIO_EPFR15_EINT24S0 *((volatile unsigned int*)(0x4266C7C0UL)) +#define bFM3_GPIO_EPFR15_EINT24S1 *((volatile unsigned int*)(0x4266C7C4UL)) +#define bFM3_GPIO_EPFR15_EINT25S0 *((volatile unsigned int*)(0x4266C7C8UL)) +#define bFM3_GPIO_EPFR15_EINT25S1 *((volatile unsigned int*)(0x4266C7CCUL)) +#define bFM3_GPIO_EPFR15_EINT26S0 *((volatile unsigned int*)(0x4266C7D0UL)) +#define bFM3_GPIO_EPFR15_EINT26S1 *((volatile unsigned int*)(0x4266C7D4UL)) +#define bFM3_GPIO_EPFR15_EINT27S0 *((volatile unsigned int*)(0x4266C7D8UL)) +#define bFM3_GPIO_EPFR15_EINT27S1 *((volatile unsigned int*)(0x4266C7DCUL)) +#define bFM3_GPIO_EPFR15_EINT28S0 *((volatile unsigned int*)(0x4266C7E0UL)) +#define bFM3_GPIO_EPFR15_EINT28S1 *((volatile unsigned int*)(0x4266C7E4UL)) +#define bFM3_GPIO_EPFR15_EINT29S0 *((volatile unsigned int*)(0x4266C7E8UL)) +#define bFM3_GPIO_EPFR15_EINT29S1 *((volatile unsigned int*)(0x4266C7ECUL)) +#define bFM3_GPIO_EPFR15_EINT30S0 *((volatile unsigned int*)(0x4266C7F0UL)) +#define bFM3_GPIO_EPFR15_EINT30S1 *((volatile unsigned int*)(0x4266C7F4UL)) +#define bFM3_GPIO_EPFR15_EINT31S0 *((volatile unsigned int*)(0x4266C7F8UL)) +#define bFM3_GPIO_EPFR15_EINT31S1 *((volatile unsigned int*)(0x4266C7FCUL)) +#define bFM3_GPIO_PZR0_P0 *((volatile unsigned int*)(0x4266E000UL)) +#define bFM3_GPIO_PZR0_P1 *((volatile unsigned int*)(0x4266E004UL)) +#define bFM3_GPIO_PZR0_P2 *((volatile unsigned int*)(0x4266E008UL)) +#define bFM3_GPIO_PZR0_P3 *((volatile unsigned int*)(0x4266E00CUL)) +#define bFM3_GPIO_PZR0_P4 *((volatile unsigned int*)(0x4266E010UL)) +#define bFM3_GPIO_PZR0_P5 *((volatile unsigned int*)(0x4266E014UL)) +#define bFM3_GPIO_PZR0_P6 *((volatile unsigned int*)(0x4266E018UL)) +#define bFM3_GPIO_PZR0_P7 *((volatile unsigned int*)(0x4266E01CUL)) +#define bFM3_GPIO_PZR0_P8 *((volatile unsigned int*)(0x4266E020UL)) +#define bFM3_GPIO_PZR0_P9 *((volatile unsigned int*)(0x4266E024UL)) +#define bFM3_GPIO_PZR1_P0 *((volatile unsigned int*)(0x4266E080UL)) +#define bFM3_GPIO_PZR1_P1 *((volatile unsigned int*)(0x4266E084UL)) +#define bFM3_GPIO_PZR1_P2 *((volatile unsigned int*)(0x4266E088UL)) +#define bFM3_GPIO_PZR1_P3 *((volatile unsigned int*)(0x4266E08CUL)) +#define bFM3_GPIO_PZR1_P4 *((volatile unsigned int*)(0x4266E090UL)) +#define bFM3_GPIO_PZR1_P5 *((volatile unsigned int*)(0x4266E094UL)) +#define bFM3_GPIO_PZR1_P6 *((volatile unsigned int*)(0x4266E098UL)) +#define bFM3_GPIO_PZR1_P7 *((volatile unsigned int*)(0x4266E09CUL)) +#define bFM3_GPIO_PZR1_P8 *((volatile unsigned int*)(0x4266E0A0UL)) +#define bFM3_GPIO_PZR1_P9 *((volatile unsigned int*)(0x4266E0A4UL)) +#define bFM3_GPIO_PZR1_PA *((volatile unsigned int*)(0x4266E0A8UL)) +#define bFM3_GPIO_PZR1_PB *((volatile unsigned int*)(0x4266E0ACUL)) +#define bFM3_GPIO_PZR1_PC *((volatile unsigned int*)(0x4266E0B0UL)) +#define bFM3_GPIO_PZR1_PD *((volatile unsigned int*)(0x4266E0B4UL)) +#define bFM3_GPIO_PZR1_PE *((volatile unsigned int*)(0x4266E0B8UL)) +#define bFM3_GPIO_PZR1_PF *((volatile unsigned int*)(0x4266E0BCUL)) +#define bFM3_GPIO_PZR2_P0 *((volatile unsigned int*)(0x4266E100UL)) +#define bFM3_GPIO_PZR2_P1 *((volatile unsigned int*)(0x4266E104UL)) +#define bFM3_GPIO_PZR2_P2 *((volatile unsigned int*)(0x4266E108UL)) +#define bFM3_GPIO_PZR2_P3 *((volatile unsigned int*)(0x4266E10CUL)) +#define bFM3_GPIO_PZR2_P4 *((volatile unsigned int*)(0x4266E110UL)) +#define bFM3_GPIO_PZR2_P5 *((volatile unsigned int*)(0x4266E114UL)) +#define bFM3_GPIO_PZR2_P6 *((volatile unsigned int*)(0x4266E118UL)) +#define bFM3_GPIO_PZR2_P7 *((volatile unsigned int*)(0x4266E11CUL)) +#define bFM3_GPIO_PZR2_P8 *((volatile unsigned int*)(0x4266E120UL)) +#define bFM3_GPIO_PZR2_P9 *((volatile unsigned int*)(0x4266E124UL)) +#define bFM3_GPIO_PZR3_P6 *((volatile unsigned int*)(0x4266E198UL)) +#define bFM3_GPIO_PZR3_P7 *((volatile unsigned int*)(0x4266E19CUL)) +#define bFM3_GPIO_PZR3_P8 *((volatile unsigned int*)(0x4266E1A0UL)) +#define bFM3_GPIO_PZR3_P9 *((volatile unsigned int*)(0x4266E1A4UL)) +#define bFM3_GPIO_PZR3_PA *((volatile unsigned int*)(0x4266E1A8UL)) +#define bFM3_GPIO_PZR3_PB *((volatile unsigned int*)(0x4266E1ACUL)) +#define bFM3_GPIO_PZR3_PC *((volatile unsigned int*)(0x4266E1B0UL)) +#define bFM3_GPIO_PZR3_PD *((volatile unsigned int*)(0x4266E1B4UL)) +#define bFM3_GPIO_PZR3_PE *((volatile unsigned int*)(0x4266E1B8UL)) +#define bFM3_GPIO_PZR3_PF *((volatile unsigned int*)(0x4266E1BCUL)) +#define bFM3_GPIO_PZR4_P0 *((volatile unsigned int*)(0x4266E200UL)) +#define bFM3_GPIO_PZR4_P1 *((volatile unsigned int*)(0x4266E204UL)) +#define bFM3_GPIO_PZR4_P2 *((volatile unsigned int*)(0x4266E208UL)) +#define bFM3_GPIO_PZR4_P3 *((volatile unsigned int*)(0x4266E20CUL)) +#define bFM3_GPIO_PZR4_P4 *((volatile unsigned int*)(0x4266E210UL)) +#define bFM3_GPIO_PZR4_P5 *((volatile unsigned int*)(0x4266E214UL)) +#define bFM3_GPIO_PZR4_P6 *((volatile unsigned int*)(0x4266E218UL)) +#define bFM3_GPIO_PZR4_P7 *((volatile unsigned int*)(0x4266E21CUL)) +#define bFM3_GPIO_PZR4_P8 *((volatile unsigned int*)(0x4266E220UL)) +#define bFM3_GPIO_PZR4_P9 *((volatile unsigned int*)(0x4266E224UL)) +#define bFM3_GPIO_PZR4_PA *((volatile unsigned int*)(0x4266E228UL)) +#define bFM3_GPIO_PZR4_PB *((volatile unsigned int*)(0x4266E22CUL)) +#define bFM3_GPIO_PZR4_PC *((volatile unsigned int*)(0x4266E230UL)) +#define bFM3_GPIO_PZR4_PD *((volatile unsigned int*)(0x4266E234UL)) +#define bFM3_GPIO_PZR4_PE *((volatile unsigned int*)(0x4266E238UL)) +#define bFM3_GPIO_PZR5_P0 *((volatile unsigned int*)(0x4266E280UL)) +#define bFM3_GPIO_PZR5_P1 *((volatile unsigned int*)(0x4266E284UL)) +#define bFM3_GPIO_PZR5_P2 *((volatile unsigned int*)(0x4266E288UL)) +#define bFM3_GPIO_PZR5_P3 *((volatile unsigned int*)(0x4266E28CUL)) +#define bFM3_GPIO_PZR5_P4 *((volatile unsigned int*)(0x4266E290UL)) +#define bFM3_GPIO_PZR5_P5 *((volatile unsigned int*)(0x4266E294UL)) +#define bFM3_GPIO_PZR5_P6 *((volatile unsigned int*)(0x4266E298UL)) +#define bFM3_GPIO_PZR5_P7 *((volatile unsigned int*)(0x4266E29CUL)) +#define bFM3_GPIO_PZR5_P8 *((volatile unsigned int*)(0x4266E2A0UL)) +#define bFM3_GPIO_PZR5_P9 *((volatile unsigned int*)(0x4266E2A4UL)) +#define bFM3_GPIO_PZR5_PA *((volatile unsigned int*)(0x4266E2A8UL)) +#define bFM3_GPIO_PZR5_PB *((volatile unsigned int*)(0x4266E2ACUL)) +#define bFM3_GPIO_PZR6_P0 *((volatile unsigned int*)(0x4266E300UL)) +#define bFM3_GPIO_PZR6_P1 *((volatile unsigned int*)(0x4266E304UL)) +#define bFM3_GPIO_PZR6_P2 *((volatile unsigned int*)(0x4266E308UL)) +#define bFM3_GPIO_PZR7_P0 *((volatile unsigned int*)(0x4266E380UL)) +#define bFM3_GPIO_PZR7_P1 *((volatile unsigned int*)(0x4266E384UL)) +#define bFM3_GPIO_PZR7_P2 *((volatile unsigned int*)(0x4266E388UL)) +#define bFM3_GPIO_PZR7_P3 *((volatile unsigned int*)(0x4266E38CUL)) +#define bFM3_GPIO_PZR7_P4 *((volatile unsigned int*)(0x4266E390UL)) +#define bFM3_GPIO_PZR7_P5 *((volatile unsigned int*)(0x4266E394UL)) +#define bFM3_GPIO_PZR7_P6 *((volatile unsigned int*)(0x4266E398UL)) +#define bFM3_GPIO_PZR7_P7 *((volatile unsigned int*)(0x4266E39CUL)) +#define bFM3_GPIO_PZR7_P8 *((volatile unsigned int*)(0x4266E3A0UL)) +#define bFM3_GPIO_PZR7_P9 *((volatile unsigned int*)(0x4266E3A4UL)) +#define bFM3_GPIO_PZR7_PA *((volatile unsigned int*)(0x4266E3A8UL)) +#define bFM3_GPIO_PZR8_P0 *((volatile unsigned int*)(0x4266E400UL)) +#define bFM3_GPIO_PZR8_P1 *((volatile unsigned int*)(0x4266E404UL)) +#define bFM3_GPIO_PZR8_P2 *((volatile unsigned int*)(0x4266E408UL)) +#define bFM3_GPIO_PZR8_P3 *((volatile unsigned int*)(0x4266E40CUL)) +#define bFM3_GPIO_PZRA_P0 *((volatile unsigned int*)(0x4266E500UL)) +#define bFM3_GPIO_PZRA_P1 *((volatile unsigned int*)(0x4266E504UL)) +#define bFM3_GPIO_PZRA_P2 *((volatile unsigned int*)(0x4266E508UL)) +#define bFM3_GPIO_PZRA_P3 *((volatile unsigned int*)(0x4266E50CUL)) +#define bFM3_GPIO_PZRA_P4 *((volatile unsigned int*)(0x4266E510UL)) +#define bFM3_GPIO_PZRA_P5 *((volatile unsigned int*)(0x4266E514UL)) +#define bFM3_GPIO_PZRC_P0 *((volatile unsigned int*)(0x4266E600UL)) +#define bFM3_GPIO_PZRC_P1 *((volatile unsigned int*)(0x4266E604UL)) +#define bFM3_GPIO_PZRC_P2 *((volatile unsigned int*)(0x4266E608UL)) +#define bFM3_GPIO_PZRC_P3 *((volatile unsigned int*)(0x4266E60CUL)) +#define bFM3_GPIO_PZRC_P4 *((volatile unsigned int*)(0x4266E610UL)) +#define bFM3_GPIO_PZRC_P5 *((volatile unsigned int*)(0x4266E614UL)) +#define bFM3_GPIO_PZRC_P6 *((volatile unsigned int*)(0x4266E618UL)) +#define bFM3_GPIO_PZRC_P7 *((volatile unsigned int*)(0x4266E61CUL)) +#define bFM3_GPIO_PZRC_P8 *((volatile unsigned int*)(0x4266E620UL)) +#define bFM3_GPIO_PZRC_P9 *((volatile unsigned int*)(0x4266E624UL)) +#define bFM3_GPIO_PZRC_PA *((volatile unsigned int*)(0x4266E628UL)) +#define bFM3_GPIO_PZRC_PB *((volatile unsigned int*)(0x4266E62CUL)) +#define bFM3_GPIO_PZRC_PC *((volatile unsigned int*)(0x4266E630UL)) +#define bFM3_GPIO_PZRC_PD *((volatile unsigned int*)(0x4266E634UL)) +#define bFM3_GPIO_PZRC_PE *((volatile unsigned int*)(0x4266E638UL)) +#define bFM3_GPIO_PZRC_PF *((volatile unsigned int*)(0x4266E63CUL)) +#define bFM3_GPIO_PZRD_P0 *((volatile unsigned int*)(0x4266E680UL)) +#define bFM3_GPIO_PZRD_P1 *((volatile unsigned int*)(0x4266E684UL)) +#define bFM3_GPIO_PZRD_P2 *((volatile unsigned int*)(0x4266E688UL)) +#define bFM3_GPIO_PZRD_P3 *((volatile unsigned int*)(0x4266E68CUL)) +#define bFM3_GPIO_PZRE_P0 *((volatile unsigned int*)(0x4266E700UL)) +#define bFM3_GPIO_PZRE_P2 *((volatile unsigned int*)(0x4266E708UL)) +#define bFM3_GPIO_PZRE_P3 *((volatile unsigned int*)(0x4266E70CUL)) +#define bFM3_GPIO_PZRF_P5 *((volatile unsigned int*)(0x4266E794UL)) +#define bFM3_GPIO_PZRF_P6 *((volatile unsigned int*)(0x4266E798UL)) + +/* Low voltage detection registers */ +#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) +#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) +#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) +#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) +#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) +#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) +#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) +#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) + +/* USB clock registers */ +#define bFM3_USBETHERNETCLK_UCCR_UCEN0 *((volatile unsigned int*)(0x426C0000UL)) +#define bFM3_USBETHERNETCLK_UCCR_UCSEL0 *((volatile unsigned int*)(0x426C0004UL)) +#define bFM3_USBETHERNETCLK_UCCR_UCSEL1 *((volatile unsigned int*)(0x426C0008UL)) +#define bFM3_USBETHERNETCLK_UCCR_UCEN1 *((volatile unsigned int*)(0x426C000CUL)) +#define bFM3_USBETHERNETCLK_UCCR_ECEN *((volatile unsigned int*)(0x426C0010UL)) +#define bFM3_USBETHERNETCLK_UCCR_ECSEL0 *((volatile unsigned int*)(0x426C0014UL)) +#define bFM3_USBETHERNETCLK_UCCR_ECSEL1 *((volatile unsigned int*)(0x426C0018UL)) +#define bFM3_USBETHERNETCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) +#define bFM3_USBETHERNETCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) +#define bFM3_USBETHERNETCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) +#define bFM3_USBETHERNETCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) +#define bFM3_USBETHERNETCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN5 *((volatile unsigned int*)(0x426C0214UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN6 *((volatile unsigned int*)(0x426C0218UL)) +#define bFM3_USBETHERNETCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) +#define bFM3_USBETHERNETCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) +#define bFM3_USBETHERNETCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) +#define bFM3_USBETHERNETCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM0 *((volatile unsigned int*)(0x426C0480UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM1 *((volatile unsigned int*)(0x426C0484UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM2 *((volatile unsigned int*)(0x426C0488UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM3 *((volatile unsigned int*)(0x426C048CUL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR0 *((volatile unsigned int*)(0x426C0500UL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR1 *((volatile unsigned int*)(0x426C0504UL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR2 *((volatile unsigned int*)(0x426C0508UL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR3 *((volatile unsigned int*)(0x426C050CUL)) +#define bFM3_USBETHERNETCLK_UPCR7_EPLLEN *((volatile unsigned int*)(0x426C0580UL)) +#define bFM3_USBETHERNETCLK_USBEN0_USBEN0 *((volatile unsigned int*)(0x426C0600UL)) +#define bFM3_USBETHERNETCLK_USBEN1_USBEN1 *((volatile unsigned int*)(0x426C0680UL)) + +/* UART asynchronous channel 0 registers */ +#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* UART synchronous channel 0 registers */ +#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) + +/* UART LIN channel 0 registers */ +#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* I2C channel 0 registers */ +#define bFM3_MFS0_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) +#define bFM3_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) +#define bFM3_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) +#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) +#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) +#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) +#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) +#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) +#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) +#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) +#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) +#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) +#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) +#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) +#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) +#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) +#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) +#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) +#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) +#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) + +/* UART asynchronous channel 1 registers */ +#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* UART synchronous channel 1 registers */ +#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) + +/* UART LIN channel 1 registers */ +#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* I2C channel 1 registers */ +#define bFM3_MFS1_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) +#define bFM3_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) +#define bFM3_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) +#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) +#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) +#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) +#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) +#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) +#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) +#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) +#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) +#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) +#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) +#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) +#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) +#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) +#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) +#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) +#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) +#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) + +/* UART asynchronous channel 2 registers */ +#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* UART synchronous channel 2 registers */ +#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) + +/* UART LIN channel 2 registers */ +#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* I2C channel 2 registers */ +#define bFM3_MFS2_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) +#define bFM3_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) +#define bFM3_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) +#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) +#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) +#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) +#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) +#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) +#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) +#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) +#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) +#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) +#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) +#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) +#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) +#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) +#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) +#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) +#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) +#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) + +/* UART asynchronous channel 3 registers */ +#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* UART synchronous channel 3 registers */ +#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) + +/* UART LIN channel 3 registers */ +#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* I2C channel 3 registers */ +#define bFM3_MFS3_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) +#define bFM3_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) +#define bFM3_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) +#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) +#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) +#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) +#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) +#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) +#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) +#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) +#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) +#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) +#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) +#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) +#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) +#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) +#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) +#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) +#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) +#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) + +/* UART asynchronous channel 4 registers */ +#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART synchronous channel 4 registers */ +#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART LIN channel 4 registers */ +#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* I2C channel 4 registers */ +#define bFM3_MFS4_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) +#define bFM3_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) +#define bFM3_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) +#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) +#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) +#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) +#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) +#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) +#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) +#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) +#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) +#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) +#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) +#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) +#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) +#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) +#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) +#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) +#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) +#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) +#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART asynchronous channel 5 registers */ +#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART synchronous channel 5 registers */ +#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART LIN channel 5 registers */ +#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* I2C channel 5 registers */ +#define bFM3_MFS5_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) +#define bFM3_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) +#define bFM3_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) +#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) +#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) +#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) +#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) +#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) +#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) +#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) +#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) +#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) +#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) +#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) +#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) +#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) +#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) +#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) +#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) +#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) +#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART asynchronous channel 6 registers */ +#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART synchronous channel 6 registers */ +#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART LIN channel 6 registers */ +#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* I2C channel 6 registers */ +#define bFM3_MFS6_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) +#define bFM3_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) +#define bFM3_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) +#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) +#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) +#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) +#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) +#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) +#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) +#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) +#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) +#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) +#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) +#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) +#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) +#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) +#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) +#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) +#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) +#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) +#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART asynchronous channel 7 registers */ +#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART synchronous channel 7 registers */ +#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART LIN channel 7 registers */ +#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* I2C channel 7 registers */ +#define bFM3_MFS7_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) +#define bFM3_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) +#define bFM3_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) +#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) +#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) +#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) +#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) +#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) +#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) +#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) +#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) +#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) +#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) +#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) +#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) +#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) +#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) +#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) +#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) +#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) +#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* MFS Noise Filter Control registers */ +#define bFM3_MFS_NFC_I2CDNF_I2CDNF00 *((volatile unsigned int*)(0x42710000UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF01 *((volatile unsigned int*)(0x42710004UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF10 *((volatile unsigned int*)(0x42710008UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF11 *((volatile unsigned int*)(0x4271000CUL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF20 *((volatile unsigned int*)(0x42710010UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF21 *((volatile unsigned int*)(0x42710014UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF30 *((volatile unsigned int*)(0x42710018UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF31 *((volatile unsigned int*)(0x4271001CUL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF40 *((volatile unsigned int*)(0x42710020UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF41 *((volatile unsigned int*)(0x42710024UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF50 *((volatile unsigned int*)(0x42710028UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF51 *((volatile unsigned int*)(0x4271002CUL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF60 *((volatile unsigned int*)(0x42710030UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF61 *((volatile unsigned int*)(0x42710034UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF70 *((volatile unsigned int*)(0x42710038UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF71 *((volatile unsigned int*)(0x4271003CUL)) + +/* CRC registers */ +#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) +#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) +#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) +#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) +#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) +#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) +#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) + +/* Watch counter registers */ +#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) +#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) +#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) +#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) +#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) +#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) +#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) +#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) +#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) +#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) +#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) +#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) +#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) +#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) +#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) +#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) +#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) +#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) +#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) +#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) +#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) +#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) + +/* External bus interface registers */ +#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) +#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) +#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) +#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) +#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0210UL)) +#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) +#define bFM3_EXBUS_MODE0_RDY *((volatile unsigned int*)(0x427E0018UL)) +#define bFM3_EXBUS_MODE0_SHRTDOUT *((volatile unsigned int*)(0x427E001CUL)) +#define bFM3_EXBUS_MODE0_MPXMODE *((volatile unsigned int*)(0x427E0020UL)) +#define bFM3_EXBUS_MODE0_ALEINV *((volatile unsigned int*)(0x427E0024UL)) +#define bFM3_EXBUS_MODE0_MPXDOFF *((volatile unsigned int*)(0x427E002CUL)) +#define bFM3_EXBUS_MODE0_MPXCSOF *((volatile unsigned int*)(0x427E0030UL)) +#define bFM3_EXBUS_MODE0_MOEXEUP *((volatile unsigned int*)(0x427E0034UL)) +#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) +#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) +#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) +#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) +#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) +#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) +#define bFM3_EXBUS_MODE1_RDY *((volatile unsigned int*)(0x427E0098UL)) +#define bFM3_EXBUS_MODE1_SHRTDOUT *((volatile unsigned int*)(0x427E009CUL)) +#define bFM3_EXBUS_MODE1_MPXMODE *((volatile unsigned int*)(0x427E00A0UL)) +#define bFM3_EXBUS_MODE1_ALEINV *((volatile unsigned int*)(0x427E00A4UL)) +#define bFM3_EXBUS_MODE1_MPXDOFF *((volatile unsigned int*)(0x427E00ACUL)) +#define bFM3_EXBUS_MODE1_MPXCSOF *((volatile unsigned int*)(0x427E00B0UL)) +#define bFM3_EXBUS_MODE1_MOEXEUP *((volatile unsigned int*)(0x427E00B4UL)) +#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) +#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) +#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) +#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) +#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) +#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) +#define bFM3_EXBUS_MODE2_RDY *((volatile unsigned int*)(0x427E0118UL)) +#define bFM3_EXBUS_MODE2_SHRTDOUT *((volatile unsigned int*)(0x427E011CUL)) +#define bFM3_EXBUS_MODE2_MPXMODE *((volatile unsigned int*)(0x427E0120UL)) +#define bFM3_EXBUS_MODE2_ALEINV *((volatile unsigned int*)(0x427E0124UL)) +#define bFM3_EXBUS_MODE2_MPXDOFF *((volatile unsigned int*)(0x427E012CUL)) +#define bFM3_EXBUS_MODE2_MPXCSOF *((volatile unsigned int*)(0x427E0130UL)) +#define bFM3_EXBUS_MODE2_MOEXEUP *((volatile unsigned int*)(0x427E0134UL)) +#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) +#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) +#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) +#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) +#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) +#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) +#define bFM3_EXBUS_MODE3_RDY *((volatile unsigned int*)(0x427E0198UL)) +#define bFM3_EXBUS_MODE3_SHRTDOUT *((volatile unsigned int*)(0x427E019CUL)) +#define bFM3_EXBUS_MODE3_MPXMODE *((volatile unsigned int*)(0x427E01A0UL)) +#define bFM3_EXBUS_MODE3_ALEINV *((volatile unsigned int*)(0x427E01A4UL)) +#define bFM3_EXBUS_MODE3_MPXDOFF *((volatile unsigned int*)(0x427E01ACUL)) +#define bFM3_EXBUS_MODE3_MPXCSOF *((volatile unsigned int*)(0x427E01B0UL)) +#define bFM3_EXBUS_MODE3_MOEXEUP *((volatile unsigned int*)(0x427E01B4UL)) +#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) +#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) +#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) +#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) +#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) +#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) +#define bFM3_EXBUS_MODE4_RDY *((volatile unsigned int*)(0x427E0218UL)) +#define bFM3_EXBUS_MODE4_SHRTDOUT *((volatile unsigned int*)(0x427E021CUL)) +#define bFM3_EXBUS_MODE4_MPXMODE *((volatile unsigned int*)(0x427E0220UL)) +#define bFM3_EXBUS_MODE4_ALEINV *((volatile unsigned int*)(0x427E0224UL)) +#define bFM3_EXBUS_MODE4_MPXDOFF *((volatile unsigned int*)(0x427E022CUL)) +#define bFM3_EXBUS_MODE4_MPXCSOF *((volatile unsigned int*)(0x427E0230UL)) +#define bFM3_EXBUS_MODE4_MOEXEUP *((volatile unsigned int*)(0x427E0234UL)) +#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) +#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) +#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) +#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) +#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) +#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) +#define bFM3_EXBUS_MODE5_RDY *((volatile unsigned int*)(0x427E0298UL)) +#define bFM3_EXBUS_MODE5_SHRTDOUT *((volatile unsigned int*)(0x427E029CUL)) +#define bFM3_EXBUS_MODE5_MPXMODE *((volatile unsigned int*)(0x427E02A0UL)) +#define bFM3_EXBUS_MODE5_ALEINV *((volatile unsigned int*)(0x427E02A4UL)) +#define bFM3_EXBUS_MODE5_MPXDOFF *((volatile unsigned int*)(0x427E02ACUL)) +#define bFM3_EXBUS_MODE5_MPXCSOF *((volatile unsigned int*)(0x427E02B0UL)) +#define bFM3_EXBUS_MODE5_MOEXEUP *((volatile unsigned int*)(0x427E02B4UL)) +#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) +#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) +#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) +#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) +#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) +#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) +#define bFM3_EXBUS_MODE6_RDY *((volatile unsigned int*)(0x427E0318UL)) +#define bFM3_EXBUS_MODE6_SHRTDOUT *((volatile unsigned int*)(0x427E031CUL)) +#define bFM3_EXBUS_MODE6_MPXMODE *((volatile unsigned int*)(0x427E0320UL)) +#define bFM3_EXBUS_MODE6_ALEINV *((volatile unsigned int*)(0x427E0324UL)) +#define bFM3_EXBUS_MODE6_MPXDOFF *((volatile unsigned int*)(0x427E032CUL)) +#define bFM3_EXBUS_MODE6_MPXCSOF *((volatile unsigned int*)(0x427E0330UL)) +#define bFM3_EXBUS_MODE6_MOEXEUP *((volatile unsigned int*)(0x427E0334UL)) +#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) +#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) +#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) +#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) +#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) +#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) +#define bFM3_EXBUS_MODE7_RDY *((volatile unsigned int*)(0x427E0398UL)) +#define bFM3_EXBUS_MODE7_SHRTDOUT *((volatile unsigned int*)(0x427E039CUL)) +#define bFM3_EXBUS_MODE7_MPXMODE *((volatile unsigned int*)(0x427E03A0UL)) +#define bFM3_EXBUS_MODE7_ALEINV *((volatile unsigned int*)(0x427E03A4UL)) +#define bFM3_EXBUS_MODE7_MPXDOFF *((volatile unsigned int*)(0x427E03ACUL)) +#define bFM3_EXBUS_MODE7_MPXCSOF *((volatile unsigned int*)(0x427E03B0UL)) +#define bFM3_EXBUS_MODE7_MOEXEUP *((volatile unsigned int*)(0x427E03B4UL)) +#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) +#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) +#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) +#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) +#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) +#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) +#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) +#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) +#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) +#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) +#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) +#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) +#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) +#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) +#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) +#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) +#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) +#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) +#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) +#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) +#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) +#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) +#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) +#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) +#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) +#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) +#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) +#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) +#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) +#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) +#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) +#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) +#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) +#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) +#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) +#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) +#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) +#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) +#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) +#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) +#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) +#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) +#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) +#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) +#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) +#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) +#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) +#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) +#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) +#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) +#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) +#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) +#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) +#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) +#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) +#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) +#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) +#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) +#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) +#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) +#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) +#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) +#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) +#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) +#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) +#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) +#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) +#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) +#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) +#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) +#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) +#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) +#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) +#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) +#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) +#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) +#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) +#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) +#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) +#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) +#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) +#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) +#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) +#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) +#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) +#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) +#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) +#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) +#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) +#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) +#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) +#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) +#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) +#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) +#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) +#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) +#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) +#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) +#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) +#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) +#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) +#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) +#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) +#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) +#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) +#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) +#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) +#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) +#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) +#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) +#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) +#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) +#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) +#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) +#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) +#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) +#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) +#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) +#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) +#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) +#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) +#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) +#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) +#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) +#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) +#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) +#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) +#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) +#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) +#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) +#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) +#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) +#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) +#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) +#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) +#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) +#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) +#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) +#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) +#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) +#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) +#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) +#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) +#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) +#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) +#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) +#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) +#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) +#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) +#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) +#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) +#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) +#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) +#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) +#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) +#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) +#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) +#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) +#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) +#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) +#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) +#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) +#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) +#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) +#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) +#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) +#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) +#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) +#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) +#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) +#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) +#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) +#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) +#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) +#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) +#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) +#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) +#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) +#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) +#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) +#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) +#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) +#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) +#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) +#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) +#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) +#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) +#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) +#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) +#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) +#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) +#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) +#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) +#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) +#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) +#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) +#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) +#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) +#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) +#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) +#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) +#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) +#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) +#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) +#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) +#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) +#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) +#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) +#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) +#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) +#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) +#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) +#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) +#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) +#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) +#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) +#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) +#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) +#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) +#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) +#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) +#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) +#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) +#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) +#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) +#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) +#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) +#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) +#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) +#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) +#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) +#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) +#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) +#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) +#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) +#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) +#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) +#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) +#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) +#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) +#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) +#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) +#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) +#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) +#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) +#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) +#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) +#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) +#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) +#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) +#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) +#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) +#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) +#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) +#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) +#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) +#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) +#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) +#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) +#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) +#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) +#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) +#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) +#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) +#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) +#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) +#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) +#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) +#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) +#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) +#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) +#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) +#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) +#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) +#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) +#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) +#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) +#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) +#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) +#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) +#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) +#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) +#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) +#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) +#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) +#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) +#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) +#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) +#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) +#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) +#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) +#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) +#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) +#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) +#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) +#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) +#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) +#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) +#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) +#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) +#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) +#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) +#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) +#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) +#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) +#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) +#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) +#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) +#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) +#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) +#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) +#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) +#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) +#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) +#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) +#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) +#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) +#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) +#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) +#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) +#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) +#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) +#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) +#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) +#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) +#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) +#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) +#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) +#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) +#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) +#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) +#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) +#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) +#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) +#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) +#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) +#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) +#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) +#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) +#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) +#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) +#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) +#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) +#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) +#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) +#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) +#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) +#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) +#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) +#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) +#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) +#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) +#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) +#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) +#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) +#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) +#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) +#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) +#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) +#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) +#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) +#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) +#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) +#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) +#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) +#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) +#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) +#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) +#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) +#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) +#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) +#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) +#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) +#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) +#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) +#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) +#define bFM3_EXBUS_ATIM0_ALC0 *((volatile unsigned int*)(0x427E0C00UL)) +#define bFM3_EXBUS_ATIM0_ALC1 *((volatile unsigned int*)(0x427E0C04UL)) +#define bFM3_EXBUS_ATIM0_ALC2 *((volatile unsigned int*)(0x427E0C08UL)) +#define bFM3_EXBUS_ATIM0_ALC3 *((volatile unsigned int*)(0x427E0C0CUL)) +#define bFM3_EXBUS_ATIM0_ALES0 *((volatile unsigned int*)(0x427E0C10UL)) +#define bFM3_EXBUS_ATIM0_ALES1 *((volatile unsigned int*)(0x427E0C14UL)) +#define bFM3_EXBUS_ATIM0_ALES2 *((volatile unsigned int*)(0x427E0C18UL)) +#define bFM3_EXBUS_ATIM0_ALES3 *((volatile unsigned int*)(0x427E0C1CUL)) +#define bFM3_EXBUS_ATIM0_ALEW0 *((volatile unsigned int*)(0x427E0C20UL)) +#define bFM3_EXBUS_ATIM0_ALEW1 *((volatile unsigned int*)(0x427E0C24UL)) +#define bFM3_EXBUS_ATIM0_ALEW2 *((volatile unsigned int*)(0x427E0C28UL)) +#define bFM3_EXBUS_ATIM0_ALEW3 *((volatile unsigned int*)(0x427E0C2CUL)) +#define bFM3_EXBUS_ATIM1_ALC0 *((volatile unsigned int*)(0x427E0C80UL)) +#define bFM3_EXBUS_ATIM1_ALC1 *((volatile unsigned int*)(0x427E0C84UL)) +#define bFM3_EXBUS_ATIM1_ALC2 *((volatile unsigned int*)(0x427E0C88UL)) +#define bFM3_EXBUS_ATIM1_ALC3 *((volatile unsigned int*)(0x427E0C8CUL)) +#define bFM3_EXBUS_ATIM1_ALES0 *((volatile unsigned int*)(0x427E0C90UL)) +#define bFM3_EXBUS_ATIM1_ALES1 *((volatile unsigned int*)(0x427E0C94UL)) +#define bFM3_EXBUS_ATIM1_ALES2 *((volatile unsigned int*)(0x427E0C98UL)) +#define bFM3_EXBUS_ATIM1_ALES3 *((volatile unsigned int*)(0x427E0C9CUL)) +#define bFM3_EXBUS_ATIM1_ALEW0 *((volatile unsigned int*)(0x427E0CA0UL)) +#define bFM3_EXBUS_ATIM1_ALEW1 *((volatile unsigned int*)(0x427E0CA4UL)) +#define bFM3_EXBUS_ATIM1_ALEW2 *((volatile unsigned int*)(0x427E0CA8UL)) +#define bFM3_EXBUS_ATIM1_ALEW3 *((volatile unsigned int*)(0x427E0CACUL)) +#define bFM3_EXBUS_ATIM2_ALC0 *((volatile unsigned int*)(0x427E0D00UL)) +#define bFM3_EXBUS_ATIM2_ALC1 *((volatile unsigned int*)(0x427E0D04UL)) +#define bFM3_EXBUS_ATIM2_ALC2 *((volatile unsigned int*)(0x427E0D08UL)) +#define bFM3_EXBUS_ATIM2_ALC3 *((volatile unsigned int*)(0x427E0D0CUL)) +#define bFM3_EXBUS_ATIM2_ALES0 *((volatile unsigned int*)(0x427E0D10UL)) +#define bFM3_EXBUS_ATIM2_ALES1 *((volatile unsigned int*)(0x427E0D14UL)) +#define bFM3_EXBUS_ATIM2_ALES2 *((volatile unsigned int*)(0x427E0D18UL)) +#define bFM3_EXBUS_ATIM2_ALES3 *((volatile unsigned int*)(0x427E0D1CUL)) +#define bFM3_EXBUS_ATIM2_ALEW0 *((volatile unsigned int*)(0x427E0D20UL)) +#define bFM3_EXBUS_ATIM2_ALEW1 *((volatile unsigned int*)(0x427E0D24UL)) +#define bFM3_EXBUS_ATIM2_ALEW2 *((volatile unsigned int*)(0x427E0D28UL)) +#define bFM3_EXBUS_ATIM2_ALEW3 *((volatile unsigned int*)(0x427E0D2CUL)) +#define bFM3_EXBUS_ATIM3_ALC0 *((volatile unsigned int*)(0x427E0D80UL)) +#define bFM3_EXBUS_ATIM3_ALC1 *((volatile unsigned int*)(0x427E0D84UL)) +#define bFM3_EXBUS_ATIM3_ALC2 *((volatile unsigned int*)(0x427E0D88UL)) +#define bFM3_EXBUS_ATIM3_ALC3 *((volatile unsigned int*)(0x427E0D8CUL)) +#define bFM3_EXBUS_ATIM3_ALES0 *((volatile unsigned int*)(0x427E0D90UL)) +#define bFM3_EXBUS_ATIM3_ALES1 *((volatile unsigned int*)(0x427E0D94UL)) +#define bFM3_EXBUS_ATIM3_ALES2 *((volatile unsigned int*)(0x427E0D98UL)) +#define bFM3_EXBUS_ATIM3_ALES3 *((volatile unsigned int*)(0x427E0D9CUL)) +#define bFM3_EXBUS_ATIM3_ALEW0 *((volatile unsigned int*)(0x427E0DA0UL)) +#define bFM3_EXBUS_ATIM3_ALEW1 *((volatile unsigned int*)(0x427E0DA4UL)) +#define bFM3_EXBUS_ATIM3_ALEW2 *((volatile unsigned int*)(0x427E0DA8UL)) +#define bFM3_EXBUS_ATIM3_ALEW3 *((volatile unsigned int*)(0x427E0DACUL)) +#define bFM3_EXBUS_ATIM4_ALC0 *((volatile unsigned int*)(0x427E0E00UL)) +#define bFM3_EXBUS_ATIM4_ALC1 *((volatile unsigned int*)(0x427E0E04UL)) +#define bFM3_EXBUS_ATIM4_ALC2 *((volatile unsigned int*)(0x427E0E08UL)) +#define bFM3_EXBUS_ATIM4_ALC3 *((volatile unsigned int*)(0x427E0E0CUL)) +#define bFM3_EXBUS_ATIM4_ALES0 *((volatile unsigned int*)(0x427E0E10UL)) +#define bFM3_EXBUS_ATIM4_ALES1 *((volatile unsigned int*)(0x427E0E14UL)) +#define bFM3_EXBUS_ATIM4_ALES2 *((volatile unsigned int*)(0x427E0E18UL)) +#define bFM3_EXBUS_ATIM4_ALES3 *((volatile unsigned int*)(0x427E0E1CUL)) +#define bFM3_EXBUS_ATIM4_ALEW0 *((volatile unsigned int*)(0x427E0E20UL)) +#define bFM3_EXBUS_ATIM4_ALEW1 *((volatile unsigned int*)(0x427E0E24UL)) +#define bFM3_EXBUS_ATIM4_ALEW2 *((volatile unsigned int*)(0x427E0E28UL)) +#define bFM3_EXBUS_ATIM4_ALEW3 *((volatile unsigned int*)(0x427E0E2CUL)) +#define bFM3_EXBUS_ATIM5_ALC0 *((volatile unsigned int*)(0x427E0E80UL)) +#define bFM3_EXBUS_ATIM5_ALC1 *((volatile unsigned int*)(0x427E0E84UL)) +#define bFM3_EXBUS_ATIM5_ALC2 *((volatile unsigned int*)(0x427E0E88UL)) +#define bFM3_EXBUS_ATIM5_ALC3 *((volatile unsigned int*)(0x427E0E8CUL)) +#define bFM3_EXBUS_ATIM5_ALES0 *((volatile unsigned int*)(0x427E0E90UL)) +#define bFM3_EXBUS_ATIM5_ALES1 *((volatile unsigned int*)(0x427E0E94UL)) +#define bFM3_EXBUS_ATIM5_ALES2 *((volatile unsigned int*)(0x427E0E98UL)) +#define bFM3_EXBUS_ATIM5_ALES3 *((volatile unsigned int*)(0x427E0E9CUL)) +#define bFM3_EXBUS_ATIM5_ALEW0 *((volatile unsigned int*)(0x427E0EA0UL)) +#define bFM3_EXBUS_ATIM5_ALEW1 *((volatile unsigned int*)(0x427E0EA4UL)) +#define bFM3_EXBUS_ATIM5_ALEW2 *((volatile unsigned int*)(0x427E0EA8UL)) +#define bFM3_EXBUS_ATIM5_ALEW3 *((volatile unsigned int*)(0x427E0EACUL)) +#define bFM3_EXBUS_ATIM6_ALC0 *((volatile unsigned int*)(0x427E0F00UL)) +#define bFM3_EXBUS_ATIM6_ALC1 *((volatile unsigned int*)(0x427E0F04UL)) +#define bFM3_EXBUS_ATIM6_ALC2 *((volatile unsigned int*)(0x427E0F08UL)) +#define bFM3_EXBUS_ATIM6_ALC3 *((volatile unsigned int*)(0x427E0F0CUL)) +#define bFM3_EXBUS_ATIM6_ALES0 *((volatile unsigned int*)(0x427E0F10UL)) +#define bFM3_EXBUS_ATIM6_ALES1 *((volatile unsigned int*)(0x427E0F14UL)) +#define bFM3_EXBUS_ATIM6_ALES2 *((volatile unsigned int*)(0x427E0F18UL)) +#define bFM3_EXBUS_ATIM6_ALES3 *((volatile unsigned int*)(0x427E0F1CUL)) +#define bFM3_EXBUS_ATIM6_ALEW0 *((volatile unsigned int*)(0x427E0F20UL)) +#define bFM3_EXBUS_ATIM6_ALEW1 *((volatile unsigned int*)(0x427E0F24UL)) +#define bFM3_EXBUS_ATIM6_ALEW2 *((volatile unsigned int*)(0x427E0F28UL)) +#define bFM3_EXBUS_ATIM6_ALEW3 *((volatile unsigned int*)(0x427E0F2CUL)) +#define bFM3_EXBUS_ATIM7_ALC0 *((volatile unsigned int*)(0x427E0F80UL)) +#define bFM3_EXBUS_ATIM7_ALC1 *((volatile unsigned int*)(0x427E0F84UL)) +#define bFM3_EXBUS_ATIM7_ALC2 *((volatile unsigned int*)(0x427E0F88UL)) +#define bFM3_EXBUS_ATIM7_ALC3 *((volatile unsigned int*)(0x427E0F8CUL)) +#define bFM3_EXBUS_ATIM7_ALES0 *((volatile unsigned int*)(0x427E0F90UL)) +#define bFM3_EXBUS_ATIM7_ALES1 *((volatile unsigned int*)(0x427E0F94UL)) +#define bFM3_EXBUS_ATIM7_ALES2 *((volatile unsigned int*)(0x427E0F98UL)) +#define bFM3_EXBUS_ATIM7_ALES3 *((volatile unsigned int*)(0x427E0F9CUL)) +#define bFM3_EXBUS_ATIM7_ALEW0 *((volatile unsigned int*)(0x427E0FA0UL)) +#define bFM3_EXBUS_ATIM7_ALEW1 *((volatile unsigned int*)(0x427E0FA4UL)) +#define bFM3_EXBUS_ATIM7_ALEW2 *((volatile unsigned int*)(0x427E0FA8UL)) +#define bFM3_EXBUS_ATIM7_ALEW3 *((volatile unsigned int*)(0x427E0FACUL)) +#define bFM3_EXBUS_DCLKR_MDIV0 *((volatile unsigned int*)(0x427E6000UL)) +#define bFM3_EXBUS_DCLKR_MDIV1 *((volatile unsigned int*)(0x427E6004UL)) +#define bFM3_EXBUS_DCLKR_MDIV2 *((volatile unsigned int*)(0x427E6008UL)) +#define bFM3_EXBUS_DCLKR_MDIV3 *((volatile unsigned int*)(0x427E600CUL)) +#define bFM3_EXBUS_DCLKR_MCLKON *((volatile unsigned int*)(0x427E6010UL)) + +/* USB channel 0 registers */ +#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) +#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) +#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) +#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) +#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) +#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) +#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) +#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) +#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) +#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) +#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) +#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) +#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) +#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) +#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) +#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) +#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) +#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) +#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) +#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) +#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) +#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) +#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) +#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) +#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) +#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) +#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) +#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) +#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) +#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) +#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) +#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) +#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) +#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) +#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) +#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) +#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) +#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) +#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) +#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) +#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) +#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) +#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) +#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) +#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) +#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) +#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) +#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) +#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) +#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) +#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) +#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) +#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) +#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) +#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) +#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) +#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) +#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) +#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) +#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) +#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) +#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) +#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) +#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) +#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) +#define bFM3_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) +#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) +#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) +#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) +#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) +#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) +#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) +#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) +#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) +#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) +#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) +#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) +#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) +#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) +#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) +#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) +#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) +#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) +#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) +#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) +#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) +#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) +#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) +#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) +#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) +#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) +#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) +#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) +#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) +#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) +#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) +#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) +#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) +#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) +#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) +#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) +#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) +#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) +#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) +#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) +#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) +#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) +#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) +#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) +#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) +#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) +#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) +#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) +#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) +#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) +#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) +#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) +#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) +#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) +#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) +#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) +#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) +#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) +#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) +#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) +#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) +#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) +#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) +#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) +#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) +#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) +#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) +#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) +#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) +#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) +#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) +#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) +#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) +#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) +#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) +#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) +#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) +#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) +#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) +#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) +#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) +#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) +#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) +#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) +#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) +#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) +#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) +#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) +#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) +#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) +#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) +#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) +#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) +#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) +#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) +#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) +#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) +#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) +#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) +#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) +#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) +#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) +#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) +#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) +#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) +#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) +#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) +#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) +#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) +#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) +#define bFM3_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) +#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) +#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) +#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) +#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) +#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) +#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) +#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) +#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) +#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) +#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) +#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) +#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) +#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) +#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) +#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) +#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) +#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) +#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) +#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) +#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) +#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) +#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) +#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) +#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) +#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) +#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) +#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) +#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) +#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) +#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) +#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) +#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) +#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) +#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) +#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) +#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) +#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) +#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) +#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) +#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) +#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) +#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) +#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) +#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) +#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) +#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) +#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) +#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) +#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) +#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) +#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) +#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) +#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) +#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) +#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) +#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) +#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) +#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) + +/* USB channel 1 registers */ +#define bFM3_USB1_HCNT_HOST *((volatile unsigned int*)(0x42A42000UL)) +#define bFM3_USB1_HCNT_URST *((volatile unsigned int*)(0x42A42004UL)) +#define bFM3_USB1_HCNT_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) +#define bFM3_USB1_HCNT_DIRE *((volatile unsigned int*)(0x42A4200CUL)) +#define bFM3_USB1_HCNT_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) +#define bFM3_USB1_HCNT_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) +#define bFM3_USB1_HCNT_URIRE *((volatile unsigned int*)(0x42A42018UL)) +#define bFM3_USB1_HCNT_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) +#define bFM3_USB1_HCNT_RETRY *((volatile unsigned int*)(0x42A42020UL)) +#define bFM3_USB1_HCNT_CANCEL *((volatile unsigned int*)(0x42A42024UL)) +#define bFM3_USB1_HCNT_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) +#define bFM3_USB1_HCNT0_HOST *((volatile unsigned int*)(0x42A42000UL)) +#define bFM3_USB1_HCNT0_URST *((volatile unsigned int*)(0x42A42004UL)) +#define bFM3_USB1_HCNT0_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) +#define bFM3_USB1_HCNT0_DIRE *((volatile unsigned int*)(0x42A4200CUL)) +#define bFM3_USB1_HCNT0_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) +#define bFM3_USB1_HCNT0_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) +#define bFM3_USB1_HCNT0_URIRE *((volatile unsigned int*)(0x42A42018UL)) +#define bFM3_USB1_HCNT0_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) +#define bFM3_USB1_HCNT1_RETRY *((volatile unsigned int*)(0x42A42020UL)) +#define bFM3_USB1_HCNT1_CANCEL *((volatile unsigned int*)(0x42A42024UL)) +#define bFM3_USB1_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) +#define bFM3_USB1_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42A42080UL)) +#define bFM3_USB1_HIRQ_DIRQ *((volatile unsigned int*)(0x42A42084UL)) +#define bFM3_USB1_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42A42088UL)) +#define bFM3_USB1_HIRQ_CMPIRQ *((volatile unsigned int*)(0x42A4208CUL)) +#define bFM3_USB1_HIRQ_URIRQ *((volatile unsigned int*)(0x42A42090UL)) +#define bFM3_USB1_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42A42094UL)) +#define bFM3_USB1_HIRQ_TCAN *((volatile unsigned int*)(0x42A4209CUL)) +#define bFM3_USB1_HERR_HS0 *((volatile unsigned int*)(0x42A420A0UL)) +#define bFM3_USB1_HERR_HS1 *((volatile unsigned int*)(0x42A420A4UL)) +#define bFM3_USB1_HERR_STUFF *((volatile unsigned int*)(0x42A420A8UL)) +#define bFM3_USB1_HERR_TGERR *((volatile unsigned int*)(0x42A420ACUL)) +#define bFM3_USB1_HERR_CRC *((volatile unsigned int*)(0x42A420B0UL)) +#define bFM3_USB1_HERR_TOUT *((volatile unsigned int*)(0x42A420B4UL)) +#define bFM3_USB1_HERR_RERR *((volatile unsigned int*)(0x42A420B8UL)) +#define bFM3_USB1_HERR_LSTOF *((volatile unsigned int*)(0x42A420BCUL)) +#define bFM3_USB1_HSTATE_CSTAT *((volatile unsigned int*)(0x42A42100UL)) +#define bFM3_USB1_HSTATE_TMODE *((volatile unsigned int*)(0x42A42104UL)) +#define bFM3_USB1_HSTATE_SUSP *((volatile unsigned int*)(0x42A42108UL)) +#define bFM3_USB1_HSTATE_SOFBUSY *((volatile unsigned int*)(0x42A4210CUL)) +#define bFM3_USB1_HSTATE_CLKSEL *((volatile unsigned int*)(0x42A42110UL)) +#define bFM3_USB1_HSTATE_ALIVE *((volatile unsigned int*)(0x42A42114UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42A42120UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42A42124UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42A42128UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x42A4212CUL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42A42130UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42A42134UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42A42138UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x42A4213CUL)) +#define bFM3_USB1_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42A42180UL)) +#define bFM3_USB1_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42A42184UL)) +#define bFM3_USB1_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42A42188UL)) +#define bFM3_USB1_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x42A4218CUL)) +#define bFM3_USB1_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42A42190UL)) +#define bFM3_USB1_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42A42194UL)) +#define bFM3_USB1_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42A42198UL)) +#define bFM3_USB1_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x42A4219CUL)) +#define bFM3_USB1_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x42A421A0UL)) +#define bFM3_USB1_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x42A421A4UL)) +#define bFM3_USB1_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x42A421A8UL)) +#define bFM3_USB1_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x42A421ACUL)) +#define bFM3_USB1_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x42A421B0UL)) +#define bFM3_USB1_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x42A421B4UL)) +#define bFM3_USB1_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x42A421B8UL)) +#define bFM3_USB1_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x42A421BCUL)) +#define bFM3_USB1_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42A42180UL)) +#define bFM3_USB1_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42A42184UL)) +#define bFM3_USB1_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42A42188UL)) +#define bFM3_USB1_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x42A4218CUL)) +#define bFM3_USB1_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42A42190UL)) +#define bFM3_USB1_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42A42194UL)) +#define bFM3_USB1_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42A42198UL)) +#define bFM3_USB1_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x42A4219CUL)) +#define bFM3_USB1_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x42A421A0UL)) +#define bFM3_USB1_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x42A421A4UL)) +#define bFM3_USB1_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x42A421A8UL)) +#define bFM3_USB1_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x42A421ACUL)) +#define bFM3_USB1_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x42A421B0UL)) +#define bFM3_USB1_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x42A421B4UL)) +#define bFM3_USB1_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x42A421B8UL)) +#define bFM3_USB1_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x42A421BCUL)) +#define bFM3_USB1_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42A42200UL)) +#define bFM3_USB1_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42A42204UL)) +#define bFM3_USB1_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42A42208UL)) +#define bFM3_USB1_HADR_ADDRESS0 *((volatile unsigned int*)(0x42A42220UL)) +#define bFM3_USB1_HADR_ADDRESS1 *((volatile unsigned int*)(0x42A42224UL)) +#define bFM3_USB1_HADR_ADDRESS2 *((volatile unsigned int*)(0x42A42228UL)) +#define bFM3_USB1_HADR_ADDRESS3 *((volatile unsigned int*)(0x42A4222CUL)) +#define bFM3_USB1_HADR_ADDRESS4 *((volatile unsigned int*)(0x42A42230UL)) +#define bFM3_USB1_HADR_ADDRESS5 *((volatile unsigned int*)(0x42A42234UL)) +#define bFM3_USB1_HADR_ADDRESS6 *((volatile unsigned int*)(0x42A42238UL)) +#define bFM3_USB1_HEOF_EOF0 *((volatile unsigned int*)(0x42A42280UL)) +#define bFM3_USB1_HEOF_EOF1 *((volatile unsigned int*)(0x42A42284UL)) +#define bFM3_USB1_HEOF_EOF2 *((volatile unsigned int*)(0x42A42288UL)) +#define bFM3_USB1_HEOF_EOF3 *((volatile unsigned int*)(0x42A4228CUL)) +#define bFM3_USB1_HEOF_EOF4 *((volatile unsigned int*)(0x42A42290UL)) +#define bFM3_USB1_HEOF_EOF5 *((volatile unsigned int*)(0x42A42294UL)) +#define bFM3_USB1_HEOF_EOF6 *((volatile unsigned int*)(0x42A42298UL)) +#define bFM3_USB1_HEOF_EOF7 *((volatile unsigned int*)(0x42A4229CUL)) +#define bFM3_USB1_HEOF_EOF8 *((volatile unsigned int*)(0x42A422A0UL)) +#define bFM3_USB1_HEOF_EOF9 *((volatile unsigned int*)(0x42A422A4UL)) +#define bFM3_USB1_HEOF_EOF10 *((volatile unsigned int*)(0x42A422A8UL)) +#define bFM3_USB1_HEOF_EOF11 *((volatile unsigned int*)(0x42A422ACUL)) +#define bFM3_USB1_HEOF_EOF12 *((volatile unsigned int*)(0x42A422B0UL)) +#define bFM3_USB1_HEOF_EOF13 *((volatile unsigned int*)(0x42A422B4UL)) +#define bFM3_USB1_HEOF_EOF14 *((volatile unsigned int*)(0x42A422B8UL)) +#define bFM3_USB1_HEOF_EOF15 *((volatile unsigned int*)(0x42A422BCUL)) +#define bFM3_USB1_HEOF0_EOF00 *((volatile unsigned int*)(0x42A42280UL)) +#define bFM3_USB1_HEOF0_EOF01 *((volatile unsigned int*)(0x42A42284UL)) +#define bFM3_USB1_HEOF0_EOF02 *((volatile unsigned int*)(0x42A42288UL)) +#define bFM3_USB1_HEOF0_EOF03 *((volatile unsigned int*)(0x42A4228CUL)) +#define bFM3_USB1_HEOF0_EOF04 *((volatile unsigned int*)(0x42A42290UL)) +#define bFM3_USB1_HEOF0_EOF05 *((volatile unsigned int*)(0x42A42294UL)) +#define bFM3_USB1_HEOF0_EOF06 *((volatile unsigned int*)(0x42A42298UL)) +#define bFM3_USB1_HEOF0_EOF07 *((volatile unsigned int*)(0x42A4229CUL)) +#define bFM3_USB1_HEOF1_EOF10 *((volatile unsigned int*)(0x42A422A0UL)) +#define bFM3_USB1_HEOF1_EOF11 *((volatile unsigned int*)(0x42A422A4UL)) +#define bFM3_USB1_HEOF1_EOF12 *((volatile unsigned int*)(0x42A422A8UL)) +#define bFM3_USB1_HEOF1_EOF13 *((volatile unsigned int*)(0x42A422ACUL)) +#define bFM3_USB1_HEOF1_EOF14 *((volatile unsigned int*)(0x42A422B0UL)) +#define bFM3_USB1_HEOF1_EOF15 *((volatile unsigned int*)(0x42A422B4UL)) +#define bFM3_USB1_HFRAME_FRAME0 *((volatile unsigned int*)(0x42A42300UL)) +#define bFM3_USB1_HFRAME_FRAME1 *((volatile unsigned int*)(0x42A42304UL)) +#define bFM3_USB1_HFRAME_FRAME2 *((volatile unsigned int*)(0x42A42308UL)) +#define bFM3_USB1_HFRAME_FRAME3 *((volatile unsigned int*)(0x42A4230CUL)) +#define bFM3_USB1_HFRAME_FRAME4 *((volatile unsigned int*)(0x42A42310UL)) +#define bFM3_USB1_HFRAME_FRAME5 *((volatile unsigned int*)(0x42A42314UL)) +#define bFM3_USB1_HFRAME_FRAME6 *((volatile unsigned int*)(0x42A42318UL)) +#define bFM3_USB1_HFRAME_FRAME7 *((volatile unsigned int*)(0x42A4231CUL)) +#define bFM3_USB1_HFRAME_FRAME8 *((volatile unsigned int*)(0x42A42320UL)) +#define bFM3_USB1_HFRAME_FRAME9 *((volatile unsigned int*)(0x42A42324UL)) +#define bFM3_USB1_HFRAME_FRAME10 *((volatile unsigned int*)(0x42A42328UL)) +#define bFM3_USB1_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42A42300UL)) +#define bFM3_USB1_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42A42304UL)) +#define bFM3_USB1_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42A42308UL)) +#define bFM3_USB1_HFRAME0_FRAME03 *((volatile unsigned int*)(0x42A4230CUL)) +#define bFM3_USB1_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42A42310UL)) +#define bFM3_USB1_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42A42314UL)) +#define bFM3_USB1_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42A42318UL)) +#define bFM3_USB1_HFRAME0_FRAME07 *((volatile unsigned int*)(0x42A4231CUL)) +#define bFM3_USB1_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42A42320UL)) +#define bFM3_USB1_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42A42324UL)) +#define bFM3_USB1_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42A42328UL)) +#define bFM3_USB1_HFRAME1_FRAME13 *((volatile unsigned int*)(0x42A4232CUL)) +#define bFM3_USB1_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42A42380UL)) +#define bFM3_USB1_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42A42384UL)) +#define bFM3_USB1_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42A42388UL)) +#define bFM3_USB1_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x42A4238CUL)) +#define bFM3_USB1_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42A42390UL)) +#define bFM3_USB1_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42A42394UL)) +#define bFM3_USB1_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42A42398UL)) +#define bFM3_USB1_HTOKEN_TGGL *((volatile unsigned int*)(0x42A4239CUL)) +#define bFM3_USB1_UDCC_PWC *((volatile unsigned int*)(0x42A42400UL)) +#define bFM3_USB1_UDCC_RFBK *((volatile unsigned int*)(0x42A42404UL)) +#define bFM3_USB1_UDCC_STALCLREN *((volatile unsigned int*)(0x42A4240CUL)) +#define bFM3_USB1_UDCC_USTP *((volatile unsigned int*)(0x42A42410UL)) +#define bFM3_USB1_UDCC_HCONX *((volatile unsigned int*)(0x42A42414UL)) +#define bFM3_USB1_UDCC_RESUM *((volatile unsigned int*)(0x42A42418UL)) +#define bFM3_USB1_UDCC_RST *((volatile unsigned int*)(0x42A4241CUL)) +#define bFM3_USB1_EP0C_PKS00 *((volatile unsigned int*)(0x42A42480UL)) +#define bFM3_USB1_EP0C_PKS01 *((volatile unsigned int*)(0x42A42484UL)) +#define bFM3_USB1_EP0C_PKS02 *((volatile unsigned int*)(0x42A42488UL)) +#define bFM3_USB1_EP0C_PKS03 *((volatile unsigned int*)(0x42A4248CUL)) +#define bFM3_USB1_EP0C_PKS04 *((volatile unsigned int*)(0x42A42490UL)) +#define bFM3_USB1_EP0C_PKS05 *((volatile unsigned int*)(0x42A42494UL)) +#define bFM3_USB1_EP0C_PKS06 *((volatile unsigned int*)(0x42A42498UL)) +#define bFM3_USB1_EP0C_STAL *((volatile unsigned int*)(0x42A424A4UL)) +#define bFM3_USB1_EP1C_PKS10 *((volatile unsigned int*)(0x42A42500UL)) +#define bFM3_USB1_EP1C_PKS11 *((volatile unsigned int*)(0x42A42504UL)) +#define bFM3_USB1_EP1C_PKS12 *((volatile unsigned int*)(0x42A42508UL)) +#define bFM3_USB1_EP1C_PKS13 *((volatile unsigned int*)(0x42A4250CUL)) +#define bFM3_USB1_EP1C_PKS14 *((volatile unsigned int*)(0x42A42510UL)) +#define bFM3_USB1_EP1C_PKS15 *((volatile unsigned int*)(0x42A42514UL)) +#define bFM3_USB1_EP1C_PKS16 *((volatile unsigned int*)(0x42A42518UL)) +#define bFM3_USB1_EP1C_PKS17 *((volatile unsigned int*)(0x42A4251CUL)) +#define bFM3_USB1_EP1C_PKS18 *((volatile unsigned int*)(0x42A42520UL)) +#define bFM3_USB1_EP1C_STAL *((volatile unsigned int*)(0x42A42524UL)) +#define bFM3_USB1_EP1C_NULE *((volatile unsigned int*)(0x42A42528UL)) +#define bFM3_USB1_EP1C_DMAE *((volatile unsigned int*)(0x42A4252CUL)) +#define bFM3_USB1_EP1C_DIR *((volatile unsigned int*)(0x42A42530UL)) +#define bFM3_USB1_EP1C_TYPE0 *((volatile unsigned int*)(0x42A42534UL)) +#define bFM3_USB1_EP1C_TYPE1 *((volatile unsigned int*)(0x42A42538UL)) +#define bFM3_USB1_EP1C_EPEN *((volatile unsigned int*)(0x42A4253CUL)) +#define bFM3_USB1_EP2C_PKS20 *((volatile unsigned int*)(0x42A42580UL)) +#define bFM3_USB1_EP2C_PKS21 *((volatile unsigned int*)(0x42A42584UL)) +#define bFM3_USB1_EP2C_PKS22 *((volatile unsigned int*)(0x42A42588UL)) +#define bFM3_USB1_EP2C_PKS23 *((volatile unsigned int*)(0x42A4258CUL)) +#define bFM3_USB1_EP2C_PKS24 *((volatile unsigned int*)(0x42A42590UL)) +#define bFM3_USB1_EP2C_PKS25 *((volatile unsigned int*)(0x42A42594UL)) +#define bFM3_USB1_EP2C_PKS26 *((volatile unsigned int*)(0x42A42598UL)) +#define bFM3_USB1_EP2C_STAL *((volatile unsigned int*)(0x42A425A4UL)) +#define bFM3_USB1_EP2C_NULE *((volatile unsigned int*)(0x42A425A8UL)) +#define bFM3_USB1_EP2C_DMAE *((volatile unsigned int*)(0x42A425ACUL)) +#define bFM3_USB1_EP2C_DIR *((volatile unsigned int*)(0x42A425B0UL)) +#define bFM3_USB1_EP2C_TYPE0 *((volatile unsigned int*)(0x42A425B4UL)) +#define bFM3_USB1_EP2C_TYPE1 *((volatile unsigned int*)(0x42A425B8UL)) +#define bFM3_USB1_EP2C_EPEN *((volatile unsigned int*)(0x42A425BCUL)) +#define bFM3_USB1_EP3C_PKS30 *((volatile unsigned int*)(0x42A42600UL)) +#define bFM3_USB1_EP3C_PKS31 *((volatile unsigned int*)(0x42A42604UL)) +#define bFM3_USB1_EP3C_PKS32 *((volatile unsigned int*)(0x42A42608UL)) +#define bFM3_USB1_EP3C_PKS33 *((volatile unsigned int*)(0x42A4260CUL)) +#define bFM3_USB1_EP3C_PKS34 *((volatile unsigned int*)(0x42A42610UL)) +#define bFM3_USB1_EP3C_PKS35 *((volatile unsigned int*)(0x42A42614UL)) +#define bFM3_USB1_EP3C_PKS36 *((volatile unsigned int*)(0x42A42618UL)) +#define bFM3_USB1_EP3C_STAL *((volatile unsigned int*)(0x42A42624UL)) +#define bFM3_USB1_EP3C_NULE *((volatile unsigned int*)(0x42A42628UL)) +#define bFM3_USB1_EP3C_DMAE *((volatile unsigned int*)(0x42A4262CUL)) +#define bFM3_USB1_EP3C_DIR *((volatile unsigned int*)(0x42A42630UL)) +#define bFM3_USB1_EP3C_TYPE0 *((volatile unsigned int*)(0x42A42634UL)) +#define bFM3_USB1_EP3C_TYPE1 *((volatile unsigned int*)(0x42A42638UL)) +#define bFM3_USB1_EP3C_EPEN *((volatile unsigned int*)(0x42A4263CUL)) +#define bFM3_USB1_EP4C_PKS40 *((volatile unsigned int*)(0x42A42680UL)) +#define bFM3_USB1_EP4C_PKS41 *((volatile unsigned int*)(0x42A42684UL)) +#define bFM3_USB1_EP4C_PKS42 *((volatile unsigned int*)(0x42A42688UL)) +#define bFM3_USB1_EP4C_PKS43 *((volatile unsigned int*)(0x42A4268CUL)) +#define bFM3_USB1_EP4C_PKS44 *((volatile unsigned int*)(0x42A42690UL)) +#define bFM3_USB1_EP4C_PKS45 *((volatile unsigned int*)(0x42A42694UL)) +#define bFM3_USB1_EP4C_PKS46 *((volatile unsigned int*)(0x42A42698UL)) +#define bFM3_USB1_EP4C_STAL *((volatile unsigned int*)(0x42A426A4UL)) +#define bFM3_USB1_EP4C_NULE *((volatile unsigned int*)(0x42A426A8UL)) +#define bFM3_USB1_EP4C_DMAE *((volatile unsigned int*)(0x42A426ACUL)) +#define bFM3_USB1_EP4C_DIR *((volatile unsigned int*)(0x42A426B0UL)) +#define bFM3_USB1_EP4C_TYPE0 *((volatile unsigned int*)(0x42A426B4UL)) +#define bFM3_USB1_EP4C_TYPE1 *((volatile unsigned int*)(0x42A426B8UL)) +#define bFM3_USB1_EP4C_EPEN *((volatile unsigned int*)(0x42A426BCUL)) +#define bFM3_USB1_EP5C_PKS50 *((volatile unsigned int*)(0x42A42700UL)) +#define bFM3_USB1_EP5C_PKS51 *((volatile unsigned int*)(0x42A42704UL)) +#define bFM3_USB1_EP5C_PKS52 *((volatile unsigned int*)(0x42A42708UL)) +#define bFM3_USB1_EP5C_PKS53 *((volatile unsigned int*)(0x42A4270CUL)) +#define bFM3_USB1_EP5C_PKS54 *((volatile unsigned int*)(0x42A42710UL)) +#define bFM3_USB1_EP5C_PKS55 *((volatile unsigned int*)(0x42A42714UL)) +#define bFM3_USB1_EP5C_PKS56 *((volatile unsigned int*)(0x42A42718UL)) +#define bFM3_USB1_EP5C_STAL *((volatile unsigned int*)(0x42A42724UL)) +#define bFM3_USB1_EP5C_NULE *((volatile unsigned int*)(0x42A42728UL)) +#define bFM3_USB1_EP5C_DMAE *((volatile unsigned int*)(0x42A4272CUL)) +#define bFM3_USB1_EP5C_DIR *((volatile unsigned int*)(0x42A42730UL)) +#define bFM3_USB1_EP5C_TYPE0 *((volatile unsigned int*)(0x42A42734UL)) +#define bFM3_USB1_EP5C_TYPE1 *((volatile unsigned int*)(0x42A42738UL)) +#define bFM3_USB1_EP5C_EPEN *((volatile unsigned int*)(0x42A4273CUL)) +#define bFM3_USB1_TMSP_TMSP0 *((volatile unsigned int*)(0x42A42780UL)) +#define bFM3_USB1_TMSP_TMSP1 *((volatile unsigned int*)(0x42A42784UL)) +#define bFM3_USB1_TMSP_TMSP2 *((volatile unsigned int*)(0x42A42788UL)) +#define bFM3_USB1_TMSP_TMSP3 *((volatile unsigned int*)(0x42A4278CUL)) +#define bFM3_USB1_TMSP_TMSP4 *((volatile unsigned int*)(0x42A42790UL)) +#define bFM3_USB1_TMSP_TMSP5 *((volatile unsigned int*)(0x42A42794UL)) +#define bFM3_USB1_TMSP_TMSP6 *((volatile unsigned int*)(0x42A42798UL)) +#define bFM3_USB1_TMSP_TMSP7 *((volatile unsigned int*)(0x42A4279CUL)) +#define bFM3_USB1_TMSP_TMSP8 *((volatile unsigned int*)(0x42A427A0UL)) +#define bFM3_USB1_TMSP_TMSP9 *((volatile unsigned int*)(0x42A427A4UL)) +#define bFM3_USB1_TMSP_TMSP10 *((volatile unsigned int*)(0x42A427A8UL)) +#define bFM3_USB1_UDCS_CONF *((volatile unsigned int*)(0x42A42800UL)) +#define bFM3_USB1_UDCS_SETP *((volatile unsigned int*)(0x42A42804UL)) +#define bFM3_USB1_UDCS_WKUP *((volatile unsigned int*)(0x42A42808UL)) +#define bFM3_USB1_UDCS_BRST *((volatile unsigned int*)(0x42A4280CUL)) +#define bFM3_USB1_UDCS_SOF *((volatile unsigned int*)(0x42A42810UL)) +#define bFM3_USB1_UDCS_SUSP *((volatile unsigned int*)(0x42A42814UL)) +#define bFM3_USB1_UDCIE_CONFIE *((volatile unsigned int*)(0x42A42820UL)) +#define bFM3_USB1_UDCIE_CONFN *((volatile unsigned int*)(0x42A42824UL)) +#define bFM3_USB1_UDCIE_WKUPIE *((volatile unsigned int*)(0x42A42828UL)) +#define bFM3_USB1_UDCIE_BRSTIE *((volatile unsigned int*)(0x42A4282CUL)) +#define bFM3_USB1_UDCIE_SOFIE *((volatile unsigned int*)(0x42A42830UL)) +#define bFM3_USB1_UDCIE_SUSPIE *((volatile unsigned int*)(0x42A42834UL)) +#define bFM3_USB1_EP0IS_DRQI *((volatile unsigned int*)(0x42A428A8UL)) +#define bFM3_USB1_EP0IS_DRQIIE *((volatile unsigned int*)(0x42A428B8UL)) +#define bFM3_USB1_EP0IS_BFINI *((volatile unsigned int*)(0x42A428BCUL)) +#define bFM3_USB1_EP0OS_SIZE0 *((volatile unsigned int*)(0x42A42900UL)) +#define bFM3_USB1_EP0OS_SIZE1 *((volatile unsigned int*)(0x42A42904UL)) +#define bFM3_USB1_EP0OS_SIZE2 *((volatile unsigned int*)(0x42A42908UL)) +#define bFM3_USB1_EP0OS_SIZE3 *((volatile unsigned int*)(0x42A4290CUL)) +#define bFM3_USB1_EP0OS_SIZE4 *((volatile unsigned int*)(0x42A42910UL)) +#define bFM3_USB1_EP0OS_SIZE5 *((volatile unsigned int*)(0x42A42914UL)) +#define bFM3_USB1_EP0OS_SIZE6 *((volatile unsigned int*)(0x42A42918UL)) +#define bFM3_USB1_EP0OS_SPK *((volatile unsigned int*)(0x42A42924UL)) +#define bFM3_USB1_EP0OS_DRQO *((volatile unsigned int*)(0x42A42928UL)) +#define bFM3_USB1_EP0OS_SPKIE *((volatile unsigned int*)(0x42A42934UL)) +#define bFM3_USB1_EP0OS_DRQOIE *((volatile unsigned int*)(0x42A42938UL)) +#define bFM3_USB1_EP0OS_BFINI *((volatile unsigned int*)(0x42A4293CUL)) +#define bFM3_USB1_EP1S_SIZE10 *((volatile unsigned int*)(0x42A42980UL)) +#define bFM3_USB1_EP1S_SIZE11 *((volatile unsigned int*)(0x42A42984UL)) +#define bFM3_USB1_EP1S_SIZE12 *((volatile unsigned int*)(0x42A42988UL)) +#define bFM3_USB1_EP1S_SIZE13 *((volatile unsigned int*)(0x42A4298CUL)) +#define bFM3_USB1_EP1S_SIZE14 *((volatile unsigned int*)(0x42A42990UL)) +#define bFM3_USB1_EP1S_SIZE15 *((volatile unsigned int*)(0x42A42994UL)) +#define bFM3_USB1_EP1S_SIZE16 *((volatile unsigned int*)(0x42A42998UL)) +#define bFM3_USB1_EP1S_SIZE17 *((volatile unsigned int*)(0x42A4299CUL)) +#define bFM3_USB1_EP1S_SIZE18 *((volatile unsigned int*)(0x42A429A0UL)) +#define bFM3_USB1_EP1S_SPK *((volatile unsigned int*)(0x42A429A4UL)) +#define bFM3_USB1_EP1S_DRQ *((volatile unsigned int*)(0x42A429A8UL)) +#define bFM3_USB1_EP1S_BUSY *((volatile unsigned int*)(0x42A429ACUL)) +#define bFM3_USB1_EP1S_SPKIE *((volatile unsigned int*)(0x42A429B4UL)) +#define bFM3_USB1_EP1S_DRQIE *((volatile unsigned int*)(0x42A429B8UL)) +#define bFM3_USB1_EP1S_BFINI *((volatile unsigned int*)(0x42A429BCUL)) +#define bFM3_USB1_EP2S_SIZE20 *((volatile unsigned int*)(0x42A42A00UL)) +#define bFM3_USB1_EP2S_SIZE21 *((volatile unsigned int*)(0x42A42A04UL)) +#define bFM3_USB1_EP2S_SIZE22 *((volatile unsigned int*)(0x42A42A08UL)) +#define bFM3_USB1_EP2S_SIZE23 *((volatile unsigned int*)(0x42A42A0CUL)) +#define bFM3_USB1_EP2S_SIZE24 *((volatile unsigned int*)(0x42A42A10UL)) +#define bFM3_USB1_EP2S_SIZE25 *((volatile unsigned int*)(0x42A42A14UL)) +#define bFM3_USB1_EP2S_SIZE26 *((volatile unsigned int*)(0x42A42A18UL)) +#define bFM3_USB1_EP2S_SPK *((volatile unsigned int*)(0x42A42A24UL)) +#define bFM3_USB1_EP2S_DRQ *((volatile unsigned int*)(0x42A42A28UL)) +#define bFM3_USB1_EP2S_BUSY *((volatile unsigned int*)(0x42A42A2CUL)) +#define bFM3_USB1_EP2S_SPKIE *((volatile unsigned int*)(0x42A42A34UL)) +#define bFM3_USB1_EP2S_DRQIE *((volatile unsigned int*)(0x42A42A38UL)) +#define bFM3_USB1_EP2S_BFINI *((volatile unsigned int*)(0x42A42A3CUL)) +#define bFM3_USB1_EP3S_SIZE30 *((volatile unsigned int*)(0x42A42A80UL)) +#define bFM3_USB1_EP3S_SIZE31 *((volatile unsigned int*)(0x42A42A84UL)) +#define bFM3_USB1_EP3S_SIZE32 *((volatile unsigned int*)(0x42A42A88UL)) +#define bFM3_USB1_EP3S_SIZE33 *((volatile unsigned int*)(0x42A42A8CUL)) +#define bFM3_USB1_EP3S_SIZE34 *((volatile unsigned int*)(0x42A42A90UL)) +#define bFM3_USB1_EP3S_SIZE35 *((volatile unsigned int*)(0x42A42A94UL)) +#define bFM3_USB1_EP3S_SIZE36 *((volatile unsigned int*)(0x42A42A98UL)) +#define bFM3_USB1_EP3S_SPK *((volatile unsigned int*)(0x42A42AA4UL)) +#define bFM3_USB1_EP3S_DRQ *((volatile unsigned int*)(0x42A42AA8UL)) +#define bFM3_USB1_EP3S_BUSY *((volatile unsigned int*)(0x42A42AACUL)) +#define bFM3_USB1_EP3S_SPKIE *((volatile unsigned int*)(0x42A42AB4UL)) +#define bFM3_USB1_EP3S_DRQIE *((volatile unsigned int*)(0x42A42AB8UL)) +#define bFM3_USB1_EP3S_BFINI *((volatile unsigned int*)(0x42A42ABCUL)) +#define bFM3_USB1_EP4S_SIZE40 *((volatile unsigned int*)(0x42A42B00UL)) +#define bFM3_USB1_EP4S_SIZE41 *((volatile unsigned int*)(0x42A42B04UL)) +#define bFM3_USB1_EP4S_SIZE42 *((volatile unsigned int*)(0x42A42B08UL)) +#define bFM3_USB1_EP4S_SIZE43 *((volatile unsigned int*)(0x42A42B0CUL)) +#define bFM3_USB1_EP4S_SIZE44 *((volatile unsigned int*)(0x42A42B10UL)) +#define bFM3_USB1_EP4S_SIZE45 *((volatile unsigned int*)(0x42A42B14UL)) +#define bFM3_USB1_EP4S_SIZE46 *((volatile unsigned int*)(0x42A42B18UL)) +#define bFM3_USB1_EP4S_SPK *((volatile unsigned int*)(0x42A42B24UL)) +#define bFM3_USB1_EP4S_DRQ *((volatile unsigned int*)(0x42A42B28UL)) +#define bFM3_USB1_EP4S_BUSY *((volatile unsigned int*)(0x42A42B2CUL)) +#define bFM3_USB1_EP4S_SPKIE *((volatile unsigned int*)(0x42A42B34UL)) +#define bFM3_USB1_EP4S_DRQIE *((volatile unsigned int*)(0x42A42B38UL)) +#define bFM3_USB1_EP4S_BFINI *((volatile unsigned int*)(0x42A42B3CUL)) +#define bFM3_USB1_EP5S_SIZE50 *((volatile unsigned int*)(0x42A42B80UL)) +#define bFM3_USB1_EP5S_SIZE51 *((volatile unsigned int*)(0x42A42B84UL)) +#define bFM3_USB1_EP5S_SIZE52 *((volatile unsigned int*)(0x42A42B88UL)) +#define bFM3_USB1_EP5S_SIZE53 *((volatile unsigned int*)(0x42A42B8CUL)) +#define bFM3_USB1_EP5S_SIZE54 *((volatile unsigned int*)(0x42A42B90UL)) +#define bFM3_USB1_EP5S_SIZE55 *((volatile unsigned int*)(0x42A42B94UL)) +#define bFM3_USB1_EP5S_SIZE56 *((volatile unsigned int*)(0x42A42B98UL)) +#define bFM3_USB1_EP5S_SPK *((volatile unsigned int*)(0x42A42BA4UL)) +#define bFM3_USB1_EP5S_DRQ *((volatile unsigned int*)(0x42A42BA8UL)) +#define bFM3_USB1_EP5S_BUSY *((volatile unsigned int*)(0x42A42BACUL)) +#define bFM3_USB1_EP5S_SPKIE *((volatile unsigned int*)(0x42A42BB4UL)) +#define bFM3_USB1_EP5S_DRQIE *((volatile unsigned int*)(0x42A42BB8UL)) +#define bFM3_USB1_EP5S_BFINI *((volatile unsigned int*)(0x42A42BBCUL)) + +/* DMA controller */ +#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) +#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) +#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) +#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) +#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) +#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) +#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) +#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) +#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) +#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) +#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) +#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) +#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) +#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) +#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) +#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) +#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) +#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) +#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) +#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) +#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) +#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) +#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) +#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) +#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) +#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) +#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) +#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) +#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) +#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) +#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) +#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) +#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) +#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) +#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) +#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) +#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) +#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) +#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) +#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) +#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) +#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) +#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) +#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) +#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) +#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) +#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) +#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) +#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) +#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) +#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) +#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) +#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) +#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) +#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) +#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) +#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) +#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) +#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) +#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) +#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) +#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) +#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) +#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) +#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) +#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) +#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) +#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) +#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) +#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) +#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) +#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) +#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) +#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) +#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) +#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) +#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) +#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) +#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) +#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) +#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) +#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) +#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) +#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) +#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) +#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) +#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) +#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) +#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) +#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) +#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) +#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) +#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) +#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) +#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) +#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) +#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) +#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) +#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) +#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) +#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) +#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) +#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) +#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) +#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) +#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) +#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) +#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) +#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) +#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) +#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) +#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) +#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) +#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) +#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) +#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) +#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) +#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) +#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) +#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) +#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) +#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) +#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) +#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) +#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) +#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) +#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) +#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) +#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) +#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) +#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) +#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) +#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) +#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) +#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) +#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) +#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) +#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) +#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) +#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) +#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) +#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) +#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) +#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) +#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) +#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) +#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) +#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) +#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) +#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) +#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) +#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) +#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) +#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) +#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) +#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) +#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) +#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) +#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) +#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) +#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) +#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) +#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) +#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) +#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) +#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) +#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) +#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) +#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) +#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) +#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) +#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) +#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) +#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) +#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) +#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) +#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) +#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) +#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) +#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) +#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) +#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) +#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) +#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) +#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) +#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) +#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) +#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) +#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) +#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) +#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) +#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) +#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) +#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) +#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) +#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) +#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) +#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) +#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) +#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) +#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) +#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) +#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) +#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) +#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) +#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) +#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) +#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) +#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) +#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) +#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) +#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) +#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) +#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) +#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) +#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) +#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) +#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) +#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) +#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) +#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) +#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) +#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) +#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) +#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) +#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) +#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) +#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) +#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) +#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) +#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) +#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) +#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) +#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) +#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) +#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) +#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) +#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) +#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) +#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) +#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) +#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) +#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) +#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) +#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) +#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) +#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) +#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) +#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) +#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) +#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) +#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) +#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) +#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) +#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) +#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) +#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) +#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) +#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) +#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) +#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) +#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) +#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) +#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) +#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) +#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) +#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) +#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) +#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) +#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) +#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) +#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) +#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) +#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) +#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) +#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) +#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) +#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) +#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) +#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) +#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) +#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) +#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) +#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) +#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) +#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) +#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) +#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) +#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) +#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) +#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) +#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) +#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) +#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) +#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) +#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) +#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) +#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) +#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) +#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) +#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) +#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) +#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) +#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) +#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) +#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) +#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) +#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) +#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) +#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) +#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) +#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) +#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) +#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) +#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) +#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) +#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) +#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) +#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) +#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) +#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) +#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) +#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) +#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) +#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) +#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) +#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) +#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) +#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) +#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) +#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) +#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) +#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) +#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) +#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) +#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) +#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) +#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) +#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) +#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) +#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) +#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) +#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) +#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) +#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) +#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) +#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) +#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) +#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) +#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) +#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) +#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) +#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) +#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) +#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) +#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) +#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) +#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) +#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) + +/* ETHERNET-MAC0 registers*/ +#define bFM3_ETHERNET_MAC0_MCR_RE *((volatile unsigned int*)(0x42C80008UL)) +#define bFM3_ETHERNET_MAC0_MCR_TE *((volatile unsigned int*)(0x42C8000CUL)) +#define bFM3_ETHERNET_MAC0_MCR_DC *((volatile unsigned int*)(0x42C80010UL)) +#define bFM3_ETHERNET_MAC0_MCR_BL0 *((volatile unsigned int*)(0x42C80014UL)) +#define bFM3_ETHERNET_MAC0_MCR_BL1 *((volatile unsigned int*)(0x42C80018UL)) +#define bFM3_ETHERNET_MAC0_MCR_ACS *((volatile unsigned int*)(0x42C8001CUL)) +#define bFM3_ETHERNET_MAC0_MCR_LUD *((volatile unsigned int*)(0x42C80020UL)) +#define bFM3_ETHERNET_MAC0_MCR_DR *((volatile unsigned int*)(0x42C80024UL)) +#define bFM3_ETHERNET_MAC0_MCR_IPC *((volatile unsigned int*)(0x42C80028UL)) +#define bFM3_ETHERNET_MAC0_MCR_DM *((volatile unsigned int*)(0x42C8002CUL)) +#define bFM3_ETHERNET_MAC0_MCR_LM *((volatile unsigned int*)(0x42C80030UL)) +#define bFM3_ETHERNET_MAC0_MCR_DO *((volatile unsigned int*)(0x42C80034UL)) +#define bFM3_ETHERNET_MAC0_MCR_FES *((volatile unsigned int*)(0x42C80038UL)) +#define bFM3_ETHERNET_MAC0_MCR_PS *((volatile unsigned int*)(0x42C8003CUL)) +#define bFM3_ETHERNET_MAC0_MCR_DCRS *((volatile unsigned int*)(0x42C80040UL)) +#define bFM3_ETHERNET_MAC0_MCR_IFG0 *((volatile unsigned int*)(0x42C80044UL)) +#define bFM3_ETHERNET_MAC0_MCR_IFG1 *((volatile unsigned int*)(0x42C80048UL)) +#define bFM3_ETHERNET_MAC0_MCR_IFG2 *((volatile unsigned int*)(0x42C8004CUL)) +#define bFM3_ETHERNET_MAC0_MCR_JE *((volatile unsigned int*)(0x42C80050UL)) +#define bFM3_ETHERNET_MAC0_MCR_BE *((volatile unsigned int*)(0x42C80054UL)) +#define bFM3_ETHERNET_MAC0_MCR_JD *((volatile unsigned int*)(0x42C80058UL)) +#define bFM3_ETHERNET_MAC0_MCR_WD *((volatile unsigned int*)(0x42C8005CUL)) +#define bFM3_ETHERNET_MAC0_MCR_TC *((volatile unsigned int*)(0x42C80060UL)) +#define bFM3_ETHERNET_MAC0_MCR_CST *((volatile unsigned int*)(0x42C80064UL)) +#define bFM3_ETHERNET_MAC0_MFFR_PR *((volatile unsigned int*)(0x42C80080UL)) +#define bFM3_ETHERNET_MAC0_MFFR_HUC *((volatile unsigned int*)(0x42C80084UL)) +#define bFM3_ETHERNET_MAC0_MFFR_HMC *((volatile unsigned int*)(0x42C80088UL)) +#define bFM3_ETHERNET_MAC0_MFFR_DAIF *((volatile unsigned int*)(0x42C8008CUL)) +#define bFM3_ETHERNET_MAC0_MFFR_PM *((volatile unsigned int*)(0x42C80090UL)) +#define bFM3_ETHERNET_MAC0_MFFR_DB *((volatile unsigned int*)(0x42C80094UL)) +#define bFM3_ETHERNET_MAC0_MFFR_PCF0 *((volatile unsigned int*)(0x42C80098UL)) +#define bFM3_ETHERNET_MAC0_MFFR_PCF1 *((volatile unsigned int*)(0x42C8009CUL)) +#define bFM3_ETHERNET_MAC0_MFFR_SAIF *((volatile unsigned int*)(0x42C800A0UL)) +#define bFM3_ETHERNET_MAC0_MFFR_SAF *((volatile unsigned int*)(0x42C800A4UL)) +#define bFM3_ETHERNET_MAC0_MFFR_HPF *((volatile unsigned int*)(0x42C800A8UL)) +#define bFM3_ETHERNET_MAC0_MFFR_RA *((volatile unsigned int*)(0x42C800FCUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH0 *((volatile unsigned int*)(0x42C80100UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH1 *((volatile unsigned int*)(0x42C80104UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH2 *((volatile unsigned int*)(0x42C80108UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH3 *((volatile unsigned int*)(0x42C8010CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH4 *((volatile unsigned int*)(0x42C80110UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH5 *((volatile unsigned int*)(0x42C80114UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH6 *((volatile unsigned int*)(0x42C80118UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH7 *((volatile unsigned int*)(0x42C8011CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH8 *((volatile unsigned int*)(0x42C80120UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH9 *((volatile unsigned int*)(0x42C80124UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH10 *((volatile unsigned int*)(0x42C80128UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH11 *((volatile unsigned int*)(0x42C8012CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH12 *((volatile unsigned int*)(0x42C80130UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH13 *((volatile unsigned int*)(0x42C80134UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH14 *((volatile unsigned int*)(0x42C80138UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH15 *((volatile unsigned int*)(0x42C8013CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH16 *((volatile unsigned int*)(0x42C80140UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH17 *((volatile unsigned int*)(0x42C80144UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH18 *((volatile unsigned int*)(0x42C80148UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH19 *((volatile unsigned int*)(0x42C8014CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH20 *((volatile unsigned int*)(0x42C80150UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH21 *((volatile unsigned int*)(0x42C80154UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH22 *((volatile unsigned int*)(0x42C80158UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH23 *((volatile unsigned int*)(0x42C8015CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH24 *((volatile unsigned int*)(0x42C80160UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH25 *((volatile unsigned int*)(0x42C80164UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH26 *((volatile unsigned int*)(0x42C80168UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH27 *((volatile unsigned int*)(0x42C8016CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH28 *((volatile unsigned int*)(0x42C80170UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH29 *((volatile unsigned int*)(0x42C80174UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH30 *((volatile unsigned int*)(0x42C80178UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH31 *((volatile unsigned int*)(0x42C8017CUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL0 *((volatile unsigned int*)(0x42C80180UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL1 *((volatile unsigned int*)(0x42C80184UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL2 *((volatile unsigned int*)(0x42C80188UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL3 *((volatile unsigned int*)(0x42C8018CUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL4 *((volatile unsigned int*)(0x42C80190UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL5 *((volatile unsigned int*)(0x42C80194UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL6 *((volatile unsigned int*)(0x42C80198UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL7 *((volatile unsigned int*)(0x42C8019CUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL8 *((volatile unsigned int*)(0x42C801A0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL9 *((volatile unsigned int*)(0x42C801A4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL10 *((volatile unsigned int*)(0x42C801A8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL11 *((volatile unsigned int*)(0x42C801ACUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL12 *((volatile unsigned int*)(0x42C801B0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL13 *((volatile unsigned int*)(0x42C801B4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL14 *((volatile unsigned int*)(0x42C801B8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL15 *((volatile unsigned int*)(0x42C801BCUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL16 *((volatile unsigned int*)(0x42C801C0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL17 *((volatile unsigned int*)(0x42C801C4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL18 *((volatile unsigned int*)(0x42C801C8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL19 *((volatile unsigned int*)(0x42C801CCUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL20 *((volatile unsigned int*)(0x42C801D0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL21 *((volatile unsigned int*)(0x42C801D4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL22 *((volatile unsigned int*)(0x42C801D8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL23 *((volatile unsigned int*)(0x42C801DCUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL24 *((volatile unsigned int*)(0x42C801E0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL25 *((volatile unsigned int*)(0x42C801E4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL26 *((volatile unsigned int*)(0x42C801E8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL27 *((volatile unsigned int*)(0x42C801ECUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL28 *((volatile unsigned int*)(0x42C801F0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL29 *((volatile unsigned int*)(0x42C801F4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL30 *((volatile unsigned int*)(0x42C801F8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL31 *((volatile unsigned int*)(0x42C801FCUL)) +#define bFM3_ETHERNET_MAC0_GAR_GB *((volatile unsigned int*)(0x42C80200UL)) +#define bFM3_ETHERNET_MAC0_GAR_GW *((volatile unsigned int*)(0x42C80204UL)) +#define bFM3_ETHERNET_MAC0_GAR_CR0 *((volatile unsigned int*)(0x42C80208UL)) +#define bFM3_ETHERNET_MAC0_GAR_CR1 *((volatile unsigned int*)(0x42C8020CUL)) +#define bFM3_ETHERNET_MAC0_GAR_CR2 *((volatile unsigned int*)(0x42C80210UL)) +#define bFM3_ETHERNET_MAC0_GAR_CR3 *((volatile unsigned int*)(0x42C80214UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR0 *((volatile unsigned int*)(0x42C80218UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR1 *((volatile unsigned int*)(0x42C8021CUL)) +#define bFM3_ETHERNET_MAC0_GAR_GR2 *((volatile unsigned int*)(0x42C80220UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR3 *((volatile unsigned int*)(0x42C80224UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR4 *((volatile unsigned int*)(0x42C80228UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA0 *((volatile unsigned int*)(0x42C8022CUL)) +#define bFM3_ETHERNET_MAC0_GAR_PA1 *((volatile unsigned int*)(0x42C80230UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA2 *((volatile unsigned int*)(0x42C80234UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA3 *((volatile unsigned int*)(0x42C80238UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA4 *((volatile unsigned int*)(0x42C8023CUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD0 *((volatile unsigned int*)(0x42C80280UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD1 *((volatile unsigned int*)(0x42C80284UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD2 *((volatile unsigned int*)(0x42C80288UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD3 *((volatile unsigned int*)(0x42C8028CUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD4 *((volatile unsigned int*)(0x42C80290UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD5 *((volatile unsigned int*)(0x42C80294UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD6 *((volatile unsigned int*)(0x42C80298UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD7 *((volatile unsigned int*)(0x42C8029CUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD8 *((volatile unsigned int*)(0x42C802A0UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD9 *((volatile unsigned int*)(0x42C802A4UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD10 *((volatile unsigned int*)(0x42C802A8UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD11 *((volatile unsigned int*)(0x42C802ACUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD12 *((volatile unsigned int*)(0x42C802B0UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD13 *((volatile unsigned int*)(0x42C802B4UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD14 *((volatile unsigned int*)(0x42C802B8UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD15 *((volatile unsigned int*)(0x42C802BCUL)) +#define bFM3_ETHERNET_MAC0_FCR_FCB_BPA *((volatile unsigned int*)(0x42C80300UL)) +#define bFM3_ETHERNET_MAC0_FCR_TFE *((volatile unsigned int*)(0x42C80304UL)) +#define bFM3_ETHERNET_MAC0_FCR_RFE *((volatile unsigned int*)(0x42C80308UL)) +#define bFM3_ETHERNET_MAC0_FCR_UP *((volatile unsigned int*)(0x42C8030CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PLT0 *((volatile unsigned int*)(0x42C80310UL)) +#define bFM3_ETHERNET_MAC0_FCR_PLT1 *((volatile unsigned int*)(0x42C80314UL)) +#define bFM3_ETHERNET_MAC0_FCR_DZPQ *((volatile unsigned int*)(0x42C8031CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT0 *((volatile unsigned int*)(0x42C80340UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT1 *((volatile unsigned int*)(0x42C80344UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT2 *((volatile unsigned int*)(0x42C80348UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT3 *((volatile unsigned int*)(0x42C8034CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT4 *((volatile unsigned int*)(0x42C80350UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT5 *((volatile unsigned int*)(0x42C80354UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT6 *((volatile unsigned int*)(0x42C80358UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT7 *((volatile unsigned int*)(0x42C8035CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT8 *((volatile unsigned int*)(0x42C80360UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT9 *((volatile unsigned int*)(0x42C80364UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT10 *((volatile unsigned int*)(0x42C80368UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT11 *((volatile unsigned int*)(0x42C8036CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT12 *((volatile unsigned int*)(0x42C80370UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT13 *((volatile unsigned int*)(0x42C80374UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT14 *((volatile unsigned int*)(0x42C80378UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT15 *((volatile unsigned int*)(0x42C8037CUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL0 *((volatile unsigned int*)(0x42C80380UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL1 *((volatile unsigned int*)(0x42C80384UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL2 *((volatile unsigned int*)(0x42C80388UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL3 *((volatile unsigned int*)(0x42C8038CUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL4 *((volatile unsigned int*)(0x42C80390UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL5 *((volatile unsigned int*)(0x42C80394UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL6 *((volatile unsigned int*)(0x42C80398UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL7 *((volatile unsigned int*)(0x42C8039CUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL8 *((volatile unsigned int*)(0x42C803A0UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL9 *((volatile unsigned int*)(0x42C803A4UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL10 *((volatile unsigned int*)(0x42C803A8UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL11 *((volatile unsigned int*)(0x42C803ACUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL12 *((volatile unsigned int*)(0x42C803B0UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL13 *((volatile unsigned int*)(0x42C803B4UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL14 *((volatile unsigned int*)(0x42C803B8UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL15 *((volatile unsigned int*)(0x42C803BCUL)) +#define bFM3_ETHERNET_MAC0_VTR_ETV *((volatile unsigned int*)(0x42C803C0UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42C80500UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42C80504UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42C80508UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42C8050CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42C80510UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42C80514UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42C80518UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42C8051CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42C80520UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42C80524UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42C80528UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42C8052CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42C80530UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42C80534UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42C80538UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42C8053CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42C80540UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42C80544UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42C80548UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42C8054CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42C80550UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42C80554UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42C80558UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42C8055CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42C80560UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42C80564UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42C80568UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42C8056CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42C80570UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42C80574UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42C80578UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42C8057CUL)) +#define bFM3_ETHERNET_MAC0_PMTR_PD *((volatile unsigned int*)(0x42C80580UL)) +#define bFM3_ETHERNET_MAC0_PMTR_MPE *((volatile unsigned int*)(0x42C80584UL)) +#define bFM3_ETHERNET_MAC0_PMTR_WFE *((volatile unsigned int*)(0x42C80588UL)) +#define bFM3_ETHERNET_MAC0_PMTR_MPR *((volatile unsigned int*)(0x42C80594UL)) +#define bFM3_ETHERNET_MAC0_PMTR_WPR *((volatile unsigned int*)(0x42C80598UL)) +#define bFM3_ETHERNET_MAC0_PMTR_GU *((volatile unsigned int*)(0x42C805A4UL)) +#define bFM3_ETHERNET_MAC0_PMTR_RWFFRPR *((volatile unsigned int*)(0x42C805FCUL)) +#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEN *((volatile unsigned int*)(0x42C80600UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEX *((volatile unsigned int*)(0x42C80604UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEN *((volatile unsigned int*)(0x42C80608UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEX *((volatile unsigned int*)(0x42C8060CUL)) +#define bFM3_ETHERNET_MAC0_LPICSR_TLPIST *((volatile unsigned int*)(0x42C80620UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_RLPIST *((volatile unsigned int*)(0x42C80624UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_LPIEN *((volatile unsigned int*)(0x42C80640UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_PLS *((volatile unsigned int*)(0x42C80644UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_PLSEN *((volatile unsigned int*)(0x42C80648UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_LPITXA *((volatile unsigned int*)(0x42C8064CUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT0 *((volatile unsigned int*)(0x42C80680UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT1 *((volatile unsigned int*)(0x42C80684UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT2 *((volatile unsigned int*)(0x42C80688UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT3 *((volatile unsigned int*)(0x42C8068CUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT4 *((volatile unsigned int*)(0x42C80690UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT5 *((volatile unsigned int*)(0x42C80694UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT6 *((volatile unsigned int*)(0x42C80698UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT7 *((volatile unsigned int*)(0x42C8069CUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT8 *((volatile unsigned int*)(0x42C806A0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT9 *((volatile unsigned int*)(0x42C806A4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT10 *((volatile unsigned int*)(0x42C806A8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT11 *((volatile unsigned int*)(0x42C806ACUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT12 *((volatile unsigned int*)(0x42C806B0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT13 *((volatile unsigned int*)(0x42C806B4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT14 *((volatile unsigned int*)(0x42C806B8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT15 *((volatile unsigned int*)(0x42C806BCUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT0 *((volatile unsigned int*)(0x42C806C0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT1 *((volatile unsigned int*)(0x42C806C4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT2 *((volatile unsigned int*)(0x42C806C8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT3 *((volatile unsigned int*)(0x42C806CCUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT4 *((volatile unsigned int*)(0x42C806D0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT5 *((volatile unsigned int*)(0x42C806D4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT6 *((volatile unsigned int*)(0x42C806D8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT7 *((volatile unsigned int*)(0x42C806DCUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT8 *((volatile unsigned int*)(0x42C806E0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT9 *((volatile unsigned int*)(0x42C806E4UL)) +#define bFM3_ETHERNET_MAC0_ISR_RGIS *((volatile unsigned int*)(0x42C80700UL)) +#define bFM3_ETHERNET_MAC0_ISR_PIS *((volatile unsigned int*)(0x42C8070CUL)) +#define bFM3_ETHERNET_MAC0_ISR_MIS *((volatile unsigned int*)(0x42C80710UL)) +#define bFM3_ETHERNET_MAC0_ISR_RIS *((volatile unsigned int*)(0x42C80714UL)) +#define bFM3_ETHERNET_MAC0_ISR_TIS *((volatile unsigned int*)(0x42C80718UL)) +#define bFM3_ETHERNET_MAC0_ISR_COIS *((volatile unsigned int*)(0x42C8071CUL)) +#define bFM3_ETHERNET_MAC0_ISR_TSIS *((volatile unsigned int*)(0x42C80724UL)) +#define bFM3_ETHERNET_MAC0_ISR_LPIIS *((volatile unsigned int*)(0x42C80728UL)) +#define bFM3_ETHERNET_MAC0_IMR_RGIM *((volatile unsigned int*)(0x42C80780UL)) +#define bFM3_ETHERNET_MAC0_IMR_PIM *((volatile unsigned int*)(0x42C8078CUL)) +#define bFM3_ETHERNET_MAC0_IMR_TSIM *((volatile unsigned int*)(0x42C80794UL)) +#define bFM3_ETHERNET_MAC0_IMR_LPIIM *((volatile unsigned int*)(0x42C80798UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A32 *((volatile unsigned int*)(0x42C80800UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A33 *((volatile unsigned int*)(0x42C80804UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A34 *((volatile unsigned int*)(0x42C80808UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A35 *((volatile unsigned int*)(0x42C8080CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A36 *((volatile unsigned int*)(0x42C80810UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A37 *((volatile unsigned int*)(0x42C80814UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A38 *((volatile unsigned int*)(0x42C80818UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A39 *((volatile unsigned int*)(0x42C8081CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A40 *((volatile unsigned int*)(0x42C80820UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A41 *((volatile unsigned int*)(0x42C80824UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A42 *((volatile unsigned int*)(0x42C80828UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A43 *((volatile unsigned int*)(0x42C8082CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A44 *((volatile unsigned int*)(0x42C80830UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A45 *((volatile unsigned int*)(0x42C80834UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A46 *((volatile unsigned int*)(0x42C80838UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A47 *((volatile unsigned int*)(0x42C8083CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_MO *((volatile unsigned int*)(0x42C8087CUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A0 *((volatile unsigned int*)(0x42C80880UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A1 *((volatile unsigned int*)(0x42C80884UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A2 *((volatile unsigned int*)(0x42C80888UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A3 *((volatile unsigned int*)(0x42C8088CUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A4 *((volatile unsigned int*)(0x42C80890UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A5 *((volatile unsigned int*)(0x42C80894UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A6 *((volatile unsigned int*)(0x42C80898UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A7 *((volatile unsigned int*)(0x42C8089CUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A8 *((volatile unsigned int*)(0x42C808A0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A9 *((volatile unsigned int*)(0x42C808A4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A10 *((volatile unsigned int*)(0x42C808A8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A11 *((volatile unsigned int*)(0x42C808ACUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A12 *((volatile unsigned int*)(0x42C808B0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A13 *((volatile unsigned int*)(0x42C808B4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A14 *((volatile unsigned int*)(0x42C808B8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A15 *((volatile unsigned int*)(0x42C808BCUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A16 *((volatile unsigned int*)(0x42C808C0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A17 *((volatile unsigned int*)(0x42C808C4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A18 *((volatile unsigned int*)(0x42C808C8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A19 *((volatile unsigned int*)(0x42C808CCUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A20 *((volatile unsigned int*)(0x42C808D0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A21 *((volatile unsigned int*)(0x42C808D4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A22 *((volatile unsigned int*)(0x42C808D8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A23 *((volatile unsigned int*)(0x42C808DCUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A24 *((volatile unsigned int*)(0x42C808E0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A25 *((volatile unsigned int*)(0x42C808E4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A26 *((volatile unsigned int*)(0x42C808E8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A27 *((volatile unsigned int*)(0x42C808ECUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A28 *((volatile unsigned int*)(0x42C808F0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A29 *((volatile unsigned int*)(0x42C808F4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A30 *((volatile unsigned int*)(0x42C808F8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A31 *((volatile unsigned int*)(0x42C808FCUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A32 *((volatile unsigned int*)(0x42C80900UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A33 *((volatile unsigned int*)(0x42C80904UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A34 *((volatile unsigned int*)(0x42C80908UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A35 *((volatile unsigned int*)(0x42C8090CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A36 *((volatile unsigned int*)(0x42C80910UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A37 *((volatile unsigned int*)(0x42C80914UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A38 *((volatile unsigned int*)(0x42C80918UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A39 *((volatile unsigned int*)(0x42C8091CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A40 *((volatile unsigned int*)(0x42C80920UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A41 *((volatile unsigned int*)(0x42C80924UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A42 *((volatile unsigned int*)(0x42C80928UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A43 *((volatile unsigned int*)(0x42C8092CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A44 *((volatile unsigned int*)(0x42C80930UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A45 *((volatile unsigned int*)(0x42C80934UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A46 *((volatile unsigned int*)(0x42C80938UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A47 *((volatile unsigned int*)(0x42C8093CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC0 *((volatile unsigned int*)(0x42C80960UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC1 *((volatile unsigned int*)(0x42C80964UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC2 *((volatile unsigned int*)(0x42C80968UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC3 *((volatile unsigned int*)(0x42C8096CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC4 *((volatile unsigned int*)(0x42C80970UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC5 *((volatile unsigned int*)(0x42C80974UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_SA *((volatile unsigned int*)(0x42C80978UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_AE *((volatile unsigned int*)(0x42C8097CUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A0 *((volatile unsigned int*)(0x42C80980UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A1 *((volatile unsigned int*)(0x42C80984UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A2 *((volatile unsigned int*)(0x42C80988UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A3 *((volatile unsigned int*)(0x42C8098CUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A4 *((volatile unsigned int*)(0x42C80990UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A5 *((volatile unsigned int*)(0x42C80994UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A6 *((volatile unsigned int*)(0x42C80998UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A7 *((volatile unsigned int*)(0x42C8099CUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A8 *((volatile unsigned int*)(0x42C809A0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A9 *((volatile unsigned int*)(0x42C809A4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A10 *((volatile unsigned int*)(0x42C809A8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A11 *((volatile unsigned int*)(0x42C809ACUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A12 *((volatile unsigned int*)(0x42C809B0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A13 *((volatile unsigned int*)(0x42C809B4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A14 *((volatile unsigned int*)(0x42C809B8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A15 *((volatile unsigned int*)(0x42C809BCUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A16 *((volatile unsigned int*)(0x42C809C0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A17 *((volatile unsigned int*)(0x42C809C4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A18 *((volatile unsigned int*)(0x42C809C8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A19 *((volatile unsigned int*)(0x42C809CCUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A20 *((volatile unsigned int*)(0x42C809D0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A21 *((volatile unsigned int*)(0x42C809D4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A22 *((volatile unsigned int*)(0x42C809D8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A23 *((volatile unsigned int*)(0x42C809DCUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A24 *((volatile unsigned int*)(0x42C809E0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A25 *((volatile unsigned int*)(0x42C809E4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A26 *((volatile unsigned int*)(0x42C809E8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A27 *((volatile unsigned int*)(0x42C809ECUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A28 *((volatile unsigned int*)(0x42C809F0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A29 *((volatile unsigned int*)(0x42C809F4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A30 *((volatile unsigned int*)(0x42C809F8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A31 *((volatile unsigned int*)(0x42C809FCUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A32 *((volatile unsigned int*)(0x42C80A00UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A33 *((volatile unsigned int*)(0x42C80A04UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A34 *((volatile unsigned int*)(0x42C80A08UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A35 *((volatile unsigned int*)(0x42C80A0CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A36 *((volatile unsigned int*)(0x42C80A10UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A37 *((volatile unsigned int*)(0x42C80A14UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A38 *((volatile unsigned int*)(0x42C80A18UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A39 *((volatile unsigned int*)(0x42C80A1CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A40 *((volatile unsigned int*)(0x42C80A20UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A41 *((volatile unsigned int*)(0x42C80A24UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A42 *((volatile unsigned int*)(0x42C80A28UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A43 *((volatile unsigned int*)(0x42C80A2CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A44 *((volatile unsigned int*)(0x42C80A30UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A45 *((volatile unsigned int*)(0x42C80A34UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A46 *((volatile unsigned int*)(0x42C80A38UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A47 *((volatile unsigned int*)(0x42C80A3CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC0 *((volatile unsigned int*)(0x42C80A60UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC1 *((volatile unsigned int*)(0x42C80A64UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC2 *((volatile unsigned int*)(0x42C80A68UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC3 *((volatile unsigned int*)(0x42C80A6CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC4 *((volatile unsigned int*)(0x42C80A70UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC5 *((volatile unsigned int*)(0x42C80A74UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_SA *((volatile unsigned int*)(0x42C80A78UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_AE *((volatile unsigned int*)(0x42C80A7CUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A0 *((volatile unsigned int*)(0x42C80A80UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A1 *((volatile unsigned int*)(0x42C80A84UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A2 *((volatile unsigned int*)(0x42C80A88UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A3 *((volatile unsigned int*)(0x42C80A8CUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A4 *((volatile unsigned int*)(0x42C80A90UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A5 *((volatile unsigned int*)(0x42C80A94UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A6 *((volatile unsigned int*)(0x42C80A98UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A7 *((volatile unsigned int*)(0x42C80A9CUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A8 *((volatile unsigned int*)(0x42C80AA0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A9 *((volatile unsigned int*)(0x42C80AA4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A10 *((volatile unsigned int*)(0x42C80AA8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A11 *((volatile unsigned int*)(0x42C80AACUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A12 *((volatile unsigned int*)(0x42C80AB0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A13 *((volatile unsigned int*)(0x42C80AB4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A14 *((volatile unsigned int*)(0x42C80AB8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A15 *((volatile unsigned int*)(0x42C80ABCUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A16 *((volatile unsigned int*)(0x42C80AC0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A17 *((volatile unsigned int*)(0x42C80AC4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A18 *((volatile unsigned int*)(0x42C80AC8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A19 *((volatile unsigned int*)(0x42C80ACCUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A20 *((volatile unsigned int*)(0x42C80AD0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A21 *((volatile unsigned int*)(0x42C80AD4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A22 *((volatile unsigned int*)(0x42C80AD8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A23 *((volatile unsigned int*)(0x42C80ADCUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A24 *((volatile unsigned int*)(0x42C80AE0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A25 *((volatile unsigned int*)(0x42C80AE4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A26 *((volatile unsigned int*)(0x42C80AE8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A27 *((volatile unsigned int*)(0x42C80AECUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A28 *((volatile unsigned int*)(0x42C80AF0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A29 *((volatile unsigned int*)(0x42C80AF4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A30 *((volatile unsigned int*)(0x42C80AF8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A31 *((volatile unsigned int*)(0x42C80AFCUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A32 *((volatile unsigned int*)(0x42C80B00UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A33 *((volatile unsigned int*)(0x42C80B04UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A34 *((volatile unsigned int*)(0x42C80B08UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A35 *((volatile unsigned int*)(0x42C80B0CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A36 *((volatile unsigned int*)(0x42C80B10UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A37 *((volatile unsigned int*)(0x42C80B14UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A38 *((volatile unsigned int*)(0x42C80B18UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A39 *((volatile unsigned int*)(0x42C80B1CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A40 *((volatile unsigned int*)(0x42C80B20UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A41 *((volatile unsigned int*)(0x42C80B24UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A42 *((volatile unsigned int*)(0x42C80B28UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A43 *((volatile unsigned int*)(0x42C80B2CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A44 *((volatile unsigned int*)(0x42C80B30UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A45 *((volatile unsigned int*)(0x42C80B34UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A46 *((volatile unsigned int*)(0x42C80B38UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A47 *((volatile unsigned int*)(0x42C80B3CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC0 *((volatile unsigned int*)(0x42C80B60UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC1 *((volatile unsigned int*)(0x42C80B64UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC2 *((volatile unsigned int*)(0x42C80B68UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC3 *((volatile unsigned int*)(0x42C80B6CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC4 *((volatile unsigned int*)(0x42C80B70UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC5 *((volatile unsigned int*)(0x42C80B74UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_SA *((volatile unsigned int*)(0x42C80B78UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_AE *((volatile unsigned int*)(0x42C80B7CUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A0 *((volatile unsigned int*)(0x42C80B80UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A1 *((volatile unsigned int*)(0x42C80B84UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A2 *((volatile unsigned int*)(0x42C80B88UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A3 *((volatile unsigned int*)(0x42C80B8CUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A4 *((volatile unsigned int*)(0x42C80B90UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A5 *((volatile unsigned int*)(0x42C80B94UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A6 *((volatile unsigned int*)(0x42C80B98UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A7 *((volatile unsigned int*)(0x42C80B9CUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A8 *((volatile unsigned int*)(0x42C80BA0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A9 *((volatile unsigned int*)(0x42C80BA4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A10 *((volatile unsigned int*)(0x42C80BA8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A11 *((volatile unsigned int*)(0x42C80BACUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A12 *((volatile unsigned int*)(0x42C80BB0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A13 *((volatile unsigned int*)(0x42C80BB4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A14 *((volatile unsigned int*)(0x42C80BB8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A15 *((volatile unsigned int*)(0x42C80BBCUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A16 *((volatile unsigned int*)(0x42C80BC0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A17 *((volatile unsigned int*)(0x42C80BC4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A18 *((volatile unsigned int*)(0x42C80BC8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A19 *((volatile unsigned int*)(0x42C80BCCUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A20 *((volatile unsigned int*)(0x42C80BD0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A21 *((volatile unsigned int*)(0x42C80BD4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A22 *((volatile unsigned int*)(0x42C80BD8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A23 *((volatile unsigned int*)(0x42C80BDCUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A24 *((volatile unsigned int*)(0x42C80BE0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A25 *((volatile unsigned int*)(0x42C80BE4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A26 *((volatile unsigned int*)(0x42C80BE8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A27 *((volatile unsigned int*)(0x42C80BECUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A28 *((volatile unsigned int*)(0x42C80BF0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A29 *((volatile unsigned int*)(0x42C80BF4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A30 *((volatile unsigned int*)(0x42C80BF8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A31 *((volatile unsigned int*)(0x42C80BFCUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A32 *((volatile unsigned int*)(0x42C80C00UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A33 *((volatile unsigned int*)(0x42C80C04UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A34 *((volatile unsigned int*)(0x42C80C08UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A35 *((volatile unsigned int*)(0x42C80C0CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A36 *((volatile unsigned int*)(0x42C80C10UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A37 *((volatile unsigned int*)(0x42C80C14UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A38 *((volatile unsigned int*)(0x42C80C18UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A39 *((volatile unsigned int*)(0x42C80C1CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A40 *((volatile unsigned int*)(0x42C80C20UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A41 *((volatile unsigned int*)(0x42C80C24UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A42 *((volatile unsigned int*)(0x42C80C28UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A43 *((volatile unsigned int*)(0x42C80C2CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A44 *((volatile unsigned int*)(0x42C80C30UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A45 *((volatile unsigned int*)(0x42C80C34UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A46 *((volatile unsigned int*)(0x42C80C38UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A47 *((volatile unsigned int*)(0x42C80C3CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC0 *((volatile unsigned int*)(0x42C80C60UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC1 *((volatile unsigned int*)(0x42C80C64UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC2 *((volatile unsigned int*)(0x42C80C68UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC3 *((volatile unsigned int*)(0x42C80C6CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC4 *((volatile unsigned int*)(0x42C80C70UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC5 *((volatile unsigned int*)(0x42C80C74UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_SA *((volatile unsigned int*)(0x42C80C78UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_AE *((volatile unsigned int*)(0x42C80C7CUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A0 *((volatile unsigned int*)(0x42C80C80UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A1 *((volatile unsigned int*)(0x42C80C84UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A2 *((volatile unsigned int*)(0x42C80C88UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A3 *((volatile unsigned int*)(0x42C80C8CUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A4 *((volatile unsigned int*)(0x42C80C90UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A5 *((volatile unsigned int*)(0x42C80C94UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A6 *((volatile unsigned int*)(0x42C80C98UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A7 *((volatile unsigned int*)(0x42C80C9CUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A8 *((volatile unsigned int*)(0x42C80CA0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A9 *((volatile unsigned int*)(0x42C80CA4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A10 *((volatile unsigned int*)(0x42C80CA8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A11 *((volatile unsigned int*)(0x42C80CACUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A12 *((volatile unsigned int*)(0x42C80CB0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A13 *((volatile unsigned int*)(0x42C80CB4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A14 *((volatile unsigned int*)(0x42C80CB8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A15 *((volatile unsigned int*)(0x42C80CBCUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A16 *((volatile unsigned int*)(0x42C80CC0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A17 *((volatile unsigned int*)(0x42C80CC4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A18 *((volatile unsigned int*)(0x42C80CC8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A19 *((volatile unsigned int*)(0x42C80CCCUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A20 *((volatile unsigned int*)(0x42C80CD0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A21 *((volatile unsigned int*)(0x42C80CD4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A22 *((volatile unsigned int*)(0x42C80CD8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A23 *((volatile unsigned int*)(0x42C80CDCUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A24 *((volatile unsigned int*)(0x42C80CE0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A25 *((volatile unsigned int*)(0x42C80CE4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A26 *((volatile unsigned int*)(0x42C80CE8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A27 *((volatile unsigned int*)(0x42C80CECUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A28 *((volatile unsigned int*)(0x42C80CF0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A29 *((volatile unsigned int*)(0x42C80CF4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A30 *((volatile unsigned int*)(0x42C80CF8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A31 *((volatile unsigned int*)(0x42C80CFCUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A32 *((volatile unsigned int*)(0x42C80D00UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A33 *((volatile unsigned int*)(0x42C80D04UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A34 *((volatile unsigned int*)(0x42C80D08UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A35 *((volatile unsigned int*)(0x42C80D0CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A36 *((volatile unsigned int*)(0x42C80D10UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A37 *((volatile unsigned int*)(0x42C80D14UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A38 *((volatile unsigned int*)(0x42C80D18UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A39 *((volatile unsigned int*)(0x42C80D1CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A40 *((volatile unsigned int*)(0x42C80D20UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A41 *((volatile unsigned int*)(0x42C80D24UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A42 *((volatile unsigned int*)(0x42C80D28UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A43 *((volatile unsigned int*)(0x42C80D2CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A44 *((volatile unsigned int*)(0x42C80D30UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A45 *((volatile unsigned int*)(0x42C80D34UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A46 *((volatile unsigned int*)(0x42C80D38UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A47 *((volatile unsigned int*)(0x42C80D3CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC0 *((volatile unsigned int*)(0x42C80D60UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC1 *((volatile unsigned int*)(0x42C80D64UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC2 *((volatile unsigned int*)(0x42C80D68UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC3 *((volatile unsigned int*)(0x42C80D6CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC4 *((volatile unsigned int*)(0x42C80D70UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC5 *((volatile unsigned int*)(0x42C80D74UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_SA *((volatile unsigned int*)(0x42C80D78UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_AE *((volatile unsigned int*)(0x42C80D7CUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A0 *((volatile unsigned int*)(0x42C80D80UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A1 *((volatile unsigned int*)(0x42C80D84UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A2 *((volatile unsigned int*)(0x42C80D88UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A3 *((volatile unsigned int*)(0x42C80D8CUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A4 *((volatile unsigned int*)(0x42C80D90UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A5 *((volatile unsigned int*)(0x42C80D94UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A6 *((volatile unsigned int*)(0x42C80D98UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A7 *((volatile unsigned int*)(0x42C80D9CUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A8 *((volatile unsigned int*)(0x42C80DA0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A9 *((volatile unsigned int*)(0x42C80DA4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A10 *((volatile unsigned int*)(0x42C80DA8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A11 *((volatile unsigned int*)(0x42C80DACUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A12 *((volatile unsigned int*)(0x42C80DB0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A13 *((volatile unsigned int*)(0x42C80DB4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A14 *((volatile unsigned int*)(0x42C80DB8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A15 *((volatile unsigned int*)(0x42C80DBCUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A16 *((volatile unsigned int*)(0x42C80DC0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A17 *((volatile unsigned int*)(0x42C80DC4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A18 *((volatile unsigned int*)(0x42C80DC8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A19 *((volatile unsigned int*)(0x42C80DCCUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A20 *((volatile unsigned int*)(0x42C80DD0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A21 *((volatile unsigned int*)(0x42C80DD4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A22 *((volatile unsigned int*)(0x42C80DD8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A23 *((volatile unsigned int*)(0x42C80DDCUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A24 *((volatile unsigned int*)(0x42C80DE0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A25 *((volatile unsigned int*)(0x42C80DE4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A26 *((volatile unsigned int*)(0x42C80DE8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A27 *((volatile unsigned int*)(0x42C80DECUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A28 *((volatile unsigned int*)(0x42C80DF0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A29 *((volatile unsigned int*)(0x42C80DF4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A30 *((volatile unsigned int*)(0x42C80DF8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A31 *((volatile unsigned int*)(0x42C80DFCUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A32 *((volatile unsigned int*)(0x42C80E00UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A33 *((volatile unsigned int*)(0x42C80E04UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A34 *((volatile unsigned int*)(0x42C80E08UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A35 *((volatile unsigned int*)(0x42C80E0CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A36 *((volatile unsigned int*)(0x42C80E10UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A37 *((volatile unsigned int*)(0x42C80E14UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A38 *((volatile unsigned int*)(0x42C80E18UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A39 *((volatile unsigned int*)(0x42C80E1CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A40 *((volatile unsigned int*)(0x42C80E20UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A41 *((volatile unsigned int*)(0x42C80E24UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A42 *((volatile unsigned int*)(0x42C80E28UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A43 *((volatile unsigned int*)(0x42C80E2CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A44 *((volatile unsigned int*)(0x42C80E30UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A45 *((volatile unsigned int*)(0x42C80E34UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A46 *((volatile unsigned int*)(0x42C80E38UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A47 *((volatile unsigned int*)(0x42C80E3CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC0 *((volatile unsigned int*)(0x42C80E60UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC1 *((volatile unsigned int*)(0x42C80E64UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC2 *((volatile unsigned int*)(0x42C80E68UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC3 *((volatile unsigned int*)(0x42C80E6CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC4 *((volatile unsigned int*)(0x42C80E70UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC5 *((volatile unsigned int*)(0x42C80E74UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_SA *((volatile unsigned int*)(0x42C80E78UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_AE *((volatile unsigned int*)(0x42C80E7CUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A0 *((volatile unsigned int*)(0x42C80E80UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A1 *((volatile unsigned int*)(0x42C80E84UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A2 *((volatile unsigned int*)(0x42C80E88UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A3 *((volatile unsigned int*)(0x42C80E8CUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A4 *((volatile unsigned int*)(0x42C80E90UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A5 *((volatile unsigned int*)(0x42C80E94UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A6 *((volatile unsigned int*)(0x42C80E98UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A7 *((volatile unsigned int*)(0x42C80E9CUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A8 *((volatile unsigned int*)(0x42C80EA0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A9 *((volatile unsigned int*)(0x42C80EA4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A10 *((volatile unsigned int*)(0x42C80EA8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A11 *((volatile unsigned int*)(0x42C80EACUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A12 *((volatile unsigned int*)(0x42C80EB0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A13 *((volatile unsigned int*)(0x42C80EB4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A14 *((volatile unsigned int*)(0x42C80EB8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A15 *((volatile unsigned int*)(0x42C80EBCUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A16 *((volatile unsigned int*)(0x42C80EC0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A17 *((volatile unsigned int*)(0x42C80EC4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A18 *((volatile unsigned int*)(0x42C80EC8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A19 *((volatile unsigned int*)(0x42C80ECCUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A20 *((volatile unsigned int*)(0x42C80ED0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A21 *((volatile unsigned int*)(0x42C80ED4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A22 *((volatile unsigned int*)(0x42C80ED8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A23 *((volatile unsigned int*)(0x42C80EDCUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A24 *((volatile unsigned int*)(0x42C80EE0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A25 *((volatile unsigned int*)(0x42C80EE4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A26 *((volatile unsigned int*)(0x42C80EE8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A27 *((volatile unsigned int*)(0x42C80EECUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A28 *((volatile unsigned int*)(0x42C80EF0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A29 *((volatile unsigned int*)(0x42C80EF4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A30 *((volatile unsigned int*)(0x42C80EF8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A31 *((volatile unsigned int*)(0x42C80EFCUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A32 *((volatile unsigned int*)(0x42C80F00UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A33 *((volatile unsigned int*)(0x42C80F04UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A34 *((volatile unsigned int*)(0x42C80F08UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A35 *((volatile unsigned int*)(0x42C80F0CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A36 *((volatile unsigned int*)(0x42C80F10UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A37 *((volatile unsigned int*)(0x42C80F14UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A38 *((volatile unsigned int*)(0x42C80F18UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A39 *((volatile unsigned int*)(0x42C80F1CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A40 *((volatile unsigned int*)(0x42C80F20UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A41 *((volatile unsigned int*)(0x42C80F24UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A42 *((volatile unsigned int*)(0x42C80F28UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A43 *((volatile unsigned int*)(0x42C80F2CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A44 *((volatile unsigned int*)(0x42C80F30UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A45 *((volatile unsigned int*)(0x42C80F34UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A46 *((volatile unsigned int*)(0x42C80F38UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A47 *((volatile unsigned int*)(0x42C80F3CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC0 *((volatile unsigned int*)(0x42C80F60UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC1 *((volatile unsigned int*)(0x42C80F64UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC2 *((volatile unsigned int*)(0x42C80F68UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC3 *((volatile unsigned int*)(0x42C80F6CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC4 *((volatile unsigned int*)(0x42C80F70UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC5 *((volatile unsigned int*)(0x42C80F74UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_SA *((volatile unsigned int*)(0x42C80F78UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_AE *((volatile unsigned int*)(0x42C80F7CUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A0 *((volatile unsigned int*)(0x42C80F80UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A1 *((volatile unsigned int*)(0x42C80F84UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A2 *((volatile unsigned int*)(0x42C80F88UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A3 *((volatile unsigned int*)(0x42C80F8CUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A4 *((volatile unsigned int*)(0x42C80F90UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A5 *((volatile unsigned int*)(0x42C80F94UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A6 *((volatile unsigned int*)(0x42C80F98UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A7 *((volatile unsigned int*)(0x42C80F9CUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A8 *((volatile unsigned int*)(0x42C80FA0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A9 *((volatile unsigned int*)(0x42C80FA4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A10 *((volatile unsigned int*)(0x42C80FA8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A11 *((volatile unsigned int*)(0x42C80FACUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A12 *((volatile unsigned int*)(0x42C80FB0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A13 *((volatile unsigned int*)(0x42C80FB4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A14 *((volatile unsigned int*)(0x42C80FB8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A15 *((volatile unsigned int*)(0x42C80FBCUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A16 *((volatile unsigned int*)(0x42C80FC0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A17 *((volatile unsigned int*)(0x42C80FC4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A18 *((volatile unsigned int*)(0x42C80FC8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A19 *((volatile unsigned int*)(0x42C80FCCUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A20 *((volatile unsigned int*)(0x42C80FD0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A21 *((volatile unsigned int*)(0x42C80FD4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A22 *((volatile unsigned int*)(0x42C80FD8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A23 *((volatile unsigned int*)(0x42C80FDCUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A24 *((volatile unsigned int*)(0x42C80FE0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A25 *((volatile unsigned int*)(0x42C80FE4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A26 *((volatile unsigned int*)(0x42C80FE8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A27 *((volatile unsigned int*)(0x42C80FECUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A28 *((volatile unsigned int*)(0x42C80FF0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A29 *((volatile unsigned int*)(0x42C80FF4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A30 *((volatile unsigned int*)(0x42C80FF8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A31 *((volatile unsigned int*)(0x42C80FFCUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A32 *((volatile unsigned int*)(0x42C81000UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A33 *((volatile unsigned int*)(0x42C81004UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A34 *((volatile unsigned int*)(0x42C81008UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A35 *((volatile unsigned int*)(0x42C8100CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A36 *((volatile unsigned int*)(0x42C81010UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A37 *((volatile unsigned int*)(0x42C81014UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A38 *((volatile unsigned int*)(0x42C81018UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A39 *((volatile unsigned int*)(0x42C8101CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A40 *((volatile unsigned int*)(0x42C81020UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A41 *((volatile unsigned int*)(0x42C81024UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A42 *((volatile unsigned int*)(0x42C81028UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A43 *((volatile unsigned int*)(0x42C8102CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A44 *((volatile unsigned int*)(0x42C81030UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A45 *((volatile unsigned int*)(0x42C81034UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A46 *((volatile unsigned int*)(0x42C81038UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A47 *((volatile unsigned int*)(0x42C8103CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC0 *((volatile unsigned int*)(0x42C81060UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC1 *((volatile unsigned int*)(0x42C81064UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC2 *((volatile unsigned int*)(0x42C81068UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC3 *((volatile unsigned int*)(0x42C8106CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC4 *((volatile unsigned int*)(0x42C81070UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC5 *((volatile unsigned int*)(0x42C81074UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_SA *((volatile unsigned int*)(0x42C81078UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_AE *((volatile unsigned int*)(0x42C8107CUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A0 *((volatile unsigned int*)(0x42C81080UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A1 *((volatile unsigned int*)(0x42C81084UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A2 *((volatile unsigned int*)(0x42C81088UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A3 *((volatile unsigned int*)(0x42C8108CUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A4 *((volatile unsigned int*)(0x42C81090UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A5 *((volatile unsigned int*)(0x42C81094UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A6 *((volatile unsigned int*)(0x42C81098UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A7 *((volatile unsigned int*)(0x42C8109CUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A8 *((volatile unsigned int*)(0x42C810A0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A9 *((volatile unsigned int*)(0x42C810A4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A10 *((volatile unsigned int*)(0x42C810A8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A11 *((volatile unsigned int*)(0x42C810ACUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A12 *((volatile unsigned int*)(0x42C810B0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A13 *((volatile unsigned int*)(0x42C810B4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A14 *((volatile unsigned int*)(0x42C810B8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A15 *((volatile unsigned int*)(0x42C810BCUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A16 *((volatile unsigned int*)(0x42C810C0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A17 *((volatile unsigned int*)(0x42C810C4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A18 *((volatile unsigned int*)(0x42C810C8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A19 *((volatile unsigned int*)(0x42C810CCUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A20 *((volatile unsigned int*)(0x42C810D0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A21 *((volatile unsigned int*)(0x42C810D4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A22 *((volatile unsigned int*)(0x42C810D8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A23 *((volatile unsigned int*)(0x42C810DCUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A24 *((volatile unsigned int*)(0x42C810E0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A25 *((volatile unsigned int*)(0x42C810E4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A26 *((volatile unsigned int*)(0x42C810E8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A27 *((volatile unsigned int*)(0x42C810ECUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A28 *((volatile unsigned int*)(0x42C810F0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A29 *((volatile unsigned int*)(0x42C810F4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A30 *((volatile unsigned int*)(0x42C810F8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A31 *((volatile unsigned int*)(0x42C810FCUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A32 *((volatile unsigned int*)(0x42C81100UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A33 *((volatile unsigned int*)(0x42C81104UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A34 *((volatile unsigned int*)(0x42C81108UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A35 *((volatile unsigned int*)(0x42C8110CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A36 *((volatile unsigned int*)(0x42C81110UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A37 *((volatile unsigned int*)(0x42C81114UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A38 *((volatile unsigned int*)(0x42C81118UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A39 *((volatile unsigned int*)(0x42C8111CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A40 *((volatile unsigned int*)(0x42C81120UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A41 *((volatile unsigned int*)(0x42C81124UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A42 *((volatile unsigned int*)(0x42C81128UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A43 *((volatile unsigned int*)(0x42C8112CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A44 *((volatile unsigned int*)(0x42C81130UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A45 *((volatile unsigned int*)(0x42C81134UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A46 *((volatile unsigned int*)(0x42C81138UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A47 *((volatile unsigned int*)(0x42C8113CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC0 *((volatile unsigned int*)(0x42C81160UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC1 *((volatile unsigned int*)(0x42C81164UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC2 *((volatile unsigned int*)(0x42C81168UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC3 *((volatile unsigned int*)(0x42C8116CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC4 *((volatile unsigned int*)(0x42C81170UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC5 *((volatile unsigned int*)(0x42C81174UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_SA *((volatile unsigned int*)(0x42C81178UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_AE *((volatile unsigned int*)(0x42C8117CUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A0 *((volatile unsigned int*)(0x42C81180UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A1 *((volatile unsigned int*)(0x42C81184UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A2 *((volatile unsigned int*)(0x42C81188UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A3 *((volatile unsigned int*)(0x42C8118CUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A4 *((volatile unsigned int*)(0x42C81190UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A5 *((volatile unsigned int*)(0x42C81194UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A6 *((volatile unsigned int*)(0x42C81198UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A7 *((volatile unsigned int*)(0x42C8119CUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A8 *((volatile unsigned int*)(0x42C811A0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A9 *((volatile unsigned int*)(0x42C811A4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A10 *((volatile unsigned int*)(0x42C811A8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A11 *((volatile unsigned int*)(0x42C811ACUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A12 *((volatile unsigned int*)(0x42C811B0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A13 *((volatile unsigned int*)(0x42C811B4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A14 *((volatile unsigned int*)(0x42C811B8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A15 *((volatile unsigned int*)(0x42C811BCUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A16 *((volatile unsigned int*)(0x42C811C0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A17 *((volatile unsigned int*)(0x42C811C4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A18 *((volatile unsigned int*)(0x42C811C8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A19 *((volatile unsigned int*)(0x42C811CCUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A20 *((volatile unsigned int*)(0x42C811D0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A21 *((volatile unsigned int*)(0x42C811D4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A22 *((volatile unsigned int*)(0x42C811D8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A23 *((volatile unsigned int*)(0x42C811DCUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A24 *((volatile unsigned int*)(0x42C811E0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A25 *((volatile unsigned int*)(0x42C811E4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A26 *((volatile unsigned int*)(0x42C811E8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A27 *((volatile unsigned int*)(0x42C811ECUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A28 *((volatile unsigned int*)(0x42C811F0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A29 *((volatile unsigned int*)(0x42C811F4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A30 *((volatile unsigned int*)(0x42C811F8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A31 *((volatile unsigned int*)(0x42C811FCUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A32 *((volatile unsigned int*)(0x42C81200UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A33 *((volatile unsigned int*)(0x42C81204UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A34 *((volatile unsigned int*)(0x42C81208UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A35 *((volatile unsigned int*)(0x42C8120CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A36 *((volatile unsigned int*)(0x42C81210UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A37 *((volatile unsigned int*)(0x42C81214UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A38 *((volatile unsigned int*)(0x42C81218UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A39 *((volatile unsigned int*)(0x42C8121CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A40 *((volatile unsigned int*)(0x42C81220UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A41 *((volatile unsigned int*)(0x42C81224UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A42 *((volatile unsigned int*)(0x42C81228UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A43 *((volatile unsigned int*)(0x42C8122CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A44 *((volatile unsigned int*)(0x42C81230UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A45 *((volatile unsigned int*)(0x42C81234UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A46 *((volatile unsigned int*)(0x42C81238UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A47 *((volatile unsigned int*)(0x42C8123CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC0 *((volatile unsigned int*)(0x42C81260UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC1 *((volatile unsigned int*)(0x42C81264UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC2 *((volatile unsigned int*)(0x42C81268UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC3 *((volatile unsigned int*)(0x42C8126CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC4 *((volatile unsigned int*)(0x42C81270UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC5 *((volatile unsigned int*)(0x42C81274UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_SA *((volatile unsigned int*)(0x42C81278UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_AE *((volatile unsigned int*)(0x42C8127CUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A0 *((volatile unsigned int*)(0x42C81280UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A1 *((volatile unsigned int*)(0x42C81284UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A2 *((volatile unsigned int*)(0x42C81288UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A3 *((volatile unsigned int*)(0x42C8128CUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A4 *((volatile unsigned int*)(0x42C81290UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A5 *((volatile unsigned int*)(0x42C81294UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A6 *((volatile unsigned int*)(0x42C81298UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A7 *((volatile unsigned int*)(0x42C8129CUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A8 *((volatile unsigned int*)(0x42C812A0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A9 *((volatile unsigned int*)(0x42C812A4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A10 *((volatile unsigned int*)(0x42C812A8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A11 *((volatile unsigned int*)(0x42C812ACUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A12 *((volatile unsigned int*)(0x42C812B0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A13 *((volatile unsigned int*)(0x42C812B4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A14 *((volatile unsigned int*)(0x42C812B8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A15 *((volatile unsigned int*)(0x42C812BCUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A16 *((volatile unsigned int*)(0x42C812C0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A17 *((volatile unsigned int*)(0x42C812C4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A18 *((volatile unsigned int*)(0x42C812C8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A19 *((volatile unsigned int*)(0x42C812CCUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A20 *((volatile unsigned int*)(0x42C812D0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A21 *((volatile unsigned int*)(0x42C812D4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A22 *((volatile unsigned int*)(0x42C812D8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A23 *((volatile unsigned int*)(0x42C812DCUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A24 *((volatile unsigned int*)(0x42C812E0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A25 *((volatile unsigned int*)(0x42C812E4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A26 *((volatile unsigned int*)(0x42C812E8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A27 *((volatile unsigned int*)(0x42C812ECUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A28 *((volatile unsigned int*)(0x42C812F0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A29 *((volatile unsigned int*)(0x42C812F4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A30 *((volatile unsigned int*)(0x42C812F8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A31 *((volatile unsigned int*)(0x42C812FCUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A32 *((volatile unsigned int*)(0x42C81300UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A33 *((volatile unsigned int*)(0x42C81304UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A34 *((volatile unsigned int*)(0x42C81308UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A35 *((volatile unsigned int*)(0x42C8130CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A36 *((volatile unsigned int*)(0x42C81310UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A37 *((volatile unsigned int*)(0x42C81314UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A38 *((volatile unsigned int*)(0x42C81318UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A39 *((volatile unsigned int*)(0x42C8131CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A40 *((volatile unsigned int*)(0x42C81320UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A41 *((volatile unsigned int*)(0x42C81324UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A42 *((volatile unsigned int*)(0x42C81328UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A43 *((volatile unsigned int*)(0x42C8132CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A44 *((volatile unsigned int*)(0x42C81330UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A45 *((volatile unsigned int*)(0x42C81334UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A46 *((volatile unsigned int*)(0x42C81338UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A47 *((volatile unsigned int*)(0x42C8133CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC0 *((volatile unsigned int*)(0x42C81360UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC1 *((volatile unsigned int*)(0x42C81364UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC2 *((volatile unsigned int*)(0x42C81368UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC3 *((volatile unsigned int*)(0x42C8136CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC4 *((volatile unsigned int*)(0x42C81370UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC5 *((volatile unsigned int*)(0x42C81374UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_SA *((volatile unsigned int*)(0x42C81378UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_AE *((volatile unsigned int*)(0x42C8137CUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A0 *((volatile unsigned int*)(0x42C81380UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A1 *((volatile unsigned int*)(0x42C81384UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A2 *((volatile unsigned int*)(0x42C81388UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A3 *((volatile unsigned int*)(0x42C8138CUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A4 *((volatile unsigned int*)(0x42C81390UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A5 *((volatile unsigned int*)(0x42C81394UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A6 *((volatile unsigned int*)(0x42C81398UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A7 *((volatile unsigned int*)(0x42C8139CUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A8 *((volatile unsigned int*)(0x42C813A0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A9 *((volatile unsigned int*)(0x42C813A4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A10 *((volatile unsigned int*)(0x42C813A8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A11 *((volatile unsigned int*)(0x42C813ACUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A12 *((volatile unsigned int*)(0x42C813B0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A13 *((volatile unsigned int*)(0x42C813B4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A14 *((volatile unsigned int*)(0x42C813B8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A15 *((volatile unsigned int*)(0x42C813BCUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A16 *((volatile unsigned int*)(0x42C813C0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A17 *((volatile unsigned int*)(0x42C813C4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A18 *((volatile unsigned int*)(0x42C813C8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A19 *((volatile unsigned int*)(0x42C813CCUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A20 *((volatile unsigned int*)(0x42C813D0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A21 *((volatile unsigned int*)(0x42C813D4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A22 *((volatile unsigned int*)(0x42C813D8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A23 *((volatile unsigned int*)(0x42C813DCUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A24 *((volatile unsigned int*)(0x42C813E0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A25 *((volatile unsigned int*)(0x42C813E4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A26 *((volatile unsigned int*)(0x42C813E8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A27 *((volatile unsigned int*)(0x42C813ECUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A28 *((volatile unsigned int*)(0x42C813F0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A29 *((volatile unsigned int*)(0x42C813F4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A30 *((volatile unsigned int*)(0x42C813F8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A31 *((volatile unsigned int*)(0x42C813FCUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A32 *((volatile unsigned int*)(0x42C81400UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A33 *((volatile unsigned int*)(0x42C81404UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A34 *((volatile unsigned int*)(0x42C81408UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A35 *((volatile unsigned int*)(0x42C8140CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A36 *((volatile unsigned int*)(0x42C81410UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A37 *((volatile unsigned int*)(0x42C81414UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A38 *((volatile unsigned int*)(0x42C81418UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A39 *((volatile unsigned int*)(0x42C8141CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A40 *((volatile unsigned int*)(0x42C81420UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A41 *((volatile unsigned int*)(0x42C81424UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A42 *((volatile unsigned int*)(0x42C81428UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A43 *((volatile unsigned int*)(0x42C8142CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A44 *((volatile unsigned int*)(0x42C81430UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A45 *((volatile unsigned int*)(0x42C81434UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A46 *((volatile unsigned int*)(0x42C81438UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A47 *((volatile unsigned int*)(0x42C8143CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC0 *((volatile unsigned int*)(0x42C81460UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC1 *((volatile unsigned int*)(0x42C81464UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC2 *((volatile unsigned int*)(0x42C81468UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC3 *((volatile unsigned int*)(0x42C8146CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC4 *((volatile unsigned int*)(0x42C81470UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC5 *((volatile unsigned int*)(0x42C81474UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_SA *((volatile unsigned int*)(0x42C81478UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_AE *((volatile unsigned int*)(0x42C8147CUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A0 *((volatile unsigned int*)(0x42C81480UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A1 *((volatile unsigned int*)(0x42C81484UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A2 *((volatile unsigned int*)(0x42C81488UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A3 *((volatile unsigned int*)(0x42C8148CUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A4 *((volatile unsigned int*)(0x42C81490UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A5 *((volatile unsigned int*)(0x42C81494UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A6 *((volatile unsigned int*)(0x42C81498UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A7 *((volatile unsigned int*)(0x42C8149CUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A8 *((volatile unsigned int*)(0x42C814A0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A9 *((volatile unsigned int*)(0x42C814A4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A10 *((volatile unsigned int*)(0x42C814A8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A11 *((volatile unsigned int*)(0x42C814ACUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A12 *((volatile unsigned int*)(0x42C814B0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A13 *((volatile unsigned int*)(0x42C814B4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A14 *((volatile unsigned int*)(0x42C814B8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A15 *((volatile unsigned int*)(0x42C814BCUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A16 *((volatile unsigned int*)(0x42C814C0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A17 *((volatile unsigned int*)(0x42C814C4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A18 *((volatile unsigned int*)(0x42C814C8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A19 *((volatile unsigned int*)(0x42C814CCUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A20 *((volatile unsigned int*)(0x42C814D0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A21 *((volatile unsigned int*)(0x42C814D4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A22 *((volatile unsigned int*)(0x42C814D8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A23 *((volatile unsigned int*)(0x42C814DCUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A24 *((volatile unsigned int*)(0x42C814E0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A25 *((volatile unsigned int*)(0x42C814E4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A26 *((volatile unsigned int*)(0x42C814E8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A27 *((volatile unsigned int*)(0x42C814ECUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A28 *((volatile unsigned int*)(0x42C814F0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A29 *((volatile unsigned int*)(0x42C814F4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A30 *((volatile unsigned int*)(0x42C814F8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A31 *((volatile unsigned int*)(0x42C814FCUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A32 *((volatile unsigned int*)(0x42C81500UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A33 *((volatile unsigned int*)(0x42C81504UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A34 *((volatile unsigned int*)(0x42C81508UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A35 *((volatile unsigned int*)(0x42C8150CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A36 *((volatile unsigned int*)(0x42C81510UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A37 *((volatile unsigned int*)(0x42C81514UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A38 *((volatile unsigned int*)(0x42C81518UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A39 *((volatile unsigned int*)(0x42C8151CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A40 *((volatile unsigned int*)(0x42C81520UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A41 *((volatile unsigned int*)(0x42C81524UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A42 *((volatile unsigned int*)(0x42C81528UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A43 *((volatile unsigned int*)(0x42C8152CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A44 *((volatile unsigned int*)(0x42C81530UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A45 *((volatile unsigned int*)(0x42C81534UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A46 *((volatile unsigned int*)(0x42C81538UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A47 *((volatile unsigned int*)(0x42C8153CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC0 *((volatile unsigned int*)(0x42C81560UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC1 *((volatile unsigned int*)(0x42C81564UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC2 *((volatile unsigned int*)(0x42C81568UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC3 *((volatile unsigned int*)(0x42C8156CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC4 *((volatile unsigned int*)(0x42C81570UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC5 *((volatile unsigned int*)(0x42C81574UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_SA *((volatile unsigned int*)(0x42C81578UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_AE *((volatile unsigned int*)(0x42C8157CUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A0 *((volatile unsigned int*)(0x42C81580UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A1 *((volatile unsigned int*)(0x42C81584UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A2 *((volatile unsigned int*)(0x42C81588UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A3 *((volatile unsigned int*)(0x42C8158CUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A4 *((volatile unsigned int*)(0x42C81590UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A5 *((volatile unsigned int*)(0x42C81594UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A6 *((volatile unsigned int*)(0x42C81598UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A7 *((volatile unsigned int*)(0x42C8159CUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A8 *((volatile unsigned int*)(0x42C815A0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A9 *((volatile unsigned int*)(0x42C815A4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A10 *((volatile unsigned int*)(0x42C815A8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A11 *((volatile unsigned int*)(0x42C815ACUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A12 *((volatile unsigned int*)(0x42C815B0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A13 *((volatile unsigned int*)(0x42C815B4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A14 *((volatile unsigned int*)(0x42C815B8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A15 *((volatile unsigned int*)(0x42C815BCUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A16 *((volatile unsigned int*)(0x42C815C0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A17 *((volatile unsigned int*)(0x42C815C4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A18 *((volatile unsigned int*)(0x42C815C8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A19 *((volatile unsigned int*)(0x42C815CCUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A20 *((volatile unsigned int*)(0x42C815D0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A21 *((volatile unsigned int*)(0x42C815D4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A22 *((volatile unsigned int*)(0x42C815D8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A23 *((volatile unsigned int*)(0x42C815DCUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A24 *((volatile unsigned int*)(0x42C815E0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A25 *((volatile unsigned int*)(0x42C815E4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A26 *((volatile unsigned int*)(0x42C815E8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A27 *((volatile unsigned int*)(0x42C815ECUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A28 *((volatile unsigned int*)(0x42C815F0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A29 *((volatile unsigned int*)(0x42C815F4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A30 *((volatile unsigned int*)(0x42C815F8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A31 *((volatile unsigned int*)(0x42C815FCUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A32 *((volatile unsigned int*)(0x42C81600UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A33 *((volatile unsigned int*)(0x42C81604UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A34 *((volatile unsigned int*)(0x42C81608UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A35 *((volatile unsigned int*)(0x42C8160CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A36 *((volatile unsigned int*)(0x42C81610UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A37 *((volatile unsigned int*)(0x42C81614UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A38 *((volatile unsigned int*)(0x42C81618UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A39 *((volatile unsigned int*)(0x42C8161CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A40 *((volatile unsigned int*)(0x42C81620UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A41 *((volatile unsigned int*)(0x42C81624UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A42 *((volatile unsigned int*)(0x42C81628UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A43 *((volatile unsigned int*)(0x42C8162CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A44 *((volatile unsigned int*)(0x42C81630UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A45 *((volatile unsigned int*)(0x42C81634UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A46 *((volatile unsigned int*)(0x42C81638UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A47 *((volatile unsigned int*)(0x42C8163CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC0 *((volatile unsigned int*)(0x42C81660UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC1 *((volatile unsigned int*)(0x42C81664UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC2 *((volatile unsigned int*)(0x42C81668UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC3 *((volatile unsigned int*)(0x42C8166CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC4 *((volatile unsigned int*)(0x42C81670UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC5 *((volatile unsigned int*)(0x42C81674UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_SA *((volatile unsigned int*)(0x42C81678UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_AE *((volatile unsigned int*)(0x42C8167CUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A0 *((volatile unsigned int*)(0x42C81680UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A1 *((volatile unsigned int*)(0x42C81684UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A2 *((volatile unsigned int*)(0x42C81688UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A3 *((volatile unsigned int*)(0x42C8168CUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A4 *((volatile unsigned int*)(0x42C81690UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A5 *((volatile unsigned int*)(0x42C81694UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A6 *((volatile unsigned int*)(0x42C81698UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A7 *((volatile unsigned int*)(0x42C8169CUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A8 *((volatile unsigned int*)(0x42C816A0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A9 *((volatile unsigned int*)(0x42C816A4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A10 *((volatile unsigned int*)(0x42C816A8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A11 *((volatile unsigned int*)(0x42C816ACUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A12 *((volatile unsigned int*)(0x42C816B0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A13 *((volatile unsigned int*)(0x42C816B4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A14 *((volatile unsigned int*)(0x42C816B8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A15 *((volatile unsigned int*)(0x42C816BCUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A16 *((volatile unsigned int*)(0x42C816C0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A17 *((volatile unsigned int*)(0x42C816C4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A18 *((volatile unsigned int*)(0x42C816C8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A19 *((volatile unsigned int*)(0x42C816CCUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A20 *((volatile unsigned int*)(0x42C816D0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A21 *((volatile unsigned int*)(0x42C816D4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A22 *((volatile unsigned int*)(0x42C816D8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A23 *((volatile unsigned int*)(0x42C816DCUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A24 *((volatile unsigned int*)(0x42C816E0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A25 *((volatile unsigned int*)(0x42C816E4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A26 *((volatile unsigned int*)(0x42C816E8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A27 *((volatile unsigned int*)(0x42C816ECUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A28 *((volatile unsigned int*)(0x42C816F0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A29 *((volatile unsigned int*)(0x42C816F4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A30 *((volatile unsigned int*)(0x42C816F8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A31 *((volatile unsigned int*)(0x42C816FCUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A32 *((volatile unsigned int*)(0x42C81700UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A33 *((volatile unsigned int*)(0x42C81704UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A34 *((volatile unsigned int*)(0x42C81708UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A35 *((volatile unsigned int*)(0x42C8170CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A36 *((volatile unsigned int*)(0x42C81710UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A37 *((volatile unsigned int*)(0x42C81714UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A38 *((volatile unsigned int*)(0x42C81718UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A39 *((volatile unsigned int*)(0x42C8171CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A40 *((volatile unsigned int*)(0x42C81720UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A41 *((volatile unsigned int*)(0x42C81724UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A42 *((volatile unsigned int*)(0x42C81728UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A43 *((volatile unsigned int*)(0x42C8172CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A44 *((volatile unsigned int*)(0x42C81730UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A45 *((volatile unsigned int*)(0x42C81734UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A46 *((volatile unsigned int*)(0x42C81738UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A47 *((volatile unsigned int*)(0x42C8173CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC0 *((volatile unsigned int*)(0x42C81760UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC1 *((volatile unsigned int*)(0x42C81764UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC2 *((volatile unsigned int*)(0x42C81768UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC3 *((volatile unsigned int*)(0x42C8176CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC4 *((volatile unsigned int*)(0x42C81770UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC5 *((volatile unsigned int*)(0x42C81774UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_SA *((volatile unsigned int*)(0x42C81778UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_AE *((volatile unsigned int*)(0x42C8177CUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A0 *((volatile unsigned int*)(0x42C81780UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A1 *((volatile unsigned int*)(0x42C81784UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A2 *((volatile unsigned int*)(0x42C81788UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A3 *((volatile unsigned int*)(0x42C8178CUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A4 *((volatile unsigned int*)(0x42C81790UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A5 *((volatile unsigned int*)(0x42C81794UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A6 *((volatile unsigned int*)(0x42C81798UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A7 *((volatile unsigned int*)(0x42C8179CUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A8 *((volatile unsigned int*)(0x42C817A0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A9 *((volatile unsigned int*)(0x42C817A4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A10 *((volatile unsigned int*)(0x42C817A8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A11 *((volatile unsigned int*)(0x42C817ACUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A12 *((volatile unsigned int*)(0x42C817B0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A13 *((volatile unsigned int*)(0x42C817B4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A14 *((volatile unsigned int*)(0x42C817B8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A15 *((volatile unsigned int*)(0x42C817BCUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A16 *((volatile unsigned int*)(0x42C817C0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A17 *((volatile unsigned int*)(0x42C817C4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A18 *((volatile unsigned int*)(0x42C817C8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A19 *((volatile unsigned int*)(0x42C817CCUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A20 *((volatile unsigned int*)(0x42C817D0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A21 *((volatile unsigned int*)(0x42C817D4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A22 *((volatile unsigned int*)(0x42C817D8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A23 *((volatile unsigned int*)(0x42C817DCUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A24 *((volatile unsigned int*)(0x42C817E0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A25 *((volatile unsigned int*)(0x42C817E4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A26 *((volatile unsigned int*)(0x42C817E8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A27 *((volatile unsigned int*)(0x42C817ECUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A28 *((volatile unsigned int*)(0x42C817F0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A29 *((volatile unsigned int*)(0x42C817F4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A30 *((volatile unsigned int*)(0x42C817F8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A31 *((volatile unsigned int*)(0x42C817FCUL)) +#define bFM3_ETHERNET_MAC0_RGSR_LM *((volatile unsigned int*)(0x42C81B00UL)) +#define bFM3_ETHERNET_MAC0_RGSR_LSP0 *((volatile unsigned int*)(0x42C81B04UL)) +#define bFM3_ETHERNET_MAC0_RGSR_LSP1 *((volatile unsigned int*)(0x42C81B08UL)) +#define bFM3_ETHERNET_MAC0_RGSR_LS *((volatile unsigned int*)(0x42C81B0CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSE *((volatile unsigned int*)(0x42C8E000UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TFCU *((volatile unsigned int*)(0x42C8E004UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSI *((volatile unsigned int*)(0x42C8E008UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSU *((volatile unsigned int*)(0x42C8E00CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TITE *((volatile unsigned int*)(0x42C8E010UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TARU *((volatile unsigned int*)(0x42C8E014UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSEA *((volatile unsigned int*)(0x42C8E020UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSDB *((volatile unsigned int*)(0x42C8E024UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSV2E *((volatile unsigned int*)(0x42C8E028UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TETSP *((volatile unsigned int*)(0x42C8E02CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSIP6E *((volatile unsigned int*)(0x42C8E030UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSIP4E *((volatile unsigned int*)(0x42C8E034UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TETSEM *((volatile unsigned int*)(0x42C8E038UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSMRM *((volatile unsigned int*)(0x42C8E03CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSPS0 *((volatile unsigned int*)(0x42C8E040UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSPS1 *((volatile unsigned int*)(0x42C8E044UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSENMF *((volatile unsigned int*)(0x42C8E048UL)) +#define bFM3_ETHERNET_MAC0_TSCR_ATSFC *((volatile unsigned int*)(0x42C8E060UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC0 *((volatile unsigned int*)(0x42C8E080UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC1 *((volatile unsigned int*)(0x42C8E084UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC2 *((volatile unsigned int*)(0x42C8E088UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC3 *((volatile unsigned int*)(0x42C8E08CUL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC4 *((volatile unsigned int*)(0x42C8E090UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC5 *((volatile unsigned int*)(0x42C8E094UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC6 *((volatile unsigned int*)(0x42C8E098UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC7 *((volatile unsigned int*)(0x42C8E09CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS0 *((volatile unsigned int*)(0x42C8E100UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS1 *((volatile unsigned int*)(0x42C8E104UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS2 *((volatile unsigned int*)(0x42C8E108UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS3 *((volatile unsigned int*)(0x42C8E10CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS4 *((volatile unsigned int*)(0x42C8E110UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS5 *((volatile unsigned int*)(0x42C8E114UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS6 *((volatile unsigned int*)(0x42C8E118UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS7 *((volatile unsigned int*)(0x42C8E11CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS8 *((volatile unsigned int*)(0x42C8E120UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS9 *((volatile unsigned int*)(0x42C8E124UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS10 *((volatile unsigned int*)(0x42C8E128UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS11 *((volatile unsigned int*)(0x42C8E12CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS12 *((volatile unsigned int*)(0x42C8E130UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS13 *((volatile unsigned int*)(0x42C8E134UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS14 *((volatile unsigned int*)(0x42C8E138UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS15 *((volatile unsigned int*)(0x42C8E13CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS16 *((volatile unsigned int*)(0x42C8E140UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS17 *((volatile unsigned int*)(0x42C8E144UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS18 *((volatile unsigned int*)(0x42C8E148UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS19 *((volatile unsigned int*)(0x42C8E14CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS20 *((volatile unsigned int*)(0x42C8E150UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS21 *((volatile unsigned int*)(0x42C8E154UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS22 *((volatile unsigned int*)(0x42C8E158UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS23 *((volatile unsigned int*)(0x42C8E15CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS24 *((volatile unsigned int*)(0x42C8E160UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS25 *((volatile unsigned int*)(0x42C8E164UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS26 *((volatile unsigned int*)(0x42C8E168UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS27 *((volatile unsigned int*)(0x42C8E16CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS28 *((volatile unsigned int*)(0x42C8E170UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS29 *((volatile unsigned int*)(0x42C8E174UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS30 *((volatile unsigned int*)(0x42C8E178UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS31 *((volatile unsigned int*)(0x42C8E17CUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS0 *((volatile unsigned int*)(0x42C8E080UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS1 *((volatile unsigned int*)(0x42C8E084UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS2 *((volatile unsigned int*)(0x42C8E088UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS3 *((volatile unsigned int*)(0x42C8E08CUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS4 *((volatile unsigned int*)(0x42C8E090UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS5 *((volatile unsigned int*)(0x42C8E094UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS6 *((volatile unsigned int*)(0x42C8E098UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS7 *((volatile unsigned int*)(0x42C8E09CUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS8 *((volatile unsigned int*)(0x42C8E0A0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS9 *((volatile unsigned int*)(0x42C8E0A4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS10 *((volatile unsigned int*)(0x42C8E0A8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS11 *((volatile unsigned int*)(0x42C8E0ACUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS12 *((volatile unsigned int*)(0x42C8E0B0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS13 *((volatile unsigned int*)(0x42C8E0B4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS14 *((volatile unsigned int*)(0x42C8E0B8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS15 *((volatile unsigned int*)(0x42C8E0BCUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS16 *((volatile unsigned int*)(0x42C8E0C0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS17 *((volatile unsigned int*)(0x42C8E0C4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS18 *((volatile unsigned int*)(0x42C8E0C8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS19 *((volatile unsigned int*)(0x42C8E0CCUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS20 *((volatile unsigned int*)(0x42C8E0D0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS21 *((volatile unsigned int*)(0x42C8E0D4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS22 *((volatile unsigned int*)(0x42C8E0D8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS23 *((volatile unsigned int*)(0x42C8E0DCUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS24 *((volatile unsigned int*)(0x42C8E0E0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS25 *((volatile unsigned int*)(0x42C8E0E4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS26 *((volatile unsigned int*)(0x42C8E0E8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS27 *((volatile unsigned int*)(0x42C8E0ECUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS28 *((volatile unsigned int*)(0x42C8E0F0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS29 *((volatile unsigned int*)(0x42C8E0F4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS30 *((volatile unsigned int*)(0x42C8E0F8UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS0 *((volatile unsigned int*)(0x42C8E200UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS1 *((volatile unsigned int*)(0x42C8E204UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS2 *((volatile unsigned int*)(0x42C8E208UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS3 *((volatile unsigned int*)(0x42C8E20CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS4 *((volatile unsigned int*)(0x42C8E210UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS5 *((volatile unsigned int*)(0x42C8E214UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS6 *((volatile unsigned int*)(0x42C8E218UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS7 *((volatile unsigned int*)(0x42C8E21CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS8 *((volatile unsigned int*)(0x42C8E220UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS9 *((volatile unsigned int*)(0x42C8E224UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS10 *((volatile unsigned int*)(0x42C8E228UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS11 *((volatile unsigned int*)(0x42C8E22CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS12 *((volatile unsigned int*)(0x42C8E230UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS13 *((volatile unsigned int*)(0x42C8E234UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS14 *((volatile unsigned int*)(0x42C8E238UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS15 *((volatile unsigned int*)(0x42C8E23CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS16 *((volatile unsigned int*)(0x42C8E240UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS17 *((volatile unsigned int*)(0x42C8E244UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS18 *((volatile unsigned int*)(0x42C8E248UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS19 *((volatile unsigned int*)(0x42C8E24CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS20 *((volatile unsigned int*)(0x42C8E250UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS21 *((volatile unsigned int*)(0x42C8E254UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS22 *((volatile unsigned int*)(0x42C8E258UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS23 *((volatile unsigned int*)(0x42C8E25CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS24 *((volatile unsigned int*)(0x42C8E260UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS25 *((volatile unsigned int*)(0x42C8E264UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS26 *((volatile unsigned int*)(0x42C8E268UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS27 *((volatile unsigned int*)(0x42C8E26CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS28 *((volatile unsigned int*)(0x42C8E270UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS29 *((volatile unsigned int*)(0x42C8E274UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS30 *((volatile unsigned int*)(0x42C8E278UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS31 *((volatile unsigned int*)(0x42C8E27CUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS0 *((volatile unsigned int*)(0x42C8E280UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS1 *((volatile unsigned int*)(0x42C8E284UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS2 *((volatile unsigned int*)(0x42C8E288UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS3 *((volatile unsigned int*)(0x42C8E28CUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS4 *((volatile unsigned int*)(0x42C8E290UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS5 *((volatile unsigned int*)(0x42C8E294UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS6 *((volatile unsigned int*)(0x42C8E298UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS7 *((volatile unsigned int*)(0x42C8E29CUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS8 *((volatile unsigned int*)(0x42C8E2A0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS9 *((volatile unsigned int*)(0x42C8E2A4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS10 *((volatile unsigned int*)(0x42C8E2A8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS11 *((volatile unsigned int*)(0x42C8E2ACUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS12 *((volatile unsigned int*)(0x42C8E2B0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS13 *((volatile unsigned int*)(0x42C8E2B4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS14 *((volatile unsigned int*)(0x42C8E2B8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS15 *((volatile unsigned int*)(0x42C8E2BCUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS16 *((volatile unsigned int*)(0x42C8E2C0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS17 *((volatile unsigned int*)(0x42C8E2C4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS18 *((volatile unsigned int*)(0x42C8E2C8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS19 *((volatile unsigned int*)(0x42C8E2CCUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS20 *((volatile unsigned int*)(0x42C8E2D0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS21 *((volatile unsigned int*)(0x42C8E2D4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS22 *((volatile unsigned int*)(0x42C8E2D8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS23 *((volatile unsigned int*)(0x42C8E2DCUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS24 *((volatile unsigned int*)(0x42C8E2E0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS25 *((volatile unsigned int*)(0x42C8E2E4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS26 *((volatile unsigned int*)(0x42C8E2E8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS27 *((volatile unsigned int*)(0x42C8E2ECUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS28 *((volatile unsigned int*)(0x42C8E2F0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS29 *((volatile unsigned int*)(0x42C8E2F4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS30 *((volatile unsigned int*)(0x42C8E2F8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_ADDSUB *((volatile unsigned int*)(0x42C8E2FCUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR0 *((volatile unsigned int*)(0x42C8E300UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR1 *((volatile unsigned int*)(0x42C8E304UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR2 *((volatile unsigned int*)(0x42C8E308UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR3 *((volatile unsigned int*)(0x42C8E30CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR4 *((volatile unsigned int*)(0x42C8E310UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR5 *((volatile unsigned int*)(0x42C8E314UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR6 *((volatile unsigned int*)(0x42C8E318UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR7 *((volatile unsigned int*)(0x42C8E31CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR8 *((volatile unsigned int*)(0x42C8E320UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR9 *((volatile unsigned int*)(0x42C8E324UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR10 *((volatile unsigned int*)(0x42C8E328UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR11 *((volatile unsigned int*)(0x42C8E32CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR12 *((volatile unsigned int*)(0x42C8E330UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR13 *((volatile unsigned int*)(0x42C8E334UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR14 *((volatile unsigned int*)(0x42C8E338UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR15 *((volatile unsigned int*)(0x42C8E33CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR16 *((volatile unsigned int*)(0x42C8E340UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR17 *((volatile unsigned int*)(0x42C8E344UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR18 *((volatile unsigned int*)(0x42C8E348UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR19 *((volatile unsigned int*)(0x42C8E34CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR20 *((volatile unsigned int*)(0x42C8E350UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR21 *((volatile unsigned int*)(0x42C8E354UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR22 *((volatile unsigned int*)(0x42C8E358UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR23 *((volatile unsigned int*)(0x42C8E35CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR24 *((volatile unsigned int*)(0x42C8E360UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR25 *((volatile unsigned int*)(0x42C8E364UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR26 *((volatile unsigned int*)(0x42C8E368UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR27 *((volatile unsigned int*)(0x42C8E36CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR28 *((volatile unsigned int*)(0x42C8E370UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR29 *((volatile unsigned int*)(0x42C8E374UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR30 *((volatile unsigned int*)(0x42C8E378UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR31 *((volatile unsigned int*)(0x42C8E37CUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR0 *((volatile unsigned int*)(0x42C8E380UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR1 *((volatile unsigned int*)(0x42C8E384UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR2 *((volatile unsigned int*)(0x42C8E388UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR3 *((volatile unsigned int*)(0x42C8E38CUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR4 *((volatile unsigned int*)(0x42C8E390UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR5 *((volatile unsigned int*)(0x42C8E394UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR6 *((volatile unsigned int*)(0x42C8E398UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR7 *((volatile unsigned int*)(0x42C8E39CUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR8 *((volatile unsigned int*)(0x42C8E3A0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR9 *((volatile unsigned int*)(0x42C8E3A4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR10 *((volatile unsigned int*)(0x42C8E3A8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR11 *((volatile unsigned int*)(0x42C8E3ACUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR12 *((volatile unsigned int*)(0x42C8E3B0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR13 *((volatile unsigned int*)(0x42C8E3B4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR14 *((volatile unsigned int*)(0x42C8E3B8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR15 *((volatile unsigned int*)(0x42C8E3BCUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR16 *((volatile unsigned int*)(0x42C8E3C0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR17 *((volatile unsigned int*)(0x42C8E3C4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR18 *((volatile unsigned int*)(0x42C8E3C8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR19 *((volatile unsigned int*)(0x42C8E3CCUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR20 *((volatile unsigned int*)(0x42C8E3D0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR21 *((volatile unsigned int*)(0x42C8E3D4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR22 *((volatile unsigned int*)(0x42C8E3D8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR23 *((volatile unsigned int*)(0x42C8E3DCUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR24 *((volatile unsigned int*)(0x42C8E3E0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR25 *((volatile unsigned int*)(0x42C8E3E4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR26 *((volatile unsigned int*)(0x42C8E3E8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR27 *((volatile unsigned int*)(0x42C8E3ECUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR28 *((volatile unsigned int*)(0x42C8E3F0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR29 *((volatile unsigned int*)(0x42C8E3F4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR30 *((volatile unsigned int*)(0x42C8E3F8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR31 *((volatile unsigned int*)(0x42C8E3FCUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR0 *((volatile unsigned int*)(0x42C8E400UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR1 *((volatile unsigned int*)(0x42C8E404UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR2 *((volatile unsigned int*)(0x42C8E408UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR3 *((volatile unsigned int*)(0x42C8E40CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR4 *((volatile unsigned int*)(0x42C8E410UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR5 *((volatile unsigned int*)(0x42C8E414UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR6 *((volatile unsigned int*)(0x42C8E418UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR7 *((volatile unsigned int*)(0x42C8E41CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR8 *((volatile unsigned int*)(0x42C8E420UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR9 *((volatile unsigned int*)(0x42C8E424UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR10 *((volatile unsigned int*)(0x42C8E428UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR11 *((volatile unsigned int*)(0x42C8E42CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR12 *((volatile unsigned int*)(0x42C8E430UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR13 *((volatile unsigned int*)(0x42C8E434UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR14 *((volatile unsigned int*)(0x42C8E438UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR15 *((volatile unsigned int*)(0x42C8E43CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR16 *((volatile unsigned int*)(0x42C8E440UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR17 *((volatile unsigned int*)(0x42C8E444UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR18 *((volatile unsigned int*)(0x42C8E448UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR19 *((volatile unsigned int*)(0x42C8E44CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR20 *((volatile unsigned int*)(0x42C8E450UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR21 *((volatile unsigned int*)(0x42C8E454UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR22 *((volatile unsigned int*)(0x42C8E458UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR23 *((volatile unsigned int*)(0x42C8E45CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR24 *((volatile unsigned int*)(0x42C8E460UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR25 *((volatile unsigned int*)(0x42C8E464UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR26 *((volatile unsigned int*)(0x42C8E468UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR27 *((volatile unsigned int*)(0x42C8E46CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR28 *((volatile unsigned int*)(0x42C8E470UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR29 *((volatile unsigned int*)(0x42C8E474UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR30 *((volatile unsigned int*)(0x42C8E478UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42C8E480UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42C8E484UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42C8E488UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42C8E48CUL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42C8E490UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42C8E494UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42C8E498UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42C8E49CUL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42C8E4A0UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42C8E4A4UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42C8E4A8UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42C8E4ACUL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42C8E4B0UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42C8E4B4UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42C8E4B8UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42C8E4BCUL)) +#define bFM3_ETHERNET_MAC0_TSR_TSSOVF *((volatile unsigned int*)(0x42C8E500UL)) +#define bFM3_ETHERNET_MAC0_TSR_TSTART *((volatile unsigned int*)(0x42C8E504UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSTS *((volatile unsigned int*)(0x42C8E508UL)) +#define bFM3_ETHERNET_MAC0_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSSTM *((volatile unsigned int*)(0x42C8E560UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSNS0 *((volatile unsigned int*)(0x42C8E564UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSNS1 *((volatile unsigned int*)(0x42C8E568UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSNS2 *((volatile unsigned int*)(0x42C8E56CUL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42C8E580UL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42C8E584UL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42C8E588UL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42C8E58CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN0 *((volatile unsigned int*)(0x42C8E600UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN1 *((volatile unsigned int*)(0x42C8E604UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN2 *((volatile unsigned int*)(0x42C8E608UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN3 *((volatile unsigned int*)(0x42C8E60CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN4 *((volatile unsigned int*)(0x42C8E610UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN5 *((volatile unsigned int*)(0x42C8E614UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN6 *((volatile unsigned int*)(0x42C8E618UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN7 *((volatile unsigned int*)(0x42C8E61CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN8 *((volatile unsigned int*)(0x42C8E620UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN9 *((volatile unsigned int*)(0x42C8E624UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN10 *((volatile unsigned int*)(0x42C8E628UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN11 *((volatile unsigned int*)(0x42C8E62CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN12 *((volatile unsigned int*)(0x42C8E630UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN13 *((volatile unsigned int*)(0x42C8E634UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN14 *((volatile unsigned int*)(0x42C8E638UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN15 *((volatile unsigned int*)(0x42C8E63CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN16 *((volatile unsigned int*)(0x42C8E640UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN17 *((volatile unsigned int*)(0x42C8E644UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN18 *((volatile unsigned int*)(0x42C8E648UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN19 *((volatile unsigned int*)(0x42C8E64CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN20 *((volatile unsigned int*)(0x42C8E650UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN21 *((volatile unsigned int*)(0x42C8E654UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN22 *((volatile unsigned int*)(0x42C8E658UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN23 *((volatile unsigned int*)(0x42C8E65CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN24 *((volatile unsigned int*)(0x42C8E660UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN25 *((volatile unsigned int*)(0x42C8E664UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN26 *((volatile unsigned int*)(0x42C8E668UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN27 *((volatile unsigned int*)(0x42C8E66CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN28 *((volatile unsigned int*)(0x42C8E670UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN29 *((volatile unsigned int*)(0x42C8E674UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN30 *((volatile unsigned int*)(0x42C8E678UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS0 *((volatile unsigned int*)(0x42C8E680UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS1 *((volatile unsigned int*)(0x42C8E684UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS2 *((volatile unsigned int*)(0x42C8E688UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS3 *((volatile unsigned int*)(0x42C8E68CUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS4 *((volatile unsigned int*)(0x42C8E690UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS5 *((volatile unsigned int*)(0x42C8E694UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS6 *((volatile unsigned int*)(0x42C8E698UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS7 *((volatile unsigned int*)(0x42C8E69CUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS8 *((volatile unsigned int*)(0x42C8E6A0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS9 *((volatile unsigned int*)(0x42C8E6A4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS10 *((volatile unsigned int*)(0x42C8E6A8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS11 *((volatile unsigned int*)(0x42C8E6ACUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS12 *((volatile unsigned int*)(0x42C8E6B0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS13 *((volatile unsigned int*)(0x42C8E6B4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS14 *((volatile unsigned int*)(0x42C8E6B8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS15 *((volatile unsigned int*)(0x42C8E6BCUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS16 *((volatile unsigned int*)(0x42C8E6C0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS17 *((volatile unsigned int*)(0x42C8E6C4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS18 *((volatile unsigned int*)(0x42C8E6C8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS19 *((volatile unsigned int*)(0x42C8E6CCUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS20 *((volatile unsigned int*)(0x42C8E6D0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS21 *((volatile unsigned int*)(0x42C8E6D4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS22 *((volatile unsigned int*)(0x42C8E6D8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS23 *((volatile unsigned int*)(0x42C8E6DCUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS24 *((volatile unsigned int*)(0x42C8E6E0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS25 *((volatile unsigned int*)(0x42C8E6E4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS26 *((volatile unsigned int*)(0x42C8E6E8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS27 *((volatile unsigned int*)(0x42C8E6ECUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS28 *((volatile unsigned int*)(0x42C8E6F0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS29 *((volatile unsigned int*)(0x42C8E6F4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS30 *((volatile unsigned int*)(0x42C8E6F8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS31 *((volatile unsigned int*)(0x42C8E6FCUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A32 *((volatile unsigned int*)(0x42C90000UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A33 *((volatile unsigned int*)(0x42C90004UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A34 *((volatile unsigned int*)(0x42C90008UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A35 *((volatile unsigned int*)(0x42C9000CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A36 *((volatile unsigned int*)(0x42C90010UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A37 *((volatile unsigned int*)(0x42C90014UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A38 *((volatile unsigned int*)(0x42C90018UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A39 *((volatile unsigned int*)(0x42C9001CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A40 *((volatile unsigned int*)(0x42C90020UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A41 *((volatile unsigned int*)(0x42C90024UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A42 *((volatile unsigned int*)(0x42C90028UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A43 *((volatile unsigned int*)(0x42C9002CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A44 *((volatile unsigned int*)(0x42C90030UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A45 *((volatile unsigned int*)(0x42C90034UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A46 *((volatile unsigned int*)(0x42C90038UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A47 *((volatile unsigned int*)(0x42C9003CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC0 *((volatile unsigned int*)(0x42C90060UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC1 *((volatile unsigned int*)(0x42C90064UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC2 *((volatile unsigned int*)(0x42C90068UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC3 *((volatile unsigned int*)(0x42C9006CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC4 *((volatile unsigned int*)(0x42C90070UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC5 *((volatile unsigned int*)(0x42C90074UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_SA *((volatile unsigned int*)(0x42C90078UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_AE *((volatile unsigned int*)(0x42C9007CUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A0 *((volatile unsigned int*)(0x42C90080UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A1 *((volatile unsigned int*)(0x42C90084UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A2 *((volatile unsigned int*)(0x42C90088UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A3 *((volatile unsigned int*)(0x42C9008CUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A4 *((volatile unsigned int*)(0x42C90090UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A5 *((volatile unsigned int*)(0x42C90094UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A6 *((volatile unsigned int*)(0x42C90098UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A7 *((volatile unsigned int*)(0x42C9009CUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A8 *((volatile unsigned int*)(0x42C900A0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A9 *((volatile unsigned int*)(0x42C900A4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A10 *((volatile unsigned int*)(0x42C900A8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A11 *((volatile unsigned int*)(0x42C900ACUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A12 *((volatile unsigned int*)(0x42C900B0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A13 *((volatile unsigned int*)(0x42C900B4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A14 *((volatile unsigned int*)(0x42C900B8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A15 *((volatile unsigned int*)(0x42C900BCUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A16 *((volatile unsigned int*)(0x42C900C0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A17 *((volatile unsigned int*)(0x42C900C4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A18 *((volatile unsigned int*)(0x42C900C8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A19 *((volatile unsigned int*)(0x42C900CCUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A20 *((volatile unsigned int*)(0x42C900D0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A21 *((volatile unsigned int*)(0x42C900D4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A22 *((volatile unsigned int*)(0x42C900D8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A23 *((volatile unsigned int*)(0x42C900DCUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A24 *((volatile unsigned int*)(0x42C900E0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A25 *((volatile unsigned int*)(0x42C900E4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A26 *((volatile unsigned int*)(0x42C900E8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A27 *((volatile unsigned int*)(0x42C900ECUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A28 *((volatile unsigned int*)(0x42C900F0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A29 *((volatile unsigned int*)(0x42C900F4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A30 *((volatile unsigned int*)(0x42C900F8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A31 *((volatile unsigned int*)(0x42C900FCUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A32 *((volatile unsigned int*)(0x42C90100UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A33 *((volatile unsigned int*)(0x42C90104UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A34 *((volatile unsigned int*)(0x42C90108UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A35 *((volatile unsigned int*)(0x42C9010CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A36 *((volatile unsigned int*)(0x42C90110UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A37 *((volatile unsigned int*)(0x42C90114UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A38 *((volatile unsigned int*)(0x42C90118UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A39 *((volatile unsigned int*)(0x42C9011CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A40 *((volatile unsigned int*)(0x42C90120UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A41 *((volatile unsigned int*)(0x42C90124UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A42 *((volatile unsigned int*)(0x42C90128UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A43 *((volatile unsigned int*)(0x42C9012CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A44 *((volatile unsigned int*)(0x42C90130UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A45 *((volatile unsigned int*)(0x42C90134UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A46 *((volatile unsigned int*)(0x42C90138UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A47 *((volatile unsigned int*)(0x42C9013CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC0 *((volatile unsigned int*)(0x42C90160UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC1 *((volatile unsigned int*)(0x42C90164UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC2 *((volatile unsigned int*)(0x42C90168UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC3 *((volatile unsigned int*)(0x42C9016CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC4 *((volatile unsigned int*)(0x42C90170UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC5 *((volatile unsigned int*)(0x42C90174UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_SA *((volatile unsigned int*)(0x42C90178UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_AE *((volatile unsigned int*)(0x42C9017CUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A0 *((volatile unsigned int*)(0x42C90180UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A1 *((volatile unsigned int*)(0x42C90184UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A2 *((volatile unsigned int*)(0x42C90188UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A3 *((volatile unsigned int*)(0x42C9018CUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A4 *((volatile unsigned int*)(0x42C90190UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A5 *((volatile unsigned int*)(0x42C90194UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A6 *((volatile unsigned int*)(0x42C90198UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A7 *((volatile unsigned int*)(0x42C9019CUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A8 *((volatile unsigned int*)(0x42C901A0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A9 *((volatile unsigned int*)(0x42C901A4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A10 *((volatile unsigned int*)(0x42C901A8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A11 *((volatile unsigned int*)(0x42C901ACUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A12 *((volatile unsigned int*)(0x42C901B0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A13 *((volatile unsigned int*)(0x42C901B4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A14 *((volatile unsigned int*)(0x42C901B8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A15 *((volatile unsigned int*)(0x42C901BCUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A16 *((volatile unsigned int*)(0x42C901C0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A17 *((volatile unsigned int*)(0x42C901C4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A18 *((volatile unsigned int*)(0x42C901C8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A19 *((volatile unsigned int*)(0x42C901CCUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A20 *((volatile unsigned int*)(0x42C901D0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A21 *((volatile unsigned int*)(0x42C901D4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A22 *((volatile unsigned int*)(0x42C901D8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A23 *((volatile unsigned int*)(0x42C901DCUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A24 *((volatile unsigned int*)(0x42C901E0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A25 *((volatile unsigned int*)(0x42C901E4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A26 *((volatile unsigned int*)(0x42C901E8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A27 *((volatile unsigned int*)(0x42C901ECUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A28 *((volatile unsigned int*)(0x42C901F0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A29 *((volatile unsigned int*)(0x42C901F4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A30 *((volatile unsigned int*)(0x42C901F8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A31 *((volatile unsigned int*)(0x42C901FCUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A32 *((volatile unsigned int*)(0x42C90200UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A33 *((volatile unsigned int*)(0x42C90204UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A34 *((volatile unsigned int*)(0x42C90208UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A35 *((volatile unsigned int*)(0x42C9020CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A36 *((volatile unsigned int*)(0x42C90210UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A37 *((volatile unsigned int*)(0x42C90214UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A38 *((volatile unsigned int*)(0x42C90218UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A39 *((volatile unsigned int*)(0x42C9021CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A40 *((volatile unsigned int*)(0x42C90220UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A41 *((volatile unsigned int*)(0x42C90224UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A42 *((volatile unsigned int*)(0x42C90228UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A43 *((volatile unsigned int*)(0x42C9022CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A44 *((volatile unsigned int*)(0x42C90230UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A45 *((volatile unsigned int*)(0x42C90234UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A46 *((volatile unsigned int*)(0x42C90238UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A47 *((volatile unsigned int*)(0x42C9023CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC0 *((volatile unsigned int*)(0x42C90260UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC1 *((volatile unsigned int*)(0x42C90264UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC2 *((volatile unsigned int*)(0x42C90268UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC3 *((volatile unsigned int*)(0x42C9026CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC4 *((volatile unsigned int*)(0x42C90270UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC5 *((volatile unsigned int*)(0x42C90274UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_SA *((volatile unsigned int*)(0x42C90278UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_AE *((volatile unsigned int*)(0x42C9027CUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A0 *((volatile unsigned int*)(0x42C90280UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A1 *((volatile unsigned int*)(0x42C90284UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A2 *((volatile unsigned int*)(0x42C90288UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A3 *((volatile unsigned int*)(0x42C9028CUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A4 *((volatile unsigned int*)(0x42C90290UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A5 *((volatile unsigned int*)(0x42C90294UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A6 *((volatile unsigned int*)(0x42C90298UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A7 *((volatile unsigned int*)(0x42C9029CUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A8 *((volatile unsigned int*)(0x42C902A0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A9 *((volatile unsigned int*)(0x42C902A4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A10 *((volatile unsigned int*)(0x42C902A8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A11 *((volatile unsigned int*)(0x42C902ACUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A12 *((volatile unsigned int*)(0x42C902B0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A13 *((volatile unsigned int*)(0x42C902B4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A14 *((volatile unsigned int*)(0x42C902B8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A15 *((volatile unsigned int*)(0x42C902BCUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A16 *((volatile unsigned int*)(0x42C902C0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A17 *((volatile unsigned int*)(0x42C902C4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A18 *((volatile unsigned int*)(0x42C902C8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A19 *((volatile unsigned int*)(0x42C902CCUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A20 *((volatile unsigned int*)(0x42C902D0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A21 *((volatile unsigned int*)(0x42C902D4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A22 *((volatile unsigned int*)(0x42C902D8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A23 *((volatile unsigned int*)(0x42C902DCUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A24 *((volatile unsigned int*)(0x42C902E0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A25 *((volatile unsigned int*)(0x42C902E4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A26 *((volatile unsigned int*)(0x42C902E8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A27 *((volatile unsigned int*)(0x42C902ECUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A28 *((volatile unsigned int*)(0x42C902F0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A29 *((volatile unsigned int*)(0x42C902F4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A30 *((volatile unsigned int*)(0x42C902F8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A31 *((volatile unsigned int*)(0x42C902FCUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A32 *((volatile unsigned int*)(0x42C90300UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A33 *((volatile unsigned int*)(0x42C90304UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A34 *((volatile unsigned int*)(0x42C90308UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A35 *((volatile unsigned int*)(0x42C9030CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A36 *((volatile unsigned int*)(0x42C90310UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A37 *((volatile unsigned int*)(0x42C90314UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A38 *((volatile unsigned int*)(0x42C90318UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A39 *((volatile unsigned int*)(0x42C9031CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A40 *((volatile unsigned int*)(0x42C90320UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A41 *((volatile unsigned int*)(0x42C90324UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A42 *((volatile unsigned int*)(0x42C90328UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A43 *((volatile unsigned int*)(0x42C9032CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A44 *((volatile unsigned int*)(0x42C90330UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A45 *((volatile unsigned int*)(0x42C90334UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A46 *((volatile unsigned int*)(0x42C90338UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A47 *((volatile unsigned int*)(0x42C9033CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC0 *((volatile unsigned int*)(0x42C90360UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC1 *((volatile unsigned int*)(0x42C90364UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC2 *((volatile unsigned int*)(0x42C90368UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC3 *((volatile unsigned int*)(0x42C9036CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC4 *((volatile unsigned int*)(0x42C90370UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC5 *((volatile unsigned int*)(0x42C90374UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_SA *((volatile unsigned int*)(0x42C90378UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_AE *((volatile unsigned int*)(0x42C9037CUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A0 *((volatile unsigned int*)(0x42C90380UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A1 *((volatile unsigned int*)(0x42C90384UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A2 *((volatile unsigned int*)(0x42C90388UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A3 *((volatile unsigned int*)(0x42C9038CUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A4 *((volatile unsigned int*)(0x42C90390UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A5 *((volatile unsigned int*)(0x42C90394UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A6 *((volatile unsigned int*)(0x42C90398UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A7 *((volatile unsigned int*)(0x42C9039CUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A8 *((volatile unsigned int*)(0x42C903A0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A9 *((volatile unsigned int*)(0x42C903A4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A10 *((volatile unsigned int*)(0x42C903A8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A11 *((volatile unsigned int*)(0x42C903ACUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A12 *((volatile unsigned int*)(0x42C903B0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A13 *((volatile unsigned int*)(0x42C903B4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A14 *((volatile unsigned int*)(0x42C903B8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A15 *((volatile unsigned int*)(0x42C903BCUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A16 *((volatile unsigned int*)(0x42C903C0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A17 *((volatile unsigned int*)(0x42C903C4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A18 *((volatile unsigned int*)(0x42C903C8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A19 *((volatile unsigned int*)(0x42C903CCUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A20 *((volatile unsigned int*)(0x42C903D0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A21 *((volatile unsigned int*)(0x42C903D4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A22 *((volatile unsigned int*)(0x42C903D8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A23 *((volatile unsigned int*)(0x42C903DCUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A24 *((volatile unsigned int*)(0x42C903E0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A25 *((volatile unsigned int*)(0x42C903E4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A26 *((volatile unsigned int*)(0x42C903E8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A27 *((volatile unsigned int*)(0x42C903ECUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A28 *((volatile unsigned int*)(0x42C903F0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A29 *((volatile unsigned int*)(0x42C903F4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A30 *((volatile unsigned int*)(0x42C903F8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A31 *((volatile unsigned int*)(0x42C903FCUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A32 *((volatile unsigned int*)(0x42C90400UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A33 *((volatile unsigned int*)(0x42C90404UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A34 *((volatile unsigned int*)(0x42C90408UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A35 *((volatile unsigned int*)(0x42C9040CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A36 *((volatile unsigned int*)(0x42C90410UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A37 *((volatile unsigned int*)(0x42C90414UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A38 *((volatile unsigned int*)(0x42C90418UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A39 *((volatile unsigned int*)(0x42C9041CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A40 *((volatile unsigned int*)(0x42C90420UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A41 *((volatile unsigned int*)(0x42C90424UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A42 *((volatile unsigned int*)(0x42C90428UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A43 *((volatile unsigned int*)(0x42C9042CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A44 *((volatile unsigned int*)(0x42C90430UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A45 *((volatile unsigned int*)(0x42C90434UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A46 *((volatile unsigned int*)(0x42C90438UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A47 *((volatile unsigned int*)(0x42C9043CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC0 *((volatile unsigned int*)(0x42C90460UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC1 *((volatile unsigned int*)(0x42C90464UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC2 *((volatile unsigned int*)(0x42C90468UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC3 *((volatile unsigned int*)(0x42C9046CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC4 *((volatile unsigned int*)(0x42C90470UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC5 *((volatile unsigned int*)(0x42C90474UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_SA *((volatile unsigned int*)(0x42C90478UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_AE *((volatile unsigned int*)(0x42C9047CUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A0 *((volatile unsigned int*)(0x42C90480UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A1 *((volatile unsigned int*)(0x42C90484UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A2 *((volatile unsigned int*)(0x42C90488UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A3 *((volatile unsigned int*)(0x42C9048CUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A4 *((volatile unsigned int*)(0x42C90490UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A5 *((volatile unsigned int*)(0x42C90494UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A6 *((volatile unsigned int*)(0x42C90498UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A7 *((volatile unsigned int*)(0x42C9049CUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A8 *((volatile unsigned int*)(0x42C904A0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A9 *((volatile unsigned int*)(0x42C904A4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A10 *((volatile unsigned int*)(0x42C904A8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A11 *((volatile unsigned int*)(0x42C904ACUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A12 *((volatile unsigned int*)(0x42C904B0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A13 *((volatile unsigned int*)(0x42C904B4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A14 *((volatile unsigned int*)(0x42C904B8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A15 *((volatile unsigned int*)(0x42C904BCUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A16 *((volatile unsigned int*)(0x42C904C0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A17 *((volatile unsigned int*)(0x42C904C4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A18 *((volatile unsigned int*)(0x42C904C8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A19 *((volatile unsigned int*)(0x42C904CCUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A20 *((volatile unsigned int*)(0x42C904D0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A21 *((volatile unsigned int*)(0x42C904D4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A22 *((volatile unsigned int*)(0x42C904D8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A23 *((volatile unsigned int*)(0x42C904DCUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A24 *((volatile unsigned int*)(0x42C904E0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A25 *((volatile unsigned int*)(0x42C904E4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A26 *((volatile unsigned int*)(0x42C904E8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A27 *((volatile unsigned int*)(0x42C904ECUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A28 *((volatile unsigned int*)(0x42C904F0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A29 *((volatile unsigned int*)(0x42C904F4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A30 *((volatile unsigned int*)(0x42C904F8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A31 *((volatile unsigned int*)(0x42C904FCUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A32 *((volatile unsigned int*)(0x42C90500UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A33 *((volatile unsigned int*)(0x42C90504UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A34 *((volatile unsigned int*)(0x42C90508UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A35 *((volatile unsigned int*)(0x42C9050CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A36 *((volatile unsigned int*)(0x42C90510UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A37 *((volatile unsigned int*)(0x42C90514UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A38 *((volatile unsigned int*)(0x42C90518UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A39 *((volatile unsigned int*)(0x42C9051CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A40 *((volatile unsigned int*)(0x42C90520UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A41 *((volatile unsigned int*)(0x42C90524UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A42 *((volatile unsigned int*)(0x42C90528UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A43 *((volatile unsigned int*)(0x42C9052CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A44 *((volatile unsigned int*)(0x42C90530UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A45 *((volatile unsigned int*)(0x42C90534UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A46 *((volatile unsigned int*)(0x42C90538UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A47 *((volatile unsigned int*)(0x42C9053CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC0 *((volatile unsigned int*)(0x42C90560UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC1 *((volatile unsigned int*)(0x42C90564UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC2 *((volatile unsigned int*)(0x42C90568UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC3 *((volatile unsigned int*)(0x42C9056CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC4 *((volatile unsigned int*)(0x42C90570UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC5 *((volatile unsigned int*)(0x42C90574UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_SA *((volatile unsigned int*)(0x42C90578UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_AE *((volatile unsigned int*)(0x42C9057CUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A0 *((volatile unsigned int*)(0x42C90580UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A1 *((volatile unsigned int*)(0x42C90584UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A2 *((volatile unsigned int*)(0x42C90588UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A3 *((volatile unsigned int*)(0x42C9058CUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A4 *((volatile unsigned int*)(0x42C90590UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A5 *((volatile unsigned int*)(0x42C90594UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A6 *((volatile unsigned int*)(0x42C90598UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A7 *((volatile unsigned int*)(0x42C9059CUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A8 *((volatile unsigned int*)(0x42C905A0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A9 *((volatile unsigned int*)(0x42C905A4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A10 *((volatile unsigned int*)(0x42C905A8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A11 *((volatile unsigned int*)(0x42C905ACUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A12 *((volatile unsigned int*)(0x42C905B0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A13 *((volatile unsigned int*)(0x42C905B4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A14 *((volatile unsigned int*)(0x42C905B8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A15 *((volatile unsigned int*)(0x42C905BCUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A16 *((volatile unsigned int*)(0x42C905C0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A17 *((volatile unsigned int*)(0x42C905C4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A18 *((volatile unsigned int*)(0x42C905C8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A19 *((volatile unsigned int*)(0x42C905CCUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A20 *((volatile unsigned int*)(0x42C905D0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A21 *((volatile unsigned int*)(0x42C905D4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A22 *((volatile unsigned int*)(0x42C905D8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A23 *((volatile unsigned int*)(0x42C905DCUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A24 *((volatile unsigned int*)(0x42C905E0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A25 *((volatile unsigned int*)(0x42C905E4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A26 *((volatile unsigned int*)(0x42C905E8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A27 *((volatile unsigned int*)(0x42C905ECUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A28 *((volatile unsigned int*)(0x42C905F0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A29 *((volatile unsigned int*)(0x42C905F4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A30 *((volatile unsigned int*)(0x42C905F8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A31 *((volatile unsigned int*)(0x42C905FCUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A32 *((volatile unsigned int*)(0x42C90600UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A33 *((volatile unsigned int*)(0x42C90604UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A34 *((volatile unsigned int*)(0x42C90608UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A35 *((volatile unsigned int*)(0x42C9060CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A36 *((volatile unsigned int*)(0x42C90610UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A37 *((volatile unsigned int*)(0x42C90614UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A38 *((volatile unsigned int*)(0x42C90618UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A39 *((volatile unsigned int*)(0x42C9061CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A40 *((volatile unsigned int*)(0x42C90620UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A41 *((volatile unsigned int*)(0x42C90624UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A42 *((volatile unsigned int*)(0x42C90628UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A43 *((volatile unsigned int*)(0x42C9062CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A44 *((volatile unsigned int*)(0x42C90630UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A45 *((volatile unsigned int*)(0x42C90634UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A46 *((volatile unsigned int*)(0x42C90638UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A47 *((volatile unsigned int*)(0x42C9063CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC0 *((volatile unsigned int*)(0x42C90660UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC1 *((volatile unsigned int*)(0x42C90664UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC2 *((volatile unsigned int*)(0x42C90668UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC3 *((volatile unsigned int*)(0x42C9066CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC4 *((volatile unsigned int*)(0x42C90670UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC5 *((volatile unsigned int*)(0x42C90674UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_SA *((volatile unsigned int*)(0x42C90678UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_AE *((volatile unsigned int*)(0x42C9067CUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A0 *((volatile unsigned int*)(0x42C90680UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A1 *((volatile unsigned int*)(0x42C90684UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A2 *((volatile unsigned int*)(0x42C90688UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A3 *((volatile unsigned int*)(0x42C9068CUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A4 *((volatile unsigned int*)(0x42C90690UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A5 *((volatile unsigned int*)(0x42C90694UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A6 *((volatile unsigned int*)(0x42C90698UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A7 *((volatile unsigned int*)(0x42C9069CUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A8 *((volatile unsigned int*)(0x42C906A0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A9 *((volatile unsigned int*)(0x42C906A4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A10 *((volatile unsigned int*)(0x42C906A8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A11 *((volatile unsigned int*)(0x42C906ACUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A12 *((volatile unsigned int*)(0x42C906B0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A13 *((volatile unsigned int*)(0x42C906B4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A14 *((volatile unsigned int*)(0x42C906B8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A15 *((volatile unsigned int*)(0x42C906BCUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A16 *((volatile unsigned int*)(0x42C906C0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A17 *((volatile unsigned int*)(0x42C906C4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A18 *((volatile unsigned int*)(0x42C906C8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A19 *((volatile unsigned int*)(0x42C906CCUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A20 *((volatile unsigned int*)(0x42C906D0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A21 *((volatile unsigned int*)(0x42C906D4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A22 *((volatile unsigned int*)(0x42C906D8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A23 *((volatile unsigned int*)(0x42C906DCUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A24 *((volatile unsigned int*)(0x42C906E0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A25 *((volatile unsigned int*)(0x42C906E4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A26 *((volatile unsigned int*)(0x42C906E8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A27 *((volatile unsigned int*)(0x42C906ECUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A28 *((volatile unsigned int*)(0x42C906F0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A29 *((volatile unsigned int*)(0x42C906F4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A30 *((volatile unsigned int*)(0x42C906F8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A31 *((volatile unsigned int*)(0x42C906FCUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A32 *((volatile unsigned int*)(0x42C90700UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A33 *((volatile unsigned int*)(0x42C90704UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A34 *((volatile unsigned int*)(0x42C90708UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A35 *((volatile unsigned int*)(0x42C9070CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A36 *((volatile unsigned int*)(0x42C90710UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A37 *((volatile unsigned int*)(0x42C90714UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A38 *((volatile unsigned int*)(0x42C90718UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A39 *((volatile unsigned int*)(0x42C9071CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A40 *((volatile unsigned int*)(0x42C90720UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A41 *((volatile unsigned int*)(0x42C90724UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A42 *((volatile unsigned int*)(0x42C90728UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A43 *((volatile unsigned int*)(0x42C9072CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A44 *((volatile unsigned int*)(0x42C90730UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A45 *((volatile unsigned int*)(0x42C90734UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A46 *((volatile unsigned int*)(0x42C90738UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A47 *((volatile unsigned int*)(0x42C9073CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC0 *((volatile unsigned int*)(0x42C90760UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC1 *((volatile unsigned int*)(0x42C90764UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC2 *((volatile unsigned int*)(0x42C90768UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC3 *((volatile unsigned int*)(0x42C9076CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC4 *((volatile unsigned int*)(0x42C90770UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC5 *((volatile unsigned int*)(0x42C90774UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_SA *((volatile unsigned int*)(0x42C90778UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_AE *((volatile unsigned int*)(0x42C9077CUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A0 *((volatile unsigned int*)(0x42C90780UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A1 *((volatile unsigned int*)(0x42C90784UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A2 *((volatile unsigned int*)(0x42C90788UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A3 *((volatile unsigned int*)(0x42C9078CUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A4 *((volatile unsigned int*)(0x42C90790UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A5 *((volatile unsigned int*)(0x42C90794UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A6 *((volatile unsigned int*)(0x42C90798UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A7 *((volatile unsigned int*)(0x42C9079CUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A8 *((volatile unsigned int*)(0x42C907A0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A9 *((volatile unsigned int*)(0x42C907A4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A10 *((volatile unsigned int*)(0x42C907A8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A11 *((volatile unsigned int*)(0x42C907ACUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A12 *((volatile unsigned int*)(0x42C907B0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A13 *((volatile unsigned int*)(0x42C907B4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A14 *((volatile unsigned int*)(0x42C907B8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A15 *((volatile unsigned int*)(0x42C907BCUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A16 *((volatile unsigned int*)(0x42C907C0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A17 *((volatile unsigned int*)(0x42C907C4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A18 *((volatile unsigned int*)(0x42C907C8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A19 *((volatile unsigned int*)(0x42C907CCUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A20 *((volatile unsigned int*)(0x42C907D0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A21 *((volatile unsigned int*)(0x42C907D4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A22 *((volatile unsigned int*)(0x42C907D8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A23 *((volatile unsigned int*)(0x42C907DCUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A24 *((volatile unsigned int*)(0x42C907E0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A25 *((volatile unsigned int*)(0x42C907E4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A26 *((volatile unsigned int*)(0x42C907E8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A27 *((volatile unsigned int*)(0x42C907ECUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A28 *((volatile unsigned int*)(0x42C907F0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A29 *((volatile unsigned int*)(0x42C907F4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A30 *((volatile unsigned int*)(0x42C907F8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A31 *((volatile unsigned int*)(0x42C907FCUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A32 *((volatile unsigned int*)(0x42C90800UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A33 *((volatile unsigned int*)(0x42C90804UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A34 *((volatile unsigned int*)(0x42C90808UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A35 *((volatile unsigned int*)(0x42C9080CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A36 *((volatile unsigned int*)(0x42C90810UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A37 *((volatile unsigned int*)(0x42C90814UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A38 *((volatile unsigned int*)(0x42C90818UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A39 *((volatile unsigned int*)(0x42C9081CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A40 *((volatile unsigned int*)(0x42C90820UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A41 *((volatile unsigned int*)(0x42C90824UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A42 *((volatile unsigned int*)(0x42C90828UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A43 *((volatile unsigned int*)(0x42C9082CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A44 *((volatile unsigned int*)(0x42C90830UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A45 *((volatile unsigned int*)(0x42C90834UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A46 *((volatile unsigned int*)(0x42C90838UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A47 *((volatile unsigned int*)(0x42C9083CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC0 *((volatile unsigned int*)(0x42C90860UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC1 *((volatile unsigned int*)(0x42C90864UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC2 *((volatile unsigned int*)(0x42C90868UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC3 *((volatile unsigned int*)(0x42C9086CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC4 *((volatile unsigned int*)(0x42C90870UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC5 *((volatile unsigned int*)(0x42C90874UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_SA *((volatile unsigned int*)(0x42C90878UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_AE *((volatile unsigned int*)(0x42C9087CUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A0 *((volatile unsigned int*)(0x42C90880UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A1 *((volatile unsigned int*)(0x42C90884UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A2 *((volatile unsigned int*)(0x42C90888UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A3 *((volatile unsigned int*)(0x42C9088CUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A4 *((volatile unsigned int*)(0x42C90890UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A5 *((volatile unsigned int*)(0x42C90894UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A6 *((volatile unsigned int*)(0x42C90898UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A7 *((volatile unsigned int*)(0x42C9089CUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A8 *((volatile unsigned int*)(0x42C908A0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A9 *((volatile unsigned int*)(0x42C908A4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A10 *((volatile unsigned int*)(0x42C908A8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A11 *((volatile unsigned int*)(0x42C908ACUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A12 *((volatile unsigned int*)(0x42C908B0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A13 *((volatile unsigned int*)(0x42C908B4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A14 *((volatile unsigned int*)(0x42C908B8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A15 *((volatile unsigned int*)(0x42C908BCUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A16 *((volatile unsigned int*)(0x42C908C0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A17 *((volatile unsigned int*)(0x42C908C4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A18 *((volatile unsigned int*)(0x42C908C8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A19 *((volatile unsigned int*)(0x42C908CCUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A20 *((volatile unsigned int*)(0x42C908D0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A21 *((volatile unsigned int*)(0x42C908D4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A22 *((volatile unsigned int*)(0x42C908D8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A23 *((volatile unsigned int*)(0x42C908DCUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A24 *((volatile unsigned int*)(0x42C908E0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A25 *((volatile unsigned int*)(0x42C908E4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A26 *((volatile unsigned int*)(0x42C908E8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A27 *((volatile unsigned int*)(0x42C908ECUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A28 *((volatile unsigned int*)(0x42C908F0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A29 *((volatile unsigned int*)(0x42C908F4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A30 *((volatile unsigned int*)(0x42C908F8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A31 *((volatile unsigned int*)(0x42C908FCUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A32 *((volatile unsigned int*)(0x42C90900UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A33 *((volatile unsigned int*)(0x42C90904UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A34 *((volatile unsigned int*)(0x42C90908UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A35 *((volatile unsigned int*)(0x42C9090CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A36 *((volatile unsigned int*)(0x42C90910UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A37 *((volatile unsigned int*)(0x42C90914UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A38 *((volatile unsigned int*)(0x42C90918UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A39 *((volatile unsigned int*)(0x42C9091CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A40 *((volatile unsigned int*)(0x42C90920UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A41 *((volatile unsigned int*)(0x42C90924UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A42 *((volatile unsigned int*)(0x42C90928UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A43 *((volatile unsigned int*)(0x42C9092CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A44 *((volatile unsigned int*)(0x42C90930UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A45 *((volatile unsigned int*)(0x42C90934UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A46 *((volatile unsigned int*)(0x42C90938UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A47 *((volatile unsigned int*)(0x42C9093CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC0 *((volatile unsigned int*)(0x42C90960UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC1 *((volatile unsigned int*)(0x42C90964UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC2 *((volatile unsigned int*)(0x42C90968UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC3 *((volatile unsigned int*)(0x42C9096CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC4 *((volatile unsigned int*)(0x42C90970UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC5 *((volatile unsigned int*)(0x42C90974UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_SA *((volatile unsigned int*)(0x42C90978UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_AE *((volatile unsigned int*)(0x42C9097CUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A0 *((volatile unsigned int*)(0x42C90980UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A1 *((volatile unsigned int*)(0x42C90984UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A2 *((volatile unsigned int*)(0x42C90988UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A3 *((volatile unsigned int*)(0x42C9098CUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A4 *((volatile unsigned int*)(0x42C90990UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A5 *((volatile unsigned int*)(0x42C90994UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A6 *((volatile unsigned int*)(0x42C90998UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A7 *((volatile unsigned int*)(0x42C9099CUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A8 *((volatile unsigned int*)(0x42C909A0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A9 *((volatile unsigned int*)(0x42C909A4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A10 *((volatile unsigned int*)(0x42C909A8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A11 *((volatile unsigned int*)(0x42C909ACUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A12 *((volatile unsigned int*)(0x42C909B0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A13 *((volatile unsigned int*)(0x42C909B4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A14 *((volatile unsigned int*)(0x42C909B8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A15 *((volatile unsigned int*)(0x42C909BCUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A16 *((volatile unsigned int*)(0x42C909C0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A17 *((volatile unsigned int*)(0x42C909C4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A18 *((volatile unsigned int*)(0x42C909C8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A19 *((volatile unsigned int*)(0x42C909CCUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A20 *((volatile unsigned int*)(0x42C909D0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A21 *((volatile unsigned int*)(0x42C909D4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A22 *((volatile unsigned int*)(0x42C909D8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A23 *((volatile unsigned int*)(0x42C909DCUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A24 *((volatile unsigned int*)(0x42C909E0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A25 *((volatile unsigned int*)(0x42C909E4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A26 *((volatile unsigned int*)(0x42C909E8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A27 *((volatile unsigned int*)(0x42C909ECUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A28 *((volatile unsigned int*)(0x42C909F0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A29 *((volatile unsigned int*)(0x42C909F4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A30 *((volatile unsigned int*)(0x42C909F8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A31 *((volatile unsigned int*)(0x42C909FCUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A32 *((volatile unsigned int*)(0x42C90A00UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A33 *((volatile unsigned int*)(0x42C90A04UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A34 *((volatile unsigned int*)(0x42C90A08UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A35 *((volatile unsigned int*)(0x42C90A0CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A36 *((volatile unsigned int*)(0x42C90A10UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A37 *((volatile unsigned int*)(0x42C90A14UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A38 *((volatile unsigned int*)(0x42C90A18UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A39 *((volatile unsigned int*)(0x42C90A1CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A40 *((volatile unsigned int*)(0x42C90A20UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A41 *((volatile unsigned int*)(0x42C90A24UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A42 *((volatile unsigned int*)(0x42C90A28UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A43 *((volatile unsigned int*)(0x42C90A2CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A44 *((volatile unsigned int*)(0x42C90A30UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A45 *((volatile unsigned int*)(0x42C90A34UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A46 *((volatile unsigned int*)(0x42C90A38UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A47 *((volatile unsigned int*)(0x42C90A3CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC0 *((volatile unsigned int*)(0x42C90A60UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC1 *((volatile unsigned int*)(0x42C90A64UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC2 *((volatile unsigned int*)(0x42C90A68UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC3 *((volatile unsigned int*)(0x42C90A6CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC4 *((volatile unsigned int*)(0x42C90A70UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC5 *((volatile unsigned int*)(0x42C90A74UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_SA *((volatile unsigned int*)(0x42C90A78UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_AE *((volatile unsigned int*)(0x42C90A7CUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A0 *((volatile unsigned int*)(0x42C90A80UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A1 *((volatile unsigned int*)(0x42C90A84UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A2 *((volatile unsigned int*)(0x42C90A88UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A3 *((volatile unsigned int*)(0x42C90A8CUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A4 *((volatile unsigned int*)(0x42C90A90UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A5 *((volatile unsigned int*)(0x42C90A94UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A6 *((volatile unsigned int*)(0x42C90A98UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A7 *((volatile unsigned int*)(0x42C90A9CUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A8 *((volatile unsigned int*)(0x42C90AA0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A9 *((volatile unsigned int*)(0x42C90AA4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A10 *((volatile unsigned int*)(0x42C90AA8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A11 *((volatile unsigned int*)(0x42C90AACUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A12 *((volatile unsigned int*)(0x42C90AB0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A13 *((volatile unsigned int*)(0x42C90AB4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A14 *((volatile unsigned int*)(0x42C90AB8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A15 *((volatile unsigned int*)(0x42C90ABCUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A16 *((volatile unsigned int*)(0x42C90AC0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A17 *((volatile unsigned int*)(0x42C90AC4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A18 *((volatile unsigned int*)(0x42C90AC8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A19 *((volatile unsigned int*)(0x42C90ACCUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A20 *((volatile unsigned int*)(0x42C90AD0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A21 *((volatile unsigned int*)(0x42C90AD4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A22 *((volatile unsigned int*)(0x42C90AD8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A23 *((volatile unsigned int*)(0x42C90ADCUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A24 *((volatile unsigned int*)(0x42C90AE0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A25 *((volatile unsigned int*)(0x42C90AE4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A26 *((volatile unsigned int*)(0x42C90AE8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A27 *((volatile unsigned int*)(0x42C90AECUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A28 *((volatile unsigned int*)(0x42C90AF0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A29 *((volatile unsigned int*)(0x42C90AF4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A30 *((volatile unsigned int*)(0x42C90AF8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A31 *((volatile unsigned int*)(0x42C90AFCUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A32 *((volatile unsigned int*)(0x42C90B00UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A33 *((volatile unsigned int*)(0x42C90B04UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A34 *((volatile unsigned int*)(0x42C90B08UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A35 *((volatile unsigned int*)(0x42C90B0CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A36 *((volatile unsigned int*)(0x42C90B10UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A37 *((volatile unsigned int*)(0x42C90B14UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A38 *((volatile unsigned int*)(0x42C90B18UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A39 *((volatile unsigned int*)(0x42C90B1CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A40 *((volatile unsigned int*)(0x42C90B20UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A41 *((volatile unsigned int*)(0x42C90B24UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A42 *((volatile unsigned int*)(0x42C90B28UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A43 *((volatile unsigned int*)(0x42C90B2CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A44 *((volatile unsigned int*)(0x42C90B30UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A45 *((volatile unsigned int*)(0x42C90B34UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A46 *((volatile unsigned int*)(0x42C90B38UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A47 *((volatile unsigned int*)(0x42C90B3CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC0 *((volatile unsigned int*)(0x42C90B60UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC1 *((volatile unsigned int*)(0x42C90B64UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC2 *((volatile unsigned int*)(0x42C90B68UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC3 *((volatile unsigned int*)(0x42C90B6CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC4 *((volatile unsigned int*)(0x42C90B70UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC5 *((volatile unsigned int*)(0x42C90B74UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_SA *((volatile unsigned int*)(0x42C90B78UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_AE *((volatile unsigned int*)(0x42C90B7CUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A0 *((volatile unsigned int*)(0x42C90B80UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A1 *((volatile unsigned int*)(0x42C90B84UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A2 *((volatile unsigned int*)(0x42C90B88UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A3 *((volatile unsigned int*)(0x42C90B8CUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A4 *((volatile unsigned int*)(0x42C90B90UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A5 *((volatile unsigned int*)(0x42C90B94UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A6 *((volatile unsigned int*)(0x42C90B98UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A7 *((volatile unsigned int*)(0x42C90B9CUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A8 *((volatile unsigned int*)(0x42C90BA0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A9 *((volatile unsigned int*)(0x42C90BA4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A10 *((volatile unsigned int*)(0x42C90BA8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A11 *((volatile unsigned int*)(0x42C90BACUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A12 *((volatile unsigned int*)(0x42C90BB0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A13 *((volatile unsigned int*)(0x42C90BB4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A14 *((volatile unsigned int*)(0x42C90BB8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A15 *((volatile unsigned int*)(0x42C90BBCUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A16 *((volatile unsigned int*)(0x42C90BC0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A17 *((volatile unsigned int*)(0x42C90BC4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A18 *((volatile unsigned int*)(0x42C90BC8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A19 *((volatile unsigned int*)(0x42C90BCCUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A20 *((volatile unsigned int*)(0x42C90BD0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A21 *((volatile unsigned int*)(0x42C90BD4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A22 *((volatile unsigned int*)(0x42C90BD8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A23 *((volatile unsigned int*)(0x42C90BDCUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A24 *((volatile unsigned int*)(0x42C90BE0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A25 *((volatile unsigned int*)(0x42C90BE4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A26 *((volatile unsigned int*)(0x42C90BE8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A27 *((volatile unsigned int*)(0x42C90BECUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A28 *((volatile unsigned int*)(0x42C90BF0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A29 *((volatile unsigned int*)(0x42C90BF4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A30 *((volatile unsigned int*)(0x42C90BF8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A31 *((volatile unsigned int*)(0x42C90BFCUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A32 *((volatile unsigned int*)(0x42C90C00UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A33 *((volatile unsigned int*)(0x42C90C04UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A34 *((volatile unsigned int*)(0x42C90C08UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A35 *((volatile unsigned int*)(0x42C90C0CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A36 *((volatile unsigned int*)(0x42C90C10UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A37 *((volatile unsigned int*)(0x42C90C14UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A38 *((volatile unsigned int*)(0x42C90C18UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A39 *((volatile unsigned int*)(0x42C90C1CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A40 *((volatile unsigned int*)(0x42C90C20UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A41 *((volatile unsigned int*)(0x42C90C24UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A42 *((volatile unsigned int*)(0x42C90C28UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A43 *((volatile unsigned int*)(0x42C90C2CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A44 *((volatile unsigned int*)(0x42C90C30UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A45 *((volatile unsigned int*)(0x42C90C34UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A46 *((volatile unsigned int*)(0x42C90C38UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A47 *((volatile unsigned int*)(0x42C90C3CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC0 *((volatile unsigned int*)(0x42C90C60UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC1 *((volatile unsigned int*)(0x42C90C64UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC2 *((volatile unsigned int*)(0x42C90C68UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC3 *((volatile unsigned int*)(0x42C90C6CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC4 *((volatile unsigned int*)(0x42C90C70UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC5 *((volatile unsigned int*)(0x42C90C74UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_SA *((volatile unsigned int*)(0x42C90C78UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_AE *((volatile unsigned int*)(0x42C90C7CUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A0 *((volatile unsigned int*)(0x42C90C80UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A1 *((volatile unsigned int*)(0x42C90C84UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A2 *((volatile unsigned int*)(0x42C90C88UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A3 *((volatile unsigned int*)(0x42C90C8CUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A4 *((volatile unsigned int*)(0x42C90C90UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A5 *((volatile unsigned int*)(0x42C90C94UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A6 *((volatile unsigned int*)(0x42C90C98UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A7 *((volatile unsigned int*)(0x42C90C9CUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A8 *((volatile unsigned int*)(0x42C90CA0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A9 *((volatile unsigned int*)(0x42C90CA4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A10 *((volatile unsigned int*)(0x42C90CA8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A11 *((volatile unsigned int*)(0x42C90CACUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A12 *((volatile unsigned int*)(0x42C90CB0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A13 *((volatile unsigned int*)(0x42C90CB4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A14 *((volatile unsigned int*)(0x42C90CB8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A15 *((volatile unsigned int*)(0x42C90CBCUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A16 *((volatile unsigned int*)(0x42C90CC0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A17 *((volatile unsigned int*)(0x42C90CC4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A18 *((volatile unsigned int*)(0x42C90CC8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A19 *((volatile unsigned int*)(0x42C90CCCUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A20 *((volatile unsigned int*)(0x42C90CD0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A21 *((volatile unsigned int*)(0x42C90CD4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A22 *((volatile unsigned int*)(0x42C90CD8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A23 *((volatile unsigned int*)(0x42C90CDCUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A24 *((volatile unsigned int*)(0x42C90CE0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A25 *((volatile unsigned int*)(0x42C90CE4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A26 *((volatile unsigned int*)(0x42C90CE8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A27 *((volatile unsigned int*)(0x42C90CECUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A28 *((volatile unsigned int*)(0x42C90CF0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A29 *((volatile unsigned int*)(0x42C90CF4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A30 *((volatile unsigned int*)(0x42C90CF8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A31 *((volatile unsigned int*)(0x42C90CFCUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A32 *((volatile unsigned int*)(0x42C90D00UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A33 *((volatile unsigned int*)(0x42C90D04UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A34 *((volatile unsigned int*)(0x42C90D08UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A35 *((volatile unsigned int*)(0x42C90D0CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A36 *((volatile unsigned int*)(0x42C90D10UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A37 *((volatile unsigned int*)(0x42C90D14UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A38 *((volatile unsigned int*)(0x42C90D18UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A39 *((volatile unsigned int*)(0x42C90D1CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A40 *((volatile unsigned int*)(0x42C90D20UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A41 *((volatile unsigned int*)(0x42C90D24UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A42 *((volatile unsigned int*)(0x42C90D28UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A43 *((volatile unsigned int*)(0x42C90D2CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A44 *((volatile unsigned int*)(0x42C90D30UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A45 *((volatile unsigned int*)(0x42C90D34UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A46 *((volatile unsigned int*)(0x42C90D38UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A47 *((volatile unsigned int*)(0x42C90D3CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC0 *((volatile unsigned int*)(0x42C90D60UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC1 *((volatile unsigned int*)(0x42C90D64UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC2 *((volatile unsigned int*)(0x42C90D68UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC3 *((volatile unsigned int*)(0x42C90D6CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC4 *((volatile unsigned int*)(0x42C90D70UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC5 *((volatile unsigned int*)(0x42C90D74UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_SA *((volatile unsigned int*)(0x42C90D78UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_AE *((volatile unsigned int*)(0x42C90D7CUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A0 *((volatile unsigned int*)(0x42C90D80UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A1 *((volatile unsigned int*)(0x42C90D84UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A2 *((volatile unsigned int*)(0x42C90D88UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A3 *((volatile unsigned int*)(0x42C90D8CUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A4 *((volatile unsigned int*)(0x42C90D90UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A5 *((volatile unsigned int*)(0x42C90D94UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A6 *((volatile unsigned int*)(0x42C90D98UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A7 *((volatile unsigned int*)(0x42C90D9CUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A8 *((volatile unsigned int*)(0x42C90DA0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A9 *((volatile unsigned int*)(0x42C90DA4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A10 *((volatile unsigned int*)(0x42C90DA8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A11 *((volatile unsigned int*)(0x42C90DACUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A12 *((volatile unsigned int*)(0x42C90DB0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A13 *((volatile unsigned int*)(0x42C90DB4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A14 *((volatile unsigned int*)(0x42C90DB8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A15 *((volatile unsigned int*)(0x42C90DBCUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A16 *((volatile unsigned int*)(0x42C90DC0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A17 *((volatile unsigned int*)(0x42C90DC4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A18 *((volatile unsigned int*)(0x42C90DC8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A19 *((volatile unsigned int*)(0x42C90DCCUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A20 *((volatile unsigned int*)(0x42C90DD0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A21 *((volatile unsigned int*)(0x42C90DD4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A22 *((volatile unsigned int*)(0x42C90DD8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A23 *((volatile unsigned int*)(0x42C90DDCUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A24 *((volatile unsigned int*)(0x42C90DE0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A25 *((volatile unsigned int*)(0x42C90DE4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A26 *((volatile unsigned int*)(0x42C90DE8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A27 *((volatile unsigned int*)(0x42C90DECUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A28 *((volatile unsigned int*)(0x42C90DF0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A29 *((volatile unsigned int*)(0x42C90DF4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A30 *((volatile unsigned int*)(0x42C90DF8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A31 *((volatile unsigned int*)(0x42C90DFCUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A32 *((volatile unsigned int*)(0x42C90E00UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A33 *((volatile unsigned int*)(0x42C90E04UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A34 *((volatile unsigned int*)(0x42C90E08UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A35 *((volatile unsigned int*)(0x42C90E0CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A36 *((volatile unsigned int*)(0x42C90E10UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A37 *((volatile unsigned int*)(0x42C90E14UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A38 *((volatile unsigned int*)(0x42C90E18UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A39 *((volatile unsigned int*)(0x42C90E1CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A40 *((volatile unsigned int*)(0x42C90E20UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A41 *((volatile unsigned int*)(0x42C90E24UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A42 *((volatile unsigned int*)(0x42C90E28UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A43 *((volatile unsigned int*)(0x42C90E2CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A44 *((volatile unsigned int*)(0x42C90E30UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A45 *((volatile unsigned int*)(0x42C90E34UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A46 *((volatile unsigned int*)(0x42C90E38UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A47 *((volatile unsigned int*)(0x42C90E3CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC0 *((volatile unsigned int*)(0x42C90E60UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC1 *((volatile unsigned int*)(0x42C90E64UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC2 *((volatile unsigned int*)(0x42C90E68UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC3 *((volatile unsigned int*)(0x42C90E6CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC4 *((volatile unsigned int*)(0x42C90E70UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC5 *((volatile unsigned int*)(0x42C90E74UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_SA *((volatile unsigned int*)(0x42C90E78UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_AE *((volatile unsigned int*)(0x42C90E7CUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A0 *((volatile unsigned int*)(0x42C90E80UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A1 *((volatile unsigned int*)(0x42C90E84UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A2 *((volatile unsigned int*)(0x42C90E88UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A3 *((volatile unsigned int*)(0x42C90E8CUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A4 *((volatile unsigned int*)(0x42C90E90UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A5 *((volatile unsigned int*)(0x42C90E94UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A6 *((volatile unsigned int*)(0x42C90E98UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A7 *((volatile unsigned int*)(0x42C90E9CUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A8 *((volatile unsigned int*)(0x42C90EA0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A9 *((volatile unsigned int*)(0x42C90EA4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A10 *((volatile unsigned int*)(0x42C90EA8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A11 *((volatile unsigned int*)(0x42C90EACUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A12 *((volatile unsigned int*)(0x42C90EB0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A13 *((volatile unsigned int*)(0x42C90EB4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A14 *((volatile unsigned int*)(0x42C90EB8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A15 *((volatile unsigned int*)(0x42C90EBCUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A16 *((volatile unsigned int*)(0x42C90EC0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A17 *((volatile unsigned int*)(0x42C90EC4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A18 *((volatile unsigned int*)(0x42C90EC8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A19 *((volatile unsigned int*)(0x42C90ECCUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A20 *((volatile unsigned int*)(0x42C90ED0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A21 *((volatile unsigned int*)(0x42C90ED4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A22 *((volatile unsigned int*)(0x42C90ED8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A23 *((volatile unsigned int*)(0x42C90EDCUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A24 *((volatile unsigned int*)(0x42C90EE0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A25 *((volatile unsigned int*)(0x42C90EE4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A26 *((volatile unsigned int*)(0x42C90EE8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A27 *((volatile unsigned int*)(0x42C90EECUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A28 *((volatile unsigned int*)(0x42C90EF0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A29 *((volatile unsigned int*)(0x42C90EF4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A30 *((volatile unsigned int*)(0x42C90EF8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A31 *((volatile unsigned int*)(0x42C90EFCUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A32 *((volatile unsigned int*)(0x42C90F00UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A33 *((volatile unsigned int*)(0x42C90F04UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A34 *((volatile unsigned int*)(0x42C90F08UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A35 *((volatile unsigned int*)(0x42C90F0CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A36 *((volatile unsigned int*)(0x42C90F10UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A37 *((volatile unsigned int*)(0x42C90F14UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A38 *((volatile unsigned int*)(0x42C90F18UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A39 *((volatile unsigned int*)(0x42C90F1CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A40 *((volatile unsigned int*)(0x42C90F20UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A41 *((volatile unsigned int*)(0x42C90F24UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A42 *((volatile unsigned int*)(0x42C90F28UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A43 *((volatile unsigned int*)(0x42C90F2CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A44 *((volatile unsigned int*)(0x42C90F30UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A45 *((volatile unsigned int*)(0x42C90F34UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A46 *((volatile unsigned int*)(0x42C90F38UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A47 *((volatile unsigned int*)(0x42C90F3CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC0 *((volatile unsigned int*)(0x42C90F60UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC1 *((volatile unsigned int*)(0x42C90F64UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC2 *((volatile unsigned int*)(0x42C90F68UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC3 *((volatile unsigned int*)(0x42C90F6CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC4 *((volatile unsigned int*)(0x42C90F70UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC5 *((volatile unsigned int*)(0x42C90F74UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_SA *((volatile unsigned int*)(0x42C90F78UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_AE *((volatile unsigned int*)(0x42C90F7CUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A0 *((volatile unsigned int*)(0x42C90F80UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A1 *((volatile unsigned int*)(0x42C90F84UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A2 *((volatile unsigned int*)(0x42C90F88UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A3 *((volatile unsigned int*)(0x42C90F8CUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A4 *((volatile unsigned int*)(0x42C90F90UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A5 *((volatile unsigned int*)(0x42C90F94UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A6 *((volatile unsigned int*)(0x42C90F98UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A7 *((volatile unsigned int*)(0x42C90F9CUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A8 *((volatile unsigned int*)(0x42C90FA0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A9 *((volatile unsigned int*)(0x42C90FA4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A10 *((volatile unsigned int*)(0x42C90FA8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A11 *((volatile unsigned int*)(0x42C90FACUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A12 *((volatile unsigned int*)(0x42C90FB0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A13 *((volatile unsigned int*)(0x42C90FB4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A14 *((volatile unsigned int*)(0x42C90FB8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A15 *((volatile unsigned int*)(0x42C90FBCUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A16 *((volatile unsigned int*)(0x42C90FC0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A17 *((volatile unsigned int*)(0x42C90FC4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A18 *((volatile unsigned int*)(0x42C90FC8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A19 *((volatile unsigned int*)(0x42C90FCCUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A20 *((volatile unsigned int*)(0x42C90FD0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A21 *((volatile unsigned int*)(0x42C90FD4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A22 *((volatile unsigned int*)(0x42C90FD8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A23 *((volatile unsigned int*)(0x42C90FDCUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A24 *((volatile unsigned int*)(0x42C90FE0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A25 *((volatile unsigned int*)(0x42C90FE4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A26 *((volatile unsigned int*)(0x42C90FE8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A27 *((volatile unsigned int*)(0x42C90FECUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A28 *((volatile unsigned int*)(0x42C90FF0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A29 *((volatile unsigned int*)(0x42C90FF4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A30 *((volatile unsigned int*)(0x42C90FF8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A31 *((volatile unsigned int*)(0x42C90FFCUL)) +#define bFM3_ETHERNET_MAC0_BMR_SWR *((volatile unsigned int*)(0x42CA0000UL)) +#define bFM3_ETHERNET_MAC0_BMR_DA *((volatile unsigned int*)(0x42CA0004UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL0 *((volatile unsigned int*)(0x42CA0008UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL1 *((volatile unsigned int*)(0x42CA000CUL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL2 *((volatile unsigned int*)(0x42CA0010UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL3 *((volatile unsigned int*)(0x42CA0014UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL4 *((volatile unsigned int*)(0x42CA0018UL)) +#define bFM3_ETHERNET_MAC0_BMR_ATDS *((volatile unsigned int*)(0x42CA001CUL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL0 *((volatile unsigned int*)(0x42CA0020UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL1 *((volatile unsigned int*)(0x42CA0024UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL2 *((volatile unsigned int*)(0x42CA0028UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL3 *((volatile unsigned int*)(0x42CA002CUL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL4 *((volatile unsigned int*)(0x42CA0030UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL5 *((volatile unsigned int*)(0x42CA0034UL)) +#define bFM3_ETHERNET_MAC0_BMR_PR0 *((volatile unsigned int*)(0x42CA0038UL)) +#define bFM3_ETHERNET_MAC0_BMR_PR1 *((volatile unsigned int*)(0x42CA003CUL)) +#define bFM3_ETHERNET_MAC0_BMR_FB *((volatile unsigned int*)(0x42CA0040UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL0 *((volatile unsigned int*)(0x42CA0044UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL1 *((volatile unsigned int*)(0x42CA0048UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL2 *((volatile unsigned int*)(0x42CA004CUL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL3 *((volatile unsigned int*)(0x42CA0050UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL4 *((volatile unsigned int*)(0x42CA0054UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL5 *((volatile unsigned int*)(0x42CA0058UL)) +#define bFM3_ETHERNET_MAC0_BMR_USP *((volatile unsigned int*)(0x42CA005CUL)) +#define bFM3_ETHERNET_MAC0_BMR_8XPBL *((volatile unsigned int*)(0x42CA0060UL)) +#define bFM3_ETHERNET_MAC0_BMR_AAL *((volatile unsigned int*)(0x42CA0064UL)) +#define bFM3_ETHERNET_MAC0_BMR_MB *((volatile unsigned int*)(0x42CA0068UL)) +#define bFM3_ETHERNET_MAC0_BMR_TXPR *((volatile unsigned int*)(0x42CA006CUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD0 *((volatile unsigned int*)(0x42CA0080UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD1 *((volatile unsigned int*)(0x42CA0084UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD2 *((volatile unsigned int*)(0x42CA0088UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD3 *((volatile unsigned int*)(0x42CA008CUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD4 *((volatile unsigned int*)(0x42CA0090UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD5 *((volatile unsigned int*)(0x42CA0094UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD6 *((volatile unsigned int*)(0x42CA0098UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD7 *((volatile unsigned int*)(0x42CA009CUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD8 *((volatile unsigned int*)(0x42CA00A0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD9 *((volatile unsigned int*)(0x42CA00A4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD10 *((volatile unsigned int*)(0x42CA00A8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD11 *((volatile unsigned int*)(0x42CA00ACUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD12 *((volatile unsigned int*)(0x42CA00B0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD13 *((volatile unsigned int*)(0x42CA00B4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD14 *((volatile unsigned int*)(0x42CA00B8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD15 *((volatile unsigned int*)(0x42CA00BCUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD16 *((volatile unsigned int*)(0x42CA00C0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD17 *((volatile unsigned int*)(0x42CA00C4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD18 *((volatile unsigned int*)(0x42CA00C8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD19 *((volatile unsigned int*)(0x42CA00CCUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD20 *((volatile unsigned int*)(0x42CA00D0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD21 *((volatile unsigned int*)(0x42CA00D4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD22 *((volatile unsigned int*)(0x42CA00D8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD23 *((volatile unsigned int*)(0x42CA00DCUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD24 *((volatile unsigned int*)(0x42CA00E0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD25 *((volatile unsigned int*)(0x42CA00E4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD26 *((volatile unsigned int*)(0x42CA00E8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD27 *((volatile unsigned int*)(0x42CA00ECUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD28 *((volatile unsigned int*)(0x42CA00F0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD29 *((volatile unsigned int*)(0x42CA00F4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD30 *((volatile unsigned int*)(0x42CA00F8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD31 *((volatile unsigned int*)(0x42CA00FCUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD0 *((volatile unsigned int*)(0x42CA0100UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD1 *((volatile unsigned int*)(0x42CA0104UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD2 *((volatile unsigned int*)(0x42CA0108UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD3 *((volatile unsigned int*)(0x42CA010CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD4 *((volatile unsigned int*)(0x42CA0110UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD5 *((volatile unsigned int*)(0x42CA0114UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD6 *((volatile unsigned int*)(0x42CA0118UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD7 *((volatile unsigned int*)(0x42CA011CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD8 *((volatile unsigned int*)(0x42CA0120UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD9 *((volatile unsigned int*)(0x42CA0124UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD10 *((volatile unsigned int*)(0x42CA0128UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD11 *((volatile unsigned int*)(0x42CA012CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD12 *((volatile unsigned int*)(0x42CA0130UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD13 *((volatile unsigned int*)(0x42CA0134UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD14 *((volatile unsigned int*)(0x42CA0138UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD15 *((volatile unsigned int*)(0x42CA013CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD16 *((volatile unsigned int*)(0x42CA0140UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD17 *((volatile unsigned int*)(0x42CA0144UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD18 *((volatile unsigned int*)(0x42CA0148UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD19 *((volatile unsigned int*)(0x42CA014CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD20 *((volatile unsigned int*)(0x42CA0150UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD21 *((volatile unsigned int*)(0x42CA0154UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD22 *((volatile unsigned int*)(0x42CA0158UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD23 *((volatile unsigned int*)(0x42CA015CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD24 *((volatile unsigned int*)(0x42CA0160UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD25 *((volatile unsigned int*)(0x42CA0164UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD26 *((volatile unsigned int*)(0x42CA0168UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD27 *((volatile unsigned int*)(0x42CA016CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD28 *((volatile unsigned int*)(0x42CA0170UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD29 *((volatile unsigned int*)(0x42CA0174UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD30 *((volatile unsigned int*)(0x42CA0178UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD31 *((volatile unsigned int*)(0x42CA017CUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL2 *((volatile unsigned int*)(0x42CA0188UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL3 *((volatile unsigned int*)(0x42CA018CUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL4 *((volatile unsigned int*)(0x42CA0190UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL5 *((volatile unsigned int*)(0x42CA0194UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL6 *((volatile unsigned int*)(0x42CA0198UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL7 *((volatile unsigned int*)(0x42CA019CUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL8 *((volatile unsigned int*)(0x42CA01A0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL9 *((volatile unsigned int*)(0x42CA01A4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL10 *((volatile unsigned int*)(0x42CA01A8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL11 *((volatile unsigned int*)(0x42CA01ACUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL12 *((volatile unsigned int*)(0x42CA01B0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL13 *((volatile unsigned int*)(0x42CA01B4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL14 *((volatile unsigned int*)(0x42CA01B8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL15 *((volatile unsigned int*)(0x42CA01BCUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL16 *((volatile unsigned int*)(0x42CA01C0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL17 *((volatile unsigned int*)(0x42CA01C4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL18 *((volatile unsigned int*)(0x42CA01C8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL19 *((volatile unsigned int*)(0x42CA01CCUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL20 *((volatile unsigned int*)(0x42CA01D0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL21 *((volatile unsigned int*)(0x42CA01D4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL22 *((volatile unsigned int*)(0x42CA01D8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL23 *((volatile unsigned int*)(0x42CA01DCUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL24 *((volatile unsigned int*)(0x42CA01E0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL25 *((volatile unsigned int*)(0x42CA01E4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL26 *((volatile unsigned int*)(0x42CA01E8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL27 *((volatile unsigned int*)(0x42CA01ECUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL28 *((volatile unsigned int*)(0x42CA01F0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL29 *((volatile unsigned int*)(0x42CA01F4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL30 *((volatile unsigned int*)(0x42CA01F8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL31 *((volatile unsigned int*)(0x42CA01FCUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL2 *((volatile unsigned int*)(0x42CA0208UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL3 *((volatile unsigned int*)(0x42CA020CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL4 *((volatile unsigned int*)(0x42CA0210UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL5 *((volatile unsigned int*)(0x42CA0214UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL6 *((volatile unsigned int*)(0x42CA0218UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL7 *((volatile unsigned int*)(0x42CA021CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL8 *((volatile unsigned int*)(0x42CA0220UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL9 *((volatile unsigned int*)(0x42CA0224UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL10 *((volatile unsigned int*)(0x42CA0228UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL11 *((volatile unsigned int*)(0x42CA022CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL12 *((volatile unsigned int*)(0x42CA0230UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL13 *((volatile unsigned int*)(0x42CA0234UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL14 *((volatile unsigned int*)(0x42CA0238UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL15 *((volatile unsigned int*)(0x42CA023CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL16 *((volatile unsigned int*)(0x42CA0240UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL17 *((volatile unsigned int*)(0x42CA0244UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL18 *((volatile unsigned int*)(0x42CA0248UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL19 *((volatile unsigned int*)(0x42CA024CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL20 *((volatile unsigned int*)(0x42CA0250UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL21 *((volatile unsigned int*)(0x42CA0254UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL22 *((volatile unsigned int*)(0x42CA0258UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL23 *((volatile unsigned int*)(0x42CA025CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL24 *((volatile unsigned int*)(0x42CA0260UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL25 *((volatile unsigned int*)(0x42CA0264UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL26 *((volatile unsigned int*)(0x42CA0268UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL27 *((volatile unsigned int*)(0x42CA026CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL28 *((volatile unsigned int*)(0x42CA0270UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL29 *((volatile unsigned int*)(0x42CA0274UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL30 *((volatile unsigned int*)(0x42CA0278UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL31 *((volatile unsigned int*)(0x42CA027CUL)) +#define bFM3_ETHERNET_MAC0_SR_TI *((volatile unsigned int*)(0x42CA0280UL)) +#define bFM3_ETHERNET_MAC0_SR_TPS *((volatile unsigned int*)(0x42CA0284UL)) +#define bFM3_ETHERNET_MAC0_SR_TU *((volatile unsigned int*)(0x42CA0288UL)) +#define bFM3_ETHERNET_MAC0_SR_TJT *((volatile unsigned int*)(0x42CA028CUL)) +#define bFM3_ETHERNET_MAC0_SR_OVF *((volatile unsigned int*)(0x42CA0290UL)) +#define bFM3_ETHERNET_MAC0_SR_UNF *((volatile unsigned int*)(0x42CA0294UL)) +#define bFM3_ETHERNET_MAC0_SR_RI *((volatile unsigned int*)(0x42CA0298UL)) +#define bFM3_ETHERNET_MAC0_SR_RU *((volatile unsigned int*)(0x42CA029CUL)) +#define bFM3_ETHERNET_MAC0_SR_RPS *((volatile unsigned int*)(0x42CA02A0UL)) +#define bFM3_ETHERNET_MAC0_SR_RWT *((volatile unsigned int*)(0x42CA02A4UL)) +#define bFM3_ETHERNET_MAC0_SR_ETI *((volatile unsigned int*)(0x42CA02A8UL)) +#define bFM3_ETHERNET_MAC0_SR_FBI *((volatile unsigned int*)(0x42CA02B4UL)) +#define bFM3_ETHERNET_MAC0_SR_ERI *((volatile unsigned int*)(0x42CA02B8UL)) +#define bFM3_ETHERNET_MAC0_SR_AIS *((volatile unsigned int*)(0x42CA02BCUL)) +#define bFM3_ETHERNET_MAC0_SR_NIS *((volatile unsigned int*)(0x42CA02C0UL)) +#define bFM3_ETHERNET_MAC0_SR_RS0 *((volatile unsigned int*)(0x42CA02C4UL)) +#define bFM3_ETHERNET_MAC0_SR_RS1 *((volatile unsigned int*)(0x42CA02C8UL)) +#define bFM3_ETHERNET_MAC0_SR_RS2 *((volatile unsigned int*)(0x42CA02CCUL)) +#define bFM3_ETHERNET_MAC0_SR_TS0 *((volatile unsigned int*)(0x42CA02D0UL)) +#define bFM3_ETHERNET_MAC0_SR_TS1 *((volatile unsigned int*)(0x42CA02D4UL)) +#define bFM3_ETHERNET_MAC0_SR_TS2 *((volatile unsigned int*)(0x42CA02D8UL)) +#define bFM3_ETHERNET_MAC0_SR_EB0 *((volatile unsigned int*)(0x42CA02DCUL)) +#define bFM3_ETHERNET_MAC0_SR_EB1 *((volatile unsigned int*)(0x42CA02E0UL)) +#define bFM3_ETHERNET_MAC0_SR_EB2 *((volatile unsigned int*)(0x42CA02E4UL)) +#define bFM3_ETHERNET_MAC0_SR_GLI *((volatile unsigned int*)(0x42CA02E8UL)) +#define bFM3_ETHERNET_MAC0_SR_GMI *((volatile unsigned int*)(0x42CA02ECUL)) +#define bFM3_ETHERNET_MAC0_SR_GPI *((volatile unsigned int*)(0x42CA02F0UL)) +#define bFM3_ETHERNET_MAC0_SR_TTI *((volatile unsigned int*)(0x42CA02F4UL)) +#define bFM3_ETHERNET_MAC0_SR_GLPII *((volatile unsigned int*)(0x42CA02F8UL)) +#define bFM3_ETHERNET_MAC0_OMR_SR *((volatile unsigned int*)(0x42CA0304UL)) +#define bFM3_ETHERNET_MAC0_OMR_OSF *((volatile unsigned int*)(0x42CA0308UL)) +#define bFM3_ETHERNET_MAC0_OMR_RTC0 *((volatile unsigned int*)(0x42CA030CUL)) +#define bFM3_ETHERNET_MAC0_OMR_RTC1 *((volatile unsigned int*)(0x42CA0310UL)) +#define bFM3_ETHERNET_MAC0_OMR_FUF *((volatile unsigned int*)(0x42CA0318UL)) +#define bFM3_ETHERNET_MAC0_OMR_FEF *((volatile unsigned int*)(0x42CA031CUL)) +#define bFM3_ETHERNET_MAC0_OMR_ST *((volatile unsigned int*)(0x42CA0334UL)) +#define bFM3_ETHERNET_MAC0_OMR_TTC0 *((volatile unsigned int*)(0x42CA0338UL)) +#define bFM3_ETHERNET_MAC0_OMR_TTC1 *((volatile unsigned int*)(0x42CA033CUL)) +#define bFM3_ETHERNET_MAC0_OMR_TTC2 *((volatile unsigned int*)(0x42CA0340UL)) +#define bFM3_ETHERNET_MAC0_OMR_FTF *((volatile unsigned int*)(0x42CA0350UL)) +#define bFM3_ETHERNET_MAC0_OMR_TSF *((volatile unsigned int*)(0x42CA0354UL)) +#define bFM3_ETHERNET_MAC0_OMR_DFF *((volatile unsigned int*)(0x42CA0360UL)) +#define bFM3_ETHERNET_MAC0_OMR_RSF *((volatile unsigned int*)(0x42CA0364UL)) +#define bFM3_ETHERNET_MAC0_OMR_DT *((volatile unsigned int*)(0x42CA0368UL)) +#define bFM3_ETHERNET_MAC0_IER_TIE *((volatile unsigned int*)(0x42CA0380UL)) +#define bFM3_ETHERNET_MAC0_IER_TSE *((volatile unsigned int*)(0x42CA0384UL)) +#define bFM3_ETHERNET_MAC0_IER_TUE *((volatile unsigned int*)(0x42CA0388UL)) +#define bFM3_ETHERNET_MAC0_IER_TJE *((volatile unsigned int*)(0x42CA038CUL)) +#define bFM3_ETHERNET_MAC0_IER_OVE *((volatile unsigned int*)(0x42CA0390UL)) +#define bFM3_ETHERNET_MAC0_IER_UNE *((volatile unsigned int*)(0x42CA0394UL)) +#define bFM3_ETHERNET_MAC0_IER_RIE *((volatile unsigned int*)(0x42CA0398UL)) +#define bFM3_ETHERNET_MAC0_IER_RUE *((volatile unsigned int*)(0x42CA039CUL)) +#define bFM3_ETHERNET_MAC0_IER_RSE *((volatile unsigned int*)(0x42CA03A0UL)) +#define bFM3_ETHERNET_MAC0_IER_RWE *((volatile unsigned int*)(0x42CA03A4UL)) +#define bFM3_ETHERNET_MAC0_IER_ETE *((volatile unsigned int*)(0x42CA03A8UL)) +#define bFM3_ETHERNET_MAC0_IER_FBE *((volatile unsigned int*)(0x42CA03B4UL)) +#define bFM3_ETHERNET_MAC0_IER_ERE *((volatile unsigned int*)(0x42CA03B8UL)) +#define bFM3_ETHERNET_MAC0_IER_AIE *((volatile unsigned int*)(0x42CA03BCUL)) +#define bFM3_ETHERNET_MAC0_IER_NIE *((volatile unsigned int*)(0x42CA03C0UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42CA0400UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42CA0404UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42CA0408UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42CA040CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42CA0410UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42CA0414UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42CA0418UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42CA041CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42CA0420UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42CA0424UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42CA0428UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42CA042CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42CA0430UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42CA0434UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42CA0438UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42CA043CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFH *((volatile unsigned int*)(0x42CA0440UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42CA0444UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42CA0448UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42CA044CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42CA0450UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42CA0454UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42CA0458UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42CA045CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42CA0460UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42CA0464UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42CA0468UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42CA046CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFF *((volatile unsigned int*)(0x42CA0470UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT0 *((volatile unsigned int*)(0x42CA0480UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT1 *((volatile unsigned int*)(0x42CA0484UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT2 *((volatile unsigned int*)(0x42CA0488UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT3 *((volatile unsigned int*)(0x42CA048CUL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT4 *((volatile unsigned int*)(0x42CA0490UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT5 *((volatile unsigned int*)(0x42CA0494UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT6 *((volatile unsigned int*)(0x42CA0498UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT7 *((volatile unsigned int*)(0x42CA049CUL)) +#define bFM3_ETHERNET_MAC0_AHBSR_AHBS *((volatile unsigned int*)(0x42CA0580UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42CA0900UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42CA0904UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42CA0908UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42CA090CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42CA0910UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42CA0914UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42CA0918UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42CA091CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42CA0920UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42CA0924UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42CA0928UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42CA092CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42CA0930UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42CA0934UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42CA0938UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42CA093CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42CA0940UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42CA0944UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42CA0948UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42CA094CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42CA0950UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42CA0954UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42CA0958UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42CA095CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42CA0960UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42CA0964UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42CA0968UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42CA096CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42CA0970UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42CA0974UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42CA0978UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42CA097CUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42CA0980UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42CA0984UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42CA0988UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42CA098CUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42CA0990UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42CA0994UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42CA0998UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42CA099CUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42CA09A0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42CA09A4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42CA09A8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42CA09ACUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42CA09B0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42CA09B4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42CA09B8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42CA09BCUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42CA09C0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42CA09C4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42CA09C8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42CA09CCUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42CA09D0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42CA09D4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42CA09D8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42CA09DCUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42CA09E0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42CA09E4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42CA09E8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42CA09ECUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42CA09F0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42CA09F4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42CA09F8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42CA09FCUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42CA0A00UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42CA0A04UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42CA0A08UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42CA0A0CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42CA0A10UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42CA0A14UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42CA0A18UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42CA0A1CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42CA0A20UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42CA0A24UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42CA0A28UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42CA0A2CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42CA0A30UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42CA0A34UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42CA0A38UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42CA0A3CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42CA0A40UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42CA0A44UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42CA0A48UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42CA0A4CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42CA0A50UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42CA0A54UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42CA0A58UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42CA0A5CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42CA0A60UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42CA0A64UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42CA0A68UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42CA0A6CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42CA0A70UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42CA0A74UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42CA0A78UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42CA0A7CUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42CA0A80UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42CA0A84UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42CA0A88UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42CA0A8CUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42CA0A90UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42CA0A94UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42CA0A98UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42CA0A9CUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42CA0AA0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42CA0AA4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42CA0AA8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42CA0AACUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42CA0AB0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42CA0AB4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42CA0AB8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42CA0ABCUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42CA0AC0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42CA0AC4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42CA0AC8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42CA0ACCUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42CA0AD0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42CA0AD4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42CA0AD8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42CA0ADCUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42CA0AE0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42CA0AE4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42CA0AE8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42CA0AECUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42CA0AF0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42CA0AF4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42CA0AF8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42CA0AFCUL)) + +/* ETHERNET-MAC-CONTROL registers */ +#define bFM3_ETHERNET_CONTROL_ETH_MODE_IFMODE *((volatile unsigned int*)(0x42CC0000UL)) +#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST0 *((volatile unsigned int*)(0x42CC0020UL)) +#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST1 *((volatile unsigned int*)(0x42CC0024UL)) +#define bFM3_ETHERNET_CONTROL_ETH_MODE_PPSSEL *((volatile unsigned int*)(0x42CC0070UL)) +#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN0 *((volatile unsigned int*)(0x42CC0100UL)) +#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN1 *((volatile unsigned int*)(0x42CC0104UL)) + +/* ETHERNET-MAC1 registers*/ +#define bFM3_ETHERNET_MAC1_MCR_RE *((volatile unsigned int*)(0x42CE0008UL)) +#define bFM3_ETHERNET_MAC1_MCR_TE *((volatile unsigned int*)(0x42CE000CUL)) +#define bFM3_ETHERNET_MAC1_MCR_DC *((volatile unsigned int*)(0x42CE0010UL)) +#define bFM3_ETHERNET_MAC1_MCR_BL0 *((volatile unsigned int*)(0x42CE0014UL)) +#define bFM3_ETHERNET_MAC1_MCR_BL1 *((volatile unsigned int*)(0x42CE0018UL)) +#define bFM3_ETHERNET_MAC1_MCR_ACS *((volatile unsigned int*)(0x42CE001CUL)) +#define bFM3_ETHERNET_MAC1_MCR_LUD *((volatile unsigned int*)(0x42CE0020UL)) +#define bFM3_ETHERNET_MAC1_MCR_DR *((volatile unsigned int*)(0x42CE0024UL)) +#define bFM3_ETHERNET_MAC1_MCR_IPC *((volatile unsigned int*)(0x42CE0028UL)) +#define bFM3_ETHERNET_MAC1_MCR_DM *((volatile unsigned int*)(0x42CE002CUL)) +#define bFM3_ETHERNET_MAC1_MCR_LM *((volatile unsigned int*)(0x42CE0030UL)) +#define bFM3_ETHERNET_MAC1_MCR_DO *((volatile unsigned int*)(0x42CE0034UL)) +#define bFM3_ETHERNET_MAC1_MCR_FES *((volatile unsigned int*)(0x42CE0038UL)) +#define bFM3_ETHERNET_MAC1_MCR_PS *((volatile unsigned int*)(0x42CE003CUL)) +#define bFM3_ETHERNET_MAC1_MCR_DCRS *((volatile unsigned int*)(0x42CE0040UL)) +#define bFM3_ETHERNET_MAC1_MCR_IFG0 *((volatile unsigned int*)(0x42CE0044UL)) +#define bFM3_ETHERNET_MAC1_MCR_IFG1 *((volatile unsigned int*)(0x42CE0048UL)) +#define bFM3_ETHERNET_MAC1_MCR_IFG2 *((volatile unsigned int*)(0x42CE004CUL)) +#define bFM3_ETHERNET_MAC1_MCR_JE *((volatile unsigned int*)(0x42CE0050UL)) +#define bFM3_ETHERNET_MAC1_MCR_BE *((volatile unsigned int*)(0x42CE0054UL)) +#define bFM3_ETHERNET_MAC1_MCR_JD *((volatile unsigned int*)(0x42CE0058UL)) +#define bFM3_ETHERNET_MAC1_MCR_WD *((volatile unsigned int*)(0x42CE005CUL)) +#define bFM3_ETHERNET_MAC1_MCR_TC *((volatile unsigned int*)(0x42CE0060UL)) +#define bFM3_ETHERNET_MAC1_MCR_CST *((volatile unsigned int*)(0x42CE0064UL)) +#define bFM3_ETHERNET_MAC1_MFFR_PR *((volatile unsigned int*)(0x42CE0080UL)) +#define bFM3_ETHERNET_MAC1_MFFR_HUC *((volatile unsigned int*)(0x42CE0084UL)) +#define bFM3_ETHERNET_MAC1_MFFR_HMC *((volatile unsigned int*)(0x42CE0088UL)) +#define bFM3_ETHERNET_MAC1_MFFR_DAIF *((volatile unsigned int*)(0x42CE008CUL)) +#define bFM3_ETHERNET_MAC1_MFFR_PM *((volatile unsigned int*)(0x42CE0090UL)) +#define bFM3_ETHERNET_MAC1_MFFR_DB *((volatile unsigned int*)(0x42CE0094UL)) +#define bFM3_ETHERNET_MAC1_MFFR_PCF0 *((volatile unsigned int*)(0x42CE0098UL)) +#define bFM3_ETHERNET_MAC1_MFFR_PCF1 *((volatile unsigned int*)(0x42CE009CUL)) +#define bFM3_ETHERNET_MAC1_MFFR_SAIF *((volatile unsigned int*)(0x42CE00A0UL)) +#define bFM3_ETHERNET_MAC1_MFFR_SAF *((volatile unsigned int*)(0x42CE00A4UL)) +#define bFM3_ETHERNET_MAC1_MFFR_HPF *((volatile unsigned int*)(0x42CE00A8UL)) +#define bFM3_ETHERNET_MAC1_MFFR_RA *((volatile unsigned int*)(0x42CE00FCUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH0 *((volatile unsigned int*)(0x42CE0100UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH1 *((volatile unsigned int*)(0x42CE0104UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH2 *((volatile unsigned int*)(0x42CE0108UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH3 *((volatile unsigned int*)(0x42CE010CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH4 *((volatile unsigned int*)(0x42CE0110UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH5 *((volatile unsigned int*)(0x42CE0114UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH6 *((volatile unsigned int*)(0x42CE0118UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH7 *((volatile unsigned int*)(0x42CE011CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH8 *((volatile unsigned int*)(0x42CE0120UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH9 *((volatile unsigned int*)(0x42CE0124UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH10 *((volatile unsigned int*)(0x42CE0128UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH11 *((volatile unsigned int*)(0x42CE012CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH12 *((volatile unsigned int*)(0x42CE0130UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH13 *((volatile unsigned int*)(0x42CE0134UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH14 *((volatile unsigned int*)(0x42CE0138UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH15 *((volatile unsigned int*)(0x42CE013CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH16 *((volatile unsigned int*)(0x42CE0140UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH17 *((volatile unsigned int*)(0x42CE0144UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH18 *((volatile unsigned int*)(0x42CE0148UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH19 *((volatile unsigned int*)(0x42CE014CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH20 *((volatile unsigned int*)(0x42CE0150UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH21 *((volatile unsigned int*)(0x42CE0154UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH22 *((volatile unsigned int*)(0x42CE0158UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH23 *((volatile unsigned int*)(0x42CE015CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH24 *((volatile unsigned int*)(0x42CE0160UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH25 *((volatile unsigned int*)(0x42CE0164UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH26 *((volatile unsigned int*)(0x42CE0168UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH27 *((volatile unsigned int*)(0x42CE016CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH28 *((volatile unsigned int*)(0x42CE0170UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH29 *((volatile unsigned int*)(0x42CE0174UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH30 *((volatile unsigned int*)(0x42CE0178UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH31 *((volatile unsigned int*)(0x42CE017CUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL0 *((volatile unsigned int*)(0x42CE0180UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL1 *((volatile unsigned int*)(0x42CE0184UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL2 *((volatile unsigned int*)(0x42CE0188UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL3 *((volatile unsigned int*)(0x42CE018CUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL4 *((volatile unsigned int*)(0x42CE0190UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL5 *((volatile unsigned int*)(0x42CE0194UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL6 *((volatile unsigned int*)(0x42CE0198UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL7 *((volatile unsigned int*)(0x42CE019CUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL8 *((volatile unsigned int*)(0x42CE01A0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL9 *((volatile unsigned int*)(0x42CE01A4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL10 *((volatile unsigned int*)(0x42CE01A8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL11 *((volatile unsigned int*)(0x42CE01ACUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL12 *((volatile unsigned int*)(0x42CE01B0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL13 *((volatile unsigned int*)(0x42CE01B4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL14 *((volatile unsigned int*)(0x42CE01B8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL15 *((volatile unsigned int*)(0x42CE01BCUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL16 *((volatile unsigned int*)(0x42CE01C0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL17 *((volatile unsigned int*)(0x42CE01C4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL18 *((volatile unsigned int*)(0x42CE01C8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL19 *((volatile unsigned int*)(0x42CE01CCUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL20 *((volatile unsigned int*)(0x42CE01D0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL21 *((volatile unsigned int*)(0x42CE01D4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL22 *((volatile unsigned int*)(0x42CE01D8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL23 *((volatile unsigned int*)(0x42CE01DCUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL24 *((volatile unsigned int*)(0x42CE01E0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL25 *((volatile unsigned int*)(0x42CE01E4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL26 *((volatile unsigned int*)(0x42CE01E8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL27 *((volatile unsigned int*)(0x42CE01ECUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL28 *((volatile unsigned int*)(0x42CE01F0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL29 *((volatile unsigned int*)(0x42CE01F4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL30 *((volatile unsigned int*)(0x42CE01F8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL31 *((volatile unsigned int*)(0x42CE01FCUL)) +#define bFM3_ETHERNET_MAC1_GAR_GB *((volatile unsigned int*)(0x42CE0200UL)) +#define bFM3_ETHERNET_MAC1_GAR_GW *((volatile unsigned int*)(0x42CE0204UL)) +#define bFM3_ETHERNET_MAC1_GAR_CR0 *((volatile unsigned int*)(0x42CE0208UL)) +#define bFM3_ETHERNET_MAC1_GAR_CR1 *((volatile unsigned int*)(0x42CE020CUL)) +#define bFM3_ETHERNET_MAC1_GAR_CR2 *((volatile unsigned int*)(0x42CE0210UL)) +#define bFM3_ETHERNET_MAC1_GAR_CR3 *((volatile unsigned int*)(0x42CE0214UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR0 *((volatile unsigned int*)(0x42CE0218UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR1 *((volatile unsigned int*)(0x42CE021CUL)) +#define bFM3_ETHERNET_MAC1_GAR_GR2 *((volatile unsigned int*)(0x42CE0220UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR3 *((volatile unsigned int*)(0x42CE0224UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR4 *((volatile unsigned int*)(0x42CE0228UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA0 *((volatile unsigned int*)(0x42CE022CUL)) +#define bFM3_ETHERNET_MAC1_GAR_PA1 *((volatile unsigned int*)(0x42CE0230UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA2 *((volatile unsigned int*)(0x42CE0234UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA3 *((volatile unsigned int*)(0x42CE0238UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA4 *((volatile unsigned int*)(0x42CE023CUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD0 *((volatile unsigned int*)(0x42CE0280UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD1 *((volatile unsigned int*)(0x42CE0284UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD2 *((volatile unsigned int*)(0x42CE0288UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD3 *((volatile unsigned int*)(0x42CE028CUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD4 *((volatile unsigned int*)(0x42CE0290UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD5 *((volatile unsigned int*)(0x42CE0294UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD6 *((volatile unsigned int*)(0x42CE0298UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD7 *((volatile unsigned int*)(0x42CE029CUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD8 *((volatile unsigned int*)(0x42CE02A0UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD9 *((volatile unsigned int*)(0x42CE02A4UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD10 *((volatile unsigned int*)(0x42CE02A8UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD11 *((volatile unsigned int*)(0x42CE02ACUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD12 *((volatile unsigned int*)(0x42CE02B0UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD13 *((volatile unsigned int*)(0x42CE02B4UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD14 *((volatile unsigned int*)(0x42CE02B8UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD15 *((volatile unsigned int*)(0x42CE02BCUL)) +#define bFM3_ETHERNET_MAC1_FCR_FCB_BPA *((volatile unsigned int*)(0x42CE0300UL)) +#define bFM3_ETHERNET_MAC1_FCR_TFE *((volatile unsigned int*)(0x42CE0304UL)) +#define bFM3_ETHERNET_MAC1_FCR_RFE *((volatile unsigned int*)(0x42CE0308UL)) +#define bFM3_ETHERNET_MAC1_FCR_UP *((volatile unsigned int*)(0x42CE030CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PLT0 *((volatile unsigned int*)(0x42CE0310UL)) +#define bFM3_ETHERNET_MAC1_FCR_PLT1 *((volatile unsigned int*)(0x42CE0314UL)) +#define bFM3_ETHERNET_MAC1_FCR_DZPQ *((volatile unsigned int*)(0x42CE031CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT0 *((volatile unsigned int*)(0x42CE0340UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT1 *((volatile unsigned int*)(0x42CE0344UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT2 *((volatile unsigned int*)(0x42CE0348UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT3 *((volatile unsigned int*)(0x42CE034CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT4 *((volatile unsigned int*)(0x42CE0350UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT5 *((volatile unsigned int*)(0x42CE0354UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT6 *((volatile unsigned int*)(0x42CE0358UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT7 *((volatile unsigned int*)(0x42CE035CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT8 *((volatile unsigned int*)(0x42CE0360UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT9 *((volatile unsigned int*)(0x42CE0364UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT10 *((volatile unsigned int*)(0x42CE0368UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT11 *((volatile unsigned int*)(0x42CE036CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT12 *((volatile unsigned int*)(0x42CE0370UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT13 *((volatile unsigned int*)(0x42CE0374UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT14 *((volatile unsigned int*)(0x42CE0378UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT15 *((volatile unsigned int*)(0x42CE037CUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL0 *((volatile unsigned int*)(0x42CE0380UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL1 *((volatile unsigned int*)(0x42CE0384UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL2 *((volatile unsigned int*)(0x42CE0388UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL3 *((volatile unsigned int*)(0x42CE038CUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL4 *((volatile unsigned int*)(0x42CE0390UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL5 *((volatile unsigned int*)(0x42CE0394UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL6 *((volatile unsigned int*)(0x42CE0398UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL7 *((volatile unsigned int*)(0x42CE039CUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL8 *((volatile unsigned int*)(0x42CE03A0UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL9 *((volatile unsigned int*)(0x42CE03A4UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL10 *((volatile unsigned int*)(0x42CE03A8UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL11 *((volatile unsigned int*)(0x42CE03ACUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL12 *((volatile unsigned int*)(0x42CE03B0UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL13 *((volatile unsigned int*)(0x42CE03B4UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL14 *((volatile unsigned int*)(0x42CE03B8UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL15 *((volatile unsigned int*)(0x42CE03BCUL)) +#define bFM3_ETHERNET_MAC1_VTR_ETV *((volatile unsigned int*)(0x42CE03C0UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42CE0500UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42CE0504UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42CE0508UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42CE050CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42CE0510UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42CE0514UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42CE0518UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42CE051CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42CE0520UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42CE0524UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42CE0528UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42CE052CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42CE0530UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42CE0534UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42CE0538UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42CE053CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42CE0540UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42CE0544UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42CE0548UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42CE054CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42CE0550UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42CE0554UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42CE0558UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42CE055CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42CE0560UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42CE0564UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42CE0568UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42CE056CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42CE0570UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42CE0574UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42CE0578UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42CE057CUL)) +#define bFM3_ETHERNET_MAC1_PMTR_PD *((volatile unsigned int*)(0x42CE0580UL)) +#define bFM3_ETHERNET_MAC1_PMTR_MPE *((volatile unsigned int*)(0x42CE0584UL)) +#define bFM3_ETHERNET_MAC1_PMTR_WFE *((volatile unsigned int*)(0x42CE0588UL)) +#define bFM3_ETHERNET_MAC1_PMTR_MPR *((volatile unsigned int*)(0x42CE0594UL)) +#define bFM3_ETHERNET_MAC1_PMTR_WPR *((volatile unsigned int*)(0x42CE0598UL)) +#define bFM3_ETHERNET_MAC1_PMTR_GU *((volatile unsigned int*)(0x42CE05A4UL)) +#define bFM3_ETHERNET_MAC1_PMTR_RWFFRPR *((volatile unsigned int*)(0x42CE05FCUL)) +#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEN *((volatile unsigned int*)(0x42CE0600UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEX *((volatile unsigned int*)(0x42CE0604UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEN *((volatile unsigned int*)(0x42CE0608UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEX *((volatile unsigned int*)(0x42CE060CUL)) +#define bFM3_ETHERNET_MAC1_LPICSR_TLPIST *((volatile unsigned int*)(0x42CE0620UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_RLPIST *((volatile unsigned int*)(0x42CE0624UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_LPIEN *((volatile unsigned int*)(0x42CE0640UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_PLS *((volatile unsigned int*)(0x42CE0644UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_PLSEN *((volatile unsigned int*)(0x42CE0648UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_LPITXA *((volatile unsigned int*)(0x42CE064CUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT0 *((volatile unsigned int*)(0x42CE0680UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT1 *((volatile unsigned int*)(0x42CE0684UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT2 *((volatile unsigned int*)(0x42CE0688UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT3 *((volatile unsigned int*)(0x42CE068CUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT4 *((volatile unsigned int*)(0x42CE0690UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT5 *((volatile unsigned int*)(0x42CE0694UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT6 *((volatile unsigned int*)(0x42CE0698UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT7 *((volatile unsigned int*)(0x42CE069CUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT8 *((volatile unsigned int*)(0x42CE06A0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT9 *((volatile unsigned int*)(0x42CE06A4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT10 *((volatile unsigned int*)(0x42CE06A8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT11 *((volatile unsigned int*)(0x42CE06ACUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT12 *((volatile unsigned int*)(0x42CE06B0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT13 *((volatile unsigned int*)(0x42CE06B4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT14 *((volatile unsigned int*)(0x42CE06B8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT15 *((volatile unsigned int*)(0x42CE06BCUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT0 *((volatile unsigned int*)(0x42CE06C0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT1 *((volatile unsigned int*)(0x42CE06C4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT2 *((volatile unsigned int*)(0x42CE06C8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT3 *((volatile unsigned int*)(0x42CE06CCUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT4 *((volatile unsigned int*)(0x42CE06D0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT5 *((volatile unsigned int*)(0x42CE06D4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT6 *((volatile unsigned int*)(0x42CE06D8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT7 *((volatile unsigned int*)(0x42CE06DCUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT8 *((volatile unsigned int*)(0x42CE06E0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT9 *((volatile unsigned int*)(0x42CE06E4UL)) +#define bFM3_ETHERNET_MAC1_ISR_RGIS *((volatile unsigned int*)(0x42CE0700UL)) +#define bFM3_ETHERNET_MAC1_ISR_PIS *((volatile unsigned int*)(0x42CE070CUL)) +#define bFM3_ETHERNET_MAC1_ISR_MIS *((volatile unsigned int*)(0x42CE0710UL)) +#define bFM3_ETHERNET_MAC1_ISR_RIS *((volatile unsigned int*)(0x42CE0714UL)) +#define bFM3_ETHERNET_MAC1_ISR_TIS *((volatile unsigned int*)(0x42CE0718UL)) +#define bFM3_ETHERNET_MAC1_ISR_COIS *((volatile unsigned int*)(0x42CE071CUL)) +#define bFM3_ETHERNET_MAC1_ISR_TSIS *((volatile unsigned int*)(0x42CE0724UL)) +#define bFM3_ETHERNET_MAC1_ISR_LPIIS *((volatile unsigned int*)(0x42CE0728UL)) +#define bFM3_ETHERNET_MAC1_IMR_RGIM *((volatile unsigned int*)(0x42CE0780UL)) +#define bFM3_ETHERNET_MAC1_IMR_PIM *((volatile unsigned int*)(0x42CE078CUL)) +#define bFM3_ETHERNET_MAC1_IMR_TSIM *((volatile unsigned int*)(0x42CE0794UL)) +#define bFM3_ETHERNET_MAC1_IMR_LPIIM *((volatile unsigned int*)(0x42CE0798UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A32 *((volatile unsigned int*)(0x42CE0800UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A33 *((volatile unsigned int*)(0x42CE0804UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A34 *((volatile unsigned int*)(0x42CE0808UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A35 *((volatile unsigned int*)(0x42CE080CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A36 *((volatile unsigned int*)(0x42CE0810UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A37 *((volatile unsigned int*)(0x42CE0814UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A38 *((volatile unsigned int*)(0x42CE0818UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A39 *((volatile unsigned int*)(0x42CE081CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A40 *((volatile unsigned int*)(0x42CE0820UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A41 *((volatile unsigned int*)(0x42CE0824UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A42 *((volatile unsigned int*)(0x42CE0828UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A43 *((volatile unsigned int*)(0x42CE082CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A44 *((volatile unsigned int*)(0x42CE0830UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A45 *((volatile unsigned int*)(0x42CE0834UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A46 *((volatile unsigned int*)(0x42CE0838UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A47 *((volatile unsigned int*)(0x42CE083CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_MO *((volatile unsigned int*)(0x42CE087CUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A0 *((volatile unsigned int*)(0x42CE0880UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A1 *((volatile unsigned int*)(0x42CE0884UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A2 *((volatile unsigned int*)(0x42CE0888UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A3 *((volatile unsigned int*)(0x42CE088CUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A4 *((volatile unsigned int*)(0x42CE0890UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A5 *((volatile unsigned int*)(0x42CE0894UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A6 *((volatile unsigned int*)(0x42CE0898UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A7 *((volatile unsigned int*)(0x42CE089CUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A8 *((volatile unsigned int*)(0x42CE08A0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A9 *((volatile unsigned int*)(0x42CE08A4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A10 *((volatile unsigned int*)(0x42CE08A8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A11 *((volatile unsigned int*)(0x42CE08ACUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A12 *((volatile unsigned int*)(0x42CE08B0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A13 *((volatile unsigned int*)(0x42CE08B4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A14 *((volatile unsigned int*)(0x42CE08B8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A15 *((volatile unsigned int*)(0x42CE08BCUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A16 *((volatile unsigned int*)(0x42CE08C0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A17 *((volatile unsigned int*)(0x42CE08C4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A18 *((volatile unsigned int*)(0x42CE08C8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A19 *((volatile unsigned int*)(0x42CE08CCUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A20 *((volatile unsigned int*)(0x42CE08D0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A21 *((volatile unsigned int*)(0x42CE08D4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A22 *((volatile unsigned int*)(0x42CE08D8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A23 *((volatile unsigned int*)(0x42CE08DCUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A24 *((volatile unsigned int*)(0x42CE08E0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A25 *((volatile unsigned int*)(0x42CE08E4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A26 *((volatile unsigned int*)(0x42CE08E8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A27 *((volatile unsigned int*)(0x42CE08ECUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A28 *((volatile unsigned int*)(0x42CE08F0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A29 *((volatile unsigned int*)(0x42CE08F4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A30 *((volatile unsigned int*)(0x42CE08F8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A31 *((volatile unsigned int*)(0x42CE08FCUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A32 *((volatile unsigned int*)(0x42CE0900UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A33 *((volatile unsigned int*)(0x42CE0904UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A34 *((volatile unsigned int*)(0x42CE0908UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A35 *((volatile unsigned int*)(0x42CE090CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A36 *((volatile unsigned int*)(0x42CE0910UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A37 *((volatile unsigned int*)(0x42CE0914UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A38 *((volatile unsigned int*)(0x42CE0918UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A39 *((volatile unsigned int*)(0x42CE091CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A40 *((volatile unsigned int*)(0x42CE0920UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A41 *((volatile unsigned int*)(0x42CE0924UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A42 *((volatile unsigned int*)(0x42CE0928UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A43 *((volatile unsigned int*)(0x42CE092CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A44 *((volatile unsigned int*)(0x42CE0930UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A45 *((volatile unsigned int*)(0x42CE0934UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A46 *((volatile unsigned int*)(0x42CE0938UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A47 *((volatile unsigned int*)(0x42CE093CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC0 *((volatile unsigned int*)(0x42CE0960UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC1 *((volatile unsigned int*)(0x42CE0964UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC2 *((volatile unsigned int*)(0x42CE0968UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC3 *((volatile unsigned int*)(0x42CE096CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC4 *((volatile unsigned int*)(0x42CE0970UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC5 *((volatile unsigned int*)(0x42CE0974UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_SA *((volatile unsigned int*)(0x42CE0978UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_AE *((volatile unsigned int*)(0x42CE097CUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A0 *((volatile unsigned int*)(0x42CE0980UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A1 *((volatile unsigned int*)(0x42CE0984UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A2 *((volatile unsigned int*)(0x42CE0988UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A3 *((volatile unsigned int*)(0x42CE098CUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A4 *((volatile unsigned int*)(0x42CE0990UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A5 *((volatile unsigned int*)(0x42CE0994UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A6 *((volatile unsigned int*)(0x42CE0998UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A7 *((volatile unsigned int*)(0x42CE099CUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A8 *((volatile unsigned int*)(0x42CE09A0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A9 *((volatile unsigned int*)(0x42CE09A4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A10 *((volatile unsigned int*)(0x42CE09A8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A11 *((volatile unsigned int*)(0x42CE09ACUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A12 *((volatile unsigned int*)(0x42CE09B0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A13 *((volatile unsigned int*)(0x42CE09B4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A14 *((volatile unsigned int*)(0x42CE09B8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A15 *((volatile unsigned int*)(0x42CE09BCUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A16 *((volatile unsigned int*)(0x42CE09C0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A17 *((volatile unsigned int*)(0x42CE09C4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A18 *((volatile unsigned int*)(0x42CE09C8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A19 *((volatile unsigned int*)(0x42CE09CCUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A20 *((volatile unsigned int*)(0x42CE09D0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A21 *((volatile unsigned int*)(0x42CE09D4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A22 *((volatile unsigned int*)(0x42CE09D8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A23 *((volatile unsigned int*)(0x42CE09DCUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A24 *((volatile unsigned int*)(0x42CE09E0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A25 *((volatile unsigned int*)(0x42CE09E4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A26 *((volatile unsigned int*)(0x42CE09E8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A27 *((volatile unsigned int*)(0x42CE09ECUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A28 *((volatile unsigned int*)(0x42CE09F0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A29 *((volatile unsigned int*)(0x42CE09F4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A30 *((volatile unsigned int*)(0x42CE09F8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A31 *((volatile unsigned int*)(0x42CE09FCUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A32 *((volatile unsigned int*)(0x42CE0A00UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A33 *((volatile unsigned int*)(0x42CE0A04UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A34 *((volatile unsigned int*)(0x42CE0A08UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A35 *((volatile unsigned int*)(0x42CE0A0CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A36 *((volatile unsigned int*)(0x42CE0A10UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A37 *((volatile unsigned int*)(0x42CE0A14UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A38 *((volatile unsigned int*)(0x42CE0A18UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A39 *((volatile unsigned int*)(0x42CE0A1CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A40 *((volatile unsigned int*)(0x42CE0A20UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A41 *((volatile unsigned int*)(0x42CE0A24UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A42 *((volatile unsigned int*)(0x42CE0A28UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A43 *((volatile unsigned int*)(0x42CE0A2CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A44 *((volatile unsigned int*)(0x42CE0A30UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A45 *((volatile unsigned int*)(0x42CE0A34UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A46 *((volatile unsigned int*)(0x42CE0A38UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A47 *((volatile unsigned int*)(0x42CE0A3CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC0 *((volatile unsigned int*)(0x42CE0A60UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC1 *((volatile unsigned int*)(0x42CE0A64UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC2 *((volatile unsigned int*)(0x42CE0A68UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC3 *((volatile unsigned int*)(0x42CE0A6CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC4 *((volatile unsigned int*)(0x42CE0A70UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC5 *((volatile unsigned int*)(0x42CE0A74UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_SA *((volatile unsigned int*)(0x42CE0A78UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_AE *((volatile unsigned int*)(0x42CE0A7CUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A0 *((volatile unsigned int*)(0x42CE0A80UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A1 *((volatile unsigned int*)(0x42CE0A84UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A2 *((volatile unsigned int*)(0x42CE0A88UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A3 *((volatile unsigned int*)(0x42CE0A8CUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A4 *((volatile unsigned int*)(0x42CE0A90UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A5 *((volatile unsigned int*)(0x42CE0A94UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A6 *((volatile unsigned int*)(0x42CE0A98UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A7 *((volatile unsigned int*)(0x42CE0A9CUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A8 *((volatile unsigned int*)(0x42CE0AA0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A9 *((volatile unsigned int*)(0x42CE0AA4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A10 *((volatile unsigned int*)(0x42CE0AA8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A11 *((volatile unsigned int*)(0x42CE0AACUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A12 *((volatile unsigned int*)(0x42CE0AB0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A13 *((volatile unsigned int*)(0x42CE0AB4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A14 *((volatile unsigned int*)(0x42CE0AB8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A15 *((volatile unsigned int*)(0x42CE0ABCUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A16 *((volatile unsigned int*)(0x42CE0AC0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A17 *((volatile unsigned int*)(0x42CE0AC4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A18 *((volatile unsigned int*)(0x42CE0AC8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A19 *((volatile unsigned int*)(0x42CE0ACCUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A20 *((volatile unsigned int*)(0x42CE0AD0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A21 *((volatile unsigned int*)(0x42CE0AD4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A22 *((volatile unsigned int*)(0x42CE0AD8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A23 *((volatile unsigned int*)(0x42CE0ADCUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A24 *((volatile unsigned int*)(0x42CE0AE0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A25 *((volatile unsigned int*)(0x42CE0AE4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A26 *((volatile unsigned int*)(0x42CE0AE8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A27 *((volatile unsigned int*)(0x42CE0AECUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A28 *((volatile unsigned int*)(0x42CE0AF0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A29 *((volatile unsigned int*)(0x42CE0AF4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A30 *((volatile unsigned int*)(0x42CE0AF8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A31 *((volatile unsigned int*)(0x42CE0AFCUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A32 *((volatile unsigned int*)(0x42CE0B00UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A33 *((volatile unsigned int*)(0x42CE0B04UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A34 *((volatile unsigned int*)(0x42CE0B08UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A35 *((volatile unsigned int*)(0x42CE0B0CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A36 *((volatile unsigned int*)(0x42CE0B10UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A37 *((volatile unsigned int*)(0x42CE0B14UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A38 *((volatile unsigned int*)(0x42CE0B18UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A39 *((volatile unsigned int*)(0x42CE0B1CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A40 *((volatile unsigned int*)(0x42CE0B20UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A41 *((volatile unsigned int*)(0x42CE0B24UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A42 *((volatile unsigned int*)(0x42CE0B28UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A43 *((volatile unsigned int*)(0x42CE0B2CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A44 *((volatile unsigned int*)(0x42CE0B30UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A45 *((volatile unsigned int*)(0x42CE0B34UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A46 *((volatile unsigned int*)(0x42CE0B38UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A47 *((volatile unsigned int*)(0x42CE0B3CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC0 *((volatile unsigned int*)(0x42CE0B60UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC1 *((volatile unsigned int*)(0x42CE0B64UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC2 *((volatile unsigned int*)(0x42CE0B68UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC3 *((volatile unsigned int*)(0x42CE0B6CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC4 *((volatile unsigned int*)(0x42CE0B70UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC5 *((volatile unsigned int*)(0x42CE0B74UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_SA *((volatile unsigned int*)(0x42CE0B78UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_AE *((volatile unsigned int*)(0x42CE0B7CUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A0 *((volatile unsigned int*)(0x42CE0B80UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A1 *((volatile unsigned int*)(0x42CE0B84UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A2 *((volatile unsigned int*)(0x42CE0B88UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A3 *((volatile unsigned int*)(0x42CE0B8CUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A4 *((volatile unsigned int*)(0x42CE0B90UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A5 *((volatile unsigned int*)(0x42CE0B94UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A6 *((volatile unsigned int*)(0x42CE0B98UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A7 *((volatile unsigned int*)(0x42CE0B9CUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A8 *((volatile unsigned int*)(0x42CE0BA0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A9 *((volatile unsigned int*)(0x42CE0BA4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A10 *((volatile unsigned int*)(0x42CE0BA8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A11 *((volatile unsigned int*)(0x42CE0BACUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A12 *((volatile unsigned int*)(0x42CE0BB0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A13 *((volatile unsigned int*)(0x42CE0BB4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A14 *((volatile unsigned int*)(0x42CE0BB8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A15 *((volatile unsigned int*)(0x42CE0BBCUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A16 *((volatile unsigned int*)(0x42CE0BC0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A17 *((volatile unsigned int*)(0x42CE0BC4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A18 *((volatile unsigned int*)(0x42CE0BC8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A19 *((volatile unsigned int*)(0x42CE0BCCUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A20 *((volatile unsigned int*)(0x42CE0BD0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A21 *((volatile unsigned int*)(0x42CE0BD4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A22 *((volatile unsigned int*)(0x42CE0BD8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A23 *((volatile unsigned int*)(0x42CE0BDCUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A24 *((volatile unsigned int*)(0x42CE0BE0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A25 *((volatile unsigned int*)(0x42CE0BE4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A26 *((volatile unsigned int*)(0x42CE0BE8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A27 *((volatile unsigned int*)(0x42CE0BECUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A28 *((volatile unsigned int*)(0x42CE0BF0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A29 *((volatile unsigned int*)(0x42CE0BF4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A30 *((volatile unsigned int*)(0x42CE0BF8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A31 *((volatile unsigned int*)(0x42CE0BFCUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A32 *((volatile unsigned int*)(0x42CE0C00UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A33 *((volatile unsigned int*)(0x42CE0C04UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A34 *((volatile unsigned int*)(0x42CE0C08UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A35 *((volatile unsigned int*)(0x42CE0C0CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A36 *((volatile unsigned int*)(0x42CE0C10UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A37 *((volatile unsigned int*)(0x42CE0C14UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A38 *((volatile unsigned int*)(0x42CE0C18UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A39 *((volatile unsigned int*)(0x42CE0C1CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A40 *((volatile unsigned int*)(0x42CE0C20UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A41 *((volatile unsigned int*)(0x42CE0C24UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A42 *((volatile unsigned int*)(0x42CE0C28UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A43 *((volatile unsigned int*)(0x42CE0C2CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A44 *((volatile unsigned int*)(0x42CE0C30UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A45 *((volatile unsigned int*)(0x42CE0C34UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A46 *((volatile unsigned int*)(0x42CE0C38UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A47 *((volatile unsigned int*)(0x42CE0C3CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC0 *((volatile unsigned int*)(0x42CE0C60UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC1 *((volatile unsigned int*)(0x42CE0C64UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC2 *((volatile unsigned int*)(0x42CE0C68UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC3 *((volatile unsigned int*)(0x42CE0C6CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC4 *((volatile unsigned int*)(0x42CE0C70UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC5 *((volatile unsigned int*)(0x42CE0C74UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_SA *((volatile unsigned int*)(0x42CE0C78UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_AE *((volatile unsigned int*)(0x42CE0C7CUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A0 *((volatile unsigned int*)(0x42CE0C80UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A1 *((volatile unsigned int*)(0x42CE0C84UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A2 *((volatile unsigned int*)(0x42CE0C88UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A3 *((volatile unsigned int*)(0x42CE0C8CUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A4 *((volatile unsigned int*)(0x42CE0C90UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A5 *((volatile unsigned int*)(0x42CE0C94UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A6 *((volatile unsigned int*)(0x42CE0C98UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A7 *((volatile unsigned int*)(0x42CE0C9CUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A8 *((volatile unsigned int*)(0x42CE0CA0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A9 *((volatile unsigned int*)(0x42CE0CA4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A10 *((volatile unsigned int*)(0x42CE0CA8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A11 *((volatile unsigned int*)(0x42CE0CACUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A12 *((volatile unsigned int*)(0x42CE0CB0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A13 *((volatile unsigned int*)(0x42CE0CB4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A14 *((volatile unsigned int*)(0x42CE0CB8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A15 *((volatile unsigned int*)(0x42CE0CBCUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A16 *((volatile unsigned int*)(0x42CE0CC0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A17 *((volatile unsigned int*)(0x42CE0CC4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A18 *((volatile unsigned int*)(0x42CE0CC8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A19 *((volatile unsigned int*)(0x42CE0CCCUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A20 *((volatile unsigned int*)(0x42CE0CD0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A21 *((volatile unsigned int*)(0x42CE0CD4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A22 *((volatile unsigned int*)(0x42CE0CD8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A23 *((volatile unsigned int*)(0x42CE0CDCUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A24 *((volatile unsigned int*)(0x42CE0CE0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A25 *((volatile unsigned int*)(0x42CE0CE4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A26 *((volatile unsigned int*)(0x42CE0CE8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A27 *((volatile unsigned int*)(0x42CE0CECUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A28 *((volatile unsigned int*)(0x42CE0CF0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A29 *((volatile unsigned int*)(0x42CE0CF4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A30 *((volatile unsigned int*)(0x42CE0CF8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A31 *((volatile unsigned int*)(0x42CE0CFCUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A32 *((volatile unsigned int*)(0x42CE0D00UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A33 *((volatile unsigned int*)(0x42CE0D04UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A34 *((volatile unsigned int*)(0x42CE0D08UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A35 *((volatile unsigned int*)(0x42CE0D0CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A36 *((volatile unsigned int*)(0x42CE0D10UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A37 *((volatile unsigned int*)(0x42CE0D14UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A38 *((volatile unsigned int*)(0x42CE0D18UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A39 *((volatile unsigned int*)(0x42CE0D1CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A40 *((volatile unsigned int*)(0x42CE0D20UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A41 *((volatile unsigned int*)(0x42CE0D24UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A42 *((volatile unsigned int*)(0x42CE0D28UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A43 *((volatile unsigned int*)(0x42CE0D2CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A44 *((volatile unsigned int*)(0x42CE0D30UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A45 *((volatile unsigned int*)(0x42CE0D34UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A46 *((volatile unsigned int*)(0x42CE0D38UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A47 *((volatile unsigned int*)(0x42CE0D3CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC0 *((volatile unsigned int*)(0x42CE0D60UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC1 *((volatile unsigned int*)(0x42CE0D64UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC2 *((volatile unsigned int*)(0x42CE0D68UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC3 *((volatile unsigned int*)(0x42CE0D6CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC4 *((volatile unsigned int*)(0x42CE0D70UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC5 *((volatile unsigned int*)(0x42CE0D74UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_SA *((volatile unsigned int*)(0x42CE0D78UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_AE *((volatile unsigned int*)(0x42CE0D7CUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A0 *((volatile unsigned int*)(0x42CE0D80UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A1 *((volatile unsigned int*)(0x42CE0D84UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A2 *((volatile unsigned int*)(0x42CE0D88UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A3 *((volatile unsigned int*)(0x42CE0D8CUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A4 *((volatile unsigned int*)(0x42CE0D90UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A5 *((volatile unsigned int*)(0x42CE0D94UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A6 *((volatile unsigned int*)(0x42CE0D98UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A7 *((volatile unsigned int*)(0x42CE0D9CUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A8 *((volatile unsigned int*)(0x42CE0DA0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A9 *((volatile unsigned int*)(0x42CE0DA4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A10 *((volatile unsigned int*)(0x42CE0DA8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A11 *((volatile unsigned int*)(0x42CE0DACUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A12 *((volatile unsigned int*)(0x42CE0DB0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A13 *((volatile unsigned int*)(0x42CE0DB4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A14 *((volatile unsigned int*)(0x42CE0DB8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A15 *((volatile unsigned int*)(0x42CE0DBCUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A16 *((volatile unsigned int*)(0x42CE0DC0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A17 *((volatile unsigned int*)(0x42CE0DC4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A18 *((volatile unsigned int*)(0x42CE0DC8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A19 *((volatile unsigned int*)(0x42CE0DCCUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A20 *((volatile unsigned int*)(0x42CE0DD0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A21 *((volatile unsigned int*)(0x42CE0DD4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A22 *((volatile unsigned int*)(0x42CE0DD8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A23 *((volatile unsigned int*)(0x42CE0DDCUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A24 *((volatile unsigned int*)(0x42CE0DE0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A25 *((volatile unsigned int*)(0x42CE0DE4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A26 *((volatile unsigned int*)(0x42CE0DE8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A27 *((volatile unsigned int*)(0x42CE0DECUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A28 *((volatile unsigned int*)(0x42CE0DF0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A29 *((volatile unsigned int*)(0x42CE0DF4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A30 *((volatile unsigned int*)(0x42CE0DF8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A31 *((volatile unsigned int*)(0x42CE0DFCUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A32 *((volatile unsigned int*)(0x42CE0E00UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A33 *((volatile unsigned int*)(0x42CE0E04UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A34 *((volatile unsigned int*)(0x42CE0E08UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A35 *((volatile unsigned int*)(0x42CE0E0CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A36 *((volatile unsigned int*)(0x42CE0E10UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A37 *((volatile unsigned int*)(0x42CE0E14UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A38 *((volatile unsigned int*)(0x42CE0E18UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A39 *((volatile unsigned int*)(0x42CE0E1CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A40 *((volatile unsigned int*)(0x42CE0E20UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A41 *((volatile unsigned int*)(0x42CE0E24UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A42 *((volatile unsigned int*)(0x42CE0E28UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A43 *((volatile unsigned int*)(0x42CE0E2CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A44 *((volatile unsigned int*)(0x42CE0E30UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A45 *((volatile unsigned int*)(0x42CE0E34UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A46 *((volatile unsigned int*)(0x42CE0E38UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A47 *((volatile unsigned int*)(0x42CE0E3CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC0 *((volatile unsigned int*)(0x42CE0E60UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC1 *((volatile unsigned int*)(0x42CE0E64UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC2 *((volatile unsigned int*)(0x42CE0E68UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC3 *((volatile unsigned int*)(0x42CE0E6CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC4 *((volatile unsigned int*)(0x42CE0E70UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC5 *((volatile unsigned int*)(0x42CE0E74UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_SA *((volatile unsigned int*)(0x42CE0E78UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_AE *((volatile unsigned int*)(0x42CE0E7CUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A0 *((volatile unsigned int*)(0x42CE0E80UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A1 *((volatile unsigned int*)(0x42CE0E84UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A2 *((volatile unsigned int*)(0x42CE0E88UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A3 *((volatile unsigned int*)(0x42CE0E8CUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A4 *((volatile unsigned int*)(0x42CE0E90UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A5 *((volatile unsigned int*)(0x42CE0E94UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A6 *((volatile unsigned int*)(0x42CE0E98UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A7 *((volatile unsigned int*)(0x42CE0E9CUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A8 *((volatile unsigned int*)(0x42CE0EA0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A9 *((volatile unsigned int*)(0x42CE0EA4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A10 *((volatile unsigned int*)(0x42CE0EA8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A11 *((volatile unsigned int*)(0x42CE0EACUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A12 *((volatile unsigned int*)(0x42CE0EB0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A13 *((volatile unsigned int*)(0x42CE0EB4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A14 *((volatile unsigned int*)(0x42CE0EB8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A15 *((volatile unsigned int*)(0x42CE0EBCUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A16 *((volatile unsigned int*)(0x42CE0EC0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A17 *((volatile unsigned int*)(0x42CE0EC4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A18 *((volatile unsigned int*)(0x42CE0EC8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A19 *((volatile unsigned int*)(0x42CE0ECCUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A20 *((volatile unsigned int*)(0x42CE0ED0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A21 *((volatile unsigned int*)(0x42CE0ED4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A22 *((volatile unsigned int*)(0x42CE0ED8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A23 *((volatile unsigned int*)(0x42CE0EDCUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A24 *((volatile unsigned int*)(0x42CE0EE0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A25 *((volatile unsigned int*)(0x42CE0EE4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A26 *((volatile unsigned int*)(0x42CE0EE8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A27 *((volatile unsigned int*)(0x42CE0EECUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A28 *((volatile unsigned int*)(0x42CE0EF0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A29 *((volatile unsigned int*)(0x42CE0EF4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A30 *((volatile unsigned int*)(0x42CE0EF8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A31 *((volatile unsigned int*)(0x42CE0EFCUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A32 *((volatile unsigned int*)(0x42CE0F00UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A33 *((volatile unsigned int*)(0x42CE0F04UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A34 *((volatile unsigned int*)(0x42CE0F08UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A35 *((volatile unsigned int*)(0x42CE0F0CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A36 *((volatile unsigned int*)(0x42CE0F10UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A37 *((volatile unsigned int*)(0x42CE0F14UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A38 *((volatile unsigned int*)(0x42CE0F18UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A39 *((volatile unsigned int*)(0x42CE0F1CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A40 *((volatile unsigned int*)(0x42CE0F20UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A41 *((volatile unsigned int*)(0x42CE0F24UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A42 *((volatile unsigned int*)(0x42CE0F28UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A43 *((volatile unsigned int*)(0x42CE0F2CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A44 *((volatile unsigned int*)(0x42CE0F30UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A45 *((volatile unsigned int*)(0x42CE0F34UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A46 *((volatile unsigned int*)(0x42CE0F38UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A47 *((volatile unsigned int*)(0x42CE0F3CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC0 *((volatile unsigned int*)(0x42CE0F60UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC1 *((volatile unsigned int*)(0x42CE0F64UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC2 *((volatile unsigned int*)(0x42CE0F68UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC3 *((volatile unsigned int*)(0x42CE0F6CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC4 *((volatile unsigned int*)(0x42CE0F70UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC5 *((volatile unsigned int*)(0x42CE0F74UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_SA *((volatile unsigned int*)(0x42CE0F78UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_AE *((volatile unsigned int*)(0x42CE0F7CUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A0 *((volatile unsigned int*)(0x42CE0F80UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A1 *((volatile unsigned int*)(0x42CE0F84UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A2 *((volatile unsigned int*)(0x42CE0F88UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A3 *((volatile unsigned int*)(0x42CE0F8CUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A4 *((volatile unsigned int*)(0x42CE0F90UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A5 *((volatile unsigned int*)(0x42CE0F94UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A6 *((volatile unsigned int*)(0x42CE0F98UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A7 *((volatile unsigned int*)(0x42CE0F9CUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A8 *((volatile unsigned int*)(0x42CE0FA0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A9 *((volatile unsigned int*)(0x42CE0FA4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A10 *((volatile unsigned int*)(0x42CE0FA8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A11 *((volatile unsigned int*)(0x42CE0FACUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A12 *((volatile unsigned int*)(0x42CE0FB0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A13 *((volatile unsigned int*)(0x42CE0FB4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A14 *((volatile unsigned int*)(0x42CE0FB8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A15 *((volatile unsigned int*)(0x42CE0FBCUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A16 *((volatile unsigned int*)(0x42CE0FC0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A17 *((volatile unsigned int*)(0x42CE0FC4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A18 *((volatile unsigned int*)(0x42CE0FC8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A19 *((volatile unsigned int*)(0x42CE0FCCUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A20 *((volatile unsigned int*)(0x42CE0FD0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A21 *((volatile unsigned int*)(0x42CE0FD4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A22 *((volatile unsigned int*)(0x42CE0FD8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A23 *((volatile unsigned int*)(0x42CE0FDCUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A24 *((volatile unsigned int*)(0x42CE0FE0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A25 *((volatile unsigned int*)(0x42CE0FE4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A26 *((volatile unsigned int*)(0x42CE0FE8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A27 *((volatile unsigned int*)(0x42CE0FECUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A28 *((volatile unsigned int*)(0x42CE0FF0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A29 *((volatile unsigned int*)(0x42CE0FF4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A30 *((volatile unsigned int*)(0x42CE0FF8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A31 *((volatile unsigned int*)(0x42CE0FFCUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A32 *((volatile unsigned int*)(0x42CE1000UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A33 *((volatile unsigned int*)(0x42CE1004UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A34 *((volatile unsigned int*)(0x42CE1008UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A35 *((volatile unsigned int*)(0x42CE100CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A36 *((volatile unsigned int*)(0x42CE1010UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A37 *((volatile unsigned int*)(0x42CE1014UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A38 *((volatile unsigned int*)(0x42CE1018UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A39 *((volatile unsigned int*)(0x42CE101CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A40 *((volatile unsigned int*)(0x42CE1020UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A41 *((volatile unsigned int*)(0x42CE1024UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A42 *((volatile unsigned int*)(0x42CE1028UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A43 *((volatile unsigned int*)(0x42CE102CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A44 *((volatile unsigned int*)(0x42CE1030UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A45 *((volatile unsigned int*)(0x42CE1034UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A46 *((volatile unsigned int*)(0x42CE1038UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A47 *((volatile unsigned int*)(0x42CE103CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC0 *((volatile unsigned int*)(0x42CE1060UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC1 *((volatile unsigned int*)(0x42CE1064UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC2 *((volatile unsigned int*)(0x42CE1068UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC3 *((volatile unsigned int*)(0x42CE106CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC4 *((volatile unsigned int*)(0x42CE1070UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC5 *((volatile unsigned int*)(0x42CE1074UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_SA *((volatile unsigned int*)(0x42CE1078UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_AE *((volatile unsigned int*)(0x42CE107CUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A0 *((volatile unsigned int*)(0x42CE1080UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A1 *((volatile unsigned int*)(0x42CE1084UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A2 *((volatile unsigned int*)(0x42CE1088UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A3 *((volatile unsigned int*)(0x42CE108CUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A4 *((volatile unsigned int*)(0x42CE1090UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A5 *((volatile unsigned int*)(0x42CE1094UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A6 *((volatile unsigned int*)(0x42CE1098UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A7 *((volatile unsigned int*)(0x42CE109CUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A8 *((volatile unsigned int*)(0x42CE10A0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A9 *((volatile unsigned int*)(0x42CE10A4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A10 *((volatile unsigned int*)(0x42CE10A8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A11 *((volatile unsigned int*)(0x42CE10ACUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A12 *((volatile unsigned int*)(0x42CE10B0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A13 *((volatile unsigned int*)(0x42CE10B4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A14 *((volatile unsigned int*)(0x42CE10B8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A15 *((volatile unsigned int*)(0x42CE10BCUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A16 *((volatile unsigned int*)(0x42CE10C0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A17 *((volatile unsigned int*)(0x42CE10C4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A18 *((volatile unsigned int*)(0x42CE10C8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A19 *((volatile unsigned int*)(0x42CE10CCUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A20 *((volatile unsigned int*)(0x42CE10D0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A21 *((volatile unsigned int*)(0x42CE10D4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A22 *((volatile unsigned int*)(0x42CE10D8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A23 *((volatile unsigned int*)(0x42CE10DCUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A24 *((volatile unsigned int*)(0x42CE10E0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A25 *((volatile unsigned int*)(0x42CE10E4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A26 *((volatile unsigned int*)(0x42CE10E8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A27 *((volatile unsigned int*)(0x42CE10ECUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A28 *((volatile unsigned int*)(0x42CE10F0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A29 *((volatile unsigned int*)(0x42CE10F4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A30 *((volatile unsigned int*)(0x42CE10F8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A31 *((volatile unsigned int*)(0x42CE10FCUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A32 *((volatile unsigned int*)(0x42CE1100UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A33 *((volatile unsigned int*)(0x42CE1104UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A34 *((volatile unsigned int*)(0x42CE1108UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A35 *((volatile unsigned int*)(0x42CE110CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A36 *((volatile unsigned int*)(0x42CE1110UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A37 *((volatile unsigned int*)(0x42CE1114UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A38 *((volatile unsigned int*)(0x42CE1118UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A39 *((volatile unsigned int*)(0x42CE111CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A40 *((volatile unsigned int*)(0x42CE1120UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A41 *((volatile unsigned int*)(0x42CE1124UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A42 *((volatile unsigned int*)(0x42CE1128UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A43 *((volatile unsigned int*)(0x42CE112CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A44 *((volatile unsigned int*)(0x42CE1130UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A45 *((volatile unsigned int*)(0x42CE1134UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A46 *((volatile unsigned int*)(0x42CE1138UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A47 *((volatile unsigned int*)(0x42CE113CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC0 *((volatile unsigned int*)(0x42CE1160UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC1 *((volatile unsigned int*)(0x42CE1164UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC2 *((volatile unsigned int*)(0x42CE1168UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC3 *((volatile unsigned int*)(0x42CE116CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC4 *((volatile unsigned int*)(0x42CE1170UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC5 *((volatile unsigned int*)(0x42CE1174UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_SA *((volatile unsigned int*)(0x42CE1178UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_AE *((volatile unsigned int*)(0x42CE117CUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A0 *((volatile unsigned int*)(0x42CE1180UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A1 *((volatile unsigned int*)(0x42CE1184UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A2 *((volatile unsigned int*)(0x42CE1188UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A3 *((volatile unsigned int*)(0x42CE118CUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A4 *((volatile unsigned int*)(0x42CE1190UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A5 *((volatile unsigned int*)(0x42CE1194UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A6 *((volatile unsigned int*)(0x42CE1198UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A7 *((volatile unsigned int*)(0x42CE119CUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A8 *((volatile unsigned int*)(0x42CE11A0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A9 *((volatile unsigned int*)(0x42CE11A4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A10 *((volatile unsigned int*)(0x42CE11A8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A11 *((volatile unsigned int*)(0x42CE11ACUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A12 *((volatile unsigned int*)(0x42CE11B0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A13 *((volatile unsigned int*)(0x42CE11B4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A14 *((volatile unsigned int*)(0x42CE11B8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A15 *((volatile unsigned int*)(0x42CE11BCUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A16 *((volatile unsigned int*)(0x42CE11C0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A17 *((volatile unsigned int*)(0x42CE11C4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A18 *((volatile unsigned int*)(0x42CE11C8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A19 *((volatile unsigned int*)(0x42CE11CCUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A20 *((volatile unsigned int*)(0x42CE11D0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A21 *((volatile unsigned int*)(0x42CE11D4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A22 *((volatile unsigned int*)(0x42CE11D8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A23 *((volatile unsigned int*)(0x42CE11DCUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A24 *((volatile unsigned int*)(0x42CE11E0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A25 *((volatile unsigned int*)(0x42CE11E4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A26 *((volatile unsigned int*)(0x42CE11E8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A27 *((volatile unsigned int*)(0x42CE11ECUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A28 *((volatile unsigned int*)(0x42CE11F0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A29 *((volatile unsigned int*)(0x42CE11F4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A30 *((volatile unsigned int*)(0x42CE11F8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A31 *((volatile unsigned int*)(0x42CE11FCUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A32 *((volatile unsigned int*)(0x42CE1200UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A33 *((volatile unsigned int*)(0x42CE1204UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A34 *((volatile unsigned int*)(0x42CE1208UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A35 *((volatile unsigned int*)(0x42CE120CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A36 *((volatile unsigned int*)(0x42CE1210UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A37 *((volatile unsigned int*)(0x42CE1214UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A38 *((volatile unsigned int*)(0x42CE1218UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A39 *((volatile unsigned int*)(0x42CE121CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A40 *((volatile unsigned int*)(0x42CE1220UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A41 *((volatile unsigned int*)(0x42CE1224UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A42 *((volatile unsigned int*)(0x42CE1228UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A43 *((volatile unsigned int*)(0x42CE122CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A44 *((volatile unsigned int*)(0x42CE1230UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A45 *((volatile unsigned int*)(0x42CE1234UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A46 *((volatile unsigned int*)(0x42CE1238UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A47 *((volatile unsigned int*)(0x42CE123CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC0 *((volatile unsigned int*)(0x42CE1260UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC1 *((volatile unsigned int*)(0x42CE1264UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC2 *((volatile unsigned int*)(0x42CE1268UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC3 *((volatile unsigned int*)(0x42CE126CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC4 *((volatile unsigned int*)(0x42CE1270UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC5 *((volatile unsigned int*)(0x42CE1274UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_SA *((volatile unsigned int*)(0x42CE1278UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_AE *((volatile unsigned int*)(0x42CE127CUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A0 *((volatile unsigned int*)(0x42CE1280UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A1 *((volatile unsigned int*)(0x42CE1284UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A2 *((volatile unsigned int*)(0x42CE1288UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A3 *((volatile unsigned int*)(0x42CE128CUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A4 *((volatile unsigned int*)(0x42CE1290UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A5 *((volatile unsigned int*)(0x42CE1294UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A6 *((volatile unsigned int*)(0x42CE1298UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A7 *((volatile unsigned int*)(0x42CE129CUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A8 *((volatile unsigned int*)(0x42CE12A0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A9 *((volatile unsigned int*)(0x42CE12A4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A10 *((volatile unsigned int*)(0x42CE12A8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A11 *((volatile unsigned int*)(0x42CE12ACUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A12 *((volatile unsigned int*)(0x42CE12B0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A13 *((volatile unsigned int*)(0x42CE12B4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A14 *((volatile unsigned int*)(0x42CE12B8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A15 *((volatile unsigned int*)(0x42CE12BCUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A16 *((volatile unsigned int*)(0x42CE12C0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A17 *((volatile unsigned int*)(0x42CE12C4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A18 *((volatile unsigned int*)(0x42CE12C8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A19 *((volatile unsigned int*)(0x42CE12CCUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A20 *((volatile unsigned int*)(0x42CE12D0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A21 *((volatile unsigned int*)(0x42CE12D4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A22 *((volatile unsigned int*)(0x42CE12D8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A23 *((volatile unsigned int*)(0x42CE12DCUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A24 *((volatile unsigned int*)(0x42CE12E0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A25 *((volatile unsigned int*)(0x42CE12E4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A26 *((volatile unsigned int*)(0x42CE12E8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A27 *((volatile unsigned int*)(0x42CE12ECUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A28 *((volatile unsigned int*)(0x42CE12F0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A29 *((volatile unsigned int*)(0x42CE12F4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A30 *((volatile unsigned int*)(0x42CE12F8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A31 *((volatile unsigned int*)(0x42CE12FCUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A32 *((volatile unsigned int*)(0x42CE1300UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A33 *((volatile unsigned int*)(0x42CE1304UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A34 *((volatile unsigned int*)(0x42CE1308UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A35 *((volatile unsigned int*)(0x42CE130CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A36 *((volatile unsigned int*)(0x42CE1310UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A37 *((volatile unsigned int*)(0x42CE1314UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A38 *((volatile unsigned int*)(0x42CE1318UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A39 *((volatile unsigned int*)(0x42CE131CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A40 *((volatile unsigned int*)(0x42CE1320UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A41 *((volatile unsigned int*)(0x42CE1324UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A42 *((volatile unsigned int*)(0x42CE1328UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A43 *((volatile unsigned int*)(0x42CE132CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A44 *((volatile unsigned int*)(0x42CE1330UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A45 *((volatile unsigned int*)(0x42CE1334UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A46 *((volatile unsigned int*)(0x42CE1338UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A47 *((volatile unsigned int*)(0x42CE133CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC0 *((volatile unsigned int*)(0x42CE1360UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC1 *((volatile unsigned int*)(0x42CE1364UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC2 *((volatile unsigned int*)(0x42CE1368UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC3 *((volatile unsigned int*)(0x42CE136CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC4 *((volatile unsigned int*)(0x42CE1370UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC5 *((volatile unsigned int*)(0x42CE1374UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_SA *((volatile unsigned int*)(0x42CE1378UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_AE *((volatile unsigned int*)(0x42CE137CUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A0 *((volatile unsigned int*)(0x42CE1380UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A1 *((volatile unsigned int*)(0x42CE1384UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A2 *((volatile unsigned int*)(0x42CE1388UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A3 *((volatile unsigned int*)(0x42CE138CUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A4 *((volatile unsigned int*)(0x42CE1390UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A5 *((volatile unsigned int*)(0x42CE1394UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A6 *((volatile unsigned int*)(0x42CE1398UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A7 *((volatile unsigned int*)(0x42CE139CUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A8 *((volatile unsigned int*)(0x42CE13A0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A9 *((volatile unsigned int*)(0x42CE13A4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A10 *((volatile unsigned int*)(0x42CE13A8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A11 *((volatile unsigned int*)(0x42CE13ACUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A12 *((volatile unsigned int*)(0x42CE13B0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A13 *((volatile unsigned int*)(0x42CE13B4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A14 *((volatile unsigned int*)(0x42CE13B8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A15 *((volatile unsigned int*)(0x42CE13BCUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A16 *((volatile unsigned int*)(0x42CE13C0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A17 *((volatile unsigned int*)(0x42CE13C4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A18 *((volatile unsigned int*)(0x42CE13C8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A19 *((volatile unsigned int*)(0x42CE13CCUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A20 *((volatile unsigned int*)(0x42CE13D0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A21 *((volatile unsigned int*)(0x42CE13D4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A22 *((volatile unsigned int*)(0x42CE13D8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A23 *((volatile unsigned int*)(0x42CE13DCUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A24 *((volatile unsigned int*)(0x42CE13E0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A25 *((volatile unsigned int*)(0x42CE13E4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A26 *((volatile unsigned int*)(0x42CE13E8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A27 *((volatile unsigned int*)(0x42CE13ECUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A28 *((volatile unsigned int*)(0x42CE13F0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A29 *((volatile unsigned int*)(0x42CE13F4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A30 *((volatile unsigned int*)(0x42CE13F8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A31 *((volatile unsigned int*)(0x42CE13FCUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A32 *((volatile unsigned int*)(0x42CE1400UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A33 *((volatile unsigned int*)(0x42CE1404UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A34 *((volatile unsigned int*)(0x42CE1408UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A35 *((volatile unsigned int*)(0x42CE140CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A36 *((volatile unsigned int*)(0x42CE1410UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A37 *((volatile unsigned int*)(0x42CE1414UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A38 *((volatile unsigned int*)(0x42CE1418UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A39 *((volatile unsigned int*)(0x42CE141CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A40 *((volatile unsigned int*)(0x42CE1420UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A41 *((volatile unsigned int*)(0x42CE1424UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A42 *((volatile unsigned int*)(0x42CE1428UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A43 *((volatile unsigned int*)(0x42CE142CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A44 *((volatile unsigned int*)(0x42CE1430UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A45 *((volatile unsigned int*)(0x42CE1434UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A46 *((volatile unsigned int*)(0x42CE1438UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A47 *((volatile unsigned int*)(0x42CE143CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC0 *((volatile unsigned int*)(0x42CE1460UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC1 *((volatile unsigned int*)(0x42CE1464UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC2 *((volatile unsigned int*)(0x42CE1468UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC3 *((volatile unsigned int*)(0x42CE146CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC4 *((volatile unsigned int*)(0x42CE1470UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC5 *((volatile unsigned int*)(0x42CE1474UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_SA *((volatile unsigned int*)(0x42CE1478UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_AE *((volatile unsigned int*)(0x42CE147CUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A0 *((volatile unsigned int*)(0x42CE1480UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A1 *((volatile unsigned int*)(0x42CE1484UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A2 *((volatile unsigned int*)(0x42CE1488UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A3 *((volatile unsigned int*)(0x42CE148CUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A4 *((volatile unsigned int*)(0x42CE1490UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A5 *((volatile unsigned int*)(0x42CE1494UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A6 *((volatile unsigned int*)(0x42CE1498UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A7 *((volatile unsigned int*)(0x42CE149CUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A8 *((volatile unsigned int*)(0x42CE14A0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A9 *((volatile unsigned int*)(0x42CE14A4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A10 *((volatile unsigned int*)(0x42CE14A8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A11 *((volatile unsigned int*)(0x42CE14ACUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A12 *((volatile unsigned int*)(0x42CE14B0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A13 *((volatile unsigned int*)(0x42CE14B4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A14 *((volatile unsigned int*)(0x42CE14B8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A15 *((volatile unsigned int*)(0x42CE14BCUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A16 *((volatile unsigned int*)(0x42CE14C0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A17 *((volatile unsigned int*)(0x42CE14C4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A18 *((volatile unsigned int*)(0x42CE14C8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A19 *((volatile unsigned int*)(0x42CE14CCUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A20 *((volatile unsigned int*)(0x42CE14D0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A21 *((volatile unsigned int*)(0x42CE14D4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A22 *((volatile unsigned int*)(0x42CE14D8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A23 *((volatile unsigned int*)(0x42CE14DCUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A24 *((volatile unsigned int*)(0x42CE14E0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A25 *((volatile unsigned int*)(0x42CE14E4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A26 *((volatile unsigned int*)(0x42CE14E8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A27 *((volatile unsigned int*)(0x42CE14ECUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A28 *((volatile unsigned int*)(0x42CE14F0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A29 *((volatile unsigned int*)(0x42CE14F4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A30 *((volatile unsigned int*)(0x42CE14F8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A31 *((volatile unsigned int*)(0x42CE14FCUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A32 *((volatile unsigned int*)(0x42CE1500UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A33 *((volatile unsigned int*)(0x42CE1504UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A34 *((volatile unsigned int*)(0x42CE1508UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A35 *((volatile unsigned int*)(0x42CE150CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A36 *((volatile unsigned int*)(0x42CE1510UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A37 *((volatile unsigned int*)(0x42CE1514UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A38 *((volatile unsigned int*)(0x42CE1518UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A39 *((volatile unsigned int*)(0x42CE151CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A40 *((volatile unsigned int*)(0x42CE1520UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A41 *((volatile unsigned int*)(0x42CE1524UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A42 *((volatile unsigned int*)(0x42CE1528UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A43 *((volatile unsigned int*)(0x42CE152CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A44 *((volatile unsigned int*)(0x42CE1530UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A45 *((volatile unsigned int*)(0x42CE1534UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A46 *((volatile unsigned int*)(0x42CE1538UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A47 *((volatile unsigned int*)(0x42CE153CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC0 *((volatile unsigned int*)(0x42CE1560UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC1 *((volatile unsigned int*)(0x42CE1564UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC2 *((volatile unsigned int*)(0x42CE1568UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC3 *((volatile unsigned int*)(0x42CE156CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC4 *((volatile unsigned int*)(0x42CE1570UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC5 *((volatile unsigned int*)(0x42CE1574UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_SA *((volatile unsigned int*)(0x42CE1578UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_AE *((volatile unsigned int*)(0x42CE157CUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A0 *((volatile unsigned int*)(0x42CE1580UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A1 *((volatile unsigned int*)(0x42CE1584UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A2 *((volatile unsigned int*)(0x42CE1588UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A3 *((volatile unsigned int*)(0x42CE158CUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A4 *((volatile unsigned int*)(0x42CE1590UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A5 *((volatile unsigned int*)(0x42CE1594UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A6 *((volatile unsigned int*)(0x42CE1598UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A7 *((volatile unsigned int*)(0x42CE159CUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A8 *((volatile unsigned int*)(0x42CE15A0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A9 *((volatile unsigned int*)(0x42CE15A4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A10 *((volatile unsigned int*)(0x42CE15A8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A11 *((volatile unsigned int*)(0x42CE15ACUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A12 *((volatile unsigned int*)(0x42CE15B0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A13 *((volatile unsigned int*)(0x42CE15B4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A14 *((volatile unsigned int*)(0x42CE15B8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A15 *((volatile unsigned int*)(0x42CE15BCUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A16 *((volatile unsigned int*)(0x42CE15C0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A17 *((volatile unsigned int*)(0x42CE15C4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A18 *((volatile unsigned int*)(0x42CE15C8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A19 *((volatile unsigned int*)(0x42CE15CCUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A20 *((volatile unsigned int*)(0x42CE15D0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A21 *((volatile unsigned int*)(0x42CE15D4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A22 *((volatile unsigned int*)(0x42CE15D8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A23 *((volatile unsigned int*)(0x42CE15DCUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A24 *((volatile unsigned int*)(0x42CE15E0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A25 *((volatile unsigned int*)(0x42CE15E4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A26 *((volatile unsigned int*)(0x42CE15E8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A27 *((volatile unsigned int*)(0x42CE15ECUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A28 *((volatile unsigned int*)(0x42CE15F0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A29 *((volatile unsigned int*)(0x42CE15F4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A30 *((volatile unsigned int*)(0x42CE15F8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A31 *((volatile unsigned int*)(0x42CE15FCUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A32 *((volatile unsigned int*)(0x42CE1600UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A33 *((volatile unsigned int*)(0x42CE1604UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A34 *((volatile unsigned int*)(0x42CE1608UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A35 *((volatile unsigned int*)(0x42CE160CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A36 *((volatile unsigned int*)(0x42CE1610UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A37 *((volatile unsigned int*)(0x42CE1614UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A38 *((volatile unsigned int*)(0x42CE1618UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A39 *((volatile unsigned int*)(0x42CE161CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A40 *((volatile unsigned int*)(0x42CE1620UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A41 *((volatile unsigned int*)(0x42CE1624UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A42 *((volatile unsigned int*)(0x42CE1628UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A43 *((volatile unsigned int*)(0x42CE162CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A44 *((volatile unsigned int*)(0x42CE1630UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A45 *((volatile unsigned int*)(0x42CE1634UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A46 *((volatile unsigned int*)(0x42CE1638UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A47 *((volatile unsigned int*)(0x42CE163CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC0 *((volatile unsigned int*)(0x42CE1660UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC1 *((volatile unsigned int*)(0x42CE1664UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC2 *((volatile unsigned int*)(0x42CE1668UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC3 *((volatile unsigned int*)(0x42CE166CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC4 *((volatile unsigned int*)(0x42CE1670UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC5 *((volatile unsigned int*)(0x42CE1674UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_SA *((volatile unsigned int*)(0x42CE1678UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_AE *((volatile unsigned int*)(0x42CE167CUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A0 *((volatile unsigned int*)(0x42CE1680UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A1 *((volatile unsigned int*)(0x42CE1684UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A2 *((volatile unsigned int*)(0x42CE1688UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A3 *((volatile unsigned int*)(0x42CE168CUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A4 *((volatile unsigned int*)(0x42CE1690UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A5 *((volatile unsigned int*)(0x42CE1694UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A6 *((volatile unsigned int*)(0x42CE1698UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A7 *((volatile unsigned int*)(0x42CE169CUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A8 *((volatile unsigned int*)(0x42CE16A0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A9 *((volatile unsigned int*)(0x42CE16A4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A10 *((volatile unsigned int*)(0x42CE16A8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A11 *((volatile unsigned int*)(0x42CE16ACUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A12 *((volatile unsigned int*)(0x42CE16B0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A13 *((volatile unsigned int*)(0x42CE16B4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A14 *((volatile unsigned int*)(0x42CE16B8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A15 *((volatile unsigned int*)(0x42CE16BCUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A16 *((volatile unsigned int*)(0x42CE16C0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A17 *((volatile unsigned int*)(0x42CE16C4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A18 *((volatile unsigned int*)(0x42CE16C8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A19 *((volatile unsigned int*)(0x42CE16CCUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A20 *((volatile unsigned int*)(0x42CE16D0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A21 *((volatile unsigned int*)(0x42CE16D4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A22 *((volatile unsigned int*)(0x42CE16D8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A23 *((volatile unsigned int*)(0x42CE16DCUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A24 *((volatile unsigned int*)(0x42CE16E0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A25 *((volatile unsigned int*)(0x42CE16E4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A26 *((volatile unsigned int*)(0x42CE16E8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A27 *((volatile unsigned int*)(0x42CE16ECUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A28 *((volatile unsigned int*)(0x42CE16F0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A29 *((volatile unsigned int*)(0x42CE16F4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A30 *((volatile unsigned int*)(0x42CE16F8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A31 *((volatile unsigned int*)(0x42CE16FCUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A32 *((volatile unsigned int*)(0x42CE1700UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A33 *((volatile unsigned int*)(0x42CE1704UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A34 *((volatile unsigned int*)(0x42CE1708UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A35 *((volatile unsigned int*)(0x42CE170CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A36 *((volatile unsigned int*)(0x42CE1710UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A37 *((volatile unsigned int*)(0x42CE1714UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A38 *((volatile unsigned int*)(0x42CE1718UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A39 *((volatile unsigned int*)(0x42CE171CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A40 *((volatile unsigned int*)(0x42CE1720UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A41 *((volatile unsigned int*)(0x42CE1724UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A42 *((volatile unsigned int*)(0x42CE1728UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A43 *((volatile unsigned int*)(0x42CE172CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A44 *((volatile unsigned int*)(0x42CE1730UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A45 *((volatile unsigned int*)(0x42CE1734UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A46 *((volatile unsigned int*)(0x42CE1738UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A47 *((volatile unsigned int*)(0x42CE173CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC0 *((volatile unsigned int*)(0x42CE1760UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC1 *((volatile unsigned int*)(0x42CE1764UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC2 *((volatile unsigned int*)(0x42CE1768UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC3 *((volatile unsigned int*)(0x42CE176CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC4 *((volatile unsigned int*)(0x42CE1770UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC5 *((volatile unsigned int*)(0x42CE1774UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_SA *((volatile unsigned int*)(0x42CE1778UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_AE *((volatile unsigned int*)(0x42CE177CUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A0 *((volatile unsigned int*)(0x42CE1780UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A1 *((volatile unsigned int*)(0x42CE1784UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A2 *((volatile unsigned int*)(0x42CE1788UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A3 *((volatile unsigned int*)(0x42CE178CUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A4 *((volatile unsigned int*)(0x42CE1790UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A5 *((volatile unsigned int*)(0x42CE1794UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A6 *((volatile unsigned int*)(0x42CE1798UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A7 *((volatile unsigned int*)(0x42CE179CUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A8 *((volatile unsigned int*)(0x42CE17A0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A9 *((volatile unsigned int*)(0x42CE17A4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A10 *((volatile unsigned int*)(0x42CE17A8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A11 *((volatile unsigned int*)(0x42CE17ACUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A12 *((volatile unsigned int*)(0x42CE17B0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A13 *((volatile unsigned int*)(0x42CE17B4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A14 *((volatile unsigned int*)(0x42CE17B8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A15 *((volatile unsigned int*)(0x42CE17BCUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A16 *((volatile unsigned int*)(0x42CE17C0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A17 *((volatile unsigned int*)(0x42CE17C4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A18 *((volatile unsigned int*)(0x42CE17C8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A19 *((volatile unsigned int*)(0x42CE17CCUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A20 *((volatile unsigned int*)(0x42CE17D0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A21 *((volatile unsigned int*)(0x42CE17D4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A22 *((volatile unsigned int*)(0x42CE17D8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A23 *((volatile unsigned int*)(0x42CE17DCUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A24 *((volatile unsigned int*)(0x42CE17E0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A25 *((volatile unsigned int*)(0x42CE17E4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A26 *((volatile unsigned int*)(0x42CE17E8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A27 *((volatile unsigned int*)(0x42CE17ECUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A28 *((volatile unsigned int*)(0x42CE17F0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A29 *((volatile unsigned int*)(0x42CE17F4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A30 *((volatile unsigned int*)(0x42CE17F8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A31 *((volatile unsigned int*)(0x42CE17FCUL)) +#define bFM3_ETHERNET_MAC1_RGSR_LM *((volatile unsigned int*)(0x42CE1B00UL)) +#define bFM3_ETHERNET_MAC1_RGSR_LSP0 *((volatile unsigned int*)(0x42CE1B04UL)) +#define bFM3_ETHERNET_MAC1_RGSR_LSP1 *((volatile unsigned int*)(0x42CE1B08UL)) +#define bFM3_ETHERNET_MAC1_RGSR_LS *((volatile unsigned int*)(0x42CE1B0CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSE *((volatile unsigned int*)(0x42CEE000UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TFCU *((volatile unsigned int*)(0x42CEE004UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSI *((volatile unsigned int*)(0x42CEE008UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSU *((volatile unsigned int*)(0x42CEE00CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TITE *((volatile unsigned int*)(0x42CEE010UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TARU *((volatile unsigned int*)(0x42CEE014UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSEA *((volatile unsigned int*)(0x42CEE020UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSDB *((volatile unsigned int*)(0x42CEE024UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSV2E *((volatile unsigned int*)(0x42CEE028UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TETSP *((volatile unsigned int*)(0x42CEE02CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSIP6E *((volatile unsigned int*)(0x42CEE030UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSIP4E *((volatile unsigned int*)(0x42CEE034UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TETSEM *((volatile unsigned int*)(0x42CEE038UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSMRM *((volatile unsigned int*)(0x42CEE03CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSPS0 *((volatile unsigned int*)(0x42CEE040UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSPS1 *((volatile unsigned int*)(0x42CEE044UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSENMF *((volatile unsigned int*)(0x42CEE048UL)) +#define bFM3_ETHERNET_MAC1_TSCR_ATSFC *((volatile unsigned int*)(0x42CEE060UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC0 *((volatile unsigned int*)(0x42CEE080UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC1 *((volatile unsigned int*)(0x42CEE084UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC2 *((volatile unsigned int*)(0x42CEE088UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC3 *((volatile unsigned int*)(0x42CEE08CUL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC4 *((volatile unsigned int*)(0x42CEE090UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC5 *((volatile unsigned int*)(0x42CEE094UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC6 *((volatile unsigned int*)(0x42CEE098UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC7 *((volatile unsigned int*)(0x42CEE09CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS0 *((volatile unsigned int*)(0x42CEE100UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS1 *((volatile unsigned int*)(0x42CEE104UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS2 *((volatile unsigned int*)(0x42CEE108UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS3 *((volatile unsigned int*)(0x42CEE10CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS4 *((volatile unsigned int*)(0x42CEE110UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS5 *((volatile unsigned int*)(0x42CEE114UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS6 *((volatile unsigned int*)(0x42CEE118UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS7 *((volatile unsigned int*)(0x42CEE11CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS8 *((volatile unsigned int*)(0x42CEE120UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS9 *((volatile unsigned int*)(0x42CEE124UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS10 *((volatile unsigned int*)(0x42CEE128UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS11 *((volatile unsigned int*)(0x42CEE12CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS12 *((volatile unsigned int*)(0x42CEE130UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS13 *((volatile unsigned int*)(0x42CEE134UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS14 *((volatile unsigned int*)(0x42CEE138UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS15 *((volatile unsigned int*)(0x42CEE13CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS16 *((volatile unsigned int*)(0x42CEE140UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS17 *((volatile unsigned int*)(0x42CEE144UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS18 *((volatile unsigned int*)(0x42CEE148UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS19 *((volatile unsigned int*)(0x42CEE14CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS20 *((volatile unsigned int*)(0x42CEE150UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS21 *((volatile unsigned int*)(0x42CEE154UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS22 *((volatile unsigned int*)(0x42CEE158UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS23 *((volatile unsigned int*)(0x42CEE15CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS24 *((volatile unsigned int*)(0x42CEE160UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS25 *((volatile unsigned int*)(0x42CEE164UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS26 *((volatile unsigned int*)(0x42CEE168UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS27 *((volatile unsigned int*)(0x42CEE16CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS28 *((volatile unsigned int*)(0x42CEE170UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS29 *((volatile unsigned int*)(0x42CEE174UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS30 *((volatile unsigned int*)(0x42CEE178UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS31 *((volatile unsigned int*)(0x42CEE17CUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS0 *((volatile unsigned int*)(0x42CEE080UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS1 *((volatile unsigned int*)(0x42CEE084UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS2 *((volatile unsigned int*)(0x42CEE088UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS3 *((volatile unsigned int*)(0x42CEE08CUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS4 *((volatile unsigned int*)(0x42CEE090UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS5 *((volatile unsigned int*)(0x42CEE094UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS6 *((volatile unsigned int*)(0x42CEE098UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS7 *((volatile unsigned int*)(0x42CEE09CUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS8 *((volatile unsigned int*)(0x42CEE0A0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS9 *((volatile unsigned int*)(0x42CEE0A4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS10 *((volatile unsigned int*)(0x42CEE0A8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS11 *((volatile unsigned int*)(0x42CEE0ACUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS12 *((volatile unsigned int*)(0x42CEE0B0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS13 *((volatile unsigned int*)(0x42CEE0B4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS14 *((volatile unsigned int*)(0x42CEE0B8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS15 *((volatile unsigned int*)(0x42CEE0BCUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS16 *((volatile unsigned int*)(0x42CEE0C0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS17 *((volatile unsigned int*)(0x42CEE0C4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS18 *((volatile unsigned int*)(0x42CEE0C8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS19 *((volatile unsigned int*)(0x42CEE0CCUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS20 *((volatile unsigned int*)(0x42CEE0D0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS21 *((volatile unsigned int*)(0x42CEE0D4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS22 *((volatile unsigned int*)(0x42CEE0D8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS23 *((volatile unsigned int*)(0x42CEE0DCUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS24 *((volatile unsigned int*)(0x42CEE0E0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS25 *((volatile unsigned int*)(0x42CEE0E4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS26 *((volatile unsigned int*)(0x42CEE0E8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS27 *((volatile unsigned int*)(0x42CEE0ECUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS28 *((volatile unsigned int*)(0x42CEE0F0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS29 *((volatile unsigned int*)(0x42CEE0F4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS30 *((volatile unsigned int*)(0x42CEE0F8UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS0 *((volatile unsigned int*)(0x42CEE200UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS1 *((volatile unsigned int*)(0x42CEE204UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS2 *((volatile unsigned int*)(0x42CEE208UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS3 *((volatile unsigned int*)(0x42CEE20CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS4 *((volatile unsigned int*)(0x42CEE210UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS5 *((volatile unsigned int*)(0x42CEE214UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS6 *((volatile unsigned int*)(0x42CEE218UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS7 *((volatile unsigned int*)(0x42CEE21CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS8 *((volatile unsigned int*)(0x42CEE220UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS9 *((volatile unsigned int*)(0x42CEE224UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS10 *((volatile unsigned int*)(0x42CEE228UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS11 *((volatile unsigned int*)(0x42CEE22CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS12 *((volatile unsigned int*)(0x42CEE230UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS13 *((volatile unsigned int*)(0x42CEE234UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS14 *((volatile unsigned int*)(0x42CEE238UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS15 *((volatile unsigned int*)(0x42CEE23CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS16 *((volatile unsigned int*)(0x42CEE240UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS17 *((volatile unsigned int*)(0x42CEE244UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS18 *((volatile unsigned int*)(0x42CEE248UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS19 *((volatile unsigned int*)(0x42CEE24CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS20 *((volatile unsigned int*)(0x42CEE250UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS21 *((volatile unsigned int*)(0x42CEE254UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS22 *((volatile unsigned int*)(0x42CEE258UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS23 *((volatile unsigned int*)(0x42CEE25CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS24 *((volatile unsigned int*)(0x42CEE260UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS25 *((volatile unsigned int*)(0x42CEE264UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS26 *((volatile unsigned int*)(0x42CEE268UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS27 *((volatile unsigned int*)(0x42CEE26CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS28 *((volatile unsigned int*)(0x42CEE270UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS29 *((volatile unsigned int*)(0x42CEE274UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS30 *((volatile unsigned int*)(0x42CEE278UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS31 *((volatile unsigned int*)(0x42CEE27CUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS0 *((volatile unsigned int*)(0x42CEE280UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS1 *((volatile unsigned int*)(0x42CEE284UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS2 *((volatile unsigned int*)(0x42CEE288UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS3 *((volatile unsigned int*)(0x42CEE28CUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS4 *((volatile unsigned int*)(0x42CEE290UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS5 *((volatile unsigned int*)(0x42CEE294UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS6 *((volatile unsigned int*)(0x42CEE298UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS7 *((volatile unsigned int*)(0x42CEE29CUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS8 *((volatile unsigned int*)(0x42CEE2A0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS9 *((volatile unsigned int*)(0x42CEE2A4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS10 *((volatile unsigned int*)(0x42CEE2A8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS11 *((volatile unsigned int*)(0x42CEE2ACUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS12 *((volatile unsigned int*)(0x42CEE2B0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS13 *((volatile unsigned int*)(0x42CEE2B4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS14 *((volatile unsigned int*)(0x42CEE2B8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS15 *((volatile unsigned int*)(0x42CEE2BCUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS16 *((volatile unsigned int*)(0x42CEE2C0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS17 *((volatile unsigned int*)(0x42CEE2C4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS18 *((volatile unsigned int*)(0x42CEE2C8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS19 *((volatile unsigned int*)(0x42CEE2CCUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS20 *((volatile unsigned int*)(0x42CEE2D0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS21 *((volatile unsigned int*)(0x42CEE2D4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS22 *((volatile unsigned int*)(0x42CEE2D8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS23 *((volatile unsigned int*)(0x42CEE2DCUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS24 *((volatile unsigned int*)(0x42CEE2E0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS25 *((volatile unsigned int*)(0x42CEE2E4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS26 *((volatile unsigned int*)(0x42CEE2E8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS27 *((volatile unsigned int*)(0x42CEE2ECUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS28 *((volatile unsigned int*)(0x42CEE2F0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS29 *((volatile unsigned int*)(0x42CEE2F4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS30 *((volatile unsigned int*)(0x42CEE2F8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_ADDSUB *((volatile unsigned int*)(0x42CEE2FCUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR0 *((volatile unsigned int*)(0x42CEE300UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR1 *((volatile unsigned int*)(0x42CEE304UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR2 *((volatile unsigned int*)(0x42CEE308UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR3 *((volatile unsigned int*)(0x42CEE30CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR4 *((volatile unsigned int*)(0x42CEE310UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR5 *((volatile unsigned int*)(0x42CEE314UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR6 *((volatile unsigned int*)(0x42CEE318UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR7 *((volatile unsigned int*)(0x42CEE31CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR8 *((volatile unsigned int*)(0x42CEE320UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR9 *((volatile unsigned int*)(0x42CEE324UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR10 *((volatile unsigned int*)(0x42CEE328UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR11 *((volatile unsigned int*)(0x42CEE32CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR12 *((volatile unsigned int*)(0x42CEE330UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR13 *((volatile unsigned int*)(0x42CEE334UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR14 *((volatile unsigned int*)(0x42CEE338UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR15 *((volatile unsigned int*)(0x42CEE33CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR16 *((volatile unsigned int*)(0x42CEE340UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR17 *((volatile unsigned int*)(0x42CEE344UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR18 *((volatile unsigned int*)(0x42CEE348UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR19 *((volatile unsigned int*)(0x42CEE34CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR20 *((volatile unsigned int*)(0x42CEE350UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR21 *((volatile unsigned int*)(0x42CEE354UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR22 *((volatile unsigned int*)(0x42CEE358UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR23 *((volatile unsigned int*)(0x42CEE35CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR24 *((volatile unsigned int*)(0x42CEE360UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR25 *((volatile unsigned int*)(0x42CEE364UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR26 *((volatile unsigned int*)(0x42CEE368UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR27 *((volatile unsigned int*)(0x42CEE36CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR28 *((volatile unsigned int*)(0x42CEE370UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR29 *((volatile unsigned int*)(0x42CEE374UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR30 *((volatile unsigned int*)(0x42CEE378UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR31 *((volatile unsigned int*)(0x42CEE37CUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR0 *((volatile unsigned int*)(0x42CEE380UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR1 *((volatile unsigned int*)(0x42CEE384UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR2 *((volatile unsigned int*)(0x42CEE388UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR3 *((volatile unsigned int*)(0x42CEE38CUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR4 *((volatile unsigned int*)(0x42CEE390UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR5 *((volatile unsigned int*)(0x42CEE394UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR6 *((volatile unsigned int*)(0x42CEE398UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR7 *((volatile unsigned int*)(0x42CEE39CUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR8 *((volatile unsigned int*)(0x42CEE3A0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR9 *((volatile unsigned int*)(0x42CEE3A4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR10 *((volatile unsigned int*)(0x42CEE3A8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR11 *((volatile unsigned int*)(0x42CEE3ACUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR12 *((volatile unsigned int*)(0x42CEE3B0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR13 *((volatile unsigned int*)(0x42CEE3B4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR14 *((volatile unsigned int*)(0x42CEE3B8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR15 *((volatile unsigned int*)(0x42CEE3BCUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR16 *((volatile unsigned int*)(0x42CEE3C0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR17 *((volatile unsigned int*)(0x42CEE3C4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR18 *((volatile unsigned int*)(0x42CEE3C8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR19 *((volatile unsigned int*)(0x42CEE3CCUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR20 *((volatile unsigned int*)(0x42CEE3D0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR21 *((volatile unsigned int*)(0x42CEE3D4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR22 *((volatile unsigned int*)(0x42CEE3D8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR23 *((volatile unsigned int*)(0x42CEE3DCUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR24 *((volatile unsigned int*)(0x42CEE3E0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR25 *((volatile unsigned int*)(0x42CEE3E4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR26 *((volatile unsigned int*)(0x42CEE3E8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR27 *((volatile unsigned int*)(0x42CEE3ECUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR28 *((volatile unsigned int*)(0x42CEE3F0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR29 *((volatile unsigned int*)(0x42CEE3F4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR30 *((volatile unsigned int*)(0x42CEE3F8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR31 *((volatile unsigned int*)(0x42CEE3FCUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR0 *((volatile unsigned int*)(0x42CEE400UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR1 *((volatile unsigned int*)(0x42CEE404UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR2 *((volatile unsigned int*)(0x42CEE408UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR3 *((volatile unsigned int*)(0x42CEE40CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR4 *((volatile unsigned int*)(0x42CEE410UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR5 *((volatile unsigned int*)(0x42CEE414UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR6 *((volatile unsigned int*)(0x42CEE418UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR7 *((volatile unsigned int*)(0x42CEE41CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR8 *((volatile unsigned int*)(0x42CEE420UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR9 *((volatile unsigned int*)(0x42CEE424UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR10 *((volatile unsigned int*)(0x42CEE428UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR11 *((volatile unsigned int*)(0x42CEE42CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR12 *((volatile unsigned int*)(0x42CEE430UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR13 *((volatile unsigned int*)(0x42CEE434UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR14 *((volatile unsigned int*)(0x42CEE438UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR15 *((volatile unsigned int*)(0x42CEE43CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR16 *((volatile unsigned int*)(0x42CEE440UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR17 *((volatile unsigned int*)(0x42CEE444UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR18 *((volatile unsigned int*)(0x42CEE448UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR19 *((volatile unsigned int*)(0x42CEE44CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR20 *((volatile unsigned int*)(0x42CEE450UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR21 *((volatile unsigned int*)(0x42CEE454UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR22 *((volatile unsigned int*)(0x42CEE458UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR23 *((volatile unsigned int*)(0x42CEE45CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR24 *((volatile unsigned int*)(0x42CEE460UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR25 *((volatile unsigned int*)(0x42CEE464UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR26 *((volatile unsigned int*)(0x42CEE468UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR27 *((volatile unsigned int*)(0x42CEE46CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR28 *((volatile unsigned int*)(0x42CEE470UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR29 *((volatile unsigned int*)(0x42CEE474UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR30 *((volatile unsigned int*)(0x42CEE478UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42CEE480UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42CEE484UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42CEE488UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42CEE48CUL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42CEE490UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42CEE494UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42CEE498UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42CEE49CUL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42CEE4A0UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42CEE4A4UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42CEE4A8UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42CEE4ACUL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42CEE4B0UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42CEE4B4UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42CEE4B8UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42CEE4BCUL)) +#define bFM3_ETHERNET_MAC1_TSR_TSSOVF *((volatile unsigned int*)(0x42CEE500UL)) +#define bFM3_ETHERNET_MAC1_TSR_TSTART *((volatile unsigned int*)(0x42CEE504UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSTS *((volatile unsigned int*)(0x42CEE508UL)) +#define bFM3_ETHERNET_MAC1_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSSTM *((volatile unsigned int*)(0x42CEE560UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSNS0 *((volatile unsigned int*)(0x42CEE564UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSNS1 *((volatile unsigned int*)(0x42CEE568UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSNS2 *((volatile unsigned int*)(0x42CEE56CUL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42CEE580UL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42CEE584UL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42CEE588UL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42CEE58CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN0 *((volatile unsigned int*)(0x42CEE600UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN1 *((volatile unsigned int*)(0x42CEE604UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN2 *((volatile unsigned int*)(0x42CEE608UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN3 *((volatile unsigned int*)(0x42CEE60CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN4 *((volatile unsigned int*)(0x42CEE610UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN5 *((volatile unsigned int*)(0x42CEE614UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN6 *((volatile unsigned int*)(0x42CEE618UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN7 *((volatile unsigned int*)(0x42CEE61CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN8 *((volatile unsigned int*)(0x42CEE620UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN9 *((volatile unsigned int*)(0x42CEE624UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN10 *((volatile unsigned int*)(0x42CEE628UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN11 *((volatile unsigned int*)(0x42CEE62CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN12 *((volatile unsigned int*)(0x42CEE630UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN13 *((volatile unsigned int*)(0x42CEE634UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN14 *((volatile unsigned int*)(0x42CEE638UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN15 *((volatile unsigned int*)(0x42CEE63CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN16 *((volatile unsigned int*)(0x42CEE640UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN17 *((volatile unsigned int*)(0x42CEE644UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN18 *((volatile unsigned int*)(0x42CEE648UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN19 *((volatile unsigned int*)(0x42CEE64CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN20 *((volatile unsigned int*)(0x42CEE650UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN21 *((volatile unsigned int*)(0x42CEE654UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN22 *((volatile unsigned int*)(0x42CEE658UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN23 *((volatile unsigned int*)(0x42CEE65CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN24 *((volatile unsigned int*)(0x42CEE660UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN25 *((volatile unsigned int*)(0x42CEE664UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN26 *((volatile unsigned int*)(0x42CEE668UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN27 *((volatile unsigned int*)(0x42CEE66CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN28 *((volatile unsigned int*)(0x42CEE670UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN29 *((volatile unsigned int*)(0x42CEE674UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN30 *((volatile unsigned int*)(0x42CEE678UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS0 *((volatile unsigned int*)(0x42CEE680UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS1 *((volatile unsigned int*)(0x42CEE684UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS2 *((volatile unsigned int*)(0x42CEE688UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS3 *((volatile unsigned int*)(0x42CEE68CUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS4 *((volatile unsigned int*)(0x42CEE690UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS5 *((volatile unsigned int*)(0x42CEE694UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS6 *((volatile unsigned int*)(0x42CEE698UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS7 *((volatile unsigned int*)(0x42CEE69CUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS8 *((volatile unsigned int*)(0x42CEE6A0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS9 *((volatile unsigned int*)(0x42CEE6A4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS10 *((volatile unsigned int*)(0x42CEE6A8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS11 *((volatile unsigned int*)(0x42CEE6ACUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS12 *((volatile unsigned int*)(0x42CEE6B0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS13 *((volatile unsigned int*)(0x42CEE6B4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS14 *((volatile unsigned int*)(0x42CEE6B8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS15 *((volatile unsigned int*)(0x42CEE6BCUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS16 *((volatile unsigned int*)(0x42CEE6C0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS17 *((volatile unsigned int*)(0x42CEE6C4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS18 *((volatile unsigned int*)(0x42CEE6C8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS19 *((volatile unsigned int*)(0x42CEE6CCUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS20 *((volatile unsigned int*)(0x42CEE6D0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS21 *((volatile unsigned int*)(0x42CEE6D4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS22 *((volatile unsigned int*)(0x42CEE6D8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS23 *((volatile unsigned int*)(0x42CEE6DCUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS24 *((volatile unsigned int*)(0x42CEE6E0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS25 *((volatile unsigned int*)(0x42CEE6E4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS26 *((volatile unsigned int*)(0x42CEE6E8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS27 *((volatile unsigned int*)(0x42CEE6ECUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS28 *((volatile unsigned int*)(0x42CEE6F0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS29 *((volatile unsigned int*)(0x42CEE6F4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS30 *((volatile unsigned int*)(0x42CEE6F8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS31 *((volatile unsigned int*)(0x42CEE6FCUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A32 *((volatile unsigned int*)(0x42CF0000UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A33 *((volatile unsigned int*)(0x42CF0004UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A34 *((volatile unsigned int*)(0x42CF0008UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A35 *((volatile unsigned int*)(0x42CF000CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A36 *((volatile unsigned int*)(0x42CF0010UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A37 *((volatile unsigned int*)(0x42CF0014UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A38 *((volatile unsigned int*)(0x42CF0018UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A39 *((volatile unsigned int*)(0x42CF001CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A40 *((volatile unsigned int*)(0x42CF0020UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A41 *((volatile unsigned int*)(0x42CF0024UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A42 *((volatile unsigned int*)(0x42CF0028UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A43 *((volatile unsigned int*)(0x42CF002CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A44 *((volatile unsigned int*)(0x42CF0030UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A45 *((volatile unsigned int*)(0x42CF0034UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A46 *((volatile unsigned int*)(0x42CF0038UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A47 *((volatile unsigned int*)(0x42CF003CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC0 *((volatile unsigned int*)(0x42CF0060UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC1 *((volatile unsigned int*)(0x42CF0064UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC2 *((volatile unsigned int*)(0x42CF0068UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC3 *((volatile unsigned int*)(0x42CF006CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC4 *((volatile unsigned int*)(0x42CF0070UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC5 *((volatile unsigned int*)(0x42CF0074UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_SA *((volatile unsigned int*)(0x42CF0078UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_AE *((volatile unsigned int*)(0x42CF007CUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A0 *((volatile unsigned int*)(0x42CF0080UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A1 *((volatile unsigned int*)(0x42CF0084UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A2 *((volatile unsigned int*)(0x42CF0088UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A3 *((volatile unsigned int*)(0x42CF008CUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A4 *((volatile unsigned int*)(0x42CF0090UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A5 *((volatile unsigned int*)(0x42CF0094UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A6 *((volatile unsigned int*)(0x42CF0098UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A7 *((volatile unsigned int*)(0x42CF009CUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A8 *((volatile unsigned int*)(0x42CF00A0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A9 *((volatile unsigned int*)(0x42CF00A4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A10 *((volatile unsigned int*)(0x42CF00A8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A11 *((volatile unsigned int*)(0x42CF00ACUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A12 *((volatile unsigned int*)(0x42CF00B0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A13 *((volatile unsigned int*)(0x42CF00B4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A14 *((volatile unsigned int*)(0x42CF00B8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A15 *((volatile unsigned int*)(0x42CF00BCUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A16 *((volatile unsigned int*)(0x42CF00C0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A17 *((volatile unsigned int*)(0x42CF00C4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A18 *((volatile unsigned int*)(0x42CF00C8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A19 *((volatile unsigned int*)(0x42CF00CCUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A20 *((volatile unsigned int*)(0x42CF00D0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A21 *((volatile unsigned int*)(0x42CF00D4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A22 *((volatile unsigned int*)(0x42CF00D8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A23 *((volatile unsigned int*)(0x42CF00DCUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A24 *((volatile unsigned int*)(0x42CF00E0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A25 *((volatile unsigned int*)(0x42CF00E4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A26 *((volatile unsigned int*)(0x42CF00E8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A27 *((volatile unsigned int*)(0x42CF00ECUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A28 *((volatile unsigned int*)(0x42CF00F0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A29 *((volatile unsigned int*)(0x42CF00F4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A30 *((volatile unsigned int*)(0x42CF00F8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A31 *((volatile unsigned int*)(0x42CF00FCUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A32 *((volatile unsigned int*)(0x42CF0100UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A33 *((volatile unsigned int*)(0x42CF0104UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A34 *((volatile unsigned int*)(0x42CF0108UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A35 *((volatile unsigned int*)(0x42CF010CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A36 *((volatile unsigned int*)(0x42CF0110UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A37 *((volatile unsigned int*)(0x42CF0114UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A38 *((volatile unsigned int*)(0x42CF0118UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A39 *((volatile unsigned int*)(0x42CF011CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A40 *((volatile unsigned int*)(0x42CF0120UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A41 *((volatile unsigned int*)(0x42CF0124UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A42 *((volatile unsigned int*)(0x42CF0128UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A43 *((volatile unsigned int*)(0x42CF012CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A44 *((volatile unsigned int*)(0x42CF0130UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A45 *((volatile unsigned int*)(0x42CF0134UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A46 *((volatile unsigned int*)(0x42CF0138UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A47 *((volatile unsigned int*)(0x42CF013CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC0 *((volatile unsigned int*)(0x42CF0160UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC1 *((volatile unsigned int*)(0x42CF0164UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC2 *((volatile unsigned int*)(0x42CF0168UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC3 *((volatile unsigned int*)(0x42CF016CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC4 *((volatile unsigned int*)(0x42CF0170UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC5 *((volatile unsigned int*)(0x42CF0174UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_SA *((volatile unsigned int*)(0x42CF0178UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_AE *((volatile unsigned int*)(0x42CF017CUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A0 *((volatile unsigned int*)(0x42CF0180UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A1 *((volatile unsigned int*)(0x42CF0184UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A2 *((volatile unsigned int*)(0x42CF0188UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A3 *((volatile unsigned int*)(0x42CF018CUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A4 *((volatile unsigned int*)(0x42CF0190UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A5 *((volatile unsigned int*)(0x42CF0194UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A6 *((volatile unsigned int*)(0x42CF0198UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A7 *((volatile unsigned int*)(0x42CF019CUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A8 *((volatile unsigned int*)(0x42CF01A0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A9 *((volatile unsigned int*)(0x42CF01A4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A10 *((volatile unsigned int*)(0x42CF01A8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A11 *((volatile unsigned int*)(0x42CF01ACUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A12 *((volatile unsigned int*)(0x42CF01B0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A13 *((volatile unsigned int*)(0x42CF01B4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A14 *((volatile unsigned int*)(0x42CF01B8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A15 *((volatile unsigned int*)(0x42CF01BCUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A16 *((volatile unsigned int*)(0x42CF01C0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A17 *((volatile unsigned int*)(0x42CF01C4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A18 *((volatile unsigned int*)(0x42CF01C8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A19 *((volatile unsigned int*)(0x42CF01CCUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A20 *((volatile unsigned int*)(0x42CF01D0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A21 *((volatile unsigned int*)(0x42CF01D4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A22 *((volatile unsigned int*)(0x42CF01D8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A23 *((volatile unsigned int*)(0x42CF01DCUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A24 *((volatile unsigned int*)(0x42CF01E0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A25 *((volatile unsigned int*)(0x42CF01E4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A26 *((volatile unsigned int*)(0x42CF01E8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A27 *((volatile unsigned int*)(0x42CF01ECUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A28 *((volatile unsigned int*)(0x42CF01F0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A29 *((volatile unsigned int*)(0x42CF01F4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A30 *((volatile unsigned int*)(0x42CF01F8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A31 *((volatile unsigned int*)(0x42CF01FCUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A32 *((volatile unsigned int*)(0x42CF0200UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A33 *((volatile unsigned int*)(0x42CF0204UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A34 *((volatile unsigned int*)(0x42CF0208UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A35 *((volatile unsigned int*)(0x42CF020CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A36 *((volatile unsigned int*)(0x42CF0210UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A37 *((volatile unsigned int*)(0x42CF0214UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A38 *((volatile unsigned int*)(0x42CF0218UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A39 *((volatile unsigned int*)(0x42CF021CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A40 *((volatile unsigned int*)(0x42CF0220UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A41 *((volatile unsigned int*)(0x42CF0224UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A42 *((volatile unsigned int*)(0x42CF0228UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A43 *((volatile unsigned int*)(0x42CF022CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A44 *((volatile unsigned int*)(0x42CF0230UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A45 *((volatile unsigned int*)(0x42CF0234UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A46 *((volatile unsigned int*)(0x42CF0238UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A47 *((volatile unsigned int*)(0x42CF023CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC0 *((volatile unsigned int*)(0x42CF0260UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC1 *((volatile unsigned int*)(0x42CF0264UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC2 *((volatile unsigned int*)(0x42CF0268UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC3 *((volatile unsigned int*)(0x42CF026CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC4 *((volatile unsigned int*)(0x42CF0270UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC5 *((volatile unsigned int*)(0x42CF0274UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_SA *((volatile unsigned int*)(0x42CF0278UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_AE *((volatile unsigned int*)(0x42CF027CUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A0 *((volatile unsigned int*)(0x42CF0280UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A1 *((volatile unsigned int*)(0x42CF0284UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A2 *((volatile unsigned int*)(0x42CF0288UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A3 *((volatile unsigned int*)(0x42CF028CUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A4 *((volatile unsigned int*)(0x42CF0290UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A5 *((volatile unsigned int*)(0x42CF0294UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A6 *((volatile unsigned int*)(0x42CF0298UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A7 *((volatile unsigned int*)(0x42CF029CUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A8 *((volatile unsigned int*)(0x42CF02A0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A9 *((volatile unsigned int*)(0x42CF02A4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A10 *((volatile unsigned int*)(0x42CF02A8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A11 *((volatile unsigned int*)(0x42CF02ACUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A12 *((volatile unsigned int*)(0x42CF02B0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A13 *((volatile unsigned int*)(0x42CF02B4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A14 *((volatile unsigned int*)(0x42CF02B8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A15 *((volatile unsigned int*)(0x42CF02BCUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A16 *((volatile unsigned int*)(0x42CF02C0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A17 *((volatile unsigned int*)(0x42CF02C4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A18 *((volatile unsigned int*)(0x42CF02C8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A19 *((volatile unsigned int*)(0x42CF02CCUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A20 *((volatile unsigned int*)(0x42CF02D0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A21 *((volatile unsigned int*)(0x42CF02D4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A22 *((volatile unsigned int*)(0x42CF02D8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A23 *((volatile unsigned int*)(0x42CF02DCUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A24 *((volatile unsigned int*)(0x42CF02E0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A25 *((volatile unsigned int*)(0x42CF02E4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A26 *((volatile unsigned int*)(0x42CF02E8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A27 *((volatile unsigned int*)(0x42CF02ECUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A28 *((volatile unsigned int*)(0x42CF02F0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A29 *((volatile unsigned int*)(0x42CF02F4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A30 *((volatile unsigned int*)(0x42CF02F8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A31 *((volatile unsigned int*)(0x42CF02FCUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A32 *((volatile unsigned int*)(0x42CF0300UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A33 *((volatile unsigned int*)(0x42CF0304UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A34 *((volatile unsigned int*)(0x42CF0308UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A35 *((volatile unsigned int*)(0x42CF030CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A36 *((volatile unsigned int*)(0x42CF0310UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A37 *((volatile unsigned int*)(0x42CF0314UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A38 *((volatile unsigned int*)(0x42CF0318UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A39 *((volatile unsigned int*)(0x42CF031CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A40 *((volatile unsigned int*)(0x42CF0320UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A41 *((volatile unsigned int*)(0x42CF0324UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A42 *((volatile unsigned int*)(0x42CF0328UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A43 *((volatile unsigned int*)(0x42CF032CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A44 *((volatile unsigned int*)(0x42CF0330UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A45 *((volatile unsigned int*)(0x42CF0334UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A46 *((volatile unsigned int*)(0x42CF0338UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A47 *((volatile unsigned int*)(0x42CF033CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC0 *((volatile unsigned int*)(0x42CF0360UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC1 *((volatile unsigned int*)(0x42CF0364UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC2 *((volatile unsigned int*)(0x42CF0368UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC3 *((volatile unsigned int*)(0x42CF036CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC4 *((volatile unsigned int*)(0x42CF0370UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC5 *((volatile unsigned int*)(0x42CF0374UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_SA *((volatile unsigned int*)(0x42CF0378UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_AE *((volatile unsigned int*)(0x42CF037CUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A0 *((volatile unsigned int*)(0x42CF0380UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A1 *((volatile unsigned int*)(0x42CF0384UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A2 *((volatile unsigned int*)(0x42CF0388UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A3 *((volatile unsigned int*)(0x42CF038CUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A4 *((volatile unsigned int*)(0x42CF0390UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A5 *((volatile unsigned int*)(0x42CF0394UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A6 *((volatile unsigned int*)(0x42CF0398UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A7 *((volatile unsigned int*)(0x42CF039CUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A8 *((volatile unsigned int*)(0x42CF03A0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A9 *((volatile unsigned int*)(0x42CF03A4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A10 *((volatile unsigned int*)(0x42CF03A8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A11 *((volatile unsigned int*)(0x42CF03ACUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A12 *((volatile unsigned int*)(0x42CF03B0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A13 *((volatile unsigned int*)(0x42CF03B4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A14 *((volatile unsigned int*)(0x42CF03B8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A15 *((volatile unsigned int*)(0x42CF03BCUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A16 *((volatile unsigned int*)(0x42CF03C0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A17 *((volatile unsigned int*)(0x42CF03C4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A18 *((volatile unsigned int*)(0x42CF03C8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A19 *((volatile unsigned int*)(0x42CF03CCUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A20 *((volatile unsigned int*)(0x42CF03D0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A21 *((volatile unsigned int*)(0x42CF03D4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A22 *((volatile unsigned int*)(0x42CF03D8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A23 *((volatile unsigned int*)(0x42CF03DCUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A24 *((volatile unsigned int*)(0x42CF03E0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A25 *((volatile unsigned int*)(0x42CF03E4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A26 *((volatile unsigned int*)(0x42CF03E8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A27 *((volatile unsigned int*)(0x42CF03ECUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A28 *((volatile unsigned int*)(0x42CF03F0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A29 *((volatile unsigned int*)(0x42CF03F4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A30 *((volatile unsigned int*)(0x42CF03F8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A31 *((volatile unsigned int*)(0x42CF03FCUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A32 *((volatile unsigned int*)(0x42CF0400UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A33 *((volatile unsigned int*)(0x42CF0404UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A34 *((volatile unsigned int*)(0x42CF0408UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A35 *((volatile unsigned int*)(0x42CF040CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A36 *((volatile unsigned int*)(0x42CF0410UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A37 *((volatile unsigned int*)(0x42CF0414UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A38 *((volatile unsigned int*)(0x42CF0418UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A39 *((volatile unsigned int*)(0x42CF041CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A40 *((volatile unsigned int*)(0x42CF0420UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A41 *((volatile unsigned int*)(0x42CF0424UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A42 *((volatile unsigned int*)(0x42CF0428UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A43 *((volatile unsigned int*)(0x42CF042CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A44 *((volatile unsigned int*)(0x42CF0430UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A45 *((volatile unsigned int*)(0x42CF0434UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A46 *((volatile unsigned int*)(0x42CF0438UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A47 *((volatile unsigned int*)(0x42CF043CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC0 *((volatile unsigned int*)(0x42CF0460UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC1 *((volatile unsigned int*)(0x42CF0464UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC2 *((volatile unsigned int*)(0x42CF0468UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC3 *((volatile unsigned int*)(0x42CF046CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC4 *((volatile unsigned int*)(0x42CF0470UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC5 *((volatile unsigned int*)(0x42CF0474UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_SA *((volatile unsigned int*)(0x42CF0478UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_AE *((volatile unsigned int*)(0x42CF047CUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A0 *((volatile unsigned int*)(0x42CF0480UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A1 *((volatile unsigned int*)(0x42CF0484UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A2 *((volatile unsigned int*)(0x42CF0488UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A3 *((volatile unsigned int*)(0x42CF048CUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A4 *((volatile unsigned int*)(0x42CF0490UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A5 *((volatile unsigned int*)(0x42CF0494UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A6 *((volatile unsigned int*)(0x42CF0498UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A7 *((volatile unsigned int*)(0x42CF049CUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A8 *((volatile unsigned int*)(0x42CF04A0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A9 *((volatile unsigned int*)(0x42CF04A4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A10 *((volatile unsigned int*)(0x42CF04A8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A11 *((volatile unsigned int*)(0x42CF04ACUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A12 *((volatile unsigned int*)(0x42CF04B0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A13 *((volatile unsigned int*)(0x42CF04B4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A14 *((volatile unsigned int*)(0x42CF04B8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A15 *((volatile unsigned int*)(0x42CF04BCUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A16 *((volatile unsigned int*)(0x42CF04C0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A17 *((volatile unsigned int*)(0x42CF04C4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A18 *((volatile unsigned int*)(0x42CF04C8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A19 *((volatile unsigned int*)(0x42CF04CCUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A20 *((volatile unsigned int*)(0x42CF04D0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A21 *((volatile unsigned int*)(0x42CF04D4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A22 *((volatile unsigned int*)(0x42CF04D8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A23 *((volatile unsigned int*)(0x42CF04DCUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A24 *((volatile unsigned int*)(0x42CF04E0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A25 *((volatile unsigned int*)(0x42CF04E4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A26 *((volatile unsigned int*)(0x42CF04E8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A27 *((volatile unsigned int*)(0x42CF04ECUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A28 *((volatile unsigned int*)(0x42CF04F0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A29 *((volatile unsigned int*)(0x42CF04F4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A30 *((volatile unsigned int*)(0x42CF04F8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A31 *((volatile unsigned int*)(0x42CF04FCUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A32 *((volatile unsigned int*)(0x42CF0500UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A33 *((volatile unsigned int*)(0x42CF0504UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A34 *((volatile unsigned int*)(0x42CF0508UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A35 *((volatile unsigned int*)(0x42CF050CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A36 *((volatile unsigned int*)(0x42CF0510UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A37 *((volatile unsigned int*)(0x42CF0514UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A38 *((volatile unsigned int*)(0x42CF0518UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A39 *((volatile unsigned int*)(0x42CF051CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A40 *((volatile unsigned int*)(0x42CF0520UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A41 *((volatile unsigned int*)(0x42CF0524UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A42 *((volatile unsigned int*)(0x42CF0528UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A43 *((volatile unsigned int*)(0x42CF052CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A44 *((volatile unsigned int*)(0x42CF0530UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A45 *((volatile unsigned int*)(0x42CF0534UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A46 *((volatile unsigned int*)(0x42CF0538UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A47 *((volatile unsigned int*)(0x42CF053CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC0 *((volatile unsigned int*)(0x42CF0560UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC1 *((volatile unsigned int*)(0x42CF0564UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC2 *((volatile unsigned int*)(0x42CF0568UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC3 *((volatile unsigned int*)(0x42CF056CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC4 *((volatile unsigned int*)(0x42CF0570UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC5 *((volatile unsigned int*)(0x42CF0574UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_SA *((volatile unsigned int*)(0x42CF0578UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_AE *((volatile unsigned int*)(0x42CF057CUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A0 *((volatile unsigned int*)(0x42CF0580UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A1 *((volatile unsigned int*)(0x42CF0584UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A2 *((volatile unsigned int*)(0x42CF0588UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A3 *((volatile unsigned int*)(0x42CF058CUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A4 *((volatile unsigned int*)(0x42CF0590UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A5 *((volatile unsigned int*)(0x42CF0594UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A6 *((volatile unsigned int*)(0x42CF0598UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A7 *((volatile unsigned int*)(0x42CF059CUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A8 *((volatile unsigned int*)(0x42CF05A0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A9 *((volatile unsigned int*)(0x42CF05A4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A10 *((volatile unsigned int*)(0x42CF05A8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A11 *((volatile unsigned int*)(0x42CF05ACUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A12 *((volatile unsigned int*)(0x42CF05B0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A13 *((volatile unsigned int*)(0x42CF05B4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A14 *((volatile unsigned int*)(0x42CF05B8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A15 *((volatile unsigned int*)(0x42CF05BCUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A16 *((volatile unsigned int*)(0x42CF05C0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A17 *((volatile unsigned int*)(0x42CF05C4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A18 *((volatile unsigned int*)(0x42CF05C8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A19 *((volatile unsigned int*)(0x42CF05CCUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A20 *((volatile unsigned int*)(0x42CF05D0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A21 *((volatile unsigned int*)(0x42CF05D4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A22 *((volatile unsigned int*)(0x42CF05D8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A23 *((volatile unsigned int*)(0x42CF05DCUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A24 *((volatile unsigned int*)(0x42CF05E0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A25 *((volatile unsigned int*)(0x42CF05E4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A26 *((volatile unsigned int*)(0x42CF05E8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A27 *((volatile unsigned int*)(0x42CF05ECUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A28 *((volatile unsigned int*)(0x42CF05F0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A29 *((volatile unsigned int*)(0x42CF05F4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A30 *((volatile unsigned int*)(0x42CF05F8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A31 *((volatile unsigned int*)(0x42CF05FCUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A32 *((volatile unsigned int*)(0x42CF0600UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A33 *((volatile unsigned int*)(0x42CF0604UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A34 *((volatile unsigned int*)(0x42CF0608UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A35 *((volatile unsigned int*)(0x42CF060CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A36 *((volatile unsigned int*)(0x42CF0610UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A37 *((volatile unsigned int*)(0x42CF0614UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A38 *((volatile unsigned int*)(0x42CF0618UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A39 *((volatile unsigned int*)(0x42CF061CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A40 *((volatile unsigned int*)(0x42CF0620UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A41 *((volatile unsigned int*)(0x42CF0624UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A42 *((volatile unsigned int*)(0x42CF0628UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A43 *((volatile unsigned int*)(0x42CF062CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A44 *((volatile unsigned int*)(0x42CF0630UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A45 *((volatile unsigned int*)(0x42CF0634UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A46 *((volatile unsigned int*)(0x42CF0638UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A47 *((volatile unsigned int*)(0x42CF063CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC0 *((volatile unsigned int*)(0x42CF0660UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC1 *((volatile unsigned int*)(0x42CF0664UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC2 *((volatile unsigned int*)(0x42CF0668UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC3 *((volatile unsigned int*)(0x42CF066CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC4 *((volatile unsigned int*)(0x42CF0670UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC5 *((volatile unsigned int*)(0x42CF0674UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_SA *((volatile unsigned int*)(0x42CF0678UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_AE *((volatile unsigned int*)(0x42CF067CUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A0 *((volatile unsigned int*)(0x42CF0680UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A1 *((volatile unsigned int*)(0x42CF0684UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A2 *((volatile unsigned int*)(0x42CF0688UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A3 *((volatile unsigned int*)(0x42CF068CUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A4 *((volatile unsigned int*)(0x42CF0690UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A5 *((volatile unsigned int*)(0x42CF0694UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A6 *((volatile unsigned int*)(0x42CF0698UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A7 *((volatile unsigned int*)(0x42CF069CUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A8 *((volatile unsigned int*)(0x42CF06A0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A9 *((volatile unsigned int*)(0x42CF06A4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A10 *((volatile unsigned int*)(0x42CF06A8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A11 *((volatile unsigned int*)(0x42CF06ACUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A12 *((volatile unsigned int*)(0x42CF06B0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A13 *((volatile unsigned int*)(0x42CF06B4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A14 *((volatile unsigned int*)(0x42CF06B8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A15 *((volatile unsigned int*)(0x42CF06BCUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A16 *((volatile unsigned int*)(0x42CF06C0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A17 *((volatile unsigned int*)(0x42CF06C4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A18 *((volatile unsigned int*)(0x42CF06C8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A19 *((volatile unsigned int*)(0x42CF06CCUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A20 *((volatile unsigned int*)(0x42CF06D0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A21 *((volatile unsigned int*)(0x42CF06D4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A22 *((volatile unsigned int*)(0x42CF06D8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A23 *((volatile unsigned int*)(0x42CF06DCUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A24 *((volatile unsigned int*)(0x42CF06E0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A25 *((volatile unsigned int*)(0x42CF06E4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A26 *((volatile unsigned int*)(0x42CF06E8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A27 *((volatile unsigned int*)(0x42CF06ECUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A28 *((volatile unsigned int*)(0x42CF06F0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A29 *((volatile unsigned int*)(0x42CF06F4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A30 *((volatile unsigned int*)(0x42CF06F8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A31 *((volatile unsigned int*)(0x42CF06FCUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A32 *((volatile unsigned int*)(0x42CF0700UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A33 *((volatile unsigned int*)(0x42CF0704UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A34 *((volatile unsigned int*)(0x42CF0708UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A35 *((volatile unsigned int*)(0x42CF070CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A36 *((volatile unsigned int*)(0x42CF0710UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A37 *((volatile unsigned int*)(0x42CF0714UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A38 *((volatile unsigned int*)(0x42CF0718UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A39 *((volatile unsigned int*)(0x42CF071CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A40 *((volatile unsigned int*)(0x42CF0720UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A41 *((volatile unsigned int*)(0x42CF0724UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A42 *((volatile unsigned int*)(0x42CF0728UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A43 *((volatile unsigned int*)(0x42CF072CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A44 *((volatile unsigned int*)(0x42CF0730UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A45 *((volatile unsigned int*)(0x42CF0734UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A46 *((volatile unsigned int*)(0x42CF0738UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A47 *((volatile unsigned int*)(0x42CF073CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC0 *((volatile unsigned int*)(0x42CF0760UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC1 *((volatile unsigned int*)(0x42CF0764UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC2 *((volatile unsigned int*)(0x42CF0768UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC3 *((volatile unsigned int*)(0x42CF076CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC4 *((volatile unsigned int*)(0x42CF0770UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC5 *((volatile unsigned int*)(0x42CF0774UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_SA *((volatile unsigned int*)(0x42CF0778UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_AE *((volatile unsigned int*)(0x42CF077CUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A0 *((volatile unsigned int*)(0x42CF0780UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A1 *((volatile unsigned int*)(0x42CF0784UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A2 *((volatile unsigned int*)(0x42CF0788UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A3 *((volatile unsigned int*)(0x42CF078CUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A4 *((volatile unsigned int*)(0x42CF0790UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A5 *((volatile unsigned int*)(0x42CF0794UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A6 *((volatile unsigned int*)(0x42CF0798UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A7 *((volatile unsigned int*)(0x42CF079CUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A8 *((volatile unsigned int*)(0x42CF07A0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A9 *((volatile unsigned int*)(0x42CF07A4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A10 *((volatile unsigned int*)(0x42CF07A8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A11 *((volatile unsigned int*)(0x42CF07ACUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A12 *((volatile unsigned int*)(0x42CF07B0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A13 *((volatile unsigned int*)(0x42CF07B4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A14 *((volatile unsigned int*)(0x42CF07B8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A15 *((volatile unsigned int*)(0x42CF07BCUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A16 *((volatile unsigned int*)(0x42CF07C0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A17 *((volatile unsigned int*)(0x42CF07C4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A18 *((volatile unsigned int*)(0x42CF07C8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A19 *((volatile unsigned int*)(0x42CF07CCUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A20 *((volatile unsigned int*)(0x42CF07D0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A21 *((volatile unsigned int*)(0x42CF07D4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A22 *((volatile unsigned int*)(0x42CF07D8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A23 *((volatile unsigned int*)(0x42CF07DCUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A24 *((volatile unsigned int*)(0x42CF07E0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A25 *((volatile unsigned int*)(0x42CF07E4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A26 *((volatile unsigned int*)(0x42CF07E8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A27 *((volatile unsigned int*)(0x42CF07ECUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A28 *((volatile unsigned int*)(0x42CF07F0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A29 *((volatile unsigned int*)(0x42CF07F4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A30 *((volatile unsigned int*)(0x42CF07F8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A31 *((volatile unsigned int*)(0x42CF07FCUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A32 *((volatile unsigned int*)(0x42CF0800UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A33 *((volatile unsigned int*)(0x42CF0804UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A34 *((volatile unsigned int*)(0x42CF0808UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A35 *((volatile unsigned int*)(0x42CF080CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A36 *((volatile unsigned int*)(0x42CF0810UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A37 *((volatile unsigned int*)(0x42CF0814UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A38 *((volatile unsigned int*)(0x42CF0818UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A39 *((volatile unsigned int*)(0x42CF081CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A40 *((volatile unsigned int*)(0x42CF0820UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A41 *((volatile unsigned int*)(0x42CF0824UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A42 *((volatile unsigned int*)(0x42CF0828UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A43 *((volatile unsigned int*)(0x42CF082CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A44 *((volatile unsigned int*)(0x42CF0830UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A45 *((volatile unsigned int*)(0x42CF0834UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A46 *((volatile unsigned int*)(0x42CF0838UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A47 *((volatile unsigned int*)(0x42CF083CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC0 *((volatile unsigned int*)(0x42CF0860UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC1 *((volatile unsigned int*)(0x42CF0864UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC2 *((volatile unsigned int*)(0x42CF0868UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC3 *((volatile unsigned int*)(0x42CF086CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC4 *((volatile unsigned int*)(0x42CF0870UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC5 *((volatile unsigned int*)(0x42CF0874UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_SA *((volatile unsigned int*)(0x42CF0878UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_AE *((volatile unsigned int*)(0x42CF087CUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A0 *((volatile unsigned int*)(0x42CF0880UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A1 *((volatile unsigned int*)(0x42CF0884UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A2 *((volatile unsigned int*)(0x42CF0888UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A3 *((volatile unsigned int*)(0x42CF088CUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A4 *((volatile unsigned int*)(0x42CF0890UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A5 *((volatile unsigned int*)(0x42CF0894UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A6 *((volatile unsigned int*)(0x42CF0898UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A7 *((volatile unsigned int*)(0x42CF089CUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A8 *((volatile unsigned int*)(0x42CF08A0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A9 *((volatile unsigned int*)(0x42CF08A4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A10 *((volatile unsigned int*)(0x42CF08A8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A11 *((volatile unsigned int*)(0x42CF08ACUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A12 *((volatile unsigned int*)(0x42CF08B0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A13 *((volatile unsigned int*)(0x42CF08B4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A14 *((volatile unsigned int*)(0x42CF08B8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A15 *((volatile unsigned int*)(0x42CF08BCUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A16 *((volatile unsigned int*)(0x42CF08C0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A17 *((volatile unsigned int*)(0x42CF08C4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A18 *((volatile unsigned int*)(0x42CF08C8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A19 *((volatile unsigned int*)(0x42CF08CCUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A20 *((volatile unsigned int*)(0x42CF08D0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A21 *((volatile unsigned int*)(0x42CF08D4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A22 *((volatile unsigned int*)(0x42CF08D8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A23 *((volatile unsigned int*)(0x42CF08DCUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A24 *((volatile unsigned int*)(0x42CF08E0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A25 *((volatile unsigned int*)(0x42CF08E4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A26 *((volatile unsigned int*)(0x42CF08E8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A27 *((volatile unsigned int*)(0x42CF08ECUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A28 *((volatile unsigned int*)(0x42CF08F0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A29 *((volatile unsigned int*)(0x42CF08F4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A30 *((volatile unsigned int*)(0x42CF08F8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A31 *((volatile unsigned int*)(0x42CF08FCUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A32 *((volatile unsigned int*)(0x42CF0900UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A33 *((volatile unsigned int*)(0x42CF0904UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A34 *((volatile unsigned int*)(0x42CF0908UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A35 *((volatile unsigned int*)(0x42CF090CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A36 *((volatile unsigned int*)(0x42CF0910UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A37 *((volatile unsigned int*)(0x42CF0914UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A38 *((volatile unsigned int*)(0x42CF0918UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A39 *((volatile unsigned int*)(0x42CF091CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A40 *((volatile unsigned int*)(0x42CF0920UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A41 *((volatile unsigned int*)(0x42CF0924UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A42 *((volatile unsigned int*)(0x42CF0928UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A43 *((volatile unsigned int*)(0x42CF092CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A44 *((volatile unsigned int*)(0x42CF0930UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A45 *((volatile unsigned int*)(0x42CF0934UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A46 *((volatile unsigned int*)(0x42CF0938UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A47 *((volatile unsigned int*)(0x42CF093CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC0 *((volatile unsigned int*)(0x42CF0960UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC1 *((volatile unsigned int*)(0x42CF0964UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC2 *((volatile unsigned int*)(0x42CF0968UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC3 *((volatile unsigned int*)(0x42CF096CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC4 *((volatile unsigned int*)(0x42CF0970UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC5 *((volatile unsigned int*)(0x42CF0974UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_SA *((volatile unsigned int*)(0x42CF0978UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_AE *((volatile unsigned int*)(0x42CF097CUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A0 *((volatile unsigned int*)(0x42CF0980UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A1 *((volatile unsigned int*)(0x42CF0984UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A2 *((volatile unsigned int*)(0x42CF0988UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A3 *((volatile unsigned int*)(0x42CF098CUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A4 *((volatile unsigned int*)(0x42CF0990UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A5 *((volatile unsigned int*)(0x42CF0994UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A6 *((volatile unsigned int*)(0x42CF0998UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A7 *((volatile unsigned int*)(0x42CF099CUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A8 *((volatile unsigned int*)(0x42CF09A0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A9 *((volatile unsigned int*)(0x42CF09A4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A10 *((volatile unsigned int*)(0x42CF09A8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A11 *((volatile unsigned int*)(0x42CF09ACUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A12 *((volatile unsigned int*)(0x42CF09B0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A13 *((volatile unsigned int*)(0x42CF09B4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A14 *((volatile unsigned int*)(0x42CF09B8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A15 *((volatile unsigned int*)(0x42CF09BCUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A16 *((volatile unsigned int*)(0x42CF09C0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A17 *((volatile unsigned int*)(0x42CF09C4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A18 *((volatile unsigned int*)(0x42CF09C8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A19 *((volatile unsigned int*)(0x42CF09CCUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A20 *((volatile unsigned int*)(0x42CF09D0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A21 *((volatile unsigned int*)(0x42CF09D4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A22 *((volatile unsigned int*)(0x42CF09D8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A23 *((volatile unsigned int*)(0x42CF09DCUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A24 *((volatile unsigned int*)(0x42CF09E0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A25 *((volatile unsigned int*)(0x42CF09E4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A26 *((volatile unsigned int*)(0x42CF09E8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A27 *((volatile unsigned int*)(0x42CF09ECUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A28 *((volatile unsigned int*)(0x42CF09F0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A29 *((volatile unsigned int*)(0x42CF09F4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A30 *((volatile unsigned int*)(0x42CF09F8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A31 *((volatile unsigned int*)(0x42CF09FCUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A32 *((volatile unsigned int*)(0x42CF0A00UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A33 *((volatile unsigned int*)(0x42CF0A04UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A34 *((volatile unsigned int*)(0x42CF0A08UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A35 *((volatile unsigned int*)(0x42CF0A0CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A36 *((volatile unsigned int*)(0x42CF0A10UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A37 *((volatile unsigned int*)(0x42CF0A14UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A38 *((volatile unsigned int*)(0x42CF0A18UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A39 *((volatile unsigned int*)(0x42CF0A1CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A40 *((volatile unsigned int*)(0x42CF0A20UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A41 *((volatile unsigned int*)(0x42CF0A24UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A42 *((volatile unsigned int*)(0x42CF0A28UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A43 *((volatile unsigned int*)(0x42CF0A2CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A44 *((volatile unsigned int*)(0x42CF0A30UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A45 *((volatile unsigned int*)(0x42CF0A34UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A46 *((volatile unsigned int*)(0x42CF0A38UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A47 *((volatile unsigned int*)(0x42CF0A3CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC0 *((volatile unsigned int*)(0x42CF0A60UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC1 *((volatile unsigned int*)(0x42CF0A64UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC2 *((volatile unsigned int*)(0x42CF0A68UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC3 *((volatile unsigned int*)(0x42CF0A6CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC4 *((volatile unsigned int*)(0x42CF0A70UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC5 *((volatile unsigned int*)(0x42CF0A74UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_SA *((volatile unsigned int*)(0x42CF0A78UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_AE *((volatile unsigned int*)(0x42CF0A7CUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A0 *((volatile unsigned int*)(0x42CF0A80UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A1 *((volatile unsigned int*)(0x42CF0A84UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A2 *((volatile unsigned int*)(0x42CF0A88UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A3 *((volatile unsigned int*)(0x42CF0A8CUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A4 *((volatile unsigned int*)(0x42CF0A90UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A5 *((volatile unsigned int*)(0x42CF0A94UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A6 *((volatile unsigned int*)(0x42CF0A98UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A7 *((volatile unsigned int*)(0x42CF0A9CUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A8 *((volatile unsigned int*)(0x42CF0AA0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A9 *((volatile unsigned int*)(0x42CF0AA4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A10 *((volatile unsigned int*)(0x42CF0AA8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A11 *((volatile unsigned int*)(0x42CF0AACUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A12 *((volatile unsigned int*)(0x42CF0AB0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A13 *((volatile unsigned int*)(0x42CF0AB4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A14 *((volatile unsigned int*)(0x42CF0AB8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A15 *((volatile unsigned int*)(0x42CF0ABCUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A16 *((volatile unsigned int*)(0x42CF0AC0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A17 *((volatile unsigned int*)(0x42CF0AC4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A18 *((volatile unsigned int*)(0x42CF0AC8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A19 *((volatile unsigned int*)(0x42CF0ACCUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A20 *((volatile unsigned int*)(0x42CF0AD0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A21 *((volatile unsigned int*)(0x42CF0AD4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A22 *((volatile unsigned int*)(0x42CF0AD8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A23 *((volatile unsigned int*)(0x42CF0ADCUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A24 *((volatile unsigned int*)(0x42CF0AE0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A25 *((volatile unsigned int*)(0x42CF0AE4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A26 *((volatile unsigned int*)(0x42CF0AE8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A27 *((volatile unsigned int*)(0x42CF0AECUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A28 *((volatile unsigned int*)(0x42CF0AF0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A29 *((volatile unsigned int*)(0x42CF0AF4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A30 *((volatile unsigned int*)(0x42CF0AF8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A31 *((volatile unsigned int*)(0x42CF0AFCUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A32 *((volatile unsigned int*)(0x42CF0B00UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A33 *((volatile unsigned int*)(0x42CF0B04UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A34 *((volatile unsigned int*)(0x42CF0B08UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A35 *((volatile unsigned int*)(0x42CF0B0CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A36 *((volatile unsigned int*)(0x42CF0B10UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A37 *((volatile unsigned int*)(0x42CF0B14UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A38 *((volatile unsigned int*)(0x42CF0B18UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A39 *((volatile unsigned int*)(0x42CF0B1CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A40 *((volatile unsigned int*)(0x42CF0B20UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A41 *((volatile unsigned int*)(0x42CF0B24UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A42 *((volatile unsigned int*)(0x42CF0B28UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A43 *((volatile unsigned int*)(0x42CF0B2CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A44 *((volatile unsigned int*)(0x42CF0B30UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A45 *((volatile unsigned int*)(0x42CF0B34UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A46 *((volatile unsigned int*)(0x42CF0B38UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A47 *((volatile unsigned int*)(0x42CF0B3CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC0 *((volatile unsigned int*)(0x42CF0B60UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC1 *((volatile unsigned int*)(0x42CF0B64UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC2 *((volatile unsigned int*)(0x42CF0B68UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC3 *((volatile unsigned int*)(0x42CF0B6CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC4 *((volatile unsigned int*)(0x42CF0B70UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC5 *((volatile unsigned int*)(0x42CF0B74UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_SA *((volatile unsigned int*)(0x42CF0B78UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_AE *((volatile unsigned int*)(0x42CF0B7CUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A0 *((volatile unsigned int*)(0x42CF0B80UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A1 *((volatile unsigned int*)(0x42CF0B84UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A2 *((volatile unsigned int*)(0x42CF0B88UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A3 *((volatile unsigned int*)(0x42CF0B8CUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A4 *((volatile unsigned int*)(0x42CF0B90UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A5 *((volatile unsigned int*)(0x42CF0B94UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A6 *((volatile unsigned int*)(0x42CF0B98UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A7 *((volatile unsigned int*)(0x42CF0B9CUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A8 *((volatile unsigned int*)(0x42CF0BA0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A9 *((volatile unsigned int*)(0x42CF0BA4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A10 *((volatile unsigned int*)(0x42CF0BA8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A11 *((volatile unsigned int*)(0x42CF0BACUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A12 *((volatile unsigned int*)(0x42CF0BB0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A13 *((volatile unsigned int*)(0x42CF0BB4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A14 *((volatile unsigned int*)(0x42CF0BB8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A15 *((volatile unsigned int*)(0x42CF0BBCUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A16 *((volatile unsigned int*)(0x42CF0BC0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A17 *((volatile unsigned int*)(0x42CF0BC4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A18 *((volatile unsigned int*)(0x42CF0BC8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A19 *((volatile unsigned int*)(0x42CF0BCCUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A20 *((volatile unsigned int*)(0x42CF0BD0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A21 *((volatile unsigned int*)(0x42CF0BD4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A22 *((volatile unsigned int*)(0x42CF0BD8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A23 *((volatile unsigned int*)(0x42CF0BDCUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A24 *((volatile unsigned int*)(0x42CF0BE0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A25 *((volatile unsigned int*)(0x42CF0BE4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A26 *((volatile unsigned int*)(0x42CF0BE8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A27 *((volatile unsigned int*)(0x42CF0BECUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A28 *((volatile unsigned int*)(0x42CF0BF0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A29 *((volatile unsigned int*)(0x42CF0BF4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A30 *((volatile unsigned int*)(0x42CF0BF8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A31 *((volatile unsigned int*)(0x42CF0BFCUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A32 *((volatile unsigned int*)(0x42CF0C00UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A33 *((volatile unsigned int*)(0x42CF0C04UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A34 *((volatile unsigned int*)(0x42CF0C08UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A35 *((volatile unsigned int*)(0x42CF0C0CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A36 *((volatile unsigned int*)(0x42CF0C10UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A37 *((volatile unsigned int*)(0x42CF0C14UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A38 *((volatile unsigned int*)(0x42CF0C18UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A39 *((volatile unsigned int*)(0x42CF0C1CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A40 *((volatile unsigned int*)(0x42CF0C20UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A41 *((volatile unsigned int*)(0x42CF0C24UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A42 *((volatile unsigned int*)(0x42CF0C28UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A43 *((volatile unsigned int*)(0x42CF0C2CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A44 *((volatile unsigned int*)(0x42CF0C30UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A45 *((volatile unsigned int*)(0x42CF0C34UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A46 *((volatile unsigned int*)(0x42CF0C38UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A47 *((volatile unsigned int*)(0x42CF0C3CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC0 *((volatile unsigned int*)(0x42CF0C60UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC1 *((volatile unsigned int*)(0x42CF0C64UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC2 *((volatile unsigned int*)(0x42CF0C68UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC3 *((volatile unsigned int*)(0x42CF0C6CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC4 *((volatile unsigned int*)(0x42CF0C70UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC5 *((volatile unsigned int*)(0x42CF0C74UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_SA *((volatile unsigned int*)(0x42CF0C78UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_AE *((volatile unsigned int*)(0x42CF0C7CUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A0 *((volatile unsigned int*)(0x42CF0C80UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A1 *((volatile unsigned int*)(0x42CF0C84UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A2 *((volatile unsigned int*)(0x42CF0C88UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A3 *((volatile unsigned int*)(0x42CF0C8CUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A4 *((volatile unsigned int*)(0x42CF0C90UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A5 *((volatile unsigned int*)(0x42CF0C94UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A6 *((volatile unsigned int*)(0x42CF0C98UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A7 *((volatile unsigned int*)(0x42CF0C9CUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A8 *((volatile unsigned int*)(0x42CF0CA0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A9 *((volatile unsigned int*)(0x42CF0CA4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A10 *((volatile unsigned int*)(0x42CF0CA8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A11 *((volatile unsigned int*)(0x42CF0CACUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A12 *((volatile unsigned int*)(0x42CF0CB0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A13 *((volatile unsigned int*)(0x42CF0CB4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A14 *((volatile unsigned int*)(0x42CF0CB8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A15 *((volatile unsigned int*)(0x42CF0CBCUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A16 *((volatile unsigned int*)(0x42CF0CC0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A17 *((volatile unsigned int*)(0x42CF0CC4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A18 *((volatile unsigned int*)(0x42CF0CC8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A19 *((volatile unsigned int*)(0x42CF0CCCUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A20 *((volatile unsigned int*)(0x42CF0CD0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A21 *((volatile unsigned int*)(0x42CF0CD4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A22 *((volatile unsigned int*)(0x42CF0CD8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A23 *((volatile unsigned int*)(0x42CF0CDCUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A24 *((volatile unsigned int*)(0x42CF0CE0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A25 *((volatile unsigned int*)(0x42CF0CE4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A26 *((volatile unsigned int*)(0x42CF0CE8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A27 *((volatile unsigned int*)(0x42CF0CECUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A28 *((volatile unsigned int*)(0x42CF0CF0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A29 *((volatile unsigned int*)(0x42CF0CF4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A30 *((volatile unsigned int*)(0x42CF0CF8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A31 *((volatile unsigned int*)(0x42CF0CFCUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A32 *((volatile unsigned int*)(0x42CF0D00UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A33 *((volatile unsigned int*)(0x42CF0D04UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A34 *((volatile unsigned int*)(0x42CF0D08UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A35 *((volatile unsigned int*)(0x42CF0D0CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A36 *((volatile unsigned int*)(0x42CF0D10UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A37 *((volatile unsigned int*)(0x42CF0D14UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A38 *((volatile unsigned int*)(0x42CF0D18UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A39 *((volatile unsigned int*)(0x42CF0D1CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A40 *((volatile unsigned int*)(0x42CF0D20UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A41 *((volatile unsigned int*)(0x42CF0D24UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A42 *((volatile unsigned int*)(0x42CF0D28UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A43 *((volatile unsigned int*)(0x42CF0D2CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A44 *((volatile unsigned int*)(0x42CF0D30UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A45 *((volatile unsigned int*)(0x42CF0D34UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A46 *((volatile unsigned int*)(0x42CF0D38UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A47 *((volatile unsigned int*)(0x42CF0D3CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC0 *((volatile unsigned int*)(0x42CF0D60UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC1 *((volatile unsigned int*)(0x42CF0D64UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC2 *((volatile unsigned int*)(0x42CF0D68UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC3 *((volatile unsigned int*)(0x42CF0D6CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC4 *((volatile unsigned int*)(0x42CF0D70UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC5 *((volatile unsigned int*)(0x42CF0D74UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_SA *((volatile unsigned int*)(0x42CF0D78UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_AE *((volatile unsigned int*)(0x42CF0D7CUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A0 *((volatile unsigned int*)(0x42CF0D80UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A1 *((volatile unsigned int*)(0x42CF0D84UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A2 *((volatile unsigned int*)(0x42CF0D88UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A3 *((volatile unsigned int*)(0x42CF0D8CUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A4 *((volatile unsigned int*)(0x42CF0D90UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A5 *((volatile unsigned int*)(0x42CF0D94UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A6 *((volatile unsigned int*)(0x42CF0D98UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A7 *((volatile unsigned int*)(0x42CF0D9CUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A8 *((volatile unsigned int*)(0x42CF0DA0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A9 *((volatile unsigned int*)(0x42CF0DA4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A10 *((volatile unsigned int*)(0x42CF0DA8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A11 *((volatile unsigned int*)(0x42CF0DACUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A12 *((volatile unsigned int*)(0x42CF0DB0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A13 *((volatile unsigned int*)(0x42CF0DB4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A14 *((volatile unsigned int*)(0x42CF0DB8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A15 *((volatile unsigned int*)(0x42CF0DBCUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A16 *((volatile unsigned int*)(0x42CF0DC0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A17 *((volatile unsigned int*)(0x42CF0DC4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A18 *((volatile unsigned int*)(0x42CF0DC8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A19 *((volatile unsigned int*)(0x42CF0DCCUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A20 *((volatile unsigned int*)(0x42CF0DD0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A21 *((volatile unsigned int*)(0x42CF0DD4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A22 *((volatile unsigned int*)(0x42CF0DD8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A23 *((volatile unsigned int*)(0x42CF0DDCUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A24 *((volatile unsigned int*)(0x42CF0DE0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A25 *((volatile unsigned int*)(0x42CF0DE4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A26 *((volatile unsigned int*)(0x42CF0DE8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A27 *((volatile unsigned int*)(0x42CF0DECUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A28 *((volatile unsigned int*)(0x42CF0DF0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A29 *((volatile unsigned int*)(0x42CF0DF4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A30 *((volatile unsigned int*)(0x42CF0DF8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A31 *((volatile unsigned int*)(0x42CF0DFCUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A32 *((volatile unsigned int*)(0x42CF0E00UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A33 *((volatile unsigned int*)(0x42CF0E04UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A34 *((volatile unsigned int*)(0x42CF0E08UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A35 *((volatile unsigned int*)(0x42CF0E0CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A36 *((volatile unsigned int*)(0x42CF0E10UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A37 *((volatile unsigned int*)(0x42CF0E14UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A38 *((volatile unsigned int*)(0x42CF0E18UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A39 *((volatile unsigned int*)(0x42CF0E1CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A40 *((volatile unsigned int*)(0x42CF0E20UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A41 *((volatile unsigned int*)(0x42CF0E24UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A42 *((volatile unsigned int*)(0x42CF0E28UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A43 *((volatile unsigned int*)(0x42CF0E2CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A44 *((volatile unsigned int*)(0x42CF0E30UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A45 *((volatile unsigned int*)(0x42CF0E34UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A46 *((volatile unsigned int*)(0x42CF0E38UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A47 *((volatile unsigned int*)(0x42CF0E3CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC0 *((volatile unsigned int*)(0x42CF0E60UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC1 *((volatile unsigned int*)(0x42CF0E64UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC2 *((volatile unsigned int*)(0x42CF0E68UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC3 *((volatile unsigned int*)(0x42CF0E6CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC4 *((volatile unsigned int*)(0x42CF0E70UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC5 *((volatile unsigned int*)(0x42CF0E74UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_SA *((volatile unsigned int*)(0x42CF0E78UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_AE *((volatile unsigned int*)(0x42CF0E7CUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A0 *((volatile unsigned int*)(0x42CF0E80UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A1 *((volatile unsigned int*)(0x42CF0E84UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A2 *((volatile unsigned int*)(0x42CF0E88UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A3 *((volatile unsigned int*)(0x42CF0E8CUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A4 *((volatile unsigned int*)(0x42CF0E90UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A5 *((volatile unsigned int*)(0x42CF0E94UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A6 *((volatile unsigned int*)(0x42CF0E98UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A7 *((volatile unsigned int*)(0x42CF0E9CUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A8 *((volatile unsigned int*)(0x42CF0EA0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A9 *((volatile unsigned int*)(0x42CF0EA4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A10 *((volatile unsigned int*)(0x42CF0EA8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A11 *((volatile unsigned int*)(0x42CF0EACUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A12 *((volatile unsigned int*)(0x42CF0EB0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A13 *((volatile unsigned int*)(0x42CF0EB4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A14 *((volatile unsigned int*)(0x42CF0EB8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A15 *((volatile unsigned int*)(0x42CF0EBCUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A16 *((volatile unsigned int*)(0x42CF0EC0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A17 *((volatile unsigned int*)(0x42CF0EC4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A18 *((volatile unsigned int*)(0x42CF0EC8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A19 *((volatile unsigned int*)(0x42CF0ECCUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A20 *((volatile unsigned int*)(0x42CF0ED0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A21 *((volatile unsigned int*)(0x42CF0ED4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A22 *((volatile unsigned int*)(0x42CF0ED8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A23 *((volatile unsigned int*)(0x42CF0EDCUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A24 *((volatile unsigned int*)(0x42CF0EE0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A25 *((volatile unsigned int*)(0x42CF0EE4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A26 *((volatile unsigned int*)(0x42CF0EE8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A27 *((volatile unsigned int*)(0x42CF0EECUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A28 *((volatile unsigned int*)(0x42CF0EF0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A29 *((volatile unsigned int*)(0x42CF0EF4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A30 *((volatile unsigned int*)(0x42CF0EF8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A31 *((volatile unsigned int*)(0x42CF0EFCUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A32 *((volatile unsigned int*)(0x42CF0F00UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A33 *((volatile unsigned int*)(0x42CF0F04UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A34 *((volatile unsigned int*)(0x42CF0F08UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A35 *((volatile unsigned int*)(0x42CF0F0CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A36 *((volatile unsigned int*)(0x42CF0F10UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A37 *((volatile unsigned int*)(0x42CF0F14UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A38 *((volatile unsigned int*)(0x42CF0F18UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A39 *((volatile unsigned int*)(0x42CF0F1CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A40 *((volatile unsigned int*)(0x42CF0F20UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A41 *((volatile unsigned int*)(0x42CF0F24UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A42 *((volatile unsigned int*)(0x42CF0F28UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A43 *((volatile unsigned int*)(0x42CF0F2CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A44 *((volatile unsigned int*)(0x42CF0F30UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A45 *((volatile unsigned int*)(0x42CF0F34UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A46 *((volatile unsigned int*)(0x42CF0F38UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A47 *((volatile unsigned int*)(0x42CF0F3CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC0 *((volatile unsigned int*)(0x42CF0F60UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC1 *((volatile unsigned int*)(0x42CF0F64UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC2 *((volatile unsigned int*)(0x42CF0F68UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC3 *((volatile unsigned int*)(0x42CF0F6CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC4 *((volatile unsigned int*)(0x42CF0F70UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC5 *((volatile unsigned int*)(0x42CF0F74UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_SA *((volatile unsigned int*)(0x42CF0F78UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_AE *((volatile unsigned int*)(0x42CF0F7CUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A0 *((volatile unsigned int*)(0x42CF0F80UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A1 *((volatile unsigned int*)(0x42CF0F84UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A2 *((volatile unsigned int*)(0x42CF0F88UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A3 *((volatile unsigned int*)(0x42CF0F8CUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A4 *((volatile unsigned int*)(0x42CF0F90UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A5 *((volatile unsigned int*)(0x42CF0F94UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A6 *((volatile unsigned int*)(0x42CF0F98UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A7 *((volatile unsigned int*)(0x42CF0F9CUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A8 *((volatile unsigned int*)(0x42CF0FA0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A9 *((volatile unsigned int*)(0x42CF0FA4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A10 *((volatile unsigned int*)(0x42CF0FA8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A11 *((volatile unsigned int*)(0x42CF0FACUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A12 *((volatile unsigned int*)(0x42CF0FB0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A13 *((volatile unsigned int*)(0x42CF0FB4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A14 *((volatile unsigned int*)(0x42CF0FB8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A15 *((volatile unsigned int*)(0x42CF0FBCUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A16 *((volatile unsigned int*)(0x42CF0FC0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A17 *((volatile unsigned int*)(0x42CF0FC4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A18 *((volatile unsigned int*)(0x42CF0FC8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A19 *((volatile unsigned int*)(0x42CF0FCCUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A20 *((volatile unsigned int*)(0x42CF0FD0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A21 *((volatile unsigned int*)(0x42CF0FD4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A22 *((volatile unsigned int*)(0x42CF0FD8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A23 *((volatile unsigned int*)(0x42CF0FDCUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A24 *((volatile unsigned int*)(0x42CF0FE0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A25 *((volatile unsigned int*)(0x42CF0FE4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A26 *((volatile unsigned int*)(0x42CF0FE8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A27 *((volatile unsigned int*)(0x42CF0FECUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A28 *((volatile unsigned int*)(0x42CF0FF0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A29 *((volatile unsigned int*)(0x42CF0FF4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A30 *((volatile unsigned int*)(0x42CF0FF8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A31 *((volatile unsigned int*)(0x42CF0FFCUL)) +#define bFM3_ETHERNET_MAC1_BMR_SWR *((volatile unsigned int*)(0x42D00000UL)) +#define bFM3_ETHERNET_MAC1_BMR_DA *((volatile unsigned int*)(0x42D00004UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL0 *((volatile unsigned int*)(0x42D00008UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL1 *((volatile unsigned int*)(0x42D0000CUL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL2 *((volatile unsigned int*)(0x42D00010UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL3 *((volatile unsigned int*)(0x42D00014UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL4 *((volatile unsigned int*)(0x42D00018UL)) +#define bFM3_ETHERNET_MAC1_BMR_ATDS *((volatile unsigned int*)(0x42D0001CUL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL0 *((volatile unsigned int*)(0x42D00020UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL1 *((volatile unsigned int*)(0x42D00024UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL2 *((volatile unsigned int*)(0x42D00028UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL3 *((volatile unsigned int*)(0x42D0002CUL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL4 *((volatile unsigned int*)(0x42D00030UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL5 *((volatile unsigned int*)(0x42D00034UL)) +#define bFM3_ETHERNET_MAC1_BMR_PR0 *((volatile unsigned int*)(0x42D00038UL)) +#define bFM3_ETHERNET_MAC1_BMR_PR1 *((volatile unsigned int*)(0x42D0003CUL)) +#define bFM3_ETHERNET_MAC1_BMR_FB *((volatile unsigned int*)(0x42D00040UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL0 *((volatile unsigned int*)(0x42D00044UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL1 *((volatile unsigned int*)(0x42D00048UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL2 *((volatile unsigned int*)(0x42D0004CUL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL3 *((volatile unsigned int*)(0x42D00050UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL4 *((volatile unsigned int*)(0x42D00054UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL5 *((volatile unsigned int*)(0x42D00058UL)) +#define bFM3_ETHERNET_MAC1_BMR_USP *((volatile unsigned int*)(0x42D0005CUL)) +#define bFM3_ETHERNET_MAC1_BMR_8XPBL *((volatile unsigned int*)(0x42D00060UL)) +#define bFM3_ETHERNET_MAC1_BMR_AAL *((volatile unsigned int*)(0x42D00064UL)) +#define bFM3_ETHERNET_MAC1_BMR_MB *((volatile unsigned int*)(0x42D00068UL)) +#define bFM3_ETHERNET_MAC1_BMR_TXPR *((volatile unsigned int*)(0x42D0006CUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD0 *((volatile unsigned int*)(0x42D00080UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD1 *((volatile unsigned int*)(0x42D00084UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD2 *((volatile unsigned int*)(0x42D00088UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD3 *((volatile unsigned int*)(0x42D0008CUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD4 *((volatile unsigned int*)(0x42D00090UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD5 *((volatile unsigned int*)(0x42D00094UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD6 *((volatile unsigned int*)(0x42D00098UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD7 *((volatile unsigned int*)(0x42D0009CUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD8 *((volatile unsigned int*)(0x42D000A0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD9 *((volatile unsigned int*)(0x42D000A4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD10 *((volatile unsigned int*)(0x42D000A8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD11 *((volatile unsigned int*)(0x42D000ACUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD12 *((volatile unsigned int*)(0x42D000B0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD13 *((volatile unsigned int*)(0x42D000B4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD14 *((volatile unsigned int*)(0x42D000B8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD15 *((volatile unsigned int*)(0x42D000BCUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD16 *((volatile unsigned int*)(0x42D000C0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD17 *((volatile unsigned int*)(0x42D000C4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD18 *((volatile unsigned int*)(0x42D000C8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD19 *((volatile unsigned int*)(0x42D000CCUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD20 *((volatile unsigned int*)(0x42D000D0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD21 *((volatile unsigned int*)(0x42D000D4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD22 *((volatile unsigned int*)(0x42D000D8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD23 *((volatile unsigned int*)(0x42D000DCUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD24 *((volatile unsigned int*)(0x42D000E0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD25 *((volatile unsigned int*)(0x42D000E4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD26 *((volatile unsigned int*)(0x42D000E8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD27 *((volatile unsigned int*)(0x42D000ECUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD28 *((volatile unsigned int*)(0x42D000F0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD29 *((volatile unsigned int*)(0x42D000F4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD30 *((volatile unsigned int*)(0x42D000F8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD31 *((volatile unsigned int*)(0x42D000FCUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD0 *((volatile unsigned int*)(0x42D00100UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD1 *((volatile unsigned int*)(0x42D00104UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD2 *((volatile unsigned int*)(0x42D00108UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD3 *((volatile unsigned int*)(0x42D0010CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD4 *((volatile unsigned int*)(0x42D00110UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD5 *((volatile unsigned int*)(0x42D00114UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD6 *((volatile unsigned int*)(0x42D00118UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD7 *((volatile unsigned int*)(0x42D0011CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD8 *((volatile unsigned int*)(0x42D00120UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD9 *((volatile unsigned int*)(0x42D00124UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD10 *((volatile unsigned int*)(0x42D00128UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD11 *((volatile unsigned int*)(0x42D0012CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD12 *((volatile unsigned int*)(0x42D00130UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD13 *((volatile unsigned int*)(0x42D00134UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD14 *((volatile unsigned int*)(0x42D00138UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD15 *((volatile unsigned int*)(0x42D0013CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD16 *((volatile unsigned int*)(0x42D00140UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD17 *((volatile unsigned int*)(0x42D00144UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD18 *((volatile unsigned int*)(0x42D00148UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD19 *((volatile unsigned int*)(0x42D0014CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD20 *((volatile unsigned int*)(0x42D00150UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD21 *((volatile unsigned int*)(0x42D00154UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD22 *((volatile unsigned int*)(0x42D00158UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD23 *((volatile unsigned int*)(0x42D0015CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD24 *((volatile unsigned int*)(0x42D00160UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD25 *((volatile unsigned int*)(0x42D00164UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD26 *((volatile unsigned int*)(0x42D00168UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD27 *((volatile unsigned int*)(0x42D0016CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD28 *((volatile unsigned int*)(0x42D00170UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD29 *((volatile unsigned int*)(0x42D00174UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD30 *((volatile unsigned int*)(0x42D00178UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD31 *((volatile unsigned int*)(0x42D0017CUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL2 *((volatile unsigned int*)(0x42D00188UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL3 *((volatile unsigned int*)(0x42D0018CUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL4 *((volatile unsigned int*)(0x42D00190UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL5 *((volatile unsigned int*)(0x42D00194UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL6 *((volatile unsigned int*)(0x42D00198UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL7 *((volatile unsigned int*)(0x42D0019CUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL8 *((volatile unsigned int*)(0x42D001A0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL9 *((volatile unsigned int*)(0x42D001A4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL10 *((volatile unsigned int*)(0x42D001A8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL11 *((volatile unsigned int*)(0x42D001ACUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL12 *((volatile unsigned int*)(0x42D001B0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL13 *((volatile unsigned int*)(0x42D001B4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL14 *((volatile unsigned int*)(0x42D001B8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL15 *((volatile unsigned int*)(0x42D001BCUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL16 *((volatile unsigned int*)(0x42D001C0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL17 *((volatile unsigned int*)(0x42D001C4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL18 *((volatile unsigned int*)(0x42D001C8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL19 *((volatile unsigned int*)(0x42D001CCUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL20 *((volatile unsigned int*)(0x42D001D0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL21 *((volatile unsigned int*)(0x42D001D4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL22 *((volatile unsigned int*)(0x42D001D8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL23 *((volatile unsigned int*)(0x42D001DCUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL24 *((volatile unsigned int*)(0x42D001E0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL25 *((volatile unsigned int*)(0x42D001E4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL26 *((volatile unsigned int*)(0x42D001E8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL27 *((volatile unsigned int*)(0x42D001ECUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL28 *((volatile unsigned int*)(0x42D001F0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL29 *((volatile unsigned int*)(0x42D001F4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL30 *((volatile unsigned int*)(0x42D001F8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL31 *((volatile unsigned int*)(0x42D001FCUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL2 *((volatile unsigned int*)(0x42D00208UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL3 *((volatile unsigned int*)(0x42D0020CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL4 *((volatile unsigned int*)(0x42D00210UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL5 *((volatile unsigned int*)(0x42D00214UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL6 *((volatile unsigned int*)(0x42D00218UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL7 *((volatile unsigned int*)(0x42D0021CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL8 *((volatile unsigned int*)(0x42D00220UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL9 *((volatile unsigned int*)(0x42D00224UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL10 *((volatile unsigned int*)(0x42D00228UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL11 *((volatile unsigned int*)(0x42D0022CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL12 *((volatile unsigned int*)(0x42D00230UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL13 *((volatile unsigned int*)(0x42D00234UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL14 *((volatile unsigned int*)(0x42D00238UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL15 *((volatile unsigned int*)(0x42D0023CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL16 *((volatile unsigned int*)(0x42D00240UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL17 *((volatile unsigned int*)(0x42D00244UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL18 *((volatile unsigned int*)(0x42D00248UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL19 *((volatile unsigned int*)(0x42D0024CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL20 *((volatile unsigned int*)(0x42D00250UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL21 *((volatile unsigned int*)(0x42D00254UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL22 *((volatile unsigned int*)(0x42D00258UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL23 *((volatile unsigned int*)(0x42D0025CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL24 *((volatile unsigned int*)(0x42D00260UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL25 *((volatile unsigned int*)(0x42D00264UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL26 *((volatile unsigned int*)(0x42D00268UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL27 *((volatile unsigned int*)(0x42D0026CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL28 *((volatile unsigned int*)(0x42D00270UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL29 *((volatile unsigned int*)(0x42D00274UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL30 *((volatile unsigned int*)(0x42D00278UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL31 *((volatile unsigned int*)(0x42D0027CUL)) +#define bFM3_ETHERNET_MAC1_SR_TI *((volatile unsigned int*)(0x42D00280UL)) +#define bFM3_ETHERNET_MAC1_SR_TPS *((volatile unsigned int*)(0x42D00284UL)) +#define bFM3_ETHERNET_MAC1_SR_TU *((volatile unsigned int*)(0x42D00288UL)) +#define bFM3_ETHERNET_MAC1_SR_TJT *((volatile unsigned int*)(0x42D0028CUL)) +#define bFM3_ETHERNET_MAC1_SR_OVF *((volatile unsigned int*)(0x42D00290UL)) +#define bFM3_ETHERNET_MAC1_SR_UNF *((volatile unsigned int*)(0x42D00294UL)) +#define bFM3_ETHERNET_MAC1_SR_RI *((volatile unsigned int*)(0x42D00298UL)) +#define bFM3_ETHERNET_MAC1_SR_RU *((volatile unsigned int*)(0x42D0029CUL)) +#define bFM3_ETHERNET_MAC1_SR_RPS *((volatile unsigned int*)(0x42D002A0UL)) +#define bFM3_ETHERNET_MAC1_SR_RWT *((volatile unsigned int*)(0x42D002A4UL)) +#define bFM3_ETHERNET_MAC1_SR_ETI *((volatile unsigned int*)(0x42D002A8UL)) +#define bFM3_ETHERNET_MAC1_SR_FBI *((volatile unsigned int*)(0x42D002B4UL)) +#define bFM3_ETHERNET_MAC1_SR_ERI *((volatile unsigned int*)(0x42D002B8UL)) +#define bFM3_ETHERNET_MAC1_SR_AIS *((volatile unsigned int*)(0x42D002BCUL)) +#define bFM3_ETHERNET_MAC1_SR_NIS *((volatile unsigned int*)(0x42D002C0UL)) +#define bFM3_ETHERNET_MAC1_SR_RS0 *((volatile unsigned int*)(0x42D002C4UL)) +#define bFM3_ETHERNET_MAC1_SR_RS1 *((volatile unsigned int*)(0x42D002C8UL)) +#define bFM3_ETHERNET_MAC1_SR_RS2 *((volatile unsigned int*)(0x42D002CCUL)) +#define bFM3_ETHERNET_MAC1_SR_TS0 *((volatile unsigned int*)(0x42D002D0UL)) +#define bFM3_ETHERNET_MAC1_SR_TS1 *((volatile unsigned int*)(0x42D002D4UL)) +#define bFM3_ETHERNET_MAC1_SR_TS2 *((volatile unsigned int*)(0x42D002D8UL)) +#define bFM3_ETHERNET_MAC1_SR_EB0 *((volatile unsigned int*)(0x42D002DCUL)) +#define bFM3_ETHERNET_MAC1_SR_EB1 *((volatile unsigned int*)(0x42D002E0UL)) +#define bFM3_ETHERNET_MAC1_SR_EB2 *((volatile unsigned int*)(0x42D002E4UL)) +#define bFM3_ETHERNET_MAC1_SR_GLI *((volatile unsigned int*)(0x42D002E8UL)) +#define bFM3_ETHERNET_MAC1_SR_GMI *((volatile unsigned int*)(0x42D002ECUL)) +#define bFM3_ETHERNET_MAC1_SR_GPI *((volatile unsigned int*)(0x42D002F0UL)) +#define bFM3_ETHERNET_MAC1_SR_TTI *((volatile unsigned int*)(0x42D002F4UL)) +#define bFM3_ETHERNET_MAC1_SR_GLPII *((volatile unsigned int*)(0x42D002F8UL)) +#define bFM3_ETHERNET_MAC1_OMR_SR *((volatile unsigned int*)(0x42D00304UL)) +#define bFM3_ETHERNET_MAC1_OMR_OSF *((volatile unsigned int*)(0x42D00308UL)) +#define bFM3_ETHERNET_MAC1_OMR_RTC0 *((volatile unsigned int*)(0x42D0030CUL)) +#define bFM3_ETHERNET_MAC1_OMR_RTC1 *((volatile unsigned int*)(0x42D00310UL)) +#define bFM3_ETHERNET_MAC1_OMR_FUF *((volatile unsigned int*)(0x42D00318UL)) +#define bFM3_ETHERNET_MAC1_OMR_FEF *((volatile unsigned int*)(0x42D0031CUL)) +#define bFM3_ETHERNET_MAC1_OMR_ST *((volatile unsigned int*)(0x42D00334UL)) +#define bFM3_ETHERNET_MAC1_OMR_TTC0 *((volatile unsigned int*)(0x42D00338UL)) +#define bFM3_ETHERNET_MAC1_OMR_TTC1 *((volatile unsigned int*)(0x42D0033CUL)) +#define bFM3_ETHERNET_MAC1_OMR_TTC2 *((volatile unsigned int*)(0x42D00340UL)) +#define bFM3_ETHERNET_MAC1_OMR_FTF *((volatile unsigned int*)(0x42D00350UL)) +#define bFM3_ETHERNET_MAC1_OMR_TSF *((volatile unsigned int*)(0x42D00354UL)) +#define bFM3_ETHERNET_MAC1_OMR_DFF *((volatile unsigned int*)(0x42D00360UL)) +#define bFM3_ETHERNET_MAC1_OMR_RSF *((volatile unsigned int*)(0x42D00364UL)) +#define bFM3_ETHERNET_MAC1_OMR_DT *((volatile unsigned int*)(0x42D00368UL)) +#define bFM3_ETHERNET_MAC1_IER_TIE *((volatile unsigned int*)(0x42D00380UL)) +#define bFM3_ETHERNET_MAC1_IER_TSE *((volatile unsigned int*)(0x42D00384UL)) +#define bFM3_ETHERNET_MAC1_IER_TUE *((volatile unsigned int*)(0x42D00388UL)) +#define bFM3_ETHERNET_MAC1_IER_TJE *((volatile unsigned int*)(0x42D0038CUL)) +#define bFM3_ETHERNET_MAC1_IER_OVE *((volatile unsigned int*)(0x42D00390UL)) +#define bFM3_ETHERNET_MAC1_IER_UNE *((volatile unsigned int*)(0x42D00394UL)) +#define bFM3_ETHERNET_MAC1_IER_RIE *((volatile unsigned int*)(0x42D00398UL)) +#define bFM3_ETHERNET_MAC1_IER_RUE *((volatile unsigned int*)(0x42D0039CUL)) +#define bFM3_ETHERNET_MAC1_IER_RSE *((volatile unsigned int*)(0x42D003A0UL)) +#define bFM3_ETHERNET_MAC1_IER_RWE *((volatile unsigned int*)(0x42D003A4UL)) +#define bFM3_ETHERNET_MAC1_IER_ETE *((volatile unsigned int*)(0x42D003A8UL)) +#define bFM3_ETHERNET_MAC1_IER_FBE *((volatile unsigned int*)(0x42D003B4UL)) +#define bFM3_ETHERNET_MAC1_IER_ERE *((volatile unsigned int*)(0x42D003B8UL)) +#define bFM3_ETHERNET_MAC1_IER_AIE *((volatile unsigned int*)(0x42D003BCUL)) +#define bFM3_ETHERNET_MAC1_IER_NIE *((volatile unsigned int*)(0x42D003C0UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42D00400UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42D00404UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42D00408UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42D0040CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42D00410UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42D00414UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42D00418UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42D0041CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42D00420UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42D00424UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42D00428UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42D0042CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42D00430UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42D00434UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42D00438UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42D0043CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFH *((volatile unsigned int*)(0x42D00440UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42D00444UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42D00448UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42D0044CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42D00450UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42D00454UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42D00458UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42D0045CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42D00460UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42D00464UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42D00468UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42D0046CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFF *((volatile unsigned int*)(0x42D00470UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT0 *((volatile unsigned int*)(0x42D00480UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT1 *((volatile unsigned int*)(0x42D00484UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT2 *((volatile unsigned int*)(0x42D00488UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT3 *((volatile unsigned int*)(0x42D0048CUL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT4 *((volatile unsigned int*)(0x42D00490UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT5 *((volatile unsigned int*)(0x42D00494UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT6 *((volatile unsigned int*)(0x42D00498UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT7 *((volatile unsigned int*)(0x42D0049CUL)) +#define bFM3_ETHERNET_MAC1_AHBSR_AHBS *((volatile unsigned int*)(0x42D00580UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42D00900UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42D00904UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42D00908UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42D0090CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42D00910UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42D00914UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42D00918UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42D0091CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42D00920UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42D00924UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42D00928UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42D0092CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42D00930UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42D00934UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42D00938UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42D0093CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42D00940UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42D00944UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42D00948UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42D0094CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42D00950UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42D00954UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42D00958UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42D0095CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42D00960UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42D00964UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42D00968UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42D0096CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42D00970UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42D00974UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42D00978UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42D0097CUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42D00980UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42D00984UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42D00988UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42D0098CUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42D00990UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42D00994UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42D00998UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42D0099CUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42D009A0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42D009A4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42D009A8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42D009ACUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42D009B0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42D009B4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42D009B8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42D009BCUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42D009C0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42D009C4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42D009C8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42D009CCUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42D009D0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42D009D4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42D009D8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42D009DCUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42D009E0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42D009E4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42D009E8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42D009ECUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42D009F0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42D009F4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42D009F8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42D009FCUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42D00A00UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42D00A04UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42D00A08UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42D00A0CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42D00A10UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42D00A14UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42D00A18UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42D00A1CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42D00A20UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42D00A24UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42D00A28UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42D00A2CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42D00A30UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42D00A34UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42D00A38UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42D00A3CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42D00A40UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42D00A44UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42D00A48UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42D00A4CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42D00A50UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42D00A54UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42D00A58UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42D00A5CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42D00A60UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42D00A64UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42D00A68UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42D00A6CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42D00A70UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42D00A74UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42D00A78UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42D00A7CUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42D00A80UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42D00A84UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42D00A88UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42D00A8CUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42D00A90UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42D00A94UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42D00A98UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42D00A9CUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42D00AA0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42D00AA4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42D00AA8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42D00AACUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42D00AB0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42D00AB4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42D00AB8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42D00ABCUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42D00AC0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42D00AC4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42D00AC8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42D00ACCUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42D00AD0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42D00AD4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42D00AD8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42D00ADCUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42D00AE0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42D00AE4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42D00AE8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42D00AECUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42D00AF0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42D00AF4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42D00AF8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42D00AFCUL)) + +#ifdef __cplusplus +} +#endif + +#endif /* _MB9BF618S_H_ */ + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h new file mode 100644 index 0000000000..b75c77ba6b --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h @@ -0,0 +1,29338 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/* */ +/* Header File for Device MB9B610T */ +/* Version V1.2 */ +/* Date 2012-02-23 */ +/* */ +/************************************************************************/ + +/****************************************************************************** + * History + * Date Ver Description + * 2011-08-04 1.0 Initial + * 2011-10-04 1.1 Added FBFCR register + * Removed the following bits from the bit fields + * - TMD bits of WFSAxx register in MFT + * - MD bits of PPGCx register in PPG + * - FMD bits of TMCR register in BT + * - MD bits of SMR register in MFS + * 2012-02-23 1.2 Added the following bits to the bit fields + * - TMD bits of WFSAxx register in MFT + * - MD bits of PPGCx register in PPG + * - FMD bits of TMCR register in BT + * - MD bits of SMR register in MFS + * + ******************************************************************************/ + +#ifndef _MB9B610T_H_ +#define _MB9B610T_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/****************************************************************************** + * Configuration of the Cortex-M3 Processor and Core Peripherals + ******************************************************************************/ +#define __MPU_PRESENT 1 /* FM3 provide an MPU */ +#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ +#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ + + +/****************************************************************************** + * Interrupt Number Definition + ******************************************************************************/ +typedef enum IRQn +{ + NMI_IRQn = -14, /* 2 Non Maskable */ + HardFault_IRQn = -13, /* 3 Hard Fault */ + MemManage_IRQn = -12, /* 4 Memory Management */ + BusFault_IRQn = -11, /* 5 Bus Fault */ + UsageFault_IRQn = -10, /* 6 Usage Fault */ + SVC_IRQn = -5, /* 11 SV Call */ + DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ + PendSV_IRQn = -2, /* 14 Pend SV */ + SysTick_IRQn = -1, /* 15 System Tick */ + + CSV_IRQn = 0, /* Clock Super Visor */ + SWDT_IRQn = 1, /* Software Watchdog Timer */ + LVD_IRQn = 2, /* Low Voltage Detector */ + WFG_IRQn = 3, /* Wave Form Generator */ + EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ + EXINT8_31_IRQn = 5, /* External Interrupt Request ch.8 to ch.31 */ + DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ + MFS0RX_IRQn = 7, /* MultiFunction Serial Reception ch.0 */ + MFS0TX_IRQn = 8, /* MultiFunction Serial Transmission ch.0 */ + MFS1RX_IRQn = 9, /* MultiFunction Serial Reception ch.1 */ + MFS1TX_IRQn = 10, /* MultiFunction Serial Transmission ch.1 */ + MFS2RX_IRQn = 11, /* MultiFunction Serial Reception ch.2 */ + MFS2TX_IRQn = 12, /* MultiFunction Serial Transmission ch.2 */ + MFS3RX_IRQn = 13, /* MultiFunction Serial Reception ch.3 */ + MFS3TX_IRQn = 14, /* MultiFunction Serial Transmission ch.3 */ + MFS4RX_IRQn = 15, /* MultiFunction Serial Reception ch.4 */ + MFS4TX_IRQn = 16, /* MultiFunction Serial Transmission ch.4 */ + MFS5RX_IRQn = 17, /* MultiFunction Serial Reception ch.5 */ + MFS5TX_IRQn = 18, /* MultiFunction Serial Transmission ch.5 */ + MFS6RX_IRQn = 19, /* MultiFunction Serial Reception ch.6 */ + MFS6TX_IRQn = 20, /* MultiFunction Serial Transmission ch.6 */ + MFS7RX_IRQn = 21, /* MultiFunction Serial Reception ch.7 */ + MFS7TX_IRQn = 22, /* MultiFunction Serial Transmission ch.7 */ + PPG_IRQn = 23, /* PPG */ + OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ + ADC0_IRQn = 25, /* ADC0 */ + ADC1_IRQn = 26, /* ADC1 */ + ADC2_IRQn = 27, /* ADC2 */ + FRTIM_IRQn = 28, /* Free-run Timer */ + INCAP_IRQn = 29, /* Input Capture */ + OUTCOMP_IRQn = 30, /* Output Compare */ + BTIM0_7_IRQn = 31, /* Base Timer ch.0 to ch.7 */ + ETHER_MAC0_IRQn = 32, /* Ethernet MAC ch.0 */ + ETHER_MAC1_IRQn = 33, /* Ethernet MAC ch.1 */ + USB0F_IRQn = 34, /* USB Function ch.0 */ + USB0F_USB0H_IRQn = 35, /* USB Function ch.0 / USB Host ch.0 */ + USB1F_IRQn = 36, /* USB Function ch.1 */ + USB1F_USB1H_IRQn = 37, /* USB Function ch.1 / USB Host ch.1 */ + DMAC0_IRQn = 38, /* DMAC ch.0 */ + DMAC1_IRQn = 39, /* DMAC ch.1 */ + DMAC2_IRQn = 40, /* DMAC ch.2 */ + DMAC3_IRQn = 41, /* DMAC ch.3 */ + DMAC4_IRQn = 42, /* DMAC ch.4 */ + DMAC5_IRQn = 43, /* DMAC ch.5 */ + DMAC6_IRQn = 44, /* DMAC ch.6 */ + DMAC7_IRQn = 45, /* DMAC ch.7 */ + BTIM8_15_IRQn = 46 /* Base Timer ch.8 to ch.15 */ + /* Reserved = 47 */ +} IRQn_Type; + + +#include +#include "system_mb9bf61x.h" +#include + +#define SUCCESS 0 +#define ERROR -1 + +#ifndef NULL +#define NULL 0 +#endif + + +/******************************************************************************/ +/* Device Specific Peripheral Registers structures */ +/******************************************************************************/ + +#if defined ( __CC_ARM ) +#pragma anon_unions +#endif + +/****************************************************************************** + * Peripheral register bit fields + ******************************************************************************/ + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash_IF_MODULE register bit fields */ +typedef struct stc_flash_if_faszr_field +{ + __IO uint32_t ASZ0 : 1; + __IO uint32_t ASZ1 : 1; +} stc_flash_if_faszr_field_t; + +typedef struct stc_flash_if_frwtr_field +{ + __IO uint32_t RWT0 : 1; + __IO uint32_t RWT1 : 1; +} stc_flash_if_frwtr_field_t; + +typedef struct stc_flash_if_fstr_field +{ + __IO uint32_t RDY : 1; + __IO uint32_t HNG : 1; + __IO uint32_t EER : 1; +} stc_flash_if_fstr_field_t; + +typedef struct stc_flash_if_fsyndn_field +{ + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; +} stc_flash_if_fsyndn_field_t; + +typedef struct stc_flash_if_fbfcr_field +{ + __IO uint32_t BE : 1; + __IO uint32_t BS : 1; +} stc_flash_if_fbfcr_field_t; + +typedef struct stc_flash_if_crtrmm_field +{ + __IO uint32_t TRMM0 : 1; + __IO uint32_t TRMM1 : 1; + __IO uint32_t TRMM2 : 1; + __IO uint32_t TRMM3 : 1; + __IO uint32_t TRMM4 : 1; + __IO uint32_t TRMM5 : 1; + __IO uint32_t TRMM6 : 1; + __IO uint32_t TRMM7 : 1; + __IO uint32_t TRMM8 : 1; + __IO uint32_t TRMM9 : 1; +} stc_flash_if_crtrmm_field_t; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock_Reset_MODULE register bit fields */ +typedef struct stc_crg_scm_ctl_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MOSCE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SOSCE : 1; + __IO uint8_t PLLE : 1; + __IO uint8_t RCS0 : 1; + __IO uint8_t RCS1 : 1; + __IO uint8_t RCS2 : 1; +} stc_crg_scm_ctl_field_t; + +typedef struct stc_crg_scm_str_field +{ + uint8_t RESERVED1 : 1; + __IO uint8_t MORDY : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t SORDY : 1; + __IO uint8_t PLRDY : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t RCM2 : 1; +} stc_crg_scm_str_field_t; + +typedef struct stc_crg_rst_str_field +{ + __IO uint16_t PONR : 1; + __IO uint16_t INITX : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SWDT : 1; + __IO uint16_t HWDT : 1; + __IO uint16_t CSVR : 1; + __IO uint16_t FCSR : 1; + __IO uint16_t SRST : 1; +} stc_crg_rst_str_field_t; + +typedef struct stc_crg_bsc_psr_field +{ + __IO uint8_t BSR0 : 1; + __IO uint8_t BSR1 : 1; + __IO uint8_t BSR2 : 1; +} stc_crg_bsc_psr_field_t; + +typedef struct stc_crg_apbc0_psr_field +{ + __IO uint8_t APBC00 : 1; + __IO uint8_t APBC01 : 1; +} stc_crg_apbc0_psr_field_t; + +typedef struct stc_crg_apbc1_psr_field +{ + __IO uint8_t APBC10 : 1; + __IO uint8_t APBC11 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC1RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC1EN : 1; +} stc_crg_apbc1_psr_field_t; + +typedef struct stc_crg_apbc2_psr_field +{ + __IO uint8_t APBC20 : 1; + __IO uint8_t APBC21 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t APBC2RST : 1; + uint8_t RESERVED2 : 2; + __IO uint8_t APBC2EN : 1; +} stc_crg_apbc2_psr_field_t; + +typedef struct stc_crg_swc_psr_field +{ + __IO uint8_t SWDS0 : 1; + __IO uint8_t SWDS1 : 1; + uint8_t RESERVED1 : 5; + __IO uint8_t TESTB : 1; +} stc_crg_swc_psr_field_t; + +typedef struct stc_crg_ttc_psr_field +{ + __IO uint8_t TTC0 : 1; + __IO uint8_t TTC1 : 1; +} stc_crg_ttc_psr_field_t; + +typedef struct stc_crg_csw_tmr_field +{ + __IO uint8_t MOWT0 : 1; + __IO uint8_t MOWT1 : 1; + __IO uint8_t MOWT2 : 1; + __IO uint8_t MOWT3 : 1; + __IO uint8_t SOWT0 : 1; + __IO uint8_t SOWT1 : 1; + __IO uint8_t SOWT2 : 1; +} stc_crg_csw_tmr_field_t; + +typedef struct stc_crg_psw_tmr_field +{ + __IO uint8_t POWT0 : 1; + __IO uint8_t POWT1 : 1; + __IO uint8_t POWT2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t PINC : 1; +} stc_crg_psw_tmr_field_t; + +typedef struct stc_crg_pll_ctl1_field +{ + __IO uint8_t PLLM0 : 1; + __IO uint8_t PLLM1 : 1; + __IO uint8_t PLLM2 : 1; + __IO uint8_t PLLM3 : 1; + __IO uint8_t PLLK0 : 1; + __IO uint8_t PLLK1 : 1; + __IO uint8_t PLLK2 : 1; + __IO uint8_t PLLK3 : 1; +} stc_crg_pll_ctl1_field_t; + +typedef struct stc_crg_pll_ctl2_field +{ + __IO uint8_t PLLN0 : 1; + __IO uint8_t PLLN1 : 1; + __IO uint8_t PLLN2 : 1; + __IO uint8_t PLLN3 : 1; + __IO uint8_t PLLN4 : 1; + __IO uint8_t PLLN5 : 1; +} stc_crg_pll_ctl2_field_t; + +typedef struct stc_crg_csv_ctl_field +{ + __IO uint16_t MCSVE : 1; + __IO uint16_t SCSVE : 1; + uint16_t RESERVED1 : 6; + __IO uint16_t FCSDE : 1; + __IO uint16_t FCSRE : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t FCD0 : 1; + __IO uint16_t FCD1 : 1; + __IO uint16_t FCD2 : 1; +} stc_crg_csv_ctl_field_t; + +typedef struct stc_crg_csv_str_field +{ + __IO uint8_t MCMF : 1; + __IO uint8_t SCMF : 1; +} stc_crg_csv_str_field_t; + +typedef struct stc_crg_dbwdt_ctl_field +{ + uint8_t RESERVED1 : 5; + __IO uint8_t DPSWBE : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t DPHWBE : 1; +} stc_crg_dbwdt_ctl_field_t; + +typedef struct stc_crg_int_enr_field +{ + __IO uint8_t MCSE : 1; + __IO uint8_t SCSE : 1; + __IO uint8_t PCSE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSE : 1; +} stc_crg_int_enr_field_t; + +typedef struct stc_crg_int_str_field +{ + __IO uint8_t MCSI : 1; + __IO uint8_t SCSI : 1; + __IO uint8_t PCSI : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSI : 1; +} stc_crg_int_str_field_t; + +typedef struct stc_crg_int_clr_field +{ + __IO uint8_t MCSC : 1; + __IO uint8_t SCSC : 1; + __IO uint8_t PCSC : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t FCSC : 1; +} stc_crg_int_clr_field_t; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* HWWDT_MODULE register bit fields */ +typedef struct stc_hwwdt_wdg_ctl_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_hwwdt_wdg_ctl_field_t; + +typedef struct stc_hwwdt_wdg_ris_field +{ + __IO uint8_t RIS : 1; +} stc_hwwdt_wdg_ris_field_t; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* SWWDT_MODULE register bit fields */ +typedef struct stc_swwdt_wdogcontrol_field +{ + __IO uint8_t INTEN : 1; + __IO uint8_t RESEN : 1; +} stc_swwdt_wdogcontrol_field_t; + +typedef struct stc_swwdt_wdogris_field +{ + __IO uint8_t RIS : 1; +} stc_swwdt_wdogris_field_t; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* DTIM_MODULE register bit fields */ +typedef struct stc_dtim_timer1control_field +{ + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; +} stc_dtim_timer1control_field_t; + +typedef struct stc_dtim_timer1ris_field +{ + __IO uint32_t TIMER1RIS : 1; +} stc_dtim_timer1ris_field_t; + +typedef struct stc_dtim_timer1mis_field +{ + __IO uint32_t TIMER1MIS : 1; +} stc_dtim_timer1mis_field_t; + +typedef struct stc_dtim_timer2control_field +{ + __IO uint32_t ONESHOT : 1; + __IO uint32_t TIMERSIZE : 1; + __IO uint32_t TIMERPRE0 : 1; + __IO uint32_t TIMERPRE1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t INTENABLE : 1; + __IO uint32_t TIMERMODE : 1; + __IO uint32_t TIMEREN : 1; +} stc_dtim_timer2control_field_t; + +typedef struct stc_dtim_timer2ris_field +{ + __IO uint32_t TIMER2RIS : 1; +} stc_dtim_timer2ris_field_t; + +typedef struct stc_dtim_timer2mis_field +{ + __IO uint32_t TIMER2MIS : 1; +} stc_dtim_timer2mis_field_t; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* MFT_FRT_MODULE register bit fields */ +typedef struct stc_mft_frt_tcsa0_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa0_field_t; + +typedef struct stc_mft_frt_tcsb0_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb0_field_t; + +typedef struct stc_mft_frt_tcsa1_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa1_field_t; + +typedef struct stc_mft_frt_tcsb1_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb1_field_t; + +typedef struct stc_mft_frt_tcsa2_field +{ + __IO uint16_t CLK0 : 1; + __IO uint16_t CLK1 : 1; + __IO uint16_t CLK2 : 1; + __IO uint16_t CLK3 : 1; + __IO uint16_t SCLR : 1; + __IO uint16_t MODE : 1; + __IO uint16_t STOP : 1; + __IO uint16_t BFE : 1; + __IO uint16_t ICRE : 1; + __IO uint16_t ICLR : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t IRQZE : 1; + __IO uint16_t IRQZF : 1; + __IO uint16_t ECKE : 1; +} stc_mft_frt_tcsa2_field_t; + +typedef struct stc_mft_frt_tcsb2_field +{ + __IO uint16_t AD0E : 1; + __IO uint16_t AD1E : 1; + __IO uint16_t AD2E : 1; +} stc_mft_frt_tcsb2_field_t; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* MFT_OCU_MODULE register bit fields */ +typedef struct stc_mft_ocu_ocsa10_field +{ + __IO uint8_t CST0 : 1; + __IO uint8_t CST1 : 1; + __IO uint8_t BDIS0 : 1; + __IO uint8_t BDIS1 : 1; + __IO uint8_t IOE0 : 1; + __IO uint8_t IOE1 : 1; + __IO uint8_t IOP0 : 1; + __IO uint8_t IOP1 : 1; +} stc_mft_ocu_ocsa10_field_t; + +typedef struct stc_mft_ocu_ocsb10_field +{ + __IO uint8_t OTD0 : 1; + __IO uint8_t OTD1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS0 : 1; + __IO uint8_t BTS1 : 1; +} stc_mft_ocu_ocsb10_field_t; + +typedef struct stc_mft_ocu_ocsa32_field +{ + __IO uint8_t CST2 : 1; + __IO uint8_t CST3 : 1; + __IO uint8_t BDIS2 : 1; + __IO uint8_t BDIS3 : 1; + __IO uint8_t IOE2 : 1; + __IO uint8_t IOE3 : 1; + __IO uint8_t IOP2 : 1; + __IO uint8_t IOP3 : 1; +} stc_mft_ocu_ocsa32_field_t; + +typedef struct stc_mft_ocu_ocsb32_field +{ + __IO uint8_t OTD2 : 1; + __IO uint8_t OTD3 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS2 : 1; + __IO uint8_t BTS3 : 1; +} stc_mft_ocu_ocsb32_field_t; + +typedef struct stc_mft_ocu_ocsa54_field +{ + __IO uint8_t CST4 : 1; + __IO uint8_t CST5 : 1; + __IO uint8_t BDIS4 : 1; + __IO uint8_t BDIS5 : 1; + __IO uint8_t IOE4 : 1; + __IO uint8_t IOE5 : 1; + __IO uint8_t IOP4 : 1; + __IO uint8_t IOP5 : 1; +} stc_mft_ocu_ocsa54_field_t; + +typedef struct stc_mft_ocu_ocsb54_field +{ + __IO uint8_t OTD4 : 1; + __IO uint8_t OTD5 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CMOD : 1; + __IO uint8_t BTS4 : 1; + __IO uint8_t BTS5 : 1; +} stc_mft_ocu_ocsb54_field_t; + +typedef struct stc_mft_ocu_ocsc_field +{ + __IO uint8_t MOD0 : 1; + __IO uint8_t MOD1 : 1; + __IO uint8_t MOD2 : 1; + __IO uint8_t MOD3 : 1; + __IO uint8_t MOD4 : 1; + __IO uint8_t MOD5 : 1; +} stc_mft_ocu_ocsc_field_t; + +typedef struct stc_mft_ocu_ocfs10_field +{ + __IO uint8_t FSO00 : 1; + __IO uint8_t FSO01 : 1; + __IO uint8_t FSO02 : 1; + __IO uint8_t FSO03 : 1; + __IO uint8_t FSO10 : 1; + __IO uint8_t FSO11 : 1; + __IO uint8_t FSO12 : 1; + __IO uint8_t FSO13 : 1; +} stc_mft_ocu_ocfs10_field_t; + +typedef struct stc_mft_ocu_ocfs32_field +{ + __IO uint8_t FSO20 : 1; + __IO uint8_t FSO21 : 1; + __IO uint8_t FSO22 : 1; + __IO uint8_t FSO23 : 1; + __IO uint8_t FSO30 : 1; + __IO uint8_t FSO31 : 1; + __IO uint8_t FSO32 : 1; + __IO uint8_t FSO33 : 1; +} stc_mft_ocu_ocfs32_field_t; + +typedef struct stc_mft_ocu_ocfs54_field +{ + __IO uint8_t FSO40 : 1; + __IO uint8_t FSO41 : 1; + __IO uint8_t FSO42 : 1; + __IO uint8_t FSO43 : 1; + __IO uint8_t FSO50 : 1; + __IO uint8_t FSO51 : 1; + __IO uint8_t FSO52 : 1; + __IO uint8_t FSO53 : 1; +} stc_mft_ocu_ocfs54_field_t; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* MFT_WFG_MODULE register bit fields */ +typedef struct stc_mft_wfg_wfsa10_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD : 3; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa10_field_t; + +typedef struct stc_mft_wfg_wfsa32_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD : 3; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa32_field_t; + +typedef struct stc_mft_wfg_wfsa54_field +{ + __IO uint16_t DCK0 : 1; + __IO uint16_t DCK1 : 1; + __IO uint16_t DCK2 : 1; + __IO uint16_t TMD : 3; + __IO uint16_t GTEN0 : 1; + __IO uint16_t GTEN1 : 1; + __IO uint16_t PSEL0 : 1; + __IO uint16_t PSEL1 : 1; + __IO uint16_t PGEN0 : 1; + __IO uint16_t PGEN1 : 1; + __IO uint16_t DMOD : 1; +} stc_mft_wfg_wfsa54_field_t; + +typedef struct stc_mft_wfg_wfir_field +{ + __IO uint16_t DTIF : 1; + __IO uint16_t DTIC : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t TMIF10 : 1; + __IO uint16_t TMIC10 : 1; + __IO uint16_t TMIE10 : 1; + __IO uint16_t TMIS10 : 1; + __IO uint16_t TMIF32 : 1; + __IO uint16_t TMIC32 : 1; + __IO uint16_t TMIE32 : 1; + __IO uint16_t TMIS32 : 1; + __IO uint16_t TMIF54 : 1; + __IO uint16_t TMIC54 : 1; + __IO uint16_t TMIE54 : 1; + __IO uint16_t TMIS54 : 1; +} stc_mft_wfg_wfir_field_t; + +typedef struct stc_mft_wfg_nzcl_field +{ + __IO uint16_t DTIE : 1; + __IO uint16_t NWS0 : 1; + __IO uint16_t NWS1 : 1; + __IO uint16_t NWS2 : 1; + __IO uint16_t SDTI : 1; +} stc_mft_wfg_nzcl_field_t; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* MFT_ICU_MODULE register bit fields */ +typedef struct stc_mft_icu_icfs10_field +{ + __IO uint8_t FSI00 : 1; + __IO uint8_t FSI01 : 1; + __IO uint8_t FSI02 : 1; + __IO uint8_t FSI03 : 1; + __IO uint8_t FSI10 : 1; + __IO uint8_t FSI11 : 1; + __IO uint8_t FSI12 : 1; + __IO uint8_t FSI13 : 1; +} stc_mft_icu_icfs10_field_t; + +typedef struct stc_mft_icu_icfs32_field +{ + __IO uint8_t FSI20 : 1; + __IO uint8_t FSI21 : 1; + __IO uint8_t FSI22 : 1; + __IO uint8_t FSI23 : 1; + __IO uint8_t FSI30 : 1; + __IO uint8_t FSI31 : 1; + __IO uint8_t FSI32 : 1; + __IO uint8_t FSI33 : 1; +} stc_mft_icu_icfs32_field_t; + +typedef struct stc_mft_icu_icsa10_field +{ + __IO uint8_t EG00 : 1; + __IO uint8_t EG01 : 1; + __IO uint8_t EG10 : 1; + __IO uint8_t EG11 : 1; + __IO uint8_t ICE0 : 1; + __IO uint8_t ICE1 : 1; + __IO uint8_t ICP0 : 1; + __IO uint8_t ICP1 : 1; +} stc_mft_icu_icsa10_field_t; + +typedef struct stc_mft_icu_icsb10_field +{ + __IO uint8_t IEI0 : 1; + __IO uint8_t IEI1 : 1; +} stc_mft_icu_icsb10_field_t; + +typedef struct stc_mft_icu_icsa32_field +{ + __IO uint8_t EG20 : 1; + __IO uint8_t EG21 : 1; + __IO uint8_t EG30 : 1; + __IO uint8_t EG31 : 1; + __IO uint8_t ICE2 : 1; + __IO uint8_t ICE3 : 1; + __IO uint8_t ICP2 : 1; + __IO uint8_t ICP3 : 1; +} stc_mft_icu_icsa32_field_t; + +typedef struct stc_mft_icu_icsb32_field +{ + __IO uint8_t IEI2 : 1; + __IO uint8_t IEI3 : 1; +} stc_mft_icu_icsb32_field_t; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* MFT_ADCMP_MODULE register bit fields */ +typedef struct stc_mft_adcmp_acsb_field +{ + __IO uint8_t BDIS0 : 1; + __IO uint8_t BDIS1 : 1; + __IO uint8_t BDIS2 : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BTS0 : 1; + __IO uint8_t BTS1 : 1; + __IO uint8_t BTS2 : 1; +} stc_mft_adcmp_acsb_field_t; + +typedef struct stc_mft_adcmp_acsa_field +{ + __IO uint16_t CE00 : 1; + __IO uint16_t CE01 : 1; + __IO uint16_t CE10 : 1; + __IO uint16_t CE11 : 1; + __IO uint16_t CE20 : 1; + __IO uint16_t CE21 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SEL00 : 1; + __IO uint16_t SEL01 : 1; + __IO uint16_t SEL10 : 1; + __IO uint16_t SEL11 : 1; + __IO uint16_t SEL20 : 1; + __IO uint16_t SEL21 : 1; +} stc_mft_adcmp_acsa_field_t; + +typedef struct stc_mft_adcmp_atsa_field +{ + __IO uint16_t AD0S0 : 1; + __IO uint16_t AD0S1 : 1; + __IO uint16_t AD1S0 : 1; + __IO uint16_t AD1S1 : 1; + __IO uint16_t AD2S0 : 1; + __IO uint16_t AD2S1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t AD0P0 : 1; + __IO uint16_t AD0P1 : 1; + __IO uint16_t AD1P0 : 1; + __IO uint16_t AD1P1 : 1; + __IO uint16_t AD2P0 : 1; + __IO uint16_t AD2P1 : 1; +} stc_mft_adcmp_atsa_field_t; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* MFT_PPG_MODULE register bit fields */ +typedef struct stc_mft_ppg_ttcr0_field +{ + __IO uint8_t STR0 : 1; + __IO uint8_t MONI0 : 1; + __IO uint8_t CS00 : 1; + __IO uint8_t CS01 : 1; + __IO uint8_t TRG0O : 1; + __IO uint8_t TRG2O : 1; + __IO uint8_t TRG4O : 1; + __IO uint8_t TRG6O : 1; +} stc_mft_ppg_ttcr0_field_t; + +typedef struct stc_mft_ppg_ttcr1_field +{ + __IO uint8_t STR1 : 1; + __IO uint8_t MONI1 : 1; + __IO uint8_t CS10 : 1; + __IO uint8_t CS11 : 1; + __IO uint8_t TRG1O : 1; + __IO uint8_t TRG3O : 1; + __IO uint8_t TRG5O : 1; + __IO uint8_t TRG7O : 1; +} stc_mft_ppg_ttcr1_field_t; + +typedef struct stc_mft_ppg_ttcr2_field +{ + __IO uint8_t STR2 : 1; + __IO uint8_t MONI2 : 1; + __IO uint8_t CS20 : 1; + __IO uint8_t CS21 : 1; + __IO uint8_t TRG16O : 1; + __IO uint8_t TRG18O : 1; + __IO uint8_t TRG20O : 1; + __IO uint8_t TRG22O : 1; +} stc_mft_ppg_ttcr2_field_t; + +typedef struct stc_mft_ppg_trg_field +{ + __IO uint16_t PEN00 : 1; + __IO uint16_t PEN01 : 1; + __IO uint16_t PEN02 : 1; + __IO uint16_t PEN03 : 1; + __IO uint16_t PEN04 : 1; + __IO uint16_t PEN05 : 1; + __IO uint16_t PEN06 : 1; + __IO uint16_t PEN07 : 1; + __IO uint16_t PEN08 : 1; + __IO uint16_t PEN09 : 1; + __IO uint16_t PEN10 : 1; + __IO uint16_t PEN11 : 1; + __IO uint16_t PEN12 : 1; + __IO uint16_t PEN13 : 1; + __IO uint16_t PEN14 : 1; + __IO uint16_t PEN15 : 1; +} stc_mft_ppg_trg_field_t; + +typedef struct stc_mft_ppg_trg1_field +{ + __IO uint16_t PEN16 : 1; + __IO uint16_t PEN17 : 1; + __IO uint16_t PEN18 : 1; + __IO uint16_t PEN19 : 1; + __IO uint16_t PEN20 : 1; + __IO uint16_t PEN21 : 1; + __IO uint16_t PEN22 : 1; + __IO uint16_t PEN23 : 1; +} stc_mft_ppg_trg1_field_t; + +typedef struct stc_mft_ppg_revc_field +{ + __IO uint16_t REV00 : 1; + __IO uint16_t REV01 : 1; + __IO uint16_t REV02 : 1; + __IO uint16_t REV03 : 1; + __IO uint16_t REV04 : 1; + __IO uint16_t REV05 : 1; + __IO uint16_t REV06 : 1; + __IO uint16_t REV07 : 1; + __IO uint16_t REV08 : 1; + __IO uint16_t REV09 : 1; + __IO uint16_t REV10 : 1; + __IO uint16_t REV11 : 1; + __IO uint16_t REV12 : 1; + __IO uint16_t REV13 : 1; + __IO uint16_t REV14 : 1; + __IO uint16_t REV15 : 1; +} stc_mft_ppg_revc_field_t; + +typedef struct stc_mft_ppg_revc1_field +{ + __IO uint16_t REV16 : 1; + __IO uint16_t REV17 : 1; + __IO uint16_t REV18 : 1; + __IO uint16_t REV19 : 1; + __IO uint16_t REV20 : 1; + __IO uint16_t REV21 : 1; + __IO uint16_t REV22 : 1; + __IO uint16_t REV23 : 1; +} stc_mft_ppg_revc1_field_t; + +typedef struct stc_mft_ppg_ppgc1_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc1_field_t; + +typedef struct stc_mft_ppg_ppgc0_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc0_field_t; + +typedef struct stc_mft_ppg_ppgc3_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc3_field_t; + +typedef struct stc_mft_ppg_ppgc2_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc2_field_t; + +typedef struct stc_mft_ppg_gatec0_field +{ + __IO uint8_t EDGE0 : 1; + __IO uint8_t STRG0 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE2 : 1; + __IO uint8_t STRG2 : 1; +} stc_mft_ppg_gatec0_field_t; + +typedef struct stc_mft_ppg_ppgc5_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc5_field_t; + +typedef struct stc_mft_ppg_ppgc4_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc4_field_t; + +typedef struct stc_mft_ppg_ppgc7_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc7_field_t; + +typedef struct stc_mft_ppg_ppgc6_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc6_field_t; + +typedef struct stc_mft_ppg_gatec4_field +{ + __IO uint8_t EDGE4 : 1; + __IO uint8_t STRG4 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE6 : 1; + __IO uint8_t STRG6 : 1; +} stc_mft_ppg_gatec4_field_t; + +typedef struct stc_mft_ppg_ppgc9_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc9_field_t; + +typedef struct stc_mft_ppg_ppgc8_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc8_field_t; + +typedef struct stc_mft_ppg_ppgc11_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc11_field_t; + +typedef struct stc_mft_ppg_ppgc10_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc10_field_t; + +typedef struct stc_mft_ppg_gatec8_field +{ + __IO uint8_t EDGE8 : 1; + __IO uint8_t STRG8 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE10 : 1; + __IO uint8_t STRG10 : 1; +} stc_mft_ppg_gatec8_field_t; + +typedef struct stc_mft_ppg_ppgc13_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc13_field_t; + +typedef struct stc_mft_ppg_ppgc12_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc12_field_t; + +typedef struct stc_mft_ppg_ppgc15_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc15_field_t; + +typedef struct stc_mft_ppg_ppgc14_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc14_field_t; + +typedef struct stc_mft_ppg_gatec12_field +{ + __IO uint8_t EDGE12 : 1; + __IO uint8_t STRG12 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE14 : 1; + __IO uint8_t STRG14 : 1; +} stc_mft_ppg_gatec12_field_t; + +typedef struct stc_mft_ppg_ppgc17_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc17_field_t; + +typedef struct stc_mft_ppg_ppgc16_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc16_field_t; + +typedef struct stc_mft_ppg_ppgc19_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc19_field_t; + +typedef struct stc_mft_ppg_ppgc18_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc18_field_t; + +typedef struct stc_mft_ppg_gatec16_field +{ + __IO uint8_t EDGE16 : 1; + __IO uint8_t STRG16 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE18 : 1; + __IO uint8_t STRG18 : 1; +} stc_mft_ppg_gatec16_field_t; + +typedef struct stc_mft_ppg_ppgc21_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc21_field_t; + +typedef struct stc_mft_ppg_ppgc20_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc20_field_t; + +typedef struct stc_mft_ppg_ppgc23_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc23_field_t; + +typedef struct stc_mft_ppg_ppgc22_field +{ + __IO uint8_t TTRG : 1; + __IO uint8_t MD : 2; + __IO uint8_t PCS0 : 1; + __IO uint8_t PCS1 : 1; + __IO uint8_t INTM : 1; + __IO uint8_t PUF : 1; + __IO uint8_t PIE : 1; +} stc_mft_ppg_ppgc22_field_t; + +typedef struct stc_mft_ppg_gatec20_field +{ + __IO uint8_t EDGE20 : 1; + __IO uint8_t STRG20 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t EDGE22 : 1; + __IO uint8_t STRG22 : 1; +} stc_mft_ppg_gatec20_field_t; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* BT_PPG_MODULE register bit fields */ +typedef struct stc_bt_ppg_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD : 3; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_ppg_tmcr_field_t; + +typedef struct stc_bt_ppg_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_ppg_stc_field_t; + +typedef struct stc_bt_ppg_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_ppg_tmcr2_field_t; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* BT_PWM_MODULE register bit fields */ +typedef struct stc_bt_pwm_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD : 3; + uint16_t RESERVED1 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t PMSK : 1; + __IO uint16_t RTGEN : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwm_tmcr_field_t; + +typedef struct stc_bt_pwm_stc_field +{ + __IO uint8_t UDIR : 1; + __IO uint8_t DTIR : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t UDIE : 1; + __IO uint8_t DTIE : 1; + __IO uint8_t TGIE : 1; +} stc_bt_pwm_stc_field_t; + +typedef struct stc_bt_pwm_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwm_tmcr2_field_t; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* BT_RT_MODULE register bit fields */ +typedef struct stc_bt_rt_tmcr_field +{ + __IO uint16_t STRG : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + __IO uint16_t OSEL : 1; + __IO uint16_t FMD : 3; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_rt_tmcr_field_t; + +typedef struct stc_bt_rt_stc_field +{ + __IO uint8_t UDIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TGIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t UDIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t TGIE : 1; +} stc_bt_rt_stc_field_t; + +typedef struct stc_bt_rt_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_rt_tmcr2_field_t; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* BT_PWC_MODULE register bit fields */ +typedef struct stc_bt_pwc_tmcr_field +{ + uint16_t RESERVED1 : 1; + __IO uint16_t CTEN : 1; + __IO uint16_t MDSE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FMD : 3; + __IO uint16_t T32 : 1; + __IO uint16_t EGS0 : 1; + __IO uint16_t EGS1 : 1; + __IO uint16_t EGS2 : 1; + uint16_t RESERVED3 : 1; + __IO uint16_t CKS0 : 1; + __IO uint16_t CKS1 : 1; + __IO uint16_t CKS2 : 1; +} stc_bt_pwc_tmcr_field_t; + +typedef struct stc_bt_pwc_stc_field +{ + __IO uint8_t OVIR : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t EDIR : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t OVIE : 1; + uint8_t RESERVED3 : 1; + __IO uint8_t EDIE : 1; + __IO uint8_t ERR : 1; +} stc_bt_pwc_stc_field_t; + +typedef struct stc_bt_pwc_tmcr2_field +{ + __IO uint8_t CKS3 : 1; +} stc_bt_pwc_tmcr2_field_t; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* BTIOSEL03_MODULE register bit fields */ +typedef struct stc_btiosel03_btsel0123_field +{ + __IO uint8_t SEL01_0 : 1; + __IO uint8_t SEL01_1 : 1; + __IO uint8_t SEL01_2 : 1; + __IO uint8_t SEL01_3 : 1; + __IO uint8_t SEL23_0 : 1; + __IO uint8_t SEL23_1 : 1; + __IO uint8_t SEL23_2 : 1; + __IO uint8_t SEL23_3 : 1; +} stc_btiosel03_btsel0123_field_t; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* BTIOSEL47_MODULE register bit fields */ +typedef struct stc_btiosel47_btsel4567_field +{ + __IO uint8_t SEL45_0 : 1; + __IO uint8_t SEL45_1 : 1; + __IO uint8_t SEL45_2 : 1; + __IO uint8_t SEL45_3 : 1; + __IO uint8_t SEL67_0 : 1; + __IO uint8_t SEL67_1 : 1; + __IO uint8_t SEL67_2 : 1; + __IO uint8_t SEL67_3 : 1; +} stc_btiosel47_btsel4567_field_t; + +/****************************************************************************** + * BTIOSEL811_MODULE + ******************************************************************************/ +/* BTIOSEL811_MODULE register bit fields */ +typedef struct stc_btiosel8b_btsel89ab_field +{ + __IO uint8_t SEL89_0 : 1; + __IO uint8_t SEL89_1 : 1; + __IO uint8_t SEL89_2 : 1; + __IO uint8_t SEL89_3 : 1; + __IO uint8_t SELAB_0 : 1; + __IO uint8_t SELAB_1 : 1; + __IO uint8_t SELAB_2 : 1; + __IO uint8_t SELAB_3 : 1; +} stc_btiosel8b_btsel89ab_field_t; + +/****************************************************************************** + * BTIOSEL1215_MODULE + ******************************************************************************/ +/* BTIOSEL1215_MODULE register bit fields */ +typedef struct stc_btioselcf_btselcdef_field +{ + __IO uint8_t SELCD_0 : 1; + __IO uint8_t SELCD_1 : 1; + __IO uint8_t SELCD_2 : 1; + __IO uint8_t SELCD_3 : 1; + __IO uint8_t SELEF_0 : 1; + __IO uint8_t SELEF_1 : 1; + __IO uint8_t SELEF_2 : 1; + __IO uint8_t SELEF_3 : 1; +} stc_btioselcf_btselcdef_field_t; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* SBSSR_MODULE register bit fields */ +typedef struct stc_sbssr_btsssr_field +{ + __IO uint16_t SSR0 : 1; + __IO uint16_t SSR1 : 1; + __IO uint16_t SSR2 : 1; + __IO uint16_t SSR3 : 1; + __IO uint16_t SSR4 : 1; + __IO uint16_t SSR5 : 1; + __IO uint16_t SSR6 : 1; + __IO uint16_t SSR7 : 1; + __IO uint16_t SSR8 : 1; + __IO uint16_t SSR9 : 1; + __IO uint16_t SSR10 : 1; + __IO uint16_t SSR11 : 1; + __IO uint16_t SSR12 : 1; + __IO uint16_t SSR13 : 1; + __IO uint16_t SSR14 : 1; + __IO uint16_t SSR15 : 1; +} stc_sbssr_btsssr_field_t; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* QPRC_MODULE register bit fields */ +typedef struct stc_qprc_qicr_field +{ + __IO uint16_t QPCMIE : 1; + __IO uint16_t QPCMF : 1; + __IO uint16_t QPRCMIE : 1; + __IO uint16_t QPRCMF : 1; + __IO uint16_t OUZIE : 1; + __IO uint16_t UFDF : 1; + __IO uint16_t OFDF : 1; + __IO uint16_t ZIIF : 1; + __IO uint16_t CDCIE : 1; + __IO uint16_t CDCF : 1; + __IO uint16_t DIRPC : 1; + __IO uint16_t DIROU : 1; + __IO uint16_t QPCNRCMIE : 1; + __IO uint16_t QPCNRCMF : 1; +} stc_qprc_qicr_field_t; + +typedef struct stc_qprc_qicrl_field +{ + __IO uint8_t QPCMIE : 1; + __IO uint8_t QPCMF : 1; + __IO uint8_t QPRCMIE : 1; + __IO uint8_t QPRCMF : 1; + __IO uint8_t OUZIE : 1; + __IO uint8_t UFDF : 1; + __IO uint8_t OFDF : 1; + __IO uint8_t ZIIF : 1; +} stc_qprc_qicrl_field_t; + +typedef struct stc_qprc_qicrh_field +{ + __IO uint8_t CDCIE : 1; + __IO uint8_t CDCF : 1; + __IO uint8_t DIRPC : 1; + __IO uint8_t DIROU : 1; + __IO uint8_t QPCNRCMIE : 1; + __IO uint8_t QPCNRCMF : 1; +} stc_qprc_qicrh_field_t; + +typedef struct stc_qprc_qcr_field +{ + __IO uint16_t PCM0 : 1; + __IO uint16_t PCM1 : 1; + __IO uint16_t RCM0 : 1; + __IO uint16_t RCM1 : 1; + __IO uint16_t PSTP : 1; + __IO uint16_t CGSC : 1; + __IO uint16_t RSEL : 1; + __IO uint16_t SWAP : 1; + __IO uint16_t PCRM0 : 1; + __IO uint16_t PCRM1 : 1; + __IO uint16_t AES0 : 1; + __IO uint16_t AES1 : 1; + __IO uint16_t BES0 : 1; + __IO uint16_t BES1 : 1; + __IO uint16_t CGE0 : 1; + __IO uint16_t CGE1 : 1; +} stc_qprc_qcr_field_t; + +typedef struct stc_qprc_qcrl_field +{ + __IO uint8_t PCM0 : 1; + __IO uint8_t PCM1 : 1; + __IO uint8_t RCM0 : 1; + __IO uint8_t RCM1 : 1; + __IO uint8_t PSTP : 1; + __IO uint8_t CGSC : 1; + __IO uint8_t RSEL : 1; + __IO uint8_t SWAP : 1; +} stc_qprc_qcrl_field_t; + +typedef struct stc_qprc_qcrh_field +{ + __IO uint8_t PCRM0 : 1; + __IO uint8_t PCRM1 : 1; + __IO uint8_t AES0 : 1; + __IO uint8_t AES1 : 1; + __IO uint8_t BES0 : 1; + __IO uint8_t BES1 : 1; + __IO uint8_t CGE0 : 1; + __IO uint8_t CGE1 : 1; +} stc_qprc_qcrh_field_t; + +typedef struct stc_qprc_qecr_field +{ + __IO uint16_t ORNGMD : 1; + __IO uint16_t ORNGF : 1; + __IO uint16_t ORNGIE : 1; +} stc_qprc_qecr_field_t; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* ADC12_MODULE register bit fields */ +typedef struct stc_adc_adsr_field +{ + __IO uint8_t SCS : 1; + __IO uint8_t PCS : 1; + __IO uint8_t PCNS : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t FDAS : 1; + __IO uint8_t ADSTP : 1; +} stc_adc_adsr_field_t; + +typedef struct stc_adc_adcr_field +{ + __IO uint8_t OVRIE : 1; + __IO uint8_t CMPIE : 1; + __IO uint8_t PCIE : 1; + __IO uint8_t SCIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t CMPIF : 1; + __IO uint8_t PCIF : 1; + __IO uint8_t SCIF : 1; +} stc_adc_adcr_field_t; + +typedef struct stc_adc_sfns_field +{ + __IO uint8_t SFS0 : 1; + __IO uint8_t SFS1 : 1; + __IO uint8_t SFS2 : 1; + __IO uint8_t SFS3 : 1; +} stc_adc_sfns_field_t; + +typedef struct stc_adc_sccr_field +{ + __IO uint8_t SSTR : 1; + __IO uint8_t SHEN : 1; + __IO uint8_t RPT : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t SFCLR : 1; + __IO uint8_t SOVR : 1; + __IO uint8_t SFUL : 1; + __IO uint8_t SEMP : 1; +} stc_adc_sccr_field_t; + +typedef struct stc_adc_scfd_field +{ + __IO uint32_t SC0 : 1; + __IO uint32_t SC1 : 1; + __IO uint32_t SC2 : 1; + __IO uint32_t SC3 : 1; + __IO uint32_t SC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t SD0 : 1; + __IO uint32_t SD1 : 1; + __IO uint32_t SD2 : 1; + __IO uint32_t SD3 : 1; + __IO uint32_t SD4 : 1; + __IO uint32_t SD5 : 1; + __IO uint32_t SD6 : 1; + __IO uint32_t SD7 : 1; + __IO uint32_t SD8 : 1; + __IO uint32_t SD9 : 1; + __IO uint32_t SD10 : 1; + __IO uint32_t SD11 : 1; +} stc_adc_scfd_field_t; + +typedef struct stc_adc_scfdl_field +{ + __IO uint16_t SC0 : 1; + __IO uint16_t SC1 : 1; + __IO uint16_t SC2 : 1; + __IO uint16_t SC3 : 1; + __IO uint16_t SC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t INVL : 1; +} stc_adc_scfdl_field_t; + +typedef struct stc_adc_scfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t SD0 : 1; + __IO uint16_t SD1 : 1; + __IO uint16_t SD2 : 1; + __IO uint16_t SD3 : 1; + __IO uint16_t SD4 : 1; + __IO uint16_t SD5 : 1; + __IO uint16_t SD6 : 1; + __IO uint16_t SD7 : 1; + __IO uint16_t SD8 : 1; + __IO uint16_t SD9 : 1; + __IO uint16_t SD10 : 1; + __IO uint16_t SD11 : 1; +} stc_adc_scfdh_field_t; + +typedef struct stc_adc_scis23_field +{ + __IO uint16_t AN16 : 1; + __IO uint16_t AN17 : 1; + __IO uint16_t AN18 : 1; + __IO uint16_t AN19 : 1; + __IO uint16_t AN20 : 1; + __IO uint16_t AN21 : 1; + __IO uint16_t AN22 : 1; + __IO uint16_t AN23 : 1; + __IO uint16_t AN24 : 1; + __IO uint16_t AN25 : 1; + __IO uint16_t AN26 : 1; + __IO uint16_t AN27 : 1; + __IO uint16_t AN28 : 1; + __IO uint16_t AN29 : 1; + __IO uint16_t AN30 : 1; + __IO uint16_t AN31 : 1; +} stc_adc_scis23_field_t; + +typedef struct stc_adc_scis2_field +{ + __IO uint8_t AN16 : 1; + __IO uint8_t AN17 : 1; + __IO uint8_t AN18 : 1; + __IO uint8_t AN19 : 1; + __IO uint8_t AN20 : 1; + __IO uint8_t AN21 : 1; + __IO uint8_t AN22 : 1; + __IO uint8_t AN23 : 1; +} stc_adc_scis2_field_t; + +typedef struct stc_adc_scis3_field +{ + __IO uint8_t AN24 : 1; + __IO uint8_t AN25 : 1; + __IO uint8_t AN26 : 1; + __IO uint8_t AN27 : 1; + __IO uint8_t AN28 : 1; + __IO uint8_t AN29 : 1; + __IO uint8_t AN30 : 1; + __IO uint8_t AN31 : 1; +} stc_adc_scis3_field_t; + +typedef struct stc_adc_scis01_field +{ + __IO uint16_t AN0 : 1; + __IO uint16_t AN1 : 1; + __IO uint16_t AN2 : 1; + __IO uint16_t AN3 : 1; + __IO uint16_t AN4 : 1; + __IO uint16_t AN5 : 1; + __IO uint16_t AN6 : 1; + __IO uint16_t AN7 : 1; + __IO uint16_t AN8 : 1; + __IO uint16_t AN9 : 1; + __IO uint16_t AN10 : 1; + __IO uint16_t AN11 : 1; + __IO uint16_t AN12 : 1; + __IO uint16_t AN13 : 1; + __IO uint16_t AN14 : 1; + __IO uint16_t AN15 : 1; +} stc_adc_scis01_field_t; + +typedef struct stc_adc_scis0_field +{ + __IO uint8_t AN0 : 1; + __IO uint8_t AN1 : 1; + __IO uint8_t AN2 : 1; + __IO uint8_t AN3 : 1; + __IO uint8_t AN4 : 1; + __IO uint8_t AN5 : 1; + __IO uint8_t AN6 : 1; + __IO uint8_t AN7 : 1; +} stc_adc_scis0_field_t; + +typedef struct stc_adc_scis1_field +{ + __IO uint8_t AN8 : 1; + __IO uint8_t AN9 : 1; + __IO uint8_t AN10 : 1; + __IO uint8_t AN11 : 1; + __IO uint8_t AN12 : 1; + __IO uint8_t AN13 : 1; + __IO uint8_t AN14 : 1; + __IO uint8_t AN15 : 1; +} stc_adc_scis1_field_t; + +typedef struct stc_adc_pfns_field +{ + __IO uint8_t PFS0 : 1; + __IO uint8_t PFS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t TEST0 : 1; + __IO uint8_t TEST1 : 1; +} stc_adc_pfns_field_t; + +typedef struct stc_adc_pccr_field +{ + __IO uint8_t PSTR : 1; + __IO uint8_t PHEN : 1; + __IO uint8_t PEEN : 1; + __IO uint8_t ESCE : 1; + __IO uint8_t PFCLR : 1; + __IO uint8_t POVR : 1; + __IO uint8_t PFUL : 1; + __IO uint8_t PEMP : 1; +} stc_adc_pccr_field_t; + +typedef struct stc_adc_pcfd_field +{ + __IO uint32_t PC0 : 1; + __IO uint32_t PC1 : 1; + __IO uint32_t PC2 : 1; + __IO uint32_t PC3 : 1; + __IO uint32_t PC4 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + __IO uint32_t RS2 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t INVL : 1; + uint32_t RESERVED3 : 7; + __IO uint32_t PD0 : 1; + __IO uint32_t PD1 : 1; + __IO uint32_t PD2 : 1; + __IO uint32_t PD3 : 1; + __IO uint32_t PD4 : 1; + __IO uint32_t PD5 : 1; + __IO uint32_t PD6 : 1; + __IO uint32_t PD7 : 1; + __IO uint32_t PD8 : 1; + __IO uint32_t PD9 : 1; + __IO uint32_t PD10 : 1; + __IO uint32_t PD11 : 1; +} stc_adc_pcfd_field_t; + +typedef struct stc_adc_pcfdl_field +{ + __IO uint16_t PC0 : 1; + __IO uint16_t PC1 : 1; + __IO uint16_t PC2 : 1; + __IO uint16_t PC3 : 1; + __IO uint16_t PC4 : 1; + uint16_t RESERVED1 : 3; + __IO uint16_t RS0 : 1; + __IO uint16_t RS1 : 1; + __IO uint16_t RS2 : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t INVL : 1; +} stc_adc_pcfdl_field_t; + +typedef struct stc_adc_pcfdh_field +{ + uint16_t RESERVED1 : 4; + __IO uint16_t PD0 : 1; + __IO uint16_t PD1 : 1; + __IO uint16_t PD2 : 1; + __IO uint16_t PD3 : 1; + __IO uint16_t PD4 : 1; + __IO uint16_t PD5 : 1; + __IO uint16_t PD6 : 1; + __IO uint16_t PD7 : 1; + __IO uint16_t PD8 : 1; + __IO uint16_t PD9 : 1; + __IO uint16_t PD10 : 1; + __IO uint16_t PD11 : 1; +} stc_adc_pcfdh_field_t; + +typedef struct stc_adc_pcis_field +{ + __IO uint8_t P1A0 : 1; + __IO uint8_t P1A1 : 1; + __IO uint8_t P1A2 : 1; + __IO uint8_t P2A0 : 1; + __IO uint8_t P2A1 : 1; + __IO uint8_t P2A2 : 1; + __IO uint8_t P2A3 : 1; + __IO uint8_t P2A4 : 1; +} stc_adc_pcis_field_t; + +typedef struct stc_adc_cmpcr_field +{ + __IO uint8_t CCH0 : 1; + __IO uint8_t CCH1 : 1; + __IO uint8_t CCH2 : 1; + __IO uint8_t CCH3 : 1; + __IO uint8_t CCH4 : 1; + __IO uint8_t CMD0 : 1; + __IO uint8_t CMD1 : 1; + __IO uint8_t CMPEN : 1; +} stc_adc_cmpcr_field_t; + +typedef struct stc_adc_cmpd_field +{ + uint16_t RESERVED1 : 6; + __IO uint16_t CMAD2 : 1; + __IO uint16_t CMAD3 : 1; + __IO uint16_t CMAD4 : 1; + __IO uint16_t CMAD5 : 1; + __IO uint16_t CMAD6 : 1; + __IO uint16_t CMAD7 : 1; + __IO uint16_t CMAD8 : 1; + __IO uint16_t CMAD9 : 1; + __IO uint16_t CMAD10 : 1; + __IO uint16_t CMAD11 : 1; +} stc_adc_cmpd_field_t; + +typedef struct stc_adc_adss23_field +{ + __IO uint16_t TS16 : 1; + __IO uint16_t TS17 : 1; + __IO uint16_t TS18 : 1; + __IO uint16_t TS19 : 1; + __IO uint16_t TS20 : 1; + __IO uint16_t TS21 : 1; + __IO uint16_t TS22 : 1; + __IO uint16_t TS23 : 1; + __IO uint16_t TS24 : 1; + __IO uint16_t TS25 : 1; + __IO uint16_t TS26 : 1; + __IO uint16_t TS27 : 1; + __IO uint16_t TS28 : 1; + __IO uint16_t TS29 : 1; + __IO uint16_t TS30 : 1; + __IO uint16_t TS31 : 1; +} stc_adc_adss23_field_t; + +typedef struct stc_adc_adss2_field +{ + __IO uint8_t TS16 : 1; + __IO uint8_t TS17 : 1; + __IO uint8_t TS18 : 1; + __IO uint8_t TS19 : 1; + __IO uint8_t TS20 : 1; + __IO uint8_t TS21 : 1; + __IO uint8_t TS22 : 1; + __IO uint8_t TS23 : 1; +} stc_adc_adss2_field_t; + +typedef struct stc_adc_adss3_field +{ + __IO uint8_t TS24 : 1; + __IO uint8_t TS25 : 1; + __IO uint8_t TS26 : 1; + __IO uint8_t TS27 : 1; + __IO uint8_t TS28 : 1; + __IO uint8_t TS29 : 1; + __IO uint8_t TS30 : 1; + __IO uint8_t TS31 : 1; +} stc_adc_adss3_field_t; + +typedef struct stc_adc_adss01_field +{ + __IO uint16_t TS0 : 1; + __IO uint16_t TS1 : 1; + __IO uint16_t TS2 : 1; + __IO uint16_t TS3 : 1; + __IO uint16_t TS4 : 1; + __IO uint16_t TS5 : 1; + __IO uint16_t TS6 : 1; + __IO uint16_t TS7 : 1; + __IO uint16_t TS8 : 1; + __IO uint16_t TS9 : 1; + __IO uint16_t TS10 : 1; + __IO uint16_t TS11 : 1; + __IO uint16_t TS12 : 1; + __IO uint16_t TS13 : 1; + __IO uint16_t TS14 : 1; + __IO uint16_t TS15 : 1; +} stc_adc_adss01_field_t; + +typedef struct stc_adc_adss0_field +{ + __IO uint8_t TS0 : 1; + __IO uint8_t TS1 : 1; + __IO uint8_t TS2 : 1; + __IO uint8_t TS3 : 1; + __IO uint8_t TS4 : 1; + __IO uint8_t TS5 : 1; + __IO uint8_t TS6 : 1; + __IO uint8_t TS7 : 1; +} stc_adc_adss0_field_t; + +typedef struct stc_adc_adss1_field +{ + __IO uint8_t TS8 : 1; + __IO uint8_t TS9 : 1; + __IO uint8_t TS10 : 1; + __IO uint8_t TS11 : 1; + __IO uint8_t TS12 : 1; + __IO uint8_t TS13 : 1; + __IO uint8_t TS14 : 1; + __IO uint8_t TS15 : 1; +} stc_adc_adss1_field_t; + +typedef struct stc_adc_adst01_field +{ + __IO uint16_t ST10 : 1; + __IO uint16_t ST11 : 1; + __IO uint16_t ST12 : 1; + __IO uint16_t ST13 : 1; + __IO uint16_t ST14 : 1; + __IO uint16_t STX10 : 1; + __IO uint16_t STX11 : 1; + __IO uint16_t STX12 : 1; + __IO uint16_t ST00 : 1; + __IO uint16_t ST01 : 1; + __IO uint16_t ST02 : 1; + __IO uint16_t ST03 : 1; + __IO uint16_t ST04 : 1; + __IO uint16_t STX00 : 1; + __IO uint16_t STX01 : 1; + __IO uint16_t STX02 : 1; +} stc_adc_adst01_field_t; + +typedef struct stc_adc_adst1_field +{ + __IO uint8_t ST10 : 1; + __IO uint8_t ST11 : 1; + __IO uint8_t ST12 : 1; + __IO uint8_t ST13 : 1; + __IO uint8_t ST14 : 1; + __IO uint8_t STX10 : 1; + __IO uint8_t STX11 : 1; + __IO uint8_t STX12 : 1; +} stc_adc_adst1_field_t; + +typedef struct stc_adc_adst0_field +{ + __IO uint8_t ST00 : 1; + __IO uint8_t ST01 : 1; + __IO uint8_t ST02 : 1; + __IO uint8_t ST03 : 1; + __IO uint8_t ST04 : 1; + __IO uint8_t STX00 : 1; + __IO uint8_t STX01 : 1; + __IO uint8_t STX02 : 1; +} stc_adc_adst0_field_t; + +typedef struct stc_adc_adct_field +{ + __IO uint8_t CT0 : 1; + __IO uint8_t CT1 : 1; + __IO uint8_t CT2 : 1; + __IO uint8_t CT3 : 1; + __IO uint8_t CT4 : 1; + __IO uint8_t CT5 : 1; + __IO uint8_t CT6 : 1; + __IO uint8_t CT7 : 1; +} stc_adc_adct_field_t; + +typedef struct stc_adc_prtsl_field +{ + __IO uint8_t PRTSL0 : 1; + __IO uint8_t PRTSL1 : 1; + __IO uint8_t PRTSL2 : 1; + __IO uint8_t PRTSL3 : 1; +} stc_adc_prtsl_field_t; + +typedef struct stc_adc_sctsl_field +{ + __IO uint8_t SCTSL0 : 1; + __IO uint8_t SCTSL1 : 1; + __IO uint8_t SCTSL2 : 1; + __IO uint8_t SCTSL3 : 1; +} stc_adc_sctsl_field_t; + +typedef struct stc_adc_adcen_field +{ + __IO uint8_t ENBL : 1; + __IO uint8_t READY : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t CYCLSL0 : 1; + __IO uint8_t CYCLSL1 : 1; +} stc_adc_adcen_field_t; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CRTRIM_MODULE register bit fields */ +typedef struct stc_crtrim_mcr_psr_field +{ + __IO uint8_t CSR0 : 1; + __IO uint8_t CSR1 : 1; +} stc_crtrim_mcr_psr_field_t; + +typedef struct stc_crtrim_mcr_ftrm_field +{ + __IO uint16_t TRD0 : 1; + __IO uint16_t TRD1 : 1; + __IO uint16_t TRD2 : 1; + __IO uint16_t TRD3 : 1; + __IO uint16_t TRD4 : 1; + __IO uint16_t TRD5 : 1; + __IO uint16_t TRD6 : 1; + __IO uint16_t TRD7 : 1; +} stc_crtrim_mcr_ftrm_field_t; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* EXTI_MODULE registEN bit fields */ +typedef struct stc_exti_enir_field +{ + __IO uint16_t EN0 : 1; + __IO uint16_t EN1 : 1; + __IO uint16_t EN2 : 1; + __IO uint16_t EN3 : 1; + __IO uint16_t EN4 : 1; + __IO uint16_t EN5 : 1; + __IO uint16_t EN6 : 1; + __IO uint16_t EN7 : 1; + __IO uint16_t EN8 : 1; + __IO uint16_t EN9 : 1; + __IO uint16_t EN10 : 1; + __IO uint16_t EN11 : 1; + __IO uint16_t EN12 : 1; + __IO uint16_t EN13 : 1; + __IO uint16_t EN14 : 1; + __IO uint16_t EN15 : 1; + __IO uint16_t EN16 : 1; + __IO uint16_t EN17 : 1; + __IO uint16_t EN18 : 1; + __IO uint16_t EN19 : 1; + __IO uint16_t EN20 : 1; + __IO uint16_t EN21 : 1; + __IO uint16_t EN22 : 1; + __IO uint16_t EN23 : 1; + __IO uint16_t EN24 : 1; + __IO uint16_t EN25 : 1; + __IO uint16_t EN26 : 1; + __IO uint16_t EN27 : 1; + __IO uint16_t EN28 : 1; + __IO uint16_t EN29 : 1; + __IO uint16_t EN30 : 1; + __IO uint16_t EN31 : 1; +} stc_exti_enir_field_t; + +typedef struct stc_exti_eirr_field +{ + __IO uint16_t ER0 : 1; + __IO uint16_t ER1 : 1; + __IO uint16_t ER2 : 1; + __IO uint16_t ER3 : 1; + __IO uint16_t ER4 : 1; + __IO uint16_t ER5 : 1; + __IO uint16_t ER6 : 1; + __IO uint16_t ER7 : 1; + __IO uint16_t ER8 : 1; + __IO uint16_t ER9 : 1; + __IO uint16_t ER10 : 1; + __IO uint16_t ER11 : 1; + __IO uint16_t ER12 : 1; + __IO uint16_t ER13 : 1; + __IO uint16_t ER14 : 1; + __IO uint16_t ER15 : 1; + __IO uint16_t ER16 : 1; + __IO uint16_t ER17 : 1; + __IO uint16_t ER18 : 1; + __IO uint16_t ER19 : 1; + __IO uint16_t ER20 : 1; + __IO uint16_t ER21 : 1; + __IO uint16_t ER22 : 1; + __IO uint16_t ER23 : 1; + __IO uint16_t ER24 : 1; + __IO uint16_t ER25 : 1; + __IO uint16_t ER26 : 1; + __IO uint16_t ER27 : 1; + __IO uint16_t ER28 : 1; + __IO uint16_t ER29 : 1; + __IO uint16_t ER30 : 1; + __IO uint16_t ER31 : 1; +} stc_exti_eirr_field_t; + +typedef struct stc_exti_eicl_field +{ + __IO uint16_t ECL0 : 1; + __IO uint16_t ECL1 : 1; + __IO uint16_t ECL2 : 1; + __IO uint16_t ECL3 : 1; + __IO uint16_t ECL4 : 1; + __IO uint16_t ECL5 : 1; + __IO uint16_t ECL6 : 1; + __IO uint16_t ECL7 : 1; + __IO uint16_t ECL8 : 1; + __IO uint16_t ECL9 : 1; + __IO uint16_t ECL10 : 1; + __IO uint16_t ECL11 : 1; + __IO uint16_t ECL12 : 1; + __IO uint16_t ECL13 : 1; + __IO uint16_t ECL14 : 1; + __IO uint16_t ECL15 : 1; + __IO uint16_t ECL16 : 1; + __IO uint16_t ECL17 : 1; + __IO uint16_t ECL18 : 1; + __IO uint16_t ECL19 : 1; + __IO uint16_t ECL20 : 1; + __IO uint16_t ECL21 : 1; + __IO uint16_t ECL22 : 1; + __IO uint16_t ECL23 : 1; + __IO uint16_t ECL24 : 1; + __IO uint16_t ECL25 : 1; + __IO uint16_t ECL26 : 1; + __IO uint16_t ECL27 : 1; + __IO uint16_t ECL28 : 1; + __IO uint16_t ECL29 : 1; + __IO uint16_t ECL30 : 1; + __IO uint16_t ECL31 : 1; +} stc_exti_eicl_field_t; + +typedef struct stc_exti_elvr_field +{ + __IO uint32_t LA0 : 1; + __IO uint32_t LB0 : 1; + __IO uint32_t LA1 : 1; + __IO uint32_t LB1 : 1; + __IO uint32_t LA2 : 1; + __IO uint32_t LB2 : 1; + __IO uint32_t LA3 : 1; + __IO uint32_t LB3 : 1; + __IO uint32_t LA4 : 1; + __IO uint32_t LB4 : 1; + __IO uint32_t LA5 : 1; + __IO uint32_t LB5 : 1; + __IO uint32_t LA6 : 1; + __IO uint32_t LB6 : 1; + __IO uint32_t LA7 : 1; + __IO uint32_t LB7 : 1; + __IO uint32_t LA8 : 1; + __IO uint32_t LB8 : 1; + __IO uint32_t LA9 : 1; + __IO uint32_t LB9 : 1; + __IO uint32_t LA10 : 1; + __IO uint32_t LB10 : 1; + __IO uint32_t LA11 : 1; + __IO uint32_t LB11 : 1; + __IO uint32_t LA12 : 1; + __IO uint32_t LB12 : 1; + __IO uint32_t LA13 : 1; + __IO uint32_t LB13 : 1; + __IO uint32_t LA14 : 1; + __IO uint32_t LB14 : 1; + __IO uint32_t LA15 : 1; + __IO uint32_t LB15 : 1; +} stc_exti_elvr_field_t; + +typedef struct stc_exti_elvr1_field +{ + __IO uint32_t LA16 : 1; + __IO uint32_t LB16 : 1; + __IO uint32_t LA17 : 1; + __IO uint32_t LB17 : 1; + __IO uint32_t LA18 : 1; + __IO uint32_t LB18 : 1; + __IO uint32_t LA19 : 1; + __IO uint32_t LB19 : 1; + __IO uint32_t LA20 : 1; + __IO uint32_t LB20 : 1; + __IO uint32_t LA21 : 1; + __IO uint32_t LB21 : 1; + __IO uint32_t LA22 : 1; + __IO uint32_t LB22 : 1; + __IO uint32_t LA23 : 1; + __IO uint32_t LB23 : 1; + __IO uint32_t LA24 : 1; + __IO uint32_t LB24 : 1; + __IO uint32_t LA25 : 1; + __IO uint32_t LB25 : 1; + __IO uint32_t LA26 : 1; + __IO uint32_t LB26 : 1; + __IO uint32_t LA27 : 1; + __IO uint32_t LB27 : 1; + __IO uint32_t LA28 : 1; + __IO uint32_t LB28 : 1; + __IO uint32_t LA29 : 1; + __IO uint32_t LB29 : 1; + __IO uint32_t LA30 : 1; + __IO uint32_t LB30 : 1; + __IO uint32_t LA31 : 1; + __IO uint32_t LB31 : 1; +} stc_exti_elvr1_field_t; + +typedef struct stc_exti_nmirr_field +{ + __IO uint8_t NR0 : 1; +} stc_exti_nmirr_field_t; + +typedef struct stc_exti_nmicl_field +{ + __IO uint8_t NCL0 : 1; +} stc_exti_nmicl_field_t; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* INTREQ_MODULE register bit fields */ +typedef struct stc_intreq_drqsel_field +{ + __IO uint32_t DRQSEL0 : 1; + __IO uint32_t DRQSEL1 : 1; + __IO uint32_t DRQSEL2 : 1; + __IO uint32_t DRQSEL3 : 1; + __IO uint32_t DRQSEL4 : 1; + __IO uint32_t DRQSEL5 : 1; + __IO uint32_t DRQSEL6 : 1; + __IO uint32_t DRQSEL7 : 1; + __IO uint32_t DRQSEL8 : 1; + __IO uint32_t DRQSEL9 : 1; + __IO uint32_t DRQSEL10 : 1; + __IO uint32_t DRQSEL11 : 1; + __IO uint32_t DRQSEL12 : 1; + __IO uint32_t DRQSEL13 : 1; + __IO uint32_t DRQSEL14 : 1; + __IO uint32_t DRQSEL15 : 1; + __IO uint32_t DRQSEL16 : 1; + __IO uint32_t DRQSEL17 : 1; + __IO uint32_t DRQSEL18 : 1; + __IO uint32_t DRQSEL19 : 1; + __IO uint32_t DRQSEL20 : 1; + __IO uint32_t DRQSEL21 : 1; + __IO uint32_t DRQSEL22 : 1; + __IO uint32_t DRQSEL23 : 1; + __IO uint32_t DRQSEL24 : 1; + __IO uint32_t DRQSEL25 : 1; + __IO uint32_t DRQSEL26 : 1; + __IO uint32_t DRQSEL27 : 1; + __IO uint32_t DRQSEL28 : 1; + __IO uint32_t DRQSEL29 : 1; + __IO uint32_t DRQSEL30 : 1; + __IO uint32_t DRQSEL31 : 1; +} stc_intreq_drqsel_field_t; + +typedef struct stc_intreq_oddpks_field +{ + __IO uint8_t ODDPKS0 : 1; + __IO uint8_t ODDPKS1 : 1; + __IO uint8_t ODDPKS2 : 1; + __IO uint8_t ODDPKS3 : 1; + __IO uint8_t ODDPKS4 : 1; +} stc_intreq_oddpks_field_t; + +typedef struct stc_intreq_exc02mon_field +{ + __IO uint32_t NMI : 1; + __IO uint32_t HWINT : 1; +} stc_intreq_exc02mon_field_t; + +typedef struct stc_intreq_irq00mon_field +{ + __IO uint32_t FCSINT : 1; +} stc_intreq_irq00mon_field_t; + +typedef struct stc_intreq_irq01mon_field +{ + __IO uint32_t SWWDTINT : 1; +} stc_intreq_irq01mon_field_t; + +typedef struct stc_intreq_irq02mon_field +{ + __IO uint32_t LVDINT : 1; +} stc_intreq_irq02mon_field_t; + +typedef struct stc_intreq_irq03mon_field +{ + __IO uint32_t WAVE0INT0 : 1; + __IO uint32_t WAVE0INT1 : 1; + __IO uint32_t WAVE0INT2 : 1; + __IO uint32_t WAVE0INT3 : 1; + __IO uint32_t WAVE1INT0 : 1; + __IO uint32_t WAVE1INT1 : 1; + __IO uint32_t WAVE1INT2 : 1; + __IO uint32_t WAVE1INT3 : 1; + __IO uint32_t WAVE2INT0 : 1; + __IO uint32_t WAVE2INT1 : 1; + __IO uint32_t WAVE2INT2 : 1; + __IO uint32_t WAVE2INT3 : 1; +} stc_intreq_irq03mon_field_t; + +typedef struct stc_intreq_irq04mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; + __IO uint32_t EXTINT4 : 1; + __IO uint32_t EXTINT5 : 1; + __IO uint32_t EXTINT6 : 1; + __IO uint32_t EXTINT7 : 1; +} stc_intreq_irq04mon_field_t; + +typedef struct stc_intreq_irq05mon_field +{ + __IO uint32_t EXTINT0 : 1; + __IO uint32_t EXTINT1 : 1; + __IO uint32_t EXTINT2 : 1; + __IO uint32_t EXTINT3 : 1; + __IO uint32_t EXTINT4 : 1; + __IO uint32_t EXTINT5 : 1; + __IO uint32_t EXTINT6 : 1; + __IO uint32_t EXTINT7 : 1; + __IO uint32_t EXTINT8 : 1; + __IO uint32_t EXTINT9 : 1; + __IO uint32_t EXTINT10 : 1; + __IO uint32_t EXTINT11 : 1; + __IO uint32_t EXTINT12 : 1; + __IO uint32_t EXTINT13 : 1; + __IO uint32_t EXTINT14 : 1; + __IO uint32_t EXTINT15 : 1; + __IO uint32_t EXTINT16 : 1; + __IO uint32_t EXTINT17 : 1; + __IO uint32_t EXTINT18 : 1; + __IO uint32_t EXTINT19 : 1; + __IO uint32_t EXTINT20 : 1; + __IO uint32_t EXTINT21 : 1; + __IO uint32_t EXTINT22 : 1; + __IO uint32_t EXTINT23 : 1; +} stc_intreq_irq05mon_field_t; + +typedef struct stc_intreq_irq06mon_field +{ + __IO uint32_t TIMINT1 : 1; + __IO uint32_t TIMINT2 : 1; + __IO uint32_t QUD0INT0 : 1; + __IO uint32_t QUD0INT1 : 1; + __IO uint32_t QUD0INT2 : 1; + __IO uint32_t QUD0INT3 : 1; + __IO uint32_t QUD0INT4 : 1; + __IO uint32_t QUD0INT5 : 1; + __IO uint32_t QUD1INT0 : 1; + __IO uint32_t QUD1INT1 : 1; + __IO uint32_t QUD1INT2 : 1; + __IO uint32_t QUD1INT3 : 1; + __IO uint32_t QUD1INT4 : 1; + __IO uint32_t QUD1INT5 : 1; + __IO uint32_t QUD2INT0 : 1; + __IO uint32_t QUD2INT1 : 1; + __IO uint32_t QUD2INT2 : 1; + __IO uint32_t QUD2INT3 : 1; + __IO uint32_t QUD2INT4 : 1; + __IO uint32_t QUD2INT5 : 1; +} stc_intreq_irq06mon_field_t; + +typedef struct stc_intreq_irq07mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq07mon_field_t; + +typedef struct stc_intreq_irq08mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq08mon_field_t; + +typedef struct stc_intreq_irq09mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq09mon_field_t; + +typedef struct stc_intreq_irq10mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq10mon_field_t; + +typedef struct stc_intreq_irq11mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq11mon_field_t; + +typedef struct stc_intreq_irq12mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq12mon_field_t; + +typedef struct stc_intreq_irq13mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq13mon_field_t; + +typedef struct stc_intreq_irq14mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq14mon_field_t; + +typedef struct stc_intreq_irq15mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq15mon_field_t; + +typedef struct stc_intreq_irq16mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq16mon_field_t; + +typedef struct stc_intreq_irq17mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq17mon_field_t; + +typedef struct stc_intreq_irq18mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq18mon_field_t; + +typedef struct stc_intreq_irq19mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq19mon_field_t; + +typedef struct stc_intreq_irq20mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq20mon_field_t; + +typedef struct stc_intreq_irq21mon_field +{ + __IO uint32_t FMSINT : 1; +} stc_intreq_irq21mon_field_t; + +typedef struct stc_intreq_irq22mon_field +{ + __IO uint32_t MFSINT0 : 1; + __IO uint32_t MFSINT1 : 1; +} stc_intreq_irq22mon_field_t; + +typedef struct stc_intreq_irq23mon_field +{ + __IO uint32_t PPGINT0 : 1; + __IO uint32_t PPGINT1 : 1; + __IO uint32_t PPGINT2 : 1; + __IO uint32_t PPGINT3 : 1; + __IO uint32_t PPGINT4 : 1; + __IO uint32_t PPGINT5 : 1; + __IO uint32_t PPGINT6 : 1; + __IO uint32_t PPGINT7 : 1; + __IO uint32_t PPGINT8 : 1; +} stc_intreq_irq23mon_field_t; + +typedef struct stc_intreq_irq24mon_field +{ + __IO uint32_t MOSCINT : 1; + __IO uint32_t SOSCINT : 1; + __IO uint32_t MPLLINT : 1; + __IO uint32_t UPLLINT : 1; + __IO uint32_t WCINT : 1; +} stc_intreq_irq24mon_field_t; + +typedef struct stc_intreq_irq25mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq25mon_field_t; + +typedef struct stc_intreq_irq26mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq26mon_field_t; + +typedef struct stc_intreq_irq27mon_field +{ + __IO uint32_t ADCINT0 : 1; + __IO uint32_t ADCINT1 : 1; + __IO uint32_t ADCINT2 : 1; + __IO uint32_t ADCINT3 : 1; +} stc_intreq_irq27mon_field_t; + +typedef struct stc_intreq_irq28mon_field +{ + __IO uint32_t FRT0INT0 : 1; + __IO uint32_t FRT0INT1 : 1; + __IO uint32_t FRT0INT2 : 1; + __IO uint32_t FRT0INT3 : 1; + __IO uint32_t FRT0INT4 : 1; + __IO uint32_t FRT0INT5 : 1; + __IO uint32_t FRT1INT0 : 1; + __IO uint32_t FRT1INT1 : 1; + __IO uint32_t FRT1INT2 : 1; + __IO uint32_t FRT1INT3 : 1; + __IO uint32_t FRT1INT4 : 1; + __IO uint32_t FRT1INT5 : 1; + __IO uint32_t FRT2INT0 : 1; + __IO uint32_t FRT2INT1 : 1; + __IO uint32_t FRT2INT2 : 1; + __IO uint32_t FRT2INT3 : 1; + __IO uint32_t FRT2INT4 : 1; + __IO uint32_t FRT2INT5 : 1; +} stc_intreq_irq28mon_field_t; + +typedef struct stc_intreq_irq29mon_field +{ + __IO uint32_t ICU0INT0 : 1; + __IO uint32_t ICU0INT1 : 1; + __IO uint32_t ICU0INT2 : 1; + __IO uint32_t ICU0INT3 : 1; + __IO uint32_t ICU1INT0 : 1; + __IO uint32_t ICU1INT1 : 1; + __IO uint32_t ICU1INT2 : 1; + __IO uint32_t ICU1INT3 : 1; + __IO uint32_t ICU2INT0 : 1; + __IO uint32_t ICU2INT1 : 1; + __IO uint32_t ICU2INT2 : 1; + __IO uint32_t ICU2INT3 : 1; +} stc_intreq_irq29mon_field_t; + +typedef struct stc_intreq_irq30mon_field +{ + __IO uint32_t OCU0INT0 : 1; + __IO uint32_t OCU0INT1 : 1; + __IO uint32_t OCU0INT2 : 1; + __IO uint32_t OCU0INT3 : 1; + __IO uint32_t OCU0INT4 : 1; + __IO uint32_t OCU0INT5 : 1; + __IO uint32_t OCU1INT0 : 1; + __IO uint32_t OCU1INT1 : 1; + __IO uint32_t OCU1INT2 : 1; + __IO uint32_t OCU1INT3 : 1; + __IO uint32_t OCU1INT4 : 1; + __IO uint32_t OCU1INT5 : 1; + __IO uint32_t OCU2INT0 : 1; + __IO uint32_t OCU2INT1 : 1; + __IO uint32_t OCU2INT2 : 1; + __IO uint32_t OCU2INT3 : 1; + __IO uint32_t OCU2INT4 : 1; + __IO uint32_t OCU2INT5 : 1; +} stc_intreq_irq30mon_field_t; + +typedef struct stc_intreq_irq31mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; + __IO uint32_t BTINT2 : 1; + __IO uint32_t BTINT3 : 1; + __IO uint32_t BTINT4 : 1; + __IO uint32_t BTINT5 : 1; + __IO uint32_t BTINT6 : 1; + __IO uint32_t BTINT7 : 1; + __IO uint32_t BTINT8 : 1; + __IO uint32_t BTINT9 : 1; + __IO uint32_t BTINT10 : 1; + __IO uint32_t BTINT11 : 1; + __IO uint32_t BTINT12 : 1; + __IO uint32_t BTINT13 : 1; + __IO uint32_t BTINT14 : 1; + __IO uint32_t BTINT15 : 1; +} stc_intreq_irq31mon_field_t; + +typedef struct stc_intreq_irq32mon_field +{ + uint32_t RESERVED1 : 1; + __IO uint32_t MAC0SBD : 1; + __IO uint32_t MAC0PMI : 1; + __IO uint32_t MAC0LPI : 1; +} stc_intreq_irq32mon_field_t; + +typedef struct stc_intreq_irq33mon_field +{ + uint32_t RESERVED1 : 1; + __IO uint32_t MAC1SBD : 1; + __IO uint32_t MAC1PMI : 1; +} stc_intreq_irq33mon_field_t; + +typedef struct stc_intreq_irq34mon_field +{ + __IO uint32_t USB0INT0 : 1; + __IO uint32_t USB0INT1 : 1; + __IO uint32_t USB0INT2 : 1; + __IO uint32_t USB0INT3 : 1; + __IO uint32_t USB0INT4 : 1; +} stc_intreq_irq34mon_field_t; + +typedef struct stc_intreq_irq35mon_field +{ + __IO uint32_t USB0INT0 : 1; + __IO uint32_t USB0INT1 : 1; + __IO uint32_t USB0INT2 : 1; + __IO uint32_t USB0INT3 : 1; + __IO uint32_t USB0INT4 : 1; + __IO uint32_t USB0INT5 : 1; +} stc_intreq_irq35mon_field_t; + +typedef struct stc_intreq_irq36mon_field +{ + __IO uint32_t USB1INT0 : 1; + __IO uint32_t USB1INT1 : 1; + __IO uint32_t USB1INT2 : 1; + __IO uint32_t USB1INT3 : 1; + __IO uint32_t USB1INT4 : 1; +} stc_intreq_irq36mon_field_t; + +typedef struct stc_intreq_irq37mon_field +{ + __IO uint32_t USB1INT0 : 1; + __IO uint32_t USB1INT1 : 1; + __IO uint32_t USB1INT2 : 1; + __IO uint32_t USB1INT3 : 1; + __IO uint32_t USB1INT4 : 1; + __IO uint32_t USB1INT5 : 1; +} stc_intreq_irq37mon_field_t; + +typedef struct stc_intreq_irq38mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq38mon_field_t; + +typedef struct stc_intreq_irq39mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq39mon_field_t; + +typedef struct stc_intreq_irq40mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq40mon_field_t; + +typedef struct stc_intreq_irq41mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq41mon_field_t; + +typedef struct stc_intreq_irq42mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq42mon_field_t; + +typedef struct stc_intreq_irq43mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq43mon_field_t; + +typedef struct stc_intreq_irq44mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq44mon_field_t; + +typedef struct stc_intreq_irq45mon_field +{ + __IO uint32_t DMAINT : 1; +} stc_intreq_irq45mon_field_t; + +typedef struct stc_intreq_irq46mon_field +{ + __IO uint32_t BTINT0 : 1; + __IO uint32_t BTINT1 : 1; + __IO uint32_t BTINT2 : 1; + __IO uint32_t BTINT3 : 1; + __IO uint32_t BTINT4 : 1; + __IO uint32_t BTINT5 : 1; + __IO uint32_t BTINT6 : 1; + __IO uint32_t BTINT7 : 1; + __IO uint32_t BTINT8 : 1; + __IO uint32_t BTINT9 : 1; + __IO uint32_t BTINT10 : 1; + __IO uint32_t BTINT11 : 1; + __IO uint32_t BTINT12 : 1; + __IO uint32_t BTINT13 : 1; + __IO uint32_t BTINT14 : 1; + __IO uint32_t BTINT15 : 1; +} stc_intreq_irq46mon_field_t; + +typedef struct stc_intreq_drqsel1_field +{ + __IO uint32_t DRQSEL10 : 1; + __IO uint32_t DRQSEL11 : 1; + __IO uint32_t DRQSEL12 : 1; + __IO uint32_t DRQSEL13 : 1; + __IO uint32_t DRQSEL14 : 1; +} stc_intreq_drqsel1_field_t; + +typedef struct stc_intreq_dqesel_field +{ + __IO uint32_t ESEL100 : 1; + __IO uint32_t ESEL101 : 1; + __IO uint32_t ESEL102 : 1; + __IO uint32_t ESEL103 : 1; + __IO uint32_t ESEL110 : 1; + __IO uint32_t ESEL111 : 1; + __IO uint32_t ESEL112 : 1; + __IO uint32_t ESEL113 : 1; + __IO uint32_t ESEL240 : 1; + __IO uint32_t ESEL241 : 1; + __IO uint32_t ESEL242 : 1; + __IO uint32_t ESEL243 : 1; + __IO uint32_t ESEL250 : 1; + __IO uint32_t ESEL251 : 1; + __IO uint32_t ESEL252 : 1; + __IO uint32_t ESEL253 : 1; + __IO uint32_t ESEL260 : 1; + __IO uint32_t ESEL261 : 1; + __IO uint32_t ESEL262 : 1; + __IO uint32_t ESEL263 : 1; + __IO uint32_t ESEL270 : 1; + __IO uint32_t ESEL271 : 1; + __IO uint32_t ESEL272 : 1; + __IO uint32_t ESEL273 : 1; + __IO uint32_t ESEL300 : 1; + __IO uint32_t ESEL301 : 1; + __IO uint32_t ESEL302 : 1; + __IO uint32_t ESEL303 : 1; + __IO uint32_t ESEL310 : 1; + __IO uint32_t ESEL311 : 1; + __IO uint32_t ESEL312 : 1; + __IO uint32_t ESEL313 : 1; +} stc_intreq_dqesel_field_t; + +typedef struct stc_intreq_oddpks1_field +{ + __IO uint8_t ODDPKS10 : 1; + __IO uint8_t ODDPKS11 : 1; + __IO uint8_t ODDPKS12 : 1; + __IO uint8_t ODDPKS13 : 1; + __IO uint8_t ODDPKS14 : 1; +} stc_intreq_oddpks1_field_t; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* GPIO_MODULE register bit fields */ +typedef struct stc_gpio_pfr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pfr0_field_t; + +typedef struct stc_gpio_pfr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr1_field_t; + +typedef struct stc_gpio_pfr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pfr2_field_t; + +typedef struct stc_gpio_pfr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr3_field_t; + +typedef struct stc_gpio_pfr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pfr4_field_t; + +typedef struct stc_gpio_pfr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; +} stc_gpio_pfr5_field_t; + +typedef struct stc_gpio_pfr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pfr6_field_t; + +typedef struct stc_gpio_pfr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfr7_field_t; + +typedef struct stc_gpio_pfr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pfr8_field_t; + +typedef struct stc_gpio_pfr9_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pfr9_field_t; + +typedef struct stc_gpio_pfra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pfra_field_t; + +typedef struct stc_gpio_pfrb_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; +} stc_gpio_pfrb_field_t; + +typedef struct stc_gpio_pfrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pfrc_field_t; + +typedef struct stc_gpio_pfrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pfrd_field_t; + +typedef struct stc_gpio_pfre_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pfre_field_t; + +typedef struct stc_gpio_pfrf_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pfrf_field_t; + +typedef struct stc_gpio_pcr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pcr0_field_t; + +typedef struct stc_gpio_pcr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr1_field_t; + +typedef struct stc_gpio_pcr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pcr2_field_t; + +typedef struct stc_gpio_pcr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr3_field_t; + +typedef struct stc_gpio_pcr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pcr4_field_t; + +typedef struct stc_gpio_pcr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; +} stc_gpio_pcr5_field_t; + +typedef struct stc_gpio_pcr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pcr6_field_t; + +typedef struct stc_gpio_pcr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcr7_field_t; + +typedef struct stc_gpio_pcr9_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pcr9_field_t; + +typedef struct stc_gpio_pcra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pcra_field_t; + +typedef struct stc_gpio_pcrb_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; +} stc_gpio_pcrb_field_t; + +typedef struct stc_gpio_pcrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pcrc_field_t; + +typedef struct stc_gpio_pcrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pcrd_field_t; + +typedef struct stc_gpio_pcre_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pcre_field_t; + +typedef struct stc_gpio_ddr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_ddr0_field_t; + +typedef struct stc_gpio_ddr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr1_field_t; + +typedef struct stc_gpio_ddr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_ddr2_field_t; + +typedef struct stc_gpio_ddr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr3_field_t; + +typedef struct stc_gpio_ddr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_ddr4_field_t; + +typedef struct stc_gpio_ddr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; +} stc_gpio_ddr5_field_t; + +typedef struct stc_gpio_ddr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_ddr6_field_t; + +typedef struct stc_gpio_ddr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddr7_field_t; + +typedef struct stc_gpio_ddr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_ddr8_field_t; + +typedef struct stc_gpio_ddr9_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_ddr9_field_t; + +typedef struct stc_gpio_ddra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_ddra_field_t; + +typedef struct stc_gpio_ddrb_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; +} stc_gpio_ddrb_field_t; + +typedef struct stc_gpio_ddrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_ddrc_field_t; + +typedef struct stc_gpio_ddrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_ddrd_field_t; + +typedef struct stc_gpio_ddre_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_ddre_field_t; + +typedef struct stc_gpio_ddrf_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_ddrf_field_t; + +typedef struct stc_gpio_pdir0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdir0_field_t; + +typedef struct stc_gpio_pdir1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir1_field_t; + +typedef struct stc_gpio_pdir2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdir2_field_t; + +typedef struct stc_gpio_pdir3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir3_field_t; + +typedef struct stc_gpio_pdir4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pdir4_field_t; + +typedef struct stc_gpio_pdir5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; +} stc_gpio_pdir5_field_t; + +typedef struct stc_gpio_pdir6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pdir6_field_t; + +typedef struct stc_gpio_pdir7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdir7_field_t; + +typedef struct stc_gpio_pdir8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdir8_field_t; + +typedef struct stc_gpio_pdir9_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pdir9_field_t; + +typedef struct stc_gpio_pdira_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pdira_field_t; + +typedef struct stc_gpio_pdirb_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; +} stc_gpio_pdirb_field_t; + +typedef struct stc_gpio_pdirc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdirc_field_t; + +typedef struct stc_gpio_pdird_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdird_field_t; + +typedef struct stc_gpio_pdire_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdire_field_t; + +typedef struct stc_gpio_pdirf_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pdirf_field_t; + +typedef struct stc_gpio_pdor0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdor0_field_t; + +typedef struct stc_gpio_pdor1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor1_field_t; + +typedef struct stc_gpio_pdor2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pdor2_field_t; + +typedef struct stc_gpio_pdor3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor3_field_t; + +typedef struct stc_gpio_pdor4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pdor4_field_t; + +typedef struct stc_gpio_pdor5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; +} stc_gpio_pdor5_field_t; + +typedef struct stc_gpio_pdor6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pdor6_field_t; + +typedef struct stc_gpio_pdor7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdor7_field_t; + +typedef struct stc_gpio_pdor8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdor8_field_t; + +typedef struct stc_gpio_pdor9_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pdor9_field_t; + +typedef struct stc_gpio_pdora_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pdora_field_t; + +typedef struct stc_gpio_pdorb_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; +} stc_gpio_pdorb_field_t; + +typedef struct stc_gpio_pdorc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pdorc_field_t; + +typedef struct stc_gpio_pdord_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdord_field_t; + +typedef struct stc_gpio_pdore_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pdore_field_t; + +typedef struct stc_gpio_pdorf_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pdorf_field_t; + +typedef struct stc_gpio_ade_field +{ + __IO uint32_t AN0 : 1; + __IO uint32_t AN1 : 1; + __IO uint32_t AN2 : 1; + __IO uint32_t AN3 : 1; + __IO uint32_t AN4 : 1; + __IO uint32_t AN5 : 1; + __IO uint32_t AN6 : 1; + __IO uint32_t AN7 : 1; + __IO uint32_t AN8 : 1; + __IO uint32_t AN9 : 1; + __IO uint32_t AN10 : 1; + __IO uint32_t AN11 : 1; + __IO uint32_t AN12 : 1; + __IO uint32_t AN13 : 1; + __IO uint32_t AN14 : 1; + __IO uint32_t AN15 : 1; + __IO uint32_t AN16 : 1; + __IO uint32_t AN17 : 1; + __IO uint32_t AN18 : 1; + __IO uint32_t AN19 : 1; + __IO uint32_t AN20 : 1; + __IO uint32_t AN21 : 1; + __IO uint32_t AN22 : 1; + __IO uint32_t AN23 : 1; + __IO uint32_t AN24 : 1; + __IO uint32_t AN25 : 1; + __IO uint32_t AN26 : 1; + __IO uint32_t AN27 : 1; + __IO uint32_t AN28 : 1; + __IO uint32_t AN29 : 1; + __IO uint32_t AN30 : 1; + __IO uint32_t AN31 : 1; +} stc_gpio_ade_field_t; + +typedef struct stc_gpio_spsr_field +{ + __IO uint32_t SUBXC : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MAINXC : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t USB0C : 1; + __IO uint32_t USB1C : 1; +} stc_gpio_spsr_field_t; + +typedef struct stc_gpio_epfr00_field +{ + __IO uint32_t NMIS : 1; + __IO uint32_t CROUTE0 : 1; + __IO uint32_t CROUTE1 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t SUBOUTE0 : 1; + __IO uint32_t SUBOUTE1 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t USBP0E : 1; + uint32_t RESERVED3 : 3; + __IO uint32_t USBP1E : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t JTAGEN0B : 1; + __IO uint32_t JTAGEN1S : 1; + uint32_t RESERVED5 : 6; + __IO uint32_t TRC0E : 1; + __IO uint32_t TRC1E : 1; +} stc_gpio_epfr00_field_t; + +typedef struct stc_gpio_epfr01_field +{ + __IO uint32_t RTO00E0 : 1; + __IO uint32_t RTO00E1 : 1; + __IO uint32_t RTO01E0 : 1; + __IO uint32_t RTO01E1 : 1; + __IO uint32_t RTO02E0 : 1; + __IO uint32_t RTO02E1 : 1; + __IO uint32_t RTO03E0 : 1; + __IO uint32_t RTO03E1 : 1; + __IO uint32_t RTO04E0 : 1; + __IO uint32_t RTO04E1 : 1; + __IO uint32_t RTO05E0 : 1; + __IO uint32_t RTO05E1 : 1; + __IO uint32_t DTTI0C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI0S0 : 1; + __IO uint32_t DTTI0S1 : 1; + __IO uint32_t FRCK0S0 : 1; + __IO uint32_t FRCK0S1 : 1; + __IO uint32_t IC00S0 : 1; + __IO uint32_t IC00S1 : 1; + __IO uint32_t IC00S2 : 1; + __IO uint32_t IC01S0 : 1; + __IO uint32_t IC01S1 : 1; + __IO uint32_t IC01S2 : 1; + __IO uint32_t IC02S0 : 1; + __IO uint32_t IC02S1 : 1; + __IO uint32_t IC02S2 : 1; + __IO uint32_t IC03S0 : 1; + __IO uint32_t IC03S1 : 1; + __IO uint32_t IC03S2 : 1; +} stc_gpio_epfr01_field_t; + +typedef struct stc_gpio_epfr02_field +{ + __IO uint32_t RTO10E0 : 1; + __IO uint32_t RTO10E1 : 1; + __IO uint32_t RTO11E0 : 1; + __IO uint32_t RTO11E1 : 1; + __IO uint32_t RTO12E0 : 1; + __IO uint32_t RTO12E1 : 1; + __IO uint32_t RTO13E0 : 1; + __IO uint32_t RTO13E1 : 1; + __IO uint32_t RTO14E0 : 1; + __IO uint32_t RTO14E1 : 1; + __IO uint32_t RTO15E0 : 1; + __IO uint32_t RTO15E1 : 1; + __IO uint32_t DTTI1C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI1S0 : 1; + __IO uint32_t DTTI1S1 : 1; + __IO uint32_t FRCK1S0 : 1; + __IO uint32_t FRCK1S1 : 1; + __IO uint32_t IC10S0 : 1; + __IO uint32_t IC10S1 : 1; + __IO uint32_t IC10S2 : 1; + __IO uint32_t IC11S0 : 1; + __IO uint32_t IC11S1 : 1; + __IO uint32_t IC11S2 : 1; + __IO uint32_t IC12S0 : 1; + __IO uint32_t IC12S1 : 1; + __IO uint32_t IC12S2 : 1; + __IO uint32_t IC13S0 : 1; + __IO uint32_t IC13S1 : 1; + __IO uint32_t IC13S2 : 1; +} stc_gpio_epfr02_field_t; + +typedef struct stc_gpio_epfr03_field +{ + __IO uint32_t RTO20E0 : 1; + __IO uint32_t RTO20E1 : 1; + __IO uint32_t RTO21E0 : 1; + __IO uint32_t RTO21E1 : 1; + __IO uint32_t RTO22E0 : 1; + __IO uint32_t RTO22E1 : 1; + __IO uint32_t RTO23E0 : 1; + __IO uint32_t RTO23E1 : 1; + __IO uint32_t RTO24E0 : 1; + __IO uint32_t RTO24E1 : 1; + __IO uint32_t RTO25E0 : 1; + __IO uint32_t RTO25E1 : 1; + __IO uint32_t DTTI2C : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t DTTI2S0 : 1; + __IO uint32_t DTTI2S1 : 1; + __IO uint32_t FRCK2S0 : 1; + __IO uint32_t FRCK2S1 : 1; + __IO uint32_t IC20S0 : 1; + __IO uint32_t IC20S1 : 1; + __IO uint32_t IC20S2 : 1; + __IO uint32_t IC21S0 : 1; + __IO uint32_t IC21S1 : 1; + __IO uint32_t IC21S2 : 1; + __IO uint32_t IC22S0 : 1; + __IO uint32_t IC22S1 : 1; + __IO uint32_t IC22S2 : 1; + __IO uint32_t IC23S0 : 1; + __IO uint32_t IC23S1 : 1; + __IO uint32_t IC23S2 : 1; +} stc_gpio_epfr03_field_t; + +typedef struct stc_gpio_epfr04_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA0E0 : 1; + __IO uint32_t TIOA0E1 : 1; + __IO uint32_t TIOB0S0 : 1; + __IO uint32_t TIOB0S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA1S0 : 1; + __IO uint32_t TIOA1S1 : 1; + __IO uint32_t TIOA1E0 : 1; + __IO uint32_t TIOA1E1 : 1; + __IO uint32_t TIOB1S0 : 1; + __IO uint32_t TIOB1S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA2E0 : 1; + __IO uint32_t TIOA2E1 : 1; + __IO uint32_t TIOB2S0 : 1; + __IO uint32_t TIOB2S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA3S0 : 1; + __IO uint32_t TIOA3S1 : 1; + __IO uint32_t TIOA3E0 : 1; + __IO uint32_t TIOA3E1 : 1; + __IO uint32_t TIOB3S0 : 1; + __IO uint32_t TIOB3S1 : 1; +} stc_gpio_epfr04_field_t; + +typedef struct stc_gpio_epfr05_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA4E0 : 1; + __IO uint32_t TIOA4E1 : 1; + __IO uint32_t TIOB4S0 : 1; + __IO uint32_t TIOB4S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA5S0 : 1; + __IO uint32_t TIOA5S1 : 1; + __IO uint32_t TIOA5E0 : 1; + __IO uint32_t TIOA5E1 : 1; + __IO uint32_t TIOB5S0 : 1; + __IO uint32_t TIOB5S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA6E0 : 1; + __IO uint32_t TIOA6E1 : 1; + __IO uint32_t TIOB6S0 : 1; + __IO uint32_t TIOB6S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA7S0 : 1; + __IO uint32_t TIOA7S1 : 1; + __IO uint32_t TIOA7E0 : 1; + __IO uint32_t TIOA7E1 : 1; + __IO uint32_t TIOB7S0 : 1; + __IO uint32_t TIOB7S1 : 1; +} stc_gpio_epfr05_field_t; + +typedef struct stc_gpio_epfr06_field +{ + __IO uint32_t EINT00S0 : 1; + __IO uint32_t EINT00S1 : 1; + __IO uint32_t EINT01S0 : 1; + __IO uint32_t EINT01S1 : 1; + __IO uint32_t EINT02S0 : 1; + __IO uint32_t EINT02S1 : 1; + __IO uint32_t EINT03S0 : 1; + __IO uint32_t EINT03S1 : 1; + __IO uint32_t EINT04S0 : 1; + __IO uint32_t EINT04S1 : 1; + __IO uint32_t EINT05S0 : 1; + __IO uint32_t EINT05S1 : 1; + __IO uint32_t EINT06S0 : 1; + __IO uint32_t EINT06S1 : 1; + __IO uint32_t EINT07S0 : 1; + __IO uint32_t EINT07S1 : 1; + __IO uint32_t EINT08S0 : 1; + __IO uint32_t EINT08S1 : 1; + __IO uint32_t EINT09S0 : 1; + __IO uint32_t EINT09S1 : 1; + __IO uint32_t EINT10S0 : 1; + __IO uint32_t EINT10S1 : 1; + __IO uint32_t EINT11S0 : 1; + __IO uint32_t EINT11S1 : 1; + __IO uint32_t EINT12S0 : 1; + __IO uint32_t EINT12S1 : 1; + __IO uint32_t EINT13S0 : 1; + __IO uint32_t EINT13S1 : 1; + __IO uint32_t EINT14S0 : 1; + __IO uint32_t EINT14S1 : 1; + __IO uint32_t EINT15S0 : 1; + __IO uint32_t EINT15S1 : 1; +} stc_gpio_epfr06_field_t; + +typedef struct stc_gpio_epfr07_field +{ + uint32_t RESERVED1 : 4; + __IO uint32_t SIN0S0 : 1; + __IO uint32_t SIN0S1 : 1; + __IO uint32_t SOT0B0 : 1; + __IO uint32_t SOT0B1 : 1; + __IO uint32_t SCK0B0 : 1; + __IO uint32_t SCK0B1 : 1; + __IO uint32_t SIN1S0 : 1; + __IO uint32_t SIN1S1 : 1; + __IO uint32_t SOT1B0 : 1; + __IO uint32_t SOT1B1 : 1; + __IO uint32_t SCK1B0 : 1; + __IO uint32_t SCK1B1 : 1; + __IO uint32_t SIN2S0 : 1; + __IO uint32_t SIN2S1 : 1; + __IO uint32_t SOT2B0 : 1; + __IO uint32_t SOT2B1 : 1; + __IO uint32_t SCK2B0 : 1; + __IO uint32_t SCK2B1 : 1; + __IO uint32_t SIN3S0 : 1; + __IO uint32_t SIN3S1 : 1; + __IO uint32_t SOT3B0 : 1; + __IO uint32_t SOT3B1 : 1; + __IO uint32_t SCK3B0 : 1; + __IO uint32_t SCK3B1 : 1; +} stc_gpio_epfr07_field_t; + +typedef struct stc_gpio_epfr08_field +{ + __IO uint32_t RTS4E0 : 1; + __IO uint32_t RTS4E1 : 1; + __IO uint32_t CTS4S0 : 1; + __IO uint32_t CTS4S1 : 1; + __IO uint32_t SIN4S0 : 1; + __IO uint32_t SIN4S1 : 1; + __IO uint32_t SOT4B0 : 1; + __IO uint32_t SOT4B1 : 1; + __IO uint32_t SCK4B0 : 1; + __IO uint32_t SCK4B1 : 1; + __IO uint32_t SIN5S0 : 1; + __IO uint32_t SIN5S1 : 1; + __IO uint32_t SOT5B0 : 1; + __IO uint32_t SOT5B1 : 1; + __IO uint32_t SCK5B0 : 1; + __IO uint32_t SCK5B1 : 1; + __IO uint32_t SIN6S0 : 1; + __IO uint32_t SIN6S1 : 1; + __IO uint32_t SOT6B0 : 1; + __IO uint32_t SOT6B1 : 1; + __IO uint32_t SCK6B0 : 1; + __IO uint32_t SCK6B1 : 1; + __IO uint32_t SIN7S0 : 1; + __IO uint32_t SIN7S1 : 1; + __IO uint32_t SOT7B0 : 1; + __IO uint32_t SOT7B1 : 1; + __IO uint32_t SCK7B0 : 1; + __IO uint32_t SCK7B1 : 1; +} stc_gpio_epfr08_field_t; + +typedef struct stc_gpio_epfr09_field +{ + __IO uint32_t QAIN0S0 : 1; + __IO uint32_t QAIN0S1 : 1; + __IO uint32_t QBIN0S0 : 1; + __IO uint32_t QBIN0S1 : 1; + __IO uint32_t QZIN0S0 : 1; + __IO uint32_t QZIN0S1 : 1; + __IO uint32_t QAIN1S0 : 1; + __IO uint32_t QAIN1S1 : 1; + __IO uint32_t QBIN1S0 : 1; + __IO uint32_t QBIN1S1 : 1; + __IO uint32_t QZIN1S0 : 1; + __IO uint32_t QZIN1S1 : 1; + __IO uint32_t ADTRG0S0 : 1; + __IO uint32_t ADTRG0S1 : 1; + __IO uint32_t ADTRG0S2 : 1; + __IO uint32_t ADTRG0S3 : 1; + __IO uint32_t ADTRG1S0 : 1; + __IO uint32_t ADTRG1S1 : 1; + __IO uint32_t ADTRG1S2 : 1; + __IO uint32_t ADTRG1S3 : 1; + __IO uint32_t ADTRG2S0 : 1; + __IO uint32_t ADTRG2S1 : 1; + __IO uint32_t ADTRG2S2 : 1; + __IO uint32_t ADTRG2S3 : 1; +} stc_gpio_epfr09_field_t; + +typedef struct stc_gpio_epfr10_field +{ + __IO uint32_t UEDEFB : 1; + __IO uint32_t UEDTHB : 1; + __IO uint32_t UECLKE : 1; + __IO uint32_t UEWEXE : 1; + __IO uint32_t UEDQME : 1; + __IO uint32_t UEOEXE : 1; + __IO uint32_t UEFLSE : 1; + __IO uint32_t UECS1E : 1; + __IO uint32_t UECS2E : 1; + __IO uint32_t UECS3E : 1; + __IO uint32_t UECS4E : 1; + __IO uint32_t UECS5E : 1; + __IO uint32_t UECS6E : 1; + __IO uint32_t UECS7E : 1; + __IO uint32_t UEAOOE : 1; + __IO uint32_t UEA08E : 1; + __IO uint32_t UEA09E : 1; + __IO uint32_t UEA10E : 1; + __IO uint32_t UEA11E : 1; + __IO uint32_t UEA12E : 1; + __IO uint32_t UEA13E : 1; + __IO uint32_t UEA14E : 1; + __IO uint32_t UEA15E : 1; + __IO uint32_t UEA16E : 1; + __IO uint32_t UEA17E : 1; + __IO uint32_t UEA18E : 1; + __IO uint32_t UEA19E : 1; + __IO uint32_t UEA20E : 1; + __IO uint32_t UEA21E : 1; + __IO uint32_t UEA22E : 1; + __IO uint32_t UEA23E : 1; + __IO uint32_t UEA24E : 1; +} stc_gpio_epfr10_field_t; + +typedef struct stc_gpio_epfr11_field +{ + __IO uint32_t UEALEE : 1; + __IO uint32_t UECS0E : 1; + __IO uint32_t UEA01E : 1; + __IO uint32_t UEA02E : 1; + __IO uint32_t UEA03E : 1; + __IO uint32_t UEA04E : 1; + __IO uint32_t UEA05E : 1; + __IO uint32_t UEA06E : 1; + __IO uint32_t UEA07E : 1; + __IO uint32_t UED00B : 1; + __IO uint32_t UED01B : 1; + __IO uint32_t UED02B : 1; + __IO uint32_t UED03B : 1; + __IO uint32_t UED04B : 1; + __IO uint32_t UED05B : 1; + __IO uint32_t UED06B : 1; + __IO uint32_t UED07B : 1; + __IO uint32_t UED08B : 1; + __IO uint32_t UED09B : 1; + __IO uint32_t UED10B : 1; + __IO uint32_t UED11B : 1; + __IO uint32_t UED12B : 1; + __IO uint32_t UED13B : 1; + __IO uint32_t UED14B : 1; + __IO uint32_t UED15B : 1; + __IO uint32_t UERLC : 1; +} stc_gpio_epfr11_field_t; + +typedef struct stc_gpio_epfr12_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA8E0 : 1; + __IO uint32_t TIOA8E1 : 1; + __IO uint32_t TIOB8S0 : 1; + __IO uint32_t TIOB8S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA9S0 : 1; + __IO uint32_t TIOA9S1 : 1; + __IO uint32_t TIOA9E0 : 1; + __IO uint32_t TIOA9E1 : 1; + __IO uint32_t TIOB9S0 : 1; + __IO uint32_t TIOB9S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA10E0 : 1; + __IO uint32_t TIOA10E1 : 1; + __IO uint32_t TIOB10S0 : 1; + __IO uint32_t TIOB10S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA11S0 : 1; + __IO uint32_t TIOA11S1 : 1; + __IO uint32_t TIOA11E0 : 1; + __IO uint32_t TIOA11E1 : 1; + __IO uint32_t TIOB11S0 : 1; + __IO uint32_t TIOB11S1 : 1; +} stc_gpio_epfr12_field_t; + +typedef struct stc_gpio_epfr13_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t TIOA12E0 : 1; + __IO uint32_t TIOA12E1 : 1; + __IO uint32_t TIOB12S0 : 1; + __IO uint32_t TIOB12S1 : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t TIOA13S0 : 1; + __IO uint32_t TIOA13S1 : 1; + __IO uint32_t TIOA13E0 : 1; + __IO uint32_t TIOA13E1 : 1; + __IO uint32_t TIOB13S0 : 1; + __IO uint32_t TIOB13S1 : 1; + uint32_t RESERVED3 : 4; + __IO uint32_t TIOA14E0 : 1; + __IO uint32_t TIOA14E1 : 1; + __IO uint32_t TIOB14S0 : 1; + __IO uint32_t TIOB14S1 : 1; + uint32_t RESERVED4 : 2; + __IO uint32_t TIOA15S0 : 1; + __IO uint32_t TIOA15S1 : 1; + __IO uint32_t TIOA15E0 : 1; + __IO uint32_t TIOA15E1 : 1; + __IO uint32_t TIOB15S0 : 1; + __IO uint32_t TIOB15S1 : 1; +} stc_gpio_epfr13_field_t; + +typedef struct stc_gpio_epfr14_field +{ + __IO uint32_t QAIN2S0 : 1; + __IO uint32_t QAIN2S1 : 1; + __IO uint32_t QBIN2S0 : 1; + __IO uint32_t QBIN2S1 : 1; + __IO uint32_t QZIN2S0 : 1; + __IO uint32_t QZIN2S1 : 1; + uint32_t RESERVED1 : 12; + __IO uint32_t E_TD0E : 1; + __IO uint32_t E_TD1E : 1; + __IO uint32_t E_TE0E : 1; + __IO uint32_t E_TE1E : 1; + __IO uint32_t E_MC0E : 1; + __IO uint32_t E_MC1B : 1; + __IO uint32_t E_MD0B : 1; + __IO uint32_t E_MD1B : 1; + __IO uint32_t E_CKE : 1; + __IO uint32_t E_PSE : 1; + __IO uint32_t E_SPLC0 : 1; + __IO uint32_t E_SPLC1 : 1; +} stc_gpio_epfr14_field_t; + +typedef struct stc_gpio_epfr15_field +{ + __IO uint32_t EINT16S0 : 1; + __IO uint32_t EINT16S1 : 1; + __IO uint32_t EINT17S0 : 1; + __IO uint32_t EINT17S1 : 1; + __IO uint32_t EINT18S0 : 1; + __IO uint32_t EINT18S1 : 1; + __IO uint32_t EINT19S0 : 1; + __IO uint32_t EINT19S1 : 1; + __IO uint32_t EINT20S0 : 1; + __IO uint32_t EINT20S1 : 1; + __IO uint32_t EINT21S0 : 1; + __IO uint32_t EINT21S1 : 1; + __IO uint32_t EINT22S0 : 1; + __IO uint32_t EINT22S1 : 1; + __IO uint32_t EINT23S0 : 1; + __IO uint32_t EINT23S1 : 1; + __IO uint32_t EINT24S0 : 1; + __IO uint32_t EINT24S1 : 1; + __IO uint32_t EINT25S0 : 1; + __IO uint32_t EINT25S1 : 1; + __IO uint32_t EINT26S0 : 1; + __IO uint32_t EINT26S1 : 1; + __IO uint32_t EINT27S0 : 1; + __IO uint32_t EINT27S1 : 1; + __IO uint32_t EINT28S0 : 1; + __IO uint32_t EINT28S1 : 1; + __IO uint32_t EINT29S0 : 1; + __IO uint32_t EINT29S1 : 1; + __IO uint32_t EINT30S0 : 1; + __IO uint32_t EINT30S1 : 1; + __IO uint32_t EINT31S0 : 1; + __IO uint32_t EINT31S1 : 1; +} stc_gpio_epfr15_field_t; + +typedef struct stc_gpio_pzr0_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pzr0_field_t; + +typedef struct stc_gpio_pzr1_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzr1_field_t; + +typedef struct stc_gpio_pzr2_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; +} stc_gpio_pzr2_field_t; + +typedef struct stc_gpio_pzr3_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzr3_field_t; + +typedef struct stc_gpio_pzr4_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; +} stc_gpio_pzr4_field_t; + +typedef struct stc_gpio_pzr5_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; +} stc_gpio_pzr5_field_t; + +typedef struct stc_gpio_pzr6_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; +} stc_gpio_pzr6_field_t; + +typedef struct stc_gpio_pzr7_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzr7_field_t; + +typedef struct stc_gpio_pzr8_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pzr8_field_t; + +typedef struct stc_gpio_pzr9_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pzr9_field_t; + +typedef struct stc_gpio_pzra_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; +} stc_gpio_pzra_field_t; + +typedef struct stc_gpio_pzrb_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; +} stc_gpio_pzrb_field_t; + +typedef struct stc_gpio_pzrc_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; + __IO uint32_t P7 : 1; + __IO uint32_t P8 : 1; + __IO uint32_t P9 : 1; + __IO uint32_t PA : 1; + __IO uint32_t PB : 1; + __IO uint32_t PC : 1; + __IO uint32_t PD : 1; + __IO uint32_t PE : 1; + __IO uint32_t PF : 1; +} stc_gpio_pzrc_field_t; + +typedef struct stc_gpio_pzrd_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pzrd_field_t; + +typedef struct stc_gpio_pzre_field +{ + __IO uint32_t P0 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; +} stc_gpio_pzre_field_t; + +typedef struct stc_gpio_pzrf_field +{ + __IO uint32_t P0 : 1; + __IO uint32_t P1 : 1; + __IO uint32_t P2 : 1; + __IO uint32_t P3 : 1; + __IO uint32_t P4 : 1; + __IO uint32_t P5 : 1; + __IO uint32_t P6 : 1; +} stc_gpio_pzrf_field_t; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* LVD_MODULE register bit fields */ +typedef struct stc_lvd_lvd_ctl_field +{ + uint8_t RESERVED1 : 2; + __IO uint8_t SVHI0 : 1; + __IO uint8_t SVHI1 : 1; + __IO uint8_t SVHI2 : 1; + __IO uint8_t SVHI3 : 1; + uint8_t RESERVED2 : 1; + __IO uint8_t LVDIE : 1; +} stc_lvd_lvd_ctl_field_t; + +typedef struct stc_lvd_lvd_str_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIR : 1; +} stc_lvd_lvd_str_field_t; + +typedef struct stc_lvd_lvd_clr_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDCL : 1; +} stc_lvd_lvd_clr_field_t; + +typedef struct stc_lvd_lvd_str2_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t LVDIRDY : 1; +} stc_lvd_lvd_str2_field_t; + +/****************************************************************************** + * USB Ethernet CLK + ******************************************************************************/ +/* USB ETHERNET CLK register bit fields */ +typedef struct stc_usbethernetclk_uccr_field +{ + __IO uint8_t UCEN0 : 1; + __IO uint8_t UCSEL0 : 1; + __IO uint8_t UCSEL1 : 1; + __IO uint8_t UCEN1 : 1; + __IO uint8_t ECEN : 1; + __IO uint8_t ECSEL0 : 1; + __IO uint8_t ECSEL1 : 1; +} stc_usbethernetclk_uccr_field_t; + +typedef struct stc_usbethernetclk_upcr1_field +{ + __IO uint8_t UPLLEN : 1; + __IO uint8_t UPINC : 1; +} stc_usbethernetclk_upcr1_field_t; + +typedef struct stc_usbethernetclk_upcr2_field +{ + __IO uint8_t UPOWT0 : 1; + __IO uint8_t UPOWT1 : 1; + __IO uint8_t UPOWT2 : 1; +} stc_usbethernetclk_upcr2_field_t; + +typedef struct stc_usbethernetclk_upcr3_field +{ + __IO uint8_t UPLLK0 : 1; + __IO uint8_t UPLLK1 : 1; + __IO uint8_t UPLLK2 : 1; + __IO uint8_t UPLLK3 : 1; + __IO uint8_t UPLLK4 : 1; +} stc_usbethernetclk_upcr3_field_t; + +typedef struct stc_usbethernetclk_upcr4_field +{ + __IO uint8_t UPLLN0 : 1; + __IO uint8_t UPLLN1 : 1; + __IO uint8_t UPLLN2 : 1; + __IO uint8_t UPLLN3 : 1; + __IO uint8_t UPLLN4 : 1; + __IO uint8_t UPLLN5 : 1; + __IO uint8_t UPLLN6 : 1; +} stc_usbethernetclk_upcr4_field_t; + +typedef struct stc_usbethernetclk_up_str_field +{ + __IO uint8_t UPRDY : 1; +} stc_usbethernetclk_up_str_field_t; + +typedef struct stc_usbethernetclk_upint_enr_field +{ + __IO uint8_t UPCSE : 1; +} stc_usbethernetclk_upint_enr_field_t; + +typedef struct stc_usbethernetclk_upint_clr_field +{ + __IO uint8_t UPCSC : 1; +} stc_usbethernetclk_upint_clr_field_t; + +typedef struct stc_usbethernetclk_upint_str_field +{ + __IO uint8_t UPCSI : 1; +} stc_usbethernetclk_upint_str_field_t; + +typedef struct stc_usbethernetclk_upcr5_field +{ + __IO uint8_t UPLLM0 : 1; + __IO uint8_t UPLLM1 : 1; + __IO uint8_t UPLLM2 : 1; + __IO uint8_t UPLLM3 : 1; +} stc_usbethernetclk_upcr5_field_t; + +typedef struct stc_usbethernetclk_upcr6_field +{ + __IO uint8_t UBSR0 : 1; + __IO uint8_t UBSR1 : 1; + __IO uint8_t UBSR2 : 1; + __IO uint8_t UBSR3 : 1; +} stc_usbethernetclk_upcr6_field_t; + +typedef struct stc_usbethernetclk_upcr7_field +{ + __IO uint8_t EPLLEN : 1; +} stc_usbethernetclk_upcr7_field_t; + +typedef struct stc_usbethernetclk_usben0_field +{ + __IO uint8_t USBEN0 : 1; +} stc_usbethernetclk_usben0_field_t; + +typedef struct stc_usbethernetclk_usben1_field +{ + __IO uint8_t USBEN1 : 1; +} stc_usbethernetclk_usben1_field_t; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* MFS03_UART_MODULE register bit fields */ +typedef struct stc_mfs03_uart_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs03_uart_smr_field_t; + +typedef struct stc_mfs03_uart_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; +} stc_mfs03_uart_scr_field_t; + +typedef struct stc_mfs03_uart_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t P : 1; + __IO uint8_t PEN : 1; + __IO uint8_t INV : 1; + __IO uint8_t ESBL : 1; + __IO uint8_t FLWEN : 1; +} stc_mfs03_uart_escr_field_t; + +typedef struct stc_mfs03_uart_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t PE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs03_uart_ssr_field_t; + +typedef struct stc_mfs03_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs03_uart_rdr_field_t; + +typedef struct stc_mfs03_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs03_uart_tdr_field_t; + +typedef struct stc_mfs03_uart_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs03_uart_bgr_field_t; + +typedef struct stc_mfs03_uart_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs03_uart_bgr1_field_t; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* MFS03_CSIO_MODULE register bit fields */ +typedef struct stc_mfs03_csio_smr_field +{ + __IO uint8_t SOE : 1; + __IO uint8_t SCKE : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SCINV : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs03_csio_smr_field_t; + +typedef struct stc_mfs03_csio_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t SPI : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs03_csio_scr_field_t; + +typedef struct stc_mfs03_csio_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t WT0 : 1; + __IO uint8_t WT1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SOP : 1; +} stc_mfs03_csio_escr_field_t; + +typedef struct stc_mfs03_csio_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t REC : 1; +} stc_mfs03_csio_ssr_field_t; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* MFS03_LIN_MODULE register bit fields */ +typedef struct stc_mfs03_lin_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs03_lin_smr_field_t; + +typedef struct stc_mfs03_lin_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t LBR : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs03_lin_scr_field_t; + +typedef struct stc_mfs03_lin_escr_field +{ + __IO uint8_t DEL0 : 1; + __IO uint8_t DEL1 : 1; + __IO uint8_t LBL0 : 1; + __IO uint8_t LBL1 : 1; + __IO uint8_t LBIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t ESBL : 1; +} stc_mfs03_lin_escr_field_t; + +typedef struct stc_mfs03_lin_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t LBD : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs03_lin_ssr_field_t; + +typedef struct stc_mfs03_lin_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs03_lin_bgr_field_t; + +typedef struct stc_mfs03_lin_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs03_lin_bgr1_field_t; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* MFS03_I2C_MODULE register bit fields */ +typedef struct stc_mfs03_i2c_smr_field +{ + uint8_t RESERVED1 : 2; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs03_i2c_smr_field_t; + +typedef struct stc_mfs03_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs03_i2c_ibcr_field_t; + +typedef struct stc_mfs03_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs03_i2c_ibsr_field_t; + +typedef struct stc_mfs03_i2c_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t DMA : 1; + __IO uint8_t TSET : 1; + __IO uint8_t REC : 1; +} stc_mfs03_i2c_ssr_field_t; + +typedef struct stc_mfs03_i2c_isba_field +{ + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + __IO uint8_t SAEN : 1; +} stc_mfs03_i2c_isba_field_t; + +typedef struct stc_mfs03_i2c_ismk_field +{ + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + __IO uint8_t EN : 1; +} stc_mfs03_i2c_ismk_field_t; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* MFS47_UART_MODULE register bit fields */ +typedef struct stc_mfs47_uart_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs47_uart_smr_field_t; + +typedef struct stc_mfs47_uart_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t UPCL : 1; +} stc_mfs47_uart_scr_field_t; + +typedef struct stc_mfs47_uart_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t P : 1; + __IO uint8_t PEN : 1; + __IO uint8_t INV : 1; + __IO uint8_t ESBL : 1; + __IO uint8_t FLWEN : 1; +} stc_mfs47_uart_escr_field_t; + +typedef struct stc_mfs47_uart_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t PE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs47_uart_ssr_field_t; + +typedef struct stc_mfs47_uart_rdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs47_uart_rdr_field_t; + +typedef struct stc_mfs47_uart_tdr_field +{ + uint16_t RESERVED1 : 8; + __IO uint16_t AD : 1; +} stc_mfs47_uart_tdr_field_t; + +typedef struct stc_mfs47_uart_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs47_uart_bgr_field_t; + +typedef struct stc_mfs47_uart_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs47_uart_bgr1_field_t; + +typedef struct stc_mfs47_uart_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_uart_fcr_field_t; + +typedef struct stc_mfs47_uart_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_uart_fcr0_field_t; + +typedef struct stc_mfs47_uart_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_uart_fcr1_field_t; + +typedef struct stc_mfs47_uart_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_uart_fbyte_field_t; + +typedef struct stc_mfs47_uart_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_uart_fbyte1_field_t; + +typedef struct stc_mfs47_uart_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_uart_fbyte2_field_t; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* MFS47_CSIO_MODULE register bit fields */ +typedef struct stc_mfs47_csio_smr_field +{ + __IO uint8_t SOE : 1; + __IO uint8_t SCKE : 1; + __IO uint8_t BDS : 1; + __IO uint8_t SCINV : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs47_csio_smr_field_t; + +typedef struct stc_mfs47_csio_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t SPI : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs47_csio_scr_field_t; + +typedef struct stc_mfs47_csio_escr_field +{ + __IO uint8_t L0 : 1; + __IO uint8_t L1 : 1; + __IO uint8_t L2 : 1; + __IO uint8_t WT0 : 1; + __IO uint8_t WT1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SOP : 1; +} stc_mfs47_csio_escr_field_t; + +typedef struct stc_mfs47_csio_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + uint8_t RESERVED1 : 3; + __IO uint8_t REC : 1; +} stc_mfs47_csio_ssr_field_t; + +typedef struct stc_mfs47_csio_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_csio_fcr_field_t; + +typedef struct stc_mfs47_csio_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_csio_fcr0_field_t; + +typedef struct stc_mfs47_csio_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_csio_fcr1_field_t; + +typedef struct stc_mfs47_csio_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_csio_fbyte_field_t; + +typedef struct stc_mfs47_csio_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_csio_fbyte1_field_t; + +typedef struct stc_mfs47_csio_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_csio_fbyte2_field_t; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* MFS47_LIN_MODULE register bit fields */ +typedef struct stc_mfs47_lin_smr_field +{ + __IO uint8_t SOE : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t SBL : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs47_lin_smr_field_t; + +typedef struct stc_mfs47_lin_scr_field +{ + __IO uint8_t TXE : 1; + __IO uint8_t RXE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t LBR : 1; + __IO uint8_t MS : 1; + __IO uint8_t UPCL : 1; +} stc_mfs47_lin_scr_field_t; + +typedef struct stc_mfs47_lin_escr_field +{ + __IO uint8_t DEL0 : 1; + __IO uint8_t DEL1 : 1; + __IO uint8_t LBL0 : 1; + __IO uint8_t LBL1 : 1; + __IO uint8_t LBIE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t ESBL : 1; +} stc_mfs47_lin_escr_field_t; + +typedef struct stc_mfs47_lin_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t FRE : 1; + __IO uint8_t LBD : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t REC : 1; +} stc_mfs47_lin_ssr_field_t; + +typedef struct stc_mfs47_lin_bgr_field +{ + uint16_t RESERVED1 : 15; + __IO uint16_t EXT : 1; +} stc_mfs47_lin_bgr_field_t; + +typedef struct stc_mfs47_lin_bgr1_field +{ + uint8_t RESERVED1 : 7; + __IO uint8_t EXT : 1; +} stc_mfs47_lin_bgr1_field_t; + +typedef struct stc_mfs47_lin_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_lin_fcr_field_t; + +typedef struct stc_mfs47_lin_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_lin_fcr0_field_t; + +typedef struct stc_mfs47_lin_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_lin_fcr1_field_t; + +typedef struct stc_mfs47_lin_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_lin_fbyte_field_t; + +typedef struct stc_mfs47_lin_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_lin_fbyte1_field_t; + +typedef struct stc_mfs47_lin_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_lin_fbyte2_field_t; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* MFS47_I2C_MODULE register bit fields */ +typedef struct stc_mfs47_i2c_smr_field +{ + uint8_t RESERVED1 : 2; + __IO uint8_t TIE : 1; + __IO uint8_t RIE : 1; + __IO uint8_t WUCR : 1; + __IO uint8_t MD : 3; +} stc_mfs47_i2c_smr_field_t; + +typedef struct stc_mfs47_i2c_ibcr_field +{ + __IO uint8_t INT : 1; + __IO uint8_t BER : 1; + __IO uint8_t INTE : 1; + __IO uint8_t CNDE : 1; + __IO uint8_t WSEL : 1; + __IO uint8_t ACKE : 1; + __IO uint8_t SCC : 1; + __IO uint8_t MSS : 1; +} stc_mfs47_i2c_ibcr_field_t; + +typedef struct stc_mfs47_i2c_ibsr_field +{ + __IO uint8_t BB : 1; + __IO uint8_t SPC : 1; + __IO uint8_t RSC : 1; + __IO uint8_t AL : 1; + __IO uint8_t TRX : 1; + __IO uint8_t RSA : 1; + __IO uint8_t RACK : 1; + __IO uint8_t FBT : 1; +} stc_mfs47_i2c_ibsr_field_t; + +typedef struct stc_mfs47_i2c_ssr_field +{ + __IO uint8_t TBI : 1; + __IO uint8_t TDRE : 1; + __IO uint8_t RDRF : 1; + __IO uint8_t ORE : 1; + __IO uint8_t TBIE : 1; + __IO uint8_t DMA : 1; + __IO uint8_t TSET : 1; + __IO uint8_t REC : 1; +} stc_mfs47_i2c_ssr_field_t; + +typedef struct stc_mfs47_i2c_isba_field +{ + __IO uint8_t SA0 : 1; + __IO uint8_t SA1 : 1; + __IO uint8_t SA2 : 1; + __IO uint8_t SA3 : 1; + __IO uint8_t SA4 : 1; + __IO uint8_t SA5 : 1; + __IO uint8_t SA6 : 1; + __IO uint8_t SAEN : 1; +} stc_mfs47_i2c_isba_field_t; + +typedef struct stc_mfs47_i2c_ismk_field +{ + __IO uint8_t SM0 : 1; + __IO uint8_t SM1 : 1; + __IO uint8_t SM2 : 1; + __IO uint8_t SM3 : 1; + __IO uint8_t SM4 : 1; + __IO uint8_t SM5 : 1; + __IO uint8_t SM6 : 1; + __IO uint8_t EN : 1; +} stc_mfs47_i2c_ismk_field_t; + +typedef struct stc_mfs47_i2c_fcr_field +{ + __IO uint16_t FE1 : 1; + __IO uint16_t FE2 : 1; + __IO uint16_t FCL1 : 1; + __IO uint16_t FCL2 : 1; + __IO uint16_t FSET : 1; + __IO uint16_t FLD : 1; + __IO uint16_t FLST : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t FSEL : 1; + __IO uint16_t FTIE : 1; + __IO uint16_t FDRQ : 1; + __IO uint16_t FRIE : 1; + __IO uint16_t FLSTE : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t FTST0 : 1; + __IO uint16_t FTST1 : 1; +} stc_mfs47_i2c_fcr_field_t; + +typedef struct stc_mfs47_i2c_fcr0_field +{ + __IO uint8_t FE1 : 1; + __IO uint8_t FE2 : 1; + __IO uint8_t FCL1 : 1; + __IO uint8_t FCL2 : 1; + __IO uint8_t FSET : 1; + __IO uint8_t FLD : 1; + __IO uint8_t FLST : 1; +} stc_mfs47_i2c_fcr0_field_t; + +typedef struct stc_mfs47_i2c_fcr1_field +{ + __IO uint8_t FSEL : 1; + __IO uint8_t FTIE : 1; + __IO uint8_t FDRQ : 1; + __IO uint8_t FRIE : 1; + __IO uint8_t FLSTE : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t FTST0 : 1; + __IO uint8_t FTST1 : 1; +} stc_mfs47_i2c_fcr1_field_t; + +typedef struct stc_mfs47_i2c_fbyte_field +{ + __IO uint16_t FD0 : 1; + __IO uint16_t FD1 : 1; + __IO uint16_t FD2 : 1; + __IO uint16_t FD3 : 1; + __IO uint16_t FD4 : 1; + __IO uint16_t FD5 : 1; + __IO uint16_t FD6 : 1; + __IO uint16_t FD7 : 1; + __IO uint16_t FD8 : 1; + __IO uint16_t FD9 : 1; + __IO uint16_t FD10 : 1; + __IO uint16_t FD11 : 1; + __IO uint16_t FD12 : 1; + __IO uint16_t FD13 : 1; + __IO uint16_t FD14 : 1; + __IO uint16_t FD15 : 1; +} stc_mfs47_i2c_fbyte_field_t; + +typedef struct stc_mfs47_i2c_fbyte1_field +{ + __IO uint8_t FD0 : 1; + __IO uint8_t FD1 : 1; + __IO uint8_t FD2 : 1; + __IO uint8_t FD3 : 1; + __IO uint8_t FD4 : 1; + __IO uint8_t FD5 : 1; + __IO uint8_t FD6 : 1; + __IO uint8_t FD7 : 1; +} stc_mfs47_i2c_fbyte1_field_t; + +typedef struct stc_mfs47_i2c_fbyte2_field +{ + __IO uint8_t FD8 : 1; + __IO uint8_t FD9 : 1; + __IO uint8_t FD10 : 1; + __IO uint8_t FD11 : 1; + __IO uint8_t FD12 : 1; + __IO uint8_t FD13 : 1; + __IO uint8_t FD14 : 1; + __IO uint8_t FD15 : 1; +} stc_mfs47_i2c_fbyte2_field_t; + +/****************************************************************************** + * MFS_NFC_MODULE + ******************************************************************************/ +/* MFS_NFC_MODULE register bit fields */ +typedef struct stc_mfs_nfc_i2cdnf_field +{ + __IO uint16_t I2CDNF00 : 1; + __IO uint16_t I2CDNF01 : 1; + __IO uint16_t I2CDNF10 : 1; + __IO uint16_t I2CDNF11 : 1; + __IO uint16_t I2CDNF20 : 1; + __IO uint16_t I2CDNF21 : 1; + __IO uint16_t I2CDNF30 : 1; + __IO uint16_t I2CDNF31 : 1; + __IO uint16_t I2CDNF40 : 1; + __IO uint16_t I2CDNF41 : 1; + __IO uint16_t I2CDNF50 : 1; + __IO uint16_t I2CDNF51 : 1; + __IO uint16_t I2CDNF60 : 1; + __IO uint16_t I2CDNF61 : 1; + __IO uint16_t I2CDNF70 : 1; + __IO uint16_t I2CDNF71 : 1; +} stc_mfs_nfc_i2cdnf_field_t; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC_MODULE register bit fields */ +typedef struct stc_crc_crccr_field +{ + __IO uint8_t INIT : 1; + __IO uint8_t CRC32 : 1; + __IO uint8_t LTLEND : 1; + __IO uint8_t LSBFST : 1; + __IO uint8_t CRCLTE : 1; + __IO uint8_t CRCLSF : 1; + __IO uint8_t FXOR : 1; +} stc_crc_crccr_field_t; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* WC_MODULE register bit fields */ +typedef struct stc_wc_wcrd_field +{ + __IO uint8_t CTR0 : 1; + __IO uint8_t CTR1 : 1; + __IO uint8_t CTR2 : 1; + __IO uint8_t CTR3 : 1; + __IO uint8_t CTR4 : 1; + __IO uint8_t CTR5 : 1; +} stc_wc_wcrd_field_t; + +typedef struct stc_wc_wcrl_field +{ + __IO uint8_t RLC0 : 1; + __IO uint8_t RLC1 : 1; + __IO uint8_t RLC2 : 1; + __IO uint8_t RLC3 : 1; + __IO uint8_t RLC4 : 1; + __IO uint8_t RLC5 : 1; +} stc_wc_wcrl_field_t; + +typedef struct stc_wc_wccr_field +{ + __IO uint8_t WCIF : 1; + __IO uint8_t WCIE : 1; + __IO uint8_t CS0 : 1; + __IO uint8_t CS1 : 1; + uint8_t RESERVED1 : 2; + __IO uint8_t WCOP : 1; + __IO uint8_t WCEN : 1; +} stc_wc_wccr_field_t; + +typedef struct stc_wc_clk_sel_field +{ + __IO uint16_t SEL_IN : 1; + uint16_t RESERVED1 : 7; + __IO uint16_t SEL_OUT : 1; +} stc_wc_clk_sel_field_t; + +typedef struct stc_wc_clk_en_field +{ + __IO uint8_t CLK_EN : 1; + __IO uint8_t CLK_EN_R : 1; +} stc_wc_clk_en_field_t; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* EXBUS_MODULE register bit fields */ +typedef struct stc_exbus_mode0_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode0_field_t; + +typedef struct stc_exbus_mode1_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode1_field_t; + +typedef struct stc_exbus_mode2_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode2_field_t; + +typedef struct stc_exbus_mode3_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode3_field_t; + +typedef struct stc_exbus_mode4_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode4_field_t; + +typedef struct stc_exbus_mode5_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode5_field_t; + +typedef struct stc_exbus_mode6_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode6_field_t; + +typedef struct stc_exbus_mode7_field +{ + __IO uint32_t WDTH0 : 1; + __IO uint32_t WDTH1 : 1; + __IO uint32_t RBMON : 1; + __IO uint32_t WEOFF : 1; + __IO uint32_t NAND : 1; + __IO uint32_t PAGE : 1; + __IO uint32_t RDY : 1; + __IO uint32_t SHRTDOUT : 1; + __IO uint32_t MPXMODE : 1; + __IO uint32_t ALEINV : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t MPXDOFF : 1; + __IO uint32_t MPXCSOF : 1; + __IO uint32_t MOEXEUP : 1; +} stc_exbus_mode7_field_t; + +typedef struct stc_exbus_tim0_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim0_field_t; + +typedef struct stc_exbus_tim1_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim1_field_t; + +typedef struct stc_exbus_tim2_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim2_field_t; + +typedef struct stc_exbus_tim3_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim3_field_t; + +typedef struct stc_exbus_tim4_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim4_field_t; + +typedef struct stc_exbus_tim5_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim5_field_t; + +typedef struct stc_exbus_tim6_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim6_field_t; + +typedef struct stc_exbus_tim7_field +{ + __IO uint32_t RACC0 : 1; + __IO uint32_t RACC1 : 1; + __IO uint32_t RACC2 : 1; + __IO uint32_t RACC3 : 1; + __IO uint32_t RADC0 : 1; + __IO uint32_t RADC1 : 1; + __IO uint32_t RADC2 : 1; + __IO uint32_t RADC3 : 1; + __IO uint32_t FRADC0 : 1; + __IO uint32_t FRADC1 : 1; + __IO uint32_t FRADC2 : 1; + __IO uint32_t FRADC3 : 1; + __IO uint32_t RIDLC0 : 1; + __IO uint32_t RIDLC1 : 1; + __IO uint32_t RIDLC2 : 1; + __IO uint32_t RIDLC3 : 1; + __IO uint32_t WACC0 : 1; + __IO uint32_t WACC1 : 1; + __IO uint32_t WACC2 : 1; + __IO uint32_t WACC3 : 1; + __IO uint32_t WADC0 : 1; + __IO uint32_t WADC1 : 1; + __IO uint32_t WADC2 : 1; + __IO uint32_t WADC3 : 1; + __IO uint32_t WWEC0 : 1; + __IO uint32_t WWEC1 : 1; + __IO uint32_t WWEC2 : 1; + __IO uint32_t WWEC3 : 1; + __IO uint32_t WIDLC0 : 1; + __IO uint32_t WIDLC1 : 1; + __IO uint32_t WIDLC2 : 1; + __IO uint32_t WIDLC3 : 1; +} stc_exbus_tim7_field_t; + +typedef struct stc_exbus_area0_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area0_field_t; + +typedef struct stc_exbus_area1_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area1_field_t; + +typedef struct stc_exbus_area2_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area2_field_t; + +typedef struct stc_exbus_area3_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area3_field_t; + +typedef struct stc_exbus_area4_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area4_field_t; + +typedef struct stc_exbus_area5_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area5_field_t; + +typedef struct stc_exbus_area6_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area6_field_t; + +typedef struct stc_exbus_area7_field +{ + __IO uint32_t ADDR0 : 1; + __IO uint32_t ADDR1 : 1; + __IO uint32_t ADDR2 : 1; + __IO uint32_t ADDR3 : 1; + __IO uint32_t ADDR4 : 1; + __IO uint32_t ADDR5 : 1; + __IO uint32_t ADDR6 : 1; + __IO uint32_t ADDR7 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MASK0 : 1; + __IO uint32_t MASK1 : 1; + __IO uint32_t MASK2 : 1; + __IO uint32_t MASK3 : 1; + __IO uint32_t MASK4 : 1; + __IO uint32_t MASK5 : 1; + __IO uint32_t MASK6 : 1; +} stc_exbus_area7_field_t; + +typedef struct stc_exbus_atim0_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim0_field_t; + +typedef struct stc_exbus_atim1_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim1_field_t; + +typedef struct stc_exbus_atim2_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim2_field_t; + +typedef struct stc_exbus_atim3_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim3_field_t; + +typedef struct stc_exbus_atim4_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim4_field_t; + +typedef struct stc_exbus_atim5_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim5_field_t; + +typedef struct stc_exbus_atim6_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim6_field_t; + +typedef struct stc_exbus_atim7_field +{ + __IO uint16_t ALC0 : 1; + __IO uint16_t ALC1 : 1; + __IO uint16_t ALC2 : 1; + __IO uint16_t ALC3 : 1; + __IO uint16_t ALES0 : 1; + __IO uint16_t ALES1 : 1; + __IO uint16_t ALES2 : 1; + __IO uint16_t ALES3 : 1; + __IO uint16_t ALEW0 : 1; + __IO uint16_t ALEW1 : 1; + __IO uint16_t ALEW2 : 1; + __IO uint16_t ALEW3 : 1; +} stc_exbus_atim7_field_t; + +typedef struct stc_exbus_dclkr_field +{ + __IO uint8_t MDIV0 : 1; + __IO uint8_t MDIV1 : 1; + __IO uint8_t MDIV2 : 1; + __IO uint8_t MDIV3 : 1; + __IO uint8_t MCLKON : 1; +} stc_exbus_dclkr_field_t; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB_MODULE register bit fields */ +typedef struct stc_usb_hcnt_field +{ + __IO uint16_t HOST : 1; + __IO uint16_t URST : 1; + __IO uint16_t SOFIRE : 1; + __IO uint16_t DIRE : 1; + __IO uint16_t CNNIRE : 1; + __IO uint16_t CMPIRE : 1; + __IO uint16_t URIRE : 1; + __IO uint16_t RWKIRE : 1; + __IO uint16_t RETRY : 1; + __IO uint16_t CANCEL : 1; + __IO uint16_t SOFSTEP : 1; +} stc_usb_hcnt_field_t; + +typedef struct stc_usb_hcnt0_field +{ + __IO uint8_t HOST : 1; + __IO uint8_t URST : 1; + __IO uint8_t SOFIRE : 1; + __IO uint8_t DIRE : 1; + __IO uint8_t CNNIRE : 1; + __IO uint8_t CMPIRE : 1; + __IO uint8_t URIRE : 1; + __IO uint8_t RWKIRE : 1; +} stc_usb_hcnt0_field_t; + +typedef struct stc_usb_hcnt1_field +{ + __IO uint8_t RETRY : 1; + __IO uint8_t CANCEL : 1; + __IO uint8_t SOFSTEP : 1; +} stc_usb_hcnt1_field_t; + +typedef struct stc_usb_hirq_field +{ + __IO uint8_t SOFIRQ : 1; + __IO uint8_t DIRQ : 1; + __IO uint8_t CNNIRQ : 1; + __IO uint8_t CMPIRQ : 1; + __IO uint8_t URIRQ : 1; + __IO uint8_t RWKIRQ : 1; + uint8_t RESERVED1 : 1; + __IO uint8_t TCAN : 1; +} stc_usb_hirq_field_t; + +typedef struct stc_usb_herr_field +{ + __IO uint8_t HS0 : 1; + __IO uint8_t HS1 : 1; + __IO uint8_t STUFF : 1; + __IO uint8_t TGERR : 1; + __IO uint8_t CRC : 1; + __IO uint8_t TOUT : 1; + __IO uint8_t RERR : 1; + __IO uint8_t LSTOF : 1; +} stc_usb_herr_field_t; + +typedef struct stc_usb_hstate_field +{ + __IO uint8_t CSTAT : 1; + __IO uint8_t TMODE : 1; + __IO uint8_t SUSP : 1; + __IO uint8_t SOFBUSY : 1; + __IO uint8_t CLKSEL : 1; + __IO uint8_t ALIVE : 1; +} stc_usb_hstate_field_t; + +typedef struct stc_usb_hfcomp_field +{ + __IO uint8_t FRAMECOMP0 : 1; + __IO uint8_t FRAMECOMP1 : 1; + __IO uint8_t FRAMECOMP2 : 1; + __IO uint8_t FRAMECOMP3 : 1; + __IO uint8_t FRAMECOMP4 : 1; + __IO uint8_t FRAMECOMP5 : 1; + __IO uint8_t FRAMECOMP6 : 1; + __IO uint8_t FRAMECOMP7 : 1; +} stc_usb_hfcomp_field_t; + +typedef struct stc_usb_hrtimer_field +{ + __IO uint16_t RTIMER0 : 1; + __IO uint16_t RTIMER1 : 1; + __IO uint16_t RTIMER2 : 1; + __IO uint16_t RTIMER3 : 1; + __IO uint16_t RTIMER4 : 1; + __IO uint16_t RTIMER5 : 1; + __IO uint16_t RTIMER6 : 1; + __IO uint16_t RTIMER7 : 1; + __IO uint16_t RTIMER8 : 1; + __IO uint16_t RTIMER9 : 1; + __IO uint16_t RTIMER10 : 1; + __IO uint16_t RTIMER11 : 1; + __IO uint16_t RTIMER12 : 1; + __IO uint16_t RTIMER13 : 1; + __IO uint16_t RTIMER14 : 1; + __IO uint16_t RTIMER15 : 1; +} stc_usb_hrtimer_field_t; + +typedef struct stc_usb_hrtimer0_field +{ + __IO uint8_t RTIMER00 : 1; + __IO uint8_t RTIMER01 : 1; + __IO uint8_t RTIMER02 : 1; + __IO uint8_t RTIMER03 : 1; + __IO uint8_t RTIMER04 : 1; + __IO uint8_t RTIMER05 : 1; + __IO uint8_t RTIMER06 : 1; + __IO uint8_t RTIMER07 : 1; +} stc_usb_hrtimer0_field_t; + +typedef struct stc_usb_hrtimer1_field +{ + __IO uint8_t RTIMER10 : 1; + __IO uint8_t RTIMER11 : 1; + __IO uint8_t RTIMER12 : 1; + __IO uint8_t RTIMER13 : 1; + __IO uint8_t RTIMER14 : 1; + __IO uint8_t RTIMER15 : 1; + __IO uint8_t RTIMER16 : 1; + __IO uint8_t RTIMER17 : 1; +} stc_usb_hrtimer1_field_t; + +typedef struct stc_usb_hrtimer2_field +{ + __IO uint8_t RTIMER20 : 1; + __IO uint8_t RTIMER21 : 1; + __IO uint8_t RTIMER22 : 1; +} stc_usb_hrtimer2_field_t; + +typedef struct stc_usb_hadr_field +{ + __IO uint8_t ADDRESS0 : 1; + __IO uint8_t ADDRESS1 : 1; + __IO uint8_t ADDRESS2 : 1; + __IO uint8_t ADDRESS3 : 1; + __IO uint8_t ADDRESS4 : 1; + __IO uint8_t ADDRESS5 : 1; + __IO uint8_t ADDRESS6 : 1; +} stc_usb_hadr_field_t; + +typedef struct stc_usb_heof_field +{ + __IO uint16_t EOF0 : 1; + __IO uint16_t EOF1 : 1; + __IO uint16_t EOF2 : 1; + __IO uint16_t EOF3 : 1; + __IO uint16_t EOF4 : 1; + __IO uint16_t EOF5 : 1; + __IO uint16_t EOF6 : 1; + __IO uint16_t EOF7 : 1; + __IO uint16_t EOF8 : 1; + __IO uint16_t EOF9 : 1; + __IO uint16_t EOF10 : 1; + __IO uint16_t EOF11 : 1; + __IO uint16_t EOF12 : 1; + __IO uint16_t EOF13 : 1; + __IO uint16_t EOF14 : 1; + __IO uint16_t EOF15 : 1; +} stc_usb_heof_field_t; + +typedef struct stc_usb_heof0_field +{ + __IO uint8_t EOF00 : 1; + __IO uint8_t EOF01 : 1; + __IO uint8_t EOF02 : 1; + __IO uint8_t EOF03 : 1; + __IO uint8_t EOF04 : 1; + __IO uint8_t EOF05 : 1; + __IO uint8_t EOF06 : 1; + __IO uint8_t EOF07 : 1; +} stc_usb_heof0_field_t; + +typedef struct stc_usb_heof1_field +{ + __IO uint8_t EOF10 : 1; + __IO uint8_t EOF11 : 1; + __IO uint8_t EOF12 : 1; + __IO uint8_t EOF13 : 1; + __IO uint8_t EOF14 : 1; + __IO uint8_t EOF15 : 1; +} stc_usb_heof1_field_t; + +typedef struct stc_usb_hframe_field +{ + __IO uint16_t FRAME0 : 1; + __IO uint16_t FRAME1 : 1; + __IO uint16_t FRAME2 : 1; + __IO uint16_t FRAME3 : 1; + __IO uint16_t FRAME4 : 1; + __IO uint16_t FRAME5 : 1; + __IO uint16_t FRAME6 : 1; + __IO uint16_t FRAME7 : 1; + __IO uint16_t FRAME8 : 1; + __IO uint16_t FRAME9 : 1; + __IO uint16_t FRAME10 : 1; +} stc_usb_hframe_field_t; + +typedef struct stc_usb_hframe0_field +{ + __IO uint8_t FRAME00 : 1; + __IO uint8_t FRAME01 : 1; + __IO uint8_t FRAME02 : 1; + __IO uint8_t FRAME03 : 1; + __IO uint8_t FRAME04 : 1; + __IO uint8_t FRAME05 : 1; + __IO uint8_t FRAME06 : 1; + __IO uint8_t FRAME07 : 1; +} stc_usb_hframe0_field_t; + +typedef struct stc_usb_hframe1_field +{ + __IO uint8_t FRAME10 : 1; + __IO uint8_t FRAME11 : 1; + __IO uint8_t FRAME12 : 1; + __IO uint8_t FRAME13 : 1; +} stc_usb_hframe1_field_t; + +typedef struct stc_usb_htoken_field +{ + __IO uint8_t ENDPT0 : 1; + __IO uint8_t ENDPT1 : 1; + __IO uint8_t ENDPT2 : 1; + __IO uint8_t ENDPT3 : 1; + __IO uint8_t TKNEN0 : 1; + __IO uint8_t TKNEN1 : 1; + __IO uint8_t TKNEN2 : 1; + __IO uint8_t TGGL : 1; +} stc_usb_htoken_field_t; + +typedef struct stc_usb_udcc_field +{ + __IO uint16_t PWC : 1; + __IO uint16_t RFBK : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t STALCLREN : 1; + __IO uint16_t USTP : 1; + __IO uint16_t HCONX : 1; + __IO uint16_t RESUM : 1; + __IO uint16_t RST : 1; +} stc_usb_udcc_field_t; + +typedef struct stc_usb_ep0c_field +{ + __IO uint16_t PKS00 : 1; + __IO uint16_t PKS01 : 1; + __IO uint16_t PKS02 : 1; + __IO uint16_t PKS03 : 1; + __IO uint16_t PKS04 : 1; + __IO uint16_t PKS05 : 1; + __IO uint16_t PKS06 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; +} stc_usb_ep0c_field_t; + +typedef struct stc_usb_ep1c_field +{ + __IO uint16_t PKS10 : 1; + __IO uint16_t PKS11 : 1; + __IO uint16_t PKS12 : 1; + __IO uint16_t PKS13 : 1; + __IO uint16_t PKS14 : 1; + __IO uint16_t PKS15 : 1; + __IO uint16_t PKS16 : 1; + __IO uint16_t PKS17 : 1; + __IO uint16_t PKS18 : 1; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep1c_field_t; + +typedef struct stc_usb_ep2c_field +{ + __IO uint16_t PKS20 : 1; + __IO uint16_t PKS21 : 1; + __IO uint16_t PKS22 : 1; + __IO uint16_t PKS23 : 1; + __IO uint16_t PKS24 : 1; + __IO uint16_t PKS25 : 1; + __IO uint16_t PKS26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep2c_field_t; + +typedef struct stc_usb_ep3c_field +{ + __IO uint16_t PKS30 : 1; + __IO uint16_t PKS31 : 1; + __IO uint16_t PKS32 : 1; + __IO uint16_t PKS33 : 1; + __IO uint16_t PKS34 : 1; + __IO uint16_t PKS35 : 1; + __IO uint16_t PKS36 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep3c_field_t; + +typedef struct stc_usb_ep4c_field +{ + __IO uint16_t PKS40 : 1; + __IO uint16_t PKS41 : 1; + __IO uint16_t PKS42 : 1; + __IO uint16_t PKS43 : 1; + __IO uint16_t PKS44 : 1; + __IO uint16_t PKS45 : 1; + __IO uint16_t PKS46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep4c_field_t; + +typedef struct stc_usb_ep5c_field +{ + __IO uint16_t PKS50 : 1; + __IO uint16_t PKS51 : 1; + __IO uint16_t PKS52 : 1; + __IO uint16_t PKS53 : 1; + __IO uint16_t PKS54 : 1; + __IO uint16_t PKS55 : 1; + __IO uint16_t PKS56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t STAL : 1; + __IO uint16_t NULE : 1; + __IO uint16_t DMAE : 1; + __IO uint16_t DIR : 1; + __IO uint16_t TYPE0 : 1; + __IO uint16_t TYPE1 : 1; + __IO uint16_t EPEN : 1; +} stc_usb_ep5c_field_t; + +typedef struct stc_usb_tmsp_field +{ + __IO uint16_t TMSP0 : 1; + __IO uint16_t TMSP1 : 1; + __IO uint16_t TMSP2 : 1; + __IO uint16_t TMSP3 : 1; + __IO uint16_t TMSP4 : 1; + __IO uint16_t TMSP5 : 1; + __IO uint16_t TMSP6 : 1; + __IO uint16_t TMSP7 : 1; + __IO uint16_t TMSP8 : 1; + __IO uint16_t TMSP9 : 1; + __IO uint16_t TMSP10 : 1; +} stc_usb_tmsp_field_t; + +typedef struct stc_usb_udcs_field +{ + __IO uint8_t CONF : 1; + __IO uint8_t SETP : 1; + __IO uint8_t WKUP : 1; + __IO uint8_t BRST : 1; + __IO uint8_t SOF : 1; + __IO uint8_t SUSP : 1; +} stc_usb_udcs_field_t; + +typedef struct stc_usb_udcie_field +{ + __IO uint8_t CONFIE : 1; + __IO uint8_t CONFN : 1; + __IO uint8_t WKUPIE : 1; + __IO uint8_t BRSTIE : 1; + __IO uint8_t SOFIE : 1; + __IO uint8_t SUSPIE : 1; +} stc_usb_udcie_field_t; + +typedef struct stc_usb_ep0is_field +{ + uint16_t RESERVED1 : 10; + __IO uint16_t DRQI : 1; + uint16_t RESERVED2 : 3; + __IO uint16_t DRQIIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0is_field_t; + +typedef struct stc_usb_ep0os_field +{ + __IO uint16_t SIZE0 : 1; + __IO uint16_t SIZE1 : 1; + __IO uint16_t SIZE2 : 1; + __IO uint16_t SIZE3 : 1; + __IO uint16_t SIZE4 : 1; + __IO uint16_t SIZE5 : 1; + __IO uint16_t SIZE6 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQO : 1; + uint16_t RESERVED2 : 2; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQOIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep0os_field_t; + +typedef struct stc_usb_ep1s_field +{ + __IO uint16_t SIZE10 : 1; + __IO uint16_t SIZE11 : 1; + __IO uint16_t SIZE12 : 1; + __IO uint16_t SIZE13 : 1; + __IO uint16_t SIZE14 : 1; + __IO uint16_t SIZE15 : 1; + __IO uint16_t SIZE16 : 1; + __IO uint16_t SIZE17 : 1; + __IO uint16_t SIZE18 : 1; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED1 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep1s_field_t; + +typedef struct stc_usb_ep2s_field +{ + __IO uint16_t SIZE20 : 1; + __IO uint16_t SIZE21 : 1; + __IO uint16_t SIZE22 : 1; + __IO uint16_t SIZE23 : 1; + __IO uint16_t SIZE24 : 1; + __IO uint16_t SIZE25 : 1; + __IO uint16_t SIZE26 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep2s_field_t; + +typedef struct stc_usb_ep4s_field +{ + __IO uint16_t SIZE40 : 1; + __IO uint16_t SIZE41 : 1; + __IO uint16_t SIZE42 : 1; + __IO uint16_t SIZE43 : 1; + __IO uint16_t SIZE44 : 1; + __IO uint16_t SIZE45 : 1; + __IO uint16_t SIZE46 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep4s_field_t; + +typedef struct stc_usb_ep5s_field +{ + __IO uint16_t SIZE50 : 1; + __IO uint16_t SIZE51 : 1; + __IO uint16_t SIZE52 : 1; + __IO uint16_t SIZE53 : 1; + __IO uint16_t SIZE54 : 1; + __IO uint16_t SIZE55 : 1; + __IO uint16_t SIZE56 : 1; + uint16_t RESERVED1 : 2; + __IO uint16_t SPK : 1; + __IO uint16_t DRQ : 1; + __IO uint16_t BUSY : 1; + uint16_t RESERVED2 : 1; + __IO uint16_t SPKIE : 1; + __IO uint16_t DRQIE : 1; + __IO uint16_t BFINI : 1; +} stc_usb_ep5s_field_t; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMAC_MODULE register bit fields */ +typedef struct stc_dmac_dmacr_field +{ + uint32_t RESERVED1 : 24; + __IO uint32_t DH0 : 1; + __IO uint32_t DH1 : 1; + __IO uint32_t DH2 : 1; + __IO uint32_t DH3 : 1; + __IO uint32_t PR : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t DS : 1; + __IO uint32_t DE : 1; +} stc_dmac_dmacr_field_t; + +typedef struct stc_dmac_dmaca0_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca0_field_t; + +typedef struct stc_dmac_dmacb0_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb0_field_t; + +typedef struct stc_dmac_dmaca1_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca1_field_t; + +typedef struct stc_dmac_dmacb1_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb1_field_t; + +typedef struct stc_dmac_dmaca2_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca2_field_t; + +typedef struct stc_dmac_dmacb2_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb2_field_t; + +typedef struct stc_dmac_dmaca3_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca3_field_t; + +typedef struct stc_dmac_dmacb3_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb3_field_t; + +typedef struct stc_dmac_dmaca4_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca4_field_t; + +typedef struct stc_dmac_dmacb4_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb4_field_t; + +typedef struct stc_dmac_dmaca5_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca5_field_t; + +typedef struct stc_dmac_dmacb5_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb5_field_t; + +typedef struct stc_dmac_dmaca6_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca6_field_t; + +typedef struct stc_dmac_dmacb6_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb6_field_t; + +typedef struct stc_dmac_dmaca7_field +{ + __IO uint32_t TC0 : 1; + __IO uint32_t TC1 : 1; + __IO uint32_t TC2 : 1; + __IO uint32_t TC3 : 1; + __IO uint32_t TC4 : 1; + __IO uint32_t TC5 : 1; + __IO uint32_t TC6 : 1; + __IO uint32_t TC7 : 1; + __IO uint32_t TC8 : 1; + __IO uint32_t TC9 : 1; + __IO uint32_t TC10 : 1; + __IO uint32_t TC11 : 1; + __IO uint32_t TC12 : 1; + __IO uint32_t TC13 : 1; + __IO uint32_t TC14 : 1; + __IO uint32_t TC15 : 1; + __IO uint32_t BC0 : 1; + __IO uint32_t BC1 : 1; + __IO uint32_t BC2 : 1; + __IO uint32_t BC3 : 1; + uint32_t RESERVED1 : 3; + __IO uint32_t IS0 : 1; + __IO uint32_t IS1 : 1; + __IO uint32_t IS2 : 1; + __IO uint32_t IS3 : 1; + __IO uint32_t IS4 : 1; + __IO uint32_t IS5 : 1; + __IO uint32_t ST : 1; + __IO uint32_t PB : 1; + __IO uint32_t EB : 1; +} stc_dmac_dmaca7_field_t; + +typedef struct stc_dmac_dmacb7_field +{ + __IO uint32_t EM : 1; + uint32_t RESERVED1 : 15; + __IO uint32_t SS0 : 1; + __IO uint32_t SS1 : 1; + __IO uint32_t SS2 : 1; + __IO uint32_t CI : 1; + __IO uint32_t EI : 1; + __IO uint32_t RD : 1; + __IO uint32_t RS : 1; + __IO uint32_t RC : 1; + __IO uint32_t FD : 1; + __IO uint32_t FS : 1; + __IO uint32_t TW0 : 1; + __IO uint32_t TW1 : 1; + __IO uint32_t MS0 : 1; + __IO uint32_t MS1 : 1; +} stc_dmac_dmacb7_field_t; + +/****************************************************************************** + * ETHERNET_MAC_MODULE + ******************************************************************************/ +/* ETHERNET_MAC_MODULE register bit fields */ +typedef struct stc_ethernet_mac_mcr_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t RE : 1; + __IO uint32_t TE : 1; + __IO uint32_t DC : 1; + __IO uint32_t BL0 : 1; + __IO uint32_t BL1 : 1; + __IO uint32_t ACS : 1; + __IO uint32_t LUD : 1; + __IO uint32_t DR : 1; + __IO uint32_t IPC : 1; + __IO uint32_t DM : 1; + __IO uint32_t LM : 1; + __IO uint32_t DO : 1; + __IO uint32_t FES : 1; + __IO uint32_t PS : 1; + __IO uint32_t DCRS : 1; + __IO uint32_t IFG0 : 1; + __IO uint32_t IFG1 : 1; + __IO uint32_t IFG2 : 1; + __IO uint32_t JE : 1; + __IO uint32_t BE : 1; + __IO uint32_t JD : 1; + __IO uint32_t WD : 1; + __IO uint32_t TC : 1; + __IO uint32_t CST : 1; +} stc_ethernet_mac_mcr_field_t; + +typedef struct stc_ethernet_mac_mffr_field +{ + __IO uint32_t PR : 1; + __IO uint32_t HUC : 1; + __IO uint32_t HMC : 1; + __IO uint32_t DAIF : 1; + __IO uint32_t PM : 1; + __IO uint32_t DB : 1; + __IO uint32_t PCF0 : 1; + __IO uint32_t PCF1 : 1; + __IO uint32_t SAIF : 1; + __IO uint32_t SAF : 1; + __IO uint32_t HPF : 1; + uint32_t RESERVED1 :20; + __IO uint32_t RA : 1; +} stc_ethernet_mac_mffr_field_t; + +typedef struct stc_ethernet_mac_mhtrh_field +{ + __IO uint32_t HTH0 : 1; + __IO uint32_t HTH1 : 1; + __IO uint32_t HTH2 : 1; + __IO uint32_t HTH3 : 1; + __IO uint32_t HTH4 : 1; + __IO uint32_t HTH5 : 1; + __IO uint32_t HTH6 : 1; + __IO uint32_t HTH7 : 1; + __IO uint32_t HTH8 : 1; + __IO uint32_t HTH9 : 1; + __IO uint32_t HTH10 : 1; + __IO uint32_t HTH11 : 1; + __IO uint32_t HTH12 : 1; + __IO uint32_t HTH13 : 1; + __IO uint32_t HTH14 : 1; + __IO uint32_t HTH15 : 1; + __IO uint32_t HTH16 : 1; + __IO uint32_t HTH17 : 1; + __IO uint32_t HTH18 : 1; + __IO uint32_t HTH19 : 1; + __IO uint32_t HTH20 : 1; + __IO uint32_t HTH21 : 1; + __IO uint32_t HTH22 : 1; + __IO uint32_t HTH23 : 1; + __IO uint32_t HTH24 : 1; + __IO uint32_t HTH25 : 1; + __IO uint32_t HTH26 : 1; + __IO uint32_t HTH27 : 1; + __IO uint32_t HTH28 : 1; + __IO uint32_t HTH29 : 1; + __IO uint32_t HTH30 : 1; + __IO uint32_t HTH31 : 1; +} stc_ethernet_mac_mhtrh_field_t; + +typedef struct stc_ethernet_mac_mhtrl_field +{ + __IO uint32_t HTL0 : 1; + __IO uint32_t HTL1 : 1; + __IO uint32_t HTL2 : 1; + __IO uint32_t HTL3 : 1; + __IO uint32_t HTL4 : 1; + __IO uint32_t HTL5 : 1; + __IO uint32_t HTL6 : 1; + __IO uint32_t HTL7 : 1; + __IO uint32_t HTL8 : 1; + __IO uint32_t HTL9 : 1; + __IO uint32_t HTL10 : 1; + __IO uint32_t HTL11 : 1; + __IO uint32_t HTL12 : 1; + __IO uint32_t HTL13 : 1; + __IO uint32_t HTL14 : 1; + __IO uint32_t HTL15 : 1; + __IO uint32_t HTL16 : 1; + __IO uint32_t HTL17 : 1; + __IO uint32_t HTL18 : 1; + __IO uint32_t HTL19 : 1; + __IO uint32_t HTL20 : 1; + __IO uint32_t HTL21 : 1; + __IO uint32_t HTL22 : 1; + __IO uint32_t HTL23 : 1; + __IO uint32_t HTL24 : 1; + __IO uint32_t HTL25 : 1; + __IO uint32_t HTL26 : 1; + __IO uint32_t HTL27 : 1; + __IO uint32_t HTL28 : 1; + __IO uint32_t HTL29 : 1; + __IO uint32_t HTL30 : 1; + __IO uint32_t HTL31 : 1; +} stc_ethernet_mac_mhtrl_field_t; + +typedef struct stc_ethernet_mac_gar_field +{ + __IO uint32_t GB : 1; + __IO uint32_t GW : 1; + __IO uint32_t CR0 : 1; + __IO uint32_t CR1 : 1; + __IO uint32_t CR2 : 1; + __IO uint32_t CR3 : 1; + __IO uint32_t GR0 : 1; + __IO uint32_t GR1 : 1; + __IO uint32_t GR2 : 1; + __IO uint32_t GR3 : 1; + __IO uint32_t GR4 : 1; + __IO uint32_t PA0 : 1; + __IO uint32_t PA1 : 1; + __IO uint32_t PA2 : 1; + __IO uint32_t PA3 : 1; + __IO uint32_t PA4 : 1; +} stc_ethernet_mac_gar_field_t; + +typedef struct stc_ethernet_mac_gdr_field +{ + __IO uint32_t GD0 : 1; + __IO uint32_t GD1 : 1; + __IO uint32_t GD2 : 1; + __IO uint32_t GD3 : 1; + __IO uint32_t GD4 : 1; + __IO uint32_t GD5 : 1; + __IO uint32_t GD6 : 1; + __IO uint32_t GD7 : 1; + __IO uint32_t GD8 : 1; + __IO uint32_t GD9 : 1; + __IO uint32_t GD10 : 1; + __IO uint32_t GD11 : 1; + __IO uint32_t GD12 : 1; + __IO uint32_t GD13 : 1; + __IO uint32_t GD14 : 1; + __IO uint32_t GD15 : 1; +} stc_ethernet_mac_gdr_field_t; + +typedef struct stc_ethernet_mac_fcr_field +{ + __IO uint32_t FCB_BPA : 1; + __IO uint32_t TFE : 1; + __IO uint32_t RFE : 1; + __IO uint32_t UP : 1; + __IO uint32_t PLT0 : 1; + __IO uint32_t PLT1 : 1; + uint32_t RESERVED1 : 1; + __IO uint32_t DZPQ : 1; + uint32_t RESERVED2 : 8; + __IO uint32_t PT0 : 1; + __IO uint32_t PT1 : 1; + __IO uint32_t PT2 : 1; + __IO uint32_t PT3 : 1; + __IO uint32_t PT4 : 1; + __IO uint32_t PT5 : 1; + __IO uint32_t PT6 : 1; + __IO uint32_t PT7 : 1; + __IO uint32_t PT8 : 1; + __IO uint32_t PT9 : 1; + __IO uint32_t PT10 : 1; + __IO uint32_t PT11 : 1; + __IO uint32_t PT12 : 1; + __IO uint32_t PT13 : 1; + __IO uint32_t PT14 : 1; + __IO uint32_t PT15 : 1; +} stc_ethernet_mac_fcr_field_t; + +typedef struct stc_ethernet_mac_vtr_field +{ + __IO uint32_t VL0 : 1; + __IO uint32_t VL1 : 1; + __IO uint32_t VL2 : 1; + __IO uint32_t VL3 : 1; + __IO uint32_t VL4 : 1; + __IO uint32_t VL5 : 1; + __IO uint32_t VL6 : 1; + __IO uint32_t VL7 : 1; + __IO uint32_t VL8 : 1; + __IO uint32_t VL9 : 1; + __IO uint32_t VL10 : 1; + __IO uint32_t VL11 : 1; + __IO uint32_t VL12 : 1; + __IO uint32_t VL13 : 1; + __IO uint32_t VL14 : 1; + __IO uint32_t VL15 : 1; + __IO uint32_t ETV : 1; +} stc_ethernet_mac_vtr_field_t; + +typedef struct stc_ethernet_mac_rwffr_field +{ + __IO uint32_t RWFFR0 : 1; + __IO uint32_t RWFFR1 : 1; + __IO uint32_t RWFFR2 : 1; + __IO uint32_t RWFFR3 : 1; + __IO uint32_t RWFFR4 : 1; + __IO uint32_t RWFFR5 : 1; + __IO uint32_t RWFFR6 : 1; + __IO uint32_t RWFFR7 : 1; + __IO uint32_t RWFFR8 : 1; + __IO uint32_t RWFFR9 : 1; + __IO uint32_t RWFFR10 : 1; + __IO uint32_t RWFFR11 : 1; + __IO uint32_t RWFFR12 : 1; + __IO uint32_t RWFFR13 : 1; + __IO uint32_t RWFFR14 : 1; + __IO uint32_t RWFFR15 : 1; + __IO uint32_t RWFFR16 : 1; + __IO uint32_t RWFFR17 : 1; + __IO uint32_t RWFFR18 : 1; + __IO uint32_t RWFFR19 : 1; + __IO uint32_t RWFFR20 : 1; + __IO uint32_t RWFFR21 : 1; + __IO uint32_t RWFFR22 : 1; + __IO uint32_t RWFFR23 : 1; + __IO uint32_t RWFFR24 : 1; + __IO uint32_t RWFFR25 : 1; + __IO uint32_t RWFFR26 : 1; + __IO uint32_t RWFFR27 : 1; + __IO uint32_t RWFFR28 : 1; + __IO uint32_t RWFFR29 : 1; + __IO uint32_t RWFFR30 : 1; + __IO uint32_t RWFFR31 : 1; +} stc_ethernet_mac_rwffr_field_t; + +typedef struct stc_ethernet_mac_pmtr_field +{ + __IO uint32_t PD : 1; + __IO uint32_t MPE : 1; + __IO uint32_t WFE : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t MPR : 1; + __IO uint32_t WPR : 1; + uint32_t RESERVED2 : 2; + __IO uint32_t GU : 1; + uint32_t RESERVED3 :21; + __IO uint32_t RWFFRPR : 1; +} stc_ethernet_mac_pmtr_field_t; + +typedef struct stc_ethernet_mac_lpicsr_field +{ + __IO uint32_t TLPIEN : 1; + __IO uint32_t TLPIEX : 1; + __IO uint32_t RLPIEN : 1; + __IO uint32_t RLPIEX : 1; + uint32_t RESERVED1 : 4; + __IO uint32_t TLPIST : 1; + __IO uint32_t RLPIST : 1; + uint32_t RESERVED2 : 6; + __IO uint32_t LPIEN : 1; + __IO uint32_t PLS : 1; + __IO uint32_t PLSEN : 1; + __IO uint32_t LPITXA : 1; +} stc_ethernet_mac_lpicsr_field_t; + +typedef struct stc_ethernet_mac_lpitcr_field +{ + __IO uint32_t TWT0 : 1; + __IO uint32_t TWT1 : 1; + __IO uint32_t TWT2 : 1; + __IO uint32_t TWT3 : 1; + __IO uint32_t TWT4 : 1; + __IO uint32_t TWT5 : 1; + __IO uint32_t TWT6 : 1; + __IO uint32_t TWT7 : 1; + __IO uint32_t TWT8 : 1; + __IO uint32_t TWT9 : 1; + __IO uint32_t TWT10 : 1; + __IO uint32_t TWT11 : 1; + __IO uint32_t TWT12 : 1; + __IO uint32_t TWT13 : 1; + __IO uint32_t TWT14 : 1; + __IO uint32_t TWT15 : 1; + __IO uint32_t LIT0 : 1; + __IO uint32_t LIT1 : 1; + __IO uint32_t LIT2 : 1; + __IO uint32_t LIT3 : 1; + __IO uint32_t LIT4 : 1; + __IO uint32_t LIT5 : 1; + __IO uint32_t LIT6 : 1; + __IO uint32_t LIT7 : 1; + __IO uint32_t LIT8 : 1; + __IO uint32_t LIT9 : 1; +} stc_ethernet_mac_lpitcr_field_t; + +typedef struct stc_ethernet_mac_isr_field +{ + __IO uint32_t RGIS : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t PIS : 1; + __IO uint32_t MIS : 1; + __IO uint32_t RIS : 1; + __IO uint32_t TIS : 1; + __IO uint32_t COIS : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t TSIS : 1; + __IO uint32_t LPIIS : 1; +} stc_ethernet_mac_isr_field_t; + +typedef struct stc_ethernet_mac_imr_field +{ + __IO uint32_t RGIM : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t PIM : 1; + uint32_t RESERVED2 : 5; + __IO uint32_t TSIM : 1; + __IO uint32_t LPIIM : 1; +} stc_ethernet_mac_imr_field_t; + +typedef struct stc_ethernet_mac_mar0h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 :15; + __IO uint32_t MO : 1; +} stc_ethernet_mac_mar0h_field_t; + +typedef struct stc_ethernet_mac_mar0l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar0l_field_t; + +typedef struct stc_ethernet_mac_mar1h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar1h_field_t; + +typedef struct stc_ethernet_mac_mar1l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar1l_field_t; + +typedef struct stc_ethernet_mac_mar2h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar2h_field_t; + +typedef struct stc_ethernet_mac_mar2l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar2l_field_t; + +typedef struct stc_ethernet_mac_mar3h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar3h_field_t; + +typedef struct stc_ethernet_mac_mar3l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar3l_field_t; + +typedef struct stc_ethernet_mac_mar4h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar4h_field_t; + +typedef struct stc_ethernet_mac_mar4l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar4l_field_t; + +typedef struct stc_ethernet_mac_mar5h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar5h_field_t; + +typedef struct stc_ethernet_mac_mar5l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar5l_field_t; + +typedef struct stc_ethernet_mac_mar6h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar6h_field_t; + +typedef struct stc_ethernet_mac_mar6l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar6l_field_t; + +typedef struct stc_ethernet_mac_mar7h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar7h_field_t; + +typedef struct stc_ethernet_mac_mar7l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar7l_field_t; + +typedef struct stc_ethernet_mac_mar8h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar8h_field_t; + +typedef struct stc_ethernet_mac_mar8l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar8l_field_t; + +typedef struct stc_ethernet_mac_mar9h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar9h_field_t; + +typedef struct stc_ethernet_mac_mar9l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar9l_field_t; + +typedef struct stc_ethernet_mac_mar10h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar10h_field_t; + +typedef struct stc_ethernet_mac_mar10l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar10l_field_t; + +typedef struct stc_ethernet_mac_mar11h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar11h_field_t; + +typedef struct stc_ethernet_mac_mar11l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar11l_field_t; + +typedef struct stc_ethernet_mac_mar12h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar12h_field_t; + +typedef struct stc_ethernet_mac_mar12l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar12l_field_t; + +typedef struct stc_ethernet_mac_mar13h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar13h_field_t; + +typedef struct stc_ethernet_mac_mar13l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar13l_field_t; + +typedef struct stc_ethernet_mac_mar14h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar14h_field_t; + +typedef struct stc_ethernet_mac_mar14l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar14l_field_t; + +typedef struct stc_ethernet_mac_mar15h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar15h_field_t; + +typedef struct stc_ethernet_mac_mar15l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar15l_field_t; + +typedef struct stc_ethernet_mac_rgsr_field +{ + __IO uint32_t LM : 1; + __IO uint32_t LSP0 : 1; + __IO uint32_t LSP1 : 1; + __IO uint32_t LS : 1; +} stc_ethernet_mac_rgsr_field_t; + +typedef struct stc_ethernet_mac_tscr_field +{ + __IO uint32_t TSE : 1; + __IO uint32_t TFCU : 1; + __IO uint32_t TSI : 1; + __IO uint32_t TSU : 1; + __IO uint32_t TITE : 1; + __IO uint32_t TARU : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t TSEA : 1; + __IO uint32_t TSDB : 1; + __IO uint32_t TSV2E : 1; + __IO uint32_t TETSP : 1; + __IO uint32_t TSIP6E : 1; + __IO uint32_t TSIP4E : 1; + __IO uint32_t TETSEM : 1; + __IO uint32_t TSMRM : 1; + __IO uint32_t TSPS0 : 1; + __IO uint32_t TSPS1 : 1; + __IO uint32_t TSENMF : 1; + uint32_t RESERVED2 : 5; + __IO uint32_t ATSFC : 1; +} stc_ethernet_mac_tscr_field_t; + +typedef struct stc_ethernet_mac_ssir_field +{ + __IO uint32_t SSINC0 : 1; + __IO uint32_t SSINC1 : 1; + __IO uint32_t SSINC2 : 1; + __IO uint32_t SSINC3 : 1; + __IO uint32_t SSINC4 : 1; + __IO uint32_t SSINC5 : 1; + __IO uint32_t SSINC6 : 1; + __IO uint32_t SSINC7 : 1; +} stc_ethernet_mac_ssir_field_t; + +typedef struct stc_ethernet_mac_stsr_field +{ + __IO uint32_t TSS0 : 1; + __IO uint32_t TSS1 : 1; + __IO uint32_t TSS2 : 1; + __IO uint32_t TSS3 : 1; + __IO uint32_t TSS4 : 1; + __IO uint32_t TSS5 : 1; + __IO uint32_t TSS6 : 1; + __IO uint32_t TSS7 : 1; + __IO uint32_t TSS8 : 1; + __IO uint32_t TSS9 : 1; + __IO uint32_t TSS10 : 1; + __IO uint32_t TSS11 : 1; + __IO uint32_t TSS12 : 1; + __IO uint32_t TSS13 : 1; + __IO uint32_t TSS14 : 1; + __IO uint32_t TSS15 : 1; + __IO uint32_t TSS16 : 1; + __IO uint32_t TSS17 : 1; + __IO uint32_t TSS18 : 1; + __IO uint32_t TSS19 : 1; + __IO uint32_t TSS20 : 1; + __IO uint32_t TSS21 : 1; + __IO uint32_t TSS22 : 1; + __IO uint32_t TSS23 : 1; + __IO uint32_t TSS24 : 1; + __IO uint32_t TSS25 : 1; + __IO uint32_t TSS26 : 1; + __IO uint32_t TSS27 : 1; + __IO uint32_t TSS28 : 1; + __IO uint32_t TSS29 : 1; + __IO uint32_t TSS30 : 1; + __IO uint32_t TSS31 : 1; +} stc_ethernet_mac_stsr_field_t; + +typedef struct stc_ethernet_mac_stnr_field +{ + __IO uint32_t TSSS0 : 1; + __IO uint32_t TSSS1 : 1; + __IO uint32_t TSSS2 : 1; + __IO uint32_t TSSS3 : 1; + __IO uint32_t TSSS4 : 1; + __IO uint32_t TSSS5 : 1; + __IO uint32_t TSSS6 : 1; + __IO uint32_t TSSS7 : 1; + __IO uint32_t TSSS8 : 1; + __IO uint32_t TSSS9 : 1; + __IO uint32_t TSSS10 : 1; + __IO uint32_t TSSS11 : 1; + __IO uint32_t TSSS12 : 1; + __IO uint32_t TSSS13 : 1; + __IO uint32_t TSSS14 : 1; + __IO uint32_t TSSS15 : 1; + __IO uint32_t TSSS16 : 1; + __IO uint32_t TSSS17 : 1; + __IO uint32_t TSSS18 : 1; + __IO uint32_t TSSS19 : 1; + __IO uint32_t TSSS20 : 1; + __IO uint32_t TSSS21 : 1; + __IO uint32_t TSSS22 : 1; + __IO uint32_t TSSS23 : 1; + __IO uint32_t TSSS24 : 1; + __IO uint32_t TSSS25 : 1; + __IO uint32_t TSSS26 : 1; + __IO uint32_t TSSS27 : 1; + __IO uint32_t TSSS28 : 1; + __IO uint32_t TSSS29 : 1; + __IO uint32_t TSSS30 : 1; +} stc_ethernet_mac_stnr_field_t; + +typedef struct stc_ethernet_mac_stsur_field +{ + __IO uint32_t TSS0 : 1; + __IO uint32_t TSS1 : 1; + __IO uint32_t TSS2 : 1; + __IO uint32_t TSS3 : 1; + __IO uint32_t TSS4 : 1; + __IO uint32_t TSS5 : 1; + __IO uint32_t TSS6 : 1; + __IO uint32_t TSS7 : 1; + __IO uint32_t TSS8 : 1; + __IO uint32_t TSS9 : 1; + __IO uint32_t TSS10 : 1; + __IO uint32_t TSS11 : 1; + __IO uint32_t TSS12 : 1; + __IO uint32_t TSS13 : 1; + __IO uint32_t TSS14 : 1; + __IO uint32_t TSS15 : 1; + __IO uint32_t TSS16 : 1; + __IO uint32_t TSS17 : 1; + __IO uint32_t TSS18 : 1; + __IO uint32_t TSS19 : 1; + __IO uint32_t TSS20 : 1; + __IO uint32_t TSS21 : 1; + __IO uint32_t TSS22 : 1; + __IO uint32_t TSS23 : 1; + __IO uint32_t TSS24 : 1; + __IO uint32_t TSS25 : 1; + __IO uint32_t TSS26 : 1; + __IO uint32_t TSS27 : 1; + __IO uint32_t TSS28 : 1; + __IO uint32_t TSS29 : 1; + __IO uint32_t TSS30 : 1; + __IO uint32_t TSS31 : 1; +} stc_ethernet_mac_stsur_field_t; + +typedef struct stc_ethernet_mac_stnur_field +{ + __IO uint32_t TSSS0 : 1; + __IO uint32_t TSSS1 : 1; + __IO uint32_t TSSS2 : 1; + __IO uint32_t TSSS3 : 1; + __IO uint32_t TSSS4 : 1; + __IO uint32_t TSSS5 : 1; + __IO uint32_t TSSS6 : 1; + __IO uint32_t TSSS7 : 1; + __IO uint32_t TSSS8 : 1; + __IO uint32_t TSSS9 : 1; + __IO uint32_t TSSS10 : 1; + __IO uint32_t TSSS11 : 1; + __IO uint32_t TSSS12 : 1; + __IO uint32_t TSSS13 : 1; + __IO uint32_t TSSS14 : 1; + __IO uint32_t TSSS15 : 1; + __IO uint32_t TSSS16 : 1; + __IO uint32_t TSSS17 : 1; + __IO uint32_t TSSS18 : 1; + __IO uint32_t TSSS19 : 1; + __IO uint32_t TSSS20 : 1; + __IO uint32_t TSSS21 : 1; + __IO uint32_t TSSS22 : 1; + __IO uint32_t TSSS23 : 1; + __IO uint32_t TSSS24 : 1; + __IO uint32_t TSSS25 : 1; + __IO uint32_t TSSS26 : 1; + __IO uint32_t TSSS27 : 1; + __IO uint32_t TSSS28 : 1; + __IO uint32_t TSSS29 : 1; + __IO uint32_t TSSS30 : 1; + __IO uint32_t ADDSUB : 1; +} stc_ethernet_mac_stnur_field_t; + +typedef struct stc_ethernet_mac_tsar_field +{ + __IO uint32_t TSAR0 : 1; + __IO uint32_t TSAR1 : 1; + __IO uint32_t TSAR2 : 1; + __IO uint32_t TSAR3 : 1; + __IO uint32_t TSAR4 : 1; + __IO uint32_t TSAR5 : 1; + __IO uint32_t TSAR6 : 1; + __IO uint32_t TSAR7 : 1; + __IO uint32_t TSAR8 : 1; + __IO uint32_t TSAR9 : 1; + __IO uint32_t TSAR10 : 1; + __IO uint32_t TSAR11 : 1; + __IO uint32_t TSAR12 : 1; + __IO uint32_t TSAR13 : 1; + __IO uint32_t TSAR14 : 1; + __IO uint32_t TSAR15 : 1; + __IO uint32_t TSAR16 : 1; + __IO uint32_t TSAR17 : 1; + __IO uint32_t TSAR18 : 1; + __IO uint32_t TSAR19 : 1; + __IO uint32_t TSAR20 : 1; + __IO uint32_t TSAR21 : 1; + __IO uint32_t TSAR22 : 1; + __IO uint32_t TSAR23 : 1; + __IO uint32_t TSAR24 : 1; + __IO uint32_t TSAR25 : 1; + __IO uint32_t TSAR26 : 1; + __IO uint32_t TSAR27 : 1; + __IO uint32_t TSAR28 : 1; + __IO uint32_t TSAR29 : 1; + __IO uint32_t TSAR30 : 1; + __IO uint32_t TSAR31 : 1; +} stc_ethernet_mac_tsar_field_t; + +typedef struct stc_ethernet_mac_ttsr_field +{ + __IO uint32_t TSTR0 : 1; + __IO uint32_t TSTR1 : 1; + __IO uint32_t TSTR2 : 1; + __IO uint32_t TSTR3 : 1; + __IO uint32_t TSTR4 : 1; + __IO uint32_t TSTR5 : 1; + __IO uint32_t TSTR6 : 1; + __IO uint32_t TSTR7 : 1; + __IO uint32_t TSTR8 : 1; + __IO uint32_t TSTR9 : 1; + __IO uint32_t TSTR10 : 1; + __IO uint32_t TSTR11 : 1; + __IO uint32_t TSTR12 : 1; + __IO uint32_t TSTR13 : 1; + __IO uint32_t TSTR14 : 1; + __IO uint32_t TSTR15 : 1; + __IO uint32_t TSTR16 : 1; + __IO uint32_t TSTR17 : 1; + __IO uint32_t TSTR18 : 1; + __IO uint32_t TSTR19 : 1; + __IO uint32_t TSTR20 : 1; + __IO uint32_t TSTR21 : 1; + __IO uint32_t TSTR22 : 1; + __IO uint32_t TSTR23 : 1; + __IO uint32_t TSTR24 : 1; + __IO uint32_t TSTR25 : 1; + __IO uint32_t TSTR26 : 1; + __IO uint32_t TSTR27 : 1; + __IO uint32_t TSTR28 : 1; + __IO uint32_t TSTR29 : 1; + __IO uint32_t TSTR30 : 1; + __IO uint32_t TSTR31 : 1; +} stc_ethernet_mac_ttsr_field_t; + +typedef struct stc_ethernet_mac_ttnr_field +{ + __IO uint32_t TSTR0 : 1; + __IO uint32_t TSTR1 : 1; + __IO uint32_t TSTR2 : 1; + __IO uint32_t TSTR3 : 1; + __IO uint32_t TSTR4 : 1; + __IO uint32_t TSTR5 : 1; + __IO uint32_t TSTR6 : 1; + __IO uint32_t TSTR7 : 1; + __IO uint32_t TSTR8 : 1; + __IO uint32_t TSTR9 : 1; + __IO uint32_t TSTR10 : 1; + __IO uint32_t TSTR11 : 1; + __IO uint32_t TSTR12 : 1; + __IO uint32_t TSTR13 : 1; + __IO uint32_t TSTR14 : 1; + __IO uint32_t TSTR15 : 1; + __IO uint32_t TSTR16 : 1; + __IO uint32_t TSTR17 : 1; + __IO uint32_t TSTR18 : 1; + __IO uint32_t TSTR19 : 1; + __IO uint32_t TSTR20 : 1; + __IO uint32_t TSTR21 : 1; + __IO uint32_t TSTR22 : 1; + __IO uint32_t TSTR23 : 1; + __IO uint32_t TSTR24 : 1; + __IO uint32_t TSTR25 : 1; + __IO uint32_t TSTR26 : 1; + __IO uint32_t TSTR27 : 1; + __IO uint32_t TSTR28 : 1; + __IO uint32_t TSTR29 : 1; + __IO uint32_t TSTR30 : 1; +} stc_ethernet_mac_ttnr_field_t; + +typedef struct stc_ethernet_mac_sthwsr_field +{ + __IO uint32_t TSHWR0 : 1; + __IO uint32_t TSHWR1 : 1; + __IO uint32_t TSHWR2 : 1; + __IO uint32_t TSHWR3 : 1; + __IO uint32_t TSHWR4 : 1; + __IO uint32_t TSHWR5 : 1; + __IO uint32_t TSHWR6 : 1; + __IO uint32_t TSHWR7 : 1; + __IO uint32_t TSHWR8 : 1; + __IO uint32_t TSHWR9 : 1; + __IO uint32_t TSHWR10 : 1; + __IO uint32_t TSHWR11 : 1; + __IO uint32_t TSHWR12 : 1; + __IO uint32_t TSHWR13 : 1; + __IO uint32_t TSHWR14 : 1; + __IO uint32_t TSHWR15 : 1; +} stc_ethernet_mac_sthwsr_field_t; + +typedef struct stc_ethernet_mac_tsr_field +{ + __IO uint32_t TSSOVF : 1; + __IO uint32_t TSTART : 1; + __IO uint32_t ATSTS : 1; + __IO uint32_t TRGTER : 1; + uint32_t RESERVED1 :20; + __IO uint32_t ATSSTM : 1; + __IO uint32_t ATSNS0 : 1; + __IO uint32_t ATSNS1 : 1; + __IO uint32_t ATSNS2 : 1; +} stc_ethernet_mac_tsr_field_t; + +typedef struct stc_ethernet_mac_ppscr_field +{ + __IO uint32_t PPSCTRL0 : 1; + __IO uint32_t PPSCTRL1 : 1; + __IO uint32_t PPSCTRL2 : 1; + __IO uint32_t PPSCTRL3 : 1; +} stc_ethernet_mac_ppscr_field_t; + +typedef struct stc_ethernet_mac_atnr_field +{ + __IO uint32_t ATN0 : 1; + __IO uint32_t ATN1 : 1; + __IO uint32_t ATN2 : 1; + __IO uint32_t ATN3 : 1; + __IO uint32_t ATN4 : 1; + __IO uint32_t ATN5 : 1; + __IO uint32_t ATN6 : 1; + __IO uint32_t ATN7 : 1; + __IO uint32_t ATN8 : 1; + __IO uint32_t ATN9 : 1; + __IO uint32_t ATN10 : 1; + __IO uint32_t ATN11 : 1; + __IO uint32_t ATN12 : 1; + __IO uint32_t ATN13 : 1; + __IO uint32_t ATN14 : 1; + __IO uint32_t ATN15 : 1; + __IO uint32_t ATN16 : 1; + __IO uint32_t ATN17 : 1; + __IO uint32_t ATN18 : 1; + __IO uint32_t ATN19 : 1; + __IO uint32_t ATN20 : 1; + __IO uint32_t ATN21 : 1; + __IO uint32_t ATN22 : 1; + __IO uint32_t ATN23 : 1; + __IO uint32_t ATN24 : 1; + __IO uint32_t ATN25 : 1; + __IO uint32_t ATN26 : 1; + __IO uint32_t ATN27 : 1; + __IO uint32_t ATN28 : 1; + __IO uint32_t ATN29 : 1; + __IO uint32_t ATN30 : 1; +} stc_ethernet_mac_atnr_field_t; + +typedef struct stc_ethernet_mac_atsr_field +{ + __IO uint32_t ATS0 : 1; + __IO uint32_t ATS1 : 1; + __IO uint32_t ATS2 : 1; + __IO uint32_t ATS3 : 1; + __IO uint32_t ATS4 : 1; + __IO uint32_t ATS5 : 1; + __IO uint32_t ATS6 : 1; + __IO uint32_t ATS7 : 1; + __IO uint32_t ATS8 : 1; + __IO uint32_t ATS9 : 1; + __IO uint32_t ATS10 : 1; + __IO uint32_t ATS11 : 1; + __IO uint32_t ATS12 : 1; + __IO uint32_t ATS13 : 1; + __IO uint32_t ATS14 : 1; + __IO uint32_t ATS15 : 1; + __IO uint32_t ATS16 : 1; + __IO uint32_t ATS17 : 1; + __IO uint32_t ATS18 : 1; + __IO uint32_t ATS19 : 1; + __IO uint32_t ATS20 : 1; + __IO uint32_t ATS21 : 1; + __IO uint32_t ATS22 : 1; + __IO uint32_t ATS23 : 1; + __IO uint32_t ATS24 : 1; + __IO uint32_t ATS25 : 1; + __IO uint32_t ATS26 : 1; + __IO uint32_t ATS27 : 1; + __IO uint32_t ATS28 : 1; + __IO uint32_t ATS29 : 1; + __IO uint32_t ATS30 : 1; + __IO uint32_t ATS31 : 1; +} stc_ethernet_mac_atsr_field_t; + +typedef struct stc_ethernet_mac_mar16h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar16h_field_t; + +typedef struct stc_ethernet_mac_mar16l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar16l_field_t; + +typedef struct stc_ethernet_mac_mar17h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar17h_field_t; + +typedef struct stc_ethernet_mac_mar17l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar17l_field_t; + +typedef struct stc_ethernet_mac_mar18h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar18h_field_t; + +typedef struct stc_ethernet_mac_mar18l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar18l_field_t; + +typedef struct stc_ethernet_mac_mar19h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar19h_field_t; + +typedef struct stc_ethernet_mac_mar19l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar19l_field_t; + +typedef struct stc_ethernet_mac_mar20h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar20h_field_t; + +typedef struct stc_ethernet_mac_mar20l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar20l_field_t; + +typedef struct stc_ethernet_mac_mar21h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar21h_field_t; + +typedef struct stc_ethernet_mac_mar21l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar21l_field_t; + +typedef struct stc_ethernet_mac_mar22h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar22h_field_t; + +typedef struct stc_ethernet_mac_mar22l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar22l_field_t; + +typedef struct stc_ethernet_mac_mar23h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar23h_field_t; + +typedef struct stc_ethernet_mac_mar23l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar23l_field_t; + +typedef struct stc_ethernet_mac_mar24h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar24h_field_t; + +typedef struct stc_ethernet_mac_mar24l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar24l_field_t; + +typedef struct stc_ethernet_mac_mar25h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar25h_field_t; + +typedef struct stc_ethernet_mac_mar25l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar25l_field_t; + +typedef struct stc_ethernet_mac_mar26h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar26h_field_t; + +typedef struct stc_ethernet_mac_mar26l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar26l_field_t; + +typedef struct stc_ethernet_mac_mar27h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar27h_field_t; + +typedef struct stc_ethernet_mac_mar27l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar27l_field_t; + +typedef struct stc_ethernet_mac_mar28h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar28h_field_t; + +typedef struct stc_ethernet_mac_mar28l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar28l_field_t; + +typedef struct stc_ethernet_mac_mar29h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar29h_field_t; + +typedef struct stc_ethernet_mac_mar29l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar29l_field_t; + +typedef struct stc_ethernet_mac_mar30h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar30h_field_t; + +typedef struct stc_ethernet_mac_mar30l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar30l_field_t; + +typedef struct stc_ethernet_mac_mar31h_field +{ + __IO uint32_t A32 : 1; + __IO uint32_t A33 : 1; + __IO uint32_t A34 : 1; + __IO uint32_t A35 : 1; + __IO uint32_t A36 : 1; + __IO uint32_t A37 : 1; + __IO uint32_t A38 : 1; + __IO uint32_t A39 : 1; + __IO uint32_t A40 : 1; + __IO uint32_t A41 : 1; + __IO uint32_t A42 : 1; + __IO uint32_t A43 : 1; + __IO uint32_t A44 : 1; + __IO uint32_t A45 : 1; + __IO uint32_t A46 : 1; + __IO uint32_t A47 : 1; + uint32_t RESERVED1 : 8; + __IO uint32_t MBC0 : 1; + __IO uint32_t MBC1 : 1; + __IO uint32_t MBC2 : 1; + __IO uint32_t MBC3 : 1; + __IO uint32_t MBC4 : 1; + __IO uint32_t MBC5 : 1; + __IO uint32_t SA : 1; + __IO uint32_t AE : 1; +} stc_ethernet_mac_mar31h_field_t; + +typedef struct stc_ethernet_mac_mar31l_field +{ + __IO uint32_t A0 : 1; + __IO uint32_t A1 : 1; + __IO uint32_t A2 : 1; + __IO uint32_t A3 : 1; + __IO uint32_t A4 : 1; + __IO uint32_t A5 : 1; + __IO uint32_t A6 : 1; + __IO uint32_t A7 : 1; + __IO uint32_t A8 : 1; + __IO uint32_t A9 : 1; + __IO uint32_t A10 : 1; + __IO uint32_t A11 : 1; + __IO uint32_t A12 : 1; + __IO uint32_t A13 : 1; + __IO uint32_t A14 : 1; + __IO uint32_t A15 : 1; + __IO uint32_t A16 : 1; + __IO uint32_t A17 : 1; + __IO uint32_t A18 : 1; + __IO uint32_t A19 : 1; + __IO uint32_t A20 : 1; + __IO uint32_t A21 : 1; + __IO uint32_t A22 : 1; + __IO uint32_t A23 : 1; + __IO uint32_t A24 : 1; + __IO uint32_t A25 : 1; + __IO uint32_t A26 : 1; + __IO uint32_t A27 : 1; + __IO uint32_t A28 : 1; + __IO uint32_t A29 : 1; + __IO uint32_t A30 : 1; + __IO uint32_t A31 : 1; +} stc_ethernet_mac_mar31l_field_t; + +typedef struct stc_ethernet_mac_bmr_field +{ + __IO uint32_t SWR : 1; + __IO uint32_t DA : 1; + __IO uint32_t DSL0 : 1; + __IO uint32_t DSL1 : 1; + __IO uint32_t DSL2 : 1; + __IO uint32_t DSL3 : 1; + __IO uint32_t DSL4 : 1; + __IO uint32_t ATDS : 1; + __IO uint32_t PBL0 : 1; + __IO uint32_t PBL1 : 1; + __IO uint32_t PBL2 : 1; + __IO uint32_t PBL3 : 1; + __IO uint32_t PBL4 : 1; + __IO uint32_t PBL5 : 1; + __IO uint32_t PR0 : 1; + __IO uint32_t PR1 : 1; + __IO uint32_t FB : 1; + __IO uint32_t RPBL0 : 1; + __IO uint32_t RPBL1 : 1; + __IO uint32_t RPBL2 : 1; + __IO uint32_t RPBL3 : 1; + __IO uint32_t RPBL4 : 1; + __IO uint32_t RPBL5 : 1; + __IO uint32_t USP : 1; + __IO uint32_t _8XPBL : 1; + __IO uint32_t AAL : 1; + __IO uint32_t MB : 1; + __IO uint32_t TXPR : 1; +} stc_ethernet_mac_bmr_field_t; + +typedef struct stc_ethernet_mac_tpdr_field +{ + __IO uint32_t TPD0 : 1; + __IO uint32_t TPD1 : 1; + __IO uint32_t TPD2 : 1; + __IO uint32_t TPD3 : 1; + __IO uint32_t TPD4 : 1; + __IO uint32_t TPD5 : 1; + __IO uint32_t TPD6 : 1; + __IO uint32_t TPD7 : 1; + __IO uint32_t TPD8 : 1; + __IO uint32_t TPD9 : 1; + __IO uint32_t TPD10 : 1; + __IO uint32_t TPD11 : 1; + __IO uint32_t TPD12 : 1; + __IO uint32_t TPD13 : 1; + __IO uint32_t TPD14 : 1; + __IO uint32_t TPD15 : 1; + __IO uint32_t TPD16 : 1; + __IO uint32_t TPD17 : 1; + __IO uint32_t TPD18 : 1; + __IO uint32_t TPD19 : 1; + __IO uint32_t TPD20 : 1; + __IO uint32_t TPD21 : 1; + __IO uint32_t TPD22 : 1; + __IO uint32_t TPD23 : 1; + __IO uint32_t TPD24 : 1; + __IO uint32_t TPD25 : 1; + __IO uint32_t TPD26 : 1; + __IO uint32_t TPD27 : 1; + __IO uint32_t TPD28 : 1; + __IO uint32_t TPD29 : 1; + __IO uint32_t TPD30 : 1; + __IO uint32_t TPD31 : 1; +} stc_ethernet_mac_tpdr_field_t; + +typedef struct stc_ethernet_mac_rpdr_field +{ + __IO uint32_t RPD0 : 1; + __IO uint32_t RPD1 : 1; + __IO uint32_t RPD2 : 1; + __IO uint32_t RPD3 : 1; + __IO uint32_t RPD4 : 1; + __IO uint32_t RPD5 : 1; + __IO uint32_t RPD6 : 1; + __IO uint32_t RPD7 : 1; + __IO uint32_t RPD8 : 1; + __IO uint32_t RPD9 : 1; + __IO uint32_t RPD10 : 1; + __IO uint32_t RPD11 : 1; + __IO uint32_t RPD12 : 1; + __IO uint32_t RPD13 : 1; + __IO uint32_t RPD14 : 1; + __IO uint32_t RPD15 : 1; + __IO uint32_t RPD16 : 1; + __IO uint32_t RPD17 : 1; + __IO uint32_t RPD18 : 1; + __IO uint32_t RPD19 : 1; + __IO uint32_t RPD20 : 1; + __IO uint32_t RPD21 : 1; + __IO uint32_t RPD22 : 1; + __IO uint32_t RPD23 : 1; + __IO uint32_t RPD24 : 1; + __IO uint32_t RPD25 : 1; + __IO uint32_t RPD26 : 1; + __IO uint32_t RPD27 : 1; + __IO uint32_t RPD28 : 1; + __IO uint32_t RPD29 : 1; + __IO uint32_t RPD30 : 1; + __IO uint32_t RPD31 : 1; +} stc_ethernet_mac_rpdr_field_t; + +typedef struct stc_ethernet_mac_rdlar_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t SRL2 : 1; + __IO uint32_t SRL3 : 1; + __IO uint32_t SRL4 : 1; + __IO uint32_t SRL5 : 1; + __IO uint32_t SRL6 : 1; + __IO uint32_t SRL7 : 1; + __IO uint32_t SRL8 : 1; + __IO uint32_t SRL9 : 1; + __IO uint32_t SRL10 : 1; + __IO uint32_t SRL11 : 1; + __IO uint32_t SRL12 : 1; + __IO uint32_t SRL13 : 1; + __IO uint32_t SRL14 : 1; + __IO uint32_t SRL15 : 1; + __IO uint32_t SRL16 : 1; + __IO uint32_t SRL17 : 1; + __IO uint32_t SRL18 : 1; + __IO uint32_t SRL19 : 1; + __IO uint32_t SRL20 : 1; + __IO uint32_t SRL21 : 1; + __IO uint32_t SRL22 : 1; + __IO uint32_t SRL23 : 1; + __IO uint32_t SRL24 : 1; + __IO uint32_t SRL25 : 1; + __IO uint32_t SRL26 : 1; + __IO uint32_t SRL27 : 1; + __IO uint32_t SRL28 : 1; + __IO uint32_t SRL29 : 1; + __IO uint32_t SRL30 : 1; + __IO uint32_t SRL31 : 1; +} stc_ethernet_mac_rdlar_field_t; + +typedef struct stc_ethernet_mac_tdlar_field +{ + uint32_t RESERVED1 : 2; + __IO uint32_t STL2 : 1; + __IO uint32_t STL3 : 1; + __IO uint32_t STL4 : 1; + __IO uint32_t STL5 : 1; + __IO uint32_t STL6 : 1; + __IO uint32_t STL7 : 1; + __IO uint32_t STL8 : 1; + __IO uint32_t STL9 : 1; + __IO uint32_t STL10 : 1; + __IO uint32_t STL11 : 1; + __IO uint32_t STL12 : 1; + __IO uint32_t STL13 : 1; + __IO uint32_t STL14 : 1; + __IO uint32_t STL15 : 1; + __IO uint32_t STL16 : 1; + __IO uint32_t STL17 : 1; + __IO uint32_t STL18 : 1; + __IO uint32_t STL19 : 1; + __IO uint32_t STL20 : 1; + __IO uint32_t STL21 : 1; + __IO uint32_t STL22 : 1; + __IO uint32_t STL23 : 1; + __IO uint32_t STL24 : 1; + __IO uint32_t STL25 : 1; + __IO uint32_t STL26 : 1; + __IO uint32_t STL27 : 1; + __IO uint32_t STL28 : 1; + __IO uint32_t STL29 : 1; + __IO uint32_t STL30 : 1; + __IO uint32_t STL31 : 1; +} stc_ethernet_mac_tdlar_field_t; + +typedef struct stc_ethernet_mac_sr_field +{ + __IO uint32_t TI : 1; + __IO uint32_t TPS : 1; + __IO uint32_t TU : 1; + __IO uint32_t TJT : 1; + __IO uint32_t OVF : 1; + __IO uint32_t UNF : 1; + __IO uint32_t RI : 1; + __IO uint32_t RU : 1; + __IO uint32_t RPS : 1; + __IO uint32_t RWT : 1; + __IO uint32_t ETI : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t FBI : 1; + __IO uint32_t ERI : 1; + __IO uint32_t AIS : 1; + __IO uint32_t NIS : 1; + __IO uint32_t RS0 : 1; + __IO uint32_t RS1 : 1; + __IO uint32_t RS2 : 1; + __IO uint32_t TS0 : 1; + __IO uint32_t TS1 : 1; + __IO uint32_t TS2 : 1; + __IO uint32_t EB0 : 1; + __IO uint32_t EB1 : 1; + __IO uint32_t EB2 : 1; + __IO uint32_t GLI : 1; + __IO uint32_t GMI : 1; + __IO uint32_t GPI : 1; + __IO uint32_t TTI : 1; + __IO uint32_t GLPII : 1; +} stc_ethernet_mac_sr_field_t; + +typedef struct stc_ethernet_mac_omr_field +{ + uint32_t RESERVED1 : 1; + __IO uint32_t SR : 1; + __IO uint32_t OSF : 1; + __IO uint32_t RTC0 : 1; + __IO uint32_t RTC1 : 1; + uint32_t RESERVED2 : 1; + __IO uint32_t FUF : 1; + __IO uint32_t FEF : 1; + uint32_t RESERVED3 : 5; + __IO uint32_t ST : 1; + __IO uint32_t TTC0 : 1; + __IO uint32_t TTC1 : 1; + __IO uint32_t TTC2 : 1; + uint32_t RESERVED4 : 3; + __IO uint32_t FTF : 1; + __IO uint32_t TSF : 1; + uint32_t RESERVED5 : 2; + __IO uint32_t DFF : 1; + __IO uint32_t RSF : 1; + __IO uint32_t DT : 1; +} stc_ethernet_mac_omr_field_t; + +typedef struct stc_ethernet_mac_ier_field +{ + __IO uint32_t TIE : 1; + __IO uint32_t TSE : 1; + __IO uint32_t TUE : 1; + __IO uint32_t TJE : 1; + __IO uint32_t OVE : 1; + __IO uint32_t UNE : 1; + __IO uint32_t RIE : 1; + __IO uint32_t RUE : 1; + __IO uint32_t RSE : 1; + __IO uint32_t RWE : 1; + __IO uint32_t ETE : 1; + uint32_t RESERVED1 : 2; + __IO uint32_t FBE : 1; + __IO uint32_t ERE : 1; + __IO uint32_t AIE : 1; + __IO uint32_t NIE : 1; +} stc_ethernet_mac_ier_field_t; + +typedef struct stc_ethernet_mac_mfbocr_field +{ + __IO uint32_t NMFH0 : 1; + __IO uint32_t NMFH1 : 1; + __IO uint32_t NMFH2 : 1; + __IO uint32_t NMFH3 : 1; + __IO uint32_t NMFH4 : 1; + __IO uint32_t NMFH5 : 1; + __IO uint32_t NMFH6 : 1; + __IO uint32_t NMFH7 : 1; + __IO uint32_t NMFH8 : 1; + __IO uint32_t NMFH9 : 1; + __IO uint32_t NMFH10 : 1; + __IO uint32_t NMFH11 : 1; + __IO uint32_t NMFH12 : 1; + __IO uint32_t NMFH13 : 1; + __IO uint32_t NMFH14 : 1; + __IO uint32_t NMFH15 : 1; + __IO uint32_t ONMFH : 1; + __IO uint32_t NMFF0 : 1; + __IO uint32_t NMFF1 : 1; + __IO uint32_t NMFF2 : 1; + __IO uint32_t NMFF3 : 1; + __IO uint32_t NMFF4 : 1; + __IO uint32_t NMFF5 : 1; + __IO uint32_t NMFF6 : 1; + __IO uint32_t NMFF7 : 1; + __IO uint32_t NMFF8 : 1; + __IO uint32_t NMFF9 : 1; + __IO uint32_t NMFF10 : 1; + __IO uint32_t ONMFF : 1; +} stc_ethernet_mac_mfbocr_field_t; + +typedef struct stc_ethernet_mac_riwtr_field +{ + __IO uint32_t RIWT0 : 1; + __IO uint32_t RIWT1 : 1; + __IO uint32_t RIWT2 : 1; + __IO uint32_t RIWT3 : 1; + __IO uint32_t RIWT4 : 1; + __IO uint32_t RIWT5 : 1; + __IO uint32_t RIWT6 : 1; + __IO uint32_t RIWT7 : 1; +} stc_ethernet_mac_riwtr_field_t; + +typedef struct stc_ethernet_mac_ahbsr_field +{ + __IO uint32_t AHBS : 1; +} stc_ethernet_mac_ahbsr_field_t; + +typedef struct stc_ethernet_mac_chtdr_field +{ + __IO uint32_t HTDAP0 : 1; + __IO uint32_t HTDAP1 : 1; + __IO uint32_t HTDAP2 : 1; + __IO uint32_t HTDAP3 : 1; + __IO uint32_t HTDAP4 : 1; + __IO uint32_t HTDAP5 : 1; + __IO uint32_t HTDAP6 : 1; + __IO uint32_t HTDAP7 : 1; + __IO uint32_t HTDAP8 : 1; + __IO uint32_t HTDAP9 : 1; + __IO uint32_t HTDAP10 : 1; + __IO uint32_t HTDAP11 : 1; + __IO uint32_t HTDAP12 : 1; + __IO uint32_t HTDAP13 : 1; + __IO uint32_t HTDAP14 : 1; + __IO uint32_t HTDAP15 : 1; + __IO uint32_t HTDAP16 : 1; + __IO uint32_t HTDAP17 : 1; + __IO uint32_t HTDAP18 : 1; + __IO uint32_t HTDAP19 : 1; + __IO uint32_t HTDAP20 : 1; + __IO uint32_t HTDAP21 : 1; + __IO uint32_t HTDAP22 : 1; + __IO uint32_t HTDAP23 : 1; + __IO uint32_t HTDAP24 : 1; + __IO uint32_t HTDAP25 : 1; + __IO uint32_t HTDAP26 : 1; + __IO uint32_t HTDAP27 : 1; + __IO uint32_t HTDAP28 : 1; + __IO uint32_t HTDAP29 : 1; + __IO uint32_t HTDAP30 : 1; + __IO uint32_t HTDAP31 : 1; +} stc_ethernet_mac_chtdr_field_t; + +typedef struct stc_ethernet_mac_chrdr_field +{ + __IO uint32_t HRDAP0 : 1; + __IO uint32_t HRDAP1 : 1; + __IO uint32_t HRDAP2 : 1; + __IO uint32_t HRDAP3 : 1; + __IO uint32_t HRDAP4 : 1; + __IO uint32_t HRDAP5 : 1; + __IO uint32_t HRDAP6 : 1; + __IO uint32_t HRDAP7 : 1; + __IO uint32_t HRDAP8 : 1; + __IO uint32_t HRDAP9 : 1; + __IO uint32_t HRDAP10 : 1; + __IO uint32_t HRDAP11 : 1; + __IO uint32_t HRDAP12 : 1; + __IO uint32_t HRDAP13 : 1; + __IO uint32_t HRDAP14 : 1; + __IO uint32_t HRDAP15 : 1; + __IO uint32_t HRDAP16 : 1; + __IO uint32_t HRDAP17 : 1; + __IO uint32_t HRDAP18 : 1; + __IO uint32_t HRDAP19 : 1; + __IO uint32_t HRDAP20 : 1; + __IO uint32_t HRDAP21 : 1; + __IO uint32_t HRDAP22 : 1; + __IO uint32_t HRDAP23 : 1; + __IO uint32_t HRDAP24 : 1; + __IO uint32_t HRDAP25 : 1; + __IO uint32_t HRDAP26 : 1; + __IO uint32_t HRDAP27 : 1; + __IO uint32_t HRDAP28 : 1; + __IO uint32_t HRDAP29 : 1; + __IO uint32_t HRDAP30 : 1; + __IO uint32_t HRDAP31 : 1; +} stc_ethernet_mac_chrdr_field_t; + +typedef struct stc_ethernet_mac_chtbar_field +{ + __IO uint32_t HTBAR0 : 1; + __IO uint32_t HTBAR1 : 1; + __IO uint32_t HTBAR2 : 1; + __IO uint32_t HTBAR3 : 1; + __IO uint32_t HTBAR4 : 1; + __IO uint32_t HTBAR5 : 1; + __IO uint32_t HTBAR6 : 1; + __IO uint32_t HTBAR7 : 1; + __IO uint32_t HTBAR8 : 1; + __IO uint32_t HTBAR9 : 1; + __IO uint32_t HTBAR10 : 1; + __IO uint32_t HTBAR11 : 1; + __IO uint32_t HTBAR12 : 1; + __IO uint32_t HTBAR13 : 1; + __IO uint32_t HTBAR14 : 1; + __IO uint32_t HTBAR15 : 1; + __IO uint32_t HTBAR16 : 1; + __IO uint32_t HTBAR17 : 1; + __IO uint32_t HTBAR18 : 1; + __IO uint32_t HTBAR19 : 1; + __IO uint32_t HTBAR20 : 1; + __IO uint32_t HTBAR21 : 1; + __IO uint32_t HTBAR22 : 1; + __IO uint32_t HTBAR23 : 1; + __IO uint32_t HTBAR24 : 1; + __IO uint32_t HTBAR25 : 1; + __IO uint32_t HTBAR26 : 1; + __IO uint32_t HTBAR27 : 1; + __IO uint32_t HTBAR28 : 1; + __IO uint32_t HTBAR29 : 1; + __IO uint32_t HTBAR30 : 1; + __IO uint32_t HTBAR31 : 1; +} stc_ethernet_mac_chtbar_field_t; + +typedef struct stc_ethernet_mac_chrbar_field +{ + __IO uint32_t HRBAR0 : 1; + __IO uint32_t HRBAR1 : 1; + __IO uint32_t HRBAR2 : 1; + __IO uint32_t HRBAR3 : 1; + __IO uint32_t HRBAR4 : 1; + __IO uint32_t HRBAR5 : 1; + __IO uint32_t HRBAR6 : 1; + __IO uint32_t HRBAR7 : 1; + __IO uint32_t HRBAR8 : 1; + __IO uint32_t HRBAR9 : 1; + __IO uint32_t HRBAR10 : 1; + __IO uint32_t HRBAR11 : 1; + __IO uint32_t HRBAR12 : 1; + __IO uint32_t HRBAR13 : 1; + __IO uint32_t HRBAR14 : 1; + __IO uint32_t HRBAR15 : 1; + __IO uint32_t HRBAR16 : 1; + __IO uint32_t HRBAR17 : 1; + __IO uint32_t HRBAR18 : 1; + __IO uint32_t HRBAR19 : 1; + __IO uint32_t HRBAR20 : 1; + __IO uint32_t HRBAR21 : 1; + __IO uint32_t HRBAR22 : 1; + __IO uint32_t HRBAR23 : 1; + __IO uint32_t HRBAR24 : 1; + __IO uint32_t HRBAR25 : 1; + __IO uint32_t HRBAR26 : 1; + __IO uint32_t HRBAR27 : 1; + __IO uint32_t HRBAR28 : 1; + __IO uint32_t HRBAR29 : 1; + __IO uint32_t HRBAR30 : 1; + __IO uint32_t HRBAR31 : 1; +} stc_ethernet_mac_chrbar_field_t; + +/* ETHERNET_CONTROL_MODULE register bit fields */ +typedef struct stc_ethernet_control_eth_mode_field +{ + __IO uint32_t IFMODE : 1; + uint32_t RESERVED1 : 7; + __IO uint32_t RST0 : 1; + __IO uint32_t RST1 : 1; + uint32_t RESERVED2 :18; + __IO uint32_t ASZPPSSEL : 1; +} stc_ethernet_control_eth_mode_field_t; + +typedef struct stc_ethernet_control_eth_clkg_field +{ + __IO uint32_t MACEN0 : 1; + __IO uint32_t MACEN1 : 1; +} stc_ethernet_control_eth_clkg_field_t; + +/****************************************************************************** + * Peripheral register structures + ******************************************************************************/ + +/****************************************************************************** + * Flash_IF_MODULE + ******************************************************************************/ +/* Flash interface registers */ +typedef struct +{ + union { + __IO uint32_t FASZR; + stc_flash_if_faszr_field_t FASZR_f; + }; + union { + __IO uint32_t FRWTR; + stc_flash_if_frwtr_field_t FRWTR_f; + }; + union { + __IO uint32_t FSTR; + stc_flash_if_fstr_field_t FSTR_f; + }; + uint8_t RESERVED0[4]; + union { + __IO uint32_t FSYNDN; + stc_flash_if_fsyndn_field_t FSYNDN_f; + }; + union { + __IO uint32_t FBFCR; + stc_flash_if_fbfcr_field_t FBFCR_f; + }; + uint8_t RESERVED1[232]; + union { + __IO uint32_t CRTRMM; + stc_flash_if_crtrmm_field_t CRTRMM_f; + }; +}FM3_FLASH_IF_TypeDef; + +/****************************************************************************** + * Clock_Reset_MODULE + ******************************************************************************/ +/* Clock and reset registers */ +typedef struct +{ + union { + __IO uint8_t SCM_CTL; + stc_crg_scm_ctl_field_t SCM_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t SCM_STR; + stc_crg_scm_str_field_t SCM_STR_f; + }; + uint8_t RESERVED1[3]; + __IO uint32_t STB_CTL; + union { + __IO uint16_t RST_STR; + stc_crg_rst_str_field_t RST_STR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t BSC_PSR; + stc_crg_bsc_psr_field_t BSC_PSR_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t APBC0_PSR; + stc_crg_apbc0_psr_field_t APBC0_PSR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t APBC1_PSR; + stc_crg_apbc1_psr_field_t APBC1_PSR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t APBC2_PSR; + stc_crg_apbc2_psr_field_t APBC2_PSR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t SWC_PSR; + stc_crg_swc_psr_field_t SWC_PSR_f; + }; + uint8_t RESERVED7[7]; + union { + __IO uint8_t TTC_PSR; + stc_crg_ttc_psr_field_t TTC_PSR_f; + }; + uint8_t RESERVED8[7]; + union { + __IO uint8_t CSW_TMR; + stc_crg_csw_tmr_field_t CSW_TMR_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t PSW_TMR; + stc_crg_psw_tmr_field_t PSW_TMR_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PLL_CTL1; + stc_crg_pll_ctl1_field_t PLL_CTL1_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t PLL_CTL2; + stc_crg_pll_ctl2_field_t PLL_CTL2_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint16_t CSV_CTL; + stc_crg_csv_ctl_field_t CSV_CTL_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint8_t CSV_STR; + stc_crg_csv_str_field_t CSV_STR_f; + }; + uint8_t RESERVED14[3]; + __IO uint16_t FCSWH_CTL; + uint8_t RESERVED15[2]; + __IO uint16_t FCSWL_CTL; + uint8_t RESERVED16[2]; + __IO uint16_t FCSWD_CTL; + uint8_t RESERVED17[2]; + union { + __IO uint8_t DBWDT_CTL; + stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; + }; + uint8_t RESERVED18[11]; + union { + __IO uint8_t INT_ENR; + stc_crg_int_enr_field_t INT_ENR_f; + }; + uint8_t RESERVED19[3]; + union { + __IO uint8_t INT_STR; + stc_crg_int_str_field_t INT_STR_f; + }; + uint8_t RESERVED20[3]; + union { + __IO uint8_t INT_CLR; + stc_crg_int_clr_field_t INT_CLR_f; + }; +}FM3_CRG_TypeDef; + +/****************************************************************************** + * HWWDT_MODULE + ******************************************************************************/ +/* Hardware watchdog registers */ +typedef struct +{ + __IO uint32_t WDG_LDR; + __IO uint32_t WDG_VLR; + union { + __IO uint8_t WDG_CTL; + stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; + }; + uint8_t RESERVED0[3]; + __IO uint8_t WDG_ICL; + uint8_t RESERVED1[3]; + union { + __IO uint8_t WDG_RIS; + stc_hwwdt_wdg_ris_field_t WDG_RIS_f; + }; + uint8_t RESERVED2[3055]; + __IO uint32_t WDG_LCK; +}FM3_HWWDT_TypeDef; + +/****************************************************************************** + * SWWDT_MODULE + ******************************************************************************/ +/* Software watchdog registers */ +typedef struct +{ + __IO uint32_t WDOGLOAD; + __IO uint32_t WDOGVALUE; + union { + __IO uint8_t WDOGCONTROL; + stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t WDOGINTCLR; + union { + __IO uint8_t WDOGRIS; + stc_swwdt_wdogris_field_t WDOGRIS_f; + }; + uint8_t RESERVED1[3055]; + __IO uint32_t WDOGLOCK; +}FM3_SWWDT_TypeDef; + +/****************************************************************************** + * DTIM_MODULE + ******************************************************************************/ +/* Dual timer 1/2 registers */ +typedef struct +{ + __IO uint32_t TIMER1LOAD; + __IO uint32_t TIMER1VALUE; + union { + __IO uint32_t TIMER1CONTROL; + stc_dtim_timer1control_field_t TIMER1CONTROL_f; + }; + __IO uint32_t TIMER1INTCLR; + union { + __IO uint32_t TIMER1RIS; + stc_dtim_timer1ris_field_t TIMER1RIS_f; + }; + union { + __IO uint32_t TIMER1MIS; + stc_dtim_timer1mis_field_t TIMER1MIS_f; + }; + __IO uint32_t TIMER1BGLOAD; + uint8_t RESERVED0[4]; + __IO uint32_t TIMER2LOAD; + __IO uint32_t TIMER2VALUE; + union { + __IO uint32_t TIMER2CONTROL; + stc_dtim_timer2control_field_t TIMER2CONTROL_f; + }; + __IO uint32_t TIMER2INTCLR; + union { + __IO uint32_t TIMER2RIS; + stc_dtim_timer2ris_field_t TIMER2RIS_f; + }; + union { + __IO uint32_t TIMER2MIS; + stc_dtim_timer2mis_field_t TIMER2MIS_f; + }; + __IO uint32_t TIMER2BGLOAD; +}FM3_DTIM_TypeDef; + +/****************************************************************************** + * MFT_FRT_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Free Running Timer registers */ +typedef struct +{ + uint8_t RESERVED0[40]; + __IO uint16_t TCCP0; + uint8_t RESERVED1[2]; + __IO uint16_t TCDT0; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TCSA0; + stc_mft_frt_tcsa0_field_t TCSA0_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t TCSB0; + stc_mft_frt_tcsb0_field_t TCSB0_f; + }; + uint8_t RESERVED4[2]; + __IO uint16_t TCCP1; + uint8_t RESERVED5[2]; + __IO uint16_t TCDT1; + uint8_t RESERVED6[2]; + union { + __IO uint16_t TCSA1; + stc_mft_frt_tcsa1_field_t TCSA1_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t TCSB1; + stc_mft_frt_tcsb1_field_t TCSB1_f; + }; + uint8_t RESERVED8[2]; + __IO uint16_t TCCP2; + uint8_t RESERVED9[2]; + __IO uint16_t TCDT2; + uint8_t RESERVED10[2]; + union { + __IO uint16_t TCSA2; + stc_mft_frt_tcsa2_field_t TCSA2_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t TCSB2; + stc_mft_frt_tcsb2_field_t TCSB2_f; + }; +}FM3_MFT_FRT_TypeDef; + +/****************************************************************************** + * MFT_OCU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Output Compare Unit registers */ +typedef struct +{ + __IO uint16_t OCCP0; + uint8_t RESERVED0[2]; + __IO uint16_t OCCP1; + uint8_t RESERVED1[2]; + __IO uint16_t OCCP2; + uint8_t RESERVED2[2]; + __IO uint16_t OCCP3; + uint8_t RESERVED3[2]; + __IO uint16_t OCCP4; + uint8_t RESERVED4[2]; + __IO uint16_t OCCP5; + uint8_t RESERVED5[2]; + union { + __IO uint8_t OCSA10; + stc_mft_ocu_ocsa10_field_t OCSA10_f; + }; + union { + __IO uint8_t OCSB10; + stc_mft_ocu_ocsb10_field_t OCSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t OCSA32; + stc_mft_ocu_ocsa32_field_t OCSA32_f; + }; + union { + __IO uint8_t OCSB32; + stc_mft_ocu_ocsb32_field_t OCSB32_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint8_t OCSA54; + stc_mft_ocu_ocsa54_field_t OCSA54_f; + }; + union { + __IO uint8_t OCSB54; + stc_mft_ocu_ocsb54_field_t OCSB54_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t OCSC; + stc_mft_ocu_ocsc_field_t OCSC_f; + }; + uint8_t RESERVED9[50]; + union { + __IO uint8_t OCFS10; + stc_mft_ocu_ocfs10_field_t OCFS10_f; + }; + union { + __IO uint8_t OCFS32; + stc_mft_ocu_ocfs32_field_t OCFS32_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint8_t OCFS54; + stc_mft_ocu_ocfs54_field_t OCFS54_f; + }; +}FM3_MFT_OCU_TypeDef; + +/****************************************************************************** + * MFT_WFG_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +typedef struct +{ + uint8_t RESERVED0[128]; + __IO uint16_t WFTM10; + uint8_t RESERVED1[2]; + __IO uint16_t WFTM32; + uint8_t RESERVED2[2]; + __IO uint16_t WFTM54; + uint8_t RESERVED3[2]; + union { + __IO uint16_t WFSA10; + stc_mft_wfg_wfsa10_field_t WFSA10_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t WFSA32; + stc_mft_wfg_wfsa32_field_t WFSA32_f; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t WFSA54; + stc_mft_wfg_wfsa54_field_t WFSA54_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t WFIR; + stc_mft_wfg_wfir_field_t WFIR_f; + }; + uint8_t RESERVED7[2]; + union { + __IO uint16_t NZCL; + stc_mft_wfg_nzcl_field_t NZCL_f; + }; +}FM3_MFT_WFG_TypeDef; + +/****************************************************************************** + * MFT_ICU_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 Input Capture Unit registers */ +typedef struct +{ + uint8_t RESERVED0[96]; + union { + __IO uint8_t ICFS10; + stc_mft_icu_icfs10_field_t ICFS10_f; + }; + union { + __IO uint8_t ICFS32; + stc_mft_icu_icfs32_field_t ICFS32_f; + }; + uint8_t RESERVED1[6]; + __IO uint16_t ICCP0; + uint8_t RESERVED2[2]; + __IO uint16_t ICCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ICCP2; + uint8_t RESERVED4[2]; + __IO uint16_t ICCP3; + uint8_t RESERVED5[2]; + union { + __IO uint8_t ICSA10; + stc_mft_icu_icsa10_field_t ICSA10_f; + }; + union { + __IO uint8_t ICSB10; + stc_mft_icu_icsb10_field_t ICSB10_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ICSA32; + stc_mft_icu_icsa32_field_t ICSA32_f; + }; + union { + __IO uint8_t ICSB32; + stc_mft_icu_icsb32_field_t ICSB32_f; + }; +}FM3_MFT_ICU_TypeDef; + +/****************************************************************************** + * MFT_ADCMP_MODULE + ******************************************************************************/ +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +typedef struct +{ + uint8_t RESERVED0[160]; + __IO uint16_t ACCP0; + uint8_t RESERVED1[2]; + __IO uint16_t ACCPDN0; + uint8_t RESERVED2[2]; + __IO uint16_t ACCP1; + uint8_t RESERVED3[2]; + __IO uint16_t ACCPDN1; + uint8_t RESERVED4[2]; + __IO uint16_t ACCP2; + uint8_t RESERVED5[2]; + __IO uint16_t ACCPDN2; + uint8_t RESERVED6[2]; + union { + __IO uint8_t ACSB; + stc_mft_adcmp_acsb_field_t ACSB_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t ACSA; + stc_mft_adcmp_acsa_field_t ACSA_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t ATSA; + stc_mft_adcmp_atsa_field_t ATSA_f; + }; +}FM3_MFT_ADCMP_TypeDef; + +/****************************************************************************** + * MFT_PPG_MODULE + ******************************************************************************/ +/* Multifunction Timer PPG registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t TTCR0; + stc_mft_ppg_ttcr0_field_t TTCR0_f; + }; + uint8_t RESERVED1[7]; + __IO uint8_t COMP0; + uint8_t RESERVED2[2]; + __IO uint8_t COMP2; + uint8_t RESERVED3[4]; + __IO uint8_t COMP4; + uint8_t RESERVED4[2]; + __IO uint8_t COMP6; + uint8_t RESERVED5[12]; + union { + __IO uint8_t TTCR1; + stc_mft_ppg_ttcr1_field_t TTCR1_f; + }; + uint8_t RESERVED6[7]; + __IO uint8_t COMP1; + uint8_t RESERVED7[2]; + __IO uint8_t COMP3; + uint8_t RESERVED8[4]; + __IO uint8_t COMP5; + uint8_t RESERVED9[2]; + __IO uint8_t COMP7; + uint8_t RESERVED10[12]; + union { + __IO uint8_t TTCR2; + stc_mft_ppg_ttcr2_field_t TTCR2_f; + }; + uint8_t RESERVED11[7]; + __IO uint8_t COMP8; + uint8_t RESERVED12[2]; + __IO uint8_t COMP10; + uint8_t RESERVED13[4]; + __IO uint8_t COMP12; + uint8_t RESERVED14[2]; + __IO uint8_t COMP14; + uint8_t RESERVED15[171]; + union { + __IO uint16_t TRG; + stc_mft_ppg_trg_field_t TRG_f; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t REVC; + stc_mft_ppg_revc_field_t REVC_f; + }; + uint8_t RESERVED17[58]; + union { + __IO uint16_t TRG1; + stc_mft_ppg_trg1_field_t TRG1_f; + }; + uint8_t RESERVED18[2]; + union { + __IO uint16_t REVC1; + stc_mft_ppg_revc1_field_t REVC1_f; + }; + uint8_t RESERVED19[186]; + union { + __IO uint8_t PPGC1; + stc_mft_ppg_ppgc1_field_t PPGC1_f; + }; + union { + __IO uint8_t PPGC0; + stc_mft_ppg_ppgc0_field_t PPGC0_f; + }; + uint8_t RESERVED20[2]; + union { + __IO uint8_t PPGC3; + stc_mft_ppg_ppgc3_field_t PPGC3_f; + }; + union { + __IO uint8_t PPGC2; + stc_mft_ppg_ppgc2_field_t PPGC2_f; + }; + uint8_t RESERVED21[2]; + union { + __IO uint16_t PRL0; + struct { + __IO uint8_t PRLL0; + __IO uint8_t PRLH0; + }; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t PRL1; + struct { + __IO uint8_t PRLL1; + __IO uint8_t PRLH1; + }; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t PRL2; + struct { + __IO uint8_t PRLL2; + __IO uint8_t PRLH2; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t PRL3; + struct { + __IO uint8_t PRLL3; + __IO uint8_t PRLH3; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint8_t GATEC0; + stc_mft_ppg_gatec0_field_t GATEC0_f; + }; + uint8_t RESERVED26[39]; + union { + __IO uint8_t PPGC5; + stc_mft_ppg_ppgc5_field_t PPGC5_f; + }; + union { + __IO uint8_t PPGC4; + stc_mft_ppg_ppgc4_field_t PPGC4_f; + }; + uint8_t RESERVED27[2]; + union { + __IO uint8_t PPGC7; + stc_mft_ppg_ppgc7_field_t PPGC7_f; + }; + union { + __IO uint8_t PPGC6; + stc_mft_ppg_ppgc6_field_t PPGC6_f; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t PRL4; + struct { + __IO uint8_t PRLL4; + __IO uint8_t PRLH4; + }; + }; + uint8_t RESERVED29[2]; + union { + __IO uint16_t PRL5; + struct { + __IO uint8_t PRLL5; + __IO uint8_t PRLH5; + }; + }; + uint8_t RESERVED30[2]; + union { + __IO uint16_t PRL6; + struct { + __IO uint8_t PRLL6; + __IO uint8_t PRLH6; + }; + }; + uint8_t RESERVED31[2]; + union { + __IO uint16_t PRL7; + struct { + __IO uint8_t PRLL7; + __IO uint8_t PRLH7; + }; + }; + uint8_t RESERVED32[2]; + union { + __IO uint8_t GATEC4; + stc_mft_ppg_gatec4_field_t GATEC4_f; + }; + uint8_t RESERVED33[39]; + union { + __IO uint8_t PPGC9; + stc_mft_ppg_ppgc9_field_t PPGC9_f; + }; + union { + __IO uint8_t PPGC8; + stc_mft_ppg_ppgc8_field_t PPGC8_f; + }; + uint8_t RESERVED34[2]; + union { + __IO uint8_t PPGC11; + stc_mft_ppg_ppgc11_field_t PPGC11_f; + }; + union { + __IO uint8_t PPGC10; + stc_mft_ppg_ppgc10_field_t PPGC10_f; + }; + uint8_t RESERVED35[2]; + union { + __IO uint16_t PRL8; + struct { + __IO uint8_t PRLL8; + __IO uint8_t PRLH8; + }; + }; + uint8_t RESERVED36[2]; + union { + __IO uint16_t PRL9; + struct { + __IO uint8_t PRLL9; + __IO uint8_t PRLH9; + }; + }; + uint8_t RESERVED37[2]; + union { + __IO uint16_t PRL10; + struct { + __IO uint8_t PRLL10; + __IO uint8_t PRLH10; + }; + }; + uint8_t RESERVED38[2]; + union { + __IO uint16_t PRL11; + struct { + __IO uint8_t PRLL11; + __IO uint8_t PRLH11; + }; + }; + uint8_t RESERVED39[2]; + union { + __IO uint8_t GATEC8; + stc_mft_ppg_gatec8_field_t GATEC8_f; + }; + uint8_t RESERVED40[39]; + union { + __IO uint8_t PPGC13; + stc_mft_ppg_ppgc13_field_t PPGC13_f; + }; + union { + __IO uint8_t PPGC12; + stc_mft_ppg_ppgc12_field_t PPGC12_f; + }; + uint8_t RESERVED41[2]; + union { + __IO uint8_t PPGC15; + stc_mft_ppg_ppgc15_field_t PPGC15_f; + }; + union { + __IO uint8_t PPGC14; + stc_mft_ppg_ppgc14_field_t PPGC14_f; + }; + uint8_t RESERVED42[2]; + union { + __IO uint16_t PRL12; + struct { + __IO uint8_t PRLL12; + __IO uint8_t PRLH12; + }; + }; + uint8_t RESERVED43[2]; + union { + __IO uint16_t PRL13; + struct { + __IO uint8_t PRLL13; + __IO uint8_t PRLH13; + }; + }; + uint8_t RESERVED44[2]; + union { + __IO uint16_t PRL14; + struct { + __IO uint8_t PRLL14; + __IO uint8_t PRLH14; + }; + }; + uint8_t RESERVED45[2]; + union { + __IO uint16_t PRL15; + struct { + __IO uint8_t PRLL15; + __IO uint8_t PRLH15; + }; + }; + uint8_t RESERVED46[2]; + union { + __IO uint8_t GATEC12; + stc_mft_ppg_gatec12_field_t GATEC12_f; + }; + uint8_t RESERVED47[39]; + union { + __IO uint8_t PPGC17; + stc_mft_ppg_ppgc17_field_t PPGC17_f; + }; + union { + __IO uint8_t PPGC16; + stc_mft_ppg_ppgc16_field_t PPGC16_f; + }; + uint8_t RESERVED48[2]; + union { + __IO uint8_t PPGC19; + stc_mft_ppg_ppgc19_field_t PPGC19_f; + }; + union { + __IO uint8_t PPGC18; + stc_mft_ppg_ppgc18_field_t PPGC18_f; + }; + uint8_t RESERVED49[2]; + union { + __IO uint16_t PRL16; + struct { + __IO uint8_t PRLL16; + __IO uint8_t PRLH16; + }; + }; + uint8_t RESERVED50[2]; + union { + __IO uint16_t PRL17; + struct { + __IO uint8_t PRLL17; + __IO uint8_t PRLH17; + }; + }; + uint8_t RESERVED51[2]; + union { + __IO uint16_t PRL18; + struct { + __IO uint8_t PRLL18; + __IO uint8_t PRLH18; + }; + }; + uint8_t RESERVED52[2]; + union { + __IO uint16_t PRL19; + struct { + __IO uint8_t PRLL19; + __IO uint8_t PRLH19; + }; + }; + uint8_t RESERVED53[2]; + union { + __IO uint8_t GATEC16; + stc_mft_ppg_gatec16_field_t GATEC16_f; + }; + uint8_t RESERVED54[39]; + union { + __IO uint8_t PPGC21; + stc_mft_ppg_ppgc21_field_t PPGC21_f; + }; + union { + __IO uint8_t PPGC20; + stc_mft_ppg_ppgc20_field_t PPGC20_f; + }; + uint8_t RESERVED55[2]; + union { + __IO uint8_t PPGC23; + stc_mft_ppg_ppgc23_field_t PPGC23_f; + }; + union { + __IO uint8_t PPGC22; + stc_mft_ppg_ppgc22_field_t PPGC22_f; + }; + uint8_t RESERVED56[2]; + union { + __IO uint16_t PRL20; + struct { + __IO uint8_t PRLL20; + __IO uint8_t PRLH20; + }; + }; + uint8_t RESERVED57[2]; + union { + __IO uint16_t PRL21; + struct { + __IO uint8_t PRLL21; + __IO uint8_t PRLH21; + }; + }; + uint8_t RESERVED58[2]; + union { + __IO uint16_t PRL22; + struct { + __IO uint8_t PRLL22; + __IO uint8_t PRLH22; + }; + }; + uint8_t RESERVED59[2]; + union { + __IO uint16_t PRL23; + struct { + __IO uint8_t PRLL23; + __IO uint8_t PRLH23; + }; + }; + uint8_t RESERVED60[2]; + union { + __IO uint8_t GATEC20; + stc_mft_ppg_gatec20_field_t GATEC20_f; + }; +}FM3_MFT_PPG_TypeDef; + +/****************************************************************************** + * BT_PPG_MODULE + ******************************************************************************/ +/* Base Timer 0 PPG registers */ +typedef struct +{ + __IO uint16_t PRLL; + uint8_t RESERVED0[2]; + __IO uint16_t PRLH; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_ppg_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_ppg_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_ppg_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PPG_TypeDef; + +/****************************************************************************** + * BT_PWM_MODULE + ******************************************************************************/ +/* Base Timer 0 PWM registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[2]; + __IO uint16_t PDUT; + uint8_t RESERVED1[2]; + __IO uint16_t TMR; + uint8_t RESERVED2[2]; + union { + __IO uint16_t TMCR; + stc_bt_pwm_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t STC; + stc_bt_pwm_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwm_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PWM_TypeDef; + +/****************************************************************************** + * BT_RT_MODULE + ******************************************************************************/ +/* Base Timer 0 RT registers */ +typedef struct +{ + __IO uint16_t PCSR; + uint8_t RESERVED0[6]; + __IO uint16_t TMR; + uint8_t RESERVED1[2]; + union { + __IO uint16_t TMCR; + stc_bt_rt_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_rt_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_rt_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_RT_TypeDef; + +/****************************************************************************** + * BT_PWC_MODULE + ******************************************************************************/ +/* Base Timer 0 PWC registers */ +typedef struct +{ + uint8_t RESERVED0[4]; + __IO uint16_t DTBF; + uint8_t RESERVED1[6]; + union { + __IO uint16_t TMCR; + stc_bt_pwc_tmcr_field_t TMCR_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint8_t STC; + stc_bt_pwc_stc_field_t STC_f; + }; + union { + __IO uint8_t TMCR2; + stc_bt_pwc_tmcr2_field_t TMCR2_f; + }; +}FM3_BT_PWC_TypeDef; + +/****************************************************************************** + * BTIOSEL03_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 0 - channel 3 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL0123; + stc_btiosel03_btsel0123_field_t BTSEL0123_f; + }; +}FM3_BTIOSEL03_TypeDef; + +/****************************************************************************** + * BTIOSEL47_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 4 - channel 7 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL4567; + stc_btiosel47_btsel4567_field_t BTSEL4567_f; + }; +}FM3_BTIOSEL47_TypeDef; + +/****************************************************************************** + * BTIOSEL8B_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 8 - channel 11 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSEL89AB; + stc_btiosel8b_btsel89ab_field_t BTSEL89AB_f; + }; +}FM3_BTIOSEL8B_TypeDef; + +/****************************************************************************** + * BTIOSELCF_MODULE + ******************************************************************************/ +/* Base Timer I/O selector channel 12 - channel 15 registers */ +typedef struct +{ + uint8_t RESERVED0; + union { + __IO uint8_t BTSELCDEF; + stc_btioselcf_btselcdef_field_t BTSELCDEF_f; + }; +}FM3_BTIOSELCF_TypeDef; + +/****************************************************************************** + * SBSSR_MODULE + ******************************************************************************/ +/* Software based Simulation Startup (Base Timer) register */ +typedef struct +{ + union { + __IO uint16_t BTSSSR; + stc_sbssr_btsssr_field_t BTSSSR_f; + }; +}FM3_SBSSR_TypeDef; + +/****************************************************************************** + * QPRC_MODULE + ******************************************************************************/ +/* Quad position and revolution counter channel 0 registers */ +typedef struct +{ + __IO uint16_t QPCR; + uint8_t RESERVED0[2]; + __IO uint16_t QRCR; + uint8_t RESERVED1[2]; + __IO uint16_t QPCCR; + uint8_t RESERVED2[2]; + __IO uint16_t QPRCR; + uint8_t RESERVED3[2]; + __IO uint16_t QMPR; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t QICR; + stc_qprc_qicr_field_t QICR_f; + }; + struct { + union { + __IO uint8_t QICRL; + stc_qprc_qicrl_field_t QICRL_f; + }; + union { + __IO uint8_t QICRH; + stc_qprc_qicrh_field_t QICRH_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t QCR; + stc_qprc_qcr_field_t QCR_f; + }; + struct { + union { + __IO uint8_t QCRL; + stc_qprc_qcrl_field_t QCRL_f; + }; + union { + __IO uint8_t QCRH; + stc_qprc_qcrh_field_t QCRH_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t QECR; + stc_qprc_qecr_field_t QECR_f; + }; + uint8_t RESERVED7[30]; + __IO uint16_t QRCRR; + __IO uint16_t QPCRR; +}FM3_QPRC_TypeDef; + +/****************************************************************************** + * ADC12_MODULE + ******************************************************************************/ +/* 12-bit ADC unit 0 registers */ +typedef struct +{ + union { + __IO uint8_t ADSR; + stc_adc_adsr_field_t ADSR_f; + }; + union { + __IO uint8_t ADCR; + stc_adc_adcr_field_t ADCR_f; + }; + uint8_t RESERVED0[6]; + union { + __IO uint8_t SFNS; + stc_adc_sfns_field_t SFNS_f; + }; + union { + __IO uint8_t SCCR; + stc_adc_sccr_field_t SCCR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint32_t SCFD; + stc_adc_scfd_field_t SCFD_f; + }; + struct { + union { + __IO uint16_t SCFDL; + stc_adc_scfdl_field_t SCFDL_f; + }; + union { + __IO uint16_t SCFDH; + stc_adc_scfdh_field_t SCFDH_f; + }; + }; + }; + union { + union { + __IO uint16_t SCIS23; + stc_adc_scis23_field_t SCIS23_f; + }; + struct { + union { + __IO uint8_t SCIS2; + stc_adc_scis2_field_t SCIS2_f; + }; + union { + __IO uint8_t SCIS3; + stc_adc_scis3_field_t SCIS3_f; + }; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t SCIS01; + stc_adc_scis01_field_t SCIS01_f; + }; + struct { + union { + __IO uint8_t SCIS0; + stc_adc_scis0_field_t SCIS0_f; + }; + union { + __IO uint8_t SCIS1; + stc_adc_scis1_field_t SCIS1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t PFNS; + stc_adc_pfns_field_t PFNS_f; + }; + union { + __IO uint8_t PCCR; + stc_adc_pccr_field_t PCCR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint32_t PCFD; + stc_adc_pcfd_field_t PCFD_f; + }; + struct { + union { + __IO uint16_t PCFDL; + stc_adc_pcfdl_field_t PCFDL_f; + }; + union { + __IO uint16_t PCFDH; + stc_adc_pcfdh_field_t PCFDH_f; + }; + }; + }; + union { + __IO uint8_t PCIS; + stc_adc_pcis_field_t PCIS_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t CMPCR; + stc_adc_cmpcr_field_t CMPCR_f; + }; + uint8_t RESERVED6; + union { + __IO uint16_t CMPD; + stc_adc_cmpd_field_t CMPD_f; + }; + union { + union { + __IO uint16_t ADSS23; + stc_adc_adss23_field_t ADSS23_f; + }; + struct { + union { + __IO uint8_t ADSS2; + stc_adc_adss2_field_t ADSS2_f; + }; + union { + __IO uint8_t ADSS3; + stc_adc_adss3_field_t ADSS3_f; + }; + }; + }; + uint8_t RESERVED7[2]; + union { + union { + __IO uint16_t ADSS01; + stc_adc_adss01_field_t ADSS01_f; + }; + struct { + union { + __IO uint8_t ADSS0; + stc_adc_adss0_field_t ADSS0_f; + }; + union { + __IO uint8_t ADSS1; + stc_adc_adss1_field_t ADSS1_f; + }; + }; + }; + uint8_t RESERVED8[2]; + union { + union { + __IO uint16_t ADST01; + stc_adc_adst01_field_t ADST01_f; + }; + struct { + union { + __IO uint8_t ADST1; + stc_adc_adst1_field_t ADST1_f; + }; + union { + __IO uint8_t ADST0; + stc_adc_adst0_field_t ADST0_f; + }; + }; + }; + uint8_t RESERVED9[2]; + union { + __IO uint8_t ADCT; + stc_adc_adct_field_t ADCT_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t PRTSL; + stc_adc_prtsl_field_t PRTSL_f; + }; + union { + __IO uint8_t SCTSL; + stc_adc_sctsl_field_t SCTSL_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint8_t ADCEN; + stc_adc_adcen_field_t ADCEN_f; + }; +}FM3_ADC_TypeDef; + +/****************************************************************************** + * CRTRIM_MODULE + ******************************************************************************/ +/* CR trimming registers */ +typedef struct +{ + union { + __IO uint8_t MCR_PSR; + stc_crtrim_mcr_psr_field_t MCR_PSR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint16_t MCR_FTRM; + stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; + }; + uint8_t RESERVED1[6]; + __IO uint32_t MCR_RLR; +}FM3_CRTRIM_TypeDef; + +/****************************************************************************** + * EXTI_MODULE + ******************************************************************************/ +/* External interrupt registers */ +typedef struct +{ + union { + __IO uint32_t ENIR; + stc_exti_enir_field_t ENIR_f; + }; + union { + __IO uint32_t EIRR; + stc_exti_eirr_field_t EIRR_f; + }; + union { + __IO uint32_t EICL; + stc_exti_eicl_field_t EICL_f; + }; + union { + __IO uint32_t ELVR; + stc_exti_elvr_field_t ELVR_f; + }; + union { + __IO uint32_t ELVR1; + stc_exti_elvr1_field_t ELVR1_f; + }; + union { + __IO uint8_t NMIRR; + stc_exti_nmirr_field_t NMIRR_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t NMICL; + stc_exti_nmicl_field_t NMICL_f; + }; +}FM3_EXTI_TypeDef; + +/****************************************************************************** + * INTREQ_MODULE + ******************************************************************************/ +/* Interrupt request read registers */ +typedef struct +{ + union { + __IO uint32_t DRQSEL; + stc_intreq_drqsel_field_t DRQSEL_f; + }; + uint8_t RESERVED0[7]; + union { + __IO uint8_t ODDPKS; + stc_intreq_oddpks_field_t ODDPKS_f; + }; + uint8_t RESERVED1[4]; + union { + __IO uint32_t EXC02MON; + stc_intreq_exc02mon_field_t EXC02MON_f; + }; + union { + __IO uint32_t IRQ00MON; + stc_intreq_irq00mon_field_t IRQ00MON_f; + }; + union { + __IO uint32_t IRQ01MON; + stc_intreq_irq01mon_field_t IRQ01MON_f; + }; + union { + __IO uint32_t IRQ02MON; + stc_intreq_irq02mon_field_t IRQ02MON_f; + }; + union { + __IO uint32_t IRQ03MON; + stc_intreq_irq03mon_field_t IRQ03MON_f; + }; + union { + __IO uint32_t IRQ04MON; + stc_intreq_irq04mon_field_t IRQ04MON_f; + }; + union { + __IO uint32_t IRQ05MON; + stc_intreq_irq05mon_field_t IRQ05MON_f; + }; + union { + __IO uint32_t IRQ06MON; + stc_intreq_irq06mon_field_t IRQ06MON_f; + }; + union { + __IO uint32_t IRQ07MON; + stc_intreq_irq07mon_field_t IRQ07MON_f; + }; + union { + __IO uint32_t IRQ08MON; + stc_intreq_irq08mon_field_t IRQ08MON_f; + }; + union { + __IO uint32_t IRQ09MON; + stc_intreq_irq09mon_field_t IRQ09MON_f; + }; + union { + __IO uint32_t IRQ10MON; + stc_intreq_irq10mon_field_t IRQ10MON_f; + }; + union { + __IO uint32_t IRQ11MON; + stc_intreq_irq11mon_field_t IRQ11MON_f; + }; + union { + __IO uint32_t IRQ12MON; + stc_intreq_irq12mon_field_t IRQ12MON_f; + }; + union { + __IO uint32_t IRQ13MON; + stc_intreq_irq13mon_field_t IRQ13MON_f; + }; + union { + __IO uint32_t IRQ14MON; + stc_intreq_irq14mon_field_t IRQ14MON_f; + }; + union { + __IO uint32_t IRQ15MON; + stc_intreq_irq15mon_field_t IRQ15MON_f; + }; + union { + __IO uint32_t IRQ16MON; + stc_intreq_irq16mon_field_t IRQ16MON_f; + }; + union { + __IO uint32_t IRQ17MON; + stc_intreq_irq17mon_field_t IRQ17MON_f; + }; + union { + __IO uint32_t IRQ18MON; + stc_intreq_irq18mon_field_t IRQ18MON_f; + }; + union { + __IO uint32_t IRQ19MON; + stc_intreq_irq19mon_field_t IRQ19MON_f; + }; + union { + __IO uint32_t IRQ20MON; + stc_intreq_irq20mon_field_t IRQ20MON_f; + }; + union { + __IO uint32_t IRQ21MON; + stc_intreq_irq21mon_field_t IRQ21MON_f; + }; + union { + __IO uint32_t IRQ22MON; + stc_intreq_irq22mon_field_t IRQ22MON_f; + }; + union { + __IO uint32_t IRQ23MON; + stc_intreq_irq23mon_field_t IRQ23MON_f; + }; + union { + __IO uint32_t IRQ24MON; + stc_intreq_irq24mon_field_t IRQ24MON_f; + }; + union { + __IO uint32_t IRQ25MON; + stc_intreq_irq25mon_field_t IRQ25MON_f; + }; + union { + __IO uint32_t IRQ26MON; + stc_intreq_irq26mon_field_t IRQ26MON_f; + }; + union { + __IO uint32_t IRQ27MON; + stc_intreq_irq27mon_field_t IRQ27MON_f; + }; + union { + __IO uint32_t IRQ28MON; + stc_intreq_irq28mon_field_t IRQ28MON_f; + }; + union { + __IO uint32_t IRQ29MON; + stc_intreq_irq29mon_field_t IRQ29MON_f; + }; + union { + __IO uint32_t IRQ30MON; + stc_intreq_irq30mon_field_t IRQ30MON_f; + }; + union { + __IO uint32_t IRQ31MON; + stc_intreq_irq31mon_field_t IRQ31MON_f; + }; + union { + __IO uint32_t IRQ32MON; + stc_intreq_irq32mon_field_t IRQ32MON_f; + }; + union { + __IO uint32_t IRQ33MON; + stc_intreq_irq33mon_field_t IRQ33MON_f; + }; + union { + __IO uint32_t IRQ34MON; + stc_intreq_irq34mon_field_t IRQ34MON_f; + }; + union { + __IO uint32_t IRQ35MON; + stc_intreq_irq35mon_field_t IRQ35MON_f; + }; + union { + __IO uint32_t IRQ36MON; + stc_intreq_irq36mon_field_t IRQ36MON_f; + }; + union { + __IO uint32_t IRQ37MON; + stc_intreq_irq37mon_field_t IRQ37MON_f; + }; + union { + __IO uint32_t IRQ38MON; + stc_intreq_irq38mon_field_t IRQ38MON_f; + }; + union { + __IO uint32_t IRQ39MON; + stc_intreq_irq39mon_field_t IRQ39MON_f; + }; + union { + __IO uint32_t IRQ40MON; + stc_intreq_irq40mon_field_t IRQ40MON_f; + }; + union { + __IO uint32_t IRQ41MON; + stc_intreq_irq41mon_field_t IRQ41MON_f; + }; + union { + __IO uint32_t IRQ42MON; + stc_intreq_irq42mon_field_t IRQ42MON_f; + }; + union { + __IO uint32_t IRQ43MON; + stc_intreq_irq43mon_field_t IRQ43MON_f; + }; + union { + __IO uint32_t IRQ44MON; + stc_intreq_irq44mon_field_t IRQ44MON_f; + }; + union { + __IO uint32_t IRQ45MON; + stc_intreq_irq45mon_field_t IRQ45MON_f; + }; + union { + __IO uint32_t IRQ46MON; + stc_intreq_irq46mon_field_t IRQ46MON_f; + }; + __IO uint32_t IRQ47MON; + uint8_t RESERVED2[300]; + union { + __IO uint32_t DRQSEL1; + stc_intreq_drqsel1_field_t DRQSEL1_f; + }; + union { + __IO uint32_t DQESEL; + stc_intreq_dqesel_field_t DQESEL_f; + }; + uint8_t RESERVED3[7]; + union { + __IO uint8_t ODDPKS1; + stc_intreq_oddpks1_field_t ODDPKS1_f; + }; +}FM3_INTREQ_TypeDef; + +/****************************************************************************** + * GPIO_MODULE + ******************************************************************************/ +/* General purpose I/O registers */ +typedef struct +{ + union { + __IO uint32_t PFR0; + stc_gpio_pfr0_field_t PFR0_f; + }; + union { + __IO uint32_t PFR1; + stc_gpio_pfr1_field_t PFR1_f; + }; + union { + __IO uint32_t PFR2; + stc_gpio_pfr2_field_t PFR2_f; + }; + union { + __IO uint32_t PFR3; + stc_gpio_pfr3_field_t PFR3_f; + }; + union { + __IO uint32_t PFR4; + stc_gpio_pfr4_field_t PFR4_f; + }; + union { + __IO uint32_t PFR5; + stc_gpio_pfr5_field_t PFR5_f; + }; + union { + __IO uint32_t PFR6; + stc_gpio_pfr6_field_t PFR6_f; + }; + union { + __IO uint32_t PFR7; + stc_gpio_pfr7_field_t PFR7_f; + }; + union { + __IO uint32_t PFR8; + stc_gpio_pfr8_field_t PFR8_f; + }; + union { + __IO uint32_t PFR9; + stc_gpio_pfr9_field_t PFR9_f; + }; + union { + __IO uint32_t PFRA; + stc_gpio_pfra_field_t PFRA_f; + }; + union { + __IO uint32_t PFRB; + stc_gpio_pfrb_field_t PFRB_f; + }; + union { + __IO uint32_t PFRC; + stc_gpio_pfrc_field_t PFRC_f; + }; + union { + __IO uint32_t PFRD; + stc_gpio_pfrd_field_t PFRD_f; + }; + union { + __IO uint32_t PFRE; + stc_gpio_pfre_field_t PFRE_f; + }; + union { + __IO uint32_t PFRF; + stc_gpio_pfrf_field_t PFRF_f; + }; + uint8_t RESERVED0[192]; + union { + __IO uint32_t PCR0; + stc_gpio_pcr0_field_t PCR0_f; + }; + union { + __IO uint32_t PCR1; + stc_gpio_pcr1_field_t PCR1_f; + }; + union { + __IO uint32_t PCR2; + stc_gpio_pcr2_field_t PCR2_f; + }; + union { + __IO uint32_t PCR3; + stc_gpio_pcr3_field_t PCR3_f; + }; + union { + __IO uint32_t PCR4; + stc_gpio_pcr4_field_t PCR4_f; + }; + union { + __IO uint32_t PCR5; + stc_gpio_pcr5_field_t PCR5_f; + }; + union { + __IO uint32_t PCR6; + stc_gpio_pcr6_field_t PCR6_f; + }; + union { + __IO uint32_t PCR7; + stc_gpio_pcr7_field_t PCR7_f; + }; + __IO uint32_t PCR8; + union { + __IO uint32_t PCR9; + stc_gpio_pcr9_field_t PCR9_f; + }; + union { + __IO uint32_t PCRA; + stc_gpio_pcra_field_t PCRA_f; + }; + union { + __IO uint32_t PCRB; + stc_gpio_pcrb_field_t PCRB_f; + }; + union { + __IO uint32_t PCRC; + stc_gpio_pcrc_field_t PCRC_f; + }; + union { + __IO uint32_t PCRD; + stc_gpio_pcrd_field_t PCRD_f; + }; + union { + __IO uint32_t PCRE; + stc_gpio_pcre_field_t PCRE_f; + }; + __IO uint32_t PCRF; + uint8_t RESERVED1[192]; + union { + __IO uint32_t DDR0; + stc_gpio_ddr0_field_t DDR0_f; + }; + union { + __IO uint32_t DDR1; + stc_gpio_ddr1_field_t DDR1_f; + }; + union { + __IO uint32_t DDR2; + stc_gpio_ddr2_field_t DDR2_f; + }; + union { + __IO uint32_t DDR3; + stc_gpio_ddr3_field_t DDR3_f; + }; + union { + __IO uint32_t DDR4; + stc_gpio_ddr4_field_t DDR4_f; + }; + union { + __IO uint32_t DDR5; + stc_gpio_ddr5_field_t DDR5_f; + }; + union { + __IO uint32_t DDR6; + stc_gpio_ddr6_field_t DDR6_f; + }; + union { + __IO uint32_t DDR7; + stc_gpio_ddr7_field_t DDR7_f; + }; + union { + __IO uint32_t DDR8; + stc_gpio_ddr8_field_t DDR8_f; + }; + union { + __IO uint32_t DDR9; + stc_gpio_ddr9_field_t DDR9_f; + }; + union { + __IO uint32_t DDRA; + stc_gpio_ddra_field_t DDRA_f; + }; + union { + __IO uint32_t DDRB; + stc_gpio_ddrb_field_t DDRB_f; + }; + union { + __IO uint32_t DDRC; + stc_gpio_ddrc_field_t DDRC_f; + }; + union { + __IO uint32_t DDRD; + stc_gpio_ddrd_field_t DDRD_f; + }; + union { + __IO uint32_t DDRE; + stc_gpio_ddre_field_t DDRE_f; + }; + union { + __IO uint32_t DDRF; + stc_gpio_ddrf_field_t DDRF_f; + }; + uint8_t RESERVED2[192]; + union { + __IO uint32_t PDIR0; + stc_gpio_pdir0_field_t PDIR0_f; + }; + union { + __IO uint32_t PDIR1; + stc_gpio_pdir1_field_t PDIR1_f; + }; + union { + __IO uint32_t PDIR2; + stc_gpio_pdir2_field_t PDIR2_f; + }; + union { + __IO uint32_t PDIR3; + stc_gpio_pdir3_field_t PDIR3_f; + }; + union { + __IO uint32_t PDIR4; + stc_gpio_pdir4_field_t PDIR4_f; + }; + union { + __IO uint32_t PDIR5; + stc_gpio_pdir5_field_t PDIR5_f; + }; + union { + __IO uint32_t PDIR6; + stc_gpio_pdir6_field_t PDIR6_f; + }; + union { + __IO uint32_t PDIR7; + stc_gpio_pdir7_field_t PDIR7_f; + }; + union { + __IO uint32_t PDIR8; + stc_gpio_pdir8_field_t PDIR8_f; + }; + union { + __IO uint32_t PDIR9; + stc_gpio_pdir9_field_t PDIR9_f; + }; + union { + __IO uint32_t PDIRA; + stc_gpio_pdira_field_t PDIRA_f; + }; + union { + __IO uint32_t PDIRB; + stc_gpio_pdirb_field_t PDIRB_f; + }; + union { + __IO uint32_t PDIRC; + stc_gpio_pdirc_field_t PDIRC_f; + }; + union { + __IO uint32_t PDIRD; + stc_gpio_pdird_field_t PDIRD_f; + }; + union { + __IO uint32_t PDIRE; + stc_gpio_pdire_field_t PDIRE_f; + }; + union { + __IO uint32_t PDIRF; + stc_gpio_pdirf_field_t PDIRF_f; + }; + uint8_t RESERVED3[192]; + union { + __IO uint32_t PDOR0; + stc_gpio_pdor0_field_t PDOR0_f; + }; + union { + __IO uint32_t PDOR1; + stc_gpio_pdor1_field_t PDOR1_f; + }; + union { + __IO uint32_t PDOR2; + stc_gpio_pdor2_field_t PDOR2_f; + }; + union { + __IO uint32_t PDOR3; + stc_gpio_pdor3_field_t PDOR3_f; + }; + union { + __IO uint32_t PDOR4; + stc_gpio_pdor4_field_t PDOR4_f; + }; + union { + __IO uint32_t PDOR5; + stc_gpio_pdor5_field_t PDOR5_f; + }; + union { + __IO uint32_t PDOR6; + stc_gpio_pdor6_field_t PDOR6_f; + }; + union { + __IO uint32_t PDOR7; + stc_gpio_pdor7_field_t PDOR7_f; + }; + union { + __IO uint32_t PDOR8; + stc_gpio_pdor8_field_t PDOR8_f; + }; + union { + __IO uint32_t PDOR9; + stc_gpio_pdor9_field_t PDOR9_f; + }; + union { + __IO uint32_t PDORA; + stc_gpio_pdora_field_t PDORA_f; + }; + union { + __IO uint32_t PDORB; + stc_gpio_pdorb_field_t PDORB_f; + }; + union { + __IO uint32_t PDORC; + stc_gpio_pdorc_field_t PDORC_f; + }; + union { + __IO uint32_t PDORD; + stc_gpio_pdord_field_t PDORD_f; + }; + union { + __IO uint32_t PDORE; + stc_gpio_pdore_field_t PDORE_f; + }; + union { + __IO uint32_t PDORF; + stc_gpio_pdorf_field_t PDORF_f; + }; + uint8_t RESERVED4[192]; + union { + __IO uint32_t ADE; + stc_gpio_ade_field_t ADE_f; + }; + uint8_t RESERVED5[124]; + union { + __IO uint32_t SPSR; + stc_gpio_spsr_field_t SPSR_f; + }; + uint8_t RESERVED6[124]; + union { + __IO uint32_t EPFR00; + stc_gpio_epfr00_field_t EPFR00_f; + }; + union { + __IO uint32_t EPFR01; + stc_gpio_epfr01_field_t EPFR01_f; + }; + union { + __IO uint32_t EPFR02; + stc_gpio_epfr02_field_t EPFR02_f; + }; + union { + __IO uint32_t EPFR03; + stc_gpio_epfr03_field_t EPFR03_f; + }; + union { + __IO uint32_t EPFR04; + stc_gpio_epfr04_field_t EPFR04_f; + }; + union { + __IO uint32_t EPFR05; + stc_gpio_epfr05_field_t EPFR05_f; + }; + union { + __IO uint32_t EPFR06; + stc_gpio_epfr06_field_t EPFR06_f; + }; + union { + __IO uint32_t EPFR07; + stc_gpio_epfr07_field_t EPFR07_f; + }; + union { + __IO uint32_t EPFR08; + stc_gpio_epfr08_field_t EPFR08_f; + }; + union { + __IO uint32_t EPFR09; + stc_gpio_epfr09_field_t EPFR09_f; + }; + union { + __IO uint32_t EPFR10; + stc_gpio_epfr10_field_t EPFR10_f; + }; + union { + __IO uint32_t EPFR11; + stc_gpio_epfr11_field_t EPFR11_f; + }; + union { + __IO uint32_t EPFR12; + stc_gpio_epfr12_field_t EPFR12_f; + }; + union { + __IO uint32_t EPFR13; + stc_gpio_epfr13_field_t EPFR13_f; + }; + union { + __IO uint32_t EPFR14; + stc_gpio_epfr14_field_t EPFR14_f; + }; + union { + __IO uint32_t EPFR15; + stc_gpio_epfr15_field_t EPFR15_f; + }; + uint8_t RESERVED7[192]; + union { + __IO uint32_t PZR0; + stc_gpio_pzr0_field_t PZR0_f; + }; + union { + __IO uint32_t PZR1; + stc_gpio_pzr1_field_t PZR1_f; + }; + union { + __IO uint32_t PZR2; + stc_gpio_pzr2_field_t PZR2_f; + }; + union { + __IO uint32_t PZR3; + stc_gpio_pzr3_field_t PZR3_f; + }; + union { + __IO uint32_t PZR4; + stc_gpio_pzr4_field_t PZR4_f; + }; + union { + __IO uint32_t PZR5; + stc_gpio_pzr5_field_t PZR5_f; + }; + union { + __IO uint32_t PZR6; + stc_gpio_pzr6_field_t PZR6_f; + }; + union { + __IO uint32_t PZR7; + stc_gpio_pzr7_field_t PZR7_f; + }; + union { + __IO uint32_t PZR8; + stc_gpio_pzr8_field_t PZR8_f; + }; + union { + __IO uint32_t PZR9; + stc_gpio_pzr9_field_t PZR9_f; + }; + union { + __IO uint32_t PZRA; + stc_gpio_pzra_field_t PZRA_f; + }; + union { + __IO uint32_t PZRB; + stc_gpio_pzrb_field_t PZRB_f; + }; + union { + __IO uint32_t PZRC; + stc_gpio_pzrc_field_t PZRC_f; + }; + union { + __IO uint32_t PZRD; + stc_gpio_pzrd_field_t PZRD_f; + }; + union { + __IO uint32_t PZRE; + stc_gpio_pzre_field_t PZRE_f; + }; + union { + __IO uint32_t PZRF; + stc_gpio_pzrf_field_t PZRF_f; + }; +}FM3_GPIO_TypeDef; + +/****************************************************************************** + * LVD_MODULE + ******************************************************************************/ +/* Low voltage detection registers */ +typedef struct +{ + union { + __IO uint8_t LVD_CTL; + stc_lvd_lvd_ctl_field_t LVD_CTL_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t LVD_STR; + stc_lvd_lvd_str_field_t LVD_STR_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t LVD_CLR; + stc_lvd_lvd_clr_field_t LVD_CLR_f; + }; + uint8_t RESERVED2[3]; + __IO uint32_t LVD_RLR; + union { + __IO uint8_t LVD_STR2; + stc_lvd_lvd_str2_field_t LVD_STR2_f; + }; +}FM3_LVD_TypeDef; + +/****************************************************************************** + * USBETHERNETCLK + ******************************************************************************/ +/* USB Ethernet clock registers */ +typedef struct +{ + union { + __IO uint8_t UCCR; + stc_usbethernetclk_uccr_field_t UCCR_f; + }; + uint8_t RESERVED0[3]; + union { + __IO uint8_t UPCR1; + stc_usbethernetclk_upcr1_field_t UPCR1_f; + }; + uint8_t RESERVED1[3]; + union { + __IO uint8_t UPCR2; + stc_usbethernetclk_upcr2_field_t UPCR2_f; + }; + uint8_t RESERVED2[3]; + union { + __IO uint8_t UPCR3; + stc_usbethernetclk_upcr3_field_t UPCR3_f; + }; + uint8_t RESERVED3[3]; + union { + __IO uint8_t UPCR4; + stc_usbethernetclk_upcr4_field_t UPCR4_f; + }; + uint8_t RESERVED4[3]; + union { + __IO uint8_t UP_STR; + stc_usbethernetclk_up_str_field_t UP_STR_f; + }; + uint8_t RESERVED5[3]; + union { + __IO uint8_t UPINT_ENR; + stc_usbethernetclk_upint_enr_field_t UPINT_ENR_f; + }; + uint8_t RESERVED6[3]; + union { + __IO uint8_t UPINT_CLR; + stc_usbethernetclk_upint_clr_field_t UPINT_CLR_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint8_t UPINT_STR; + stc_usbethernetclk_upint_str_field_t UPINT_STR_f; + }; + uint8_t RESERVED8[3]; + union { + __IO uint8_t UPCR5; + stc_usbethernetclk_upcr5_field_t UPCR5_f; + }; + uint8_t RESERVED9[3]; + union { + __IO uint8_t UPCR6; + stc_usbethernetclk_upcr6_field_t UPCR6_f; + }; + uint8_t RESERVED10[3]; + union { + __IO uint8_t UPCR7; + stc_usbethernetclk_upcr7_field_t UPCR7_f; + }; + uint8_t RESERVED11[3]; + union { + __IO uint8_t USBEN0; + stc_usbethernetclk_usben0_field_t USBEN0_f; + }; + uint8_t RESERVED12[3]; + union { + __IO uint8_t USBEN1; + stc_usbethernetclk_usben1_field_t USBEN1_f; + }; +}FM3_USBETHERNETCLK_TypeDef; + +/****************************************************************************** + * MFS03_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_uart_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_uart_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_uart_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_uart_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint16_t RDR; + stc_mfs03_uart_rdr_field_t RDR_f; + }; + union { + __IO uint16_t TDR; + stc_mfs03_uart_tdr_field_t TDR_f; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs03_uart_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs03_uart_bgr1_field_t BGR1_f; + }; + }; + }; +}FM3_MFS03_UART_TypeDef; + +/****************************************************************************** + * MFS03_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_csio_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_csio_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_csio_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_csio_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; +}FM3_MFS03_CSIO_TypeDef; + +/****************************************************************************** + * MFS03_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_lin_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs03_lin_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs03_lin_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_lin_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs03_lin_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs03_lin_bgr1_field_t BGR1_f; + }; + }; + }; +}FM3_MFS03_LIN_TypeDef; + +/****************************************************************************** + * MFS03_I2C_MODULE + ******************************************************************************/ +/* I2C channel 0 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs03_i2c_smr_field_t SMR_f; + }; + union { + __IO uint8_t IBCR; + stc_mfs03_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t IBSR; + stc_mfs03_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs03_i2c_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t ISBA; + stc_mfs03_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs03_i2c_ismk_field_t ISMK_f; + }; +}FM3_MFS03_I2C_TypeDef; + +/****************************************************************************** + * MFS47_UART_MODULE + ******************************************************************************/ +/* UART asynchronous channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_uart_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_uart_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_uart_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_uart_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + union { + __IO uint16_t RDR; + stc_mfs47_uart_rdr_field_t RDR_f; + }; + union { + __IO uint16_t TDR; + stc_mfs47_uart_tdr_field_t TDR_f; + }; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs47_uart_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs47_uart_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_uart_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_uart_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_uart_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_uart_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_uart_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_uart_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_UART_TypeDef; + +/****************************************************************************** + * MFS47_CSIO_MODULE + ******************************************************************************/ +/* UART synchronous channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_csio_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_csio_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_csio_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_csio_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_csio_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_csio_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_csio_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_csio_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_csio_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_csio_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_CSIO_TypeDef; + +/****************************************************************************** + * MFS47_LIN_MODULE + ******************************************************************************/ +/* UART LIN channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_lin_smr_field_t SMR_f; + }; + union { + __IO uint8_t SCR; + stc_mfs47_lin_scr_field_t SCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t ESCR; + stc_mfs47_lin_escr_field_t ESCR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_lin_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t BGR; + stc_mfs47_lin_bgr_field_t BGR_f; + }; + struct { + __IO uint8_t BGR0; + union { + __IO uint8_t BGR1; + stc_mfs47_lin_bgr1_field_t BGR1_f; + }; + }; + }; + uint8_t RESERVED3[6]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_lin_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_lin_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_lin_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_lin_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_lin_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_lin_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_LIN_TypeDef; + +/****************************************************************************** + * MFS47_I2C_MODULE + ******************************************************************************/ +/* I2C channel 4 registers */ +typedef struct +{ + union { + __IO uint8_t SMR; + stc_mfs47_i2c_smr_field_t SMR_f; + }; + union { + __IO uint8_t IBCR; + stc_mfs47_i2c_ibcr_field_t IBCR_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t IBSR; + stc_mfs47_i2c_ibsr_field_t IBSR_f; + }; + union { + __IO uint8_t SSR; + stc_mfs47_i2c_ssr_field_t SSR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t RDR; + __IO uint16_t TDR; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t BGR; + struct { + __IO uint8_t BGR0; + __IO uint8_t BGR1; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t ISBA; + stc_mfs47_i2c_isba_field_t ISBA_f; + }; + union { + __IO uint8_t ISMK; + stc_mfs47_i2c_ismk_field_t ISMK_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t FCR; + stc_mfs47_i2c_fcr_field_t FCR_f; + }; + struct { + union { + __IO uint8_t FCR0; + stc_mfs47_i2c_fcr0_field_t FCR0_f; + }; + union { + __IO uint8_t FCR1; + stc_mfs47_i2c_fcr1_field_t FCR1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t FBYTE; + stc_mfs47_i2c_fbyte_field_t FBYTE_f; + }; + struct { + union { + __IO uint8_t FBYTE1; + stc_mfs47_i2c_fbyte1_field_t FBYTE1_f; + }; + union { + __IO uint8_t FBYTE2; + stc_mfs47_i2c_fbyte2_field_t FBYTE2_f; + }; + }; + }; +}FM3_MFS47_I2C_TypeDef; + +/****************************************************************************** + * MFS_NFC_MODULE + ******************************************************************************/ +/* MFS_NFC_MODULE register bit fields */ +typedef struct +{ + union { + __IO uint16_t I2CDNF; + stc_mfs_nfc_i2cdnf_field_t I2CDNF_f; + }; +}FM3_MFS_NFC_TypeDef; + +/****************************************************************************** + * CRC_MODULE + ******************************************************************************/ +/* CRC registers */ +typedef struct +{ + union { + __IO uint8_t CRCCR; + stc_crc_crccr_field_t CRCCR_f; + }; + uint8_t RESERVED0[3]; + __IO uint32_t CRCINIT; + union { + __IO uint32_t CRCIN; + struct { + union { + __IO uint16_t CRCINL; + struct { + __IO uint8_t CRCINLL; + __IO uint8_t CRCINLH; + }; + }; + union { + __IO uint16_t CRCINH; + struct { + __IO uint8_t CRCINHL; + __IO uint8_t CRCINHH; + }; + }; + }; + }; + __IO uint32_t CRCR; +}FM3_CRC_TypeDef; + +/****************************************************************************** + * WC_MODULE + ******************************************************************************/ +/* Watch counter registers */ +typedef struct +{ + union { + __IO uint8_t WCRD; + stc_wc_wcrd_field_t WCRD_f; + }; + union { + __IO uint8_t WCRL; + stc_wc_wcrl_field_t WCRL_f; + }; + union { + __IO uint8_t WCCR; + stc_wc_wccr_field_t WCCR_f; + }; + uint8_t RESERVED0[13]; + union { + __IO uint16_t CLK_SEL; + stc_wc_clk_sel_field_t CLK_SEL_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t CLK_EN; + stc_wc_clk_en_field_t CLK_EN_f; + }; +}FM3_WC_TypeDef; + +/****************************************************************************** + * EXBUS_MODULE + ******************************************************************************/ +/* External bus interface registers */ +typedef struct +{ + union { + __IO uint32_t MODE0; + stc_exbus_mode0_field_t MODE0_f; + }; + union { + __IO uint32_t MODE1; + stc_exbus_mode1_field_t MODE1_f; + }; + union { + __IO uint32_t MODE2; + stc_exbus_mode2_field_t MODE2_f; + }; + union { + __IO uint32_t MODE3; + stc_exbus_mode3_field_t MODE3_f; + }; + union { + __IO uint32_t MODE4; + stc_exbus_mode4_field_t MODE4_f; + }; + union { + __IO uint32_t MODE5; + stc_exbus_mode5_field_t MODE5_f; + }; + union { + __IO uint32_t MODE6; + stc_exbus_mode6_field_t MODE6_f; + }; + union { + __IO uint32_t MODE7; + stc_exbus_mode7_field_t MODE7_f; + }; + union { + __IO uint32_t TIM0; + stc_exbus_tim0_field_t TIM0_f; + }; + union { + __IO uint32_t TIM1; + stc_exbus_tim1_field_t TIM1_f; + }; + union { + __IO uint32_t TIM2; + stc_exbus_tim2_field_t TIM2_f; + }; + union { + __IO uint32_t TIM3; + stc_exbus_tim3_field_t TIM3_f; + }; + union { + __IO uint32_t TIM4; + stc_exbus_tim4_field_t TIM4_f; + }; + union { + __IO uint32_t TIM5; + stc_exbus_tim5_field_t TIM5_f; + }; + union { + __IO uint32_t TIM6; + stc_exbus_tim6_field_t TIM6_f; + }; + union { + __IO uint32_t TIM7; + stc_exbus_tim7_field_t TIM7_f; + }; + union { + __IO uint32_t AREA0; + stc_exbus_area0_field_t AREA0_f; + }; + union { + __IO uint32_t AREA1; + stc_exbus_area1_field_t AREA1_f; + }; + union { + __IO uint32_t AREA2; + stc_exbus_area2_field_t AREA2_f; + }; + union { + __IO uint32_t AREA3; + stc_exbus_area3_field_t AREA3_f; + }; + union { + __IO uint32_t AREA4; + stc_exbus_area4_field_t AREA4_f; + }; + union { + __IO uint32_t AREA5; + stc_exbus_area5_field_t AREA5_f; + }; + union { + __IO uint32_t AREA6; + stc_exbus_area6_field_t AREA6_f; + }; + union { + __IO uint32_t AREA7; + stc_exbus_area7_field_t AREA7_f; + }; + union { + __IO uint16_t ATIM0; + stc_exbus_atim0_field_t ATIM0_f; + }; + uint8_t RESERVED0[2]; + union { + __IO uint16_t ATIM1; + stc_exbus_atim1_field_t ATIM1_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint16_t ATIM2; + stc_exbus_atim2_field_t ATIM2_f; + }; + uint8_t RESERVED2[2]; + union { + __IO uint16_t ATIM3; + stc_exbus_atim3_field_t ATIM3_f; + }; + uint8_t RESERVED3[2]; + union { + __IO uint16_t ATIM4; + stc_exbus_atim4_field_t ATIM4_f; + }; + uint8_t RESERVED4[2]; + union { + __IO uint16_t ATIM5; + stc_exbus_atim5_field_t ATIM5_f; + }; + uint8_t RESERVED5[2]; + union { + __IO uint16_t ATIM6; + stc_exbus_atim6_field_t ATIM6_f; + }; + uint8_t RESERVED6[2]; + union { + __IO uint16_t ATIM7; + stc_exbus_atim7_field_t ATIM7_f; + }; + uint8_t RESERVED7[642]; + union { + __IO uint8_t DCLKR; + stc_exbus_dclkr_field_t DCLKR_f; + }; +}FM3_EXBUS_TypeDef; + +/****************************************************************************** + * USB_MODULE + ******************************************************************************/ +/* USB channel 0 registers */ +typedef struct +{ + union { + union { + __IO uint16_t HCNT; + stc_usb_hcnt_field_t HCNT_f; + }; + struct { + union { + __IO uint8_t HCNT0; + stc_usb_hcnt0_field_t HCNT0_f; + }; + union { + __IO uint8_t HCNT1; + stc_usb_hcnt1_field_t HCNT1_f; + }; + }; + }; + uint8_t RESERVED0[2]; + union { + __IO uint8_t HIRQ; + stc_usb_hirq_field_t HIRQ_f; + }; + union { + __IO uint8_t HERR; + stc_usb_herr_field_t HERR_f; + }; + uint8_t RESERVED1[2]; + union { + __IO uint8_t HSTATE; + stc_usb_hstate_field_t HSTATE_f; + }; + union { + __IO uint8_t HFCOMP; + stc_usb_hfcomp_field_t HFCOMP_f; + }; + uint8_t RESERVED2[2]; + union { + union { + __IO uint16_t HRTIMER; + stc_usb_hrtimer_field_t HRTIMER_f; + }; + struct { + union { + __IO uint8_t HRTIMER0; + stc_usb_hrtimer0_field_t HRTIMER0_f; + }; + union { + __IO uint8_t HRTIMER1; + stc_usb_hrtimer1_field_t HRTIMER1_f; + }; + }; + }; + uint8_t RESERVED3[2]; + union { + __IO uint8_t HRTIMER2; + stc_usb_hrtimer2_field_t HRTIMER2_f; + }; + union { + __IO uint8_t HADR; + stc_usb_hadr_field_t HADR_f; + }; + uint8_t RESERVED4[2]; + union { + union { + __IO uint16_t HEOF; + stc_usb_heof_field_t HEOF_f; + }; + struct { + union { + __IO uint8_t HEOF0; + stc_usb_heof0_field_t HEOF0_f; + }; + union { + __IO uint8_t HEOF1; + stc_usb_heof1_field_t HEOF1_f; + }; + }; + }; + uint8_t RESERVED5[2]; + union { + union { + __IO uint16_t HFRAME; + stc_usb_hframe_field_t HFRAME_f; + }; + struct { + union { + __IO uint8_t HFRAME0; + stc_usb_hframe0_field_t HFRAME0_f; + }; + union { + __IO uint8_t HFRAME1; + stc_usb_hframe1_field_t HFRAME1_f; + }; + }; + }; + uint8_t RESERVED6[2]; + union { + __IO uint8_t HTOKEN; + stc_usb_htoken_field_t HTOKEN_f; + }; + uint8_t RESERVED7[3]; + union { + __IO uint16_t UDCC; + stc_usb_udcc_field_t UDCC_f; + }; + uint8_t RESERVED8[2]; + union { + __IO uint16_t EP0C; + stc_usb_ep0c_field_t EP0C_f; + }; + uint8_t RESERVED9[2]; + union { + __IO uint16_t EP1C; + stc_usb_ep1c_field_t EP1C_f; + }; + uint8_t RESERVED10[2]; + union { + __IO uint16_t EP2C; + stc_usb_ep2c_field_t EP2C_f; + }; + uint8_t RESERVED11[2]; + union { + __IO uint16_t EP3C; + stc_usb_ep3c_field_t EP3C_f; + }; + uint8_t RESERVED12[2]; + union { + __IO uint16_t EP4C; + stc_usb_ep4c_field_t EP4C_f; + }; + uint8_t RESERVED13[2]; + union { + __IO uint16_t EP5C; + stc_usb_ep5c_field_t EP5C_f; + }; + uint8_t RESERVED14[2]; + union { + __IO uint16_t TMSP; + stc_usb_tmsp_field_t TMSP_f; + }; + uint8_t RESERVED15[2]; + union { + __IO uint8_t UDCS; + stc_usb_udcs_field_t UDCS_f; + }; + union { + __IO uint8_t UDCIE; + stc_usb_udcie_field_t UDCIE_f; + }; + uint8_t RESERVED16[2]; + union { + __IO uint16_t EP0IS; + stc_usb_ep0is_field_t EP0IS_f; + }; + uint8_t RESERVED17[2]; + union { + __IO uint16_t EP0OS; + stc_usb_ep0os_field_t EP0OS_f; + }; + uint8_t RESERVED18[2]; + union { + __IO uint16_t EP1S; + stc_usb_ep1s_field_t EP1S_f; + }; + uint8_t RESERVED19[2]; + union { + __IO uint16_t EP2S; + stc_usb_ep2s_field_t EP2S_f; + }; + uint8_t RESERVED20[2]; + __IO uint16_t EP3S; + uint8_t RESERVED21[2]; + union { + __IO uint16_t EP4S; + stc_usb_ep4s_field_t EP4S_f; + }; + uint8_t RESERVED22[2]; + union { + __IO uint16_t EP5S; + stc_usb_ep5s_field_t EP5S_f; + }; + uint8_t RESERVED23[2]; + union { + __IO uint16_t EP0DT; + struct { + __IO uint8_t EP0DTL; + __IO uint8_t EP0DTH; + }; + }; + uint8_t RESERVED24[2]; + union { + __IO uint16_t EP1DT; + struct { + __IO uint8_t EP1DTL; + __IO uint8_t EP1DTH; + }; + }; + uint8_t RESERVED25[2]; + union { + __IO uint16_t EP2DT; + struct { + __IO uint8_t EP2DTL; + __IO uint8_t EP2DTH; + }; + }; + uint8_t RESERVED26[2]; + union { + __IO uint16_t EP3DT; + struct { + __IO uint8_t EP3DTL; + __IO uint8_t EP3DTH; + }; + }; + uint8_t RESERVED27[2]; + union { + __IO uint16_t EP4DT; + struct { + __IO uint8_t EP4DTL; + __IO uint8_t EP4DTH; + }; + }; + uint8_t RESERVED28[2]; + union { + __IO uint16_t EP5DT; + struct { + __IO uint8_t EP5DTL; + __IO uint8_t EP5DTH; + }; + }; +}FM3_USB_TypeDef; + +/****************************************************************************** + * DMAC_MODULE + ******************************************************************************/ +/* DMA controller */ +typedef struct +{ + union { + __IO uint32_t DMACR; + stc_dmac_dmacr_field_t DMACR_f; + }; + uint8_t RESERVED0[12]; + union { + __IO uint32_t DMACA0; + stc_dmac_dmaca0_field_t DMACA0_f; + }; + union { + __IO uint32_t DMACB0; + stc_dmac_dmacb0_field_t DMACB0_f; + }; + __IO uint32_t DMACSA0; + __IO uint32_t DMACDA0; + union { + __IO uint32_t DMACA1; + stc_dmac_dmaca1_field_t DMACA1_f; + }; + union { + __IO uint32_t DMACB1; + stc_dmac_dmacb1_field_t DMACB1_f; + }; + __IO uint32_t DMACSA1; + __IO uint32_t DMACDA1; + union { + __IO uint32_t DMACA2; + stc_dmac_dmaca2_field_t DMACA2_f; + }; + union { + __IO uint32_t DMACB2; + stc_dmac_dmacb2_field_t DMACB2_f; + }; + __IO uint32_t DMACSA2; + __IO uint32_t DMACDA2; + union { + __IO uint32_t DMACA3; + stc_dmac_dmaca3_field_t DMACA3_f; + }; + union { + __IO uint32_t DMACB3; + stc_dmac_dmacb3_field_t DMACB3_f; + }; + __IO uint32_t DMACSA3; + __IO uint32_t DMACDA3; + union { + __IO uint32_t DMACA4; + stc_dmac_dmaca4_field_t DMACA4_f; + }; + union { + __IO uint32_t DMACB4; + stc_dmac_dmacb4_field_t DMACB4_f; + }; + __IO uint32_t DMACSA4; + __IO uint32_t DMACDA4; + union { + __IO uint32_t DMACA5; + stc_dmac_dmaca5_field_t DMACA5_f; + }; + union { + __IO uint32_t DMACB5; + stc_dmac_dmacb5_field_t DMACB5_f; + }; + __IO uint32_t DMACSA5; + __IO uint32_t DMACDA5; + union { + __IO uint32_t DMACA6; + stc_dmac_dmaca6_field_t DMACA6_f; + }; + union { + __IO uint32_t DMACB6; + stc_dmac_dmacb6_field_t DMACB6_f; + }; + __IO uint32_t DMACSA6; + __IO uint32_t DMACDA6; + union { + __IO uint32_t DMACA7; + stc_dmac_dmaca7_field_t DMACA7_f; + }; + union { + __IO uint32_t DMACB7; + stc_dmac_dmacb7_field_t DMACB7_f; + }; + __IO uint32_t DMACSA7; + __IO uint32_t DMACDA7; +}FM3_DMAC_TypeDef; + +/****************************************************************************** + * ETHERNET_MAC_MODULE + ******************************************************************************/ +/* ETHERNET-MAC registers */ +typedef struct +{ + union { + __IO uint32_t MCR; + stc_ethernet_mac_mcr_field_t MCR_f; + }; + union { + __IO uint32_t MFFR; + stc_ethernet_mac_mffr_field_t MFFR_f; + }; + union { + __IO uint32_t MHTRH; + stc_ethernet_mac_mhtrh_field_t MHTRH_f; + }; + union { + __IO uint32_t MHTRL; + stc_ethernet_mac_mhtrl_field_t MHTRL_f; + }; + union { + __IO uint32_t GAR; + stc_ethernet_mac_gar_field_t GAR_f; + }; + union { + __IO uint32_t GDR; + stc_ethernet_mac_gdr_field_t GDR_f; + }; + union { + __IO uint32_t FCR; + stc_ethernet_mac_fcr_field_t FCR_f; + }; + union { + __IO uint32_t VTR; + stc_ethernet_mac_vtr_field_t VTR_f; + }; + uint8_t RESERVED0[8]; + union { + __IO uint32_t RWFFR; + stc_ethernet_mac_rwffr_field_t RWFFR_f; + }; + union { + __IO uint32_t PMTR; + stc_ethernet_mac_pmtr_field_t PMTR_f; + }; + union { + __IO uint32_t LPICSR; + stc_ethernet_mac_lpicsr_field_t LPICSR_f; + }; + union { + __IO uint32_t LPITCR; + stc_ethernet_mac_lpitcr_field_t LPITCR_f; + }; + union { + __IO uint32_t ISR; + stc_ethernet_mac_isr_field_t ISR_f; + }; + union { + __IO uint32_t IMR; + stc_ethernet_mac_imr_field_t IMR_f; + }; + union { + __IO uint32_t MAR0H; + stc_ethernet_mac_mar0h_field_t MAR0H_f; + }; + union { + __IO uint32_t MAR0L; + stc_ethernet_mac_mar0l_field_t MAR0L_f; + }; + union { + __IO uint32_t MAR1H; + stc_ethernet_mac_mar1h_field_t MAR1H_f; + }; + union { + __IO uint32_t MAR1L; + stc_ethernet_mac_mar1l_field_t MAR1L_f; + }; + union { + __IO uint32_t MAR2H; + stc_ethernet_mac_mar2h_field_t MAR2H_f; + }; + union { + __IO uint32_t MAR2L; + stc_ethernet_mac_mar2l_field_t MAR2L_f; + }; + union { + __IO uint32_t MAR3H; + stc_ethernet_mac_mar3h_field_t MAR3H_f; + }; + union { + __IO uint32_t MAR3L; + stc_ethernet_mac_mar3l_field_t MAR3L_f; + }; + union { + __IO uint32_t MAR4H; + stc_ethernet_mac_mar4h_field_t MAR4H_f; + }; + union { + __IO uint32_t MAR4L; + stc_ethernet_mac_mar4l_field_t MAR4L_f; + }; + union { + __IO uint32_t MAR5H; + stc_ethernet_mac_mar5h_field_t MAR5H_f; + }; + union { + __IO uint32_t MAR5L; + stc_ethernet_mac_mar5l_field_t MAR5L_f; + }; + union { + __IO uint32_t MAR6H; + stc_ethernet_mac_mar6h_field_t MAR6H_f; + }; + union { + __IO uint32_t MAR6L; + stc_ethernet_mac_mar6l_field_t MAR6L_f; + }; + union { + __IO uint32_t MAR7H; + stc_ethernet_mac_mar7h_field_t MAR7H_f; + }; + union { + __IO uint32_t MAR7L; + stc_ethernet_mac_mar7l_field_t MAR7L_f; + }; + union { + __IO uint32_t MAR8H; + stc_ethernet_mac_mar8h_field_t MAR8H_f; + }; + union { + __IO uint32_t MAR8L; + stc_ethernet_mac_mar8l_field_t MAR8L_f; + }; + union { + __IO uint32_t MAR9H; + stc_ethernet_mac_mar9h_field_t MAR9H_f; + }; + union { + __IO uint32_t MAR9L; + stc_ethernet_mac_mar9l_field_t MAR9L_f; + }; + union { + __IO uint32_t MAR10H; + stc_ethernet_mac_mar10h_field_t MAR10H_f; + }; + union { + __IO uint32_t MAR10L; + stc_ethernet_mac_mar10l_field_t MAR10L_f; + }; + union { + __IO uint32_t MAR11H; + stc_ethernet_mac_mar11h_field_t MAR11H_f; + }; + union { + __IO uint32_t MAR11L; + stc_ethernet_mac_mar11l_field_t MAR11L_f; + }; + union { + __IO uint32_t MAR12H; + stc_ethernet_mac_mar12h_field_t MAR12H_f; + }; + union { + __IO uint32_t MAR12L; + stc_ethernet_mac_mar12l_field_t MAR12L_f; + }; + union { + __IO uint32_t MAR13H; + stc_ethernet_mac_mar13h_field_t MAR13H_f; + }; + union { + __IO uint32_t MAR13L; + stc_ethernet_mac_mar13l_field_t MAR13L_f; + }; + union { + __IO uint32_t MAR14H; + stc_ethernet_mac_mar14h_field_t MAR14H_f; + }; + union { + __IO uint32_t MAR14L; + stc_ethernet_mac_mar14l_field_t MAR14L_f; + }; + union { + __IO uint32_t MAR15H; + stc_ethernet_mac_mar15h_field_t MAR15H_f; + }; + union { + __IO uint32_t MAR15L; + stc_ethernet_mac_mar15l_field_t MAR15L_f; + }; + uint8_t RESERVED1[24]; + union { + __IO uint32_t RGSR; + stc_ethernet_mac_rgsr_field_t RGSR_f; + }; + uint8_t RESERVED2[36]; + __IO uint32_t mmc_cntl; + __IO uint32_t mmc_intr_rx; + __IO uint32_t mmc_intr_tx; + __IO uint32_t mmc_intr_mask_rx; + __IO uint32_t mmc_intr_mask_tx; + __IO uint32_t txoctetcount_gb; + __IO uint32_t txframecount_gb; + __IO uint32_t txbroadcastframes_g; + __IO uint32_t txmulticastframes_g; + __IO uint32_t tx64octets_gb; + __IO uint32_t tx65to127octets_gb; + __IO uint32_t tx128to255octets_gb; + __IO uint32_t tx256to511octets_gb; + __IO uint32_t tx512to1023octets_gb; + __IO uint32_t tx1024tomaxoctets_gb; + __IO uint32_t txunicastframes_gb; + __IO uint32_t txmulticastframes_gb; + __IO uint32_t txbroadcastframes_gb; + __IO uint32_t txunderflowerror; + __IO uint32_t txsinglecol_g; + __IO uint32_t txmulticol_g; + __IO uint32_t txdeferred; + __IO uint32_t txlatecol; + __IO uint32_t txexesscol; + __IO uint32_t txcarriererror; + __IO uint32_t txoctetcount_g; + __IO uint32_t txframecount_g; + __IO uint32_t txexecessdef_g; + __IO uint32_t txpauseframes; + __IO uint32_t txvlanframes_g; + uint8_t RESERVED3[8]; + __IO uint32_t rxframecount_gb; + __IO uint32_t rxoctetcount_gb; + __IO uint32_t rxoctetcount_g; + __IO uint32_t rxbroadcastframes_g; + __IO uint32_t rxmulticastframes_g; + __IO uint32_t rxcrcerror; + __IO uint32_t rxallignmenterror; + __IO uint32_t rxrunterror; + __IO uint32_t rxjabbererror; + __IO uint32_t rxundersize_g; + __IO uint32_t rxoversize_g; + __IO uint32_t rx64octets_gb; + __IO uint32_t rx65to127octets_gb; + __IO uint32_t rx128to255octets_gb; + __IO uint32_t rx256to511octets_gb; + __IO uint32_t rx512to1023octets_gb; + __IO uint32_t rx1024tomaxoctets_gb; + __IO uint32_t rxunicastframes_g; + __IO uint32_t rxlengtherror; + __IO uint32_t rxoutofrangetype; + __IO uint32_t rxpauseframes; + __IO uint32_t rxfifooverflow; + __IO uint32_t rxvlanframes_gb; + __IO uint32_t rxwatchdogerror; + uint8_t RESERVED4[32]; + __IO uint32_t mmc_ipc_intr_mask_rx; + uint8_t RESERVED5[4]; + __IO uint32_t mmc_ipc_intr_rx; + uint8_t RESERVED6[4]; + __IO uint32_t rxipv4_gd_frms; + __IO uint32_t rxipv4_hdrerr_frms; + __IO uint32_t rxipv4_nopay_frms; + __IO uint32_t rxipv4_frag_frms; + __IO uint32_t rxipv4_udsbl_frms; + __IO uint32_t rxipv6_gd_frms; + __IO uint32_t rxipv6_hdrerr_frms; + __IO uint32_t rxipv6_nopay_frms; + __IO uint32_t rxudp_gd_frms; + __IO uint32_t rxudp_err_frms; + __IO uint32_t rxtcp_gd_frms; + __IO uint32_t rxtcp_err_frms; + __IO uint32_t rxicmp_gd_frms; + __IO uint32_t rxicmp_err_frms; + uint8_t RESERVED7[8]; + __IO uint32_t rxipv4_gd_octets; + __IO uint32_t rxipv4_hdrerr_octets; + __IO uint32_t rxipv4_nopay_octets; + __IO uint32_t rxipv4_frag_octets; + __IO uint32_t rxipv4_udsbl_octets; + __IO uint32_t rxipv6_gd_octets; + __IO uint32_t rxipv6_hdrerr_octets; + __IO uint32_t rxipv6_nopay_octets; + __IO uint32_t rxudp_gd_octets; + __IO uint32_t rxudp_err_octets; + __IO uint32_t rxtcp_gd_octets; + __IO uint32_t rxtcp_err_octets; + __IO uint32_t rxicmp_gd_octets; + __IO uint32_t rxicmp_err_octets; + uint8_t RESERVED8[1144]; + union { + __IO uint32_t TSCR; + stc_ethernet_mac_tscr_field_t TSCR_f; + }; + union { + __IO uint32_t SSIR; + stc_ethernet_mac_ssir_field_t SSIR_f; + }; + union { + __IO uint32_t STSR; + stc_ethernet_mac_stsr_field_t STSR_f; + }; + union { + __IO uint32_t STNR; + stc_ethernet_mac_stnr_field_t STNR_f; + }; + union { + __IO uint32_t STSUR; + stc_ethernet_mac_stsur_field_t STSUR_f; + }; + union { + __IO uint32_t STNUR; + stc_ethernet_mac_stnur_field_t STNUR_f; + }; + union { + __IO uint32_t TSAR; + stc_ethernet_mac_tsar_field_t TSAR_f; + }; + union { + __IO uint32_t TTSR; + stc_ethernet_mac_ttsr_field_t TTSR_f; + }; + union { + __IO uint32_t TTNR; + stc_ethernet_mac_ttnr_field_t TTNR_f; + }; + union { + __IO uint32_t STHWSR; + stc_ethernet_mac_sthwsr_field_t STHWSR_f; + }; + union { + __IO uint32_t TSR; + stc_ethernet_mac_tsr_field_t TSR_f; + }; + union { + __IO uint32_t PPSCR; + stc_ethernet_mac_ppscr_field_t PPSCR_f; + }; + union { + __IO uint32_t ATNR; + stc_ethernet_mac_atnr_field_t ATNR_f; + }; + union { + __IO uint32_t ATSR; + stc_ethernet_mac_atsr_field_t ATSR_f; + }; + uint8_t RESERVED9[200]; + union { + __IO uint32_t MAR16H; + stc_ethernet_mac_mar16h_field_t MAR16H_f; + }; + union { + __IO uint32_t MAR16L; + stc_ethernet_mac_mar16l_field_t MAR16L_f; + }; + union { + __IO uint32_t MAR17H; + stc_ethernet_mac_mar17h_field_t MAR17H_f; + }; + union { + __IO uint32_t MAR17L; + stc_ethernet_mac_mar17l_field_t MAR17L_f; + }; + union { + __IO uint32_t MAR18H; + stc_ethernet_mac_mar18h_field_t MAR18H_f; + }; + union { + __IO uint32_t MAR18L; + stc_ethernet_mac_mar18l_field_t MAR18L_f; + }; + union { + __IO uint32_t MAR19H; + stc_ethernet_mac_mar19h_field_t MAR19H_f; + }; + union { + __IO uint32_t MAR19L; + stc_ethernet_mac_mar19l_field_t MAR19L_f; + }; + union { + __IO uint32_t MAR20H; + stc_ethernet_mac_mar20h_field_t MAR20H_f; + }; + union { + __IO uint32_t MAR20L; + stc_ethernet_mac_mar20l_field_t MAR20L_f; + }; + union { + __IO uint32_t MAR21H; + stc_ethernet_mac_mar21h_field_t MAR21H_f; + }; + union { + __IO uint32_t MAR21L; + stc_ethernet_mac_mar21l_field_t MAR21L_f; + }; + union { + __IO uint32_t MAR22H; + stc_ethernet_mac_mar22h_field_t MAR22H_f; + }; + union { + __IO uint32_t MAR22L; + stc_ethernet_mac_mar22l_field_t MAR22L_f; + }; + union { + __IO uint32_t MAR23H; + stc_ethernet_mac_mar23h_field_t MAR23H_f; + }; + union { + __IO uint32_t MAR23L; + stc_ethernet_mac_mar23l_field_t MAR23L_f; + }; + union { + __IO uint32_t MAR24H; + stc_ethernet_mac_mar24h_field_t MAR24H_f; + }; + union { + __IO uint32_t MAR24L; + stc_ethernet_mac_mar24l_field_t MAR24L_f; + }; + union { + __IO uint32_t MAR25H; + stc_ethernet_mac_mar25h_field_t MAR25H_f; + }; + union { + __IO uint32_t MAR25L; + stc_ethernet_mac_mar25l_field_t MAR25L_f; + }; + union { + __IO uint32_t MAR26H; + stc_ethernet_mac_mar26h_field_t MAR26H_f; + }; + union { + __IO uint32_t MAR26L; + stc_ethernet_mac_mar26l_field_t MAR26L_f; + }; + union { + __IO uint32_t MAR27H; + stc_ethernet_mac_mar27h_field_t MAR27H_f; + }; + union { + __IO uint32_t MAR27L; + stc_ethernet_mac_mar27l_field_t MAR27L_f; + }; + union { + __IO uint32_t MAR28H; + stc_ethernet_mac_mar28h_field_t MAR28H_f; + }; + union { + __IO uint32_t MAR28L; + stc_ethernet_mac_mar28l_field_t MAR28L_f; + }; + union { + __IO uint32_t MAR29H; + stc_ethernet_mac_mar29h_field_t MAR29H_f; + }; + union { + __IO uint32_t MAR29L; + stc_ethernet_mac_mar29l_field_t MAR29L_f; + }; + union { + __IO uint32_t MAR30H; + stc_ethernet_mac_mar30h_field_t MAR30H_f; + }; + union { + __IO uint32_t MAR30L; + stc_ethernet_mac_mar30l_field_t MAR30L_f; + }; + union { + __IO uint32_t MAR31H; + stc_ethernet_mac_mar31h_field_t MAR31H_f; + }; + union { + __IO uint32_t MAR31L; + stc_ethernet_mac_mar31l_field_t MAR31L_f; + }; + uint8_t RESERVED10[1920]; + union { + __IO uint32_t BMR; + stc_ethernet_mac_bmr_field_t BMR_f; + }; + union { + __IO uint32_t TPDR; + stc_ethernet_mac_tpdr_field_t TPDR_f; + }; + union { + __IO uint32_t RPDR; + stc_ethernet_mac_rpdr_field_t RPDR_f; + }; + union { + __IO uint32_t RDLAR; + stc_ethernet_mac_rdlar_field_t RDLAR_f; + }; + union { + __IO uint32_t TDLAR; + stc_ethernet_mac_tdlar_field_t TDLAR_f; + }; + union { + __IO uint32_t SR; + stc_ethernet_mac_sr_field_t SR_f; + }; + union { + __IO uint32_t OMR; + stc_ethernet_mac_omr_field_t OMR_f; + }; + union { + __IO uint32_t IER; + stc_ethernet_mac_ier_field_t IER_f; + }; + union { + __IO uint32_t MFBOCR; + stc_ethernet_mac_mfbocr_field_t MFBOCR_f; + }; + union { + __IO uint32_t RIWTR; + stc_ethernet_mac_riwtr_field_t RIWTR_f; + }; + uint8_t RESERVED11[4]; + union { + __IO uint32_t AHBSR; + stc_ethernet_mac_ahbsr_field_t AHBSR_f; + }; + uint8_t RESERVED12[24]; + union { + __IO uint32_t CHTDR; + stc_ethernet_mac_chtdr_field_t CHTDR_f; + }; + union { + __IO uint32_t CHRDR; + stc_ethernet_mac_chrdr_field_t CHRDR_f; + }; + union { + __IO uint32_t CHTBAR; + stc_ethernet_mac_chtbar_field_t CHTBAR_f; + }; + union { + __IO uint32_t CHRBAR; + stc_ethernet_mac_chrbar_field_t CHRBAR_f; + }; +}FM3_ETHERNET_MAC_TypeDef; + +/* ETHERNET-CONTROL registers */ +typedef struct +{ + union { + __IO uint32_t ETH_MODE; + stc_ethernet_control_eth_mode_field_t ETH_MODE_f; + }; + uint8_t RESERVED1[4]; + union { + __IO uint32_t ETH_CLKG; + stc_ethernet_control_eth_clkg_field_t ETH_CLKG_f; + }; +}FM3_ETHERNET_CONTROL_TypeDef; + +/****************************************************************************** + * Peripheral memory map + ******************************************************************************/ +#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ +#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ +#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ + +#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ +#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ +#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ +#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ +#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ +#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ +#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ +#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ +#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ +#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ +#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ +#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define FM3_MFT2_FRT_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Free Running Timer registers */ +#define FM3_MFT2_OCU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Output Compare Unit registers */ +#define FM3_MFT2_WFG_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ +#define FM3_MFT2_ICU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Input Capture Unit registers */ +#define FM3_MFT2_ADCMP_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 ADC Start Compare Unit registers */ +#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ +#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ +#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ +#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ +#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ +#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ +#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ +#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ +#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ +#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ +#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ +#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ +#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ +#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ +#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ +#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ +#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ +#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ +#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ +#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ +#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ +#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ +#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ +#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ +#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ +#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ +#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ +#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ +#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ +#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ +#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ +#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ +#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ +#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ +#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ +#define FM3_BT8_PPG_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PPG registers */ +#define FM3_BT8_PWM_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWM registers */ +#define FM3_BT8_RT_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 RT registers */ +#define FM3_BT8_PWC_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWC registers */ +#define FM3_BT9_PPG_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PPG registers */ +#define FM3_BT9_PWM_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWM registers */ +#define FM3_BT9_RT_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 RT registers */ +#define FM3_BT9_PWC_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWC registers */ +#define FM3_BT10_PPG_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PPG registers */ +#define FM3_BT10_PWM_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWM registers */ +#define FM3_BT10_RT_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 RT registers */ +#define FM3_BT10_PWC_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWC registers */ +#define FM3_BT11_PPG_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PPG registers */ +#define FM3_BT11_PWM_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWM registers */ +#define FM3_BT11_RT_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 RT registers */ +#define FM3_BT11_PWC_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWC registers */ +#define FM3_BT12_PPG_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PPG registers */ +#define FM3_BT12_PWM_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWM registers */ +#define FM3_BT12_RT_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 RT registers */ +#define FM3_BT12_PWC_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWC registers */ +#define FM3_BT13_PPG_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PPG registers */ +#define FM3_BT13_PWM_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWM registers */ +#define FM3_BT13_RT_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 RT registers */ +#define FM3_BT13_PWC_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWC registers */ +#define FM3_BT14_PPG_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PPG registers */ +#define FM3_BT14_PWM_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWM registers */ +#define FM3_BT14_RT_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 RT registers */ +#define FM3_BT14_PWC_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWC registers */ +#define FM3_BT15_PPG_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PPG registers */ +#define FM3_BT15_PWM_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWM registers */ +#define FM3_BT15_RT_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 RT registers */ +#define FM3_BT15_PWC_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWC registers */ +#define FM3_BTIOSEL8B_BASE (FM3_PERIPH_BASE + 0x25500UL) /* Base Timer I/O selector channel 8 - channel 11 registers */ +#define FM3_BTIOSELCF_BASE (FM3_PERIPH_BASE + 0x25700UL) /* Base Timer I/O selector channel 12 - channel 15 registers */ +#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ +#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ +#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ +#define FM3_QPRC2_BASE (FM3_PERIPH_BASE + 0x26080UL) /* Quad position and revolution counter channel 2 registers */ +#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ +#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ +#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ +#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ +#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ +#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ +#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ +#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ +#define FM3_USBETHERNETCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ +#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ +#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ +#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ +#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ +#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ +#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ +#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ +#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ +#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ +#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ +#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ +#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ +#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ +#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ +#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ +#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ +#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ +#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ +#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ +#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ +#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ +#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ +#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ +#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ +#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ +#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ +#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ +#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ +#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ +#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ +#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ +#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ +#define FM3_MFS_NFC_BASE (FM3_PERIPH_BASE + 0x38800UL) /* MFS Noise Filter Control register */ +#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ +#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ +#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ +#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ +#define FM3_USB1_BASE (FM3_PERIPH_BASE + 0x52100UL) /* USB channel 1 registers */ +#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ +#define FM3_ETHERNET_MAC0_BASE (FM3_PERIPH_BASE + 0x64000UL) /* Ethernet MAC 0 registers */ +#define FM3_ETHERNET_CONTROL_BASE (FM3_PERIPH_BASE + 0x66000UL) /* Ethernet MAC control registers */ +#define FM3_ETHERNET_MAC1_BASE (FM3_PERIPH_BASE + 0x67000UL) /* Ethernet MAC 1 registers */ + +/****************************************************************************** + * Peripheral declaration + ******************************************************************************/ +#define FM3_FLASH_IF ((FM3_FLASH_IF_TypeDef *)FM3_FLASH_IF_BASE) +#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) +#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) +#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) +#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) +#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) +#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) +#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) +#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) +#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) +#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) +#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) +#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) +#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) +#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) +#define FM3_MFT2_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT2_FRT_BASE) +#define FM3_MFT2_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT2_OCU_BASE) +#define FM3_MFT2_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT2_WFG_BASE) +#define FM3_MFT2_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT2_ICU_BASE) +#define FM3_MFT2_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT2_ADCMP_BASE) +#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) +#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) +#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) +#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) +#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) +#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) +#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) +#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) +#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) +#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) +#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) +#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) +#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) +#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) +#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) +#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) +#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) +#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) +#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) +#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) +#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) +#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) +#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) +#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) +#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) +#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) +#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) +#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) +#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) +#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) +#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) +#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) +#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) +#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) +#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) +#define FM3_BT8_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT8_PPG_BASE) +#define FM3_BT8_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT8_PWM_BASE) +#define FM3_BT8_RT ((FM3_BT_RT_TypeDef *)FM3_BT8_RT_BASE) +#define FM3_BT8_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT8_PWC_BASE) +#define FM3_BT9_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT9_PPG_BASE) +#define FM3_BT9_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT9_PWM_BASE) +#define FM3_BT9_RT ((FM3_BT_RT_TypeDef *)FM3_BT9_RT_BASE) +#define FM3_BT9_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT9_PWC_BASE) +#define FM3_BT10_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT10_PPG_BASE) +#define FM3_BT10_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT10_PWM_BASE) +#define FM3_BT10_RT ((FM3_BT_RT_TypeDef *)FM3_BT10_RT_BASE) +#define FM3_BT10_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT10_PWC_BASE) +#define FM3_BT11_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT11_PPG_BASE) +#define FM3_BT11_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT11_PWM_BASE) +#define FM3_BT11_RT ((FM3_BT_RT_TypeDef *)FM3_BT11_RT_BASE) +#define FM3_BT11_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT11_PWC_BASE) +#define FM3_BT12_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT12_PPG_BASE) +#define FM3_BT12_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT12_PWM_BASE) +#define FM3_BT12_RT ((FM3_BT_RT_TypeDef *)FM3_BT12_RT_BASE) +#define FM3_BT12_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT12_PWC_BASE) +#define FM3_BT13_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT13_PPG_BASE) +#define FM3_BT13_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT13_PWM_BASE) +#define FM3_BT13_RT ((FM3_BT_RT_TypeDef *)FM3_BT13_RT_BASE) +#define FM3_BT13_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT13_PWC_BASE) +#define FM3_BT14_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT14_PPG_BASE) +#define FM3_BT14_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT14_PWM_BASE) +#define FM3_BT14_RT ((FM3_BT_RT_TypeDef *)FM3_BT14_RT_BASE) +#define FM3_BT14_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT14_PWC_BASE) +#define FM3_BT15_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT15_PPG_BASE) +#define FM3_BT15_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT15_PWM_BASE) +#define FM3_BT15_RT ((FM3_BT_RT_TypeDef *)FM3_BT15_RT_BASE) +#define FM3_BT15_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT15_PWC_BASE) +#define FM3_BTIOSEL8B ((FM3_BTIOSEL8B_TypeDef *)FM3_BTIOSEL8B_BASE) +#define FM3_BTIOSELCF ((FM3_BTIOSELCF_TypeDef *)FM3_BTIOSELCF_BASE) +#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) +#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) +#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) +#define FM3_QPRC2 ((FM3_QPRC_TypeDef *)FM3_QPRC2_BASE) +#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) +#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) +#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) +#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) +#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) +#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) +#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) +#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) +#define FM3_USBETHERNETCLK ((FM3_USBETHERNETCLK_TypeDef *)FM3_USBETHERNETCLK_BASE) +#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) +#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) +#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) +#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) +#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) +#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) +#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) +#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) +#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) +#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) +#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) +#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) +#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) +#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) +#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) +#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) +#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) +#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) +#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) +#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) +#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) +#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) +#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) +#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) +#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) +#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) +#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) +#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) +#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) +#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) +#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) +#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) +#define FM3_MFS_NFC ((FM3_MFS_NFC_TypeDef *)FM3_MFS_NFC_BASE) +#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) +#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) +#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) +#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) +#define FM3_USB1 ((FM3_USB_TypeDef *)FM3_USB1_BASE) +#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) +#define FM3_ETHERNET_MAC0 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC0_BASE) +#define FM3_ETHERNET_CONTROL ((FM3_ETHERNET_SET_TypeDef *)FM3_ETHERNET_SET_BASE) +#define FM3_ETHERNET_MAC1 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC1_BASE) + +/****************************************************************************** + * Peripheral Bit Band Alias declaration + ******************************************************************************/ + +/* Flash interface registers */ +#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) +#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) +#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) +#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) +#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) +#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) +#define bFM3_FLASH_IF_FSTR_EER *((volatile unsigned int*)(0x42000108UL)) +#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) +#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) +#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) +#define bFM3_FLASH_IF_FBFCR_BE *((volatile unsigned int*)(0x42000280UL)) +#define bFM3_FLASH_IF_FBFCR_BS *((volatile unsigned int*)(0x42000284UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) +#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) + +/* Clock and reset registers */ +#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) +#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) +#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) +#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) +#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) +#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) +#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) +#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) +#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) +#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) +#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) +#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) +#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) +#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) +#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) +#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) +#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) +#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) +#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) +#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) +#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) +#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) +#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) +#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) +#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) +#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) +#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) +#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) +#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) +#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) +#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) +#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) +#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) +#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) +#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) +#define bFM3_CRG_TTC_PSR_TTC0 *((volatile unsigned int*)(0x42200500UL)) +#define bFM3_CRG_TTC_PSR_TTC1 *((volatile unsigned int*)(0x42200504UL)) +#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) +#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) +#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) +#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) +#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) +#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) +#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) +#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) +#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) +#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) +#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) +#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) +#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) +#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) +#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) +#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) +#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) +#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) +#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) +#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) +#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) +#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) +#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) +#define bFM3_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) +#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) +#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) +#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) +#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) +#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) +#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) +#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) +#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) +#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) +#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) +#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) +#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) +#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) +#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) +#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) +#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) +#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) +#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) +#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) +#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) +#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) +#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) +#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) + +/* Hardware watchdog registers */ +#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) +#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) +#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) + +/* Software watchdog registers */ +#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) +#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) +#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) + +/* Dual timer 1/2 registers */ +#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) +#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) +#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) +#define bFM3_DTIM_TIMER1RIS_TIMER1RIS *((volatile unsigned int*)(0x422A0200UL)) +#define bFM3_DTIM_TIMER1MIS_TIMER1MIS *((volatile unsigned int*)(0x422A0280UL)) +#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) +#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) +#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) +#define bFM3_DTIM_TIMER2RIS_TIMER2RIS *((volatile unsigned int*)(0x422A0600UL)) +#define bFM3_DTIM_TIMER2MIS_TIMER2MIS *((volatile unsigned int*)(0x422A0680UL)) + +/* Multifunction Timer unit 0 Free Running Timer registers */ +#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) +#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) +#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) +#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) +#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) +#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) +#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) +#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) +#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) +#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) +#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) +#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) +#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) +#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) +#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) +#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) +#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) +#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) +#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) +#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) +#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) +#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) +#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) +#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) +#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) +#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) +#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) +#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) +#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) +#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) +#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) +#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) +#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) +#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) +#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) +#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) +#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) + +/* Multifunction Timer unit 0 Output Compare Unit registers */ +#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) +#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) +#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) +#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) +#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) +#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) +#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) +#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) +#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) +#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) +#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) +#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) +#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) +#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) +#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) +#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) +#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) +#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) +#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) +#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) +#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) +#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) +#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) +#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) +#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) +#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) +#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) +#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) +#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) +#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) +#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) +#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) +#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) +#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) +#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) +#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) +#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) +#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) +#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) +#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) +#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) + +/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) +#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) +#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) +#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) +#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) +#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) +#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) +#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) +#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) +#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) +#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) +#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) +#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) +#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) +#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) +#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) +#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) +#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) +#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) +#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) +#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) +#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) +#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) +#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) +#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) +#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) +#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) +#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) + +/* Multifunction Timer unit 0 Input Capture Unit registers */ +#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) +#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) +#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) +#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) +#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) +#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) +#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) +#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) +#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) +#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) +#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) +#define bFM3_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42400F18UL)) +#define bFM3_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42400F1CUL)) +#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) +#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) +#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) +#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) +#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) +#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) +#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) +#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) +#define bFM3_MFT0_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42400F98UL)) +#define bFM3_MFT0_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42400F9CUL)) +#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) +#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) + +/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ +#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) +#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) +#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) +#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) +#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) +#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) +#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) + +/* Multifunction Timer unit 1 Free Running Timer registers */ +#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) +#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) +#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) +#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) +#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) +#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) +#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) +#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) +#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) +#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) +#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) +#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) +#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) +#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) +#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) +#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) +#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) +#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) +#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) +#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) +#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) +#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) +#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) +#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) +#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) +#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) +#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) +#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) +#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) +#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) +#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) +#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) +#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) +#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) +#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) +#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) +#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) + +/* Multifunction Timer unit 1 Output Compare Unit registers */ +#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) +#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) +#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) +#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) +#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) +#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) +#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) +#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) +#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) +#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) +#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) +#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) +#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) +#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) +#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) +#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) +#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) +#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) +#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) +#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) +#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) +#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) +#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) +#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) +#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) +#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) +#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) +#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) +#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) +#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) +#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) +#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) +#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) +#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) +#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) +#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) +#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) +#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) +#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) +#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) +#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) + +/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) +#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) +#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) +#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) +#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) +#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) +#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) +#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) +#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) +#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) +#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) +#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) +#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) +#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) +#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) +#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) +#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) +#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) +#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) +#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) +#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) +#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) +#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) +#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) +#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) +#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) +#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) +#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) + +/* Multifunction Timer unit 1 Input Capture Unit registers */ +#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) +#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) +#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) +#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) +#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) +#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) +#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) +#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) +#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) +#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) +#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) +#define bFM3_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42420F18UL)) +#define bFM3_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42420F1CUL)) +#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) +#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) +#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) +#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) +#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) +#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) +#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) +#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) +#define bFM3_MFT1_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42420F98UL)) +#define bFM3_MFT1_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42420F9CUL)) +#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) +#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) + +/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ +#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) +#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) +#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) +#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) +#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) +#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) +#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) + +/* Multifunction Timer unit 2 Free Running Timer registers */ +#define bFM3_MFT2_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42440600UL)) +#define bFM3_MFT2_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42440604UL)) +#define bFM3_MFT2_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42440608UL)) +#define bFM3_MFT2_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4244060CUL)) +#define bFM3_MFT2_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42440610UL)) +#define bFM3_MFT2_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42440614UL)) +#define bFM3_MFT2_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42440618UL)) +#define bFM3_MFT2_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4244061CUL)) +#define bFM3_MFT2_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42440620UL)) +#define bFM3_MFT2_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42440624UL)) +#define bFM3_MFT2_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42440634UL)) +#define bFM3_MFT2_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42440638UL)) +#define bFM3_MFT2_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4244063CUL)) +#define bFM3_MFT2_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42440680UL)) +#define bFM3_MFT2_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42440684UL)) +#define bFM3_MFT2_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42440688UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42440800UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42440804UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42440808UL)) +#define bFM3_MFT2_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4244080CUL)) +#define bFM3_MFT2_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42440810UL)) +#define bFM3_MFT2_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42440814UL)) +#define bFM3_MFT2_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42440818UL)) +#define bFM3_MFT2_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4244081CUL)) +#define bFM3_MFT2_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42440820UL)) +#define bFM3_MFT2_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42440824UL)) +#define bFM3_MFT2_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42440834UL)) +#define bFM3_MFT2_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42440838UL)) +#define bFM3_MFT2_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4244083CUL)) +#define bFM3_MFT2_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42440880UL)) +#define bFM3_MFT2_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42440884UL)) +#define bFM3_MFT2_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42440888UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42440A00UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42440A04UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42440A08UL)) +#define bFM3_MFT2_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42440A0CUL)) +#define bFM3_MFT2_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42440A10UL)) +#define bFM3_MFT2_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42440A14UL)) +#define bFM3_MFT2_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42440A18UL)) +#define bFM3_MFT2_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42440A1CUL)) +#define bFM3_MFT2_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42440A20UL)) +#define bFM3_MFT2_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42440A24UL)) +#define bFM3_MFT2_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42440A34UL)) +#define bFM3_MFT2_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42440A38UL)) +#define bFM3_MFT2_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42440A3CUL)) +#define bFM3_MFT2_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42440A80UL)) +#define bFM3_MFT2_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42440A84UL)) +#define bFM3_MFT2_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42440A88UL)) + +/* Multifunction Timer unit 2 Output Compare Unit registers */ +#define bFM3_MFT2_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42440300UL)) +#define bFM3_MFT2_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42440304UL)) +#define bFM3_MFT2_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42440308UL)) +#define bFM3_MFT2_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4244030CUL)) +#define bFM3_MFT2_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42440310UL)) +#define bFM3_MFT2_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42440314UL)) +#define bFM3_MFT2_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42440318UL)) +#define bFM3_MFT2_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4244031CUL)) +#define bFM3_MFT2_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42440320UL)) +#define bFM3_MFT2_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42440324UL)) +#define bFM3_MFT2_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42440330UL)) +#define bFM3_MFT2_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42440334UL)) +#define bFM3_MFT2_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42440338UL)) +#define bFM3_MFT2_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42440380UL)) +#define bFM3_MFT2_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42440384UL)) +#define bFM3_MFT2_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42440388UL)) +#define bFM3_MFT2_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4244038CUL)) +#define bFM3_MFT2_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42440390UL)) +#define bFM3_MFT2_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42440394UL)) +#define bFM3_MFT2_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42440398UL)) +#define bFM3_MFT2_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4244039CUL)) +#define bFM3_MFT2_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424403A0UL)) +#define bFM3_MFT2_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424403A4UL)) +#define bFM3_MFT2_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424403B0UL)) +#define bFM3_MFT2_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424403B4UL)) +#define bFM3_MFT2_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424403B8UL)) +#define bFM3_MFT2_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42440400UL)) +#define bFM3_MFT2_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42440404UL)) +#define bFM3_MFT2_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42440408UL)) +#define bFM3_MFT2_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4244040CUL)) +#define bFM3_MFT2_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42440410UL)) +#define bFM3_MFT2_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42440414UL)) +#define bFM3_MFT2_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42440418UL)) +#define bFM3_MFT2_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4244041CUL)) +#define bFM3_MFT2_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42440420UL)) +#define bFM3_MFT2_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42440424UL)) +#define bFM3_MFT2_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42440430UL)) +#define bFM3_MFT2_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42440434UL)) +#define bFM3_MFT2_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42440438UL)) +#define bFM3_MFT2_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424404A0UL)) +#define bFM3_MFT2_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424404A4UL)) +#define bFM3_MFT2_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424404A8UL)) +#define bFM3_MFT2_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424404ACUL)) +#define bFM3_MFT2_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424404B0UL)) +#define bFM3_MFT2_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424404B4UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42440B00UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42440B04UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42440B08UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42440B0CUL)) +#define bFM3_MFT2_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42440B10UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42440B14UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42440B18UL)) +#define bFM3_MFT2_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42440B1CUL)) +#define bFM3_MFT2_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42440B20UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42440B24UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42440B28UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42440B2CUL)) +#define bFM3_MFT2_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42440B30UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42440B34UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42440B38UL)) +#define bFM3_MFT2_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42440B3CUL)) +#define bFM3_MFT2_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42440B80UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42440B84UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42440B88UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42440B8CUL)) +#define bFM3_MFT2_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42440B90UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42440B94UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42440B98UL)) +#define bFM3_MFT2_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42440B9CUL)) + +/* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ +#define bFM3_MFT2_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42441180UL)) +#define bFM3_MFT2_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42441184UL)) +#define bFM3_MFT2_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42441188UL)) +#define bFM3_MFT2_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42441198UL)) +#define bFM3_MFT2_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4244119CUL)) +#define bFM3_MFT2_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424411A0UL)) +#define bFM3_MFT2_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424411A4UL)) +#define bFM3_MFT2_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424411A8UL)) +#define bFM3_MFT2_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424411ACUL)) +#define bFM3_MFT2_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424411B0UL)) +#define bFM3_MFT2_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42441200UL)) +#define bFM3_MFT2_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42441204UL)) +#define bFM3_MFT2_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42441208UL)) +#define bFM3_MFT2_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42441218UL)) +#define bFM3_MFT2_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4244121CUL)) +#define bFM3_MFT2_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42441220UL)) +#define bFM3_MFT2_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42441224UL)) +#define bFM3_MFT2_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42441228UL)) +#define bFM3_MFT2_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4244122CUL)) +#define bFM3_MFT2_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42441230UL)) +#define bFM3_MFT2_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42441280UL)) +#define bFM3_MFT2_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42441284UL)) +#define bFM3_MFT2_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42441288UL)) +#define bFM3_MFT2_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42441298UL)) +#define bFM3_MFT2_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4244129CUL)) +#define bFM3_MFT2_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424412A0UL)) +#define bFM3_MFT2_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424412A4UL)) +#define bFM3_MFT2_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424412A8UL)) +#define bFM3_MFT2_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424412ACUL)) +#define bFM3_MFT2_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424412B0UL)) +#define bFM3_MFT2_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42441300UL)) +#define bFM3_MFT2_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42441304UL)) +#define bFM3_MFT2_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42441310UL)) +#define bFM3_MFT2_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42441314UL)) +#define bFM3_MFT2_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42441318UL)) +#define bFM3_MFT2_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4244131CUL)) +#define bFM3_MFT2_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42441320UL)) +#define bFM3_MFT2_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42441324UL)) +#define bFM3_MFT2_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42441328UL)) +#define bFM3_MFT2_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4244132CUL)) +#define bFM3_MFT2_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42441330UL)) +#define bFM3_MFT2_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42441334UL)) +#define bFM3_MFT2_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42441338UL)) +#define bFM3_MFT2_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4244133CUL)) +#define bFM3_MFT2_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42441380UL)) +#define bFM3_MFT2_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42441384UL)) +#define bFM3_MFT2_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42441388UL)) +#define bFM3_MFT2_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4244138CUL)) +#define bFM3_MFT2_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42441390UL)) + +/* Multifunction Timer unit 2 Input Capture Unit registers */ +#define bFM3_MFT2_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42440C00UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42440C04UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42440C08UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42440C0CUL)) +#define bFM3_MFT2_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42440C10UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42440C14UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42440C18UL)) +#define bFM3_MFT2_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42440C1CUL)) +#define bFM3_MFT2_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42440C20UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42440C24UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42440C28UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42440C2CUL)) +#define bFM3_MFT2_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42440C30UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42440C34UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42440C38UL)) +#define bFM3_MFT2_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42440C3CUL)) +#define bFM3_MFT2_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42440F00UL)) +#define bFM3_MFT2_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42440F04UL)) +#define bFM3_MFT2_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42440F08UL)) +#define bFM3_MFT2_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42440F0CUL)) +#define bFM3_MFT2_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42440F10UL)) +#define bFM3_MFT2_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42440F14UL)) +#define bFM3_MFT2_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42440F18UL)) +#define bFM3_MFT2_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42440F1CUL)) +#define bFM3_MFT2_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42440F20UL)) +#define bFM3_MFT2_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42440F24UL)) +#define bFM3_MFT2_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42440F80UL)) +#define bFM3_MFT2_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42440F84UL)) +#define bFM3_MFT2_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42440F88UL)) +#define bFM3_MFT2_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42440F8CUL)) +#define bFM3_MFT2_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42440F90UL)) +#define bFM3_MFT2_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42440F94UL)) +#define bFM3_MFT2_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42440F98UL)) +#define bFM3_MFT2_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42440F9CUL)) +#define bFM3_MFT2_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42440FA0UL)) +#define bFM3_MFT2_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42440FA4UL)) + +/* Multifunction Timer unit 2 ADC Start Compare Unit registers */ +#define bFM3_MFT2_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42441700UL)) +#define bFM3_MFT2_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42441704UL)) +#define bFM3_MFT2_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42441708UL)) +#define bFM3_MFT2_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42441710UL)) +#define bFM3_MFT2_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42441714UL)) +#define bFM3_MFT2_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42441718UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42441780UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42441784UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42441788UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4244178CUL)) +#define bFM3_MFT2_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42441790UL)) +#define bFM3_MFT2_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42441794UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424417A0UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424417A4UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424417A8UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424417ACUL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424417B0UL)) +#define bFM3_MFT2_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424417B4UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42441800UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42441804UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42441808UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4244180CUL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42441810UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42441814UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42441820UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42441824UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42441828UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4244182CUL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42441830UL)) +#define bFM3_MFT2_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42441834UL)) + +/* Multifunction Timer PPG registers */ +#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) +#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) +#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) +#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) +#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) +#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) +#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) +#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) +#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) +#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) +#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) +#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) +#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) +#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) +#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) +#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) +#define bFM3_MFT_PPG_TTCR2_STR2 *((volatile unsigned int*)(0x42480820UL)) +#define bFM3_MFT_PPG_TTCR2_MONI2 *((volatile unsigned int*)(0x42480824UL)) +#define bFM3_MFT_PPG_TTCR2_CS20 *((volatile unsigned int*)(0x42480828UL)) +#define bFM3_MFT_PPG_TTCR2_CS21 *((volatile unsigned int*)(0x4248082CUL)) +#define bFM3_MFT_PPG_TTCR2_TRG16O *((volatile unsigned int*)(0x42480830UL)) +#define bFM3_MFT_PPG_TTCR2_TRG18O *((volatile unsigned int*)(0x42480834UL)) +#define bFM3_MFT_PPG_TTCR2_TRG20O *((volatile unsigned int*)(0x42480838UL)) +#define bFM3_MFT_PPG_TTCR2_TRG22O *((volatile unsigned int*)(0x4248083CUL)) +#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) +#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) +#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) +#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) +#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) +#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) +#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) +#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) +#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) +#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) +#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) +#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) +#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) +#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) +#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) +#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) +#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) +#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) +#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) +#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) +#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) +#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) +#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) +#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) +#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) +#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) +#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) +#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) +#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) +#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) +#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) +#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) +#define bFM3_MFT_PPG_TRG1_PEN16 *((volatile unsigned int*)(0x42482800UL)) +#define bFM3_MFT_PPG_TRG1_PEN17 *((volatile unsigned int*)(0x42482804UL)) +#define bFM3_MFT_PPG_TRG1_PEN18 *((volatile unsigned int*)(0x42482808UL)) +#define bFM3_MFT_PPG_TRG1_PEN19 *((volatile unsigned int*)(0x4248280CUL)) +#define bFM3_MFT_PPG_TRG1_PEN20 *((volatile unsigned int*)(0x42482810UL)) +#define bFM3_MFT_PPG_TRG1_PEN21 *((volatile unsigned int*)(0x42482814UL)) +#define bFM3_MFT_PPG_TRG1_PEN22 *((volatile unsigned int*)(0x42482818UL)) +#define bFM3_MFT_PPG_TRG1_PEN23 *((volatile unsigned int*)(0x4248281CUL)) +#define bFM3_MFT_PPG_REVC1_REV16 *((volatile unsigned int*)(0x42482880UL)) +#define bFM3_MFT_PPG_REVC1_REV17 *((volatile unsigned int*)(0x42482884UL)) +#define bFM3_MFT_PPG_REVC1_REV18 *((volatile unsigned int*)(0x42482888UL)) +#define bFM3_MFT_PPG_REVC1_REV19 *((volatile unsigned int*)(0x4248288CUL)) +#define bFM3_MFT_PPG_REVC1_REV20 *((volatile unsigned int*)(0x42482890UL)) +#define bFM3_MFT_PPG_REVC1_REV21 *((volatile unsigned int*)(0x42482894UL)) +#define bFM3_MFT_PPG_REVC1_REV22 *((volatile unsigned int*)(0x42482898UL)) +#define bFM3_MFT_PPG_REVC1_REV23 *((volatile unsigned int*)(0x4248289CUL)) +#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) +#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) +#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) +#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) +#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) +#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) +#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) +#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) +#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) +#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) +#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) +#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) +#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) +#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) +#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) +#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) +#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) +#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) +#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) +#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) +#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) +#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) +#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) +#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) +#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) +#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) +#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) +#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) +#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) +#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) +#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) +#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) +#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) +#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) +#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) +#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) +#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) +#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) +#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) +#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) +#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) +#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) +#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) +#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) +#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) +#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) +#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) +#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) +#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) +#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) +#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) +#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) +#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) +#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) +#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) +#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) +#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) +#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) +#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) +#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) +#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) +#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) +#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) +#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) +#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) +#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) +#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) +#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) +#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) +#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) +#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) +#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) +#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) +#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) +#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) +#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) +#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) +#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) +#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) +#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) +#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) +#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) +#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) +#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) +#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) +#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) +#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) +#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) +#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) +#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) +#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) +#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) +#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) +#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) +#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) +#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) +#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) +#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) +#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) +#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) +#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) +#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) +#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) +#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) +#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) +#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) +#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) +#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) +#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) +#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) +#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) +#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) +#define bFM3_MFT_PPG_PPGC17_TTRG *((volatile unsigned int*)(0x42486000UL)) +#define bFM3_MFT_PPG_PPGC17_PCS0 *((volatile unsigned int*)(0x4248600CUL)) +#define bFM3_MFT_PPG_PPGC17_PCS1 *((volatile unsigned int*)(0x42486010UL)) +#define bFM3_MFT_PPG_PPGC17_INTM *((volatile unsigned int*)(0x42486014UL)) +#define bFM3_MFT_PPG_PPGC17_PUF *((volatile unsigned int*)(0x42486018UL)) +#define bFM3_MFT_PPG_PPGC17_PIE *((volatile unsigned int*)(0x4248601CUL)) +#define bFM3_MFT_PPG_PPGC16_TTRG *((volatile unsigned int*)(0x42486020UL)) +#define bFM3_MFT_PPG_PPGC16_PCS0 *((volatile unsigned int*)(0x4248602CUL)) +#define bFM3_MFT_PPG_PPGC16_PCS1 *((volatile unsigned int*)(0x42486030UL)) +#define bFM3_MFT_PPG_PPGC16_INTM *((volatile unsigned int*)(0x42486034UL)) +#define bFM3_MFT_PPG_PPGC16_PUF *((volatile unsigned int*)(0x42486038UL)) +#define bFM3_MFT_PPG_PPGC16_PIE *((volatile unsigned int*)(0x4248603CUL)) +#define bFM3_MFT_PPG_PPGC19_TTRG *((volatile unsigned int*)(0x42486080UL)) +#define bFM3_MFT_PPG_PPGC19_PCS0 *((volatile unsigned int*)(0x4248608CUL)) +#define bFM3_MFT_PPG_PPGC19_PCS1 *((volatile unsigned int*)(0x42486090UL)) +#define bFM3_MFT_PPG_PPGC19_INTM *((volatile unsigned int*)(0x42486094UL)) +#define bFM3_MFT_PPG_PPGC19_PUF *((volatile unsigned int*)(0x42486098UL)) +#define bFM3_MFT_PPG_PPGC19_PIE *((volatile unsigned int*)(0x4248609CUL)) +#define bFM3_MFT_PPG_PPGC18_TTRG *((volatile unsigned int*)(0x424860A0UL)) +#define bFM3_MFT_PPG_PPGC18_PCS0 *((volatile unsigned int*)(0x424860ACUL)) +#define bFM3_MFT_PPG_PPGC18_PCS1 *((volatile unsigned int*)(0x424860B0UL)) +#define bFM3_MFT_PPG_PPGC18_INTM *((volatile unsigned int*)(0x424860B4UL)) +#define bFM3_MFT_PPG_PPGC18_PUF *((volatile unsigned int*)(0x424860B8UL)) +#define bFM3_MFT_PPG_PPGC18_PIE *((volatile unsigned int*)(0x424860BCUL)) +#define bFM3_MFT_PPG_GATEC16_EDGE16 *((volatile unsigned int*)(0x42486300UL)) +#define bFM3_MFT_PPG_GATEC16_STRG16 *((volatile unsigned int*)(0x42486304UL)) +#define bFM3_MFT_PPG_GATEC16_EDGE18 *((volatile unsigned int*)(0x42486310UL)) +#define bFM3_MFT_PPG_GATEC16_STRG18 *((volatile unsigned int*)(0x42486314UL)) +#define bFM3_MFT_PPG_PPGC21_TTRG *((volatile unsigned int*)(0x42486800UL)) +#define bFM3_MFT_PPG_PPGC21_PCS0 *((volatile unsigned int*)(0x4248680CUL)) +#define bFM3_MFT_PPG_PPGC21_PCS1 *((volatile unsigned int*)(0x42486810UL)) +#define bFM3_MFT_PPG_PPGC21_INTM *((volatile unsigned int*)(0x42486814UL)) +#define bFM3_MFT_PPG_PPGC21_PUF *((volatile unsigned int*)(0x42486818UL)) +#define bFM3_MFT_PPG_PPGC21_PIE *((volatile unsigned int*)(0x4248681CUL)) +#define bFM3_MFT_PPG_PPGC20_TTRG *((volatile unsigned int*)(0x42486820UL)) +#define bFM3_MFT_PPG_PPGC20_PCS0 *((volatile unsigned int*)(0x4248682CUL)) +#define bFM3_MFT_PPG_PPGC20_PCS1 *((volatile unsigned int*)(0x42486830UL)) +#define bFM3_MFT_PPG_PPGC20_INTM *((volatile unsigned int*)(0x42486834UL)) +#define bFM3_MFT_PPG_PPGC20_PUF *((volatile unsigned int*)(0x42486838UL)) +#define bFM3_MFT_PPG_PPGC20_PIE *((volatile unsigned int*)(0x4248683CUL)) +#define bFM3_MFT_PPG_PPGC23_TTRG *((volatile unsigned int*)(0x42486880UL)) +#define bFM3_MFT_PPG_PPGC23_PCS0 *((volatile unsigned int*)(0x4248688CUL)) +#define bFM3_MFT_PPG_PPGC23_PCS1 *((volatile unsigned int*)(0x42486890UL)) +#define bFM3_MFT_PPG_PPGC23_INTM *((volatile unsigned int*)(0x42486894UL)) +#define bFM3_MFT_PPG_PPGC23_PUF *((volatile unsigned int*)(0x42486898UL)) +#define bFM3_MFT_PPG_PPGC23_PIE *((volatile unsigned int*)(0x4248689CUL)) +#define bFM3_MFT_PPG_PPGC22_TTRG *((volatile unsigned int*)(0x424868A0UL)) +#define bFM3_MFT_PPG_PPGC22_PCS0 *((volatile unsigned int*)(0x424868ACUL)) +#define bFM3_MFT_PPG_PPGC22_PCS1 *((volatile unsigned int*)(0x424868B0UL)) +#define bFM3_MFT_PPG_PPGC22_INTM *((volatile unsigned int*)(0x424868B4UL)) +#define bFM3_MFT_PPG_PPGC22_PUF *((volatile unsigned int*)(0x424868B8UL)) +#define bFM3_MFT_PPG_PPGC22_PIE *((volatile unsigned int*)(0x424868BCUL)) +#define bFM3_MFT_PPG_GATEC20_EDGE20 *((volatile unsigned int*)(0x42486B00UL)) +#define bFM3_MFT_PPG_GATEC20_STRG20 *((volatile unsigned int*)(0x42486B04UL)) +#define bFM3_MFT_PPG_GATEC20_EDGE22 *((volatile unsigned int*)(0x42486B10UL)) +#define bFM3_MFT_PPG_GATEC20_STRG22 *((volatile unsigned int*)(0x42486B14UL)) + +/* Base Timer 0 PPG registers */ +#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWM registers */ +#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) +#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) +#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) +#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 RT registers */ +#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) +#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) +#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 0 PWC registers */ +#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) +#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) +#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) +#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) +#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) +#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) +#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) +#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) +#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) +#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) +#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) +#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) +#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) +#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) +#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) + +/* Base Timer 1 PPG registers */ +#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWM registers */ +#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) +#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) +#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) +#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 RT registers */ +#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) +#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) +#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 1 PWC registers */ +#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) +#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) +#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) +#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) +#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) +#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) +#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) +#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) +#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) +#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) +#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) +#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) +#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) +#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) +#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) + +/* Base Timer 2 PPG registers */ +#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWM registers */ +#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) +#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) +#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) +#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 RT registers */ +#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) +#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) +#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 2 PWC registers */ +#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) +#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) +#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) +#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) +#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) +#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) +#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) +#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) +#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) +#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) +#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) +#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) +#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) +#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) +#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) + +/* Base Timer 3 PPG registers */ +#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWM registers */ +#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) +#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) +#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) +#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 RT registers */ +#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) +#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) +#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 3 PWC registers */ +#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) +#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) +#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) +#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) +#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) +#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) +#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) +#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) +#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) +#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) +#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) +#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) +#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) +#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) +#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) + +/* Base Timer 4 PPG registers */ +#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWM registers */ +#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) +#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) +#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) +#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 RT registers */ +#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) +#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) +#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 4 PWC registers */ +#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) +#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) +#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) +#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) +#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) +#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) +#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) +#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) +#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) +#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) +#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) +#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) +#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) +#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) +#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) + +/* Base Timer 5 PPG registers */ +#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWM registers */ +#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) +#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) +#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) +#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 RT registers */ +#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) +#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) +#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 5 PWC registers */ +#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) +#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) +#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) +#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) +#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) +#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) +#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) +#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) +#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) +#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) +#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) +#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) +#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) +#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) +#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) + +/* Base Timer 6 PPG registers */ +#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWM registers */ +#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) +#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) +#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) +#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 RT registers */ +#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) +#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) +#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 6 PWC registers */ +#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) +#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) +#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) +#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) +#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) +#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) +#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) +#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) +#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) +#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) +#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) +#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) +#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) +#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) +#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) + +/* Base Timer 7 PPG registers */ +#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWM registers */ +#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) +#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) +#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) +#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 RT registers */ +#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) +#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) +#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer 7 PWC registers */ +#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) +#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) +#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) +#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) +#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) +#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) +#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) +#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) +#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) +#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) +#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) +#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) +#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) +#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) +#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) + +/* Base Timer I/O selector channel 0 - channel 3 registers */ +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) +#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) + +/* Base Timer I/O selector channel 4 - channel 7 registers */ +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) +#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) + +/* Base Timer 8 PPG registers */ +#define bFM3_BT8_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM3_BT8_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM3_BT8_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM3_BT8_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) +#define bFM3_BT8_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 PWM registers */ +#define bFM3_BT8_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM3_BT8_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM3_BT8_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM3_BT8_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) +#define bFM3_BT8_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8204UL)) +#define bFM3_BT8_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8214UL)) +#define bFM3_BT8_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 RT registers */ +#define bFM3_BT8_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) +#define bFM3_BT8_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) +#define bFM3_BT8_RT_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) +#define bFM3_BT8_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_RT_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_RT_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_RT_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_RT_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 8 PWC registers */ +#define bFM3_BT8_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) +#define bFM3_BT8_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) +#define bFM3_BT8_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) +#define bFM3_BT8_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) +#define bFM3_BT8_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) +#define bFM3_BT8_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A81A8UL)) +#define bFM3_BT8_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) +#define bFM3_BT8_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) +#define bFM3_BT8_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) +#define bFM3_BT8_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8200UL)) +#define bFM3_BT8_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8208UL)) +#define bFM3_BT8_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8210UL)) +#define bFM3_BT8_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8218UL)) +#define bFM3_BT8_PWC_STC_ERR *((volatile unsigned int*)(0x424A821CUL)) +#define bFM3_BT8_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) + +/* Base Timer 9 PPG registers */ +#define bFM3_BT9_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM3_BT9_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM3_BT9_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM3_BT9_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) +#define bFM3_BT9_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 PWM registers */ +#define bFM3_BT9_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM3_BT9_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM3_BT9_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM3_BT9_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) +#define bFM3_BT9_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8A04UL)) +#define bFM3_BT9_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8A14UL)) +#define bFM3_BT9_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 RT registers */ +#define bFM3_BT9_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) +#define bFM3_BT9_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) +#define bFM3_BT9_RT_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) +#define bFM3_BT9_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_RT_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_RT_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_RT_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_RT_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 9 PWC registers */ +#define bFM3_BT9_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) +#define bFM3_BT9_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) +#define bFM3_BT9_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) +#define bFM3_BT9_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) +#define bFM3_BT9_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) +#define bFM3_BT9_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A89A8UL)) +#define bFM3_BT9_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) +#define bFM3_BT9_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) +#define bFM3_BT9_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) +#define bFM3_BT9_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8A00UL)) +#define bFM3_BT9_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8A08UL)) +#define bFM3_BT9_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8A10UL)) +#define bFM3_BT9_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8A18UL)) +#define bFM3_BT9_PWC_STC_ERR *((volatile unsigned int*)(0x424A8A1CUL)) +#define bFM3_BT9_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) + +/* Base Timer 10 PPG registers */ +#define bFM3_BT10_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM3_BT10_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM3_BT10_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM3_BT10_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) +#define bFM3_BT10_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 PWM registers */ +#define bFM3_BT10_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM3_BT10_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM3_BT10_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM3_BT10_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) +#define bFM3_BT10_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9204UL)) +#define bFM3_BT10_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9214UL)) +#define bFM3_BT10_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 RT registers */ +#define bFM3_BT10_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) +#define bFM3_BT10_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) +#define bFM3_BT10_RT_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) +#define bFM3_BT10_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_RT_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_RT_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_RT_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_RT_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 10 PWC registers */ +#define bFM3_BT10_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) +#define bFM3_BT10_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) +#define bFM3_BT10_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) +#define bFM3_BT10_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) +#define bFM3_BT10_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) +#define bFM3_BT10_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A91A8UL)) +#define bFM3_BT10_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) +#define bFM3_BT10_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) +#define bFM3_BT10_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) +#define bFM3_BT10_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9200UL)) +#define bFM3_BT10_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9208UL)) +#define bFM3_BT10_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9210UL)) +#define bFM3_BT10_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9218UL)) +#define bFM3_BT10_PWC_STC_ERR *((volatile unsigned int*)(0x424A921CUL)) +#define bFM3_BT10_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) + +/* Base Timer 11 PPG registers */ +#define bFM3_BT11_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM3_BT11_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM3_BT11_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM3_BT11_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) +#define bFM3_BT11_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 PWM registers */ +#define bFM3_BT11_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM3_BT11_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM3_BT11_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM3_BT11_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) +#define bFM3_BT11_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9A04UL)) +#define bFM3_BT11_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9A14UL)) +#define bFM3_BT11_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 RT registers */ +#define bFM3_BT11_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) +#define bFM3_BT11_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) +#define bFM3_BT11_RT_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) +#define bFM3_BT11_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_RT_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_RT_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_RT_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_RT_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 11 PWC registers */ +#define bFM3_BT11_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) +#define bFM3_BT11_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) +#define bFM3_BT11_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) +#define bFM3_BT11_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) +#define bFM3_BT11_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) +#define bFM3_BT11_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A99A8UL)) +#define bFM3_BT11_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) +#define bFM3_BT11_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) +#define bFM3_BT11_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) +#define bFM3_BT11_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9A00UL)) +#define bFM3_BT11_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9A08UL)) +#define bFM3_BT11_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9A10UL)) +#define bFM3_BT11_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9A18UL)) +#define bFM3_BT11_PWC_STC_ERR *((volatile unsigned int*)(0x424A9A1CUL)) +#define bFM3_BT11_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) + +/* Base Timer 12 PPG registers */ +#define bFM3_BT12_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM3_BT12_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM3_BT12_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM3_BT12_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) +#define bFM3_BT12_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_PPG_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_PPG_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_PPG_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_PPG_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 PWM registers */ +#define bFM3_BT12_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM3_BT12_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM3_BT12_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM3_BT12_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) +#define bFM3_BT12_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_PWM_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_PWM_STC_DTIR *((volatile unsigned int*)(0x424AC204UL)) +#define bFM3_BT12_PWM_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_PWM_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_PWM_STC_DTIE *((volatile unsigned int*)(0x424AC214UL)) +#define bFM3_BT12_PWM_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 RT registers */ +#define bFM3_BT12_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) +#define bFM3_BT12_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) +#define bFM3_BT12_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) +#define bFM3_BT12_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_RT_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_RT_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_RT_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_RT_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 12 PWC registers */ +#define bFM3_BT12_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) +#define bFM3_BT12_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) +#define bFM3_BT12_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) +#define bFM3_BT12_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) +#define bFM3_BT12_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) +#define bFM3_BT12_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC1A8UL)) +#define bFM3_BT12_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) +#define bFM3_BT12_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) +#define bFM3_BT12_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) +#define bFM3_BT12_PWC_STC_OVIR *((volatile unsigned int*)(0x424AC200UL)) +#define bFM3_BT12_PWC_STC_EDIR *((volatile unsigned int*)(0x424AC208UL)) +#define bFM3_BT12_PWC_STC_OVIE *((volatile unsigned int*)(0x424AC210UL)) +#define bFM3_BT12_PWC_STC_EDIE *((volatile unsigned int*)(0x424AC218UL)) +#define bFM3_BT12_PWC_STC_ERR *((volatile unsigned int*)(0x424AC21CUL)) +#define bFM3_BT12_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) + +/* Base Timer 13 PPG registers */ +#define bFM3_BT13_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM3_BT13_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM3_BT13_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM3_BT13_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) +#define bFM3_BT13_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_PPG_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_PPG_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_PPG_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_PPG_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 PWM registers */ +#define bFM3_BT13_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM3_BT13_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM3_BT13_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM3_BT13_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) +#define bFM3_BT13_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_PWM_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_PWM_STC_DTIR *((volatile unsigned int*)(0x424ACA04UL)) +#define bFM3_BT13_PWM_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_PWM_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_PWM_STC_DTIE *((volatile unsigned int*)(0x424ACA14UL)) +#define bFM3_BT13_PWM_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 RT registers */ +#define bFM3_BT13_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) +#define bFM3_BT13_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) +#define bFM3_BT13_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) +#define bFM3_BT13_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_RT_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_RT_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_RT_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_RT_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 13 PWC registers */ +#define bFM3_BT13_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) +#define bFM3_BT13_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) +#define bFM3_BT13_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) +#define bFM3_BT13_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) +#define bFM3_BT13_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) +#define bFM3_BT13_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC9A8UL)) +#define bFM3_BT13_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) +#define bFM3_BT13_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) +#define bFM3_BT13_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) +#define bFM3_BT13_PWC_STC_OVIR *((volatile unsigned int*)(0x424ACA00UL)) +#define bFM3_BT13_PWC_STC_EDIR *((volatile unsigned int*)(0x424ACA08UL)) +#define bFM3_BT13_PWC_STC_OVIE *((volatile unsigned int*)(0x424ACA10UL)) +#define bFM3_BT13_PWC_STC_EDIE *((volatile unsigned int*)(0x424ACA18UL)) +#define bFM3_BT13_PWC_STC_ERR *((volatile unsigned int*)(0x424ACA1CUL)) +#define bFM3_BT13_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) + +/* Base Timer 14 PPG registers */ +#define bFM3_BT14_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM3_BT14_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM3_BT14_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM3_BT14_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) +#define bFM3_BT14_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_PPG_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_PPG_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_PPG_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_PPG_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 PWM registers */ +#define bFM3_BT14_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM3_BT14_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM3_BT14_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM3_BT14_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) +#define bFM3_BT14_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_PWM_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_PWM_STC_DTIR *((volatile unsigned int*)(0x424AD204UL)) +#define bFM3_BT14_PWM_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_PWM_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_PWM_STC_DTIE *((volatile unsigned int*)(0x424AD214UL)) +#define bFM3_BT14_PWM_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 RT registers */ +#define bFM3_BT14_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) +#define bFM3_BT14_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) +#define bFM3_BT14_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) +#define bFM3_BT14_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_RT_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_RT_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_RT_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_RT_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 14 PWC registers */ +#define bFM3_BT14_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) +#define bFM3_BT14_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) +#define bFM3_BT14_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) +#define bFM3_BT14_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) +#define bFM3_BT14_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) +#define bFM3_BT14_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD1A8UL)) +#define bFM3_BT14_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) +#define bFM3_BT14_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) +#define bFM3_BT14_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) +#define bFM3_BT14_PWC_STC_OVIR *((volatile unsigned int*)(0x424AD200UL)) +#define bFM3_BT14_PWC_STC_EDIR *((volatile unsigned int*)(0x424AD208UL)) +#define bFM3_BT14_PWC_STC_OVIE *((volatile unsigned int*)(0x424AD210UL)) +#define bFM3_BT14_PWC_STC_EDIE *((volatile unsigned int*)(0x424AD218UL)) +#define bFM3_BT14_PWC_STC_ERR *((volatile unsigned int*)(0x424AD21CUL)) +#define bFM3_BT14_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) + +/* Base Timer 15 PPG registers */ +#define bFM3_BT15_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM3_BT15_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM3_BT15_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM3_BT15_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) +#define bFM3_BT15_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_PPG_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_PPG_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_PPG_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_PPG_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 PWM registers */ +#define bFM3_BT15_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM3_BT15_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM3_BT15_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM3_BT15_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) +#define bFM3_BT15_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_PWM_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_PWM_STC_DTIR *((volatile unsigned int*)(0x424ADA04UL)) +#define bFM3_BT15_PWM_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_PWM_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_PWM_STC_DTIE *((volatile unsigned int*)(0x424ADA14UL)) +#define bFM3_BT15_PWM_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 RT registers */ +#define bFM3_BT15_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) +#define bFM3_BT15_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) +#define bFM3_BT15_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) +#define bFM3_BT15_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_RT_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_RT_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_RT_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_RT_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer 15 PWC registers */ +#define bFM3_BT15_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) +#define bFM3_BT15_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) +#define bFM3_BT15_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) +#define bFM3_BT15_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) +#define bFM3_BT15_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) +#define bFM3_BT15_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD9A8UL)) +#define bFM3_BT15_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) +#define bFM3_BT15_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) +#define bFM3_BT15_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) +#define bFM3_BT15_PWC_STC_OVIR *((volatile unsigned int*)(0x424ADA00UL)) +#define bFM3_BT15_PWC_STC_EDIR *((volatile unsigned int*)(0x424ADA08UL)) +#define bFM3_BT15_PWC_STC_OVIE *((volatile unsigned int*)(0x424ADA10UL)) +#define bFM3_BT15_PWC_STC_EDIE *((volatile unsigned int*)(0x424ADA18UL)) +#define bFM3_BT15_PWC_STC_ERR *((volatile unsigned int*)(0x424ADA1CUL)) +#define bFM3_BT15_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) + +/* Base Timer I/O selector channel 8 - channel 11 registers */ +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_0 *((volatile unsigned int*)(0x424AA020UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_1 *((volatile unsigned int*)(0x424AA024UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_2 *((volatile unsigned int*)(0x424AA028UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_3 *((volatile unsigned int*)(0x424AA02CUL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_0 *((volatile unsigned int*)(0x424AA030UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_1 *((volatile unsigned int*)(0x424AA034UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_2 *((volatile unsigned int*)(0x424AA038UL)) +#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_3 *((volatile unsigned int*)(0x424AA03CUL)) + +/* Base Timer I/O selector channel 12 - channel 15 registers */ +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_0 *((volatile unsigned int*)(0x424AE020UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_1 *((volatile unsigned int*)(0x424AE024UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_2 *((volatile unsigned int*)(0x424AE028UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_3 *((volatile unsigned int*)(0x424AE02CUL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_0 *((volatile unsigned int*)(0x424AE030UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_1 *((volatile unsigned int*)(0x424AE034UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_2 *((volatile unsigned int*)(0x424AE038UL)) +#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_3 *((volatile unsigned int*)(0x424AE03CUL)) + +/* Software based Simulation Startup (Base Timer) register */ +#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) +#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) +#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) +#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) +#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) +#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) +#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) +#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) +#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) +#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) +#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) +#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) +#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) +#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) +#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) +#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) + +/* Quad position and revolution counter channel 0 registers */ +#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) +#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) +#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) +#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) +#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) +#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) +#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) +#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) +#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) +#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) +#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) +#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) +#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) +#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) +#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) +#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) +#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) +#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) +#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) +#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) +#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) +#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) +#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) +#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) +#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) +#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) +#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) +#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) +#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) +#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) +#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) +#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) +#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) + +/* Quad position and revolution counter channel 1 registers */ +#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) +#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) +#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) +#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) +#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) +#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) +#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) +#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) +#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) +#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) +#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) +#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) +#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) +#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) +#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) +#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) +#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) +#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) +#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) +#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) +#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) +#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) +#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) +#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) +#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) +#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) +#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) +#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) +#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) +#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) +#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) +#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) +#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) + +/* Quad position and revolution counter channel 2 registers */ +#define bFM3_QPRC2_QICR_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) +#define bFM3_QPRC2_QICR_QPCMF *((volatile unsigned int*)(0x424C1284UL)) +#define bFM3_QPRC2_QICR_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) +#define bFM3_QPRC2_QICR_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) +#define bFM3_QPRC2_QICR_OUZIE *((volatile unsigned int*)(0x424C1290UL)) +#define bFM3_QPRC2_QICR_UFDF *((volatile unsigned int*)(0x424C1294UL)) +#define bFM3_QPRC2_QICR_OFDF *((volatile unsigned int*)(0x424C1298UL)) +#define bFM3_QPRC2_QICR_ZIIF *((volatile unsigned int*)(0x424C129CUL)) +#define bFM3_QPRC2_QICR_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) +#define bFM3_QPRC2_QICR_CDCF *((volatile unsigned int*)(0x424C12A4UL)) +#define bFM3_QPRC2_QICR_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) +#define bFM3_QPRC2_QICR_DIROU *((volatile unsigned int*)(0x424C12ACUL)) +#define bFM3_QPRC2_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) +#define bFM3_QPRC2_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) +#define bFM3_QPRC2_QICRL_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) +#define bFM3_QPRC2_QICRL_QPCMF *((volatile unsigned int*)(0x424C1284UL)) +#define bFM3_QPRC2_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) +#define bFM3_QPRC2_QICRL_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) +#define bFM3_QPRC2_QICRL_OUZIE *((volatile unsigned int*)(0x424C1290UL)) +#define bFM3_QPRC2_QICRL_UFDF *((volatile unsigned int*)(0x424C1294UL)) +#define bFM3_QPRC2_QICRL_OFDF *((volatile unsigned int*)(0x424C1298UL)) +#define bFM3_QPRC2_QICRL_ZIIF *((volatile unsigned int*)(0x424C129CUL)) +#define bFM3_QPRC2_QICRH_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) +#define bFM3_QPRC2_QICRH_CDCF *((volatile unsigned int*)(0x424C12A4UL)) +#define bFM3_QPRC2_QICRH_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) +#define bFM3_QPRC2_QICRH_DIROU *((volatile unsigned int*)(0x424C12ACUL)) +#define bFM3_QPRC2_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) +#define bFM3_QPRC2_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) +#define bFM3_QPRC2_QCR_PCM0 *((volatile unsigned int*)(0x424C1300UL)) +#define bFM3_QPRC2_QCR_PCM1 *((volatile unsigned int*)(0x424C1304UL)) +#define bFM3_QPRC2_QCR_RCM0 *((volatile unsigned int*)(0x424C1308UL)) +#define bFM3_QPRC2_QCR_RCM1 *((volatile unsigned int*)(0x424C130CUL)) +#define bFM3_QPRC2_QCR_PSTP *((volatile unsigned int*)(0x424C1310UL)) +#define bFM3_QPRC2_QCR_CGSC *((volatile unsigned int*)(0x424C1314UL)) +#define bFM3_QPRC2_QCR_RSEL *((volatile unsigned int*)(0x424C1318UL)) +#define bFM3_QPRC2_QCR_SWAP *((volatile unsigned int*)(0x424C131CUL)) +#define bFM3_QPRC2_QCR_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) +#define bFM3_QPRC2_QCR_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) +#define bFM3_QPRC2_QCR_AES0 *((volatile unsigned int*)(0x424C1328UL)) +#define bFM3_QPRC2_QCR_AES1 *((volatile unsigned int*)(0x424C132CUL)) +#define bFM3_QPRC2_QCR_BES0 *((volatile unsigned int*)(0x424C1330UL)) +#define bFM3_QPRC2_QCR_BES1 *((volatile unsigned int*)(0x424C1334UL)) +#define bFM3_QPRC2_QCR_CGE0 *((volatile unsigned int*)(0x424C1338UL)) +#define bFM3_QPRC2_QCR_CGE1 *((volatile unsigned int*)(0x424C133CUL)) +#define bFM3_QPRC2_QCRL_PCM0 *((volatile unsigned int*)(0x424C1300UL)) +#define bFM3_QPRC2_QCRL_PCM1 *((volatile unsigned int*)(0x424C1304UL)) +#define bFM3_QPRC2_QCRL_RCM0 *((volatile unsigned int*)(0x424C1308UL)) +#define bFM3_QPRC2_QCRL_RCM1 *((volatile unsigned int*)(0x424C130CUL)) +#define bFM3_QPRC2_QCRL_PSTP *((volatile unsigned int*)(0x424C1310UL)) +#define bFM3_QPRC2_QCRL_CGSC *((volatile unsigned int*)(0x424C1314UL)) +#define bFM3_QPRC2_QCRL_RSEL *((volatile unsigned int*)(0x424C1318UL)) +#define bFM3_QPRC2_QCRL_SWAP *((volatile unsigned int*)(0x424C131CUL)) +#define bFM3_QPRC2_QCRH_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) +#define bFM3_QPRC2_QCRH_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) +#define bFM3_QPRC2_QCRH_AES0 *((volatile unsigned int*)(0x424C1328UL)) +#define bFM3_QPRC2_QCRH_AES1 *((volatile unsigned int*)(0x424C132CUL)) +#define bFM3_QPRC2_QCRH_BES0 *((volatile unsigned int*)(0x424C1330UL)) +#define bFM3_QPRC2_QCRH_BES1 *((volatile unsigned int*)(0x424C1334UL)) +#define bFM3_QPRC2_QCRH_CGE0 *((volatile unsigned int*)(0x424C1338UL)) +#define bFM3_QPRC2_QCRH_CGE1 *((volatile unsigned int*)(0x424C133CUL)) +#define bFM3_QPRC2_QECR_ORNGMD *((volatile unsigned int*)(0x424C1380UL)) +#define bFM3_QPRC2_QECR_ORNGF *((volatile unsigned int*)(0x424C1384UL)) +#define bFM3_QPRC2_QECR_ORNGIE *((volatile unsigned int*)(0x424C1388UL)) + +/* 12-bit ADC unit 0 registers */ +#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) +#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) +#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) +#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) +#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) +#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) +#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) +#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) +#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) +#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) +#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) +#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) +#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) +#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) +#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) +#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) +#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) +#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) +#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) +#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) +#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) +#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) +#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) +#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) +#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) +#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) +#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) +#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) +#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) +#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) +#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) +#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) +#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) +#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) +#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) +#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) +#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) +#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) +#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) +#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) +#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) +#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) +#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) +#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) +#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) +#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) +#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) +#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) +#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) +#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) +#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) +#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) +#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) +#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) +#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) +#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) +#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) +#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) +#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) +#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) +#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) +#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) +#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) +#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) +#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) +#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) +#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) +#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) +#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) +#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) +#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) +#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) +#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) +#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) +#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) +#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) +#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) +#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) +#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) +#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) +#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) +#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) +#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) +#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) +#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) +#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) +#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) +#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) +#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) +#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) +#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) +#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) +#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) +#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) +#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) +#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) +#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) +#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) +#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) +#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) +#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) +#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) +#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) +#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) +#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) +#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) +#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) +#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) +#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) +#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) +#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) +#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) +#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) +#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) +#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) +#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) +#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) +#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) +#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) +#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) +#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) +#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) +#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) +#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) +#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) +#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) +#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) +#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) +#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) +#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) +#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) +#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) +#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) +#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) +#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) +#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) +#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) +#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) +#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) +#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) +#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) +#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) +#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) +#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) +#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) +#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) +#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) +#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) +#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) +#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) +#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) +#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) +#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) +#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) +#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) +#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) +#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) +#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) +#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) +#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) +#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) +#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) +#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) +#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) +#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) +#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) +#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) +#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) +#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) +#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) +#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) +#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) +#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) +#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) +#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) +#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) +#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) +#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) +#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) +#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) +#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) +#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) +#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) +#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) +#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) +#define bFM3_ADC0_ADCT_CT3 *((volatile unsigned int*)(0x424E068CUL)) +#define bFM3_ADC0_ADCT_CT4 *((volatile unsigned int*)(0x424E0690UL)) +#define bFM3_ADC0_ADCT_CT5 *((volatile unsigned int*)(0x424E0694UL)) +#define bFM3_ADC0_ADCT_CT6 *((volatile unsigned int*)(0x424E0698UL)) +#define bFM3_ADC0_ADCT_CT7 *((volatile unsigned int*)(0x424E069CUL)) +#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) +#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) +#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) +#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) +#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) +#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) +#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) +#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) +#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) +#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) +#define bFM3_ADC0_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E0790UL)) +#define bFM3_ADC0_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E0794UL)) + +/* 12-bit ADC unit 1 registers */ +#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) +#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) +#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) +#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) +#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) +#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) +#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) +#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) +#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) +#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) +#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) +#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) +#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) +#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) +#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) +#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) +#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) +#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) +#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) +#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) +#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) +#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) +#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) +#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) +#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) +#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) +#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) +#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) +#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) +#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) +#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) +#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) +#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) +#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) +#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) +#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) +#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) +#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) +#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) +#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) +#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) +#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) +#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) +#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) +#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) +#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) +#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) +#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) +#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) +#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) +#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) +#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) +#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) +#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) +#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) +#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) +#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) +#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) +#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) +#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) +#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) +#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) +#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) +#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) +#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) +#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) +#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) +#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) +#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) +#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) +#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) +#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) +#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) +#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) +#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) +#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) +#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) +#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) +#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) +#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) +#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) +#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) +#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) +#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) +#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) +#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) +#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) +#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) +#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) +#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) +#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) +#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) +#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) +#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) +#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) +#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) +#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) +#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) +#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) +#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) +#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) +#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) +#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) +#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) +#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) +#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) +#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) +#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) +#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) +#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) +#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) +#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) +#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) +#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) +#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) +#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) +#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) +#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) +#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) +#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) +#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) +#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) +#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) +#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) +#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) +#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) +#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) +#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) +#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) +#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) +#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) +#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) +#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) +#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) +#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) +#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) +#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) +#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) +#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) +#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) +#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) +#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) +#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) +#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) +#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) +#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) +#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) +#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) +#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) +#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) +#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) +#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) +#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) +#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) +#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) +#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) +#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) +#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) +#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) +#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) +#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) +#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) +#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) +#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) +#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) +#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) +#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) +#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) +#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) +#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) +#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) +#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) +#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) +#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) +#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) +#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) +#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) +#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) +#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) +#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) +#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) +#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) +#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) +#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) +#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) +#define bFM3_ADC1_ADCT_CT3 *((volatile unsigned int*)(0x424E268CUL)) +#define bFM3_ADC1_ADCT_CT4 *((volatile unsigned int*)(0x424E2690UL)) +#define bFM3_ADC1_ADCT_CT5 *((volatile unsigned int*)(0x424E2694UL)) +#define bFM3_ADC1_ADCT_CT6 *((volatile unsigned int*)(0x424E2698UL)) +#define bFM3_ADC1_ADCT_CT7 *((volatile unsigned int*)(0x424E269CUL)) +#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) +#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) +#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) +#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) +#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) +#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) +#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) +#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) +#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) +#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) +#define bFM3_ADC1_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E2790UL)) +#define bFM3_ADC1_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E2794UL)) + +/* 12-bit ADC unit 2 registers */ +#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) +#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) +#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) +#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) +#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) +#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) +#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) +#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) +#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) +#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) +#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) +#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) +#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) +#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) +#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) +#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) +#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) +#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) +#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) +#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) +#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) +#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) +#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) +#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) +#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) +#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) +#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) +#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) +#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) +#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) +#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) +#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) +#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) +#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) +#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) +#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) +#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) +#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) +#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) +#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) +#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) +#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) +#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) +#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) +#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) +#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) +#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) +#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) +#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) +#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) +#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) +#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) +#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) +#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) +#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) +#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) +#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) +#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) +#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) +#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) +#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) +#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) +#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) +#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) +#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) +#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) +#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) +#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) +#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) +#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) +#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) +#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) +#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) +#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) +#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) +#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) +#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) +#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) +#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) +#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) +#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) +#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) +#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) +#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) +#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) +#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) +#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) +#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) +#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) +#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) +#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) +#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) +#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) +#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) +#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) +#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) +#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) +#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) +#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) +#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) +#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) +#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) +#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) +#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) +#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) +#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) +#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) +#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) +#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) +#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) +#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) +#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) +#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) +#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) +#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) +#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) +#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) +#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) +#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) +#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) +#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) +#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) +#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) +#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) +#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) +#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) +#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) +#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) +#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) +#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) +#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) +#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) +#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) +#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) +#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) +#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) +#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) +#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) +#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) +#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) +#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) +#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) +#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) +#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) +#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) +#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) +#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) +#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) +#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) +#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) +#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) +#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) +#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) +#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) +#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) +#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) +#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) +#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) +#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) +#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) +#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) +#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) +#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) +#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) +#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) +#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) +#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) +#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) +#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) +#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) +#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) +#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) +#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) +#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) +#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) +#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) +#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) +#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) +#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) +#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) +#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) +#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) +#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) +#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) +#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) +#define bFM3_ADC2_ADCT_CT3 *((volatile unsigned int*)(0x424E468CUL)) +#define bFM3_ADC2_ADCT_CT4 *((volatile unsigned int*)(0x424E4690UL)) +#define bFM3_ADC2_ADCT_CT5 *((volatile unsigned int*)(0x424E4694UL)) +#define bFM3_ADC2_ADCT_CT6 *((volatile unsigned int*)(0x424E4698UL)) +#define bFM3_ADC2_ADCT_CT7 *((volatile unsigned int*)(0x424E469CUL)) +#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) +#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) +#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) +#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) +#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) +#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) +#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) +#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) +#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) +#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) +#define bFM3_ADC2_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E4790UL)) +#define bFM3_ADC2_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E4794UL)) + +/* CR trimming registers */ +#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) +#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) +#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) + +/* External interrupt registers */ +#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) +#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) +#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) +#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) +#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) +#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) +#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) +#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) +#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) +#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) +#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) +#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) +#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) +#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) +#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) +#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) +#define bFM3_EXTI_ENIR_EN16 *((volatile unsigned int*)(0x42600040UL)) +#define bFM3_EXTI_ENIR_EN17 *((volatile unsigned int*)(0x42600044UL)) +#define bFM3_EXTI_ENIR_EN18 *((volatile unsigned int*)(0x42600048UL)) +#define bFM3_EXTI_ENIR_EN19 *((volatile unsigned int*)(0x4260004CUL)) +#define bFM3_EXTI_ENIR_EN20 *((volatile unsigned int*)(0x42600050UL)) +#define bFM3_EXTI_ENIR_EN21 *((volatile unsigned int*)(0x42600054UL)) +#define bFM3_EXTI_ENIR_EN22 *((volatile unsigned int*)(0x42600058UL)) +#define bFM3_EXTI_ENIR_EN23 *((volatile unsigned int*)(0x4260005CUL)) +#define bFM3_EXTI_ENIR_EN24 *((volatile unsigned int*)(0x42600060UL)) +#define bFM3_EXTI_ENIR_EN25 *((volatile unsigned int*)(0x42600064UL)) +#define bFM3_EXTI_ENIR_EN26 *((volatile unsigned int*)(0x42600068UL)) +#define bFM3_EXTI_ENIR_EN27 *((volatile unsigned int*)(0x4260006CUL)) +#define bFM3_EXTI_ENIR_EN28 *((volatile unsigned int*)(0x42600070UL)) +#define bFM3_EXTI_ENIR_EN29 *((volatile unsigned int*)(0x42600074UL)) +#define bFM3_EXTI_ENIR_EN30 *((volatile unsigned int*)(0x42600078UL)) +#define bFM3_EXTI_ENIR_EN31 *((volatile unsigned int*)(0x4260007CUL)) +#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) +#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) +#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) +#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) +#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) +#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) +#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) +#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) +#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) +#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) +#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) +#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) +#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) +#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) +#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) +#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) +#define bFM3_EXTI_EIRR_ER16 *((volatile unsigned int*)(0x426000C0UL)) +#define bFM3_EXTI_EIRR_ER17 *((volatile unsigned int*)(0x426000C4UL)) +#define bFM3_EXTI_EIRR_ER18 *((volatile unsigned int*)(0x426000C8UL)) +#define bFM3_EXTI_EIRR_ER19 *((volatile unsigned int*)(0x426000CCUL)) +#define bFM3_EXTI_EIRR_ER20 *((volatile unsigned int*)(0x426000D0UL)) +#define bFM3_EXTI_EIRR_ER21 *((volatile unsigned int*)(0x426000D4UL)) +#define bFM3_EXTI_EIRR_ER22 *((volatile unsigned int*)(0x426000D8UL)) +#define bFM3_EXTI_EIRR_ER23 *((volatile unsigned int*)(0x426000DCUL)) +#define bFM3_EXTI_EIRR_ER24 *((volatile unsigned int*)(0x426000E0UL)) +#define bFM3_EXTI_EIRR_ER25 *((volatile unsigned int*)(0x426000E4UL)) +#define bFM3_EXTI_EIRR_ER26 *((volatile unsigned int*)(0x426000E8UL)) +#define bFM3_EXTI_EIRR_ER27 *((volatile unsigned int*)(0x426000ECUL)) +#define bFM3_EXTI_EIRR_ER28 *((volatile unsigned int*)(0x426000F0UL)) +#define bFM3_EXTI_EIRR_ER29 *((volatile unsigned int*)(0x426000F4UL)) +#define bFM3_EXTI_EIRR_ER30 *((volatile unsigned int*)(0x426000F8UL)) +#define bFM3_EXTI_EIRR_ER31 *((volatile unsigned int*)(0x426000FCUL)) +#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) +#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) +#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) +#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) +#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) +#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) +#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) +#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) +#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) +#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) +#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) +#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) +#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) +#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) +#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) +#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) +#define bFM3_EXTI_EICL_ECL16 *((volatile unsigned int*)(0x42600140UL)) +#define bFM3_EXTI_EICL_ECL17 *((volatile unsigned int*)(0x42600144UL)) +#define bFM3_EXTI_EICL_ECL18 *((volatile unsigned int*)(0x42600148UL)) +#define bFM3_EXTI_EICL_ECL19 *((volatile unsigned int*)(0x4260014CUL)) +#define bFM3_EXTI_EICL_ECL20 *((volatile unsigned int*)(0x42600150UL)) +#define bFM3_EXTI_EICL_ECL21 *((volatile unsigned int*)(0x42600154UL)) +#define bFM3_EXTI_EICL_ECL22 *((volatile unsigned int*)(0x42600158UL)) +#define bFM3_EXTI_EICL_ECL23 *((volatile unsigned int*)(0x4260015CUL)) +#define bFM3_EXTI_EICL_ECL24 *((volatile unsigned int*)(0x42600160UL)) +#define bFM3_EXTI_EICL_ECL25 *((volatile unsigned int*)(0x42600164UL)) +#define bFM3_EXTI_EICL_ECL26 *((volatile unsigned int*)(0x42600168UL)) +#define bFM3_EXTI_EICL_ECL27 *((volatile unsigned int*)(0x4260016CUL)) +#define bFM3_EXTI_EICL_ECL28 *((volatile unsigned int*)(0x42600170UL)) +#define bFM3_EXTI_EICL_ECL29 *((volatile unsigned int*)(0x42600174UL)) +#define bFM3_EXTI_EICL_ECL30 *((volatile unsigned int*)(0x42600178UL)) +#define bFM3_EXTI_EICL_ECL31 *((volatile unsigned int*)(0x4260017CUL)) +#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) +#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) +#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) +#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) +#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) +#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) +#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) +#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) +#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) +#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) +#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) +#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) +#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) +#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) +#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) +#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) +#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) +#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) +#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) +#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) +#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) +#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) +#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) +#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) +#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) +#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) +#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) +#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) +#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) +#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) +#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) +#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) +#define bFM3_EXTI_ELVR_LA16 *((volatile unsigned int*)(0x42600200UL)) +#define bFM3_EXTI_ELVR_LB16 *((volatile unsigned int*)(0x42600204UL)) +#define bFM3_EXTI_ELVR_LA17 *((volatile unsigned int*)(0x42600208UL)) +#define bFM3_EXTI_ELVR_LB17 *((volatile unsigned int*)(0x4260020CUL)) +#define bFM3_EXTI_ELVR_LA18 *((volatile unsigned int*)(0x42600210UL)) +#define bFM3_EXTI_ELVR_LB18 *((volatile unsigned int*)(0x42600214UL)) +#define bFM3_EXTI_ELVR_LA19 *((volatile unsigned int*)(0x42600218UL)) +#define bFM3_EXTI_ELVR_LB19 *((volatile unsigned int*)(0x4260021CUL)) +#define bFM3_EXTI_ELVR_LA20 *((volatile unsigned int*)(0x42600220UL)) +#define bFM3_EXTI_ELVR_LB20 *((volatile unsigned int*)(0x42600224UL)) +#define bFM3_EXTI_ELVR_LA21 *((volatile unsigned int*)(0x42600228UL)) +#define bFM3_EXTI_ELVR_LB21 *((volatile unsigned int*)(0x4260022CUL)) +#define bFM3_EXTI_ELVR_LA22 *((volatile unsigned int*)(0x42600230UL)) +#define bFM3_EXTI_ELVR_LB22 *((volatile unsigned int*)(0x42600234UL)) +#define bFM3_EXTI_ELVR_LA23 *((volatile unsigned int*)(0x42600238UL)) +#define bFM3_EXTI_ELVR_LB23 *((volatile unsigned int*)(0x4260023CUL)) +#define bFM3_EXTI_ELVR_LA24 *((volatile unsigned int*)(0x42600240UL)) +#define bFM3_EXTI_ELVR_LB24 *((volatile unsigned int*)(0x42600244UL)) +#define bFM3_EXTI_ELVR_LA25 *((volatile unsigned int*)(0x42600248UL)) +#define bFM3_EXTI_ELVR_LB25 *((volatile unsigned int*)(0x4260024CUL)) +#define bFM3_EXTI_ELVR_LA26 *((volatile unsigned int*)(0x42600250UL)) +#define bFM3_EXTI_ELVR_LB26 *((volatile unsigned int*)(0x42600254UL)) +#define bFM3_EXTI_ELVR_LA27 *((volatile unsigned int*)(0x42600258UL)) +#define bFM3_EXTI_ELVR_LB27 *((volatile unsigned int*)(0x4260025CUL)) +#define bFM3_EXTI_ELVR_LA28 *((volatile unsigned int*)(0x42600260UL)) +#define bFM3_EXTI_ELVR_LB28 *((volatile unsigned int*)(0x42600264UL)) +#define bFM3_EXTI_ELVR_LA29 *((volatile unsigned int*)(0x42600268UL)) +#define bFM3_EXTI_ELVR_LB29 *((volatile unsigned int*)(0x4260026CUL)) +#define bFM3_EXTI_ELVR_LA30 *((volatile unsigned int*)(0x42600270UL)) +#define bFM3_EXTI_ELVR_LB30 *((volatile unsigned int*)(0x42600274UL)) +#define bFM3_EXTI_ELVR_LA31 *((volatile unsigned int*)(0x42600278UL)) +#define bFM3_EXTI_ELVR_LB31 *((volatile unsigned int*)(0x4260027CUL)) +#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) +#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) + +/* Interrupt request read registers */ +#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) +#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS0 *((volatile unsigned char*)(0x42620160UL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS1 *((volatile unsigned char*)(0x42620164UL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS2 *((volatile unsigned char*)(0x42620168UL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS3 *((volatile unsigned char*)(0x4262016CUL)) +#define bFM3_INTREQ_ODDPKS_ODDPKS4 *((volatile unsigned char*)(0x42620170UL)) +#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) +#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) +#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) +#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) +#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT0 *((volatile unsigned int*)(0x42620420UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT1 *((volatile unsigned int*)(0x42620424UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT2 *((volatile unsigned int*)(0x42620428UL)) +#define bFM3_INTREQ_IRQ03MON_WAVE2INT3 *((volatile unsigned int*)(0x4262042CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) +#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT8 *((volatile unsigned int*)(0x42620520UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT9 *((volatile unsigned int*)(0x42620524UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT10 *((volatile unsigned int*)(0x42620528UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT11 *((volatile unsigned int*)(0x4262052CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT12 *((volatile unsigned int*)(0x42620530UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT13 *((volatile unsigned int*)(0x42620534UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT14 *((volatile unsigned int*)(0x42620538UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT15 *((volatile unsigned int*)(0x4262053CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT16 *((volatile unsigned int*)(0x42620540UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT17 *((volatile unsigned int*)(0x42620544UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT18 *((volatile unsigned int*)(0x42620548UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT19 *((volatile unsigned int*)(0x4262054CUL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT20 *((volatile unsigned int*)(0x42620550UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT21 *((volatile unsigned int*)(0x42620554UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT22 *((volatile unsigned int*)(0x42620558UL)) +#define bFM3_INTREQ_IRQ05MON_EXTINT23 *((volatile unsigned int*)(0x4262055CUL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620580UL)) +#define bFM3_INTREQ_IRQ06MON_TIMINT2 *((volatile unsigned int*)(0x42620584UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) +#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT0 *((volatile unsigned int*)(0x426205B8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT1 *((volatile unsigned int*)(0x426205BCUL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT2 *((volatile unsigned int*)(0x426205C0UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT3 *((volatile unsigned int*)(0x426205C4UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT4 *((volatile unsigned int*)(0x426205C8UL)) +#define bFM3_INTREQ_IRQ06MON_QUD2INT5 *((volatile unsigned int*)(0x426205CCUL)) +#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) +#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) +#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) +#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) +#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) +#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) +#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) +#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) +#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) +#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) +#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) +#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) +#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) +#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) +#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) +#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT6 *((volatile unsigned int*)(0x42620E18UL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT7 *((volatile unsigned int*)(0x42620E1CUL)) +#define bFM3_INTREQ_IRQ23MON_PPGINT8 *((volatile unsigned int*)(0x42620E20UL)) +#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) +#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) +#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) +#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) +#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) +#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) +#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) +#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) +#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) +#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT0 *((volatile unsigned int*)(0x426210B0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT1 *((volatile unsigned int*)(0x426210B4UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT2 *((volatile unsigned int*)(0x426210B8UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT3 *((volatile unsigned int*)(0x426210BCUL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT4 *((volatile unsigned int*)(0x426210C0UL)) +#define bFM3_INTREQ_IRQ28MON_FRT2INT5 *((volatile unsigned int*)(0x426210C4UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) +#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) +#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT0 *((volatile unsigned int*)(0x42621120UL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT1 *((volatile unsigned int*)(0x42621124UL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT2 *((volatile unsigned int*)(0x42621128UL)) +#define bFM3_INTREQ_IRQ29MON_ICU2INT3 *((volatile unsigned int*)(0x4262112CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) +#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) +#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT0 *((volatile unsigned int*)(0x426211B0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT1 *((volatile unsigned int*)(0x426211B4UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT2 *((volatile unsigned int*)(0x426211B8UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT3 *((volatile unsigned int*)(0x426211BCUL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT4 *((volatile unsigned int*)(0x426211C0UL)) +#define bFM3_INTREQ_IRQ30MON_OCU2INT5 *((volatile unsigned int*)(0x426211C4UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) +#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) +#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) +#define bFM3_INTREQ_IRQ32MON_MAC0SBD *((volatile unsigned int*)(0x42621284UL)) +#define bFM3_INTREQ_IRQ32MON_MAC0PMI *((volatile unsigned int*)(0x42621288UL)) +#define bFM3_INTREQ_IRQ32MON_MAC0LPI *((volatile unsigned int*)(0x4262128CUL)) +#define bFM3_INTREQ_IRQ33MON_MAC1SBD *((volatile unsigned int*)(0x42621304UL)) +#define bFM3_INTREQ_IRQ33MON_MAC1PMI *((volatile unsigned int*)(0x42621308UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) +#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) +#define bFM3_INTREQ_IRQ35MON_USB0INT5 *((volatile unsigned int*)(0x42621414UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT0 *((volatile unsigned int*)(0x42621480UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT1 *((volatile unsigned int*)(0x42621484UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT2 *((volatile unsigned int*)(0x42621488UL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT3 *((volatile unsigned int*)(0x4262148CUL)) +#define bFM3_INTREQ_IRQ36MON_USB1INT4 *((volatile unsigned int*)(0x42621490UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT0 *((volatile unsigned int*)(0x42621500UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT1 *((volatile unsigned int*)(0x42621504UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT2 *((volatile unsigned int*)(0x42621508UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT3 *((volatile unsigned int*)(0x4262150CUL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT4 *((volatile unsigned int*)(0x42621510UL)) +#define bFM3_INTREQ_IRQ37MON_USB1INT5 *((volatile unsigned int*)(0x42621514UL)) +#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) +#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) +#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) +#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) +#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) +#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) +#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) +#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT0 *((volatile unsigned int*)(0x42621980UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT1 *((volatile unsigned int*)(0x42621984UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT2 *((volatile unsigned int*)(0x42621988UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT3 *((volatile unsigned int*)(0x4262198CUL)) +#define bFM3_INTREQ_IRQ46MON_BTINT4 *((volatile unsigned int*)(0x42621990UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT5 *((volatile unsigned int*)(0x42621994UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT6 *((volatile unsigned int*)(0x42621998UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT7 *((volatile unsigned int*)(0x4262199CUL)) +#define bFM3_INTREQ_IRQ46MON_BTINT8 *((volatile unsigned int*)(0x426219A0UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT9 *((volatile unsigned int*)(0x426219A4UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT10 *((volatile unsigned int*)(0x426219A8UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT11 *((volatile unsigned int*)(0x426219ACUL)) +#define bFM3_INTREQ_IRQ46MON_BTINT12 *((volatile unsigned int*)(0x426219B0UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT13 *((volatile unsigned int*)(0x426219B4UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT14 *((volatile unsigned int*)(0x426219B8UL)) +#define bFM3_INTREQ_IRQ46MON_BTINT15 *((volatile unsigned int*)(0x426219BCUL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL10 *((volatile unsigned int*)(0x42624000UL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL11 *((volatile unsigned int*)(0x42624004UL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL12 *((volatile unsigned int*)(0x42624008UL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL13 *((volatile unsigned int*)(0x4262400CUL)) +#define bFM3_INTREQ_DRQSEL1_DRQSEL14 *((volatile unsigned int*)(0x42624010UL)) +#define bFM3_INTREQ_DQESEL_ESEL100 *((volatile unsigned int*)(0x42624080UL)) +#define bFM3_INTREQ_DQESEL_ESEL101 *((volatile unsigned int*)(0x42624084UL)) +#define bFM3_INTREQ_DQESEL_ESEL102 *((volatile unsigned int*)(0x42624088UL)) +#define bFM3_INTREQ_DQESEL_ESEL103 *((volatile unsigned int*)(0x4262408CUL)) +#define bFM3_INTREQ_DQESEL_ESEL110 *((volatile unsigned int*)(0x42624090UL)) +#define bFM3_INTREQ_DQESEL_ESEL111 *((volatile unsigned int*)(0x42624094UL)) +#define bFM3_INTREQ_DQESEL_ESEL112 *((volatile unsigned int*)(0x42624098UL)) +#define bFM3_INTREQ_DQESEL_ESEL113 *((volatile unsigned int*)(0x4262409CUL)) +#define bFM3_INTREQ_DQESEL_ESEL240 *((volatile unsigned int*)(0x426240A0UL)) +#define bFM3_INTREQ_DQESEL_ESEL241 *((volatile unsigned int*)(0x426240A4UL)) +#define bFM3_INTREQ_DQESEL_ESEL242 *((volatile unsigned int*)(0x426240A8UL)) +#define bFM3_INTREQ_DQESEL_ESEL243 *((volatile unsigned int*)(0x426240ACUL)) +#define bFM3_INTREQ_DQESEL_ESEL250 *((volatile unsigned int*)(0x426240B0UL)) +#define bFM3_INTREQ_DQESEL_ESEL251 *((volatile unsigned int*)(0x426240B4UL)) +#define bFM3_INTREQ_DQESEL_ESEL252 *((volatile unsigned int*)(0x426240B8UL)) +#define bFM3_INTREQ_DQESEL_ESEL253 *((volatile unsigned int*)(0x426240BCUL)) +#define bFM3_INTREQ_DQESEL_ESEL260 *((volatile unsigned int*)(0x426240C0UL)) +#define bFM3_INTREQ_DQESEL_ESEL261 *((volatile unsigned int*)(0x426240C4UL)) +#define bFM3_INTREQ_DQESEL_ESEL262 *((volatile unsigned int*)(0x426240C8UL)) +#define bFM3_INTREQ_DQESEL_ESEL263 *((volatile unsigned int*)(0x426240CCUL)) +#define bFM3_INTREQ_DQESEL_ESEL270 *((volatile unsigned int*)(0x426240D0UL)) +#define bFM3_INTREQ_DQESEL_ESEL271 *((volatile unsigned int*)(0x426240D4UL)) +#define bFM3_INTREQ_DQESEL_ESEL272 *((volatile unsigned int*)(0x426240D8UL)) +#define bFM3_INTREQ_DQESEL_ESEL273 *((volatile unsigned int*)(0x426240DCUL)) +#define bFM3_INTREQ_DQESEL_ESEL300 *((volatile unsigned int*)(0x426240E0UL)) +#define bFM3_INTREQ_DQESEL_ESEL301 *((volatile unsigned int*)(0x426240E4UL)) +#define bFM3_INTREQ_DQESEL_ESEL302 *((volatile unsigned int*)(0x426240E8UL)) +#define bFM3_INTREQ_DQESEL_ESEL303 *((volatile unsigned int*)(0x426240ECUL)) +#define bFM3_INTREQ_DQESEL_ESEL310 *((volatile unsigned int*)(0x426240F0UL)) +#define bFM3_INTREQ_DQESEL_ESEL311 *((volatile unsigned int*)(0x426240F4UL)) +#define bFM3_INTREQ_DQESEL_ESEL312 *((volatile unsigned int*)(0x426240F8UL)) +#define bFM3_INTREQ_DQESEL_ESEL313 *((volatile unsigned int*)(0x426240FCUL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS10 *((volatile unsigned char*)(0x426241E0UL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS11 *((volatile unsigned char*)(0x426241E4UL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS12 *((volatile unsigned char*)(0x426241E8UL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS13 *((volatile unsigned char*)(0x426241ECUL)) +#define bFM3_INTREQ_ODDPKS1_ODDPKS14 *((volatile unsigned char*)(0x426241F0UL)) + +/* General purpose I/O registers */ +#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) +#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) +#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) +#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) +#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) +#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) +#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) +#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) +#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) +#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) +#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) +#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) +#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) +#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) +#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) +#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) +#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) +#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) +#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) +#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) +#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) +#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) +#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) +#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) +#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) +#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) +#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) +#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) +#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) +#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) +#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) +#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) +#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) +#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) +#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) +#define bFM3_GPIO_PFR2_P9 *((volatile unsigned int*)(0x42660124UL)) +#define bFM3_GPIO_PFR3_P0 *((volatile unsigned int*)(0x42660180UL)) +#define bFM3_GPIO_PFR3_P1 *((volatile unsigned int*)(0x42660184UL)) +#define bFM3_GPIO_PFR3_P2 *((volatile unsigned int*)(0x42660188UL)) +#define bFM3_GPIO_PFR3_P3 *((volatile unsigned int*)(0x4266018CUL)) +#define bFM3_GPIO_PFR3_P4 *((volatile unsigned int*)(0x42660190UL)) +#define bFM3_GPIO_PFR3_P5 *((volatile unsigned int*)(0x42660194UL)) +#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) +#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) +#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) +#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) +#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) +#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) +#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) +#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) +#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) +#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) +#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) +#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) +#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) +#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) +#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) +#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) +#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) +#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) +#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) +#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) +#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) +#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) +#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) +#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) +#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) +#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) +#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) +#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) +#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) +#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) +#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) +#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) +#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) +#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) +#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) +#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) +#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) +#define bFM3_GPIO_PFR5_PC *((volatile unsigned int*)(0x426602B0UL)) +#define bFM3_GPIO_PFR5_PD *((volatile unsigned int*)(0x426602B4UL)) +#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) +#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) +#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) +#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) +#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) +#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) +#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) +#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) +#define bFM3_GPIO_PFR7_P5 *((volatile unsigned int*)(0x42660394UL)) +#define bFM3_GPIO_PFR7_P6 *((volatile unsigned int*)(0x42660398UL)) +#define bFM3_GPIO_PFR7_P7 *((volatile unsigned int*)(0x4266039CUL)) +#define bFM3_GPIO_PFR7_P8 *((volatile unsigned int*)(0x426603A0UL)) +#define bFM3_GPIO_PFR7_P9 *((volatile unsigned int*)(0x426603A4UL)) +#define bFM3_GPIO_PFR7_PA *((volatile unsigned int*)(0x426603A8UL)) +#define bFM3_GPIO_PFR7_PB *((volatile unsigned int*)(0x426603ACUL)) +#define bFM3_GPIO_PFR7_PC *((volatile unsigned int*)(0x426603B0UL)) +#define bFM3_GPIO_PFR7_PD *((volatile unsigned int*)(0x426603B4UL)) +#define bFM3_GPIO_PFR7_PE *((volatile unsigned int*)(0x426603B8UL)) +#define bFM3_GPIO_PFR7_PF *((volatile unsigned int*)(0x426603BCUL)) +#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) +#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) +#define bFM3_GPIO_PFR8_P2 *((volatile unsigned int*)(0x42660408UL)) +#define bFM3_GPIO_PFR8_P3 *((volatile unsigned int*)(0x4266040CUL)) +#define bFM3_GPIO_PFR9_P0 *((volatile unsigned int*)(0x42660480UL)) +#define bFM3_GPIO_PFR9_P1 *((volatile unsigned int*)(0x42660484UL)) +#define bFM3_GPIO_PFR9_P2 *((volatile unsigned int*)(0x42660488UL)) +#define bFM3_GPIO_PFR9_P3 *((volatile unsigned int*)(0x4266048CUL)) +#define bFM3_GPIO_PFR9_P4 *((volatile unsigned int*)(0x42660490UL)) +#define bFM3_GPIO_PFR9_P5 *((volatile unsigned int*)(0x42660494UL)) +#define bFM3_GPIO_PFRA_P0 *((volatile unsigned int*)(0x42660500UL)) +#define bFM3_GPIO_PFRA_P1 *((volatile unsigned int*)(0x42660504UL)) +#define bFM3_GPIO_PFRA_P2 *((volatile unsigned int*)(0x42660508UL)) +#define bFM3_GPIO_PFRA_P3 *((volatile unsigned int*)(0x4266050CUL)) +#define bFM3_GPIO_PFRA_P4 *((volatile unsigned int*)(0x42660510UL)) +#define bFM3_GPIO_PFRA_P5 *((volatile unsigned int*)(0x42660514UL)) +#define bFM3_GPIO_PFRB_P0 *((volatile unsigned int*)(0x42660580UL)) +#define bFM3_GPIO_PFRB_P1 *((volatile unsigned int*)(0x42660584UL)) +#define bFM3_GPIO_PFRB_P2 *((volatile unsigned int*)(0x42660588UL)) +#define bFM3_GPIO_PFRB_P3 *((volatile unsigned int*)(0x4266058CUL)) +#define bFM3_GPIO_PFRB_P4 *((volatile unsigned int*)(0x42660590UL)) +#define bFM3_GPIO_PFRB_P5 *((volatile unsigned int*)(0x42660594UL)) +#define bFM3_GPIO_PFRB_P6 *((volatile unsigned int*)(0x42660598UL)) +#define bFM3_GPIO_PFRB_P7 *((volatile unsigned int*)(0x4266059CUL)) +#define bFM3_GPIO_PFRC_P0 *((volatile unsigned int*)(0x42660600UL)) +#define bFM3_GPIO_PFRC_P1 *((volatile unsigned int*)(0x42660604UL)) +#define bFM3_GPIO_PFRC_P2 *((volatile unsigned int*)(0x42660608UL)) +#define bFM3_GPIO_PFRC_P3 *((volatile unsigned int*)(0x4266060CUL)) +#define bFM3_GPIO_PFRC_P4 *((volatile unsigned int*)(0x42660610UL)) +#define bFM3_GPIO_PFRC_P5 *((volatile unsigned int*)(0x42660614UL)) +#define bFM3_GPIO_PFRC_P6 *((volatile unsigned int*)(0x42660618UL)) +#define bFM3_GPIO_PFRC_P7 *((volatile unsigned int*)(0x4266061CUL)) +#define bFM3_GPIO_PFRC_P8 *((volatile unsigned int*)(0x42660620UL)) +#define bFM3_GPIO_PFRC_P9 *((volatile unsigned int*)(0x42660624UL)) +#define bFM3_GPIO_PFRC_PA *((volatile unsigned int*)(0x42660628UL)) +#define bFM3_GPIO_PFRC_PB *((volatile unsigned int*)(0x4266062CUL)) +#define bFM3_GPIO_PFRC_PC *((volatile unsigned int*)(0x42660630UL)) +#define bFM3_GPIO_PFRC_PD *((volatile unsigned int*)(0x42660634UL)) +#define bFM3_GPIO_PFRC_PE *((volatile unsigned int*)(0x42660638UL)) +#define bFM3_GPIO_PFRC_PF *((volatile unsigned int*)(0x4266063CUL)) +#define bFM3_GPIO_PFRD_P0 *((volatile unsigned int*)(0x42660680UL)) +#define bFM3_GPIO_PFRD_P1 *((volatile unsigned int*)(0x42660684UL)) +#define bFM3_GPIO_PFRD_P2 *((volatile unsigned int*)(0x42660688UL)) +#define bFM3_GPIO_PFRD_P3 *((volatile unsigned int*)(0x4266068CUL)) +#define bFM3_GPIO_PFRE_P0 *((volatile unsigned int*)(0x42660700UL)) +#define bFM3_GPIO_PFRE_P2 *((volatile unsigned int*)(0x42660708UL)) +#define bFM3_GPIO_PFRE_P3 *((volatile unsigned int*)(0x4266070CUL)) +#define bFM3_GPIO_PFRF_P0 *((volatile unsigned int*)(0x42660780UL)) +#define bFM3_GPIO_PFRF_P1 *((volatile unsigned int*)(0x42660784UL)) +#define bFM3_GPIO_PFRF_P2 *((volatile unsigned int*)(0x42660788UL)) +#define bFM3_GPIO_PFRF_P3 *((volatile unsigned int*)(0x4266078CUL)) +#define bFM3_GPIO_PFRF_P4 *((volatile unsigned int*)(0x42660790UL)) +#define bFM3_GPIO_PFRF_P5 *((volatile unsigned int*)(0x42660794UL)) +#define bFM3_GPIO_PFRF_P6 *((volatile unsigned int*)(0x42660798UL)) +#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) +#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) +#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) +#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) +#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) +#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) +#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) +#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) +#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) +#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) +#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) +#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) +#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) +#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) +#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) +#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) +#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) +#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) +#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) +#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) +#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) +#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) +#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) +#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) +#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) +#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) +#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) +#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) +#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) +#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) +#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) +#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) +#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) +#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) +#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) +#define bFM3_GPIO_PCR2_P9 *((volatile unsigned int*)(0x42662124UL)) +#define bFM3_GPIO_PCR3_P0 *((volatile unsigned int*)(0x42662180UL)) +#define bFM3_GPIO_PCR3_P1 *((volatile unsigned int*)(0x42662184UL)) +#define bFM3_GPIO_PCR3_P2 *((volatile unsigned int*)(0x42662188UL)) +#define bFM3_GPIO_PCR3_P3 *((volatile unsigned int*)(0x4266218CUL)) +#define bFM3_GPIO_PCR3_P4 *((volatile unsigned int*)(0x42662190UL)) +#define bFM3_GPIO_PCR3_P5 *((volatile unsigned int*)(0x42662194UL)) +#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) +#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) +#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) +#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) +#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) +#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) +#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) +#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) +#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) +#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) +#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) +#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) +#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) +#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) +#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) +#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) +#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) +#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) +#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) +#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) +#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) +#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) +#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) +#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) +#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) +#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) +#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) +#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) +#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) +#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) +#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) +#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) +#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) +#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) +#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) +#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) +#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) +#define bFM3_GPIO_PCR5_PC *((volatile unsigned int*)(0x426622B0UL)) +#define bFM3_GPIO_PCR5_PD *((volatile unsigned int*)(0x426622B4UL)) +#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) +#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) +#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) +#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) +#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) +#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) +#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) +#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) +#define bFM3_GPIO_PCR7_P5 *((volatile unsigned int*)(0x42662394UL)) +#define bFM3_GPIO_PCR7_P6 *((volatile unsigned int*)(0x42662398UL)) +#define bFM3_GPIO_PCR7_P7 *((volatile unsigned int*)(0x4266239CUL)) +#define bFM3_GPIO_PCR7_P8 *((volatile unsigned int*)(0x426623A0UL)) +#define bFM3_GPIO_PCR7_P9 *((volatile unsigned int*)(0x426623A4UL)) +#define bFM3_GPIO_PCR7_PA *((volatile unsigned int*)(0x426623A8UL)) +#define bFM3_GPIO_PCR7_PB *((volatile unsigned int*)(0x426623ACUL)) +#define bFM3_GPIO_PCR7_PC *((volatile unsigned int*)(0x426623B0UL)) +#define bFM3_GPIO_PCR7_PD *((volatile unsigned int*)(0x426623B4UL)) +#define bFM3_GPIO_PCR7_PE *((volatile unsigned int*)(0x426623B8UL)) +#define bFM3_GPIO_PCR7_PF *((volatile unsigned int*)(0x426623BCUL)) +#define bFM3_GPIO_PCR9_P0 *((volatile unsigned int*)(0x42662480UL)) +#define bFM3_GPIO_PCR9_P1 *((volatile unsigned int*)(0x42662484UL)) +#define bFM3_GPIO_PCR9_P2 *((volatile unsigned int*)(0x42662488UL)) +#define bFM3_GPIO_PCR9_P3 *((volatile unsigned int*)(0x4266248CUL)) +#define bFM3_GPIO_PCR9_P4 *((volatile unsigned int*)(0x42662490UL)) +#define bFM3_GPIO_PCR9_P5 *((volatile unsigned int*)(0x42662494UL)) +#define bFM3_GPIO_PCRA_P0 *((volatile unsigned int*)(0x42662500UL)) +#define bFM3_GPIO_PCRA_P1 *((volatile unsigned int*)(0x42662504UL)) +#define bFM3_GPIO_PCRA_P2 *((volatile unsigned int*)(0x42662508UL)) +#define bFM3_GPIO_PCRA_P3 *((volatile unsigned int*)(0x4266250CUL)) +#define bFM3_GPIO_PCRA_P4 *((volatile unsigned int*)(0x42662510UL)) +#define bFM3_GPIO_PCRA_P5 *((volatile unsigned int*)(0x42662514UL)) +#define bFM3_GPIO_PCRB_P0 *((volatile unsigned int*)(0x42662580UL)) +#define bFM3_GPIO_PCRB_P1 *((volatile unsigned int*)(0x42662584UL)) +#define bFM3_GPIO_PCRB_P2 *((volatile unsigned int*)(0x42662588UL)) +#define bFM3_GPIO_PCRB_P3 *((volatile unsigned int*)(0x4266258CUL)) +#define bFM3_GPIO_PCRB_P4 *((volatile unsigned int*)(0x42662590UL)) +#define bFM3_GPIO_PCRB_P5 *((volatile unsigned int*)(0x42662594UL)) +#define bFM3_GPIO_PCRB_P6 *((volatile unsigned int*)(0x42662598UL)) +#define bFM3_GPIO_PCRB_P7 *((volatile unsigned int*)(0x4266259CUL)) +#define bFM3_GPIO_PCRC_P0 *((volatile unsigned int*)(0x42662600UL)) +#define bFM3_GPIO_PCRC_P1 *((volatile unsigned int*)(0x42662604UL)) +#define bFM3_GPIO_PCRC_P2 *((volatile unsigned int*)(0x42662608UL)) +#define bFM3_GPIO_PCRC_P3 *((volatile unsigned int*)(0x4266260CUL)) +#define bFM3_GPIO_PCRC_P4 *((volatile unsigned int*)(0x42662610UL)) +#define bFM3_GPIO_PCRC_P5 *((volatile unsigned int*)(0x42662614UL)) +#define bFM3_GPIO_PCRC_P6 *((volatile unsigned int*)(0x42662618UL)) +#define bFM3_GPIO_PCRC_P7 *((volatile unsigned int*)(0x4266261CUL)) +#define bFM3_GPIO_PCRC_P8 *((volatile unsigned int*)(0x42662620UL)) +#define bFM3_GPIO_PCRC_P9 *((volatile unsigned int*)(0x42662624UL)) +#define bFM3_GPIO_PCRC_PA *((volatile unsigned int*)(0x42662628UL)) +#define bFM3_GPIO_PCRC_PB *((volatile unsigned int*)(0x4266262CUL)) +#define bFM3_GPIO_PCRC_PC *((volatile unsigned int*)(0x42662630UL)) +#define bFM3_GPIO_PCRC_PD *((volatile unsigned int*)(0x42662634UL)) +#define bFM3_GPIO_PCRC_PE *((volatile unsigned int*)(0x42662638UL)) +#define bFM3_GPIO_PCRC_PF *((volatile unsigned int*)(0x4266263CUL)) +#define bFM3_GPIO_PCRD_P0 *((volatile unsigned int*)(0x42662680UL)) +#define bFM3_GPIO_PCRD_P1 *((volatile unsigned int*)(0x42662684UL)) +#define bFM3_GPIO_PCRD_P2 *((volatile unsigned int*)(0x42662688UL)) +#define bFM3_GPIO_PCRD_P3 *((volatile unsigned int*)(0x4266268CUL)) +#define bFM3_GPIO_PCRE_P2 *((volatile unsigned int*)(0x42662708UL)) +#define bFM3_GPIO_PCRE_P3 *((volatile unsigned int*)(0x4266270CUL)) +#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) +#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) +#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) +#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) +#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) +#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) +#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) +#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) +#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) +#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) +#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) +#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) +#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) +#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) +#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) +#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) +#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) +#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) +#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) +#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) +#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) +#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) +#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) +#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) +#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) +#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) +#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) +#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) +#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) +#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) +#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) +#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) +#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) +#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) +#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) +#define bFM3_GPIO_DDR2_P9 *((volatile unsigned int*)(0x42664124UL)) +#define bFM3_GPIO_DDR3_P0 *((volatile unsigned int*)(0x42664180UL)) +#define bFM3_GPIO_DDR3_P1 *((volatile unsigned int*)(0x42664184UL)) +#define bFM3_GPIO_DDR3_P2 *((volatile unsigned int*)(0x42664188UL)) +#define bFM3_GPIO_DDR3_P3 *((volatile unsigned int*)(0x4266418CUL)) +#define bFM3_GPIO_DDR3_P4 *((volatile unsigned int*)(0x42664190UL)) +#define bFM3_GPIO_DDR3_P5 *((volatile unsigned int*)(0x42664194UL)) +#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) +#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) +#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) +#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) +#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) +#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) +#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) +#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) +#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) +#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) +#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) +#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) +#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) +#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) +#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) +#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) +#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) +#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) +#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) +#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) +#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) +#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) +#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) +#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) +#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) +#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) +#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) +#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) +#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) +#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) +#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) +#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) +#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) +#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) +#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) +#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) +#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) +#define bFM3_GPIO_DDR5_PC *((volatile unsigned int*)(0x426642B0UL)) +#define bFM3_GPIO_DDR5_PD *((volatile unsigned int*)(0x426642B4UL)) +#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) +#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) +#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) +#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) +#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) +#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) +#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) +#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) +#define bFM3_GPIO_DDR7_P5 *((volatile unsigned int*)(0x42664394UL)) +#define bFM3_GPIO_DDR7_P6 *((volatile unsigned int*)(0x42664398UL)) +#define bFM3_GPIO_DDR7_P7 *((volatile unsigned int*)(0x4266439CUL)) +#define bFM3_GPIO_DDR7_P8 *((volatile unsigned int*)(0x426643A0UL)) +#define bFM3_GPIO_DDR7_P9 *((volatile unsigned int*)(0x426643A4UL)) +#define bFM3_GPIO_DDR7_PA *((volatile unsigned int*)(0x426643A8UL)) +#define bFM3_GPIO_DDR7_PB *((volatile unsigned int*)(0x426643ACUL)) +#define bFM3_GPIO_DDR7_PC *((volatile unsigned int*)(0x426643B0UL)) +#define bFM3_GPIO_DDR7_PD *((volatile unsigned int*)(0x426643B4UL)) +#define bFM3_GPIO_DDR7_PE *((volatile unsigned int*)(0x426643B8UL)) +#define bFM3_GPIO_DDR7_PF *((volatile unsigned int*)(0x426643BCUL)) +#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) +#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) +#define bFM3_GPIO_DDR8_P2 *((volatile unsigned int*)(0x42664408UL)) +#define bFM3_GPIO_DDR8_P3 *((volatile unsigned int*)(0x4266440CUL)) +#define bFM3_GPIO_DDR9_P0 *((volatile unsigned int*)(0x42664480UL)) +#define bFM3_GPIO_DDR9_P1 *((volatile unsigned int*)(0x42664484UL)) +#define bFM3_GPIO_DDR9_P2 *((volatile unsigned int*)(0x42664488UL)) +#define bFM3_GPIO_DDR9_P3 *((volatile unsigned int*)(0x4266448CUL)) +#define bFM3_GPIO_DDR9_P4 *((volatile unsigned int*)(0x42664490UL)) +#define bFM3_GPIO_DDR9_P5 *((volatile unsigned int*)(0x42664494UL)) +#define bFM3_GPIO_DDRA_P0 *((volatile unsigned int*)(0x42664500UL)) +#define bFM3_GPIO_DDRA_P1 *((volatile unsigned int*)(0x42664504UL)) +#define bFM3_GPIO_DDRA_P2 *((volatile unsigned int*)(0x42664508UL)) +#define bFM3_GPIO_DDRA_P3 *((volatile unsigned int*)(0x4266450CUL)) +#define bFM3_GPIO_DDRA_P4 *((volatile unsigned int*)(0x42664510UL)) +#define bFM3_GPIO_DDRA_P5 *((volatile unsigned int*)(0x42664514UL)) +#define bFM3_GPIO_DDRB_P0 *((volatile unsigned int*)(0x42664580UL)) +#define bFM3_GPIO_DDRB_P1 *((volatile unsigned int*)(0x42664584UL)) +#define bFM3_GPIO_DDRB_P2 *((volatile unsigned int*)(0x42664588UL)) +#define bFM3_GPIO_DDRB_P3 *((volatile unsigned int*)(0x4266458CUL)) +#define bFM3_GPIO_DDRB_P4 *((volatile unsigned int*)(0x42664590UL)) +#define bFM3_GPIO_DDRB_P5 *((volatile unsigned int*)(0x42664594UL)) +#define bFM3_GPIO_DDRB_P6 *((volatile unsigned int*)(0x42664598UL)) +#define bFM3_GPIO_DDRB_P7 *((volatile unsigned int*)(0x4266459CUL)) +#define bFM3_GPIO_DDRC_P0 *((volatile unsigned int*)(0x42664600UL)) +#define bFM3_GPIO_DDRC_P1 *((volatile unsigned int*)(0x42664604UL)) +#define bFM3_GPIO_DDRC_P2 *((volatile unsigned int*)(0x42664608UL)) +#define bFM3_GPIO_DDRC_P3 *((volatile unsigned int*)(0x4266460CUL)) +#define bFM3_GPIO_DDRC_P4 *((volatile unsigned int*)(0x42664610UL)) +#define bFM3_GPIO_DDRC_P5 *((volatile unsigned int*)(0x42664614UL)) +#define bFM3_GPIO_DDRC_P6 *((volatile unsigned int*)(0x42664618UL)) +#define bFM3_GPIO_DDRC_P7 *((volatile unsigned int*)(0x4266461CUL)) +#define bFM3_GPIO_DDRC_P8 *((volatile unsigned int*)(0x42664620UL)) +#define bFM3_GPIO_DDRC_P9 *((volatile unsigned int*)(0x42664624UL)) +#define bFM3_GPIO_DDRC_PA *((volatile unsigned int*)(0x42664628UL)) +#define bFM3_GPIO_DDRC_PB *((volatile unsigned int*)(0x4266462CUL)) +#define bFM3_GPIO_DDRC_PC *((volatile unsigned int*)(0x42664630UL)) +#define bFM3_GPIO_DDRC_PD *((volatile unsigned int*)(0x42664634UL)) +#define bFM3_GPIO_DDRC_PE *((volatile unsigned int*)(0x42664638UL)) +#define bFM3_GPIO_DDRC_PF *((volatile unsigned int*)(0x4266463CUL)) +#define bFM3_GPIO_DDRD_P0 *((volatile unsigned int*)(0x42664680UL)) +#define bFM3_GPIO_DDRD_P1 *((volatile unsigned int*)(0x42664684UL)) +#define bFM3_GPIO_DDRD_P2 *((volatile unsigned int*)(0x42664688UL)) +#define bFM3_GPIO_DDRD_P3 *((volatile unsigned int*)(0x4266468CUL)) +#define bFM3_GPIO_DDRE_P0 *((volatile unsigned int*)(0x42664700UL)) +#define bFM3_GPIO_DDRE_P2 *((volatile unsigned int*)(0x42664708UL)) +#define bFM3_GPIO_DDRE_P3 *((volatile unsigned int*)(0x4266470CUL)) +#define bFM3_GPIO_DDRF_P0 *((volatile unsigned int*)(0x42664780UL)) +#define bFM3_GPIO_DDRF_P1 *((volatile unsigned int*)(0x42664784UL)) +#define bFM3_GPIO_DDRF_P2 *((volatile unsigned int*)(0x42664788UL)) +#define bFM3_GPIO_DDRF_P3 *((volatile unsigned int*)(0x4266478CUL)) +#define bFM3_GPIO_DDRF_P4 *((volatile unsigned int*)(0x42664790UL)) +#define bFM3_GPIO_DDRF_P5 *((volatile unsigned int*)(0x42664794UL)) +#define bFM3_GPIO_DDRF_P6 *((volatile unsigned int*)(0x42664798UL)) +#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) +#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) +#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) +#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) +#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) +#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) +#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) +#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) +#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) +#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) +#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) +#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) +#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) +#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) +#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) +#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) +#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) +#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) +#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) +#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) +#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) +#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) +#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) +#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) +#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) +#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) +#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) +#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) +#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) +#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) +#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) +#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) +#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) +#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) +#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) +#define bFM3_GPIO_PDIR2_P9 *((volatile unsigned int*)(0x42666124UL)) +#define bFM3_GPIO_PDIR3_P0 *((volatile unsigned int*)(0x42666180UL)) +#define bFM3_GPIO_PDIR3_P1 *((volatile unsigned int*)(0x42666184UL)) +#define bFM3_GPIO_PDIR3_P2 *((volatile unsigned int*)(0x42666188UL)) +#define bFM3_GPIO_PDIR3_P3 *((volatile unsigned int*)(0x4266618CUL)) +#define bFM3_GPIO_PDIR3_P4 *((volatile unsigned int*)(0x42666190UL)) +#define bFM3_GPIO_PDIR3_P5 *((volatile unsigned int*)(0x42666194UL)) +#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) +#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) +#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) +#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) +#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) +#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) +#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) +#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) +#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) +#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) +#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) +#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) +#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) +#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) +#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) +#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) +#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) +#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) +#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) +#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) +#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) +#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) +#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) +#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) +#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) +#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) +#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) +#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) +#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) +#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) +#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) +#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) +#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) +#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) +#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) +#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) +#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) +#define bFM3_GPIO_PDIR5_PC *((volatile unsigned int*)(0x426662B0UL)) +#define bFM3_GPIO_PDIR5_PD *((volatile unsigned int*)(0x426662B4UL)) +#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) +#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) +#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) +#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) +#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) +#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) +#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) +#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) +#define bFM3_GPIO_PDIR7_P5 *((volatile unsigned int*)(0x42666394UL)) +#define bFM3_GPIO_PDIR7_P6 *((volatile unsigned int*)(0x42666398UL)) +#define bFM3_GPIO_PDIR7_P7 *((volatile unsigned int*)(0x4266639CUL)) +#define bFM3_GPIO_PDIR7_P8 *((volatile unsigned int*)(0x426663A0UL)) +#define bFM3_GPIO_PDIR7_P9 *((volatile unsigned int*)(0x426663A4UL)) +#define bFM3_GPIO_PDIR7_PA *((volatile unsigned int*)(0x426663A8UL)) +#define bFM3_GPIO_PDIR7_PB *((volatile unsigned int*)(0x426663ACUL)) +#define bFM3_GPIO_PDIR7_PC *((volatile unsigned int*)(0x426663B0UL)) +#define bFM3_GPIO_PDIR7_PD *((volatile unsigned int*)(0x426663B4UL)) +#define bFM3_GPIO_PDIR7_PE *((volatile unsigned int*)(0x426663B8UL)) +#define bFM3_GPIO_PDIR7_PF *((volatile unsigned int*)(0x426663BCUL)) +#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) +#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) +#define bFM3_GPIO_PDIR8_P2 *((volatile unsigned int*)(0x42666408UL)) +#define bFM3_GPIO_PDIR8_P3 *((volatile unsigned int*)(0x4266640CUL)) +#define bFM3_GPIO_PDIR9_P0 *((volatile unsigned int*)(0x42666480UL)) +#define bFM3_GPIO_PDIR9_P1 *((volatile unsigned int*)(0x42666484UL)) +#define bFM3_GPIO_PDIR9_P2 *((volatile unsigned int*)(0x42666488UL)) +#define bFM3_GPIO_PDIR9_P3 *((volatile unsigned int*)(0x4266648CUL)) +#define bFM3_GPIO_PDIR9_P4 *((volatile unsigned int*)(0x42666490UL)) +#define bFM3_GPIO_PDIR9_P5 *((volatile unsigned int*)(0x42666494UL)) +#define bFM3_GPIO_PDIRA_P0 *((volatile unsigned int*)(0x42666500UL)) +#define bFM3_GPIO_PDIRA_P1 *((volatile unsigned int*)(0x42666504UL)) +#define bFM3_GPIO_PDIRA_P2 *((volatile unsigned int*)(0x42666508UL)) +#define bFM3_GPIO_PDIRA_P3 *((volatile unsigned int*)(0x4266650CUL)) +#define bFM3_GPIO_PDIRA_P4 *((volatile unsigned int*)(0x42666510UL)) +#define bFM3_GPIO_PDIRA_P5 *((volatile unsigned int*)(0x42666514UL)) +#define bFM3_GPIO_PDIRB_P0 *((volatile unsigned int*)(0x42666580UL)) +#define bFM3_GPIO_PDIRB_P1 *((volatile unsigned int*)(0x42666584UL)) +#define bFM3_GPIO_PDIRB_P2 *((volatile unsigned int*)(0x42666588UL)) +#define bFM3_GPIO_PDIRB_P3 *((volatile unsigned int*)(0x4266658CUL)) +#define bFM3_GPIO_PDIRB_P4 *((volatile unsigned int*)(0x42666590UL)) +#define bFM3_GPIO_PDIRB_P5 *((volatile unsigned int*)(0x42666594UL)) +#define bFM3_GPIO_PDIRB_P6 *((volatile unsigned int*)(0x42666598UL)) +#define bFM3_GPIO_PDIRB_P7 *((volatile unsigned int*)(0x4266659CUL)) +#define bFM3_GPIO_PDIRC_P0 *((volatile unsigned int*)(0x42666600UL)) +#define bFM3_GPIO_PDIRC_P1 *((volatile unsigned int*)(0x42666604UL)) +#define bFM3_GPIO_PDIRC_P2 *((volatile unsigned int*)(0x42666608UL)) +#define bFM3_GPIO_PDIRC_P3 *((volatile unsigned int*)(0x4266660CUL)) +#define bFM3_GPIO_PDIRC_P4 *((volatile unsigned int*)(0x42666610UL)) +#define bFM3_GPIO_PDIRC_P5 *((volatile unsigned int*)(0x42666614UL)) +#define bFM3_GPIO_PDIRC_P6 *((volatile unsigned int*)(0x42666618UL)) +#define bFM3_GPIO_PDIRC_P7 *((volatile unsigned int*)(0x4266661CUL)) +#define bFM3_GPIO_PDIRC_P8 *((volatile unsigned int*)(0x42666620UL)) +#define bFM3_GPIO_PDIRC_P9 *((volatile unsigned int*)(0x42666624UL)) +#define bFM3_GPIO_PDIRC_PA *((volatile unsigned int*)(0x42666628UL)) +#define bFM3_GPIO_PDIRC_PB *((volatile unsigned int*)(0x4266662CUL)) +#define bFM3_GPIO_PDIRC_PC *((volatile unsigned int*)(0x42666630UL)) +#define bFM3_GPIO_PDIRC_PD *((volatile unsigned int*)(0x42666634UL)) +#define bFM3_GPIO_PDIRC_PE *((volatile unsigned int*)(0x42666638UL)) +#define bFM3_GPIO_PDIRC_PF *((volatile unsigned int*)(0x4266663CUL)) +#define bFM3_GPIO_PDIRD_P0 *((volatile unsigned int*)(0x42666680UL)) +#define bFM3_GPIO_PDIRD_P1 *((volatile unsigned int*)(0x42666684UL)) +#define bFM3_GPIO_PDIRD_P2 *((volatile unsigned int*)(0x42666688UL)) +#define bFM3_GPIO_PDIRD_P3 *((volatile unsigned int*)(0x4266668CUL)) +#define bFM3_GPIO_PDIRE_P0 *((volatile unsigned int*)(0x42666700UL)) +#define bFM3_GPIO_PDIRE_P2 *((volatile unsigned int*)(0x42666708UL)) +#define bFM3_GPIO_PDIRE_P3 *((volatile unsigned int*)(0x4266670CUL)) +#define bFM3_GPIO_PDIRF_P0 *((volatile unsigned int*)(0x42666780UL)) +#define bFM3_GPIO_PDIRF_P1 *((volatile unsigned int*)(0x42666784UL)) +#define bFM3_GPIO_PDIRF_P2 *((volatile unsigned int*)(0x42666788UL)) +#define bFM3_GPIO_PDIRF_P3 *((volatile unsigned int*)(0x4266678CUL)) +#define bFM3_GPIO_PDIRF_P4 *((volatile unsigned int*)(0x42666790UL)) +#define bFM3_GPIO_PDIRF_P5 *((volatile unsigned int*)(0x42666794UL)) +#define bFM3_GPIO_PDIRF_P6 *((volatile unsigned int*)(0x42666798UL)) +#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) +#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) +#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) +#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) +#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) +#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) +#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) +#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) +#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) +#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) +#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) +#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) +#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) +#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) +#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) +#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) +#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) +#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) +#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) +#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) +#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) +#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) +#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) +#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) +#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) +#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) +#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) +#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) +#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) +#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) +#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) +#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) +#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) +#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) +#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) +#define bFM3_GPIO_PDOR2_P9 *((volatile unsigned int*)(0x42668124UL)) +#define bFM3_GPIO_PDOR3_P0 *((volatile unsigned int*)(0x42668180UL)) +#define bFM3_GPIO_PDOR3_P1 *((volatile unsigned int*)(0x42668184UL)) +#define bFM3_GPIO_PDOR3_P2 *((volatile unsigned int*)(0x42668188UL)) +#define bFM3_GPIO_PDOR3_P3 *((volatile unsigned int*)(0x4266818CUL)) +#define bFM3_GPIO_PDOR3_P4 *((volatile unsigned int*)(0x42668190UL)) +#define bFM3_GPIO_PDOR3_P5 *((volatile unsigned int*)(0x42668194UL)) +#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) +#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) +#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) +#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) +#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) +#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) +#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) +#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) +#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) +#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) +#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) +#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) +#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) +#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) +#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) +#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) +#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) +#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) +#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) +#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) +#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) +#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) +#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) +#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) +#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) +#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) +#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) +#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) +#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) +#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) +#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) +#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) +#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) +#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) +#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) +#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) +#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) +#define bFM3_GPIO_PDOR5_PC *((volatile unsigned int*)(0x426682B0UL)) +#define bFM3_GPIO_PDOR5_PD *((volatile unsigned int*)(0x426682B4UL)) +#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) +#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) +#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) +#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) +#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) +#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) +#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) +#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) +#define bFM3_GPIO_PDOR7_P5 *((volatile unsigned int*)(0x42668394UL)) +#define bFM3_GPIO_PDOR7_P6 *((volatile unsigned int*)(0x42668398UL)) +#define bFM3_GPIO_PDOR7_P7 *((volatile unsigned int*)(0x4266839CUL)) +#define bFM3_GPIO_PDOR7_P8 *((volatile unsigned int*)(0x426683A0UL)) +#define bFM3_GPIO_PDOR7_P9 *((volatile unsigned int*)(0x426683A4UL)) +#define bFM3_GPIO_PDOR7_PA *((volatile unsigned int*)(0x426683A8UL)) +#define bFM3_GPIO_PDOR7_PB *((volatile unsigned int*)(0x426683ACUL)) +#define bFM3_GPIO_PDOR7_PC *((volatile unsigned int*)(0x426683B0UL)) +#define bFM3_GPIO_PDOR7_PD *((volatile unsigned int*)(0x426683B4UL)) +#define bFM3_GPIO_PDOR7_PE *((volatile unsigned int*)(0x426683B8UL)) +#define bFM3_GPIO_PDOR7_PF *((volatile unsigned int*)(0x426683BCUL)) +#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) +#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) +#define bFM3_GPIO_PDOR8_P2 *((volatile unsigned int*)(0x42668408UL)) +#define bFM3_GPIO_PDOR8_P3 *((volatile unsigned int*)(0x4266840CUL)) +#define bFM3_GPIO_PDOR9_P0 *((volatile unsigned int*)(0x42668480UL)) +#define bFM3_GPIO_PDOR9_P1 *((volatile unsigned int*)(0x42668484UL)) +#define bFM3_GPIO_PDOR9_P2 *((volatile unsigned int*)(0x42668488UL)) +#define bFM3_GPIO_PDOR9_P3 *((volatile unsigned int*)(0x4266848CUL)) +#define bFM3_GPIO_PDOR9_P4 *((volatile unsigned int*)(0x42668490UL)) +#define bFM3_GPIO_PDOR9_P5 *((volatile unsigned int*)(0x42668494UL)) +#define bFM3_GPIO_PDORA_P0 *((volatile unsigned int*)(0x42668500UL)) +#define bFM3_GPIO_PDORA_P1 *((volatile unsigned int*)(0x42668504UL)) +#define bFM3_GPIO_PDORA_P2 *((volatile unsigned int*)(0x42668508UL)) +#define bFM3_GPIO_PDORA_P3 *((volatile unsigned int*)(0x4266850CUL)) +#define bFM3_GPIO_PDORA_P4 *((volatile unsigned int*)(0x42668510UL)) +#define bFM3_GPIO_PDORA_P5 *((volatile unsigned int*)(0x42668514UL)) +#define bFM3_GPIO_PDORB_P0 *((volatile unsigned int*)(0x42668580UL)) +#define bFM3_GPIO_PDORB_P1 *((volatile unsigned int*)(0x42668584UL)) +#define bFM3_GPIO_PDORB_P2 *((volatile unsigned int*)(0x42668588UL)) +#define bFM3_GPIO_PDORB_P3 *((volatile unsigned int*)(0x4266858CUL)) +#define bFM3_GPIO_PDORB_P4 *((volatile unsigned int*)(0x42668590UL)) +#define bFM3_GPIO_PDORB_P5 *((volatile unsigned int*)(0x42668594UL)) +#define bFM3_GPIO_PDORB_P6 *((volatile unsigned int*)(0x42668598UL)) +#define bFM3_GPIO_PDORB_P7 *((volatile unsigned int*)(0x4266859CUL)) +#define bFM3_GPIO_PDORC_P0 *((volatile unsigned int*)(0x42668600UL)) +#define bFM3_GPIO_PDORC_P1 *((volatile unsigned int*)(0x42668604UL)) +#define bFM3_GPIO_PDORC_P2 *((volatile unsigned int*)(0x42668608UL)) +#define bFM3_GPIO_PDORC_P3 *((volatile unsigned int*)(0x4266860CUL)) +#define bFM3_GPIO_PDORC_P4 *((volatile unsigned int*)(0x42668610UL)) +#define bFM3_GPIO_PDORC_P5 *((volatile unsigned int*)(0x42668614UL)) +#define bFM3_GPIO_PDORC_P6 *((volatile unsigned int*)(0x42668618UL)) +#define bFM3_GPIO_PDORC_P7 *((volatile unsigned int*)(0x4266861CUL)) +#define bFM3_GPIO_PDORC_P8 *((volatile unsigned int*)(0x42668620UL)) +#define bFM3_GPIO_PDORC_P9 *((volatile unsigned int*)(0x42668624UL)) +#define bFM3_GPIO_PDORC_PA *((volatile unsigned int*)(0x42668628UL)) +#define bFM3_GPIO_PDORC_PB *((volatile unsigned int*)(0x4266862CUL)) +#define bFM3_GPIO_PDORC_PC *((volatile unsigned int*)(0x42668630UL)) +#define bFM3_GPIO_PDORC_PD *((volatile unsigned int*)(0x42668634UL)) +#define bFM3_GPIO_PDORC_PE *((volatile unsigned int*)(0x42668638UL)) +#define bFM3_GPIO_PDORC_PF *((volatile unsigned int*)(0x4266863CUL)) +#define bFM3_GPIO_PDORD_P0 *((volatile unsigned int*)(0x42668680UL)) +#define bFM3_GPIO_PDORD_P1 *((volatile unsigned int*)(0x42668684UL)) +#define bFM3_GPIO_PDORD_P2 *((volatile unsigned int*)(0x42668688UL)) +#define bFM3_GPIO_PDORD_P3 *((volatile unsigned int*)(0x4266868CUL)) +#define bFM3_GPIO_PDORE_P0 *((volatile unsigned int*)(0x42668700UL)) +#define bFM3_GPIO_PDORE_P2 *((volatile unsigned int*)(0x42668708UL)) +#define bFM3_GPIO_PDORE_P3 *((volatile unsigned int*)(0x4266870CUL)) +#define bFM3_GPIO_PDORF_P0 *((volatile unsigned int*)(0x42668780UL)) +#define bFM3_GPIO_PDORF_P1 *((volatile unsigned int*)(0x42668784UL)) +#define bFM3_GPIO_PDORF_P2 *((volatile unsigned int*)(0x42668788UL)) +#define bFM3_GPIO_PDORF_P3 *((volatile unsigned int*)(0x4266878CUL)) +#define bFM3_GPIO_PDORF_P4 *((volatile unsigned int*)(0x42668790UL)) +#define bFM3_GPIO_PDORF_P5 *((volatile unsigned int*)(0x42668794UL)) +#define bFM3_GPIO_PDORF_P6 *((volatile unsigned int*)(0x42668798UL)) +#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) +#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) +#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) +#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) +#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) +#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) +#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) +#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) +#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) +#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) +#define bFM3_GPIO_ADE_AN10 *((volatile unsigned int*)(0x4266A028UL)) +#define bFM3_GPIO_ADE_AN11 *((volatile unsigned int*)(0x4266A02CUL)) +#define bFM3_GPIO_ADE_AN12 *((volatile unsigned int*)(0x4266A030UL)) +#define bFM3_GPIO_ADE_AN13 *((volatile unsigned int*)(0x4266A034UL)) +#define bFM3_GPIO_ADE_AN14 *((volatile unsigned int*)(0x4266A038UL)) +#define bFM3_GPIO_ADE_AN15 *((volatile unsigned int*)(0x4266A03CUL)) +#define bFM3_GPIO_ADE_AN16 *((volatile unsigned int*)(0x4266A040UL)) +#define bFM3_GPIO_ADE_AN17 *((volatile unsigned int*)(0x4266A044UL)) +#define bFM3_GPIO_ADE_AN18 *((volatile unsigned int*)(0x4266A048UL)) +#define bFM3_GPIO_ADE_AN19 *((volatile unsigned int*)(0x4266A04CUL)) +#define bFM3_GPIO_ADE_AN20 *((volatile unsigned int*)(0x4266A050UL)) +#define bFM3_GPIO_ADE_AN21 *((volatile unsigned int*)(0x4266A054UL)) +#define bFM3_GPIO_ADE_AN22 *((volatile unsigned int*)(0x4266A058UL)) +#define bFM3_GPIO_ADE_AN23 *((volatile unsigned int*)(0x4266A05CUL)) +#define bFM3_GPIO_ADE_AN24 *((volatile unsigned int*)(0x4266A060UL)) +#define bFM3_GPIO_ADE_AN25 *((volatile unsigned int*)(0x4266A064UL)) +#define bFM3_GPIO_ADE_AN26 *((volatile unsigned int*)(0x4266A068UL)) +#define bFM3_GPIO_ADE_AN27 *((volatile unsigned int*)(0x4266A06CUL)) +#define bFM3_GPIO_ADE_AN28 *((volatile unsigned int*)(0x4266A070UL)) +#define bFM3_GPIO_ADE_AN29 *((volatile unsigned int*)(0x4266A074UL)) +#define bFM3_GPIO_ADE_AN30 *((volatile unsigned int*)(0x4266A078UL)) +#define bFM3_GPIO_ADE_AN31 *((volatile unsigned int*)(0x4266A07CUL)) +#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) +#define bFM3_GPIO_SPSR_MAINXC *((volatile unsigned int*)(0x4266B008UL)) +#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) +#define bFM3_GPIO_SPSR_USB1C *((volatile unsigned int*)(0x4266B014UL)) +#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) +#define bFM3_GPIO_EPFR00_CROUTE0 *((volatile unsigned int*)(0x4266C004UL)) +#define bFM3_GPIO_EPFR00_CROUTE1 *((volatile unsigned int*)(0x4266C008UL)) +#define bFM3_GPIO_EPFR00_SUBOUTE0 *((volatile unsigned int*)(0x4266C018UL)) +#define bFM3_GPIO_EPFR00_SUBOUTE1 *((volatile unsigned int*)(0x4266C01CUL)) +#define bFM3_GPIO_EPFR00_USBP0E *((volatile unsigned int*)(0x4266C024UL)) +#define bFM3_GPIO_EPFR00_USBP1E *((volatile unsigned int*)(0x4266C034UL)) +#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) +#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) +#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) +#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) +#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) +#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) +#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) +#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) +#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) +#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) +#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) +#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) +#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) +#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) +#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) +#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) +#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) +#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) +#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) +#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) +#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) +#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) +#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) +#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) +#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) +#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) +#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) +#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) +#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) +#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) +#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) +#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) +#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) +#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) +#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) +#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) +#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) +#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) +#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) +#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) +#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) +#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) +#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) +#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) +#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) +#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) +#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) +#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) +#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) +#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) +#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) +#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) +#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) +#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) +#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) +#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) +#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) +#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) +#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) +#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) +#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) +#define bFM3_GPIO_EPFR03_RTO20E0 *((volatile unsigned int*)(0x4266C180UL)) +#define bFM3_GPIO_EPFR03_RTO20E1 *((volatile unsigned int*)(0x4266C184UL)) +#define bFM3_GPIO_EPFR03_RTO21E0 *((volatile unsigned int*)(0x4266C188UL)) +#define bFM3_GPIO_EPFR03_RTO21E1 *((volatile unsigned int*)(0x4266C18CUL)) +#define bFM3_GPIO_EPFR03_RTO22E0 *((volatile unsigned int*)(0x4266C190UL)) +#define bFM3_GPIO_EPFR03_RTO22E1 *((volatile unsigned int*)(0x4266C194UL)) +#define bFM3_GPIO_EPFR03_RTO23E0 *((volatile unsigned int*)(0x4266C198UL)) +#define bFM3_GPIO_EPFR03_RTO23E1 *((volatile unsigned int*)(0x4266C19CUL)) +#define bFM3_GPIO_EPFR03_RTO24E0 *((volatile unsigned int*)(0x4266C1A0UL)) +#define bFM3_GPIO_EPFR03_RTO24E1 *((volatile unsigned int*)(0x4266C1A4UL)) +#define bFM3_GPIO_EPFR03_RTO25E0 *((volatile unsigned int*)(0x4266C1A8UL)) +#define bFM3_GPIO_EPFR03_RTO25E1 *((volatile unsigned int*)(0x4266C1ACUL)) +#define bFM3_GPIO_EPFR03_DTTI2C *((volatile unsigned int*)(0x4266C1B0UL)) +#define bFM3_GPIO_EPFR03_DTTI2S0 *((volatile unsigned int*)(0x4266C1C0UL)) +#define bFM3_GPIO_EPFR03_DTTI2S1 *((volatile unsigned int*)(0x4266C1C4UL)) +#define bFM3_GPIO_EPFR03_FRCK2S0 *((volatile unsigned int*)(0x4266C1C8UL)) +#define bFM3_GPIO_EPFR03_FRCK2S1 *((volatile unsigned int*)(0x4266C1CCUL)) +#define bFM3_GPIO_EPFR03_IC20S0 *((volatile unsigned int*)(0x4266C1D0UL)) +#define bFM3_GPIO_EPFR03_IC20S1 *((volatile unsigned int*)(0x4266C1D4UL)) +#define bFM3_GPIO_EPFR03_IC20S2 *((volatile unsigned int*)(0x4266C1D8UL)) +#define bFM3_GPIO_EPFR03_IC21S0 *((volatile unsigned int*)(0x4266C1DCUL)) +#define bFM3_GPIO_EPFR03_IC21S1 *((volatile unsigned int*)(0x4266C1E0UL)) +#define bFM3_GPIO_EPFR03_IC21S2 *((volatile unsigned int*)(0x4266C1E4UL)) +#define bFM3_GPIO_EPFR03_IC22S0 *((volatile unsigned int*)(0x4266C1E8UL)) +#define bFM3_GPIO_EPFR03_IC22S1 *((volatile unsigned int*)(0x4266C1ECUL)) +#define bFM3_GPIO_EPFR03_IC22S2 *((volatile unsigned int*)(0x4266C1F0UL)) +#define bFM3_GPIO_EPFR03_IC23S0 *((volatile unsigned int*)(0x4266C1F4UL)) +#define bFM3_GPIO_EPFR03_IC23S1 *((volatile unsigned int*)(0x4266C1F8UL)) +#define bFM3_GPIO_EPFR03_IC23S2 *((volatile unsigned int*)(0x4266C1FCUL)) +#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) +#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) +#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) +#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) +#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) +#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) +#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) +#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) +#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) +#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) +#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) +#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) +#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) +#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) +#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) +#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) +#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) +#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) +#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) +#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) +#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) +#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) +#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) +#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) +#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) +#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) +#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) +#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) +#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) +#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) +#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) +#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) +#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) +#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) +#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) +#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) +#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) +#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) +#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) +#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) +#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) +#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) +#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) +#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) +#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) +#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) +#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) +#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) +#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) +#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) +#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) +#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) +#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) +#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) +#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) +#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) +#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) +#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) +#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) +#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) +#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) +#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) +#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) +#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) +#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) +#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) +#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) +#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) +#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) +#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) +#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) +#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) +#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) +#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) +#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) +#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) +#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) +#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) +#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) +#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) +#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) +#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) +#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) +#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) +#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) +#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) +#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) +#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) +#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) +#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) +#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) +#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) +#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) +#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) +#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) +#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) +#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) +#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) +#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) +#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) +#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) +#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) +#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) +#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) +#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) +#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) +#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) +#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) +#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) +#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) +#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) +#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) +#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) +#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) +#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) +#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) +#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) +#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) +#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) +#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) +#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) +#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) +#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) +#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) +#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) +#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) +#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) +#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) +#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) +#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) +#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) +#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) +#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) +#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) +#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) +#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) +#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) +#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) +#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) +#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) +#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) +#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) +#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) +#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) +#define bFM3_GPIO_EPFR10_UECLKE *((volatile unsigned int*)(0x4266C508UL)) +#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) +#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) +#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) +#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) +#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) +#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) +#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) +#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) +#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) +#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) +#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) +#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) +#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) +#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) +#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) +#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) +#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) +#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) +#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) +#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) +#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) +#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) +#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) +#define bFM3_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x4266C568UL)) +#define bFM3_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x4266C56CUL)) +#define bFM3_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x4266C570UL)) +#define bFM3_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x4266C574UL)) +#define bFM3_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x4266C578UL)) +#define bFM3_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x4266C57CUL)) +#define bFM3_GPIO_EPFR11_UEALEE *((volatile unsigned int*)(0x4266C580UL)) +#define bFM3_GPIO_EPFR11_UECS0E *((volatile unsigned int*)(0x4266C584UL)) +#define bFM3_GPIO_EPFR11_UEA01E *((volatile unsigned int*)(0x4266C588UL)) +#define bFM3_GPIO_EPFR11_UEA02E *((volatile unsigned int*)(0x4266C58CUL)) +#define bFM3_GPIO_EPFR11_UEA03E *((volatile unsigned int*)(0x4266C590UL)) +#define bFM3_GPIO_EPFR11_UEA04E *((volatile unsigned int*)(0x4266C594UL)) +#define bFM3_GPIO_EPFR11_UEA05E *((volatile unsigned int*)(0x4266C598UL)) +#define bFM3_GPIO_EPFR11_UEA06E *((volatile unsigned int*)(0x4266C59CUL)) +#define bFM3_GPIO_EPFR11_UEA07E *((volatile unsigned int*)(0x4266C5A0UL)) +#define bFM3_GPIO_EPFR11_UED00B *((volatile unsigned int*)(0x4266C5A4UL)) +#define bFM3_GPIO_EPFR11_UED01B *((volatile unsigned int*)(0x4266C5A8UL)) +#define bFM3_GPIO_EPFR11_UED02B *((volatile unsigned int*)(0x4266C5ACUL)) +#define bFM3_GPIO_EPFR11_UED03B *((volatile unsigned int*)(0x4266C5B0UL)) +#define bFM3_GPIO_EPFR11_UED04B *((volatile unsigned int*)(0x4266C5B4UL)) +#define bFM3_GPIO_EPFR11_UED05B *((volatile unsigned int*)(0x4266C5B8UL)) +#define bFM3_GPIO_EPFR11_UED06B *((volatile unsigned int*)(0x4266C5BCUL)) +#define bFM3_GPIO_EPFR11_UED07B *((volatile unsigned int*)(0x4266C5C0UL)) +#define bFM3_GPIO_EPFR11_UED08B *((volatile unsigned int*)(0x4266C5C4UL)) +#define bFM3_GPIO_EPFR11_UED09B *((volatile unsigned int*)(0x4266C5C8UL)) +#define bFM3_GPIO_EPFR11_UED10B *((volatile unsigned int*)(0x4266C5CCUL)) +#define bFM3_GPIO_EPFR11_UED11B *((volatile unsigned int*)(0x4266C5D0UL)) +#define bFM3_GPIO_EPFR11_UED12B *((volatile unsigned int*)(0x4266C5D4UL)) +#define bFM3_GPIO_EPFR11_UED13B *((volatile unsigned int*)(0x4266C5D8UL)) +#define bFM3_GPIO_EPFR11_UED14B *((volatile unsigned int*)(0x4266C5DCUL)) +#define bFM3_GPIO_EPFR11_UED15B *((volatile unsigned int*)(0x4266C5E0UL)) +#define bFM3_GPIO_EPFR11_UERLC *((volatile unsigned int*)(0x4266C5E4UL)) +#define bFM3_GPIO_EPFR12_TIOA8E0 *((volatile unsigned int*)(0x4266C608UL)) +#define bFM3_GPIO_EPFR12_TIOA8E1 *((volatile unsigned int*)(0x4266C60CUL)) +#define bFM3_GPIO_EPFR12_TIOB8S0 *((volatile unsigned int*)(0x4266C610UL)) +#define bFM3_GPIO_EPFR12_TIOB8S1 *((volatile unsigned int*)(0x4266C614UL)) +#define bFM3_GPIO_EPFR12_TIOA9S0 *((volatile unsigned int*)(0x4266C620UL)) +#define bFM3_GPIO_EPFR12_TIOA9S1 *((volatile unsigned int*)(0x4266C624UL)) +#define bFM3_GPIO_EPFR12_TIOA9E0 *((volatile unsigned int*)(0x4266C628UL)) +#define bFM3_GPIO_EPFR12_TIOA9E1 *((volatile unsigned int*)(0x4266C62CUL)) +#define bFM3_GPIO_EPFR12_TIOB9S0 *((volatile unsigned int*)(0x4266C630UL)) +#define bFM3_GPIO_EPFR12_TIOB9S1 *((volatile unsigned int*)(0x4266C634UL)) +#define bFM3_GPIO_EPFR12_TIOA10E0 *((volatile unsigned int*)(0x4266C648UL)) +#define bFM3_GPIO_EPFR12_TIOA10E1 *((volatile unsigned int*)(0x4266C64CUL)) +#define bFM3_GPIO_EPFR12_TIOB10S0 *((volatile unsigned int*)(0x4266C650UL)) +#define bFM3_GPIO_EPFR12_TIOB10S1 *((volatile unsigned int*)(0x4266C654UL)) +#define bFM3_GPIO_EPFR12_TIOA11S0 *((volatile unsigned int*)(0x4266C660UL)) +#define bFM3_GPIO_EPFR12_TIOA11S1 *((volatile unsigned int*)(0x4266C664UL)) +#define bFM3_GPIO_EPFR12_TIOA11E0 *((volatile unsigned int*)(0x4266C668UL)) +#define bFM3_GPIO_EPFR12_TIOA11E1 *((volatile unsigned int*)(0x4266C66CUL)) +#define bFM3_GPIO_EPFR12_TIOB11S0 *((volatile unsigned int*)(0x4266C670UL)) +#define bFM3_GPIO_EPFR12_TIOB11S1 *((volatile unsigned int*)(0x4266C674UL)) +#define bFM3_GPIO_EPFR13_TIOA12E0 *((volatile unsigned int*)(0x4266C688UL)) +#define bFM3_GPIO_EPFR13_TIOA12E1 *((volatile unsigned int*)(0x4266C68CUL)) +#define bFM3_GPIO_EPFR13_TIOB12S0 *((volatile unsigned int*)(0x4266C690UL)) +#define bFM3_GPIO_EPFR13_TIOB12S1 *((volatile unsigned int*)(0x4266C694UL)) +#define bFM3_GPIO_EPFR13_TIOA13S0 *((volatile unsigned int*)(0x4266C6A0UL)) +#define bFM3_GPIO_EPFR13_TIOA13S1 *((volatile unsigned int*)(0x4266C6A4UL)) +#define bFM3_GPIO_EPFR13_TIOA13E0 *((volatile unsigned int*)(0x4266C6A8UL)) +#define bFM3_GPIO_EPFR13_TIOA13E1 *((volatile unsigned int*)(0x4266C6ACUL)) +#define bFM3_GPIO_EPFR13_TIOB13S0 *((volatile unsigned int*)(0x4266C6B0UL)) +#define bFM3_GPIO_EPFR13_TIOB13S1 *((volatile unsigned int*)(0x4266C6B4UL)) +#define bFM3_GPIO_EPFR13_TIOA14E0 *((volatile unsigned int*)(0x4266C6C8UL)) +#define bFM3_GPIO_EPFR13_TIOA14E1 *((volatile unsigned int*)(0x4266C6CCUL)) +#define bFM3_GPIO_EPFR13_TIOB14S0 *((volatile unsigned int*)(0x4266C6D0UL)) +#define bFM3_GPIO_EPFR13_TIOB14S1 *((volatile unsigned int*)(0x4266C6D4UL)) +#define bFM3_GPIO_EPFR13_TIOA15S0 *((volatile unsigned int*)(0x4266C6E0UL)) +#define bFM3_GPIO_EPFR13_TIOA15S1 *((volatile unsigned int*)(0x4266C6E4UL)) +#define bFM3_GPIO_EPFR13_TIOA15E0 *((volatile unsigned int*)(0x4266C6E8UL)) +#define bFM3_GPIO_EPFR13_TIOA15E1 *((volatile unsigned int*)(0x4266C6ECUL)) +#define bFM3_GPIO_EPFR13_TIOB15S0 *((volatile unsigned int*)(0x4266C6F0UL)) +#define bFM3_GPIO_EPFR13_TIOB15S1 *((volatile unsigned int*)(0x4266C6F4UL)) +#define bFM3_GPIO_EPFR14_QAIN2S0 *((volatile unsigned int*)(0x4266C700UL)) +#define bFM3_GPIO_EPFR14_QAIN2S1 *((volatile unsigned int*)(0x4266C704UL)) +#define bFM3_GPIO_EPFR14_QBIN2S0 *((volatile unsigned int*)(0x4266C708UL)) +#define bFM3_GPIO_EPFR14_QBIN2S1 *((volatile unsigned int*)(0x4266C70CUL)) +#define bFM3_GPIO_EPFR14_QZIN2S0 *((volatile unsigned int*)(0x4266C710UL)) +#define bFM3_GPIO_EPFR14_QZIN2S1 *((volatile unsigned int*)(0x4266C714UL)) +#define bFM3_GPIO_EPFR14_E_TD0E *((volatile unsigned int*)(0x4266C748UL)) +#define bFM3_GPIO_EPFR14_E_TD1E *((volatile unsigned int*)(0x4266C74CUL)) +#define bFM3_GPIO_EPFR14_E_TE0E *((volatile unsigned int*)(0x4266C750UL)) +#define bFM3_GPIO_EPFR14_E_TE1E *((volatile unsigned int*)(0x4266C754UL)) +#define bFM3_GPIO_EPFR14_E_MC0E *((volatile unsigned int*)(0x4266C758UL)) +#define bFM3_GPIO_EPFR14_E_MC1B *((volatile unsigned int*)(0x4266C75CUL)) +#define bFM3_GPIO_EPFR14_E_MD0B *((volatile unsigned int*)(0x4266C760UL)) +#define bFM3_GPIO_EPFR14_E_MD1B *((volatile unsigned int*)(0x4266C764UL)) +#define bFM3_GPIO_EPFR14_E_CKE *((volatile unsigned int*)(0x4266C768UL)) +#define bFM3_GPIO_EPFR14_E_PSE *((volatile unsigned int*)(0x4266C76CUL)) +#define bFM3_GPIO_EPFR14_E_SPLC0 *((volatile unsigned int*)(0x4266C770UL)) +#define bFM3_GPIO_EPFR14_E_SPLC1 *((volatile unsigned int*)(0x4266C774UL)) +#define bFM3_GPIO_EPFR15_EINT16S0 *((volatile unsigned int*)(0x4266C780UL)) +#define bFM3_GPIO_EPFR15_EINT16S1 *((volatile unsigned int*)(0x4266C784UL)) +#define bFM3_GPIO_EPFR15_EINT17S0 *((volatile unsigned int*)(0x4266C788UL)) +#define bFM3_GPIO_EPFR15_EINT17S1 *((volatile unsigned int*)(0x4266C78CUL)) +#define bFM3_GPIO_EPFR15_EINT18S0 *((volatile unsigned int*)(0x4266C790UL)) +#define bFM3_GPIO_EPFR15_EINT18S1 *((volatile unsigned int*)(0x4266C794UL)) +#define bFM3_GPIO_EPFR15_EINT19S0 *((volatile unsigned int*)(0x4266C798UL)) +#define bFM3_GPIO_EPFR15_EINT19S1 *((volatile unsigned int*)(0x4266C79CUL)) +#define bFM3_GPIO_EPFR15_EINT20S0 *((volatile unsigned int*)(0x4266C7A0UL)) +#define bFM3_GPIO_EPFR15_EINT20S1 *((volatile unsigned int*)(0x4266C7A4UL)) +#define bFM3_GPIO_EPFR15_EINT21S0 *((volatile unsigned int*)(0x4266C7A8UL)) +#define bFM3_GPIO_EPFR15_EINT21S1 *((volatile unsigned int*)(0x4266C7ACUL)) +#define bFM3_GPIO_EPFR15_EINT22S0 *((volatile unsigned int*)(0x4266C7B0UL)) +#define bFM3_GPIO_EPFR15_EINT22S1 *((volatile unsigned int*)(0x4266C7B4UL)) +#define bFM3_GPIO_EPFR15_EINT23S0 *((volatile unsigned int*)(0x4266C7B8UL)) +#define bFM3_GPIO_EPFR15_EINT23S1 *((volatile unsigned int*)(0x4266C7BCUL)) +#define bFM3_GPIO_EPFR15_EINT24S0 *((volatile unsigned int*)(0x4266C7C0UL)) +#define bFM3_GPIO_EPFR15_EINT24S1 *((volatile unsigned int*)(0x4266C7C4UL)) +#define bFM3_GPIO_EPFR15_EINT25S0 *((volatile unsigned int*)(0x4266C7C8UL)) +#define bFM3_GPIO_EPFR15_EINT25S1 *((volatile unsigned int*)(0x4266C7CCUL)) +#define bFM3_GPIO_EPFR15_EINT26S0 *((volatile unsigned int*)(0x4266C7D0UL)) +#define bFM3_GPIO_EPFR15_EINT26S1 *((volatile unsigned int*)(0x4266C7D4UL)) +#define bFM3_GPIO_EPFR15_EINT27S0 *((volatile unsigned int*)(0x4266C7D8UL)) +#define bFM3_GPIO_EPFR15_EINT27S1 *((volatile unsigned int*)(0x4266C7DCUL)) +#define bFM3_GPIO_EPFR15_EINT28S0 *((volatile unsigned int*)(0x4266C7E0UL)) +#define bFM3_GPIO_EPFR15_EINT28S1 *((volatile unsigned int*)(0x4266C7E4UL)) +#define bFM3_GPIO_EPFR15_EINT29S0 *((volatile unsigned int*)(0x4266C7E8UL)) +#define bFM3_GPIO_EPFR15_EINT29S1 *((volatile unsigned int*)(0x4266C7ECUL)) +#define bFM3_GPIO_EPFR15_EINT30S0 *((volatile unsigned int*)(0x4266C7F0UL)) +#define bFM3_GPIO_EPFR15_EINT30S1 *((volatile unsigned int*)(0x4266C7F4UL)) +#define bFM3_GPIO_EPFR15_EINT31S0 *((volatile unsigned int*)(0x4266C7F8UL)) +#define bFM3_GPIO_EPFR15_EINT31S1 *((volatile unsigned int*)(0x4266C7FCUL)) +#define bFM3_GPIO_PZR0_P0 *((volatile unsigned int*)(0x4266E000UL)) +#define bFM3_GPIO_PZR0_P1 *((volatile unsigned int*)(0x4266E004UL)) +#define bFM3_GPIO_PZR0_P2 *((volatile unsigned int*)(0x4266E008UL)) +#define bFM3_GPIO_PZR0_P3 *((volatile unsigned int*)(0x4266E00CUL)) +#define bFM3_GPIO_PZR0_P4 *((volatile unsigned int*)(0x4266E010UL)) +#define bFM3_GPIO_PZR0_P5 *((volatile unsigned int*)(0x4266E014UL)) +#define bFM3_GPIO_PZR0_P6 *((volatile unsigned int*)(0x4266E018UL)) +#define bFM3_GPIO_PZR0_P7 *((volatile unsigned int*)(0x4266E01CUL)) +#define bFM3_GPIO_PZR0_P8 *((volatile unsigned int*)(0x4266E020UL)) +#define bFM3_GPIO_PZR0_P9 *((volatile unsigned int*)(0x4266E024UL)) +#define bFM3_GPIO_PZR1_P0 *((volatile unsigned int*)(0x4266E080UL)) +#define bFM3_GPIO_PZR1_P1 *((volatile unsigned int*)(0x4266E084UL)) +#define bFM3_GPIO_PZR1_P2 *((volatile unsigned int*)(0x4266E088UL)) +#define bFM3_GPIO_PZR1_P3 *((volatile unsigned int*)(0x4266E08CUL)) +#define bFM3_GPIO_PZR1_P4 *((volatile unsigned int*)(0x4266E090UL)) +#define bFM3_GPIO_PZR1_P5 *((volatile unsigned int*)(0x4266E094UL)) +#define bFM3_GPIO_PZR1_P6 *((volatile unsigned int*)(0x4266E098UL)) +#define bFM3_GPIO_PZR1_P7 *((volatile unsigned int*)(0x4266E09CUL)) +#define bFM3_GPIO_PZR1_P8 *((volatile unsigned int*)(0x4266E0A0UL)) +#define bFM3_GPIO_PZR1_P9 *((volatile unsigned int*)(0x4266E0A4UL)) +#define bFM3_GPIO_PZR1_PA *((volatile unsigned int*)(0x4266E0A8UL)) +#define bFM3_GPIO_PZR1_PB *((volatile unsigned int*)(0x4266E0ACUL)) +#define bFM3_GPIO_PZR1_PC *((volatile unsigned int*)(0x4266E0B0UL)) +#define bFM3_GPIO_PZR1_PD *((volatile unsigned int*)(0x4266E0B4UL)) +#define bFM3_GPIO_PZR1_PE *((volatile unsigned int*)(0x4266E0B8UL)) +#define bFM3_GPIO_PZR1_PF *((volatile unsigned int*)(0x4266E0BCUL)) +#define bFM3_GPIO_PZR2_P0 *((volatile unsigned int*)(0x4266E100UL)) +#define bFM3_GPIO_PZR2_P1 *((volatile unsigned int*)(0x4266E104UL)) +#define bFM3_GPIO_PZR2_P2 *((volatile unsigned int*)(0x4266E108UL)) +#define bFM3_GPIO_PZR2_P3 *((volatile unsigned int*)(0x4266E10CUL)) +#define bFM3_GPIO_PZR2_P4 *((volatile unsigned int*)(0x4266E110UL)) +#define bFM3_GPIO_PZR2_P5 *((volatile unsigned int*)(0x4266E114UL)) +#define bFM3_GPIO_PZR2_P6 *((volatile unsigned int*)(0x4266E118UL)) +#define bFM3_GPIO_PZR2_P7 *((volatile unsigned int*)(0x4266E11CUL)) +#define bFM3_GPIO_PZR2_P8 *((volatile unsigned int*)(0x4266E120UL)) +#define bFM3_GPIO_PZR2_P9 *((volatile unsigned int*)(0x4266E124UL)) +#define bFM3_GPIO_PZR3_P0 *((volatile unsigned int*)(0x4266E180UL)) +#define bFM3_GPIO_PZR3_P1 *((volatile unsigned int*)(0x4266E184UL)) +#define bFM3_GPIO_PZR3_P2 *((volatile unsigned int*)(0x4266E188UL)) +#define bFM3_GPIO_PZR3_P3 *((volatile unsigned int*)(0x4266E18CUL)) +#define bFM3_GPIO_PZR3_P4 *((volatile unsigned int*)(0x4266E190UL)) +#define bFM3_GPIO_PZR3_P5 *((volatile unsigned int*)(0x4266E194UL)) +#define bFM3_GPIO_PZR3_P6 *((volatile unsigned int*)(0x4266E198UL)) +#define bFM3_GPIO_PZR3_P7 *((volatile unsigned int*)(0x4266E19CUL)) +#define bFM3_GPIO_PZR3_P8 *((volatile unsigned int*)(0x4266E1A0UL)) +#define bFM3_GPIO_PZR3_P9 *((volatile unsigned int*)(0x4266E1A4UL)) +#define bFM3_GPIO_PZR3_PA *((volatile unsigned int*)(0x4266E1A8UL)) +#define bFM3_GPIO_PZR3_PB *((volatile unsigned int*)(0x4266E1ACUL)) +#define bFM3_GPIO_PZR3_PC *((volatile unsigned int*)(0x4266E1B0UL)) +#define bFM3_GPIO_PZR3_PD *((volatile unsigned int*)(0x4266E1B4UL)) +#define bFM3_GPIO_PZR3_PE *((volatile unsigned int*)(0x4266E1B8UL)) +#define bFM3_GPIO_PZR3_PF *((volatile unsigned int*)(0x4266E1BCUL)) +#define bFM3_GPIO_PZR4_P0 *((volatile unsigned int*)(0x4266E200UL)) +#define bFM3_GPIO_PZR4_P1 *((volatile unsigned int*)(0x4266E204UL)) +#define bFM3_GPIO_PZR4_P2 *((volatile unsigned int*)(0x4266E208UL)) +#define bFM3_GPIO_PZR4_P3 *((volatile unsigned int*)(0x4266E20CUL)) +#define bFM3_GPIO_PZR4_P4 *((volatile unsigned int*)(0x4266E210UL)) +#define bFM3_GPIO_PZR4_P5 *((volatile unsigned int*)(0x4266E214UL)) +#define bFM3_GPIO_PZR4_P6 *((volatile unsigned int*)(0x4266E218UL)) +#define bFM3_GPIO_PZR4_P7 *((volatile unsigned int*)(0x4266E21CUL)) +#define bFM3_GPIO_PZR4_P8 *((volatile unsigned int*)(0x4266E220UL)) +#define bFM3_GPIO_PZR4_P9 *((volatile unsigned int*)(0x4266E224UL)) +#define bFM3_GPIO_PZR4_PA *((volatile unsigned int*)(0x4266E228UL)) +#define bFM3_GPIO_PZR4_PB *((volatile unsigned int*)(0x4266E22CUL)) +#define bFM3_GPIO_PZR4_PC *((volatile unsigned int*)(0x4266E230UL)) +#define bFM3_GPIO_PZR4_PD *((volatile unsigned int*)(0x4266E234UL)) +#define bFM3_GPIO_PZR4_PE *((volatile unsigned int*)(0x4266E238UL)) +#define bFM3_GPIO_PZR5_P0 *((volatile unsigned int*)(0x4266E280UL)) +#define bFM3_GPIO_PZR5_P1 *((volatile unsigned int*)(0x4266E284UL)) +#define bFM3_GPIO_PZR5_P2 *((volatile unsigned int*)(0x4266E288UL)) +#define bFM3_GPIO_PZR5_P3 *((volatile unsigned int*)(0x4266E28CUL)) +#define bFM3_GPIO_PZR5_P4 *((volatile unsigned int*)(0x4266E290UL)) +#define bFM3_GPIO_PZR5_P5 *((volatile unsigned int*)(0x4266E294UL)) +#define bFM3_GPIO_PZR5_P6 *((volatile unsigned int*)(0x4266E298UL)) +#define bFM3_GPIO_PZR5_P7 *((volatile unsigned int*)(0x4266E29CUL)) +#define bFM3_GPIO_PZR5_P8 *((volatile unsigned int*)(0x4266E2A0UL)) +#define bFM3_GPIO_PZR5_P9 *((volatile unsigned int*)(0x4266E2A4UL)) +#define bFM3_GPIO_PZR5_PA *((volatile unsigned int*)(0x4266E2A8UL)) +#define bFM3_GPIO_PZR5_PB *((volatile unsigned int*)(0x4266E2ACUL)) +#define bFM3_GPIO_PZR5_PC *((volatile unsigned int*)(0x4266E2B0UL)) +#define bFM3_GPIO_PZR5_PD *((volatile unsigned int*)(0x4266E2B4UL)) +#define bFM3_GPIO_PZR6_P0 *((volatile unsigned int*)(0x4266E300UL)) +#define bFM3_GPIO_PZR6_P1 *((volatile unsigned int*)(0x4266E304UL)) +#define bFM3_GPIO_PZR6_P2 *((volatile unsigned int*)(0x4266E308UL)) +#define bFM3_GPIO_PZR7_P0 *((volatile unsigned int*)(0x4266E380UL)) +#define bFM3_GPIO_PZR7_P1 *((volatile unsigned int*)(0x4266E384UL)) +#define bFM3_GPIO_PZR7_P2 *((volatile unsigned int*)(0x4266E388UL)) +#define bFM3_GPIO_PZR7_P3 *((volatile unsigned int*)(0x4266E38CUL)) +#define bFM3_GPIO_PZR7_P4 *((volatile unsigned int*)(0x4266E390UL)) +#define bFM3_GPIO_PZR7_P5 *((volatile unsigned int*)(0x4266E394UL)) +#define bFM3_GPIO_PZR7_P6 *((volatile unsigned int*)(0x4266E398UL)) +#define bFM3_GPIO_PZR7_P7 *((volatile unsigned int*)(0x4266E39CUL)) +#define bFM3_GPIO_PZR7_P8 *((volatile unsigned int*)(0x4266E3A0UL)) +#define bFM3_GPIO_PZR7_P9 *((volatile unsigned int*)(0x4266E3A4UL)) +#define bFM3_GPIO_PZR7_PA *((volatile unsigned int*)(0x4266E3A8UL)) +#define bFM3_GPIO_PZR7_PB *((volatile unsigned int*)(0x4266E3ACUL)) +#define bFM3_GPIO_PZR7_PC *((volatile unsigned int*)(0x4266E3B0UL)) +#define bFM3_GPIO_PZR7_PD *((volatile unsigned int*)(0x4266E3B4UL)) +#define bFM3_GPIO_PZR7_PE *((volatile unsigned int*)(0x4266E3B8UL)) +#define bFM3_GPIO_PZR7_PF *((volatile unsigned int*)(0x4266E3BCUL)) +#define bFM3_GPIO_PZR8_P0 *((volatile unsigned int*)(0x4266E400UL)) +#define bFM3_GPIO_PZR8_P1 *((volatile unsigned int*)(0x4266E404UL)) +#define bFM3_GPIO_PZR8_P2 *((volatile unsigned int*)(0x4266E408UL)) +#define bFM3_GPIO_PZR8_P3 *((volatile unsigned int*)(0x4266E40CUL)) +#define bFM3_GPIO_PZR9_P0 *((volatile unsigned int*)(0x4266E480UL)) +#define bFM3_GPIO_PZR9_P1 *((volatile unsigned int*)(0x4266E484UL)) +#define bFM3_GPIO_PZR9_P2 *((volatile unsigned int*)(0x4266E488UL)) +#define bFM3_GPIO_PZR9_P3 *((volatile unsigned int*)(0x4266E48CUL)) +#define bFM3_GPIO_PZR9_P4 *((volatile unsigned int*)(0x4266E490UL)) +#define bFM3_GPIO_PZR9_P5 *((volatile unsigned int*)(0x4266E494UL)) +#define bFM3_GPIO_PZRA_P0 *((volatile unsigned int*)(0x4266E500UL)) +#define bFM3_GPIO_PZRA_P1 *((volatile unsigned int*)(0x4266E504UL)) +#define bFM3_GPIO_PZRA_P2 *((volatile unsigned int*)(0x4266E508UL)) +#define bFM3_GPIO_PZRA_P3 *((volatile unsigned int*)(0x4266E50CUL)) +#define bFM3_GPIO_PZRA_P4 *((volatile unsigned int*)(0x4266E510UL)) +#define bFM3_GPIO_PZRA_P5 *((volatile unsigned int*)(0x4266E514UL)) +#define bFM3_GPIO_PZRB_P0 *((volatile unsigned int*)(0x4266E580UL)) +#define bFM3_GPIO_PZRB_P1 *((volatile unsigned int*)(0x4266E584UL)) +#define bFM3_GPIO_PZRB_P2 *((volatile unsigned int*)(0x4266E588UL)) +#define bFM3_GPIO_PZRB_P3 *((volatile unsigned int*)(0x4266E58CUL)) +#define bFM3_GPIO_PZRB_P4 *((volatile unsigned int*)(0x4266E590UL)) +#define bFM3_GPIO_PZRB_P5 *((volatile unsigned int*)(0x4266E594UL)) +#define bFM3_GPIO_PZRB_P6 *((volatile unsigned int*)(0x4266E598UL)) +#define bFM3_GPIO_PZRB_P7 *((volatile unsigned int*)(0x4266E59CUL)) +#define bFM3_GPIO_PZRC_P0 *((volatile unsigned int*)(0x4266E600UL)) +#define bFM3_GPIO_PZRC_P1 *((volatile unsigned int*)(0x4266E604UL)) +#define bFM3_GPIO_PZRC_P2 *((volatile unsigned int*)(0x4266E608UL)) +#define bFM3_GPIO_PZRC_P3 *((volatile unsigned int*)(0x4266E60CUL)) +#define bFM3_GPIO_PZRC_P4 *((volatile unsigned int*)(0x4266E610UL)) +#define bFM3_GPIO_PZRC_P5 *((volatile unsigned int*)(0x4266E614UL)) +#define bFM3_GPIO_PZRC_P6 *((volatile unsigned int*)(0x4266E618UL)) +#define bFM3_GPIO_PZRC_P7 *((volatile unsigned int*)(0x4266E61CUL)) +#define bFM3_GPIO_PZRC_P8 *((volatile unsigned int*)(0x4266E620UL)) +#define bFM3_GPIO_PZRC_P9 *((volatile unsigned int*)(0x4266E624UL)) +#define bFM3_GPIO_PZRC_PA *((volatile unsigned int*)(0x4266E628UL)) +#define bFM3_GPIO_PZRC_PB *((volatile unsigned int*)(0x4266E62CUL)) +#define bFM3_GPIO_PZRC_PC *((volatile unsigned int*)(0x4266E630UL)) +#define bFM3_GPIO_PZRC_PD *((volatile unsigned int*)(0x4266E634UL)) +#define bFM3_GPIO_PZRC_PE *((volatile unsigned int*)(0x4266E638UL)) +#define bFM3_GPIO_PZRC_PF *((volatile unsigned int*)(0x4266E63CUL)) +#define bFM3_GPIO_PZRD_P0 *((volatile unsigned int*)(0x4266E680UL)) +#define bFM3_GPIO_PZRD_P1 *((volatile unsigned int*)(0x4266E684UL)) +#define bFM3_GPIO_PZRD_P2 *((volatile unsigned int*)(0x4266E688UL)) +#define bFM3_GPIO_PZRD_P3 *((volatile unsigned int*)(0x4266E68CUL)) +#define bFM3_GPIO_PZRE_P0 *((volatile unsigned int*)(0x4266E700UL)) +#define bFM3_GPIO_PZRE_P2 *((volatile unsigned int*)(0x4266E708UL)) +#define bFM3_GPIO_PZRE_P3 *((volatile unsigned int*)(0x4266E70CUL)) +#define bFM3_GPIO_PZRF_P0 *((volatile unsigned int*)(0x4266E780UL)) +#define bFM3_GPIO_PZRF_P1 *((volatile unsigned int*)(0x4266E784UL)) +#define bFM3_GPIO_PZRF_P2 *((volatile unsigned int*)(0x4266E788UL)) +#define bFM3_GPIO_PZRF_P3 *((volatile unsigned int*)(0x4266E78CUL)) +#define bFM3_GPIO_PZRF_P4 *((volatile unsigned int*)(0x4266E790UL)) +#define bFM3_GPIO_PZRF_P5 *((volatile unsigned int*)(0x4266E794UL)) +#define bFM3_GPIO_PZRF_P6 *((volatile unsigned int*)(0x4266E798UL)) + +/* Low voltage detection registers */ +#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) +#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) +#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) +#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) +#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) +#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) +#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) +#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) + +/* USB clock registers */ +#define bFM3_USBETHERNETCLK_UCCR_UCEN0 *((volatile unsigned int*)(0x426C0000UL)) +#define bFM3_USBETHERNETCLK_UCCR_UCSEL0 *((volatile unsigned int*)(0x426C0004UL)) +#define bFM3_USBETHERNETCLK_UCCR_UCSEL1 *((volatile unsigned int*)(0x426C0008UL)) +#define bFM3_USBETHERNETCLK_UCCR_UCEN1 *((volatile unsigned int*)(0x426C000CUL)) +#define bFM3_USBETHERNETCLK_UCCR_ECEN *((volatile unsigned int*)(0x426C0010UL)) +#define bFM3_USBETHERNETCLK_UCCR_ECSEL0 *((volatile unsigned int*)(0x426C0014UL)) +#define bFM3_USBETHERNETCLK_UCCR_ECSEL1 *((volatile unsigned int*)(0x426C0018UL)) +#define bFM3_USBETHERNETCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) +#define bFM3_USBETHERNETCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) +#define bFM3_USBETHERNETCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) +#define bFM3_USBETHERNETCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) +#define bFM3_USBETHERNETCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) +#define bFM3_USBETHERNETCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN5 *((volatile unsigned int*)(0x426C0214UL)) +#define bFM3_USBETHERNETCLK_UPCR4_UPLLN6 *((volatile unsigned int*)(0x426C0218UL)) +#define bFM3_USBETHERNETCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) +#define bFM3_USBETHERNETCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) +#define bFM3_USBETHERNETCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) +#define bFM3_USBETHERNETCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM0 *((volatile unsigned int*)(0x426C0480UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM1 *((volatile unsigned int*)(0x426C0484UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM2 *((volatile unsigned int*)(0x426C0488UL)) +#define bFM3_USBETHERNETCLK_UPCR5_UPLLM3 *((volatile unsigned int*)(0x426C048CUL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR0 *((volatile unsigned int*)(0x426C0500UL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR1 *((volatile unsigned int*)(0x426C0504UL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR2 *((volatile unsigned int*)(0x426C0508UL)) +#define bFM3_USBETHERNETCLK_UPCR6_UBSR3 *((volatile unsigned int*)(0x426C050CUL)) +#define bFM3_USBETHERNETCLK_UPCR7_EPLLEN *((volatile unsigned int*)(0x426C0580UL)) +#define bFM3_USBETHERNETCLK_USBEN0_USBEN0 *((volatile unsigned int*)(0x426C0600UL)) +#define bFM3_USBETHERNETCLK_USBEN1_USBEN1 *((volatile unsigned int*)(0x426C0680UL)) + +/* UART asynchronous channel 0 registers */ +#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) +#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* UART synchronous channel 0 registers */ +#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) +#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) + +/* UART LIN channel 0 registers */ +#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) +#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) +#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) + +/* I2C channel 0 registers */ +#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) +#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) +#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) +#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) +#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) +#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) +#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) +#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) +#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) +#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) +#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) +#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) +#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) +#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) +#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) +#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) +#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) +#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) +#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) +#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) +#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) +#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) +#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) +#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) +#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) +#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) +#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) +#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) +#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) +#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) +#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) +#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) +#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) +#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) +#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) +#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) +#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) +#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) +#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) +#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) +#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) +#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) +#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) + +/* UART asynchronous channel 1 registers */ +#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) +#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* UART synchronous channel 1 registers */ +#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) +#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) + +/* UART LIN channel 1 registers */ +#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) +#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) +#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) + +/* I2C channel 1 registers */ +#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) +#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) +#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) +#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) +#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) +#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) +#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) +#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) +#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) +#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) +#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) +#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) +#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) +#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) +#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) +#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) +#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) +#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) +#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) +#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) +#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) +#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) +#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) +#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) +#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) +#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) +#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) +#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) +#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) +#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) +#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) +#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) +#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) +#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) +#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) +#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) +#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) +#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) +#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) +#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) +#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) +#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) +#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) + +/* UART asynchronous channel 2 registers */ +#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) +#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* UART synchronous channel 2 registers */ +#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) +#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) + +/* UART LIN channel 2 registers */ +#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) +#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) +#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) + +/* I2C channel 2 registers */ +#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) +#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) +#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) +#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) +#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) +#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) +#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) +#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) +#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) +#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) +#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) +#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) +#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) +#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) +#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) +#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) +#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) +#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) +#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) +#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) +#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) +#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) +#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) +#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) +#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) +#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) +#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) +#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) +#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) +#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) +#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) +#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) +#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) +#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) +#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) +#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) +#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) +#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) +#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) +#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) +#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) +#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) +#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) + +/* UART asynchronous channel 3 registers */ +#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) +#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* UART synchronous channel 3 registers */ +#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) +#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) + +/* UART LIN channel 3 registers */ +#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) +#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) +#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) + +/* I2C channel 3 registers */ +#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) +#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) +#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) +#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) +#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) +#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) +#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) +#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) +#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) +#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) +#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) +#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) +#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) +#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) +#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) +#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) +#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) +#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) +#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) +#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) +#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) +#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) +#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) +#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) +#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) +#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) +#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) +#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) +#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) +#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) +#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) +#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) +#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) +#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) +#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) +#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) +#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) +#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) +#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) +#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) +#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) +#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) +#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) + +/* UART asynchronous channel 4 registers */ +#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) +#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART synchronous channel 4 registers */ +#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) +#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART LIN channel 4 registers */ +#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) +#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) +#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* I2C channel 4 registers */ +#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) +#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) +#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) +#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) +#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) +#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) +#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) +#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) +#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) +#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) +#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) +#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) +#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) +#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) +#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) +#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) +#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) +#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) +#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) +#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) +#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) +#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) +#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) +#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) +#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) +#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) +#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) +#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) +#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) +#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) +#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) +#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) +#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) +#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) +#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) +#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) +#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) +#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) +#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) +#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) +#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) +#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) +#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) +#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) +#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) +#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) +#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) +#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) +#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) +#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) +#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) +#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) +#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) +#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) +#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) +#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) +#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) +#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) +#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) +#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) +#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) +#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) + +/* UART asynchronous channel 5 registers */ +#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) +#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART synchronous channel 5 registers */ +#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) +#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART LIN channel 5 registers */ +#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) +#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) +#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* I2C channel 5 registers */ +#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) +#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) +#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) +#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) +#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) +#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) +#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) +#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) +#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) +#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) +#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) +#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) +#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) +#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) +#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) +#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) +#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) +#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) +#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) +#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) +#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) +#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) +#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) +#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) +#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) +#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) +#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) +#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) +#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) +#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) +#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) +#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) +#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) +#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) +#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) +#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) +#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) +#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) +#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) +#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) +#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) +#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) +#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) +#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) +#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) +#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) +#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) +#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) +#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) +#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) +#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) +#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) +#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) +#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) +#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) +#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) +#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) +#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) +#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) +#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) +#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) +#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) + +/* UART asynchronous channel 6 registers */ +#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) +#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART synchronous channel 6 registers */ +#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) +#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART LIN channel 6 registers */ +#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) +#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) +#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* I2C channel 6 registers */ +#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) +#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) +#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) +#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) +#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) +#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) +#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) +#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) +#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) +#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) +#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) +#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) +#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) +#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) +#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) +#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) +#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) +#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) +#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) +#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) +#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) +#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) +#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) +#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) +#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) +#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) +#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) +#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) +#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) +#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) +#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) +#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) +#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) +#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) +#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) +#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) +#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) +#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) +#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) +#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) +#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) +#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) +#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) +#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) +#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) +#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) +#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) +#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) +#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) +#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) +#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) +#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) +#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) +#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) +#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) +#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) +#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) +#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) +#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) +#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) +#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) +#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) + +/* UART asynchronous channel 7 registers */ +#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) +#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART synchronous channel 7 registers */ +#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) +#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* UART LIN channel 7 registers */ +#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) +#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) +#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* I2C channel 7 registers */ +#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) +#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) +#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) +#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) +#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) +#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) +#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) +#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) +#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) +#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) +#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) +#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) +#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) +#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) +#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) +#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) +#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) +#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) +#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) +#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) +#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) +#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) +#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) +#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) +#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) +#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) +#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) +#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) +#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) +#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) +#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) +#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) +#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) +#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) +#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) +#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) +#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) +#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) +#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) +#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) +#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) +#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) +#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) +#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) +#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) +#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) +#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) +#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) +#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) +#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) +#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) +#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) +#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) +#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) +#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) +#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) +#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) +#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) +#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) +#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) +#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) +#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) + +/* MFS Noise Filter Control registers */ +#define bFM3_MFS_NFC_I2CDNF_I2CDNF00 *((volatile unsigned int*)(0x42710000UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF01 *((volatile unsigned int*)(0x42710004UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF10 *((volatile unsigned int*)(0x42710008UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF11 *((volatile unsigned int*)(0x4271000CUL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF20 *((volatile unsigned int*)(0x42710010UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF21 *((volatile unsigned int*)(0x42710014UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF30 *((volatile unsigned int*)(0x42710018UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF31 *((volatile unsigned int*)(0x4271001CUL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF40 *((volatile unsigned int*)(0x42710020UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF41 *((volatile unsigned int*)(0x42710024UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF50 *((volatile unsigned int*)(0x42710028UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF51 *((volatile unsigned int*)(0x4271002CUL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF60 *((volatile unsigned int*)(0x42710030UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF61 *((volatile unsigned int*)(0x42710034UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF70 *((volatile unsigned int*)(0x42710038UL)) +#define bFM3_MFS_NFC_I2CDNF_I2CDNF71 *((volatile unsigned int*)(0x4271003CUL)) + +/* CRC registers */ +#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) +#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) +#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) +#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) +#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) +#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) +#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) + +/* Watch counter registers */ +#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) +#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) +#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) +#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) +#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) +#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) +#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) +#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) +#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) +#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) +#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) +#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) +#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) +#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) +#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) +#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) +#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) +#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) +#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) +#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) +#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) +#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) + +/* External bus interface registers */ +#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) +#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) +#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) +#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) +#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0210UL)) +#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) +#define bFM3_EXBUS_MODE0_RDY *((volatile unsigned int*)(0x427E0018UL)) +#define bFM3_EXBUS_MODE0_SHRTDOUT *((volatile unsigned int*)(0x427E001CUL)) +#define bFM3_EXBUS_MODE0_MPXMODE *((volatile unsigned int*)(0x427E0020UL)) +#define bFM3_EXBUS_MODE0_ALEINV *((volatile unsigned int*)(0x427E0024UL)) +#define bFM3_EXBUS_MODE0_MPXDOFF *((volatile unsigned int*)(0x427E002CUL)) +#define bFM3_EXBUS_MODE0_MPXCSOF *((volatile unsigned int*)(0x427E0030UL)) +#define bFM3_EXBUS_MODE0_MOEXEUP *((volatile unsigned int*)(0x427E0034UL)) +#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) +#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) +#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) +#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) +#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) +#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) +#define bFM3_EXBUS_MODE1_RDY *((volatile unsigned int*)(0x427E0098UL)) +#define bFM3_EXBUS_MODE1_SHRTDOUT *((volatile unsigned int*)(0x427E009CUL)) +#define bFM3_EXBUS_MODE1_MPXMODE *((volatile unsigned int*)(0x427E00A0UL)) +#define bFM3_EXBUS_MODE1_ALEINV *((volatile unsigned int*)(0x427E00A4UL)) +#define bFM3_EXBUS_MODE1_MPXDOFF *((volatile unsigned int*)(0x427E00ACUL)) +#define bFM3_EXBUS_MODE1_MPXCSOF *((volatile unsigned int*)(0x427E00B0UL)) +#define bFM3_EXBUS_MODE1_MOEXEUP *((volatile unsigned int*)(0x427E00B4UL)) +#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) +#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) +#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) +#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) +#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) +#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) +#define bFM3_EXBUS_MODE2_RDY *((volatile unsigned int*)(0x427E0118UL)) +#define bFM3_EXBUS_MODE2_SHRTDOUT *((volatile unsigned int*)(0x427E011CUL)) +#define bFM3_EXBUS_MODE2_MPXMODE *((volatile unsigned int*)(0x427E0120UL)) +#define bFM3_EXBUS_MODE2_ALEINV *((volatile unsigned int*)(0x427E0124UL)) +#define bFM3_EXBUS_MODE2_MPXDOFF *((volatile unsigned int*)(0x427E012CUL)) +#define bFM3_EXBUS_MODE2_MPXCSOF *((volatile unsigned int*)(0x427E0130UL)) +#define bFM3_EXBUS_MODE2_MOEXEUP *((volatile unsigned int*)(0x427E0134UL)) +#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) +#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) +#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) +#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) +#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) +#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) +#define bFM3_EXBUS_MODE3_RDY *((volatile unsigned int*)(0x427E0198UL)) +#define bFM3_EXBUS_MODE3_SHRTDOUT *((volatile unsigned int*)(0x427E019CUL)) +#define bFM3_EXBUS_MODE3_MPXMODE *((volatile unsigned int*)(0x427E01A0UL)) +#define bFM3_EXBUS_MODE3_ALEINV *((volatile unsigned int*)(0x427E01A4UL)) +#define bFM3_EXBUS_MODE3_MPXDOFF *((volatile unsigned int*)(0x427E01ACUL)) +#define bFM3_EXBUS_MODE3_MPXCSOF *((volatile unsigned int*)(0x427E01B0UL)) +#define bFM3_EXBUS_MODE3_MOEXEUP *((volatile unsigned int*)(0x427E01B4UL)) +#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) +#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) +#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) +#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) +#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) +#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) +#define bFM3_EXBUS_MODE4_RDY *((volatile unsigned int*)(0x427E0218UL)) +#define bFM3_EXBUS_MODE4_SHRTDOUT *((volatile unsigned int*)(0x427E021CUL)) +#define bFM3_EXBUS_MODE4_MPXMODE *((volatile unsigned int*)(0x427E0220UL)) +#define bFM3_EXBUS_MODE4_ALEINV *((volatile unsigned int*)(0x427E0224UL)) +#define bFM3_EXBUS_MODE4_MPXDOFF *((volatile unsigned int*)(0x427E022CUL)) +#define bFM3_EXBUS_MODE4_MPXCSOF *((volatile unsigned int*)(0x427E0230UL)) +#define bFM3_EXBUS_MODE4_MOEXEUP *((volatile unsigned int*)(0x427E0234UL)) +#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) +#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) +#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) +#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) +#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) +#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) +#define bFM3_EXBUS_MODE5_RDY *((volatile unsigned int*)(0x427E0298UL)) +#define bFM3_EXBUS_MODE5_SHRTDOUT *((volatile unsigned int*)(0x427E029CUL)) +#define bFM3_EXBUS_MODE5_MPXMODE *((volatile unsigned int*)(0x427E02A0UL)) +#define bFM3_EXBUS_MODE5_ALEINV *((volatile unsigned int*)(0x427E02A4UL)) +#define bFM3_EXBUS_MODE5_MPXDOFF *((volatile unsigned int*)(0x427E02ACUL)) +#define bFM3_EXBUS_MODE5_MPXCSOF *((volatile unsigned int*)(0x427E02B0UL)) +#define bFM3_EXBUS_MODE5_MOEXEUP *((volatile unsigned int*)(0x427E02B4UL)) +#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) +#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) +#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) +#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) +#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) +#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) +#define bFM3_EXBUS_MODE6_RDY *((volatile unsigned int*)(0x427E0318UL)) +#define bFM3_EXBUS_MODE6_SHRTDOUT *((volatile unsigned int*)(0x427E031CUL)) +#define bFM3_EXBUS_MODE6_MPXMODE *((volatile unsigned int*)(0x427E0320UL)) +#define bFM3_EXBUS_MODE6_ALEINV *((volatile unsigned int*)(0x427E0324UL)) +#define bFM3_EXBUS_MODE6_MPXDOFF *((volatile unsigned int*)(0x427E032CUL)) +#define bFM3_EXBUS_MODE6_MPXCSOF *((volatile unsigned int*)(0x427E0330UL)) +#define bFM3_EXBUS_MODE6_MOEXEUP *((volatile unsigned int*)(0x427E0334UL)) +#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) +#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) +#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) +#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) +#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) +#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) +#define bFM3_EXBUS_MODE7_RDY *((volatile unsigned int*)(0x427E0398UL)) +#define bFM3_EXBUS_MODE7_SHRTDOUT *((volatile unsigned int*)(0x427E039CUL)) +#define bFM3_EXBUS_MODE7_MPXMODE *((volatile unsigned int*)(0x427E03A0UL)) +#define bFM3_EXBUS_MODE7_ALEINV *((volatile unsigned int*)(0x427E03A4UL)) +#define bFM3_EXBUS_MODE7_MPXDOFF *((volatile unsigned int*)(0x427E03ACUL)) +#define bFM3_EXBUS_MODE7_MPXCSOF *((volatile unsigned int*)(0x427E03B0UL)) +#define bFM3_EXBUS_MODE7_MOEXEUP *((volatile unsigned int*)(0x427E03B4UL)) +#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) +#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) +#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) +#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) +#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) +#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) +#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) +#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) +#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) +#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) +#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) +#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) +#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) +#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) +#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) +#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) +#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) +#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) +#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) +#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) +#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) +#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) +#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) +#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) +#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) +#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) +#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) +#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) +#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) +#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) +#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) +#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) +#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) +#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) +#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) +#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) +#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) +#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) +#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) +#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) +#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) +#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) +#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) +#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) +#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) +#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) +#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) +#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) +#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) +#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) +#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) +#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) +#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) +#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) +#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) +#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) +#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) +#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) +#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) +#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) +#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) +#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) +#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) +#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) +#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) +#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) +#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) +#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) +#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) +#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) +#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) +#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) +#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) +#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) +#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) +#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) +#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) +#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) +#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) +#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) +#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) +#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) +#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) +#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) +#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) +#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) +#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) +#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) +#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) +#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) +#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) +#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) +#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) +#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) +#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) +#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) +#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) +#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) +#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) +#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) +#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) +#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) +#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) +#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) +#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) +#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) +#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) +#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) +#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) +#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) +#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) +#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) +#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) +#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) +#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) +#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) +#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) +#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) +#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) +#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) +#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) +#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) +#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) +#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) +#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) +#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) +#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) +#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) +#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) +#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) +#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) +#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) +#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) +#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) +#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) +#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) +#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) +#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) +#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) +#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) +#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) +#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) +#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) +#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) +#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) +#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) +#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) +#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) +#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) +#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) +#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) +#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) +#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) +#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) +#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) +#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) +#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) +#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) +#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) +#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) +#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) +#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) +#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) +#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) +#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) +#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) +#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) +#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) +#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) +#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) +#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) +#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) +#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) +#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) +#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) +#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) +#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) +#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) +#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) +#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) +#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) +#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) +#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) +#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) +#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) +#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) +#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) +#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) +#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) +#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) +#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) +#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) +#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) +#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) +#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) +#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) +#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) +#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) +#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) +#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) +#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) +#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) +#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) +#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) +#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) +#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) +#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) +#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) +#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) +#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) +#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) +#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) +#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) +#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) +#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) +#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) +#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) +#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) +#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) +#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) +#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) +#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) +#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) +#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) +#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) +#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) +#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) +#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) +#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) +#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) +#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) +#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) +#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) +#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) +#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) +#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) +#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) +#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) +#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) +#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) +#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) +#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) +#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) +#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) +#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) +#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) +#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) +#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) +#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) +#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) +#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) +#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) +#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) +#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) +#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) +#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) +#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) +#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) +#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) +#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) +#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) +#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) +#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) +#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) +#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) +#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) +#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) +#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) +#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) +#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) +#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) +#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) +#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) +#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) +#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) +#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) +#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) +#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) +#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) +#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) +#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) +#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) +#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) +#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) +#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) +#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) +#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) +#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) +#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) +#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) +#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) +#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) +#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) +#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) +#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) +#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) +#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) +#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) +#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) +#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) +#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) +#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) +#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) +#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) +#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) +#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) +#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) +#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) +#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) +#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) +#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) +#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) +#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) +#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) +#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) +#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) +#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) +#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) +#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) +#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) +#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) +#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) +#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) +#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) +#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) +#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) +#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) +#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) +#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) +#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) +#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) +#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) +#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) +#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) +#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) +#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) +#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) +#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) +#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) +#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) +#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) +#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) +#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) +#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) +#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) +#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) +#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) +#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) +#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) +#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) +#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) +#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) +#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) +#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) +#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) +#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) +#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) +#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) +#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) +#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) +#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) +#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) +#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) +#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) +#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) +#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) +#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) +#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) +#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) +#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) +#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) +#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) +#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) +#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) +#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) +#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) +#define bFM3_EXBUS_ATIM0_ALC0 *((volatile unsigned int*)(0x427E0C00UL)) +#define bFM3_EXBUS_ATIM0_ALC1 *((volatile unsigned int*)(0x427E0C04UL)) +#define bFM3_EXBUS_ATIM0_ALC2 *((volatile unsigned int*)(0x427E0C08UL)) +#define bFM3_EXBUS_ATIM0_ALC3 *((volatile unsigned int*)(0x427E0C0CUL)) +#define bFM3_EXBUS_ATIM0_ALES0 *((volatile unsigned int*)(0x427E0C10UL)) +#define bFM3_EXBUS_ATIM0_ALES1 *((volatile unsigned int*)(0x427E0C14UL)) +#define bFM3_EXBUS_ATIM0_ALES2 *((volatile unsigned int*)(0x427E0C18UL)) +#define bFM3_EXBUS_ATIM0_ALES3 *((volatile unsigned int*)(0x427E0C1CUL)) +#define bFM3_EXBUS_ATIM0_ALEW0 *((volatile unsigned int*)(0x427E0C20UL)) +#define bFM3_EXBUS_ATIM0_ALEW1 *((volatile unsigned int*)(0x427E0C24UL)) +#define bFM3_EXBUS_ATIM0_ALEW2 *((volatile unsigned int*)(0x427E0C28UL)) +#define bFM3_EXBUS_ATIM0_ALEW3 *((volatile unsigned int*)(0x427E0C2CUL)) +#define bFM3_EXBUS_ATIM1_ALC0 *((volatile unsigned int*)(0x427E0C80UL)) +#define bFM3_EXBUS_ATIM1_ALC1 *((volatile unsigned int*)(0x427E0C84UL)) +#define bFM3_EXBUS_ATIM1_ALC2 *((volatile unsigned int*)(0x427E0C88UL)) +#define bFM3_EXBUS_ATIM1_ALC3 *((volatile unsigned int*)(0x427E0C8CUL)) +#define bFM3_EXBUS_ATIM1_ALES0 *((volatile unsigned int*)(0x427E0C90UL)) +#define bFM3_EXBUS_ATIM1_ALES1 *((volatile unsigned int*)(0x427E0C94UL)) +#define bFM3_EXBUS_ATIM1_ALES2 *((volatile unsigned int*)(0x427E0C98UL)) +#define bFM3_EXBUS_ATIM1_ALES3 *((volatile unsigned int*)(0x427E0C9CUL)) +#define bFM3_EXBUS_ATIM1_ALEW0 *((volatile unsigned int*)(0x427E0CA0UL)) +#define bFM3_EXBUS_ATIM1_ALEW1 *((volatile unsigned int*)(0x427E0CA4UL)) +#define bFM3_EXBUS_ATIM1_ALEW2 *((volatile unsigned int*)(0x427E0CA8UL)) +#define bFM3_EXBUS_ATIM1_ALEW3 *((volatile unsigned int*)(0x427E0CACUL)) +#define bFM3_EXBUS_ATIM2_ALC0 *((volatile unsigned int*)(0x427E0D00UL)) +#define bFM3_EXBUS_ATIM2_ALC1 *((volatile unsigned int*)(0x427E0D04UL)) +#define bFM3_EXBUS_ATIM2_ALC2 *((volatile unsigned int*)(0x427E0D08UL)) +#define bFM3_EXBUS_ATIM2_ALC3 *((volatile unsigned int*)(0x427E0D0CUL)) +#define bFM3_EXBUS_ATIM2_ALES0 *((volatile unsigned int*)(0x427E0D10UL)) +#define bFM3_EXBUS_ATIM2_ALES1 *((volatile unsigned int*)(0x427E0D14UL)) +#define bFM3_EXBUS_ATIM2_ALES2 *((volatile unsigned int*)(0x427E0D18UL)) +#define bFM3_EXBUS_ATIM2_ALES3 *((volatile unsigned int*)(0x427E0D1CUL)) +#define bFM3_EXBUS_ATIM2_ALEW0 *((volatile unsigned int*)(0x427E0D20UL)) +#define bFM3_EXBUS_ATIM2_ALEW1 *((volatile unsigned int*)(0x427E0D24UL)) +#define bFM3_EXBUS_ATIM2_ALEW2 *((volatile unsigned int*)(0x427E0D28UL)) +#define bFM3_EXBUS_ATIM2_ALEW3 *((volatile unsigned int*)(0x427E0D2CUL)) +#define bFM3_EXBUS_ATIM3_ALC0 *((volatile unsigned int*)(0x427E0D80UL)) +#define bFM3_EXBUS_ATIM3_ALC1 *((volatile unsigned int*)(0x427E0D84UL)) +#define bFM3_EXBUS_ATIM3_ALC2 *((volatile unsigned int*)(0x427E0D88UL)) +#define bFM3_EXBUS_ATIM3_ALC3 *((volatile unsigned int*)(0x427E0D8CUL)) +#define bFM3_EXBUS_ATIM3_ALES0 *((volatile unsigned int*)(0x427E0D90UL)) +#define bFM3_EXBUS_ATIM3_ALES1 *((volatile unsigned int*)(0x427E0D94UL)) +#define bFM3_EXBUS_ATIM3_ALES2 *((volatile unsigned int*)(0x427E0D98UL)) +#define bFM3_EXBUS_ATIM3_ALES3 *((volatile unsigned int*)(0x427E0D9CUL)) +#define bFM3_EXBUS_ATIM3_ALEW0 *((volatile unsigned int*)(0x427E0DA0UL)) +#define bFM3_EXBUS_ATIM3_ALEW1 *((volatile unsigned int*)(0x427E0DA4UL)) +#define bFM3_EXBUS_ATIM3_ALEW2 *((volatile unsigned int*)(0x427E0DA8UL)) +#define bFM3_EXBUS_ATIM3_ALEW3 *((volatile unsigned int*)(0x427E0DACUL)) +#define bFM3_EXBUS_ATIM4_ALC0 *((volatile unsigned int*)(0x427E0E00UL)) +#define bFM3_EXBUS_ATIM4_ALC1 *((volatile unsigned int*)(0x427E0E04UL)) +#define bFM3_EXBUS_ATIM4_ALC2 *((volatile unsigned int*)(0x427E0E08UL)) +#define bFM3_EXBUS_ATIM4_ALC3 *((volatile unsigned int*)(0x427E0E0CUL)) +#define bFM3_EXBUS_ATIM4_ALES0 *((volatile unsigned int*)(0x427E0E10UL)) +#define bFM3_EXBUS_ATIM4_ALES1 *((volatile unsigned int*)(0x427E0E14UL)) +#define bFM3_EXBUS_ATIM4_ALES2 *((volatile unsigned int*)(0x427E0E18UL)) +#define bFM3_EXBUS_ATIM4_ALES3 *((volatile unsigned int*)(0x427E0E1CUL)) +#define bFM3_EXBUS_ATIM4_ALEW0 *((volatile unsigned int*)(0x427E0E20UL)) +#define bFM3_EXBUS_ATIM4_ALEW1 *((volatile unsigned int*)(0x427E0E24UL)) +#define bFM3_EXBUS_ATIM4_ALEW2 *((volatile unsigned int*)(0x427E0E28UL)) +#define bFM3_EXBUS_ATIM4_ALEW3 *((volatile unsigned int*)(0x427E0E2CUL)) +#define bFM3_EXBUS_ATIM5_ALC0 *((volatile unsigned int*)(0x427E0E80UL)) +#define bFM3_EXBUS_ATIM5_ALC1 *((volatile unsigned int*)(0x427E0E84UL)) +#define bFM3_EXBUS_ATIM5_ALC2 *((volatile unsigned int*)(0x427E0E88UL)) +#define bFM3_EXBUS_ATIM5_ALC3 *((volatile unsigned int*)(0x427E0E8CUL)) +#define bFM3_EXBUS_ATIM5_ALES0 *((volatile unsigned int*)(0x427E0E90UL)) +#define bFM3_EXBUS_ATIM5_ALES1 *((volatile unsigned int*)(0x427E0E94UL)) +#define bFM3_EXBUS_ATIM5_ALES2 *((volatile unsigned int*)(0x427E0E98UL)) +#define bFM3_EXBUS_ATIM5_ALES3 *((volatile unsigned int*)(0x427E0E9CUL)) +#define bFM3_EXBUS_ATIM5_ALEW0 *((volatile unsigned int*)(0x427E0EA0UL)) +#define bFM3_EXBUS_ATIM5_ALEW1 *((volatile unsigned int*)(0x427E0EA4UL)) +#define bFM3_EXBUS_ATIM5_ALEW2 *((volatile unsigned int*)(0x427E0EA8UL)) +#define bFM3_EXBUS_ATIM5_ALEW3 *((volatile unsigned int*)(0x427E0EACUL)) +#define bFM3_EXBUS_ATIM6_ALC0 *((volatile unsigned int*)(0x427E0F00UL)) +#define bFM3_EXBUS_ATIM6_ALC1 *((volatile unsigned int*)(0x427E0F04UL)) +#define bFM3_EXBUS_ATIM6_ALC2 *((volatile unsigned int*)(0x427E0F08UL)) +#define bFM3_EXBUS_ATIM6_ALC3 *((volatile unsigned int*)(0x427E0F0CUL)) +#define bFM3_EXBUS_ATIM6_ALES0 *((volatile unsigned int*)(0x427E0F10UL)) +#define bFM3_EXBUS_ATIM6_ALES1 *((volatile unsigned int*)(0x427E0F14UL)) +#define bFM3_EXBUS_ATIM6_ALES2 *((volatile unsigned int*)(0x427E0F18UL)) +#define bFM3_EXBUS_ATIM6_ALES3 *((volatile unsigned int*)(0x427E0F1CUL)) +#define bFM3_EXBUS_ATIM6_ALEW0 *((volatile unsigned int*)(0x427E0F20UL)) +#define bFM3_EXBUS_ATIM6_ALEW1 *((volatile unsigned int*)(0x427E0F24UL)) +#define bFM3_EXBUS_ATIM6_ALEW2 *((volatile unsigned int*)(0x427E0F28UL)) +#define bFM3_EXBUS_ATIM6_ALEW3 *((volatile unsigned int*)(0x427E0F2CUL)) +#define bFM3_EXBUS_ATIM7_ALC0 *((volatile unsigned int*)(0x427E0F80UL)) +#define bFM3_EXBUS_ATIM7_ALC1 *((volatile unsigned int*)(0x427E0F84UL)) +#define bFM3_EXBUS_ATIM7_ALC2 *((volatile unsigned int*)(0x427E0F88UL)) +#define bFM3_EXBUS_ATIM7_ALC3 *((volatile unsigned int*)(0x427E0F8CUL)) +#define bFM3_EXBUS_ATIM7_ALES0 *((volatile unsigned int*)(0x427E0F90UL)) +#define bFM3_EXBUS_ATIM7_ALES1 *((volatile unsigned int*)(0x427E0F94UL)) +#define bFM3_EXBUS_ATIM7_ALES2 *((volatile unsigned int*)(0x427E0F98UL)) +#define bFM3_EXBUS_ATIM7_ALES3 *((volatile unsigned int*)(0x427E0F9CUL)) +#define bFM3_EXBUS_ATIM7_ALEW0 *((volatile unsigned int*)(0x427E0FA0UL)) +#define bFM3_EXBUS_ATIM7_ALEW1 *((volatile unsigned int*)(0x427E0FA4UL)) +#define bFM3_EXBUS_ATIM7_ALEW2 *((volatile unsigned int*)(0x427E0FA8UL)) +#define bFM3_EXBUS_ATIM7_ALEW3 *((volatile unsigned int*)(0x427E0FACUL)) +#define bFM3_EXBUS_DCLKR_MDIV0 *((volatile unsigned int*)(0x427E6000UL)) +#define bFM3_EXBUS_DCLKR_MDIV1 *((volatile unsigned int*)(0x427E6004UL)) +#define bFM3_EXBUS_DCLKR_MDIV2 *((volatile unsigned int*)(0x427E6008UL)) +#define bFM3_EXBUS_DCLKR_MDIV3 *((volatile unsigned int*)(0x427E600CUL)) +#define bFM3_EXBUS_DCLKR_MCLKON *((volatile unsigned int*)(0x427E6010UL)) + +/* USB channel 0 registers */ +#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) +#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) +#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) +#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) +#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) +#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) +#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) +#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) +#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) +#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) +#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) +#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) +#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) +#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) +#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) +#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) +#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) +#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) +#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) +#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) +#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) +#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) +#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) +#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) +#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) +#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) +#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) +#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) +#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) +#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) +#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) +#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) +#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) +#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) +#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) +#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) +#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) +#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) +#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) +#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) +#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) +#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) +#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) +#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) +#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) +#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) +#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) +#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) +#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) +#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) +#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) +#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) +#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) +#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) +#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) +#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) +#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) +#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) +#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) +#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) +#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) +#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) +#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) +#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) +#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) +#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) +#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) +#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) +#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) +#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) +#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) +#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) +#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) +#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) +#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) +#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) +#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) +#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) +#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) +#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) +#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) +#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) +#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) +#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) +#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) +#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) +#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) +#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) +#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) +#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) +#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) +#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) +#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) +#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) +#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) +#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) +#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) +#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) +#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) +#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) +#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) +#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) +#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) +#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) +#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) +#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) +#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) +#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) +#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) +#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) +#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) +#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) +#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) +#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) +#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) +#define bFM3_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) +#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) +#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) +#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) +#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) +#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) +#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) +#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) +#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) +#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) +#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) +#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) +#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) +#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) +#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) +#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) +#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) +#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) +#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) +#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) +#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) +#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) +#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) +#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) +#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) +#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) +#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) +#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) +#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) +#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) +#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) +#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) +#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) +#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) +#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) +#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) +#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) +#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) +#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) +#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) +#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) +#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) +#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) +#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) +#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) +#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) +#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) +#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) +#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) +#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) +#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) +#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) +#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) +#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) +#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) +#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) +#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) +#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) +#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) +#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) +#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) +#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) +#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) +#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) +#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) +#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) +#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) +#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) +#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) +#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) +#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) +#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) +#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) +#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) +#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) +#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) +#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) +#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) +#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) +#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) +#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) +#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) +#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) +#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) +#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) +#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) +#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) +#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) +#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) +#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) +#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) +#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) +#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) +#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) +#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) +#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) +#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) +#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) +#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) +#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) +#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) +#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) +#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) +#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) +#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) +#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) +#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) +#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) +#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) +#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) +#define bFM3_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) +#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) +#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) +#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) +#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) +#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) +#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) +#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) +#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) +#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) +#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) +#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) +#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) +#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) +#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) +#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) +#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) +#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) +#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) +#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) +#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) +#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) +#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) +#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) +#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) +#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) +#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) +#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) +#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) +#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) +#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) +#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) +#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) +#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) +#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) +#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) +#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) +#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) +#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) +#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) +#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) +#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) +#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) +#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) +#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) +#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) +#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) +#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) +#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) +#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) +#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) +#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) +#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) +#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) +#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) +#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) +#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) +#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) +#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) + +/* USB channel 1 registers */ +#define bFM3_USB1_HCNT_HOST *((volatile unsigned int*)(0x42A42000UL)) +#define bFM3_USB1_HCNT_URST *((volatile unsigned int*)(0x42A42004UL)) +#define bFM3_USB1_HCNT_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) +#define bFM3_USB1_HCNT_DIRE *((volatile unsigned int*)(0x42A4200CUL)) +#define bFM3_USB1_HCNT_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) +#define bFM3_USB1_HCNT_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) +#define bFM3_USB1_HCNT_URIRE *((volatile unsigned int*)(0x42A42018UL)) +#define bFM3_USB1_HCNT_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) +#define bFM3_USB1_HCNT_RETRY *((volatile unsigned int*)(0x42A42020UL)) +#define bFM3_USB1_HCNT_CANCEL *((volatile unsigned int*)(0x42A42024UL)) +#define bFM3_USB1_HCNT_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) +#define bFM3_USB1_HCNT0_HOST *((volatile unsigned int*)(0x42A42000UL)) +#define bFM3_USB1_HCNT0_URST *((volatile unsigned int*)(0x42A42004UL)) +#define bFM3_USB1_HCNT0_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) +#define bFM3_USB1_HCNT0_DIRE *((volatile unsigned int*)(0x42A4200CUL)) +#define bFM3_USB1_HCNT0_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) +#define bFM3_USB1_HCNT0_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) +#define bFM3_USB1_HCNT0_URIRE *((volatile unsigned int*)(0x42A42018UL)) +#define bFM3_USB1_HCNT0_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) +#define bFM3_USB1_HCNT1_RETRY *((volatile unsigned int*)(0x42A42020UL)) +#define bFM3_USB1_HCNT1_CANCEL *((volatile unsigned int*)(0x42A42024UL)) +#define bFM3_USB1_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) +#define bFM3_USB1_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42A42080UL)) +#define bFM3_USB1_HIRQ_DIRQ *((volatile unsigned int*)(0x42A42084UL)) +#define bFM3_USB1_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42A42088UL)) +#define bFM3_USB1_HIRQ_CMPIRQ *((volatile unsigned int*)(0x42A4208CUL)) +#define bFM3_USB1_HIRQ_URIRQ *((volatile unsigned int*)(0x42A42090UL)) +#define bFM3_USB1_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42A42094UL)) +#define bFM3_USB1_HIRQ_TCAN *((volatile unsigned int*)(0x42A4209CUL)) +#define bFM3_USB1_HERR_HS0 *((volatile unsigned int*)(0x42A420A0UL)) +#define bFM3_USB1_HERR_HS1 *((volatile unsigned int*)(0x42A420A4UL)) +#define bFM3_USB1_HERR_STUFF *((volatile unsigned int*)(0x42A420A8UL)) +#define bFM3_USB1_HERR_TGERR *((volatile unsigned int*)(0x42A420ACUL)) +#define bFM3_USB1_HERR_CRC *((volatile unsigned int*)(0x42A420B0UL)) +#define bFM3_USB1_HERR_TOUT *((volatile unsigned int*)(0x42A420B4UL)) +#define bFM3_USB1_HERR_RERR *((volatile unsigned int*)(0x42A420B8UL)) +#define bFM3_USB1_HERR_LSTOF *((volatile unsigned int*)(0x42A420BCUL)) +#define bFM3_USB1_HSTATE_CSTAT *((volatile unsigned int*)(0x42A42100UL)) +#define bFM3_USB1_HSTATE_TMODE *((volatile unsigned int*)(0x42A42104UL)) +#define bFM3_USB1_HSTATE_SUSP *((volatile unsigned int*)(0x42A42108UL)) +#define bFM3_USB1_HSTATE_SOFBUSY *((volatile unsigned int*)(0x42A4210CUL)) +#define bFM3_USB1_HSTATE_CLKSEL *((volatile unsigned int*)(0x42A42110UL)) +#define bFM3_USB1_HSTATE_ALIVE *((volatile unsigned int*)(0x42A42114UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42A42120UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42A42124UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42A42128UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x42A4212CUL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42A42130UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42A42134UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42A42138UL)) +#define bFM3_USB1_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x42A4213CUL)) +#define bFM3_USB1_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42A42180UL)) +#define bFM3_USB1_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42A42184UL)) +#define bFM3_USB1_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42A42188UL)) +#define bFM3_USB1_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x42A4218CUL)) +#define bFM3_USB1_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42A42190UL)) +#define bFM3_USB1_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42A42194UL)) +#define bFM3_USB1_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42A42198UL)) +#define bFM3_USB1_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x42A4219CUL)) +#define bFM3_USB1_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x42A421A0UL)) +#define bFM3_USB1_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x42A421A4UL)) +#define bFM3_USB1_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x42A421A8UL)) +#define bFM3_USB1_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x42A421ACUL)) +#define bFM3_USB1_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x42A421B0UL)) +#define bFM3_USB1_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x42A421B4UL)) +#define bFM3_USB1_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x42A421B8UL)) +#define bFM3_USB1_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x42A421BCUL)) +#define bFM3_USB1_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42A42180UL)) +#define bFM3_USB1_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42A42184UL)) +#define bFM3_USB1_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42A42188UL)) +#define bFM3_USB1_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x42A4218CUL)) +#define bFM3_USB1_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42A42190UL)) +#define bFM3_USB1_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42A42194UL)) +#define bFM3_USB1_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42A42198UL)) +#define bFM3_USB1_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x42A4219CUL)) +#define bFM3_USB1_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x42A421A0UL)) +#define bFM3_USB1_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x42A421A4UL)) +#define bFM3_USB1_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x42A421A8UL)) +#define bFM3_USB1_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x42A421ACUL)) +#define bFM3_USB1_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x42A421B0UL)) +#define bFM3_USB1_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x42A421B4UL)) +#define bFM3_USB1_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x42A421B8UL)) +#define bFM3_USB1_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x42A421BCUL)) +#define bFM3_USB1_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42A42200UL)) +#define bFM3_USB1_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42A42204UL)) +#define bFM3_USB1_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42A42208UL)) +#define bFM3_USB1_HADR_ADDRESS0 *((volatile unsigned int*)(0x42A42220UL)) +#define bFM3_USB1_HADR_ADDRESS1 *((volatile unsigned int*)(0x42A42224UL)) +#define bFM3_USB1_HADR_ADDRESS2 *((volatile unsigned int*)(0x42A42228UL)) +#define bFM3_USB1_HADR_ADDRESS3 *((volatile unsigned int*)(0x42A4222CUL)) +#define bFM3_USB1_HADR_ADDRESS4 *((volatile unsigned int*)(0x42A42230UL)) +#define bFM3_USB1_HADR_ADDRESS5 *((volatile unsigned int*)(0x42A42234UL)) +#define bFM3_USB1_HADR_ADDRESS6 *((volatile unsigned int*)(0x42A42238UL)) +#define bFM3_USB1_HEOF_EOF0 *((volatile unsigned int*)(0x42A42280UL)) +#define bFM3_USB1_HEOF_EOF1 *((volatile unsigned int*)(0x42A42284UL)) +#define bFM3_USB1_HEOF_EOF2 *((volatile unsigned int*)(0x42A42288UL)) +#define bFM3_USB1_HEOF_EOF3 *((volatile unsigned int*)(0x42A4228CUL)) +#define bFM3_USB1_HEOF_EOF4 *((volatile unsigned int*)(0x42A42290UL)) +#define bFM3_USB1_HEOF_EOF5 *((volatile unsigned int*)(0x42A42294UL)) +#define bFM3_USB1_HEOF_EOF6 *((volatile unsigned int*)(0x42A42298UL)) +#define bFM3_USB1_HEOF_EOF7 *((volatile unsigned int*)(0x42A4229CUL)) +#define bFM3_USB1_HEOF_EOF8 *((volatile unsigned int*)(0x42A422A0UL)) +#define bFM3_USB1_HEOF_EOF9 *((volatile unsigned int*)(0x42A422A4UL)) +#define bFM3_USB1_HEOF_EOF10 *((volatile unsigned int*)(0x42A422A8UL)) +#define bFM3_USB1_HEOF_EOF11 *((volatile unsigned int*)(0x42A422ACUL)) +#define bFM3_USB1_HEOF_EOF12 *((volatile unsigned int*)(0x42A422B0UL)) +#define bFM3_USB1_HEOF_EOF13 *((volatile unsigned int*)(0x42A422B4UL)) +#define bFM3_USB1_HEOF_EOF14 *((volatile unsigned int*)(0x42A422B8UL)) +#define bFM3_USB1_HEOF_EOF15 *((volatile unsigned int*)(0x42A422BCUL)) +#define bFM3_USB1_HEOF0_EOF00 *((volatile unsigned int*)(0x42A42280UL)) +#define bFM3_USB1_HEOF0_EOF01 *((volatile unsigned int*)(0x42A42284UL)) +#define bFM3_USB1_HEOF0_EOF02 *((volatile unsigned int*)(0x42A42288UL)) +#define bFM3_USB1_HEOF0_EOF03 *((volatile unsigned int*)(0x42A4228CUL)) +#define bFM3_USB1_HEOF0_EOF04 *((volatile unsigned int*)(0x42A42290UL)) +#define bFM3_USB1_HEOF0_EOF05 *((volatile unsigned int*)(0x42A42294UL)) +#define bFM3_USB1_HEOF0_EOF06 *((volatile unsigned int*)(0x42A42298UL)) +#define bFM3_USB1_HEOF0_EOF07 *((volatile unsigned int*)(0x42A4229CUL)) +#define bFM3_USB1_HEOF1_EOF10 *((volatile unsigned int*)(0x42A422A0UL)) +#define bFM3_USB1_HEOF1_EOF11 *((volatile unsigned int*)(0x42A422A4UL)) +#define bFM3_USB1_HEOF1_EOF12 *((volatile unsigned int*)(0x42A422A8UL)) +#define bFM3_USB1_HEOF1_EOF13 *((volatile unsigned int*)(0x42A422ACUL)) +#define bFM3_USB1_HEOF1_EOF14 *((volatile unsigned int*)(0x42A422B0UL)) +#define bFM3_USB1_HEOF1_EOF15 *((volatile unsigned int*)(0x42A422B4UL)) +#define bFM3_USB1_HFRAME_FRAME0 *((volatile unsigned int*)(0x42A42300UL)) +#define bFM3_USB1_HFRAME_FRAME1 *((volatile unsigned int*)(0x42A42304UL)) +#define bFM3_USB1_HFRAME_FRAME2 *((volatile unsigned int*)(0x42A42308UL)) +#define bFM3_USB1_HFRAME_FRAME3 *((volatile unsigned int*)(0x42A4230CUL)) +#define bFM3_USB1_HFRAME_FRAME4 *((volatile unsigned int*)(0x42A42310UL)) +#define bFM3_USB1_HFRAME_FRAME5 *((volatile unsigned int*)(0x42A42314UL)) +#define bFM3_USB1_HFRAME_FRAME6 *((volatile unsigned int*)(0x42A42318UL)) +#define bFM3_USB1_HFRAME_FRAME7 *((volatile unsigned int*)(0x42A4231CUL)) +#define bFM3_USB1_HFRAME_FRAME8 *((volatile unsigned int*)(0x42A42320UL)) +#define bFM3_USB1_HFRAME_FRAME9 *((volatile unsigned int*)(0x42A42324UL)) +#define bFM3_USB1_HFRAME_FRAME10 *((volatile unsigned int*)(0x42A42328UL)) +#define bFM3_USB1_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42A42300UL)) +#define bFM3_USB1_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42A42304UL)) +#define bFM3_USB1_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42A42308UL)) +#define bFM3_USB1_HFRAME0_FRAME03 *((volatile unsigned int*)(0x42A4230CUL)) +#define bFM3_USB1_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42A42310UL)) +#define bFM3_USB1_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42A42314UL)) +#define bFM3_USB1_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42A42318UL)) +#define bFM3_USB1_HFRAME0_FRAME07 *((volatile unsigned int*)(0x42A4231CUL)) +#define bFM3_USB1_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42A42320UL)) +#define bFM3_USB1_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42A42324UL)) +#define bFM3_USB1_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42A42328UL)) +#define bFM3_USB1_HFRAME1_FRAME13 *((volatile unsigned int*)(0x42A4232CUL)) +#define bFM3_USB1_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42A42380UL)) +#define bFM3_USB1_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42A42384UL)) +#define bFM3_USB1_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42A42388UL)) +#define bFM3_USB1_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x42A4238CUL)) +#define bFM3_USB1_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42A42390UL)) +#define bFM3_USB1_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42A42394UL)) +#define bFM3_USB1_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42A42398UL)) +#define bFM3_USB1_HTOKEN_TGGL *((volatile unsigned int*)(0x42A4239CUL)) +#define bFM3_USB1_UDCC_PWC *((volatile unsigned int*)(0x42A42400UL)) +#define bFM3_USB1_UDCC_RFBK *((volatile unsigned int*)(0x42A42404UL)) +#define bFM3_USB1_UDCC_STALCLREN *((volatile unsigned int*)(0x42A4240CUL)) +#define bFM3_USB1_UDCC_USTP *((volatile unsigned int*)(0x42A42410UL)) +#define bFM3_USB1_UDCC_HCONX *((volatile unsigned int*)(0x42A42414UL)) +#define bFM3_USB1_UDCC_RESUM *((volatile unsigned int*)(0x42A42418UL)) +#define bFM3_USB1_UDCC_RST *((volatile unsigned int*)(0x42A4241CUL)) +#define bFM3_USB1_EP0C_PKS00 *((volatile unsigned int*)(0x42A42480UL)) +#define bFM3_USB1_EP0C_PKS01 *((volatile unsigned int*)(0x42A42484UL)) +#define bFM3_USB1_EP0C_PKS02 *((volatile unsigned int*)(0x42A42488UL)) +#define bFM3_USB1_EP0C_PKS03 *((volatile unsigned int*)(0x42A4248CUL)) +#define bFM3_USB1_EP0C_PKS04 *((volatile unsigned int*)(0x42A42490UL)) +#define bFM3_USB1_EP0C_PKS05 *((volatile unsigned int*)(0x42A42494UL)) +#define bFM3_USB1_EP0C_PKS06 *((volatile unsigned int*)(0x42A42498UL)) +#define bFM3_USB1_EP0C_STAL *((volatile unsigned int*)(0x42A424A4UL)) +#define bFM3_USB1_EP1C_PKS10 *((volatile unsigned int*)(0x42A42500UL)) +#define bFM3_USB1_EP1C_PKS11 *((volatile unsigned int*)(0x42A42504UL)) +#define bFM3_USB1_EP1C_PKS12 *((volatile unsigned int*)(0x42A42508UL)) +#define bFM3_USB1_EP1C_PKS13 *((volatile unsigned int*)(0x42A4250CUL)) +#define bFM3_USB1_EP1C_PKS14 *((volatile unsigned int*)(0x42A42510UL)) +#define bFM3_USB1_EP1C_PKS15 *((volatile unsigned int*)(0x42A42514UL)) +#define bFM3_USB1_EP1C_PKS16 *((volatile unsigned int*)(0x42A42518UL)) +#define bFM3_USB1_EP1C_PKS17 *((volatile unsigned int*)(0x42A4251CUL)) +#define bFM3_USB1_EP1C_PKS18 *((volatile unsigned int*)(0x42A42520UL)) +#define bFM3_USB1_EP1C_STAL *((volatile unsigned int*)(0x42A42524UL)) +#define bFM3_USB1_EP1C_NULE *((volatile unsigned int*)(0x42A42528UL)) +#define bFM3_USB1_EP1C_DMAE *((volatile unsigned int*)(0x42A4252CUL)) +#define bFM3_USB1_EP1C_DIR *((volatile unsigned int*)(0x42A42530UL)) +#define bFM3_USB1_EP1C_TYPE0 *((volatile unsigned int*)(0x42A42534UL)) +#define bFM3_USB1_EP1C_TYPE1 *((volatile unsigned int*)(0x42A42538UL)) +#define bFM3_USB1_EP1C_EPEN *((volatile unsigned int*)(0x42A4253CUL)) +#define bFM3_USB1_EP2C_PKS20 *((volatile unsigned int*)(0x42A42580UL)) +#define bFM3_USB1_EP2C_PKS21 *((volatile unsigned int*)(0x42A42584UL)) +#define bFM3_USB1_EP2C_PKS22 *((volatile unsigned int*)(0x42A42588UL)) +#define bFM3_USB1_EP2C_PKS23 *((volatile unsigned int*)(0x42A4258CUL)) +#define bFM3_USB1_EP2C_PKS24 *((volatile unsigned int*)(0x42A42590UL)) +#define bFM3_USB1_EP2C_PKS25 *((volatile unsigned int*)(0x42A42594UL)) +#define bFM3_USB1_EP2C_PKS26 *((volatile unsigned int*)(0x42A42598UL)) +#define bFM3_USB1_EP2C_STAL *((volatile unsigned int*)(0x42A425A4UL)) +#define bFM3_USB1_EP2C_NULE *((volatile unsigned int*)(0x42A425A8UL)) +#define bFM3_USB1_EP2C_DMAE *((volatile unsigned int*)(0x42A425ACUL)) +#define bFM3_USB1_EP2C_DIR *((volatile unsigned int*)(0x42A425B0UL)) +#define bFM3_USB1_EP2C_TYPE0 *((volatile unsigned int*)(0x42A425B4UL)) +#define bFM3_USB1_EP2C_TYPE1 *((volatile unsigned int*)(0x42A425B8UL)) +#define bFM3_USB1_EP2C_EPEN *((volatile unsigned int*)(0x42A425BCUL)) +#define bFM3_USB1_EP3C_PKS30 *((volatile unsigned int*)(0x42A42600UL)) +#define bFM3_USB1_EP3C_PKS31 *((volatile unsigned int*)(0x42A42604UL)) +#define bFM3_USB1_EP3C_PKS32 *((volatile unsigned int*)(0x42A42608UL)) +#define bFM3_USB1_EP3C_PKS33 *((volatile unsigned int*)(0x42A4260CUL)) +#define bFM3_USB1_EP3C_PKS34 *((volatile unsigned int*)(0x42A42610UL)) +#define bFM3_USB1_EP3C_PKS35 *((volatile unsigned int*)(0x42A42614UL)) +#define bFM3_USB1_EP3C_PKS36 *((volatile unsigned int*)(0x42A42618UL)) +#define bFM3_USB1_EP3C_STAL *((volatile unsigned int*)(0x42A42624UL)) +#define bFM3_USB1_EP3C_NULE *((volatile unsigned int*)(0x42A42628UL)) +#define bFM3_USB1_EP3C_DMAE *((volatile unsigned int*)(0x42A4262CUL)) +#define bFM3_USB1_EP3C_DIR *((volatile unsigned int*)(0x42A42630UL)) +#define bFM3_USB1_EP3C_TYPE0 *((volatile unsigned int*)(0x42A42634UL)) +#define bFM3_USB1_EP3C_TYPE1 *((volatile unsigned int*)(0x42A42638UL)) +#define bFM3_USB1_EP3C_EPEN *((volatile unsigned int*)(0x42A4263CUL)) +#define bFM3_USB1_EP4C_PKS40 *((volatile unsigned int*)(0x42A42680UL)) +#define bFM3_USB1_EP4C_PKS41 *((volatile unsigned int*)(0x42A42684UL)) +#define bFM3_USB1_EP4C_PKS42 *((volatile unsigned int*)(0x42A42688UL)) +#define bFM3_USB1_EP4C_PKS43 *((volatile unsigned int*)(0x42A4268CUL)) +#define bFM3_USB1_EP4C_PKS44 *((volatile unsigned int*)(0x42A42690UL)) +#define bFM3_USB1_EP4C_PKS45 *((volatile unsigned int*)(0x42A42694UL)) +#define bFM3_USB1_EP4C_PKS46 *((volatile unsigned int*)(0x42A42698UL)) +#define bFM3_USB1_EP4C_STAL *((volatile unsigned int*)(0x42A426A4UL)) +#define bFM3_USB1_EP4C_NULE *((volatile unsigned int*)(0x42A426A8UL)) +#define bFM3_USB1_EP4C_DMAE *((volatile unsigned int*)(0x42A426ACUL)) +#define bFM3_USB1_EP4C_DIR *((volatile unsigned int*)(0x42A426B0UL)) +#define bFM3_USB1_EP4C_TYPE0 *((volatile unsigned int*)(0x42A426B4UL)) +#define bFM3_USB1_EP4C_TYPE1 *((volatile unsigned int*)(0x42A426B8UL)) +#define bFM3_USB1_EP4C_EPEN *((volatile unsigned int*)(0x42A426BCUL)) +#define bFM3_USB1_EP5C_PKS50 *((volatile unsigned int*)(0x42A42700UL)) +#define bFM3_USB1_EP5C_PKS51 *((volatile unsigned int*)(0x42A42704UL)) +#define bFM3_USB1_EP5C_PKS52 *((volatile unsigned int*)(0x42A42708UL)) +#define bFM3_USB1_EP5C_PKS53 *((volatile unsigned int*)(0x42A4270CUL)) +#define bFM3_USB1_EP5C_PKS54 *((volatile unsigned int*)(0x42A42710UL)) +#define bFM3_USB1_EP5C_PKS55 *((volatile unsigned int*)(0x42A42714UL)) +#define bFM3_USB1_EP5C_PKS56 *((volatile unsigned int*)(0x42A42718UL)) +#define bFM3_USB1_EP5C_STAL *((volatile unsigned int*)(0x42A42724UL)) +#define bFM3_USB1_EP5C_NULE *((volatile unsigned int*)(0x42A42728UL)) +#define bFM3_USB1_EP5C_DMAE *((volatile unsigned int*)(0x42A4272CUL)) +#define bFM3_USB1_EP5C_DIR *((volatile unsigned int*)(0x42A42730UL)) +#define bFM3_USB1_EP5C_TYPE0 *((volatile unsigned int*)(0x42A42734UL)) +#define bFM3_USB1_EP5C_TYPE1 *((volatile unsigned int*)(0x42A42738UL)) +#define bFM3_USB1_EP5C_EPEN *((volatile unsigned int*)(0x42A4273CUL)) +#define bFM3_USB1_TMSP_TMSP0 *((volatile unsigned int*)(0x42A42780UL)) +#define bFM3_USB1_TMSP_TMSP1 *((volatile unsigned int*)(0x42A42784UL)) +#define bFM3_USB1_TMSP_TMSP2 *((volatile unsigned int*)(0x42A42788UL)) +#define bFM3_USB1_TMSP_TMSP3 *((volatile unsigned int*)(0x42A4278CUL)) +#define bFM3_USB1_TMSP_TMSP4 *((volatile unsigned int*)(0x42A42790UL)) +#define bFM3_USB1_TMSP_TMSP5 *((volatile unsigned int*)(0x42A42794UL)) +#define bFM3_USB1_TMSP_TMSP6 *((volatile unsigned int*)(0x42A42798UL)) +#define bFM3_USB1_TMSP_TMSP7 *((volatile unsigned int*)(0x42A4279CUL)) +#define bFM3_USB1_TMSP_TMSP8 *((volatile unsigned int*)(0x42A427A0UL)) +#define bFM3_USB1_TMSP_TMSP9 *((volatile unsigned int*)(0x42A427A4UL)) +#define bFM3_USB1_TMSP_TMSP10 *((volatile unsigned int*)(0x42A427A8UL)) +#define bFM3_USB1_UDCS_CONF *((volatile unsigned int*)(0x42A42800UL)) +#define bFM3_USB1_UDCS_SETP *((volatile unsigned int*)(0x42A42804UL)) +#define bFM3_USB1_UDCS_WKUP *((volatile unsigned int*)(0x42A42808UL)) +#define bFM3_USB1_UDCS_BRST *((volatile unsigned int*)(0x42A4280CUL)) +#define bFM3_USB1_UDCS_SOF *((volatile unsigned int*)(0x42A42810UL)) +#define bFM3_USB1_UDCS_SUSP *((volatile unsigned int*)(0x42A42814UL)) +#define bFM3_USB1_UDCIE_CONFIE *((volatile unsigned int*)(0x42A42820UL)) +#define bFM3_USB1_UDCIE_CONFN *((volatile unsigned int*)(0x42A42824UL)) +#define bFM3_USB1_UDCIE_WKUPIE *((volatile unsigned int*)(0x42A42828UL)) +#define bFM3_USB1_UDCIE_BRSTIE *((volatile unsigned int*)(0x42A4282CUL)) +#define bFM3_USB1_UDCIE_SOFIE *((volatile unsigned int*)(0x42A42830UL)) +#define bFM3_USB1_UDCIE_SUSPIE *((volatile unsigned int*)(0x42A42834UL)) +#define bFM3_USB1_EP0IS_DRQI *((volatile unsigned int*)(0x42A428A8UL)) +#define bFM3_USB1_EP0IS_DRQIIE *((volatile unsigned int*)(0x42A428B8UL)) +#define bFM3_USB1_EP0IS_BFINI *((volatile unsigned int*)(0x42A428BCUL)) +#define bFM3_USB1_EP0OS_SIZE0 *((volatile unsigned int*)(0x42A42900UL)) +#define bFM3_USB1_EP0OS_SIZE1 *((volatile unsigned int*)(0x42A42904UL)) +#define bFM3_USB1_EP0OS_SIZE2 *((volatile unsigned int*)(0x42A42908UL)) +#define bFM3_USB1_EP0OS_SIZE3 *((volatile unsigned int*)(0x42A4290CUL)) +#define bFM3_USB1_EP0OS_SIZE4 *((volatile unsigned int*)(0x42A42910UL)) +#define bFM3_USB1_EP0OS_SIZE5 *((volatile unsigned int*)(0x42A42914UL)) +#define bFM3_USB1_EP0OS_SIZE6 *((volatile unsigned int*)(0x42A42918UL)) +#define bFM3_USB1_EP0OS_SPK *((volatile unsigned int*)(0x42A42924UL)) +#define bFM3_USB1_EP0OS_DRQO *((volatile unsigned int*)(0x42A42928UL)) +#define bFM3_USB1_EP0OS_SPKIE *((volatile unsigned int*)(0x42A42934UL)) +#define bFM3_USB1_EP0OS_DRQOIE *((volatile unsigned int*)(0x42A42938UL)) +#define bFM3_USB1_EP0OS_BFINI *((volatile unsigned int*)(0x42A4293CUL)) +#define bFM3_USB1_EP1S_SIZE10 *((volatile unsigned int*)(0x42A42980UL)) +#define bFM3_USB1_EP1S_SIZE11 *((volatile unsigned int*)(0x42A42984UL)) +#define bFM3_USB1_EP1S_SIZE12 *((volatile unsigned int*)(0x42A42988UL)) +#define bFM3_USB1_EP1S_SIZE13 *((volatile unsigned int*)(0x42A4298CUL)) +#define bFM3_USB1_EP1S_SIZE14 *((volatile unsigned int*)(0x42A42990UL)) +#define bFM3_USB1_EP1S_SIZE15 *((volatile unsigned int*)(0x42A42994UL)) +#define bFM3_USB1_EP1S_SIZE16 *((volatile unsigned int*)(0x42A42998UL)) +#define bFM3_USB1_EP1S_SIZE17 *((volatile unsigned int*)(0x42A4299CUL)) +#define bFM3_USB1_EP1S_SIZE18 *((volatile unsigned int*)(0x42A429A0UL)) +#define bFM3_USB1_EP1S_SPK *((volatile unsigned int*)(0x42A429A4UL)) +#define bFM3_USB1_EP1S_DRQ *((volatile unsigned int*)(0x42A429A8UL)) +#define bFM3_USB1_EP1S_BUSY *((volatile unsigned int*)(0x42A429ACUL)) +#define bFM3_USB1_EP1S_SPKIE *((volatile unsigned int*)(0x42A429B4UL)) +#define bFM3_USB1_EP1S_DRQIE *((volatile unsigned int*)(0x42A429B8UL)) +#define bFM3_USB1_EP1S_BFINI *((volatile unsigned int*)(0x42A429BCUL)) +#define bFM3_USB1_EP2S_SIZE20 *((volatile unsigned int*)(0x42A42A00UL)) +#define bFM3_USB1_EP2S_SIZE21 *((volatile unsigned int*)(0x42A42A04UL)) +#define bFM3_USB1_EP2S_SIZE22 *((volatile unsigned int*)(0x42A42A08UL)) +#define bFM3_USB1_EP2S_SIZE23 *((volatile unsigned int*)(0x42A42A0CUL)) +#define bFM3_USB1_EP2S_SIZE24 *((volatile unsigned int*)(0x42A42A10UL)) +#define bFM3_USB1_EP2S_SIZE25 *((volatile unsigned int*)(0x42A42A14UL)) +#define bFM3_USB1_EP2S_SIZE26 *((volatile unsigned int*)(0x42A42A18UL)) +#define bFM3_USB1_EP2S_SPK *((volatile unsigned int*)(0x42A42A24UL)) +#define bFM3_USB1_EP2S_DRQ *((volatile unsigned int*)(0x42A42A28UL)) +#define bFM3_USB1_EP2S_BUSY *((volatile unsigned int*)(0x42A42A2CUL)) +#define bFM3_USB1_EP2S_SPKIE *((volatile unsigned int*)(0x42A42A34UL)) +#define bFM3_USB1_EP2S_DRQIE *((volatile unsigned int*)(0x42A42A38UL)) +#define bFM3_USB1_EP2S_BFINI *((volatile unsigned int*)(0x42A42A3CUL)) +#define bFM3_USB1_EP3S_SIZE30 *((volatile unsigned int*)(0x42A42A80UL)) +#define bFM3_USB1_EP3S_SIZE31 *((volatile unsigned int*)(0x42A42A84UL)) +#define bFM3_USB1_EP3S_SIZE32 *((volatile unsigned int*)(0x42A42A88UL)) +#define bFM3_USB1_EP3S_SIZE33 *((volatile unsigned int*)(0x42A42A8CUL)) +#define bFM3_USB1_EP3S_SIZE34 *((volatile unsigned int*)(0x42A42A90UL)) +#define bFM3_USB1_EP3S_SIZE35 *((volatile unsigned int*)(0x42A42A94UL)) +#define bFM3_USB1_EP3S_SIZE36 *((volatile unsigned int*)(0x42A42A98UL)) +#define bFM3_USB1_EP3S_SPK *((volatile unsigned int*)(0x42A42AA4UL)) +#define bFM3_USB1_EP3S_DRQ *((volatile unsigned int*)(0x42A42AA8UL)) +#define bFM3_USB1_EP3S_BUSY *((volatile unsigned int*)(0x42A42AACUL)) +#define bFM3_USB1_EP3S_SPKIE *((volatile unsigned int*)(0x42A42AB4UL)) +#define bFM3_USB1_EP3S_DRQIE *((volatile unsigned int*)(0x42A42AB8UL)) +#define bFM3_USB1_EP3S_BFINI *((volatile unsigned int*)(0x42A42ABCUL)) +#define bFM3_USB1_EP4S_SIZE40 *((volatile unsigned int*)(0x42A42B00UL)) +#define bFM3_USB1_EP4S_SIZE41 *((volatile unsigned int*)(0x42A42B04UL)) +#define bFM3_USB1_EP4S_SIZE42 *((volatile unsigned int*)(0x42A42B08UL)) +#define bFM3_USB1_EP4S_SIZE43 *((volatile unsigned int*)(0x42A42B0CUL)) +#define bFM3_USB1_EP4S_SIZE44 *((volatile unsigned int*)(0x42A42B10UL)) +#define bFM3_USB1_EP4S_SIZE45 *((volatile unsigned int*)(0x42A42B14UL)) +#define bFM3_USB1_EP4S_SIZE46 *((volatile unsigned int*)(0x42A42B18UL)) +#define bFM3_USB1_EP4S_SPK *((volatile unsigned int*)(0x42A42B24UL)) +#define bFM3_USB1_EP4S_DRQ *((volatile unsigned int*)(0x42A42B28UL)) +#define bFM3_USB1_EP4S_BUSY *((volatile unsigned int*)(0x42A42B2CUL)) +#define bFM3_USB1_EP4S_SPKIE *((volatile unsigned int*)(0x42A42B34UL)) +#define bFM3_USB1_EP4S_DRQIE *((volatile unsigned int*)(0x42A42B38UL)) +#define bFM3_USB1_EP4S_BFINI *((volatile unsigned int*)(0x42A42B3CUL)) +#define bFM3_USB1_EP5S_SIZE50 *((volatile unsigned int*)(0x42A42B80UL)) +#define bFM3_USB1_EP5S_SIZE51 *((volatile unsigned int*)(0x42A42B84UL)) +#define bFM3_USB1_EP5S_SIZE52 *((volatile unsigned int*)(0x42A42B88UL)) +#define bFM3_USB1_EP5S_SIZE53 *((volatile unsigned int*)(0x42A42B8CUL)) +#define bFM3_USB1_EP5S_SIZE54 *((volatile unsigned int*)(0x42A42B90UL)) +#define bFM3_USB1_EP5S_SIZE55 *((volatile unsigned int*)(0x42A42B94UL)) +#define bFM3_USB1_EP5S_SIZE56 *((volatile unsigned int*)(0x42A42B98UL)) +#define bFM3_USB1_EP5S_SPK *((volatile unsigned int*)(0x42A42BA4UL)) +#define bFM3_USB1_EP5S_DRQ *((volatile unsigned int*)(0x42A42BA8UL)) +#define bFM3_USB1_EP5S_BUSY *((volatile unsigned int*)(0x42A42BACUL)) +#define bFM3_USB1_EP5S_SPKIE *((volatile unsigned int*)(0x42A42BB4UL)) +#define bFM3_USB1_EP5S_DRQIE *((volatile unsigned int*)(0x42A42BB8UL)) +#define bFM3_USB1_EP5S_BFINI *((volatile unsigned int*)(0x42A42BBCUL)) + +/* DMA controller */ +#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) +#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) +#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) +#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) +#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) +#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) +#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) +#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) +#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) +#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) +#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) +#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) +#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) +#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) +#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) +#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) +#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) +#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) +#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) +#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) +#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) +#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) +#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) +#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) +#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) +#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) +#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) +#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) +#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) +#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) +#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) +#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) +#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) +#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) +#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) +#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) +#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) +#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) +#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) +#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) +#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) +#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) +#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) +#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) +#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) +#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) +#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) +#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) +#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) +#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) +#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) +#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) +#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) +#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) +#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) +#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) +#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) +#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) +#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) +#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) +#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) +#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) +#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) +#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) +#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) +#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) +#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) +#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) +#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) +#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) +#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) +#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) +#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) +#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) +#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) +#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) +#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) +#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) +#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) +#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) +#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) +#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) +#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) +#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) +#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) +#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) +#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) +#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) +#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) +#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) +#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) +#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) +#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) +#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) +#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) +#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) +#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) +#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) +#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) +#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) +#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) +#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) +#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) +#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) +#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) +#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) +#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) +#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) +#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) +#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) +#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) +#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) +#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) +#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) +#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) +#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) +#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) +#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) +#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) +#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) +#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) +#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) +#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) +#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) +#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) +#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) +#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) +#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) +#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) +#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) +#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) +#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) +#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) +#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) +#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) +#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) +#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) +#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) +#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) +#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) +#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) +#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) +#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) +#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) +#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) +#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) +#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) +#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) +#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) +#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) +#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) +#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) +#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) +#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) +#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) +#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) +#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) +#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) +#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) +#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) +#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) +#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) +#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) +#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) +#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) +#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) +#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) +#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) +#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) +#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) +#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) +#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) +#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) +#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) +#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) +#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) +#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) +#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) +#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) +#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) +#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) +#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) +#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) +#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) +#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) +#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) +#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) +#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) +#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) +#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) +#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) +#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) +#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) +#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) +#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) +#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) +#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) +#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) +#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) +#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) +#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) +#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) +#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) +#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) +#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) +#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) +#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) +#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) +#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) +#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) +#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) +#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) +#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) +#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) +#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) +#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) +#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) +#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) +#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) +#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) +#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) +#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) +#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) +#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) +#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) +#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) +#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) +#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) +#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) +#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) +#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) +#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) +#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) +#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) +#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) +#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) +#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) +#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) +#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) +#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) +#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) +#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) +#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) +#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) +#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) +#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) +#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) +#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) +#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) +#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) +#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) +#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) +#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) +#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) +#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) +#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) +#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) +#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) +#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) +#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) +#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) +#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) +#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) +#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) +#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) +#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) +#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) +#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) +#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) +#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) +#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) +#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) +#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) +#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) +#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) +#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) +#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) +#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) +#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) +#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) +#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) +#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) +#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) +#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) +#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) +#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) +#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) +#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) +#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) +#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) +#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) +#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) +#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) +#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) +#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) +#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) +#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) +#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) +#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) +#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) +#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) +#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) +#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) +#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) +#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) +#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) +#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) +#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) +#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) +#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) +#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) +#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) +#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) +#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) +#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) +#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) +#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) +#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) +#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) +#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) +#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) +#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) +#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) +#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) +#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) +#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) +#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) +#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) +#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) +#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) +#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) +#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) +#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) +#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) +#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) +#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) +#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) +#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) +#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) +#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) +#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) +#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) +#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) +#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) +#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) +#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) +#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) +#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) +#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) +#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) +#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) +#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) +#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) +#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) +#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) +#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) +#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) +#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) +#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) + +/* ETHERNET-MAC0 registers*/ +#define bFM3_ETHERNET_MAC0_MCR_RE *((volatile unsigned int*)(0x42C80008UL)) +#define bFM3_ETHERNET_MAC0_MCR_TE *((volatile unsigned int*)(0x42C8000CUL)) +#define bFM3_ETHERNET_MAC0_MCR_DC *((volatile unsigned int*)(0x42C80010UL)) +#define bFM3_ETHERNET_MAC0_MCR_BL0 *((volatile unsigned int*)(0x42C80014UL)) +#define bFM3_ETHERNET_MAC0_MCR_BL1 *((volatile unsigned int*)(0x42C80018UL)) +#define bFM3_ETHERNET_MAC0_MCR_ACS *((volatile unsigned int*)(0x42C8001CUL)) +#define bFM3_ETHERNET_MAC0_MCR_LUD *((volatile unsigned int*)(0x42C80020UL)) +#define bFM3_ETHERNET_MAC0_MCR_DR *((volatile unsigned int*)(0x42C80024UL)) +#define bFM3_ETHERNET_MAC0_MCR_IPC *((volatile unsigned int*)(0x42C80028UL)) +#define bFM3_ETHERNET_MAC0_MCR_DM *((volatile unsigned int*)(0x42C8002CUL)) +#define bFM3_ETHERNET_MAC0_MCR_LM *((volatile unsigned int*)(0x42C80030UL)) +#define bFM3_ETHERNET_MAC0_MCR_DO *((volatile unsigned int*)(0x42C80034UL)) +#define bFM3_ETHERNET_MAC0_MCR_FES *((volatile unsigned int*)(0x42C80038UL)) +#define bFM3_ETHERNET_MAC0_MCR_PS *((volatile unsigned int*)(0x42C8003CUL)) +#define bFM3_ETHERNET_MAC0_MCR_DCRS *((volatile unsigned int*)(0x42C80040UL)) +#define bFM3_ETHERNET_MAC0_MCR_IFG0 *((volatile unsigned int*)(0x42C80044UL)) +#define bFM3_ETHERNET_MAC0_MCR_IFG1 *((volatile unsigned int*)(0x42C80048UL)) +#define bFM3_ETHERNET_MAC0_MCR_IFG2 *((volatile unsigned int*)(0x42C8004CUL)) +#define bFM3_ETHERNET_MAC0_MCR_JE *((volatile unsigned int*)(0x42C80050UL)) +#define bFM3_ETHERNET_MAC0_MCR_BE *((volatile unsigned int*)(0x42C80054UL)) +#define bFM3_ETHERNET_MAC0_MCR_JD *((volatile unsigned int*)(0x42C80058UL)) +#define bFM3_ETHERNET_MAC0_MCR_WD *((volatile unsigned int*)(0x42C8005CUL)) +#define bFM3_ETHERNET_MAC0_MCR_TC *((volatile unsigned int*)(0x42C80060UL)) +#define bFM3_ETHERNET_MAC0_MCR_CST *((volatile unsigned int*)(0x42C80064UL)) +#define bFM3_ETHERNET_MAC0_MFFR_PR *((volatile unsigned int*)(0x42C80080UL)) +#define bFM3_ETHERNET_MAC0_MFFR_HUC *((volatile unsigned int*)(0x42C80084UL)) +#define bFM3_ETHERNET_MAC0_MFFR_HMC *((volatile unsigned int*)(0x42C80088UL)) +#define bFM3_ETHERNET_MAC0_MFFR_DAIF *((volatile unsigned int*)(0x42C8008CUL)) +#define bFM3_ETHERNET_MAC0_MFFR_PM *((volatile unsigned int*)(0x42C80090UL)) +#define bFM3_ETHERNET_MAC0_MFFR_DB *((volatile unsigned int*)(0x42C80094UL)) +#define bFM3_ETHERNET_MAC0_MFFR_PCF0 *((volatile unsigned int*)(0x42C80098UL)) +#define bFM3_ETHERNET_MAC0_MFFR_PCF1 *((volatile unsigned int*)(0x42C8009CUL)) +#define bFM3_ETHERNET_MAC0_MFFR_SAIF *((volatile unsigned int*)(0x42C800A0UL)) +#define bFM3_ETHERNET_MAC0_MFFR_SAF *((volatile unsigned int*)(0x42C800A4UL)) +#define bFM3_ETHERNET_MAC0_MFFR_HPF *((volatile unsigned int*)(0x42C800A8UL)) +#define bFM3_ETHERNET_MAC0_MFFR_RA *((volatile unsigned int*)(0x42C800FCUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH0 *((volatile unsigned int*)(0x42C80100UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH1 *((volatile unsigned int*)(0x42C80104UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH2 *((volatile unsigned int*)(0x42C80108UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH3 *((volatile unsigned int*)(0x42C8010CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH4 *((volatile unsigned int*)(0x42C80110UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH5 *((volatile unsigned int*)(0x42C80114UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH6 *((volatile unsigned int*)(0x42C80118UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH7 *((volatile unsigned int*)(0x42C8011CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH8 *((volatile unsigned int*)(0x42C80120UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH9 *((volatile unsigned int*)(0x42C80124UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH10 *((volatile unsigned int*)(0x42C80128UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH11 *((volatile unsigned int*)(0x42C8012CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH12 *((volatile unsigned int*)(0x42C80130UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH13 *((volatile unsigned int*)(0x42C80134UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH14 *((volatile unsigned int*)(0x42C80138UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH15 *((volatile unsigned int*)(0x42C8013CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH16 *((volatile unsigned int*)(0x42C80140UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH17 *((volatile unsigned int*)(0x42C80144UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH18 *((volatile unsigned int*)(0x42C80148UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH19 *((volatile unsigned int*)(0x42C8014CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH20 *((volatile unsigned int*)(0x42C80150UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH21 *((volatile unsigned int*)(0x42C80154UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH22 *((volatile unsigned int*)(0x42C80158UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH23 *((volatile unsigned int*)(0x42C8015CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH24 *((volatile unsigned int*)(0x42C80160UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH25 *((volatile unsigned int*)(0x42C80164UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH26 *((volatile unsigned int*)(0x42C80168UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH27 *((volatile unsigned int*)(0x42C8016CUL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH28 *((volatile unsigned int*)(0x42C80170UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH29 *((volatile unsigned int*)(0x42C80174UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH30 *((volatile unsigned int*)(0x42C80178UL)) +#define bFM3_ETHERNET_MAC0_MHTRH_HTH31 *((volatile unsigned int*)(0x42C8017CUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL0 *((volatile unsigned int*)(0x42C80180UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL1 *((volatile unsigned int*)(0x42C80184UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL2 *((volatile unsigned int*)(0x42C80188UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL3 *((volatile unsigned int*)(0x42C8018CUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL4 *((volatile unsigned int*)(0x42C80190UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL5 *((volatile unsigned int*)(0x42C80194UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL6 *((volatile unsigned int*)(0x42C80198UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL7 *((volatile unsigned int*)(0x42C8019CUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL8 *((volatile unsigned int*)(0x42C801A0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL9 *((volatile unsigned int*)(0x42C801A4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL10 *((volatile unsigned int*)(0x42C801A8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL11 *((volatile unsigned int*)(0x42C801ACUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL12 *((volatile unsigned int*)(0x42C801B0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL13 *((volatile unsigned int*)(0x42C801B4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL14 *((volatile unsigned int*)(0x42C801B8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL15 *((volatile unsigned int*)(0x42C801BCUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL16 *((volatile unsigned int*)(0x42C801C0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL17 *((volatile unsigned int*)(0x42C801C4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL18 *((volatile unsigned int*)(0x42C801C8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL19 *((volatile unsigned int*)(0x42C801CCUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL20 *((volatile unsigned int*)(0x42C801D0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL21 *((volatile unsigned int*)(0x42C801D4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL22 *((volatile unsigned int*)(0x42C801D8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL23 *((volatile unsigned int*)(0x42C801DCUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL24 *((volatile unsigned int*)(0x42C801E0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL25 *((volatile unsigned int*)(0x42C801E4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL26 *((volatile unsigned int*)(0x42C801E8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL27 *((volatile unsigned int*)(0x42C801ECUL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL28 *((volatile unsigned int*)(0x42C801F0UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL29 *((volatile unsigned int*)(0x42C801F4UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL30 *((volatile unsigned int*)(0x42C801F8UL)) +#define bFM3_ETHERNET_MAC0_MHTRL_HTL31 *((volatile unsigned int*)(0x42C801FCUL)) +#define bFM3_ETHERNET_MAC0_GAR_GB *((volatile unsigned int*)(0x42C80200UL)) +#define bFM3_ETHERNET_MAC0_GAR_GW *((volatile unsigned int*)(0x42C80204UL)) +#define bFM3_ETHERNET_MAC0_GAR_CR0 *((volatile unsigned int*)(0x42C80208UL)) +#define bFM3_ETHERNET_MAC0_GAR_CR1 *((volatile unsigned int*)(0x42C8020CUL)) +#define bFM3_ETHERNET_MAC0_GAR_CR2 *((volatile unsigned int*)(0x42C80210UL)) +#define bFM3_ETHERNET_MAC0_GAR_CR3 *((volatile unsigned int*)(0x42C80214UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR0 *((volatile unsigned int*)(0x42C80218UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR1 *((volatile unsigned int*)(0x42C8021CUL)) +#define bFM3_ETHERNET_MAC0_GAR_GR2 *((volatile unsigned int*)(0x42C80220UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR3 *((volatile unsigned int*)(0x42C80224UL)) +#define bFM3_ETHERNET_MAC0_GAR_GR4 *((volatile unsigned int*)(0x42C80228UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA0 *((volatile unsigned int*)(0x42C8022CUL)) +#define bFM3_ETHERNET_MAC0_GAR_PA1 *((volatile unsigned int*)(0x42C80230UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA2 *((volatile unsigned int*)(0x42C80234UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA3 *((volatile unsigned int*)(0x42C80238UL)) +#define bFM3_ETHERNET_MAC0_GAR_PA4 *((volatile unsigned int*)(0x42C8023CUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD0 *((volatile unsigned int*)(0x42C80280UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD1 *((volatile unsigned int*)(0x42C80284UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD2 *((volatile unsigned int*)(0x42C80288UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD3 *((volatile unsigned int*)(0x42C8028CUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD4 *((volatile unsigned int*)(0x42C80290UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD5 *((volatile unsigned int*)(0x42C80294UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD6 *((volatile unsigned int*)(0x42C80298UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD7 *((volatile unsigned int*)(0x42C8029CUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD8 *((volatile unsigned int*)(0x42C802A0UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD9 *((volatile unsigned int*)(0x42C802A4UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD10 *((volatile unsigned int*)(0x42C802A8UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD11 *((volatile unsigned int*)(0x42C802ACUL)) +#define bFM3_ETHERNET_MAC0_GDR_GD12 *((volatile unsigned int*)(0x42C802B0UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD13 *((volatile unsigned int*)(0x42C802B4UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD14 *((volatile unsigned int*)(0x42C802B8UL)) +#define bFM3_ETHERNET_MAC0_GDR_GD15 *((volatile unsigned int*)(0x42C802BCUL)) +#define bFM3_ETHERNET_MAC0_FCR_FCB_BPA *((volatile unsigned int*)(0x42C80300UL)) +#define bFM3_ETHERNET_MAC0_FCR_TFE *((volatile unsigned int*)(0x42C80304UL)) +#define bFM3_ETHERNET_MAC0_FCR_RFE *((volatile unsigned int*)(0x42C80308UL)) +#define bFM3_ETHERNET_MAC0_FCR_UP *((volatile unsigned int*)(0x42C8030CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PLT0 *((volatile unsigned int*)(0x42C80310UL)) +#define bFM3_ETHERNET_MAC0_FCR_PLT1 *((volatile unsigned int*)(0x42C80314UL)) +#define bFM3_ETHERNET_MAC0_FCR_DZPQ *((volatile unsigned int*)(0x42C8031CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT0 *((volatile unsigned int*)(0x42C80340UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT1 *((volatile unsigned int*)(0x42C80344UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT2 *((volatile unsigned int*)(0x42C80348UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT3 *((volatile unsigned int*)(0x42C8034CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT4 *((volatile unsigned int*)(0x42C80350UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT5 *((volatile unsigned int*)(0x42C80354UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT6 *((volatile unsigned int*)(0x42C80358UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT7 *((volatile unsigned int*)(0x42C8035CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT8 *((volatile unsigned int*)(0x42C80360UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT9 *((volatile unsigned int*)(0x42C80364UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT10 *((volatile unsigned int*)(0x42C80368UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT11 *((volatile unsigned int*)(0x42C8036CUL)) +#define bFM3_ETHERNET_MAC0_FCR_PT12 *((volatile unsigned int*)(0x42C80370UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT13 *((volatile unsigned int*)(0x42C80374UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT14 *((volatile unsigned int*)(0x42C80378UL)) +#define bFM3_ETHERNET_MAC0_FCR_PT15 *((volatile unsigned int*)(0x42C8037CUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL0 *((volatile unsigned int*)(0x42C80380UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL1 *((volatile unsigned int*)(0x42C80384UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL2 *((volatile unsigned int*)(0x42C80388UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL3 *((volatile unsigned int*)(0x42C8038CUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL4 *((volatile unsigned int*)(0x42C80390UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL5 *((volatile unsigned int*)(0x42C80394UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL6 *((volatile unsigned int*)(0x42C80398UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL7 *((volatile unsigned int*)(0x42C8039CUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL8 *((volatile unsigned int*)(0x42C803A0UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL9 *((volatile unsigned int*)(0x42C803A4UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL10 *((volatile unsigned int*)(0x42C803A8UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL11 *((volatile unsigned int*)(0x42C803ACUL)) +#define bFM3_ETHERNET_MAC0_VTR_VL12 *((volatile unsigned int*)(0x42C803B0UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL13 *((volatile unsigned int*)(0x42C803B4UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL14 *((volatile unsigned int*)(0x42C803B8UL)) +#define bFM3_ETHERNET_MAC0_VTR_VL15 *((volatile unsigned int*)(0x42C803BCUL)) +#define bFM3_ETHERNET_MAC0_VTR_ETV *((volatile unsigned int*)(0x42C803C0UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42C80500UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42C80504UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42C80508UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42C8050CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42C80510UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42C80514UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42C80518UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42C8051CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42C80520UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42C80524UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42C80528UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42C8052CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42C80530UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42C80534UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42C80538UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42C8053CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42C80540UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42C80544UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42C80548UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42C8054CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42C80550UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42C80554UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42C80558UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42C8055CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42C80560UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42C80564UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42C80568UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42C8056CUL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42C80570UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42C80574UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42C80578UL)) +#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42C8057CUL)) +#define bFM3_ETHERNET_MAC0_PMTR_PD *((volatile unsigned int*)(0x42C80580UL)) +#define bFM3_ETHERNET_MAC0_PMTR_MPE *((volatile unsigned int*)(0x42C80584UL)) +#define bFM3_ETHERNET_MAC0_PMTR_WFE *((volatile unsigned int*)(0x42C80588UL)) +#define bFM3_ETHERNET_MAC0_PMTR_MPR *((volatile unsigned int*)(0x42C80594UL)) +#define bFM3_ETHERNET_MAC0_PMTR_WPR *((volatile unsigned int*)(0x42C80598UL)) +#define bFM3_ETHERNET_MAC0_PMTR_GU *((volatile unsigned int*)(0x42C805A4UL)) +#define bFM3_ETHERNET_MAC0_PMTR_RWFFRPR *((volatile unsigned int*)(0x42C805FCUL)) +#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEN *((volatile unsigned int*)(0x42C80600UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEX *((volatile unsigned int*)(0x42C80604UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEN *((volatile unsigned int*)(0x42C80608UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEX *((volatile unsigned int*)(0x42C8060CUL)) +#define bFM3_ETHERNET_MAC0_LPICSR_TLPIST *((volatile unsigned int*)(0x42C80620UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_RLPIST *((volatile unsigned int*)(0x42C80624UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_LPIEN *((volatile unsigned int*)(0x42C80640UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_PLS *((volatile unsigned int*)(0x42C80644UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_PLSEN *((volatile unsigned int*)(0x42C80648UL)) +#define bFM3_ETHERNET_MAC0_LPICSR_LPITXA *((volatile unsigned int*)(0x42C8064CUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT0 *((volatile unsigned int*)(0x42C80680UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT1 *((volatile unsigned int*)(0x42C80684UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT2 *((volatile unsigned int*)(0x42C80688UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT3 *((volatile unsigned int*)(0x42C8068CUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT4 *((volatile unsigned int*)(0x42C80690UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT5 *((volatile unsigned int*)(0x42C80694UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT6 *((volatile unsigned int*)(0x42C80698UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT7 *((volatile unsigned int*)(0x42C8069CUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT8 *((volatile unsigned int*)(0x42C806A0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT9 *((volatile unsigned int*)(0x42C806A4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT10 *((volatile unsigned int*)(0x42C806A8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT11 *((volatile unsigned int*)(0x42C806ACUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT12 *((volatile unsigned int*)(0x42C806B0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT13 *((volatile unsigned int*)(0x42C806B4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT14 *((volatile unsigned int*)(0x42C806B8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_TWT15 *((volatile unsigned int*)(0x42C806BCUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT0 *((volatile unsigned int*)(0x42C806C0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT1 *((volatile unsigned int*)(0x42C806C4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT2 *((volatile unsigned int*)(0x42C806C8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT3 *((volatile unsigned int*)(0x42C806CCUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT4 *((volatile unsigned int*)(0x42C806D0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT5 *((volatile unsigned int*)(0x42C806D4UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT6 *((volatile unsigned int*)(0x42C806D8UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT7 *((volatile unsigned int*)(0x42C806DCUL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT8 *((volatile unsigned int*)(0x42C806E0UL)) +#define bFM3_ETHERNET_MAC0_LPITCR_LIT9 *((volatile unsigned int*)(0x42C806E4UL)) +#define bFM3_ETHERNET_MAC0_ISR_RGIS *((volatile unsigned int*)(0x42C80700UL)) +#define bFM3_ETHERNET_MAC0_ISR_PIS *((volatile unsigned int*)(0x42C8070CUL)) +#define bFM3_ETHERNET_MAC0_ISR_MIS *((volatile unsigned int*)(0x42C80710UL)) +#define bFM3_ETHERNET_MAC0_ISR_RIS *((volatile unsigned int*)(0x42C80714UL)) +#define bFM3_ETHERNET_MAC0_ISR_TIS *((volatile unsigned int*)(0x42C80718UL)) +#define bFM3_ETHERNET_MAC0_ISR_COIS *((volatile unsigned int*)(0x42C8071CUL)) +#define bFM3_ETHERNET_MAC0_ISR_TSIS *((volatile unsigned int*)(0x42C80724UL)) +#define bFM3_ETHERNET_MAC0_ISR_LPIIS *((volatile unsigned int*)(0x42C80728UL)) +#define bFM3_ETHERNET_MAC0_IMR_RGIM *((volatile unsigned int*)(0x42C80780UL)) +#define bFM3_ETHERNET_MAC0_IMR_PIM *((volatile unsigned int*)(0x42C8078CUL)) +#define bFM3_ETHERNET_MAC0_IMR_TSIM *((volatile unsigned int*)(0x42C80794UL)) +#define bFM3_ETHERNET_MAC0_IMR_LPIIM *((volatile unsigned int*)(0x42C80798UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A32 *((volatile unsigned int*)(0x42C80800UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A33 *((volatile unsigned int*)(0x42C80804UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A34 *((volatile unsigned int*)(0x42C80808UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A35 *((volatile unsigned int*)(0x42C8080CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A36 *((volatile unsigned int*)(0x42C80810UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A37 *((volatile unsigned int*)(0x42C80814UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A38 *((volatile unsigned int*)(0x42C80818UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A39 *((volatile unsigned int*)(0x42C8081CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A40 *((volatile unsigned int*)(0x42C80820UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A41 *((volatile unsigned int*)(0x42C80824UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A42 *((volatile unsigned int*)(0x42C80828UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A43 *((volatile unsigned int*)(0x42C8082CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A44 *((volatile unsigned int*)(0x42C80830UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A45 *((volatile unsigned int*)(0x42C80834UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A46 *((volatile unsigned int*)(0x42C80838UL)) +#define bFM3_ETHERNET_MAC0_MAR0H_A47 *((volatile unsigned int*)(0x42C8083CUL)) +#define bFM3_ETHERNET_MAC0_MAR0H_MO *((volatile unsigned int*)(0x42C8087CUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A0 *((volatile unsigned int*)(0x42C80880UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A1 *((volatile unsigned int*)(0x42C80884UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A2 *((volatile unsigned int*)(0x42C80888UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A3 *((volatile unsigned int*)(0x42C8088CUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A4 *((volatile unsigned int*)(0x42C80890UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A5 *((volatile unsigned int*)(0x42C80894UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A6 *((volatile unsigned int*)(0x42C80898UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A7 *((volatile unsigned int*)(0x42C8089CUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A8 *((volatile unsigned int*)(0x42C808A0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A9 *((volatile unsigned int*)(0x42C808A4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A10 *((volatile unsigned int*)(0x42C808A8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A11 *((volatile unsigned int*)(0x42C808ACUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A12 *((volatile unsigned int*)(0x42C808B0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A13 *((volatile unsigned int*)(0x42C808B4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A14 *((volatile unsigned int*)(0x42C808B8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A15 *((volatile unsigned int*)(0x42C808BCUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A16 *((volatile unsigned int*)(0x42C808C0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A17 *((volatile unsigned int*)(0x42C808C4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A18 *((volatile unsigned int*)(0x42C808C8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A19 *((volatile unsigned int*)(0x42C808CCUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A20 *((volatile unsigned int*)(0x42C808D0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A21 *((volatile unsigned int*)(0x42C808D4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A22 *((volatile unsigned int*)(0x42C808D8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A23 *((volatile unsigned int*)(0x42C808DCUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A24 *((volatile unsigned int*)(0x42C808E0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A25 *((volatile unsigned int*)(0x42C808E4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A26 *((volatile unsigned int*)(0x42C808E8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A27 *((volatile unsigned int*)(0x42C808ECUL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A28 *((volatile unsigned int*)(0x42C808F0UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A29 *((volatile unsigned int*)(0x42C808F4UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A30 *((volatile unsigned int*)(0x42C808F8UL)) +#define bFM3_ETHERNET_MAC0_MAR0L_A31 *((volatile unsigned int*)(0x42C808FCUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A32 *((volatile unsigned int*)(0x42C80900UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A33 *((volatile unsigned int*)(0x42C80904UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A34 *((volatile unsigned int*)(0x42C80908UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A35 *((volatile unsigned int*)(0x42C8090CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A36 *((volatile unsigned int*)(0x42C80910UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A37 *((volatile unsigned int*)(0x42C80914UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A38 *((volatile unsigned int*)(0x42C80918UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A39 *((volatile unsigned int*)(0x42C8091CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A40 *((volatile unsigned int*)(0x42C80920UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A41 *((volatile unsigned int*)(0x42C80924UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A42 *((volatile unsigned int*)(0x42C80928UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A43 *((volatile unsigned int*)(0x42C8092CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A44 *((volatile unsigned int*)(0x42C80930UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A45 *((volatile unsigned int*)(0x42C80934UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A46 *((volatile unsigned int*)(0x42C80938UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_A47 *((volatile unsigned int*)(0x42C8093CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC0 *((volatile unsigned int*)(0x42C80960UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC1 *((volatile unsigned int*)(0x42C80964UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC2 *((volatile unsigned int*)(0x42C80968UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC3 *((volatile unsigned int*)(0x42C8096CUL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC4 *((volatile unsigned int*)(0x42C80970UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_MBC5 *((volatile unsigned int*)(0x42C80974UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_SA *((volatile unsigned int*)(0x42C80978UL)) +#define bFM3_ETHERNET_MAC0_MAR1H_AE *((volatile unsigned int*)(0x42C8097CUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A0 *((volatile unsigned int*)(0x42C80980UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A1 *((volatile unsigned int*)(0x42C80984UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A2 *((volatile unsigned int*)(0x42C80988UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A3 *((volatile unsigned int*)(0x42C8098CUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A4 *((volatile unsigned int*)(0x42C80990UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A5 *((volatile unsigned int*)(0x42C80994UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A6 *((volatile unsigned int*)(0x42C80998UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A7 *((volatile unsigned int*)(0x42C8099CUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A8 *((volatile unsigned int*)(0x42C809A0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A9 *((volatile unsigned int*)(0x42C809A4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A10 *((volatile unsigned int*)(0x42C809A8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A11 *((volatile unsigned int*)(0x42C809ACUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A12 *((volatile unsigned int*)(0x42C809B0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A13 *((volatile unsigned int*)(0x42C809B4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A14 *((volatile unsigned int*)(0x42C809B8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A15 *((volatile unsigned int*)(0x42C809BCUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A16 *((volatile unsigned int*)(0x42C809C0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A17 *((volatile unsigned int*)(0x42C809C4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A18 *((volatile unsigned int*)(0x42C809C8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A19 *((volatile unsigned int*)(0x42C809CCUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A20 *((volatile unsigned int*)(0x42C809D0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A21 *((volatile unsigned int*)(0x42C809D4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A22 *((volatile unsigned int*)(0x42C809D8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A23 *((volatile unsigned int*)(0x42C809DCUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A24 *((volatile unsigned int*)(0x42C809E0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A25 *((volatile unsigned int*)(0x42C809E4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A26 *((volatile unsigned int*)(0x42C809E8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A27 *((volatile unsigned int*)(0x42C809ECUL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A28 *((volatile unsigned int*)(0x42C809F0UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A29 *((volatile unsigned int*)(0x42C809F4UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A30 *((volatile unsigned int*)(0x42C809F8UL)) +#define bFM3_ETHERNET_MAC0_MAR1L_A31 *((volatile unsigned int*)(0x42C809FCUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A32 *((volatile unsigned int*)(0x42C80A00UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A33 *((volatile unsigned int*)(0x42C80A04UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A34 *((volatile unsigned int*)(0x42C80A08UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A35 *((volatile unsigned int*)(0x42C80A0CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A36 *((volatile unsigned int*)(0x42C80A10UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A37 *((volatile unsigned int*)(0x42C80A14UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A38 *((volatile unsigned int*)(0x42C80A18UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A39 *((volatile unsigned int*)(0x42C80A1CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A40 *((volatile unsigned int*)(0x42C80A20UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A41 *((volatile unsigned int*)(0x42C80A24UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A42 *((volatile unsigned int*)(0x42C80A28UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A43 *((volatile unsigned int*)(0x42C80A2CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A44 *((volatile unsigned int*)(0x42C80A30UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A45 *((volatile unsigned int*)(0x42C80A34UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A46 *((volatile unsigned int*)(0x42C80A38UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_A47 *((volatile unsigned int*)(0x42C80A3CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC0 *((volatile unsigned int*)(0x42C80A60UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC1 *((volatile unsigned int*)(0x42C80A64UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC2 *((volatile unsigned int*)(0x42C80A68UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC3 *((volatile unsigned int*)(0x42C80A6CUL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC4 *((volatile unsigned int*)(0x42C80A70UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_MBC5 *((volatile unsigned int*)(0x42C80A74UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_SA *((volatile unsigned int*)(0x42C80A78UL)) +#define bFM3_ETHERNET_MAC0_MAR2H_AE *((volatile unsigned int*)(0x42C80A7CUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A0 *((volatile unsigned int*)(0x42C80A80UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A1 *((volatile unsigned int*)(0x42C80A84UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A2 *((volatile unsigned int*)(0x42C80A88UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A3 *((volatile unsigned int*)(0x42C80A8CUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A4 *((volatile unsigned int*)(0x42C80A90UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A5 *((volatile unsigned int*)(0x42C80A94UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A6 *((volatile unsigned int*)(0x42C80A98UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A7 *((volatile unsigned int*)(0x42C80A9CUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A8 *((volatile unsigned int*)(0x42C80AA0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A9 *((volatile unsigned int*)(0x42C80AA4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A10 *((volatile unsigned int*)(0x42C80AA8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A11 *((volatile unsigned int*)(0x42C80AACUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A12 *((volatile unsigned int*)(0x42C80AB0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A13 *((volatile unsigned int*)(0x42C80AB4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A14 *((volatile unsigned int*)(0x42C80AB8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A15 *((volatile unsigned int*)(0x42C80ABCUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A16 *((volatile unsigned int*)(0x42C80AC0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A17 *((volatile unsigned int*)(0x42C80AC4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A18 *((volatile unsigned int*)(0x42C80AC8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A19 *((volatile unsigned int*)(0x42C80ACCUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A20 *((volatile unsigned int*)(0x42C80AD0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A21 *((volatile unsigned int*)(0x42C80AD4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A22 *((volatile unsigned int*)(0x42C80AD8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A23 *((volatile unsigned int*)(0x42C80ADCUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A24 *((volatile unsigned int*)(0x42C80AE0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A25 *((volatile unsigned int*)(0x42C80AE4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A26 *((volatile unsigned int*)(0x42C80AE8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A27 *((volatile unsigned int*)(0x42C80AECUL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A28 *((volatile unsigned int*)(0x42C80AF0UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A29 *((volatile unsigned int*)(0x42C80AF4UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A30 *((volatile unsigned int*)(0x42C80AF8UL)) +#define bFM3_ETHERNET_MAC0_MAR2L_A31 *((volatile unsigned int*)(0x42C80AFCUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A32 *((volatile unsigned int*)(0x42C80B00UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A33 *((volatile unsigned int*)(0x42C80B04UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A34 *((volatile unsigned int*)(0x42C80B08UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A35 *((volatile unsigned int*)(0x42C80B0CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A36 *((volatile unsigned int*)(0x42C80B10UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A37 *((volatile unsigned int*)(0x42C80B14UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A38 *((volatile unsigned int*)(0x42C80B18UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A39 *((volatile unsigned int*)(0x42C80B1CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A40 *((volatile unsigned int*)(0x42C80B20UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A41 *((volatile unsigned int*)(0x42C80B24UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A42 *((volatile unsigned int*)(0x42C80B28UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A43 *((volatile unsigned int*)(0x42C80B2CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A44 *((volatile unsigned int*)(0x42C80B30UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A45 *((volatile unsigned int*)(0x42C80B34UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A46 *((volatile unsigned int*)(0x42C80B38UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_A47 *((volatile unsigned int*)(0x42C80B3CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC0 *((volatile unsigned int*)(0x42C80B60UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC1 *((volatile unsigned int*)(0x42C80B64UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC2 *((volatile unsigned int*)(0x42C80B68UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC3 *((volatile unsigned int*)(0x42C80B6CUL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC4 *((volatile unsigned int*)(0x42C80B70UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_MBC5 *((volatile unsigned int*)(0x42C80B74UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_SA *((volatile unsigned int*)(0x42C80B78UL)) +#define bFM3_ETHERNET_MAC0_MAR3H_AE *((volatile unsigned int*)(0x42C80B7CUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A0 *((volatile unsigned int*)(0x42C80B80UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A1 *((volatile unsigned int*)(0x42C80B84UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A2 *((volatile unsigned int*)(0x42C80B88UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A3 *((volatile unsigned int*)(0x42C80B8CUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A4 *((volatile unsigned int*)(0x42C80B90UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A5 *((volatile unsigned int*)(0x42C80B94UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A6 *((volatile unsigned int*)(0x42C80B98UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A7 *((volatile unsigned int*)(0x42C80B9CUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A8 *((volatile unsigned int*)(0x42C80BA0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A9 *((volatile unsigned int*)(0x42C80BA4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A10 *((volatile unsigned int*)(0x42C80BA8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A11 *((volatile unsigned int*)(0x42C80BACUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A12 *((volatile unsigned int*)(0x42C80BB0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A13 *((volatile unsigned int*)(0x42C80BB4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A14 *((volatile unsigned int*)(0x42C80BB8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A15 *((volatile unsigned int*)(0x42C80BBCUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A16 *((volatile unsigned int*)(0x42C80BC0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A17 *((volatile unsigned int*)(0x42C80BC4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A18 *((volatile unsigned int*)(0x42C80BC8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A19 *((volatile unsigned int*)(0x42C80BCCUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A20 *((volatile unsigned int*)(0x42C80BD0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A21 *((volatile unsigned int*)(0x42C80BD4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A22 *((volatile unsigned int*)(0x42C80BD8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A23 *((volatile unsigned int*)(0x42C80BDCUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A24 *((volatile unsigned int*)(0x42C80BE0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A25 *((volatile unsigned int*)(0x42C80BE4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A26 *((volatile unsigned int*)(0x42C80BE8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A27 *((volatile unsigned int*)(0x42C80BECUL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A28 *((volatile unsigned int*)(0x42C80BF0UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A29 *((volatile unsigned int*)(0x42C80BF4UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A30 *((volatile unsigned int*)(0x42C80BF8UL)) +#define bFM3_ETHERNET_MAC0_MAR3L_A31 *((volatile unsigned int*)(0x42C80BFCUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A32 *((volatile unsigned int*)(0x42C80C00UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A33 *((volatile unsigned int*)(0x42C80C04UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A34 *((volatile unsigned int*)(0x42C80C08UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A35 *((volatile unsigned int*)(0x42C80C0CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A36 *((volatile unsigned int*)(0x42C80C10UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A37 *((volatile unsigned int*)(0x42C80C14UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A38 *((volatile unsigned int*)(0x42C80C18UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A39 *((volatile unsigned int*)(0x42C80C1CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A40 *((volatile unsigned int*)(0x42C80C20UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A41 *((volatile unsigned int*)(0x42C80C24UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A42 *((volatile unsigned int*)(0x42C80C28UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A43 *((volatile unsigned int*)(0x42C80C2CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A44 *((volatile unsigned int*)(0x42C80C30UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A45 *((volatile unsigned int*)(0x42C80C34UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A46 *((volatile unsigned int*)(0x42C80C38UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_A47 *((volatile unsigned int*)(0x42C80C3CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC0 *((volatile unsigned int*)(0x42C80C60UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC1 *((volatile unsigned int*)(0x42C80C64UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC2 *((volatile unsigned int*)(0x42C80C68UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC3 *((volatile unsigned int*)(0x42C80C6CUL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC4 *((volatile unsigned int*)(0x42C80C70UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_MBC5 *((volatile unsigned int*)(0x42C80C74UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_SA *((volatile unsigned int*)(0x42C80C78UL)) +#define bFM3_ETHERNET_MAC0_MAR4H_AE *((volatile unsigned int*)(0x42C80C7CUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A0 *((volatile unsigned int*)(0x42C80C80UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A1 *((volatile unsigned int*)(0x42C80C84UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A2 *((volatile unsigned int*)(0x42C80C88UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A3 *((volatile unsigned int*)(0x42C80C8CUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A4 *((volatile unsigned int*)(0x42C80C90UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A5 *((volatile unsigned int*)(0x42C80C94UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A6 *((volatile unsigned int*)(0x42C80C98UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A7 *((volatile unsigned int*)(0x42C80C9CUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A8 *((volatile unsigned int*)(0x42C80CA0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A9 *((volatile unsigned int*)(0x42C80CA4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A10 *((volatile unsigned int*)(0x42C80CA8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A11 *((volatile unsigned int*)(0x42C80CACUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A12 *((volatile unsigned int*)(0x42C80CB0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A13 *((volatile unsigned int*)(0x42C80CB4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A14 *((volatile unsigned int*)(0x42C80CB8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A15 *((volatile unsigned int*)(0x42C80CBCUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A16 *((volatile unsigned int*)(0x42C80CC0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A17 *((volatile unsigned int*)(0x42C80CC4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A18 *((volatile unsigned int*)(0x42C80CC8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A19 *((volatile unsigned int*)(0x42C80CCCUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A20 *((volatile unsigned int*)(0x42C80CD0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A21 *((volatile unsigned int*)(0x42C80CD4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A22 *((volatile unsigned int*)(0x42C80CD8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A23 *((volatile unsigned int*)(0x42C80CDCUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A24 *((volatile unsigned int*)(0x42C80CE0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A25 *((volatile unsigned int*)(0x42C80CE4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A26 *((volatile unsigned int*)(0x42C80CE8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A27 *((volatile unsigned int*)(0x42C80CECUL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A28 *((volatile unsigned int*)(0x42C80CF0UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A29 *((volatile unsigned int*)(0x42C80CF4UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A30 *((volatile unsigned int*)(0x42C80CF8UL)) +#define bFM3_ETHERNET_MAC0_MAR4L_A31 *((volatile unsigned int*)(0x42C80CFCUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A32 *((volatile unsigned int*)(0x42C80D00UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A33 *((volatile unsigned int*)(0x42C80D04UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A34 *((volatile unsigned int*)(0x42C80D08UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A35 *((volatile unsigned int*)(0x42C80D0CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A36 *((volatile unsigned int*)(0x42C80D10UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A37 *((volatile unsigned int*)(0x42C80D14UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A38 *((volatile unsigned int*)(0x42C80D18UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A39 *((volatile unsigned int*)(0x42C80D1CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A40 *((volatile unsigned int*)(0x42C80D20UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A41 *((volatile unsigned int*)(0x42C80D24UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A42 *((volatile unsigned int*)(0x42C80D28UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A43 *((volatile unsigned int*)(0x42C80D2CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A44 *((volatile unsigned int*)(0x42C80D30UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A45 *((volatile unsigned int*)(0x42C80D34UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A46 *((volatile unsigned int*)(0x42C80D38UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_A47 *((volatile unsigned int*)(0x42C80D3CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC0 *((volatile unsigned int*)(0x42C80D60UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC1 *((volatile unsigned int*)(0x42C80D64UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC2 *((volatile unsigned int*)(0x42C80D68UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC3 *((volatile unsigned int*)(0x42C80D6CUL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC4 *((volatile unsigned int*)(0x42C80D70UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_MBC5 *((volatile unsigned int*)(0x42C80D74UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_SA *((volatile unsigned int*)(0x42C80D78UL)) +#define bFM3_ETHERNET_MAC0_MAR5H_AE *((volatile unsigned int*)(0x42C80D7CUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A0 *((volatile unsigned int*)(0x42C80D80UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A1 *((volatile unsigned int*)(0x42C80D84UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A2 *((volatile unsigned int*)(0x42C80D88UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A3 *((volatile unsigned int*)(0x42C80D8CUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A4 *((volatile unsigned int*)(0x42C80D90UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A5 *((volatile unsigned int*)(0x42C80D94UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A6 *((volatile unsigned int*)(0x42C80D98UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A7 *((volatile unsigned int*)(0x42C80D9CUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A8 *((volatile unsigned int*)(0x42C80DA0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A9 *((volatile unsigned int*)(0x42C80DA4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A10 *((volatile unsigned int*)(0x42C80DA8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A11 *((volatile unsigned int*)(0x42C80DACUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A12 *((volatile unsigned int*)(0x42C80DB0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A13 *((volatile unsigned int*)(0x42C80DB4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A14 *((volatile unsigned int*)(0x42C80DB8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A15 *((volatile unsigned int*)(0x42C80DBCUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A16 *((volatile unsigned int*)(0x42C80DC0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A17 *((volatile unsigned int*)(0x42C80DC4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A18 *((volatile unsigned int*)(0x42C80DC8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A19 *((volatile unsigned int*)(0x42C80DCCUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A20 *((volatile unsigned int*)(0x42C80DD0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A21 *((volatile unsigned int*)(0x42C80DD4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A22 *((volatile unsigned int*)(0x42C80DD8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A23 *((volatile unsigned int*)(0x42C80DDCUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A24 *((volatile unsigned int*)(0x42C80DE0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A25 *((volatile unsigned int*)(0x42C80DE4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A26 *((volatile unsigned int*)(0x42C80DE8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A27 *((volatile unsigned int*)(0x42C80DECUL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A28 *((volatile unsigned int*)(0x42C80DF0UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A29 *((volatile unsigned int*)(0x42C80DF4UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A30 *((volatile unsigned int*)(0x42C80DF8UL)) +#define bFM3_ETHERNET_MAC0_MAR5L_A31 *((volatile unsigned int*)(0x42C80DFCUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A32 *((volatile unsigned int*)(0x42C80E00UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A33 *((volatile unsigned int*)(0x42C80E04UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A34 *((volatile unsigned int*)(0x42C80E08UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A35 *((volatile unsigned int*)(0x42C80E0CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A36 *((volatile unsigned int*)(0x42C80E10UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A37 *((volatile unsigned int*)(0x42C80E14UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A38 *((volatile unsigned int*)(0x42C80E18UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A39 *((volatile unsigned int*)(0x42C80E1CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A40 *((volatile unsigned int*)(0x42C80E20UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A41 *((volatile unsigned int*)(0x42C80E24UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A42 *((volatile unsigned int*)(0x42C80E28UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A43 *((volatile unsigned int*)(0x42C80E2CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A44 *((volatile unsigned int*)(0x42C80E30UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A45 *((volatile unsigned int*)(0x42C80E34UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A46 *((volatile unsigned int*)(0x42C80E38UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_A47 *((volatile unsigned int*)(0x42C80E3CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC0 *((volatile unsigned int*)(0x42C80E60UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC1 *((volatile unsigned int*)(0x42C80E64UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC2 *((volatile unsigned int*)(0x42C80E68UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC3 *((volatile unsigned int*)(0x42C80E6CUL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC4 *((volatile unsigned int*)(0x42C80E70UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_MBC5 *((volatile unsigned int*)(0x42C80E74UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_SA *((volatile unsigned int*)(0x42C80E78UL)) +#define bFM3_ETHERNET_MAC0_MAR6H_AE *((volatile unsigned int*)(0x42C80E7CUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A0 *((volatile unsigned int*)(0x42C80E80UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A1 *((volatile unsigned int*)(0x42C80E84UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A2 *((volatile unsigned int*)(0x42C80E88UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A3 *((volatile unsigned int*)(0x42C80E8CUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A4 *((volatile unsigned int*)(0x42C80E90UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A5 *((volatile unsigned int*)(0x42C80E94UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A6 *((volatile unsigned int*)(0x42C80E98UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A7 *((volatile unsigned int*)(0x42C80E9CUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A8 *((volatile unsigned int*)(0x42C80EA0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A9 *((volatile unsigned int*)(0x42C80EA4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A10 *((volatile unsigned int*)(0x42C80EA8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A11 *((volatile unsigned int*)(0x42C80EACUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A12 *((volatile unsigned int*)(0x42C80EB0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A13 *((volatile unsigned int*)(0x42C80EB4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A14 *((volatile unsigned int*)(0x42C80EB8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A15 *((volatile unsigned int*)(0x42C80EBCUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A16 *((volatile unsigned int*)(0x42C80EC0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A17 *((volatile unsigned int*)(0x42C80EC4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A18 *((volatile unsigned int*)(0x42C80EC8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A19 *((volatile unsigned int*)(0x42C80ECCUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A20 *((volatile unsigned int*)(0x42C80ED0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A21 *((volatile unsigned int*)(0x42C80ED4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A22 *((volatile unsigned int*)(0x42C80ED8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A23 *((volatile unsigned int*)(0x42C80EDCUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A24 *((volatile unsigned int*)(0x42C80EE0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A25 *((volatile unsigned int*)(0x42C80EE4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A26 *((volatile unsigned int*)(0x42C80EE8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A27 *((volatile unsigned int*)(0x42C80EECUL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A28 *((volatile unsigned int*)(0x42C80EF0UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A29 *((volatile unsigned int*)(0x42C80EF4UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A30 *((volatile unsigned int*)(0x42C80EF8UL)) +#define bFM3_ETHERNET_MAC0_MAR6L_A31 *((volatile unsigned int*)(0x42C80EFCUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A32 *((volatile unsigned int*)(0x42C80F00UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A33 *((volatile unsigned int*)(0x42C80F04UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A34 *((volatile unsigned int*)(0x42C80F08UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A35 *((volatile unsigned int*)(0x42C80F0CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A36 *((volatile unsigned int*)(0x42C80F10UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A37 *((volatile unsigned int*)(0x42C80F14UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A38 *((volatile unsigned int*)(0x42C80F18UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A39 *((volatile unsigned int*)(0x42C80F1CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A40 *((volatile unsigned int*)(0x42C80F20UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A41 *((volatile unsigned int*)(0x42C80F24UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A42 *((volatile unsigned int*)(0x42C80F28UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A43 *((volatile unsigned int*)(0x42C80F2CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A44 *((volatile unsigned int*)(0x42C80F30UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A45 *((volatile unsigned int*)(0x42C80F34UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A46 *((volatile unsigned int*)(0x42C80F38UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_A47 *((volatile unsigned int*)(0x42C80F3CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC0 *((volatile unsigned int*)(0x42C80F60UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC1 *((volatile unsigned int*)(0x42C80F64UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC2 *((volatile unsigned int*)(0x42C80F68UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC3 *((volatile unsigned int*)(0x42C80F6CUL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC4 *((volatile unsigned int*)(0x42C80F70UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_MBC5 *((volatile unsigned int*)(0x42C80F74UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_SA *((volatile unsigned int*)(0x42C80F78UL)) +#define bFM3_ETHERNET_MAC0_MAR7H_AE *((volatile unsigned int*)(0x42C80F7CUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A0 *((volatile unsigned int*)(0x42C80F80UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A1 *((volatile unsigned int*)(0x42C80F84UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A2 *((volatile unsigned int*)(0x42C80F88UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A3 *((volatile unsigned int*)(0x42C80F8CUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A4 *((volatile unsigned int*)(0x42C80F90UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A5 *((volatile unsigned int*)(0x42C80F94UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A6 *((volatile unsigned int*)(0x42C80F98UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A7 *((volatile unsigned int*)(0x42C80F9CUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A8 *((volatile unsigned int*)(0x42C80FA0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A9 *((volatile unsigned int*)(0x42C80FA4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A10 *((volatile unsigned int*)(0x42C80FA8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A11 *((volatile unsigned int*)(0x42C80FACUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A12 *((volatile unsigned int*)(0x42C80FB0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A13 *((volatile unsigned int*)(0x42C80FB4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A14 *((volatile unsigned int*)(0x42C80FB8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A15 *((volatile unsigned int*)(0x42C80FBCUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A16 *((volatile unsigned int*)(0x42C80FC0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A17 *((volatile unsigned int*)(0x42C80FC4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A18 *((volatile unsigned int*)(0x42C80FC8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A19 *((volatile unsigned int*)(0x42C80FCCUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A20 *((volatile unsigned int*)(0x42C80FD0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A21 *((volatile unsigned int*)(0x42C80FD4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A22 *((volatile unsigned int*)(0x42C80FD8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A23 *((volatile unsigned int*)(0x42C80FDCUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A24 *((volatile unsigned int*)(0x42C80FE0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A25 *((volatile unsigned int*)(0x42C80FE4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A26 *((volatile unsigned int*)(0x42C80FE8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A27 *((volatile unsigned int*)(0x42C80FECUL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A28 *((volatile unsigned int*)(0x42C80FF0UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A29 *((volatile unsigned int*)(0x42C80FF4UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A30 *((volatile unsigned int*)(0x42C80FF8UL)) +#define bFM3_ETHERNET_MAC0_MAR7L_A31 *((volatile unsigned int*)(0x42C80FFCUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A32 *((volatile unsigned int*)(0x42C81000UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A33 *((volatile unsigned int*)(0x42C81004UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A34 *((volatile unsigned int*)(0x42C81008UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A35 *((volatile unsigned int*)(0x42C8100CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A36 *((volatile unsigned int*)(0x42C81010UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A37 *((volatile unsigned int*)(0x42C81014UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A38 *((volatile unsigned int*)(0x42C81018UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A39 *((volatile unsigned int*)(0x42C8101CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A40 *((volatile unsigned int*)(0x42C81020UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A41 *((volatile unsigned int*)(0x42C81024UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A42 *((volatile unsigned int*)(0x42C81028UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A43 *((volatile unsigned int*)(0x42C8102CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A44 *((volatile unsigned int*)(0x42C81030UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A45 *((volatile unsigned int*)(0x42C81034UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A46 *((volatile unsigned int*)(0x42C81038UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_A47 *((volatile unsigned int*)(0x42C8103CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC0 *((volatile unsigned int*)(0x42C81060UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC1 *((volatile unsigned int*)(0x42C81064UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC2 *((volatile unsigned int*)(0x42C81068UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC3 *((volatile unsigned int*)(0x42C8106CUL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC4 *((volatile unsigned int*)(0x42C81070UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_MBC5 *((volatile unsigned int*)(0x42C81074UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_SA *((volatile unsigned int*)(0x42C81078UL)) +#define bFM3_ETHERNET_MAC0_MAR8H_AE *((volatile unsigned int*)(0x42C8107CUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A0 *((volatile unsigned int*)(0x42C81080UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A1 *((volatile unsigned int*)(0x42C81084UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A2 *((volatile unsigned int*)(0x42C81088UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A3 *((volatile unsigned int*)(0x42C8108CUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A4 *((volatile unsigned int*)(0x42C81090UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A5 *((volatile unsigned int*)(0x42C81094UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A6 *((volatile unsigned int*)(0x42C81098UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A7 *((volatile unsigned int*)(0x42C8109CUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A8 *((volatile unsigned int*)(0x42C810A0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A9 *((volatile unsigned int*)(0x42C810A4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A10 *((volatile unsigned int*)(0x42C810A8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A11 *((volatile unsigned int*)(0x42C810ACUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A12 *((volatile unsigned int*)(0x42C810B0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A13 *((volatile unsigned int*)(0x42C810B4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A14 *((volatile unsigned int*)(0x42C810B8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A15 *((volatile unsigned int*)(0x42C810BCUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A16 *((volatile unsigned int*)(0x42C810C0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A17 *((volatile unsigned int*)(0x42C810C4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A18 *((volatile unsigned int*)(0x42C810C8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A19 *((volatile unsigned int*)(0x42C810CCUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A20 *((volatile unsigned int*)(0x42C810D0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A21 *((volatile unsigned int*)(0x42C810D4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A22 *((volatile unsigned int*)(0x42C810D8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A23 *((volatile unsigned int*)(0x42C810DCUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A24 *((volatile unsigned int*)(0x42C810E0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A25 *((volatile unsigned int*)(0x42C810E4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A26 *((volatile unsigned int*)(0x42C810E8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A27 *((volatile unsigned int*)(0x42C810ECUL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A28 *((volatile unsigned int*)(0x42C810F0UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A29 *((volatile unsigned int*)(0x42C810F4UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A30 *((volatile unsigned int*)(0x42C810F8UL)) +#define bFM3_ETHERNET_MAC0_MAR8L_A31 *((volatile unsigned int*)(0x42C810FCUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A32 *((volatile unsigned int*)(0x42C81100UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A33 *((volatile unsigned int*)(0x42C81104UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A34 *((volatile unsigned int*)(0x42C81108UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A35 *((volatile unsigned int*)(0x42C8110CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A36 *((volatile unsigned int*)(0x42C81110UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A37 *((volatile unsigned int*)(0x42C81114UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A38 *((volatile unsigned int*)(0x42C81118UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A39 *((volatile unsigned int*)(0x42C8111CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A40 *((volatile unsigned int*)(0x42C81120UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A41 *((volatile unsigned int*)(0x42C81124UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A42 *((volatile unsigned int*)(0x42C81128UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A43 *((volatile unsigned int*)(0x42C8112CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A44 *((volatile unsigned int*)(0x42C81130UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A45 *((volatile unsigned int*)(0x42C81134UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A46 *((volatile unsigned int*)(0x42C81138UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_A47 *((volatile unsigned int*)(0x42C8113CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC0 *((volatile unsigned int*)(0x42C81160UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC1 *((volatile unsigned int*)(0x42C81164UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC2 *((volatile unsigned int*)(0x42C81168UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC3 *((volatile unsigned int*)(0x42C8116CUL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC4 *((volatile unsigned int*)(0x42C81170UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_MBC5 *((volatile unsigned int*)(0x42C81174UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_SA *((volatile unsigned int*)(0x42C81178UL)) +#define bFM3_ETHERNET_MAC0_MAR9H_AE *((volatile unsigned int*)(0x42C8117CUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A0 *((volatile unsigned int*)(0x42C81180UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A1 *((volatile unsigned int*)(0x42C81184UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A2 *((volatile unsigned int*)(0x42C81188UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A3 *((volatile unsigned int*)(0x42C8118CUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A4 *((volatile unsigned int*)(0x42C81190UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A5 *((volatile unsigned int*)(0x42C81194UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A6 *((volatile unsigned int*)(0x42C81198UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A7 *((volatile unsigned int*)(0x42C8119CUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A8 *((volatile unsigned int*)(0x42C811A0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A9 *((volatile unsigned int*)(0x42C811A4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A10 *((volatile unsigned int*)(0x42C811A8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A11 *((volatile unsigned int*)(0x42C811ACUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A12 *((volatile unsigned int*)(0x42C811B0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A13 *((volatile unsigned int*)(0x42C811B4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A14 *((volatile unsigned int*)(0x42C811B8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A15 *((volatile unsigned int*)(0x42C811BCUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A16 *((volatile unsigned int*)(0x42C811C0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A17 *((volatile unsigned int*)(0x42C811C4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A18 *((volatile unsigned int*)(0x42C811C8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A19 *((volatile unsigned int*)(0x42C811CCUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A20 *((volatile unsigned int*)(0x42C811D0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A21 *((volatile unsigned int*)(0x42C811D4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A22 *((volatile unsigned int*)(0x42C811D8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A23 *((volatile unsigned int*)(0x42C811DCUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A24 *((volatile unsigned int*)(0x42C811E0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A25 *((volatile unsigned int*)(0x42C811E4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A26 *((volatile unsigned int*)(0x42C811E8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A27 *((volatile unsigned int*)(0x42C811ECUL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A28 *((volatile unsigned int*)(0x42C811F0UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A29 *((volatile unsigned int*)(0x42C811F4UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A30 *((volatile unsigned int*)(0x42C811F8UL)) +#define bFM3_ETHERNET_MAC0_MAR9L_A31 *((volatile unsigned int*)(0x42C811FCUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A32 *((volatile unsigned int*)(0x42C81200UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A33 *((volatile unsigned int*)(0x42C81204UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A34 *((volatile unsigned int*)(0x42C81208UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A35 *((volatile unsigned int*)(0x42C8120CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A36 *((volatile unsigned int*)(0x42C81210UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A37 *((volatile unsigned int*)(0x42C81214UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A38 *((volatile unsigned int*)(0x42C81218UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A39 *((volatile unsigned int*)(0x42C8121CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A40 *((volatile unsigned int*)(0x42C81220UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A41 *((volatile unsigned int*)(0x42C81224UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A42 *((volatile unsigned int*)(0x42C81228UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A43 *((volatile unsigned int*)(0x42C8122CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A44 *((volatile unsigned int*)(0x42C81230UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A45 *((volatile unsigned int*)(0x42C81234UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A46 *((volatile unsigned int*)(0x42C81238UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_A47 *((volatile unsigned int*)(0x42C8123CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC0 *((volatile unsigned int*)(0x42C81260UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC1 *((volatile unsigned int*)(0x42C81264UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC2 *((volatile unsigned int*)(0x42C81268UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC3 *((volatile unsigned int*)(0x42C8126CUL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC4 *((volatile unsigned int*)(0x42C81270UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_MBC5 *((volatile unsigned int*)(0x42C81274UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_SA *((volatile unsigned int*)(0x42C81278UL)) +#define bFM3_ETHERNET_MAC0_MAR10H_AE *((volatile unsigned int*)(0x42C8127CUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A0 *((volatile unsigned int*)(0x42C81280UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A1 *((volatile unsigned int*)(0x42C81284UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A2 *((volatile unsigned int*)(0x42C81288UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A3 *((volatile unsigned int*)(0x42C8128CUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A4 *((volatile unsigned int*)(0x42C81290UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A5 *((volatile unsigned int*)(0x42C81294UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A6 *((volatile unsigned int*)(0x42C81298UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A7 *((volatile unsigned int*)(0x42C8129CUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A8 *((volatile unsigned int*)(0x42C812A0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A9 *((volatile unsigned int*)(0x42C812A4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A10 *((volatile unsigned int*)(0x42C812A8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A11 *((volatile unsigned int*)(0x42C812ACUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A12 *((volatile unsigned int*)(0x42C812B0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A13 *((volatile unsigned int*)(0x42C812B4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A14 *((volatile unsigned int*)(0x42C812B8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A15 *((volatile unsigned int*)(0x42C812BCUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A16 *((volatile unsigned int*)(0x42C812C0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A17 *((volatile unsigned int*)(0x42C812C4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A18 *((volatile unsigned int*)(0x42C812C8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A19 *((volatile unsigned int*)(0x42C812CCUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A20 *((volatile unsigned int*)(0x42C812D0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A21 *((volatile unsigned int*)(0x42C812D4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A22 *((volatile unsigned int*)(0x42C812D8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A23 *((volatile unsigned int*)(0x42C812DCUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A24 *((volatile unsigned int*)(0x42C812E0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A25 *((volatile unsigned int*)(0x42C812E4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A26 *((volatile unsigned int*)(0x42C812E8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A27 *((volatile unsigned int*)(0x42C812ECUL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A28 *((volatile unsigned int*)(0x42C812F0UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A29 *((volatile unsigned int*)(0x42C812F4UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A30 *((volatile unsigned int*)(0x42C812F8UL)) +#define bFM3_ETHERNET_MAC0_MAR10L_A31 *((volatile unsigned int*)(0x42C812FCUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A32 *((volatile unsigned int*)(0x42C81300UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A33 *((volatile unsigned int*)(0x42C81304UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A34 *((volatile unsigned int*)(0x42C81308UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A35 *((volatile unsigned int*)(0x42C8130CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A36 *((volatile unsigned int*)(0x42C81310UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A37 *((volatile unsigned int*)(0x42C81314UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A38 *((volatile unsigned int*)(0x42C81318UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A39 *((volatile unsigned int*)(0x42C8131CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A40 *((volatile unsigned int*)(0x42C81320UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A41 *((volatile unsigned int*)(0x42C81324UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A42 *((volatile unsigned int*)(0x42C81328UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A43 *((volatile unsigned int*)(0x42C8132CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A44 *((volatile unsigned int*)(0x42C81330UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A45 *((volatile unsigned int*)(0x42C81334UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A46 *((volatile unsigned int*)(0x42C81338UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_A47 *((volatile unsigned int*)(0x42C8133CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC0 *((volatile unsigned int*)(0x42C81360UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC1 *((volatile unsigned int*)(0x42C81364UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC2 *((volatile unsigned int*)(0x42C81368UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC3 *((volatile unsigned int*)(0x42C8136CUL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC4 *((volatile unsigned int*)(0x42C81370UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_MBC5 *((volatile unsigned int*)(0x42C81374UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_SA *((volatile unsigned int*)(0x42C81378UL)) +#define bFM3_ETHERNET_MAC0_MAR11H_AE *((volatile unsigned int*)(0x42C8137CUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A0 *((volatile unsigned int*)(0x42C81380UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A1 *((volatile unsigned int*)(0x42C81384UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A2 *((volatile unsigned int*)(0x42C81388UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A3 *((volatile unsigned int*)(0x42C8138CUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A4 *((volatile unsigned int*)(0x42C81390UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A5 *((volatile unsigned int*)(0x42C81394UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A6 *((volatile unsigned int*)(0x42C81398UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A7 *((volatile unsigned int*)(0x42C8139CUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A8 *((volatile unsigned int*)(0x42C813A0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A9 *((volatile unsigned int*)(0x42C813A4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A10 *((volatile unsigned int*)(0x42C813A8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A11 *((volatile unsigned int*)(0x42C813ACUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A12 *((volatile unsigned int*)(0x42C813B0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A13 *((volatile unsigned int*)(0x42C813B4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A14 *((volatile unsigned int*)(0x42C813B8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A15 *((volatile unsigned int*)(0x42C813BCUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A16 *((volatile unsigned int*)(0x42C813C0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A17 *((volatile unsigned int*)(0x42C813C4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A18 *((volatile unsigned int*)(0x42C813C8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A19 *((volatile unsigned int*)(0x42C813CCUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A20 *((volatile unsigned int*)(0x42C813D0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A21 *((volatile unsigned int*)(0x42C813D4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A22 *((volatile unsigned int*)(0x42C813D8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A23 *((volatile unsigned int*)(0x42C813DCUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A24 *((volatile unsigned int*)(0x42C813E0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A25 *((volatile unsigned int*)(0x42C813E4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A26 *((volatile unsigned int*)(0x42C813E8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A27 *((volatile unsigned int*)(0x42C813ECUL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A28 *((volatile unsigned int*)(0x42C813F0UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A29 *((volatile unsigned int*)(0x42C813F4UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A30 *((volatile unsigned int*)(0x42C813F8UL)) +#define bFM3_ETHERNET_MAC0_MAR11L_A31 *((volatile unsigned int*)(0x42C813FCUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A32 *((volatile unsigned int*)(0x42C81400UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A33 *((volatile unsigned int*)(0x42C81404UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A34 *((volatile unsigned int*)(0x42C81408UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A35 *((volatile unsigned int*)(0x42C8140CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A36 *((volatile unsigned int*)(0x42C81410UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A37 *((volatile unsigned int*)(0x42C81414UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A38 *((volatile unsigned int*)(0x42C81418UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A39 *((volatile unsigned int*)(0x42C8141CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A40 *((volatile unsigned int*)(0x42C81420UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A41 *((volatile unsigned int*)(0x42C81424UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A42 *((volatile unsigned int*)(0x42C81428UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A43 *((volatile unsigned int*)(0x42C8142CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A44 *((volatile unsigned int*)(0x42C81430UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A45 *((volatile unsigned int*)(0x42C81434UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A46 *((volatile unsigned int*)(0x42C81438UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_A47 *((volatile unsigned int*)(0x42C8143CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC0 *((volatile unsigned int*)(0x42C81460UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC1 *((volatile unsigned int*)(0x42C81464UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC2 *((volatile unsigned int*)(0x42C81468UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC3 *((volatile unsigned int*)(0x42C8146CUL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC4 *((volatile unsigned int*)(0x42C81470UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_MBC5 *((volatile unsigned int*)(0x42C81474UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_SA *((volatile unsigned int*)(0x42C81478UL)) +#define bFM3_ETHERNET_MAC0_MAR12H_AE *((volatile unsigned int*)(0x42C8147CUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A0 *((volatile unsigned int*)(0x42C81480UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A1 *((volatile unsigned int*)(0x42C81484UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A2 *((volatile unsigned int*)(0x42C81488UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A3 *((volatile unsigned int*)(0x42C8148CUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A4 *((volatile unsigned int*)(0x42C81490UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A5 *((volatile unsigned int*)(0x42C81494UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A6 *((volatile unsigned int*)(0x42C81498UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A7 *((volatile unsigned int*)(0x42C8149CUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A8 *((volatile unsigned int*)(0x42C814A0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A9 *((volatile unsigned int*)(0x42C814A4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A10 *((volatile unsigned int*)(0x42C814A8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A11 *((volatile unsigned int*)(0x42C814ACUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A12 *((volatile unsigned int*)(0x42C814B0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A13 *((volatile unsigned int*)(0x42C814B4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A14 *((volatile unsigned int*)(0x42C814B8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A15 *((volatile unsigned int*)(0x42C814BCUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A16 *((volatile unsigned int*)(0x42C814C0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A17 *((volatile unsigned int*)(0x42C814C4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A18 *((volatile unsigned int*)(0x42C814C8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A19 *((volatile unsigned int*)(0x42C814CCUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A20 *((volatile unsigned int*)(0x42C814D0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A21 *((volatile unsigned int*)(0x42C814D4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A22 *((volatile unsigned int*)(0x42C814D8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A23 *((volatile unsigned int*)(0x42C814DCUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A24 *((volatile unsigned int*)(0x42C814E0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A25 *((volatile unsigned int*)(0x42C814E4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A26 *((volatile unsigned int*)(0x42C814E8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A27 *((volatile unsigned int*)(0x42C814ECUL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A28 *((volatile unsigned int*)(0x42C814F0UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A29 *((volatile unsigned int*)(0x42C814F4UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A30 *((volatile unsigned int*)(0x42C814F8UL)) +#define bFM3_ETHERNET_MAC0_MAR12L_A31 *((volatile unsigned int*)(0x42C814FCUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A32 *((volatile unsigned int*)(0x42C81500UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A33 *((volatile unsigned int*)(0x42C81504UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A34 *((volatile unsigned int*)(0x42C81508UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A35 *((volatile unsigned int*)(0x42C8150CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A36 *((volatile unsigned int*)(0x42C81510UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A37 *((volatile unsigned int*)(0x42C81514UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A38 *((volatile unsigned int*)(0x42C81518UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A39 *((volatile unsigned int*)(0x42C8151CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A40 *((volatile unsigned int*)(0x42C81520UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A41 *((volatile unsigned int*)(0x42C81524UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A42 *((volatile unsigned int*)(0x42C81528UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A43 *((volatile unsigned int*)(0x42C8152CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A44 *((volatile unsigned int*)(0x42C81530UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A45 *((volatile unsigned int*)(0x42C81534UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A46 *((volatile unsigned int*)(0x42C81538UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_A47 *((volatile unsigned int*)(0x42C8153CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC0 *((volatile unsigned int*)(0x42C81560UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC1 *((volatile unsigned int*)(0x42C81564UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC2 *((volatile unsigned int*)(0x42C81568UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC3 *((volatile unsigned int*)(0x42C8156CUL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC4 *((volatile unsigned int*)(0x42C81570UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_MBC5 *((volatile unsigned int*)(0x42C81574UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_SA *((volatile unsigned int*)(0x42C81578UL)) +#define bFM3_ETHERNET_MAC0_MAR13H_AE *((volatile unsigned int*)(0x42C8157CUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A0 *((volatile unsigned int*)(0x42C81580UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A1 *((volatile unsigned int*)(0x42C81584UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A2 *((volatile unsigned int*)(0x42C81588UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A3 *((volatile unsigned int*)(0x42C8158CUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A4 *((volatile unsigned int*)(0x42C81590UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A5 *((volatile unsigned int*)(0x42C81594UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A6 *((volatile unsigned int*)(0x42C81598UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A7 *((volatile unsigned int*)(0x42C8159CUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A8 *((volatile unsigned int*)(0x42C815A0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A9 *((volatile unsigned int*)(0x42C815A4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A10 *((volatile unsigned int*)(0x42C815A8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A11 *((volatile unsigned int*)(0x42C815ACUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A12 *((volatile unsigned int*)(0x42C815B0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A13 *((volatile unsigned int*)(0x42C815B4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A14 *((volatile unsigned int*)(0x42C815B8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A15 *((volatile unsigned int*)(0x42C815BCUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A16 *((volatile unsigned int*)(0x42C815C0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A17 *((volatile unsigned int*)(0x42C815C4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A18 *((volatile unsigned int*)(0x42C815C8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A19 *((volatile unsigned int*)(0x42C815CCUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A20 *((volatile unsigned int*)(0x42C815D0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A21 *((volatile unsigned int*)(0x42C815D4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A22 *((volatile unsigned int*)(0x42C815D8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A23 *((volatile unsigned int*)(0x42C815DCUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A24 *((volatile unsigned int*)(0x42C815E0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A25 *((volatile unsigned int*)(0x42C815E4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A26 *((volatile unsigned int*)(0x42C815E8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A27 *((volatile unsigned int*)(0x42C815ECUL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A28 *((volatile unsigned int*)(0x42C815F0UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A29 *((volatile unsigned int*)(0x42C815F4UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A30 *((volatile unsigned int*)(0x42C815F8UL)) +#define bFM3_ETHERNET_MAC0_MAR13L_A31 *((volatile unsigned int*)(0x42C815FCUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A32 *((volatile unsigned int*)(0x42C81600UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A33 *((volatile unsigned int*)(0x42C81604UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A34 *((volatile unsigned int*)(0x42C81608UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A35 *((volatile unsigned int*)(0x42C8160CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A36 *((volatile unsigned int*)(0x42C81610UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A37 *((volatile unsigned int*)(0x42C81614UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A38 *((volatile unsigned int*)(0x42C81618UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A39 *((volatile unsigned int*)(0x42C8161CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A40 *((volatile unsigned int*)(0x42C81620UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A41 *((volatile unsigned int*)(0x42C81624UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A42 *((volatile unsigned int*)(0x42C81628UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A43 *((volatile unsigned int*)(0x42C8162CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A44 *((volatile unsigned int*)(0x42C81630UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A45 *((volatile unsigned int*)(0x42C81634UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A46 *((volatile unsigned int*)(0x42C81638UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_A47 *((volatile unsigned int*)(0x42C8163CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC0 *((volatile unsigned int*)(0x42C81660UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC1 *((volatile unsigned int*)(0x42C81664UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC2 *((volatile unsigned int*)(0x42C81668UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC3 *((volatile unsigned int*)(0x42C8166CUL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC4 *((volatile unsigned int*)(0x42C81670UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_MBC5 *((volatile unsigned int*)(0x42C81674UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_SA *((volatile unsigned int*)(0x42C81678UL)) +#define bFM3_ETHERNET_MAC0_MAR14H_AE *((volatile unsigned int*)(0x42C8167CUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A0 *((volatile unsigned int*)(0x42C81680UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A1 *((volatile unsigned int*)(0x42C81684UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A2 *((volatile unsigned int*)(0x42C81688UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A3 *((volatile unsigned int*)(0x42C8168CUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A4 *((volatile unsigned int*)(0x42C81690UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A5 *((volatile unsigned int*)(0x42C81694UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A6 *((volatile unsigned int*)(0x42C81698UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A7 *((volatile unsigned int*)(0x42C8169CUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A8 *((volatile unsigned int*)(0x42C816A0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A9 *((volatile unsigned int*)(0x42C816A4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A10 *((volatile unsigned int*)(0x42C816A8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A11 *((volatile unsigned int*)(0x42C816ACUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A12 *((volatile unsigned int*)(0x42C816B0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A13 *((volatile unsigned int*)(0x42C816B4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A14 *((volatile unsigned int*)(0x42C816B8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A15 *((volatile unsigned int*)(0x42C816BCUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A16 *((volatile unsigned int*)(0x42C816C0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A17 *((volatile unsigned int*)(0x42C816C4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A18 *((volatile unsigned int*)(0x42C816C8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A19 *((volatile unsigned int*)(0x42C816CCUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A20 *((volatile unsigned int*)(0x42C816D0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A21 *((volatile unsigned int*)(0x42C816D4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A22 *((volatile unsigned int*)(0x42C816D8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A23 *((volatile unsigned int*)(0x42C816DCUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A24 *((volatile unsigned int*)(0x42C816E0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A25 *((volatile unsigned int*)(0x42C816E4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A26 *((volatile unsigned int*)(0x42C816E8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A27 *((volatile unsigned int*)(0x42C816ECUL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A28 *((volatile unsigned int*)(0x42C816F0UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A29 *((volatile unsigned int*)(0x42C816F4UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A30 *((volatile unsigned int*)(0x42C816F8UL)) +#define bFM3_ETHERNET_MAC0_MAR14L_A31 *((volatile unsigned int*)(0x42C816FCUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A32 *((volatile unsigned int*)(0x42C81700UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A33 *((volatile unsigned int*)(0x42C81704UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A34 *((volatile unsigned int*)(0x42C81708UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A35 *((volatile unsigned int*)(0x42C8170CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A36 *((volatile unsigned int*)(0x42C81710UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A37 *((volatile unsigned int*)(0x42C81714UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A38 *((volatile unsigned int*)(0x42C81718UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A39 *((volatile unsigned int*)(0x42C8171CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A40 *((volatile unsigned int*)(0x42C81720UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A41 *((volatile unsigned int*)(0x42C81724UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A42 *((volatile unsigned int*)(0x42C81728UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A43 *((volatile unsigned int*)(0x42C8172CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A44 *((volatile unsigned int*)(0x42C81730UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A45 *((volatile unsigned int*)(0x42C81734UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A46 *((volatile unsigned int*)(0x42C81738UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_A47 *((volatile unsigned int*)(0x42C8173CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC0 *((volatile unsigned int*)(0x42C81760UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC1 *((volatile unsigned int*)(0x42C81764UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC2 *((volatile unsigned int*)(0x42C81768UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC3 *((volatile unsigned int*)(0x42C8176CUL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC4 *((volatile unsigned int*)(0x42C81770UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_MBC5 *((volatile unsigned int*)(0x42C81774UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_SA *((volatile unsigned int*)(0x42C81778UL)) +#define bFM3_ETHERNET_MAC0_MAR15H_AE *((volatile unsigned int*)(0x42C8177CUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A0 *((volatile unsigned int*)(0x42C81780UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A1 *((volatile unsigned int*)(0x42C81784UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A2 *((volatile unsigned int*)(0x42C81788UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A3 *((volatile unsigned int*)(0x42C8178CUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A4 *((volatile unsigned int*)(0x42C81790UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A5 *((volatile unsigned int*)(0x42C81794UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A6 *((volatile unsigned int*)(0x42C81798UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A7 *((volatile unsigned int*)(0x42C8179CUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A8 *((volatile unsigned int*)(0x42C817A0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A9 *((volatile unsigned int*)(0x42C817A4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A10 *((volatile unsigned int*)(0x42C817A8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A11 *((volatile unsigned int*)(0x42C817ACUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A12 *((volatile unsigned int*)(0x42C817B0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A13 *((volatile unsigned int*)(0x42C817B4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A14 *((volatile unsigned int*)(0x42C817B8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A15 *((volatile unsigned int*)(0x42C817BCUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A16 *((volatile unsigned int*)(0x42C817C0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A17 *((volatile unsigned int*)(0x42C817C4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A18 *((volatile unsigned int*)(0x42C817C8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A19 *((volatile unsigned int*)(0x42C817CCUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A20 *((volatile unsigned int*)(0x42C817D0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A21 *((volatile unsigned int*)(0x42C817D4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A22 *((volatile unsigned int*)(0x42C817D8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A23 *((volatile unsigned int*)(0x42C817DCUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A24 *((volatile unsigned int*)(0x42C817E0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A25 *((volatile unsigned int*)(0x42C817E4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A26 *((volatile unsigned int*)(0x42C817E8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A27 *((volatile unsigned int*)(0x42C817ECUL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A28 *((volatile unsigned int*)(0x42C817F0UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A29 *((volatile unsigned int*)(0x42C817F4UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A30 *((volatile unsigned int*)(0x42C817F8UL)) +#define bFM3_ETHERNET_MAC0_MAR15L_A31 *((volatile unsigned int*)(0x42C817FCUL)) +#define bFM3_ETHERNET_MAC0_RGSR_LM *((volatile unsigned int*)(0x42C81B00UL)) +#define bFM3_ETHERNET_MAC0_RGSR_LSP0 *((volatile unsigned int*)(0x42C81B04UL)) +#define bFM3_ETHERNET_MAC0_RGSR_LSP1 *((volatile unsigned int*)(0x42C81B08UL)) +#define bFM3_ETHERNET_MAC0_RGSR_LS *((volatile unsigned int*)(0x42C81B0CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSE *((volatile unsigned int*)(0x42C8E000UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TFCU *((volatile unsigned int*)(0x42C8E004UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSI *((volatile unsigned int*)(0x42C8E008UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSU *((volatile unsigned int*)(0x42C8E00CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TITE *((volatile unsigned int*)(0x42C8E010UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TARU *((volatile unsigned int*)(0x42C8E014UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSEA *((volatile unsigned int*)(0x42C8E020UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSDB *((volatile unsigned int*)(0x42C8E024UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSV2E *((volatile unsigned int*)(0x42C8E028UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TETSP *((volatile unsigned int*)(0x42C8E02CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSIP6E *((volatile unsigned int*)(0x42C8E030UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSIP4E *((volatile unsigned int*)(0x42C8E034UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TETSEM *((volatile unsigned int*)(0x42C8E038UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSMRM *((volatile unsigned int*)(0x42C8E03CUL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSPS0 *((volatile unsigned int*)(0x42C8E040UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSPS1 *((volatile unsigned int*)(0x42C8E044UL)) +#define bFM3_ETHERNET_MAC0_TSCR_TSENMF *((volatile unsigned int*)(0x42C8E048UL)) +#define bFM3_ETHERNET_MAC0_TSCR_ATSFC *((volatile unsigned int*)(0x42C8E060UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC0 *((volatile unsigned int*)(0x42C8E080UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC1 *((volatile unsigned int*)(0x42C8E084UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC2 *((volatile unsigned int*)(0x42C8E088UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC3 *((volatile unsigned int*)(0x42C8E08CUL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC4 *((volatile unsigned int*)(0x42C8E090UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC5 *((volatile unsigned int*)(0x42C8E094UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC6 *((volatile unsigned int*)(0x42C8E098UL)) +#define bFM3_ETHERNET_MAC0_SSIR_SSINC7 *((volatile unsigned int*)(0x42C8E09CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS0 *((volatile unsigned int*)(0x42C8E100UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS1 *((volatile unsigned int*)(0x42C8E104UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS2 *((volatile unsigned int*)(0x42C8E108UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS3 *((volatile unsigned int*)(0x42C8E10CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS4 *((volatile unsigned int*)(0x42C8E110UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS5 *((volatile unsigned int*)(0x42C8E114UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS6 *((volatile unsigned int*)(0x42C8E118UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS7 *((volatile unsigned int*)(0x42C8E11CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS8 *((volatile unsigned int*)(0x42C8E120UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS9 *((volatile unsigned int*)(0x42C8E124UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS10 *((volatile unsigned int*)(0x42C8E128UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS11 *((volatile unsigned int*)(0x42C8E12CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS12 *((volatile unsigned int*)(0x42C8E130UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS13 *((volatile unsigned int*)(0x42C8E134UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS14 *((volatile unsigned int*)(0x42C8E138UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS15 *((volatile unsigned int*)(0x42C8E13CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS16 *((volatile unsigned int*)(0x42C8E140UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS17 *((volatile unsigned int*)(0x42C8E144UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS18 *((volatile unsigned int*)(0x42C8E148UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS19 *((volatile unsigned int*)(0x42C8E14CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS20 *((volatile unsigned int*)(0x42C8E150UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS21 *((volatile unsigned int*)(0x42C8E154UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS22 *((volatile unsigned int*)(0x42C8E158UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS23 *((volatile unsigned int*)(0x42C8E15CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS24 *((volatile unsigned int*)(0x42C8E160UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS25 *((volatile unsigned int*)(0x42C8E164UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS26 *((volatile unsigned int*)(0x42C8E168UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS27 *((volatile unsigned int*)(0x42C8E16CUL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS28 *((volatile unsigned int*)(0x42C8E170UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS29 *((volatile unsigned int*)(0x42C8E174UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS30 *((volatile unsigned int*)(0x42C8E178UL)) +#define bFM3_ETHERNET_MAC0_STSR_TSS31 *((volatile unsigned int*)(0x42C8E17CUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS0 *((volatile unsigned int*)(0x42C8E080UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS1 *((volatile unsigned int*)(0x42C8E084UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS2 *((volatile unsigned int*)(0x42C8E088UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS3 *((volatile unsigned int*)(0x42C8E08CUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS4 *((volatile unsigned int*)(0x42C8E090UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS5 *((volatile unsigned int*)(0x42C8E094UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS6 *((volatile unsigned int*)(0x42C8E098UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS7 *((volatile unsigned int*)(0x42C8E09CUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS8 *((volatile unsigned int*)(0x42C8E0A0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS9 *((volatile unsigned int*)(0x42C8E0A4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS10 *((volatile unsigned int*)(0x42C8E0A8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS11 *((volatile unsigned int*)(0x42C8E0ACUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS12 *((volatile unsigned int*)(0x42C8E0B0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS13 *((volatile unsigned int*)(0x42C8E0B4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS14 *((volatile unsigned int*)(0x42C8E0B8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS15 *((volatile unsigned int*)(0x42C8E0BCUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS16 *((volatile unsigned int*)(0x42C8E0C0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS17 *((volatile unsigned int*)(0x42C8E0C4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS18 *((volatile unsigned int*)(0x42C8E0C8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS19 *((volatile unsigned int*)(0x42C8E0CCUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS20 *((volatile unsigned int*)(0x42C8E0D0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS21 *((volatile unsigned int*)(0x42C8E0D4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS22 *((volatile unsigned int*)(0x42C8E0D8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS23 *((volatile unsigned int*)(0x42C8E0DCUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS24 *((volatile unsigned int*)(0x42C8E0E0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS25 *((volatile unsigned int*)(0x42C8E0E4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS26 *((volatile unsigned int*)(0x42C8E0E8UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS27 *((volatile unsigned int*)(0x42C8E0ECUL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS28 *((volatile unsigned int*)(0x42C8E0F0UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS29 *((volatile unsigned int*)(0x42C8E0F4UL)) +#define bFM3_ETHERNET_MAC0_STNR_TSSS30 *((volatile unsigned int*)(0x42C8E0F8UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS0 *((volatile unsigned int*)(0x42C8E200UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS1 *((volatile unsigned int*)(0x42C8E204UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS2 *((volatile unsigned int*)(0x42C8E208UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS3 *((volatile unsigned int*)(0x42C8E20CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS4 *((volatile unsigned int*)(0x42C8E210UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS5 *((volatile unsigned int*)(0x42C8E214UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS6 *((volatile unsigned int*)(0x42C8E218UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS7 *((volatile unsigned int*)(0x42C8E21CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS8 *((volatile unsigned int*)(0x42C8E220UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS9 *((volatile unsigned int*)(0x42C8E224UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS10 *((volatile unsigned int*)(0x42C8E228UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS11 *((volatile unsigned int*)(0x42C8E22CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS12 *((volatile unsigned int*)(0x42C8E230UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS13 *((volatile unsigned int*)(0x42C8E234UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS14 *((volatile unsigned int*)(0x42C8E238UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS15 *((volatile unsigned int*)(0x42C8E23CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS16 *((volatile unsigned int*)(0x42C8E240UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS17 *((volatile unsigned int*)(0x42C8E244UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS18 *((volatile unsigned int*)(0x42C8E248UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS19 *((volatile unsigned int*)(0x42C8E24CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS20 *((volatile unsigned int*)(0x42C8E250UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS21 *((volatile unsigned int*)(0x42C8E254UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS22 *((volatile unsigned int*)(0x42C8E258UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS23 *((volatile unsigned int*)(0x42C8E25CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS24 *((volatile unsigned int*)(0x42C8E260UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS25 *((volatile unsigned int*)(0x42C8E264UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS26 *((volatile unsigned int*)(0x42C8E268UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS27 *((volatile unsigned int*)(0x42C8E26CUL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS28 *((volatile unsigned int*)(0x42C8E270UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS29 *((volatile unsigned int*)(0x42C8E274UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS30 *((volatile unsigned int*)(0x42C8E278UL)) +#define bFM3_ETHERNET_MAC0_STSUR_TSS31 *((volatile unsigned int*)(0x42C8E27CUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS0 *((volatile unsigned int*)(0x42C8E280UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS1 *((volatile unsigned int*)(0x42C8E284UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS2 *((volatile unsigned int*)(0x42C8E288UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS3 *((volatile unsigned int*)(0x42C8E28CUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS4 *((volatile unsigned int*)(0x42C8E290UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS5 *((volatile unsigned int*)(0x42C8E294UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS6 *((volatile unsigned int*)(0x42C8E298UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS7 *((volatile unsigned int*)(0x42C8E29CUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS8 *((volatile unsigned int*)(0x42C8E2A0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS9 *((volatile unsigned int*)(0x42C8E2A4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS10 *((volatile unsigned int*)(0x42C8E2A8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS11 *((volatile unsigned int*)(0x42C8E2ACUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS12 *((volatile unsigned int*)(0x42C8E2B0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS13 *((volatile unsigned int*)(0x42C8E2B4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS14 *((volatile unsigned int*)(0x42C8E2B8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS15 *((volatile unsigned int*)(0x42C8E2BCUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS16 *((volatile unsigned int*)(0x42C8E2C0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS17 *((volatile unsigned int*)(0x42C8E2C4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS18 *((volatile unsigned int*)(0x42C8E2C8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS19 *((volatile unsigned int*)(0x42C8E2CCUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS20 *((volatile unsigned int*)(0x42C8E2D0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS21 *((volatile unsigned int*)(0x42C8E2D4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS22 *((volatile unsigned int*)(0x42C8E2D8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS23 *((volatile unsigned int*)(0x42C8E2DCUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS24 *((volatile unsigned int*)(0x42C8E2E0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS25 *((volatile unsigned int*)(0x42C8E2E4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS26 *((volatile unsigned int*)(0x42C8E2E8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS27 *((volatile unsigned int*)(0x42C8E2ECUL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS28 *((volatile unsigned int*)(0x42C8E2F0UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS29 *((volatile unsigned int*)(0x42C8E2F4UL)) +#define bFM3_ETHERNET_MAC0_STNUR_TSSS30 *((volatile unsigned int*)(0x42C8E2F8UL)) +#define bFM3_ETHERNET_MAC0_STNUR_ADDSUB *((volatile unsigned int*)(0x42C8E2FCUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR0 *((volatile unsigned int*)(0x42C8E300UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR1 *((volatile unsigned int*)(0x42C8E304UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR2 *((volatile unsigned int*)(0x42C8E308UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR3 *((volatile unsigned int*)(0x42C8E30CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR4 *((volatile unsigned int*)(0x42C8E310UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR5 *((volatile unsigned int*)(0x42C8E314UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR6 *((volatile unsigned int*)(0x42C8E318UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR7 *((volatile unsigned int*)(0x42C8E31CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR8 *((volatile unsigned int*)(0x42C8E320UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR9 *((volatile unsigned int*)(0x42C8E324UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR10 *((volatile unsigned int*)(0x42C8E328UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR11 *((volatile unsigned int*)(0x42C8E32CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR12 *((volatile unsigned int*)(0x42C8E330UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR13 *((volatile unsigned int*)(0x42C8E334UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR14 *((volatile unsigned int*)(0x42C8E338UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR15 *((volatile unsigned int*)(0x42C8E33CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR16 *((volatile unsigned int*)(0x42C8E340UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR17 *((volatile unsigned int*)(0x42C8E344UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR18 *((volatile unsigned int*)(0x42C8E348UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR19 *((volatile unsigned int*)(0x42C8E34CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR20 *((volatile unsigned int*)(0x42C8E350UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR21 *((volatile unsigned int*)(0x42C8E354UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR22 *((volatile unsigned int*)(0x42C8E358UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR23 *((volatile unsigned int*)(0x42C8E35CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR24 *((volatile unsigned int*)(0x42C8E360UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR25 *((volatile unsigned int*)(0x42C8E364UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR26 *((volatile unsigned int*)(0x42C8E368UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR27 *((volatile unsigned int*)(0x42C8E36CUL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR28 *((volatile unsigned int*)(0x42C8E370UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR29 *((volatile unsigned int*)(0x42C8E374UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR30 *((volatile unsigned int*)(0x42C8E378UL)) +#define bFM3_ETHERNET_MAC0_TSAR_TSAR31 *((volatile unsigned int*)(0x42C8E37CUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR0 *((volatile unsigned int*)(0x42C8E380UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR1 *((volatile unsigned int*)(0x42C8E384UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR2 *((volatile unsigned int*)(0x42C8E388UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR3 *((volatile unsigned int*)(0x42C8E38CUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR4 *((volatile unsigned int*)(0x42C8E390UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR5 *((volatile unsigned int*)(0x42C8E394UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR6 *((volatile unsigned int*)(0x42C8E398UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR7 *((volatile unsigned int*)(0x42C8E39CUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR8 *((volatile unsigned int*)(0x42C8E3A0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR9 *((volatile unsigned int*)(0x42C8E3A4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR10 *((volatile unsigned int*)(0x42C8E3A8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR11 *((volatile unsigned int*)(0x42C8E3ACUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR12 *((volatile unsigned int*)(0x42C8E3B0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR13 *((volatile unsigned int*)(0x42C8E3B4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR14 *((volatile unsigned int*)(0x42C8E3B8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR15 *((volatile unsigned int*)(0x42C8E3BCUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR16 *((volatile unsigned int*)(0x42C8E3C0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR17 *((volatile unsigned int*)(0x42C8E3C4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR18 *((volatile unsigned int*)(0x42C8E3C8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR19 *((volatile unsigned int*)(0x42C8E3CCUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR20 *((volatile unsigned int*)(0x42C8E3D0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR21 *((volatile unsigned int*)(0x42C8E3D4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR22 *((volatile unsigned int*)(0x42C8E3D8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR23 *((volatile unsigned int*)(0x42C8E3DCUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR24 *((volatile unsigned int*)(0x42C8E3E0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR25 *((volatile unsigned int*)(0x42C8E3E4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR26 *((volatile unsigned int*)(0x42C8E3E8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR27 *((volatile unsigned int*)(0x42C8E3ECUL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR28 *((volatile unsigned int*)(0x42C8E3F0UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR29 *((volatile unsigned int*)(0x42C8E3F4UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR30 *((volatile unsigned int*)(0x42C8E3F8UL)) +#define bFM3_ETHERNET_MAC0_TTSR_TSTR31 *((volatile unsigned int*)(0x42C8E3FCUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR0 *((volatile unsigned int*)(0x42C8E400UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR1 *((volatile unsigned int*)(0x42C8E404UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR2 *((volatile unsigned int*)(0x42C8E408UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR3 *((volatile unsigned int*)(0x42C8E40CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR4 *((volatile unsigned int*)(0x42C8E410UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR5 *((volatile unsigned int*)(0x42C8E414UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR6 *((volatile unsigned int*)(0x42C8E418UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR7 *((volatile unsigned int*)(0x42C8E41CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR8 *((volatile unsigned int*)(0x42C8E420UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR9 *((volatile unsigned int*)(0x42C8E424UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR10 *((volatile unsigned int*)(0x42C8E428UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR11 *((volatile unsigned int*)(0x42C8E42CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR12 *((volatile unsigned int*)(0x42C8E430UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR13 *((volatile unsigned int*)(0x42C8E434UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR14 *((volatile unsigned int*)(0x42C8E438UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR15 *((volatile unsigned int*)(0x42C8E43CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR16 *((volatile unsigned int*)(0x42C8E440UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR17 *((volatile unsigned int*)(0x42C8E444UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR18 *((volatile unsigned int*)(0x42C8E448UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR19 *((volatile unsigned int*)(0x42C8E44CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR20 *((volatile unsigned int*)(0x42C8E450UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR21 *((volatile unsigned int*)(0x42C8E454UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR22 *((volatile unsigned int*)(0x42C8E458UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR23 *((volatile unsigned int*)(0x42C8E45CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR24 *((volatile unsigned int*)(0x42C8E460UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR25 *((volatile unsigned int*)(0x42C8E464UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR26 *((volatile unsigned int*)(0x42C8E468UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR27 *((volatile unsigned int*)(0x42C8E46CUL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR28 *((volatile unsigned int*)(0x42C8E470UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR29 *((volatile unsigned int*)(0x42C8E474UL)) +#define bFM3_ETHERNET_MAC0_TTNR_TSTR30 *((volatile unsigned int*)(0x42C8E478UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42C8E480UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42C8E484UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42C8E488UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42C8E48CUL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42C8E490UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42C8E494UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42C8E498UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42C8E49CUL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42C8E4A0UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42C8E4A4UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42C8E4A8UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42C8E4ACUL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42C8E4B0UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42C8E4B4UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42C8E4B8UL)) +#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42C8E4BCUL)) +#define bFM3_ETHERNET_MAC0_TSR_TSSOVF *((volatile unsigned int*)(0x42C8E500UL)) +#define bFM3_ETHERNET_MAC0_TSR_TSTART *((volatile unsigned int*)(0x42C8E504UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSTS *((volatile unsigned int*)(0x42C8E508UL)) +#define bFM3_ETHERNET_MAC0_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSSTM *((volatile unsigned int*)(0x42C8E560UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSNS0 *((volatile unsigned int*)(0x42C8E564UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSNS1 *((volatile unsigned int*)(0x42C8E568UL)) +#define bFM3_ETHERNET_MAC0_TSR_ATSNS2 *((volatile unsigned int*)(0x42C8E56CUL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42C8E580UL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42C8E584UL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42C8E588UL)) +#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42C8E58CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN0 *((volatile unsigned int*)(0x42C8E600UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN1 *((volatile unsigned int*)(0x42C8E604UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN2 *((volatile unsigned int*)(0x42C8E608UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN3 *((volatile unsigned int*)(0x42C8E60CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN4 *((volatile unsigned int*)(0x42C8E610UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN5 *((volatile unsigned int*)(0x42C8E614UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN6 *((volatile unsigned int*)(0x42C8E618UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN7 *((volatile unsigned int*)(0x42C8E61CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN8 *((volatile unsigned int*)(0x42C8E620UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN9 *((volatile unsigned int*)(0x42C8E624UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN10 *((volatile unsigned int*)(0x42C8E628UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN11 *((volatile unsigned int*)(0x42C8E62CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN12 *((volatile unsigned int*)(0x42C8E630UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN13 *((volatile unsigned int*)(0x42C8E634UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN14 *((volatile unsigned int*)(0x42C8E638UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN15 *((volatile unsigned int*)(0x42C8E63CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN16 *((volatile unsigned int*)(0x42C8E640UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN17 *((volatile unsigned int*)(0x42C8E644UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN18 *((volatile unsigned int*)(0x42C8E648UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN19 *((volatile unsigned int*)(0x42C8E64CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN20 *((volatile unsigned int*)(0x42C8E650UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN21 *((volatile unsigned int*)(0x42C8E654UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN22 *((volatile unsigned int*)(0x42C8E658UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN23 *((volatile unsigned int*)(0x42C8E65CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN24 *((volatile unsigned int*)(0x42C8E660UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN25 *((volatile unsigned int*)(0x42C8E664UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN26 *((volatile unsigned int*)(0x42C8E668UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN27 *((volatile unsigned int*)(0x42C8E66CUL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN28 *((volatile unsigned int*)(0x42C8E670UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN29 *((volatile unsigned int*)(0x42C8E674UL)) +#define bFM3_ETHERNET_MAC0_ATNR_ATN30 *((volatile unsigned int*)(0x42C8E678UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS0 *((volatile unsigned int*)(0x42C8E680UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS1 *((volatile unsigned int*)(0x42C8E684UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS2 *((volatile unsigned int*)(0x42C8E688UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS3 *((volatile unsigned int*)(0x42C8E68CUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS4 *((volatile unsigned int*)(0x42C8E690UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS5 *((volatile unsigned int*)(0x42C8E694UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS6 *((volatile unsigned int*)(0x42C8E698UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS7 *((volatile unsigned int*)(0x42C8E69CUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS8 *((volatile unsigned int*)(0x42C8E6A0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS9 *((volatile unsigned int*)(0x42C8E6A4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS10 *((volatile unsigned int*)(0x42C8E6A8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS11 *((volatile unsigned int*)(0x42C8E6ACUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS12 *((volatile unsigned int*)(0x42C8E6B0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS13 *((volatile unsigned int*)(0x42C8E6B4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS14 *((volatile unsigned int*)(0x42C8E6B8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS15 *((volatile unsigned int*)(0x42C8E6BCUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS16 *((volatile unsigned int*)(0x42C8E6C0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS17 *((volatile unsigned int*)(0x42C8E6C4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS18 *((volatile unsigned int*)(0x42C8E6C8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS19 *((volatile unsigned int*)(0x42C8E6CCUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS20 *((volatile unsigned int*)(0x42C8E6D0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS21 *((volatile unsigned int*)(0x42C8E6D4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS22 *((volatile unsigned int*)(0x42C8E6D8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS23 *((volatile unsigned int*)(0x42C8E6DCUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS24 *((volatile unsigned int*)(0x42C8E6E0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS25 *((volatile unsigned int*)(0x42C8E6E4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS26 *((volatile unsigned int*)(0x42C8E6E8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS27 *((volatile unsigned int*)(0x42C8E6ECUL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS28 *((volatile unsigned int*)(0x42C8E6F0UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS29 *((volatile unsigned int*)(0x42C8E6F4UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS30 *((volatile unsigned int*)(0x42C8E6F8UL)) +#define bFM3_ETHERNET_MAC0_ATSR_ATS31 *((volatile unsigned int*)(0x42C8E6FCUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A32 *((volatile unsigned int*)(0x42C90000UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A33 *((volatile unsigned int*)(0x42C90004UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A34 *((volatile unsigned int*)(0x42C90008UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A35 *((volatile unsigned int*)(0x42C9000CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A36 *((volatile unsigned int*)(0x42C90010UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A37 *((volatile unsigned int*)(0x42C90014UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A38 *((volatile unsigned int*)(0x42C90018UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A39 *((volatile unsigned int*)(0x42C9001CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A40 *((volatile unsigned int*)(0x42C90020UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A41 *((volatile unsigned int*)(0x42C90024UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A42 *((volatile unsigned int*)(0x42C90028UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A43 *((volatile unsigned int*)(0x42C9002CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A44 *((volatile unsigned int*)(0x42C90030UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A45 *((volatile unsigned int*)(0x42C90034UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A46 *((volatile unsigned int*)(0x42C90038UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_A47 *((volatile unsigned int*)(0x42C9003CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC0 *((volatile unsigned int*)(0x42C90060UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC1 *((volatile unsigned int*)(0x42C90064UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC2 *((volatile unsigned int*)(0x42C90068UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC3 *((volatile unsigned int*)(0x42C9006CUL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC4 *((volatile unsigned int*)(0x42C90070UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_MBC5 *((volatile unsigned int*)(0x42C90074UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_SA *((volatile unsigned int*)(0x42C90078UL)) +#define bFM3_ETHERNET_MAC0_MAR16H_AE *((volatile unsigned int*)(0x42C9007CUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A0 *((volatile unsigned int*)(0x42C90080UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A1 *((volatile unsigned int*)(0x42C90084UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A2 *((volatile unsigned int*)(0x42C90088UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A3 *((volatile unsigned int*)(0x42C9008CUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A4 *((volatile unsigned int*)(0x42C90090UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A5 *((volatile unsigned int*)(0x42C90094UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A6 *((volatile unsigned int*)(0x42C90098UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A7 *((volatile unsigned int*)(0x42C9009CUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A8 *((volatile unsigned int*)(0x42C900A0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A9 *((volatile unsigned int*)(0x42C900A4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A10 *((volatile unsigned int*)(0x42C900A8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A11 *((volatile unsigned int*)(0x42C900ACUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A12 *((volatile unsigned int*)(0x42C900B0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A13 *((volatile unsigned int*)(0x42C900B4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A14 *((volatile unsigned int*)(0x42C900B8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A15 *((volatile unsigned int*)(0x42C900BCUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A16 *((volatile unsigned int*)(0x42C900C0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A17 *((volatile unsigned int*)(0x42C900C4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A18 *((volatile unsigned int*)(0x42C900C8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A19 *((volatile unsigned int*)(0x42C900CCUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A20 *((volatile unsigned int*)(0x42C900D0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A21 *((volatile unsigned int*)(0x42C900D4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A22 *((volatile unsigned int*)(0x42C900D8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A23 *((volatile unsigned int*)(0x42C900DCUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A24 *((volatile unsigned int*)(0x42C900E0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A25 *((volatile unsigned int*)(0x42C900E4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A26 *((volatile unsigned int*)(0x42C900E8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A27 *((volatile unsigned int*)(0x42C900ECUL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A28 *((volatile unsigned int*)(0x42C900F0UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A29 *((volatile unsigned int*)(0x42C900F4UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A30 *((volatile unsigned int*)(0x42C900F8UL)) +#define bFM3_ETHERNET_MAC0_MAR16L_A31 *((volatile unsigned int*)(0x42C900FCUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A32 *((volatile unsigned int*)(0x42C90100UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A33 *((volatile unsigned int*)(0x42C90104UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A34 *((volatile unsigned int*)(0x42C90108UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A35 *((volatile unsigned int*)(0x42C9010CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A36 *((volatile unsigned int*)(0x42C90110UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A37 *((volatile unsigned int*)(0x42C90114UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A38 *((volatile unsigned int*)(0x42C90118UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A39 *((volatile unsigned int*)(0x42C9011CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A40 *((volatile unsigned int*)(0x42C90120UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A41 *((volatile unsigned int*)(0x42C90124UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A42 *((volatile unsigned int*)(0x42C90128UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A43 *((volatile unsigned int*)(0x42C9012CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A44 *((volatile unsigned int*)(0x42C90130UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A45 *((volatile unsigned int*)(0x42C90134UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A46 *((volatile unsigned int*)(0x42C90138UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_A47 *((volatile unsigned int*)(0x42C9013CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC0 *((volatile unsigned int*)(0x42C90160UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC1 *((volatile unsigned int*)(0x42C90164UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC2 *((volatile unsigned int*)(0x42C90168UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC3 *((volatile unsigned int*)(0x42C9016CUL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC4 *((volatile unsigned int*)(0x42C90170UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_MBC5 *((volatile unsigned int*)(0x42C90174UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_SA *((volatile unsigned int*)(0x42C90178UL)) +#define bFM3_ETHERNET_MAC0_MAR17H_AE *((volatile unsigned int*)(0x42C9017CUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A0 *((volatile unsigned int*)(0x42C90180UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A1 *((volatile unsigned int*)(0x42C90184UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A2 *((volatile unsigned int*)(0x42C90188UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A3 *((volatile unsigned int*)(0x42C9018CUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A4 *((volatile unsigned int*)(0x42C90190UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A5 *((volatile unsigned int*)(0x42C90194UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A6 *((volatile unsigned int*)(0x42C90198UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A7 *((volatile unsigned int*)(0x42C9019CUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A8 *((volatile unsigned int*)(0x42C901A0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A9 *((volatile unsigned int*)(0x42C901A4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A10 *((volatile unsigned int*)(0x42C901A8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A11 *((volatile unsigned int*)(0x42C901ACUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A12 *((volatile unsigned int*)(0x42C901B0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A13 *((volatile unsigned int*)(0x42C901B4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A14 *((volatile unsigned int*)(0x42C901B8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A15 *((volatile unsigned int*)(0x42C901BCUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A16 *((volatile unsigned int*)(0x42C901C0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A17 *((volatile unsigned int*)(0x42C901C4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A18 *((volatile unsigned int*)(0x42C901C8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A19 *((volatile unsigned int*)(0x42C901CCUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A20 *((volatile unsigned int*)(0x42C901D0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A21 *((volatile unsigned int*)(0x42C901D4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A22 *((volatile unsigned int*)(0x42C901D8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A23 *((volatile unsigned int*)(0x42C901DCUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A24 *((volatile unsigned int*)(0x42C901E0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A25 *((volatile unsigned int*)(0x42C901E4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A26 *((volatile unsigned int*)(0x42C901E8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A27 *((volatile unsigned int*)(0x42C901ECUL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A28 *((volatile unsigned int*)(0x42C901F0UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A29 *((volatile unsigned int*)(0x42C901F4UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A30 *((volatile unsigned int*)(0x42C901F8UL)) +#define bFM3_ETHERNET_MAC0_MAR17L_A31 *((volatile unsigned int*)(0x42C901FCUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A32 *((volatile unsigned int*)(0x42C90200UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A33 *((volatile unsigned int*)(0x42C90204UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A34 *((volatile unsigned int*)(0x42C90208UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A35 *((volatile unsigned int*)(0x42C9020CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A36 *((volatile unsigned int*)(0x42C90210UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A37 *((volatile unsigned int*)(0x42C90214UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A38 *((volatile unsigned int*)(0x42C90218UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A39 *((volatile unsigned int*)(0x42C9021CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A40 *((volatile unsigned int*)(0x42C90220UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A41 *((volatile unsigned int*)(0x42C90224UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A42 *((volatile unsigned int*)(0x42C90228UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A43 *((volatile unsigned int*)(0x42C9022CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A44 *((volatile unsigned int*)(0x42C90230UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A45 *((volatile unsigned int*)(0x42C90234UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A46 *((volatile unsigned int*)(0x42C90238UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_A47 *((volatile unsigned int*)(0x42C9023CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC0 *((volatile unsigned int*)(0x42C90260UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC1 *((volatile unsigned int*)(0x42C90264UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC2 *((volatile unsigned int*)(0x42C90268UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC3 *((volatile unsigned int*)(0x42C9026CUL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC4 *((volatile unsigned int*)(0x42C90270UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_MBC5 *((volatile unsigned int*)(0x42C90274UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_SA *((volatile unsigned int*)(0x42C90278UL)) +#define bFM3_ETHERNET_MAC0_MAR18H_AE *((volatile unsigned int*)(0x42C9027CUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A0 *((volatile unsigned int*)(0x42C90280UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A1 *((volatile unsigned int*)(0x42C90284UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A2 *((volatile unsigned int*)(0x42C90288UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A3 *((volatile unsigned int*)(0x42C9028CUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A4 *((volatile unsigned int*)(0x42C90290UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A5 *((volatile unsigned int*)(0x42C90294UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A6 *((volatile unsigned int*)(0x42C90298UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A7 *((volatile unsigned int*)(0x42C9029CUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A8 *((volatile unsigned int*)(0x42C902A0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A9 *((volatile unsigned int*)(0x42C902A4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A10 *((volatile unsigned int*)(0x42C902A8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A11 *((volatile unsigned int*)(0x42C902ACUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A12 *((volatile unsigned int*)(0x42C902B0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A13 *((volatile unsigned int*)(0x42C902B4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A14 *((volatile unsigned int*)(0x42C902B8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A15 *((volatile unsigned int*)(0x42C902BCUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A16 *((volatile unsigned int*)(0x42C902C0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A17 *((volatile unsigned int*)(0x42C902C4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A18 *((volatile unsigned int*)(0x42C902C8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A19 *((volatile unsigned int*)(0x42C902CCUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A20 *((volatile unsigned int*)(0x42C902D0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A21 *((volatile unsigned int*)(0x42C902D4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A22 *((volatile unsigned int*)(0x42C902D8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A23 *((volatile unsigned int*)(0x42C902DCUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A24 *((volatile unsigned int*)(0x42C902E0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A25 *((volatile unsigned int*)(0x42C902E4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A26 *((volatile unsigned int*)(0x42C902E8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A27 *((volatile unsigned int*)(0x42C902ECUL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A28 *((volatile unsigned int*)(0x42C902F0UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A29 *((volatile unsigned int*)(0x42C902F4UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A30 *((volatile unsigned int*)(0x42C902F8UL)) +#define bFM3_ETHERNET_MAC0_MAR18L_A31 *((volatile unsigned int*)(0x42C902FCUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A32 *((volatile unsigned int*)(0x42C90300UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A33 *((volatile unsigned int*)(0x42C90304UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A34 *((volatile unsigned int*)(0x42C90308UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A35 *((volatile unsigned int*)(0x42C9030CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A36 *((volatile unsigned int*)(0x42C90310UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A37 *((volatile unsigned int*)(0x42C90314UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A38 *((volatile unsigned int*)(0x42C90318UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A39 *((volatile unsigned int*)(0x42C9031CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A40 *((volatile unsigned int*)(0x42C90320UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A41 *((volatile unsigned int*)(0x42C90324UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A42 *((volatile unsigned int*)(0x42C90328UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A43 *((volatile unsigned int*)(0x42C9032CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A44 *((volatile unsigned int*)(0x42C90330UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A45 *((volatile unsigned int*)(0x42C90334UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A46 *((volatile unsigned int*)(0x42C90338UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_A47 *((volatile unsigned int*)(0x42C9033CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC0 *((volatile unsigned int*)(0x42C90360UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC1 *((volatile unsigned int*)(0x42C90364UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC2 *((volatile unsigned int*)(0x42C90368UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC3 *((volatile unsigned int*)(0x42C9036CUL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC4 *((volatile unsigned int*)(0x42C90370UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_MBC5 *((volatile unsigned int*)(0x42C90374UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_SA *((volatile unsigned int*)(0x42C90378UL)) +#define bFM3_ETHERNET_MAC0_MAR19H_AE *((volatile unsigned int*)(0x42C9037CUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A0 *((volatile unsigned int*)(0x42C90380UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A1 *((volatile unsigned int*)(0x42C90384UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A2 *((volatile unsigned int*)(0x42C90388UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A3 *((volatile unsigned int*)(0x42C9038CUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A4 *((volatile unsigned int*)(0x42C90390UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A5 *((volatile unsigned int*)(0x42C90394UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A6 *((volatile unsigned int*)(0x42C90398UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A7 *((volatile unsigned int*)(0x42C9039CUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A8 *((volatile unsigned int*)(0x42C903A0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A9 *((volatile unsigned int*)(0x42C903A4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A10 *((volatile unsigned int*)(0x42C903A8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A11 *((volatile unsigned int*)(0x42C903ACUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A12 *((volatile unsigned int*)(0x42C903B0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A13 *((volatile unsigned int*)(0x42C903B4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A14 *((volatile unsigned int*)(0x42C903B8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A15 *((volatile unsigned int*)(0x42C903BCUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A16 *((volatile unsigned int*)(0x42C903C0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A17 *((volatile unsigned int*)(0x42C903C4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A18 *((volatile unsigned int*)(0x42C903C8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A19 *((volatile unsigned int*)(0x42C903CCUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A20 *((volatile unsigned int*)(0x42C903D0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A21 *((volatile unsigned int*)(0x42C903D4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A22 *((volatile unsigned int*)(0x42C903D8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A23 *((volatile unsigned int*)(0x42C903DCUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A24 *((volatile unsigned int*)(0x42C903E0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A25 *((volatile unsigned int*)(0x42C903E4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A26 *((volatile unsigned int*)(0x42C903E8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A27 *((volatile unsigned int*)(0x42C903ECUL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A28 *((volatile unsigned int*)(0x42C903F0UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A29 *((volatile unsigned int*)(0x42C903F4UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A30 *((volatile unsigned int*)(0x42C903F8UL)) +#define bFM3_ETHERNET_MAC0_MAR19L_A31 *((volatile unsigned int*)(0x42C903FCUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A32 *((volatile unsigned int*)(0x42C90400UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A33 *((volatile unsigned int*)(0x42C90404UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A34 *((volatile unsigned int*)(0x42C90408UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A35 *((volatile unsigned int*)(0x42C9040CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A36 *((volatile unsigned int*)(0x42C90410UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A37 *((volatile unsigned int*)(0x42C90414UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A38 *((volatile unsigned int*)(0x42C90418UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A39 *((volatile unsigned int*)(0x42C9041CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A40 *((volatile unsigned int*)(0x42C90420UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A41 *((volatile unsigned int*)(0x42C90424UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A42 *((volatile unsigned int*)(0x42C90428UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A43 *((volatile unsigned int*)(0x42C9042CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A44 *((volatile unsigned int*)(0x42C90430UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A45 *((volatile unsigned int*)(0x42C90434UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A46 *((volatile unsigned int*)(0x42C90438UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_A47 *((volatile unsigned int*)(0x42C9043CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC0 *((volatile unsigned int*)(0x42C90460UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC1 *((volatile unsigned int*)(0x42C90464UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC2 *((volatile unsigned int*)(0x42C90468UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC3 *((volatile unsigned int*)(0x42C9046CUL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC4 *((volatile unsigned int*)(0x42C90470UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_MBC5 *((volatile unsigned int*)(0x42C90474UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_SA *((volatile unsigned int*)(0x42C90478UL)) +#define bFM3_ETHERNET_MAC0_MAR20H_AE *((volatile unsigned int*)(0x42C9047CUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A0 *((volatile unsigned int*)(0x42C90480UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A1 *((volatile unsigned int*)(0x42C90484UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A2 *((volatile unsigned int*)(0x42C90488UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A3 *((volatile unsigned int*)(0x42C9048CUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A4 *((volatile unsigned int*)(0x42C90490UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A5 *((volatile unsigned int*)(0x42C90494UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A6 *((volatile unsigned int*)(0x42C90498UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A7 *((volatile unsigned int*)(0x42C9049CUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A8 *((volatile unsigned int*)(0x42C904A0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A9 *((volatile unsigned int*)(0x42C904A4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A10 *((volatile unsigned int*)(0x42C904A8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A11 *((volatile unsigned int*)(0x42C904ACUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A12 *((volatile unsigned int*)(0x42C904B0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A13 *((volatile unsigned int*)(0x42C904B4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A14 *((volatile unsigned int*)(0x42C904B8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A15 *((volatile unsigned int*)(0x42C904BCUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A16 *((volatile unsigned int*)(0x42C904C0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A17 *((volatile unsigned int*)(0x42C904C4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A18 *((volatile unsigned int*)(0x42C904C8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A19 *((volatile unsigned int*)(0x42C904CCUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A20 *((volatile unsigned int*)(0x42C904D0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A21 *((volatile unsigned int*)(0x42C904D4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A22 *((volatile unsigned int*)(0x42C904D8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A23 *((volatile unsigned int*)(0x42C904DCUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A24 *((volatile unsigned int*)(0x42C904E0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A25 *((volatile unsigned int*)(0x42C904E4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A26 *((volatile unsigned int*)(0x42C904E8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A27 *((volatile unsigned int*)(0x42C904ECUL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A28 *((volatile unsigned int*)(0x42C904F0UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A29 *((volatile unsigned int*)(0x42C904F4UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A30 *((volatile unsigned int*)(0x42C904F8UL)) +#define bFM3_ETHERNET_MAC0_MAR20L_A31 *((volatile unsigned int*)(0x42C904FCUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A32 *((volatile unsigned int*)(0x42C90500UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A33 *((volatile unsigned int*)(0x42C90504UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A34 *((volatile unsigned int*)(0x42C90508UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A35 *((volatile unsigned int*)(0x42C9050CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A36 *((volatile unsigned int*)(0x42C90510UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A37 *((volatile unsigned int*)(0x42C90514UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A38 *((volatile unsigned int*)(0x42C90518UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A39 *((volatile unsigned int*)(0x42C9051CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A40 *((volatile unsigned int*)(0x42C90520UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A41 *((volatile unsigned int*)(0x42C90524UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A42 *((volatile unsigned int*)(0x42C90528UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A43 *((volatile unsigned int*)(0x42C9052CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A44 *((volatile unsigned int*)(0x42C90530UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A45 *((volatile unsigned int*)(0x42C90534UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A46 *((volatile unsigned int*)(0x42C90538UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_A47 *((volatile unsigned int*)(0x42C9053CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC0 *((volatile unsigned int*)(0x42C90560UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC1 *((volatile unsigned int*)(0x42C90564UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC2 *((volatile unsigned int*)(0x42C90568UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC3 *((volatile unsigned int*)(0x42C9056CUL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC4 *((volatile unsigned int*)(0x42C90570UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_MBC5 *((volatile unsigned int*)(0x42C90574UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_SA *((volatile unsigned int*)(0x42C90578UL)) +#define bFM3_ETHERNET_MAC0_MAR21H_AE *((volatile unsigned int*)(0x42C9057CUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A0 *((volatile unsigned int*)(0x42C90580UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A1 *((volatile unsigned int*)(0x42C90584UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A2 *((volatile unsigned int*)(0x42C90588UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A3 *((volatile unsigned int*)(0x42C9058CUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A4 *((volatile unsigned int*)(0x42C90590UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A5 *((volatile unsigned int*)(0x42C90594UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A6 *((volatile unsigned int*)(0x42C90598UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A7 *((volatile unsigned int*)(0x42C9059CUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A8 *((volatile unsigned int*)(0x42C905A0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A9 *((volatile unsigned int*)(0x42C905A4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A10 *((volatile unsigned int*)(0x42C905A8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A11 *((volatile unsigned int*)(0x42C905ACUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A12 *((volatile unsigned int*)(0x42C905B0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A13 *((volatile unsigned int*)(0x42C905B4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A14 *((volatile unsigned int*)(0x42C905B8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A15 *((volatile unsigned int*)(0x42C905BCUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A16 *((volatile unsigned int*)(0x42C905C0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A17 *((volatile unsigned int*)(0x42C905C4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A18 *((volatile unsigned int*)(0x42C905C8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A19 *((volatile unsigned int*)(0x42C905CCUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A20 *((volatile unsigned int*)(0x42C905D0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A21 *((volatile unsigned int*)(0x42C905D4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A22 *((volatile unsigned int*)(0x42C905D8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A23 *((volatile unsigned int*)(0x42C905DCUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A24 *((volatile unsigned int*)(0x42C905E0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A25 *((volatile unsigned int*)(0x42C905E4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A26 *((volatile unsigned int*)(0x42C905E8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A27 *((volatile unsigned int*)(0x42C905ECUL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A28 *((volatile unsigned int*)(0x42C905F0UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A29 *((volatile unsigned int*)(0x42C905F4UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A30 *((volatile unsigned int*)(0x42C905F8UL)) +#define bFM3_ETHERNET_MAC0_MAR21L_A31 *((volatile unsigned int*)(0x42C905FCUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A32 *((volatile unsigned int*)(0x42C90600UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A33 *((volatile unsigned int*)(0x42C90604UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A34 *((volatile unsigned int*)(0x42C90608UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A35 *((volatile unsigned int*)(0x42C9060CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A36 *((volatile unsigned int*)(0x42C90610UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A37 *((volatile unsigned int*)(0x42C90614UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A38 *((volatile unsigned int*)(0x42C90618UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A39 *((volatile unsigned int*)(0x42C9061CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A40 *((volatile unsigned int*)(0x42C90620UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A41 *((volatile unsigned int*)(0x42C90624UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A42 *((volatile unsigned int*)(0x42C90628UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A43 *((volatile unsigned int*)(0x42C9062CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A44 *((volatile unsigned int*)(0x42C90630UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A45 *((volatile unsigned int*)(0x42C90634UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A46 *((volatile unsigned int*)(0x42C90638UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_A47 *((volatile unsigned int*)(0x42C9063CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC0 *((volatile unsigned int*)(0x42C90660UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC1 *((volatile unsigned int*)(0x42C90664UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC2 *((volatile unsigned int*)(0x42C90668UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC3 *((volatile unsigned int*)(0x42C9066CUL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC4 *((volatile unsigned int*)(0x42C90670UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_MBC5 *((volatile unsigned int*)(0x42C90674UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_SA *((volatile unsigned int*)(0x42C90678UL)) +#define bFM3_ETHERNET_MAC0_MAR22H_AE *((volatile unsigned int*)(0x42C9067CUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A0 *((volatile unsigned int*)(0x42C90680UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A1 *((volatile unsigned int*)(0x42C90684UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A2 *((volatile unsigned int*)(0x42C90688UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A3 *((volatile unsigned int*)(0x42C9068CUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A4 *((volatile unsigned int*)(0x42C90690UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A5 *((volatile unsigned int*)(0x42C90694UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A6 *((volatile unsigned int*)(0x42C90698UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A7 *((volatile unsigned int*)(0x42C9069CUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A8 *((volatile unsigned int*)(0x42C906A0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A9 *((volatile unsigned int*)(0x42C906A4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A10 *((volatile unsigned int*)(0x42C906A8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A11 *((volatile unsigned int*)(0x42C906ACUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A12 *((volatile unsigned int*)(0x42C906B0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A13 *((volatile unsigned int*)(0x42C906B4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A14 *((volatile unsigned int*)(0x42C906B8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A15 *((volatile unsigned int*)(0x42C906BCUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A16 *((volatile unsigned int*)(0x42C906C0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A17 *((volatile unsigned int*)(0x42C906C4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A18 *((volatile unsigned int*)(0x42C906C8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A19 *((volatile unsigned int*)(0x42C906CCUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A20 *((volatile unsigned int*)(0x42C906D0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A21 *((volatile unsigned int*)(0x42C906D4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A22 *((volatile unsigned int*)(0x42C906D8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A23 *((volatile unsigned int*)(0x42C906DCUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A24 *((volatile unsigned int*)(0x42C906E0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A25 *((volatile unsigned int*)(0x42C906E4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A26 *((volatile unsigned int*)(0x42C906E8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A27 *((volatile unsigned int*)(0x42C906ECUL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A28 *((volatile unsigned int*)(0x42C906F0UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A29 *((volatile unsigned int*)(0x42C906F4UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A30 *((volatile unsigned int*)(0x42C906F8UL)) +#define bFM3_ETHERNET_MAC0_MAR22L_A31 *((volatile unsigned int*)(0x42C906FCUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A32 *((volatile unsigned int*)(0x42C90700UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A33 *((volatile unsigned int*)(0x42C90704UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A34 *((volatile unsigned int*)(0x42C90708UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A35 *((volatile unsigned int*)(0x42C9070CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A36 *((volatile unsigned int*)(0x42C90710UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A37 *((volatile unsigned int*)(0x42C90714UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A38 *((volatile unsigned int*)(0x42C90718UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A39 *((volatile unsigned int*)(0x42C9071CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A40 *((volatile unsigned int*)(0x42C90720UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A41 *((volatile unsigned int*)(0x42C90724UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A42 *((volatile unsigned int*)(0x42C90728UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A43 *((volatile unsigned int*)(0x42C9072CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A44 *((volatile unsigned int*)(0x42C90730UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A45 *((volatile unsigned int*)(0x42C90734UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A46 *((volatile unsigned int*)(0x42C90738UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_A47 *((volatile unsigned int*)(0x42C9073CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC0 *((volatile unsigned int*)(0x42C90760UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC1 *((volatile unsigned int*)(0x42C90764UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC2 *((volatile unsigned int*)(0x42C90768UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC3 *((volatile unsigned int*)(0x42C9076CUL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC4 *((volatile unsigned int*)(0x42C90770UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_MBC5 *((volatile unsigned int*)(0x42C90774UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_SA *((volatile unsigned int*)(0x42C90778UL)) +#define bFM3_ETHERNET_MAC0_MAR23H_AE *((volatile unsigned int*)(0x42C9077CUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A0 *((volatile unsigned int*)(0x42C90780UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A1 *((volatile unsigned int*)(0x42C90784UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A2 *((volatile unsigned int*)(0x42C90788UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A3 *((volatile unsigned int*)(0x42C9078CUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A4 *((volatile unsigned int*)(0x42C90790UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A5 *((volatile unsigned int*)(0x42C90794UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A6 *((volatile unsigned int*)(0x42C90798UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A7 *((volatile unsigned int*)(0x42C9079CUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A8 *((volatile unsigned int*)(0x42C907A0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A9 *((volatile unsigned int*)(0x42C907A4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A10 *((volatile unsigned int*)(0x42C907A8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A11 *((volatile unsigned int*)(0x42C907ACUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A12 *((volatile unsigned int*)(0x42C907B0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A13 *((volatile unsigned int*)(0x42C907B4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A14 *((volatile unsigned int*)(0x42C907B8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A15 *((volatile unsigned int*)(0x42C907BCUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A16 *((volatile unsigned int*)(0x42C907C0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A17 *((volatile unsigned int*)(0x42C907C4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A18 *((volatile unsigned int*)(0x42C907C8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A19 *((volatile unsigned int*)(0x42C907CCUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A20 *((volatile unsigned int*)(0x42C907D0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A21 *((volatile unsigned int*)(0x42C907D4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A22 *((volatile unsigned int*)(0x42C907D8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A23 *((volatile unsigned int*)(0x42C907DCUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A24 *((volatile unsigned int*)(0x42C907E0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A25 *((volatile unsigned int*)(0x42C907E4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A26 *((volatile unsigned int*)(0x42C907E8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A27 *((volatile unsigned int*)(0x42C907ECUL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A28 *((volatile unsigned int*)(0x42C907F0UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A29 *((volatile unsigned int*)(0x42C907F4UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A30 *((volatile unsigned int*)(0x42C907F8UL)) +#define bFM3_ETHERNET_MAC0_MAR23L_A31 *((volatile unsigned int*)(0x42C907FCUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A32 *((volatile unsigned int*)(0x42C90800UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A33 *((volatile unsigned int*)(0x42C90804UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A34 *((volatile unsigned int*)(0x42C90808UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A35 *((volatile unsigned int*)(0x42C9080CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A36 *((volatile unsigned int*)(0x42C90810UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A37 *((volatile unsigned int*)(0x42C90814UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A38 *((volatile unsigned int*)(0x42C90818UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A39 *((volatile unsigned int*)(0x42C9081CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A40 *((volatile unsigned int*)(0x42C90820UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A41 *((volatile unsigned int*)(0x42C90824UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A42 *((volatile unsigned int*)(0x42C90828UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A43 *((volatile unsigned int*)(0x42C9082CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A44 *((volatile unsigned int*)(0x42C90830UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A45 *((volatile unsigned int*)(0x42C90834UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A46 *((volatile unsigned int*)(0x42C90838UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_A47 *((volatile unsigned int*)(0x42C9083CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC0 *((volatile unsigned int*)(0x42C90860UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC1 *((volatile unsigned int*)(0x42C90864UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC2 *((volatile unsigned int*)(0x42C90868UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC3 *((volatile unsigned int*)(0x42C9086CUL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC4 *((volatile unsigned int*)(0x42C90870UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_MBC5 *((volatile unsigned int*)(0x42C90874UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_SA *((volatile unsigned int*)(0x42C90878UL)) +#define bFM3_ETHERNET_MAC0_MAR24H_AE *((volatile unsigned int*)(0x42C9087CUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A0 *((volatile unsigned int*)(0x42C90880UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A1 *((volatile unsigned int*)(0x42C90884UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A2 *((volatile unsigned int*)(0x42C90888UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A3 *((volatile unsigned int*)(0x42C9088CUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A4 *((volatile unsigned int*)(0x42C90890UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A5 *((volatile unsigned int*)(0x42C90894UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A6 *((volatile unsigned int*)(0x42C90898UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A7 *((volatile unsigned int*)(0x42C9089CUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A8 *((volatile unsigned int*)(0x42C908A0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A9 *((volatile unsigned int*)(0x42C908A4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A10 *((volatile unsigned int*)(0x42C908A8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A11 *((volatile unsigned int*)(0x42C908ACUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A12 *((volatile unsigned int*)(0x42C908B0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A13 *((volatile unsigned int*)(0x42C908B4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A14 *((volatile unsigned int*)(0x42C908B8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A15 *((volatile unsigned int*)(0x42C908BCUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A16 *((volatile unsigned int*)(0x42C908C0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A17 *((volatile unsigned int*)(0x42C908C4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A18 *((volatile unsigned int*)(0x42C908C8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A19 *((volatile unsigned int*)(0x42C908CCUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A20 *((volatile unsigned int*)(0x42C908D0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A21 *((volatile unsigned int*)(0x42C908D4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A22 *((volatile unsigned int*)(0x42C908D8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A23 *((volatile unsigned int*)(0x42C908DCUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A24 *((volatile unsigned int*)(0x42C908E0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A25 *((volatile unsigned int*)(0x42C908E4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A26 *((volatile unsigned int*)(0x42C908E8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A27 *((volatile unsigned int*)(0x42C908ECUL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A28 *((volatile unsigned int*)(0x42C908F0UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A29 *((volatile unsigned int*)(0x42C908F4UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A30 *((volatile unsigned int*)(0x42C908F8UL)) +#define bFM3_ETHERNET_MAC0_MAR24L_A31 *((volatile unsigned int*)(0x42C908FCUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A32 *((volatile unsigned int*)(0x42C90900UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A33 *((volatile unsigned int*)(0x42C90904UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A34 *((volatile unsigned int*)(0x42C90908UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A35 *((volatile unsigned int*)(0x42C9090CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A36 *((volatile unsigned int*)(0x42C90910UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A37 *((volatile unsigned int*)(0x42C90914UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A38 *((volatile unsigned int*)(0x42C90918UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A39 *((volatile unsigned int*)(0x42C9091CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A40 *((volatile unsigned int*)(0x42C90920UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A41 *((volatile unsigned int*)(0x42C90924UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A42 *((volatile unsigned int*)(0x42C90928UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A43 *((volatile unsigned int*)(0x42C9092CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A44 *((volatile unsigned int*)(0x42C90930UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A45 *((volatile unsigned int*)(0x42C90934UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A46 *((volatile unsigned int*)(0x42C90938UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_A47 *((volatile unsigned int*)(0x42C9093CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC0 *((volatile unsigned int*)(0x42C90960UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC1 *((volatile unsigned int*)(0x42C90964UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC2 *((volatile unsigned int*)(0x42C90968UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC3 *((volatile unsigned int*)(0x42C9096CUL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC4 *((volatile unsigned int*)(0x42C90970UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_MBC5 *((volatile unsigned int*)(0x42C90974UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_SA *((volatile unsigned int*)(0x42C90978UL)) +#define bFM3_ETHERNET_MAC0_MAR25H_AE *((volatile unsigned int*)(0x42C9097CUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A0 *((volatile unsigned int*)(0x42C90980UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A1 *((volatile unsigned int*)(0x42C90984UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A2 *((volatile unsigned int*)(0x42C90988UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A3 *((volatile unsigned int*)(0x42C9098CUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A4 *((volatile unsigned int*)(0x42C90990UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A5 *((volatile unsigned int*)(0x42C90994UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A6 *((volatile unsigned int*)(0x42C90998UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A7 *((volatile unsigned int*)(0x42C9099CUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A8 *((volatile unsigned int*)(0x42C909A0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A9 *((volatile unsigned int*)(0x42C909A4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A10 *((volatile unsigned int*)(0x42C909A8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A11 *((volatile unsigned int*)(0x42C909ACUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A12 *((volatile unsigned int*)(0x42C909B0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A13 *((volatile unsigned int*)(0x42C909B4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A14 *((volatile unsigned int*)(0x42C909B8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A15 *((volatile unsigned int*)(0x42C909BCUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A16 *((volatile unsigned int*)(0x42C909C0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A17 *((volatile unsigned int*)(0x42C909C4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A18 *((volatile unsigned int*)(0x42C909C8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A19 *((volatile unsigned int*)(0x42C909CCUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A20 *((volatile unsigned int*)(0x42C909D0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A21 *((volatile unsigned int*)(0x42C909D4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A22 *((volatile unsigned int*)(0x42C909D8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A23 *((volatile unsigned int*)(0x42C909DCUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A24 *((volatile unsigned int*)(0x42C909E0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A25 *((volatile unsigned int*)(0x42C909E4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A26 *((volatile unsigned int*)(0x42C909E8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A27 *((volatile unsigned int*)(0x42C909ECUL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A28 *((volatile unsigned int*)(0x42C909F0UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A29 *((volatile unsigned int*)(0x42C909F4UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A30 *((volatile unsigned int*)(0x42C909F8UL)) +#define bFM3_ETHERNET_MAC0_MAR25L_A31 *((volatile unsigned int*)(0x42C909FCUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A32 *((volatile unsigned int*)(0x42C90A00UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A33 *((volatile unsigned int*)(0x42C90A04UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A34 *((volatile unsigned int*)(0x42C90A08UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A35 *((volatile unsigned int*)(0x42C90A0CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A36 *((volatile unsigned int*)(0x42C90A10UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A37 *((volatile unsigned int*)(0x42C90A14UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A38 *((volatile unsigned int*)(0x42C90A18UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A39 *((volatile unsigned int*)(0x42C90A1CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A40 *((volatile unsigned int*)(0x42C90A20UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A41 *((volatile unsigned int*)(0x42C90A24UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A42 *((volatile unsigned int*)(0x42C90A28UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A43 *((volatile unsigned int*)(0x42C90A2CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A44 *((volatile unsigned int*)(0x42C90A30UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A45 *((volatile unsigned int*)(0x42C90A34UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A46 *((volatile unsigned int*)(0x42C90A38UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_A47 *((volatile unsigned int*)(0x42C90A3CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC0 *((volatile unsigned int*)(0x42C90A60UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC1 *((volatile unsigned int*)(0x42C90A64UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC2 *((volatile unsigned int*)(0x42C90A68UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC3 *((volatile unsigned int*)(0x42C90A6CUL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC4 *((volatile unsigned int*)(0x42C90A70UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_MBC5 *((volatile unsigned int*)(0x42C90A74UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_SA *((volatile unsigned int*)(0x42C90A78UL)) +#define bFM3_ETHERNET_MAC0_MAR26H_AE *((volatile unsigned int*)(0x42C90A7CUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A0 *((volatile unsigned int*)(0x42C90A80UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A1 *((volatile unsigned int*)(0x42C90A84UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A2 *((volatile unsigned int*)(0x42C90A88UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A3 *((volatile unsigned int*)(0x42C90A8CUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A4 *((volatile unsigned int*)(0x42C90A90UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A5 *((volatile unsigned int*)(0x42C90A94UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A6 *((volatile unsigned int*)(0x42C90A98UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A7 *((volatile unsigned int*)(0x42C90A9CUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A8 *((volatile unsigned int*)(0x42C90AA0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A9 *((volatile unsigned int*)(0x42C90AA4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A10 *((volatile unsigned int*)(0x42C90AA8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A11 *((volatile unsigned int*)(0x42C90AACUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A12 *((volatile unsigned int*)(0x42C90AB0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A13 *((volatile unsigned int*)(0x42C90AB4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A14 *((volatile unsigned int*)(0x42C90AB8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A15 *((volatile unsigned int*)(0x42C90ABCUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A16 *((volatile unsigned int*)(0x42C90AC0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A17 *((volatile unsigned int*)(0x42C90AC4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A18 *((volatile unsigned int*)(0x42C90AC8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A19 *((volatile unsigned int*)(0x42C90ACCUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A20 *((volatile unsigned int*)(0x42C90AD0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A21 *((volatile unsigned int*)(0x42C90AD4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A22 *((volatile unsigned int*)(0x42C90AD8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A23 *((volatile unsigned int*)(0x42C90ADCUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A24 *((volatile unsigned int*)(0x42C90AE0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A25 *((volatile unsigned int*)(0x42C90AE4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A26 *((volatile unsigned int*)(0x42C90AE8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A27 *((volatile unsigned int*)(0x42C90AECUL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A28 *((volatile unsigned int*)(0x42C90AF0UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A29 *((volatile unsigned int*)(0x42C90AF4UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A30 *((volatile unsigned int*)(0x42C90AF8UL)) +#define bFM3_ETHERNET_MAC0_MAR26L_A31 *((volatile unsigned int*)(0x42C90AFCUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A32 *((volatile unsigned int*)(0x42C90B00UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A33 *((volatile unsigned int*)(0x42C90B04UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A34 *((volatile unsigned int*)(0x42C90B08UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A35 *((volatile unsigned int*)(0x42C90B0CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A36 *((volatile unsigned int*)(0x42C90B10UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A37 *((volatile unsigned int*)(0x42C90B14UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A38 *((volatile unsigned int*)(0x42C90B18UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A39 *((volatile unsigned int*)(0x42C90B1CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A40 *((volatile unsigned int*)(0x42C90B20UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A41 *((volatile unsigned int*)(0x42C90B24UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A42 *((volatile unsigned int*)(0x42C90B28UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A43 *((volatile unsigned int*)(0x42C90B2CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A44 *((volatile unsigned int*)(0x42C90B30UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A45 *((volatile unsigned int*)(0x42C90B34UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A46 *((volatile unsigned int*)(0x42C90B38UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_A47 *((volatile unsigned int*)(0x42C90B3CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC0 *((volatile unsigned int*)(0x42C90B60UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC1 *((volatile unsigned int*)(0x42C90B64UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC2 *((volatile unsigned int*)(0x42C90B68UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC3 *((volatile unsigned int*)(0x42C90B6CUL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC4 *((volatile unsigned int*)(0x42C90B70UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_MBC5 *((volatile unsigned int*)(0x42C90B74UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_SA *((volatile unsigned int*)(0x42C90B78UL)) +#define bFM3_ETHERNET_MAC0_MAR27H_AE *((volatile unsigned int*)(0x42C90B7CUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A0 *((volatile unsigned int*)(0x42C90B80UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A1 *((volatile unsigned int*)(0x42C90B84UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A2 *((volatile unsigned int*)(0x42C90B88UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A3 *((volatile unsigned int*)(0x42C90B8CUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A4 *((volatile unsigned int*)(0x42C90B90UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A5 *((volatile unsigned int*)(0x42C90B94UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A6 *((volatile unsigned int*)(0x42C90B98UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A7 *((volatile unsigned int*)(0x42C90B9CUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A8 *((volatile unsigned int*)(0x42C90BA0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A9 *((volatile unsigned int*)(0x42C90BA4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A10 *((volatile unsigned int*)(0x42C90BA8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A11 *((volatile unsigned int*)(0x42C90BACUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A12 *((volatile unsigned int*)(0x42C90BB0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A13 *((volatile unsigned int*)(0x42C90BB4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A14 *((volatile unsigned int*)(0x42C90BB8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A15 *((volatile unsigned int*)(0x42C90BBCUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A16 *((volatile unsigned int*)(0x42C90BC0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A17 *((volatile unsigned int*)(0x42C90BC4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A18 *((volatile unsigned int*)(0x42C90BC8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A19 *((volatile unsigned int*)(0x42C90BCCUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A20 *((volatile unsigned int*)(0x42C90BD0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A21 *((volatile unsigned int*)(0x42C90BD4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A22 *((volatile unsigned int*)(0x42C90BD8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A23 *((volatile unsigned int*)(0x42C90BDCUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A24 *((volatile unsigned int*)(0x42C90BE0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A25 *((volatile unsigned int*)(0x42C90BE4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A26 *((volatile unsigned int*)(0x42C90BE8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A27 *((volatile unsigned int*)(0x42C90BECUL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A28 *((volatile unsigned int*)(0x42C90BF0UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A29 *((volatile unsigned int*)(0x42C90BF4UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A30 *((volatile unsigned int*)(0x42C90BF8UL)) +#define bFM3_ETHERNET_MAC0_MAR27L_A31 *((volatile unsigned int*)(0x42C90BFCUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A32 *((volatile unsigned int*)(0x42C90C00UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A33 *((volatile unsigned int*)(0x42C90C04UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A34 *((volatile unsigned int*)(0x42C90C08UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A35 *((volatile unsigned int*)(0x42C90C0CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A36 *((volatile unsigned int*)(0x42C90C10UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A37 *((volatile unsigned int*)(0x42C90C14UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A38 *((volatile unsigned int*)(0x42C90C18UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A39 *((volatile unsigned int*)(0x42C90C1CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A40 *((volatile unsigned int*)(0x42C90C20UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A41 *((volatile unsigned int*)(0x42C90C24UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A42 *((volatile unsigned int*)(0x42C90C28UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A43 *((volatile unsigned int*)(0x42C90C2CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A44 *((volatile unsigned int*)(0x42C90C30UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A45 *((volatile unsigned int*)(0x42C90C34UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A46 *((volatile unsigned int*)(0x42C90C38UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_A47 *((volatile unsigned int*)(0x42C90C3CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC0 *((volatile unsigned int*)(0x42C90C60UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC1 *((volatile unsigned int*)(0x42C90C64UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC2 *((volatile unsigned int*)(0x42C90C68UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC3 *((volatile unsigned int*)(0x42C90C6CUL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC4 *((volatile unsigned int*)(0x42C90C70UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_MBC5 *((volatile unsigned int*)(0x42C90C74UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_SA *((volatile unsigned int*)(0x42C90C78UL)) +#define bFM3_ETHERNET_MAC0_MAR28H_AE *((volatile unsigned int*)(0x42C90C7CUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A0 *((volatile unsigned int*)(0x42C90C80UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A1 *((volatile unsigned int*)(0x42C90C84UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A2 *((volatile unsigned int*)(0x42C90C88UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A3 *((volatile unsigned int*)(0x42C90C8CUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A4 *((volatile unsigned int*)(0x42C90C90UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A5 *((volatile unsigned int*)(0x42C90C94UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A6 *((volatile unsigned int*)(0x42C90C98UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A7 *((volatile unsigned int*)(0x42C90C9CUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A8 *((volatile unsigned int*)(0x42C90CA0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A9 *((volatile unsigned int*)(0x42C90CA4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A10 *((volatile unsigned int*)(0x42C90CA8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A11 *((volatile unsigned int*)(0x42C90CACUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A12 *((volatile unsigned int*)(0x42C90CB0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A13 *((volatile unsigned int*)(0x42C90CB4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A14 *((volatile unsigned int*)(0x42C90CB8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A15 *((volatile unsigned int*)(0x42C90CBCUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A16 *((volatile unsigned int*)(0x42C90CC0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A17 *((volatile unsigned int*)(0x42C90CC4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A18 *((volatile unsigned int*)(0x42C90CC8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A19 *((volatile unsigned int*)(0x42C90CCCUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A20 *((volatile unsigned int*)(0x42C90CD0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A21 *((volatile unsigned int*)(0x42C90CD4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A22 *((volatile unsigned int*)(0x42C90CD8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A23 *((volatile unsigned int*)(0x42C90CDCUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A24 *((volatile unsigned int*)(0x42C90CE0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A25 *((volatile unsigned int*)(0x42C90CE4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A26 *((volatile unsigned int*)(0x42C90CE8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A27 *((volatile unsigned int*)(0x42C90CECUL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A28 *((volatile unsigned int*)(0x42C90CF0UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A29 *((volatile unsigned int*)(0x42C90CF4UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A30 *((volatile unsigned int*)(0x42C90CF8UL)) +#define bFM3_ETHERNET_MAC0_MAR28L_A31 *((volatile unsigned int*)(0x42C90CFCUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A32 *((volatile unsigned int*)(0x42C90D00UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A33 *((volatile unsigned int*)(0x42C90D04UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A34 *((volatile unsigned int*)(0x42C90D08UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A35 *((volatile unsigned int*)(0x42C90D0CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A36 *((volatile unsigned int*)(0x42C90D10UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A37 *((volatile unsigned int*)(0x42C90D14UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A38 *((volatile unsigned int*)(0x42C90D18UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A39 *((volatile unsigned int*)(0x42C90D1CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A40 *((volatile unsigned int*)(0x42C90D20UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A41 *((volatile unsigned int*)(0x42C90D24UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A42 *((volatile unsigned int*)(0x42C90D28UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A43 *((volatile unsigned int*)(0x42C90D2CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A44 *((volatile unsigned int*)(0x42C90D30UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A45 *((volatile unsigned int*)(0x42C90D34UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A46 *((volatile unsigned int*)(0x42C90D38UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_A47 *((volatile unsigned int*)(0x42C90D3CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC0 *((volatile unsigned int*)(0x42C90D60UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC1 *((volatile unsigned int*)(0x42C90D64UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC2 *((volatile unsigned int*)(0x42C90D68UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC3 *((volatile unsigned int*)(0x42C90D6CUL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC4 *((volatile unsigned int*)(0x42C90D70UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_MBC5 *((volatile unsigned int*)(0x42C90D74UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_SA *((volatile unsigned int*)(0x42C90D78UL)) +#define bFM3_ETHERNET_MAC0_MAR29H_AE *((volatile unsigned int*)(0x42C90D7CUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A0 *((volatile unsigned int*)(0x42C90D80UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A1 *((volatile unsigned int*)(0x42C90D84UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A2 *((volatile unsigned int*)(0x42C90D88UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A3 *((volatile unsigned int*)(0x42C90D8CUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A4 *((volatile unsigned int*)(0x42C90D90UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A5 *((volatile unsigned int*)(0x42C90D94UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A6 *((volatile unsigned int*)(0x42C90D98UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A7 *((volatile unsigned int*)(0x42C90D9CUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A8 *((volatile unsigned int*)(0x42C90DA0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A9 *((volatile unsigned int*)(0x42C90DA4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A10 *((volatile unsigned int*)(0x42C90DA8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A11 *((volatile unsigned int*)(0x42C90DACUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A12 *((volatile unsigned int*)(0x42C90DB0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A13 *((volatile unsigned int*)(0x42C90DB4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A14 *((volatile unsigned int*)(0x42C90DB8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A15 *((volatile unsigned int*)(0x42C90DBCUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A16 *((volatile unsigned int*)(0x42C90DC0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A17 *((volatile unsigned int*)(0x42C90DC4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A18 *((volatile unsigned int*)(0x42C90DC8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A19 *((volatile unsigned int*)(0x42C90DCCUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A20 *((volatile unsigned int*)(0x42C90DD0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A21 *((volatile unsigned int*)(0x42C90DD4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A22 *((volatile unsigned int*)(0x42C90DD8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A23 *((volatile unsigned int*)(0x42C90DDCUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A24 *((volatile unsigned int*)(0x42C90DE0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A25 *((volatile unsigned int*)(0x42C90DE4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A26 *((volatile unsigned int*)(0x42C90DE8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A27 *((volatile unsigned int*)(0x42C90DECUL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A28 *((volatile unsigned int*)(0x42C90DF0UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A29 *((volatile unsigned int*)(0x42C90DF4UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A30 *((volatile unsigned int*)(0x42C90DF8UL)) +#define bFM3_ETHERNET_MAC0_MAR29L_A31 *((volatile unsigned int*)(0x42C90DFCUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A32 *((volatile unsigned int*)(0x42C90E00UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A33 *((volatile unsigned int*)(0x42C90E04UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A34 *((volatile unsigned int*)(0x42C90E08UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A35 *((volatile unsigned int*)(0x42C90E0CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A36 *((volatile unsigned int*)(0x42C90E10UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A37 *((volatile unsigned int*)(0x42C90E14UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A38 *((volatile unsigned int*)(0x42C90E18UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A39 *((volatile unsigned int*)(0x42C90E1CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A40 *((volatile unsigned int*)(0x42C90E20UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A41 *((volatile unsigned int*)(0x42C90E24UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A42 *((volatile unsigned int*)(0x42C90E28UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A43 *((volatile unsigned int*)(0x42C90E2CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A44 *((volatile unsigned int*)(0x42C90E30UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A45 *((volatile unsigned int*)(0x42C90E34UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A46 *((volatile unsigned int*)(0x42C90E38UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_A47 *((volatile unsigned int*)(0x42C90E3CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC0 *((volatile unsigned int*)(0x42C90E60UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC1 *((volatile unsigned int*)(0x42C90E64UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC2 *((volatile unsigned int*)(0x42C90E68UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC3 *((volatile unsigned int*)(0x42C90E6CUL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC4 *((volatile unsigned int*)(0x42C90E70UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_MBC5 *((volatile unsigned int*)(0x42C90E74UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_SA *((volatile unsigned int*)(0x42C90E78UL)) +#define bFM3_ETHERNET_MAC0_MAR30H_AE *((volatile unsigned int*)(0x42C90E7CUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A0 *((volatile unsigned int*)(0x42C90E80UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A1 *((volatile unsigned int*)(0x42C90E84UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A2 *((volatile unsigned int*)(0x42C90E88UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A3 *((volatile unsigned int*)(0x42C90E8CUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A4 *((volatile unsigned int*)(0x42C90E90UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A5 *((volatile unsigned int*)(0x42C90E94UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A6 *((volatile unsigned int*)(0x42C90E98UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A7 *((volatile unsigned int*)(0x42C90E9CUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A8 *((volatile unsigned int*)(0x42C90EA0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A9 *((volatile unsigned int*)(0x42C90EA4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A10 *((volatile unsigned int*)(0x42C90EA8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A11 *((volatile unsigned int*)(0x42C90EACUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A12 *((volatile unsigned int*)(0x42C90EB0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A13 *((volatile unsigned int*)(0x42C90EB4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A14 *((volatile unsigned int*)(0x42C90EB8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A15 *((volatile unsigned int*)(0x42C90EBCUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A16 *((volatile unsigned int*)(0x42C90EC0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A17 *((volatile unsigned int*)(0x42C90EC4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A18 *((volatile unsigned int*)(0x42C90EC8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A19 *((volatile unsigned int*)(0x42C90ECCUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A20 *((volatile unsigned int*)(0x42C90ED0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A21 *((volatile unsigned int*)(0x42C90ED4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A22 *((volatile unsigned int*)(0x42C90ED8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A23 *((volatile unsigned int*)(0x42C90EDCUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A24 *((volatile unsigned int*)(0x42C90EE0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A25 *((volatile unsigned int*)(0x42C90EE4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A26 *((volatile unsigned int*)(0x42C90EE8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A27 *((volatile unsigned int*)(0x42C90EECUL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A28 *((volatile unsigned int*)(0x42C90EF0UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A29 *((volatile unsigned int*)(0x42C90EF4UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A30 *((volatile unsigned int*)(0x42C90EF8UL)) +#define bFM3_ETHERNET_MAC0_MAR30L_A31 *((volatile unsigned int*)(0x42C90EFCUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A32 *((volatile unsigned int*)(0x42C90F00UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A33 *((volatile unsigned int*)(0x42C90F04UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A34 *((volatile unsigned int*)(0x42C90F08UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A35 *((volatile unsigned int*)(0x42C90F0CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A36 *((volatile unsigned int*)(0x42C90F10UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A37 *((volatile unsigned int*)(0x42C90F14UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A38 *((volatile unsigned int*)(0x42C90F18UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A39 *((volatile unsigned int*)(0x42C90F1CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A40 *((volatile unsigned int*)(0x42C90F20UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A41 *((volatile unsigned int*)(0x42C90F24UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A42 *((volatile unsigned int*)(0x42C90F28UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A43 *((volatile unsigned int*)(0x42C90F2CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A44 *((volatile unsigned int*)(0x42C90F30UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A45 *((volatile unsigned int*)(0x42C90F34UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A46 *((volatile unsigned int*)(0x42C90F38UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_A47 *((volatile unsigned int*)(0x42C90F3CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC0 *((volatile unsigned int*)(0x42C90F60UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC1 *((volatile unsigned int*)(0x42C90F64UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC2 *((volatile unsigned int*)(0x42C90F68UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC3 *((volatile unsigned int*)(0x42C90F6CUL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC4 *((volatile unsigned int*)(0x42C90F70UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_MBC5 *((volatile unsigned int*)(0x42C90F74UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_SA *((volatile unsigned int*)(0x42C90F78UL)) +#define bFM3_ETHERNET_MAC0_MAR31H_AE *((volatile unsigned int*)(0x42C90F7CUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A0 *((volatile unsigned int*)(0x42C90F80UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A1 *((volatile unsigned int*)(0x42C90F84UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A2 *((volatile unsigned int*)(0x42C90F88UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A3 *((volatile unsigned int*)(0x42C90F8CUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A4 *((volatile unsigned int*)(0x42C90F90UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A5 *((volatile unsigned int*)(0x42C90F94UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A6 *((volatile unsigned int*)(0x42C90F98UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A7 *((volatile unsigned int*)(0x42C90F9CUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A8 *((volatile unsigned int*)(0x42C90FA0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A9 *((volatile unsigned int*)(0x42C90FA4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A10 *((volatile unsigned int*)(0x42C90FA8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A11 *((volatile unsigned int*)(0x42C90FACUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A12 *((volatile unsigned int*)(0x42C90FB0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A13 *((volatile unsigned int*)(0x42C90FB4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A14 *((volatile unsigned int*)(0x42C90FB8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A15 *((volatile unsigned int*)(0x42C90FBCUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A16 *((volatile unsigned int*)(0x42C90FC0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A17 *((volatile unsigned int*)(0x42C90FC4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A18 *((volatile unsigned int*)(0x42C90FC8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A19 *((volatile unsigned int*)(0x42C90FCCUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A20 *((volatile unsigned int*)(0x42C90FD0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A21 *((volatile unsigned int*)(0x42C90FD4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A22 *((volatile unsigned int*)(0x42C90FD8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A23 *((volatile unsigned int*)(0x42C90FDCUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A24 *((volatile unsigned int*)(0x42C90FE0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A25 *((volatile unsigned int*)(0x42C90FE4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A26 *((volatile unsigned int*)(0x42C90FE8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A27 *((volatile unsigned int*)(0x42C90FECUL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A28 *((volatile unsigned int*)(0x42C90FF0UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A29 *((volatile unsigned int*)(0x42C90FF4UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A30 *((volatile unsigned int*)(0x42C90FF8UL)) +#define bFM3_ETHERNET_MAC0_MAR31L_A31 *((volatile unsigned int*)(0x42C90FFCUL)) +#define bFM3_ETHERNET_MAC0_BMR_SWR *((volatile unsigned int*)(0x42CA0000UL)) +#define bFM3_ETHERNET_MAC0_BMR_DA *((volatile unsigned int*)(0x42CA0004UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL0 *((volatile unsigned int*)(0x42CA0008UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL1 *((volatile unsigned int*)(0x42CA000CUL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL2 *((volatile unsigned int*)(0x42CA0010UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL3 *((volatile unsigned int*)(0x42CA0014UL)) +#define bFM3_ETHERNET_MAC0_BMR_DSL4 *((volatile unsigned int*)(0x42CA0018UL)) +#define bFM3_ETHERNET_MAC0_BMR_ATDS *((volatile unsigned int*)(0x42CA001CUL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL0 *((volatile unsigned int*)(0x42CA0020UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL1 *((volatile unsigned int*)(0x42CA0024UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL2 *((volatile unsigned int*)(0x42CA0028UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL3 *((volatile unsigned int*)(0x42CA002CUL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL4 *((volatile unsigned int*)(0x42CA0030UL)) +#define bFM3_ETHERNET_MAC0_BMR_PBL5 *((volatile unsigned int*)(0x42CA0034UL)) +#define bFM3_ETHERNET_MAC0_BMR_PR0 *((volatile unsigned int*)(0x42CA0038UL)) +#define bFM3_ETHERNET_MAC0_BMR_PR1 *((volatile unsigned int*)(0x42CA003CUL)) +#define bFM3_ETHERNET_MAC0_BMR_FB *((volatile unsigned int*)(0x42CA0040UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL0 *((volatile unsigned int*)(0x42CA0044UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL1 *((volatile unsigned int*)(0x42CA0048UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL2 *((volatile unsigned int*)(0x42CA004CUL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL3 *((volatile unsigned int*)(0x42CA0050UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL4 *((volatile unsigned int*)(0x42CA0054UL)) +#define bFM3_ETHERNET_MAC0_BMR_RPBL5 *((volatile unsigned int*)(0x42CA0058UL)) +#define bFM3_ETHERNET_MAC0_BMR_USP *((volatile unsigned int*)(0x42CA005CUL)) +#define bFM3_ETHERNET_MAC0_BMR_8XPBL *((volatile unsigned int*)(0x42CA0060UL)) +#define bFM3_ETHERNET_MAC0_BMR_AAL *((volatile unsigned int*)(0x42CA0064UL)) +#define bFM3_ETHERNET_MAC0_BMR_MB *((volatile unsigned int*)(0x42CA0068UL)) +#define bFM3_ETHERNET_MAC0_BMR_TXPR *((volatile unsigned int*)(0x42CA006CUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD0 *((volatile unsigned int*)(0x42CA0080UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD1 *((volatile unsigned int*)(0x42CA0084UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD2 *((volatile unsigned int*)(0x42CA0088UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD3 *((volatile unsigned int*)(0x42CA008CUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD4 *((volatile unsigned int*)(0x42CA0090UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD5 *((volatile unsigned int*)(0x42CA0094UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD6 *((volatile unsigned int*)(0x42CA0098UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD7 *((volatile unsigned int*)(0x42CA009CUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD8 *((volatile unsigned int*)(0x42CA00A0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD9 *((volatile unsigned int*)(0x42CA00A4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD10 *((volatile unsigned int*)(0x42CA00A8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD11 *((volatile unsigned int*)(0x42CA00ACUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD12 *((volatile unsigned int*)(0x42CA00B0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD13 *((volatile unsigned int*)(0x42CA00B4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD14 *((volatile unsigned int*)(0x42CA00B8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD15 *((volatile unsigned int*)(0x42CA00BCUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD16 *((volatile unsigned int*)(0x42CA00C0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD17 *((volatile unsigned int*)(0x42CA00C4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD18 *((volatile unsigned int*)(0x42CA00C8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD19 *((volatile unsigned int*)(0x42CA00CCUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD20 *((volatile unsigned int*)(0x42CA00D0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD21 *((volatile unsigned int*)(0x42CA00D4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD22 *((volatile unsigned int*)(0x42CA00D8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD23 *((volatile unsigned int*)(0x42CA00DCUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD24 *((volatile unsigned int*)(0x42CA00E0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD25 *((volatile unsigned int*)(0x42CA00E4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD26 *((volatile unsigned int*)(0x42CA00E8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD27 *((volatile unsigned int*)(0x42CA00ECUL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD28 *((volatile unsigned int*)(0x42CA00F0UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD29 *((volatile unsigned int*)(0x42CA00F4UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD30 *((volatile unsigned int*)(0x42CA00F8UL)) +#define bFM3_ETHERNET_MAC0_TPDR_TPD31 *((volatile unsigned int*)(0x42CA00FCUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD0 *((volatile unsigned int*)(0x42CA0100UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD1 *((volatile unsigned int*)(0x42CA0104UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD2 *((volatile unsigned int*)(0x42CA0108UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD3 *((volatile unsigned int*)(0x42CA010CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD4 *((volatile unsigned int*)(0x42CA0110UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD5 *((volatile unsigned int*)(0x42CA0114UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD6 *((volatile unsigned int*)(0x42CA0118UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD7 *((volatile unsigned int*)(0x42CA011CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD8 *((volatile unsigned int*)(0x42CA0120UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD9 *((volatile unsigned int*)(0x42CA0124UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD10 *((volatile unsigned int*)(0x42CA0128UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD11 *((volatile unsigned int*)(0x42CA012CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD12 *((volatile unsigned int*)(0x42CA0130UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD13 *((volatile unsigned int*)(0x42CA0134UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD14 *((volatile unsigned int*)(0x42CA0138UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD15 *((volatile unsigned int*)(0x42CA013CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD16 *((volatile unsigned int*)(0x42CA0140UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD17 *((volatile unsigned int*)(0x42CA0144UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD18 *((volatile unsigned int*)(0x42CA0148UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD19 *((volatile unsigned int*)(0x42CA014CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD20 *((volatile unsigned int*)(0x42CA0150UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD21 *((volatile unsigned int*)(0x42CA0154UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD22 *((volatile unsigned int*)(0x42CA0158UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD23 *((volatile unsigned int*)(0x42CA015CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD24 *((volatile unsigned int*)(0x42CA0160UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD25 *((volatile unsigned int*)(0x42CA0164UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD26 *((volatile unsigned int*)(0x42CA0168UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD27 *((volatile unsigned int*)(0x42CA016CUL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD28 *((volatile unsigned int*)(0x42CA0170UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD29 *((volatile unsigned int*)(0x42CA0174UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD30 *((volatile unsigned int*)(0x42CA0178UL)) +#define bFM3_ETHERNET_MAC0_RPDR_RPD31 *((volatile unsigned int*)(0x42CA017CUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL2 *((volatile unsigned int*)(0x42CA0188UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL3 *((volatile unsigned int*)(0x42CA018CUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL4 *((volatile unsigned int*)(0x42CA0190UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL5 *((volatile unsigned int*)(0x42CA0194UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL6 *((volatile unsigned int*)(0x42CA0198UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL7 *((volatile unsigned int*)(0x42CA019CUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL8 *((volatile unsigned int*)(0x42CA01A0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL9 *((volatile unsigned int*)(0x42CA01A4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL10 *((volatile unsigned int*)(0x42CA01A8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL11 *((volatile unsigned int*)(0x42CA01ACUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL12 *((volatile unsigned int*)(0x42CA01B0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL13 *((volatile unsigned int*)(0x42CA01B4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL14 *((volatile unsigned int*)(0x42CA01B8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL15 *((volatile unsigned int*)(0x42CA01BCUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL16 *((volatile unsigned int*)(0x42CA01C0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL17 *((volatile unsigned int*)(0x42CA01C4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL18 *((volatile unsigned int*)(0x42CA01C8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL19 *((volatile unsigned int*)(0x42CA01CCUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL20 *((volatile unsigned int*)(0x42CA01D0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL21 *((volatile unsigned int*)(0x42CA01D4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL22 *((volatile unsigned int*)(0x42CA01D8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL23 *((volatile unsigned int*)(0x42CA01DCUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL24 *((volatile unsigned int*)(0x42CA01E0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL25 *((volatile unsigned int*)(0x42CA01E4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL26 *((volatile unsigned int*)(0x42CA01E8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL27 *((volatile unsigned int*)(0x42CA01ECUL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL28 *((volatile unsigned int*)(0x42CA01F0UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL29 *((volatile unsigned int*)(0x42CA01F4UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL30 *((volatile unsigned int*)(0x42CA01F8UL)) +#define bFM3_ETHERNET_MAC0_RDLAR_SRL31 *((volatile unsigned int*)(0x42CA01FCUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL2 *((volatile unsigned int*)(0x42CA0208UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL3 *((volatile unsigned int*)(0x42CA020CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL4 *((volatile unsigned int*)(0x42CA0210UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL5 *((volatile unsigned int*)(0x42CA0214UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL6 *((volatile unsigned int*)(0x42CA0218UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL7 *((volatile unsigned int*)(0x42CA021CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL8 *((volatile unsigned int*)(0x42CA0220UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL9 *((volatile unsigned int*)(0x42CA0224UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL10 *((volatile unsigned int*)(0x42CA0228UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL11 *((volatile unsigned int*)(0x42CA022CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL12 *((volatile unsigned int*)(0x42CA0230UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL13 *((volatile unsigned int*)(0x42CA0234UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL14 *((volatile unsigned int*)(0x42CA0238UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL15 *((volatile unsigned int*)(0x42CA023CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL16 *((volatile unsigned int*)(0x42CA0240UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL17 *((volatile unsigned int*)(0x42CA0244UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL18 *((volatile unsigned int*)(0x42CA0248UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL19 *((volatile unsigned int*)(0x42CA024CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL20 *((volatile unsigned int*)(0x42CA0250UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL21 *((volatile unsigned int*)(0x42CA0254UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL22 *((volatile unsigned int*)(0x42CA0258UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL23 *((volatile unsigned int*)(0x42CA025CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL24 *((volatile unsigned int*)(0x42CA0260UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL25 *((volatile unsigned int*)(0x42CA0264UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL26 *((volatile unsigned int*)(0x42CA0268UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL27 *((volatile unsigned int*)(0x42CA026CUL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL28 *((volatile unsigned int*)(0x42CA0270UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL29 *((volatile unsigned int*)(0x42CA0274UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL30 *((volatile unsigned int*)(0x42CA0278UL)) +#define bFM3_ETHERNET_MAC0_TDLAR_STL31 *((volatile unsigned int*)(0x42CA027CUL)) +#define bFM3_ETHERNET_MAC0_SR_TI *((volatile unsigned int*)(0x42CA0280UL)) +#define bFM3_ETHERNET_MAC0_SR_TPS *((volatile unsigned int*)(0x42CA0284UL)) +#define bFM3_ETHERNET_MAC0_SR_TU *((volatile unsigned int*)(0x42CA0288UL)) +#define bFM3_ETHERNET_MAC0_SR_TJT *((volatile unsigned int*)(0x42CA028CUL)) +#define bFM3_ETHERNET_MAC0_SR_OVF *((volatile unsigned int*)(0x42CA0290UL)) +#define bFM3_ETHERNET_MAC0_SR_UNF *((volatile unsigned int*)(0x42CA0294UL)) +#define bFM3_ETHERNET_MAC0_SR_RI *((volatile unsigned int*)(0x42CA0298UL)) +#define bFM3_ETHERNET_MAC0_SR_RU *((volatile unsigned int*)(0x42CA029CUL)) +#define bFM3_ETHERNET_MAC0_SR_RPS *((volatile unsigned int*)(0x42CA02A0UL)) +#define bFM3_ETHERNET_MAC0_SR_RWT *((volatile unsigned int*)(0x42CA02A4UL)) +#define bFM3_ETHERNET_MAC0_SR_ETI *((volatile unsigned int*)(0x42CA02A8UL)) +#define bFM3_ETHERNET_MAC0_SR_FBI *((volatile unsigned int*)(0x42CA02B4UL)) +#define bFM3_ETHERNET_MAC0_SR_ERI *((volatile unsigned int*)(0x42CA02B8UL)) +#define bFM3_ETHERNET_MAC0_SR_AIS *((volatile unsigned int*)(0x42CA02BCUL)) +#define bFM3_ETHERNET_MAC0_SR_NIS *((volatile unsigned int*)(0x42CA02C0UL)) +#define bFM3_ETHERNET_MAC0_SR_RS0 *((volatile unsigned int*)(0x42CA02C4UL)) +#define bFM3_ETHERNET_MAC0_SR_RS1 *((volatile unsigned int*)(0x42CA02C8UL)) +#define bFM3_ETHERNET_MAC0_SR_RS2 *((volatile unsigned int*)(0x42CA02CCUL)) +#define bFM3_ETHERNET_MAC0_SR_TS0 *((volatile unsigned int*)(0x42CA02D0UL)) +#define bFM3_ETHERNET_MAC0_SR_TS1 *((volatile unsigned int*)(0x42CA02D4UL)) +#define bFM3_ETHERNET_MAC0_SR_TS2 *((volatile unsigned int*)(0x42CA02D8UL)) +#define bFM3_ETHERNET_MAC0_SR_EB0 *((volatile unsigned int*)(0x42CA02DCUL)) +#define bFM3_ETHERNET_MAC0_SR_EB1 *((volatile unsigned int*)(0x42CA02E0UL)) +#define bFM3_ETHERNET_MAC0_SR_EB2 *((volatile unsigned int*)(0x42CA02E4UL)) +#define bFM3_ETHERNET_MAC0_SR_GLI *((volatile unsigned int*)(0x42CA02E8UL)) +#define bFM3_ETHERNET_MAC0_SR_GMI *((volatile unsigned int*)(0x42CA02ECUL)) +#define bFM3_ETHERNET_MAC0_SR_GPI *((volatile unsigned int*)(0x42CA02F0UL)) +#define bFM3_ETHERNET_MAC0_SR_TTI *((volatile unsigned int*)(0x42CA02F4UL)) +#define bFM3_ETHERNET_MAC0_SR_GLPII *((volatile unsigned int*)(0x42CA02F8UL)) +#define bFM3_ETHERNET_MAC0_OMR_SR *((volatile unsigned int*)(0x42CA0304UL)) +#define bFM3_ETHERNET_MAC0_OMR_OSF *((volatile unsigned int*)(0x42CA0308UL)) +#define bFM3_ETHERNET_MAC0_OMR_RTC0 *((volatile unsigned int*)(0x42CA030CUL)) +#define bFM3_ETHERNET_MAC0_OMR_RTC1 *((volatile unsigned int*)(0x42CA0310UL)) +#define bFM3_ETHERNET_MAC0_OMR_FUF *((volatile unsigned int*)(0x42CA0318UL)) +#define bFM3_ETHERNET_MAC0_OMR_FEF *((volatile unsigned int*)(0x42CA031CUL)) +#define bFM3_ETHERNET_MAC0_OMR_ST *((volatile unsigned int*)(0x42CA0334UL)) +#define bFM3_ETHERNET_MAC0_OMR_TTC0 *((volatile unsigned int*)(0x42CA0338UL)) +#define bFM3_ETHERNET_MAC0_OMR_TTC1 *((volatile unsigned int*)(0x42CA033CUL)) +#define bFM3_ETHERNET_MAC0_OMR_TTC2 *((volatile unsigned int*)(0x42CA0340UL)) +#define bFM3_ETHERNET_MAC0_OMR_FTF *((volatile unsigned int*)(0x42CA0350UL)) +#define bFM3_ETHERNET_MAC0_OMR_TSF *((volatile unsigned int*)(0x42CA0354UL)) +#define bFM3_ETHERNET_MAC0_OMR_DFF *((volatile unsigned int*)(0x42CA0360UL)) +#define bFM3_ETHERNET_MAC0_OMR_RSF *((volatile unsigned int*)(0x42CA0364UL)) +#define bFM3_ETHERNET_MAC0_OMR_DT *((volatile unsigned int*)(0x42CA0368UL)) +#define bFM3_ETHERNET_MAC0_IER_TIE *((volatile unsigned int*)(0x42CA0380UL)) +#define bFM3_ETHERNET_MAC0_IER_TSE *((volatile unsigned int*)(0x42CA0384UL)) +#define bFM3_ETHERNET_MAC0_IER_TUE *((volatile unsigned int*)(0x42CA0388UL)) +#define bFM3_ETHERNET_MAC0_IER_TJE *((volatile unsigned int*)(0x42CA038CUL)) +#define bFM3_ETHERNET_MAC0_IER_OVE *((volatile unsigned int*)(0x42CA0390UL)) +#define bFM3_ETHERNET_MAC0_IER_UNE *((volatile unsigned int*)(0x42CA0394UL)) +#define bFM3_ETHERNET_MAC0_IER_RIE *((volatile unsigned int*)(0x42CA0398UL)) +#define bFM3_ETHERNET_MAC0_IER_RUE *((volatile unsigned int*)(0x42CA039CUL)) +#define bFM3_ETHERNET_MAC0_IER_RSE *((volatile unsigned int*)(0x42CA03A0UL)) +#define bFM3_ETHERNET_MAC0_IER_RWE *((volatile unsigned int*)(0x42CA03A4UL)) +#define bFM3_ETHERNET_MAC0_IER_ETE *((volatile unsigned int*)(0x42CA03A8UL)) +#define bFM3_ETHERNET_MAC0_IER_FBE *((volatile unsigned int*)(0x42CA03B4UL)) +#define bFM3_ETHERNET_MAC0_IER_ERE *((volatile unsigned int*)(0x42CA03B8UL)) +#define bFM3_ETHERNET_MAC0_IER_AIE *((volatile unsigned int*)(0x42CA03BCUL)) +#define bFM3_ETHERNET_MAC0_IER_NIE *((volatile unsigned int*)(0x42CA03C0UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42CA0400UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42CA0404UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42CA0408UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42CA040CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42CA0410UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42CA0414UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42CA0418UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42CA041CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42CA0420UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42CA0424UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42CA0428UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42CA042CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42CA0430UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42CA0434UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42CA0438UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42CA043CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFH *((volatile unsigned int*)(0x42CA0440UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42CA0444UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42CA0448UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42CA044CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42CA0450UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42CA0454UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42CA0458UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42CA045CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42CA0460UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42CA0464UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42CA0468UL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42CA046CUL)) +#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFF *((volatile unsigned int*)(0x42CA0470UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT0 *((volatile unsigned int*)(0x42CA0480UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT1 *((volatile unsigned int*)(0x42CA0484UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT2 *((volatile unsigned int*)(0x42CA0488UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT3 *((volatile unsigned int*)(0x42CA048CUL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT4 *((volatile unsigned int*)(0x42CA0490UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT5 *((volatile unsigned int*)(0x42CA0494UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT6 *((volatile unsigned int*)(0x42CA0498UL)) +#define bFM3_ETHERNET_MAC0_RIWTR_RIWT7 *((volatile unsigned int*)(0x42CA049CUL)) +#define bFM3_ETHERNET_MAC0_AHBSR_AHBS *((volatile unsigned int*)(0x42CA0580UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42CA0900UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42CA0904UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42CA0908UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42CA090CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42CA0910UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42CA0914UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42CA0918UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42CA091CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42CA0920UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42CA0924UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42CA0928UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42CA092CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42CA0930UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42CA0934UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42CA0938UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42CA093CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42CA0940UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42CA0944UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42CA0948UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42CA094CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42CA0950UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42CA0954UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42CA0958UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42CA095CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42CA0960UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42CA0964UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42CA0968UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42CA096CUL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42CA0970UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42CA0974UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42CA0978UL)) +#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42CA097CUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42CA0980UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42CA0984UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42CA0988UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42CA098CUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42CA0990UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42CA0994UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42CA0998UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42CA099CUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42CA09A0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42CA09A4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42CA09A8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42CA09ACUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42CA09B0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42CA09B4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42CA09B8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42CA09BCUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42CA09C0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42CA09C4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42CA09C8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42CA09CCUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42CA09D0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42CA09D4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42CA09D8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42CA09DCUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42CA09E0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42CA09E4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42CA09E8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42CA09ECUL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42CA09F0UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42CA09F4UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42CA09F8UL)) +#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42CA09FCUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42CA0A00UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42CA0A04UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42CA0A08UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42CA0A0CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42CA0A10UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42CA0A14UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42CA0A18UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42CA0A1CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42CA0A20UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42CA0A24UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42CA0A28UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42CA0A2CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42CA0A30UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42CA0A34UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42CA0A38UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42CA0A3CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42CA0A40UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42CA0A44UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42CA0A48UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42CA0A4CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42CA0A50UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42CA0A54UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42CA0A58UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42CA0A5CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42CA0A60UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42CA0A64UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42CA0A68UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42CA0A6CUL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42CA0A70UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42CA0A74UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42CA0A78UL)) +#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42CA0A7CUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42CA0A80UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42CA0A84UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42CA0A88UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42CA0A8CUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42CA0A90UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42CA0A94UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42CA0A98UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42CA0A9CUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42CA0AA0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42CA0AA4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42CA0AA8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42CA0AACUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42CA0AB0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42CA0AB4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42CA0AB8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42CA0ABCUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42CA0AC0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42CA0AC4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42CA0AC8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42CA0ACCUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42CA0AD0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42CA0AD4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42CA0AD8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42CA0ADCUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42CA0AE0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42CA0AE4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42CA0AE8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42CA0AECUL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42CA0AF0UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42CA0AF4UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42CA0AF8UL)) +#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42CA0AFCUL)) + +/* ETHERNET-MAC-CONTROL registers */ +#define bFM3_ETHERNET_CONTROL_ETH_MODE_IFMODE *((volatile unsigned int*)(0x42CC0000UL)) +#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST0 *((volatile unsigned int*)(0x42CC0020UL)) +#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST1 *((volatile unsigned int*)(0x42CC0024UL)) +#define bFM3_ETHERNET_CONTROL_ETH_MODE_PPSSEL *((volatile unsigned int*)(0x42CC0070UL)) +#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN0 *((volatile unsigned int*)(0x42CC0100UL)) +#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN1 *((volatile unsigned int*)(0x42CC0104UL)) + +/* ETHERNET-MAC1 registers*/ +#define bFM3_ETHERNET_MAC1_MCR_RE *((volatile unsigned int*)(0x42CE0008UL)) +#define bFM3_ETHERNET_MAC1_MCR_TE *((volatile unsigned int*)(0x42CE000CUL)) +#define bFM3_ETHERNET_MAC1_MCR_DC *((volatile unsigned int*)(0x42CE0010UL)) +#define bFM3_ETHERNET_MAC1_MCR_BL0 *((volatile unsigned int*)(0x42CE0014UL)) +#define bFM3_ETHERNET_MAC1_MCR_BL1 *((volatile unsigned int*)(0x42CE0018UL)) +#define bFM3_ETHERNET_MAC1_MCR_ACS *((volatile unsigned int*)(0x42CE001CUL)) +#define bFM3_ETHERNET_MAC1_MCR_LUD *((volatile unsigned int*)(0x42CE0020UL)) +#define bFM3_ETHERNET_MAC1_MCR_DR *((volatile unsigned int*)(0x42CE0024UL)) +#define bFM3_ETHERNET_MAC1_MCR_IPC *((volatile unsigned int*)(0x42CE0028UL)) +#define bFM3_ETHERNET_MAC1_MCR_DM *((volatile unsigned int*)(0x42CE002CUL)) +#define bFM3_ETHERNET_MAC1_MCR_LM *((volatile unsigned int*)(0x42CE0030UL)) +#define bFM3_ETHERNET_MAC1_MCR_DO *((volatile unsigned int*)(0x42CE0034UL)) +#define bFM3_ETHERNET_MAC1_MCR_FES *((volatile unsigned int*)(0x42CE0038UL)) +#define bFM3_ETHERNET_MAC1_MCR_PS *((volatile unsigned int*)(0x42CE003CUL)) +#define bFM3_ETHERNET_MAC1_MCR_DCRS *((volatile unsigned int*)(0x42CE0040UL)) +#define bFM3_ETHERNET_MAC1_MCR_IFG0 *((volatile unsigned int*)(0x42CE0044UL)) +#define bFM3_ETHERNET_MAC1_MCR_IFG1 *((volatile unsigned int*)(0x42CE0048UL)) +#define bFM3_ETHERNET_MAC1_MCR_IFG2 *((volatile unsigned int*)(0x42CE004CUL)) +#define bFM3_ETHERNET_MAC1_MCR_JE *((volatile unsigned int*)(0x42CE0050UL)) +#define bFM3_ETHERNET_MAC1_MCR_BE *((volatile unsigned int*)(0x42CE0054UL)) +#define bFM3_ETHERNET_MAC1_MCR_JD *((volatile unsigned int*)(0x42CE0058UL)) +#define bFM3_ETHERNET_MAC1_MCR_WD *((volatile unsigned int*)(0x42CE005CUL)) +#define bFM3_ETHERNET_MAC1_MCR_TC *((volatile unsigned int*)(0x42CE0060UL)) +#define bFM3_ETHERNET_MAC1_MCR_CST *((volatile unsigned int*)(0x42CE0064UL)) +#define bFM3_ETHERNET_MAC1_MFFR_PR *((volatile unsigned int*)(0x42CE0080UL)) +#define bFM3_ETHERNET_MAC1_MFFR_HUC *((volatile unsigned int*)(0x42CE0084UL)) +#define bFM3_ETHERNET_MAC1_MFFR_HMC *((volatile unsigned int*)(0x42CE0088UL)) +#define bFM3_ETHERNET_MAC1_MFFR_DAIF *((volatile unsigned int*)(0x42CE008CUL)) +#define bFM3_ETHERNET_MAC1_MFFR_PM *((volatile unsigned int*)(0x42CE0090UL)) +#define bFM3_ETHERNET_MAC1_MFFR_DB *((volatile unsigned int*)(0x42CE0094UL)) +#define bFM3_ETHERNET_MAC1_MFFR_PCF0 *((volatile unsigned int*)(0x42CE0098UL)) +#define bFM3_ETHERNET_MAC1_MFFR_PCF1 *((volatile unsigned int*)(0x42CE009CUL)) +#define bFM3_ETHERNET_MAC1_MFFR_SAIF *((volatile unsigned int*)(0x42CE00A0UL)) +#define bFM3_ETHERNET_MAC1_MFFR_SAF *((volatile unsigned int*)(0x42CE00A4UL)) +#define bFM3_ETHERNET_MAC1_MFFR_HPF *((volatile unsigned int*)(0x42CE00A8UL)) +#define bFM3_ETHERNET_MAC1_MFFR_RA *((volatile unsigned int*)(0x42CE00FCUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH0 *((volatile unsigned int*)(0x42CE0100UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH1 *((volatile unsigned int*)(0x42CE0104UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH2 *((volatile unsigned int*)(0x42CE0108UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH3 *((volatile unsigned int*)(0x42CE010CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH4 *((volatile unsigned int*)(0x42CE0110UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH5 *((volatile unsigned int*)(0x42CE0114UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH6 *((volatile unsigned int*)(0x42CE0118UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH7 *((volatile unsigned int*)(0x42CE011CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH8 *((volatile unsigned int*)(0x42CE0120UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH9 *((volatile unsigned int*)(0x42CE0124UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH10 *((volatile unsigned int*)(0x42CE0128UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH11 *((volatile unsigned int*)(0x42CE012CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH12 *((volatile unsigned int*)(0x42CE0130UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH13 *((volatile unsigned int*)(0x42CE0134UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH14 *((volatile unsigned int*)(0x42CE0138UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH15 *((volatile unsigned int*)(0x42CE013CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH16 *((volatile unsigned int*)(0x42CE0140UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH17 *((volatile unsigned int*)(0x42CE0144UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH18 *((volatile unsigned int*)(0x42CE0148UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH19 *((volatile unsigned int*)(0x42CE014CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH20 *((volatile unsigned int*)(0x42CE0150UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH21 *((volatile unsigned int*)(0x42CE0154UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH22 *((volatile unsigned int*)(0x42CE0158UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH23 *((volatile unsigned int*)(0x42CE015CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH24 *((volatile unsigned int*)(0x42CE0160UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH25 *((volatile unsigned int*)(0x42CE0164UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH26 *((volatile unsigned int*)(0x42CE0168UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH27 *((volatile unsigned int*)(0x42CE016CUL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH28 *((volatile unsigned int*)(0x42CE0170UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH29 *((volatile unsigned int*)(0x42CE0174UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH30 *((volatile unsigned int*)(0x42CE0178UL)) +#define bFM3_ETHERNET_MAC1_MHTRH_HTH31 *((volatile unsigned int*)(0x42CE017CUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL0 *((volatile unsigned int*)(0x42CE0180UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL1 *((volatile unsigned int*)(0x42CE0184UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL2 *((volatile unsigned int*)(0x42CE0188UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL3 *((volatile unsigned int*)(0x42CE018CUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL4 *((volatile unsigned int*)(0x42CE0190UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL5 *((volatile unsigned int*)(0x42CE0194UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL6 *((volatile unsigned int*)(0x42CE0198UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL7 *((volatile unsigned int*)(0x42CE019CUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL8 *((volatile unsigned int*)(0x42CE01A0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL9 *((volatile unsigned int*)(0x42CE01A4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL10 *((volatile unsigned int*)(0x42CE01A8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL11 *((volatile unsigned int*)(0x42CE01ACUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL12 *((volatile unsigned int*)(0x42CE01B0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL13 *((volatile unsigned int*)(0x42CE01B4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL14 *((volatile unsigned int*)(0x42CE01B8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL15 *((volatile unsigned int*)(0x42CE01BCUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL16 *((volatile unsigned int*)(0x42CE01C0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL17 *((volatile unsigned int*)(0x42CE01C4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL18 *((volatile unsigned int*)(0x42CE01C8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL19 *((volatile unsigned int*)(0x42CE01CCUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL20 *((volatile unsigned int*)(0x42CE01D0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL21 *((volatile unsigned int*)(0x42CE01D4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL22 *((volatile unsigned int*)(0x42CE01D8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL23 *((volatile unsigned int*)(0x42CE01DCUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL24 *((volatile unsigned int*)(0x42CE01E0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL25 *((volatile unsigned int*)(0x42CE01E4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL26 *((volatile unsigned int*)(0x42CE01E8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL27 *((volatile unsigned int*)(0x42CE01ECUL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL28 *((volatile unsigned int*)(0x42CE01F0UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL29 *((volatile unsigned int*)(0x42CE01F4UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL30 *((volatile unsigned int*)(0x42CE01F8UL)) +#define bFM3_ETHERNET_MAC1_MHTRL_HTL31 *((volatile unsigned int*)(0x42CE01FCUL)) +#define bFM3_ETHERNET_MAC1_GAR_GB *((volatile unsigned int*)(0x42CE0200UL)) +#define bFM3_ETHERNET_MAC1_GAR_GW *((volatile unsigned int*)(0x42CE0204UL)) +#define bFM3_ETHERNET_MAC1_GAR_CR0 *((volatile unsigned int*)(0x42CE0208UL)) +#define bFM3_ETHERNET_MAC1_GAR_CR1 *((volatile unsigned int*)(0x42CE020CUL)) +#define bFM3_ETHERNET_MAC1_GAR_CR2 *((volatile unsigned int*)(0x42CE0210UL)) +#define bFM3_ETHERNET_MAC1_GAR_CR3 *((volatile unsigned int*)(0x42CE0214UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR0 *((volatile unsigned int*)(0x42CE0218UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR1 *((volatile unsigned int*)(0x42CE021CUL)) +#define bFM3_ETHERNET_MAC1_GAR_GR2 *((volatile unsigned int*)(0x42CE0220UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR3 *((volatile unsigned int*)(0x42CE0224UL)) +#define bFM3_ETHERNET_MAC1_GAR_GR4 *((volatile unsigned int*)(0x42CE0228UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA0 *((volatile unsigned int*)(0x42CE022CUL)) +#define bFM3_ETHERNET_MAC1_GAR_PA1 *((volatile unsigned int*)(0x42CE0230UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA2 *((volatile unsigned int*)(0x42CE0234UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA3 *((volatile unsigned int*)(0x42CE0238UL)) +#define bFM3_ETHERNET_MAC1_GAR_PA4 *((volatile unsigned int*)(0x42CE023CUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD0 *((volatile unsigned int*)(0x42CE0280UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD1 *((volatile unsigned int*)(0x42CE0284UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD2 *((volatile unsigned int*)(0x42CE0288UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD3 *((volatile unsigned int*)(0x42CE028CUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD4 *((volatile unsigned int*)(0x42CE0290UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD5 *((volatile unsigned int*)(0x42CE0294UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD6 *((volatile unsigned int*)(0x42CE0298UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD7 *((volatile unsigned int*)(0x42CE029CUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD8 *((volatile unsigned int*)(0x42CE02A0UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD9 *((volatile unsigned int*)(0x42CE02A4UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD10 *((volatile unsigned int*)(0x42CE02A8UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD11 *((volatile unsigned int*)(0x42CE02ACUL)) +#define bFM3_ETHERNET_MAC1_GDR_GD12 *((volatile unsigned int*)(0x42CE02B0UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD13 *((volatile unsigned int*)(0x42CE02B4UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD14 *((volatile unsigned int*)(0x42CE02B8UL)) +#define bFM3_ETHERNET_MAC1_GDR_GD15 *((volatile unsigned int*)(0x42CE02BCUL)) +#define bFM3_ETHERNET_MAC1_FCR_FCB_BPA *((volatile unsigned int*)(0x42CE0300UL)) +#define bFM3_ETHERNET_MAC1_FCR_TFE *((volatile unsigned int*)(0x42CE0304UL)) +#define bFM3_ETHERNET_MAC1_FCR_RFE *((volatile unsigned int*)(0x42CE0308UL)) +#define bFM3_ETHERNET_MAC1_FCR_UP *((volatile unsigned int*)(0x42CE030CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PLT0 *((volatile unsigned int*)(0x42CE0310UL)) +#define bFM3_ETHERNET_MAC1_FCR_PLT1 *((volatile unsigned int*)(0x42CE0314UL)) +#define bFM3_ETHERNET_MAC1_FCR_DZPQ *((volatile unsigned int*)(0x42CE031CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT0 *((volatile unsigned int*)(0x42CE0340UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT1 *((volatile unsigned int*)(0x42CE0344UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT2 *((volatile unsigned int*)(0x42CE0348UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT3 *((volatile unsigned int*)(0x42CE034CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT4 *((volatile unsigned int*)(0x42CE0350UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT5 *((volatile unsigned int*)(0x42CE0354UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT6 *((volatile unsigned int*)(0x42CE0358UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT7 *((volatile unsigned int*)(0x42CE035CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT8 *((volatile unsigned int*)(0x42CE0360UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT9 *((volatile unsigned int*)(0x42CE0364UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT10 *((volatile unsigned int*)(0x42CE0368UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT11 *((volatile unsigned int*)(0x42CE036CUL)) +#define bFM3_ETHERNET_MAC1_FCR_PT12 *((volatile unsigned int*)(0x42CE0370UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT13 *((volatile unsigned int*)(0x42CE0374UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT14 *((volatile unsigned int*)(0x42CE0378UL)) +#define bFM3_ETHERNET_MAC1_FCR_PT15 *((volatile unsigned int*)(0x42CE037CUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL0 *((volatile unsigned int*)(0x42CE0380UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL1 *((volatile unsigned int*)(0x42CE0384UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL2 *((volatile unsigned int*)(0x42CE0388UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL3 *((volatile unsigned int*)(0x42CE038CUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL4 *((volatile unsigned int*)(0x42CE0390UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL5 *((volatile unsigned int*)(0x42CE0394UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL6 *((volatile unsigned int*)(0x42CE0398UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL7 *((volatile unsigned int*)(0x42CE039CUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL8 *((volatile unsigned int*)(0x42CE03A0UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL9 *((volatile unsigned int*)(0x42CE03A4UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL10 *((volatile unsigned int*)(0x42CE03A8UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL11 *((volatile unsigned int*)(0x42CE03ACUL)) +#define bFM3_ETHERNET_MAC1_VTR_VL12 *((volatile unsigned int*)(0x42CE03B0UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL13 *((volatile unsigned int*)(0x42CE03B4UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL14 *((volatile unsigned int*)(0x42CE03B8UL)) +#define bFM3_ETHERNET_MAC1_VTR_VL15 *((volatile unsigned int*)(0x42CE03BCUL)) +#define bFM3_ETHERNET_MAC1_VTR_ETV *((volatile unsigned int*)(0x42CE03C0UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42CE0500UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42CE0504UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42CE0508UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42CE050CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42CE0510UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42CE0514UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42CE0518UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42CE051CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42CE0520UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42CE0524UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42CE0528UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42CE052CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42CE0530UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42CE0534UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42CE0538UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42CE053CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42CE0540UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42CE0544UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42CE0548UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42CE054CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42CE0550UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42CE0554UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42CE0558UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42CE055CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42CE0560UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42CE0564UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42CE0568UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42CE056CUL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42CE0570UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42CE0574UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42CE0578UL)) +#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42CE057CUL)) +#define bFM3_ETHERNET_MAC1_PMTR_PD *((volatile unsigned int*)(0x42CE0580UL)) +#define bFM3_ETHERNET_MAC1_PMTR_MPE *((volatile unsigned int*)(0x42CE0584UL)) +#define bFM3_ETHERNET_MAC1_PMTR_WFE *((volatile unsigned int*)(0x42CE0588UL)) +#define bFM3_ETHERNET_MAC1_PMTR_MPR *((volatile unsigned int*)(0x42CE0594UL)) +#define bFM3_ETHERNET_MAC1_PMTR_WPR *((volatile unsigned int*)(0x42CE0598UL)) +#define bFM3_ETHERNET_MAC1_PMTR_GU *((volatile unsigned int*)(0x42CE05A4UL)) +#define bFM3_ETHERNET_MAC1_PMTR_RWFFRPR *((volatile unsigned int*)(0x42CE05FCUL)) +#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEN *((volatile unsigned int*)(0x42CE0600UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEX *((volatile unsigned int*)(0x42CE0604UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEN *((volatile unsigned int*)(0x42CE0608UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEX *((volatile unsigned int*)(0x42CE060CUL)) +#define bFM3_ETHERNET_MAC1_LPICSR_TLPIST *((volatile unsigned int*)(0x42CE0620UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_RLPIST *((volatile unsigned int*)(0x42CE0624UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_LPIEN *((volatile unsigned int*)(0x42CE0640UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_PLS *((volatile unsigned int*)(0x42CE0644UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_PLSEN *((volatile unsigned int*)(0x42CE0648UL)) +#define bFM3_ETHERNET_MAC1_LPICSR_LPITXA *((volatile unsigned int*)(0x42CE064CUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT0 *((volatile unsigned int*)(0x42CE0680UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT1 *((volatile unsigned int*)(0x42CE0684UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT2 *((volatile unsigned int*)(0x42CE0688UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT3 *((volatile unsigned int*)(0x42CE068CUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT4 *((volatile unsigned int*)(0x42CE0690UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT5 *((volatile unsigned int*)(0x42CE0694UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT6 *((volatile unsigned int*)(0x42CE0698UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT7 *((volatile unsigned int*)(0x42CE069CUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT8 *((volatile unsigned int*)(0x42CE06A0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT9 *((volatile unsigned int*)(0x42CE06A4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT10 *((volatile unsigned int*)(0x42CE06A8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT11 *((volatile unsigned int*)(0x42CE06ACUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT12 *((volatile unsigned int*)(0x42CE06B0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT13 *((volatile unsigned int*)(0x42CE06B4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT14 *((volatile unsigned int*)(0x42CE06B8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_TWT15 *((volatile unsigned int*)(0x42CE06BCUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT0 *((volatile unsigned int*)(0x42CE06C0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT1 *((volatile unsigned int*)(0x42CE06C4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT2 *((volatile unsigned int*)(0x42CE06C8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT3 *((volatile unsigned int*)(0x42CE06CCUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT4 *((volatile unsigned int*)(0x42CE06D0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT5 *((volatile unsigned int*)(0x42CE06D4UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT6 *((volatile unsigned int*)(0x42CE06D8UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT7 *((volatile unsigned int*)(0x42CE06DCUL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT8 *((volatile unsigned int*)(0x42CE06E0UL)) +#define bFM3_ETHERNET_MAC1_LPITCR_LIT9 *((volatile unsigned int*)(0x42CE06E4UL)) +#define bFM3_ETHERNET_MAC1_ISR_RGIS *((volatile unsigned int*)(0x42CE0700UL)) +#define bFM3_ETHERNET_MAC1_ISR_PIS *((volatile unsigned int*)(0x42CE070CUL)) +#define bFM3_ETHERNET_MAC1_ISR_MIS *((volatile unsigned int*)(0x42CE0710UL)) +#define bFM3_ETHERNET_MAC1_ISR_RIS *((volatile unsigned int*)(0x42CE0714UL)) +#define bFM3_ETHERNET_MAC1_ISR_TIS *((volatile unsigned int*)(0x42CE0718UL)) +#define bFM3_ETHERNET_MAC1_ISR_COIS *((volatile unsigned int*)(0x42CE071CUL)) +#define bFM3_ETHERNET_MAC1_ISR_TSIS *((volatile unsigned int*)(0x42CE0724UL)) +#define bFM3_ETHERNET_MAC1_ISR_LPIIS *((volatile unsigned int*)(0x42CE0728UL)) +#define bFM3_ETHERNET_MAC1_IMR_RGIM *((volatile unsigned int*)(0x42CE0780UL)) +#define bFM3_ETHERNET_MAC1_IMR_PIM *((volatile unsigned int*)(0x42CE078CUL)) +#define bFM3_ETHERNET_MAC1_IMR_TSIM *((volatile unsigned int*)(0x42CE0794UL)) +#define bFM3_ETHERNET_MAC1_IMR_LPIIM *((volatile unsigned int*)(0x42CE0798UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A32 *((volatile unsigned int*)(0x42CE0800UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A33 *((volatile unsigned int*)(0x42CE0804UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A34 *((volatile unsigned int*)(0x42CE0808UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A35 *((volatile unsigned int*)(0x42CE080CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A36 *((volatile unsigned int*)(0x42CE0810UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A37 *((volatile unsigned int*)(0x42CE0814UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A38 *((volatile unsigned int*)(0x42CE0818UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A39 *((volatile unsigned int*)(0x42CE081CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A40 *((volatile unsigned int*)(0x42CE0820UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A41 *((volatile unsigned int*)(0x42CE0824UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A42 *((volatile unsigned int*)(0x42CE0828UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A43 *((volatile unsigned int*)(0x42CE082CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A44 *((volatile unsigned int*)(0x42CE0830UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A45 *((volatile unsigned int*)(0x42CE0834UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A46 *((volatile unsigned int*)(0x42CE0838UL)) +#define bFM3_ETHERNET_MAC1_MAR0H_A47 *((volatile unsigned int*)(0x42CE083CUL)) +#define bFM3_ETHERNET_MAC1_MAR0H_MO *((volatile unsigned int*)(0x42CE087CUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A0 *((volatile unsigned int*)(0x42CE0880UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A1 *((volatile unsigned int*)(0x42CE0884UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A2 *((volatile unsigned int*)(0x42CE0888UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A3 *((volatile unsigned int*)(0x42CE088CUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A4 *((volatile unsigned int*)(0x42CE0890UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A5 *((volatile unsigned int*)(0x42CE0894UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A6 *((volatile unsigned int*)(0x42CE0898UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A7 *((volatile unsigned int*)(0x42CE089CUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A8 *((volatile unsigned int*)(0x42CE08A0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A9 *((volatile unsigned int*)(0x42CE08A4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A10 *((volatile unsigned int*)(0x42CE08A8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A11 *((volatile unsigned int*)(0x42CE08ACUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A12 *((volatile unsigned int*)(0x42CE08B0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A13 *((volatile unsigned int*)(0x42CE08B4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A14 *((volatile unsigned int*)(0x42CE08B8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A15 *((volatile unsigned int*)(0x42CE08BCUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A16 *((volatile unsigned int*)(0x42CE08C0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A17 *((volatile unsigned int*)(0x42CE08C4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A18 *((volatile unsigned int*)(0x42CE08C8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A19 *((volatile unsigned int*)(0x42CE08CCUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A20 *((volatile unsigned int*)(0x42CE08D0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A21 *((volatile unsigned int*)(0x42CE08D4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A22 *((volatile unsigned int*)(0x42CE08D8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A23 *((volatile unsigned int*)(0x42CE08DCUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A24 *((volatile unsigned int*)(0x42CE08E0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A25 *((volatile unsigned int*)(0x42CE08E4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A26 *((volatile unsigned int*)(0x42CE08E8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A27 *((volatile unsigned int*)(0x42CE08ECUL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A28 *((volatile unsigned int*)(0x42CE08F0UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A29 *((volatile unsigned int*)(0x42CE08F4UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A30 *((volatile unsigned int*)(0x42CE08F8UL)) +#define bFM3_ETHERNET_MAC1_MAR0L_A31 *((volatile unsigned int*)(0x42CE08FCUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A32 *((volatile unsigned int*)(0x42CE0900UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A33 *((volatile unsigned int*)(0x42CE0904UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A34 *((volatile unsigned int*)(0x42CE0908UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A35 *((volatile unsigned int*)(0x42CE090CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A36 *((volatile unsigned int*)(0x42CE0910UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A37 *((volatile unsigned int*)(0x42CE0914UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A38 *((volatile unsigned int*)(0x42CE0918UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A39 *((volatile unsigned int*)(0x42CE091CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A40 *((volatile unsigned int*)(0x42CE0920UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A41 *((volatile unsigned int*)(0x42CE0924UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A42 *((volatile unsigned int*)(0x42CE0928UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A43 *((volatile unsigned int*)(0x42CE092CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A44 *((volatile unsigned int*)(0x42CE0930UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A45 *((volatile unsigned int*)(0x42CE0934UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A46 *((volatile unsigned int*)(0x42CE0938UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_A47 *((volatile unsigned int*)(0x42CE093CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC0 *((volatile unsigned int*)(0x42CE0960UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC1 *((volatile unsigned int*)(0x42CE0964UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC2 *((volatile unsigned int*)(0x42CE0968UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC3 *((volatile unsigned int*)(0x42CE096CUL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC4 *((volatile unsigned int*)(0x42CE0970UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_MBC5 *((volatile unsigned int*)(0x42CE0974UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_SA *((volatile unsigned int*)(0x42CE0978UL)) +#define bFM3_ETHERNET_MAC1_MAR1H_AE *((volatile unsigned int*)(0x42CE097CUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A0 *((volatile unsigned int*)(0x42CE0980UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A1 *((volatile unsigned int*)(0x42CE0984UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A2 *((volatile unsigned int*)(0x42CE0988UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A3 *((volatile unsigned int*)(0x42CE098CUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A4 *((volatile unsigned int*)(0x42CE0990UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A5 *((volatile unsigned int*)(0x42CE0994UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A6 *((volatile unsigned int*)(0x42CE0998UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A7 *((volatile unsigned int*)(0x42CE099CUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A8 *((volatile unsigned int*)(0x42CE09A0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A9 *((volatile unsigned int*)(0x42CE09A4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A10 *((volatile unsigned int*)(0x42CE09A8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A11 *((volatile unsigned int*)(0x42CE09ACUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A12 *((volatile unsigned int*)(0x42CE09B0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A13 *((volatile unsigned int*)(0x42CE09B4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A14 *((volatile unsigned int*)(0x42CE09B8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A15 *((volatile unsigned int*)(0x42CE09BCUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A16 *((volatile unsigned int*)(0x42CE09C0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A17 *((volatile unsigned int*)(0x42CE09C4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A18 *((volatile unsigned int*)(0x42CE09C8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A19 *((volatile unsigned int*)(0x42CE09CCUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A20 *((volatile unsigned int*)(0x42CE09D0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A21 *((volatile unsigned int*)(0x42CE09D4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A22 *((volatile unsigned int*)(0x42CE09D8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A23 *((volatile unsigned int*)(0x42CE09DCUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A24 *((volatile unsigned int*)(0x42CE09E0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A25 *((volatile unsigned int*)(0x42CE09E4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A26 *((volatile unsigned int*)(0x42CE09E8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A27 *((volatile unsigned int*)(0x42CE09ECUL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A28 *((volatile unsigned int*)(0x42CE09F0UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A29 *((volatile unsigned int*)(0x42CE09F4UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A30 *((volatile unsigned int*)(0x42CE09F8UL)) +#define bFM3_ETHERNET_MAC1_MAR1L_A31 *((volatile unsigned int*)(0x42CE09FCUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A32 *((volatile unsigned int*)(0x42CE0A00UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A33 *((volatile unsigned int*)(0x42CE0A04UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A34 *((volatile unsigned int*)(0x42CE0A08UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A35 *((volatile unsigned int*)(0x42CE0A0CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A36 *((volatile unsigned int*)(0x42CE0A10UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A37 *((volatile unsigned int*)(0x42CE0A14UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A38 *((volatile unsigned int*)(0x42CE0A18UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A39 *((volatile unsigned int*)(0x42CE0A1CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A40 *((volatile unsigned int*)(0x42CE0A20UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A41 *((volatile unsigned int*)(0x42CE0A24UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A42 *((volatile unsigned int*)(0x42CE0A28UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A43 *((volatile unsigned int*)(0x42CE0A2CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A44 *((volatile unsigned int*)(0x42CE0A30UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A45 *((volatile unsigned int*)(0x42CE0A34UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A46 *((volatile unsigned int*)(0x42CE0A38UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_A47 *((volatile unsigned int*)(0x42CE0A3CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC0 *((volatile unsigned int*)(0x42CE0A60UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC1 *((volatile unsigned int*)(0x42CE0A64UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC2 *((volatile unsigned int*)(0x42CE0A68UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC3 *((volatile unsigned int*)(0x42CE0A6CUL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC4 *((volatile unsigned int*)(0x42CE0A70UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_MBC5 *((volatile unsigned int*)(0x42CE0A74UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_SA *((volatile unsigned int*)(0x42CE0A78UL)) +#define bFM3_ETHERNET_MAC1_MAR2H_AE *((volatile unsigned int*)(0x42CE0A7CUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A0 *((volatile unsigned int*)(0x42CE0A80UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A1 *((volatile unsigned int*)(0x42CE0A84UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A2 *((volatile unsigned int*)(0x42CE0A88UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A3 *((volatile unsigned int*)(0x42CE0A8CUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A4 *((volatile unsigned int*)(0x42CE0A90UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A5 *((volatile unsigned int*)(0x42CE0A94UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A6 *((volatile unsigned int*)(0x42CE0A98UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A7 *((volatile unsigned int*)(0x42CE0A9CUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A8 *((volatile unsigned int*)(0x42CE0AA0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A9 *((volatile unsigned int*)(0x42CE0AA4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A10 *((volatile unsigned int*)(0x42CE0AA8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A11 *((volatile unsigned int*)(0x42CE0AACUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A12 *((volatile unsigned int*)(0x42CE0AB0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A13 *((volatile unsigned int*)(0x42CE0AB4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A14 *((volatile unsigned int*)(0x42CE0AB8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A15 *((volatile unsigned int*)(0x42CE0ABCUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A16 *((volatile unsigned int*)(0x42CE0AC0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A17 *((volatile unsigned int*)(0x42CE0AC4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A18 *((volatile unsigned int*)(0x42CE0AC8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A19 *((volatile unsigned int*)(0x42CE0ACCUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A20 *((volatile unsigned int*)(0x42CE0AD0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A21 *((volatile unsigned int*)(0x42CE0AD4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A22 *((volatile unsigned int*)(0x42CE0AD8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A23 *((volatile unsigned int*)(0x42CE0ADCUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A24 *((volatile unsigned int*)(0x42CE0AE0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A25 *((volatile unsigned int*)(0x42CE0AE4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A26 *((volatile unsigned int*)(0x42CE0AE8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A27 *((volatile unsigned int*)(0x42CE0AECUL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A28 *((volatile unsigned int*)(0x42CE0AF0UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A29 *((volatile unsigned int*)(0x42CE0AF4UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A30 *((volatile unsigned int*)(0x42CE0AF8UL)) +#define bFM3_ETHERNET_MAC1_MAR2L_A31 *((volatile unsigned int*)(0x42CE0AFCUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A32 *((volatile unsigned int*)(0x42CE0B00UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A33 *((volatile unsigned int*)(0x42CE0B04UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A34 *((volatile unsigned int*)(0x42CE0B08UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A35 *((volatile unsigned int*)(0x42CE0B0CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A36 *((volatile unsigned int*)(0x42CE0B10UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A37 *((volatile unsigned int*)(0x42CE0B14UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A38 *((volatile unsigned int*)(0x42CE0B18UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A39 *((volatile unsigned int*)(0x42CE0B1CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A40 *((volatile unsigned int*)(0x42CE0B20UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A41 *((volatile unsigned int*)(0x42CE0B24UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A42 *((volatile unsigned int*)(0x42CE0B28UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A43 *((volatile unsigned int*)(0x42CE0B2CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A44 *((volatile unsigned int*)(0x42CE0B30UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A45 *((volatile unsigned int*)(0x42CE0B34UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A46 *((volatile unsigned int*)(0x42CE0B38UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_A47 *((volatile unsigned int*)(0x42CE0B3CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC0 *((volatile unsigned int*)(0x42CE0B60UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC1 *((volatile unsigned int*)(0x42CE0B64UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC2 *((volatile unsigned int*)(0x42CE0B68UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC3 *((volatile unsigned int*)(0x42CE0B6CUL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC4 *((volatile unsigned int*)(0x42CE0B70UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_MBC5 *((volatile unsigned int*)(0x42CE0B74UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_SA *((volatile unsigned int*)(0x42CE0B78UL)) +#define bFM3_ETHERNET_MAC1_MAR3H_AE *((volatile unsigned int*)(0x42CE0B7CUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A0 *((volatile unsigned int*)(0x42CE0B80UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A1 *((volatile unsigned int*)(0x42CE0B84UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A2 *((volatile unsigned int*)(0x42CE0B88UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A3 *((volatile unsigned int*)(0x42CE0B8CUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A4 *((volatile unsigned int*)(0x42CE0B90UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A5 *((volatile unsigned int*)(0x42CE0B94UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A6 *((volatile unsigned int*)(0x42CE0B98UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A7 *((volatile unsigned int*)(0x42CE0B9CUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A8 *((volatile unsigned int*)(0x42CE0BA0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A9 *((volatile unsigned int*)(0x42CE0BA4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A10 *((volatile unsigned int*)(0x42CE0BA8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A11 *((volatile unsigned int*)(0x42CE0BACUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A12 *((volatile unsigned int*)(0x42CE0BB0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A13 *((volatile unsigned int*)(0x42CE0BB4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A14 *((volatile unsigned int*)(0x42CE0BB8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A15 *((volatile unsigned int*)(0x42CE0BBCUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A16 *((volatile unsigned int*)(0x42CE0BC0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A17 *((volatile unsigned int*)(0x42CE0BC4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A18 *((volatile unsigned int*)(0x42CE0BC8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A19 *((volatile unsigned int*)(0x42CE0BCCUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A20 *((volatile unsigned int*)(0x42CE0BD0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A21 *((volatile unsigned int*)(0x42CE0BD4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A22 *((volatile unsigned int*)(0x42CE0BD8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A23 *((volatile unsigned int*)(0x42CE0BDCUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A24 *((volatile unsigned int*)(0x42CE0BE0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A25 *((volatile unsigned int*)(0x42CE0BE4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A26 *((volatile unsigned int*)(0x42CE0BE8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A27 *((volatile unsigned int*)(0x42CE0BECUL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A28 *((volatile unsigned int*)(0x42CE0BF0UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A29 *((volatile unsigned int*)(0x42CE0BF4UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A30 *((volatile unsigned int*)(0x42CE0BF8UL)) +#define bFM3_ETHERNET_MAC1_MAR3L_A31 *((volatile unsigned int*)(0x42CE0BFCUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A32 *((volatile unsigned int*)(0x42CE0C00UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A33 *((volatile unsigned int*)(0x42CE0C04UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A34 *((volatile unsigned int*)(0x42CE0C08UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A35 *((volatile unsigned int*)(0x42CE0C0CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A36 *((volatile unsigned int*)(0x42CE0C10UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A37 *((volatile unsigned int*)(0x42CE0C14UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A38 *((volatile unsigned int*)(0x42CE0C18UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A39 *((volatile unsigned int*)(0x42CE0C1CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A40 *((volatile unsigned int*)(0x42CE0C20UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A41 *((volatile unsigned int*)(0x42CE0C24UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A42 *((volatile unsigned int*)(0x42CE0C28UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A43 *((volatile unsigned int*)(0x42CE0C2CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A44 *((volatile unsigned int*)(0x42CE0C30UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A45 *((volatile unsigned int*)(0x42CE0C34UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A46 *((volatile unsigned int*)(0x42CE0C38UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_A47 *((volatile unsigned int*)(0x42CE0C3CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC0 *((volatile unsigned int*)(0x42CE0C60UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC1 *((volatile unsigned int*)(0x42CE0C64UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC2 *((volatile unsigned int*)(0x42CE0C68UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC3 *((volatile unsigned int*)(0x42CE0C6CUL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC4 *((volatile unsigned int*)(0x42CE0C70UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_MBC5 *((volatile unsigned int*)(0x42CE0C74UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_SA *((volatile unsigned int*)(0x42CE0C78UL)) +#define bFM3_ETHERNET_MAC1_MAR4H_AE *((volatile unsigned int*)(0x42CE0C7CUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A0 *((volatile unsigned int*)(0x42CE0C80UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A1 *((volatile unsigned int*)(0x42CE0C84UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A2 *((volatile unsigned int*)(0x42CE0C88UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A3 *((volatile unsigned int*)(0x42CE0C8CUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A4 *((volatile unsigned int*)(0x42CE0C90UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A5 *((volatile unsigned int*)(0x42CE0C94UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A6 *((volatile unsigned int*)(0x42CE0C98UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A7 *((volatile unsigned int*)(0x42CE0C9CUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A8 *((volatile unsigned int*)(0x42CE0CA0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A9 *((volatile unsigned int*)(0x42CE0CA4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A10 *((volatile unsigned int*)(0x42CE0CA8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A11 *((volatile unsigned int*)(0x42CE0CACUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A12 *((volatile unsigned int*)(0x42CE0CB0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A13 *((volatile unsigned int*)(0x42CE0CB4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A14 *((volatile unsigned int*)(0x42CE0CB8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A15 *((volatile unsigned int*)(0x42CE0CBCUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A16 *((volatile unsigned int*)(0x42CE0CC0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A17 *((volatile unsigned int*)(0x42CE0CC4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A18 *((volatile unsigned int*)(0x42CE0CC8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A19 *((volatile unsigned int*)(0x42CE0CCCUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A20 *((volatile unsigned int*)(0x42CE0CD0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A21 *((volatile unsigned int*)(0x42CE0CD4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A22 *((volatile unsigned int*)(0x42CE0CD8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A23 *((volatile unsigned int*)(0x42CE0CDCUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A24 *((volatile unsigned int*)(0x42CE0CE0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A25 *((volatile unsigned int*)(0x42CE0CE4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A26 *((volatile unsigned int*)(0x42CE0CE8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A27 *((volatile unsigned int*)(0x42CE0CECUL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A28 *((volatile unsigned int*)(0x42CE0CF0UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A29 *((volatile unsigned int*)(0x42CE0CF4UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A30 *((volatile unsigned int*)(0x42CE0CF8UL)) +#define bFM3_ETHERNET_MAC1_MAR4L_A31 *((volatile unsigned int*)(0x42CE0CFCUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A32 *((volatile unsigned int*)(0x42CE0D00UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A33 *((volatile unsigned int*)(0x42CE0D04UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A34 *((volatile unsigned int*)(0x42CE0D08UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A35 *((volatile unsigned int*)(0x42CE0D0CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A36 *((volatile unsigned int*)(0x42CE0D10UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A37 *((volatile unsigned int*)(0x42CE0D14UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A38 *((volatile unsigned int*)(0x42CE0D18UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A39 *((volatile unsigned int*)(0x42CE0D1CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A40 *((volatile unsigned int*)(0x42CE0D20UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A41 *((volatile unsigned int*)(0x42CE0D24UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A42 *((volatile unsigned int*)(0x42CE0D28UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A43 *((volatile unsigned int*)(0x42CE0D2CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A44 *((volatile unsigned int*)(0x42CE0D30UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A45 *((volatile unsigned int*)(0x42CE0D34UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A46 *((volatile unsigned int*)(0x42CE0D38UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_A47 *((volatile unsigned int*)(0x42CE0D3CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC0 *((volatile unsigned int*)(0x42CE0D60UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC1 *((volatile unsigned int*)(0x42CE0D64UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC2 *((volatile unsigned int*)(0x42CE0D68UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC3 *((volatile unsigned int*)(0x42CE0D6CUL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC4 *((volatile unsigned int*)(0x42CE0D70UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_MBC5 *((volatile unsigned int*)(0x42CE0D74UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_SA *((volatile unsigned int*)(0x42CE0D78UL)) +#define bFM3_ETHERNET_MAC1_MAR5H_AE *((volatile unsigned int*)(0x42CE0D7CUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A0 *((volatile unsigned int*)(0x42CE0D80UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A1 *((volatile unsigned int*)(0x42CE0D84UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A2 *((volatile unsigned int*)(0x42CE0D88UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A3 *((volatile unsigned int*)(0x42CE0D8CUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A4 *((volatile unsigned int*)(0x42CE0D90UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A5 *((volatile unsigned int*)(0x42CE0D94UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A6 *((volatile unsigned int*)(0x42CE0D98UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A7 *((volatile unsigned int*)(0x42CE0D9CUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A8 *((volatile unsigned int*)(0x42CE0DA0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A9 *((volatile unsigned int*)(0x42CE0DA4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A10 *((volatile unsigned int*)(0x42CE0DA8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A11 *((volatile unsigned int*)(0x42CE0DACUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A12 *((volatile unsigned int*)(0x42CE0DB0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A13 *((volatile unsigned int*)(0x42CE0DB4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A14 *((volatile unsigned int*)(0x42CE0DB8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A15 *((volatile unsigned int*)(0x42CE0DBCUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A16 *((volatile unsigned int*)(0x42CE0DC0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A17 *((volatile unsigned int*)(0x42CE0DC4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A18 *((volatile unsigned int*)(0x42CE0DC8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A19 *((volatile unsigned int*)(0x42CE0DCCUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A20 *((volatile unsigned int*)(0x42CE0DD0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A21 *((volatile unsigned int*)(0x42CE0DD4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A22 *((volatile unsigned int*)(0x42CE0DD8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A23 *((volatile unsigned int*)(0x42CE0DDCUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A24 *((volatile unsigned int*)(0x42CE0DE0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A25 *((volatile unsigned int*)(0x42CE0DE4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A26 *((volatile unsigned int*)(0x42CE0DE8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A27 *((volatile unsigned int*)(0x42CE0DECUL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A28 *((volatile unsigned int*)(0x42CE0DF0UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A29 *((volatile unsigned int*)(0x42CE0DF4UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A30 *((volatile unsigned int*)(0x42CE0DF8UL)) +#define bFM3_ETHERNET_MAC1_MAR5L_A31 *((volatile unsigned int*)(0x42CE0DFCUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A32 *((volatile unsigned int*)(0x42CE0E00UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A33 *((volatile unsigned int*)(0x42CE0E04UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A34 *((volatile unsigned int*)(0x42CE0E08UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A35 *((volatile unsigned int*)(0x42CE0E0CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A36 *((volatile unsigned int*)(0x42CE0E10UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A37 *((volatile unsigned int*)(0x42CE0E14UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A38 *((volatile unsigned int*)(0x42CE0E18UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A39 *((volatile unsigned int*)(0x42CE0E1CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A40 *((volatile unsigned int*)(0x42CE0E20UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A41 *((volatile unsigned int*)(0x42CE0E24UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A42 *((volatile unsigned int*)(0x42CE0E28UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A43 *((volatile unsigned int*)(0x42CE0E2CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A44 *((volatile unsigned int*)(0x42CE0E30UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A45 *((volatile unsigned int*)(0x42CE0E34UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A46 *((volatile unsigned int*)(0x42CE0E38UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_A47 *((volatile unsigned int*)(0x42CE0E3CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC0 *((volatile unsigned int*)(0x42CE0E60UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC1 *((volatile unsigned int*)(0x42CE0E64UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC2 *((volatile unsigned int*)(0x42CE0E68UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC3 *((volatile unsigned int*)(0x42CE0E6CUL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC4 *((volatile unsigned int*)(0x42CE0E70UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_MBC5 *((volatile unsigned int*)(0x42CE0E74UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_SA *((volatile unsigned int*)(0x42CE0E78UL)) +#define bFM3_ETHERNET_MAC1_MAR6H_AE *((volatile unsigned int*)(0x42CE0E7CUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A0 *((volatile unsigned int*)(0x42CE0E80UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A1 *((volatile unsigned int*)(0x42CE0E84UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A2 *((volatile unsigned int*)(0x42CE0E88UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A3 *((volatile unsigned int*)(0x42CE0E8CUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A4 *((volatile unsigned int*)(0x42CE0E90UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A5 *((volatile unsigned int*)(0x42CE0E94UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A6 *((volatile unsigned int*)(0x42CE0E98UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A7 *((volatile unsigned int*)(0x42CE0E9CUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A8 *((volatile unsigned int*)(0x42CE0EA0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A9 *((volatile unsigned int*)(0x42CE0EA4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A10 *((volatile unsigned int*)(0x42CE0EA8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A11 *((volatile unsigned int*)(0x42CE0EACUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A12 *((volatile unsigned int*)(0x42CE0EB0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A13 *((volatile unsigned int*)(0x42CE0EB4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A14 *((volatile unsigned int*)(0x42CE0EB8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A15 *((volatile unsigned int*)(0x42CE0EBCUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A16 *((volatile unsigned int*)(0x42CE0EC0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A17 *((volatile unsigned int*)(0x42CE0EC4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A18 *((volatile unsigned int*)(0x42CE0EC8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A19 *((volatile unsigned int*)(0x42CE0ECCUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A20 *((volatile unsigned int*)(0x42CE0ED0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A21 *((volatile unsigned int*)(0x42CE0ED4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A22 *((volatile unsigned int*)(0x42CE0ED8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A23 *((volatile unsigned int*)(0x42CE0EDCUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A24 *((volatile unsigned int*)(0x42CE0EE0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A25 *((volatile unsigned int*)(0x42CE0EE4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A26 *((volatile unsigned int*)(0x42CE0EE8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A27 *((volatile unsigned int*)(0x42CE0EECUL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A28 *((volatile unsigned int*)(0x42CE0EF0UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A29 *((volatile unsigned int*)(0x42CE0EF4UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A30 *((volatile unsigned int*)(0x42CE0EF8UL)) +#define bFM3_ETHERNET_MAC1_MAR6L_A31 *((volatile unsigned int*)(0x42CE0EFCUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A32 *((volatile unsigned int*)(0x42CE0F00UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A33 *((volatile unsigned int*)(0x42CE0F04UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A34 *((volatile unsigned int*)(0x42CE0F08UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A35 *((volatile unsigned int*)(0x42CE0F0CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A36 *((volatile unsigned int*)(0x42CE0F10UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A37 *((volatile unsigned int*)(0x42CE0F14UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A38 *((volatile unsigned int*)(0x42CE0F18UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A39 *((volatile unsigned int*)(0x42CE0F1CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A40 *((volatile unsigned int*)(0x42CE0F20UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A41 *((volatile unsigned int*)(0x42CE0F24UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A42 *((volatile unsigned int*)(0x42CE0F28UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A43 *((volatile unsigned int*)(0x42CE0F2CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A44 *((volatile unsigned int*)(0x42CE0F30UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A45 *((volatile unsigned int*)(0x42CE0F34UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A46 *((volatile unsigned int*)(0x42CE0F38UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_A47 *((volatile unsigned int*)(0x42CE0F3CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC0 *((volatile unsigned int*)(0x42CE0F60UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC1 *((volatile unsigned int*)(0x42CE0F64UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC2 *((volatile unsigned int*)(0x42CE0F68UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC3 *((volatile unsigned int*)(0x42CE0F6CUL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC4 *((volatile unsigned int*)(0x42CE0F70UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_MBC5 *((volatile unsigned int*)(0x42CE0F74UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_SA *((volatile unsigned int*)(0x42CE0F78UL)) +#define bFM3_ETHERNET_MAC1_MAR7H_AE *((volatile unsigned int*)(0x42CE0F7CUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A0 *((volatile unsigned int*)(0x42CE0F80UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A1 *((volatile unsigned int*)(0x42CE0F84UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A2 *((volatile unsigned int*)(0x42CE0F88UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A3 *((volatile unsigned int*)(0x42CE0F8CUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A4 *((volatile unsigned int*)(0x42CE0F90UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A5 *((volatile unsigned int*)(0x42CE0F94UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A6 *((volatile unsigned int*)(0x42CE0F98UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A7 *((volatile unsigned int*)(0x42CE0F9CUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A8 *((volatile unsigned int*)(0x42CE0FA0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A9 *((volatile unsigned int*)(0x42CE0FA4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A10 *((volatile unsigned int*)(0x42CE0FA8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A11 *((volatile unsigned int*)(0x42CE0FACUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A12 *((volatile unsigned int*)(0x42CE0FB0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A13 *((volatile unsigned int*)(0x42CE0FB4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A14 *((volatile unsigned int*)(0x42CE0FB8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A15 *((volatile unsigned int*)(0x42CE0FBCUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A16 *((volatile unsigned int*)(0x42CE0FC0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A17 *((volatile unsigned int*)(0x42CE0FC4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A18 *((volatile unsigned int*)(0x42CE0FC8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A19 *((volatile unsigned int*)(0x42CE0FCCUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A20 *((volatile unsigned int*)(0x42CE0FD0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A21 *((volatile unsigned int*)(0x42CE0FD4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A22 *((volatile unsigned int*)(0x42CE0FD8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A23 *((volatile unsigned int*)(0x42CE0FDCUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A24 *((volatile unsigned int*)(0x42CE0FE0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A25 *((volatile unsigned int*)(0x42CE0FE4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A26 *((volatile unsigned int*)(0x42CE0FE8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A27 *((volatile unsigned int*)(0x42CE0FECUL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A28 *((volatile unsigned int*)(0x42CE0FF0UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A29 *((volatile unsigned int*)(0x42CE0FF4UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A30 *((volatile unsigned int*)(0x42CE0FF8UL)) +#define bFM3_ETHERNET_MAC1_MAR7L_A31 *((volatile unsigned int*)(0x42CE0FFCUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A32 *((volatile unsigned int*)(0x42CE1000UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A33 *((volatile unsigned int*)(0x42CE1004UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A34 *((volatile unsigned int*)(0x42CE1008UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A35 *((volatile unsigned int*)(0x42CE100CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A36 *((volatile unsigned int*)(0x42CE1010UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A37 *((volatile unsigned int*)(0x42CE1014UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A38 *((volatile unsigned int*)(0x42CE1018UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A39 *((volatile unsigned int*)(0x42CE101CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A40 *((volatile unsigned int*)(0x42CE1020UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A41 *((volatile unsigned int*)(0x42CE1024UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A42 *((volatile unsigned int*)(0x42CE1028UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A43 *((volatile unsigned int*)(0x42CE102CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A44 *((volatile unsigned int*)(0x42CE1030UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A45 *((volatile unsigned int*)(0x42CE1034UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A46 *((volatile unsigned int*)(0x42CE1038UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_A47 *((volatile unsigned int*)(0x42CE103CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC0 *((volatile unsigned int*)(0x42CE1060UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC1 *((volatile unsigned int*)(0x42CE1064UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC2 *((volatile unsigned int*)(0x42CE1068UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC3 *((volatile unsigned int*)(0x42CE106CUL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC4 *((volatile unsigned int*)(0x42CE1070UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_MBC5 *((volatile unsigned int*)(0x42CE1074UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_SA *((volatile unsigned int*)(0x42CE1078UL)) +#define bFM3_ETHERNET_MAC1_MAR8H_AE *((volatile unsigned int*)(0x42CE107CUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A0 *((volatile unsigned int*)(0x42CE1080UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A1 *((volatile unsigned int*)(0x42CE1084UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A2 *((volatile unsigned int*)(0x42CE1088UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A3 *((volatile unsigned int*)(0x42CE108CUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A4 *((volatile unsigned int*)(0x42CE1090UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A5 *((volatile unsigned int*)(0x42CE1094UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A6 *((volatile unsigned int*)(0x42CE1098UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A7 *((volatile unsigned int*)(0x42CE109CUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A8 *((volatile unsigned int*)(0x42CE10A0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A9 *((volatile unsigned int*)(0x42CE10A4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A10 *((volatile unsigned int*)(0x42CE10A8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A11 *((volatile unsigned int*)(0x42CE10ACUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A12 *((volatile unsigned int*)(0x42CE10B0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A13 *((volatile unsigned int*)(0x42CE10B4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A14 *((volatile unsigned int*)(0x42CE10B8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A15 *((volatile unsigned int*)(0x42CE10BCUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A16 *((volatile unsigned int*)(0x42CE10C0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A17 *((volatile unsigned int*)(0x42CE10C4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A18 *((volatile unsigned int*)(0x42CE10C8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A19 *((volatile unsigned int*)(0x42CE10CCUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A20 *((volatile unsigned int*)(0x42CE10D0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A21 *((volatile unsigned int*)(0x42CE10D4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A22 *((volatile unsigned int*)(0x42CE10D8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A23 *((volatile unsigned int*)(0x42CE10DCUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A24 *((volatile unsigned int*)(0x42CE10E0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A25 *((volatile unsigned int*)(0x42CE10E4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A26 *((volatile unsigned int*)(0x42CE10E8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A27 *((volatile unsigned int*)(0x42CE10ECUL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A28 *((volatile unsigned int*)(0x42CE10F0UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A29 *((volatile unsigned int*)(0x42CE10F4UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A30 *((volatile unsigned int*)(0x42CE10F8UL)) +#define bFM3_ETHERNET_MAC1_MAR8L_A31 *((volatile unsigned int*)(0x42CE10FCUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A32 *((volatile unsigned int*)(0x42CE1100UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A33 *((volatile unsigned int*)(0x42CE1104UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A34 *((volatile unsigned int*)(0x42CE1108UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A35 *((volatile unsigned int*)(0x42CE110CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A36 *((volatile unsigned int*)(0x42CE1110UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A37 *((volatile unsigned int*)(0x42CE1114UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A38 *((volatile unsigned int*)(0x42CE1118UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A39 *((volatile unsigned int*)(0x42CE111CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A40 *((volatile unsigned int*)(0x42CE1120UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A41 *((volatile unsigned int*)(0x42CE1124UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A42 *((volatile unsigned int*)(0x42CE1128UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A43 *((volatile unsigned int*)(0x42CE112CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A44 *((volatile unsigned int*)(0x42CE1130UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A45 *((volatile unsigned int*)(0x42CE1134UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A46 *((volatile unsigned int*)(0x42CE1138UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_A47 *((volatile unsigned int*)(0x42CE113CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC0 *((volatile unsigned int*)(0x42CE1160UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC1 *((volatile unsigned int*)(0x42CE1164UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC2 *((volatile unsigned int*)(0x42CE1168UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC3 *((volatile unsigned int*)(0x42CE116CUL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC4 *((volatile unsigned int*)(0x42CE1170UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_MBC5 *((volatile unsigned int*)(0x42CE1174UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_SA *((volatile unsigned int*)(0x42CE1178UL)) +#define bFM3_ETHERNET_MAC1_MAR9H_AE *((volatile unsigned int*)(0x42CE117CUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A0 *((volatile unsigned int*)(0x42CE1180UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A1 *((volatile unsigned int*)(0x42CE1184UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A2 *((volatile unsigned int*)(0x42CE1188UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A3 *((volatile unsigned int*)(0x42CE118CUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A4 *((volatile unsigned int*)(0x42CE1190UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A5 *((volatile unsigned int*)(0x42CE1194UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A6 *((volatile unsigned int*)(0x42CE1198UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A7 *((volatile unsigned int*)(0x42CE119CUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A8 *((volatile unsigned int*)(0x42CE11A0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A9 *((volatile unsigned int*)(0x42CE11A4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A10 *((volatile unsigned int*)(0x42CE11A8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A11 *((volatile unsigned int*)(0x42CE11ACUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A12 *((volatile unsigned int*)(0x42CE11B0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A13 *((volatile unsigned int*)(0x42CE11B4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A14 *((volatile unsigned int*)(0x42CE11B8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A15 *((volatile unsigned int*)(0x42CE11BCUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A16 *((volatile unsigned int*)(0x42CE11C0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A17 *((volatile unsigned int*)(0x42CE11C4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A18 *((volatile unsigned int*)(0x42CE11C8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A19 *((volatile unsigned int*)(0x42CE11CCUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A20 *((volatile unsigned int*)(0x42CE11D0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A21 *((volatile unsigned int*)(0x42CE11D4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A22 *((volatile unsigned int*)(0x42CE11D8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A23 *((volatile unsigned int*)(0x42CE11DCUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A24 *((volatile unsigned int*)(0x42CE11E0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A25 *((volatile unsigned int*)(0x42CE11E4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A26 *((volatile unsigned int*)(0x42CE11E8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A27 *((volatile unsigned int*)(0x42CE11ECUL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A28 *((volatile unsigned int*)(0x42CE11F0UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A29 *((volatile unsigned int*)(0x42CE11F4UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A30 *((volatile unsigned int*)(0x42CE11F8UL)) +#define bFM3_ETHERNET_MAC1_MAR9L_A31 *((volatile unsigned int*)(0x42CE11FCUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A32 *((volatile unsigned int*)(0x42CE1200UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A33 *((volatile unsigned int*)(0x42CE1204UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A34 *((volatile unsigned int*)(0x42CE1208UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A35 *((volatile unsigned int*)(0x42CE120CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A36 *((volatile unsigned int*)(0x42CE1210UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A37 *((volatile unsigned int*)(0x42CE1214UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A38 *((volatile unsigned int*)(0x42CE1218UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A39 *((volatile unsigned int*)(0x42CE121CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A40 *((volatile unsigned int*)(0x42CE1220UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A41 *((volatile unsigned int*)(0x42CE1224UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A42 *((volatile unsigned int*)(0x42CE1228UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A43 *((volatile unsigned int*)(0x42CE122CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A44 *((volatile unsigned int*)(0x42CE1230UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A45 *((volatile unsigned int*)(0x42CE1234UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A46 *((volatile unsigned int*)(0x42CE1238UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_A47 *((volatile unsigned int*)(0x42CE123CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC0 *((volatile unsigned int*)(0x42CE1260UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC1 *((volatile unsigned int*)(0x42CE1264UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC2 *((volatile unsigned int*)(0x42CE1268UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC3 *((volatile unsigned int*)(0x42CE126CUL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC4 *((volatile unsigned int*)(0x42CE1270UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_MBC5 *((volatile unsigned int*)(0x42CE1274UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_SA *((volatile unsigned int*)(0x42CE1278UL)) +#define bFM3_ETHERNET_MAC1_MAR10H_AE *((volatile unsigned int*)(0x42CE127CUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A0 *((volatile unsigned int*)(0x42CE1280UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A1 *((volatile unsigned int*)(0x42CE1284UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A2 *((volatile unsigned int*)(0x42CE1288UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A3 *((volatile unsigned int*)(0x42CE128CUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A4 *((volatile unsigned int*)(0x42CE1290UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A5 *((volatile unsigned int*)(0x42CE1294UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A6 *((volatile unsigned int*)(0x42CE1298UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A7 *((volatile unsigned int*)(0x42CE129CUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A8 *((volatile unsigned int*)(0x42CE12A0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A9 *((volatile unsigned int*)(0x42CE12A4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A10 *((volatile unsigned int*)(0x42CE12A8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A11 *((volatile unsigned int*)(0x42CE12ACUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A12 *((volatile unsigned int*)(0x42CE12B0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A13 *((volatile unsigned int*)(0x42CE12B4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A14 *((volatile unsigned int*)(0x42CE12B8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A15 *((volatile unsigned int*)(0x42CE12BCUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A16 *((volatile unsigned int*)(0x42CE12C0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A17 *((volatile unsigned int*)(0x42CE12C4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A18 *((volatile unsigned int*)(0x42CE12C8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A19 *((volatile unsigned int*)(0x42CE12CCUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A20 *((volatile unsigned int*)(0x42CE12D0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A21 *((volatile unsigned int*)(0x42CE12D4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A22 *((volatile unsigned int*)(0x42CE12D8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A23 *((volatile unsigned int*)(0x42CE12DCUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A24 *((volatile unsigned int*)(0x42CE12E0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A25 *((volatile unsigned int*)(0x42CE12E4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A26 *((volatile unsigned int*)(0x42CE12E8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A27 *((volatile unsigned int*)(0x42CE12ECUL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A28 *((volatile unsigned int*)(0x42CE12F0UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A29 *((volatile unsigned int*)(0x42CE12F4UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A30 *((volatile unsigned int*)(0x42CE12F8UL)) +#define bFM3_ETHERNET_MAC1_MAR10L_A31 *((volatile unsigned int*)(0x42CE12FCUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A32 *((volatile unsigned int*)(0x42CE1300UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A33 *((volatile unsigned int*)(0x42CE1304UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A34 *((volatile unsigned int*)(0x42CE1308UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A35 *((volatile unsigned int*)(0x42CE130CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A36 *((volatile unsigned int*)(0x42CE1310UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A37 *((volatile unsigned int*)(0x42CE1314UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A38 *((volatile unsigned int*)(0x42CE1318UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A39 *((volatile unsigned int*)(0x42CE131CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A40 *((volatile unsigned int*)(0x42CE1320UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A41 *((volatile unsigned int*)(0x42CE1324UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A42 *((volatile unsigned int*)(0x42CE1328UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A43 *((volatile unsigned int*)(0x42CE132CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A44 *((volatile unsigned int*)(0x42CE1330UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A45 *((volatile unsigned int*)(0x42CE1334UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A46 *((volatile unsigned int*)(0x42CE1338UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_A47 *((volatile unsigned int*)(0x42CE133CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC0 *((volatile unsigned int*)(0x42CE1360UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC1 *((volatile unsigned int*)(0x42CE1364UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC2 *((volatile unsigned int*)(0x42CE1368UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC3 *((volatile unsigned int*)(0x42CE136CUL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC4 *((volatile unsigned int*)(0x42CE1370UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_MBC5 *((volatile unsigned int*)(0x42CE1374UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_SA *((volatile unsigned int*)(0x42CE1378UL)) +#define bFM3_ETHERNET_MAC1_MAR11H_AE *((volatile unsigned int*)(0x42CE137CUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A0 *((volatile unsigned int*)(0x42CE1380UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A1 *((volatile unsigned int*)(0x42CE1384UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A2 *((volatile unsigned int*)(0x42CE1388UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A3 *((volatile unsigned int*)(0x42CE138CUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A4 *((volatile unsigned int*)(0x42CE1390UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A5 *((volatile unsigned int*)(0x42CE1394UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A6 *((volatile unsigned int*)(0x42CE1398UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A7 *((volatile unsigned int*)(0x42CE139CUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A8 *((volatile unsigned int*)(0x42CE13A0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A9 *((volatile unsigned int*)(0x42CE13A4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A10 *((volatile unsigned int*)(0x42CE13A8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A11 *((volatile unsigned int*)(0x42CE13ACUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A12 *((volatile unsigned int*)(0x42CE13B0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A13 *((volatile unsigned int*)(0x42CE13B4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A14 *((volatile unsigned int*)(0x42CE13B8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A15 *((volatile unsigned int*)(0x42CE13BCUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A16 *((volatile unsigned int*)(0x42CE13C0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A17 *((volatile unsigned int*)(0x42CE13C4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A18 *((volatile unsigned int*)(0x42CE13C8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A19 *((volatile unsigned int*)(0x42CE13CCUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A20 *((volatile unsigned int*)(0x42CE13D0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A21 *((volatile unsigned int*)(0x42CE13D4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A22 *((volatile unsigned int*)(0x42CE13D8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A23 *((volatile unsigned int*)(0x42CE13DCUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A24 *((volatile unsigned int*)(0x42CE13E0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A25 *((volatile unsigned int*)(0x42CE13E4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A26 *((volatile unsigned int*)(0x42CE13E8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A27 *((volatile unsigned int*)(0x42CE13ECUL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A28 *((volatile unsigned int*)(0x42CE13F0UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A29 *((volatile unsigned int*)(0x42CE13F4UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A30 *((volatile unsigned int*)(0x42CE13F8UL)) +#define bFM3_ETHERNET_MAC1_MAR11L_A31 *((volatile unsigned int*)(0x42CE13FCUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A32 *((volatile unsigned int*)(0x42CE1400UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A33 *((volatile unsigned int*)(0x42CE1404UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A34 *((volatile unsigned int*)(0x42CE1408UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A35 *((volatile unsigned int*)(0x42CE140CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A36 *((volatile unsigned int*)(0x42CE1410UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A37 *((volatile unsigned int*)(0x42CE1414UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A38 *((volatile unsigned int*)(0x42CE1418UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A39 *((volatile unsigned int*)(0x42CE141CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A40 *((volatile unsigned int*)(0x42CE1420UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A41 *((volatile unsigned int*)(0x42CE1424UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A42 *((volatile unsigned int*)(0x42CE1428UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A43 *((volatile unsigned int*)(0x42CE142CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A44 *((volatile unsigned int*)(0x42CE1430UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A45 *((volatile unsigned int*)(0x42CE1434UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A46 *((volatile unsigned int*)(0x42CE1438UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_A47 *((volatile unsigned int*)(0x42CE143CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC0 *((volatile unsigned int*)(0x42CE1460UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC1 *((volatile unsigned int*)(0x42CE1464UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC2 *((volatile unsigned int*)(0x42CE1468UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC3 *((volatile unsigned int*)(0x42CE146CUL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC4 *((volatile unsigned int*)(0x42CE1470UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_MBC5 *((volatile unsigned int*)(0x42CE1474UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_SA *((volatile unsigned int*)(0x42CE1478UL)) +#define bFM3_ETHERNET_MAC1_MAR12H_AE *((volatile unsigned int*)(0x42CE147CUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A0 *((volatile unsigned int*)(0x42CE1480UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A1 *((volatile unsigned int*)(0x42CE1484UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A2 *((volatile unsigned int*)(0x42CE1488UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A3 *((volatile unsigned int*)(0x42CE148CUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A4 *((volatile unsigned int*)(0x42CE1490UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A5 *((volatile unsigned int*)(0x42CE1494UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A6 *((volatile unsigned int*)(0x42CE1498UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A7 *((volatile unsigned int*)(0x42CE149CUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A8 *((volatile unsigned int*)(0x42CE14A0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A9 *((volatile unsigned int*)(0x42CE14A4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A10 *((volatile unsigned int*)(0x42CE14A8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A11 *((volatile unsigned int*)(0x42CE14ACUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A12 *((volatile unsigned int*)(0x42CE14B0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A13 *((volatile unsigned int*)(0x42CE14B4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A14 *((volatile unsigned int*)(0x42CE14B8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A15 *((volatile unsigned int*)(0x42CE14BCUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A16 *((volatile unsigned int*)(0x42CE14C0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A17 *((volatile unsigned int*)(0x42CE14C4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A18 *((volatile unsigned int*)(0x42CE14C8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A19 *((volatile unsigned int*)(0x42CE14CCUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A20 *((volatile unsigned int*)(0x42CE14D0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A21 *((volatile unsigned int*)(0x42CE14D4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A22 *((volatile unsigned int*)(0x42CE14D8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A23 *((volatile unsigned int*)(0x42CE14DCUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A24 *((volatile unsigned int*)(0x42CE14E0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A25 *((volatile unsigned int*)(0x42CE14E4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A26 *((volatile unsigned int*)(0x42CE14E8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A27 *((volatile unsigned int*)(0x42CE14ECUL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A28 *((volatile unsigned int*)(0x42CE14F0UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A29 *((volatile unsigned int*)(0x42CE14F4UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A30 *((volatile unsigned int*)(0x42CE14F8UL)) +#define bFM3_ETHERNET_MAC1_MAR12L_A31 *((volatile unsigned int*)(0x42CE14FCUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A32 *((volatile unsigned int*)(0x42CE1500UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A33 *((volatile unsigned int*)(0x42CE1504UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A34 *((volatile unsigned int*)(0x42CE1508UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A35 *((volatile unsigned int*)(0x42CE150CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A36 *((volatile unsigned int*)(0x42CE1510UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A37 *((volatile unsigned int*)(0x42CE1514UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A38 *((volatile unsigned int*)(0x42CE1518UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A39 *((volatile unsigned int*)(0x42CE151CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A40 *((volatile unsigned int*)(0x42CE1520UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A41 *((volatile unsigned int*)(0x42CE1524UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A42 *((volatile unsigned int*)(0x42CE1528UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A43 *((volatile unsigned int*)(0x42CE152CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A44 *((volatile unsigned int*)(0x42CE1530UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A45 *((volatile unsigned int*)(0x42CE1534UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A46 *((volatile unsigned int*)(0x42CE1538UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_A47 *((volatile unsigned int*)(0x42CE153CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC0 *((volatile unsigned int*)(0x42CE1560UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC1 *((volatile unsigned int*)(0x42CE1564UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC2 *((volatile unsigned int*)(0x42CE1568UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC3 *((volatile unsigned int*)(0x42CE156CUL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC4 *((volatile unsigned int*)(0x42CE1570UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_MBC5 *((volatile unsigned int*)(0x42CE1574UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_SA *((volatile unsigned int*)(0x42CE1578UL)) +#define bFM3_ETHERNET_MAC1_MAR13H_AE *((volatile unsigned int*)(0x42CE157CUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A0 *((volatile unsigned int*)(0x42CE1580UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A1 *((volatile unsigned int*)(0x42CE1584UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A2 *((volatile unsigned int*)(0x42CE1588UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A3 *((volatile unsigned int*)(0x42CE158CUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A4 *((volatile unsigned int*)(0x42CE1590UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A5 *((volatile unsigned int*)(0x42CE1594UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A6 *((volatile unsigned int*)(0x42CE1598UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A7 *((volatile unsigned int*)(0x42CE159CUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A8 *((volatile unsigned int*)(0x42CE15A0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A9 *((volatile unsigned int*)(0x42CE15A4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A10 *((volatile unsigned int*)(0x42CE15A8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A11 *((volatile unsigned int*)(0x42CE15ACUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A12 *((volatile unsigned int*)(0x42CE15B0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A13 *((volatile unsigned int*)(0x42CE15B4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A14 *((volatile unsigned int*)(0x42CE15B8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A15 *((volatile unsigned int*)(0x42CE15BCUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A16 *((volatile unsigned int*)(0x42CE15C0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A17 *((volatile unsigned int*)(0x42CE15C4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A18 *((volatile unsigned int*)(0x42CE15C8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A19 *((volatile unsigned int*)(0x42CE15CCUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A20 *((volatile unsigned int*)(0x42CE15D0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A21 *((volatile unsigned int*)(0x42CE15D4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A22 *((volatile unsigned int*)(0x42CE15D8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A23 *((volatile unsigned int*)(0x42CE15DCUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A24 *((volatile unsigned int*)(0x42CE15E0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A25 *((volatile unsigned int*)(0x42CE15E4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A26 *((volatile unsigned int*)(0x42CE15E8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A27 *((volatile unsigned int*)(0x42CE15ECUL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A28 *((volatile unsigned int*)(0x42CE15F0UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A29 *((volatile unsigned int*)(0x42CE15F4UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A30 *((volatile unsigned int*)(0x42CE15F8UL)) +#define bFM3_ETHERNET_MAC1_MAR13L_A31 *((volatile unsigned int*)(0x42CE15FCUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A32 *((volatile unsigned int*)(0x42CE1600UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A33 *((volatile unsigned int*)(0x42CE1604UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A34 *((volatile unsigned int*)(0x42CE1608UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A35 *((volatile unsigned int*)(0x42CE160CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A36 *((volatile unsigned int*)(0x42CE1610UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A37 *((volatile unsigned int*)(0x42CE1614UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A38 *((volatile unsigned int*)(0x42CE1618UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A39 *((volatile unsigned int*)(0x42CE161CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A40 *((volatile unsigned int*)(0x42CE1620UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A41 *((volatile unsigned int*)(0x42CE1624UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A42 *((volatile unsigned int*)(0x42CE1628UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A43 *((volatile unsigned int*)(0x42CE162CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A44 *((volatile unsigned int*)(0x42CE1630UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A45 *((volatile unsigned int*)(0x42CE1634UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A46 *((volatile unsigned int*)(0x42CE1638UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_A47 *((volatile unsigned int*)(0x42CE163CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC0 *((volatile unsigned int*)(0x42CE1660UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC1 *((volatile unsigned int*)(0x42CE1664UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC2 *((volatile unsigned int*)(0x42CE1668UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC3 *((volatile unsigned int*)(0x42CE166CUL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC4 *((volatile unsigned int*)(0x42CE1670UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_MBC5 *((volatile unsigned int*)(0x42CE1674UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_SA *((volatile unsigned int*)(0x42CE1678UL)) +#define bFM3_ETHERNET_MAC1_MAR14H_AE *((volatile unsigned int*)(0x42CE167CUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A0 *((volatile unsigned int*)(0x42CE1680UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A1 *((volatile unsigned int*)(0x42CE1684UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A2 *((volatile unsigned int*)(0x42CE1688UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A3 *((volatile unsigned int*)(0x42CE168CUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A4 *((volatile unsigned int*)(0x42CE1690UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A5 *((volatile unsigned int*)(0x42CE1694UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A6 *((volatile unsigned int*)(0x42CE1698UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A7 *((volatile unsigned int*)(0x42CE169CUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A8 *((volatile unsigned int*)(0x42CE16A0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A9 *((volatile unsigned int*)(0x42CE16A4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A10 *((volatile unsigned int*)(0x42CE16A8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A11 *((volatile unsigned int*)(0x42CE16ACUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A12 *((volatile unsigned int*)(0x42CE16B0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A13 *((volatile unsigned int*)(0x42CE16B4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A14 *((volatile unsigned int*)(0x42CE16B8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A15 *((volatile unsigned int*)(0x42CE16BCUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A16 *((volatile unsigned int*)(0x42CE16C0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A17 *((volatile unsigned int*)(0x42CE16C4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A18 *((volatile unsigned int*)(0x42CE16C8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A19 *((volatile unsigned int*)(0x42CE16CCUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A20 *((volatile unsigned int*)(0x42CE16D0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A21 *((volatile unsigned int*)(0x42CE16D4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A22 *((volatile unsigned int*)(0x42CE16D8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A23 *((volatile unsigned int*)(0x42CE16DCUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A24 *((volatile unsigned int*)(0x42CE16E0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A25 *((volatile unsigned int*)(0x42CE16E4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A26 *((volatile unsigned int*)(0x42CE16E8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A27 *((volatile unsigned int*)(0x42CE16ECUL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A28 *((volatile unsigned int*)(0x42CE16F0UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A29 *((volatile unsigned int*)(0x42CE16F4UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A30 *((volatile unsigned int*)(0x42CE16F8UL)) +#define bFM3_ETHERNET_MAC1_MAR14L_A31 *((volatile unsigned int*)(0x42CE16FCUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A32 *((volatile unsigned int*)(0x42CE1700UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A33 *((volatile unsigned int*)(0x42CE1704UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A34 *((volatile unsigned int*)(0x42CE1708UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A35 *((volatile unsigned int*)(0x42CE170CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A36 *((volatile unsigned int*)(0x42CE1710UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A37 *((volatile unsigned int*)(0x42CE1714UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A38 *((volatile unsigned int*)(0x42CE1718UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A39 *((volatile unsigned int*)(0x42CE171CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A40 *((volatile unsigned int*)(0x42CE1720UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A41 *((volatile unsigned int*)(0x42CE1724UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A42 *((volatile unsigned int*)(0x42CE1728UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A43 *((volatile unsigned int*)(0x42CE172CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A44 *((volatile unsigned int*)(0x42CE1730UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A45 *((volatile unsigned int*)(0x42CE1734UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A46 *((volatile unsigned int*)(0x42CE1738UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_A47 *((volatile unsigned int*)(0x42CE173CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC0 *((volatile unsigned int*)(0x42CE1760UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC1 *((volatile unsigned int*)(0x42CE1764UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC2 *((volatile unsigned int*)(0x42CE1768UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC3 *((volatile unsigned int*)(0x42CE176CUL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC4 *((volatile unsigned int*)(0x42CE1770UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_MBC5 *((volatile unsigned int*)(0x42CE1774UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_SA *((volatile unsigned int*)(0x42CE1778UL)) +#define bFM3_ETHERNET_MAC1_MAR15H_AE *((volatile unsigned int*)(0x42CE177CUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A0 *((volatile unsigned int*)(0x42CE1780UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A1 *((volatile unsigned int*)(0x42CE1784UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A2 *((volatile unsigned int*)(0x42CE1788UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A3 *((volatile unsigned int*)(0x42CE178CUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A4 *((volatile unsigned int*)(0x42CE1790UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A5 *((volatile unsigned int*)(0x42CE1794UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A6 *((volatile unsigned int*)(0x42CE1798UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A7 *((volatile unsigned int*)(0x42CE179CUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A8 *((volatile unsigned int*)(0x42CE17A0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A9 *((volatile unsigned int*)(0x42CE17A4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A10 *((volatile unsigned int*)(0x42CE17A8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A11 *((volatile unsigned int*)(0x42CE17ACUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A12 *((volatile unsigned int*)(0x42CE17B0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A13 *((volatile unsigned int*)(0x42CE17B4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A14 *((volatile unsigned int*)(0x42CE17B8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A15 *((volatile unsigned int*)(0x42CE17BCUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A16 *((volatile unsigned int*)(0x42CE17C0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A17 *((volatile unsigned int*)(0x42CE17C4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A18 *((volatile unsigned int*)(0x42CE17C8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A19 *((volatile unsigned int*)(0x42CE17CCUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A20 *((volatile unsigned int*)(0x42CE17D0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A21 *((volatile unsigned int*)(0x42CE17D4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A22 *((volatile unsigned int*)(0x42CE17D8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A23 *((volatile unsigned int*)(0x42CE17DCUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A24 *((volatile unsigned int*)(0x42CE17E0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A25 *((volatile unsigned int*)(0x42CE17E4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A26 *((volatile unsigned int*)(0x42CE17E8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A27 *((volatile unsigned int*)(0x42CE17ECUL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A28 *((volatile unsigned int*)(0x42CE17F0UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A29 *((volatile unsigned int*)(0x42CE17F4UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A30 *((volatile unsigned int*)(0x42CE17F8UL)) +#define bFM3_ETHERNET_MAC1_MAR15L_A31 *((volatile unsigned int*)(0x42CE17FCUL)) +#define bFM3_ETHERNET_MAC1_RGSR_LM *((volatile unsigned int*)(0x42CE1B00UL)) +#define bFM3_ETHERNET_MAC1_RGSR_LSP0 *((volatile unsigned int*)(0x42CE1B04UL)) +#define bFM3_ETHERNET_MAC1_RGSR_LSP1 *((volatile unsigned int*)(0x42CE1B08UL)) +#define bFM3_ETHERNET_MAC1_RGSR_LS *((volatile unsigned int*)(0x42CE1B0CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSE *((volatile unsigned int*)(0x42CEE000UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TFCU *((volatile unsigned int*)(0x42CEE004UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSI *((volatile unsigned int*)(0x42CEE008UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSU *((volatile unsigned int*)(0x42CEE00CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TITE *((volatile unsigned int*)(0x42CEE010UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TARU *((volatile unsigned int*)(0x42CEE014UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSEA *((volatile unsigned int*)(0x42CEE020UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSDB *((volatile unsigned int*)(0x42CEE024UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSV2E *((volatile unsigned int*)(0x42CEE028UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TETSP *((volatile unsigned int*)(0x42CEE02CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSIP6E *((volatile unsigned int*)(0x42CEE030UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSIP4E *((volatile unsigned int*)(0x42CEE034UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TETSEM *((volatile unsigned int*)(0x42CEE038UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSMRM *((volatile unsigned int*)(0x42CEE03CUL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSPS0 *((volatile unsigned int*)(0x42CEE040UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSPS1 *((volatile unsigned int*)(0x42CEE044UL)) +#define bFM3_ETHERNET_MAC1_TSCR_TSENMF *((volatile unsigned int*)(0x42CEE048UL)) +#define bFM3_ETHERNET_MAC1_TSCR_ATSFC *((volatile unsigned int*)(0x42CEE060UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC0 *((volatile unsigned int*)(0x42CEE080UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC1 *((volatile unsigned int*)(0x42CEE084UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC2 *((volatile unsigned int*)(0x42CEE088UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC3 *((volatile unsigned int*)(0x42CEE08CUL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC4 *((volatile unsigned int*)(0x42CEE090UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC5 *((volatile unsigned int*)(0x42CEE094UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC6 *((volatile unsigned int*)(0x42CEE098UL)) +#define bFM3_ETHERNET_MAC1_SSIR_SSINC7 *((volatile unsigned int*)(0x42CEE09CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS0 *((volatile unsigned int*)(0x42CEE100UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS1 *((volatile unsigned int*)(0x42CEE104UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS2 *((volatile unsigned int*)(0x42CEE108UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS3 *((volatile unsigned int*)(0x42CEE10CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS4 *((volatile unsigned int*)(0x42CEE110UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS5 *((volatile unsigned int*)(0x42CEE114UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS6 *((volatile unsigned int*)(0x42CEE118UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS7 *((volatile unsigned int*)(0x42CEE11CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS8 *((volatile unsigned int*)(0x42CEE120UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS9 *((volatile unsigned int*)(0x42CEE124UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS10 *((volatile unsigned int*)(0x42CEE128UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS11 *((volatile unsigned int*)(0x42CEE12CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS12 *((volatile unsigned int*)(0x42CEE130UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS13 *((volatile unsigned int*)(0x42CEE134UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS14 *((volatile unsigned int*)(0x42CEE138UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS15 *((volatile unsigned int*)(0x42CEE13CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS16 *((volatile unsigned int*)(0x42CEE140UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS17 *((volatile unsigned int*)(0x42CEE144UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS18 *((volatile unsigned int*)(0x42CEE148UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS19 *((volatile unsigned int*)(0x42CEE14CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS20 *((volatile unsigned int*)(0x42CEE150UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS21 *((volatile unsigned int*)(0x42CEE154UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS22 *((volatile unsigned int*)(0x42CEE158UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS23 *((volatile unsigned int*)(0x42CEE15CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS24 *((volatile unsigned int*)(0x42CEE160UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS25 *((volatile unsigned int*)(0x42CEE164UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS26 *((volatile unsigned int*)(0x42CEE168UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS27 *((volatile unsigned int*)(0x42CEE16CUL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS28 *((volatile unsigned int*)(0x42CEE170UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS29 *((volatile unsigned int*)(0x42CEE174UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS30 *((volatile unsigned int*)(0x42CEE178UL)) +#define bFM3_ETHERNET_MAC1_STSR_TSS31 *((volatile unsigned int*)(0x42CEE17CUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS0 *((volatile unsigned int*)(0x42CEE080UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS1 *((volatile unsigned int*)(0x42CEE084UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS2 *((volatile unsigned int*)(0x42CEE088UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS3 *((volatile unsigned int*)(0x42CEE08CUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS4 *((volatile unsigned int*)(0x42CEE090UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS5 *((volatile unsigned int*)(0x42CEE094UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS6 *((volatile unsigned int*)(0x42CEE098UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS7 *((volatile unsigned int*)(0x42CEE09CUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS8 *((volatile unsigned int*)(0x42CEE0A0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS9 *((volatile unsigned int*)(0x42CEE0A4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS10 *((volatile unsigned int*)(0x42CEE0A8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS11 *((volatile unsigned int*)(0x42CEE0ACUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS12 *((volatile unsigned int*)(0x42CEE0B0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS13 *((volatile unsigned int*)(0x42CEE0B4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS14 *((volatile unsigned int*)(0x42CEE0B8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS15 *((volatile unsigned int*)(0x42CEE0BCUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS16 *((volatile unsigned int*)(0x42CEE0C0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS17 *((volatile unsigned int*)(0x42CEE0C4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS18 *((volatile unsigned int*)(0x42CEE0C8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS19 *((volatile unsigned int*)(0x42CEE0CCUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS20 *((volatile unsigned int*)(0x42CEE0D0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS21 *((volatile unsigned int*)(0x42CEE0D4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS22 *((volatile unsigned int*)(0x42CEE0D8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS23 *((volatile unsigned int*)(0x42CEE0DCUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS24 *((volatile unsigned int*)(0x42CEE0E0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS25 *((volatile unsigned int*)(0x42CEE0E4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS26 *((volatile unsigned int*)(0x42CEE0E8UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS27 *((volatile unsigned int*)(0x42CEE0ECUL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS28 *((volatile unsigned int*)(0x42CEE0F0UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS29 *((volatile unsigned int*)(0x42CEE0F4UL)) +#define bFM3_ETHERNET_MAC1_STNR_TSSS30 *((volatile unsigned int*)(0x42CEE0F8UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS0 *((volatile unsigned int*)(0x42CEE200UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS1 *((volatile unsigned int*)(0x42CEE204UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS2 *((volatile unsigned int*)(0x42CEE208UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS3 *((volatile unsigned int*)(0x42CEE20CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS4 *((volatile unsigned int*)(0x42CEE210UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS5 *((volatile unsigned int*)(0x42CEE214UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS6 *((volatile unsigned int*)(0x42CEE218UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS7 *((volatile unsigned int*)(0x42CEE21CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS8 *((volatile unsigned int*)(0x42CEE220UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS9 *((volatile unsigned int*)(0x42CEE224UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS10 *((volatile unsigned int*)(0x42CEE228UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS11 *((volatile unsigned int*)(0x42CEE22CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS12 *((volatile unsigned int*)(0x42CEE230UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS13 *((volatile unsigned int*)(0x42CEE234UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS14 *((volatile unsigned int*)(0x42CEE238UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS15 *((volatile unsigned int*)(0x42CEE23CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS16 *((volatile unsigned int*)(0x42CEE240UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS17 *((volatile unsigned int*)(0x42CEE244UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS18 *((volatile unsigned int*)(0x42CEE248UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS19 *((volatile unsigned int*)(0x42CEE24CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS20 *((volatile unsigned int*)(0x42CEE250UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS21 *((volatile unsigned int*)(0x42CEE254UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS22 *((volatile unsigned int*)(0x42CEE258UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS23 *((volatile unsigned int*)(0x42CEE25CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS24 *((volatile unsigned int*)(0x42CEE260UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS25 *((volatile unsigned int*)(0x42CEE264UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS26 *((volatile unsigned int*)(0x42CEE268UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS27 *((volatile unsigned int*)(0x42CEE26CUL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS28 *((volatile unsigned int*)(0x42CEE270UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS29 *((volatile unsigned int*)(0x42CEE274UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS30 *((volatile unsigned int*)(0x42CEE278UL)) +#define bFM3_ETHERNET_MAC1_STSUR_TSS31 *((volatile unsigned int*)(0x42CEE27CUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS0 *((volatile unsigned int*)(0x42CEE280UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS1 *((volatile unsigned int*)(0x42CEE284UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS2 *((volatile unsigned int*)(0x42CEE288UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS3 *((volatile unsigned int*)(0x42CEE28CUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS4 *((volatile unsigned int*)(0x42CEE290UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS5 *((volatile unsigned int*)(0x42CEE294UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS6 *((volatile unsigned int*)(0x42CEE298UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS7 *((volatile unsigned int*)(0x42CEE29CUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS8 *((volatile unsigned int*)(0x42CEE2A0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS9 *((volatile unsigned int*)(0x42CEE2A4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS10 *((volatile unsigned int*)(0x42CEE2A8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS11 *((volatile unsigned int*)(0x42CEE2ACUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS12 *((volatile unsigned int*)(0x42CEE2B0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS13 *((volatile unsigned int*)(0x42CEE2B4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS14 *((volatile unsigned int*)(0x42CEE2B8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS15 *((volatile unsigned int*)(0x42CEE2BCUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS16 *((volatile unsigned int*)(0x42CEE2C0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS17 *((volatile unsigned int*)(0x42CEE2C4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS18 *((volatile unsigned int*)(0x42CEE2C8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS19 *((volatile unsigned int*)(0x42CEE2CCUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS20 *((volatile unsigned int*)(0x42CEE2D0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS21 *((volatile unsigned int*)(0x42CEE2D4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS22 *((volatile unsigned int*)(0x42CEE2D8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS23 *((volatile unsigned int*)(0x42CEE2DCUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS24 *((volatile unsigned int*)(0x42CEE2E0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS25 *((volatile unsigned int*)(0x42CEE2E4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS26 *((volatile unsigned int*)(0x42CEE2E8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS27 *((volatile unsigned int*)(0x42CEE2ECUL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS28 *((volatile unsigned int*)(0x42CEE2F0UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS29 *((volatile unsigned int*)(0x42CEE2F4UL)) +#define bFM3_ETHERNET_MAC1_STNUR_TSSS30 *((volatile unsigned int*)(0x42CEE2F8UL)) +#define bFM3_ETHERNET_MAC1_STNUR_ADDSUB *((volatile unsigned int*)(0x42CEE2FCUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR0 *((volatile unsigned int*)(0x42CEE300UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR1 *((volatile unsigned int*)(0x42CEE304UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR2 *((volatile unsigned int*)(0x42CEE308UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR3 *((volatile unsigned int*)(0x42CEE30CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR4 *((volatile unsigned int*)(0x42CEE310UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR5 *((volatile unsigned int*)(0x42CEE314UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR6 *((volatile unsigned int*)(0x42CEE318UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR7 *((volatile unsigned int*)(0x42CEE31CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR8 *((volatile unsigned int*)(0x42CEE320UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR9 *((volatile unsigned int*)(0x42CEE324UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR10 *((volatile unsigned int*)(0x42CEE328UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR11 *((volatile unsigned int*)(0x42CEE32CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR12 *((volatile unsigned int*)(0x42CEE330UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR13 *((volatile unsigned int*)(0x42CEE334UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR14 *((volatile unsigned int*)(0x42CEE338UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR15 *((volatile unsigned int*)(0x42CEE33CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR16 *((volatile unsigned int*)(0x42CEE340UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR17 *((volatile unsigned int*)(0x42CEE344UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR18 *((volatile unsigned int*)(0x42CEE348UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR19 *((volatile unsigned int*)(0x42CEE34CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR20 *((volatile unsigned int*)(0x42CEE350UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR21 *((volatile unsigned int*)(0x42CEE354UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR22 *((volatile unsigned int*)(0x42CEE358UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR23 *((volatile unsigned int*)(0x42CEE35CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR24 *((volatile unsigned int*)(0x42CEE360UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR25 *((volatile unsigned int*)(0x42CEE364UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR26 *((volatile unsigned int*)(0x42CEE368UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR27 *((volatile unsigned int*)(0x42CEE36CUL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR28 *((volatile unsigned int*)(0x42CEE370UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR29 *((volatile unsigned int*)(0x42CEE374UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR30 *((volatile unsigned int*)(0x42CEE378UL)) +#define bFM3_ETHERNET_MAC1_TSAR_TSAR31 *((volatile unsigned int*)(0x42CEE37CUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR0 *((volatile unsigned int*)(0x42CEE380UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR1 *((volatile unsigned int*)(0x42CEE384UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR2 *((volatile unsigned int*)(0x42CEE388UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR3 *((volatile unsigned int*)(0x42CEE38CUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR4 *((volatile unsigned int*)(0x42CEE390UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR5 *((volatile unsigned int*)(0x42CEE394UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR6 *((volatile unsigned int*)(0x42CEE398UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR7 *((volatile unsigned int*)(0x42CEE39CUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR8 *((volatile unsigned int*)(0x42CEE3A0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR9 *((volatile unsigned int*)(0x42CEE3A4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR10 *((volatile unsigned int*)(0x42CEE3A8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR11 *((volatile unsigned int*)(0x42CEE3ACUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR12 *((volatile unsigned int*)(0x42CEE3B0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR13 *((volatile unsigned int*)(0x42CEE3B4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR14 *((volatile unsigned int*)(0x42CEE3B8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR15 *((volatile unsigned int*)(0x42CEE3BCUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR16 *((volatile unsigned int*)(0x42CEE3C0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR17 *((volatile unsigned int*)(0x42CEE3C4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR18 *((volatile unsigned int*)(0x42CEE3C8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR19 *((volatile unsigned int*)(0x42CEE3CCUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR20 *((volatile unsigned int*)(0x42CEE3D0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR21 *((volatile unsigned int*)(0x42CEE3D4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR22 *((volatile unsigned int*)(0x42CEE3D8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR23 *((volatile unsigned int*)(0x42CEE3DCUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR24 *((volatile unsigned int*)(0x42CEE3E0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR25 *((volatile unsigned int*)(0x42CEE3E4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR26 *((volatile unsigned int*)(0x42CEE3E8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR27 *((volatile unsigned int*)(0x42CEE3ECUL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR28 *((volatile unsigned int*)(0x42CEE3F0UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR29 *((volatile unsigned int*)(0x42CEE3F4UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR30 *((volatile unsigned int*)(0x42CEE3F8UL)) +#define bFM3_ETHERNET_MAC1_TTSR_TSTR31 *((volatile unsigned int*)(0x42CEE3FCUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR0 *((volatile unsigned int*)(0x42CEE400UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR1 *((volatile unsigned int*)(0x42CEE404UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR2 *((volatile unsigned int*)(0x42CEE408UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR3 *((volatile unsigned int*)(0x42CEE40CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR4 *((volatile unsigned int*)(0x42CEE410UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR5 *((volatile unsigned int*)(0x42CEE414UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR6 *((volatile unsigned int*)(0x42CEE418UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR7 *((volatile unsigned int*)(0x42CEE41CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR8 *((volatile unsigned int*)(0x42CEE420UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR9 *((volatile unsigned int*)(0x42CEE424UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR10 *((volatile unsigned int*)(0x42CEE428UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR11 *((volatile unsigned int*)(0x42CEE42CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR12 *((volatile unsigned int*)(0x42CEE430UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR13 *((volatile unsigned int*)(0x42CEE434UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR14 *((volatile unsigned int*)(0x42CEE438UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR15 *((volatile unsigned int*)(0x42CEE43CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR16 *((volatile unsigned int*)(0x42CEE440UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR17 *((volatile unsigned int*)(0x42CEE444UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR18 *((volatile unsigned int*)(0x42CEE448UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR19 *((volatile unsigned int*)(0x42CEE44CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR20 *((volatile unsigned int*)(0x42CEE450UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR21 *((volatile unsigned int*)(0x42CEE454UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR22 *((volatile unsigned int*)(0x42CEE458UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR23 *((volatile unsigned int*)(0x42CEE45CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR24 *((volatile unsigned int*)(0x42CEE460UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR25 *((volatile unsigned int*)(0x42CEE464UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR26 *((volatile unsigned int*)(0x42CEE468UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR27 *((volatile unsigned int*)(0x42CEE46CUL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR28 *((volatile unsigned int*)(0x42CEE470UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR29 *((volatile unsigned int*)(0x42CEE474UL)) +#define bFM3_ETHERNET_MAC1_TTNR_TSTR30 *((volatile unsigned int*)(0x42CEE478UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42CEE480UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42CEE484UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42CEE488UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42CEE48CUL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42CEE490UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42CEE494UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42CEE498UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42CEE49CUL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42CEE4A0UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42CEE4A4UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42CEE4A8UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42CEE4ACUL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42CEE4B0UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42CEE4B4UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42CEE4B8UL)) +#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42CEE4BCUL)) +#define bFM3_ETHERNET_MAC1_TSR_TSSOVF *((volatile unsigned int*)(0x42CEE500UL)) +#define bFM3_ETHERNET_MAC1_TSR_TSTART *((volatile unsigned int*)(0x42CEE504UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSTS *((volatile unsigned int*)(0x42CEE508UL)) +#define bFM3_ETHERNET_MAC1_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSSTM *((volatile unsigned int*)(0x42CEE560UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSNS0 *((volatile unsigned int*)(0x42CEE564UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSNS1 *((volatile unsigned int*)(0x42CEE568UL)) +#define bFM3_ETHERNET_MAC1_TSR_ATSNS2 *((volatile unsigned int*)(0x42CEE56CUL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42CEE580UL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42CEE584UL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42CEE588UL)) +#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42CEE58CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN0 *((volatile unsigned int*)(0x42CEE600UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN1 *((volatile unsigned int*)(0x42CEE604UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN2 *((volatile unsigned int*)(0x42CEE608UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN3 *((volatile unsigned int*)(0x42CEE60CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN4 *((volatile unsigned int*)(0x42CEE610UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN5 *((volatile unsigned int*)(0x42CEE614UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN6 *((volatile unsigned int*)(0x42CEE618UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN7 *((volatile unsigned int*)(0x42CEE61CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN8 *((volatile unsigned int*)(0x42CEE620UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN9 *((volatile unsigned int*)(0x42CEE624UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN10 *((volatile unsigned int*)(0x42CEE628UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN11 *((volatile unsigned int*)(0x42CEE62CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN12 *((volatile unsigned int*)(0x42CEE630UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN13 *((volatile unsigned int*)(0x42CEE634UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN14 *((volatile unsigned int*)(0x42CEE638UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN15 *((volatile unsigned int*)(0x42CEE63CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN16 *((volatile unsigned int*)(0x42CEE640UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN17 *((volatile unsigned int*)(0x42CEE644UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN18 *((volatile unsigned int*)(0x42CEE648UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN19 *((volatile unsigned int*)(0x42CEE64CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN20 *((volatile unsigned int*)(0x42CEE650UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN21 *((volatile unsigned int*)(0x42CEE654UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN22 *((volatile unsigned int*)(0x42CEE658UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN23 *((volatile unsigned int*)(0x42CEE65CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN24 *((volatile unsigned int*)(0x42CEE660UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN25 *((volatile unsigned int*)(0x42CEE664UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN26 *((volatile unsigned int*)(0x42CEE668UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN27 *((volatile unsigned int*)(0x42CEE66CUL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN28 *((volatile unsigned int*)(0x42CEE670UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN29 *((volatile unsigned int*)(0x42CEE674UL)) +#define bFM3_ETHERNET_MAC1_ATNR_ATN30 *((volatile unsigned int*)(0x42CEE678UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS0 *((volatile unsigned int*)(0x42CEE680UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS1 *((volatile unsigned int*)(0x42CEE684UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS2 *((volatile unsigned int*)(0x42CEE688UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS3 *((volatile unsigned int*)(0x42CEE68CUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS4 *((volatile unsigned int*)(0x42CEE690UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS5 *((volatile unsigned int*)(0x42CEE694UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS6 *((volatile unsigned int*)(0x42CEE698UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS7 *((volatile unsigned int*)(0x42CEE69CUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS8 *((volatile unsigned int*)(0x42CEE6A0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS9 *((volatile unsigned int*)(0x42CEE6A4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS10 *((volatile unsigned int*)(0x42CEE6A8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS11 *((volatile unsigned int*)(0x42CEE6ACUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS12 *((volatile unsigned int*)(0x42CEE6B0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS13 *((volatile unsigned int*)(0x42CEE6B4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS14 *((volatile unsigned int*)(0x42CEE6B8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS15 *((volatile unsigned int*)(0x42CEE6BCUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS16 *((volatile unsigned int*)(0x42CEE6C0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS17 *((volatile unsigned int*)(0x42CEE6C4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS18 *((volatile unsigned int*)(0x42CEE6C8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS19 *((volatile unsigned int*)(0x42CEE6CCUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS20 *((volatile unsigned int*)(0x42CEE6D0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS21 *((volatile unsigned int*)(0x42CEE6D4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS22 *((volatile unsigned int*)(0x42CEE6D8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS23 *((volatile unsigned int*)(0x42CEE6DCUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS24 *((volatile unsigned int*)(0x42CEE6E0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS25 *((volatile unsigned int*)(0x42CEE6E4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS26 *((volatile unsigned int*)(0x42CEE6E8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS27 *((volatile unsigned int*)(0x42CEE6ECUL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS28 *((volatile unsigned int*)(0x42CEE6F0UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS29 *((volatile unsigned int*)(0x42CEE6F4UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS30 *((volatile unsigned int*)(0x42CEE6F8UL)) +#define bFM3_ETHERNET_MAC1_ATSR_ATS31 *((volatile unsigned int*)(0x42CEE6FCUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A32 *((volatile unsigned int*)(0x42CF0000UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A33 *((volatile unsigned int*)(0x42CF0004UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A34 *((volatile unsigned int*)(0x42CF0008UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A35 *((volatile unsigned int*)(0x42CF000CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A36 *((volatile unsigned int*)(0x42CF0010UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A37 *((volatile unsigned int*)(0x42CF0014UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A38 *((volatile unsigned int*)(0x42CF0018UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A39 *((volatile unsigned int*)(0x42CF001CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A40 *((volatile unsigned int*)(0x42CF0020UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A41 *((volatile unsigned int*)(0x42CF0024UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A42 *((volatile unsigned int*)(0x42CF0028UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A43 *((volatile unsigned int*)(0x42CF002CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A44 *((volatile unsigned int*)(0x42CF0030UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A45 *((volatile unsigned int*)(0x42CF0034UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A46 *((volatile unsigned int*)(0x42CF0038UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_A47 *((volatile unsigned int*)(0x42CF003CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC0 *((volatile unsigned int*)(0x42CF0060UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC1 *((volatile unsigned int*)(0x42CF0064UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC2 *((volatile unsigned int*)(0x42CF0068UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC3 *((volatile unsigned int*)(0x42CF006CUL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC4 *((volatile unsigned int*)(0x42CF0070UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_MBC5 *((volatile unsigned int*)(0x42CF0074UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_SA *((volatile unsigned int*)(0x42CF0078UL)) +#define bFM3_ETHERNET_MAC1_MAR16H_AE *((volatile unsigned int*)(0x42CF007CUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A0 *((volatile unsigned int*)(0x42CF0080UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A1 *((volatile unsigned int*)(0x42CF0084UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A2 *((volatile unsigned int*)(0x42CF0088UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A3 *((volatile unsigned int*)(0x42CF008CUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A4 *((volatile unsigned int*)(0x42CF0090UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A5 *((volatile unsigned int*)(0x42CF0094UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A6 *((volatile unsigned int*)(0x42CF0098UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A7 *((volatile unsigned int*)(0x42CF009CUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A8 *((volatile unsigned int*)(0x42CF00A0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A9 *((volatile unsigned int*)(0x42CF00A4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A10 *((volatile unsigned int*)(0x42CF00A8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A11 *((volatile unsigned int*)(0x42CF00ACUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A12 *((volatile unsigned int*)(0x42CF00B0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A13 *((volatile unsigned int*)(0x42CF00B4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A14 *((volatile unsigned int*)(0x42CF00B8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A15 *((volatile unsigned int*)(0x42CF00BCUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A16 *((volatile unsigned int*)(0x42CF00C0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A17 *((volatile unsigned int*)(0x42CF00C4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A18 *((volatile unsigned int*)(0x42CF00C8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A19 *((volatile unsigned int*)(0x42CF00CCUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A20 *((volatile unsigned int*)(0x42CF00D0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A21 *((volatile unsigned int*)(0x42CF00D4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A22 *((volatile unsigned int*)(0x42CF00D8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A23 *((volatile unsigned int*)(0x42CF00DCUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A24 *((volatile unsigned int*)(0x42CF00E0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A25 *((volatile unsigned int*)(0x42CF00E4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A26 *((volatile unsigned int*)(0x42CF00E8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A27 *((volatile unsigned int*)(0x42CF00ECUL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A28 *((volatile unsigned int*)(0x42CF00F0UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A29 *((volatile unsigned int*)(0x42CF00F4UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A30 *((volatile unsigned int*)(0x42CF00F8UL)) +#define bFM3_ETHERNET_MAC1_MAR16L_A31 *((volatile unsigned int*)(0x42CF00FCUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A32 *((volatile unsigned int*)(0x42CF0100UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A33 *((volatile unsigned int*)(0x42CF0104UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A34 *((volatile unsigned int*)(0x42CF0108UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A35 *((volatile unsigned int*)(0x42CF010CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A36 *((volatile unsigned int*)(0x42CF0110UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A37 *((volatile unsigned int*)(0x42CF0114UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A38 *((volatile unsigned int*)(0x42CF0118UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A39 *((volatile unsigned int*)(0x42CF011CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A40 *((volatile unsigned int*)(0x42CF0120UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A41 *((volatile unsigned int*)(0x42CF0124UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A42 *((volatile unsigned int*)(0x42CF0128UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A43 *((volatile unsigned int*)(0x42CF012CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A44 *((volatile unsigned int*)(0x42CF0130UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A45 *((volatile unsigned int*)(0x42CF0134UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A46 *((volatile unsigned int*)(0x42CF0138UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_A47 *((volatile unsigned int*)(0x42CF013CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC0 *((volatile unsigned int*)(0x42CF0160UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC1 *((volatile unsigned int*)(0x42CF0164UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC2 *((volatile unsigned int*)(0x42CF0168UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC3 *((volatile unsigned int*)(0x42CF016CUL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC4 *((volatile unsigned int*)(0x42CF0170UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_MBC5 *((volatile unsigned int*)(0x42CF0174UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_SA *((volatile unsigned int*)(0x42CF0178UL)) +#define bFM3_ETHERNET_MAC1_MAR17H_AE *((volatile unsigned int*)(0x42CF017CUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A0 *((volatile unsigned int*)(0x42CF0180UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A1 *((volatile unsigned int*)(0x42CF0184UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A2 *((volatile unsigned int*)(0x42CF0188UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A3 *((volatile unsigned int*)(0x42CF018CUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A4 *((volatile unsigned int*)(0x42CF0190UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A5 *((volatile unsigned int*)(0x42CF0194UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A6 *((volatile unsigned int*)(0x42CF0198UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A7 *((volatile unsigned int*)(0x42CF019CUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A8 *((volatile unsigned int*)(0x42CF01A0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A9 *((volatile unsigned int*)(0x42CF01A4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A10 *((volatile unsigned int*)(0x42CF01A8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A11 *((volatile unsigned int*)(0x42CF01ACUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A12 *((volatile unsigned int*)(0x42CF01B0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A13 *((volatile unsigned int*)(0x42CF01B4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A14 *((volatile unsigned int*)(0x42CF01B8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A15 *((volatile unsigned int*)(0x42CF01BCUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A16 *((volatile unsigned int*)(0x42CF01C0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A17 *((volatile unsigned int*)(0x42CF01C4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A18 *((volatile unsigned int*)(0x42CF01C8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A19 *((volatile unsigned int*)(0x42CF01CCUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A20 *((volatile unsigned int*)(0x42CF01D0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A21 *((volatile unsigned int*)(0x42CF01D4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A22 *((volatile unsigned int*)(0x42CF01D8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A23 *((volatile unsigned int*)(0x42CF01DCUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A24 *((volatile unsigned int*)(0x42CF01E0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A25 *((volatile unsigned int*)(0x42CF01E4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A26 *((volatile unsigned int*)(0x42CF01E8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A27 *((volatile unsigned int*)(0x42CF01ECUL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A28 *((volatile unsigned int*)(0x42CF01F0UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A29 *((volatile unsigned int*)(0x42CF01F4UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A30 *((volatile unsigned int*)(0x42CF01F8UL)) +#define bFM3_ETHERNET_MAC1_MAR17L_A31 *((volatile unsigned int*)(0x42CF01FCUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A32 *((volatile unsigned int*)(0x42CF0200UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A33 *((volatile unsigned int*)(0x42CF0204UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A34 *((volatile unsigned int*)(0x42CF0208UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A35 *((volatile unsigned int*)(0x42CF020CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A36 *((volatile unsigned int*)(0x42CF0210UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A37 *((volatile unsigned int*)(0x42CF0214UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A38 *((volatile unsigned int*)(0x42CF0218UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A39 *((volatile unsigned int*)(0x42CF021CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A40 *((volatile unsigned int*)(0x42CF0220UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A41 *((volatile unsigned int*)(0x42CF0224UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A42 *((volatile unsigned int*)(0x42CF0228UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A43 *((volatile unsigned int*)(0x42CF022CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A44 *((volatile unsigned int*)(0x42CF0230UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A45 *((volatile unsigned int*)(0x42CF0234UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A46 *((volatile unsigned int*)(0x42CF0238UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_A47 *((volatile unsigned int*)(0x42CF023CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC0 *((volatile unsigned int*)(0x42CF0260UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC1 *((volatile unsigned int*)(0x42CF0264UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC2 *((volatile unsigned int*)(0x42CF0268UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC3 *((volatile unsigned int*)(0x42CF026CUL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC4 *((volatile unsigned int*)(0x42CF0270UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_MBC5 *((volatile unsigned int*)(0x42CF0274UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_SA *((volatile unsigned int*)(0x42CF0278UL)) +#define bFM3_ETHERNET_MAC1_MAR18H_AE *((volatile unsigned int*)(0x42CF027CUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A0 *((volatile unsigned int*)(0x42CF0280UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A1 *((volatile unsigned int*)(0x42CF0284UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A2 *((volatile unsigned int*)(0x42CF0288UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A3 *((volatile unsigned int*)(0x42CF028CUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A4 *((volatile unsigned int*)(0x42CF0290UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A5 *((volatile unsigned int*)(0x42CF0294UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A6 *((volatile unsigned int*)(0x42CF0298UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A7 *((volatile unsigned int*)(0x42CF029CUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A8 *((volatile unsigned int*)(0x42CF02A0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A9 *((volatile unsigned int*)(0x42CF02A4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A10 *((volatile unsigned int*)(0x42CF02A8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A11 *((volatile unsigned int*)(0x42CF02ACUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A12 *((volatile unsigned int*)(0x42CF02B0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A13 *((volatile unsigned int*)(0x42CF02B4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A14 *((volatile unsigned int*)(0x42CF02B8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A15 *((volatile unsigned int*)(0x42CF02BCUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A16 *((volatile unsigned int*)(0x42CF02C0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A17 *((volatile unsigned int*)(0x42CF02C4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A18 *((volatile unsigned int*)(0x42CF02C8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A19 *((volatile unsigned int*)(0x42CF02CCUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A20 *((volatile unsigned int*)(0x42CF02D0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A21 *((volatile unsigned int*)(0x42CF02D4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A22 *((volatile unsigned int*)(0x42CF02D8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A23 *((volatile unsigned int*)(0x42CF02DCUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A24 *((volatile unsigned int*)(0x42CF02E0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A25 *((volatile unsigned int*)(0x42CF02E4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A26 *((volatile unsigned int*)(0x42CF02E8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A27 *((volatile unsigned int*)(0x42CF02ECUL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A28 *((volatile unsigned int*)(0x42CF02F0UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A29 *((volatile unsigned int*)(0x42CF02F4UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A30 *((volatile unsigned int*)(0x42CF02F8UL)) +#define bFM3_ETHERNET_MAC1_MAR18L_A31 *((volatile unsigned int*)(0x42CF02FCUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A32 *((volatile unsigned int*)(0x42CF0300UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A33 *((volatile unsigned int*)(0x42CF0304UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A34 *((volatile unsigned int*)(0x42CF0308UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A35 *((volatile unsigned int*)(0x42CF030CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A36 *((volatile unsigned int*)(0x42CF0310UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A37 *((volatile unsigned int*)(0x42CF0314UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A38 *((volatile unsigned int*)(0x42CF0318UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A39 *((volatile unsigned int*)(0x42CF031CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A40 *((volatile unsigned int*)(0x42CF0320UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A41 *((volatile unsigned int*)(0x42CF0324UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A42 *((volatile unsigned int*)(0x42CF0328UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A43 *((volatile unsigned int*)(0x42CF032CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A44 *((volatile unsigned int*)(0x42CF0330UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A45 *((volatile unsigned int*)(0x42CF0334UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A46 *((volatile unsigned int*)(0x42CF0338UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_A47 *((volatile unsigned int*)(0x42CF033CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC0 *((volatile unsigned int*)(0x42CF0360UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC1 *((volatile unsigned int*)(0x42CF0364UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC2 *((volatile unsigned int*)(0x42CF0368UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC3 *((volatile unsigned int*)(0x42CF036CUL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC4 *((volatile unsigned int*)(0x42CF0370UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_MBC5 *((volatile unsigned int*)(0x42CF0374UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_SA *((volatile unsigned int*)(0x42CF0378UL)) +#define bFM3_ETHERNET_MAC1_MAR19H_AE *((volatile unsigned int*)(0x42CF037CUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A0 *((volatile unsigned int*)(0x42CF0380UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A1 *((volatile unsigned int*)(0x42CF0384UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A2 *((volatile unsigned int*)(0x42CF0388UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A3 *((volatile unsigned int*)(0x42CF038CUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A4 *((volatile unsigned int*)(0x42CF0390UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A5 *((volatile unsigned int*)(0x42CF0394UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A6 *((volatile unsigned int*)(0x42CF0398UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A7 *((volatile unsigned int*)(0x42CF039CUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A8 *((volatile unsigned int*)(0x42CF03A0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A9 *((volatile unsigned int*)(0x42CF03A4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A10 *((volatile unsigned int*)(0x42CF03A8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A11 *((volatile unsigned int*)(0x42CF03ACUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A12 *((volatile unsigned int*)(0x42CF03B0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A13 *((volatile unsigned int*)(0x42CF03B4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A14 *((volatile unsigned int*)(0x42CF03B8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A15 *((volatile unsigned int*)(0x42CF03BCUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A16 *((volatile unsigned int*)(0x42CF03C0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A17 *((volatile unsigned int*)(0x42CF03C4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A18 *((volatile unsigned int*)(0x42CF03C8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A19 *((volatile unsigned int*)(0x42CF03CCUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A20 *((volatile unsigned int*)(0x42CF03D0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A21 *((volatile unsigned int*)(0x42CF03D4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A22 *((volatile unsigned int*)(0x42CF03D8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A23 *((volatile unsigned int*)(0x42CF03DCUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A24 *((volatile unsigned int*)(0x42CF03E0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A25 *((volatile unsigned int*)(0x42CF03E4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A26 *((volatile unsigned int*)(0x42CF03E8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A27 *((volatile unsigned int*)(0x42CF03ECUL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A28 *((volatile unsigned int*)(0x42CF03F0UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A29 *((volatile unsigned int*)(0x42CF03F4UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A30 *((volatile unsigned int*)(0x42CF03F8UL)) +#define bFM3_ETHERNET_MAC1_MAR19L_A31 *((volatile unsigned int*)(0x42CF03FCUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A32 *((volatile unsigned int*)(0x42CF0400UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A33 *((volatile unsigned int*)(0x42CF0404UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A34 *((volatile unsigned int*)(0x42CF0408UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A35 *((volatile unsigned int*)(0x42CF040CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A36 *((volatile unsigned int*)(0x42CF0410UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A37 *((volatile unsigned int*)(0x42CF0414UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A38 *((volatile unsigned int*)(0x42CF0418UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A39 *((volatile unsigned int*)(0x42CF041CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A40 *((volatile unsigned int*)(0x42CF0420UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A41 *((volatile unsigned int*)(0x42CF0424UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A42 *((volatile unsigned int*)(0x42CF0428UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A43 *((volatile unsigned int*)(0x42CF042CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A44 *((volatile unsigned int*)(0x42CF0430UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A45 *((volatile unsigned int*)(0x42CF0434UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A46 *((volatile unsigned int*)(0x42CF0438UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_A47 *((volatile unsigned int*)(0x42CF043CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC0 *((volatile unsigned int*)(0x42CF0460UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC1 *((volatile unsigned int*)(0x42CF0464UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC2 *((volatile unsigned int*)(0x42CF0468UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC3 *((volatile unsigned int*)(0x42CF046CUL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC4 *((volatile unsigned int*)(0x42CF0470UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_MBC5 *((volatile unsigned int*)(0x42CF0474UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_SA *((volatile unsigned int*)(0x42CF0478UL)) +#define bFM3_ETHERNET_MAC1_MAR20H_AE *((volatile unsigned int*)(0x42CF047CUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A0 *((volatile unsigned int*)(0x42CF0480UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A1 *((volatile unsigned int*)(0x42CF0484UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A2 *((volatile unsigned int*)(0x42CF0488UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A3 *((volatile unsigned int*)(0x42CF048CUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A4 *((volatile unsigned int*)(0x42CF0490UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A5 *((volatile unsigned int*)(0x42CF0494UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A6 *((volatile unsigned int*)(0x42CF0498UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A7 *((volatile unsigned int*)(0x42CF049CUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A8 *((volatile unsigned int*)(0x42CF04A0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A9 *((volatile unsigned int*)(0x42CF04A4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A10 *((volatile unsigned int*)(0x42CF04A8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A11 *((volatile unsigned int*)(0x42CF04ACUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A12 *((volatile unsigned int*)(0x42CF04B0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A13 *((volatile unsigned int*)(0x42CF04B4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A14 *((volatile unsigned int*)(0x42CF04B8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A15 *((volatile unsigned int*)(0x42CF04BCUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A16 *((volatile unsigned int*)(0x42CF04C0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A17 *((volatile unsigned int*)(0x42CF04C4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A18 *((volatile unsigned int*)(0x42CF04C8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A19 *((volatile unsigned int*)(0x42CF04CCUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A20 *((volatile unsigned int*)(0x42CF04D0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A21 *((volatile unsigned int*)(0x42CF04D4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A22 *((volatile unsigned int*)(0x42CF04D8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A23 *((volatile unsigned int*)(0x42CF04DCUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A24 *((volatile unsigned int*)(0x42CF04E0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A25 *((volatile unsigned int*)(0x42CF04E4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A26 *((volatile unsigned int*)(0x42CF04E8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A27 *((volatile unsigned int*)(0x42CF04ECUL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A28 *((volatile unsigned int*)(0x42CF04F0UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A29 *((volatile unsigned int*)(0x42CF04F4UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A30 *((volatile unsigned int*)(0x42CF04F8UL)) +#define bFM3_ETHERNET_MAC1_MAR20L_A31 *((volatile unsigned int*)(0x42CF04FCUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A32 *((volatile unsigned int*)(0x42CF0500UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A33 *((volatile unsigned int*)(0x42CF0504UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A34 *((volatile unsigned int*)(0x42CF0508UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A35 *((volatile unsigned int*)(0x42CF050CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A36 *((volatile unsigned int*)(0x42CF0510UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A37 *((volatile unsigned int*)(0x42CF0514UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A38 *((volatile unsigned int*)(0x42CF0518UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A39 *((volatile unsigned int*)(0x42CF051CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A40 *((volatile unsigned int*)(0x42CF0520UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A41 *((volatile unsigned int*)(0x42CF0524UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A42 *((volatile unsigned int*)(0x42CF0528UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A43 *((volatile unsigned int*)(0x42CF052CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A44 *((volatile unsigned int*)(0x42CF0530UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A45 *((volatile unsigned int*)(0x42CF0534UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A46 *((volatile unsigned int*)(0x42CF0538UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_A47 *((volatile unsigned int*)(0x42CF053CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC0 *((volatile unsigned int*)(0x42CF0560UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC1 *((volatile unsigned int*)(0x42CF0564UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC2 *((volatile unsigned int*)(0x42CF0568UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC3 *((volatile unsigned int*)(0x42CF056CUL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC4 *((volatile unsigned int*)(0x42CF0570UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_MBC5 *((volatile unsigned int*)(0x42CF0574UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_SA *((volatile unsigned int*)(0x42CF0578UL)) +#define bFM3_ETHERNET_MAC1_MAR21H_AE *((volatile unsigned int*)(0x42CF057CUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A0 *((volatile unsigned int*)(0x42CF0580UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A1 *((volatile unsigned int*)(0x42CF0584UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A2 *((volatile unsigned int*)(0x42CF0588UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A3 *((volatile unsigned int*)(0x42CF058CUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A4 *((volatile unsigned int*)(0x42CF0590UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A5 *((volatile unsigned int*)(0x42CF0594UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A6 *((volatile unsigned int*)(0x42CF0598UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A7 *((volatile unsigned int*)(0x42CF059CUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A8 *((volatile unsigned int*)(0x42CF05A0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A9 *((volatile unsigned int*)(0x42CF05A4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A10 *((volatile unsigned int*)(0x42CF05A8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A11 *((volatile unsigned int*)(0x42CF05ACUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A12 *((volatile unsigned int*)(0x42CF05B0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A13 *((volatile unsigned int*)(0x42CF05B4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A14 *((volatile unsigned int*)(0x42CF05B8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A15 *((volatile unsigned int*)(0x42CF05BCUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A16 *((volatile unsigned int*)(0x42CF05C0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A17 *((volatile unsigned int*)(0x42CF05C4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A18 *((volatile unsigned int*)(0x42CF05C8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A19 *((volatile unsigned int*)(0x42CF05CCUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A20 *((volatile unsigned int*)(0x42CF05D0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A21 *((volatile unsigned int*)(0x42CF05D4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A22 *((volatile unsigned int*)(0x42CF05D8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A23 *((volatile unsigned int*)(0x42CF05DCUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A24 *((volatile unsigned int*)(0x42CF05E0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A25 *((volatile unsigned int*)(0x42CF05E4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A26 *((volatile unsigned int*)(0x42CF05E8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A27 *((volatile unsigned int*)(0x42CF05ECUL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A28 *((volatile unsigned int*)(0x42CF05F0UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A29 *((volatile unsigned int*)(0x42CF05F4UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A30 *((volatile unsigned int*)(0x42CF05F8UL)) +#define bFM3_ETHERNET_MAC1_MAR21L_A31 *((volatile unsigned int*)(0x42CF05FCUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A32 *((volatile unsigned int*)(0x42CF0600UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A33 *((volatile unsigned int*)(0x42CF0604UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A34 *((volatile unsigned int*)(0x42CF0608UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A35 *((volatile unsigned int*)(0x42CF060CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A36 *((volatile unsigned int*)(0x42CF0610UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A37 *((volatile unsigned int*)(0x42CF0614UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A38 *((volatile unsigned int*)(0x42CF0618UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A39 *((volatile unsigned int*)(0x42CF061CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A40 *((volatile unsigned int*)(0x42CF0620UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A41 *((volatile unsigned int*)(0x42CF0624UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A42 *((volatile unsigned int*)(0x42CF0628UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A43 *((volatile unsigned int*)(0x42CF062CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A44 *((volatile unsigned int*)(0x42CF0630UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A45 *((volatile unsigned int*)(0x42CF0634UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A46 *((volatile unsigned int*)(0x42CF0638UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_A47 *((volatile unsigned int*)(0x42CF063CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC0 *((volatile unsigned int*)(0x42CF0660UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC1 *((volatile unsigned int*)(0x42CF0664UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC2 *((volatile unsigned int*)(0x42CF0668UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC3 *((volatile unsigned int*)(0x42CF066CUL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC4 *((volatile unsigned int*)(0x42CF0670UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_MBC5 *((volatile unsigned int*)(0x42CF0674UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_SA *((volatile unsigned int*)(0x42CF0678UL)) +#define bFM3_ETHERNET_MAC1_MAR22H_AE *((volatile unsigned int*)(0x42CF067CUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A0 *((volatile unsigned int*)(0x42CF0680UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A1 *((volatile unsigned int*)(0x42CF0684UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A2 *((volatile unsigned int*)(0x42CF0688UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A3 *((volatile unsigned int*)(0x42CF068CUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A4 *((volatile unsigned int*)(0x42CF0690UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A5 *((volatile unsigned int*)(0x42CF0694UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A6 *((volatile unsigned int*)(0x42CF0698UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A7 *((volatile unsigned int*)(0x42CF069CUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A8 *((volatile unsigned int*)(0x42CF06A0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A9 *((volatile unsigned int*)(0x42CF06A4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A10 *((volatile unsigned int*)(0x42CF06A8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A11 *((volatile unsigned int*)(0x42CF06ACUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A12 *((volatile unsigned int*)(0x42CF06B0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A13 *((volatile unsigned int*)(0x42CF06B4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A14 *((volatile unsigned int*)(0x42CF06B8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A15 *((volatile unsigned int*)(0x42CF06BCUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A16 *((volatile unsigned int*)(0x42CF06C0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A17 *((volatile unsigned int*)(0x42CF06C4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A18 *((volatile unsigned int*)(0x42CF06C8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A19 *((volatile unsigned int*)(0x42CF06CCUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A20 *((volatile unsigned int*)(0x42CF06D0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A21 *((volatile unsigned int*)(0x42CF06D4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A22 *((volatile unsigned int*)(0x42CF06D8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A23 *((volatile unsigned int*)(0x42CF06DCUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A24 *((volatile unsigned int*)(0x42CF06E0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A25 *((volatile unsigned int*)(0x42CF06E4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A26 *((volatile unsigned int*)(0x42CF06E8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A27 *((volatile unsigned int*)(0x42CF06ECUL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A28 *((volatile unsigned int*)(0x42CF06F0UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A29 *((volatile unsigned int*)(0x42CF06F4UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A30 *((volatile unsigned int*)(0x42CF06F8UL)) +#define bFM3_ETHERNET_MAC1_MAR22L_A31 *((volatile unsigned int*)(0x42CF06FCUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A32 *((volatile unsigned int*)(0x42CF0700UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A33 *((volatile unsigned int*)(0x42CF0704UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A34 *((volatile unsigned int*)(0x42CF0708UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A35 *((volatile unsigned int*)(0x42CF070CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A36 *((volatile unsigned int*)(0x42CF0710UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A37 *((volatile unsigned int*)(0x42CF0714UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A38 *((volatile unsigned int*)(0x42CF0718UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A39 *((volatile unsigned int*)(0x42CF071CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A40 *((volatile unsigned int*)(0x42CF0720UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A41 *((volatile unsigned int*)(0x42CF0724UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A42 *((volatile unsigned int*)(0x42CF0728UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A43 *((volatile unsigned int*)(0x42CF072CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A44 *((volatile unsigned int*)(0x42CF0730UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A45 *((volatile unsigned int*)(0x42CF0734UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A46 *((volatile unsigned int*)(0x42CF0738UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_A47 *((volatile unsigned int*)(0x42CF073CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC0 *((volatile unsigned int*)(0x42CF0760UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC1 *((volatile unsigned int*)(0x42CF0764UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC2 *((volatile unsigned int*)(0x42CF0768UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC3 *((volatile unsigned int*)(0x42CF076CUL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC4 *((volatile unsigned int*)(0x42CF0770UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_MBC5 *((volatile unsigned int*)(0x42CF0774UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_SA *((volatile unsigned int*)(0x42CF0778UL)) +#define bFM3_ETHERNET_MAC1_MAR23H_AE *((volatile unsigned int*)(0x42CF077CUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A0 *((volatile unsigned int*)(0x42CF0780UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A1 *((volatile unsigned int*)(0x42CF0784UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A2 *((volatile unsigned int*)(0x42CF0788UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A3 *((volatile unsigned int*)(0x42CF078CUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A4 *((volatile unsigned int*)(0x42CF0790UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A5 *((volatile unsigned int*)(0x42CF0794UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A6 *((volatile unsigned int*)(0x42CF0798UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A7 *((volatile unsigned int*)(0x42CF079CUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A8 *((volatile unsigned int*)(0x42CF07A0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A9 *((volatile unsigned int*)(0x42CF07A4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A10 *((volatile unsigned int*)(0x42CF07A8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A11 *((volatile unsigned int*)(0x42CF07ACUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A12 *((volatile unsigned int*)(0x42CF07B0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A13 *((volatile unsigned int*)(0x42CF07B4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A14 *((volatile unsigned int*)(0x42CF07B8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A15 *((volatile unsigned int*)(0x42CF07BCUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A16 *((volatile unsigned int*)(0x42CF07C0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A17 *((volatile unsigned int*)(0x42CF07C4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A18 *((volatile unsigned int*)(0x42CF07C8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A19 *((volatile unsigned int*)(0x42CF07CCUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A20 *((volatile unsigned int*)(0x42CF07D0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A21 *((volatile unsigned int*)(0x42CF07D4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A22 *((volatile unsigned int*)(0x42CF07D8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A23 *((volatile unsigned int*)(0x42CF07DCUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A24 *((volatile unsigned int*)(0x42CF07E0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A25 *((volatile unsigned int*)(0x42CF07E4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A26 *((volatile unsigned int*)(0x42CF07E8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A27 *((volatile unsigned int*)(0x42CF07ECUL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A28 *((volatile unsigned int*)(0x42CF07F0UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A29 *((volatile unsigned int*)(0x42CF07F4UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A30 *((volatile unsigned int*)(0x42CF07F8UL)) +#define bFM3_ETHERNET_MAC1_MAR23L_A31 *((volatile unsigned int*)(0x42CF07FCUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A32 *((volatile unsigned int*)(0x42CF0800UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A33 *((volatile unsigned int*)(0x42CF0804UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A34 *((volatile unsigned int*)(0x42CF0808UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A35 *((volatile unsigned int*)(0x42CF080CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A36 *((volatile unsigned int*)(0x42CF0810UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A37 *((volatile unsigned int*)(0x42CF0814UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A38 *((volatile unsigned int*)(0x42CF0818UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A39 *((volatile unsigned int*)(0x42CF081CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A40 *((volatile unsigned int*)(0x42CF0820UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A41 *((volatile unsigned int*)(0x42CF0824UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A42 *((volatile unsigned int*)(0x42CF0828UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A43 *((volatile unsigned int*)(0x42CF082CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A44 *((volatile unsigned int*)(0x42CF0830UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A45 *((volatile unsigned int*)(0x42CF0834UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A46 *((volatile unsigned int*)(0x42CF0838UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_A47 *((volatile unsigned int*)(0x42CF083CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC0 *((volatile unsigned int*)(0x42CF0860UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC1 *((volatile unsigned int*)(0x42CF0864UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC2 *((volatile unsigned int*)(0x42CF0868UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC3 *((volatile unsigned int*)(0x42CF086CUL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC4 *((volatile unsigned int*)(0x42CF0870UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_MBC5 *((volatile unsigned int*)(0x42CF0874UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_SA *((volatile unsigned int*)(0x42CF0878UL)) +#define bFM3_ETHERNET_MAC1_MAR24H_AE *((volatile unsigned int*)(0x42CF087CUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A0 *((volatile unsigned int*)(0x42CF0880UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A1 *((volatile unsigned int*)(0x42CF0884UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A2 *((volatile unsigned int*)(0x42CF0888UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A3 *((volatile unsigned int*)(0x42CF088CUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A4 *((volatile unsigned int*)(0x42CF0890UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A5 *((volatile unsigned int*)(0x42CF0894UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A6 *((volatile unsigned int*)(0x42CF0898UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A7 *((volatile unsigned int*)(0x42CF089CUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A8 *((volatile unsigned int*)(0x42CF08A0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A9 *((volatile unsigned int*)(0x42CF08A4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A10 *((volatile unsigned int*)(0x42CF08A8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A11 *((volatile unsigned int*)(0x42CF08ACUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A12 *((volatile unsigned int*)(0x42CF08B0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A13 *((volatile unsigned int*)(0x42CF08B4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A14 *((volatile unsigned int*)(0x42CF08B8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A15 *((volatile unsigned int*)(0x42CF08BCUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A16 *((volatile unsigned int*)(0x42CF08C0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A17 *((volatile unsigned int*)(0x42CF08C4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A18 *((volatile unsigned int*)(0x42CF08C8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A19 *((volatile unsigned int*)(0x42CF08CCUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A20 *((volatile unsigned int*)(0x42CF08D0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A21 *((volatile unsigned int*)(0x42CF08D4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A22 *((volatile unsigned int*)(0x42CF08D8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A23 *((volatile unsigned int*)(0x42CF08DCUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A24 *((volatile unsigned int*)(0x42CF08E0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A25 *((volatile unsigned int*)(0x42CF08E4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A26 *((volatile unsigned int*)(0x42CF08E8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A27 *((volatile unsigned int*)(0x42CF08ECUL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A28 *((volatile unsigned int*)(0x42CF08F0UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A29 *((volatile unsigned int*)(0x42CF08F4UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A30 *((volatile unsigned int*)(0x42CF08F8UL)) +#define bFM3_ETHERNET_MAC1_MAR24L_A31 *((volatile unsigned int*)(0x42CF08FCUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A32 *((volatile unsigned int*)(0x42CF0900UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A33 *((volatile unsigned int*)(0x42CF0904UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A34 *((volatile unsigned int*)(0x42CF0908UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A35 *((volatile unsigned int*)(0x42CF090CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A36 *((volatile unsigned int*)(0x42CF0910UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A37 *((volatile unsigned int*)(0x42CF0914UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A38 *((volatile unsigned int*)(0x42CF0918UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A39 *((volatile unsigned int*)(0x42CF091CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A40 *((volatile unsigned int*)(0x42CF0920UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A41 *((volatile unsigned int*)(0x42CF0924UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A42 *((volatile unsigned int*)(0x42CF0928UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A43 *((volatile unsigned int*)(0x42CF092CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A44 *((volatile unsigned int*)(0x42CF0930UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A45 *((volatile unsigned int*)(0x42CF0934UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A46 *((volatile unsigned int*)(0x42CF0938UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_A47 *((volatile unsigned int*)(0x42CF093CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC0 *((volatile unsigned int*)(0x42CF0960UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC1 *((volatile unsigned int*)(0x42CF0964UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC2 *((volatile unsigned int*)(0x42CF0968UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC3 *((volatile unsigned int*)(0x42CF096CUL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC4 *((volatile unsigned int*)(0x42CF0970UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_MBC5 *((volatile unsigned int*)(0x42CF0974UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_SA *((volatile unsigned int*)(0x42CF0978UL)) +#define bFM3_ETHERNET_MAC1_MAR25H_AE *((volatile unsigned int*)(0x42CF097CUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A0 *((volatile unsigned int*)(0x42CF0980UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A1 *((volatile unsigned int*)(0x42CF0984UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A2 *((volatile unsigned int*)(0x42CF0988UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A3 *((volatile unsigned int*)(0x42CF098CUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A4 *((volatile unsigned int*)(0x42CF0990UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A5 *((volatile unsigned int*)(0x42CF0994UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A6 *((volatile unsigned int*)(0x42CF0998UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A7 *((volatile unsigned int*)(0x42CF099CUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A8 *((volatile unsigned int*)(0x42CF09A0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A9 *((volatile unsigned int*)(0x42CF09A4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A10 *((volatile unsigned int*)(0x42CF09A8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A11 *((volatile unsigned int*)(0x42CF09ACUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A12 *((volatile unsigned int*)(0x42CF09B0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A13 *((volatile unsigned int*)(0x42CF09B4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A14 *((volatile unsigned int*)(0x42CF09B8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A15 *((volatile unsigned int*)(0x42CF09BCUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A16 *((volatile unsigned int*)(0x42CF09C0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A17 *((volatile unsigned int*)(0x42CF09C4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A18 *((volatile unsigned int*)(0x42CF09C8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A19 *((volatile unsigned int*)(0x42CF09CCUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A20 *((volatile unsigned int*)(0x42CF09D0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A21 *((volatile unsigned int*)(0x42CF09D4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A22 *((volatile unsigned int*)(0x42CF09D8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A23 *((volatile unsigned int*)(0x42CF09DCUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A24 *((volatile unsigned int*)(0x42CF09E0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A25 *((volatile unsigned int*)(0x42CF09E4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A26 *((volatile unsigned int*)(0x42CF09E8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A27 *((volatile unsigned int*)(0x42CF09ECUL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A28 *((volatile unsigned int*)(0x42CF09F0UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A29 *((volatile unsigned int*)(0x42CF09F4UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A30 *((volatile unsigned int*)(0x42CF09F8UL)) +#define bFM3_ETHERNET_MAC1_MAR25L_A31 *((volatile unsigned int*)(0x42CF09FCUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A32 *((volatile unsigned int*)(0x42CF0A00UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A33 *((volatile unsigned int*)(0x42CF0A04UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A34 *((volatile unsigned int*)(0x42CF0A08UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A35 *((volatile unsigned int*)(0x42CF0A0CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A36 *((volatile unsigned int*)(0x42CF0A10UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A37 *((volatile unsigned int*)(0x42CF0A14UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A38 *((volatile unsigned int*)(0x42CF0A18UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A39 *((volatile unsigned int*)(0x42CF0A1CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A40 *((volatile unsigned int*)(0x42CF0A20UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A41 *((volatile unsigned int*)(0x42CF0A24UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A42 *((volatile unsigned int*)(0x42CF0A28UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A43 *((volatile unsigned int*)(0x42CF0A2CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A44 *((volatile unsigned int*)(0x42CF0A30UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A45 *((volatile unsigned int*)(0x42CF0A34UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A46 *((volatile unsigned int*)(0x42CF0A38UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_A47 *((volatile unsigned int*)(0x42CF0A3CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC0 *((volatile unsigned int*)(0x42CF0A60UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC1 *((volatile unsigned int*)(0x42CF0A64UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC2 *((volatile unsigned int*)(0x42CF0A68UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC3 *((volatile unsigned int*)(0x42CF0A6CUL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC4 *((volatile unsigned int*)(0x42CF0A70UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_MBC5 *((volatile unsigned int*)(0x42CF0A74UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_SA *((volatile unsigned int*)(0x42CF0A78UL)) +#define bFM3_ETHERNET_MAC1_MAR26H_AE *((volatile unsigned int*)(0x42CF0A7CUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A0 *((volatile unsigned int*)(0x42CF0A80UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A1 *((volatile unsigned int*)(0x42CF0A84UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A2 *((volatile unsigned int*)(0x42CF0A88UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A3 *((volatile unsigned int*)(0x42CF0A8CUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A4 *((volatile unsigned int*)(0x42CF0A90UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A5 *((volatile unsigned int*)(0x42CF0A94UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A6 *((volatile unsigned int*)(0x42CF0A98UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A7 *((volatile unsigned int*)(0x42CF0A9CUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A8 *((volatile unsigned int*)(0x42CF0AA0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A9 *((volatile unsigned int*)(0x42CF0AA4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A10 *((volatile unsigned int*)(0x42CF0AA8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A11 *((volatile unsigned int*)(0x42CF0AACUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A12 *((volatile unsigned int*)(0x42CF0AB0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A13 *((volatile unsigned int*)(0x42CF0AB4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A14 *((volatile unsigned int*)(0x42CF0AB8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A15 *((volatile unsigned int*)(0x42CF0ABCUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A16 *((volatile unsigned int*)(0x42CF0AC0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A17 *((volatile unsigned int*)(0x42CF0AC4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A18 *((volatile unsigned int*)(0x42CF0AC8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A19 *((volatile unsigned int*)(0x42CF0ACCUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A20 *((volatile unsigned int*)(0x42CF0AD0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A21 *((volatile unsigned int*)(0x42CF0AD4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A22 *((volatile unsigned int*)(0x42CF0AD8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A23 *((volatile unsigned int*)(0x42CF0ADCUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A24 *((volatile unsigned int*)(0x42CF0AE0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A25 *((volatile unsigned int*)(0x42CF0AE4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A26 *((volatile unsigned int*)(0x42CF0AE8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A27 *((volatile unsigned int*)(0x42CF0AECUL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A28 *((volatile unsigned int*)(0x42CF0AF0UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A29 *((volatile unsigned int*)(0x42CF0AF4UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A30 *((volatile unsigned int*)(0x42CF0AF8UL)) +#define bFM3_ETHERNET_MAC1_MAR26L_A31 *((volatile unsigned int*)(0x42CF0AFCUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A32 *((volatile unsigned int*)(0x42CF0B00UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A33 *((volatile unsigned int*)(0x42CF0B04UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A34 *((volatile unsigned int*)(0x42CF0B08UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A35 *((volatile unsigned int*)(0x42CF0B0CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A36 *((volatile unsigned int*)(0x42CF0B10UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A37 *((volatile unsigned int*)(0x42CF0B14UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A38 *((volatile unsigned int*)(0x42CF0B18UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A39 *((volatile unsigned int*)(0x42CF0B1CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A40 *((volatile unsigned int*)(0x42CF0B20UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A41 *((volatile unsigned int*)(0x42CF0B24UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A42 *((volatile unsigned int*)(0x42CF0B28UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A43 *((volatile unsigned int*)(0x42CF0B2CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A44 *((volatile unsigned int*)(0x42CF0B30UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A45 *((volatile unsigned int*)(0x42CF0B34UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A46 *((volatile unsigned int*)(0x42CF0B38UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_A47 *((volatile unsigned int*)(0x42CF0B3CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC0 *((volatile unsigned int*)(0x42CF0B60UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC1 *((volatile unsigned int*)(0x42CF0B64UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC2 *((volatile unsigned int*)(0x42CF0B68UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC3 *((volatile unsigned int*)(0x42CF0B6CUL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC4 *((volatile unsigned int*)(0x42CF0B70UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_MBC5 *((volatile unsigned int*)(0x42CF0B74UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_SA *((volatile unsigned int*)(0x42CF0B78UL)) +#define bFM3_ETHERNET_MAC1_MAR27H_AE *((volatile unsigned int*)(0x42CF0B7CUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A0 *((volatile unsigned int*)(0x42CF0B80UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A1 *((volatile unsigned int*)(0x42CF0B84UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A2 *((volatile unsigned int*)(0x42CF0B88UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A3 *((volatile unsigned int*)(0x42CF0B8CUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A4 *((volatile unsigned int*)(0x42CF0B90UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A5 *((volatile unsigned int*)(0x42CF0B94UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A6 *((volatile unsigned int*)(0x42CF0B98UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A7 *((volatile unsigned int*)(0x42CF0B9CUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A8 *((volatile unsigned int*)(0x42CF0BA0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A9 *((volatile unsigned int*)(0x42CF0BA4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A10 *((volatile unsigned int*)(0x42CF0BA8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A11 *((volatile unsigned int*)(0x42CF0BACUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A12 *((volatile unsigned int*)(0x42CF0BB0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A13 *((volatile unsigned int*)(0x42CF0BB4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A14 *((volatile unsigned int*)(0x42CF0BB8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A15 *((volatile unsigned int*)(0x42CF0BBCUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A16 *((volatile unsigned int*)(0x42CF0BC0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A17 *((volatile unsigned int*)(0x42CF0BC4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A18 *((volatile unsigned int*)(0x42CF0BC8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A19 *((volatile unsigned int*)(0x42CF0BCCUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A20 *((volatile unsigned int*)(0x42CF0BD0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A21 *((volatile unsigned int*)(0x42CF0BD4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A22 *((volatile unsigned int*)(0x42CF0BD8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A23 *((volatile unsigned int*)(0x42CF0BDCUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A24 *((volatile unsigned int*)(0x42CF0BE0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A25 *((volatile unsigned int*)(0x42CF0BE4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A26 *((volatile unsigned int*)(0x42CF0BE8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A27 *((volatile unsigned int*)(0x42CF0BECUL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A28 *((volatile unsigned int*)(0x42CF0BF0UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A29 *((volatile unsigned int*)(0x42CF0BF4UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A30 *((volatile unsigned int*)(0x42CF0BF8UL)) +#define bFM3_ETHERNET_MAC1_MAR27L_A31 *((volatile unsigned int*)(0x42CF0BFCUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A32 *((volatile unsigned int*)(0x42CF0C00UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A33 *((volatile unsigned int*)(0x42CF0C04UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A34 *((volatile unsigned int*)(0x42CF0C08UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A35 *((volatile unsigned int*)(0x42CF0C0CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A36 *((volatile unsigned int*)(0x42CF0C10UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A37 *((volatile unsigned int*)(0x42CF0C14UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A38 *((volatile unsigned int*)(0x42CF0C18UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A39 *((volatile unsigned int*)(0x42CF0C1CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A40 *((volatile unsigned int*)(0x42CF0C20UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A41 *((volatile unsigned int*)(0x42CF0C24UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A42 *((volatile unsigned int*)(0x42CF0C28UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A43 *((volatile unsigned int*)(0x42CF0C2CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A44 *((volatile unsigned int*)(0x42CF0C30UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A45 *((volatile unsigned int*)(0x42CF0C34UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A46 *((volatile unsigned int*)(0x42CF0C38UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_A47 *((volatile unsigned int*)(0x42CF0C3CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC0 *((volatile unsigned int*)(0x42CF0C60UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC1 *((volatile unsigned int*)(0x42CF0C64UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC2 *((volatile unsigned int*)(0x42CF0C68UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC3 *((volatile unsigned int*)(0x42CF0C6CUL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC4 *((volatile unsigned int*)(0x42CF0C70UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_MBC5 *((volatile unsigned int*)(0x42CF0C74UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_SA *((volatile unsigned int*)(0x42CF0C78UL)) +#define bFM3_ETHERNET_MAC1_MAR28H_AE *((volatile unsigned int*)(0x42CF0C7CUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A0 *((volatile unsigned int*)(0x42CF0C80UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A1 *((volatile unsigned int*)(0x42CF0C84UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A2 *((volatile unsigned int*)(0x42CF0C88UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A3 *((volatile unsigned int*)(0x42CF0C8CUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A4 *((volatile unsigned int*)(0x42CF0C90UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A5 *((volatile unsigned int*)(0x42CF0C94UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A6 *((volatile unsigned int*)(0x42CF0C98UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A7 *((volatile unsigned int*)(0x42CF0C9CUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A8 *((volatile unsigned int*)(0x42CF0CA0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A9 *((volatile unsigned int*)(0x42CF0CA4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A10 *((volatile unsigned int*)(0x42CF0CA8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A11 *((volatile unsigned int*)(0x42CF0CACUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A12 *((volatile unsigned int*)(0x42CF0CB0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A13 *((volatile unsigned int*)(0x42CF0CB4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A14 *((volatile unsigned int*)(0x42CF0CB8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A15 *((volatile unsigned int*)(0x42CF0CBCUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A16 *((volatile unsigned int*)(0x42CF0CC0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A17 *((volatile unsigned int*)(0x42CF0CC4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A18 *((volatile unsigned int*)(0x42CF0CC8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A19 *((volatile unsigned int*)(0x42CF0CCCUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A20 *((volatile unsigned int*)(0x42CF0CD0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A21 *((volatile unsigned int*)(0x42CF0CD4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A22 *((volatile unsigned int*)(0x42CF0CD8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A23 *((volatile unsigned int*)(0x42CF0CDCUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A24 *((volatile unsigned int*)(0x42CF0CE0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A25 *((volatile unsigned int*)(0x42CF0CE4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A26 *((volatile unsigned int*)(0x42CF0CE8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A27 *((volatile unsigned int*)(0x42CF0CECUL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A28 *((volatile unsigned int*)(0x42CF0CF0UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A29 *((volatile unsigned int*)(0x42CF0CF4UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A30 *((volatile unsigned int*)(0x42CF0CF8UL)) +#define bFM3_ETHERNET_MAC1_MAR28L_A31 *((volatile unsigned int*)(0x42CF0CFCUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A32 *((volatile unsigned int*)(0x42CF0D00UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A33 *((volatile unsigned int*)(0x42CF0D04UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A34 *((volatile unsigned int*)(0x42CF0D08UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A35 *((volatile unsigned int*)(0x42CF0D0CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A36 *((volatile unsigned int*)(0x42CF0D10UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A37 *((volatile unsigned int*)(0x42CF0D14UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A38 *((volatile unsigned int*)(0x42CF0D18UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A39 *((volatile unsigned int*)(0x42CF0D1CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A40 *((volatile unsigned int*)(0x42CF0D20UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A41 *((volatile unsigned int*)(0x42CF0D24UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A42 *((volatile unsigned int*)(0x42CF0D28UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A43 *((volatile unsigned int*)(0x42CF0D2CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A44 *((volatile unsigned int*)(0x42CF0D30UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A45 *((volatile unsigned int*)(0x42CF0D34UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A46 *((volatile unsigned int*)(0x42CF0D38UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_A47 *((volatile unsigned int*)(0x42CF0D3CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC0 *((volatile unsigned int*)(0x42CF0D60UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC1 *((volatile unsigned int*)(0x42CF0D64UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC2 *((volatile unsigned int*)(0x42CF0D68UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC3 *((volatile unsigned int*)(0x42CF0D6CUL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC4 *((volatile unsigned int*)(0x42CF0D70UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_MBC5 *((volatile unsigned int*)(0x42CF0D74UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_SA *((volatile unsigned int*)(0x42CF0D78UL)) +#define bFM3_ETHERNET_MAC1_MAR29H_AE *((volatile unsigned int*)(0x42CF0D7CUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A0 *((volatile unsigned int*)(0x42CF0D80UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A1 *((volatile unsigned int*)(0x42CF0D84UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A2 *((volatile unsigned int*)(0x42CF0D88UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A3 *((volatile unsigned int*)(0x42CF0D8CUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A4 *((volatile unsigned int*)(0x42CF0D90UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A5 *((volatile unsigned int*)(0x42CF0D94UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A6 *((volatile unsigned int*)(0x42CF0D98UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A7 *((volatile unsigned int*)(0x42CF0D9CUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A8 *((volatile unsigned int*)(0x42CF0DA0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A9 *((volatile unsigned int*)(0x42CF0DA4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A10 *((volatile unsigned int*)(0x42CF0DA8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A11 *((volatile unsigned int*)(0x42CF0DACUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A12 *((volatile unsigned int*)(0x42CF0DB0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A13 *((volatile unsigned int*)(0x42CF0DB4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A14 *((volatile unsigned int*)(0x42CF0DB8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A15 *((volatile unsigned int*)(0x42CF0DBCUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A16 *((volatile unsigned int*)(0x42CF0DC0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A17 *((volatile unsigned int*)(0x42CF0DC4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A18 *((volatile unsigned int*)(0x42CF0DC8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A19 *((volatile unsigned int*)(0x42CF0DCCUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A20 *((volatile unsigned int*)(0x42CF0DD0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A21 *((volatile unsigned int*)(0x42CF0DD4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A22 *((volatile unsigned int*)(0x42CF0DD8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A23 *((volatile unsigned int*)(0x42CF0DDCUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A24 *((volatile unsigned int*)(0x42CF0DE0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A25 *((volatile unsigned int*)(0x42CF0DE4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A26 *((volatile unsigned int*)(0x42CF0DE8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A27 *((volatile unsigned int*)(0x42CF0DECUL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A28 *((volatile unsigned int*)(0x42CF0DF0UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A29 *((volatile unsigned int*)(0x42CF0DF4UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A30 *((volatile unsigned int*)(0x42CF0DF8UL)) +#define bFM3_ETHERNET_MAC1_MAR29L_A31 *((volatile unsigned int*)(0x42CF0DFCUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A32 *((volatile unsigned int*)(0x42CF0E00UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A33 *((volatile unsigned int*)(0x42CF0E04UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A34 *((volatile unsigned int*)(0x42CF0E08UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A35 *((volatile unsigned int*)(0x42CF0E0CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A36 *((volatile unsigned int*)(0x42CF0E10UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A37 *((volatile unsigned int*)(0x42CF0E14UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A38 *((volatile unsigned int*)(0x42CF0E18UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A39 *((volatile unsigned int*)(0x42CF0E1CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A40 *((volatile unsigned int*)(0x42CF0E20UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A41 *((volatile unsigned int*)(0x42CF0E24UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A42 *((volatile unsigned int*)(0x42CF0E28UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A43 *((volatile unsigned int*)(0x42CF0E2CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A44 *((volatile unsigned int*)(0x42CF0E30UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A45 *((volatile unsigned int*)(0x42CF0E34UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A46 *((volatile unsigned int*)(0x42CF0E38UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_A47 *((volatile unsigned int*)(0x42CF0E3CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC0 *((volatile unsigned int*)(0x42CF0E60UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC1 *((volatile unsigned int*)(0x42CF0E64UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC2 *((volatile unsigned int*)(0x42CF0E68UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC3 *((volatile unsigned int*)(0x42CF0E6CUL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC4 *((volatile unsigned int*)(0x42CF0E70UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_MBC5 *((volatile unsigned int*)(0x42CF0E74UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_SA *((volatile unsigned int*)(0x42CF0E78UL)) +#define bFM3_ETHERNET_MAC1_MAR30H_AE *((volatile unsigned int*)(0x42CF0E7CUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A0 *((volatile unsigned int*)(0x42CF0E80UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A1 *((volatile unsigned int*)(0x42CF0E84UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A2 *((volatile unsigned int*)(0x42CF0E88UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A3 *((volatile unsigned int*)(0x42CF0E8CUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A4 *((volatile unsigned int*)(0x42CF0E90UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A5 *((volatile unsigned int*)(0x42CF0E94UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A6 *((volatile unsigned int*)(0x42CF0E98UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A7 *((volatile unsigned int*)(0x42CF0E9CUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A8 *((volatile unsigned int*)(0x42CF0EA0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A9 *((volatile unsigned int*)(0x42CF0EA4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A10 *((volatile unsigned int*)(0x42CF0EA8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A11 *((volatile unsigned int*)(0x42CF0EACUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A12 *((volatile unsigned int*)(0x42CF0EB0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A13 *((volatile unsigned int*)(0x42CF0EB4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A14 *((volatile unsigned int*)(0x42CF0EB8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A15 *((volatile unsigned int*)(0x42CF0EBCUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A16 *((volatile unsigned int*)(0x42CF0EC0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A17 *((volatile unsigned int*)(0x42CF0EC4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A18 *((volatile unsigned int*)(0x42CF0EC8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A19 *((volatile unsigned int*)(0x42CF0ECCUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A20 *((volatile unsigned int*)(0x42CF0ED0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A21 *((volatile unsigned int*)(0x42CF0ED4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A22 *((volatile unsigned int*)(0x42CF0ED8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A23 *((volatile unsigned int*)(0x42CF0EDCUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A24 *((volatile unsigned int*)(0x42CF0EE0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A25 *((volatile unsigned int*)(0x42CF0EE4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A26 *((volatile unsigned int*)(0x42CF0EE8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A27 *((volatile unsigned int*)(0x42CF0EECUL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A28 *((volatile unsigned int*)(0x42CF0EF0UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A29 *((volatile unsigned int*)(0x42CF0EF4UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A30 *((volatile unsigned int*)(0x42CF0EF8UL)) +#define bFM3_ETHERNET_MAC1_MAR30L_A31 *((volatile unsigned int*)(0x42CF0EFCUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A32 *((volatile unsigned int*)(0x42CF0F00UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A33 *((volatile unsigned int*)(0x42CF0F04UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A34 *((volatile unsigned int*)(0x42CF0F08UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A35 *((volatile unsigned int*)(0x42CF0F0CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A36 *((volatile unsigned int*)(0x42CF0F10UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A37 *((volatile unsigned int*)(0x42CF0F14UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A38 *((volatile unsigned int*)(0x42CF0F18UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A39 *((volatile unsigned int*)(0x42CF0F1CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A40 *((volatile unsigned int*)(0x42CF0F20UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A41 *((volatile unsigned int*)(0x42CF0F24UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A42 *((volatile unsigned int*)(0x42CF0F28UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A43 *((volatile unsigned int*)(0x42CF0F2CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A44 *((volatile unsigned int*)(0x42CF0F30UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A45 *((volatile unsigned int*)(0x42CF0F34UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A46 *((volatile unsigned int*)(0x42CF0F38UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_A47 *((volatile unsigned int*)(0x42CF0F3CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC0 *((volatile unsigned int*)(0x42CF0F60UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC1 *((volatile unsigned int*)(0x42CF0F64UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC2 *((volatile unsigned int*)(0x42CF0F68UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC3 *((volatile unsigned int*)(0x42CF0F6CUL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC4 *((volatile unsigned int*)(0x42CF0F70UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_MBC5 *((volatile unsigned int*)(0x42CF0F74UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_SA *((volatile unsigned int*)(0x42CF0F78UL)) +#define bFM3_ETHERNET_MAC1_MAR31H_AE *((volatile unsigned int*)(0x42CF0F7CUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A0 *((volatile unsigned int*)(0x42CF0F80UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A1 *((volatile unsigned int*)(0x42CF0F84UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A2 *((volatile unsigned int*)(0x42CF0F88UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A3 *((volatile unsigned int*)(0x42CF0F8CUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A4 *((volatile unsigned int*)(0x42CF0F90UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A5 *((volatile unsigned int*)(0x42CF0F94UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A6 *((volatile unsigned int*)(0x42CF0F98UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A7 *((volatile unsigned int*)(0x42CF0F9CUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A8 *((volatile unsigned int*)(0x42CF0FA0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A9 *((volatile unsigned int*)(0x42CF0FA4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A10 *((volatile unsigned int*)(0x42CF0FA8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A11 *((volatile unsigned int*)(0x42CF0FACUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A12 *((volatile unsigned int*)(0x42CF0FB0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A13 *((volatile unsigned int*)(0x42CF0FB4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A14 *((volatile unsigned int*)(0x42CF0FB8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A15 *((volatile unsigned int*)(0x42CF0FBCUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A16 *((volatile unsigned int*)(0x42CF0FC0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A17 *((volatile unsigned int*)(0x42CF0FC4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A18 *((volatile unsigned int*)(0x42CF0FC8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A19 *((volatile unsigned int*)(0x42CF0FCCUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A20 *((volatile unsigned int*)(0x42CF0FD0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A21 *((volatile unsigned int*)(0x42CF0FD4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A22 *((volatile unsigned int*)(0x42CF0FD8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A23 *((volatile unsigned int*)(0x42CF0FDCUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A24 *((volatile unsigned int*)(0x42CF0FE0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A25 *((volatile unsigned int*)(0x42CF0FE4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A26 *((volatile unsigned int*)(0x42CF0FE8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A27 *((volatile unsigned int*)(0x42CF0FECUL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A28 *((volatile unsigned int*)(0x42CF0FF0UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A29 *((volatile unsigned int*)(0x42CF0FF4UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A30 *((volatile unsigned int*)(0x42CF0FF8UL)) +#define bFM3_ETHERNET_MAC1_MAR31L_A31 *((volatile unsigned int*)(0x42CF0FFCUL)) +#define bFM3_ETHERNET_MAC1_BMR_SWR *((volatile unsigned int*)(0x42D00000UL)) +#define bFM3_ETHERNET_MAC1_BMR_DA *((volatile unsigned int*)(0x42D00004UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL0 *((volatile unsigned int*)(0x42D00008UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL1 *((volatile unsigned int*)(0x42D0000CUL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL2 *((volatile unsigned int*)(0x42D00010UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL3 *((volatile unsigned int*)(0x42D00014UL)) +#define bFM3_ETHERNET_MAC1_BMR_DSL4 *((volatile unsigned int*)(0x42D00018UL)) +#define bFM3_ETHERNET_MAC1_BMR_ATDS *((volatile unsigned int*)(0x42D0001CUL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL0 *((volatile unsigned int*)(0x42D00020UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL1 *((volatile unsigned int*)(0x42D00024UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL2 *((volatile unsigned int*)(0x42D00028UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL3 *((volatile unsigned int*)(0x42D0002CUL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL4 *((volatile unsigned int*)(0x42D00030UL)) +#define bFM3_ETHERNET_MAC1_BMR_PBL5 *((volatile unsigned int*)(0x42D00034UL)) +#define bFM3_ETHERNET_MAC1_BMR_PR0 *((volatile unsigned int*)(0x42D00038UL)) +#define bFM3_ETHERNET_MAC1_BMR_PR1 *((volatile unsigned int*)(0x42D0003CUL)) +#define bFM3_ETHERNET_MAC1_BMR_FB *((volatile unsigned int*)(0x42D00040UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL0 *((volatile unsigned int*)(0x42D00044UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL1 *((volatile unsigned int*)(0x42D00048UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL2 *((volatile unsigned int*)(0x42D0004CUL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL3 *((volatile unsigned int*)(0x42D00050UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL4 *((volatile unsigned int*)(0x42D00054UL)) +#define bFM3_ETHERNET_MAC1_BMR_RPBL5 *((volatile unsigned int*)(0x42D00058UL)) +#define bFM3_ETHERNET_MAC1_BMR_USP *((volatile unsigned int*)(0x42D0005CUL)) +#define bFM3_ETHERNET_MAC1_BMR_8XPBL *((volatile unsigned int*)(0x42D00060UL)) +#define bFM3_ETHERNET_MAC1_BMR_AAL *((volatile unsigned int*)(0x42D00064UL)) +#define bFM3_ETHERNET_MAC1_BMR_MB *((volatile unsigned int*)(0x42D00068UL)) +#define bFM3_ETHERNET_MAC1_BMR_TXPR *((volatile unsigned int*)(0x42D0006CUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD0 *((volatile unsigned int*)(0x42D00080UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD1 *((volatile unsigned int*)(0x42D00084UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD2 *((volatile unsigned int*)(0x42D00088UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD3 *((volatile unsigned int*)(0x42D0008CUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD4 *((volatile unsigned int*)(0x42D00090UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD5 *((volatile unsigned int*)(0x42D00094UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD6 *((volatile unsigned int*)(0x42D00098UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD7 *((volatile unsigned int*)(0x42D0009CUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD8 *((volatile unsigned int*)(0x42D000A0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD9 *((volatile unsigned int*)(0x42D000A4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD10 *((volatile unsigned int*)(0x42D000A8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD11 *((volatile unsigned int*)(0x42D000ACUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD12 *((volatile unsigned int*)(0x42D000B0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD13 *((volatile unsigned int*)(0x42D000B4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD14 *((volatile unsigned int*)(0x42D000B8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD15 *((volatile unsigned int*)(0x42D000BCUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD16 *((volatile unsigned int*)(0x42D000C0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD17 *((volatile unsigned int*)(0x42D000C4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD18 *((volatile unsigned int*)(0x42D000C8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD19 *((volatile unsigned int*)(0x42D000CCUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD20 *((volatile unsigned int*)(0x42D000D0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD21 *((volatile unsigned int*)(0x42D000D4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD22 *((volatile unsigned int*)(0x42D000D8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD23 *((volatile unsigned int*)(0x42D000DCUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD24 *((volatile unsigned int*)(0x42D000E0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD25 *((volatile unsigned int*)(0x42D000E4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD26 *((volatile unsigned int*)(0x42D000E8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD27 *((volatile unsigned int*)(0x42D000ECUL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD28 *((volatile unsigned int*)(0x42D000F0UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD29 *((volatile unsigned int*)(0x42D000F4UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD30 *((volatile unsigned int*)(0x42D000F8UL)) +#define bFM3_ETHERNET_MAC1_TPDR_TPD31 *((volatile unsigned int*)(0x42D000FCUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD0 *((volatile unsigned int*)(0x42D00100UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD1 *((volatile unsigned int*)(0x42D00104UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD2 *((volatile unsigned int*)(0x42D00108UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD3 *((volatile unsigned int*)(0x42D0010CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD4 *((volatile unsigned int*)(0x42D00110UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD5 *((volatile unsigned int*)(0x42D00114UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD6 *((volatile unsigned int*)(0x42D00118UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD7 *((volatile unsigned int*)(0x42D0011CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD8 *((volatile unsigned int*)(0x42D00120UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD9 *((volatile unsigned int*)(0x42D00124UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD10 *((volatile unsigned int*)(0x42D00128UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD11 *((volatile unsigned int*)(0x42D0012CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD12 *((volatile unsigned int*)(0x42D00130UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD13 *((volatile unsigned int*)(0x42D00134UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD14 *((volatile unsigned int*)(0x42D00138UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD15 *((volatile unsigned int*)(0x42D0013CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD16 *((volatile unsigned int*)(0x42D00140UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD17 *((volatile unsigned int*)(0x42D00144UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD18 *((volatile unsigned int*)(0x42D00148UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD19 *((volatile unsigned int*)(0x42D0014CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD20 *((volatile unsigned int*)(0x42D00150UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD21 *((volatile unsigned int*)(0x42D00154UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD22 *((volatile unsigned int*)(0x42D00158UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD23 *((volatile unsigned int*)(0x42D0015CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD24 *((volatile unsigned int*)(0x42D00160UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD25 *((volatile unsigned int*)(0x42D00164UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD26 *((volatile unsigned int*)(0x42D00168UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD27 *((volatile unsigned int*)(0x42D0016CUL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD28 *((volatile unsigned int*)(0x42D00170UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD29 *((volatile unsigned int*)(0x42D00174UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD30 *((volatile unsigned int*)(0x42D00178UL)) +#define bFM3_ETHERNET_MAC1_RPDR_RPD31 *((volatile unsigned int*)(0x42D0017CUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL2 *((volatile unsigned int*)(0x42D00188UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL3 *((volatile unsigned int*)(0x42D0018CUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL4 *((volatile unsigned int*)(0x42D00190UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL5 *((volatile unsigned int*)(0x42D00194UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL6 *((volatile unsigned int*)(0x42D00198UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL7 *((volatile unsigned int*)(0x42D0019CUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL8 *((volatile unsigned int*)(0x42D001A0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL9 *((volatile unsigned int*)(0x42D001A4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL10 *((volatile unsigned int*)(0x42D001A8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL11 *((volatile unsigned int*)(0x42D001ACUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL12 *((volatile unsigned int*)(0x42D001B0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL13 *((volatile unsigned int*)(0x42D001B4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL14 *((volatile unsigned int*)(0x42D001B8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL15 *((volatile unsigned int*)(0x42D001BCUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL16 *((volatile unsigned int*)(0x42D001C0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL17 *((volatile unsigned int*)(0x42D001C4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL18 *((volatile unsigned int*)(0x42D001C8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL19 *((volatile unsigned int*)(0x42D001CCUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL20 *((volatile unsigned int*)(0x42D001D0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL21 *((volatile unsigned int*)(0x42D001D4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL22 *((volatile unsigned int*)(0x42D001D8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL23 *((volatile unsigned int*)(0x42D001DCUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL24 *((volatile unsigned int*)(0x42D001E0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL25 *((volatile unsigned int*)(0x42D001E4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL26 *((volatile unsigned int*)(0x42D001E8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL27 *((volatile unsigned int*)(0x42D001ECUL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL28 *((volatile unsigned int*)(0x42D001F0UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL29 *((volatile unsigned int*)(0x42D001F4UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL30 *((volatile unsigned int*)(0x42D001F8UL)) +#define bFM3_ETHERNET_MAC1_RDLAR_SRL31 *((volatile unsigned int*)(0x42D001FCUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL2 *((volatile unsigned int*)(0x42D00208UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL3 *((volatile unsigned int*)(0x42D0020CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL4 *((volatile unsigned int*)(0x42D00210UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL5 *((volatile unsigned int*)(0x42D00214UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL6 *((volatile unsigned int*)(0x42D00218UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL7 *((volatile unsigned int*)(0x42D0021CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL8 *((volatile unsigned int*)(0x42D00220UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL9 *((volatile unsigned int*)(0x42D00224UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL10 *((volatile unsigned int*)(0x42D00228UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL11 *((volatile unsigned int*)(0x42D0022CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL12 *((volatile unsigned int*)(0x42D00230UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL13 *((volatile unsigned int*)(0x42D00234UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL14 *((volatile unsigned int*)(0x42D00238UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL15 *((volatile unsigned int*)(0x42D0023CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL16 *((volatile unsigned int*)(0x42D00240UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL17 *((volatile unsigned int*)(0x42D00244UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL18 *((volatile unsigned int*)(0x42D00248UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL19 *((volatile unsigned int*)(0x42D0024CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL20 *((volatile unsigned int*)(0x42D00250UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL21 *((volatile unsigned int*)(0x42D00254UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL22 *((volatile unsigned int*)(0x42D00258UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL23 *((volatile unsigned int*)(0x42D0025CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL24 *((volatile unsigned int*)(0x42D00260UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL25 *((volatile unsigned int*)(0x42D00264UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL26 *((volatile unsigned int*)(0x42D00268UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL27 *((volatile unsigned int*)(0x42D0026CUL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL28 *((volatile unsigned int*)(0x42D00270UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL29 *((volatile unsigned int*)(0x42D00274UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL30 *((volatile unsigned int*)(0x42D00278UL)) +#define bFM3_ETHERNET_MAC1_TDLAR_STL31 *((volatile unsigned int*)(0x42D0027CUL)) +#define bFM3_ETHERNET_MAC1_SR_TI *((volatile unsigned int*)(0x42D00280UL)) +#define bFM3_ETHERNET_MAC1_SR_TPS *((volatile unsigned int*)(0x42D00284UL)) +#define bFM3_ETHERNET_MAC1_SR_TU *((volatile unsigned int*)(0x42D00288UL)) +#define bFM3_ETHERNET_MAC1_SR_TJT *((volatile unsigned int*)(0x42D0028CUL)) +#define bFM3_ETHERNET_MAC1_SR_OVF *((volatile unsigned int*)(0x42D00290UL)) +#define bFM3_ETHERNET_MAC1_SR_UNF *((volatile unsigned int*)(0x42D00294UL)) +#define bFM3_ETHERNET_MAC1_SR_RI *((volatile unsigned int*)(0x42D00298UL)) +#define bFM3_ETHERNET_MAC1_SR_RU *((volatile unsigned int*)(0x42D0029CUL)) +#define bFM3_ETHERNET_MAC1_SR_RPS *((volatile unsigned int*)(0x42D002A0UL)) +#define bFM3_ETHERNET_MAC1_SR_RWT *((volatile unsigned int*)(0x42D002A4UL)) +#define bFM3_ETHERNET_MAC1_SR_ETI *((volatile unsigned int*)(0x42D002A8UL)) +#define bFM3_ETHERNET_MAC1_SR_FBI *((volatile unsigned int*)(0x42D002B4UL)) +#define bFM3_ETHERNET_MAC1_SR_ERI *((volatile unsigned int*)(0x42D002B8UL)) +#define bFM3_ETHERNET_MAC1_SR_AIS *((volatile unsigned int*)(0x42D002BCUL)) +#define bFM3_ETHERNET_MAC1_SR_NIS *((volatile unsigned int*)(0x42D002C0UL)) +#define bFM3_ETHERNET_MAC1_SR_RS0 *((volatile unsigned int*)(0x42D002C4UL)) +#define bFM3_ETHERNET_MAC1_SR_RS1 *((volatile unsigned int*)(0x42D002C8UL)) +#define bFM3_ETHERNET_MAC1_SR_RS2 *((volatile unsigned int*)(0x42D002CCUL)) +#define bFM3_ETHERNET_MAC1_SR_TS0 *((volatile unsigned int*)(0x42D002D0UL)) +#define bFM3_ETHERNET_MAC1_SR_TS1 *((volatile unsigned int*)(0x42D002D4UL)) +#define bFM3_ETHERNET_MAC1_SR_TS2 *((volatile unsigned int*)(0x42D002D8UL)) +#define bFM3_ETHERNET_MAC1_SR_EB0 *((volatile unsigned int*)(0x42D002DCUL)) +#define bFM3_ETHERNET_MAC1_SR_EB1 *((volatile unsigned int*)(0x42D002E0UL)) +#define bFM3_ETHERNET_MAC1_SR_EB2 *((volatile unsigned int*)(0x42D002E4UL)) +#define bFM3_ETHERNET_MAC1_SR_GLI *((volatile unsigned int*)(0x42D002E8UL)) +#define bFM3_ETHERNET_MAC1_SR_GMI *((volatile unsigned int*)(0x42D002ECUL)) +#define bFM3_ETHERNET_MAC1_SR_GPI *((volatile unsigned int*)(0x42D002F0UL)) +#define bFM3_ETHERNET_MAC1_SR_TTI *((volatile unsigned int*)(0x42D002F4UL)) +#define bFM3_ETHERNET_MAC1_SR_GLPII *((volatile unsigned int*)(0x42D002F8UL)) +#define bFM3_ETHERNET_MAC1_OMR_SR *((volatile unsigned int*)(0x42D00304UL)) +#define bFM3_ETHERNET_MAC1_OMR_OSF *((volatile unsigned int*)(0x42D00308UL)) +#define bFM3_ETHERNET_MAC1_OMR_RTC0 *((volatile unsigned int*)(0x42D0030CUL)) +#define bFM3_ETHERNET_MAC1_OMR_RTC1 *((volatile unsigned int*)(0x42D00310UL)) +#define bFM3_ETHERNET_MAC1_OMR_FUF *((volatile unsigned int*)(0x42D00318UL)) +#define bFM3_ETHERNET_MAC1_OMR_FEF *((volatile unsigned int*)(0x42D0031CUL)) +#define bFM3_ETHERNET_MAC1_OMR_ST *((volatile unsigned int*)(0x42D00334UL)) +#define bFM3_ETHERNET_MAC1_OMR_TTC0 *((volatile unsigned int*)(0x42D00338UL)) +#define bFM3_ETHERNET_MAC1_OMR_TTC1 *((volatile unsigned int*)(0x42D0033CUL)) +#define bFM3_ETHERNET_MAC1_OMR_TTC2 *((volatile unsigned int*)(0x42D00340UL)) +#define bFM3_ETHERNET_MAC1_OMR_FTF *((volatile unsigned int*)(0x42D00350UL)) +#define bFM3_ETHERNET_MAC1_OMR_TSF *((volatile unsigned int*)(0x42D00354UL)) +#define bFM3_ETHERNET_MAC1_OMR_DFF *((volatile unsigned int*)(0x42D00360UL)) +#define bFM3_ETHERNET_MAC1_OMR_RSF *((volatile unsigned int*)(0x42D00364UL)) +#define bFM3_ETHERNET_MAC1_OMR_DT *((volatile unsigned int*)(0x42D00368UL)) +#define bFM3_ETHERNET_MAC1_IER_TIE *((volatile unsigned int*)(0x42D00380UL)) +#define bFM3_ETHERNET_MAC1_IER_TSE *((volatile unsigned int*)(0x42D00384UL)) +#define bFM3_ETHERNET_MAC1_IER_TUE *((volatile unsigned int*)(0x42D00388UL)) +#define bFM3_ETHERNET_MAC1_IER_TJE *((volatile unsigned int*)(0x42D0038CUL)) +#define bFM3_ETHERNET_MAC1_IER_OVE *((volatile unsigned int*)(0x42D00390UL)) +#define bFM3_ETHERNET_MAC1_IER_UNE *((volatile unsigned int*)(0x42D00394UL)) +#define bFM3_ETHERNET_MAC1_IER_RIE *((volatile unsigned int*)(0x42D00398UL)) +#define bFM3_ETHERNET_MAC1_IER_RUE *((volatile unsigned int*)(0x42D0039CUL)) +#define bFM3_ETHERNET_MAC1_IER_RSE *((volatile unsigned int*)(0x42D003A0UL)) +#define bFM3_ETHERNET_MAC1_IER_RWE *((volatile unsigned int*)(0x42D003A4UL)) +#define bFM3_ETHERNET_MAC1_IER_ETE *((volatile unsigned int*)(0x42D003A8UL)) +#define bFM3_ETHERNET_MAC1_IER_FBE *((volatile unsigned int*)(0x42D003B4UL)) +#define bFM3_ETHERNET_MAC1_IER_ERE *((volatile unsigned int*)(0x42D003B8UL)) +#define bFM3_ETHERNET_MAC1_IER_AIE *((volatile unsigned int*)(0x42D003BCUL)) +#define bFM3_ETHERNET_MAC1_IER_NIE *((volatile unsigned int*)(0x42D003C0UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42D00400UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42D00404UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42D00408UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42D0040CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42D00410UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42D00414UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42D00418UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42D0041CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42D00420UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42D00424UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42D00428UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42D0042CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42D00430UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42D00434UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42D00438UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42D0043CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFH *((volatile unsigned int*)(0x42D00440UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42D00444UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42D00448UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42D0044CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42D00450UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42D00454UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42D00458UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42D0045CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42D00460UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42D00464UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42D00468UL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42D0046CUL)) +#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFF *((volatile unsigned int*)(0x42D00470UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT0 *((volatile unsigned int*)(0x42D00480UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT1 *((volatile unsigned int*)(0x42D00484UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT2 *((volatile unsigned int*)(0x42D00488UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT3 *((volatile unsigned int*)(0x42D0048CUL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT4 *((volatile unsigned int*)(0x42D00490UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT5 *((volatile unsigned int*)(0x42D00494UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT6 *((volatile unsigned int*)(0x42D00498UL)) +#define bFM3_ETHERNET_MAC1_RIWTR_RIWT7 *((volatile unsigned int*)(0x42D0049CUL)) +#define bFM3_ETHERNET_MAC1_AHBSR_AHBS *((volatile unsigned int*)(0x42D00580UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42D00900UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42D00904UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42D00908UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42D0090CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42D00910UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42D00914UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42D00918UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42D0091CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42D00920UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42D00924UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42D00928UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42D0092CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42D00930UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42D00934UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42D00938UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42D0093CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42D00940UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42D00944UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42D00948UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42D0094CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42D00950UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42D00954UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42D00958UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42D0095CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42D00960UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42D00964UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42D00968UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42D0096CUL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42D00970UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42D00974UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42D00978UL)) +#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42D0097CUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42D00980UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42D00984UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42D00988UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42D0098CUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42D00990UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42D00994UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42D00998UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42D0099CUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42D009A0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42D009A4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42D009A8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42D009ACUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42D009B0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42D009B4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42D009B8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42D009BCUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42D009C0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42D009C4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42D009C8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42D009CCUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42D009D0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42D009D4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42D009D8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42D009DCUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42D009E0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42D009E4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42D009E8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42D009ECUL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42D009F0UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42D009F4UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42D009F8UL)) +#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42D009FCUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42D00A00UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42D00A04UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42D00A08UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42D00A0CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42D00A10UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42D00A14UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42D00A18UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42D00A1CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42D00A20UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42D00A24UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42D00A28UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42D00A2CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42D00A30UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42D00A34UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42D00A38UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42D00A3CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42D00A40UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42D00A44UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42D00A48UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42D00A4CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42D00A50UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42D00A54UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42D00A58UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42D00A5CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42D00A60UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42D00A64UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42D00A68UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42D00A6CUL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42D00A70UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42D00A74UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42D00A78UL)) +#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42D00A7CUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42D00A80UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42D00A84UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42D00A88UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42D00A8CUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42D00A90UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42D00A94UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42D00A98UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42D00A9CUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42D00AA0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42D00AA4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42D00AA8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42D00AACUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42D00AB0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42D00AB4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42D00AB8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42D00ABCUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42D00AC0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42D00AC4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42D00AC8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42D00ACCUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42D00AD0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42D00AD4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42D00AD8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42D00ADCUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42D00AE0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42D00AE4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42D00AE8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42D00AECUL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42D00AF0UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42D00AF4UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42D00AF8UL)) +#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42D00AFCUL)) + +#ifdef __cplusplus +} +#endif + +#endif /* _MB9B610T_H_ */ + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S new file mode 100644 index 0000000000..85d59276e2 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S @@ -0,0 +1,333 @@ +;/************************************************************************/ +;/* (C) Fujitsu Semiconductor Europe GmbH */ +;/* */ +;/* The following software deliverable is intended for and must only be */ +;/* used for reference and in an evaluation laboratory environment. */ +;/* It is provided on an as-is basis without charge and is subject to */ +;/* alterations. */ +;/* It is the user’s obligation to fully test the software in its */ +;/* environment and to ensure proper functionality, qualification and */ +;/* compliance with component specifications. */ +;/* */ +;/* In the event the software deliverable includes the use of open */ +;/* source components, the provisions of the governing open source */ +;/* license agreement shall apply with respect to such software */ +;/* deliverable. */ +;/* FSEU does not warrant that the deliverables do not infringe any */ +;/* third party intellectual property right (IPR). In the event that */ +;/* the deliverables infringe a third party IPR it is the sole */ +;/* responsibility of the customer to obtain necessary licenses to */ +;/* continue the usage of the deliverable. */ +;/* */ +;/* To the maximum extent permitted by applicable law FSEU disclaims all */ +;/* warranties, whether express or implied, in particular, but not */ +;/* limited to, warranties of merchantability and fitness for a */ +;/* particular purpose for which the deliverable is not designated. */ +;/* */ +;/* To the maximum extent permitted by applicable law, FSEU's liability */ +;/* is restricted to intention and gross negligence. */ +;/* FSEU is not liable for consequential damages. */ +;/* */ +;/* (V1.4) */ +;/************************************************************************/ +;/* Startup for ARM */ +;/* Version V1.02 */ +;/* Date 2011-07-25 */ +;/* Target-mcu MB9B61x */ +;/************************************************************************/ + +; Stack Configuration +; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> + +Stack_Size EQU 0x00000400 + + AREA STACK, NOINIT, READWRITE, ALIGN=3 +Stack_Mem SPACE Stack_Size +__initial_sp + + +; Heap Configuration +; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> + +Heap_Size EQU 0x00000000 + + AREA HEAP, NOINIT, READWRITE, ALIGN=3 +__heap_base +Heap_Mem SPACE Heap_Size +__heap_limit + + + PRESERVE8 + THUMB + + +; Vector Table Mapped to Address 0 at Reset + + AREA RESET, DATA, READONLY + EXPORT __Vectors + EXPORT __Vectors_End + EXPORT __Vectors_Size + +__Vectors DCD __initial_sp ; Top of Stack + DCD Reset_Handler ; Reset Handler + DCD NMI_Handler ; NMI Handler + DCD HardFault_Handler ; Hard Fault Handler + DCD MemManage_Handler ; MPU Fault Handler + DCD BusFault_Handler ; Bus Fault Handler + DCD UsageFault_Handler ; Usage Fault Handler + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall Handler + DCD DebugMon_Handler ; Debug Monitor Handler + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV Handler + DCD SysTick_Handler ; SysTick Handler + + DCD CSV_Handler ; 0: Clock Super Visor + DCD SWDT_Handler ; 1: Software Watchdog Timer + DCD LVD_Handler ; 2: Low Voltage Detector + DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF + DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 + DCD INT8_31_Handler ; 5: External Interrupt Request ch.8 to ch.31 + DCD DT_Handler ; 6: Dual Timer / Quad Decoder + DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 + DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 + DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 + DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 + DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 + DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 + DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 + DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 + DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 + DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 + DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 + DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 + DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 + DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 + DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 + DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 + DCD PPG_Handler ; 23: PPG + DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter + DCD ADC0_IRQHandler ; 25: ADC0 + DCD ADC1_IRQHandler ; 26: ADC1 + DCD ADC2_IRQHandler ; 27: ADC2 + DCD MFT_FRT_IRQHandler ; 28: Free-run Timer + DCD MFT_IPC_IRQHandler ; 29: Input Capture + DCD MFT_OPC_IRQHandler ; 30: Output Compare + DCD BT0_7_IRQHandler ; 31: Base Timer ch.0 to ch.7 + DCD ETHER_MAC0_IRQHandler ; 32: Ethernet MAC ch.0 + DCD ETHER_MAC1_IRQHandler ; 33: Ethernet MAC ch.1 + DCD USB0F_Handler ; 34: USB0 Function + DCD USB0_Handler ; 35: USB0 Function / USB0 HOST + DCD USB1F_Handler ; 36: USB1 Function + DCD USB1_Handler ; 37: USB1 Function / USB1 HOST + DCD DMAC0_Handler ; 38: DMAC ch.0 + DCD DMAC1_Handler ; 39: DMAC ch.1 + DCD DMAC2_Handler ; 40: DMAC ch.2 + DCD DMAC3_Handler ; 41: DMAC ch.3 + DCD DMAC4_Handler ; 42: DMAC ch.4 + DCD DMAC5_Handler ; 43: DMAC ch.5 + DCD DMAC6_Handler ; 44: DMAC ch.6 + DCD DMAC7_Handler ; 45: DMAC ch.7 + DCD BT8_15_IRQHandler ; 46: Base Timer ch.8 to ch.15 + DCD DummyHandler ; 47: Reserved +__Vectors_End + +__Vectors_Size EQU __Vectors_End - __Vectors + + AREA |.text|, CODE, READONLY + + +; Reset Handler + +Reset_Handler PROC + EXPORT Reset_Handler [WEAK] + IMPORT SystemInit + IMPORT __main + LDR R0, =SystemInit + BLX R0 + LDR R0, =__main + BX R0 + ENDP + + +; Dummy Exception Handlers (infinite loops which can be modified) + +NMI_Handler PROC + EXPORT NMI_Handler [WEAK] + B . + ENDP +HardFault_Handler\ + PROC + EXPORT HardFault_Handler [WEAK] + B . + ENDP +MemManage_Handler\ + PROC + EXPORT MemManage_Handler [WEAK] + B . + ENDP +BusFault_Handler\ + PROC + EXPORT BusFault_Handler [WEAK] + B . + ENDP +UsageFault_Handler\ + PROC + EXPORT UsageFault_Handler [WEAK] + B . + ENDP +SVC_Handler PROC + EXPORT SVC_Handler [WEAK] + B . + ENDP +DebugMon_Handler\ + PROC + EXPORT DebugMon_Handler [WEAK] + B . + ENDP +PendSV_Handler PROC + EXPORT PendSV_Handler [WEAK] + B . + ENDP +SysTick_Handler PROC + EXPORT SysTick_Handler [WEAK] + B . + ENDP + +Default_Handler PROC + + EXPORT CSV_Handler [WEAK] + EXPORT SWDT_Handler [WEAK] + EXPORT LVD_Handler [WEAK] + EXPORT MFT_WG_IRQHandler [WEAK] + EXPORT INT0_7_Handler [WEAK] + EXPORT INT8_31_Handler [WEAK] + EXPORT DT_Handler [WEAK] + EXPORT MFS0RX_IRQHandler [WEAK] + EXPORT MFS0TX_IRQHandler [WEAK] + EXPORT MFS1RX_IRQHandler [WEAK] + EXPORT MFS1TX_IRQHandler [WEAK] + EXPORT MFS2RX_IRQHandler [WEAK] + EXPORT MFS2TX_IRQHandler [WEAK] + EXPORT MFS3RX_IRQHandler [WEAK] + EXPORT MFS3TX_IRQHandler [WEAK] + EXPORT MFS4RX_IRQHandler [WEAK] + EXPORT MFS4TX_IRQHandler [WEAK] + EXPORT MFS5RX_IRQHandler [WEAK] + EXPORT MFS5TX_IRQHandler [WEAK] + EXPORT MFS6RX_IRQHandler [WEAK] + EXPORT MFS6TX_IRQHandler [WEAK] + EXPORT MFS7RX_IRQHandler [WEAK] + EXPORT MFS7TX_IRQHandler [WEAK] + EXPORT PPG_Handler [WEAK] + EXPORT TIM_IRQHandler [WEAK] + EXPORT ADC0_IRQHandler [WEAK] + EXPORT ADC1_IRQHandler [WEAK] + EXPORT ADC2_IRQHandler [WEAK] + EXPORT MFT_FRT_IRQHandler [WEAK] + EXPORT MFT_IPC_IRQHandler [WEAK] + EXPORT MFT_OPC_IRQHandler [WEAK] + EXPORT BT0_7_IRQHandler [WEAK] + EXPORT ETHER_MAC0_IRQHandler [WEAK] + EXPORT ETHER_MAC1_IRQHandler [WEAK] + EXPORT USB0F_Handler [WEAK] + EXPORT USB0_Handler [WEAK] + EXPORT USB1F_Handler [WEAK] + EXPORT USB1_Handler [WEAK] + EXPORT DMAC0_Handler [WEAK] + EXPORT DMAC1_Handler [WEAK] + EXPORT DMAC2_Handler [WEAK] + EXPORT DMAC3_Handler [WEAK] + EXPORT DMAC4_Handler [WEAK] + EXPORT DMAC5_Handler [WEAK] + EXPORT DMAC6_Handler [WEAK] + EXPORT DMAC7_Handler [WEAK] + EXPORT BT8_15_IRQHandler [WEAK] + EXPORT DummyHandler [WEAK] + +CSV_Handler +SWDT_Handler +LVD_Handler +MFT_WG_IRQHandler +INT0_7_Handler +INT8_31_Handler +DT_Handler +MFS0RX_IRQHandler +MFS0TX_IRQHandler +MFS1RX_IRQHandler +MFS1TX_IRQHandler +MFS2RX_IRQHandler +MFS2TX_IRQHandler +MFS3RX_IRQHandler +MFS3TX_IRQHandler +MFS4RX_IRQHandler +MFS4TX_IRQHandler +MFS5RX_IRQHandler +MFS5TX_IRQHandler +MFS6RX_IRQHandler +MFS6TX_IRQHandler +MFS7RX_IRQHandler +MFS7TX_IRQHandler +PPG_Handler +TIM_IRQHandler +ADC0_IRQHandler +ADC1_IRQHandler +ADC2_IRQHandler +MFT_FRT_IRQHandler +MFT_IPC_IRQHandler +MFT_OPC_IRQHandler +BT0_7_IRQHandler +DMAC0_Handler +DMAC1_Handler +DMAC2_Handler +DMAC3_Handler +DMAC4_Handler +DMAC5_Handler +DMAC6_Handler +DMAC7_Handler +ETHER_MAC0_IRQHandler +ETHER_MAC1_IRQHandler +USB0F_Handler +USB0_Handler +USB1F_Handler +USB1_Handler +BT8_15_IRQHandler +DummyHandler + + B . + + ENDP + + + ALIGN + + +; User Initial Stack & Heap + + IF :DEF:__MICROLIB + + EXPORT __initial_sp + EXPORT __heap_base + EXPORT __heap_limit + + ELSE + + IMPORT __use_two_region_memory + EXPORT __user_initial_stackheap +__user_initial_stackheap + + LDR R0, = Heap_Mem + LDR R1, =(Stack_Mem + Stack_Size) + LDR R2, = (Heap_Mem + Heap_Size) + LDR R3, = Stack_Mem + BX LR + + ALIGN + + ENDIF + + + END diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c new file mode 100644 index 0000000000..ef641de1ef --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c @@ -0,0 +1,244 @@ +/* + **************************************************************************** +** +** File : startup_mb9bf61x.c +** +** Abstract : This file contains interrupt vector and startup code. +** +** Functions : Reset_Handler +** +** Target : Fujitsu FM3 microcontrollers +** +** Environment : Atollic TrueSTUDIO(R) +** +** Distribution: The file is distributed “as is,” without any warranty +** of any kind. +** +** (c)Copyright Atollic AB. +** You may use this file as-is or modify it according to the needs of your +** project. Distribution of this file (unmodified or modified) is not +** permitted. Atollic AB permit registered Atollic TrueSTUDIO(R) users the +** rights to distribute the assembled, compiled & linked contents of this +** file as part of an application binary file, provided that it is built +** using the Atollic TrueSTUDIO(R) toolchain. +** + **************************************************************************** +*/ + +/** +**=========================================================================== +** Revisions +**=========================================================================== +** Date Modification +** 2011-08-18 First issue. +**=========================================================================== +*/ + +/** +**=========================================================================== +** External declarations +**=========================================================================== +*/ +extern unsigned long _sdata, _edata, _sidata, _sbss, _ebss, _isr_vector; +extern unsigned long _estack; +extern void __libc_init_array(); +extern void SystemInit(); +extern void main(); + +/** +**=========================================================================== +** Default interrupt handler +**=========================================================================== +*/ +void Default_Handler() +{ + /* Hang here */ + while(1) + { + } +} + +/** +**=========================================================================== +** Reset handler +**=========================================================================== +*/ +__attribute__((naked)) void Reset_Handler() +{ + /* Data and BSS variables */ + unsigned long *srcdata, *dstdata, *sbss; + + /* Set up the stack pointer */ + asm("ldr sp,=_estack\n\t"); + + /* Set up vector table offset register */ + dstdata = (unsigned long *)0xe000ed08; + *dstdata = (unsigned long)&_isr_vector; + + srcdata = &_sidata; + dstdata = &_sdata; + sbss = &_sbss; + + /* Copy data */ + while(dstdata != &_edata) + { + *(dstdata++) = *(srcdata++); + } + + /* Clear BSS */ + while(sbss != &_ebss) + { + *(sbss++) = '\0'; + } + + /* Run static constructors */ + //__libc_init_array(); + + /* Call the clock system initialization function.*/ + SystemInit(); + + /* Jump to main */ + main(); + + /* In case main returns, use default handler */ + Default_Handler(); +} + +/** +**=========================================================================== +** Weak definitions of handlers point to Default_Handler if not implemented +**=========================================================================== +*/ +void NMI_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void HardFault_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void MemManage_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void BusFault_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void UsageFault_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void SVC_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DebugMonitor_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void PendSV_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void SysTick_Handler() __attribute__ ((weak, alias("Default_Handler"))); + +void CSV_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void SWDT_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void LVD_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void MFT_WG_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void INT0_7_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void INT8_31_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DT_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS0RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS0TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS1RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS1TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS2RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS2TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS3RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS3TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS4RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS4TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS5RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS5TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS6RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS6TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS7RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFS7TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void PPG_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void TIM_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void ADC0_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void ADC1_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void ADC2_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFT_FRT_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFT_IPC_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void MFT_OPC_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void BT0_7_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void ETHER_MAC0_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void ETHER_MAC1_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); +void USB0F_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void USB0_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void USB1F_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void USB1_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC0_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC1_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC2_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC3_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC4_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC5_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC6_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void DMAC7_Handler() __attribute__ ((weak, alias("Default_Handler"))); +void BT8_15_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); + + +/** +**=========================================================================== +** Interrupt Vector Table +**=========================================================================== +*/ +void (* const InterruptVector[])() __attribute__ ((section(".isr_vector"))) = { + /* Processor exceptions */ + (void (*)(void))&_estack, /* 0 - Stack pointer */ + Reset_Handler, /* 1 - Reset */ + NMI_Handler, /* 2 - NMI */ + HardFault_Handler, /* 3 - Hard fault */ + MemManage_Handler, /* 4 - Memory management fault */ + BusFault_Handler, /* 5 - Bus fault */ + UsageFault_Handler, /* 6 - Usage fault */ + 0, /* 7 - Reserved */ + 0, /* 8 - Reserved */ + 0, /* 9 - Reserved */ + 0, /* 10 - Reserved */ + SVC_Handler, /* 11 - SVCall */ + DebugMonitor_Handler, /* 12 - Reserved for Debug */ + 0, /* 13 - Reserved */ + PendSV_Handler, /* 14 - PendSV */ + SysTick_Handler, /* 15 - Systick */ + + /* External Interrupts */ + CSV_Handler, /* 0: Clock Super Visor */ + SWDT_Handler, /* 1: Software Watchdog Timer */ + LVD_Handler, /* 2: Low Voltage Detector */ + MFT_WG_IRQHandler, /* 3: Wave Form Generator / DTIF */ + INT0_7_Handler, /* 4: External Interrupt Request ch.0 to ch.7 */ + INT8_31_Handler, /* 5: External Interrupt Request ch.8 to ch.31 */ + DT_Handler, /* 6: Dual Timer / Quad Decoder */ + MFS0RX_IRQHandler, /* 7: MultiFunction Serial ch.0 */ + MFS0TX_IRQHandler, /* 8: MultiFunction Serial ch.0 */ + MFS1RX_IRQHandler, /* 9: MultiFunction Serial ch.1 */ + MFS1TX_IRQHandler, /* 10: MultiFunction Serial ch.1 */ + MFS2RX_IRQHandler, /* 11: MultiFunction Serial ch.2 */ + MFS2TX_IRQHandler, /* 12: MultiFunction Serial ch.2 */ + MFS3RX_IRQHandler, /* 13: MultiFunction Serial ch.3 */ + MFS3TX_IRQHandler, /* 14: MultiFunction Serial ch.3 */ + MFS4RX_IRQHandler, /* 15: MultiFunction Serial ch.4 */ + MFS4TX_IRQHandler, /* 16: MultiFunction Serial ch.4 */ + MFS5RX_IRQHandler, /* 17: MultiFunction Serial ch.5 */ + MFS5TX_IRQHandler, /* 18: MultiFunction Serial ch.5 */ + MFS6RX_IRQHandler, /* 19: MultiFunction Serial ch.6 */ + MFS6TX_IRQHandler, /* 20: MultiFunction Serial ch.6 */ + MFS7RX_IRQHandler, /* 21: MultiFunction Serial ch.7 */ + MFS7TX_IRQHandler, /* 22: MultiFunction Serial ch.7 */ + PPG_Handler, /* 23: PPG */ + TIM_IRQHandler, /* 24: OSC / PLL / Watch Counter */ + ADC0_IRQHandler, /* 25: ADC0 */ + ADC1_IRQHandler, /* 26: ADC1 */ + ADC2_IRQHandler, /* 27: ADC2 */ + MFT_FRT_IRQHandler, /* 28: Free-run Timer */ + MFT_IPC_IRQHandler, /* 29: Input Capture */ + MFT_OPC_IRQHandler, /* 30: Output Compare */ + BT0_7_IRQHandler, /* 31: Base Timer ch.0 to ch.7 */ + ETHER_MAC0_IRQHandler, /* 32: Ethernet MAC ch.0 */ + ETHER_MAC1_IRQHandler, /* 33: Ethernet MAC ch.1 */ + USB0F_Handler, /* 34: USB0 Function */ + USB0_Handler, /* 35: USB0 Function / USB0 HOST */ + USB1F_Handler, /* 36: USB1 Function */ + USB1_Handler, /* 37: USB1 Function / USB1 HOST */ + DMAC0_Handler, /* 38: DMAC ch.0 */ + DMAC1_Handler, /* 39: DMAC ch.1 */ + DMAC2_Handler, /* 40: DMAC ch.2 */ + DMAC3_Handler, /* 41: DMAC ch.3 */ + DMAC4_Handler, /* 42: DMAC ch.4 */ + DMAC5_Handler, /* 43: DMAC ch.5 */ + DMAC6_Handler, /* 44: DMAC ch.6 */ + DMAC7_Handler, /* 45: DMAC ch.7 */ + BT8_15_IRQHandler, /* 46: Base Timer ch.8 to ch.15 */ + Default_Handler /* 47: Reserved */ +}; diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S new file mode 100644 index 0000000000..7bc1acf0cd --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S @@ -0,0 +1,417 @@ +;/************************************************************************/ +;/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +;/* */ +;/* The following software deliverable is intended for and must only be */ +;/* used for reference and in an evaluation laboratory environment. */ +;/* It is provided on an as-is basis without charge and is subject to */ +;/* alterations. */ +;/* It is the user's obligation to fully test the software in its */ +;/* environment and to ensure proper functionality, qualification and */ +;/* compliance with component specifications. */ +;/* */ +;/* In the event the software deliverable includes the use of open */ +;/* source components, the provisions of the governing open source */ +;/* license agreement shall apply with respect to such software */ +;/* deliverable. */ +;/* FSEU does not warrant that the deliverables do not infringe any */ +;/* third party intellectual property right (IPR). In the event that */ +;/* the deliverables infringe a third party IPR it is the sole */ +;/* responsibility of the customer to obtain necessary licenses to */ +;/* continue the usage of the deliverable. */ +;/* */ +;/* To the maximum extent permitted by applicable law FSEU disclaims all */ +;/* warranties, whether express or implied, in particular, but not */ +;/* limited to, warranties of merchantability and fitness for a */ +;/* particular purpose for which the deliverable is not designated. */ +;/* */ +;/* To the maximum extent permitted by applicable law, FSEU's liability */ +;/* is restricted to intentional misconduct and gross negligence. */ +;/* FSEU is not liable for consequential damages. */ +;/* */ +;/* (V1.5) */ +;/************************************************************************/ +;/* Startup for IAR */ +;/* Version V1.00 */ +;/* Date 2011-07-25 */ +;/* Target-mcu MB9B610 */ +;/************************************************************************/ + + + MODULE ?cstartup + + ;; Forward declaration of sections. + SECTION CSTACK:DATA:NOROOT(3) + + SECTION .intvec:CODE:NOROOT(2) + + EXTERN __iar_program_start + EXTERN SystemInit + PUBLIC __vector_table + + DATA +__vector_table DCD sfe(CSTACK) ; Top of Stack + DCD Reset_Handler ; Reset + DCD NMI_Handler ; NMI + DCD HardFault_Handler ; Hard Fault + DCD MemManage_Handler ; MPU Fault + DCD BusFault_Handler ; Bus Fault + DCD UsageFault_Handler ; Usage Fault + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall + DCD DebugMon_Handler ; Debug Monitor + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV + DCD SysTick_Handler ; SysTick + + DCD CSV_Handler ; 0: Clock Super Visor + DCD SWDT_Handler ; 1: Software Watchdog Timer + DCD LVD_Handler ; 2: Low Voltage Detector + DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF + DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 + DCD INT8_31_Handler ; 5: External Interrupt Request ch.8 to ch.31 + DCD DT_Handler ; 6: Dual Timer / Quad Decoder + DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 + DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 + DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 + DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 + DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 + DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 + DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 + DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 + DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 + DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 + DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 + DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 + DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 + DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 + DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 + DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 + DCD PPG_Handler ; 23: PPG + DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter + DCD ADC0_IRQHandler ; 25: ADC0 + DCD ADC1_IRQHandler ; 26: ADC1 + DCD ADC2_IRQHandler ; 27: ADC2 + DCD MFT_FRT_IRQHandler ; 28: Free-run Timer + DCD MFT_IPC_IRQHandler ; 29: Input Capture + DCD MFT_OPC_IRQHandler ; 30: Output Compare + DCD BT0_7_IRQHandler ; 31: Base Timer ch.0 to ch.7 + DCD ETHER_MAC0_IRQHandler ; 32: Ethernet MAC ch.0 + DCD ETHER_MAC1_IRQHandler ; 33: Ethernet MAC ch.1 + DCD USB0F_Handler ; 34: USB0 Function + DCD USB0_Handler ; 35: USB0 Function / USB0 HOST + DCD USB1F_Handler ; 36: USB1 Function + DCD USB1_Handler ; 37: USB1 Function / USB1 HOST + DCD DMAC0_Handler ; 38: DMAC ch.0 + DCD DMAC1_Handler ; 39: DMAC ch.1 + DCD DMAC2_Handler ; 40: DMAC ch.2 + DCD DMAC3_Handler ; 41: DMAC ch.3 + DCD DMAC4_Handler ; 42: DMAC ch.4 + DCD DMAC5_Handler ; 43: DMAC ch.5 + DCD DMAC6_Handler ; 44: DMAC ch.6 + DCD DMAC7_Handler ; 45: DMAC ch.7 + DCD BT8_15_IRQHandler ; 46: Base Timer ch.8 to ch.15 + DCD DummyHandler ; 47: Reserved + + THUMB +; Dummy Exception Handlers (infinite loops which can be modified) + + PUBWEAK Reset_Handler + SECTION .text:CODE:REORDER(2) +Reset_Handler + LDR R0, =SystemInit + BLX R0 + LDR R0, =__iar_program_start + BX R0 + + PUBWEAK NMI_Handler + SECTION .text:CODE:REORDER(1) +NMI_Handler + B NMI_Handler + + PUBWEAK HardFault_Handler + SECTION .text:CODE:REORDER(1) +HardFault_Handler + B HardFault_Handler + + PUBWEAK MemManage_Handler + SECTION .text:CODE:REORDER(1) +MemManage_Handler + B MemManage_Handler + + PUBWEAK BusFault_Handler + SECTION .text:CODE:REORDER(1) +BusFault_Handler + B BusFault_Handler + + PUBWEAK UsageFault_Handler + SECTION .text:CODE:REORDER(1) +UsageFault_Handler + B UsageFault_Handler + + PUBWEAK SVC_Handler + SECTION .text:CODE:REORDER(1) +SVC_Handler + B SVC_Handler + + PUBWEAK DebugMon_Handler + SECTION .text:CODE:REORDER(1) +DebugMon_Handler + B DebugMon_Handler + + PUBWEAK PendSV_Handler + SECTION .text:CODE:REORDER(1) +PendSV_Handler + B PendSV_Handler + + PUBWEAK SysTick_Handler + SECTION .text:CODE:REORDER(1) +SysTick_Handler + B SysTick_Handler + + + + PUBWEAK CSV_Handler + SECTION .text:CODE:REORDER(1) +CSV_Handler + B CSV_Handler + + PUBWEAK SWDT_Handler + SECTION .text:CODE:REORDER(1) +SWDT_Handler + B SWDT_Handler + + PUBWEAK LVD_Handler + SECTION .text:CODE:REORDER(1) +LVD_Handler + B LVD_Handler + + PUBWEAK MFT_WG_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_WG_IRQHandler + B MFT_WG_IRQHandler + + PUBWEAK INT0_7_Handler + SECTION .text:CODE:REORDER(1) +INT0_7_Handler + B INT0_7_Handler + + PUBWEAK INT8_31_Handler + SECTION .text:CODE:REORDER(1) +INT8_31_Handler + B INT8_31_Handler + + PUBWEAK DT_Handler + SECTION .text:CODE:REORDER(1) +DT_Handler + B DT_Handler + + PUBWEAK MFS0RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS0RX_IRQHandler + B MFS0RX_IRQHandler + + PUBWEAK MFS0TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS0TX_IRQHandler + B MFS0TX_IRQHandler + + PUBWEAK MFS1RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS1RX_IRQHandler + B MFS1RX_IRQHandler + + PUBWEAK MFS1TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS1TX_IRQHandler + B MFS1TX_IRQHandler + + PUBWEAK MFS2RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS2RX_IRQHandler + B MFS2RX_IRQHandler + + PUBWEAK MFS2TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS2TX_IRQHandler + B MFS2TX_IRQHandler + + PUBWEAK MFS3RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS3RX_IRQHandler + B MFS3RX_IRQHandler + + PUBWEAK MFS3TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS3TX_IRQHandler + B MFS3TX_IRQHandler + + PUBWEAK MFS4RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS4RX_IRQHandler + B MFS4RX_IRQHandler + + PUBWEAK MFS4TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS4TX_IRQHandler + B MFS4TX_IRQHandler + + PUBWEAK MFS5RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS5RX_IRQHandler + B MFS5RX_IRQHandler + + PUBWEAK MFS5TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS5TX_IRQHandler + B MFS5TX_IRQHandler + + PUBWEAK MFS6RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS6RX_IRQHandler + B MFS6RX_IRQHandler + + PUBWEAK MFS6TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS6TX_IRQHandler + B MFS6TX_IRQHandler + + PUBWEAK MFS7RX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS7RX_IRQHandler + B MFS7RX_IRQHandler + + PUBWEAK MFS7TX_IRQHandler + SECTION .text:CODE:REORDER(1) +MFS7TX_IRQHandler + B MFS7TX_IRQHandler + + PUBWEAK PPG_Handler + SECTION .text:CODE:REORDER(1) +PPG_Handler + B PPG_Handler + + PUBWEAK TIM_IRQHandler + SECTION .text:CODE:REORDER(1) +TIM_IRQHandler + B TIM_IRQHandler + + PUBWEAK ADC0_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC0_IRQHandler + B ADC0_IRQHandler + + PUBWEAK ADC1_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC1_IRQHandler + B ADC1_IRQHandler + + PUBWEAK ADC2_IRQHandler + SECTION .text:CODE:REORDER(1) +ADC2_IRQHandler + B ADC2_IRQHandler + + PUBWEAK MFT_FRT_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_FRT_IRQHandler + B MFT_FRT_IRQHandler + + PUBWEAK MFT_IPC_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_IPC_IRQHandler + B MFT_IPC_IRQHandler + + PUBWEAK MFT_OPC_IRQHandler + SECTION .text:CODE:REORDER(1) +MFT_OPC_IRQHandler + B MFT_OPC_IRQHandler + + PUBWEAK BT0_7_IRQHandler + SECTION .text:CODE:REORDER(1) +BT0_7_IRQHandler + B BT0_7_IRQHandler + + PUBWEAK ETHER_MAC0_IRQHandler + SECTION .text:CODE:REORDER(1) +ETHER_MAC0_IRQHandler + B ETHER_MAC0_IRQHandler + + PUBWEAK ETHER_MAC1_IRQHandler + SECTION .text:CODE:REORDER(1) +ETHER_MAC1_IRQHandler + B ETHER_MAC1_IRQHandler + + PUBWEAK USB0F_Handler + SECTION .text:CODE:REORDER(1) +USB0F_Handler + B USB0F_Handler + + PUBWEAK USB0_Handler + SECTION .text:CODE:REORDER(1) +USB0_Handler + B USB0_Handler + + PUBWEAK USB1F_Handler + SECTION .text:CODE:REORDER(1) +USB1F_Handler + B USB1F_Handler + + PUBWEAK USB1_Handler + SECTION .text:CODE:REORDER(1) +USB1_Handler + B USB1_Handler + + PUBWEAK DMAC0_Handler + SECTION .text:CODE:REORDER(1) +DMAC0_Handler + B DMAC0_Handler + + + PUBWEAK DMAC1_Handler + SECTION .text:CODE:REORDER(1) +DMAC1_Handler + B DMAC1_Handler + + PUBWEAK DMAC2_Handler + SECTION .text:CODE:REORDER(1) +DMAC2_Handler + B DMAC2_Handler + + PUBWEAK DMAC3_Handler + SECTION .text:CODE:REORDER(1) +DMAC3_Handler + B DMAC3_Handler + + PUBWEAK DMAC4_Handler + SECTION .text:CODE:REORDER(1) +DMAC4_Handler + B DMAC4_Handler + + PUBWEAK DMAC5_Handler + SECTION .text:CODE:REORDER(1) +DMAC5_Handler + B DMAC5_Handler + + PUBWEAK DMAC6_Handler + SECTION .text:CODE:REORDER(1) +DMAC6_Handler + B DMAC6_Handler + + PUBWEAK DMAC7_Handler + SECTION .text:CODE:REORDER(1) +DMAC7_Handler + B DMAC7_Handler + + PUBWEAK BT8_15_IRQHandler + SECTION .text:CODE:REORDER(1) +BT8_15_IRQHandler + B BT8_15_IRQHandler + + PUBWEAK DummyHandler + SECTION .text:CODE:REORDER(1) +DummyHandler + B DummyHandler + + END diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c new file mode 100644 index 0000000000..a039f02431 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c @@ -0,0 +1,206 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ + +#include "board.h" + +/** \file system_mb9bf61x.c + ** + ** FM3 system initialization functions + ** All adjustments can be done in belonging header file. + ** + ** History: + ** 2011-07-07 V1.0 MWi original version + ******************************************************************************/ + +/** + ****************************************************************************** + ** System Clock Frequency (Core Clock) Variable according CMSIS + ******************************************************************************/ +uint32_t SystemCoreClock = __HCLK; + +/** + ****************************************************************************** + ** \brief Update the System Core Clock with current core Clock retrieved from + ** cpu registers. + ** \param none + ** \return none + ******************************************************************************/ +void SystemCoreClockUpdate (void) { + uint32_t masterClk; + uint32_t u32RegisterRead; // Workaround variable for MISRA C rule conformance + + switch ((FM3_CRG->SCM_CTL >> 5) & 0x07) { + case 0: /* internal High-speed Cr osc. */ + masterClk = __CLKHC; + break; + + case 1: /* external main osc. */ + masterClk = __CLKMO; + break; + + case 2: /* PLL clock */ + // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) + // violation: + // "Unordered accesses to a volatile location" + u32RegisterRead = (__CLKMO * (((FM3_CRG->PLL_CTL2) & 0x1F) + 1)); + masterClk = (u32RegisterRead / (((FM3_CRG->PLL_CTL1 >> 4) & 0x0F) + 1)); + break; + + case 4: /* internal Low-speed CR osc. */ + masterClk = __CLKLC; + break; + + case 5: /* external Sub osc. */ + masterClk = __CLKSO; + break; + + default: + masterClk = 0Ul; + break; + } + + switch (FM3_CRG->BSC_PSR & 0x07) { + case 0: + SystemCoreClock = masterClk; + break; + + case 1: + SystemCoreClock = masterClk / 2; + break; + + case 2: + SystemCoreClock = masterClk / 3; + break; + + case 3: + SystemCoreClock = masterClk / 4; + break; + + case 4: + SystemCoreClock = masterClk / 6; + break; + + case 5: + SystemCoreClock = masterClk /8; + break; + + case 6: + SystemCoreClock = masterClk /16; + break; + + default: + SystemCoreClock = 0Ul; + break; + } + +} + +/** + ****************************************************************************** + ** \brief Setup the microcontroller system. Initialize the System and update + ** the SystemCoreClock variable. + ** + ** \param none + ** \return none + ******************************************************************************/ +void SystemInit (void) { + + static uint32_t u32IoRegisterRead; // Workaround variable for MISRA C rule conformance + +#if (HWWD_DISABLE) /* HW Watchdog Disable */ + FM3_HWWDT->WDG_LCK = 0x1ACCE551; /* HW Watchdog Unlock */ + FM3_HWWDT->WDG_LCK = 0xE5331AAE; + FM3_HWWDT->WDG_CTL = 0; /* HW Watchdog stop */ +#endif + +#if (CLOCK_SETUP) /* Clock Setup */ + FM3_CRG->BSC_PSR = BSC_PSR_Val; /* set System Clock presacaler */ + FM3_CRG->APBC0_PSR = APBC0_PSR_Val; /* set APB0 presacaler */ + FM3_CRG->APBC1_PSR = APBC1_PSR_Val; /* set APB1 presacaler */ + FM3_CRG->APBC2_PSR = APBC2_PSR_Val; /* set APB2 presacaler */ + FM3_CRG->SWC_PSR = SWC_PSR_Val | (1UL << 7); /* set SW Watchdog presacaler */ + FM3_CRG->TTC_PSR = TTC_PSR_Val; /* set Trace Clock presacaler */ + + FM3_CRG->CSW_TMR = CSW_TMR_Val; /* set oscillation stabilization wait time */ + + if (SCM_CTL_Val & (1UL << 1)) { /* Main clock oscillator enabled ? */ + FM3_CRG->SCM_CTL |= (1UL << 1); /* enable main oscillator */ + while (!(FM3_CRG->SCM_STR & (1UL << 1))); /* wait for Main clock oscillation stable */ + } + + if (SCM_CTL_Val & (1UL << 3)) { /* Sub clock oscillator enabled ? */ + FM3_CRG->SCM_CTL |= (1UL << 3); /* enable sub oscillator */ + while (!(FM3_CRG->SCM_STR & (1UL << 3))); /* wait for Sub clock oscillation stable */ + } + + FM3_CRG->PSW_TMR = PSW_TMR_Val; /* set PLL stabilization wait time */ + FM3_CRG->PLL_CTL1 = PLL_CTL1_Val; /* set PLLM and PLLK */ + FM3_CRG->PLL_CTL2 = PLL_CTL2_Val; /* set PLLN */ + + if (SCM_CTL_Val & (1UL << 4)) { /* PLL enabled ? */ + FM3_CRG->SCM_CTL |= (1UL << 4); /* enable PLL */ + while (!(FM3_CRG->SCM_STR & (1UL << 4))); /* wait for PLL stable */ + } + + FM3_CRG->SCM_CTL |= (SCM_CTL_Val & 0xE0); /* Set Master Clock switch */ + + { + volatile unsigned int i; + for(i=0;i<200000;i++); + } + // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) + // violations: + // "Unordered reads and writes to or from same location" and + // "Unordered accesses to a volatile location" + do + { + u32IoRegisterRead = (FM3_CRG->SCM_CTL & 0xE0); + }while ((FM3_CRG->SCM_STR & 0xE0) != u32IoRegisterRead); +#endif // (CLOCK_SETUP) + +#if (CR_TRIM_SETUP) + /* CR Trimming Data */ + if( 0x000003FF != (FM3_FLASH_IF->CRTRMM & 0x000003FF) ) + { + /* UnLock (MCR_FTRM) */ + FM3_CRTRIM->MCR_RLR = 0x1ACCE554; + /* Set MCR_FTRM */ + FM3_CRTRIM->MCR_FTRM = FM3_FLASH_IF->CRTRMM; + /* Lock (MCR_FTRM) */ + FM3_CRTRIM->MCR_RLR = 0x00000000; + } +#endif // (CR_TRIM_SETUP) +} + + + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h new file mode 100644 index 0000000000..819f3646e9 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h @@ -0,0 +1,678 @@ +/************************************************************************/ +/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ +/* */ +/* The following software deliverable is intended for and must only be */ +/* used for reference and in an evaluation laboratory environment. */ +/* It is provided on an as-is basis without charge and is subject to */ +/* alterations. */ +/* It is the user's obligation to fully test the software in its */ +/* environment and to ensure proper functionality, qualification and */ +/* compliance with component specifications. */ +/* */ +/* In the event the software deliverable includes the use of open */ +/* source components, the provisions of the governing open source */ +/* license agreement shall apply with respect to such software */ +/* deliverable. */ +/* FSEU does not warrant that the deliverables do not infringe any */ +/* third party intellectual property right (IPR). In the event that */ +/* the deliverables infringe a third party IPR it is the sole */ +/* responsibility of the customer to obtain necessary licenses to */ +/* continue the usage of the deliverable. */ +/* */ +/* To the maximum extent permitted by applicable law FSEU disclaims all */ +/* warranties, whether express or implied, in particular, but not */ +/* limited to, warranties of merchantability and fitness for a */ +/* particular purpose for which the deliverable is not designated. */ +/* */ +/* To the maximum extent permitted by applicable law, FSEU's liability */ +/* is restricted to intentional misconduct and gross negligence. */ +/* FSEU is not liable for consequential damages. */ +/* */ +/* (V1.5) */ +/************************************************************************/ +/** \file system_mb9bf61x.h + ** + ** Headerfile for FM3 system parameters + ** + ** User clock definitions can be done for the following clock settings: + ** - CLOCK_SETUP : Execute the clock settings form the settings below in + ** SystemInit() + ** - __CLKMO : External clock frequency for main oscillion + ** - __CLKSO : External clock frequency for sub oscillion + ** - SCM_CTL : System Clock Mode Control Register + ** - BSC_PSR : Base Clock Prescaler Register + ** - APBC0_PSR : APB0 Prescaler Register + ** - APBC1_PSR : APB1 Prescaler Register + ** - APBC2_PSR : APB2 Prescaler Register + ** - SWC_PSR : Software Watchdog Clock Prescaler Register + ** - TTC_PSR : Trace Clock Prescaler Register + ** - CSW_TMR : Clock Stabilization Wait Time Register + ** - PSW_TMR : PLL Clock Stabilization Wait Time Setup Register + ** - PLL_CTL1 : PLL Control Register 1 + ** - PLL_CTL2 : PLL Control Register 2 + ** + ** The register settings are check for correct values of reserved bits. + ** Otherwise a preprocessor error is output and stops the build process. + ** Furthermore the 'master clock' is retrieved from the register settings + ** and the system clock (HCLK) is calculated from the Base Clock Prescaler + ** Register (BSC_PSR). This value is used for the global CMSIS variable + ** #SystemCoreClock. Also the absolute external, PLL and HCL freqeuncy is + ** is checked. Note that not all possible wrong setting are checked! The + ** user has to take care to fulfill the settings stated in the according + ** device's data sheet! + ** + ** User definition for Hardware Watchdog: + ** - HWWD_DISABLE : Disables Hardware Watchdog in SystemInit() + ** + ** User definition for CR Trimming: + ** - CR_TRIM_SETUP : Enables CR trimming in SystemInit() + ** + ** History: + ** 2011-05-16 V1.0 MWi original version + *****************************************************************************/ + +#ifndef _SYSTEM_MB9BF61X_H_ +#define _SYSTEM_MB9BF61X_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/******************************************************************************/ +/* Include files */ +/******************************************************************************/ + +#include + +/******************************************************************************/ +/* Global pre-processor symbols/macros ('define') */ +/******************************************************************************/ + +/******************************************************************************/ +/* */ +/* START OF USER SETTINGS HERE */ +/* =========================== */ +/* */ +/* All lines with '<<<' can be set by user. */ +/* */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Clock Setup Enable + ** (USER SETTING) + ** + ** - 0 = No clock setup done by system_mb9xfxxx.c + ** - 1 = Clock setup done by system_mb9xfxxx.c + ******************************************************************************/ +#define CLOCK_SETUP 1 // <<< Define clock setup here + +/** + ****************************************************************************** + ** \brief External Main Clock Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKMO ( 4000000UL) // <<< External 4MHz Crystal + +/** + ****************************************************************************** + ** \brief External Sub Clock Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKSO ( 32768UL) // <<< External 32KHz Crystal + +/** + ****************************************************************************** + ** \brief System Clock Mode Control Register value definition + ** (USER SETTING) + ** + ** SCM_CTL + ** + ** Bit#7-5 : RCS[2:0] + ** - 0 = Internal high-speed CR oscillation (default) + ** - 1 = Main oscillation clock + ** - 2 = PLL oscillation clock + ** - 3 = (not allowed) + ** - 4 = Internal low-speed CR oscillation + ** - 5 = Sub clock oscillation + ** - 6 = (not allowed) + ** - 7 = (not allowed) + ** + ** Bit#4 : PLLE + ** - 0 = Disable PLL (default) + ** - 1 = Enable PLL + ** + ** Bit#3 : SOSCE + ** - 0 = Disable sub oscillation (default) + ** - 1 = Enable sub oscillation + ** + ** Bit#2 : (reserved) + ** + ** Bit#1 : MOSCE + ** - 0 = Disable main oscillation (default) + ** - 1 = Enable main oscillation + ** + ** Bit#0 : (reserved) + ******************************************************************************/ +#define SCM_CTL_Val 0x00000052 // <<< Define SCM_CTL here + +/** + ****************************************************************************** + ** \brief Base Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** BSC_PSR + ** + ** Bit#7-3 : (reserved) + ** + ** Bit#2-0 : BSR[2:0] + ** - 0 = HCLK = Master Clock + ** - 1 = HCLK = Master Clock / 2 + ** - 2 = HCLK = Master Clock / 3 + ** - 3 = HCLK = Master Clock / 4 + ** - 4 = HCLK = Master Clock / 6 + ** - 5 = HCLK = Master Clock / 8 + ** - 6 = HCLK = Master Clock / 16 + ** - 7 = (reserved) + ******************************************************************************/ +#define BSC_PSR_Val 0x00000000 // <<< Define BSC_PSR here + +/** + ****************************************************************************** + ** \brief APB0 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC0_PSR + ** + ** Bit#7-2 : (reserved) + ** + ** Bit#1-0 : BSR[2:0] + ** - 0 = PCLK0 = HCLK + ** - 1 = PCLK0 = HCLK / 2 + ** - 2 = PCLK0 = HCLK / 4 + ** - 3 = PCLK0 = HCLK / 8 + ******************************************************************************/ +#define APBC0_PSR_Val 0x00000001 // <<< Define APBC0_PSR here + +/** + ****************************************************************************** + ** \brief APB1 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC1_PSR + ** + ** Bit#7 : APBC1EN + ** - 0 = Disable PCLK1 output + ** - 1 = Enables PCLK1 (default) + ** + ** Bit#6-5 : (reserved) + ** + ** Bit#4 : APBC1RST + ** - 0 = APB1 bus reset, inactive (default) + ** - 1 = APB1 bus reset, active + ** + ** Bit#3-2 : (reserved) + ** + ** Bit#1-0 : APBC1[2:0] + ** - 0 = PCLK1 = HCLK + ** - 1 = PCLK1 = HCLK / 2 + ** - 2 = PCLK1 = HCLK / 4 + ** - 3 = PCLK1 = HCLK / 8 + ******************************************************************************/ +#define APBC1_PSR_Val 0x00000081 // <<< Define APBC1_PSR here + +/** + ****************************************************************************** + ** \brief APB2 Prescaler Register value definition + ** (USER SETTING) + ** + ** APBC2_PSR + ** + ** Bit#7 : APBC2EN + ** - 0 = Disable PCLK2 output + ** - 1 = Enables PCLK2 (default) + ** + ** Bit#6-5 : (reserved) + ** + ** Bit#4 : APBC2RST + ** - 0 = APB2 bus reset, inactive (default) + ** - 1 = APB2 bus reset, active + ** + ** Bit#3-2 : (reserved) + ** + ** Bit#1-0 : APBC2[1:0] + ** - 0 = PCLK2 = HCLK + ** - 1 = PCLK2 = HCLK / 2 + ** - 2 = PCLK2 = HCLK / 4 + ** - 3 = PCLK2 = HCLK / 8 + ******************************************************************************/ +#define APBC2_PSR_Val 0x00000081 // <<< Define APBC2_PSR here + +/** + ****************************************************************************** + ** \brief Software Watchdog Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** SWC_PSR + ** + ** Bit#7 : TESTB + ** - 0 = (not allowed) + ** - 1 = (always write "1" to this bit) + ** + ** Bit#6-2 : (reserved) + ** + ** Bit#1-0 : SWDS[2:0] + ** - 0 = SWDGOGCLK = PCLK0 + ** - 1 = SWDGOGCLK = PCLK0 / 2 + ** - 2 = SWDGOGCLK = PCLK0 / 4 + ** - 3 = SWDGOGCLK = PCLK0 / 8 + ******************************************************************************/ +#define SWC_PSR_Val 0x00000003 // <<< Define SWC_PSR here + +/** + ****************************************************************************** + ** \brief Trace Clock Prescaler Register value definition + ** (USER SETTING) + ** + ** TTC_PSR + ** + ** Bit#7-1 : (reserved) + ** + ** Bit#0 : TTC + ** - 0 = TPIUCLK = HCLK + ** - 1 = TPIUCLK = HCLK / 2 + ******************************************************************************/ +#define TTC_PSR_Val 0x00000000 // <<< Define TTC_PSR here + +/** + ****************************************************************************** + ** \brief Clock Stabilization Wait Time Register value definition + ** (USER SETTING) + ** + ** CSW_TMR + ** + ** Bit#7 : (reserved) + ** + ** Bit#6-4 : SOWT[2:0] + ** - 0 = ~10.3 ms (default) + ** - 1 = ~20.5 ms + ** - 2 = ~41 ms + ** - 3 = ~82 ms + ** - 4 = ~164 ms + ** - 5 = ~327 ms + ** - 6 = ~655 ms + ** - 7 = ~1.31 s + ** + ** Bit#3-0 : MOWT[3:0] + ** - 0 = ~500 ns (default) + ** - 1 = ~8 us + ** - 2 = ~16 us + ** - 3 = ~32 us + ** - 4 = ~64 us + ** - 5 = ~128 us + ** - 6 = ~256 us + ** - 7 = ~512 us + ** - 8 = ~1.0 ms + ** - 9 = ~2.0 ms + ** - 10 = ~4.0 ms + ** - 11 = ~8.0 ms + ** - 12 = ~33.0 ms + ** - 13 = ~131 ms + ** - 14 = ~524 ms + ** - 15 = ~2.0 s + ******************************************************************************/ +#define CSW_TMR_Val 0x0000005C // <<< Define CSW_TMR here + +/** + ****************************************************************************** + ** \brief PLL Clock Stabilization Wait Time Setup Register value definition + ** (USER SETTING) + ** + ** PSW_TMR + ** + ** Bit#7-5 : (reserved) + ** + ** Bit#4 : PINC + ** - 0 = Selects CLKMO (main oscillation) (default) + ** - 1 = (setting diabled) + ** + ** Bit#3 : (reserved) + ** + ** Bit#2-0 : POWT[2:0] + ** - 0 = ~128 us (default) + ** - 1 = ~256 us + ** - 2 = ~512 us + ** - 3 = ~1.02 ms + ** - 4 = ~2.05 ms + ** - 5 = ~4.10 ms + ** - 6 = ~8.20 ms + ** - 7 = ~16.40 ms + ******************************************************************************/ +#define PSW_TMR_Val 0x00000000 // <<< Define PSW_TMR here + +/** + ****************************************************************************** + ** \brief PLL Control Register 1 value definition + ** (USER SETTING) + ** + ** PLL_CTL1 + ** + ** Bit#7-4 : PLLK[3:0] + ** - 0 = Division(PLLK) = 1/1 (default) + ** - 1 = Division(PLLK) = 1/2 + ** - 2 = Division(PLLK) = 1/3 + ** - . . . + ** - 15 = Division(PLLK) = 1/16 + ** + ** Bit#3-0 : PLLM[3:0] + ** - 0 = Division(PLLM) = 1/1 (default) + ** - 1 = Division(PLLM) = 1/2 + ** - 2 = Division(PLLM) = 1/3 + ** - . . . + ** - 15 = Division(PLLM) = 1/16 + ******************************************************************************/ +#define PLL_CTL1_Val 0x00000001 // <<< Define PLL_CTL1 here + +/** + ****************************************************************************** + ** \brief PLL Control Register 2 value definition + ** (USER SETTING) + ** + ** PLL_CTL2 + ** + ** Bit#7-6 : (reserved) + ** + ** Bit#5-0 : PLLN[5:0] + ** - 0 = Division(PLLN) = 1/1 (default) + ** - 1 = Division(PLLN) = 1/2 + ** - 2 = Division(PLLN) = 1/3 + ** - . . . + ** - 63 = Division(PLLN) = 1/64 + ******************************************************************************/ +#define PLL_CTL2_Val 0x00000023 // <<< Define PLL_CTL2 here + +/** + ****************************************************************************** + ** \brief Hardware Watchdog disable definition + ** (USER SETTING) + ** + ** - 0 = Hardware Watchdog enable + ** - 1 = Hardware Watchdog disable + ******************************************************************************/ +#define HWWD_DISABLE 1 // <<< Define HW Watach dog enable here + +/** + ****************************************************************************** + ** \brief Trimming CR + ** (USER SETTING) + ** + ** - 0 = CR is not trimmed at startup + ** - 1 = CR is trimmed at startup + ******************************************************************************/ +#define CR_TRIM_SETUP 1 // <<< Define CR trimming at startup enable here + + +/******************************************************************************/ +/* */ +/* END OF USER SETTINGS HERE */ +/* ========================= */ +/* */ +/******************************************************************************/ + +/******************************************************************************/ +/* Device dependent System Clock absolute maximum ranges */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Internal High-Speed CR Oscillator Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKHC ( 4000000UL) /* Internal 4MHz CR Oscillator */ + +/** + ****************************************************************************** + ** \brief Internal Low-Speed CR Oscillator Frequency (in Hz, [value]UL) + ** (USER SETTING) + ******************************************************************************/ +#define __CLKLC ( 100000UL) /* Internal 100KHz CR Oscillator */ + +/** + ****************************************************************************** + ** \brief Any case minimum Main Clock frequency (in Hz, [value]UL) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKMOMIN ( 4000000UL) + +/** + ****************************************************************************** + ** \brief Maximum Main Clock frequency using external clock + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKMOMAX ( 50000000UL) + +/** + ****************************************************************************** + ** \brief Any case minimum Sub Clock frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKSOMIN ( 32000UL) + +/** + ****************************************************************************** + ** \brief Maximum Sub Clock frequency using external clock + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __CLKSOMAX ( 100000UL) + +/** + ****************************************************************************** + ** \brief Absolute minimum PLL input frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKINMIN ( 4000000UL) + +/** + ****************************************************************************** + ** \brief Absolute maximum PLL input frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKINMAX ( 16000000UL) + +/** + ****************************************************************************** + ** \brief Absolute minimum PLL oscillation frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKMIN (200000000UL) + +/** + ****************************************************************************** + ** \brief Absolute maximum PLL oscillation frequency + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __PLLCLKMAX (300000000UL) + +/** + ****************************************************************************** + ** \brief Absolute maximum System Clock frequency (HCLK) + ** (DEVICE DEPENDENT SETTING) + ******************************************************************************/ +#define __HCLKMAX (144000000UL) + +/** + ****************************************************************************** + ** \brief Preprocessor macro for checking range (clock settings) + ******************************************************************************/ +#define CHECK_RANGE(val, min, max) ((val < min) || (val > max)) + +/** + ****************************************************************************** + ** \brief Preprocessor macro for checking bits with mask (clock settings) + ******************************************************************************/ +#define CHECK_RSVD(val, mask) (val & mask) + + +/******************************************************************************/ +/* Check register settings */ +/******************************************************************************/ +#if (CHECK_RSVD((SCM_CTL_Val), ~0x000000FA)) + #error "SCM_CTL: Invalid values of reserved bits!" +#endif + +#if ((SCM_CTL_Val & 0xE0) == 0x40) && ((SCM_CTL_Val & 0x10) != 0x10) + #error "SCM_CTL: CLKPLL is selected but PLL is not enabled!" +#endif + +#if (CHECK_RSVD((CSW_TMR_Val), ~0x0000007F)) + #error "CSW_TMR: Invalid values of reserved bits!" +#endif + +#if ((SCM_CTL_Val & 0x10)) /* if PLL is used */ + #if (CHECK_RSVD((PSW_TMR_val), ~0x00000007)) + #error "PSW_TMR: Invalid values of reserved bits!" + #endif + + #if (CHECK_RSVD((PLL_CTL1_Val), ~0x000000FF)) + #error "PLL_CTL1: Invalid values of reserved bits!" + #endif + + #if (CHECK_RSVD((PLL_CTL2_Val), ~0x0000003F)) + #error "PLL_CTL2: Invalid values of reserved bits!" + #endif +#endif + +#if (CHECK_RSVD((BSC_PSR_Val), ~0x00000007)) + #error "BSC_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC0_PSR_Val), ~0x00000003)) + #error "APBC0_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC1_PSR_Val), ~0x00000083)) + #error "APBC1_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((APBC2_PSR_Val), ~0x00000083)) + #error "APBC2_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((SWC_PSR_Val), ~0x00000003)) + #error "SWC_PSR: Invalid values of reserved bits!" +#endif + +#if (CHECK_RSVD((TTC_PSR_Val), ~0x00000001)) + #error "TTC_PSR: Invalid values of reserved bits!" +#endif + +/******************************************************************************/ +/* Define clocks with checking settings */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Calculate PLL K factor from settings + ******************************************************************************/ +#define __PLLK (((PLL_CTL1_Val >> 4) & 0x0F) + 1) + +/** + ****************************************************************************** + ** \brief Calculate PLL N factor from settings + ******************************************************************************/ +#define __PLLN (((PLL_CTL2_Val ) & 0x3F) + 1) + +/** + ****************************************************************************** + ** \brief Calculate PLL M factor from settings + ******************************************************************************/ +#define __PLLM (((PLL_CTL1_Val ) & 0x0F) + 1) + +/** + ****************************************************************************** + ** \brief Calculate PLL output frequency from settings + ******************************************************************************/ +#define __PLLCLK ((__CLKMO * __PLLN) / __PLLK) + +/******************************************************************************/ +/* Determine core clock frequency according to settings */ +/******************************************************************************/ + +/** + ****************************************************************************** + ** \brief Define Master Clock from settings + ******************************************************************************/ +#if (((SCM_CTL_Val >> 5) & 0x07) == 0) + #define __MASTERCLK (__CLKHC) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 1) + #define __MASTERCLK (__CLKMO) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 2) + #define __MASTERCLK (__PLLCLK) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 4) + #define __MASTERCLK (__CLKLC) +#elif (((SCM_CTL_Val >> 5) & 0x07) == 5) + #define __MASTERCLK (__CLKSO) +#else + #define __MASTERCLK (0UL) +#endif + +/** + ****************************************************************************** + ** \brief Define System Clock Frequency (Core Clock) from settings + ******************************************************************************/ +#if ((BSC_PSR_Val & 0x07) == 0) + #define __HCLK (__MASTERCLK / 1) +#elif ((BSC_PSR_Val & 0x07) == 1) + #define __HCLK (__MASTERCLK / 2) +#elif ((BSC_PSR_Val & 0x07) == 2) + #define __HCLK (__MASTERCLK / 3) +#elif ((BSC_PSR_Val & 0x07) == 3) + #define __HCLK (__MASTERCLK / 4) +#elif ((BSC_PSR_Val & 0x07) == 4) + #define __HCLK (__MASTERCLK / 6) +#elif ((BSC_PSR_Val & 0x07) == 5) + #define __HCLK (__MASTERCLK / 8) +#elif ((BSC_PSR_Val & 0x07) == 6) + #define __HCLK (__MASTERCLK /16) +#else + #define __HCLK (0UL) +#endif + +/******************************************************************************/ +/* HCLK range check */ +/******************************************************************************/ +#if (CHECK_RANGE(__CLKMO, __CLKMOMIN, __CLKMOMAX) != 0) + #error "Main Oscillator Clock (CLKMO) out of range!" +#endif + +#if (CHECK_RANGE(__CLKSO, __CLKSOMIN, __CLKSOMAX) != 0) + #error "Sub Oscillator Clock (CLKMO) out of range!" +#endif + +#if (CHECK_RANGE((__CLKMO / __PLLK), __PLLCLKINMIN, __PLLCLKINMAX) != 0) + #error "PLL input frequency out of range!" +#endif + +#if (CHECK_RANGE(((__CLKMO * __PLLN * __PLLM) / __PLLK), __PLLCLKMIN, __PLLCLKMAX) != 0) + #error "PLL oscillation frequency out of range!" +#endif + +#if (CHECK_RANGE(__HCLK, 0, __HCLKMAX) != 0) + #error "System Clock (HCLK) out of range!" +#endif + +/******************************************************************************/ +/* Global function prototypes ('extern', definition in C source) */ +/******************************************************************************/ + +extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) + +extern void SystemInit (void); // Initialize the system + +extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable + +#ifdef __cplusplus +} +#endif + +#endif /* __SYSTEM_MB9BF61X_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_common_tables.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_common_tables.h new file mode 100644 index 0000000000..7a59b5923e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_common_tables.h @@ -0,0 +1,93 @@ +/* ---------------------------------------------------------------------- +* Copyright (C) 2010-2013 ARM Limited. All rights reserved. +* +* $Date: 17. January 2013 +* $Revision: V1.4.1 +* +* Project: CMSIS DSP Library +* Title: arm_common_tables.h +* +* Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions +* +* Target Processor: Cortex-M4/Cortex-M3 +* +* 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 LIMITED 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 THE +* COPYRIGHT OWNER OR 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 _ARM_COMMON_TABLES_H +#define _ARM_COMMON_TABLES_H + +#include "arm_math.h" + +extern const uint16_t armBitRevTable[1024]; +extern const q15_t armRecipTableQ15[64]; +extern const q31_t armRecipTableQ31[64]; +extern const q31_t realCoefAQ31[1024]; +extern const q31_t realCoefBQ31[1024]; +extern const float32_t twiddleCoef_16[32]; +extern const float32_t twiddleCoef_32[64]; +extern const float32_t twiddleCoef_64[128]; +extern const float32_t twiddleCoef_128[256]; +extern const float32_t twiddleCoef_256[512]; +extern const float32_t twiddleCoef_512[1024]; +extern const float32_t twiddleCoef_1024[2048]; +extern const float32_t twiddleCoef_2048[4096]; +extern const float32_t twiddleCoef_4096[8192]; +#define twiddleCoef twiddleCoef_4096 +extern const q31_t twiddleCoefQ31[6144]; +extern const q15_t twiddleCoefQ15[6144]; +extern const float32_t twiddleCoef_rfft_32[32]; +extern const float32_t twiddleCoef_rfft_64[64]; +extern const float32_t twiddleCoef_rfft_128[128]; +extern const float32_t twiddleCoef_rfft_256[256]; +extern const float32_t twiddleCoef_rfft_512[512]; +extern const float32_t twiddleCoef_rfft_1024[1024]; +extern const float32_t twiddleCoef_rfft_2048[2048]; +extern const float32_t twiddleCoef_rfft_4096[4096]; + + +#define ARMBITREVINDEXTABLE__16_TABLE_LENGTH ((uint16_t)20 ) +#define ARMBITREVINDEXTABLE__32_TABLE_LENGTH ((uint16_t)48 ) +#define ARMBITREVINDEXTABLE__64_TABLE_LENGTH ((uint16_t)56 ) +#define ARMBITREVINDEXTABLE_128_TABLE_LENGTH ((uint16_t)208 ) +#define ARMBITREVINDEXTABLE_256_TABLE_LENGTH ((uint16_t)440 ) +#define ARMBITREVINDEXTABLE_512_TABLE_LENGTH ((uint16_t)448 ) +#define ARMBITREVINDEXTABLE1024_TABLE_LENGTH ((uint16_t)1800) +#define ARMBITREVINDEXTABLE2048_TABLE_LENGTH ((uint16_t)3808) +#define ARMBITREVINDEXTABLE4096_TABLE_LENGTH ((uint16_t)4032) + +extern const uint16_t armBitRevIndexTable16[ARMBITREVINDEXTABLE__16_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable32[ARMBITREVINDEXTABLE__32_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable64[ARMBITREVINDEXTABLE__64_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable128[ARMBITREVINDEXTABLE_128_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable256[ARMBITREVINDEXTABLE_256_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable512[ARMBITREVINDEXTABLE_512_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable1024[ARMBITREVINDEXTABLE1024_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable2048[ARMBITREVINDEXTABLE2048_TABLE_LENGTH]; +extern const uint16_t armBitRevIndexTable4096[ARMBITREVINDEXTABLE4096_TABLE_LENGTH]; + +#endif /* ARM_COMMON_TABLES_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_const_structs.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_const_structs.h new file mode 100644 index 0000000000..8d7fac0f04 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_const_structs.h @@ -0,0 +1,85 @@ +/* ---------------------------------------------------------------------- +* Copyright (C) 2010-2013 ARM Limited. All rights reserved. +* +* $Date: 17. January 2013 +* $Revision: V1.4.1 +* +* Project: CMSIS DSP Library +* Title: arm_const_structs.h +* +* Description: This file has constant structs that are initialized for +* user convenience. For example, some can be given as +* arguments to the arm_cfft_f32() function. +* +* Target Processor: Cortex-M4/Cortex-M3 +* +* 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 LIMITED 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 THE +* COPYRIGHT OWNER OR 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 _ARM_CONST_STRUCTS_H +#define _ARM_CONST_STRUCTS_H + +#include "arm_math.h" +#include "arm_common_tables.h" + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len16 = { + 16, twiddleCoef_16, armBitRevIndexTable16, ARMBITREVINDEXTABLE__16_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len32 = { + 32, twiddleCoef_32, armBitRevIndexTable32, ARMBITREVINDEXTABLE__32_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len64 = { + 64, twiddleCoef_64, armBitRevIndexTable64, ARMBITREVINDEXTABLE__64_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len128 = { + 128, twiddleCoef_128, armBitRevIndexTable128, ARMBITREVINDEXTABLE_128_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len256 = { + 256, twiddleCoef_256, armBitRevIndexTable256, ARMBITREVINDEXTABLE_256_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len512 = { + 512, twiddleCoef_512, armBitRevIndexTable512, ARMBITREVINDEXTABLE_512_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024 = { + 1024, twiddleCoef_1024, armBitRevIndexTable1024, ARMBITREVINDEXTABLE1024_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len2048 = { + 2048, twiddleCoef_2048, armBitRevIndexTable2048, ARMBITREVINDEXTABLE2048_TABLE_LENGTH + }; + + const arm_cfft_instance_f32 arm_cfft_sR_f32_len4096 = { + 4096, twiddleCoef_4096, armBitRevIndexTable4096, ARMBITREVINDEXTABLE4096_TABLE_LENGTH + }; + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_math.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_math.h new file mode 100644 index 0000000000..65304c127d --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/arm_math.h @@ -0,0 +1,7306 @@ +/* ---------------------------------------------------------------------- +* Copyright (C) 2010-2013 ARM Limited. All rights reserved. +* +* $Date: 17. January 2013 +* $Revision: V1.4.1 +* +* Project: CMSIS DSP Library +* Title: arm_math.h +* +* Description: Public header file for CMSIS DSP Library +* +* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0 +* +* 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 LIMITED 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 THE +* COPYRIGHT OWNER OR 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. + * -------------------------------------------------------------------- */ + +/** + \mainpage CMSIS DSP Software Library + * + * Introduction + * + * This user manual describes the CMSIS DSP software library, + * a suite of common signal processing functions for use on Cortex-M processor based devices. + * + * The library is divided into a number of functions each covering a specific category: + * - Basic math functions + * - Fast math functions + * - Complex math functions + * - Filters + * - Matrix functions + * - Transforms + * - Motor control functions + * - Statistical functions + * - Support functions + * - Interpolation functions + * + * The library has separate functions for operating on 8-bit integers, 16-bit integers, + * 32-bit integer and 32-bit floating-point values. + * + * Using the Library + * + * The library installer contains prebuilt versions of the libraries in the Lib folder. + * - arm_cortexM4lf_math.lib (Little endian and Floating Point Unit on Cortex-M4) + * - arm_cortexM4bf_math.lib (Big endian and Floating Point Unit on Cortex-M4) + * - arm_cortexM4l_math.lib (Little endian on Cortex-M4) + * - arm_cortexM4b_math.lib (Big endian on Cortex-M4) + * - arm_cortexM3l_math.lib (Little endian on Cortex-M3) + * - arm_cortexM3b_math.lib (Big endian on Cortex-M3) + * - arm_cortexM0l_math.lib (Little endian on Cortex-M0) + * - arm_cortexM0b_math.lib (Big endian on Cortex-M3) + * + * The library functions are declared in the public file arm_math.h which is placed in the Include folder. + * Simply include this file and link the appropriate library in the application and begin calling the library functions. The Library supports single + * public header file arm_math.h for Cortex-M4/M3/M0 with little endian and big endian. Same header file will be used for floating point unit(FPU) variants. + * Define the appropriate pre processor MACRO ARM_MATH_CM4 or ARM_MATH_CM3 or + * ARM_MATH_CM0 or ARM_MATH_CM0PLUS depending on the target processor in the application. + * + * Examples + * + * The library ships with a number of examples which demonstrate how to use the library functions. + * + * Toolchain Support + * + * The library has been developed and tested with MDK-ARM version 4.60. + * The library is being tested in GCC and IAR toolchains and updates on this activity will be made available shortly. + * + * Building the Library + * + * The library installer contains project files to re build libraries on MDK Tool chain in the CMSIS\\DSP_Lib\\Source\\ARM folder. + * - arm_cortexM0b_math.uvproj + * - arm_cortexM0l_math.uvproj + * - arm_cortexM3b_math.uvproj + * - arm_cortexM3l_math.uvproj + * - arm_cortexM4b_math.uvproj + * - arm_cortexM4l_math.uvproj + * - arm_cortexM4bf_math.uvproj + * - arm_cortexM4lf_math.uvproj + * + * + * The project can be built by opening the appropriate project in MDK-ARM 4.60 chain and defining the optional pre processor MACROs detailed above. + * + * Pre-processor Macros + * + * Each library project have differant pre-processor macros. + * + * - UNALIGNED_SUPPORT_DISABLE: + * + * Define macro UNALIGNED_SUPPORT_DISABLE, If the silicon does not support unaligned memory access + * + * - ARM_MATH_BIG_ENDIAN: + * + * Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets. + * + * - ARM_MATH_MATRIX_CHECK: + * + * Define macro ARM_MATH_MATRIX_CHECK for checking on the input and output sizes of matrices + * + * - ARM_MATH_ROUNDING: + * + * Define macro ARM_MATH_ROUNDING for rounding on support functions + * + * - ARM_MATH_CMx: + * + * Define macro ARM_MATH_CM4 for building the library on Cortex-M4 target, ARM_MATH_CM3 for building library on Cortex-M3 target + * and ARM_MATH_CM0 for building library on cortex-M0 target, ARM_MATH_CM0PLUS for building library on cortex-M0+ target. + * + * - __FPU_PRESENT: + * + * Initialize macro __FPU_PRESENT = 1 when building on FPU supported Targets. Enable this macro for M4bf and M4lf libraries + * + * Copyright Notice + * + * Copyright (C) 2010-2013 ARM Limited. All rights reserved. + */ + + +/** + * @defgroup groupMath Basic Math Functions + */ + +/** + * @defgroup groupFastMath Fast Math Functions + * This set of functions provides a fast approximation to sine, cosine, and square root. + * As compared to most of the other functions in the CMSIS math library, the fast math functions + * operate on individual values and not arrays. + * There are separate functions for Q15, Q31, and floating-point data. + * + */ + +/** + * @defgroup groupCmplxMath Complex Math Functions + * This set of functions operates on complex data vectors. + * The data in the complex arrays is stored in an interleaved fashion + * (real, imag, real, imag, ...). + * In the API functions, the number of samples in a complex array refers + * to the number of complex values; the array contains twice this number of + * real values. + */ + +/** + * @defgroup groupFilters Filtering Functions + */ + +/** + * @defgroup groupMatrix Matrix Functions + * + * This set of functions provides basic matrix math operations. + * The functions operate on matrix data structures. For example, + * the type + * definition for the floating-point matrix structure is shown + * below: + *
+ *     typedef struct
+ *     {
+ *       uint16_t numRows;     // number of rows of the matrix.
+ *       uint16_t numCols;     // number of columns of the matrix.
+ *       float32_t *pData;     // points to the data of the matrix.
+ *     } arm_matrix_instance_f32;
+ * 
+ * There are similar definitions for Q15 and Q31 data types. + * + * The structure specifies the size of the matrix and then points to + * an array of data. The array is of size numRows X numCols + * and the values are arranged in row order. That is, the + * matrix element (i, j) is stored at: + *
+ *     pData[i*numCols + j]
+ * 
+ * + * \par Init Functions + * There is an associated initialization function for each type of matrix + * data structure. + * The initialization function sets the values of the internal structure fields. + * Refer to the function arm_mat_init_f32(), arm_mat_init_q31() + * and arm_mat_init_q15() for floating-point, Q31 and Q15 types, respectively. + * + * \par + * Use of the initialization function is optional. However, if initialization function is used + * then the instance structure cannot be placed into a const data section. + * To place the instance structure in a const data + * section, manually initialize the data structure. For example: + *
+ * arm_matrix_instance_f32 S = {nRows, nColumns, pData};
+ * arm_matrix_instance_q31 S = {nRows, nColumns, pData};
+ * arm_matrix_instance_q15 S = {nRows, nColumns, pData};
+ * 
+ * where nRows specifies the number of rows, nColumns + * specifies the number of columns, and pData points to the + * data array. + * + * \par Size Checking + * By default all of the matrix functions perform size checking on the input and + * output matrices. For example, the matrix addition function verifies that the + * two input matrices and the output matrix all have the same number of rows and + * columns. If the size check fails the functions return: + *
+ *     ARM_MATH_SIZE_MISMATCH
+ * 
+ * Otherwise the functions return + *
+ *     ARM_MATH_SUCCESS
+ * 
+ * There is some overhead associated with this matrix size checking. + * The matrix size checking is enabled via the \#define + *
+ *     ARM_MATH_MATRIX_CHECK
+ * 
+ * within the library project settings. By default this macro is defined + * and size checking is enabled. By changing the project settings and + * undefining this macro size checking is eliminated and the functions + * run a bit faster. With size checking disabled the functions always + * return ARM_MATH_SUCCESS. + */ + +/** + * @defgroup groupTransforms Transform Functions + */ + +/** + * @defgroup groupController Controller Functions + */ + +/** + * @defgroup groupStats Statistics Functions + */ +/** + * @defgroup groupSupport Support Functions + */ + +/** + * @defgroup groupInterpolation Interpolation Functions + * These functions perform 1- and 2-dimensional interpolation of data. + * Linear interpolation is used for 1-dimensional data and + * bilinear interpolation is used for 2-dimensional data. + */ + +/** + * @defgroup groupExamples Examples + */ +#ifndef _ARM_MATH_H +#define _ARM_MATH_H + +#define __CMSIS_GENERIC /* disable NVIC and Systick functions */ + +#if defined (ARM_MATH_CM4) +#include "core_cm4.h" +#elif defined (ARM_MATH_CM3) +#include "core_cm3.h" +#elif defined (ARM_MATH_CM0) +#include "core_cm0.h" +#define ARM_MATH_CM0_FAMILY +#elif defined (ARM_MATH_CM0PLUS) +#include "core_cm0plus.h" +#define ARM_MATH_CM0_FAMILY +#else +#include "ARMCM4.h" +#warning "Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4....." +#endif + +#undef __CMSIS_GENERIC /* enable NVIC and Systick functions */ +#include "string.h" +#include "math.h" +#ifdef __cplusplus +extern "C" +{ +#endif + + + /** + * @brief Macros required for reciprocal calculation in Normalized LMS + */ + +#define DELTA_Q31 (0x100) +#define DELTA_Q15 0x5 +#define INDEX_MASK 0x0000003F +#ifndef PI +#define PI 3.14159265358979f +#endif + + /** + * @brief Macros required for SINE and COSINE Fast math approximations + */ + +#define TABLE_SIZE 256 +#define TABLE_SPACING_Q31 0x800000 +#define TABLE_SPACING_Q15 0x80 + + /** + * @brief Macros required for SINE and COSINE Controller functions + */ + /* 1.31(q31) Fixed value of 2/360 */ + /* -1 to +1 is divided into 360 values so total spacing is (2/360) */ +#define INPUT_SPACING 0xB60B61 + + /** + * @brief Macro for Unaligned Support + */ +#ifndef UNALIGNED_SUPPORT_DISABLE + #define ALIGN4 +#else + #if defined (__GNUC__) + #define ALIGN4 __attribute__((aligned(4))) + #else + #define ALIGN4 __align(4) + #endif +#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ + + /** + * @brief Error status returned by some functions in the library. + */ + + typedef enum + { + ARM_MATH_SUCCESS = 0, /**< No error */ + ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */ + ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */ + ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */ + ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */ + ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */ + ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */ + } arm_status; + + /** + * @brief 8-bit fractional data type in 1.7 format. + */ + typedef int8_t q7_t; + + /** + * @brief 16-bit fractional data type in 1.15 format. + */ + typedef int16_t q15_t; + + /** + * @brief 32-bit fractional data type in 1.31 format. + */ + typedef int32_t q31_t; + + /** + * @brief 64-bit fractional data type in 1.63 format. + */ + typedef int64_t q63_t; + + /** + * @brief 32-bit floating-point type definition. + */ + typedef float float32_t; + + /** + * @brief 64-bit floating-point type definition. + */ + typedef double float64_t; + + /** + * @brief definition to read/write two 16 bit values. + */ +#if defined __CC_ARM +#define __SIMD32_TYPE int32_t __packed +#define CMSIS_UNUSED __attribute__((unused)) +#elif defined __ICCARM__ +#define CMSIS_UNUSED +#define __SIMD32_TYPE int32_t __packed +#elif defined __GNUC__ +#define __SIMD32_TYPE int32_t +#define CMSIS_UNUSED __attribute__((unused)) +#else +#error Unknown compiler +#endif + +#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr)) +#define __SIMD32_CONST(addr) ((__SIMD32_TYPE *)(addr)) + +#define _SIMD32_OFFSET(addr) (*(__SIMD32_TYPE *) (addr)) + +#define __SIMD64(addr) (*(int64_t **) & (addr)) + +#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0_FAMILY) + /** + * @brief definition to pack two 16 bit values. + */ +#define __PKHBT(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0x0000FFFF) | \ + (((int32_t)(ARG2) << ARG3) & (int32_t)0xFFFF0000) ) +#define __PKHTB(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0xFFFF0000) | \ + (((int32_t)(ARG2) >> ARG3) & (int32_t)0x0000FFFF) ) + +#endif + + + /** + * @brief definition to pack four 8 bit values. + */ +#ifndef ARM_MATH_BIG_ENDIAN + +#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v0) << 0) & (int32_t)0x000000FF) | \ + (((int32_t)(v1) << 8) & (int32_t)0x0000FF00) | \ + (((int32_t)(v2) << 16) & (int32_t)0x00FF0000) | \ + (((int32_t)(v3) << 24) & (int32_t)0xFF000000) ) +#else + +#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v3) << 0) & (int32_t)0x000000FF) | \ + (((int32_t)(v2) << 8) & (int32_t)0x0000FF00) | \ + (((int32_t)(v1) << 16) & (int32_t)0x00FF0000) | \ + (((int32_t)(v0) << 24) & (int32_t)0xFF000000) ) + +#endif + + + /** + * @brief Clips Q63 to Q31 values. + */ + static __INLINE q31_t clip_q63_to_q31( + q63_t x) + { + return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? + ((0x7FFFFFFF ^ ((q31_t) (x >> 63)))) : (q31_t) x; + } + + /** + * @brief Clips Q63 to Q15 values. + */ + static __INLINE q15_t clip_q63_to_q15( + q63_t x) + { + return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? + ((0x7FFF ^ ((q15_t) (x >> 63)))) : (q15_t) (x >> 15); + } + + /** + * @brief Clips Q31 to Q7 values. + */ + static __INLINE q7_t clip_q31_to_q7( + q31_t x) + { + return ((q31_t) (x >> 24) != ((q31_t) x >> 23)) ? + ((0x7F ^ ((q7_t) (x >> 31)))) : (q7_t) x; + } + + /** + * @brief Clips Q31 to Q15 values. + */ + static __INLINE q15_t clip_q31_to_q15( + q31_t x) + { + return ((q31_t) (x >> 16) != ((q31_t) x >> 15)) ? + ((0x7FFF ^ ((q15_t) (x >> 31)))) : (q15_t) x; + } + + /** + * @brief Multiplies 32 X 64 and returns 32 bit result in 2.30 format. + */ + + static __INLINE q63_t mult32x64( + q63_t x, + q31_t y) + { + return ((((q63_t) (x & 0x00000000FFFFFFFF) * y) >> 32) + + (((q63_t) (x >> 32) * y))); + } + + +#if defined (ARM_MATH_CM0_FAMILY) && defined ( __CC_ARM ) +#define __CLZ __clz +#endif + +#if defined (ARM_MATH_CM0_FAMILY) && ((defined (__ICCARM__)) ||(defined (__GNUC__)) || defined (__TASKING__) ) + + static __INLINE uint32_t __CLZ( + q31_t data); + + + static __INLINE uint32_t __CLZ( + q31_t data) + { + uint32_t count = 0; + uint32_t mask = 0x80000000; + + while((data & mask) == 0) + { + count += 1u; + mask = mask >> 1u; + } + + return (count); + + } + +#endif + + /** + * @brief Function to Calculates 1/in (reciprocal) value of Q31 Data type. + */ + + static __INLINE uint32_t arm_recip_q31( + q31_t in, + q31_t * dst, + q31_t * pRecipTable) + { + + uint32_t out, tempVal; + uint32_t index, i; + uint32_t signBits; + + if(in > 0) + { + signBits = __CLZ(in) - 1; + } + else + { + signBits = __CLZ(-in) - 1; + } + + /* Convert input sample to 1.31 format */ + in = in << signBits; + + /* calculation of index for initial approximated Val */ + index = (uint32_t) (in >> 24u); + index = (index & INDEX_MASK); + + /* 1.31 with exp 1 */ + out = pRecipTable[index]; + + /* calculation of reciprocal value */ + /* running approximation for two iterations */ + for (i = 0u; i < 2u; i++) + { + tempVal = (q31_t) (((q63_t) in * out) >> 31u); + tempVal = 0x7FFFFFFF - tempVal; + /* 1.31 with exp 1 */ + //out = (q31_t) (((q63_t) out * tempVal) >> 30u); + out = (q31_t) clip_q63_to_q31(((q63_t) out * tempVal) >> 30u); + } + + /* write output */ + *dst = out; + + /* return num of signbits of out = 1/in value */ + return (signBits + 1u); + + } + + /** + * @brief Function to Calculates 1/in (reciprocal) value of Q15 Data type. + */ + static __INLINE uint32_t arm_recip_q15( + q15_t in, + q15_t * dst, + q15_t * pRecipTable) + { + + uint32_t out = 0, tempVal = 0; + uint32_t index = 0, i = 0; + uint32_t signBits = 0; + + if(in > 0) + { + signBits = __CLZ(in) - 17; + } + else + { + signBits = __CLZ(-in) - 17; + } + + /* Convert input sample to 1.15 format */ + in = in << signBits; + + /* calculation of index for initial approximated Val */ + index = in >> 8; + index = (index & INDEX_MASK); + + /* 1.15 with exp 1 */ + out = pRecipTable[index]; + + /* calculation of reciprocal value */ + /* running approximation for two iterations */ + for (i = 0; i < 2; i++) + { + tempVal = (q15_t) (((q31_t) in * out) >> 15); + tempVal = 0x7FFF - tempVal; + /* 1.15 with exp 1 */ + out = (q15_t) (((q31_t) out * tempVal) >> 14); + } + + /* write output */ + *dst = out; + + /* return num of signbits of out = 1/in value */ + return (signBits + 1); + + } + + + /* + * @brief C custom defined intrinisic function for only M0 processors + */ +#if defined(ARM_MATH_CM0_FAMILY) + + static __INLINE q31_t __SSAT( + q31_t x, + uint32_t y) + { + int32_t posMax, negMin; + uint32_t i; + + posMax = 1; + for (i = 0; i < (y - 1); i++) + { + posMax = posMax * 2; + } + + if(x > 0) + { + posMax = (posMax - 1); + + if(x > posMax) + { + x = posMax; + } + } + else + { + negMin = -posMax; + + if(x < negMin) + { + x = negMin; + } + } + return (x); + + + } + +#endif /* end of ARM_MATH_CM0_FAMILY */ + + + + /* + * @brief C custom defined intrinsic function for M3 and M0 processors + */ +#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0_FAMILY) + + /* + * @brief C custom defined QADD8 for M3 and M0 processors + */ + static __INLINE q31_t __QADD8( + q31_t x, + q31_t y) + { + + q31_t sum; + q7_t r, s, t, u; + + r = (q7_t) x; + s = (q7_t) y; + + r = __SSAT((q31_t) (r + s), 8); + s = __SSAT(((q31_t) (((x << 16) >> 24) + ((y << 16) >> 24))), 8); + t = __SSAT(((q31_t) (((x << 8) >> 24) + ((y << 8) >> 24))), 8); + u = __SSAT(((q31_t) ((x >> 24) + (y >> 24))), 8); + + sum = + (((q31_t) u << 24) & 0xFF000000) | (((q31_t) t << 16) & 0x00FF0000) | + (((q31_t) s << 8) & 0x0000FF00) | (r & 0x000000FF); + + return sum; + + } + + /* + * @brief C custom defined QSUB8 for M3 and M0 processors + */ + static __INLINE q31_t __QSUB8( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s, t, u; + + r = (q7_t) x; + s = (q7_t) y; + + r = __SSAT((r - s), 8); + s = __SSAT(((q31_t) (((x << 16) >> 24) - ((y << 16) >> 24))), 8) << 8; + t = __SSAT(((q31_t) (((x << 8) >> 24) - ((y << 8) >> 24))), 8) << 16; + u = __SSAT(((q31_t) ((x >> 24) - (y >> 24))), 8) << 24; + + sum = + (u & 0xFF000000) | (t & 0x00FF0000) | (s & 0x0000FF00) | (r & + 0x000000FF); + + return sum; + } + + /* + * @brief C custom defined QADD16 for M3 and M0 processors + */ + + /* + * @brief C custom defined QADD16 for M3 and M0 processors + */ + static __INLINE q31_t __QADD16( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = __SSAT(r + s, 16); + s = __SSAT(((q31_t) ((x >> 16) + (y >> 16))), 16) << 16; + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + + } + + /* + * @brief C custom defined SHADD16 for M3 and M0 processors + */ + static __INLINE q31_t __SHADD16( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) + (s >> 1)); + s = ((q31_t) ((x >> 17) + (y >> 17))) << 16; + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + + } + + /* + * @brief C custom defined QSUB16 for M3 and M0 processors + */ + static __INLINE q31_t __QSUB16( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = __SSAT(r - s, 16); + s = __SSAT(((q31_t) ((x >> 16) - (y >> 16))), 16) << 16; + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + } + + /* + * @brief C custom defined SHSUB16 for M3 and M0 processors + */ + static __INLINE q31_t __SHSUB16( + q31_t x, + q31_t y) + { + + q31_t diff; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) - (s >> 1)); + s = (((x >> 17) - (y >> 17)) << 16); + + diff = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return diff; + } + + /* + * @brief C custom defined QASX for M3 and M0 processors + */ + static __INLINE q31_t __QASX( + q31_t x, + q31_t y) + { + + q31_t sum = 0; + + sum = + ((sum + + clip_q31_to_q15((q31_t) ((short) (x >> 16) + (short) y))) << 16) + + clip_q31_to_q15((q31_t) ((short) x - (short) (y >> 16))); + + return sum; + } + + /* + * @brief C custom defined SHASX for M3 and M0 processors + */ + static __INLINE q31_t __SHASX( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) - (y >> 17)); + s = (((x >> 17) + (s >> 1)) << 16); + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + } + + + /* + * @brief C custom defined QSAX for M3 and M0 processors + */ + static __INLINE q31_t __QSAX( + q31_t x, + q31_t y) + { + + q31_t sum = 0; + + sum = + ((sum + + clip_q31_to_q15((q31_t) ((short) (x >> 16) - (short) y))) << 16) + + clip_q31_to_q15((q31_t) ((short) x + (short) (y >> 16))); + + return sum; + } + + /* + * @brief C custom defined SHSAX for M3 and M0 processors + */ + static __INLINE q31_t __SHSAX( + q31_t x, + q31_t y) + { + + q31_t sum; + q31_t r, s; + + r = (short) x; + s = (short) y; + + r = ((r >> 1) + (y >> 17)); + s = (((x >> 17) - (s >> 1)) << 16); + + sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); + + return sum; + } + + /* + * @brief C custom defined SMUSDX for M3 and M0 processors + */ + static __INLINE q31_t __SMUSDX( + q31_t x, + q31_t y) + { + + return ((q31_t) (((short) x * (short) (y >> 16)) - + ((short) (x >> 16) * (short) y))); + } + + /* + * @brief C custom defined SMUADX for M3 and M0 processors + */ + static __INLINE q31_t __SMUADX( + q31_t x, + q31_t y) + { + + return ((q31_t) (((short) x * (short) (y >> 16)) + + ((short) (x >> 16) * (short) y))); + } + + /* + * @brief C custom defined QADD for M3 and M0 processors + */ + static __INLINE q31_t __QADD( + q31_t x, + q31_t y) + { + return clip_q63_to_q31((q63_t) x + y); + } + + /* + * @brief C custom defined QSUB for M3 and M0 processors + */ + static __INLINE q31_t __QSUB( + q31_t x, + q31_t y) + { + return clip_q63_to_q31((q63_t) x - y); + } + + /* + * @brief C custom defined SMLAD for M3 and M0 processors + */ + static __INLINE q31_t __SMLAD( + q31_t x, + q31_t y, + q31_t sum) + { + + return (sum + ((short) (x >> 16) * (short) (y >> 16)) + + ((short) x * (short) y)); + } + + /* + * @brief C custom defined SMLADX for M3 and M0 processors + */ + static __INLINE q31_t __SMLADX( + q31_t x, + q31_t y, + q31_t sum) + { + + return (sum + ((short) (x >> 16) * (short) (y)) + + ((short) x * (short) (y >> 16))); + } + + /* + * @brief C custom defined SMLSDX for M3 and M0 processors + */ + static __INLINE q31_t __SMLSDX( + q31_t x, + q31_t y, + q31_t sum) + { + + return (sum - ((short) (x >> 16) * (short) (y)) + + ((short) x * (short) (y >> 16))); + } + + /* + * @brief C custom defined SMLALD for M3 and M0 processors + */ + static __INLINE q63_t __SMLALD( + q31_t x, + q31_t y, + q63_t sum) + { + + return (sum + ((short) (x >> 16) * (short) (y >> 16)) + + ((short) x * (short) y)); + } + + /* + * @brief C custom defined SMLALDX for M3 and M0 processors + */ + static __INLINE q63_t __SMLALDX( + q31_t x, + q31_t y, + q63_t sum) + { + + return (sum + ((short) (x >> 16) * (short) y)) + + ((short) x * (short) (y >> 16)); + } + + /* + * @brief C custom defined SMUAD for M3 and M0 processors + */ + static __INLINE q31_t __SMUAD( + q31_t x, + q31_t y) + { + + return (((x >> 16) * (y >> 16)) + + (((x << 16) >> 16) * ((y << 16) >> 16))); + } + + /* + * @brief C custom defined SMUSD for M3 and M0 processors + */ + static __INLINE q31_t __SMUSD( + q31_t x, + q31_t y) + { + + return (-((x >> 16) * (y >> 16)) + + (((x << 16) >> 16) * ((y << 16) >> 16))); + } + + + /* + * @brief C custom defined SXTB16 for M3 and M0 processors + */ + static __INLINE q31_t __SXTB16( + q31_t x) + { + + return ((((x << 24) >> 24) & 0x0000FFFF) | + (((x << 8) >> 8) & 0xFFFF0000)); + } + + +#endif /* defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0_FAMILY) */ + + + /** + * @brief Instance structure for the Q7 FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + } arm_fir_instance_q7; + + /** + * @brief Instance structure for the Q15 FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + } arm_fir_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + } arm_fir_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of filter coefficients in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + } arm_fir_instance_f32; + + + /** + * @brief Processing function for the Q7 FIR filter. + * @param[in] *S points to an instance of the Q7 FIR filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_q7( + const arm_fir_instance_q7 * S, + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q7 FIR filter. + * @param[in,out] *S points to an instance of the Q7 FIR structure. + * @param[in] numTaps Number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed. + * @return none + */ + void arm_fir_init_q7( + arm_fir_instance_q7 * S, + uint16_t numTaps, + q7_t * pCoeffs, + q7_t * pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q15 FIR filter. + * @param[in] *S points to an instance of the Q15 FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_q15( + const arm_fir_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the fast Q15 FIR filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q15 FIR filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_fast_q15( + const arm_fir_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q15 FIR filter. + * @param[in,out] *S points to an instance of the Q15 FIR filter structure. + * @param[in] numTaps Number of filter coefficients in the filter. Must be even and greater than or equal to 4. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed at a time. + * @return The function returns ARM_MATH_SUCCESS if initialization was successful or ARM_MATH_ARGUMENT_ERROR if + * numTaps is not a supported value. + */ + + arm_status arm_fir_init_q15( + arm_fir_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR filter. + * @param[in] *S points to an instance of the Q31 FIR filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_q31( + const arm_fir_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the fast Q31 FIR filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q31 FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_fast_q31( + const arm_fir_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 FIR filter. + * @param[in,out] *S points to an instance of the Q31 FIR structure. + * @param[in] numTaps Number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed at a time. + * @return none. + */ + void arm_fir_init_q31( + arm_fir_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the floating-point FIR filter. + * @param[in] *S points to an instance of the floating-point FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_f32( + const arm_fir_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point FIR filter. + * @param[in,out] *S points to an instance of the floating-point FIR filter structure. + * @param[in] numTaps Number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of samples that are processed at a time. + * @return none. + */ + void arm_fir_init_f32( + arm_fir_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q15 Biquad cascade filter. + */ + typedef struct + { + int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ + q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ + int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ + + } arm_biquad_casd_df1_inst_q15; + + + /** + * @brief Instance structure for the Q31 Biquad cascade filter. + */ + typedef struct + { + uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ + q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ + uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ + + } arm_biquad_casd_df1_inst_q31; + + /** + * @brief Instance structure for the floating-point Biquad cascade filter. + */ + typedef struct + { + uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ + float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ + + + } arm_biquad_casd_df1_inst_f32; + + + + /** + * @brief Processing function for the Q15 Biquad cascade filter. + * @param[in] *S points to an instance of the Q15 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_q15( + const arm_biquad_casd_df1_inst_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q15 Biquad cascade filter. + * @param[in,out] *S points to an instance of the Q15 Biquad cascade structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format + * @return none + */ + + void arm_biquad_cascade_df1_init_q15( + arm_biquad_casd_df1_inst_q15 * S, + uint8_t numStages, + q15_t * pCoeffs, + q15_t * pState, + int8_t postShift); + + + /** + * @brief Fast but less precise processing function for the Q15 Biquad cascade filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q15 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_fast_q15( + const arm_biquad_casd_df1_inst_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q31 Biquad cascade filter + * @param[in] *S points to an instance of the Q31 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_q31( + const arm_biquad_casd_df1_inst_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Fast but less precise processing function for the Q31 Biquad cascade filter for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q31 Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_fast_q31( + const arm_biquad_casd_df1_inst_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 Biquad cascade filter. + * @param[in,out] *S points to an instance of the Q31 Biquad cascade structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format + * @return none + */ + + void arm_biquad_cascade_df1_init_q31( + arm_biquad_casd_df1_inst_q31 * S, + uint8_t numStages, + q31_t * pCoeffs, + q31_t * pState, + int8_t postShift); + + /** + * @brief Processing function for the floating-point Biquad cascade filter. + * @param[in] *S points to an instance of the floating-point Biquad cascade structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df1_f32( + const arm_biquad_casd_df1_inst_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point Biquad cascade filter. + * @param[in,out] *S points to an instance of the floating-point Biquad cascade structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @return none + */ + + void arm_biquad_cascade_df1_init_f32( + arm_biquad_casd_df1_inst_f32 * S, + uint8_t numStages, + float32_t * pCoeffs, + float32_t * pState); + + + /** + * @brief Instance structure for the floating-point matrix structure. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows of the matrix. */ + uint16_t numCols; /**< number of columns of the matrix. */ + float32_t *pData; /**< points to the data of the matrix. */ + } arm_matrix_instance_f32; + + /** + * @brief Instance structure for the Q15 matrix structure. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows of the matrix. */ + uint16_t numCols; /**< number of columns of the matrix. */ + q15_t *pData; /**< points to the data of the matrix. */ + + } arm_matrix_instance_q15; + + /** + * @brief Instance structure for the Q31 matrix structure. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows of the matrix. */ + uint16_t numCols; /**< number of columns of the matrix. */ + q31_t *pData; /**< points to the data of the matrix. */ + + } arm_matrix_instance_q31; + + + + /** + * @brief Floating-point matrix addition. + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_add_f32( + const arm_matrix_instance_f32 * pSrcA, + const arm_matrix_instance_f32 * pSrcB, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix addition. + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_add_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix addition. + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_add_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Floating-point matrix transpose. + * @param[in] *pSrc points to the input matrix + * @param[out] *pDst points to the output matrix + * @return The function returns either ARM_MATH_SIZE_MISMATCH + * or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_trans_f32( + const arm_matrix_instance_f32 * pSrc, + arm_matrix_instance_f32 * pDst); + + + /** + * @brief Q15 matrix transpose. + * @param[in] *pSrc points to the input matrix + * @param[out] *pDst points to the output matrix + * @return The function returns either ARM_MATH_SIZE_MISMATCH + * or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_trans_q15( + const arm_matrix_instance_q15 * pSrc, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix transpose. + * @param[in] *pSrc points to the input matrix + * @param[out] *pDst points to the output matrix + * @return The function returns either ARM_MATH_SIZE_MISMATCH + * or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_trans_q31( + const arm_matrix_instance_q31 * pSrc, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Floating-point matrix multiplication + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_f32( + const arm_matrix_instance_f32 * pSrcA, + const arm_matrix_instance_f32 * pSrcB, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix multiplication + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @param[in] *pState points to the array for storing intermediate results + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst, + q15_t * pState); + + /** + * @brief Q15 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @param[in] *pState points to the array for storing intermediate results + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_fast_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst, + q15_t * pState); + + /** + * @brief Q31 matrix multiplication + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + /** + * @brief Q31 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_mult_fast_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Floating-point matrix subtraction + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_sub_f32( + const arm_matrix_instance_f32 * pSrcA, + const arm_matrix_instance_f32 * pSrcB, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix subtraction + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_sub_q15( + const arm_matrix_instance_q15 * pSrcA, + const arm_matrix_instance_q15 * pSrcB, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix subtraction + * @param[in] *pSrcA points to the first input matrix structure + * @param[in] *pSrcB points to the second input matrix structure + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_sub_q31( + const arm_matrix_instance_q31 * pSrcA, + const arm_matrix_instance_q31 * pSrcB, + arm_matrix_instance_q31 * pDst); + + /** + * @brief Floating-point matrix scaling. + * @param[in] *pSrc points to the input matrix + * @param[in] scale scale factor + * @param[out] *pDst points to the output matrix + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_scale_f32( + const arm_matrix_instance_f32 * pSrc, + float32_t scale, + arm_matrix_instance_f32 * pDst); + + /** + * @brief Q15 matrix scaling. + * @param[in] *pSrc points to input matrix + * @param[in] scaleFract fractional portion of the scale factor + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to output matrix + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_scale_q15( + const arm_matrix_instance_q15 * pSrc, + q15_t scaleFract, + int32_t shift, + arm_matrix_instance_q15 * pDst); + + /** + * @brief Q31 matrix scaling. + * @param[in] *pSrc points to input matrix + * @param[in] scaleFract fractional portion of the scale factor + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to output matrix structure + * @return The function returns either + * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. + */ + + arm_status arm_mat_scale_q31( + const arm_matrix_instance_q31 * pSrc, + q31_t scaleFract, + int32_t shift, + arm_matrix_instance_q31 * pDst); + + + /** + * @brief Q31 matrix initialization. + * @param[in,out] *S points to an instance of the floating-point matrix structure. + * @param[in] nRows number of rows in the matrix. + * @param[in] nColumns number of columns in the matrix. + * @param[in] *pData points to the matrix data array. + * @return none + */ + + void arm_mat_init_q31( + arm_matrix_instance_q31 * S, + uint16_t nRows, + uint16_t nColumns, + q31_t * pData); + + /** + * @brief Q15 matrix initialization. + * @param[in,out] *S points to an instance of the floating-point matrix structure. + * @param[in] nRows number of rows in the matrix. + * @param[in] nColumns number of columns in the matrix. + * @param[in] *pData points to the matrix data array. + * @return none + */ + + void arm_mat_init_q15( + arm_matrix_instance_q15 * S, + uint16_t nRows, + uint16_t nColumns, + q15_t * pData); + + /** + * @brief Floating-point matrix initialization. + * @param[in,out] *S points to an instance of the floating-point matrix structure. + * @param[in] nRows number of rows in the matrix. + * @param[in] nColumns number of columns in the matrix. + * @param[in] *pData points to the matrix data array. + * @return none + */ + + void arm_mat_init_f32( + arm_matrix_instance_f32 * S, + uint16_t nRows, + uint16_t nColumns, + float32_t * pData); + + + + /** + * @brief Instance structure for the Q15 PID Control. + */ + typedef struct + { + q15_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ +#ifdef ARM_MATH_CM0_FAMILY + q15_t A1; + q15_t A2; +#else + q31_t A1; /**< The derived gain A1 = -Kp - 2Kd | Kd.*/ +#endif + q15_t state[3]; /**< The state array of length 3. */ + q15_t Kp; /**< The proportional gain. */ + q15_t Ki; /**< The integral gain. */ + q15_t Kd; /**< The derivative gain. */ + } arm_pid_instance_q15; + + /** + * @brief Instance structure for the Q31 PID Control. + */ + typedef struct + { + q31_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ + q31_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ + q31_t A2; /**< The derived gain, A2 = Kd . */ + q31_t state[3]; /**< The state array of length 3. */ + q31_t Kp; /**< The proportional gain. */ + q31_t Ki; /**< The integral gain. */ + q31_t Kd; /**< The derivative gain. */ + + } arm_pid_instance_q31; + + /** + * @brief Instance structure for the floating-point PID Control. + */ + typedef struct + { + float32_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ + float32_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ + float32_t A2; /**< The derived gain, A2 = Kd . */ + float32_t state[3]; /**< The state array of length 3. */ + float32_t Kp; /**< The proportional gain. */ + float32_t Ki; /**< The integral gain. */ + float32_t Kd; /**< The derivative gain. */ + } arm_pid_instance_f32; + + + + /** + * @brief Initialization function for the floating-point PID Control. + * @param[in,out] *S points to an instance of the PID structure. + * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. + * @return none. + */ + void arm_pid_init_f32( + arm_pid_instance_f32 * S, + int32_t resetStateFlag); + + /** + * @brief Reset function for the floating-point PID Control. + * @param[in,out] *S is an instance of the floating-point PID Control structure + * @return none + */ + void arm_pid_reset_f32( + arm_pid_instance_f32 * S); + + + /** + * @brief Initialization function for the Q31 PID Control. + * @param[in,out] *S points to an instance of the Q15 PID structure. + * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. + * @return none. + */ + void arm_pid_init_q31( + arm_pid_instance_q31 * S, + int32_t resetStateFlag); + + + /** + * @brief Reset function for the Q31 PID Control. + * @param[in,out] *S points to an instance of the Q31 PID Control structure + * @return none + */ + + void arm_pid_reset_q31( + arm_pid_instance_q31 * S); + + /** + * @brief Initialization function for the Q15 PID Control. + * @param[in,out] *S points to an instance of the Q15 PID structure. + * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. + * @return none. + */ + void arm_pid_init_q15( + arm_pid_instance_q15 * S, + int32_t resetStateFlag); + + /** + * @brief Reset function for the Q15 PID Control. + * @param[in,out] *S points to an instance of the q15 PID Control structure + * @return none + */ + void arm_pid_reset_q15( + arm_pid_instance_q15 * S); + + + /** + * @brief Instance structure for the floating-point Linear Interpolate function. + */ + typedef struct + { + uint32_t nValues; /**< nValues */ + float32_t x1; /**< x1 */ + float32_t xSpacing; /**< xSpacing */ + float32_t *pYData; /**< pointer to the table of Y values */ + } arm_linear_interp_instance_f32; + + /** + * @brief Instance structure for the floating-point bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + float32_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_f32; + + /** + * @brief Instance structure for the Q31 bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + q31_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_q31; + + /** + * @brief Instance structure for the Q15 bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + q15_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_q15; + + /** + * @brief Instance structure for the Q15 bilinear interpolation function. + */ + + typedef struct + { + uint16_t numRows; /**< number of rows in the data table. */ + uint16_t numCols; /**< number of columns in the data table. */ + q7_t *pData; /**< points to the data table. */ + } arm_bilinear_interp_instance_q7; + + + /** + * @brief Q7 vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_q7( + q7_t * pSrcA, + q7_t * pSrcB, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Floating-point vector multiplication. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_mult_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t blockSize); + + + + + + + /** + * @brief Instance structure for the Q15 CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + q15_t *pTwiddle; /**< points to the Sin twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + } arm_cfft_radix2_instance_q15; + + arm_status arm_cfft_radix2_init_q15( + arm_cfft_radix2_instance_q15 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + void arm_cfft_radix2_q15( + const arm_cfft_radix2_instance_q15 * S, + q15_t * pSrc); + + + + /** + * @brief Instance structure for the Q15 CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + q15_t *pTwiddle; /**< points to the twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + } arm_cfft_radix4_instance_q15; + + arm_status arm_cfft_radix4_init_q15( + arm_cfft_radix4_instance_q15 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + void arm_cfft_radix4_q15( + const arm_cfft_radix4_instance_q15 * S, + q15_t * pSrc); + + /** + * @brief Instance structure for the Radix-2 Q31 CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + q31_t *pTwiddle; /**< points to the Twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + } arm_cfft_radix2_instance_q31; + + arm_status arm_cfft_radix2_init_q31( + arm_cfft_radix2_instance_q31 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + void arm_cfft_radix2_q31( + const arm_cfft_radix2_instance_q31 * S, + q31_t * pSrc); + + /** + * @brief Instance structure for the Q31 CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + q31_t *pTwiddle; /**< points to the twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + } arm_cfft_radix4_instance_q31; + + + void arm_cfft_radix4_q31( + const arm_cfft_radix4_instance_q31 * S, + q31_t * pSrc); + + arm_status arm_cfft_radix4_init_q31( + arm_cfft_radix4_instance_q31 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + /** + * @brief Instance structure for the floating-point CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + float32_t *pTwiddle; /**< points to the Twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + float32_t onebyfftLen; /**< value of 1/fftLen. */ + } arm_cfft_radix2_instance_f32; + +/* Deprecated */ + arm_status arm_cfft_radix2_init_f32( + arm_cfft_radix2_instance_f32 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + +/* Deprecated */ + void arm_cfft_radix2_f32( + const arm_cfft_radix2_instance_f32 * S, + float32_t * pSrc); + + /** + * @brief Instance structure for the floating-point CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ + uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ + float32_t *pTwiddle; /**< points to the Twiddle factor table. */ + uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ + float32_t onebyfftLen; /**< value of 1/fftLen. */ + } arm_cfft_radix4_instance_f32; + +/* Deprecated */ + arm_status arm_cfft_radix4_init_f32( + arm_cfft_radix4_instance_f32 * S, + uint16_t fftLen, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + +/* Deprecated */ + void arm_cfft_radix4_f32( + const arm_cfft_radix4_instance_f32 * S, + float32_t * pSrc); + + /** + * @brief Instance structure for the floating-point CFFT/CIFFT function. + */ + + typedef struct + { + uint16_t fftLen; /**< length of the FFT. */ + const float32_t *pTwiddle; /**< points to the Twiddle factor table. */ + const uint16_t *pBitRevTable; /**< points to the bit reversal table. */ + uint16_t bitRevLength; /**< bit reversal table length. */ + } arm_cfft_instance_f32; + + void arm_cfft_f32( + const arm_cfft_instance_f32 * S, + float32_t * p1, + uint8_t ifftFlag, + uint8_t bitReverseFlag); + + /** + * @brief Instance structure for the Q15 RFFT/RIFFT function. + */ + + typedef struct + { + uint32_t fftLenReal; /**< length of the real FFT. */ + uint32_t fftLenBy2; /**< length of the complex FFT. */ + uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ + uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ + uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + q15_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ + q15_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ + arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ + } arm_rfft_instance_q15; + + arm_status arm_rfft_init_q15( + arm_rfft_instance_q15 * S, + arm_cfft_radix4_instance_q15 * S_CFFT, + uint32_t fftLenReal, + uint32_t ifftFlagR, + uint32_t bitReverseFlag); + + void arm_rfft_q15( + const arm_rfft_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst); + + /** + * @brief Instance structure for the Q31 RFFT/RIFFT function. + */ + + typedef struct + { + uint32_t fftLenReal; /**< length of the real FFT. */ + uint32_t fftLenBy2; /**< length of the complex FFT. */ + uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ + uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ + uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + q31_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ + q31_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ + arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ + } arm_rfft_instance_q31; + + arm_status arm_rfft_init_q31( + arm_rfft_instance_q31 * S, + arm_cfft_radix4_instance_q31 * S_CFFT, + uint32_t fftLenReal, + uint32_t ifftFlagR, + uint32_t bitReverseFlag); + + void arm_rfft_q31( + const arm_rfft_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst); + + /** + * @brief Instance structure for the floating-point RFFT/RIFFT function. + */ + + typedef struct + { + uint32_t fftLenReal; /**< length of the real FFT. */ + uint16_t fftLenBy2; /**< length of the complex FFT. */ + uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ + uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ + uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ + float32_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ + float32_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ + arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ + } arm_rfft_instance_f32; + + arm_status arm_rfft_init_f32( + arm_rfft_instance_f32 * S, + arm_cfft_radix4_instance_f32 * S_CFFT, + uint32_t fftLenReal, + uint32_t ifftFlagR, + uint32_t bitReverseFlag); + + void arm_rfft_f32( + const arm_rfft_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst); + + /** + * @brief Instance structure for the floating-point RFFT/RIFFT function. + */ + +typedef struct + { + arm_cfft_instance_f32 Sint; /**< Internal CFFT structure. */ + uint16_t fftLenRFFT; /**< length of the real sequence */ + float32_t * pTwiddleRFFT; /**< Twiddle factors real stage */ + } arm_rfft_fast_instance_f32 ; + +arm_status arm_rfft_fast_init_f32 ( + arm_rfft_fast_instance_f32 * S, + uint16_t fftLen); + +void arm_rfft_fast_f32( + arm_rfft_fast_instance_f32 * S, + float32_t * p, float32_t * pOut, + uint8_t ifftFlag); + + /** + * @brief Instance structure for the floating-point DCT4/IDCT4 function. + */ + + typedef struct + { + uint16_t N; /**< length of the DCT4. */ + uint16_t Nby2; /**< half of the length of the DCT4. */ + float32_t normalize; /**< normalizing factor. */ + float32_t *pTwiddle; /**< points to the twiddle factor table. */ + float32_t *pCosFactor; /**< points to the cosFactor table. */ + arm_rfft_instance_f32 *pRfft; /**< points to the real FFT instance. */ + arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ + } arm_dct4_instance_f32; + + /** + * @brief Initialization function for the floating-point DCT4/IDCT4. + * @param[in,out] *S points to an instance of floating-point DCT4/IDCT4 structure. + * @param[in] *S_RFFT points to an instance of floating-point RFFT/RIFFT structure. + * @param[in] *S_CFFT points to an instance of floating-point CFFT/CIFFT structure. + * @param[in] N length of the DCT4. + * @param[in] Nby2 half of the length of the DCT4. + * @param[in] normalize normalizing factor. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported transform length. + */ + + arm_status arm_dct4_init_f32( + arm_dct4_instance_f32 * S, + arm_rfft_instance_f32 * S_RFFT, + arm_cfft_radix4_instance_f32 * S_CFFT, + uint16_t N, + uint16_t Nby2, + float32_t normalize); + + /** + * @brief Processing function for the floating-point DCT4/IDCT4. + * @param[in] *S points to an instance of the floating-point DCT4/IDCT4 structure. + * @param[in] *pState points to state buffer. + * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. + * @return none. + */ + + void arm_dct4_f32( + const arm_dct4_instance_f32 * S, + float32_t * pState, + float32_t * pInlineBuffer); + + /** + * @brief Instance structure for the Q31 DCT4/IDCT4 function. + */ + + typedef struct + { + uint16_t N; /**< length of the DCT4. */ + uint16_t Nby2; /**< half of the length of the DCT4. */ + q31_t normalize; /**< normalizing factor. */ + q31_t *pTwiddle; /**< points to the twiddle factor table. */ + q31_t *pCosFactor; /**< points to the cosFactor table. */ + arm_rfft_instance_q31 *pRfft; /**< points to the real FFT instance. */ + arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ + } arm_dct4_instance_q31; + + /** + * @brief Initialization function for the Q31 DCT4/IDCT4. + * @param[in,out] *S points to an instance of Q31 DCT4/IDCT4 structure. + * @param[in] *S_RFFT points to an instance of Q31 RFFT/RIFFT structure + * @param[in] *S_CFFT points to an instance of Q31 CFFT/CIFFT structure + * @param[in] N length of the DCT4. + * @param[in] Nby2 half of the length of the DCT4. + * @param[in] normalize normalizing factor. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. + */ + + arm_status arm_dct4_init_q31( + arm_dct4_instance_q31 * S, + arm_rfft_instance_q31 * S_RFFT, + arm_cfft_radix4_instance_q31 * S_CFFT, + uint16_t N, + uint16_t Nby2, + q31_t normalize); + + /** + * @brief Processing function for the Q31 DCT4/IDCT4. + * @param[in] *S points to an instance of the Q31 DCT4 structure. + * @param[in] *pState points to state buffer. + * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. + * @return none. + */ + + void arm_dct4_q31( + const arm_dct4_instance_q31 * S, + q31_t * pState, + q31_t * pInlineBuffer); + + /** + * @brief Instance structure for the Q15 DCT4/IDCT4 function. + */ + + typedef struct + { + uint16_t N; /**< length of the DCT4. */ + uint16_t Nby2; /**< half of the length of the DCT4. */ + q15_t normalize; /**< normalizing factor. */ + q15_t *pTwiddle; /**< points to the twiddle factor table. */ + q15_t *pCosFactor; /**< points to the cosFactor table. */ + arm_rfft_instance_q15 *pRfft; /**< points to the real FFT instance. */ + arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ + } arm_dct4_instance_q15; + + /** + * @brief Initialization function for the Q15 DCT4/IDCT4. + * @param[in,out] *S points to an instance of Q15 DCT4/IDCT4 structure. + * @param[in] *S_RFFT points to an instance of Q15 RFFT/RIFFT structure. + * @param[in] *S_CFFT points to an instance of Q15 CFFT/CIFFT structure. + * @param[in] N length of the DCT4. + * @param[in] Nby2 half of the length of the DCT4. + * @param[in] normalize normalizing factor. + * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. + */ + + arm_status arm_dct4_init_q15( + arm_dct4_instance_q15 * S, + arm_rfft_instance_q15 * S_RFFT, + arm_cfft_radix4_instance_q15 * S_CFFT, + uint16_t N, + uint16_t Nby2, + q15_t normalize); + + /** + * @brief Processing function for the Q15 DCT4/IDCT4. + * @param[in] *S points to an instance of the Q15 DCT4 structure. + * @param[in] *pState points to state buffer. + * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. + * @return none. + */ + + void arm_dct4_q15( + const arm_dct4_instance_q15 * S, + q15_t * pState, + q15_t * pInlineBuffer); + + /** + * @brief Floating-point vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Q7 vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_q7( + q7_t * pSrcA, + q7_t * pSrcB, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector addition. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_add_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Floating-point vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Q7 vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_q7( + q7_t * pSrcA, + q7_t * pSrcB, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector subtraction. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_sub_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a floating-point vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scale scale factor to be applied + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_f32( + float32_t * pSrc, + float32_t scale, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a Q7 vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scaleFract fractional portion of the scale value + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_q7( + q7_t * pSrc, + q7_t scaleFract, + int8_t shift, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a Q15 vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scaleFract fractional portion of the scale value + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_q15( + q15_t * pSrc, + q15_t scaleFract, + int8_t shift, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Multiplies a Q31 vector by a scalar. + * @param[in] *pSrc points to the input vector + * @param[in] scaleFract fractional portion of the scale value + * @param[in] shift number of bits to shift the result by + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_scale_q31( + q31_t * pSrc, + q31_t scaleFract, + int8_t shift, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Q7 vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_q7( + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Floating-point vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Q15 vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Q31 vector absolute value. + * @param[in] *pSrc points to the input buffer + * @param[out] *pDst points to the output buffer + * @param[in] blockSize number of samples in each vector + * @return none. + */ + + void arm_abs_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Dot product of floating-point vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_f32( + float32_t * pSrcA, + float32_t * pSrcB, + uint32_t blockSize, + float32_t * result); + + /** + * @brief Dot product of Q7 vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_q7( + q7_t * pSrcA, + q7_t * pSrcB, + uint32_t blockSize, + q31_t * result); + + /** + * @brief Dot product of Q15 vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_q15( + q15_t * pSrcA, + q15_t * pSrcB, + uint32_t blockSize, + q63_t * result); + + /** + * @brief Dot product of Q31 vectors. + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] blockSize number of samples in each vector + * @param[out] *result output result returned here + * @return none. + */ + + void arm_dot_prod_q31( + q31_t * pSrcA, + q31_t * pSrcB, + uint32_t blockSize, + q63_t * result); + + /** + * @brief Shifts the elements of a Q7 vector a specified number of bits. + * @param[in] *pSrc points to the input vector + * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_shift_q7( + q7_t * pSrc, + int8_t shiftBits, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Shifts the elements of a Q15 vector a specified number of bits. + * @param[in] *pSrc points to the input vector + * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_shift_q15( + q15_t * pSrc, + int8_t shiftBits, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Shifts the elements of a Q31 vector a specified number of bits. + * @param[in] *pSrc points to the input vector + * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_shift_q31( + q31_t * pSrc, + int8_t shiftBits, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a floating-point vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_f32( + float32_t * pSrc, + float32_t offset, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a Q7 vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_q7( + q7_t * pSrc, + q7_t offset, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a Q15 vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_q15( + q15_t * pSrc, + q15_t offset, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Adds a constant offset to a Q31 vector. + * @param[in] *pSrc points to the input vector + * @param[in] offset is the offset to be added + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_offset_q31( + q31_t * pSrc, + q31_t offset, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a floating-point vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a Q7 vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_q7( + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a Q15 vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Negates the elements of a Q31 vector. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] blockSize number of samples in the vector + * @return none. + */ + + void arm_negate_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + /** + * @brief Copies the elements of a floating-point vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Copies the elements of a Q7 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_q7( + q7_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Copies the elements of a Q15 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Copies the elements of a Q31 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_copy_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + /** + * @brief Fills a constant value into a floating-point vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_f32( + float32_t value, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Fills a constant value into a Q7 vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_q7( + q7_t value, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Fills a constant value into a Q15 vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_q15( + q15_t value, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Fills a constant value into a Q31 vector. + * @param[in] value input value to be filled + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_fill_q31( + q31_t value, + q31_t * pDst, + uint32_t blockSize); + +/** + * @brief Convolution of floating-point sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_f32( + float32_t * pSrcA, + uint32_t srcALen, + float32_t * pSrcB, + uint32_t srcBLen, + float32_t * pDst); + + + /** + * @brief Convolution of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @param[in] *pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] *pScratch2 points to scratch buffer of size min(srcALen, srcBLen). + * @return none. + */ + + + void arm_conv_opt_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + q15_t * pScratch1, + q15_t * pScratch2); + + +/** + * @brief Convolution of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_fast_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @param[in] *pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] *pScratch2 points to scratch buffer of size min(srcALen, srcBLen). + * @return none. + */ + + void arm_conv_fast_opt_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + q15_t * pScratch1, + q15_t * pScratch2); + + + + /** + * @brief Convolution of Q31 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + /** + * @brief Convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_fast_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + + /** + * @brief Convolution of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @param[in] *pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] *pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). + * @return none. + */ + + void arm_conv_opt_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst, + q15_t * pScratch1, + q15_t * pScratch2); + + + + /** + * @brief Convolution of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. + * @return none. + */ + + void arm_conv_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst); + + + /** + * @brief Partial convolution of floating-point sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_f32( + float32_t * pSrcA, + uint32_t srcALen, + float32_t * pSrcB, + uint32_t srcBLen, + float32_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + /** + * @brief Partial convolution of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @param[in] * pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] * pScratch2 points to scratch buffer of size min(srcALen, srcBLen). + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_opt_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + uint32_t firstIndex, + uint32_t numPoints, + q15_t * pScratch1, + q15_t * pScratch2); + + +/** + * @brief Partial convolution of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + /** + * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_fast_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + + /** + * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @param[in] * pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] * pScratch2 points to scratch buffer of size min(srcALen, srcBLen). + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_fast_opt_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + uint32_t firstIndex, + uint32_t numPoints, + q15_t * pScratch1, + q15_t * pScratch2); + + + /** + * @brief Partial convolution of Q31 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + + /** + * @brief Partial convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_fast_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + + /** + * @brief Partial convolution of Q7 sequences + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @param[in] *pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] *pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_opt_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst, + uint32_t firstIndex, + uint32_t numPoints, + q15_t * pScratch1, + q15_t * pScratch2); + + +/** + * @brief Partial convolution of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data + * @param[in] firstIndex is the first output sample to start with. + * @param[in] numPoints is the number of output points to be computed. + * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. + */ + + arm_status arm_conv_partial_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst, + uint32_t firstIndex, + uint32_t numPoints); + + + + /** + * @brief Instance structure for the Q15 FIR decimator. + */ + + typedef struct + { + uint8_t M; /**< decimation factor. */ + uint16_t numTaps; /**< number of coefficients in the filter. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + } arm_fir_decimate_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR decimator. + */ + + typedef struct + { + uint8_t M; /**< decimation factor. */ + uint16_t numTaps; /**< number of coefficients in the filter. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + + } arm_fir_decimate_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR decimator. + */ + + typedef struct + { + uint8_t M; /**< decimation factor. */ + uint16_t numTaps; /**< number of coefficients in the filter. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + + } arm_fir_decimate_instance_f32; + + + + /** + * @brief Processing function for the floating-point FIR decimator. + * @param[in] *S points to an instance of the floating-point FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_f32( + const arm_fir_decimate_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the floating-point FIR decimator. + * @param[in,out] *S points to an instance of the floating-point FIR decimator structure. + * @param[in] numTaps number of coefficients in the filter. + * @param[in] M decimation factor. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * blockSize is not a multiple of M. + */ + + arm_status arm_fir_decimate_init_f32( + arm_fir_decimate_instance_f32 * S, + uint16_t numTaps, + uint8_t M, + float32_t * pCoeffs, + float32_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q15 FIR decimator. + * @param[in] *S points to an instance of the Q15 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_q15( + const arm_fir_decimate_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the Q15 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q15 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_fast_q15( + const arm_fir_decimate_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + + /** + * @brief Initialization function for the Q15 FIR decimator. + * @param[in,out] *S points to an instance of the Q15 FIR decimator structure. + * @param[in] numTaps number of coefficients in the filter. + * @param[in] M decimation factor. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * blockSize is not a multiple of M. + */ + + arm_status arm_fir_decimate_init_q15( + arm_fir_decimate_instance_q15 * S, + uint16_t numTaps, + uint8_t M, + q15_t * pCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR decimator. + * @param[in] *S points to an instance of the Q31 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_q31( + const arm_fir_decimate_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. + * @param[in] *S points to an instance of the Q31 FIR decimator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of input samples to process per call. + * @return none + */ + + void arm_fir_decimate_fast_q31( + arm_fir_decimate_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q31 FIR decimator. + * @param[in,out] *S points to an instance of the Q31 FIR decimator structure. + * @param[in] numTaps number of coefficients in the filter. + * @param[in] M decimation factor. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * blockSize is not a multiple of M. + */ + + arm_status arm_fir_decimate_init_q31( + arm_fir_decimate_instance_q31 * S, + uint16_t numTaps, + uint8_t M, + q31_t * pCoeffs, + q31_t * pState, + uint32_t blockSize); + + + + /** + * @brief Instance structure for the Q15 FIR interpolator. + */ + + typedef struct + { + uint8_t L; /**< upsample factor. */ + uint16_t phaseLength; /**< length of each polyphase filter component. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ + q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ + } arm_fir_interpolate_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR interpolator. + */ + + typedef struct + { + uint8_t L; /**< upsample factor. */ + uint16_t phaseLength; /**< length of each polyphase filter component. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ + q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ + } arm_fir_interpolate_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR interpolator. + */ + + typedef struct + { + uint8_t L; /**< upsample factor. */ + uint16_t phaseLength; /**< length of each polyphase filter component. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ + float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */ + } arm_fir_interpolate_instance_f32; + + + /** + * @brief Processing function for the Q15 FIR interpolator. + * @param[in] *S points to an instance of the Q15 FIR interpolator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_interpolate_q15( + const arm_fir_interpolate_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q15 FIR interpolator. + * @param[in,out] *S points to an instance of the Q15 FIR interpolator structure. + * @param[in] L upsample factor. + * @param[in] numTaps number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * the filter length numTaps is not a multiple of the interpolation factor L. + */ + + arm_status arm_fir_interpolate_init_q15( + arm_fir_interpolate_instance_q15 * S, + uint8_t L, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 FIR interpolator. + * @param[in] *S points to an instance of the Q15 FIR interpolator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_interpolate_q31( + const arm_fir_interpolate_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 FIR interpolator. + * @param[in,out] *S points to an instance of the Q31 FIR interpolator structure. + * @param[in] L upsample factor. + * @param[in] numTaps number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * the filter length numTaps is not a multiple of the interpolation factor L. + */ + + arm_status arm_fir_interpolate_init_q31( + arm_fir_interpolate_instance_q31 * S, + uint8_t L, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the floating-point FIR interpolator. + * @param[in] *S points to an instance of the floating-point FIR interpolator structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_interpolate_f32( + const arm_fir_interpolate_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point FIR interpolator. + * @param[in,out] *S points to an instance of the floating-point FIR interpolator structure. + * @param[in] L upsample factor. + * @param[in] numTaps number of filter coefficients in the filter. + * @param[in] *pCoeffs points to the filter coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] blockSize number of input samples to process per call. + * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if + * the filter length numTaps is not a multiple of the interpolation factor L. + */ + + arm_status arm_fir_interpolate_init_f32( + arm_fir_interpolate_instance_f32 * S, + uint8_t L, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + uint32_t blockSize); + + /** + * @brief Instance structure for the high precision Q31 Biquad cascade filter. + */ + + typedef struct + { + uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ + q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ + uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */ + + } arm_biquad_cas_df1_32x64_ins_q31; + + + /** + * @param[in] *S points to an instance of the high precision Q31 Biquad cascade filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cas_df1_32x64_q31( + const arm_biquad_cas_df1_32x64_ins_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @param[in,out] *S points to an instance of the high precision Q31 Biquad cascade filter structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] postShift shift to be applied to the output. Varies according to the coefficients format + * @return none + */ + + void arm_biquad_cas_df1_32x64_init_q31( + arm_biquad_cas_df1_32x64_ins_q31 * S, + uint8_t numStages, + q31_t * pCoeffs, + q63_t * pState, + uint8_t postShift); + + + + /** + * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. + */ + + typedef struct + { + uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ + float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ + float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ + } arm_biquad_cascade_df2T_instance_f32; + + + /** + * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. + * @param[in] *S points to an instance of the filter data structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_biquad_cascade_df2T_f32( + const arm_biquad_cascade_df2T_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. + * @param[in,out] *S points to an instance of the filter data structure. + * @param[in] numStages number of 2nd order stages in the filter. + * @param[in] *pCoeffs points to the filter coefficients. + * @param[in] *pState points to the state buffer. + * @return none + */ + + void arm_biquad_cascade_df2T_init_f32( + arm_biquad_cascade_df2T_instance_f32 * S, + uint8_t numStages, + float32_t * pCoeffs, + float32_t * pState); + + + + /** + * @brief Instance structure for the Q15 FIR lattice filter. + */ + + typedef struct + { + uint16_t numStages; /**< number of filter stages. */ + q15_t *pState; /**< points to the state variable array. The array is of length numStages. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ + } arm_fir_lattice_instance_q15; + + /** + * @brief Instance structure for the Q31 FIR lattice filter. + */ + + typedef struct + { + uint16_t numStages; /**< number of filter stages. */ + q31_t *pState; /**< points to the state variable array. The array is of length numStages. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ + } arm_fir_lattice_instance_q31; + + /** + * @brief Instance structure for the floating-point FIR lattice filter. + */ + + typedef struct + { + uint16_t numStages; /**< number of filter stages. */ + float32_t *pState; /**< points to the state variable array. The array is of length numStages. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ + } arm_fir_lattice_instance_f32; + + /** + * @brief Initialization function for the Q15 FIR lattice filter. + * @param[in] *S points to an instance of the Q15 FIR lattice structure. + * @param[in] numStages number of filter stages. + * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. + * @param[in] *pState points to the state buffer. The array is of length numStages. + * @return none. + */ + + void arm_fir_lattice_init_q15( + arm_fir_lattice_instance_q15 * S, + uint16_t numStages, + q15_t * pCoeffs, + q15_t * pState); + + + /** + * @brief Processing function for the Q15 FIR lattice filter. + * @param[in] *S points to an instance of the Q15 FIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + void arm_fir_lattice_q15( + const arm_fir_lattice_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 FIR lattice filter. + * @param[in] *S points to an instance of the Q31 FIR lattice structure. + * @param[in] numStages number of filter stages. + * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. + * @param[in] *pState points to the state buffer. The array is of length numStages. + * @return none. + */ + + void arm_fir_lattice_init_q31( + arm_fir_lattice_instance_q31 * S, + uint16_t numStages, + q31_t * pCoeffs, + q31_t * pState); + + + /** + * @brief Processing function for the Q31 FIR lattice filter. + * @param[in] *S points to an instance of the Q31 FIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_fir_lattice_q31( + const arm_fir_lattice_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + +/** + * @brief Initialization function for the floating-point FIR lattice filter. + * @param[in] *S points to an instance of the floating-point FIR lattice structure. + * @param[in] numStages number of filter stages. + * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. + * @param[in] *pState points to the state buffer. The array is of length numStages. + * @return none. + */ + + void arm_fir_lattice_init_f32( + arm_fir_lattice_instance_f32 * S, + uint16_t numStages, + float32_t * pCoeffs, + float32_t * pState); + + /** + * @brief Processing function for the floating-point FIR lattice filter. + * @param[in] *S points to an instance of the floating-point FIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_fir_lattice_f32( + const arm_fir_lattice_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Instance structure for the Q15 IIR lattice filter. + */ + typedef struct + { + uint16_t numStages; /**< number of stages in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ + q15_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ + q15_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ + } arm_iir_lattice_instance_q15; + + /** + * @brief Instance structure for the Q31 IIR lattice filter. + */ + typedef struct + { + uint16_t numStages; /**< number of stages in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ + q31_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ + q31_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ + } arm_iir_lattice_instance_q31; + + /** + * @brief Instance structure for the floating-point IIR lattice filter. + */ + typedef struct + { + uint16_t numStages; /**< number of stages in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ + float32_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ + float32_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ + } arm_iir_lattice_instance_f32; + + /** + * @brief Processing function for the floating-point IIR lattice filter. + * @param[in] *S points to an instance of the floating-point IIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_f32( + const arm_iir_lattice_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point IIR lattice filter. + * @param[in] *S points to an instance of the floating-point IIR lattice structure. + * @param[in] numStages number of stages in the filter. + * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. + * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. + * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize-1. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_init_f32( + arm_iir_lattice_instance_f32 * S, + uint16_t numStages, + float32_t * pkCoeffs, + float32_t * pvCoeffs, + float32_t * pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q31 IIR lattice filter. + * @param[in] *S points to an instance of the Q31 IIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_q31( + const arm_iir_lattice_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q31 IIR lattice filter. + * @param[in] *S points to an instance of the Q31 IIR lattice structure. + * @param[in] numStages number of stages in the filter. + * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. + * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. + * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_init_q31( + arm_iir_lattice_instance_q31 * S, + uint16_t numStages, + q31_t * pkCoeffs, + q31_t * pvCoeffs, + q31_t * pState, + uint32_t blockSize); + + + /** + * @brief Processing function for the Q15 IIR lattice filter. + * @param[in] *S points to an instance of the Q15 IIR lattice structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_iir_lattice_q15( + const arm_iir_lattice_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + +/** + * @brief Initialization function for the Q15 IIR lattice filter. + * @param[in] *S points to an instance of the fixed-point Q15 IIR lattice structure. + * @param[in] numStages number of stages in the filter. + * @param[in] *pkCoeffs points to reflection coefficient buffer. The array is of length numStages. + * @param[in] *pvCoeffs points to ladder coefficient buffer. The array is of length numStages+1. + * @param[in] *pState points to state buffer. The array is of length numStages+blockSize. + * @param[in] blockSize number of samples to process per call. + * @return none. + */ + + void arm_iir_lattice_init_q15( + arm_iir_lattice_instance_q15 * S, + uint16_t numStages, + q15_t * pkCoeffs, + q15_t * pvCoeffs, + q15_t * pState, + uint32_t blockSize); + + /** + * @brief Instance structure for the floating-point LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + float32_t mu; /**< step size that controls filter coefficient updates. */ + } arm_lms_instance_f32; + + /** + * @brief Processing function for floating-point LMS filter. + * @param[in] *S points to an instance of the floating-point LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_f32( + const arm_lms_instance_f32 * S, + float32_t * pSrc, + float32_t * pRef, + float32_t * pOut, + float32_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for floating-point LMS filter. + * @param[in] *S points to an instance of the floating-point LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to the coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_init_f32( + arm_lms_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + float32_t mu, + uint32_t blockSize); + + /** + * @brief Instance structure for the Q15 LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q15_t mu; /**< step size that controls filter coefficient updates. */ + uint32_t postShift; /**< bit shift applied to coefficients. */ + } arm_lms_instance_q15; + + + /** + * @brief Initialization function for the Q15 LMS filter. + * @param[in] *S points to an instance of the Q15 LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to the coefficient buffer. + * @param[in] *pState points to the state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_init_q15( + arm_lms_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + q15_t mu, + uint32_t blockSize, + uint32_t postShift); + + /** + * @brief Processing function for Q15 LMS filter. + * @param[in] *S points to an instance of the Q15 LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_q15( + const arm_lms_instance_q15 * S, + q15_t * pSrc, + q15_t * pRef, + q15_t * pOut, + q15_t * pErr, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q31 LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q31_t mu; /**< step size that controls filter coefficient updates. */ + uint32_t postShift; /**< bit shift applied to coefficients. */ + + } arm_lms_instance_q31; + + /** + * @brief Processing function for Q31 LMS filter. + * @param[in] *S points to an instance of the Q15 LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_q31( + const arm_lms_instance_q31 * S, + q31_t * pSrc, + q31_t * pRef, + q31_t * pOut, + q31_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for Q31 LMS filter. + * @param[in] *S points to an instance of the Q31 LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_init_q31( + arm_lms_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + q31_t mu, + uint32_t blockSize, + uint32_t postShift); + + /** + * @brief Instance structure for the floating-point normalized LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + float32_t mu; /**< step size that control filter coefficient updates. */ + float32_t energy; /**< saves previous frame energy. */ + float32_t x0; /**< saves previous input sample. */ + } arm_lms_norm_instance_f32; + + /** + * @brief Processing function for floating-point normalized LMS filter. + * @param[in] *S points to an instance of the floating-point normalized LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_f32( + arm_lms_norm_instance_f32 * S, + float32_t * pSrc, + float32_t * pRef, + float32_t * pOut, + float32_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for floating-point normalized LMS filter. + * @param[in] *S points to an instance of the floating-point LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_init_f32( + arm_lms_norm_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + float32_t mu, + uint32_t blockSize); + + + /** + * @brief Instance structure for the Q31 normalized LMS filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q31_t mu; /**< step size that controls filter coefficient updates. */ + uint8_t postShift; /**< bit shift applied to coefficients. */ + q31_t *recipTable; /**< points to the reciprocal initial value table. */ + q31_t energy; /**< saves previous frame energy. */ + q31_t x0; /**< saves previous input sample. */ + } arm_lms_norm_instance_q31; + + /** + * @brief Processing function for Q31 normalized LMS filter. + * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_q31( + arm_lms_norm_instance_q31 * S, + q31_t * pSrc, + q31_t * pRef, + q31_t * pOut, + q31_t * pErr, + uint32_t blockSize); + + /** + * @brief Initialization function for Q31 normalized LMS filter. + * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_norm_init_q31( + arm_lms_norm_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + q31_t mu, + uint32_t blockSize, + uint8_t postShift); + + /** + * @brief Instance structure for the Q15 normalized LMS filter. + */ + + typedef struct + { + uint16_t numTaps; /**< Number of coefficients in the filter. */ + q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ + q15_t mu; /**< step size that controls filter coefficient updates. */ + uint8_t postShift; /**< bit shift applied to coefficients. */ + q15_t *recipTable; /**< Points to the reciprocal initial value table. */ + q15_t energy; /**< saves previous frame energy. */ + q15_t x0; /**< saves previous input sample. */ + } arm_lms_norm_instance_q15; + + /** + * @brief Processing function for Q15 normalized LMS filter. + * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. + * @param[in] *pSrc points to the block of input data. + * @param[in] *pRef points to the block of reference data. + * @param[out] *pOut points to the block of output data. + * @param[out] *pErr points to the block of error data. + * @param[in] blockSize number of samples to process. + * @return none. + */ + + void arm_lms_norm_q15( + arm_lms_norm_instance_q15 * S, + q15_t * pSrc, + q15_t * pRef, + q15_t * pOut, + q15_t * pErr, + uint32_t blockSize); + + + /** + * @brief Initialization function for Q15 normalized LMS filter. + * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. + * @param[in] numTaps number of filter coefficients. + * @param[in] *pCoeffs points to coefficient buffer. + * @param[in] *pState points to state buffer. + * @param[in] mu step size that controls filter coefficient updates. + * @param[in] blockSize number of samples to process. + * @param[in] postShift bit shift applied to coefficients. + * @return none. + */ + + void arm_lms_norm_init_q15( + arm_lms_norm_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + q15_t mu, + uint32_t blockSize, + uint8_t postShift); + + /** + * @brief Correlation of floating-point sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_f32( + float32_t * pSrcA, + uint32_t srcALen, + float32_t * pSrcB, + uint32_t srcBLen, + float32_t * pDst); + + + /** + * @brief Correlation of Q15 sequences + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @param[in] *pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @return none. + */ + void arm_correlate_opt_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + q15_t * pScratch); + + + /** + * @brief Correlation of Q15 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + /** + * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_fast_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst); + + + + /** + * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @param[in] *pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @return none. + */ + + void arm_correlate_fast_opt_q15( + q15_t * pSrcA, + uint32_t srcALen, + q15_t * pSrcB, + uint32_t srcBLen, + q15_t * pDst, + q15_t * pScratch); + + /** + * @brief Correlation of Q31 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + /** + * @brief Correlation of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_fast_q31( + q31_t * pSrcA, + uint32_t srcALen, + q31_t * pSrcB, + uint32_t srcBLen, + q31_t * pDst); + + + + /** + * @brief Correlation of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @param[in] *pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. + * @param[in] *pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). + * @return none. + */ + + void arm_correlate_opt_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst, + q15_t * pScratch1, + q15_t * pScratch2); + + + /** + * @brief Correlation of Q7 sequences. + * @param[in] *pSrcA points to the first input sequence. + * @param[in] srcALen length of the first input sequence. + * @param[in] *pSrcB points to the second input sequence. + * @param[in] srcBLen length of the second input sequence. + * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. + * @return none. + */ + + void arm_correlate_q7( + q7_t * pSrcA, + uint32_t srcALen, + q7_t * pSrcB, + uint32_t srcBLen, + q7_t * pDst); + + + /** + * @brief Instance structure for the floating-point sparse FIR filter. + */ + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_f32; + + /** + * @brief Instance structure for the Q31 sparse FIR filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_q31; + + /** + * @brief Instance structure for the Q15 sparse FIR filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_q15; + + /** + * @brief Instance structure for the Q7 sparse FIR filter. + */ + + typedef struct + { + uint16_t numTaps; /**< number of coefficients in the filter. */ + uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ + q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ + q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ + uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ + int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ + } arm_fir_sparse_instance_q7; + + /** + * @brief Processing function for the floating-point sparse FIR filter. + * @param[in] *S points to an instance of the floating-point sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_f32( + arm_fir_sparse_instance_f32 * S, + float32_t * pSrc, + float32_t * pDst, + float32_t * pScratchIn, + uint32_t blockSize); + + /** + * @brief Initialization function for the floating-point sparse FIR filter. + * @param[in,out] *S points to an instance of the floating-point sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_f32( + arm_fir_sparse_instance_f32 * S, + uint16_t numTaps, + float32_t * pCoeffs, + float32_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + /** + * @brief Processing function for the Q31 sparse FIR filter. + * @param[in] *S points to an instance of the Q31 sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_q31( + arm_fir_sparse_instance_q31 * S, + q31_t * pSrc, + q31_t * pDst, + q31_t * pScratchIn, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q31 sparse FIR filter. + * @param[in,out] *S points to an instance of the Q31 sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_q31( + arm_fir_sparse_instance_q31 * S, + uint16_t numTaps, + q31_t * pCoeffs, + q31_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + /** + * @brief Processing function for the Q15 sparse FIR filter. + * @param[in] *S points to an instance of the Q15 sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] *pScratchOut points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_q15( + arm_fir_sparse_instance_q15 * S, + q15_t * pSrc, + q15_t * pDst, + q15_t * pScratchIn, + q31_t * pScratchOut, + uint32_t blockSize); + + + /** + * @brief Initialization function for the Q15 sparse FIR filter. + * @param[in,out] *S points to an instance of the Q15 sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_q15( + arm_fir_sparse_instance_q15 * S, + uint16_t numTaps, + q15_t * pCoeffs, + q15_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + /** + * @brief Processing function for the Q7 sparse FIR filter. + * @param[in] *S points to an instance of the Q7 sparse FIR structure. + * @param[in] *pSrc points to the block of input data. + * @param[out] *pDst points to the block of output data + * @param[in] *pScratchIn points to a temporary buffer of size blockSize. + * @param[in] *pScratchOut points to a temporary buffer of size blockSize. + * @param[in] blockSize number of input samples to process per call. + * @return none. + */ + + void arm_fir_sparse_q7( + arm_fir_sparse_instance_q7 * S, + q7_t * pSrc, + q7_t * pDst, + q7_t * pScratchIn, + q31_t * pScratchOut, + uint32_t blockSize); + + /** + * @brief Initialization function for the Q7 sparse FIR filter. + * @param[in,out] *S points to an instance of the Q7 sparse FIR structure. + * @param[in] numTaps number of nonzero coefficients in the filter. + * @param[in] *pCoeffs points to the array of filter coefficients. + * @param[in] *pState points to the state buffer. + * @param[in] *pTapDelay points to the array of offset times. + * @param[in] maxDelay maximum offset time supported. + * @param[in] blockSize number of samples that will be processed per block. + * @return none + */ + + void arm_fir_sparse_init_q7( + arm_fir_sparse_instance_q7 * S, + uint16_t numTaps, + q7_t * pCoeffs, + q7_t * pState, + int32_t * pTapDelay, + uint16_t maxDelay, + uint32_t blockSize); + + + /* + * @brief Floating-point sin_cos function. + * @param[in] theta input value in degrees + * @param[out] *pSinVal points to the processed sine output. + * @param[out] *pCosVal points to the processed cos output. + * @return none. + */ + + void arm_sin_cos_f32( + float32_t theta, + float32_t * pSinVal, + float32_t * pCcosVal); + + /* + * @brief Q31 sin_cos function. + * @param[in] theta scaled input value in degrees + * @param[out] *pSinVal points to the processed sine output. + * @param[out] *pCosVal points to the processed cosine output. + * @return none. + */ + + void arm_sin_cos_q31( + q31_t theta, + q31_t * pSinVal, + q31_t * pCosVal); + + + /** + * @brief Floating-point complex conjugate. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_conj_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex conjugate. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_conj_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex conjugate. + * @param[in] *pSrc points to the input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_conj_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t numSamples); + + + + /** + * @brief Floating-point complex magnitude squared + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_squared_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex magnitude squared + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_squared_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex magnitude squared + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_squared_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t numSamples); + + + /** + * @ingroup groupController + */ + + /** + * @defgroup PID PID Motor Control + * + * A Proportional Integral Derivative (PID) controller is a generic feedback control + * loop mechanism widely used in industrial control systems. + * A PID controller is the most commonly used type of feedback controller. + * + * This set of functions implements (PID) controllers + * for Q15, Q31, and floating-point data types. The functions operate on a single sample + * of data and each call to the function returns a single processed value. + * S points to an instance of the PID control data structure. in + * is the input sample value. The functions return the output value. + * + * \par Algorithm: + *
+   *    y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2]
+   *    A0 = Kp + Ki + Kd
+   *    A1 = (-Kp ) - (2 * Kd )
+   *    A2 = Kd  
+ * + * \par + * where \c Kp is proportional constant, \c Ki is Integral constant and \c Kd is Derivative constant + * + * \par + * \image html PID.gif "Proportional Integral Derivative Controller" + * + * \par + * The PID controller calculates an "error" value as the difference between + * the measured output and the reference input. + * The controller attempts to minimize the error by adjusting the process control inputs. + * The proportional value determines the reaction to the current error, + * the integral value determines the reaction based on the sum of recent errors, + * and the derivative value determines the reaction based on the rate at which the error has been changing. + * + * \par Instance Structure + * The Gains A0, A1, A2 and state variables for a PID controller are stored together in an instance data structure. + * A separate instance structure must be defined for each PID Controller. + * There are separate instance structure declarations for each of the 3 supported data types. + * + * \par Reset Functions + * There is also an associated reset function for each data type which clears the state array. + * + * \par Initialization Functions + * There is also an associated initialization function for each data type. + * The initialization function performs the following operations: + * - Initializes the Gains A0, A1, A2 from Kp,Ki, Kd gains. + * - Zeros out the values in the state buffer. + * + * \par + * Instance structure cannot be placed into a const data section and it is recommended to use the initialization function. + * + * \par Fixed-Point Behavior + * Care must be taken when using the fixed-point versions of the PID Controller functions. + * In particular, the overflow and saturation behavior of the accumulator used in each function must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup PID + * @{ + */ + + /** + * @brief Process function for the floating-point PID Control. + * @param[in,out] *S is an instance of the floating-point PID Control structure + * @param[in] in input sample to process + * @return out processed output sample. + */ + + + static __INLINE float32_t arm_pid_f32( + arm_pid_instance_f32 * S, + float32_t in) + { + float32_t out; + + /* y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2] */ + out = (S->A0 * in) + + (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); + + /* Update state */ + S->state[1] = S->state[0]; + S->state[0] = in; + S->state[2] = out; + + /* return to application */ + return (out); + + } + + /** + * @brief Process function for the Q31 PID Control. + * @param[in,out] *S points to an instance of the Q31 PID Control structure + * @param[in] in input sample to process + * @return out processed output sample. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 64-bit accumulator. + * The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit. + * Thus, if the accumulator result overflows it wraps around rather than clip. + * In order to avoid overflows completely the input signal must be scaled down by 2 bits as there are four additions. + * After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format. + */ + + static __INLINE q31_t arm_pid_q31( + arm_pid_instance_q31 * S, + q31_t in) + { + q63_t acc; + q31_t out; + + /* acc = A0 * x[n] */ + acc = (q63_t) S->A0 * in; + + /* acc += A1 * x[n-1] */ + acc += (q63_t) S->A1 * S->state[0]; + + /* acc += A2 * x[n-2] */ + acc += (q63_t) S->A2 * S->state[1]; + + /* convert output to 1.31 format to add y[n-1] */ + out = (q31_t) (acc >> 31u); + + /* out += y[n-1] */ + out += S->state[2]; + + /* Update state */ + S->state[1] = S->state[0]; + S->state[0] = in; + S->state[2] = out; + + /* return to application */ + return (out); + + } + + /** + * @brief Process function for the Q15 PID Control. + * @param[in,out] *S points to an instance of the Q15 PID Control structure + * @param[in] in input sample to process + * @return out processed output sample. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using a 64-bit internal accumulator. + * Both Gains and state variables are represented in 1.15 format and multiplications yield a 2.30 result. + * The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format. + * There is no risk of internal overflow with this approach and the full precision of intermediate multiplications is preserved. + * After all additions have been performed, the accumulator is truncated to 34.15 format by discarding low 15 bits. + * Lastly, the accumulator is saturated to yield a result in 1.15 format. + */ + + static __INLINE q15_t arm_pid_q15( + arm_pid_instance_q15 * S, + q15_t in) + { + q63_t acc; + q15_t out; + +#ifndef ARM_MATH_CM0_FAMILY + __SIMD32_TYPE *vstate; + + /* Implementation of PID controller */ + + /* acc = A0 * x[n] */ + acc = (q31_t) __SMUAD(S->A0, in); + + /* acc += A1 * x[n-1] + A2 * x[n-2] */ + vstate = __SIMD32_CONST(S->state); + acc = __SMLALD(S->A1, (q31_t) *vstate, acc); + +#else + /* acc = A0 * x[n] */ + acc = ((q31_t) S->A0) * in; + + /* acc += A1 * x[n-1] + A2 * x[n-2] */ + acc += (q31_t) S->A1 * S->state[0]; + acc += (q31_t) S->A2 * S->state[1]; + +#endif + + /* acc += y[n-1] */ + acc += (q31_t) S->state[2] << 15; + + /* saturate the output */ + out = (q15_t) (__SSAT((acc >> 15), 16)); + + /* Update state */ + S->state[1] = S->state[0]; + S->state[0] = in; + S->state[2] = out; + + /* return to application */ + return (out); + + } + + /** + * @} end of PID group + */ + + + /** + * @brief Floating-point matrix inverse. + * @param[in] *src points to the instance of the input floating-point matrix structure. + * @param[out] *dst points to the instance of the output floating-point matrix structure. + * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. + * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. + */ + + arm_status arm_mat_inverse_f32( + const arm_matrix_instance_f32 * src, + arm_matrix_instance_f32 * dst); + + + + /** + * @ingroup groupController + */ + + + /** + * @defgroup clarke Vector Clarke Transform + * Forward Clarke transform converts the instantaneous stator phases into a two-coordinate time invariant vector. + * Generally the Clarke transform uses three-phase currents Ia, Ib and Ic to calculate currents + * in the two-phase orthogonal stator axis Ialpha and Ibeta. + * When Ialpha is superposed with Ia as shown in the figure below + * \image html clarke.gif Stator current space vector and its components in (a,b). + * and Ia + Ib + Ic = 0, in this condition Ialpha and Ibeta + * can be calculated using only Ia and Ib. + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html clarkeFormula.gif + * where Ia and Ib are the instantaneous stator phases and + * pIalpha and pIbeta are the two coordinates of time invariant vector. + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Clarke transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup clarke + * @{ + */ + + /** + * + * @brief Floating-point Clarke transform + * @param[in] Ia input three-phase coordinate a + * @param[in] Ib input three-phase coordinate b + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @return none. + */ + + static __INLINE void arm_clarke_f32( + float32_t Ia, + float32_t Ib, + float32_t * pIalpha, + float32_t * pIbeta) + { + /* Calculate pIalpha using the equation, pIalpha = Ia */ + *pIalpha = Ia; + + /* Calculate pIbeta using the equation, pIbeta = (1/sqrt(3)) * Ia + (2/sqrt(3)) * Ib */ + *pIbeta = + ((float32_t) 0.57735026919 * Ia + (float32_t) 1.15470053838 * Ib); + + } + + /** + * @brief Clarke transform for Q31 version + * @param[in] Ia input three-phase coordinate a + * @param[in] Ib input three-phase coordinate b + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the addition, hence there is no risk of overflow. + */ + + static __INLINE void arm_clarke_q31( + q31_t Ia, + q31_t Ib, + q31_t * pIalpha, + q31_t * pIbeta) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + + /* Calculating pIalpha from Ia by equation pIalpha = Ia */ + *pIalpha = Ia; + + /* Intermediate product is calculated by (1/(sqrt(3)) * Ia) */ + product1 = (q31_t) (((q63_t) Ia * 0x24F34E8B) >> 30); + + /* Intermediate product is calculated by (2/sqrt(3) * Ib) */ + product2 = (q31_t) (((q63_t) Ib * 0x49E69D16) >> 30); + + /* pIbeta is calculated by adding the intermediate products */ + *pIbeta = __QADD(product1, product2); + } + + /** + * @} end of clarke group + */ + + /** + * @brief Converts the elements of the Q7 vector to Q31 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_q7_to_q31( + q7_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + + + /** + * @ingroup groupController + */ + + /** + * @defgroup inv_clarke Vector Inverse Clarke Transform + * Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases. + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html clarkeInvFormula.gif + * where pIa and pIb are the instantaneous stator phases and + * Ialpha and Ibeta are the two coordinates of time invariant vector. + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Clarke transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup inv_clarke + * @{ + */ + + /** + * @brief Floating-point Inverse Clarke transform + * @param[in] Ialpha input two-phase orthogonal vector axis alpha + * @param[in] Ibeta input two-phase orthogonal vector axis beta + * @param[out] *pIa points to output three-phase coordinate a + * @param[out] *pIb points to output three-phase coordinate b + * @return none. + */ + + + static __INLINE void arm_inv_clarke_f32( + float32_t Ialpha, + float32_t Ibeta, + float32_t * pIa, + float32_t * pIb) + { + /* Calculating pIa from Ialpha by equation pIa = Ialpha */ + *pIa = Ialpha; + + /* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */ + *pIb = -0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta; + + } + + /** + * @brief Inverse Clarke transform for Q31 version + * @param[in] Ialpha input two-phase orthogonal vector axis alpha + * @param[in] Ibeta input two-phase orthogonal vector axis beta + * @param[out] *pIa points to output three-phase coordinate a + * @param[out] *pIb points to output three-phase coordinate b + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the subtraction, hence there is no risk of overflow. + */ + + static __INLINE void arm_inv_clarke_q31( + q31_t Ialpha, + q31_t Ibeta, + q31_t * pIa, + q31_t * pIb) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + + /* Calculating pIa from Ialpha by equation pIa = Ialpha */ + *pIa = Ialpha; + + /* Intermediate product is calculated by (1/(2*sqrt(3)) * Ia) */ + product1 = (q31_t) (((q63_t) (Ialpha) * (0x40000000)) >> 31); + + /* Intermediate product is calculated by (1/sqrt(3) * pIb) */ + product2 = (q31_t) (((q63_t) (Ibeta) * (0x6ED9EBA1)) >> 31); + + /* pIb is calculated by subtracting the products */ + *pIb = __QSUB(product2, product1); + + } + + /** + * @} end of inv_clarke group + */ + + /** + * @brief Converts the elements of the Q7 vector to Q15 vector. + * @param[in] *pSrc input pointer + * @param[out] *pDst output pointer + * @param[in] blockSize number of samples to process + * @return none. + */ + void arm_q7_to_q15( + q7_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + + + /** + * @ingroup groupController + */ + + /** + * @defgroup park Vector Park Transform + * + * Forward Park transform converts the input two-coordinate vector to flux and torque components. + * The Park transform can be used to realize the transformation of the Ialpha and the Ibeta currents + * from the stationary to the moving reference frame and control the spatial relationship between + * the stator vector current and rotor flux vector. + * If we consider the d axis aligned with the rotor flux, the diagram below shows the + * current vector and the relationship from the two reference frames: + * \image html park.gif "Stator current space vector and its component in (a,b) and in the d,q rotating reference frame" + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html parkFormula.gif + * where Ialpha and Ibeta are the stator vector components, + * pId and pIq are rotor vector components and cosVal and sinVal are the + * cosine and sine values of theta (rotor flux position). + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Park transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup park + * @{ + */ + + /** + * @brief Floating-point Park transform + * @param[in] Ialpha input two-phase vector coordinate alpha + * @param[in] Ibeta input two-phase vector coordinate beta + * @param[out] *pId points to output rotor reference frame d + * @param[out] *pIq points to output rotor reference frame q + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + * + * The function implements the forward Park transform. + * + */ + + static __INLINE void arm_park_f32( + float32_t Ialpha, + float32_t Ibeta, + float32_t * pId, + float32_t * pIq, + float32_t sinVal, + float32_t cosVal) + { + /* Calculate pId using the equation, pId = Ialpha * cosVal + Ibeta * sinVal */ + *pId = Ialpha * cosVal + Ibeta * sinVal; + + /* Calculate pIq using the equation, pIq = - Ialpha * sinVal + Ibeta * cosVal */ + *pIq = -Ialpha * sinVal + Ibeta * cosVal; + + } + + /** + * @brief Park transform for Q31 version + * @param[in] Ialpha input two-phase vector coordinate alpha + * @param[in] Ibeta input two-phase vector coordinate beta + * @param[out] *pId points to output rotor reference frame d + * @param[out] *pIq points to output rotor reference frame q + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the addition and subtraction, hence there is no risk of overflow. + */ + + + static __INLINE void arm_park_q31( + q31_t Ialpha, + q31_t Ibeta, + q31_t * pId, + q31_t * pIq, + q31_t sinVal, + q31_t cosVal) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + q31_t product3, product4; /* Temporary variables used to store intermediate results */ + + /* Intermediate product is calculated by (Ialpha * cosVal) */ + product1 = (q31_t) (((q63_t) (Ialpha) * (cosVal)) >> 31); + + /* Intermediate product is calculated by (Ibeta * sinVal) */ + product2 = (q31_t) (((q63_t) (Ibeta) * (sinVal)) >> 31); + + + /* Intermediate product is calculated by (Ialpha * sinVal) */ + product3 = (q31_t) (((q63_t) (Ialpha) * (sinVal)) >> 31); + + /* Intermediate product is calculated by (Ibeta * cosVal) */ + product4 = (q31_t) (((q63_t) (Ibeta) * (cosVal)) >> 31); + + /* Calculate pId by adding the two intermediate products 1 and 2 */ + *pId = __QADD(product1, product2); + + /* Calculate pIq by subtracting the two intermediate products 3 from 4 */ + *pIq = __QSUB(product4, product3); + } + + /** + * @} end of park group + */ + + /** + * @brief Converts the elements of the Q7 vector to floating-point vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q7_to_float( + q7_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @ingroup groupController + */ + + /** + * @defgroup inv_park Vector Inverse Park transform + * Inverse Park transform converts the input flux and torque components to two-coordinate vector. + * + * The function operates on a single sample of data and each call to the function returns the processed output. + * The library provides separate functions for Q31 and floating-point data types. + * \par Algorithm + * \image html parkInvFormula.gif + * where pIalpha and pIbeta are the stator vector components, + * Id and Iq are rotor vector components and cosVal and sinVal are the + * cosine and sine values of theta (rotor flux position). + * \par Fixed-Point Behavior + * Care must be taken when using the Q31 version of the Park transform. + * In particular, the overflow and saturation behavior of the accumulator used must be considered. + * Refer to the function specific documentation below for usage guidelines. + */ + + /** + * @addtogroup inv_park + * @{ + */ + + /** + * @brief Floating-point Inverse Park transform + * @param[in] Id input coordinate of rotor reference frame d + * @param[in] Iq input coordinate of rotor reference frame q + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + */ + + static __INLINE void arm_inv_park_f32( + float32_t Id, + float32_t Iq, + float32_t * pIalpha, + float32_t * pIbeta, + float32_t sinVal, + float32_t cosVal) + { + /* Calculate pIalpha using the equation, pIalpha = Id * cosVal - Iq * sinVal */ + *pIalpha = Id * cosVal - Iq * sinVal; + + /* Calculate pIbeta using the equation, pIbeta = Id * sinVal + Iq * cosVal */ + *pIbeta = Id * sinVal + Iq * cosVal; + + } + + + /** + * @brief Inverse Park transform for Q31 version + * @param[in] Id input coordinate of rotor reference frame d + * @param[in] Iq input coordinate of rotor reference frame q + * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha + * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta + * @param[in] sinVal sine value of rotation angle theta + * @param[in] cosVal cosine value of rotation angle theta + * @return none. + * + * Scaling and Overflow Behavior: + * \par + * The function is implemented using an internal 32-bit accumulator. + * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. + * There is saturation on the addition, hence there is no risk of overflow. + */ + + + static __INLINE void arm_inv_park_q31( + q31_t Id, + q31_t Iq, + q31_t * pIalpha, + q31_t * pIbeta, + q31_t sinVal, + q31_t cosVal) + { + q31_t product1, product2; /* Temporary variables used to store intermediate results */ + q31_t product3, product4; /* Temporary variables used to store intermediate results */ + + /* Intermediate product is calculated by (Id * cosVal) */ + product1 = (q31_t) (((q63_t) (Id) * (cosVal)) >> 31); + + /* Intermediate product is calculated by (Iq * sinVal) */ + product2 = (q31_t) (((q63_t) (Iq) * (sinVal)) >> 31); + + + /* Intermediate product is calculated by (Id * sinVal) */ + product3 = (q31_t) (((q63_t) (Id) * (sinVal)) >> 31); + + /* Intermediate product is calculated by (Iq * cosVal) */ + product4 = (q31_t) (((q63_t) (Iq) * (cosVal)) >> 31); + + /* Calculate pIalpha by using the two intermediate products 1 and 2 */ + *pIalpha = __QSUB(product1, product2); + + /* Calculate pIbeta by using the two intermediate products 3 and 4 */ + *pIbeta = __QADD(product4, product3); + + } + + /** + * @} end of Inverse park group + */ + + + /** + * @brief Converts the elements of the Q31 vector to floating-point vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q31_to_float( + q31_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + /** + * @ingroup groupInterpolation + */ + + /** + * @defgroup LinearInterpolate Linear Interpolation + * + * Linear interpolation is a method of curve fitting using linear polynomials. + * Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line + * + * \par + * \image html LinearInterp.gif "Linear interpolation" + * + * \par + * A Linear Interpolate function calculates an output value(y), for the input(x) + * using linear interpolation of the input values x0, x1( nearest input values) and the output values y0 and y1(nearest output values) + * + * \par Algorithm: + *
+   *       y = y0 + (x - x0) * ((y1 - y0)/(x1-x0))
+   *       where x0, x1 are nearest values of input x
+   *             y0, y1 are nearest values to output y
+   * 
+ * + * \par + * This set of functions implements Linear interpolation process + * for Q7, Q15, Q31, and floating-point data types. The functions operate on a single + * sample of data and each call to the function returns a single processed value. + * S points to an instance of the Linear Interpolate function data structure. + * x is the input sample value. The functions returns the output value. + * + * \par + * if x is outside of the table boundary, Linear interpolation returns first value of the table + * if x is below input range and returns last value of table if x is above range. + */ + + /** + * @addtogroup LinearInterpolate + * @{ + */ + + /** + * @brief Process function for the floating-point Linear Interpolation Function. + * @param[in,out] *S is an instance of the floating-point Linear Interpolation structure + * @param[in] x input sample to process + * @return y processed output sample. + * + */ + + static __INLINE float32_t arm_linear_interp_f32( + arm_linear_interp_instance_f32 * S, + float32_t x) + { + + float32_t y; + float32_t x0, x1; /* Nearest input values */ + float32_t y0, y1; /* Nearest output values */ + float32_t xSpacing = S->xSpacing; /* spacing between input values */ + int32_t i; /* Index variable */ + float32_t *pYData = S->pYData; /* pointer to output table */ + + /* Calculation of index */ + i = (int32_t) ((x - S->x1) / xSpacing); + + if(i < 0) + { + /* Iniatilize output for below specified range as least output value of table */ + y = pYData[0]; + } + else if((uint32_t)i >= S->nValues) + { + /* Iniatilize output for above specified range as last output value of table */ + y = pYData[S->nValues - 1]; + } + else + { + /* Calculation of nearest input values */ + x0 = S->x1 + i * xSpacing; + x1 = S->x1 + (i + 1) * xSpacing; + + /* Read of nearest output values */ + y0 = pYData[i]; + y1 = pYData[i + 1]; + + /* Calculation of output */ + y = y0 + (x - x0) * ((y1 - y0) / (x1 - x0)); + + } + + /* returns output value */ + return (y); + } + + /** + * + * @brief Process function for the Q31 Linear Interpolation Function. + * @param[in] *pYData pointer to Q31 Linear Interpolation table + * @param[in] x input sample to process + * @param[in] nValues number of table values + * @return y processed output sample. + * + * \par + * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. + * This function can support maximum of table size 2^12. + * + */ + + + static __INLINE q31_t arm_linear_interp_q31( + q31_t * pYData, + q31_t x, + uint32_t nValues) + { + q31_t y; /* output */ + q31_t y0, y1; /* Nearest output values */ + q31_t fract; /* fractional part */ + int32_t index; /* Index to read nearest output values */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + index = ((x & 0xFFF00000) >> 20); + + if(index >= (int32_t)(nValues - 1)) + { + return (pYData[nValues - 1]); + } + else if(index < 0) + { + return (pYData[0]); + } + else + { + + /* 20 bits for the fractional part */ + /* shift left by 11 to keep fract in 1.31 format */ + fract = (x & 0x000FFFFF) << 11; + + /* Read two nearest output values from the index in 1.31(q31) format */ + y0 = pYData[index]; + y1 = pYData[index + 1u]; + + /* Calculation of y0 * (1-fract) and y is in 2.30 format */ + y = ((q31_t) ((q63_t) y0 * (0x7FFFFFFF - fract) >> 32)); + + /* Calculation of y0 * (1-fract) + y1 *fract and y is in 2.30 format */ + y += ((q31_t) (((q63_t) y1 * fract) >> 32)); + + /* Convert y to 1.31 format */ + return (y << 1u); + + } + + } + + /** + * + * @brief Process function for the Q15 Linear Interpolation Function. + * @param[in] *pYData pointer to Q15 Linear Interpolation table + * @param[in] x input sample to process + * @param[in] nValues number of table values + * @return y processed output sample. + * + * \par + * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. + * This function can support maximum of table size 2^12. + * + */ + + + static __INLINE q15_t arm_linear_interp_q15( + q15_t * pYData, + q31_t x, + uint32_t nValues) + { + q63_t y; /* output */ + q15_t y0, y1; /* Nearest output values */ + q31_t fract; /* fractional part */ + int32_t index; /* Index to read nearest output values */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + index = ((x & 0xFFF00000) >> 20u); + + if(index >= (int32_t)(nValues - 1)) + { + return (pYData[nValues - 1]); + } + else if(index < 0) + { + return (pYData[0]); + } + else + { + /* 20 bits for the fractional part */ + /* fract is in 12.20 format */ + fract = (x & 0x000FFFFF); + + /* Read two nearest output values from the index */ + y0 = pYData[index]; + y1 = pYData[index + 1u]; + + /* Calculation of y0 * (1-fract) and y is in 13.35 format */ + y = ((q63_t) y0 * (0xFFFFF - fract)); + + /* Calculation of (y0 * (1-fract) + y1 * fract) and y is in 13.35 format */ + y += ((q63_t) y1 * (fract)); + + /* convert y to 1.15 format */ + return (y >> 20); + } + + + } + + /** + * + * @brief Process function for the Q7 Linear Interpolation Function. + * @param[in] *pYData pointer to Q7 Linear Interpolation table + * @param[in] x input sample to process + * @param[in] nValues number of table values + * @return y processed output sample. + * + * \par + * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. + * This function can support maximum of table size 2^12. + */ + + + static __INLINE q7_t arm_linear_interp_q7( + q7_t * pYData, + q31_t x, + uint32_t nValues) + { + q31_t y; /* output */ + q7_t y0, y1; /* Nearest output values */ + q31_t fract; /* fractional part */ + uint32_t index; /* Index to read nearest output values */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + if (x < 0) + { + return (pYData[0]); + } + index = (x >> 20) & 0xfff; + + + if(index >= (nValues - 1)) + { + return (pYData[nValues - 1]); + } + else + { + + /* 20 bits for the fractional part */ + /* fract is in 12.20 format */ + fract = (x & 0x000FFFFF); + + /* Read two nearest output values from the index and are in 1.7(q7) format */ + y0 = pYData[index]; + y1 = pYData[index + 1u]; + + /* Calculation of y0 * (1-fract ) and y is in 13.27(q27) format */ + y = ((y0 * (0xFFFFF - fract))); + + /* Calculation of y1 * fract + y0 * (1-fract) and y is in 13.27(q27) format */ + y += (y1 * fract); + + /* convert y to 1.7(q7) format */ + return (y >> 20u); + + } + + } + /** + * @} end of LinearInterpolate group + */ + + /** + * @brief Fast approximation to the trigonometric sine function for floating-point data. + * @param[in] x input value in radians. + * @return sin(x). + */ + + float32_t arm_sin_f32( + float32_t x); + + /** + * @brief Fast approximation to the trigonometric sine function for Q31 data. + * @param[in] x Scaled input value in radians. + * @return sin(x). + */ + + q31_t arm_sin_q31( + q31_t x); + + /** + * @brief Fast approximation to the trigonometric sine function for Q15 data. + * @param[in] x Scaled input value in radians. + * @return sin(x). + */ + + q15_t arm_sin_q15( + q15_t x); + + /** + * @brief Fast approximation to the trigonometric cosine function for floating-point data. + * @param[in] x input value in radians. + * @return cos(x). + */ + + float32_t arm_cos_f32( + float32_t x); + + /** + * @brief Fast approximation to the trigonometric cosine function for Q31 data. + * @param[in] x Scaled input value in radians. + * @return cos(x). + */ + + q31_t arm_cos_q31( + q31_t x); + + /** + * @brief Fast approximation to the trigonometric cosine function for Q15 data. + * @param[in] x Scaled input value in radians. + * @return cos(x). + */ + + q15_t arm_cos_q15( + q15_t x); + + + /** + * @ingroup groupFastMath + */ + + + /** + * @defgroup SQRT Square Root + * + * Computes the square root of a number. + * There are separate functions for Q15, Q31, and floating-point data types. + * The square root function is computed using the Newton-Raphson algorithm. + * This is an iterative algorithm of the form: + *
+   *      x1 = x0 - f(x0)/f'(x0)
+   * 
+ * where x1 is the current estimate, + * x0 is the previous estimate, and + * f'(x0) is the derivative of f() evaluated at x0. + * For the square root function, the algorithm reduces to: + *
+   *     x0 = in/2                         [initial guess]
+   *     x1 = 1/2 * ( x0 + in / x0)        [each iteration]
+   * 
+ */ + + + /** + * @addtogroup SQRT + * @{ + */ + + /** + * @brief Floating-point square root function. + * @param[in] in input value. + * @param[out] *pOut square root of input value. + * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if + * in is negative value and returns zero output for negative values. + */ + + static __INLINE arm_status arm_sqrt_f32( + float32_t in, + float32_t * pOut) + { + if(in > 0) + { + +// #if __FPU_USED +#if (__FPU_USED == 1) && defined ( __CC_ARM ) + *pOut = __sqrtf(in); +#else + *pOut = sqrtf(in); +#endif + + return (ARM_MATH_SUCCESS); + } + else + { + *pOut = 0.0f; + return (ARM_MATH_ARGUMENT_ERROR); + } + + } + + + /** + * @brief Q31 square root function. + * @param[in] in input value. The range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. + * @param[out] *pOut square root of input value. + * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if + * in is negative value and returns zero output for negative values. + */ + arm_status arm_sqrt_q31( + q31_t in, + q31_t * pOut); + + /** + * @brief Q15 square root function. + * @param[in] in input value. The range of the input value is [0 +1) or 0x0000 to 0x7FFF. + * @param[out] *pOut square root of input value. + * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if + * in is negative value and returns zero output for negative values. + */ + arm_status arm_sqrt_q15( + q15_t in, + q15_t * pOut); + + /** + * @} end of SQRT group + */ + + + + + + + /** + * @brief floating-point Circular write function. + */ + + static __INLINE void arm_circularWrite_f32( + int32_t * circBuffer, + int32_t L, + uint16_t * writeOffset, + int32_t bufferInc, + const int32_t * src, + int32_t srcInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t wOffset; + + /* Copy the value of Index pointer that points + * to the current location where the input samples to be copied */ + wOffset = *writeOffset; + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the input sample to the circular buffer */ + circBuffer[wOffset] = *src; + + /* Update the input pointer */ + src += srcInc; + + /* Circularly update wOffset. Watch out for positive and negative value */ + wOffset += bufferInc; + if(wOffset >= L) + wOffset -= L; + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *writeOffset = wOffset; + } + + + + /** + * @brief floating-point Circular Read function. + */ + static __INLINE void arm_circularRead_f32( + int32_t * circBuffer, + int32_t L, + int32_t * readOffset, + int32_t bufferInc, + int32_t * dst, + int32_t * dst_base, + int32_t dst_length, + int32_t dstInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t rOffset, dst_end; + + /* Copy the value of Index pointer that points + * to the current location from where the input samples to be read */ + rOffset = *readOffset; + dst_end = (int32_t) (dst_base + dst_length); + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the sample from the circular buffer to the destination buffer */ + *dst = circBuffer[rOffset]; + + /* Update the input pointer */ + dst += dstInc; + + if(dst == (int32_t *) dst_end) + { + dst = dst_base; + } + + /* Circularly update rOffset. Watch out for positive and negative value */ + rOffset += bufferInc; + + if(rOffset >= L) + { + rOffset -= L; + } + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *readOffset = rOffset; + } + + /** + * @brief Q15 Circular write function. + */ + + static __INLINE void arm_circularWrite_q15( + q15_t * circBuffer, + int32_t L, + uint16_t * writeOffset, + int32_t bufferInc, + const q15_t * src, + int32_t srcInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t wOffset; + + /* Copy the value of Index pointer that points + * to the current location where the input samples to be copied */ + wOffset = *writeOffset; + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the input sample to the circular buffer */ + circBuffer[wOffset] = *src; + + /* Update the input pointer */ + src += srcInc; + + /* Circularly update wOffset. Watch out for positive and negative value */ + wOffset += bufferInc; + if(wOffset >= L) + wOffset -= L; + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *writeOffset = wOffset; + } + + + + /** + * @brief Q15 Circular Read function. + */ + static __INLINE void arm_circularRead_q15( + q15_t * circBuffer, + int32_t L, + int32_t * readOffset, + int32_t bufferInc, + q15_t * dst, + q15_t * dst_base, + int32_t dst_length, + int32_t dstInc, + uint32_t blockSize) + { + uint32_t i = 0; + int32_t rOffset, dst_end; + + /* Copy the value of Index pointer that points + * to the current location from where the input samples to be read */ + rOffset = *readOffset; + + dst_end = (int32_t) (dst_base + dst_length); + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the sample from the circular buffer to the destination buffer */ + *dst = circBuffer[rOffset]; + + /* Update the input pointer */ + dst += dstInc; + + if(dst == (q15_t *) dst_end) + { + dst = dst_base; + } + + /* Circularly update wOffset. Watch out for positive and negative value */ + rOffset += bufferInc; + + if(rOffset >= L) + { + rOffset -= L; + } + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *readOffset = rOffset; + } + + + /** + * @brief Q7 Circular write function. + */ + + static __INLINE void arm_circularWrite_q7( + q7_t * circBuffer, + int32_t L, + uint16_t * writeOffset, + int32_t bufferInc, + const q7_t * src, + int32_t srcInc, + uint32_t blockSize) + { + uint32_t i = 0u; + int32_t wOffset; + + /* Copy the value of Index pointer that points + * to the current location where the input samples to be copied */ + wOffset = *writeOffset; + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the input sample to the circular buffer */ + circBuffer[wOffset] = *src; + + /* Update the input pointer */ + src += srcInc; + + /* Circularly update wOffset. Watch out for positive and negative value */ + wOffset += bufferInc; + if(wOffset >= L) + wOffset -= L; + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *writeOffset = wOffset; + } + + + + /** + * @brief Q7 Circular Read function. + */ + static __INLINE void arm_circularRead_q7( + q7_t * circBuffer, + int32_t L, + int32_t * readOffset, + int32_t bufferInc, + q7_t * dst, + q7_t * dst_base, + int32_t dst_length, + int32_t dstInc, + uint32_t blockSize) + { + uint32_t i = 0; + int32_t rOffset, dst_end; + + /* Copy the value of Index pointer that points + * to the current location from where the input samples to be read */ + rOffset = *readOffset; + + dst_end = (int32_t) (dst_base + dst_length); + + /* Loop over the blockSize */ + i = blockSize; + + while(i > 0u) + { + /* copy the sample from the circular buffer to the destination buffer */ + *dst = circBuffer[rOffset]; + + /* Update the input pointer */ + dst += dstInc; + + if(dst == (q7_t *) dst_end) + { + dst = dst_base; + } + + /* Circularly update rOffset. Watch out for positive and negative value */ + rOffset += bufferInc; + + if(rOffset >= L) + { + rOffset -= L; + } + + /* Decrement the loop counter */ + i--; + } + + /* Update the index pointer */ + *readOffset = rOffset; + } + + + /** + * @brief Sum of the squares of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_q31( + q31_t * pSrc, + uint32_t blockSize, + q63_t * pResult); + + /** + * @brief Sum of the squares of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Sum of the squares of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_q15( + q15_t * pSrc, + uint32_t blockSize, + q63_t * pResult); + + /** + * @brief Sum of the squares of the elements of a Q7 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_power_q7( + q7_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Mean value of a Q7 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_mean_q7( + q7_t * pSrc, + uint32_t blockSize, + q7_t * pResult); + + /** + * @brief Mean value of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + void arm_mean_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult); + + /** + * @brief Mean value of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + void arm_mean_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Mean value of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + void arm_mean_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Variance of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_var_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Variance of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_var_q31( + q31_t * pSrc, + uint32_t blockSize, + q63_t * pResult); + + /** + * @brief Variance of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_var_q15( + q15_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Root Mean Square of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_rms_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Root Mean Square of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_rms_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Root Mean Square of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_rms_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult); + + /** + * @brief Standard deviation of the elements of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_std_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult); + + /** + * @brief Standard deviation of the elements of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_std_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult); + + /** + * @brief Standard deviation of the elements of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output value. + * @return none. + */ + + void arm_std_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult); + + /** + * @brief Floating-point complex magnitude + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_f32( + float32_t * pSrc, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex magnitude + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_q31( + q31_t * pSrc, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex magnitude + * @param[in] *pSrc points to the complex input vector + * @param[out] *pDst points to the real output vector + * @param[in] numSamples number of complex samples in the input vector + * @return none. + */ + + void arm_cmplx_mag_q15( + q15_t * pSrc, + q15_t * pDst, + uint32_t numSamples); + + /** + * @brief Q15 complex dot product + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] numSamples number of complex samples in each vector + * @param[out] *realResult real part of the result returned here + * @param[out] *imagResult imaginary part of the result returned here + * @return none. + */ + + void arm_cmplx_dot_prod_q15( + q15_t * pSrcA, + q15_t * pSrcB, + uint32_t numSamples, + q31_t * realResult, + q31_t * imagResult); + + /** + * @brief Q31 complex dot product + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] numSamples number of complex samples in each vector + * @param[out] *realResult real part of the result returned here + * @param[out] *imagResult imaginary part of the result returned here + * @return none. + */ + + void arm_cmplx_dot_prod_q31( + q31_t * pSrcA, + q31_t * pSrcB, + uint32_t numSamples, + q63_t * realResult, + q63_t * imagResult); + + /** + * @brief Floating-point complex dot product + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[in] numSamples number of complex samples in each vector + * @param[out] *realResult real part of the result returned here + * @param[out] *imagResult imaginary part of the result returned here + * @return none. + */ + + void arm_cmplx_dot_prod_f32( + float32_t * pSrcA, + float32_t * pSrcB, + uint32_t numSamples, + float32_t * realResult, + float32_t * imagResult); + + /** + * @brief Q15 complex-by-real multiplication + * @param[in] *pSrcCmplx points to the complex input vector + * @param[in] *pSrcReal points to the real input vector + * @param[out] *pCmplxDst points to the complex output vector + * @param[in] numSamples number of samples in each vector + * @return none. + */ + + void arm_cmplx_mult_real_q15( + q15_t * pSrcCmplx, + q15_t * pSrcReal, + q15_t * pCmplxDst, + uint32_t numSamples); + + /** + * @brief Q31 complex-by-real multiplication + * @param[in] *pSrcCmplx points to the complex input vector + * @param[in] *pSrcReal points to the real input vector + * @param[out] *pCmplxDst points to the complex output vector + * @param[in] numSamples number of samples in each vector + * @return none. + */ + + void arm_cmplx_mult_real_q31( + q31_t * pSrcCmplx, + q31_t * pSrcReal, + q31_t * pCmplxDst, + uint32_t numSamples); + + /** + * @brief Floating-point complex-by-real multiplication + * @param[in] *pSrcCmplx points to the complex input vector + * @param[in] *pSrcReal points to the real input vector + * @param[out] *pCmplxDst points to the complex output vector + * @param[in] numSamples number of samples in each vector + * @return none. + */ + + void arm_cmplx_mult_real_f32( + float32_t * pSrcCmplx, + float32_t * pSrcReal, + float32_t * pCmplxDst, + uint32_t numSamples); + + /** + * @brief Minimum value of a Q7 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *result is output pointer + * @param[in] index is the array index of the minimum value in the input buffer. + * @return none. + */ + + void arm_min_q7( + q7_t * pSrc, + uint32_t blockSize, + q7_t * result, + uint32_t * index); + + /** + * @brief Minimum value of a Q15 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output pointer + * @param[in] *pIndex is the array index of the minimum value in the input buffer. + * @return none. + */ + + void arm_min_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult, + uint32_t * pIndex); + + /** + * @brief Minimum value of a Q31 vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output pointer + * @param[out] *pIndex is the array index of the minimum value in the input buffer. + * @return none. + */ + void arm_min_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult, + uint32_t * pIndex); + + /** + * @brief Minimum value of a floating-point vector. + * @param[in] *pSrc is input pointer + * @param[in] blockSize is the number of samples to process + * @param[out] *pResult is output pointer + * @param[out] *pIndex is the array index of the minimum value in the input buffer. + * @return none. + */ + + void arm_min_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a Q7 vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_q7( + q7_t * pSrc, + uint32_t blockSize, + q7_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a Q15 vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_q15( + q15_t * pSrc, + uint32_t blockSize, + q15_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a Q31 vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_q31( + q31_t * pSrc, + uint32_t blockSize, + q31_t * pResult, + uint32_t * pIndex); + +/** + * @brief Maximum value of a floating-point vector. + * @param[in] *pSrc points to the input buffer + * @param[in] blockSize length of the input vector + * @param[out] *pResult maximum value returned here + * @param[out] *pIndex index of maximum value returned here + * @return none. + */ + + void arm_max_f32( + float32_t * pSrc, + uint32_t blockSize, + float32_t * pResult, + uint32_t * pIndex); + + /** + * @brief Q15 complex-by-complex multiplication + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_mult_cmplx_q15( + q15_t * pSrcA, + q15_t * pSrcB, + q15_t * pDst, + uint32_t numSamples); + + /** + * @brief Q31 complex-by-complex multiplication + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_mult_cmplx_q31( + q31_t * pSrcA, + q31_t * pSrcB, + q31_t * pDst, + uint32_t numSamples); + + /** + * @brief Floating-point complex-by-complex multiplication + * @param[in] *pSrcA points to the first input vector + * @param[in] *pSrcB points to the second input vector + * @param[out] *pDst points to the output vector + * @param[in] numSamples number of complex samples in each vector + * @return none. + */ + + void arm_cmplx_mult_cmplx_f32( + float32_t * pSrcA, + float32_t * pSrcB, + float32_t * pDst, + uint32_t numSamples); + + /** + * @brief Converts the elements of the floating-point vector to Q31 vector. + * @param[in] *pSrc points to the floating-point input vector + * @param[out] *pDst points to the Q31 output vector + * @param[in] blockSize length of the input vector + * @return none. + */ + void arm_float_to_q31( + float32_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the floating-point vector to Q15 vector. + * @param[in] *pSrc points to the floating-point input vector + * @param[out] *pDst points to the Q15 output vector + * @param[in] blockSize length of the input vector + * @return none + */ + void arm_float_to_q15( + float32_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the floating-point vector to Q7 vector. + * @param[in] *pSrc points to the floating-point input vector + * @param[out] *pDst points to the Q7 output vector + * @param[in] blockSize length of the input vector + * @return none + */ + void arm_float_to_q7( + float32_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + + /** + * @brief Converts the elements of the Q31 vector to Q15 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q31_to_q15( + q31_t * pSrc, + q15_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the Q31 vector to Q7 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q31_to_q7( + q31_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + /** + * @brief Converts the elements of the Q15 vector to floating-point vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q15_to_float( + q15_t * pSrc, + float32_t * pDst, + uint32_t blockSize); + + + /** + * @brief Converts the elements of the Q15 vector to Q31 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q15_to_q31( + q15_t * pSrc, + q31_t * pDst, + uint32_t blockSize); + + + /** + * @brief Converts the elements of the Q15 vector to Q7 vector. + * @param[in] *pSrc is input pointer + * @param[out] *pDst is output pointer + * @param[in] blockSize is the number of samples to process + * @return none. + */ + void arm_q15_to_q7( + q15_t * pSrc, + q7_t * pDst, + uint32_t blockSize); + + + /** + * @ingroup groupInterpolation + */ + + /** + * @defgroup BilinearInterpolate Bilinear Interpolation + * + * Bilinear interpolation is an extension of linear interpolation applied to a two dimensional grid. + * The underlying function f(x, y) is sampled on a regular grid and the interpolation process + * determines values between the grid points. + * Bilinear interpolation is equivalent to two step linear interpolation, first in the x-dimension and then in the y-dimension. + * Bilinear interpolation is often used in image processing to rescale images. + * The CMSIS DSP library provides bilinear interpolation functions for Q7, Q15, Q31, and floating-point data types. + * + * Algorithm + * \par + * The instance structure used by the bilinear interpolation functions describes a two dimensional data table. + * For floating-point, the instance structure is defined as: + *
+   *   typedef struct
+   *   {
+   *     uint16_t numRows;
+   *     uint16_t numCols;
+   *     float32_t *pData;
+   * } arm_bilinear_interp_instance_f32;
+   * 
+ * + * \par + * where numRows specifies the number of rows in the table; + * numCols specifies the number of columns in the table; + * and pData points to an array of size numRows*numCols values. + * The data table pTable is organized in row order and the supplied data values fall on integer indexes. + * That is, table element (x,y) is located at pTable[x + y*numCols] where x and y are integers. + * + * \par + * Let (x, y) specify the desired interpolation point. Then define: + *
+   *     XF = floor(x)
+   *     YF = floor(y)
+   * 
+ * \par + * The interpolated output point is computed as: + *
+   *  f(x, y) = f(XF, YF) * (1-(x-XF)) * (1-(y-YF))
+   *           + f(XF+1, YF) * (x-XF)*(1-(y-YF))
+   *           + f(XF, YF+1) * (1-(x-XF))*(y-YF)
+   *           + f(XF+1, YF+1) * (x-XF)*(y-YF)
+   * 
+ * Note that the coordinates (x, y) contain integer and fractional components. + * The integer components specify which portion of the table to use while the + * fractional components control the interpolation processor. + * + * \par + * if (x,y) are outside of the table boundary, Bilinear interpolation returns zero output. + */ + + /** + * @addtogroup BilinearInterpolate + * @{ + */ + + /** + * + * @brief Floating-point bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate. + * @param[in] Y interpolation coordinate. + * @return out interpolated value. + */ + + + static __INLINE float32_t arm_bilinear_interp_f32( + const arm_bilinear_interp_instance_f32 * S, + float32_t X, + float32_t Y) + { + float32_t out; + float32_t f00, f01, f10, f11; + float32_t *pData = S->pData; + int32_t xIndex, yIndex, index; + float32_t xdiff, ydiff; + float32_t b1, b2, b3, b4; + + xIndex = (int32_t) X; + yIndex = (int32_t) Y; + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(xIndex < 0 || xIndex > (S->numRows - 1) || yIndex < 0 + || yIndex > (S->numCols - 1)) + { + return (0); + } + + /* Calculation of index for two nearest points in X-direction */ + index = (xIndex - 1) + (yIndex - 1) * S->numCols; + + + /* Read two nearest points in X-direction */ + f00 = pData[index]; + f01 = pData[index + 1]; + + /* Calculation of index for two nearest points in Y-direction */ + index = (xIndex - 1) + (yIndex) * S->numCols; + + + /* Read two nearest points in Y-direction */ + f10 = pData[index]; + f11 = pData[index + 1]; + + /* Calculation of intermediate values */ + b1 = f00; + b2 = f01 - f00; + b3 = f10 - f00; + b4 = f00 - f01 - f10 + f11; + + /* Calculation of fractional part in X */ + xdiff = X - xIndex; + + /* Calculation of fractional part in Y */ + ydiff = Y - yIndex; + + /* Calculation of bi-linear interpolated output */ + out = b1 + b2 * xdiff + b3 * ydiff + b4 * xdiff * ydiff; + + /* return to application */ + return (out); + + } + + /** + * + * @brief Q31 bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate in 12.20 format. + * @param[in] Y interpolation coordinate in 12.20 format. + * @return out interpolated value. + */ + + static __INLINE q31_t arm_bilinear_interp_q31( + arm_bilinear_interp_instance_q31 * S, + q31_t X, + q31_t Y) + { + q31_t out; /* Temporary output */ + q31_t acc = 0; /* output */ + q31_t xfract, yfract; /* X, Y fractional parts */ + q31_t x1, x2, y1, y2; /* Nearest output values */ + int32_t rI, cI; /* Row and column indices */ + q31_t *pYData = S->pData; /* pointer to output table values */ + uint32_t nCols = S->numCols; /* num of rows */ + + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + rI = ((X & 0xFFF00000) >> 20u); + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + cI = ((Y & 0xFFF00000) >> 20u); + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) + { + return (0); + } + + /* 20 bits for the fractional part */ + /* shift left xfract by 11 to keep 1.31 format */ + xfract = (X & 0x000FFFFF) << 11u; + + /* Read two nearest output values from the index */ + x1 = pYData[(rI) + nCols * (cI)]; + x2 = pYData[(rI) + nCols * (cI) + 1u]; + + /* 20 bits for the fractional part */ + /* shift left yfract by 11 to keep 1.31 format */ + yfract = (Y & 0x000FFFFF) << 11u; + + /* Read two nearest output values from the index */ + y1 = pYData[(rI) + nCols * (cI + 1)]; + y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; + + /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 3.29(q29) format */ + out = ((q31_t) (((q63_t) x1 * (0x7FFFFFFF - xfract)) >> 32)); + acc = ((q31_t) (((q63_t) out * (0x7FFFFFFF - yfract)) >> 32)); + + /* x2 * (xfract) * (1-yfract) in 3.29(q29) and adding to acc */ + out = ((q31_t) ((q63_t) x2 * (0x7FFFFFFF - yfract) >> 32)); + acc += ((q31_t) ((q63_t) out * (xfract) >> 32)); + + /* y1 * (1 - xfract) * (yfract) in 3.29(q29) and adding to acc */ + out = ((q31_t) ((q63_t) y1 * (0x7FFFFFFF - xfract) >> 32)); + acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); + + /* y2 * (xfract) * (yfract) in 3.29(q29) and adding to acc */ + out = ((q31_t) ((q63_t) y2 * (xfract) >> 32)); + acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); + + /* Convert acc to 1.31(q31) format */ + return (acc << 2u); + + } + + /** + * @brief Q15 bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate in 12.20 format. + * @param[in] Y interpolation coordinate in 12.20 format. + * @return out interpolated value. + */ + + static __INLINE q15_t arm_bilinear_interp_q15( + arm_bilinear_interp_instance_q15 * S, + q31_t X, + q31_t Y) + { + q63_t acc = 0; /* output */ + q31_t out; /* Temporary output */ + q15_t x1, x2, y1, y2; /* Nearest output values */ + q31_t xfract, yfract; /* X, Y fractional parts */ + int32_t rI, cI; /* Row and column indices */ + q15_t *pYData = S->pData; /* pointer to output table values */ + uint32_t nCols = S->numCols; /* num of rows */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + rI = ((X & 0xFFF00000) >> 20); + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + cI = ((Y & 0xFFF00000) >> 20); + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) + { + return (0); + } + + /* 20 bits for the fractional part */ + /* xfract should be in 12.20 format */ + xfract = (X & 0x000FFFFF); + + /* Read two nearest output values from the index */ + x1 = pYData[(rI) + nCols * (cI)]; + x2 = pYData[(rI) + nCols * (cI) + 1u]; + + + /* 20 bits for the fractional part */ + /* yfract should be in 12.20 format */ + yfract = (Y & 0x000FFFFF); + + /* Read two nearest output values from the index */ + y1 = pYData[(rI) + nCols * (cI + 1)]; + y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; + + /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 13.51 format */ + + /* x1 is in 1.15(q15), xfract in 12.20 format and out is in 13.35 format */ + /* convert 13.35 to 13.31 by right shifting and out is in 1.31 */ + out = (q31_t) (((q63_t) x1 * (0xFFFFF - xfract)) >> 4u); + acc = ((q63_t) out * (0xFFFFF - yfract)); + + /* x2 * (xfract) * (1-yfract) in 1.51 and adding to acc */ + out = (q31_t) (((q63_t) x2 * (0xFFFFF - yfract)) >> 4u); + acc += ((q63_t) out * (xfract)); + + /* y1 * (1 - xfract) * (yfract) in 1.51 and adding to acc */ + out = (q31_t) (((q63_t) y1 * (0xFFFFF - xfract)) >> 4u); + acc += ((q63_t) out * (yfract)); + + /* y2 * (xfract) * (yfract) in 1.51 and adding to acc */ + out = (q31_t) (((q63_t) y2 * (xfract)) >> 4u); + acc += ((q63_t) out * (yfract)); + + /* acc is in 13.51 format and down shift acc by 36 times */ + /* Convert out to 1.15 format */ + return (acc >> 36); + + } + + /** + * @brief Q7 bilinear interpolation. + * @param[in,out] *S points to an instance of the interpolation structure. + * @param[in] X interpolation coordinate in 12.20 format. + * @param[in] Y interpolation coordinate in 12.20 format. + * @return out interpolated value. + */ + + static __INLINE q7_t arm_bilinear_interp_q7( + arm_bilinear_interp_instance_q7 * S, + q31_t X, + q31_t Y) + { + q63_t acc = 0; /* output */ + q31_t out; /* Temporary output */ + q31_t xfract, yfract; /* X, Y fractional parts */ + q7_t x1, x2, y1, y2; /* Nearest output values */ + int32_t rI, cI; /* Row and column indices */ + q7_t *pYData = S->pData; /* pointer to output table values */ + uint32_t nCols = S->numCols; /* num of rows */ + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + rI = ((X & 0xFFF00000) >> 20); + + /* Input is in 12.20 format */ + /* 12 bits for the table index */ + /* Index value calculation */ + cI = ((Y & 0xFFF00000) >> 20); + + /* Care taken for table outside boundary */ + /* Returns zero output when values are outside table boundary */ + if(rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) + { + return (0); + } + + /* 20 bits for the fractional part */ + /* xfract should be in 12.20 format */ + xfract = (X & 0x000FFFFF); + + /* Read two nearest output values from the index */ + x1 = pYData[(rI) + nCols * (cI)]; + x2 = pYData[(rI) + nCols * (cI) + 1u]; + + + /* 20 bits for the fractional part */ + /* yfract should be in 12.20 format */ + yfract = (Y & 0x000FFFFF); + + /* Read two nearest output values from the index */ + y1 = pYData[(rI) + nCols * (cI + 1)]; + y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; + + /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 16.47 format */ + out = ((x1 * (0xFFFFF - xfract))); + acc = (((q63_t) out * (0xFFFFF - yfract))); + + /* x2 * (xfract) * (1-yfract) in 2.22 and adding to acc */ + out = ((x2 * (0xFFFFF - yfract))); + acc += (((q63_t) out * (xfract))); + + /* y1 * (1 - xfract) * (yfract) in 2.22 and adding to acc */ + out = ((y1 * (0xFFFFF - xfract))); + acc += (((q63_t) out * (yfract))); + + /* y2 * (xfract) * (yfract) in 2.22 and adding to acc */ + out = ((y2 * (yfract))); + acc += (((q63_t) out * (xfract))); + + /* acc in 16.47 format and down shift by 40 to convert to 1.7 format */ + return (acc >> 40); + + } + + /** + * @} end of BilinearInterpolate group + */ + + +#if defined ( __CC_ARM ) //Keil +//SMMLAR + #define multAcc_32x32_keep32_R(a, x, y) \ + a = (q31_t) (((((q63_t) a) << 32) + ((q63_t) x * y) + 0x80000000LL ) >> 32) + +//SMMLSR + #define multSub_32x32_keep32_R(a, x, y) \ + a = (q31_t) (((((q63_t) a) << 32) - ((q63_t) x * y) + 0x80000000LL ) >> 32) + +//SMMULR + #define mult_32x32_keep32_R(a, x, y) \ + a = (q31_t) (((q63_t) x * y + 0x80000000LL ) >> 32) + +//Enter low optimization region - place directly above function definition + #define LOW_OPTIMIZATION_ENTER \ + _Pragma ("push") \ + _Pragma ("O1") + +//Exit low optimization region - place directly after end of function definition + #define LOW_OPTIMIZATION_EXIT \ + _Pragma ("pop") + +//Enter low optimization region - place directly above function definition + #define IAR_ONLY_LOW_OPTIMIZATION_ENTER + +//Exit low optimization region - place directly after end of function definition + #define IAR_ONLY_LOW_OPTIMIZATION_EXIT + +#elif defined(__ICCARM__) //IAR + //SMMLA + #define multAcc_32x32_keep32_R(a, x, y) \ + a += (q31_t) (((q63_t) x * y) >> 32) + + //SMMLS + #define multSub_32x32_keep32_R(a, x, y) \ + a -= (q31_t) (((q63_t) x * y) >> 32) + +//SMMUL + #define mult_32x32_keep32_R(a, x, y) \ + a = (q31_t) (((q63_t) x * y ) >> 32) + +//Enter low optimization region - place directly above function definition + #define LOW_OPTIMIZATION_ENTER \ + _Pragma ("optimize=low") + +//Exit low optimization region - place directly after end of function definition + #define LOW_OPTIMIZATION_EXIT + +//Enter low optimization region - place directly above function definition + #define IAR_ONLY_LOW_OPTIMIZATION_ENTER \ + _Pragma ("optimize=low") + +//Exit low optimization region - place directly after end of function definition + #define IAR_ONLY_LOW_OPTIMIZATION_EXIT + +#elif defined(__GNUC__) + //SMMLA + #define multAcc_32x32_keep32_R(a, x, y) \ + a += (q31_t) (((q63_t) x * y) >> 32) + + //SMMLS + #define multSub_32x32_keep32_R(a, x, y) \ + a -= (q31_t) (((q63_t) x * y) >> 32) + +//SMMUL + #define mult_32x32_keep32_R(a, x, y) \ + a = (q31_t) (((q63_t) x * y ) >> 32) + + #define LOW_OPTIMIZATION_ENTER __attribute__(( optimize("-O1") )) + + #define LOW_OPTIMIZATION_EXIT + + #define IAR_ONLY_LOW_OPTIMIZATION_ENTER + + #define IAR_ONLY_LOW_OPTIMIZATION_EXIT + +#endif + + + + + +#ifdef __cplusplus +} +#endif + + +#endif /* _ARM_MATH_H */ + + +/** + * + * End of file. + */ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0.h new file mode 100644 index 0000000000..ab31de0ee8 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0.h @@ -0,0 +1,682 @@ +/**************************************************************************//** + * @file core_cm0.h + * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM0_H_GENERIC +#define __CORE_CM0_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex_M0 + @{ + */ + +/* CMSIS CM0 definitions */ +#define __CM0_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM0_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ +#define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16) | \ + __CM0_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x00) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_CM0_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM0_H_DEPENDANT +#define __CORE_CM0_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM0_REV + #define __CM0_REV 0x0000 + #warning "__CM0_REV not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 2 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex_M0 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[31]; + __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[31]; + __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[31]; + __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[31]; + uint32_t RESERVED4[64]; + __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ +} NVIC_Type; + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + uint32_t RESERVED0; + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + uint32_t RESERVED1; + __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) + are only accessible over DAP and not via processor. Therefore + they are not covered by the Cortex-M0 header file. + @{ + */ +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M0 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ + + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/* Interrupt Priorities are WORD accessible only under ARMv6M */ +/* The following MACROS handle generation of the register offset and byte masks */ +#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) +#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) +#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } + else { + NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ + else { + return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + SCB_AIRCR_SYSRESETREQ_Msk); + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = ticks - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + + +#endif /* __CORE_CM0_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0plus.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0plus.h new file mode 100644 index 0000000000..5cea74e9af --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm0plus.h @@ -0,0 +1,793 @@ +/**************************************************************************//** + * @file core_cm0plus.h + * @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM0PLUS_H_GENERIC +#define __CORE_CM0PLUS_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex-M0+ + @{ + */ + +/* CMSIS CM0P definitions */ +#define __CM0PLUS_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM0PLUS_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ +#define __CM0PLUS_CMSIS_VERSION ((__CM0PLUS_CMSIS_VERSION_MAIN << 16) | \ + __CM0PLUS_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x00) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_CM0PLUS_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM0PLUS_H_DEPENDANT +#define __CORE_CM0PLUS_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM0PLUS_REV + #define __CM0PLUS_REV 0x0000 + #warning "__CM0PLUS_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __VTOR_PRESENT + #define __VTOR_PRESENT 0 + #warning "__VTOR_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 2 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex-M0+ */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[31]; + __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[31]; + __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[31]; + __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[31]; + uint32_t RESERVED4[64]; + __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ +} NVIC_Type; + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ +#if (__VTOR_PRESENT == 1) + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ +#else + uint32_t RESERVED0; +#endif + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + uint32_t RESERVED1; + __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +#if (__VTOR_PRESENT == 1) +/* SCB Interrupt Control State Register Definitions */ +#define SCB_VTOR_TBLOFF_Pos 8 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0xFFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#endif + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 8 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ +#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ +#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ +#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ +#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ +#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ +#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Cortex-M0+ Core Debug Registers (DCB registers, SHCSR, and DFSR) + are only accessible over DAP and not via processor. Therefore + they are not covered by the Cortex-M0 header file. + @{ + */ +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M0+ Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/* Interrupt Priorities are WORD accessible only under ARMv6M */ +/* The following MACROS handle generation of the register offset and byte masks */ +#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) +#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) +#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } + else { + NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ + else { + return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + SCB_AIRCR_SYSRESETREQ_Msk); + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = ticks - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + + +#endif /* __CORE_CM0PLUS_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm3.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm3.h new file mode 100644 index 0000000000..122c9aa4a8 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm3.h @@ -0,0 +1,1627 @@ +/**************************************************************************//** + * @file core_cm3.h + * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM3_H_GENERIC +#define __CORE_CM3_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex_M3 + @{ + */ + +/* CMSIS CM3 definitions */ +#define __CM3_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM3_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ +#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | \ + __CM3_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x03) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __TMS470__ ) + #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TMS470__ ) + #if defined __TI__VFP_SUPPORT____ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_CM3_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM3_H_DEPENDANT +#define __CORE_CM3_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM3_REV + #define __CM3_REV 0x0200 + #warning "__CM3_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex_M3 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#if (__CM3_REV < 0x0201) /* core r2p1 */ +#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ +#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ + +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#else +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ +#endif + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ +#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +#else + uint32_t RESERVED1[1]; +#endif +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) + \brief Type definitions for the Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ + uint32_t RESERVED3[29]; + __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ + __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ + __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ + uint32_t RESERVED4[43]; + __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ + __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ + uint32_t RESERVED5[6]; + __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ + __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ + __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ + __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ + __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ + __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ + __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ + __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ + __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ + __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ + __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ + __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ +#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/* ITM Integration Write Register Definitions */ +#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ +#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ + +/* ITM Integration Read Register Definitions */ +#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ +#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ + +/* ITM Integration Mode Control Register Definitions */ +#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ +#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ + +/* ITM Lock Status Register Definitions */ +#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ +#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ + +#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ +#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ + +#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ +#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) + \brief Type definitions for the Data Watchpoint and Trace (DWT) + @{ + */ + +/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ + __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ + __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ + __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ + __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ + __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ + __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ + __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ + __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ + __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ + __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ + uint32_t RESERVED0[1]; + __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ + __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ + __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ + uint32_t RESERVED1[1]; + __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ + __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ + __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ + uint32_t RESERVED2[1]; + __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ + __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ + __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ +} DWT_Type; + +/* DWT Control Register Definitions */ +#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ +#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ + +#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ +#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ + +#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ +#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ + +#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ +#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ + +#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ +#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ + +#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ +#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ + +#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ +#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ + +#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ +#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ + +#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ +#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ + +#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ +#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ + +#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ +#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ + +#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ +#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ + +#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ +#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ + +#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ +#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ + +#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ +#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ + +#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ +#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ + +#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ +#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ + +#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ +#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ + +/* DWT CPI Count Register Definitions */ +#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ +#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ + +/* DWT Exception Overhead Count Register Definitions */ +#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ +#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ + +/* DWT Sleep Count Register Definitions */ +#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ +#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ + +/* DWT LSU Count Register Definitions */ +#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ +#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ + +/* DWT Folded-instruction Count Register Definitions */ +#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ +#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ + +/* DWT Comparator Mask Register Definitions */ +#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ +#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ + +/* DWT Comparator Function Register Definitions */ +#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ +#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ + +#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ +#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ + +#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ +#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ + +#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ +#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ + +#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ +#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ + +#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ +#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ + +#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ +#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ + +#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ +#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ + +#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ +#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ + +/*@}*/ /* end of group CMSIS_DWT */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_TPI Trace Port Interface (TPI) + \brief Type definitions for the Trace Port Interface (TPI) + @{ + */ + +/** \brief Structure type to access the Trace Port Interface Register (TPI). + */ +typedef struct +{ + __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ + __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ + uint32_t RESERVED0[2]; + __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ + uint32_t RESERVED1[55]; + __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ + uint32_t RESERVED2[131]; + __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ + __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ + __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ + uint32_t RESERVED3[759]; + __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ + __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ + __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ + uint32_t RESERVED4[1]; + __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ + __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ + __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ + uint32_t RESERVED5[39]; + __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ + __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ + uint32_t RESERVED7[8]; + __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ + __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ +} TPI_Type; + +/* TPI Asynchronous Clock Prescaler Register Definitions */ +#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ +#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ + +/* TPI Selected Pin Protocol Register Definitions */ +#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ +#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ + +/* TPI Formatter and Flush Status Register Definitions */ +#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ +#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ + +#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ +#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ + +#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ +#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ + +#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ +#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ + +/* TPI Formatter and Flush Control Register Definitions */ +#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ +#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ + +#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ +#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ + +/* TPI TRIGGER Register Definitions */ +#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ +#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ + +/* TPI Integration ETM Data Register Definitions (FIFO0) */ +#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ +#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ + +#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ +#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ + +#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ +#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ + +#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ +#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ + +#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ +#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ + +#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ +#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ + +#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ +#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ + +/* TPI ITATBCTR2 Register Definitions */ +#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ +#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ + +/* TPI Integration ITM Data Register Definitions (FIFO1) */ +#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ +#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ + +#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ +#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ + +#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ +#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ + +#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ +#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ + +#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ +#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ + +#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ +#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ + +#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ +#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ + +/* TPI ITATBCTR0 Register Definitions */ +#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ +#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ + +/* TPI Integration Mode Control Register Definitions */ +#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ +#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ + +/* TPI DEVID Register Definitions */ +#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ +#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ + +#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ +#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ + +#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ +#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ + +#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ +#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ + +#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ +#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ + +#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ +#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ + +/* TPI DEVTYPE Register Definitions */ +#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ +#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ + +#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ +#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ + +/*@}*/ /* end of group CMSIS_TPI */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ +#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ +#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ +#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ +#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ +#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ +#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Type definitions for the Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ +#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ +#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/** \brief Set Priority Grouping + + The function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field. + */ +__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + The function reads the priority grouping field from the NVIC Interrupt Controller. + + \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). + */ +__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + The function reads the active register in NVIC and returns the active bit. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not active. + \return 1 Interrupt status is active. + */ +__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + The function encodes the priority for an interrupt with the given priority group, + preemptive priority value, and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. + + \param [in] PriorityGroup Used priority group. + \param [in] PreemptPriority Preemptive priority value (starting from 0). + \param [in] SubPriority Subpriority value (starting from 0). + \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). + */ +__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + The function decodes an interrupt priority value with a given priority group to + preemptive priority value and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). + \param [in] PriorityGroup Used priority group. + \param [out] pPreemptPriority Preemptive priority value (starting from 0). + \param [out] pSubPriority Subpriority value (starting from 0). + */ +__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = ticks - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions ITM Functions + \brief Functions that access the ITM debug interface. + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ + + +/** \brief ITM Send Character + + The function transmits a character via the ITM channel 0, and + \li Just returns when no debugger is connected that has booked the output. + \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. + + \param [in] ch Character to transmit. + + \returns Character to transmit. + */ +__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + The function inputs a character via the external variable \ref ITM_RxBuffer. + + \return Received character. + \return -1 No character pending. + */ +__STATIC_INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. + + \return 0 No character available. + \return 1 Character available. + */ +__STATIC_INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM3_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4.h new file mode 100644 index 0000000000..d65016c714 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4.h @@ -0,0 +1,1772 @@ +/**************************************************************************//** + * @file core_cm4.h + * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM4_H_GENERIC +#define __CORE_CM4_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup Cortex_M4 + @{ + */ + +/* CMSIS CM4 definitions */ +#define __CM4_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __CM4_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ +#define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN << 16) | \ + __CM4_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_M (0x04) /*!< Cortex-M Core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __TMS470__ ) + #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. +*/ +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __TMS470__ ) + #if defined __TI_VFP_SUPPORT__ + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #if (__FPU_PRESENT == 1) + #define __FPU_USED 1 + #else + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #define __FPU_USED 0 + #endif + #else + #define __FPU_USED 0 + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ +#include /* Compiler specific SIMD Intrinsics */ + +#endif /* __CORE_CM4_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_CM4_H_DEPENDANT +#define __CORE_CM4_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __CM4_REV + #define __CM4_REV 0x0000 + #warning "__CM4_REV not defined in device header file; using default!" + #endif + + #ifndef __FPU_PRESENT + #define __FPU_PRESENT 0 + #warning "__FPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group Cortex_M4 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + - Core FPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/* Auxiliary Control Register Definitions */ +#define SCnSCB_ACTLR_DISOOFP_Pos 9 /*!< ACTLR: DISOOFP Position */ +#define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ + +#define SCnSCB_ACTLR_DISFPCA_Pos 8 /*!< ACTLR: DISFPCA Position */ +#define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ + +#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ +#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ + +#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ +#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ + +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) + \brief Type definitions for the Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ + uint32_t RESERVED3[29]; + __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ + __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ + __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ + uint32_t RESERVED4[43]; + __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ + __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ + uint32_t RESERVED5[6]; + __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ + __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ + __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ + __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ + __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ + __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ + __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ + __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ + __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ + __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ + __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ + __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ +#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/* ITM Integration Write Register Definitions */ +#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ +#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ + +/* ITM Integration Read Register Definitions */ +#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ +#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ + +/* ITM Integration Mode Control Register Definitions */ +#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ +#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ + +/* ITM Lock Status Register Definitions */ +#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ +#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ + +#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ +#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ + +#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ +#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) + \brief Type definitions for the Data Watchpoint and Trace (DWT) + @{ + */ + +/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ + __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ + __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ + __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ + __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ + __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ + __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ + __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ + __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ + __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ + __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ + uint32_t RESERVED0[1]; + __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ + __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ + __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ + uint32_t RESERVED1[1]; + __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ + __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ + __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ + uint32_t RESERVED2[1]; + __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ + __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ + __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ +} DWT_Type; + +/* DWT Control Register Definitions */ +#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ +#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ + +#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ +#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ + +#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ +#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ + +#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ +#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ + +#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ +#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ + +#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ +#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ + +#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ +#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ + +#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ +#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ + +#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ +#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ + +#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ +#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ + +#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ +#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ + +#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ +#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ + +#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ +#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ + +#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ +#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ + +#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ +#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ + +#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ +#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ + +#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ +#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ + +#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ +#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ + +/* DWT CPI Count Register Definitions */ +#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ +#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ + +/* DWT Exception Overhead Count Register Definitions */ +#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ +#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ + +/* DWT Sleep Count Register Definitions */ +#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ +#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ + +/* DWT LSU Count Register Definitions */ +#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ +#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ + +/* DWT Folded-instruction Count Register Definitions */ +#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ +#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ + +/* DWT Comparator Mask Register Definitions */ +#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ +#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ + +/* DWT Comparator Function Register Definitions */ +#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ +#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ + +#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ +#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ + +#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ +#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ + +#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ +#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ + +#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ +#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ + +#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ +#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ + +#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ +#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ + +#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ +#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ + +#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ +#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ + +/*@}*/ /* end of group CMSIS_DWT */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_TPI Trace Port Interface (TPI) + \brief Type definitions for the Trace Port Interface (TPI) + @{ + */ + +/** \brief Structure type to access the Trace Port Interface Register (TPI). + */ +typedef struct +{ + __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ + __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ + uint32_t RESERVED0[2]; + __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ + uint32_t RESERVED1[55]; + __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ + uint32_t RESERVED2[131]; + __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ + __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ + __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ + uint32_t RESERVED3[759]; + __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ + __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ + __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ + uint32_t RESERVED4[1]; + __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ + __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ + __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ + uint32_t RESERVED5[39]; + __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ + __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ + uint32_t RESERVED7[8]; + __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ + __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ +} TPI_Type; + +/* TPI Asynchronous Clock Prescaler Register Definitions */ +#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ +#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ + +/* TPI Selected Pin Protocol Register Definitions */ +#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ +#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ + +/* TPI Formatter and Flush Status Register Definitions */ +#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ +#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ + +#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ +#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ + +#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ +#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ + +#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ +#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ + +/* TPI Formatter and Flush Control Register Definitions */ +#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ +#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ + +#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ +#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ + +/* TPI TRIGGER Register Definitions */ +#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ +#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ + +/* TPI Integration ETM Data Register Definitions (FIFO0) */ +#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ +#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ + +#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ +#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ + +#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ +#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ + +#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ +#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ + +#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ +#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ + +#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ +#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ + +#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ +#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ + +/* TPI ITATBCTR2 Register Definitions */ +#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ +#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ + +/* TPI Integration ITM Data Register Definitions (FIFO1) */ +#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ +#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ + +#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ +#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ + +#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ +#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ + +#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ +#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ + +#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ +#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ + +#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ +#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ + +#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ +#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ + +/* TPI ITATBCTR0 Register Definitions */ +#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ +#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ + +/* TPI Integration Mode Control Register Definitions */ +#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ +#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ + +/* TPI DEVID Register Definitions */ +#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ +#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ + +#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ +#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ + +#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ +#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ + +#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ +#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ + +#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ +#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ + +#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ +#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ + +/* TPI DEVTYPE Register Definitions */ +#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ +#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ + +#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ +#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ + +/*@}*/ /* end of group CMSIS_TPI */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ +#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ +#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ +#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ +#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ +#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ +#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +#if (__FPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_FPU Floating Point Unit (FPU) + \brief Type definitions for the Floating Point Unit (FPU) + @{ + */ + +/** \brief Structure type to access the Floating Point Unit (FPU). + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __IO uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ + __IO uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ + __IO uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ + __I uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ + __I uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ +} FPU_Type; + +/* Floating-Point Context Control Register */ +#define FPU_FPCCR_ASPEN_Pos 31 /*!< FPCCR: ASPEN bit Position */ +#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ + +#define FPU_FPCCR_LSPEN_Pos 30 /*!< FPCCR: LSPEN Position */ +#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ + +#define FPU_FPCCR_MONRDY_Pos 8 /*!< FPCCR: MONRDY Position */ +#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ + +#define FPU_FPCCR_BFRDY_Pos 6 /*!< FPCCR: BFRDY Position */ +#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ + +#define FPU_FPCCR_MMRDY_Pos 5 /*!< FPCCR: MMRDY Position */ +#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ + +#define FPU_FPCCR_HFRDY_Pos 4 /*!< FPCCR: HFRDY Position */ +#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ + +#define FPU_FPCCR_THREAD_Pos 3 /*!< FPCCR: processor mode bit Position */ +#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ + +#define FPU_FPCCR_USER_Pos 1 /*!< FPCCR: privilege level bit Position */ +#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ + +#define FPU_FPCCR_LSPACT_Pos 0 /*!< FPCCR: Lazy state preservation active bit Position */ +#define FPU_FPCCR_LSPACT_Msk (1UL << FPU_FPCCR_LSPACT_Pos) /*!< FPCCR: Lazy state preservation active bit Mask */ + +/* Floating-Point Context Address Register */ +#define FPU_FPCAR_ADDRESS_Pos 3 /*!< FPCAR: ADDRESS bit Position */ +#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ + +/* Floating-Point Default Status Control Register */ +#define FPU_FPDSCR_AHP_Pos 26 /*!< FPDSCR: AHP bit Position */ +#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ + +#define FPU_FPDSCR_DN_Pos 25 /*!< FPDSCR: DN bit Position */ +#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ + +#define FPU_FPDSCR_FZ_Pos 24 /*!< FPDSCR: FZ bit Position */ +#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ + +#define FPU_FPDSCR_RMode_Pos 22 /*!< FPDSCR: RMode bit Position */ +#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ + +/* Media and FP Feature Register 0 */ +#define FPU_MVFR0_FP_rounding_modes_Pos 28 /*!< MVFR0: FP rounding modes bits Position */ +#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ + +#define FPU_MVFR0_Short_vectors_Pos 24 /*!< MVFR0: Short vectors bits Position */ +#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ + +#define FPU_MVFR0_Square_root_Pos 20 /*!< MVFR0: Square root bits Position */ +#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ + +#define FPU_MVFR0_Divide_Pos 16 /*!< MVFR0: Divide bits Position */ +#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ + +#define FPU_MVFR0_FP_excep_trapping_Pos 12 /*!< MVFR0: FP exception trapping bits Position */ +#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ + +#define FPU_MVFR0_Double_precision_Pos 8 /*!< MVFR0: Double-precision bits Position */ +#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ + +#define FPU_MVFR0_Single_precision_Pos 4 /*!< MVFR0: Single-precision bits Position */ +#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ + +#define FPU_MVFR0_A_SIMD_registers_Pos 0 /*!< MVFR0: A_SIMD registers bits Position */ +#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL << FPU_MVFR0_A_SIMD_registers_Pos) /*!< MVFR0: A_SIMD registers bits Mask */ + +/* Media and FP Feature Register 1 */ +#define FPU_MVFR1_FP_fused_MAC_Pos 28 /*!< MVFR1: FP fused MAC bits Position */ +#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ + +#define FPU_MVFR1_FP_HPFP_Pos 24 /*!< MVFR1: FP HPFP bits Position */ +#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ + +#define FPU_MVFR1_D_NaN_mode_Pos 4 /*!< MVFR1: D_NaN mode bits Position */ +#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ + +#define FPU_MVFR1_FtZ_mode_Pos 0 /*!< MVFR1: FtZ mode bits Position */ +#define FPU_MVFR1_FtZ_mode_Msk (0xFUL << FPU_MVFR1_FtZ_mode_Pos) /*!< MVFR1: FtZ mode bits Mask */ + +/*@} end of group CMSIS_FPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Type definitions for the Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M4 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ +#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ +#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +#if (__FPU_PRESENT == 1) + #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ + #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/** \brief Set Priority Grouping + + The function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field. + */ +__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + The function reads the priority grouping field from the NVIC Interrupt Controller. + + \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). + */ +__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ +/* NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); enable interrupt */ + NVIC->ISER[(uint32_t)((int32_t)IRQn) >> 5] = (uint32_t)(1 << ((uint32_t)((int32_t)IRQn) & (uint32_t)0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + The function reads the active register in NVIC and returns the active bit. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not active. + \return 1 Interrupt status is active. + */ +__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + The function encodes the priority for an interrupt with the given priority group, + preemptive priority value, and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. + + \param [in] PriorityGroup Used priority group. + \param [in] PreemptPriority Preemptive priority value (starting from 0). + \param [in] SubPriority Subpriority value (starting from 0). + \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). + */ +__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + The function decodes an interrupt priority value with a given priority group to + preemptive priority value and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). + \param [in] PriorityGroup Used priority group. + \param [out] pPreemptPriority Preemptive priority value (starting from 0). + \param [out] pSubPriority Subpriority value (starting from 0). + */ +__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = ticks - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions ITM Functions + \brief Functions that access the ITM debug interface. + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ + + +/** \brief ITM Send Character + + The function transmits a character via the ITM channel 0, and + \li Just returns when no debugger is connected that has booked the output. + \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. + + \param [in] ch Character to transmit. + + \returns Character to transmit. + */ +__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + The function inputs a character via the external variable \ref ITM_RxBuffer. + + \return Received character. + \return -1 No character pending. + */ +__STATIC_INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. + + \return 0 No character available. + \return 1 Character available. + */ +__STATIC_INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_CM4_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4_simd.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4_simd.h new file mode 100644 index 0000000000..83db95b5f1 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cm4_simd.h @@ -0,0 +1,673 @@ +/**************************************************************************//** + * @file core_cm4_simd.h + * @brief CMSIS Cortex-M4 SIMD Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_CM4_SIMD_H +#define __CORE_CM4_SIMD_H + + +/******************************************************************************* + * Hardware Abstraction Layer + ******************************************************************************/ + + +/* ################### Compiler specific Intrinsics ########################### */ +/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics + Access to dedicated SIMD instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +#define __SADD8 __sadd8 +#define __QADD8 __qadd8 +#define __SHADD8 __shadd8 +#define __UADD8 __uadd8 +#define __UQADD8 __uqadd8 +#define __UHADD8 __uhadd8 +#define __SSUB8 __ssub8 +#define __QSUB8 __qsub8 +#define __SHSUB8 __shsub8 +#define __USUB8 __usub8 +#define __UQSUB8 __uqsub8 +#define __UHSUB8 __uhsub8 +#define __SADD16 __sadd16 +#define __QADD16 __qadd16 +#define __SHADD16 __shadd16 +#define __UADD16 __uadd16 +#define __UQADD16 __uqadd16 +#define __UHADD16 __uhadd16 +#define __SSUB16 __ssub16 +#define __QSUB16 __qsub16 +#define __SHSUB16 __shsub16 +#define __USUB16 __usub16 +#define __UQSUB16 __uqsub16 +#define __UHSUB16 __uhsub16 +#define __SASX __sasx +#define __QASX __qasx +#define __SHASX __shasx +#define __UASX __uasx +#define __UQASX __uqasx +#define __UHASX __uhasx +#define __SSAX __ssax +#define __QSAX __qsax +#define __SHSAX __shsax +#define __USAX __usax +#define __UQSAX __uqsax +#define __UHSAX __uhsax +#define __USAD8 __usad8 +#define __USADA8 __usada8 +#define __SSAT16 __ssat16 +#define __USAT16 __usat16 +#define __UXTB16 __uxtb16 +#define __UXTAB16 __uxtab16 +#define __SXTB16 __sxtb16 +#define __SXTAB16 __sxtab16 +#define __SMUAD __smuad +#define __SMUADX __smuadx +#define __SMLAD __smlad +#define __SMLADX __smladx +#define __SMLALD __smlald +#define __SMLALDX __smlaldx +#define __SMUSD __smusd +#define __SMUSDX __smusdx +#define __SMLSD __smlsd +#define __SMLSDX __smlsdx +#define __SMLSLD __smlsld +#define __SMLSLDX __smlsldx +#define __SEL __sel +#define __QADD __qadd +#define __QSUB __qsub + +#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ + ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) + +#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ + ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) + +#define __SMMLA(ARG1,ARG2,ARG3) ( (int32_t)((((int64_t)(ARG1) * (ARG2)) + \ + ((int64_t)(ARG3) << 32) ) >> 32)) + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +#include + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +#include + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +#define __SSAT16(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + +#define __USAT16(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UXTB16(uint32_t op1) +{ + uint32_t result; + + __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SXTB16(uint32_t op1) +{ + uint32_t result; + + __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +#define __SMLALD(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +#define __SMLALDX(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) +{ + uint32_t result; + + __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +#define __SMLSLD(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +#define __SMLSLDX(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ + __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ + (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ + }) + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SEL (uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSUB(uint32_t op1, uint32_t op2) +{ + uint32_t result; + + __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); + return(result); +} + +#define __PKHBT(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ + __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ + __RES; \ + }) + +#define __PKHTB(ARG1,ARG2,ARG3) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ + if (ARG3 == 0) \ + __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ + else \ + __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ + __RES; \ + }) + +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) +{ + int32_t result; + + __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); + return(result); +} + +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + + +/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ +/* not yet supported */ +/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ + + +#endif + +/*@} end of group CMSIS_SIMD_intrinsics */ + + +#endif /* __CORE_CM4_SIMD_H */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmFunc.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmFunc.h new file mode 100644 index 0000000000..0a18fafc30 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmFunc.h @@ -0,0 +1,636 @@ +/**************************************************************************//** + * @file core_cmFunc.h + * @brief CMSIS Cortex-M Core Function Access Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#ifndef __CORE_CMFUNC_H +#define __CORE_CMFUNC_H + + +/* ########################### Core Function Access ########################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions + @{ + */ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + +/* intrinsic void __enable_irq(); */ +/* intrinsic void __disable_irq(); */ + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__STATIC_INLINE uint32_t __get_CONTROL(void) +{ + register uint32_t __regControl __ASM("control"); + return(__regControl); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + register uint32_t __regControl __ASM("control"); + __regControl = control; +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__STATIC_INLINE uint32_t __get_IPSR(void) +{ + register uint32_t __regIPSR __ASM("ipsr"); + return(__regIPSR); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__STATIC_INLINE uint32_t __get_APSR(void) +{ + register uint32_t __regAPSR __ASM("apsr"); + return(__regAPSR); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__STATIC_INLINE uint32_t __get_xPSR(void) +{ + register uint32_t __regXPSR __ASM("xpsr"); + return(__regXPSR); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + return(__regProcessStackPointer); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + register uint32_t __regProcessStackPointer __ASM("psp"); + __regProcessStackPointer = topOfProcStack; +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + return(__regMainStackPointer); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + register uint32_t __regMainStackPointer __ASM("msp"); + __regMainStackPointer = topOfMainStack; +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + register uint32_t __regPriMask __ASM("primask"); + return(__regPriMask); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + register uint32_t __regPriMask __ASM("primask"); + __regPriMask = (priMask); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __enable_fault_irq __enable_fiq + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +#define __disable_fault_irq __disable_fiq + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + register uint32_t __regBasePri __ASM("basepri"); + return(__regBasePri); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__STATIC_INLINE void __set_BASEPRI(uint32_t basePri) +{ + register uint32_t __regBasePri __ASM("basepri"); + __regBasePri = (basePri & 0xff); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + return(__regFaultMask); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + register uint32_t __regFaultMask __ASM("faultmask"); + __regFaultMask = (faultMask & (uint32_t)1); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + return(__regfpscr); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + register uint32_t __regfpscr __ASM("fpscr"); + __regfpscr = (fpscr); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/** \brief Enable IRQ Interrupts + + This function enables IRQ interrupts by clearing the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) +{ + __ASM volatile ("cpsie i" : : : "memory"); +} + + +/** \brief Disable IRQ Interrupts + + This function disables IRQ interrupts by setting the I-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) +{ + __ASM volatile ("cpsid i" : : : "memory"); +} + + +/** \brief Get Control Register + + This function returns the content of the Control Register. + + \return Control Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, control" : "=r" (result) ); + return(result); +} + + +/** \brief Set Control Register + + This function writes the given value to the Control Register. + + \param [in] control Control Register value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) +{ + __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); +} + + +/** \brief Get IPSR Register + + This function returns the content of the IPSR Register. + + \return IPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get APSR Register + + This function returns the content of the APSR Register. + + \return APSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, apsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get xPSR Register + + This function returns the content of the xPSR Register. + + \return xPSR Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); + return(result); +} + + +/** \brief Get Process Stack Pointer + + This function returns the current value of the Process Stack Pointer (PSP). + + \return PSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Process Stack Pointer + + This function assigns the given value to the Process Stack Pointer (PSP). + + \param [in] topOfProcStack Process Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) +{ + __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp"); +} + + +/** \brief Get Main Stack Pointer + + This function returns the current value of the Main Stack Pointer (MSP). + + \return MSP Register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) +{ + register uint32_t result; + + __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); + return(result); +} + + +/** \brief Set Main Stack Pointer + + This function assigns the given value to the Main Stack Pointer (MSP). + + \param [in] topOfMainStack Main Stack Pointer value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +{ + __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); +} + + +/** \brief Get Priority Mask + + This function returns the current state of the priority mask bit from the Priority Mask Register. + + \return Priority Mask value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, primask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Priority Mask + + This function assigns the given value to the Priority Mask Register. + + \param [in] priMask Priority Mask + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) +{ + __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); +} + + +#if (__CORTEX_M >= 0x03) + +/** \brief Enable FIQ + + This function enables FIQ interrupts by clearing the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) +{ + __ASM volatile ("cpsie f" : : : "memory"); +} + + +/** \brief Disable FIQ + + This function disables FIQ interrupts by setting the F-bit in the CPSR. + Can only be executed in Privileged modes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) +{ + __ASM volatile ("cpsid f" : : : "memory"); +} + + +/** \brief Get Base Priority + + This function returns the current value of the Base Priority register. + + \return Base Priority register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); + return(result); +} + + +/** \brief Set Base Priority + + This function assigns the given value to the Base Priority register. + + \param [in] basePri Base Priority value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) +{ + __ASM volatile ("MSR basepri, %0" : : "r" (value) : "memory"); +} + + +/** \brief Get Fault Mask + + This function returns the current value of the Fault Mask register. + + \return Fault Mask register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) +{ + uint32_t result; + + __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); + return(result); +} + + +/** \brief Set Fault Mask + + This function assigns the given value to the Fault Mask register. + + \param [in] faultMask Fault Mask value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) +{ + __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + +#if (__CORTEX_M == 0x04) + +/** \brief Get FPSCR + + This function returns the current value of the Floating Point Status/Control register. + + \return Floating Point Status/Control register value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + uint32_t result; + + /* Empty asm statement works as a scheduling barrier */ + __ASM volatile (""); + __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); + __ASM volatile (""); + return(result); +#else + return(0); +#endif +} + + +/** \brief Set FPSCR + + This function assigns the given value to the Floating Point Status/Control register. + + \param [in] fpscr Floating Point Status/Control value to set + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) +{ +#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) + /* Empty asm statement works as a scheduling barrier */ + __ASM volatile (""); + __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc"); + __ASM volatile (""); +#endif +} + +#endif /* (__CORTEX_M == 0x04) */ + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all instrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@} end of CMSIS_Core_RegAccFunctions */ + + +#endif /* __CORE_CMFUNC_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmInstr.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmInstr.h new file mode 100644 index 0000000000..d213f0eed7 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_cmInstr.h @@ -0,0 +1,688 @@ +/**************************************************************************//** + * @file core_cmInstr.h + * @brief CMSIS Cortex-M Core Instruction Access Header File + * @version V3.20 + * @date 05. March 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#ifndef __CORE_CMINSTR_H +#define __CORE_CMINSTR_H + + +/* ########################## Core Instruction Access ######################### */ +/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface + Access to dedicated instructions + @{ +*/ + +#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ +/* ARM armcc specific functions */ + +#if (__ARMCC_VERSION < 400677) + #error "Please use ARM Compiler Toolchain V4.0.677 or later!" +#endif + + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +#define __NOP __nop + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +#define __WFI __wfi + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +#define __WFE __wfe + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +#define __SEV __sev + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +#define __ISB() __isb(0xF) + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +#define __DSB() __dsb(0xF) + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +#define __DMB() __dmb(0xF) + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __REV __rev + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +#ifndef __NO_EMBEDDED_ASM +__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) +{ + rev16 r0, r0 + bx lr +} +#endif + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +#ifndef __NO_EMBEDDED_ASM +__attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) +{ + revsh r0, r0 + bx lr +} +#endif + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +#define __ROR __ror + + +/** \brief Breakpoint + + This function causes the processor to enter Debug state. + Debug tools can use this to investigate system state when the instruction at a particular address is reached. + + \param [in] value is ignored by the processor. + If required, a debugger can use it to store additional information about the breakpoint. + */ +#define __BKPT(value) __breakpoint(value) + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +#define __RBIT __rbit + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXB(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXH(value, ptr) __strex(value, ptr) + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +#define __STREXW(value, ptr) __strex(value, ptr) + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +#define __CLREX __clrex + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT __ssat + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT __usat + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +#define __CLZ __clz + +#endif /* (__CORTEX_M >= 0x03) */ + + + +#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ +/* IAR iccarm specific functions */ + +#include + + +#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ +/* TI CCS specific functions */ + +#include + + +#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ +/* GNU gcc specific functions */ + +/* Define macros for porting to both thumb1 and thumb2. + * For thumb1, use low register (r0-r7), specified by constrant "l" + * Otherwise, use general registers, specified by constrant "r" */ +#if defined (__thumb__) && !defined (__thumb2__) +#define __CMSIS_GCC_OUT_REG(r) "=l" (r) +#define __CMSIS_GCC_USE_REG(r) "l" (r) +#else +#define __CMSIS_GCC_OUT_REG(r) "=r" (r) +#define __CMSIS_GCC_USE_REG(r) "r" (r) +#endif + +/** \brief No Operation + + No Operation does nothing. This instruction can be used for code alignment purposes. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void) +{ + __ASM volatile ("nop"); +} + + +/** \brief Wait For Interrupt + + Wait For Interrupt is a hint instruction that suspends execution + until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void) +{ + __ASM volatile ("wfi"); +} + + +/** \brief Wait For Event + + Wait For Event is a hint instruction that permits the processor to enter + a low-power state until one of a number of events occurs. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void) +{ + __ASM volatile ("wfe"); +} + + +/** \brief Send Event + + Send Event is a hint instruction. It causes an event to be signaled to the CPU. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void) +{ + __ASM volatile ("sev"); +} + + +/** \brief Instruction Synchronization Barrier + + Instruction Synchronization Barrier flushes the pipeline in the processor, + so that all instructions following the ISB are fetched from cache or + memory, after the instruction has been completed. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void) +{ + __ASM volatile ("isb"); +} + + +/** \brief Data Synchronization Barrier + + This function acts as a special kind of Data Memory Barrier. + It completes when all explicit memory accesses before this instruction complete. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void) +{ + __ASM volatile ("dsb"); +} + + +/** \brief Data Memory Barrier + + This function ensures the apparent order of the explicit memory operations before + and after the instruction, without ensuring their completion. + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void) +{ + __ASM volatile ("dmb"); +} + + +/** \brief Reverse byte order (32 bit) + + This function reverses the byte order in integer value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) +{ +#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) + return __builtin_bswap32(value); +#else + uint32_t result; + + __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); + return(result); +#endif +} + + +/** \brief Reverse byte order (16 bit) + + This function reverses the byte order in two unsigned short values. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); + return(result); +} + + +/** \brief Reverse byte order in signed short value + + This function reverses the byte order in a signed short value with sign extension to integer. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value) +{ +#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) + return (short)__builtin_bswap16(value); +#else + uint32_t result; + + __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); + return(result); +#endif +} + + +/** \brief Rotate Right in unsigned value (32 bit) + + This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. + + \param [in] value Value to rotate + \param [in] value Number of Bits to rotate + \return Rotated value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) +{ + return (op1 >> op2) | (op1 << (32 - op2)); +} + + +/** \brief Breakpoint + + This function causes the processor to enter Debug state. + Debug tools can use this to investigate system state when the instruction at a particular address is reached. + + \param [in] value is ignored by the processor. + If required, a debugger can use it to store additional information about the breakpoint. + */ +#define __BKPT(value) __ASM volatile ("bkpt "#value) + + +#if (__CORTEX_M >= 0x03) + +/** \brief Reverse bit order of value + + This function reverses the bit order of the given value. + + \param [in] value Value to reverse + \return Reversed value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + + +/** \brief LDR Exclusive (8 bit) + + This function performs a exclusive LDR command for 8 bit value. + + \param [in] ptr Pointer to data + \return value of type uint8_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) +{ + uint32_t result; + +#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) + __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); +#else + /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not + accepted by assembler. So has to use following less efficient pattern. + */ + __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); +#endif + return(result); +} + + +/** \brief LDR Exclusive (16 bit) + + This function performs a exclusive LDR command for 16 bit values. + + \param [in] ptr Pointer to data + \return value of type uint16_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) +{ + uint32_t result; + +#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) + __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); +#else + /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not + accepted by assembler. So has to use following less efficient pattern. + */ + __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); +#endif + return(result); +} + + +/** \brief LDR Exclusive (32 bit) + + This function performs a exclusive LDR command for 32 bit values. + + \param [in] ptr Pointer to data + \return value of type uint32_t at (*ptr) + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); + return(result); +} + + +/** \brief STR Exclusive (8 bit) + + This function performs a exclusive STR command for 8 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (16 bit) + + This function performs a exclusive STR command for 16 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) +{ + uint32_t result; + + __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); + return(result); +} + + +/** \brief STR Exclusive (32 bit) + + This function performs a exclusive STR command for 32 bit values. + + \param [in] value Value to store + \param [in] ptr Pointer to location + \return 0 Function succeeded + \return 1 Function failed + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) +{ + uint32_t result; + + __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); + return(result); +} + + +/** \brief Remove the exclusive lock + + This function removes the exclusive lock which is created by LDREX. + + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void) +{ + __ASM volatile ("clrex" ::: "memory"); +} + + +/** \brief Signed Saturate + + This function saturates a signed value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (1..32) + \return Saturated value + */ +#define __SSAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Unsigned Saturate + + This function saturates an unsigned value. + + \param [in] value Value to be saturated + \param [in] sat Bit position to saturate to (0..31) + \return Saturated value + */ +#define __USAT(ARG1,ARG2) \ +({ \ + uint32_t __RES, __ARG1 = (ARG1); \ + __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ + __RES; \ + }) + + +/** \brief Count leading zeros + + This function counts the number of leading zeros of a data value. + + \param [in] value Value to count the leading zeros + \return number of leading zeros in value + */ +__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value) +{ + uint32_t result; + + __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); + return(result); +} + +#endif /* (__CORTEX_M >= 0x03) */ + + + + +#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ +/* TASKING carm specific functions */ + +/* + * The CMSIS functions have been implemented as intrinsics in the compiler. + * Please use "carm -?i" to get an up to date list of all intrinsics, + * Including the CMSIS ones. + */ + +#endif + +/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ + +#endif /* __CORE_CMINSTR_H */ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc000.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc000.h new file mode 100644 index 0000000000..1a2a0f2e30 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc000.h @@ -0,0 +1,813 @@ +/**************************************************************************//** + * @file core_sc000.h + * @brief CMSIS SC000 Core Peripheral Access Layer Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_SC000_H_GENERIC +#define __CORE_SC000_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup SC000 + @{ + */ + +/* CMSIS SC000 definitions */ +#define __SC000_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __SC000_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ +#define __SC000_CMSIS_VERSION ((__SC000_CMSIS_VERSION_MAIN << 16) | \ + __SC000_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_SC (0) /*!< Cortex secure core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_SC000_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_SC000_H_DEPENDANT +#define __CORE_SC000_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __SC000_REV + #define __SC000_REV 0x0000 + #warning "__SC000_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 2 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group SC000 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[31]; + __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[31]; + __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[31]; + __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[31]; + uint32_t RESERVED4[64]; + __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ +} NVIC_Type; + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + uint32_t RESERVED0[1]; + __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + uint32_t RESERVED1[154]; + __IO uint32_t SFCR; /*!< Offset: 0x290 (R/W) Security Features Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +/* SCB Security Features Register Definitions */ +#define SCB_SFCR_UNIBRTIMING_Pos 0 /*!< SCB SFCR: UNIBRTIMING Position */ +#define SCB_SFCR_UNIBRTIMING_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SFCR: UNIBRTIMING Mask */ + +#define SCB_SFCR_SECKEY_Pos 16 /*!< SCB SFCR: SECKEY Position */ +#define SCB_SFCR_SECKEY_Msk (0xFFFFUL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SFCR: SECKEY Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[2]; + __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ +} SCnSCB_Type; + +/* Auxiliary Control Register Definitions */ +#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ +#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 8 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ +#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ +#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ +#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ +#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ +#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ +#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief SC000 Core Debug Registers (DCB registers, SHCSR, and DFSR) + are only accessible over DAP and not via processor. Therefore + they are not covered by the Cortex-M0 header file. + @{ + */ +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of SC000 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/* Interrupt Priorities are WORD accessible only under ARMv6M */ +/* The following MACROS handle generation of the register offset and byte masks */ +#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) +#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) +#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } + else { + NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | + (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ + else { + return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + SCB_AIRCR_SYSRESETREQ_Msk); + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = ticks - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + + +#endif /* __CORE_SC000_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc300.h b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc300.h new file mode 100644 index 0000000000..cc34d6fc0e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/Include/core_sc300.h @@ -0,0 +1,1598 @@ +/**************************************************************************//** + * @file core_sc300.h + * @brief CMSIS SC300 Core Peripheral Access Layer Header File + * @version V3.20 + * @date 25. February 2013 + * + * @note + * + ******************************************************************************/ +/* Copyright (c) 2009 - 2013 ARM LIMITED + + 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. + ---------------------------------------------------------------------------*/ + + +#if defined ( __ICCARM__ ) + #pragma system_include /* treat file as system include file for MISRA check */ +#endif + +#ifdef __cplusplus + extern "C" { +#endif + +#ifndef __CORE_SC300_H_GENERIC +#define __CORE_SC300_H_GENERIC + +/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions + CMSIS violates the following MISRA-C:2004 rules: + + \li Required Rule 8.5, object/function definition in header file.
+ Function definitions in header files are used to allow 'inlining'. + + \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
+ Unions are used for effective representation of core registers. + + \li Advisory Rule 19.7, Function-like macro defined.
+ Function-like macros are used to allow more efficient code. + */ + + +/******************************************************************************* + * CMSIS definitions + ******************************************************************************/ +/** \ingroup SC3000 + @{ + */ + +/* CMSIS SC300 definitions */ +#define __SC300_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ +#define __SC300_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ +#define __SC300_CMSIS_VERSION ((__SC300_CMSIS_VERSION_MAIN << 16) | \ + __SC300_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ + +#define __CORTEX_SC (300) /*!< Cortex secure core */ + + +#if defined ( __CC_ARM ) + #define __ASM __asm /*!< asm keyword for ARM Compiler */ + #define __INLINE __inline /*!< inline keyword for ARM Compiler */ + #define __STATIC_INLINE static __inline + +#elif defined ( __ICCARM__ ) + #define __ASM __asm /*!< asm keyword for IAR Compiler */ + #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ + #define __STATIC_INLINE static inline + +#elif defined ( __GNUC__ ) + #define __ASM __asm /*!< asm keyword for GNU Compiler */ + #define __INLINE inline /*!< inline keyword for GNU Compiler */ + #define __STATIC_INLINE static inline + +#elif defined ( __TASKING__ ) + #define __ASM __asm /*!< asm keyword for TASKING Compiler */ + #define __INLINE inline /*!< inline keyword for TASKING Compiler */ + #define __STATIC_INLINE static inline + +#endif + +/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all +*/ +#define __FPU_USED 0 + +#if defined ( __CC_ARM ) + #if defined __TARGET_FPU_VFP + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __ICCARM__ ) + #if defined __ARMVFP__ + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __GNUC__ ) + #if defined (__VFP_FP__) && !defined(__SOFTFP__) + #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif + +#elif defined ( __TASKING__ ) + #if defined __FPU_VFP__ + #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" + #endif +#endif + +#include /* standard types definitions */ +#include /* Core Instruction Access */ +#include /* Core Function Access */ + +#endif /* __CORE_SC300_H_GENERIC */ + +#ifndef __CMSIS_GENERIC + +#ifndef __CORE_SC300_H_DEPENDANT +#define __CORE_SC300_H_DEPENDANT + +/* check device defines and use defaults */ +#if defined __CHECK_DEVICE_DEFINES + #ifndef __SC300_REV + #define __SC300_REV 0x0000 + #warning "__SC300_REV not defined in device header file; using default!" + #endif + + #ifndef __MPU_PRESENT + #define __MPU_PRESENT 0 + #warning "__MPU_PRESENT not defined in device header file; using default!" + #endif + + #ifndef __NVIC_PRIO_BITS + #define __NVIC_PRIO_BITS 4 + #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" + #endif + + #ifndef __Vendor_SysTickConfig + #define __Vendor_SysTickConfig 0 + #warning "__Vendor_SysTickConfig not defined in device header file; using default!" + #endif +#endif + +/* IO definitions (access restrictions to peripheral registers) */ +/** + \defgroup CMSIS_glob_defs CMSIS Global Defines + + IO Type Qualifiers are used + \li to specify the access to peripheral variables. + \li for automatic generation of peripheral register debug information. +*/ +#ifdef __cplusplus + #define __I volatile /*!< Defines 'read only' permissions */ +#else + #define __I volatile const /*!< Defines 'read only' permissions */ +#endif +#define __O volatile /*!< Defines 'write only' permissions */ +#define __IO volatile /*!< Defines 'read / write' permissions */ + +/*@} end of group SC300 */ + + + +/******************************************************************************* + * Register Abstraction + Core Register contain: + - Core Register + - Core NVIC Register + - Core SCB Register + - Core SysTick Register + - Core Debug Register + - Core MPU Register + ******************************************************************************/ +/** \defgroup CMSIS_core_register Defines and Type Definitions + \brief Type definitions and defines for Cortex-M processor based devices. +*/ + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CORE Status and Control Registers + \brief Core Register type definitions. + @{ + */ + +/** \brief Union type to access the Application Program Status Register (APSR). + */ +typedef union +{ + struct + { +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ +#else + uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ +#endif + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} APSR_Type; + + +/** \brief Union type to access the Interrupt Program Status Register (IPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ + uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} IPSR_Type; + + +/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). + */ +typedef union +{ + struct + { + uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ +#if (__CORTEX_M != 0x04) + uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ +#else + uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ + uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ + uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ +#endif + uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ + uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ + uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ + uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ + uint32_t C:1; /*!< bit: 29 Carry condition code flag */ + uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ + uint32_t N:1; /*!< bit: 31 Negative condition code flag */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} xPSR_Type; + + +/** \brief Union type to access the Control Registers (CONTROL). + */ +typedef union +{ + struct + { + uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ + uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ + uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ + uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ + } b; /*!< Structure used for bit access */ + uint32_t w; /*!< Type used for word access */ +} CONTROL_Type; + +/*@} end of group CMSIS_CORE */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) + \brief Type definitions for the NVIC Registers + @{ + */ + +/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). + */ +typedef struct +{ + __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ + uint32_t RESERVED0[24]; + __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ + uint32_t RSERVED1[24]; + __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ + uint32_t RESERVED2[24]; + __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ + uint32_t RESERVED3[24]; + __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ + uint32_t RESERVED4[56]; + __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ + uint32_t RESERVED5[644]; + __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ +} NVIC_Type; + +/* Software Triggered Interrupt Register Definitions */ +#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ +#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_NVIC */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCB System Control Block (SCB) + \brief Type definitions for the System Control Block Registers + @{ + */ + +/** \brief Structure type to access the System Control Block (SCB). + */ +typedef struct +{ + __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ + __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ + __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ + __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ + __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ + __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ + __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ + __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ + __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ + __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ + __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ + __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ + __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ + __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ + __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ + __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ + __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ + __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ + __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ + uint32_t RESERVED0[5]; + __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ +} SCB_Type; + +/* SCB CPUID Register Definitions */ +#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ +#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ + +#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ +#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ + +#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ +#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ + +#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ +#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ + +#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ +#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ + +/* SCB Interrupt Control State Register Definitions */ +#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ +#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ + +#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ +#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ + +#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ +#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ + +#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ +#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ + +#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ +#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ + +#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ +#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ + +#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ +#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ + +#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ +#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ + +#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ +#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ + +#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ +#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ + +/* SCB Vector Table Offset Register Definitions */ +#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ +#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ + +#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ +#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ + +/* SCB Application Interrupt and Reset Control Register Definitions */ +#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ +#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ + +#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ +#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ + +#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ +#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ + +#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ +#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ + +#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ +#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ + +#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ +#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ + +#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ +#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ + +/* SCB System Control Register Definitions */ +#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ +#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ + +#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ +#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ + +#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ +#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ + +/* SCB Configuration Control Register Definitions */ +#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ +#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ + +#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ +#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ + +#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ +#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ + +#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ +#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ + +#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ +#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ + +#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ +#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ + +/* SCB System Handler Control and State Register Definitions */ +#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ +#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ + +#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ +#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ + +#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ +#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ + +#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ +#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ + +#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ +#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ + +#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ +#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ + +#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ +#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ + +#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ +#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ + +#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ +#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ + +#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ +#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ + +#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ +#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ + +#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ +#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ + +#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ +#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ + +#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ +#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ + +/* SCB Configurable Fault Status Registers Definitions */ +#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ +#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ + +#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ +#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ + +#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ +#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ + +/* SCB Hard Fault Status Registers Definitions */ +#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ +#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ + +#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ +#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ + +#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ +#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ + +/* SCB Debug Fault Status Register Definitions */ +#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ +#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ + +#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ +#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ + +#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ +#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ + +#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ +#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ + +#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ +#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ + +/*@} end of group CMSIS_SCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) + \brief Type definitions for the System Control and ID Register not in the SCB + @{ + */ + +/** \brief Structure type to access the System Control and ID Register not in the SCB. + */ +typedef struct +{ + uint32_t RESERVED0[1]; + __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ + uint32_t RESERVED1[1]; +} SCnSCB_Type; + +/* Interrupt Controller Type Register Definitions */ +#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ +#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ + +/*@} end of group CMSIS_SCnotSCB */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_SysTick System Tick Timer (SysTick) + \brief Type definitions for the System Timer Registers. + @{ + */ + +/** \brief Structure type to access the System Timer (SysTick). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ + __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ + __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ + __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ +} SysTick_Type; + +/* SysTick Control / Status Register Definitions */ +#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ +#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ + +#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ +#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ + +#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ +#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ + +#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ +#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ + +/* SysTick Reload Register Definitions */ +#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ +#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ + +/* SysTick Current Register Definitions */ +#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ +#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ + +/* SysTick Calibration Register Definitions */ +#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ +#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ + +#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ +#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ + +#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ +#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ + +/*@} end of group CMSIS_SysTick */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) + \brief Type definitions for the Instrumentation Trace Macrocell (ITM) + @{ + */ + +/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). + */ +typedef struct +{ + __O union + { + __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ + __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ + __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ + } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ + uint32_t RESERVED0[864]; + __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ + uint32_t RESERVED1[15]; + __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ + uint32_t RESERVED2[15]; + __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ + uint32_t RESERVED3[29]; + __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ + __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ + __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ + uint32_t RESERVED4[43]; + __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ + __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ + uint32_t RESERVED5[6]; + __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ + __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ + __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ + __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ + __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ + __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ + __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ + __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ + __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ + __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ + __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ + __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ +} ITM_Type; + +/* ITM Trace Privilege Register Definitions */ +#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ +#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ + +/* ITM Trace Control Register Definitions */ +#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ +#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ + +#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ +#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ + +#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ +#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ + +#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ +#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ + +#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ +#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ + +#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ +#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ + +#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ +#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ + +#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ +#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ + +#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ +#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ + +/* ITM Integration Write Register Definitions */ +#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ +#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ + +/* ITM Integration Read Register Definitions */ +#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ +#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ + +/* ITM Integration Mode Control Register Definitions */ +#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ +#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ + +/* ITM Lock Status Register Definitions */ +#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ +#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ + +#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ +#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ + +#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ +#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ + +/*@}*/ /* end of group CMSIS_ITM */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) + \brief Type definitions for the Data Watchpoint and Trace (DWT) + @{ + */ + +/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). + */ +typedef struct +{ + __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ + __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ + __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ + __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ + __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ + __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ + __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ + __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ + __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ + __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ + __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ + uint32_t RESERVED0[1]; + __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ + __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ + __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ + uint32_t RESERVED1[1]; + __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ + __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ + __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ + uint32_t RESERVED2[1]; + __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ + __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ + __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ +} DWT_Type; + +/* DWT Control Register Definitions */ +#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ +#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ + +#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ +#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ + +#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ +#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ + +#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ +#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ + +#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ +#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ + +#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ +#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ + +#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ +#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ + +#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ +#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ + +#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ +#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ + +#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ +#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ + +#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ +#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ + +#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ +#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ + +#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ +#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ + +#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ +#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ + +#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ +#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ + +#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ +#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ + +#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ +#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ + +#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ +#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ + +/* DWT CPI Count Register Definitions */ +#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ +#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ + +/* DWT Exception Overhead Count Register Definitions */ +#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ +#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ + +/* DWT Sleep Count Register Definitions */ +#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ +#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ + +/* DWT LSU Count Register Definitions */ +#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ +#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ + +/* DWT Folded-instruction Count Register Definitions */ +#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ +#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ + +/* DWT Comparator Mask Register Definitions */ +#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ +#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ + +/* DWT Comparator Function Register Definitions */ +#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ +#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ + +#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ +#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ + +#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ +#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ + +#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ +#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ + +#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ +#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ + +#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ +#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ + +#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ +#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ + +#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ +#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ + +#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ +#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ + +/*@}*/ /* end of group CMSIS_DWT */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_TPI Trace Port Interface (TPI) + \brief Type definitions for the Trace Port Interface (TPI) + @{ + */ + +/** \brief Structure type to access the Trace Port Interface Register (TPI). + */ +typedef struct +{ + __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ + __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ + uint32_t RESERVED0[2]; + __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ + uint32_t RESERVED1[55]; + __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ + uint32_t RESERVED2[131]; + __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ + __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ + __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ + uint32_t RESERVED3[759]; + __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ + __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ + __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ + uint32_t RESERVED4[1]; + __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ + __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ + __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ + uint32_t RESERVED5[39]; + __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ + __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ + uint32_t RESERVED7[8]; + __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ + __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ +} TPI_Type; + +/* TPI Asynchronous Clock Prescaler Register Definitions */ +#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ +#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ + +/* TPI Selected Pin Protocol Register Definitions */ +#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ +#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ + +/* TPI Formatter and Flush Status Register Definitions */ +#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ +#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ + +#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ +#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ + +#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ +#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ + +#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ +#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ + +/* TPI Formatter and Flush Control Register Definitions */ +#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ +#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ + +#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ +#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ + +/* TPI TRIGGER Register Definitions */ +#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ +#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ + +/* TPI Integration ETM Data Register Definitions (FIFO0) */ +#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ +#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ + +#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ +#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ + +#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ +#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ + +#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ +#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ + +#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ +#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ + +#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ +#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ + +#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ +#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ + +/* TPI ITATBCTR2 Register Definitions */ +#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ +#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ + +/* TPI Integration ITM Data Register Definitions (FIFO1) */ +#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ +#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ + +#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ +#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ + +#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ +#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ + +#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ +#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ + +#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ +#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ + +#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ +#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ + +#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ +#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ + +/* TPI ITATBCTR0 Register Definitions */ +#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ +#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ + +/* TPI Integration Mode Control Register Definitions */ +#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ +#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ + +/* TPI DEVID Register Definitions */ +#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ +#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ + +#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ +#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ + +#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ +#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ + +#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ +#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ + +#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ +#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ + +#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ +#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ + +/* TPI DEVTYPE Register Definitions */ +#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ +#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ + +#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ +#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ + +/*@}*/ /* end of group CMSIS_TPI */ + + +#if (__MPU_PRESENT == 1) +/** \ingroup CMSIS_core_register + \defgroup CMSIS_MPU Memory Protection Unit (MPU) + \brief Type definitions for the Memory Protection Unit (MPU) + @{ + */ + +/** \brief Structure type to access the Memory Protection Unit (MPU). + */ +typedef struct +{ + __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ + __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ + __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ + __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ + __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ + __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ + __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ + __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ + __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ + __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ + __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ +} MPU_Type; + +/* MPU Type Register */ +#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ +#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ + +#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ +#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ + +#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ +#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ + +/* MPU Control Register */ +#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ +#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ + +#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ +#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ + +#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ +#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ + +/* MPU Region Number Register */ +#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ +#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ + +/* MPU Region Base Address Register */ +#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ +#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ + +#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ +#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ + +#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ +#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ + +/* MPU Region Attribute and Size Register */ +#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ +#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ + +#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ +#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ + +#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ +#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ + +#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ +#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ + +#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ +#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ + +#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ +#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ + +#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ +#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ + +#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ +#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ + +#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ +#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ + +#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ +#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ + +/*@} end of group CMSIS_MPU */ +#endif + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) + \brief Type definitions for the Core Debug Registers + @{ + */ + +/** \brief Structure type to access the Core Debug Register (CoreDebug). + */ +typedef struct +{ + __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ + __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ + __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ + __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ +} CoreDebug_Type; + +/* Debug Halting Control and Status Register */ +#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ +#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ + +#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ +#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ + +#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ +#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ + +#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ +#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ + +#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ +#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ + +#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ +#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ + +#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ +#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ + +#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ +#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ + +#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ +#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ + +#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ +#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ + +#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ +#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ + +#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ +#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ + +/* Debug Core Register Selector Register */ +#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ +#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ + +#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ +#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ + +/* Debug Exception and Monitor Control Register */ +#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ +#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ + +#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ +#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ + +#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ +#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ + +#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ +#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ + +#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ +#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ + +#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ +#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ + +#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ +#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ + +#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ +#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ + +#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ +#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ + +#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ +#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ + +#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ +#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ + +#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ +#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ + +#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ +#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ + +/*@} end of group CMSIS_CoreDebug */ + + +/** \ingroup CMSIS_core_register + \defgroup CMSIS_core_base Core Definitions + \brief Definitions for base addresses, unions, and structures. + @{ + */ + +/* Memory mapping of Cortex-M3 Hardware */ +#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ +#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ +#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ +#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ +#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ +#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ +#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ +#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ + +#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ +#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ +#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ +#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ +#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ +#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ +#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ +#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ + +#if (__MPU_PRESENT == 1) + #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ + #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ +#endif + +/*@} */ + + + +/******************************************************************************* + * Hardware Abstraction Layer + Core Function Interface contains: + - Core NVIC Functions + - Core SysTick Functions + - Core Debug Functions + - Core Register Access Functions + ******************************************************************************/ +/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference +*/ + + + +/* ########################## NVIC functions #################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_NVICFunctions NVIC Functions + \brief Functions that manage interrupts and exceptions via the NVIC. + @{ + */ + +/** \brief Set Priority Grouping + + The function sets the priority grouping field using the required unlock sequence. + The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. + Only values from 0..7 are used. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. + + \param [in] PriorityGroup Priority grouping field. + */ +__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) +{ + uint32_t reg_value; + uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ + + reg_value = SCB->AIRCR; /* read old register configuration */ + reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ + reg_value = (reg_value | + ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ + SCB->AIRCR = reg_value; +} + + +/** \brief Get Priority Grouping + + The function reads the priority grouping field from the NVIC Interrupt Controller. + + \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). + */ +__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) +{ + return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ +} + + +/** \brief Enable External Interrupt + + The function enables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) +{ + NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ +} + + +/** \brief Disable External Interrupt + + The function disables a device-specific interrupt in the NVIC interrupt controller. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) +{ + NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ +} + + +/** \brief Get Pending Interrupt + + The function reads the pending register in the NVIC and returns the pending bit + for the specified interrupt. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not pending. + \return 1 Interrupt status is pending. + */ +__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) +{ + return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ +} + + +/** \brief Set Pending Interrupt + + The function sets the pending bit of an external interrupt. + + \param [in] IRQn Interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ +} + + +/** \brief Clear Pending Interrupt + + The function clears the pending bit of an external interrupt. + + \param [in] IRQn External interrupt number. Value cannot be negative. + */ +__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) +{ + NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ +} + + +/** \brief Get Active Interrupt + + The function reads the active register in NVIC and returns the active bit. + + \param [in] IRQn Interrupt number. + + \return 0 Interrupt status is not active. + \return 1 Interrupt status is active. + */ +__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) +{ + return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ +} + + +/** \brief Set Interrupt Priority + + The function sets the priority of an interrupt. + + \note The priority cannot be set for every core interrupt. + + \param [in] IRQn Interrupt number. + \param [in] priority Priority to set. + */ +__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) +{ + if(IRQn < 0) { + SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ + else { + NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ +} + + +/** \brief Get Interrupt Priority + + The function reads the priority of an interrupt. The interrupt + number can be positive to specify an external (device specific) + interrupt, or negative to specify an internal (core) interrupt. + + + \param [in] IRQn Interrupt number. + \return Interrupt Priority. Value is aligned automatically to the implemented + priority bits of the microcontroller. + */ +__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) +{ + + if(IRQn < 0) { + return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ + else { + return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ +} + + +/** \brief Encode Priority + + The function encodes the priority for an interrupt with the given priority group, + preemptive priority value, and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. + + \param [in] PriorityGroup Used priority group. + \param [in] PreemptPriority Preemptive priority value (starting from 0). + \param [in] SubPriority Subpriority value (starting from 0). + \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). + */ +__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + return ( + ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | + ((SubPriority & ((1 << (SubPriorityBits )) - 1))) + ); +} + + +/** \brief Decode Priority + + The function decodes an interrupt priority value with a given priority group to + preemptive priority value and subpriority value. + In case of a conflict between priority grouping and available + priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. + + \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). + \param [in] PriorityGroup Used priority group. + \param [out] pPreemptPriority Preemptive priority value (starting from 0). + \param [out] pSubPriority Subpriority value (starting from 0). + */ +__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) +{ + uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ + uint32_t PreemptPriorityBits; + uint32_t SubPriorityBits; + + PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; + SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; + + *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); + *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); +} + + +/** \brief System Reset + + The function initiates a system reset request to reset the MCU. + */ +__STATIC_INLINE void NVIC_SystemReset(void) +{ + __DSB(); /* Ensure all outstanding memory accesses included + buffered write are completed before reset */ + SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | + (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | + SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ + __DSB(); /* Ensure completion of memory access */ + while(1); /* wait until reset */ +} + +/*@} end of CMSIS_Core_NVICFunctions */ + + + +/* ################################## SysTick function ############################################ */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_Core_SysTickFunctions SysTick Functions + \brief Functions that configure the System. + @{ + */ + +#if (__Vendor_SysTickConfig == 0) + +/** \brief System Tick Configuration + + The function initializes the System Timer and its interrupt, and starts the System Tick Timer. + Counter is in free running mode to generate periodic interrupts. + + \param [in] ticks Number of ticks between two interrupts. + + \return 0 Function succeeded. + \return 1 Function failed. + + \note When the variable __Vendor_SysTickConfig is set to 1, then the + function SysTick_Config is not included. In this case, the file device.h + must contain a vendor-specific implementation of this function. + + */ +__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) +{ + if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ + + SysTick->LOAD = ticks - 1; /* set reload register */ + NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ + SysTick->VAL = 0; /* Load the SysTick Counter Value */ + SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | + SysTick_CTRL_TICKINT_Msk | + SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ + return (0); /* Function successful */ +} + +#endif + +/*@} end of CMSIS_Core_SysTickFunctions */ + + + +/* ##################################### Debug In/Output function ########################################### */ +/** \ingroup CMSIS_Core_FunctionInterface + \defgroup CMSIS_core_DebugFunctions ITM Functions + \brief Functions that access the ITM debug interface. + @{ + */ + +extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ +#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ + + +/** \brief ITM Send Character + + The function transmits a character via the ITM channel 0, and + \li Just returns when no debugger is connected that has booked the output. + \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. + + \param [in] ch Character to transmit. + + \returns Character to transmit. + */ +__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) +{ + if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ + (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ + { + while (ITM->PORT[0].u32 == 0); + ITM->PORT[0].u8 = (uint8_t) ch; + } + return (ch); +} + + +/** \brief ITM Receive Character + + The function inputs a character via the external variable \ref ITM_RxBuffer. + + \return Received character. + \return -1 No character pending. + */ +__STATIC_INLINE int32_t ITM_ReceiveChar (void) { + int32_t ch = -1; /* no character available */ + + if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { + ch = ITM_RxBuffer; + ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ + } + + return (ch); +} + + +/** \brief ITM Check Character + + The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. + + \return 0 No character available. + \return 1 Character available. + */ +__STATIC_INLINE int32_t ITM_CheckChar (void) { + + if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { + return (0); /* no character available */ + } else { + return (1); /* character available */ + } +} + +/*@} end of CMSIS_core_DebugFunctions */ + +#endif /* __CORE_SC300_H_DEPENDANT */ + +#endif /* __CMSIS_GENERIC */ + +#ifdef __cplusplus +} +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/README.txt b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/README.txt new file mode 100644 index 0000000000..23717194f4 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/README.txt @@ -0,0 +1,37 @@ +* ------------------------------------------------------------------- +* Copyright (C) 2011-2013 ARM Limited. All rights reserved. +* +* Date: 18 March 2013 +* Revision: V3.20 +* +* Project: Cortex Microcontroller Software Interface Standard (CMSIS) +* Title: Release Note for CMSIS +* +* ------------------------------------------------------------------- + + +NOTE - Open the index.html file to access CMSIS documentation + + +The Cortex Microcontroller Software Interface Standard (CMSIS) provides a single standard across all +Cortex-Mx processor series vendors. It enables code re-use and code sharing across software projects +and reduces time-to-market for new embedded applications. + +CMSIS is released under the terms of the end user license agreement ("CMSIS END USER LICENCE AGREEMENT.pdf"). +Any user of the software package is bound to the terms and conditions of the end user license agreement. + + +You will find the following sub-directories: + +Documentation - Contains CMSIS documentation. + +DSP_Lib - MDK project files, Examples and source files etc.. to build the + CMSIS DSP Software Library for Cortex-M0, Cortex-M3, Cortex-M4 processors. + +Include - CMSIS Core Support and CMSIS DSP Include Files. + +Lib - CMSIS DSP Libraries. + +RTOS - CMSIS RTOS API template header file. + +SVD - CMSIS SVD Schema files and Conversion Utility. diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript new file mode 100644 index 0000000000..64f6f21408 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript @@ -0,0 +1,21 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = Glob('DeviceSupport/fujitsu/mb9bf61x/*.c') + +CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/'] + +# add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c'] +elif rtconfig.CROSS_TOOL == 'keil': + src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S'] +elif rtconfig.CROSS_TOOL == 'iar': + src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S'] + +CPPDEFINES = [rtconfig.FM3_TYPE] +group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf618s/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/SConscript new file mode 100644 index 0000000000..fe0ae941ae --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/SConscript @@ -0,0 +1,14 @@ +# for module compiling +import os +Import('RTT_ROOT') + +cwd = str(Dir('#')) +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/fujitsu/mb9x/mb9bf618s/SConstruct b/bsp/fujitsu/mb9x/mb9bf618s/SConstruct new file mode 100644 index 0000000000..97f374e663 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/SConstruct @@ -0,0 +1,35 @@ +import os +import sys +import rtconfig + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) + +if rtconfig.PLATFORM == 'iar': + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/fujitsu/mb9x/mb9bf618s/applications/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/applications/SConscript new file mode 100644 index 0000000000..01eb940dfb --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/applications/SConscript @@ -0,0 +1,11 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'applications') +src = Glob('*.c') +CPPPATH = [cwd, str(Dir('#'))] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf618s/applications/application.c b/bsp/fujitsu/mb9x/mb9bf618s/applications/application.c new file mode 100644 index 0000000000..737034fff6 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/applications/application.c @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-05-24 Bernard the first version + */ + +/** + * @addtogroup FM3 + */ +/*@{*/ + +#include +#include "board.h" + +void rt_init_thread_entry(void *parameter) +{ +#ifdef RT_USING_COMPONENTS_INIT + /* initialization RT-Thread Components */ + rt_components_init(); +#endif + +#ifdef RT_USING_FINSH + (RT_CONSOLE_DEVICE_NAME); +#endif /* RT_USING_FINSH */ + + /**< init led device */ + { + extern void rt_led_hw_init(void); + rt_led_hw_init(); + } + +} + +int rt_application_init() +{ + rt_thread_t tid; + + tid = rt_thread_create("init", + rt_init_thread_entry, RT_NULL, + 2048, 8, 20); + if (tid != RT_NULL) rt_thread_startup(tid); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/applications/startup.c b/bsp/fujitsu/mb9x/mb9bf618s/applications/startup.c new file mode 100644 index 0000000000..22d38bcf95 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/applications/startup.c @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +extern int rt_application_init(void); + +#ifdef __CC_ARM +extern int Image$$RW_IRAM1$$ZI$$Limit; +#elif __ICCARM__ +#pragma section="HEAP" +#else +extern int __bss_end; +#endif + +/** + * This function will startup RT-Thread RTOS. + */ +void rtthread_startup(void) +{ + /* init board */ + rt_hw_board_init(); + + /* show version */ + rt_show_version(); + + /* init timer system */ + rt_system_timer_init(); + +#ifdef RT_USING_HEAP +#ifdef __CC_ARM + rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM3_SRAM_END); +#elif __ICCARM__ + rt_system_heap_init(__segment_end("HEAP"), (void*)FM3_SRAM_END); +#else + /* init memory system */ + rt_system_heap_init((void*)&__bss_end, (void*)FM3_SRAM_END); +#endif +#endif + + /* init scheduler system */ + rt_system_scheduler_init(); + + /* init timer thread */ + rt_system_timer_thread_init(); + + /* init application */ + rt_application_init(); + + /* init idle thread */ + rt_thread_idle_init(); + + /* start scheduler */ + rt_system_scheduler_start(); + + /* never reach here */ + return ; +} + +int main(void) +{ + /* disable interrupt first */ + rt_hw_interrupt_disable(); + + /* startup RT-Thread RTOS */ + rtthread_startup(); + + return 0; +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript new file mode 100644 index 0000000000..5bbef48785 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript @@ -0,0 +1,11 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'drivers') +src = Glob('*.c') +CPPPATH = [cwd] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/board.c b/bsp/fujitsu/mb9x/mb9bf618s/drivers/board.c new file mode 100644 index 0000000000..8490e7a060 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/board.c @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2011-02-24 Bernard first implementation + */ + +#include +#include + +#include "board.h" + +#include "serial.h" + +/** + * @addtogroup FM3 + */ + +/*@{*/ + +/** + * This is the timer interrupt service routine. + * + */ +void SysTick_Handler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + + rt_tick_increase(); + + /* leave interrupt */ + rt_interrupt_leave(); +} + +/** + * This fucntion returns milliseconds since system passed + */ +rt_uint32_t rt_hw_tick_get_millisecond(void) +{ + rt_tick_t tick; + rt_uint32_t value; + +#define TICK_MS (1000/RT_TICK_PER_SECOND) + + tick = rt_tick_get(); + value = tick * TICK_MS + (SysTick->LOAD - SysTick->VAL) * TICK_MS / SysTick->LOAD; + + return value; +} + +/** + * This fucntion returns microseconds since system passed + */ +rt_uint32_t rt_hw_tick_get_microsecond(void) +{ + rt_tick_t tick; + rt_uint32_t value; + +#define TICK_US (1000000/RT_TICK_PER_SECOND) + + tick = rt_tick_get(); + value = tick * TICK_US + (SysTick->LOAD - SysTick->VAL) * TICK_US / SysTick->LOAD; + + return value; +} + +/** +* This function will initial FM3 Easy Kit board. + */ +void rt_hw_board_init(void) +{ + /* disable all analog input. */ + FM3_GPIO->ADE = 0; + + /* init systick */ + SysTick_Config(SystemCoreClock/RT_TICK_PER_SECOND); + + /* initialize UART device */ + rt_hw_serial_init(); + /* set console as UART device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); + +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/board.h b/bsp/fujitsu/mb9x/mb9bf618s/drivers/board.h new file mode 100644 index 0000000000..c082b0b54c --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/board.h @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2009-09-22 Bernard add board.h to this bsp + * 2011-03-04 lgnq add board.h to FM3 bsp + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +#if defined MB9B610S +# include +#elif defined MB9B610T +# include +#else +# warning "you must define CPU type. e.g: MB9B610S or MB9B610T" +# warning "define MB9B610S default" +# define MB9B610S /* default: MB9B610S */ +# include +#endif + +#include "serial.h" + +//Internal SRAM memory size[Kbytes] <8-64> +//product MB9BFx16S/T MB9BFx17S/T MB9BFx18S/T +//FLASH : 512 768 1024 +//SRAM0 : 32 48 64 +//SRAM1 : 32 48 64 +#define FM3_SRAM_SIZE 128 +#define FM3_SRAM_END (0x1FFF0000 + FM3_SRAM_SIZE * 1024) + +/* RT_USING_UART */ +#define RT_USING_UART0 +//#define RT_USING_UART2 +//#define RT_USING_UART4 +#define RT_UART_RX_BUFFER_SIZE 64 + +void rt_hw_board_init(void); +rt_uint32_t rt_hw_tick_get_millisecond(void); +rt_uint32_t rt_hw_tick_get_microsecond(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c b/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c new file mode 100644 index 0000000000..bfad9947e7 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c @@ -0,0 +1,166 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ + +#include +#include "board.h" + +#define RT_DEVICE_CTRL_RTC_GET_COUNT 0x81 /**< get count */ + +#define LED_NUM 4 +struct fm3_gpio_ctrl +{ + uint32_t led_num; + volatile uint32_t * PDOR; + volatile uint32_t * PDIR; +}; + +struct fm3_led +{ + /* inherit from rt_device */ + struct rt_device parent; + + struct fm3_gpio_ctrl fm3_gpio_ctrl[LED_NUM]; +}; + +static struct fm3_led fm3_led; + +static rt_err_t rt_led_init (rt_device_t dev) +{ + uint32_t i; + + /* led0 : P54 */ + FM3_GPIO->PFR5 &= ~((1<<7) | (1<<6) | (1<<5) |(1<<4)); /* set P54 fuction is GPIO. */ + FM3_GPIO->DDR5 |= (1<<7) | (1<<6) | (1<<5) |(1<<4); /* set P54 output. */ + + /* LED0 */ + i = 0; + fm3_led.fm3_gpio_ctrl[i].led_num = 4; + fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; + fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; + + /* LED1 */ + i++; + fm3_led.fm3_gpio_ctrl[i].led_num = 5; + fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; + fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; + + /* LED2 */ + i++; + fm3_led.fm3_gpio_ctrl[i].led_num = 6; + fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; + fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; + + /* LED3 */ + i++; + fm3_led.fm3_gpio_ctrl[i].led_num = 7; + fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; + fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; + + return RT_EOK; +} + +static rt_err_t rt_led_open(rt_device_t dev, rt_uint16_t oflag) +{ + return RT_EOK; +} + +static rt_err_t rt_led_close(rt_device_t dev) +{ + return RT_EOK; +} + +static rt_size_t rt_led_read (rt_device_t dev, rt_off_t pos, void* buffer, + rt_size_t size) +{ + rt_ubase_t index = 0; + rt_ubase_t nr = size; + rt_uint8_t * value = buffer; + + RT_ASSERT(dev == &fm3_led.parent); + RT_ASSERT((pos+size) <= LED_NUM ); + + for(index=0; index +void led(rt_uint32_t led, rt_uint32_t value) +{ + rt_uint8_t led_value = value; + rt_led_write(&fm3_led.parent, led, &led_value, 1); +} +FINSH_FUNCTION_EXPORT(led, e.g:led(0,100).) +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.c b/bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.c new file mode 100644 index 0000000000..79279e79e5 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.c @@ -0,0 +1,433 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2006-03-13 Bernard first version + * 2011-05-15 lgnq modified according bernard's implementaion. + */ + +#include + +#include "serial.h" + +/** + * @addtogroup FM3 MB9B610 + */ +/*@{*/ + +/* RT-Thread Device Interface */ +/** + * This function initializes serial + */ +static rt_err_t rt_serial_init (rt_device_t dev) +{ + struct serial_device* uart = (struct serial_device*) dev->user_data; + + if (!(dev->flag & RT_DEVICE_FLAG_ACTIVATED)) + { + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + rt_memset(uart->int_rx->rx_buffer, 0, + sizeof(uart->int_rx->rx_buffer)); + uart->int_rx->read_index = uart->int_rx->save_index = 0; + } + + if (dev->flag & RT_DEVICE_FLAG_INT_TX) + { + rt_memset(uart->int_tx->tx_buffer, 0, + sizeof(uart->int_tx->tx_buffer)); + uart->int_tx->write_index = uart->int_tx->save_index = 0; + } + + dev->flag |= RT_DEVICE_FLAG_ACTIVATED; + } + + return RT_EOK; +} + +/* save a char to serial buffer */ +static void rt_serial_savechar(struct serial_device* uart, char ch) +{ + rt_base_t level; + + /* disable interrupt */ + level = rt_hw_interrupt_disable(); + + uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; + uart->int_rx->save_index ++; + if (uart->int_rx->save_index >= UART_RX_BUFFER_SIZE) + uart->int_rx->save_index = 0; + + /* if the next position is read index, discard this 'read char' */ + if (uart->int_rx->save_index == uart->int_rx->read_index) + { + uart->int_rx->read_index ++; + if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) + uart->int_rx->read_index = 0; + } + + /* enable interrupt */ + rt_hw_interrupt_enable(level); +} + +static rt_err_t rt_serial_open(rt_device_t dev, rt_uint16_t oflag) +{ + struct serial_device* uart; + + RT_ASSERT(dev != RT_NULL); + uart = (struct serial_device*) dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + /* enable interrupt */ + UART_ENABLE_IRQ(uart->rx_irq); + } + + return RT_EOK; +} + +static rt_err_t rt_serial_close(rt_device_t dev) +{ + struct serial_device* uart; + + RT_ASSERT(dev != RT_NULL); + uart = (struct serial_device*) dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + /* disable interrupt */ + UART_DISABLE_IRQ(uart->rx_irq); + } + + return RT_EOK; +} + +static rt_size_t rt_serial_read (rt_device_t dev, rt_off_t pos, void* buffer, + rt_size_t size) +{ + rt_uint8_t* ptr; + rt_err_t err_code; + struct serial_device* uart; + + ptr = buffer; + err_code = RT_EOK; + uart = (struct serial_device*)dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_RX) + { + rt_base_t level; + + /* interrupt mode Rx */ + while (size) + { + if (uart->int_rx->read_index != uart->int_rx->save_index) + { + *ptr++ = uart->int_rx->rx_buffer[uart->int_rx->read_index]; + size --; + + /* disable interrupt */ + level = rt_hw_interrupt_disable(); + + uart->int_rx->read_index ++; + if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) + uart->int_rx->read_index = 0; + + /* enable interrupt */ + rt_hw_interrupt_enable(level); + } + else + { + /* set error code */ + err_code = -RT_EEMPTY; + break; + } + } + } + else + { + /* polling mode */ + while ((rt_uint32_t)ptr - (rt_uint32_t)buffer < size) + { + while (uart->uart_device->SSR & SSR_RDRF) + { + *ptr = uart->uart_device->RDR & 0xff; + ptr ++; + } + } + } + + /* set error code */ + rt_set_errno(err_code); + return (rt_uint32_t)ptr - (rt_uint32_t)buffer; +} + +static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, + const void* buffer, rt_size_t size) +{ + rt_uint8_t* ptr; + rt_err_t err_code; + struct serial_device* uart; + + err_code = RT_EOK; + ptr = (rt_uint8_t*)buffer; + uart = (struct serial_device*)dev->user_data; + + if (dev->flag & RT_DEVICE_FLAG_INT_TX) + { + /* interrupt mode Tx */ + while (uart->int_tx->save_index != uart->int_tx->write_index) + { + /* save on tx buffer */ + uart->int_tx->tx_buffer[uart->int_tx->save_index] = *ptr++; + + -- size; + + /* move to next position */ + uart->int_tx->save_index ++; + + /* wrap save index */ + if (uart->int_tx->save_index >= UART_TX_BUFFER_SIZE) + uart->int_tx->save_index = 0; + } + + /* set error code */ + if (size > 0) + err_code = -RT_EFULL; + } + else + { + /* polling mode */ + while (size) + { + /* + * to be polite with serial console add a line feed + * to the carriage return character + */ + if (*ptr == '\n' && (dev->flag & RT_DEVICE_FLAG_STREAM)) + { + while (!(uart->uart_device->SSR & SSR_TDRE)); + uart->uart_device->TDR = '\r'; + } + + while (!(uart->uart_device->SSR & SSR_TDRE)); + uart->uart_device->TDR = (*ptr & 0x1FF); + + ++ptr; + --size; + } + } + + /* set error code */ + rt_set_errno(err_code); + + return (rt_uint32_t)ptr - (rt_uint32_t)buffer; +} + +static rt_err_t rt_serial_control (rt_device_t dev, int cmd, void *args) +{ + RT_ASSERT(dev != RT_NULL); + + switch (cmd) + { + case RT_DEVICE_CTRL_SUSPEND: + /* suspend device */ + dev->flag |= RT_DEVICE_FLAG_SUSPENDED; + break; + + case RT_DEVICE_CTRL_RESUME: + /* resume device */ + dev->flag &= ~RT_DEVICE_FLAG_SUSPENDED; + break; + } + + return RT_EOK; +} + +/* + * serial register + */ +rt_err_t rt_hw_serial_register(rt_device_t device, const char* name, + rt_uint32_t flag, struct serial_device *serial) +{ + RT_ASSERT(device != RT_NULL); + + device->type = RT_Device_Class_Char; + device->rx_indicate = RT_NULL; + device->tx_complete = RT_NULL; + device->init = rt_serial_init; + device->open = rt_serial_open; + device->close = rt_serial_close; + device->read = rt_serial_read; + device->write = rt_serial_write; + device->control = rt_serial_control; + device->user_data = serial; + + /* register a character device */ + return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR | flag); +} + +/* ISR for serial interrupt */ +void rt_hw_serial_isr(rt_device_t device) +{ + struct serial_device* uart = (struct serial_device*) device->user_data; + + /* interrupt mode receive */ + RT_ASSERT(device->flag & RT_DEVICE_FLAG_INT_RX); + + /* save on rx buffer */ + while (uart->uart_device->SSR & SSR_RDRF) + { + rt_serial_savechar(uart, uart->uart_device->RDR & 0xff); + } + + /* invoke callback */ + if (device->rx_indicate != RT_NULL) + { + rt_size_t rx_length; + + /* get rx length */ + rx_length = uart->int_rx->read_index > uart->int_rx->save_index ? + UART_RX_BUFFER_SIZE - uart->int_rx->read_index + uart->int_rx->save_index : + uart->int_rx->save_index - uart->int_rx->read_index; + + device->rx_indicate(device, rx_length); + } +} + +#ifdef RT_USING_UART0 +/* UART0 device driver structure */ +#define UART0 FM3_MFS0_UART +struct serial_int_rx uart0_int_rx; +struct serial_device uart0 = +{ + UART0, + MFS0RX_IRQn, + MFS0TX_IRQn, + &uart0_int_rx, + RT_NULL +}; +struct rt_device uart0_device; + +void MFS0RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&uart0_device); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif /**< #ifdef RT_USING_UART0 */ + +#ifdef RT_USING_UART2 +/* UART2 device driver structure */ +#define UART2 FM3_MFS2_UART +struct serial_int_rx uart2_int_rx; +struct serial_device uart2 = +{ + UART2, + MFS2RX_IRQn, + MFS2TX_IRQn, + &uart2_int_rx, + RT_NULL +}; +struct rt_device uart2_device; + +void MFS2RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&uart2_device); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif /**< #ifdef RT_USING_UART2 */ + +#ifdef RT_USING_UART4 +/* UART4 device driver structure */ +#define UART4 FM3_MFS4_UART +struct serial_int_rx uart4_int_rx; +struct serial_device uart4 = +{ + (FM3_MFS03_UART_TypeDef*)UART4, + MFS4RX_IRQn, + MFS4TX_IRQn, + &uart4_int_rx, + RT_NULL +}; +struct rt_device uart4_device; + +void MFS4RX_IRQHandler(void) +{ + /* enter interrupt */ + rt_interrupt_enter(); + rt_hw_serial_isr(&uart4_device); + /* leave interrupt */ + rt_interrupt_leave(); +} +#endif /**< #ifdef RT_USING_UART4 */ + +void rt_hw_serial_init(void) +{ + uint32_t APB2_clock = (SystemCoreClock >> (APBC2_PSR_Val & 0x03)); + +#ifdef RT_USING_UART0 + /* initialize UART0 */ + /* Set Uart Ch0 Port, SIN0_0:P21, SOT0_0:P22 */ + FM3_GPIO->ADE &= ~(1UL<<31); /* disable P22 AN31 function */ + FM3_GPIO->PFR2 = FM3_GPIO->PFR2 | (1<<1) | (1<<2); + FM3_GPIO->EPFR07 = FM3_GPIO->EPFR07 & ~(3<<4 | 3<<6) | (1<<4) | (1<<6); + + uart0.uart_device->SMR = SMR_MD_UART | SMR_SOE;; + uart0.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ + uart0.uart_device->ESCR = ESCR_DATABITS_8; + uart0.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; + + /* register UART0 device */ + rt_hw_serial_register(&uart0_device, + "uart0", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart0); +#endif /**< #ifdef RT_USING_UART0 */ + +#ifdef RT_USING_UART2 + /* initialize UART2 */ + /* Set Uart Ch2 Port, SIN2_2:P17, SOT2_2:P18 */ + FM3_GPIO->ADE &= ~(1<<7 | 1<<8); /* disable P17 AN07 and P18 AN08 function */ + FM3_GPIO->PFR1 = FM3_GPIO->PFR1 | (1<<7) | (1<<8) ; + FM3_GPIO->EPFR07 = FM3_GPIO->EPFR07 | (3<<16) | (3<<18) ; + + uart2.uart_device->SMR = SMR_MD_UART | SMR_SOE;; + uart2.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ + uart2.uart_device->ESCR = ESCR_DATABITS_8; + uart2.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; + + /* register UART2 device */ + rt_hw_serial_register(&uart2_device, + "uart2", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart2); +#endif /**< #ifdef RT_USING_UART2 */ + +#ifdef RT_USING_UART4 + /* initialize UART4 */ + /* Set Uart Ch4 Port, SIN4_2:P05, SOT4_2:P06 */ + FM3_GPIO->PFR0 = FM3_GPIO->PFR0 | (1<<5) | (1<<6); + FM3_GPIO->EPFR08 = FM3_GPIO->EPFR08 | (3<<4) | (3<<6); + + uart4.uart_device->SMR = SMR_MD_UART | SMR_SOE;; + uart4.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ + uart4.uart_device->ESCR = ESCR_DATABITS_8; + uart4.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; + + /* register UART4 device */ + rt_hw_serial_register(&uart4_device, + "uart4", + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + &uart4); +#endif /**< #ifdef RT_USING_UART4 */ +} + +/*@}*/ diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.h b/bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.h new file mode 100644 index 0000000000..388f9eef86 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/serial.h @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2006-03-13 Bernard first version + * 2011-05-15 lgnq modified according bernard's implementaion. + */ + +#ifndef __RT_HW_SERIAL_H__ +#define __RT_HW_SERIAL_H__ + +#include +#include + +#include "board.h" + +#define SMR_SOE 0x01U +#define SMR_BDS 0x04U +#define SMR_SBL 0x08U +#define SMR_WUCR 0x10U +#define SMR_MD_UART 0x00U +#define SMR_MD_UART_MP 0x20U +#define SMR_MD_SIO 0x40U +#define SMR_MD_LIN 0x60U +#define SMR_MD_I2C 0x80U + +#define SCR_TXE 0x01U +#define SCR_RXE 0x02U +#define SCR_TBIE 0x04U +#define SCR_TIE 0x08U +#define SCR_RIE 0x10U +#define SCR_UPGL 0x80U + +#define SSR_TBI 0x01U +#define SSR_TDRE 0x02U +#define SSR_RDRF 0x04U +#define SSR_ORE 0x08U +#define SSR_FRE 0x10U +#define SSR_PE 0x20U +#define SSR_REC 0x80U + +#define ESCR_P 0x08U +#define ESCR_PEN 0x10U +#define ESCR_INV 0x20U +#define ESCR_ESBL 0x40U +#define ESCR_FLWEN 0x80U +#define ESCR_DATABITS_8 0x00U +#define ESCR_DATABITS_5 0x01U +#define ESCR_DATABITS_6 0x02U +#define ESCR_DATABITS_7 0x03U +#define ESCR_DATABITS_9 0x04U + +#define BPS 115200 /* serial baudrate */ + +#define UART_RX_BUFFER_SIZE 64 +#define UART_TX_BUFFER_SIZE 64 + +struct serial_int_rx +{ + rt_uint8_t rx_buffer[UART_RX_BUFFER_SIZE]; + rt_uint32_t read_index, save_index; +}; + +struct serial_int_tx +{ + rt_uint8_t tx_buffer[UART_TX_BUFFER_SIZE]; + rt_uint32_t write_index, save_index; +}; + +/* + * Enable/DISABLE Interrupt Controller + */ +/* deviation from MISRA-C:2004 Rule 19.7 */ +#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) +#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) + +struct serial_device +{ + FM3_MFS03_UART_TypeDef* uart_device; + /* irq number */ + IRQn_Type rx_irq, tx_irq; + + /* rx structure */ + struct serial_int_rx* int_rx; + /* tx structure */ + struct serial_int_tx* int_tx; +}; + +void rt_hw_serial_isr(rt_device_t device); +void rt_hw_serial_init(void); + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/project.ewp b/bsp/fujitsu/mb9x/mb9bf618s/project.ewp new file mode 100644 index 0000000000..25f7f69663 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/project.ewp @@ -0,0 +1,2012 @@ + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 21 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 28 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 15 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 21 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 28 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 15 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + Applications + + $PROJ_DIR$\applications\application.c + + + $PROJ_DIR$\applications\startup.c + + + + CMSIS + + $PROJ_DIR$\CMSIS\DeviceSupport\fujitsu\mb9bf61x\system_mb9bf61x.c + + + $PROJ_DIR$\CMSIS\DeviceSupport\fujitsu\mb9bf61x\startup\iar\startup_mb9bf61x.S + + + + Compiler + + $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c + + + $PROJ_DIR$\..\..\components\libc\compilers\common\time.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c + + + $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c + + + + CPU + + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c + + + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + + + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c + + + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S + + + + Drivers + + $PROJ_DIR$\drivers\led.c + + + $PROJ_DIR$\drivers\serial.c + + + $PROJ_DIR$\drivers\board.c + + + + Finsh + + $PROJ_DIR$\..\..\components\finsh\shell.c + + + $PROJ_DIR$\..\..\components\finsh\msh.c + + + + Kernel + + $PROJ_DIR$\..\..\src\kservice.c + + + $PROJ_DIR$\..\..\src\thread.c + + + $PROJ_DIR$\..\..\src\clock.c + + + $PROJ_DIR$\..\..\src\scheduler.c + + + $PROJ_DIR$\..\..\src\timer.c + + + $PROJ_DIR$\..\..\src\mem.c + + + $PROJ_DIR$\..\..\src\ipc.c + + + $PROJ_DIR$\..\..\src\device.c + + + $PROJ_DIR$\..\..\src\object.c + + + $PROJ_DIR$\..\..\src\mempool.c + + + $PROJ_DIR$\..\..\src\idle.c + + + $PROJ_DIR$\..\..\src\components.c + + + $PROJ_DIR$\..\..\src\irq.c + + + + POSIX + + + utestcases + + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/project.eww b/bsp/fujitsu/mb9x/mb9bf618s/project.eww new file mode 100644 index 0000000000..c2cb02eb1e --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/project.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\project.ewp + + + + + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/project.uvproj b/bsp/fujitsu/mb9x/mb9bf618s/project.uvproj new file mode 100644 index 0000000000..c249d3fac1 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/project.uvproj @@ -0,0 +1,630 @@ + + + 1.1 +
### uVision Project, (C) Keil Software
+ + + rtthread + 0x4 + ARM-ADS + + + MB9BF618S + Fujitsu Semiconductors + IRAM(0x20000000-0x2000FFFF) IRAM2(0x1FFF0000-0x1FFFFFFF) IROM(0x00000000-0x000FFFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "Startup\Fujitsu\MB9BF610\startup_mb9bf61x.s" ("Fujitsu MB9BF610 Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx08_1024 -FS00 -FL0100000) + 6149 + mb9bf618s.h + + + + + + + + + + SFD\Fujitsu\MB9BF610\MB9BF618S.SFR + 0 + + + + Fujitsu\MB9BF610\ + Fujitsu\MB9BF610\ + + 0 + 0 + 0 + 0 + 1 + + .\build\ + rtthread-fm3 + 1 + 0 + 0 + 1 + 0 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 1 + 0 + fromelf --bin !L --output rtthread.bin + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + 0 + + 0 + 7 + + + + + + + + + + + + + + Segger\JL2CM3.dll + + + + + 1 + 0 + 0 + 1 + 1 + 4099 + + 0 + Segger\JL2CM3.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x10000 + + + 1 + 0x0 + 0x100000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x100000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x1fff0000 + 0x20000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + MB9B610S, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND + + applications;.;CMSIS\Include;CMSIS\DeviceSupport\fujitsu\mb9bf61x;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + rtthread-fm3.sct + + + + + + + + + + + Applications + + + startup.c + 1 + applications\startup.c + + + + + application.c + 1 + applications\application.c + + + + + CMSIS + + + system_mb9bf61x.c + 1 + CMSIS\DeviceSupport\fujitsu\mb9bf61x\system_mb9bf61x.c + + + + + startup_mb9bf61x.S + 2 + CMSIS\DeviceSupport\fujitsu\mb9bf61x\startup\arm\startup_mb9bf61x.S + + + + + Compiler + + + syscalls.c + 1 + ..\..\components\libc\compilers\armlibc\syscalls.c + + + + + syscall_mem.c + 1 + ..\..\components\libc\compilers\armlibc\syscall_mem.c + + + + + stdlib.c + 1 + ..\..\components\libc\compilers\common\stdlib.c + + + + + time.c + 1 + ..\..\components\libc\compilers\common\time.c + + + + + CPU + + + div0.c + 1 + ..\..\libcpu\arm\common\div0.c + + + + + backtrace.c + 1 + ..\..\libcpu\arm\common\backtrace.c + + + + + showmem.c + 1 + ..\..\libcpu\arm\common\showmem.c + + + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m3\context_rvds.S + + + + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m3\cpuport.c + + + + + Drivers + + + serial.c + 1 + drivers\serial.c + + + + + board.c + 1 + drivers\board.c + + + + + led.c + 1 + drivers\led.c + + + + + Finsh + + + shell.c + 1 + ..\..\components\finsh\shell.c + + + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + + + Kernel + + + device.c + 1 + ..\..\src\device.c + + + + + idle.c + 1 + ..\..\src\idle.c + + + + + mempool.c + 1 + ..\..\src\mempool.c + + + + + clock.c + 1 + ..\..\src\clock.c + + + + + timer.c + 1 + ..\..\src\timer.c + + + + + ipc.c + 1 + ..\..\src\ipc.c + + + + + components.c + 1 + ..\..\src\components.c + + + + + mem.c + 1 + ..\..\src\mem.c + + + + + object.c + 1 + ..\..\src\object.c + + + + + kservice.c + 1 + ..\..\src\kservice.c + + + + + irq.c + 1 + ..\..\src\irq.c + + + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + + + thread.c + 1 + ..\..\src\thread.c + + + + + + +
diff --git a/bsp/fujitsu/mb9x/mb9bf618s/rtconfig.h b/bsp/fujitsu/mb9x/mb9bf618s/rtconfig.h new file mode 100644 index 0000000000..d887692233 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/rtconfig.h @@ -0,0 +1,75 @@ +/* RT-Thread config file */ +#ifndef __RTTHREAD_CFG_H__ +#define __RTTHREAD_CFG_H__ + +/* RT_NAME_MAX*/ +#define RT_NAME_MAX 8 + +/* RT_ALIGN_SIZE*/ +#define RT_ALIGN_SIZE 4 + +/* PRIORITY_MAX */ +#define RT_THREAD_PRIORITY_MAX 32 + +/* Tick per Second */ +#define RT_TICK_PER_SECOND 100 + +/* SECTION: RT_DEBUG */ +/* Thread Debug */ +#define RT_DEBUG +#define RT_DEBUG_COLOR +#define RT_USING_OVERFLOW_CHECK + +/* Using Hook */ +#define RT_USING_HOOK + +/* SECTION: IPC */ +/* Using Semaphore */ +#define RT_USING_SEMAPHORE + +/* Using Mutex */ +#define RT_USING_MUTEX + +/* Using Event */ +#define RT_USING_EVENT + +/* Using MailBox */ +#define RT_USING_MAILBOX + +/* Using Message Queue */ +#define RT_USING_MESSAGEQUEUE + +/* SECTION: Memory Management */ +/* Using Memory Pool Management*/ +#define RT_USING_MEMPOOL + +/* Using Dynamic Heap Management */ +#define RT_USING_HEAP + +/* Using Small MM */ +#define RT_USING_SMALL_MEM + +// +#define RT_USING_COMPONENTS_INIT + +/* SECTION: Device System */ +/* Using Device System */ +#define RT_USING_DEVICE + +/* SECTION: Console options */ +/* #define RT_TINY_SIZE */ +#define RT_USING_CONSOLE +/* the buffer size of console */ +#define RT_CONSOLEBUF_SIZE 128 +// +#define RT_CONSOLE_DEVICE_NAME "uart0" + +/* SECTION: finsh, a C-Express shell */ +/* Using FinSH as Shell*/ +#define RT_USING_FINSH +/* Using symbol table */ +#define FINSH_USING_SYMTAB +#define FINSH_USING_DESCRIPTION +#define FINSH_THREAD_STACK_SIZE 1024 + +#endif diff --git a/bsp/fujitsu/mb9x/mb9bf618s/rtconfig.py b/bsp/fujitsu/mb9x/mb9bf618s/rtconfig.py new file mode 100644 index 0000000000..474ff3dd57 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/rtconfig.py @@ -0,0 +1,126 @@ +import os + +# toolchains options +ARCH='arm' +CPU='cortex-m3' +CROSS_TOOL='keil' + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +#device options +# FM3_TYPE = +# 'MB9B610S','MB9B610T', +FM3_TYPE = 'MB9B610S' + +# cross_tool provides the cross compiler +# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR + +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = r'F:\Program Files\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_EABI_2013.05.23\bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = r'E:/Keil' +elif CROSS_TOOL == 'iar': + PLATFORM = 'iar' + EXEC_PATH = r'C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation' + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'arm-none-eabi-' + CC = PREFIX + 'gcc' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' + CFLAGS = DEVICE + AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-fm3.ld' + + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' +elif PLATFORM == 'armcc': + # toolchains + CC = 'armcc' + AS = 'armasm' + AR = 'armar' + LINK = 'armlink' + TARGET_EXT = 'axf' + + DEVICE = ' --device DARMSTM' + CFLAGS = DEVICE + ' --apcs=interwork' + AFLAGS = DEVICE + LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter rtthread-fm3.sct' + + CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' + LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' + + EXEC_PATH += '/arm/bin40/' + + if BUILD == 'debug': + CFLAGS += ' -g -O0' + AFLAGS += ' -g' + else: + CFLAGS += ' -O2' + + POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' + +elif PLATFORM == 'iar': + # toolchains + CC = 'iccarm' + AS = 'iasmarm' + AR = 'iarchive' + LINK = 'ilinkarm' + TARGET_EXT = 'out' + + CFLAGS = '' + CFLAGS += ' --diag_suppress Pa050' + CFLAGS += ' --no_cse' + CFLAGS += ' --no_unroll' + CFLAGS += ' --no_inline' + CFLAGS += ' --no_code_motion' + CFLAGS += ' --no_tbaa' + CFLAGS += ' --no_clustering' + CFLAGS += ' --no_scheduling' + CFLAGS += ' --debug' + CFLAGS += ' --endian=little' + CFLAGS += ' --cpu=Cortex-M3' + CFLAGS += ' -e' + CFLAGS += ' --fpu=None' + CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' + CFLAGS += ' -Ol' + CFLAGS += ' --use_c++_inline' + + AFLAGS = '' + AFLAGS += ' -s+' + AFLAGS += ' -w+' + AFLAGS += ' -r' + AFLAGS += ' --cpu Cortex-M3' + AFLAGS += ' --fpu None' + AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"' + + LFLAGS = ' --config rtthread-fm3.icf' + LFLAGS += ' --semihosting' + LFLAGS += ' --entry __iar_program_start' + + EXEC_PATH = EXEC_PATH + '/arm/bin/' + POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec' diff --git a/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.icf b/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.icf new file mode 100644 index 0000000000..7876fa0c81 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.icf @@ -0,0 +1,34 @@ +/*###ICF### Section handled by ICF editor, don't touch! ****/ +/*-Editor annotation file-*/ +/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ +/*-Specials-*/ +define symbol __ICFEDIT_intvec_start__ = 0x0; +/*-Memory Regions-*/ +define symbol __ICFEDIT_region_ROM_start__ = 0x0; +define symbol __ICFEDIT_region_ROM_end__ = 0x000FFFFF; +define symbol __ICFEDIT_region_RAM_start__ = 0x1FFF0000; +define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF; +/*-Sizes-*/ +define symbol __ICFEDIT_size_cstack__ = 0x400; +define symbol __ICFEDIT_size_heap__ = 0x000; +/**** End of ICF editor section. ###ICF###*/ + + +define memory mem with size = 4G; +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; +define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; + +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; +define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* }; + +initialize by copy { readwrite }; +do not initialize { section .noinit }; + +keep { section FSymTab }; +keep { section VSymTab }; +keep { section .rti_fn* }; +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; + +place in ROM_region { readonly, block RTT_INIT_FUNC }; +place in RAM_region { readwrite, block CSTACK, last block HEAP }; diff --git a/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.ld b/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.ld new file mode 100644 index 0000000000..6696a0b1c2 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.ld @@ -0,0 +1,143 @@ +/* + * linker script for Fujitsu with GNU ld + * aozima 2013-07-13 + */ + +/* Program Entry, set to mark it as "used" and avoid gc */ +MEMORY +{ + CODE (rx) : ORIGIN = 0x00000000, LENGTH = 1M /* 1MB flash */ + DATA (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128KB sram, 64KB SRAM0 + 64KB SRAM1 */ +} +ENTRY(Reset_Handler) +_system_stack_size = 0x400; + +SECTIONS +{ + .text : + { + . = ALIGN(4); + _isr_vector = .; /* define isr_vector start address */ + _stext = .; + KEEP(*(.isr_vector)) /* Startup code */ + . = ALIGN(4); + *(.text) /* remaining code */ + *(.text.*) /* remaining code */ + *(.rodata) /* read-only data (constants) */ + *(.rodata*) + *(.glue_7) + *(.glue_7t) + *(.gnu.linkonce.t*) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(4); + + /* section information for initial. */ + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(4); + + . = ALIGN(4); + _etext = .; + } > CODE = 0 + + /* .ARM.exidx is sorted, so has to go in its own output section. */ + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + + /* This is used by the startup in order to initialize the .data secion */ + _sidata = .; + } > CODE + __exidx_end = .; + + /* .data section which is used for initialized data */ + + .data : AT (_sidata) + { + . = ALIGN(4); + /* This is used by the startup in order to initialize the .data secion */ + _sdata = . ; + + *(.data) + *(.data.*) + *(.gnu.linkonce.d*) + + . = ALIGN(4); + /* This is used by the startup in order to initialize the .data secion */ + _edata = . ; + } >DATA + + .stack : + { + . = . + _system_stack_size; + . = ALIGN(4); + _estack = .; + } >DATA + + __bss_start = .; + .bss : + { + . = ALIGN(4); + /* This is used by the startup in order to initialize the .bss secion */ + _sbss = .; + + *(.bss) + *(.bss.*) + *(COMMON) + + . = ALIGN(4); + /* This is used by the startup in order to initialize the .bss secion */ + _ebss = . ; + + *(.bss.init) + } > DATA + __bss_end = .; + + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} diff --git a/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.sct b/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.sct new file mode 100644 index 0000000000..405f2ebb65 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/rtthread-fm3.sct @@ -0,0 +1,15 @@ +; ************************************************************* +; *** Scatter-Loading Description File generated by uVision *** +; ************************************************************* + +LR_IROM1 0x00000000 0x00100000 { ; load region size_region + ER_IROM1 0x00000000 0x00100000 { ; load address = execution address + *.o (RESET, +First) + *(InRoot$$Sections) + .ANY (+RO) + } + RW_IRAM1 0x1FFF0000 0x00020000 { ; RW data + .ANY (+RW +ZI) + } +} + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/template.ewp b/bsp/fujitsu/mb9x/mb9bf618s/template.ewp new file mode 100644 index 0000000000..4883fc16e7 --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/template.ewp @@ -0,0 +1,1839 @@ + + + + 2 + + Debug + + ARM + + 1 + + General + 3 + + 21 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 28 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 1 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 15 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 1 + + + + + + + BILINK + 0 + + + + + Release + + ARM + + 0 + + General + 3 + + 21 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ICCARM + 2 + + 28 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AARM + 2 + + 8 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OBJCOPY + 0 + + 1 + 1 + 0 + + + + + + + + + CUSTOM + 3 + + + + + + + BICOMP + 0 + + + + BUILDACTION + 1 + + + + + + + ILINK + 0 + + 15 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IARCHIVE + 0 + + 0 + 1 + 0 + + + + + + + BILINK + 0 + + + + + + diff --git a/bsp/fujitsu/mb9x/mb9bf618s/template.uvproj b/bsp/fujitsu/mb9x/mb9bf618s/template.uvproj new file mode 100644 index 0000000000..ec72dd0f7f --- /dev/null +++ b/bsp/fujitsu/mb9x/mb9bf618s/template.uvproj @@ -0,0 +1,394 @@ + + + + 1.1 + +
### uVision Project, (C) Keil Software
+ + + + rtthread + 0x4 + ARM-ADS + + + MB9BF618S + Fujitsu Semiconductors + IRAM(0x20000000-0x2000FFFF) IRAM2(0x1FFF0000-0x1FFFFFFF) IROM(0x00000000-0x000FFFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") + + "Startup\Fujitsu\MB9BF610\startup_mb9bf61x.s" ("Fujitsu MB9BF610 Startup Code") + UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx08_1024 -FS00 -FL0100000) + 6149 + mb9bf618s.h + + + + + + + + + + SFD\Fujitsu\MB9BF610\MB9BF618S.SFR + 0 + + + + Fujitsu\MB9BF610\ + Fujitsu\MB9BF610\ + + 0 + 0 + 0 + 0 + 1 + + .\build\ + rtthread-fm3 + 1 + 0 + 0 + 1 + 0 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 1 + 0 + fromelf --bin !L --output rtthread.bin + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM3 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM3 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + 0 + + 0 + 7 + + + + + + + + + + + + + + Segger\JL2CM3.dll + + + + + 1 + 0 + 0 + 1 + 1 + 4099 + + 0 + Segger\JL2CM3.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M3" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 8 + 0 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x10000 + + + 1 + 0x0 + 0x100000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x100000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x1fff0000 + 0x20000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + rtthread-fm3.sct + + + + + + + + + + + +
diff --git a/bsp/mb9bf500r/CMSIS/SConscript b/bsp/mb9bf500r/CMSIS/SConscript deleted file mode 100644 index 165b344fe8..0000000000 --- a/bsp/mb9bf500r/CMSIS/SConscript +++ /dev/null @@ -1,19 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -src = Glob('*.c') - -# add for startup script -if rtconfig.CROSS_TOOL == 'gcc': - src = src + ['start_gcc.S'] -elif rtconfig.CROSS_TOOL == 'keil': - src = src + ['start_rvds.S'] -elif rtconfig.CROSS_TOOL == 'iar': - src = src + ['start_iar.S'] - -CPPPATH = [GetCurrentDir()] - -group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, LIBRARY = '') - -Return('group') diff --git a/bsp/mb9bf500r/CMSIS/core_cm3.c b/bsp/mb9bf500r/CMSIS/core_cm3.c deleted file mode 100644 index f176c3acca..0000000000 --- a/bsp/mb9bf500r/CMSIS/core_cm3.c +++ /dev/null @@ -1,359 +0,0 @@ -/**************************************************************************//** - * @file core_cm3.c - * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Source File - * @version V1.40 - * @date 18. February 2010 - * - * @note - * Copyright (C) 2009-2010 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#include - -/* define compiler specific symbols */ -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */ - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - -#endif - - -/* ########################## Core Instruction Access ######################### */ - -#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ - -/** - * @brief Reverse byte order (16 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in unsigned short value - */ -#if (__ARMCC_VERSION < 400677) -__ASM uint32_t __REV16(uint16_t value) -{ - rev16 r0, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Reverse byte order in signed short value with sign extension to integer - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in signed short value with sign extension to integer - */ -#if (__ARMCC_VERSION < 400677) -__ASM int32_t __REVSH(int16_t value) -{ - revsh r0, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - - /** - * @brief Remove the exclusive lock created by ldrex - * - * Removes the exclusive lock which is created by ldrex. - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __CLREX(void) -{ - clrex -} -#endif /* __ARMCC_VERSION */ - - -#elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ -/* obsolete */ -#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ -/* obsolete */ -#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ -/* obsolete */ -#endif - - -/* ########################### Core Function Access ########################### */ - -#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ - -/** - * @brief Return the Control Register value -* -* @return Control value - * - * Return the content of the control register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_CONTROL(void) -{ - mrs r0, control - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Control Register value - * - * @param control Control value - * - * Set the control register - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __set_CONTROL(uint32_t control) -{ - msr control, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Get IPSR Register value - * - * @return uint32_t IPSR value - * - * return the content of the IPSR register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_IPSR(void) -{ - mrs r0, ipsr - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Get APSR Register value - * - * @return uint32_t APSR value - * - * return the content of the APSR register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_APSR(void) -{ - mrs r0, apsr - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Get xPSR Register value - * - * @return uint32_t xPSR value - * - * return the content of the xPSR register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_xPSR(void) -{ - mrs r0, xpsr - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Process Stack Pointer - * - * @return ProcessStackPointer - * - * Return the actual process stack pointer - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_PSP(void) -{ - mrs r0, psp - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Process Stack Pointer - * - * @param topOfProcStack Process Stack Pointer - * - * Assign the value ProcessStackPointer to the MSP - * (process stack pointer) Cortex processor register - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __set_PSP(uint32_t topOfProcStack) -{ - msr psp, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Main Stack Pointer - * - * @return Main Stack Pointer - * - * Return the current value of the MSP (main stack pointer) - * Cortex processor register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_MSP(void) -{ - mrs r0, msp - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Main Stack Pointer - * - * @param topOfMainStack Main Stack Pointer - * - * Assign the value mainStackPointer to the MSP - * (main stack pointer) Cortex processor register - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __set_MSP(uint32_t mainStackPointer) -{ - msr msp, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Base Priority value - * - * @return BasePriority - * - * Return the content of the base priority register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_BASEPRI(void) -{ - mrs r0, basepri - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Base Priority value - * - * @param basePri BasePriority - * - * Set the base priority register - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __set_BASEPRI(uint32_t basePri) -{ - msr basepri, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Priority Mask value - * - * @return PriMask - * - * Return state of the priority mask bit from the priority mask register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_PRIMASK(void) -{ - mrs r0, primask - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Priority Mask value - * - * @param priMask PriMask - * - * Set the priority mask bit in the priority mask register - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __set_PRIMASK(uint32_t priMask) -{ - msr primask, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Fault Mask value - * - * @return FaultMask - * - * Return the content of the fault mask register - */ -#if (__ARMCC_VERSION < 400000) -__ASM uint32_t __get_FAULTMASK(void) -{ - mrs r0, faultmask - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Fault Mask value - * - * @param faultMask faultMask value - * - * Set the fault mask register - */ -#if (__ARMCC_VERSION < 400000) -__ASM void __set_FAULTMASK(uint32_t faultMask) -{ - msr faultmask, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the FPSCR value - * - * @return FloatingPointStatusControlRegister - * - * Return the content of the FPSCR register - */ - -/** - * @brief Set the FPSCR value - * - * @param fpscr FloatingPointStatusControlRegister - * - * Set the FPSCR register - */ - - -#elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ -/* obsolete */ -#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ -/* obsolete */ -#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ -/* obsolete */ -#endif diff --git a/bsp/mb9bf500r/CMSIS/core_cm3.h b/bsp/mb9bf500r/CMSIS/core_cm3.h deleted file mode 100644 index e062e30606..0000000000 --- a/bsp/mb9bf500r/CMSIS/core_cm3.h +++ /dev/null @@ -1,1166 +0,0 @@ -/**************************************************************************//** - * @file core_cm3.h - * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File - * @version V1.40 - * @date 16. February 2010 - * - * @note - * Copyright (C) 2009-2010 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CM3_H__ -#define __CORE_CM3_H__ - -/** @addtogroup CMSIS_CM3_core_LintCinfiguration CMSIS CM3 Core Lint Configuration - * - * List of Lint messages which will be suppressed and not shown: - * - not yet checked - * . - * Note: To re-enable a Message, insert a space before 'lint' * - * - */ - - -/** @addtogroup CMSIS_CM3_core_definitions CM3 Core Definitions - This file defines all structures and symbols for CMSIS core: - - CMSIS version number - - Cortex-M core registers and bitfields - - Cortex-M core peripheral base address - @{ - */ - -#ifdef __cplusplus - extern "C" { -#endif - -#define __CM3_CMSIS_VERSION_MAIN (0x01) /*!< [31:16] CMSIS HAL main version */ -#define __CM3_CMSIS_VERSION_SUB (0x40) /*!< [15:0] CMSIS HAL sub version */ -#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | __CM3_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x03) /*!< Cortex core */ - -#ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 /*!< standard definition for NVIC Priority Bits */ -#endif - - -#include /* Include standard types */ - - - -/** - * IO definitions - * - * define access restrictions to peripheral registers - */ - -#ifdef __cplusplus - #define __I volatile /*!< defines 'read only' permissions */ -#else - #define __I volatile const /*!< defines 'read only' permissions */ -#endif -#define __O volatile /*!< defines 'write only' permissions */ -#define __IO volatile /*!< defines 'read / write' permissions */ - - - -/******************************************************************************* - * Register Abstraction - ******************************************************************************/ -/** @addtogroup CMSIS_CM3_core_register CMSIS CM3 Core Register - @{ -*/ - -/** @addtogroup CMSIS_ARM_CORE CMSIS ARM Core - memory mapped structure for Nested Vectored Interrupt Controller (NVIC) - @{ - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; -#else - uint32_t _reserved0:16; - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; - uint32_t w; -} APSR_Type; - -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 00..08 Exception number */ - uint32_t _reserved0:23; - } b; - uint32_t w; -} IPSR_Type; - -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 00..08 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; -#else - uint32_t _reserved0:7; - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; - uint32_t w; -} xPSR_Type; - -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 00 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 01 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 02 FP extension active flag */ - uint32_t _reserved0:29; - } b; - uint32_t w; -} CONTROL_Type; - -/*@}*/ /* end of group CMSIS_ARM_CORE */ - - -/** @addtogroup CMSIS_CM3_NVIC CMSIS CM3 NVIC - memory mapped structure for Nested Vectored Interrupt Controller (NVIC) - @{ - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 Software Trigger Interrupt Register */ -} NVIC_Type; -/*@}*/ /* end of group CMSIS_CM3_NVIC */ - - -/** @addtogroup CMSIS_CM3_SCB CMSIS CM3 SCB - memory mapped structure for System Control Block (SCB) - @{ - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x00 CPU ID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x04 Interrupt Control State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x08 Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x0C Application Interrupt / Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x10 System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x14 Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x18 System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x24 System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x28 Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x2C Hard Fault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x30 Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x34 Mem Manage Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x38 Bus Fault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x3C Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x40 Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x48 Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x4C Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x50 Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x60 ISA Feature Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFul << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFul << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFul << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFul << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1ul << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1ul << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1ul << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1ul << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1ul << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1ul << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1ul << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFul << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1ul << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFul << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ -#define SCB_VTOR_TBLBASE_Msk (0x1FFul << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ - -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFul << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFul << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFul << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1ul << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7ul << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1ul << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1ul << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1ul << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1ul << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1ul << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1ul << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1ul << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1ul << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1ul << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1ul << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1ul << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1ul << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1ul << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1ul << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1ul << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1ul << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1ul << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1ul << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1ul << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1ul << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1ul << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1ul << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1ul << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1ul << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1ul << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1ul << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFul << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFul << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFul << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1ul << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1ul << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1ul << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1ul << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1ul << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1ul << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1ul << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1ul << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ -/*@}*/ /* end of group CMSIS_CM3_SCB */ - - -/** @addtogroup CMSIS_CM3_SysTick CMSIS CM3 SysTick - memory mapped structure for SysTick - @{ - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x00 SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x04 SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x08 SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x0C SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1ul << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1ul << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1ul << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1ul << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFul << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFul << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1ul << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1ul << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFul << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ -/*@}*/ /* end of group CMSIS_CM3_SysTick */ - - -/** @addtogroup CMSIS_CM3_ITM CMSIS CM3 ITM - memory mapped structure for Instrumentation Trace Macrocell (ITM) - @{ - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x00 ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: ITM Trace Control Register */ - uint32_t RESERVED3[29]; - __IO uint32_t IWR; /*!< Offset: ITM Integration Write Register */ - __IO uint32_t IRR; /*!< Offset: ITM Integration Read Register */ - __IO uint32_t IMCR; /*!< Offset: ITM Integration Mode Control Register */ - uint32_t RESERVED4[43]; - __IO uint32_t LAR; /*!< Offset: ITM Lock Access Register */ - __IO uint32_t LSR; /*!< Offset: ITM Lock Status Register */ - uint32_t RESERVED5[6]; - __I uint32_t PID4; /*!< Offset: ITM Peripheral Identification Register #4 */ - __I uint32_t PID5; /*!< Offset: ITM Peripheral Identification Register #5 */ - __I uint32_t PID6; /*!< Offset: ITM Peripheral Identification Register #6 */ - __I uint32_t PID7; /*!< Offset: ITM Peripheral Identification Register #7 */ - __I uint32_t PID0; /*!< Offset: ITM Peripheral Identification Register #0 */ - __I uint32_t PID1; /*!< Offset: ITM Peripheral Identification Register #1 */ - __I uint32_t PID2; /*!< Offset: ITM Peripheral Identification Register #2 */ - __I uint32_t PID3; /*!< Offset: ITM Peripheral Identification Register #3 */ - __I uint32_t CID0; /*!< Offset: ITM Component Identification Register #0 */ - __I uint32_t CID1; /*!< Offset: ITM Component Identification Register #1 */ - __I uint32_t CID2; /*!< Offset: ITM Component Identification Register #2 */ - __I uint32_t CID3; /*!< Offset: ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFul << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1ul << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_ATBID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_ATBID_Msk (0x7Ful << ITM_TCR_ATBID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3ul << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1ul << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1ul << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1ul << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1ul << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1ul << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Integration Write Register Definitions */ -#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ -#define ITM_IWR_ATVALIDM_Msk (1ul << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ - -/* ITM Integration Read Register Definitions */ -#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ -#define ITM_IRR_ATREADYM_Msk (1ul << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ - -/* ITM Integration Mode Control Register Definitions */ -#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ -#define ITM_IMCR_INTEGRATION_Msk (1ul << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1ul << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1ul << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1ul << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ -/*@}*/ /* end of group CMSIS_CM3_ITM */ - - -/** @addtogroup CMSIS_CM3_InterruptType CMSIS CM3 Interrupt Type - memory mapped structure for Interrupt Type - @{ - */ -typedef struct -{ - uint32_t RESERVED0; - __I uint32_t ICTR; /*!< Offset: 0x04 Interrupt Control Type Register */ - __IO uint32_t ACTLR; /*!< Offset: 0x08 Auxiliary Control Register */ -} InterruptType_Type; - -/* Interrupt Controller Type Register Definitions */ -#define InterruptType_ICTR_INTLINESNUM_Pos 0 /*!< InterruptType ICTR: INTLINESNUM Position */ -#define InterruptType_ICTR_INTLINESNUM_Msk (0x1Ful << InterruptType_ICTR_INTLINESNUM_Pos) /*!< InterruptType ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#define InterruptType_ACTLR_DISFOLD_Pos 2 /*!< InterruptType ACTLR: DISFOLD Position */ -#define InterruptType_ACTLR_DISFOLD_Msk (1ul << InterruptType_ACTLR_DISFOLD_Pos) /*!< InterruptType ACTLR: DISFOLD Mask */ - -#define InterruptType_ACTLR_DISDEFWBUF_Pos 1 /*!< InterruptType ACTLR: DISDEFWBUF Position */ -#define InterruptType_ACTLR_DISDEFWBUF_Msk (1ul << InterruptType_ACTLR_DISDEFWBUF_Pos) /*!< InterruptType ACTLR: DISDEFWBUF Mask */ - -#define InterruptType_ACTLR_DISMCYCINT_Pos 0 /*!< InterruptType ACTLR: DISMCYCINT Position */ -#define InterruptType_ACTLR_DISMCYCINT_Msk (1ul << InterruptType_ACTLR_DISMCYCINT_Pos) /*!< InterruptType ACTLR: DISMCYCINT Mask */ -/*@}*/ /* end of group CMSIS_CM3_InterruptType */ - - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1) -/** @addtogroup CMSIS_CM3_MPU CMSIS CM3 MPU - memory mapped structure for Memory Protection Unit (MPU) - @{ - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x00 MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x04 MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x08 MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x0C MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x10 MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x14 MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x18 MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x1C MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x20 MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x24 MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x28 MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFul << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFul << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1ul << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1ul << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1ul << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1ul << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFul << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFul << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1ul << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFul << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: XN Position */ -#define MPU_RASR_XN_Msk (1ul << MPU_RASR_XN_Pos) /*!< MPU RASR: XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: AP Position */ -#define MPU_RASR_AP_Msk (7ul << MPU_RASR_AP_Pos) /*!< MPU RASR: AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: TEX Position */ -#define MPU_RASR_TEX_Msk (7ul << MPU_RASR_TEX_Pos) /*!< MPU RASR: TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: Shareable bit Position */ -#define MPU_RASR_S_Msk (1ul << MPU_RASR_S_Pos) /*!< MPU RASR: Shareable bit Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: Cacheable bit Position */ -#define MPU_RASR_C_Msk (1ul << MPU_RASR_C_Pos) /*!< MPU RASR: Cacheable bit Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: Bufferable bit Position */ -#define MPU_RASR_B_Msk (1ul << MPU_RASR_B_Pos) /*!< MPU RASR: Bufferable bit Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFul << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1Ful << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENA_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENA_Msk (0x1Ful << MPU_RASR_ENA_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@}*/ /* end of group CMSIS_CM3_MPU */ -#endif - - -/** @addtogroup CMSIS_CM3_CoreDebug CMSIS CM3 Core Debug - memory mapped structure for Core Debug Register - @{ - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x00 Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x04 Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x08 Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x0C Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFul << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1ul << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1ul << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1ul << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1ul << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1ul << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1ul << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1ul << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1ul << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1ul << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1ul << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1ul << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1ul << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1Ful << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1ul << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1ul << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1ul << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1ul << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1ul << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1ul << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1ul << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1ul << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1ul << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1ul << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1ul << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1ul << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1ul << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ -/*@}*/ /* end of group CMSIS_CM3_CoreDebug */ - - -/* Memory mapping of Cortex-M3 Hardware */ -#define SCS_BASE (0xE000E000) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000) /*!< ITM Base Address */ -#define CoreDebug_BASE (0xE000EDF0) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00) /*!< System Control Block Base Address */ - -#define InterruptType ((InterruptType_Type *) SCS_BASE) /*!< Interrupt Type Register */ -#define SCB ((SCB_Type *) SCB_BASE) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE) /*!< ITM configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if defined (__MPU_PRESENT) && (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type*) MPU_BASE) /*!< Memory Protection Unit */ -#endif - -/*@}*/ /* end of group CMSIS_CM3_core_register */ - - -/******************************************************************************* - * Hardware Abstraction Layer - ******************************************************************************/ - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */ - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - -#endif - -/* ########################## Core Instruction Access ######################### */ -#include "core_cmInstr.h" - -/* ########################### Core Function Access ########################### */ -#include "core_cmFunc.h" - - -/** @addtogroup CMSIS_CM3_Core_FunctionInterface CMSIS CM3 Core Function Interface - Core Function Interface containing: - - Core NVIC Functions - - Core SysTick Functions - - Core Reset Functions -*/ -/*@{*/ - -/* ########################## NVIC functions #################################### */ - -/** - * @brief Set the Priority Grouping in NVIC Interrupt Controller - * - * @param PriorityGroup is priority grouping field - * - * Set the priority grouping field using the required unlock sequence. - * The parameter priority_grouping is assigned to the field - * SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. - * In case of a conflict between priority grouping and available - * priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - */ -static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - (0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - -/** - * @brief Get the Priority Grouping from NVIC Interrupt Controller - * - * @return priority grouping field - * - * Get the priority grouping from NVIC Interrupt Controller. - * priority grouping is SCB->AIRCR [10:8] PRIGROUP field. - */ -static __INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - -/** - * @brief Enable Interrupt in NVIC Interrupt Controller - * - * @param IRQn The positive number of the external interrupt to enable - * - * Enable a device specific interupt in the NVIC interrupt controller. - * The interrupt number cannot be a negative value. - */ -static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ -} - -/** - * @brief Disable the interrupt line for external interrupt specified - * - * @param IRQn The positive number of the external interrupt to disable - * - * Disable a device specific interupt in the NVIC interrupt controller. - * The interrupt number cannot be a negative value. - */ -static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - -/** - * @brief Read the interrupt pending bit for a device specific interrupt source - * - * @param IRQn The number of the device specifc interrupt - * @return 1 = interrupt pending, 0 = interrupt not pending - * - * Read the pending register in NVIC and return 1 if its status is pending, - * otherwise it returns 0 - */ -static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - -/** - * @brief Set the pending bit for an external interrupt - * - * @param IRQn The number of the interrupt for set pending - * - * Set the pending bit for the specified interrupt. - * The interrupt number cannot be a negative value. - */ -static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - -/** - * @brief Clear the pending bit for an external interrupt - * - * @param IRQn The number of the interrupt for clear pending - * - * Clear the pending bit for the specified interrupt. - * The interrupt number cannot be a negative value. - */ -static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - -/** - * @brief Read the active bit for an external interrupt - * - * @param IRQn The number of the interrupt for read active bit - * @return 1 = interrupt active, 0 = interrupt not active - * - * Read the active register in NVIC and returns 1 if its status is active, - * otherwise it returns 0. - */ -static __INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - -/** - * @brief Set the priority for an interrupt - * - * @param IRQn The number of the interrupt for set priority - * @param priority The priority to set - * - * Set the priority for the specified interrupt. The interrupt - * number can be positive to specify an external (device specific) - * interrupt, or negative to specify an internal (core) interrupt. - * - * Note: The priority cannot be set for every core interrupt. - */ -static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M3 System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - -/** - * @brief Read the priority for an interrupt - * - * @param IRQn The number of the interrupt for get priority - * @return The priority for the interrupt - * - * Read the priority for the specified interrupt. The interrupt - * number can be positive to specify an external (device specific) - * interrupt, or negative to specify an internal (core) interrupt. - * - * The returned priority value is automatically aligned to the implemented - * priority bits of the microcontroller. - * - * Note: The priority cannot be set for every core interrupt. - */ -static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M3 system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** - * @brief Encode the priority for an interrupt - * - * @param PriorityGroup The used priority group - * @param PreemptPriority The preemptive priority value (starting from 0) - * @param SubPriority The sub priority value (starting from 0) - * @return The encoded priority for the interrupt - * - * Encode the priority for an interrupt with the given priority group, - * preemptive priority value and sub priority value. - * In case of a conflict between priority grouping and available - * priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - * - * The returned priority value can be used for NVIC_SetPriority(...) function - */ -static __INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** - * @brief Decode the priority of an interrupt - * - * @param Priority The priority for the interrupt - * @param PriorityGroup The used priority group - * @param pPreemptPriority The preemptive priority value (starting from 0) - * @param pSubPriority The sub priority value (starting from 0) - * - * Decode an interrupt priority value with the given priority group to - * preemptive priority value and sub priority value. - * In case of a conflict between priority grouping and available - * priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - * - * The priority value can be retrieved with NVIC_GetPriority(...) function - */ -static __INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - - -/* ################################## SysTick function ############################################ */ - -#if (!defined (__Vendor_SysTickConfig)) || (__Vendor_SysTickConfig == 0) - -/** - * @brief Initialize and start the SysTick counter and its interrupt. - * - * @param ticks number of ticks between two interrupts - * @return 1 = failed, 0 = successful - * - * Initialise the system tick timer and its interrupt and start the - * system tick timer / counter in free running mode to generate - * periodical interrupts. - */ -static __INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - - - - -/* ################################## Reset function ############################################ */ - -/** - * @brief Initiate a system reset request. - * - * Initiate a system reset request to reset the MCU - */ -static __INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@}*/ /* end of group CMSIS_CM3_Core_FunctionInterface */ - - - -/* ##################################### Debug In/Output function ########################################### */ - -/** @addtogroup CMSIS_CM3_CoreDebugInterface CMSIS CM3 Core Debug Interface - Core Debug Interface containing: - - Core Debug Receive / Transmit Functions - - Core Debug Defines - - Core Debug Variables -*/ -/*@{*/ - -extern volatile int ITM_RxBuffer; /*!< variable to receive characters */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< value identifying ITM_RxBuffer is ready for next character */ - - -/** - * @brief Outputs a character via the ITM channel 0 - * - * @param ch character to output - * @return character to output - * - * The function outputs a character via the ITM channel 0. - * The function returns when no debugger is connected that has booked the output. - * It is blocking when a debugger is connected, but the previous character send is not transmitted. - */ -static __INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk) && /* Trace enabled */ - (ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1ul << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** - * @brief Inputs a character via variable ITM_RxBuffer - * - * @return received character, -1 = no character received - * - * The function inputs a character via variable ITM_RxBuffer. - * The function returns when no debugger is connected that has booked the output. - * It is blocking when a debugger is connected, but the previous character send is not transmitted. - */ -static __INLINE int ITM_ReceiveChar (void) { - int ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** - * @brief Check if a character via variable ITM_RxBuffer is available - * - * @return 1 = character available, 0 = no character available - * - * The function checks variable ITM_RxBuffer whether a character is available or not. - * The function returns '1' if a character is available and '0' if no character is available. - */ -static __INLINE int ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@}*/ /* end of group CMSIS_CM3_core_DebugInterface */ - - -#ifdef __cplusplus -} -#endif - -/*@}*/ /* end of group CMSIS_CM3_core_definitions */ - -#endif /* __CORE_CM3_H__ */ - -/*lint -restore */ diff --git a/bsp/mb9bf500r/CMSIS/core_cmFunc.h b/bsp/mb9bf500r/CMSIS/core_cmFunc.h deleted file mode 100644 index b9500f5510..0000000000 --- a/bsp/mb9bf500r/CMSIS/core_cmFunc.h +++ /dev/null @@ -1,912 +0,0 @@ -/**************************************************************************//** - * @file core_cmFunc.h - * @brief CMSIS Cortex-M Core Function Access Header File - * @version V1.40 - * @date 16. February 2010 - * - * @note - * Copyright (C) 2009-2010 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CMFUNC_H__ -#define __CORE_CMFUNC_H__ - -/* ########################### Core Function Access ########################### */ - -#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ -/* ARM armcc specific functions */ - - /** - * @brief Enable IRQ Interrupts - * - * Enables IRQ interrupts by clearing the I-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -/* intrinsic void __enable_irq(); */ - - /** - * @brief Disable IRQ Interrupts - * - * Disables IRQ interrupts by setting the I-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -/* intrinsic void __disable_irq(); */ - -/** - * @brief Return the Control Register value -* -* @return Control value - * - * Return the content of the control register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_CONTROL(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_CONTROL(void) -{ - register uint32_t __regControl __ASM("control"); - return(__regControl); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Control Register value - * - * @param control Control value - * - * Set the control register - */ -#if (__ARMCC_VERSION < 400000) -extern void __set_CONTROL(uint32_t control); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE void __set_CONTROL(uint32_t control) -{ - register uint32_t __regControl __ASM("control"); - __regControl = control; -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Get IPSR Register value - * - * @return uint32_t IPSR value - * - * return the content of the IPSR register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_IPSR(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_IPSR(void) -{ - register uint32_t __regIPSR __ASM("ipsr"); - return(__regIPSR); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Get APSR Register value - * - * @return uint32_t APSR value - * - * return the content of the APSR register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_APSR(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_APSR(void) -{ - register uint32_t __regAPSR __ASM("apsr"); - return(__regAPSR); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Get xPSR Register value - * - * @return uint32_t xPSR value - * - * return the content of the xPSR register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_xPSR(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_xPSR(void) -{ - register uint32_t __regXPSR __ASM("xpsr"); - return(__regXPSR); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Process Stack Pointer - * - * @return ProcessStackPointer - * - * Return the actual process stack pointer - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_PSP(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_PSP(void) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - return(__regProcessStackPointer); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Process Stack Pointer - * - * @param topOfProcStack Process Stack Pointer - * - * Assign the value ProcessStackPointer to the MSP - * (process stack pointer) Cortex processor register - */ -#if (__ARMCC_VERSION < 400000) -extern void __set_PSP(uint32_t topOfProcStack); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE void __set_PSP(uint32_t topOfProcStack) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - __regProcessStackPointer = topOfProcStack; -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Main Stack Pointer - * - * @return Main Stack Pointer - * - * Return the current value of the MSP (main stack pointer) - * Cortex processor register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_MSP(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_MSP(void) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - return(__regMainStackPointer); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Main Stack Pointer - * - * @param topOfMainStack Main Stack Pointer - * - * Assign the value mainStackPointer to the MSP - * (main stack pointer) Cortex processor register - */ -#if (__ARMCC_VERSION < 400000) -extern void __set_MSP(uint32_t topOfMainStack); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE void __set_MSP(uint32_t mainStackPointer) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - __regMainStackPointer = mainStackPointer; -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Priority Mask value - * - * @return PriMask - * - * Return state of the priority mask bit from the priority mask register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_PRIMASK(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_PRIMASK(void) -{ - register uint32_t __regPriMask __ASM("primask"); - return(__regPriMask); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Priority Mask value - * - * @param priMask PriMask - * - * Set the priority mask bit in the priority mask register - */ -#if (__ARMCC_VERSION < 400000) -extern void __set_PRIMASK(uint32_t priMask); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE void __set_PRIMASK(uint32_t priMask) -{ - register uint32_t __regPriMask __ASM("primask"); - __regPriMask = (priMask); -} -#endif /* __ARMCC_VERSION */ - - -#if (__CORTEX_M >= 0x03) - - /** - * @brief Enable FIQ Interrupts - * - * Enables FIQ interrupts by clearing the F-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -#define __enable_fault_irq __enable_fiq - - /** - * @brief Disable FIQ Interrupts - * - * Disables FIQ interrupts by setting the F-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -#define __disable_fault_irq __disable_fiq - -/** - * @brief Return the Base Priority value - * - * @return BasePriority - * - * Return the content of the base priority register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_BASEPRI(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_BASEPRI(void) -{ - register uint32_t __regBasePri __ASM("basepri"); - return(__regBasePri); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Base Priority value - * - * @param basePri BasePriority - * - * Set the base priority register - */ -#if (__ARMCC_VERSION < 400000) -extern void __set_BASEPRI(uint32_t basePri); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE void __set_BASEPRI(uint32_t basePri) -{ - register uint32_t __regBasePri __ASM("basepri"); - __regBasePri = (basePri & 0xff); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Return the Fault Mask value - * - * @return FaultMask - * - * Return the content of the fault mask register - */ -#if (__ARMCC_VERSION < 400000) -extern uint32_t __get_FAULTMASK(void); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE uint32_t __get_FAULTMASK(void) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - return(__regFaultMask); -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Set the Fault Mask value - * - * @param faultMask faultMask value - * - * Set the fault mask register - */ -#if (__ARMCC_VERSION < 400000) -extern void __set_FAULTMASK(uint32_t faultMask); -#else /* (__ARMCC_VERSION >= 400000) */ -static __INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - __regFaultMask = (faultMask & 1); -} -#endif /* __ARMCC_VERSION */ - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** - * @brief Return the FPSCR value - * - * @return FloatingPointStatusControlRegister - * - * Return the content of the FPSCR register - */ -static __INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) - register uint32_t __regfpscr __ASM("fpscr"); - return(__regfpscr); -#else - return(0); -#endif -} - -/** - * @brief Set the FPSCR value - * - * @param fpscr FloatingPointStatusControlRegister - * - * Set the FPSCR register - */ -static __INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) - register uint32_t __regfpscr __ASM("fpscr"); - __regfpscr = (fpscr); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - - #elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ -/* IAR iccarm specific functions */ -#if defined (__ICCARM__) - #include /* IAR Intrinsics */ -#endif - -#pragma diag_suppress=Pe940 - - /** - * @brief Enable IRQ Interrupts - * - * Enables IRQ interrupts by clearing the I-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -#define __enable_irq __enable_interrupt - - /** - * @brief Disable IRQ Interrupts - * - * Disables IRQ interrupts by setting the I-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -#define __disable_irq __disable_interrupt - -/** - * @brief Return the Control Register value -* -* @return Control value - * - * Return the content of the control register - */ -/* intrinsic unsigned long __get_CONTROL( void ); (see intrinsic.h) */ - -/** - * @brief Set the Control Register value - * - * @param control Control value - * - * Set the control register - */ -/* intrinsic void __set_CONTROL( unsigned long ); (see intrinsic.h) */ - -/** - * @brief Get IPSR Register value - * - * @return uint32_t IPSR value - * - * return the content of the IPSR register - */ -static uint32_t __get_IPSR(void) -{ - __ASM("mrs r0, ipsr"); -} - -/** - * @brief Get APSR Register value - * - * @return uint32_t APSR value - * - * return the content of the APSR register - */ -/* __intrinsic unsigned long __get_APSR( void ); (see intrinsic.h) */ - -/** - * @brief Get xPSR Register value - * - * @return uint32_t xPSR value - * - * return the content of the xPSR register - */ -static uint32_t __get_xPSR(void) -{ - __ASM("mrs r0, psr"); // assembler does not know "xpsr" -} - -/** - * @brief Return the Process Stack Pointer - * - * @return ProcessStackPointer - * - * Return the actual process stack pointer - */ - static uint32_t __get_PSP(void) -{ - __ASM("mrs r0, psp"); -} - -/** - * @brief Set the Process Stack Pointer - * - * @param topOfProcStack Process Stack Pointer - * - * Assign the value ProcessStackPointer to the MSP - * (process stack pointer) Cortex processor register - */ -static void __set_PSP(uint32_t topOfProcStack) -{ - __ASM("msr psp, r0"); -} - -/** - * @brief Return the Main Stack Pointer - * - * @return Main Stack Pointer - * - * Return the current value of the MSP (main stack pointer) - * Cortex processor register - */ -static uint32_t __get_MSP(void) -{ - __ASM("mrs r0, msp"); -} - -/** - * @brief Set the Main Stack Pointer - * - * @param topOfMainStack Main Stack Pointer - * - * Assign the value mainStackPointer to the MSP - * (main stack pointer) Cortex processor register - */ -static void __set_MSP(uint32_t topOfMainStack) -{ - __ASM("msr msp, r0"); -} - -/** - * @brief Return the Priority Mask value - * - * @return PriMask - * - * Return state of the priority mask bit from the priority mask register - */ -/* intrinsic unsigned long __get_PRIMASK( void ); (see intrinsic.h) */ - -/** - * @brief Set the Priority Mask value - * - * @param priMask PriMask - * - * Set the priority mask bit in the priority mask register - */ -/* intrinsic void __set_PRIMASK( unsigned long ); (see intrinsic.h) */ - - -#if (__CORTEX_M >= 0x03) - - /** - * @brief Enable FIQ Interrupts - * - * Enables FIQ interrupts by clearing the F-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -static __INLINE void __enable_fault_irq() { __ASM ("cpsie f"); } - - /** - * @brief Disable FIQ Interrupts - * - * Disables FIQ interrupts by setting the F-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -static __INLINE void __disable_fault_irq() { __ASM ("cpsid f"); } - -/** - * @brief Return the Base Priority value - * - * @return BasePriority - * - * Return the content of the base priority register - */ -/* intrinsic unsigned long __get_BASEPRI( void ); (see intrinsic.h) */ - -/** - * @brief Set the Base Priority value - * - * @param basePri BasePriority - * - * Set the base priority register - */ -/* intrinsic void __set_BASEPRI( unsigned long ); (see intrinsic.h) */ - -/** - * @brief Return the Fault Mask value - * - * @return FaultMask - * - * Return the content of the fault mask register - */ -/* intrinsic unsigned long __get_FAULTMASK( void ); (see intrinsic.h) */ - -/** - * @brief Set the Fault Mask value - * - * @param faultMask faultMask value - * - * Set the fault mask register - */ -/* intrinsic void __set_FAULTMASK(unsigned long); (see intrinsic.h) */ - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** - * @brief Return the FPSCR value - * - * @return FloatingPointStatusControlRegister - * - * Return the content of the FPSCR register - */ -static __INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) - /* not yet implemented */ - return(0); -#else - return(0); -#endif -} - -/** - * @brief Set the FPSCR value - * - * @param fpscr FloatingPointStatusControlRegister - * - * Set the FPSCR register - */ -static __INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) - /* not yet implemented */ -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - -#pragma diag_default=Pe940 - - -#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - /** - * @brief Enable IRQ Interrupts - * - * Enables IRQ interrupts by clearing the I-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -static __INLINE void __enable_irq() { __ASM volatile ("cpsie i"); } - - /** - * @brief Disable IRQ Interrupts - * - * Disables IRQ interrupts by setting the I-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -static __INLINE void __disable_irq() { __ASM volatile ("cpsid i"); } - -/** - * @brief Return the Control Register value -* -* @return Control value - * - * Return the content of the control register - */ -static __INLINE uint32_t __get_CONTROL(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - -/** - * @brief Set the Control Register value - * - * @param control Control value - * - * Set the control register - */ -static __INLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) ); -} - -/** - * @brief Get IPSR Register value - * - * @return uint32_t IPSR value - * - * return the content of the IPSR register - */ -static __INLINE uint32_t __get_IPSR(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - -/** - * @brief Get APSR Register value - * - * @return uint32_t APSR value - * - * return the content of the APSR register - */ -static __INLINE uint32_t __get_APSR(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - -/** - * @brief Get xPSR Register value - * - * @return uint32_t xPSR value - * - * return the content of the xPSR register - */ -static __INLINE uint32_t __get_xPSR(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - -/** - * @brief Return the Process Stack Pointer - * - * @return ProcessStackPointer - * - * Return the actual process stack pointer - */ -static __INLINE uint32_t __get_PSP(void) __attribute__( ( naked ) ); -static __INLINE uint32_t __get_PSP(void) -{ - register uint32_t result __ASM ("r0") = 0; - - __ASM volatile ("MRS %0, psp\n" - "BX lr \n" : "=r" (result) ); - return(result); -} - -/** - * @brief Set the Process Stack Pointer - * - * @param topOfProcStack Process Stack Pointer - * - * Assign the value ProcessStackPointer to the MSP - * (process stack pointer) Cortex processor register - */ -static __INLINE void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) ); -static __INLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0\n" - "BX lr \n" : : "r" (topOfProcStack) ); -} - -/** - * @brief Return the Main Stack Pointer - * - * @return Main Stack Pointer - * - * Return the current value of the MSP (main stack pointer) - * Cortex processor register - */ -static __INLINE uint32_t __get_MSP(void) __attribute__( ( naked ) ); -static __INLINE uint32_t __get_MSP(void) -{ - register uint32_t result __ASM ("r0") = 0; - - __ASM volatile ("MRS %0, msp\n" - "BX lr \n" : "=r" (result) ); - return(result); -} - -/** - * @brief Set the Main Stack Pointer - * - * @param topOfMainStack Main Stack Pointer - * - * Assign the value mainStackPointer to the MSP - * (main stack pointer) Cortex processor register - */ -static __INLINE void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) ); -static __INLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0\n" - "BX lr \n" : : "r" (topOfMainStack) ); -} - -/** - * @brief Return the Priority Mask value - * - * @return PriMask - * - * Return state of the priority mask bit from the priority mask register - */ -static __INLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, primask" : "=r" (result) ); - return(result); -} - -/** - * @brief Set the Priority Mask value - * - * @param priMask PriMask - * - * Set the priority mask bit in the priority mask register - */ -static __INLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); -} - - -#if (__CORTEX_M >= 0x03) - - /** - * @brief Enable FIQ Interrupts - * - * Enables FIQ interrupts by clearing the F-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -static __INLINE void __enable_fault_irq() { __ASM volatile ("cpsie f"); } - - /** - * @brief Disable FIQ Interrupts - * - * Disables FIQ interrupts by setting the F-bit in the CPSR. - * Can only be executed in Privileged modes. - */ -static __INLINE void __disable_fault_irq() { __ASM volatile ("cpsid f"); } - -/** - * @brief Return the Base Priority value - * - * @return BasePriority - * - * Return the content of the base priority register - */ -static __INLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); - return(result); -} - -/** - * @brief Set the Base Priority value - * - * @param basePri BasePriority - * - * Set the base priority register - */ -static __INLINE void __set_BASEPRI(uint32_t value) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (value) ); -} - -/** - * @brief Return the Fault Mask value - * - * @return FaultMask - * - * Return the content of the fault mask register - */ -static __INLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result=0; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - -#endif /* (__CORTEX_M >= 0x03) */ - -/** - * @brief Set the Fault Mask value - * - * @param faultMask faultMask value - * - * Set the fault mask register - */ -static __INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); -} - - -#if (__CORTEX_M == 0x04) - -/** - * @brief Return the FPSCR value - * - * @return FloatingPointStatusControlRegister - * - * Return the content of the FPSCR register - */ -static __INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) - uint32_t result=0; - - __ASM volatile ("MRS %0, fpscr" : "=r" (result) ); - return(result); -#else - return(0); -#endif -} - -/** - * @brief Set the FPSCR value - * - * @param fpscr FloatingPointStatusControlRegister - * - * Set the FPSCR register - */ -static __INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) - __ASM volatile ("MSR control, %0" : : "r" (fpscr) ); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all instrinsics, - * Including the CMSIS ones. - */ - -#endif - -#endif // __CORE_CMFUNC_H__ diff --git a/bsp/mb9bf500r/CMSIS/core_cmInstr.h b/bsp/mb9bf500r/CMSIS/core_cmInstr.h deleted file mode 100644 index e9bbde943d..0000000000 --- a/bsp/mb9bf500r/CMSIS/core_cmInstr.h +++ /dev/null @@ -1,684 +0,0 @@ -/**************************************************************************//** - * @file core_cmInstr.h - * @brief CMSIS Cortex-M Core Instruction Access Header File - * @version V1.40 - * @date 16. February 2010 - * - * @note - * Copyright (C) 2009-2010 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CMINSTR_H__ -#define __CORE_CMINSTR_H__ - -/* ########################## Core Instruction Access ######################### */ - -#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/ -/* ARM armcc specific functions */ - - /** - * @brief No Operation - * - * No Operation does nothing. This instruction can be used for code alignment - * purposes. - */ -#define __NOP __nop - - /** - * @brief Wait For Interrupt - * - * Wait For Interrupt is a hint instruction that suspends execution until - * one of a number of events occurs. - */ -#define __WFI __wfi - - /** - * @brief Wait For Event - * - * Wait For Event is a hint instruction that permits the processor to enter - * a low-power state until one of a number of events occurs. - */ -#define __WFE __wfe - - /** - * @brief Send Event - * - * Send Event is a hint instruction. It causes an event to be signaled - * to the CPU. - */ -#define __SEV __sev - - /** - * @brief Instruction Synchronization Barrier - * - * Instruction Synchronization Barrier flushes the pipeline in the processor, - * so that all instructions following the ISB are fetched from cache or - * memory, after the instruction has been completed - */ -#define __ISB() __isb(0xF) - - /** - * @brief Data Synchronization Barrier - * - * The DSB instruction operation acts as a special kind of Data Memory Barrier. - * The DSB operation completes when all explicit memory accesses before this - * instruction complete. - */ -#define __DSB() __dsb(0xF) - - /** - * @brief Data Memory Barrier - * - * DMB ensures the apparent order of the explicit memory operations before - * and after the instruction, without ensuring their completion. - */ -#define __DMB() __dmb(0xF) - -/** - * @brief Reverse byte order (32 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in integer value - */ -#define __REV __rev - -/** - * @brief Reverse byte order (16 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in unsigned short value - */ -#if (__ARMCC_VERSION < 400677) -extern uint32_t __REV16(uint16_t value); -#else /* (__ARMCC_VERSION >= 400677) */ -static __INLINE __ASM uint32_t __REV16(uint16_t value) -{ - rev16 r0, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - -/** - * @brief Reverse byte order in signed short value with sign extension to integer - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in signed short value with sign extension to integer - */ -#if (__ARMCC_VERSION < 400677) -extern int32_t __REVSH(int16_t value); -#else /* (__ARMCC_VERSION >= 400677) */ -static __INLINE __ASM int32_t __REVSH(int16_t value) -{ - revsh r0, r0 - bx lr -} -#endif /* __ARMCC_VERSION */ - - -#if (__CORTEX_M >= 0x03) - -/** - * @brief Reverse bit order of value - * - * @param value value to reverse - * @return reversed value - * - * Reverse bit order of value - */ -#define __RBIT __rbit - -/** - * @brief LDR Exclusive (8 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 8 bit value - */ -#define __LDREXB(ptr) ((unsigned char ) __ldrex(ptr)) - -/** - * @brief LDR Exclusive (16 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 16 bit values - */ -#define __LDREXH(ptr) ((unsigned short) __ldrex(ptr)) - -/** - * @brief LDR Exclusive (32 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 32 bit values - */ -#define __LDREXW(ptr) ((unsigned int ) __ldrex(ptr)) - -/** - * @brief STR Exclusive (8 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 8 bit values - */ -#define __STREXB(value, ptr) __strex(value, ptr) - -/** - * @brief STR Exclusive (16 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 16 bit values - */ -#define __STREXH(value, ptr) __strex(value, ptr) - -/** - * @brief STR Exclusive (32 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 32 bit values - */ -#define __STREXW(value, ptr) __strex(value, ptr) - - /** - * @brief Remove the exclusive lock created by ldrex - * - * Removes the exclusive lock which is created by ldrex. - */ -#if (__ARMCC_VERSION < 400000) -extern void __CLREX(void); -#else /* (__ARMCC_VERSION >= 400000) */ -#define __CLREX __clrex -#endif /* __ARMCC_VERSION */ - -#endif /* (__CORTEX_M >= 0x03) */ - - -#elif (defined (__ICCARM__)) /*---------------- ICC Compiler ---------------------*/ -/* IAR iccarm specific functions */ -#if defined (__ICCARM__) - #include /* IAR Intrinsics */ -#endif - -#pragma diag_suppress=Pe940 - - /** - * @brief No Operation - * - * No Operation does nothing. This instruction can be used for code alignment - * purposes. - */ -#define __NOP __no_operation - - /** - * @brief Wait For Interrupt - * - * Wait For Interrupt is a hint instruction that suspends execution until - * one of a number of events occurs. - */ -static __INLINE void __WFI() { __ASM ("wfi"); } - - /** - * @brief Wait For Event - * - * Wait For Event is a hint instruction that permits the processor to enter - * a low-power state until one of a number of events occurs. - */ -static __INLINE void __WFE() { __ASM ("wfe"); } - - /** - * @brief Send Event - * - * Send Event is a hint instruction. It causes an event to be signaled - * to the CPU. - */ -static __INLINE void __SEV() { __ASM ("sev"); } - - /** - * @brief Instruction Synchronization Barrier - * - * Instruction Synchronization Barrier flushes the pipeline in the processor, - * so that all instructions following the ISB are fetched from cache or - * memory, after the instruction has been completed - */ -/* intrinsic void __ISB(void) (see intrinsics.h */ - - /** - * @brief Data Synchronization Barrier - * - * The DSB instruction operation acts as a special kind of Data Memory Barrier. - * The DSB operation completes when all explicit memory accesses before this - * instruction complete. - */ -/* intrinsic void __DSB(void) (see intrinsics.h */ - - /** - * @brief Data Memory Barrier - * - * DMB ensures the apparent order of the explicit memory operations before - * and after the instruction, without ensuring their completion. - */ -/* intrinsic void __DMB(void) (see intrinsics.h */ - -/** - * @brief Reverse byte order (32 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in integer value - */ -/* intrinsic uint32_t __REV(uint32_t value) (see intrinsics.h */ - -/** - * @brief Reverse byte order (16 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in unsigned short value - */ -static uint32_t __REV16(uint16_t value) -{ - __ASM("rev16 r0, r0"); -} - -/** - * @brief Reverse byte order in signed short value with sign extension to integer - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in signed short value with sign extension to integer - */ -/* intrinsic uint32_t __REVSH(uint32_t value) (see intrinsics.h */ - - -#if (__CORTEX_M >= 0x03) - -/** - * @brief Reverse bit order of value - * - * @param value value to reverse - * @return reversed value - * - * Reverse bit order of value - */ -static uint32_t __RBIT(uint32_t value) -{ - __ASM("rbit r0, r0"); -} - -/** - * @brief LDR Exclusive (8 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 8 bit value - */ -static uint8_t __LDREXB(uint8_t *addr) -{ - __ASM("ldrexb r0, [r0]"); -} - -/** - * @brief LDR Exclusive (16 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 16 bit values - */ -static uint16_t __LDREXH(uint16_t *addr) -{ - __ASM("ldrexh r0, [r0]"); -} - -/** - * @brief LDR Exclusive (32 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 32 bit values - */ -/* intrinsic unsigned long __LDREX(unsigned long *) (see intrinsics.h */ -static uint32_t __LDREXW(uint32_t *addr) -{ - __ASM("ldrex r0, [r0]"); -} - -/** - * @brief STR Exclusive (8 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 8 bit values - */ -static uint32_t __STREXB(uint8_t value, uint8_t *addr) -{ - __ASM("strexb r0, r0, [r1]"); -} - -/** - * @brief STR Exclusive (16 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 16 bit values - */ -static uint32_t __STREXH(uint16_t value, uint16_t *addr) -{ - __ASM("strexh r0, r0, [r1]"); -} - -/** - * @brief STR Exclusive (32 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 32 bit values - */ -/* intrinsic unsigned long __STREX(unsigned long, unsigned long) (see intrinsics.h */ -static uint32_t __STREXW(uint32_t value, uint32_t *addr) -{ - __ASM("strex r0, r0, [r1]"); -} - - /** - * @brief Remove the exclusive lock created by ldrex - * - * Removes the exclusive lock which is created by ldrex. - */ -static __INLINE void __CLREX() { __ASM ("clrex"); } - -#endif /* (__CORTEX_M >= 0x03) */ - -#pragma diag_default=Pe940 - - -#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - - /** - * @brief No Operation - * - * No Operation does nothing. This instruction can be used for code alignment - * purposes. - */ -static __INLINE void __NOP() { __ASM volatile ("nop"); } - - /** - * @brief Wait For Interrupt - * - * Wait For Interrupt is a hint instruction that suspends execution until - * one of a number of events occurs. - */ -static __INLINE void __WFI() { __ASM volatile ("wfi"); } - - /** - * @brief Wait For Event - * - * Wait For Event is a hint instruction that permits the processor to enter - * a low-power state until one of a number of events occurs. - */ -static __INLINE void __WFE() { __ASM volatile ("wfe"); } - - /** - * @brief Send Event - * - * Send Event is a hint instruction. It causes an event to be signaled - * to the CPU. - */ -static __INLINE void __SEV() { __ASM volatile ("sev"); } - - /** - * @brief Instruction Synchronization Barrier - * - * Instruction Synchronization Barrier flushes the pipeline in the processor, - * so that all instructions following the ISB are fetched from cache or - * memory, after the instruction has been completed - */ -static __INLINE void __ISB() { __ASM volatile ("isb"); } - - /** - * @brief Data Synchronization Barrier - * - * The DSB instruction operation acts as a special kind of Data Memory Barrier. - * The DSB operation completes when all explicit memory accesses before this - * instruction complete. - */ -static __INLINE void __DSB() { __ASM volatile ("dsb"); } - - /** - * @brief Data Memory Barrier - * - * DMB ensures the apparent order of the explicit memory operations before - * and after the instruction, without ensuring their completion. - */ -static __INLINE void __DMB() { __ASM volatile ("dmb"); } - -/** - * @brief Reverse byte order (32 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in integer value - */ -static __INLINE uint32_t __REV(uint32_t value) -{ - uint32_t result=0; - - __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - -/** - * @brief Reverse byte order (16 bit) - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in unsigned short value - */ -static __INLINE uint32_t __REV16(uint16_t value) -{ - uint32_t result=0; - - __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - -/** - * @brief Reverse byte order in signed short value with sign extension to integer - * - * @param value value to reverse - * @return reversed value - * - * Reverse byte order in signed short value with sign extension to integer - */ -static __INLINE int32_t __REVSH(int16_t value) -{ - uint32_t result=0; - - __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -#if (__CORTEX_M >= 0x03) - -/** - * @brief Reverse bit order of value - * - * @param value value to reverse - * @return reversed value - * - * Reverse bit order of value - */ -static __INLINE uint32_t __RBIT(uint32_t value) -{ - uint32_t result=0; - - __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - -/** - * @brief LDR Exclusive (8 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 8 bit value - */ -static __INLINE uint8_t __LDREXB(uint8_t *addr) -{ - uint8_t result=0; - - __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - -/** - * @brief LDR Exclusive (16 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 16 bit values - */ -static __INLINE uint16_t __LDREXH(uint16_t *addr) -{ - uint16_t result=0; - - __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - -/** - * @brief LDR Exclusive (32 bit) - * - * @param *addr address pointer - * @return value of (*address) - * - * Exclusive LDR command for 32 bit values - */ -static __INLINE uint32_t __LDREXW(uint32_t *addr) -{ - uint32_t result=0; - - __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - -/** - * @brief STR Exclusive (8 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 8 bit values - */ -static __INLINE uint32_t __STREXB(uint8_t value, uint8_t *addr) -{ - uint32_t result=0; - - __ASM volatile ("strexb %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); - return(result); -} - -/** - * @brief STR Exclusive (16 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 16 bit values - */ -static __INLINE uint32_t __STREXH(uint16_t value, uint16_t *addr) -{ - uint32_t result=0; - - __ASM volatile ("strexh %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); - return(result); -} - -/** - * @brief STR Exclusive (32 bit) - * - * @param value value to store - * @param *addr address pointer - * @return successful / failed - * - * Exclusive STR command for 32 bit values - */ -static __INLINE uint32_t __STREXW(uint32_t value, uint32_t *addr) -{ - uint32_t result=0; - - __ASM volatile ("strex %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - /** - * @brief Remove the exclusive lock created by ldrex - * - * Removes the exclusive lock which is created by ldrex. - */ -static __INLINE void __CLREX() { __ASM volatile ("clrex"); } - -#endif /* (__CORTEX_M >= 0x03) */ - - -#elif (defined (__TASKING__)) /*--------------- TASKING Compiler -----------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all instrinsics, - * Including the CMSIS ones. - */ - -#endif - -#endif // __CORE_CMINSTR_H__ diff --git a/bsp/mb9bf500r/CMSIS/mb9bf506r.h b/bsp/mb9bf500r/CMSIS/mb9bf506r.h deleted file mode 100644 index 68d3e8b362..0000000000 --- a/bsp/mb9bf500r/CMSIS/mb9bf506r.h +++ /dev/null @@ -1,9739 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/* */ -/* Header File for Device MB9BF506R */ -/* Version V1.00 */ -/* Date 2011-01-21 */ -/* */ -/************************************************************************/ - -#ifndef _MB9BF506R_H_ -#define _MB9BF506R_H_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/****************************************************************************** - * Configuration of the Cortex-M3 Processor and Core Peripherals - ******************************************************************************/ -#define __MPU_PRESENT 1 /* FM3 provide an MPU */ -#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ -#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ - - -/****************************************************************************** - * Interrupt Number Definition - ******************************************************************************/ -typedef enum IRQn -{ - NMI_IRQn = -14, /* 2 Non Maskable */ - HardFault_IRQn = -13, /* 3 Hard Fault */ - MemManage_IRQn = -12, /* 4 Memory Management */ - BusFault_IRQn = -11, /* 5 Bus Fault */ - UsageFault_IRQn = -10, /* 6 Usage Fault */ - SVC_IRQn = -5, /* 11 SV Call */ - DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ - PendSVC_IRQn = -2, /* 14 Pend SV */ - SysTick_IRQn = -1, /* 15 System Tick */ - - CSV_IRQn = 0, /* Clock Super Visor */ - SWDT_IRQn = 1, /* Software Watchdog Timer */ - LVD_IRQn = 2, /* Low Voltage Detector */ - WFG_IRQn = 3, /* Wave Form Generator */ - EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ - EXINT8_15_IRQn = 5, /* External Interrupt Request ch.8 to ch.15 */ - DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ - MFS0RX_IRQn = 7, /* MultiFunction Serial ch.0 */ - MFS0TX_IRQn = 8, /* MultiFunction Serial ch.0 */ - MFS1RX_IRQn = 9, /* MultiFunction Serial ch.1 */ - MFS1TX_IRQn = 10, /* MultiFunction Serial ch.1 */ - MFS2RX_IRQn = 11, /* MultiFunction Serial ch.2 */ - MFS2TX_IRQn = 12, /* MultiFunction Serial ch.2 */ - MFS3RX_IRQn = 13, /* MultiFunction Serial ch.3 */ - MFS3TX_IRQn = 14, /* MultiFunction Serial ch.3 */ - MFS4RX_IRQn = 15, /* MultiFunction Serial ch.4 */ - MFS4TX_IRQn = 16, /* MultiFunction Serial ch.4 */ - MFS5RX_IRQn = 17, /* MultiFunction Serial ch.5 */ - MFS5TX_IRQn = 18, /* MultiFunction Serial ch.5 */ - MFS6RX_IRQn = 19, /* MultiFunction Serial ch.6 */ - MFS6TX_IRQn = 20, /* MultiFunction Serial ch.6 */ - MFS7RX_IRQn = 21, /* MultiFunction Serial ch.7 */ - MFS7TX_IRQn = 22, /* MultiFunction Serial ch.7 */ - PPG_IRQn = 23, /* PPG */ - OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ - ADC0_IRQn = 25, /* ADC0 */ - ADC1_IRQn = 26, /* ADC1 */ - ADC2_IRQn = 27, /* ADC2 */ - FRTIM_IRQn = 28, /* Free-run Timer */ - INCAP_IRQn = 29, /* Input Capture */ - OUTCOMP_IRQn = 30, /* Output Compare */ - BTIM_IRQn = 31, /* Base Timer ch.0 to ch.7 */ - CAN0_IRQn = 32, /* CAN ch.0 */ - CAN1_IRQn = 33, /* CAN ch.1 */ - USBF_IRQn = 34, /* USB Function */ - USBF_USBH_IRQn = 35, /* USB Function / USB HOST */ - /* Reserved = 36, */ - /* Reserved = 37, */ - DMAC0_IRQn = 38, /* DMAC ch.0 */ - DMAC1_IRQn = 39, /* DMAC ch.1 */ - DMAC2_IRQn = 40, /* DMAC ch.2 */ - DMAC3_IRQn = 41, /* DMAC ch.3 */ - DMAC4_IRQn = 42, /* DMAC ch.4 */ - DMAC5_IRQn = 43, /* DMAC ch.5 */ - DMAC6_IRQn = 44, /* DMAC ch.6 */ - DMAC7_IRQn = 45, /* DMAC ch.7 */ - /* Reserved = 46, */ - /* Reserved = 47, */ -} IRQn_Type; - - -#include "core_cm3.h" -#include "system_mb9bf50x.h" -#include - -#define SUCCESS 0 -#define ERROR -1 - -#ifndef NULL -#define NULL 0 -#endif - - -/******************************************************************************/ -/* Device Specific Peripheral Registers structures */ -/******************************************************************************/ - -#if defined ( __CC_ARM ) -#pragma anon_unions -#endif - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash interface registers */ -typedef struct -{ - __IO uint32_t FASZR; - __IO uint32_t FRWTR; - __IO uint32_t FSTR; - uint8_t RESERVED0[4]; - __IO uint32_t FSYNDN; - uint8_t RESERVED1[236]; - __IO uint32_t CRTRMM; -}FM3_FIF_TypeDef; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock and reset registers */ -typedef struct -{ - __IO uint8_t SCM_CTL; - uint8_t RESERVED0[3]; - __IO uint8_t SCM_STR; - uint8_t RESERVED1[3]; - __IO uint32_t STB_CTL; - __IO uint16_t RST_STR; - uint8_t RESERVED2[2]; - __IO uint8_t BSC_PSR; - uint8_t RESERVED3[3]; - __IO uint8_t APBC0_PSR; - uint8_t RESERVED4[3]; - __IO uint8_t APBC1_PSR; - uint8_t RESERVED5[3]; - __IO uint8_t APBC2_PSR; - uint8_t RESERVED6[3]; - __IO uint8_t SWC_PSR; - uint8_t RESERVED7[7]; - __IO uint8_t TTC_PSR; - uint8_t RESERVED8[7]; - __IO uint8_t CSW_TMR; - uint8_t RESERVED9[3]; - __IO uint8_t PSW_TMR; - uint8_t RESERVED10[3]; - __IO uint8_t PLL_CTL1; - uint8_t RESERVED11[3]; - __IO uint8_t PLL_CTL2; - uint8_t RESERVED12[3]; - __IO uint16_t CSV_CTL; - uint8_t RESERVED13[2]; - __IO uint8_t CSV_STR; - uint8_t RESERVED14[3]; - __IO uint16_t FCSWH_CTL; - uint8_t RESERVED15[2]; - __IO uint16_t FCSWL_CTL; - uint8_t RESERVED16[2]; - __IO uint16_t FCSWD_CTL; - uint8_t RESERVED17[2]; - __IO uint8_t DBWDT_CTL; - uint8_t RESERVED18[11]; - __IO uint8_t INT_ENR; - uint8_t RESERVED19[3]; - __IO uint8_t INT_STR; - uint8_t RESERVED20[3]; - __IO uint8_t INT_CLR; -}FM3_CRG_TypeDef; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* Hardware watchdog registers */ -typedef struct -{ - __IO uint32_t WDG_LDR; - __IO uint32_t WDG_VLR; - __IO uint8_t WDG_CTL; - uint8_t RESERVED0[3]; - __IO uint8_t WDG_ICL; - uint8_t RESERVED1[3]; - __IO uint8_t WDG_RIS; - uint8_t RESERVED2[3055]; - __IO uint32_t WDG_LCK; -}FM3_HWWDT_TypeDef; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* Software watchdog registers */ -typedef struct -{ - __IO uint32_t WDOGLOAD; - __IO uint32_t WDOGVALUE; - __IO uint8_t WDOGCONTROL; - uint8_t RESERVED0[3]; - __IO uint32_t WDOGINTCLR; - __IO uint8_t WDOGRIS; - uint8_t RESERVED1[3055]; - __IO uint32_t WDOGLOCK; -}FM3_SWWDT_TypeDef; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* Dual timer 1/2 registers */ -typedef struct -{ - __IO uint32_t TIMER1LOAD; - __IO uint32_t TIMER1VALUE; - __IO uint32_t TIMER1CONTROL; - __IO uint32_t TIMER1INTCLR; - __IO uint32_t TIMER1RIS; - __IO uint32_t TIMER1MIS; - __IO uint32_t TIMER1BGLOAD; - uint8_t RESERVED0[4]; - __IO uint32_t TIMER2LOAD; - __IO uint32_t TIMER2VALUE; - __IO uint32_t TIMER2CONTROL; - __IO uint32_t TIMER2INTCLR; - __IO uint32_t TIMER2RIS; - __IO uint32_t TIMER2MIS; - __IO uint32_t TIMER2BGLOAD; -}FM3_DTIM_TypeDef; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Free Running Timer registers */ -typedef struct -{ - uint8_t RESERVED0[40]; - __IO uint16_t TCCP0; - uint8_t RESERVED1[2]; - __IO uint16_t TCDT0; - uint8_t RESERVED2[2]; - __IO uint16_t TCSA0; - uint8_t RESERVED3[2]; - __IO uint16_t TCSB0; - uint8_t RESERVED4[2]; - __IO uint16_t TCCP1; - uint8_t RESERVED5[2]; - __IO uint16_t TCDT1; - uint8_t RESERVED6[2]; - __IO uint16_t TCSA1; - uint8_t RESERVED7[2]; - __IO uint16_t TCSB1; - uint8_t RESERVED8[2]; - __IO uint16_t TCCP2; - uint8_t RESERVED9[2]; - __IO uint16_t TCDT2; - uint8_t RESERVED10[2]; - __IO uint16_t TCSA2; - uint8_t RESERVED11[2]; - __IO uint16_t TCSB2; -}FM3_MFT_FRT_TypeDef; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Output Compare Unit registers */ -typedef struct -{ - __IO uint16_t OCCP0; - uint8_t RESERVED0[2]; - __IO uint16_t OCCP1; - uint8_t RESERVED1[2]; - __IO uint16_t OCCP2; - uint8_t RESERVED2[2]; - __IO uint16_t OCCP3; - uint8_t RESERVED3[2]; - __IO uint16_t OCCP4; - uint8_t RESERVED4[2]; - __IO uint16_t OCCP5; - uint8_t RESERVED5[2]; - __IO uint8_t OCSA10; - __IO uint8_t OCSB10; - uint8_t RESERVED6[2]; - __IO uint8_t OCSA32; - __IO uint8_t OCSB32; - uint8_t RESERVED7[2]; - __IO uint8_t OCSA54; - __IO uint8_t OCSB54; - uint8_t RESERVED8[3]; - __IO uint8_t OCSC; - uint8_t RESERVED9[50]; - __IO uint8_t OCFS10; - __IO uint8_t OCFS32; - uint8_t RESERVED10[2]; - __IO uint8_t OCFS54; -}FM3_MFT_OCU_TypeDef; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -typedef struct -{ - uint8_t RESERVED0[128]; - __IO uint16_t WFTM10; - uint8_t RESERVED1[2]; - __IO uint16_t WFTM32; - uint8_t RESERVED2[2]; - __IO uint16_t WFTM54; - uint8_t RESERVED3[2]; - __IO uint16_t WFSA10; - uint8_t RESERVED4[2]; - __IO uint16_t WFSA32; - uint8_t RESERVED5[2]; - __IO uint16_t WFSA54; - uint8_t RESERVED6[2]; - __IO uint16_t WFIR; - uint8_t RESERVED7[2]; - __IO uint16_t NZCL; -}FM3_MFT_WFG_TypeDef; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Input Capture Unit registers */ -typedef struct -{ - uint8_t RESERVED0[96]; - __IO uint8_t ICFS10; - __IO uint8_t ICFS32; - uint8_t RESERVED1[6]; - __IO uint16_t ICCP0; - uint8_t RESERVED2[2]; - __IO uint16_t ICCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ICCP2; - uint8_t RESERVED4[2]; - __IO uint16_t ICCP3; - uint8_t RESERVED5[2]; - __IO uint8_t ICSA10; - __IO uint8_t ICSB10; - uint8_t RESERVED6[2]; - __IO uint8_t ICSA32; - __IO uint8_t ICSB32; -}FM3_MFT_ICU_TypeDef; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -typedef struct -{ - uint8_t RESERVED0[160]; - __IO uint16_t ACCP0; - uint8_t RESERVED1[2]; - __IO uint16_t ACCPDN0; - uint8_t RESERVED2[2]; - __IO uint16_t ACCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ACCPDN1; - uint8_t RESERVED4[2]; - __IO uint16_t ACCP2; - uint8_t RESERVED5[2]; - __IO uint16_t ACCPDN2; - uint8_t RESERVED6[2]; - __IO uint8_t ACSB; - uint8_t RESERVED7[3]; - __IO uint16_t ACSA; - uint8_t RESERVED8[2]; - __IO uint16_t ATSA; -}FM3_MFT_ADCMP_TypeDef; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* Multifunction Timer PPG registers */ -typedef struct -{ - uint8_t RESERVED0; - __IO uint8_t TTCR0; - uint8_t RESERVED1[7]; - __IO uint8_t COMP0; - uint8_t RESERVED2[2]; - __IO uint8_t COMP2; - uint8_t RESERVED3[4]; - __IO uint8_t COMP4; - uint8_t RESERVED4[2]; - __IO uint8_t COMP6; - uint8_t RESERVED5[12]; - __IO uint8_t TTCR1; - uint8_t RESERVED6[7]; - __IO uint8_t COMP1; - uint8_t RESERVED7[2]; - __IO uint8_t COMP3; - uint8_t RESERVED8[4]; - __IO uint8_t COMP5; - uint8_t RESERVED9[2]; - __IO uint8_t COMP7; - uint8_t RESERVED10[203]; - __IO uint16_t TRG; - uint8_t RESERVED11[2]; - __IO uint16_t REVC; - uint8_t RESERVED12[250]; - __IO uint8_t PPGC1; - __IO uint8_t PPGC0; - uint8_t RESERVED13[2]; - __IO uint8_t PPGC3; - __IO uint8_t PPGC2; - uint8_t RESERVED14[2]; - union { - __IO uint16_t PRL0; - struct { - __IO uint8_t PRLL0; - __IO uint8_t PRLH0; - }; - }; - uint8_t RESERVED15[2]; - union { - __IO uint16_t PRL1; - struct { - __IO uint8_t PRLL1; - __IO uint8_t PRLH1; - }; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t PRL2; - struct { - __IO uint8_t PRLL2; - __IO uint8_t PRLH2; - }; - }; - uint8_t RESERVED17[2]; - union { - __IO uint16_t PRL3; - struct { - __IO uint8_t PRLL3; - __IO uint8_t PRLH3; - }; - }; - uint8_t RESERVED18[2]; - __IO uint8_t GATEC0; - uint8_t RESERVED19[39]; - __IO uint8_t PPGC5; - __IO uint8_t PPGC4; - uint8_t RESERVED20[2]; - __IO uint8_t PPGC7; - __IO uint8_t PPGC6; - uint8_t RESERVED21[2]; - union { - __IO uint16_t PRL4; - struct { - __IO uint8_t PRLL4; - __IO uint8_t PRLH4; - }; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t PRL5; - struct { - __IO uint8_t PRLL5; - __IO uint8_t PRLH5; - }; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t PRL6; - struct { - __IO uint8_t PRLL6; - __IO uint8_t PRLH6; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t PRL7; - struct { - __IO uint8_t PRLL7; - __IO uint8_t PRLH7; - }; - }; - uint8_t RESERVED25[2]; - __IO uint8_t GATEC4; - uint8_t RESERVED26[39]; - __IO uint8_t PPGC9; - __IO uint8_t PPGC8; - uint8_t RESERVED27[2]; - __IO uint8_t PPGC11; - __IO uint8_t PPGC10; - uint8_t RESERVED28[2]; - union { - __IO uint16_t PRL8; - struct { - __IO uint8_t PRLL8; - __IO uint8_t PRLH8; - }; - }; - uint8_t RESERVED29[2]; - union { - __IO uint16_t PRL9; - struct { - __IO uint8_t PRLL9; - __IO uint8_t PRLH9; - }; - }; - uint8_t RESERVED30[2]; - union { - __IO uint16_t PRL10; - struct { - __IO uint8_t PRLL10; - __IO uint8_t PRLH10; - }; - }; - uint8_t RESERVED31[2]; - union { - __IO uint16_t PRL11; - struct { - __IO uint8_t PRLL11; - __IO uint8_t PRLH11; - }; - }; - uint8_t RESERVED32[2]; - __IO uint8_t GATEC8; - uint8_t RESERVED33[39]; - __IO uint8_t PPGC13; - __IO uint8_t PPGC12; - uint8_t RESERVED34[2]; - __IO uint8_t PPGC15; - __IO uint8_t PPGC14; - uint8_t RESERVED35[2]; - union { - __IO uint16_t PRL12; - struct { - __IO uint8_t PRLL12; - __IO uint8_t PRLH12; - }; - }; - uint8_t RESERVED36[2]; - union { - __IO uint16_t PRL13; - struct { - __IO uint8_t PRLL13; - __IO uint8_t PRLH13; - }; - }; - uint8_t RESERVED37[2]; - union { - __IO uint16_t PRL14; - struct { - __IO uint8_t PRLL14; - __IO uint8_t PRLH14; - }; - }; - uint8_t RESERVED38[2]; - union { - __IO uint16_t PRL15; - struct { - __IO uint8_t PRLL15; - __IO uint8_t PRLH15; - }; - }; - uint8_t RESERVED39[2]; - __IO uint8_t GATEC12; -}FM3_MFT_PPG_TypeDef; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* Base Timer 0 PPG registers */ -typedef struct -{ - __IO uint16_t PRLL; - uint8_t RESERVED0[2]; - __IO uint16_t PRLH; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - __IO uint16_t TMCR; - uint8_t RESERVED3[2]; - __IO uint8_t STC; - __IO uint8_t TMCR2; -}FM3_BT_PPG_TypeDef; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* Base Timer 0 PWM registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[2]; - __IO uint16_t PDUT; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - __IO uint16_t TMCR; - uint8_t RESERVED3[2]; - __IO uint8_t STC; - __IO uint8_t TMCR2; -}FM3_BT_PWM_TypeDef; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* Base Timer 0 RT registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[6]; - __IO uint16_t TMR; - uint8_t RESERVED1[2]; - __IO uint16_t TMCR; - uint8_t RESERVED2[2]; - __IO uint8_t STC; - __IO uint8_t TMCR2; -}FM3_BT_RT_TypeDef; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* Base Timer 0 PWC registers */ -typedef struct -{ - uint8_t RESERVED0[4]; - __IO uint16_t DTBF; - uint8_t RESERVED1[6]; - __IO uint16_t TMCR; - uint8_t RESERVED2[2]; - __IO uint8_t STC; - __IO uint8_t TMCR2; -}FM3_BT_PWC_TypeDef; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 0 - channel 3 registers */ -typedef struct -{ - uint8_t RESERVED0; - __IO uint8_t BTSEL0123; -}FM3_BTIOSEL03_TypeDef; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 4 - channel 7 registers */ -typedef struct -{ - uint8_t RESERVED0; - __IO uint8_t BTSEL4567; -}FM3_BTIOSEL47_TypeDef; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* Software based Simulation Startup (Base Timer) register */ -typedef struct -{ - __IO uint16_t BTSSSR; -}FM3_SBSSR_TypeDef; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* Quad position and revolution counter channel 0 registers */ -typedef struct -{ - __IO uint16_t QPCR; - uint8_t RESERVED0[2]; - __IO uint16_t QRCR; - uint8_t RESERVED1[2]; - __IO uint16_t QPCCR; - uint8_t RESERVED2[2]; - __IO uint16_t QPRCR; - uint8_t RESERVED3[2]; - __IO uint16_t QMPR; - uint8_t RESERVED4[2]; - union { - __IO uint16_t QICR; - struct { - __IO uint8_t QICRL; - __IO uint8_t QICRH; - }; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t QCR; - struct { - __IO uint8_t QCRL; - __IO uint8_t QCRH; - }; - }; - uint8_t RESERVED6[2]; - __IO uint16_t QECR; -}FM3_QPRC_TypeDef; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* 12-bit ADC unit 0 registers */ -typedef struct -{ - __IO uint8_t ADSR; - __IO uint8_t ADCR; - uint8_t RESERVED0[6]; - __IO uint8_t SFNS; - __IO uint8_t SCCR; - uint8_t RESERVED1[2]; - union { - __IO uint32_t SCFD; - struct { - __IO uint16_t SCFDL; - __IO uint16_t SCFDH; - }; - }; - union { - __IO uint16_t SCIS23; - struct { - __IO uint8_t SCIS2; - __IO uint8_t SCIS3; - }; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t SCIS01; - struct { - __IO uint8_t SCIS0; - __IO uint8_t SCIS1; - }; - }; - uint8_t RESERVED3[2]; - __IO uint8_t PFNS; - __IO uint8_t PCCR; - uint8_t RESERVED4[2]; - union { - __IO uint32_t PCFD; - struct { - __IO uint16_t PCFDL; - __IO uint16_t PCFDH; - }; - }; - __IO uint8_t PCIS; - uint8_t RESERVED5[3]; - __IO uint8_t CMPCR; - uint8_t RESERVED6; - __IO uint16_t CMPD; - union { - __IO uint16_t ADSS23; - struct { - __IO uint8_t ADSS2; - __IO uint8_t ADSS3; - }; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t ADSS01; - struct { - __IO uint8_t ADSS0; - __IO uint8_t ADSS1; - }; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t ADST01; - struct { - __IO uint8_t ADST1; - __IO uint8_t ADST0; - }; - }; - uint8_t RESERVED9[2]; - __IO uint8_t ADCT; - uint8_t RESERVED10[3]; - __IO uint8_t PRTSL; - __IO uint8_t SCTSL; - uint8_t RESERVED11[2]; - __IO uint8_t ADCEN; -}FM3_ADC_TypeDef; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CR trimming registers */ -typedef struct -{ - __IO uint8_t MCR_PSR; - uint8_t RESERVED0[3]; - __IO uint16_t MCR_FTRM; - uint8_t RESERVED1[6]; - __IO uint32_t MCR_RLR; -}FM3_CRTRIM_TypeDef; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* External interrupt registers */ -typedef struct -{ - __IO uint16_t ENIR; - uint8_t RESERVED0[2]; - __IO uint16_t EIRR; - uint8_t RESERVED1[2]; - __IO uint16_t EICL; - uint8_t RESERVED2[2]; - __IO uint32_t ELVR; - uint8_t RESERVED3[4]; - __IO uint8_t NMIRR; - uint8_t RESERVED4[3]; - __IO uint8_t NMICL; -}FM3_EXTI_TypeDef; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* Interrupt request read registers */ -typedef struct -{ - __IO uint32_t DRQSEL; - uint8_t RESERVED0[12]; - __IO uint32_t EXC02MON; - __IO uint32_t IRQ00MON; - __IO uint32_t IRQ01MON; - __IO uint32_t IRQ02MON; - __IO uint32_t IRQ03MON; - __IO uint32_t IRQ04MON; - __IO uint32_t IRQ05MON; - __IO uint32_t IRQ06MON; - __IO uint32_t IRQ07MON; - __IO uint32_t IRQ08MON; - __IO uint32_t IRQ09MON; - __IO uint32_t IRQ10MON; - __IO uint32_t IRQ11MON; - __IO uint32_t IRQ12MON; - __IO uint32_t IRQ13MON; - __IO uint32_t IRQ14MON; - __IO uint32_t IRQ15MON; - __IO uint32_t IRQ16MON; - __IO uint32_t IRQ17MON; - __IO uint32_t IRQ18MON; - __IO uint32_t IRQ19MON; - __IO uint32_t IRQ20MON; - __IO uint32_t IRQ21MON; - __IO uint32_t IRQ22MON; - __IO uint32_t IRQ23MON; - __IO uint32_t IRQ24MON; - __IO uint32_t IRQ25MON; - __IO uint32_t IRQ26MON; - __IO uint32_t IRQ27MON; - __IO uint32_t IRQ28MON; - __IO uint32_t IRQ29MON; - __IO uint32_t IRQ30MON; - __IO uint32_t IRQ31MON; - __IO uint32_t IRQ32MON; - __IO uint32_t IRQ33MON; - __IO uint32_t IRQ34MON; - __IO uint32_t IRQ35MON; - __IO uint32_t IRQ36MON; - __IO uint32_t IRQ37MON; - __IO uint32_t IRQ38MON; - __IO uint32_t IRQ39MON; - __IO uint32_t IRQ40MON; - __IO uint32_t IRQ41MON; - __IO uint32_t IRQ42MON; - __IO uint32_t IRQ43MON; - __IO uint32_t IRQ44MON; - __IO uint32_t IRQ45MON; - __IO uint32_t IRQ46MON; - __IO uint32_t IRQ47MON; -}FM3_INTREQ_TypeDef; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* General purpose I/O registers */ -typedef struct -{ - __IO uint32_t PFR0; - __IO uint32_t PFR1; - __IO uint32_t PFR2; - __IO uint32_t PFR3; - __IO uint32_t PFR4; - __IO uint32_t PFR5; - __IO uint32_t PFR6; - __IO uint32_t PFR7; - __IO uint32_t PFR8; - uint8_t RESERVED0[220]; - __IO uint32_t PCR0; - __IO uint32_t PCR1; - __IO uint32_t PCR2; - __IO uint32_t PCR3; - __IO uint32_t PCR4; - __IO uint32_t PCR5; - __IO uint32_t PCR6; - __IO uint32_t PCR7; - uint8_t RESERVED1[224]; - __IO uint32_t DDR0; - __IO uint32_t DDR1; - __IO uint32_t DDR2; - __IO uint32_t DDR3; - __IO uint32_t DDR4; - __IO uint32_t DDR5; - __IO uint32_t DDR6; - __IO uint32_t DDR7; - __IO uint32_t DDR8; - uint8_t RESERVED2[220]; - __IO uint32_t PDIR0; - __IO uint32_t PDIR1; - __IO uint32_t PDIR2; - __IO uint32_t PDIR3; - __IO uint32_t PDIR4; - __IO uint32_t PDIR5; - __IO uint32_t PDIR6; - __IO uint32_t PDIR7; - __IO uint32_t PDIR8; - uint8_t RESERVED3[220]; - __IO uint32_t PDOR0; - __IO uint32_t PDOR1; - __IO uint32_t PDOR2; - __IO uint32_t PDOR3; - __IO uint32_t PDOR4; - __IO uint32_t PDOR5; - __IO uint32_t PDOR6; - __IO uint32_t PDOR7; - __IO uint32_t PDOR8; - uint8_t RESERVED4[220]; - __IO uint32_t ADE; - uint8_t RESERVED5[124]; - __IO uint32_t SPSR; - uint8_t RESERVED6[124]; - __IO uint32_t EPFR00; - __IO uint32_t EPFR01; - __IO uint32_t EPFR02; - uint8_t RESERVED7[4]; - __IO uint32_t EPFR04; - __IO uint32_t EPFR05; - __IO uint32_t EPFR06; - __IO uint32_t EPFR07; - __IO uint32_t EPFR08; - __IO uint32_t EPFR09; - __IO uint32_t EPFR10; -}FM3_GPIO_TypeDef; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* Low voltage detection registers */ -typedef struct -{ - __IO uint8_t LVD_CTL; - uint8_t RESERVED0[3]; - __IO uint8_t LVD_STR; - uint8_t RESERVED1[3]; - __IO uint8_t LVD_CLR; - uint8_t RESERVED2[3]; - __IO uint32_t LVD_RLR; - __IO uint8_t LVD_STR2; -}FM3_LVD_TypeDef; - -/****************************************************************************** - * USBCLK - ******************************************************************************/ -/* USB clock registers */ -typedef struct -{ - __IO uint8_t UCCR; - uint8_t RESERVED0[3]; - __IO uint8_t UPCR1; - uint8_t RESERVED1[3]; - __IO uint8_t UPCR2; - uint8_t RESERVED2[3]; - __IO uint8_t UPCR3; - uint8_t RESERVED3[3]; - __IO uint8_t UPCR4; - uint8_t RESERVED4[3]; - __IO uint8_t UP_STR; - uint8_t RESERVED5[3]; - __IO uint8_t UPINT_ENR; - uint8_t RESERVED6[3]; - __IO uint8_t UPINT_CLR; - uint8_t RESERVED7[3]; - __IO uint8_t UPINT_STR; - uint8_t RESERVED8[15]; - __IO uint8_t USBEN; -}FM3_USBCLK_TypeDef; - -/****************************************************************************** - * CANPRE_MODULE - ******************************************************************************/ -/* CAN prescaler register */ -typedef struct -{ - __IO uint8_t CANPRE; -}FM3_CANPRE_TypeDef; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 0 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t SCR; - uint8_t RESERVED0[2]; - __IO uint8_t ESCR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; -}FM3_MFS03_UART_TypeDef; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 0 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t SCR; - uint8_t RESERVED0[2]; - __IO uint8_t ESCR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; -}FM3_MFS03_CSIO_TypeDef; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 0 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t SCR; - uint8_t RESERVED0[2]; - __IO uint8_t ESCR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; -}FM3_MFS03_LIN_TypeDef; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* I2C channel 0 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t IBCR; - uint8_t RESERVED0[2]; - __IO uint8_t IBSR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - __IO uint8_t ISBA; - __IO uint8_t ISMK; -}FM3_MFS03_I2C_TypeDef; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 4 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t SCR; - uint8_t RESERVED0[2]; - __IO uint8_t ESCR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[6]; - union { - __IO uint16_t FCR; - struct { - __IO uint8_t FCR0; - __IO uint8_t FCR1; - }; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t FBYTE; - struct { - __IO uint8_t FBYTE1; - __IO uint8_t FBYTE2; - }; - }; -}FM3_MFS47_UART_TypeDef; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 4 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t SCR; - uint8_t RESERVED0[2]; - __IO uint8_t ESCR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[6]; - union { - __IO uint16_t FCR; - struct { - __IO uint8_t FCR0; - __IO uint8_t FCR1; - }; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t FBYTE; - struct { - __IO uint8_t FBYTE1; - __IO uint8_t FBYTE2; - }; - }; -}FM3_MFS47_CSIO_TypeDef; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 4 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t SCR; - uint8_t RESERVED0[2]; - __IO uint8_t ESCR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[6]; - union { - __IO uint16_t FCR; - struct { - __IO uint8_t FCR0; - __IO uint8_t FCR1; - }; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t FBYTE; - struct { - __IO uint8_t FBYTE1; - __IO uint8_t FBYTE2; - }; - }; -}FM3_MFS47_LIN_TypeDef; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* I2C channel 4 registers */ -typedef struct -{ - __IO uint8_t SMR; - __IO uint8_t IBCR; - uint8_t RESERVED0[2]; - __IO uint8_t IBSR; - __IO uint8_t SSR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - __IO uint8_t ISBA; - __IO uint8_t ISMK; - uint8_t RESERVED4[2]; - union { - __IO uint16_t FCR; - struct { - __IO uint8_t FCR0; - __IO uint8_t FCR1; - }; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t FBYTE; - struct { - __IO uint8_t FBYTE1; - __IO uint8_t FBYTE2; - }; - }; -}FM3_MFS47_I2C_TypeDef; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC registers */ -typedef struct -{ - __IO uint8_t CRCCR; - uint8_t RESERVED0[3]; - __IO uint32_t CRCINIT; - union { - __IO uint32_t CRCIN; - struct { - union { - __IO uint16_t CRCINL; - struct { - __IO uint8_t CRCINLL; - __IO uint8_t CRCINLH; - }; - }; - union { - __IO uint16_t CRCINH; - struct { - __IO uint8_t CRCINHL; - __IO uint8_t CRCINHH; - }; - }; - }; - }; - __IO uint32_t CRCR; -}FM3_CRC_TypeDef; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* Watch counter registers */ -typedef struct -{ - __IO uint8_t WCRD; - __IO uint8_t WCRL; - __IO uint8_t WCCR; - uint8_t RESERVED0[13]; - __IO uint16_t CLK_SEL; - uint8_t RESERVED1[2]; - __IO uint8_t CLK_EN; -}FM3_WC_TypeDef; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* External bus interface registers */ -typedef struct -{ - __IO uint32_t MODE0; - __IO uint32_t MODE1; - __IO uint32_t MODE2; - __IO uint32_t MODE3; - __IO uint32_t MODE4; - __IO uint32_t MODE5; - __IO uint32_t MODE6; - __IO uint32_t MODE7; - __IO uint32_t TIM0; - __IO uint32_t TIM1; - __IO uint32_t TIM2; - __IO uint32_t TIM3; - __IO uint32_t TIM4; - __IO uint32_t TIM5; - __IO uint32_t TIM6; - __IO uint32_t TIM7; - __IO uint32_t AREA0; - __IO uint32_t AREA1; - __IO uint32_t AREA2; - __IO uint32_t AREA3; - __IO uint32_t AREA4; - __IO uint32_t AREA5; - __IO uint32_t AREA6; - __IO uint32_t AREA7; -}FM3_EXBUS_TypeDef; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB channel 0 registers */ -typedef struct -{ - union { - __IO uint16_t HCNT; - struct { - __IO uint8_t HCNT0; - __IO uint8_t HCNT1; - }; - }; - uint8_t RESERVED0[2]; - __IO uint8_t HIRQ; - __IO uint8_t HERR; - uint8_t RESERVED1[2]; - __IO uint8_t HSTATE; - __IO uint8_t HFCOMP; - uint8_t RESERVED2[2]; - union { - __IO uint16_t HRTIMER; - struct { - __IO uint8_t HRTIMER0; - __IO uint8_t HRTIMER1; - }; - }; - uint8_t RESERVED3[2]; - __IO uint8_t HRTIMER2; - __IO uint8_t HADR; - uint8_t RESERVED4[2]; - union { - __IO uint16_t HEOF; - struct { - __IO uint8_t HEOF0; - __IO uint8_t HEOF1; - }; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t HFRAME; - struct { - __IO uint8_t HFRAME0; - __IO uint8_t HFRAME1; - }; - }; - uint8_t RESERVED6[2]; - __IO uint8_t HTOKEN; - uint8_t RESERVED7[3]; - __IO uint16_t UDCC; - uint8_t RESERVED8[2]; - __IO uint16_t EP0C; - uint8_t RESERVED9[2]; - __IO uint16_t EP1C; - uint8_t RESERVED10[2]; - __IO uint16_t EP2C; - uint8_t RESERVED11[2]; - __IO uint16_t EP3C; - uint8_t RESERVED12[2]; - __IO uint16_t EP4C; - uint8_t RESERVED13[2]; - __IO uint16_t EP5C; - uint8_t RESERVED14[2]; - __IO uint16_t TMSP; - uint8_t RESERVED15[2]; - __IO uint8_t UDCS; - __IO uint8_t UDCIE; - uint8_t RESERVED16[2]; - __IO uint16_t EP0IS; - uint8_t RESERVED17[2]; - __IO uint16_t EP0OS; - uint8_t RESERVED18[2]; - __IO uint16_t EP1S; - uint8_t RESERVED19[2]; - __IO uint16_t EP2S; - uint8_t RESERVED20[2]; - __IO uint16_t EP3S; - uint8_t RESERVED21[2]; - __IO uint16_t EP4S; - uint8_t RESERVED22[2]; - __IO uint16_t EP5S; - uint8_t RESERVED23[2]; - union { - __IO uint16_t EP0DT; - struct { - __IO uint8_t EP0DTL; - __IO uint8_t EP0DTH; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t EP1DT; - struct { - __IO uint8_t EP1DTL; - __IO uint8_t EP1DTH; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint16_t EP2DT; - struct { - __IO uint8_t EP2DTL; - __IO uint8_t EP2DTH; - }; - }; - uint8_t RESERVED26[2]; - union { - __IO uint16_t EP3DT; - struct { - __IO uint8_t EP3DTL; - __IO uint8_t EP3DTH; - }; - }; - uint8_t RESERVED27[2]; - union { - __IO uint16_t EP4DT; - struct { - __IO uint8_t EP4DTL; - __IO uint8_t EP4DTH; - }; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t EP5DT; - struct { - __IO uint8_t EP5DTL; - __IO uint8_t EP5DTH; - }; - }; -}FM3_USB_TypeDef; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMA controller */ -typedef struct -{ - __IO uint32_t DMACR; - uint8_t RESERVED0[12]; - __IO uint32_t DMACA0; - __IO uint32_t DMACB0; - __IO uint32_t DMACSA0; - __IO uint32_t DMACDA0; - __IO uint32_t DMACA1; - __IO uint32_t DMACB1; - __IO uint32_t DMACSA1; - __IO uint32_t DMACDA1; - __IO uint32_t DMACA2; - __IO uint32_t DMACB2; - __IO uint32_t DMACSA2; - __IO uint32_t DMACDA2; - __IO uint32_t DMACA3; - __IO uint32_t DMACB3; - __IO uint32_t DMACSA3; - __IO uint32_t DMACDA3; - __IO uint32_t DMACA4; - __IO uint32_t DMACB4; - __IO uint32_t DMACSA4; - __IO uint32_t DMACDA4; - __IO uint32_t DMACA5; - __IO uint32_t DMACB5; - __IO uint32_t DMACSA5; - __IO uint32_t DMACDA5; - __IO uint32_t DMACA6; - __IO uint32_t DMACB6; - __IO uint32_t DMACSA6; - __IO uint32_t DMACDA6; - __IO uint32_t DMACA7; - __IO uint32_t DMACB7; - __IO uint32_t DMACSA7; - __IO uint32_t DMACDA7; -}FM3_DMAC_TypeDef; - -/****************************************************************************** - * CAN_MODULE - ******************************************************************************/ -/* CAN channel 0 registers */ -typedef struct -{ - __IO uint16_t CTRLR; - __IO uint16_t STATR; - __IO uint16_t ERRCNT; - __IO uint16_t BTR; - __IO uint16_t INTR; - __IO uint16_t TESTR; - __IO uint16_t BRPER; - uint8_t RESERVED0[2]; - __IO uint16_t IF1CREQ; - __IO uint16_t IF1CMSK; - union { - __IO uint32_t IF1MSK; - struct { - __IO uint16_t IF1MSK1; - __IO uint16_t IF1MSK2; - }; - }; - union { - __IO uint32_t IF1ARB; - struct { - __IO uint16_t IF1ARB1; - __IO uint16_t IF1ARB2; - }; - }; - __IO uint16_t IF1MCTR; - uint8_t RESERVED1[2]; - union { - __IO uint32_t IF1DTA_L; - struct { - __IO uint16_t IF1DTA1_L; - __IO uint16_t IF1DTA2_L; - }; - }; - union { - __IO uint32_t IF1DTB_L; - struct { - __IO uint16_t IF1DTB1_L; - __IO uint16_t IF1DTB2_L; - }; - }; - uint8_t RESERVED2[8]; - union { - __IO uint32_t IF1DTA_B; - struct { - __IO uint16_t IF1DTA2_B; - __IO uint16_t IF1DTA1_B; - }; - }; - union { - __IO uint32_t IF1DTB_B; - struct { - __IO uint16_t IF1DTB2_B; - __IO uint16_t IF1DTB1_B; - }; - }; - uint8_t RESERVED3[8]; - __IO uint16_t IF2CREQ; - __IO uint16_t IF2CMSK; - union { - __IO uint32_t IF2MSK; - struct { - __IO uint16_t IF2MSK1; - __IO uint16_t IF2MSK2; - }; - }; - union { - __IO uint32_t IF2ARB; - struct { - __IO uint16_t IF2ARB1; - __IO uint16_t IF2ARB2; - }; - }; - __IO uint16_t IF2MCTR; - uint8_t RESERVED4[2]; - union { - __IO uint32_t IF2DTA_L; - struct { - __IO uint16_t IF2DTA1_L; - __IO uint16_t IF2DTA2_L; - }; - }; - union { - __IO uint32_t IF2DTB_L; - struct { - __IO uint16_t IF2DTB1_L; - __IO uint16_t IF2DTB2_L; - }; - }; - uint8_t RESERVED5[8]; - union { - __IO uint32_t IF2DTA_B; - struct { - __IO uint16_t IF2DTA2_B; - __IO uint16_t IF2DTA1_B; - }; - }; - union { - __IO uint32_t IF2DTB_B; - struct { - __IO uint16_t IF2DTB2_B; - __IO uint16_t IF2DTB1_B; - }; - }; - uint8_t RESERVED6[24]; - union { - __IO uint32_t TREQR; - struct { - __IO uint16_t TREQR1; - __IO uint16_t TREQR2; - }; - }; - uint8_t RESERVED7[12]; - union { - __IO uint32_t NEWDT; - struct { - __IO uint16_t NEWDT1; - __IO uint16_t NEWDT2; - }; - }; - uint8_t RESERVED8[12]; - union { - __IO uint32_t INTPND; - struct { - __IO uint16_t INTPND1; - __IO uint16_t INTPND2; - }; - }; - uint8_t RESERVED9[12]; - union { - __IO uint32_t MSGVAL; - struct { - __IO uint16_t MSGVAL1; - __IO uint16_t MSGVAL2; - }; - }; -}FM3_CAN_TypeDef; - - -/****************************************************************************** - * Peripheral memory map - ******************************************************************************/ -#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ -#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ -#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ - -#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ -#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ -#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ -#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ -#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ -#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ -#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ -#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ -#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ -#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ -#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ -#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ -#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ -#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ -#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ -#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ -#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ -#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ -#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ -#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ -#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ -#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ -#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ -#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ -#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ -#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ -#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ -#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ -#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ -#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ -#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ -#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ -#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ -#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ -#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ -#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ -#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ -#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ -#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ -#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ -#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ -#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ -#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ -#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ -#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ -#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ -#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ -#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ -#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ -#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ -#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ -#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ -#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ -#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ -#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ -#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ -#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ -#define FM3_USBCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ -#define FM3_CANPRES_BASE (FM3_PERIPH_BASE + 0x37000UL) /* CAN prescaler register */ -#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ -#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ -#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ -#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ -#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ -#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ -#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ -#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ -#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ -#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ -#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ -#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ -#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ -#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ -#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ -#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ -#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ -#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ -#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ -#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ -#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ -#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ -#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ -#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ -#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ -#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ -#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ -#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ -#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ -#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ -#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ -#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ -#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ -#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ -#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ -#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ -#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ -#define FM3_CAN0_BASE (FM3_PERIPH_BASE + 0x62000UL) /* CAN channel 0 registers */ -#define FM3_CAN1_BASE (FM3_PERIPH_BASE + 0x63000UL) /* CAN channel 1 registers */ - -/****************************************************************************** - * Peripheral declaration - ******************************************************************************/ -#define FM3_FLASH_IF ((FM3_FIF_TypeDef *)FM3_FLASH_IF_BASE) -#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) -#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) -#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) -#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) -#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) -#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) -#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) -#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) -#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) -#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) -#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) -#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) -#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) -#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) -#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) -#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) -#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) -#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) -#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) -#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) -#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) -#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) -#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) -#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) -#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) -#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) -#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) -#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) -#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) -#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) -#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) -#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) -#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) -#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) -#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) -#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) -#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) -#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) -#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) -#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) -#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) -#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) -#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) -#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) -#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) -#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) -#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) -#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) -#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) -#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) -#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) -#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) -#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) -#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) -#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) -#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) -#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) -#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) -#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) -#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) -#define FM3_USBCLK ((FM3_USBCLK_TypeDef *)FM3_USBCLK_BASE) -#define FM3_CANPRES ((FM3_CANPRE_TypeDef *)FM3_CANPRES_BASE) -#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) -#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) -#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) -#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) -#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) -#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) -#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) -#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) -#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) -#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) -#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) -#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) -#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) -#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) -#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) -#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) -#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) -#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) -#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) -#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) -#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) -#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) -#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) -#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) -#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) -#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) -#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) -#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) -#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) -#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) -#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) -#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) -#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) -#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) -#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) -#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) -#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) -#define FM3_CAN0 ((FM3_CAN_TypeDef *)FM3_CAN0_BASE) -#define FM3_CAN1 ((FM3_CAN_TypeDef *)FM3_CAN1_BASE) - -/****************************************************************************** - * Peripheral Bit Band Alias declaration - ******************************************************************************/ - -/* Flash interface registers */ -#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) -#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) -#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) -#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) -#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) -#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) -#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) -#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) -#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) - -/* Clock and reset registers */ -#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) -#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) -#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) -#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) -#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) -#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) -#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) -#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) -#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) -#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) -#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) -#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) -#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) -#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) -#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) -#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) -#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) -#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) -#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) -#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) -#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) -#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) -#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) -#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) -#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) -#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) -#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) -#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) -#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) -#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) -#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) -#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) -#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) -#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) -#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) -#define bFM3_CRG_TTC_PSR_TTC *((volatile unsigned int*)(0x42200500UL)) -#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) -#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) -#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) -#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) -#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) -#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) -#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) -#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) -#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) -#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) -#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) -#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) -#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) -#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) -#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) -#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) -#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) -#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) -#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) -#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) -#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) -#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) -#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) -#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) -#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) -#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) -#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) -#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) -#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) -#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) -#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) -#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) -#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) -#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) -#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) -#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) -#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) -#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) -#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) -#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) -#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) -#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) -#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) -#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) -#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) - -/* Hardware watchdog registers */ -#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) -#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) -#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) - -/* Software watchdog registers */ -#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) -#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) -#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) - -/* Dual timer 1/2 registers */ -#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) -#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) -#define bFM3_DTIM_TIMER1RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0200UL)) -#define bFM3_DTIM_TIMER1MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0280UL)) -#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) -#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) -#define bFM3_DTIM_TIMER2RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0600UL)) -#define bFM3_DTIM_TIMER2MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0680UL)) - -/* Multifunction Timer unit 0 Free Running Timer registers */ -#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) -#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) -#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) -#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) -#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) -#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) -#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) -#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) -#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) -#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) -#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) -#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) -#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) -#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) -#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) -#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) -#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) -#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) -#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) -#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) -#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) -#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) -#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) -#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) -#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) -#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) -#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) -#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) -#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) -#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) -#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) - -/* Multifunction Timer unit 0 Output Compare Unit registers */ -#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) -#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) -#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) -#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) -#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) -#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) -#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) -#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) -#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) -#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) -#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) -#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) -#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) -#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) -#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) -#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) -#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) -#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) -#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) -#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) -#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) -#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) -#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) -#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) -#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) -#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) - -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) -#define bFM3_MFT0_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4240118CUL)) -#define bFM3_MFT0_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42401190UL)) -#define bFM3_MFT0_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42401194UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) -#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) -#define bFM3_MFT0_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4240120CUL)) -#define bFM3_MFT0_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42401210UL)) -#define bFM3_MFT0_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42401214UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) -#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) -#define bFM3_MFT0_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4240128CUL)) -#define bFM3_MFT0_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42401290UL)) -#define bFM3_MFT0_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42401294UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) -#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) -#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) -#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) -#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) -#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) -#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) -#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) -#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) -#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) - -/* Multifunction Timer unit 0 Input Capture Unit registers */ -#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) -#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) -#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) -#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) -#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) -#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) -#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) -#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) -#define bFM3_MFT0_ICU_ICSA10_IPC0 *((volatile unsigned int*)(0x42400F18UL)) -#define bFM3_MFT0_ICU_ICSA10_IPC1 *((volatile unsigned int*)(0x42400F1CUL)) -#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) -#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) -#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) -#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) -#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) -#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) -#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) -#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) -#define bFM3_MFT0_ICU_ICSA32_IPC2 *((volatile unsigned int*)(0x42400F98UL)) -#define bFM3_MFT0_ICU_ICSA32_IPC3 *((volatile unsigned int*)(0x42400F9CUL)) -#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) -#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) - -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) -#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) - -/* Multifunction Timer unit 1 Free Running Timer registers */ -#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) -#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) -#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) -#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) -#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) -#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) -#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) -#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) -#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) -#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) -#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) -#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) -#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) -#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) -#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) -#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) -#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) -#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) -#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) -#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) -#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) -#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) -#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) -#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) -#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) -#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) -#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) -#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) -#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) -#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) -#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) - -/* Multifunction Timer unit 1 Output Compare Unit registers */ -#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) -#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) -#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) -#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) -#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) -#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) -#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) -#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) -#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) -#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) -#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) -#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) -#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) -#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) -#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) -#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) -#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) -#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) -#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) -#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) -#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) -#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) -#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) -#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) -#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) -#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) - -/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) -#define bFM3_MFT1_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4242118CUL)) -#define bFM3_MFT1_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42421190UL)) -#define bFM3_MFT1_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42421194UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) -#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) -#define bFM3_MFT1_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4242120CUL)) -#define bFM3_MFT1_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42421210UL)) -#define bFM3_MFT1_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42421214UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) -#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) -#define bFM3_MFT1_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4242128CUL)) -#define bFM3_MFT1_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42421290UL)) -#define bFM3_MFT1_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42421294UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) -#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) -#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) -#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) -#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) -#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) -#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) -#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) -#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) -#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) - -/* Multifunction Timer unit 1 Input Capture Unit registers */ -#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) -#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) -#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) -#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) -#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) -#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) -#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) -#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) -#define bFM3_MFT1_ICU_ICSA10_IPC0 *((volatile unsigned int*)(0x42420F18UL)) -#define bFM3_MFT1_ICU_ICSA10_IPC1 *((volatile unsigned int*)(0x42420F1CUL)) -#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) -#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) -#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) -#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) -#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) -#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) -#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) -#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) -#define bFM3_MFT1_ICU_ICSA32_IPC2 *((volatile unsigned int*)(0x42420F98UL)) -#define bFM3_MFT1_ICU_ICSA32_IPC3 *((volatile unsigned int*)(0x42420F9CUL)) -#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) -#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) - -/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) -#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) - -/* Multifunction Timer PPG registers */ -#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) -#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) -#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) -#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) -#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) -#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) -#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) -#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) -#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) -#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) -#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) -#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) -#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) -#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) -#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) -#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) -#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) -#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) -#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) -#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) -#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) -#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) -#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) -#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) -#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) -#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) -#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) -#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) -#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) -#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) -#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) -#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) -#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) -#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) -#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) -#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) -#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) -#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) -#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) -#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) -#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) -#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) -#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) -#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) -#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) -#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) -#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) -#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) -#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) -#define bFM3_MFT_PPG_PPGC1_MD0 *((volatile unsigned int*)(0x42484004UL)) -#define bFM3_MFT_PPG_PPGC1_MD1 *((volatile unsigned int*)(0x42484008UL)) -#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) -#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) -#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) -#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) -#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) -#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) -#define bFM3_MFT_PPG_PPGC0_MD0 *((volatile unsigned int*)(0x42484024UL)) -#define bFM3_MFT_PPG_PPGC0_MD1 *((volatile unsigned int*)(0x42484028UL)) -#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) -#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) -#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) -#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) -#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) -#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) -#define bFM3_MFT_PPG_PPGC3_MD0 *((volatile unsigned int*)(0x42484084UL)) -#define bFM3_MFT_PPG_PPGC3_MD1 *((volatile unsigned int*)(0x42484088UL)) -#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) -#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) -#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) -#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) -#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) -#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) -#define bFM3_MFT_PPG_PPGC2_MD0 *((volatile unsigned int*)(0x424840A4UL)) -#define bFM3_MFT_PPG_PPGC2_MD1 *((volatile unsigned int*)(0x424840A8UL)) -#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) -#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) -#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) -#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) -#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) -#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) -#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) -#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) -#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) -#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) -#define bFM3_MFT_PPG_PPGC5_MD0 *((volatile unsigned int*)(0x42484804UL)) -#define bFM3_MFT_PPG_PPGC5_MD1 *((volatile unsigned int*)(0x42484808UL)) -#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) -#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) -#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) -#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) -#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) -#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) -#define bFM3_MFT_PPG_PPGC4_MD0 *((volatile unsigned int*)(0x42484824UL)) -#define bFM3_MFT_PPG_PPGC4_MD1 *((volatile unsigned int*)(0x42484828UL)) -#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) -#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) -#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) -#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) -#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) -#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) -#define bFM3_MFT_PPG_PPGC7_MD0 *((volatile unsigned int*)(0x42484884UL)) -#define bFM3_MFT_PPG_PPGC7_MD1 *((volatile unsigned int*)(0x42484888UL)) -#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) -#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) -#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) -#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) -#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) -#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) -#define bFM3_MFT_PPG_PPGC6_MD0 *((volatile unsigned int*)(0x424848A4UL)) -#define bFM3_MFT_PPG_PPGC6_MD1 *((volatile unsigned int*)(0x424848A8UL)) -#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) -#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) -#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) -#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) -#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) -#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) -#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) -#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) -#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) -#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) -#define bFM3_MFT_PPG_PPGC9_MD0 *((volatile unsigned int*)(0x42485004UL)) -#define bFM3_MFT_PPG_PPGC9_MD1 *((volatile unsigned int*)(0x42485008UL)) -#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) -#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) -#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) -#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) -#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) -#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) -#define bFM3_MFT_PPG_PPGC8_MD0 *((volatile unsigned int*)(0x42485024UL)) -#define bFM3_MFT_PPG_PPGC8_MD1 *((volatile unsigned int*)(0x42485028UL)) -#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) -#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) -#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) -#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) -#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) -#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) -#define bFM3_MFT_PPG_PPGC11_MD0 *((volatile unsigned int*)(0x42485084UL)) -#define bFM3_MFT_PPG_PPGC11_MD1 *((volatile unsigned int*)(0x42485088UL)) -#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) -#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) -#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) -#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) -#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) -#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) -#define bFM3_MFT_PPG_PPGC10_MD0 *((volatile unsigned int*)(0x424850A4UL)) -#define bFM3_MFT_PPG_PPGC10_MD1 *((volatile unsigned int*)(0x424850A8UL)) -#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) -#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) -#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) -#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) -#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) -#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) -#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) -#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) -#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) -#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) -#define bFM3_MFT_PPG_PPGC13_MD0 *((volatile unsigned int*)(0x42485804UL)) -#define bFM3_MFT_PPG_PPGC13_MD1 *((volatile unsigned int*)(0x42485808UL)) -#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) -#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) -#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) -#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) -#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) -#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) -#define bFM3_MFT_PPG_PPGC12_MD0 *((volatile unsigned int*)(0x42485824UL)) -#define bFM3_MFT_PPG_PPGC12_MD1 *((volatile unsigned int*)(0x42485828UL)) -#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) -#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) -#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) -#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) -#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) -#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) -#define bFM3_MFT_PPG_PPGC15_MD0 *((volatile unsigned int*)(0x42485884UL)) -#define bFM3_MFT_PPG_PPGC15_MD1 *((volatile unsigned int*)(0x42485888UL)) -#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) -#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) -#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) -#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) -#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) -#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) -#define bFM3_MFT_PPG_PPGC14_MD0 *((volatile unsigned int*)(0x424858A4UL)) -#define bFM3_MFT_PPG_PPGC14_MD1 *((volatile unsigned int*)(0x424858A8UL)) -#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) -#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) -#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) -#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) -#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) -#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) -#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) -#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) -#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) - -/* Base Timer 0 PPG registers */ -#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWM registers */ -#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) -#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) -#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 RT registers */ -#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWC registers */ -#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) -#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 1 PPG registers */ -#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWM registers */ -#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) -#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) -#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 RT registers */ -#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWC registers */ -#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) -#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 2 PPG registers */ -#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWM registers */ -#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) -#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) -#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 RT registers */ -#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWC registers */ -#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) -#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 3 PPG registers */ -#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWM registers */ -#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) -#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) -#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 RT registers */ -#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWC registers */ -#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) -#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 4 PPG registers */ -#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWM registers */ -#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) -#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) -#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 RT registers */ -#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWC registers */ -#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) -#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 5 PPG registers */ -#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWM registers */ -#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) -#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) -#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 RT registers */ -#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWC registers */ -#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) -#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 6 PPG registers */ -#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWM registers */ -#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) -#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) -#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 RT registers */ -#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWC registers */ -#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) -#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 7 PPG registers */ -#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWM registers */ -#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) -#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) -#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 RT registers */ -#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWC registers */ -#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) -#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer I/O selector channel 0 - channel 3 registers */ -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) - -/* Base Timer I/O selector channel 4 - channel 7 registers */ -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) - -/* Software based Simulation Startup (Base Timer) register */ -#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) -#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) -#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) -#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) -#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) -#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) -#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) -#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) -#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) -#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) -#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) -#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) -#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) -#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) -#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) -#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) - -/* Quad position and revolution counter channel 0 registers */ -#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) -#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) -#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) - -/* Quad position and revolution counter channel 1 registers */ -#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) -#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) -#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) - -/* 12-bit ADC unit 0 registers */ -#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) -#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) -#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) -#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) -#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) -#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) -#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) -#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) -#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) -#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) -#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) -#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) -#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) -#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) -#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) -#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) -#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) -#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) -#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) -#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) -#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) -#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) -#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) -#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) -#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) -#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) -#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) -#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) -#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) -#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) -#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) -#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) -#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) -#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) -#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) -#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) -#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) -#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) -#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) -#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) -#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) -#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) -#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) -#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) -#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) -#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) -#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) -#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) -#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) -#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) -#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) -#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) -#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) -#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) -#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) -#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) -#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) -#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) -#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) -#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) -#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) -#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) -#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) -#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) -#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) -#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) -#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) -#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) -#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) -#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) -#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) -#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) -#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) -#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) - -/* 12-bit ADC unit 1 registers */ -#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) -#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) -#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) -#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) -#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) -#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) -#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) -#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) -#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) -#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) -#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) -#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) -#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) -#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) -#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) -#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) -#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) -#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) -#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) -#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) -#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) -#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) -#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) -#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) -#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) -#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) -#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) -#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) -#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) -#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) -#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) -#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) -#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) -#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) -#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) -#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) -#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) -#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) -#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) -#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) -#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) -#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) -#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) -#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) -#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) -#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) -#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) -#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) -#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) -#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) -#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) -#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) -#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) -#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) -#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) -#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) -#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) -#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) -#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) -#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) -#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) -#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) -#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) -#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) -#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) -#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) -#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) -#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) -#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) -#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) -#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) -#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) -#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) -#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) - -/* 12-bit ADC unit 2 registers */ -#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) -#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) -#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) -#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) -#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) -#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) -#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) -#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) -#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) -#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) -#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) -#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) -#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) -#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) -#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) -#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) -#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) -#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) -#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) -#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) -#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) -#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) -#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) -#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) -#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) -#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) -#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) -#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) -#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) -#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) -#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) -#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) -#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) -#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) -#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) -#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) -#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) -#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) -#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) -#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) -#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) -#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) -#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) -#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) -#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) -#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) -#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) -#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) -#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) -#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) -#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) -#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) -#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) -#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) -#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) -#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) -#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) -#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) -#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) -#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) -#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) -#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) -#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) -#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) -#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) -#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) -#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) -#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) -#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) -#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) -#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) -#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) -#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) -#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) - -/* CR trimming registers */ -#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) -#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD8 *((volatile unsigned int*)(0x425C00A0UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD9 *((volatile unsigned int*)(0x425C00A4UL)) - -/* External interrupt registers */ -#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) -#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) -#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) -#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) -#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) -#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) -#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) -#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) -#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) -#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) -#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) -#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) -#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) -#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) -#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) -#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) -#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) -#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) -#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) -#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) -#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) -#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) -#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) -#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) -#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) -#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) -#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) -#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) -#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) -#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) -#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) -#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) -#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) -#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) -#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) -#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) -#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) -#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) -#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) -#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) -#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) -#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) -#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) -#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) -#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) -#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) -#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) -#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) -#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) -#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) -#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) -#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) -#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) -#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) -#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) -#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) -#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) -#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) -#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) -#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) -#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) -#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) -#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) -#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) -#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) -#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) -#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) -#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) -#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) -#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) -#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) -#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) -#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) -#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) -#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) -#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) -#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) -#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) -#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) -#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) -#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) -#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) - -/* Interrupt request read registers */ -#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) -#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) -#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) -#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) -#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) -#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT0 *((volatile unsigned int*)(0x42620580UL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620584UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) -#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) -#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) -#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) -#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) -#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) -#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) -#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) -#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) -#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) -#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) -#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) -#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) -#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) -#define bFM3_INTREQ_IRQ32MON_CANINT *((volatile unsigned int*)(0x42621280UL)) -#define bFM3_INTREQ_IRQ33MON_CANINT *((volatile unsigned int*)(0x42621300UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) -#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) -#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) -#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) -#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) -#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) -#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) -#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) -#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) - -/* General purpose I/O registers */ -#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) -#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) -#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) -#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) -#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) -#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) -#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) -#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) -#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) -#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) -#define bFM3_GPIO_PFR0_PA *((volatile unsigned int*)(0x42660028UL)) -#define bFM3_GPIO_PFR0_PB *((volatile unsigned int*)(0x4266002CUL)) -#define bFM3_GPIO_PFR0_PC *((volatile unsigned int*)(0x42660030UL)) -#define bFM3_GPIO_PFR0_PD *((volatile unsigned int*)(0x42660034UL)) -#define bFM3_GPIO_PFR0_PE *((volatile unsigned int*)(0x42660038UL)) -#define bFM3_GPIO_PFR0_PF *((volatile unsigned int*)(0x4266003CUL)) -#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) -#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) -#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) -#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) -#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) -#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) -#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) -#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) -#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) -#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) -#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) -#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) -#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) -#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) -#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) -#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) -#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) -#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) -#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) -#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) -#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) -#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) -#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) -#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) -#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) -#define bFM3_GPIO_PFR3_P0 *((volatile unsigned int*)(0x42660180UL)) -#define bFM3_GPIO_PFR3_P1 *((volatile unsigned int*)(0x42660184UL)) -#define bFM3_GPIO_PFR3_P2 *((volatile unsigned int*)(0x42660188UL)) -#define bFM3_GPIO_PFR3_P3 *((volatile unsigned int*)(0x4266018CUL)) -#define bFM3_GPIO_PFR3_P4 *((volatile unsigned int*)(0x42660190UL)) -#define bFM3_GPIO_PFR3_P5 *((volatile unsigned int*)(0x42660194UL)) -#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) -#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) -#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) -#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) -#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) -#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) -#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) -#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) -#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) -#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) -#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) -#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) -#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) -#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) -#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) -#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) -#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) -#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) -#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) -#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) -#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) -#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) -#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) -#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) -#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) -#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) -#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) -#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) -#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) -#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) -#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) -#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) -#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) -#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) -#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) -#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) -#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) -#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) -#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) -#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) -#define bFM3_GPIO_PFR6_P3 *((volatile unsigned int*)(0x4266030CUL)) -#define bFM3_GPIO_PFR6_P4 *((volatile unsigned int*)(0x42660310UL)) -#define bFM3_GPIO_PFR6_P5 *((volatile unsigned int*)(0x42660314UL)) -#define bFM3_GPIO_PFR6_P6 *((volatile unsigned int*)(0x42660318UL)) -#define bFM3_GPIO_PFR6_P7 *((volatile unsigned int*)(0x4266031CUL)) -#define bFM3_GPIO_PFR6_P8 *((volatile unsigned int*)(0x42660320UL)) -#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) -#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) -#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) -#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) -#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) -#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) -#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) -#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) -#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) -#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) -#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) -#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) -#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) -#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) -#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) -#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) -#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) -#define bFM3_GPIO_PCR0_PA *((volatile unsigned int*)(0x42662028UL)) -#define bFM3_GPIO_PCR0_PB *((volatile unsigned int*)(0x4266202CUL)) -#define bFM3_GPIO_PCR0_PC *((volatile unsigned int*)(0x42662030UL)) -#define bFM3_GPIO_PCR0_PD *((volatile unsigned int*)(0x42662034UL)) -#define bFM3_GPIO_PCR0_PE *((volatile unsigned int*)(0x42662038UL)) -#define bFM3_GPIO_PCR0_PF *((volatile unsigned int*)(0x4266203CUL)) -#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) -#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) -#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) -#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) -#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) -#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) -#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) -#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) -#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) -#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) -#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) -#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) -#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) -#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) -#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) -#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) -#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) -#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) -#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) -#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) -#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) -#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) -#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) -#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) -#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) -#define bFM3_GPIO_PCR3_P0 *((volatile unsigned int*)(0x42662180UL)) -#define bFM3_GPIO_PCR3_P1 *((volatile unsigned int*)(0x42662184UL)) -#define bFM3_GPIO_PCR3_P2 *((volatile unsigned int*)(0x42662188UL)) -#define bFM3_GPIO_PCR3_P3 *((volatile unsigned int*)(0x4266218CUL)) -#define bFM3_GPIO_PCR3_P4 *((volatile unsigned int*)(0x42662190UL)) -#define bFM3_GPIO_PCR3_P5 *((volatile unsigned int*)(0x42662194UL)) -#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) -#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) -#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) -#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) -#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) -#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) -#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) -#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) -#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) -#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) -#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) -#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) -#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) -#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) -#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) -#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) -#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) -#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) -#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) -#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) -#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) -#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) -#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) -#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) -#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) -#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) -#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) -#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) -#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) -#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) -#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) -#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) -#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) -#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) -#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) -#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) -#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) -#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) -#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) -#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) -#define bFM3_GPIO_PCR6_P3 *((volatile unsigned int*)(0x4266230CUL)) -#define bFM3_GPIO_PCR6_P4 *((volatile unsigned int*)(0x42662310UL)) -#define bFM3_GPIO_PCR6_P5 *((volatile unsigned int*)(0x42662314UL)) -#define bFM3_GPIO_PCR6_P6 *((volatile unsigned int*)(0x42662318UL)) -#define bFM3_GPIO_PCR6_P7 *((volatile unsigned int*)(0x4266231CUL)) -#define bFM3_GPIO_PCR6_P8 *((volatile unsigned int*)(0x42662320UL)) -#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) -#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) -#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) -#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) -#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) -#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) -#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) -#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) -#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) -#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) -#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) -#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) -#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) -#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) -#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) -#define bFM3_GPIO_DDR0_PA *((volatile unsigned int*)(0x42664028UL)) -#define bFM3_GPIO_DDR0_PB *((volatile unsigned int*)(0x4266402CUL)) -#define bFM3_GPIO_DDR0_PC *((volatile unsigned int*)(0x42664030UL)) -#define bFM3_GPIO_DDR0_PD *((volatile unsigned int*)(0x42664034UL)) -#define bFM3_GPIO_DDR0_PE *((volatile unsigned int*)(0x42664038UL)) -#define bFM3_GPIO_DDR0_PF *((volatile unsigned int*)(0x4266403CUL)) -#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) -#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) -#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) -#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) -#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) -#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) -#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) -#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) -#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) -#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) -#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) -#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) -#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) -#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) -#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) -#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) -#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) -#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) -#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) -#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) -#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) -#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) -#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) -#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) -#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) -#define bFM3_GPIO_DDR3_P0 *((volatile unsigned int*)(0x42664180UL)) -#define bFM3_GPIO_DDR3_P1 *((volatile unsigned int*)(0x42664184UL)) -#define bFM3_GPIO_DDR3_P2 *((volatile unsigned int*)(0x42664188UL)) -#define bFM3_GPIO_DDR3_P3 *((volatile unsigned int*)(0x4266418CUL)) -#define bFM3_GPIO_DDR3_P4 *((volatile unsigned int*)(0x42664190UL)) -#define bFM3_GPIO_DDR3_P5 *((volatile unsigned int*)(0x42664194UL)) -#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) -#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) -#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) -#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) -#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) -#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) -#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) -#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) -#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) -#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) -#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) -#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) -#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) -#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) -#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) -#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) -#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) -#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) -#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) -#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) -#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) -#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) -#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) -#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) -#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) -#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) -#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) -#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) -#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) -#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) -#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) -#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) -#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) -#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) -#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) -#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) -#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) -#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) -#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) -#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) -#define bFM3_GPIO_DDR6_P3 *((volatile unsigned int*)(0x4266430CUL)) -#define bFM3_GPIO_DDR6_P4 *((volatile unsigned int*)(0x42664310UL)) -#define bFM3_GPIO_DDR6_P5 *((volatile unsigned int*)(0x42664314UL)) -#define bFM3_GPIO_DDR6_P6 *((volatile unsigned int*)(0x42664318UL)) -#define bFM3_GPIO_DDR6_P7 *((volatile unsigned int*)(0x4266431CUL)) -#define bFM3_GPIO_DDR6_P8 *((volatile unsigned int*)(0x42664320UL)) -#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) -#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) -#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) -#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) -#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) -#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) -#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) -#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) -#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) -#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) -#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) -#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) -#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) -#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) -#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) -#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) -#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) -#define bFM3_GPIO_PDIR0_PA *((volatile unsigned int*)(0x42666028UL)) -#define bFM3_GPIO_PDIR0_PB *((volatile unsigned int*)(0x4266602CUL)) -#define bFM3_GPIO_PDIR0_PC *((volatile unsigned int*)(0x42666030UL)) -#define bFM3_GPIO_PDIR0_PD *((volatile unsigned int*)(0x42666034UL)) -#define bFM3_GPIO_PDIR0_PE *((volatile unsigned int*)(0x42666038UL)) -#define bFM3_GPIO_PDIR0_PF *((volatile unsigned int*)(0x4266603CUL)) -#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) -#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) -#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) -#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) -#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) -#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) -#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) -#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) -#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) -#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) -#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) -#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) -#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) -#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) -#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) -#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) -#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) -#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) -#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) -#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) -#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) -#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) -#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) -#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) -#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) -#define bFM3_GPIO_PDIR3_P0 *((volatile unsigned int*)(0x42666180UL)) -#define bFM3_GPIO_PDIR3_P1 *((volatile unsigned int*)(0x42666184UL)) -#define bFM3_GPIO_PDIR3_P2 *((volatile unsigned int*)(0x42666188UL)) -#define bFM3_GPIO_PDIR3_P3 *((volatile unsigned int*)(0x4266618CUL)) -#define bFM3_GPIO_PDIR3_P4 *((volatile unsigned int*)(0x42666190UL)) -#define bFM3_GPIO_PDIR3_P5 *((volatile unsigned int*)(0x42666194UL)) -#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) -#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) -#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) -#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) -#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) -#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) -#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) -#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) -#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) -#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) -#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) -#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) -#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) -#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) -#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) -#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) -#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) -#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) -#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) -#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) -#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) -#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) -#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) -#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) -#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) -#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) -#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) -#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) -#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) -#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) -#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) -#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) -#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) -#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) -#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) -#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) -#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) -#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) -#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) -#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) -#define bFM3_GPIO_PDIR6_P3 *((volatile unsigned int*)(0x4266630CUL)) -#define bFM3_GPIO_PDIR6_P4 *((volatile unsigned int*)(0x42666310UL)) -#define bFM3_GPIO_PDIR6_P5 *((volatile unsigned int*)(0x42666314UL)) -#define bFM3_GPIO_PDIR6_P6 *((volatile unsigned int*)(0x42666318UL)) -#define bFM3_GPIO_PDIR6_P7 *((volatile unsigned int*)(0x4266631CUL)) -#define bFM3_GPIO_PDIR6_P8 *((volatile unsigned int*)(0x42666320UL)) -#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) -#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) -#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) -#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) -#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) -#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) -#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) -#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) -#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) -#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) -#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) -#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) -#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) -#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) -#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) -#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) -#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) -#define bFM3_GPIO_PDOR0_PA *((volatile unsigned int*)(0x42668028UL)) -#define bFM3_GPIO_PDOR0_PB *((volatile unsigned int*)(0x4266802CUL)) -#define bFM3_GPIO_PDOR0_PC *((volatile unsigned int*)(0x42668030UL)) -#define bFM3_GPIO_PDOR0_PD *((volatile unsigned int*)(0x42668034UL)) -#define bFM3_GPIO_PDOR0_PE *((volatile unsigned int*)(0x42668038UL)) -#define bFM3_GPIO_PDOR0_PF *((volatile unsigned int*)(0x4266803CUL)) -#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) -#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) -#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) -#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) -#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) -#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) -#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) -#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) -#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) -#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) -#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) -#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) -#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) -#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) -#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) -#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) -#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) -#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) -#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) -#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) -#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) -#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) -#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) -#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) -#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) -#define bFM3_GPIO_PDOR3_P0 *((volatile unsigned int*)(0x42668180UL)) -#define bFM3_GPIO_PDOR3_P1 *((volatile unsigned int*)(0x42668184UL)) -#define bFM3_GPIO_PDOR3_P2 *((volatile unsigned int*)(0x42668188UL)) -#define bFM3_GPIO_PDOR3_P3 *((volatile unsigned int*)(0x4266818CUL)) -#define bFM3_GPIO_PDOR3_P4 *((volatile unsigned int*)(0x42668190UL)) -#define bFM3_GPIO_PDOR3_P5 *((volatile unsigned int*)(0x42668194UL)) -#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) -#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) -#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) -#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) -#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) -#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) -#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) -#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) -#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) -#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) -#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) -#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) -#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) -#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) -#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) -#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) -#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) -#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) -#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) -#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) -#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) -#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) -#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) -#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) -#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) -#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) -#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) -#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) -#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) -#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) -#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) -#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) -#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) -#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) -#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) -#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) -#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) -#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) -#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) -#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) -#define bFM3_GPIO_PDOR6_P3 *((volatile unsigned int*)(0x4266830CUL)) -#define bFM3_GPIO_PDOR6_P4 *((volatile unsigned int*)(0x42668310UL)) -#define bFM3_GPIO_PDOR6_P5 *((volatile unsigned int*)(0x42668314UL)) -#define bFM3_GPIO_PDOR6_P6 *((volatile unsigned int*)(0x42668318UL)) -#define bFM3_GPIO_PDOR6_P7 *((volatile unsigned int*)(0x4266831CUL)) -#define bFM3_GPIO_PDOR6_P8 *((volatile unsigned int*)(0x42668320UL)) -#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) -#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) -#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) -#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) -#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) -#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) -#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) -#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) -#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) -#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) -#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) -#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) -#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) -#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) -#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) -#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) -#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) -#define bFM3_GPIO_ADE_ANA *((volatile unsigned int*)(0x4266A028UL)) -#define bFM3_GPIO_ADE_ANB *((volatile unsigned int*)(0x4266A02CUL)) -#define bFM3_GPIO_ADE_ANC *((volatile unsigned int*)(0x4266A030UL)) -#define bFM3_GPIO_ADE_AND *((volatile unsigned int*)(0x4266A034UL)) -#define bFM3_GPIO_ADE_ANE *((volatile unsigned int*)(0x4266A038UL)) -#define bFM3_GPIO_ADE_ANF *((volatile unsigned int*)(0x4266A03CUL)) -#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) -#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) -#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) -#define bFM3_GPIO_EPFR00_CROUTE *((volatile unsigned int*)(0x4266C004UL)) -#define bFM3_GPIO_EPFR00_USB0PE *((volatile unsigned int*)(0x4266C024UL)) -#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) -#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) -#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) -#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) -#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) -#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) -#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) -#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) -#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) -#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) -#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) -#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) -#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) -#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) -#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) -#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) -#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) -#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) -#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) -#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) -#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) -#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) -#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) -#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) -#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) -#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) -#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) -#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) -#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) -#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) -#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) -#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) -#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) -#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) -#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) -#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) -#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) -#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) -#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) -#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) -#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) -#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) -#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) -#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) -#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) -#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) -#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) -#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) -#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) -#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) -#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) -#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) -#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) -#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) -#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) -#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) -#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) -#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) -#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) -#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) -#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) -#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) -#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) -#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) -#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) -#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) -#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) -#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) -#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) -#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) -#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) -#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) -#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) -#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) -#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) -#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) -#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) -#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) -#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) -#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) -#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) -#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) -#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) -#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) -#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) -#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) -#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) -#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) -#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) -#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) -#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) -#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) -#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) -#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) -#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) -#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) -#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) -#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) -#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) -#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) -#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) -#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) -#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) -#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) -#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) -#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) -#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) -#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) -#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) -#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) -#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) -#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) -#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) -#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) -#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) -#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) -#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) -#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) -#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) -#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) -#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) -#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) -#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) -#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) -#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) -#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) -#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) -#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) -#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) -#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) -#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) -#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) -#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) -#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) -#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) -#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) -#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) -#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) -#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) -#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) -#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) -#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) -#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) -#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) -#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) -#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) -#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) -#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) -#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) -#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) -#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) -#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) -#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) -#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) -#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) -#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) -#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) -#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) -#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) -#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) -#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) -#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) -#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) -#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) -#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) -#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) -#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) -#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) -#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) -#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) -#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) -#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) -#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) -#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) -#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) -#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) -#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) -#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) -#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) -#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) -#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) -#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) -#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) -#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) -#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) -#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) -#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) -#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) -#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) -#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) -#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) -#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) -#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) -#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) -#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) -#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) -#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) -#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) -#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) -#define bFM3_GPIO_EPFR09_CRX0S0 *((volatile unsigned int*)(0x4266C4E0UL)) -#define bFM3_GPIO_EPFR09_CRX0S1 *((volatile unsigned int*)(0x4266C4E4UL)) -#define bFM3_GPIO_EPFR09_CTX0E0 *((volatile unsigned int*)(0x4266C4E8UL)) -#define bFM3_GPIO_EPFR09_CTX0E1 *((volatile unsigned int*)(0x4266C4ECUL)) -#define bFM3_GPIO_EPFR09_CRX1S0 *((volatile unsigned int*)(0x4266C4F0UL)) -#define bFM3_GPIO_EPFR09_CRX1S1 *((volatile unsigned int*)(0x4266C4F4UL)) -#define bFM3_GPIO_EPFR09_CTX1E0 *((volatile unsigned int*)(0x4266C4F8UL)) -#define bFM3_GPIO_EPFR09_CTX1E1 *((volatile unsigned int*)(0x4266C4FCUL)) -#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) -#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) -#define bFM3_GPIO_EPFR10_TESTB *((volatile unsigned int*)(0x4266C508UL)) -#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) -#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) -#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) -#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) -#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) -#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) -#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) -#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) -#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) -#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) -#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) -#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) -#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) -#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) -#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) -#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) -#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) -#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) -#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) -#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) -#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) -#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) -#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) -#define bFM3_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x4266C568UL)) -#define bFM3_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x4266C56CUL)) -#define bFM3_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x4266C570UL)) -#define bFM3_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x4266C574UL)) -#define bFM3_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x4266C578UL)) -#define bFM3_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x4266C57CUL)) - -/* Low voltage detection registers */ -#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) -#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) -#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) -#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) -#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) -#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) -#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) -#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) - -/* USB clock registers */ -#define bFM3_USBCLK_UCCR_UCEN *((volatile unsigned int*)(0x426C0000UL)) -#define bFM3_USBCLK_UCCR_UCSEL *((volatile unsigned int*)(0x426C0004UL)) -#define bFM3_USBCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) -#define bFM3_USBCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) -#define bFM3_USBCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) -#define bFM3_USBCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) -#define bFM3_USBCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) -#define bFM3_USBCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) -#define bFM3_USBCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) -#define bFM3_USBCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) -#define bFM3_USBCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) -#define bFM3_USBCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) -#define bFM3_USBCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) -#define bFM3_USBCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) -#define bFM3_USBCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) -#define bFM3_USBCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) -#define bFM3_USBCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) -#define bFM3_USBCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) -#define bFM3_USBCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) -#define bFM3_USBCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) -#define bFM3_USBCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) -#define bFM3_USBCLK_USBEN_USBEN *((volatile unsigned int*)(0x426C0600UL)) - -/* CAN prescaler register */ -#define bFM3_CANPRES_CANPRE_CANPRE0 *((volatile unsigned int*)(0x426E0000UL)) -#define bFM3_CANPRES_CANPRE_CANPRE1 *((volatile unsigned int*)(0x426E0004UL)) -#define bFM3_CANPRES_CANPRE_CANPRE2 *((volatile unsigned int*)(0x426E0008UL)) -#define bFM3_CANPRES_CANPRE_CANPRE3 *((volatile unsigned int*)(0x426E000CUL)) - -/* UART asynchronous channel 0 registers */ -#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* UART synchronous channel 0 registers */ -#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) - -/* UART LIN channel 0 registers */ -#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* I2C channel 0 registers */ -#define bFM3_MFS0_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) -#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) -#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) -#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) -#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) -#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) -#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) -#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) -#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) -#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) -#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) -#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) -#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) -#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) -#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) -#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) -#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) - -/* UART asynchronous channel 1 registers */ -#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* UART synchronous channel 1 registers */ -#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) - -/* UART LIN channel 1 registers */ -#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* I2C channel 1 registers */ -#define bFM3_MFS1_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) -#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) -#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) -#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) -#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) -#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) -#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) -#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) -#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) -#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) -#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) -#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) -#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) -#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) -#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) -#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) -#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) - -/* UART asynchronous channel 2 registers */ -#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* UART synchronous channel 2 registers */ -#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) - -/* UART LIN channel 2 registers */ -#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* I2C channel 2 registers */ -#define bFM3_MFS2_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) -#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) -#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) -#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) -#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) -#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) -#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) -#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) -#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) -#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) -#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) -#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) -#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) -#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) -#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) -#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) -#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) - -/* UART asynchronous channel 3 registers */ -#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* UART synchronous channel 3 registers */ -#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) - -/* UART LIN channel 3 registers */ -#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* I2C channel 3 registers */ -#define bFM3_MFS3_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) -#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) -#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) -#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) -#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) -#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) -#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) -#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) -#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) -#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) -#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) -#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) -#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) -#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) -#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) -#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) -#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) - -/* UART asynchronous channel 4 registers */ -#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART synchronous channel 4 registers */ -#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708340UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708344UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708348UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270834CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708350UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708354UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708358UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270835CUL)) - -/* UART LIN channel 4 registers */ -#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708340UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708344UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708348UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270834CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708350UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708354UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708358UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270835CUL)) - -/* I2C channel 4 registers */ -#define bFM3_MFS4_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) -#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) -#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) -#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) -#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) -#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) -#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) -#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) -#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) -#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) -#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) -#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) -#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) -#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) -#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) -#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) -#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) -#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708340UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708344UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708348UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270834CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708350UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708354UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708358UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270835CUL)) - -/* UART asynchronous channel 5 registers */ -#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART synchronous channel 5 registers */ -#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A340UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A344UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A348UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A34CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A350UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A354UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A358UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A35CUL)) - -/* UART LIN channel 5 registers */ -#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A340UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A344UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A348UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A34CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A350UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A354UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A358UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A35CUL)) - -/* I2C channel 5 registers */ -#define bFM3_MFS5_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) -#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) -#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) -#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) -#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) -#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) -#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) -#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) -#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) -#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) -#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) -#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) -#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) -#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) -#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) -#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) -#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) -#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A340UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A344UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A348UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A34CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A350UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A354UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A358UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A35CUL)) - -/* UART asynchronous channel 6 registers */ -#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART synchronous channel 6 registers */ -#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C340UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C344UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C348UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C34CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C350UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C354UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C358UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C35CUL)) - -/* UART LIN channel 6 registers */ -#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C340UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C344UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C348UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C34CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C350UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C354UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C358UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C35CUL)) - -/* I2C channel 6 registers */ -#define bFM3_MFS6_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) -#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) -#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) -#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) -#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) -#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) -#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) -#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) -#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) -#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) -#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) -#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) -#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) -#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) -#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) -#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) -#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) -#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C340UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C344UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C348UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C34CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C350UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C354UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C358UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C35CUL)) - -/* UART asynchronous channel 7 registers */ -#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART synchronous channel 7 registers */ -#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E340UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E344UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E348UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E34CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E350UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E354UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E358UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E35CUL)) - -/* UART LIN channel 7 registers */ -#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E340UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E344UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E348UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E34CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E350UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E354UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E358UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E35CUL)) - -/* I2C channel 7 registers */ -#define bFM3_MFS7_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) -#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) -#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) -#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) -#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) -#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) -#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) -#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) -#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) -#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) -#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) -#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) -#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) -#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) -#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) -#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) -#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) -#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E340UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E344UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E348UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E34CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E350UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E354UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E358UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E35CUL)) - -/* CRC registers */ -#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) -#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) -#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) -#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) -#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) -#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) -#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) - -/* Watch counter registers */ -#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) -#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) -#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) -#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) -#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) -#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) -#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) -#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) -#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) -#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) -#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) -#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) -#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) -#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) -#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) -#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) -#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) -#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) -#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) -#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) -#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) -#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) - -/* External bus interface registers */ -#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) -#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) -#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) -#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) -#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0010UL)) -#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) -#define bFM3_EXBUS_MODE0_TEST *((volatile unsigned int*)(0x427E0018UL)) -#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) -#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) -#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) -#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) -#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) -#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) -#define bFM3_EXBUS_MODE1_TEST *((volatile unsigned int*)(0x427E0098UL)) -#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) -#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) -#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) -#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) -#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) -#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) -#define bFM3_EXBUS_MODE2_TEST *((volatile unsigned int*)(0x427E0118UL)) -#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) -#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) -#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) -#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) -#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) -#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) -#define bFM3_EXBUS_MODE3_TEST *((volatile unsigned int*)(0x427E0198UL)) -#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) -#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) -#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) -#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) -#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) -#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) -#define bFM3_EXBUS_MODE4_TEST *((volatile unsigned int*)(0x427E0218UL)) -#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) -#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) -#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) -#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) -#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) -#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) -#define bFM3_EXBUS_MODE5_TEST *((volatile unsigned int*)(0x427E0298UL)) -#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) -#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) -#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) -#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) -#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) -#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) -#define bFM3_EXBUS_MODE6_TEST *((volatile unsigned int*)(0x427E0318UL)) -#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) -#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) -#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) -#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) -#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) -#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) -#define bFM3_EXBUS_MODE7_TEST *((volatile unsigned int*)(0x427E0398UL)) -#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) -#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) -#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) -#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) -#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) -#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) -#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) -#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) -#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) -#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) -#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) -#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) -#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) -#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) -#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) -#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) -#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) -#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) -#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) -#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) -#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) -#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) -#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) -#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) -#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) -#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) -#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) -#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) -#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) -#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) -#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) -#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) -#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) -#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) -#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) -#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) -#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) -#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) -#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) -#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) -#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) -#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) -#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) -#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) -#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) -#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) -#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) -#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) -#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) -#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) -#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) -#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) -#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) -#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) -#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) -#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) -#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) -#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) -#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) -#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) -#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) -#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) -#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) -#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) -#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) -#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) -#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) -#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) -#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) -#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) -#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) -#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) -#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) -#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) -#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) -#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) -#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) -#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) -#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) -#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) -#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) -#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) -#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) -#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) -#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) -#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) -#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) -#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) -#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) -#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) -#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) -#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) -#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) -#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) -#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) -#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) -#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) -#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) -#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) -#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) -#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) -#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) -#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) -#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) -#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) -#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) -#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) -#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) -#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) -#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) -#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) -#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) -#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) -#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) -#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) -#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) -#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) -#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) -#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) -#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) -#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) -#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) -#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) -#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) -#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) -#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) -#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) -#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) -#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) -#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) -#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) -#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) -#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) -#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) -#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) -#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) -#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) -#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) -#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) -#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) -#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) -#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) -#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) -#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) -#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) -#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) -#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) -#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) -#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) -#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) -#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) -#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) -#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) -#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) -#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) -#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) -#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) -#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) -#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) -#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) -#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) -#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) -#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) -#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) -#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) -#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) -#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) -#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) -#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) -#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) -#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) -#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) -#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) -#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) -#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) -#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) -#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) -#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) -#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) -#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) -#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) -#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) -#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) -#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) -#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) -#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) -#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) -#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) -#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) -#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) -#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) -#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) -#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) -#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) -#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) -#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) -#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) -#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) -#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) -#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) -#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) -#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) -#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) -#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) -#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) -#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) -#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) -#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) -#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) -#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) -#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) -#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) -#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) -#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) -#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) -#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) -#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) -#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) -#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) -#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) -#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) -#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) -#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) -#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) -#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) -#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) -#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) -#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) -#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) -#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) -#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) -#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) -#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) -#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) -#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) -#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) -#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) -#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) -#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) -#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) -#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) -#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) -#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) -#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) -#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) -#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) -#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) -#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) -#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) -#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) -#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) -#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) -#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) -#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) -#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) -#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) -#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) -#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) -#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) -#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) -#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) -#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) -#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) -#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) -#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) -#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) -#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) -#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) -#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) -#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) -#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) -#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) -#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) -#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) -#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) -#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) -#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) -#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) -#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) -#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) -#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) -#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) -#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) -#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) -#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) -#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) -#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) -#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) -#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) -#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) -#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) -#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) -#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) -#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) -#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) -#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) -#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) -#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) -#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) -#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) -#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) -#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) -#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) -#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) -#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) -#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) -#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) -#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) -#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) -#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) -#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) -#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) -#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) -#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) -#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) -#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) -#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) -#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) -#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) -#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) -#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) -#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) -#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) -#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) -#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) -#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) -#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) -#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) -#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) -#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) -#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) -#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) -#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) -#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) -#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) -#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) -#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) -#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) -#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) -#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) -#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) -#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) -#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) -#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) -#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) -#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) -#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) -#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) -#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) -#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) -#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) -#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) -#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) -#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) -#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) -#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) -#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) -#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) -#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) -#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) -#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) -#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) -#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) -#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) -#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) -#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) -#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) -#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) -#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) -#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) -#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) -#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) -#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) -#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) -#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) -#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) - -/* USB channel 0 registers */ -#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) -#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) -#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) -#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) -#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) -#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) -#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) -#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) -#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) -#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) -#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) -#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) -#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) -#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) -#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) -#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) -#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) -#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) -#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) -#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) -#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) -#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) -#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) -#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) -#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) -#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) -#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) -#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) -#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) -#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) -#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) -#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) -#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) -#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) -#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) -#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) -#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) -#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) -#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) -#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) -#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) -#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) -#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) -#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) -#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) -#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) -#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) -#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) -#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) -#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) -#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) -#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) -#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) -#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) -#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) -#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) -#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) -#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) -#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) -#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) -#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) -#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) -#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) -#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) -#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) -#define bFM3_USB0_EP1C_PSK18 *((volatile unsigned int*)(0x42842520UL)) -#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) -#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) -#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) -#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) -#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) -#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) -#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) -#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) -#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) -#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) -#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) -#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) -#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) -#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) -#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) -#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) -#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) -#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) -#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) -#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) -#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) -#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) -#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) -#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) -#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) -#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) -#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) -#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) -#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) -#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) -#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) -#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) -#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) -#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) -#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) -#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) -#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) -#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) -#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) -#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) -#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) -#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) -#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) -#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) -#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) -#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) -#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) -#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) -#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) -#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) -#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) -#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) -#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) -#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) -#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) -#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) -#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) -#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) -#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) -#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) -#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) -#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) -#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) -#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) -#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) -#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) -#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) -#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) -#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) -#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) -#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) -#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) -#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) -#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) -#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) -#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) -#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) -#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) -#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) -#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) -#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) -#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) -#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) -#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) -#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) -#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) -#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) -#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) -#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) -#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) -#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) -#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) -#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) -#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) -#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) -#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) -#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) -#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) -#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) -#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) -#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) -#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) -#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) -#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) -#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) -#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) -#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) -#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) -#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) -#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) -#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) -#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) -#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) -#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) -#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) -#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) -#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) -#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) -#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) -#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) -#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) -#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) -#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) -#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) -#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) -#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) -#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) -#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) -#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) -#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) -#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) -#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) -#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) -#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) -#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) -#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) -#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) -#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) -#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) -#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) -#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) -#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) -#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) -#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) -#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) -#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) -#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) -#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) -#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) -#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) -#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) -#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) -#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) -#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) -#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) -#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) -#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) -#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) -#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) -#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) -#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) -#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) -#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) -#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) -#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) -#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) -#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) - -/* DMA controller */ -#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) -#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) -#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) -#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) -#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) -#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) -#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) -#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) -#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) -#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) -#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) -#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) -#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) -#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) -#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) -#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) -#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) -#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) -#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) -#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) -#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) -#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) -#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) -#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) -#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) -#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) -#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) -#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) -#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) -#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) -#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) -#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) -#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) -#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) -#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) -#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) -#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) -#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) -#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) -#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) -#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) -#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) -#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) -#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) -#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) -#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) -#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) -#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) -#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) -#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) -#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) -#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) -#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) -#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) -#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) -#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) -#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) -#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) -#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) -#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) -#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) -#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) -#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) -#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) -#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) -#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) -#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) -#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) -#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) -#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) -#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) -#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) -#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) -#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) -#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) -#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) -#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) -#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) -#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) -#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) -#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) -#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) -#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) -#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) -#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) -#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) -#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) -#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) -#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) -#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) -#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) -#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) -#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) -#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) -#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) -#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) -#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) -#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) -#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) -#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) -#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) -#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) -#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) -#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) -#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) -#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) -#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) -#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) -#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) -#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) -#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) -#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) -#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) -#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) -#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) -#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) -#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) -#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) -#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) -#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) -#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) -#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) -#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) -#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) -#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) -#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) -#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) -#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) -#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) -#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) -#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) -#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) -#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) -#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) -#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) -#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) -#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) -#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) -#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) -#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) -#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) -#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) -#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) -#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) -#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) -#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) -#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) -#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) -#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) -#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) -#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) -#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) -#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) -#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) -#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) -#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) -#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) -#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) -#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) -#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) -#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) -#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) -#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) -#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) -#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) -#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) -#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) -#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) -#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) -#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) -#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) -#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) -#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) -#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) -#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) -#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) -#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) -#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) -#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) -#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) -#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) -#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) -#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) -#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) -#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) -#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) -#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) -#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) -#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) -#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) -#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) -#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) -#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) -#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) -#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) -#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) -#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) -#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) -#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) -#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) -#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) -#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) -#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) -#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) -#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) -#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) -#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) -#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) -#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) -#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) -#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) -#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) -#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) -#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) -#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) -#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) -#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) -#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) -#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) -#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) -#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) -#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) -#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) -#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) -#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) -#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) -#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) -#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) -#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) -#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) -#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) -#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) -#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) -#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) -#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) -#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) -#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) -#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) -#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) -#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) -#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) -#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) -#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) -#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) -#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) -#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) -#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) -#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) -#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) -#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) -#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) -#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) -#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) -#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) -#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) -#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) -#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) -#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) -#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) -#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) -#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) -#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) -#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) -#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) -#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) -#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) -#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) -#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) -#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) -#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) -#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) -#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) -#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) -#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) -#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) -#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) -#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) -#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) -#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) -#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) -#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) -#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) -#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) -#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) -#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) -#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) -#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) -#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) -#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) -#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) -#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) -#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) -#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) -#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) -#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) -#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) -#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) -#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) -#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) -#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) -#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) -#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) -#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) -#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) -#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) -#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) -#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) -#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) -#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) -#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) -#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) -#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) -#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) -#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) -#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) -#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) -#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) -#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) -#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) -#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) -#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) -#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) -#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) -#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) -#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) -#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) -#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) -#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) -#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) -#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) -#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) -#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) -#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) -#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) -#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) -#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) -#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) -#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) -#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) -#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) -#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) -#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) -#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) -#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) -#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) -#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) -#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) -#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) -#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) -#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) -#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) -#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) -#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) -#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) -#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) -#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) -#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) -#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) -#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) - -/* CAN channel 0 registers */ -#define bFM3_CAN0_CTRLR_INIT *((volatile unsigned int*)(0x42C40000UL)) -#define bFM3_CAN0_CTRLR_IE *((volatile unsigned int*)(0x42C40004UL)) -#define bFM3_CAN0_CTRLR_SIE *((volatile unsigned int*)(0x42C40008UL)) -#define bFM3_CAN0_CTRLR_EIE *((volatile unsigned int*)(0x42C4000CUL)) -#define bFM3_CAN0_CTRLR_DAR *((volatile unsigned int*)(0x42C40014UL)) -#define bFM3_CAN0_CTRLR_CCE *((volatile unsigned int*)(0x42C40018UL)) -#define bFM3_CAN0_CTRLR_TEST *((volatile unsigned int*)(0x42C4001CUL)) -#define bFM3_CAN0_STATR_LEC0 *((volatile unsigned int*)(0x42C40040UL)) -#define bFM3_CAN0_STATR_LEC1 *((volatile unsigned int*)(0x42C40044UL)) -#define bFM3_CAN0_STATR_LEC2 *((volatile unsigned int*)(0x42C40048UL)) -#define bFM3_CAN0_STATR_TXOK *((volatile unsigned int*)(0x42C4004CUL)) -#define bFM3_CAN0_STATR_RXOK *((volatile unsigned int*)(0x42C40050UL)) -#define bFM3_CAN0_STATR_EPASS *((volatile unsigned int*)(0x42C40054UL)) -#define bFM3_CAN0_STATR_EWARM *((volatile unsigned int*)(0x42C40058UL)) -#define bFM3_CAN0_STATR_BOFF *((volatile unsigned int*)(0x42C4005CUL)) -#define bFM3_CAN0_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C40080UL)) -#define bFM3_CAN0_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C40084UL)) -#define bFM3_CAN0_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C40088UL)) -#define bFM3_CAN0_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C4008CUL)) -#define bFM3_CAN0_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C40090UL)) -#define bFM3_CAN0_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C40094UL)) -#define bFM3_CAN0_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C40098UL)) -#define bFM3_CAN0_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C4009CUL)) -#define bFM3_CAN0_ERRCNT_REC0 *((volatile unsigned int*)(0x42C400A0UL)) -#define bFM3_CAN0_ERRCNT_REC1 *((volatile unsigned int*)(0x42C400A4UL)) -#define bFM3_CAN0_ERRCNT_REC2 *((volatile unsigned int*)(0x42C400A8UL)) -#define bFM3_CAN0_ERRCNT_REC3 *((volatile unsigned int*)(0x42C400ACUL)) -#define bFM3_CAN0_ERRCNT_REC4 *((volatile unsigned int*)(0x42C400B0UL)) -#define bFM3_CAN0_ERRCNT_REC5 *((volatile unsigned int*)(0x42C400B4UL)) -#define bFM3_CAN0_ERRCNT_REC6 *((volatile unsigned int*)(0x42C400B8UL)) -#define bFM3_CAN0_ERRCNT_RP *((volatile unsigned int*)(0x42C400BCUL)) -#define bFM3_CAN0_BTR_BRP0 *((volatile unsigned int*)(0x42C400C0UL)) -#define bFM3_CAN0_BTR_BRP1 *((volatile unsigned int*)(0x42C400C4UL)) -#define bFM3_CAN0_BTR_BRP2 *((volatile unsigned int*)(0x42C400C8UL)) -#define bFM3_CAN0_BTR_BRP3 *((volatile unsigned int*)(0x42C400CCUL)) -#define bFM3_CAN0_BTR_BRP4 *((volatile unsigned int*)(0x42C400D0UL)) -#define bFM3_CAN0_BTR_BRP5 *((volatile unsigned int*)(0x42C400D4UL)) -#define bFM3_CAN0_BTR_SJW0 *((volatile unsigned int*)(0x42C400D8UL)) -#define bFM3_CAN0_BTR_SJW1 *((volatile unsigned int*)(0x42C400DCUL)) -#define bFM3_CAN0_BTR_TSEG10 *((volatile unsigned int*)(0x42C400E0UL)) -#define bFM3_CAN0_BTR_TSEG11 *((volatile unsigned int*)(0x42C400E4UL)) -#define bFM3_CAN0_BTR_TSEG12 *((volatile unsigned int*)(0x42C400E8UL)) -#define bFM3_CAN0_BTR_TSEG13 *((volatile unsigned int*)(0x42C400ECUL)) -#define bFM3_CAN0_BTR_TSEG20 *((volatile unsigned int*)(0x42C400F0UL)) -#define bFM3_CAN0_BTR_TSEG21 *((volatile unsigned int*)(0x42C400F4UL)) -#define bFM3_CAN0_BTR_TSEG22 *((volatile unsigned int*)(0x42C400F8UL)) -#define bFM3_CAN0_INTR_INTID0 *((volatile unsigned int*)(0x42C40100UL)) -#define bFM3_CAN0_INTR_INTID1 *((volatile unsigned int*)(0x42C40104UL)) -#define bFM3_CAN0_INTR_INTID2 *((volatile unsigned int*)(0x42C40108UL)) -#define bFM3_CAN0_INTR_INTID3 *((volatile unsigned int*)(0x42C4010CUL)) -#define bFM3_CAN0_INTR_INTID4 *((volatile unsigned int*)(0x42C40110UL)) -#define bFM3_CAN0_INTR_INTID5 *((volatile unsigned int*)(0x42C40114UL)) -#define bFM3_CAN0_INTR_INTID6 *((volatile unsigned int*)(0x42C40118UL)) -#define bFM3_CAN0_INTR_INTID7 *((volatile unsigned int*)(0x42C4011CUL)) -#define bFM3_CAN0_INTR_INTID8 *((volatile unsigned int*)(0x42C40120UL)) -#define bFM3_CAN0_INTR_INTID9 *((volatile unsigned int*)(0x42C40124UL)) -#define bFM3_CAN0_INTR_INTID10 *((volatile unsigned int*)(0x42C40128UL)) -#define bFM3_CAN0_INTR_INTID11 *((volatile unsigned int*)(0x42C4012CUL)) -#define bFM3_CAN0_INTR_INTID12 *((volatile unsigned int*)(0x42C40130UL)) -#define bFM3_CAN0_INTR_INTID13 *((volatile unsigned int*)(0x42C40134UL)) -#define bFM3_CAN0_INTR_INTID14 *((volatile unsigned int*)(0x42C40138UL)) -#define bFM3_CAN0_INTR_INTID15 *((volatile unsigned int*)(0x42C4013CUL)) -#define bFM3_CAN0_TESTR_BASIC *((volatile unsigned int*)(0x42C40148UL)) -#define bFM3_CAN0_TESTR_SILENT *((volatile unsigned int*)(0x42C4014CUL)) -#define bFM3_CAN0_TESTR_LBACK *((volatile unsigned int*)(0x42C40150UL)) -#define bFM3_CAN0_TESTR_TX0 *((volatile unsigned int*)(0x42C40154UL)) -#define bFM3_CAN0_TESTR_TX1 *((volatile unsigned int*)(0x42C40158UL)) -#define bFM3_CAN0_TESTR_RX *((volatile unsigned int*)(0x42C4015CUL)) -#define bFM3_CAN0_BRPER_BRPE0 *((volatile unsigned int*)(0x42C40180UL)) -#define bFM3_CAN0_BRPER_BRPE1 *((volatile unsigned int*)(0x42C40184UL)) -#define bFM3_CAN0_BRPER_BRPE2 *((volatile unsigned int*)(0x42C40188UL)) -#define bFM3_CAN0_BRPER_BRPE3 *((volatile unsigned int*)(0x42C4018CUL)) -#define bFM3_CAN0_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C4023CUL)) -#define bFM3_CAN0_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C40240UL)) -#define bFM3_CAN0_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C40244UL)) -#define bFM3_CAN0_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C40248UL)) -#define bFM3_CAN0_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C40248UL)) -#define bFM3_CAN0_IF1CMSK_CIP *((volatile unsigned int*)(0x42C4024CUL)) -#define bFM3_CAN0_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C40250UL)) -#define bFM3_CAN0_IF1CMSK_ARB *((volatile unsigned int*)(0x42C40254UL)) -#define bFM3_CAN0_IF1CMSK_MASK *((volatile unsigned int*)(0x42C40258UL)) -#define bFM3_CAN0_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C4025CUL)) -#define bFM3_CAN0_IF1MSK_MDIR *((volatile unsigned int*)(0x42C402F8UL)) -#define bFM3_CAN0_IF1MSK_MXTD *((volatile unsigned int*)(0x42C402FCUL)) -#define bFM3_CAN0_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C402F8UL)) -#define bFM3_CAN0_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C402FCUL)) -#define bFM3_CAN0_IF1ARB_DIR *((volatile unsigned int*)(0x42C40374UL)) -#define bFM3_CAN0_IF1ARB_XTD *((volatile unsigned int*)(0x42C40378UL)) -#define bFM3_CAN0_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) -#define bFM3_CAN0_IF1ARB2_DIR *((volatile unsigned int*)(0x42C40374UL)) -#define bFM3_CAN0_IF1ARB2_XTD *((volatile unsigned int*)(0x42C40378UL)) -#define bFM3_CAN0_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) -#define bFM3_CAN0_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C40380UL)) -#define bFM3_CAN0_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C40384UL)) -#define bFM3_CAN0_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C40388UL)) -#define bFM3_CAN0_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C4038CUL)) -#define bFM3_CAN0_IF1MCTR_EOB *((volatile unsigned int*)(0x42C4039CUL)) -#define bFM3_CAN0_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C403A0UL)) -#define bFM3_CAN0_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C403A4UL)) -#define bFM3_CAN0_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C403A8UL)) -#define bFM3_CAN0_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C403ACUL)) -#define bFM3_CAN0_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C403B0UL)) -#define bFM3_CAN0_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C403B4UL)) -#define bFM3_CAN0_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C403B8UL)) -#define bFM3_CAN0_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C403BCUL)) -#define bFM3_CAN0_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C4083CUL)) -#define bFM3_CAN0_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C40840UL)) -#define bFM3_CAN0_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C40844UL)) -#define bFM3_CAN0_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C40848UL)) -#define bFM3_CAN0_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C40848UL)) -#define bFM3_CAN0_IF2CMSK_CIP *((volatile unsigned int*)(0x42C4084CUL)) -#define bFM3_CAN0_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C40850UL)) -#define bFM3_CAN0_IF2CMSK_ARB *((volatile unsigned int*)(0x42C40854UL)) -#define bFM3_CAN0_IF2CMSK_MASK *((volatile unsigned int*)(0x42C40858UL)) -#define bFM3_CAN0_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C4085CUL)) -#define bFM3_CAN0_IF2MSK_MDIR *((volatile unsigned int*)(0x42C408F8UL)) -#define bFM3_CAN0_IF2MSK_MXTD *((volatile unsigned int*)(0x42C408FCUL)) -#define bFM3_CAN0_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C408F8UL)) -#define bFM3_CAN0_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C408FCUL)) -#define bFM3_CAN0_IF2ARB_DIR *((volatile unsigned int*)(0x42C40974UL)) -#define bFM3_CAN0_IF2ARB_XTD *((volatile unsigned int*)(0x42C40978UL)) -#define bFM3_CAN0_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) -#define bFM3_CAN0_IF2ARB2_DIR *((volatile unsigned int*)(0x42C40974UL)) -#define bFM3_CAN0_IF2ARB2_XTD *((volatile unsigned int*)(0x42C40978UL)) -#define bFM3_CAN0_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) -#define bFM3_CAN0_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C40980UL)) -#define bFM3_CAN0_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C40984UL)) -#define bFM3_CAN0_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C40988UL)) -#define bFM3_CAN0_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C4098CUL)) -#define bFM3_CAN0_IF2MCTR_EOB *((volatile unsigned int*)(0x42C4099CUL)) -#define bFM3_CAN0_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C409A0UL)) -#define bFM3_CAN0_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C409A4UL)) -#define bFM3_CAN0_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C409A8UL)) -#define bFM3_CAN0_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C409ACUL)) -#define bFM3_CAN0_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C409B0UL)) -#define bFM3_CAN0_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C409B4UL)) -#define bFM3_CAN0_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C409B8UL)) -#define bFM3_CAN0_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C409BCUL)) -#define bFM3_CAN0_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) -#define bFM3_CAN0_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) -#define bFM3_CAN0_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) -#define bFM3_CAN0_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) -#define bFM3_CAN0_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) -#define bFM3_CAN0_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) -#define bFM3_CAN0_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) -#define bFM3_CAN0_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) -#define bFM3_CAN0_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) -#define bFM3_CAN0_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) -#define bFM3_CAN0_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) -#define bFM3_CAN0_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) -#define bFM3_CAN0_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) -#define bFM3_CAN0_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) -#define bFM3_CAN0_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) -#define bFM3_CAN0_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) -#define bFM3_CAN0_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) -#define bFM3_CAN0_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) -#define bFM3_CAN0_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) -#define bFM3_CAN0_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) -#define bFM3_CAN0_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) -#define bFM3_CAN0_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) -#define bFM3_CAN0_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) -#define bFM3_CAN0_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) -#define bFM3_CAN0_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) -#define bFM3_CAN0_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) -#define bFM3_CAN0_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) -#define bFM3_CAN0_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) -#define bFM3_CAN0_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) -#define bFM3_CAN0_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) -#define bFM3_CAN0_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) -#define bFM3_CAN0_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) -#define bFM3_CAN0_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) -#define bFM3_CAN0_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) -#define bFM3_CAN0_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) -#define bFM3_CAN0_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) -#define bFM3_CAN0_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) -#define bFM3_CAN0_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) -#define bFM3_CAN0_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) -#define bFM3_CAN0_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) -#define bFM3_CAN0_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) -#define bFM3_CAN0_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) -#define bFM3_CAN0_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) -#define bFM3_CAN0_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) -#define bFM3_CAN0_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) -#define bFM3_CAN0_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) -#define bFM3_CAN0_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) -#define bFM3_CAN0_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) -#define bFM3_CAN0_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) -#define bFM3_CAN0_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) -#define bFM3_CAN0_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) -#define bFM3_CAN0_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) -#define bFM3_CAN0_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) -#define bFM3_CAN0_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) -#define bFM3_CAN0_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) -#define bFM3_CAN0_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) -#define bFM3_CAN0_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) -#define bFM3_CAN0_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) -#define bFM3_CAN0_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) -#define bFM3_CAN0_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) -#define bFM3_CAN0_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) -#define bFM3_CAN0_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) -#define bFM3_CAN0_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) -#define bFM3_CAN0_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) -#define bFM3_CAN0_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) -#define bFM3_CAN0_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) -#define bFM3_CAN0_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) -#define bFM3_CAN0_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) -#define bFM3_CAN0_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) -#define bFM3_CAN0_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) -#define bFM3_CAN0_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) -#define bFM3_CAN0_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) -#define bFM3_CAN0_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) -#define bFM3_CAN0_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) -#define bFM3_CAN0_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) -#define bFM3_CAN0_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) -#define bFM3_CAN0_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) -#define bFM3_CAN0_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) -#define bFM3_CAN0_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) -#define bFM3_CAN0_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) -#define bFM3_CAN0_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) -#define bFM3_CAN0_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) -#define bFM3_CAN0_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) -#define bFM3_CAN0_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) -#define bFM3_CAN0_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) -#define bFM3_CAN0_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) -#define bFM3_CAN0_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) -#define bFM3_CAN0_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) -#define bFM3_CAN0_INTPND_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) -#define bFM3_CAN0_INTPND_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) -#define bFM3_CAN0_INTPND_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) -#define bFM3_CAN0_INTPND_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) -#define bFM3_CAN0_INTPND_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) -#define bFM3_CAN0_INTPND_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) -#define bFM3_CAN0_INTPND_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) -#define bFM3_CAN0_INTPND_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) -#define bFM3_CAN0_INTPND_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) -#define bFM3_CAN0_INTPND_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) -#define bFM3_CAN0_INTPND_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) -#define bFM3_CAN0_INTPND_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) -#define bFM3_CAN0_INTPND_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) -#define bFM3_CAN0_INTPND_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) -#define bFM3_CAN0_INTPND_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) -#define bFM3_CAN0_INTPND_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) -#define bFM3_CAN0_INTPND_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) -#define bFM3_CAN0_INTPND_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) -#define bFM3_CAN0_INTPND_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) -#define bFM3_CAN0_INTPND_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) -#define bFM3_CAN0_INTPND_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) -#define bFM3_CAN0_INTPND_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) -#define bFM3_CAN0_INTPND_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) -#define bFM3_CAN0_INTPND_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) -#define bFM3_CAN0_INTPND_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) -#define bFM3_CAN0_INTPND_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) -#define bFM3_CAN0_INTPND_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) -#define bFM3_CAN0_INTPND_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) -#define bFM3_CAN0_INTPND_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) -#define bFM3_CAN0_INTPND_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) -#define bFM3_CAN0_INTPND_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) -#define bFM3_CAN0_INTPND_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) -#define bFM3_CAN0_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) -#define bFM3_CAN0_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) -#define bFM3_CAN0_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) -#define bFM3_CAN0_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) -#define bFM3_CAN0_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) -#define bFM3_CAN0_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) -#define bFM3_CAN0_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) -#define bFM3_CAN0_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) -#define bFM3_CAN0_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) -#define bFM3_CAN0_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) -#define bFM3_CAN0_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) -#define bFM3_CAN0_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) -#define bFM3_CAN0_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) -#define bFM3_CAN0_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) -#define bFM3_CAN0_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) -#define bFM3_CAN0_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) -#define bFM3_CAN0_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) -#define bFM3_CAN0_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) -#define bFM3_CAN0_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) -#define bFM3_CAN0_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) -#define bFM3_CAN0_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) -#define bFM3_CAN0_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) -#define bFM3_CAN0_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) -#define bFM3_CAN0_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) -#define bFM3_CAN0_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) -#define bFM3_CAN0_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) -#define bFM3_CAN0_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) -#define bFM3_CAN0_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) -#define bFM3_CAN0_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) -#define bFM3_CAN0_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) -#define bFM3_CAN0_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) -#define bFM3_CAN0_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) - -/* CAN channel 1 registers */ -#define bFM3_CAN1_CTRLR_INIT *((volatile unsigned int*)(0x42C60000UL)) -#define bFM3_CAN1_CTRLR_IE *((volatile unsigned int*)(0x42C60004UL)) -#define bFM3_CAN1_CTRLR_SIE *((volatile unsigned int*)(0x42C60008UL)) -#define bFM3_CAN1_CTRLR_EIE *((volatile unsigned int*)(0x42C6000CUL)) -#define bFM3_CAN1_CTRLR_DAR *((volatile unsigned int*)(0x42C60014UL)) -#define bFM3_CAN1_CTRLR_CCE *((volatile unsigned int*)(0x42C60018UL)) -#define bFM3_CAN1_CTRLR_TEST *((volatile unsigned int*)(0x42C6001CUL)) -#define bFM3_CAN1_STATR_LEC0 *((volatile unsigned int*)(0x42C60040UL)) -#define bFM3_CAN1_STATR_LEC1 *((volatile unsigned int*)(0x42C60044UL)) -#define bFM3_CAN1_STATR_LEC2 *((volatile unsigned int*)(0x42C60048UL)) -#define bFM3_CAN1_STATR_TXOK *((volatile unsigned int*)(0x42C6004CUL)) -#define bFM3_CAN1_STATR_RXOK *((volatile unsigned int*)(0x42C60050UL)) -#define bFM3_CAN1_STATR_EPASS *((volatile unsigned int*)(0x42C60054UL)) -#define bFM3_CAN1_STATR_EWARM *((volatile unsigned int*)(0x42C60058UL)) -#define bFM3_CAN1_STATR_BOFF *((volatile unsigned int*)(0x42C6005CUL)) -#define bFM3_CAN1_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C60080UL)) -#define bFM3_CAN1_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C60084UL)) -#define bFM3_CAN1_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C60088UL)) -#define bFM3_CAN1_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C6008CUL)) -#define bFM3_CAN1_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C60090UL)) -#define bFM3_CAN1_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C60094UL)) -#define bFM3_CAN1_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C60098UL)) -#define bFM3_CAN1_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C6009CUL)) -#define bFM3_CAN1_ERRCNT_REC0 *((volatile unsigned int*)(0x42C600A0UL)) -#define bFM3_CAN1_ERRCNT_REC1 *((volatile unsigned int*)(0x42C600A4UL)) -#define bFM3_CAN1_ERRCNT_REC2 *((volatile unsigned int*)(0x42C600A8UL)) -#define bFM3_CAN1_ERRCNT_REC3 *((volatile unsigned int*)(0x42C600ACUL)) -#define bFM3_CAN1_ERRCNT_REC4 *((volatile unsigned int*)(0x42C600B0UL)) -#define bFM3_CAN1_ERRCNT_REC5 *((volatile unsigned int*)(0x42C600B4UL)) -#define bFM3_CAN1_ERRCNT_REC6 *((volatile unsigned int*)(0x42C600B8UL)) -#define bFM3_CAN1_ERRCNT_RP *((volatile unsigned int*)(0x42C600BCUL)) -#define bFM3_CAN1_BTR_BRP0 *((volatile unsigned int*)(0x42C600C0UL)) -#define bFM3_CAN1_BTR_BRP1 *((volatile unsigned int*)(0x42C600C4UL)) -#define bFM3_CAN1_BTR_BRP2 *((volatile unsigned int*)(0x42C600C8UL)) -#define bFM3_CAN1_BTR_BRP3 *((volatile unsigned int*)(0x42C600CCUL)) -#define bFM3_CAN1_BTR_BRP4 *((volatile unsigned int*)(0x42C600D0UL)) -#define bFM3_CAN1_BTR_BRP5 *((volatile unsigned int*)(0x42C600D4UL)) -#define bFM3_CAN1_BTR_SJW0 *((volatile unsigned int*)(0x42C600D8UL)) -#define bFM3_CAN1_BTR_SJW1 *((volatile unsigned int*)(0x42C600DCUL)) -#define bFM3_CAN1_BTR_TSEG10 *((volatile unsigned int*)(0x42C600E0UL)) -#define bFM3_CAN1_BTR_TSEG11 *((volatile unsigned int*)(0x42C600E4UL)) -#define bFM3_CAN1_BTR_TSEG12 *((volatile unsigned int*)(0x42C600E8UL)) -#define bFM3_CAN1_BTR_TSEG13 *((volatile unsigned int*)(0x42C600ECUL)) -#define bFM3_CAN1_BTR_TSEG20 *((volatile unsigned int*)(0x42C600F0UL)) -#define bFM3_CAN1_BTR_TSEG21 *((volatile unsigned int*)(0x42C600F4UL)) -#define bFM3_CAN1_BTR_TSEG22 *((volatile unsigned int*)(0x42C600F8UL)) -#define bFM3_CAN1_INTR_INTID0 *((volatile unsigned int*)(0x42C60100UL)) -#define bFM3_CAN1_INTR_INTID1 *((volatile unsigned int*)(0x42C60104UL)) -#define bFM3_CAN1_INTR_INTID2 *((volatile unsigned int*)(0x42C60108UL)) -#define bFM3_CAN1_INTR_INTID3 *((volatile unsigned int*)(0x42C6010CUL)) -#define bFM3_CAN1_INTR_INTID4 *((volatile unsigned int*)(0x42C60110UL)) -#define bFM3_CAN1_INTR_INTID5 *((volatile unsigned int*)(0x42C60114UL)) -#define bFM3_CAN1_INTR_INTID6 *((volatile unsigned int*)(0x42C60118UL)) -#define bFM3_CAN1_INTR_INTID7 *((volatile unsigned int*)(0x42C6011CUL)) -#define bFM3_CAN1_INTR_INTID8 *((volatile unsigned int*)(0x42C60120UL)) -#define bFM3_CAN1_INTR_INTID9 *((volatile unsigned int*)(0x42C60124UL)) -#define bFM3_CAN1_INTR_INTID10 *((volatile unsigned int*)(0x42C60128UL)) -#define bFM3_CAN1_INTR_INTID11 *((volatile unsigned int*)(0x42C6012CUL)) -#define bFM3_CAN1_INTR_INTID12 *((volatile unsigned int*)(0x42C60130UL)) -#define bFM3_CAN1_INTR_INTID13 *((volatile unsigned int*)(0x42C60134UL)) -#define bFM3_CAN1_INTR_INTID14 *((volatile unsigned int*)(0x42C60138UL)) -#define bFM3_CAN1_INTR_INTID15 *((volatile unsigned int*)(0x42C6013CUL)) -#define bFM3_CAN1_TESTR_BASIC *((volatile unsigned int*)(0x42C60148UL)) -#define bFM3_CAN1_TESTR_SILENT *((volatile unsigned int*)(0x42C6014CUL)) -#define bFM3_CAN1_TESTR_LBACK *((volatile unsigned int*)(0x42C60150UL)) -#define bFM3_CAN1_TESTR_TX0 *((volatile unsigned int*)(0x42C60154UL)) -#define bFM3_CAN1_TESTR_TX1 *((volatile unsigned int*)(0x42C60158UL)) -#define bFM3_CAN1_TESTR_RX *((volatile unsigned int*)(0x42C6015CUL)) -#define bFM3_CAN1_BRPER_BRPE0 *((volatile unsigned int*)(0x42C60180UL)) -#define bFM3_CAN1_BRPER_BRPE1 *((volatile unsigned int*)(0x42C60184UL)) -#define bFM3_CAN1_BRPER_BRPE2 *((volatile unsigned int*)(0x42C60188UL)) -#define bFM3_CAN1_BRPER_BRPE3 *((volatile unsigned int*)(0x42C6018CUL)) -#define bFM3_CAN1_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C6023CUL)) -#define bFM3_CAN1_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C60240UL)) -#define bFM3_CAN1_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C60244UL)) -#define bFM3_CAN1_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C60248UL)) -#define bFM3_CAN1_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C60248UL)) -#define bFM3_CAN1_IF1CMSK_CIP *((volatile unsigned int*)(0x42C6024CUL)) -#define bFM3_CAN1_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C60250UL)) -#define bFM3_CAN1_IF1CMSK_ARB *((volatile unsigned int*)(0x42C60254UL)) -#define bFM3_CAN1_IF1CMSK_MASK *((volatile unsigned int*)(0x42C60258UL)) -#define bFM3_CAN1_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C6025CUL)) -#define bFM3_CAN1_IF1MSK_MDIR *((volatile unsigned int*)(0x42C602F8UL)) -#define bFM3_CAN1_IF1MSK_MXTD *((volatile unsigned int*)(0x42C602FCUL)) -#define bFM3_CAN1_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C602F8UL)) -#define bFM3_CAN1_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C602FCUL)) -#define bFM3_CAN1_IF1ARB_DIR *((volatile unsigned int*)(0x42C60374UL)) -#define bFM3_CAN1_IF1ARB_XTD *((volatile unsigned int*)(0x42C60378UL)) -#define bFM3_CAN1_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) -#define bFM3_CAN1_IF1ARB2_DIR *((volatile unsigned int*)(0x42C60374UL)) -#define bFM3_CAN1_IF1ARB2_XTD *((volatile unsigned int*)(0x42C60378UL)) -#define bFM3_CAN1_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) -#define bFM3_CAN1_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C60380UL)) -#define bFM3_CAN1_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C60384UL)) -#define bFM3_CAN1_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C60388UL)) -#define bFM3_CAN1_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C6038CUL)) -#define bFM3_CAN1_IF1MCTR_EOB *((volatile unsigned int*)(0x42C6039CUL)) -#define bFM3_CAN1_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C603A0UL)) -#define bFM3_CAN1_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C603A4UL)) -#define bFM3_CAN1_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C603A8UL)) -#define bFM3_CAN1_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C603ACUL)) -#define bFM3_CAN1_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C603B0UL)) -#define bFM3_CAN1_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C603B4UL)) -#define bFM3_CAN1_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C603B8UL)) -#define bFM3_CAN1_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C603BCUL)) -#define bFM3_CAN1_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C6083CUL)) -#define bFM3_CAN1_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C60840UL)) -#define bFM3_CAN1_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C60844UL)) -#define bFM3_CAN1_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C60848UL)) -#define bFM3_CAN1_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C60848UL)) -#define bFM3_CAN1_IF2CMSK_CIP *((volatile unsigned int*)(0x42C6084CUL)) -#define bFM3_CAN1_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C60850UL)) -#define bFM3_CAN1_IF2CMSK_ARB *((volatile unsigned int*)(0x42C60854UL)) -#define bFM3_CAN1_IF2CMSK_MASK *((volatile unsigned int*)(0x42C60858UL)) -#define bFM3_CAN1_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C6085CUL)) -#define bFM3_CAN1_IF2MSK_MDIR *((volatile unsigned int*)(0x42C608F8UL)) -#define bFM3_CAN1_IF2MSK_MXTD *((volatile unsigned int*)(0x42C608FCUL)) -#define bFM3_CAN1_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C608F8UL)) -#define bFM3_CAN1_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C608FCUL)) -#define bFM3_CAN1_IF2ARB_DIR *((volatile unsigned int*)(0x42C60974UL)) -#define bFM3_CAN1_IF2ARB_XTD *((volatile unsigned int*)(0x42C60978UL)) -#define bFM3_CAN1_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) -#define bFM3_CAN1_IF2ARB2_DIR *((volatile unsigned int*)(0x42C60974UL)) -#define bFM3_CAN1_IF2ARB2_XTD *((volatile unsigned int*)(0x42C60978UL)) -#define bFM3_CAN1_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) -#define bFM3_CAN1_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C60980UL)) -#define bFM3_CAN1_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C60984UL)) -#define bFM3_CAN1_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C60988UL)) -#define bFM3_CAN1_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C6098CUL)) -#define bFM3_CAN1_IF2MCTR_EOB *((volatile unsigned int*)(0x42C6099CUL)) -#define bFM3_CAN1_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C609A0UL)) -#define bFM3_CAN1_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C609A4UL)) -#define bFM3_CAN1_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C609A8UL)) -#define bFM3_CAN1_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C609ACUL)) -#define bFM3_CAN1_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C609B0UL)) -#define bFM3_CAN1_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C609B4UL)) -#define bFM3_CAN1_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C609B8UL)) -#define bFM3_CAN1_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C609BCUL)) -#define bFM3_CAN1_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) -#define bFM3_CAN1_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) -#define bFM3_CAN1_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) -#define bFM3_CAN1_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) -#define bFM3_CAN1_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) -#define bFM3_CAN1_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) -#define bFM3_CAN1_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) -#define bFM3_CAN1_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) -#define bFM3_CAN1_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) -#define bFM3_CAN1_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) -#define bFM3_CAN1_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) -#define bFM3_CAN1_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) -#define bFM3_CAN1_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) -#define bFM3_CAN1_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) -#define bFM3_CAN1_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) -#define bFM3_CAN1_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) -#define bFM3_CAN1_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) -#define bFM3_CAN1_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) -#define bFM3_CAN1_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) -#define bFM3_CAN1_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) -#define bFM3_CAN1_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) -#define bFM3_CAN1_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) -#define bFM3_CAN1_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) -#define bFM3_CAN1_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) -#define bFM3_CAN1_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) -#define bFM3_CAN1_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) -#define bFM3_CAN1_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) -#define bFM3_CAN1_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) -#define bFM3_CAN1_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) -#define bFM3_CAN1_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) -#define bFM3_CAN1_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) -#define bFM3_CAN1_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) -#define bFM3_CAN1_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) -#define bFM3_CAN1_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) -#define bFM3_CAN1_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) -#define bFM3_CAN1_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) -#define bFM3_CAN1_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) -#define bFM3_CAN1_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) -#define bFM3_CAN1_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) -#define bFM3_CAN1_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) -#define bFM3_CAN1_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) -#define bFM3_CAN1_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) -#define bFM3_CAN1_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) -#define bFM3_CAN1_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) -#define bFM3_CAN1_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) -#define bFM3_CAN1_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) -#define bFM3_CAN1_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) -#define bFM3_CAN1_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) -#define bFM3_CAN1_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) -#define bFM3_CAN1_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) -#define bFM3_CAN1_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) -#define bFM3_CAN1_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) -#define bFM3_CAN1_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) -#define bFM3_CAN1_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) -#define bFM3_CAN1_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) -#define bFM3_CAN1_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) -#define bFM3_CAN1_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) -#define bFM3_CAN1_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) -#define bFM3_CAN1_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) -#define bFM3_CAN1_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) -#define bFM3_CAN1_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) -#define bFM3_CAN1_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) -#define bFM3_CAN1_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) -#define bFM3_CAN1_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) -#define bFM3_CAN1_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) -#define bFM3_CAN1_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) -#define bFM3_CAN1_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) -#define bFM3_CAN1_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) -#define bFM3_CAN1_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) -#define bFM3_CAN1_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) -#define bFM3_CAN1_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) -#define bFM3_CAN1_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) -#define bFM3_CAN1_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) -#define bFM3_CAN1_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) -#define bFM3_CAN1_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) -#define bFM3_CAN1_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) -#define bFM3_CAN1_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) -#define bFM3_CAN1_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) -#define bFM3_CAN1_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) -#define bFM3_CAN1_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) -#define bFM3_CAN1_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) -#define bFM3_CAN1_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) -#define bFM3_CAN1_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) -#define bFM3_CAN1_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) -#define bFM3_CAN1_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) -#define bFM3_CAN1_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) -#define bFM3_CAN1_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) -#define bFM3_CAN1_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) -#define bFM3_CAN1_INTPND_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) -#define bFM3_CAN1_INTPND_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) -#define bFM3_CAN1_INTPND_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) -#define bFM3_CAN1_INTPND_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) -#define bFM3_CAN1_INTPND_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) -#define bFM3_CAN1_INTPND_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) -#define bFM3_CAN1_INTPND_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) -#define bFM3_CAN1_INTPND_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) -#define bFM3_CAN1_INTPND_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) -#define bFM3_CAN1_INTPND_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) -#define bFM3_CAN1_INTPND_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) -#define bFM3_CAN1_INTPND_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) -#define bFM3_CAN1_INTPND_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) -#define bFM3_CAN1_INTPND_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) -#define bFM3_CAN1_INTPND_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) -#define bFM3_CAN1_INTPND_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) -#define bFM3_CAN1_INTPND_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) -#define bFM3_CAN1_INTPND_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) -#define bFM3_CAN1_INTPND_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) -#define bFM3_CAN1_INTPND_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) -#define bFM3_CAN1_INTPND_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) -#define bFM3_CAN1_INTPND_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) -#define bFM3_CAN1_INTPND_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) -#define bFM3_CAN1_INTPND_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) -#define bFM3_CAN1_INTPND_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) -#define bFM3_CAN1_INTPND_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) -#define bFM3_CAN1_INTPND_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) -#define bFM3_CAN1_INTPND_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) -#define bFM3_CAN1_INTPND_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) -#define bFM3_CAN1_INTPND_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) -#define bFM3_CAN1_INTPND_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) -#define bFM3_CAN1_INTPND_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) -#define bFM3_CAN1_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) -#define bFM3_CAN1_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) -#define bFM3_CAN1_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) -#define bFM3_CAN1_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) -#define bFM3_CAN1_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) -#define bFM3_CAN1_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) -#define bFM3_CAN1_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) -#define bFM3_CAN1_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) -#define bFM3_CAN1_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) -#define bFM3_CAN1_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) -#define bFM3_CAN1_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) -#define bFM3_CAN1_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) -#define bFM3_CAN1_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) -#define bFM3_CAN1_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) -#define bFM3_CAN1_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) -#define bFM3_CAN1_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) -#define bFM3_CAN1_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) -#define bFM3_CAN1_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) -#define bFM3_CAN1_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) -#define bFM3_CAN1_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) -#define bFM3_CAN1_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) -#define bFM3_CAN1_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) -#define bFM3_CAN1_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) -#define bFM3_CAN1_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) -#define bFM3_CAN1_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) -#define bFM3_CAN1_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) -#define bFM3_CAN1_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) -#define bFM3_CAN1_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) -#define bFM3_CAN1_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) -#define bFM3_CAN1_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) -#define bFM3_CAN1_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) -#define bFM3_CAN1_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) - -#ifdef __cplusplus -} -#endif - -#endif /* _MB9BF506R_H_ */ - diff --git a/bsp/mb9bf500r/CMSIS/start_gcc.S b/bsp/mb9bf500r/CMSIS/start_gcc.S deleted file mode 100644 index 8789adb8f6..0000000000 --- a/bsp/mb9bf500r/CMSIS/start_gcc.S +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-07-01 lgnq first version - */ - - .syntax unified - .cpu cortex-m3 - .fpu softvfp - .thumb - -.global g_pfnVectors -.global Default_Handler - -/* start address for the initialization values of the .data section. -defined in linker script */ -.word _sidata -/* start address for the .data section. defined in linker script */ -.word _sdata -/* end address for the .data section. defined in linker script */ -.word _edata -/* start address for the .bss section. defined in linker script */ -.word _sbss -/* end address for the .bss section. defined in linker script */ -.word _ebss - -// .equ Initial_spTop, 0x20000200 -.equ BootRAM, 0xF1E0F85F -/** - * @brief This is the code that gets called when the processor first - * starts execution following a reset event. Only the absolutely - * necessary set is performed, after which the application - * supplied main() routine is called. - * @param None - * @retval : None -*/ - - .section .text.Reset_Handler - .weak Reset_Handler - .type Reset_Handler, %function -Reset_Handler: -/* restore original stack pointer */ - ldr sp, =_estack /* set stack pointer */ - -/* Copy the data segment initializers from flash to SRAM */ - movs r1, #0 - b LoopCopyDataInit - -CopyDataInit: - ldr r3, =_sidata - ldr r3, [r3, r1] - str r3, [r0, r1] - adds r1, r1, #4 - -LoopCopyDataInit: - ldr r0, =_sdata - ldr r3, =_edata - adds r2, r0, r1 - cmp r2, r3 - bcc CopyDataInit - ldr r2, =_sbss - b LoopFillZerobss -/* Zero fill the bss segment. */ -FillZerobss: - movs r3, #0 - str r3, [r2], #4 - -LoopFillZerobss: - ldr r3, = _ebss - cmp r2, r3 - bcc FillZerobss -/* Call the application's entry point.*/ - bl main - bx lr -.size Reset_Handler, .-Reset_Handler - -/** - * @brief This is the code that gets called when the processor receives an - * unexpected interrupt. This simply enters an infinite loop, preserving - * the system state for examination by a debugger. - * - * @param None - * @retval : None -*/ - .section .text.Default_Handler,"ax",%progbits -Default_Handler: -Infinite_Loop: - b Infinite_Loop - .size Default_Handler, .-Default_Handler -/****************************************************************************** -* -* The minimal vector table for a Cortex M3. Note that the proper constructs -* must be placed on this to ensure that it ends up at physical address -* 0x0000.0000. -* -******************************************************************************/ - .section .isr_vector,"a",%progbits - .type g_pfnVectors, %object - .size g_pfnVectors, .-g_pfnVectors - -g_pfnVectors: - .word _estack - .word Reset_Handler - .word NMI_Handler - .word HardFault_Handler - .word MemManage_Handler - .word BusFault_Handler - .word UsageFault_Handler - .word 0 - .word 0 - .word 0 - .word 0 - .word SVC_Handler - .word DebugMon_Handler - .word 0 - .word PendSV_Handler - .word SysTick_Handler - - .word CSV_IRQHandler - .word SWDT_IRQHandler - .word LVD_IRQHandler - .word WFG_IRQHandler - .word EXINT0_7_IRQHandler - .word EXINT8_15_IRQHandler - .word DTIM_QDU_IRQHandler - .word MFS0RX_IRQHandler - .word MFS0TX_IRQHandler - .word MFS1RX_IRQHandler - .word MFS1TX_IRQHandler - .word MFS2RX_IRQHandler - .word MFS2TX_IRQHandler - .word MFS3RX_IRQHandler - .word MFS3TX_IRQHandler - .word MFS4RX_IRQHandler - .word MFS4TX_IRQHandler - .word MFS5RX_IRQHandler - .word MFS5TX_IRQHandler - .word MFS6RX_IRQHandler - .word MFS6TX_IRQHandler - .word MFS7RX_IRQHandler - .word MFS7TX_IRQHandler - .word PPG_IRQHandler - .word OSC_PLL_WC_IRQHandler - .word ADC0_IRQHandler - .word ADC1_IRQHandler - .word ADC2_IRQHandler - .word FRTIM_IRQHandler - .word INCAP_IRQHandler - .word OUTCOMP_IRQHandler - .word BTIM_IRQHandler - .word CAN0_IRQHandler - .word CAN1_IRQHandler - .word USBF_IRQHandler - .word USBF_USBH_IRQHandler - .word RESERVED_1_IRQHandler - .word RESERVED_2_IRQHandler - .word DMAC0_IRQHandler - .word DMAC1_IRQHandler - .word DMAC2_IRQHandler - .word DMAC3_IRQHandler - .word DMAC4_IRQHandler - .word DMAC5_IRQHandler - .word DMAC6_IRQHandler - .word DMAC7_IRQHandler - .word RESERVED_3_IRQHandler - .word RESERVED_4_IRQHandler - -/******************************************************************************* -* -* Provide weak aliases for each Exception handler to the Default_Handler. -* As they are weak aliases, any function with the same name will override -* this definition. -* -*******************************************************************************/ - - .weak NMI_Handler - .thumb_set NMI_Handler,Default_Handler - - .weak HardFault_Handler - .thumb_set HardFault_Handler,Default_Handler - - .weak MemManage_Handler - .thumb_set MemManage_Handler,Default_Handler - - .weak BusFault_Handler - .thumb_set BusFault_Handler,Default_Handler - - .weak UsageFault_Handler - .thumb_set UsageFault_Handler,Default_Handler - - .weak SVC_Handler - .thumb_set SVC_Handler,Default_Handler - - .weak DebugMon_Handler - .thumb_set DebugMon_Handler,Default_Handler - - .weak PendSV_Handler - .thumb_set PendSV_Handler,Default_Handler - - .weak SysTick_Handler - .thumb_set SysTick_Handler,Default_Handler - - .weak CSV_IRQHandler - .thumb_set CSV_IRQHandler,Default_Handler - - .weak SWDT_IRQHandler - .thumb_set SWDT_IRQHandler,Default_Handler - - .weak LVD_IRQHandler - .thumb_set LVD_IRQHandler,Default_Handler - - .weak WFG_IRQHandler - .thumb_set WFG_IRQHandler,Default_Handler - - .weak EXINT0_7_IRQHandler - .thumb_set EXINT0_7_IRQHandler,Default_Handler - - .weak EXINT8_15_IRQHandler - .thumb_set EXINT8_15_IRQHandler,Default_Handler - - .weak DTIM_QDU_IRQHandler - .thumb_set DTIM_QDU_IRQHandler,Default_Handler - - .weak MFS0RX_IRQHandler - .thumb_set MFS0RX_IRQHandler,Default_Handler - - .weak MFS0TX_IRQHandler - .thumb_set MFS0TX_IRQHandler,Default_Handler - - .weak MFS1RX_IRQHandler - .thumb_set MFS1RX_IRQHandler,Default_Handler - - .weak MFS1TX_IRQHandler - .thumb_set MFS1TX_IRQHandler,Default_Handler - - .weak MFS2RX_IRQHandler - .thumb_set MFS2RX_IRQHandler,Default_Handler - - .weak MFS2TX_IRQHandler - .thumb_set MFS2TX_IRQHandler,Default_Handler - - .weak MFS3RX_IRQHandler - .thumb_set MFS3RX_IRQHandler,Default_Handler - - .weak MFS3TX_IRQHandler - .thumb_set MFS3TX_IRQHandler,Default_Handler - - .weak MFS4RX_IRQHandler - .thumb_set MFS4RX_IRQHandler,Default_Handler - - .weak MFS4TX_IRQHandler - .thumb_set MFS4TX_IRQHandler,Default_Handler - - .weak MFS5RX_IRQHandler - .thumb_set MFS5RX_IRQHandler,Default_Handler - - .weak MFS5TX_IRQHandler - .thumb_set MFS5TX_IRQHandler,Default_Handler - - .weak MFS6RX_IRQHandler - .thumb_set MFS6RX_IRQHandler,Default_Handler - - .weak MFS6TX_IRQHandler - .thumb_set MFS6TX_IRQHandler,Default_Handler - - .weak MFS7RX_IRQHandler - .thumb_set MFS7RX_IRQHandler,Default_Handler - - .weak MFS7TX_IRQHandler - .thumb_set MFS7TX_IRQHandler,Default_Handler - - .weak PPG_IRQHandler - .thumb_set PPG_IRQHandler,Default_Handler - - .weak OSC_PLL_WC_IRQHandler - .thumb_set OSC_PLL_WC_IRQHandler,Default_Handler - - .weak ADC0_IRQHandler - .thumb_set ADC0_IRQHandler,Default_Handler - - .weak ADC1_IRQHandler - .thumb_set ADC1_IRQHandler,Default_Handler - - .weak ADC2_IRQHandler - .thumb_set ADC2_IRQHandler,Default_Handler - - .weak FRTIM_IRQHandler - .thumb_set FRTIM_IRQHandler,Default_Handler - - .weak INCAP_IRQHandler - .thumb_set INCAP_IRQHandler,Default_Handler - - .weak OUTCOMP_IRQHandler - .thumb_set OUTCOMP_IRQHandler,Default_Handler - - .weak BTIM_IRQHandler - .thumb_set BTIM_IRQHandler,Default_Handler - - .weak CAN0_IRQHandler - .thumb_set CAN0_IRQHandler,Default_Handler - - .weak CAN1_IRQHandler - .thumb_set CAN1_IRQHandler,Default_Handler - - .weak USBF_IRQHandler - .thumb_set USBF_IRQHandler,Default_Handler - - .weak USBF_USBH_IRQHandler - .thumb_set USBF_USBH_IRQHandler,Default_Handler - - .weak RESERVED_1_IRQHandler - .thumb_set RESERVED_1_IRQHandler,Default_Handler - - .weak RESERVED_2_IRQHandler - .thumb_set RESERVED_2_IRQHandler,Default_Handler - - .weak DMAC0_IRQHandler - .thumb_set DMAC0_IRQHandler,Default_Handler - - .weak DMAC1_IRQHandler - .thumb_set DMAC1_IRQHandler,Default_Handler - - .weak DMAC2_IRQHandler - .thumb_set DMAC2_IRQHandler,Default_Handler - - .weak DMAC3_IRQHandler - .thumb_set DMAC3_IRQHandler,Default_Handler - - .weak DMAC4_IRQHandler - .thumb_set DMAC4_IRQHandler,Default_Handler - - .weak DMAC5_IRQHandler - .thumb_set DMAC5_IRQHandler,Default_Handler - - .weak DMAC6_IRQHandler - .thumb_set DMAC6_IRQHandler,Default_Handler - - .weak DMAC7_IRQHandler - .thumb_set DMAC7_IRQHandler,Default_Handler - - .weak RESERVED_3_IRQHandler - .thumb_set RESERVED_3_IRQHandler,Default_Handler - - .weak RESERVED_4_IRQHandler - .thumb_set RESERVED_4_IRQHandler,Default_Handler - diff --git a/bsp/mb9bf500r/CMSIS/start_iar.S b/bsp/mb9bf500r/CMSIS/start_iar.S deleted file mode 100644 index e60f066822..0000000000 --- a/bsp/mb9bf500r/CMSIS/start_iar.S +++ /dev/null @@ -1,359 +0,0 @@ -;/* -; * Copyright (c) 2006-2021, RT-Thread Development Team -; * -; * SPDX-License-Identifier: Apache-2.0 -; * -; * Change Logs: -; * Date Author Notes -; * 2009-01-17 Bernard first version -; * 2009-09-27 Bernard add protect when contex switch occurs -; */ - -#include "rtconfig.h" - - MODULE ?cstartup - -;; ICODE is the same segment as cstartup. By placing __low_level_init -;; in the same segment, we make sure it can be reached with BL. */ - - SECTION CSTACK:DATA:NOROOT(3) - SECTION .icode:CODE:NOROOT(2) - -#ifdef RT_USING_UART2 - IMPORT MFS2RX_IRQHandler -#endif - PUBLIC __low_level_init - - PUBWEAK SystemInit_ExtMemCtl - SECTION .text:CODE:REORDER(2) - THUMB -SystemInit_ExtMemCtl - BX LR - -__low_level_init: - ;; Initialize hardware. - LDR R0, = SystemInit_ExtMemCtl ; initialize external memory controller - MOV R11, LR - BLX R0 - LDR R1, =sfe(CSTACK) ; restore original stack pointer - MSR MSP, R1 - MOV R0,#1 - ;; Return with BX to be independent of mode of caller - BX R11 - - ;; Forward declaration of sections. - SECTION .intvec:CODE:NOROOT(2) - - EXTERN __iar_program_start - PUBLIC __vector_table - - DATA -__vector_table - DCD sfe(CSTACK) - DCD __iar_program_start - - DCD NMI_Handler ; NMI Handler - DCD HardFault_Handler ; Hard Fault Handler - DCD MemManage_Handler ; MPU Fault Handler - DCD BusFault_Handler ; Bus Fault Handler - DCD UsageFault_Handler ; Usage Fault Handler - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall Handler - DCD DebugMon_Handler ; Debug Monitor Handler - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV Handler - DCD SysTick_Handler ; SysTick Handler - - ; External Interrupts - DCD CSV_IRQHandler ; Clock Super Visor - DCD SWDT_IRQHandler ; Software Watchdog Timer - DCD LVD_IRQHandler ; Low Voltage Detector - DCD WFG_IRQHandler ; Wave Form Generator - DCD EXINT0_7_IRQHandler ; External Interrupt Request ch.0 to ch.7 - DCD EXINT8_15_IRQHandler ; External Interrupt Request ch.8 to ch.15 - DCD DTIM_QDU_IRQHandler ; Dual Timer / Quad Decoder - DCD MFS0RX_IRQHandler ; MultiFunction Serial ch.0 - DCD MFS0TX_IRQHandler ; MultiFunction Serial ch.0 - DCD MFS1RX_IRQHandler ; MultiFunction Serial ch.1 - DCD MFS1TX_IRQHandler ; MultiFunction Serial ch.1 -#ifdef RT_USING_UART2 - DCD MFS2RX_IRQHandler ; MultiFunction Serial ch.2 -#else - DCD NULL_IRQHandler ; MultiFunction Serial ch.2 -#endif - DCD MFS2TX_IRQHandler ; MultiFunction Serial ch.2 - DCD MFS3RX_IRQHandler ; MultiFunction Serial ch.3 - DCD MFS3TX_IRQHandler ; MultiFunction Serial ch.3 - DCD MFS4RX_IRQHandler ; MultiFunction Serial ch.4 - DCD MFS4TX_IRQHandler ; MultiFunction Serial ch.4 - DCD MFS5RX_IRQHandler ; MultiFunction Serial ch.5 - DCD MFS5TX_IRQHandler ; MultiFunction Serial ch.5 - DCD MFS6RX_IRQHandler ; MultiFunction Serial ch.6 - DCD MFS6TX_IRQHandler ; MultiFunction Serial ch.6 - DCD MFS7RX_IRQHandler ; MultiFunction Serial ch.7 - DCD MFS7TX_IRQHandler ; MultiFunction Serial ch.7 - DCD PPG_IRQHandler ; PPG - DCD OSC_PLL_WC_IRQHandler ; OSC / PLL / Watch Counter - DCD ADC0_IRQHandler ; ADC0 - DCD ADC1_IRQHandler ; ADC1 - DCD ADC2_IRQHandler ; ADC2 - DCD FRTIM_IRQHandler ; Free-run Timer - DCD INCAP_IRQHandler ; Input Capture - DCD OUTCOMP_IRQHandler ; Output Compare - DCD BTIM_IRQHandler ; Base Timer ch.0 to ch.7 - DCD CAN0_IRQHandler ; CAN ch.0 - DCD CAN1_IRQHandler ; CAN ch.1 - DCD USBF_IRQHandler ; USB Function - DCD USBF_USBH_IRQHandler ; USB Function / USB HOST - DCD RESERVED_1_IRQHandler ; Reserved_1 - DCD RESERVED_2_IRQHandler ; Reserved_2 - DCD DMAC0_IRQHandler ; DMAC ch.0 - DCD DMAC1_IRQHandler ; DMAC ch.1 - DCD DMAC2_IRQHandler ; DMAC ch.2 - DCD DMAC3_IRQHandler ; DMAC ch.3 - DCD DMAC4_IRQHandler ; DMAC ch.4 - DCD DMAC5_IRQHandler ; DMAC ch.5 - DCD DMAC6_IRQHandler ; DMAC ch.6 - DCD DMAC7_IRQHandler ; DMAC ch.7 - DCD RESERVED_3_IRQHandler ; Reserved_3 - DCD RESERVED_4_IRQHandler ; Reserved_4 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Default interrupt handlers. -;; - THUMB - - PUBWEAK NMI_Handler - SECTION .text:CODE:REORDER(1) -NMI_Handler - B NMI_Handler - PUBWEAK HardFault_Handler - SECTION .text:CODE:REORDER(1) -HardFault_Handler - B HardFault_Handler - PUBWEAK MemManage_Handler - SECTION .text:CODE:REORDER(1) -MemManage_Handler - B MemManage_Handler - PUBWEAK BusFault_Handler - SECTION .text:CODE:REORDER(1) -BusFault_Handler - B BusFault_Handler - PUBWEAK UsageFault_Handler - SECTION .text:CODE:REORDER(1) -UsageFault_Handler - B UsageFault_Handler - PUBWEAK SVC_Handler - SECTION .text:CODE:REORDER(1) -SVC_Handler - B SVC_Handler - PUBWEAK DebugMon_Handler - SECTION .text:CODE:REORDER(1) -DebugMon_Handler - B DebugMon_Handler - PUBWEAK PendSV_Handler - SECTION .text:CODE:REORDER(1) -PendSV_Handler - B PendSV_Handler - PUBWEAK SysTick_Handler - SECTION .text:CODE:REORDER(1) -SysTick_Handler - B SysTick_Handler - PUBWEAK CSV_IRQHandler - SECTION .text:CODE:REORDER(1) -CSV_IRQHandler - B CSV_IRQHandler - PUBWEAK SWDT_IRQHandler - SECTION .text:CODE:REORDER(1) -SWDT_IRQHandler - B SWDT_IRQHandler - PUBWEAK LVD_IRQHandler - SECTION .text:CODE:REORDER(1) -LVD_IRQHandler - B LVD_IRQHandler - PUBWEAK WFG_IRQHandler - SECTION .text:CODE:REORDER(1) -WFG_IRQHandler - B WFG_IRQHandler - PUBWEAK EXINT0_7_IRQHandler - SECTION .text:CODE:REORDER(1) -EXINT0_7_IRQHandler - B EXINT0_7_IRQHandler - PUBWEAK EXINT8_15_IRQHandler - SECTION .text:CODE:REORDER(1) -EXINT8_15_IRQHandler - B EXINT8_15_IRQHandler - PUBWEAK DTIM_QDU_IRQHandler - SECTION .text:CODE:REORDER(1) -DTIM_QDU_IRQHandler - B DTIM_QDU_IRQHandler - PUBWEAK MFS0RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS0RX_IRQHandler - B MFS0RX_IRQHandler - PUBWEAK MFS0TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS0TX_IRQHandler - B MFS0TX_IRQHandler - PUBWEAK MFS1RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS1RX_IRQHandler - B MFS1RX_IRQHandler - PUBWEAK MFS1TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS1TX_IRQHandler - B MFS1TX_IRQHandler - PUBWEAK NULL_IRQHandler - SECTION .text:CODE:REORDER(1) -NULL_IRQHandler - B NULL_IRQHandler - PUBWEAK MFS2TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS2TX_IRQHandler - B MFS2TX_IRQHandler - PUBWEAK MFS3RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS3RX_IRQHandler - B MFS3RX_IRQHandler - PUBWEAK MFS3TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS3TX_IRQHandler - B MFS3TX_IRQHandler - PUBWEAK MFS4RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS4RX_IRQHandler - B MFS4RX_IRQHandler - PUBWEAK MFS4TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS4TX_IRQHandler - B MFS4TX_IRQHandler - PUBWEAK MFS5RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS5RX_IRQHandler - B MFS5RX_IRQHandler - PUBWEAK MFS5TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS5TX_IRQHandler - B MFS5TX_IRQHandler - PUBWEAK MFS6RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS6RX_IRQHandler - B MFS6RX_IRQHandler - PUBWEAK MFS6TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS6TX_IRQHandler - B MFS6TX_IRQHandler - PUBWEAK MFS7RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS7RX_IRQHandler - B MFS7RX_IRQHandler - PUBWEAK MFS7TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS7TX_IRQHandler - B MFS7TX_IRQHandler - PUBWEAK PPG_IRQHandler - SECTION .text:CODE:REORDER(1) -PPG_IRQHandler - B PPG_IRQHandler - PUBWEAK OSC_PLL_WC_IRQHandler - SECTION .text:CODE:REORDER(1) -OSC_PLL_WC_IRQHandler - B OSC_PLL_WC_IRQHandler - PUBWEAK ADC0_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC0_IRQHandler - B ADC0_IRQHandler - PUBWEAK ADC1_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC1_IRQHandler - B ADC1_IRQHandler - PUBWEAK ADC2_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC2_IRQHandler - B ADC2_IRQHandler - PUBWEAK FRTIM_IRQHandler - SECTION .text:CODE:REORDER(1) -FRTIM_IRQHandler - B FRTIM_IRQHandler - PUBWEAK INCAP_IRQHandler - SECTION .text:CODE:REORDER(1) -INCAP_IRQHandler - B INCAP_IRQHandler - PUBWEAK OUTCOMP_IRQHandler - SECTION .text:CODE:REORDER(1) -OUTCOMP_IRQHandler - B OUTCOMP_IRQHandler - PUBWEAK BTIM_IRQHandler - SECTION .text:CODE:REORDER(1) -BTIM_IRQHandler - B BTIM_IRQHandler - PUBWEAK CAN0_IRQHandler - SECTION .text:CODE:REORDER(1) -CAN0_IRQHandler - B CAN0_IRQHandler - PUBWEAK CAN1_IRQHandler - SECTION .text:CODE:REORDER(1) -CAN1_IRQHandler - B CAN1_IRQHandler - PUBWEAK USBF_IRQHandler - SECTION .text:CODE:REORDER(1) -USBF_IRQHandler - B USBF_IRQHandler - PUBWEAK USBF_USBH_IRQHandler - SECTION .text:CODE:REORDER(1) -USBF_USBH_IRQHandler - B USBF_USBH_IRQHandler - PUBWEAK RESERVED_1_IRQHandler - SECTION .text:CODE:REORDER(1) -RESERVED_1_IRQHandler - B RESERVED_1_IRQHandler - PUBWEAK RESERVED_2_IRQHandler - SECTION .text:CODE:REORDER(1) -RESERVED_2_IRQHandler - B RESERVED_2_IRQHandler - PUBWEAK DMAC0_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC0_IRQHandler - B DMAC0_IRQHandler - PUBWEAK DMAC1_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC1_IRQHandler - B DMAC1_IRQHandler - PUBWEAK DMAC2_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC2_IRQHandler - B DMAC2_IRQHandler - PUBWEAK DMAC3_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC3_IRQHandler - B DMAC3_IRQHandler - PUBWEAK DMAC4_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC4_IRQHandler - B DMAC4_IRQHandler - PUBWEAK DMAC5_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC5_IRQHandler - B DMAC5_IRQHandler - PUBWEAK DMAC6_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC6_IRQHandler - B DMAC6_IRQHandler - PUBWEAK DMAC7_IRQHandler - SECTION .text:CODE:REORDER(1) -DMAC7_IRQHandler - B DMAC7_IRQHandler - PUBWEAK RESERVED_3_IRQHandler - SECTION .text:CODE:REORDER(1) -RESERVED_3_IRQHandler - B RESERVED_3_IRQHandler - PUBWEAK RESERVED_4_IRQHandler - SECTION .text:CODE:REORDER(1) -RESERVED_4_IRQHandler - B RESERVED_4_IRQHandler - - END diff --git a/bsp/mb9bf500r/CMSIS/start_rvds.S b/bsp/mb9bf500r/CMSIS/start_rvds.S deleted file mode 100644 index 451f17aa0d..0000000000 --- a/bsp/mb9bf500r/CMSIS/start_rvds.S +++ /dev/null @@ -1,287 +0,0 @@ -; /* -; * Copyright (c) 2006-2021, RT-Thread Development Team -; * -; * SPDX-License-Identifier: Apache-2.0 -; * -; * Change Logs: -; * Date Author Notes -; * 2011-02-23 Bernard first implementation -; */ - -;* <<< Use Configuration Wizard in Context Menu >>> - -; Amount of memory (in bytes) allocated for Stack -; Tailor this value to your application needs -; Stack Configuration -; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> -; - -Stack_Size EQU 0x00000200 - - AREA STACK, NOINIT, READWRITE, ALIGN=3 -Stack_Mem SPACE Stack_Size -__initial_sp - -; Note: RT-Thread not use malloc/free in Keil MDK, therefore the heap size is 0. -Heap_Size EQU 0x00000000 - - AREA HEAP, NOINIT, READWRITE, ALIGN=3 -__heap_base -Heap_Mem SPACE Heap_Size -__heap_limit - - PRESERVE8 - THUMB - -; Vector Table Mapped to Address 0 at Reset - AREA RESET, DATA, READONLY - EXPORT __Vectors - EXPORT __Vectors_End - EXPORT __Vectors_Size - -__Vectors DCD __initial_sp ; Top of Stack - DCD Reset_Handler ; Reset Handler - DCD NMI_Handler ; NMI Handler - DCD HardFault_Handler ; Hard Fault Handler - DCD MemManage_Handler ; MPU Fault Handler - DCD BusFault_Handler ; Bus Fault Handler - DCD UsageFault_Handler ; Usage Fault Handler - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall Handler - DCD DebugMon_Handler ; Debug Monitor Handler - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV Handler - DCD SysTick_Handler ; SysTick Handler - - DCD CSV_Handler ; 0: Clock Super Visor - DCD SWDT_Handler ; 1: Software Watchdog Timer - DCD LVD_Handler ; 2: Low Voltage Detector - DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF - DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 - DCD INT8_15_Handler ; 5: External Interrupt Request ch.8 to ch.15 - DCD DT_Handler ; 6: Dual Timer / Quad Decoder - DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 - DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 - DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 - DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 - DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 - DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 - DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 - DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 - DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 - DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 - DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 - DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 - DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 - DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 - DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 - DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 - DCD PPG_Handler ; 23: PPG - DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter - DCD ADC0_IRQHandler ; 25: ADC0 - DCD ADC1_IRQHandler ; 26: ADC1 - DCD ADC2_IRQHandler ; 27: ADC2 - DCD MFT_FRT_IRQHandler ; 28: Free-run Timer - DCD MFT_IPC_IRQHandler ; 29: Input Capture - DCD MFT_OPC_IRQHandler ; 30: Output Compare - DCD BT_IRQHandler ; 31: Base Timer ch.0 to ch.7 - DCD CAN0_IRQHandler ; 32: CAN ch.0 - DCD CAN1_IRQHandler ; 33: CAN ch.1 - DCD USBF_Handler ; 34: USB Function - DCD USB_Handler ; 35: USB Function / USB HOST - DCD DummyHandler ; 36: Reserved - DCD DummyHandler ; 37: Reserved - DCD DMAC0_Handler ; 38: DMAC ch.0 - DCD DMAC1_Handler ; 39: DMAC ch.1 - DCD DMAC2_Handler ; 40: DMAC ch.2 - DCD DMAC3_Handler ; 41: DMAC ch.3 - DCD DMAC4_Handler ; 42: DMAC ch.4 - DCD DMAC5_Handler ; 43: DMAC ch.5 - DCD DMAC6_Handler ; 44: DMAC ch.6 - DCD DMAC7_Handler ; 45: DMAC ch.7 - DCD DummyHandler ; 46: Reserved - DCD DummyHandler ; 47: Reserved -__Vectors_End - -__Vectors_Size EQU __Vectors_End - __Vectors - - AREA |.text|, CODE, READONLY - -; Reset handler routine -Reset_Handler PROC - EXPORT Reset_Handler [WEAK] - IMPORT __main - IMPORT SystemInit - LDR R1, = __initial_sp ; restore original stack pointer - MSR MSP, R1 - LDR R0, =SystemInit - BLX R0 - LDR R0, =__main - BX R0 - ENDP - -; Dummy Exception Handlers (infinite loops which can be modified) - -NMI_Handler PROC - EXPORT NMI_Handler [WEAK] - B . - ENDP -HardFault_Handler\ - PROC - EXPORT HardFault_Handler [WEAK] - B . - ENDP -MemManage_Handler\ - PROC - EXPORT MemManage_Handler [WEAK] - B . - ENDP -BusFault_Handler\ - PROC - EXPORT BusFault_Handler [WEAK] - B . - ENDP -UsageFault_Handler\ - PROC - EXPORT UsageFault_Handler [WEAK] - B . - ENDP -SVC_Handler PROC - EXPORT SVC_Handler [WEAK] - B . - ENDP -DebugMon_Handler\ - PROC - EXPORT DebugMon_Handler [WEAK] - B . - ENDP -PendSV_Handler PROC - EXPORT PendSV_Handler [WEAK] - B . - ENDP -SysTick_Handler PROC - EXPORT SysTick_Handler [WEAK] - B . - ENDP - -Default_Handler PROC - - EXPORT CSV_Handler [WEAK] - EXPORT SWDT_Handler [WEAK] - EXPORT LVD_Handler [WEAK] - EXPORT MFT_WG_IRQHandler [WEAK] - EXPORT INT0_7_Handler [WEAK] - EXPORT INT8_15_Handler [WEAK] - EXPORT DT_Handler [WEAK] - EXPORT MFS0RX_IRQHandler [WEAK] - EXPORT MFS0TX_IRQHandler [WEAK] - EXPORT MFS1RX_IRQHandler [WEAK] - EXPORT MFS1TX_IRQHandler [WEAK] - EXPORT MFS2RX_IRQHandler [WEAK] - EXPORT MFS2TX_IRQHandler [WEAK] - EXPORT MFS3RX_IRQHandler [WEAK] - EXPORT MFS3TX_IRQHandler [WEAK] - EXPORT MFS4RX_IRQHandler [WEAK] - EXPORT MFS4TX_IRQHandler [WEAK] - EXPORT MFS5RX_IRQHandler [WEAK] - EXPORT MFS5TX_IRQHandler [WEAK] - EXPORT MFS6RX_IRQHandler [WEAK] - EXPORT MFS6TX_IRQHandler [WEAK] - EXPORT MFS7RX_IRQHandler [WEAK] - EXPORT MFS7TX_IRQHandler [WEAK] - EXPORT PPG_Handler [WEAK] - EXPORT TIM_IRQHandler [WEAK] - EXPORT ADC0_IRQHandler [WEAK] - EXPORT ADC1_IRQHandler [WEAK] - EXPORT ADC2_IRQHandler [WEAK] - EXPORT MFT_FRT_IRQHandler [WEAK] - EXPORT MFT_IPC_IRQHandler [WEAK] - EXPORT MFT_OPC_IRQHandler [WEAK] - EXPORT BT_IRQHandler [WEAK] - EXPORT CAN0_IRQHandler [WEAK] - EXPORT CAN1_IRQHandler [WEAK] - EXPORT USBF_Handler [WEAK] - EXPORT USB_Handler [WEAK] - EXPORT DMAC0_Handler [WEAK] - EXPORT DMAC1_Handler [WEAK] - EXPORT DMAC2_Handler [WEAK] - EXPORT DMAC3_Handler [WEAK] - EXPORT DMAC4_Handler [WEAK] - EXPORT DMAC5_Handler [WEAK] - EXPORT DMAC6_Handler [WEAK] - EXPORT DMAC7_Handler [WEAK] - EXPORT DummyHandler [WEAK] - -CSV_Handler -SWDT_Handler -LVD_Handler -MFT_WG_IRQHandler -INT0_7_Handler -INT8_15_Handler -DT_Handler -MFS0RX_IRQHandler -MFS0TX_IRQHandler -MFS1RX_IRQHandler -MFS1TX_IRQHandler -MFS2RX_IRQHandler -MFS2TX_IRQHandler -MFS3RX_IRQHandler -MFS3TX_IRQHandler -MFS4RX_IRQHandler -MFS4TX_IRQHandler -MFS5RX_IRQHandler -MFS5TX_IRQHandler -MFS6RX_IRQHandler -MFS6TX_IRQHandler -MFS7RX_IRQHandler -MFS7TX_IRQHandler -PPG_Handler -TIM_IRQHandler -ADC0_IRQHandler -ADC1_IRQHandler -ADC2_IRQHandler -MFT_FRT_IRQHandler -MFT_IPC_IRQHandler -MFT_OPC_IRQHandler -BT_IRQHandler -CAN0_IRQHandler -CAN1_IRQHandler -USBF_Handler -USB_Handler -DMAC0_Handler -DMAC1_Handler -DMAC2_Handler -DMAC3_Handler -DMAC4_Handler -DMAC5_Handler -DMAC6_Handler -DMAC7_Handler -DummyHandler - B . - ENDP - ALIGN - -; User Initial Stack & Heap - - IF :DEF:__MICROLIB - EXPORT __initial_sp - EXPORT __heap_base - EXPORT __heap_limit - ELSE - IMPORT __use_two_region_memory - EXPORT __user_initial_stackheap -__user_initial_stackheap - - LDR R0, = Heap_Mem - LDR R1, =(Stack_Mem + Stack_Size) - LDR R2, = (Heap_Mem + Heap_Size) - LDR R3, = Stack_Mem - BX LR - - ALIGN - ENDIF - - END diff --git a/bsp/mb9bf500r/CMSIS/system_mb9bf50x.c b/bsp/mb9bf500r/CMSIS/system_mb9bf50x.c deleted file mode 100644 index 12f9772e9f..0000000000 --- a/bsp/mb9bf500r/CMSIS/system_mb9bf50x.c +++ /dev/null @@ -1,111 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user’s obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intention and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.4) */ -/************************************************************************/ - -#include "mb9bf506r.h" - -/* - * 80MHz : Master Clock - */ -const uint32_t SystemFrequency = 80000000UL; - -uint32_t SysFreHCLK = 80000000UL; /* HCLK = MasterClock / 1 */ -uint32_t SysFrePCLK0 = 40000000UL; /* PCLK0 = HCLK / 2 */ -uint32_t SysFrePCLK1 = 40000000UL; /* PCLK1 = HCLK / 2 */ -uint32_t SysFrePCLK2 = 40000000UL; /* PCLK2 = HCLK / 2 */ -uint32_t SysFreTPIU = 0UL; /* TPIUCLK : Disable */ - -/* - * Prototype of internal function - */ -static void ClockInit(void); -static void HwwdtDisable(void); - - -/* - * Setup the microcontroller system - */ -void SystemInit (void) -{ - HwwdtDisable(); /* Disable Hardware Watchdog */ - ClockInit(); /* Initialize Clock */ -} -/* - * Initialize Clock - */ -static void ClockInit(void) -{ - /*set Main clock stabilization - wait time to 2ms*/ - FM3_CRG->CSW_TMR = 0x79; - /*Enable Main Oscilator*/ - FM3_CRG->SCM_CTL |= 1<<1; - /*Wait stabilization end*/ - while(!(FM3_CRG->SCM_STR & 0x02)); - - /* sub CLK enable */ - //FM3_CRG->SCM_CTL |= 0x08; - //while(!(FM3_CRG->SCM_STR & 0x08)); - - /*Set PLL stabilization - wait time to 512uS*/ - FM3_CRG->PSW_TMR |= 2; - /*Set PLL to 80MHz*/ - FM3_CRG->PLL_CTL1 = 0; /*K = 1, M=1*/ - FM3_CRG->PLL_CTL2 = 19; /*N = 20*/ - /*Enable PLL*/ - FM3_CRG->SCM_CTL |= 0x10; - /*Set bus prescalers*/ - FM3_CRG->BSC_PSR = 0; /*Base clock Prescaler 1:1*/ - FM3_CRG->APBC0_PSR |= 1; /*APB0 clock Prescaler 1:2*/ - FM3_CRG->APBC1_PSR |= 1; /*APB1 clock Prescaler 1:2*/ - FM3_CRG->APBC2_PSR |= 1; /*APB2 clock Prescaler 1:2*/ - /*Wait PLL stabilizatoin end*/ - while(!(FM3_CRG->SCM_STR & 0x10)); - /*Select PLL for main clock*/ - FM3_CRG->SCM_CTL |= 2<<5; - /*Wait PLL to be connected*/ - while((FM3_CRG->SCM_STR & 0xe0) != 0x40); - -} -/* - * Stop HW Watchdog Timer - */ -static void HwwdtDisable(void) -{ - /* UnLock (except WDG_CTL) */ - FM3_HWWDT->WDG_LCK = 0x1ACCE551; - /* UnLock (WDG_CTL) */ - FM3_HWWDT->WDG_LCK = 0xE5331AAE; - /* Disable WDG */ - FM3_HWWDT->WDG_CTL = 0x00; -} diff --git a/bsp/mb9bf500r/CMSIS/system_mb9bf50x.h b/bsp/mb9bf500r/CMSIS/system_mb9bf50x.h deleted file mode 100644 index 2750d1efcb..0000000000 --- a/bsp/mb9bf500r/CMSIS/system_mb9bf50x.h +++ /dev/null @@ -1,71 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ - -#ifndef _SYSTEM_MB9BF50X_H_ -#define _SYSTEM_MB9BF50X_H_ - -#ifdef __cplusplus - extern "C" { -#endif - -#include - -extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ - -/** - * Initialize the system - * - * @param none - * @return none - * - * @brief Setup the microcontroller system. - * Initialize the System and update the SystemCoreClock variable. - */ -extern void SystemInit (void); - -/** - * Update SystemCoreClock variable - * - * @param none - * @return none - * - * @brief Updates the SystemCoreClock with current core Clock - * retrieved from cpu registers. - */ -extern void SystemCoreClockUpdate (void); - -#ifdef __cplusplus -} -#endif - -#endif /* __SYSTEM_MB9BF50X_H */ diff --git a/bsp/mb9bf500r/SConscript b/bsp/mb9bf500r/SConscript deleted file mode 100644 index 2679fc6ce5..0000000000 --- a/bsp/mb9bf500r/SConscript +++ /dev/null @@ -1,16 +0,0 @@ -import rtconfig -Import('RTT_ROOT') -from building import * - -src_bsp = ['application.c', 'startup.c', 'board.c', 'led.c', 'cpuusage.c'] -src_drv = ['adc.c', 'lcd.c', 'key.c'] - -if GetDepend('RT_USING_RTGUI'): - src_drv += ['info.c'] - -src = src_bsp + src_drv -CPPPATH = [GetCurrentDir()] -CPPDEFINES = [] -group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) - -Return('group') diff --git a/bsp/mb9bf500r/SConstruct b/bsp/mb9bf500r/SConstruct deleted file mode 100644 index 67d8d9c3a5..0000000000 --- a/bsp/mb9bf500r/SConstruct +++ /dev/null @@ -1,37 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - -if rtconfig.PLATFORM == 'iar': - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -objs = objs + SConscript('CMSIS/SConscript', variant_dir='build/bsp/CMSIS', duplicate=0) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/mb9bf500r/adc.c b/bsp/mb9bf500r/adc.c deleted file mode 100644 index 2e431e90c9..0000000000 --- a/bsp/mb9bf500r/adc.c +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq First version - */ - -#include -#include -#include "mb9bf506r.h" -#include "adc.h" -#include "led.h" -#include "lcd.h" - -#ifdef RT_USING_RTGUI -#include -#include -#include -#endif - -static struct rt_device adc; - -static rt_err_t rt_adc_init(rt_device_t dev) -{ - RT_ASSERT(dev != RT_NULL); - - if(!(dev->flag & RT_DEVICE_FLAG_ACTIVATED)) - { - /* I/O setting AN08 - P18 */ - FM3_GPIO->ADE |= 0x100; - FM3_GPIO->PFR1 = 0x100; - - /* A/DC setting */ - FM3_ADC0->SCIS1 = 0x01; - FM3_ADC0->ADSS1 = 0x00; /* sampling timming ADST0 */ - FM3_ADC0->ADST1 = 0x43; - FM3_ADC0->ADCT = 0x02; - FM3_ADC0->SCCR = 0x10; /* FIFO clear,single mode */ - FM3_ADC0->CMPCR = 0x00; /* disable comparator */ - - /* starting A/DC */ - FM3_ADC0->SCCR |= 0x01; /* A/DC start */ - - dev->flag |= RT_DEVICE_FLAG_ACTIVATED; - } - return RT_EOK; -} - -static rt_err_t rt_adc_control(rt_device_t dev, int cmd, void *args) -{ - RT_ASSERT(dev != RT_NULL); - - switch (cmd) - { - case RT_DEVICE_CTRL_ADC_START: - FM3_ADC0->SCCR |= 0x1; - break; - - case RT_DEVICE_CTRL_ADC_RESULT: - while(FM3_ADC0->ADSR & 0x1) - ; - *((rt_uint16_t*)args) = FM3_ADC0->SCFD; - *((rt_uint16_t*)args) = *((rt_uint16_t*)args) >> 6; - *((rt_uint16_t*)args) = (*((rt_uint16_t*)args)*3300)/1024; - break; - } - return RT_EOK; -} - -extern struct rt_messagequeue mq; -extern rt_thread_t info_tid; -rt_uint16_t adc_value; -static void adc_thread_entry(void *parameter) -{ - rt_device_t device; - -#ifdef RT_USING_RTGUI - struct rtgui_event_command ecmd; - - RTGUI_EVENT_COMMAND_INIT(&ecmd); - ecmd.type = RTGUI_CMD_USER_INT; - ecmd.command_id = ADC_UPDATE; -#else - struct lcd_msg msg; -#endif - - device = rt_device_find("adc"); - - while(1) - { - rt_device_control(device, RT_DEVICE_CTRL_ADC_START, RT_NULL); - rt_device_control(device, RT_DEVICE_CTRL_ADC_RESULT, &adc_value); - pwm_update(adc_value/3); -#ifdef RT_USING_RTGUI - rtgui_thread_send(info_tid, &ecmd.parent, sizeof(ecmd)); -#else - msg.type = ADC_MSG; - msg.adc_value = adc_value; - rt_mq_send(&mq, &msg, sizeof(msg)); -#endif - rt_thread_delay(20); - } -} - -static rt_thread_t adc_thread; -void rt_hw_adc_init(void) -{ - adc.type = RT_Device_Class_Char; - adc.rx_indicate = RT_NULL; - adc.tx_complete = RT_NULL; - adc.init = rt_adc_init; - adc.open = RT_NULL; - adc.close = RT_NULL; - adc.read = RT_NULL; - adc.write = RT_NULL; - adc.control = rt_adc_control; - adc.user_data = RT_NULL; - - adc_thread = rt_thread_create("adc", adc_thread_entry, RT_NULL, 384, 26, 5); - if(adc_thread != RT_NULL) - rt_thread_startup(adc_thread); - - /* register a character device */ - rt_device_register(&adc, "adc", RT_DEVICE_FLAG_RDWR); -} - diff --git a/bsp/mb9bf500r/adc.h b/bsp/mb9bf500r/adc.h deleted file mode 100644 index c8846b0beb..0000000000 --- a/bsp/mb9bf500r/adc.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#ifndef __ADC_H__ -#define __ADC_H__ - -/* Exported constants ---------------------------------------------------------*/ -/* Exported macro -------------------------------------------------------------*/ -#define ADC_MODE_SINGLE 0x00UL -#define ADC_MODE_SCAN 0x01UL -#define ADC_MODE_TAILGATE 0x02UL - -#define RT_DEVICE_CTRL_ADC_START 0xF1 /* start ADC conversion */ -#define RT_DEVICE_CTRL_ADC_RESULT 0xF2 /* get ADC result */ - -#define ADC_UPDATE 0 - -/* Exported functions --------------------------------------------------------- */ -void rt_hw_adc_init(void); - -#endif /*__ADC_H__ */ diff --git a/bsp/mb9bf500r/application.c b/bsp/mb9bf500r/application.c deleted file mode 100644 index 1cbd0c2d83..0000000000 --- a/bsp/mb9bf500r/application.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard the first version - */ - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -#include -#include "board.h" -#include "led.h" -#include "key.h" -#include "adc.h" -#include "lcd.h" -#include "cpuusage.h" - -#ifdef RT_USING_RTGUI -#include -#include -extern void rtgui_startup(); -#endif - -struct rt_messagequeue mq; -static char msg_pool[2048]; - -void rt_init_thread_entry(void *parameter) -{ - rt_device_t lcd; - - rt_hw_led_init(); - rt_hw_key_init(); - rt_hw_adc_init(); - rt_hw_lcd_init(); - rt_hw_cpu_init(); - -#ifdef RT_USING_RTGUI - extern void rtgui_system_server_init(void); - - /* find lcd device */ - lcd = rt_device_find("lcd"); - - /* set lcd device as rtgui graphic driver */ - rtgui_graphic_set_device(lcd); - - /* init rtgui system server */ - rtgui_system_server_init(); - - /* startup rtgui */ - rtgui_startup(); -#else - { - char buf[20] = {'\0'}; - struct lcd_msg msg; - rt_device_t device; - device = rt_device_find("lcd"); - rt_device_control(device, RT_DEVICE_CTRL_LCD_CLEAR_SCR, RT_NULL); - x = 1; - y = 1; - rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, "ADC"); - x = 1; - y = 20; - rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, "CPU"); - x = 1; - y = 40; - rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, "KEY"); - - while(1) - { - if (rt_mq_recv(&mq, &msg, sizeof(msg), RT_WAITING_FOREVER) == RT_EOK) - { - switch(msg.type) - { - case ADC_MSG: - x = 40; - y = 1; - rt_memset(buf, 0, sizeof(buf)); - rt_sprintf(buf, "%04d", msg.adc_value); - rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, buf); - break; - case CPU_MSG: - x = 40; - y = 20; - rt_memset(buf, 0, sizeof(buf)); - rt_sprintf(buf, "%03d %03d", msg.major, msg.minor); - rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, buf); - break; - case KEY_MSG: - x = 40; - y = 40; - rt_memset(buf, 0, sizeof(buf)); - switch(msg.key) - { - case KEY_DOWN: - rt_sprintf(buf, "DOWN KEY "); - break; - case KEY_UP: - rt_sprintf(buf, "UP KEY "); - break; - case KEY_RIGHT: - rt_sprintf(buf, "RIGHT KEY"); - break; - case KEY_LEFT: - rt_sprintf(buf, "LEFT KEY "); - break; - case KEY_ENTER: - rt_sprintf(buf, "ENTER KEY"); - break; - default: - rt_sprintf(buf, "NO KEY "); - break; - } - rt_device_control(device, RT_DEVICE_CTRL_LCD_PUT_STRING, buf); - break; - } - } - } - } -#endif -} - -int rt_application_init(void) -{ - rt_thread_t init_thread; - - rt_mq_init(&mq, "mqt", &msg_pool[0], 128 - sizeof(void*), sizeof(msg_pool), RT_IPC_FLAG_FIFO); - - init_thread = rt_thread_create("init", rt_init_thread_entry, RT_NULL, 1024, 21, 20); - if(init_thread != RT_NULL) - rt_thread_startup(init_thread); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf500r/board.c b/bsp/mb9bf500r/board.c deleted file mode 100644 index f52a5fa3a8..0000000000 --- a/bsp/mb9bf500r/board.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" -#include "mb9bf506r.h" -#include "core_cm3.h" - -extern const uint32_t SystemFrequency; - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -/** - * This is the timer interrupt service routine. - * - */ -void SysTick_Handler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - - rt_tick_increase(); - - /* leave interrupt */ - rt_interrupt_leave(); -} - -/** -* This function will initial FM3 Easy Kit board. - */ -void rt_hw_board_init() -{ - /* init systick */ - SysTick_Config(SystemFrequency/RT_TICK_PER_SECOND); -} - -/*@}*/ diff --git a/bsp/mb9bf500r/board.h b/bsp/mb9bf500r/board.h deleted file mode 100644 index 2b419c759e..0000000000 --- a/bsp/mb9bf500r/board.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2009-09-22 Bernard add board.h to this bsp - * 2011-03-04 lgnq add board.h to FM3 bsp - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - -//Internal SRAM memory size[Kbytes] <8-64> -//MB9BF500 : 32 -//MB9BF504 : 32 -//MB9BF505 : 48 -//MB9BF506 : 64 -#define FM3_SRAM_SIZE 32 -#define FM3_SRAM_END (0x1FFFC000 + FM3_SRAM_SIZE * 1024) - -void rt_hw_board_init(void); - -#endif diff --git a/bsp/mb9bf500r/cpuusage.c b/bsp/mb9bf500r/cpuusage.c deleted file mode 100644 index df8ba2c240..0000000000 --- a/bsp/mb9bf500r/cpuusage.c +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ - -#include -#include -#include "cpuusage.h" -#include "lcd.h" - -#ifdef RT_USING_RTGUI -#include -#include -#include -#endif - -#define CPU_USAGE_CALC_TICK 10 -#define CPU_USAGE_LOOP 100 - -static rt_uint8_t cpu_usage_major = 0, cpu_usage_minor= 0; -static rt_uint32_t total_count = 0; - -static void cpu_usage_idle_hook() -{ - rt_tick_t tick; - rt_uint32_t count; - volatile rt_uint32_t loop; - - if (total_count == 0) - { - loop = 0; - - /* get total count */ - rt_enter_critical(); - tick = rt_tick_get(); - while(rt_tick_get() - tick < CPU_USAGE_CALC_TICK) - { - total_count ++; - while (loop < CPU_USAGE_LOOP) loop ++; - } - rt_exit_critical(); - } - - count = 0; - loop = 0; - /* get CPU usage */ - tick = rt_tick_get(); - while (rt_tick_get() - tick < CPU_USAGE_CALC_TICK) - { - count ++; - while (loop < CPU_USAGE_LOOP) loop ++; - } - - /* calculate major and minor */ - if (count < total_count) - { - count = total_count - count; - cpu_usage_major = (count * 100) / total_count; - cpu_usage_minor = ((count * 100) % total_count) * 100 / total_count; - } - else - { - total_count = count; - - /* no CPU usage */ - cpu_usage_major = 0; - cpu_usage_minor = 0; - } -} - -void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor) -{ - RT_ASSERT(major != RT_NULL); - RT_ASSERT(minor != RT_NULL); - - *major = cpu_usage_major; - *minor = cpu_usage_minor; -} - -void cpu_usage_init() -{ - /* set idle thread hook */ - rt_thread_idle_sethook(cpu_usage_idle_hook); -} -extern struct rt_messagequeue mq; -extern rt_thread_t info_tid; -static void cpu_thread_entry(void *parameter) -{ -#ifdef RT_USING_RTGUI - struct rtgui_event_command ecmd; - - RTGUI_EVENT_COMMAND_INIT(&ecmd); - ecmd.type = RTGUI_CMD_USER_INT; - ecmd.command_id = CPU_UPDATE; -#else - struct lcd_msg msg; -#endif - - while (1) - { -#ifdef RT_USING_RTGUI - rtgui_thread_send(info_tid, &ecmd.parent, sizeof(ecmd)); -#else - msg.type = CPU_MSG; - msg.major = cpu_usage_major; - msg.minor = cpu_usage_minor; - rt_mq_send(&mq, &msg, sizeof(msg)); -#endif - rt_thread_delay(20); - } -} - -static rt_thread_t cpu_thread; -void rt_hw_cpu_init(void) -{ - cpu_usage_init(); - cpu_thread = rt_thread_create("cpu", cpu_thread_entry, RT_NULL, 384, 27, 5); - if(cpu_thread != RT_NULL) - rt_thread_startup(cpu_thread); -} diff --git a/bsp/mb9bf500r/cpuusage.h b/bsp/mb9bf500r/cpuusage.h deleted file mode 100644 index 6a53481f3f..0000000000 --- a/bsp/mb9bf500r/cpuusage.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#ifndef __CPUUSAGE_H__ -#define __CPUUSAGE_H__ - -#define CPU_UPDATE 1 - -void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor); -void rt_hw_cpu_init(void); - -#endif /*__ADC_H__ */ diff --git a/bsp/mb9bf500r/fm3_easy_kit.ewp b/bsp/mb9bf500r/fm3_easy_kit.ewp deleted file mode 100644 index d51d49cf6b..0000000000 --- a/bsp/mb9bf500r/fm3_easy_kit.ewp +++ /dev/null @@ -1,2027 +0,0 @@ - - - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 20 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 26 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 11 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 20 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 26 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 11 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - CMSIS - - $PROJ_DIR$\CMSIS\core_cm3.c - - - $PROJ_DIR$\CMSIS\start_iar.S - - - $PROJ_DIR$\CMSIS\system_mb9bf50x.c - - - - FM3 - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S - - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c - - - - Kernel - - $PROJ_DIR$\..\..\src\clock.c - - - $PROJ_DIR$\..\..\src\device.c - - - $PROJ_DIR$\..\..\src\idle.c - - - $PROJ_DIR$\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\src\irq.c - - - $PROJ_DIR$\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\src\mem.c - - - $PROJ_DIR$\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\src\object.c - - - $PROJ_DIR$\..\..\src\rtm.c - - - $PROJ_DIR$\..\..\src\scheduler.c - - - $PROJ_DIR$\..\..\src\slab.c - - - $PROJ_DIR$\..\..\src\thread.c - - - $PROJ_DIR$\..\..\src\timer.c - - - - Rtgui - - $PROJ_DIR$\..\..\components\rtgui\widgets\about_view.c - - - $PROJ_DIR$\..\..\components\rtgui\common\asc12font.c - - - $PROJ_DIR$\..\..\components\rtgui\common\asc16font.c - - - $PROJ_DIR$\..\..\components\rtgui\common\blit.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\box.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\button.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\checkbox.c - - - $PROJ_DIR$\..\..\components\rtgui\common\color.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\combobox.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\container.c - - - $PROJ_DIR$\..\..\components\rtgui\common\dc.c - - - $PROJ_DIR$\..\..\components\rtgui\common\dc_buffer.c - - - $PROJ_DIR$\..\..\components\rtgui\common\dc_client.c - - - $PROJ_DIR$\..\..\components\rtgui\common\dc_hw.c - - - $PROJ_DIR$\..\..\components\rtgui\server\driver.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\filelist_view.c - - - $PROJ_DIR$\..\..\components\rtgui\common\filerw.c - - - $PROJ_DIR$\..\..\components\rtgui\common\font.c - - - $PROJ_DIR$\..\..\components\rtgui\common\font_bmp.c - - - $PROJ_DIR$\..\..\components\rtgui\common\font_freetype.c - - - $PROJ_DIR$\..\..\components\rtgui\common\font_hz_bmp.c - - - $PROJ_DIR$\..\..\components\rtgui\common\font_hz_file.c - - - $PROJ_DIR$\..\..\components\rtgui\common\framebuffer_driver.c - - - $PROJ_DIR$\..\..\components\rtgui\common\hz12font.c - - - $PROJ_DIR$\..\..\components\rtgui\common\hz16font.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\iconbox.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image_bmp.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image_container.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image_hdc.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image_jpg.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image_png.c - - - $PROJ_DIR$\..\..\components\rtgui\common\image_xpm.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\label.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\list_view.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\listbox.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\listctrl.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\menu.c - - - $PROJ_DIR$\..\..\components\rtgui\server\mouse.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\notebook.c - - - $PROJ_DIR$\..\..\components\rtgui\server\panel.c - - - $PROJ_DIR$\..\..\components\rtgui\common\pixel_driver.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\progressbar.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\radiobox.c - - - $PROJ_DIR$\..\..\components\rtgui\common\region.c - - - $PROJ_DIR$\..\..\components\rtgui\common\rtgui_object.c - - - $PROJ_DIR$\..\..\components\rtgui\common\rtgui_system.c - - - $PROJ_DIR$\..\..\components\rtgui\common\rtgui_theme.c - - - $PROJ_DIR$\..\..\components\rtgui\common\rtgui_xml.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\scrollbar.c - - - $PROJ_DIR$\..\..\components\rtgui\server\server.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\slider.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\staticline.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\textbox.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\textview.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\title.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\toplevel.c - - - $PROJ_DIR$\..\..\components\rtgui\server\topwin.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\view.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\widget.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\window.c - - - $PROJ_DIR$\..\..\components\rtgui\widgets\workbench.c - - - - Startup - - $PROJ_DIR$\adc.c - - - $PROJ_DIR$\application.c - - - $PROJ_DIR$\board.c - - - $PROJ_DIR$\cpuusage.c - - - $PROJ_DIR$\info.c - - - $PROJ_DIR$\key.c - - - $PROJ_DIR$\lcd.c - - - $PROJ_DIR$\led.c - - - $PROJ_DIR$\startup.c - - - - - diff --git a/bsp/mb9bf500r/fm3_easy_kit.eww b/bsp/mb9bf500r/fm3_easy_kit.eww deleted file mode 100644 index bdaf802ebd..0000000000 --- a/bsp/mb9bf500r/fm3_easy_kit.eww +++ /dev/null @@ -1,10 +0,0 @@ - - - - - $WS_DIR$\fm3_easy_kit.ewp - - - - - diff --git a/bsp/mb9bf500r/fm3_rom.ld b/bsp/mb9bf500r/fm3_rom.ld deleted file mode 100644 index 3d0151d23b..0000000000 --- a/bsp/mb9bf500r/fm3_rom.ld +++ /dev/null @@ -1,133 +0,0 @@ -/* Program Entry, set to mark it as "used" and avoid gc */ -MEMORY -{ - CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 - DATA (rw) : ORIGIN = 0x1FFFC000, LENGTH = 0x0000C000 -} -ENTRY(Reset_Handler) -_system_stack_size = 0x200; - -SECTIONS -{ - .text : - { - . = ALIGN(4); - KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); - *(.text) /* remaining code */ - *(.text.*) /* remaining code */ - *(.rodata) /* read-only data (constants) */ - *(.rodata*) - *(.glue_7) - *(.glue_7t) - *(.gnu.linkonce.t*) - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - - . = ALIGN(4); - _etext = .; - } > CODE = 0 - - /* .ARM.exidx is sorted, so has to go in its own output section. */ - __exidx_start = .; - .ARM.exidx : - { - *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; - } > CODE - __exidx_end = .; - - /* .data section which is used for initialized data */ - - .data : AT (_sidata) - { - . = ALIGN(4); - /* This is used by the startup in order to initialize the .data secion */ - _sdata = . ; - - *(.data) - *(.data.*) - *(.gnu.linkonce.d*) - - . = ALIGN(4); - /* This is used by the startup in order to initialize the .data secion */ - _edata = . ; - } >DATA - - .stack : - { - . = . + _system_stack_size; - . = ALIGN(4); - _estack = .; - } >DATA - - __bss_start = .; - .bss : - { - . = ALIGN(4); - /* This is used by the startup in order to initialize the .bss secion */ - _sbss = .; - - *(.bss) - *(.bss.*) - *(COMMON) - - . = ALIGN(4); - /* This is used by the startup in order to initialize the .bss secion */ - _ebss = . ; - } > DATA - __bss_end = .; - - _end = .; - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } -} diff --git a/bsp/mb9bf500r/fm3_rom.sct b/bsp/mb9bf500r/fm3_rom.sct deleted file mode 100644 index f1a09f4900..0000000000 --- a/bsp/mb9bf500r/fm3_rom.sct +++ /dev/null @@ -1,15 +0,0 @@ -; ************************************************************* -; *** Scatter-Loading Description File generated by uVision *** -; ************************************************************* - -LR_IROM1 0x00000000 0x00040000 { ; load region size_region - ER_IROM1 0x00000000 0x00040000 { ; load address = execution address - *.o (RESET, +First) - *(InRoot$$Sections) - .ANY (+RO) - } - RW_IRAM1 0x20000000 0x00004000 { ; RW data - .ANY (+RW +ZI) - } -} - diff --git a/bsp/mb9bf500r/font.h b/bsp/mb9bf500r/font.h deleted file mode 100644 index 92253c59c3..0000000000 --- a/bsp/mb9bf500r/font.h +++ /dev/null @@ -1,970 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ - -#ifndef __FONT_H -#define __FONT_H - -/* Font definition */ -#define ________ 0x00 -#define _______X 0x01 -#define ______X_ 0x02 -#define ______XX 0x03 -#define _____X__ 0x04 -#define _____X_X 0x05 -#define _____XX_ 0x06 -#define _____XXX 0x07 -#define ____X___ 0x08 -#define ____X__X 0x09 -#define ____X_X_ 0x0a -#define ____X_XX 0x0b -#define ____XX__ 0x0c -#define ____XX_X 0x0d -#define ____XXX_ 0x0e -#define ____XXXX 0x0f -#define ___X____ 0x10 -#define ___X___X 0x11 -#define ___X__X_ 0x12 -#define ___X__XX 0x13 -#define ___X_X__ 0x14 -#define ___X_X_X 0x15 -#define ___X_XX_ 0x16 -#define ___X_XXX 0x17 -#define ___XX___ 0x18 -#define ___XX__X 0x19 -#define ___XX_X_ 0x1a -#define ___XX_XX 0x1b -#define ___XXX__ 0x1c -#define ___XXX_X 0x1d -#define ___XXXX_ 0x1e -#define ___XXXXX 0x1f -#define __X_____ 0x20 -#define __X____X 0x21 -#define __X___X_ 0x22 -#define __X___XX 0x23 -#define __X__X__ 0x24 -#define __X__X_X 0x25 -#define __X__XX_ 0x26 -#define __X__XXX 0x27 -#define __X_X___ 0x28 -#define __X_X__X 0x29 -#define __X_X_X_ 0x2a -#define __X_X_XX 0x2b -#define __X_XX__ 0x2c -#define __X_XX_X 0x2d -#define __X_XXX_ 0x2e -#define __X_XXXX 0x2f -#define __XX____ 0x30 -#define __XX___X 0x31 -#define __XX__X_ 0x32 -#define __XX__XX 0x33 -#define __XX_X__ 0x34 -#define __XX_X_X 0x35 -#define __XX_XX_ 0x36 -#define __XX_XXX 0x37 -#define __XXX___ 0x38 -#define __XXX__X 0x39 -#define __XXX_X_ 0x3a -#define __XXX_XX 0x3b -#define __XXXX__ 0x3c -#define __XXXX_X 0x3d -#define __XXXXX_ 0x3e -#define __XXXXXX 0x3f -#define _X______ 0x40 -#define _X_____X 0x41 -#define _X____X_ 0x42 -#define _X____XX 0x43 -#define _X___X__ 0x44 -#define _X___X_X 0x45 -#define _X___XX_ 0x46 -#define _X___XXX 0x47 -#define _X__X___ 0x48 -#define _X__X__X 0x49 -#define _X__X_X_ 0x4a -#define _X__X_XX 0x4b -#define _X__XX__ 0x4c -#define _X__XX_X 0x4d -#define _X__XXX_ 0x4e -#define _X__XXXX 0x4f -#define _X_X____ 0x50 -#define _X_X___X 0x51 -#define _X_X__X_ 0x52 -#define _X_X__XX 0x53 -#define _X_X_X__ 0x54 -#define _X_X_X_X 0x55 -#define _X_X_XX_ 0x56 -#define _X_X_XXX 0x57 -#define _X_XX___ 0x58 -#define _X_XX__X 0x59 -#define _X_XX_X_ 0x5a -#define _X_XX_XX 0x5b -#define _X_XXX__ 0x5c -#define _X_XXX_X 0x5d -#define _X_XXXX_ 0x5e -#define _X_XXXXX 0x5f -#define _XX_____ 0x60 -#define _XX____X 0x61 -#define _XX___X_ 0x62 -#define _XX___XX 0x63 -#define _XX__X__ 0x64 -#define _XX__X_X 0x65 -#define _XX__XX_ 0x66 -#define _XX__XXX 0x67 -#define _XX_X___ 0x68 -#define _XX_X__X 0x69 -#define _XX_X_X_ 0x6a -#define _XX_X_XX 0x6b -#define _XX_XX__ 0x6c -#define _XX_XX_X 0x6d -#define _XX_XXX_ 0x6e -#define _XX_XXXX 0x6f -#define _XXX____ 0x70 -#define _XXX___X 0x71 -#define _XXX__X_ 0x72 -#define _XXX__XX 0x73 -#define _XXX_X__ 0x74 -#define _XXX_X_X 0x75 -#define _XXX_XX_ 0x76 -#define _XXX_XXX 0x77 -#define _XXXX___ 0x78 -#define _XXXX__X 0x79 -#define _XXXX_X_ 0x7a -#define _XXXX_XX 0x7b -#define _XXXXX__ 0x7c -#define _XXXXX_X 0x7d -#define _XXXXXX_ 0x7e -#define _XXXXXXX 0x7f -#define X_______ 0x80 -#define X______X 0x81 -#define X_____X_ 0x82 -#define X_____XX 0x83 -#define X____X__ 0x84 -#define X____X_X 0x85 -#define X____XX_ 0x86 -#define X____XXX 0x87 -#define X___X___ 0x88 -#define X___X__X 0x89 -#define X___X_X_ 0x8a -#define X___X_XX 0x8b -#define X___XX__ 0x8c -#define X___XX_X 0x8d -#define X___XXX_ 0x8e -#define X___XXXX 0x8f -#define X__X____ 0x90 -#define X__X___X 0x91 -#define X__X__X_ 0x92 -#define X__X__XX 0x93 -#define X__X_X__ 0x94 -#define X__X_X_X 0x95 -#define X__X_XX_ 0x96 -#define X__X_XXX 0x97 -#define X__XX___ 0x98 -#define X__XX__X 0x99 -#define X__XX_X_ 0x9a -#define X__XX_XX 0x9b -#define X__XXX__ 0x9c -#define X__XXX_X 0x9d -#define X__XXXX_ 0x9e -#define X__XXXXX 0x9f -#define X_X_____ 0xa0 -#define X_X____X 0xa1 -#define X_X___X_ 0xa2 -#define X_X___XX 0xa3 -#define X_X__X__ 0xa4 -#define X_X__X_X 0xa5 -#define X_X__XX_ 0xa6 -#define X_X__XXX 0xa7 -#define X_X_X___ 0xa8 -#define X_X_X__X 0xa9 -#define X_X_X_X_ 0xaa -#define X_X_X_XX 0xab -#define X_X_XX__ 0xac -#define X_X_XX_X 0xad -#define X_X_XXX_ 0xae -#define X_X_XXXX 0xaf -#define X_XX____ 0xb0 -#define X_XX___X 0xb1 -#define X_XX__X_ 0xb2 -#define X_XX__XX 0xb3 -#define X_XX_X__ 0xb4 -#define X_XX_X_X 0xb5 -#define X_XX_XX_ 0xb6 -#define X_XX_XXX 0xb7 -#define X_XXX___ 0xb8 -#define X_XXX__X 0xb9 -#define X_XXX_X_ 0xba -#define X_XXX_XX 0xbb -#define X_XXXX__ 0xbc -#define X_XXXX_X 0xbd -#define X_XXXXX_ 0xbe -#define X_XXXXXX 0xbf -#define XX______ 0xc0 -#define XX_____X 0xc1 -#define XX____X_ 0xc2 -#define XX____XX 0xc3 -#define XX___X__ 0xc4 -#define XX___X_X 0xc5 -#define XX___XX_ 0xc6 -#define XX___XXX 0xc7 -#define XX__X___ 0xc8 -#define XX__X__X 0xc9 -#define XX__X_X_ 0xca -#define XX__X_XX 0xcb -#define XX__XX__ 0xcc -#define XX__XX_X 0xcd -#define XX__XXX_ 0xce -#define XX__XXXX 0xcf -#define XX_X____ 0xd0 -#define XX_X___X 0xd1 -#define XX_X__X_ 0xd2 -#define XX_X__XX 0xd3 -#define XX_X_X__ 0xd4 -#define XX_X_X_X 0xd5 -#define XX_X_XX_ 0xd6 -#define XX_X_XXX 0xd7 -#define XX_XX___ 0xd8 -#define XX_XX__X 0xd9 -#define XX_XX_X_ 0xda -#define XX_XX_XX 0xdb -#define XX_XXX__ 0xdc -#define XX_XXX_X 0xdd -#define XX_XXXX_ 0xde -#define XX_XXXXX 0xdf -#define XXX_____ 0xe0 -#define XXX____X 0xe1 -#define XXX___X_ 0xe2 -#define XXX___XX 0xe3 -#define XXX__X__ 0xe4 -#define XXX__X_X 0xe5 -#define XXX__XX_ 0xe6 -#define XXX__XXX 0xe7 -#define XXX_X___ 0xe8 -#define XXX_X__X 0xe9 -#define XXX_X_X_ 0xea -#define XXX_X_XX 0xeb -#define XXX_XX__ 0xec -#define XXX_XX_X 0xed -#define XXX_XXX_ 0xee -#define XXX_XXXX 0xef -#define XXXX____ 0xf0 -#define XXXX___X 0xf1 -#define XXXX__X_ 0xf2 -#define XXXX__XX 0xf3 -#define XXXX_X__ 0xf4 -#define XXXX_X_X 0xf5 -#define XXXX_XX_ 0xf6 -#define XXXX_XXX 0xf7 -#define XXXXX___ 0xf8 -#define XXXXX__X 0xf9 -#define XXXXX_X_ 0xfa -#define XXXXX_XX 0xfb -#define XXXXXX__ 0xfc -#define XXXXXX_X 0xfd -#define XXXXXXX_ 0xfe -#define XXXXXXXX 0xff - - - - -const unsigned char FONTTYPE8_8[][8] = { -/* blank */ - { - ________, - ________, - ________, - ________, - ________, - ________, - ________, - ________} - -/* 0 */ - ,{ - __XXX___, - _XX_XX__, - XX___XX_, - XX___XX_, - XX___XX_, - _XX_XX__, - __XXX___, - ________} - -/* 1 */ - ,{ - ___XX___, - __XXX___, - ___XX___, - ___XX___, - ___XX___, - ___XX___, - _XXXXXX_, - ________} - -/* 2 */ - ,{ - _XXXXX__, - XX___XX_, - _____XX_, - ___XXX__, - __XX____, - _XX__XX_, - XXXXXXX_, - ________} - -/* 3 */ - ,{ - _XXXXX__, - XX___XX_, - _____XX_, - __XXXX__, - _____XX_, - XX___XX_, - _XXXXX__, - ________} - -/* 4 */ - ,{ - ___XXX__, - __XXXX__, - _XX_XX__, - XX__XX__, - XXXXXXX_, - ____XX__, - ___XXXX_, - ________} - -/* 5 */ - ,{ - XXXXXXX_, - XX______, - XX______, - XXXXXX__, - _____XX_, - XX___XX_, - _XXXXX__, - ________} - -/* 6 */ - ,{ - __XXX___, - _XX_____, - XX______, - XXXXXX__, - XX___XX_, - XX___XX_, - _XXXXX__, - ________} - -/* 7 */ - ,{ - XXXXXXX_, - XX___XX_, - ____XX__, - ___XX___, - __XX____, - __XX____, - __XX____, - ________} - -/* 8 */ - ,{ - _XXXXX__, - XX___XX_, - XX___XX_, - _XXXXX__, - XX___XX_, - XX___XX_, - _XXXXX__, - ________} - -/* 9 */ - ,{ - _XXXXX__, - XX___XX_, - XX___XX_, - _XXXXXX_, - _____XX_, - ____XX__, - _XXXX___, - ________} - -/* A */ - ,{ - __XXX___, - _XX_XX__, - XX___XX_, - XXXXXXX_, - XX___XX_, - XX___XX_, - XX___XX_, - ________} - -/* B */ - ,{ - XXXXXX__, - _XX__XX_, - _XX__XX_, - _XXXXX__, - _XX__XX_, - _XX__XX_, - XXXXXX__, - ________} - -/* C */ - ,{ - __XXXX__, - _XX__XX_, - XX______, - XX______, - XX______, - _XX__XX_, - __XXXX__, - ________} - -/* D */ - ,{ - XXXXX___, - _XX_XX__, - _XX__XX_, - _XX__XX_, - _XX__XX_, - _XX_XX__, - XXXXX___, - ________} - -/* E */ - ,{ - XXXXXXX_, - _XX___X_, - _XX_X___, - _XXXX___, - _XX_X___, - _XX___X_, - XXXXXXX_, - ________} - -/* F */ - ,{ - XXXXXXX_, - _XX___X_, - _XX_X___, - _XXXX___, - _XX_X___, - _XX_____, - XXXX____, - ________} - -/* G */ - ,{ - __XXXX__, - _XX__XX_, - XX______, - XX______, - XX__XXX_, - _XX__XX_, - __XXX_X_, - ________} - -/* H */ - ,{ - XX___XX_, - XX___XX_, - XX___XX_, - XXXXXXX_, - XX___XX_, - XX___XX_, - XX___XX_, - ________} - -/* I */ - ,{ - __XXXX__, - ___XX___, - ___XX___, - ___XX___, - ___XX___, - ___XX___, - __XXXX__, - ________} - -/* J */ - ,{ - ___XXXX_, - ____XX__, - ____XX__, - ____XX__, - XX__XX__, - XX__XX__, - _XXXX___, - ________} - -/* K */ - ,{ - XXX__XX_, - _XX__XX_, - _XX_XX__, - _XXXX___, - _XX_XX__, - _XX__XX_, - XXX__XX_, - ________} - -/* L */ - ,{ - XXXX____, - _XX_____, - _XX_____, - _XX_____, - _XX___X_, - _XX__XX_, - XXXXXXX_, - ________} - -/* M */ - ,{ - XX___XX_, - XXX_XXX_, - XXXXXXX_, - XXXXXXX_, - XX_X_XX_, - XX___XX_, - XX___XX_, - ________} - -/* N */ - ,{ - XX___XX_, - XXX__XX_, - XXXX_XX_, - XX_XXXX_, - XX__XXX_, - XX___XX_, - XX___XX_, - ________} - -/* O */ - ,{ - _XXXXX__, - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - _XXXXX__, - ________} - -/* P */ - ,{ - XXXXXX__, - _XX__XX_, - _XX__XX_, - _XXXXX__, - _XX_____, - _XX_____, - XXXX____, - ________} - -/* Q */ - ,{ - _XXXXX__, - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - XX__XXX_, - _XXXXX__, - ____XXX_} - -/* R */ - ,{ - XXXXXX__, - _XX__XX_, - _XX__XX_, - _XXXXX__, - _XX_XX__, - _XX__XX_, - XXX__XX_, - ________} - -/* S */ - ,{ - __XXXX__, - _XX__XX_, - __XX____, - ___XX___, - ____XX__, - _XX__XX_, - __XXXX__, - ________} - -/* T */ - ,{ - _XXXXXX_, - _XXXXXX_, - _X_XX_X_, - ___XX___, - ___XX___, - ___XX___, - __XXXX__, - ________} - -/* U */ - ,{ - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - _XXXXX__, - ________} - -/* V */ - ,{ - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - XX___XX_, - _XX_XX__, - __XXX___, - ________} - -/* W */ - ,{ - XX___XX_, - XX___XX_, - XX___XX_, - XX_X_XX_, - XX_X_XX_, - XXXXXXX_, - _XX_XX__, - ________} - -/* X */ - ,{ - XX___XX_, - XX___XX_, - _XX_XX__, - __XXX___, - _XX_XX__, - XX___XX_, - XX___XX_, - ________} - -/* Y */ - ,{ - _XX__XX_, - _XX__XX_, - _XX__XX_, - __XXXX__, - ___XX___, - ___XX___, - __XXXX__, - ________} - -/* Z */ - ,{ - XXXXXXX_, - XX___XX_, - X___XX__, - ___XX___, - __XX__X_, - _XX__XX_, - XXXXXXX_, - ________} - -/* a */ - ,{ - ________, - ________, - _XXXX___, - ____XX__, - _XXXXX__, - XX__XX__, - _XXX_XX_, - ________} - -/* b */ - ,{ - XXX_____, - _XX_____, - _XXXXX__, - _XX__XX_, - _XX__XX_, - _XX__XX_, - XX_XXX__, - ________} - -/* c */ - ,{ - ________, - ________, - _XXXXX__, - XX___XX_, - XX______, - XX___XX_, - _XXXXX__, - ________} - -/* d */ - ,{ - ___XXX__, - ____XX__, - _XXXXX__, - XX__XX__, - XX__XX__, - XX__XX__, - _XXX_XX_, - ________} - -/* e */ - ,{ - ________, - ________, - _XXXXX__, - XX___XX_, - XXXXXXX_, - XX______, - _XXXXX__, - ________} - -/* f */ - ,{ - __XXXX__, - _XX__XX_, - _XX_____, - XXXXX___, - _XX_____, - _XX_____, - XXXX____, - ________} - -/* g */ - ,{ - ________, - ________, - _XXX_XX_, - XX__XX__, - XX__XX__, - _XXXXX__, - ____XX__, - XXXXX___} - -/* h */ - ,{ - XXX_____, - _XX_____, - _XX_XX__, - _XXX_XX_, - _XX__XX_, - _XX__XX_, - XXX__XX_, - ________} - -/* i */ - ,{ - ___XX___, - ________, - __XXX___, - ___XX___, - ___XX___, - ___XX___, - __XXXX__, - ________} - -/* j */ - ,{ - _____XX_, - ________, - _____XX_, - _____XX_, - _____XX_, - _XX__XX_, - _XX__XX_, - __XXXX__} - -/* k */ - ,{ - XXX_____, - _XX_____, - _XX__XX_, - _XX_XX__, - _XXXX___, - _XX_XX__, - XXX__XX_, - ________} - -/* l */ - ,{ - __XXX___, - ___XX___, - ___XX___, - ___XX___, - ___XX___, - ___XX___, - __XXXX__, - ________} - -/* m */ - ,{ - ________, - ________, - XXX_XX__, - XXXXXXX_, - XX_X_XX_, - XX_X_XX_, - XX_X_XX_, - ________} - -/* n */ - ,{ - ________, - ________, - XX_XXX__, - _XX__XX_, - _XX__XX_, - _XX__XX_, - _XX__XX_, - ________} - -/* o */ - ,{ - ________, - ________, - _XXXXX__, - XX___XX_, - XX___XX_, - XX___XX_, - _XXXXX__, - ________} - -/* p */ - ,{ - ________, - ________, - XX_XXX__, - _XX__XX_, - _XX__XX_, - _XXXXX__, - _XX_____, - XXXX____} - -/* q */ - ,{ - ________, - ________, - _XXX_XX_, - XX__XX__, - XX__XX__, - _XXXXX__, - ____XX__, - ___XXXX_} - -/* r */ - ,{ - ________, - ________, - XX_XXX__, - _XXX_XX_, - _XX_____, - _XX_____, - XXXX____, - ________} - -/* s */ - ,{ - ________, - ________, - _XXXXXX_, - XX______, - _XXXXX__, - _____XX_, - XXXXXX__, - ________} - -/* t */ - ,{ - __XX____, - __XX____, - XXXXXX__, - __XX____, - __XX____, - __XX_XX_, - ___XXX__, - ________} - -/* u */ - ,{ - ________, - ________, - XX__XX__, - XX__XX__, - XX__XX__, - XX__XX__, - _XXX_XX_, - ________} - -/* v */ - ,{ - ________, - ________, - XX___XX_, - XX___XX_, - XX___XX_, - _XX_XX__, - __XXX___, - ________} - -/* w */ - ,{ - ________, - ________, - XX___XX_, - XX_X_XX_, - XX_X_XX_, - XXXXXXX_, - _XX_XX__, - ________} - -/* x */ - ,{ - ________, - ________, - XX___XX_, - _XX_XX__, - __XXX___, - _XX_XX__, - XX___XX_, - ________} - -/* y */ - ,{ - ________, - ________, - XX___XX_, - XX___XX_, - XX___XX_, - _XXXXXX_, - _____XX_, - XXXXXX__} - -/* z */ - ,{ - ________, - ________, - _XXXXXX_, - _X__XX__, - ___XX___, - __XX__X_, - _XXXXXX_, - ________} - -}; - -#endif /* __FONT_H */ diff --git a/bsp/mb9bf500r/info.c b/bsp/mb9bf500r/info.c deleted file mode 100644 index fcf514f1b0..0000000000 --- a/bsp/mb9bf500r/info.c +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ - -#include - -#ifdef RT_USING_RTGUI -#include -#include -#include - -#include -#include - -#include "adc.h" -#include "cpuusage.h" - -extern rt_uint16_t adc_value; -static rt_uint8_t index = 0 ; -static rt_bool_t view_event_handler(struct rtgui_widget* widget, struct rtgui_event* event) -{ - if (event->type == RTGUI_EVENT_PAINT) - { - struct rtgui_dc* dc; - struct rtgui_rect rect; - - dc = rtgui_dc_begin_drawing(widget); - if (dc == RT_NULL) - return RT_FALSE; - rtgui_widget_get_rect(widget, &rect); - - rtgui_dc_fill_rect(dc, &rect); - rect.x2 -= 1; rect.y2 -= 1; - rtgui_dc_draw_hline(dc, rect.x1, rect.x2, rect.y1); - rtgui_dc_draw_vline(dc, rect.x1, rect.y1, rect.y2); - - rtgui_dc_draw_hline(dc, rect.x1, rect.x2, rect.y2); - rtgui_dc_draw_vline(dc, rect.x2, rect.y1, rect.y2 + 1); - - /* shrink border */ - rtgui_rect_inflate(&rect, -1); - - /* draw text */ - rtgui_widget_get_rect(widget, &rect); - rect.y1 += 25; - rtgui_dc_draw_text(dc, " FM3 Easy Kit Demo", &rect); - rect.y1 += 10; - rtgui_dc_draw_text(dc, " rt-thread / RTGUI", &rect); - rtgui_dc_end_drawing(dc, RT_TRUE); - - return RT_FALSE; - } - else if (event->type == RTGUI_EVENT_KBD) - { - struct rtgui_dc* dc; - struct rtgui_rect rect; - struct rtgui_event_kbd* ekbd = (struct rtgui_event_kbd*)event; - if (ekbd->type == RTGUI_KEYDOWN) - { - char key_str[16]; - switch (ekbd->key) - { - case RTGUIK_LEFT: - rt_sprintf(key_str, "%s", "L"); - break; - case RTGUIK_RIGHT: - rt_sprintf(key_str, "%s", "R"); - break; - case RTGUIK_DOWN: - rt_sprintf(key_str, "%s", "D"); - break; - case RTGUIK_UP: - rt_sprintf(key_str, "%s", "U"); - break; - default: - rt_sprintf(key_str, "%s", "S"); - break; - } - dc = rtgui_dc_begin_drawing(widget); - if (dc == RT_NULL) - return RT_FALSE; - rect.x1 = 118; - rect.y1 = 1; - rect.x2 = 127; - rect.y2 = 10; - rtgui_dc_fill_rect(dc, &rect); - rtgui_dc_draw_text(dc, key_str, &rect); - rtgui_dc_end_drawing(dc, RT_TRUE); - } - else if (ekbd->type == RTGUI_KEYUP) - { - dc = rtgui_dc_begin_drawing(widget); - if (dc == RT_NULL) - return RT_FALSE; - rect.x1 = 118; - rect.y1 = 1; - rect.x2 = 127; - rect.y2 = 10; - rtgui_dc_fill_rect(dc, &rect); - //rtgui_dc_draw_text(dc, key_str, &rect); - rtgui_dc_end_drawing(dc, RT_TRUE); - } - } - else if (event->type == RTGUI_EVENT_COMMAND) - { - char str[16]; - struct rtgui_dc* dc; - struct rtgui_rect rect; - struct rtgui_event_command* ecmd; - rt_uint8_t major,minor; - dc = rtgui_dc_begin_drawing(widget); - if (dc == RT_NULL) - return RT_FALSE; - - ecmd = (struct rtgui_event_command*)event; - switch (ecmd->command_id) - { - case ADC_UPDATE: - rect.x1 = 1; - rect.y1 = 1; - rect.x2 = 117; - rect.y2 = 10; - rtgui_dc_fill_rect(dc, &rect); - rt_sprintf(str, "ADC = %d mv", adc_value); - rtgui_dc_draw_text(dc, str, &rect); - break; - case CPU_UPDATE: - cpu_usage_get(&major, &minor); - rect.x1 = 1; - rect.y1 = 12; - rect.x2 = 127; - rect.y2 = 22; - rtgui_dc_fill_rect(dc, &rect); - rt_sprintf(str, "CPU : %d.%d%", major, minor); - rtgui_dc_draw_text(dc, str, &rect); - - rect.y1 = 23; - rect.y2 = 63; - index++; - if (index == 127) - { - index = 1; - rtgui_dc_fill_rect(dc, &rect); - } - if (major>40) - rtgui_dc_draw_vline(dc, index, rect.y1, rect.y2); - else - rtgui_dc_draw_vline(dc, index, rect.y2-major, rect.y2); - break; - } - rtgui_dc_end_drawing(dc, RT_TRUE); - } - - return rtgui_view_event_handler(widget, event); -} - -static void info_entry(void* parameter) -{ - rt_mq_t mq; - struct rtgui_view* view; - struct rtgui_workbench* workbench; - - mq = rt_mq_create("qInfo", 256, 4, RT_IPC_FLAG_FIFO); - rtgui_thread_register(rt_thread_self(), mq); - - workbench = rtgui_workbench_create("info", "workbench"); - if(workbench == RT_NULL) - return; - - view = rtgui_view_create("view"); - RTGUI_WIDGET_BACKGROUND(RTGUI_WIDGET(view)) = white; - RTGUI_WIDGET_FOREGROUND(RTGUI_WIDGET(view)) = black; - rtgui_widget_set_event_handler(RTGUI_WIDGET(view), view_event_handler); - - rtgui_workbench_add_view(workbench, view); - /* this view can be focused */ - RTGUI_WIDGET(view)->flag |= RTGUI_WIDGET_FLAG_FOCUSABLE; - /* set widget focus */ - rtgui_widget_focus(RTGUI_WIDGET(view)); - - rtgui_view_show(view, RT_FALSE); - - rtgui_workbench_event_loop(workbench); - - rtgui_thread_deregister(rt_thread_self()); - rt_mq_delete(mq); -} - -rt_thread_t info_tid; -void info_init() -{ - info_tid = rt_thread_create("info", - info_entry, RT_NULL, - 2048, 25, 10); - - if (info_tid != RT_NULL) rt_thread_startup(info_tid); -} - -void rtgui_startup() -{ - rtgui_rect_t rect; - - rtgui_system_server_init(); - - /* register dock panel */ - rect.x1 = 0; - rect.y1 = 0; - rect.x2 = 128; - rect.y2 = 64; - rtgui_panel_register("info", &rect); - rtgui_panel_set_default_focused("info"); - - /*init info workbench */ - info_init(); -} - -#endif diff --git a/bsp/mb9bf500r/key.c b/bsp/mb9bf500r/key.c deleted file mode 100644 index 1886e72974..0000000000 --- a/bsp/mb9bf500r/key.c +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#include -#include "key.h" -#include "lcd.h" - -#ifdef RT_USING_RTGUI -#include -#include -#endif - -static void key_io_init(void) -{ - /*Select CPIO function*/ - KEY_PFR &= ~KEY_MASK; - /*Set CPIO Pull-Up function*/ - KEY_PCR |= KEY_MASK; - /*Make button pins inputs*/ - KEY_DDR &= ~KEY_MASK; -} - -static void key_thread_entry(void *parameter) -{ -#ifdef RT_USING_RTGUI - rt_time_t next_delay; - rt_uint8_t i; - - struct rtgui_event_kbd kbd_event; - - key_io_init(); - - /* init keyboard event */ - RTGUI_EVENT_KBD_INIT(&kbd_event); - kbd_event.mod = RTGUI_KMOD_NONE; - kbd_event.unicode = 0; - - while (1) - { - next_delay = RT_TICK_PER_SECOND/10; - kbd_event.key = RTGUIK_UNKNOWN; - kbd_event.type = RTGUI_KEYDOWN; - - if (KEY_ENTER_GETVALUE() == 0 ) - { - for(i=0; ; i++) - { - rt_thread_delay( next_delay ); - if (KEY_ENTER_GETVALUE() == 0) - { - if (i>=4) - { - /* HOME key */ - kbd_event.key = RTGUIK_HOME; - next_delay = RT_TICK_PER_SECOND/5; - break; - } - } - else - { - kbd_event.key = RTGUIK_RETURN; - break; - } - } - } - - if (KEY_DOWN_GETVALUE() == 0) - { - kbd_event.key = RTGUIK_DOWN; - } - - if (KEY_UP_GETVALUE() == 0) - { - kbd_event.key = RTGUIK_UP; - } - - if (KEY_RIGHT_GETVALUE() == 0) - { - kbd_event.key = RTGUIK_RIGHT; - } - - if (KEY_LEFT_GETVALUE() == 0) - { - kbd_event.key = RTGUIK_LEFT; - } - - if (kbd_event.key != RTGUIK_UNKNOWN) - { - /* post down event */ - rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event)); - } - else - { - kbd_event.type = RTGUI_KEYUP; - rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event)); - } - /* wait next key press */ - rt_thread_delay(next_delay); - } -#else - extern struct rt_messagequeue mq; - rt_time_t next_delay; - struct lcd_msg msg; - msg.type = KEY_MSG; - - key_io_init(); - - while (1) - { - msg.key = NO_KEY; - - next_delay = RT_TICK_PER_SECOND/10; - - if (KEY_ENTER_GETVALUE() == 0 ) - { - msg.key = KEY_ENTER; - } - - if (KEY_DOWN_GETVALUE() == 0) - { - msg.key = KEY_DOWN; - } - - if (KEY_UP_GETVALUE() == 0) - { - msg.key = KEY_UP; - } - - if (KEY_RIGHT_GETVALUE() == 0) - { - msg.key = KEY_RIGHT; - } - - if (KEY_LEFT_GETVALUE() == 0) - { - msg.key = KEY_LEFT; - } - - rt_mq_send(&mq, &msg, sizeof(msg)); - - /* wait next key press */ - rt_thread_delay(next_delay); - } -#endif -} - -static rt_thread_t key_thread; -void rt_hw_key_init(void) -{ - key_thread = rt_thread_create("key", key_thread_entry, RT_NULL, 384, 28, 5); - if (key_thread != RT_NULL) - rt_thread_startup(key_thread); -} diff --git a/bsp/mb9bf500r/key.h b/bsp/mb9bf500r/key.h deleted file mode 100644 index 45c044c7c0..0000000000 --- a/bsp/mb9bf500r/key.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-06 lgnq - */ -#ifndef __KEY_H__ -#define __KEY_H__ - -#include "mb9bf506r.h" - -#define KEY_DOWN (1<<0) -#define KEY_ENTER (1<<1) -#define KEY_LEFT (1<<2) -#define KEY_RIGHT (1<<3) -#define KEY_UP (1<<4) -#define NO_KEY (1<<5) - -#define KEY_MASK (KEY_DOWN | KEY_ENTER | KEY_LEFT | KEY_RIGHT | KEY_UP) -#define KEY_PFR (FM3_GPIO->PFR7) -#define KEY_PCR (FM3_GPIO->PCR7) -#define KEY_PDIR (FM3_GPIO->PDIR7) -#define KEY_DDR (FM3_GPIO->DDR7) - -#define RT_DEVICE_CTRL_KEY_SCAN 0 -#define RT_DEVICE_CTRL_KEY_STATUS 1 - -#define SET_BIT(byte, bit) ((byte) |= (1<<(bit))) -#define CLR_BIT(byte, bit) ((byte) &= ~(1<<(bit))) -#define TST_BIT(byte, bit) (((byte) & (1<<(bit)))?1:0) - -#define KEY_ENTER_GETVALUE() TST_BIT(KEY_PDIR, 1) -#define KEY_DOWN_GETVALUE() TST_BIT(KEY_PDIR, 0) -#define KEY_UP_GETVALUE() TST_BIT(KEY_PDIR, 4) -#define KEY_RIGHT_GETVALUE() TST_BIT(KEY_PDIR, 3) -#define KEY_LEFT_GETVALUE() TST_BIT(KEY_PDIR, 2) - -void rt_hw_key_init(void); - -#endif diff --git a/bsp/mb9bf500r/lcd.c b/bsp/mb9bf500r/lcd.c deleted file mode 100644 index 8b61abf2e0..0000000000 --- a/bsp/mb9bf500r/lcd.c +++ /dev/null @@ -1,477 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-05 lgnq ZYMG12864C3 LCD driver - */ - -#include -#include "lcd.h" -#include "font.h" - -static struct rt_device_graphic_info _lcd_info; -static rt_uint8_t gui_disp_buf[GUI_LCM_YMAX/8][GUI_LCM_XMAX]; -const unsigned char BIT_MASK[8] = {0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01}; -/* simple font: ' ', '0'~'9','a'~'z','A'~'Z' */ -extern const unsigned char FONTTYPE8_8[][8]; - -rt_uint32_t x; -rt_uint32_t y; - -void power_delay(void) -{ - rt_uint32_t i = 0x4ffff; - while(i--) - ; -} - -void delay(void) -{ - rt_uint8_t i = 0x8; - while(i--) - ; -} - -void reset_delay(void) -{ - rt_uint8_t i = 0xff; - while(i--) - ; -} - -void lcd_write_cmd(unsigned char command) -{ - rt_uint8_t i; - - LCD_PS_LOW(); - LCD_CS_LOW(); - LCD_CD_LOW(); - for (i=0; i<8; i++) - { - if (command & (0x80 >> i)) - LCD_DATA_HIGH(); - else - LCD_DATA_LOW(); - - LCD_CLK_LOW(); - delay(); - LCD_CLK_HIGH(); - delay(); - } - LCD_CS_HIGH(); -} - -void lcd_write_data(unsigned char data) -{ - rt_uint8_t i; - - LCD_PS_LOW(); - LCD_CS_LOW(); - LCD_CD_HIGH(); - for (i=0; i<8; i++) - { - if (data & (0x80 >> i)) - LCD_DATA_HIGH(); - else - LCD_DATA_LOW(); - - LCD_CLK_LOW(); - delay(); - LCD_CLK_HIGH(); - delay(); - } - LCD_CS_HIGH(); -} - -#ifdef RT_USING_RTGUI -#include -#include - -static void rt_hw_lcd_update(struct rt_device_rect_info *rect_info) -{ - rt_uint8_t i,j = GUI_LCM_XMAX; - rt_uint8_t* p = (rt_uint8_t*)gui_disp_buf; - - for (i=0; i> 4; - lcd_write_cmd(SET_PAGE_ADDR_0 | page); - lcd_write_cmd(SET_COLH_ADDR_0 | colh); - lcd_write_cmd(SET_COLL_ADDR_0 | coll); - lcd_write_data(gui_disp_buf[page][i]); - } -} - -const struct rtgui_graphic_driver_ops _lcd_ops = -{ - rt_hw_lcd_set_pixel, - rt_hw_lcd_get_pixel, - rt_hw_lcd_draw_hline, - rt_hw_lcd_draw_vline, - rt_hw_lcd_draw_raw_hline -}; -#endif - -void lcd_io_init() -{ - /* Release the analog input function*/ - FM3_GPIO->ADE =0x03; - /*Select CPIO function*/ - LCD_CS_PFR &= ~LCD_CS; - /*Make pin output*/ - LCD_CS_DDR |= LCD_CS; - /*Select CPIO function*/ - LCD_CD_PFR &= ~LCD_CD; - /*Make pin output*/ - LCD_CD_DDR |= LCD_CD; - /*Select CPIO function*/ - LCD_PS_PFR &= ~LCD_PS; - /*Make pin output*/ - LCD_PS_DDR |= LCD_PS; - /*Select CPIO function*/ - LCD_CLK_PFR &= ~LCD_CLK; - /*Make pin output*/ - LCD_CLK_DDR |= LCD_CLK; - /*Select CPIO function*/ - LCD_DATA_PFR &= ~LCD_DATA; - /*Make pin output*/ - LCD_DATA_DDR |= LCD_DATA; -} - -/* RT-Thread Device Interface */ -static rt_err_t rt_lcd_init (rt_device_t dev) -{ - lcd_io_init(); - - power_delay(); - lcd_write_cmd(DISPLAY_OFF); - reset_delay(); - // Resetting circuit - lcd_write_cmd(RESET_LCD); - reset_delay(); - // LCD bias setting - lcd_write_cmd(SET_LCD_BIAS_9); - reset_delay(); - // ADC selection: display from left to right - lcd_write_cmd(SET_ADC_NORMAL); - reset_delay(); - // Common output state selection: display from up to down - lcd_write_cmd(COM_SCAN_DIR_REVERSE); - reset_delay(); - - lcd_write_cmd(POWER_BOOSTER_ON); - power_delay(); // 50ms requried - lcd_write_cmd(POWER_REGULATOR_ON); - power_delay(); // 50ms - lcd_write_cmd(POWER_FOLLOWER_ON); - power_delay(); // 50ms - - // Setting the built-in resistance radio for regulation of the V0 voltage - // Electronic volume control - // Power control setting - lcd_write_cmd(SET_ELECVOL_REG|0x05); - delay(); - lcd_write_cmd(SET_ELECVOL_MODE); - delay(); - lcd_write_cmd(SET_ELECVOL_REG); - delay(); - // LCD_Clear(); - delay(); - lcd_write_cmd(SET_PAGE_ADDR_0); - delay(); - lcd_write_cmd(SET_COLH_ADDR_0); - delay(); - lcd_write_cmd(SET_COLL_ADDR_0); - delay(); - lcd_write_cmd(DISPLAY_ON); - delay(); - - lcd_write_cmd(DISPLAY_ALL_ON); - delay(); - lcd_write_cmd(DISPLAY_OFF); - delay(); - lcd_write_cmd(DISPLAY_ON); - delay(); - lcd_write_cmd(DISPLAY_ALL_NORMAL); - delay(); - - return RT_EOK; -} - -/******************************************************************************* -* Function Name : LCD_FillAll -* Description : Fill the whole LCD. -* Input : None -* Output : None -* Return : None -*******************************************************************************/ -void LCD_FillAll(unsigned char* buffer) -{ - unsigned char i,j = GUI_LCM_XMAX; - unsigned char* p = buffer; - - for (i=0; i> 4; - - lcd_write_cmd(SET_PAGE_ADDR_0 | page); // page no. - lcd_write_cmd(SET_COLH_ADDR_0 | colh); // fixed col first addr - lcd_write_cmd(SET_COLL_ADDR_0 | coll); - lcd_write_data(gui_disp_buf[page][x]); -} - -/**************************************************************************** -* Function Name : LCD_PutChar -* Description : output a char to screen - (the char only can be ' ','0'~'9','A'~'Z','a'~'z') -* Input : x X-coordinate - y Y-coordinate - ch character -* Output : None -* Return : 1 Success - 0 Fail -****************************************************************************/ -unsigned char LCD_PutChar(unsigned long x, unsigned long y, unsigned char ch) -{ - unsigned char data; - unsigned char i, j; - - if( x >=(GUI_LCM_XMAX-8) ) return(0); - if( y >=(GUI_LCM_YMAX-8) ) return(0); - - if(ch == 0x20) - ch -= 0x20; - else if((ch >= 0x30)&&(ch <= 0x39)) - ch -= 0x2f; - else if((ch >= 0x41)&&(ch <= 0x5a)) - ch -= 0x36; - else if((ch >= 0x61)&&(ch <= 0x7a)) - ch -= 0x3C; - else - return(0); - - for(i = 0; i < 8; i++) - { - data = FONTTYPE8_8[ch][i]; - - for(j = 0; j < 8; j++) - { - if( (data&BIT_MASK[j]) == 0) - gui_disp_buf[y / 8][x] &= (~(0x01 << ( y % 8))); - else - gui_disp_buf[y / 8][x] |= (0x01 <<( y % 8)); - LCD_UpdatePoint(x, y); - x ++; - } - x -= 8; - y++; - } - - return(1); -} - -/**************************************************************************** -* Function Name : LCD_PutString -* Description : output string to screen -* Input : x X-coordinate - y Y-coordinate - str pointer to string -* Output : None -* Return : None -****************************************************************************/ -void LCD_PutString(unsigned long x, unsigned long y, char *str) -{ - while(1) - { - if( (*str)=='\0' ) break; - if( LCD_PutChar(x, y, *str++) == 0 ) break; - x += 6; - } -} - -static rt_err_t rt_lcd_control (rt_device_t dev, int cmd, void *args) -{ - switch (cmd) - { -#ifdef RT_USING_RTGUI - case RTGRAPHIC_CTRL_RECT_UPDATE: - rt_hw_lcd_update(args); - break; - case RTGRAPHIC_CTRL_POWERON: - break; - case RTGRAPHIC_CTRL_POWEROFF: - break; - case RTGRAPHIC_CTRL_GET_INFO: - rt_memcpy(args, &_lcd_info, sizeof(_lcd_info)); - break; - case RTGRAPHIC_CTRL_SET_MODE: - break; -#else - case RT_DEVICE_CTRL_LCD_DISPLAY_ON: - lcd_write_cmd(DISPLAY_ON); - break; - case RT_DEVICE_CTRL_LCD_DISPLAY_OFF: - lcd_write_cmd(DISPLAY_OFF); - break; - case RT_DEVICE_CTRL_LCD_PUT_STRING: - LCD_PutString(x, y, (char*)args); - break; - case RT_DEVICE_CTRL_LCD_CLEAR_SCR: - LCD_ClearSCR(); - break; -#endif - } - - return RT_EOK; -} - -void rt_hw_lcd_init(void) -{ - rt_device_t lcd = rt_malloc(sizeof(struct rt_device)); - if (lcd == RT_NULL) return; /* no memory yet */ - - _lcd_info.bits_per_pixel = 16; - _lcd_info.pixel_format = RTGRAPHIC_PIXEL_FORMAT_RGB565; - _lcd_info.framebuffer = RT_NULL; - _lcd_info.width = LCD_WIDTH; - _lcd_info.height = LCD_HEIGHT; - - /* init device structure */ - lcd->type = RT_Device_Class_Unknown; - lcd->init = rt_lcd_init; - lcd->open = RT_NULL; - lcd->close = RT_NULL; - lcd->control = rt_lcd_control; -#ifdef RT_USING_RTGUI - lcd->user_data = (void*)&_lcd_ops; -#endif - /* register lcd device to RT-Thread */ - rt_device_register(lcd, "lcd", RT_DEVICE_FLAG_RDWR); -} diff --git a/bsp/mb9bf500r/lcd.h b/bsp/mb9bf500r/lcd.h deleted file mode 100644 index e0fa9efdc3..0000000000 --- a/bsp/mb9bf500r/lcd.h +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2008-03-29 Yi.Qiu - * 2011-06-13 lgnq modified for FM3 easy kit - */ -#ifndef __LCD_H__ -#define __LCD_H__ - -#include -#include "mb9bf506r.h" - -/********* LCD Hardward Interface ************* -LCD_CS PORT1.7 -LCD_CD PORT1.6 -LCD_WR PORT1.5 -LCD_RD PORT1.4 -LCD_SCK PORT1.3 -LCD_MOSI PORT1.2 -LCD_C86 PORT1.1 -LCD_PS PORT1.0 -LCD_DATA[0..7] PORT5.[0..7] -***********************************************/ -#define LCD_CS (1UL << 7) -#define LCD_CS_DDR (FM3_GPIO->DDR1) -#define LCD_CS_PFR (FM3_GPIO->PFR1) -#define LCD_CS_PDOR (FM3_GPIO->PDOR1) - -#define LCD_CD (1UL << 6) -#define LCD_CD_DDR (FM3_GPIO->DDR1) -#define LCD_CD_PFR (FM3_GPIO->PFR1) -#define LCD_CD_PDOR (FM3_GPIO->PDOR1) - -#define LCD_PS (1UL << 0) -#define LCD_PS_DDR (FM3_GPIO->DDR1) -#define LCD_PS_PFR (FM3_GPIO->PFR1) -#define LCD_PS_PDOR (FM3_GPIO->PDOR1) - -#define LCD_CLK (1UL << 6) -#define LCD_CLK_DDR (FM3_GPIO->DDR5) -#define LCD_CLK_PFR (FM3_GPIO->PFR5) -#define LCD_CLK_PDOR (FM3_GPIO->PDOR5) - -#define LCD_DATA (1UL << 7) -#define LCD_DATA_DDR (FM3_GPIO->DDR5) -#define LCD_DATA_PFR (FM3_GPIO->PFR5) -#define LCD_DATA_PDOR (FM3_GPIO->PDOR5) - -/* LCD driver for ZYMG12864C3 */ -#define LCD_WIDTH 128 -#define LCD_HEIGHT 64 - -// Driver the LCD with Parallel or serial interface and the command/data control pin is gpio -#define LCD_CS_HIGH() LCD_CS_PDOR |= LCD_CS -#define LCD_CS_LOW() LCD_CS_PDOR &= ~LCD_CS - -#define LCD_CD_HIGH() LCD_CD_PDOR |= LCD_CD -#define LCD_CD_LOW() LCD_CD_PDOR &= ~LCD_CD - -#define LCD_PS_HIGH() LCD_PS_PDOR |= LCD_PS -#define LCD_PS_LOW() LCD_PS_PDOR &= ~LCD_PS - -#define LCD_CLK_HIGH() LCD_CLK_PDOR |= LCD_CLK -#define LCD_CLK_LOW() LCD_CLK_PDOR &= ~LCD_CLK - -#define LCD_DATA_HIGH() LCD_DATA_PDOR |= LCD_DATA -#define LCD_DATA_LOW() LCD_DATA_PDOR &= ~LCD_DATA - -// define the arrtibute of ZYMG12864(LCM) -#define GUI_LCM_XMAX 128 // defined the lcd's line-number is 128 -#define GUI_LCM_YMAX 64 // defined the lcd's column-number is 64 -#define GUI_LCM_PAGE 8 // defined the lcd's page-number is 8(GUI_LCM_YMAX/8) - -/* set LCD command */ -#define DISPLAY_ON 0xAF // A0,RD,WR:010 -#define DISPLAY_OFF 0xAE // A0,RD,WR:010 - -#define SET_START_LINE_0 0x40 // A0,RD,WR:010; line0~line63 -#define SET_PAGE_ADDR_0 0xB0 // A0,RD,WR:010; addr0~addr8 -#define SET_COLH_ADDR_0 0x10 // A0,RD,WR:010; -#define SET_COLL_ADDR_0 0x00 // A0,RD,WR:010; addr0~addr131 - -#define READ_STATUS 0x-0 // A0,RD,WR:001; BUSY | ADC | ON/OFF | RESET | 0 0 0 0 -#define STATUS_BUSY 0x80 -#define STATUS_ADC_REVERSE 0x40 // column address 131-n : SEG n, else column address n : SEG n -#define STATUS_DISPLAY_OFF 0x20 -#define STATUS_RESET 0x80 - -#define WRITE_DATA 0x-- // A0,RD,WR:110 -#define READ_DATE 0x-- // A0,RD,WR:101; spi mode is unavailable - -#define SET_ADC_NORMAL 0xA0 // A0,RD,WR:010 -#define SET_ADC_REVERSE 0xA1 // A0,RD,WR:010 -#define DISPLAY_NORMAL 0xA6 // A0,RD,WR:010 -#define DISPLAY_REVERSE 0xA7 // A0,RD,WR:010; reverse color -#define DISPLAY_ALL_ON 0xA5 // A0,RD,WR:010 -#define DISPLAY_ALL_NORMAL 0xA4 // A0,RD,WR:010 - -/************************************************************* -* bias: 1/65duty | 1/49duty | 1/33duty | 1/55duty | 1/53duty * -* ---------------|----------|----------|----------|--------- * -* A2: 1/9 bias | 1/8 bias | 1/6 bias | 1/8 bias | 1/8 bias * -* A3: 1/7 bias | 1/6 bias | 1/5 bias | 1/6 bias | 1/6 bias * -**************************************************************/ - -#define SET_LCD_BIAS_7 0xA3 // A0,RD,WR:010 -#define SET_LCD_BIAS_9 0xA2 // A0,RD,WR:010 - -#define RMW_MODE_ENABLE 0xE0 // A0,RD,WR:010; the column address locked when read command operating -#define RMW_MODE_END 0xEE // A0,RD,WR:010; returns to the column address when RMW was entered. -#define RESET_LCD 0xE2 // A0,RD,WR:010 - - -/************************************************************************************** -* Com Scan Dir: | 1/65duty | 1/49duty | 1/33duty | 1/55duty | 1/53duty * -* --------------|-------------|-------------|-------------|------------------------ * -* C0: Normal | COM0:COM63 | COM0:COM47 | COM0:COM31 | COM0:COM53 | COM0:COM51 * -* C8: Reverse | COM63:COM0 | COM47:COM0 | COM31:COM0 | COM53:COM0 | COM51:COM0 * -***************************************************************************************/ - -#define COM_SCAN_DIR_NORMAL 0xC0 // A0,RD,WR:010 -#define COM_SCAN_DIR_REVERSE 0xC8 // A0,RD,WR:010 - -// 0 0 1 0 1 | Booster On | Regulator On | Follower On -#define POWER_BOOSTER_ON 0x2C // A0,RD,WR:010 -#define POWER_REGULATOR_ON 0x2E // A0,RD,WR:010 -#define POWER_FOLLOWER_ON 0x2F // A0,RD,WR:010 - -#define SET_RESISTOR_RATIO 0x20 // A0,RD,WR:010; 20~27:small~large - -#define SET_ELECVOL_MODE 0x81 // A0,RD,WR:010; double byte command -#define SET_ELECVOL_REG 0x20 // A0,RD,WR:010; the electronic volume(64 voltage levels:00~3F) function is not used. - -#define SLEEP_MODE_ENABLE 0xAC // A0,RD,WR:010; double byte command, preceding command -#define SLEEP_MODE_DISABLE 0xAD // A0,RD,WR:010; preceding command -#define SLEEP_MODE_DELIVER 0x00 // A0,RD,WR:010; following command - -#define BOOST_RATIO_SET 0xF8 // A0,RD,WR:010; double byte command, preceding command -#define BOOST_RATIO_234 0x00 // A0,RD,WR:010; following command -#define BOOST_RATIO_5 0x01 // A0,RD,WR:010; following command -#define BOOST_RATIO_6 0x03 // A0,RD,WR:010; following command - -#define COMMAND_NOP 0xE3 // A0,RD,WR:010 -#define COMMAND_IC_TEST 0xFC // A0,RD,WR:010; don't use - -#define RT_DEVICE_CTRL_LCD_GET_WIDTH 0 -#define RT_DEVICE_CTRL_LCD_GET_HEIGHT 1 -#define RT_DEVICE_CTRL_LCD_GET_BPP 2 -#define RT_DEVICE_CTRL_LCD_GET_FRAMEBUFFER 3 -#define RT_DEVICE_CTRL_LCD_POWER_ON 4 -#define RT_DEVICE_CTRL_LCD_POWER_OFF 5 -#define RT_DEVICE_CTRL_LCD_CLEAR_SCR 6 -#define RT_DEVICE_CTRL_LCD_FILL_ALL 7 -#define RT_DEVICE_CTRL_LCD_UPDATE_POINT 8 -#define RT_DEVICE_CTRL_LCD_DISPLAY_ON 9 -#define RT_DEVICE_CTRL_LCD_DISPLAY_OFF 10 -#define RT_DEVICE_CTRL_LCD_PUT_STRING 11 - -enum -{ - ADC_MSG, - KEY_MSG, - CPU_MSG, - MAX_MSG, -}; - -struct lcd_msg -{ - rt_uint8_t type; - rt_uint16_t adc_value; - rt_uint8_t key; - rt_uint16_t major; - rt_uint16_t minor; -}; - -extern rt_uint32_t x; -extern rt_uint32_t y; - -void rt_hw_lcd_init(void); - -#endif diff --git a/bsp/mb9bf500r/led.c b/bsp/mb9bf500r/led.c deleted file mode 100644 index ee28af7035..0000000000 --- a/bsp/mb9bf500r/led.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#include -#include - -#include "mb9bf506r.h" -#include "led.h" - -void rt_hw_led_on(rt_uint8_t num) -{ - RT_ASSERT(num < LEDS_MAX_NUMBER); - - switch (num) - { - case 1: - LED_PDOR &= ~LED1; - break; - case 2: - LED_PDOR &= ~LED2; - break; - case 3: - LED_PDOR &= ~LED3; - break; - default: - break; - } -} - -void rt_hw_led_off(rt_uint8_t num) -{ - RT_ASSERT(num < LEDS_MAX_NUMBER); - - switch (num) - { - case 1: - LED_PDOR |= LED1; - break; - case 2: - LED_PDOR |= LED2; - break; - case 3: - LED_PDOR |= LED3; - break; - default: - break; - } -} - -void rt_hw_led_toggle(rt_uint8_t num) -{ - RT_ASSERT(num < LEDS_MAX_NUMBER); - - switch (num) - { - case 1: - if (LED_PDOR&LED1) - LED_PDOR &= ~LED1; - else - LED_PDOR |= LED1; - break; - case 2: - if (LED_PDOR&LED2) - LED_PDOR &= ~LED2; - else - LED_PDOR |= LED2; - break; - case 3: - if (LED_PDOR&LED3) - LED_PDOR &= ~LED3; - else - LED_PDOR |= LED3; - break; - default: - break; - } -} - -static rt_err_t led_io_init(void) -{ - /*Select CPIO function*/ - LED_PFR &= ~LED_MASK; - /*Set Pin to turn off leds*/ - LED_PDOR |= LED_MASK; - /*Make led pins outputs*/ - LED_DDR |= LED_MASK; - - //LED3 is controled by PWM - FM3_GPIO->PFR3 = 0x1000; - FM3_GPIO->EPFR04 = 0x00080000; - FM3_BT2_PWM->TMCR = 0x0018; - FM3_BT2_PWM->TMCR2 = 0x01; /* cks=0b1000 count clk 1/512 */ - FM3_BT2_PWM->STC = 0x00; - FM3_BT2_PWM->PCSR = 0x61A; /* Down count = 1562 */ - FM3_BT2_PWM->PDUT = 0x0; /* Duty count = 16/1562=10% */ - - FM3_BT2_PWM->TMCR |= 0x03; /* start base timer(softwere TRG) */ - return RT_EOK; -} - -void pwm_update(rt_uint16_t value) -{ - FM3_BT2_PWM->PDUT = value; -} - -static void led1_thread_entry(void *parameter) -{ - while (1) - { - rt_hw_led_toggle(1); - rt_thread_delay(RT_TICK_PER_SECOND); - } -} - -static void led2_thread_entry(void *parameter) -{ - while (1) - { - rt_hw_led_toggle(2); - rt_thread_delay(RT_TICK_PER_SECOND/2); - } -} - -static rt_thread_t led1_thread; -static rt_thread_t led2_thread; -void rt_hw_led_init(void) -{ - led_io_init(); - - led1_thread = rt_thread_create("led1", led1_thread_entry, RT_NULL, 384, 29, 5); - if (led1_thread != RT_NULL) - rt_thread_startup(led1_thread); - - led2_thread = rt_thread_create("led2", led2_thread_entry, RT_NULL, 384, 30, 5); - if (led2_thread != RT_NULL) - rt_thread_startup(led2_thread); -} - - diff --git a/bsp/mb9bf500r/led.h b/bsp/mb9bf500r/led.h deleted file mode 100644 index c4a433cb81..0000000000 --- a/bsp/mb9bf500r/led.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#ifndef __LED_H__ -#define __LED_H__ - -#include "mb9bf506r.h" - -#define LEDS_MAX_NUMBER 4 - -/*LEDs*/ -#define LED1 (1UL<<10) -#define LED2 (1UL<<11) -#define LED3 (1UL<<12) -#define LED_MASK (LED1 | LED2 | LED3) - -#define LED_PFR (FM3_GPIO->PFR3) -#define LED_DDR (FM3_GPIO->DDR3) -#define LED_PDOR (FM3_GPIO->PDOR3) - -#define RT_DEVICE_CTRL_LED_ON 0 -#define RT_DEVICE_CTRL_LED_OFF 1 -#define RT_DEVICE_CTRL_LED_TOGGLE 2 - -void rt_hw_led_init(void); -void rt_hw_led_on(rt_uint8_t num); -void rt_hw_led_off(rt_uint8_t num); -void rt_hw_led_toggle(rt_uint8_t num); -void pwm_update(rt_uint16_t value); - -#endif diff --git a/bsp/mb9bf500r/mb9bf500r.icf b/bsp/mb9bf500r/mb9bf500r.icf deleted file mode 100644 index ff723823ce..0000000000 --- a/bsp/mb9bf500r/mb9bf500r.icf +++ /dev/null @@ -1,32 +0,0 @@ -/*###ICF### Section handled by ICF editor, don't touch! ****/ -/*-Editor annotation file-*/ -/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ -/*-Specials-*/ -define symbol __ICFEDIT_intvec_start__ = 0x00000000; -/*-Memory Regions-*/ -define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; -define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF; -define symbol __ICFEDIT_region_RAM_start__ = 0x1FFFC000; -define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF; -/*-Sizes-*/ -define symbol __ICFEDIT_size_cstack__ = 0x800; -define symbol __ICFEDIT_size_heap__ = 0x0; -/**** End of ICF editor section. ###ICF###*/ - - -define memory mem with size = 4G; -define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; -define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; - -define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; -define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; - -initialize by copy { readwrite }; -//initialize by copy with packing = none { section __DLIB_PERTHREAD }; // Required in a multi-threaded application -do not initialize { section .noinit }; - -place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; - -place in ROM_region { readonly }; -place in RAM_region { readwrite, - block CSTACK, block HEAP }; diff --git a/bsp/mb9bf500r/project.uvopt b/bsp/mb9bf500r/project.uvopt deleted file mode 100644 index f4ebac8267..0000000000 --- a/bsp/mb9bf500r/project.uvopt +++ /dev/null @@ -1,559 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - - - - 0 - 0 - - - - RT-Thread FM3 - 0x4 - ARM-ADS - - 4000000 - - 1 - 1 - 1 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\obj\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 0 - 0 - 1 - - 255 - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM3 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM3 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 0 - 0 - 7 - - - - - - - - - - - Segger\JL2CM3.dll - - - - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - Startup - 0 - 0 - 0 - - 1 - 1 - 1 - 0 - 0 - 43 - 0 - 121 - 121 - 0 - .\application.c - application.c - - - 1 - 2 - 1 - 0 - 0 - 20 - 0 - 32 - 34 - 0 - .\board.c - board.c - - - 1 - 3 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\startup.c - startup.c - - - 1 - 4 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\adc.c - adc.c - - - 1 - 5 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\cpuusage.c - cpuusage.c - - - 1 - 6 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\key.c - key.c - - - 1 - 7 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\lcd.c - lcd.c - - - 1 - 8 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\led.c - led.c - - - 1 - 9 - 1 - 0 - 0 - 39 - 0 - 14 - 25 - 0 - .\info.c - info.c - - - - - FM3 - 0 - 0 - 0 - - 2 - 10 - 2 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - ..\..\libcpu\arm\cortex-m3\context_rvds.S - context_rvds.S - - - 2 - 11 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\libcpu\arm\cortex-m3\cpuport.c - cpuport.c - - - - - CMSIS - 0 - 0 - 0 - - 3 - 12 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\CMSIS\core_cm3.c - core_cm3.c - - - 3 - 13 - 2 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - .\CMSIS\start_rvds.S - start_rvds.S - - - 3 - 14 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - .\CMSIS\system_mb9bf50x.c - system_mb9bf50x.c - - - - - Kernel - 0 - 0 - 0 - - 4 - 15 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\clock.c - clock.c - - - 4 - 16 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\device.c - device.c - - - 4 - 17 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\idle.c - idle.c - - - 4 - 18 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\ipc.c - ipc.c - - - 4 - 19 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\irq.c - irq.c - - - 4 - 20 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\kservice.c - kservice.c - - - 4 - 21 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\mem.c - mem.c - - - 4 - 22 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\mempool.c - mempool.c - - - 4 - 24 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\object.c - object.c - - - 4 - 26 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\scheduler.c - scheduler.c - - - 4 - 27 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\slab.c - slab.c - - - 4 - 28 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\thread.c - thread.c - - - 4 - 29 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\src\timer.c - timer.c - - - -
diff --git a/bsp/mb9bf500r/project.uvproj b/bsp/mb9bf500r/project.uvproj deleted file mode 100644 index 971e04f6e1..0000000000 --- a/bsp/mb9bf500r/project.uvproj +++ /dev/null @@ -1,547 +0,0 @@ - - - - 1.1 - -
### uVision Project, (C) Keil Software
- - - - RT-Thread FM3 - 0x4 - ARM-ADS - - - MB9BF500R - Fujitsu Semiconductors - IRAM(0x20000000-0x20003FFF) IROM(0x00000000-0x0003FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") - - "STARTUP\FUJITSU\MB9BF50x\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") - UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BF50x_256 -FS00 -FL040000) - 5155 - MB9BF50x.h - - - - - - - - - - - 0 - - - - Fujitsu\MB9BF50x\ - Fujitsu\MB9BF50x\ - - 0 - 0 - 0 - 0 - 1 - - .\obj\ - rtthread-fm3 - 1 - 0 - 0 - 1 - 1 - .\obj\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM3 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM3 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - - 0 - 7 - - - - - - - - - - - - - - Segger\JL2CM3.dll - - - - - 1 - 0 - 0 - 1 - 1 - 4099 - - Segger\JL2CM3.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - "Cortex-M3" - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 8 - 1 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x4000 - - - 1 - 0x0 - 0x40000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x40000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x4000 - - - 0 - 0x0 - 0x0 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - CMSIS;.;..\..\include;..\..\components\rtgui\include - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 1 - 0 - 0x00000000 - 0x10000000 - - - - - - - - - - - - Startup - - - application.c - 1 - .\application.c - - - board.c - 1 - .\board.c - - - startup.c - 1 - .\startup.c - - - adc.c - 1 - .\adc.c - - - cpuusage.c - 1 - .\cpuusage.c - - - key.c - 1 - .\key.c - - - lcd.c - 1 - .\lcd.c - - - led.c - 1 - .\led.c - - - info.c - 1 - .\info.c - - - - - FM3 - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m3\context_rvds.S - - - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m3\cpuport.c - - - - - CMSIS - - - core_cm3.c - 1 - .\CMSIS\core_cm3.c - - - start_rvds.S - 2 - .\CMSIS\start_rvds.S - - - system_mb9bf50x.c - 1 - .\CMSIS\system_mb9bf50x.c - - - - - Kernel - - - clock.c - 1 - ..\..\src\clock.c - - - device.c - 1 - ..\..\src\device.c - - - idle.c - 1 - ..\..\src\idle.c - - - ipc.c - 1 - ..\..\src\ipc.c - - - irq.c - 1 - ..\..\src\irq.c - - - kservice.c - 1 - ..\..\src\kservice.c - - - mem.c - 1 - ..\..\src\mem.c - - - mempool.c - 1 - ..\..\src\mempool.c - - - object.c - 1 - ..\..\src\object.c - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - slab.c - 1 - ..\..\src\slab.c - - - thread.c - 1 - ..\..\src\thread.c - - - timer.c - 1 - ..\..\src\timer.c - - - - - - - -
diff --git a/bsp/mb9bf500r/rtconfig.h b/bsp/mb9bf500r/rtconfig.h deleted file mode 100644 index ac37ecb464..0000000000 --- a/bsp/mb9bf500r/rtconfig.h +++ /dev/null @@ -1,88 +0,0 @@ -/* RT-Thread config file */ -#ifndef __RTTHREAD_CFG_H__ -#define __RTTHREAD_CFG_H__ - -/* RT_NAME_MAX*/ -#define RT_NAME_MAX 8 - -/* RT_ALIGN_SIZE*/ -#define RT_ALIGN_SIZE 4 - -/* PRIORITY_MAX */ -#define RT_THREAD_PRIORITY_MAX 32 - -/* Tick per Second */ -#define RT_TICK_PER_SECOND 100 - -/* SECTION: RT_DEBUG */ -/* Thread Debug */ -/* #define RT_DEBUG */ -#define RT_USING_OVERFLOW_CHECK - -/* Using Hook */ -#define RT_USING_HOOK - -/* SECTION: IPC */ -/* Using Semaphore */ -#define RT_USING_SEMAPHORE - -/* Using Mutex */ -#define RT_USING_MUTEX - -/* Using Event */ -#define RT_USING_EVENT - -/* Using MailBox */ -#define RT_USING_MAILBOX - -/* Using Message Queue */ -#define RT_USING_MESSAGEQUEUE - -/* SECTION: Memory Management */ -/* Using Memory Pool Management*/ -#define RT_USING_MEMPOOL - -/* Using Dynamic Heap Management */ -#define RT_USING_HEAP - -/* Using Small MM */ -#define RT_USING_SMALL_MEM - -/* SECTION: Device System */ -/* Using Device System */ -#define RT_USING_DEVICE -/* RT_USING_UART */ -#define RT_USING_UART0 -#define RT_UART_RX_BUFFER_SIZE 64 - -/* SECTION: Console options */ -#define RT_TINY_SIZE -#define RT_USING_CONSOLE -/* the buffer size of console */ -#define RT_CONSOLEBUF_SIZE 128 - -/* SECTION: RTGUI support */ -/* using RTGUI support */ -/* #define RT_USING_RTGUI */ - -/* name length of RTGUI object */ -#define RTGUI_NAME_MAX 16 -/* support 16 weight font */ -//#define RTGUI_USING_FONT16 -/* support 12 weight font */ -#define RTGUI_USING_FONT12 -/* support Chinese font */ -//#define RTGUI_USING_FONTHZ -/* use DFS as file interface */ -//#define RTGUI_USING_DFS_FILERW -/* use font file as Chinese font */ -/* #define RTGUI_USING_HZ_FILE */ -/* use Chinese bitmap font */ -//#define RTGUI_USING_HZ_BMP -/* use small size in RTGUI */ -//#define RTGUI_USING_SMALL_SIZE -/* use mouse cursor */ -/* #define RTGUI_USING_MOUSE_CURSOR */ -#define RTGUI_DEFAULT_FONT_SIZE 12 - -#endif diff --git a/bsp/mb9bf500r/rtconfig.py b/bsp/mb9bf500r/rtconfig.py deleted file mode 100644 index 24ae26d0ab..0000000000 --- a/bsp/mb9bf500r/rtconfig.py +++ /dev/null @@ -1,124 +0,0 @@ -import os - -# toolchains options -ARCH='arm' -CPU='cortex-m3' -CROSS_TOOL='gcc' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -# cross_tool provides the cross compiler -# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' -elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = 'C:/Keil' -elif CROSS_TOOL == 'iar': - print('================ERROR============================') - print('Not support iar yet!') - print('=================================================') - exit(0) - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -if PLATFORM == 'gcc': - # toolchains - PREFIX = 'arm-none-eabi-' - CC = PREFIX + 'gcc' - AS = PREFIX + 'gcc' - AR = PREFIX + 'ar' - LINK = PREFIX + 'gcc' - TARGET_EXT = 'elf' - SIZE = PREFIX + 'size' - OBJDUMP = PREFIX + 'objdump' - OBJCPY = PREFIX + 'objcopy' - - DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' - CFLAGS = DEVICE - AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' - LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T fm3_rom.ld' - - CPATH = '' - LPATH = '' - - if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' - else: - CFLAGS += ' -O2' - - POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' - -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --device DARMSTM' - CFLAGS = DEVICE + ' --apcs=interwork' - AFLAGS = DEVICE - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-fm3.map --scatter fm3_rom.sct' - - CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' - LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' - - EXEC_PATH += '/arm/bin40/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' - -elif PLATFORM == 'iar': - # toolchains - CC = 'iccarm' - AS = 'iasmarm' - AR = 'iarchive' - LINK = 'ilinkarm' - TARGET_EXT = 'out' - - CFLAGS = '' - CFLAGS += ' --diag_suppress Pa050' - CFLAGS += ' --no_cse' - CFLAGS += ' --no_unroll' - CFLAGS += ' --no_inline' - CFLAGS += ' --no_code_motion' - CFLAGS += ' --no_tbaa' - CFLAGS += ' --no_clustering' - CFLAGS += ' --no_scheduling' - CFLAGS += ' --debug' - CFLAGS += ' --endian=little' - CFLAGS += ' --cpu=Cortex-M3' - CFLAGS += ' -e' - CFLAGS += ' --fpu=None' - CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' - CFLAGS += ' -Ol' - CFLAGS += ' --use_c++_inline' - - AFLAGS = '' - AFLAGS += ' -s+' - AFLAGS += ' -w+' - AFLAGS += ' -r' - AFLAGS += ' --cpu Cortex-M3' - AFLAGS += ' --fpu None' - AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"' - - LFLAGS = ' --config mb9bf500r.icf' - LFLAGS += ' --semihosting' - LFLAGS += ' --entry __iar_program_start' - - EXEC_PATH = EXEC_PATH + '/arm/bin/' - POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec' diff --git a/bsp/mb9bf500r/startup.c b/bsp/mb9bf500r/startup.c deleted file mode 100644 index 1e7309ae3e..0000000000 --- a/bsp/mb9bf500r/startup.c +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" -#include "mb9bf506r.h" -/** - * @addtogroup FM3 - */ - -/*@{*/ - -extern int rt_application_init(void); - -#ifdef __CC_ARM -extern int Image$$RW_IRAM1$$ZI$$Limit; -#elif __ICCARM__ -#pragma section="HEAP" -#else -extern int __bss_end; -#endif - -/** - * This function will startup RT-Thread RTOS. - */ -void rtthread_startup(void) -{ - /* init board */ - rt_hw_board_init(); - - /* show version */ - rt_show_version(); - - /* init timer system */ - rt_system_timer_init(); - -#ifdef RT_USING_HEAP - #ifdef __CC_ARM - rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM3_SRAM_END); - #elif __ICCARM__ - rt_system_heap_init(__segment_end("HEAP"), (void*)FM3_SRAM_END); - #else - /* init memory system */ - rt_system_heap_init((void*)&__bss_end, (void*)FM3_SRAM_END); - #endif -#endif - - /* init scheduler system */ - rt_system_scheduler_init(); - - /* init application */ - rt_application_init(); - - /* init timer thread */ - rt_system_timer_thread_init(); - - /* init idle thread */ - rt_thread_idle_init(); - - /* start scheduler */ - rt_system_scheduler_start(); - - /* never reach here */ - return ; -} - -int main(void) -{ - /* disable interrupt first */ - rt_hw_interrupt_disable(); - - /* init system setting */ - SystemInit(); - - /* startup RT-Thread RTOS */ - rtthread_startup(); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf506r/SConscript b/bsp/mb9bf506r/SConscript deleted file mode 100644 index 0992612410..0000000000 --- a/bsp/mb9bf506r/SConscript +++ /dev/null @@ -1,12 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/mb9bf506r/SConstruct b/bsp/mb9bf506r/SConstruct deleted file mode 100644 index 97f374e663..0000000000 --- a/bsp/mb9bf506r/SConstruct +++ /dev/null @@ -1,35 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - -if rtconfig.PLATFORM == 'iar': - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/mb9bf506r/applications/SConscript b/bsp/mb9bf506r/applications/SConscript deleted file mode 100644 index 4ccb177207..0000000000 --- a/bsp/mb9bf506r/applications/SConscript +++ /dev/null @@ -1,9 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf506r/applications/application.c b/bsp/mb9bf506r/applications/application.c deleted file mode 100644 index fdc42a9100..0000000000 --- a/bsp/mb9bf506r/applications/application.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-05-24 Bernard the first version - */ - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -#include -#include "board.h" -#include "led.h" - -#ifdef RT_USING_DFS -/* dfs init */ -#include -/* dfs filesystem:ELM filesystem init */ -#include -/* dfs Filesystem APIs */ -#include -#endif - -void rt_init_thread_entry(void *parameter) -{ - /* LED Initialization */ - rt_hw_led_init(); - -#ifdef RT_USING_COMPONENTS_INIT - /* initialization RT-Thread Components */ - rt_components_init(); -#endif - - /* Filesystem Initialization */ -#ifdef RT_USING_DFS - /* mount nand fat partition 1 as root directory */ - if (dfs_mount("nand", "/", "elm", 0, 0) == 0) - rt_kprintf("File System initialized!\n"); - else - rt_kprintf("File System init failed!\n"); -#endif -} - -int rt_application_init(void) -{ - rt_thread_t tid; - - tid = rt_thread_create("init", - rt_init_thread_entry, RT_NULL, - 2048, RT_THREAD_PRIORITY_MAX/3, 20); - if (tid != RT_NULL) - rt_thread_startup(tid); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf506r/applications/startup.c b/bsp/mb9bf506r/applications/startup.c deleted file mode 100644 index ccb31d40b4..0000000000 --- a/bsp/mb9bf506r/applications/startup.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -extern int rt_application_init(void); - -#ifdef __CC_ARM -extern int Image$$RW_IRAM1$$ZI$$Limit; -#elif __ICCARM__ -#pragma section="HEAP" -#else -extern int __bss_end; -#endif - -/** - * This function will startup RT-Thread RTOS. - */ -void rtthread_startup(void) -{ - /* initialize board */ - rt_hw_board_init(); - - /* show version */ - rt_show_version(); - -#ifdef RT_USING_HEAP - #ifdef __CC_ARM - rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM3_SRAM_END); - #elif __ICCARM__ - rt_system_heap_init(__segment_end("HEAP"), (void*)FM3_SRAM_END); - #else - /* init memory system */ - rt_system_heap_init((void*)&__bss_end, (void*)FM3_SRAM_END); - #endif -#endif - - /* init scheduler system */ - rt_system_scheduler_init(); - -#ifdef RT_USING_DEVICE -#if defined(RT_USING_DFS) && defined(RT_USING_DFS_UFFS) - rt_hw_nand_init(); -#endif -#endif - - /* initialize application */ - rt_application_init(); - - /* initialize timer */ - rt_system_timer_init(); - - /* initialize timer thread */ - rt_system_timer_thread_init(); - - /* initialize idle thread */ - rt_thread_idle_init(); - - /* start scheduler */ - rt_system_scheduler_start(); - - /* never reach here */ - return ; -} - -int main(void) -{ - /* disable interrupt first */ - rt_hw_interrupt_disable(); - - /* startup RT-Thread RTOS */ - rtthread_startup(); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf506r/drivers/SConscript b/bsp/mb9bf506r/drivers/SConscript deleted file mode 100644 index f4b66bd711..0000000000 --- a/bsp/mb9bf506r/drivers/SConscript +++ /dev/null @@ -1,16 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') - -# remove no need file. -if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'emac.c') -if GetDepend('RT_USING_DFS') == False: - SrcRemove(src, 'sd.c') - -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf506r/drivers/board.c b/bsp/mb9bf506r/drivers/board.c deleted file mode 100644 index d687bea929..0000000000 --- a/bsp/mb9bf506r/drivers/board.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" -#include "mcu.h" - -#include "fm3_uart.h" -#include "nand.h" - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -/** - * This is the timer interrupt service routine. - */ -void SysTick_Handler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - - rt_tick_increase(); - - /* leave interrupt */ - rt_interrupt_leave(); -} - -/** - * This function will initial FM3 Easy Kit board. - */ -void rt_hw_board_init(void) -{ - /* init systick */ - SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND); - - /* initialize UART device */ - rt_hw_serial_init(); - /* set console as UART device */ - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); - - /* initialize nand flash device */ - rt_hw_nand_init(); -} - -/*@}*/ diff --git a/bsp/mb9bf506r/drivers/board.h b/bsp/mb9bf506r/drivers/board.h deleted file mode 100644 index d2f252990c..0000000000 --- a/bsp/mb9bf506r/drivers/board.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2009-09-22 Bernard add board.h to this bsp - * 2011-03-04 lgnq add board.h to FM3 bsp - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - -//Internal SRAM memory size[Kbytes] <8-64> -//MB9BF500 : 32 -//MB9BF504 : 32 -//MB9BF505 : 48 -//MB9BF506 : 64 -#define FM3_SRAM_SIZE 64 -#define FM3_SRAM_END (0x1FFF8000 + FM3_SRAM_SIZE * 1024) - -void rt_hw_board_init(void); - -#endif diff --git a/bsp/mb9bf506r/drivers/fm3_uart.c b/bsp/mb9bf506r/drivers/fm3_uart.c deleted file mode 100644 index ece042cca4..0000000000 --- a/bsp/mb9bf506r/drivers/fm3_uart.c +++ /dev/null @@ -1,929 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2012-05-15 lgnq first version. - * 2012-05-28 heyuanjie87 change interfaces - */ - -#include -#include -#include "fm3_uart.h" - -#if (defined(RT_USING_UART0_0) || defined(RT_USING_UART0_1)) -/* UART0 device driver structure */ -struct uart03_device uart0 = -{ - FM3_MFS0_UART, - MFS0RX_IRQn, - MFS0TX_IRQn, -}; -struct rt_serial_device serial0; - -void MFS0RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial0, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART1_0) || defined(RT_USING_UART1_1)) -/* UART1 device driver structure */ -struct uart03_device uart1 = -{ - FM3_MFS1_UART, - MFS1RX_IRQn, - MFS1TX_IRQn, -}; -struct rt_serial_device serial1; - -void MFS1RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial1, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART2_0) || defined(RT_USING_UART2_1) || defined(RT_USING_UART2_2)) -/* UART2 device driver structure */ -struct uart03_device uart2 = -{ - FM3_MFS2_UART, - MFS2RX_IRQn, - MFS2TX_IRQn, -}; -struct rt_serial_device serial2; - -void MFS2RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial2, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART3_0) || defined(RT_USING_UART3_1) || defined(RT_USING_UART3_2)) -/* UART3 device driver structure */ -struct uart03_device uart3 = -{ - FM3_MFS3_UART, - MFS3RX_IRQn, - MFS3TX_IRQn, -}; -struct rt_serial_device serial3; - -void MFS3RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial3, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART4_0) || defined(RT_USING_UART4_1) || defined(RT_USING_UART4_2)) -/* UART4 device driver structure */ -struct uart47_device uart4 = -{ - FM3_MFS4_UART, - MFS4RX_IRQn, - MFS4TX_IRQn, - FIFO_SIZE, -}; -struct rt_serial_device serial4; - -void MFS4RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial4, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART5_0) || defined(RT_USING_UART5_1) || defined(RT_USING_UART5_2)) -/* UART5 device driver structure */ -struct uart47_device uart5 = -{ - FM3_MFS5_UART, - MFS5RX_IRQn, - MFS5TX_IRQn, - FIFO_SIZE, -}; -struct rt_serial_device serial5; - -void MFS5RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial5, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART6_0) || defined(RT_USING_UART6_1)) -/* UART6 device driver structure */ -struct uart47_device uart6 = -{ - FM3_MFS6_UART, - MFS6RX_IRQn, - MFS6TX_IRQn, - FIFO_SIZE, -}; -struct rt_serial_device serial6; - -void MFS6RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial6, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif - -#if (defined(RT_USING_UART7_0) || defined(RT_USING_UART7_1)) -/* UART7 device driver structure */ -struct uart47_device uart7 = -{ - FM3_MFS7_UART, - MFS7RX_IRQn, - MFS7TX_IRQn, - FIFO_SIZE, -}; -struct rt_serial_device serial7; - -void MFS7RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&serial7, RT_SERIAL_EVENT_RX_IND); - /* leave interrupt */ - rt_interrupt_leave(); -} - -#endif - -void uart_pin_setup(void) -{ -#if defined(RT_USING_UART0_0) - /* Set UART Ch0 Port, SIN0_0(P21), SOT0_0(P22) */ - FM3_GPIO->PFR2_f.P1 = 1; - FM3_GPIO->PFR2_f.P2 = 1; - FM3_GPIO->EPFR07_f.SIN0S0 = 1; - FM3_GPIO->EPFR07_f.SIN0S1 = 0; - FM3_GPIO->EPFR07_f.SOT0B0 = 1; - FM3_GPIO->EPFR07_f.SOT0B1 = 0; -#elif defined(RT_USING_UART0_1) - /* Set UART Ch0 Port, SIN0_1(P14), SOT0_1(P15) */ - FM3_GPIO->PFR1_f.P4 = 1; - FM3_GPIO->PFR1_f.P5 = 1; - FM3_GPIO->EPFR07_f.SIN0S0 = 0; - FM3_GPIO->EPFR07_f.SIN0S1 = 1; - FM3_GPIO->EPFR07_f.SOT0B0 = 0; - FM3_GPIO->EPFR07_f.SOT0B1 = 1; -#endif - -#if defined(RT_USING_UART1_0) - /* Set UART Ch1 Port, SIN1_0(P56), SOT1_0(P57) */ - FM3_GPIO->PFR5_f.P6 = 1; - FM3_GPIO->PFR5_f.P7 = 1; - FM3_GPIO->EPFR07_f.SIN1S0 = 1; - FM3_GPIO->EPFR07_f.SIN1S1 = 0; - FM3_GPIO->EPFR07_f.SOT1B0 = 1; - FM3_GPIO->EPFR07_f.SOT1B1 = 0; -#elif defined(RT_USING_UART1_1) - /* Set UART Ch1 Port, SIN1_1(P11), SOT1_1(P12) */ - FM3_GPIO->PFR1_f.P1 = 1; - FM3_GPIO->PFR1_f.P2 = 1; - FM3_GPIO->EPFR07_f.SIN1S0 = 0; - FM3_GPIO->EPFR07_f.SIN1S1 = 1; - FM3_GPIO->EPFR07_f.SOT1B0 = 0; - FM3_GPIO->EPFR07_f.SOT1B1 = 1; -#endif - -#if defined(RT_USING_UART2_0) - /* Set UART Ch2 Port, SIN2_0(P72), SOT2_0(P73) */ - FM3_GPIO->PFR7_f.P2 = 1; - FM3_GPIO->PFR7_f.P3 = 1; - FM3_GPIO->EPFR07_f.SIN2S0 = 1; - FM3_GPIO->EPFR07_f.SIN2S1 = 0; - FM3_GPIO->EPFR07_f.SOT2B0 = 1; - FM3_GPIO->EPFR07_f.SOT2B1 = 0; -#elif defined(RT_USING_UART2_1) - /* Set UART Ch2 Port, SIN2_1(P24), SOT2_1(P25) */ - FM3_GPIO->PFR2_f.P4 = 1; - FM3_GPIO->PFR2_f.P5 = 1; - FM3_GPIO->EPFR07_f.SIN2S0 = 0; - FM3_GPIO->EPFR07_f.SIN2S1 = 1; - FM3_GPIO->EPFR07_f.SOT2B0 = 0; - FM3_GPIO->EPFR07_f.SOT2B1 = 1; -#elif defined(RT_USING_UART2_2) - /* Set UART Ch2 Port, SIN2_2(P17), SOT2_2(P18) */ - FM3_GPIO->PFR1_f.P7 = 1; - FM3_GPIO->PFR1_f.P8 = 1; - FM3_GPIO->EPFR07_f.SIN2S0 = 1; - FM3_GPIO->EPFR07_f.SIN2S1 = 1; - FM3_GPIO->EPFR07_f.SOT2B0 = 1; - FM3_GPIO->EPFR07_f.SOT2B1 = 1; -#endif - -#if defined(RT_USING_UART3_0) - /* Set UART Ch3 Port, SIN3_0(P66), SOT3_0(P67) */ - FM3_GPIO->PFR6_f.P6 = 1; - FM3_GPIO->PFR6_f.P7 = 1; - FM3_GPIO->EPFR07_f.SIN3S0 = 1; - FM3_GPIO->EPFR07_f.SIN3S1 = 0; - FM3_GPIO->EPFR07_f.SOT3B0 = 1; - FM3_GPIO->EPFR07_f.SOT3B1 = 0; -#elif defined(RT_USING_UART3_1) - /* Set UART Ch3 Port, SIN3_1(P50), SOT3_1(P51) */ - FM3_GPIO->PFR5_f.P0 = 1; - FM3_GPIO->PFR5_f.P1 = 1; - FM3_GPIO->EPFR07_f.SIN3S0 = 0; - FM3_GPIO->EPFR07_f.SIN3S1 = 1; - FM3_GPIO->EPFR07_f.SOT3B0 = 0; - FM3_GPIO->EPFR07_f.SOT3B1 = 1; -#elif defined(RT_USING_UART3_2) - /* Set UART Ch3 Port, SIN3_2(P48), SOT3_2(P49) */ - FM3_GPIO->PFR4_f.P8 = 1; - FM3_GPIO->PFR4_f.P9 = 1; - FM3_GPIO->EPFR07_f.SIN3S0 = 1; - FM3_GPIO->EPFR07_f.SIN3S1 = 1; - FM3_GPIO->EPFR07_f.SOT3B0 = 1; - FM3_GPIO->EPFR07_f.SOT3B1 = 1; -#endif - -#if defined(RT_USING_UART4_0) - /* Set UART Ch4 Port, SIN4_0(P0A), SOT4_0(P0B), CTS4_0(P0E), RTS4_0(P0D) */ - FM3_GPIO->PFR0_f.PA = 1; - FM3_GPIO->PFR0_f.PB = 1; - FM3_GPIO->PFR0_f.PD = 1; - FM3_GPIO->PFR0_f.PE = 1; - FM3_GPIO->EPFR08_f.SIN4S0 = 1; - FM3_GPIO->EPFR08_f.SIN4S1 = 0; - FM3_GPIO->EPFR08_f.SOT4B0 = 1; - FM3_GPIO->EPFR08_f.SOT4B1 = 0; - FM3_GPIO->EPFR08_f.CTS4S0 = 1; - FM3_GPIO->EPFR08_f.CTS4S1 = 0; - FM3_GPIO->EPFR08_f.RTS4E0 = 1; - FM3_GPIO->EPFR08_f.RTS4E1 = 0; -#elif defined(RT_USING_UART4_1) - /* Set UART Ch4 Port, SIN4_1(P1A), SOT4_1(P1B), CTS4_1(P1D), RTS4_1(P1E) */ - FM3_GPIO->PFR1_f.PA = 1; - FM3_GPIO->PFR1_f.PB = 1; - FM3_GPIO->PFR1_f.PD = 1; - FM3_GPIO->PFR1_f.PE = 1; - FM3_GPIO->EPFR08_f.SIN4S0 = 0; - FM3_GPIO->EPFR08_f.SIN4S1 = 1; - FM3_GPIO->EPFR08_f.SOT4B0 = 0; - FM3_GPIO->EPFR08_f.SOT4B1 = 1; - FM3_GPIO->EPFR08_f.CTS4S0 = 0; - FM3_GPIO->EPFR08_f.CTS4S1 = 1; - FM3_GPIO->EPFR08_f.RTS4E0 = 0; - FM3_GPIO->EPFR08_f.RTS4E1 = 1; -#elif defined(RT_USING_UART4_2) - /* Set UART Ch4 Port, SIN4_2(P05), SOT4_2(P06), CTS4_2(P08), RTS4_2(P09)*/ - FM3_GPIO->PFR0_f.P5 = 1; - FM3_GPIO->PFR0_f.P6 = 1; - FM3_GPIO->PFR0_f.P8 = 1; - FM3_GPIO->PFR0_f.P9 = 1; - FM3_GPIO->EPFR08_f.SIN4S0 = 1; - FM3_GPIO->EPFR08_f.SIN4S1 = 1; - FM3_GPIO->EPFR08_f.SOT4B0 = 1; - FM3_GPIO->EPFR08_f.SOT4B1 = 1; - FM3_GPIO->EPFR08_f.CTS4S0 = 1; - FM3_GPIO->EPFR08_f.CTS4S1 = 1; - FM3_GPIO->EPFR08_f.RTS4E0 = 1; - FM3_GPIO->EPFR08_f.RTS4E1 = 1; -#endif - -#if defined(RT_USING_UART5_0) - /* Set UART Ch5 Port, SIN5_0(P60), SOT5_0(P61) */ - FM3_GPIO->PFR6_f.P0 = 1; - FM3_GPIO->PFR6_f.P1 = 1; - FM3_GPIO->EPFR08_f.SIN5S0 = 1; - FM3_GPIO->EPFR08_f.SIN5S1 = 0; - FM3_GPIO->EPFR08_f.SOT5B0 = 1; - FM3_GPIO->EPFR08_f.SOT5B1 = 0; -#elif defined(RT_USING_UART5_1) - /* Set UART Ch5 Port, SIN5_1(P63), SOT5_1(P64) */ - FM3_GPIO->PFR6_f.P3 = 1; - FM3_GPIO->PFR6_f.P4 = 1; - FM3_GPIO->EPFR08_f.SIN5S0 = 0; - FM3_GPIO->EPFR08_f.SIN5S1 = 1; - FM3_GPIO->EPFR08_f.SOT5B0 = 0; - FM3_GPIO->EPFR08_f.SOT5B1 = 1; -#elif defined(RT_USING_UART5_2) - /* Set UART Ch5 Port, SIN5_2(P36), SOT5_2(P37) */ - FM3_GPIO->PFR3_f.P6 = 1; - FM3_GPIO->PFR3_f.P7 = 1; - FM3_GPIO->EPFR08_f.SIN5S0 = 1; - FM3_GPIO->EPFR08_f.SIN5S1 = 1; - FM3_GPIO->EPFR08_f.SOT5B0 = 1; - FM3_GPIO->EPFR08_f.SOT5B1 = 1; -#endif - -#if defined(RT_USING_UART6_0) - /* Set UART Ch6 Port, SIN6_0(P53), SOT6_0(P54) */ - FM3_GPIO->PFR5_f.P3 = 1; - FM3_GPIO->PFR5_f.P4 = 1; - FM3_GPIO->EPFR08_f.SIN6S0 = 1; - FM3_GPIO->EPFR08_f.SIN6S1 = 0; - FM3_GPIO->EPFR08_f.SOT6B0 = 1; - FM3_GPIO->EPFR08_f.SOT6B1 = 0; -#elif defined(RT_USING_UART6_1) - /* Set UART Ch6 Port, SIN6_1(P33), SOT6_1(P32) */ - FM3_GPIO->PFR3_f.P2 = 1; - FM3_GPIO->PFR3_f.P3 = 1; - FM3_GPIO->EPFR08_f.SIN6S0 = 0; - FM3_GPIO->EPFR08_f.SIN6S1 = 1; - FM3_GPIO->EPFR08_f.SOT6B0 = 0; - FM3_GPIO->EPFR08_f.SOT6B1 = 1; -#endif - -#if defined(RT_USING_UART7_0) - /* Set UART Ch7 Port, SIN7_0(P59), SOT7_0(P5A) */ - FM3_GPIO->PFR5_f.P9 = 1; - FM3_GPIO->PFR5_f.PA = 1; - FM3_GPIO->EPFR08_f.SIN7S0 = 1; - FM3_GPIO->EPFR08_f.SIN7S1 = 0; - FM3_GPIO->EPFR08_f.SOT7B0 = 1; - FM3_GPIO->EPFR08_f.SOT7B1 = 0; -#elif defined(RT_USING_UART7_1) - /* Set UART Ch7 Port, SIN7_1(P4E), SOT7_1(P4D) */ - FM3_GPIO->PFR4_f.PD = 1; - FM3_GPIO->PFR4_f.PE = 1; - FM3_GPIO->EPFR08_f.SIN7S0 = 0; - FM3_GPIO->EPFR08_f.SIN7S1 = 1; - FM3_GPIO->EPFR08_f.SOT7B0 = 0; - FM3_GPIO->EPFR08_f.SOT7B1 = 1; -#endif -} - -static rt_err_t uart03_configure(struct rt_serial_device *serial, struct serial_configure *cfg) -{ - struct uart03_device *uart; - - RT_ASSERT(serial != RT_NULL); - - uart = (struct uart03_device *)serial->parent.user_data; - - uart->uart_regs->SMR = SMR_MD_UART | SMR_SOE; - - /* set baudreate */ - uart->uart_regs->BGR = (40000000UL + (cfg->baud_rate/2))/cfg->baud_rate - 1; - - /* set stop bits */ - switch (cfg->stop_bits) - { - case STOP_BITS_1: - uart->uart_regs->SMR_f.SBL = 0; - uart->uart_regs->ESCR_f.ESBL = 0; - break; - case STOP_BITS_2: - uart->uart_regs->SMR_f.SBL = 1; - uart->uart_regs->ESCR_f.ESBL = 0; - break; - case STOP_BITS_3: - uart->uart_regs->SMR_f.SBL = 0; - uart->uart_regs->ESCR_f.ESBL = 1; - break; - case STOP_BITS_4: - uart->uart_regs->SMR_f.SBL = 1; - uart->uart_regs->ESCR_f.ESBL = 1; - break; - default: - return RT_ERROR; - } - - /* set data bits */ - switch (cfg->data_bits) - { - case DATA_BITS_5: - uart->uart_regs->ESCR_f.L0 = 1; - uart->uart_regs->ESCR_f.L1 = 0; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_6: - uart->uart_regs->ESCR_f.L0 = 0; - uart->uart_regs->ESCR_f.L1 = 1; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_7: - uart->uart_regs->ESCR_f.L0 = 1; - uart->uart_regs->ESCR_f.L1 = 1; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_8: - uart->uart_regs->ESCR_f.L0 = 0; - uart->uart_regs->ESCR_f.L1 = 0; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_9: - uart->uart_regs->ESCR_f.L0 = 0; - uart->uart_regs->ESCR_f.L1 = 0; - uart->uart_regs->ESCR_f.L2 = 1; - break; - default: - return RT_ERROR; - } - - /* set parity */ - switch (cfg->parity) - { - case PARITY_NONE: - uart->uart_regs->ESCR_f.PEN = 0; - break; - case PARITY_EVEN: - uart->uart_regs->ESCR_f.PEN = 1; - uart->uart_regs->ESCR_f.P = 0; - break; - case PARITY_ODD: - uart->uart_regs->ESCR_f.PEN = 1; - uart->uart_regs->ESCR_f.P = 1; - break; - default: - return RT_ERROR; - } - - /* set bit order */ - switch (cfg->bit_order) - { - case BIT_ORDER_LSB: - uart->uart_regs->SMR_f.BDS = 0; - break; - case BIT_ORDER_MSB: - uart->uart_regs->SMR_f.BDS = 1; - break; - default: - return RT_ERROR; - } - - /* set NRZ mode */ - switch (cfg->invert) - { - case NRZ_NORMAL: - uart->uart_regs->ESCR_f.INV = 0; - break; - case NRZ_INVERTED: - uart->uart_regs->ESCR_f.INV = 1; - break; - default: - return RT_ERROR; - } - - uart->uart_regs->SCR = SCR_RXE | SCR_TXE | SCR_RIE; - - return RT_EOK; -} - -static rt_err_t uart03_control(struct rt_serial_device *serial, int cmd, void *arg) -{ - struct uart03_device *uart; - - RT_ASSERT(serial != RT_NULL); - uart = (struct uart03_device *)serial->parent.user_data; - - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: - /* disable rx irq */ - UART_DISABLE_IRQ(uart->rx_irq); - break; - case RT_DEVICE_CTRL_SET_INT: - /* enable rx irq */ - UART_ENABLE_IRQ(uart->rx_irq); - break; - } - - return (RT_EOK); -} - -static int uart03_putc(struct rt_serial_device *serial, char c) -{ - struct uart03_device *uart; - - RT_ASSERT(serial != RT_NULL); - - uart = (struct uart03_device *)serial->parent.user_data; - /* while send buffer is empty */ - while (!(uart->uart_regs->SSR & SSR_TDRE)); - /* write to send buffer */ - uart->uart_regs->TDR = c; - - return (1); -} - -static int uart03_getc(struct rt_serial_device *serial) -{ - struct uart03_device *uart; - int ch; - - RT_ASSERT(serial != RT_NULL); - - uart = (struct uart03_device *)serial->parent.user_data; - /* receive buffer is full */ - if (uart->uart_regs->SSR & SSR_RDRF) - { - ch = uart->uart_regs->RDR & 0xff; - return (ch); - } - else - return (-1); -} - -static struct rt_uart_ops uart03_ops = -{ - uart03_configure, - uart03_control, - uart03_putc, - uart03_getc, -}; - -static rt_err_t uart47_configure(struct rt_serial_device *serial, struct serial_configure *cfg) -{ - struct uart47_device *uart; - - RT_ASSERT(serial != RT_NULL); - - uart = (struct uart47_device *)serial->parent.user_data; - - uart->uart_regs->SMR = SMR_MD_UART | SMR_SOE; - - /* set baudreate */ - uart->uart_regs->BGR = (40000000UL + (cfg->baud_rate/2))/cfg->baud_rate - 1; - - /* set stop bits */ - switch (cfg->stop_bits) - { - case STOP_BITS_1: - uart->uart_regs->SMR_f.SBL = 0; - uart->uart_regs->ESCR_f.ESBL = 0; - break; - case STOP_BITS_2: - uart->uart_regs->SMR_f.SBL = 1; - uart->uart_regs->ESCR_f.ESBL = 0; - break; - case STOP_BITS_3: - uart->uart_regs->SMR_f.SBL = 0; - uart->uart_regs->ESCR_f.ESBL = 1; - break; - case STOP_BITS_4: - uart->uart_regs->SMR_f.SBL = 1; - uart->uart_regs->ESCR_f.ESBL = 1; - break; - default: - return RT_ERROR; - } - - /* set data bits */ - switch (cfg->data_bits) - { - case DATA_BITS_5: - uart->uart_regs->ESCR_f.L0 = 1; - uart->uart_regs->ESCR_f.L1 = 0; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_6: - uart->uart_regs->ESCR_f.L0 = 0; - uart->uart_regs->ESCR_f.L1 = 1; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_7: - uart->uart_regs->ESCR_f.L0 = 1; - uart->uart_regs->ESCR_f.L1 = 1; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_8: - uart->uart_regs->ESCR_f.L0 = 0; - uart->uart_regs->ESCR_f.L1 = 0; - uart->uart_regs->ESCR_f.L2 = 0; - break; - case DATA_BITS_9: - uart->uart_regs->ESCR_f.L0 = 0; - uart->uart_regs->ESCR_f.L1 = 0; - uart->uart_regs->ESCR_f.L2 = 1; - break; - default: - return RT_ERROR; - } - - /* set parity */ - switch (cfg->parity) - { - case PARITY_NONE: - uart->uart_regs->ESCR_f.PEN = 0; - break; - case PARITY_EVEN: - uart->uart_regs->ESCR_f.PEN = 1; - uart->uart_regs->ESCR_f.P = 0; - break; - case PARITY_ODD: - uart->uart_regs->ESCR_f.PEN = 1; - uart->uart_regs->ESCR_f.P = 1; - break; - default: - return RT_ERROR; - } - - /* set bit order */ - switch (cfg->bit_order) - { - case BIT_ORDER_LSB: - uart->uart_regs->SMR_f.BDS = 0; - break; - case BIT_ORDER_MSB: - uart->uart_regs->SMR_f.BDS = 1; - break; - default: - return RT_ERROR; - } - - /* set NRZ mode */ - switch (cfg->invert) - { - case NRZ_NORMAL: - uart->uart_regs->ESCR_f.INV = 0; - break; - case NRZ_INVERTED: - uart->uart_regs->ESCR_f.INV = 1; - break; - default: - return RT_ERROR; - } - - /* configure fifo */ - /* Disable the Data Lost detection */ - uart->uart_regs->FCR1_f.FLSTE = 0; - /* Enable the received FIFO idle detection */ - uart->uart_regs->FCR1_f.FRIE = 1; - /* Requests for the transmit FIFO data */ - uart->uart_regs->FCR1_f.FDRQ = 1; - /* Disable the transmit FIFO interrupt */ - uart->uart_regs->FCR1_f.FTIE = 0; - /* Transmit FIFO:FIFO1; Received FIFO:FIFO2 */ - uart->uart_regs->FCR1_f.FSEL = 0; - - /* Transfer data count */ - uart->uart_regs->FBYTE1 = 0; - /* Set the data count to generate a received interrupt */ - uart->uart_regs->FBYTE2 = uart->fifo_size; - - /* FIFO pointer Not reloaded */ - uart->uart_regs->FCR0_f.FLD = 0; - /* FIFO pointer Not saved */ - uart->uart_regs->FCR0_f.FSET = 0; - /* FIFO2 is reset */ - uart->uart_regs->FCR0_f.FCL2 = 1; - /* FIFO1 is reset */ - uart->uart_regs->FCR0_f.FCL1 = 1; - /* Enables the FIFO2 operation */ - uart->uart_regs->FCR0_f.FE2 = 1; - /* Enables the FIFO1 operation */ - uart->uart_regs->FCR0_f.FE1 = 1; - - /* enable receive and send */ - uart->uart_regs->SCR = SCR_RXE | SCR_TXE | SCR_RIE; - - return RT_EOK; -} - -static rt_err_t uart47_control(struct rt_serial_device *serial, int cmd, void *arg) -{ - struct uart47_device *uart; - - RT_ASSERT(serial != RT_NULL); - uart = (struct uart47_device *)serial->parent.user_data; - - switch (cmd) - { - case RT_DEVICE_CTRL_CLR_INT: - /* disable rx irq */ - UART_DISABLE_IRQ(uart->rx_irq); - break; - case RT_DEVICE_CTRL_SET_INT: - /* enable rx irq */ - UART_ENABLE_IRQ(uart->rx_irq); - break; - } - - return (RT_EOK); -} - -static int uart47_putc(struct rt_serial_device *serial, char c) -{ - struct uart47_device *uart; - - RT_ASSERT(serial != RT_NULL); - - uart = (struct uart47_device *)serial->parent.user_data; - - /* while send fifo is empty */ - while (!(uart->uart_regs->SSR & SSR_TDRE)); - /* write to fifo */ - uart->uart_regs->TDR = c; - - return (1); -} - -static int uart47_getc(struct rt_serial_device *serial) -{ - int ch; - struct uart47_device *uart; - - RT_ASSERT(serial != RT_NULL); - - uart = (struct uart47_device *)serial->parent.user_data; - - /* receive is disabled */ - if (!(uart->uart_regs->SCR & SCR_RXE)) - return (-1); - /* receive fifo is not full */ - if ((uart->uart_regs->SSR & SSR_RDRF) == 0) - return (-1); - /* read char */ - ch = uart->uart_regs->RDR & 0xff; - - return (ch); -} - -static struct rt_uart_ops uart47_ops = -{ - uart47_configure, - uart47_control, - uart47_putc, - uart47_getc, -}; - -void rt_hw_serial_init(void) -{ - struct serial_configure config; - - uart_pin_setup(); - -#if (defined(RT_USING_UART0_0) || defined(RT_USING_UART0_1)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial0.ops = &uart03_ops; - serial0.config = config; - - /* register UART0 device */ - rt_hw_serial_register(&serial0, "uart0", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart0); -#endif - -#if (defined(RT_USING_UART1_0) || defined(RT_USING_UART1_1)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial1.ops = &uart03_ops; - serial1.config = config; - - /* register UART1 device */ - rt_hw_serial_register(&serial1, - "uart1", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart1); -#endif - -#if (defined(RT_USING_UART2_0) || defined(RT_USING_UART2_1) || defined(RT_USING_UART2_2)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial2.ops = &uart03_ops; - serial2.config = config; - - /* register UART2 device */ - rt_hw_serial_register(&serial2, - "uart2", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart2); -#endif - -#if (defined(RT_USING_UART3_0) || defined(RT_USING_UART3_1) || defined(RT_USING_UART3_2)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial3.ops = &uart03_ops; - serial3.config = config; - - /* register UART3 device */ - rt_hw_serial_register(&serial3, - "uart3", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart3); -#endif - -#if (defined(RT_USING_UART4_0) || defined(RT_USING_UART4_1) || defined(RT_USING_UART4_2)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial4.ops = &uart47_ops; - serial4.config = config; - - /* register UART4 device */ - rt_hw_serial_register(&serial4, - "uart4", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart4); -#endif - -#if (defined(RT_USING_UART5_0) || defined(RT_USING_UART5_1) || defined(RT_USING_UART5_2)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial5.ops = &uart47_ops; - serial5.config = config; - - /* register UART5 device */ - rt_hw_serial_register(&serial5, - "uart5", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart5); -#endif - -#if (defined(RT_USING_UART6_0) || defined(RT_USING_UART6_1)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial6.ops = &uart47_ops; - serial6.config = config; - - /* register UART6 device */ - rt_hw_serial_register(&serial6, - "uart6", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart6); -#endif - -#if (defined(RT_USING_UART7_0) || defined(RT_USING_UART7_1)) - config.baud_rate = BAUD_RATE_115200; - config.bit_order = BIT_ORDER_LSB; - config.data_bits = DATA_BITS_8; - config.parity = PARITY_NONE; - config.stop_bits = STOP_BITS_1; - config.invert = NRZ_NORMAL; - config.bufsz = RT_SERIAL_RB_BUFSZ; - - serial7.ops = &uart47_ops; - serial7.config = config; - - /* register UART7 device */ - rt_hw_serial_register(&serial7, - "uart7", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart7); -#endif -} diff --git a/bsp/mb9bf506r/drivers/fm3_uart.h b/bsp/mb9bf506r/drivers/fm3_uart.h deleted file mode 100644 index 824592c850..0000000000 --- a/bsp/mb9bf506r/drivers/fm3_uart.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2006-03-13 Bernard first version - * 2011-05-15 lgnq modified according bernard's implementaion. - */ - -#ifndef __FM3_UART_H__ -#define __FM3_UART_H__ - -#include -#include "mb9bf506r.h" - -#define SMR_SOE 0x01U -#define SMR_BDS 0x04U -#define SMR_SBL 0x08U -#define SMR_WUCR 0x10U -#define SMR_MD_UART 0x00U -#define SMR_MD_UART_MP 0x20U -#define SMR_MD_SIO 0x40U -#define SMR_MD_LIN 0x60U -#define SMR_MD_I2C 0x80U - -#define SCR_TXE 0x01U -#define SCR_RXE 0x02U -#define SCR_TBIE 0x04U -#define SCR_TIE 0x08U -#define SCR_RIE 0x10U -#define SCR_UPGL 0x80U - -#define SSR_TBI 0x01U -#define SSR_TDRE 0x02U -#define SSR_RDRF 0x04U -#define SSR_ORE 0x08U -#define SSR_FRE 0x10U -#define SSR_PE 0x20U -#define SSR_REC 0x80U - -#define ESCR_P 0x08U -#define ESCR_PEN 0x10U -#define ESCR_INV 0x20U -#define ESCR_ESBL 0x40U -#define ESCR_FLWEN 0x80U -#define ESCR_DATABITS_8 0x00U -#define ESCR_DATABITS_5 0x01U -#define ESCR_DATABITS_6 0x02U -#define ESCR_DATABITS_7 0x03U -#define ESCR_DATABITS_9 0x04U - -#define FIFO_SIZE 16 - -/* - * Enable/DISABLE Interrupt Controller - */ -/* deviation from MISRA-C:2004 Rule 19.7 */ -#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) -#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) - -struct uart03_device -{ - FM3_MFS03_UART_TypeDef *uart_regs; - /* irq number */ - IRQn_Type rx_irq; - IRQn_Type tx_irq; -}; - -struct uart47_device -{ - FM3_MFS47_UART_TypeDef *uart_regs; - /* irq number */ - IRQn_Type rx_irq; - IRQn_Type tx_irq; - rt_uint8_t fifo_size; -}; - -void rt_hw_serial_init(void); - -#endif diff --git a/bsp/mb9bf506r/drivers/led.c b/bsp/mb9bf506r/drivers/led.c deleted file mode 100644 index 3f6a11fcfe..0000000000 --- a/bsp/mb9bf506r/drivers/led.c +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#include -#include - -#include "mb9bf506r.h" -#include "led.h" - -void rt_hw_led_on(rt_uint8_t num) -{ - RT_ASSERT(num < LEDS_MAX_NUMBER); - - switch (num) - { - case 1: - USER_LED_PDOR &= ~USER_LED1; - break; - case 2: - USER_LED_PDOR &= ~USER_LED2; - break; - case 3: - USER_LED_PDOR &= ~USER_LED3; - break; - default: - break; - } -} - -void rt_hw_led_off(rt_uint8_t num) -{ - RT_ASSERT(num < LEDS_MAX_NUMBER); - - switch (num) - { - case 1: - USER_LED_PDOR |= USER_LED1; - break; - case 2: - USER_LED_PDOR |= USER_LED2; - break; - case 3: - USER_LED_PDOR |= USER_LED3; - break; - default: - break; - } -} - -void rt_hw_led_toggle(rt_uint8_t num) -{ - RT_ASSERT(num < LEDS_MAX_NUMBER); - - switch (num) - { - case 1: - if (USER_LED_PDOR&USER_LED1) - USER_LED_PDOR &= ~USER_LED1; - else - USER_LED_PDOR |= USER_LED1; - break; - case 2: - if (USER_LED_PDOR&USER_LED2) - USER_LED_PDOR &= ~USER_LED2; - else - USER_LED_PDOR |= USER_LED2; - break; - case 3: - if (USER_LED_PDOR&USER_LED3) - USER_LED_PDOR &= ~USER_LED3; - else - USER_LED_PDOR |= USER_LED3; - break; - default: - break; - } -} - -void led_init(void) -{ - /*Select CPIO function*/ - USER_LED_PFR &= ~USER_LED_MASK; - /* disable analog input */ - FM3_GPIO->ADE &= ~USER_LED_MASK; - /*Set CPIO Pull-Up function*/ - USER_LED_PCR |= USER_LED_MASK; - /*Make led pins outputs*/ - USER_LED_DDR |= USER_LED_MASK; - USER_LED_PDOR |= USER_LED_MASK; -} - -void pwm_update(rt_uint16_t value) -{ - FM3_BT2_PWM->PDUT = value; -} - -static void led1_thread_entry(void *parameter) -{ - while (1) - { - rt_hw_led_toggle(1); - rt_thread_delay(RT_TICK_PER_SECOND); - } -} - -static void led2_thread_entry(void *parameter) -{ - while (1) - { - rt_hw_led_toggle(2); - rt_thread_delay(RT_TICK_PER_SECOND/2); - } -} - -static rt_thread_t led1_thread; -static rt_thread_t led2_thread; -void rt_hw_led_init(void) -{ - led_init(); - - led1_thread = rt_thread_create("led1", led1_thread_entry, RT_NULL, 384, 29, 5); - if (led1_thread != RT_NULL) - rt_thread_startup(led1_thread); - - led2_thread = rt_thread_create("led2", led2_thread_entry, RT_NULL, 384, 30, 5); - if (led2_thread != RT_NULL) - rt_thread_startup(led2_thread); -} - - diff --git a/bsp/mb9bf506r/drivers/led.h b/bsp/mb9bf506r/drivers/led.h deleted file mode 100644 index bcbfaf9b62..0000000000 --- a/bsp/mb9bf506r/drivers/led.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-03-03 lgnq - */ - -#ifndef __LED_H__ -#define __LED_H__ - -#include "mb9bf506r.h" - -#define LEDS_MAX_NUMBER 4 - -/* LED */ -#define USER_LED1 (1UL<<0x9) -#define USER_LED2 (1UL<<0xa) -#define USER_LED3 (1UL<<0xb) - -#define USER_LED_MASK (USER_LED1 | USER_LED2 | USER_LED3) -#define USER_LED_PFR FM3_GPIO->PFR1 -#define USER_LED_PCR FM3_GPIO->PCR1 -#define USER_LED_PDOR FM3_GPIO->PDOR1 -#define USER_LED_DDR FM3_GPIO->DDR1 - -#define RT_DEVICE_CTRL_LED_ON 0 -#define RT_DEVICE_CTRL_LED_OFF 1 -#define RT_DEVICE_CTRL_LED_TOGGLE 2 - -void rt_hw_led_init(void); -void rt_hw_led_on(rt_uint8_t num); -void rt_hw_led_off(rt_uint8_t num); -void rt_hw_led_toggle(rt_uint8_t num); -void pwm_update(rt_uint16_t value); - -#endif diff --git a/bsp/mb9bf506r/drivers/nand.c b/bsp/mb9bf506r/drivers/nand.c deleted file mode 100644 index 1c03120d14..0000000000 --- a/bsp/mb9bf506r/drivers/nand.c +++ /dev/null @@ -1,663 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-05-25 Bernard first version - */ - -#include "nand.h" -#include "mb9bf506r.h" - -/* - * NandFlash driver for SamSung K9F5608 - * 32M x 8bit - */ -#define PAGE_SIZE 512 -#define PAGE_PER_BLOCK 32 -#define BLOCK_NUM 2048 - -/* device driver debug trace */ -/* #define NAND_DEBUG */ -#ifdef NAND_DEBUG -#define trace_log rt_kprintf -#else -#define trace_log(...) -#endif - -/* - * OOB, - * when block has been erased, OOB is 0xff. - * when block has been written, OOB is 0x00. - */ -struct rt_device_nand -{ - struct rt_device parent; /* which is inherited from rt_device */ - - rt_uint16_t block_num; /* total block number in device */ - rt_uint16_t page_per_block; /* pages in one block */ - rt_uint16_t page_size; /* page size */ - - /* this buffer which used as to save data before erase block */ - rt_uint8_t block_buffer[PAGE_SIZE * PAGE_PER_BLOCK]; -}; -static struct rt_device_nand _nand; - -/* Flash operation definition */ -#define NF_CMD(cmd) {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_CMD_OFFSET) = (unsigned char)(cmd);} -#define NF_ADDR(addr) {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_ADDR_OFFSET)= (unsigned char)(addr);} -#define NF_RDDATA() (*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_DATA_OFFSET)) -#define NF_WRDATA(data) {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_DATA_OFFSET)= (unsigned char)(data);} -#define NF_CLR_ALE() {*(volatile unsigned char*)(NF_FLASH_BASE_ADDR+NF_ALE_OFFSET) = (unsigned char)0;} - -/* Flash Control IO definition */ -#define NF_OE_H() {IO_NF_PDOR |= NF_EN;} -#define NF_OE_L() {IO_NF_PDOR &= ~NF_EN;} - -#define NF_DATA_OUT() {IO_NF_PDOR &= ~NF_DATA_DIR;} -#define NF_DATA_IN() {IO_NF_PDOR |= NF_DATA_DIR;} - -static unsigned char NF_ReadStatus(void); -static void Wait(unsigned int cnt); -static void NF_Reset(void); - -static void Wait(unsigned int cnt) -{ - while(cnt--); -} - -static void NF_Reset(void) -{ - NF_OE_L(); - NF_DATA_OUT(); - NF_CMD(NAND_CMD_RESET); - NF_OE_H(); - - Wait(10000); /* wait for Trst */ -} - -static unsigned char NF_ReadStatus(void) -{ - unsigned int timeout=0; - NF_DATA_OUT(); - NF_CMD(NAND_CMD_STATUS); - NF_DATA_IN(); - - while(!(NF_RDDATA() & 0x40)) - { - timeout++; - if(timeout == 0x00080000) - return FLASH_NG; - } - if(NF_RDDATA() & 0x01)return FLASH_NG; - - return FLASH_OK; -} - -/* - * @ Funciton: NF_Init - * Parameter: None - * Return: None - */ -static void NF_Init(void) -{ - FM3_GPIO->PFR5 |= (0x7ff); /* D0-D5, CS7, ALE, CLE, WEX, REX */ - FM3_GPIO->PFR3 |= (0x3); /* D6-D7 */ - FM3_GPIO->EPFR10 |= (1<<13 /* CS enable */ - |1<<6 /* ALE, CLE, WEX, REX enable */ - |1<<0); /* D0-D7 enable */ - FM3_EXBUS->AREA7 = 0x001f00e0; /* Select CS7 area, 32Mbyte size */ - FM3_EXBUS->MODE7 |= (1<<4); /* Nand Flash mode turn on, set 8 bit width */ - - IO_NF_PFR = IO_NF_PFR & ~(NF_EN|NF_DATA_DIR); - IO_NF_DDR = IO_NF_DDR | (NF_EN|NF_DATA_DIR); - IO_NF_PDOR = IO_NF_PDOR | (NF_EN | NF_DATA_DIR); /* disable Flash operation */ - - /*Reset NAND*/ - NF_Reset(); -} - -static void NF_UnInit(void) -{ - FM3_GPIO->PFR5 &= ~(0x7ff); /* disable D0-D5, CS7, ALE, CLE, WEX, REX */ - FM3_GPIO->PFR3 &= ~(0x3); /* disable D6-D7 */ - FM3_GPIO->EPFR10 &= ~(1<<13 /* disable CS enable */ - |1<<6 /* disable ALE, CLE, WEX, REX enable */ - |1<<0); /* disable D0-D7 enable */ - FM3_EXBUS->MODE7 &= ~(1<<4); - IO_NF_PFR = IO_NF_PFR & ~(NF_EN|NF_DATA_DIR); - IO_NF_DDR = IO_NF_DDR | (NF_EN|NF_DATA_DIR); - IO_NF_PDOR = IO_NF_PDOR | (NF_EN | NF_DATA_DIR); /* disable Flash operation */ -} - -/* - * @ Funciton: NF_ReadPage - * Parameter: block (max: 2048) - * page (max:32) - * buffer: pointer to data buffer - * Return: 0: Flash Operation OK - * 1: Flash Operation NG - */ -int NF_ReadPage(unsigned int block, unsigned int page, unsigned char *buffer, - unsigned char *oob) -{ - unsigned int blockPage,i; - - NF_Init(); - blockPage=(block<<5)+page; /* 1 block=32 page */ - NF_OE_L(); - NF_DATA_OUT(); - if (buffer != RT_NULL) - { - volatile unsigned char ch; - - NF_CMD(NAND_CMD_READ0); /* send read data */ - - NF_ADDR(0); - NF_ADDR(blockPage & 0xff); - NF_ADDR((blockPage>>8) & 0xff); /* send 3 byte address */ - NF_CLR_ALE(); - NF_DATA_IN(); - - Wait(500); - - for(i=0;i<512;i++) /* read 512 bytes data */ - buffer[i] = NF_RDDATA(); - for(i=0;i<16;i++) /* read 16 bytes oob */ - if (oob != RT_NULL) - oob[i] = NF_RDDATA(); - else - ch = NF_RDDATA(); - } - else - { - NF_CMD(NAND_CMD_READOOB); /* send read data */ - - NF_ADDR(0); - NF_ADDR(blockPage & 0xff); - NF_ADDR((blockPage>>8) & 0xff); /* send 3 byte address */ - NF_CLR_ALE(); - NF_DATA_IN(); - - Wait(500); - - for (i=0; i<16; i++) /* read 16 bytes oob */ - oob[i] = NF_RDDATA(); - } - - NF_OE_H(); - NF_UnInit(); - return 0; -} - -/* - * @ Funciton: NF_EraseBlock - * Parameter: block (max: 2048) - * Return: 0: Flash Operation OK - * 1: Flash Operation NG - */ -int NF_EraseBlock(unsigned int block) -{ - rt_uint32_t blockPage; - - trace_log("Erase block %d: ", block); - - NF_Init(); - blockPage = (block << 5); - NF_OE_L(); - NF_DATA_OUT(); - NF_CMD(NAND_CMD_ERASE1); /* send erase command */ - NF_ADDR(blockPage & 0xff); - NF_ADDR((blockPage >> 8) & 0xff); - NF_CMD(NAND_CMD_ERASE2); /* start erase */ - - if(NF_ReadStatus()) - { - NF_Reset(); - NF_OE_H(); - NF_UnInit(); - trace_log("Failed\n"); - rt_kprintf("erase block failed\n"); - - return FLASH_NG; - } - - NF_OE_H(); - NF_UnInit(); - - trace_log("OK\n"); - - return FLASH_OK; -} - -/* - * @ Funciton: NF_WritePage - * Parameter: block (max: 2048) - * page (max:32) - * buffer: pointer to data buffer - * Return: 0: Flash Operation OK - * 1: Flash Operation NG - */ -int NF_WritePage(unsigned block, unsigned page, const rt_uint8_t *buffer) -{ - unsigned int blockPage,i; - unsigned char se[16] = {0}; - unsigned char data; - - blockPage = (block<<5)+page; - NF_Init(); - NF_OE_L(); - NF_DATA_OUT(); - NF_CMD(0x00); /* set programming area */ - NF_CMD(NAND_CMD_SEQIN); /* send write command */ - NF_ADDR(0); - NF_ADDR(blockPage & 0xff); - NF_ADDR((blockPage>>8) & 0xff); - NF_CLR_ALE(); - - for(i=0;i<512;i++) NF_WRDATA(buffer[i]); /* write data */ - for(i=0;i<16;i++) NF_WRDATA(se[i]); /* dummy write */ - - NF_CMD(NAND_CMD_PAGEPROG); /* start programming */ - - if(NF_ReadStatus()) - { - NF_Reset(); - NF_OE_H(); - NF_UnInit(); - - trace_log("write failed\n"); - return FLASH_NG; - } - - /* verify the write data */ - NF_DATA_OUT(); - NF_CMD(NAND_CMD_READ0); /* send read command */ - NF_ADDR(0); - NF_ADDR(blockPage & 0xff); - NF_ADDR((blockPage>>8) & 0xff); - NF_CLR_ALE(); - NF_DATA_IN(); - - Wait(500); - for(i=0; i<512; i++) - { - data=NF_RDDATA(); /* verify 1-512 byte */ - if(data != buffer[i]) - { - trace_log("block %d, page %d\n", block , page); - trace_log("write data failed[%d]: %02x %02x\n", i, data, buffer[i]); - - NF_Reset(); - NF_OE_H(); - NF_UnInit(); - return FLASH_NG; - } - } - - for(i=0; i<16; i++) - { - data=NF_RDDATA(); /* verify 16 byte dummy data */ - if(data != se[i]) - { - trace_log("block %d, page %d\n", block , page); - trace_log("write oob failed[%d]: %02x %02x\n", i, data, se[i]); - NF_Reset(); - NF_OE_H(); - NF_UnInit(); - return FLASH_NG; - } - } - - NF_OE_H(); - NF_UnInit(); - return FLASH_OK; -} - -/* - * @ Funciton: NF_ReadID - * Parameter: id: pointer to device ID - * Return: None - */ -void NF_ReadID(unsigned char *id) -{ - unsigned char maker_code; - NF_Init(); - NF_OE_L(); - NF_DATA_OUT(); - NF_CMD(NAND_CMD_READID); - NF_ADDR(0x00); - NF_CLR_ALE(); - Wait(10); - NF_DATA_IN(); - maker_code = NF_RDDATA(); - maker_code = maker_code; - *id = NF_RDDATA(); - NF_OE_H(); - NF_UnInit(); -} - -static rt_err_t rt_nand_init (rt_device_t dev) -{ - /* empty implementation */ - return RT_EOK; -} - -static rt_err_t rt_nand_open(rt_device_t dev, rt_uint16_t oflag) -{ - /* empty implementation */ - return RT_EOK; -} - -static rt_err_t rt_nand_close(rt_device_t dev) -{ - /* empty implementation */ - return RT_EOK; -} - -/* nand device read */ -static rt_size_t rt_nand_read (rt_device_t dev, rt_off_t pos, void* buffer, - rt_size_t size) -{ - rt_ubase_t block; /* block of position */ - rt_ubase_t page, index; /* page in block of position */ - rt_uint8_t *page_ptr, oob[16]; - struct rt_device_nand *nand; - - /* get nand device */ - nand = (struct rt_device_nand*) dev; - RT_ASSERT(nand != RT_NULL); - - /* get block and page */ - block = pos / nand->page_per_block; - page = pos % nand->page_per_block; - - trace_log("nand read: position %d, block %d, page %d, size %d\n", - pos, block, page, size); - - /* set page buffer pointer */ - page_ptr = (rt_uint8_t*) buffer; - for (index = 0; index < size; index ++) - { - NF_ReadPage(block, page + index, page_ptr, oob); - page_ptr += nand->page_size; - - if (page + index > nand->page_per_block) - { - block += 1; - page = 0; - } - } - - /* return read size (count of block) */ - return size; -} - -/* - * write pages by erase block first - * @param nand the nand device driver - * @param block the block of page - * @param page the page - * @param buffer the data buffer to be written - * @param pages the number of pages to be written - */ -static int rt_nand_eraseblock_writepage(struct rt_device_nand* nand, - rt_ubase_t block, rt_ubase_t page, - const rt_uint8_t *buffer, rt_ubase_t pages) -{ - rt_ubase_t index; - rt_uint32_t page_status; - rt_uint8_t *page_ptr, oob[16]; - - /* set page status */ - page_status = 0; - - /* read each page in block */ - page_ptr = nand->block_buffer; - for (index = 0; index < nand->page_per_block; index ++) - { - NF_ReadPage(block, index, page_ptr, oob); - if (!oob[0]) - page_status |= (1 << index); - page_ptr += nand->page_size; - } - - /* erase block */ - NF_EraseBlock(block); - - page_ptr = &(nand->block_buffer[page * nand->page_size]); - /* merge buffer to page buffer */ - for (index = 0; index < pages; index ++) - { - rt_memcpy(page_ptr, buffer, nand->page_size); - - /* set page status */ - page_status |= (1 << (page + index)); - - /* move to next page */ - page_ptr += nand->page_size; - buffer += nand->page_size; - } - - /* write to flash */ - page_ptr = nand->block_buffer; - for (index = 0; index < nand->page_per_block; index ++) - { - if (page_status & (1 << index)) - NF_WritePage(block, index, page_ptr); - - /* move to next page */ - page_ptr += nand->page_size; - } - - return 0; -} - -/* nand device write */ -static rt_size_t rt_nand_write (rt_device_t dev, rt_off_t pos, - const void* buffer, rt_size_t size) -{ - rt_ubase_t block, page; - rt_uint8_t oob[16]; - struct rt_device_nand *nand; - - nand = (struct rt_device_nand*) dev; - RT_ASSERT(nand != RT_NULL); - - /* get block and page */ - block = pos / nand->page_per_block; - page = pos % nand->page_per_block; - - trace_log("nand write: position %d, block %d, page %d, size %d\n", - pos, block, page, size); - - if (size == 1) - { - /* write one page */ - - /* read oob to get page status */ - NF_ReadPage(block, page, RT_NULL, oob); - if (oob[0]) - NF_WritePage(block, page, buffer); - else - /* erase block and then write page */ - rt_nand_eraseblock_writepage(nand, block, page, buffer, 1); - } - else if (size > 1) - { - rt_ubase_t index; - rt_ubase_t need_erase_block; - const rt_uint8_t *page_ptr; - rt_ubase_t chunk_pages, pages; - - pages = size; - page_ptr = (const rt_uint8_t*) buffer; - do - { - need_erase_block = 0; - /* calculate pages in current chunk */ - if (pages > nand->page_per_block - page) - chunk_pages = nand->page_per_block - page; - else - chunk_pages = pages; - - /* get page status in current block */ - for (index = page; index < page + chunk_pages; index ++) - { - NF_ReadPage(block, index, RT_NULL, oob); - if (!oob[0]) - { - /* this page has data, need erase this block firstly */ - need_erase_block = 1; - break; - } - } - - if (need_erase_block) - { - /* erase block and then write it */ - rt_nand_eraseblock_writepage(nand, block, page, page_ptr, chunk_pages); - page_ptr += chunk_pages * nand->page_size; - } - else - { - /* write pages directly */ - for (index = page; index < page + chunk_pages; index ++) - { - NF_WritePage(block, index, page_ptr); - page_ptr += nand->page_size; - } - } - - pages -= chunk_pages; - page = 0; block ++; /* move to next block */ - } - while (pages); - } - - return size; -} - -static rt_err_t rt_nand_control (rt_device_t dev, int cmd, void *args) -{ - struct rt_device_nand *nand; - - nand = (struct rt_device_nand*) dev; - RT_ASSERT(dev != RT_NULL); - - switch (cmd) - { - case RT_DEVICE_CTRL_BLK_GETGEOME: - { - struct rt_device_blk_geometry *geometry; - - geometry = (struct rt_device_blk_geometry *)args; - if (geometry == RT_NULL) return -RT_ERROR; - - geometry->bytes_per_sector = nand->page_size; - geometry->block_size = nand->page_size * nand->page_per_block; - geometry->sector_count = nand->block_num * nand->page_per_block; - } - break; - } - - return RT_EOK; -} - -void rt_hw_nand_init(void) -{ - /* initialize nand flash structure */ - _nand.block_num = BLOCK_NUM; - _nand.page_per_block = PAGE_PER_BLOCK; - _nand.page_size = PAGE_SIZE; - - rt_memset(_nand.block_buffer, 0, sizeof(_nand.block_buffer)); - - _nand.parent.type = RT_Device_Class_MTD; - _nand.parent.rx_indicate = RT_NULL; - _nand.parent.tx_complete = RT_NULL; - _nand.parent.init = rt_nand_init; - _nand.parent.open = rt_nand_open; - _nand.parent.close = rt_nand_close; - _nand.parent.read = rt_nand_read; - _nand.parent.write = rt_nand_write; - _nand.parent.control = rt_nand_control; - - /* register a MTD device */ - rt_device_register(&(_nand.parent), "nand", RT_DEVICE_FLAG_RDWR); -} - -#ifdef NAND_DEBUG -#include -unsigned char nand_buffer[512]; -unsigned char nand_oob[16]; - -void dump_mem(unsigned char* buffer, int length) -{ - int i; - - if (length > 64) length = 64; - for (i = 0; i < length; i ++) - { - rt_kprintf("%02x ", *buffer++); - if (((i+1) % 16) == 0) - rt_kprintf("\n"); - } - rt_kprintf("\n"); -} - -void nand_read(int block, int page) -{ - rt_kprintf("read block %d, page %d\n", block, page); - - NF_ReadPage(block, page, nand_buffer, nand_oob); - rt_kprintf("page data:\n"); - dump_mem(nand_buffer, 512); - rt_kprintf("oob data:\n"); - dump_mem(nand_oob, 16); -} -FINSH_FUNCTION_EXPORT_ALIAS(nand_read, read_page, read page[block/page]); - -void nand_write(int block, int page) -{ - int i; - for (i = 0; i < 512; i ++) - nand_buffer[i] = i; - - NF_WritePage(block, page, nand_buffer); -} -FINSH_FUNCTION_EXPORT_ALIAS(nand_write, write_page, write page[block/page]); - -void nand_erase(int block) -{ - NF_EraseBlock(block); -} -FINSH_FUNCTION_EXPORT_ALIAS(nand_erase, erase_block, erase block[block]); - -void nand_readoob(int block, int page) -{ - rt_kprintf("read oob on block %d, page %d\n", block, page); - - NF_ReadPage(block, page, RT_NULL, (unsigned char*)nand_oob); - rt_kprintf("oob data:\n"); - dump_mem(nand_oob, 16); -} -FINSH_FUNCTION_EXPORT_ALIAS(nand_readoob, readoob, read oob[block/page]); - -void nand_erase_chip(void) -{ - int i; - unsigned char id; - - NF_ReadID(&id); - rt_kprintf("id: %02x\n", id); - - for (i = 0; i < 2048; i ++) - { - NF_EraseBlock(i); - } -} -FINSH_FUNCTION_EXPORT_ALIAS(nand_erase_chip, erase_chip, erase whole chip); -#endif diff --git a/bsp/mb9bf506r/drivers/nand.h b/bsp/mb9bf506r/drivers/nand.h deleted file mode 100644 index d00909ddce..0000000000 --- a/bsp/mb9bf506r/drivers/nand.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-05-25 Bernard first version - */ - -#ifndef __NAND_H__ -#define __NAND_H__ - -#include - -#define IO_NF_PFR FM3_GPIO->PFR3 -#define IO_NF_DDR FM3_GPIO->DDR3 -#define IO_NF_PDOR FM3_GPIO->PDOR3 - -#define NF_EN 0x0008 -#define NF_DATA_DIR 0x0004 - -#define EXT_BUS_BASE_ADDR 0x60000000 -#define EXT_CS7_OFFSET 0x0E000000 -#define EXT_CS7_SIZE 0x02000000 - -#define NF_FLASH_BASE_ADDR (EXT_BUS_BASE_ADDR+EXT_CS7_OFFSET) - -#define NF_ALE_OFFSET 0x00003000 -#define NF_ADDR_OFFSET 0x00002000 -#define NF_CMD_OFFSET 0x00001000 -#define NF_DATA_OFFSET 0x00000000 - -/* NAND command */ -#define NAND_CMD_READ0 0x00 -#define NAND_CMD_READ1 0x01 -#define NAND_CMD_PAGEPROG 0x10 -#define NAND_CMD_READOOB 0x50 -#define NAND_CMD_ERASE1 0x60 -#define NAND_CMD_STATUS 0x70 -#define NAND_CMD_SEQIN 0x80 -#define NAND_CMD_READID 0x90 -#define NAND_CMD_READID1 0x91 -#define NAND_CMD_ERASE2 0xd0 -#define NAND_CMD_RESET 0xff - -#define FLASH_OK 0 -#define FLASH_NG 1 - -/* nand flash device initialization */ -void rt_hw_nand_init(void); - -#endif diff --git a/bsp/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h b/bsp/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h deleted file mode 100644 index 1b7029a755..0000000000 --- a/bsp/mb9bf506r/libraries/CMSIS/Include/cmsis_iar.h +++ /dev/null @@ -1,209 +0,0 @@ -/************************************************** - * - * This file shall be included in appropriate CMSIS header - * files, to provide required functions and intrinsics when - * building with the IAR C/C++ Compiler for ARM (iccarm). - * - * Copyright 2011 IAR Systems. All rights reserved. - * - * $Revision: 50409 $ - * - **************************************************/ - -#ifndef __CMSIS_IAR_H__ -#define __CMSIS_IAR_H__ - -#ifndef __ICCARM__ - #error This file should only be compiled by ICCARM -#endif - -#pragma system_include - -#include - -#if (__CORE__ == __ARM6M__) - /* Avoid clash between intrinsics.h and arm_math.h when compiling for Cortex-M0. */ - #define __CLZ __cmsis_iar_clz - #define __SSAT __cmsis_iar_ssat -#endif - -#pragma diag_suppress=Pe940 -#pragma diag_suppress=Pe177 - -#define __enable_irq __enable_interrupt -#define __disable_irq __disable_interrupt -#define __NOP __no_operation - -#if (__VER__ < 6020000) /* If iccarm version is older than 6.20.0 ---------- */ - -#if (__VER__ < 6010002) /* If iccarm version is older than 6.10.2 ---------- */ - -static uint32_t __get_APSR(void) -{ - __ASM("mrs r0, apsr"); -} - -static uint32_t __get_xPSR(void) -{ - __ASM("mrs r0, psr"); /* assembler does not know "xpsr" */ -} - -#endif /* __VER__ < 6010002 */ - -static uint32_t __get_IPSR(void) -{ - __ASM("mrs r0, ipsr"); -} - -static uint32_t __get_PSR(void) -{ - __ASM("mrs r0, psr"); -} - -static uint32_t __get_PSP(void) -{ - __ASM("mrs r0, psp"); -} - -static void __set_PSP(uint32_t topOfProcStack) -{ - __ASM("msr psp, r0"); -} - -static uint32_t __get_MSP(void) -{ - __ASM("mrs r0, msp"); -} - -static void __set_MSP(uint32_t topOfMainStack) -{ - __ASM("msr msp, r0"); -} - -static __INLINE void __WFI(void) -{ - __ASM ("wfi"); -} - -static __INLINE void __WFE(void) -{ - __ASM ("wfe"); -} - -static __INLINE void __SEV(void) -{ - __ASM ("sev"); -} - -static uint32_t __REV16(uint32_t value) -{ - __ASM("rev16 r0, r0"); -} - -#else /* __VER__ < 6020000 */ - -static uint32_t __get_xPSR(void) -{ - return __get_PSR(); /* __get_PSR() intrinsic introduced in iccarm 6.20 */ -} - -#endif /* __VER__ < 6020000 */ - -#if (__CORTEX_M >= 0x03) /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ - -#if (__VER__ < 6020000) /* If iccarm version is older than 6.20.0 ---------- */ - -static __INLINE void __enable_fault_irq(void) -{ - __ASM ("cpsie f"); -} - -static __INLINE void __disable_fault_irq(void) -{ - __ASM ("cpsid f"); -} - -static uint32_t __RBIT(uint32_t value) -{ - __ASM("rbit r0, r0"); -} - -static uint8_t __LDREXB(volatile uint8_t *addr) -{ - __ASM("ldrexb r0, [r0]"); -} - -static uint16_t __LDREXH(volatile uint16_t *addr) -{ - __ASM("ldrexh r0, [r0]"); -} - -static uint32_t __LDREXW(volatile uint32_t *addr) -{ - __ASM("ldrex r0, [r0]"); -} - -static uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) -{ - __ASM("strexb r0, r0, [r1]"); -} - -static uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) -{ - __ASM("strexh r0, r0, [r1]"); -} - -static uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) -{ - __ASM("strex r0, r0, [r1]"); -} - -static __INLINE void __CLREX(void) -{ - __ASM ("clrex"); -} - -#else /* __VER__ >= 6020000 --------------------- */ - -#define __LDREXW __LDREX -#define __STREXW __STREX -#define __enable_fault_irq __enable_fiq -#define __disable_fault_irq __disable_fiq - -#endif /* __VER__ < 6020000 */ - -#endif /* (__CORTEX_M >= 0x03) */ - -#if (__CORTEX_M == 0x04) /* __CORTEX_M is defined in core_cm0.h, core_cm3.h and core_cm4.h. */ - -#if (__VER__ < 6020000) /* If iccarm version is older than 6.20.0 ---------- */ - -static uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) /* __FPU_PRESENT is defined in the device header file, if present in current device. */ - __ASM("vmrs r0, fpscr"); -#else - return(0); -#endif -} - -static void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) /* __FPU_PRESENT is defined in the device header file, if present in current device. */ - __ASM("vmsr fpscr, r0"); -#endif -} - -#endif /* __VER__ < 6020000 */ - -#endif /* (__CORTEX_M == 0x04) */ - -static __INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) -{ - return (op1 >> op2) | (op1 << ((sizeof(op1)*8)-op2)); -} - -#pragma diag_default=Pe940 -#pragma diag_default=Pe177 - -#endif /* __CMSIS_IAR_H__ */ diff --git a/bsp/mb9bf506r/libraries/CMSIS/Include/core_cm3.h b/bsp/mb9bf506r/libraries/CMSIS/Include/core_cm3.h deleted file mode 100644 index 0173893fbd..0000000000 --- a/bsp/mb9bf506r/libraries/CMSIS/Include/core_cm3.h +++ /dev/null @@ -1,1612 +0,0 @@ -/**************************************************************************//** - * @file core_cm3.h - * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File - * @version V3.01 - * @date 22. March 2012 - * - * @note - * Copyright (C) 2009-2012 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM3_H_GENERIC -#define __CORE_CM3_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup Cortex_M3 - @{ - */ - -/* CMSIS CM3 definitions */ -#define __CM3_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __CM3_CMSIS_VERSION_SUB (0x01) /*!< [15:0] CMSIS HAL sub version */ -#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | \ - __CM3_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x03) /*!< Cortex-M Core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __TMS470__ ) - #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all -*/ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TMS470__ ) - #if defined __TI__VFP_SUPPORT____ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ - -#endif /* __CORE_CM3_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM3_H_DEPENDANT -#define __CORE_CM3_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM3_REV - #define __CM3_REV 0x0200 - #warning "__CM3_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group Cortex_M3 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5]; - __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#if (__CM3_REV < 0x0201) /* core r2p1 */ -#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ -#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ - -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#else -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ -#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) - __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -#else - uint32_t RESERVED1[1]; -#endif -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[29]; - __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ - __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ - __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ - uint32_t RESERVED4[43]; - __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6]; - __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Integration Write Register Definitions */ -#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ -#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ - -/* ITM Integration Read Register Definitions */ -#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ -#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ - -/* ITM Integration Mode Control Register Definitions */ -#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ -#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1]; - __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1]; - __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1]; - __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2]; - __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55]; - __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131]; - __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759]; - __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ - __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1]; - __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39]; - __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8]; - __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ -#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ -#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Cortex-M3 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/** \brief Set Priority Grouping - - The function sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. - - \param [in] PriorityGroup Priority grouping field. - */ -__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** \brief Get Priority Grouping - - The function reads the priority grouping field from the NVIC Interrupt Controller. - - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Get Active Interrupt - - The function reads the active register in NVIC and returns the active bit. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - */ -__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief Encode Priority - - The function encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. - - \param [in] PriorityGroup Used priority group. - \param [in] PreemptPriority Preemptive priority value (starting from 0). - \param [in] SubPriority Subpriority value (starting from 0). - \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). - */ -__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** \brief Decode Priority - - The function decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** \brief ITM Send Character - - The function transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - - \param [in] ch Character to transmit. - - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** \brief ITM Receive Character - - The function inputs a character via the external variable \ref ITM_RxBuffer. - - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) { - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** \brief ITM Check Character - - The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - -#endif /* __CORE_CM3_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h b/bsp/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h deleted file mode 100644 index 3c932e0d6e..0000000000 --- a/bsp/mb9bf506r/libraries/CMSIS/Include/core_cmFunc.h +++ /dev/null @@ -1,616 +0,0 @@ -/**************************************************************************//** - * @file core_cmFunc.h - * @brief CMSIS Cortex-M Core Function Access Header File - * @version V3.01 - * @date 06. March 2012 - * - * @note - * Copyright (C) 2009-2012 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CMFUNC_H -#define __CORE_CMFUNC_H - - -/* ########################### Core Function Access ########################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - @{ - */ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -#if (__ARMCC_VERSION < 400677) - #error "Please use ARM Compiler Toolchain V4.0.677 or later!" -#endif - -/* intrinsic void __enable_irq(); */ -/* intrinsic void __disable_irq(); */ - -/** \brief Get Control Register - - This function returns the content of the Control Register. - - \return Control Register value - */ -__STATIC_INLINE uint32_t __get_CONTROL(void) -{ - register uint32_t __regControl __ASM("control"); - return(__regControl); -} - - -/** \brief Set Control Register - - This function writes the given value to the Control Register. - - \param [in] control Control Register value to set - */ -__STATIC_INLINE void __set_CONTROL(uint32_t control) -{ - register uint32_t __regControl __ASM("control"); - __regControl = control; -} - - -/** \brief Get IPSR Register - - This function returns the content of the IPSR Register. - - \return IPSR Register value - */ -__STATIC_INLINE uint32_t __get_IPSR(void) -{ - register uint32_t __regIPSR __ASM("ipsr"); - return(__regIPSR); -} - - -/** \brief Get APSR Register - - This function returns the content of the APSR Register. - - \return APSR Register value - */ -__STATIC_INLINE uint32_t __get_APSR(void) -{ - register uint32_t __regAPSR __ASM("apsr"); - return(__regAPSR); -} - - -/** \brief Get xPSR Register - - This function returns the content of the xPSR Register. - - \return xPSR Register value - */ -__STATIC_INLINE uint32_t __get_xPSR(void) -{ - register uint32_t __regXPSR __ASM("xpsr"); - return(__regXPSR); -} - - -/** \brief Get Process Stack Pointer - - This function returns the current value of the Process Stack Pointer (PSP). - - \return PSP Register value - */ -__STATIC_INLINE uint32_t __get_PSP(void) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - return(__regProcessStackPointer); -} - - -/** \brief Set Process Stack Pointer - - This function assigns the given value to the Process Stack Pointer (PSP). - - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - __regProcessStackPointer = topOfProcStack; -} - - -/** \brief Get Main Stack Pointer - - This function returns the current value of the Main Stack Pointer (MSP). - - \return MSP Register value - */ -__STATIC_INLINE uint32_t __get_MSP(void) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - return(__regMainStackPointer); -} - - -/** \brief Set Main Stack Pointer - - This function assigns the given value to the Main Stack Pointer (MSP). - - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - __regMainStackPointer = topOfMainStack; -} - - -/** \brief Get Priority Mask - - This function returns the current state of the priority mask bit from the Priority Mask Register. - - \return Priority Mask value - */ -__STATIC_INLINE uint32_t __get_PRIMASK(void) -{ - register uint32_t __regPriMask __ASM("primask"); - return(__regPriMask); -} - - -/** \brief Set Priority Mask - - This function assigns the given value to the Priority Mask Register. - - \param [in] priMask Priority Mask - */ -__STATIC_INLINE void __set_PRIMASK(uint32_t priMask) -{ - register uint32_t __regPriMask __ASM("primask"); - __regPriMask = (priMask); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Enable FIQ - - This function enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __enable_fault_irq __enable_fiq - - -/** \brief Disable FIQ - - This function disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __disable_fault_irq __disable_fiq - - -/** \brief Get Base Priority - - This function returns the current value of the Base Priority register. - - \return Base Priority register value - */ -__STATIC_INLINE uint32_t __get_BASEPRI(void) -{ - register uint32_t __regBasePri __ASM("basepri"); - return(__regBasePri); -} - - -/** \brief Set Base Priority - - This function assigns the given value to the Base Priority register. - - \param [in] basePri Base Priority value to set - */ -__STATIC_INLINE void __set_BASEPRI(uint32_t basePri) -{ - register uint32_t __regBasePri __ASM("basepri"); - __regBasePri = (basePri & 0xff); -} - - -/** \brief Get Fault Mask - - This function returns the current value of the Fault Mask register. - - \return Fault Mask register value - */ -__STATIC_INLINE uint32_t __get_FAULTMASK(void) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - return(__regFaultMask); -} - - -/** \brief Set Fault Mask - - This function assigns the given value to the Fault Mask register. - - \param [in] faultMask Fault Mask value to set - */ -__STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - __regFaultMask = (faultMask & (uint32_t)1); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** \brief Get FPSCR - - This function returns the current value of the Floating Point Status/Control register. - - \return Floating Point Status/Control register value - */ -__STATIC_INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - register uint32_t __regfpscr __ASM("fpscr"); - return(__regfpscr); -#else - return(0); -#endif -} - - -/** \brief Set FPSCR - - This function assigns the given value to the Floating Point Status/Control register. - - \param [in] fpscr Floating Point Status/Control value to set - */ -__STATIC_INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - register uint32_t __regfpscr __ASM("fpscr"); - __regfpscr = (fpscr); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - - -#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ -/* TI CCS specific functions */ - -#include - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/** \brief Enable IRQ Interrupts - - This function enables IRQ interrupts by clearing the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) -{ - __ASM volatile ("cpsie i"); -} - - -/** \brief Disable IRQ Interrupts - - This function disables IRQ interrupts by setting the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) -{ - __ASM volatile ("cpsid i"); -} - - -/** \brief Get Control Register - - This function returns the content of the Control Register. - - \return Control Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - - -/** \brief Set Control Register - - This function writes the given value to the Control Register. - - \param [in] control Control Register value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) ); -} - - -/** \brief Get IPSR Register - - This function returns the content of the IPSR Register. - - \return IPSR Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get APSR Register - - This function returns the content of the APSR Register. - - \return APSR Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get xPSR Register - - This function returns the content of the xPSR Register. - - \return xPSR Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get Process Stack Pointer - - This function returns the current value of the Process Stack Pointer (PSP). - - \return PSP Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) -{ - register uint32_t result; - - __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); - return(result); -} - - -/** \brief Set Process Stack Pointer - - This function assigns the given value to the Process Stack Pointer (PSP). - - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) ); -} - - -/** \brief Get Main Stack Pointer - - This function returns the current value of the Main Stack Pointer (MSP). - - \return MSP Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) -{ - register uint32_t result; - - __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); - return(result); -} - - -/** \brief Set Main Stack Pointer - - This function assigns the given value to the Main Stack Pointer (MSP). - - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) ); -} - - -/** \brief Get Priority Mask - - This function returns the current state of the priority mask bit from the Priority Mask Register. - - \return Priority Mask value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask" : "=r" (result) ); - return(result); -} - - -/** \brief Set Priority Mask - - This function assigns the given value to the Priority Mask Register. - - \param [in] priMask Priority Mask - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Enable FIQ - - This function enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) -{ - __ASM volatile ("cpsie f"); -} - - -/** \brief Disable FIQ - - This function disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) -{ - __ASM volatile ("cpsid f"); -} - - -/** \brief Get Base Priority - - This function returns the current value of the Base Priority register. - - \return Base Priority register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); - return(result); -} - - -/** \brief Set Base Priority - - This function assigns the given value to the Base Priority register. - - \param [in] basePri Base Priority value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (value) ); -} - - -/** \brief Get Fault Mask - - This function returns the current value of the Fault Mask register. - - \return Fault Mask register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - - -/** \brief Set Fault Mask - - This function assigns the given value to the Fault Mask register. - - \param [in] faultMask Fault Mask value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** \brief Get FPSCR - - This function returns the current value of the Floating Point Status/Control register. - - \return Floating Point Status/Control register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - uint32_t result; - - __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - return(result); -#else - return(0); -#endif -} - - -/** \brief Set FPSCR - - This function assigns the given value to the Floating Point Status/Control register. - - \param [in] fpscr Floating Point Status/Control value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) ); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all instrinsics, - * Including the CMSIS ones. - */ - -#endif - -/*@} end of CMSIS_Core_RegAccFunctions */ - - -#endif /* __CORE_CMFUNC_H */ diff --git a/bsp/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h b/bsp/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h deleted file mode 100644 index 597e64df04..0000000000 --- a/bsp/mb9bf506r/libraries/CMSIS/Include/core_cmInstr.h +++ /dev/null @@ -1,618 +0,0 @@ -/**************************************************************************//** - * @file core_cmInstr.h - * @brief CMSIS Cortex-M Core Instruction Access Header File - * @version V3.01 - * @date 06. March 2012 - * - * @note - * Copyright (C) 2009-2012 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CMINSTR_H -#define __CORE_CMINSTR_H - - -/* ########################## Core Instruction Access ######################### */ -/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - Access to dedicated instructions - @{ -*/ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -#if (__ARMCC_VERSION < 400677) - #error "Please use ARM Compiler Toolchain V4.0.677 or later!" -#endif - - -/** \brief No Operation - - No Operation does nothing. This instruction can be used for code alignment purposes. - */ -#define __NOP __nop - - -/** \brief Wait For Interrupt - - Wait For Interrupt is a hint instruction that suspends execution - until one of a number of events occurs. - */ -#define __WFI __wfi - - -/** \brief Wait For Event - - Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -#define __WFE __wfe - - -/** \brief Send Event - - Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -#define __SEV __sev - - -/** \brief Instruction Synchronization Barrier - - Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or - memory, after the instruction has been completed. - */ -#define __ISB() __isb(0xF) - - -/** \brief Data Synchronization Barrier - - This function acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -#define __DSB() __dsb(0xF) - - -/** \brief Data Memory Barrier - - This function ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -#define __DMB() __dmb(0xF) - - -/** \brief Reverse byte order (32 bit) - - This function reverses the byte order in integer value. - - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV __rev - - -/** \brief Reverse byte order (16 bit) - - This function reverses the byte order in two unsigned short values. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) -{ - rev16 r0, r0 - bx lr -} - - -/** \brief Reverse byte order in signed short value - - This function reverses the byte order in a signed short value with sign extension to integer. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) -{ - revsh r0, r0 - bx lr -} - - -/** \brief Rotate Right in unsigned value (32 bit) - - This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - - \param [in] value Value to rotate - \param [in] value Number of Bits to rotate - \return Rotated value - */ -#define __ROR __ror - - -#if (__CORTEX_M >= 0x03) - -/** \brief Reverse bit order of value - - This function reverses the bit order of the given value. - - \param [in] value Value to reverse - \return Reversed value - */ -#define __RBIT __rbit - - -/** \brief LDR Exclusive (8 bit) - - This function performs a exclusive LDR command for 8 bit value. - - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) - - -/** \brief LDR Exclusive (16 bit) - - This function performs a exclusive LDR command for 16 bit values. - - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) - - -/** \brief LDR Exclusive (32 bit) - - This function performs a exclusive LDR command for 32 bit values. - - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) - - -/** \brief STR Exclusive (8 bit) - - This function performs a exclusive STR command for 8 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXB(value, ptr) __strex(value, ptr) - - -/** \brief STR Exclusive (16 bit) - - This function performs a exclusive STR command for 16 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXH(value, ptr) __strex(value, ptr) - - -/** \brief STR Exclusive (32 bit) - - This function performs a exclusive STR command for 32 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXW(value, ptr) __strex(value, ptr) - - -/** \brief Remove the exclusive lock - - This function removes the exclusive lock which is created by LDREX. - - */ -#define __CLREX __clrex - - -/** \brief Signed Saturate - - This function saturates a signed value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT __ssat - - -/** \brief Unsigned Saturate - - This function saturates an unsigned value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT __usat - - -/** \brief Count leading zeros - - This function counts the number of leading zeros of a data value. - - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -#define __CLZ __clz - -#endif /* (__CORTEX_M >= 0x03) */ - - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - - -#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ -/* TI CCS specific functions */ - -#include - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/** \brief No Operation - - No Operation does nothing. This instruction can be used for code alignment purposes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void) -{ - __ASM volatile ("nop"); -} - - -/** \brief Wait For Interrupt - - Wait For Interrupt is a hint instruction that suspends execution - until one of a number of events occurs. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void) -{ - __ASM volatile ("wfi"); -} - - -/** \brief Wait For Event - - Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void) -{ - __ASM volatile ("wfe"); -} - - -/** \brief Send Event - - Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void) -{ - __ASM volatile ("sev"); -} - - -/** \brief Instruction Synchronization Barrier - - Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or - memory, after the instruction has been completed. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void) -{ - __ASM volatile ("isb"); -} - - -/** \brief Data Synchronization Barrier - - This function acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void) -{ - __ASM volatile ("dsb"); -} - - -/** \brief Data Memory Barrier - - This function ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void) -{ - __ASM volatile ("dmb"); -} - - -/** \brief Reverse byte order (32 bit) - - This function reverses the byte order in integer value. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief Reverse byte order (16 bit) - - This function reverses the byte order in two unsigned short values. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief Reverse byte order in signed short value - - This function reverses the byte order in a signed short value with sign extension to integer. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value) -{ - uint32_t result; - - __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief Rotate Right in unsigned value (32 bit) - - This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - - \param [in] value Value to rotate - \param [in] value Number of Bits to rotate - \return Rotated value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) -{ - - __ASM volatile ("ror %0, %0, %1" : "+r" (op1) : "r" (op2) ); - return(op1); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Reverse bit order of value - - This function reverses the bit order of the given value. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief LDR Exclusive (8 bit) - - This function performs a exclusive LDR command for 8 bit value. - - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) -{ - uint8_t result; - - __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - - -/** \brief LDR Exclusive (16 bit) - - This function performs a exclusive LDR command for 16 bit values. - - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) -{ - uint16_t result; - - __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - - -/** \brief LDR Exclusive (32 bit) - - This function performs a exclusive LDR command for 32 bit values. - - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - - -/** \brief STR Exclusive (8 bit) - - This function performs a exclusive STR command for 8 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexb %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - -/** \brief STR Exclusive (16 bit) - - This function performs a exclusive STR command for 16 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexh %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - -/** \brief STR Exclusive (32 bit) - - This function performs a exclusive STR command for 32 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("strex %0, %2, [%1]" : "=&r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - -/** \brief Remove the exclusive lock - - This function removes the exclusive lock which is created by LDREX. - - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void) -{ - __ASM volatile ("clrex"); -} - - -/** \brief Signed Saturate - - This function saturates a signed value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** \brief Unsigned Saturate - - This function saturates an unsigned value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** \brief Count leading zeros - - This function counts the number of leading zeros of a data value. - - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value) -{ - uint8_t result; - - __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all intrinsics, - * Including the CMSIS ones. - */ - -#endif - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - -#endif /* __CORE_CMINSTR_H */ diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h deleted file mode 100644 index df507ee456..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mb9bf506r.h +++ /dev/null @@ -1,17483 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/* */ -/* Header File for Device MB9BF506R */ -/* Version V1.03 */ -/* Date 2011-05-16 */ -/* */ -/************************************************************************/ - -#ifndef _MB9BF506R_H_ -#define _MB9BF506R_H_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/****************************************************************************** - * Configuration of the Cortex-M3 Processor and Core Peripherals - ******************************************************************************/ -#define __MPU_PRESENT 1 /* FM3 provide an MPU */ -#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ -#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ - - -/****************************************************************************** - * Interrupt Number Definition - ******************************************************************************/ -typedef enum IRQn -{ - NMI_IRQn = -14, /* 2 Non Maskable */ - HardFault_IRQn = -13, /* 3 Hard Fault */ - MemManage_IRQn = -12, /* 4 Memory Management */ - BusFault_IRQn = -11, /* 5 Bus Fault */ - UsageFault_IRQn = -10, /* 6 Usage Fault */ - SVC_IRQn = -5, /* 11 SV Call */ - DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ - PendSV_IRQn = -2, /* 14 Pend SV */ - SysTick_IRQn = -1, /* 15 System Tick */ - - CSV_IRQn = 0, /* Clock Super Visor */ - SWDT_IRQn = 1, /* Software Watchdog Timer */ - LVD_IRQn = 2, /* Low Voltage Detector */ - WFG_IRQn = 3, /* Wave Form Generator */ - EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ - EXINT8_15_IRQn = 5, /* External Interrupt Request ch.8 to ch.15 */ - DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ - MFS0RX_IRQn = 7, /* MultiFunction Serial Reception ch.0 */ - MFS0TX_IRQn = 8, /* MultiFunction Serial Transmission ch.0 */ - MFS1RX_IRQn = 9, /* MultiFunction Serial Reception ch.1 */ - MFS1TX_IRQn = 10, /* MultiFunction Serial Transmission ch.1 */ - MFS2RX_IRQn = 11, /* MultiFunction Serial Reception ch.2 */ - MFS2TX_IRQn = 12, /* MultiFunction Serial Transmission ch.2 */ - MFS3RX_IRQn = 13, /* MultiFunction Serial Reception ch.3 */ - MFS3TX_IRQn = 14, /* MultiFunction Serial Transmission ch.3 */ - MFS4RX_IRQn = 15, /* MultiFunction Serial Reception ch.4 */ - MFS4TX_IRQn = 16, /* MultiFunction Serial Transmission ch.4 */ - MFS5RX_IRQn = 17, /* MultiFunction Serial Reception ch.5 */ - MFS5TX_IRQn = 18, /* MultiFunction Serial Transmission ch.5 */ - MFS6RX_IRQn = 19, /* MultiFunction Serial Reception ch.6 */ - MFS6TX_IRQn = 20, /* MultiFunction Serial Transmission ch.6 */ - MFS7RX_IRQn = 21, /* MultiFunction Serial Reception ch.7 */ - MFS7TX_IRQn = 22, /* MultiFunction Serial Transmission ch.7 */ - PPG_IRQn = 23, /* PPG */ - OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ - ADC0_IRQn = 25, /* ADC0 */ - ADC1_IRQn = 26, /* ADC1 */ - ADC2_IRQn = 27, /* ADC2 */ - FRTIM_IRQn = 28, /* Free-run Timer */ - INCAP_IRQn = 29, /* Input Capture */ - OUTCOMP_IRQn = 30, /* Output Compare */ - BTIM_IRQn = 31, /* Base Timer ch.0 to ch.7 */ - CAN0_IRQn = 32, /* CAN ch.0 */ - CAN1_IRQn = 33, /* CAN ch.1 */ - USBF_IRQn = 34, /* USB Function */ - USBF_USBH_IRQn = 35, /* USB Function / USB HOST */ - /* Reserved = 36 */ - /* Reserved = 37 */ - DMAC0_IRQn = 38, /* DMAC ch.0 */ - DMAC1_IRQn = 39, /* DMAC ch.1 */ - DMAC2_IRQn = 40, /* DMAC ch.2 */ - DMAC3_IRQn = 41, /* DMAC ch.3 */ - DMAC4_IRQn = 42, /* DMAC ch.4 */ - DMAC5_IRQn = 43, /* DMAC ch.5 */ - DMAC6_IRQn = 44, /* DMAC ch.6 */ - DMAC7_IRQn = 45 /* DMAC ch.7 */ - /* Reserved = 46 */ - /* Reserved = 47 */ -} IRQn_Type; - - -#include "core_cm3.h" -#include "system_mb9bf50x.h" -#include - -#define SUCCESS 0 -#define ERROR -1 - -#ifndef NULL -#define NULL 0 -#endif - - -/******************************************************************************/ -/* Device Specific Peripheral Registers structures */ -/******************************************************************************/ - -#if defined ( __CC_ARM ) -#pragma anon_unions -#endif - -/****************************************************************************** - * Peripheral register bit fields - ******************************************************************************/ - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash_IF_MODULE register bit fields */ -typedef struct stc_flash_if_faszr_field -{ - __IO uint32_t ASZ0 : 1; - __IO uint32_t ASZ1 : 1; -} stc_flash_if_faszr_field_t; - -typedef struct stc_flash_if_frwtr_field -{ - __IO uint32_t RWT0 : 1; - __IO uint32_t RWT1 : 1; -} stc_flash_if_frwtr_field_t; - -typedef struct stc_flash_if_fstr_field -{ - __IO uint32_t RDY : 1; - __IO uint32_t HNG : 1; - __IO uint32_t EER : 1; -} stc_flash_if_fstr_field_t; - -typedef struct stc_flash_if_fsyndn_field -{ - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; -} stc_flash_if_fsyndn_field_t; - -typedef struct stc_flash_if_crtrmm_field -{ - __IO uint32_t TRMM0 : 1; - __IO uint32_t TRMM1 : 1; - __IO uint32_t TRMM2 : 1; - __IO uint32_t TRMM3 : 1; - __IO uint32_t TRMM4 : 1; - __IO uint32_t TRMM5 : 1; - __IO uint32_t TRMM6 : 1; - __IO uint32_t TRMM7 : 1; - __IO uint32_t TRMM8 : 1; - __IO uint32_t TRMM9 : 1; -} stc_flash_if_crtrmm_field_t; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock_Reset_MODULE register bit fields */ -typedef struct stc_crg_scm_ctl_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MOSCE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SOSCE : 1; - __IO uint8_t PLLE : 1; - __IO uint8_t RCS0 : 1; - __IO uint8_t RCS1 : 1; - __IO uint8_t RCS2 : 1; -} stc_crg_scm_ctl_field_t; - -typedef struct stc_crg_scm_str_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MORDY : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SORDY : 1; - __IO uint8_t PLRDY : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t RCM2 : 1; -} stc_crg_scm_str_field_t; - -typedef struct stc_crg_rst_str_field -{ - __IO uint16_t PONR : 1; - __IO uint16_t INITX : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SWDT : 1; - __IO uint16_t HWDT : 1; - __IO uint16_t CSVR : 1; - __IO uint16_t FCSR : 1; - __IO uint16_t SRST : 1; -} stc_crg_rst_str_field_t; - -typedef struct stc_crg_bsc_psr_field -{ - __IO uint8_t BSR0 : 1; - __IO uint8_t BSR1 : 1; - __IO uint8_t BSR2 : 1; -} stc_crg_bsc_psr_field_t; - -typedef struct stc_crg_apbc0_psr_field -{ - __IO uint8_t APBC00 : 1; - __IO uint8_t APBC01 : 1; -} stc_crg_apbc0_psr_field_t; - -typedef struct stc_crg_apbc1_psr_field -{ - __IO uint8_t APBC10 : 1; - __IO uint8_t APBC11 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC1RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC1EN : 1; -} stc_crg_apbc1_psr_field_t; - -typedef struct stc_crg_apbc2_psr_field -{ - __IO uint8_t APBC20 : 1; - __IO uint8_t APBC21 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC2RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC2EN : 1; -} stc_crg_apbc2_psr_field_t; - -typedef struct stc_crg_swc_psr_field -{ - __IO uint8_t SWDS0 : 1; - __IO uint8_t SWDS1 : 1; - uint8_t RESERVED1 : 5; - __IO uint8_t TESTB : 1; -} stc_crg_swc_psr_field_t; - -typedef struct stc_crg_ttc_psr_field -{ - __IO uint8_t TTC : 1; -} stc_crg_ttc_psr_field_t; - -typedef struct stc_crg_csw_tmr_field -{ - __IO uint8_t MOWT0 : 1; - __IO uint8_t MOWT1 : 1; - __IO uint8_t MOWT2 : 1; - __IO uint8_t MOWT3 : 1; - __IO uint8_t SOWT0 : 1; - __IO uint8_t SOWT1 : 1; - __IO uint8_t SOWT2 : 1; -} stc_crg_csw_tmr_field_t; - -typedef struct stc_crg_psw_tmr_field -{ - __IO uint8_t POWT0 : 1; - __IO uint8_t POWT1 : 1; - __IO uint8_t POWT2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t PINC : 1; -} stc_crg_psw_tmr_field_t; - -typedef struct stc_crg_pll_ctl1_field -{ - __IO uint8_t PLLM0 : 1; - __IO uint8_t PLLM1 : 1; - __IO uint8_t PLLM2 : 1; - __IO uint8_t PLLM3 : 1; - __IO uint8_t PLLK0 : 1; - __IO uint8_t PLLK1 : 1; - __IO uint8_t PLLK2 : 1; - __IO uint8_t PLLK3 : 1; -} stc_crg_pll_ctl1_field_t; - -typedef struct stc_crg_pll_ctl2_field -{ - __IO uint8_t PLLN0 : 1; - __IO uint8_t PLLN1 : 1; - __IO uint8_t PLLN2 : 1; - __IO uint8_t PLLN3 : 1; - __IO uint8_t PLLN4 : 1; - __IO uint8_t PLLN5 : 1; -} stc_crg_pll_ctl2_field_t; - -typedef struct stc_crg_csv_ctl_field -{ - __IO uint16_t MCSVE : 1; - __IO uint16_t SCSVE : 1; - uint16_t RESERVED1 : 6; - __IO uint16_t FCSDE : 1; - __IO uint16_t FCSRE : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t FCD0 : 1; - __IO uint16_t FCD1 : 1; - __IO uint16_t FCD2 : 1; -} stc_crg_csv_ctl_field_t; - -typedef struct stc_crg_csv_str_field -{ - __IO uint8_t MCMF : 1; - __IO uint8_t SCMF : 1; -} stc_crg_csv_str_field_t; - -typedef struct stc_crg_dbwdt_ctl_field -{ - uint8_t RESERVED1 : 5; - __IO uint8_t DPSWBE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t DPHWBE : 1; -} stc_crg_dbwdt_ctl_field_t; - -typedef struct stc_crg_int_enr_field -{ - __IO uint8_t MCSE : 1; - __IO uint8_t SCSE : 1; - __IO uint8_t PCSE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSE : 1; -} stc_crg_int_enr_field_t; - -typedef struct stc_crg_int_str_field -{ - __IO uint8_t MCSI : 1; - __IO uint8_t SCSI : 1; - __IO uint8_t PCSI : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSI : 1; -} stc_crg_int_str_field_t; - -typedef struct stc_crg_int_clr_field -{ - __IO uint8_t MCSC : 1; - __IO uint8_t SCSC : 1; - __IO uint8_t PCSC : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSC : 1; -} stc_crg_int_clr_field_t; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* HWWDT_MODULE register bit fields */ -typedef struct stc_hwwdt_wdg_ctl_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_hwwdt_wdg_ctl_field_t; - -typedef struct stc_hwwdt_wdg_ris_field -{ - __IO uint8_t RIS : 1; -} stc_hwwdt_wdg_ris_field_t; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* SWWDT_MODULE register bit fields */ -typedef struct stc_swwdt_wdogcontrol_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_swwdt_wdogcontrol_field_t; - -typedef struct stc_swwdt_wdogris_field -{ - __IO uint8_t RIS : 1; -} stc_swwdt_wdogris_field_t; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* DTIM_MODULE register bit fields */ -typedef struct stc_dtim_timer1control_field -{ - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; -} stc_dtim_timer1control_field_t; - -typedef struct stc_dtim_timer1ris_field -{ - __IO uint32_t TIMERXRIS : 1; -} stc_dtim_timer1ris_field_t; - -typedef struct stc_dtim_timer1mis_field -{ - __IO uint32_t TIMERXRIS : 1; -} stc_dtim_timer1mis_field_t; - -typedef struct stc_dtim_timer2control_field -{ - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; -} stc_dtim_timer2control_field_t; - -typedef struct stc_dtim_timer2ris_field -{ - __IO uint32_t TIMERXRIS : 1; -} stc_dtim_timer2ris_field_t; - -typedef struct stc_dtim_timer2mis_field -{ - __IO uint32_t TIMERXRIS : 1; -} stc_dtim_timer2mis_field_t; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* MFT_FRT_MODULE register bit fields */ -typedef struct stc_mft_frt_tcsa0_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa0_field_t; - -typedef struct stc_mft_frt_tcsb0_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb0_field_t; - -typedef struct stc_mft_frt_tcsa1_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa1_field_t; - -typedef struct stc_mft_frt_tcsb1_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb1_field_t; - -typedef struct stc_mft_frt_tcsa2_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa2_field_t; - -typedef struct stc_mft_frt_tcsb2_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb2_field_t; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* MFT_OCU_MODULE register bit fields */ -typedef struct stc_mft_ocu_ocsa10_field -{ - __IO uint8_t CST0 : 1; - __IO uint8_t CST1 : 1; - __IO uint8_t BDIS0 : 1; - __IO uint8_t BDIS1 : 1; - __IO uint8_t IOE0 : 1; - __IO uint8_t IOE1 : 1; - __IO uint8_t IOP0 : 1; - __IO uint8_t IOP1 : 1; -} stc_mft_ocu_ocsa10_field_t; - -typedef struct stc_mft_ocu_ocsb10_field -{ - __IO uint8_t OTD0 : 1; - __IO uint8_t OTD1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS0 : 1; - __IO uint8_t BTS1 : 1; -} stc_mft_ocu_ocsb10_field_t; - -typedef struct stc_mft_ocu_ocsa32_field -{ - __IO uint8_t CST2 : 1; - __IO uint8_t CST3 : 1; - __IO uint8_t BDIS2 : 1; - __IO uint8_t BDIS3 : 1; - __IO uint8_t IOE2 : 1; - __IO uint8_t IOE3 : 1; - __IO uint8_t IOP2 : 1; - __IO uint8_t IOP3 : 1; -} stc_mft_ocu_ocsa32_field_t; - -typedef struct stc_mft_ocu_ocsb32_field -{ - __IO uint8_t OTD2 : 1; - __IO uint8_t OTD3 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS2 : 1; - __IO uint8_t BTS3 : 1; -} stc_mft_ocu_ocsb32_field_t; - -typedef struct stc_mft_ocu_ocsa54_field -{ - __IO uint8_t CST4 : 1; - __IO uint8_t CST5 : 1; - __IO uint8_t BDIS4 : 1; - __IO uint8_t BDIS5 : 1; - __IO uint8_t IOE4 : 1; - __IO uint8_t IOE5 : 1; - __IO uint8_t IOP4 : 1; - __IO uint8_t IOP5 : 1; -} stc_mft_ocu_ocsa54_field_t; - -typedef struct stc_mft_ocu_ocsb54_field -{ - __IO uint8_t OTD4 : 1; - __IO uint8_t OTD5 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS4 : 1; - __IO uint8_t BTS5 : 1; -} stc_mft_ocu_ocsb54_field_t; - -typedef struct stc_mft_ocu_ocsc_field -{ - __IO uint8_t MOD0 : 1; - __IO uint8_t MOD1 : 1; - __IO uint8_t MOD2 : 1; - __IO uint8_t MOD3 : 1; - __IO uint8_t MOD4 : 1; - __IO uint8_t MOD5 : 1; -} stc_mft_ocu_ocsc_field_t; - -typedef struct stc_mft_ocu_ocfs10_field -{ - __IO uint8_t FSO00 : 1; - __IO uint8_t FSO01 : 1; - __IO uint8_t FSO02 : 1; - __IO uint8_t FSO03 : 1; - __IO uint8_t FSO10 : 1; - __IO uint8_t FSO11 : 1; - __IO uint8_t FSO12 : 1; - __IO uint8_t FSO13 : 1; -} stc_mft_ocu_ocfs10_field_t; - -typedef struct stc_mft_ocu_ocfs32_field -{ - __IO uint8_t FSO20 : 1; - __IO uint8_t FSO21 : 1; - __IO uint8_t FSO22 : 1; - __IO uint8_t FSO23 : 1; - __IO uint8_t FSO30 : 1; - __IO uint8_t FSO31 : 1; - __IO uint8_t FSO32 : 1; - __IO uint8_t FSO33 : 1; -} stc_mft_ocu_ocfs32_field_t; - -typedef struct stc_mft_ocu_ocfs54_field -{ - __IO uint8_t FSO40 : 1; - __IO uint8_t FSO41 : 1; - __IO uint8_t FSO42 : 1; - __IO uint8_t FSO43 : 1; - __IO uint8_t FSO50 : 1; - __IO uint8_t FSO51 : 1; - __IO uint8_t FSO52 : 1; - __IO uint8_t FSO53 : 1; -} stc_mft_ocu_ocfs54_field_t; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* MFT_WFG_MODULE register bit fields */ -typedef struct stc_mft_wfg_wfsa10_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD0 : 1; - __IO uint16_t TMD1 : 1; - __IO uint16_t TMD2 : 1; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa10_field_t; - -typedef struct stc_mft_wfg_wfsa32_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD0 : 1; - __IO uint16_t TMD1 : 1; - __IO uint16_t TMD2 : 1; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa32_field_t; - -typedef struct stc_mft_wfg_wfsa54_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD0 : 1; - __IO uint16_t TMD1 : 1; - __IO uint16_t TMD2 : 1; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa54_field_t; - -typedef struct stc_mft_wfg_wfir_field -{ - __IO uint16_t DTIF : 1; - __IO uint16_t DTIC : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t TMIF10 : 1; - __IO uint16_t TMIC10 : 1; - __IO uint16_t TMIE10 : 1; - __IO uint16_t TMIS10 : 1; - __IO uint16_t TMIF32 : 1; - __IO uint16_t TMIC32 : 1; - __IO uint16_t TMIE32 : 1; - __IO uint16_t TMIS32 : 1; - __IO uint16_t TMIF54 : 1; - __IO uint16_t TMIC54 : 1; - __IO uint16_t TMIE54 : 1; - __IO uint16_t TMIS54 : 1; -} stc_mft_wfg_wfir_field_t; - -typedef struct stc_mft_wfg_nzcl_field -{ - __IO uint16_t DTIE : 1; - __IO uint16_t NWS0 : 1; - __IO uint16_t NWS1 : 1; - __IO uint16_t NWS2 : 1; - __IO uint16_t SDTI : 1; -} stc_mft_wfg_nzcl_field_t; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* MFT_ICU_MODULE register bit fields */ -typedef struct stc_mft_icu_icfs10_field -{ - __IO uint8_t FSI00 : 1; - __IO uint8_t FSI01 : 1; - __IO uint8_t FSI02 : 1; - __IO uint8_t FSI03 : 1; - __IO uint8_t FSI10 : 1; - __IO uint8_t FSI11 : 1; - __IO uint8_t FSI12 : 1; - __IO uint8_t FSI13 : 1; -} stc_mft_icu_icfs10_field_t; - -typedef struct stc_mft_icu_icfs32_field -{ - __IO uint8_t FSI20 : 1; - __IO uint8_t FSI21 : 1; - __IO uint8_t FSI22 : 1; - __IO uint8_t FSI23 : 1; - __IO uint8_t FSI30 : 1; - __IO uint8_t FSI31 : 1; - __IO uint8_t FSI32 : 1; - __IO uint8_t FSI33 : 1; -} stc_mft_icu_icfs32_field_t; - -typedef struct stc_mft_icu_icsa10_field -{ - __IO uint8_t EG00 : 1; - __IO uint8_t EG01 : 1; - __IO uint8_t EG10 : 1; - __IO uint8_t EG11 : 1; - __IO uint8_t ICE0 : 1; - __IO uint8_t ICE1 : 1; - __IO uint8_t ICP0 : 1; - __IO uint8_t ICP1 : 1; -} stc_mft_icu_icsa10_field_t; - -typedef struct stc_mft_icu_icsb10_field -{ - __IO uint8_t IEI0 : 1; - __IO uint8_t IEI1 : 1; -} stc_mft_icu_icsb10_field_t; - -typedef struct stc_mft_icu_icsa32_field -{ - __IO uint8_t EG20 : 1; - __IO uint8_t EG21 : 1; - __IO uint8_t EG30 : 1; - __IO uint8_t EG31 : 1; - __IO uint8_t ICE2 : 1; - __IO uint8_t ICE3 : 1; - __IO uint8_t ICP2 : 1; - __IO uint8_t ICP3 : 1; -} stc_mft_icu_icsa32_field_t; - -typedef struct stc_mft_icu_icsb32_field -{ - __IO uint8_t IEI2 : 1; - __IO uint8_t IEI3 : 1; -} stc_mft_icu_icsb32_field_t; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* MFT_ADCMP_MODULE register bit fields */ -typedef struct stc_mft_adcmp_acsb_field -{ - __IO uint8_t BDIS0 : 1; - __IO uint8_t BDIS1 : 1; - __IO uint8_t BDIS2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BTS0 : 1; - __IO uint8_t BTS1 : 1; - __IO uint8_t BTS2 : 1; -} stc_mft_adcmp_acsb_field_t; - -typedef struct stc_mft_adcmp_acsa_field -{ - __IO uint16_t CE00 : 1; - __IO uint16_t CE01 : 1; - __IO uint16_t CE10 : 1; - __IO uint16_t CE11 : 1; - __IO uint16_t CE20 : 1; - __IO uint16_t CE21 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SEL00 : 1; - __IO uint16_t SEL01 : 1; - __IO uint16_t SEL10 : 1; - __IO uint16_t SEL11 : 1; - __IO uint16_t SEL20 : 1; - __IO uint16_t SEL21 : 1; -} stc_mft_adcmp_acsa_field_t; - -typedef struct stc_mft_adcmp_atsa_field -{ - __IO uint16_t AD0S0 : 1; - __IO uint16_t AD0S1 : 1; - __IO uint16_t AD1S0 : 1; - __IO uint16_t AD1S1 : 1; - __IO uint16_t AD2S0 : 1; - __IO uint16_t AD2S1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t AD0P0 : 1; - __IO uint16_t AD0P1 : 1; - __IO uint16_t AD1P0 : 1; - __IO uint16_t AD1P1 : 1; - __IO uint16_t AD2P0 : 1; - __IO uint16_t AD2P1 : 1; -} stc_mft_adcmp_atsa_field_t; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* MFT_PPG_MODULE register bit fields */ -typedef struct stc_mft_ppg_ttcr0_field -{ - __IO uint8_t STR0 : 1; - __IO uint8_t MONI0 : 1; - __IO uint8_t CS00 : 1; - __IO uint8_t CS01 : 1; - __IO uint8_t TRG0O : 1; - __IO uint8_t TRG2O : 1; - __IO uint8_t TRG4O : 1; - __IO uint8_t TRG6O : 1; -} stc_mft_ppg_ttcr0_field_t; - -typedef struct stc_mft_ppg_ttcr1_field -{ - __IO uint8_t STR1 : 1; - __IO uint8_t MONI1 : 1; - __IO uint8_t CS10 : 1; - __IO uint8_t CS11 : 1; - __IO uint8_t TRG1O : 1; - __IO uint8_t TRG3O : 1; - __IO uint8_t TRG5O : 1; - __IO uint8_t TRG7O : 1; -} stc_mft_ppg_ttcr1_field_t; - -typedef struct stc_mft_ppg_trg_field -{ - __IO uint16_t PEN00 : 1; - __IO uint16_t PEN01 : 1; - __IO uint16_t PEN02 : 1; - __IO uint16_t PEN03 : 1; - __IO uint16_t PEN04 : 1; - __IO uint16_t PEN05 : 1; - __IO uint16_t PEN06 : 1; - __IO uint16_t PEN07 : 1; - __IO uint16_t PEN08 : 1; - __IO uint16_t PEN09 : 1; - __IO uint16_t PEN10 : 1; - __IO uint16_t PEN11 : 1; - __IO uint16_t PEN12 : 1; - __IO uint16_t PEN13 : 1; - __IO uint16_t PEN14 : 1; - __IO uint16_t PEN15 : 1; -} stc_mft_ppg_trg_field_t; - -typedef struct stc_mft_ppg_revc_field -{ - __IO uint16_t REV00 : 1; - __IO uint16_t REV01 : 1; - __IO uint16_t REV02 : 1; - __IO uint16_t REV03 : 1; - __IO uint16_t REV04 : 1; - __IO uint16_t REV05 : 1; - __IO uint16_t REV06 : 1; - __IO uint16_t REV07 : 1; - __IO uint16_t REV08 : 1; - __IO uint16_t REV09 : 1; - __IO uint16_t REV10 : 1; - __IO uint16_t REV11 : 1; - __IO uint16_t REV12 : 1; - __IO uint16_t REV13 : 1; - __IO uint16_t REV14 : 1; - __IO uint16_t REV15 : 1; -} stc_mft_ppg_revc_field_t; - -typedef struct stc_mft_ppg_ppgc1_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc1_field_t; - -typedef struct stc_mft_ppg_ppgc0_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc0_field_t; - -typedef struct stc_mft_ppg_ppgc3_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc3_field_t; - -typedef struct stc_mft_ppg_ppgc2_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc2_field_t; - -typedef struct stc_mft_ppg_gatec0_field -{ - __IO uint8_t EDGE0 : 1; - __IO uint8_t STRG0 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE2 : 1; - __IO uint8_t STRG2 : 1; -} stc_mft_ppg_gatec0_field_t; - -typedef struct stc_mft_ppg_ppgc5_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc5_field_t; - -typedef struct stc_mft_ppg_ppgc4_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc4_field_t; - -typedef struct stc_mft_ppg_ppgc7_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc7_field_t; - -typedef struct stc_mft_ppg_ppgc6_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc6_field_t; - -typedef struct stc_mft_ppg_gatec4_field -{ - __IO uint8_t EDGE4 : 1; - __IO uint8_t STRG4 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE6 : 1; - __IO uint8_t STRG6 : 1; -} stc_mft_ppg_gatec4_field_t; - -typedef struct stc_mft_ppg_ppgc9_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc9_field_t; - -typedef struct stc_mft_ppg_ppgc8_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc8_field_t; - -typedef struct stc_mft_ppg_ppgc11_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc11_field_t; - -typedef struct stc_mft_ppg_ppgc10_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc10_field_t; - -typedef struct stc_mft_ppg_gatec8_field -{ - __IO uint8_t EDGE8 : 1; - __IO uint8_t STRG8 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE10 : 1; - __IO uint8_t STRG10 : 1; -} stc_mft_ppg_gatec8_field_t; - -typedef struct stc_mft_ppg_ppgc13_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc13_field_t; - -typedef struct stc_mft_ppg_ppgc12_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc12_field_t; - -typedef struct stc_mft_ppg_ppgc15_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc15_field_t; - -typedef struct stc_mft_ppg_ppgc14_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc14_field_t; - -typedef struct stc_mft_ppg_gatec12_field -{ - __IO uint8_t EDGE12 : 1; - __IO uint8_t STRG12 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE14 : 1; - __IO uint8_t STRG14 : 1; -} stc_mft_ppg_gatec12_field_t; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* BT_PPG_MODULE register bit fields */ -typedef struct stc_bt_ppg_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_ppg_tmcr_field_t; - -typedef struct stc_bt_ppg_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_ppg_stc_field_t; - -typedef struct stc_bt_ppg_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_ppg_tmcr2_field_t; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* BT_PWM_MODULE register bit fields */ -typedef struct stc_bt_pwm_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwm_tmcr_field_t; - -typedef struct stc_bt_pwm_stc_field -{ - __IO uint8_t UDIR : 1; - __IO uint8_t DTIR : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t UDIE : 1; - __IO uint8_t DTIE : 1; - __IO uint8_t TGIE : 1; -} stc_bt_pwm_stc_field_t; - -typedef struct stc_bt_pwm_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwm_tmcr2_field_t; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* BT_RT_MODULE register bit fields */ -typedef struct stc_bt_rt_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_rt_tmcr_field_t; - -typedef struct stc_bt_rt_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_rt_stc_field_t; - -typedef struct stc_bt_rt_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_rt_tmcr2_field_t; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* BT_PWC_MODULE register bit fields */ -typedef struct stc_bt_pwc_tmcr_field -{ - uint16_t RESERVED1 : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t EGS2 : 1; - uint16_t RESERVED3 : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwc_tmcr_field_t; - -typedef struct stc_bt_pwc_stc_field -{ - __IO uint8_t OVIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t EDIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t OVIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t EDIE : 1; - __IO uint8_t ERR : 1; -} stc_bt_pwc_stc_field_t; - -typedef struct stc_bt_pwc_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwc_tmcr2_field_t; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* BTIOSEL03_MODULE register bit fields */ -typedef struct stc_btiosel03_btsel0123_field -{ - __IO uint8_t SEL01_0 : 1; - __IO uint8_t SEL01_1 : 1; - __IO uint8_t SEL01_2 : 1; - __IO uint8_t SEL01_3 : 1; - __IO uint8_t SEL23_0 : 1; - __IO uint8_t SEL23_1 : 1; - __IO uint8_t SEL23_2 : 1; - __IO uint8_t SEL23_3 : 1; -} stc_btiosel03_btsel0123_field_t; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* BTIOSEL47_MODULE register bit fields */ -typedef struct stc_btiosel47_btsel4567_field -{ - __IO uint8_t SEL45_0 : 1; - __IO uint8_t SEL45_1 : 1; - __IO uint8_t SEL45_2 : 1; - __IO uint8_t SEL45_3 : 1; - __IO uint8_t SEL67_0 : 1; - __IO uint8_t SEL67_1 : 1; - __IO uint8_t SEL67_2 : 1; - __IO uint8_t SEL67_3 : 1; -} stc_btiosel47_btsel4567_field_t; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* SBSSR_MODULE register bit fields */ -typedef struct stc_sbssr_btsssr_field -{ - __IO uint16_t SSR0 : 1; - __IO uint16_t SSR1 : 1; - __IO uint16_t SSR2 : 1; - __IO uint16_t SSR3 : 1; - __IO uint16_t SSR4 : 1; - __IO uint16_t SSR5 : 1; - __IO uint16_t SSR6 : 1; - __IO uint16_t SSR7 : 1; - __IO uint16_t SSR8 : 1; - __IO uint16_t SSR9 : 1; - __IO uint16_t SSR10 : 1; - __IO uint16_t SSR11 : 1; - __IO uint16_t SSR12 : 1; - __IO uint16_t SSR13 : 1; - __IO uint16_t SSR14 : 1; - __IO uint16_t SSR15 : 1; -} stc_sbssr_btsssr_field_t; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* QPRC_MODULE register bit fields */ -typedef struct stc_qprc_qicr_field -{ - __IO uint16_t QPCMIE : 1; - __IO uint16_t QPCMF : 1; - __IO uint16_t QPRCMIE : 1; - __IO uint16_t QPRCMF : 1; - __IO uint16_t OUZIE : 1; - __IO uint16_t UFDF : 1; - __IO uint16_t OFDF : 1; - __IO uint16_t ZIIF : 1; - __IO uint16_t CDCIE : 1; - __IO uint16_t CDCF : 1; - __IO uint16_t DIRPC : 1; - __IO uint16_t DIROU : 1; - __IO uint16_t QPCNRCMIE : 1; - __IO uint16_t QPCNRCMF : 1; -} stc_qprc_qicr_field_t; - -typedef struct stc_qprc_qicrl_field -{ - __IO uint8_t QPCMIE : 1; - __IO uint8_t QPCMF : 1; - __IO uint8_t QPRCMIE : 1; - __IO uint8_t QPRCMF : 1; - __IO uint8_t OUZIE : 1; - __IO uint8_t UFDF : 1; - __IO uint8_t OFDF : 1; - __IO uint8_t ZIIF : 1; -} stc_qprc_qicrl_field_t; - -typedef struct stc_qprc_qicrh_field -{ - __IO uint8_t CDCIE : 1; - __IO uint8_t CDCF : 1; - __IO uint8_t DIRPC : 1; - __IO uint8_t DIROU : 1; - __IO uint8_t QPCNRCMIE : 1; - __IO uint8_t QPCNRCMF : 1; -} stc_qprc_qicrh_field_t; - -typedef struct stc_qprc_qcr_field -{ - __IO uint16_t PCM0 : 1; - __IO uint16_t PCM1 : 1; - __IO uint16_t RCM0 : 1; - __IO uint16_t RCM1 : 1; - __IO uint16_t PSTP : 1; - __IO uint16_t CGSC : 1; - __IO uint16_t RSEL : 1; - __IO uint16_t SWAP : 1; - __IO uint16_t PCRM0 : 1; - __IO uint16_t PCRM1 : 1; - __IO uint16_t AES0 : 1; - __IO uint16_t AES1 : 1; - __IO uint16_t BES0 : 1; - __IO uint16_t BES1 : 1; - __IO uint16_t CGE0 : 1; - __IO uint16_t CGE1 : 1; -} stc_qprc_qcr_field_t; - -typedef struct stc_qprc_qcrl_field -{ - __IO uint8_t PCM0 : 1; - __IO uint8_t PCM1 : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t PSTP : 1; - __IO uint8_t CGSC : 1; - __IO uint8_t RSEL : 1; - __IO uint8_t SWAP : 1; -} stc_qprc_qcrl_field_t; - -typedef struct stc_qprc_qcrh_field -{ - __IO uint8_t PCRM0 : 1; - __IO uint8_t PCRM1 : 1; - __IO uint8_t AES0 : 1; - __IO uint8_t AES1 : 1; - __IO uint8_t BES0 : 1; - __IO uint8_t BES1 : 1; - __IO uint8_t CGE0 : 1; - __IO uint8_t CGE1 : 1; -} stc_qprc_qcrh_field_t; - -typedef struct stc_qprc_qecr_field -{ - __IO uint16_t ORNGMD : 1; - __IO uint16_t ORNGF : 1; - __IO uint16_t ORNGIE : 1; -} stc_qprc_qecr_field_t; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* ADC12_MODULE register bit fields */ -typedef struct stc_adc_adsr_field -{ - __IO uint8_t SCS : 1; - __IO uint8_t PCS : 1; - __IO uint8_t PCNS : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t FDAS : 1; - __IO uint8_t ADSTP : 1; -} stc_adc_adsr_field_t; - -typedef struct stc_adc_adcr_field -{ - __IO uint8_t OVRIE : 1; - __IO uint8_t CMPIE : 1; - __IO uint8_t PCIE : 1; - __IO uint8_t SCIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t CMPIF : 1; - __IO uint8_t PCIF : 1; - __IO uint8_t SCIF : 1; -} stc_adc_adcr_field_t; - -typedef struct stc_adc_sfns_field -{ - __IO uint8_t SFS0 : 1; - __IO uint8_t SFS1 : 1; - __IO uint8_t SFS2 : 1; - __IO uint8_t SFS3 : 1; -} stc_adc_sfns_field_t; - -typedef struct stc_adc_sccr_field -{ - __IO uint8_t SSTR : 1; - __IO uint8_t SHEN : 1; - __IO uint8_t RPT : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t SFCLR : 1; - __IO uint8_t SOVR : 1; - __IO uint8_t SFUL : 1; - __IO uint8_t SEMP : 1; -} stc_adc_sccr_field_t; - -typedef struct stc_adc_scfd_field -{ - __IO uint32_t SC0 : 1; - __IO uint32_t SC1 : 1; - __IO uint32_t SC2 : 1; - __IO uint32_t SC3 : 1; - __IO uint32_t SC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; - __IO uint32_t SD3 : 1; - __IO uint32_t SD4 : 1; - __IO uint32_t SD5 : 1; - __IO uint32_t SD6 : 1; - __IO uint32_t SD7 : 1; - __IO uint32_t SD8 : 1; - __IO uint32_t SD9 : 1; - __IO uint32_t SD10 : 1; - __IO uint32_t SD11 : 1; -} stc_adc_scfd_field_t; - -typedef struct stc_adc_scfdl_field -{ - __IO uint16_t SC0 : 1; - __IO uint16_t SC1 : 1; - __IO uint16_t SC2 : 1; - __IO uint16_t SC3 : 1; - __IO uint16_t SC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t INVL : 1; -} stc_adc_scfdl_field_t; - -typedef struct stc_adc_scfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t SD0 : 1; - __IO uint16_t SD1 : 1; - __IO uint16_t SD2 : 1; - __IO uint16_t SD3 : 1; - __IO uint16_t SD4 : 1; - __IO uint16_t SD5 : 1; - __IO uint16_t SD6 : 1; - __IO uint16_t SD7 : 1; - __IO uint16_t SD8 : 1; - __IO uint16_t SD9 : 1; - __IO uint16_t SD10 : 1; - __IO uint16_t SD11 : 1; -} stc_adc_scfdh_field_t; - -typedef struct stc_adc_scis23_field -{ - __IO uint16_t AN16 : 1; - __IO uint16_t AN17 : 1; - __IO uint16_t AN18 : 1; - __IO uint16_t AN19 : 1; - __IO uint16_t AN20 : 1; - __IO uint16_t AN21 : 1; - __IO uint16_t AN22 : 1; - __IO uint16_t AN23 : 1; - __IO uint16_t AN24 : 1; - __IO uint16_t AN25 : 1; - __IO uint16_t AN26 : 1; - __IO uint16_t AN27 : 1; - __IO uint16_t AN28 : 1; - __IO uint16_t AN29 : 1; - __IO uint16_t AN30 : 1; - __IO uint16_t AN31 : 1; -} stc_adc_scis23_field_t; - -typedef struct stc_adc_scis2_field -{ - __IO uint8_t AN16 : 1; - __IO uint8_t AN17 : 1; - __IO uint8_t AN18 : 1; - __IO uint8_t AN19 : 1; - __IO uint8_t AN20 : 1; - __IO uint8_t AN21 : 1; - __IO uint8_t AN22 : 1; - __IO uint8_t AN23 : 1; -} stc_adc_scis2_field_t; - -typedef struct stc_adc_scis3_field -{ - __IO uint8_t AN24 : 1; - __IO uint8_t AN25 : 1; - __IO uint8_t AN26 : 1; - __IO uint8_t AN27 : 1; - __IO uint8_t AN28 : 1; - __IO uint8_t AN29 : 1; - __IO uint8_t AN30 : 1; - __IO uint8_t AN31 : 1; -} stc_adc_scis3_field_t; - -typedef struct stc_adc_scis01_field -{ - __IO uint16_t AN0 : 1; - __IO uint16_t AN1 : 1; - __IO uint16_t AN2 : 1; - __IO uint16_t AN3 : 1; - __IO uint16_t AN4 : 1; - __IO uint16_t AN5 : 1; - __IO uint16_t AN6 : 1; - __IO uint16_t AN7 : 1; - __IO uint16_t AN8 : 1; - __IO uint16_t AN9 : 1; - __IO uint16_t AN10 : 1; - __IO uint16_t AN11 : 1; - __IO uint16_t AN12 : 1; - __IO uint16_t AN13 : 1; - __IO uint16_t AN14 : 1; - __IO uint16_t AN15 : 1; -} stc_adc_scis01_field_t; - -typedef struct stc_adc_scis0_field -{ - __IO uint8_t AN0 : 1; - __IO uint8_t AN1 : 1; - __IO uint8_t AN2 : 1; - __IO uint8_t AN3 : 1; - __IO uint8_t AN4 : 1; - __IO uint8_t AN5 : 1; - __IO uint8_t AN6 : 1; - __IO uint8_t AN7 : 1; -} stc_adc_scis0_field_t; - -typedef struct stc_adc_scis1_field -{ - __IO uint8_t AN8 : 1; - __IO uint8_t AN9 : 1; - __IO uint8_t AN10 : 1; - __IO uint8_t AN11 : 1; - __IO uint8_t AN12 : 1; - __IO uint8_t AN13 : 1; - __IO uint8_t AN14 : 1; - __IO uint8_t AN15 : 1; -} stc_adc_scis1_field_t; - -typedef struct stc_adc_pfns_field -{ - __IO uint8_t PFS0 : 1; - __IO uint8_t PFS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t TEST0 : 1; - __IO uint8_t TEST1 : 1; -} stc_adc_pfns_field_t; - -typedef struct stc_adc_pccr_field -{ - __IO uint8_t PSTR : 1; - __IO uint8_t PHEN : 1; - __IO uint8_t PEEN : 1; - __IO uint8_t ESCE : 1; - __IO uint8_t PFCLR : 1; - __IO uint8_t POVR : 1; - __IO uint8_t PFUL : 1; - __IO uint8_t PEMP : 1; -} stc_adc_pccr_field_t; - -typedef struct stc_adc_pcfd_field -{ - __IO uint32_t PC0 : 1; - __IO uint32_t PC1 : 1; - __IO uint32_t PC2 : 1; - __IO uint32_t PC3 : 1; - __IO uint32_t PC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - __IO uint32_t RS2 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t PD0 : 1; - __IO uint32_t PD1 : 1; - __IO uint32_t PD2 : 1; - __IO uint32_t PD3 : 1; - __IO uint32_t PD4 : 1; - __IO uint32_t PD5 : 1; - __IO uint32_t PD6 : 1; - __IO uint32_t PD7 : 1; - __IO uint32_t PD8 : 1; - __IO uint32_t PD9 : 1; - __IO uint32_t PD10 : 1; - __IO uint32_t PD11 : 1; -} stc_adc_pcfd_field_t; - -typedef struct stc_adc_pcfdl_field -{ - __IO uint16_t PC0 : 1; - __IO uint16_t PC1 : 1; - __IO uint16_t PC2 : 1; - __IO uint16_t PC3 : 1; - __IO uint16_t PC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - __IO uint16_t RS2 : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t INVL : 1; -} stc_adc_pcfdl_field_t; - -typedef struct stc_adc_pcfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t PD0 : 1; - __IO uint16_t PD1 : 1; - __IO uint16_t PD2 : 1; - __IO uint16_t PD3 : 1; - __IO uint16_t PD4 : 1; - __IO uint16_t PD5 : 1; - __IO uint16_t PD6 : 1; - __IO uint16_t PD7 : 1; - __IO uint16_t PD8 : 1; - __IO uint16_t PD9 : 1; - __IO uint16_t PD10 : 1; - __IO uint16_t PD11 : 1; -} stc_adc_pcfdh_field_t; - -typedef struct stc_adc_pcis_field -{ - __IO uint8_t P1A0 : 1; - __IO uint8_t P1A1 : 1; - __IO uint8_t P1A2 : 1; - __IO uint8_t P2A0 : 1; - __IO uint8_t P2A1 : 1; - __IO uint8_t P2A2 : 1; - __IO uint8_t P2A3 : 1; - __IO uint8_t P2A4 : 1; -} stc_adc_pcis_field_t; - -typedef struct stc_adc_cmpcr_field -{ - __IO uint8_t CCH0 : 1; - __IO uint8_t CCH1 : 1; - __IO uint8_t CCH2 : 1; - __IO uint8_t CCH3 : 1; - __IO uint8_t CCH4 : 1; - __IO uint8_t CMD0 : 1; - __IO uint8_t CMD1 : 1; - __IO uint8_t CMPEN : 1; -} stc_adc_cmpcr_field_t; - -typedef struct stc_adc_cmpd_field -{ - uint16_t RESERVED1 : 6; - __IO uint16_t CMAD2 : 1; - __IO uint16_t CMAD3 : 1; - __IO uint16_t CMAD4 : 1; - __IO uint16_t CMAD5 : 1; - __IO uint16_t CMAD6 : 1; - __IO uint16_t CMAD7 : 1; - __IO uint16_t CMAD8 : 1; - __IO uint16_t CMAD9 : 1; - __IO uint16_t CMAD10 : 1; - __IO uint16_t CMAD11 : 1; -} stc_adc_cmpd_field_t; - -typedef struct stc_adc_adss23_field -{ - __IO uint16_t TS16 : 1; - __IO uint16_t TS17 : 1; - __IO uint16_t TS18 : 1; - __IO uint16_t TS19 : 1; - __IO uint16_t TS20 : 1; - __IO uint16_t TS21 : 1; - __IO uint16_t TS22 : 1; - __IO uint16_t TS23 : 1; - __IO uint16_t TS24 : 1; - __IO uint16_t TS25 : 1; - __IO uint16_t TS26 : 1; - __IO uint16_t TS27 : 1; - __IO uint16_t TS28 : 1; - __IO uint16_t TS29 : 1; - __IO uint16_t TS30 : 1; - __IO uint16_t TS31 : 1; -} stc_adc_adss23_field_t; - -typedef struct stc_adc_adss2_field -{ - __IO uint8_t TS16 : 1; - __IO uint8_t TS17 : 1; - __IO uint8_t TS18 : 1; - __IO uint8_t TS19 : 1; - __IO uint8_t TS20 : 1; - __IO uint8_t TS21 : 1; - __IO uint8_t TS22 : 1; - __IO uint8_t TS23 : 1; -} stc_adc_adss2_field_t; - -typedef struct stc_adc_adss3_field -{ - __IO uint8_t TS24 : 1; - __IO uint8_t TS25 : 1; - __IO uint8_t TS26 : 1; - __IO uint8_t TS27 : 1; - __IO uint8_t TS28 : 1; - __IO uint8_t TS29 : 1; - __IO uint8_t TS30 : 1; - __IO uint8_t TS31 : 1; -} stc_adc_adss3_field_t; - -typedef struct stc_adc_adss01_field -{ - __IO uint16_t TS0 : 1; - __IO uint16_t TS1 : 1; - __IO uint16_t TS2 : 1; - __IO uint16_t TS3 : 1; - __IO uint16_t TS4 : 1; - __IO uint16_t TS5 : 1; - __IO uint16_t TS6 : 1; - __IO uint16_t TS7 : 1; - __IO uint16_t TS8 : 1; - __IO uint16_t TS9 : 1; - __IO uint16_t TS10 : 1; - __IO uint16_t TS11 : 1; - __IO uint16_t TS12 : 1; - __IO uint16_t TS13 : 1; - __IO uint16_t TS14 : 1; - __IO uint16_t TS15 : 1; -} stc_adc_adss01_field_t; - -typedef struct stc_adc_adss0_field -{ - __IO uint8_t TS0 : 1; - __IO uint8_t TS1 : 1; - __IO uint8_t TS2 : 1; - __IO uint8_t TS3 : 1; - __IO uint8_t TS4 : 1; - __IO uint8_t TS5 : 1; - __IO uint8_t TS6 : 1; - __IO uint8_t TS7 : 1; -} stc_adc_adss0_field_t; - -typedef struct stc_adc_adss1_field -{ - __IO uint8_t TS8 : 1; - __IO uint8_t TS9 : 1; - __IO uint8_t TS10 : 1; - __IO uint8_t TS11 : 1; - __IO uint8_t TS12 : 1; - __IO uint8_t TS13 : 1; - __IO uint8_t TS14 : 1; - __IO uint8_t TS15 : 1; -} stc_adc_adss1_field_t; - -typedef struct stc_adc_adst01_field -{ - __IO uint16_t ST10 : 1; - __IO uint16_t ST11 : 1; - __IO uint16_t ST12 : 1; - __IO uint16_t ST13 : 1; - __IO uint16_t ST14 : 1; - __IO uint16_t STX10 : 1; - __IO uint16_t STX11 : 1; - __IO uint16_t STX12 : 1; - __IO uint16_t ST00 : 1; - __IO uint16_t ST01 : 1; - __IO uint16_t ST02 : 1; - __IO uint16_t ST03 : 1; - __IO uint16_t ST04 : 1; - __IO uint16_t STX00 : 1; - __IO uint16_t STX01 : 1; - __IO uint16_t STX02 : 1; -} stc_adc_adst01_field_t; - -typedef struct stc_adc_adst1_field -{ - __IO uint8_t ST10 : 1; - __IO uint8_t ST11 : 1; - __IO uint8_t ST12 : 1; - __IO uint8_t ST13 : 1; - __IO uint8_t ST14 : 1; - __IO uint8_t STX10 : 1; - __IO uint8_t STX11 : 1; - __IO uint8_t STX12 : 1; -} stc_adc_adst1_field_t; - -typedef struct stc_adc_adst0_field -{ - __IO uint8_t ST00 : 1; - __IO uint8_t ST01 : 1; - __IO uint8_t ST02 : 1; - __IO uint8_t ST03 : 1; - __IO uint8_t ST04 : 1; - __IO uint8_t STX00 : 1; - __IO uint8_t STX01 : 1; - __IO uint8_t STX02 : 1; -} stc_adc_adst0_field_t; - -typedef struct stc_adc_adct_field -{ - __IO uint8_t CT0 : 1; - __IO uint8_t CT1 : 1; - __IO uint8_t CT2 : 1; - __IO uint8_t CT3 : 1; - __IO uint8_t CT4 : 1; - __IO uint8_t CT5 : 1; - __IO uint8_t CT6 : 1; - __IO uint8_t CT7 : 1; -} stc_adc_adct_field_t; - -typedef struct stc_adc_prtsl_field -{ - __IO uint8_t PRTSL0 : 1; - __IO uint8_t PRTSL1 : 1; - __IO uint8_t PRTSL2 : 1; - __IO uint8_t PRTSL3 : 1; -} stc_adc_prtsl_field_t; - -typedef struct stc_adc_sctsl_field -{ - __IO uint8_t SCTSL0 : 1; - __IO uint8_t SCTSL1 : 1; - __IO uint8_t SCTSL2 : 1; - __IO uint8_t SCTSL3 : 1; -} stc_adc_sctsl_field_t; - -typedef struct stc_adc_adcen_field -{ - __IO uint8_t ENBL : 1; - __IO uint8_t READY : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CYCLSL0 : 1; - __IO uint8_t CYCLSL1 : 1; -} stc_adc_adcen_field_t; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CRTRIM_MODULE register bit fields */ -typedef struct stc_crtrim_mcr_psr_field -{ - __IO uint8_t CSR0 : 1; - __IO uint8_t CSR1 : 1; -} stc_crtrim_mcr_psr_field_t; - -typedef struct stc_crtrim_mcr_ftrm_field -{ - __IO uint16_t TRD0 : 1; - __IO uint16_t TRD1 : 1; - __IO uint16_t TRD2 : 1; - __IO uint16_t TRD3 : 1; - __IO uint16_t TRD4 : 1; - __IO uint16_t TRD5 : 1; - __IO uint16_t TRD6 : 1; - __IO uint16_t TRD7 : 1; - __IO uint16_t TRD8 : 1; - __IO uint16_t TRD9 : 1; -} stc_crtrim_mcr_ftrm_field_t; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* EXTI_MODULE register bit fields */ -typedef struct stc_exti_enir_field -{ - __IO uint16_t EN0 : 1; - __IO uint16_t EN1 : 1; - __IO uint16_t EN2 : 1; - __IO uint16_t EN3 : 1; - __IO uint16_t EN4 : 1; - __IO uint16_t EN5 : 1; - __IO uint16_t EN6 : 1; - __IO uint16_t EN7 : 1; - __IO uint16_t EN8 : 1; - __IO uint16_t EN9 : 1; - __IO uint16_t EN10 : 1; - __IO uint16_t EN11 : 1; - __IO uint16_t EN12 : 1; - __IO uint16_t EN13 : 1; - __IO uint16_t EN14 : 1; - __IO uint16_t EN15 : 1; -} stc_exti_enir_field_t; - -typedef struct stc_exti_eirr_field -{ - __IO uint16_t ER0 : 1; - __IO uint16_t ER1 : 1; - __IO uint16_t ER2 : 1; - __IO uint16_t ER3 : 1; - __IO uint16_t ER4 : 1; - __IO uint16_t ER5 : 1; - __IO uint16_t ER6 : 1; - __IO uint16_t ER7 : 1; - __IO uint16_t ER8 : 1; - __IO uint16_t ER9 : 1; - __IO uint16_t ER10 : 1; - __IO uint16_t ER11 : 1; - __IO uint16_t ER12 : 1; - __IO uint16_t ER13 : 1; - __IO uint16_t ER14 : 1; - __IO uint16_t ER15 : 1; -} stc_exti_eirr_field_t; - -typedef struct stc_exti_eicl_field -{ - __IO uint16_t ECL0 : 1; - __IO uint16_t ECL1 : 1; - __IO uint16_t ECL2 : 1; - __IO uint16_t ECL3 : 1; - __IO uint16_t ECL4 : 1; - __IO uint16_t ECL5 : 1; - __IO uint16_t ECL6 : 1; - __IO uint16_t ECL7 : 1; - __IO uint16_t ECL8 : 1; - __IO uint16_t ECL9 : 1; - __IO uint16_t ECL10 : 1; - __IO uint16_t ECL11 : 1; - __IO uint16_t ECL12 : 1; - __IO uint16_t ECL13 : 1; - __IO uint16_t ECL14 : 1; - __IO uint16_t ECL15 : 1; -} stc_exti_eicl_field_t; - -typedef struct stc_exti_elvr_field -{ - __IO uint32_t LA0 : 1; - __IO uint32_t LB0 : 1; - __IO uint32_t LA1 : 1; - __IO uint32_t LB1 : 1; - __IO uint32_t LA2 : 1; - __IO uint32_t LB2 : 1; - __IO uint32_t LA3 : 1; - __IO uint32_t LB3 : 1; - __IO uint32_t LA4 : 1; - __IO uint32_t LB4 : 1; - __IO uint32_t LA5 : 1; - __IO uint32_t LB5 : 1; - __IO uint32_t LA6 : 1; - __IO uint32_t LB6 : 1; - __IO uint32_t LA7 : 1; - __IO uint32_t LB7 : 1; - __IO uint32_t LA8 : 1; - __IO uint32_t LB8 : 1; - __IO uint32_t LA9 : 1; - __IO uint32_t LB9 : 1; - __IO uint32_t LA10 : 1; - __IO uint32_t LB10 : 1; - __IO uint32_t LA11 : 1; - __IO uint32_t LB11 : 1; - __IO uint32_t LA12 : 1; - __IO uint32_t LB12 : 1; - __IO uint32_t LA13 : 1; - __IO uint32_t LB13 : 1; - __IO uint32_t LA14 : 1; - __IO uint32_t LB14 : 1; - __IO uint32_t LA15 : 1; - __IO uint32_t LB15 : 1; -} stc_exti_elvr_field_t; - -typedef struct stc_exti_nmirr_field -{ - __IO uint8_t NR0 : 1; -} stc_exti_nmirr_field_t; - -typedef struct stc_exti_nmicl_field -{ - __IO uint8_t NCL0 : 1; -} stc_exti_nmicl_field_t; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* INTREQ_MODULE register bit fields */ -typedef struct stc_intreq_drqsel_field -{ - __IO uint32_t DRQSEL0 : 1; - __IO uint32_t DRQSEL1 : 1; - __IO uint32_t DRQSEL2 : 1; - __IO uint32_t DRQSEL3 : 1; - __IO uint32_t DRQSEL4 : 1; - __IO uint32_t DRQSEL5 : 1; - __IO uint32_t DRQSEL6 : 1; - __IO uint32_t DRQSEL7 : 1; - __IO uint32_t DRQSEL8 : 1; - __IO uint32_t DRQSEL9 : 1; - __IO uint32_t DRQSEL10 : 1; - __IO uint32_t DRQSEL11 : 1; - __IO uint32_t DRQSEL12 : 1; - __IO uint32_t DRQSEL13 : 1; - __IO uint32_t DRQSEL14 : 1; - __IO uint32_t DRQSEL15 : 1; - __IO uint32_t DRQSEL16 : 1; - __IO uint32_t DRQSEL17 : 1; - __IO uint32_t DRQSEL18 : 1; - __IO uint32_t DRQSEL19 : 1; - __IO uint32_t DRQSEL20 : 1; - __IO uint32_t DRQSEL21 : 1; - __IO uint32_t DRQSEL22 : 1; - __IO uint32_t DRQSEL23 : 1; - __IO uint32_t DRQSEL24 : 1; - __IO uint32_t DRQSEL25 : 1; - __IO uint32_t DRQSEL26 : 1; - __IO uint32_t DRQSEL27 : 1; - __IO uint32_t DRQSEL28 : 1; - __IO uint32_t DRQSEL29 : 1; - __IO uint32_t DRQSEL30 : 1; - __IO uint32_t DRQSEL31 : 1; -} stc_intreq_drqsel_field_t; - -typedef struct stc_intreq_exc02mon_field -{ - __IO uint32_t NMI : 1; - __IO uint32_t HWINT : 1; -} stc_intreq_exc02mon_field_t; - -typedef struct stc_intreq_irq00mon_field -{ - __IO uint32_t FCSINT : 1; -} stc_intreq_irq00mon_field_t; - -typedef struct stc_intreq_irq01mon_field -{ - __IO uint32_t SWWDTINT : 1; -} stc_intreq_irq01mon_field_t; - -typedef struct stc_intreq_irq02mon_field -{ - __IO uint32_t LVDINT : 1; -} stc_intreq_irq02mon_field_t; - -typedef struct stc_intreq_irq03mon_field -{ - __IO uint32_t WAVE0INT0 : 1; - __IO uint32_t WAVE0INT1 : 1; - __IO uint32_t WAVE0INT2 : 1; - __IO uint32_t WAVE0INT3 : 1; - __IO uint32_t WAVE1INT0 : 1; - __IO uint32_t WAVE1INT1 : 1; - __IO uint32_t WAVE1INT2 : 1; - __IO uint32_t WAVE1INT3 : 1; -} stc_intreq_irq03mon_field_t; - -typedef struct stc_intreq_irq04mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; - __IO uint32_t EXTINT4 : 1; - __IO uint32_t EXTINT5 : 1; - __IO uint32_t EXTINT6 : 1; - __IO uint32_t EXTINT7 : 1; -} stc_intreq_irq04mon_field_t; - -typedef struct stc_intreq_irq05mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; - __IO uint32_t EXTINT4 : 1; - __IO uint32_t EXTINT5 : 1; - __IO uint32_t EXTINT6 : 1; - __IO uint32_t EXTINT7 : 1; -} stc_intreq_irq05mon_field_t; - -typedef struct stc_intreq_irq06mon_field -{ - __IO uint32_t TIMINT0 : 1; - __IO uint32_t TIMINT1 : 1; - __IO uint32_t QUD0INT0 : 1; - __IO uint32_t QUD0INT1 : 1; - __IO uint32_t QUD0INT2 : 1; - __IO uint32_t QUD0INT3 : 1; - __IO uint32_t QUD0INT4 : 1; - __IO uint32_t QUD0INT5 : 1; - __IO uint32_t QUD1INT0 : 1; - __IO uint32_t QUD1INT1 : 1; - __IO uint32_t QUD1INT2 : 1; - __IO uint32_t QUD1INT3 : 1; - __IO uint32_t QUD1INT4 : 1; - __IO uint32_t QUD1INT5 : 1; -} stc_intreq_irq06mon_field_t; - -typedef struct stc_intreq_irq07mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq07mon_field_t; - -typedef struct stc_intreq_irq08mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq08mon_field_t; - -typedef struct stc_intreq_irq09mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq09mon_field_t; - -typedef struct stc_intreq_irq10mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq10mon_field_t; - -typedef struct stc_intreq_irq11mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq11mon_field_t; - -typedef struct stc_intreq_irq12mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq12mon_field_t; - -typedef struct stc_intreq_irq13mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq13mon_field_t; - -typedef struct stc_intreq_irq14mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq14mon_field_t; - -typedef struct stc_intreq_irq15mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq15mon_field_t; - -typedef struct stc_intreq_irq16mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq16mon_field_t; - -typedef struct stc_intreq_irq17mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq17mon_field_t; - -typedef struct stc_intreq_irq18mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq18mon_field_t; - -typedef struct stc_intreq_irq19mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq19mon_field_t; - -typedef struct stc_intreq_irq20mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq20mon_field_t; - -typedef struct stc_intreq_irq21mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq21mon_field_t; - -typedef struct stc_intreq_irq22mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq22mon_field_t; - -typedef struct stc_intreq_irq23mon_field -{ - __IO uint32_t PPGINT0 : 1; - __IO uint32_t PPGINT1 : 1; - __IO uint32_t PPGINT2 : 1; - __IO uint32_t PPGINT3 : 1; - __IO uint32_t PPGINT4 : 1; - __IO uint32_t PPGINT5 : 1; -} stc_intreq_irq23mon_field_t; - -typedef struct stc_intreq_irq24mon_field -{ - __IO uint32_t MOSCINT : 1; - __IO uint32_t SOSCINT : 1; - __IO uint32_t MPLLINT : 1; - __IO uint32_t UPLLINT : 1; - __IO uint32_t WCINT : 1; -} stc_intreq_irq24mon_field_t; - -typedef struct stc_intreq_irq25mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq25mon_field_t; - -typedef struct stc_intreq_irq26mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq26mon_field_t; - -typedef struct stc_intreq_irq27mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq27mon_field_t; - -typedef struct stc_intreq_irq28mon_field -{ - __IO uint32_t FRT0INT0 : 1; - __IO uint32_t FRT0INT1 : 1; - __IO uint32_t FRT0INT2 : 1; - __IO uint32_t FRT0INT3 : 1; - __IO uint32_t FRT0INT4 : 1; - __IO uint32_t FRT0INT5 : 1; - __IO uint32_t FRT1INT0 : 1; - __IO uint32_t FRT1INT1 : 1; - __IO uint32_t FRT1INT2 : 1; - __IO uint32_t FRT1INT3 : 1; - __IO uint32_t FRT1INT4 : 1; - __IO uint32_t FRT1INT5 : 1; -} stc_intreq_irq28mon_field_t; - -typedef struct stc_intreq_irq29mon_field -{ - __IO uint32_t ICU0INT0 : 1; - __IO uint32_t ICU0INT1 : 1; - __IO uint32_t ICU0INT2 : 1; - __IO uint32_t ICU0INT3 : 1; - __IO uint32_t ICU1INT0 : 1; - __IO uint32_t ICU1INT1 : 1; - __IO uint32_t ICU1INT2 : 1; - __IO uint32_t ICU1INT3 : 1; -} stc_intreq_irq29mon_field_t; - -typedef struct stc_intreq_irq30mon_field -{ - __IO uint32_t OCU0INT0 : 1; - __IO uint32_t OCU0INT1 : 1; - __IO uint32_t OCU0INT2 : 1; - __IO uint32_t OCU0INT3 : 1; - __IO uint32_t OCU0INT4 : 1; - __IO uint32_t OCU0INT5 : 1; - __IO uint32_t OCU1INT0 : 1; - __IO uint32_t OCU1INT1 : 1; - __IO uint32_t OCU1INT2 : 1; - __IO uint32_t OCU1INT3 : 1; - __IO uint32_t OCU1INT4 : 1; - __IO uint32_t OCU1INT5 : 1; -} stc_intreq_irq30mon_field_t; - -typedef struct stc_intreq_irq31mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; - __IO uint32_t BTINT2 : 1; - __IO uint32_t BTINT3 : 1; - __IO uint32_t BTINT4 : 1; - __IO uint32_t BTINT5 : 1; - __IO uint32_t BTINT6 : 1; - __IO uint32_t BTINT7 : 1; - __IO uint32_t BTINT8 : 1; - __IO uint32_t BTINT9 : 1; - __IO uint32_t BTINT10 : 1; - __IO uint32_t BTINT11 : 1; - __IO uint32_t BTINT12 : 1; - __IO uint32_t BTINT13 : 1; - __IO uint32_t BTINT14 : 1; - __IO uint32_t BTINT15 : 1; -} stc_intreq_irq31mon_field_t; - -typedef struct stc_intreq_irq32mon_field -{ - __IO uint32_t CANINT : 1; -} stc_intreq_irq32mon_field_t; - -typedef struct stc_intreq_irq33mon_field -{ - __IO uint32_t CANINT : 1; -} stc_intreq_irq33mon_field_t; - -typedef struct stc_intreq_irq34mon_field -{ - __IO uint32_t USB0INT0 : 1; - __IO uint32_t USB0INT1 : 1; - __IO uint32_t USB0INT2 : 1; - __IO uint32_t USB0INT3 : 1; - __IO uint32_t USB0INT4 : 1; -} stc_intreq_irq34mon_field_t; - -typedef struct stc_intreq_irq35mon_field -{ - __IO uint32_t USB0INT0 : 1; - __IO uint32_t USB0INT1 : 1; - __IO uint32_t USB0INT2 : 1; - __IO uint32_t USB0INT3 : 1; - __IO uint32_t USB0INT4 : 1; - __IO uint32_t USB0INT5 : 1; -} stc_intreq_irq35mon_field_t; - -typedef struct stc_intreq_irq38mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq38mon_field_t; - -typedef struct stc_intreq_irq39mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq39mon_field_t; - -typedef struct stc_intreq_irq40mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq40mon_field_t; - -typedef struct stc_intreq_irq41mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq41mon_field_t; - -typedef struct stc_intreq_irq42mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq42mon_field_t; - -typedef struct stc_intreq_irq43mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq43mon_field_t; - -typedef struct stc_intreq_irq44mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq44mon_field_t; - -typedef struct stc_intreq_irq45mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq45mon_field_t; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* GPIO_MODULE register bit fields */ -typedef struct stc_gpio_pfr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr0_field_t; - -typedef struct stc_gpio_pfr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr1_field_t; - -typedef struct stc_gpio_pfr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pfr2_field_t; - -typedef struct stc_gpio_pfr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr3_field_t; - -typedef struct stc_gpio_pfr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pfr4_field_t; - -typedef struct stc_gpio_pfr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pfr5_field_t; - -typedef struct stc_gpio_pfr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pfr6_field_t; - -typedef struct stc_gpio_pfr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; -} stc_gpio_pfr7_field_t; - -typedef struct stc_gpio_pfr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; -} stc_gpio_pfr8_field_t; - -typedef struct stc_gpio_pcr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr0_field_t; - -typedef struct stc_gpio_pcr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr1_field_t; - -typedef struct stc_gpio_pcr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pcr2_field_t; - -typedef struct stc_gpio_pcr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr3_field_t; - -typedef struct stc_gpio_pcr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pcr4_field_t; - -typedef struct stc_gpio_pcr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pcr5_field_t; - -typedef struct stc_gpio_pcr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pcr6_field_t; - -typedef struct stc_gpio_pcr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; -} stc_gpio_pcr7_field_t; - -typedef struct stc_gpio_ddr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr0_field_t; - -typedef struct stc_gpio_ddr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr1_field_t; - -typedef struct stc_gpio_ddr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_ddr2_field_t; - -typedef struct stc_gpio_ddr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr3_field_t; - -typedef struct stc_gpio_ddr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_ddr4_field_t; - -typedef struct stc_gpio_ddr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_ddr5_field_t; - -typedef struct stc_gpio_ddr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_ddr6_field_t; - -typedef struct stc_gpio_ddr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; -} stc_gpio_ddr7_field_t; - -typedef struct stc_gpio_ddr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; -} stc_gpio_ddr8_field_t; - -typedef struct stc_gpio_pdir0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir0_field_t; - -typedef struct stc_gpio_pdir1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir1_field_t; - -typedef struct stc_gpio_pdir2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pdir2_field_t; - -typedef struct stc_gpio_pdir3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir3_field_t; - -typedef struct stc_gpio_pdir4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pdir4_field_t; - -typedef struct stc_gpio_pdir5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pdir5_field_t; - -typedef struct stc_gpio_pdir6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pdir6_field_t; - -typedef struct stc_gpio_pdir7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; -} stc_gpio_pdir7_field_t; - -typedef struct stc_gpio_pdir8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; -} stc_gpio_pdir8_field_t; - -typedef struct stc_gpio_pdor0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor0_field_t; - -typedef struct stc_gpio_pdor1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor1_field_t; - -typedef struct stc_gpio_pdor2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pdor2_field_t; - -typedef struct stc_gpio_pdor3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor3_field_t; - -typedef struct stc_gpio_pdor4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pdor4_field_t; - -typedef struct stc_gpio_pdor5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pdor5_field_t; - -typedef struct stc_gpio_pdor6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; -} stc_gpio_pdor6_field_t; - -typedef struct stc_gpio_pdor7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; -} stc_gpio_pdor7_field_t; - -typedef struct stc_gpio_pdor8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; -} stc_gpio_pdor8_field_t; - -typedef struct stc_gpio_ade_field -{ - __IO uint32_t AN0 : 1; - __IO uint32_t AN1 : 1; - __IO uint32_t AN2 : 1; - __IO uint32_t AN3 : 1; - __IO uint32_t AN4 : 1; - __IO uint32_t AN5 : 1; - __IO uint32_t AN6 : 1; - __IO uint32_t AN7 : 1; - __IO uint32_t AN8 : 1; - __IO uint32_t AN9 : 1; - __IO uint32_t ANA : 1; - __IO uint32_t ANB : 1; - __IO uint32_t ANC : 1; - __IO uint32_t AND : 1; - __IO uint32_t ANE : 1; - __IO uint32_t ANF : 1; -} stc_gpio_ade_field_t; - -typedef struct stc_gpio_spsr_field -{ - __IO uint32_t SUBXC : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t USB0C : 1; -} stc_gpio_spsr_field_t; - -typedef struct stc_gpio_epfr00_field -{ - __IO uint32_t NMIS : 1; - __IO uint32_t CROUTE : 1; - uint32_t RESERVED1 : 7; - __IO uint32_t USB0PE : 1; - uint32_t RESERVED2 : 6; - __IO uint32_t JTAGEN0B : 1; - __IO uint32_t JTAGEN1S : 1; - uint32_t RESERVED3 : 6; - __IO uint32_t TRC0E : 1; - __IO uint32_t TRC1E : 1; -} stc_gpio_epfr00_field_t; - -typedef struct stc_gpio_epfr01_field -{ - __IO uint32_t RTO00E0 : 1; - __IO uint32_t RTO00E1 : 1; - __IO uint32_t RTO01E0 : 1; - __IO uint32_t RTO01E1 : 1; - __IO uint32_t RTO02E0 : 1; - __IO uint32_t RTO02E1 : 1; - __IO uint32_t RTO03E0 : 1; - __IO uint32_t RTO03E1 : 1; - __IO uint32_t RTO04E0 : 1; - __IO uint32_t RTO04E1 : 1; - __IO uint32_t RTO05E0 : 1; - __IO uint32_t RTO05E1 : 1; - __IO uint32_t DTTI0C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI0S0 : 1; - __IO uint32_t DTTI0S1 : 1; - __IO uint32_t FRCK0S0 : 1; - __IO uint32_t FRCK0S1 : 1; - __IO uint32_t IC00S0 : 1; - __IO uint32_t IC00S1 : 1; - __IO uint32_t IC00S2 : 1; - __IO uint32_t IC01S0 : 1; - __IO uint32_t IC01S1 : 1; - __IO uint32_t IC01S2 : 1; - __IO uint32_t IC02S0 : 1; - __IO uint32_t IC02S1 : 1; - __IO uint32_t IC02S2 : 1; - __IO uint32_t IC03S0 : 1; - __IO uint32_t IC03S1 : 1; - __IO uint32_t IC03S2 : 1; -} stc_gpio_epfr01_field_t; - -typedef struct stc_gpio_epfr02_field -{ - __IO uint32_t RTO10E0 : 1; - __IO uint32_t RTO10E1 : 1; - __IO uint32_t RTO11E0 : 1; - __IO uint32_t RTO11E1 : 1; - __IO uint32_t RTO12E0 : 1; - __IO uint32_t RTO12E1 : 1; - __IO uint32_t RTO13E0 : 1; - __IO uint32_t RTO13E1 : 1; - __IO uint32_t RTO14E0 : 1; - __IO uint32_t RTO14E1 : 1; - __IO uint32_t RTO15E0 : 1; - __IO uint32_t RTO15E1 : 1; - __IO uint32_t DTTI1C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI1S0 : 1; - __IO uint32_t DTTI1S1 : 1; - __IO uint32_t FRCK1S0 : 1; - __IO uint32_t FRCK1S1 : 1; - __IO uint32_t IC10S0 : 1; - __IO uint32_t IC10S1 : 1; - __IO uint32_t IC10S2 : 1; - __IO uint32_t IC11S0 : 1; - __IO uint32_t IC11S1 : 1; - __IO uint32_t IC11S2 : 1; - __IO uint32_t IC12S0 : 1; - __IO uint32_t IC12S1 : 1; - __IO uint32_t IC12S2 : 1; - __IO uint32_t IC13S0 : 1; - __IO uint32_t IC13S1 : 1; - __IO uint32_t IC13S2 : 1; -} stc_gpio_epfr02_field_t; - -typedef struct stc_gpio_epfr04_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA0E0 : 1; - __IO uint32_t TIOA0E1 : 1; - __IO uint32_t TIOB0S0 : 1; - __IO uint32_t TIOB0S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA1S0 : 1; - __IO uint32_t TIOA1S1 : 1; - __IO uint32_t TIOA1E0 : 1; - __IO uint32_t TIOA1E1 : 1; - __IO uint32_t TIOB1S0 : 1; - __IO uint32_t TIOB1S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA2E0 : 1; - __IO uint32_t TIOA2E1 : 1; - __IO uint32_t TIOB2S0 : 1; - __IO uint32_t TIOB2S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA3S0 : 1; - __IO uint32_t TIOA3S1 : 1; - __IO uint32_t TIOA3E0 : 1; - __IO uint32_t TIOA3E1 : 1; - __IO uint32_t TIOB3S0 : 1; - __IO uint32_t TIOB3S1 : 1; -} stc_gpio_epfr04_field_t; - -typedef struct stc_gpio_epfr05_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA4E0 : 1; - __IO uint32_t TIOA4E1 : 1; - __IO uint32_t TIOB4S0 : 1; - __IO uint32_t TIOB4S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA5S0 : 1; - __IO uint32_t TIOA5S1 : 1; - __IO uint32_t TIOA5E0 : 1; - __IO uint32_t TIOA5E1 : 1; - __IO uint32_t TIOB5S0 : 1; - __IO uint32_t TIOB5S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA6E0 : 1; - __IO uint32_t TIOA6E1 : 1; - __IO uint32_t TIOB6S0 : 1; - __IO uint32_t TIOB6S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA7S0 : 1; - __IO uint32_t TIOA7S1 : 1; - __IO uint32_t TIOA7E0 : 1; - __IO uint32_t TIOA7E1 : 1; - __IO uint32_t TIOB7S0 : 1; - __IO uint32_t TIOB7S1 : 1; -} stc_gpio_epfr05_field_t; - -typedef struct stc_gpio_epfr06_field -{ - __IO uint32_t EINT00S0 : 1; - __IO uint32_t EINT00S1 : 1; - __IO uint32_t EINT01S0 : 1; - __IO uint32_t EINT01S1 : 1; - __IO uint32_t EINT02S0 : 1; - __IO uint32_t EINT02S1 : 1; - __IO uint32_t EINT03S0 : 1; - __IO uint32_t EINT03S1 : 1; - __IO uint32_t EINT04S0 : 1; - __IO uint32_t EINT04S1 : 1; - __IO uint32_t EINT05S0 : 1; - __IO uint32_t EINT05S1 : 1; - __IO uint32_t EINT06S0 : 1; - __IO uint32_t EINT06S1 : 1; - __IO uint32_t EINT07S0 : 1; - __IO uint32_t EINT07S1 : 1; - __IO uint32_t EINT08S0 : 1; - __IO uint32_t EINT08S1 : 1; - __IO uint32_t EINT09S0 : 1; - __IO uint32_t EINT09S1 : 1; - __IO uint32_t EINT10S0 : 1; - __IO uint32_t EINT10S1 : 1; - __IO uint32_t EINT11S0 : 1; - __IO uint32_t EINT11S1 : 1; - __IO uint32_t EINT12S0 : 1; - __IO uint32_t EINT12S1 : 1; - __IO uint32_t EINT13S0 : 1; - __IO uint32_t EINT13S1 : 1; - __IO uint32_t EINT14S0 : 1; - __IO uint32_t EINT14S1 : 1; - __IO uint32_t EINT15S0 : 1; - __IO uint32_t EINT15S1 : 1; -} stc_gpio_epfr06_field_t; - -typedef struct stc_gpio_epfr07_field -{ - uint32_t RESERVED1 : 4; - __IO uint32_t SIN0S0 : 1; - __IO uint32_t SIN0S1 : 1; - __IO uint32_t SOT0B0 : 1; - __IO uint32_t SOT0B1 : 1; - __IO uint32_t SCK0B0 : 1; - __IO uint32_t SCK0B1 : 1; - __IO uint32_t SIN1S0 : 1; - __IO uint32_t SIN1S1 : 1; - __IO uint32_t SOT1B0 : 1; - __IO uint32_t SOT1B1 : 1; - __IO uint32_t SCK1B0 : 1; - __IO uint32_t SCK1B1 : 1; - __IO uint32_t SIN2S0 : 1; - __IO uint32_t SIN2S1 : 1; - __IO uint32_t SOT2B0 : 1; - __IO uint32_t SOT2B1 : 1; - __IO uint32_t SCK2B0 : 1; - __IO uint32_t SCK2B1 : 1; - __IO uint32_t SIN3S0 : 1; - __IO uint32_t SIN3S1 : 1; - __IO uint32_t SOT3B0 : 1; - __IO uint32_t SOT3B1 : 1; - __IO uint32_t SCK3B0 : 1; - __IO uint32_t SCK3B1 : 1; -} stc_gpio_epfr07_field_t; - -typedef struct stc_gpio_epfr08_field -{ - __IO uint32_t RTS4E0 : 1; - __IO uint32_t RTS4E1 : 1; - __IO uint32_t CTS4S0 : 1; - __IO uint32_t CTS4S1 : 1; - __IO uint32_t SIN4S0 : 1; - __IO uint32_t SIN4S1 : 1; - __IO uint32_t SOT4B0 : 1; - __IO uint32_t SOT4B1 : 1; - __IO uint32_t SCK4B0 : 1; - __IO uint32_t SCK4B1 : 1; - __IO uint32_t SIN5S0 : 1; - __IO uint32_t SIN5S1 : 1; - __IO uint32_t SOT5B0 : 1; - __IO uint32_t SOT5B1 : 1; - __IO uint32_t SCK5B0 : 1; - __IO uint32_t SCK5B1 : 1; - __IO uint32_t SIN6S0 : 1; - __IO uint32_t SIN6S1 : 1; - __IO uint32_t SOT6B0 : 1; - __IO uint32_t SOT6B1 : 1; - __IO uint32_t SCK6B0 : 1; - __IO uint32_t SCK6B1 : 1; - __IO uint32_t SIN7S0 : 1; - __IO uint32_t SIN7S1 : 1; - __IO uint32_t SOT7B0 : 1; - __IO uint32_t SOT7B1 : 1; - __IO uint32_t SCK7B0 : 1; - __IO uint32_t SCK7B1 : 1; -} stc_gpio_epfr08_field_t; - -typedef struct stc_gpio_epfr09_field -{ - __IO uint32_t QAIN0S0 : 1; - __IO uint32_t QAIN0S1 : 1; - __IO uint32_t QBIN0S0 : 1; - __IO uint32_t QBIN0S1 : 1; - __IO uint32_t QZIN0S0 : 1; - __IO uint32_t QZIN0S1 : 1; - __IO uint32_t QAIN1S0 : 1; - __IO uint32_t QAIN1S1 : 1; - __IO uint32_t QBIN1S0 : 1; - __IO uint32_t QBIN1S1 : 1; - __IO uint32_t QZIN1S0 : 1; - __IO uint32_t QZIN1S1 : 1; - __IO uint32_t ADTRG0S0 : 1; - __IO uint32_t ADTRG0S1 : 1; - __IO uint32_t ADTRG0S2 : 1; - __IO uint32_t ADTRG0S3 : 1; - __IO uint32_t ADTRG1S0 : 1; - __IO uint32_t ADTRG1S1 : 1; - __IO uint32_t ADTRG1S2 : 1; - __IO uint32_t ADTRG1S3 : 1; - __IO uint32_t ADTRG2S0 : 1; - __IO uint32_t ADTRG2S1 : 1; - __IO uint32_t ADTRG2S2 : 1; - __IO uint32_t ADTRG2S3 : 1; - __IO uint32_t CRX0S0 : 1; - __IO uint32_t CRX0S1 : 1; - __IO uint32_t CTX0E0 : 1; - __IO uint32_t CTX0E1 : 1; - __IO uint32_t CRX1S0 : 1; - __IO uint32_t CRX1S1 : 1; - __IO uint32_t CTX1E0 : 1; - __IO uint32_t CTX1E1 : 1; -} stc_gpio_epfr09_field_t; - -typedef struct stc_gpio_epfr10_field -{ - __IO uint32_t UEDEFB : 1; - __IO uint32_t UEDTHB : 1; - __IO uint32_t TESTB : 1; - __IO uint32_t UEWEXE : 1; - __IO uint32_t UEDQME : 1; - __IO uint32_t UEOEXE : 1; - __IO uint32_t UEFLSE : 1; - __IO uint32_t UECS1E : 1; - __IO uint32_t UECS2E : 1; - __IO uint32_t UECS3E : 1; - __IO uint32_t UECS4E : 1; - __IO uint32_t UECS5E : 1; - __IO uint32_t UECS6E : 1; - __IO uint32_t UECS7E : 1; - __IO uint32_t UEAOOE : 1; - __IO uint32_t UEA08E : 1; - __IO uint32_t UEA09E : 1; - __IO uint32_t UEA10E : 1; - __IO uint32_t UEA11E : 1; - __IO uint32_t UEA12E : 1; - __IO uint32_t UEA13E : 1; - __IO uint32_t UEA14E : 1; - __IO uint32_t UEA15E : 1; - __IO uint32_t UEA16E : 1; - __IO uint32_t UEA17E : 1; - __IO uint32_t UEA18E : 1; - __IO uint32_t UEA19E : 1; - __IO uint32_t UEA20E : 1; - __IO uint32_t UEA21E : 1; - __IO uint32_t UEA22E : 1; - __IO uint32_t UEA23E : 1; - __IO uint32_t UEA24E : 1; -} stc_gpio_epfr10_field_t; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* LVD_MODULE register bit fields */ -typedef struct stc_lvd_lvd_ctl_field -{ - uint8_t RESERVED1 : 2; - __IO uint8_t SVHI0 : 1; - __IO uint8_t SVHI1 : 1; - __IO uint8_t SVHI2 : 1; - __IO uint8_t SVHI3 : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t LVDIE : 1; -} stc_lvd_lvd_ctl_field_t; - -typedef struct stc_lvd_lvd_str_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIR : 1; -} stc_lvd_lvd_str_field_t; - -typedef struct stc_lvd_lvd_clr_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDCL : 1; -} stc_lvd_lvd_clr_field_t; - -typedef struct stc_lvd_lvd_str2_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIRDY : 1; -} stc_lvd_lvd_str2_field_t; - -/****************************************************************************** - * USBCLK - ******************************************************************************/ -/* USBCLK register bit fields */ -typedef struct stc_usbclk_uccr_field -{ - __IO uint8_t UCEN : 1; - __IO uint8_t UCSEL : 1; -} stc_usbclk_uccr_field_t; - -typedef struct stc_usbclk_upcr1_field -{ - __IO uint8_t UPLLEN : 1; - __IO uint8_t UPINC : 1; -} stc_usbclk_upcr1_field_t; - -typedef struct stc_usbclk_upcr2_field -{ - __IO uint8_t UPOWT0 : 1; - __IO uint8_t UPOWT1 : 1; - __IO uint8_t UPOWT2 : 1; -} stc_usbclk_upcr2_field_t; - -typedef struct stc_usbclk_upcr3_field -{ - __IO uint8_t UPLLK0 : 1; - __IO uint8_t UPLLK1 : 1; - __IO uint8_t UPLLK2 : 1; - __IO uint8_t UPLLK3 : 1; - __IO uint8_t UPLLK4 : 1; -} stc_usbclk_upcr3_field_t; - -typedef struct stc_usbclk_upcr4_field -{ - __IO uint8_t UPLLN0 : 1; - __IO uint8_t UPLLN1 : 1; - __IO uint8_t UPLLN2 : 1; - __IO uint8_t UPLLN3 : 1; - __IO uint8_t UPLLN4 : 1; -} stc_usbclk_upcr4_field_t; - -typedef struct stc_usbclk_up_str_field -{ - __IO uint8_t UPRDY : 1; -} stc_usbclk_up_str_field_t; - -typedef struct stc_usbclk_upint_enr_field -{ - __IO uint8_t UPCSE : 1; -} stc_usbclk_upint_enr_field_t; - -typedef struct stc_usbclk_upint_clr_field -{ - __IO uint8_t UPCSC : 1; -} stc_usbclk_upint_clr_field_t; - -typedef struct stc_usbclk_upint_str_field -{ - __IO uint8_t UPCSI : 1; -} stc_usbclk_upint_str_field_t; - -typedef struct stc_usbclk_usben_field -{ - __IO uint8_t USBEN : 1; -} stc_usbclk_usben_field_t; - -/****************************************************************************** - * CANPRE_MODULE - ******************************************************************************/ -/* CANPRE_MODULE register bit fields */ -typedef struct stc_canpre_canpre_field -{ - __IO uint8_t CANPRE0 : 1; - __IO uint8_t CANPRE1 : 1; - __IO uint8_t CANPRE2 : 1; - __IO uint8_t CANPRE3 : 1; -} stc_canpre_canpre_field_t; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* MFS03_UART_MODULE register bit fields */ -typedef struct stc_mfs03_uart_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_uart_smr_field_t; - -typedef struct stc_mfs03_uart_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; -} stc_mfs03_uart_scr_field_t; - -typedef struct stc_mfs03_uart_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t P : 1; - __IO uint8_t PEN : 1; - __IO uint8_t INV : 1; - __IO uint8_t ESBL : 1; - __IO uint8_t FLWEN : 1; -} stc_mfs03_uart_escr_field_t; - -typedef struct stc_mfs03_uart_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t PE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs03_uart_ssr_field_t; - -typedef struct stc_mfs03_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs03_uart_rdr_field_t; - -typedef struct stc_mfs03_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs03_uart_tdr_field_t; - -typedef struct stc_mfs03_uart_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs03_uart_bgr_field_t; - -typedef struct stc_mfs03_uart_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs03_uart_bgr1_field_t; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* MFS03_CSIO_MODULE register bit fields */ -typedef struct stc_mfs03_csio_smr_field -{ - __IO uint8_t SOE : 1; - __IO uint8_t SCKE : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SCINV : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_csio_smr_field_t; - -typedef struct stc_mfs03_csio_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t SPI : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs03_csio_scr_field_t; - -typedef struct stc_mfs03_csio_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t WT0 : 1; - __IO uint8_t WT1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SOP : 1; -} stc_mfs03_csio_escr_field_t; - -typedef struct stc_mfs03_csio_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t REC : 1; -} stc_mfs03_csio_ssr_field_t; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* MFS03_LIN_MODULE register bit fields */ -typedef struct stc_mfs03_lin_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_lin_smr_field_t; - -typedef struct stc_mfs03_lin_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t LBR : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs03_lin_scr_field_t; - -typedef struct stc_mfs03_lin_escr_field -{ - __IO uint8_t DEL0 : 1; - __IO uint8_t DEL1 : 1; - __IO uint8_t LBL0 : 1; - __IO uint8_t LBL1 : 1; - __IO uint8_t LBIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t ESBL : 1; -} stc_mfs03_lin_escr_field_t; - -typedef struct stc_mfs03_lin_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t LBD : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs03_lin_ssr_field_t; - -typedef struct stc_mfs03_lin_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs03_lin_bgr_field_t; - -typedef struct stc_mfs03_lin_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs03_lin_bgr1_field_t; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* MFS03_I2C_MODULE register bit fields */ -typedef struct stc_mfs03_i2c_smr_field -{ - __IO uint8_t ITST0 : 1; - __IO uint8_t ITST1 : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_i2c_smr_field_t; - -typedef struct stc_mfs03_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs03_i2c_ibcr_field_t; - -typedef struct stc_mfs03_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs03_i2c_ibsr_field_t; - -typedef struct stc_mfs03_i2c_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t DMA : 1; - __IO uint8_t TSET : 1; - __IO uint8_t REC : 1; -} stc_mfs03_i2c_ssr_field_t; - -typedef struct stc_mfs03_i2c_isba_field -{ - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - __IO uint8_t SAEN : 1; -} stc_mfs03_i2c_isba_field_t; - -typedef struct stc_mfs03_i2c_ismk_field -{ - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - __IO uint8_t EN : 1; -} stc_mfs03_i2c_ismk_field_t; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* MFS47_UART_MODULE register bit fields */ -typedef struct stc_mfs47_uart_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_uart_smr_field_t; - -typedef struct stc_mfs47_uart_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; -} stc_mfs47_uart_scr_field_t; - -typedef struct stc_mfs47_uart_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t P : 1; - __IO uint8_t PEN : 1; - __IO uint8_t INV : 1; - __IO uint8_t ESBL : 1; - __IO uint8_t FLWEN : 1; -} stc_mfs47_uart_escr_field_t; - -typedef struct stc_mfs47_uart_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t PE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs47_uart_ssr_field_t; - -typedef struct stc_mfs47_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs47_uart_rdr_field_t; - -typedef struct stc_mfs47_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs47_uart_tdr_field_t; - -typedef struct stc_mfs47_uart_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs47_uart_bgr_field_t; - -typedef struct stc_mfs47_uart_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs47_uart_bgr1_field_t; - -typedef struct stc_mfs47_uart_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_uart_fcr_field_t; - -typedef struct stc_mfs47_uart_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_uart_fcr0_field_t; - -typedef struct stc_mfs47_uart_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_uart_fcr1_field_t; - -typedef struct stc_mfs47_uart_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_uart_fbyte_field_t; - -typedef struct stc_mfs47_uart_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_uart_fbyte1_field_t; - -typedef struct stc_mfs47_uart_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_uart_fbyte2_field_t; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* MFS47_CSIO_MODULE register bit fields */ -typedef struct stc_mfs47_csio_smr_field -{ - __IO uint8_t SOE : 1; - __IO uint8_t SCKE : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SCINV : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_csio_smr_field_t; - -typedef struct stc_mfs47_csio_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t SPI : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs47_csio_scr_field_t; - -typedef struct stc_mfs47_csio_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t WT0 : 1; - __IO uint8_t WT1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SOP : 1; -} stc_mfs47_csio_escr_field_t; - -typedef struct stc_mfs47_csio_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t REC : 1; -} stc_mfs47_csio_ssr_field_t; - -typedef struct stc_mfs47_csio_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_csio_fcr_field_t; - -typedef struct stc_mfs47_csio_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_csio_fcr0_field_t; - -typedef struct stc_mfs47_csio_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_csio_fcr1_field_t; - -typedef struct stc_mfs47_csio_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_csio_fbyte_field_t; - -typedef struct stc_mfs47_csio_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_csio_fbyte1_field_t; - -typedef struct stc_mfs47_csio_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_csio_fbyte2_field_t; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* MFS47_LIN_MODULE register bit fields */ -typedef struct stc_mfs47_lin_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_lin_smr_field_t; - -typedef struct stc_mfs47_lin_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t LBR : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs47_lin_scr_field_t; - -typedef struct stc_mfs47_lin_escr_field -{ - __IO uint8_t DEL0 : 1; - __IO uint8_t DEL1 : 1; - __IO uint8_t LBL0 : 1; - __IO uint8_t LBL1 : 1; - __IO uint8_t LBIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t ESBL : 1; -} stc_mfs47_lin_escr_field_t; - -typedef struct stc_mfs47_lin_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t LBD : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs47_lin_ssr_field_t; - -typedef struct stc_mfs47_lin_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs47_lin_bgr_field_t; - -typedef struct stc_mfs47_lin_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs47_lin_bgr1_field_t; - -typedef struct stc_mfs47_lin_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_lin_fcr_field_t; - -typedef struct stc_mfs47_lin_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_lin_fcr0_field_t; - -typedef struct stc_mfs47_lin_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_lin_fcr1_field_t; - -typedef struct stc_mfs47_lin_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_lin_fbyte_field_t; - -typedef struct stc_mfs47_lin_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_lin_fbyte1_field_t; - -typedef struct stc_mfs47_lin_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_lin_fbyte2_field_t; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* MFS47_I2C_MODULE register bit fields */ -typedef struct stc_mfs47_i2c_smr_field -{ - __IO uint8_t ITST0 : 1; - __IO uint8_t ITST1 : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_i2c_smr_field_t; - -typedef struct stc_mfs47_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs47_i2c_ibcr_field_t; - -typedef struct stc_mfs47_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs47_i2c_ibsr_field_t; - -typedef struct stc_mfs47_i2c_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t DMA : 1; - __IO uint8_t TSET : 1; - __IO uint8_t REC : 1; -} stc_mfs47_i2c_ssr_field_t; - -typedef struct stc_mfs47_i2c_isba_field -{ - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - __IO uint8_t SAEN : 1; -} stc_mfs47_i2c_isba_field_t; - -typedef struct stc_mfs47_i2c_ismk_field -{ - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - __IO uint8_t EN : 1; -} stc_mfs47_i2c_ismk_field_t; - -typedef struct stc_mfs47_i2c_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_i2c_fcr_field_t; - -typedef struct stc_mfs47_i2c_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_i2c_fcr0_field_t; - -typedef struct stc_mfs47_i2c_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_i2c_fcr1_field_t; - -typedef struct stc_mfs47_i2c_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_i2c_fbyte_field_t; - -typedef struct stc_mfs47_i2c_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_i2c_fbyte1_field_t; - -typedef struct stc_mfs47_i2c_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_i2c_fbyte2_field_t; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC_MODULE register bit fields */ -typedef struct stc_crc_crccr_field -{ - __IO uint8_t INIT : 1; - __IO uint8_t CRC32 : 1; - __IO uint8_t LTLEND : 1; - __IO uint8_t LSBFST : 1; - __IO uint8_t CRCLTE : 1; - __IO uint8_t CRCLSF : 1; - __IO uint8_t FXOR : 1; -} stc_crc_crccr_field_t; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* WC_MODULE register bit fields */ -typedef struct stc_wc_wcrd_field -{ - __IO uint8_t CTR0 : 1; - __IO uint8_t CTR1 : 1; - __IO uint8_t CTR2 : 1; - __IO uint8_t CTR3 : 1; - __IO uint8_t CTR4 : 1; - __IO uint8_t CTR5 : 1; -} stc_wc_wcrd_field_t; - -typedef struct stc_wc_wcrl_field -{ - __IO uint8_t RLC0 : 1; - __IO uint8_t RLC1 : 1; - __IO uint8_t RLC2 : 1; - __IO uint8_t RLC3 : 1; - __IO uint8_t RLC4 : 1; - __IO uint8_t RLC5 : 1; -} stc_wc_wcrl_field_t; - -typedef struct stc_wc_wccr_field -{ - __IO uint8_t WCIF : 1; - __IO uint8_t WCIE : 1; - __IO uint8_t CS0 : 1; - __IO uint8_t CS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t WCOP : 1; - __IO uint8_t WCEN : 1; -} stc_wc_wccr_field_t; - -typedef struct stc_wc_clk_sel_field -{ - __IO uint16_t SEL_IN : 1; - uint16_t RESERVED1 : 7; - __IO uint16_t SEL_OUT : 1; -} stc_wc_clk_sel_field_t; - -typedef struct stc_wc_clk_en_field -{ - __IO uint8_t CLK_EN : 1; - __IO uint8_t CLK_EN_R : 1; -} stc_wc_clk_en_field_t; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* EXBUS_MODULE register bit fields */ -typedef struct stc_exbus_mode0_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode0_field_t; - -typedef struct stc_exbus_mode1_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode1_field_t; - -typedef struct stc_exbus_mode2_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode2_field_t; - -typedef struct stc_exbus_mode3_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode3_field_t; - -typedef struct stc_exbus_mode4_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode4_field_t; - -typedef struct stc_exbus_mode5_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode5_field_t; - -typedef struct stc_exbus_mode6_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode6_field_t; - -typedef struct stc_exbus_mode7_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t TEST : 1; -} stc_exbus_mode7_field_t; - -typedef struct stc_exbus_tim0_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim0_field_t; - -typedef struct stc_exbus_tim1_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim1_field_t; - -typedef struct stc_exbus_tim2_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim2_field_t; - -typedef struct stc_exbus_tim3_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim3_field_t; - -typedef struct stc_exbus_tim4_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim4_field_t; - -typedef struct stc_exbus_tim5_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim5_field_t; - -typedef struct stc_exbus_tim6_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim6_field_t; - -typedef struct stc_exbus_tim7_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim7_field_t; - -typedef struct stc_exbus_area0_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area0_field_t; - -typedef struct stc_exbus_area1_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area1_field_t; - -typedef struct stc_exbus_area2_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area2_field_t; - -typedef struct stc_exbus_area3_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area3_field_t; - -typedef struct stc_exbus_area4_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area4_field_t; - -typedef struct stc_exbus_area5_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area5_field_t; - -typedef struct stc_exbus_area6_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area6_field_t; - -typedef struct stc_exbus_area7_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area7_field_t; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB_MODULE register bit fields */ -typedef struct stc_usb_hcnt_field -{ - __IO uint16_t HOST : 1; - __IO uint16_t URST : 1; - __IO uint16_t SOFIRE : 1; - __IO uint16_t DIRE : 1; - __IO uint16_t CNNIRE : 1; - __IO uint16_t CMPIRE : 1; - __IO uint16_t URIRE : 1; - __IO uint16_t RWKIRE : 1; - __IO uint16_t RETRY : 1; - __IO uint16_t CANCEL : 1; - __IO uint16_t SOFSTEP : 1; -} stc_usb_hcnt_field_t; - -typedef struct stc_usb_hcnt0_field -{ - __IO uint8_t HOST : 1; - __IO uint8_t URST : 1; - __IO uint8_t SOFIRE : 1; - __IO uint8_t DIRE : 1; - __IO uint8_t CNNIRE : 1; - __IO uint8_t CMPIRE : 1; - __IO uint8_t URIRE : 1; - __IO uint8_t RWKIRE : 1; -} stc_usb_hcnt0_field_t; - -typedef struct stc_usb_hcnt1_field -{ - __IO uint8_t RETRY : 1; - __IO uint8_t CANCEL : 1; - __IO uint8_t SOFSTEP : 1; -} stc_usb_hcnt1_field_t; - -typedef struct stc_usb_hirq_field -{ - __IO uint8_t SOFIRQ : 1; - __IO uint8_t DIRQ : 1; - __IO uint8_t CNNIRQ : 1; - __IO uint8_t CMPIRQ : 1; - __IO uint8_t URIRQ : 1; - __IO uint8_t RWKIRQ : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TCAN : 1; -} stc_usb_hirq_field_t; - -typedef struct stc_usb_herr_field -{ - __IO uint8_t HS0 : 1; - __IO uint8_t HS1 : 1; - __IO uint8_t STUFF : 1; - __IO uint8_t TGERR : 1; - __IO uint8_t CRC : 1; - __IO uint8_t TOUT : 1; - __IO uint8_t RERR : 1; - __IO uint8_t LSTOF : 1; -} stc_usb_herr_field_t; - -typedef struct stc_usb_hstate_field -{ - __IO uint8_t CSTAT : 1; - __IO uint8_t TMODE : 1; - __IO uint8_t SUSP : 1; - __IO uint8_t SOFBUSY : 1; - __IO uint8_t CLKSEL : 1; - __IO uint8_t ALIVE : 1; -} stc_usb_hstate_field_t; - -typedef struct stc_usb_hfcomp_field -{ - __IO uint8_t FRAMECOMP0 : 1; - __IO uint8_t FRAMECOMP1 : 1; - __IO uint8_t FRAMECOMP2 : 1; - __IO uint8_t FRAMECOMP3 : 1; - __IO uint8_t FRAMECOMP4 : 1; - __IO uint8_t FRAMECOMP5 : 1; - __IO uint8_t FRAMECOMP6 : 1; - __IO uint8_t FRAMECOMP7 : 1; -} stc_usb_hfcomp_field_t; - -typedef struct stc_usb_hrtimer_field -{ - __IO uint16_t RTIMER0 : 1; - __IO uint16_t RTIMER1 : 1; - __IO uint16_t RTIMER2 : 1; - __IO uint16_t RTIMER3 : 1; - __IO uint16_t RTIMER4 : 1; - __IO uint16_t RTIMER5 : 1; - __IO uint16_t RTIMER6 : 1; - __IO uint16_t RTIMER7 : 1; - __IO uint16_t RTIMER8 : 1; - __IO uint16_t RTIMER9 : 1; - __IO uint16_t RTIMER10 : 1; - __IO uint16_t RTIMER11 : 1; - __IO uint16_t RTIMER12 : 1; - __IO uint16_t RTIMER13 : 1; - __IO uint16_t RTIMER14 : 1; - __IO uint16_t RTIMER15 : 1; -} stc_usb_hrtimer_field_t; - -typedef struct stc_usb_hrtimer0_field -{ - __IO uint8_t RTIMER00 : 1; - __IO uint8_t RTIMER01 : 1; - __IO uint8_t RTIMER02 : 1; - __IO uint8_t RTIMER03 : 1; - __IO uint8_t RTIMER04 : 1; - __IO uint8_t RTIMER05 : 1; - __IO uint8_t RTIMER06 : 1; - __IO uint8_t RTIMER07 : 1; -} stc_usb_hrtimer0_field_t; - -typedef struct stc_usb_hrtimer1_field -{ - __IO uint8_t RTIMER10 : 1; - __IO uint8_t RTIMER11 : 1; - __IO uint8_t RTIMER12 : 1; - __IO uint8_t RTIMER13 : 1; - __IO uint8_t RTIMER14 : 1; - __IO uint8_t RTIMER15 : 1; - __IO uint8_t RTIMER16 : 1; - __IO uint8_t RTIMER17 : 1; -} stc_usb_hrtimer1_field_t; - -typedef struct stc_usb_hrtimer2_field -{ - __IO uint8_t RTIMER20 : 1; - __IO uint8_t RTIMER21 : 1; - __IO uint8_t RTIMER22 : 1; -} stc_usb_hrtimer2_field_t; - -typedef struct stc_usb_hadr_field -{ - __IO uint8_t ADDRESS0 : 1; - __IO uint8_t ADDRESS1 : 1; - __IO uint8_t ADDRESS2 : 1; - __IO uint8_t ADDRESS3 : 1; - __IO uint8_t ADDRESS4 : 1; - __IO uint8_t ADDRESS5 : 1; - __IO uint8_t ADDRESS6 : 1; -} stc_usb_hadr_field_t; - -typedef struct stc_usb_heof_field -{ - __IO uint16_t EOF0 : 1; - __IO uint16_t EOF1 : 1; - __IO uint16_t EOF2 : 1; - __IO uint16_t EOF3 : 1; - __IO uint16_t EOF4 : 1; - __IO uint16_t EOF5 : 1; - __IO uint16_t EOF6 : 1; - __IO uint16_t EOF7 : 1; - __IO uint16_t EOF8 : 1; - __IO uint16_t EOF9 : 1; - __IO uint16_t EOF10 : 1; - __IO uint16_t EOF11 : 1; - __IO uint16_t EOF12 : 1; - __IO uint16_t EOF13 : 1; - __IO uint16_t EOF14 : 1; - __IO uint16_t EOF15 : 1; -} stc_usb_heof_field_t; - -typedef struct stc_usb_heof0_field -{ - __IO uint8_t EOF00 : 1; - __IO uint8_t EOF01 : 1; - __IO uint8_t EOF02 : 1; - __IO uint8_t EOF03 : 1; - __IO uint8_t EOF04 : 1; - __IO uint8_t EOF05 : 1; - __IO uint8_t EOF06 : 1; - __IO uint8_t EOF07 : 1; -} stc_usb_heof0_field_t; - -typedef struct stc_usb_heof1_field -{ - __IO uint8_t EOF10 : 1; - __IO uint8_t EOF11 : 1; - __IO uint8_t EOF12 : 1; - __IO uint8_t EOF13 : 1; - __IO uint8_t EOF14 : 1; - __IO uint8_t EOF15 : 1; -} stc_usb_heof1_field_t; - -typedef struct stc_usb_hframe_field -{ - __IO uint16_t FRAME0 : 1; - __IO uint16_t FRAME1 : 1; - __IO uint16_t FRAME2 : 1; - __IO uint16_t FRAME3 : 1; - __IO uint16_t FRAME4 : 1; - __IO uint16_t FRAME5 : 1; - __IO uint16_t FRAME6 : 1; - __IO uint16_t FRAME7 : 1; - __IO uint16_t FRAME8 : 1; - __IO uint16_t FRAME9 : 1; - __IO uint16_t FRAME10 : 1; -} stc_usb_hframe_field_t; - -typedef struct stc_usb_hframe0_field -{ - __IO uint8_t FRAME00 : 1; - __IO uint8_t FRAME01 : 1; - __IO uint8_t FRAME02 : 1; - __IO uint8_t FRAME03 : 1; - __IO uint8_t FRAME04 : 1; - __IO uint8_t FRAME05 : 1; - __IO uint8_t FRAME06 : 1; - __IO uint8_t FRAME07 : 1; -} stc_usb_hframe0_field_t; - -typedef struct stc_usb_hframe1_field -{ - __IO uint8_t FRAME10 : 1; - __IO uint8_t FRAME11 : 1; - __IO uint8_t FRAME12 : 1; - __IO uint8_t FRAME13 : 1; -} stc_usb_hframe1_field_t; - -typedef struct stc_usb_htoken_field -{ - __IO uint8_t ENDPT0 : 1; - __IO uint8_t ENDPT1 : 1; - __IO uint8_t ENDPT2 : 1; - __IO uint8_t ENDPT3 : 1; - __IO uint8_t TKNEN0 : 1; - __IO uint8_t TKNEN1 : 1; - __IO uint8_t TKNEN2 : 1; - __IO uint8_t TGGL : 1; -} stc_usb_htoken_field_t; - -typedef struct stc_usb_udcc_field -{ - __IO uint16_t PWC : 1; - __IO uint16_t RFBK : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t STALCLREN : 1; - __IO uint16_t USTP : 1; - __IO uint16_t HCONX : 1; - __IO uint16_t RESUM : 1; - __IO uint16_t RST : 1; -} stc_usb_udcc_field_t; - -typedef struct stc_usb_ep0c_field -{ - __IO uint16_t PKS00 : 1; - __IO uint16_t PKS01 : 1; - __IO uint16_t PKS02 : 1; - __IO uint16_t PKS03 : 1; - __IO uint16_t PKS04 : 1; - __IO uint16_t PKS05 : 1; - __IO uint16_t PKS06 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; -} stc_usb_ep0c_field_t; - -typedef struct stc_usb_ep1c_field -{ - __IO uint16_t PKS10 : 1; - __IO uint16_t PKS11 : 1; - __IO uint16_t PKS12 : 1; - __IO uint16_t PKS13 : 1; - __IO uint16_t PKS14 : 1; - __IO uint16_t PKS15 : 1; - __IO uint16_t PKS16 : 1; - __IO uint16_t PKS17 : 1; - __IO uint16_t PKS18 : 1; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep1c_field_t; - -typedef struct stc_usb_ep2c_field -{ - __IO uint16_t PKS20 : 1; - __IO uint16_t PKS21 : 1; - __IO uint16_t PKS22 : 1; - __IO uint16_t PKS23 : 1; - __IO uint16_t PKS24 : 1; - __IO uint16_t PKS25 : 1; - __IO uint16_t PKS26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep2c_field_t; - -typedef struct stc_usb_ep3c_field -{ - __IO uint16_t PKS30 : 1; - __IO uint16_t PKS31 : 1; - __IO uint16_t PKS32 : 1; - __IO uint16_t PKS33 : 1; - __IO uint16_t PKS34 : 1; - __IO uint16_t PKS35 : 1; - __IO uint16_t PKS36 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep3c_field_t; - -typedef struct stc_usb_ep4c_field -{ - __IO uint16_t PKS40 : 1; - __IO uint16_t PKS41 : 1; - __IO uint16_t PKS42 : 1; - __IO uint16_t PKS43 : 1; - __IO uint16_t PKS44 : 1; - __IO uint16_t PKS45 : 1; - __IO uint16_t PKS46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep4c_field_t; - -typedef struct stc_usb_ep5c_field -{ - __IO uint16_t PKS50 : 1; - __IO uint16_t PKS51 : 1; - __IO uint16_t PKS52 : 1; - __IO uint16_t PKS53 : 1; - __IO uint16_t PKS54 : 1; - __IO uint16_t PKS55 : 1; - __IO uint16_t PKS56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep5c_field_t; - -typedef struct stc_usb_tmsp_field -{ - __IO uint16_t TMSP0 : 1; - __IO uint16_t TMSP1 : 1; - __IO uint16_t TMSP2 : 1; - __IO uint16_t TMSP3 : 1; - __IO uint16_t TMSP4 : 1; - __IO uint16_t TMSP5 : 1; - __IO uint16_t TMSP6 : 1; - __IO uint16_t TMSP7 : 1; - __IO uint16_t TMSP8 : 1; - __IO uint16_t TMSP9 : 1; - __IO uint16_t TMSP10 : 1; -} stc_usb_tmsp_field_t; - -typedef struct stc_usb_udcs_field -{ - __IO uint8_t CONF : 1; - __IO uint8_t SETP : 1; - __IO uint8_t WKUP : 1; - __IO uint8_t BRST : 1; - __IO uint8_t SOF : 1; - __IO uint8_t SUSP : 1; -} stc_usb_udcs_field_t; - -typedef struct stc_usb_udcie_field -{ - __IO uint8_t CONFIE : 1; - __IO uint8_t CONFN : 1; - __IO uint8_t WKUPIE : 1; - __IO uint8_t BRSTIE : 1; - __IO uint8_t SOFIE : 1; - __IO uint8_t SUSPIE : 1; -} stc_usb_udcie_field_t; - -typedef struct stc_usb_ep0is_field -{ - uint16_t RESERVED1 : 10; - __IO uint16_t DRQI : 1; - uint16_t RESERVED2 : 3; - __IO uint16_t DRQIIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0is_field_t; - -typedef struct stc_usb_ep0os_field -{ - __IO uint16_t SIZE0 : 1; - __IO uint16_t SIZE1 : 1; - __IO uint16_t SIZE2 : 1; - __IO uint16_t SIZE3 : 1; - __IO uint16_t SIZE4 : 1; - __IO uint16_t SIZE5 : 1; - __IO uint16_t SIZE6 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQO : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQOIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0os_field_t; - -typedef struct stc_usb_ep1s_field -{ - __IO uint16_t SIZE10 : 1; - __IO uint16_t SIZE11 : 1; - __IO uint16_t SIZE12 : 1; - __IO uint16_t SIZE13 : 1; - __IO uint16_t SIZE14 : 1; - __IO uint16_t SIZE15 : 1; - __IO uint16_t SIZE16 : 1; - __IO uint16_t SIZE17 : 1; - __IO uint16_t SIZE18 : 1; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep1s_field_t; - -typedef struct stc_usb_ep2s_field -{ - __IO uint16_t SIZE20 : 1; - __IO uint16_t SIZE21 : 1; - __IO uint16_t SIZE22 : 1; - __IO uint16_t SIZE23 : 1; - __IO uint16_t SIZE24 : 1; - __IO uint16_t SIZE25 : 1; - __IO uint16_t SIZE26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep2s_field_t; - -typedef struct stc_usb_ep4s_field -{ - __IO uint16_t SIZE40 : 1; - __IO uint16_t SIZE41 : 1; - __IO uint16_t SIZE42 : 1; - __IO uint16_t SIZE43 : 1; - __IO uint16_t SIZE44 : 1; - __IO uint16_t SIZE45 : 1; - __IO uint16_t SIZE46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep4s_field_t; - -typedef struct stc_usb_ep5s_field -{ - __IO uint16_t SIZE50 : 1; - __IO uint16_t SIZE51 : 1; - __IO uint16_t SIZE52 : 1; - __IO uint16_t SIZE53 : 1; - __IO uint16_t SIZE54 : 1; - __IO uint16_t SIZE55 : 1; - __IO uint16_t SIZE56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep5s_field_t; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMAC_MODULE register bit fields */ -typedef struct stc_dmac_dmacr_field -{ - uint32_t RESERVED1 : 24; - __IO uint32_t DH0 : 1; - __IO uint32_t DH1 : 1; - __IO uint32_t DH2 : 1; - __IO uint32_t DH3 : 1; - __IO uint32_t PR : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t DS : 1; - __IO uint32_t DE : 1; -} stc_dmac_dmacr_field_t; - -typedef struct stc_dmac_dmaca0_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca0_field_t; - -typedef struct stc_dmac_dmacb0_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb0_field_t; - -typedef struct stc_dmac_dmaca1_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca1_field_t; - -typedef struct stc_dmac_dmacb1_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb1_field_t; - -typedef struct stc_dmac_dmaca2_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca2_field_t; - -typedef struct stc_dmac_dmacb2_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb2_field_t; - -typedef struct stc_dmac_dmaca3_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca3_field_t; - -typedef struct stc_dmac_dmacb3_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb3_field_t; - -typedef struct stc_dmac_dmaca4_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca4_field_t; - -typedef struct stc_dmac_dmacb4_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb4_field_t; - -typedef struct stc_dmac_dmaca5_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca5_field_t; - -typedef struct stc_dmac_dmacb5_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb5_field_t; - -typedef struct stc_dmac_dmaca6_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca6_field_t; - -typedef struct stc_dmac_dmacb6_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb6_field_t; - -typedef struct stc_dmac_dmaca7_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca7_field_t; - -typedef struct stc_dmac_dmacb7_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb7_field_t; - -/****************************************************************************** - * CAN_MODULE - ******************************************************************************/ -/* CAN_MODULE register bit fields */ -typedef struct stc_can_ctrlr_field -{ - __IO uint16_t INIT : 1; - __IO uint16_t IE : 1; - __IO uint16_t SIE : 1; - __IO uint16_t EIE : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t DAR : 1; - __IO uint16_t CCE : 1; - __IO uint16_t TEST : 1; -} stc_can_ctrlr_field_t; - -typedef struct stc_can_statr_field -{ - __IO uint16_t LEC0 : 1; - __IO uint16_t LEC1 : 1; - __IO uint16_t LEC2 : 1; - __IO uint16_t TXOK : 1; - __IO uint16_t RXOK : 1; - __IO uint16_t EPASS : 1; - __IO uint16_t EWARM : 1; - __IO uint16_t BOFF : 1; -} stc_can_statr_field_t; - -typedef struct stc_can_errcnt_field -{ - __IO uint16_t TEC0 : 1; - __IO uint16_t TEC1 : 1; - __IO uint16_t TEC2 : 1; - __IO uint16_t TEC3 : 1; - __IO uint16_t TEC4 : 1; - __IO uint16_t TEC5 : 1; - __IO uint16_t TEC6 : 1; - __IO uint16_t TEC7 : 1; - __IO uint16_t REC0 : 1; - __IO uint16_t REC1 : 1; - __IO uint16_t REC2 : 1; - __IO uint16_t REC3 : 1; - __IO uint16_t REC4 : 1; - __IO uint16_t REC5 : 1; - __IO uint16_t REC6 : 1; - __IO uint16_t RP : 1; -} stc_can_errcnt_field_t; - -typedef struct stc_can_btr_field -{ - __IO uint16_t BRP0 : 1; - __IO uint16_t BRP1 : 1; - __IO uint16_t BRP2 : 1; - __IO uint16_t BRP3 : 1; - __IO uint16_t BRP4 : 1; - __IO uint16_t BRP5 : 1; - __IO uint16_t SJW0 : 1; - __IO uint16_t SJW1 : 1; - __IO uint16_t TSEG10 : 1; - __IO uint16_t TSEG11 : 1; - __IO uint16_t TSEG12 : 1; - __IO uint16_t TSEG13 : 1; - __IO uint16_t TSEG20 : 1; - __IO uint16_t TSEG21 : 1; - __IO uint16_t TSEG22 : 1; -} stc_can_btr_field_t; - -typedef struct stc_can_intr_field -{ - __IO uint16_t INTID0 : 1; - __IO uint16_t INTID1 : 1; - __IO uint16_t INTID2 : 1; - __IO uint16_t INTID3 : 1; - __IO uint16_t INTID4 : 1; - __IO uint16_t INTID5 : 1; - __IO uint16_t INTID6 : 1; - __IO uint16_t INTID7 : 1; - __IO uint16_t INTID8 : 1; - __IO uint16_t INTID9 : 1; - __IO uint16_t INTID10 : 1; - __IO uint16_t INTID11 : 1; - __IO uint16_t INTID12 : 1; - __IO uint16_t INTID13 : 1; - __IO uint16_t INTID14 : 1; - __IO uint16_t INTID15 : 1; -} stc_can_intr_field_t; - -typedef struct stc_can_testr_field -{ - uint16_t RESERVED1 : 2; - __IO uint16_t BASIC : 1; - __IO uint16_t SILENT : 1; - __IO uint16_t LBACK : 1; - __IO uint16_t TX0 : 1; - __IO uint16_t TX1 : 1; - __IO uint16_t RX : 1; -} stc_can_testr_field_t; - -typedef struct stc_can_brper_field -{ - __IO uint16_t BRPE0 : 1; - __IO uint16_t BRPE1 : 1; - __IO uint16_t BRPE2 : 1; - __IO uint16_t BRPE3 : 1; -} stc_can_brper_field_t; - -typedef struct stc_can_if1creq_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t BUSY : 1; -} stc_can_if1creq_field_t; - -typedef struct stc_can_if1cmsk_field -{ - __IO uint16_t DATAB : 1; - __IO uint16_t DATAA : 1; - __IO uint16_t NEWDAT : 1; - __IO uint16_t CIP : 1; - __IO uint16_t CONTROL : 1; - __IO uint16_t ARB : 1; - __IO uint16_t MASK : 1; - __IO uint16_t WRRD : 1; -} stc_can_if1cmsk_field_t; - -typedef struct stc_can_if1msk_field -{ - uint32_t RESERVED1 : 30; - __IO uint32_t MDIR : 1; - __IO uint32_t MXTD : 1; -} stc_can_if1msk_field_t; - -typedef struct stc_can_if1msk2_field -{ - uint16_t RESERVED1 : 14; - __IO uint16_t MDIR : 1; - __IO uint16_t MXTD : 1; -} stc_can_if1msk2_field_t; - -typedef struct stc_can_if1arb_field -{ - uint32_t RESERVED1 : 29; - __IO uint32_t DIR : 1; - __IO uint32_t XTD : 1; - __IO uint32_t MSGVAL : 1; -} stc_can_if1arb_field_t; - -typedef struct stc_can_if1arb2_field -{ - uint16_t RESERVED1 : 13; - __IO uint16_t DIR : 1; - __IO uint16_t XTD : 1; - __IO uint16_t MSGVAL : 1; -} stc_can_if1arb2_field_t; - -typedef struct stc_can_if1mctr_field -{ - __IO uint16_t DLC0 : 1; - __IO uint16_t DLC1 : 1; - __IO uint16_t DLC2 : 1; - __IO uint16_t DLC3 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t EOB : 1; - __IO uint16_t TXRQST : 1; - __IO uint16_t RMTEN : 1; - __IO uint16_t RXIE : 1; - __IO uint16_t TXIE : 1; - __IO uint16_t UMASK : 1; - __IO uint16_t INTPND : 1; - __IO uint16_t MSGLST : 1; - __IO uint16_t NEWDAT : 1; -} stc_can_if1mctr_field_t; - -typedef struct stc_can_if2creq_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t BUSY : 1; -} stc_can_if2creq_field_t; - -typedef struct stc_can_if2cmsk_field -{ - __IO uint16_t DATAB : 1; - __IO uint16_t DATAA : 1; - __IO uint16_t NEWDAT : 1; - __IO uint16_t CIP : 1; - __IO uint16_t CONTROL : 1; - __IO uint16_t ARB : 1; - __IO uint16_t MASK : 1; - __IO uint16_t WRRD : 1; -} stc_can_if2cmsk_field_t; - -typedef struct stc_can_if2msk_field -{ - uint32_t RESERVED1 : 30; - __IO uint32_t MDIR : 1; - __IO uint32_t MXTD : 1; -} stc_can_if2msk_field_t; - -typedef struct stc_can_if2msk2_field -{ - uint16_t RESERVED1 : 14; - __IO uint16_t MDIR : 1; - __IO uint16_t MXTD : 1; -} stc_can_if2msk2_field_t; - -typedef struct stc_can_if2arb2_field -{ - uint16_t RESERVED1 : 13; - __IO uint16_t DIR : 1; - __IO uint16_t XTD : 1; - __IO uint16_t MSGVAL : 1; -} stc_can_if2arb2_field_t; - -typedef struct stc_can_if2mctr_field -{ - __IO uint16_t DLC0 : 1; - __IO uint16_t DLC1 : 1; - __IO uint16_t DLC2 : 1; - __IO uint16_t DLC3 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t EOB : 1; - __IO uint16_t TXRQST : 1; - __IO uint16_t RMTEN : 1; - __IO uint16_t RXIE : 1; - __IO uint16_t TXIE : 1; - __IO uint16_t UMASK : 1; - __IO uint16_t INTPND : 1; - __IO uint16_t MSGLST : 1; - __IO uint16_t NEWDAT : 1; -} stc_can_if2mctr_field_t; - -typedef struct stc_can_treqr_field -{ - __IO uint32_t TXRQST1 : 1; - __IO uint32_t TXRQST2 : 1; - __IO uint32_t TXRQST3 : 1; - __IO uint32_t TXRQST4 : 1; - __IO uint32_t TXRQST5 : 1; - __IO uint32_t TXRQST6 : 1; - __IO uint32_t TXRQST7 : 1; - __IO uint32_t TXRQST8 : 1; - __IO uint32_t TXRQST9 : 1; - __IO uint32_t TXRQST10 : 1; - __IO uint32_t TXRQST11 : 1; - __IO uint32_t TXRQST12 : 1; - __IO uint32_t TXRQST13 : 1; - __IO uint32_t TXRQST14 : 1; - __IO uint32_t TXRQST15 : 1; - __IO uint32_t TXRQST16 : 1; - __IO uint32_t TXRQST17 : 1; - __IO uint32_t TXRQST18 : 1; - __IO uint32_t TXRQST19 : 1; - __IO uint32_t TXRQST20 : 1; - __IO uint32_t TXRQST21 : 1; - __IO uint32_t TXRQST22 : 1; - __IO uint32_t TXRQST23 : 1; - __IO uint32_t TXRQST24 : 1; - __IO uint32_t TXRQST25 : 1; - __IO uint32_t TXRQST26 : 1; - __IO uint32_t TXRQST27 : 1; - __IO uint32_t TXRQST28 : 1; - __IO uint32_t TXRQST29 : 1; - __IO uint32_t TXRQST30 : 1; - __IO uint32_t TXRQST31 : 1; - __IO uint32_t TXRQST32 : 1; -} stc_can_treqr_field_t; - -typedef struct stc_can_treqr1_field -{ - __IO uint16_t TXRQST1 : 1; - __IO uint16_t TXRQST2 : 1; - __IO uint16_t TXRQST3 : 1; - __IO uint16_t TXRQST4 : 1; - __IO uint16_t TXRQST5 : 1; - __IO uint16_t TXRQST6 : 1; - __IO uint16_t TXRQST7 : 1; - __IO uint16_t TXRQST8 : 1; - __IO uint16_t TXRQST9 : 1; - __IO uint16_t TXRQST10 : 1; - __IO uint16_t TXRQST11 : 1; - __IO uint16_t TXRQST12 : 1; - __IO uint16_t TXRQST13 : 1; - __IO uint16_t TXRQST14 : 1; - __IO uint16_t TXRQST15 : 1; - __IO uint16_t TXRQST16 : 1; -} stc_can_treqr1_field_t; - -typedef struct stc_can_treqr2_field -{ - __IO uint16_t TXRQST17 : 1; - __IO uint16_t TXRQST18 : 1; - __IO uint16_t TXRQST19 : 1; - __IO uint16_t TXRQST20 : 1; - __IO uint16_t TXRQST21 : 1; - __IO uint16_t TXRQST22 : 1; - __IO uint16_t TXRQST23 : 1; - __IO uint16_t TXRQST24 : 1; - __IO uint16_t TXRQST25 : 1; - __IO uint16_t TXRQST26 : 1; - __IO uint16_t TXRQST27 : 1; - __IO uint16_t TXRQST28 : 1; - __IO uint16_t TXRQST29 : 1; - __IO uint16_t TXRQST30 : 1; - __IO uint16_t TXRQST31 : 1; - __IO uint16_t TXRQST32 : 1; -} stc_can_treqr2_field_t; - -typedef struct stc_can_newdt_field -{ - __IO uint32_t NEWDAT1 : 1; - __IO uint32_t NEWDAT2 : 1; - __IO uint32_t NEWDAT3 : 1; - __IO uint32_t NEWDAT4 : 1; - __IO uint32_t NEWDAT5 : 1; - __IO uint32_t NEWDAT6 : 1; - __IO uint32_t NEWDAT7 : 1; - __IO uint32_t NEWDAT8 : 1; - __IO uint32_t NEWDAT9 : 1; - __IO uint32_t NEWDAT10 : 1; - __IO uint32_t NEWDAT11 : 1; - __IO uint32_t NEWDAT12 : 1; - __IO uint32_t NEWDAT13 : 1; - __IO uint32_t NEWDAT14 : 1; - __IO uint32_t NEWDAT15 : 1; - __IO uint32_t NEWDAT16 : 1; - __IO uint32_t NEWDAT17 : 1; - __IO uint32_t NEWDAT18 : 1; - __IO uint32_t NEWDAT19 : 1; - __IO uint32_t NEWDAT20 : 1; - __IO uint32_t NEWDAT21 : 1; - __IO uint32_t NEWDAT22 : 1; - __IO uint32_t NEWDAT23 : 1; - __IO uint32_t NEWDAT24 : 1; - __IO uint32_t NEWDAT25 : 1; - __IO uint32_t NEWDAT26 : 1; - __IO uint32_t NEWDAT27 : 1; - __IO uint32_t NEWDAT28 : 1; - __IO uint32_t NEWDAT29 : 1; - __IO uint32_t NEWDAT30 : 1; - __IO uint32_t NEWDAT31 : 1; - __IO uint32_t NEWDAT32 : 1; -} stc_can_newdt_field_t; - -typedef struct stc_can_newdt1_field -{ - __IO uint16_t NEWDAT1 : 1; - __IO uint16_t NEWDAT2 : 1; - __IO uint16_t NEWDAT3 : 1; - __IO uint16_t NEWDAT4 : 1; - __IO uint16_t NEWDAT5 : 1; - __IO uint16_t NEWDAT6 : 1; - __IO uint16_t NEWDAT7 : 1; - __IO uint16_t NEWDAT8 : 1; - __IO uint16_t NEWDAT9 : 1; - __IO uint16_t NEWDAT10 : 1; - __IO uint16_t NEWDAT11 : 1; - __IO uint16_t NEWDAT12 : 1; - __IO uint16_t NEWDAT13 : 1; - __IO uint16_t NEWDAT14 : 1; - __IO uint16_t NEWDAT15 : 1; - __IO uint16_t NEWDAT16 : 1; -} stc_can_newdt1_field_t; - -typedef struct stc_can_intpnd_field -{ - __IO uint32_t INTPND1 : 1; - __IO uint32_t INTPND2 : 1; - __IO uint32_t INTPND3 : 1; - __IO uint32_t INTPND4 : 1; - __IO uint32_t INTPND5 : 1; - __IO uint32_t INTPND6 : 1; - __IO uint32_t INTPND7 : 1; - __IO uint32_t INTPND8 : 1; - __IO uint32_t INTPND9 : 1; - __IO uint32_t INTPND10 : 1; - __IO uint32_t INTPND11 : 1; - __IO uint32_t INTPND12 : 1; - __IO uint32_t INTPND13 : 1; - __IO uint32_t INTPND14 : 1; - __IO uint32_t INTPND15 : 1; - __IO uint32_t INTPND16 : 1; - __IO uint32_t INTPND17 : 1; - __IO uint32_t INTPND18 : 1; - __IO uint32_t INTPND19 : 1; - __IO uint32_t INTPND20 : 1; - __IO uint32_t INTPND21 : 1; - __IO uint32_t INTPND22 : 1; - __IO uint32_t INTPND23 : 1; - __IO uint32_t INTPND24 : 1; - __IO uint32_t INTPND25 : 1; - __IO uint32_t INTPND26 : 1; - __IO uint32_t INTPND27 : 1; - __IO uint32_t INTPND28 : 1; - __IO uint32_t INTPND29 : 1; - __IO uint32_t INTPND30 : 1; - __IO uint32_t INTPND31 : 1; - __IO uint32_t INTPND32 : 1; -} stc_can_intpnd_field_t; - -typedef struct stc_can_intpnd1_field -{ - __IO uint16_t INTPND1 : 1; - __IO uint16_t INTPND2 : 1; - __IO uint16_t INTPND3 : 1; - __IO uint16_t INTPND4 : 1; - __IO uint16_t INTPND5 : 1; - __IO uint16_t INTPND6 : 1; - __IO uint16_t INTPND7 : 1; - __IO uint16_t INTPND8 : 1; - __IO uint16_t INTPND9 : 1; - __IO uint16_t INTPND10 : 1; - __IO uint16_t INTPND11 : 1; - __IO uint16_t INTPND12 : 1; - __IO uint16_t INTPND13 : 1; - __IO uint16_t INTPND14 : 1; - __IO uint16_t INTPND15 : 1; - __IO uint16_t INTPND16 : 1; -} stc_can_intpnd1_field_t; - -typedef struct stc_can_intpnd2_field -{ - __IO uint16_t INTPND17 : 1; - __IO uint16_t INTPND18 : 1; - __IO uint16_t INTPND19 : 1; - __IO uint16_t INTPND20 : 1; - __IO uint16_t INTPND21 : 1; - __IO uint16_t INTPND22 : 1; - __IO uint16_t INTPND23 : 1; - __IO uint16_t INTPND24 : 1; - __IO uint16_t INTPND25 : 1; - __IO uint16_t INTPND26 : 1; - __IO uint16_t INTPND27 : 1; - __IO uint16_t INTPND28 : 1; - __IO uint16_t INTPND29 : 1; - __IO uint16_t INTPND30 : 1; - __IO uint16_t INTPND31 : 1; - __IO uint16_t INTPND32 : 1; -} stc_can_intpnd2_field_t; - -typedef struct stc_can_msgval_field -{ - __IO uint32_t MSGVAL1 : 1; - __IO uint32_t MSGVAL2 : 1; - __IO uint32_t MSGVAL3 : 1; - __IO uint32_t MSGVAL4 : 1; - __IO uint32_t MSGVAL5 : 1; - __IO uint32_t MSGVAL6 : 1; - __IO uint32_t MSGVAL7 : 1; - __IO uint32_t MSGVAL8 : 1; - __IO uint32_t MSGVAL9 : 1; - __IO uint32_t MSGVAL10 : 1; - __IO uint32_t MSGVAL11 : 1; - __IO uint32_t MSGVAL12 : 1; - __IO uint32_t MSGVAL13 : 1; - __IO uint32_t MSGVAL14 : 1; - __IO uint32_t MSGVAL15 : 1; - __IO uint32_t MSGVAL16 : 1; - __IO uint32_t MSGVAL17 : 1; - __IO uint32_t MSGVAL18 : 1; - __IO uint32_t MSGVAL19 : 1; - __IO uint32_t MSGVAL20 : 1; - __IO uint32_t MSGVAL21 : 1; - __IO uint32_t MSGVAL22 : 1; - __IO uint32_t MSGVAL23 : 1; - __IO uint32_t MSGVAL24 : 1; - __IO uint32_t MSGVAL25 : 1; - __IO uint32_t MSGVAL26 : 1; - __IO uint32_t MSGVAL27 : 1; - __IO uint32_t MSGVAL28 : 1; - __IO uint32_t MSGVAL29 : 1; - __IO uint32_t MSGVAL30 : 1; - __IO uint32_t MSGVAL31 : 1; - __IO uint32_t MSGVAL32 : 1; -} stc_can_msgval_field_t; - -typedef struct stc_can_msgval1_field -{ - __IO uint16_t MSGVAL1 : 1; - __IO uint16_t MSGVAL2 : 1; - __IO uint16_t MSGVAL3 : 1; - __IO uint16_t MSGVAL4 : 1; - __IO uint16_t MSGVAL5 : 1; - __IO uint16_t MSGVAL6 : 1; - __IO uint16_t MSGVAL7 : 1; - __IO uint16_t MSGVAL8 : 1; - __IO uint16_t MSGVAL9 : 1; - __IO uint16_t MSGVAL10 : 1; - __IO uint16_t MSGVAL11 : 1; - __IO uint16_t MSGVAL12 : 1; - __IO uint16_t MSGVAL13 : 1; - __IO uint16_t MSGVAL14 : 1; - __IO uint16_t MSGVAL15 : 1; - __IO uint16_t MSGVAL16 : 1; -} stc_can_msgval1_field_t; - -typedef struct stc_can_msgval2_field -{ - __IO uint16_t MSGVAL17 : 1; - __IO uint16_t MSGVAL18 : 1; - __IO uint16_t MSGVAL19 : 1; - __IO uint16_t MSGVAL20 : 1; - __IO uint16_t MSGVAL21 : 1; - __IO uint16_t MSGVAL22 : 1; - __IO uint16_t MSGVAL23 : 1; - __IO uint16_t MSGVAL24 : 1; - __IO uint16_t MSGVAL25 : 1; - __IO uint16_t MSGVAL26 : 1; - __IO uint16_t MSGVAL27 : 1; - __IO uint16_t MSGVAL28 : 1; - __IO uint16_t MSGVAL29 : 1; - __IO uint16_t MSGVAL30 : 1; - __IO uint16_t MSGVAL31 : 1; - __IO uint16_t MSGVAL32 : 1; -} stc_can_msgval2_field_t; - - -/****************************************************************************** - * Peripheral register structures - ******************************************************************************/ - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash interface registers */ -typedef struct -{ - union { - __IO uint32_t FASZR; - stc_flash_if_faszr_field_t FASZR_f; - }; - union { - __IO uint32_t FRWTR; - stc_flash_if_frwtr_field_t FRWTR_f; - }; - union { - __IO uint32_t FSTR; - stc_flash_if_fstr_field_t FSTR_f; - }; - uint8_t RESERVED0[4]; - union { - __IO uint32_t FSYNDN; - stc_flash_if_fsyndn_field_t FSYNDN_f; - }; - uint8_t RESERVED1[236]; - union { - __IO uint32_t CRTRMM; - stc_flash_if_crtrmm_field_t CRTRMM_f; - }; -}FM3_FLASH_IF_TypeDef; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock and reset registers */ -typedef struct -{ - union { - __IO uint8_t SCM_CTL; - stc_crg_scm_ctl_field_t SCM_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t SCM_STR; - stc_crg_scm_str_field_t SCM_STR_f; - }; - uint8_t RESERVED1[3]; - __IO uint32_t STB_CTL; - union { - __IO uint16_t RST_STR; - stc_crg_rst_str_field_t RST_STR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t BSC_PSR; - stc_crg_bsc_psr_field_t BSC_PSR_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t APBC0_PSR; - stc_crg_apbc0_psr_field_t APBC0_PSR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t APBC1_PSR; - stc_crg_apbc1_psr_field_t APBC1_PSR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t APBC2_PSR; - stc_crg_apbc2_psr_field_t APBC2_PSR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t SWC_PSR; - stc_crg_swc_psr_field_t SWC_PSR_f; - }; - uint8_t RESERVED7[7]; - union { - __IO uint8_t TTC_PSR; - stc_crg_ttc_psr_field_t TTC_PSR_f; - }; - uint8_t RESERVED8[7]; - union { - __IO uint8_t CSW_TMR; - stc_crg_csw_tmr_field_t CSW_TMR_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t PSW_TMR; - stc_crg_psw_tmr_field_t PSW_TMR_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PLL_CTL1; - stc_crg_pll_ctl1_field_t PLL_CTL1_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t PLL_CTL2; - stc_crg_pll_ctl2_field_t PLL_CTL2_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint16_t CSV_CTL; - stc_crg_csv_ctl_field_t CSV_CTL_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint8_t CSV_STR; - stc_crg_csv_str_field_t CSV_STR_f; - }; - uint8_t RESERVED14[3]; - __IO uint16_t FCSWH_CTL; - uint8_t RESERVED15[2]; - __IO uint16_t FCSWL_CTL; - uint8_t RESERVED16[2]; - __IO uint16_t FCSWD_CTL; - uint8_t RESERVED17[2]; - union { - __IO uint8_t DBWDT_CTL; - stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; - }; - uint8_t RESERVED18[11]; - union { - __IO uint8_t INT_ENR; - stc_crg_int_enr_field_t INT_ENR_f; - }; - uint8_t RESERVED19[3]; - union { - __IO uint8_t INT_STR; - stc_crg_int_str_field_t INT_STR_f; - }; - uint8_t RESERVED20[3]; - union { - __IO uint8_t INT_CLR; - stc_crg_int_clr_field_t INT_CLR_f; - }; -}FM3_CRG_TypeDef; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* Hardware watchdog registers */ -typedef struct -{ - __IO uint32_t WDG_LDR; - __IO uint32_t WDG_VLR; - union { - __IO uint8_t WDG_CTL; - stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; - }; - uint8_t RESERVED0[3]; - __IO uint8_t WDG_ICL; - uint8_t RESERVED1[3]; - union { - __IO uint8_t WDG_RIS; - stc_hwwdt_wdg_ris_field_t WDG_RIS_f; - }; - uint8_t RESERVED2[3055]; - __IO uint32_t WDG_LCK; -}FM3_HWWDT_TypeDef; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* Software watchdog registers */ -typedef struct -{ - __IO uint32_t WDOGLOAD; - __IO uint32_t WDOGVALUE; - union { - __IO uint8_t WDOGCONTROL; - stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t WDOGINTCLR; - union { - __IO uint8_t WDOGRIS; - stc_swwdt_wdogris_field_t WDOGRIS_f; - }; - uint8_t RESERVED1[3055]; - __IO uint32_t WDOGLOCK; -}FM3_SWWDT_TypeDef; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* Dual timer 1/2 registers */ -typedef struct -{ - __IO uint32_t TIMER1LOAD; - __IO uint32_t TIMER1VALUE; - union { - __IO uint32_t TIMER1CONTROL; - stc_dtim_timer1control_field_t TIMER1CONTROL_f; - }; - __IO uint32_t TIMER1INTCLR; - union { - __IO uint32_t TIMER1RIS; - stc_dtim_timer1ris_field_t TIMER1RIS_f; - }; - union { - __IO uint32_t TIMER1MIS; - stc_dtim_timer1mis_field_t TIMER1MIS_f; - }; - __IO uint32_t TIMER1BGLOAD; - uint8_t RESERVED0[4]; - __IO uint32_t TIMER2LOAD; - __IO uint32_t TIMER2VALUE; - union { - __IO uint32_t TIMER2CONTROL; - stc_dtim_timer2control_field_t TIMER2CONTROL_f; - }; - __IO uint32_t TIMER2INTCLR; - union { - __IO uint32_t TIMER2RIS; - stc_dtim_timer2ris_field_t TIMER2RIS_f; - }; - union { - __IO uint32_t TIMER2MIS; - stc_dtim_timer2mis_field_t TIMER2MIS_f; - }; - __IO uint32_t TIMER2BGLOAD; -}FM3_DTIM_TypeDef; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Free Running Timer registers */ -typedef struct -{ - uint8_t RESERVED0[40]; - __IO uint16_t TCCP0; - uint8_t RESERVED1[2]; - __IO uint16_t TCDT0; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TCSA0; - stc_mft_frt_tcsa0_field_t TCSA0_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t TCSB0; - stc_mft_frt_tcsb0_field_t TCSB0_f; - }; - uint8_t RESERVED4[2]; - __IO uint16_t TCCP1; - uint8_t RESERVED5[2]; - __IO uint16_t TCDT1; - uint8_t RESERVED6[2]; - union { - __IO uint16_t TCSA1; - stc_mft_frt_tcsa1_field_t TCSA1_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t TCSB1; - stc_mft_frt_tcsb1_field_t TCSB1_f; - }; - uint8_t RESERVED8[2]; - __IO uint16_t TCCP2; - uint8_t RESERVED9[2]; - __IO uint16_t TCDT2; - uint8_t RESERVED10[2]; - union { - __IO uint16_t TCSA2; - stc_mft_frt_tcsa2_field_t TCSA2_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t TCSB2; - stc_mft_frt_tcsb2_field_t TCSB2_f; - }; -}FM3_MFT_FRT_TypeDef; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Output Compare Unit registers */ -typedef struct -{ - __IO uint16_t OCCP0; - uint8_t RESERVED0[2]; - __IO uint16_t OCCP1; - uint8_t RESERVED1[2]; - __IO uint16_t OCCP2; - uint8_t RESERVED2[2]; - __IO uint16_t OCCP3; - uint8_t RESERVED3[2]; - __IO uint16_t OCCP4; - uint8_t RESERVED4[2]; - __IO uint16_t OCCP5; - uint8_t RESERVED5[2]; - union { - __IO uint8_t OCSA10; - stc_mft_ocu_ocsa10_field_t OCSA10_f; - }; - union { - __IO uint8_t OCSB10; - stc_mft_ocu_ocsb10_field_t OCSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t OCSA32; - stc_mft_ocu_ocsa32_field_t OCSA32_f; - }; - union { - __IO uint8_t OCSB32; - stc_mft_ocu_ocsb32_field_t OCSB32_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint8_t OCSA54; - stc_mft_ocu_ocsa54_field_t OCSA54_f; - }; - union { - __IO uint8_t OCSB54; - stc_mft_ocu_ocsb54_field_t OCSB54_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t OCSC; - stc_mft_ocu_ocsc_field_t OCSC_f; - }; - uint8_t RESERVED9[50]; - union { - __IO uint8_t OCFS10; - stc_mft_ocu_ocfs10_field_t OCFS10_f; - }; - union { - __IO uint8_t OCFS32; - stc_mft_ocu_ocfs32_field_t OCFS32_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint8_t OCFS54; - stc_mft_ocu_ocfs54_field_t OCFS54_f; - }; -}FM3_MFT_OCU_TypeDef; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -typedef struct -{ - uint8_t RESERVED0[128]; - __IO uint16_t WFTM10; - uint8_t RESERVED1[2]; - __IO uint16_t WFTM32; - uint8_t RESERVED2[2]; - __IO uint16_t WFTM54; - uint8_t RESERVED3[2]; - union { - __IO uint16_t WFSA10; - stc_mft_wfg_wfsa10_field_t WFSA10_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t WFSA32; - stc_mft_wfg_wfsa32_field_t WFSA32_f; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t WFSA54; - stc_mft_wfg_wfsa54_field_t WFSA54_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t WFIR; - stc_mft_wfg_wfir_field_t WFIR_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t NZCL; - stc_mft_wfg_nzcl_field_t NZCL_f; - }; -}FM3_MFT_WFG_TypeDef; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Input Capture Unit registers */ -typedef struct -{ - uint8_t RESERVED0[96]; - union { - __IO uint8_t ICFS10; - stc_mft_icu_icfs10_field_t ICFS10_f; - }; - union { - __IO uint8_t ICFS32; - stc_mft_icu_icfs32_field_t ICFS32_f; - }; - uint8_t RESERVED1[6]; - __IO uint16_t ICCP0; - uint8_t RESERVED2[2]; - __IO uint16_t ICCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ICCP2; - uint8_t RESERVED4[2]; - __IO uint16_t ICCP3; - uint8_t RESERVED5[2]; - union { - __IO uint8_t ICSA10; - stc_mft_icu_icsa10_field_t ICSA10_f; - }; - union { - __IO uint8_t ICSB10; - stc_mft_icu_icsb10_field_t ICSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ICSA32; - stc_mft_icu_icsa32_field_t ICSA32_f; - }; - union { - __IO uint8_t ICSB32; - stc_mft_icu_icsb32_field_t ICSB32_f; - }; -}FM3_MFT_ICU_TypeDef; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -typedef struct -{ - uint8_t RESERVED0[160]; - __IO uint16_t ACCP0; - uint8_t RESERVED1[2]; - __IO uint16_t ACCPDN0; - uint8_t RESERVED2[2]; - __IO uint16_t ACCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ACCPDN1; - uint8_t RESERVED4[2]; - __IO uint16_t ACCP2; - uint8_t RESERVED5[2]; - __IO uint16_t ACCPDN2; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ACSB; - stc_mft_adcmp_acsb_field_t ACSB_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t ACSA; - stc_mft_adcmp_acsa_field_t ACSA_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t ATSA; - stc_mft_adcmp_atsa_field_t ATSA_f; - }; -}FM3_MFT_ADCMP_TypeDef; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* Multifunction Timer PPG registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t TTCR0; - stc_mft_ppg_ttcr0_field_t TTCR0_f; - }; - uint8_t RESERVED1[7]; - __IO uint8_t COMP0; - uint8_t RESERVED2[2]; - __IO uint8_t COMP2; - uint8_t RESERVED3[4]; - __IO uint8_t COMP4; - uint8_t RESERVED4[2]; - __IO uint8_t COMP6; - uint8_t RESERVED5[12]; - union { - __IO uint8_t TTCR1; - stc_mft_ppg_ttcr1_field_t TTCR1_f; - }; - uint8_t RESERVED6[7]; - __IO uint8_t COMP1; - uint8_t RESERVED7[2]; - __IO uint8_t COMP3; - uint8_t RESERVED8[4]; - __IO uint8_t COMP5; - uint8_t RESERVED9[2]; - __IO uint8_t COMP7; - uint8_t RESERVED10[203]; - union { - __IO uint16_t TRG; - stc_mft_ppg_trg_field_t TRG_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t REVC; - stc_mft_ppg_revc_field_t REVC_f; - }; - uint8_t RESERVED12[250]; - union { - __IO uint8_t PPGC1; - stc_mft_ppg_ppgc1_field_t PPGC1_f; - }; - union { - __IO uint8_t PPGC0; - stc_mft_ppg_ppgc0_field_t PPGC0_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint8_t PPGC3; - stc_mft_ppg_ppgc3_field_t PPGC3_f; - }; - union { - __IO uint8_t PPGC2; - stc_mft_ppg_ppgc2_field_t PPGC2_f; - }; - uint8_t RESERVED14[2]; - union { - __IO uint16_t PRL0; - struct { - __IO uint8_t PRLL0; - __IO uint8_t PRLH0; - }; - }; - uint8_t RESERVED15[2]; - union { - __IO uint16_t PRL1; - struct { - __IO uint8_t PRLL1; - __IO uint8_t PRLH1; - }; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t PRL2; - struct { - __IO uint8_t PRLL2; - __IO uint8_t PRLH2; - }; - }; - uint8_t RESERVED17[2]; - union { - __IO uint16_t PRL3; - struct { - __IO uint8_t PRLL3; - __IO uint8_t PRLH3; - }; - }; - uint8_t RESERVED18[2]; - union { - __IO uint8_t GATEC0; - stc_mft_ppg_gatec0_field_t GATEC0_f; - }; - uint8_t RESERVED19[39]; - union { - __IO uint8_t PPGC5; - stc_mft_ppg_ppgc5_field_t PPGC5_f; - }; - union { - __IO uint8_t PPGC4; - stc_mft_ppg_ppgc4_field_t PPGC4_f; - }; - uint8_t RESERVED20[2]; - union { - __IO uint8_t PPGC7; - stc_mft_ppg_ppgc7_field_t PPGC7_f; - }; - union { - __IO uint8_t PPGC6; - stc_mft_ppg_ppgc6_field_t PPGC6_f; - }; - uint8_t RESERVED21[2]; - union { - __IO uint16_t PRL4; - struct { - __IO uint8_t PRLL4; - __IO uint8_t PRLH4; - }; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t PRL5; - struct { - __IO uint8_t PRLL5; - __IO uint8_t PRLH5; - }; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t PRL6; - struct { - __IO uint8_t PRLL6; - __IO uint8_t PRLH6; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t PRL7; - struct { - __IO uint8_t PRLL7; - __IO uint8_t PRLH7; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint8_t GATEC4; - stc_mft_ppg_gatec4_field_t GATEC4_f; - }; - uint8_t RESERVED26[39]; - union { - __IO uint8_t PPGC9; - stc_mft_ppg_ppgc9_field_t PPGC9_f; - }; - union { - __IO uint8_t PPGC8; - stc_mft_ppg_ppgc8_field_t PPGC8_f; - }; - uint8_t RESERVED27[2]; - union { - __IO uint8_t PPGC11; - stc_mft_ppg_ppgc11_field_t PPGC11_f; - }; - union { - __IO uint8_t PPGC10; - stc_mft_ppg_ppgc10_field_t PPGC10_f; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t PRL8; - struct { - __IO uint8_t PRLL8; - __IO uint8_t PRLH8; - }; - }; - uint8_t RESERVED29[2]; - union { - __IO uint16_t PRL9; - struct { - __IO uint8_t PRLL9; - __IO uint8_t PRLH9; - }; - }; - uint8_t RESERVED30[2]; - union { - __IO uint16_t PRL10; - struct { - __IO uint8_t PRLL10; - __IO uint8_t PRLH10; - }; - }; - uint8_t RESERVED31[2]; - union { - __IO uint16_t PRL11; - struct { - __IO uint8_t PRLL11; - __IO uint8_t PRLH11; - }; - }; - uint8_t RESERVED32[2]; - union { - __IO uint8_t GATEC8; - stc_mft_ppg_gatec8_field_t GATEC8_f; - }; - uint8_t RESERVED33[39]; - union { - __IO uint8_t PPGC13; - stc_mft_ppg_ppgc13_field_t PPGC13_f; - }; - union { - __IO uint8_t PPGC12; - stc_mft_ppg_ppgc12_field_t PPGC12_f; - }; - uint8_t RESERVED34[2]; - union { - __IO uint8_t PPGC15; - stc_mft_ppg_ppgc15_field_t PPGC15_f; - }; - union { - __IO uint8_t PPGC14; - stc_mft_ppg_ppgc14_field_t PPGC14_f; - }; - uint8_t RESERVED35[2]; - union { - __IO uint16_t PRL12; - struct { - __IO uint8_t PRLL12; - __IO uint8_t PRLH12; - }; - }; - uint8_t RESERVED36[2]; - union { - __IO uint16_t PRL13; - struct { - __IO uint8_t PRLL13; - __IO uint8_t PRLH13; - }; - }; - uint8_t RESERVED37[2]; - union { - __IO uint16_t PRL14; - struct { - __IO uint8_t PRLL14; - __IO uint8_t PRLH14; - }; - }; - uint8_t RESERVED38[2]; - union { - __IO uint16_t PRL15; - struct { - __IO uint8_t PRLL15; - __IO uint8_t PRLH15; - }; - }; - uint8_t RESERVED39[2]; - union { - __IO uint8_t GATEC12; - stc_mft_ppg_gatec12_field_t GATEC12_f; - }; -}FM3_MFT_PPG_TypeDef; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* Base Timer 0 PPG registers */ -typedef struct -{ - __IO uint16_t PRLL; - uint8_t RESERVED0[2]; - __IO uint16_t PRLH; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_ppg_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_ppg_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_ppg_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PPG_TypeDef; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* Base Timer 0 PWM registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[2]; - __IO uint16_t PDUT; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_pwm_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_pwm_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwm_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PWM_TypeDef; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* Base Timer 0 RT registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[6]; - __IO uint16_t TMR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t TMCR; - stc_bt_rt_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_rt_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_rt_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_RT_TypeDef; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* Base Timer 0 PWC registers */ -typedef struct -{ - uint8_t RESERVED0[4]; - __IO uint16_t DTBF; - uint8_t RESERVED1[6]; - union { - __IO uint16_t TMCR; - stc_bt_pwc_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_pwc_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwc_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PWC_TypeDef; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 0 - channel 3 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL0123; - stc_btiosel03_btsel0123_field_t BTSEL0123_f; - }; -}FM3_BTIOSEL03_TypeDef; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 4 - channel 7 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL4567; - stc_btiosel47_btsel4567_field_t BTSEL4567_f; - }; -}FM3_BTIOSEL47_TypeDef; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* Software based Simulation Startup (Base Timer) register */ -typedef struct -{ - union { - __IO uint16_t BTSSSR; - stc_sbssr_btsssr_field_t BTSSSR_f; - }; -}FM3_SBSSR_TypeDef; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* Quad position and revolution counter channel 0 registers */ -typedef struct -{ - __IO uint16_t QPCR; - uint8_t RESERVED0[2]; - __IO uint16_t QRCR; - uint8_t RESERVED1[2]; - __IO uint16_t QPCCR; - uint8_t RESERVED2[2]; - __IO uint16_t QPRCR; - uint8_t RESERVED3[2]; - __IO uint16_t QMPR; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t QICR; - stc_qprc_qicr_field_t QICR_f; - }; - struct { - union { - __IO uint8_t QICRL; - stc_qprc_qicrl_field_t QICRL_f; - }; - union { - __IO uint8_t QICRH; - stc_qprc_qicrh_field_t QICRH_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t QCR; - stc_qprc_qcr_field_t QCR_f; - }; - struct { - union { - __IO uint8_t QCRL; - stc_qprc_qcrl_field_t QCRL_f; - }; - union { - __IO uint8_t QCRH; - stc_qprc_qcrh_field_t QCRH_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t QECR; - stc_qprc_qecr_field_t QECR_f; - }; -}FM3_QPRC_TypeDef; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* 12-bit ADC unit 0 registers */ -typedef struct -{ - union { - __IO uint8_t ADSR; - stc_adc_adsr_field_t ADSR_f; - }; - union { - __IO uint8_t ADCR; - stc_adc_adcr_field_t ADCR_f; - }; - uint8_t RESERVED0[6]; - union { - __IO uint8_t SFNS; - stc_adc_sfns_field_t SFNS_f; - }; - union { - __IO uint8_t SCCR; - stc_adc_sccr_field_t SCCR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint32_t SCFD; - stc_adc_scfd_field_t SCFD_f; - }; - struct { - union { - __IO uint16_t SCFDL; - stc_adc_scfdl_field_t SCFDL_f; - }; - union { - __IO uint16_t SCFDH; - stc_adc_scfdh_field_t SCFDH_f; - }; - }; - }; - union { - union { - __IO uint16_t SCIS23; - stc_adc_scis23_field_t SCIS23_f; - }; - struct { - union { - __IO uint8_t SCIS2; - stc_adc_scis2_field_t SCIS2_f; - }; - union { - __IO uint8_t SCIS3; - stc_adc_scis3_field_t SCIS3_f; - }; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t SCIS01; - stc_adc_scis01_field_t SCIS01_f; - }; - struct { - union { - __IO uint8_t SCIS0; - stc_adc_scis0_field_t SCIS0_f; - }; - union { - __IO uint8_t SCIS1; - stc_adc_scis1_field_t SCIS1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t PFNS; - stc_adc_pfns_field_t PFNS_f; - }; - union { - __IO uint8_t PCCR; - stc_adc_pccr_field_t PCCR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint32_t PCFD; - stc_adc_pcfd_field_t PCFD_f; - }; - struct { - union { - __IO uint16_t PCFDL; - stc_adc_pcfdl_field_t PCFDL_f; - }; - union { - __IO uint16_t PCFDH; - stc_adc_pcfdh_field_t PCFDH_f; - }; - }; - }; - union { - __IO uint8_t PCIS; - stc_adc_pcis_field_t PCIS_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t CMPCR; - stc_adc_cmpcr_field_t CMPCR_f; - }; - uint8_t RESERVED6; - union { - __IO uint16_t CMPD; - stc_adc_cmpd_field_t CMPD_f; - }; - union { - union { - __IO uint16_t ADSS23; - stc_adc_adss23_field_t ADSS23_f; - }; - struct { - union { - __IO uint8_t ADSS2; - stc_adc_adss2_field_t ADSS2_f; - }; - union { - __IO uint8_t ADSS3; - stc_adc_adss3_field_t ADSS3_f; - }; - }; - }; - uint8_t RESERVED7[2]; - union { - union { - __IO uint16_t ADSS01; - stc_adc_adss01_field_t ADSS01_f; - }; - struct { - union { - __IO uint8_t ADSS0; - stc_adc_adss0_field_t ADSS0_f; - }; - union { - __IO uint8_t ADSS1; - stc_adc_adss1_field_t ADSS1_f; - }; - }; - }; - uint8_t RESERVED8[2]; - union { - union { - __IO uint16_t ADST01; - stc_adc_adst01_field_t ADST01_f; - }; - struct { - union { - __IO uint8_t ADST1; - stc_adc_adst1_field_t ADST1_f; - }; - union { - __IO uint8_t ADST0; - stc_adc_adst0_field_t ADST0_f; - }; - }; - }; - uint8_t RESERVED9[2]; - union { - __IO uint8_t ADCT; - stc_adc_adct_field_t ADCT_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PRTSL; - stc_adc_prtsl_field_t PRTSL_f; - }; - union { - __IO uint8_t SCTSL; - stc_adc_sctsl_field_t SCTSL_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint8_t ADCEN; - stc_adc_adcen_field_t ADCEN_f; - }; -}FM3_ADC_TypeDef; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CR trimming registers */ -typedef struct -{ - union { - __IO uint8_t MCR_PSR; - stc_crtrim_mcr_psr_field_t MCR_PSR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint16_t MCR_FTRM; - stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; - }; - uint8_t RESERVED1[6]; - __IO uint32_t MCR_RLR; -}FM3_CRTRIM_TypeDef; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* External interrupt registers */ -typedef struct -{ - union { - __IO uint16_t ENIR; - stc_exti_enir_field_t ENIR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint16_t EIRR; - stc_exti_eirr_field_t EIRR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t EICL; - stc_exti_eicl_field_t EICL_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint32_t ELVR; - stc_exti_elvr_field_t ELVR_f; - }; - uint8_t RESERVED3[4]; - union { - __IO uint8_t NMIRR; - stc_exti_nmirr_field_t NMIRR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t NMICL; - stc_exti_nmicl_field_t NMICL_f; - }; -}FM3_EXTI_TypeDef; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* Interrupt request read registers */ -typedef struct -{ - union { - __IO uint32_t DRQSEL; - stc_intreq_drqsel_field_t DRQSEL_f; - }; - uint8_t RESERVED0[12]; - union { - __IO uint32_t EXC02MON; - stc_intreq_exc02mon_field_t EXC02MON_f; - }; - union { - __IO uint32_t IRQ00MON; - stc_intreq_irq00mon_field_t IRQ00MON_f; - }; - union { - __IO uint32_t IRQ01MON; - stc_intreq_irq01mon_field_t IRQ01MON_f; - }; - union { - __IO uint32_t IRQ02MON; - stc_intreq_irq02mon_field_t IRQ02MON_f; - }; - union { - __IO uint32_t IRQ03MON; - stc_intreq_irq03mon_field_t IRQ03MON_f; - }; - union { - __IO uint32_t IRQ04MON; - stc_intreq_irq04mon_field_t IRQ04MON_f; - }; - union { - __IO uint32_t IRQ05MON; - stc_intreq_irq05mon_field_t IRQ05MON_f; - }; - union { - __IO uint32_t IRQ06MON; - stc_intreq_irq06mon_field_t IRQ06MON_f; - }; - union { - __IO uint32_t IRQ07MON; - stc_intreq_irq07mon_field_t IRQ07MON_f; - }; - union { - __IO uint32_t IRQ08MON; - stc_intreq_irq08mon_field_t IRQ08MON_f; - }; - union { - __IO uint32_t IRQ09MON; - stc_intreq_irq09mon_field_t IRQ09MON_f; - }; - union { - __IO uint32_t IRQ10MON; - stc_intreq_irq10mon_field_t IRQ10MON_f; - }; - union { - __IO uint32_t IRQ11MON; - stc_intreq_irq11mon_field_t IRQ11MON_f; - }; - union { - __IO uint32_t IRQ12MON; - stc_intreq_irq12mon_field_t IRQ12MON_f; - }; - union { - __IO uint32_t IRQ13MON; - stc_intreq_irq13mon_field_t IRQ13MON_f; - }; - union { - __IO uint32_t IRQ14MON; - stc_intreq_irq14mon_field_t IRQ14MON_f; - }; - union { - __IO uint32_t IRQ15MON; - stc_intreq_irq15mon_field_t IRQ15MON_f; - }; - union { - __IO uint32_t IRQ16MON; - stc_intreq_irq16mon_field_t IRQ16MON_f; - }; - union { - __IO uint32_t IRQ17MON; - stc_intreq_irq17mon_field_t IRQ17MON_f; - }; - union { - __IO uint32_t IRQ18MON; - stc_intreq_irq18mon_field_t IRQ18MON_f; - }; - union { - __IO uint32_t IRQ19MON; - stc_intreq_irq19mon_field_t IRQ19MON_f; - }; - union { - __IO uint32_t IRQ20MON; - stc_intreq_irq20mon_field_t IRQ20MON_f; - }; - union { - __IO uint32_t IRQ21MON; - stc_intreq_irq21mon_field_t IRQ21MON_f; - }; - union { - __IO uint32_t IRQ22MON; - stc_intreq_irq22mon_field_t IRQ22MON_f; - }; - union { - __IO uint32_t IRQ23MON; - stc_intreq_irq23mon_field_t IRQ23MON_f; - }; - union { - __IO uint32_t IRQ24MON; - stc_intreq_irq24mon_field_t IRQ24MON_f; - }; - union { - __IO uint32_t IRQ25MON; - stc_intreq_irq25mon_field_t IRQ25MON_f; - }; - union { - __IO uint32_t IRQ26MON; - stc_intreq_irq26mon_field_t IRQ26MON_f; - }; - union { - __IO uint32_t IRQ27MON; - stc_intreq_irq27mon_field_t IRQ27MON_f; - }; - union { - __IO uint32_t IRQ28MON; - stc_intreq_irq28mon_field_t IRQ28MON_f; - }; - union { - __IO uint32_t IRQ29MON; - stc_intreq_irq29mon_field_t IRQ29MON_f; - }; - union { - __IO uint32_t IRQ30MON; - stc_intreq_irq30mon_field_t IRQ30MON_f; - }; - union { - __IO uint32_t IRQ31MON; - stc_intreq_irq31mon_field_t IRQ31MON_f; - }; - union { - __IO uint32_t IRQ32MON; - stc_intreq_irq32mon_field_t IRQ32MON_f; - }; - union { - __IO uint32_t IRQ33MON; - stc_intreq_irq33mon_field_t IRQ33MON_f; - }; - union { - __IO uint32_t IRQ34MON; - stc_intreq_irq34mon_field_t IRQ34MON_f; - }; - union { - __IO uint32_t IRQ35MON; - stc_intreq_irq35mon_field_t IRQ35MON_f; - }; - __IO uint32_t IRQ36MON; - __IO uint32_t IRQ37MON; - union { - __IO uint32_t IRQ38MON; - stc_intreq_irq38mon_field_t IRQ38MON_f; - }; - union { - __IO uint32_t IRQ39MON; - stc_intreq_irq39mon_field_t IRQ39MON_f; - }; - union { - __IO uint32_t IRQ40MON; - stc_intreq_irq40mon_field_t IRQ40MON_f; - }; - union { - __IO uint32_t IRQ41MON; - stc_intreq_irq41mon_field_t IRQ41MON_f; - }; - union { - __IO uint32_t IRQ42MON; - stc_intreq_irq42mon_field_t IRQ42MON_f; - }; - union { - __IO uint32_t IRQ43MON; - stc_intreq_irq43mon_field_t IRQ43MON_f; - }; - union { - __IO uint32_t IRQ44MON; - stc_intreq_irq44mon_field_t IRQ44MON_f; - }; - union { - __IO uint32_t IRQ45MON; - stc_intreq_irq45mon_field_t IRQ45MON_f; - }; - __IO uint32_t IRQ46MON; - __IO uint32_t IRQ47MON; -}FM3_INTREQ_TypeDef; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* General purpose I/O registers */ -typedef struct -{ - union { - __IO uint32_t PFR0; - stc_gpio_pfr0_field_t PFR0_f; - }; - union { - __IO uint32_t PFR1; - stc_gpio_pfr1_field_t PFR1_f; - }; - union { - __IO uint32_t PFR2; - stc_gpio_pfr2_field_t PFR2_f; - }; - union { - __IO uint32_t PFR3; - stc_gpio_pfr3_field_t PFR3_f; - }; - union { - __IO uint32_t PFR4; - stc_gpio_pfr4_field_t PFR4_f; - }; - union { - __IO uint32_t PFR5; - stc_gpio_pfr5_field_t PFR5_f; - }; - union { - __IO uint32_t PFR6; - stc_gpio_pfr6_field_t PFR6_f; - }; - union { - __IO uint32_t PFR7; - stc_gpio_pfr7_field_t PFR7_f; - }; - union { - __IO uint32_t PFR8; - stc_gpio_pfr8_field_t PFR8_f; - }; - uint8_t RESERVED0[220]; - union { - __IO uint32_t PCR0; - stc_gpio_pcr0_field_t PCR0_f; - }; - union { - __IO uint32_t PCR1; - stc_gpio_pcr1_field_t PCR1_f; - }; - union { - __IO uint32_t PCR2; - stc_gpio_pcr2_field_t PCR2_f; - }; - union { - __IO uint32_t PCR3; - stc_gpio_pcr3_field_t PCR3_f; - }; - union { - __IO uint32_t PCR4; - stc_gpio_pcr4_field_t PCR4_f; - }; - union { - __IO uint32_t PCR5; - stc_gpio_pcr5_field_t PCR5_f; - }; - union { - __IO uint32_t PCR6; - stc_gpio_pcr6_field_t PCR6_f; - }; - union { - __IO uint32_t PCR7; - stc_gpio_pcr7_field_t PCR7_f; - }; - uint8_t RESERVED1[224]; - union { - __IO uint32_t DDR0; - stc_gpio_ddr0_field_t DDR0_f; - }; - union { - __IO uint32_t DDR1; - stc_gpio_ddr1_field_t DDR1_f; - }; - union { - __IO uint32_t DDR2; - stc_gpio_ddr2_field_t DDR2_f; - }; - union { - __IO uint32_t DDR3; - stc_gpio_ddr3_field_t DDR3_f; - }; - union { - __IO uint32_t DDR4; - stc_gpio_ddr4_field_t DDR4_f; - }; - union { - __IO uint32_t DDR5; - stc_gpio_ddr5_field_t DDR5_f; - }; - union { - __IO uint32_t DDR6; - stc_gpio_ddr6_field_t DDR6_f; - }; - union { - __IO uint32_t DDR7; - stc_gpio_ddr7_field_t DDR7_f; - }; - union { - __IO uint32_t DDR8; - stc_gpio_ddr8_field_t DDR8_f; - }; - uint8_t RESERVED2[220]; - union { - __IO uint32_t PDIR0; - stc_gpio_pdir0_field_t PDIR0_f; - }; - union { - __IO uint32_t PDIR1; - stc_gpio_pdir1_field_t PDIR1_f; - }; - union { - __IO uint32_t PDIR2; - stc_gpio_pdir2_field_t PDIR2_f; - }; - union { - __IO uint32_t PDIR3; - stc_gpio_pdir3_field_t PDIR3_f; - }; - union { - __IO uint32_t PDIR4; - stc_gpio_pdir4_field_t PDIR4_f; - }; - union { - __IO uint32_t PDIR5; - stc_gpio_pdir5_field_t PDIR5_f; - }; - union { - __IO uint32_t PDIR6; - stc_gpio_pdir6_field_t PDIR6_f; - }; - union { - __IO uint32_t PDIR7; - stc_gpio_pdir7_field_t PDIR7_f; - }; - union { - __IO uint32_t PDIR8; - stc_gpio_pdir8_field_t PDIR8_f; - }; - uint8_t RESERVED3[220]; - union { - __IO uint32_t PDOR0; - stc_gpio_pdor0_field_t PDOR0_f; - }; - union { - __IO uint32_t PDOR1; - stc_gpio_pdor1_field_t PDOR1_f; - }; - union { - __IO uint32_t PDOR2; - stc_gpio_pdor2_field_t PDOR2_f; - }; - union { - __IO uint32_t PDOR3; - stc_gpio_pdor3_field_t PDOR3_f; - }; - union { - __IO uint32_t PDOR4; - stc_gpio_pdor4_field_t PDOR4_f; - }; - union { - __IO uint32_t PDOR5; - stc_gpio_pdor5_field_t PDOR5_f; - }; - union { - __IO uint32_t PDOR6; - stc_gpio_pdor6_field_t PDOR6_f; - }; - union { - __IO uint32_t PDOR7; - stc_gpio_pdor7_field_t PDOR7_f; - }; - union { - __IO uint32_t PDOR8; - stc_gpio_pdor8_field_t PDOR8_f; - }; - uint8_t RESERVED4[220]; - union { - __IO uint32_t ADE; - stc_gpio_ade_field_t ADE_f; - }; - uint8_t RESERVED5[124]; - union { - __IO uint32_t SPSR; - stc_gpio_spsr_field_t SPSR_f; - }; - uint8_t RESERVED6[124]; - union { - __IO uint32_t EPFR00; - stc_gpio_epfr00_field_t EPFR00_f; - }; - union { - __IO uint32_t EPFR01; - stc_gpio_epfr01_field_t EPFR01_f; - }; - union { - __IO uint32_t EPFR02; - stc_gpio_epfr02_field_t EPFR02_f; - }; - uint8_t RESERVED7[4]; - union { - __IO uint32_t EPFR04; - stc_gpio_epfr04_field_t EPFR04_f; - }; - union { - __IO uint32_t EPFR05; - stc_gpio_epfr05_field_t EPFR05_f; - }; - union { - __IO uint32_t EPFR06; - stc_gpio_epfr06_field_t EPFR06_f; - }; - union { - __IO uint32_t EPFR07; - stc_gpio_epfr07_field_t EPFR07_f; - }; - union { - __IO uint32_t EPFR08; - stc_gpio_epfr08_field_t EPFR08_f; - }; - union { - __IO uint32_t EPFR09; - stc_gpio_epfr09_field_t EPFR09_f; - }; - union { - __IO uint32_t EPFR10; - stc_gpio_epfr10_field_t EPFR10_f; - }; -}FM3_GPIO_TypeDef; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* Low voltage detection registers */ -typedef struct -{ - union { - __IO uint8_t LVD_CTL; - stc_lvd_lvd_ctl_field_t LVD_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t LVD_STR; - stc_lvd_lvd_str_field_t LVD_STR_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t LVD_CLR; - stc_lvd_lvd_clr_field_t LVD_CLR_f; - }; - uint8_t RESERVED2[3]; - __IO uint32_t LVD_RLR; - union { - __IO uint8_t LVD_STR2; - stc_lvd_lvd_str2_field_t LVD_STR2_f; - }; -}FM3_LVD_TypeDef; - -/****************************************************************************** - * USBCLK - ******************************************************************************/ -/* USB clock registers */ -typedef struct -{ - union { - __IO uint8_t UCCR; - stc_usbclk_uccr_field_t UCCR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t UPCR1; - stc_usbclk_upcr1_field_t UPCR1_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t UPCR2; - stc_usbclk_upcr2_field_t UPCR2_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint8_t UPCR3; - stc_usbclk_upcr3_field_t UPCR3_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t UPCR4; - stc_usbclk_upcr4_field_t UPCR4_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t UP_STR; - stc_usbclk_up_str_field_t UP_STR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t UPINT_ENR; - stc_usbclk_upint_enr_field_t UPINT_ENR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t UPINT_CLR; - stc_usbclk_upint_clr_field_t UPINT_CLR_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint8_t UPINT_STR; - stc_usbclk_upint_str_field_t UPINT_STR_f; - }; - uint8_t RESERVED8[15]; - union { - __IO uint8_t USBEN; - stc_usbclk_usben_field_t USBEN_f; - }; -}FM3_USBCLK_TypeDef; - -/****************************************************************************** - * CANPRE_MODULE - ******************************************************************************/ -/* CAN prescaler register */ -typedef struct -{ - union { - __IO uint8_t CANPRE; - stc_canpre_canpre_field_t CANPRE_f; - }; -}FM3_CANPRE_TypeDef; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_uart_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_uart_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_uart_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_uart_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint16_t RDR; - stc_mfs03_uart_rdr_field_t RDR_f; - }; - union { - __IO uint16_t TDR; - stc_mfs03_uart_tdr_field_t TDR_f; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs03_uart_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs03_uart_bgr1_field_t BGR1_f; - }; - }; - }; -}FM3_MFS03_UART_TypeDef; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_csio_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_csio_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_csio_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_csio_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; -}FM3_MFS03_CSIO_TypeDef; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_lin_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_lin_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_lin_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_lin_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs03_lin_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs03_lin_bgr1_field_t BGR1_f; - }; - }; - }; -}FM3_MFS03_LIN_TypeDef; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* I2C channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_i2c_smr_field_t SMR_f; - }; - union { - __IO uint8_t IBCR; - stc_mfs03_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t IBSR; - stc_mfs03_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_i2c_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t ISBA; - stc_mfs03_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs03_i2c_ismk_field_t ISMK_f; - }; -}FM3_MFS03_I2C_TypeDef; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_uart_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_uart_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_uart_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_uart_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint16_t RDR; - stc_mfs47_uart_rdr_field_t RDR_f; - }; - union { - __IO uint16_t TDR; - stc_mfs47_uart_tdr_field_t TDR_f; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs47_uart_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs47_uart_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_uart_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_uart_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_uart_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_uart_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_uart_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_uart_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_UART_TypeDef; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_csio_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_csio_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_csio_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_csio_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_csio_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_csio_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_csio_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_csio_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_csio_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_csio_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_CSIO_TypeDef; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_lin_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_lin_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_lin_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_lin_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs47_lin_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs47_lin_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_lin_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_lin_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_lin_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_lin_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_lin_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_lin_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_LIN_TypeDef; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* I2C channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_i2c_smr_field_t SMR_f; - }; - union { - __IO uint8_t IBCR; - stc_mfs47_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t IBSR; - stc_mfs47_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_i2c_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t ISBA; - stc_mfs47_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs47_i2c_ismk_field_t ISMK_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_i2c_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_i2c_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_i2c_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_i2c_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_i2c_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_i2c_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_I2C_TypeDef; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC registers */ -typedef struct -{ - union { - __IO uint8_t CRCCR; - stc_crc_crccr_field_t CRCCR_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t CRCINIT; - union { - __IO uint32_t CRCIN; - struct { - union { - __IO uint16_t CRCINL; - struct { - __IO uint8_t CRCINLL; - __IO uint8_t CRCINLH; - }; - }; - union { - __IO uint16_t CRCINH; - struct { - __IO uint8_t CRCINHL; - __IO uint8_t CRCINHH; - }; - }; - }; - }; - __IO uint32_t CRCR; -}FM3_CRC_TypeDef; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* Watch counter registers */ -typedef struct -{ - union { - __IO uint8_t WCRD; - stc_wc_wcrd_field_t WCRD_f; - }; - union { - __IO uint8_t WCRL; - stc_wc_wcrl_field_t WCRL_f; - }; - union { - __IO uint8_t WCCR; - stc_wc_wccr_field_t WCCR_f; - }; - uint8_t RESERVED0[13]; - union { - __IO uint16_t CLK_SEL; - stc_wc_clk_sel_field_t CLK_SEL_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t CLK_EN; - stc_wc_clk_en_field_t CLK_EN_f; - }; -}FM3_WC_TypeDef; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* External bus interface registers */ -typedef struct -{ - union { - __IO uint32_t MODE0; - stc_exbus_mode0_field_t MODE0_f; - }; - union { - __IO uint32_t MODE1; - stc_exbus_mode1_field_t MODE1_f; - }; - union { - __IO uint32_t MODE2; - stc_exbus_mode2_field_t MODE2_f; - }; - union { - __IO uint32_t MODE3; - stc_exbus_mode3_field_t MODE3_f; - }; - union { - __IO uint32_t MODE4; - stc_exbus_mode4_field_t MODE4_f; - }; - union { - __IO uint32_t MODE5; - stc_exbus_mode5_field_t MODE5_f; - }; - union { - __IO uint32_t MODE6; - stc_exbus_mode6_field_t MODE6_f; - }; - union { - __IO uint32_t MODE7; - stc_exbus_mode7_field_t MODE7_f; - }; - union { - __IO uint32_t TIM0; - stc_exbus_tim0_field_t TIM0_f; - }; - union { - __IO uint32_t TIM1; - stc_exbus_tim1_field_t TIM1_f; - }; - union { - __IO uint32_t TIM2; - stc_exbus_tim2_field_t TIM2_f; - }; - union { - __IO uint32_t TIM3; - stc_exbus_tim3_field_t TIM3_f; - }; - union { - __IO uint32_t TIM4; - stc_exbus_tim4_field_t TIM4_f; - }; - union { - __IO uint32_t TIM5; - stc_exbus_tim5_field_t TIM5_f; - }; - union { - __IO uint32_t TIM6; - stc_exbus_tim6_field_t TIM6_f; - }; - union { - __IO uint32_t TIM7; - stc_exbus_tim7_field_t TIM7_f; - }; - union { - __IO uint32_t AREA0; - stc_exbus_area0_field_t AREA0_f; - }; - union { - __IO uint32_t AREA1; - stc_exbus_area1_field_t AREA1_f; - }; - union { - __IO uint32_t AREA2; - stc_exbus_area2_field_t AREA2_f; - }; - union { - __IO uint32_t AREA3; - stc_exbus_area3_field_t AREA3_f; - }; - union { - __IO uint32_t AREA4; - stc_exbus_area4_field_t AREA4_f; - }; - union { - __IO uint32_t AREA5; - stc_exbus_area5_field_t AREA5_f; - }; - union { - __IO uint32_t AREA6; - stc_exbus_area6_field_t AREA6_f; - }; - union { - __IO uint32_t AREA7; - stc_exbus_area7_field_t AREA7_f; - }; -}FM3_EXBUS_TypeDef; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB channel 0 registers */ -typedef struct -{ - union { - union { - __IO uint16_t HCNT; - stc_usb_hcnt_field_t HCNT_f; - }; - struct { - union { - __IO uint8_t HCNT0; - stc_usb_hcnt0_field_t HCNT0_f; - }; - union { - __IO uint8_t HCNT1; - stc_usb_hcnt1_field_t HCNT1_f; - }; - }; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t HIRQ; - stc_usb_hirq_field_t HIRQ_f; - }; - union { - __IO uint8_t HERR; - stc_usb_herr_field_t HERR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t HSTATE; - stc_usb_hstate_field_t HSTATE_f; - }; - union { - __IO uint8_t HFCOMP; - stc_usb_hfcomp_field_t HFCOMP_f; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t HRTIMER; - stc_usb_hrtimer_field_t HRTIMER_f; - }; - struct { - union { - __IO uint8_t HRTIMER0; - stc_usb_hrtimer0_field_t HRTIMER0_f; - }; - union { - __IO uint8_t HRTIMER1; - stc_usb_hrtimer1_field_t HRTIMER1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t HRTIMER2; - stc_usb_hrtimer2_field_t HRTIMER2_f; - }; - union { - __IO uint8_t HADR; - stc_usb_hadr_field_t HADR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t HEOF; - stc_usb_heof_field_t HEOF_f; - }; - struct { - union { - __IO uint8_t HEOF0; - stc_usb_heof0_field_t HEOF0_f; - }; - union { - __IO uint8_t HEOF1; - stc_usb_heof1_field_t HEOF1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t HFRAME; - stc_usb_hframe_field_t HFRAME_f; - }; - struct { - union { - __IO uint8_t HFRAME0; - stc_usb_hframe0_field_t HFRAME0_f; - }; - union { - __IO uint8_t HFRAME1; - stc_usb_hframe1_field_t HFRAME1_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t HTOKEN; - stc_usb_htoken_field_t HTOKEN_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t UDCC; - stc_usb_udcc_field_t UDCC_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t EP0C; - stc_usb_ep0c_field_t EP0C_f; - }; - uint8_t RESERVED9[2]; - union { - __IO uint16_t EP1C; - stc_usb_ep1c_field_t EP1C_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint16_t EP2C; - stc_usb_ep2c_field_t EP2C_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t EP3C; - stc_usb_ep3c_field_t EP3C_f; - }; - uint8_t RESERVED12[2]; - union { - __IO uint16_t EP4C; - stc_usb_ep4c_field_t EP4C_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint16_t EP5C; - stc_usb_ep5c_field_t EP5C_f; - }; - uint8_t RESERVED14[2]; - union { - __IO uint16_t TMSP; - stc_usb_tmsp_field_t TMSP_f; - }; - uint8_t RESERVED15[2]; - union { - __IO uint8_t UDCS; - stc_usb_udcs_field_t UDCS_f; - }; - union { - __IO uint8_t UDCIE; - stc_usb_udcie_field_t UDCIE_f; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t EP0IS; - stc_usb_ep0is_field_t EP0IS_f; - }; - uint8_t RESERVED17[2]; - union { - __IO uint16_t EP0OS; - stc_usb_ep0os_field_t EP0OS_f; - }; - uint8_t RESERVED18[2]; - union { - __IO uint16_t EP1S; - stc_usb_ep1s_field_t EP1S_f; - }; - uint8_t RESERVED19[2]; - union { - __IO uint16_t EP2S; - stc_usb_ep2s_field_t EP2S_f; - }; - uint8_t RESERVED20[2]; - __IO uint16_t EP3S; - uint8_t RESERVED21[2]; - union { - __IO uint16_t EP4S; - stc_usb_ep4s_field_t EP4S_f; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t EP5S; - stc_usb_ep5s_field_t EP5S_f; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t EP0DT; - struct { - __IO uint8_t EP0DTL; - __IO uint8_t EP0DTH; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t EP1DT; - struct { - __IO uint8_t EP1DTL; - __IO uint8_t EP1DTH; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint16_t EP2DT; - struct { - __IO uint8_t EP2DTL; - __IO uint8_t EP2DTH; - }; - }; - uint8_t RESERVED26[2]; - union { - __IO uint16_t EP3DT; - struct { - __IO uint8_t EP3DTL; - __IO uint8_t EP3DTH; - }; - }; - uint8_t RESERVED27[2]; - union { - __IO uint16_t EP4DT; - struct { - __IO uint8_t EP4DTL; - __IO uint8_t EP4DTH; - }; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t EP5DT; - struct { - __IO uint8_t EP5DTL; - __IO uint8_t EP5DTH; - }; - }; -}FM3_USB_TypeDef; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMA controller */ -typedef struct -{ - union { - __IO uint32_t DMACR; - stc_dmac_dmacr_field_t DMACR_f; - }; - uint8_t RESERVED0[12]; - union { - __IO uint32_t DMACA0; - stc_dmac_dmaca0_field_t DMACA0_f; - }; - union { - __IO uint32_t DMACB0; - stc_dmac_dmacb0_field_t DMACB0_f; - }; - __IO uint32_t DMACSA0; - __IO uint32_t DMACDA0; - union { - __IO uint32_t DMACA1; - stc_dmac_dmaca1_field_t DMACA1_f; - }; - union { - __IO uint32_t DMACB1; - stc_dmac_dmacb1_field_t DMACB1_f; - }; - __IO uint32_t DMACSA1; - __IO uint32_t DMACDA1; - union { - __IO uint32_t DMACA2; - stc_dmac_dmaca2_field_t DMACA2_f; - }; - union { - __IO uint32_t DMACB2; - stc_dmac_dmacb2_field_t DMACB2_f; - }; - __IO uint32_t DMACSA2; - __IO uint32_t DMACDA2; - union { - __IO uint32_t DMACA3; - stc_dmac_dmaca3_field_t DMACA3_f; - }; - union { - __IO uint32_t DMACB3; - stc_dmac_dmacb3_field_t DMACB3_f; - }; - __IO uint32_t DMACSA3; - __IO uint32_t DMACDA3; - union { - __IO uint32_t DMACA4; - stc_dmac_dmaca4_field_t DMACA4_f; - }; - union { - __IO uint32_t DMACB4; - stc_dmac_dmacb4_field_t DMACB4_f; - }; - __IO uint32_t DMACSA4; - __IO uint32_t DMACDA4; - union { - __IO uint32_t DMACA5; - stc_dmac_dmaca5_field_t DMACA5_f; - }; - union { - __IO uint32_t DMACB5; - stc_dmac_dmacb5_field_t DMACB5_f; - }; - __IO uint32_t DMACSA5; - __IO uint32_t DMACDA5; - union { - __IO uint32_t DMACA6; - stc_dmac_dmaca6_field_t DMACA6_f; - }; - union { - __IO uint32_t DMACB6; - stc_dmac_dmacb6_field_t DMACB6_f; - }; - __IO uint32_t DMACSA6; - __IO uint32_t DMACDA6; - union { - __IO uint32_t DMACA7; - stc_dmac_dmaca7_field_t DMACA7_f; - }; - union { - __IO uint32_t DMACB7; - stc_dmac_dmacb7_field_t DMACB7_f; - }; - __IO uint32_t DMACSA7; - __IO uint32_t DMACDA7; -}FM3_DMAC_TypeDef; - -/****************************************************************************** - * CAN_MODULE - ******************************************************************************/ -/* CAN channel 0 registers */ -typedef struct -{ - union { - __IO uint16_t CTRLR; - stc_can_ctrlr_field_t CTRLR_f; - }; - union { - __IO uint16_t STATR; - stc_can_statr_field_t STATR_f; - }; - union { - __IO uint16_t ERRCNT; - stc_can_errcnt_field_t ERRCNT_f; - }; - union { - __IO uint16_t BTR; - stc_can_btr_field_t BTR_f; - }; - union { - __IO uint16_t INTR; - stc_can_intr_field_t INTR_f; - }; - union { - __IO uint16_t TESTR; - stc_can_testr_field_t TESTR_f; - }; - union { - __IO uint16_t BRPER; - stc_can_brper_field_t BRPER_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint16_t IF1CREQ; - stc_can_if1creq_field_t IF1CREQ_f; - }; - union { - __IO uint16_t IF1CMSK; - stc_can_if1cmsk_field_t IF1CMSK_f; - }; - union { - union { - __IO uint32_t IF1MSK; - stc_can_if1msk_field_t IF1MSK_f; - }; - struct { - __IO uint16_t IF1MSK1; - union { - __IO uint16_t IF1MSK2; - stc_can_if1msk2_field_t IF1MSK2_f; - }; - }; - }; - union { - union { - __IO uint32_t IF1ARB; - stc_can_if1arb_field_t IF1ARB_f; - }; - struct { - __IO uint16_t IF1ARB1; - union { - __IO uint16_t IF1ARB2; - stc_can_if1arb2_field_t IF1ARB2_f; - }; - }; - }; - union { - __IO uint16_t IF1MCTR; - stc_can_if1mctr_field_t IF1MCTR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint32_t IF1DTA_L; - struct { - __IO uint16_t IF1DTA1_L; - __IO uint16_t IF1DTA2_L; - }; - }; - union { - __IO uint32_t IF1DTB_L; - struct { - __IO uint16_t IF1DTB1_L; - __IO uint16_t IF1DTB2_L; - }; - }; - uint8_t RESERVED2[8]; - union { - __IO uint32_t IF1DTA_B; - struct { - __IO uint16_t IF1DTA2_B; - __IO uint16_t IF1DTA1_B; - }; - }; - union { - __IO uint32_t IF1DTB_B; - struct { - __IO uint16_t IF1DTB2_B; - __IO uint16_t IF1DTB1_B; - }; - }; - uint8_t RESERVED3[8]; - union { - __IO uint16_t IF2CREQ; - stc_can_if2creq_field_t IF2CREQ_f; - }; - union { - __IO uint16_t IF2CMSK; - stc_can_if2cmsk_field_t IF2CMSK_f; - }; - union { - union { - __IO uint32_t IF2MSK; - stc_can_if2msk_field_t IF2MSK_f; - }; - struct { - __IO uint16_t IF2MSK1; - union { - __IO uint16_t IF2MSK2; - stc_can_if2msk2_field_t IF2MSK2_f; - }; - }; - }; - union { - __IO uint32_t IF2ARB; - struct { - __IO uint16_t IF2ARB1; - union { - __IO uint16_t IF2ARB2; - stc_can_if2arb2_field_t IF2ARB2_f; - }; - }; - }; - union { - __IO uint16_t IF2MCTR; - stc_can_if2mctr_field_t IF2MCTR_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint32_t IF2DTA_L; - struct { - __IO uint16_t IF2DTA1_L; - __IO uint16_t IF2DTA2_L; - }; - }; - union { - __IO uint32_t IF2DTB_L; - struct { - __IO uint16_t IF2DTB1_L; - __IO uint16_t IF2DTB2_L; - }; - }; - uint8_t RESERVED5[8]; - union { - __IO uint32_t IF2DTA_B; - struct { - __IO uint16_t IF2DTA2_B; - __IO uint16_t IF2DTA1_B; - }; - }; - union { - __IO uint32_t IF2DTB_B; - struct { - __IO uint16_t IF2DTB2_B; - __IO uint16_t IF2DTB1_B; - }; - }; - uint8_t RESERVED6[24]; - union { - union { - __IO uint32_t TREQR; - stc_can_treqr_field_t TREQR_f; - }; - struct { - union { - __IO uint16_t TREQR1; - stc_can_treqr1_field_t TREQR1_f; - }; - union { - __IO uint16_t TREQR2; - stc_can_treqr2_field_t TREQR2_f; - }; - }; - }; - uint8_t RESERVED7[12]; - union { - union { - __IO uint32_t NEWDT; - stc_can_newdt_field_t NEWDT_f; - }; - struct { - union { - __IO uint16_t NEWDT1; - stc_can_newdt1_field_t NEWDT1_f; - }; - __IO uint16_t NEWDT2; - }; - }; - uint8_t RESERVED8[12]; - union { - union { - __IO uint32_t INTPND; - stc_can_intpnd_field_t INTPND_f; - }; - struct { - union { - __IO uint16_t INTPND1; - stc_can_intpnd1_field_t INTPND1_f; - }; - union { - __IO uint16_t INTPND2; - stc_can_intpnd2_field_t INTPND2_f; - }; - }; - }; - uint8_t RESERVED9[12]; - union { - union { - __IO uint32_t MSGVAL; - stc_can_msgval_field_t MSGVAL_f; - }; - struct { - union { - __IO uint16_t MSGVAL1; - stc_can_msgval1_field_t MSGVAL1_f; - }; - union { - __IO uint16_t MSGVAL2; - stc_can_msgval2_field_t MSGVAL2_f; - }; - }; - }; -}FM3_CAN_TypeDef; - - -/****************************************************************************** - * Peripheral memory map - ******************************************************************************/ -#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ -#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ -#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ - -#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ -#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ -#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ -#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ -#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ -#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ -#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ -#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ -#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ -#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ -#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ -#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ -#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ -#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ -#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ -#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ -#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ -#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ -#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ -#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ -#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ -#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ -#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ -#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ -#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ -#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ -#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ -#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ -#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ -#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ -#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ -#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ -#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ -#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ -#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ -#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ -#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ -#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ -#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ -#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ -#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ -#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ -#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ -#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ -#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ -#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ -#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ -#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ -#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ -#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ -#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ -#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ -#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ -#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ -#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ -#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ -#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ -#define FM3_USBCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ -#define FM3_CANPRES_BASE (FM3_PERIPH_BASE + 0x37000UL) /* CAN prescaler register */ -#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ -#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ -#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ -#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ -#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ -#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ -#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ -#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ -#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ -#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ -#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ -#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ -#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ -#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ -#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ -#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ -#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ -#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ -#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ -#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ -#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ -#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ -#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ -#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ -#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ -#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ -#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ -#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ -#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ -#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ -#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ -#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ -#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ -#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ -#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ -#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ -#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ -#define FM3_CAN0_BASE (FM3_PERIPH_BASE + 0x62000UL) /* CAN channel 0 registers */ -#define FM3_CAN1_BASE (FM3_PERIPH_BASE + 0x63000UL) /* CAN channel 1 registers */ - -/****************************************************************************** - * Peripheral declaration - ******************************************************************************/ -#define FM3_FLASH_IF ((FM3_FLASH_IF_TypeDef *)FM3_FLASH_IF_BASE) -#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) -#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) -#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) -#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) -#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) -#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) -#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) -#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) -#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) -#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) -#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) -#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) -#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) -#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) -#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) -#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) -#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) -#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) -#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) -#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) -#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) -#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) -#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) -#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) -#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) -#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) -#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) -#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) -#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) -#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) -#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) -#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) -#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) -#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) -#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) -#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) -#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) -#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) -#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) -#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) -#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) -#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) -#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) -#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) -#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) -#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) -#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) -#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) -#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) -#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) -#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) -#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) -#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) -#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) -#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) -#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) -#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) -#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) -#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) -#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) -#define FM3_USBCLK ((FM3_USBCLK_TypeDef *)FM3_USBCLK_BASE) -#define FM3_CANPRES ((FM3_CANPRE_TypeDef *)FM3_CANPRES_BASE) -#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) -#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) -#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) -#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) -#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) -#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) -#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) -#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) -#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) -#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) -#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) -#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) -#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) -#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) -#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) -#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) -#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) -#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) -#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) -#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) -#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) -#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) -#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) -#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) -#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) -#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) -#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) -#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) -#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) -#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) -#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) -#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) -#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) -#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) -#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) -#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) -#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) -#define FM3_CAN0 ((FM3_CAN_TypeDef *)FM3_CAN0_BASE) -#define FM3_CAN1 ((FM3_CAN_TypeDef *)FM3_CAN1_BASE) - -/****************************************************************************** - * Peripheral Bit Band Alias declaration - ******************************************************************************/ - -/* Flash interface registers */ -#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) -#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) -#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) -#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) -#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) -#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) -#define bFM3_FLASH_IF_FSTR_EER *((volatile unsigned int*)(0x42000108UL)) -#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) -#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) -#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) - -/* Clock and reset registers */ -#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) -#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) -#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) -#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) -#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) -#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) -#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) -#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) -#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) -#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) -#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) -#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) -#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) -#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) -#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) -#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) -#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) -#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) -#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) -#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) -#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) -#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) -#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) -#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) -#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) -#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) -#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) -#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) -#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) -#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) -#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) -#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) -#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) -#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) -#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) -#define bFM3_CRG_TTC_PSR_TTC *((volatile unsigned int*)(0x42200500UL)) -#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) -#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) -#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) -#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) -#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) -#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) -#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) -#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) -#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) -#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) -#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) -#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) -#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) -#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) -#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) -#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) -#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) -#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) -#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) -#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) -#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) -#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) -#define bFM3_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) -#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) -#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) -#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) -#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) -#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) -#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) -#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) -#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) -#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) -#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) -#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) -#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) -#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) -#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) -#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) -#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) -#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) -#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) -#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) -#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) -#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) -#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) -#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) - -/* Hardware watchdog registers */ -#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) -#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) -#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) - -/* Software watchdog registers */ -#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) -#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) -#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) - -/* Dual timer 1/2 registers */ -#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) -#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) -#define bFM3_DTIM_TIMER1RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0200UL)) -#define bFM3_DTIM_TIMER1MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0280UL)) -#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) -#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) -#define bFM3_DTIM_TIMER2RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0600UL)) -#define bFM3_DTIM_TIMER2MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0680UL)) - -/* Multifunction Timer unit 0 Free Running Timer registers */ -#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) -#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) -#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) -#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) -#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) -#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) -#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) -#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) -#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) -#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) -#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) -#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) -#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) -#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) -#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) -#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) -#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) -#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) -#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) -#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) -#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) -#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) -#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) -#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) -#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) -#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) -#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) -#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) -#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) -#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) -#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) - -/* Multifunction Timer unit 0 Output Compare Unit registers */ -#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) -#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) -#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) -#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) -#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) -#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) -#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) -#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) -#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) -#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) -#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) -#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) -#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) -#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) -#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) -#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) -#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) -#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) -#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) -#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) -#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) -#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) -#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) -#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) -#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) -#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) - -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) -#define bFM3_MFT0_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4240118CUL)) -#define bFM3_MFT0_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42401190UL)) -#define bFM3_MFT0_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42401194UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) -#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) -#define bFM3_MFT0_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4240120CUL)) -#define bFM3_MFT0_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42401210UL)) -#define bFM3_MFT0_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42401214UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) -#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) -#define bFM3_MFT0_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4240128CUL)) -#define bFM3_MFT0_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42401290UL)) -#define bFM3_MFT0_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42401294UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) -#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) -#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) -#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) -#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) -#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) -#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) -#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) -#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) -#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) - -/* Multifunction Timer unit 0 Input Capture Unit registers */ -#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) -#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) -#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) -#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) -#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) -#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) -#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) -#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) -#define bFM3_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42400F18UL)) -#define bFM3_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42400F1CUL)) -#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) -#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) -#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) -#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) -#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) -#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) -#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) -#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) -#define bFM3_MFT0_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42400F98UL)) -#define bFM3_MFT0_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42400F9CUL)) -#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) -#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) - -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) -#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) - -/* Multifunction Timer unit 1 Free Running Timer registers */ -#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) -#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) -#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) -#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) -#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) -#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) -#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) -#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) -#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) -#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) -#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) -#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) -#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) -#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) -#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) -#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) -#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) -#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) -#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) -#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) -#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) -#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) -#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) -#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) -#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) -#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) -#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) -#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) -#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) -#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) -#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) - -/* Multifunction Timer unit 1 Output Compare Unit registers */ -#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) -#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) -#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) -#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) -#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) -#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) -#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) -#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) -#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) -#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) -#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) -#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) -#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) -#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) -#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) -#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) -#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) -#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) -#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) -#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) -#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) -#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) -#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) -#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) -#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) -#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) - -/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) -#define bFM3_MFT1_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4242118CUL)) -#define bFM3_MFT1_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42421190UL)) -#define bFM3_MFT1_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42421194UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) -#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) -#define bFM3_MFT1_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4242120CUL)) -#define bFM3_MFT1_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42421210UL)) -#define bFM3_MFT1_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42421214UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) -#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) -#define bFM3_MFT1_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4242128CUL)) -#define bFM3_MFT1_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42421290UL)) -#define bFM3_MFT1_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42421294UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) -#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) -#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) -#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) -#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) -#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) -#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) -#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) -#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) -#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) - -/* Multifunction Timer unit 1 Input Capture Unit registers */ -#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) -#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) -#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) -#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) -#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) -#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) -#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) -#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) -#define bFM3_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42420F18UL)) -#define bFM3_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42420F1CUL)) -#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) -#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) -#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) -#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) -#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) -#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) -#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) -#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) -#define bFM3_MFT1_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42420F98UL)) -#define bFM3_MFT1_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42420F9CUL)) -#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) -#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) - -/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) -#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) - -/* Multifunction Timer PPG registers */ -#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) -#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) -#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) -#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) -#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) -#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) -#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) -#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) -#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) -#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) -#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) -#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) -#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) -#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) -#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) -#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) -#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) -#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) -#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) -#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) -#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) -#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) -#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) -#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) -#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) -#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) -#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) -#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) -#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) -#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) -#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) -#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) -#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) -#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) -#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) -#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) -#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) -#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) -#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) -#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) -#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) -#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) -#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) -#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) -#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) -#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) -#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) -#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) -#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) -#define bFM3_MFT_PPG_PPGC1_MD0 *((volatile unsigned int*)(0x42484004UL)) -#define bFM3_MFT_PPG_PPGC1_MD1 *((volatile unsigned int*)(0x42484008UL)) -#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) -#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) -#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) -#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) -#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) -#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) -#define bFM3_MFT_PPG_PPGC0_MD0 *((volatile unsigned int*)(0x42484024UL)) -#define bFM3_MFT_PPG_PPGC0_MD1 *((volatile unsigned int*)(0x42484028UL)) -#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) -#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) -#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) -#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) -#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) -#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) -#define bFM3_MFT_PPG_PPGC3_MD0 *((volatile unsigned int*)(0x42484084UL)) -#define bFM3_MFT_PPG_PPGC3_MD1 *((volatile unsigned int*)(0x42484088UL)) -#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) -#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) -#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) -#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) -#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) -#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) -#define bFM3_MFT_PPG_PPGC2_MD0 *((volatile unsigned int*)(0x424840A4UL)) -#define bFM3_MFT_PPG_PPGC2_MD1 *((volatile unsigned int*)(0x424840A8UL)) -#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) -#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) -#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) -#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) -#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) -#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) -#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) -#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) -#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) -#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) -#define bFM3_MFT_PPG_PPGC5_MD0 *((volatile unsigned int*)(0x42484804UL)) -#define bFM3_MFT_PPG_PPGC5_MD1 *((volatile unsigned int*)(0x42484808UL)) -#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) -#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) -#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) -#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) -#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) -#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) -#define bFM3_MFT_PPG_PPGC4_MD0 *((volatile unsigned int*)(0x42484824UL)) -#define bFM3_MFT_PPG_PPGC4_MD1 *((volatile unsigned int*)(0x42484828UL)) -#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) -#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) -#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) -#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) -#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) -#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) -#define bFM3_MFT_PPG_PPGC7_MD0 *((volatile unsigned int*)(0x42484884UL)) -#define bFM3_MFT_PPG_PPGC7_MD1 *((volatile unsigned int*)(0x42484888UL)) -#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) -#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) -#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) -#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) -#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) -#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) -#define bFM3_MFT_PPG_PPGC6_MD0 *((volatile unsigned int*)(0x424848A4UL)) -#define bFM3_MFT_PPG_PPGC6_MD1 *((volatile unsigned int*)(0x424848A8UL)) -#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) -#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) -#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) -#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) -#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) -#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) -#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) -#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) -#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) -#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) -#define bFM3_MFT_PPG_PPGC9_MD0 *((volatile unsigned int*)(0x42485004UL)) -#define bFM3_MFT_PPG_PPGC9_MD1 *((volatile unsigned int*)(0x42485008UL)) -#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) -#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) -#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) -#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) -#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) -#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) -#define bFM3_MFT_PPG_PPGC8_MD0 *((volatile unsigned int*)(0x42485024UL)) -#define bFM3_MFT_PPG_PPGC8_MD1 *((volatile unsigned int*)(0x42485028UL)) -#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) -#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) -#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) -#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) -#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) -#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) -#define bFM3_MFT_PPG_PPGC11_MD0 *((volatile unsigned int*)(0x42485084UL)) -#define bFM3_MFT_PPG_PPGC11_MD1 *((volatile unsigned int*)(0x42485088UL)) -#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) -#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) -#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) -#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) -#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) -#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) -#define bFM3_MFT_PPG_PPGC10_MD0 *((volatile unsigned int*)(0x424850A4UL)) -#define bFM3_MFT_PPG_PPGC10_MD1 *((volatile unsigned int*)(0x424850A8UL)) -#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) -#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) -#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) -#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) -#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) -#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) -#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) -#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) -#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) -#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) -#define bFM3_MFT_PPG_PPGC13_MD0 *((volatile unsigned int*)(0x42485804UL)) -#define bFM3_MFT_PPG_PPGC13_MD1 *((volatile unsigned int*)(0x42485808UL)) -#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) -#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) -#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) -#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) -#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) -#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) -#define bFM3_MFT_PPG_PPGC12_MD0 *((volatile unsigned int*)(0x42485824UL)) -#define bFM3_MFT_PPG_PPGC12_MD1 *((volatile unsigned int*)(0x42485828UL)) -#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) -#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) -#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) -#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) -#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) -#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) -#define bFM3_MFT_PPG_PPGC15_MD0 *((volatile unsigned int*)(0x42485884UL)) -#define bFM3_MFT_PPG_PPGC15_MD1 *((volatile unsigned int*)(0x42485888UL)) -#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) -#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) -#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) -#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) -#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) -#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) -#define bFM3_MFT_PPG_PPGC14_MD0 *((volatile unsigned int*)(0x424858A4UL)) -#define bFM3_MFT_PPG_PPGC14_MD1 *((volatile unsigned int*)(0x424858A8UL)) -#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) -#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) -#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) -#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) -#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) -#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) -#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) -#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) -#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) - -/* Base Timer 0 PPG registers */ -#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWM registers */ -#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) -#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) -#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 RT registers */ -#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWC registers */ -#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) -#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 1 PPG registers */ -#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWM registers */ -#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) -#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) -#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 RT registers */ -#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWC registers */ -#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) -#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 2 PPG registers */ -#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWM registers */ -#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) -#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) -#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 RT registers */ -#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWC registers */ -#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) -#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 3 PPG registers */ -#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWM registers */ -#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) -#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) -#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 RT registers */ -#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWC registers */ -#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) -#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 4 PPG registers */ -#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWM registers */ -#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) -#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) -#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 RT registers */ -#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWC registers */ -#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) -#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 5 PPG registers */ -#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWM registers */ -#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) -#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) -#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 RT registers */ -#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWC registers */ -#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) -#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 6 PPG registers */ -#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWM registers */ -#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) -#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) -#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 RT registers */ -#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWC registers */ -#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) -#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 7 PPG registers */ -#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWM registers */ -#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) -#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) -#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 RT registers */ -#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWC registers */ -#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) -#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer I/O selector channel 0 - channel 3 registers */ -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) - -/* Base Timer I/O selector channel 4 - channel 7 registers */ -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) - -/* Software based Simulation Startup (Base Timer) register */ -#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) -#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) -#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) -#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) -#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) -#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) -#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) -#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) -#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) -#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) -#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) -#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) -#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) -#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) -#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) -#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) - -/* Quad position and revolution counter channel 0 registers */ -#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) -#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) -#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) - -/* Quad position and revolution counter channel 1 registers */ -#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) -#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) -#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) - -/* 12-bit ADC unit 0 registers */ -#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) -#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) -#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) -#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) -#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) -#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) -#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) -#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) -#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) -#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) -#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) -#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) -#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) -#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) -#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) -#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) -#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) -#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) -#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) -#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) -#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) -#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) -#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) -#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) -#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) -#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) -#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) -#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) -#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) -#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) -#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) -#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) -#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) -#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) -#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) -#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) -#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) -#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) -#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) -#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) -#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) -#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) -#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) -#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) -#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) -#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) -#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) -#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) -#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) -#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) -#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) -#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) -#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) -#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) -#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) -#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) -#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) -#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) -#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) -#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) -#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) -#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) -#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) -#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) -#define bFM3_ADC0_ADCT_CT3 *((volatile unsigned int*)(0x424E068CUL)) -#define bFM3_ADC0_ADCT_CT4 *((volatile unsigned int*)(0x424E0690UL)) -#define bFM3_ADC0_ADCT_CT5 *((volatile unsigned int*)(0x424E0694UL)) -#define bFM3_ADC0_ADCT_CT6 *((volatile unsigned int*)(0x424E0698UL)) -#define bFM3_ADC0_ADCT_CT7 *((volatile unsigned int*)(0x424E069CUL)) -#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) -#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) -#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) -#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) -#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) -#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) -#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) -#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) -#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) -#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) -#define bFM3_ADC0_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E0790UL)) -#define bFM3_ADC0_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E0794UL)) - -/* 12-bit ADC unit 1 registers */ -#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) -#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) -#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) -#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) -#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) -#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) -#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) -#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) -#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) -#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) -#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) -#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) -#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) -#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) -#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) -#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) -#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) -#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) -#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) -#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) -#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) -#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) -#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) -#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) -#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) -#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) -#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) -#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) -#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) -#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) -#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) -#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) -#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) -#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) -#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) -#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) -#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) -#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) -#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) -#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) -#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) -#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) -#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) -#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) -#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) -#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) -#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) -#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) -#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) -#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) -#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) -#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) -#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) -#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) -#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) -#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) -#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) -#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) -#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) -#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) -#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) -#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) -#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) -#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) -#define bFM3_ADC1_ADCT_CT3 *((volatile unsigned int*)(0x424E268CUL)) -#define bFM3_ADC1_ADCT_CT4 *((volatile unsigned int*)(0x424E2690UL)) -#define bFM3_ADC1_ADCT_CT5 *((volatile unsigned int*)(0x424E2694UL)) -#define bFM3_ADC1_ADCT_CT6 *((volatile unsigned int*)(0x424E2698UL)) -#define bFM3_ADC1_ADCT_CT7 *((volatile unsigned int*)(0x424E269CUL)) -#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) -#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) -#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) -#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) -#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) -#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) -#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) -#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) -#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) -#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) -#define bFM3_ADC1_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E2790UL)) -#define bFM3_ADC1_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E2794UL)) - -/* 12-bit ADC unit 2 registers */ -#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) -#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) -#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) -#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) -#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) -#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) -#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) -#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) -#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) -#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) -#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) -#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) -#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) -#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) -#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) -#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) -#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) -#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) -#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) -#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) -#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) -#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) -#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) -#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) -#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) -#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) -#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) -#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) -#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) -#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) -#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) -#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) -#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) -#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) -#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) -#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) -#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) -#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) -#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) -#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) -#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) -#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) -#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) -#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) -#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) -#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) -#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) -#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) -#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) -#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) -#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) -#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) -#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) -#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) -#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) -#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) -#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) -#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) -#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) -#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) -#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) -#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) -#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) -#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) -#define bFM3_ADC2_ADCT_CT3 *((volatile unsigned int*)(0x424E468CUL)) -#define bFM3_ADC2_ADCT_CT4 *((volatile unsigned int*)(0x424E4690UL)) -#define bFM3_ADC2_ADCT_CT5 *((volatile unsigned int*)(0x424E4694UL)) -#define bFM3_ADC2_ADCT_CT6 *((volatile unsigned int*)(0x424E4698UL)) -#define bFM3_ADC2_ADCT_CT7 *((volatile unsigned int*)(0x424E469CUL)) -#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) -#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) -#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) -#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) -#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) -#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) -#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) -#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) -#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) -#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) -#define bFM3_ADC2_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E4790UL)) -#define bFM3_ADC2_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E4794UL)) - -/* CR trimming registers */ -#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) -#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD8 *((volatile unsigned int*)(0x425C00A0UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD9 *((volatile unsigned int*)(0x425C00A4UL)) - -/* External interrupt registers */ -#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) -#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) -#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) -#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) -#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) -#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) -#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) -#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) -#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) -#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) -#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) -#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) -#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) -#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) -#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) -#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) -#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) -#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) -#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) -#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) -#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) -#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) -#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) -#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) -#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) -#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) -#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) -#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) -#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) -#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) -#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) -#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) -#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) -#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) -#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) -#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) -#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) -#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) -#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) -#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) -#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) -#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) -#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) -#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) -#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) -#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) -#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) -#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) -#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) -#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) -#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) -#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) -#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) -#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) -#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) -#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) -#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) -#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) -#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) -#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) -#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) -#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) -#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) -#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) -#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) -#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) -#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) -#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) -#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) -#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) -#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) -#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) -#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) -#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) -#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) -#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) -#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) -#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) -#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) -#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) -#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) -#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) - -/* Interrupt request read registers */ -#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) -#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) -#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) -#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) -#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) -#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT0 *((volatile unsigned int*)(0x42620580UL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620584UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) -#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) -#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) -#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) -#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) -#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) -#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) -#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) -#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) -#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) -#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) -#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) -#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) -#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) -#define bFM3_INTREQ_IRQ32MON_CANINT *((volatile unsigned int*)(0x42621280UL)) -#define bFM3_INTREQ_IRQ33MON_CANINT *((volatile unsigned int*)(0x42621300UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT5 *((volatile unsigned int*)(0x42621414UL)) -#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) -#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) -#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) -#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) -#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) -#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) -#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) -#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) - -/* General purpose I/O registers */ -#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) -#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) -#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) -#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) -#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) -#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) -#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) -#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) -#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) -#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) -#define bFM3_GPIO_PFR0_PA *((volatile unsigned int*)(0x42660028UL)) -#define bFM3_GPIO_PFR0_PB *((volatile unsigned int*)(0x4266002CUL)) -#define bFM3_GPIO_PFR0_PC *((volatile unsigned int*)(0x42660030UL)) -#define bFM3_GPIO_PFR0_PD *((volatile unsigned int*)(0x42660034UL)) -#define bFM3_GPIO_PFR0_PE *((volatile unsigned int*)(0x42660038UL)) -#define bFM3_GPIO_PFR0_PF *((volatile unsigned int*)(0x4266003CUL)) -#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) -#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) -#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) -#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) -#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) -#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) -#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) -#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) -#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) -#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) -#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) -#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) -#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) -#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) -#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) -#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) -#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) -#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) -#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) -#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) -#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) -#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) -#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) -#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) -#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) -#define bFM3_GPIO_PFR3_P0 *((volatile unsigned int*)(0x42660180UL)) -#define bFM3_GPIO_PFR3_P1 *((volatile unsigned int*)(0x42660184UL)) -#define bFM3_GPIO_PFR3_P2 *((volatile unsigned int*)(0x42660188UL)) -#define bFM3_GPIO_PFR3_P3 *((volatile unsigned int*)(0x4266018CUL)) -#define bFM3_GPIO_PFR3_P4 *((volatile unsigned int*)(0x42660190UL)) -#define bFM3_GPIO_PFR3_P5 *((volatile unsigned int*)(0x42660194UL)) -#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) -#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) -#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) -#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) -#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) -#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) -#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) -#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) -#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) -#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) -#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) -#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) -#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) -#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) -#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) -#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) -#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) -#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) -#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) -#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) -#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) -#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) -#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) -#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) -#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) -#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) -#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) -#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) -#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) -#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) -#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) -#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) -#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) -#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) -#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) -#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) -#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) -#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) -#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) -#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) -#define bFM3_GPIO_PFR6_P3 *((volatile unsigned int*)(0x4266030CUL)) -#define bFM3_GPIO_PFR6_P4 *((volatile unsigned int*)(0x42660310UL)) -#define bFM3_GPIO_PFR6_P5 *((volatile unsigned int*)(0x42660314UL)) -#define bFM3_GPIO_PFR6_P6 *((volatile unsigned int*)(0x42660318UL)) -#define bFM3_GPIO_PFR6_P7 *((volatile unsigned int*)(0x4266031CUL)) -#define bFM3_GPIO_PFR6_P8 *((volatile unsigned int*)(0x42660320UL)) -#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) -#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) -#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) -#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) -#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) -#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) -#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) -#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) -#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) -#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) -#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) -#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) -#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) -#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) -#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) -#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) -#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) -#define bFM3_GPIO_PCR0_PA *((volatile unsigned int*)(0x42662028UL)) -#define bFM3_GPIO_PCR0_PB *((volatile unsigned int*)(0x4266202CUL)) -#define bFM3_GPIO_PCR0_PC *((volatile unsigned int*)(0x42662030UL)) -#define bFM3_GPIO_PCR0_PD *((volatile unsigned int*)(0x42662034UL)) -#define bFM3_GPIO_PCR0_PE *((volatile unsigned int*)(0x42662038UL)) -#define bFM3_GPIO_PCR0_PF *((volatile unsigned int*)(0x4266203CUL)) -#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) -#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) -#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) -#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) -#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) -#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) -#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) -#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) -#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) -#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) -#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) -#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) -#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) -#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) -#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) -#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) -#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) -#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) -#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) -#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) -#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) -#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) -#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) -#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) -#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) -#define bFM3_GPIO_PCR3_P0 *((volatile unsigned int*)(0x42662180UL)) -#define bFM3_GPIO_PCR3_P1 *((volatile unsigned int*)(0x42662184UL)) -#define bFM3_GPIO_PCR3_P2 *((volatile unsigned int*)(0x42662188UL)) -#define bFM3_GPIO_PCR3_P3 *((volatile unsigned int*)(0x4266218CUL)) -#define bFM3_GPIO_PCR3_P4 *((volatile unsigned int*)(0x42662190UL)) -#define bFM3_GPIO_PCR3_P5 *((volatile unsigned int*)(0x42662194UL)) -#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) -#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) -#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) -#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) -#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) -#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) -#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) -#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) -#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) -#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) -#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) -#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) -#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) -#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) -#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) -#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) -#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) -#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) -#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) -#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) -#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) -#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) -#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) -#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) -#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) -#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) -#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) -#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) -#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) -#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) -#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) -#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) -#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) -#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) -#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) -#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) -#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) -#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) -#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) -#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) -#define bFM3_GPIO_PCR6_P3 *((volatile unsigned int*)(0x4266230CUL)) -#define bFM3_GPIO_PCR6_P4 *((volatile unsigned int*)(0x42662310UL)) -#define bFM3_GPIO_PCR6_P5 *((volatile unsigned int*)(0x42662314UL)) -#define bFM3_GPIO_PCR6_P6 *((volatile unsigned int*)(0x42662318UL)) -#define bFM3_GPIO_PCR6_P7 *((volatile unsigned int*)(0x4266231CUL)) -#define bFM3_GPIO_PCR6_P8 *((volatile unsigned int*)(0x42662320UL)) -#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) -#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) -#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) -#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) -#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) -#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) -#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) -#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) -#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) -#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) -#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) -#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) -#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) -#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) -#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) -#define bFM3_GPIO_DDR0_PA *((volatile unsigned int*)(0x42664028UL)) -#define bFM3_GPIO_DDR0_PB *((volatile unsigned int*)(0x4266402CUL)) -#define bFM3_GPIO_DDR0_PC *((volatile unsigned int*)(0x42664030UL)) -#define bFM3_GPIO_DDR0_PD *((volatile unsigned int*)(0x42664034UL)) -#define bFM3_GPIO_DDR0_PE *((volatile unsigned int*)(0x42664038UL)) -#define bFM3_GPIO_DDR0_PF *((volatile unsigned int*)(0x4266403CUL)) -#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) -#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) -#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) -#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) -#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) -#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) -#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) -#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) -#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) -#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) -#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) -#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) -#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) -#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) -#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) -#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) -#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) -#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) -#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) -#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) -#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) -#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) -#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) -#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) -#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) -#define bFM3_GPIO_DDR3_P0 *((volatile unsigned int*)(0x42664180UL)) -#define bFM3_GPIO_DDR3_P1 *((volatile unsigned int*)(0x42664184UL)) -#define bFM3_GPIO_DDR3_P2 *((volatile unsigned int*)(0x42664188UL)) -#define bFM3_GPIO_DDR3_P3 *((volatile unsigned int*)(0x4266418CUL)) -#define bFM3_GPIO_DDR3_P4 *((volatile unsigned int*)(0x42664190UL)) -#define bFM3_GPIO_DDR3_P5 *((volatile unsigned int*)(0x42664194UL)) -#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) -#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) -#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) -#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) -#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) -#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) -#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) -#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) -#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) -#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) -#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) -#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) -#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) -#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) -#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) -#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) -#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) -#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) -#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) -#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) -#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) -#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) -#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) -#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) -#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) -#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) -#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) -#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) -#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) -#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) -#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) -#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) -#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) -#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) -#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) -#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) -#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) -#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) -#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) -#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) -#define bFM3_GPIO_DDR6_P3 *((volatile unsigned int*)(0x4266430CUL)) -#define bFM3_GPIO_DDR6_P4 *((volatile unsigned int*)(0x42664310UL)) -#define bFM3_GPIO_DDR6_P5 *((volatile unsigned int*)(0x42664314UL)) -#define bFM3_GPIO_DDR6_P6 *((volatile unsigned int*)(0x42664318UL)) -#define bFM3_GPIO_DDR6_P7 *((volatile unsigned int*)(0x4266431CUL)) -#define bFM3_GPIO_DDR6_P8 *((volatile unsigned int*)(0x42664320UL)) -#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) -#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) -#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) -#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) -#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) -#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) -#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) -#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) -#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) -#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) -#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) -#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) -#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) -#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) -#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) -#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) -#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) -#define bFM3_GPIO_PDIR0_PA *((volatile unsigned int*)(0x42666028UL)) -#define bFM3_GPIO_PDIR0_PB *((volatile unsigned int*)(0x4266602CUL)) -#define bFM3_GPIO_PDIR0_PC *((volatile unsigned int*)(0x42666030UL)) -#define bFM3_GPIO_PDIR0_PD *((volatile unsigned int*)(0x42666034UL)) -#define bFM3_GPIO_PDIR0_PE *((volatile unsigned int*)(0x42666038UL)) -#define bFM3_GPIO_PDIR0_PF *((volatile unsigned int*)(0x4266603CUL)) -#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) -#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) -#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) -#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) -#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) -#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) -#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) -#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) -#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) -#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) -#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) -#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) -#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) -#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) -#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) -#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) -#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) -#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) -#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) -#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) -#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) -#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) -#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) -#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) -#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) -#define bFM3_GPIO_PDIR3_P0 *((volatile unsigned int*)(0x42666180UL)) -#define bFM3_GPIO_PDIR3_P1 *((volatile unsigned int*)(0x42666184UL)) -#define bFM3_GPIO_PDIR3_P2 *((volatile unsigned int*)(0x42666188UL)) -#define bFM3_GPIO_PDIR3_P3 *((volatile unsigned int*)(0x4266618CUL)) -#define bFM3_GPIO_PDIR3_P4 *((volatile unsigned int*)(0x42666190UL)) -#define bFM3_GPIO_PDIR3_P5 *((volatile unsigned int*)(0x42666194UL)) -#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) -#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) -#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) -#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) -#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) -#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) -#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) -#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) -#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) -#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) -#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) -#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) -#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) -#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) -#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) -#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) -#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) -#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) -#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) -#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) -#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) -#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) -#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) -#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) -#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) -#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) -#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) -#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) -#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) -#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) -#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) -#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) -#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) -#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) -#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) -#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) -#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) -#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) -#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) -#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) -#define bFM3_GPIO_PDIR6_P3 *((volatile unsigned int*)(0x4266630CUL)) -#define bFM3_GPIO_PDIR6_P4 *((volatile unsigned int*)(0x42666310UL)) -#define bFM3_GPIO_PDIR6_P5 *((volatile unsigned int*)(0x42666314UL)) -#define bFM3_GPIO_PDIR6_P6 *((volatile unsigned int*)(0x42666318UL)) -#define bFM3_GPIO_PDIR6_P7 *((volatile unsigned int*)(0x4266631CUL)) -#define bFM3_GPIO_PDIR6_P8 *((volatile unsigned int*)(0x42666320UL)) -#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) -#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) -#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) -#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) -#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) -#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) -#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) -#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) -#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) -#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) -#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) -#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) -#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) -#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) -#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) -#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) -#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) -#define bFM3_GPIO_PDOR0_PA *((volatile unsigned int*)(0x42668028UL)) -#define bFM3_GPIO_PDOR0_PB *((volatile unsigned int*)(0x4266802CUL)) -#define bFM3_GPIO_PDOR0_PC *((volatile unsigned int*)(0x42668030UL)) -#define bFM3_GPIO_PDOR0_PD *((volatile unsigned int*)(0x42668034UL)) -#define bFM3_GPIO_PDOR0_PE *((volatile unsigned int*)(0x42668038UL)) -#define bFM3_GPIO_PDOR0_PF *((volatile unsigned int*)(0x4266803CUL)) -#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) -#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) -#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) -#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) -#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) -#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) -#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) -#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) -#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) -#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) -#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) -#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) -#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) -#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) -#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) -#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) -#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) -#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) -#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) -#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) -#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) -#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) -#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) -#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) -#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) -#define bFM3_GPIO_PDOR3_P0 *((volatile unsigned int*)(0x42668180UL)) -#define bFM3_GPIO_PDOR3_P1 *((volatile unsigned int*)(0x42668184UL)) -#define bFM3_GPIO_PDOR3_P2 *((volatile unsigned int*)(0x42668188UL)) -#define bFM3_GPIO_PDOR3_P3 *((volatile unsigned int*)(0x4266818CUL)) -#define bFM3_GPIO_PDOR3_P4 *((volatile unsigned int*)(0x42668190UL)) -#define bFM3_GPIO_PDOR3_P5 *((volatile unsigned int*)(0x42668194UL)) -#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) -#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) -#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) -#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) -#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) -#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) -#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) -#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) -#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) -#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) -#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) -#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) -#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) -#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) -#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) -#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) -#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) -#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) -#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) -#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) -#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) -#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) -#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) -#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) -#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) -#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) -#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) -#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) -#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) -#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) -#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) -#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) -#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) -#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) -#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) -#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) -#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) -#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) -#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) -#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) -#define bFM3_GPIO_PDOR6_P3 *((volatile unsigned int*)(0x4266830CUL)) -#define bFM3_GPIO_PDOR6_P4 *((volatile unsigned int*)(0x42668310UL)) -#define bFM3_GPIO_PDOR6_P5 *((volatile unsigned int*)(0x42668314UL)) -#define bFM3_GPIO_PDOR6_P6 *((volatile unsigned int*)(0x42668318UL)) -#define bFM3_GPIO_PDOR6_P7 *((volatile unsigned int*)(0x4266831CUL)) -#define bFM3_GPIO_PDOR6_P8 *((volatile unsigned int*)(0x42668320UL)) -#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) -#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) -#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) -#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) -#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) -#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) -#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) -#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) -#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) -#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) -#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) -#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) -#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) -#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) -#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) -#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) -#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) -#define bFM3_GPIO_ADE_ANA *((volatile unsigned int*)(0x4266A028UL)) -#define bFM3_GPIO_ADE_ANB *((volatile unsigned int*)(0x4266A02CUL)) -#define bFM3_GPIO_ADE_ANC *((volatile unsigned int*)(0x4266A030UL)) -#define bFM3_GPIO_ADE_AND *((volatile unsigned int*)(0x4266A034UL)) -#define bFM3_GPIO_ADE_ANE *((volatile unsigned int*)(0x4266A038UL)) -#define bFM3_GPIO_ADE_ANF *((volatile unsigned int*)(0x4266A03CUL)) -#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) -#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) -#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) -#define bFM3_GPIO_EPFR00_CROUTE *((volatile unsigned int*)(0x4266C004UL)) -#define bFM3_GPIO_EPFR00_USB0PE *((volatile unsigned int*)(0x4266C024UL)) -#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) -#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) -#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) -#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) -#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) -#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) -#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) -#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) -#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) -#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) -#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) -#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) -#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) -#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) -#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) -#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) -#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) -#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) -#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) -#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) -#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) -#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) -#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) -#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) -#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) -#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) -#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) -#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) -#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) -#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) -#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) -#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) -#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) -#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) -#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) -#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) -#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) -#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) -#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) -#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) -#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) -#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) -#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) -#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) -#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) -#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) -#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) -#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) -#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) -#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) -#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) -#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) -#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) -#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) -#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) -#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) -#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) -#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) -#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) -#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) -#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) -#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) -#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) -#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) -#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) -#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) -#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) -#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) -#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) -#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) -#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) -#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) -#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) -#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) -#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) -#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) -#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) -#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) -#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) -#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) -#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) -#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) -#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) -#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) -#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) -#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) -#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) -#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) -#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) -#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) -#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) -#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) -#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) -#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) -#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) -#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) -#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) -#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) -#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) -#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) -#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) -#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) -#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) -#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) -#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) -#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) -#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) -#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) -#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) -#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) -#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) -#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) -#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) -#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) -#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) -#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) -#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) -#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) -#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) -#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) -#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) -#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) -#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) -#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) -#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) -#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) -#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) -#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) -#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) -#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) -#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) -#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) -#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) -#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) -#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) -#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) -#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) -#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) -#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) -#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) -#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) -#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) -#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) -#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) -#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) -#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) -#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) -#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) -#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) -#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) -#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) -#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) -#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) -#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) -#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) -#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) -#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) -#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) -#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) -#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) -#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) -#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) -#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) -#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) -#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) -#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) -#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) -#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) -#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) -#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) -#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) -#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) -#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) -#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) -#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) -#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) -#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) -#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) -#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) -#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) -#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) -#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) -#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) -#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) -#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) -#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) -#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) -#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) -#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) -#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) -#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) -#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) -#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) -#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) -#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) -#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) -#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) -#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) -#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) -#define bFM3_GPIO_EPFR09_CRX0S0 *((volatile unsigned int*)(0x4266C4E0UL)) -#define bFM3_GPIO_EPFR09_CRX0S1 *((volatile unsigned int*)(0x4266C4E4UL)) -#define bFM3_GPIO_EPFR09_CTX0E0 *((volatile unsigned int*)(0x4266C4E8UL)) -#define bFM3_GPIO_EPFR09_CTX0E1 *((volatile unsigned int*)(0x4266C4ECUL)) -#define bFM3_GPIO_EPFR09_CRX1S0 *((volatile unsigned int*)(0x4266C4F0UL)) -#define bFM3_GPIO_EPFR09_CRX1S1 *((volatile unsigned int*)(0x4266C4F4UL)) -#define bFM3_GPIO_EPFR09_CTX1E0 *((volatile unsigned int*)(0x4266C4F8UL)) -#define bFM3_GPIO_EPFR09_CTX1E1 *((volatile unsigned int*)(0x4266C4FCUL)) -#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) -#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) -#define bFM3_GPIO_EPFR10_TESTB *((volatile unsigned int*)(0x4266C508UL)) -#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) -#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) -#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) -#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) -#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) -#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) -#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) -#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) -#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) -#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) -#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) -#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) -#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) -#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) -#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) -#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) -#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) -#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) -#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) -#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) -#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) -#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) -#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) -#define bFM3_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x4266C568UL)) -#define bFM3_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x4266C56CUL)) -#define bFM3_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x4266C570UL)) -#define bFM3_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x4266C574UL)) -#define bFM3_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x4266C578UL)) -#define bFM3_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x4266C57CUL)) - -/* Low voltage detection registers */ -#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) -#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) -#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) -#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) -#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) -#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) -#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) -#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) - -/* USB clock registers */ -#define bFM3_USBCLK_UCCR_UCEN *((volatile unsigned int*)(0x426C0000UL)) -#define bFM3_USBCLK_UCCR_UCSEL *((volatile unsigned int*)(0x426C0004UL)) -#define bFM3_USBCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) -#define bFM3_USBCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) -#define bFM3_USBCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) -#define bFM3_USBCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) -#define bFM3_USBCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) -#define bFM3_USBCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) -#define bFM3_USBCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) -#define bFM3_USBCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) -#define bFM3_USBCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) -#define bFM3_USBCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) -#define bFM3_USBCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) -#define bFM3_USBCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) -#define bFM3_USBCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) -#define bFM3_USBCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) -#define bFM3_USBCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) -#define bFM3_USBCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) -#define bFM3_USBCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) -#define bFM3_USBCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) -#define bFM3_USBCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) -#define bFM3_USBCLK_USBEN_USBEN *((volatile unsigned int*)(0x426C0600UL)) - -/* CAN prescaler register */ -#define bFM3_CANPRES_CANPRE_CANPRE0 *((volatile unsigned int*)(0x426E0000UL)) -#define bFM3_CANPRES_CANPRE_CANPRE1 *((volatile unsigned int*)(0x426E0004UL)) -#define bFM3_CANPRES_CANPRE_CANPRE2 *((volatile unsigned int*)(0x426E0008UL)) -#define bFM3_CANPRES_CANPRE_CANPRE3 *((volatile unsigned int*)(0x426E000CUL)) - -/* UART asynchronous channel 0 registers */ -#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* UART synchronous channel 0 registers */ -#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) - -/* UART LIN channel 0 registers */ -#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* I2C channel 0 registers */ -#define bFM3_MFS0_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) -#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) -#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) -#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) -#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) -#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) -#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) -#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) -#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) -#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) -#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) -#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) -#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) -#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) -#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) -#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) -#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) - -/* UART asynchronous channel 1 registers */ -#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* UART synchronous channel 1 registers */ -#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) - -/* UART LIN channel 1 registers */ -#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* I2C channel 1 registers */ -#define bFM3_MFS1_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) -#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) -#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) -#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) -#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) -#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) -#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) -#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) -#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) -#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) -#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) -#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) -#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) -#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) -#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) -#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) -#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) - -/* UART asynchronous channel 2 registers */ -#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* UART synchronous channel 2 registers */ -#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) - -/* UART LIN channel 2 registers */ -#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* I2C channel 2 registers */ -#define bFM3_MFS2_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) -#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) -#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) -#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) -#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) -#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) -#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) -#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) -#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) -#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) -#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) -#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) -#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) -#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) -#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) -#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) -#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) - -/* UART asynchronous channel 3 registers */ -#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* UART synchronous channel 3 registers */ -#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) - -/* UART LIN channel 3 registers */ -#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* I2C channel 3 registers */ -#define bFM3_MFS3_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) -#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) -#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) -#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) -#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) -#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) -#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) -#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) -#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) -#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) -#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) -#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) -#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) -#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) -#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) -#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) -#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) - -/* UART asynchronous channel 4 registers */ -#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART synchronous channel 4 registers */ -#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART LIN channel 4 registers */ -#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* I2C channel 4 registers */ -#define bFM3_MFS4_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) -#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) -#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) -#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) -#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) -#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) -#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) -#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) -#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) -#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) -#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) -#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) -#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) -#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) -#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) -#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) -#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) -#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART asynchronous channel 5 registers */ -#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART synchronous channel 5 registers */ -#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART LIN channel 5 registers */ -#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* I2C channel 5 registers */ -#define bFM3_MFS5_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) -#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) -#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) -#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) -#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) -#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) -#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) -#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) -#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) -#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) -#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) -#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) -#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) -#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) -#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) -#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) -#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) -#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART asynchronous channel 6 registers */ -#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART synchronous channel 6 registers */ -#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART LIN channel 6 registers */ -#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* I2C channel 6 registers */ -#define bFM3_MFS6_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) -#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) -#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) -#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) -#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) -#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) -#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) -#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) -#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) -#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) -#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) -#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) -#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) -#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) -#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) -#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) -#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) -#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART asynchronous channel 7 registers */ -#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART synchronous channel 7 registers */ -#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART LIN channel 7 registers */ -#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* I2C channel 7 registers */ -#define bFM3_MFS7_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) -#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) -#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) -#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) -#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) -#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) -#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) -#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) -#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) -#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) -#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) -#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) -#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) -#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) -#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) -#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) -#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) -#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* CRC registers */ -#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) -#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) -#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) -#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) -#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) -#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) -#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) - -/* Watch counter registers */ -#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) -#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) -#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) -#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) -#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) -#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) -#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) -#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) -#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) -#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) -#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) -#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) -#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) -#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) -#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) -#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) -#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) -#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) -#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) -#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) -#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) -#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) - -/* External bus interface registers */ -#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) -#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) -#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) -#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) -#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0010UL)) -#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) -#define bFM3_EXBUS_MODE0_TEST *((volatile unsigned int*)(0x427E0018UL)) -#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) -#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) -#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) -#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) -#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) -#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) -#define bFM3_EXBUS_MODE1_TEST *((volatile unsigned int*)(0x427E0098UL)) -#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) -#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) -#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) -#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) -#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) -#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) -#define bFM3_EXBUS_MODE2_TEST *((volatile unsigned int*)(0x427E0118UL)) -#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) -#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) -#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) -#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) -#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) -#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) -#define bFM3_EXBUS_MODE3_TEST *((volatile unsigned int*)(0x427E0198UL)) -#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) -#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) -#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) -#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) -#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) -#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) -#define bFM3_EXBUS_MODE4_TEST *((volatile unsigned int*)(0x427E0218UL)) -#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) -#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) -#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) -#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) -#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) -#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) -#define bFM3_EXBUS_MODE5_TEST *((volatile unsigned int*)(0x427E0298UL)) -#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) -#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) -#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) -#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) -#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) -#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) -#define bFM3_EXBUS_MODE6_TEST *((volatile unsigned int*)(0x427E0318UL)) -#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) -#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) -#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) -#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) -#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) -#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) -#define bFM3_EXBUS_MODE7_TEST *((volatile unsigned int*)(0x427E0398UL)) -#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) -#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) -#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) -#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) -#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) -#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) -#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) -#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) -#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) -#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) -#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) -#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) -#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) -#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) -#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) -#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) -#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) -#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) -#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) -#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) -#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) -#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) -#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) -#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) -#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) -#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) -#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) -#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) -#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) -#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) -#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) -#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) -#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) -#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) -#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) -#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) -#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) -#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) -#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) -#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) -#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) -#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) -#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) -#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) -#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) -#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) -#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) -#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) -#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) -#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) -#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) -#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) -#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) -#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) -#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) -#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) -#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) -#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) -#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) -#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) -#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) -#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) -#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) -#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) -#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) -#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) -#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) -#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) -#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) -#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) -#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) -#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) -#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) -#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) -#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) -#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) -#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) -#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) -#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) -#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) -#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) -#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) -#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) -#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) -#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) -#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) -#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) -#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) -#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) -#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) -#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) -#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) -#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) -#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) -#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) -#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) -#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) -#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) -#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) -#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) -#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) -#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) -#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) -#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) -#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) -#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) -#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) -#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) -#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) -#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) -#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) -#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) -#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) -#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) -#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) -#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) -#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) -#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) -#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) -#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) -#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) -#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) -#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) -#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) -#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) -#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) -#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) -#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) -#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) -#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) -#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) -#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) -#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) -#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) -#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) -#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) -#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) -#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) -#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) -#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) -#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) -#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) -#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) -#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) -#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) -#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) -#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) -#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) -#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) -#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) -#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) -#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) -#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) -#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) -#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) -#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) -#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) -#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) -#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) -#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) -#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) -#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) -#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) -#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) -#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) -#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) -#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) -#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) -#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) -#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) -#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) -#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) -#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) -#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) -#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) -#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) -#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) -#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) -#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) -#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) -#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) -#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) -#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) -#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) -#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) -#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) -#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) -#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) -#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) -#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) -#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) -#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) -#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) -#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) -#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) -#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) -#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) -#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) -#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) -#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) -#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) -#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) -#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) -#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) -#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) -#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) -#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) -#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) -#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) -#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) -#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) -#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) -#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) -#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) -#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) -#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) -#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) -#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) -#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) -#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) -#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) -#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) -#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) -#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) -#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) -#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) -#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) -#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) -#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) -#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) -#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) -#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) -#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) -#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) -#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) -#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) -#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) -#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) -#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) -#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) -#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) -#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) -#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) -#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) -#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) -#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) -#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) -#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) -#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) -#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) -#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) -#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) -#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) -#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) -#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) -#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) -#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) -#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) -#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) -#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) -#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) -#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) -#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) -#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) -#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) -#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) -#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) -#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) -#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) -#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) -#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) -#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) -#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) -#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) -#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) -#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) -#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) -#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) -#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) -#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) -#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) -#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) -#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) -#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) -#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) -#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) -#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) -#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) -#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) -#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) -#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) -#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) -#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) -#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) -#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) -#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) -#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) -#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) -#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) -#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) -#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) -#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) -#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) -#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) -#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) -#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) -#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) -#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) -#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) -#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) -#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) -#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) -#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) -#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) -#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) -#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) -#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) -#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) -#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) -#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) -#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) -#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) -#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) -#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) -#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) -#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) -#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) -#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) -#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) -#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) -#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) -#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) -#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) -#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) -#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) -#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) -#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) -#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) -#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) -#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) -#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) -#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) -#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) -#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) -#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) -#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) -#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) -#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) -#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) -#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) -#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) -#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) -#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) -#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) -#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) -#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) -#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) -#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) -#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) -#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) -#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) -#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) -#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) -#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) -#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) -#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) -#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) -#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) -#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) -#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) -#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) -#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) -#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) -#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) -#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) -#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) - -/* USB channel 0 registers */ -#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) -#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) -#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) -#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) -#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) -#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) -#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) -#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) -#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) -#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) -#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) -#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) -#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) -#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) -#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) -#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) -#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) -#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) -#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) -#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) -#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) -#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) -#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) -#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) -#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) -#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) -#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) -#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) -#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) -#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) -#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) -#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) -#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) -#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) -#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) -#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) -#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) -#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) -#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) -#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) -#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) -#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) -#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) -#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) -#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) -#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) -#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) -#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) -#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) -#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) -#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) -#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) -#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) -#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) -#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) -#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) -#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) -#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) -#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) -#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) -#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) -#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) -#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) -#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) -#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) -#define bFM3_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) -#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) -#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) -#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) -#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) -#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) -#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) -#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) -#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) -#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) -#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) -#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) -#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) -#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) -#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) -#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) -#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) -#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) -#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) -#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) -#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) -#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) -#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) -#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) -#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) -#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) -#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) -#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) -#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) -#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) -#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) -#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) -#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) -#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) -#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) -#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) -#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) -#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) -#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) -#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) -#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) -#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) -#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) -#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) -#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) -#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) -#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) -#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) -#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) -#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) -#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) -#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) -#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) -#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) -#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) -#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) -#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) -#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) -#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) -#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) -#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) -#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) -#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) -#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) -#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) -#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) -#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) -#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) -#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) -#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) -#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) -#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) -#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) -#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) -#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) -#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) -#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) -#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) -#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) -#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) -#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) -#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) -#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) -#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) -#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) -#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) -#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) -#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) -#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) -#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) -#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) -#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) -#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) -#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) -#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) -#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) -#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) -#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) -#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) -#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) -#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) -#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) -#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) -#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) -#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) -#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) -#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) -#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) -#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) -#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) -#define bFM3_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) -#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) -#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) -#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) -#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) -#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) -#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) -#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) -#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) -#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) -#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) -#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) -#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) -#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) -#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) -#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) -#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) -#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) -#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) -#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) -#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) -#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) -#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) -#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) -#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) -#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) -#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) -#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) -#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) -#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) -#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) -#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) -#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) -#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) -#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) -#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) -#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) -#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) -#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) -#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) -#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) -#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) -#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) -#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) -#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) -#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) -#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) -#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) -#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) -#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) -#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) -#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) -#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) -#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) -#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) -#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) -#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) -#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) -#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) - -/* DMA controller */ -#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) -#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) -#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) -#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) -#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) -#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) -#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) -#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) -#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) -#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) -#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) -#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) -#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) -#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) -#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) -#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) -#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) -#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) -#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) -#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) -#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) -#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) -#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) -#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) -#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) -#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) -#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) -#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) -#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) -#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) -#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) -#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) -#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) -#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) -#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) -#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) -#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) -#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) -#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) -#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) -#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) -#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) -#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) -#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) -#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) -#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) -#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) -#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) -#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) -#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) -#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) -#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) -#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) -#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) -#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) -#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) -#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) -#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) -#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) -#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) -#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) -#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) -#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) -#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) -#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) -#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) -#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) -#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) -#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) -#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) -#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) -#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) -#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) -#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) -#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) -#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) -#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) -#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) -#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) -#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) -#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) -#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) -#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) -#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) -#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) -#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) -#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) -#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) -#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) -#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) -#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) -#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) -#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) -#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) -#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) -#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) -#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) -#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) -#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) -#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) -#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) -#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) -#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) -#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) -#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) -#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) -#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) -#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) -#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) -#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) -#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) -#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) -#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) -#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) -#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) -#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) -#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) -#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) -#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) -#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) -#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) -#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) -#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) -#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) -#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) -#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) -#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) -#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) -#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) -#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) -#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) -#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) -#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) -#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) -#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) -#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) -#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) -#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) -#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) -#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) -#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) -#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) -#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) -#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) -#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) -#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) -#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) -#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) -#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) -#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) -#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) -#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) -#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) -#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) -#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) -#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) -#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) -#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) -#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) -#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) -#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) -#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) -#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) -#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) -#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) -#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) -#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) -#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) -#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) -#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) -#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) -#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) -#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) -#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) -#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) -#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) -#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) -#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) -#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) -#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) -#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) -#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) -#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) -#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) -#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) -#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) -#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) -#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) -#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) -#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) -#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) -#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) -#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) -#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) -#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) -#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) -#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) -#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) -#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) -#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) -#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) -#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) -#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) -#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) -#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) -#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) -#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) -#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) -#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) -#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) -#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) -#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) -#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) -#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) -#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) -#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) -#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) -#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) -#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) -#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) -#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) -#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) -#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) -#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) -#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) -#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) -#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) -#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) -#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) -#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) -#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) -#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) -#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) -#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) -#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) -#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) -#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) -#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) -#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) -#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) -#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) -#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) -#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) -#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) -#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) -#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) -#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) -#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) -#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) -#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) -#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) -#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) -#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) -#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) -#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) -#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) -#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) -#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) -#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) -#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) -#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) -#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) -#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) -#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) -#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) -#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) -#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) -#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) -#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) -#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) -#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) -#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) -#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) -#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) -#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) -#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) -#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) -#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) -#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) -#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) -#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) -#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) -#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) -#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) -#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) -#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) -#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) -#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) -#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) -#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) -#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) -#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) -#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) -#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) -#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) -#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) -#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) -#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) -#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) -#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) -#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) -#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) -#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) -#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) -#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) -#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) -#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) -#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) -#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) -#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) -#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) -#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) -#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) -#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) -#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) -#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) -#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) -#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) -#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) -#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) -#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) -#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) -#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) -#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) -#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) -#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) -#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) -#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) -#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) -#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) -#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) -#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) -#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) -#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) -#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) -#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) -#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) -#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) -#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) -#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) -#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) -#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) -#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) -#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) -#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) -#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) -#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) -#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) -#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) -#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) -#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) -#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) -#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) -#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) -#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) -#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) -#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) -#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) -#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) - -/* CAN channel 0 registers */ -#define bFM3_CAN0_CTRLR_INIT *((volatile unsigned int*)(0x42C40000UL)) -#define bFM3_CAN0_CTRLR_IE *((volatile unsigned int*)(0x42C40004UL)) -#define bFM3_CAN0_CTRLR_SIE *((volatile unsigned int*)(0x42C40008UL)) -#define bFM3_CAN0_CTRLR_EIE *((volatile unsigned int*)(0x42C4000CUL)) -#define bFM3_CAN0_CTRLR_DAR *((volatile unsigned int*)(0x42C40014UL)) -#define bFM3_CAN0_CTRLR_CCE *((volatile unsigned int*)(0x42C40018UL)) -#define bFM3_CAN0_CTRLR_TEST *((volatile unsigned int*)(0x42C4001CUL)) -#define bFM3_CAN0_STATR_LEC0 *((volatile unsigned int*)(0x42C40040UL)) -#define bFM3_CAN0_STATR_LEC1 *((volatile unsigned int*)(0x42C40044UL)) -#define bFM3_CAN0_STATR_LEC2 *((volatile unsigned int*)(0x42C40048UL)) -#define bFM3_CAN0_STATR_TXOK *((volatile unsigned int*)(0x42C4004CUL)) -#define bFM3_CAN0_STATR_RXOK *((volatile unsigned int*)(0x42C40050UL)) -#define bFM3_CAN0_STATR_EPASS *((volatile unsigned int*)(0x42C40054UL)) -#define bFM3_CAN0_STATR_EWARM *((volatile unsigned int*)(0x42C40058UL)) -#define bFM3_CAN0_STATR_BOFF *((volatile unsigned int*)(0x42C4005CUL)) -#define bFM3_CAN0_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C40080UL)) -#define bFM3_CAN0_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C40084UL)) -#define bFM3_CAN0_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C40088UL)) -#define bFM3_CAN0_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C4008CUL)) -#define bFM3_CAN0_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C40090UL)) -#define bFM3_CAN0_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C40094UL)) -#define bFM3_CAN0_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C40098UL)) -#define bFM3_CAN0_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C4009CUL)) -#define bFM3_CAN0_ERRCNT_REC0 *((volatile unsigned int*)(0x42C400A0UL)) -#define bFM3_CAN0_ERRCNT_REC1 *((volatile unsigned int*)(0x42C400A4UL)) -#define bFM3_CAN0_ERRCNT_REC2 *((volatile unsigned int*)(0x42C400A8UL)) -#define bFM3_CAN0_ERRCNT_REC3 *((volatile unsigned int*)(0x42C400ACUL)) -#define bFM3_CAN0_ERRCNT_REC4 *((volatile unsigned int*)(0x42C400B0UL)) -#define bFM3_CAN0_ERRCNT_REC5 *((volatile unsigned int*)(0x42C400B4UL)) -#define bFM3_CAN0_ERRCNT_REC6 *((volatile unsigned int*)(0x42C400B8UL)) -#define bFM3_CAN0_ERRCNT_RP *((volatile unsigned int*)(0x42C400BCUL)) -#define bFM3_CAN0_BTR_BRP0 *((volatile unsigned int*)(0x42C400C0UL)) -#define bFM3_CAN0_BTR_BRP1 *((volatile unsigned int*)(0x42C400C4UL)) -#define bFM3_CAN0_BTR_BRP2 *((volatile unsigned int*)(0x42C400C8UL)) -#define bFM3_CAN0_BTR_BRP3 *((volatile unsigned int*)(0x42C400CCUL)) -#define bFM3_CAN0_BTR_BRP4 *((volatile unsigned int*)(0x42C400D0UL)) -#define bFM3_CAN0_BTR_BRP5 *((volatile unsigned int*)(0x42C400D4UL)) -#define bFM3_CAN0_BTR_SJW0 *((volatile unsigned int*)(0x42C400D8UL)) -#define bFM3_CAN0_BTR_SJW1 *((volatile unsigned int*)(0x42C400DCUL)) -#define bFM3_CAN0_BTR_TSEG10 *((volatile unsigned int*)(0x42C400E0UL)) -#define bFM3_CAN0_BTR_TSEG11 *((volatile unsigned int*)(0x42C400E4UL)) -#define bFM3_CAN0_BTR_TSEG12 *((volatile unsigned int*)(0x42C400E8UL)) -#define bFM3_CAN0_BTR_TSEG13 *((volatile unsigned int*)(0x42C400ECUL)) -#define bFM3_CAN0_BTR_TSEG20 *((volatile unsigned int*)(0x42C400F0UL)) -#define bFM3_CAN0_BTR_TSEG21 *((volatile unsigned int*)(0x42C400F4UL)) -#define bFM3_CAN0_BTR_TSEG22 *((volatile unsigned int*)(0x42C400F8UL)) -#define bFM3_CAN0_INTR_INTID0 *((volatile unsigned int*)(0x42C40100UL)) -#define bFM3_CAN0_INTR_INTID1 *((volatile unsigned int*)(0x42C40104UL)) -#define bFM3_CAN0_INTR_INTID2 *((volatile unsigned int*)(0x42C40108UL)) -#define bFM3_CAN0_INTR_INTID3 *((volatile unsigned int*)(0x42C4010CUL)) -#define bFM3_CAN0_INTR_INTID4 *((volatile unsigned int*)(0x42C40110UL)) -#define bFM3_CAN0_INTR_INTID5 *((volatile unsigned int*)(0x42C40114UL)) -#define bFM3_CAN0_INTR_INTID6 *((volatile unsigned int*)(0x42C40118UL)) -#define bFM3_CAN0_INTR_INTID7 *((volatile unsigned int*)(0x42C4011CUL)) -#define bFM3_CAN0_INTR_INTID8 *((volatile unsigned int*)(0x42C40120UL)) -#define bFM3_CAN0_INTR_INTID9 *((volatile unsigned int*)(0x42C40124UL)) -#define bFM3_CAN0_INTR_INTID10 *((volatile unsigned int*)(0x42C40128UL)) -#define bFM3_CAN0_INTR_INTID11 *((volatile unsigned int*)(0x42C4012CUL)) -#define bFM3_CAN0_INTR_INTID12 *((volatile unsigned int*)(0x42C40130UL)) -#define bFM3_CAN0_INTR_INTID13 *((volatile unsigned int*)(0x42C40134UL)) -#define bFM3_CAN0_INTR_INTID14 *((volatile unsigned int*)(0x42C40138UL)) -#define bFM3_CAN0_INTR_INTID15 *((volatile unsigned int*)(0x42C4013CUL)) -#define bFM3_CAN0_TESTR_BASIC *((volatile unsigned int*)(0x42C40148UL)) -#define bFM3_CAN0_TESTR_SILENT *((volatile unsigned int*)(0x42C4014CUL)) -#define bFM3_CAN0_TESTR_LBACK *((volatile unsigned int*)(0x42C40150UL)) -#define bFM3_CAN0_TESTR_TX0 *((volatile unsigned int*)(0x42C40154UL)) -#define bFM3_CAN0_TESTR_TX1 *((volatile unsigned int*)(0x42C40158UL)) -#define bFM3_CAN0_TESTR_RX *((volatile unsigned int*)(0x42C4015CUL)) -#define bFM3_CAN0_BRPER_BRPE0 *((volatile unsigned int*)(0x42C40180UL)) -#define bFM3_CAN0_BRPER_BRPE1 *((volatile unsigned int*)(0x42C40184UL)) -#define bFM3_CAN0_BRPER_BRPE2 *((volatile unsigned int*)(0x42C40188UL)) -#define bFM3_CAN0_BRPER_BRPE3 *((volatile unsigned int*)(0x42C4018CUL)) -#define bFM3_CAN0_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C4023CUL)) -#define bFM3_CAN0_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C40240UL)) -#define bFM3_CAN0_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C40244UL)) -#define bFM3_CAN0_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C40248UL)) -#define bFM3_CAN0_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C40248UL)) -#define bFM3_CAN0_IF1CMSK_CIP *((volatile unsigned int*)(0x42C4024CUL)) -#define bFM3_CAN0_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C40250UL)) -#define bFM3_CAN0_IF1CMSK_ARB *((volatile unsigned int*)(0x42C40254UL)) -#define bFM3_CAN0_IF1CMSK_MASK *((volatile unsigned int*)(0x42C40258UL)) -#define bFM3_CAN0_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C4025CUL)) -#define bFM3_CAN0_IF1MSK_MDIR *((volatile unsigned int*)(0x42C402F8UL)) -#define bFM3_CAN0_IF1MSK_MXTD *((volatile unsigned int*)(0x42C402FCUL)) -#define bFM3_CAN0_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C402F8UL)) -#define bFM3_CAN0_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C402FCUL)) -#define bFM3_CAN0_IF1ARB_DIR *((volatile unsigned int*)(0x42C40374UL)) -#define bFM3_CAN0_IF1ARB_XTD *((volatile unsigned int*)(0x42C40378UL)) -#define bFM3_CAN0_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) -#define bFM3_CAN0_IF1ARB2_DIR *((volatile unsigned int*)(0x42C40374UL)) -#define bFM3_CAN0_IF1ARB2_XTD *((volatile unsigned int*)(0x42C40378UL)) -#define bFM3_CAN0_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) -#define bFM3_CAN0_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C40380UL)) -#define bFM3_CAN0_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C40384UL)) -#define bFM3_CAN0_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C40388UL)) -#define bFM3_CAN0_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C4038CUL)) -#define bFM3_CAN0_IF1MCTR_EOB *((volatile unsigned int*)(0x42C4039CUL)) -#define bFM3_CAN0_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C403A0UL)) -#define bFM3_CAN0_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C403A4UL)) -#define bFM3_CAN0_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C403A8UL)) -#define bFM3_CAN0_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C403ACUL)) -#define bFM3_CAN0_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C403B0UL)) -#define bFM3_CAN0_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C403B4UL)) -#define bFM3_CAN0_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C403B8UL)) -#define bFM3_CAN0_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C403BCUL)) -#define bFM3_CAN0_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C4083CUL)) -#define bFM3_CAN0_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C40840UL)) -#define bFM3_CAN0_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C40844UL)) -#define bFM3_CAN0_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C40848UL)) -#define bFM3_CAN0_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C40848UL)) -#define bFM3_CAN0_IF2CMSK_CIP *((volatile unsigned int*)(0x42C4084CUL)) -#define bFM3_CAN0_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C40850UL)) -#define bFM3_CAN0_IF2CMSK_ARB *((volatile unsigned int*)(0x42C40854UL)) -#define bFM3_CAN0_IF2CMSK_MASK *((volatile unsigned int*)(0x42C40858UL)) -#define bFM3_CAN0_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C4085CUL)) -#define bFM3_CAN0_IF2MSK_MDIR *((volatile unsigned int*)(0x42C408F8UL)) -#define bFM3_CAN0_IF2MSK_MXTD *((volatile unsigned int*)(0x42C408FCUL)) -#define bFM3_CAN0_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C408F8UL)) -#define bFM3_CAN0_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C408FCUL)) -#define bFM3_CAN0_IF2ARB_DIR *((volatile unsigned int*)(0x42C40974UL)) -#define bFM3_CAN0_IF2ARB_XTD *((volatile unsigned int*)(0x42C40978UL)) -#define bFM3_CAN0_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) -#define bFM3_CAN0_IF2ARB2_DIR *((volatile unsigned int*)(0x42C40974UL)) -#define bFM3_CAN0_IF2ARB2_XTD *((volatile unsigned int*)(0x42C40978UL)) -#define bFM3_CAN0_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) -#define bFM3_CAN0_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C40980UL)) -#define bFM3_CAN0_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C40984UL)) -#define bFM3_CAN0_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C40988UL)) -#define bFM3_CAN0_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C4098CUL)) -#define bFM3_CAN0_IF2MCTR_EOB *((volatile unsigned int*)(0x42C4099CUL)) -#define bFM3_CAN0_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C409A0UL)) -#define bFM3_CAN0_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C409A4UL)) -#define bFM3_CAN0_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C409A8UL)) -#define bFM3_CAN0_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C409ACUL)) -#define bFM3_CAN0_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C409B0UL)) -#define bFM3_CAN0_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C409B4UL)) -#define bFM3_CAN0_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C409B8UL)) -#define bFM3_CAN0_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C409BCUL)) -#define bFM3_CAN0_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) -#define bFM3_CAN0_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) -#define bFM3_CAN0_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) -#define bFM3_CAN0_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) -#define bFM3_CAN0_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) -#define bFM3_CAN0_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) -#define bFM3_CAN0_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) -#define bFM3_CAN0_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) -#define bFM3_CAN0_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) -#define bFM3_CAN0_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) -#define bFM3_CAN0_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) -#define bFM3_CAN0_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) -#define bFM3_CAN0_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) -#define bFM3_CAN0_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) -#define bFM3_CAN0_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) -#define bFM3_CAN0_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) -#define bFM3_CAN0_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) -#define bFM3_CAN0_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) -#define bFM3_CAN0_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) -#define bFM3_CAN0_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) -#define bFM3_CAN0_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) -#define bFM3_CAN0_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) -#define bFM3_CAN0_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) -#define bFM3_CAN0_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) -#define bFM3_CAN0_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) -#define bFM3_CAN0_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) -#define bFM3_CAN0_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) -#define bFM3_CAN0_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) -#define bFM3_CAN0_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) -#define bFM3_CAN0_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) -#define bFM3_CAN0_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) -#define bFM3_CAN0_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) -#define bFM3_CAN0_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) -#define bFM3_CAN0_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) -#define bFM3_CAN0_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) -#define bFM3_CAN0_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) -#define bFM3_CAN0_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) -#define bFM3_CAN0_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) -#define bFM3_CAN0_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) -#define bFM3_CAN0_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) -#define bFM3_CAN0_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) -#define bFM3_CAN0_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) -#define bFM3_CAN0_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) -#define bFM3_CAN0_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) -#define bFM3_CAN0_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) -#define bFM3_CAN0_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) -#define bFM3_CAN0_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) -#define bFM3_CAN0_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) -#define bFM3_CAN0_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) -#define bFM3_CAN0_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) -#define bFM3_CAN0_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) -#define bFM3_CAN0_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) -#define bFM3_CAN0_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) -#define bFM3_CAN0_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) -#define bFM3_CAN0_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) -#define bFM3_CAN0_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) -#define bFM3_CAN0_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) -#define bFM3_CAN0_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) -#define bFM3_CAN0_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) -#define bFM3_CAN0_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) -#define bFM3_CAN0_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) -#define bFM3_CAN0_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) -#define bFM3_CAN0_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) -#define bFM3_CAN0_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) -#define bFM3_CAN0_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) -#define bFM3_CAN0_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) -#define bFM3_CAN0_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) -#define bFM3_CAN0_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) -#define bFM3_CAN0_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) -#define bFM3_CAN0_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) -#define bFM3_CAN0_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) -#define bFM3_CAN0_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) -#define bFM3_CAN0_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) -#define bFM3_CAN0_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) -#define bFM3_CAN0_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) -#define bFM3_CAN0_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) -#define bFM3_CAN0_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) -#define bFM3_CAN0_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) -#define bFM3_CAN0_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) -#define bFM3_CAN0_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) -#define bFM3_CAN0_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) -#define bFM3_CAN0_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) -#define bFM3_CAN0_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) -#define bFM3_CAN0_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) -#define bFM3_CAN0_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) -#define bFM3_CAN0_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) -#define bFM3_CAN0_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) -#define bFM3_CAN0_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) -#define bFM3_CAN0_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) -#define bFM3_CAN0_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) -#define bFM3_CAN0_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) -#define bFM3_CAN0_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) -#define bFM3_CAN0_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) -#define bFM3_CAN0_INTPND_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) -#define bFM3_CAN0_INTPND_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) -#define bFM3_CAN0_INTPND_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) -#define bFM3_CAN0_INTPND_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) -#define bFM3_CAN0_INTPND_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) -#define bFM3_CAN0_INTPND_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) -#define bFM3_CAN0_INTPND_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) -#define bFM3_CAN0_INTPND_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) -#define bFM3_CAN0_INTPND_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) -#define bFM3_CAN0_INTPND_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) -#define bFM3_CAN0_INTPND_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) -#define bFM3_CAN0_INTPND_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) -#define bFM3_CAN0_INTPND_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) -#define bFM3_CAN0_INTPND_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) -#define bFM3_CAN0_INTPND_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) -#define bFM3_CAN0_INTPND_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) -#define bFM3_CAN0_INTPND_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) -#define bFM3_CAN0_INTPND_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) -#define bFM3_CAN0_INTPND_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) -#define bFM3_CAN0_INTPND_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) -#define bFM3_CAN0_INTPND_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) -#define bFM3_CAN0_INTPND_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) -#define bFM3_CAN0_INTPND_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) -#define bFM3_CAN0_INTPND_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) -#define bFM3_CAN0_INTPND_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) -#define bFM3_CAN0_INTPND_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) -#define bFM3_CAN0_INTPND_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) -#define bFM3_CAN0_INTPND_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) -#define bFM3_CAN0_INTPND_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) -#define bFM3_CAN0_INTPND_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) -#define bFM3_CAN0_INTPND_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) -#define bFM3_CAN0_INTPND_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) -#define bFM3_CAN0_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) -#define bFM3_CAN0_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) -#define bFM3_CAN0_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) -#define bFM3_CAN0_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) -#define bFM3_CAN0_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) -#define bFM3_CAN0_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) -#define bFM3_CAN0_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) -#define bFM3_CAN0_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) -#define bFM3_CAN0_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) -#define bFM3_CAN0_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) -#define bFM3_CAN0_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) -#define bFM3_CAN0_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) -#define bFM3_CAN0_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) -#define bFM3_CAN0_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) -#define bFM3_CAN0_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) -#define bFM3_CAN0_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) -#define bFM3_CAN0_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) -#define bFM3_CAN0_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) -#define bFM3_CAN0_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) -#define bFM3_CAN0_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) -#define bFM3_CAN0_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) -#define bFM3_CAN0_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) -#define bFM3_CAN0_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) -#define bFM3_CAN0_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) -#define bFM3_CAN0_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) -#define bFM3_CAN0_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) -#define bFM3_CAN0_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) -#define bFM3_CAN0_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) -#define bFM3_CAN0_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) -#define bFM3_CAN0_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) -#define bFM3_CAN0_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) -#define bFM3_CAN0_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) -#define bFM3_CAN0_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) -#define bFM3_CAN0_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) -#define bFM3_CAN0_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) -#define bFM3_CAN0_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) - -/* CAN channel 1 registers */ -#define bFM3_CAN1_CTRLR_INIT *((volatile unsigned int*)(0x42C60000UL)) -#define bFM3_CAN1_CTRLR_IE *((volatile unsigned int*)(0x42C60004UL)) -#define bFM3_CAN1_CTRLR_SIE *((volatile unsigned int*)(0x42C60008UL)) -#define bFM3_CAN1_CTRLR_EIE *((volatile unsigned int*)(0x42C6000CUL)) -#define bFM3_CAN1_CTRLR_DAR *((volatile unsigned int*)(0x42C60014UL)) -#define bFM3_CAN1_CTRLR_CCE *((volatile unsigned int*)(0x42C60018UL)) -#define bFM3_CAN1_CTRLR_TEST *((volatile unsigned int*)(0x42C6001CUL)) -#define bFM3_CAN1_STATR_LEC0 *((volatile unsigned int*)(0x42C60040UL)) -#define bFM3_CAN1_STATR_LEC1 *((volatile unsigned int*)(0x42C60044UL)) -#define bFM3_CAN1_STATR_LEC2 *((volatile unsigned int*)(0x42C60048UL)) -#define bFM3_CAN1_STATR_TXOK *((volatile unsigned int*)(0x42C6004CUL)) -#define bFM3_CAN1_STATR_RXOK *((volatile unsigned int*)(0x42C60050UL)) -#define bFM3_CAN1_STATR_EPASS *((volatile unsigned int*)(0x42C60054UL)) -#define bFM3_CAN1_STATR_EWARM *((volatile unsigned int*)(0x42C60058UL)) -#define bFM3_CAN1_STATR_BOFF *((volatile unsigned int*)(0x42C6005CUL)) -#define bFM3_CAN1_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C60080UL)) -#define bFM3_CAN1_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C60084UL)) -#define bFM3_CAN1_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C60088UL)) -#define bFM3_CAN1_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C6008CUL)) -#define bFM3_CAN1_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C60090UL)) -#define bFM3_CAN1_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C60094UL)) -#define bFM3_CAN1_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C60098UL)) -#define bFM3_CAN1_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C6009CUL)) -#define bFM3_CAN1_ERRCNT_REC0 *((volatile unsigned int*)(0x42C600A0UL)) -#define bFM3_CAN1_ERRCNT_REC1 *((volatile unsigned int*)(0x42C600A4UL)) -#define bFM3_CAN1_ERRCNT_REC2 *((volatile unsigned int*)(0x42C600A8UL)) -#define bFM3_CAN1_ERRCNT_REC3 *((volatile unsigned int*)(0x42C600ACUL)) -#define bFM3_CAN1_ERRCNT_REC4 *((volatile unsigned int*)(0x42C600B0UL)) -#define bFM3_CAN1_ERRCNT_REC5 *((volatile unsigned int*)(0x42C600B4UL)) -#define bFM3_CAN1_ERRCNT_REC6 *((volatile unsigned int*)(0x42C600B8UL)) -#define bFM3_CAN1_ERRCNT_RP *((volatile unsigned int*)(0x42C600BCUL)) -#define bFM3_CAN1_BTR_BRP0 *((volatile unsigned int*)(0x42C600C0UL)) -#define bFM3_CAN1_BTR_BRP1 *((volatile unsigned int*)(0x42C600C4UL)) -#define bFM3_CAN1_BTR_BRP2 *((volatile unsigned int*)(0x42C600C8UL)) -#define bFM3_CAN1_BTR_BRP3 *((volatile unsigned int*)(0x42C600CCUL)) -#define bFM3_CAN1_BTR_BRP4 *((volatile unsigned int*)(0x42C600D0UL)) -#define bFM3_CAN1_BTR_BRP5 *((volatile unsigned int*)(0x42C600D4UL)) -#define bFM3_CAN1_BTR_SJW0 *((volatile unsigned int*)(0x42C600D8UL)) -#define bFM3_CAN1_BTR_SJW1 *((volatile unsigned int*)(0x42C600DCUL)) -#define bFM3_CAN1_BTR_TSEG10 *((volatile unsigned int*)(0x42C600E0UL)) -#define bFM3_CAN1_BTR_TSEG11 *((volatile unsigned int*)(0x42C600E4UL)) -#define bFM3_CAN1_BTR_TSEG12 *((volatile unsigned int*)(0x42C600E8UL)) -#define bFM3_CAN1_BTR_TSEG13 *((volatile unsigned int*)(0x42C600ECUL)) -#define bFM3_CAN1_BTR_TSEG20 *((volatile unsigned int*)(0x42C600F0UL)) -#define bFM3_CAN1_BTR_TSEG21 *((volatile unsigned int*)(0x42C600F4UL)) -#define bFM3_CAN1_BTR_TSEG22 *((volatile unsigned int*)(0x42C600F8UL)) -#define bFM3_CAN1_INTR_INTID0 *((volatile unsigned int*)(0x42C60100UL)) -#define bFM3_CAN1_INTR_INTID1 *((volatile unsigned int*)(0x42C60104UL)) -#define bFM3_CAN1_INTR_INTID2 *((volatile unsigned int*)(0x42C60108UL)) -#define bFM3_CAN1_INTR_INTID3 *((volatile unsigned int*)(0x42C6010CUL)) -#define bFM3_CAN1_INTR_INTID4 *((volatile unsigned int*)(0x42C60110UL)) -#define bFM3_CAN1_INTR_INTID5 *((volatile unsigned int*)(0x42C60114UL)) -#define bFM3_CAN1_INTR_INTID6 *((volatile unsigned int*)(0x42C60118UL)) -#define bFM3_CAN1_INTR_INTID7 *((volatile unsigned int*)(0x42C6011CUL)) -#define bFM3_CAN1_INTR_INTID8 *((volatile unsigned int*)(0x42C60120UL)) -#define bFM3_CAN1_INTR_INTID9 *((volatile unsigned int*)(0x42C60124UL)) -#define bFM3_CAN1_INTR_INTID10 *((volatile unsigned int*)(0x42C60128UL)) -#define bFM3_CAN1_INTR_INTID11 *((volatile unsigned int*)(0x42C6012CUL)) -#define bFM3_CAN1_INTR_INTID12 *((volatile unsigned int*)(0x42C60130UL)) -#define bFM3_CAN1_INTR_INTID13 *((volatile unsigned int*)(0x42C60134UL)) -#define bFM3_CAN1_INTR_INTID14 *((volatile unsigned int*)(0x42C60138UL)) -#define bFM3_CAN1_INTR_INTID15 *((volatile unsigned int*)(0x42C6013CUL)) -#define bFM3_CAN1_TESTR_BASIC *((volatile unsigned int*)(0x42C60148UL)) -#define bFM3_CAN1_TESTR_SILENT *((volatile unsigned int*)(0x42C6014CUL)) -#define bFM3_CAN1_TESTR_LBACK *((volatile unsigned int*)(0x42C60150UL)) -#define bFM3_CAN1_TESTR_TX0 *((volatile unsigned int*)(0x42C60154UL)) -#define bFM3_CAN1_TESTR_TX1 *((volatile unsigned int*)(0x42C60158UL)) -#define bFM3_CAN1_TESTR_RX *((volatile unsigned int*)(0x42C6015CUL)) -#define bFM3_CAN1_BRPER_BRPE0 *((volatile unsigned int*)(0x42C60180UL)) -#define bFM3_CAN1_BRPER_BRPE1 *((volatile unsigned int*)(0x42C60184UL)) -#define bFM3_CAN1_BRPER_BRPE2 *((volatile unsigned int*)(0x42C60188UL)) -#define bFM3_CAN1_BRPER_BRPE3 *((volatile unsigned int*)(0x42C6018CUL)) -#define bFM3_CAN1_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C6023CUL)) -#define bFM3_CAN1_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C60240UL)) -#define bFM3_CAN1_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C60244UL)) -#define bFM3_CAN1_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C60248UL)) -#define bFM3_CAN1_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C60248UL)) -#define bFM3_CAN1_IF1CMSK_CIP *((volatile unsigned int*)(0x42C6024CUL)) -#define bFM3_CAN1_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C60250UL)) -#define bFM3_CAN1_IF1CMSK_ARB *((volatile unsigned int*)(0x42C60254UL)) -#define bFM3_CAN1_IF1CMSK_MASK *((volatile unsigned int*)(0x42C60258UL)) -#define bFM3_CAN1_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C6025CUL)) -#define bFM3_CAN1_IF1MSK_MDIR *((volatile unsigned int*)(0x42C602F8UL)) -#define bFM3_CAN1_IF1MSK_MXTD *((volatile unsigned int*)(0x42C602FCUL)) -#define bFM3_CAN1_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C602F8UL)) -#define bFM3_CAN1_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C602FCUL)) -#define bFM3_CAN1_IF1ARB_DIR *((volatile unsigned int*)(0x42C60374UL)) -#define bFM3_CAN1_IF1ARB_XTD *((volatile unsigned int*)(0x42C60378UL)) -#define bFM3_CAN1_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) -#define bFM3_CAN1_IF1ARB2_DIR *((volatile unsigned int*)(0x42C60374UL)) -#define bFM3_CAN1_IF1ARB2_XTD *((volatile unsigned int*)(0x42C60378UL)) -#define bFM3_CAN1_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) -#define bFM3_CAN1_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C60380UL)) -#define bFM3_CAN1_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C60384UL)) -#define bFM3_CAN1_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C60388UL)) -#define bFM3_CAN1_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C6038CUL)) -#define bFM3_CAN1_IF1MCTR_EOB *((volatile unsigned int*)(0x42C6039CUL)) -#define bFM3_CAN1_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C603A0UL)) -#define bFM3_CAN1_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C603A4UL)) -#define bFM3_CAN1_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C603A8UL)) -#define bFM3_CAN1_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C603ACUL)) -#define bFM3_CAN1_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C603B0UL)) -#define bFM3_CAN1_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C603B4UL)) -#define bFM3_CAN1_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C603B8UL)) -#define bFM3_CAN1_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C603BCUL)) -#define bFM3_CAN1_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C6083CUL)) -#define bFM3_CAN1_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C60840UL)) -#define bFM3_CAN1_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C60844UL)) -#define bFM3_CAN1_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C60848UL)) -#define bFM3_CAN1_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C60848UL)) -#define bFM3_CAN1_IF2CMSK_CIP *((volatile unsigned int*)(0x42C6084CUL)) -#define bFM3_CAN1_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C60850UL)) -#define bFM3_CAN1_IF2CMSK_ARB *((volatile unsigned int*)(0x42C60854UL)) -#define bFM3_CAN1_IF2CMSK_MASK *((volatile unsigned int*)(0x42C60858UL)) -#define bFM3_CAN1_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C6085CUL)) -#define bFM3_CAN1_IF2MSK_MDIR *((volatile unsigned int*)(0x42C608F8UL)) -#define bFM3_CAN1_IF2MSK_MXTD *((volatile unsigned int*)(0x42C608FCUL)) -#define bFM3_CAN1_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C608F8UL)) -#define bFM3_CAN1_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C608FCUL)) -#define bFM3_CAN1_IF2ARB_DIR *((volatile unsigned int*)(0x42C60974UL)) -#define bFM3_CAN1_IF2ARB_XTD *((volatile unsigned int*)(0x42C60978UL)) -#define bFM3_CAN1_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) -#define bFM3_CAN1_IF2ARB2_DIR *((volatile unsigned int*)(0x42C60974UL)) -#define bFM3_CAN1_IF2ARB2_XTD *((volatile unsigned int*)(0x42C60978UL)) -#define bFM3_CAN1_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) -#define bFM3_CAN1_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C60980UL)) -#define bFM3_CAN1_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C60984UL)) -#define bFM3_CAN1_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C60988UL)) -#define bFM3_CAN1_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C6098CUL)) -#define bFM3_CAN1_IF2MCTR_EOB *((volatile unsigned int*)(0x42C6099CUL)) -#define bFM3_CAN1_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C609A0UL)) -#define bFM3_CAN1_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C609A4UL)) -#define bFM3_CAN1_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C609A8UL)) -#define bFM3_CAN1_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C609ACUL)) -#define bFM3_CAN1_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C609B0UL)) -#define bFM3_CAN1_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C609B4UL)) -#define bFM3_CAN1_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C609B8UL)) -#define bFM3_CAN1_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C609BCUL)) -#define bFM3_CAN1_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) -#define bFM3_CAN1_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) -#define bFM3_CAN1_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) -#define bFM3_CAN1_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) -#define bFM3_CAN1_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) -#define bFM3_CAN1_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) -#define bFM3_CAN1_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) -#define bFM3_CAN1_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) -#define bFM3_CAN1_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) -#define bFM3_CAN1_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) -#define bFM3_CAN1_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) -#define bFM3_CAN1_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) -#define bFM3_CAN1_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) -#define bFM3_CAN1_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) -#define bFM3_CAN1_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) -#define bFM3_CAN1_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) -#define bFM3_CAN1_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) -#define bFM3_CAN1_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) -#define bFM3_CAN1_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) -#define bFM3_CAN1_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) -#define bFM3_CAN1_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) -#define bFM3_CAN1_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) -#define bFM3_CAN1_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) -#define bFM3_CAN1_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) -#define bFM3_CAN1_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) -#define bFM3_CAN1_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) -#define bFM3_CAN1_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) -#define bFM3_CAN1_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) -#define bFM3_CAN1_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) -#define bFM3_CAN1_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) -#define bFM3_CAN1_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) -#define bFM3_CAN1_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) -#define bFM3_CAN1_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) -#define bFM3_CAN1_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) -#define bFM3_CAN1_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) -#define bFM3_CAN1_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) -#define bFM3_CAN1_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) -#define bFM3_CAN1_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) -#define bFM3_CAN1_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) -#define bFM3_CAN1_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) -#define bFM3_CAN1_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) -#define bFM3_CAN1_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) -#define bFM3_CAN1_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) -#define bFM3_CAN1_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) -#define bFM3_CAN1_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) -#define bFM3_CAN1_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) -#define bFM3_CAN1_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) -#define bFM3_CAN1_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) -#define bFM3_CAN1_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) -#define bFM3_CAN1_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) -#define bFM3_CAN1_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) -#define bFM3_CAN1_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) -#define bFM3_CAN1_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) -#define bFM3_CAN1_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) -#define bFM3_CAN1_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) -#define bFM3_CAN1_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) -#define bFM3_CAN1_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) -#define bFM3_CAN1_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) -#define bFM3_CAN1_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) -#define bFM3_CAN1_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) -#define bFM3_CAN1_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) -#define bFM3_CAN1_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) -#define bFM3_CAN1_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) -#define bFM3_CAN1_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) -#define bFM3_CAN1_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) -#define bFM3_CAN1_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) -#define bFM3_CAN1_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) -#define bFM3_CAN1_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) -#define bFM3_CAN1_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) -#define bFM3_CAN1_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) -#define bFM3_CAN1_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) -#define bFM3_CAN1_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) -#define bFM3_CAN1_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) -#define bFM3_CAN1_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) -#define bFM3_CAN1_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) -#define bFM3_CAN1_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) -#define bFM3_CAN1_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) -#define bFM3_CAN1_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) -#define bFM3_CAN1_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) -#define bFM3_CAN1_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) -#define bFM3_CAN1_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) -#define bFM3_CAN1_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) -#define bFM3_CAN1_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) -#define bFM3_CAN1_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) -#define bFM3_CAN1_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) -#define bFM3_CAN1_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) -#define bFM3_CAN1_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) -#define bFM3_CAN1_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) -#define bFM3_CAN1_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) -#define bFM3_CAN1_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) -#define bFM3_CAN1_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) -#define bFM3_CAN1_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) -#define bFM3_CAN1_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) -#define bFM3_CAN1_INTPND_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) -#define bFM3_CAN1_INTPND_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) -#define bFM3_CAN1_INTPND_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) -#define bFM3_CAN1_INTPND_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) -#define bFM3_CAN1_INTPND_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) -#define bFM3_CAN1_INTPND_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) -#define bFM3_CAN1_INTPND_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) -#define bFM3_CAN1_INTPND_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) -#define bFM3_CAN1_INTPND_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) -#define bFM3_CAN1_INTPND_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) -#define bFM3_CAN1_INTPND_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) -#define bFM3_CAN1_INTPND_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) -#define bFM3_CAN1_INTPND_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) -#define bFM3_CAN1_INTPND_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) -#define bFM3_CAN1_INTPND_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) -#define bFM3_CAN1_INTPND_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) -#define bFM3_CAN1_INTPND_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) -#define bFM3_CAN1_INTPND_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) -#define bFM3_CAN1_INTPND_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) -#define bFM3_CAN1_INTPND_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) -#define bFM3_CAN1_INTPND_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) -#define bFM3_CAN1_INTPND_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) -#define bFM3_CAN1_INTPND_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) -#define bFM3_CAN1_INTPND_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) -#define bFM3_CAN1_INTPND_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) -#define bFM3_CAN1_INTPND_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) -#define bFM3_CAN1_INTPND_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) -#define bFM3_CAN1_INTPND_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) -#define bFM3_CAN1_INTPND_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) -#define bFM3_CAN1_INTPND_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) -#define bFM3_CAN1_INTPND_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) -#define bFM3_CAN1_INTPND_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) -#define bFM3_CAN1_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) -#define bFM3_CAN1_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) -#define bFM3_CAN1_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) -#define bFM3_CAN1_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) -#define bFM3_CAN1_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) -#define bFM3_CAN1_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) -#define bFM3_CAN1_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) -#define bFM3_CAN1_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) -#define bFM3_CAN1_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) -#define bFM3_CAN1_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) -#define bFM3_CAN1_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) -#define bFM3_CAN1_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) -#define bFM3_CAN1_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) -#define bFM3_CAN1_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) -#define bFM3_CAN1_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) -#define bFM3_CAN1_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) -#define bFM3_CAN1_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) -#define bFM3_CAN1_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) -#define bFM3_CAN1_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) -#define bFM3_CAN1_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) -#define bFM3_CAN1_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) -#define bFM3_CAN1_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) -#define bFM3_CAN1_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) -#define bFM3_CAN1_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) -#define bFM3_CAN1_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) -#define bFM3_CAN1_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) -#define bFM3_CAN1_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) -#define bFM3_CAN1_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) -#define bFM3_CAN1_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) -#define bFM3_CAN1_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) -#define bFM3_CAN1_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) -#define bFM3_CAN1_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) -#define bFM3_CAN1_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) -#define bFM3_CAN1_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) -#define bFM3_CAN1_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) -#define bFM3_CAN1_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) - -#ifdef __cplusplus -} -#endif - -#endif /* _MB9BF506R_H_ */ - diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h deleted file mode 100644 index 4e5eff2db3..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/mcu.h +++ /dev/null @@ -1,62 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/** - ****************************************************************************** - ** \file mcu.h - ** - ** Header File for device dependent includes - ** - ** History: - ** 2011-05-19 V1.00 MWi first version - ** - ******************************************************************************/ - -/** - ****************************************************************************** - ** \brief MCU header file include - ** - ******************************************************************************/ -#ifndef _MB9BF506R_H_ - #include "mb9bf506r.h" -#endif - -/** - ****************************************************************************** - ** \brief MCU system start-up header file include - ** - ******************************************************************************/ -#ifndef _SYSTEM_MB9BF50X_H_ - #include "system_mb9bf50x.h" -#endif - - diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h deleted file mode 100644 index 947349e2af..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Include/system_mb9bf50x.h +++ /dev/null @@ -1,679 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/** \file system_mb9bf50x.h - ** - ** Headerfile for FM3 system parameters - ** - ** User clock definitions can be done for the following clock settings: - ** - CLOCK_SETUP : Execute the clock settings form the settings below in - ** SystemInit() - ** - __CLKMO : External clock frequency for main oscillion - ** - __CLKSO : External clock frequency for sub oscillion - ** - SCM_CTL : System Clock Mode Control Register - ** - BSC_PSR : Base Clock Prescaler Register - ** - APBC0_PSR : APB0 Prescaler Register - ** - APBC1_PSR : APB1 Prescaler Register - ** - APBC2_PSR : APB2 Prescaler Register - ** - SWC_PSR : Software Watchdog Clock Prescaler Register - ** - TTC_PSR : Trace Clock Prescaler Register - ** - CSW_TMR : Clock Stabilization Wait Time Register - ** - PSW_TMR : PLL Clock Stabilization Wait Time Setup Register - ** - PLL_CTL1 : PLL Control Register 1 - ** - PLL_CTL2 : PLL Control Register 2 - ** - ** The register settings are check for correct values of reserved bits. - ** Otherwise a preprocessor error is output and stops the build process. - ** Furthermore the 'master clock' is retrieved from the register settings - ** and the system clock (HCLK) is calculated from the Base Clock Prescaler - ** Register (BSC_PSR). This value is used for the global CMSIS variable - ** #SystemCoreClock. Also the absolute external, PLL and HCL freqeuncy is - ** is checked. Note that not all possible wrong setting are checked! The - ** user has to take care to fulfill the settings stated in the according - ** device's data sheet! - ** - ** User definition for Hardware Watchdog: - ** - HWWD_DISABLE : Disables Hardware Watchdog in SystemInit() - ** - ** User definition for CR Trimming: - ** - CR_TRIM_SETUP : Enables CR trimming in SystemInit() - ** - ** History: - ** 2011-05-16 V1.0 MWi original version - ** 2011-12-20 V1.1 EH corresponded to C++ - *****************************************************************************/ - -#ifndef _SYSTEM_MB9BF50X_H_ -#define _SYSTEM_MB9BF50X_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -/******************************************************************************/ -/* Include files */ -/******************************************************************************/ - -#include - -/******************************************************************************/ -/* Global pre-processor symbols/macros ('define') */ -/******************************************************************************/ - -/******************************************************************************/ -/* */ -/* START OF USER SETTINGS HERE */ -/* =========================== */ -/* */ -/* All lines with '<<<' can be set by user. */ -/* */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Clock Setup Enable - ** (USER SETTING) - ** - ** - 0 = No clock setup done by system_mb9xfxxx.c - ** - 1 = Clock setup done by system_mb9xfxxx.c - ******************************************************************************/ -#define CLOCK_SETUP 1 // <<< Define clock setup here - -/** - ****************************************************************************** - ** \brief External Main Clock Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKMO ( 4000000UL) // <<< External 4MHz Crystal - -/** - ****************************************************************************** - ** \brief External Sub Clock Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKSO ( 32768UL) // <<< External 32KHz Crystal - -/** - ****************************************************************************** - ** \brief System Clock Mode Control Register value definition - ** (USER SETTING) - ** - ** SCM_CTL - ** - ** Bit#7-5 : RCS[2:0] - ** - 0 = Internal high-speed CR oscillation (default) - ** - 1 = Main oscillation clock - ** - 2 = PLL oscillation clock - ** - 3 = (not allowed) - ** - 4 = Internal low-speed CR oscillation - ** - 5 = Sub clock oscillation - ** - 6 = (not allowed) - ** - 7 = (not allowed) - ** - ** Bit#4 : PLLE - ** - 0 = Disable PLL (default) - ** - 1 = Enable PLL - ** - ** Bit#3 : SOSCE - ** - 0 = Disable sub oscillation (default) - ** - 1 = Enable sub oscillation - ** - ** Bit#2 : (reserved) - ** - ** Bit#1 : MOSCE - ** - 0 = Disable main oscillation (default) - ** - 1 = Enable main oscillation - ** - ** Bit#0 : (reserved) - ******************************************************************************/ -#define SCM_CTL_Val 0x00000052 // <<< Define SCM_CTL here - -/** - ****************************************************************************** - ** \brief Base Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** BSC_PSR - ** - ** Bit#7-3 : (reserved) - ** - ** Bit#2-0 : BSR[2:0] - ** - 0 = HCLK = Master Clock - ** - 1 = HCLK = Master Clock / 2 - ** - 2 = HCLK = Master Clock / 3 - ** - 3 = HCLK = Master Clock / 4 - ** - 4 = HCLK = Master Clock / 6 - ** - 5 = HCLK = Master Clock / 8 - ** - 6 = HCLK = Master Clock / 16 - ** - 7 = (reserved) - ******************************************************************************/ -#define BSC_PSR_Val 0x00000000 // <<< Define BSC_PSR here - -/** - ****************************************************************************** - ** \brief APB0 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC0_PSR - ** - ** Bit#7-2 : (reserved) - ** - ** Bit#1-0 : BSR[2:0] - ** - 0 = PCLK0 = HCLK - ** - 1 = PCLK0 = HCLK / 2 - ** - 2 = PCLK0 = HCLK / 4 - ** - 3 = PCLK0 = HCLK / 8 - ******************************************************************************/ -#define APBC0_PSR_Val 0x00000001 // <<< Define APBC0_PSR here - -/** - ****************************************************************************** - ** \brief APB1 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC1_PSR - ** - ** Bit#7 : APBC1EN - ** - 0 = Disable PCLK1 output - ** - 1 = Enables PCLK1 (default) - ** - ** Bit#6-5 : (reserved) - ** - ** Bit#4 : APBC1RST - ** - 0 = APB1 bus reset, inactive (default) - ** - 1 = APB1 bus reset, active - ** - ** Bit#3-2 : (reserved) - ** - ** Bit#1-0 : APBC1[2:0] - ** - 0 = PCLK1 = HCLK - ** - 1 = PCLK1 = HCLK / 2 - ** - 2 = PCLK1 = HCLK / 4 - ** - 3 = PCLK1 = HCLK / 8 - ******************************************************************************/ -#define APBC1_PSR_Val 0x00000081 // <<< Define APBC1_PSR here - -/** - ****************************************************************************** - ** \brief APB2 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC2_PSR - ** - ** Bit#7 : APBC2EN - ** - 0 = Disable PCLK2 output - ** - 1 = Enables PCLK2 (default) - ** - ** Bit#6-5 : (reserved) - ** - ** Bit#4 : APBC2RST - ** - 0 = APB2 bus reset, inactive (default) - ** - 1 = APB2 bus reset, active - ** - ** Bit#3-2 : (reserved) - ** - ** Bit#1-0 : APBC2[1:0] - ** - 0 = PCLK2 = HCLK - ** - 1 = PCLK2 = HCLK / 2 - ** - 2 = PCLK2 = HCLK / 4 - ** - 3 = PCLK2 = HCLK / 8 - ******************************************************************************/ -#define APBC2_PSR_Val 0x00000081 // <<< Define APBC2_PSR here - -/** - ****************************************************************************** - ** \brief Software Watchdog Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** SWC_PSR - ** - ** Bit#7 : TESTB - ** - 0 = (not allowed) - ** - 1 = (always write "1" to this bit) - ** - ** Bit#6-2 : (reserved) - ** - ** Bit#1-0 : SWDS[2:0] - ** - 0 = SWDGOGCLK = PCLK0 - ** - 1 = SWDGOGCLK = PCLK0 / 2 - ** - 2 = SWDGOGCLK = PCLK0 / 4 - ** - 3 = SWDGOGCLK = PCLK0 / 8 - ******************************************************************************/ -#define SWC_PSR_Val 0x00000003 // <<< Define SWC_PSR here - -/** - ****************************************************************************** - ** \brief Trace Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** TTC_PSR - ** - ** Bit#7-1 : (reserved) - ** - ** Bit#0 : TTC - ** - 0 = TPIUCLK = HCLK - ** - 1 = TPIUCLK = HCLK / 2 - ******************************************************************************/ -#define TTC_PSR_Val 0x00000000 // <<< Define TTC_PSR here - -/** - ****************************************************************************** - ** \brief Clock Stabilization Wait Time Register value definition - ** (USER SETTING) - ** - ** CSW_TMR - ** - ** Bit#7 : (reserved) - ** - ** Bit#6-4 : SOWT[2:0] - ** - 0 = ~10.3 ms (default) - ** - 1 = ~20.5 ms - ** - 2 = ~41 ms - ** - 3 = ~82 ms - ** - 4 = ~164 ms - ** - 5 = ~327 ms - ** - 6 = ~655 ms - ** - 7 = ~1.31 s - ** - ** Bit#3-0 : MOWT[3:0] - ** - 0 = ~500 ns (default) - ** - 1 = ~8 us - ** - 2 = ~16 us - ** - 3 = ~32 us - ** - 4 = ~64 us - ** - 5 = ~128 us - ** - 6 = ~256 us - ** - 7 = ~512 us - ** - 8 = ~1.0 ms - ** - 9 = ~2.0 ms - ** - 10 = ~4.0 ms - ** - 11 = ~8.0 ms - ** - 12 = ~33.0 ms - ** - 13 = ~131 ms - ** - 14 = ~524 ms - ** - 15 = ~2.0 s - ******************************************************************************/ -#define CSW_TMR_Val 0x0000005C // <<< Define CSW_TMR here - -/** - ****************************************************************************** - ** \brief PLL Clock Stabilization Wait Time Setup Register value definition - ** (USER SETTING) - ** - ** PSW_TMR - ** - ** Bit#7-5 : (reserved) - ** - ** Bit#4 : PINC - ** - 0 = Selects CLKMO (main oscillation) (default) - ** - 1 = (setting diabled) - ** - ** Bit#3 : (reserved) - ** - ** Bit#2-0 : POWT[2:0] - ** - 0 = ~128 us (default) - ** - 1 = ~256 us - ** - 2 = ~512 us - ** - 3 = ~1.02 ms - ** - 4 = ~2.05 ms - ** - 5 = ~4.10 ms - ** - 6 = ~8.20 ms - ** - 7 = ~16.40 ms - ******************************************************************************/ -#define PSW_TMR_Val 0x00000000 // <<< Define PSW_TMR here - -/** - ****************************************************************************** - ** \brief PLL Control Register 1 value definition - ** (USER SETTING) - ** - ** PLL_CTL1 - ** - ** Bit#7-4 : PLLK[3:0] - ** - 0 = Division(PLLK) = 1/1 (default) - ** - 1 = Division(PLLK) = 1/2 - ** - 2 = Division(PLLK) = 1/3 - ** - . . . - ** - 15 = Division(PLLK) = 1/16 - ** - ** Bit#3-0 : PLLM[3:0] - ** - 0 = Division(PLLM) = 1/1 (default) - ** - 1 = Division(PLLM) = 1/2 - ** - 2 = Division(PLLM) = 1/3 - ** - . . . - ** - 15 = Division(PLLM) = 1/16 - ******************************************************************************/ -#define PLL_CTL1_Val 0x00000000 // <<< Define PLL_CTL1 here - -/** - ****************************************************************************** - ** \brief PLL Control Register 2 value definition - ** (USER SETTING) - ** - ** PLL_CTL2 - ** - ** Bit#7-6 : (reserved) - ** - ** Bit#5-0 : PLLN[5:0] - ** - 0 = Division(PLLN) = 1/1 (default) - ** - 1 = Division(PLLN) = 1/2 - ** - 2 = Division(PLLN) = 1/3 - ** - . . . - ** - 63 = Division(PLLN) = 1/64 - ******************************************************************************/ -#define PLL_CTL2_Val 0x00000013 // <<< Define PLL_CTL2 here - -/** - ****************************************************************************** - ** \brief Hardware Watchdog disable definition - ** (USER SETTING) - ** - ** - 0 = Hardware Watchdog enable - ** - 1 = Hardware Watchdog disable - ******************************************************************************/ -#define HWWD_DISABLE 1 // <<< Define HW Watach dog enable here - -/** - ****************************************************************************** - ** \brief Trimming CR - ** (USER SETTING) - ** - ** - 0 = CR is not trimmed at startup - ** - 1 = CR is trimmed at startup - ******************************************************************************/ -#define CR_TRIM_SETUP 1 // <<< Define CR trimming at startup enable here - - -/******************************************************************************/ -/* */ -/* END OF USER SETTINGS HERE */ -/* ========================= */ -/* */ -/******************************************************************************/ - -/******************************************************************************/ -/* Device dependent System Clock absolute maximum ranges */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Internal High-Speed CR Oscillator Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKHC ( 4000000UL) /* Internal 4MHz CR Oscillator */ - -/** - ****************************************************************************** - ** \brief Internal Low-Speed CR Oscillator Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKLC ( 100000UL) /* Internal 100KHz CR Oscillator */ - -/** - ****************************************************************************** - ** \brief Any case minimum Main Clock frequency (in Hz, [value]UL) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKMOMIN ( 4000000UL) - -/** - ****************************************************************************** - ** \brief Maximum Main Clock frequency using external clock - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKMOMAX ( 48000000UL) - -/** - ****************************************************************************** - ** \brief Any case minimum Sub Clock frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKSOMIN ( 32000UL) - -/** - ****************************************************************************** - ** \brief Maximum Sub Clock frequency using external clock - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKSOMAX ( 100000UL) - -/** - ****************************************************************************** - ** \brief Absolute minimum PLL input frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKINMIN ( 4000000UL) - -/** - ****************************************************************************** - ** \brief Absolute maximum PLL input frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKINMAX ( 30000000UL) - -/** - ****************************************************************************** - ** \brief Absolute minimum PLL oscillation frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKMIN ( 60000000UL) - -/** - ****************************************************************************** - ** \brief Absolute maximum PLL oscillation frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKMAX (120000000UL) - -/** - ****************************************************************************** - ** \brief Absolute maximum System Clock frequency (HCLK) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __HCLKMAX ( 80000000UL) - -/** - ****************************************************************************** - ** \brief Preprocessor macro for checking range (clock settings) - ******************************************************************************/ -#define CHECK_RANGE(val, min, max) ((val < min) || (val > max)) - -/** - ****************************************************************************** - ** \brief Preprocessor macro for checking bits with mask (clock settings) - ******************************************************************************/ -#define CHECK_RSVD(val, mask) (val & mask) - - -/******************************************************************************/ -/* Check register settings */ -/******************************************************************************/ -#if (CHECK_RSVD((SCM_CTL_Val), ~0x000000FA)) - #error "SCM_CTL: Invalid values of reserved bits!" -#endif - -#if ((SCM_CTL_Val & 0xE0) == 0x40) && ((SCM_CTL_Val & 0x10) != 0x10) - #error "SCM_CTL: CLKPLL is selected but PLL is not enabled!" -#endif - -#if (CHECK_RSVD((CSW_TMR_Val), ~0x0000007F)) - #error "CSW_TMR: Invalid values of reserved bits!" -#endif - -#if ((SCM_CTL_Val & 0x10)) /* if PLL is used */ - #if (CHECK_RSVD((PSW_TMR_val), ~0x00000007)) - #error "PSW_TMR: Invalid values of reserved bits!" - #endif - - #if (CHECK_RSVD((PLL_CTL1_Val), ~0x000000FF)) - #error "PLL_CTL1: Invalid values of reserved bits!" - #endif - - #if (CHECK_RSVD((PLL_CTL2_Val), ~0x0000003F)) - #error "PLL_CTL2: Invalid values of reserved bits!" - #endif -#endif - -#if (CHECK_RSVD((BSC_PSR_Val), ~0x00000007)) - #error "BSC_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC0_PSR_Val), ~0x00000003)) - #error "APBC0_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC1_PSR_Val), ~0x00000083)) - #error "APBC1_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC2_PSR_Val), ~0x00000083)) - #error "APBC2_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((SWC_PSR_Val), ~0x00000003)) - #error "SWC_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((TTC_PSR_Val), ~0x00000001)) - #error "TTC_PSR: Invalid values of reserved bits!" -#endif - -/******************************************************************************/ -/* Define clocks with checking settings */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Calculate PLL K factor from settings - ******************************************************************************/ -#define __PLLK (((PLL_CTL1_Val >> 4) & 0x0F) + 1) - -/** - ****************************************************************************** - ** \brief Calculate PLL N factor from settings - ******************************************************************************/ -#define __PLLN (((PLL_CTL2_Val ) & 0x1F) + 1) - -/** - ****************************************************************************** - ** \brief Calculate PLL M factor from settings - ******************************************************************************/ -#define __PLLM (((PLL_CTL1_Val ) & 0x0F) + 1) - -/** - ****************************************************************************** - ** \brief Calculate PLL output frequency from settings - ******************************************************************************/ -#define __PLLCLK ((__CLKMO * __PLLN) / __PLLK) - -/******************************************************************************/ -/* Determine core clock frequency according to settings */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Define Master Clock from settings - ******************************************************************************/ -#if (((SCM_CTL_Val >> 5) & 0x07) == 0) - #define __MASTERCLK (__CLKHC) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 1) - #define __MASTERCLK (__CLKMO) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 2) - #define __MASTERCLK (__PLLCLK) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 4) - #define __MASTERCLK (__CLKLC) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 5) - #define __MASTERCLK (__CLKSO) -#else - #define __MASTERCLK (0UL) -#endif - -/** - ****************************************************************************** - ** \brief Define System Clock Frequency (Core Clock) from settings - ******************************************************************************/ -#if ((BSC_PSR_Val & 0x07) == 0) - #define __HCLK (__MASTERCLK / 1) -#elif ((BSC_PSR_Val & 0x07) == 1) - #define __HCLK (__MASTERCLK / 2) -#elif ((BSC_PSR_Val & 0x07) == 2) - #define __HCLK (__MASTERCLK / 3) -#elif ((BSC_PSR_Val & 0x07) == 3) - #define __HCLK (__MASTERCLK / 4) -#elif ((BSC_PSR_Val & 0x07) == 4) - #define __HCLK (__MASTERCLK / 6) -#elif ((BSC_PSR_Val & 0x07) == 5) - #define __HCLK (__MASTERCLK / 8) -#elif ((BSC_PSR_Val & 0x07) == 6) - #define __HCLK (__MASTERCLK /16) -#else - #define __HCLK (0UL) -#endif - -/******************************************************************************/ -/* HCLK range check */ -/******************************************************************************/ -#if (CHECK_RANGE(__CLKMO, __CLKMOMIN, __CLKMOMAX) != 0) - #error "Main Oscillator Clock (CLKMO) out of range!" -#endif - -#if (CHECK_RANGE(__CLKSO, __CLKSOMIN, __CLKSOMAX) != 0) - #error "Sub Oscillator Clock (CLKMO) out of range!" -#endif - -#if (CHECK_RANGE((__CLKMO / __PLLK), __PLLCLKINMIN, __PLLCLKINMAX) != 0) - #error "PLL input frequency out of range!" -#endif - -#if (CHECK_RANGE(((__CLKMO * __PLLN * __PLLM) / __PLLK), __PLLCLKMIN, __PLLCLKMAX) != 0) - #error "PLL oscillation frequency out of range!" -#endif - -#if (CHECK_RANGE(__HCLK, 0, __HCLKMAX) != 0) - #error "System Clock (HCLK) out of range!" -#endif - -/******************************************************************************/ -/* Global function prototypes ('extern', definition in C source) */ -/******************************************************************************/ - -extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) - -extern void SystemInit (void); // Initialize the system - -extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable - -#ifdef __cplusplus -} -#endif - -#endif /* __SYSTEM_MB9BF50X_H */ diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S deleted file mode 100644 index 3d163aa6dd..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S +++ /dev/null @@ -1,327 +0,0 @@ -;/************************************************************************/ -;/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -;/* */ -;/* The following software deliverable is intended for and must only be */ -;/* used for reference and in an evaluation laboratory environment. */ -;/* It is provided on an as-is basis without charge and is subject to */ -;/* alterations. */ -;/* It is the user's obligation to fully test the software in its */ -;/* environment and to ensure proper functionality, qualification and */ -;/* compliance with component specifications. */ -;/* */ -;/* In the event the software deliverable includes the use of open */ -;/* source components, the provisions of the governing open source */ -;/* license agreement shall apply with respect to such software */ -;/* deliverable. */ -;/* FSEU does not warrant that the deliverables do not infringe any */ -;/* third party intellectual property right (IPR). In the event that */ -;/* the deliverables infringe a third party IPR it is the sole */ -;/* responsibility of the customer to obtain necessary licenses to */ -;/* continue the usage of the deliverable. */ -;/* */ -;/* To the maximum extent permitted by applicable law FSEU disclaims all */ -;/* warranties, whether express or implied, in particular, but not */ -;/* limited to, warranties of merchantability and fitness for a */ -;/* particular purpose for which the deliverable is not designated. */ -;/* */ -;/* To the maximum extent permitted by applicable law, FSEU's liability */ -;/* is restricted to intentional misconduct and gross negligence. */ -;/* FSEU is not liable for consequential damages. */ -;/* */ -;/* (V1.5) */ -;/************************************************************************/ -;/* Startup for ARM */ -;/* Version V1.02 */ -;/* Date 2011-01-12 */ -;/* Target-mcu MB9B5xx */ -;/************************************************************************/ - -; Stack Configuration -; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> - -Stack_Size EQU 0x00000200 - - AREA STACK, NOINIT, READWRITE, ALIGN=3 -Stack_Mem SPACE Stack_Size -__initial_sp - - -; Heap Configuration -; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> - -Heap_Size EQU 0x00000000 - - AREA HEAP, NOINIT, READWRITE, ALIGN=3 -__heap_base -Heap_Mem SPACE Heap_Size -__heap_limit - - - PRESERVE8 - THUMB - - -; Vector Table Mapped to Address 0 at Reset - - AREA RESET, DATA, READONLY - EXPORT __Vectors - EXPORT __Vectors_End - EXPORT __Vectors_Size - -__Vectors DCD __initial_sp ; Top of Stack - DCD Reset_Handler ; Reset Handler - DCD NMI_Handler ; NMI Handler - DCD HardFault_Handler ; Hard Fault Handler - DCD MemManage_Handler ; MPU Fault Handler - DCD BusFault_Handler ; Bus Fault Handler - DCD UsageFault_Handler ; Usage Fault Handler - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall Handler - DCD DebugMon_Handler ; Debug Monitor Handler - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV Handler - DCD SysTick_Handler ; SysTick Handler - - DCD CSV_Handler ; 0: Clock Super Visor - DCD SWDT_Handler ; 1: Software Watchdog Timer - DCD LVD_Handler ; 2: Low Voltage Detector - DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF - DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 - DCD INT8_15_Handler ; 5: External Interrupt Request ch.8 to ch.15 - DCD DT_Handler ; 6: Dual Timer / Quad Decoder - DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 - DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 - DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 - DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 - DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 - DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 - DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 - DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 - DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 - DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 - DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 - DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 - DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 - DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 - DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 - DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 - DCD PPG_Handler ; 23: PPG - DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter - DCD ADC0_IRQHandler ; 25: ADC0 - DCD ADC1_IRQHandler ; 26: ADC1 - DCD ADC2_IRQHandler ; 27: ADC2 - DCD MFT_FRT_IRQHandler ; 28: Free-run Timer - DCD MFT_IPC_IRQHandler ; 29: Input Capture - DCD MFT_OPC_IRQHandler ; 30: Output Compare - DCD BT_IRQHandler ; 31: Base Timer ch.0 to ch.7 - DCD CAN0_IRQHandler ; 32: CAN ch.0 - DCD CAN1_IRQHandler ; 33: CAN ch.1 - DCD USBF_Handler ; 34: USB Function - DCD USB_Handler ; 35: USB Function / USB HOST - DCD DummyHandler ; 36: Reserved - DCD DummyHandler ; 37: Reserved - DCD DMAC0_Handler ; 38: DMAC ch.0 - DCD DMAC1_Handler ; 39: DMAC ch.1 - DCD DMAC2_Handler ; 40: DMAC ch.2 - DCD DMAC3_Handler ; 41: DMAC ch.3 - DCD DMAC4_Handler ; 42: DMAC ch.4 - DCD DMAC5_Handler ; 43: DMAC ch.5 - DCD DMAC6_Handler ; 44: DMAC ch.6 - DCD DMAC7_Handler ; 45: DMAC ch.7 - DCD DummyHandler ; 46: Reserved - DCD DummyHandler ; 47: Reserved -__Vectors_End - -__Vectors_Size EQU __Vectors_End - __Vectors - - AREA |.text|, CODE, READONLY - - -; Reset Handler - -Reset_Handler PROC - EXPORT Reset_Handler [WEAK] - IMPORT SystemInit - IMPORT __main - LDR R0, =SystemInit - BLX R0 - LDR R0, =__main - BX R0 - ENDP - - -; Dummy Exception Handlers (infinite loops which can be modified) - -NMI_Handler PROC - EXPORT NMI_Handler [WEAK] - B . - ENDP -HardFault_Handler\ - PROC - EXPORT HardFault_Handler [WEAK] - B . - ENDP -MemManage_Handler\ - PROC - EXPORT MemManage_Handler [WEAK] - B . - ENDP -BusFault_Handler\ - PROC - EXPORT BusFault_Handler [WEAK] - B . - ENDP -UsageFault_Handler\ - PROC - EXPORT UsageFault_Handler [WEAK] - B . - ENDP -SVC_Handler PROC - EXPORT SVC_Handler [WEAK] - B . - ENDP -DebugMon_Handler\ - PROC - EXPORT DebugMon_Handler [WEAK] - B . - ENDP -PendSV_Handler PROC - EXPORT PendSV_Handler [WEAK] - B . - ENDP -SysTick_Handler PROC - EXPORT SysTick_Handler [WEAK] - B . - ENDP - -Default_Handler PROC - - EXPORT CSV_Handler [WEAK] - EXPORT SWDT_Handler [WEAK] - EXPORT LVD_Handler [WEAK] - EXPORT MFT_WG_IRQHandler [WEAK] - EXPORT INT0_7_Handler [WEAK] - EXPORT INT8_15_Handler [WEAK] - EXPORT DT_Handler [WEAK] - EXPORT MFS0RX_IRQHandler [WEAK] - EXPORT MFS0TX_IRQHandler [WEAK] - EXPORT MFS1RX_IRQHandler [WEAK] - EXPORT MFS1TX_IRQHandler [WEAK] - EXPORT MFS2RX_IRQHandler [WEAK] - EXPORT MFS2TX_IRQHandler [WEAK] - EXPORT MFS3RX_IRQHandler [WEAK] - EXPORT MFS3TX_IRQHandler [WEAK] - EXPORT MFS4RX_IRQHandler [WEAK] - EXPORT MFS4TX_IRQHandler [WEAK] - EXPORT MFS5RX_IRQHandler [WEAK] - EXPORT MFS5TX_IRQHandler [WEAK] - EXPORT MFS6RX_IRQHandler [WEAK] - EXPORT MFS6TX_IRQHandler [WEAK] - EXPORT MFS7RX_IRQHandler [WEAK] - EXPORT MFS7TX_IRQHandler [WEAK] - EXPORT PPG_Handler [WEAK] - EXPORT TIM_IRQHandler [WEAK] - EXPORT ADC0_IRQHandler [WEAK] - EXPORT ADC1_IRQHandler [WEAK] - EXPORT ADC2_IRQHandler [WEAK] - EXPORT MFT_FRT_IRQHandler [WEAK] - EXPORT MFT_IPC_IRQHandler [WEAK] - EXPORT MFT_OPC_IRQHandler [WEAK] - EXPORT BT_IRQHandler [WEAK] - EXPORT CAN0_IRQHandler [WEAK] - EXPORT CAN1_IRQHandler [WEAK] - EXPORT USBF_Handler [WEAK] - EXPORT USB_Handler [WEAK] - EXPORT DMAC0_Handler [WEAK] - EXPORT DMAC1_Handler [WEAK] - EXPORT DMAC2_Handler [WEAK] - EXPORT DMAC3_Handler [WEAK] - EXPORT DMAC4_Handler [WEAK] - EXPORT DMAC5_Handler [WEAK] - EXPORT DMAC6_Handler [WEAK] - EXPORT DMAC7_Handler [WEAK] - EXPORT DummyHandler [WEAK] - -CSV_Handler -SWDT_Handler -LVD_Handler -MFT_WG_IRQHandler -INT0_7_Handler -INT8_15_Handler -DT_Handler -MFS0RX_IRQHandler -MFS0TX_IRQHandler -MFS1RX_IRQHandler -MFS1TX_IRQHandler -MFS2RX_IRQHandler -MFS2TX_IRQHandler -MFS3RX_IRQHandler -MFS3TX_IRQHandler -MFS4RX_IRQHandler -MFS4TX_IRQHandler -MFS5RX_IRQHandler -MFS5TX_IRQHandler -MFS6RX_IRQHandler -MFS6TX_IRQHandler -MFS7RX_IRQHandler -MFS7TX_IRQHandler -PPG_Handler -TIM_IRQHandler -ADC0_IRQHandler -ADC1_IRQHandler -ADC2_IRQHandler -MFT_FRT_IRQHandler -MFT_IPC_IRQHandler -MFT_OPC_IRQHandler -BT_IRQHandler -CAN0_IRQHandler -CAN1_IRQHandler -USBF_Handler -USB_Handler -DMAC0_Handler -DMAC1_Handler -DMAC2_Handler -DMAC3_Handler -DMAC4_Handler -DMAC5_Handler -DMAC6_Handler -DMAC7_Handler -DummyHandler - - B . - - ENDP - - - ALIGN - - -; User Initial Stack & Heap - - IF :DEF:__MICROLIB - - EXPORT __initial_sp - EXPORT __heap_base - EXPORT __heap_limit - - ELSE - - IMPORT __use_two_region_memory - EXPORT __user_initial_stackheap -__user_initial_stackheap - - LDR R0, = Heap_Mem - LDR R1, =(Stack_Mem + Stack_Size) - LDR R2, = (Heap_Mem + Heap_Size) - LDR R3, = Stack_Mem - BX LR - - ALIGN - - ENDIF - - - END diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S deleted file mode 100644 index 72981f1edb..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S +++ /dev/null @@ -1,290 +0,0 @@ -/**************************************************************************//** - * @file startup_.s - * @brief CMSIS Cortex-M# Core Device Startup File for - * Device - * @version V3.01 - * @date 06. March 2012 - * - * @note Version CodeSourcery Sourcery G++ Lite (with CS3) - * Copyright (C) 2012 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ -/* -//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------ -*/ - - -/* -// Stack Configuration -// Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> -// -*/ - - .equ Stack_Size, 0x00000400 - .section ".stack", "w" - .align 3 - .globl __cs3_stack_mem - .globl __cs3_stack_size -__cs3_stack_mem: - .if Stack_Size - .space Stack_Size - .endif - .size __cs3_stack_mem, . - __cs3_stack_mem - .set __cs3_stack_size, . - __cs3_stack_mem - - -/* -// Heap Configuration -// Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> -// -*/ - - .equ Heap_Size, 0x00000100 - - .section ".heap", "w" - .align 3 - .globl __cs3_heap_start - .globl __cs3_heap_end -__cs3_heap_start: - .if Heap_Size - .space Heap_Size - .endif -__cs3_heap_end: - - -/* Vector Table */ - - .section ".cs3.interrupt_vector" - .globl __cs3_interrupt_vector_cortex_m - .type __cs3_interrupt_vector_cortex_m, %object - -__cs3_interrupt_vector_cortex_m: - .long __cs3_stack /* Top of Stack */ - .long __cs3_reset /* Reset Handler */ - .long NMI_Handler /* NMI Handler */ - .long HardFault_Handler /* Hard Fault Handler */ - .long MemManage_Handler /* MPU Fault Handler */ - .long BusFault_Handler /* Bus Fault Handler */ - .long UsageFault_Handler /* Usage Fault Handler */ - .long 0 /* Reserved */ - .long 0 /* Reserved */ - .long 0 /* Reserved */ - .long 0 /* Reserved */ - .long SVC_Handler /* SVCall Handler */ - .long DebugMon_Handler /* Debug Monitor Handler */ - .long 0 /* Reserved */ - .long PendSV_Handler /* PendSV Handler */ - .long SysTick_Handler /* SysTick Handler */ - - /* External Interrupts */ -/* ToDo: Add here the vectors for the device specific external interrupts handler */ - .long CSV_Handler /* 0: Clock Super Visor */ - .long SWDT_Handler /* 1: Software Watchdog Timer */ - .long LVD_Handler /* 2: Low Voltage Detector */ - .long MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ - .long INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ - .long INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ - .long DT_Handler /* 6: Dual Timer / Quad Decoder */ - .long MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ - .long MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ - .long MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ - .long MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ - .long MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ - .long MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ - .long MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ - .long MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ - .long MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ - .long MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ - .long MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ - .long MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ - .long MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ - .long MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ - .long MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ - .long MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ - .long PPG_Handler /* 23: PPG */ - .long TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ - .long ADC0_IRQHandler /* 25: ADC0 */ - .long ADC1_IRQHandler /* 26: ADC1 */ - .long ADC2_IRQHandler /* 27: ADC2 */ - .long MFT_FRT_IRQHandler /* 28: Free-run Timer */ - .long MFT_IPC_IRQHandler /* 29: Input Capture */ - .long MFT_OPC_IRQHandler /* 30: Output Compare */ - .long BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ - .long CAN0_IRQHandler /* 32: CAN ch.0 */ - .long CAN1_IRQHandler /* 33: CAN ch.1 */ - .long USBF_Handler /* 34: USB Function */ - .long USB_Handler /* 35: USB Function / USB HOST */ - .long RESERVED_1_IRQHandler /* 36: Reserved */ - .long RESERVED_2_IRQHandler /* 37: Reserved */ - .long DMAC0_Handler /* 38: DMAC ch.0 */ - .long DMAC1_Handler /* 39: DMAC ch.1 */ - .long DMAC2_Handler /* 40: DMAC ch.2 */ - .long DMAC3_Handler /* 41: DMAC ch.3 */ - .long DMAC4_Handler /* 42: DMAC ch.4 */ - .long DMAC5_Handler /* 43: DMAC ch.5 */ - .long DMAC6_Handler /* 44: DMAC ch.6 */ - .long DMAC7_Handler /* 45: DMAC ch.7 */ - .long RESERVED_3_IRQHandler /* 46: Reserved */ - .long RESERVED_4_IRQHandler /* 47: Reserved */ - - .size __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m - - - .thumb - - -/* Reset Handler */ - - .section .cs3.reset,"x",%progbits - .thumb_func - .globl __cs3_reset_cortex_m - .globl _start - .type __cs3_reset_cortex_m, %function -__cs3_reset_cortex_m: -_start: - .fnstart - LDR R0, =SystemInit - BLX R0 - LDR R0,=_start - BX R0 - .pool - .cantunwind - .fnend - .size __cs3_reset_cortex_m,.-__cs3_reset_cortex_m - - .section ".text" - -/* Exception Handlers */ - - .weak NMI_Handler - .type NMI_Handler, %function -NMI_Handler: - B . - .size NMI_Handler, . - NMI_Handler - - .weak HardFault_Handler - .type HardFault_Handler, %function -HardFault_Handler: - B . - .size HardFault_Handler, . - HardFault_Handler - - .weak MemManage_Handler - .type MemManage_Handler, %function -MemManage_Handler: - B . - .size MemManage_Handler, . - MemManage_Handler - - .weak BusFault_Handler - .type BusFault_Handler, %function -BusFault_Handler: - B . - .size BusFault_Handler, . - BusFault_Handler - - .weak UsageFault_Handler - .type UsageFault_Handler, %function -UsageFault_Handler: - B . - .size UsageFault_Handler, . - UsageFault_Handler - - .weak SVC_Handler - .type SVC_Handler, %function -SVC_Handler: - B . - .size SVC_Handler, . - SVC_Handler - - .weak DebugMon_Handler - .type DebugMon_Handler, %function -DebugMon_Handler: - B . - .size DebugMon_Handler, . - DebugMon_Handler - - .weak PendSV_Handler - .type PendSV_Handler, %function -PendSV_Handler: - B . - .size PendSV_Handler, . - PendSV_Handler - - .weak SysTick_Handler - .type SysTick_Handler, %function -SysTick_Handler: - B . - .size SysTick_Handler, . - SysTick_Handler - - -/* IRQ Handlers */ - -/* ToDo: Add here the export definition for the device specific external interrupts handler */ -/* ToDo: Add here the names for the device specific external interrupts handler */ - .globl Default_Handler - .type Default_Handler, %function -Default_Handler: - B . - .size Default_Handler, . - Default_Handler - - .macro IRQ handler - .weak \handler - .set \handler, Default_Handler - .endm - - IRQ CSV_Handler /* 0: Clock Super Visor */ - IRQ SWDT_Handler /* 1: Software Watchdog Timer */ - IRQ LVD_Handler /* 2: Low Voltage Detector */ - IRQ MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ - IRQ INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ - IRQ INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ - IRQ DT_Handler /* 6: Dual Timer / Quad Decoder */ - IRQ MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ - IRQ MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ - IRQ MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ - IRQ MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ - IRQ MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ - IRQ MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ - IRQ MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ - IRQ MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ - IRQ MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ - IRQ MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ - IRQ MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ - IRQ MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ - IRQ MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ - IRQ MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ - IRQ MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ - IRQ MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ - IRQ PPG_Handler /* 23: PPG */ - IRQ TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ - IRQ ADC0_IRQHandler /* 25: ADC0 */ - IRQ ADC1_IRQHandler /* 26: ADC1 */ - IRQ ADC2_IRQHandler /* 27: ADC2 */ - IRQ MFT_FRT_IRQHandler /* 28: Free-run Timer */ - IRQ MFT_IPC_IRQHandler /* 29: Input Capture */ - IRQ MFT_OPC_IRQHandler /* 30: Output Compare */ - IRQ BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ - IRQ CAN0_IRQHandler /* 32: CAN ch.0 */ - IRQ CAN1_IRQHandler /* 33: CAN ch.1 */ - IRQ USBF_Handler /* 34: USB Function */ - IRQ USB_Handler /* 35: USB Function / USB HOST */ - IRQ RESERVED_1_IRQHandler /* 36: Reserved */ - IRQ RESERVED_2_IRQHandler /* 37: Reserved */ - IRQ DMAC0_Handler /* 38: DMAC ch.0 */ - IRQ DMAC1_Handler /* 39: DMAC ch.1 */ - IRQ DMAC2_Handler /* 40: DMAC ch.2 */ - IRQ DMAC3_Handler /* 41: DMAC ch.3 */ - IRQ DMAC4_Handler /* 42: DMAC ch.4 */ - IRQ DMAC5_Handler /* 43: DMAC ch.5 */ - IRQ DMAC6_Handler /* 44: DMAC ch.6 */ - IRQ DMAC7_Handler /* 45: DMAC ch.7 */ - IRQ RESERVED_3_IRQHandler /* 46: Reserved */ - IRQ RESERVED_4_IRQHandler /* 47: Reserved */ - - .end diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S deleted file mode 100644 index 9ac63778f5..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S +++ /dev/null @@ -1,402 +0,0 @@ -;/************************************************************************/ -;/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -;/* */ -;/* The following software deliverable is intended for and must only be */ -;/* used for reference and in an evaluation laboratory environment. */ -;/* It is provided on an as-is basis without charge and is subject to */ -;/* alterations. */ -;/* It is the user's obligation to fully test the software in its */ -;/* environment and to ensure proper functionality, qualification and */ -;/* compliance with component specifications. */ -;/* */ -;/* In the event the software deliverable includes the use of open */ -;/* source components, the provisions of the governing open source */ -;/* license agreement shall apply with respect to such software */ -;/* deliverable. */ -;/* FSEU does not warrant that the deliverables do not infringe any */ -;/* third party intellectual property right (IPR). In the event that */ -;/* the deliverables infringe a third party IPR it is the sole */ -;/* responsibility of the customer to obtain necessary licenses to */ -;/* continue the usage of the deliverable. */ -;/* */ -;/* To the maximum extent permitted by applicable law FSEU disclaims all */ -;/* warranties, whether express or implied, in particular, but not */ -;/* limited to, warranties of merchantability and fitness for a */ -;/* particular purpose for which the deliverable is not designated. */ -;/* */ -;/* To the maximum extent permitted by applicable law, FSEU's liability */ -;/* is restricted to intentional misconduct and gross negligence. */ -;/* FSEU is not liable for consequential damages. */ -;/* */ -;/* (V1.5) */ -;/************************************************************************/ -;/* Startup for IAR */ -;/* Version V1.02 */ -;/* Date 2011-01-05 */ -;/* Target-mcu MB9B5xx */ -;/************************************************************************/ - - - MODULE ?cstartup - - ;; Forward declaration of sections. - SECTION CSTACK:DATA:NOROOT(3) - - SECTION .intvec:CODE:NOROOT(2) - - EXTERN __iar_program_start - EXTERN SystemInit - PUBLIC __vector_table - - DATA -__vector_table DCD sfe(CSTACK) ; Top of Stack - DCD Reset_Handler ; Reset - DCD NMI_Handler ; NMI - DCD HardFault_Handler ; Hard Fault - DCD MemManage_Handler ; MPU Fault - DCD BusFault_Handler ; Bus Fault - DCD UsageFault_Handler ; Usage Fault - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall - DCD DebugMon_Handler ; Debug Monitor - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV - DCD SysTick_Handler ; SysTick - - DCD CSV_Handler ; 0: Clock Super Visor - DCD SWDT_Handler ; 1: Software Watchdog Timer - DCD LVD_Handler ; 2: Low Voltage Detector - DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF - DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 - DCD INT8_15_Handler ; 5: External Interrupt Request ch.8 to ch.15 - DCD DT_Handler ; 6: Dual Timer / Quad Decoder - DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 - DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 - DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 - DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 - DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 - DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 - DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 - DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 - DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 - DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 - DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 - DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 - DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 - DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 - DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 - DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 - DCD PPG_Handler ; 23: PPG - DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter - DCD ADC0_IRQHandler ; 25: ADC0 - DCD ADC1_IRQHandler ; 26: ADC1 - DCD ADC2_IRQHandler ; 27: ADC2 - DCD MFT_FRT_IRQHandler ; 28: Free-run Timer - DCD MFT_IPC_IRQHandler ; 29: Input Capture - DCD MFT_OPC_IRQHandler ; 30: Output Compare - DCD BT_IRQHandler ; 31: Base Timer ch.0 to ch.7 - DCD CAN0_IRQHandler ; 32: CAN ch.0 - DCD CAN1_IRQHandler ; 33: CAN ch.1 - DCD USBF_Handler ; 34: USB Function - DCD USB_Handler ; 35: USB Function / USB HOST - DCD DummyHandler ; 36: Reserved - DCD DummyHandler ; 37: Reserved - DCD DMAC0_Handler ; 38: DMAC ch.0 - DCD DMAC1_Handler ; 39: DMAC ch.1 - DCD DMAC2_Handler ; 40: DMAC ch.2 - DCD DMAC3_Handler ; 41: DMAC ch.3 - DCD DMAC4_Handler ; 42: DMAC ch.4 - DCD DMAC5_Handler ; 43: DMAC ch.5 - DCD DMAC6_Handler ; 44: DMAC ch.6 - DCD DMAC7_Handler ; 45: DMAC ch.7 - DCD DummyHandler ; 46: Reserved - DCD DummyHandler ; 47: Reserved - - THUMB -; Dummy Exception Handlers (infinite loops which can be modified) - - PUBWEAK Reset_Handler - SECTION .text:CODE:REORDER(2) -Reset_Handler - LDR R0, =SystemInit - BLX R0 - LDR R0, =__iar_program_start - BX R0 - - PUBWEAK NMI_Handler - SECTION .text:CODE:REORDER(1) -NMI_Handler - B NMI_Handler - - PUBWEAK HardFault_Handler - SECTION .text:CODE:REORDER(1) -HardFault_Handler - B HardFault_Handler - - PUBWEAK MemManage_Handler - SECTION .text:CODE:REORDER(1) -MemManage_Handler - B MemManage_Handler - - PUBWEAK BusFault_Handler - SECTION .text:CODE:REORDER(1) -BusFault_Handler - B BusFault_Handler - - PUBWEAK UsageFault_Handler - SECTION .text:CODE:REORDER(1) -UsageFault_Handler - B UsageFault_Handler - - PUBWEAK SVC_Handler - SECTION .text:CODE:REORDER(1) -SVC_Handler - B SVC_Handler - - PUBWEAK DebugMon_Handler - SECTION .text:CODE:REORDER(1) -DebugMon_Handler - B DebugMon_Handler - - PUBWEAK PendSV_Handler - SECTION .text:CODE:REORDER(1) -PendSV_Handler - B PendSV_Handler - - PUBWEAK SysTick_Handler - SECTION .text:CODE:REORDER(1) -SysTick_Handler - B SysTick_Handler - - - - PUBWEAK CSV_Handler - SECTION .text:CODE:REORDER(1) -CSV_Handler - B CSV_Handler - - PUBWEAK SWDT_Handler - SECTION .text:CODE:REORDER(1) -SWDT_Handler - B SWDT_Handler - - PUBWEAK LVD_Handler - SECTION .text:CODE:REORDER(1) -LVD_Handler - B LVD_Handler - - PUBWEAK MFT_WG_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_WG_IRQHandler - B MFT_WG_IRQHandler - - PUBWEAK INT0_7_Handler - SECTION .text:CODE:REORDER(1) -INT0_7_Handler - B INT0_7_Handler - - PUBWEAK INT8_15_Handler - SECTION .text:CODE:REORDER(1) -INT8_15_Handler - B INT8_15_Handler - - PUBWEAK DT_Handler - SECTION .text:CODE:REORDER(1) -DT_Handler - B DT_Handler - - PUBWEAK MFS0RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS0RX_IRQHandler - B MFS0RX_IRQHandler - - PUBWEAK MFS0TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS0TX_IRQHandler - B MFS0TX_IRQHandler - - PUBWEAK MFS1RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS1RX_IRQHandler - B MFS1RX_IRQHandler - - PUBWEAK MFS1TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS1TX_IRQHandler - B MFS1TX_IRQHandler - - PUBWEAK MFS2RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS2RX_IRQHandler - B MFS2RX_IRQHandler - - PUBWEAK MFS2TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS2TX_IRQHandler - B MFS2TX_IRQHandler - - PUBWEAK MFS3RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS3RX_IRQHandler - B MFS3RX_IRQHandler - - PUBWEAK MFS3TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS3TX_IRQHandler - B MFS3TX_IRQHandler - - PUBWEAK MFS4RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS4RX_IRQHandler - B MFS4RX_IRQHandler - - PUBWEAK MFS4TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS4TX_IRQHandler - B MFS4TX_IRQHandler - - PUBWEAK MFS5RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS5RX_IRQHandler - B MFS5RX_IRQHandler - - PUBWEAK MFS5TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS5TX_IRQHandler - B MFS5TX_IRQHandler - - PUBWEAK MFS6RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS6RX_IRQHandler - B MFS6RX_IRQHandler - - PUBWEAK MFS6TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS6TX_IRQHandler - B MFS6TX_IRQHandler - - PUBWEAK MFS7RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS7RX_IRQHandler - B MFS7RX_IRQHandler - - PUBWEAK MFS7TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS7TX_IRQHandler - B MFS7TX_IRQHandler - - PUBWEAK PPG_Handler - SECTION .text:CODE:REORDER(1) -PPG_Handler - B PPG_Handler - - PUBWEAK TIM_IRQHandler - SECTION .text:CODE:REORDER(1) -TIM_IRQHandler - B TIM_IRQHandler - - PUBWEAK ADC0_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC0_IRQHandler - B ADC0_IRQHandler - - PUBWEAK ADC1_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC1_IRQHandler - B ADC1_IRQHandler - - PUBWEAK ADC2_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC2_IRQHandler - B ADC2_IRQHandler - - PUBWEAK MFT_FRT_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_FRT_IRQHandler - B MFT_FRT_IRQHandler - - PUBWEAK MFT_IPC_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_IPC_IRQHandler - B MFT_IPC_IRQHandler - - PUBWEAK MFT_OPC_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_OPC_IRQHandler - B MFT_OPC_IRQHandler - - PUBWEAK BT_IRQHandler - SECTION .text:CODE:REORDER(1) -BT_IRQHandler - B BT_IRQHandler - - PUBWEAK CAN0_IRQHandler - SECTION .text:CODE:REORDER(1) -CAN0_IRQHandler - B CAN0_IRQHandler - - PUBWEAK CAN1_IRQHandler - SECTION .text:CODE:REORDER(1) -CAN1_IRQHandler - B CAN1_IRQHandler - - PUBWEAK USBF_Handler - SECTION .text:CODE:REORDER(1) -USBF_Handler - B USBF_Handler - - PUBWEAK USB_Handler - SECTION .text:CODE:REORDER(1) -USB_Handler - B USB_Handler - - PUBWEAK DMAC0_Handler - SECTION .text:CODE:REORDER(1) -DMAC0_Handler - B DMAC0_Handler - - - PUBWEAK DMAC1_Handler - SECTION .text:CODE:REORDER(1) -DMAC1_Handler - B DMAC1_Handler - - PUBWEAK DMAC2_Handler - SECTION .text:CODE:REORDER(1) -DMAC2_Handler - B DMAC2_Handler - - PUBWEAK DMAC3_Handler - SECTION .text:CODE:REORDER(1) -DMAC3_Handler - B DMAC3_Handler - - PUBWEAK DMAC4_Handler - SECTION .text:CODE:REORDER(1) -DMAC4_Handler - B DMAC4_Handler - - PUBWEAK DMAC5_Handler - SECTION .text:CODE:REORDER(1) -DMAC5_Handler - B DMAC5_Handler - - PUBWEAK DMAC6_Handler - SECTION .text:CODE:REORDER(1) -DMAC6_Handler - B DMAC6_Handler - - PUBWEAK DMAC7_Handler - SECTION .text:CODE:REORDER(1) -DMAC7_Handler - B DMAC7_Handler - - PUBWEAK DummyHandler - SECTION .text:CODE:REORDER(1) -DummyHandler - B DummyHandler - - END diff --git a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c b/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c deleted file mode 100644 index 6ccf1ff957..0000000000 --- a/bsp/mb9bf506r/libraries/Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c +++ /dev/null @@ -1,202 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ - -#include "mcu.h" - -/** \file system_mb9bf50x.c - ** - ** FM3 system initialization functions - ** All adjustments can be done in belonging header file. - ** - ** History: - ** 2011-05-16 V1.0 MWi original version - ******************************************************************************/ - -/** - ****************************************************************************** - ** System Clock Frequency (Core Clock) Variable according CMSIS - ******************************************************************************/ -uint32_t SystemCoreClock = __HCLK; - -/** - ****************************************************************************** - ** \brief Update the System Core Clock with current core Clock retrieved from - ** cpu registers. - ** \param none - ** \return none - ******************************************************************************/ -void SystemCoreClockUpdate (void) { - uint32_t masterClk; - uint32_t u32RegisterRead; // Workaround variable for MISRA C rule conformance - - switch ((FM3_CRG->SCM_CTL >> 5) & 0x07) { - case 0: /* internal High-speed Cr osc. */ - masterClk = __CLKHC; - break; - - case 1: /* external main osc. */ - masterClk = __CLKMO; - break; - - case 2: /* PLL clock */ - // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) - // violation: - // "Unordered accesses to a volatile location" - u32RegisterRead = (__CLKMO * (((FM3_CRG->PLL_CTL2) & 0x1F) + 1)); - masterClk = (u32RegisterRead / (((FM3_CRG->PLL_CTL1 >> 4) & 0x0F) + 1)); - break; - - case 4: /* internal Low-speed CR osc. */ - masterClk = __CLKLC; - break; - - case 5: /* external Sub osc. */ - masterClk = __CLKSO; - break; - - default: - masterClk = 0Ul; - break; - } - - switch (FM3_CRG->BSC_PSR & 0x07) { - case 0: - SystemCoreClock = masterClk; - break; - - case 1: - SystemCoreClock = masterClk / 2; - break; - - case 2: - SystemCoreClock = masterClk / 3; - break; - - case 3: - SystemCoreClock = masterClk / 4; - break; - - case 4: - SystemCoreClock = masterClk / 6; - break; - - case 5: - SystemCoreClock = masterClk /8; - break; - - case 6: - SystemCoreClock = masterClk /16; - break; - - default: - SystemCoreClock = 0Ul; - break; - } - -} - -/** - ****************************************************************************** - ** \brief Setup the microcontroller system. Initialize the System and update - ** the SystemCoreClock variable. - ** - ** \param none - ** \return none - ******************************************************************************/ -void SystemInit (void) { - - static uint32_t u32IoRegisterRead; // Workaround variable for MISRA C rule conformance - -#if (HWWD_DISABLE) /* HW Watchdog Disable */ - FM3_HWWDT->WDG_LCK = 0x1ACCE551; /* HW Watchdog Unlock */ - FM3_HWWDT->WDG_LCK = 0xE5331AAE; - FM3_HWWDT->WDG_CTL = 0; /* HW Watchdog stop */ -#endif - -#if (CLOCK_SETUP) /* Clock Setup */ - FM3_CRG->BSC_PSR = BSC_PSR_Val; /* set System Clock presacaler */ - FM3_CRG->APBC0_PSR = APBC0_PSR_Val; /* set APB0 presacaler */ - FM3_CRG->APBC1_PSR = APBC1_PSR_Val; /* set APB1 presacaler */ - FM3_CRG->APBC2_PSR = APBC2_PSR_Val; /* set APB2 presacaler */ - FM3_CRG->SWC_PSR = SWC_PSR_Val | (1UL << 7); /* set SW Watchdog presacaler */ - FM3_CRG->TTC_PSR = TTC_PSR_Val; /* set Trace Clock presacaler */ - - FM3_CRG->CSW_TMR = CSW_TMR_Val; /* set oscillation stabilization wait time */ - - if (SCM_CTL_Val & (1UL << 1)) { /* Main clock oscillator enabled ? */ - FM3_CRG->SCM_CTL |= (1UL << 1); /* enable main oscillator */ - while (!(FM3_CRG->SCM_STR & (1UL << 1))); /* wait for Main clock oscillation stable */ - } - - if (SCM_CTL_Val & (1UL << 3)) { /* Sub clock oscillator enabled ? */ - FM3_CRG->SCM_CTL |= (1UL << 3); /* enable sub oscillator */ - while (!(FM3_CRG->SCM_STR & (1UL << 3))); /* wait for Sub clock oscillation stable */ - } - - FM3_CRG->PSW_TMR = PSW_TMR_Val; /* set PLL stabilization wait time */ - FM3_CRG->PLL_CTL1 = PLL_CTL1_Val; /* set PLLM and PLLK */ - FM3_CRG->PLL_CTL2 = PLL_CTL2_Val; /* set PLLN */ - - if (SCM_CTL_Val & (1UL << 4)) { /* PLL enabled ? */ - FM3_CRG->SCM_CTL |= (1UL << 4); /* enable PLL */ - while (!(FM3_CRG->SCM_STR & (1UL << 4))); /* wait for PLL stable */ - } - - FM3_CRG->SCM_CTL |= (SCM_CTL_Val & 0xE0); /* Set Master Clock switch */ - - // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) - // violations: - // "Unordered reads and writes to or from same location" and - // "Unordered accesses to a volatile location" - do - { - u32IoRegisterRead = (FM3_CRG->SCM_CTL & 0xE0); - }while ((FM3_CRG->SCM_STR & 0xE0) != u32IoRegisterRead); -#endif // (CLOCK_SETUP) - -#if (CR_TRIM_SETUP) - /* CR Trimming Data */ - if( 0x000003FF != (FM3_FLASH_IF->CRTRMM & 0x000003FF) ) - { - /* UnLock (MCR_FTRM) */ - FM3_CRTRIM->MCR_RLR = 0x1ACCE554; - /* Set MCR_FTRM */ - FM3_CRTRIM->MCR_FTRM = FM3_FLASH_IF->CRTRMM; - /* Lock (MCR_FTRM) */ - FM3_CRTRIM->MCR_RLR = 0x00000000; - } -#endif // (CR_TRIM_SETUP) -} - - - diff --git a/bsp/mb9bf506r/libraries/SConscript b/bsp/mb9bf506r/libraries/SConscript deleted file mode 100644 index a0fa5ca72d..0000000000 --- a/bsp/mb9bf506r/libraries/SConscript +++ /dev/null @@ -1,23 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = GetCurrentDir() -src = Glob('*.c') -src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c'] - -# add for startup script -if rtconfig.CROSS_TOOL == 'gcc': - src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S'] -elif rtconfig.CROSS_TOOL == 'keil': - src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S'] -elif rtconfig.CROSS_TOOL == 'iar': - src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S'] - -CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include'] - -CPPPATH += [cwd + '/CMSIS/Include'] - -group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf506r/project.ewp b/bsp/mb9bf506r/project.ewp deleted file mode 100644 index a258e109b6..0000000000 --- a/bsp/mb9bf506r/project.ewp +++ /dev/null @@ -1,1945 +0,0 @@ - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 20 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 26 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 11 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 20 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 26 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 11 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - Applications - - $PROJ_DIR$\applications\application.c - - - $PROJ_DIR$\applications\startup.c - - - - CMSIS - - $PROJ_DIR$\libraries\Device\FUJISTU\MB9BF50x\Source\system_mb9bf50x.c - - - $PROJ_DIR$\libraries\Device\FUJISTU\MB9BF50x\Source\IAR\startup_mb9bf50x.S - - - - Compiler - - $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c - - - $PROJ_DIR$\..\..\components\libc\compilers\common\time.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c - - - - CPU - - $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - - - $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - - - $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c - - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c - - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S - - - - DeviceDrivers - - $PROJ_DIR$\..\..\components\drivers\ipc\dataqueue.c - - - $PROJ_DIR$\..\..\components\drivers\ipc\ringblk_buf.c - - - $PROJ_DIR$\..\..\components\drivers\ipc\pipe.c - - - $PROJ_DIR$\..\..\components\drivers\ipc\ringbuffer.c - - - $PROJ_DIR$\..\..\components\drivers\ipc\waitqueue.c - - - $PROJ_DIR$\..\..\components\drivers\ipc\completion.c - - - $PROJ_DIR$\..\..\components\drivers\ipc\workqueue.c - - - $PROJ_DIR$\..\..\components\drivers\serial\serial.c - - - - Drivers - - $PROJ_DIR$\drivers\fm3_uart.c - - - $PROJ_DIR$\drivers\led.c - - - $PROJ_DIR$\drivers\nand.c - - - $PROJ_DIR$\drivers\board.c - - - - Finsh - - $PROJ_DIR$\..\..\components\finsh\shell.c - - - $PROJ_DIR$\..\..\components\finsh\msh.c - - - - Kernel - - $PROJ_DIR$\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\src\mem.c - - - $PROJ_DIR$\..\..\src\idle.c - - - $PROJ_DIR$\..\..\src\memheap.c - - - $PROJ_DIR$\..\..\src\irq.c - - - $PROJ_DIR$\..\..\src\object.c - - - $PROJ_DIR$\..\..\src\components.c - - - $PROJ_DIR$\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\src\thread.c - - - $PROJ_DIR$\..\..\src\clock.c - - - $PROJ_DIR$\..\..\src\timer.c - - - $PROJ_DIR$\..\..\src\device.c - - - $PROJ_DIR$\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\src\scheduler.c - - - - POSIX - - - utestcases - - diff --git a/bsp/mb9bf506r/project.eww b/bsp/mb9bf506r/project.eww deleted file mode 100644 index c2cb02eb1e..0000000000 --- a/bsp/mb9bf506r/project.eww +++ /dev/null @@ -1,10 +0,0 @@ - - - - - $WS_DIR$\project.ewp - - - - - diff --git a/bsp/mb9bf506r/project.uvproj b/bsp/mb9bf506r/project.uvproj deleted file mode 100644 index 8eaab29744..0000000000 --- a/bsp/mb9bf506r/project.uvproj +++ /dev/null @@ -1,697 +0,0 @@ - - - 1.1 -
### uVision Project, (C) Keil Software
- - - rtthread-fm3 - 0x4 - ARM-ADS - - - MB9BF506R - Fujitsu Semiconductors - IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") - - "Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") - UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000) - 5216 - MB9BF506R.h - - - - - - - - - - SFD\Fujitsu\MB9B500\MB9BF506R.SFR - 0 - - - - Fujitsu\MB9B500\ - Fujitsu\MB9B500\ - - 0 - 0 - 0 - 0 - 1 - - .\build\ - rtthread-stm32 - 1 - 0 - 0 - 1 - 0 - .\build\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM3 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM3 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 0 - 1 - 1 - 1 - 0 - 1 - - 0 - 7 - - - - - - - - - - - - - - Segger\JL2CM3.dll - - - - - 1 - 0 - 0 - 1 - 1 - 4099 - - Segger\JL2CM3.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - "Cortex-M3" - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x8000 - - - 1 - 0x0 - 0x80000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x80000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x8000 - - - 0 - 0x1fff8000 - 0x8000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - applications;.;libraries\Device\FUJISTU\MB9BF50x\Include;libraries\CMSIS\Include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 1 - 0 - 0x08000000 - 0x20000000 - - - - - - - - - - - - Applications - - - application.c - 1 - applications\application.c - - - - - startup.c - 1 - applications\startup.c - - - - - CMSIS - - - startup_mb9bf50x.S - 2 - libraries\Device\FUJISTU\MB9BF50x\Source\ARM\startup_mb9bf50x.S - - - - - system_mb9bf50x.c - 1 - libraries\Device\FUJISTU\MB9BF50x\Source\system_mb9bf50x.c - - - - - Compiler - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - - - - time.c - 1 - ..\..\components\libc\compilers\common\time.c - - - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - - - - CPU - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - - - - showmem.c - 1 - ..\..\libcpu\arm\common\showmem.c - - - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m3\context_rvds.S - - - - - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m3\cpuport.c - - - - - DeviceDrivers - - - ringbuffer.c - 1 - ..\..\components\drivers\ipc\ringbuffer.c - - - - - completion.c - 1 - ..\..\components\drivers\ipc\completion.c - - - - - ringblk_buf.c - 1 - ..\..\components\drivers\ipc\ringblk_buf.c - - - - - dataqueue.c - 1 - ..\..\components\drivers\ipc\dataqueue.c - - - - - pipe.c - 1 - ..\..\components\drivers\ipc\pipe.c - - - - - workqueue.c - 1 - ..\..\components\drivers\ipc\workqueue.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\ipc\waitqueue.c - - - - - serial.c - 1 - ..\..\components\drivers\serial\serial.c - - - - - Drivers - - - led.c - 1 - drivers\led.c - - - - - board.c - 1 - drivers\board.c - - - - - nand.c - 1 - drivers\nand.c - - - - - fm3_uart.c - 1 - drivers\fm3_uart.c - - - - - Finsh - - - shell.c - 1 - ..\..\components\finsh\shell.c - - - - - msh.c - 1 - ..\..\components\finsh\msh.c - - - - - Kernel - - - components.c - 1 - ..\..\src\components.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - memheap.c - 1 - ..\..\src\memheap.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - object.c - 1 - ..\..\src\object.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - clock.c - 1 - ..\..\src\clock.c - - - - - - -
diff --git a/bsp/mb9bf506r/rtconfig.h b/bsp/mb9bf506r/rtconfig.h deleted file mode 100644 index b7b675ab20..0000000000 --- a/bsp/mb9bf506r/rtconfig.h +++ /dev/null @@ -1,179 +0,0 @@ -/* RT-Thread config file */ -#ifndef __RTTHREAD_CFG_H__ -#define __RTTHREAD_CFG_H__ - -// - -// -#define RT_NAME_MAX 8 -// -#define RT_ALIGN_SIZE 8 -// -// 8 -// 32 -// 256 -// -#define RT_THREAD_PRIORITY_MAX 32 -// -#define RT_TICK_PER_SECOND 100 -//
-// #define RT_DEBUG -// -// #define RT_THREAD_DEBUG -// -#define RT_USING_OVERFLOW_CHECK -//
- -// -#define RT_USING_HOOK -//
-// #define RT_USING_TIMER_SOFT -// -#define RT_TIMER_THREAD_PRIO 8 -// -#define RT_TIMER_THREAD_STACK_SIZE 512 -// -#define RT_TIMER_TICK_PER_SECOND 10 -//
- -//
-// -#define RT_USING_SEMAPHORE -// -#define RT_USING_MUTEX -// -#define RT_USING_EVENT -// -#define RT_USING_MAILBOX -// -#define RT_USING_MESSAGEQUEUE -//
- -//
-// -#define RT_USING_MEMPOOL -// -#define RT_USING_MEMHEAP -// -#define RT_USING_HEAP -// -#define RT_USING_SMALL_MEM -// -// #define RT_USING_SLAB -//
- -//
-#define RT_USING_DEVICE -// -#define RT_USING_DEVICE_IPC -// -#define RT_USING_SERIAL -#define RT_SERIAL_USING_DMA -// -#define RT_USING_UART0_0 -// -// #define RT_USING_UART0_1 -// -// #define RT_USING_UART1_0 -// -// #define RT_USING_UART1_1 -// -// #define RT_USING_UART2_0 -// -// #define RT_USING_UART2_1 -// -// #define RT_USING_UART2_2 -// -// #define RT_USING_UART3_0 -// -// #define RT_USING_UART3_1 -// -// #define RT_USING_UART3_2 -// -// #define RT_USING_UART4_0 -// -// #define RT_USING_UART4_1 -// -#define RT_USING_UART4_2 -// -// #define RT_USING_UART5_0 -// -// #define RT_USING_UART5_1 -// -// #define RT_USING_UART5_2 -// -// #define RT_USING_UART6_0 -// -// #define RT_USING_UART6_1 -// -#define RT_USING_UART7_0 -// -// #define RT_USING_UART7_1 -// -#define RT_UART_RX_BUFFER_SIZE 64 -//
- -//
-#define RT_USING_CONSOLE -// -#define RT_CONSOLEBUF_SIZE 128 -// -#define RT_CONSOLE_DEVICE_NAME "uart0" -//
- -// -#define RT_USING_COMPONENTS_INIT -//
-#define RT_USING_FINSH -// -#define FINSH_USING_SYMTAB -// -#define FINSH_USING_DESCRIPTION -// -#define FINSH_THREAD_STACK_SIZE 4096 -//
- -//
-// -// #define RT_USING_NEWLIB -// -// #define RT_USING_PTHREADS -//
- -//
-// #define RT_USING_DFS -// -// #define DFS_USING_WORKDIR -// -#define DFS_FILESYSTEMS_MAX 2 -// -#define DFS_FD_MAX 4 -// -#define RT_USING_DFS_ELMFAT -// -// 1 -// 2 -// -#define RT_DFS_ELM_USE_LFN 1 -// -#define RT_DFS_ELM_MAX_LFN 64 -// -// #define RT_USING_DFS_YAFFS2 -// -// #define RT_USING_DFS_UFFS -// -// #define RT_USING_DFS_DEVFS -// -// #define RT_USING_DFS_NFS -// -#define RT_NFS_HOST_EXPORT "192.168.1.5:/" -//
- -// -// #define RT_USING_CMSIS_OS -// -// #define RT_USING_BSP_CMSIS - -//
- -#endif diff --git a/bsp/mb9bf506r/rtconfig.py b/bsp/mb9bf506r/rtconfig.py deleted file mode 100644 index d8b525f291..0000000000 --- a/bsp/mb9bf506r/rtconfig.py +++ /dev/null @@ -1,121 +0,0 @@ -import os - -# toolchains options -ARCH='arm' -CPU='cortex-m3' -CROSS_TOOL='iar' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -# cross_tool provides the cross compiler -# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' -elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = 'C:/Keil' -elif CROSS_TOOL == 'iar': - PLATFORM = 'iar' - EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation' - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -if PLATFORM == 'gcc': - # toolchains - PREFIX = 'arm-none-eabi-' - CC = PREFIX + 'gcc' - AS = PREFIX + 'gcc' - AR = PREFIX + 'ar' - LINK = PREFIX + 'gcc' - TARGET_EXT = 'elf' - SIZE = PREFIX + 'size' - OBJDUMP = PREFIX + 'objdump' - OBJCPY = PREFIX + 'objcopy' - - DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' - CFLAGS = DEVICE - AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' - LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-mb9bf506.ld -nostartfiles' - - CPATH = '' - LPATH = '' - - if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' - else: - CFLAGS += ' -O2' - - POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --device DARMSTM' - CFLAGS = DEVICE + ' --apcs=interwork' - AFLAGS = DEVICE - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-fm3.map --scatter rtthread-mb9bf506.sct' - - CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' - LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' - - EXEC_PATH += '/arm/bin40/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' - -elif PLATFORM == 'iar': - # toolchains - CC = 'iccarm' - AS = 'iasmarm' - AR = 'iarchive' - LINK = 'ilinkarm' - TARGET_EXT = 'out' - - CFLAGS = '' - CFLAGS += ' --diag_suppress Pa050' - CFLAGS += ' --no_cse' - CFLAGS += ' --no_unroll' - CFLAGS += ' --no_inline' - CFLAGS += ' --no_code_motion' - CFLAGS += ' --no_tbaa' - CFLAGS += ' --no_clustering' - CFLAGS += ' --no_scheduling' - CFLAGS += ' --debug' - CFLAGS += ' --endian=little' - CFLAGS += ' --cpu=Cortex-M3' - CFLAGS += ' -e' - CFLAGS += ' --fpu=None' - CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' - CFLAGS += ' -Ol' - CFLAGS += ' --use_c++_inline' - - AFLAGS = '' - AFLAGS += ' -s+' - AFLAGS += ' -w+' - AFLAGS += ' -r' - AFLAGS += ' --cpu Cortex-M3' - AFLAGS += ' --fpu None' - AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"' - - LFLAGS = ' --config rtthread-mb9bf506.icf' - LFLAGS += ' --semihosting' - LFLAGS += ' --entry __iar_program_start' - - EXEC_PATH = EXEC_PATH + '/arm/bin/' - POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec' diff --git a/bsp/mb9bf506r/rtthread-mb9bf506.icf b/bsp/mb9bf506r/rtthread-mb9bf506.icf deleted file mode 100644 index 66b859d099..0000000000 --- a/bsp/mb9bf506r/rtthread-mb9bf506.icf +++ /dev/null @@ -1,34 +0,0 @@ -/*###ICF### Section handled by ICF editor, don't touch! ****/ -/*-Editor annotation file-*/ -/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ -/*-Specials-*/ -define symbol __ICFEDIT_intvec_start__ = 0x00000000; -/*-Memory Regions-*/ -define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; -define symbol __ICFEDIT_region_ROM_end__ = 0x0007FFFF; -define symbol __ICFEDIT_region_RAM_start__ = 0x1FFF8000; -define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF; -/*-Sizes-*/ -define symbol __ICFEDIT_size_cstack__ = 0x400; -define symbol __ICFEDIT_size_heap__ = 0; -/**** End of ICF editor section. ###ICF###*/ - - -define memory mem with size = 4G; -define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; -define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; - -define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; -define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; - -initialize by copy { readwrite }; -do not initialize { section .noinit }; - -keep { section FSymTab }; -keep { section VSymTab }; - -place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; - -place in ROM_region { readonly }; -place in RAM_region { readwrite, - block CSTACK, block HEAP }; \ No newline at end of file diff --git a/bsp/mb9bf506r/rtthread-mb9bf506.ld b/bsp/mb9bf506r/rtthread-mb9bf506.ld deleted file mode 100644 index 644c891306..0000000000 --- a/bsp/mb9bf506r/rtthread-mb9bf506.ld +++ /dev/null @@ -1,221 +0,0 @@ -/* Linker script to configure memory regions - * - * Version:CodeSourcery Sourcery G++ Lite 2007q3-53 - * BugURL:https://support.codesourcery.com/GNUToolchain/ - * - * Copyright 2007 CodeSourcery. - * - * 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(_start) -SEARCH_DIR(.) - -MEMORY -{ - rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00080000 /* 512k */ - ram (rwx) : ORIGIN = 0x1FFF8000, LENGTH = 0x00010000 /* 32k */ -} - -/* These force the linker to search for particular symbols from - * the start of the link process and thus ensure the user's - * overrides are picked up - */ -EXTERN(__cs3_reset_cortex_m) -EXTERN(__cs3_interrupt_vector_cortex_m) -EXTERN(__cs3_start_c main __cs3_stack __cs3_stack_size __cs3_heap_end) - -PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram); -PROVIDE(__cs3_stack_size = __cs3_region_start_ram + __cs3_region_size_ram - _end); -PROVIDE(__cs3_heap_start = _end); -PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); - -SECTIONS -{ - .text : - { - CREATE_OBJECT_SYMBOLS - __cs3_region_start_rom = .; - *(.cs3.region-head.rom) - __cs3_interrupt_vector = __cs3_interrupt_vector_cortex_m; - *(.cs3.interrupt_vector) - /* Make sure we pulled in an interrupt vector. */ - ASSERT (. != __cs3_interrupt_vector_cortex_m, "No interrupt vector"); - *(.rom) - *(.rom.b) - - __cs3_reset = __cs3_reset_cortex_m; - *(.cs3.reset) - /* Make sure we pulled in some reset code. */ - ASSERT (. != __cs3_reset, "No reset code"); - - *(.text .text.* .gnu.linkonce.t.*) - *(.plt) - *(.gnu.warning) - *(.glue_7t) *(.glue_7) *(.vfp11_veneer) - - *(.rodata .rodata.* .gnu.linkonce.r.*) - - *(.ARM.extab* .gnu.linkonce.armextab.*) - *(.gcc_except_table) - *(.eh_frame_hdr) - *(.eh_frame) - - . = ALIGN(4); - KEEP(*(.init)) - - . = ALIGN(4); - __preinit_array_start = .; - KEEP (*(.preinit_array)) - __preinit_array_end = .; - - . = ALIGN(4); - __init_array_start = .; - KEEP (*(SORT(.init_array.*))) - KEEP (*(.init_array)) - __init_array_end = .; - - . = ALIGN(0x4); - KEEP (*crtbegin.o(.ctors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*crtend.o(.ctors)) - - . = ALIGN(4); - KEEP(*(.fini)) - - . = ALIGN(4); - __fini_array_start = .; - KEEP (*(.fini_array)) - KEEP (*(SORT(.fini_array.*))) - __fini_array_end = .; - - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*crtend.o(.dtors)) - - . = ALIGN(4); - __cs3_regions = .; - LONG (0) - LONG (__cs3_region_init_ram) - LONG (__cs3_region_start_ram) - LONG (__cs3_region_init_size_ram) - LONG (__cs3_region_zero_size_ram) - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - - } - - /* .ARM.exidx is sorted, so has to go in its own output section. */ - __exidx_start = .; - .ARM.exidx : - { - *(.ARM.exidx* .gnu.linkonce.armexidx.*) - } >rom - __exidx_end = .; - .text.align : - { - . = ALIGN(8); - _etext = .; - } >rom - __cs3_region_size_rom = LENGTH(rom); - __cs3_region_num = 1; - - .data : - { - __cs3_region_start_ram = .; - *(.cs3.region-head.ram) - KEEP(*(.jcr)) - *(.got.plt) *(.got) - *(.shdata) - *(.data .data.* .gnu.linkonce.d.*) - *(.ram) - . = ALIGN (8); - _edata = .; - } >ram AT>rom - - .bss : - { - *(.shbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - *(.ram.b) - . = ALIGN (8); - _end = .; - __end = .; - } >ram AT>rom - - .heap : - { - *(.heap) - } >ram - - __bss_end = .; - - .stack (__cs3_stack - __cs3_stack_size) : - { - *(.stack) - } >ram - - __cs3_region_init_ram = LOADADDR (.data); - __cs3_region_init_size_ram = _edata - __cs3_region_start_ram; - __cs3_region_zero_size_ram = _end - _edata; - __cs3_region_size_ram = LENGTH(ram); - __cs3_region_num = 1; - - .stab 0 (NOLOAD) : { *(.stab) } - .stabstr 0 (NOLOAD) : { *(.stabstr) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } - .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/bsp/mb9bf506r/rtthread-mb9bf506.sct b/bsp/mb9bf506r/rtthread-mb9bf506.sct deleted file mode 100644 index 6a8744246a..0000000000 --- a/bsp/mb9bf506r/rtthread-mb9bf506.sct +++ /dev/null @@ -1,15 +0,0 @@ -; ************************************************************* -; *** Scatter-Loading Description File generated by uVision *** -; ************************************************************* - -LR_IROM1 0x00000000 0x00080000 { ; load region size_region - ER_IROM1 0x00000000 0x00080000 { ; load address = execution address - *.o (RESET, +First) - *(InRoot$$Sections) - .ANY (+RO) - } - RW_IRAM1 0x20000000 0x00008000 { ; RW data - .ANY (+RW +ZI) - } -} - diff --git a/bsp/mb9bf506r/template.ewp b/bsp/mb9bf506r/template.ewp deleted file mode 100644 index 40100eb5cb..0000000000 --- a/bsp/mb9bf506r/template.ewp +++ /dev/null @@ -1,1739 +0,0 @@ - - - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 20 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 26 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 11 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 20 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 26 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 11 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - - diff --git a/bsp/mb9bf506r/template.uvproj b/bsp/mb9bf506r/template.uvproj deleted file mode 100644 index 137c045dea..0000000000 --- a/bsp/mb9bf506r/template.uvproj +++ /dev/null @@ -1,388 +0,0 @@ - - - - 1.1 - -
### uVision Project, (C) Keil Software
- - - - rtthread-fm3 - 0x4 - ARM-ADS - - - MB9BF506R - Fujitsu Semiconductors - IRAM(0x20000000-0x20007FFF) IRAM2(0x1FFF8000-0x1FFFFFFF) IROM(0x00000000-0x0007FFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") - - "Startup\Fujitsu\MB9B500\startup_MB9BF50x.s" ("Fujitsu MB9BF50x Startup Code") - UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx06_512 -FS00 -FL080000) - 5216 - MB9BF506R.h - - - - - - - - - - SFD\Fujitsu\MB9B500\MB9BF506R.SFR - 0 - - - - Fujitsu\MB9B500\ - Fujitsu\MB9B500\ - - 0 - 0 - 0 - 0 - 1 - - .\build\ - rtthread-stm32 - 1 - 0 - 0 - 1 - 0 - .\build\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM3 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM3 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 0 - 1 - 1 - 1 - 0 - 1 - - 0 - 7 - - - - - - - - - - - - - - Segger\JL2CM3.dll - - - - - 1 - 0 - 0 - 1 - 1 - 4099 - - Segger\JL2CM3.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - "Cortex-M3" - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x8000 - - - 1 - 0x0 - 0x80000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x80000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x8000 - - - 0 - 0x1fff8000 - 0x8000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 1 - 0 - 0x08000000 - 0x20000000 - - - - - - - - - - - - -
diff --git a/bsp/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s b/bsp/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s deleted file mode 100644 index 416a56f41d..0000000000 --- a/bsp/mb9bf568r/CMSIS/DeviceSupport/arm/startup_mb9bf56xr.s +++ /dev/null @@ -1,584 +0,0 @@ -;******************************************************************************* -; Copyright (C) 2013 Spansion LLC. All Rights Reserved. -; -; This software is owned and published by: -; Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). -; -; BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND -; BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. -; -; This software contains source code for use with Spansion -; components. This software is licensed by Spansion to be adapted only -; for use in systems utilizing Spansion components. Spansion shall not be -; responsible for misuse or illegal use of this software for devices not -; supported herein. Spansion is providing this software "AS IS" and will -; not be responsible for issues arising from incorrect user implementation -; of the software. -; -; SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, -; REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), -; ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, -; WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED -; WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED -; WARRANTY OF NONINFRINGEMENT. -; SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, -; NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT -; LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, -; LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR -; INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, -; INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, -; SAVINGS OR PROFITS, -; EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -; YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR -; INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED -; FROM, THE SOFTWARE. -; -; This software may be replicated in part or whole for the licensed use, -; with the restriction that this Disclaimer and Copyright notice must be -; included with each copy of this software, whether used in part or whole, -; at all times. -; - -; Stack Configuration -; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> - -Stack_Size EQU 0x00000400 - - AREA STACK, NOINIT, READWRITE, ALIGN=3 -Stack_Mem SPACE Stack_Size -__initial_sp - - -; Heap Configuration -; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> - -Heap_Size EQU 0x00000200 - - AREA HEAP, NOINIT, READWRITE, ALIGN=3 -__heap_base -Heap_Mem SPACE Heap_Size -__heap_limit - - - PRESERVE8 - THUMB - - -; Vector Table Mapped to Address 0 at Reset - - AREA RESET, DATA, READONLY - EXPORT __Vectors - EXPORT __Vectors_End - EXPORT __Vectors_Size - -__Vectors DCD __initial_sp ; Top of Stack - DCD Reset_Handler ; Reset Handler - DCD NMI_Handler ; NMI Handler - DCD HardFault_Handler ; Hard Fault Handler - DCD MemManage_Handler ; MPU Fault Handler - DCD BusFault_Handler ; Bus Fault Handler - DCD UsageFault_Handler ; Usage Fault Handler - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall Handler - DCD DebugMon_Handler ; Debug Monitor Handler - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV Handler - DCD SysTick_Handler ; SysTick Handler - -; Numbered IRQ handler vectors - -; Note: renaming to device dependent ISR function names are done in -; pdl.h (section "IRQ name definition for all type MCUs" - - DCD CSV_IRQHandler - DCD SWDT_IRQHandler - DCD LVD_IRQHandler - DCD IRQ003SEL_IRQHandler - DCD IRQ004SEL_IRQHandler - DCD IRQ005SEL_IRQHandler - DCD IRQ006SEL_IRQHandler - DCD IRQ007SEL_IRQHandler - DCD IRQ008SEL_IRQHandler - DCD IRQ009SEL_IRQHandler - DCD IRQ010SEL_IRQHandler - DCD EXINT0_IRQHandler - DCD EXINT1_IRQHandler - DCD EXINT2_IRQHandler - DCD EXINT3_IRQHandler - DCD EXINT4_IRQHandler - DCD EXINT5_IRQHandler - DCD EXINT6_IRQHandler - DCD EXINT7_IRQHandler - DCD QPRC0_IRQHandler - DCD QPRC1_IRQHandler - DCD WFG0_DTIF0_IRQHandler - DCD WFG1_DTIF1_IRQHandler - DCD WFG2_DTIF2_IRQHandler - DCD FRT0_PEAK_IRQHandler - DCD FRT0_ZERO_IRQHandler - DCD ICU0_IRQHandler - DCD OCU0_IRQHandler - DCD FRT1_PEAK_IRQHandler - DCD FRT1_ZERO_IRQHandler - DCD ICU1_IRQHandler - DCD OCU1_IRQHandler - DCD FRT2_PEAK_IRQHandler - DCD FRT2_ZERO_IRQHandler - DCD ICU2_IRQHandler - DCD OCU2_IRQHandler - DCD PPG00_02_04_IRQHandler - DCD PPG08_10_12_IRQHandler - DCD PPG16_18_20_IRQHandler - DCD BT0_IRQHandler - DCD BT1_IRQHandler - DCD BT2_IRQHandler - DCD BT3_IRQHandler - DCD BT4_IRQHandler - DCD BT5_IRQHandler - DCD BT6_IRQHandler - DCD BT7_IRQHandler - DCD DT1_2_IRAHandler - DCD WC_IRQHandler - DCD EXTBUS_ERR_Handler - DCD RTC_IRQHandler - DCD EXTINT8_IRQHandler - DCD EXTINT9_IRQHandler - DCD EXTINT10_IRQHandler - DCD EXTINT11_IRQHandler - DCD EXTINT12_IRQHandler - DCD EXTINT13_IRQHandler - DCD EXTINT14_IRQHandler - DCD EXTINT15_IRQHandler - DCD TIM_IRQHandler - DCD MFS0_RX_IRQHandler - DCD MFS0_TX_IRQHandler - DCD MFS1_RX_IRQHandler - DCD MFS1_TX_IRQHandler - DCD MFS2_RX_IRQHandler - DCD MFS2_TX_IRQHandler - DCD MFS3_RX_IRQHandler - DCD MFS3_TX_IRQHandler - DCD MFS4_RX_IRQHandler - DCD MFS4_TX_IRQHandler - DCD MFS5_RX_IRQHandler - DCD MFS5_TX_IRQHandler - DCD MFS6_RX_IRQHandler - DCD MFS6_TX_IRQHandler - DCD MFS7_RX_IRQHandler - DCD MFS7_TX_IRQHandler - DCD ADC0_IRQHandler - DCD ADC1_IRQHandler - DCD USB0_IRQHandler - DCD USB0_HOST_IRQHandler - DCD CAN0_IRQHandler - DCD CAN1_IRQHandler - DCD ETHER0_IRQHandler - DCD DMAC0_IRQHandler - DCD DMAC1_IRQHandler - DCD DMAC2_IRQHandler - DCD DMAC3_IRQHandler - DCD DMAC4_IRQHandler - DCD DMAC5_IRQHandler - DCD DMAC6_IRQHandler - DCD DMAC7_IRQHandler - DCD DSTC_IRQHandler - DCD EXINT16_17_18_19_IRQHandler - DCD EXINT20_21_22_23_IRQHandler - DCD EXINT24_25_26_27_IRQHandler - DCD EXINT28_29_30_31_IRQHandler - DCD QPRC2_IRQHandler - DCD QPRC3_IRQHandler - DCD BT8_IRQHandler - DCD BT9_IRQHandler - DCD BT10_IRQHandler - DCD BT11_IRQHandler - DCD BT12_15_IRQHandler - DCD MFS8_RX_IRQHandler - DCD MFS8_TX_IRQHandler - DCD MFS9_RX_IRQHandler - DCD MFS9_TX_IRQHandler - DCD MFS10_RX_IRQHandler - DCD MFS10_TX_IRQHandler - DCD MFS11_RX_IRQHandler - DCD MFS11_TX_IRQHandler - DCD ADC2_IRQHandler - DCD Dummy - DCD USB1_IRQHandler - DCD USB1_HOST_IRQHandler - DCD Dummy - DCD Dummy - DCD Dummy - DCD SD_IRQHandler - DCD FLASHIF_IRQHandler - DCD MFS12_RX_IRQHandler - DCD MFS12_TX_IRQHandler - DCD MFS13_RX_IRQHandler - DCD MFS13_TX_IRQHandler - DCD MFS14_RX_IRQHandler - DCD MFS14_TX_IRQHandler - DCD MFS15_RX_IRQHandler - DCD MFS15_TX_IRQHandler -__Vectors_End - -__Vectors_Size EQU __Vectors_End - __Vectors - - AREA |.text|, CODE, READONLY - - -; Reset Handler - -Reset_Handler PROC - EXPORT Reset_Handler [WEAK] - IMPORT SystemInit - IMPORT __main - - LDR.W R0, =0xE000ED88 ; CPACR is located at address 0xE000ED88 - LDR R1, [R0] ; Read CPACR - ORR R1, R1, #(0xF << 20) ; Set bits 20-23 to enable CP10 and CP11 coprocessors - STR R1, [R0] ; Write back the modified value to the CPACR - - LDR R0, =SystemInit - BLX R0 - LDR R0, =__main - BX R0 - ENDP - - -; Dummy Exception Handlers (infinite loops which can be modified) - -NMI_Handler PROC - EXPORT NMI_Handler [WEAK] - B . - ENDP -HardFault_Handler\ - PROC - EXPORT HardFault_Handler [WEAK] - B . - ENDP -MemManage_Handler\ - PROC - EXPORT MemManage_Handler [WEAK] - B . - ENDP -BusFault_Handler\ - PROC - EXPORT BusFault_Handler [WEAK] - B . - ENDP -UsageFault_Handler\ - PROC - EXPORT UsageFault_Handler [WEAK] - B . - ENDP -SVC_Handler PROC - EXPORT SVC_Handler [WEAK] - B . - ENDP -DebugMon_Handler\ - PROC - EXPORT DebugMon_Handler [WEAK] - B . - ENDP -PendSV_Handler PROC - EXPORT PendSV_Handler [WEAK] - B . - ENDP -SysTick_Handler PROC - EXPORT SysTick_Handler [WEAK] - B . - ENDP - -Default_Handler PROC - - EXPORT CSV_IRQHandler [WEAK] - EXPORT SWDT_IRQHandler [WEAK] - EXPORT LVD_IRQHandler [WEAK] - EXPORT IRQ003SEL_IRQHandler [WEAK] - EXPORT IRQ004SEL_IRQHandler [WEAK] - EXPORT IRQ005SEL_IRQHandler [WEAK] - EXPORT IRQ006SEL_IRQHandler [WEAK] - EXPORT IRQ007SEL_IRQHandler [WEAK] - EXPORT IRQ008SEL_IRQHandler [WEAK] - EXPORT IRQ009SEL_IRQHandler [WEAK] - EXPORT IRQ010SEL_IRQHandler [WEAK] - EXPORT EXINT0_IRQHandler [WEAK] - EXPORT EXINT1_IRQHandler [WEAK] - EXPORT EXINT2_IRQHandler [WEAK] - EXPORT EXINT3_IRQHandler [WEAK] - EXPORT EXINT4_IRQHandler [WEAK] - EXPORT EXINT5_IRQHandler [WEAK] - EXPORT EXINT6_IRQHandler [WEAK] - EXPORT EXINT7_IRQHandler [WEAK] - EXPORT QPRC0_IRQHandler [WEAK] - EXPORT QPRC1_IRQHandler [WEAK] - EXPORT WFG0_DTIF0_IRQHandler [WEAK] - EXPORT WFG1_DTIF1_IRQHandler [WEAK] - EXPORT WFG2_DTIF2_IRQHandler [WEAK] - EXPORT FRT0_PEAK_IRQHandler [WEAK] - EXPORT FRT0_ZERO_IRQHandler [WEAK] - EXPORT ICU0_IRQHandler [WEAK] - EXPORT OCU0_IRQHandler [WEAK] - EXPORT FRT1_PEAK_IRQHandler [WEAK] - EXPORT FRT1_ZERO_IRQHandler [WEAK] - EXPORT ICU1_IRQHandler [WEAK] - EXPORT OCU1_IRQHandler [WEAK] - EXPORT FRT2_PEAK_IRQHandler [WEAK] - EXPORT FRT2_ZERO_IRQHandler [WEAK] - EXPORT ICU2_IRQHandler [WEAK] - EXPORT OCU2_IRQHandler [WEAK] - EXPORT PPG00_02_04_IRQHandler [WEAK] - EXPORT PPG08_10_12_IRQHandler [WEAK] - EXPORT PPG16_18_20_IRQHandler [WEAK] - EXPORT BT0_IRQHandler [WEAK] - EXPORT BT1_IRQHandler [WEAK] - EXPORT BT2_IRQHandler [WEAK] - EXPORT BT3_IRQHandler [WEAK] - EXPORT BT4_IRQHandler [WEAK] - EXPORT BT5_IRQHandler [WEAK] - EXPORT BT6_IRQHandler [WEAK] - EXPORT BT7_IRQHandler [WEAK] - EXPORT DT1_2_IRAHandler [WEAK] - EXPORT WC_IRQHandler [WEAK] - EXPORT EXTBUS_ERR_Handler [WEAK] - EXPORT RTC_IRQHandler [WEAK] - EXPORT EXTINT8_IRQHandler [WEAK] - EXPORT EXTINT9_IRQHandler [WEAK] - EXPORT EXTINT10_IRQHandler [WEAK] - EXPORT EXTINT11_IRQHandler [WEAK] - EXPORT EXTINT12_IRQHandler [WEAK] - EXPORT EXTINT13_IRQHandler [WEAK] - EXPORT EXTINT14_IRQHandler [WEAK] - EXPORT EXTINT15_IRQHandler [WEAK] - EXPORT TIM_IRQHandler [WEAK] - EXPORT MFS0_RX_IRQHandler [WEAK] - EXPORT MFS0_TX_IRQHandler [WEAK] - EXPORT MFS1_RX_IRQHandler [WEAK] - EXPORT MFS1_TX_IRQHandler [WEAK] - EXPORT MFS2_RX_IRQHandler [WEAK] - EXPORT MFS2_TX_IRQHandler [WEAK] - EXPORT MFS3_RX_IRQHandler [WEAK] - EXPORT MFS3_TX_IRQHandler [WEAK] - EXPORT MFS4_RX_IRQHandler [WEAK] - EXPORT MFS4_TX_IRQHandler [WEAK] - EXPORT MFS5_RX_IRQHandler [WEAK] - EXPORT MFS5_TX_IRQHandler [WEAK] - EXPORT MFS6_RX_IRQHandler [WEAK] - EXPORT MFS6_TX_IRQHandler [WEAK] - EXPORT MFS7_RX_IRQHandler [WEAK] - EXPORT MFS7_TX_IRQHandler [WEAK] - EXPORT ADC0_IRQHandler [WEAK] - EXPORT ADC1_IRQHandler [WEAK] - EXPORT USB0_IRQHandler [WEAK] - EXPORT USB0_HOST_IRQHandler [WEAK] - EXPORT CAN0_IRQHandler [WEAK] - EXPORT CAN1_IRQHandler [WEAK] - EXPORT ETHER0_IRQHandler [WEAK] - EXPORT DMAC0_IRQHandler [WEAK] - EXPORT DMAC1_IRQHandler [WEAK] - EXPORT DMAC2_IRQHandler [WEAK] - EXPORT DMAC3_IRQHandler [WEAK] - EXPORT DMAC4_IRQHandler [WEAK] - EXPORT DMAC5_IRQHandler [WEAK] - EXPORT DMAC6_IRQHandler [WEAK] - EXPORT DMAC7_IRQHandler [WEAK] - EXPORT DSTC_IRQHandler [WEAK] - EXPORT EXINT16_17_18_19_IRQHandler [WEAK] - EXPORT EXINT20_21_22_23_IRQHandler [WEAK] - EXPORT EXINT24_25_26_27_IRQHandler [WEAK] - EXPORT EXINT28_29_30_31_IRQHandler [WEAK] - EXPORT QPRC2_IRQHandler [WEAK] - EXPORT QPRC3_IRQHandler [WEAK] - EXPORT BT8_IRQHandler [WEAK] - EXPORT BT9_IRQHandler [WEAK] - EXPORT BT10_IRQHandler [WEAK] - EXPORT BT11_IRQHandler [WEAK] - EXPORT BT12_15_IRQHandler [WEAK] - EXPORT MFS8_RX_IRQHandler [WEAK] - EXPORT MFS8_TX_IRQHandler [WEAK] - EXPORT MFS9_RX_IRQHandler [WEAK] - EXPORT MFS9_TX_IRQHandler [WEAK] - EXPORT MFS10_RX_IRQHandler [WEAK] - EXPORT MFS10_TX_IRQHandler [WEAK] - EXPORT MFS11_RX_IRQHandler [WEAK] - EXPORT MFS11_TX_IRQHandler [WEAK] - EXPORT ADC2_IRQHandler [WEAK] - EXPORT USB1_IRQHandler [WEAK] - EXPORT USB1_HOST_IRQHandler [WEAK] - EXPORT SD_IRQHandler [WEAK] - EXPORT FLASHIF_IRQHandler [WEAK] - EXPORT MFS12_RX_IRQHandler [WEAK] - EXPORT MFS12_TX_IRQHandler [WEAK] - EXPORT MFS13_RX_IRQHandler [WEAK] - EXPORT MFS13_TX_IRQHandler [WEAK] - EXPORT MFS14_RX_IRQHandler [WEAK] - EXPORT MFS14_TX_IRQHandler [WEAK] - EXPORT MFS15_RX_IRQHandler [WEAK] - EXPORT MFS15_TX_IRQHandler [WEAK] - EXPORT Dummy [WEAK] - - - -CSV_IRQHandler -SWDT_IRQHandler -LVD_IRQHandler -IRQ003SEL_IRQHandler -IRQ004SEL_IRQHandler -IRQ005SEL_IRQHandler -IRQ006SEL_IRQHandler -IRQ007SEL_IRQHandler -IRQ008SEL_IRQHandler -IRQ009SEL_IRQHandler -IRQ010SEL_IRQHandler -EXINT0_IRQHandler -EXINT1_IRQHandler -EXINT2_IRQHandler -EXINT3_IRQHandler -EXINT4_IRQHandler -EXINT5_IRQHandler -EXINT6_IRQHandler -EXINT7_IRQHandler -QPRC0_IRQHandler -QPRC1_IRQHandler -WFG0_DTIF0_IRQHandler -WFG1_DTIF1_IRQHandler -WFG2_DTIF2_IRQHandler -FRT0_PEAK_IRQHandler -FRT0_ZERO_IRQHandler -ICU0_IRQHandler -OCU0_IRQHandler -FRT1_PEAK_IRQHandler -FRT1_ZERO_IRQHandler -ICU1_IRQHandler -OCU1_IRQHandler -FRT2_PEAK_IRQHandler -FRT2_ZERO_IRQHandler -ICU2_IRQHandler -OCU2_IRQHandler -PPG00_02_04_IRQHandler -PPG08_10_12_IRQHandler -PPG16_18_20_IRQHandler -BT0_IRQHandler -BT1_IRQHandler -BT2_IRQHandler -BT3_IRQHandler -BT4_IRQHandler -BT5_IRQHandler -BT6_IRQHandler -BT7_IRQHandler -DT1_2_IRAHandler -WC_IRQHandler -EXTBUS_ERR_Handler -RTC_IRQHandler -EXTINT8_IRQHandler -EXTINT9_IRQHandler -EXTINT10_IRQHandler -EXTINT11_IRQHandler -EXTINT12_IRQHandler -EXTINT13_IRQHandler -EXTINT14_IRQHandler -EXTINT15_IRQHandler -TIM_IRQHandler -MFS0_RX_IRQHandler -MFS0_TX_IRQHandler -MFS1_RX_IRQHandler -MFS1_TX_IRQHandler -MFS2_RX_IRQHandler -MFS2_TX_IRQHandler -MFS3_RX_IRQHandler -MFS3_TX_IRQHandler -MFS4_RX_IRQHandler -MFS4_TX_IRQHandler -MFS5_RX_IRQHandler -MFS5_TX_IRQHandler -MFS6_RX_IRQHandler -MFS6_TX_IRQHandler -MFS7_RX_IRQHandler -MFS7_TX_IRQHandler -ADC0_IRQHandler -ADC1_IRQHandler -USB0_IRQHandler -USB0_HOST_IRQHandler -CAN0_IRQHandler -CAN1_IRQHandler -ETHER0_IRQHandler -DMAC0_IRQHandler -DMAC1_IRQHandler -DMAC2_IRQHandler -DMAC3_IRQHandler -DMAC4_IRQHandler -DMAC5_IRQHandler -DMAC6_IRQHandler -DMAC7_IRQHandler -DSTC_IRQHandler -EXINT16_17_18_19_IRQHandler -EXINT20_21_22_23_IRQHandler -EXINT24_25_26_27_IRQHandler -EXINT28_29_30_31_IRQHandler -QPRC2_IRQHandler -QPRC3_IRQHandler -BT8_IRQHandler -BT9_IRQHandler -BT10_IRQHandler -BT11_IRQHandler -BT12_15_IRQHandler -MFS8_RX_IRQHandler -MFS8_TX_IRQHandler -MFS9_RX_IRQHandler -MFS9_TX_IRQHandler -MFS10_RX_IRQHandler -MFS10_TX_IRQHandler -MFS11_RX_IRQHandler -MFS11_TX_IRQHandler -ADC2_IRQHandler -USB1_IRQHandler -USB1_HOST_IRQHandler -SD_IRQHandler -FLASHIF_IRQHandler -MFS12_RX_IRQHandler -MFS12_TX_IRQHandler -MFS13_RX_IRQHandler -MFS13_TX_IRQHandler -MFS14_RX_IRQHandler -MFS14_TX_IRQHandler -MFS15_RX_IRQHandler -MFS15_TX_IRQHandler -Dummy - - - B . - - ENDP - - - ALIGN - - -; User Initial Stack & Heap - - IF :DEF:__MICROLIB - - EXPORT __initial_sp - EXPORT __heap_base - EXPORT __heap_limit - - ELSE - - IMPORT __use_two_region_memory - EXPORT __user_initial_stackheap -__user_initial_stackheap - - LDR R0, = Heap_Mem - LDR R1, = (Stack_Mem + Stack_Size) - LDR R2, = (Heap_Mem + Heap_Size) - LDR R3, = Stack_Mem - BX LR - - ALIGN - - ENDIF - - - END diff --git a/bsp/mb9bf568r/CMSIS/DeviceSupport/base_types.h b/bsp/mb9bf568r/CMSIS/DeviceSupport/base_types.h deleted file mode 100644 index 7b2fa72b5c..0000000000 --- a/bsp/mb9bf568r/CMSIS/DeviceSupport/base_types.h +++ /dev/null @@ -1,160 +0,0 @@ -/******************************************************************************* -* Copyright (C) 2013 Spansion LLC. All Rights Reserved. -* -* This software is owned and published by: -* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). -* -* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND -* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. -* -* This software contains source code for use with Spansion -* components. This software is licensed by Spansion to be adapted only -* for use in systems utilizing Spansion components. Spansion shall not be -* responsible for misuse or illegal use of this software for devices not -* supported herein. Spansion is providing this software "AS IS" and will -* not be responsible for issues arising from incorrect user implementation -* of the software. -* -* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, -* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), -* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, -* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED -* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED -* WARRANTY OF NONINFRINGEMENT. -* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, -* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT -* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, -* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR -* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, -* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, -* SAVINGS OR PROFITS, -* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR -* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED -* FROM, THE SOFTWARE. -* -* This software may be replicated in part or whole for the licensed use, -* with the restriction that this Disclaimer and Copyright notice must be -* included with each copy of this software, whether used in part or whole, -* at all times. -*/ - -/*****************************************************************************/ -/** \file base_types.h - ** - ** Additional base type definitions to stddef.h and stdint.h - ** - ** History: - ** - 2013-03-21 1.0 MWi First version. - ** - *****************************************************************************/ - -#ifndef __BASE_TYPES_H__ -#define __BASE_TYPES_H__ - -/*****************************************************************************/ -/* Include files */ -/*****************************************************************************/ -#include -#include "stdint.h" - -/*****************************************************************************/ -/* Global pre-processor symbols/macros ('#define') */ -/*****************************************************************************/ -#ifndef TRUE - /** Value is true (boolean_t type) */ - #define TRUE ((boolean_t) 1) -#endif - -#ifndef FALSE - /** Value is false (boolean_t type) */ - #define FALSE ((boolean_t) 0) -#endif - -/** Returns the minimum value out of two values */ -#define MIN( X, Y ) ((X) < (Y) ? (X) : (Y)) - -/** Returns the maximum value out of two values */ -#define MAX( X, Y ) ((X) > (Y) ? (X) : (Y)) - -/** Returns the dimension of an array */ -#define DIM( X ) (sizeof(X) / sizeof(X[0])) - -/****************************************************************************** - * Global type definitions - ******************************************************************************/ - -/** logical datatype (only values are TRUE and FALSE) */ -typedef uint8_t boolean_t; - -/** single precision floating point number (4 byte) */ -typedef float float32_t; - -/** double precision floating point number (8 byte) */ -typedef double float64_t; - -/** ASCCI character for string generation (8 bit) */ -typedef char char_t; - -/** function pointer type to void/void function */ -typedef void (*func_ptr_t)(void); - -/** function pointer type to void/uint8_t function */ -typedef void (*func_ptr_arg1_t)(uint8_t); - -/** generic error codes */ -typedef enum en_result -{ - Ok = 0, ///< No error - Error = 1, ///< Non-specific error code - ErrorAddressAlignment = 2, ///< Address alignment does not match - ErrorAccessRights = 3, ///< Wrong mode (e.g. user/system) mode is set - ErrorInvalidParameter = 4, ///< Provided parameter is not valid - ErrorOperationInProgress = 5, ///< A conflicting or requested operation is still in progress - ErrorInvalidMode = 6, ///< Operation not allowed in current mode - ErrorUninitialized = 7, ///< Module (or part of it) was not initialized properly - ErrorBufferFull = 8, ///< Circular buffer can not be written because the buffer is full - ErrorTimeout = 9, ///< Time Out error occurred (e.g. I2C arbitration lost, Flash time-out, etc.) - ErrorNotReady = 10, ///< A requested final state is not reached - OperationInProgress = 11 ///< Indicator for operation in progress (e.g. ADC conversion not finished, DMA channel used, etc.) -} en_result_t; - -/** - ****************************************************************************** - ** \brief Level - ** - ** Specifies levels. - ** - ******************************************************************************/ -typedef enum en_level -{ - PDLLow = 0, ///< Low level '0' - PDLHigh = 1 ///< High level '1' -} en_level_t; - -/** - ****************************************************************************** - ** \brief Generic Flag Code - ** - ** Specifies flags. - ** - ******************************************************************************/ -typedef enum en_flag -{ - PdlClr = 0, ///< Flag clr '0' - PdlSet = 1 ///< Flag set '1' -} en_stat_flag_t, en_int_flag_t; - -/*****************************************************************************/ -/* Global variable declarations ('extern', definition in C source) */ -/*****************************************************************************/ - -/*****************************************************************************/ -/* Global function prototypes ('extern', definition in C source) */ -/*****************************************************************************/ - -#endif /* __BASE_TYPES_H__ */ - -/******************************************************************************/ -/* EOF (not truncated) */ -/******************************************************************************/ diff --git a/bsp/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S b/bsp/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S deleted file mode 100644 index 72981f1edb..0000000000 --- a/bsp/mb9bf568r/CMSIS/DeviceSupport/gcc/startup_mb9bf56xr.S +++ /dev/null @@ -1,290 +0,0 @@ -/**************************************************************************//** - * @file startup_.s - * @brief CMSIS Cortex-M# Core Device Startup File for - * Device - * @version V3.01 - * @date 06. March 2012 - * - * @note Version CodeSourcery Sourcery G++ Lite (with CS3) - * Copyright (C) 2012 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ -/* -//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------ -*/ - - -/* -// Stack Configuration -// Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> -// -*/ - - .equ Stack_Size, 0x00000400 - .section ".stack", "w" - .align 3 - .globl __cs3_stack_mem - .globl __cs3_stack_size -__cs3_stack_mem: - .if Stack_Size - .space Stack_Size - .endif - .size __cs3_stack_mem, . - __cs3_stack_mem - .set __cs3_stack_size, . - __cs3_stack_mem - - -/* -// Heap Configuration -// Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> -// -*/ - - .equ Heap_Size, 0x00000100 - - .section ".heap", "w" - .align 3 - .globl __cs3_heap_start - .globl __cs3_heap_end -__cs3_heap_start: - .if Heap_Size - .space Heap_Size - .endif -__cs3_heap_end: - - -/* Vector Table */ - - .section ".cs3.interrupt_vector" - .globl __cs3_interrupt_vector_cortex_m - .type __cs3_interrupt_vector_cortex_m, %object - -__cs3_interrupt_vector_cortex_m: - .long __cs3_stack /* Top of Stack */ - .long __cs3_reset /* Reset Handler */ - .long NMI_Handler /* NMI Handler */ - .long HardFault_Handler /* Hard Fault Handler */ - .long MemManage_Handler /* MPU Fault Handler */ - .long BusFault_Handler /* Bus Fault Handler */ - .long UsageFault_Handler /* Usage Fault Handler */ - .long 0 /* Reserved */ - .long 0 /* Reserved */ - .long 0 /* Reserved */ - .long 0 /* Reserved */ - .long SVC_Handler /* SVCall Handler */ - .long DebugMon_Handler /* Debug Monitor Handler */ - .long 0 /* Reserved */ - .long PendSV_Handler /* PendSV Handler */ - .long SysTick_Handler /* SysTick Handler */ - - /* External Interrupts */ -/* ToDo: Add here the vectors for the device specific external interrupts handler */ - .long CSV_Handler /* 0: Clock Super Visor */ - .long SWDT_Handler /* 1: Software Watchdog Timer */ - .long LVD_Handler /* 2: Low Voltage Detector */ - .long MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ - .long INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ - .long INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ - .long DT_Handler /* 6: Dual Timer / Quad Decoder */ - .long MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ - .long MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ - .long MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ - .long MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ - .long MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ - .long MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ - .long MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ - .long MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ - .long MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ - .long MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ - .long MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ - .long MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ - .long MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ - .long MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ - .long MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ - .long MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ - .long PPG_Handler /* 23: PPG */ - .long TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ - .long ADC0_IRQHandler /* 25: ADC0 */ - .long ADC1_IRQHandler /* 26: ADC1 */ - .long ADC2_IRQHandler /* 27: ADC2 */ - .long MFT_FRT_IRQHandler /* 28: Free-run Timer */ - .long MFT_IPC_IRQHandler /* 29: Input Capture */ - .long MFT_OPC_IRQHandler /* 30: Output Compare */ - .long BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ - .long CAN0_IRQHandler /* 32: CAN ch.0 */ - .long CAN1_IRQHandler /* 33: CAN ch.1 */ - .long USBF_Handler /* 34: USB Function */ - .long USB_Handler /* 35: USB Function / USB HOST */ - .long RESERVED_1_IRQHandler /* 36: Reserved */ - .long RESERVED_2_IRQHandler /* 37: Reserved */ - .long DMAC0_Handler /* 38: DMAC ch.0 */ - .long DMAC1_Handler /* 39: DMAC ch.1 */ - .long DMAC2_Handler /* 40: DMAC ch.2 */ - .long DMAC3_Handler /* 41: DMAC ch.3 */ - .long DMAC4_Handler /* 42: DMAC ch.4 */ - .long DMAC5_Handler /* 43: DMAC ch.5 */ - .long DMAC6_Handler /* 44: DMAC ch.6 */ - .long DMAC7_Handler /* 45: DMAC ch.7 */ - .long RESERVED_3_IRQHandler /* 46: Reserved */ - .long RESERVED_4_IRQHandler /* 47: Reserved */ - - .size __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m - - - .thumb - - -/* Reset Handler */ - - .section .cs3.reset,"x",%progbits - .thumb_func - .globl __cs3_reset_cortex_m - .globl _start - .type __cs3_reset_cortex_m, %function -__cs3_reset_cortex_m: -_start: - .fnstart - LDR R0, =SystemInit - BLX R0 - LDR R0,=_start - BX R0 - .pool - .cantunwind - .fnend - .size __cs3_reset_cortex_m,.-__cs3_reset_cortex_m - - .section ".text" - -/* Exception Handlers */ - - .weak NMI_Handler - .type NMI_Handler, %function -NMI_Handler: - B . - .size NMI_Handler, . - NMI_Handler - - .weak HardFault_Handler - .type HardFault_Handler, %function -HardFault_Handler: - B . - .size HardFault_Handler, . - HardFault_Handler - - .weak MemManage_Handler - .type MemManage_Handler, %function -MemManage_Handler: - B . - .size MemManage_Handler, . - MemManage_Handler - - .weak BusFault_Handler - .type BusFault_Handler, %function -BusFault_Handler: - B . - .size BusFault_Handler, . - BusFault_Handler - - .weak UsageFault_Handler - .type UsageFault_Handler, %function -UsageFault_Handler: - B . - .size UsageFault_Handler, . - UsageFault_Handler - - .weak SVC_Handler - .type SVC_Handler, %function -SVC_Handler: - B . - .size SVC_Handler, . - SVC_Handler - - .weak DebugMon_Handler - .type DebugMon_Handler, %function -DebugMon_Handler: - B . - .size DebugMon_Handler, . - DebugMon_Handler - - .weak PendSV_Handler - .type PendSV_Handler, %function -PendSV_Handler: - B . - .size PendSV_Handler, . - PendSV_Handler - - .weak SysTick_Handler - .type SysTick_Handler, %function -SysTick_Handler: - B . - .size SysTick_Handler, . - SysTick_Handler - - -/* IRQ Handlers */ - -/* ToDo: Add here the export definition for the device specific external interrupts handler */ -/* ToDo: Add here the names for the device specific external interrupts handler */ - .globl Default_Handler - .type Default_Handler, %function -Default_Handler: - B . - .size Default_Handler, . - Default_Handler - - .macro IRQ handler - .weak \handler - .set \handler, Default_Handler - .endm - - IRQ CSV_Handler /* 0: Clock Super Visor */ - IRQ SWDT_Handler /* 1: Software Watchdog Timer */ - IRQ LVD_Handler /* 2: Low Voltage Detector */ - IRQ MFT_WG_IRQHandler /* 3: Wave Form Generator / DTIF */ - IRQ INT0_7_Handler /* 4: External Interrupt Request ch.0 to ch.7 */ - IRQ INT8_15_Handler /* 5: External Interrupt Request ch.8 to ch.15 */ - IRQ DT_Handler /* 6: Dual Timer / Quad Decoder */ - IRQ MFS0RX_IRQHandler /* 7: MultiFunction Serial ch.0 */ - IRQ MFS0TX_IRQHandler /* 8: MultiFunction Serial ch.0 */ - IRQ MFS1RX_IRQHandler /* 9: MultiFunction Serial ch.1 */ - IRQ MFS1TX_IRQHandler /* 10: MultiFunction Serial ch.1 */ - IRQ MFS2RX_IRQHandler /* 11: MultiFunction Serial ch.2 */ - IRQ MFS2TX_IRQHandler /* 12: MultiFunction Serial ch.2 */ - IRQ MFS3RX_IRQHandler /* 13: MultiFunction Serial ch.3 */ - IRQ MFS3TX_IRQHandler /* 14: MultiFunction Serial ch.3 */ - IRQ MFS4RX_IRQHandler /* 15: MultiFunction Serial ch.4 */ - IRQ MFS4TX_IRQHandler /* 16: MultiFunction Serial ch.4 */ - IRQ MFS5RX_IRQHandler /* 17: MultiFunction Serial ch.5 */ - IRQ MFS5TX_IRQHandler /* 18: MultiFunction Serial ch.5 */ - IRQ MFS6RX_IRQHandler /* 19: MultiFunction Serial ch.6 */ - IRQ MFS6TX_IRQHandler /* 20: MultiFunction Serial ch.6 */ - IRQ MFS7RX_IRQHandler /* 21: MultiFunction Serial ch.7 */ - IRQ MFS7TX_IRQHandler /* 22: MultiFunction Serial ch.7 */ - IRQ PPG_Handler /* 23: PPG */ - IRQ TIM_IRQHandler /* 24: OSC / PLL / Watch Counter */ - IRQ ADC0_IRQHandler /* 25: ADC0 */ - IRQ ADC1_IRQHandler /* 26: ADC1 */ - IRQ ADC2_IRQHandler /* 27: ADC2 */ - IRQ MFT_FRT_IRQHandler /* 28: Free-run Timer */ - IRQ MFT_IPC_IRQHandler /* 29: Input Capture */ - IRQ MFT_OPC_IRQHandler /* 30: Output Compare */ - IRQ BT_IRQHandler /* 31: Base Timer ch.0 to ch.7 */ - IRQ CAN0_IRQHandler /* 32: CAN ch.0 */ - IRQ CAN1_IRQHandler /* 33: CAN ch.1 */ - IRQ USBF_Handler /* 34: USB Function */ - IRQ USB_Handler /* 35: USB Function / USB HOST */ - IRQ RESERVED_1_IRQHandler /* 36: Reserved */ - IRQ RESERVED_2_IRQHandler /* 37: Reserved */ - IRQ DMAC0_Handler /* 38: DMAC ch.0 */ - IRQ DMAC1_Handler /* 39: DMAC ch.1 */ - IRQ DMAC2_Handler /* 40: DMAC ch.2 */ - IRQ DMAC3_Handler /* 41: DMAC ch.3 */ - IRQ DMAC4_Handler /* 42: DMAC ch.4 */ - IRQ DMAC5_Handler /* 43: DMAC ch.5 */ - IRQ DMAC6_Handler /* 44: DMAC ch.6 */ - IRQ DMAC7_Handler /* 45: DMAC ch.7 */ - IRQ RESERVED_3_IRQHandler /* 46: Reserved */ - IRQ RESERVED_4_IRQHandler /* 47: Reserved */ - - .end diff --git a/bsp/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h b/bsp/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h deleted file mode 100644 index 317f63644c..0000000000 --- a/bsp/mb9bf568r/CMSIS/DeviceSupport/mb9b560r.h +++ /dev/null @@ -1,28433 +0,0 @@ -/******************************************************************************* -* Copyright (C) 2013 Spansion LLC. All Rights Reserved. -* -* This software is owned and published by: -* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). -* -* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND -* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. -* -* This software contains source code for use with Spansion -* components. This software is licensed by Spansion to be adapted only -* for use in systems utilizing Spansion components. Spansion shall not be -* responsible for misuse or illegal use of this software for devices not -* supported herein. Spansion is providing this software "AS IS" and will -* not be responsible for issues arising from incorrect user implementation -* of the software. -* -* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, -* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), -* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, -* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED -* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED -* WARRANTY OF NONINFRINGEMENT. -* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, -* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT -* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, -* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR -* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, -* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, -* SAVINGS OR PROFITS, -* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR -* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED -* FROM, THE SOFTWARE. -* -* This software may be replicated in part or whole for the licensed use, -* with the restriction that this Disclaimer and Copyright notice must be -* included with each copy of this software, whether used in part or whole, -* at all times. -*/ -/******************************************************************************/ -/** \file mb9b560r.h - ** - ** Unfified Header File for FM4 PDL - ** - ** History: - ** - 2013-01-21 0.0.1 MWi First version - ** - 2013-02-06 0.0.2 MWi All FM3_ prexifes changed to FM4_; New defines - ** for MFS8-15 added; FM4_MFS_NFC_BASE added - ** - 2013-06-28 0.0.3 EH Modified bitband address of RTC - ** - 2013-08-08 0.0.4 EH Modified UESMCE bit of EPFR20 register to UESMCEE - ** Modified DESP bit of MONERS register to EDESP in DSTC - ** Modified DQID bit of MONERS register to ECH in DSTC - ** Modified HS bit of MONERS register to EHS in DSTC - ** Modified DREQEMSK register to DQMSK in DSTC - ** Added DQMSKCLK register in DSTC - ** Added AN16-AN31 bits to ADE register in GPIO - ** Modified FERRAD bit of FERRAD register to ERRAD - ** Modified DAC register composition - ** - 2013-08-21 0.0.5 EH Added IRQSEL_MODULE definition - ** - 2013-09-10 0.0.6 EH Modified structure of FM4_EXBUS_TypeDef - ** - ******************************************************************************/ - -#ifndef _MB9B560R_H_ -#define _MB9B560R_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -/****************************************************************************** - * Configuration of the Cortex-M3 Processor and Core Peripherals - ******************************************************************************/ -#define __MPU_PRESENT 1 /* FM3 provide an MPU */ -#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ -#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ -#define __FPU_PRESENT 1 /* FPU present */ - -#include "mcu.h" - -/** - ****************************************************************************** - ** \brief Interrupt number definition for all type MCUs - ******************************************************************************/ -#if (PDL_MCU_INT_TYPE == PDL_INT_TYPE_A) -typedef enum IRQn -{ - NMI_IRQn = -14, /* 2 Non Maskable */ - HardFault_IRQn = -13, /* 3 Hard Fault */ - MemManage_IRQn = -12, /* 4 Memory Management */ - BusFault_IRQn = -11, /* 5 Bus Fault */ - UsageFault_IRQn = -10, /* 6 Usage Fault */ - SVC_IRQn = -5, /* 11 SV Call */ - DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ - PendSV_IRQn = -2, /* 14 Pend SV */ - SysTick_IRQn = -1, /* 15 System Tick */ - - CSV_IRQn = 0, /* Clock Supervisor */ - SWDT_IRQn = 1, /* Software Watchdog Timer */ - LVD_IRQn = 2, /* Low Voltage Detection */ - IRQ003SEL_IRQn = 3, /* Interrupt Selection IRQ003SEL */ - IRQ004SEL_IRQn = 4, /* Interrupt Selection IRQ004SEL */ - IRQ005SEL_IRQn = 5, /* Interrupt Selection IRQ005SEL */ - IRQ006SEL_IRQn = 6, /* Interrupt Selection IRQ006SEL */ - IRQ007SEL_IRQn = 7, /* Interrupt Selection IRQ007SEL */ - IRQ008SEL_IRQn = 8, /* Interrupt Selection IRQ008SEL */ - IRQ009SEL_IRQn = 9, /* Interrupt Selection IRQ009SEL */ - IRQ010SEL_IRQn = 10, /* Interrupt Selection IRQ010SEL */ - EXINT0_IRQn = 11, /* External Interrupt Ch. 0 */ - EXINT1_IRQn = 12, /* External Interrupt Ch. 1 */ - EXINT2_IRQn = 13, /* External Interrupt Ch. 2 */ - EXINT3_IRQn = 14, /* External Interrupt Ch. 3 */ - EXINT4_IRQn = 15, /* External Interrupt Ch. 4 */ - EXINT5_IRQn = 16, /* External Interrupt Ch. 5 */ - EXINT6_IRQn = 17, /* External Interrupt Ch. 6 */ - EXINT7_IRQn = 18, /* External Interrupt Ch. 7 */ - QPRC0_IRQn = 19, /* Quad Decoder and Revolution Counter Ch. 0 */ - QPRC1_IRQn = 20, /* Quad Decoder and Revolution Counter Ch. 1 */ - WFG0_DTIF0_IRQn = 21, /* MFT0 Wave Form Generator / DTIF */ - WFG1_DTIF1_IRQn = 22, /* MFT1 Wave Form Generator / DTIF */ - WFG2_DTIF2_IRQn = 23, /* MFT2 Wave Form Generator / DTIF */ - FRT0_PEAK_IRQn = 24, /* MFT0 Free Running Timer Peak Detection */ - FRT0_ZERO_IRQn = 25, /* MFT0 Free Running Timer Zero Detection */ - ICU0_IRQn = 26, /* MFT0 Input Capture Unit */ - OCU0_IRQn = 27, /* MFT0 Output Compare Unit */ - FRT1_PEAK_IRQn = 28, /* MFT1 Free Running Timer Peak Detection */ - FRT1_ZERO_IRQn = 29, /* MFT1 Free Running Timer Zero Detection */ - ICU1_IRQn = 30, /* MFT1 Input Capture Unit */ - OCU1_IRQn = 31, /* MFT1 Output Compare Unit */ - FRT2_PEAK_IRQn = 32, /* MFT2 Free Running Timer Peak Detection */ - FRT2_ZERO_IRQn = 33, /* MFT2 Free Running Timer Zero Detection */ - ICU2_IRQn = 34, /* MFT2 Input Capture Unit */ - OCU2_IRQn = 35, /* MFT2 Output Compare Unit */ - PPG00_02_04_IRQn = 36, /* Programmable Pulse Generator Ch. 0, 2, 4 */ - PPG08_10_12_IRQn = 37, /* Programmable Pulse Generator Ch. 8, 10, 12 */ - PPG16_18_20_IRQn = 38, /* Programmable Pulse Generator Ch. 16, 18, 20 */ - BT0_IRQn = 39, /* Base Timer Ch. 0 */ - BT1_IRQn = 40, /* Base Timer Ch. 1 */ - BT2_IRQn = 41, /* Base Timer Ch. 2 */ - BT3_IRQn = 42, /* Base Timer Ch. 3 */ - BT4_IRQn = 43, /* Base Timer Ch. 4 */ - BT5_IRQn = 44, /* Base Timer Ch. 5 */ - BT6_IRQn = 45, /* Base Timer Ch. 6 */ - BT7_IRQn = 46, /* Base Timer Ch. 7 */ - DT1_2_IRQn = 47, /* Dual Timmer Ch. 1, 2 */ - WC_IRQn = 48, /* Watch Counter */ - EXTBUS_ERR_IRQn = 49, /* External Bus Error */ - RTC_IRQn = 50, /* Realtime Clock */ - EXINT8_IRQn = 51, /* External Interrupt Ch. 8 */ - EXINT9_IRQn = 52, /* External Interrupt Ch. 9 */ - EXINT10_IRQn = 53, /* External Interrupt Ch. 10 */ - EXINT11_IRQn = 54, /* External Interrupt Ch. 11 */ - EXINT12_IRQn = 55, /* External Interrupt Ch. 12 */ - EXINT13_IRQn = 56, /* External Interrupt Ch. 13 */ - EXINT14_IRQn = 57, /* External Interrupt Ch. 14 */ - EXINT15_IRQn = 58, /* External Interrupt Ch. 15 */ - TIM_IRQn = 59, /* Clock/PLL Timer */ - MFS0_RX_IRQn = 60, /* Multifunction Serial I/F Reception Ch. 0 */ - MFS0_TX_IRQn = 61, /* Multifunction Serial I/F Transmission Ch. 0 */ - MFS1_RX_IRQn = 62, /* Multifunction Serial I/F Reception Ch. 1 */ - MFS1_TX_IRQn = 63, /* Multifunction Serial I/F Transmission Ch. 1 */ - MFS2_RX_IRQn = 64, /* Multifunction Serial I/F Reception Ch. 2 */ - MFS2_TX_IRQn = 65, /* Multifunction Serial I/F Transmission Ch. 2 */ - MFS3_RX_IRQn = 66, /* Multifunction Serial I/F Reception Ch. 3 */ - MFS3_TX_IRQn = 67, /* Multifunction Serial I/F Transmission Ch. 3 */ - MFS4_RX_IRQn = 68, /* Multifunction Serial I/F Reception Ch. 4 */ - MFS4_TX_IRQn = 69, /* Multifunction Serial I/F Transmission Ch. 4 */ - MFS5_RX_IRQn = 70, /* Multifunction Serial I/F Reception Ch. 5 */ - MFS5_TX_IRQn = 71, /* Multifunction Serial I/F Transmission Ch. 5 */ - MFS6_RX_IRQn = 72, /* Multifunction Serial I/F Reception Ch. 6 */ - MFS6_TX_IRQn = 73, /* Multifunction Serial I/F Transmission Ch. 6 */ - MFS7_RX_IRQn = 74, /* Multifunction Serial I/F Reception Ch. 7 */ - MFS7_TX_IRQn = 75, /* Multifunction Serial I/F Transmission Ch. 7 */ - ADC0_IRQn = 76, /* Analog Digital Converter Unit 0 */ - ADC1_IRQn = 77, /* Analog Digital Converter Unit 1 */ - USB0_IRQn = 78, /* USB0 Function */ - USB0_HOST_IRQn = 79, /* USB0 Function and Host */ - CAN0_IRQn = 80, /* CAN I/F Ch. 0 */ - CAN1_IRQn = 81, /* CAN I/F Ch. 1 */ - ETHER0_IRQn = 82, /* Ethernet */ - DMAC0_IRQn = 83, /* Direct Memory Access Controller Ch. 0 */ - DMAC1_IRQn = 84, /* Direct Memory Access Controller Ch. 1 */ - DMAC2_IRQn = 85, /* Direct Memory Access Controller Ch. 2 */ - DMAC3_IRQn = 86, /* Direct Memory Access Controller Ch. 3 */ - DMAC4_IRQn = 87, /* Direct Memory Access Controller Ch. 4 */ - DMAC5_IRQn = 88, /* Direct Memory Access Controller Ch. 5 */ - DMAC6_IRQn = 89, /* Direct Memory Access Controller Ch. 6 */ - DMAC7_IRQn = 90, /* Direct Memory Access Controller Ch. 7 */ - DSTC_IRQn = 91, /* DSTC SW Transfer */ - EXINT16_17_18_19_IRQn = 92, /* External Interrupt Ch. 16 - 19 */ - EXINT20_21_22_23_IRQn = 93, /* External Interrupt Ch. 20 - 23 */ - EXINT24_25_26_27_IRQn = 94, /* External Interrupt Ch. 24 - 27 */ - EXINT28_29_30_31_IRQn = 95, /* External Interrupt Ch. 28 - 31 */ - QPRC2_IRQn = 96, /* Quad Decoder and Revolution Counter Ch. 2 */ - QPRC3_IRQn = 97, /* Quad Decoder and Revolution Counter Ch. 3 */ - BT8_IRQn = 98, /* Base Timer Ch. 8 */ - BT9_IRQn = 99, /* Base Timer Ch. 9 */ - BT10_IRQn = 100, /* Base Timer Ch. 10 */ - BT11_IRQn = 101, /* Base Timer Ch. 11 */ - BT12_IRQn = 102, /* Base Timer Ch. 12 */ - MFS8_RX_IRQn = 103, /* Multifunction Serial I/F Reception Ch. 8 */ - MFS8_TX_IRQn = 104, /* Multifunction Serial I/F Transmission Ch. 8 */ - MFS9_RX_IRQn = 105, /* Multifunction Serial I/F Reception Ch. 9 */ - MFS9_TX_IRQn = 106, /* Multifunction Serial I/F Transmission Ch. 9 */ - MFS10_RX_IRQn = 107, /* Multifunction Serial I/F Reception Ch. 10 */ - MFS10_TX_IRQn = 108, /* Multifunction Serial I/F Transmission Ch. 10 */ - MFS11_RX_IRQn = 109, /* Multifunction Serial I/F Reception Ch. 11 */ - MFS11_TX_IRQn = 110, /* Multifunction Serial I/F Transmission Ch. 11 */ - ADC2_IRQn = 111, /* Analog Digital Converter Unit 2 */ - USB1_IRQn = 113, /* USB1 Function */ - USB1_HOST_IRQn = 114, /* USB1 Function and Host */ - SD_IRQn = 118, /* SD Card I/F */ - FLASH_IRQn = 119 /* Flash */ -} IRQn_Type; - -#elif (PDL_MCU_INT_TYPE == PDL_INT_TYPE_C) -typedef enum IRQn -{ - NMI_IRQn = -14, /* A<- */ - HardFault_IRQn = -13, /* A<- */ - MemManage_IRQn = -12, /* A<- */ - BusFault_IRQn = -11, /* A<- */ - UsageFault_IRQn = -10, /* A<- */ - SVC_IRQn = -5, /* A<- */ - DebugMonitor_IRQn = -4, /* A<- */ - PendSV_IRQn = -2, /* A<- */ - SysTick_IRQn = -1, /* A<- */ - - CSV_IRQn = 0, /* A<- */ - SWDT_IRQn = 1, /* A<- */ - LVD_IRQn = 2, /* A<- */ - WFG_IRQn = 3, /* A<- */ - EXINT0_7_IRQn = 4, /* A<- */ - EXINT8_31_IRQn = 5, /* A<- */ - MFS0_8_RX_IRQn = 6, /* A<- */ - MFS0_8_TX_IRQn = 7, /* A<- */ - MFS1_9_RX_IRQn = 8, /* A<- */ - MFS1_9_TX_IRQn = 9, /* A<- */ - MFS2_10_RX_IRQn = 10,/* A<- */ - MFS2_10_TX_IRQn = 11,/* A<- */ - MFS3_11_RX_IRQn = 12, /* A<- */ - MFS3_11_TX_IRQn = 13, /* A<- */ - MFS4_12_RX_IRQn = 14, /* A<- */ - MFS4_12_TX_IRQn = 15, /* A<- */ - MFS5_13_RX_IRQn = 16, /* A<- */ - MFS5_13_TX_IRQn = 17, /* A<- */ - MFS6_14_RX_IRQn = 18, /* A<- */ - MFS6_14_TX_IRQn = 19, /* A<- */ - MFS7_15_RX_IRQn = 20, /* A<- */ - MFS7_15_TX_IRQn = 21, /* A<- */ - PPG_IRQn = 22, /* A<- */ - OSC_PLL_WC_RTC_IRQn = 23, /* A<- */ - ADC0_IRQn = 24, /* A<- */ - FRTIM_IRQn = 25, /* A<- */ - INCAP_IRQn = 26, /* A<- */ - OUTCOMP_IRQn = 27, /* A<- */ - BTIM0_7_IRQn = 28, /* A<- */ - ADC2_LCD_IRQn = 29, /* A<- */ - USB1F_HDMICEC0_IRQn = 30, /* A<- */ - USB1F_USB1H_HDMICEC1_IRQn = 31, /* A<- */ -} IRQn_Type; -#else - #error Interrupt Type not found! -#endif // PDL_INT_TYPE - -#include "core_cm4.h" -#include "system_mb9bf56xr.h" -#include - -#define SUCCESS 0 -#define ERROR -1 - -#ifndef NULL -#define NULL 0 -#endif - - -/******************************************************************************/ -/* Device Specific Peripheral Registers structures */ -/******************************************************************************/ - -#if defined ( __CC_ARM ) -#pragma anon_unions -#endif - -/****************************************************************************** - * INTREQ_MODULE Bit fields and registers depending on device type - ******************************************************************************/ -#if (PDL_MCU_INT_TYPE == PDL_INT_TYPE_A) - -/* Interrupt request read registers */ -typedef struct -{ - __IO uint32_t DRQSEL; - uint8_t RESERVED0[12]; - __IO uint32_t EXC02MON; - __IO uint32_t IRQ00MON; - __IO uint32_t IRQ01MON; - __IO uint32_t IRQ02MON; - __IO uint32_t IRQ03MON; - __IO uint32_t IRQ04MON; - __IO uint32_t IRQ05MON; - __IO uint32_t IRQ06MON; - __IO uint32_t IRQ07MON; - __IO uint32_t IRQ08MON; - __IO uint32_t IRQ09MON; - __IO uint32_t IRQ10MON; - __IO uint32_t IRQ11MON; - __IO uint32_t IRQ12MON; - __IO uint32_t IRQ13MON; - __IO uint32_t IRQ14MON; - __IO uint32_t IRQ15MON; - __IO uint32_t IRQ16MON; - __IO uint32_t IRQ17MON; - __IO uint32_t IRQ18MON; - __IO uint32_t IRQ19MON; - __IO uint32_t IRQ20MON; - __IO uint32_t IRQ21MON; - __IO uint32_t IRQ22MON; - __IO uint32_t IRQ23MON; - __IO uint32_t IRQ24MON; - __IO uint32_t IRQ25MON; - __IO uint32_t IRQ26MON; - __IO uint32_t IRQ27MON; - __IO uint32_t IRQ28MON; - __IO uint32_t IRQ29MON; - __IO uint32_t IRQ30MON; - __IO uint32_t IRQ31MON; - __IO uint32_t IRQ32MON; - __IO uint32_t IRQ33MON; - __IO uint32_t IRQ34MON; - __IO uint32_t IRQ35MON; - __IO uint32_t IRQ36MON; - __IO uint32_t IRQ37MON; - __IO uint32_t IRQ38MON; - __IO uint32_t IRQ39MON; - __IO uint32_t IRQ40MON; - __IO uint32_t IRQ41MON; - __IO uint32_t IRQ42MON; - __IO uint32_t IRQ43MON; - __IO uint32_t IRQ44MON; - __IO uint32_t IRQ45MON; - __IO uint32_t IRQ46MON; - __IO uint32_t IRQ47MON; -}PDL_INTREQ_TypeDef; - -#define PDL_INTREQ_BASE (PDL_PERIPH_BASE + 0x31000UL) // Interrupt request read registers -#define PDL_INTREQ ((PDL_INTREQ_TypeDef *)PDL_INTREQ_BASE) - -#elif (PDL_MCU_INT_TYPE == PDL_INT_TYPE_C) - -/* Interrupt request read registers */ -typedef struct -{ - uint8_t RESERVED0[16]; - __IO uint32_t EXC02MON; - __IO uint32_t IRQ00MON; - __IO uint32_t IRQ01MON; - __IO uint32_t IRQ02MON; - __IO uint32_t IRQ03MON; - __IO uint32_t IRQ04MON; - __IO uint32_t IRQ05MON; - __IO uint32_t IRQ06MON; - __IO uint32_t IRQ07MON; - __IO uint32_t IRQ08MON; - __IO uint32_t IRQ09MON; - __IO uint32_t IRQ10MON; - __IO uint32_t IRQ11MON; - __IO uint32_t IRQ12MON; - __IO uint32_t IRQ13MON; - __IO uint32_t IRQ14MON; - __IO uint32_t IRQ15MON; - __IO uint32_t IRQ16MON; - __IO uint32_t IRQ17MON; - __IO uint32_t IRQ18MON; - __IO uint32_t IRQ19MON; - __IO uint32_t IRQ20MON; - __IO uint32_t IRQ21MON; - __IO uint32_t IRQ22MON; - __IO uint32_t IRQ23MON; - __IO uint32_t IRQ24MON; - __IO uint32_t IRQ25MON; - __IO uint32_t IRQ26MON; - __IO uint32_t IRQ27MON; - __IO uint32_t IRQ28MON; - __IO uint32_t IRQ29MON; - __IO uint32_t IRQ30MON; - __IO uint32_t IRQ31MON; -}PDL_INTREQ_TypeDef; - -#define PDL_INTREQ_BASE (PDL_PERIPH_BASE + 0x31000UL) // Interrupt request read registers -#define FPDL_INTREQ ((PDL_INTREQ_TypeDef *)PDL_INTREQ_BASE) - -#endif // PDL_INT_TYPE - - -/****************************************************************************** - * Peripheral register bit fields - ******************************************************************************/ - -/****************************************************************************** - * WorkFlash_IF_MODULE - ******************************************************************************/ -/* WorkFlash_IF_MODULE register bit fields */ -typedef struct stc_workflash_if_wfaszr_field -{ - __IO uint32_t ASZ : 1; -} stc_workflash_if_wfaszr_field_t; - -typedef struct stc_workflash_if_wfrwtr_field -{ - __IO uint32_t RWT : 3; -} stc_workflash_if_wfrwtr_field_t; - -typedef struct stc_workflash_if_wfstr_field -{ - __IO uint32_t RDY : 1; - __IO uint32_t HNG : 1; -} stc_workflash_if_wfstr_field_t; - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash_IF_MODULE register bit fields */ -typedef struct stc_flash_if_faszr_field -{ - __IO uint32_t ASZ : 2; -} stc_flash_if_faszr_field_t; - -typedef struct stc_flash_if_frwtr_field -{ - __IO uint32_t RWT : 2; -} stc_flash_if_frwtr_field_t; - -typedef struct stc_flash_if_fstr_field -{ - __IO uint32_t RDY : 1; - __IO uint32_t HNG : 1; - __IO uint32_t ERR : 1; -} stc_flash_if_fstr_field_t; - -typedef struct stc_flash_if_fsyndn_field -{ - __IO uint32_t SD : 3; -} stc_flash_if_fsyndn_field_t; - -typedef struct stc_flash_if_fbfcr_field -{ - __IO uint32_t BE : 1; - __IO uint32_t BS : 1; -} stc_flash_if_fbfcr_field_t; - -typedef struct stc_flash_if_ficr_field -{ - __IO uint32_t RDYIE : 1; - __IO uint32_t HANGIE : 1; - __IO uint32_t ERRIE : 1; -} stc_flash_if_ficr_field_t; - -typedef struct stc_flash_if_fisr_field -{ - __IO uint32_t RDYIF : 1; - __IO uint32_t HANGIF : 1; - __IO uint32_t ERRIF : 1; -} stc_flash_if_fisr_field_t; - -typedef struct stc_flash_if_ficlr_field -{ - __IO uint32_t RDYIC : 1; - __IO uint32_t HANGIC : 1; - __IO uint32_t ERRIC : 1; -} stc_flash_if_ficlr_field_t; - -typedef struct stc_flash_if_crtrmm_field -{ - __IO uint32_t TRMM :10; - uint32_t RESERVED10 : 6; - __IO uint32_t TTRMM : 5; -} stc_flash_if_crtrmm_field_t; - -/****************************************************************************** - * UNIQUE_ID_MODULE - ******************************************************************************/ -/* UNIQUE_ID_MODULE register bit fields */ -typedef struct stc_unique_id_uidr0_field -{ - uint32_t RESERVED0 : 4; - __IO uint32_t UID :28; -} stc_unique_id_uidr0_field_t; - -typedef struct stc_unique_id_uidr1_field -{ - __IO uint32_t UID :13; -} stc_unique_id_uidr1_field_t; - -/****************************************************************************** - * ECC_CAPTURE_MODULE - ******************************************************************************/ -/* ECC_CAPTURE_MODULE register bit fields */ -typedef struct stc_ecc_capture_ferrad_field -{ - __IO uint32_t ERRAD :23; -} stc_ecc_capture_ferrad_field_t; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock_Reset_MODULE register bit fields */ -typedef struct stc_crg_scm_ctl_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MOSCE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SOSCE : 1; - __IO uint8_t PLLE : 1; - __IO uint8_t RCS : 3; -} stc_crg_scm_ctl_field_t; - -typedef struct stc_crg_scm_str_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MORDY : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SORDY : 1; - __IO uint8_t PLRDY : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t RCM2 : 1; -} stc_crg_scm_str_field_t; - -typedef struct stc_crg_rst_str_field -{ - __IO uint16_t PONR : 1; - __IO uint16_t INITX : 1; - __IO uint16_t LVDH : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t SWDT : 1; - __IO uint16_t HWDT : 1; - __IO uint16_t CSVR : 1; - __IO uint16_t FCSR : 1; - __IO uint16_t SRST : 1; -} stc_crg_rst_str_field_t; - -typedef struct stc_crg_bsc_psr_field -{ - __IO uint8_t BSR0 : 1; - __IO uint8_t BSR1 : 1; - __IO uint8_t BSR2 : 1; -} stc_crg_bsc_psr_field_t; - -typedef struct stc_crg_apbc0_psr_field -{ - __IO uint8_t APBC00 : 1; - __IO uint8_t APBC01 : 1; -} stc_crg_apbc0_psr_field_t; - -typedef struct stc_crg_apbc1_psr_field -{ - __IO uint8_t APBC10 : 1; - __IO uint8_t APBC11 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC1RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC1EN : 1; -} stc_crg_apbc1_psr_field_t; - -typedef struct stc_crg_apbc2_psr_field -{ - __IO uint8_t APBC20 : 1; - __IO uint8_t APBC21 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC2RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC2EN : 1; -} stc_crg_apbc2_psr_field_t; - -typedef struct stc_crg_swc_psr_field -{ - __IO uint8_t SWDS0 : 1; - __IO uint8_t SWDS1 : 1; - uint8_t RESERVED1 : 5; - __IO uint8_t TESTB : 1; -} stc_crg_swc_psr_field_t; - -typedef struct stc_crg_ttc_psr_field -{ - __IO uint8_t TTC : 2; -} stc_crg_ttc_psr_field_t; - -typedef struct stc_crg_csw_tmr_field -{ - __IO uint8_t MOWT0 : 1; - __IO uint8_t MOWT1 : 1; - __IO uint8_t MOWT2 : 1; - __IO uint8_t MOWT3 : 1; - __IO uint8_t SOWT0 : 1; - __IO uint8_t SOWT1 : 1; - __IO uint8_t SOWT2 : 1; - __IO uint8_t SOWT3 : 1; -} stc_crg_csw_tmr_field_t; - -typedef struct stc_crg_psw_tmr_field -{ - __IO uint8_t POWT0 : 1; - __IO uint8_t POWT1 : 1; - __IO uint8_t POWT2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t PINC : 1; -} stc_crg_psw_tmr_field_t; - -typedef struct stc_crg_pll_ctl1_field -{ - __IO uint8_t PLLM0 : 1; - __IO uint8_t PLLM1 : 1; - __IO uint8_t PLLM2 : 1; - __IO uint8_t PLLM3 : 1; - __IO uint8_t PLLK0 : 1; - __IO uint8_t PLLK1 : 1; - __IO uint8_t PLLK2 : 1; - __IO uint8_t PLLK3 : 1; -} stc_crg_pll_ctl1_field_t; - -typedef struct stc_crg_pll_ctl2_field -{ - __IO uint8_t PLLN0 : 1; - __IO uint8_t PLLN1 : 1; - __IO uint8_t PLLN2 : 1; - __IO uint8_t PLLN3 : 1; - __IO uint8_t PLLN4 : 1; - __IO uint8_t PLLN5 : 1; -} stc_crg_pll_ctl2_field_t; - -typedef struct stc_crg_csv_ctl_field -{ - __IO uint16_t MCSVE : 1; - __IO uint16_t SCSVE : 1; - uint16_t RESERVED1 : 6; - __IO uint16_t FCSDE : 1; - __IO uint16_t FCSRE : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t FCD0 : 1; - __IO uint16_t FCD1 : 1; - __IO uint16_t FCD2 : 1; -} stc_crg_csv_ctl_field_t; - -typedef struct stc_crg_csv_str_field -{ - __IO uint8_t MCMF : 1; - __IO uint8_t SCMF : 1; -} stc_crg_csv_str_field_t; - -typedef struct stc_crg_dbwdt_ctl_field -{ - uint8_t RESERVED1 : 5; - __IO uint8_t DPSWBE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t DPHWBE : 1; -} stc_crg_dbwdt_ctl_field_t; - -typedef struct stc_crg_int_enr_field -{ - __IO uint8_t MCSE : 1; - __IO uint8_t SCSE : 1; - __IO uint8_t PCSE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSE : 1; -} stc_crg_int_enr_field_t; - -typedef struct stc_crg_int_str_field -{ - __IO uint8_t MCSI : 1; - __IO uint8_t SCSI : 1; - __IO uint8_t PCSI : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSI : 1; -} stc_crg_int_str_field_t; - -typedef struct stc_crg_int_clr_field -{ - __IO uint8_t MCSC : 1; - __IO uint8_t SCSC : 1; - __IO uint8_t PCSC : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSC : 1; -} stc_crg_int_clr_field_t; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* HWWDT_MODULE register bit fields */ -typedef struct stc_hwwdt_wdg_ctl_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_hwwdt_wdg_ctl_field_t; - -typedef struct stc_hwwdt_wdg_ris_field -{ - __IO uint8_t RIS : 1; -} stc_hwwdt_wdg_ris_field_t; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* SWWDT_MODULE register bit fields */ -typedef struct stc_swwdt_wdogcontrol_field -{ - union { - struct { - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; - __IO uint8_t TWD : 2; - __IO uint8_t SPM : 1; - uint8_t RESERVED1 : 3; - }; - struct { - uint8_t RESERVED2 : 2; - __IO uint8_t TWD0 : 1; - __IO uint8_t TWD1 : 1; - uint8_t RESERVED3 : 4; - }; - }; -} stc_swwdt_wdogcontrol_field_t; - -typedef struct stc_swwdt_wdogris_field -{ - __IO uint8_t RIS : 1; - uint8_t RESERVED1 : 7; -} stc_swwdt_wdogris_field_t; - -typedef struct stc_swwdt_wdogspmc_field -{ - __IO uint8_t TGR : 1; - uint8_t RESERVED1 : 7; -} stc_swwdt_wdogspmc_field_t; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* DTIM_MODULE register bit fields */ -typedef struct stc_dtim_timerXcontrol_field -{ - union { - struct { - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE : 2; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; - uint32_t RESERVED2 : 24; - }; - struct { - uint32_t RESERVED3 : 2; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED4 : 28; - }; - }; -} stc_dtim_timerXcontrol_field_t; - -typedef struct stc_dtim_timerXris_field -{ - __IO uint32_t TIMERXRIS : 1; - uint32_t RESERVED1 : 31; -} stc_dtim_timerXris_field_t; - -typedef struct stc_dtim_timerXmis_field -{ - __IO uint32_t TIMERXMIS : 1; - uint32_t RESERVED1 : 31; -} stc_dtim_timerXmis_field_t; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* MFT_FRT_MODULE register bit fields */ -typedef struct stc_mft_frt_tcsa0_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa0_field_t; - -typedef struct stc_mft_frt_tcsc0_field -{ - __IO uint16_t MSZI : 4; - __IO uint16_t MSPI : 4; - __IO uint16_t MSZC : 4; - __IO uint16_t MSPC : 4; -} stc_mft_frt_tcsc0_field_t; - -typedef struct stc_mft_frt_tcsa1_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa1_field_t; - -typedef struct stc_mft_frt_tcsc1_field -{ - __IO uint16_t MSZI : 4; - __IO uint16_t MSPI : 4; - __IO uint16_t MSZC : 4; - __IO uint16_t MSPC : 4; -} stc_mft_frt_tcsc1_field_t; - -typedef struct stc_mft_frt_tcsa2_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa2_field_t; - -typedef struct stc_mft_frt_tcsc2_field -{ - __IO uint16_t MSZI : 4; - __IO uint16_t MSPI : 4; - __IO uint16_t MSZC : 4; - __IO uint16_t MSPC : 4; -} stc_mft_frt_tcsc2_field_t; - -typedef struct stc_mft_frt_tcal_field -{ - __IO uint32_t STOP00 : 1; - __IO uint32_t STOP01 : 1; - __IO uint32_t STOP02 : 1; - __IO uint32_t STOP10 : 1; - __IO uint32_t STOP11 : 1; - __IO uint32_t STOP12 : 1; - __IO uint32_t STOP20 : 1; - __IO uint32_t STOP21 : 1; - __IO uint32_t STOP22 : 1; - __IO uint32_t RESERVED1 : 7; - __IO uint32_t SCLR00 : 1; - __IO uint32_t SCLR01 : 1; - __IO uint32_t SCLR02 : 1; - __IO uint32_t SCLR10 : 1; - __IO uint32_t SCLR11 : 1; - __IO uint32_t SCLR12 : 1; - __IO uint32_t SCLR20 : 1; - __IO uint32_t SCLR21 : 1; - __IO uint32_t SCLR22 : 1; - __IO uint32_t RESERVED2 : 7; -} stc_mft_frt_tcal_field_t; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* MFT_OCU_MODULE register bit fields */ -typedef struct stc_mft_ocu_ocsa10_field -{ - __IO uint8_t CST0 : 1; - __IO uint8_t CST1 : 1; - __IO uint8_t RESERVED1 : 2; - __IO uint8_t IOE0 : 1; - __IO uint8_t IOE1 : 1; - __IO uint8_t IOP0 : 1; - __IO uint8_t IOP1 : 1; -} stc_mft_ocu_ocsa10_field_t; - -typedef struct stc_mft_ocu_ocsb10_field -{ - __IO uint8_t OTD0 : 1; - __IO uint8_t OTD1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t FM4 : 1; -} stc_mft_ocu_ocsb10_field_t; - -typedef struct stc_mft_ocu_ocsa32_field -{ - __IO uint8_t CST0 : 1; - __IO uint8_t CST1 : 1; - __IO uint8_t RESERVED1 : 2; - __IO uint8_t IOE0 : 1; - __IO uint8_t IOE1 : 1; - __IO uint8_t IOP0 : 1; - __IO uint8_t IOP1 : 1; -} stc_mft_ocu_ocsa32_field_t; - -typedef struct stc_mft_ocu_ocsb32_field -{ - __IO uint8_t OTD0 : 1; - __IO uint8_t OTD1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t FM4 : 1; -} stc_mft_ocu_ocsb32_field_t; - -typedef struct stc_mft_ocu_ocsa54_field -{ - __IO uint8_t CST0 : 1; - __IO uint8_t CST1 : 1; - __IO uint8_t RESERVED1 : 2; - __IO uint8_t IOE0 : 1; - __IO uint8_t IOE1 : 1; - __IO uint8_t IOP0 : 1; - __IO uint8_t IOP1 : 1; -} stc_mft_ocu_ocsa54_field_t; - -typedef struct stc_mft_ocu_ocsb54_field -{ - __IO uint8_t OTD0 : 1; - __IO uint8_t OTD1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t FM4 : 1; -} stc_mft_ocu_ocsb54_field_t; - -typedef struct stc_mft_ocu_ocsc_field -{ - __IO uint8_t MOD0 : 1; - __IO uint8_t MOD1 : 1; - __IO uint8_t MOD2 : 1; - __IO uint8_t MOD3 : 1; - __IO uint8_t MOD4 : 1; - __IO uint8_t MOD5 : 1; -} stc_mft_ocu_ocsc_field_t; - -typedef struct stc_mft_ocu_ocfs10_field -{ - __IO uint8_t FSO00 : 1; - __IO uint8_t FSO01 : 1; - __IO uint8_t FSO02 : 1; - __IO uint8_t FSO03 : 1; - __IO uint8_t FSO10 : 1; - __IO uint8_t FSO11 : 1; - __IO uint8_t FSO12 : 1; - __IO uint8_t FSO13 : 1; -} stc_mft_ocu_ocfs10_field_t; - -typedef struct stc_mft_ocu_ocfs32_field -{ - __IO uint8_t FSO00 : 1; - __IO uint8_t FSO01 : 1; - __IO uint8_t FSO02 : 1; - __IO uint8_t FSO03 : 1; - __IO uint8_t FSO10 : 1; - __IO uint8_t FSO11 : 1; - __IO uint8_t FSO12 : 1; - __IO uint8_t FSO13 : 1; -} stc_mft_ocu_ocfs32_field_t; - -typedef struct stc_mft_ocu_ocfs54_field -{ - __IO uint8_t FSO00 : 1; - __IO uint8_t FSO01 : 1; - __IO uint8_t FSO02 : 1; - __IO uint8_t FSO03 : 1; - __IO uint8_t FSO10 : 1; - __IO uint8_t FSO11 : 1; - __IO uint8_t FSO12 : 1; - __IO uint8_t FSO13 : 1; -} stc_mft_ocu_ocfs54_field_t; - -typedef struct stc_mft_ocu_ocsd10_field -{ - __IO uint8_t OCCP0BUFE : 2; - __IO uint8_t OCCP1BUFE : 2; - __IO uint8_t OCSE0BUFE : 2; - __IO uint8_t OCSE1BUFE : 2; -} stc_mft_ocu_ocsd10_field_t; - -typedef struct stc_mft_ocu_ocsd32_field -{ - __IO uint8_t OCCP2BUFE : 2; - __IO uint8_t OCCP3BUFE : 2; - __IO uint8_t OCSE2BUFE : 2; - __IO uint8_t OCSE3BUFE : 2; -} stc_mft_ocu_ocsd32_field_t; - -typedef struct stc_mft_ocu_ocsd54_field -{ - __IO uint8_t OCCP4BUFE : 2; - __IO uint8_t OCCP5BUFE : 2; - __IO uint8_t OCSE4BUFE : 2; - __IO uint8_t OCSE5BUFE : 2; -} stc_mft_ocu_ocsd54_field_t; - -typedef struct stc_mft_ocu_ocse0_field -{ - __IO uint16_t OCSE : 16; -} stc_mft_ocu_ocse0_field_t; - -typedef struct stc_mft_ocu_ocse1_field -{ - __IO uint32_t OCSE : 32; -} stc_mft_ocu_ocse1_field_t; - -typedef struct stc_mft_ocu_ocse2_field -{ - __IO uint16_t OCSE : 16; -} stc_mft_ocu_ocse2_field_t; - -typedef struct stc_mft_ocu_ocse3_field -{ - __IO uint32_t OCSE : 32; -} stc_mft_ocu_ocse3_field_t; - -typedef struct stc_mft_ocu_ocse4_field -{ - __IO uint16_t OCSE : 16; -} stc_mft_ocu_ocse4_field_t; - -typedef struct stc_mft_ocu_ocse5_field -{ - __IO uint32_t OCSE : 32; -} stc_mft_ocu_ocse5_field_t; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* MFT_WFG_MODULE register bit fields */ -typedef struct stc_mft_wfg_wfsa10_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD : 3; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 2; -} stc_mft_wfg_wfsa10_field_t; - -typedef struct stc_mft_wfg_wfsa32_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD : 3; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 2; -} stc_mft_wfg_wfsa32_field_t; - -typedef struct stc_mft_wfg_wfsa54_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD : 3; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 2; -} stc_mft_wfg_wfsa54_field_t; - -typedef struct stc_mft_wfg_wfir_field -{ - __IO uint16_t DTIFA : 1; - __IO uint16_t DTICA : 1; - __IO uint16_t DTIFB : 1; - __IO uint16_t DTICB : 1; - __IO uint16_t TMIF10 : 1; - __IO uint16_t TMIC10 : 1; - __IO uint16_t TMIE10 : 1; - __IO uint16_t TMIS10 : 1; - __IO uint16_t TMIF32 : 1; - __IO uint16_t TMIC32 : 1; - __IO uint16_t TMIE32 : 1; - __IO uint16_t TMIS32 : 1; - __IO uint16_t TMIF54 : 1; - __IO uint16_t TMIC54 : 1; - __IO uint16_t TMIE54 : 1; - __IO uint16_t TMIS54 : 1; -} stc_mft_wfg_wfir_field_t; - -typedef struct stc_mft_wfg_nzcl_field -{ - __IO uint16_t DTIEA : 1; - __IO uint16_t NWS0 : 1; - __IO uint16_t NWS1 : 1; - __IO uint16_t NWS2 : 1; - __IO uint16_t SDTI : 1; - __IO uint16_t DTIEB : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t DIMA : 1; - __IO uint16_t DIMB : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t WIM10 : 1; - __IO uint16_t WIM32 : 1; - __IO uint16_t WIM54 : 1; - uint16_t RESERVED3 : 1; -} stc_mft_wfg_nzcl_field_t; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* MFT_ICU_MODULE register bit fields */ -typedef struct stc_mft_icu_icfs10_field -{ - __IO uint8_t FSI00 : 1; - __IO uint8_t FSI01 : 1; - __IO uint8_t FSI02 : 1; - __IO uint8_t FSI03 : 1; - __IO uint8_t FSI10 : 1; - __IO uint8_t FSI11 : 1; - __IO uint8_t FSI12 : 1; - __IO uint8_t FSI13 : 1; -} stc_mft_icu_icfs10_field_t; - -typedef struct stc_mft_icu_icfs32_field -{ - __IO uint8_t FSI00 : 1; - __IO uint8_t FSI01 : 1; - __IO uint8_t FSI02 : 1; - __IO uint8_t FSI03 : 1; - __IO uint8_t FSI10 : 1; - __IO uint8_t FSI11 : 1; - __IO uint8_t FSI12 : 1; - __IO uint8_t FSI13 : 1; -} stc_mft_icu_icfs32_field_t; - -typedef struct stc_mft_icu_icsa10_field -{ - __IO uint8_t EG00 : 1; - __IO uint8_t EG01 : 1; - __IO uint8_t EG10 : 1; - __IO uint8_t EG11 : 1; - __IO uint8_t ICE0 : 1; - __IO uint8_t ICE1 : 1; - __IO uint8_t ICP0 : 1; - __IO uint8_t ICP1 : 1; -} stc_mft_icu_icsa10_field_t; - -typedef struct stc_mft_icu_icsb10_field -{ - __IO uint8_t IEI0 : 1; - __IO uint8_t IEI1 : 1; -} stc_mft_icu_icsb10_field_t; - -typedef struct stc_mft_icu_icsa32_field -{ - __IO uint8_t EG00 : 1; - __IO uint8_t EG01 : 1; - __IO uint8_t EG10 : 1; - __IO uint8_t EG11 : 1; - __IO uint8_t ICE0 : 1; - __IO uint8_t ICE1 : 1; - __IO uint8_t ICP0 : 1; - __IO uint8_t ICP1 : 1; -} stc_mft_icu_icsa32_field_t; - -typedef struct stc_mft_icu_icsb32_field -{ - __IO uint8_t IEI0 : 1; - __IO uint8_t IEI1 : 1; -} stc_mft_icu_icsb32_field_t; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* MFT_ADCMP_MODULE register bit fields */ -typedef struct stc_mft_adcmp_acfs10_field -{ - __IO uint8_t FSA0 : 4; - __IO uint8_t FSA1 : 4; -} stc_mft_adcmp_acfs10_field_t; - -typedef struct stc_mft_adcmp_acfs32_field -{ - __IO uint8_t FSA2 : 4; - __IO uint8_t FSA3 : 4; -} stc_mft_adcmp_acfs32_field_t; - -typedef struct stc_mft_adcmp_acfs54_field -{ - __IO uint8_t FSA4 : 4; - __IO uint8_t FSA5 : 4; -} stc_mft_adcmp_acfs54_field_t; - -typedef struct stc_mft_adcmp_acsa_field -{ - __IO uint16_t CE10 : 2; - __IO uint16_t CE32 : 2; - __IO uint16_t CE54 : 2; - uint16_t RESERVED1 : 2; - __IO uint16_t SEL10 : 2; - __IO uint16_t SEL32 : 2; - __IO uint16_t SEL54 : 2; -} stc_mft_adcmp_acsa_field_t; - -typedef struct stc_mft_adcmp_acsc_field -{ - __IO uint8_t BUFE : 2; - __IO uint8_t ADSEL : 3; - uint8_t RESERVED1 : 3; -} stc_mft_adcmp_acsc_field_t; - -typedef struct stc_mft_adcmp_acsd_field -{ - __IO uint8_t AMOD : 1; - __IO uint8_t OCUS : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t DE : 1; - __IO uint8_t PE : 1; - __IO uint8_t UE : 1; - __IO uint8_t ZE : 1; -} stc_mft_adcmp_acsd_field_t; - -/****************************************************************************** - * DAC MODULE - ******************************************************************************/ -typedef struct stc_dacr_field -{ - __IO uint8_t DAE : 1; - __IO uint8_t DRDY : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t DAC10 : 1; - __IO uint8_t DDAS : 1; - __IO uint8_t RESERVED2 : 2; -} stc_dacr_field_t; - -typedef struct stc_dadr_field -{ - __IO uint16_t DA : 12; - __IO uint16_t RESERVED : 4; -} stc_dadr_field_t; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* MFT_PPG_MODULE register bit fields */ -typedef struct stc_mft_ppg_ttcr0_field -{ - __IO uint8_t STR0 : 1; - __IO uint8_t MONI0 : 1; - __IO uint8_t CS00 : 1; - __IO uint8_t CS01 : 1; - __IO uint8_t TRG0O : 1; - __IO uint8_t TRG2O : 1; - __IO uint8_t TRG4O : 1; - __IO uint8_t TRG6O : 1; -} stc_mft_ppg_ttcr0_field_t; - -typedef struct stc_mft_ppg_ttcr1_field -{ - __IO uint8_t STR1 : 1; - __IO uint8_t MONI1 : 1; - __IO uint8_t CS10 : 1; - __IO uint8_t CS11 : 1; - __IO uint8_t TRG1O : 1; - __IO uint8_t TRG3O : 1; - __IO uint8_t TRG5O : 1; - __IO uint8_t TRG7O : 1; -} stc_mft_ppg_ttcr1_field_t; - -typedef struct stc_mft_ppg_ttcr2_field -{ - __IO uint8_t STR2 : 1; - __IO uint8_t MONI2 : 1; - __IO uint8_t CS20 : 1; - __IO uint8_t CS21 : 1; - __IO uint8_t TRG16O : 1; - __IO uint8_t TRG18O : 1; - __IO uint8_t TRG20O : 1; - __IO uint8_t TRG22O : 1; -} stc_mft_ppg_ttcr2_field_t; - -typedef struct stc_mft_ppg_trg_field -{ - __IO uint16_t PEN00 : 1; - __IO uint16_t PEN01 : 1; - __IO uint16_t PEN02 : 1; - __IO uint16_t PEN03 : 1; - __IO uint16_t PEN04 : 1; - __IO uint16_t PEN05 : 1; - __IO uint16_t PEN06 : 1; - __IO uint16_t PEN07 : 1; - __IO uint16_t PEN08 : 1; - __IO uint16_t PEN09 : 1; - __IO uint16_t PEN10 : 1; - __IO uint16_t PEN11 : 1; - __IO uint16_t PEN12 : 1; - __IO uint16_t PEN13 : 1; - __IO uint16_t PEN14 : 1; - __IO uint16_t PEN15 : 1; -} stc_mft_ppg_trg0_field_t; - -typedef struct stc_mft_ppg_trg1_field -{ - __IO uint16_t PEN16 : 1; - __IO uint16_t PEN17 : 1; - __IO uint16_t PEN18 : 1; - __IO uint16_t PEN19 : 1; - __IO uint16_t PEN20 : 1; - __IO uint16_t PEN21 : 1; - __IO uint16_t PEN22 : 1; - __IO uint16_t PEN23 : 1; -} stc_mft_ppg_trg1_field_t; - -typedef struct stc_mft_ppg_revc_field -{ - __IO uint16_t REV00 : 1; - __IO uint16_t REV01 : 1; - __IO uint16_t REV02 : 1; - __IO uint16_t REV03 : 1; - __IO uint16_t REV04 : 1; - __IO uint16_t REV05 : 1; - __IO uint16_t REV06 : 1; - __IO uint16_t REV07 : 1; - __IO uint16_t REV08 : 1; - __IO uint16_t REV09 : 1; - __IO uint16_t REV10 : 1; - __IO uint16_t REV11 : 1; - __IO uint16_t REV12 : 1; - __IO uint16_t REV13 : 1; - __IO uint16_t REV14 : 1; - __IO uint16_t REV15 : 1; -} stc_mft_ppg_revc0_field_t; - -typedef struct stc_mft_ppg_revc1_field -{ - __IO uint16_t REV16 : 1; - __IO uint16_t REV17 : 1; - __IO uint16_t REV18 : 1; - __IO uint16_t REV19 : 1; - __IO uint16_t REV20 : 1; - __IO uint16_t REV21 : 1; - __IO uint16_t REV22 : 1; - __IO uint16_t REV23 : 1; -} stc_mft_ppg_revc1_field_t; - -typedef struct stc_mft_ppg_ppgc1_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc1_field_t; - -typedef struct stc_mft_ppg_ppgc0_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc0_field_t; - -typedef struct stc_mft_ppg_ppgc3_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc3_field_t; - -typedef struct stc_mft_ppg_ppgc2_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc2_field_t; - -typedef struct stc_mft_ppg_gatec0_field -{ - __IO uint8_t EDGE0 : 1; - __IO uint8_t STRG0 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE2 : 1; - __IO uint8_t STRG2 : 1; -} stc_mft_ppg_gatec0_field_t; - -typedef struct stc_mft_ppg_ppgc5_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc5_field_t; - -typedef struct stc_mft_ppg_ppgc4_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc4_field_t; - -typedef struct stc_mft_ppg_ppgc7_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc7_field_t; - -typedef struct stc_mft_ppg_ppgc6_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc6_field_t; - -typedef struct stc_mft_ppg_gatec4_field -{ - __IO uint8_t EDGE4 : 1; - __IO uint8_t STRG4 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE6 : 1; - __IO uint8_t STRG6 : 1; -} stc_mft_ppg_gatec4_field_t; - -typedef struct stc_mft_ppg_ppgc9_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc9_field_t; - -typedef struct stc_mft_ppg_ppgc8_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc8_field_t; - -typedef struct stc_mft_ppg_ppgc11_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc11_field_t; - -typedef struct stc_mft_ppg_ppgc10_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc10_field_t; - -typedef struct stc_mft_ppg_gatec8_field -{ - __IO uint8_t EDGE8 : 1; - __IO uint8_t STRG8 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE10 : 1; - __IO uint8_t STRG10 : 1; -} stc_mft_ppg_gatec8_field_t; - -typedef struct stc_mft_ppg_ppgc13_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc13_field_t; - -typedef struct stc_mft_ppg_ppgc12_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc12_field_t; - -typedef struct stc_mft_ppg_ppgc15_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc15_field_t; - -typedef struct stc_mft_ppg_ppgc14_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc14_field_t; - -typedef struct stc_mft_ppg_gatec12_field -{ - __IO uint8_t EDGE12 : 1; - __IO uint8_t STRG12 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE14 : 1; - __IO uint8_t STRG14 : 1; -} stc_mft_ppg_gatec12_field_t; - -typedef struct stc_mft_ppg_ppgc17_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc17_field_t; - -typedef struct stc_mft_ppg_ppgc16_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc16_field_t; - -typedef struct stc_mft_ppg_ppgc19_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc19_field_t; - -typedef struct stc_mft_ppg_ppgc18_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc18_field_t; - -typedef struct stc_mft_ppg_gatec16_field -{ - __IO uint8_t EDGE16 : 1; - __IO uint8_t STRG16 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE18 : 1; - __IO uint8_t STRG18 : 1; -} stc_mft_ppg_gatec16_field_t; - -typedef struct stc_mft_ppg_ppgc21_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc21_field_t; - -typedef struct stc_mft_ppg_ppgc20_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc20_field_t; - -typedef struct stc_mft_ppg_ppgc23_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc23_field_t; - -typedef struct stc_mft_ppg_ppgc22_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc22_field_t; - -typedef struct stc_mft_ppg_gatec20_field -{ - __IO uint8_t EDGE20 : 1; - __IO uint8_t STRG20 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE22 : 1; - __IO uint8_t STRG22 : 1; -} stc_mft_ppg_gatec20_field_t; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* BT_PPG_MODULE register bit fields */ -typedef struct stc_bt_ppg_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_ppg_tmcr_field_t; - -typedef struct stc_bt_ppg_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_ppg_stc_field_t; - -typedef struct stc_bt_ppg_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_ppg_tmcr2_field_t; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* BT_PWM_MODULE register bit fields */ -typedef struct stc_bt_pwm_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwm_tmcr_field_t; - -typedef struct stc_bt_pwm_stc_field -{ - __IO uint8_t UDIR : 1; - __IO uint8_t DTIR : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t UDIE : 1; - __IO uint8_t DTIE : 1; - __IO uint8_t TGIE : 1; -} stc_bt_pwm_stc_field_t; - -typedef struct stc_bt_pwm_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwm_tmcr2_field_t; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* BT_RT_MODULE register bit fields */ -typedef struct stc_bt_rt_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_rt_tmcr_field_t; - -typedef struct stc_bt_rt_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_rt_stc_field_t; - -typedef struct stc_bt_rt_tmcr2_field -{ - __IO uint8_t CKS3 : 1; - __IO uint8_t RESERVED1 : 6; - __IO uint8_t GATE : 1; -} stc_bt_rt_tmcr2_field_t; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* BT_PWC_MODULE register bit fields */ -typedef struct stc_bt_pwc_tmcr_field -{ - uint16_t RESERVED1 : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t EGS2 : 1; - uint16_t RESERVED3 : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwc_tmcr_field_t; - -typedef struct stc_bt_pwc_stc_field -{ - __IO uint8_t OVIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t EDIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t OVIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t EDIE : 1; - __IO uint8_t ERR : 1; -} stc_bt_pwc_stc_field_t; - -typedef struct stc_bt_pwc_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwc_tmcr2_field_t; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* BTIOSEL03_MODULE register bit fields */ -typedef struct stc_btiosel03_btsel0123_field -{ - __IO uint8_t SEL01_0 : 1; - __IO uint8_t SEL01_1 : 1; - __IO uint8_t SEL01_2 : 1; - __IO uint8_t SEL01_3 : 1; - __IO uint8_t SEL23_0 : 1; - __IO uint8_t SEL23_1 : 1; - __IO uint8_t SEL23_2 : 1; - __IO uint8_t SEL23_3 : 1; -} stc_btiosel03_btsel0123_field_t; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* BTIOSEL47_MODULE register bit fields */ -typedef struct stc_btiosel47_btsel4567_field -{ - __IO uint8_t SEL45_0 : 1; - __IO uint8_t SEL45_1 : 1; - __IO uint8_t SEL45_2 : 1; - __IO uint8_t SEL45_3 : 1; - __IO uint8_t SEL67_0 : 1; - __IO uint8_t SEL67_1 : 1; - __IO uint8_t SEL67_2 : 1; - __IO uint8_t SEL67_3 : 1; -} stc_btiosel47_btsel4567_field_t; - -/****************************************************************************** - * BTIOSEL811_MODULE - ******************************************************************************/ -/* BTIOSEL811_MODULE register bit fields */ -typedef struct stc_btiosel8b_btsel89ab_field -{ - __IO uint8_t SEL89_0 : 1; - __IO uint8_t SEL89_1 : 1; - __IO uint8_t SEL89_2 : 1; - __IO uint8_t SEL89_3 : 1; - __IO uint8_t SELAB_0 : 1; - __IO uint8_t SELAB_1 : 1; - __IO uint8_t SELAB_2 : 1; - __IO uint8_t SELAB_3 : 1; -} stc_btiosel8b_btsel89ab_field_t; - -/****************************************************************************** - * BTIOSEL1215_MODULE - ******************************************************************************/ -/* BTIOSEL1215_MODULE register bit fields */ -typedef struct stc_btioselcf_btselcdef_field -{ - __IO uint8_t SELCD_0 : 1; - __IO uint8_t SELCD_1 : 1; - __IO uint8_t SELCD_2 : 1; - __IO uint8_t SELCD_3 : 1; - __IO uint8_t SELEF_0 : 1; - __IO uint8_t SELEF_1 : 1; - __IO uint8_t SELEF_2 : 1; - __IO uint8_t SELEF_3 : 1; -} stc_btioselcf_btselcdef_field_t; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* SBSSR_MODULE register bit fields */ -typedef struct stc_sbssr_btsssr_field -{ - __IO uint16_t SSR0 : 1; - __IO uint16_t SSR1 : 1; - __IO uint16_t SSR2 : 1; - __IO uint16_t SSR3 : 1; - __IO uint16_t SSR4 : 1; - __IO uint16_t SSR5 : 1; - __IO uint16_t SSR6 : 1; - __IO uint16_t SSR7 : 1; - __IO uint16_t SSR8 : 1; - __IO uint16_t SSR9 : 1; - __IO uint16_t SSR10 : 1; - __IO uint16_t SSR11 : 1; - __IO uint16_t SSR12 : 1; - __IO uint16_t SSR13 : 1; - __IO uint16_t SSR14 : 1; - __IO uint16_t SSR15 : 1; -} stc_sbssr_btsssr_field_t; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* QPRC_MODULE register bit fields */ -typedef struct stc_qprc_qicr_field -{ - __IO uint16_t QPCMIE : 1; - __IO uint16_t QPCMF : 1; - __IO uint16_t QPRCMIE : 1; - __IO uint16_t QPRCMF : 1; - __IO uint16_t OUZIE : 1; - __IO uint16_t UFDF : 1; - __IO uint16_t OFDF : 1; - __IO uint16_t ZIIF : 1; - __IO uint16_t CDCIE : 1; - __IO uint16_t CDCF : 1; - __IO uint16_t DIRPC : 1; - __IO uint16_t DIROU : 1; - __IO uint16_t QPCNRCMIE : 1; - __IO uint16_t QPCNRCMF : 1; -} stc_qprc_qicr_field_t; - -typedef struct stc_qprc_qicrl_field -{ - __IO uint8_t QPCMIE : 1; - __IO uint8_t QPCMF : 1; - __IO uint8_t QPRCMIE : 1; - __IO uint8_t QPRCMF : 1; - __IO uint8_t OUZIE : 1; - __IO uint8_t UFDF : 1; - __IO uint8_t OFDF : 1; - __IO uint8_t ZIIF : 1; -} stc_qprc_qicrl_field_t; - -typedef struct stc_qprc_qicrh_field -{ - __IO uint8_t CDCIE : 1; - __IO uint8_t CDCF : 1; - __IO uint8_t DIRPC : 1; - __IO uint8_t DIROU : 1; - __IO uint8_t QPCNRCMIE : 1; - __IO uint8_t QPCNRCMF : 1; -} stc_qprc_qicrh_field_t; - -typedef struct stc_qprc_qcr_field -{ - __IO uint16_t PCM0 : 1; - __IO uint16_t PCM1 : 1; - __IO uint16_t RCM0 : 1; - __IO uint16_t RCM1 : 1; - __IO uint16_t PSTP : 1; - __IO uint16_t CGSC : 1; - __IO uint16_t RSEL : 1; - __IO uint16_t SWAP : 1; - __IO uint16_t PCRM0 : 1; - __IO uint16_t PCRM1 : 1; - __IO uint16_t AES0 : 1; - __IO uint16_t AES1 : 1; - __IO uint16_t BES0 : 1; - __IO uint16_t BES1 : 1; - __IO uint16_t CGE0 : 1; - __IO uint16_t CGE1 : 1; -} stc_qprc_qcr_field_t; - -typedef struct stc_qprc_qcrl_field -{ - __IO uint8_t PCM0 : 1; - __IO uint8_t PCM1 : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t PSTP : 1; - __IO uint8_t CGSC : 1; - __IO uint8_t RSEL : 1; - __IO uint8_t SWAP : 1; -} stc_qprc_qcrl_field_t; - -typedef struct stc_qprc_qcrh_field -{ - __IO uint8_t PCRM0 : 1; - __IO uint8_t PCRM1 : 1; - __IO uint8_t AES0 : 1; - __IO uint8_t AES1 : 1; - __IO uint8_t BES0 : 1; - __IO uint8_t BES1 : 1; - __IO uint8_t CGE0 : 1; - __IO uint8_t CGE1 : 1; -} stc_qprc_qcrh_field_t; - -typedef struct stc_qprc_qecr_field -{ - __IO uint16_t ORNGMD : 1; - __IO uint16_t ORNGF : 1; - __IO uint16_t ORNGIE : 1; -} stc_qprc_qecr_field_t; - -/****************************************************************************** - * QPRC_NF_MODULE - ******************************************************************************/ -/* QPRC_NF_MODULE register bit fields */ -typedef struct stc_qprc_nf_nfctla_field -{ - __IO uint8_t AINNWS : 3; - uint8_t RESERVED1 : 1; - __IO uint8_t AINLV : 1; - __IO uint8_t AINMD : 1; -} stc_qprc_nf_nfctla_field_t; - -typedef struct stc_qprc_nf_nfctlb_field -{ - __IO uint8_t BINNWS : 3; - uint8_t RESERVED1 : 1; - __IO uint8_t BINLV : 1; - __IO uint8_t BINMD : 1; -} stc_qprc_nf_nfctlb_field_t; - -typedef struct stc_qprc_nf_nfrctlz_field -{ - __IO uint8_t ZINNWS : 3; - uint8_t RESERVED1 : 1; - __IO uint8_t ZINLV : 1; - __IO uint8_t ZINMD : 1; -} stc_qprc_nf_nfrctlz_field_t; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* ADC12_MODULE register bit fields */ -typedef struct stc_adc_adsr_field -{ - __IO uint8_t SCS : 1; - __IO uint8_t PCS : 1; - __IO uint8_t PCNS : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t FDAS : 1; - __IO uint8_t ADSTP : 1; -} stc_adc_adsr_field_t; - -typedef struct stc_adc_adcr_field -{ - __IO uint8_t OVRIE : 1; - __IO uint8_t CMPIE : 1; - __IO uint8_t PCIE : 1; - __IO uint8_t SCIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t CMPIF : 1; - __IO uint8_t PCIF : 1; - __IO uint8_t SCIF : 1; -} stc_adc_adcr_field_t; - -typedef struct stc_adc_sfns_field -{ - __IO uint8_t SFS0 : 1; - __IO uint8_t SFS1 : 1; - __IO uint8_t SFS2 : 1; - __IO uint8_t SFS3 : 1; -} stc_adc_sfns_field_t; - -typedef struct stc_adc_sccr_field -{ - __IO uint8_t SSTR : 1; - __IO uint8_t SHEN : 1; - __IO uint8_t RPT : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t SFCLR : 1; - __IO uint8_t SOVR : 1; - __IO uint8_t SFUL : 1; - __IO uint8_t SEMP : 1; -} stc_adc_sccr_field_t; - -typedef struct stc_adc_scfd_field -{ - __IO uint32_t SC0 : 1; - __IO uint32_t SC1 : 1; - __IO uint32_t SC2 : 1; - __IO uint32_t SC3 : 1; - __IO uint32_t SC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; - __IO uint32_t SD3 : 1; - __IO uint32_t SD4 : 1; - __IO uint32_t SD5 : 1; - __IO uint32_t SD6 : 1; - __IO uint32_t SD7 : 1; - __IO uint32_t SD8 : 1; - __IO uint32_t SD9 : 1; - __IO uint32_t SD10 : 1; - __IO uint32_t SD11 : 1; -} stc_adc_scfd_field_t; - -typedef struct stc_adc_scfdl_field -{ - __IO uint16_t SC0 : 1; - __IO uint16_t SC1 : 1; - __IO uint16_t SC2 : 1; - __IO uint16_t SC3 : 1; - __IO uint16_t SC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t INVL : 1; -} stc_adc_scfdl_field_t; - -typedef struct stc_adc_scfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t SD0 : 1; - __IO uint16_t SD1 : 1; - __IO uint16_t SD2 : 1; - __IO uint16_t SD3 : 1; - __IO uint16_t SD4 : 1; - __IO uint16_t SD5 : 1; - __IO uint16_t SD6 : 1; - __IO uint16_t SD7 : 1; - __IO uint16_t SD8 : 1; - __IO uint16_t SD9 : 1; - __IO uint16_t SD10 : 1; - __IO uint16_t SD11 : 1; -} stc_adc_scfdh_field_t; - -typedef struct stc_adc_scis23_field -{ - __IO uint16_t AN16 : 1; - __IO uint16_t AN17 : 1; - __IO uint16_t AN18 : 1; - __IO uint16_t AN19 : 1; - __IO uint16_t AN20 : 1; - __IO uint16_t AN21 : 1; - __IO uint16_t AN22 : 1; - __IO uint16_t AN23 : 1; - __IO uint16_t AN24 : 1; - __IO uint16_t AN25 : 1; - __IO uint16_t AN26 : 1; - __IO uint16_t AN27 : 1; - __IO uint16_t AN28 : 1; - __IO uint16_t AN29 : 1; - __IO uint16_t AN30 : 1; - __IO uint16_t AN31 : 1; -} stc_adc_scis23_field_t; - -typedef struct stc_adc_scis2_field -{ - __IO uint8_t AN16 : 1; - __IO uint8_t AN17 : 1; - __IO uint8_t AN18 : 1; - __IO uint8_t AN19 : 1; - __IO uint8_t AN20 : 1; - __IO uint8_t AN21 : 1; - __IO uint8_t AN22 : 1; - __IO uint8_t AN23 : 1; -} stc_adc_scis2_field_t; - -typedef struct stc_adc_scis3_field -{ - __IO uint8_t AN24 : 1; - __IO uint8_t AN25 : 1; - __IO uint8_t AN26 : 1; - __IO uint8_t AN27 : 1; - __IO uint8_t AN28 : 1; - __IO uint8_t AN29 : 1; - __IO uint8_t AN30 : 1; - __IO uint8_t AN31 : 1; -} stc_adc_scis3_field_t; - -typedef struct stc_adc_scis01_field -{ - __IO uint16_t AN0 : 1; - __IO uint16_t AN1 : 1; - __IO uint16_t AN2 : 1; - __IO uint16_t AN3 : 1; - __IO uint16_t AN4 : 1; - __IO uint16_t AN5 : 1; - __IO uint16_t AN6 : 1; - __IO uint16_t AN7 : 1; - __IO uint16_t AN8 : 1; - __IO uint16_t AN9 : 1; - __IO uint16_t AN10 : 1; - __IO uint16_t AN11 : 1; - __IO uint16_t AN12 : 1; - __IO uint16_t AN13 : 1; - __IO uint16_t AN14 : 1; - __IO uint16_t AN15 : 1; -} stc_adc_scis01_field_t; - -typedef struct stc_adc_scis0_field -{ - __IO uint8_t AN0 : 1; - __IO uint8_t AN1 : 1; - __IO uint8_t AN2 : 1; - __IO uint8_t AN3 : 1; - __IO uint8_t AN4 : 1; - __IO uint8_t AN5 : 1; - __IO uint8_t AN6 : 1; - __IO uint8_t AN7 : 1; -} stc_adc_scis0_field_t; - -typedef struct stc_adc_scis1_field -{ - __IO uint8_t AN8 : 1; - __IO uint8_t AN9 : 1; - __IO uint8_t AN10 : 1; - __IO uint8_t AN11 : 1; - __IO uint8_t AN12 : 1; - __IO uint8_t AN13 : 1; - __IO uint8_t AN14 : 1; - __IO uint8_t AN15 : 1; -} stc_adc_scis1_field_t; - -typedef struct stc_adc_pfns_field -{ - __IO uint8_t PFS : 2; - uint8_t RESERVED1 : 2; - __IO uint8_t TEST0 : 1; - __IO uint8_t TEST1 : 1; -} stc_adc_pfns_field_t; - -typedef struct stc_adc_pccr_field -{ - __IO uint8_t PSTR : 1; - __IO uint8_t PHEN : 1; - __IO uint8_t PEEN : 1; - __IO uint8_t ESCE : 1; - __IO uint8_t PFCLR : 1; - __IO uint8_t POVR : 1; - __IO uint8_t PFUL : 1; - __IO uint8_t PEMP : 1; -} stc_adc_pccr_field_t; - -typedef struct stc_adc_pcfd_field -{ - __IO uint32_t PC0 : 1; - __IO uint32_t PC1 : 1; - __IO uint32_t PC2 : 1; - __IO uint32_t PC3 : 1; - __IO uint32_t PC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - __IO uint32_t RS2 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t PD0 : 1; - __IO uint32_t PD1 : 1; - __IO uint32_t PD2 : 1; - __IO uint32_t PD3 : 1; - __IO uint32_t PD4 : 1; - __IO uint32_t PD5 : 1; - __IO uint32_t PD6 : 1; - __IO uint32_t PD7 : 1; - __IO uint32_t PD8 : 1; - __IO uint32_t PD9 : 1; - __IO uint32_t PD10 : 1; - __IO uint32_t PD11 : 1; -} stc_adc_pcfd_field_t; - -typedef struct stc_adc_pcfdl_field -{ - __IO uint16_t PC0 : 1; - __IO uint16_t PC1 : 1; - __IO uint16_t PC2 : 1; - __IO uint16_t PC3 : 1; - __IO uint16_t PC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - __IO uint16_t RS2 : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t INVL : 1; -} stc_adc_pcfdl_field_t; - -typedef struct stc_adc_pcfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t PD0 : 1; - __IO uint16_t PD1 : 1; - __IO uint16_t PD2 : 1; - __IO uint16_t PD3 : 1; - __IO uint16_t PD4 : 1; - __IO uint16_t PD5 : 1; - __IO uint16_t PD6 : 1; - __IO uint16_t PD7 : 1; - __IO uint16_t PD8 : 1; - __IO uint16_t PD9 : 1; - __IO uint16_t PD10 : 1; - __IO uint16_t PD11 : 1; -} stc_adc_pcfdh_field_t; - -typedef struct stc_adc_pcis_field -{ - __IO uint8_t P1A : 3; - __IO uint8_t P2A : 5; -} stc_adc_pcis_field_t; - -typedef struct stc_adc_cmpcr_field -{ - __IO uint8_t CCH : 5; - __IO uint8_t CMD0 : 1; - __IO uint8_t CMD1 : 1; - __IO uint8_t CMPEN : 1; -} stc_adc_cmpcr_field_t; - -typedef struct stc_adc_cmpd_field -{ - uint16_t RESERVED1 : 6; - __IO uint16_t CMAD2 : 1; - __IO uint16_t CMAD3 : 1; - __IO uint16_t CMAD4 : 1; - __IO uint16_t CMAD5 : 1; - __IO uint16_t CMAD6 : 1; - __IO uint16_t CMAD7 : 1; - __IO uint16_t CMAD8 : 1; - __IO uint16_t CMAD9 : 1; - __IO uint16_t CMAD10 : 1; - __IO uint16_t CMAD11 : 1; -} stc_adc_cmpd_field_t; - -typedef struct stc_adc_adss23_field -{ - __IO uint16_t TS16 : 1; - __IO uint16_t TS17 : 1; - __IO uint16_t TS18 : 1; - __IO uint16_t TS19 : 1; - __IO uint16_t TS20 : 1; - __IO uint16_t TS21 : 1; - __IO uint16_t TS22 : 1; - __IO uint16_t TS23 : 1; - __IO uint16_t TS24 : 1; - __IO uint16_t TS25 : 1; - __IO uint16_t TS26 : 1; - __IO uint16_t TS27 : 1; - __IO uint16_t TS28 : 1; - __IO uint16_t TS29 : 1; - __IO uint16_t TS30 : 1; - __IO uint16_t TS31 : 1; -} stc_adc_adss23_field_t; - -typedef struct stc_adc_adss2_field -{ - __IO uint8_t TS16 : 1; - __IO uint8_t TS17 : 1; - __IO uint8_t TS18 : 1; - __IO uint8_t TS19 : 1; - __IO uint8_t TS20 : 1; - __IO uint8_t TS21 : 1; - __IO uint8_t TS22 : 1; - __IO uint8_t TS23 : 1; -} stc_adc_adss2_field_t; - -typedef struct stc_adc_adss3_field -{ - __IO uint8_t TS24 : 1; - __IO uint8_t TS25 : 1; - __IO uint8_t TS26 : 1; - __IO uint8_t TS27 : 1; - __IO uint8_t TS28 : 1; - __IO uint8_t TS29 : 1; - __IO uint8_t TS30 : 1; - __IO uint8_t TS31 : 1; -} stc_adc_adss3_field_t; - -typedef struct stc_adc_adss01_field -{ - __IO uint16_t TS0 : 1; - __IO uint16_t TS1 : 1; - __IO uint16_t TS2 : 1; - __IO uint16_t TS3 : 1; - __IO uint16_t TS4 : 1; - __IO uint16_t TS5 : 1; - __IO uint16_t TS6 : 1; - __IO uint16_t TS7 : 1; - __IO uint16_t TS8 : 1; - __IO uint16_t TS9 : 1; - __IO uint16_t TS10 : 1; - __IO uint16_t TS11 : 1; - __IO uint16_t TS12 : 1; - __IO uint16_t TS13 : 1; - __IO uint16_t TS14 : 1; - __IO uint16_t TS15 : 1; -} stc_adc_adss01_field_t; - -typedef struct stc_adc_adss0_field -{ - __IO uint8_t TS0 : 1; - __IO uint8_t TS1 : 1; - __IO uint8_t TS2 : 1; - __IO uint8_t TS3 : 1; - __IO uint8_t TS4 : 1; - __IO uint8_t TS5 : 1; - __IO uint8_t TS6 : 1; - __IO uint8_t TS7 : 1; -} stc_adc_adss0_field_t; - -typedef struct stc_adc_adss1_field -{ - __IO uint8_t TS8 : 1; - __IO uint8_t TS9 : 1; - __IO uint8_t TS10 : 1; - __IO uint8_t TS11 : 1; - __IO uint8_t TS12 : 1; - __IO uint8_t TS13 : 1; - __IO uint8_t TS14 : 1; - __IO uint8_t TS15 : 1; -} stc_adc_adss1_field_t; - -typedef struct stc_adc_adst01_field -{ - __IO uint16_t ST10 : 1; - __IO uint16_t ST11 : 1; - __IO uint16_t ST12 : 1; - __IO uint16_t ST13 : 1; - __IO uint16_t ST14 : 1; - __IO uint16_t STX10 : 1; - __IO uint16_t STX11 : 1; - __IO uint16_t STX12 : 1; - __IO uint16_t ST00 : 1; - __IO uint16_t ST01 : 1; - __IO uint16_t ST02 : 1; - __IO uint16_t ST03 : 1; - __IO uint16_t ST04 : 1; - __IO uint16_t STX00 : 1; - __IO uint16_t STX01 : 1; - __IO uint16_t STX02 : 1; -} stc_adc_adst01_field_t; - -typedef struct stc_adc_adst1_field -{ - __IO uint8_t ST1 : 5; - __IO uint8_t STX1 : 3; -} stc_adc_adst1_field_t; - -typedef struct stc_adc_adst0_field -{ - __IO uint8_t ST0 : 5; - __IO uint8_t STX0 : 3; -} stc_adc_adst0_field_t; - -typedef struct stc_adc_adct_field -{ - __IO uint8_t CT0 : 1; - __IO uint8_t CT1 : 1; - __IO uint8_t CT2 : 1; -} stc_adc_adct_field_t; - -typedef struct stc_adc_prtsl_field -{ - __IO uint8_t PRTSL0 : 1; - __IO uint8_t PRTSL1 : 1; - __IO uint8_t PRTSL2 : 1; - __IO uint8_t PRTSL3 : 1; -} stc_adc_prtsl_field_t; - -typedef struct stc_adc_sctsl_field -{ - __IO uint8_t SCTSL0 : 1; - __IO uint8_t SCTSL1 : 1; - __IO uint8_t SCTSL2 : 1; - __IO uint8_t SCTSL3 : 1; -} stc_adc_sctsl_field_t; - -typedef struct stc_adc_adcen_field -{ - __IO uint16_t ENBL : 1; - __IO uint16_t READY : 1; - __IO uint16_t RESERVED : 6; - __IO uint16_t ENBLTIME : 8; -} stc_adc_adcen_field_t; - -typedef struct stc_adc_wcmpdh_field -{ - uint16_t RESERVED : 6; - __IO uint16_t CMHD : 10; -} stc_adc_wcmpdh_field_t; - -typedef struct stc_adc_wcmpcr_field -{ - uint8_t RESERVED : 2; - __IO uint8_t RCOE : 1; - __IO uint8_t RCOIE : 1; - __IO uint8_t RCOIRRS : 1; - __IO uint8_t RCOCD : 3; -} stc_adc_wcmpcr_field_t; - -typedef struct stc_adc_wcmpdl_field -{ - uint16_t RESERVED : 6; - __IO uint16_t CMLD : 10; -} stc_adc_wcmpdl_field_t; - -typedef struct stc_adc_wcmpsr_field -{ - __IO uint8_t WCCH : 5; - __IO uint8_t WCMD : 1; - __IO uint8_t RESERVED : 2; -} stc_adc_wcmpsr_field_t; - -typedef struct stc_adc_wcmrcot_field -{ - __IO uint32_t RCOOF : 1; - uint32_t RESERVED : 31; -} stc_adc_wcmrcot_field_t; - -typedef struct stc_adc_wcmrcif_field -{ - __IO uint32_t RCINT : 1; - uint32_t RESERVED : 31; -} stc_adc_wcmrcif_field_t; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CRTRIM_MODULE register bit fields */ -typedef struct stc_crtrim_mcr_psr_field -{ - __IO uint8_t CSR : 3; -} stc_crtrim_mcr_psr_field_t; - -typedef struct stc_crtrim_mcr_ftrm_field -{ - __IO uint16_t TRD :10; -} stc_crtrim_mcr_ftrm_field_t; - -typedef struct stc_crtrim_mcr_ttrm_field -{ - __IO uint8_t TRT : 5; -} stc_crtrim_mcr_ttrm_field_t; - -typedef struct stc_crtrim_mcr_rlr_field -{ - __IO uint32_t TRMLCK :32; -} stc_crtrim_mcr_rlr_field_t; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* EXTI_MODULE register bit fields */ -typedef struct stc_exti_enir_field -{ - __IO uint32_t EN0 : 1; - __IO uint32_t EN1 : 1; - __IO uint32_t EN2 : 1; - __IO uint32_t EN3 : 1; - __IO uint32_t EN4 : 1; - __IO uint32_t EN5 : 1; - __IO uint32_t EN6 : 1; - __IO uint32_t EN7 : 1; - __IO uint32_t EN8 : 1; - __IO uint32_t EN9 : 1; - __IO uint32_t EN10 : 1; - __IO uint32_t EN11 : 1; - __IO uint32_t EN12 : 1; - __IO uint32_t EN13 : 1; - __IO uint32_t EN14 : 1; - __IO uint32_t EN15 : 1; - __IO uint32_t EN16 : 1; - __IO uint32_t EN17 : 1; - __IO uint32_t EN18 : 1; - __IO uint32_t EN19 : 1; - __IO uint32_t EN20 : 1; - __IO uint32_t EN21 : 1; - __IO uint32_t EN22 : 1; - __IO uint32_t EN23 : 1; - __IO uint32_t EN24 : 1; - __IO uint32_t EN25 : 1; - __IO uint32_t EN26 : 1; - __IO uint32_t EN27 : 1; - __IO uint32_t EN28 : 1; - __IO uint32_t EN29 : 1; - __IO uint32_t EN30 : 1; - __IO uint32_t EN31 : 1; -} stc_exti_enir_field_t; - -typedef struct stc_exti_eirr_field -{ - __IO uint32_t ER0 : 1; - __IO uint32_t ER1 : 1; - __IO uint32_t ER2 : 1; - __IO uint32_t ER3 : 1; - __IO uint32_t ER4 : 1; - __IO uint32_t ER5 : 1; - __IO uint32_t ER6 : 1; - __IO uint32_t ER7 : 1; - __IO uint32_t ER8 : 1; - __IO uint32_t ER9 : 1; - __IO uint32_t ER10 : 1; - __IO uint32_t ER11 : 1; - __IO uint32_t ER12 : 1; - __IO uint32_t ER13 : 1; - __IO uint32_t ER14 : 1; - __IO uint32_t ER15 : 1; - __IO uint32_t ER16 : 1; - __IO uint32_t ER17 : 1; - __IO uint32_t ER18 : 1; - __IO uint32_t ER19 : 1; - __IO uint32_t ER20 : 1; - __IO uint32_t ER21 : 1; - __IO uint32_t ER22 : 1; - __IO uint32_t ER23 : 1; - __IO uint32_t ER24 : 1; - __IO uint32_t ER25 : 1; - __IO uint32_t ER26 : 1; - __IO uint32_t ER27 : 1; - __IO uint32_t ER28 : 1; - __IO uint32_t ER29 : 1; - __IO uint32_t ER30 : 1; - __IO uint32_t ER31 : 1; -} stc_exti_eirr_field_t; - -typedef struct stc_exti_eicl_field -{ - __IO uint32_t ECL0 : 1; - __IO uint32_t ECL1 : 1; - __IO uint32_t ECL2 : 1; - __IO uint32_t ECL3 : 1; - __IO uint32_t ECL4 : 1; - __IO uint32_t ECL5 : 1; - __IO uint32_t ECL6 : 1; - __IO uint32_t ECL7 : 1; - __IO uint32_t ECL8 : 1; - __IO uint32_t ECL9 : 1; - __IO uint32_t ECL10 : 1; - __IO uint32_t ECL11 : 1; - __IO uint32_t ECL12 : 1; - __IO uint32_t ECL13 : 1; - __IO uint32_t ECL14 : 1; - __IO uint32_t ECL15 : 1; - __IO uint32_t ECL16 : 1; - __IO uint32_t ECL17 : 1; - __IO uint32_t ECL18 : 1; - __IO uint32_t ECL19 : 1; - __IO uint32_t ECL20 : 1; - __IO uint32_t ECL21 : 1; - __IO uint32_t ECL22 : 1; - __IO uint32_t ECL23 : 1; - __IO uint32_t ECL24 : 1; - __IO uint32_t ECL25 : 1; - __IO uint32_t ECL26 : 1; - __IO uint32_t ECL27 : 1; - __IO uint32_t ECL28 : 1; - __IO uint32_t ECL29 : 1; - __IO uint32_t ECL30 : 1; - __IO uint32_t ECL31 : 1; -} stc_exti_eicl_field_t; - -typedef struct stc_exti_elvr_field -{ - __IO uint32_t LA0 : 1; - __IO uint32_t LB0 : 1; - __IO uint32_t LA1 : 1; - __IO uint32_t LB1 : 1; - __IO uint32_t LA2 : 1; - __IO uint32_t LB2 : 1; - __IO uint32_t LA3 : 1; - __IO uint32_t LB3 : 1; - __IO uint32_t LA4 : 1; - __IO uint32_t LB4 : 1; - __IO uint32_t LA5 : 1; - __IO uint32_t LB5 : 1; - __IO uint32_t LA6 : 1; - __IO uint32_t LB6 : 1; - __IO uint32_t LA7 : 1; - __IO uint32_t LB7 : 1; - __IO uint32_t LA8 : 1; - __IO uint32_t LB8 : 1; - __IO uint32_t LA9 : 1; - __IO uint32_t LB9 : 1; - __IO uint32_t LA10 : 1; - __IO uint32_t LB10 : 1; - __IO uint32_t LA11 : 1; - __IO uint32_t LB11 : 1; - __IO uint32_t LA12 : 1; - __IO uint32_t LB12 : 1; - __IO uint32_t LA13 : 1; - __IO uint32_t LB13 : 1; - __IO uint32_t LA14 : 1; - __IO uint32_t LB14 : 1; - __IO uint32_t LA15 : 1; - __IO uint32_t LB15 : 1; -} stc_exti_elvr_field_t; - -typedef struct stc_exti_elvr1_field -{ - __IO uint32_t LA16 : 1; - __IO uint32_t LB16 : 1; - __IO uint32_t LA17 : 1; - __IO uint32_t LB17 : 1; - __IO uint32_t LA18 : 1; - __IO uint32_t LB18 : 1; - __IO uint32_t LA19 : 1; - __IO uint32_t LB19 : 1; - __IO uint32_t LA20 : 1; - __IO uint32_t LB20 : 1; - __IO uint32_t LA21 : 1; - __IO uint32_t LB21 : 1; - __IO uint32_t LA22 : 1; - __IO uint32_t LB22 : 1; - __IO uint32_t LA23 : 1; - __IO uint32_t LB23 : 1; - __IO uint32_t LA24 : 1; - __IO uint32_t LB24 : 1; - __IO uint32_t LA25 : 1; - __IO uint32_t LB25 : 1; - __IO uint32_t LA26 : 1; - __IO uint32_t LB26 : 1; - __IO uint32_t LA27 : 1; - __IO uint32_t LB27 : 1; - __IO uint32_t LA28 : 1; - __IO uint32_t LB28 : 1; - __IO uint32_t LA29 : 1; - __IO uint32_t LB29 : 1; - __IO uint32_t LA30 : 1; - __IO uint32_t LB30 : 1; - __IO uint32_t LA31 : 1; - __IO uint32_t LB31 : 1; -} stc_exti_elvr1_field_t; - -typedef struct stc_exti_nmirr_field -{ - __IO uint8_t NR : 1; -} stc_exti_nmirr_field_t; - -typedef struct stc_exti_nmicl_field -{ - __IO uint8_t NCL : 1; -} stc_exti_nmicl_field_t; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* INTREQ_MODULE register bit fields */ -typedef struct stc_intreq_drqsel_field -{ - __IO uint32_t DRQSEL0 : 1; - __IO uint32_t DRQSEL1 : 1; - __IO uint32_t DRQSEL2 : 1; - __IO uint32_t DRQSEL3 : 1; - __IO uint32_t DRQSEL4 : 1; - __IO uint32_t DRQSEL5 : 1; - __IO uint32_t DRQSEL6 : 1; - __IO uint32_t DRQSEL7 : 1; - __IO uint32_t DRQSEL8 : 1; - __IO uint32_t DRQSEL9 : 1; - __IO uint32_t DRQSEL10 : 1; - __IO uint32_t DRQSEL11 : 1; - __IO uint32_t DRQSEL12 : 1; - __IO uint32_t DRQSEL13 : 1; - __IO uint32_t DRQSEL14 : 1; - __IO uint32_t DRQSEL15 : 1; - __IO uint32_t DRQSEL16 : 1; - __IO uint32_t DRQSEL17 : 1; - __IO uint32_t DRQSEL18 : 1; - __IO uint32_t DRQSEL19 : 1; - __IO uint32_t DRQSEL20 : 1; - __IO uint32_t DRQSEL21 : 1; - __IO uint32_t DRQSEL22 : 1; - __IO uint32_t DRQSEL23 : 1; - __IO uint32_t DRQSEL24 : 1; - __IO uint32_t DRQSEL25 : 1; - __IO uint32_t DRQSEL26 : 1; - __IO uint32_t DRQSEL27 : 1; - __IO uint32_t DRQSEL28 : 1; - __IO uint32_t DRQSEL29 : 1; - __IO uint32_t DRQSEL30 : 1; - __IO uint32_t DRQSEL31 : 1; -} stc_intreq_drqsel_field_t; - -typedef struct stc_intreq_oddpks_field -{ - __IO uint8_t ODDPKS0 : 1; - __IO uint8_t ODDPKS1 : 1; - __IO uint8_t ODDPKS2 : 1; - __IO uint8_t ODDPKS3 : 1; - __IO uint8_t ODDPKS4 : 1; -} stc_intreq_oddpks_field_t; - -typedef struct stc_intreq_irq003sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq003sel_field_t; - -typedef struct stc_intreq_irq004sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq004sel_field_t; - -typedef struct stc_intreq_irq005sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq005sel_field_t; - -typedef struct stc_intreq_irq006sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq006sel_field_t; - -typedef struct stc_intreq_irq007sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq007sel_field_t; - -typedef struct stc_intreq_irq008sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq008sel_field_t; - -typedef struct stc_intreq_irq009sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq009sel_field_t; - -typedef struct stc_intreq_irq010sel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED8 : 8; - __IO uint32_t SELBIT : 8; -} stc_intreq_irq010sel_field_t; - -typedef struct stc_intreq_exc02mon_field -{ - __IO uint32_t NMI : 1; - __IO uint32_t HWINT : 1; -} stc_intreq_exc02mon_field_t; - -typedef struct stc_intreq_irq000mon_field -{ - __IO uint32_t FCSINT : 1; -} stc_intreq_irq000mon_field_t; - -typedef struct stc_intreq_irq001mon_field -{ - __IO uint32_t SWWDTINT : 1; -} stc_intreq_irq001mon_field_t; - -typedef struct stc_intreq_irq002mon_field -{ - __IO uint32_t LVDINT : 1; -} stc_intreq_irq002mon_field_t; - -typedef struct stc_intreq_irq003mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq003mon_field_t; - -typedef struct stc_intreq_irq004mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq004mon_field_t; - -typedef struct stc_intreq_irq005mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq005mon_field_t; - -typedef struct stc_intreq_irq006mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq006mon_field_t; - -typedef struct stc_intreq_irq007mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq007mon_field_t; - -typedef struct stc_intreq_irq008mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq008mon_field_t; - -typedef struct stc_intreq_irq009mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq009mon_field_t; - -typedef struct stc_intreq_irq010mon_field -{ - __IO uint32_t IRQBIT0 : 1; - __IO uint32_t IRQBIT1 : 1; - __IO uint32_t IRQBIT2 : 1; - __IO uint32_t IRQBIT3 : 1; - __IO uint32_t IRQBIT4 : 1; - __IO uint32_t IRQBIT5 : 1; - __IO uint32_t IRQBIT6 : 1; - __IO uint32_t IRQBIT7 : 1; -} stc_intreq_irq010mon_field_t; - -typedef struct stc_intreq_irq011mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq011mon_field_t; - -typedef struct stc_intreq_irq012mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq012mon_field_t; - -typedef struct stc_intreq_irq013mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq013mon_field_t; - -typedef struct stc_intreq_irq014mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq014mon_field_t; - -typedef struct stc_intreq_irq015mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq015mon_field_t; - -typedef struct stc_intreq_irq016mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq016mon_field_t; - -typedef struct stc_intreq_irq017mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq017mon_field_t; - -typedef struct stc_intreq_irq018mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq018mon_field_t; - -typedef struct stc_intreq_irq019mon_field -{ - __IO uint32_t QUDINT0 : 1; - __IO uint32_t QUDINT1 : 1; - __IO uint32_t QUDINT2 : 1; - __IO uint32_t QUDINT3 : 1; - __IO uint32_t QUDINT4 : 1; - __IO uint32_t QUDINT5 : 1; -} stc_intreq_irq019mon_field_t; - -typedef struct stc_intreq_irq020mon_field -{ - __IO uint32_t QUDINT0 : 1; - __IO uint32_t QUDINT1 : 1; - __IO uint32_t QUDINT2 : 1; - __IO uint32_t QUDINT3 : 1; - __IO uint32_t QUDINT4 : 1; - __IO uint32_t QUDINT5 : 1; -} stc_intreq_irq020mon_field_t; - -typedef struct stc_intreq_irq021mon_field -{ - __IO uint32_t WAVEINT0 : 1; - __IO uint32_t WAVEINT1 : 1; - __IO uint32_t WAVEINT2 : 1; - __IO uint32_t WAVEINT3 : 1; -} stc_intreq_irq021mon_field_t; - -typedef struct stc_intreq_irq022mon_field -{ - __IO uint32_t WAVEINT0 : 1; - __IO uint32_t WAVEINT1 : 1; - __IO uint32_t WAVEINT2 : 1; - __IO uint32_t WAVEINT3 : 1; -} stc_intreq_irq022mon_field_t; - -typedef struct stc_intreq_irq023mon_field -{ - __IO uint32_t WAVEINT0 : 1; - __IO uint32_t WAVEINT1 : 1; - __IO uint32_t WAVEINT2 : 1; - __IO uint32_t WAVEINT3 : 1; -} stc_intreq_irq023mon_field_t; - -typedef struct stc_intreq_irq024mon_field -{ - __IO uint32_t FRT_PEAK_INT0: 1; - __IO uint32_t FRT_PEAK_INT1: 1; - __IO uint32_t FRT_PEAK_INT2: 1; -} stc_intreq_irq024mon_field_t; - -typedef struct stc_intreq_irq025mon_field -{ - __IO uint32_t FRT_ZERO_INT0: 1; - __IO uint32_t FRT_ZERO_INT1: 1; - __IO uint32_t FRT_ZERO_INT2: 1; -} stc_intreq_irq025mon_field_t; - -typedef struct stc_intreq_irq026mon_field -{ - __IO uint32_t ICUINT0 : 1; - __IO uint32_t ICUINT1 : 1; - __IO uint32_t ICUINT2 : 1; - __IO uint32_t ICUINT3 : 1; -} stc_intreq_irq026mon_field_t; - -typedef struct stc_intreq_irq027mon_field -{ - __IO uint32_t OCUINT0 : 1; - __IO uint32_t OCUINT1 : 1; - __IO uint32_t OCUINT2 : 1; - __IO uint32_t OCUINT3 : 1; - __IO uint32_t OCUINT4 : 1; - __IO uint32_t OCUINT5 : 1; -} stc_intreq_irq027mon_field_t; - -typedef struct stc_intreq_irq028mon_field -{ - __IO uint32_t FRT_PEAK_INT0: 1; - __IO uint32_t FRT_PEAK_INT1: 1; - __IO uint32_t FRT_PEAK_INT2: 1; -} stc_intreq_irq028mon_field_t; - -typedef struct stc_intreq_irq029mon_field -{ - __IO uint32_t FRT_ZERO_INT0: 1; - __IO uint32_t FRT_ZERO_INT1: 1; - __IO uint32_t FRT_ZERO_INT2: 1; -} stc_intreq_irq029mon_field_t; - -typedef struct stc_intreq_irq030mon_field -{ - __IO uint32_t ICUINT0 : 1; - __IO uint32_t ICUINT1 : 1; - __IO uint32_t ICUINT2 : 1; - __IO uint32_t ICUINT3 : 1; -} stc_intreq_irq030mon_field_t; - -typedef struct stc_intreq_irq031mon_field -{ - __IO uint32_t OCUINT0 : 1; - __IO uint32_t OCUINT1 : 1; - __IO uint32_t OCUINT2 : 1; - __IO uint32_t OCUINT3 : 1; - __IO uint32_t OCUINT4 : 1; - __IO uint32_t OCUINT5 : 1; -} stc_intreq_irq031mon_field_t; - -typedef struct stc_intreq_irq032mon_field -{ - __IO uint32_t FRT_PEAK_INT0: 1; - __IO uint32_t FRT_PEAK_INT1: 1; - __IO uint32_t FRT_PEAK_INT2: 1; -} stc_intreq_irq032mon_field_t; - -typedef struct stc_intreq_irq033mon_field -{ - __IO uint32_t FRT_ZERO_INT0: 1; - __IO uint32_t FRT_ZERO_INT1: 1; - __IO uint32_t FRT_ZERO_INT2: 1; -} stc_intreq_irq033mon_field_t; - -typedef struct stc_intreq_irq034mon_field -{ - __IO uint32_t ICUINT0 : 1; - __IO uint32_t ICUINT1 : 1; - __IO uint32_t ICUINT2 : 1; - __IO uint32_t ICUINT3 : 1; -} stc_intreq_irq034mon_field_t; - -typedef struct stc_intreq_irq035mon_field -{ - __IO uint32_t OCUINT0 : 1; - __IO uint32_t OCUINT1 : 1; - __IO uint32_t OCUINT2 : 1; - __IO uint32_t OCUINT3 : 1; - __IO uint32_t OCUINT4 : 1; - __IO uint32_t OCUINT5 : 1; -} stc_intreq_irq035mon_field_t; - -typedef struct stc_intreq_irq036mon_field -{ - __IO uint32_t PPGINT0 : 1; - __IO uint32_t PPGINT1 : 1; - __IO uint32_t PPGINT2 : 1; -} stc_intreq_irq036mon_field_t; - -typedef struct stc_intreq_irq037mon_field -{ - __IO uint32_t PPGINT0 : 1; - __IO uint32_t PPGINT1 : 1; - __IO uint32_t PPGINT2 : 1; -} stc_intreq_irq037mon_field_t; - -typedef struct stc_intreq_irq038mon_field -{ - __IO uint32_t PPGINT0 : 1; - __IO uint32_t PPGINT1 : 1; - __IO uint32_t PPGINT2 : 1; -} stc_intreq_irq038mon_field_t; - -typedef struct stc_intreq_irq039mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq039mon_field_t; - -typedef struct stc_intreq_irq040mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq040mon_field_t; - -typedef struct stc_intreq_irq041mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq041mon_field_t; - -typedef struct stc_intreq_irq042mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq042mon_field_t; - -typedef struct stc_intreq_irq043mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq043mon_field_t; - -typedef struct stc_intreq_irq044mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq044mon_field_t; - -typedef struct stc_intreq_irq045mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq045mon_field_t; - -typedef struct stc_intreq_irq046mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq046mon_field_t; - -typedef struct stc_intreq_irq047mon_field -{ - __IO uint32_t TIMINT1 : 1; - __IO uint32_t TIMINT2 : 1; -} stc_intreq_irq047mon_field_t; - -typedef struct stc_intreq_irq048mon_field -{ - __IO uint32_t WCINT : 1; -} stc_intreq_irq048mon_field_t; - -typedef struct stc_intreq_irq049mon_field -{ - __IO uint32_t BMEMCS : 1; -} stc_intreq_irq049mon_field_t; - -typedef struct stc_intreq_irq050mon_field -{ - __IO uint32_t RTCINT : 1; -} stc_intreq_irq050mon_field_t; - -typedef struct stc_intreq_irq051mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq051mon_field_t; - -typedef struct stc_intreq_irq052mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq052mon_field_t; - -typedef struct stc_intreq_irq053mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq053mon_field_t; - -typedef struct stc_intreq_irq054mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq054mon_field_t; - -typedef struct stc_intreq_irq055mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq055mon_field_t; - -typedef struct stc_intreq_irq056mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq056mon_field_t; - -typedef struct stc_intreq_irq057mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq057mon_field_t; - -typedef struct stc_intreq_irq058mon_field -{ - __IO uint32_t EXTINT : 1; -} stc_intreq_irq058mon_field_t; - -typedef struct stc_intreq_irq059mon_field -{ - __IO uint32_t MOSCINT : 1; - __IO uint32_t SOSCINT : 1; - __IO uint32_t MPLLINT : 1; - __IO uint32_t UPLLINT : 1; -} stc_intreq_irq059mon_field_t; - -typedef struct stc_intreq_irq060mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq060mon_field_t; - -typedef struct stc_intreq_irq061mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq061mon_field_t; - -typedef struct stc_intreq_irq062mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq062mon_field_t; - -typedef struct stc_intreq_irq063mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq063mon_field_t; - -typedef struct stc_intreq_irq064mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq064mon_field_t; - -typedef struct stc_intreq_irq065mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq065mon_field_t; - -typedef struct stc_intreq_irq066mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq066mon_field_t; - -typedef struct stc_intreq_irq067mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq067mon_field_t; - -typedef struct stc_intreq_irq068mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq068mon_field_t; - -typedef struct stc_intreq_irq069mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq069mon_field_t; - -typedef struct stc_intreq_irq070mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq070mon_field_t; - -typedef struct stc_intreq_irq071mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq071mon_field_t; - -typedef struct stc_intreq_irq072mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq072mon_field_t; - -typedef struct stc_intreq_irq073mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq073mon_field_t; - -typedef struct stc_intreq_irq074mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq074mon_field_t; - -typedef struct stc_intreq_irq075mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq075mon_field_t; - -typedef struct stc_intreq_irq076mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; - __IO uint32_t ADCINT4 : 1; -} stc_intreq_irq076mon_field_t; - -typedef struct stc_intreq_irq077mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; - __IO uint32_t ADCINT4 : 1; -} stc_intreq_irq077mon_field_t; - -typedef struct stc_intreq_irq078mon_field -{ - __IO uint32_t USB_DRQ_INT0: 1; - __IO uint32_t USB_DRQ_INT1: 1; - __IO uint32_t USB_DRQ_INT2: 1; - __IO uint32_t USB_DRQ_INT3: 1; - __IO uint32_t USB_DRQ_INT4: 1; -} stc_intreq_irq078mon_field_t; - -typedef struct stc_intreq_irq079mon_field -{ - __IO uint32_t USB_INT0 : 1; - __IO uint32_t USB_INT1 : 1; - __IO uint32_t USB_INT2 : 1; - __IO uint32_t USB_INT3 : 1; - __IO uint32_t USB_INT4 : 1; - __IO uint32_t USB_INT5 : 1; -} stc_intreq_irq079mon_field_t; - -typedef struct stc_intreq_irq080mon_field -{ - __IO uint32_t CANINT : 1; -} stc_intreq_irq080mon_field_t; - -typedef struct stc_intreq_irq081mon_field -{ - __IO uint32_t CANINT : 1; -} stc_intreq_irq081mon_field_t; - -typedef struct stc_intreq_irq082mon_field -{ - __IO uint32_t MACSBD : 1; - __IO uint32_t MACPMT : 1; - __IO uint32_t MACLPI : 1; -} stc_intreq_irq082mon_field_t; - -typedef struct stc_intreq_irq083mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq083mon_field_t; - -typedef struct stc_intreq_irq084mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq084mon_field_t; - -typedef struct stc_intreq_irq085mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq085mon_field_t; - -typedef struct stc_intreq_irq086mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq086mon_field_t; - -typedef struct stc_intreq_irq087mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq087mon_field_t; - -typedef struct stc_intreq_irq088mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq088mon_field_t; - -typedef struct stc_intreq_irq089mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq089mon_field_t; - -typedef struct stc_intreq_irq090mon_field -{ - __IO uint32_t DMACINT : 1; -} stc_intreq_irq090mon_field_t; - -typedef struct stc_intreq_irq091mon_field -{ - __IO uint32_t DSTCINT0 : 1; - __IO uint32_t DSTCINT1 : 1; -} stc_intreq_irq091mon_field_t; - -typedef struct stc_intreq_irq092mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; -} stc_intreq_irq092mon_field_t; - -typedef struct stc_intreq_irq093mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; -} stc_intreq_irq093mon_field_t; - -typedef struct stc_intreq_irq094mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; -} stc_intreq_irq094mon_field_t; - -typedef struct stc_intreq_irq095mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; -} stc_intreq_irq095mon_field_t; - -typedef struct stc_intreq_irq096mon_field -{ - __IO uint32_t QUDINT0 : 1; - __IO uint32_t QUDINT1 : 1; - __IO uint32_t QUDINT2 : 1; - __IO uint32_t QUDINT3 : 1; - __IO uint32_t QUDINT4 : 1; - __IO uint32_t QUDINT5 : 1; -} stc_intreq_irq096mon_field_t; - -typedef struct stc_intreq_irq097mon_field -{ - __IO uint32_t QUDINT0 : 1; - __IO uint32_t QUDINT1 : 1; - __IO uint32_t QUDINT2 : 1; - __IO uint32_t QUDINT3 : 1; - __IO uint32_t QUDINT4 : 1; - __IO uint32_t QUDINT5 : 1; -} stc_intreq_irq097mon_field_t; - -typedef struct stc_intreq_irq098mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq098mon_field_t; - -typedef struct stc_intreq_irq099mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq099mon_field_t; - -typedef struct stc_intreq_irq100mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq100mon_field_t; - -typedef struct stc_intreq_irq101mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; -} stc_intreq_irq101mon_field_t; - -typedef struct stc_intreq_irq102mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; - __IO uint32_t BTINT2 : 1; - __IO uint32_t BTINT3 : 1; - __IO uint32_t BTINT4 : 1; - __IO uint32_t BTINT5 : 1; - __IO uint32_t BTINT6 : 1; - __IO uint32_t BTINT7 : 1; -} stc_intreq_irq102mon_field_t; - -typedef struct stc_intreq_irq103mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq103mon_field_t; - -typedef struct stc_intreq_irq104mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq104mon_field_t; - -typedef struct stc_intreq_irq105mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq105mon_field_t; - -typedef struct stc_intreq_irq106mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq106mon_field_t; - -typedef struct stc_intreq_irq107mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq107mon_field_t; - -typedef struct stc_intreq_irq108mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq108mon_field_t; - -typedef struct stc_intreq_irq109mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq109mon_field_t; - -typedef struct stc_intreq_irq110mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq110mon_field_t; - -typedef struct stc_intreq_irq111mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; - __IO uint32_t ADCINT4 : 1; -} stc_intreq_irq111mon_field_t; - -typedef struct stc_intreq_irq113mon_field -{ - __IO uint32_t USB_DRQ_INT0: 1; - __IO uint32_t USB_DRQ_INT1: 1; - __IO uint32_t USB_DRQ_INT2: 1; - __IO uint32_t USB_DRQ_INT3: 1; - __IO uint32_t USB_DRQ_INT4: 1; -} stc_intreq_irq113mon_field_t; - -typedef struct stc_intreq_irq114mon_field -{ - __IO uint32_t USB_INT0 : 1; - __IO uint32_t USB_INT1 : 1; - __IO uint32_t USB_INT2 : 1; - __IO uint32_t USB_INT3 : 1; - __IO uint32_t USB_INT4 : 1; - __IO uint32_t USB_INT5 : 1; -} stc_intreq_irq114mon_field_t; - -typedef struct stc_intreq_irq118mon_field -{ - __IO uint32_t SDINT0 : 1; - __IO uint32_t SDINT1 : 1; -} stc_intreq_irq118mon_field_t; - -typedef struct stc_intreq_irq119mon_field -{ - __IO uint32_t FLINT : 1; -} stc_intreq_irq119mon_field_t; - -typedef struct stc_intreq_irq120mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq120mon_field_t; - -typedef struct stc_intreq_irq121mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq121mon_field_t; - -typedef struct stc_intreq_irq122mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq122mon_field_t; - -typedef struct stc_intreq_irq123mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq123mon_field_t; - -typedef struct stc_intreq_irq124mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq124mon_field_t; - -typedef struct stc_intreq_irq125mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq125mon_field_t; - -typedef struct stc_intreq_irq126mon_field -{ - __IO uint32_t MFSRINT : 1; -} stc_intreq_irq126mon_field_t; - -typedef struct stc_intreq_irq127mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq127mon_field_t; - -/****************************************************************************** - * IRQSEL_MODULE -******************************************************************************/ -typedef struct stc_irqsel_field -{ - __IO uint32_t SELIRQ : 8; - uint32_t RESERVED0 : 8; - __IO uint32_t SELBIT : 8; - uint32_t RESERVED1 : 8; -} stc_irqsel_field_t; - -/****************************************************************************** - * DSTC_MODULE - ******************************************************************************/ -/* DSTC_MODULE register bit fields */ -typedef struct stc_dstc_hwdesp_field -{ - __IO uint32_t CHANNEL : 8; - uint32_t RESERVED1 : 8; - __IO uint32_t HWDESP : 14; - uint32_t RESERVED2 : 2; -} stc_dstc_hwdesp_field_t; - -typedef struct stc_dstc_cfg_field -{ - __IO uint8_t SWINTE : 1; - __IO uint8_t ERINTE : 1; - __IO uint8_t RBDIS : 1; - __IO uint8_t ESTE : 1; - __IO uint8_t SWPR : 3; - uint8_t RESERVED : 1; -} stc_dstc_cfg_field_t; - -typedef struct stc_dstc_swtr_field -{ - __IO uint16_t SWDESP : 14; - __IO uint16_t SWREQ : 1; - __IO uint16_t SWST : 1; -} stc_dstc_swtr_field_t; - -typedef struct stc_dstc_moners_field -{ - __IO uint32_t EST : 3; - __IO uint32_t DER : 1; - __IO uint32_t ESTOP : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t EHS : 1; - __IO uint32_t RESERVED2 : 1; - __IO uint32_t ECH : 8; - __IO uint32_t EDESP : 14; - uint32_t RESERVED3 : 2; -} stc_dstc_moners_field_t; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* GPIO_MODULE register bit fields */ -typedef struct stc_gpio_pfr0_field -{ - __IO uint32_t P00 : 1; - __IO uint32_t P01 : 1; - __IO uint32_t P02 : 1; - __IO uint32_t P03 : 1; - __IO uint32_t P04 : 1; - __IO uint32_t P05 : 1; - __IO uint32_t P06 : 1; - __IO uint32_t P07 : 1; - __IO uint32_t P08 : 1; - __IO uint32_t P09 : 1; - __IO uint32_t P0A : 1; - __IO uint32_t P0B : 1; - __IO uint32_t P0C : 1; - __IO uint32_t P0D : 1; - __IO uint32_t P0E : 1; -} stc_gpio_pfr0_field_t; - -typedef struct stc_gpio_pfr1_field -{ - __IO uint32_t P10 : 1; - __IO uint32_t P11 : 1; - __IO uint32_t P12 : 1; - __IO uint32_t P13 : 1; - __IO uint32_t P14 : 1; - __IO uint32_t P15 : 1; - __IO uint32_t P16 : 1; - __IO uint32_t P17 : 1; - __IO uint32_t P18 : 1; - __IO uint32_t P19 : 1; - __IO uint32_t P1A : 1; - __IO uint32_t P1B : 1; - __IO uint32_t P1C : 1; - __IO uint32_t P1D : 1; - __IO uint32_t P1E : 1; - __IO uint32_t P1F : 1; -} stc_gpio_pfr1_field_t; - -typedef struct stc_gpio_pfr2_field -{ - __IO uint32_t P20 : 1; - __IO uint32_t P21 : 1; - __IO uint32_t P22 : 1; - __IO uint32_t P23 : 1; - __IO uint32_t P24 : 1; - __IO uint32_t P25 : 1; - __IO uint32_t P26 : 1; - __IO uint32_t P27 : 1; -} stc_gpio_pfr2_field_t; - -typedef struct stc_gpio_pfr3_field -{ - __IO uint32_t P30 : 1; - __IO uint32_t P31 : 1; - __IO uint32_t P32 : 1; - __IO uint32_t P33 : 1; - __IO uint32_t P34 : 1; - __IO uint32_t P35 : 1; - __IO uint32_t P36 : 1; - __IO uint32_t P37 : 1; - __IO uint32_t P38 : 1; - __IO uint32_t P39 : 1; - __IO uint32_t P3A : 1; - __IO uint32_t P3B : 1; - __IO uint32_t P3C : 1; - __IO uint32_t P3D : 1; - __IO uint32_t P3E : 1; - __IO uint32_t P3F : 1; -} stc_gpio_pfr3_field_t; - -typedef struct stc_gpio_pfr4_field -{ - __IO uint32_t P40 : 1; - __IO uint32_t P41 : 1; - __IO uint32_t P42 : 1; - __IO uint32_t P43 : 1; - __IO uint32_t P44 : 1; - __IO uint32_t P45 : 1; - __IO uint32_t P46 : 1; - __IO uint32_t P47 : 1; - __IO uint32_t P48 : 1; - __IO uint32_t P49 : 1; - __IO uint32_t P4A : 1; - __IO uint32_t P4B : 1; - __IO uint32_t P4C : 1; - __IO uint32_t P4D : 1; - __IO uint32_t P4E : 1; -} stc_gpio_pfr4_field_t; - -typedef struct stc_gpio_pfr5_field -{ - __IO uint32_t P50 : 1; - __IO uint32_t P51 : 1; - __IO uint32_t P52 : 1; - __IO uint32_t P53 : 1; - __IO uint32_t P54 : 1; - __IO uint32_t P55 : 1; - __IO uint32_t P56 : 1; - __IO uint32_t P57 : 1; - __IO uint32_t P58 : 1; - __IO uint32_t P59 : 1; - __IO uint32_t P5A : 1; - __IO uint32_t P5B : 1; -} stc_gpio_pfr5_field_t; - -typedef struct stc_gpio_pfr6_field -{ - __IO uint32_t P60 : 1; - __IO uint32_t P61 : 1; - __IO uint32_t P62 : 1; - __IO uint32_t P63 : 1; - __IO uint32_t P64 : 1; - __IO uint32_t P65 : 1; - __IO uint32_t P66 : 1; - __IO uint32_t P67 : 1; - __IO uint32_t P68 : 1; -} stc_gpio_pfr6_field_t; - -typedef struct stc_gpio_pfr7_field -{ - __IO uint32_t P70 : 1; - __IO uint32_t P71 : 1; - __IO uint32_t P72 : 1; - __IO uint32_t P73 : 1; - __IO uint32_t P74 : 1; -} stc_gpio_pfr7_field_t; - -typedef struct stc_gpio_pfr8_field -{ - __IO uint32_t P80 : 1; - __IO uint32_t P81 : 1; -} stc_gpio_pfr8_field_t; - -typedef struct stc_gpio_pfre_field -{ - __IO uint32_t PE0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t PE2 : 1; - __IO uint32_t PE3 : 1; -} stc_gpio_pfre_field_t; - -typedef struct stc_gpio_pcr0_field -{ - __IO uint32_t P00 : 1; - __IO uint32_t P01 : 1; - __IO uint32_t P02 : 1; - __IO uint32_t P03 : 1; - __IO uint32_t P04 : 1; - __IO uint32_t P05 : 1; - __IO uint32_t P06 : 1; - __IO uint32_t P07 : 1; - __IO uint32_t P08 : 1; - __IO uint32_t P09 : 1; - __IO uint32_t P0A : 1; - __IO uint32_t P0B : 1; - __IO uint32_t P0C : 1; - __IO uint32_t P0D : 1; - __IO uint32_t P0E : 1; -} stc_gpio_pcr0_field_t; - -typedef struct stc_gpio_pcr1_field -{ - __IO uint32_t P10 : 1; - __IO uint32_t P11 : 1; - __IO uint32_t P12 : 1; - __IO uint32_t P13 : 1; - __IO uint32_t P14 : 1; - __IO uint32_t P15 : 1; - __IO uint32_t P16 : 1; - __IO uint32_t P17 : 1; - __IO uint32_t P18 : 1; - __IO uint32_t P19 : 1; - __IO uint32_t P1A : 1; - __IO uint32_t P1B : 1; - __IO uint32_t P1C : 1; - __IO uint32_t P1D : 1; - __IO uint32_t P1E : 1; - __IO uint32_t P1F : 1; -} stc_gpio_pcr1_field_t; - -typedef struct stc_gpio_pcr2_field -{ - __IO uint32_t P20 : 1; - __IO uint32_t P21 : 1; - __IO uint32_t P22 : 1; - __IO uint32_t P23 : 1; - __IO uint32_t P24 : 1; - __IO uint32_t P25 : 1; - __IO uint32_t P26 : 1; - __IO uint32_t P27 : 1; -} stc_gpio_pcr2_field_t; - -typedef struct stc_gpio_pcr3_field -{ - __IO uint32_t P30 : 1; - __IO uint32_t P31 : 1; - __IO uint32_t P32 : 1; - __IO uint32_t P33 : 1; - __IO uint32_t P34 : 1; - __IO uint32_t P35 : 1; - __IO uint32_t P36 : 1; - __IO uint32_t P37 : 1; - __IO uint32_t P38 : 1; - __IO uint32_t P39 : 1; - __IO uint32_t P3A : 1; - __IO uint32_t P3B : 1; - __IO uint32_t P3C : 1; - __IO uint32_t P3D : 1; - __IO uint32_t P3E : 1; - __IO uint32_t P3F : 1; -} stc_gpio_pcr3_field_t; - -typedef struct stc_gpio_pcr4_field -{ - __IO uint32_t P40 : 1; - __IO uint32_t P41 : 1; - __IO uint32_t P42 : 1; - __IO uint32_t P43 : 1; - __IO uint32_t P44 : 1; - __IO uint32_t P45 : 1; - __IO uint32_t P46 : 1; - __IO uint32_t P47 : 1; - __IO uint32_t P48 : 1; - __IO uint32_t P49 : 1; - __IO uint32_t P4A : 1; - __IO uint32_t P4B : 1; - __IO uint32_t P4C : 1; - __IO uint32_t P4D : 1; - __IO uint32_t P4E : 1; -} stc_gpio_pcr4_field_t; - -typedef struct stc_gpio_pcr5_field -{ - __IO uint32_t P50 : 1; - __IO uint32_t P51 : 1; - __IO uint32_t P52 : 1; - __IO uint32_t P53 : 1; - __IO uint32_t P54 : 1; - __IO uint32_t P55 : 1; - __IO uint32_t P56 : 1; - __IO uint32_t P57 : 1; - __IO uint32_t P58 : 1; - __IO uint32_t P59 : 1; - __IO uint32_t P5A : 1; - __IO uint32_t P5B : 1; -} stc_gpio_pcr5_field_t; - -typedef struct stc_gpio_pcr6_field -{ - __IO uint32_t P60 : 1; - __IO uint32_t P61 : 1; - __IO uint32_t P62 : 1; - __IO uint32_t P63 : 1; - __IO uint32_t P64 : 1; - __IO uint32_t P65 : 1; - __IO uint32_t P66 : 1; - __IO uint32_t P67 : 1; - __IO uint32_t P68 : 1; -} stc_gpio_pcr6_field_t; - -typedef struct stc_gpio_pcr7_field -{ - __IO uint32_t P70 : 1; - __IO uint32_t P71 : 1; - __IO uint32_t P72 : 1; - __IO uint32_t P73 : 1; - __IO uint32_t P74 : 1; -} stc_gpio_pcr7_field_t; - -typedef struct stc_gpio_pcr8_field -{ - __IO uint32_t P80 : 1; - __IO uint32_t P81 : 1; -} stc_gpio_pcr8_field_t; - -typedef struct stc_gpio_pcre_field -{ - __IO uint32_t PE0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t PE2 : 1; - __IO uint32_t PE3 : 1; -} stc_gpio_pcre_field_t; - -typedef struct stc_gpio_ddr0_field -{ - __IO uint32_t P00 : 1; - __IO uint32_t P01 : 1; - __IO uint32_t P02 : 1; - __IO uint32_t P03 : 1; - __IO uint32_t P04 : 1; - __IO uint32_t P05 : 1; - __IO uint32_t P06 : 1; - __IO uint32_t P07 : 1; - __IO uint32_t P08 : 1; - __IO uint32_t P09 : 1; - __IO uint32_t P0A : 1; - __IO uint32_t P0B : 1; - __IO uint32_t P0C : 1; - __IO uint32_t P0D : 1; - __IO uint32_t P0E : 1; - __IO uint32_t P0F : 1; -} stc_gpio_ddr0_field_t; - -typedef struct stc_gpio_ddr1_field -{ - __IO uint32_t P10 : 1; - __IO uint32_t P11 : 1; - __IO uint32_t P12 : 1; - __IO uint32_t P13 : 1; - __IO uint32_t P14 : 1; - __IO uint32_t P15 : 1; - __IO uint32_t P16 : 1; - __IO uint32_t P17 : 1; - __IO uint32_t P18 : 1; - __IO uint32_t P19 : 1; - __IO uint32_t P1A : 1; - __IO uint32_t P1B : 1; - __IO uint32_t P1C : 1; - __IO uint32_t P1D : 1; - __IO uint32_t P1E : 1; - __IO uint32_t P1F : 1; -} stc_gpio_ddr1_field_t; - -typedef struct stc_gpio_ddr2_field -{ - __IO uint32_t P20 : 1; - __IO uint32_t P21 : 1; - __IO uint32_t P22 : 1; - __IO uint32_t P23 : 1; - __IO uint32_t P24 : 1; - __IO uint32_t P25 : 1; - __IO uint32_t P26 : 1; - __IO uint32_t P27 : 1; -} stc_gpio_ddr2_field_t; - -typedef struct stc_gpio_ddr3_field -{ - __IO uint32_t P30 : 1; - __IO uint32_t P31 : 1; - __IO uint32_t P32 : 1; - __IO uint32_t P33 : 1; - __IO uint32_t P34 : 1; - __IO uint32_t P35 : 1; - __IO uint32_t P36 : 1; - __IO uint32_t P37 : 1; - __IO uint32_t P38 : 1; - __IO uint32_t P39 : 1; - __IO uint32_t P3A : 1; - __IO uint32_t P3B : 1; - __IO uint32_t P3C : 1; - __IO uint32_t P3D : 1; - __IO uint32_t P3E : 1; - __IO uint32_t P3F : 1; -} stc_gpio_ddr3_field_t; - -typedef struct stc_gpio_ddr4_field -{ - __IO uint32_t P40 : 1; - __IO uint32_t P41 : 1; - __IO uint32_t P42 : 1; - __IO uint32_t P43 : 1; - __IO uint32_t P44 : 1; - __IO uint32_t P45 : 1; - __IO uint32_t P46 : 1; - __IO uint32_t P47 : 1; - __IO uint32_t P48 : 1; - __IO uint32_t P49 : 1; - __IO uint32_t P4A : 1; - __IO uint32_t P4B : 1; - __IO uint32_t P4C : 1; - __IO uint32_t P4D : 1; - __IO uint32_t P4E : 1; -} stc_gpio_ddr4_field_t; - -typedef struct stc_gpio_ddr5_field -{ - __IO uint32_t P50 : 1; - __IO uint32_t P51 : 1; - __IO uint32_t P52 : 1; - __IO uint32_t P53 : 1; - __IO uint32_t P54 : 1; - __IO uint32_t P55 : 1; - __IO uint32_t P56 : 1; - __IO uint32_t P57 : 1; - __IO uint32_t P58 : 1; - __IO uint32_t P59 : 1; - __IO uint32_t P5A : 1; - __IO uint32_t P5B : 1; -} stc_gpio_ddr5_field_t; - -typedef struct stc_gpio_ddr6_field -{ - __IO uint32_t P60 : 1; - __IO uint32_t P61 : 1; - __IO uint32_t P62 : 1; - __IO uint32_t P63 : 1; - __IO uint32_t P64 : 1; - __IO uint32_t P65 : 1; - __IO uint32_t P66 : 1; - __IO uint32_t P67 : 1; - __IO uint32_t P68 : 1; -} stc_gpio_ddr6_field_t; - -typedef struct stc_gpio_ddr7_field -{ - __IO uint32_t P70 : 1; - __IO uint32_t P71 : 1; - __IO uint32_t P72 : 1; - __IO uint32_t P73 : 1; - __IO uint32_t P74 : 1; -} stc_gpio_ddr7_field_t; - -typedef struct stc_gpio_ddr8_field -{ - __IO uint32_t P80 : 1; - __IO uint32_t P81 : 1; -} stc_gpio_ddr8_field_t; - -typedef struct stc_gpio_ddre_field -{ - __IO uint32_t PE0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t PE2 : 1; - __IO uint32_t PE3 : 1; -} stc_gpio_ddre_field_t; - -typedef struct stc_gpio_pdir0_field -{ - __IO uint32_t P00 : 1; - __IO uint32_t P01 : 1; - __IO uint32_t P02 : 1; - __IO uint32_t P03 : 1; - __IO uint32_t P04 : 1; - __IO uint32_t P05 : 1; - __IO uint32_t P06 : 1; - __IO uint32_t P07 : 1; - __IO uint32_t P08 : 1; - __IO uint32_t P09 : 1; - __IO uint32_t P0A : 1; - __IO uint32_t P0B : 1; - __IO uint32_t P0C : 1; - __IO uint32_t P0D : 1; - __IO uint32_t P0E : 1; - __IO uint32_t P0F : 1; -} stc_gpio_pdir0_field_t; - -typedef struct stc_gpio_pdir1_field -{ - __IO uint32_t P10 : 1; - __IO uint32_t P11 : 1; - __IO uint32_t P12 : 1; - __IO uint32_t P13 : 1; - __IO uint32_t P14 : 1; - __IO uint32_t P15 : 1; - __IO uint32_t P16 : 1; - __IO uint32_t P17 : 1; - __IO uint32_t P18 : 1; - __IO uint32_t P19 : 1; - __IO uint32_t P1A : 1; - __IO uint32_t P1B : 1; - __IO uint32_t P1C : 1; - __IO uint32_t P1D : 1; - __IO uint32_t P1E : 1; - __IO uint32_t P1F : 1; -} stc_gpio_pdir1_field_t; - -typedef struct stc_gpio_pdir2_field -{ - __IO uint32_t P20 : 1; - __IO uint32_t P21 : 1; - __IO uint32_t P22 : 1; - __IO uint32_t P23 : 1; - __IO uint32_t P24 : 1; - __IO uint32_t P25 : 1; - __IO uint32_t P26 : 1; - __IO uint32_t P27 : 1; -} stc_gpio_pdir2_field_t; - -typedef struct stc_gpio_pdir3_field -{ - __IO uint32_t P30 : 1; - __IO uint32_t P31 : 1; - __IO uint32_t P32 : 1; - __IO uint32_t P33 : 1; - __IO uint32_t P34 : 1; - __IO uint32_t P35 : 1; - __IO uint32_t P36 : 1; - __IO uint32_t P37 : 1; - __IO uint32_t P38 : 1; - __IO uint32_t P39 : 1; - __IO uint32_t P3A : 1; - __IO uint32_t P3B : 1; - __IO uint32_t P3C : 1; - __IO uint32_t P3D : 1; - __IO uint32_t P3E : 1; - __IO uint32_t P3F : 1; -} stc_gpio_pdir3_field_t; - -typedef struct stc_gpio_pdir4_field -{ - __IO uint32_t P40 : 1; - __IO uint32_t P41 : 1; - __IO uint32_t P42 : 1; - __IO uint32_t P43 : 1; - __IO uint32_t P44 : 1; - __IO uint32_t P45 : 1; - __IO uint32_t P46 : 1; - __IO uint32_t P47 : 1; - __IO uint32_t P48 : 1; - __IO uint32_t P49 : 1; - __IO uint32_t P4A : 1; - __IO uint32_t P4B : 1; - __IO uint32_t P4C : 1; - __IO uint32_t P4D : 1; - __IO uint32_t P4E : 1; -} stc_gpio_pdir4_field_t; - -typedef struct stc_gpio_pdir5_field -{ - __IO uint32_t P50 : 1; - __IO uint32_t P51 : 1; - __IO uint32_t P52 : 1; - __IO uint32_t P53 : 1; - __IO uint32_t P54 : 1; - __IO uint32_t P55 : 1; - __IO uint32_t P56 : 1; - __IO uint32_t P57 : 1; - __IO uint32_t P58 : 1; - __IO uint32_t P59 : 1; - __IO uint32_t P5A : 1; - __IO uint32_t P5B : 1; -} stc_gpio_pdir5_field_t; - -typedef struct stc_gpio_pdir6_field -{ - __IO uint32_t P60 : 1; - __IO uint32_t P61 : 1; - __IO uint32_t P62 : 1; - __IO uint32_t P63 : 1; - __IO uint32_t P64 : 1; - __IO uint32_t P65 : 1; - __IO uint32_t P66 : 1; - __IO uint32_t P67 : 1; - __IO uint32_t P68 : 1; -} stc_gpio_pdir6_field_t; - -typedef struct stc_gpio_pdir7_field -{ - __IO uint32_t P70 : 1; - __IO uint32_t P71 : 1; - __IO uint32_t P72 : 1; - __IO uint32_t P73 : 1; - __IO uint32_t P74 : 1; -} stc_gpio_pdir7_field_t; - -typedef struct stc_gpio_pdir8_field -{ - __IO uint32_t P80 : 1; - __IO uint32_t P81 : 1; -} stc_gpio_pdir8_field_t; - -typedef struct stc_gpio_pdire_field -{ - __IO uint32_t PE0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t PE2 : 1; - __IO uint32_t PE3 : 1; -} stc_gpio_pdire_field_t; - -typedef struct stc_gpio_pdor0_field -{ - __IO uint32_t P00 : 1; - __IO uint32_t P01 : 1; - __IO uint32_t P02 : 1; - __IO uint32_t P03 : 1; - __IO uint32_t P04 : 1; - __IO uint32_t P05 : 1; - __IO uint32_t P06 : 1; - __IO uint32_t P07 : 1; - __IO uint32_t P08 : 1; - __IO uint32_t P09 : 1; - __IO uint32_t P0A : 1; - __IO uint32_t P0B : 1; - __IO uint32_t P0C : 1; - __IO uint32_t P0D : 1; - __IO uint32_t P0E : 1; - __IO uint32_t P0F : 1; -} stc_gpio_pdor0_field_t; - -typedef struct stc_gpio_pdor1_field -{ - __IO uint32_t P10 : 1; - __IO uint32_t P11 : 1; - __IO uint32_t P12 : 1; - __IO uint32_t P13 : 1; - __IO uint32_t P14 : 1; - __IO uint32_t P15 : 1; - __IO uint32_t P16 : 1; - __IO uint32_t P17 : 1; - __IO uint32_t P18 : 1; - __IO uint32_t P19 : 1; - __IO uint32_t P1A : 1; - __IO uint32_t P1B : 1; - __IO uint32_t P1C : 1; - __IO uint32_t P1D : 1; - __IO uint32_t P1E : 1; - __IO uint32_t P1F : 1; -} stc_gpio_pdor1_field_t; - -typedef struct stc_gpio_pdor2_field -{ - __IO uint32_t P20 : 1; - __IO uint32_t P21 : 1; - __IO uint32_t P22 : 1; - __IO uint32_t P23 : 1; - __IO uint32_t P24 : 1; - __IO uint32_t P25 : 1; - __IO uint32_t P26 : 1; - __IO uint32_t P27 : 1; -} stc_gpio_pdor2_field_t; - -typedef struct stc_gpio_pdor3_field -{ - __IO uint32_t P30 : 1; - __IO uint32_t P31 : 1; - __IO uint32_t P32 : 1; - __IO uint32_t P33 : 1; - __IO uint32_t P34 : 1; - __IO uint32_t P35 : 1; - __IO uint32_t P36 : 1; - __IO uint32_t P37 : 1; - __IO uint32_t P38 : 1; - __IO uint32_t P39 : 1; - __IO uint32_t P3A : 1; - __IO uint32_t P3B : 1; - __IO uint32_t P3C : 1; - __IO uint32_t P3D : 1; - __IO uint32_t P3E : 1; - __IO uint32_t P3F : 1; -} stc_gpio_pdor3_field_t; - -typedef struct stc_gpio_pdor4_field -{ - __IO uint32_t P40 : 1; - __IO uint32_t P41 : 1; - __IO uint32_t P42 : 1; - __IO uint32_t P43 : 1; - __IO uint32_t P44 : 1; - __IO uint32_t P45 : 1; - __IO uint32_t P46 : 1; - __IO uint32_t P47 : 1; - __IO uint32_t P48 : 1; - __IO uint32_t P49 : 1; - __IO uint32_t P4A : 1; - __IO uint32_t P4B : 1; - __IO uint32_t P4C : 1; - __IO uint32_t P4D : 1; - __IO uint32_t P4E : 1; -} stc_gpio_pdor4_field_t; - -typedef struct stc_gpio_pdor5_field -{ - __IO uint32_t P50 : 1; - __IO uint32_t P51 : 1; - __IO uint32_t P52 : 1; - __IO uint32_t P53 : 1; - __IO uint32_t P54 : 1; - __IO uint32_t P55 : 1; - __IO uint32_t P56 : 1; - __IO uint32_t P57 : 1; - __IO uint32_t P58 : 1; - __IO uint32_t P59 : 1; - __IO uint32_t P5A : 1; - __IO uint32_t P5B : 1; -} stc_gpio_pdor5_field_t; - -typedef struct stc_gpio_pdor6_field -{ - __IO uint32_t P60 : 1; - __IO uint32_t P61 : 1; - __IO uint32_t P62 : 1; - __IO uint32_t P63 : 1; - __IO uint32_t P64 : 1; - __IO uint32_t P65 : 1; - __IO uint32_t P66 : 1; - __IO uint32_t P67 : 1; - __IO uint32_t P68 : 1; -} stc_gpio_pdor6_field_t; - -typedef struct stc_gpio_pdor7_field -{ - __IO uint32_t P70 : 1; - __IO uint32_t P71 : 1; - __IO uint32_t P72 : 1; - __IO uint32_t P73 : 1; - __IO uint32_t P74 : 1; -} stc_gpio_pdor7_field_t; - -typedef struct stc_gpio_pdor8_field -{ - __IO uint32_t P80 : 1; - __IO uint32_t P81 : 1; -} stc_gpio_pdor8_field_t; - -typedef struct stc_gpio_pdore_field -{ - __IO uint32_t PE0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t PE2 : 1; - __IO uint32_t PE3 : 1; -} stc_gpio_pdore_field_t; - -typedef struct stc_gpio_ade_field -{ - __IO uint32_t AN00 : 1; - __IO uint32_t AN01 : 1; - __IO uint32_t AN02 : 1; - __IO uint32_t AN03 : 1; - __IO uint32_t AN04 : 1; - __IO uint32_t AN05 : 1; - __IO uint32_t AN06 : 1; - __IO uint32_t AN07 : 1; - __IO uint32_t AN08 : 1; - __IO uint32_t AN09 : 1; - __IO uint32_t AN10 : 1; - __IO uint32_t AN11 : 1; - __IO uint32_t AN12 : 1; - __IO uint32_t AN13 : 1; - __IO uint32_t AN14 : 1; - __IO uint32_t AN15 : 1; - __IO uint32_t AN16 : 1; - __IO uint32_t AN17 : 1; - __IO uint32_t AN18 : 1; - __IO uint32_t AN19 : 1; - __IO uint32_t AN20 : 1; - __IO uint32_t AN21 : 1; - __IO uint32_t AN22 : 1; - __IO uint32_t AN23 : 1; - __IO uint32_t AN24 : 1; - __IO uint32_t AN25 : 1; - __IO uint32_t AN26 : 1; - __IO uint32_t AN27 : 1; - __IO uint32_t AN28 : 1; - __IO uint32_t AN29 : 1; - __IO uint32_t AN30 : 1; - __IO uint32_t AN31 : 1; -} stc_gpio_ade_field_t; - -typedef struct stc_gpio_spsr_field -{ - uint32_t RESERVED0 : 2; - __IO uint32_t MAINXC : 2; - __IO uint32_t USB0C : 1; - __IO uint32_t USB1C : 1; -} stc_gpio_spsr_field_t; - -typedef struct stc_gpio_epfr00_field -{ - __IO uint32_t NMIS : 1; - __IO uint32_t CROUTE : 2; - uint32_t RESERVED3 : 1; - __IO uint32_t RTCCOE : 2; - __IO uint32_t SUBOUTE : 2; - uint32_t RESERVED8 : 1; - __IO uint32_t USBP0E : 1; - uint32_t RESERVED10 : 3; - __IO uint32_t USBP1E : 1; - uint32_t RESERVED14 : 2; - __IO uint32_t JTAGEN0B : 1; - __IO uint32_t JTAGEN1S : 1; - uint32_t RESERVED18 : 6; - __IO uint32_t TRC0E : 1; - __IO uint32_t TRC1E : 1; -} stc_gpio_epfr00_field_t; - -typedef struct stc_gpio_epfr01_field -{ - __IO uint32_t RTO00E : 2; - __IO uint32_t RTO01E : 2; - __IO uint32_t RTO02E : 2; - __IO uint32_t RTO03E : 2; - __IO uint32_t RTO04E : 2; - __IO uint32_t RTO05E : 2; - __IO uint32_t DTTI0C : 1; - uint32_t RESERVED13 : 3; - __IO uint32_t DTTI0S : 2; - __IO uint32_t FRCK0S : 2; - __IO uint32_t IC00S : 3; - __IO uint32_t IC01S : 3; - __IO uint32_t IC02S : 3; - __IO uint32_t IC03S : 3; -} stc_gpio_epfr01_field_t; - -typedef struct stc_gpio_epfr02_field -{ - __IO uint32_t RTO10E : 2; - __IO uint32_t RTO11E : 2; - __IO uint32_t RTO12E : 2; - __IO uint32_t RTO13E : 2; - __IO uint32_t RTO14E : 2; - __IO uint32_t RTO15E : 2; - __IO uint32_t DTTI1C : 1; - uint32_t RESERVED13 : 3; - __IO uint32_t DTTI1S : 2; - __IO uint32_t FRCK1S : 2; - __IO uint32_t IC10S : 3; - __IO uint32_t IC11S : 3; - __IO uint32_t IC12S : 3; - __IO uint32_t IC13S : 3; -} stc_gpio_epfr02_field_t; - -typedef struct stc_gpio_epfr03_field -{ - __IO uint32_t RTO20E : 2; - __IO uint32_t RTO21E : 2; - __IO uint32_t RTO22E : 2; - __IO uint32_t RTO23E : 2; - __IO uint32_t RTO24E : 2; - __IO uint32_t RTO25E : 2; - __IO uint32_t DTTI2C : 1; - uint32_t RESERVED13 : 3; - __IO uint32_t DTTI2S : 2; - __IO uint32_t FRCK2S : 2; - __IO uint32_t IC20S : 3; - __IO uint32_t IC21S : 3; - __IO uint32_t IC22S : 3; - __IO uint32_t IC23S : 3; -} stc_gpio_epfr03_field_t; - -typedef struct stc_gpio_epfr04_field -{ - uint32_t RESERVED0 : 2; - __IO uint32_t TIOA0E : 2; - __IO uint32_t TIOB0S : 3; - uint32_t RESERVED7 : 1; - __IO uint32_t TIOA1S : 2; - __IO uint32_t TIOA1E : 2; - __IO uint32_t TIOB1S : 2; - uint32_t RESERVED14 : 4; - __IO uint32_t TIOA2E : 2; - __IO uint32_t TIOB2S : 2; - uint32_t RESERVED22 : 2; - __IO uint32_t TIOA3S : 2; - __IO uint32_t TIOA3E : 2; - __IO uint32_t TIOB3S : 2; -} stc_gpio_epfr04_field_t; - -typedef struct stc_gpio_epfr05_field -{ - uint32_t RESERVED0 : 2; - __IO uint32_t TIOA4E : 2; - __IO uint32_t TIOB4S : 2; - uint32_t RESERVED6 : 2; - __IO uint32_t TIOA5S : 2; - __IO uint32_t TIOA5E : 2; - __IO uint32_t TIOB5S : 2; - uint32_t RESERVED14 : 4; - __IO uint32_t TIOA6E : 2; - __IO uint32_t TIOB6S : 2; - uint32_t RESERVED22 : 2; - __IO uint32_t TIOA7S : 2; - __IO uint32_t TIOA7E : 2; - __IO uint32_t TIOB7S : 2; -} stc_gpio_epfr05_field_t; - -typedef struct stc_gpio_epfr06_field -{ - __IO uint32_t EINT00S : 2; - __IO uint32_t EINT01S : 2; - __IO uint32_t EINT02S : 2; - __IO uint32_t EINT03S : 2; - __IO uint32_t EINT04S : 2; - __IO uint32_t EINT05S : 2; - __IO uint32_t EINT06S : 2; - __IO uint32_t EINT07S : 2; - __IO uint32_t EINT08S : 2; - __IO uint32_t EINT09S : 2; - __IO uint32_t EINT10S : 2; - __IO uint32_t EINT11S : 2; - __IO uint32_t EINT12S : 2; - __IO uint32_t EINT13S : 2; - __IO uint32_t EINT14S : 2; - __IO uint32_t EINT15S : 2; -} stc_gpio_epfr06_field_t; - -typedef struct stc_gpio_epfr07_field -{ - uint32_t RESERVED0 : 4; - __IO uint32_t SIN0S : 2; - __IO uint32_t SOT0B : 2; - __IO uint32_t SCK0B : 2; - __IO uint32_t SIN1S : 2; - __IO uint32_t SOT1B : 2; - __IO uint32_t SCK1B : 2; - __IO uint32_t SIN2S : 2; - __IO uint32_t SOT2B : 2; - __IO uint32_t SCK2B : 2; - __IO uint32_t SIN3S : 2; - __IO uint32_t SOT3B : 2; - __IO uint32_t SCK3B : 2; -} stc_gpio_epfr07_field_t; - -typedef struct stc_gpio_epfr08_field -{ - __IO uint32_t RTS4E : 2; - __IO uint32_t CTS4S : 2; - __IO uint32_t SIN4S : 2; - __IO uint32_t SOT4B : 2; - __IO uint32_t SCK4B : 2; - __IO uint32_t SIN5S : 2; - __IO uint32_t SOT5B : 2; - __IO uint32_t SCK5B : 2; - __IO uint32_t SIN6S : 2; - __IO uint32_t SOT6B : 2; - __IO uint32_t SCK6B : 2; - __IO uint32_t SIN7S : 2; - __IO uint32_t SOT7B : 2; - __IO uint32_t SCK7B : 2; - __IO uint32_t RTS5E : 2; - __IO uint32_t CTS5S : 2; -} stc_gpio_epfr08_field_t; - -typedef struct stc_gpio_epfr09_field -{ - __IO uint32_t QAIN0S : 2; - __IO uint32_t QBIN0S : 2; - __IO uint32_t QZIN0S : 2; - __IO uint32_t QAIN1S : 2; - __IO uint32_t QBIN1S : 2; - __IO uint32_t QZIN1S : 2; - __IO uint32_t ADTRG0S : 4; - __IO uint32_t ADTRG1S : 4; - __IO uint32_t ADTRG2S : 4; - __IO uint32_t CRX0S : 2; - __IO uint32_t CTX0E : 2; - __IO uint32_t CRX1S : 2; - __IO uint32_t CTX1E : 2; -} stc_gpio_epfr09_field_t; - -typedef struct stc_gpio_epfr10_field -{ - __IO uint32_t UEDEFB : 1; - __IO uint32_t UEDTHB : 1; - __IO uint32_t UECLKE : 1; - __IO uint32_t UEWEXE : 1; - __IO uint32_t UEDQME : 1; - __IO uint32_t UEOEXE : 1; - __IO uint32_t UEFLSE : 1; - __IO uint32_t UECS1E : 1; - __IO uint32_t UECS2E : 1; - __IO uint32_t UECS3E : 1; - __IO uint32_t UECS4E : 1; - __IO uint32_t UECS5E : 1; - __IO uint32_t UECS6E : 1; - __IO uint32_t UECS7E : 1; - __IO uint32_t UEAOOE : 1; - __IO uint32_t UEA08E : 1; - __IO uint32_t UEA09E : 1; - __IO uint32_t UEA10E : 1; - __IO uint32_t UEA11E : 1; - __IO uint32_t UEA12E : 1; - __IO uint32_t UEA13E : 1; - __IO uint32_t UEA14E : 1; - __IO uint32_t UEA15E : 1; - __IO uint32_t UEA16E : 1; - __IO uint32_t UEA17E : 1; - __IO uint32_t UEA18E : 1; - __IO uint32_t UEA19E : 1; - __IO uint32_t UEA20E : 1; - __IO uint32_t UEA21E : 1; - __IO uint32_t UEA22E : 1; - __IO uint32_t UEA23E : 1; - __IO uint32_t UEA24E : 1; -} stc_gpio_epfr10_field_t; - -typedef struct stc_gpio_epfr11_field -{ - __IO uint32_t UEALEE : 1; - __IO uint32_t UECS0E : 1; - __IO uint32_t UEA01E : 1; - __IO uint32_t UEA02E : 1; - __IO uint32_t UEA03E : 1; - __IO uint32_t UEA04E : 1; - __IO uint32_t UEA05E : 1; - __IO uint32_t UEA06E : 1; - __IO uint32_t UEA07E : 1; - __IO uint32_t UED00B : 1; - __IO uint32_t UED01B : 1; - __IO uint32_t UED02B : 1; - __IO uint32_t UED03B : 1; - __IO uint32_t UED04B : 1; - __IO uint32_t UED05B : 1; - __IO uint32_t UED06B : 1; - __IO uint32_t UED07B : 1; - __IO uint32_t UED08B : 1; - __IO uint32_t UED09B : 1; - __IO uint32_t UED10B : 1; - __IO uint32_t UED11B : 1; - __IO uint32_t UED12B : 1; - __IO uint32_t UED13B : 1; - __IO uint32_t UED14B : 1; - __IO uint32_t UED15B : 1; - __IO uint32_t UERLC : 1; -} stc_gpio_epfr11_field_t; - -typedef struct stc_gpio_epfr12_field -{ - uint32_t RESERVED0 : 2; - __IO uint32_t TIOA8E : 2; - __IO uint32_t TIOB8S : 2; - uint32_t RESERVED6 : 2; - __IO uint32_t TIOA9S : 2; - __IO uint32_t TIOA9E : 2; - __IO uint32_t TIOB9S : 2; - uint32_t RESERVED14 : 4; - __IO uint32_t TIOA10E : 2; - __IO uint32_t TIOB10S : 2; - uint32_t RESERVED22 : 2; - __IO uint32_t TIOA11S : 2; - __IO uint32_t TIOA11E : 2; - __IO uint32_t TIOB11S : 2; -} stc_gpio_epfr12_field_t; - -typedef struct stc_gpio_epfr13_field -{ - uint32_t RESERVED0 : 2; - __IO uint32_t TIOA12E : 2; - __IO uint32_t TIOB12S : 2; - uint32_t RESERVED6 : 2; - __IO uint32_t TIOA13S : 2; - __IO uint32_t TIOA13E : 2; - __IO uint32_t TIOB13S : 2; - uint32_t RESERVED14 : 4; - __IO uint32_t TIOA14E : 2; - __IO uint32_t TIOB14S : 2; - uint32_t RESERVED22 : 2; - __IO uint32_t TIOA15S : 2; - __IO uint32_t TIOA15E : 2; - __IO uint32_t TIOB15S : 2; -} stc_gpio_epfr13_field_t; - -typedef struct stc_gpio_epfr14_field -{ - __IO uint32_t QAIN2S : 2; - __IO uint32_t QBIN2S : 2; - __IO uint32_t QZIN2S : 2; - uint32_t RESERVED6 :12; - __IO uint32_t E_TD0E : 1; - __IO uint32_t E_TD1E : 1; - __IO uint32_t E_TE0E : 1; - __IO uint32_t E_TE1E : 1; - __IO uint32_t E_MC0E : 1; - __IO uint32_t E_MC1B : 1; - __IO uint32_t E_MD0B : 1; - __IO uint32_t E_MD1B : 1; - __IO uint32_t E_CKE : 1; - __IO uint32_t E_PSE : 1; - __IO uint32_t E_SPLC : 2; -} stc_gpio_epfr14_field_t; - -typedef struct stc_gpio_epfr15_field -{ - __IO uint32_t EINT16S : 2; - __IO uint32_t EINT17S : 2; - __IO uint32_t EINT18S : 2; - __IO uint32_t EINT19S : 2; - __IO uint32_t EINT20S : 2; - __IO uint32_t EINT21S : 2; - __IO uint32_t EINT22S : 2; - __IO uint32_t EINT23S : 2; - __IO uint32_t EINT24S : 2; - __IO uint32_t EINT25S : 2; - __IO uint32_t EINT26S : 2; - __IO uint32_t EINT27S : 2; - __IO uint32_t EINT28S : 2; - __IO uint32_t EINT29S : 2; - __IO uint32_t EINT30S : 2; - __IO uint32_t EINT31S : 2; -} stc_gpio_epfr15_field_t; - -typedef struct stc_gpio_epfr16_field -{ - __IO uint32_t SCS6B : 2; - __IO uint32_t SCS7B : 2; - __IO uint32_t SIN8S : 2; - __IO uint32_t SOT8B : 2; - __IO uint32_t SCK8B : 2; - __IO uint32_t SIN9S : 2; - __IO uint32_t SOT9B : 2; - __IO uint32_t SCK9B : 2; - __IO uint32_t SIN10S : 2; - __IO uint32_t SOT10B : 2; - __IO uint32_t SCK10B : 2; - __IO uint32_t SIN11S : 2; - __IO uint32_t SOT11B : 2; - __IO uint32_t SCK11B : 2; - __IO uint32_t SFMPAC : 1; - __IO uint32_t SFMPBC : 1; -} stc_gpio_epfr16_field_t; - -typedef struct stc_gpio_epfr17_field -{ - uint32_t RESERVED0 : 4; - __IO uint32_t SIN12S : 2; - __IO uint32_t SOT12B : 2; - __IO uint32_t SCK12B : 2; - __IO uint32_t SIN13S : 2; - __IO uint32_t SOT13B : 2; - __IO uint32_t SCK13B : 2; - __IO uint32_t SIN14S : 2; - __IO uint32_t SOT14B : 2; - __IO uint32_t SCK14B : 2; - __IO uint32_t SIN15S : 2; - __IO uint32_t SOT15B : 2; - __IO uint32_t SCK15B : 2; -} stc_gpio_epfr17_field_t; - -typedef struct stc_gpio_epfr18_field -{ - uint32_t RESERVED0 : 4; - __IO uint32_t QAIN3S : 2; - __IO uint32_t QBIN3S : 2; - __IO uint32_t QZIN3S : 2; - uint32_t RESERVED10 : 4; - __IO uint32_t SDCLKE : 2; - __IO uint32_t SDCMDB : 2; - __IO uint32_t SDDATA0B : 2; - __IO uint32_t SDDATA1B : 2; - __IO uint32_t SDDATA2B : 2; - __IO uint32_t SDDATA3B : 2; - __IO uint32_t SDCDS : 2; - __IO uint32_t SDWPS : 2; -} stc_gpio_epfr18_field_t; - -typedef struct stc_gpio_epfr20_field -{ - __IO uint32_t UESMCEE : 1; - __IO uint32_t UESMCKE : 1; - __IO uint32_t UERASE : 1; - __IO uint32_t UECASE : 1; - __IO uint32_t UEDWEXE : 1; - __IO uint32_t UECSXE : 1; - __IO uint32_t UEDQM2E : 1; - __IO uint32_t UEDQM3E : 1; - __IO uint32_t UEDTHHB : 1; - __IO uint32_t UED16B : 1; - __IO uint32_t UED17B : 1; - __IO uint32_t UED18B : 1; - __IO uint32_t UED19B : 1; - __IO uint32_t UED20B : 1; - __IO uint32_t UED21B : 1; - __IO uint32_t UED22B : 1; - __IO uint32_t UED23B : 1; - __IO uint32_t UED24B : 1; - __IO uint32_t UED25B : 1; - __IO uint32_t UED26B : 1; - __IO uint32_t UED27B : 1; - __IO uint32_t UED28B : 1; - __IO uint32_t UED29B : 1; - __IO uint32_t UED30B : 1; - __IO uint32_t UED31B : 1; -} stc_gpio_epfr20_field_t; - -typedef struct stc_gpio_pzr0_field -{ - __IO uint32_t P00 : 1; - __IO uint32_t P01 : 1; - __IO uint32_t P02 : 1; - __IO uint32_t P03 : 1; - __IO uint32_t P04 : 1; - __IO uint32_t P05 : 1; - __IO uint32_t P06 : 1; - __IO uint32_t P07 : 1; - __IO uint32_t P08 : 1; - __IO uint32_t P09 : 1; - __IO uint32_t P0A : 1; - __IO uint32_t P0B : 1; - __IO uint32_t P0C : 1; - __IO uint32_t P0D : 1; - __IO uint32_t P0E : 1; - __IO uint32_t P0F : 1; -} stc_gpio_pzr0_field_t; - -typedef struct stc_gpio_pzr1_field -{ - __IO uint32_t P10 : 1; - __IO uint32_t P11 : 1; - __IO uint32_t P12 : 1; - __IO uint32_t P13 : 1; - __IO uint32_t P14 : 1; - __IO uint32_t P15 : 1; - __IO uint32_t P16 : 1; - __IO uint32_t P17 : 1; - __IO uint32_t P18 : 1; - __IO uint32_t P19 : 1; - __IO uint32_t P1A : 1; - __IO uint32_t P1B : 1; - __IO uint32_t P1C : 1; - __IO uint32_t P1D : 1; - __IO uint32_t P1E : 1; - __IO uint32_t P1F : 1; -} stc_gpio_pzr1_field_t; - -typedef struct stc_gpio_pzr2_field -{ - __IO uint32_t P20 : 1; - __IO uint32_t P21 : 1; - __IO uint32_t P22 : 1; - __IO uint32_t P23 : 1; - __IO uint32_t P24 : 1; - __IO uint32_t P25 : 1; - __IO uint32_t P26 : 1; - __IO uint32_t P27 : 1; -} stc_gpio_pzr2_field_t; - -typedef struct stc_gpio_pzr3_field -{ - __IO uint32_t P30 : 1; - __IO uint32_t P31 : 1; - __IO uint32_t P32 : 1; - __IO uint32_t P33 : 1; - __IO uint32_t P34 : 1; - __IO uint32_t P35 : 1; - __IO uint32_t P36 : 1; - __IO uint32_t P37 : 1; - __IO uint32_t P38 : 1; - __IO uint32_t P39 : 1; - __IO uint32_t P3A : 1; - __IO uint32_t P3B : 1; - __IO uint32_t P3C : 1; - __IO uint32_t P3D : 1; - __IO uint32_t P3E : 1; - __IO uint32_t P3F : 1; -} stc_gpio_pzr3_field_t; - -typedef struct stc_gpio_pzr4_field -{ - __IO uint32_t P40 : 1; - __IO uint32_t P41 : 1; - __IO uint32_t P42 : 1; - __IO uint32_t P43 : 1; - __IO uint32_t P44 : 1; - __IO uint32_t P45 : 1; - __IO uint32_t P46 : 1; - __IO uint32_t P47 : 1; - __IO uint32_t P48 : 1; - __IO uint32_t P49 : 1; - __IO uint32_t P4A : 1; - __IO uint32_t P4B : 1; - __IO uint32_t P4C : 1; - __IO uint32_t P4D : 1; - __IO uint32_t P4E : 1; -} stc_gpio_pzr4_field_t; - -typedef struct stc_gpio_pzr5_field -{ - __IO uint32_t P50 : 1; - __IO uint32_t P51 : 1; - __IO uint32_t P52 : 1; - __IO uint32_t P53 : 1; - __IO uint32_t P54 : 1; - __IO uint32_t P55 : 1; - __IO uint32_t P56 : 1; - __IO uint32_t P57 : 1; - __IO uint32_t P58 : 1; - __IO uint32_t P59 : 1; - __IO uint32_t P5A : 1; - __IO uint32_t P5B : 1; -} stc_gpio_pzr5_field_t; - -typedef struct stc_gpio_pzr6_field -{ - __IO uint32_t P60 : 1; - __IO uint32_t P61 : 1; - __IO uint32_t P62 : 1; - __IO uint32_t P63 : 1; - __IO uint32_t P64 : 1; - __IO uint32_t P65 : 1; - __IO uint32_t P66 : 1; - __IO uint32_t P67 : 1; - __IO uint32_t P68 : 1; -} stc_gpio_pzr6_field_t; - -typedef struct stc_gpio_pzr7_field -{ - __IO uint32_t P70 : 1; - __IO uint32_t P71 : 1; - __IO uint32_t P72 : 1; - __IO uint32_t P73 : 1; - __IO uint32_t P74 : 1; -} stc_gpio_pzr7_field_t; - -typedef struct stc_gpio_pzr8_field -{ - __IO uint32_t P80 : 1; - __IO uint32_t P81 : 1; -} stc_gpio_pzr8_field_t; - -typedef struct stc_gpio_pzre_field -{ - __IO uint32_t PE0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t PE2 : 1; - __IO uint32_t PE3 : 1; -} stc_gpio_pzre_field_t; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* LVD_MODULE register bit fields */ -typedef struct stc_lvd_lvd_ctl_field -{ - union { - struct { - uint8_t RESERVED1 : 2; - __IO uint8_t SVHI : 4; - uint8_t RESERVED2 : 1; - __IO uint8_t LVDIE : 1; - }; - struct { - uint8_t RESERVED3 : 2; - __IO uint8_t SVHI0 : 1; - __IO uint8_t SVHI1 : 1; - __IO uint8_t SVHI2 : 1; - __IO uint8_t SVHI3 : 1; - uint8_t RESERVED4 : 2; - }; - }; -} stc_lvd_lvd_ctl_field_t; - -typedef struct stc_lvd_lvd_str_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIR : 1; -} stc_lvd_lvd_str_field_t; - -typedef struct stc_lvd_lvd_clr_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDCL : 1; -} stc_lvd_lvd_clr_field_t; - -typedef struct stc_lvd_lvd_str2_field -{ - uint8_t RESERVED1 : 6; - __IO uint8_t LVDRRDY : 1; - __IO uint8_t LVDIRDY : 1; -} stc_lvd_lvd_str2_field_t; - -/****************************************************************************** - * DS_MODULE - ******************************************************************************/ -/* DS_MODULE register bit fields */ -typedef struct stc_ds_rck_ctl_field -{ - __IO uint8_t RTCCKE : 1; -} stc_ds_rck_ctl_field_t; - -typedef struct stc_ds_pmd_ctl_field -{ - __IO uint8_t RTCE : 1; -} stc_ds_pmd_ctl_field_t; - -typedef struct stc_ds_wrfsr_field -{ - __IO uint8_t WINITX : 1; - __IO uint8_t WLVDH : 1; -} stc_ds_wrfsr_field_t; - -typedef struct stc_ds_wifsr_field -{ - __IO uint16_t WRTCI : 1; - __IO uint16_t WLVDI : 1; - __IO uint16_t WUI0 : 1; - __IO uint16_t WUI1 : 1; - __IO uint16_t WUI2 : 1; - __IO uint16_t WUI3 : 1; - __IO uint16_t WUI4 : 1; - __IO uint16_t WUI5 : 1; -} stc_ds_wifsr_field_t; - -typedef struct stc_ds_wier_field -{ - __IO uint16_t WRTCE : 1; - __IO uint16_t WLVDE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t WUI1E : 1; - __IO uint16_t WUI2E : 1; - __IO uint16_t WUI3E : 1; - __IO uint16_t WUI4E : 1; - __IO uint16_t WUI5E : 1; -} stc_ds_wier_field_t; - -typedef struct stc_ds_wilvr_field -{ - __IO uint8_t WUI1LV : 1; - __IO uint8_t WUI2LV : 1; - __IO uint8_t WUI3LV : 1; - __IO uint8_t WUI4LV : 1; - __IO uint8_t WUI5LV : 1; -} stc_ds_wilvr_field_t; - -typedef struct stc_ds_dsramr_field -{ - __IO uint8_t SRAMR : 2; -} stc_ds_dsramr_field_t; - -/****************************************************************************** - * USB Ethernet CLK - ******************************************************************************/ -/* USB ETHERNET CLK register bit fields */ -typedef struct stc_usbethernetclk_uccr_field -{ - __IO uint8_t UCEN0 : 1; - __IO uint8_t UCSEL0 : 1; - __IO uint8_t UCSEL1 : 1; - __IO uint8_t UCEN1 : 1; - __IO uint8_t ECEN : 1; - __IO uint8_t ECSEL0 : 1; - __IO uint8_t ECSEL1 : 1; -} stc_usbethernetclk_uccr_field_t; - -typedef struct stc_usbethernetclk_upcr1_field -{ - __IO uint8_t UPLLEN : 1; - __IO uint8_t UPINC : 1; -} stc_usbethernetclk_upcr1_field_t; - -typedef struct stc_usbethernetclk_upcr2_field -{ - __IO uint8_t UPOWT0 : 1; - __IO uint8_t UPOWT1 : 1; - __IO uint8_t UPOWT2 : 1; -} stc_usbethernetclk_upcr2_field_t; - -typedef struct stc_usbethernetclk_upcr3_field -{ - __IO uint8_t UPLLK0 : 1; - __IO uint8_t UPLLK1 : 1; - __IO uint8_t UPLLK2 : 1; - __IO uint8_t UPLLK3 : 1; - __IO uint8_t UPLLK4 : 1; -} stc_usbethernetclk_upcr3_field_t; - -typedef struct stc_usbethernetclk_upcr4_field -{ - __IO uint8_t UPLLN0 : 1; - __IO uint8_t UPLLN1 : 1; - __IO uint8_t UPLLN2 : 1; - __IO uint8_t UPLLN3 : 1; - __IO uint8_t UPLLN4 : 1; - __IO uint8_t UPLLN5 : 1; - __IO uint8_t UPLLN6 : 1; -} stc_usbethernetclk_upcr4_field_t; - -typedef struct stc_usbethernetclk_up_str_field -{ - __IO uint8_t UPRDY : 1; -} stc_usbethernetclk_up_str_field_t; - -typedef struct stc_usbethernetclk_upint_enr_field -{ - __IO uint8_t UPCSE : 1; -} stc_usbethernetclk_upint_enr_field_t; - -typedef struct stc_usbethernetclk_upint_clr_field -{ - __IO uint8_t UPCSC : 1; -} stc_usbethernetclk_upint_clr_field_t; - -typedef struct stc_usbethernetclk_upint_str_field -{ - __IO uint8_t UPCSI : 1; -} stc_usbethernetclk_upint_str_field_t; - -typedef struct stc_usbethernetclk_upcr5_field -{ - __IO uint8_t UPLLM0 : 1; - __IO uint8_t UPLLM1 : 1; - __IO uint8_t UPLLM2 : 1; - __IO uint8_t UPLLM3 : 1; -} stc_usbethernetclk_upcr5_field_t; - -typedef struct stc_usbethernetclk_upcr6_field -{ - __IO uint8_t UBSR0 : 1; - __IO uint8_t UBSR1 : 1; - __IO uint8_t UBSR2 : 1; - __IO uint8_t UBSR3 : 1; -} stc_usbethernetclk_upcr6_field_t; - -typedef struct stc_usbethernetclk_upcr7_field -{ - __IO uint8_t EPLLEN : 1; -} stc_usbethernetclk_upcr7_field_t; - -typedef struct stc_usbethernetclk_usben0_field -{ - __IO uint8_t USBEN0 : 1; -} stc_usbethernetclk_usben0_field_t; - -typedef struct stc_usbethernetclk_usben1_field -{ - __IO uint8_t USBEN1 : 1; -} stc_usbethernetclk_usben1_field_t; - - -/****************************************************************************** - * USBCLK - ******************************************************************************/ -/* USBCLK register bit fields */ -typedef struct stc_usbclk_uccr_field -{ - __IO uint8_t UCEN : 1; - __IO uint8_t UCSEL : 1; -} stc_usbclk_uccr_field_t; - -typedef struct stc_usbclk_upcr1_field -{ - __IO uint8_t UPLLEN : 1; - __IO uint8_t UPINC : 1; -} stc_usbclk_upcr1_field_t; - -typedef struct stc_usbclk_upcr2_field -{ - __IO uint8_t UPOWT0 : 1; - __IO uint8_t UPOWT1 : 1; - __IO uint8_t UPOWT2 : 1; -} stc_usbclk_upcr2_field_t; - -typedef struct stc_usbclk_upcr3_field -{ - __IO uint8_t UPLLK0 : 1; - __IO uint8_t UPLLK1 : 1; - __IO uint8_t UPLLK2 : 1; - __IO uint8_t UPLLK3 : 1; - __IO uint8_t UPLLK4 : 1; -} stc_usbclk_upcr3_field_t; - -typedef struct stc_usbclk_upcr4_field -{ - __IO uint8_t UPLLN0 : 1; - __IO uint8_t UPLLN1 : 1; - __IO uint8_t UPLLN2 : 1; - __IO uint8_t UPLLN3 : 1; - __IO uint8_t UPLLN4 : 1; -} stc_usbclk_upcr4_field_t; - -typedef struct stc_usbclk_up_str_field -{ - __IO uint8_t UPRDY : 1; -} stc_usbclk_up_str_field_t; - -typedef struct stc_usbclk_upint_enr_field -{ - __IO uint8_t UPCSE : 1; -} stc_usbclk_upint_enr_field_t; - -typedef struct stc_usbclk_upint_clr_field -{ - __IO uint8_t UPCSC : 1; -} stc_usbclk_upint_clr_field_t; - -typedef struct stc_usbclk_upint_str_field -{ - __IO uint8_t UPCSI : 1; -} stc_usbclk_upint_str_field_t; - -typedef struct stc_usbclk_usben_field -{ - __IO uint8_t USBEN : 1; -} stc_usbclk_usben_field_t; - -/****************************************************************************** - * CANPRE_MODULE - ******************************************************************************/ -/* CANPRE_MODULE register bit fields */ -typedef struct stc_canpre_canpre_field -{ - __IO uint8_t CANPRE0 : 1; - __IO uint8_t CANPRE1 : 1; - __IO uint8_t CANPRE2 : 1; - __IO uint8_t CANPRE3 : 1; -} stc_canpre_canpre_field_t; - -/****************************************************************************** - * MFS_MODULE(COMMON) - ******************************************************************************/ -/* MFS_MODULE(COMMON) register bit fields */ -typedef struct stc_mfs_smr_field -{ - union { - struct { - __IO uint8_t SOE : 1; /* for UART/CSIO/LIN */ - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; /* for UART/CSIO */ - __IO uint8_t SBL : 1; /* for UART/LIN */ - __IO uint8_t WUCR : 1; /* for UART/LIN */ - __IO uint8_t MD : 3; /* for UART/CSIO/LIN/I2C */ - }; - struct { - uint8_t RESERVED2 : 1; - __IO uint8_t SCKE : 1; /* for CSIO */ - uint8_t RESERVED3 : 1; - __IO uint8_t SCINV : 1; /* for CSIO */ - uint8_t RESERVED4 : 4; - }; - struct { - uint8_t RESERVED5 : 2; - __IO uint8_t TIE : 1; /* for I2C */ - __IO uint8_t RIE : 1; /* for I2C */ - uint8_t RESERVED6 : 4; - }; - }; -} stc_mfs_smr_field_t; - -typedef struct stc_mfs_scr_field -{ - union { - struct { - __IO uint8_t TXE : 1; /* for UART/CSIO/LIN */ - __IO uint8_t RXE : 1; /* for UART/CSIO/LIN */ - __IO uint8_t TBIE : 1; /* for UART/CSIO/LIN */ - __IO uint8_t TIE : 1; /* for UART/CSIO/LIN */ - __IO uint8_t RIE : 1; /* for UART/CSIO/LIN */ - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; /* for UART/CSIO/LIN */ - }; - struct { - uint8_t RESERVED2 : 5; - __IO uint8_t SPI : 1; /* for CSIO */ - __IO uint8_t MS : 1; /* for CSIO/LIN */ - uint8_t RESERVED3 : 1; - }; - struct { - uint8_t RESERVED4 : 5; - __IO uint8_t LBR : 1; /* for LIN */ - uint8_t RESERVED5 : 2; - }; - }; -} stc_mfs_scr_field_t; - -typedef struct stc_mfs_escr_field -{ - union { - struct { - __IO uint8_t L : 3; /* for UART/CSIO */ - __IO uint8_t P : 1; /* for UART */ - __IO uint8_t PEN : 1; /* for UART */ - __IO uint8_t INV : 1; /* for UART */ - __IO uint8_t ESBL : 1; /* for UART/LIN */ - __IO uint8_t FLWEN : 1; /* for UART */ - }; - struct { - __IO uint8_t L0 : 1; /* for UART/CSIO */ - __IO uint8_t L1 : 1; /* for UART/CSIO */ - __IO uint8_t L2 : 1; /* for UART/CSIO */ - __IO uint8_t WT : 2; /* for CSIO */ - uint8_t RESERVED2 : 1; - __IO uint8_t L3 : 1; /* for CSIO */ - __IO uint8_t SOP : 1; /* for CSIO */ - }; - struct { - uint8_t RESERVED3 : 3; - __IO uint8_t WT0 : 1; /* for CSIO */ - __IO uint8_t WT1 : 1; /* for CSIO */ - uint8_t RESERVED4 : 3; - }; - struct { - __IO uint8_t DEL : 2; /* for LIN */ - __IO uint8_t LBL : 2; /* for LIN */ - __IO uint8_t LBIE : 1; /* for LIN */ - uint8_t RESERVED5 : 3; - }; - struct { - __IO uint8_t DEL0 : 1; /* for LIN */ - __IO uint8_t DEL1 : 1; /* for LIN */ - __IO uint8_t LBL0 : 1; /* for LIN */ - __IO uint8_t LBL1 : 1; /* for LIN */ - uint8_t RESERVED6 : 4; - }; - }; -} stc_mfs_escr_field_t; - -typedef struct stc_mfs_ssr_field -{ - union { - struct { - __IO uint8_t TBI : 1; /* for UART/CSIO/LIN/I2C */ - __IO uint8_t TDRE : 1; /* for UART/CSIO/LIN/I2C */ - __IO uint8_t RDRF : 1; /* for UART/CSIO/LIN/I2C */ - __IO uint8_t ORE : 1; /* for UART/CSIO/LIN/I2C */ - __IO uint8_t FRE : 1; /* for UART/LIN */ - __IO uint8_t PE : 1; /* for UART */ - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; /* for UART/CSIO/LIN/I2C */ - }; - struct { - uint8_t RESERVED2 : 4; - __IO uint8_t AWC : 1; /* for CSIO */ - uint8_t RESERVED3 : 3; - }; - struct { - uint8_t RESERVED4 : 5; - __IO uint8_t LBD : 1; /* for LIN */ - uint8_t RESERVED5 : 2; - }; - struct { - uint8_t RESERVED6 : 4; - __IO uint8_t TBIE : 1; /* for I2C */ - __IO uint8_t DMA : 1; /* for I2C */ - __IO uint8_t TSET : 1; /* for I2C */ - uint8_t RESERVED7 : 1; - }; - }; -} stc_mfs_ssr_field_t; - -typedef struct stc_mfs_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs_bgr_field_t; - -typedef struct stc_mfs_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs_bgr1_field_t; - -typedef struct stc_mfs_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs_fcr_field_t; - -typedef struct stc_mfs_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; - uint8_t RESERVED1 : 1; -} stc_mfs_fcr0_field_t; - -typedef struct stc_mfs_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs_fcr1_field_t; - -typedef struct stc_mfs_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs_fbyte_field_t; - -typedef struct stc_mfs_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs_fbyte1_field_t; - -typedef struct stc_mfs_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs_fbyte2_field_t; - -/****************************************************************************** - * MFS_MODULE(UART) - ******************************************************************************/ -/* MFS_MODULE(UART) register bit fields */ -typedef struct stc_mfs_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; - uint16_t RESERVED2 : 7; -} stc_mfs_uart_rdr_field_t; - -typedef struct stc_mfs_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; - uint16_t RESERVED2 : 7; -} stc_mfs_uart_tdr_field_t; - -/****************************************************************************** - * MFS_MODULE(CSIO) - ******************************************************************************/ -/* MFS_MODULE(CSIO) register bit fields */ -typedef struct stc_mfs_csio_scstr10_field -{ - __IO uint16_t CSHD0 : 1; - __IO uint16_t CSHD1 : 1; - __IO uint16_t CSHD2 : 1; - __IO uint16_t CSHD3 : 1; - __IO uint16_t CSHD4 : 1; - __IO uint16_t CSHD5 : 1; - __IO uint16_t CSHD6 : 1; - __IO uint16_t CSHD7 : 1; - __IO uint16_t CSSU0 : 1; - __IO uint16_t CSSU1 : 1; - __IO uint16_t CSSU2 : 1; - __IO uint16_t CSSU3 : 1; - __IO uint16_t CSSU4 : 1; - __IO uint16_t CSSU5 : 1; - __IO uint16_t CSSU6 : 1; - __IO uint16_t CSSU7 : 1; -} stc_mfs_csio_scstr10_field_t; - -typedef struct stc_mfs_csio_scstr0_field -{ - __IO uint8_t CSHD0 : 1; - __IO uint8_t CSHD1 : 1; - __IO uint8_t CSHD2 : 1; - __IO uint8_t CSHD3 : 1; - __IO uint8_t CSHD4 : 1; - __IO uint8_t CSHD5 : 1; - __IO uint8_t CSHD6 : 1; - __IO uint8_t CSHD7 : 1; -} stc_mfs_csio_scstr0_field_t; - -typedef struct stc_mfs_csio_scstr1_field -{ - __IO uint8_t CSSU0 : 1; - __IO uint8_t CSSU1 : 1; - __IO uint8_t CSSU2 : 1; - __IO uint8_t CSSU3 : 1; - __IO uint8_t CSSU4 : 1; - __IO uint8_t CSSU5 : 1; - __IO uint8_t CSSU6 : 1; - __IO uint8_t CSSU7 : 1; -} stc_mfs_csio_scstr1_field_t; - -typedef struct stc_mfs_csio_scstr32_field -{ - __IO uint16_t CSDS0 : 1; - __IO uint16_t CSDS1 : 1; - __IO uint16_t CSDS2 : 1; - __IO uint16_t CSDS3 : 1; - __IO uint16_t CSDS4 : 1; - __IO uint16_t CSDS5 : 1; - __IO uint16_t CSDS6 : 1; - __IO uint16_t CSDS7 : 1; - __IO uint16_t CSDS8 : 1; - __IO uint16_t CSDS9 : 1; - __IO uint16_t CSDS10 : 1; - __IO uint16_t CSDS11 : 1; - __IO uint16_t CSDS12 : 1; - __IO uint16_t CSDS13 : 1; - __IO uint16_t CSDS14 : 1; - __IO uint16_t CSDS15 : 1; -} stc_mfs_csio_scstr32_field_t; - -typedef struct stc_mfs_csio_scstr2_field -{ - __IO uint8_t CSDS0 : 1; - __IO uint8_t CSDS1 : 1; - __IO uint8_t CSDS2 : 1; - __IO uint8_t CSDS3 : 1; - __IO uint8_t CSDS4 : 1; - __IO uint8_t CSDS5 : 1; - __IO uint8_t CSDS6 : 1; - __IO uint8_t CSDS7 : 1; -} stc_mfs_csio_scstr2_field_t; - -typedef struct stc_mfs_csio_scstr3_field -{ - __IO uint8_t CSDS8 : 1; - __IO uint8_t CSDS9 : 1; - __IO uint8_t CSDS10 : 1; - __IO uint8_t CSDS11 : 1; - __IO uint8_t CSDS12 : 1; - __IO uint8_t CSDS13 : 1; - __IO uint8_t CSDS14 : 1; - __IO uint8_t CSDS15 : 1; -} stc_mfs_csio_scstr3_field_t; - -typedef struct stc_mfs_csio_sacsr_field -{ - __IO uint16_t TMRE : 1; - __IO uint16_t TDIV : 4; - uint16_t RESERVED1 : 1; - __IO uint16_t TSYNE : 1; - __IO uint16_t TINTE : 1; - __IO uint16_t TINT : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t CSE : 1; - __IO uint16_t CSEIE : 1; - __IO uint16_t TBEEN : 1; - uint16_t RESERVED3 : 2; -} stc_mfs_csio_sacsr_field_t; - -typedef struct stc_mfs_csio_sacsr0_field -{ - __IO uint8_t TMRE : 1; - __IO uint8_t TDIV : 4; - uint8_t RESERVED1 : 1; - __IO uint8_t TSYNE : 1; - __IO uint8_t TINTE : 1; -} stc_mfs_csio_sacsr0_field_t; - -typedef struct stc_mfs_csio_sacsr1_field -{ - __IO uint8_t TINT : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CSE : 1; - __IO uint8_t CSEIE : 1; - __IO uint8_t TBEEN : 1; - uint8_t RESERVED2 : 2; -} stc_mfs_csio_sacsr1_field_t; - -typedef struct stc_mfs_csio_stmr_field -{ - __IO uint16_t TM0 : 1; - __IO uint16_t TM1 : 1; - __IO uint16_t TM2 : 1; - __IO uint16_t TM3 : 1; - __IO uint16_t TM4 : 1; - __IO uint16_t TM5 : 1; - __IO uint16_t TM6 : 1; - __IO uint16_t TM7 : 1; - __IO uint16_t TM8 : 1; - __IO uint16_t TM9 : 1; - __IO uint16_t TM10 : 1; - __IO uint16_t TM11 : 1; - __IO uint16_t TM12 : 1; - __IO uint16_t TM13 : 1; - __IO uint16_t TM14 : 1; - __IO uint16_t TM15 : 1; -} stc_mfs_csio_stmr_field_t; - -typedef struct stc_mfs_csio_stmr0_field -{ - __IO uint8_t TM0 : 1; - __IO uint8_t TM1 : 1; - __IO uint8_t TM2 : 1; - __IO uint8_t TM3 : 1; - __IO uint8_t TM4 : 1; - __IO uint8_t TM5 : 1; - __IO uint8_t TM6 : 1; - __IO uint8_t TM7 : 1; -} stc_mfs_csio_stmr0_field_t; - -typedef struct stc_mfs_csio_stmr1_field -{ - __IO uint8_t TM8 : 1; - __IO uint8_t TM9 : 1; - __IO uint8_t TM10 : 1; - __IO uint8_t TM11 : 1; - __IO uint8_t TM12 : 1; - __IO uint8_t TM13 : 1; - __IO uint8_t TM14 : 1; - __IO uint8_t TM15 : 1; -} stc_mfs_csio_stmr1_field_t; - -typedef struct stc_mfs_csio_stmcr_field -{ - __IO uint16_t TC0 : 1; - __IO uint16_t TC1 : 1; - __IO uint16_t TC2 : 1; - __IO uint16_t TC3 : 1; - __IO uint16_t TC4 : 1; - __IO uint16_t TC5 : 1; - __IO uint16_t TC6 : 1; - __IO uint16_t TC7 : 1; - __IO uint16_t TC8 : 1; - __IO uint16_t TC9 : 1; - __IO uint16_t TC10 : 1; - __IO uint16_t TC11 : 1; - __IO uint16_t TC12 : 1; - __IO uint16_t TC13 : 1; - __IO uint16_t TC14 : 1; - __IO uint16_t TC15 : 1; -} stc_mfs_csio_stmcr_field_t; - -typedef struct stc_mfs_csio_stmcr0_field -{ - __IO uint8_t TC0 : 1; - __IO uint8_t TC1 : 1; - __IO uint8_t TC2 : 1; - __IO uint8_t TC3 : 1; - __IO uint8_t TC4 : 1; - __IO uint8_t TC5 : 1; - __IO uint8_t TC6 : 1; - __IO uint8_t TC7 : 1; -} stc_mfs_csio_stmcr0_field_t; - -typedef struct stc_mfs_csio_stmcr1_field -{ - __IO uint8_t TC8 : 1; - __IO uint8_t TC9 : 1; - __IO uint8_t TC10 : 1; - __IO uint8_t TC11 : 1; - __IO uint8_t TC12 : 1; - __IO uint8_t TC13 : 1; - __IO uint8_t TC14 : 1; - __IO uint8_t TC15 : 1; -} stc_mfs_csio_stmcr1_field_t; - -typedef struct stc_mfs_csio_scscr_field -{ - __IO uint16_t CSOE : 1; - __IO uint16_t CSEN0 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t CSLVL : 1; - __IO uint16_t CDIV : 3; - __IO uint16_t SCAM : 1; - uint16_t RESERVED2 : 6; -} stc_mfs_csio_scscr_field_t; - -/****************************************************************************** - * MFS_MODULE(I2C) - ******************************************************************************/ -/* MFS_MODULE(I2C) register bit fields */ -typedef struct stc_mfs_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t ACT_SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs_i2c_ibcr_field_t; - -typedef struct stc_mfs_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs_i2c_ibsr_field_t; - -typedef struct stc_mfs_i2c_isba_field -{ - union { - struct { - __IO uint8_t SA : 7; - __IO uint8_t SAEN : 1; - }; - struct { - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - uint8_t RESERVED1 : 1; - }; - }; -} stc_mfs_i2c_isba_field_t; - -typedef struct stc_mfs_i2c_ismk_field -{ - union { - struct { - __IO uint8_t SM : 7; - __IO uint8_t EN : 1; - }; - struct { - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - uint8_t RESERVED1 : 1; - }; - }; -} stc_mfs_i2c_ismk_field_t; - -typedef struct stc_mfs_i2c_nfcr_field -{ - __IO uint8_t NFT : 5; - uint8_t RESERVED1 : 3; -} stc_mfs_i2c_nfcr_field_t; - -typedef struct stc_mfs_i2c_eibcr_field -{ - __IO uint8_t BEC : 1; - __IO uint8_t SOCE : 1; - __IO uint8_t SCLC : 1; - __IO uint8_t SDAC : 1; - __IO uint8_t SCLS : 1; - __IO uint8_t SDAS : 1; - uint8_t RESERVED1 : 2; -} stc_mfs_i2c_eibcr_field_t; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC_MODULE register bit fields */ -typedef struct stc_crc_crccr_field -{ - __IO uint8_t INIT : 1; - __IO uint8_t CRC32 : 1; - __IO uint8_t LTLEND : 1; - __IO uint8_t LSBFST : 1; - __IO uint8_t CRCLTE : 1; - __IO uint8_t CRCLSF : 1; - __IO uint8_t FXOR : 1; -} stc_crc_crccr_field_t; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* WC_MODULE register bit fields */ -typedef struct stc_wc_wcrd_field -{ - __IO uint8_t CTR0 : 1; - __IO uint8_t CTR1 : 1; - __IO uint8_t CTR2 : 1; - __IO uint8_t CTR3 : 1; - __IO uint8_t CTR4 : 1; - __IO uint8_t CTR5 : 1; -} stc_wc_wcrd_field_t; - -typedef struct stc_wc_wcrl_field -{ - __IO uint8_t RLC0 : 1; - __IO uint8_t RLC1 : 1; - __IO uint8_t RLC2 : 1; - __IO uint8_t RLC3 : 1; - __IO uint8_t RLC4 : 1; - __IO uint8_t RLC5 : 1; -} stc_wc_wcrl_field_t; - -typedef struct stc_wc_wccr_field -{ - __IO uint8_t WCIF : 1; - __IO uint8_t WCIE : 1; - __IO uint8_t CS0 : 1; - __IO uint8_t CS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t WCOP : 1; - __IO uint8_t WCEN : 1; -} stc_wc_wccr_field_t; - -typedef struct stc_wc_clk_sel_field -{ - __IO uint16_t SEL_IN : 2; - uint16_t RESERVED1 : 6; - __IO uint16_t SEL_OUT : 3; -} stc_wc_clk_sel_field_t; - -typedef struct stc_wc_clk_en_field -{ - __IO uint8_t CLK_EN : 1; - __IO uint8_t CLK_EN_R : 1; -} stc_wc_clk_en_field_t; - -/****************************************************************************** - * RTC_MODULE - ******************************************************************************/ -/* RTC_MODULE register bit fields */ -/* RTC CNT */ -typedef struct stc_rtc_wtcr10_field -{ - __IO uint8_t ST : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t RUN : 1; - __IO uint8_t SRST : 1; - __IO uint8_t SCST : 1; - __IO uint8_t SCRST : 1; - __IO uint8_t BUSY : 1; - __IO uint8_t TRANS : 1; -} stc_rtc_wtcr10_field_t; - -typedef struct stc_rtc_wtcr11_field -{ - __IO uint8_t MIEN : 1; - __IO uint8_t HEN : 1; - __IO uint8_t DEN : 1; - __IO uint8_t MOEN : 1; - __IO uint8_t YEN : 1; - uint8_t RESERVED1 : 3; -} stc_rtc_wtcr11_field_t; - -typedef struct stc_rtc_wtcr12_field -{ - __IO uint8_t INTSSI : 1; - __IO uint8_t INTSI : 1; - __IO uint8_t INTMI : 1; - __IO uint8_t INTHI : 1; - __IO uint8_t INTTMI : 1; - __IO uint8_t INTALI : 1; - __IO uint8_t INTERI : 1; - __IO uint8_t INTCRI : 1; -} stc_rtc_wtcr12_field_t; - -typedef struct stc_rtc_wtcr13_field -{ - __IO uint8_t INTSSIE : 1; - __IO uint8_t INTSIE : 1; - __IO uint8_t INTMIE : 1; - __IO uint8_t INTHIE : 1; - __IO uint8_t INTTMIE : 1; - __IO uint8_t INTALIE : 1; - __IO uint8_t INTERIE : 1; - __IO uint8_t INTCRIE : 1; -} stc_rtc_wtcr13_field_t; - -typedef struct stc_rtc_wtcr20_field -{ - __IO uint8_t CREAD : 1; - __IO uint8_t CWRITE : 1; - __IO uint8_t BREAD : 1; - __IO uint8_t BWRITE : 1; - __IO uint8_t PREAD : 1; - __IO uint8_t PWRITE : 1; - uint8_t RESERVED1 : 2; -} stc_rtc_wtcr20_field_t; - -typedef struct stc_rtc_wtcr21_field -{ - __IO uint8_t TMST : 1; - __IO uint8_t TMEN : 1; - __IO uint8_t TMRUN : 1; - uint8_t RESERVED1 : 5; -} stc_rtc_wtcr21_field_t; - -typedef struct stc_rtc_wtsr_field -{ - union { - struct { - __IO uint8_t S : 4; - __IO uint8_t TS : 3; - uint8_t RESERVED1 : 1; - }; - struct { - __IO uint8_t S0 : 1; - __IO uint8_t S1 : 1; - __IO uint8_t S2 : 1; - __IO uint8_t S3 : 1; - __IO uint8_t TS0 : 1; - __IO uint8_t TS1 : 1; - __IO uint8_t TS2 : 1; - uint8_t RESERVED2 : 1; - }; - }; -} stc_rtc_wtsr_field_t; - -typedef struct stc_rtc_wtmir_field -{ - union { - struct { - __IO uint8_t MI : 4; - __IO uint8_t TMI : 3; - uint8_t RESERVED1 : 1; - }; - struct { - __IO uint8_t MI0 : 1; - __IO uint8_t MI1 : 1; - __IO uint8_t MI2 : 1; - __IO uint8_t MI3 : 1; - __IO uint8_t TMI0 : 1; - __IO uint8_t TMI1 : 1; - __IO uint8_t TMI2 : 1; - uint8_t RESERVED2 : 1; - }; - }; -} stc_rtc_wtmir_field_t; - -typedef struct stc_rtc_wthr_field -{ - union { - struct { - __IO uint8_t H : 4; - __IO uint8_t TH : 2; - uint8_t RESERVED1 : 2; - }; - struct { - __IO uint8_t H0 : 1; - __IO uint8_t H1 : 1; - __IO uint8_t H2 : 1; - __IO uint8_t H3 : 1; - __IO uint8_t TH0 : 1; - __IO uint8_t TH1 : 1; - uint8_t RESERVED2 : 2; - }; - }; -} stc_rtc_wthr_field_t; - -typedef struct stc_rtc_wtdr_field -{ - union { - struct { - __IO uint8_t D : 4; - __IO uint8_t TD : 2; - uint8_t RESERVED1 : 2; - }; - struct { - __IO uint8_t D0 : 1; - __IO uint8_t D1 : 1; - __IO uint8_t D2 : 1; - __IO uint8_t D3 : 1; - __IO uint8_t TD0 : 1; - __IO uint8_t TD1 : 1; - uint8_t RESERVED2 : 2; - }; - }; -} stc_rtc_wtdr_field_t; - -typedef struct stc_rtc_wtdw_field -{ - union { - struct { - __IO uint8_t DW : 3; - uint8_t RESERVED1 : 5; - }; - struct { - __IO uint8_t DW0 : 1; - __IO uint8_t DW1 : 1; - __IO uint8_t DW2 : 1; - uint8_t RESERVED2 : 5; - }; - }; -} stc_rtc_wtdw_field_t; - -typedef struct stc_rtc_wtmor_field -{ - union { - struct { - __IO uint8_t MO : 4; - __IO uint8_t TMO : 1; - uint8_t RESERVED1 : 3; - }; - struct { - __IO uint8_t MO0 : 1; - __IO uint8_t MO1 : 1; - __IO uint8_t MO2 : 1; - __IO uint8_t MO3 : 1; - uint8_t RESERVED2 : 4; - }; - }; -} stc_rtc_wtmor_field_t; - -typedef struct stc_rtc_wtyr_field -{ - union { - struct { - __IO uint8_t Y : 4; - __IO uint8_t TY : 4; - }; - struct { - __IO uint8_t Y0 : 1; - __IO uint8_t Y1 : 1; - __IO uint8_t Y2 : 1; - __IO uint8_t Y3 : 1; - __IO uint8_t TY0 : 1; - __IO uint8_t TY1 : 1; - __IO uint8_t TY2 : 1; - __IO uint8_t TY3 : 1; - }; - }; -} stc_rtc_wtyr_field_t; - -typedef struct stc_rtc_almir_field -{ - union { - struct { - __IO uint8_t AMI : 4; - __IO uint8_t TAMI : 3; - uint8_t RESERVED1 : 1; - }; - struct { - __IO uint8_t AMI0 : 1; - __IO uint8_t AMI1 : 1; - __IO uint8_t AMI2 : 1; - __IO uint8_t AMI3 : 1; - __IO uint8_t TAMI0 : 1; - __IO uint8_t TAMI1 : 1; - __IO uint8_t TAMI2 : 1; - uint8_t RESERVED2 : 1; - }; - }; -} stc_rtc_almir_field_t; - -typedef struct stc_rtc_alhr_field -{ - union { - struct { - __IO uint8_t AH : 4; - __IO uint8_t TAH : 2; - uint8_t RESERVED1 : 2; - }; - struct { - __IO uint8_t AH0 : 1; - __IO uint8_t AH1 : 1; - __IO uint8_t AH2 : 1; - __IO uint8_t AH3 : 1; - __IO uint8_t TAH0 : 1; - __IO uint8_t TAH1 : 1; - uint8_t RESERVED2 : 2; - }; - }; -} stc_rtc_alhr_field_t; - -typedef struct stc_rtc_aldr_field -{ - union { - struct { - __IO uint8_t AD : 4; - __IO uint8_t TAD : 2; - uint8_t RESERVED1 : 2; - }; - struct { - __IO uint8_t AD0 : 1; - __IO uint8_t AD1 : 1; - __IO uint8_t AD2 : 1; - __IO uint8_t AD3 : 1; - __IO uint8_t TAD0 : 1; - __IO uint8_t TAD1 : 1; - uint8_t RESERVED2 : 2; - }; - }; -} stc_rtc_aldr_field_t; - -typedef struct stc_rtc_almor_field -{ - union { - struct { - __IO uint8_t AMO : 4; - __IO uint8_t TAMO : 1; - uint8_t RESERVED1 : 3; - }; - struct { - __IO uint8_t AMO0 : 1; - __IO uint8_t AMO1 : 1; - __IO uint8_t AMO2 : 1; - __IO uint8_t AMO3 : 1; - uint8_t RESERVED2 : 4; - }; - }; -} stc_rtc_almor_field_t; - -typedef struct stc_rtc_alyr_field -{ - union { - struct { - __IO uint8_t AY : 4; - __IO uint8_t TAY : 4; - }; - struct { - __IO uint8_t AY0 : 1; - __IO uint8_t AY1 : 1; - __IO uint8_t AY2 : 1; - __IO uint8_t AY3 : 1; - __IO uint8_t TAY0 : 1; - __IO uint8_t TAY1 : 1; - __IO uint8_t TAY2 : 1; - __IO uint8_t TAY3 : 1; - }; - }; -} stc_rtc_alyr_field_t; - -typedef struct stc_rtc_wttr0_field -{ - __IO uint8_t TM0 : 1; - __IO uint8_t TM1 : 1; - __IO uint8_t TM2 : 1; - __IO uint8_t TM3 : 1; - __IO uint8_t TM4 : 1; - __IO uint8_t TM5 : 1; - __IO uint8_t TM6 : 1; - __IO uint8_t TM7 : 1; -} stc_rtc_wttr0_field_t; - -typedef struct stc_rtc_wttr1_field -{ - __IO uint8_t TM8 : 1; - __IO uint8_t TM9 : 1; - __IO uint8_t TM10 : 1; - __IO uint8_t TM11 : 1; - __IO uint8_t TM12 : 1; - __IO uint8_t TM13 : 1; - __IO uint8_t TM14 : 1; - __IO uint8_t TM15 : 1; -} stc_rtc_wttr1_field_t; - -typedef struct stc_rtc_wttr2_field -{ - __IO uint8_t TM16 : 1; - __IO uint8_t TM17 : 1; - uint8_t RESERVED1 : 6; -} stc_rtc_wttr2_field_t; - -/* RTC CLK */ -typedef struct stc_rtc_wtcal1_field -{ - union { - struct { - __IO uint8_t WTCAL1 : 2; - uint8_t RESERVED1 : 6; - }; - struct { - __IO uint8_t WTCAL10 : 1; - __IO uint8_t WTCAL11 : 1; - uint8_t RESERVED2 : 6; - }; - }; -} stc_rtc_wtcal1_field_t; - -typedef struct stc_rtc_wtcalen_field -{ - __IO uint8_t WTCALEN : 1; - uint8_t RESERVED1 : 7; -} stc_rtc_wtcalen_field_t; - -typedef struct stc_rtc_wtdiv_field -{ - union { - struct { - __IO uint8_t WTDIV : 4; - uint8_t RESERVED1 : 4; - }; - struct { - __IO uint8_t WTDIV0 : 1; - __IO uint8_t WTDIV1 : 1; - __IO uint8_t WTDIV2 : 1; - __IO uint8_t WTDIV3 : 1; - uint8_t RESERVED2 : 4; - }; - }; -} stc_rtc_wtdiv_field_t; - -typedef struct stc_rtc_wtdiven_field -{ - __IO uint8_t WTDIVEN : 1; - __IO uint8_t WTDIVRDY : 1; - uint8_t RESERVED1 : 6; -} stc_rtc_wtdiven_field_t; - -typedef struct stc_rtc_wtcalprd_field -{ - union { - struct { - __IO uint8_t WTCALPRD : 6; - uint8_t RESERVED1 : 2; - }; - struct { - __IO uint8_t WTCALPRD0 : 1; - __IO uint8_t WTCALPRD1 : 1; - __IO uint8_t WTCALPRD2 : 1; - __IO uint8_t WTCALPRD3 : 1; - __IO uint8_t WTCALPRD4 : 1; - __IO uint8_t WTCALPRD5 : 1; - uint8_t RESERVED2 : 2; - }; - }; -} stc_rtc_wtcalprd_field_t; - -typedef struct stc_rtc_wtcosel_field -{ - __IO uint8_t WTCOSEL : 1; - __IO uint8_t WTDIVRDY : 7; -} stc_rtc_wtcosel_field_t; - -/* VBVat Domain */ -typedef struct stc_rtc_vb_clkdiv_field -{ - __IO uint8_t DIV : 8; -} stc_rtc_vb_clkdiv_field_t; - -typedef struct stc_rtc_wtosccnt_field -{ - __IO uint8_t SOSCEX : 1; - __IO uint8_t SOSCNTL : 1; -} stc_rtc_wtosccnt_field_t; - -typedef struct stc_rtc_boost_field -{ - __IO uint8_t BOOST : 2; -} stc_rtc_boost_field_t; - -typedef struct stc_rtc_ewkup_field -{ - __IO uint8_t WUP0 : 1; -} stc_rtc_ewkup_field_t; - -typedef struct stc_rtc_vdet_field -{ - uint8_t RESERVED0 : 7; - __IO uint8_t PON : 1; -} stc_rtc_vdet_field_t; - -typedef struct stc_rtc_hibrst_field -{ - __IO uint8_t HIBRST : 1; -} stc_rtc_hibrst_field_t; - -typedef struct stc_rtc_vbpfr_field -{ - __IO uint8_t VPFR0 : 1; - __IO uint8_t VPFR1 : 1; - __IO uint8_t VPFR2 : 1; - __IO uint8_t VPFR3 : 1; - __IO uint8_t SPSR0 : 1; - __IO uint8_t SPSR1 : 1; -} stc_rtc_vbpfr_field_t; - -typedef struct stc_rtc_vbpcr_field -{ - __IO uint8_t VPCR0 : 1; - __IO uint8_t VPCR1 : 1; - __IO uint8_t VPCR2 : 1; - __IO uint8_t VPCR3 : 1; -} stc_rtc_vbpcr_field_t; - -typedef struct stc_rtc_vbddr_field -{ - __IO uint8_t VDDR0 : 1; - __IO uint8_t VDDR1 : 1; - __IO uint8_t VDDR2 : 1; - __IO uint8_t VDDR3 : 1; -} stc_rtc_vbddr_field_t; - -typedef struct stc_rtc_vbdir_field -{ - __IO uint8_t VDIR0 : 1; - __IO uint8_t VDIR1 : 1; - __IO uint8_t VDIR2 : 1; - __IO uint8_t VDIR3 : 1; -} stc_rtc_vbdir_field_t; - -typedef struct stc_rtc_vbdor_field -{ - __IO uint8_t VDOR0 : 1; - __IO uint8_t VDOR1 : 1; - __IO uint8_t VDOR2 : 1; - __IO uint8_t VDOR3 : 1; -} stc_rtc_vbdor_field_t; - -typedef struct stc_rtc_vbpzr_field -{ - __IO uint8_t VPZR0 : 1; - __IO uint8_t VPZR1 : 1; -} stc_rtc_vbpzr_field_t; - -/****************************************************************************** - * LCR_MODULE - ******************************************************************************/ -/* LCR_MODULE register bit fields */ -typedef struct stc_lcr_lcr_prsld_field -{ - __IO uint8_t LCR_PRSLD : 6; -} stc_lcr_lcr_prsld_field_t; - -/****************************************************************************** - * CLK_GATING_MODULE - ******************************************************************************/ -/* CLK_GATING_MODULE register bit fields */ -typedef struct stc_clk_gating_cken0_field -{ - __IO uint32_t MFSCK0 : 1; - __IO uint32_t MFSCK1 : 1; - __IO uint32_t MFSCK2 : 1; - __IO uint32_t MFSCK3 : 1; - __IO uint32_t MFSCK4 : 1; - __IO uint32_t MFSCK5 : 1; - __IO uint32_t MFSCK6 : 1; - __IO uint32_t MFSCK7 : 1; - __IO uint32_t MFSCK8 : 1; - __IO uint32_t MFSCK9 : 1; - __IO uint32_t MFSCK10 : 1; - __IO uint32_t MFSCK11 : 1; - __IO uint32_t MFSCK12 : 1; - __IO uint32_t MFSCK13 : 1; - __IO uint32_t MFSCK14 : 1; - __IO uint32_t MFSCK15 : 1; - __IO uint32_t ADCCK0 : 1; - __IO uint32_t ADCCK1 : 1; - __IO uint32_t ADCCK2 : 1; - __IO uint32_t ADCCK3 : 1; - uint32_t RESERVED20 : 4; - __IO uint32_t DMACK : 1; - uint32_t RESERVED25 : 1; - __IO uint32_t EXBCK : 1; - uint32_t RESERVED27 : 1; - __IO uint32_t GIOCK : 1; -} stc_clk_gating_cken0_field_t; - -typedef struct stc_clk_gating_mrst0_field -{ - __IO uint32_t MFSRST0 : 1; - __IO uint32_t MFSRST1 : 1; - __IO uint32_t MFSRST2 : 1; - __IO uint32_t MFSRST3 : 1; - __IO uint32_t MFSRST4 : 1; - __IO uint32_t MFSRST5 : 1; - __IO uint32_t MFSRST6 : 1; - __IO uint32_t MFSRST7 : 1; - __IO uint32_t MFSRST8 : 1; - __IO uint32_t MFSRST9 : 1; - __IO uint32_t MFSRST10 : 1; - __IO uint32_t MFSRST11 : 1; - __IO uint32_t MFSRST12 : 1; - __IO uint32_t MFSRST13 : 1; - __IO uint32_t MFSRST14 : 1; - __IO uint32_t MFSRST15 : 1; - __IO uint32_t ADCRST0 : 1; - __IO uint32_t ADCRST1 : 1; - __IO uint32_t ADCRST2 : 1; - __IO uint32_t ADCRST3 : 1; - uint32_t RESERVED20 : 4; - __IO uint32_t DMARST : 1; - uint32_t RESERVED25 : 1; - __IO uint32_t EXBRST : 1; -} stc_clk_gating_mrst0_field_t; - -typedef struct stc_clk_gating_cken1_field -{ - __IO uint32_t BTMCK0 : 1; - __IO uint32_t BTMCK1 : 1; - __IO uint32_t BTMCK2 : 1; - __IO uint32_t BTMCK3 : 1; - uint32_t RESERVED4 : 4; - __IO uint32_t MFTCK0 : 1; - __IO uint32_t MFTCK1 : 1; - __IO uint32_t MFTCK2 : 1; - __IO uint32_t MFTCK3 : 1; - uint32_t RESERVED12 : 4; - __IO uint32_t QDUCK0 : 1; - __IO uint32_t QDUCK1 : 1; - __IO uint32_t QDUCK2 : 1; - __IO uint32_t QDUCK3 : 1; -} stc_clk_gating_cken1_field_t; - -typedef struct stc_clk_gating_mrst1_field -{ - __IO uint32_t BTMRST0 : 1; - __IO uint32_t BTMRST1 : 1; - __IO uint32_t BTMRST2 : 1; - __IO uint32_t BTMRST3 : 1; - uint32_t RESERVED4 : 4; - __IO uint32_t MFTRST0 : 1; - __IO uint32_t MFTRST1 : 1; - __IO uint32_t MFTRST2 : 1; - __IO uint32_t MFTRST3 : 1; - uint32_t RESERVED12 : 4; - __IO uint32_t QDURST0 : 1; - __IO uint32_t QDURST1 : 1; - __IO uint32_t QDURST2 : 1; - __IO uint32_t QDURST3 : 1; -} stc_clk_gating_mrst1_field_t; - -typedef struct stc_clk_gating_cken2_field -{ - __IO uint32_t USBCK0 : 1; - __IO uint32_t USBCK1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t CANCK0 : 1; - __IO uint32_t CANCK1 : 1; - uint32_t RESERVED6 : 2; - __IO uint32_t SDCCK : 1; -} stc_clk_gating_cken2_field_t; - -typedef struct stc_clk_gating_mrst2_field -{ - __IO uint32_t USBRST0 : 1; - __IO uint32_t USBRST1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t CANRST0 : 1; - __IO uint32_t CANRST1 : 1; - uint32_t RESERVED6 : 2; - __IO uint32_t SDCRST : 1; -} stc_clk_gating_mrst2_field_t; - - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* EXBUS_MODULE register bit fields */ -typedef struct stc_exbus_mode_field -{ - __IO uint32_t WDTH : 2; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; - uint32_t RESERVED : 18; -} stc_exbus_mode_field_t; - -typedef struct stc_exbus_tim_field -{ - __IO uint32_t RACC : 4; - __IO uint32_t RADC : 4; - __IO uint32_t FRADC : 4; - __IO uint32_t RIDLC : 4; - __IO uint32_t WACC : 4; - __IO uint32_t WADC : 4; - __IO uint32_t WWEC : 4; - __IO uint32_t WIDLC : 4; -} stc_exbus_tim_field_t; - -typedef struct stc_exbus_area_field -{ - __IO uint32_t ADDR : 8; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK : 7; - uint32_t RESERVED2 : 9; -} stc_exbus_area_field_t; - -typedef struct stc_exbus_atim_field -{ - __IO uint32_t ALC : 4; - __IO uint32_t ALES : 4; - __IO uint32_t ALEW : 4; - uint32_t RESERVED : 20; -} stc_exbus_atim_field_t; - -typedef struct stc_exbus_sdmode_field -{ - __IO uint32_t SDON : 1; - __IO uint32_t PDON : 1; - __IO uint32_t ROFF : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t CASEL : 2; - uint32_t RESERVED2 : 2; - __IO uint32_t RASEL : 4; - __IO uint32_t BASEL : 4; - __IO uint32_t MSDCLK : 1; - uint32_t RESERVED3 : 15; -} stc_exbus_sdmode_field_t; - -typedef struct stc_exbus_reftim_field -{ - __IO uint32_t REFC : 16; - __IO uint32_t NREF : 8; - __IO uint32_t PREF : 1; - uint32_t RESERVED : 7; -} stc_exbus_reftim_field_t; - -typedef struct stc_exbus_pwrdwn_field -{ - __IO uint32_t PDC : 16; - uint32_t RESERVED : 16; -} stc_exbus_pwrdwn_field_t; - -typedef struct stc_exbus_sdtim_field -{ - __IO uint32_t CL : 2; - uint32_t RESERVED1 : 2; - __IO uint32_t TRC : 4; - __IO uint32_t TRP : 4; - __IO uint32_t TRCD : 4; - __IO uint32_t TRAS : 4; - __IO uint32_t TREFC : 4; - __IO uint32_t TDPL : 2; - uint32_t RESERVED2 : 6; -} stc_exbus_sdtim_field_t; - -typedef struct stc_exbus_sdcmd_field -{ - __IO uint32_t SDAD : 16; - __IO uint32_t SDWE : 1; - __IO uint32_t SDCAS : 1; - __IO uint32_t SDRAS : 1; - __IO uint32_t SDCS : 1; - __IO uint32_t SDCKE : 1; - uint32_t RESERVED2 : 10; - __IO uint32_t PEND : 1; -} stc_exbus_sdcmd_field_t; - -typedef struct stc_exbus_memcerr_field -{ - __IO uint32_t SFER : 1; - __IO uint32_t SDER : 1; - __IO uint32_t SFION : 1; - __IO uint32_t SDION : 1; - uint32_t RESERVED : 28; -} stc_exbus_memcerr_field_t; - -typedef struct stc_exbus_dclkr_field -{ - __IO uint32_t MDIV : 4; - __IO uint32_t MCLKON : 1; - uint32_t RESERVED : 27; -} stc_exbus_dclkr_field_t; - -typedef struct stc_exbus_est_field -{ - __IO uint32_t WERR : 1; - uint32_t RESERVED : 31; -} stc_exbus_est_field_t; - -typedef struct stc_exbus_wead_field -{ - __IO uint32_t ADDR : 32; -} stc_exbus_wead_field_t; - -typedef struct stc_exbus_esclr_field -{ - __IO uint32_t WERRCLR : 1; - uint32_t RESERVED : 31; -} stc_exbus_esclr_field_t; - -typedef struct stc_exbus_amode_field -{ - __IO uint32_t WAEN : 1; - uint32_t RESERVED : 31; -} stc_exbus_amode_field_t; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB_MODULE register bit fields */ -typedef struct stc_usb_hcnt_field -{ - __IO uint16_t HOST : 1; - __IO uint16_t URST : 1; - __IO uint16_t SOFIRE : 1; - __IO uint16_t DIRE : 1; - __IO uint16_t CNNIRE : 1; - __IO uint16_t CMPIRE : 1; - __IO uint16_t URIRE : 1; - __IO uint16_t RWKIRE : 1; - __IO uint16_t RETRY : 1; - __IO uint16_t CANCEL : 1; - __IO uint16_t SOFSTEP : 1; -} stc_usb_hcnt_field_t; - -typedef struct stc_usb_hcnt0_field -{ - __IO uint8_t HOST : 1; - __IO uint8_t URST : 1; - __IO uint8_t SOFIRE : 1; - __IO uint8_t DIRE : 1; - __IO uint8_t CNNIRE : 1; - __IO uint8_t CMPIRE : 1; - __IO uint8_t URIRE : 1; - __IO uint8_t RWKIRE : 1; -} stc_usb_hcnt0_field_t; - -typedef struct stc_usb_hcnt1_field -{ - __IO uint8_t RETRY : 1; - __IO uint8_t CANCEL : 1; - __IO uint8_t SOFSTEP : 1; -} stc_usb_hcnt1_field_t; - -typedef struct stc_usb_hirq_field -{ - __IO uint8_t SOFIRQ : 1; - __IO uint8_t DIRQ : 1; - __IO uint8_t CNNIRQ : 1; - __IO uint8_t CMPIRQ : 1; - __IO uint8_t URIRQ : 1; - __IO uint8_t RWKIRQ : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TCAN : 1; -} stc_usb_hirq_field_t; - -typedef struct stc_usb_herr_field -{ - __IO uint8_t HS0 : 1; - __IO uint8_t HS1 : 1; - __IO uint8_t STUFF : 1; - __IO uint8_t TGERR : 1; - __IO uint8_t CRC : 1; - __IO uint8_t TOUT : 1; - __IO uint8_t RERR : 1; - __IO uint8_t LSTOF : 1; -} stc_usb_herr_field_t; - -typedef struct stc_usb_hstate_field -{ - __IO uint8_t CSTAT : 1; - __IO uint8_t TMODE : 1; - __IO uint8_t SUSP : 1; - __IO uint8_t SOFBUSY : 1; - __IO uint8_t CLKSEL : 1; - __IO uint8_t ALIVE : 1; -} stc_usb_hstate_field_t; - -typedef struct stc_usb_hfcomp_field -{ - __IO uint8_t FRAMECOMP0 : 1; - __IO uint8_t FRAMECOMP1 : 1; - __IO uint8_t FRAMECOMP2 : 1; - __IO uint8_t FRAMECOMP3 : 1; - __IO uint8_t FRAMECOMP4 : 1; - __IO uint8_t FRAMECOMP5 : 1; - __IO uint8_t FRAMECOMP6 : 1; - __IO uint8_t FRAMECOMP7 : 1; -} stc_usb_hfcomp_field_t; - -typedef struct stc_usb_hrtimer_field -{ - __IO uint16_t RTIMER0 : 1; - __IO uint16_t RTIMER1 : 1; - __IO uint16_t RTIMER2 : 1; - __IO uint16_t RTIMER3 : 1; - __IO uint16_t RTIMER4 : 1; - __IO uint16_t RTIMER5 : 1; - __IO uint16_t RTIMER6 : 1; - __IO uint16_t RTIMER7 : 1; - __IO uint16_t RTIMER8 : 1; - __IO uint16_t RTIMER9 : 1; - __IO uint16_t RTIMER10 : 1; - __IO uint16_t RTIMER11 : 1; - __IO uint16_t RTIMER12 : 1; - __IO uint16_t RTIMER13 : 1; - __IO uint16_t RTIMER14 : 1; - __IO uint16_t RTIMER15 : 1; -} stc_usb_hrtimer_field_t; - -typedef struct stc_usb_hrtimer0_field -{ - __IO uint8_t RTIMER00 : 1; - __IO uint8_t RTIMER01 : 1; - __IO uint8_t RTIMER02 : 1; - __IO uint8_t RTIMER03 : 1; - __IO uint8_t RTIMER04 : 1; - __IO uint8_t RTIMER05 : 1; - __IO uint8_t RTIMER06 : 1; - __IO uint8_t RTIMER07 : 1; -} stc_usb_hrtimer0_field_t; - -typedef struct stc_usb_hrtimer1_field -{ - __IO uint8_t RTIMER10 : 1; - __IO uint8_t RTIMER11 : 1; - __IO uint8_t RTIMER12 : 1; - __IO uint8_t RTIMER13 : 1; - __IO uint8_t RTIMER14 : 1; - __IO uint8_t RTIMER15 : 1; - __IO uint8_t RTIMER16 : 1; - __IO uint8_t RTIMER17 : 1; -} stc_usb_hrtimer1_field_t; - -typedef struct stc_usb_hrtimer2_field -{ - __IO uint8_t RTIMER20 : 1; - __IO uint8_t RTIMER21 : 1; - __IO uint8_t RTIMER22 : 1; -} stc_usb_hrtimer2_field_t; - -typedef struct stc_usb_hadr_field -{ - __IO uint8_t ADDRESS0 : 1; - __IO uint8_t ADDRESS1 : 1; - __IO uint8_t ADDRESS2 : 1; - __IO uint8_t ADDRESS3 : 1; - __IO uint8_t ADDRESS4 : 1; - __IO uint8_t ADDRESS5 : 1; - __IO uint8_t ADDRESS6 : 1; -} stc_usb_hadr_field_t; - -typedef struct stc_usb_heof_field -{ - __IO uint16_t EOF0 : 1; - __IO uint16_t EOF1 : 1; - __IO uint16_t EOF2 : 1; - __IO uint16_t EOF3 : 1; - __IO uint16_t EOF4 : 1; - __IO uint16_t EOF5 : 1; - __IO uint16_t EOF6 : 1; - __IO uint16_t EOF7 : 1; - __IO uint16_t EOF8 : 1; - __IO uint16_t EOF9 : 1; - __IO uint16_t EOF10 : 1; - __IO uint16_t EOF11 : 1; - __IO uint16_t EOF12 : 1; - __IO uint16_t EOF13 : 1; - __IO uint16_t EOF14 : 1; - __IO uint16_t EOF15 : 1; -} stc_usb_heof_field_t; - -typedef struct stc_usb_heof0_field -{ - __IO uint8_t EOF00 : 1; - __IO uint8_t EOF01 : 1; - __IO uint8_t EOF02 : 1; - __IO uint8_t EOF03 : 1; - __IO uint8_t EOF04 : 1; - __IO uint8_t EOF05 : 1; - __IO uint8_t EOF06 : 1; - __IO uint8_t EOF07 : 1; -} stc_usb_heof0_field_t; - -typedef struct stc_usb_heof1_field -{ - __IO uint8_t EOF10 : 1; - __IO uint8_t EOF11 : 1; - __IO uint8_t EOF12 : 1; - __IO uint8_t EOF13 : 1; - __IO uint8_t EOF14 : 1; - __IO uint8_t EOF15 : 1; -} stc_usb_heof1_field_t; - -typedef struct stc_usb_hframe_field -{ - __IO uint16_t FRAME0 : 1; - __IO uint16_t FRAME1 : 1; - __IO uint16_t FRAME2 : 1; - __IO uint16_t FRAME3 : 1; - __IO uint16_t FRAME4 : 1; - __IO uint16_t FRAME5 : 1; - __IO uint16_t FRAME6 : 1; - __IO uint16_t FRAME7 : 1; - __IO uint16_t FRAME8 : 1; - __IO uint16_t FRAME9 : 1; - __IO uint16_t FRAME10 : 1; -} stc_usb_hframe_field_t; - -typedef struct stc_usb_hframe0_field -{ - __IO uint8_t FRAME00 : 1; - __IO uint8_t FRAME01 : 1; - __IO uint8_t FRAME02 : 1; - __IO uint8_t FRAME03 : 1; - __IO uint8_t FRAME04 : 1; - __IO uint8_t FRAME05 : 1; - __IO uint8_t FRAME06 : 1; - __IO uint8_t FRAME07 : 1; -} stc_usb_hframe0_field_t; - -typedef struct stc_usb_hframe1_field -{ - __IO uint8_t FRAME10 : 1; - __IO uint8_t FRAME11 : 1; - __IO uint8_t FRAME12 : 1; - __IO uint8_t FRAME13 : 1; -} stc_usb_hframe1_field_t; - -typedef struct stc_usb_htoken_field -{ - __IO uint8_t ENDPT0 : 1; - __IO uint8_t ENDPT1 : 1; - __IO uint8_t ENDPT2 : 1; - __IO uint8_t ENDPT3 : 1; - __IO uint8_t TKNEN0 : 1; - __IO uint8_t TKNEN1 : 1; - __IO uint8_t TKNEN2 : 1; - __IO uint8_t TGGL : 1; -} stc_usb_htoken_field_t; - -typedef struct stc_usb_udcc_field -{ - __IO uint16_t PWC : 1; - __IO uint16_t RFBK : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t STALCLREN : 1; - __IO uint16_t USTP : 1; - __IO uint16_t HCONX : 1; - __IO uint16_t RESUM : 1; - __IO uint16_t RST : 1; -} stc_usb_udcc_field_t; - -typedef struct stc_usb_ep0c_field -{ - __IO uint16_t PKS00 : 1; - __IO uint16_t PKS01 : 1; - __IO uint16_t PKS02 : 1; - __IO uint16_t PKS03 : 1; - __IO uint16_t PKS04 : 1; - __IO uint16_t PKS05 : 1; - __IO uint16_t PKS06 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; -} stc_usb_ep0c_field_t; - -typedef struct stc_usb_ep1c_field -{ - __IO uint16_t PKS10 : 1; - __IO uint16_t PKS11 : 1; - __IO uint16_t PKS12 : 1; - __IO uint16_t PKS13 : 1; - __IO uint16_t PKS14 : 1; - __IO uint16_t PKS15 : 1; - __IO uint16_t PKS16 : 1; - __IO uint16_t PKS17 : 1; - __IO uint16_t PKS18 : 1; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep1c_field_t; - -typedef struct stc_usb_ep2c_field -{ - __IO uint16_t PKS20 : 1; - __IO uint16_t PKS21 : 1; - __IO uint16_t PKS22 : 1; - __IO uint16_t PKS23 : 1; - __IO uint16_t PKS24 : 1; - __IO uint16_t PKS25 : 1; - __IO uint16_t PKS26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep2c_field_t; - -typedef struct stc_usb_ep3c_field -{ - __IO uint16_t PKS30 : 1; - __IO uint16_t PKS31 : 1; - __IO uint16_t PKS32 : 1; - __IO uint16_t PKS33 : 1; - __IO uint16_t PKS34 : 1; - __IO uint16_t PKS35 : 1; - __IO uint16_t PKS36 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep3c_field_t; - -typedef struct stc_usb_ep4c_field -{ - __IO uint16_t PKS40 : 1; - __IO uint16_t PKS41 : 1; - __IO uint16_t PKS42 : 1; - __IO uint16_t PKS43 : 1; - __IO uint16_t PKS44 : 1; - __IO uint16_t PKS45 : 1; - __IO uint16_t PKS46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep4c_field_t; - -typedef struct stc_usb_ep5c_field -{ - __IO uint16_t PKS50 : 1; - __IO uint16_t PKS51 : 1; - __IO uint16_t PKS52 : 1; - __IO uint16_t PKS53 : 1; - __IO uint16_t PKS54 : 1; - __IO uint16_t PKS55 : 1; - __IO uint16_t PKS56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep5c_field_t; - -typedef struct stc_usb_tmsp_field -{ - __IO uint16_t TMSP0 : 1; - __IO uint16_t TMSP1 : 1; - __IO uint16_t TMSP2 : 1; - __IO uint16_t TMSP3 : 1; - __IO uint16_t TMSP4 : 1; - __IO uint16_t TMSP5 : 1; - __IO uint16_t TMSP6 : 1; - __IO uint16_t TMSP7 : 1; - __IO uint16_t TMSP8 : 1; - __IO uint16_t TMSP9 : 1; - __IO uint16_t TMSP10 : 1; -} stc_usb_tmsp_field_t; - -typedef struct stc_usb_udcs_field -{ - __IO uint8_t CONF : 1; - __IO uint8_t SETP : 1; - __IO uint8_t WKUP : 1; - __IO uint8_t BRST : 1; - __IO uint8_t SOF : 1; - __IO uint8_t SUSP : 1; -} stc_usb_udcs_field_t; - -typedef struct stc_usb_udcie_field -{ - __IO uint8_t CONFIE : 1; - __IO uint8_t CONFN : 1; - __IO uint8_t WKUPIE : 1; - __IO uint8_t BRSTIE : 1; - __IO uint8_t SOFIE : 1; - __IO uint8_t SUSPIE : 1; -} stc_usb_udcie_field_t; - -typedef struct stc_usb_ep0is_field -{ - uint16_t RESERVED1 : 10; - __IO uint16_t DRQI : 1; - uint16_t RESERVED2 : 3; - __IO uint16_t DRQIIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0is_field_t; - -typedef struct stc_usb_ep0os_field -{ - __IO uint16_t SIZE0 : 1; - __IO uint16_t SIZE1 : 1; - __IO uint16_t SIZE2 : 1; - __IO uint16_t SIZE3 : 1; - __IO uint16_t SIZE4 : 1; - __IO uint16_t SIZE5 : 1; - __IO uint16_t SIZE6 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQO : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQOIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0os_field_t; - -typedef struct stc_usb_ep1s_field -{ - __IO uint16_t SIZE10 : 1; - __IO uint16_t SIZE11 : 1; - __IO uint16_t SIZE12 : 1; - __IO uint16_t SIZE13 : 1; - __IO uint16_t SIZE14 : 1; - __IO uint16_t SIZE15 : 1; - __IO uint16_t SIZE16 : 1; - __IO uint16_t SIZE17 : 1; - __IO uint16_t SIZE18 : 1; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep1s_field_t; - -typedef struct stc_usb_ep2s_field -{ - __IO uint16_t SIZE20 : 1; - __IO uint16_t SIZE21 : 1; - __IO uint16_t SIZE22 : 1; - __IO uint16_t SIZE23 : 1; - __IO uint16_t SIZE24 : 1; - __IO uint16_t SIZE25 : 1; - __IO uint16_t SIZE26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep2s_field_t; - -typedef struct stc_usb_ep4s_field -{ - __IO uint16_t SIZE40 : 1; - __IO uint16_t SIZE41 : 1; - __IO uint16_t SIZE42 : 1; - __IO uint16_t SIZE43 : 1; - __IO uint16_t SIZE44 : 1; - __IO uint16_t SIZE45 : 1; - __IO uint16_t SIZE46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep4s_field_t; - -typedef struct stc_usb_ep5s_field -{ - __IO uint16_t SIZE50 : 1; - __IO uint16_t SIZE51 : 1; - __IO uint16_t SIZE52 : 1; - __IO uint16_t SIZE53 : 1; - __IO uint16_t SIZE54 : 1; - __IO uint16_t SIZE55 : 1; - __IO uint16_t SIZE56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep5s_field_t; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMAC_MODULE register bit fields */ -typedef struct stc_dmac_dmacr_field -{ - uint32_t RESERVED1 : 24; - __IO uint32_t DH0 : 1; - __IO uint32_t DH1 : 1; - __IO uint32_t DH2 : 1; - __IO uint32_t DH3 : 1; - __IO uint32_t PR : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t DS : 1; - __IO uint32_t DE : 1; -} stc_dmac_dmacr_field_t; - -typedef struct stc_dmac_dmaca0_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca0_field_t; - -typedef struct stc_dmac_dmacb0_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb0_field_t; - -typedef struct stc_dmac_dmaca1_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca1_field_t; - -typedef struct stc_dmac_dmacb1_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb1_field_t; - -typedef struct stc_dmac_dmaca2_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca2_field_t; - -typedef struct stc_dmac_dmacb2_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb2_field_t; - -typedef struct stc_dmac_dmaca3_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca3_field_t; - -typedef struct stc_dmac_dmacb3_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb3_field_t; - -typedef struct stc_dmac_dmaca4_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca4_field_t; - -typedef struct stc_dmac_dmacb4_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb4_field_t; - -typedef struct stc_dmac_dmaca5_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca5_field_t; - -typedef struct stc_dmac_dmacb5_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb5_field_t; - -typedef struct stc_dmac_dmaca6_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca6_field_t; - -typedef struct stc_dmac_dmacb6_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb6_field_t; - -typedef struct stc_dmac_dmaca7_field -{ - __IO uint32_t TC : 16; - __IO uint32_t BC : 4; - uint32_t RESERVED1 : 3; - __IO uint32_t IS : 6; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca7_field_t; - -typedef struct stc_dmac_dmacb7_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS : 3; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW : 2; - __IO uint32_t MS : 2; -} stc_dmac_dmacb7_field_t; - -/****************************************************************************** - * CAN_MODULE - ******************************************************************************/ -/* CAN_MODULE register bit fields */ -typedef struct stc_can_ctrlr_field -{ - __IO uint16_t INIT : 1; - __IO uint16_t IE : 1; - __IO uint16_t SIE : 1; - __IO uint16_t EIE : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t DAR : 1; - __IO uint16_t CCE : 1; - __IO uint16_t TEST : 1; -} stc_can_ctrlr_field_t; - -typedef struct stc_can_statr_field -{ - __IO uint16_t LEC : 3; - __IO uint16_t TXOK : 1; - __IO uint16_t RXOK : 1; - __IO uint16_t EPASS : 1; - __IO uint16_t EWARN : 1; - __IO uint16_t BOFF : 1; -} stc_can_statr_field_t; - -typedef struct stc_can_errcnt_field -{ - __IO uint16_t TEC0 : 1; - __IO uint16_t TEC1 : 1; - __IO uint16_t TEC2 : 1; - __IO uint16_t TEC3 : 1; - __IO uint16_t TEC4 : 1; - __IO uint16_t TEC5 : 1; - __IO uint16_t TEC6 : 1; - __IO uint16_t TEC7 : 1; - __IO uint16_t REC0 : 1; - __IO uint16_t REC1 : 1; - __IO uint16_t REC2 : 1; - __IO uint16_t REC3 : 1; - __IO uint16_t REC4 : 1; - __IO uint16_t REC5 : 1; - __IO uint16_t REC6 : 1; - __IO uint16_t RP : 1; -} stc_can_errcnt_field_t; - -typedef struct stc_can_btr_field -{ - __IO uint16_t BRP : 6; - __IO uint16_t SJW : 2; - __IO uint16_t TSEG1 : 4; - __IO uint16_t TSEG2 : 3; -} stc_can_btr_field_t; - -typedef struct stc_can_intr_field -{ - __IO uint16_t INTID0 : 1; - __IO uint16_t INTID1 : 1; - __IO uint16_t INTID2 : 1; - __IO uint16_t INTID3 : 1; - __IO uint16_t INTID4 : 1; - __IO uint16_t INTID5 : 1; - __IO uint16_t INTID6 : 1; - __IO uint16_t INTID7 : 1; - __IO uint16_t INTID8 : 1; - __IO uint16_t INTID9 : 1; - __IO uint16_t INTID10 : 1; - __IO uint16_t INTID11 : 1; - __IO uint16_t INTID12 : 1; - __IO uint16_t INTID13 : 1; - __IO uint16_t INTID14 : 1; - __IO uint16_t INTID15 : 1; -} stc_can_intr_field_t; - -typedef struct stc_can_testr_field -{ - uint16_t RESERVED1 : 2; - __IO uint16_t BASIC : 1; - __IO uint16_t SILENT : 1; - __IO uint16_t LBACK : 1; - __IO uint16_t TX0 : 1; - __IO uint16_t TX1 : 1; - __IO uint16_t RX : 1; -} stc_can_testr_field_t; - -typedef struct stc_can_brper_field -{ - __IO uint16_t BRPE0 : 1; - __IO uint16_t BRPE1 : 1; - __IO uint16_t BRPE2 : 1; - __IO uint16_t BRPE3 : 1; -} stc_can_brper_field_t; - -typedef struct stc_can_if1creq_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t BUSY : 1; -} stc_can_if1creq_field_t; - -typedef struct stc_can_if1cmsk_field -{ - __IO uint16_t DATAB : 1; - __IO uint16_t DATAA : 1; - __IO uint16_t NEWDAT : 1; - __IO uint16_t CIP : 1; - __IO uint16_t CONTROL : 1; - __IO uint16_t ARB : 1; - __IO uint16_t MASK : 1; - __IO uint16_t WRRD : 1; -} stc_can_if1cmsk_field_t; - -typedef struct stc_can_if1msk_field -{ - __IO uint32_t MSK : 29; - uint32_t RESERVED1 : 1; - __IO uint32_t MDIR : 1; - __IO uint32_t MXTD : 1; -} stc_can_if1msk_field_t; - -typedef struct stc_can_if1msk2_field -{ - uint16_t RESERVED1 : 14; - __IO uint16_t MDIR : 1; - __IO uint16_t MXTD : 1; -} stc_can_if1msk2_field_t; - -typedef struct stc_can_if1arb_field -{ - __IO uint32_t ID : 29; - __IO uint32_t DIR : 1; - __IO uint32_t XTD : 1; - __IO uint32_t MSGVAL : 1; -} stc_can_if1arb_field_t; - -typedef struct stc_can_if1arb2_field -{ - uint16_t RESERVED1 : 13; - __IO uint16_t DIR : 1; - __IO uint16_t XTD : 1; - __IO uint16_t MSGVAL : 1; -} stc_can_if1arb2_field_t; - -typedef struct stc_can_if1mctr_field -{ - __IO uint16_t DLC : 4; - uint16_t RESERVED1 : 3; - __IO uint16_t EOB : 1; - __IO uint16_t TXRQST : 1; - __IO uint16_t RMTEN : 1; - __IO uint16_t RXIE : 1; - __IO uint16_t TXIE : 1; - __IO uint16_t UMASK : 1; - __IO uint16_t INTPND : 1; - __IO uint16_t MSGLST : 1; - __IO uint16_t NEWDAT : 1; -} stc_can_if1mctr_field_t; - -typedef struct stc_can_if2creq_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t BUSY : 1; -} stc_can_if2creq_field_t; - -typedef struct stc_can_if2cmsk_field -{ - __IO uint16_t DATAB : 1; - __IO uint16_t DATAA : 1; - __IO uint16_t NEWDAT : 1; - __IO uint16_t CIP : 1; - __IO uint16_t CONTROL : 1; - __IO uint16_t ARB : 1; - __IO uint16_t MASK : 1; - __IO uint16_t WRRD : 1; -} stc_can_if2cmsk_field_t; - -typedef struct stc_can_if2msk_field -{ - uint32_t RESERVED1 : 30; - __IO uint32_t MDIR : 1; - __IO uint32_t MXTD : 1; -} stc_can_if2msk_field_t; - -typedef struct stc_can_if2msk2_field -{ - uint16_t RESERVED1 : 14; - __IO uint16_t MDIR : 1; - __IO uint16_t MXTD : 1; -} stc_can_if2msk2_field_t; - -typedef struct stc_can_if2arb2_field -{ - uint16_t RESERVED1 : 13; - __IO uint16_t DIR : 1; - __IO uint16_t XTD : 1; - __IO uint16_t MSGVAL : 1; -} stc_can_if2arb2_field_t; - -typedef struct stc_can_if2mctr_field -{ - __IO uint16_t DLC : 4; - uint16_t RESERVED1 : 3; - __IO uint16_t EOB : 1; - __IO uint16_t TXRQST : 1; - __IO uint16_t RMTEN : 1; - __IO uint16_t RXIE : 1; - __IO uint16_t TXIE : 1; - __IO uint16_t UMASK : 1; - __IO uint16_t INTPND : 1; - __IO uint16_t MSGLST : 1; - __IO uint16_t NEWDAT : 1; -} stc_can_if2mctr_field_t; - -typedef struct stc_can_treqr_field -{ - __IO uint32_t TXRQST1 : 1; - __IO uint32_t TXRQST2 : 1; - __IO uint32_t TXRQST3 : 1; - __IO uint32_t TXRQST4 : 1; - __IO uint32_t TXRQST5 : 1; - __IO uint32_t TXRQST6 : 1; - __IO uint32_t TXRQST7 : 1; - __IO uint32_t TXRQST8 : 1; - __IO uint32_t TXRQST9 : 1; - __IO uint32_t TXRQST10 : 1; - __IO uint32_t TXRQST11 : 1; - __IO uint32_t TXRQST12 : 1; - __IO uint32_t TXRQST13 : 1; - __IO uint32_t TXRQST14 : 1; - __IO uint32_t TXRQST15 : 1; - __IO uint32_t TXRQST16 : 1; - __IO uint32_t TXRQST17 : 1; - __IO uint32_t TXRQST18 : 1; - __IO uint32_t TXRQST19 : 1; - __IO uint32_t TXRQST20 : 1; - __IO uint32_t TXRQST21 : 1; - __IO uint32_t TXRQST22 : 1; - __IO uint32_t TXRQST23 : 1; - __IO uint32_t TXRQST24 : 1; - __IO uint32_t TXRQST25 : 1; - __IO uint32_t TXRQST26 : 1; - __IO uint32_t TXRQST27 : 1; - __IO uint32_t TXRQST28 : 1; - __IO uint32_t TXRQST29 : 1; - __IO uint32_t TXRQST30 : 1; - __IO uint32_t TXRQST31 : 1; - __IO uint32_t TXRQST32 : 1; -} stc_can_treqr_field_t; - -typedef struct stc_can_treqr1_field -{ - __IO uint16_t TXRQST1 : 1; - __IO uint16_t TXRQST2 : 1; - __IO uint16_t TXRQST3 : 1; - __IO uint16_t TXRQST4 : 1; - __IO uint16_t TXRQST5 : 1; - __IO uint16_t TXRQST6 : 1; - __IO uint16_t TXRQST7 : 1; - __IO uint16_t TXRQST8 : 1; - __IO uint16_t TXRQST9 : 1; - __IO uint16_t TXRQST10 : 1; - __IO uint16_t TXRQST11 : 1; - __IO uint16_t TXRQST12 : 1; - __IO uint16_t TXRQST13 : 1; - __IO uint16_t TXRQST14 : 1; - __IO uint16_t TXRQST15 : 1; - __IO uint16_t TXRQST16 : 1; -} stc_can_treqr1_field_t; - -typedef struct stc_can_treqr2_field -{ - __IO uint16_t TXRQST17 : 1; - __IO uint16_t TXRQST18 : 1; - __IO uint16_t TXRQST19 : 1; - __IO uint16_t TXRQST20 : 1; - __IO uint16_t TXRQST21 : 1; - __IO uint16_t TXRQST22 : 1; - __IO uint16_t TXRQST23 : 1; - __IO uint16_t TXRQST24 : 1; - __IO uint16_t TXRQST25 : 1; - __IO uint16_t TXRQST26 : 1; - __IO uint16_t TXRQST27 : 1; - __IO uint16_t TXRQST28 : 1; - __IO uint16_t TXRQST29 : 1; - __IO uint16_t TXRQST30 : 1; - __IO uint16_t TXRQST31 : 1; - __IO uint16_t TXRQST32 : 1; -} stc_can_treqr2_field_t; - -typedef struct stc_can_newdt_field -{ - __IO uint32_t NEWDAT1 : 1; - __IO uint32_t NEWDAT2 : 1; - __IO uint32_t NEWDAT3 : 1; - __IO uint32_t NEWDAT4 : 1; - __IO uint32_t NEWDAT5 : 1; - __IO uint32_t NEWDAT6 : 1; - __IO uint32_t NEWDAT7 : 1; - __IO uint32_t NEWDAT8 : 1; - __IO uint32_t NEWDAT9 : 1; - __IO uint32_t NEWDAT10 : 1; - __IO uint32_t NEWDAT11 : 1; - __IO uint32_t NEWDAT12 : 1; - __IO uint32_t NEWDAT13 : 1; - __IO uint32_t NEWDAT14 : 1; - __IO uint32_t NEWDAT15 : 1; - __IO uint32_t NEWDAT16 : 1; - __IO uint32_t NEWDAT17 : 1; - __IO uint32_t NEWDAT18 : 1; - __IO uint32_t NEWDAT19 : 1; - __IO uint32_t NEWDAT20 : 1; - __IO uint32_t NEWDAT21 : 1; - __IO uint32_t NEWDAT22 : 1; - __IO uint32_t NEWDAT23 : 1; - __IO uint32_t NEWDAT24 : 1; - __IO uint32_t NEWDAT25 : 1; - __IO uint32_t NEWDAT26 : 1; - __IO uint32_t NEWDAT27 : 1; - __IO uint32_t NEWDAT28 : 1; - __IO uint32_t NEWDAT29 : 1; - __IO uint32_t NEWDAT30 : 1; - __IO uint32_t NEWDAT31 : 1; - __IO uint32_t NEWDAT32 : 1; -} stc_can_newdt_field_t; - -typedef struct stc_can_newdt1_field -{ - __IO uint16_t NEWDAT1 : 1; - __IO uint16_t NEWDAT2 : 1; - __IO uint16_t NEWDAT3 : 1; - __IO uint16_t NEWDAT4 : 1; - __IO uint16_t NEWDAT5 : 1; - __IO uint16_t NEWDAT6 : 1; - __IO uint16_t NEWDAT7 : 1; - __IO uint16_t NEWDAT8 : 1; - __IO uint16_t NEWDAT9 : 1; - __IO uint16_t NEWDAT10 : 1; - __IO uint16_t NEWDAT11 : 1; - __IO uint16_t NEWDAT12 : 1; - __IO uint16_t NEWDAT13 : 1; - __IO uint16_t NEWDAT14 : 1; - __IO uint16_t NEWDAT15 : 1; - __IO uint16_t NEWDAT16 : 1; -} stc_can_newdt1_field_t; - -typedef struct stc_can_intpnd_field -{ - __IO uint32_t INTPND1 : 1; - __IO uint32_t INTPND2 : 1; - __IO uint32_t INTPND3 : 1; - __IO uint32_t INTPND4 : 1; - __IO uint32_t INTPND5 : 1; - __IO uint32_t INTPND6 : 1; - __IO uint32_t INTPND7 : 1; - __IO uint32_t INTPND8 : 1; - __IO uint32_t INTPND9 : 1; - __IO uint32_t INTPND10 : 1; - __IO uint32_t INTPND11 : 1; - __IO uint32_t INTPND12 : 1; - __IO uint32_t INTPND13 : 1; - __IO uint32_t INTPND14 : 1; - __IO uint32_t INTPND15 : 1; - __IO uint32_t INTPND16 : 1; - __IO uint32_t INTPND17 : 1; - __IO uint32_t INTPND18 : 1; - __IO uint32_t INTPND19 : 1; - __IO uint32_t INTPND20 : 1; - __IO uint32_t INTPND21 : 1; - __IO uint32_t INTPND22 : 1; - __IO uint32_t INTPND23 : 1; - __IO uint32_t INTPND24 : 1; - __IO uint32_t INTPND25 : 1; - __IO uint32_t INTPND26 : 1; - __IO uint32_t INTPND27 : 1; - __IO uint32_t INTPND28 : 1; - __IO uint32_t INTPND29 : 1; - __IO uint32_t INTPND30 : 1; - __IO uint32_t INTPND31 : 1; - __IO uint32_t INTPND32 : 1; -} stc_can_intpnd_field_t; - -typedef struct stc_can_intpnd1_field -{ - __IO uint16_t INTPND1 : 1; - __IO uint16_t INTPND2 : 1; - __IO uint16_t INTPND3 : 1; - __IO uint16_t INTPND4 : 1; - __IO uint16_t INTPND5 : 1; - __IO uint16_t INTPND6 : 1; - __IO uint16_t INTPND7 : 1; - __IO uint16_t INTPND8 : 1; - __IO uint16_t INTPND9 : 1; - __IO uint16_t INTPND10 : 1; - __IO uint16_t INTPND11 : 1; - __IO uint16_t INTPND12 : 1; - __IO uint16_t INTPND13 : 1; - __IO uint16_t INTPND14 : 1; - __IO uint16_t INTPND15 : 1; - __IO uint16_t INTPND16 : 1; -} stc_can_intpnd1_field_t; - -typedef struct stc_can_intpnd2_field -{ - __IO uint16_t INTPND17 : 1; - __IO uint16_t INTPND18 : 1; - __IO uint16_t INTPND19 : 1; - __IO uint16_t INTPND20 : 1; - __IO uint16_t INTPND21 : 1; - __IO uint16_t INTPND22 : 1; - __IO uint16_t INTPND23 : 1; - __IO uint16_t INTPND24 : 1; - __IO uint16_t INTPND25 : 1; - __IO uint16_t INTPND26 : 1; - __IO uint16_t INTPND27 : 1; - __IO uint16_t INTPND28 : 1; - __IO uint16_t INTPND29 : 1; - __IO uint16_t INTPND30 : 1; - __IO uint16_t INTPND31 : 1; - __IO uint16_t INTPND32 : 1; -} stc_can_intpnd2_field_t; - -typedef struct stc_can_msgval_field -{ - __IO uint32_t MSGVAL1 : 1; - __IO uint32_t MSGVAL2 : 1; - __IO uint32_t MSGVAL3 : 1; - __IO uint32_t MSGVAL4 : 1; - __IO uint32_t MSGVAL5 : 1; - __IO uint32_t MSGVAL6 : 1; - __IO uint32_t MSGVAL7 : 1; - __IO uint32_t MSGVAL8 : 1; - __IO uint32_t MSGVAL9 : 1; - __IO uint32_t MSGVAL10 : 1; - __IO uint32_t MSGVAL11 : 1; - __IO uint32_t MSGVAL12 : 1; - __IO uint32_t MSGVAL13 : 1; - __IO uint32_t MSGVAL14 : 1; - __IO uint32_t MSGVAL15 : 1; - __IO uint32_t MSGVAL16 : 1; - __IO uint32_t MSGVAL17 : 1; - __IO uint32_t MSGVAL18 : 1; - __IO uint32_t MSGVAL19 : 1; - __IO uint32_t MSGVAL20 : 1; - __IO uint32_t MSGVAL21 : 1; - __IO uint32_t MSGVAL22 : 1; - __IO uint32_t MSGVAL23 : 1; - __IO uint32_t MSGVAL24 : 1; - __IO uint32_t MSGVAL25 : 1; - __IO uint32_t MSGVAL26 : 1; - __IO uint32_t MSGVAL27 : 1; - __IO uint32_t MSGVAL28 : 1; - __IO uint32_t MSGVAL29 : 1; - __IO uint32_t MSGVAL30 : 1; - __IO uint32_t MSGVAL31 : 1; - __IO uint32_t MSGVAL32 : 1; -} stc_can_msgval_field_t; - -typedef struct stc_can_msgval1_field -{ - __IO uint16_t MSGVAL1 : 1; - __IO uint16_t MSGVAL2 : 1; - __IO uint16_t MSGVAL3 : 1; - __IO uint16_t MSGVAL4 : 1; - __IO uint16_t MSGVAL5 : 1; - __IO uint16_t MSGVAL6 : 1; - __IO uint16_t MSGVAL7 : 1; - __IO uint16_t MSGVAL8 : 1; - __IO uint16_t MSGVAL9 : 1; - __IO uint16_t MSGVAL10 : 1; - __IO uint16_t MSGVAL11 : 1; - __IO uint16_t MSGVAL12 : 1; - __IO uint16_t MSGVAL13 : 1; - __IO uint16_t MSGVAL14 : 1; - __IO uint16_t MSGVAL15 : 1; - __IO uint16_t MSGVAL16 : 1; -} stc_can_msgval1_field_t; - -typedef struct stc_can_msgval2_field -{ - __IO uint16_t MSGVAL17 : 1; - __IO uint16_t MSGVAL18 : 1; - __IO uint16_t MSGVAL19 : 1; - __IO uint16_t MSGVAL20 : 1; - __IO uint16_t MSGVAL21 : 1; - __IO uint16_t MSGVAL22 : 1; - __IO uint16_t MSGVAL23 : 1; - __IO uint16_t MSGVAL24 : 1; - __IO uint16_t MSGVAL25 : 1; - __IO uint16_t MSGVAL26 : 1; - __IO uint16_t MSGVAL27 : 1; - __IO uint16_t MSGVAL28 : 1; - __IO uint16_t MSGVAL29 : 1; - __IO uint16_t MSGVAL30 : 1; - __IO uint16_t MSGVAL31 : 1; - __IO uint16_t MSGVAL32 : 1; -} stc_can_msgval2_field_t; - -/****************************************************************************** - * SDIF_MODULE - ******************************************************************************/ -/* SDIF_MODULE register bit fields */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/****************************************************************************** - * Peripheral register structures - ******************************************************************************/ - -/****************************************************************************** - * WorkFlash_IF_MODULE - ******************************************************************************/ -/* WorkFlash interface registers */ -typedef struct -{ - union { - __IO uint32_t WFASZR; - stc_workflash_if_wfaszr_field_t WFASZR_f; - }; - union { - __IO uint32_t WFRWTR; - stc_workflash_if_wfrwtr_field_t WFRWTR_f; - }; - union { - __IO uint32_t WFSTR; - stc_workflash_if_wfstr_field_t WFSTR_f; - }; -}FM4_WORKFLASH_IF_TypeDef; - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash interface registers */ -typedef struct -{ - union { - __IO uint32_t FASZR; - stc_flash_if_faszr_field_t FASZR_f; - }; - union { - __IO uint32_t FRWTR; - stc_flash_if_frwtr_field_t FRWTR_f; - }; - union { - __IO uint32_t FSTR; - stc_flash_if_fstr_field_t FSTR_f; - }; - uint8_t RESERVED2[4]; - union { - __IO uint32_t FSYNDN; - stc_flash_if_fsyndn_field_t FSYNDN_f; - }; - union { - __IO uint32_t FBFCR; - stc_flash_if_fbfcr_field_t FBFCR_f; - }; - uint8_t RESERVED4[8]; - union { - __IO uint32_t FICR; - stc_flash_if_ficr_field_t FICR_f; - }; - union { - __IO uint32_t FISR; - stc_flash_if_fisr_field_t FISR_f; - }; - union { - __IO uint32_t FICLR; - stc_flash_if_ficlr_field_t FICLR_f; - }; - uint8_t RESERVED7[212]; - union { - __IO uint32_t CRTRMM; - stc_flash_if_crtrmm_field_t CRTRMM_f; - }; -}FM4_FLASH_IF_TypeDef; - -/****************************************************************************** - * UNIQUE_ID_MODULE - ******************************************************************************/ -/* Unique ID registers */ -typedef struct -{ - union { - __IO uint32_t UIDR0; - stc_unique_id_uidr0_field_t UIDR0_f; - }; - union { - __IO uint32_t UIDR1; - stc_unique_id_uidr1_field_t UIDR1_f; - }; -}FM4_UNIQUE_ID_TypeDef; - -/****************************************************************************** - * ECC_CAPTURE_MODULE - ******************************************************************************/ -/* ECC Capture address registers */ -typedef struct -{ - union { - __IO uint32_t FERRAD; - stc_ecc_capture_ferrad_field_t FERRAD_f; - }; -}FM4_ECC_CAPTURE_TypeDef; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock and reset registers */ -typedef struct -{ - union { - __IO uint8_t SCM_CTL; - stc_crg_scm_ctl_field_t SCM_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t SCM_STR; - stc_crg_scm_str_field_t SCM_STR_f; - }; - uint8_t RESERVED1[3]; - __IO uint32_t STB_CTL; - union { - __IO uint16_t RST_STR; - stc_crg_rst_str_field_t RST_STR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t BSC_PSR; - stc_crg_bsc_psr_field_t BSC_PSR_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t APBC0_PSR; - stc_crg_apbc0_psr_field_t APBC0_PSR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t APBC1_PSR; - stc_crg_apbc1_psr_field_t APBC1_PSR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t APBC2_PSR; - stc_crg_apbc2_psr_field_t APBC2_PSR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t SWC_PSR; - stc_crg_swc_psr_field_t SWC_PSR_f; - }; - uint8_t RESERVED7[7]; - union { - __IO uint8_t TTC_PSR; - stc_crg_ttc_psr_field_t TTC_PSR_f; - }; - uint8_t RESERVED8[7]; - union { - __IO uint8_t CSW_TMR; - stc_crg_csw_tmr_field_t CSW_TMR_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t PSW_TMR; - stc_crg_psw_tmr_field_t PSW_TMR_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PLL_CTL1; - stc_crg_pll_ctl1_field_t PLL_CTL1_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t PLL_CTL2; - stc_crg_pll_ctl2_field_t PLL_CTL2_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint16_t CSV_CTL; - stc_crg_csv_ctl_field_t CSV_CTL_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint8_t CSV_STR; - stc_crg_csv_str_field_t CSV_STR_f; - }; - uint8_t RESERVED14[3]; - __IO uint16_t FCSWH_CTL; - uint8_t RESERVED15[2]; - __IO uint16_t FCSWL_CTL; - uint8_t RESERVED16[2]; - __IO uint16_t FCSWD_CTL; - uint8_t RESERVED17[2]; - union { - __IO uint8_t DBWDT_CTL; - stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; - }; - uint8_t RESERVED18[11]; - union { - __IO uint8_t INT_ENR; - stc_crg_int_enr_field_t INT_ENR_f; - }; - uint8_t RESERVED19[3]; - union { - __IO uint8_t INT_STR; - stc_crg_int_str_field_t INT_STR_f; - }; - uint8_t RESERVED20[3]; - union { - __IO uint8_t INT_CLR; - stc_crg_int_clr_field_t INT_CLR_f; - }; -}FM4_CRG_TypeDef; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* Hardware watchdog registers */ -typedef struct -{ - __IO uint32_t WDG_LDR; - __IO uint32_t WDG_VLR; - union { - __IO uint8_t WDG_CTL; - stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; - }; - uint8_t RESERVED0[3]; - __IO uint8_t WDG_ICL; - uint8_t RESERVED1[3]; - union { - __IO uint8_t WDG_RIS; - stc_hwwdt_wdg_ris_field_t WDG_RIS_f; - }; - uint8_t RESERVED2[3055]; - __IO uint32_t WDG_LCK; -}FM4_HWWDT_TypeDef; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* Software watchdog registers */ -typedef struct -{ - __IO uint32_t WDOGLOAD; - __IO uint32_t WDOGVALUE; - union { - __IO uint8_t WDOGCONTROL; - stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t WDOGINTCLR; - union { - __IO uint8_t WDOGRIS; - stc_swwdt_wdogris_field_t WDOGRIS_f; - }; - uint8_t RESERVED1[7]; - union { - __IO uint8_t WDOGSPMC; - stc_swwdt_wdogspmc_field_t WDOGSPMC_f; - }; - uint8_t RESERVED2[3047]; - __IO uint32_t WDOGLOCK; -}FM4_SWWDT_TypeDef; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* Dual timer 1/2 registers */ -typedef struct -{ - __IO uint32_t TIMERXLOAD; - __IO uint32_t TIMERXVALUE; - union { - __IO uint32_t TIMERXCONTROL; - stc_dtim_timerXcontrol_field_t TIMERXCONTROL_f; - }; - __IO uint32_t TIMERXINTCLR; - union { - __IO uint32_t TIMERXRIS; - stc_dtim_timerXris_field_t TIMERXRIS_f; - }; - union { - __IO uint32_t TIMERXMIS; - stc_dtim_timerXmis_field_t TIMERXMIS_f; - }; - __IO uint32_t TIMERXBGLOAD; - uint8_t RESERVED0[4]; -}FM4_DTIM_TypeDef; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Free Running Timer registers */ -typedef struct -{ - uint8_t RESERVED0[66]; - __IO uint16_t TCCP0; - uint8_t RESERVED1[2]; - __IO uint16_t TCDT0; - union { - __IO uint16_t TCSA0; - stc_mft_frt_tcsa0_field_t TCSA0_f; - }; - union { - __IO uint16_t TCSC0; - stc_mft_frt_tcsc0_field_t TCSC0_f; - }; - uint8_t RESERVED2[2]; - __IO uint16_t TCCP1; - uint8_t RESERVED3[2]; - __IO uint16_t TCDT1; - union { - __IO uint16_t TCSA1; - stc_mft_frt_tcsa1_field_t TCSA1_f; - }; - union { - __IO uint16_t TCSC1; - stc_mft_frt_tcsc1_field_t TCSC1_f; - }; - uint8_t RESERVED4[2]; - __IO uint16_t TCCP2; - uint8_t RESERVED5[2]; - __IO uint16_t TCDT2; - union { - __IO uint16_t TCSA2; - stc_mft_frt_tcsa2_field_t TCSA2_f; - }; - union { - __IO uint16_t TCSC2; - stc_mft_frt_tcsc2_field_t TCSC2_f; - }; - union { - __IO uint32_t TCAL; - stc_mft_frt_tcal_field_t TCAL_f; - }; -}FM4_MFT_FRT_TypeDef; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Output Compare Unit registers */ -typedef struct -{ - uint8_t RESERVED0[2]; - __IO uint16_t OCCP0; - uint8_t RESERVED1[2]; - __IO uint16_t OCCP1; - uint8_t RESERVED2[2]; - __IO uint16_t OCCP2; - uint8_t RESERVED3[2]; - __IO uint16_t OCCP3; - uint8_t RESERVED4[2]; - __IO uint16_t OCCP4; - uint8_t RESERVED5[2]; - __IO uint16_t OCCP5; - union { - __IO uint8_t OCSA10; - stc_mft_ocu_ocsa10_field_t OCSA10_f; - }; - union { - __IO uint8_t OCSB10; - stc_mft_ocu_ocsb10_field_t OCSB10_f; - }; - union { - __IO uint8_t OCSD10; - stc_mft_ocu_ocsd10_field_t OCSD10_f; - }; - uint8_t RESERVED6; - union { - __IO uint8_t OCSA32; - stc_mft_ocu_ocsa32_field_t OCSA32_f; - }; - union { - __IO uint8_t OCSB32; - stc_mft_ocu_ocsb32_field_t OCSB32_f; - }; - union { - __IO uint8_t OCSD32; - stc_mft_ocu_ocsd32_field_t OCSD32_f; - }; - uint8_t RESERVED7; - union { - __IO uint8_t OCSA54; - stc_mft_ocu_ocsa54_field_t OCSA54_f; - }; - union { - __IO uint8_t OCSB54; - stc_mft_ocu_ocsb54_field_t OCSB54_f; - }; - union { - __IO uint8_t OCSD54; - stc_mft_ocu_ocsd54_field_t OCSD54_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint8_t OCSC; - stc_mft_ocu_ocsc_field_t OCSC_f; - }; - uint8_t RESERVED9[2]; - union { - __IO uint16_t OCSE0; - stc_mft_ocu_ocse0_field_t OCSE0_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint32_t OCSE1; - stc_mft_ocu_ocse1_field_t OCSE1_f; - }; - union { - __IO uint16_t OCSE2; - stc_mft_ocu_ocse2_field_t OCSE2_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint32_t OCSE3; - stc_mft_ocu_ocse3_field_t OCSE3_f; - }; - union { - __IO uint16_t OCSE4; - stc_mft_ocu_ocse4_field_t OCSE4_f; - }; - uint8_t RESERVED12[2]; - union { - __IO uint32_t OCSE5; - stc_mft_ocu_ocse5_field_t OCSE5_f; - }; - uint8_t RESERVED13[40]; - union { - __IO uint8_t OCFS10; - stc_mft_ocu_ocfs10_field_t OCFS10_f; - }; - union { - __IO uint8_t OCFS32; - stc_mft_ocu_ocfs32_field_t OCFS32_f; - }; - union { - __IO uint8_t OCFS54; - stc_mft_ocu_ocfs54_field_t OCFS54_f; - }; -}FM4_MFT_OCU_TypeDef; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -typedef struct -{ - uint8_t RESERVED0[142]; - __IO uint16_t WFTF10; - __IO uint16_t WFTA10; - __IO uint16_t WFTB10; - uint8_t RESERVED1[2]; - __IO uint16_t WFTF32; - __IO uint16_t WFTA32; - __IO uint16_t WFTB32; - uint8_t RESERVED2[2]; - __IO uint16_t WFTF54; - __IO uint16_t WFTA54; - __IO uint16_t WFTB54; - union { - __IO uint16_t WFSA10; - stc_mft_wfg_wfsa10_field_t WFSA10_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t WFSA32; - stc_mft_wfg_wfsa32_field_t WFSA32_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t WFSA54; - stc_mft_wfg_wfsa54_field_t WFSA54_f; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t WFIR; - stc_mft_wfg_wfir_field_t WFIR_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t NZCL; - stc_mft_wfg_nzcl_field_t NZCL_f; - }; -}FM4_MFT_WFG_TypeDef; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Input Capture Unit registers */ -typedef struct -{ - uint8_t RESERVED0[108]; - union { - __IO uint8_t ICFS10; - stc_mft_icu_icfs10_field_t ICFS10_f; - }; - union { - __IO uint8_t ICFS32; - stc_mft_icu_icfs32_field_t ICFS32_f; - }; - uint8_t RESERVED1[8]; - __IO uint16_t ICCP0; - uint8_t RESERVED2[2]; - __IO uint16_t ICCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ICCP2; - uint8_t RESERVED4[2]; - __IO uint16_t ICCP3; - union { - __IO uint8_t ICSA10; - stc_mft_icu_icsa10_field_t ICSA10_f; - }; - union { - __IO uint8_t ICSB10; - stc_mft_icu_icsb10_field_t ICSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ICSA32; - stc_mft_icu_icsa32_field_t ICSA32_f; - }; - union { - __IO uint8_t ICSB32; - stc_mft_icu_icsb32_field_t ICSB32_f; - }; -}FM4_MFT_ICU_TypeDef; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -typedef struct -{ - uint8_t RESERVED0[112]; - union { - __IO uint8_t ACFS10; - stc_mft_adcmp_acfs10_field_t ACFS10_f; - }; - union { - __IO uint8_t ACFS32; - stc_mft_adcmp_acfs32_field_t ACFS32_f; - }; - union { - __IO uint8_t ACFS54; - stc_mft_adcmp_acfs54_field_t ACFS54_f; - }; - uint8_t RESERVED1[71]; - __IO uint16_t ACMP0; - uint8_t RESERVED2[2]; - __IO uint16_t ACMP1; - uint8_t RESERVED3[2]; - __IO uint16_t ACMP2; - uint8_t RESERVED4[2]; - __IO uint16_t ACMP3; - uint8_t RESERVED5[2]; - __IO uint16_t ACMP4; - uint8_t RESERVED6[2]; - __IO uint16_t ACMP5; - union { - __IO uint16_t ACSA; - stc_mft_adcmp_acsa_field_t ACSA_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint8_t ACSC0; - stc_mft_adcmp_acsc_field_t ACSC0_f; - }; - union { - __IO uint8_t ACSD0; - stc_mft_adcmp_acsd_field_t ACSD0_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint8_t ACSC1; - stc_mft_adcmp_acsc_field_t ACSC1_f; - }; - union { - __IO uint8_t ACSD1; - stc_mft_adcmp_acsd_field_t ACSD1_f; - }; - uint8_t RESERVED9[2]; - union { - __IO uint8_t ACSC2; - stc_mft_adcmp_acsc_field_t ACSC2_f; - }; - union { - __IO uint8_t ACSD2; - stc_mft_adcmp_acsd_field_t ACSD2_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint8_t ACSC3; - stc_mft_adcmp_acsc_field_t ACSC3_f; - }; - union { - __IO uint8_t ACSD3; - stc_mft_adcmp_acsd_field_t ACSD3_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint8_t ACSC4; - stc_mft_adcmp_acsc_field_t ACSC4_f; - }; - union { - __IO uint8_t ACSD4; - stc_mft_adcmp_acsd_field_t ACSD4_f; - }; - uint8_t RESERVED12[2]; - union { - __IO uint8_t ACSC5; - stc_mft_adcmp_acsc_field_t ACSC5_f; - }; - union { - __IO uint8_t ACSD5; - stc_mft_adcmp_acsd_field_t ACSD5_f; - }; - uint8_t RESERVED13[2]; -}FM4_MFT_ADCMP_TypeDef; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* Multifunction Timer PPG registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t TTCR0; - stc_mft_ppg_ttcr0_field_t TTCR0_f; - }; - uint8_t RESERVED1[2]; - __IO uint8_t TSTPR0; - uint8_t RESERVED3[4]; - __IO uint8_t COMP0; - uint8_t RESERVED4[2]; - __IO uint8_t COMP2; - uint8_t RESERVED5[4]; - __IO uint8_t COMP4; - uint8_t RESERVED6[2]; - __IO uint8_t COMP6; - uint8_t RESERVED7[12]; - union { - __IO uint8_t TTCR1; - stc_mft_ppg_ttcr1_field_t TTCR1_f; - }; - uint8_t RESERVED8[2]; - __IO uint8_t TSTPR1; - uint8_t RESERVED9[4]; - __IO uint8_t COMP1; - uint8_t RESERVED10[2]; - __IO uint8_t COMP3; - uint8_t RESERVED11[4]; - __IO uint8_t COMP5; - uint8_t RESERVED12[2]; - __IO uint8_t COMP7; - uint8_t RESERVED13[12]; - union { - __IO uint8_t TTCR2; - stc_mft_ppg_ttcr2_field_t TTCR2_f; - }; - uint8_t RESERVED14[2]; - __IO uint8_t TSTPR2; - uint8_t RESERVED15[4]; - __IO uint8_t COMP8; - uint8_t RESERVED16[2]; - __IO uint8_t COMP10; - uint8_t RESERVED17[4]; - __IO uint8_t COMP12; - uint8_t RESERVED18[2]; - __IO uint8_t COMP14; - uint8_t RESERVED19[171]; - union { - __IO uint16_t TRG0; - stc_mft_ppg_trg0_field_t TRG0_f; - }; - uint8_t RESERVED20[2]; - union { - __IO uint16_t REVC0; - stc_mft_ppg_revc0_field_t REVC0_f; - }; - uint8_t RESERVED21[58]; - union { - __IO uint16_t TRG1; - stc_mft_ppg_trg1_field_t TRG1_f; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t REVC1; - stc_mft_ppg_revc1_field_t REVC1_f; - }; - uint8_t RESERVED23[186]; - union { - __IO uint8_t PPGC1; - stc_mft_ppg_ppgc1_field_t PPGC1_f; - }; - union { - __IO uint8_t PPGC0; - stc_mft_ppg_ppgc0_field_t PPGC0_f; - }; - uint8_t RESERVED24[2]; - union { - __IO uint8_t PPGC3; - stc_mft_ppg_ppgc3_field_t PPGC3_f; - }; - union { - __IO uint8_t PPGC2; - stc_mft_ppg_ppgc2_field_t PPGC2_f; - }; - uint8_t RESERVED25[2]; - union { - __IO uint16_t PRL0; - struct { - __IO uint8_t PRLL0; - __IO uint8_t PRLH0; - }; - }; - uint8_t RESERVED26[2]; - union { - __IO uint16_t PRL1; - struct { - __IO uint8_t PRLL1; - __IO uint8_t PRLH1; - }; - }; - uint8_t RESERVED27[2]; - union { - __IO uint16_t PRL2; - struct { - __IO uint8_t PRLL2; - __IO uint8_t PRLH2; - }; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t PRL3; - struct { - __IO uint8_t PRLL3; - __IO uint8_t PRLH3; - }; - }; - uint8_t RESERVED29[2]; - union { - __IO uint8_t GATEC0; - stc_mft_ppg_gatec0_field_t GATEC0_f; - }; - uint8_t RESERVED30[39]; - union { - __IO uint8_t PPGC5; - stc_mft_ppg_ppgc5_field_t PPGC5_f; - }; - union { - __IO uint8_t PPGC4; - stc_mft_ppg_ppgc4_field_t PPGC4_f; - }; - uint8_t RESERVED31[2]; - union { - __IO uint8_t PPGC7; - stc_mft_ppg_ppgc7_field_t PPGC7_f; - }; - union { - __IO uint8_t PPGC6; - stc_mft_ppg_ppgc6_field_t PPGC6_f; - }; - uint8_t RESERVED32[2]; - union { - __IO uint16_t PRL4; - struct { - __IO uint8_t PRLL4; - __IO uint8_t PRLH4; - }; - }; - uint8_t RESERVED33[2]; - union { - __IO uint16_t PRL5; - struct { - __IO uint8_t PRLL5; - __IO uint8_t PRLH5; - }; - }; - uint8_t RESERVED34[2]; - union { - __IO uint16_t PRL6; - struct { - __IO uint8_t PRLL6; - __IO uint8_t PRLH6; - }; - }; - uint8_t RESERVED35[2]; - union { - __IO uint16_t PRL7; - struct { - __IO uint8_t PRLL7; - __IO uint8_t PRLH7; - }; - }; - uint8_t RESERVED36[2]; - union { - __IO uint8_t GATEC4; - stc_mft_ppg_gatec4_field_t GATEC4_f; - }; - uint8_t RESERVED37[39]; - union { - __IO uint8_t PPGC9; - stc_mft_ppg_ppgc9_field_t PPGC9_f; - }; - union { - __IO uint8_t PPGC8; - stc_mft_ppg_ppgc8_field_t PPGC8_f; - }; - uint8_t RESERVED38[2]; - union { - __IO uint8_t PPGC11; - stc_mft_ppg_ppgc11_field_t PPGC11_f; - }; - union { - __IO uint8_t PPGC10; - stc_mft_ppg_ppgc10_field_t PPGC10_f; - }; - uint8_t RESERVED39[2]; - union { - __IO uint16_t PRL8; - struct { - __IO uint8_t PRLL8; - __IO uint8_t PRLH8; - }; - }; - uint8_t RESERVED40[2]; - union { - __IO uint16_t PRL9; - struct { - __IO uint8_t PRLL9; - __IO uint8_t PRLH9; - }; - }; - uint8_t RESERVED41[2]; - union { - __IO uint16_t PRL10; - struct { - __IO uint8_t PRLL10; - __IO uint8_t PRLH10; - }; - }; - uint8_t RESERVED42[2]; - union { - __IO uint16_t PRL11; - struct { - __IO uint8_t PRLL11; - __IO uint8_t PRLH11; - }; - }; - uint8_t RESERVED43[2]; - union { - __IO uint8_t GATEC8; - stc_mft_ppg_gatec8_field_t GATEC8_f; - }; - uint8_t RESERVED44[39]; - union { - __IO uint8_t PPGC13; - stc_mft_ppg_ppgc13_field_t PPGC13_f; - }; - union { - __IO uint8_t PPGC12; - stc_mft_ppg_ppgc12_field_t PPGC12_f; - }; - uint8_t RESERVED45[2]; - union { - __IO uint8_t PPGC15; - stc_mft_ppg_ppgc15_field_t PPGC15_f; - }; - union { - __IO uint8_t PPGC14; - stc_mft_ppg_ppgc14_field_t PPGC14_f; - }; - uint8_t RESERVED46[2]; - union { - __IO uint16_t PRL12; - struct { - __IO uint8_t PRLL12; - __IO uint8_t PRLH12; - }; - }; - uint8_t RESERVED47[2]; - union { - __IO uint16_t PRL13; - struct { - __IO uint8_t PRLL13; - __IO uint8_t PRLH13; - }; - }; - uint8_t RESERVED48[2]; - union { - __IO uint16_t PRL14; - struct { - __IO uint8_t PRLL14; - __IO uint8_t PRLH14; - }; - }; - uint8_t RESERVED49[2]; - union { - __IO uint16_t PRL15; - struct { - __IO uint8_t PRLL15; - __IO uint8_t PRLH15; - }; - }; - uint8_t RESERVED50[2]; - union { - __IO uint8_t GATEC12; - stc_mft_ppg_gatec12_field_t GATEC12_f; - }; - uint8_t RESERVED51[39]; - union { - __IO uint8_t PPGC17; - stc_mft_ppg_ppgc17_field_t PPGC17_f; - }; - union { - __IO uint8_t PPGC16; - stc_mft_ppg_ppgc16_field_t PPGC16_f; - }; - uint8_t RESERVED52[2]; - union { - __IO uint8_t PPGC19; - stc_mft_ppg_ppgc19_field_t PPGC19_f; - }; - union { - __IO uint8_t PPGC18; - stc_mft_ppg_ppgc18_field_t PPGC18_f; - }; - uint8_t RESERVED53[2]; - union { - __IO uint16_t PRL16; - struct { - __IO uint8_t PRLL16; - __IO uint8_t PRLH16; - }; - }; - uint8_t RESERVED54[2]; - union { - __IO uint16_t PRL17; - struct { - __IO uint8_t PRLL17; - __IO uint8_t PRLH17; - }; - }; - uint8_t RESERVED55[2]; - union { - __IO uint16_t PRL18; - struct { - __IO uint8_t PRLL18; - __IO uint8_t PRLH18; - }; - }; - uint8_t RESERVED56[2]; - union { - __IO uint16_t PRL19; - struct { - __IO uint8_t PRLL19; - __IO uint8_t PRLH19; - }; - }; - uint8_t RESERVED57[2]; - union { - __IO uint8_t GATEC16; - stc_mft_ppg_gatec16_field_t GATEC16_f; - }; - uint8_t RESERVED58[39]; - union { - __IO uint8_t PPGC21; - stc_mft_ppg_ppgc21_field_t PPGC21_f; - }; - union { - __IO uint8_t PPGC20; - stc_mft_ppg_ppgc20_field_t PPGC20_f; - }; - uint8_t RESERVED59[2]; - union { - __IO uint8_t PPGC23; - stc_mft_ppg_ppgc23_field_t PPGC23_f; - }; - union { - __IO uint8_t PPGC22; - stc_mft_ppg_ppgc22_field_t PPGC22_f; - }; - uint8_t RESERVED60[2]; - union { - __IO uint16_t PRL20; - struct { - __IO uint8_t PRLL20; - __IO uint8_t PRLH20; - }; - }; - uint8_t RESERVED61[2]; - union { - __IO uint16_t PRL21; - struct { - __IO uint8_t PRLL21; - __IO uint8_t PRLH21; - }; - }; - uint8_t RESERVED62[2]; - union { - __IO uint16_t PRL22; - struct { - __IO uint8_t PRLL22; - __IO uint8_t PRLH22; - }; - }; - uint8_t RESERVED63[2]; - union { - __IO uint16_t PRL23; - struct { - __IO uint8_t PRLL23; - __IO uint8_t PRLH23; - }; - }; - uint8_t RESERVED64[2]; - union { - __IO uint8_t GATEC20; - stc_mft_ppg_gatec20_field_t GATEC20_f; - }; - uint8_t RESERVED65[39]; - __IO uint8_t IGBTC; - uint8_t RESERVED66[39]; -}FM4_MFT_PPG_TypeDef; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* Base Timer 0 PPG registers */ -typedef struct -{ - __IO uint16_t PRLL; - uint8_t RESERVED0[2]; - __IO uint16_t PRLH; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_ppg_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_ppg_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_ppg_tmcr2_field_t TMCR2_f; - }; -}FM4_BT_PPG_TypeDef; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* Base Timer 0 PWM registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[2]; - __IO uint16_t PDUT; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_pwm_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_pwm_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwm_tmcr2_field_t TMCR2_f; - }; -}FM4_BT_PWM_TypeDef; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* Base Timer 0 RT registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[6]; - __IO uint16_t TMR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t TMCR; - stc_bt_rt_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_rt_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_rt_tmcr2_field_t TMCR2_f; - }; -}FM4_BT_RT_TypeDef; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* Base Timer 0 PWC registers */ -typedef struct -{ - uint8_t RESERVED0[4]; - __IO uint16_t DTBF; - uint8_t RESERVED1[6]; - union { - __IO uint16_t TMCR; - stc_bt_pwc_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_pwc_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwc_tmcr2_field_t TMCR2_f; - }; -}FM4_BT_PWC_TypeDef; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 0 - channel 3 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL0123; - stc_btiosel03_btsel0123_field_t BTSEL0123_f; - }; -}FM4_BTIOSEL03_TypeDef; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 4 - channel 7 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL4567; - stc_btiosel47_btsel4567_field_t BTSEL4567_f; - }; -}FM4_BTIOSEL47_TypeDef; - -/****************************************************************************** - * BTIOSEL8B_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 8 - channel 11 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL89AB; - stc_btiosel8b_btsel89ab_field_t BTSEL89AB_f; - }; -}FM4_BTIOSEL8B_TypeDef; - -/****************************************************************************** - * BTIOSELCF_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 12 - channel 15 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSELCDEF; - stc_btioselcf_btselcdef_field_t BTSELCDEF_f; - }; -}FM4_BTIOSELCF_TypeDef; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* Software based Simulation Startup (Base Timer) register */ -typedef struct -{ - union { - __IO uint16_t BTSSSR; - stc_sbssr_btsssr_field_t BTSSSR_f; - }; -}FM4_SBSSR_TypeDef; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* Quad position and revolution counter channel 0 registers */ -typedef struct -{ - __IO uint16_t QPCR; - uint8_t RESERVED0[2]; - __IO uint16_t QRCR; - uint8_t RESERVED1[2]; - __IO uint16_t QPCCR; - uint8_t RESERVED2[2]; - __IO uint16_t QPRCR; - uint8_t RESERVED3[2]; - __IO uint16_t QMPR; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t QICR; - stc_qprc_qicr_field_t QICR_f; - }; - struct { - union { - __IO uint8_t QICRL; - stc_qprc_qicrl_field_t QICRL_f; - }; - union { - __IO uint8_t QICRH; - stc_qprc_qicrh_field_t QICRH_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t QCR; - stc_qprc_qcr_field_t QCR_f; - }; - struct { - union { - __IO uint8_t QCRL; - stc_qprc_qcrl_field_t QCRL_f; - }; - union { - __IO uint8_t QCRH; - stc_qprc_qcrh_field_t QCRH_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t QECR; - stc_qprc_qecr_field_t QECR_f; - }; -}FM4_QPRC_TypeDef; - -/****************************************************************************** - * QPRC_NF_MODULE - ******************************************************************************/ -/* Quad position and revolution counter noise filter registers */ -typedef struct -{ - union { - __IO uint8_t NFCTLA; - stc_qprc_nf_nfctla_field_t NFCTLA_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t NFCTLB; - stc_qprc_nf_nfctlb_field_t NFCTLB_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t NFRCTLZ; - stc_qprc_nf_nfrctlz_field_t NFRCTLZ_f; - }; - uint8_t RESERVED2[7]; -}FM4_QPRC_NF_TypeDef; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* 12-bit ADC unit 0 registers */ -typedef struct -{ - union { - __IO uint8_t ADSR; - stc_adc_adsr_field_t ADSR_f; - }; - union { - __IO uint8_t ADCR; - stc_adc_adcr_field_t ADCR_f; - }; - uint8_t RESERVED0[6]; - union { - __IO uint8_t SFNS; - stc_adc_sfns_field_t SFNS_f; - }; - union { - __IO uint8_t SCCR; - stc_adc_sccr_field_t SCCR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint32_t SCFD; - stc_adc_scfd_field_t SCFD_f; - }; - struct { - union { - __IO uint16_t SCFDL; - stc_adc_scfdl_field_t SCFDL_f; - }; - union { - __IO uint16_t SCFDH; - stc_adc_scfdh_field_t SCFDH_f; - }; - }; - }; - union { - union { - __IO uint16_t SCIS23; - stc_adc_scis23_field_t SCIS23_f; - }; - struct { - union { - __IO uint8_t SCIS2; - stc_adc_scis2_field_t SCIS2_f; - }; - union { - __IO uint8_t SCIS3; - stc_adc_scis3_field_t SCIS3_f; - }; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t SCIS01; - stc_adc_scis01_field_t SCIS01_f; - }; - struct { - union { - __IO uint8_t SCIS0; - stc_adc_scis0_field_t SCIS0_f; - }; - union { - __IO uint8_t SCIS1; - stc_adc_scis1_field_t SCIS1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t PFNS; - stc_adc_pfns_field_t PFNS_f; - }; - union { - __IO uint8_t PCCR; - stc_adc_pccr_field_t PCCR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint32_t PCFD; - stc_adc_pcfd_field_t PCFD_f; - }; - struct { - union { - __IO uint16_t PCFDL; - stc_adc_pcfdl_field_t PCFDL_f; - }; - union { - __IO uint16_t PCFDH; - stc_adc_pcfdh_field_t PCFDH_f; - }; - }; - }; - union { - __IO uint8_t PCIS; - stc_adc_pcis_field_t PCIS_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t CMPCR; - stc_adc_cmpcr_field_t CMPCR_f; - }; - uint8_t RESERVED6; - union { - __IO uint16_t CMPD; - stc_adc_cmpd_field_t CMPD_f; - }; - union { - union { - __IO uint16_t ADSS23; - stc_adc_adss23_field_t ADSS23_f; - }; - struct { - union { - __IO uint8_t ADSS2; - stc_adc_adss2_field_t ADSS2_f; - }; - union { - __IO uint8_t ADSS3; - stc_adc_adss3_field_t ADSS3_f; - }; - }; - }; - uint8_t RESERVED7[2]; - union { - union { - __IO uint16_t ADSS01; - stc_adc_adss01_field_t ADSS01_f; - }; - struct { - union { - __IO uint8_t ADSS0; - stc_adc_adss0_field_t ADSS0_f; - }; - union { - __IO uint8_t ADSS1; - stc_adc_adss1_field_t ADSS1_f; - }; - }; - }; - uint8_t RESERVED8[2]; - union { - union { - __IO uint16_t ADST01; - stc_adc_adst01_field_t ADST01_f; - }; - struct { - union { - __IO uint8_t ADST1; - stc_adc_adst1_field_t ADST1_f; - }; - union { - __IO uint8_t ADST0; - stc_adc_adst0_field_t ADST0_f; - }; - }; - }; - uint8_t RESERVED9[2]; - union { - __IO uint8_t ADCT; - stc_adc_adct_field_t ADCT_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PRTSL; - stc_adc_prtsl_field_t PRTSL_f; - }; - union { - __IO uint8_t SCTSL; - stc_adc_sctsl_field_t SCTSL_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t ADCEN; - stc_adc_adcen_field_t ADCEN_f; - }; - uint8_t RESERVED12[2]; - uint32_t OFFESET; - union { - __IO uint8_t WCMRCOT; - stc_adc_wcmrcot_field_t WCMRCOT_f; - }; - uint8_t RESERVED13[3]; - union { - __IO uint8_t WCMRCIF; - stc_adc_wcmrcif_field_t WCMRCIF_f; - }; - uint8_t RESERVED14[3]; - union { - __IO uint8_t WCMPCR; - stc_adc_wcmpcr_field_t WCMPCR_f; - }; - union { - __IO uint8_t WCMPSR; - stc_adc_wcmpsr_field_t WCMPSR_f; - }; - uint8_t RESERVED15[2]; - union { - __IO uint16_t WCMPDL; - stc_adc_wcmpdl_field_t WCMPDL_f; - }; - union { - __IO uint16_t WCMPDH; - stc_adc_wcmpdh_field_t WCMPDH_f; - }; -}FM4_ADC_TypeDef; - -/****************************************************************************** - * DAC_MODULE - ******************************************************************************/ - -typedef struct -{ - union { - __IO uint8_t DACR; - stc_dacr_field_t DACR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint16_t DADR; - stc_dadr_field_t DADR_f; - }; -}FM4_DAC_TypeDef; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CR trimming registers */ -typedef struct -{ - union { - __IO uint8_t MCR_PSR; - stc_crtrim_mcr_psr_field_t MCR_PSR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint16_t MCR_FTRM; - stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t MCR_TTRM; - stc_crtrim_mcr_ttrm_field_t MCR_TTRM_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint32_t MCR_RLR; - stc_crtrim_mcr_rlr_field_t MCR_RLR_f; - }; -}FM4_CRTRIM_TypeDef; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* External interrupt registers */ -typedef struct -{ - union { - __IO uint32_t ENIR; - stc_exti_enir_field_t ENIR_f; - }; - union { - __IO uint32_t EIRR; - stc_exti_eirr_field_t EIRR_f; - }; - union { - __IO uint32_t EICL; - stc_exti_eicl_field_t EICL_f; - }; - union { - __IO uint32_t ELVR; - stc_exti_elvr_field_t ELVR_f; - }; - union { - __IO uint32_t ELVR1; - stc_exti_elvr1_field_t ELVR1_f; - }; - union { - __IO uint8_t NMIRR; - stc_exti_nmirr_field_t NMIRR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t NMICL; - stc_exti_nmicl_field_t NMICL_f; - }; -}FM4_EXTI_TypeDef; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* Interrupt request read registers */ -typedef struct -{ - union { - __IO uint32_t DRQSEL; - stc_intreq_drqsel_field_t DRQSEL_f; - }; - uint8_t RESERVED0[12]; - union { - __IO uint8_t ODDPKS; - stc_intreq_oddpks_field_t ODDPKS_f; - }; - uint8_t RESERVED1[255]; - union { - __IO uint32_t IRQ003SEL; - stc_intreq_irq003sel_field_t IRQ003SEL_f; - }; - union { - __IO uint32_t IRQ004SEL; - stc_intreq_irq004sel_field_t IRQ004SEL_f; - }; - union { - __IO uint32_t IRQ005SEL; - stc_intreq_irq005sel_field_t IRQ005SEL_f; - }; - union { - __IO uint32_t IRQ006SEL; - stc_intreq_irq006sel_field_t IRQ006SEL_f; - }; - union { - __IO uint32_t IRQ007SEL; - stc_intreq_irq007sel_field_t IRQ007SEL_f; - }; - union { - __IO uint32_t IRQ008SEL; - stc_intreq_irq008sel_field_t IRQ008SEL_f; - }; - union { - __IO uint32_t IRQ009SEL; - stc_intreq_irq009sel_field_t IRQ009SEL_f; - }; - union { - __IO uint32_t IRQ010SEL; - stc_intreq_irq010sel_field_t IRQ010SEL_f; - }; - uint8_t RESERVED9[208]; - union { - __IO uint32_t EXC02MON; - stc_intreq_exc02mon_field_t EXC02MON_f; - }; - union { - __IO uint32_t IRQ000MON; - stc_intreq_irq000mon_field_t IRQ000MON_f; - }; - union { - __IO uint32_t IRQ001MON; - stc_intreq_irq001mon_field_t IRQ001MON_f; - }; - union { - __IO uint32_t IRQ002MON; - stc_intreq_irq002mon_field_t IRQ002MON_f; - }; - union { - __IO uint32_t IRQ003MON; - stc_intreq_irq003mon_field_t IRQ003MON_f; - }; - union { - __IO uint32_t IRQ004MON; - stc_intreq_irq004mon_field_t IRQ004MON_f; - }; - union { - __IO uint32_t IRQ005MON; - stc_intreq_irq005mon_field_t IRQ005MON_f; - }; - union { - __IO uint32_t IRQ006MON; - stc_intreq_irq006mon_field_t IRQ006MON_f; - }; - union { - __IO uint32_t IRQ007MON; - stc_intreq_irq007mon_field_t IRQ007MON_f; - }; - union { - __IO uint32_t IRQ008MON; - stc_intreq_irq008mon_field_t IRQ008MON_f; - }; - union { - __IO uint32_t IRQ009MON; - stc_intreq_irq009mon_field_t IRQ009MON_f; - }; - union { - __IO uint32_t IRQ010MON; - stc_intreq_irq010mon_field_t IRQ010MON_f; - }; - union { - __IO uint32_t IRQ011MON; - stc_intreq_irq011mon_field_t IRQ011MON_f; - }; - union { - __IO uint32_t IRQ012MON; - stc_intreq_irq012mon_field_t IRQ012MON_f; - }; - union { - __IO uint32_t IRQ013MON; - stc_intreq_irq013mon_field_t IRQ013MON_f; - }; - union { - __IO uint32_t IRQ014MON; - stc_intreq_irq014mon_field_t IRQ014MON_f; - }; - union { - __IO uint32_t IRQ015MON; - stc_intreq_irq015mon_field_t IRQ015MON_f; - }; - union { - __IO uint32_t IRQ016MON; - stc_intreq_irq016mon_field_t IRQ016MON_f; - }; - union { - __IO uint32_t IRQ017MON; - stc_intreq_irq017mon_field_t IRQ017MON_f; - }; - union { - __IO uint32_t IRQ018MON; - stc_intreq_irq018mon_field_t IRQ018MON_f; - }; - union { - __IO uint32_t IRQ019MON; - stc_intreq_irq019mon_field_t IRQ019MON_f; - }; - union { - __IO uint32_t IRQ020MON; - stc_intreq_irq020mon_field_t IRQ020MON_f; - }; - union { - __IO uint32_t IRQ021MON; - stc_intreq_irq021mon_field_t IRQ021MON_f; - }; - union { - __IO uint32_t IRQ022MON; - stc_intreq_irq022mon_field_t IRQ022MON_f; - }; - union { - __IO uint32_t IRQ023MON; - stc_intreq_irq023mon_field_t IRQ023MON_f; - }; - union { - __IO uint32_t IRQ024MON; - stc_intreq_irq024mon_field_t IRQ024MON_f; - }; - union { - __IO uint32_t IRQ025MON; - stc_intreq_irq025mon_field_t IRQ025MON_f; - }; - union { - __IO uint32_t IRQ026MON; - stc_intreq_irq026mon_field_t IRQ026MON_f; - }; - union { - __IO uint32_t IRQ027MON; - stc_intreq_irq027mon_field_t IRQ027MON_f; - }; - union { - __IO uint32_t IRQ028MON; - stc_intreq_irq028mon_field_t IRQ028MON_f; - }; - union { - __IO uint32_t IRQ029MON; - stc_intreq_irq029mon_field_t IRQ029MON_f; - }; - union { - __IO uint32_t IRQ030MON; - stc_intreq_irq030mon_field_t IRQ030MON_f; - }; - union { - __IO uint32_t IRQ031MON; - stc_intreq_irq031mon_field_t IRQ031MON_f; - }; - union { - __IO uint32_t IRQ032MON; - stc_intreq_irq032mon_field_t IRQ032MON_f; - }; - union { - __IO uint32_t IRQ033MON; - stc_intreq_irq033mon_field_t IRQ033MON_f; - }; - union { - __IO uint32_t IRQ034MON; - stc_intreq_irq034mon_field_t IRQ034MON_f; - }; - union { - __IO uint32_t IRQ035MON; - stc_intreq_irq035mon_field_t IRQ035MON_f; - }; - union { - __IO uint32_t IRQ036MON; - stc_intreq_irq036mon_field_t IRQ036MON_f; - }; - union { - __IO uint32_t IRQ037MON; - stc_intreq_irq037mon_field_t IRQ037MON_f; - }; - union { - __IO uint32_t IRQ038MON; - stc_intreq_irq038mon_field_t IRQ038MON_f; - }; - union { - __IO uint32_t IRQ039MON; - stc_intreq_irq039mon_field_t IRQ039MON_f; - }; - union { - __IO uint32_t IRQ040MON; - stc_intreq_irq040mon_field_t IRQ040MON_f; - }; - union { - __IO uint32_t IRQ041MON; - stc_intreq_irq041mon_field_t IRQ041MON_f; - }; - union { - __IO uint32_t IRQ042MON; - stc_intreq_irq042mon_field_t IRQ042MON_f; - }; - union { - __IO uint32_t IRQ043MON; - stc_intreq_irq043mon_field_t IRQ043MON_f; - }; - union { - __IO uint32_t IRQ044MON; - stc_intreq_irq044mon_field_t IRQ044MON_f; - }; - union { - __IO uint32_t IRQ045MON; - stc_intreq_irq045mon_field_t IRQ045MON_f; - }; - union { - __IO uint32_t IRQ046MON; - stc_intreq_irq046mon_field_t IRQ046MON_f; - }; - union { - __IO uint32_t IRQ047MON; - stc_intreq_irq047mon_field_t IRQ047MON_f; - }; - union { - __IO uint32_t IRQ048MON; - stc_intreq_irq048mon_field_t IRQ048MON_f; - }; - union { - __IO uint32_t IRQ049MON; - stc_intreq_irq049mon_field_t IRQ049MON_f; - }; - union { - __IO uint32_t IRQ050MON; - stc_intreq_irq050mon_field_t IRQ050MON_f; - }; - union { - __IO uint32_t IRQ051MON; - stc_intreq_irq051mon_field_t IRQ051MON_f; - }; - union { - __IO uint32_t IRQ052MON; - stc_intreq_irq052mon_field_t IRQ052MON_f; - }; - union { - __IO uint32_t IRQ053MON; - stc_intreq_irq053mon_field_t IRQ053MON_f; - }; - union { - __IO uint32_t IRQ054MON; - stc_intreq_irq054mon_field_t IRQ054MON_f; - }; - union { - __IO uint32_t IRQ055MON; - stc_intreq_irq055mon_field_t IRQ055MON_f; - }; - union { - __IO uint32_t IRQ056MON; - stc_intreq_irq056mon_field_t IRQ056MON_f; - }; - union { - __IO uint32_t IRQ057MON; - stc_intreq_irq057mon_field_t IRQ057MON_f; - }; - union { - __IO uint32_t IRQ058MON; - stc_intreq_irq058mon_field_t IRQ058MON_f; - }; - union { - __IO uint32_t IRQ059MON; - stc_intreq_irq059mon_field_t IRQ059MON_f; - }; - union { - __IO uint32_t IRQ060MON; - stc_intreq_irq060mon_field_t IRQ060MON_f; - }; - union { - __IO uint32_t IRQ061MON; - stc_intreq_irq061mon_field_t IRQ061MON_f; - }; - union { - __IO uint32_t IRQ062MON; - stc_intreq_irq062mon_field_t IRQ062MON_f; - }; - union { - __IO uint32_t IRQ063MON; - stc_intreq_irq063mon_field_t IRQ063MON_f; - }; - union { - __IO uint32_t IRQ064MON; - stc_intreq_irq064mon_field_t IRQ064MON_f; - }; - union { - __IO uint32_t IRQ065MON; - stc_intreq_irq065mon_field_t IRQ065MON_f; - }; - union { - __IO uint32_t IRQ066MON; - stc_intreq_irq066mon_field_t IRQ066MON_f; - }; - union { - __IO uint32_t IRQ067MON; - stc_intreq_irq067mon_field_t IRQ067MON_f; - }; - union { - __IO uint32_t IRQ068MON; - stc_intreq_irq068mon_field_t IRQ068MON_f; - }; - union { - __IO uint32_t IRQ069MON; - stc_intreq_irq069mon_field_t IRQ069MON_f; - }; - union { - __IO uint32_t IRQ070MON; - stc_intreq_irq070mon_field_t IRQ070MON_f; - }; - union { - __IO uint32_t IRQ071MON; - stc_intreq_irq071mon_field_t IRQ071MON_f; - }; - union { - __IO uint32_t IRQ072MON; - stc_intreq_irq072mon_field_t IRQ072MON_f; - }; - union { - __IO uint32_t IRQ073MON; - stc_intreq_irq073mon_field_t IRQ073MON_f; - }; - union { - __IO uint32_t IRQ074MON; - stc_intreq_irq074mon_field_t IRQ074MON_f; - }; - union { - __IO uint32_t IRQ075MON; - stc_intreq_irq075mon_field_t IRQ075MON_f; - }; - union { - __IO uint32_t IRQ076MON; - stc_intreq_irq076mon_field_t IRQ076MON_f; - }; - union { - __IO uint32_t IRQ077MON; - stc_intreq_irq077mon_field_t IRQ077MON_f; - }; - union { - __IO uint32_t IRQ078MON; - stc_intreq_irq078mon_field_t IRQ078MON_f; - }; - union { - __IO uint32_t IRQ079MON; - stc_intreq_irq079mon_field_t IRQ079MON_f; - }; - union { - __IO uint32_t IRQ080MON; - stc_intreq_irq080mon_field_t IRQ080MON_f; - }; - union { - __IO uint32_t IRQ081MON; - stc_intreq_irq081mon_field_t IRQ081MON_f; - }; - union { - __IO uint32_t IRQ082MON; - stc_intreq_irq082mon_field_t IRQ082MON_f; - }; - union { - __IO uint32_t IRQ083MON; - stc_intreq_irq083mon_field_t IRQ083MON_f; - }; - union { - __IO uint32_t IRQ084MON; - stc_intreq_irq084mon_field_t IRQ084MON_f; - }; - union { - __IO uint32_t IRQ085MON; - stc_intreq_irq085mon_field_t IRQ085MON_f; - }; - union { - __IO uint32_t IRQ086MON; - stc_intreq_irq086mon_field_t IRQ086MON_f; - }; - union { - __IO uint32_t IRQ087MON; - stc_intreq_irq087mon_field_t IRQ087MON_f; - }; - union { - __IO uint32_t IRQ088MON; - stc_intreq_irq088mon_field_t IRQ088MON_f; - }; - union { - __IO uint32_t IRQ089MON; - stc_intreq_irq089mon_field_t IRQ089MON_f; - }; - union { - __IO uint32_t IRQ090MON; - stc_intreq_irq090mon_field_t IRQ090MON_f; - }; - union { - __IO uint32_t IRQ091MON; - stc_intreq_irq091mon_field_t IRQ091MON_f; - }; - union { - __IO uint32_t IRQ092MON; - stc_intreq_irq092mon_field_t IRQ092MON_f; - }; - union { - __IO uint32_t IRQ093MON; - stc_intreq_irq093mon_field_t IRQ093MON_f; - }; - union { - __IO uint32_t IRQ094MON; - stc_intreq_irq094mon_field_t IRQ094MON_f; - }; - union { - __IO uint32_t IRQ095MON; - stc_intreq_irq095mon_field_t IRQ095MON_f; - }; - union { - __IO uint32_t IRQ096MON; - stc_intreq_irq096mon_field_t IRQ096MON_f; - }; - union { - __IO uint32_t IRQ097MON; - stc_intreq_irq097mon_field_t IRQ097MON_f; - }; - union { - __IO uint32_t IRQ098MON; - stc_intreq_irq098mon_field_t IRQ098MON_f; - }; - union { - __IO uint32_t IRQ099MON; - stc_intreq_irq099mon_field_t IRQ099MON_f; - }; - union { - __IO uint32_t IRQ100MON; - stc_intreq_irq100mon_field_t IRQ100MON_f; - }; - union { - __IO uint32_t IRQ101MON; - stc_intreq_irq101mon_field_t IRQ101MON_f; - }; - union { - __IO uint32_t IRQ102MON; - stc_intreq_irq102mon_field_t IRQ102MON_f; - }; - union { - __IO uint32_t IRQ103MON; - stc_intreq_irq103mon_field_t IRQ103MON_f; - }; - union { - __IO uint32_t IRQ104MON; - stc_intreq_irq104mon_field_t IRQ104MON_f; - }; - union { - __IO uint32_t IRQ105MON; - stc_intreq_irq105mon_field_t IRQ105MON_f; - }; - union { - __IO uint32_t IRQ106MON; - stc_intreq_irq106mon_field_t IRQ106MON_f; - }; - union { - __IO uint32_t IRQ107MON; - stc_intreq_irq107mon_field_t IRQ107MON_f; - }; - union { - __IO uint32_t IRQ108MON; - stc_intreq_irq108mon_field_t IRQ108MON_f; - }; - union { - __IO uint32_t IRQ109MON; - stc_intreq_irq109mon_field_t IRQ109MON_f; - }; - union { - __IO uint32_t IRQ110MON; - stc_intreq_irq110mon_field_t IRQ110MON_f; - }; - union { - __IO uint32_t IRQ111MON; - stc_intreq_irq111mon_field_t IRQ111MON_f; - }; - __IO uint32_t IRQ112MON; - union { - __IO uint32_t IRQ113MON; - stc_intreq_irq113mon_field_t IRQ113MON_f; - }; - union { - __IO uint32_t IRQ114MON; - stc_intreq_irq114mon_field_t IRQ114MON_f; - }; - __IO uint32_t IRQ115MON; - __IO uint32_t IRQ116MON; - __IO uint32_t IRQ117MON; - union { - __IO uint32_t IRQ118MON; - stc_intreq_irq118mon_field_t IRQ118MON_f; - }; - union { - __IO uint32_t IRQ119MON; - stc_intreq_irq119mon_field_t IRQ119MON_f; - }; - union { - __IO uint32_t IRQ120MON; - stc_intreq_irq120mon_field_t IRQ120MON_f; - }; - union { - __IO uint32_t IRQ121MON; - stc_intreq_irq121mon_field_t IRQ121MON_f; - }; - union { - __IO uint32_t IRQ122MON; - stc_intreq_irq122mon_field_t IRQ122MON_f; - }; - union { - __IO uint32_t IRQ123MON; - stc_intreq_irq123mon_field_t IRQ123MON_f; - }; - union { - __IO uint32_t IRQ124MON; - stc_intreq_irq124mon_field_t IRQ124MON_f; - }; - union { - __IO uint32_t IRQ125MON; - stc_intreq_irq125mon_field_t IRQ125MON_f; - }; - union { - __IO uint32_t IRQ126MON; - stc_intreq_irq126mon_field_t IRQ126MON_f; - }; - union { - __IO uint32_t IRQ127MON; - stc_intreq_irq127mon_field_t IRQ127MON_f; - }; -}FM4_INTREQ_TypeDef; - -/****************************************************************************** - * IRQSEL_MODULE -******************************************************************************/ -typedef struct -{ - union { - __IO uint32_t IRQ03SEL; - stc_irqsel_field_t IRQ03SEL_f; - }; - union { - __IO uint32_t IRQ04SEL; - stc_irqsel_field_t IRQ04SEL_f; - }; - union { - __IO uint32_t IRQ05SEL; - stc_irqsel_field_t IRQ05SEL_f; - }; - union { - __IO uint32_t IRQ06SEL; - stc_irqsel_field_t IRQ06SEL_f; - }; - union { - __IO uint32_t IRQ07SEL; - stc_irqsel_field_t IRQ07SEL_f; - }; - union { - __IO uint32_t IRQ08SEL; - stc_irqsel_field_t IRQ08SEL_f; - }; - union { - __IO uint32_t IRQ09SEL; - stc_irqsel_field_t IRQ09SEL_f; - }; - union { - __IO uint32_t IRQ10SEL; - stc_irqsel_field_t IRQ10SEL_f; - }; -} FM4_IRQSEL_TypeDef; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* General purpose I/O registers */ -typedef struct -{ - union { - __IO uint32_t PFR0; - stc_gpio_pfr0_field_t PFR0_f; - }; - union { - __IO uint32_t PFR1; - stc_gpio_pfr1_field_t PFR1_f; - }; - union { - __IO uint32_t PFR2; - stc_gpio_pfr2_field_t PFR2_f; - }; - union { - __IO uint32_t PFR3; - stc_gpio_pfr3_field_t PFR3_f; - }; - union { - __IO uint32_t PFR4; - stc_gpio_pfr4_field_t PFR4_f; - }; - union { - __IO uint32_t PFR5; - stc_gpio_pfr5_field_t PFR5_f; - }; - union { - __IO uint32_t PFR6; - stc_gpio_pfr6_field_t PFR6_f; - }; - union { - __IO uint32_t PFR7; - stc_gpio_pfr7_field_t PFR7_f; - }; - union { - __IO uint32_t PFR8; - stc_gpio_pfr8_field_t PFR8_f; - }; - uint8_t RESERVED8[20]; - union { - __IO uint32_t PFRE; - stc_gpio_pfre_field_t PFRE_f; - }; - uint8_t RESERVED9[196]; - union { - __IO uint32_t PCR0; - stc_gpio_pcr0_field_t PCR0_f; - }; - union { - __IO uint32_t PCR1; - stc_gpio_pcr1_field_t PCR1_f; - }; - union { - __IO uint32_t PCR2; - stc_gpio_pcr2_field_t PCR2_f; - }; - union { - __IO uint32_t PCR3; - stc_gpio_pcr3_field_t PCR3_f; - }; - union { - __IO uint32_t PCR4; - stc_gpio_pcr4_field_t PCR4_f; - }; - union { - __IO uint32_t PCR5; - stc_gpio_pcr5_field_t PCR5_f; - }; - union { - __IO uint32_t PCR6; - stc_gpio_pcr6_field_t PCR6_f; - }; - union { - __IO uint32_t PCR7; - stc_gpio_pcr7_field_t PCR7_f; - }; - union { - __IO uint32_t PCR8; - stc_gpio_pcr8_field_t PCR8_f; - }; - uint8_t RESERVED18[20]; - union { - __IO uint32_t PCRE; - stc_gpio_pcre_field_t PCRE_f; - }; - uint8_t RESERVED19[196]; - union { - __IO uint32_t DDR0; - stc_gpio_ddr0_field_t DDR0_f; - }; - union { - __IO uint32_t DDR1; - stc_gpio_ddr1_field_t DDR1_f; - }; - union { - __IO uint32_t DDR2; - stc_gpio_ddr2_field_t DDR2_f; - }; - union { - __IO uint32_t DDR3; - stc_gpio_ddr3_field_t DDR3_f; - }; - union { - __IO uint32_t DDR4; - stc_gpio_ddr4_field_t DDR4_f; - }; - union { - __IO uint32_t DDR5; - stc_gpio_ddr5_field_t DDR5_f; - }; - union { - __IO uint32_t DDR6; - stc_gpio_ddr6_field_t DDR6_f; - }; - union { - __IO uint32_t DDR7; - stc_gpio_ddr7_field_t DDR7_f; - }; - union { - __IO uint32_t DDR8; - stc_gpio_ddr8_field_t DDR8_f; - }; - uint8_t RESERVED28[20]; - union { - __IO uint32_t DDRE; - stc_gpio_ddre_field_t DDRE_f; - }; - uint8_t RESERVED29[196]; - union { - __IO uint32_t PDIR0; - stc_gpio_pdir0_field_t PDIR0_f; - }; - union { - __IO uint32_t PDIR1; - stc_gpio_pdir1_field_t PDIR1_f; - }; - union { - __IO uint32_t PDIR2; - stc_gpio_pdir2_field_t PDIR2_f; - }; - union { - __IO uint32_t PDIR3; - stc_gpio_pdir3_field_t PDIR3_f; - }; - union { - __IO uint32_t PDIR4; - stc_gpio_pdir4_field_t PDIR4_f; - }; - union { - __IO uint32_t PDIR5; - stc_gpio_pdir5_field_t PDIR5_f; - }; - union { - __IO uint32_t PDIR6; - stc_gpio_pdir6_field_t PDIR6_f; - }; - union { - __IO uint32_t PDIR7; - stc_gpio_pdir7_field_t PDIR7_f; - }; - union { - __IO uint32_t PDIR8; - stc_gpio_pdir8_field_t PDIR8_f; - }; - uint8_t RESERVED38[20]; - union { - __IO uint32_t PDIRE; - stc_gpio_pdire_field_t PDIRE_f; - }; - uint8_t RESERVED39[196]; - union { - __IO uint32_t PDOR0; - stc_gpio_pdor0_field_t PDOR0_f; - }; - union { - __IO uint32_t PDOR1; - stc_gpio_pdor1_field_t PDOR1_f; - }; - union { - __IO uint32_t PDOR2; - stc_gpio_pdor2_field_t PDOR2_f; - }; - union { - __IO uint32_t PDOR3; - stc_gpio_pdor3_field_t PDOR3_f; - }; - union { - __IO uint32_t PDOR4; - stc_gpio_pdor4_field_t PDOR4_f; - }; - union { - __IO uint32_t PDOR5; - stc_gpio_pdor5_field_t PDOR5_f; - }; - union { - __IO uint32_t PDOR6; - stc_gpio_pdor6_field_t PDOR6_f; - }; - union { - __IO uint32_t PDOR7; - stc_gpio_pdor7_field_t PDOR7_f; - }; - union { - __IO uint32_t PDOR8; - stc_gpio_pdor8_field_t PDOR8_f; - }; - uint8_t RESERVED48[20]; - union { - __IO uint32_t PDORE; - stc_gpio_pdore_field_t PDORE_f; - }; - uint8_t RESERVED49[196]; - union { - __IO uint32_t ADE; - stc_gpio_ade_field_t ADE_f; - }; - uint8_t RESERVED50[124]; - union { - __IO uint32_t SPSR; - stc_gpio_spsr_field_t SPSR_f; - }; - uint8_t RESERVED51[124]; - union { - __IO uint32_t EPFR00; - stc_gpio_epfr00_field_t EPFR00_f; - }; - union { - __IO uint32_t EPFR01; - stc_gpio_epfr01_field_t EPFR01_f; - }; - union { - __IO uint32_t EPFR02; - stc_gpio_epfr02_field_t EPFR02_f; - }; - union { - __IO uint32_t EPFR03; - stc_gpio_epfr03_field_t EPFR03_f; - }; - union { - __IO uint32_t EPFR04; - stc_gpio_epfr04_field_t EPFR04_f; - }; - union { - __IO uint32_t EPFR05; - stc_gpio_epfr05_field_t EPFR05_f; - }; - union { - __IO uint32_t EPFR06; - stc_gpio_epfr06_field_t EPFR06_f; - }; - union { - __IO uint32_t EPFR07; - stc_gpio_epfr07_field_t EPFR07_f; - }; - union { - __IO uint32_t EPFR08; - stc_gpio_epfr08_field_t EPFR08_f; - }; - union { - __IO uint32_t EPFR09; - stc_gpio_epfr09_field_t EPFR09_f; - }; - union { - __IO uint32_t EPFR10; - stc_gpio_epfr10_field_t EPFR10_f; - }; - union { - __IO uint32_t EPFR11; - stc_gpio_epfr11_field_t EPFR11_f; - }; - union { - __IO uint32_t EPFR12; - stc_gpio_epfr12_field_t EPFR12_f; - }; - union { - __IO uint32_t EPFR13; - stc_gpio_epfr13_field_t EPFR13_f; - }; - union { - __IO uint32_t EPFR14; - stc_gpio_epfr14_field_t EPFR14_f; - }; - union { - __IO uint32_t EPFR15; - stc_gpio_epfr15_field_t EPFR15_f; - }; - union { - __IO uint32_t EPFR16; - stc_gpio_epfr16_field_t EPFR16_f; - }; - union { - __IO uint32_t EPFR17; - stc_gpio_epfr17_field_t EPFR17_f; - }; - union { - __IO uint32_t EPFR18; - stc_gpio_epfr18_field_t EPFR18_f; - }; - __IO uint32_t EPFR19; - union { - __IO uint32_t EPFR20; - stc_gpio_epfr20_field_t EPFR20_f; - }; - uint8_t RESERVED72[172]; - union { - __IO uint32_t PZR0; - stc_gpio_pzr0_field_t PZR0_f; - }; - union { - __IO uint32_t PZR1; - stc_gpio_pzr1_field_t PZR1_f; - }; - union { - __IO uint32_t PZR2; - stc_gpio_pzr2_field_t PZR2_f; - }; - union { - __IO uint32_t PZR3; - stc_gpio_pzr3_field_t PZR3_f; - }; - union { - __IO uint32_t PZR4; - stc_gpio_pzr4_field_t PZR4_f; - }; - union { - __IO uint32_t PZR5; - stc_gpio_pzr5_field_t PZR5_f; - }; - union { - __IO uint32_t PZR6; - stc_gpio_pzr6_field_t PZR6_f; - }; - union { - __IO uint32_t PZR7; - stc_gpio_pzr7_field_t PZR7_f; - }; - union { - __IO uint32_t PZR8; - stc_gpio_pzr8_field_t PZR8_f; - }; - uint8_t RESERVED81[20]; - union { - __IO uint32_t PZRE; - stc_gpio_pzre_field_t PZRE_f; - }; -}FM4_GPIO_TypeDef; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* Low voltage detection registers */ -typedef struct -{ - union { - __IO uint8_t LVD_CTL; - stc_lvd_lvd_ctl_field_t LVD_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t LVD_STR; - stc_lvd_lvd_str_field_t LVD_STR_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t LVD_CLR; - stc_lvd_lvd_clr_field_t LVD_CLR_f; - }; - uint8_t RESERVED2[3]; - __IO uint32_t LVD_RLR; - union { - __IO uint8_t LVD_STR2; - stc_lvd_lvd_str2_field_t LVD_STR2_f; - }; -}FM4_LVD_TypeDef; - -/****************************************************************************** - * DS_MODULE - ******************************************************************************/ -/* Deep standby mode registers */ -typedef struct -{ - uint8_t RESERVED10[4]; - union { - __IO uint8_t RCK_CTL; - stc_ds_rck_ctl_field_t RCK_CTL_f; - }; - uint8_t RESERVED0[1787]; - union { - __IO uint8_t PMD_CTL; - stc_ds_pmd_ctl_field_t PMD_CTL_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t WRFSR; - stc_ds_wrfsr_field_t WRFSR_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint16_t WIFSR; - stc_ds_wifsr_field_t WIFSR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t WIER; - stc_ds_wier_field_t WIER_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint8_t WILVR; - stc_ds_wilvr_field_t WILVR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t DSRAMR; - stc_ds_dsramr_field_t DSRAMR_f; - }; - uint8_t RESERVED6[235]; - __IO uint8_t BUR01; - __IO uint8_t BUR02; - __IO uint8_t BUR03; - __IO uint8_t BUR04; - __IO uint8_t BUR05; - __IO uint8_t BUR06; - __IO uint8_t BUR07; - __IO uint8_t BUR08; - __IO uint8_t BUR09; - __IO uint8_t BUR10; - __IO uint8_t BUR11; - __IO uint8_t BUR12; - __IO uint8_t BUR13; - __IO uint8_t BUR14; - __IO uint8_t BUR15; - __IO uint8_t BUR16; -}FM4_DS_TypeDef; - -/****************************************************************************** - * USBCLK - ******************************************************************************/ -/* USB clock registers */ -/* -typedef struct -{ - union { - __IO uint8_t UCCR; - stc_usbclk_uccr_field_t UCCR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t UPCR1; - stc_usbclk_upcr1_field_t UPCR1_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t UPCR2; - stc_usbclk_upcr2_field_t UPCR2_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint8_t UPCR3; - stc_usbclk_upcr3_field_t UPCR3_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t UPCR4; - stc_usbclk_upcr4_field_t UPCR4_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t UP_STR; - stc_usbclk_up_str_field_t UP_STR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t UPINT_ENR; - stc_usbclk_upint_enr_field_t UPINT_ENR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t UPINT_CLR; - stc_usbclk_upint_clr_field_t UPINT_CLR_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint8_t UPINT_STR; - stc_usbclk_upint_str_field_t UPINT_STR_f; - }; - uint8_t RESERVED8[15]; - union { - __IO uint8_t USBEN; - stc_usbclk_usben_field_t USBEN_f; - }; -}FM4_USBCLK_TypeDef; -*/ - -/****************************************************************************** - * CANPRE_MODULE - ******************************************************************************/ -/* CAN prescaler register */ -typedef struct -{ - union { - __IO uint8_t CANPRE; - stc_canpre_canpre_field_t CANPRE_f; - }; -}FM4_CANPRE_TypeDef; - -/****************************************************************************** - * USBETHERNETCLK - ******************************************************************************/ -/* USB Ethernet clock registers */ -typedef struct -{ - union { - __IO uint8_t UCCR; - stc_usbethernetclk_uccr_field_t UCCR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t UPCR1; - stc_usbethernetclk_upcr1_field_t UPCR1_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t UPCR2; - stc_usbethernetclk_upcr2_field_t UPCR2_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint8_t UPCR3; - stc_usbethernetclk_upcr3_field_t UPCR3_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t UPCR4; - stc_usbethernetclk_upcr4_field_t UPCR4_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t UP_STR; - stc_usbethernetclk_up_str_field_t UP_STR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t UPINT_ENR; - stc_usbethernetclk_upint_enr_field_t UPINT_ENR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t UPINT_CLR; - stc_usbethernetclk_upint_clr_field_t UPINT_CLR_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint8_t UPINT_STR; - stc_usbethernetclk_upint_str_field_t UPINT_STR_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t UPCR5; - stc_usbethernetclk_upcr5_field_t UPCR5_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t UPCR6; - stc_usbethernetclk_upcr6_field_t UPCR6_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t UPCR7; - stc_usbethernetclk_upcr7_field_t UPCR7_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t USBEN0; - stc_usbethernetclk_usben0_field_t USBEN0_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint8_t USBEN1; - stc_usbethernetclk_usben1_field_t USBEN1_f; - }; -}FM4_USBETHERNETCLK_TypeDef; - -/****************************************************************************** - * MFS_MODULE - ******************************************************************************/ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs_scr_field_t SCR_f; - __IO uint8_t IBCR; - stc_mfs_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs_escr_field_t ESCR_f; - __IO uint8_t IBSR; - stc_mfs_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint32_t RDR32; - __IO uint32_t TDR32; - struct { - union { - __IO uint16_t RDR; - stc_mfs_uart_rdr_field_t RDR_f; - }; - uint8_t RESERVED2[2]; - }; - struct { - union { - __IO uint16_t TDR; - stc_mfs_uart_tdr_field_t TDR_f; - }; - uint8_t RESERVED3[2]; - }; - }; - union { - union { - __IO uint16_t BGR; - stc_mfs_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - __IO uint8_t ISBA; - stc_mfs_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs_i2c_ismk_field_t ISMK_f; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t FCR; - stc_mfs_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs_fbyte2_field_t FBYTE2_f; - }; - }; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t SCSTR10; - stc_mfs_csio_scstr10_field_t SCSTR10_f; - struct { - union { - __IO uint8_t SCSTR0; - stc_mfs_csio_scstr0_field_t SCSTR0_f; - __IO uint8_t NFCR; - stc_mfs_i2c_nfcr_field_t NFCR_f; - }; - union { - __IO uint8_t SCSTR1; - stc_mfs_csio_scstr1_field_t SCSTR1_f; - __IO uint8_t EIBCR; - stc_mfs_i2c_eibcr_field_t EIBCR_f; - }; - }; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t SCSTR32; - stc_mfs_csio_scstr32_field_t SCSTR32_f; - struct { - union { - __IO uint8_t SCSTR2; - stc_mfs_csio_scstr2_field_t SCSTR2_f; - }; - union { - __IO uint8_t SCSTR3; - stc_mfs_csio_scstr3_field_t SCSTR3_f; - }; - }; - }; - uint8_t RESERVED9[2]; - union { - __IO uint16_t SACSR; - stc_mfs_csio_sacsr_field_t SACSR_f; - struct { - union { - __IO uint8_t SACSR0; - stc_mfs_csio_sacsr0_field_t SACSR0_f; - }; - union { - __IO uint8_t SACSR1; - stc_mfs_csio_sacsr1_field_t SACSR1_f; - }; - }; - }; - uint8_t RESERVED10[2]; - union { - __IO uint16_t STMR; - stc_mfs_csio_stmr_field_t STMR_f; - struct { - union { - __IO uint8_t STMR0; - stc_mfs_csio_stmr0_field_t STMR0_f; - }; - union { - __IO uint8_t STMR1; - stc_mfs_csio_stmr1_field_t STMR1_f; - }; - }; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t STMCR; - stc_mfs_csio_stmcr_field_t STMCR_f; - struct { - union { - __IO uint8_t STMCR0; - stc_mfs_csio_stmcr0_field_t STMCR0_f; - }; - union { - __IO uint8_t STMCR1; - stc_mfs_csio_stmcr1_field_t STMCR1_f; - }; - }; - }; - uint8_t RESERVED12[2]; - union { - __IO uint16_t SCSCR; - stc_mfs_csio_scscr_field_t SCSCR_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint16_t SCSFR; - struct { - __IO uint8_t SCSFR0; - __IO uint8_t SCSFR1; - }; - }; - uint8_t RESERVED14[2]; - __IO uint8_t SCSFR2; - uint8_t RESERVED15[3]; - union { - __IO uint16_t TBYTE10; - struct { - __IO uint8_t TBYTE0; - __IO uint8_t TBYTE1; - }; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t TBYTE32; - struct { - __IO uint8_t TBYTE2; - __IO uint8_t TBYTE3; - }; - }; -}FM4_MFS_TypeDef; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC registers */ -typedef struct -{ - union { - __IO uint8_t CRCCR; - stc_crc_crccr_field_t CRCCR_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t CRCINIT; - union { - __IO uint32_t CRCIN; - struct { - union { - __IO uint16_t CRCINL; - struct { - __IO uint8_t CRCINLL; - __IO uint8_t CRCINLH; - }; - }; - union { - __IO uint16_t CRCINH; - struct { - __IO uint8_t CRCINHL; - __IO uint8_t CRCINHH; - }; - }; - }; - }; - __IO uint32_t CRCR; -}FM4_CRC_TypeDef; - -/****************************************************************************** - * DSTC_MODULE - ******************************************************************************/ -/* DSTC registers */ -typedef struct -{ - __IO uint32_t DESTP; - union { - __IO uint32_t HWDESP; - stc_dstc_hwdesp_field_t HWDESP_f; - }; - __IO uint8_t CMD; - union { - __IO uint8_t CFG; - stc_dstc_cfg_field_t CFG_f; - }; - union { - __IO uint16_t SWTR; - stc_dstc_swtr_field_t SWTR_f; - }; - union { - __IO uint32_t MONERS; - stc_dstc_moners_field_t MONERS_f; - }; - __IO uint32_t DREQENB0; - __IO uint32_t DREQENB1; - __IO uint32_t DREQENB2; - __IO uint32_t DREQENB3; - __IO uint32_t DREQENB4; - __IO uint32_t DREQENB5; - __IO uint32_t DREQENB6; - __IO uint32_t DREQENB7; - __IO uint32_t HWINT0; - __IO uint32_t HWINT1; - __IO uint32_t HWINT2; - __IO uint32_t HWINT3; - __IO uint32_t HWINT4; - __IO uint32_t HWINT5; - __IO uint32_t HWINT6; - __IO uint32_t HWINT7; - __IO uint32_t HWINTCLR0; - __IO uint32_t HWINTCLR1; - __IO uint32_t HWINTCLR2; - __IO uint32_t HWINTCLR3; - __IO uint32_t HWINTCLR4; - __IO uint32_t HWINTCLR5; - __IO uint32_t HWINTCLR6; - __IO uint32_t HWINTCLR7; - __IO uint32_t DQMSK0; - __IO uint32_t DQMSK1; - __IO uint32_t DQMSK2; - __IO uint32_t DQMSK3; - __IO uint32_t DQMSK4; - __IO uint32_t DQMSK5; - __IO uint32_t DQMSK6; - __IO uint32_t DQMSK7; - __IO uint32_t DQMSKCLR0; - __IO uint32_t DQMSKCLR1; - __IO uint32_t DQMSKCLR2; - __IO uint32_t DQMSKCLR3; - __IO uint32_t DQMSKCLR4; - __IO uint32_t DQMSKCLR5; - __IO uint32_t DQMSKCLR6; - __IO uint32_t DQMSKCLR7; -}FM4_DSTC_TypeDef; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* Watch counter registers */ -typedef struct -{ - union { - __IO uint8_t WCRD; - stc_wc_wcrd_field_t WCRD_f; - }; - union { - __IO uint8_t WCRL; - stc_wc_wcrl_field_t WCRL_f; - }; - union { - __IO uint8_t WCCR; - stc_wc_wccr_field_t WCCR_f; - }; - uint8_t RESERVED0[13]; - union { - __IO uint16_t CLK_SEL; - stc_wc_clk_sel_field_t CLK_SEL_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t CLK_EN; - stc_wc_clk_en_field_t CLK_EN_f; - }; -}FM4_WC_TypeDef; - -/****************************************************************************** - * RTC_MODULE - ******************************************************************************/ -/* Real time clock registers */ -typedef struct -{ - union { - __IO uint8_t WTCR10; - stc_rtc_wtcr10_field_t WTCR10_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t WTCR11; - stc_rtc_wtcr11_field_t WTCR11_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint8_t WTCR12; - stc_rtc_wtcr12_field_t WTCR12_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t WTCR13; - stc_rtc_wtcr13_field_t WTCR13_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t WTCR20; - stc_rtc_wtcr20_field_t WTCR20_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t WTCR21; - stc_rtc_wtcr21_field_t WTCR21_f; - }; - uint8_t RESERVED6[3]; - __IO uint8_t WTCR22; - uint8_t RESERVED7[3]; - union { - __IO uint8_t WTSR; - stc_rtc_wtsr_field_t WTSR_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t WTMIR; - stc_rtc_wtmir_field_t WTMIR_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t WTHR; - stc_rtc_wthr_field_t WTHR_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t WTDR; - stc_rtc_wtdr_field_t WTDR_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t WTDW; - stc_rtc_wtdw_field_t WTDW_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint8_t WTMOR; - stc_rtc_wtmor_field_t WTMOR_f; - }; - uint8_t RESERVED13[3]; - union { - __IO uint8_t WTYR; - stc_rtc_wtyr_field_t WTYR_f; - }; - uint8_t RESERVED14[3]; - union { - __IO uint8_t ALMIR; - stc_rtc_almir_field_t ALMIR_f; - }; - uint8_t RESERVED15[3]; - union { - __IO uint8_t ALHR; - stc_rtc_alhr_field_t ALHR_f; - }; - uint8_t RESERVED16[3]; - union { - __IO uint8_t ALDR; - stc_rtc_aldr_field_t ALDR_f; - }; - uint8_t RESERVED17[3]; - union { - __IO uint8_t ALMOR; - stc_rtc_almor_field_t ALMOR_f; - }; - uint8_t RESERVED18[3]; - union { - __IO uint8_t ALYR; - stc_rtc_alyr_field_t ALYR_f; - }; - uint8_t RESERVED19[3]; - union { - __IO uint8_t WTTR0; - stc_rtc_wttr0_field_t WTTR0_f; - }; - uint8_t RESERVED20[3]; - union { - __IO uint8_t WTTR1; - stc_rtc_wttr1_field_t WTTR1_f; - }; - uint8_t RESERVED21[3]; - union { - __IO uint8_t WTTR2; - stc_rtc_wttr2_field_t WTTR2_f; - }; - uint8_t RESERVED22[3]; - __IO uint8_t WTCAL0; - uint8_t RESERVED23[3]; - union { - __IO uint8_t WTCAL1; - stc_rtc_wtcal1_field_t WTCAL1_f; - }; - uint8_t RESERVED24[3]; - union { - __IO uint8_t WTCALEN; - stc_rtc_wtcalen_field_t WTCALEN_f; - }; - uint8_t RESERVED25[3]; - union { - __IO uint8_t WTDIV; - stc_rtc_wtdiv_field_t WTDIV_f; - }; - uint8_t RESERVED26[3]; - union { - __IO uint8_t WTDIVEN; - stc_rtc_wtdiven_field_t WTDIVEN_f; - }; - uint8_t RESERVED27[3]; - union { - __IO uint8_t WTCALPRD; - stc_rtc_wtcalprd_field_t WTCALPRD_f; - }; - uint8_t RESERVED28[3]; - union { - __IO uint8_t WTCOSEL; - stc_rtc_wtcosel_field_t WTCOSEL_f; - }; - uint8_t RESERVED29[3]; - union { - __IO uint8_t VB_CLKDIV; - stc_rtc_vb_clkdiv_field_t VB_CLKDIV_f; - }; - uint8_t RESERVED30[3]; - union { - __IO uint8_t WTOSCCNT; - stc_rtc_wtosccnt_field_t WTOSCCNT_f; - }; - uint8_t RESERVED31[3]; - __IO uint8_t CCS; - uint8_t RESERVED32[3]; - __IO uint8_t CCB; - uint8_t RESERVED33[3]; - /* Don't exist on peripheral manual */ - __IO uint8_t TRIM; - uint8_t RESERVED34[3]; - union { - __IO uint8_t BOOST; - stc_rtc_boost_field_t BOOST_f; - }; - uint8_t RESERVED35[3]; - union { - __IO uint8_t EWKUP; - stc_rtc_ewkup_field_t EWKUP_f; - }; - uint8_t RESERVED36[3]; - union { - __IO uint8_t VDET; - stc_rtc_vdet_field_t VDET_f; - }; - uint8_t RESERVED37[3]; - /* Don't exist on peripheral manual */ - __IO uint8_t FDET; - uint8_t RESERVED38[3]; - union { - __IO uint8_t HIBRST; - stc_rtc_hibrst_field_t HIBRST_f; - }; - uint8_t RESERVED39[3]; - union { - __IO uint8_t VBPFR; - stc_rtc_vbpfr_field_t VBPFR_f; - }; - uint8_t RESERVED40[3]; - union { - __IO uint8_t VBPCR; - stc_rtc_vbpcr_field_t VBPCR_f; - }; - uint8_t RESERVED41[3]; - union { - __IO uint8_t VBDDR; - stc_rtc_vbddr_field_t VBDDR_f; - }; - uint8_t RESERVED42[3]; - union { - __IO uint8_t VBDIR; - stc_rtc_vbdir_field_t VBDIR_f; - }; - uint8_t RESERVED43[3]; - union { - __IO uint8_t VBDOR; - stc_rtc_vbdor_field_t VBDOR_f; - }; - uint8_t RESERVED44[3]; - union { - __IO uint8_t VBPZR; - stc_rtc_vbpzr_field_t VBPZR_f; - }; - uint8_t RESERVED45[87]; - union { - __IO uint32_t BREG00_03; - struct { - __IO uint16_t BREG00_01; - __IO uint16_t BREG02_03; - }; - struct { - __IO uint8_t BREG00; - __IO uint8_t BREG01; - __IO uint8_t BREG02; - __IO uint8_t BREG03; - }; - }; - union { - __IO uint32_t BREG04_07; - struct { - __IO uint16_t BREG04_05; - __IO uint16_t BREG06_07; - }; - struct { - __IO uint8_t BREG04; - __IO uint8_t BREG05; - __IO uint8_t BREG06; - __IO uint8_t BREG07; - }; - }; - union { - __IO uint32_t BREG08_0B; - struct { - __IO uint16_t BREG08_09; - __IO uint16_t BREG0A_0B; - }; - struct { - __IO uint8_t BREG08; - __IO uint8_t BREG09; - __IO uint8_t BREG0A; - __IO uint8_t BREG0B; - }; - }; - union { - __IO uint32_t BREG0C_0F; - struct { - __IO uint16_t BREG0C_0D; - __IO uint16_t BREG0E_0F; - }; - struct { - __IO uint8_t BREG0C; - __IO uint8_t BREG0D; - __IO uint8_t BREG0E; - __IO uint8_t BREG0F; - }; - }; - union { - __IO uint32_t BREG10_13; - struct { - __IO uint16_t BREG10_11; - __IO uint16_t BREG12_13; - }; - struct { - __IO uint8_t BREG10; - __IO uint8_t BREG11; - __IO uint8_t BREG12; - __IO uint8_t BREG13; - }; - }; - union { - __IO uint32_t BREG14_17; - struct { - __IO uint16_t BREG14_15; - __IO uint16_t BREG16_17; - }; - struct { - __IO uint8_t BREG14; - __IO uint8_t BREG15; - __IO uint8_t BREG16; - __IO uint8_t BREG17; - }; - }; - union { - __IO uint32_t BREG18_1B; - struct { - __IO uint16_t BREG18_19; - __IO uint16_t BREG1A_1B; - }; - struct { - __IO uint8_t BREG18; - __IO uint8_t BREG19; - __IO uint8_t BREG1A; - __IO uint8_t BREG1B; - }; - }; - union { - __IO uint32_t BREG1C_1F; - struct { - __IO uint16_t BREG1C_1D; - __IO uint16_t BREG1E_1F; - }; - struct { - __IO uint8_t BREG1C; - __IO uint8_t BREG1D; - __IO uint8_t BREG1E; - __IO uint8_t BREG1F; - }; - }; - union { - __IO uint32_t BREG20_23; - struct { - __IO uint16_t BREG20_21; - __IO uint16_t BREG22_23; - }; - struct { - __IO uint8_t BREG20; - __IO uint8_t BREG21; - __IO uint8_t BREG22; - __IO uint8_t BREG23; - }; - }; - union { - __IO uint32_t BREG24_27; - struct { - __IO uint16_t BREG24_25; - __IO uint16_t BREG26_27; - }; - struct { - __IO uint8_t BREG24; - __IO uint8_t BREG25; - __IO uint8_t BREG26; - __IO uint8_t BREG27; - }; - }; - union { - __IO uint32_t BREG28_2B; - struct { - __IO uint16_t BREG28_29; - __IO uint16_t BREG2A_2B; - }; - struct { - __IO uint8_t BREG28; - __IO uint8_t BREG29; - __IO uint8_t BREG2A; - __IO uint8_t BREG2B; - }; - }; - union { - __IO uint32_t BREG2C_2F; - struct { - __IO uint16_t BREG2C_2D; - __IO uint16_t BREG2E_2F; - }; - struct { - __IO uint8_t BREG2C; - __IO uint8_t BREG2D; - __IO uint8_t BREG2E; - __IO uint8_t BREG2F; - }; - }; - union { - __IO uint32_t BREG30_33; - struct { - __IO uint16_t BREG30_31; - __IO uint16_t BREG32_33; - }; - struct { - __IO uint8_t BREG30; - __IO uint8_t BREG31; - __IO uint8_t BREG32; - __IO uint8_t BREG33; - }; - }; - union { - __IO uint32_t BREG34_37; - struct { - __IO uint16_t BREG34_35; - __IO uint16_t BREG36_37; - }; - struct { - __IO uint8_t BREG34; - __IO uint8_t BREG35; - __IO uint8_t BREG36; - __IO uint8_t BREG37; - }; - }; - union { - __IO uint32_t BREG38_3B; - struct { - __IO uint16_t BREG38_39; - __IO uint16_t BREG3A_3B; - }; - struct { - __IO uint8_t BREG38; - __IO uint8_t BREG39; - __IO uint8_t BREG3A; - __IO uint8_t BREG3B; - }; - }; - union { - __IO uint32_t BREG3C_3F; - struct { - __IO uint16_t BREG3C_3D; - __IO uint16_t BREG3E_3F; - }; - struct { - __IO uint8_t BREG3C; - __IO uint8_t BREG3D; - __IO uint8_t BREG3E; - __IO uint8_t BREG3F; - }; - }; - union { - __IO uint32_t BREG40_43; - struct { - __IO uint16_t BREG40_41; - __IO uint16_t BREG42_43; - }; - struct { - __IO uint8_t BREG40; - __IO uint8_t BREG41; - __IO uint8_t BREG42; - __IO uint8_t BREG43; - }; - }; - union { - __IO uint32_t BREG44_47; - struct { - __IO uint16_t BREG44_45; - __IO uint16_t BREG46_47; - }; - struct { - __IO uint8_t BREG44; - __IO uint8_t BREG45; - __IO uint8_t BREG46; - __IO uint8_t BREG47; - }; - }; - union { - __IO uint32_t BREG48_4B; - struct { - __IO uint16_t BREG48_49; - __IO uint16_t BREG4A_4B; - }; - struct { - __IO uint8_t BREG48; - __IO uint8_t BREG49; - __IO uint8_t BREG4A; - __IO uint8_t BREG4B; - }; - }; - union { - __IO uint32_t BREG4C_4F; - struct { - __IO uint16_t BREG4C_4D; - __IO uint16_t BREG4E_4F; - }; - struct { - __IO uint8_t BREG4C; - __IO uint8_t BREG4D; - __IO uint8_t BREG4E; - __IO uint8_t BREG4F; - }; - }; - union { - __IO uint32_t BREG50_53; - struct { - __IO uint16_t BREG50_51; - __IO uint16_t BREG52_53; - }; - struct { - __IO uint8_t BREG50; - __IO uint8_t BREG51; - __IO uint8_t BREG52; - __IO uint8_t BREG53; - }; - }; - union { - __IO uint32_t BREG54_57; - struct { - __IO uint16_t BREG54_55; - __IO uint16_t BREG56_57; - }; - struct { - __IO uint8_t BREG54; - __IO uint8_t BREG55; - __IO uint8_t BREG56; - __IO uint8_t BREG57; - }; - }; - union { - __IO uint32_t BREG58_5B; - struct { - __IO uint16_t BREG58_59; - __IO uint16_t BREG5A_5B; - }; - struct { - __IO uint8_t BREG58; - __IO uint8_t BREG59; - __IO uint8_t BREG5A; - __IO uint8_t BREG5B; - }; - }; - union { - __IO uint32_t BREG5C_5F; - struct { - __IO uint16_t BREG5C_5D; - __IO uint16_t BREG5E_5F; - }; - struct { - __IO uint8_t BREG5C; - __IO uint8_t BREG5D; - __IO uint8_t BREG5E; - __IO uint8_t BREG5F; - }; - }; - union { - __IO uint32_t BREG60_63; - struct { - __IO uint16_t BREG60_61; - __IO uint16_t BREG62_63; - }; - struct { - __IO uint8_t BREG60; - __IO uint8_t BREG61; - __IO uint8_t BREG62; - __IO uint8_t BREG63; - }; - }; - union { - __IO uint32_t BREG64_67; - struct { - __IO uint16_t BREG64_65; - __IO uint16_t BREG66_67; - }; - struct { - __IO uint8_t BREG64; - __IO uint8_t BREG65; - __IO uint8_t BREG66; - __IO uint8_t BREG67; - }; - }; - union { - __IO uint32_t BREG68_6B; - struct { - __IO uint16_t BREG68_69; - __IO uint16_t BREG6A_6B; - }; - struct { - __IO uint8_t BREG68; - __IO uint8_t BREG69; - __IO uint8_t BREG6A; - __IO uint8_t BREG6B; - }; - }; - union { - __IO uint32_t BREG6C_6F; - struct { - __IO uint16_t BREG6C_6D; - __IO uint16_t BREG6E_6F; - }; - struct { - __IO uint8_t BREG6C; - __IO uint8_t BREG6D; - __IO uint8_t BREG6E; - __IO uint8_t BREG6F; - }; - }; - union { - __IO uint32_t BREG70_73; - struct { - __IO uint16_t BREG70_71; - __IO uint16_t BREG72_73; - }; - struct { - __IO uint8_t BREG70; - __IO uint8_t BREG71; - __IO uint8_t BREG72; - __IO uint8_t BREG73; - }; - }; - union { - __IO uint32_t BREG74_77; - struct { - __IO uint16_t BREG74_75; - __IO uint16_t BREG76_77; - }; - struct { - __IO uint8_t BREG74; - __IO uint8_t BREG75; - __IO uint8_t BREG76; - __IO uint8_t BREG77; - }; - }; - union { - __IO uint32_t BREG78_7B; - struct { - __IO uint16_t BREG78_79; - __IO uint16_t BREG7A_7B; - }; - struct { - __IO uint8_t BREG78; - __IO uint8_t BREG79; - __IO uint8_t BREG7A; - __IO uint8_t BREG7B; - }; - }; - union { - __IO uint32_t BREG7C_7F; - struct { - __IO uint16_t BREG7C_7D; - __IO uint16_t BREG7E_7F; - }; - struct { - __IO uint8_t BREG7C; - __IO uint8_t BREG7D; - __IO uint8_t BREG7E; - __IO uint8_t BREG7F; - }; - }; -}FM4_RTC_TypeDef; - -/****************************************************************************** - * LCR_MODULE - ******************************************************************************/ -/* Low-speed CR prescaler registers */ -typedef struct -{ - union { - __IO uint8_t LCR_PRSLD; - stc_lcr_lcr_prsld_field_t LCR_PRSLD_f; - }; -}FM4_LCR_TypeDef; - -/****************************************************************************** - * CLK_GATING_MODULE - ******************************************************************************/ -/* CLK_GATING registers */ -typedef struct -{ - union { - __IO uint32_t CKEN0; - stc_clk_gating_cken0_field_t CKEN0_f; - }; - union { - __IO uint32_t MRST0; - stc_clk_gating_mrst0_field_t MRST0_f; - }; - uint8_t RESERVED1[8]; - union { - __IO uint32_t CKEN1; - stc_clk_gating_cken1_field_t CKEN1_f; - }; - union { - __IO uint32_t MRST1; - stc_clk_gating_mrst1_field_t MRST1_f; - }; - uint8_t RESERVED3[8]; - union { - __IO uint32_t CKEN2; - stc_clk_gating_cken2_field_t CKEN2_f; - }; - union { - __IO uint32_t MRST2; - stc_clk_gating_mrst2_field_t MRST2_f; - }; -}FM4_CLK_GATING_TypeDef; - -/****************************************************************************** - * PLL_CONTROL_MODULE - ******************************************************************************/ -/* PLL_CONTROL registers */ -typedef struct -{ - __IO uint32_t SSCTL1; - __IO uint32_t SSCTL2; -}FM4_PLL_CONTROL_TypeDef; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* External bus interface registers */ -typedef struct -{ - union { - __IO uint32_t MODE0; - stc_exbus_mode_field_t MODE0_f; - }; - union { - __IO uint32_t MODE1; - stc_exbus_mode_field_t MODE1_f; - }; - union { - __IO uint32_t MODE2; - stc_exbus_mode_field_t MODE2_f; - }; - union { - __IO uint32_t MODE3; - stc_exbus_mode_field_t MODE3_f; - }; - union { - __IO uint32_t MODE4; - stc_exbus_mode_field_t MODE4_f; - }; - union { - __IO uint32_t MODE5; - stc_exbus_mode_field_t MODE5_f; - }; - union { - __IO uint32_t MODE6; - stc_exbus_mode_field_t MODE6_f; - }; - union { - __IO uint32_t MODE7; - stc_exbus_mode_field_t MODE7_f; - }; - union { - __IO uint32_t TIM0; - stc_exbus_tim_field_t TIM0_f; - }; - __IO uint32_t TIM1; - union { - __IO uint32_t TIM2; - stc_exbus_tim_field_t TIM2_f; - }; - union { - __IO uint32_t TIM3; - stc_exbus_tim_field_t TIM3_f; - }; - union { - __IO uint32_t TIM4; - stc_exbus_tim_field_t TIM4_f; - }; - union { - __IO uint32_t TIM5; - stc_exbus_tim_field_t TIM5_f; - }; - union { - __IO uint32_t TIM6; - stc_exbus_tim_field_t TIM6_f; - }; - union { - __IO uint32_t TIM7; - stc_exbus_tim_field_t TIM7_f; - }; - union { - __IO uint32_t AREA0; - stc_exbus_area_field_t AREA0_f; - }; - union { - __IO uint32_t AREA1; - stc_exbus_area_field_t AREA1_f; - }; - union { - __IO uint32_t AREA2; - stc_exbus_area_field_t AREA2_f; - }; - union { - __IO uint32_t AREA3; - stc_exbus_area_field_t AREA3_f; - }; - union { - __IO uint32_t AREA4; - stc_exbus_area_field_t AREA4_f; - }; - union { - __IO uint32_t AREA5; - stc_exbus_area_field_t AREA5_f; - }; - union { - __IO uint32_t AREA6; - stc_exbus_area_field_t AREA6_f; - }; - union { - __IO uint32_t AREA7; - stc_exbus_area_field_t AREA7_f; - }; - union { - __IO uint32_t ATIM0; - stc_exbus_atim_field_t ATIM0_f; - }; - union { - __IO uint32_t ATIM1; - stc_exbus_atim_field_t ATIM1_f; - }; - union { - __IO uint32_t ATIM2; - stc_exbus_atim_field_t ATIM2_f; - }; - union { - __IO uint32_t ATIM3; - stc_exbus_atim_field_t ATIM3_f; - }; - union { - __IO uint32_t ATIM4; - stc_exbus_atim_field_t ATIM4_f; - }; - union { - __IO uint32_t ATIM5; - stc_exbus_atim_field_t ATIM5_f; - }; - union { - __IO uint32_t ATIM6; - stc_exbus_atim_field_t ATIM6_f; - }; - union { - __IO uint32_t ATIM7; - stc_exbus_atim_field_t ATIM7_f; - }; - uint8_t RESERVED1[128]; - union { - __IO uint32_t SDMODE; - stc_exbus_sdmode_field_t SDMODE_f; - }; - union { - __IO uint32_t REFTIM; - stc_exbus_reftim_field_t REFTIM_f; - }; - union { - __IO uint32_t PWRDWN; - stc_exbus_pwrdwn_field_t PWRDWN_f; - }; - union { - __IO uint32_t SDTIM; - stc_exbus_sdtim_field_t SDTIM_f; - }; - union { - __IO uint32_t SDCMD; - stc_exbus_sdcmd_field_t SDCMD_f; - }; - uint8_t RESERVED2[236]; - union { - __IO uint32_t MEMCERR; - stc_exbus_memcerr_field_t MEMCERR_f; - }; - uint8_t RESERVED3[252]; - union { - __IO uint32_t DCLKR; - stc_exbus_dclkr_field_t DCLKR_f; - }; - union { - __IO uint32_t EST; - stc_exbus_est_field_t EST_f; - }; - union { - __IO uint32_t WEAD; - stc_exbus_wead_field_t WEAD_f; - }; - union { - __IO uint32_t ESCLR; - stc_exbus_esclr_field_t ESCLR_f; - }; - union { - __IO uint32_t AMODE; - stc_exbus_amode_field_t AMODE_f; - }; -}FM4_EXBUS_TypeDef; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB channel 0 registers */ -typedef struct -{ - union { - union { - __IO uint16_t HCNT; - stc_usb_hcnt_field_t HCNT_f; - }; - struct { - union { - __IO uint8_t HCNT0; - stc_usb_hcnt0_field_t HCNT0_f; - }; - union { - __IO uint8_t HCNT1; - stc_usb_hcnt1_field_t HCNT1_f; - }; - }; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t HIRQ; - stc_usb_hirq_field_t HIRQ_f; - }; - union { - __IO uint8_t HERR; - stc_usb_herr_field_t HERR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t HSTATE; - stc_usb_hstate_field_t HSTATE_f; - }; - union { - __IO uint8_t HFCOMP; - stc_usb_hfcomp_field_t HFCOMP_f; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t HRTIMER; - stc_usb_hrtimer_field_t HRTIMER_f; - }; - struct { - union { - __IO uint8_t HRTIMER0; - stc_usb_hrtimer0_field_t HRTIMER0_f; - }; - union { - __IO uint8_t HRTIMER1; - stc_usb_hrtimer1_field_t HRTIMER1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t HRTIMER2; - stc_usb_hrtimer2_field_t HRTIMER2_f; - }; - union { - __IO uint8_t HADR; - stc_usb_hadr_field_t HADR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t HEOF; - stc_usb_heof_field_t HEOF_f; - }; - struct { - union { - __IO uint8_t HEOF0; - stc_usb_heof0_field_t HEOF0_f; - }; - union { - __IO uint8_t HEOF1; - stc_usb_heof1_field_t HEOF1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t HFRAME; - stc_usb_hframe_field_t HFRAME_f; - }; - struct { - union { - __IO uint8_t HFRAME0; - stc_usb_hframe0_field_t HFRAME0_f; - }; - union { - __IO uint8_t HFRAME1; - stc_usb_hframe1_field_t HFRAME1_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t HTOKEN; - stc_usb_htoken_field_t HTOKEN_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t UDCC; - stc_usb_udcc_field_t UDCC_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t EP0C; - stc_usb_ep0c_field_t EP0C_f; - }; - uint8_t RESERVED9[2]; - union { - __IO uint16_t EP1C; - stc_usb_ep1c_field_t EP1C_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint16_t EP2C; - stc_usb_ep2c_field_t EP2C_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t EP3C; - stc_usb_ep3c_field_t EP3C_f; - }; - uint8_t RESERVED12[2]; - union { - __IO uint16_t EP4C; - stc_usb_ep4c_field_t EP4C_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint16_t EP5C; - stc_usb_ep5c_field_t EP5C_f; - }; - uint8_t RESERVED14[2]; - union { - __IO uint16_t TMSP; - stc_usb_tmsp_field_t TMSP_f; - }; - uint8_t RESERVED15[2]; - union { - __IO uint8_t UDCS; - stc_usb_udcs_field_t UDCS_f; - }; - union { - __IO uint8_t UDCIE; - stc_usb_udcie_field_t UDCIE_f; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t EP0IS; - stc_usb_ep0is_field_t EP0IS_f; - }; - uint8_t RESERVED17[2]; - union { - __IO uint16_t EP0OS; - stc_usb_ep0os_field_t EP0OS_f; - }; - uint8_t RESERVED18[2]; - union { - __IO uint16_t EP1S; - stc_usb_ep1s_field_t EP1S_f; - }; - uint8_t RESERVED19[2]; - union { - __IO uint16_t EP2S; - stc_usb_ep2s_field_t EP2S_f; - }; - uint8_t RESERVED20[2]; - __IO uint16_t EP3S; - uint8_t RESERVED21[2]; - union { - __IO uint16_t EP4S; - stc_usb_ep4s_field_t EP4S_f; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t EP5S; - stc_usb_ep5s_field_t EP5S_f; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t EP0DT; - struct { - __IO uint8_t EP0DTL; - __IO uint8_t EP0DTH; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t EP1DT; - struct { - __IO uint8_t EP1DTL; - __IO uint8_t EP1DTH; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint16_t EP2DT; - struct { - __IO uint8_t EP2DTL; - __IO uint8_t EP2DTH; - }; - }; - uint8_t RESERVED26[2]; - union { - __IO uint16_t EP3DT; - struct { - __IO uint8_t EP3DTL; - __IO uint8_t EP3DTH; - }; - }; - uint8_t RESERVED27[2]; - union { - __IO uint16_t EP4DT; - struct { - __IO uint8_t EP4DTL; - __IO uint8_t EP4DTH; - }; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t EP5DT; - struct { - __IO uint8_t EP5DTL; - __IO uint8_t EP5DTH; - }; - }; -}FM4_USB_TypeDef; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMA controller */ -typedef struct -{ - union { - __IO uint32_t DMACR; - stc_dmac_dmacr_field_t DMACR_f; - }; - uint8_t RESERVED0[12]; - union { - __IO uint32_t DMACA0; - stc_dmac_dmaca0_field_t DMACA0_f; - }; - union { - __IO uint32_t DMACB0; - stc_dmac_dmacb0_field_t DMACB0_f; - }; - __IO uint32_t DMACSA0; - __IO uint32_t DMACDA0; - union { - __IO uint32_t DMACA1; - stc_dmac_dmaca1_field_t DMACA1_f; - }; - union { - __IO uint32_t DMACB1; - stc_dmac_dmacb1_field_t DMACB1_f; - }; - __IO uint32_t DMACSA1; - __IO uint32_t DMACDA1; - union { - __IO uint32_t DMACA2; - stc_dmac_dmaca2_field_t DMACA2_f; - }; - union { - __IO uint32_t DMACB2; - stc_dmac_dmacb2_field_t DMACB2_f; - }; - __IO uint32_t DMACSA2; - __IO uint32_t DMACDA2; - union { - __IO uint32_t DMACA3; - stc_dmac_dmaca3_field_t DMACA3_f; - }; - union { - __IO uint32_t DMACB3; - stc_dmac_dmacb3_field_t DMACB3_f; - }; - __IO uint32_t DMACSA3; - __IO uint32_t DMACDA3; - union { - __IO uint32_t DMACA4; - stc_dmac_dmaca4_field_t DMACA4_f; - }; - union { - __IO uint32_t DMACB4; - stc_dmac_dmacb4_field_t DMACB4_f; - }; - __IO uint32_t DMACSA4; - __IO uint32_t DMACDA4; - union { - __IO uint32_t DMACA5; - stc_dmac_dmaca5_field_t DMACA5_f; - }; - union { - __IO uint32_t DMACB5; - stc_dmac_dmacb5_field_t DMACB5_f; - }; - __IO uint32_t DMACSA5; - __IO uint32_t DMACDA5; - union { - __IO uint32_t DMACA6; - stc_dmac_dmaca6_field_t DMACA6_f; - }; - union { - __IO uint32_t DMACB6; - stc_dmac_dmacb6_field_t DMACB6_f; - }; - __IO uint32_t DMACSA6; - __IO uint32_t DMACDA6; - union { - __IO uint32_t DMACA7; - stc_dmac_dmaca7_field_t DMACA7_f; - }; - union { - __IO uint32_t DMACB7; - stc_dmac_dmacb7_field_t DMACB7_f; - }; - __IO uint32_t DMACSA7; - __IO uint32_t DMACDA7; -}FM4_DMAC_TypeDef; - -/****************************************************************************** - * CAN_MODULE - ******************************************************************************/ -/* CAN channel 0 registers */ -typedef struct -{ - union { - __IO uint16_t CTRLR; - stc_can_ctrlr_field_t CTRLR_f; - }; - union { - __IO uint16_t STATR; - stc_can_statr_field_t STATR_f; - }; - union { - __IO uint16_t ERRCNT; - stc_can_errcnt_field_t ERRCNT_f; - }; - union { - __IO uint16_t BTR; - stc_can_btr_field_t BTR_f; - }; - union { - __IO uint16_t INTR; - stc_can_intr_field_t INTR_f; - }; - union { - __IO uint16_t TESTR; - stc_can_testr_field_t TESTR_f; - }; - union { - __IO uint16_t BRPER; - stc_can_brper_field_t BRPER_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint16_t IF1CREQ; - stc_can_if1creq_field_t IF1CREQ_f; - }; - union { - __IO uint16_t IF1CMSK; - stc_can_if1cmsk_field_t IF1CMSK_f; - }; - union { - union { - __IO uint32_t IF1MSK; - stc_can_if1msk_field_t IF1MSK_f; - }; - struct { - __IO uint16_t IF1MSK1; - union { - __IO uint16_t IF1MSK2; - stc_can_if1msk2_field_t IF1MSK2_f; - }; - }; - }; - union { - union { - __IO uint32_t IF1ARB; - stc_can_if1arb_field_t IF1ARB_f; - }; - struct { - __IO uint16_t IF1ARB1; - union { - __IO uint16_t IF1ARB2; - stc_can_if1arb2_field_t IF1ARB2_f; - }; - }; - }; - union { - __IO uint16_t IF1MCTR; - stc_can_if1mctr_field_t IF1MCTR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint32_t IF1DTA_L; - struct { - __IO uint16_t IF1DTA1_L; - __IO uint16_t IF1DTA2_L; - }; - }; - union { - __IO uint32_t IF1DTB_L; - struct { - __IO uint16_t IF1DTB1_L; - __IO uint16_t IF1DTB2_L; - }; - }; - uint8_t RESERVED2[8]; - union { - __IO uint32_t IF1DTA_B; - struct { - __IO uint16_t IF1DTA2_B; - __IO uint16_t IF1DTA1_B; - }; - }; - union { - __IO uint32_t IF1DTB_B; - struct { - __IO uint16_t IF1DTB2_B; - __IO uint16_t IF1DTB1_B; - }; - }; - uint8_t RESERVED3[8]; - union { - __IO uint16_t IF2CREQ; - stc_can_if2creq_field_t IF2CREQ_f; - }; - union { - __IO uint16_t IF2CMSK; - stc_can_if2cmsk_field_t IF2CMSK_f; - }; - union { - union { - __IO uint32_t IF2MSK; - stc_can_if2msk_field_t IF2MSK_f; - }; - struct { - __IO uint16_t IF2MSK1; - union { - __IO uint16_t IF2MSK2; - stc_can_if2msk2_field_t IF2MSK2_f; - }; - }; - }; - union { - __IO uint32_t IF2ARB; - struct { - __IO uint16_t IF2ARB1; - union { - __IO uint16_t IF2ARB2; - stc_can_if2arb2_field_t IF2ARB2_f; - }; - }; - }; - union { - __IO uint16_t IF2MCTR; - stc_can_if2mctr_field_t IF2MCTR_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint32_t IF2DTA_L; - struct { - __IO uint16_t IF2DTA1_L; - __IO uint16_t IF2DTA2_L; - }; - }; - union { - __IO uint32_t IF2DTB_L; - struct { - __IO uint16_t IF2DTB1_L; - __IO uint16_t IF2DTB2_L; - }; - }; - uint8_t RESERVED5[8]; - union { - __IO uint32_t IF2DTA_B; - struct { - __IO uint16_t IF2DTA2_B; - __IO uint16_t IF2DTA1_B; - }; - }; - union { - __IO uint32_t IF2DTB_B; - struct { - __IO uint16_t IF2DTB2_B; - __IO uint16_t IF2DTB1_B; - }; - }; - uint8_t RESERVED6[24]; - union { - union { - __IO uint32_t TREQR; - stc_can_treqr_field_t TREQR_f; - }; - struct { - union { - __IO uint16_t TREQR1; - stc_can_treqr1_field_t TREQR1_f; - }; - union { - __IO uint16_t TREQR2; - stc_can_treqr2_field_t TREQR2_f; - }; - }; - }; - uint8_t RESERVED7[12]; - union { - union { - __IO uint32_t NEWDT; - stc_can_newdt_field_t NEWDT_f; - }; - struct { - union { - __IO uint16_t NEWDT1; - stc_can_newdt1_field_t NEWDT1_f; - }; - __IO uint16_t NEWDT2; - }; - }; - uint8_t RESERVED8[12]; - union { - union { - __IO uint32_t INTPND; - stc_can_intpnd_field_t INTPND_f; - }; - struct { - union { - __IO uint16_t INTPND1; - stc_can_intpnd1_field_t INTPND1_f; - }; - union { - __IO uint16_t INTPND2; - stc_can_intpnd2_field_t INTPND2_f; - }; - }; - }; - uint8_t RESERVED9[12]; - union { - union { - __IO uint32_t MSGVAL; - stc_can_msgval_field_t MSGVAL_f; - }; - struct { - union { - __IO uint16_t MSGVAL1; - stc_can_msgval1_field_t MSGVAL1_f; - }; - union { - __IO uint16_t MSGVAL2; - stc_can_msgval2_field_t MSGVAL2_f; - }; - }; - }; -}FM4_CAN_TypeDef; - -/****************************************************************************** - * SDIF_MODULE - ******************************************************************************/ -/* SD interface registers */ - - -/****************************************************************************** - * Peripheral memory map - ******************************************************************************/ -#define FM4_FLASH_BASE (0x00000000UL) /* Flash Base */ -#define FM4_WORKFLASH_BASE (0x200C0000UL) /* Work Flash Base */ -#define FM4_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ -#define FM4_CM3_BASE (0xE0100000UL) /* CM3 Private */ - -#define FM4_WORKFLASH_IF_BASE (FM4_WORKFLASH_BASE + 0x20000UL) /* Work Flash interface registers */ -#define FM4_FLASH_IF_BASE (FM4_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ -#define FM4_UNIQUE_ID_BASE (FM4_PERIPH_BASE + 0x00200UL) /* Unique ID registers */ -#define FM4_ECC_CAPTURE_BASE (FM4_PERIPH_BASE + 0x00300UL) /* ECC Capture address registers */ -#define FM4_CRG_BASE (FM4_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ -#define FM4_HWWDT_BASE (FM4_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ -#define FM4_SWWDT_BASE (FM4_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ -#define FM4_DTIM_BASE (FM4_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ -#define FM4_MFT0_FRT_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Free Running Timer registers */ -#define FM4_MFT0_OCU_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ -#define FM4_MFT0_WFG_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define FM4_MFT0_ICU_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ -#define FM4_MFT0_ADCMP_BASE (FM4_PERIPH_BASE + 0x20100UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define FM4_MFT1_FRT_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Free Running Timer registers */ -#define FM4_MFT1_OCU_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ -#define FM4_MFT1_WFG_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define FM4_MFT1_ICU_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ -#define FM4_MFT1_ADCMP_BASE (FM4_PERIPH_BASE + 0x21100UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define FM4_MFT2_FRT_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Free Running Timer registers */ -#define FM4_MFT2_OCU_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Output Compare Unit registers */ -#define FM4_MFT2_WFG_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ -#define FM4_MFT2_ICU_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 Input Capture Unit registers */ -#define FM4_MFT2_ADCMP_BASE (FM4_PERIPH_BASE + 0x22100UL) /* Multifunction Timer unit 2 ADC Start Compare Unit registers */ -#define FM4_MFT_PPG_BASE (FM4_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ -#define FM4_BT0_PPG_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ -#define FM4_BT0_PWM_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ -#define FM4_BT0_RT_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ -#define FM4_BT0_PWC_BASE (FM4_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ -#define FM4_BT1_PPG_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ -#define FM4_BT1_PWM_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ -#define FM4_BT1_RT_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ -#define FM4_BT1_PWC_BASE (FM4_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ -#define FM4_BT2_PPG_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ -#define FM4_BT2_PWM_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ -#define FM4_BT2_RT_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ -#define FM4_BT2_PWC_BASE (FM4_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ -#define FM4_BT3_PPG_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ -#define FM4_BT3_PWM_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ -#define FM4_BT3_RT_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ -#define FM4_BT3_PWC_BASE (FM4_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ -#define FM4_BT4_PPG_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ -#define FM4_BT4_PWM_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ -#define FM4_BT4_RT_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ -#define FM4_BT4_PWC_BASE (FM4_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ -#define FM4_BT5_PPG_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ -#define FM4_BT5_PWM_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ -#define FM4_BT5_RT_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ -#define FM4_BT5_PWC_BASE (FM4_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ -#define FM4_BT6_PPG_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ -#define FM4_BT6_PWM_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ -#define FM4_BT6_RT_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ -#define FM4_BT6_PWC_BASE (FM4_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ -#define FM4_BT7_PPG_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ -#define FM4_BT7_PWM_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ -#define FM4_BT7_RT_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ -#define FM4_BT7_PWC_BASE (FM4_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ -#define FM4_BTIOSEL03_BASE (FM4_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ -#define FM4_BTIOSEL47_BASE (FM4_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ -#define FM4_BT8_PPG_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PPG registers */ -#define FM4_BT8_PWM_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWM registers */ -#define FM4_BT8_RT_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 RT registers */ -#define FM4_BT8_PWC_BASE (FM4_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWC registers */ -#define FM4_BT9_PPG_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PPG registers */ -#define FM4_BT9_PWM_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWM registers */ -#define FM4_BT9_RT_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 RT registers */ -#define FM4_BT9_PWC_BASE (FM4_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWC registers */ -#define FM4_BT10_PPG_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PPG registers */ -#define FM4_BT10_PWM_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWM registers */ -#define FM4_BT10_RT_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 RT registers */ -#define FM4_BT10_PWC_BASE (FM4_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWC registers */ -#define FM4_BT11_PPG_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PPG registers */ -#define FM4_BT11_PWM_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWM registers */ -#define FM4_BT11_RT_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 RT registers */ -#define FM4_BT11_PWC_BASE (FM4_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWC registers */ -#define FM4_BT12_PPG_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PPG registers */ -#define FM4_BT12_PWM_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWM registers */ -#define FM4_BT12_RT_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 RT registers */ -#define FM4_BT12_PWC_BASE (FM4_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWC registers */ -#define FM4_BT13_PPG_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PPG registers */ -#define FM4_BT13_PWM_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWM registers */ -#define FM4_BT13_RT_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 RT registers */ -#define FM4_BT13_PWC_BASE (FM4_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWC registers */ -#define FM4_BT14_PPG_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PPG registers */ -#define FM4_BT14_PWM_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWM registers */ -#define FM4_BT14_RT_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 RT registers */ -#define FM4_BT14_PWC_BASE (FM4_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWC registers */ -#define FM4_BT15_PPG_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PPG registers */ -#define FM4_BT15_PWM_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWM registers */ -#define FM4_BT15_RT_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 RT registers */ -#define FM4_BT15_PWC_BASE (FM4_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWC registers */ -#define FM4_BTIOSEL8B_BASE (FM4_PERIPH_BASE + 0x25500UL) /* Base Timer I/O selector channel 8 - channel 11 registers */ -#define FM4_BTIOSELCF_BASE (FM4_PERIPH_BASE + 0x25700UL) /* Base Timer I/O selector channel 12 - channel 15 registers */ -#define FM4_SBSSR_BASE (FM4_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ -#define FM4_QPRC0_BASE (FM4_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ -#define FM4_QPRC1_BASE (FM4_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ -#define FM4_QPRC2_BASE (FM4_PERIPH_BASE + 0x26080UL) /* Quad position and revolution counter channel 2 registers */ -#define FM4_QPRC3_BASE (FM4_PERIPH_BASE + 0x260C0UL) /* Quad position and revolution counter channel 3 registers */ -#define FM4_QPRC0_NF_BASE (FM4_PERIPH_BASE + 0x26100UL) /* Quad position and revolution counter channel 0 noise filter registers */ -#define FM4_QPRC1_NF_BASE (FM4_PERIPH_BASE + 0x26110UL) /* Quad position and revolution counter channel 0 noise filter registers */ -#define FM4_QPRC2_NF_BASE (FM4_PERIPH_BASE + 0x26120UL) /* Quad position and revolution counter channel 0 noise filter registers */ -#define FM4_QPRC3_NF_BASE (FM4_PERIPH_BASE + 0x26130UL) /* Quad position and revolution counter channel 0 noise filter registers */ -#define FM4_ADC0_BASE (FM4_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ -#define FM4_ADC1_BASE (FM4_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ -#define FM4_ADC2_BASE (FM4_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ -#define FM4_DAC0_BASE (FM4_PERIPH_BASE + 0x33000UL) /* 12-bit DAC uint 0 registers */ -#define FM4_DAC1_BASE (FM4_PERIPH_BASE + 0x33008UL) /* 12-bit DAC uint 1 registers */ -#define FM4_CRTRIM_BASE (FM4_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ -#define FM4_EXTI_BASE (FM4_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ -#define FM4_INTREQ_BASE (FM4_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ -#define FM4_IRQSEL_BASE (FM4_PERIPH_BASE + 0x31110UL) /* Interrupt Selector */ -#define FM4_GPIO_BASE (FM4_PERIPH_BASE + 0x6F000UL) /* General purpose I/O registers */ -#define FM4_LVD_BASE (FM4_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ -#define FM4_DS_BASE (FM4_PERIPH_BASE + 0x35100UL) /* Deep standby mode registers */ -#define FM4_USBCLK_BASE (FM4_PERIPH_BASE + 0x36000UL) /* USB clock registers */ -#define FM4_CANPRES_BASE (FM4_PERIPH_BASE + 0x37000UL) /* CAN prescaler register */ -#define FM4_MFS0_BASE (FM4_PERIPH_BASE + 0x38000UL) /* MFS channel 0 registers */ -#define FM4_MFS1_BASE (FM4_PERIPH_BASE + 0x38100UL) /* MFS channel 1 registers */ -#define FM4_MFS2_BASE (FM4_PERIPH_BASE + 0x38200UL) /* MFS channel 2 registers */ -#define FM4_MFS3_BASE (FM4_PERIPH_BASE + 0x38300UL) /* MFS channel 3 registers */ -#define FM4_MFS4_BASE (FM4_PERIPH_BASE + 0x38400UL) /* MFS channel 4 registers */ -#define FM4_MFS5_BASE (FM4_PERIPH_BASE + 0x38500UL) /* MFS channel 5 registers */ -#define FM4_MFS6_BASE (FM4_PERIPH_BASE + 0x38600UL) /* MFS channel 6 registers */ -#define FM4_MFS7_BASE (FM4_PERIPH_BASE + 0x38700UL) /* MFS channel 7 registers */ -#define FM4_MFS8_BASE (FM4_PERIPH_BASE + 0x38800UL) /* MFS channel 8 registers */ -#define FM4_MFS9_BASE (FM4_PERIPH_BASE + 0x38900UL) /* MFS channel 9 registers */ -#define FM4_MFS10_BASE (FM4_PERIPH_BASE + 0x38A00UL) /* MFS channel 10 registers */ -#define FM4_MFS11_BASE (FM4_PERIPH_BASE + 0x38B00UL) /* MFS channel 11 registers */ -#define FM4_MFS12_BASE (FM4_PERIPH_BASE + 0x38C00UL) /* MFS channel 12 registers */ -#define FM4_MFS13_BASE (FM4_PERIPH_BASE + 0x38D00UL) /* MFS channel 13 registers */ -#define FM4_MFS14_BASE (FM4_PERIPH_BASE + 0x38E00UL) /* MFS channel 14 registers */ -#define FM4_MFS15_BASE (FM4_PERIPH_BASE + 0x38F00UL) /* MFS channel 15 registers */ -#define FM4_MFS_NFC_BASE (FM4_PERIPH_BASE + 0x38FFFF0) /* JUST A RANDOM ADDRESS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ -#define FM4_CRC_BASE (FM4_PERIPH_BASE + 0x39000UL) /* CRC registers */ -#define FM4_WC_BASE (FM4_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ -#define FM4_RTC_BASE (FM4_PERIPH_BASE + 0x3B100UL) /* RTC registers */ -#define FM4_LCR_BASE (FM4_PERIPH_BASE + 0x3C000UL) /* Low-speed CR prescaler registers */ -#define FM4_CLK_GATING_BASE (FM4_PERIPH_BASE + 0x3C100UL) /* Peripheral Clock Gating registers */ -#define FM4_PLL_CONTROL_BASE (FM4_PERIPH_BASE + 0x3C800UL) /* Main PLL Control registers */ -#define FM4_EXBUS_BASE (FM4_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ -#define FM4_USB0_BASE (FM4_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ -#define FM4_DMAC_BASE (FM4_PERIPH_BASE + 0x60000UL) /* DMA controller */ -#define FM4_DSTC_BASE (FM4_PERIPH_BASE + 0x61000UL) /* DSTC controller */ -#define FM4_CAN0_BASE (FM4_PERIPH_BASE + 0x62000UL) /* CAN channel 0 registers */ -#define FM4_CAN1_BASE (FM4_PERIPH_BASE + 0x63000UL) /* CAN channel 1 registers */ -#define FM4_SDIF_BASE (FM4_PERIPH_BASE + 0x6E000UL) /* SDIF registers */ - -/****************************************************************************** - * Peripheral declaration - ******************************************************************************/ -#define FM4_WORKFLASH_IF ((FM4_WORKFLASH_IF_TypeDef *)FM4_WORKFLASH_IF_BASE) -#define FM4_FLASH_IF ((FM4_FLASH_IF_TypeDef *)FM4_FLASH_IF_BASE) -#define FM4_UNIQUE_ID ((FM4_UNIQUE_ID_TypeDef *)FM4_UNIQUE_ID_BASE) -#define FM4_ECC_CAPTURE ((FM4_ECC_CAPTURE_TypeDef *)FM4_ECC_CAPTURE_BASE) -#define FM4_CRG ((FM4_CRG_TypeDef *)FM4_CRG_BASE) -#define FM4_HWWDT ((FM4_HWWDT_TypeDef *)FM4_HWWDT_BASE) -#define FM4_SWWDT ((FM4_SWWDT_TypeDef *)FM4_SWWDT_BASE) -#define FM4_DTIM ((FM4_DTIM_TypeDef *)FM4_DTIM_BASE) -#define FM4_MFT0_FRT ((FM4_MFT_FRT_TypeDef *)FM4_MFT0_FRT_BASE) -#define FM4_MFT0_OCU ((FM4_MFT_OCU_TypeDef *)FM4_MFT0_OCU_BASE) -#define FM4_MFT0_WFG ((FM4_MFT_WFG_TypeDef *)FM4_MFT0_WFG_BASE) -#define FM4_MFT0_ICU ((FM4_MFT_ICU_TypeDef *)FM4_MFT0_ICU_BASE) -#define FM4_MFT0_ADCMP ((FM4_MFT_ADCMP_TypeDef *)FM4_MFT0_ADCMP_BASE) -#define FM4_MFT1_FRT ((FM4_MFT_FRT_TypeDef *)FM4_MFT1_FRT_BASE) -#define FM4_MFT1_OCU ((FM4_MFT_OCU_TypeDef *)FM4_MFT1_OCU_BASE) -#define FM4_MFT1_WFG ((FM4_MFT_WFG_TypeDef *)FM4_MFT1_WFG_BASE) -#define FM4_MFT1_ICU ((FM4_MFT_ICU_TypeDef *)FM4_MFT1_ICU_BASE) -#define FM4_MFT1_ADCMP ((FM4_MFT_ADCMP_TypeDef *)FM4_MFT1_ADCMP_BASE) -#define FM4_MFT2_FRT ((FM4_MFT_FRT_TypeDef *)FM4_MFT2_FRT_BASE) -#define FM4_MFT2_OCU ((FM4_MFT_OCU_TypeDef *)FM4_MFT2_OCU_BASE) -#define FM4_MFT2_WFG ((FM4_MFT_WFG_TypeDef *)FM4_MFT2_WFG_BASE) -#define FM4_MFT2_ICU ((FM4_MFT_ICU_TypeDef *)FM4_MFT2_ICU_BASE) -#define FM4_MFT2_ADCMP ((FM4_MFT_ADCMP_TypeDef *)FM4_MFT2_ADCMP_BASE) -#define FM4_MFT_PPG ((FM4_MFT_PPG_TypeDef *)FM4_MFT_PPG_BASE) -#define FM4_BT0_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT0_PPG_BASE) -#define FM4_BT0_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT0_PWM_BASE) -#define FM4_BT0_RT ((FM4_BT_RT_TypeDef *)FM4_BT0_RT_BASE) -#define FM4_BT0_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT0_PWC_BASE) -#define FM4_BT1_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT1_PPG_BASE) -#define FM4_BT1_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT1_PWM_BASE) -#define FM4_BT1_RT ((FM4_BT_RT_TypeDef *)FM4_BT1_RT_BASE) -#define FM4_BT1_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT1_PWC_BASE) -#define FM4_BT2_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT2_PPG_BASE) -#define FM4_BT2_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT2_PWM_BASE) -#define FM4_BT2_RT ((FM4_BT_RT_TypeDef *)FM4_BT2_RT_BASE) -#define FM4_BT2_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT2_PWC_BASE) -#define FM4_BT3_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT3_PPG_BASE) -#define FM4_BT3_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT3_PWM_BASE) -#define FM4_BT3_RT ((FM4_BT_RT_TypeDef *)FM4_BT3_RT_BASE) -#define FM4_BT3_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT3_PWC_BASE) -#define FM4_BT4_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT4_PPG_BASE) -#define FM4_BT4_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT4_PWM_BASE) -#define FM4_BT4_RT ((FM4_BT_RT_TypeDef *)FM4_BT4_RT_BASE) -#define FM4_BT4_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT4_PWC_BASE) -#define FM4_BT5_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT5_PPG_BASE) -#define FM4_BT5_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT5_PWM_BASE) -#define FM4_BT5_RT ((FM4_BT_RT_TypeDef *)FM4_BT5_RT_BASE) -#define FM4_BT5_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT5_PWC_BASE) -#define FM4_BT6_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT6_PPG_BASE) -#define FM4_BT6_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT6_PWM_BASE) -#define FM4_BT6_RT ((FM4_BT_RT_TypeDef *)FM4_BT6_RT_BASE) -#define FM4_BT6_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT6_PWC_BASE) -#define FM4_BT7_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT7_PPG_BASE) -#define FM4_BT7_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT7_PWM_BASE) -#define FM4_BT7_RT ((FM4_BT_RT_TypeDef *)FM4_BT7_RT_BASE) -#define FM4_BT7_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT7_PWC_BASE) -#define FM4_BTIOSEL03 ((FM4_BTIOSEL03_TypeDef *)FM4_BTIOSEL03_BASE) -#define FM4_BTIOSEL47 ((FM4_BTIOSEL47_TypeDef *)FM4_BTIOSEL47_BASE) -#define FM4_BT8_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT8_PPG_BASE) -#define FM4_BT8_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT8_PWM_BASE) -#define FM4_BT8_RT ((FM4_BT_RT_TypeDef *)FM4_BT8_RT_BASE) -#define FM4_BT8_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT8_PWC_BASE) -#define FM4_BT9_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT9_PPG_BASE) -#define FM4_BT9_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT9_PWM_BASE) -#define FM4_BT9_RT ((FM4_BT_RT_TypeDef *)FM4_BT9_RT_BASE) -#define FM4_BT9_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT9_PWC_BASE) -#define FM4_BT10_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT10_PPG_BASE) -#define FM4_BT10_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT10_PWM_BASE) -#define FM4_BT10_RT ((FM4_BT_RT_TypeDef *)FM4_BT10_RT_BASE) -#define FM4_BT10_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT10_PWC_BASE) -#define FM4_BT11_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT11_PPG_BASE) -#define FM4_BT11_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT11_PWM_BASE) -#define FM4_BT11_RT ((FM4_BT_RT_TypeDef *)FM4_BT11_RT_BASE) -#define FM4_BT11_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT11_PWC_BASE) -#define FM4_BT12_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT12_PPG_BASE) -#define FM4_BT12_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT12_PWM_BASE) -#define FM4_BT12_RT ((FM4_BT_RT_TypeDef *)FM4_BT12_RT_BASE) -#define FM4_BT12_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT12_PWC_BASE) -#define FM4_BT13_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT13_PPG_BASE) -#define FM4_BT13_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT13_PWM_BASE) -#define FM4_BT13_RT ((FM4_BT_RT_TypeDef *)FM4_BT13_RT_BASE) -#define FM4_BT13_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT13_PWC_BASE) -#define FM4_BT14_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT14_PPG_BASE) -#define FM4_BT14_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT14_PWM_BASE) -#define FM4_BT14_RT ((FM4_BT_RT_TypeDef *)FM4_BT14_RT_BASE) -#define FM4_BT14_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT14_PWC_BASE) -#define FM4_BT15_PPG ((FM4_BT_PPG_TypeDef *)FM4_BT15_PPG_BASE) -#define FM4_BT15_PWM ((FM4_BT_PWM_TypeDef *)FM4_BT15_PWM_BASE) -#define FM4_BT15_RT ((FM4_BT_RT_TypeDef *)FM4_BT15_RT_BASE) -#define FM4_BT15_PWC ((FM4_BT_PWC_TypeDef *)FM4_BT15_PWC_BASE) -#define FM4_BTIOSEL8B ((FM4_BTIOSEL8B_TypeDef *)FM4_BTIOSEL8B_BASE) -#define FM4_BTIOSELCF ((FM4_BTIOSELCF_TypeDef *)FM4_BTIOSELCF_BASE) -#define FM4_SBSSR ((FM4_SBSSR_TypeDef *)FM4_SBSSR_BASE) -#define FM4_QPRC0 ((FM4_QPRC_TypeDef *)FM4_QPRC0_BASE) -#define FM4_QPRC1 ((FM4_QPRC_TypeDef *)FM4_QPRC1_BASE) -#define FM4_QPRC2 ((FM4_QPRC_TypeDef *)FM4_QPRC2_BASE) -#define FM4_QPRC3 ((FM4_QPRC_TypeDef *)FM4_QPRC3_BASE) -#define FM4_QPRC0_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC0_NF_BASE) -#define FM4_QPRC1_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC1_NF_BASE) -#define FM4_QPRC2_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC2_NF_BASE) -#define FM4_QPRC3_NF ((FM4_QPRC_NF_TypeDef *)FM4_QPRC3_NF_BASE) -#define FM4_ADC0 ((FM4_ADC_TypeDef *)FM4_ADC0_BASE) -#define FM4_ADC1 ((FM4_ADC_TypeDef *)FM4_ADC1_BASE) -#define FM4_ADC2 ((FM4_ADC_TypeDef *)FM4_ADC2_BASE) -#define FM4_DAC0 ((FM4_DAC_TypeDef *)FM4_DAC0_BASE) -#define FM4_DAC1 ((FM4_DAC_TypeDef *)FM4_DAC1_BASE) -#define FM4_CRTRIM ((FM4_CRTRIM_TypeDef *)FM4_CRTRIM_BASE) -#define FM4_EXTI ((FM4_EXTI_TypeDef *)FM4_EXTI_BASE) -#define FM4_INTREQ ((FM4_INTREQ_TypeDef *)FM4_INTREQ_BASE) -#define FM4_IRQSEL ((FM4_IRQSEL_TypeDef *)FM4_IRQSEL_BASE) -#define FM4_GPIO ((FM4_GPIO_TypeDef *)FM4_GPIO_BASE) -#define FM4_LVD ((FM4_LVD_TypeDef *)FM4_LVD_BASE) -#define FM4_DS ((FM4_DS_TypeDef *)FM4_DS_BASE) -#define FM4_USBCLK ((FM4_USBCLK_TypeDef *)FM4_USBCLK_BASE) -#define FM4_CANPRES ((FM4_CANPRE_TypeDef *)FM4_CANPRES_BASE) -#define FM4_MFS0 ((FM4_MFS_TypeDef *)FM4_MFS0_BASE) -#define FM4_MFS1 ((FM4_MFS_TypeDef *)FM4_MFS1_BASE) -#define FM4_MFS2 ((FM4_MFS_TypeDef *)FM4_MFS2_BASE) -#define FM4_MFS3 ((FM4_MFS_TypeDef *)FM4_MFS3_BASE) -#define FM4_MFS4 ((FM4_MFS_TypeDef *)FM4_MFS4_BASE) -#define FM4_MFS5 ((FM4_MFS_TypeDef *)FM4_MFS5_BASE) -#define FM4_MFS6 ((FM4_MFS_TypeDef *)FM4_MFS6_BASE) -#define FM4_MFS7 ((FM4_MFS_TypeDef *)FM4_MFS7_BASE) -#define FM4_MFS8 ((FM4_MFS_TypeDef *)FM4_MFS8_BASE) -#define FM4_MFS9 ((FM4_MFS_TypeDef *)FM4_MFS9_BASE) -#define FM4_MFS10 ((FM4_MFS_TypeDef *)FM4_MFS10_BASE) -#define FM4_MFS11 ((FM4_MFS_TypeDef *)FM4_MFS11_BASE) -#define FM4_MFS12 ((FM4_MFS_TypeDef *)FM4_MFS12_BASE) -#define FM4_MFS13 ((FM4_MFS_TypeDef *)FM4_MFS13_BASE) -#define FM4_MFS14 ((FM4_MFS_TypeDef *)FM4_MFS14_BASE) -#define FM4_MFS15 ((FM4_MFS_TypeDef *)FM4_MFS15_BASE) -#define FM4_CRC ((FM4_CRC_TypeDef *)FM4_CRC_BASE) -#define FM4_WC ((FM4_WC_TypeDef *)FM4_WC_BASE) -#define FM4_RTC ((FM4_RTC_TypeDef *)FM4_RTC_BASE) -#define FM4_LCR ((FM4_LCR_TypeDef *)FM4_LCR_BASE) -#define FM4_CLK_GATING ((FM4_CLK_GATING_TypeDef *)FM4_CLK_GATING_BASE) -#define FM4_PLL_CONTROL ((FM4_PLL_CONTROL_TypeDef *)FM4_PLL_CONTROL_BASE) -#define FM4_EXBUS ((FM4_EXBUS_TypeDef *)FM4_EXBUS_BASE) -#define FM4_USB0 ((FM4_USB_TypeDef *)FM4_USB0_BASE) -#define FM4_DMAC ((FM4_DMAC_TypeDef *)FM4_DMAC_BASE) -#define FM4_DSTC ((FM4_DSTC_TypeDef *)FM4_DSTC_BASE) -#define FM4_CAN0 ((FM4_CAN_TypeDef *)FM4_CAN0_BASE) -#define FM4_CAN1 ((FM4_CAN_TypeDef *)FM4_CAN1_BASE) -#define FM4_SDIF ((FM4_SDIF_TypeDef *)FM4_SDIF_BASE) - -/****************************************************************************** - * Peripheral Bit Band Alias declaration - ******************************************************************************/ - -/* Work Flash interface registers */ -#define bFM4_WORKFLASH_IF_WFASZR_ASZ *((volatile unsigned int*)(0x23C00000UL)) -#define bFM4_WORKFLASH_IF_WFRWTR_RWT0 *((volatile unsigned int*)(0x23C00080UL)) -#define bFM4_WORKFLASH_IF_WFRWTR_RWT1 *((volatile unsigned int*)(0x23C00084UL)) -#define bFM4_WORKFLASH_IF_WFRWTR_RWT2 *((volatile unsigned int*)(0x23C00088UL)) -#define bFM4_WORKFLASH_IF_WFSTR_RDY *((volatile unsigned int*)(0x23C00100UL)) -#define bFM4_WORKFLASH_IF_WFSTR_HNG *((volatile unsigned int*)(0x23C00104UL)) - -/* Flash interface registers */ -#define bFM4_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) -#define bFM4_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) -#define bFM4_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) -#define bFM4_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) -#define bFM4_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) -#define bFM4_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) -#define bFM4_FLASH_IF_FSTR_ERR *((volatile unsigned int*)(0x42000108UL)) -#define bFM4_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) -#define bFM4_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) -#define bFM4_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) -#define bFM4_FLASH_IF_FBFCR_BE *((volatile unsigned int*)(0x42000280UL)) -#define bFM4_FLASH_IF_FBFCR_BS *((volatile unsigned int*)(0x42000284UL)) -#define bFM4_FLASH_IF_FICR_RDYIE *((volatile unsigned int*)(0x42000400UL)) -#define bFM4_FLASH_IF_FICR_HANGIE *((volatile unsigned int*)(0x42000404UL)) -#define bFM4_FLASH_IF_FICR_ERRIE *((volatile unsigned int*)(0x42000408UL)) -#define bFM4_FLASH_IF_FISR_RDYIF *((volatile unsigned int*)(0x42000480UL)) -#define bFM4_FLASH_IF_FISR_HANGIF *((volatile unsigned int*)(0x42000484UL)) -#define bFM4_FLASH_IF_FISR_ERRIF *((volatile unsigned int*)(0x42000488UL)) -#define bFM4_FLASH_IF_FICLR_RDYIC *((volatile unsigned int*)(0x42000500UL)) -#define bFM4_FLASH_IF_FICLR_HANGIC *((volatile unsigned int*)(0x42000504UL)) -#define bFM4_FLASH_IF_FICLR_ERRIC *((volatile unsigned int*)(0x42000508UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) -#define bFM4_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) -#define bFM4_FLASH_IF_CRTRMM_TTRMM0 *((volatile unsigned int*)(0x42002040UL)) -#define bFM4_FLASH_IF_CRTRMM_TTRMM1 *((volatile unsigned int*)(0x42002044UL)) -#define bFM4_FLASH_IF_CRTRMM_TTRMM2 *((volatile unsigned int*)(0x42002048UL)) -#define bFM4_FLASH_IF_CRTRMM_TTRMM3 *((volatile unsigned int*)(0x4200204CUL)) -#define bFM4_FLASH_IF_CRTRMM_TTRMM4 *((volatile unsigned int*)(0x42002050UL)) - -/* Unique ID registers */ -#define bFM4_UNIQUE_ID_UIDR0_UID0 *((volatile unsigned int*)(0x42004010UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID1 *((volatile unsigned int*)(0x42004014UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID2 *((volatile unsigned int*)(0x42004018UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID3 *((volatile unsigned int*)(0x4200401CUL)) -#define bFM4_UNIQUE_ID_UIDR0_UID4 *((volatile unsigned int*)(0x42004020UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID5 *((volatile unsigned int*)(0x42004024UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID6 *((volatile unsigned int*)(0x42004028UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID7 *((volatile unsigned int*)(0x4200402CUL)) -#define bFM4_UNIQUE_ID_UIDR0_UID8 *((volatile unsigned int*)(0x42004030UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID9 *((volatile unsigned int*)(0x42004034UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID10 *((volatile unsigned int*)(0x42004038UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID11 *((volatile unsigned int*)(0x4200403CUL)) -#define bFM4_UNIQUE_ID_UIDR0_UID12 *((volatile unsigned int*)(0x42004040UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID13 *((volatile unsigned int*)(0x42004044UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID14 *((volatile unsigned int*)(0x42004048UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID15 *((volatile unsigned int*)(0x4200404CUL)) -#define bFM4_UNIQUE_ID_UIDR0_UID16 *((volatile unsigned int*)(0x42004050UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID17 *((volatile unsigned int*)(0x42004054UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID18 *((volatile unsigned int*)(0x42004058UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID19 *((volatile unsigned int*)(0x4200405CUL)) -#define bFM4_UNIQUE_ID_UIDR0_UID20 *((volatile unsigned int*)(0x42004060UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID21 *((volatile unsigned int*)(0x42004064UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID22 *((volatile unsigned int*)(0x42004068UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID23 *((volatile unsigned int*)(0x4200406CUL)) -#define bFM4_UNIQUE_ID_UIDR0_UID24 *((volatile unsigned int*)(0x42004070UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID25 *((volatile unsigned int*)(0x42004074UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID26 *((volatile unsigned int*)(0x42004078UL)) -#define bFM4_UNIQUE_ID_UIDR0_UID27 *((volatile unsigned int*)(0x4200407CUL)) -#define bFM4_UNIQUE_ID_UIDR1_UID28 *((volatile unsigned int*)(0x42004080UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID29 *((volatile unsigned int*)(0x42004084UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID30 *((volatile unsigned int*)(0x42004088UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID31 *((volatile unsigned int*)(0x4200408CUL)) -#define bFM4_UNIQUE_ID_UIDR1_UID32 *((volatile unsigned int*)(0x42004090UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID33 *((volatile unsigned int*)(0x42004094UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID34 *((volatile unsigned int*)(0x42004098UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID35 *((volatile unsigned int*)(0x4200409CUL)) -#define bFM4_UNIQUE_ID_UIDR1_UID36 *((volatile unsigned int*)(0x420040A0UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID37 *((volatile unsigned int*)(0x420040A4UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID38 *((volatile unsigned int*)(0x420040A8UL)) -#define bFM4_UNIQUE_ID_UIDR1_UID39 *((volatile unsigned int*)(0x420040ACUL)) -#define bFM4_UNIQUE_ID_UIDR1_UID40 *((volatile unsigned int*)(0x420040B0UL)) - -/* ECC_CAPTURE registers */ -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD0 *((volatile unsigned int*)(0x42006000UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD1 *((volatile unsigned int*)(0x42006004UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD2 *((volatile unsigned int*)(0x42006008UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD3 *((volatile unsigned int*)(0x4200600CUL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD4 *((volatile unsigned int*)(0x42006010UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD5 *((volatile unsigned int*)(0x42006014UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD6 *((volatile unsigned int*)(0x42006018UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD7 *((volatile unsigned int*)(0x4200601CUL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD8 *((volatile unsigned int*)(0x42006020UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD9 *((volatile unsigned int*)(0x42006024UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD10 *((volatile unsigned int*)(0x42006028UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD11 *((volatile unsigned int*)(0x4200602CUL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD12 *((volatile unsigned int*)(0x42006030UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD13 *((volatile unsigned int*)(0x42006034UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD14 *((volatile unsigned int*)(0x42006038UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD15 *((volatile unsigned int*)(0x4200603CUL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD16 *((volatile unsigned int*)(0x42006040UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD17 *((volatile unsigned int*)(0x42006044UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD18 *((volatile unsigned int*)(0x42006048UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD19 *((volatile unsigned int*)(0x4200604CUL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD20 *((volatile unsigned int*)(0x42006050UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD21 *((volatile unsigned int*)(0x42006054UL)) -#define bFM4_ECC_CAPTURE_FERRAD_ERRAD22 *((volatile unsigned int*)(0x42006058UL)) - -/* Clock and reset registers */ -#define bFM4_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) -#define bFM4_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) -#define bFM4_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) -#define bFM4_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) -#define bFM4_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) -#define bFM4_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) -#define bFM4_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) -#define bFM4_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) -#define bFM4_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) -#define bFM4_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) -#define bFM4_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) -#define bFM4_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) -#define bFM4_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) -#define bFM4_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) -#define bFM4_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) -#define bFM4_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) -#define bFM4_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) -#define bFM4_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) -#define bFM4_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) -#define bFM4_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) -#define bFM4_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) -#define bFM4_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) -#define bFM4_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) -#define bFM4_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) -#define bFM4_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) -#define bFM4_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) -#define bFM4_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) -#define bFM4_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) -#define bFM4_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) -#define bFM4_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) -#define bFM4_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) -#define bFM4_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) -#define bFM4_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) -#define bFM4_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) -#define bFM4_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) -#define bFM4_CRG_TTC_PSR_TTC0 *((volatile unsigned int*)(0x42200500UL)) -#define bFM4_CRG_TTC_PSR_TTC1 *((volatile unsigned int*)(0x42200504UL)) -#define bFM4_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) -#define bFM4_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) -#define bFM4_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) -#define bFM4_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) -#define bFM4_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) -#define bFM4_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) -#define bFM4_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) -#define bFM4_CRG_CSW_TMR_SOWT3 *((volatile unsigned int*)(0x4220061CUL)) -#define bFM4_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) -#define bFM4_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) -#define bFM4_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) -#define bFM4_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) -#define bFM4_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) -#define bFM4_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) -#define bFM4_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) -#define bFM4_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) -#define bFM4_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) -#define bFM4_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) -#define bFM4_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) -#define bFM4_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) -#define bFM4_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) -#define bFM4_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) -#define bFM4_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) -#define bFM4_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) -#define bFM4_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) -#define bFM4_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) -#define bFM4_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) -#define bFM4_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) -#define bFM4_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) -#define bFM4_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) -#define bFM4_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) -#define bFM4_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) -#define bFM4_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) -#define bFM4_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) -#define bFM4_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) -#define bFM4_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) -#define bFM4_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) -#define bFM4_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) -#define bFM4_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) -#define bFM4_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) -#define bFM4_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) -#define bFM4_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) -#define bFM4_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) -#define bFM4_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) -#define bFM4_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) -#define bFM4_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) -#define bFM4_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) -#define bFM4_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) -#define bFM4_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) - -/* Hardware watchdog registers */ -#define bFM4_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) -#define bFM4_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) -#define bFM4_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) - -/* Software watchdog registers */ -#define bFM4_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) -#define bFM4_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) -#define bFM4_SWWDT_WDOGCONTROL_TWD0 *((volatile unsigned int*)(0x42240108UL)) -#define bFM4_SWWDT_WDOGCONTROL_TWD1 *((volatile unsigned int*)(0x4224010CUL)) -#define bFM4_SWWDT_WDOGCONTROL_SPM *((volatile unsigned int*)(0x42240110UL)) -#define bFM4_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) -#define bFM4_SWWDT_WDOGSPMC_TGR *((volatile unsigned int*)(0x42240300UL)) - -/* Dual timer 1/2 registers */ -#define bFM4_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) -#define bFM4_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) -#define bFM4_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) -#define bFM4_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) -#define bFM4_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) -#define bFM4_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) -#define bFM4_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) -#define bFM4_DTIM_TIMER1RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0200UL)) -#define bFM4_DTIM_TIMER1MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0280UL)) -#define bFM4_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) -#define bFM4_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) -#define bFM4_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) -#define bFM4_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) -#define bFM4_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) -#define bFM4_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) -#define bFM4_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) -#define bFM4_DTIM_TIMER2RIS_TIMERXRIS *((volatile unsigned int*)(0x422A0600UL)) -#define bFM4_DTIM_TIMER2MIS_TIMERXRIS *((volatile unsigned int*)(0x422A0680UL)) - -/* Multifunction Timer unit 0 Free Running Timer registers */ -#define bFM4_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42402900UL)) -#define bFM4_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42402904UL)) -#define bFM4_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42402908UL)) -#define bFM4_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240290cUL)) -#define bFM4_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42402910UL)) -#define bFM4_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42402914UL)) -#define bFM4_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42402918UL)) -#define bFM4_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240291cUL)) -#define bFM4_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42402920UL)) -#define bFM4_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42402924UL)) -#define bFM4_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42402934UL)) -#define bFM4_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42402938UL)) -#define bFM4_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240293cUL)) -#define bFM4_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42402a80UL)) -#define bFM4_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42402a84UL)) -#define bFM4_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42402a88UL)) -#define bFM4_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x42402a8cUL)) -#define bFM4_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42402a90UL)) -#define bFM4_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42402a94UL)) -#define bFM4_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42402a98UL)) -#define bFM4_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x42402a9cUL)) -#define bFM4_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42402aa0UL)) -#define bFM4_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42402aa4UL)) -#define bFM4_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42402ab4UL)) -#define bFM4_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42402ab8UL)) -#define bFM4_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x42402abcUL)) -#define bFM4_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42402c00UL)) -#define bFM4_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42402c04UL)) -#define bFM4_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42402c08UL)) -#define bFM4_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42402c0cUL)) -#define bFM4_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42402c10UL)) -#define bFM4_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42402c14UL)) -#define bFM4_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42402c18UL)) -#define bFM4_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42402c1cUL)) -#define bFM4_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42402c20UL)) -#define bFM4_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42402c24UL)) -#define bFM4_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42402c34UL)) -#define bFM4_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42402c38UL)) -#define bFM4_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42402c3cUL)) -#define bFM4_MFT0_FRT_TCAL_STOP00 *((volatile unsigned int*)(0x42402c80UL)) -#define bFM4_MFT0_FRT_TCAL_STOP01 *((volatile unsigned int*)(0x42402c84UL)) -#define bFM4_MFT0_FRT_TCAL_STOP02 *((volatile unsigned int*)(0x42402c88UL)) -#define bFM4_MFT0_FRT_TCAL_STOP10 *((volatile unsigned int*)(0x42402c8cUL)) -#define bFM4_MFT0_FRT_TCAL_STOP11 *((volatile unsigned int*)(0x42402c90UL)) -#define bFM4_MFT0_FRT_TCAL_STOP12 *((volatile unsigned int*)(0x42402c94UL)) -#define bFM4_MFT0_FRT_TCAL_STOP20 *((volatile unsigned int*)(0x42402c98UL)) -#define bFM4_MFT0_FRT_TCAL_STOP21 *((volatile unsigned int*)(0x42402c9cUL)) -#define bFM4_MFT0_FRT_TCAL_STOP22 *((volatile unsigned int*)(0x42402ca0UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR00 *((volatile unsigned int*)(0x42402cc0UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR01 *((volatile unsigned int*)(0x42402cc4UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR02 *((volatile unsigned int*)(0x42402cc8UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR10 *((volatile unsigned int*)(0x42402cccUL)) -#define bFM4_MFT0_FRT_TCAL_SCLR11 *((volatile unsigned int*)(0x42402cd0UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR12 *((volatile unsigned int*)(0x42402cd4UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR20 *((volatile unsigned int*)(0x42402cd8UL)) -#define bFM4_MFT0_FRT_TCAL_SCLR21 *((volatile unsigned int*)(0x42402cdcUL)) -#define bFM4_MFT0_FRT_TCAL_SCLR22 *((volatile unsigned int*)(0x42402ce0UL)) - -/* Multifunction Timer unit 0 Output Compare Unit registers */ -#define bFM4_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42402300UL)) -#define bFM4_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42402304UL)) -#define bFM4_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42402310UL)) -#define bFM4_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42402314UL)) -#define bFM4_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42402318UL)) -#define bFM4_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240231cUL)) -#define bFM4_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42402320UL)) -#define bFM4_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42402324UL)) -#define bFM4_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42402330UL)) -#define bFM4_MFT0_OCU_OCSB10_FM4 *((volatile unsigned int*)(0x4240233cUL)) -#define bFM4_MFT0_OCU_OCSA32_CST0 *((volatile unsigned int*)(0x42402380UL)) -#define bFM4_MFT0_OCU_OCSA32_CST1 *((volatile unsigned int*)(0x42402384UL)) -#define bFM4_MFT0_OCU_OCSA32_IOE0 *((volatile unsigned int*)(0x42402390UL)) -#define bFM4_MFT0_OCU_OCSA32_IOE1 *((volatile unsigned int*)(0x42402394UL)) -#define bFM4_MFT0_OCU_OCSA32_IOP0 *((volatile unsigned int*)(0x42402398UL)) -#define bFM4_MFT0_OCU_OCSA32_IOP1 *((volatile unsigned int*)(0x4240239cUL)) -#define bFM4_MFT0_OCU_OCSB32_OTD0 *((volatile unsigned int*)(0x424023a0UL)) -#define bFM4_MFT0_OCU_OCSB32_OTD1 *((volatile unsigned int*)(0x424023a4UL)) -#define bFM4_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424023b0UL)) -#define bFM4_MFT0_OCU_OCSB32_FM4 *((volatile unsigned int*)(0x424023bcUL)) -#define bFM4_MFT0_OCU_OCSA54_CST0 *((volatile unsigned int*)(0x42402400UL)) -#define bFM4_MFT0_OCU_OCSA54_CST1 *((volatile unsigned int*)(0x42402404UL)) -#define bFM4_MFT0_OCU_OCSA54_IOE0 *((volatile unsigned int*)(0x42402410UL)) -#define bFM4_MFT0_OCU_OCSA54_IOE1 *((volatile unsigned int*)(0x42402414UL)) -#define bFM4_MFT0_OCU_OCSA54_IOP0 *((volatile unsigned int*)(0x42402418UL)) -#define bFM4_MFT0_OCU_OCSA54_IOP1 *((volatile unsigned int*)(0x4240241cUL)) -#define bFM4_MFT0_OCU_OCSB54_OTD0 *((volatile unsigned int*)(0x42402420UL)) -#define bFM4_MFT0_OCU_OCSB54_OTD1 *((volatile unsigned int*)(0x42402424UL)) -#define bFM4_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42402430UL)) -#define bFM4_MFT0_OCU_OCSB54_FM4 *((volatile unsigned int*)(0x4240243cUL)) -#define bFM4_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424024a0UL)) -#define bFM4_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424024a4UL)) -#define bFM4_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424024a8UL)) -#define bFM4_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424024acUL)) -#define bFM4_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424024b0UL)) -#define bFM4_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424024b4UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42402d00UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42402d04UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42402d08UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42402d0cUL)) -#define bFM4_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42402d10UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42402d14UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42402d18UL)) -#define bFM4_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42402d1cUL)) -#define bFM4_MFT0_OCU_OCFS32_FSO00 *((volatile unsigned int*)(0x42402d20UL)) -#define bFM4_MFT0_OCU_OCFS32_FSO01 *((volatile unsigned int*)(0x42402d24UL)) -#define bFM4_MFT0_OCU_OCFS32_FSO02 *((volatile unsigned int*)(0x42402d28UL)) -#define bFM4_MFT0_OCU_OCFS32_FSO03 *((volatile unsigned int*)(0x42402d2cUL)) -#define bFM4_MFT0_OCU_OCFS32_FSO10 *((volatile unsigned int*)(0x42402d30UL)) -#define bFM4_MFT0_OCU_OCFS32_FSO11 *((volatile unsigned int*)(0x42402d34UL)) -#define bFM4_MFT0_OCU_OCFS32_FSO12 *((volatile unsigned int*)(0x42402d38UL)) -#define bFM4_MFT0_OCU_OCFS32_FSO13 *((volatile unsigned int*)(0x42402d3cUL)) -#define bFM4_MFT0_OCU_OCFS54_FSO00 *((volatile unsigned int*)(0x42402d40UL)) -#define bFM4_MFT0_OCU_OCFS54_FSO01 *((volatile unsigned int*)(0x42402d44UL)) -#define bFM4_MFT0_OCU_OCFS54_FSO02 *((volatile unsigned int*)(0x42402d48UL)) -#define bFM4_MFT0_OCU_OCFS54_FSO03 *((volatile unsigned int*)(0x42402d4cUL)) -#define bFM4_MFT0_OCU_OCFS54_FSO10 *((volatile unsigned int*)(0x42402d50UL)) -#define bFM4_MFT0_OCU_OCFS54_FSO11 *((volatile unsigned int*)(0x42402d54UL)) -#define bFM4_MFT0_OCU_OCFS54_FSO12 *((volatile unsigned int*)(0x42402d58UL)) -#define bFM4_MFT0_OCU_OCFS54_FSO13 *((volatile unsigned int*)(0x42402d5cUL)) - -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define bFM4_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42403480UL)) -#define bFM4_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42403484UL)) -#define bFM4_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42403488UL)) -#define bFM4_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42403498UL)) -#define bFM4_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240349cUL)) -#define bFM4_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424034a0UL)) -#define bFM4_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424034a4UL)) -#define bFM4_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424034a8UL)) -#define bFM4_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424034acUL)) -#define bFM4_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42403500UL)) -#define bFM4_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42403504UL)) -#define bFM4_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42403508UL)) -#define bFM4_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42403518UL)) -#define bFM4_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240351cUL)) -#define bFM4_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42403520UL)) -#define bFM4_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42403524UL)) -#define bFM4_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42403528UL)) -#define bFM4_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240352cUL)) -#define bFM4_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42403580UL)) -#define bFM4_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42403584UL)) -#define bFM4_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42403588UL)) -#define bFM4_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42403598UL)) -#define bFM4_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240359cUL)) -#define bFM4_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424035a0UL)) -#define bFM4_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424035a4UL)) -#define bFM4_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424035a8UL)) -#define bFM4_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424035acUL)) -#define bFM4_MFT0_WFG_WFIR_DTIFA *((volatile unsigned int*)(0x42403600UL)) -#define bFM4_MFT0_WFG_WFIR_DTICA *((volatile unsigned int*)(0x42403604UL)) -#define bFM4_MFT0_WFG_WFIR_DTIFB *((volatile unsigned int*)(0x42403608UL)) -#define bFM4_MFT0_WFG_WFIR_DTICB *((volatile unsigned int*)(0x4240360cUL)) -#define bFM4_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42403610UL)) -#define bFM4_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42403614UL)) -#define bFM4_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42403618UL)) -#define bFM4_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240361cUL)) -#define bFM4_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42403620UL)) -#define bFM4_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42403624UL)) -#define bFM4_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42403628UL)) -#define bFM4_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240362cUL)) -#define bFM4_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42403630UL)) -#define bFM4_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42403634UL)) -#define bFM4_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42403638UL)) -#define bFM4_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240363cUL)) -#define bFM4_MFT0_WFG_NZCL_DTIEA *((volatile unsigned int*)(0x42403680UL)) -#define bFM4_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42403684UL)) -#define bFM4_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42403688UL)) -#define bFM4_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240368cUL)) -#define bFM4_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42403690UL)) -#define bFM4_MFT0_WFG_NZCL_DTIEB *((volatile unsigned int*)(0x42403694UL)) -#define bFM4_MFT0_WFG_NZCL_DIMA *((volatile unsigned int*)(0x424036a0UL)) -#define bFM4_MFT0_WFG_NZCL_DIMB *((volatile unsigned int*)(0x424036a4UL)) -#define bFM4_MFT0_WFG_NZCL_WIM10 *((volatile unsigned int*)(0x424036b0UL)) -#define bFM4_MFT0_WFG_NZCL_WIM32 *((volatile unsigned int*)(0x424036b4UL)) -#define bFM4_MFT0_WFG_NZCL_WIM54 *((volatile unsigned int*)(0x424036b8UL)) - -/* Multifunction Timer unit 0 Input Capture Unit registers */ -#define bFM4_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42402d80UL)) -#define bFM4_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42402d84UL)) -#define bFM4_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42402d88UL)) -#define bFM4_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42402d8cUL)) -#define bFM4_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42402d90UL)) -#define bFM4_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42402d94UL)) -#define bFM4_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42402d98UL)) -#define bFM4_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42402d9cUL)) -#define bFM4_MFT0_ICU_ICFS32_FSI00 *((volatile unsigned int*)(0x42402da0UL)) -#define bFM4_MFT0_ICU_ICFS32_FSI01 *((volatile unsigned int*)(0x42402da4UL)) -#define bFM4_MFT0_ICU_ICFS32_FSI02 *((volatile unsigned int*)(0x42402da8UL)) -#define bFM4_MFT0_ICU_ICFS32_FSI03 *((volatile unsigned int*)(0x42402dacUL)) -#define bFM4_MFT0_ICU_ICFS32_FSI10 *((volatile unsigned int*)(0x42402db0UL)) -#define bFM4_MFT0_ICU_ICFS32_FSI11 *((volatile unsigned int*)(0x42402db4UL)) -#define bFM4_MFT0_ICU_ICFS32_FSI12 *((volatile unsigned int*)(0x42402db8UL)) -#define bFM4_MFT0_ICU_ICFS32_FSI13 *((volatile unsigned int*)(0x42402dbcUL)) -#define bFM4_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42403080UL)) -#define bFM4_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42403084UL)) -#define bFM4_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42403088UL)) -#define bFM4_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x4240308cUL)) -#define bFM4_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42403090UL)) -#define bFM4_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42403094UL)) -#define bFM4_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42403098UL)) -#define bFM4_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x4240309cUL)) -#define bFM4_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x424030a0UL)) -#define bFM4_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x424030a4UL)) -#define bFM4_MFT0_ICU_ICSA32_EG00 *((volatile unsigned int*)(0x42403100UL)) -#define bFM4_MFT0_ICU_ICSA32_EG01 *((volatile unsigned int*)(0x42403104UL)) -#define bFM4_MFT0_ICU_ICSA32_EG10 *((volatile unsigned int*)(0x42403108UL)) -#define bFM4_MFT0_ICU_ICSA32_EG11 *((volatile unsigned int*)(0x4240310cUL)) -#define bFM4_MFT0_ICU_ICSA32_ICE0 *((volatile unsigned int*)(0x42403110UL)) -#define bFM4_MFT0_ICU_ICSA32_ICE1 *((volatile unsigned int*)(0x42403114UL)) -#define bFM4_MFT0_ICU_ICSA32_ICP0 *((volatile unsigned int*)(0x42403118UL)) -#define bFM4_MFT0_ICU_ICSA32_ICP1 *((volatile unsigned int*)(0x4240311cUL)) -#define bFM4_MFT0_ICU_ICSB32_IEI0 *((volatile unsigned int*)(0x42403120UL)) -#define bFM4_MFT0_ICU_ICSB32_IEI1 *((volatile unsigned int*)(0x42403124UL)) - -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define bFM4_MFT0_ADCMP_ACSD0_AMOD *((volatile unsigned int*)(0x42403aa0UL)) -#define bFM4_MFT0_ADCMP_ACSD0_OCUS *((volatile unsigned int*)(0x42403aa4UL)) -#define bFM4_MFT0_ADCMP_ACSD0_DE *((volatile unsigned int*)(0x42403ab0UL)) -#define bFM4_MFT0_ADCMP_ACSD0_PE *((volatile unsigned int*)(0x42403ab4UL)) -#define bFM4_MFT0_ADCMP_ACSD0_UE *((volatile unsigned int*)(0x42403ab8UL)) -#define bFM4_MFT0_ADCMP_ACSD0_ZE *((volatile unsigned int*)(0x42403abcUL)) -#define bFM4_MFT0_ADCMP_ACSD1_AMOD *((volatile unsigned int*)(0x42403b20UL)) -#define bFM4_MFT0_ADCMP_ACSD1_OCUS *((volatile unsigned int*)(0x42403b24UL)) -#define bFM4_MFT0_ADCMP_ACSD1_DE *((volatile unsigned int*)(0x42403b30UL)) -#define bFM4_MFT0_ADCMP_ACSD1_PE *((volatile unsigned int*)(0x42403b34UL)) -#define bFM4_MFT0_ADCMP_ACSD1_UE *((volatile unsigned int*)(0x42403b38UL)) -#define bFM4_MFT0_ADCMP_ACSD1_ZE *((volatile unsigned int*)(0x42403b3cUL)) -#define bFM4_MFT0_ADCMP_ACSD2_AMOD *((volatile unsigned int*)(0x42403ba0UL)) -#define bFM4_MFT0_ADCMP_ACSD2_OCUS *((volatile unsigned int*)(0x42403ba4UL)) -#define bFM4_MFT0_ADCMP_ACSD2_DE *((volatile unsigned int*)(0x42403bb0UL)) -#define bFM4_MFT0_ADCMP_ACSD2_PE *((volatile unsigned int*)(0x42403bb4UL)) -#define bFM4_MFT0_ADCMP_ACSD2_UE *((volatile unsigned int*)(0x42403bb8UL)) -#define bFM4_MFT0_ADCMP_ACSD2_ZE *((volatile unsigned int*)(0x42403bbcUL)) -#define bFM4_MFT0_ADCMP_ACSD3_AMOD *((volatile unsigned int*)(0x42403c20UL)) -#define bFM4_MFT0_ADCMP_ACSD3_OCUS *((volatile unsigned int*)(0x42403c24UL)) -#define bFM4_MFT0_ADCMP_ACSD3_DE *((volatile unsigned int*)(0x42403c30UL)) -#define bFM4_MFT0_ADCMP_ACSD3_PE *((volatile unsigned int*)(0x42403c34UL)) -#define bFM4_MFT0_ADCMP_ACSD3_UE *((volatile unsigned int*)(0x42403c38UL)) -#define bFM4_MFT0_ADCMP_ACSD3_ZE *((volatile unsigned int*)(0x42403c3cUL)) -#define bFM4_MFT0_ADCMP_ACSD4_AMOD *((volatile unsigned int*)(0x42403ca0UL)) -#define bFM4_MFT0_ADCMP_ACSD4_OCUS *((volatile unsigned int*)(0x42403ca4UL)) -#define bFM4_MFT0_ADCMP_ACSD4_DE *((volatile unsigned int*)(0x42403cb0UL)) -#define bFM4_MFT0_ADCMP_ACSD4_PE *((volatile unsigned int*)(0x42403cb4UL)) -#define bFM4_MFT0_ADCMP_ACSD4_UE *((volatile unsigned int*)(0x42403cb8UL)) -#define bFM4_MFT0_ADCMP_ACSD4_ZE *((volatile unsigned int*)(0x42403cbcUL)) -#define bFM4_MFT0_ADCMP_ACSD5_AMOD *((volatile unsigned int*)(0x42403d20UL)) -#define bFM4_MFT0_ADCMP_ACSD5_OCUS *((volatile unsigned int*)(0x42403d24UL)) -#define bFM4_MFT0_ADCMP_ACSD5_DE *((volatile unsigned int*)(0x42403d30UL)) -#define bFM4_MFT0_ADCMP_ACSD5_PE *((volatile unsigned int*)(0x42403d34UL)) -#define bFM4_MFT0_ADCMP_ACSD5_UE *((volatile unsigned int*)(0x42403d38UL)) -#define bFM4_MFT0_ADCMP_ACSD5_ZE *((volatile unsigned int*)(0x42403d3cUL)) - -/* Multifunction Timer unit 1 Free Running Timer registers */ -#define bFM4_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42422900UL)) -#define bFM4_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42422904UL)) -#define bFM4_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42422908UL)) -#define bFM4_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242290cUL)) -#define bFM4_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42422910UL)) -#define bFM4_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42422914UL)) -#define bFM4_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42422918UL)) -#define bFM4_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242291cUL)) -#define bFM4_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42422920UL)) -#define bFM4_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42422924UL)) -#define bFM4_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42422934UL)) -#define bFM4_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42422938UL)) -#define bFM4_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242293cUL)) -#define bFM4_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42422a80UL)) -#define bFM4_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42422a84UL)) -#define bFM4_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42422a88UL)) -#define bFM4_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x42422a8cUL)) -#define bFM4_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42422a90UL)) -#define bFM4_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42422a94UL)) -#define bFM4_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42422a98UL)) -#define bFM4_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x42422a9cUL)) -#define bFM4_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42422aa0UL)) -#define bFM4_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42422aa4UL)) -#define bFM4_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42422ab4UL)) -#define bFM4_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42422ab8UL)) -#define bFM4_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x42422abcUL)) -#define bFM4_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42422c00UL)) -#define bFM4_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42422c04UL)) -#define bFM4_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42422c08UL)) -#define bFM4_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42422c0cUL)) -#define bFM4_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42422c10UL)) -#define bFM4_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42422c14UL)) -#define bFM4_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42422c18UL)) -#define bFM4_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42422c1cUL)) -#define bFM4_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42422c20UL)) -#define bFM4_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42422c24UL)) -#define bFM4_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42422c34UL)) -#define bFM4_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42422c38UL)) -#define bFM4_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42422c3cUL)) -#define bFM4_MFT1_FRT_TCAL_STOP00 *((volatile unsigned int*)(0x42422c80UL)) -#define bFM4_MFT1_FRT_TCAL_STOP01 *((volatile unsigned int*)(0x42422c84UL)) -#define bFM4_MFT1_FRT_TCAL_STOP02 *((volatile unsigned int*)(0x42422c88UL)) -#define bFM4_MFT1_FRT_TCAL_STOP10 *((volatile unsigned int*)(0x42422c8cUL)) -#define bFM4_MFT1_FRT_TCAL_STOP11 *((volatile unsigned int*)(0x42422c90UL)) -#define bFM4_MFT1_FRT_TCAL_STOP12 *((volatile unsigned int*)(0x42422c94UL)) -#define bFM4_MFT1_FRT_TCAL_STOP20 *((volatile unsigned int*)(0x42422c98UL)) -#define bFM4_MFT1_FRT_TCAL_STOP21 *((volatile unsigned int*)(0x42422c9cUL)) -#define bFM4_MFT1_FRT_TCAL_STOP22 *((volatile unsigned int*)(0x42422ca0UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR00 *((volatile unsigned int*)(0x42422cc0UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR01 *((volatile unsigned int*)(0x42422cc4UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR02 *((volatile unsigned int*)(0x42422cc8UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR10 *((volatile unsigned int*)(0x42422cccUL)) -#define bFM4_MFT1_FRT_TCAL_SCLR11 *((volatile unsigned int*)(0x42422cd0UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR12 *((volatile unsigned int*)(0x42422cd4UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR20 *((volatile unsigned int*)(0x42422cd8UL)) -#define bFM4_MFT1_FRT_TCAL_SCLR21 *((volatile unsigned int*)(0x42422cdcUL)) -#define bFM4_MFT1_FRT_TCAL_SCLR22 *((volatile unsigned int*)(0x42422ce0UL)) - -/* Multifunction Timer unit 1 Output Compare Unit registers */ -#define bFM4_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42422300UL)) -#define bFM4_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42422304UL)) -#define bFM4_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42422310UL)) -#define bFM4_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42422314UL)) -#define bFM4_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42422318UL)) -#define bFM4_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242231cUL)) -#define bFM4_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42422320UL)) -#define bFM4_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42422324UL)) -#define bFM4_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42422330UL)) -#define bFM4_MFT1_OCU_OCSB10_FM4 *((volatile unsigned int*)(0x4242233cUL)) -#define bFM4_MFT1_OCU_OCSA32_CST0 *((volatile unsigned int*)(0x42422380UL)) -#define bFM4_MFT1_OCU_OCSA32_CST1 *((volatile unsigned int*)(0x42422384UL)) -#define bFM4_MFT1_OCU_OCSA32_IOE0 *((volatile unsigned int*)(0x42422390UL)) -#define bFM4_MFT1_OCU_OCSA32_IOE1 *((volatile unsigned int*)(0x42422394UL)) -#define bFM4_MFT1_OCU_OCSA32_IOP0 *((volatile unsigned int*)(0x42422398UL)) -#define bFM4_MFT1_OCU_OCSA32_IOP1 *((volatile unsigned int*)(0x4242239cUL)) -#define bFM4_MFT1_OCU_OCSB32_OTD0 *((volatile unsigned int*)(0x424223a0UL)) -#define bFM4_MFT1_OCU_OCSB32_OTD1 *((volatile unsigned int*)(0x424223a4UL)) -#define bFM4_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424223b0UL)) -#define bFM4_MFT1_OCU_OCSB32_FM4 *((volatile unsigned int*)(0x424223bcUL)) -#define bFM4_MFT1_OCU_OCSA54_CST0 *((volatile unsigned int*)(0x42422400UL)) -#define bFM4_MFT1_OCU_OCSA54_CST1 *((volatile unsigned int*)(0x42422404UL)) -#define bFM4_MFT1_OCU_OCSA54_IOE0 *((volatile unsigned int*)(0x42422410UL)) -#define bFM4_MFT1_OCU_OCSA54_IOE1 *((volatile unsigned int*)(0x42422414UL)) -#define bFM4_MFT1_OCU_OCSA54_IOP0 *((volatile unsigned int*)(0x42422418UL)) -#define bFM4_MFT1_OCU_OCSA54_IOP1 *((volatile unsigned int*)(0x4242241cUL)) -#define bFM4_MFT1_OCU_OCSB54_OTD0 *((volatile unsigned int*)(0x42422420UL)) -#define bFM4_MFT1_OCU_OCSB54_OTD1 *((volatile unsigned int*)(0x42422424UL)) -#define bFM4_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42422430UL)) -#define bFM4_MFT1_OCU_OCSB54_FM4 *((volatile unsigned int*)(0x4242243cUL)) -#define bFM4_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424224a0UL)) -#define bFM4_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424224a4UL)) -#define bFM4_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424224a8UL)) -#define bFM4_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424224acUL)) -#define bFM4_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424224b0UL)) -#define bFM4_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424224b4UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42422d00UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42422d04UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42422d08UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42422d0cUL)) -#define bFM4_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42422d10UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42422d14UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42422d18UL)) -#define bFM4_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42422d1cUL)) -#define bFM4_MFT1_OCU_OCFS32_FSO00 *((volatile unsigned int*)(0x42422d20UL)) -#define bFM4_MFT1_OCU_OCFS32_FSO01 *((volatile unsigned int*)(0x42422d24UL)) -#define bFM4_MFT1_OCU_OCFS32_FSO02 *((volatile unsigned int*)(0x42422d28UL)) -#define bFM4_MFT1_OCU_OCFS32_FSO03 *((volatile unsigned int*)(0x42422d2cUL)) -#define bFM4_MFT1_OCU_OCFS32_FSO10 *((volatile unsigned int*)(0x42422d30UL)) -#define bFM4_MFT1_OCU_OCFS32_FSO11 *((volatile unsigned int*)(0x42422d34UL)) -#define bFM4_MFT1_OCU_OCFS32_FSO12 *((volatile unsigned int*)(0x42422d38UL)) -#define bFM4_MFT1_OCU_OCFS32_FSO13 *((volatile unsigned int*)(0x42422d3cUL)) -#define bFM4_MFT1_OCU_OCFS54_FSO00 *((volatile unsigned int*)(0x42422d40UL)) -#define bFM4_MFT1_OCU_OCFS54_FSO01 *((volatile unsigned int*)(0x42422d44UL)) -#define bFM4_MFT1_OCU_OCFS54_FSO02 *((volatile unsigned int*)(0x42422d48UL)) -#define bFM4_MFT1_OCU_OCFS54_FSO03 *((volatile unsigned int*)(0x42422d4cUL)) -#define bFM4_MFT1_OCU_OCFS54_FSO10 *((volatile unsigned int*)(0x42422d50UL)) -#define bFM4_MFT1_OCU_OCFS54_FSO11 *((volatile unsigned int*)(0x42422d54UL)) -#define bFM4_MFT1_OCU_OCFS54_FSO12 *((volatile unsigned int*)(0x42422d58UL)) -#define bFM4_MFT1_OCU_OCFS54_FSO13 *((volatile unsigned int*)(0x42422d5cUL)) - -/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define bFM4_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42423480UL)) -#define bFM4_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42423484UL)) -#define bFM4_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42423488UL)) -#define bFM4_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42423498UL)) -#define bFM4_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242349cUL)) -#define bFM4_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424234a0UL)) -#define bFM4_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424234a4UL)) -#define bFM4_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424234a8UL)) -#define bFM4_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424234acUL)) -#define bFM4_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42423500UL)) -#define bFM4_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42423504UL)) -#define bFM4_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42423508UL)) -#define bFM4_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42423518UL)) -#define bFM4_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242351cUL)) -#define bFM4_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42423520UL)) -#define bFM4_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42423524UL)) -#define bFM4_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42423528UL)) -#define bFM4_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242352cUL)) -#define bFM4_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42423580UL)) -#define bFM4_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42423584UL)) -#define bFM4_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42423588UL)) -#define bFM4_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42423598UL)) -#define bFM4_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242359cUL)) -#define bFM4_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424235a0UL)) -#define bFM4_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424235a4UL)) -#define bFM4_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424235a8UL)) -#define bFM4_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424235acUL)) -#define bFM4_MFT1_WFG_WFIR_DTIFA *((volatile unsigned int*)(0x42423600UL)) -#define bFM4_MFT1_WFG_WFIR_DTICA *((volatile unsigned int*)(0x42423604UL)) -#define bFM4_MFT1_WFG_WFIR_DTIFB *((volatile unsigned int*)(0x42423608UL)) -#define bFM4_MFT1_WFG_WFIR_DTICB *((volatile unsigned int*)(0x4242360cUL)) -#define bFM4_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42423610UL)) -#define bFM4_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42423614UL)) -#define bFM4_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42423618UL)) -#define bFM4_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242361cUL)) -#define bFM4_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42423620UL)) -#define bFM4_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42423624UL)) -#define bFM4_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42423628UL)) -#define bFM4_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242362cUL)) -#define bFM4_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42423630UL)) -#define bFM4_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42423634UL)) -#define bFM4_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42423638UL)) -#define bFM4_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242363cUL)) -#define bFM4_MFT1_WFG_NZCL_DTIEA *((volatile unsigned int*)(0x42423680UL)) -#define bFM4_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42423684UL)) -#define bFM4_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42423688UL)) -#define bFM4_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242368cUL)) -#define bFM4_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42423690UL)) -#define bFM4_MFT1_WFG_NZCL_DTIEB *((volatile unsigned int*)(0x42423694UL)) -#define bFM4_MFT1_WFG_NZCL_DIMA *((volatile unsigned int*)(0x424236a0UL)) -#define bFM4_MFT1_WFG_NZCL_DIMB *((volatile unsigned int*)(0x424236a4UL)) -#define bFM4_MFT1_WFG_NZCL_WIM10 *((volatile unsigned int*)(0x424236b0UL)) -#define bFM4_MFT1_WFG_NZCL_WIM32 *((volatile unsigned int*)(0x424236b4UL)) -#define bFM4_MFT1_WFG_NZCL_WIM54 *((volatile unsigned int*)(0x424236b8UL)) - -/* Multifunction Timer unit 1 Input Capture Unit registers */ -#define bFM4_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42422d80UL)) -#define bFM4_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42422d84UL)) -#define bFM4_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42422d88UL)) -#define bFM4_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42422d8cUL)) -#define bFM4_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42422d90UL)) -#define bFM4_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42422d94UL)) -#define bFM4_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42422d98UL)) -#define bFM4_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42422d9cUL)) -#define bFM4_MFT1_ICU_ICFS32_FSI00 *((volatile unsigned int*)(0x42422da0UL)) -#define bFM4_MFT1_ICU_ICFS32_FSI01 *((volatile unsigned int*)(0x42422da4UL)) -#define bFM4_MFT1_ICU_ICFS32_FSI02 *((volatile unsigned int*)(0x42422da8UL)) -#define bFM4_MFT1_ICU_ICFS32_FSI03 *((volatile unsigned int*)(0x42422dacUL)) -#define bFM4_MFT1_ICU_ICFS32_FSI10 *((volatile unsigned int*)(0x42422db0UL)) -#define bFM4_MFT1_ICU_ICFS32_FSI11 *((volatile unsigned int*)(0x42422db4UL)) -#define bFM4_MFT1_ICU_ICFS32_FSI12 *((volatile unsigned int*)(0x42422db8UL)) -#define bFM4_MFT1_ICU_ICFS32_FSI13 *((volatile unsigned int*)(0x42422dbcUL)) -#define bFM4_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42423080UL)) -#define bFM4_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42423084UL)) -#define bFM4_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42423088UL)) -#define bFM4_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x4242308cUL)) -#define bFM4_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42423090UL)) -#define bFM4_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42423094UL)) -#define bFM4_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42423098UL)) -#define bFM4_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x4242309cUL)) -#define bFM4_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x424230a0UL)) -#define bFM4_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x424230a4UL)) -#define bFM4_MFT1_ICU_ICSA32_EG00 *((volatile unsigned int*)(0x42423100UL)) -#define bFM4_MFT1_ICU_ICSA32_EG01 *((volatile unsigned int*)(0x42423104UL)) -#define bFM4_MFT1_ICU_ICSA32_EG10 *((volatile unsigned int*)(0x42423108UL)) -#define bFM4_MFT1_ICU_ICSA32_EG11 *((volatile unsigned int*)(0x4242310cUL)) -#define bFM4_MFT1_ICU_ICSA32_ICE0 *((volatile unsigned int*)(0x42423110UL)) -#define bFM4_MFT1_ICU_ICSA32_ICE1 *((volatile unsigned int*)(0x42423114UL)) -#define bFM4_MFT1_ICU_ICSA32_ICP0 *((volatile unsigned int*)(0x42423118UL)) -#define bFM4_MFT1_ICU_ICSA32_ICP1 *((volatile unsigned int*)(0x4242311cUL)) -#define bFM4_MFT1_ICU_ICSB32_IEI0 *((volatile unsigned int*)(0x42423120UL)) -#define bFM4_MFT1_ICU_ICSB32_IEI1 *((volatile unsigned int*)(0x42423124UL)) - -/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define bFM4_MFT1_ADCMP_ACSD0_AMOD *((volatile unsigned int*)(0x42423aa0UL)) -#define bFM4_MFT1_ADCMP_ACSD0_OCUS *((volatile unsigned int*)(0x42423aa4UL)) -#define bFM4_MFT1_ADCMP_ACSD0_DE *((volatile unsigned int*)(0x42423ab0UL)) -#define bFM4_MFT1_ADCMP_ACSD0_PE *((volatile unsigned int*)(0x42423ab4UL)) -#define bFM4_MFT1_ADCMP_ACSD0_UE *((volatile unsigned int*)(0x42423ab8UL)) -#define bFM4_MFT1_ADCMP_ACSD0_ZE *((volatile unsigned int*)(0x42423abcUL)) -#define bFM4_MFT1_ADCMP_ACSD1_AMOD *((volatile unsigned int*)(0x42423b20UL)) -#define bFM4_MFT1_ADCMP_ACSD1_OCUS *((volatile unsigned int*)(0x42423b24UL)) -#define bFM4_MFT1_ADCMP_ACSD1_DE *((volatile unsigned int*)(0x42423b30UL)) -#define bFM4_MFT1_ADCMP_ACSD1_PE *((volatile unsigned int*)(0x42423b34UL)) -#define bFM4_MFT1_ADCMP_ACSD1_UE *((volatile unsigned int*)(0x42423b38UL)) -#define bFM4_MFT1_ADCMP_ACSD1_ZE *((volatile unsigned int*)(0x42423b3cUL)) -#define bFM4_MFT1_ADCMP_ACSD2_AMOD *((volatile unsigned int*)(0x42423ba0UL)) -#define bFM4_MFT1_ADCMP_ACSD2_OCUS *((volatile unsigned int*)(0x42423ba4UL)) -#define bFM4_MFT1_ADCMP_ACSD2_DE *((volatile unsigned int*)(0x42423bb0UL)) -#define bFM4_MFT1_ADCMP_ACSD2_PE *((volatile unsigned int*)(0x42423bb4UL)) -#define bFM4_MFT1_ADCMP_ACSD2_UE *((volatile unsigned int*)(0x42423bb8UL)) -#define bFM4_MFT1_ADCMP_ACSD2_ZE *((volatile unsigned int*)(0x42423bbcUL)) -#define bFM4_MFT1_ADCMP_ACSD3_AMOD *((volatile unsigned int*)(0x42423c20UL)) -#define bFM4_MFT1_ADCMP_ACSD3_OCUS *((volatile unsigned int*)(0x42423c24UL)) -#define bFM4_MFT1_ADCMP_ACSD3_DE *((volatile unsigned int*)(0x42423c30UL)) -#define bFM4_MFT1_ADCMP_ACSD3_PE *((volatile unsigned int*)(0x42423c34UL)) -#define bFM4_MFT1_ADCMP_ACSD3_UE *((volatile unsigned int*)(0x42423c38UL)) -#define bFM4_MFT1_ADCMP_ACSD3_ZE *((volatile unsigned int*)(0x42423c3cUL)) -#define bFM4_MFT1_ADCMP_ACSD4_AMOD *((volatile unsigned int*)(0x42423ca0UL)) -#define bFM4_MFT1_ADCMP_ACSD4_OCUS *((volatile unsigned int*)(0x42423ca4UL)) -#define bFM4_MFT1_ADCMP_ACSD4_DE *((volatile unsigned int*)(0x42423cb0UL)) -#define bFM4_MFT1_ADCMP_ACSD4_PE *((volatile unsigned int*)(0x42423cb4UL)) -#define bFM4_MFT1_ADCMP_ACSD4_UE *((volatile unsigned int*)(0x42423cb8UL)) -#define bFM4_MFT1_ADCMP_ACSD4_ZE *((volatile unsigned int*)(0x42423cbcUL)) -#define bFM4_MFT1_ADCMP_ACSD5_AMOD *((volatile unsigned int*)(0x42423d20UL)) -#define bFM4_MFT1_ADCMP_ACSD5_OCUS *((volatile unsigned int*)(0x42423d24UL)) -#define bFM4_MFT1_ADCMP_ACSD5_DE *((volatile unsigned int*)(0x42423d30UL)) -#define bFM4_MFT1_ADCMP_ACSD5_PE *((volatile unsigned int*)(0x42423d34UL)) -#define bFM4_MFT1_ADCMP_ACSD5_UE *((volatile unsigned int*)(0x42423d38UL)) -#define bFM4_MFT1_ADCMP_ACSD5_ZE *((volatile unsigned int*)(0x42423d3cUL)) - -/* Multifunction Timer unit 2 Free Running Timer registers */ -#define bFM4_MFT2_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42442900UL)) -#define bFM4_MFT2_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42442904UL)) -#define bFM4_MFT2_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42442908UL)) -#define bFM4_MFT2_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4244290cUL)) -#define bFM4_MFT2_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42442910UL)) -#define bFM4_MFT2_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42442914UL)) -#define bFM4_MFT2_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42442918UL)) -#define bFM4_MFT2_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4244291cUL)) -#define bFM4_MFT2_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42442920UL)) -#define bFM4_MFT2_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42442924UL)) -#define bFM4_MFT2_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42442934UL)) -#define bFM4_MFT2_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42442938UL)) -#define bFM4_MFT2_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4244293cUL)) -#define bFM4_MFT2_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42442a80UL)) -#define bFM4_MFT2_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42442a84UL)) -#define bFM4_MFT2_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42442a88UL)) -#define bFM4_MFT2_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x42442a8cUL)) -#define bFM4_MFT2_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42442a90UL)) -#define bFM4_MFT2_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42442a94UL)) -#define bFM4_MFT2_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42442a98UL)) -#define bFM4_MFT2_FRT_TCSA1_BFE *((volatile unsigned int*)(0x42442a9cUL)) -#define bFM4_MFT2_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42442aa0UL)) -#define bFM4_MFT2_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42442aa4UL)) -#define bFM4_MFT2_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42442ab4UL)) -#define bFM4_MFT2_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42442ab8UL)) -#define bFM4_MFT2_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x42442abcUL)) -#define bFM4_MFT2_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42442c00UL)) -#define bFM4_MFT2_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42442c04UL)) -#define bFM4_MFT2_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42442c08UL)) -#define bFM4_MFT2_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42442c0cUL)) -#define bFM4_MFT2_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42442c10UL)) -#define bFM4_MFT2_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42442c14UL)) -#define bFM4_MFT2_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42442c18UL)) -#define bFM4_MFT2_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42442c1cUL)) -#define bFM4_MFT2_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42442c20UL)) -#define bFM4_MFT2_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42442c24UL)) -#define bFM4_MFT2_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42442c34UL)) -#define bFM4_MFT2_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42442c38UL)) -#define bFM4_MFT2_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42442c3cUL)) -#define bFM4_MFT2_FRT_TCAL_STOP00 *((volatile unsigned int*)(0x42442c80UL)) -#define bFM4_MFT2_FRT_TCAL_STOP01 *((volatile unsigned int*)(0x42442c84UL)) -#define bFM4_MFT2_FRT_TCAL_STOP02 *((volatile unsigned int*)(0x42442c88UL)) -#define bFM4_MFT2_FRT_TCAL_STOP10 *((volatile unsigned int*)(0x42442c8cUL)) -#define bFM4_MFT2_FRT_TCAL_STOP11 *((volatile unsigned int*)(0x42442c90UL)) -#define bFM4_MFT2_FRT_TCAL_STOP12 *((volatile unsigned int*)(0x42442c94UL)) -#define bFM4_MFT2_FRT_TCAL_STOP20 *((volatile unsigned int*)(0x42442c98UL)) -#define bFM4_MFT2_FRT_TCAL_STOP21 *((volatile unsigned int*)(0x42442c9cUL)) -#define bFM4_MFT2_FRT_TCAL_STOP22 *((volatile unsigned int*)(0x42442ca0UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR00 *((volatile unsigned int*)(0x42442cc0UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR01 *((volatile unsigned int*)(0x42442cc4UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR02 *((volatile unsigned int*)(0x42442cc8UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR10 *((volatile unsigned int*)(0x42442cccUL)) -#define bFM4_MFT2_FRT_TCAL_SCLR11 *((volatile unsigned int*)(0x42442cd0UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR12 *((volatile unsigned int*)(0x42442cd4UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR20 *((volatile unsigned int*)(0x42442cd8UL)) -#define bFM4_MFT2_FRT_TCAL_SCLR21 *((volatile unsigned int*)(0x42442cdcUL)) -#define bFM4_MFT2_FRT_TCAL_SCLR22 *((volatile unsigned int*)(0x42442ce0UL)) - -/* Multifunction Timer unit 2 Output Compare Unit registers */ -#define bFM4_MFT2_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42442300UL)) -#define bFM4_MFT2_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42442304UL)) -#define bFM4_MFT2_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42442310UL)) -#define bFM4_MFT2_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42442314UL)) -#define bFM4_MFT2_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42442318UL)) -#define bFM4_MFT2_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4244231cUL)) -#define bFM4_MFT2_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42442320UL)) -#define bFM4_MFT2_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42442324UL)) -#define bFM4_MFT2_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42442330UL)) -#define bFM4_MFT2_OCU_OCSB10_FM4 *((volatile unsigned int*)(0x4244233cUL)) -#define bFM4_MFT2_OCU_OCSA32_CST0 *((volatile unsigned int*)(0x42442380UL)) -#define bFM4_MFT2_OCU_OCSA32_CST1 *((volatile unsigned int*)(0x42442384UL)) -#define bFM4_MFT2_OCU_OCSA32_IOE0 *((volatile unsigned int*)(0x42442390UL)) -#define bFM4_MFT2_OCU_OCSA32_IOE1 *((volatile unsigned int*)(0x42442394UL)) -#define bFM4_MFT2_OCU_OCSA32_IOP0 *((volatile unsigned int*)(0x42442398UL)) -#define bFM4_MFT2_OCU_OCSA32_IOP1 *((volatile unsigned int*)(0x4244239cUL)) -#define bFM4_MFT2_OCU_OCSB32_OTD0 *((volatile unsigned int*)(0x424423a0UL)) -#define bFM4_MFT2_OCU_OCSB32_OTD1 *((volatile unsigned int*)(0x424423a4UL)) -#define bFM4_MFT2_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424423b0UL)) -#define bFM4_MFT2_OCU_OCSB32_FM4 *((volatile unsigned int*)(0x424423bcUL)) -#define bFM4_MFT2_OCU_OCSA54_CST0 *((volatile unsigned int*)(0x42442400UL)) -#define bFM4_MFT2_OCU_OCSA54_CST1 *((volatile unsigned int*)(0x42442404UL)) -#define bFM4_MFT2_OCU_OCSA54_IOE0 *((volatile unsigned int*)(0x42442410UL)) -#define bFM4_MFT2_OCU_OCSA54_IOE1 *((volatile unsigned int*)(0x42442414UL)) -#define bFM4_MFT2_OCU_OCSA54_IOP0 *((volatile unsigned int*)(0x42442418UL)) -#define bFM4_MFT2_OCU_OCSA54_IOP1 *((volatile unsigned int*)(0x4244241cUL)) -#define bFM4_MFT2_OCU_OCSB54_OTD0 *((volatile unsigned int*)(0x42442420UL)) -#define bFM4_MFT2_OCU_OCSB54_OTD1 *((volatile unsigned int*)(0x42442424UL)) -#define bFM4_MFT2_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42442430UL)) -#define bFM4_MFT2_OCU_OCSB54_FM4 *((volatile unsigned int*)(0x4244243cUL)) -#define bFM4_MFT2_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424424a0UL)) -#define bFM4_MFT2_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424424a4UL)) -#define bFM4_MFT2_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424424a8UL)) -#define bFM4_MFT2_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424424acUL)) -#define bFM4_MFT2_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424424b0UL)) -#define bFM4_MFT2_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424424b4UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42442d00UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42442d04UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42442d08UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42442d0cUL)) -#define bFM4_MFT2_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42442d10UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42442d14UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42442d18UL)) -#define bFM4_MFT2_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42442d1cUL)) -#define bFM4_MFT2_OCU_OCFS32_FSO00 *((volatile unsigned int*)(0x42442d20UL)) -#define bFM4_MFT2_OCU_OCFS32_FSO01 *((volatile unsigned int*)(0x42442d24UL)) -#define bFM4_MFT2_OCU_OCFS32_FSO02 *((volatile unsigned int*)(0x42442d28UL)) -#define bFM4_MFT2_OCU_OCFS32_FSO03 *((volatile unsigned int*)(0x42442d2cUL)) -#define bFM4_MFT2_OCU_OCFS32_FSO10 *((volatile unsigned int*)(0x42442d30UL)) -#define bFM4_MFT2_OCU_OCFS32_FSO11 *((volatile unsigned int*)(0x42442d34UL)) -#define bFM4_MFT2_OCU_OCFS32_FSO12 *((volatile unsigned int*)(0x42442d38UL)) -#define bFM4_MFT2_OCU_OCFS32_FSO13 *((volatile unsigned int*)(0x42442d3cUL)) -#define bFM4_MFT2_OCU_OCFS54_FSO00 *((volatile unsigned int*)(0x42442d40UL)) -#define bFM4_MFT2_OCU_OCFS54_FSO01 *((volatile unsigned int*)(0x42442d44UL)) -#define bFM4_MFT2_OCU_OCFS54_FSO02 *((volatile unsigned int*)(0x42442d48UL)) -#define bFM4_MFT2_OCU_OCFS54_FSO03 *((volatile unsigned int*)(0x42442d4cUL)) -#define bFM4_MFT2_OCU_OCFS54_FSO10 *((volatile unsigned int*)(0x42442d50UL)) -#define bFM4_MFT2_OCU_OCFS54_FSO11 *((volatile unsigned int*)(0x42442d54UL)) -#define bFM4_MFT2_OCU_OCFS54_FSO12 *((volatile unsigned int*)(0x42442d58UL)) -#define bFM4_MFT2_OCU_OCFS54_FSO13 *((volatile unsigned int*)(0x42442d5cUL)) - -/* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ -#define bFM4_MFT2_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42443480UL)) -#define bFM4_MFT2_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42443484UL)) -#define bFM4_MFT2_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42443488UL)) -#define bFM4_MFT2_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42443498UL)) -#define bFM4_MFT2_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4244349cUL)) -#define bFM4_MFT2_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424434a0UL)) -#define bFM4_MFT2_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424434a4UL)) -#define bFM4_MFT2_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424434a8UL)) -#define bFM4_MFT2_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424434acUL)) -#define bFM4_MFT2_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42443500UL)) -#define bFM4_MFT2_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42443504UL)) -#define bFM4_MFT2_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42443508UL)) -#define bFM4_MFT2_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42443518UL)) -#define bFM4_MFT2_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4244351cUL)) -#define bFM4_MFT2_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42443520UL)) -#define bFM4_MFT2_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42443524UL)) -#define bFM4_MFT2_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42443528UL)) -#define bFM4_MFT2_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4244352cUL)) -#define bFM4_MFT2_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42443580UL)) -#define bFM4_MFT2_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42443584UL)) -#define bFM4_MFT2_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42443588UL)) -#define bFM4_MFT2_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42443598UL)) -#define bFM4_MFT2_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4244359cUL)) -#define bFM4_MFT2_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424435a0UL)) -#define bFM4_MFT2_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424435a4UL)) -#define bFM4_MFT2_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424435a8UL)) -#define bFM4_MFT2_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424435acUL)) -#define bFM4_MFT2_WFG_WFIR_DTIFA *((volatile unsigned int*)(0x42443600UL)) -#define bFM4_MFT2_WFG_WFIR_DTICA *((volatile unsigned int*)(0x42443604UL)) -#define bFM4_MFT2_WFG_WFIR_DTIFB *((volatile unsigned int*)(0x42443608UL)) -#define bFM4_MFT2_WFG_WFIR_DTICB *((volatile unsigned int*)(0x4244360cUL)) -#define bFM4_MFT2_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42443610UL)) -#define bFM4_MFT2_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42443614UL)) -#define bFM4_MFT2_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42443618UL)) -#define bFM4_MFT2_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4244361cUL)) -#define bFM4_MFT2_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42443620UL)) -#define bFM4_MFT2_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42443624UL)) -#define bFM4_MFT2_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42443628UL)) -#define bFM4_MFT2_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4244362cUL)) -#define bFM4_MFT2_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42443630UL)) -#define bFM4_MFT2_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42443634UL)) -#define bFM4_MFT2_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42443638UL)) -#define bFM4_MFT2_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4244363cUL)) -#define bFM4_MFT2_WFG_NZCL_DTIEA *((volatile unsigned int*)(0x42443680UL)) -#define bFM4_MFT2_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42443684UL)) -#define bFM4_MFT2_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42443688UL)) -#define bFM4_MFT2_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4244368cUL)) -#define bFM4_MFT2_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42443690UL)) -#define bFM4_MFT2_WFG_NZCL_DTIEB *((volatile unsigned int*)(0x42443694UL)) -#define bFM4_MFT2_WFG_NZCL_DIMA *((volatile unsigned int*)(0x424436a0UL)) -#define bFM4_MFT2_WFG_NZCL_DIMB *((volatile unsigned int*)(0x424436a4UL)) -#define bFM4_MFT2_WFG_NZCL_WIM10 *((volatile unsigned int*)(0x424436b0UL)) -#define bFM4_MFT2_WFG_NZCL_WIM32 *((volatile unsigned int*)(0x424436b4UL)) -#define bFM4_MFT2_WFG_NZCL_WIM54 *((volatile unsigned int*)(0x424436b8UL)) - -/* Multifunction Timer unit 2 Input Capture Unit registers */ -#define bFM4_MFT2_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42442d80UL)) -#define bFM4_MFT2_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42442d84UL)) -#define bFM4_MFT2_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42442d88UL)) -#define bFM4_MFT2_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42442d8cUL)) -#define bFM4_MFT2_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42442d90UL)) -#define bFM4_MFT2_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42442d94UL)) -#define bFM4_MFT2_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42442d98UL)) -#define bFM4_MFT2_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42442d9cUL)) -#define bFM4_MFT2_ICU_ICFS32_FSI00 *((volatile unsigned int*)(0x42442da0UL)) -#define bFM4_MFT2_ICU_ICFS32_FSI01 *((volatile unsigned int*)(0x42442da4UL)) -#define bFM4_MFT2_ICU_ICFS32_FSI02 *((volatile unsigned int*)(0x42442da8UL)) -#define bFM4_MFT2_ICU_ICFS32_FSI03 *((volatile unsigned int*)(0x42442dacUL)) -#define bFM4_MFT2_ICU_ICFS32_FSI10 *((volatile unsigned int*)(0x42442db0UL)) -#define bFM4_MFT2_ICU_ICFS32_FSI11 *((volatile unsigned int*)(0x42442db4UL)) -#define bFM4_MFT2_ICU_ICFS32_FSI12 *((volatile unsigned int*)(0x42442db8UL)) -#define bFM4_MFT2_ICU_ICFS32_FSI13 *((volatile unsigned int*)(0x42442dbcUL)) -#define bFM4_MFT2_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42443080UL)) -#define bFM4_MFT2_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42443084UL)) -#define bFM4_MFT2_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42443088UL)) -#define bFM4_MFT2_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x4244308cUL)) -#define bFM4_MFT2_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42443090UL)) -#define bFM4_MFT2_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42443094UL)) -#define bFM4_MFT2_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42443098UL)) -#define bFM4_MFT2_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x4244309cUL)) -#define bFM4_MFT2_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x424430a0UL)) -#define bFM4_MFT2_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x424430a4UL)) -#define bFM4_MFT2_ICU_ICSA32_EG00 *((volatile unsigned int*)(0x42443100UL)) -#define bFM4_MFT2_ICU_ICSA32_EG01 *((volatile unsigned int*)(0x42443104UL)) -#define bFM4_MFT2_ICU_ICSA32_EG10 *((volatile unsigned int*)(0x42443108UL)) -#define bFM4_MFT2_ICU_ICSA32_EG11 *((volatile unsigned int*)(0x4244310cUL)) -#define bFM4_MFT2_ICU_ICSA32_ICE0 *((volatile unsigned int*)(0x42443110UL)) -#define bFM4_MFT2_ICU_ICSA32_ICE1 *((volatile unsigned int*)(0x42443114UL)) -#define bFM4_MFT2_ICU_ICSA32_ICP0 *((volatile unsigned int*)(0x42443118UL)) -#define bFM4_MFT2_ICU_ICSA32_ICP1 *((volatile unsigned int*)(0x4244311cUL)) -#define bFM4_MFT2_ICU_ICSB32_IEI0 *((volatile unsigned int*)(0x42443120UL)) -#define bFM4_MFT2_ICU_ICSB32_IEI1 *((volatile unsigned int*)(0x42443124UL)) - -/* Multifunction Timer unit 2 ADC Start Compare Unit registers */ -#define bFM4_MFT2_ADCMP_ACSD0_AMOD *((volatile unsigned int*)(0x42443aa0UL)) -#define bFM4_MFT2_ADCMP_ACSD0_OCUS *((volatile unsigned int*)(0x42443aa4UL)) -#define bFM4_MFT2_ADCMP_ACSD0_DE *((volatile unsigned int*)(0x42443ab0UL)) -#define bFM4_MFT2_ADCMP_ACSD0_PE *((volatile unsigned int*)(0x42443ab4UL)) -#define bFM4_MFT2_ADCMP_ACSD0_UE *((volatile unsigned int*)(0x42443ab8UL)) -#define bFM4_MFT2_ADCMP_ACSD0_ZE *((volatile unsigned int*)(0x42443abcUL)) -#define bFM4_MFT2_ADCMP_ACSD1_AMOD *((volatile unsigned int*)(0x42443b20UL)) -#define bFM4_MFT2_ADCMP_ACSD1_OCUS *((volatile unsigned int*)(0x42443b24UL)) -#define bFM4_MFT2_ADCMP_ACSD1_DE *((volatile unsigned int*)(0x42443b30UL)) -#define bFM4_MFT2_ADCMP_ACSD1_PE *((volatile unsigned int*)(0x42443b34UL)) -#define bFM4_MFT2_ADCMP_ACSD1_UE *((volatile unsigned int*)(0x42443b38UL)) -#define bFM4_MFT2_ADCMP_ACSD1_ZE *((volatile unsigned int*)(0x42443b3cUL)) -#define bFM4_MFT2_ADCMP_ACSD2_AMOD *((volatile unsigned int*)(0x42443ba0UL)) -#define bFM4_MFT2_ADCMP_ACSD2_OCUS *((volatile unsigned int*)(0x42443ba4UL)) -#define bFM4_MFT2_ADCMP_ACSD2_DE *((volatile unsigned int*)(0x42443bb0UL)) -#define bFM4_MFT2_ADCMP_ACSD2_PE *((volatile unsigned int*)(0x42443bb4UL)) -#define bFM4_MFT2_ADCMP_ACSD2_UE *((volatile unsigned int*)(0x42443bb8UL)) -#define bFM4_MFT2_ADCMP_ACSD2_ZE *((volatile unsigned int*)(0x42443bbcUL)) -#define bFM4_MFT2_ADCMP_ACSD3_AMOD *((volatile unsigned int*)(0x42443c20UL)) -#define bFM4_MFT2_ADCMP_ACSD3_OCUS *((volatile unsigned int*)(0x42443c24UL)) -#define bFM4_MFT2_ADCMP_ACSD3_DE *((volatile unsigned int*)(0x42443c30UL)) -#define bFM4_MFT2_ADCMP_ACSD3_PE *((volatile unsigned int*)(0x42443c34UL)) -#define bFM4_MFT2_ADCMP_ACSD3_UE *((volatile unsigned int*)(0x42443c38UL)) -#define bFM4_MFT2_ADCMP_ACSD3_ZE *((volatile unsigned int*)(0x42443c3cUL)) -#define bFM4_MFT2_ADCMP_ACSD4_AMOD *((volatile unsigned int*)(0x42443ca0UL)) -#define bFM4_MFT2_ADCMP_ACSD4_OCUS *((volatile unsigned int*)(0x42443ca4UL)) -#define bFM4_MFT2_ADCMP_ACSD4_DE *((volatile unsigned int*)(0x42443cb0UL)) -#define bFM4_MFT2_ADCMP_ACSD4_PE *((volatile unsigned int*)(0x42443cb4UL)) -#define bFM4_MFT2_ADCMP_ACSD4_UE *((volatile unsigned int*)(0x42443cb8UL)) -#define bFM4_MFT2_ADCMP_ACSD4_ZE *((volatile unsigned int*)(0x42443cbcUL)) -#define bFM4_MFT2_ADCMP_ACSD5_AMOD *((volatile unsigned int*)(0x42443d20UL)) -#define bFM4_MFT2_ADCMP_ACSD5_OCUS *((volatile unsigned int*)(0x42443d24UL)) -#define bFM4_MFT2_ADCMP_ACSD5_DE *((volatile unsigned int*)(0x42443d30UL)) -#define bFM4_MFT2_ADCMP_ACSD5_PE *((volatile unsigned int*)(0x42443d34UL)) -#define bFM4_MFT2_ADCMP_ACSD5_UE *((volatile unsigned int*)(0x42443d38UL)) -#define bFM4_MFT2_ADCMP_ACSD5_ZE *((volatile unsigned int*)(0x42443d3cUL)) - -/* Multifunction Timer PPG registers */ -#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) -#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) -#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) -#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) -#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) -#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) -#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) -#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) -#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) -#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) -#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) -#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) -#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) -#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) -#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) -#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) -#define bFM3_MFT_PPG_TTCR2_STR2 *((volatile unsigned int*)(0x42480820UL)) -#define bFM3_MFT_PPG_TTCR2_MONI2 *((volatile unsigned int*)(0x42480824UL)) -#define bFM3_MFT_PPG_TTCR2_CS20 *((volatile unsigned int*)(0x42480828UL)) -#define bFM3_MFT_PPG_TTCR2_CS21 *((volatile unsigned int*)(0x4248082CUL)) -#define bFM3_MFT_PPG_TTCR2_TRG16O *((volatile unsigned int*)(0x42480830UL)) -#define bFM3_MFT_PPG_TTCR2_TRG18O *((volatile unsigned int*)(0x42480834UL)) -#define bFM3_MFT_PPG_TTCR2_TRG20O *((volatile unsigned int*)(0x42480838UL)) -#define bFM3_MFT_PPG_TTCR2_TRG22O *((volatile unsigned int*)(0x4248083CUL)) -#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) -#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) -#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) -#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) -#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) -#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) -#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) -#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) -#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) -#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) -#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) -#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) -#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) -#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) -#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) -#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) -#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) -#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) -#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) -#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) -#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) -#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) -#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) -#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) -#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) -#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) -#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) -#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) -#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) -#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) -#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) -#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) -#define bFM3_MFT_PPG_TRG1_PEN16 *((volatile unsigned int*)(0x42482800UL)) -#define bFM3_MFT_PPG_TRG1_PEN17 *((volatile unsigned int*)(0x42482804UL)) -#define bFM3_MFT_PPG_TRG1_PEN18 *((volatile unsigned int*)(0x42482808UL)) -#define bFM3_MFT_PPG_TRG1_PEN19 *((volatile unsigned int*)(0x4248280CUL)) -#define bFM3_MFT_PPG_TRG1_PEN20 *((volatile unsigned int*)(0x42482810UL)) -#define bFM3_MFT_PPG_TRG1_PEN21 *((volatile unsigned int*)(0x42482814UL)) -#define bFM3_MFT_PPG_TRG1_PEN22 *((volatile unsigned int*)(0x42482818UL)) -#define bFM3_MFT_PPG_TRG1_PEN23 *((volatile unsigned int*)(0x4248281CUL)) -#define bFM3_MFT_PPG_REVC1_REV16 *((volatile unsigned int*)(0x42482880UL)) -#define bFM3_MFT_PPG_REVC1_REV17 *((volatile unsigned int*)(0x42482884UL)) -#define bFM3_MFT_PPG_REVC1_REV18 *((volatile unsigned int*)(0x42482888UL)) -#define bFM3_MFT_PPG_REVC1_REV19 *((volatile unsigned int*)(0x4248288CUL)) -#define bFM3_MFT_PPG_REVC1_REV20 *((volatile unsigned int*)(0x42482890UL)) -#define bFM3_MFT_PPG_REVC1_REV21 *((volatile unsigned int*)(0x42482894UL)) -#define bFM3_MFT_PPG_REVC1_REV22 *((volatile unsigned int*)(0x42482898UL)) -#define bFM3_MFT_PPG_REVC1_REV23 *((volatile unsigned int*)(0x4248289CUL)) -#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) -#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) -#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) -#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) -#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) -#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) -#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) -#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) -#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) -#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) -#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) -#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) -#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) -#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) -#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) -#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) -#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) -#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) -#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) -#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) -#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) -#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) -#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) -#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) -#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) -#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) -#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) -#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) -#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) -#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) -#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) -#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) -#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) -#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) -#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) -#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) -#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) -#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) -#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) -#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) -#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) -#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) -#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) -#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) -#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) -#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) -#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) -#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) -#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) -#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) -#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) -#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) -#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) -#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) -#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) -#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) -#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) -#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) -#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) -#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) -#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) -#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) -#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) -#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) -#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) -#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) -#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) -#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) -#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) -#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) -#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) -#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) -#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) -#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) -#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) -#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) -#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) -#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) -#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) -#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) -#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) -#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) -#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) -#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) -#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) -#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) -#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) -#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) -#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) -#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) -#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) -#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) -#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) -#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) -#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) -#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) -#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) -#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) -#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) -#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) -#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) -#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) -#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) -#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) -#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) -#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) -#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) -#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) -#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) -#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) -#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) -#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) -#define bFM3_MFT_PPG_PPGC17_TTRG *((volatile unsigned int*)(0x42486000UL)) -#define bFM3_MFT_PPG_PPGC17_PCS0 *((volatile unsigned int*)(0x4248600CUL)) -#define bFM3_MFT_PPG_PPGC17_PCS1 *((volatile unsigned int*)(0x42486010UL)) -#define bFM3_MFT_PPG_PPGC17_INTM *((volatile unsigned int*)(0x42486014UL)) -#define bFM3_MFT_PPG_PPGC17_PUF *((volatile unsigned int*)(0x42486018UL)) -#define bFM3_MFT_PPG_PPGC17_PIE *((volatile unsigned int*)(0x4248601CUL)) -#define bFM3_MFT_PPG_PPGC16_TTRG *((volatile unsigned int*)(0x42486020UL)) -#define bFM3_MFT_PPG_PPGC16_PCS0 *((volatile unsigned int*)(0x4248602CUL)) -#define bFM3_MFT_PPG_PPGC16_PCS1 *((volatile unsigned int*)(0x42486030UL)) -#define bFM3_MFT_PPG_PPGC16_INTM *((volatile unsigned int*)(0x42486034UL)) -#define bFM3_MFT_PPG_PPGC16_PUF *((volatile unsigned int*)(0x42486038UL)) -#define bFM3_MFT_PPG_PPGC16_PIE *((volatile unsigned int*)(0x4248603CUL)) -#define bFM3_MFT_PPG_PPGC19_TTRG *((volatile unsigned int*)(0x42486080UL)) -#define bFM3_MFT_PPG_PPGC19_PCS0 *((volatile unsigned int*)(0x4248608CUL)) -#define bFM3_MFT_PPG_PPGC19_PCS1 *((volatile unsigned int*)(0x42486090UL)) -#define bFM3_MFT_PPG_PPGC19_INTM *((volatile unsigned int*)(0x42486094UL)) -#define bFM3_MFT_PPG_PPGC19_PUF *((volatile unsigned int*)(0x42486098UL)) -#define bFM3_MFT_PPG_PPGC19_PIE *((volatile unsigned int*)(0x4248609CUL)) -#define bFM3_MFT_PPG_PPGC18_TTRG *((volatile unsigned int*)(0x424860A0UL)) -#define bFM3_MFT_PPG_PPGC18_PCS0 *((volatile unsigned int*)(0x424860ACUL)) -#define bFM3_MFT_PPG_PPGC18_PCS1 *((volatile unsigned int*)(0x424860B0UL)) -#define bFM3_MFT_PPG_PPGC18_INTM *((volatile unsigned int*)(0x424860B4UL)) -#define bFM3_MFT_PPG_PPGC18_PUF *((volatile unsigned int*)(0x424860B8UL)) -#define bFM3_MFT_PPG_PPGC18_PIE *((volatile unsigned int*)(0x424860BCUL)) -#define bFM3_MFT_PPG_GATEC16_EDGE16 *((volatile unsigned int*)(0x42486300UL)) -#define bFM3_MFT_PPG_GATEC16_STRG16 *((volatile unsigned int*)(0x42486304UL)) -#define bFM3_MFT_PPG_GATEC16_EDGE18 *((volatile unsigned int*)(0x42486310UL)) -#define bFM3_MFT_PPG_GATEC16_STRG18 *((volatile unsigned int*)(0x42486314UL)) -#define bFM3_MFT_PPG_PPGC21_TTRG *((volatile unsigned int*)(0x42486800UL)) -#define bFM3_MFT_PPG_PPGC21_PCS0 *((volatile unsigned int*)(0x4248680CUL)) -#define bFM3_MFT_PPG_PPGC21_PCS1 *((volatile unsigned int*)(0x42486810UL)) -#define bFM3_MFT_PPG_PPGC21_INTM *((volatile unsigned int*)(0x42486814UL)) -#define bFM3_MFT_PPG_PPGC21_PUF *((volatile unsigned int*)(0x42486818UL)) -#define bFM3_MFT_PPG_PPGC21_PIE *((volatile unsigned int*)(0x4248681CUL)) -#define bFM3_MFT_PPG_PPGC20_TTRG *((volatile unsigned int*)(0x42486820UL)) -#define bFM3_MFT_PPG_PPGC20_PCS0 *((volatile unsigned int*)(0x4248682CUL)) -#define bFM3_MFT_PPG_PPGC20_PCS1 *((volatile unsigned int*)(0x42486830UL)) -#define bFM3_MFT_PPG_PPGC20_INTM *((volatile unsigned int*)(0x42486834UL)) -#define bFM3_MFT_PPG_PPGC20_PUF *((volatile unsigned int*)(0x42486838UL)) -#define bFM3_MFT_PPG_PPGC20_PIE *((volatile unsigned int*)(0x4248683CUL)) -#define bFM3_MFT_PPG_PPGC23_TTRG *((volatile unsigned int*)(0x42486880UL)) -#define bFM3_MFT_PPG_PPGC23_PCS0 *((volatile unsigned int*)(0x4248688CUL)) -#define bFM3_MFT_PPG_PPGC23_PCS1 *((volatile unsigned int*)(0x42486890UL)) -#define bFM3_MFT_PPG_PPGC23_INTM *((volatile unsigned int*)(0x42486894UL)) -#define bFM3_MFT_PPG_PPGC23_PUF *((volatile unsigned int*)(0x42486898UL)) -#define bFM3_MFT_PPG_PPGC23_PIE *((volatile unsigned int*)(0x4248689CUL)) -#define bFM3_MFT_PPG_PPGC22_TTRG *((volatile unsigned int*)(0x424868A0UL)) -#define bFM3_MFT_PPG_PPGC22_PCS0 *((volatile unsigned int*)(0x424868ACUL)) -#define bFM3_MFT_PPG_PPGC22_PCS1 *((volatile unsigned int*)(0x424868B0UL)) -#define bFM3_MFT_PPG_PPGC22_INTM *((volatile unsigned int*)(0x424868B4UL)) -#define bFM3_MFT_PPG_PPGC22_PUF *((volatile unsigned int*)(0x424868B8UL)) -#define bFM3_MFT_PPG_PPGC22_PIE *((volatile unsigned int*)(0x424868BCUL)) -#define bFM3_MFT_PPG_GATEC20_EDGE20 *((volatile unsigned int*)(0x42486B00UL)) -#define bFM3_MFT_PPG_GATEC20_STRG20 *((volatile unsigned int*)(0x42486B04UL)) -#define bFM3_MFT_PPG_GATEC20_EDGE22 *((volatile unsigned int*)(0x42486B10UL)) -#define bFM3_MFT_PPG_GATEC20_STRG22 *((volatile unsigned int*)(0x42486B14UL)) - -/* Base Timer 0 PPG registers */ -#define bFM4_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM4_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM4_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM4_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM4_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM4_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM4_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM4_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM4_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM4_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM4_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM4_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM4_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM4_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM4_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM4_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM4_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM4_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM4_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWM registers */ -#define bFM4_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM4_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM4_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM4_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM4_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM4_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM4_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM4_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM4_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM4_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM4_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM4_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM4_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM4_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM4_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM4_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) -#define bFM4_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM4_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM4_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) -#define bFM4_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM4_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 RT registers */ -#define bFM4_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM4_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM4_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM4_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM4_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM4_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM4_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM4_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM4_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM4_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM4_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM4_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM4_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM4_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM4_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM4_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM4_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM4_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWC registers */ -#define bFM4_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM4_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM4_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM4_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM4_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM4_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM4_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM4_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM4_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM4_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM4_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM4_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM4_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM4_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM4_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM4_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM4_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) -#define bFM4_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 1 PPG registers */ -#define bFM4_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM4_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM4_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM4_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM4_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM4_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM4_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM4_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM4_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM4_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM4_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM4_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM4_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM4_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM4_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM4_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM4_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM4_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM4_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWM registers */ -#define bFM4_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM4_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM4_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM4_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM4_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM4_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM4_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM4_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM4_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM4_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM4_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM4_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM4_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM4_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM4_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM4_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) -#define bFM4_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM4_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM4_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) -#define bFM4_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM4_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 RT registers */ -#define bFM4_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM4_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM4_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM4_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM4_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM4_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM4_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM4_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM4_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM4_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM4_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM4_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM4_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM4_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM4_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM4_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM4_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM4_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWC registers */ -#define bFM4_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM4_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM4_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM4_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM4_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM4_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM4_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM4_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM4_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM4_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM4_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM4_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM4_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM4_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM4_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM4_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM4_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) -#define bFM4_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 2 PPG registers */ -#define bFM4_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM4_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM4_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM4_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM4_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM4_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM4_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM4_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM4_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM4_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM4_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM4_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM4_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM4_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM4_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM4_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM4_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM4_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM4_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWM registers */ -#define bFM4_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM4_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM4_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM4_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM4_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM4_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM4_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM4_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM4_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM4_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM4_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM4_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM4_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM4_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM4_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM4_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) -#define bFM4_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM4_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM4_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) -#define bFM4_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM4_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 RT registers */ -#define bFM4_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM4_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM4_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM4_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM4_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM4_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM4_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM4_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM4_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM4_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM4_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM4_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM4_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM4_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM4_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM4_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM4_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM4_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWC registers */ -#define bFM4_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM4_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM4_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM4_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM4_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM4_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM4_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM4_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM4_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM4_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM4_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM4_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM4_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM4_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM4_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM4_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM4_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) -#define bFM4_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 3 PPG registers */ -#define bFM4_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM4_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM4_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM4_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM4_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM4_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM4_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM4_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM4_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM4_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM4_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM4_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM4_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM4_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM4_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM4_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM4_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM4_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM4_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWM registers */ -#define bFM4_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM4_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM4_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM4_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM4_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM4_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM4_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM4_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM4_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM4_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM4_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM4_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM4_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM4_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM4_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM4_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) -#define bFM4_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM4_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM4_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) -#define bFM4_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM4_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 RT registers */ -#define bFM4_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM4_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM4_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM4_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM4_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM4_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM4_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM4_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM4_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM4_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM4_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM4_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM4_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM4_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM4_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM4_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM4_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM4_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWC registers */ -#define bFM4_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM4_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM4_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM4_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM4_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM4_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM4_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM4_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM4_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM4_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM4_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM4_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM4_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM4_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM4_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM4_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM4_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) -#define bFM4_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 4 PPG registers */ -#define bFM4_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM4_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM4_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM4_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM4_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM4_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM4_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM4_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM4_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM4_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM4_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM4_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM4_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM4_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM4_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM4_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM4_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM4_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM4_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWM registers */ -#define bFM4_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM4_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM4_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM4_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM4_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM4_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM4_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM4_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM4_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM4_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM4_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM4_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM4_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM4_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM4_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM4_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) -#define bFM4_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM4_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM4_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) -#define bFM4_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM4_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 RT registers */ -#define bFM4_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM4_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM4_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM4_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM4_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM4_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM4_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM4_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM4_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM4_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM4_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM4_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM4_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM4_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM4_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM4_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM4_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM4_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWC registers */ -#define bFM4_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM4_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM4_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM4_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM4_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM4_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM4_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM4_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM4_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM4_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM4_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM4_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM4_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM4_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM4_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM4_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM4_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) -#define bFM4_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 5 PPG registers */ -#define bFM4_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM4_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM4_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM4_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM4_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM4_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM4_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM4_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM4_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM4_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM4_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM4_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM4_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM4_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM4_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM4_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM4_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM4_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM4_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWM registers */ -#define bFM4_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM4_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM4_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM4_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM4_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM4_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM4_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM4_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM4_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM4_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM4_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM4_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM4_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM4_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM4_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM4_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) -#define bFM4_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM4_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM4_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) -#define bFM4_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM4_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 RT registers */ -#define bFM4_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM4_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM4_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM4_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM4_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM4_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM4_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM4_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM4_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM4_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM4_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM4_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM4_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM4_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM4_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM4_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM4_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM4_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWC registers */ -#define bFM4_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM4_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM4_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM4_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM4_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM4_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM4_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM4_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM4_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM4_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM4_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM4_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM4_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM4_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM4_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM4_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM4_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) -#define bFM4_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 6 PPG registers */ -#define bFM4_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM4_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM4_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM4_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM4_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM4_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM4_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM4_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM4_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM4_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM4_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM4_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM4_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM4_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM4_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM4_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM4_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM4_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM4_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWM registers */ -#define bFM4_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM4_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM4_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM4_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM4_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM4_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM4_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM4_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM4_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM4_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM4_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM4_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM4_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM4_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM4_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM4_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) -#define bFM4_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM4_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM4_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) -#define bFM4_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM4_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 RT registers */ -#define bFM4_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM4_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM4_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM4_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM4_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM4_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM4_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM4_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM4_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM4_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM4_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM4_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM4_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM4_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM4_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM4_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM4_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM4_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWC registers */ -#define bFM4_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM4_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM4_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM4_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM4_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM4_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM4_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM4_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM4_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM4_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM4_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM4_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM4_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM4_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM4_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM4_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM4_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) -#define bFM4_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 7 PPG registers */ -#define bFM4_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM4_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM4_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM4_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM4_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM4_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM4_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM4_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM4_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM4_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM4_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM4_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM4_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM4_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM4_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM4_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM4_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM4_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM4_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWM registers */ -#define bFM4_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM4_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM4_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM4_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM4_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM4_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM4_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM4_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM4_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM4_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM4_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM4_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM4_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM4_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM4_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM4_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) -#define bFM4_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM4_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM4_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) -#define bFM4_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM4_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 RT registers */ -#define bFM4_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM4_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM4_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM4_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM4_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM4_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM4_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM4_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM4_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM4_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM4_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM4_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM4_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM4_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM4_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM4_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM4_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM4_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWC registers */ -#define bFM4_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM4_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM4_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM4_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM4_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM4_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM4_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM4_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM4_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM4_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM4_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM4_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM4_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM4_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM4_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM4_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM4_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) -#define bFM4_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer I/O selector channel 0 - channel 3 registers */ -#define bFM4_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) -#define bFM4_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) - -/* Base Timer I/O selector channel 4 - channel 7 registers */ -#define bFM4_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) -#define bFM4_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) - -/* Base Timer 8 PPG registers */ -#define bFM4_BT8_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM4_BT8_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM4_BT8_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM4_BT8_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM4_BT8_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM4_BT8_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM4_BT8_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM4_BT8_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) -#define bFM4_BT8_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM4_BT8_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM4_BT8_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM4_BT8_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM4_BT8_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM4_BT8_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM4_BT8_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM4_BT8_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 PWM registers */ -#define bFM4_BT8_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM4_BT8_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM4_BT8_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM4_BT8_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM4_BT8_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM4_BT8_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM4_BT8_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM4_BT8_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) -#define bFM4_BT8_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM4_BT8_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM4_BT8_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM4_BT8_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM4_BT8_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8204UL)) -#define bFM4_BT8_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM4_BT8_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM4_BT8_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8214UL)) -#define bFM4_BT8_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM4_BT8_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 RT registers */ -#define bFM4_BT8_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM4_BT8_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM4_BT8_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM4_BT8_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM4_BT8_RT_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) -#define bFM4_BT8_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM4_BT8_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM4_BT8_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM4_BT8_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM4_BT8_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM4_BT8_RT_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM4_BT8_RT_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM4_BT8_RT_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM4_BT8_RT_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM4_BT8_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 PWC registers */ -#define bFM4_BT8_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM4_BT8_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM4_BT8_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) -#define bFM4_BT8_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM4_BT8_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM4_BT8_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM4_BT8_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM4_BT8_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM4_BT8_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM4_BT8_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM4_BT8_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM4_BT8_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM4_BT8_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM4_BT8_PWC_STC_ERR *((volatile unsigned int*)(0x424A821CUL)) -#define bFM4_BT8_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 9 PPG registers */ -#define bFM4_BT9_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM4_BT9_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM4_BT9_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM4_BT9_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM4_BT9_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM4_BT9_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM4_BT9_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM4_BT9_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) -#define bFM4_BT9_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM4_BT9_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM4_BT9_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM4_BT9_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM4_BT9_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM4_BT9_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM4_BT9_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM4_BT9_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 PWM registers */ -#define bFM4_BT9_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM4_BT9_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM4_BT9_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM4_BT9_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM4_BT9_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM4_BT9_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM4_BT9_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM4_BT9_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) -#define bFM4_BT9_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM4_BT9_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM4_BT9_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM4_BT9_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM4_BT9_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8A04UL)) -#define bFM4_BT9_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM4_BT9_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM4_BT9_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8A14UL)) -#define bFM4_BT9_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM4_BT9_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 RT registers */ -#define bFM4_BT9_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM4_BT9_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM4_BT9_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM4_BT9_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM4_BT9_RT_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) -#define bFM4_BT9_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM4_BT9_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM4_BT9_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM4_BT9_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM4_BT9_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM4_BT9_RT_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM4_BT9_RT_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM4_BT9_RT_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM4_BT9_RT_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM4_BT9_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 PWC registers */ -#define bFM4_BT9_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM4_BT9_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM4_BT9_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) -#define bFM4_BT9_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM4_BT9_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM4_BT9_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM4_BT9_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM4_BT9_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM4_BT9_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM4_BT9_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM4_BT9_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM4_BT9_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM4_BT9_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM4_BT9_PWC_STC_ERR *((volatile unsigned int*)(0x424A8A1CUL)) -#define bFM4_BT9_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 10 PPG registers */ -#define bFM4_BT10_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM4_BT10_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM4_BT10_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM4_BT10_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM4_BT10_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM4_BT10_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM4_BT10_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM4_BT10_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) -#define bFM4_BT10_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM4_BT10_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM4_BT10_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM4_BT10_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM4_BT10_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM4_BT10_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM4_BT10_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM4_BT10_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 PWM registers */ -#define bFM4_BT10_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM4_BT10_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM4_BT10_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM4_BT10_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM4_BT10_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM4_BT10_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM4_BT10_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM4_BT10_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) -#define bFM4_BT10_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM4_BT10_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM4_BT10_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM4_BT10_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM4_BT10_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9204UL)) -#define bFM4_BT10_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM4_BT10_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM4_BT10_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9214UL)) -#define bFM4_BT10_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM4_BT10_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 RT registers */ -#define bFM4_BT10_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM4_BT10_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM4_BT10_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM4_BT10_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM4_BT10_RT_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) -#define bFM4_BT10_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM4_BT10_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM4_BT10_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM4_BT10_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM4_BT10_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM4_BT10_RT_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM4_BT10_RT_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM4_BT10_RT_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM4_BT10_RT_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM4_BT10_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 PWC registers */ -#define bFM4_BT10_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM4_BT10_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM4_BT10_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) -#define bFM4_BT10_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM4_BT10_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM4_BT10_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM4_BT10_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM4_BT10_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM4_BT10_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM4_BT10_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM4_BT10_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM4_BT10_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM4_BT10_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM4_BT10_PWC_STC_ERR *((volatile unsigned int*)(0x424A921CUL)) -#define bFM4_BT10_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 11 PPG registers */ -#define bFM4_BT11_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM4_BT11_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM4_BT11_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM4_BT11_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM4_BT11_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM4_BT11_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM4_BT11_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM4_BT11_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) -#define bFM4_BT11_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM4_BT11_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM4_BT11_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM4_BT11_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM4_BT11_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM4_BT11_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM4_BT11_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM4_BT11_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 PWM registers */ -#define bFM4_BT11_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM4_BT11_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM4_BT11_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM4_BT11_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM4_BT11_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM4_BT11_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM4_BT11_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM4_BT11_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) -#define bFM4_BT11_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM4_BT11_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM4_BT11_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM4_BT11_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM4_BT11_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9A04UL)) -#define bFM4_BT11_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM4_BT11_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM4_BT11_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9A14UL)) -#define bFM4_BT11_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM4_BT11_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 RT registers */ -#define bFM4_BT11_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM4_BT11_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM4_BT11_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM4_BT11_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM4_BT11_RT_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) -#define bFM4_BT11_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM4_BT11_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM4_BT11_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM4_BT11_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM4_BT11_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM4_BT11_RT_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM4_BT11_RT_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM4_BT11_RT_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM4_BT11_RT_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM4_BT11_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 PWC registers */ -#define bFM4_BT11_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM4_BT11_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM4_BT11_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) -#define bFM4_BT11_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM4_BT11_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM4_BT11_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM4_BT11_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM4_BT11_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM4_BT11_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM4_BT11_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM4_BT11_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM4_BT11_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM4_BT11_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM4_BT11_PWC_STC_ERR *((volatile unsigned int*)(0x424A9A1CUL)) -#define bFM4_BT11_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 12 PPG registers */ -#define bFM4_BT12_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM4_BT12_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM4_BT12_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM4_BT12_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM4_BT12_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM4_BT12_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM4_BT12_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM4_BT12_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) -#define bFM4_BT12_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM4_BT12_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM4_BT12_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM4_BT12_PPG_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM4_BT12_PPG_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM4_BT12_PPG_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM4_BT12_PPG_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM4_BT12_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 PWM registers */ -#define bFM4_BT12_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM4_BT12_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM4_BT12_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM4_BT12_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM4_BT12_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM4_BT12_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM4_BT12_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM4_BT12_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) -#define bFM4_BT12_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM4_BT12_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM4_BT12_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM4_BT12_PWM_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM4_BT12_PWM_STC_DTIR *((volatile unsigned int*)(0x424AC204UL)) -#define bFM4_BT12_PWM_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM4_BT12_PWM_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM4_BT12_PWM_STC_DTIE *((volatile unsigned int*)(0x424AC214UL)) -#define bFM4_BT12_PWM_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM4_BT12_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 RT registers */ -#define bFM4_BT12_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM4_BT12_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM4_BT12_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM4_BT12_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM4_BT12_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) -#define bFM4_BT12_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM4_BT12_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM4_BT12_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM4_BT12_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM4_BT12_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM4_BT12_RT_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM4_BT12_RT_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM4_BT12_RT_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM4_BT12_RT_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM4_BT12_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 PWC registers */ -#define bFM4_BT12_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM4_BT12_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM4_BT12_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) -#define bFM4_BT12_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM4_BT12_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM4_BT12_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM4_BT12_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM4_BT12_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM4_BT12_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM4_BT12_PWC_STC_OVIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM4_BT12_PWC_STC_EDIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM4_BT12_PWC_STC_OVIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM4_BT12_PWC_STC_EDIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM4_BT12_PWC_STC_ERR *((volatile unsigned int*)(0x424AC21CUL)) -#define bFM4_BT12_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 13 PPG registers */ -#define bFM4_BT13_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM4_BT13_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM4_BT13_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM4_BT13_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM4_BT13_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM4_BT13_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM4_BT13_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM4_BT13_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) -#define bFM4_BT13_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM4_BT13_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM4_BT13_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM4_BT13_PPG_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM4_BT13_PPG_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM4_BT13_PPG_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM4_BT13_PPG_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM4_BT13_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 PWM registers */ -#define bFM4_BT13_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM4_BT13_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM4_BT13_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM4_BT13_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM4_BT13_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM4_BT13_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM4_BT13_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM4_BT13_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) -#define bFM4_BT13_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM4_BT13_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM4_BT13_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM4_BT13_PWM_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM4_BT13_PWM_STC_DTIR *((volatile unsigned int*)(0x424ACA04UL)) -#define bFM4_BT13_PWM_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM4_BT13_PWM_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM4_BT13_PWM_STC_DTIE *((volatile unsigned int*)(0x424ACA14UL)) -#define bFM4_BT13_PWM_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM4_BT13_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 RT registers */ -#define bFM4_BT13_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM4_BT13_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM4_BT13_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM4_BT13_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM4_BT13_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) -#define bFM4_BT13_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM4_BT13_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM4_BT13_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM4_BT13_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM4_BT13_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM4_BT13_RT_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM4_BT13_RT_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM4_BT13_RT_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM4_BT13_RT_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM4_BT13_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 PWC registers */ -#define bFM4_BT13_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM4_BT13_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM4_BT13_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) -#define bFM4_BT13_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM4_BT13_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM4_BT13_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM4_BT13_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM4_BT13_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM4_BT13_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM4_BT13_PWC_STC_OVIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM4_BT13_PWC_STC_EDIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM4_BT13_PWC_STC_OVIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM4_BT13_PWC_STC_EDIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM4_BT13_PWC_STC_ERR *((volatile unsigned int*)(0x424ACA1CUL)) -#define bFM4_BT13_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 14 PPG registers */ -#define bFM4_BT14_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM4_BT14_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM4_BT14_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM4_BT14_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM4_BT14_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM4_BT14_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM4_BT14_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM4_BT14_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) -#define bFM4_BT14_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM4_BT14_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM4_BT14_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM4_BT14_PPG_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM4_BT14_PPG_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM4_BT14_PPG_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM4_BT14_PPG_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM4_BT14_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 PWM registers */ -#define bFM4_BT14_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM4_BT14_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM4_BT14_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM4_BT14_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM4_BT14_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM4_BT14_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM4_BT14_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM4_BT14_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) -#define bFM4_BT14_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM4_BT14_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM4_BT14_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM4_BT14_PWM_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM4_BT14_PWM_STC_DTIR *((volatile unsigned int*)(0x424AD204UL)) -#define bFM4_BT14_PWM_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM4_BT14_PWM_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM4_BT14_PWM_STC_DTIE *((volatile unsigned int*)(0x424AD214UL)) -#define bFM4_BT14_PWM_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM4_BT14_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 RT registers */ -#define bFM4_BT14_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM4_BT14_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM4_BT14_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM4_BT14_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM4_BT14_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) -#define bFM4_BT14_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM4_BT14_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM4_BT14_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM4_BT14_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM4_BT14_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM4_BT14_RT_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM4_BT14_RT_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM4_BT14_RT_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM4_BT14_RT_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM4_BT14_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 PWC registers */ -#define bFM4_BT14_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM4_BT14_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM4_BT14_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) -#define bFM4_BT14_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM4_BT14_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM4_BT14_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM4_BT14_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM4_BT14_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM4_BT14_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM4_BT14_PWC_STC_OVIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM4_BT14_PWC_STC_EDIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM4_BT14_PWC_STC_OVIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM4_BT14_PWC_STC_EDIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM4_BT14_PWC_STC_ERR *((volatile unsigned int*)(0x424AD21CUL)) -#define bFM4_BT14_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 15 PPG registers */ -#define bFM4_BT15_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM4_BT15_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM4_BT15_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM4_BT15_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM4_BT15_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM4_BT15_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM4_BT15_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM4_BT15_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) -#define bFM4_BT15_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM4_BT15_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM4_BT15_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM4_BT15_PPG_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM4_BT15_PPG_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM4_BT15_PPG_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM4_BT15_PPG_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM4_BT15_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 PWM registers */ -#define bFM4_BT15_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM4_BT15_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM4_BT15_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM4_BT15_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM4_BT15_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM4_BT15_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM4_BT15_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM4_BT15_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) -#define bFM4_BT15_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM4_BT15_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM4_BT15_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM4_BT15_PWM_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM4_BT15_PWM_STC_DTIR *((volatile unsigned int*)(0x424ADA04UL)) -#define bFM4_BT15_PWM_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM4_BT15_PWM_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM4_BT15_PWM_STC_DTIE *((volatile unsigned int*)(0x424ADA14UL)) -#define bFM4_BT15_PWM_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM4_BT15_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 RT registers */ -#define bFM4_BT15_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM4_BT15_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM4_BT15_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM4_BT15_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM4_BT15_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) -#define bFM4_BT15_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM4_BT15_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM4_BT15_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM4_BT15_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM4_BT15_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM4_BT15_RT_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM4_BT15_RT_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM4_BT15_RT_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM4_BT15_RT_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM4_BT15_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 PWC registers */ -#define bFM4_BT15_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM4_BT15_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM4_BT15_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) -#define bFM4_BT15_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM4_BT15_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM4_BT15_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM4_BT15_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM4_BT15_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM4_BT15_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM4_BT15_PWC_STC_OVIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM4_BT15_PWC_STC_EDIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM4_BT15_PWC_STC_OVIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM4_BT15_PWC_STC_EDIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM4_BT15_PWC_STC_ERR *((volatile unsigned int*)(0x424ADA1CUL)) -#define bFM4_BT15_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer I/O selector channel 8 - channel 11 registers */ -#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_0 *((volatile unsigned int*)(0x424AA020UL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_1 *((volatile unsigned int*)(0x424AA024UL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_2 *((volatile unsigned int*)(0x424AA028UL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SEL89_3 *((volatile unsigned int*)(0x424AA02CUL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_0 *((volatile unsigned int*)(0x424AA030UL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_1 *((volatile unsigned int*)(0x424AA034UL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_2 *((volatile unsigned int*)(0x424AA038UL)) -#define bFM4_BTIOSEL8B_BTSEL89AB_SELAB_3 *((volatile unsigned int*)(0x424AA03CUL)) - -/* Base Timer I/O selector channel 12 - channel 15 registers */ -#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_0 *((volatile unsigned int*)(0x424AE020UL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_1 *((volatile unsigned int*)(0x424AE024UL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_2 *((volatile unsigned int*)(0x424AE028UL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELCD_3 *((volatile unsigned int*)(0x424AE02CUL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_0 *((volatile unsigned int*)(0x424AE030UL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_1 *((volatile unsigned int*)(0x424AE034UL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_2 *((volatile unsigned int*)(0x424AE038UL)) -#define bFM4_BTIOSELCF_BTSELCDEF_SELEF_3 *((volatile unsigned int*)(0x424AE03CUL)) - -/* Software based Simulation Startup (Base Timer) register */ -#define bFM4_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) -#define bFM4_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) -#define bFM4_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) -#define bFM4_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) -#define bFM4_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) -#define bFM4_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) -#define bFM4_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) -#define bFM4_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) -#define bFM4_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) -#define bFM4_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) -#define bFM4_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) -#define bFM4_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) -#define bFM4_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) -#define bFM4_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) -#define bFM4_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) -#define bFM4_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) - -/* Quad position and revolution counter channel 0 registers */ -#define bFM4_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM4_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM4_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM4_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM4_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM4_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM4_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM4_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM4_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM4_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM4_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM4_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM4_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM4_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM4_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM4_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM4_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM4_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM4_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM4_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM4_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM4_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM4_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM4_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM4_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM4_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM4_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM4_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM4_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM4_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM4_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM4_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM4_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM4_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM4_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM4_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM4_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM4_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM4_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM4_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM4_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM4_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM4_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM4_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM4_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM4_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM4_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM4_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM4_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM4_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM4_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM4_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM4_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM4_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM4_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM4_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM4_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM4_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM4_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM4_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM4_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) -#define bFM4_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) -#define bFM4_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) - -/* Quad position and revolution counter channel 1 registers */ -#define bFM4_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM4_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM4_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM4_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM4_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM4_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM4_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM4_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM4_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM4_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM4_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM4_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM4_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM4_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM4_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM4_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM4_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM4_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM4_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM4_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM4_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM4_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM4_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM4_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM4_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM4_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM4_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM4_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM4_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM4_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM4_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM4_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM4_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM4_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM4_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM4_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM4_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM4_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM4_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM4_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM4_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM4_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM4_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM4_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM4_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM4_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM4_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM4_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM4_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM4_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM4_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM4_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM4_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM4_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM4_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM4_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM4_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM4_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM4_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM4_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM4_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) -#define bFM4_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) -#define bFM4_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) - -/* Quad position and revolution counter channel 2 registers */ -#define bFM4_QPRC2_QICR_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) -#define bFM4_QPRC2_QICR_QPCMF *((volatile unsigned int*)(0x424C1284UL)) -#define bFM4_QPRC2_QICR_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) -#define bFM4_QPRC2_QICR_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) -#define bFM4_QPRC2_QICR_OUZIE *((volatile unsigned int*)(0x424C1290UL)) -#define bFM4_QPRC2_QICR_UFDF *((volatile unsigned int*)(0x424C1294UL)) -#define bFM4_QPRC2_QICR_OFDF *((volatile unsigned int*)(0x424C1298UL)) -#define bFM4_QPRC2_QICR_ZIIF *((volatile unsigned int*)(0x424C129CUL)) -#define bFM4_QPRC2_QICR_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) -#define bFM4_QPRC2_QICR_CDCF *((volatile unsigned int*)(0x424C12A4UL)) -#define bFM4_QPRC2_QICR_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) -#define bFM4_QPRC2_QICR_DIROU *((volatile unsigned int*)(0x424C12ACUL)) -#define bFM4_QPRC2_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) -#define bFM4_QPRC2_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) -#define bFM4_QPRC2_QICRL_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) -#define bFM4_QPRC2_QICRL_QPCMF *((volatile unsigned int*)(0x424C1284UL)) -#define bFM4_QPRC2_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) -#define bFM4_QPRC2_QICRL_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) -#define bFM4_QPRC2_QICRL_OUZIE *((volatile unsigned int*)(0x424C1290UL)) -#define bFM4_QPRC2_QICRL_UFDF *((volatile unsigned int*)(0x424C1294UL)) -#define bFM4_QPRC2_QICRL_OFDF *((volatile unsigned int*)(0x424C1298UL)) -#define bFM4_QPRC2_QICRL_ZIIF *((volatile unsigned int*)(0x424C129CUL)) -#define bFM4_QPRC2_QICRH_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) -#define bFM4_QPRC2_QICRH_CDCF *((volatile unsigned int*)(0x424C12A4UL)) -#define bFM4_QPRC2_QICRH_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) -#define bFM4_QPRC2_QICRH_DIROU *((volatile unsigned int*)(0x424C12ACUL)) -#define bFM4_QPRC2_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) -#define bFM4_QPRC2_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) -#define bFM4_QPRC2_QCR_PCM0 *((volatile unsigned int*)(0x424C1300UL)) -#define bFM4_QPRC2_QCR_PCM1 *((volatile unsigned int*)(0x424C1304UL)) -#define bFM4_QPRC2_QCR_RCM0 *((volatile unsigned int*)(0x424C1308UL)) -#define bFM4_QPRC2_QCR_RCM1 *((volatile unsigned int*)(0x424C130CUL)) -#define bFM4_QPRC2_QCR_PSTP *((volatile unsigned int*)(0x424C1310UL)) -#define bFM4_QPRC2_QCR_CGSC *((volatile unsigned int*)(0x424C1314UL)) -#define bFM4_QPRC2_QCR_RSEL *((volatile unsigned int*)(0x424C1318UL)) -#define bFM4_QPRC2_QCR_SWAP *((volatile unsigned int*)(0x424C131CUL)) -#define bFM4_QPRC2_QCR_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) -#define bFM4_QPRC2_QCR_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) -#define bFM4_QPRC2_QCR_AES0 *((volatile unsigned int*)(0x424C1328UL)) -#define bFM4_QPRC2_QCR_AES1 *((volatile unsigned int*)(0x424C132CUL)) -#define bFM4_QPRC2_QCR_BES0 *((volatile unsigned int*)(0x424C1330UL)) -#define bFM4_QPRC2_QCR_BES1 *((volatile unsigned int*)(0x424C1334UL)) -#define bFM4_QPRC2_QCR_CGE0 *((volatile unsigned int*)(0x424C1338UL)) -#define bFM4_QPRC2_QCR_CGE1 *((volatile unsigned int*)(0x424C133CUL)) -#define bFM4_QPRC2_QCRL_PCM0 *((volatile unsigned int*)(0x424C1300UL)) -#define bFM4_QPRC2_QCRL_PCM1 *((volatile unsigned int*)(0x424C1304UL)) -#define bFM4_QPRC2_QCRL_RCM0 *((volatile unsigned int*)(0x424C1308UL)) -#define bFM4_QPRC2_QCRL_RCM1 *((volatile unsigned int*)(0x424C130CUL)) -#define bFM4_QPRC2_QCRL_PSTP *((volatile unsigned int*)(0x424C1310UL)) -#define bFM4_QPRC2_QCRL_CGSC *((volatile unsigned int*)(0x424C1314UL)) -#define bFM4_QPRC2_QCRL_RSEL *((volatile unsigned int*)(0x424C1318UL)) -#define bFM4_QPRC2_QCRL_SWAP *((volatile unsigned int*)(0x424C131CUL)) -#define bFM4_QPRC2_QCRH_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) -#define bFM4_QPRC2_QCRH_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) -#define bFM4_QPRC2_QCRH_AES0 *((volatile unsigned int*)(0x424C1328UL)) -#define bFM4_QPRC2_QCRH_AES1 *((volatile unsigned int*)(0x424C132CUL)) -#define bFM4_QPRC2_QCRH_BES0 *((volatile unsigned int*)(0x424C1330UL)) -#define bFM4_QPRC2_QCRH_BES1 *((volatile unsigned int*)(0x424C1334UL)) -#define bFM4_QPRC2_QCRH_CGE0 *((volatile unsigned int*)(0x424C1338UL)) -#define bFM4_QPRC2_QCRH_CGE1 *((volatile unsigned int*)(0x424C133CUL)) -#define bFM4_QPRC2_QECR_ORNGMD *((volatile unsigned int*)(0x424C1380UL)) -#define bFM4_QPRC2_QECR_ORNGF *((volatile unsigned int*)(0x424C1384UL)) -#define bFM4_QPRC2_QECR_ORNGIE *((volatile unsigned int*)(0x424C1388UL)) - -/* Quad position and revolution counter channel 3 registers */ -#define bFM4_QPRC3_QICR_QPCMIE *((volatile unsigned int*)(0x424c1a80UL)) -#define bFM4_QPRC3_QICR_QPCMF *((volatile unsigned int*)(0x424c1a84UL)) -#define bFM4_QPRC3_QICR_QPRCMIE *((volatile unsigned int*)(0x424c1a88UL)) -#define bFM4_QPRC3_QICR_QPRCMF *((volatile unsigned int*)(0x424c1a8cUL)) -#define bFM4_QPRC3_QICR_OUZIE *((volatile unsigned int*)(0x424c1a90UL)) -#define bFM4_QPRC3_QICR_UFDF *((volatile unsigned int*)(0x424c1a94UL)) -#define bFM4_QPRC3_QICR_OFDF *((volatile unsigned int*)(0x424c1a98UL)) -#define bFM4_QPRC3_QICR_ZIIF *((volatile unsigned int*)(0x424c1a9cUL)) -#define bFM4_QPRC3_QICR_CDCIE *((volatile unsigned int*)(0x424c1aa0UL)) -#define bFM4_QPRC3_QICR_CDCF *((volatile unsigned int*)(0x424c1aa4UL)) -#define bFM4_QPRC3_QICR_DIRPC *((volatile unsigned int*)(0x424c1aa8UL)) -#define bFM4_QPRC3_QICR_DIROU *((volatile unsigned int*)(0x424c1aacUL)) -#define bFM4_QPRC3_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424c1ab0UL)) -#define bFM4_QPRC3_QICR_QPCNRCMF *((volatile unsigned int*)(0x424c1ab4UL)) -#define bFM4_QPRC3_QCR_PCM0 *((volatile unsigned int*)(0x424c1b00UL)) -#define bFM4_QPRC3_QCR_PCM1 *((volatile unsigned int*)(0x424c1b04UL)) -#define bFM4_QPRC3_QCR_RCM0 *((volatile unsigned int*)(0x424c1b08UL)) -#define bFM4_QPRC3_QCR_RCM1 *((volatile unsigned int*)(0x424c1b0cUL)) -#define bFM4_QPRC3_QCR_PSTP *((volatile unsigned int*)(0x424c1b10UL)) -#define bFM4_QPRC3_QCR_CGSC *((volatile unsigned int*)(0x424c1b14UL)) -#define bFM4_QPRC3_QCR_RSEL *((volatile unsigned int*)(0x424c1b18UL)) -#define bFM4_QPRC3_QCR_SWAP *((volatile unsigned int*)(0x424c1b1cUL)) -#define bFM4_QPRC3_QCR_PCRM0 *((volatile unsigned int*)(0x424c1b20UL)) -#define bFM4_QPRC3_QCR_PCRM1 *((volatile unsigned int*)(0x424c1b24UL)) -#define bFM4_QPRC3_QCR_AES0 *((volatile unsigned int*)(0x424c1b28UL)) -#define bFM4_QPRC3_QCR_AES1 *((volatile unsigned int*)(0x424c1b2cUL)) -#define bFM4_QPRC3_QCR_BES0 *((volatile unsigned int*)(0x424c1b30UL)) -#define bFM4_QPRC3_QCR_BES1 *((volatile unsigned int*)(0x424c1b34UL)) -#define bFM4_QPRC3_QCR_CGE0 *((volatile unsigned int*)(0x424c1b38UL)) -#define bFM4_QPRC3_QCR_CGE1 *((volatile unsigned int*)(0x424c1b3cUL)) -#define bFM4_QPRC3_QECR_ORNGMD *((volatile unsigned int*)(0x424c1b80UL)) -#define bFM4_QPRC3_QECR_ORNGF *((volatile unsigned int*)(0x424c1b84UL)) -#define bFM4_QPRC3_QECR_ORNGIE *((volatile unsigned int*)(0x424c1b88UL)) - -/* QPRC NF channel 0 registers */ -#define bFM4_QPRC0_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2010UL)) -#define bFM4_QPRC0_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2014UL)) -#define bFM4_QPRC0_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2090UL)) -#define bFM4_QPRC0_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2094UL)) -#define bFM4_QPRC0_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2110UL)) -#define bFM4_QPRC0_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2114UL)) - -/* QPRC NF channel 1 registers */ -#define bFM4_QPRC1_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2210UL)) -#define bFM4_QPRC1_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2214UL)) -#define bFM4_QPRC1_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2290UL)) -#define bFM4_QPRC1_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2294UL)) -#define bFM4_QPRC1_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2310UL)) -#define bFM4_QPRC1_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2314UL)) - -/* QPRC NF channel 2 registers */ -#define bFM4_QPRC2_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2410UL)) -#define bFM4_QPRC2_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2414UL)) -#define bFM4_QPRC2_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2490UL)) -#define bFM4_QPRC2_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2494UL)) -#define bFM4_QPRC2_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2510UL)) -#define bFM4_QPRC2_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2514UL)) - -/* QPRC NF channel 3 registers */ -#define bFM4_QPRC3_NF_NFCTLA_AINLV *((volatile unsigned int*)(0x424c2610UL)) -#define bFM4_QPRC3_NF_NFCTLA_AINMD *((volatile unsigned int*)(0x424c2614UL)) -#define bFM4_QPRC3_NF_NFCTLB_BINLV *((volatile unsigned int*)(0x424c2690UL)) -#define bFM4_QPRC3_NF_NFCTLB_BINMD *((volatile unsigned int*)(0x424c2694UL)) -#define bFM4_QPRC3_NF_NFRCTLZ_ZINLV *((volatile unsigned int*)(0x424c2710UL)) -#define bFM4_QPRC3_NF_NFRCTLZ_ZINMD *((volatile unsigned int*)(0x424c2714UL)) - -/* 12-bit ADC unit 0 registers */ -#define bFM4_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) -#define bFM4_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) -#define bFM4_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) -#define bFM4_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) -#define bFM4_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) -#define bFM4_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) -#define bFM4_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) -#define bFM4_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) -#define bFM4_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) -#define bFM4_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) -#define bFM4_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) -#define bFM4_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) -#define bFM4_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) -#define bFM4_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) -#define bFM4_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) -#define bFM4_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) -#define bFM4_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) -#define bFM4_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) -#define bFM4_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) -#define bFM4_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) -#define bFM4_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) -#define bFM4_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) -#define bFM4_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) -#define bFM4_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM4_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM4_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM4_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM4_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM4_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM4_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM4_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM4_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM4_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM4_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM4_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM4_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM4_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM4_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM4_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM4_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM4_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM4_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM4_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM4_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM4_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM4_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM4_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM4_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM4_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM4_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM4_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM4_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM4_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM4_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM4_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM4_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM4_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM4_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM4_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM4_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM4_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM4_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM4_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM4_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM4_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM4_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM4_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM4_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM4_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM4_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM4_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM4_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM4_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM4_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM4_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM4_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM4_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM4_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM4_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM4_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM4_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM4_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM4_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM4_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM4_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM4_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM4_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM4_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM4_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM4_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM4_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM4_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM4_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM4_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM4_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM4_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM4_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM4_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM4_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM4_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM4_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM4_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM4_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM4_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM4_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM4_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM4_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM4_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM4_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM4_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM4_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM4_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM4_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM4_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM4_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM4_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM4_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM4_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM4_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM4_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM4_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM4_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM4_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM4_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM4_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM4_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM4_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM4_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) -#define bFM4_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) -#define bFM4_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) -#define bFM4_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) -#define bFM4_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) -#define bFM4_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) -#define bFM4_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) -#define bFM4_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) -#define bFM4_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) -#define bFM4_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) -#define bFM4_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) -#define bFM4_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) -#define bFM4_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM4_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM4_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM4_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM4_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM4_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM4_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM4_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM4_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM4_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM4_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM4_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM4_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM4_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM4_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM4_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM4_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM4_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM4_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM4_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM4_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM4_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM4_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM4_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM4_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM4_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM4_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM4_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM4_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM4_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM4_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM4_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM4_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM4_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM4_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM4_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM4_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM4_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM4_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM4_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM4_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM4_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM4_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) -#define bFM4_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) -#define bFM4_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) -#define bFM4_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) -#define bFM4_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) -#define bFM4_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) -#define bFM4_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) -#define bFM4_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) -#define bFM4_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) -#define bFM4_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) -#define bFM4_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) -#define bFM4_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) -#define bFM4_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) -#define bFM4_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) -#define bFM4_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) -#define bFM4_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) -#define bFM4_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) -#define bFM4_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) -#define bFM4_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) -#define bFM4_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) -#define bFM4_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) -#define bFM4_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) -#define bFM4_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) -#define bFM4_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) -#define bFM4_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) -#define bFM4_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) -#define bFM4_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM4_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM4_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM4_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM4_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM4_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM4_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM4_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM4_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM4_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM4_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM4_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM4_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM4_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM4_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM4_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM4_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM4_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM4_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM4_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM4_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM4_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM4_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM4_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM4_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM4_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM4_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM4_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM4_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM4_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM4_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM4_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM4_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM4_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM4_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM4_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM4_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM4_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM4_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM4_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM4_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM4_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM4_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM4_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM4_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM4_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM4_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM4_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM4_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM4_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM4_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM4_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM4_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM4_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM4_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM4_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM4_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM4_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM4_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM4_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM4_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM4_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM4_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM4_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM4_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM4_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM4_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM4_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM4_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM4_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM4_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM4_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM4_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM4_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM4_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM4_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM4_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM4_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM4_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM4_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM4_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM4_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM4_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM4_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM4_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM4_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM4_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM4_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM4_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM4_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM4_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM4_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM4_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM4_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM4_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM4_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM4_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) -#define bFM4_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) -#define bFM4_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) -#define bFM4_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) -#define bFM4_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) -#define bFM4_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) -#define bFM4_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) -#define bFM4_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) -#define bFM4_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) -#define bFM4_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) -#define bFM4_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) -#define bFM4_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) -#define bFM4_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) - -/* 12-bit ADC unit 1 registers */ -#define bFM4_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) -#define bFM4_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) -#define bFM4_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) -#define bFM4_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) -#define bFM4_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) -#define bFM4_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) -#define bFM4_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) -#define bFM4_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) -#define bFM4_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) -#define bFM4_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) -#define bFM4_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) -#define bFM4_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) -#define bFM4_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) -#define bFM4_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) -#define bFM4_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) -#define bFM4_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) -#define bFM4_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) -#define bFM4_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) -#define bFM4_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) -#define bFM4_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) -#define bFM4_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) -#define bFM4_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) -#define bFM4_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) -#define bFM4_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM4_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM4_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM4_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM4_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM4_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM4_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM4_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM4_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM4_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM4_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM4_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM4_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM4_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM4_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM4_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM4_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM4_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM4_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM4_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM4_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM4_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM4_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM4_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM4_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM4_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM4_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM4_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM4_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM4_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM4_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM4_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM4_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM4_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM4_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM4_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM4_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM4_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM4_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM4_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM4_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM4_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM4_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM4_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM4_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM4_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM4_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM4_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM4_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM4_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM4_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM4_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM4_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM4_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM4_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM4_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM4_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM4_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM4_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM4_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM4_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM4_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM4_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM4_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM4_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM4_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM4_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM4_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM4_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM4_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM4_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM4_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM4_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM4_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM4_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM4_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM4_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM4_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM4_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM4_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM4_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM4_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM4_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM4_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM4_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM4_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM4_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM4_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM4_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM4_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM4_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM4_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM4_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM4_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM4_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM4_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM4_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM4_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM4_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM4_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM4_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM4_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM4_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM4_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM4_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) -#define bFM4_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) -#define bFM4_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) -#define bFM4_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) -#define bFM4_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) -#define bFM4_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) -#define bFM4_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) -#define bFM4_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) -#define bFM4_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) -#define bFM4_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) -#define bFM4_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) -#define bFM4_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) -#define bFM4_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM4_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM4_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM4_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM4_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM4_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM4_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM4_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM4_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM4_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM4_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM4_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM4_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM4_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM4_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM4_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM4_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM4_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM4_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM4_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM4_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM4_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM4_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM4_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM4_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM4_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM4_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM4_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM4_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM4_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM4_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM4_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM4_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM4_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM4_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM4_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM4_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM4_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM4_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM4_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM4_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM4_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM4_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) -#define bFM4_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) -#define bFM4_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) -#define bFM4_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) -#define bFM4_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) -#define bFM4_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) -#define bFM4_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) -#define bFM4_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) -#define bFM4_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) -#define bFM4_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) -#define bFM4_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) -#define bFM4_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) -#define bFM4_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) -#define bFM4_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) -#define bFM4_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) -#define bFM4_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) -#define bFM4_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) -#define bFM4_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) -#define bFM4_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) -#define bFM4_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) -#define bFM4_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) -#define bFM4_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) -#define bFM4_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) -#define bFM4_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) -#define bFM4_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) -#define bFM4_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) -#define bFM4_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM4_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM4_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM4_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM4_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM4_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM4_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM4_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM4_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM4_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM4_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM4_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM4_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM4_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM4_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM4_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM4_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM4_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM4_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM4_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM4_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM4_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM4_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM4_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM4_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM4_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM4_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM4_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM4_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM4_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM4_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM4_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM4_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM4_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM4_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM4_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM4_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM4_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM4_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM4_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM4_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM4_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM4_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM4_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM4_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM4_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM4_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM4_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM4_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM4_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM4_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM4_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM4_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM4_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM4_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM4_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM4_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM4_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM4_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM4_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM4_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM4_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM4_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM4_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM4_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM4_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM4_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM4_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM4_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM4_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM4_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM4_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM4_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM4_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM4_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM4_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM4_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM4_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM4_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM4_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM4_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM4_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM4_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM4_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM4_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM4_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM4_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM4_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM4_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM4_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM4_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM4_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM4_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM4_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM4_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM4_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM4_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) -#define bFM4_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) -#define bFM4_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) -#define bFM4_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) -#define bFM4_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) -#define bFM4_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) -#define bFM4_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) -#define bFM4_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) -#define bFM4_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) -#define bFM4_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) -#define bFM4_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) -#define bFM4_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) -#define bFM4_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) - -/* 12-bit ADC unit 2 registers */ -#define bFM4_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) -#define bFM4_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) -#define bFM4_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) -#define bFM4_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) -#define bFM4_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) -#define bFM4_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) -#define bFM4_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) -#define bFM4_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) -#define bFM4_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) -#define bFM4_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) -#define bFM4_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) -#define bFM4_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) -#define bFM4_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) -#define bFM4_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) -#define bFM4_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) -#define bFM4_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) -#define bFM4_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) -#define bFM4_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) -#define bFM4_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) -#define bFM4_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) -#define bFM4_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) -#define bFM4_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) -#define bFM4_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) -#define bFM4_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM4_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM4_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM4_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM4_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM4_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM4_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM4_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM4_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM4_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM4_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM4_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM4_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM4_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM4_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM4_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM4_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM4_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM4_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM4_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM4_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM4_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM4_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM4_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM4_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM4_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM4_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM4_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM4_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM4_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM4_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM4_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM4_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM4_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM4_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM4_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM4_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM4_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM4_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM4_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM4_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM4_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM4_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM4_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM4_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM4_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM4_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM4_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM4_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM4_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM4_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM4_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM4_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM4_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM4_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM4_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM4_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM4_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM4_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM4_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM4_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM4_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM4_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM4_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM4_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM4_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM4_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM4_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM4_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM4_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM4_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM4_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM4_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM4_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM4_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM4_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM4_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM4_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM4_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM4_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM4_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM4_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM4_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM4_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM4_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM4_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM4_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM4_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM4_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM4_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM4_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM4_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM4_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM4_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM4_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM4_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM4_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM4_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM4_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM4_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM4_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM4_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM4_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM4_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM4_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) -#define bFM4_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) -#define bFM4_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) -#define bFM4_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) -#define bFM4_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) -#define bFM4_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) -#define bFM4_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) -#define bFM4_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) -#define bFM4_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) -#define bFM4_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) -#define bFM4_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) -#define bFM4_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) -#define bFM4_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM4_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM4_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM4_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM4_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM4_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM4_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM4_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM4_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM4_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM4_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM4_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM4_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM4_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM4_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM4_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM4_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM4_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM4_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM4_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM4_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM4_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM4_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM4_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM4_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM4_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM4_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM4_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM4_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM4_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM4_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM4_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM4_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM4_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM4_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM4_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM4_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM4_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM4_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM4_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM4_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM4_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM4_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) -#define bFM4_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) -#define bFM4_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) -#define bFM4_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) -#define bFM4_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) -#define bFM4_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) -#define bFM4_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) -#define bFM4_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) -#define bFM4_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) -#define bFM4_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) -#define bFM4_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) -#define bFM4_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) -#define bFM4_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) -#define bFM4_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) -#define bFM4_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) -#define bFM4_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) -#define bFM4_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) -#define bFM4_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) -#define bFM4_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) -#define bFM4_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) -#define bFM4_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) -#define bFM4_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) -#define bFM4_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) -#define bFM4_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) -#define bFM4_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) -#define bFM4_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) -#define bFM4_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM4_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM4_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM4_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM4_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM4_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM4_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM4_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM4_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM4_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM4_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM4_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM4_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM4_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM4_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM4_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM4_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM4_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM4_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM4_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM4_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM4_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM4_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM4_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM4_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM4_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM4_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM4_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM4_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM4_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM4_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM4_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM4_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM4_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM4_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM4_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM4_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM4_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM4_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM4_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM4_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM4_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM4_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM4_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM4_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM4_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM4_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM4_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM4_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM4_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM4_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM4_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM4_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM4_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM4_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM4_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM4_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM4_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM4_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM4_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM4_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM4_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM4_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM4_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM4_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM4_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM4_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM4_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM4_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM4_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM4_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM4_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM4_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM4_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM4_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM4_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM4_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM4_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM4_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM4_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM4_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM4_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM4_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM4_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM4_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM4_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM4_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM4_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM4_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM4_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM4_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM4_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM4_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM4_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM4_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM4_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM4_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) -#define bFM4_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) -#define bFM4_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) -#define bFM4_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) -#define bFM4_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) -#define bFM4_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) -#define bFM4_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) -#define bFM4_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) -#define bFM4_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) -#define bFM4_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) -#define bFM4_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) -#define bFM4_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) -#define bFM4_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) - -/* CR trimming registers */ -#define bFM4_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) -#define bFM4_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) -#define bFM4_CRTRIM_MCR_PSR_CSR2 *((volatile unsigned int*)(0x425C0008UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD8 *((volatile unsigned int*)(0x425C00A0UL)) -#define bFM4_CRTRIM_MCR_FTRM_TRD9 *((volatile unsigned int*)(0x425C00A4UL)) -#define bFM4_CRTRIM_MCR_TTRM_TRT0 *((volatile unsigned int*)(0x425C0100UL)) -#define bFM4_CRTRIM_MCR_TTRM_TRT1 *((volatile unsigned int*)(0x425C0104UL)) -#define bFM4_CRTRIM_MCR_TTRM_TRT2 *((volatile unsigned int*)(0x425C0108UL)) -#define bFM4_CRTRIM_MCR_TTRM_TRT3 *((volatile unsigned int*)(0x425C010CUL)) -#define bFM4_CRTRIM_MCR_TTRM_TRT4 *((volatile unsigned int*)(0x425C0110UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK0 *((volatile unsigned int*)(0x425C0180UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK1 *((volatile unsigned int*)(0x425C0184UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK2 *((volatile unsigned int*)(0x425C0188UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK3 *((volatile unsigned int*)(0x425C018CUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK4 *((volatile unsigned int*)(0x425C0190UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK5 *((volatile unsigned int*)(0x425C0194UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK6 *((volatile unsigned int*)(0x425C0198UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK7 *((volatile unsigned int*)(0x425C019CUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK8 *((volatile unsigned int*)(0x425C01A0UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK9 *((volatile unsigned int*)(0x425C01A4UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK10 *((volatile unsigned int*)(0x425C01A8UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK11 *((volatile unsigned int*)(0x425C01ACUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK12 *((volatile unsigned int*)(0x425C01B0UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK13 *((volatile unsigned int*)(0x425C01B4UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK14 *((volatile unsigned int*)(0x425C01B8UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK15 *((volatile unsigned int*)(0x425C01BCUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK16 *((volatile unsigned int*)(0x425C01C0UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK17 *((volatile unsigned int*)(0x425C01C4UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK18 *((volatile unsigned int*)(0x425C01C8UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK19 *((volatile unsigned int*)(0x425C01CCUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK20 *((volatile unsigned int*)(0x425C01D0UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK21 *((volatile unsigned int*)(0x425C01D4UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK22 *((volatile unsigned int*)(0x425C01D8UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK23 *((volatile unsigned int*)(0x425C01DCUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK24 *((volatile unsigned int*)(0x425C01E0UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK25 *((volatile unsigned int*)(0x425C01E4UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK26 *((volatile unsigned int*)(0x425C01E8UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK27 *((volatile unsigned int*)(0x425C01ECUL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK28 *((volatile unsigned int*)(0x425C01F0UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK29 *((volatile unsigned int*)(0x425C01F4UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK30 *((volatile unsigned int*)(0x425C01F8UL)) -#define bFM4_CRTRIM_MCR_RLR_TRMLCK31 *((volatile unsigned int*)(0x425C01FCUL)) - -/* External interrupt registers */ -#define bFM4_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) -#define bFM4_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) -#define bFM4_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) -#define bFM4_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) -#define bFM4_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) -#define bFM4_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) -#define bFM4_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) -#define bFM4_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) -#define bFM4_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) -#define bFM4_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) -#define bFM4_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) -#define bFM4_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) -#define bFM4_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) -#define bFM4_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) -#define bFM4_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) -#define bFM4_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) -#define bFM4_EXTI_ENIR_EN16 *((volatile unsigned int*)(0x42600040UL)) -#define bFM4_EXTI_ENIR_EN17 *((volatile unsigned int*)(0x42600044UL)) -#define bFM4_EXTI_ENIR_EN18 *((volatile unsigned int*)(0x42600048UL)) -#define bFM4_EXTI_ENIR_EN19 *((volatile unsigned int*)(0x4260004CUL)) -#define bFM4_EXTI_ENIR_EN20 *((volatile unsigned int*)(0x42600050UL)) -#define bFM4_EXTI_ENIR_EN21 *((volatile unsigned int*)(0x42600054UL)) -#define bFM4_EXTI_ENIR_EN22 *((volatile unsigned int*)(0x42600058UL)) -#define bFM4_EXTI_ENIR_EN23 *((volatile unsigned int*)(0x4260005CUL)) -#define bFM4_EXTI_ENIR_EN24 *((volatile unsigned int*)(0x42600060UL)) -#define bFM4_EXTI_ENIR_EN25 *((volatile unsigned int*)(0x42600064UL)) -#define bFM4_EXTI_ENIR_EN26 *((volatile unsigned int*)(0x42600068UL)) -#define bFM4_EXTI_ENIR_EN27 *((volatile unsigned int*)(0x4260006CUL)) -#define bFM4_EXTI_ENIR_EN28 *((volatile unsigned int*)(0x42600070UL)) -#define bFM4_EXTI_ENIR_EN29 *((volatile unsigned int*)(0x42600074UL)) -#define bFM4_EXTI_ENIR_EN30 *((volatile unsigned int*)(0x42600078UL)) -#define bFM4_EXTI_ENIR_EN31 *((volatile unsigned int*)(0x4260007CUL)) -#define bFM4_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) -#define bFM4_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) -#define bFM4_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) -#define bFM4_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) -#define bFM4_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) -#define bFM4_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) -#define bFM4_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) -#define bFM4_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) -#define bFM4_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) -#define bFM4_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) -#define bFM4_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) -#define bFM4_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) -#define bFM4_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) -#define bFM4_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) -#define bFM4_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) -#define bFM4_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) -#define bFM4_EXTI_EIRR_ER16 *((volatile unsigned int*)(0x426000C0UL)) -#define bFM4_EXTI_EIRR_ER17 *((volatile unsigned int*)(0x426000C4UL)) -#define bFM4_EXTI_EIRR_ER18 *((volatile unsigned int*)(0x426000C8UL)) -#define bFM4_EXTI_EIRR_ER19 *((volatile unsigned int*)(0x426000CCUL)) -#define bFM4_EXTI_EIRR_ER20 *((volatile unsigned int*)(0x426000D0UL)) -#define bFM4_EXTI_EIRR_ER21 *((volatile unsigned int*)(0x426000D4UL)) -#define bFM4_EXTI_EIRR_ER22 *((volatile unsigned int*)(0x426000D8UL)) -#define bFM4_EXTI_EIRR_ER23 *((volatile unsigned int*)(0x426000DCUL)) -#define bFM4_EXTI_EIRR_ER24 *((volatile unsigned int*)(0x426000E0UL)) -#define bFM4_EXTI_EIRR_ER25 *((volatile unsigned int*)(0x426000E4UL)) -#define bFM4_EXTI_EIRR_ER26 *((volatile unsigned int*)(0x426000E8UL)) -#define bFM4_EXTI_EIRR_ER27 *((volatile unsigned int*)(0x426000ECUL)) -#define bFM4_EXTI_EIRR_ER28 *((volatile unsigned int*)(0x426000F0UL)) -#define bFM4_EXTI_EIRR_ER29 *((volatile unsigned int*)(0x426000F4UL)) -#define bFM4_EXTI_EIRR_ER30 *((volatile unsigned int*)(0x426000F8UL)) -#define bFM4_EXTI_EIRR_ER31 *((volatile unsigned int*)(0x426000FCUL)) -#define bFM4_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) -#define bFM4_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) -#define bFM4_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) -#define bFM4_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) -#define bFM4_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) -#define bFM4_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) -#define bFM4_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) -#define bFM4_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) -#define bFM4_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) -#define bFM4_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) -#define bFM4_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) -#define bFM4_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) -#define bFM4_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) -#define bFM4_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) -#define bFM4_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) -#define bFM4_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) -#define bFM4_EXTI_EICL_ECL16 *((volatile unsigned int*)(0x42600140UL)) -#define bFM4_EXTI_EICL_ECL17 *((volatile unsigned int*)(0x42600144UL)) -#define bFM4_EXTI_EICL_ECL18 *((volatile unsigned int*)(0x42600148UL)) -#define bFM4_EXTI_EICL_ECL19 *((volatile unsigned int*)(0x4260014CUL)) -#define bFM4_EXTI_EICL_ECL20 *((volatile unsigned int*)(0x42600150UL)) -#define bFM4_EXTI_EICL_ECL21 *((volatile unsigned int*)(0x42600154UL)) -#define bFM4_EXTI_EICL_ECL22 *((volatile unsigned int*)(0x42600158UL)) -#define bFM4_EXTI_EICL_ECL23 *((volatile unsigned int*)(0x4260015CUL)) -#define bFM4_EXTI_EICL_ECL24 *((volatile unsigned int*)(0x42600160UL)) -#define bFM4_EXTI_EICL_ECL25 *((volatile unsigned int*)(0x42600164UL)) -#define bFM4_EXTI_EICL_ECL26 *((volatile unsigned int*)(0x42600168UL)) -#define bFM4_EXTI_EICL_ECL27 *((volatile unsigned int*)(0x4260016CUL)) -#define bFM4_EXTI_EICL_ECL28 *((volatile unsigned int*)(0x42600170UL)) -#define bFM4_EXTI_EICL_ECL29 *((volatile unsigned int*)(0x42600174UL)) -#define bFM4_EXTI_EICL_ECL30 *((volatile unsigned int*)(0x42600178UL)) -#define bFM4_EXTI_EICL_ECL31 *((volatile unsigned int*)(0x4260017CUL)) -#define bFM4_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) -#define bFM4_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) -#define bFM4_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) -#define bFM4_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) -#define bFM4_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) -#define bFM4_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) -#define bFM4_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) -#define bFM4_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) -#define bFM4_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) -#define bFM4_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) -#define bFM4_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) -#define bFM4_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) -#define bFM4_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) -#define bFM4_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) -#define bFM4_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) -#define bFM4_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) -#define bFM4_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) -#define bFM4_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) -#define bFM4_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) -#define bFM4_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) -#define bFM4_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) -#define bFM4_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) -#define bFM4_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) -#define bFM4_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) -#define bFM4_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) -#define bFM4_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) -#define bFM4_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) -#define bFM4_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) -#define bFM4_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) -#define bFM4_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) -#define bFM4_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) -#define bFM4_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) -#define bFM4_EXTI_ELVR1_LA16 *((volatile unsigned int*)(0x42600200UL)) -#define bFM4_EXTI_ELVR1_LB16 *((volatile unsigned int*)(0x42600204UL)) -#define bFM4_EXTI_ELVR1_LA17 *((volatile unsigned int*)(0x42600208UL)) -#define bFM4_EXTI_ELVR1_LB17 *((volatile unsigned int*)(0x4260020CUL)) -#define bFM4_EXTI_ELVR1_LA18 *((volatile unsigned int*)(0x42600210UL)) -#define bFM4_EXTI_ELVR1_LB18 *((volatile unsigned int*)(0x42600214UL)) -#define bFM4_EXTI_ELVR1_LA19 *((volatile unsigned int*)(0x42600218UL)) -#define bFM4_EXTI_ELVR1_LB19 *((volatile unsigned int*)(0x4260021CUL)) -#define bFM4_EXTI_ELVR1_LA20 *((volatile unsigned int*)(0x42600220UL)) -#define bFM4_EXTI_ELVR1_LB20 *((volatile unsigned int*)(0x42600224UL)) -#define bFM4_EXTI_ELVR1_LA21 *((volatile unsigned int*)(0x42600228UL)) -#define bFM4_EXTI_ELVR1_LB21 *((volatile unsigned int*)(0x4260022CUL)) -#define bFM4_EXTI_ELVR1_LA22 *((volatile unsigned int*)(0x42600230UL)) -#define bFM4_EXTI_ELVR1_LB22 *((volatile unsigned int*)(0x42600234UL)) -#define bFM4_EXTI_ELVR1_LA23 *((volatile unsigned int*)(0x42600238UL)) -#define bFM4_EXTI_ELVR1_LB23 *((volatile unsigned int*)(0x4260023CUL)) -#define bFM4_EXTI_ELVR1_LA24 *((volatile unsigned int*)(0x42600240UL)) -#define bFM4_EXTI_ELVR1_LB24 *((volatile unsigned int*)(0x42600244UL)) -#define bFM4_EXTI_ELVR1_LA25 *((volatile unsigned int*)(0x42600248UL)) -#define bFM4_EXTI_ELVR1_LB25 *((volatile unsigned int*)(0x4260024CUL)) -#define bFM4_EXTI_ELVR1_LA26 *((volatile unsigned int*)(0x42600250UL)) -#define bFM4_EXTI_ELVR1_LB26 *((volatile unsigned int*)(0x42600254UL)) -#define bFM4_EXTI_ELVR1_LA27 *((volatile unsigned int*)(0x42600258UL)) -#define bFM4_EXTI_ELVR1_LB27 *((volatile unsigned int*)(0x4260025CUL)) -#define bFM4_EXTI_ELVR1_LA28 *((volatile unsigned int*)(0x42600260UL)) -#define bFM4_EXTI_ELVR1_LB28 *((volatile unsigned int*)(0x42600264UL)) -#define bFM4_EXTI_ELVR1_LA29 *((volatile unsigned int*)(0x42600268UL)) -#define bFM4_EXTI_ELVR1_LB29 *((volatile unsigned int*)(0x4260026CUL)) -#define bFM4_EXTI_ELVR1_LA30 *((volatile unsigned int*)(0x42600270UL)) -#define bFM4_EXTI_ELVR1_LB30 *((volatile unsigned int*)(0x42600274UL)) -#define bFM4_EXTI_ELVR1_LA31 *((volatile unsigned int*)(0x42600278UL)) -#define bFM4_EXTI_ELVR1_LB31 *((volatile unsigned int*)(0x4260027CUL)) -#define bFM4_EXTI_NMIRR_NR *((volatile unsigned int*)(0x42600280UL)) -#define bFM4_EXTI_NMICL_NCL *((volatile unsigned int*)(0x42600300UL)) - -/* Interrupt request read registers */ -#define bFM4_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) -#define bFM4_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) -#define bFM4_INTREQ_ODDPKS_ODDPKS0 *((volatile unsigned int*)(0x42620200UL)) -#define bFM4_INTREQ_ODDPKS_ODDPKS1 *((volatile unsigned int*)(0x42620204UL)) -#define bFM4_INTREQ_ODDPKS_ODDPKS2 *((volatile unsigned int*)(0x42620208UL)) -#define bFM4_INTREQ_ODDPKS_ODDPKS3 *((volatile unsigned int*)(0x4262020CUL)) -#define bFM4_INTREQ_ODDPKS_ODDPKS4 *((volatile unsigned int*)(0x42620210UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ0 *((volatile unsigned int*)(0x42622200UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ1 *((volatile unsigned int*)(0x42622204UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ2 *((volatile unsigned int*)(0x42622208UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ3 *((volatile unsigned int*)(0x4262220CUL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ4 *((volatile unsigned int*)(0x42622210UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ5 *((volatile unsigned int*)(0x42622214UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ6 *((volatile unsigned int*)(0x42622218UL)) -#define bFM4_INTREQ_IRQ003SEL_SELIRQ7 *((volatile unsigned int*)(0x4262221CUL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT0 *((volatile unsigned int*)(0x42622240UL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT1 *((volatile unsigned int*)(0x42622244UL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT2 *((volatile unsigned int*)(0x42622248UL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT3 *((volatile unsigned int*)(0x4262224CUL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT4 *((volatile unsigned int*)(0x42622250UL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT5 *((volatile unsigned int*)(0x42622254UL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT6 *((volatile unsigned int*)(0x42622258UL)) -#define bFM4_INTREQ_IRQ003SEL_SELBIT7 *((volatile unsigned int*)(0x4262225CUL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ0 *((volatile unsigned int*)(0x42622280UL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ1 *((volatile unsigned int*)(0x42622284UL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ2 *((volatile unsigned int*)(0x42622288UL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ3 *((volatile unsigned int*)(0x4262228CUL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ4 *((volatile unsigned int*)(0x42622290UL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ5 *((volatile unsigned int*)(0x42622294UL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ6 *((volatile unsigned int*)(0x42622298UL)) -#define bFM4_INTREQ_IRQ004SEL_SELIRQ7 *((volatile unsigned int*)(0x4262229CUL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT0 *((volatile unsigned int*)(0x426222C0UL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT1 *((volatile unsigned int*)(0x426222C4UL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT2 *((volatile unsigned int*)(0x426222C8UL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT3 *((volatile unsigned int*)(0x426222CCUL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT4 *((volatile unsigned int*)(0x426222D0UL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT5 *((volatile unsigned int*)(0x426222D4UL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT6 *((volatile unsigned int*)(0x426222D8UL)) -#define bFM4_INTREQ_IRQ004SEL_SELBIT7 *((volatile unsigned int*)(0x426222DCUL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ0 *((volatile unsigned int*)(0x42622300UL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ1 *((volatile unsigned int*)(0x42622304UL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ2 *((volatile unsigned int*)(0x42622308UL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ3 *((volatile unsigned int*)(0x4262230CUL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ4 *((volatile unsigned int*)(0x42622310UL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ5 *((volatile unsigned int*)(0x42622314UL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ6 *((volatile unsigned int*)(0x42622318UL)) -#define bFM4_INTREQ_IRQ005SEL_SELIRQ7 *((volatile unsigned int*)(0x4262231CUL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT0 *((volatile unsigned int*)(0x42622340UL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT1 *((volatile unsigned int*)(0x42622344UL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT2 *((volatile unsigned int*)(0x42622348UL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT3 *((volatile unsigned int*)(0x4262234CUL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT4 *((volatile unsigned int*)(0x42622350UL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT5 *((volatile unsigned int*)(0x42622354UL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT6 *((volatile unsigned int*)(0x42622358UL)) -#define bFM4_INTREQ_IRQ005SEL_SELBIT7 *((volatile unsigned int*)(0x4262235CUL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ0 *((volatile unsigned int*)(0x42622380UL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ1 *((volatile unsigned int*)(0x42622384UL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ2 *((volatile unsigned int*)(0x42622388UL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ3 *((volatile unsigned int*)(0x4262238CUL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ4 *((volatile unsigned int*)(0x42622390UL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ5 *((volatile unsigned int*)(0x42622394UL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ6 *((volatile unsigned int*)(0x42622398UL)) -#define bFM4_INTREQ_IRQ006SEL_SELIRQ7 *((volatile unsigned int*)(0x4262239CUL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT0 *((volatile unsigned int*)(0x426223C0UL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT1 *((volatile unsigned int*)(0x426223C4UL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT2 *((volatile unsigned int*)(0x426223C8UL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT3 *((volatile unsigned int*)(0x426223CCUL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT4 *((volatile unsigned int*)(0x426223D0UL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT5 *((volatile unsigned int*)(0x426223D4UL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT6 *((volatile unsigned int*)(0x426223D8UL)) -#define bFM4_INTREQ_IRQ006SEL_SELBIT7 *((volatile unsigned int*)(0x426223DCUL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ0 *((volatile unsigned int*)(0x42622400UL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ1 *((volatile unsigned int*)(0x42622404UL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ2 *((volatile unsigned int*)(0x42622408UL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ3 *((volatile unsigned int*)(0x4262240CUL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ4 *((volatile unsigned int*)(0x42622410UL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ5 *((volatile unsigned int*)(0x42622414UL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ6 *((volatile unsigned int*)(0x42622418UL)) -#define bFM4_INTREQ_IRQ007SEL_SELIRQ7 *((volatile unsigned int*)(0x4262241CUL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT0 *((volatile unsigned int*)(0x42622440UL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT1 *((volatile unsigned int*)(0x42622444UL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT2 *((volatile unsigned int*)(0x42622448UL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT3 *((volatile unsigned int*)(0x4262244CUL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT4 *((volatile unsigned int*)(0x42622450UL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT5 *((volatile unsigned int*)(0x42622454UL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT6 *((volatile unsigned int*)(0x42622458UL)) -#define bFM4_INTREQ_IRQ007SEL_SELBIT7 *((volatile unsigned int*)(0x4262245CUL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ0 *((volatile unsigned int*)(0x42622480UL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ1 *((volatile unsigned int*)(0x42622484UL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ2 *((volatile unsigned int*)(0x42622488UL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ3 *((volatile unsigned int*)(0x4262248CUL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ4 *((volatile unsigned int*)(0x42622490UL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ5 *((volatile unsigned int*)(0x42622494UL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ6 *((volatile unsigned int*)(0x42622498UL)) -#define bFM4_INTREQ_IRQ008SEL_SELIRQ7 *((volatile unsigned int*)(0x4262249CUL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT0 *((volatile unsigned int*)(0x426224C0UL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT1 *((volatile unsigned int*)(0x426224C4UL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT2 *((volatile unsigned int*)(0x426224C8UL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT3 *((volatile unsigned int*)(0x426224CCUL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT4 *((volatile unsigned int*)(0x426224D0UL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT5 *((volatile unsigned int*)(0x426224D4UL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT6 *((volatile unsigned int*)(0x426224D8UL)) -#define bFM4_INTREQ_IRQ008SEL_SELBIT7 *((volatile unsigned int*)(0x426224DCUL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ0 *((volatile unsigned int*)(0x42622500UL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ1 *((volatile unsigned int*)(0x42622504UL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ2 *((volatile unsigned int*)(0x42622508UL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ3 *((volatile unsigned int*)(0x4262250CUL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ4 *((volatile unsigned int*)(0x42622510UL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ5 *((volatile unsigned int*)(0x42622514UL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ6 *((volatile unsigned int*)(0x42622518UL)) -#define bFM4_INTREQ_IRQ009SEL_SELIRQ7 *((volatile unsigned int*)(0x4262251CUL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT0 *((volatile unsigned int*)(0x42622540UL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT1 *((volatile unsigned int*)(0x42622544UL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT2 *((volatile unsigned int*)(0x42622548UL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT3 *((volatile unsigned int*)(0x4262254CUL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT4 *((volatile unsigned int*)(0x42622550UL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT5 *((volatile unsigned int*)(0x42622554UL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT6 *((volatile unsigned int*)(0x42622558UL)) -#define bFM4_INTREQ_IRQ009SEL_SELBIT7 *((volatile unsigned int*)(0x4262255CUL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ0 *((volatile unsigned int*)(0x42622580UL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ1 *((volatile unsigned int*)(0x42622584UL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ2 *((volatile unsigned int*)(0x42622588UL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ3 *((volatile unsigned int*)(0x4262258CUL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ4 *((volatile unsigned int*)(0x42622590UL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ5 *((volatile unsigned int*)(0x42622594UL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ6 *((volatile unsigned int*)(0x42622598UL)) -#define bFM4_INTREQ_IRQ010SEL_SELIRQ7 *((volatile unsigned int*)(0x4262259CUL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT0 *((volatile unsigned int*)(0x426225C0UL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT1 *((volatile unsigned int*)(0x426225C4UL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT2 *((volatile unsigned int*)(0x426225C8UL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT3 *((volatile unsigned int*)(0x426225CCUL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT4 *((volatile unsigned int*)(0x426225D0UL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT5 *((volatile unsigned int*)(0x426225D4UL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT6 *((volatile unsigned int*)(0x426225D8UL)) -#define bFM4_INTREQ_IRQ010SEL_SELBIT7 *((volatile unsigned int*)(0x426225DCUL)) -#define bFM4_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42624000UL)) -#define bFM4_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42624004UL)) -#define bFM4_INTREQ_IRQ000MON_FCSINT *((volatile unsigned int*)(0x42624080UL)) -#define bFM4_INTREQ_IRQ001MON_SWWDTINT *((volatile unsigned int*)(0x42624100UL)) -#define bFM4_INTREQ_IRQ002MON_LVDINT *((volatile unsigned int*)(0x42624180UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT0 *((volatile unsigned int*)(0x42624200UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT1 *((volatile unsigned int*)(0x42624204UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT2 *((volatile unsigned int*)(0x42624208UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT3 *((volatile unsigned int*)(0x4262420CUL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT4 *((volatile unsigned int*)(0x42624210UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT5 *((volatile unsigned int*)(0x42624214UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT6 *((volatile unsigned int*)(0x42624218UL)) -#define bFM4_INTREQ_IRQ003MON_IRQBIT7 *((volatile unsigned int*)(0x4262421CUL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT0 *((volatile unsigned int*)(0x42624280UL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT1 *((volatile unsigned int*)(0x42624284UL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT2 *((volatile unsigned int*)(0x42624288UL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT3 *((volatile unsigned int*)(0x4262428CUL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT4 *((volatile unsigned int*)(0x42624290UL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT5 *((volatile unsigned int*)(0x42624294UL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT6 *((volatile unsigned int*)(0x42624298UL)) -#define bFM4_INTREQ_IRQ004MON_IRQBIT7 *((volatile unsigned int*)(0x4262429CUL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT0 *((volatile unsigned int*)(0x42624300UL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT1 *((volatile unsigned int*)(0x42624304UL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT2 *((volatile unsigned int*)(0x42624308UL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT3 *((volatile unsigned int*)(0x4262430CUL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT4 *((volatile unsigned int*)(0x42624310UL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT5 *((volatile unsigned int*)(0x42624314UL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT6 *((volatile unsigned int*)(0x42624318UL)) -#define bFM4_INTREQ_IRQ005MON_IRQBIT7 *((volatile unsigned int*)(0x4262431CUL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT0 *((volatile unsigned int*)(0x42624380UL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT1 *((volatile unsigned int*)(0x42624384UL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT2 *((volatile unsigned int*)(0x42624388UL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT3 *((volatile unsigned int*)(0x4262438CUL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT4 *((volatile unsigned int*)(0x42624390UL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT5 *((volatile unsigned int*)(0x42624394UL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT6 *((volatile unsigned int*)(0x42624398UL)) -#define bFM4_INTREQ_IRQ006MON_IRQBIT7 *((volatile unsigned int*)(0x4262439CUL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT0 *((volatile unsigned int*)(0x42624400UL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT1 *((volatile unsigned int*)(0x42624404UL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT2 *((volatile unsigned int*)(0x42624408UL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT3 *((volatile unsigned int*)(0x4262440CUL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT4 *((volatile unsigned int*)(0x42624410UL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT5 *((volatile unsigned int*)(0x42624414UL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT6 *((volatile unsigned int*)(0x42624418UL)) -#define bFM4_INTREQ_IRQ007MON_IRQBIT7 *((volatile unsigned int*)(0x4262441CUL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT0 *((volatile unsigned int*)(0x42624480UL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT1 *((volatile unsigned int*)(0x42624484UL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT2 *((volatile unsigned int*)(0x42624488UL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT3 *((volatile unsigned int*)(0x4262448CUL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT4 *((volatile unsigned int*)(0x42624490UL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT5 *((volatile unsigned int*)(0x42624494UL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT6 *((volatile unsigned int*)(0x42624498UL)) -#define bFM4_INTREQ_IRQ008MON_IRQBIT7 *((volatile unsigned int*)(0x4262449CUL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT0 *((volatile unsigned int*)(0x42624500UL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT1 *((volatile unsigned int*)(0x42624504UL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT2 *((volatile unsigned int*)(0x42624508UL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT3 *((volatile unsigned int*)(0x4262450CUL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT4 *((volatile unsigned int*)(0x42624510UL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT5 *((volatile unsigned int*)(0x42624514UL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT6 *((volatile unsigned int*)(0x42624518UL)) -#define bFM4_INTREQ_IRQ009MON_IRQBIT7 *((volatile unsigned int*)(0x4262451CUL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT0 *((volatile unsigned int*)(0x42624580UL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT1 *((volatile unsigned int*)(0x42624584UL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT2 *((volatile unsigned int*)(0x42624588UL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT3 *((volatile unsigned int*)(0x4262458CUL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT4 *((volatile unsigned int*)(0x42624590UL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT5 *((volatile unsigned int*)(0x42624594UL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT6 *((volatile unsigned int*)(0x42624598UL)) -#define bFM4_INTREQ_IRQ010MON_IRQBIT7 *((volatile unsigned int*)(0x4262459CUL)) -#define bFM4_INTREQ_IRQ011MON_EXTINT *((volatile unsigned int*)(0x42624600UL)) -#define bFM4_INTREQ_IRQ012MON_EXTINT *((volatile unsigned int*)(0x42624680UL)) -#define bFM4_INTREQ_IRQ013MON_EXTINT *((volatile unsigned int*)(0x42624700UL)) -#define bFM4_INTREQ_IRQ014MON_EXTINT *((volatile unsigned int*)(0x42624780UL)) -#define bFM4_INTREQ_IRQ015MON_EXTINT *((volatile unsigned int*)(0x42624800UL)) -#define bFM4_INTREQ_IRQ016MON_EXTINT *((volatile unsigned int*)(0x42624880UL)) -#define bFM4_INTREQ_IRQ017MON_EXTINT *((volatile unsigned int*)(0x42624900UL)) -#define bFM4_INTREQ_IRQ018MON_EXTINT *((volatile unsigned int*)(0x42624980UL)) -#define bFM4_INTREQ_IRQ019MON_QUDINT0 *((volatile unsigned int*)(0x42624A00UL)) -#define bFM4_INTREQ_IRQ019MON_QUDINT1 *((volatile unsigned int*)(0x42624A04UL)) -#define bFM4_INTREQ_IRQ019MON_QUDINT2 *((volatile unsigned int*)(0x42624A08UL)) -#define bFM4_INTREQ_IRQ019MON_QUDINT3 *((volatile unsigned int*)(0x42624A0CUL)) -#define bFM4_INTREQ_IRQ019MON_QUDINT4 *((volatile unsigned int*)(0x42624A10UL)) -#define bFM4_INTREQ_IRQ019MON_QUDINT5 *((volatile unsigned int*)(0x42624A14UL)) -#define bFM4_INTREQ_IRQ020MON_QUDINT0 *((volatile unsigned int*)(0x42624A80UL)) -#define bFM4_INTREQ_IRQ020MON_QUDINT1 *((volatile unsigned int*)(0x42624A84UL)) -#define bFM4_INTREQ_IRQ020MON_QUDINT2 *((volatile unsigned int*)(0x42624A88UL)) -#define bFM4_INTREQ_IRQ020MON_QUDINT3 *((volatile unsigned int*)(0x42624A8CUL)) -#define bFM4_INTREQ_IRQ020MON_QUDINT4 *((volatile unsigned int*)(0x42624A90UL)) -#define bFM4_INTREQ_IRQ020MON_QUDINT5 *((volatile unsigned int*)(0x42624A94UL)) -#define bFM4_INTREQ_IRQ021MON_WAVEINT0 *((volatile unsigned int*)(0x42624B00UL)) -#define bFM4_INTREQ_IRQ021MON_WAVEINT1 *((volatile unsigned int*)(0x42624B04UL)) -#define bFM4_INTREQ_IRQ021MON_WAVEINT2 *((volatile unsigned int*)(0x42624B08UL)) -#define bFM4_INTREQ_IRQ021MON_WAVEINT3 *((volatile unsigned int*)(0x42624B0CUL)) -#define bFM4_INTREQ_IRQ022MON_WAVEINT0 *((volatile unsigned int*)(0x42624B80UL)) -#define bFM4_INTREQ_IRQ022MON_WAVEINT1 *((volatile unsigned int*)(0x42624B84UL)) -#define bFM4_INTREQ_IRQ022MON_WAVEINT2 *((volatile unsigned int*)(0x42624B88UL)) -#define bFM4_INTREQ_IRQ022MON_WAVEINT3 *((volatile unsigned int*)(0x42624B8CUL)) -#define bFM4_INTREQ_IRQ023MON_WAVEINT0 *((volatile unsigned int*)(0x42624C00UL)) -#define bFM4_INTREQ_IRQ023MON_WAVEINT1 *((volatile unsigned int*)(0x42624C04UL)) -#define bFM4_INTREQ_IRQ023MON_WAVEINT2 *((volatile unsigned int*)(0x42624C08UL)) -#define bFM4_INTREQ_IRQ023MON_WAVEINT3 *((volatile unsigned int*)(0x42624C0CUL)) -#define bFM4_INTREQ_IRQ024MON_FRT_PEAK_INT0 *((volatile unsigned int*)(0x42624C80UL)) -#define bFM4_INTREQ_IRQ024MON_FRT_PEAK_INT1 *((volatile unsigned int*)(0x42624C84UL)) -#define bFM4_INTREQ_IRQ024MON_FRT_PEAK_INT2 *((volatile unsigned int*)(0x42624C88UL)) -#define bFM4_INTREQ_IRQ025MON_FRT_ZERO_INT0 *((volatile unsigned int*)(0x42624D00UL)) -#define bFM4_INTREQ_IRQ025MON_FRT_ZERO_INT1 *((volatile unsigned int*)(0x42624D04UL)) -#define bFM4_INTREQ_IRQ025MON_FRT_ZERO_INT2 *((volatile unsigned int*)(0x42624D08UL)) -#define bFM4_INTREQ_IRQ026MON_ICUINT0 *((volatile unsigned int*)(0x42624D80UL)) -#define bFM4_INTREQ_IRQ026MON_ICUINT1 *((volatile unsigned int*)(0x42624D84UL)) -#define bFM4_INTREQ_IRQ026MON_ICUINT2 *((volatile unsigned int*)(0x42624D88UL)) -#define bFM4_INTREQ_IRQ026MON_ICUINT3 *((volatile unsigned int*)(0x42624D8CUL)) -#define bFM4_INTREQ_IRQ027MON_OCUINT0 *((volatile unsigned int*)(0x42624E00UL)) -#define bFM4_INTREQ_IRQ027MON_OCUINT1 *((volatile unsigned int*)(0x42624E04UL)) -#define bFM4_INTREQ_IRQ027MON_OCUINT2 *((volatile unsigned int*)(0x42624E08UL)) -#define bFM4_INTREQ_IRQ027MON_OCUINT3 *((volatile unsigned int*)(0x42624E0CUL)) -#define bFM4_INTREQ_IRQ027MON_OCUINT4 *((volatile unsigned int*)(0x42624E10UL)) -#define bFM4_INTREQ_IRQ027MON_OCUINT5 *((volatile unsigned int*)(0x42624E14UL)) -#define bFM4_INTREQ_IRQ028MON_FRT_PEAK_INT0 *((volatile unsigned int*)(0x42624E80UL)) -#define bFM4_INTREQ_IRQ028MON_FRT_PEAK_INT1 *((volatile unsigned int*)(0x42624E84UL)) -#define bFM4_INTREQ_IRQ028MON_FRT_PEAK_INT2 *((volatile unsigned int*)(0x42624E88UL)) -#define bFM4_INTREQ_IRQ029MON_FRT_ZERO_INT0 *((volatile unsigned int*)(0x42624F00UL)) -#define bFM4_INTREQ_IRQ029MON_FRT_ZERO_INT1 *((volatile unsigned int*)(0x42624F04UL)) -#define bFM4_INTREQ_IRQ029MON_FRT_ZERO_INT2 *((volatile unsigned int*)(0x42624F08UL)) -#define bFM4_INTREQ_IRQ030MON_ICUINT0 *((volatile unsigned int*)(0x42624F80UL)) -#define bFM4_INTREQ_IRQ030MON_ICUINT1 *((volatile unsigned int*)(0x42624F84UL)) -#define bFM4_INTREQ_IRQ030MON_ICUINT2 *((volatile unsigned int*)(0x42624F88UL)) -#define bFM4_INTREQ_IRQ030MON_ICUINT3 *((volatile unsigned int*)(0x42624F8CUL)) -#define bFM4_INTREQ_IRQ031MON_OCUINT0 *((volatile unsigned int*)(0x42625000UL)) -#define bFM4_INTREQ_IRQ031MON_OCUINT1 *((volatile unsigned int*)(0x42625004UL)) -#define bFM4_INTREQ_IRQ031MON_OCUINT2 *((volatile unsigned int*)(0x42625008UL)) -#define bFM4_INTREQ_IRQ031MON_OCUINT3 *((volatile unsigned int*)(0x4262500CUL)) -#define bFM4_INTREQ_IRQ031MON_OCUINT4 *((volatile unsigned int*)(0x42625010UL)) -#define bFM4_INTREQ_IRQ031MON_OCUINT5 *((volatile unsigned int*)(0x42625014UL)) -#define bFM4_INTREQ_IRQ032MON_FRT_PEAK_INT0 *((volatile unsigned int*)(0x42625080UL)) -#define bFM4_INTREQ_IRQ032MON_FRT_PEAK_INT1 *((volatile unsigned int*)(0x42625084UL)) -#define bFM4_INTREQ_IRQ032MON_FRT_PEAK_INT2 *((volatile unsigned int*)(0x42625088UL)) -#define bFM4_INTREQ_IRQ033MON_FRT_ZERO_INT0 *((volatile unsigned int*)(0x42625100UL)) -#define bFM4_INTREQ_IRQ033MON_FRT_ZERO_INT1 *((volatile unsigned int*)(0x42625104UL)) -#define bFM4_INTREQ_IRQ033MON_FRT_ZERO_INT2 *((volatile unsigned int*)(0x42625108UL)) -#define bFM4_INTREQ_IRQ034MON_ICUINT0 *((volatile unsigned int*)(0x42625180UL)) -#define bFM4_INTREQ_IRQ034MON_ICUINT1 *((volatile unsigned int*)(0x42625184UL)) -#define bFM4_INTREQ_IRQ034MON_ICUINT2 *((volatile unsigned int*)(0x42625188UL)) -#define bFM4_INTREQ_IRQ034MON_ICUINT3 *((volatile unsigned int*)(0x4262518CUL)) -#define bFM4_INTREQ_IRQ035MON_OCUINT0 *((volatile unsigned int*)(0x42625200UL)) -#define bFM4_INTREQ_IRQ035MON_OCUINT1 *((volatile unsigned int*)(0x42625204UL)) -#define bFM4_INTREQ_IRQ035MON_OCUINT2 *((volatile unsigned int*)(0x42625208UL)) -#define bFM4_INTREQ_IRQ035MON_OCUINT3 *((volatile unsigned int*)(0x4262520CUL)) -#define bFM4_INTREQ_IRQ035MON_OCUINT4 *((volatile unsigned int*)(0x42625210UL)) -#define bFM4_INTREQ_IRQ035MON_OCUINT5 *((volatile unsigned int*)(0x42625214UL)) -#define bFM4_INTREQ_IRQ036MON_PPGINT0 *((volatile unsigned int*)(0x42625280UL)) -#define bFM4_INTREQ_IRQ036MON_PPGINT1 *((volatile unsigned int*)(0x42625284UL)) -#define bFM4_INTREQ_IRQ036MON_PPGINT2 *((volatile unsigned int*)(0x42625288UL)) -#define bFM4_INTREQ_IRQ037MON_PPGINT0 *((volatile unsigned int*)(0x42625300UL)) -#define bFM4_INTREQ_IRQ037MON_PPGINT1 *((volatile unsigned int*)(0x42625304UL)) -#define bFM4_INTREQ_IRQ037MON_PPGINT2 *((volatile unsigned int*)(0x42625308UL)) -#define bFM4_INTREQ_IRQ038MON_PPGINT0 *((volatile unsigned int*)(0x42625380UL)) -#define bFM4_INTREQ_IRQ038MON_PPGINT1 *((volatile unsigned int*)(0x42625384UL)) -#define bFM4_INTREQ_IRQ038MON_PPGINT2 *((volatile unsigned int*)(0x42625388UL)) -#define bFM4_INTREQ_IRQ039MON_BTINT0 *((volatile unsigned int*)(0x42625400UL)) -#define bFM4_INTREQ_IRQ039MON_BTINT1 *((volatile unsigned int*)(0x42625404UL)) -#define bFM4_INTREQ_IRQ040MON_BTINT0 *((volatile unsigned int*)(0x42625480UL)) -#define bFM4_INTREQ_IRQ040MON_BTINT1 *((volatile unsigned int*)(0x42625484UL)) -#define bFM4_INTREQ_IRQ041MON_BTINT0 *((volatile unsigned int*)(0x42625500UL)) -#define bFM4_INTREQ_IRQ041MON_BTINT1 *((volatile unsigned int*)(0x42625504UL)) -#define bFM4_INTREQ_IRQ042MON_BTINT0 *((volatile unsigned int*)(0x42625580UL)) -#define bFM4_INTREQ_IRQ042MON_BTINT1 *((volatile unsigned int*)(0x42625584UL)) -#define bFM4_INTREQ_IRQ043MON_BTINT0 *((volatile unsigned int*)(0x42625600UL)) -#define bFM4_INTREQ_IRQ043MON_BTINT1 *((volatile unsigned int*)(0x42625604UL)) -#define bFM4_INTREQ_IRQ044MON_BTINT0 *((volatile unsigned int*)(0x42625680UL)) -#define bFM4_INTREQ_IRQ044MON_BTINT1 *((volatile unsigned int*)(0x42625684UL)) -#define bFM4_INTREQ_IRQ045MON_BTINT0 *((volatile unsigned int*)(0x42625700UL)) -#define bFM4_INTREQ_IRQ045MON_BTINT1 *((volatile unsigned int*)(0x42625704UL)) -#define bFM4_INTREQ_IRQ046MON_BTINT0 *((volatile unsigned int*)(0x42625780UL)) -#define bFM4_INTREQ_IRQ046MON_BTINT1 *((volatile unsigned int*)(0x42625784UL)) -#define bFM4_INTREQ_IRQ047MON_TIMINT1 *((volatile unsigned int*)(0x42625800UL)) -#define bFM4_INTREQ_IRQ047MON_TIMINT2 *((volatile unsigned int*)(0x42625804UL)) -#define bFM4_INTREQ_IRQ048MON_WCINT *((volatile unsigned int*)(0x42625880UL)) -#define bFM4_INTREQ_IRQ049MON_BMEMCS *((volatile unsigned int*)(0x42625900UL)) -#define bFM4_INTREQ_IRQ050MON_RTCINT *((volatile unsigned int*)(0x42625980UL)) -#define bFM4_INTREQ_IRQ051MON_EXTINT *((volatile unsigned int*)(0x42625A00UL)) -#define bFM4_INTREQ_IRQ052MON_EXTINT *((volatile unsigned int*)(0x42625A80UL)) -#define bFM4_INTREQ_IRQ053MON_EXTINT *((volatile unsigned int*)(0x42625B00UL)) -#define bFM4_INTREQ_IRQ054MON_EXTINT *((volatile unsigned int*)(0x42625B80UL)) -#define bFM4_INTREQ_IRQ055MON_EXTINT *((volatile unsigned int*)(0x42625C00UL)) -#define bFM4_INTREQ_IRQ056MON_EXTINT *((volatile unsigned int*)(0x42625C80UL)) -#define bFM4_INTREQ_IRQ057MON_EXTINT *((volatile unsigned int*)(0x42625D00UL)) -#define bFM4_INTREQ_IRQ058MON_EXTINT *((volatile unsigned int*)(0x42625D80UL)) -#define bFM4_INTREQ_IRQ059MON_MOSCINT *((volatile unsigned int*)(0x42625E00UL)) -#define bFM4_INTREQ_IRQ059MON_SOSCINT *((volatile unsigned int*)(0x42625E04UL)) -#define bFM4_INTREQ_IRQ059MON_MPLLINT *((volatile unsigned int*)(0x42625E08UL)) -#define bFM4_INTREQ_IRQ059MON_UPLLINT *((volatile unsigned int*)(0x42625E0CUL)) -#define bFM4_INTREQ_IRQ060MON_MFSRINT *((volatile unsigned int*)(0x42625E80UL)) -#define bFM4_INTREQ_IRQ061MON_MFSINT0 *((volatile unsigned int*)(0x42625F00UL)) -#define bFM4_INTREQ_IRQ061MON_MFSINT1 *((volatile unsigned int*)(0x42625F04UL)) -#define bFM4_INTREQ_IRQ062MON_MFSRINT *((volatile unsigned int*)(0x42625F80UL)) -#define bFM4_INTREQ_IRQ063MON_MFSINT0 *((volatile unsigned int*)(0x42626000UL)) -#define bFM4_INTREQ_IRQ063MON_MFSINT1 *((volatile unsigned int*)(0x42626004UL)) -#define bFM4_INTREQ_IRQ064MON_MFSRINT *((volatile unsigned int*)(0x42626080UL)) -#define bFM4_INTREQ_IRQ065MON_MFSINT0 *((volatile unsigned int*)(0x42626100UL)) -#define bFM4_INTREQ_IRQ065MON_MFSINT1 *((volatile unsigned int*)(0x42626104UL)) -#define bFM4_INTREQ_IRQ066MON_MFSRINT *((volatile unsigned int*)(0x42626180UL)) -#define bFM4_INTREQ_IRQ067MON_MFSINT0 *((volatile unsigned int*)(0x42626200UL)) -#define bFM4_INTREQ_IRQ067MON_MFSINT1 *((volatile unsigned int*)(0x42626204UL)) -#define bFM4_INTREQ_IRQ068MON_MFSRINT *((volatile unsigned int*)(0x42626280UL)) -#define bFM4_INTREQ_IRQ069MON_MFSINT0 *((volatile unsigned int*)(0x42626300UL)) -#define bFM4_INTREQ_IRQ069MON_MFSINT1 *((volatile unsigned int*)(0x42626304UL)) -#define bFM4_INTREQ_IRQ070MON_MFSRINT *((volatile unsigned int*)(0x42626380UL)) -#define bFM4_INTREQ_IRQ071MON_MFSINT0 *((volatile unsigned int*)(0x42626400UL)) -#define bFM4_INTREQ_IRQ071MON_MFSINT1 *((volatile unsigned int*)(0x42626404UL)) -#define bFM4_INTREQ_IRQ072MON_MFSRINT *((volatile unsigned int*)(0x42626480UL)) -#define bFM4_INTREQ_IRQ073MON_MFSINT0 *((volatile unsigned int*)(0x42626500UL)) -#define bFM4_INTREQ_IRQ073MON_MFSINT1 *((volatile unsigned int*)(0x42626504UL)) -#define bFM4_INTREQ_IRQ074MON_MFSRINT *((volatile unsigned int*)(0x42626580UL)) -#define bFM4_INTREQ_IRQ075MON_MFSINT0 *((volatile unsigned int*)(0x42626600UL)) -#define bFM4_INTREQ_IRQ075MON_MFSINT1 *((volatile unsigned int*)(0x42626604UL)) -#define bFM4_INTREQ_IRQ076MON_ADCINT0 *((volatile unsigned int*)(0x42626680UL)) -#define bFM4_INTREQ_IRQ076MON_ADCINT1 *((volatile unsigned int*)(0x42626684UL)) -#define bFM4_INTREQ_IRQ076MON_ADCINT2 *((volatile unsigned int*)(0x42626688UL)) -#define bFM4_INTREQ_IRQ076MON_ADCINT3 *((volatile unsigned int*)(0x4262668CUL)) -#define bFM4_INTREQ_IRQ076MON_ADCINT4 *((volatile unsigned int*)(0x42626690UL)) -#define bFM4_INTREQ_IRQ077MON_ADCINT0 *((volatile unsigned int*)(0x42626700UL)) -#define bFM4_INTREQ_IRQ077MON_ADCINT1 *((volatile unsigned int*)(0x42626704UL)) -#define bFM4_INTREQ_IRQ077MON_ADCINT2 *((volatile unsigned int*)(0x42626708UL)) -#define bFM4_INTREQ_IRQ077MON_ADCINT3 *((volatile unsigned int*)(0x4262670CUL)) -#define bFM4_INTREQ_IRQ077MON_ADCINT4 *((volatile unsigned int*)(0x42626710UL)) -#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT0 *((volatile unsigned int*)(0x42626780UL)) -#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT1 *((volatile unsigned int*)(0x42626784UL)) -#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT2 *((volatile unsigned int*)(0x42626788UL)) -#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT3 *((volatile unsigned int*)(0x4262678CUL)) -#define bFM4_INTREQ_IRQ078MON_USB_DRQ_INT4 *((volatile unsigned int*)(0x42626790UL)) -#define bFM4_INTREQ_IRQ079MON_USB_INT0 *((volatile unsigned int*)(0x42626800UL)) -#define bFM4_INTREQ_IRQ079MON_USB_INT1 *((volatile unsigned int*)(0x42626804UL)) -#define bFM4_INTREQ_IRQ079MON_USB_INT2 *((volatile unsigned int*)(0x42626808UL)) -#define bFM4_INTREQ_IRQ079MON_USB_INT3 *((volatile unsigned int*)(0x4262680CUL)) -#define bFM4_INTREQ_IRQ079MON_USB_INT4 *((volatile unsigned int*)(0x42626810UL)) -#define bFM4_INTREQ_IRQ079MON_USB_INT5 *((volatile unsigned int*)(0x42626814UL)) -#define bFM4_INTREQ_IRQ080MON_CANINT *((volatile unsigned int*)(0x42626880UL)) -#define bFM4_INTREQ_IRQ081MON_CANINT *((volatile unsigned int*)(0x42626900UL)) -#define bFM4_INTREQ_IRQ082MON_MACSBD *((volatile unsigned int*)(0x42626980UL)) -#define bFM4_INTREQ_IRQ082MON_MACPMT *((volatile unsigned int*)(0x42626984UL)) -#define bFM4_INTREQ_IRQ082MON_MACLPI *((volatile unsigned int*)(0x42626988UL)) -#define bFM4_INTREQ_IRQ083MON_DMACINT *((volatile unsigned int*)(0x42626A00UL)) -#define bFM4_INTREQ_IRQ084MON_DMACINT *((volatile unsigned int*)(0x42626A80UL)) -#define bFM4_INTREQ_IRQ085MON_DMACINT *((volatile unsigned int*)(0x42626B00UL)) -#define bFM4_INTREQ_IRQ086MON_DMACINT *((volatile unsigned int*)(0x42626B80UL)) -#define bFM4_INTREQ_IRQ087MON_DMACINT *((volatile unsigned int*)(0x42626C00UL)) -#define bFM4_INTREQ_IRQ088MON_DMACINT *((volatile unsigned int*)(0x42626C80UL)) -#define bFM4_INTREQ_IRQ089MON_DMACINT *((volatile unsigned int*)(0x42626D00UL)) -#define bFM4_INTREQ_IRQ090MON_DMACINT *((volatile unsigned int*)(0x42626D80UL)) -#define bFM4_INTREQ_IRQ091MON_DSTCINT0 *((volatile unsigned int*)(0x42626E00UL)) -#define bFM4_INTREQ_IRQ091MON_DSTCINT1 *((volatile unsigned int*)(0x42626E04UL)) -#define bFM4_INTREQ_IRQ092MON_EXTINT0 *((volatile unsigned int*)(0x42626E80UL)) -#define bFM4_INTREQ_IRQ092MON_EXTINT1 *((volatile unsigned int*)(0x42626E84UL)) -#define bFM4_INTREQ_IRQ092MON_EXTINT2 *((volatile unsigned int*)(0x42626E88UL)) -#define bFM4_INTREQ_IRQ092MON_EXTINT3 *((volatile unsigned int*)(0x42626E8CUL)) -#define bFM4_INTREQ_IRQ093MON_EXTINT0 *((volatile unsigned int*)(0x42626F00UL)) -#define bFM4_INTREQ_IRQ093MON_EXTINT1 *((volatile unsigned int*)(0x42626F04UL)) -#define bFM4_INTREQ_IRQ093MON_EXTINT2 *((volatile unsigned int*)(0x42626F08UL)) -#define bFM4_INTREQ_IRQ093MON_EXTINT3 *((volatile unsigned int*)(0x42626F0CUL)) -#define bFM4_INTREQ_IRQ094MON_EXTINT0 *((volatile unsigned int*)(0x42626F80UL)) -#define bFM4_INTREQ_IRQ094MON_EXTINT1 *((volatile unsigned int*)(0x42626F84UL)) -#define bFM4_INTREQ_IRQ094MON_EXTINT2 *((volatile unsigned int*)(0x42626F88UL)) -#define bFM4_INTREQ_IRQ094MON_EXTINT3 *((volatile unsigned int*)(0x42626F8CUL)) -#define bFM4_INTREQ_IRQ095MON_EXTINT0 *((volatile unsigned int*)(0x42627000UL)) -#define bFM4_INTREQ_IRQ095MON_EXTINT1 *((volatile unsigned int*)(0x42627004UL)) -#define bFM4_INTREQ_IRQ095MON_EXTINT2 *((volatile unsigned int*)(0x42627008UL)) -#define bFM4_INTREQ_IRQ095MON_EXTINT3 *((volatile unsigned int*)(0x4262700CUL)) -#define bFM4_INTREQ_IRQ096MON_QUDINT0 *((volatile unsigned int*)(0x42627080UL)) -#define bFM4_INTREQ_IRQ096MON_QUDINT1 *((volatile unsigned int*)(0x42627084UL)) -#define bFM4_INTREQ_IRQ096MON_QUDINT2 *((volatile unsigned int*)(0x42627088UL)) -#define bFM4_INTREQ_IRQ096MON_QUDINT3 *((volatile unsigned int*)(0x4262708CUL)) -#define bFM4_INTREQ_IRQ096MON_QUDINT4 *((volatile unsigned int*)(0x42627090UL)) -#define bFM4_INTREQ_IRQ096MON_QUDINT5 *((volatile unsigned int*)(0x42627094UL)) -#define bFM4_INTREQ_IRQ097MON_QUDINT0 *((volatile unsigned int*)(0x42627100UL)) -#define bFM4_INTREQ_IRQ097MON_QUDINT1 *((volatile unsigned int*)(0x42627104UL)) -#define bFM4_INTREQ_IRQ097MON_QUDINT2 *((volatile unsigned int*)(0x42627108UL)) -#define bFM4_INTREQ_IRQ097MON_QUDINT3 *((volatile unsigned int*)(0x4262710CUL)) -#define bFM4_INTREQ_IRQ097MON_QUDINT4 *((volatile unsigned int*)(0x42627110UL)) -#define bFM4_INTREQ_IRQ097MON_QUDINT5 *((volatile unsigned int*)(0x42627114UL)) -#define bFM4_INTREQ_IRQ098MON_BTINT0 *((volatile unsigned int*)(0x42627180UL)) -#define bFM4_INTREQ_IRQ098MON_BTINT1 *((volatile unsigned int*)(0x42627184UL)) -#define bFM4_INTREQ_IRQ099MON_BTINT0 *((volatile unsigned int*)(0x42627200UL)) -#define bFM4_INTREQ_IRQ099MON_BTINT1 *((volatile unsigned int*)(0x42627204UL)) -#define bFM4_INTREQ_IRQ100MON_BTINT0 *((volatile unsigned int*)(0x42627280UL)) -#define bFM4_INTREQ_IRQ100MON_BTINT1 *((volatile unsigned int*)(0x42627284UL)) -#define bFM4_INTREQ_IRQ101MON_BTINT0 *((volatile unsigned int*)(0x42627300UL)) -#define bFM4_INTREQ_IRQ101MON_BTINT1 *((volatile unsigned int*)(0x42627304UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT0 *((volatile unsigned int*)(0x42627380UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT1 *((volatile unsigned int*)(0x42627384UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT2 *((volatile unsigned int*)(0x42627388UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT3 *((volatile unsigned int*)(0x4262738CUL)) -#define bFM4_INTREQ_IRQ102MON_BTINT4 *((volatile unsigned int*)(0x42627390UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT5 *((volatile unsigned int*)(0x42627394UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT6 *((volatile unsigned int*)(0x42627398UL)) -#define bFM4_INTREQ_IRQ102MON_BTINT7 *((volatile unsigned int*)(0x4262739CUL)) -#define bFM4_INTREQ_IRQ103MON_MFSRINT *((volatile unsigned int*)(0x42627400UL)) -#define bFM4_INTREQ_IRQ104MON_MFSINT0 *((volatile unsigned int*)(0x42627480UL)) -#define bFM4_INTREQ_IRQ104MON_MFSINT1 *((volatile unsigned int*)(0x42627484UL)) -#define bFM4_INTREQ_IRQ105MON_MFSRINT *((volatile unsigned int*)(0x42627500UL)) -#define bFM4_INTREQ_IRQ106MON_MFSINT0 *((volatile unsigned int*)(0x42627580UL)) -#define bFM4_INTREQ_IRQ106MON_MFSINT1 *((volatile unsigned int*)(0x42627584UL)) -#define bFM4_INTREQ_IRQ107MON_MFSRINT *((volatile unsigned int*)(0x42627600UL)) -#define bFM4_INTREQ_IRQ108MON_MFSINT0 *((volatile unsigned int*)(0x42627680UL)) -#define bFM4_INTREQ_IRQ108MON_MFSINT1 *((volatile unsigned int*)(0x42627684UL)) -#define bFM4_INTREQ_IRQ109MON_MFSRINT *((volatile unsigned int*)(0x42627700UL)) -#define bFM4_INTREQ_IRQ110MON_MFSINT0 *((volatile unsigned int*)(0x42627780UL)) -#define bFM4_INTREQ_IRQ110MON_MFSINT1 *((volatile unsigned int*)(0x42627784UL)) -#define bFM4_INTREQ_IRQ111MON_ADCINT0 *((volatile unsigned int*)(0x42627800UL)) -#define bFM4_INTREQ_IRQ111MON_ADCINT1 *((volatile unsigned int*)(0x42627804UL)) -#define bFM4_INTREQ_IRQ111MON_ADCINT2 *((volatile unsigned int*)(0x42627808UL)) -#define bFM4_INTREQ_IRQ111MON_ADCINT3 *((volatile unsigned int*)(0x4262780CUL)) -#define bFM4_INTREQ_IRQ111MON_ADCINT4 *((volatile unsigned int*)(0x42627810UL)) -#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT0 *((volatile unsigned int*)(0x42627900UL)) -#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT1 *((volatile unsigned int*)(0x42627904UL)) -#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT2 *((volatile unsigned int*)(0x42627908UL)) -#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT3 *((volatile unsigned int*)(0x4262790CUL)) -#define bFM4_INTREQ_IRQ113MON_USB_DRQ_INT4 *((volatile unsigned int*)(0x42627910UL)) -#define bFM4_INTREQ_IRQ114MON_USB_INT0 *((volatile unsigned int*)(0x42627980UL)) -#define bFM4_INTREQ_IRQ114MON_USB_INT1 *((volatile unsigned int*)(0x42627984UL)) -#define bFM4_INTREQ_IRQ114MON_USB_INT2 *((volatile unsigned int*)(0x42627988UL)) -#define bFM4_INTREQ_IRQ114MON_USB_INT3 *((volatile unsigned int*)(0x4262798CUL)) -#define bFM4_INTREQ_IRQ114MON_USB_INT4 *((volatile unsigned int*)(0x42627990UL)) -#define bFM4_INTREQ_IRQ114MON_USB_INT5 *((volatile unsigned int*)(0x42627994UL)) -#define bFM4_INTREQ_IRQ118MON_SDINT0 *((volatile unsigned int*)(0x42627B80UL)) -#define bFM4_INTREQ_IRQ118MON_SDINT1 *((volatile unsigned int*)(0x42627B84UL)) -#define bFM4_INTREQ_IRQ119MON_FLINT *((volatile unsigned int*)(0x42627C00UL)) -#define bFM4_INTREQ_IRQ120MON_MFSRINT *((volatile unsigned int*)(0x42627C80UL)) -#define bFM4_INTREQ_IRQ121MON_MFSINT0 *((volatile unsigned int*)(0x42627D00UL)) -#define bFM4_INTREQ_IRQ121MON_MFSINT1 *((volatile unsigned int*)(0x42627D04UL)) -#define bFM4_INTREQ_IRQ122MON_MFSRINT *((volatile unsigned int*)(0x42627D80UL)) -#define bFM4_INTREQ_IRQ123MON_MFSINT0 *((volatile unsigned int*)(0x42627E00UL)) -#define bFM4_INTREQ_IRQ123MON_MFSINT1 *((volatile unsigned int*)(0x42627E04UL)) -#define bFM4_INTREQ_IRQ124MON_MFSRINT *((volatile unsigned int*)(0x42627E80UL)) -#define bFM4_INTREQ_IRQ125MON_MFSINT0 *((volatile unsigned int*)(0x42627F00UL)) -#define bFM4_INTREQ_IRQ125MON_MFSINT1 *((volatile unsigned int*)(0x42627F04UL)) -#define bFM4_INTREQ_IRQ126MON_MFSRINT *((volatile unsigned int*)(0x42627F80UL)) -#define bFM4_INTREQ_IRQ127MON_MFSINT0 *((volatile unsigned int*)(0x42628000UL)) -#define bFM4_INTREQ_IRQ127MON_MFSINT1 *((volatile unsigned int*)(0x42628004UL)) - -/* 12-bit DAC unit 0 registers */ -#define bFM4_DAC0_DACR_DAE *((volatile unsigned int*)(0x42660000UL)) -#define bFM4_DAC0_DACR_DRDY *((volatile unsigned int*)(0x42660004UL)) -#define bFM4_DAC0_DACR_DAC10 *((volatile unsigned int*)(0x42660010UL)) -#define bFM4_DAC0_DACR_DDAS *((volatile unsigned int*)(0x42660014UL)) -#define bFM4_DAC0_DADR_DA0 *((volatile unsigned int*)(0x42660080UL)) -#define bFM4_DAC0_DADR_DA1 *((volatile unsigned int*)(0x42660084UL)) -#define bFM4_DAC0_DADR_DA2 *((volatile unsigned int*)(0x42660088UL)) -#define bFM4_DAC0_DADR_DA3 *((volatile unsigned int*)(0x4266008CUL)) -#define bFM4_DAC0_DADR_DA4 *((volatile unsigned int*)(0x42660090UL)) -#define bFM4_DAC0_DADR_DA5 *((volatile unsigned int*)(0x42660094UL)) -#define bFM4_DAC0_DADR_DA6 *((volatile unsigned int*)(0x42660098UL)) -#define bFM4_DAC0_DADR_DA7 *((volatile unsigned int*)(0x4266009CUL)) -#define bFM4_DAC0_DADR_DA8 *((volatile unsigned int*)(0x426600A0UL)) -#define bFM4_DAC0_DADR_DA9 *((volatile unsigned int*)(0x426600A4UL)) -#define bFM4_DAC0_DADR_DA10 *((volatile unsigned int*)(0x426600A8UL)) -#define bFM4_DAC0_DADR_DA11 *((volatile unsigned int*)(0x426600ACUL)) - -/* 12-bit DAC unit 1 registers */ -#define bFM4_DAC1_DACR_DAE *((volatile unsigned int*)(0x42660100UL)) -#define bFM4_DAC1_DACR_DRDY *((volatile unsigned int*)(0x42660104UL)) -#define bFM4_DAC1_DACR_DAC10 *((volatile unsigned int*)(0x42660110UL)) -#define bFM4_DAC1_DACR_DDAS *((volatile unsigned int*)(0x42660114UL)) -#define bFM4_DAC1_DADR_DA0 *((volatile unsigned int*)(0x42660180UL)) -#define bFM4_DAC1_DADR_DA1 *((volatile unsigned int*)(0x42660184UL)) -#define bFM4_DAC1_DADR_DA2 *((volatile unsigned int*)(0x42660188UL)) -#define bFM4_DAC1_DADR_DA3 *((volatile unsigned int*)(0x4266018CUL)) -#define bFM4_DAC1_DADR_DA4 *((volatile unsigned int*)(0x42660190UL)) -#define bFM4_DAC1_DADR_DA5 *((volatile unsigned int*)(0x42660194UL)) -#define bFM4_DAC1_DADR_DA6 *((volatile unsigned int*)(0x42660198UL)) -#define bFM4_DAC1_DADR_DA7 *((volatile unsigned int*)(0x4266019CUL)) -#define bFM4_DAC1_DADR_DA8 *((volatile unsigned int*)(0x426601A0UL)) -#define bFM4_DAC1_DADR_DA9 *((volatile unsigned int*)(0x426601A4UL)) -#define bFM4_DAC1_DADR_DA10 *((volatile unsigned int*)(0x426601A8UL)) -#define bFM4_DAC1_DADR_DA11 *((volatile unsigned int*)(0x426601ACUL)) - -/* General purpose I/O registers */ -#define bFM4_GPIO_PFR0_P00 *((volatile unsigned int*)(0x42DE0000UL)) -#define bFM4_GPIO_PFR0_P01 *((volatile unsigned int*)(0x42DE0004UL)) -#define bFM4_GPIO_PFR0_P02 *((volatile unsigned int*)(0x42DE0008UL)) -#define bFM4_GPIO_PFR0_P03 *((volatile unsigned int*)(0x42DE000CUL)) -#define bFM4_GPIO_PFR0_P04 *((volatile unsigned int*)(0x42DE0010UL)) -#define bFM4_GPIO_PFR0_P05 *((volatile unsigned int*)(0x42DE0014UL)) -#define bFM4_GPIO_PFR0_P06 *((volatile unsigned int*)(0x42DE0018UL)) -#define bFM4_GPIO_PFR0_P07 *((volatile unsigned int*)(0x42DE001CUL)) -#define bFM4_GPIO_PFR0_P08 *((volatile unsigned int*)(0x42DE0020UL)) -#define bFM4_GPIO_PFR0_P09 *((volatile unsigned int*)(0x42DE0024UL)) -#define bFM4_GPIO_PFR0_P0A *((volatile unsigned int*)(0x42DE0028UL)) -#define bFM4_GPIO_PFR0_P0B *((volatile unsigned int*)(0x42DE002CUL)) -#define bFM4_GPIO_PFR0_P0C *((volatile unsigned int*)(0x42DE0030UL)) -#define bFM4_GPIO_PFR0_P0D *((volatile unsigned int*)(0x42DE0034UL)) -#define bFM4_GPIO_PFR0_P0E *((volatile unsigned int*)(0x42DE0038UL)) -#define bFM4_GPIO_PFR1_P10 *((volatile unsigned int*)(0x42DE0080UL)) -#define bFM4_GPIO_PFR1_P11 *((volatile unsigned int*)(0x42DE0084UL)) -#define bFM4_GPIO_PFR1_P12 *((volatile unsigned int*)(0x42DE0088UL)) -#define bFM4_GPIO_PFR1_P13 *((volatile unsigned int*)(0x42DE008CUL)) -#define bFM4_GPIO_PFR1_P14 *((volatile unsigned int*)(0x42DE0090UL)) -#define bFM4_GPIO_PFR1_P15 *((volatile unsigned int*)(0x42DE0094UL)) -#define bFM4_GPIO_PFR1_P16 *((volatile unsigned int*)(0x42DE0098UL)) -#define bFM4_GPIO_PFR1_P17 *((volatile unsigned int*)(0x42DE009CUL)) -#define bFM4_GPIO_PFR1_P18 *((volatile unsigned int*)(0x42DE00A0UL)) -#define bFM4_GPIO_PFR1_P19 *((volatile unsigned int*)(0x42DE00A4UL)) -#define bFM4_GPIO_PFR1_P1A *((volatile unsigned int*)(0x42DE00A8UL)) -#define bFM4_GPIO_PFR1_P1B *((volatile unsigned int*)(0x42DE00ACUL)) -#define bFM4_GPIO_PFR1_P1C *((volatile unsigned int*)(0x42DE00B0UL)) -#define bFM4_GPIO_PFR1_P1D *((volatile unsigned int*)(0x42DE00B4UL)) -#define bFM4_GPIO_PFR1_P1E *((volatile unsigned int*)(0x42DE00B8UL)) -#define bFM4_GPIO_PFR1_P1F *((volatile unsigned int*)(0x42DE00BCUL)) -#define bFM4_GPIO_PFR2_P20 *((volatile unsigned int*)(0x42DE0100UL)) -#define bFM4_GPIO_PFR2_P21 *((volatile unsigned int*)(0x42DE0104UL)) -#define bFM4_GPIO_PFR2_P22 *((volatile unsigned int*)(0x42DE0108UL)) -#define bFM4_GPIO_PFR2_P23 *((volatile unsigned int*)(0x42DE010CUL)) -#define bFM4_GPIO_PFR2_P24 *((volatile unsigned int*)(0x42DE0110UL)) -#define bFM4_GPIO_PFR2_P25 *((volatile unsigned int*)(0x42DE0114UL)) -#define bFM4_GPIO_PFR2_P26 *((volatile unsigned int*)(0x42DE0118UL)) -#define bFM4_GPIO_PFR2_P27 *((volatile unsigned int*)(0x42DE011CUL)) -#define bFM4_GPIO_PFR3_P30 *((volatile unsigned int*)(0x42DE0180UL)) -#define bFM4_GPIO_PFR3_P31 *((volatile unsigned int*)(0x42DE0184UL)) -#define bFM4_GPIO_PFR3_P32 *((volatile unsigned int*)(0x42DE0188UL)) -#define bFM4_GPIO_PFR3_P33 *((volatile unsigned int*)(0x42DE018CUL)) -#define bFM4_GPIO_PFR3_P34 *((volatile unsigned int*)(0x42DE0190UL)) -#define bFM4_GPIO_PFR3_P35 *((volatile unsigned int*)(0x42DE0194UL)) -#define bFM4_GPIO_PFR3_P36 *((volatile unsigned int*)(0x42DE0198UL)) -#define bFM4_GPIO_PFR3_P37 *((volatile unsigned int*)(0x42DE019CUL)) -#define bFM4_GPIO_PFR3_P38 *((volatile unsigned int*)(0x42DE01A0UL)) -#define bFM4_GPIO_PFR3_P39 *((volatile unsigned int*)(0x42DE01A4UL)) -#define bFM4_GPIO_PFR3_P3A *((volatile unsigned int*)(0x42DE01A8UL)) -#define bFM4_GPIO_PFR3_P3B *((volatile unsigned int*)(0x42DE01ACUL)) -#define bFM4_GPIO_PFR3_P3C *((volatile unsigned int*)(0x42DE01B0UL)) -#define bFM4_GPIO_PFR3_P3D *((volatile unsigned int*)(0x42DE01B4UL)) -#define bFM4_GPIO_PFR3_P3E *((volatile unsigned int*)(0x42DE01B8UL)) -#define bFM4_GPIO_PFR3_P3F *((volatile unsigned int*)(0x42DE01BCUL)) -#define bFM4_GPIO_PFR4_P40 *((volatile unsigned int*)(0x42DE0200UL)) -#define bFM4_GPIO_PFR4_P41 *((volatile unsigned int*)(0x42DE0204UL)) -#define bFM4_GPIO_PFR4_P42 *((volatile unsigned int*)(0x42DE0208UL)) -#define bFM4_GPIO_PFR4_P43 *((volatile unsigned int*)(0x42DE020CUL)) -#define bFM4_GPIO_PFR4_P44 *((volatile unsigned int*)(0x42DE0210UL)) -#define bFM4_GPIO_PFR4_P45 *((volatile unsigned int*)(0x42DE0214UL)) -#define bFM4_GPIO_PFR4_P46 *((volatile unsigned int*)(0x42DE0218UL)) -#define bFM4_GPIO_PFR4_P47 *((volatile unsigned int*)(0x42DE021CUL)) -#define bFM4_GPIO_PFR4_P48 *((volatile unsigned int*)(0x42DE0220UL)) -#define bFM4_GPIO_PFR4_P49 *((volatile unsigned int*)(0x42DE0224UL)) -#define bFM4_GPIO_PFR4_P4A *((volatile unsigned int*)(0x42DE0228UL)) -#define bFM4_GPIO_PFR4_P4B *((volatile unsigned int*)(0x42DE022CUL)) -#define bFM4_GPIO_PFR4_P4C *((volatile unsigned int*)(0x42DE0230UL)) -#define bFM4_GPIO_PFR4_P4D *((volatile unsigned int*)(0x42DE0234UL)) -#define bFM4_GPIO_PFR4_P4E *((volatile unsigned int*)(0x42DE0238UL)) -#define bFM4_GPIO_PFR5_P50 *((volatile unsigned int*)(0x42DE0280UL)) -#define bFM4_GPIO_PFR5_P51 *((volatile unsigned int*)(0x42DE0284UL)) -#define bFM4_GPIO_PFR5_P52 *((volatile unsigned int*)(0x42DE0288UL)) -#define bFM4_GPIO_PFR5_P53 *((volatile unsigned int*)(0x42DE028CUL)) -#define bFM4_GPIO_PFR5_P54 *((volatile unsigned int*)(0x42DE0290UL)) -#define bFM4_GPIO_PFR5_P55 *((volatile unsigned int*)(0x42DE0294UL)) -#define bFM4_GPIO_PFR5_P56 *((volatile unsigned int*)(0x42DE0298UL)) -#define bFM4_GPIO_PFR5_P57 *((volatile unsigned int*)(0x42DE029CUL)) -#define bFM4_GPIO_PFR5_P58 *((volatile unsigned int*)(0x42DE02A0UL)) -#define bFM4_GPIO_PFR5_P59 *((volatile unsigned int*)(0x42DE02A4UL)) -#define bFM4_GPIO_PFR5_P5A *((volatile unsigned int*)(0x42DE02A8UL)) -#define bFM4_GPIO_PFR5_P5B *((volatile unsigned int*)(0x42DE02ACUL)) -#define bFM4_GPIO_PFR6_P60 *((volatile unsigned int*)(0x42DE0300UL)) -#define bFM4_GPIO_PFR6_P61 *((volatile unsigned int*)(0x42DE0304UL)) -#define bFM4_GPIO_PFR6_P62 *((volatile unsigned int*)(0x42DE0308UL)) -#define bFM4_GPIO_PFR6_P63 *((volatile unsigned int*)(0x42DE030CUL)) -#define bFM4_GPIO_PFR6_P64 *((volatile unsigned int*)(0x42DE0310UL)) -#define bFM4_GPIO_PFR6_P65 *((volatile unsigned int*)(0x42DE0314UL)) -#define bFM4_GPIO_PFR6_P66 *((volatile unsigned int*)(0x42DE0318UL)) -#define bFM4_GPIO_PFR6_P67 *((volatile unsigned int*)(0x42DE031CUL)) -#define bFM4_GPIO_PFR6_P68 *((volatile unsigned int*)(0x42DE0320UL)) -#define bFM4_GPIO_PFR7_P70 *((volatile unsigned int*)(0x42DE0380UL)) -#define bFM4_GPIO_PFR7_P71 *((volatile unsigned int*)(0x42DE0384UL)) -#define bFM4_GPIO_PFR7_P72 *((volatile unsigned int*)(0x42DE0388UL)) -#define bFM4_GPIO_PFR7_P73 *((volatile unsigned int*)(0x42DE038CUL)) -#define bFM4_GPIO_PFR7_P74 *((volatile unsigned int*)(0x42DE0390UL)) -#define bFM4_GPIO_PFR8_P80 *((volatile unsigned int*)(0x42DE0400UL)) -#define bFM4_GPIO_PFR8_P81 *((volatile unsigned int*)(0x42DE0404UL)) -#define bFM4_GPIO_PFRE_PE0 *((volatile unsigned int*)(0x42DE0700UL)) -#define bFM4_GPIO_PFRE_PE2 *((volatile unsigned int*)(0x42DE0708UL)) -#define bFM4_GPIO_PFRE_PE3 *((volatile unsigned int*)(0x42DE070CUL)) -#define bFM4_GPIO_PCR0_P00 *((volatile unsigned int*)(0x42DE2000UL)) -#define bFM4_GPIO_PCR0_P01 *((volatile unsigned int*)(0x42DE2004UL)) -#define bFM4_GPIO_PCR0_P02 *((volatile unsigned int*)(0x42DE2008UL)) -#define bFM4_GPIO_PCR0_P03 *((volatile unsigned int*)(0x42DE200CUL)) -#define bFM4_GPIO_PCR0_P04 *((volatile unsigned int*)(0x42DE2010UL)) -#define bFM4_GPIO_PCR0_P05 *((volatile unsigned int*)(0x42DE2014UL)) -#define bFM4_GPIO_PCR0_P06 *((volatile unsigned int*)(0x42DE2018UL)) -#define bFM4_GPIO_PCR0_P07 *((volatile unsigned int*)(0x42DE201CUL)) -#define bFM4_GPIO_PCR0_P08 *((volatile unsigned int*)(0x42DE2020UL)) -#define bFM4_GPIO_PCR0_P09 *((volatile unsigned int*)(0x42DE2024UL)) -#define bFM4_GPIO_PCR0_P0A *((volatile unsigned int*)(0x42DE2028UL)) -#define bFM4_GPIO_PCR0_P0B *((volatile unsigned int*)(0x42DE202CUL)) -#define bFM4_GPIO_PCR0_P0C *((volatile unsigned int*)(0x42DE2030UL)) -#define bFM4_GPIO_PCR0_P0D *((volatile unsigned int*)(0x42DE2034UL)) -#define bFM4_GPIO_PCR0_P0E *((volatile unsigned int*)(0x42DE2038UL)) -#define bFM4_GPIO_PCR1_P10 *((volatile unsigned int*)(0x42DE2080UL)) -#define bFM4_GPIO_PCR1_P11 *((volatile unsigned int*)(0x42DE2084UL)) -#define bFM4_GPIO_PCR1_P12 *((volatile unsigned int*)(0x42DE2088UL)) -#define bFM4_GPIO_PCR1_P13 *((volatile unsigned int*)(0x42DE208CUL)) -#define bFM4_GPIO_PCR1_P14 *((volatile unsigned int*)(0x42DE2090UL)) -#define bFM4_GPIO_PCR1_P15 *((volatile unsigned int*)(0x42DE2094UL)) -#define bFM4_GPIO_PCR1_P16 *((volatile unsigned int*)(0x42DE2098UL)) -#define bFM4_GPIO_PCR1_P17 *((volatile unsigned int*)(0x42DE209CUL)) -#define bFM4_GPIO_PCR1_P18 *((volatile unsigned int*)(0x42DE20A0UL)) -#define bFM4_GPIO_PCR1_P19 *((volatile unsigned int*)(0x42DE20A4UL)) -#define bFM4_GPIO_PCR1_P1A *((volatile unsigned int*)(0x42DE20A8UL)) -#define bFM4_GPIO_PCR1_P1B *((volatile unsigned int*)(0x42DE20ACUL)) -#define bFM4_GPIO_PCR1_P1C *((volatile unsigned int*)(0x42DE20B0UL)) -#define bFM4_GPIO_PCR1_P1D *((volatile unsigned int*)(0x42DE20B4UL)) -#define bFM4_GPIO_PCR1_P1E *((volatile unsigned int*)(0x42DE20B8UL)) -#define bFM4_GPIO_PCR1_P1F *((volatile unsigned int*)(0x42DE20BCUL)) -#define bFM4_GPIO_PCR2_P20 *((volatile unsigned int*)(0x42DE2100UL)) -#define bFM4_GPIO_PCR2_P21 *((volatile unsigned int*)(0x42DE2104UL)) -#define bFM4_GPIO_PCR2_P22 *((volatile unsigned int*)(0x42DE2108UL)) -#define bFM4_GPIO_PCR2_P23 *((volatile unsigned int*)(0x42DE210CUL)) -#define bFM4_GPIO_PCR2_P24 *((volatile unsigned int*)(0x42DE2110UL)) -#define bFM4_GPIO_PCR2_P25 *((volatile unsigned int*)(0x42DE2114UL)) -#define bFM4_GPIO_PCR2_P26 *((volatile unsigned int*)(0x42DE2118UL)) -#define bFM4_GPIO_PCR2_P27 *((volatile unsigned int*)(0x42DE211CUL)) -#define bFM4_GPIO_PCR3_P30 *((volatile unsigned int*)(0x42DE2180UL)) -#define bFM4_GPIO_PCR3_P31 *((volatile unsigned int*)(0x42DE2184UL)) -#define bFM4_GPIO_PCR3_P32 *((volatile unsigned int*)(0x42DE2188UL)) -#define bFM4_GPIO_PCR3_P33 *((volatile unsigned int*)(0x42DE218CUL)) -#define bFM4_GPIO_PCR3_P34 *((volatile unsigned int*)(0x42DE2190UL)) -#define bFM4_GPIO_PCR3_P35 *((volatile unsigned int*)(0x42DE2194UL)) -#define bFM4_GPIO_PCR3_P36 *((volatile unsigned int*)(0x42DE2198UL)) -#define bFM4_GPIO_PCR3_P37 *((volatile unsigned int*)(0x42DE219CUL)) -#define bFM4_GPIO_PCR3_P38 *((volatile unsigned int*)(0x42DE21A0UL)) -#define bFM4_GPIO_PCR3_P39 *((volatile unsigned int*)(0x42DE21A4UL)) -#define bFM4_GPIO_PCR3_P3A *((volatile unsigned int*)(0x42DE21A8UL)) -#define bFM4_GPIO_PCR3_P3B *((volatile unsigned int*)(0x42DE21ACUL)) -#define bFM4_GPIO_PCR3_P3C *((volatile unsigned int*)(0x42DE21B0UL)) -#define bFM4_GPIO_PCR3_P3D *((volatile unsigned int*)(0x42DE21B4UL)) -#define bFM4_GPIO_PCR3_P3E *((volatile unsigned int*)(0x42DE21B8UL)) -#define bFM4_GPIO_PCR3_P3F *((volatile unsigned int*)(0x42DE21BCUL)) -#define bFM4_GPIO_PCR4_P40 *((volatile unsigned int*)(0x42DE2200UL)) -#define bFM4_GPIO_PCR4_P41 *((volatile unsigned int*)(0x42DE2204UL)) -#define bFM4_GPIO_PCR4_P42 *((volatile unsigned int*)(0x42DE2208UL)) -#define bFM4_GPIO_PCR4_P43 *((volatile unsigned int*)(0x42DE220CUL)) -#define bFM4_GPIO_PCR4_P44 *((volatile unsigned int*)(0x42DE2210UL)) -#define bFM4_GPIO_PCR4_P45 *((volatile unsigned int*)(0x42DE2214UL)) -#define bFM4_GPIO_PCR4_P46 *((volatile unsigned int*)(0x42DE2218UL)) -#define bFM4_GPIO_PCR4_P47 *((volatile unsigned int*)(0x42DE221CUL)) -#define bFM4_GPIO_PCR4_P48 *((volatile unsigned int*)(0x42DE2220UL)) -#define bFM4_GPIO_PCR4_P49 *((volatile unsigned int*)(0x42DE2224UL)) -#define bFM4_GPIO_PCR4_P4A *((volatile unsigned int*)(0x42DE2228UL)) -#define bFM4_GPIO_PCR4_P4B *((volatile unsigned int*)(0x42DE222CUL)) -#define bFM4_GPIO_PCR4_P4C *((volatile unsigned int*)(0x42DE2230UL)) -#define bFM4_GPIO_PCR4_P4D *((volatile unsigned int*)(0x42DE2234UL)) -#define bFM4_GPIO_PCR4_P4E *((volatile unsigned int*)(0x42DE2238UL)) -#define bFM4_GPIO_PCR5_P50 *((volatile unsigned int*)(0x42DE2280UL)) -#define bFM4_GPIO_PCR5_P51 *((volatile unsigned int*)(0x42DE2284UL)) -#define bFM4_GPIO_PCR5_P52 *((volatile unsigned int*)(0x42DE2288UL)) -#define bFM4_GPIO_PCR5_P53 *((volatile unsigned int*)(0x42DE228CUL)) -#define bFM4_GPIO_PCR5_P54 *((volatile unsigned int*)(0x42DE2290UL)) -#define bFM4_GPIO_PCR5_P55 *((volatile unsigned int*)(0x42DE2294UL)) -#define bFM4_GPIO_PCR5_P56 *((volatile unsigned int*)(0x42DE2298UL)) -#define bFM4_GPIO_PCR5_P57 *((volatile unsigned int*)(0x42DE229CUL)) -#define bFM4_GPIO_PCR5_P58 *((volatile unsigned int*)(0x42DE22A0UL)) -#define bFM4_GPIO_PCR5_P59 *((volatile unsigned int*)(0x42DE22A4UL)) -#define bFM4_GPIO_PCR5_P5A *((volatile unsigned int*)(0x42DE22A8UL)) -#define bFM4_GPIO_PCR5_P5B *((volatile unsigned int*)(0x42DE22ACUL)) -#define bFM4_GPIO_PCR6_P60 *((volatile unsigned int*)(0x42DE2300UL)) -#define bFM4_GPIO_PCR6_P61 *((volatile unsigned int*)(0x42DE2304UL)) -#define bFM4_GPIO_PCR6_P62 *((volatile unsigned int*)(0x42DE2308UL)) -#define bFM4_GPIO_PCR6_P63 *((volatile unsigned int*)(0x42DE230CUL)) -#define bFM4_GPIO_PCR6_P64 *((volatile unsigned int*)(0x42DE2310UL)) -#define bFM4_GPIO_PCR6_P65 *((volatile unsigned int*)(0x42DE2314UL)) -#define bFM4_GPIO_PCR6_P66 *((volatile unsigned int*)(0x42DE2318UL)) -#define bFM4_GPIO_PCR6_P67 *((volatile unsigned int*)(0x42DE231CUL)) -#define bFM4_GPIO_PCR6_P68 *((volatile unsigned int*)(0x42DE2320UL)) -#define bFM4_GPIO_PCR7_P70 *((volatile unsigned int*)(0x42DE2380UL)) -#define bFM4_GPIO_PCR7_P71 *((volatile unsigned int*)(0x42DE2384UL)) -#define bFM4_GPIO_PCR7_P72 *((volatile unsigned int*)(0x42DE2388UL)) -#define bFM4_GPIO_PCR7_P73 *((volatile unsigned int*)(0x42DE238CUL)) -#define bFM4_GPIO_PCR7_P74 *((volatile unsigned int*)(0x42DE2390UL)) -#define bFM4_GPIO_PCR8_P80 *((volatile unsigned int*)(0x42DE2400UL)) -#define bFM4_GPIO_PCR8_P81 *((volatile unsigned int*)(0x42DE2404UL)) -#define bFM4_GPIO_PCRE_PE0 *((volatile unsigned int*)(0x42DE2700UL)) -#define bFM4_GPIO_PCRE_PE2 *((volatile unsigned int*)(0x42DE2708UL)) -#define bFM4_GPIO_PCRE_PE3 *((volatile unsigned int*)(0x42DE270CUL)) -#define bFM4_GPIO_DDR0_P00 *((volatile unsigned int*)(0x42DE4000UL)) -#define bFM4_GPIO_DDR0_P01 *((volatile unsigned int*)(0x42DE4004UL)) -#define bFM4_GPIO_DDR0_P02 *((volatile unsigned int*)(0x42DE4008UL)) -#define bFM4_GPIO_DDR0_P03 *((volatile unsigned int*)(0x42DE400CUL)) -#define bFM4_GPIO_DDR0_P04 *((volatile unsigned int*)(0x42DE4010UL)) -#define bFM4_GPIO_DDR0_P05 *((volatile unsigned int*)(0x42DE4014UL)) -#define bFM4_GPIO_DDR0_P06 *((volatile unsigned int*)(0x42DE4018UL)) -#define bFM4_GPIO_DDR0_P07 *((volatile unsigned int*)(0x42DE401CUL)) -#define bFM4_GPIO_DDR0_P08 *((volatile unsigned int*)(0x42DE4020UL)) -#define bFM4_GPIO_DDR0_P09 *((volatile unsigned int*)(0x42DE4024UL)) -#define bFM4_GPIO_DDR0_P0A *((volatile unsigned int*)(0x42DE4028UL)) -#define bFM4_GPIO_DDR0_P0B *((volatile unsigned int*)(0x42DE402CUL)) -#define bFM4_GPIO_DDR0_P0C *((volatile unsigned int*)(0x42DE4030UL)) -#define bFM4_GPIO_DDR0_P0D *((volatile unsigned int*)(0x42DE4034UL)) -#define bFM4_GPIO_DDR0_P0E *((volatile unsigned int*)(0x42DE4038UL)) -#define bFM4_GPIO_DDR0_P0F *((volatile unsigned int*)(0x42DE403CUL)) -#define bFM4_GPIO_DDR1_P10 *((volatile unsigned int*)(0x42DE4080UL)) -#define bFM4_GPIO_DDR1_P11 *((volatile unsigned int*)(0x42DE4084UL)) -#define bFM4_GPIO_DDR1_P12 *((volatile unsigned int*)(0x42DE4088UL)) -#define bFM4_GPIO_DDR1_P13 *((volatile unsigned int*)(0x42DE408CUL)) -#define bFM4_GPIO_DDR1_P14 *((volatile unsigned int*)(0x42DE4090UL)) -#define bFM4_GPIO_DDR1_P15 *((volatile unsigned int*)(0x42DE4094UL)) -#define bFM4_GPIO_DDR1_P16 *((volatile unsigned int*)(0x42DE4098UL)) -#define bFM4_GPIO_DDR1_P17 *((volatile unsigned int*)(0x42DE409CUL)) -#define bFM4_GPIO_DDR1_P18 *((volatile unsigned int*)(0x42DE40A0UL)) -#define bFM4_GPIO_DDR1_P19 *((volatile unsigned int*)(0x42DE40A4UL)) -#define bFM4_GPIO_DDR1_P1A *((volatile unsigned int*)(0x42DE40A8UL)) -#define bFM4_GPIO_DDR1_P1B *((volatile unsigned int*)(0x42DE40ACUL)) -#define bFM4_GPIO_DDR1_P1C *((volatile unsigned int*)(0x42DE40B0UL)) -#define bFM4_GPIO_DDR1_P1D *((volatile unsigned int*)(0x42DE40B4UL)) -#define bFM4_GPIO_DDR1_P1E *((volatile unsigned int*)(0x42DE40B8UL)) -#define bFM4_GPIO_DDR1_P1F *((volatile unsigned int*)(0x42DE40BCUL)) -#define bFM4_GPIO_DDR2_P20 *((volatile unsigned int*)(0x42DE4100UL)) -#define bFM4_GPIO_DDR2_P21 *((volatile unsigned int*)(0x42DE4104UL)) -#define bFM4_GPIO_DDR2_P22 *((volatile unsigned int*)(0x42DE4108UL)) -#define bFM4_GPIO_DDR2_P23 *((volatile unsigned int*)(0x42DE410CUL)) -#define bFM4_GPIO_DDR2_P24 *((volatile unsigned int*)(0x42DE4110UL)) -#define bFM4_GPIO_DDR2_P25 *((volatile unsigned int*)(0x42DE4114UL)) -#define bFM4_GPIO_DDR2_P26 *((volatile unsigned int*)(0x42DE4118UL)) -#define bFM4_GPIO_DDR2_P27 *((volatile unsigned int*)(0x42DE411CUL)) -#define bFM4_GPIO_DDR3_P30 *((volatile unsigned int*)(0x42DE4180UL)) -#define bFM4_GPIO_DDR3_P31 *((volatile unsigned int*)(0x42DE4184UL)) -#define bFM4_GPIO_DDR3_P32 *((volatile unsigned int*)(0x42DE4188UL)) -#define bFM4_GPIO_DDR3_P33 *((volatile unsigned int*)(0x42DE418CUL)) -#define bFM4_GPIO_DDR3_P34 *((volatile unsigned int*)(0x42DE4190UL)) -#define bFM4_GPIO_DDR3_P35 *((volatile unsigned int*)(0x42DE4194UL)) -#define bFM4_GPIO_DDR3_P36 *((volatile unsigned int*)(0x42DE4198UL)) -#define bFM4_GPIO_DDR3_P37 *((volatile unsigned int*)(0x42DE419CUL)) -#define bFM4_GPIO_DDR3_P38 *((volatile unsigned int*)(0x42DE41A0UL)) -#define bFM4_GPIO_DDR3_P39 *((volatile unsigned int*)(0x42DE41A4UL)) -#define bFM4_GPIO_DDR3_P3A *((volatile unsigned int*)(0x42DE41A8UL)) -#define bFM4_GPIO_DDR3_P3B *((volatile unsigned int*)(0x42DE41ACUL)) -#define bFM4_GPIO_DDR3_P3C *((volatile unsigned int*)(0x42DE41B0UL)) -#define bFM4_GPIO_DDR3_P3D *((volatile unsigned int*)(0x42DE41B4UL)) -#define bFM4_GPIO_DDR3_P3E *((volatile unsigned int*)(0x42DE41B8UL)) -#define bFM4_GPIO_DDR3_P3F *((volatile unsigned int*)(0x42DE41BCUL)) -#define bFM4_GPIO_DDR4_P40 *((volatile unsigned int*)(0x42DE4200UL)) -#define bFM4_GPIO_DDR4_P41 *((volatile unsigned int*)(0x42DE4204UL)) -#define bFM4_GPIO_DDR4_P42 *((volatile unsigned int*)(0x42DE4208UL)) -#define bFM4_GPIO_DDR4_P43 *((volatile unsigned int*)(0x42DE420CUL)) -#define bFM4_GPIO_DDR4_P44 *((volatile unsigned int*)(0x42DE4210UL)) -#define bFM4_GPIO_DDR4_P45 *((volatile unsigned int*)(0x42DE4214UL)) -#define bFM4_GPIO_DDR4_P46 *((volatile unsigned int*)(0x42DE4218UL)) -#define bFM4_GPIO_DDR4_P47 *((volatile unsigned int*)(0x42DE421CUL)) -#define bFM4_GPIO_DDR4_P48 *((volatile unsigned int*)(0x42DE4220UL)) -#define bFM4_GPIO_DDR4_P49 *((volatile unsigned int*)(0x42DE4224UL)) -#define bFM4_GPIO_DDR4_P4A *((volatile unsigned int*)(0x42DE4228UL)) -#define bFM4_GPIO_DDR4_P4B *((volatile unsigned int*)(0x42DE422CUL)) -#define bFM4_GPIO_DDR4_P4C *((volatile unsigned int*)(0x42DE4230UL)) -#define bFM4_GPIO_DDR4_P4D *((volatile unsigned int*)(0x42DE4234UL)) -#define bFM4_GPIO_DDR4_P4E *((volatile unsigned int*)(0x42DE4238UL)) -#define bFM4_GPIO_DDR5_P50 *((volatile unsigned int*)(0x42DE4280UL)) -#define bFM4_GPIO_DDR5_P51 *((volatile unsigned int*)(0x42DE4284UL)) -#define bFM4_GPIO_DDR5_P52 *((volatile unsigned int*)(0x42DE4288UL)) -#define bFM4_GPIO_DDR5_P53 *((volatile unsigned int*)(0x42DE428CUL)) -#define bFM4_GPIO_DDR5_P54 *((volatile unsigned int*)(0x42DE4290UL)) -#define bFM4_GPIO_DDR5_P55 *((volatile unsigned int*)(0x42DE4294UL)) -#define bFM4_GPIO_DDR5_P56 *((volatile unsigned int*)(0x42DE4298UL)) -#define bFM4_GPIO_DDR5_P57 *((volatile unsigned int*)(0x42DE429CUL)) -#define bFM4_GPIO_DDR5_P58 *((volatile unsigned int*)(0x42DE42A0UL)) -#define bFM4_GPIO_DDR5_P59 *((volatile unsigned int*)(0x42DE42A4UL)) -#define bFM4_GPIO_DDR5_P5A *((volatile unsigned int*)(0x42DE42A8UL)) -#define bFM4_GPIO_DDR5_P5B *((volatile unsigned int*)(0x42DE42ACUL)) -#define bFM4_GPIO_DDR6_P60 *((volatile unsigned int*)(0x42DE4300UL)) -#define bFM4_GPIO_DDR6_P61 *((volatile unsigned int*)(0x42DE4304UL)) -#define bFM4_GPIO_DDR6_P62 *((volatile unsigned int*)(0x42DE4308UL)) -#define bFM4_GPIO_DDR6_P63 *((volatile unsigned int*)(0x42DE430CUL)) -#define bFM4_GPIO_DDR6_P64 *((volatile unsigned int*)(0x42DE4310UL)) -#define bFM4_GPIO_DDR6_P65 *((volatile unsigned int*)(0x42DE4314UL)) -#define bFM4_GPIO_DDR6_P66 *((volatile unsigned int*)(0x42DE4318UL)) -#define bFM4_GPIO_DDR6_P67 *((volatile unsigned int*)(0x42DE431CUL)) -#define bFM4_GPIO_DDR6_P68 *((volatile unsigned int*)(0x42DE4320UL)) -#define bFM4_GPIO_DDR7_P70 *((volatile unsigned int*)(0x42DE4380UL)) -#define bFM4_GPIO_DDR7_P71 *((volatile unsigned int*)(0x42DE4384UL)) -#define bFM4_GPIO_DDR7_P72 *((volatile unsigned int*)(0x42DE4388UL)) -#define bFM4_GPIO_DDR7_P73 *((volatile unsigned int*)(0x42DE438CUL)) -#define bFM4_GPIO_DDR7_P74 *((volatile unsigned int*)(0x42DE4390UL)) -#define bFM4_GPIO_DDR8_P80 *((volatile unsigned int*)(0x42DE4400UL)) -#define bFM4_GPIO_DDR8_P81 *((volatile unsigned int*)(0x42DE4404UL)) -#define bFM4_GPIO_DDRE_PE0 *((volatile unsigned int*)(0x42DE4700UL)) -#define bFM4_GPIO_DDRE_PE2 *((volatile unsigned int*)(0x42DE4708UL)) -#define bFM4_GPIO_DDRE_PE3 *((volatile unsigned int*)(0x42DE470CUL)) -#define bFM4_GPIO_PDIR0_P00 *((volatile unsigned int*)(0x42DE6000UL)) -#define bFM4_GPIO_PDIR0_P01 *((volatile unsigned int*)(0x42DE6004UL)) -#define bFM4_GPIO_PDIR0_P02 *((volatile unsigned int*)(0x42DE6008UL)) -#define bFM4_GPIO_PDIR0_P03 *((volatile unsigned int*)(0x42DE600CUL)) -#define bFM4_GPIO_PDIR0_P04 *((volatile unsigned int*)(0x42DE6010UL)) -#define bFM4_GPIO_PDIR0_P05 *((volatile unsigned int*)(0x42DE6014UL)) -#define bFM4_GPIO_PDIR0_P06 *((volatile unsigned int*)(0x42DE6018UL)) -#define bFM4_GPIO_PDIR0_P07 *((volatile unsigned int*)(0x42DE601CUL)) -#define bFM4_GPIO_PDIR0_P08 *((volatile unsigned int*)(0x42DE6020UL)) -#define bFM4_GPIO_PDIR0_P09 *((volatile unsigned int*)(0x42DE6024UL)) -#define bFM4_GPIO_PDIR0_P0A *((volatile unsigned int*)(0x42DE6028UL)) -#define bFM4_GPIO_PDIR0_P0B *((volatile unsigned int*)(0x42DE602CUL)) -#define bFM4_GPIO_PDIR0_P0C *((volatile unsigned int*)(0x42DE6030UL)) -#define bFM4_GPIO_PDIR0_P0D *((volatile unsigned int*)(0x42DE6034UL)) -#define bFM4_GPIO_PDIR0_P0E *((volatile unsigned int*)(0x42DE6038UL)) -#define bFM4_GPIO_PDIR0_P0F *((volatile unsigned int*)(0x42DE603CUL)) -#define bFM4_GPIO_PDIR1_P10 *((volatile unsigned int*)(0x42DE6080UL)) -#define bFM4_GPIO_PDIR1_P11 *((volatile unsigned int*)(0x42DE6084UL)) -#define bFM4_GPIO_PDIR1_P12 *((volatile unsigned int*)(0x42DE6088UL)) -#define bFM4_GPIO_PDIR1_P13 *((volatile unsigned int*)(0x42DE608CUL)) -#define bFM4_GPIO_PDIR1_P14 *((volatile unsigned int*)(0x42DE6090UL)) -#define bFM4_GPIO_PDIR1_P15 *((volatile unsigned int*)(0x42DE6094UL)) -#define bFM4_GPIO_PDIR1_P16 *((volatile unsigned int*)(0x42DE6098UL)) -#define bFM4_GPIO_PDIR1_P17 *((volatile unsigned int*)(0x42DE609CUL)) -#define bFM4_GPIO_PDIR1_P18 *((volatile unsigned int*)(0x42DE60A0UL)) -#define bFM4_GPIO_PDIR1_P19 *((volatile unsigned int*)(0x42DE60A4UL)) -#define bFM4_GPIO_PDIR1_P1A *((volatile unsigned int*)(0x42DE60A8UL)) -#define bFM4_GPIO_PDIR1_P1B *((volatile unsigned int*)(0x42DE60ACUL)) -#define bFM4_GPIO_PDIR1_P1C *((volatile unsigned int*)(0x42DE60B0UL)) -#define bFM4_GPIO_PDIR1_P1D *((volatile unsigned int*)(0x42DE60B4UL)) -#define bFM4_GPIO_PDIR1_P1E *((volatile unsigned int*)(0x42DE60B8UL)) -#define bFM4_GPIO_PDIR1_P1F *((volatile unsigned int*)(0x42DE60BCUL)) -#define bFM4_GPIO_PDIR2_P20 *((volatile unsigned int*)(0x42DE6100UL)) -#define bFM4_GPIO_PDIR2_P21 *((volatile unsigned int*)(0x42DE6104UL)) -#define bFM4_GPIO_PDIR2_P22 *((volatile unsigned int*)(0x42DE6108UL)) -#define bFM4_GPIO_PDIR2_P23 *((volatile unsigned int*)(0x42DE610CUL)) -#define bFM4_GPIO_PDIR2_P24 *((volatile unsigned int*)(0x42DE6110UL)) -#define bFM4_GPIO_PDIR2_P25 *((volatile unsigned int*)(0x42DE6114UL)) -#define bFM4_GPIO_PDIR2_P26 *((volatile unsigned int*)(0x42DE6118UL)) -#define bFM4_GPIO_PDIR2_P27 *((volatile unsigned int*)(0x42DE611CUL)) -#define bFM4_GPIO_PDIR3_P30 *((volatile unsigned int*)(0x42DE6180UL)) -#define bFM4_GPIO_PDIR3_P31 *((volatile unsigned int*)(0x42DE6184UL)) -#define bFM4_GPIO_PDIR3_P32 *((volatile unsigned int*)(0x42DE6188UL)) -#define bFM4_GPIO_PDIR3_P33 *((volatile unsigned int*)(0x42DE618CUL)) -#define bFM4_GPIO_PDIR3_P34 *((volatile unsigned int*)(0x42DE6190UL)) -#define bFM4_GPIO_PDIR3_P35 *((volatile unsigned int*)(0x42DE6194UL)) -#define bFM4_GPIO_PDIR3_P36 *((volatile unsigned int*)(0x42DE6198UL)) -#define bFM4_GPIO_PDIR3_P37 *((volatile unsigned int*)(0x42DE619CUL)) -#define bFM4_GPIO_PDIR3_P38 *((volatile unsigned int*)(0x42DE61A0UL)) -#define bFM4_GPIO_PDIR3_P39 *((volatile unsigned int*)(0x42DE61A4UL)) -#define bFM4_GPIO_PDIR3_P3A *((volatile unsigned int*)(0x42DE61A8UL)) -#define bFM4_GPIO_PDIR3_P3B *((volatile unsigned int*)(0x42DE61ACUL)) -#define bFM4_GPIO_PDIR3_P3C *((volatile unsigned int*)(0x42DE61B0UL)) -#define bFM4_GPIO_PDIR3_P3D *((volatile unsigned int*)(0x42DE61B4UL)) -#define bFM4_GPIO_PDIR3_P3E *((volatile unsigned int*)(0x42DE61B8UL)) -#define bFM4_GPIO_PDIR3_P3F *((volatile unsigned int*)(0x42DE61BCUL)) -#define bFM4_GPIO_PDIR4_P40 *((volatile unsigned int*)(0x42DE6200UL)) -#define bFM4_GPIO_PDIR4_P41 *((volatile unsigned int*)(0x42DE6204UL)) -#define bFM4_GPIO_PDIR4_P42 *((volatile unsigned int*)(0x42DE6208UL)) -#define bFM4_GPIO_PDIR4_P43 *((volatile unsigned int*)(0x42DE620CUL)) -#define bFM4_GPIO_PDIR4_P44 *((volatile unsigned int*)(0x42DE6210UL)) -#define bFM4_GPIO_PDIR4_P45 *((volatile unsigned int*)(0x42DE6214UL)) -#define bFM4_GPIO_PDIR4_P46 *((volatile unsigned int*)(0x42DE6218UL)) -#define bFM4_GPIO_PDIR4_P47 *((volatile unsigned int*)(0x42DE621CUL)) -#define bFM4_GPIO_PDIR4_P48 *((volatile unsigned int*)(0x42DE6220UL)) -#define bFM4_GPIO_PDIR4_P49 *((volatile unsigned int*)(0x42DE6224UL)) -#define bFM4_GPIO_PDIR4_P4A *((volatile unsigned int*)(0x42DE6228UL)) -#define bFM4_GPIO_PDIR4_P4B *((volatile unsigned int*)(0x42DE622CUL)) -#define bFM4_GPIO_PDIR4_P4C *((volatile unsigned int*)(0x42DE6230UL)) -#define bFM4_GPIO_PDIR4_P4D *((volatile unsigned int*)(0x42DE6234UL)) -#define bFM4_GPIO_PDIR4_P4E *((volatile unsigned int*)(0x42DE6238UL)) -#define bFM4_GPIO_PDIR5_P50 *((volatile unsigned int*)(0x42DE6280UL)) -#define bFM4_GPIO_PDIR5_P51 *((volatile unsigned int*)(0x42DE6284UL)) -#define bFM4_GPIO_PDIR5_P52 *((volatile unsigned int*)(0x42DE6288UL)) -#define bFM4_GPIO_PDIR5_P53 *((volatile unsigned int*)(0x42DE628CUL)) -#define bFM4_GPIO_PDIR5_P54 *((volatile unsigned int*)(0x42DE6290UL)) -#define bFM4_GPIO_PDIR5_P55 *((volatile unsigned int*)(0x42DE6294UL)) -#define bFM4_GPIO_PDIR5_P56 *((volatile unsigned int*)(0x42DE6298UL)) -#define bFM4_GPIO_PDIR5_P57 *((volatile unsigned int*)(0x42DE629CUL)) -#define bFM4_GPIO_PDIR5_P58 *((volatile unsigned int*)(0x42DE62A0UL)) -#define bFM4_GPIO_PDIR5_P59 *((volatile unsigned int*)(0x42DE62A4UL)) -#define bFM4_GPIO_PDIR5_P5A *((volatile unsigned int*)(0x42DE62A8UL)) -#define bFM4_GPIO_PDIR5_P5B *((volatile unsigned int*)(0x42DE62ACUL)) -#define bFM4_GPIO_PDIR6_P60 *((volatile unsigned int*)(0x42DE6300UL)) -#define bFM4_GPIO_PDIR6_P61 *((volatile unsigned int*)(0x42DE6304UL)) -#define bFM4_GPIO_PDIR6_P62 *((volatile unsigned int*)(0x42DE6308UL)) -#define bFM4_GPIO_PDIR6_P63 *((volatile unsigned int*)(0x42DE630CUL)) -#define bFM4_GPIO_PDIR6_P64 *((volatile unsigned int*)(0x42DE6310UL)) -#define bFM4_GPIO_PDIR6_P65 *((volatile unsigned int*)(0x42DE6314UL)) -#define bFM4_GPIO_PDIR6_P66 *((volatile unsigned int*)(0x42DE6318UL)) -#define bFM4_GPIO_PDIR6_P67 *((volatile unsigned int*)(0x42DE631CUL)) -#define bFM4_GPIO_PDIR6_P68 *((volatile unsigned int*)(0x42DE6320UL)) -#define bFM4_GPIO_PDIR7_P70 *((volatile unsigned int*)(0x42DE6380UL)) -#define bFM4_GPIO_PDIR7_P71 *((volatile unsigned int*)(0x42DE6384UL)) -#define bFM4_GPIO_PDIR7_P72 *((volatile unsigned int*)(0x42DE6388UL)) -#define bFM4_GPIO_PDIR7_P73 *((volatile unsigned int*)(0x42DE638CUL)) -#define bFM4_GPIO_PDIR7_P74 *((volatile unsigned int*)(0x42DE6390UL)) -#define bFM4_GPIO_PDIR8_P80 *((volatile unsigned int*)(0x42DE6400UL)) -#define bFM4_GPIO_PDIR8_P81 *((volatile unsigned int*)(0x42DE6404UL)) -#define bFM4_GPIO_PDIRE_PE0 *((volatile unsigned int*)(0x42DE6700UL)) -#define bFM4_GPIO_PDIRE_PE2 *((volatile unsigned int*)(0x42DE6708UL)) -#define bFM4_GPIO_PDIRE_PE3 *((volatile unsigned int*)(0x42DE670CUL)) -#define bFM4_GPIO_PDOR0_P00 *((volatile unsigned int*)(0x42DE8000UL)) -#define bFM4_GPIO_PDOR0_P01 *((volatile unsigned int*)(0x42DE8004UL)) -#define bFM4_GPIO_PDOR0_P02 *((volatile unsigned int*)(0x42DE8008UL)) -#define bFM4_GPIO_PDOR0_P03 *((volatile unsigned int*)(0x42DE800CUL)) -#define bFM4_GPIO_PDOR0_P04 *((volatile unsigned int*)(0x42DE8010UL)) -#define bFM4_GPIO_PDOR0_P05 *((volatile unsigned int*)(0x42DE8014UL)) -#define bFM4_GPIO_PDOR0_P06 *((volatile unsigned int*)(0x42DE8018UL)) -#define bFM4_GPIO_PDOR0_P07 *((volatile unsigned int*)(0x42DE801CUL)) -#define bFM4_GPIO_PDOR0_P08 *((volatile unsigned int*)(0x42DE8020UL)) -#define bFM4_GPIO_PDOR0_P09 *((volatile unsigned int*)(0x42DE8024UL)) -#define bFM4_GPIO_PDOR0_P0A *((volatile unsigned int*)(0x42DE8028UL)) -#define bFM4_GPIO_PDOR0_P0B *((volatile unsigned int*)(0x42DE802CUL)) -#define bFM4_GPIO_PDOR0_P0C *((volatile unsigned int*)(0x42DE8030UL)) -#define bFM4_GPIO_PDOR0_P0D *((volatile unsigned int*)(0x42DE8034UL)) -#define bFM4_GPIO_PDOR0_P0E *((volatile unsigned int*)(0x42DE8038UL)) -#define bFM4_GPIO_PDOR0_P0F *((volatile unsigned int*)(0x42DE803CUL)) -#define bFM4_GPIO_PDOR1_P10 *((volatile unsigned int*)(0x42DE8080UL)) -#define bFM4_GPIO_PDOR1_P11 *((volatile unsigned int*)(0x42DE8084UL)) -#define bFM4_GPIO_PDOR1_P12 *((volatile unsigned int*)(0x42DE8088UL)) -#define bFM4_GPIO_PDOR1_P13 *((volatile unsigned int*)(0x42DE808CUL)) -#define bFM4_GPIO_PDOR1_P14 *((volatile unsigned int*)(0x42DE8090UL)) -#define bFM4_GPIO_PDOR1_P15 *((volatile unsigned int*)(0x42DE8094UL)) -#define bFM4_GPIO_PDOR1_P16 *((volatile unsigned int*)(0x42DE8098UL)) -#define bFM4_GPIO_PDOR1_P17 *((volatile unsigned int*)(0x42DE809CUL)) -#define bFM4_GPIO_PDOR1_P18 *((volatile unsigned int*)(0x42DE80A0UL)) -#define bFM4_GPIO_PDOR1_P19 *((volatile unsigned int*)(0x42DE80A4UL)) -#define bFM4_GPIO_PDOR1_P1A *((volatile unsigned int*)(0x42DE80A8UL)) -#define bFM4_GPIO_PDOR1_P1B *((volatile unsigned int*)(0x42DE80ACUL)) -#define bFM4_GPIO_PDOR1_P1C *((volatile unsigned int*)(0x42DE80B0UL)) -#define bFM4_GPIO_PDOR1_P1D *((volatile unsigned int*)(0x42DE80B4UL)) -#define bFM4_GPIO_PDOR1_P1E *((volatile unsigned int*)(0x42DE80B8UL)) -#define bFM4_GPIO_PDOR1_P1F *((volatile unsigned int*)(0x42DE80BCUL)) -#define bFM4_GPIO_PDOR2_P20 *((volatile unsigned int*)(0x42DE8100UL)) -#define bFM4_GPIO_PDOR2_P21 *((volatile unsigned int*)(0x42DE8104UL)) -#define bFM4_GPIO_PDOR2_P22 *((volatile unsigned int*)(0x42DE8108UL)) -#define bFM4_GPIO_PDOR2_P23 *((volatile unsigned int*)(0x42DE810CUL)) -#define bFM4_GPIO_PDOR2_P24 *((volatile unsigned int*)(0x42DE8110UL)) -#define bFM4_GPIO_PDOR2_P25 *((volatile unsigned int*)(0x42DE8114UL)) -#define bFM4_GPIO_PDOR2_P26 *((volatile unsigned int*)(0x42DE8118UL)) -#define bFM4_GPIO_PDOR2_P27 *((volatile unsigned int*)(0x42DE811CUL)) -#define bFM4_GPIO_PDOR3_P30 *((volatile unsigned int*)(0x42DE8180UL)) -#define bFM4_GPIO_PDOR3_P31 *((volatile unsigned int*)(0x42DE8184UL)) -#define bFM4_GPIO_PDOR3_P32 *((volatile unsigned int*)(0x42DE8188UL)) -#define bFM4_GPIO_PDOR3_P33 *((volatile unsigned int*)(0x42DE818CUL)) -#define bFM4_GPIO_PDOR3_P34 *((volatile unsigned int*)(0x42DE8190UL)) -#define bFM4_GPIO_PDOR3_P35 *((volatile unsigned int*)(0x42DE8194UL)) -#define bFM4_GPIO_PDOR3_P36 *((volatile unsigned int*)(0x42DE8198UL)) -#define bFM4_GPIO_PDOR3_P37 *((volatile unsigned int*)(0x42DE819CUL)) -#define bFM4_GPIO_PDOR3_P38 *((volatile unsigned int*)(0x42DE81A0UL)) -#define bFM4_GPIO_PDOR3_P39 *((volatile unsigned int*)(0x42DE81A4UL)) -#define bFM4_GPIO_PDOR3_P3A *((volatile unsigned int*)(0x42DE81A8UL)) -#define bFM4_GPIO_PDOR3_P3B *((volatile unsigned int*)(0x42DE81ACUL)) -#define bFM4_GPIO_PDOR3_P3C *((volatile unsigned int*)(0x42DE81B0UL)) -#define bFM4_GPIO_PDOR3_P3D *((volatile unsigned int*)(0x42DE81B4UL)) -#define bFM4_GPIO_PDOR3_P3E *((volatile unsigned int*)(0x42DE81B8UL)) -#define bFM4_GPIO_PDOR3_P3F *((volatile unsigned int*)(0x42DE81BCUL)) -#define bFM4_GPIO_PDOR4_P40 *((volatile unsigned int*)(0x42DE8200UL)) -#define bFM4_GPIO_PDOR4_P41 *((volatile unsigned int*)(0x42DE8204UL)) -#define bFM4_GPIO_PDOR4_P42 *((volatile unsigned int*)(0x42DE8208UL)) -#define bFM4_GPIO_PDOR4_P43 *((volatile unsigned int*)(0x42DE820CUL)) -#define bFM4_GPIO_PDOR4_P44 *((volatile unsigned int*)(0x42DE8210UL)) -#define bFM4_GPIO_PDOR4_P45 *((volatile unsigned int*)(0x42DE8214UL)) -#define bFM4_GPIO_PDOR4_P46 *((volatile unsigned int*)(0x42DE8218UL)) -#define bFM4_GPIO_PDOR4_P47 *((volatile unsigned int*)(0x42DE821CUL)) -#define bFM4_GPIO_PDOR4_P48 *((volatile unsigned int*)(0x42DE8220UL)) -#define bFM4_GPIO_PDOR4_P49 *((volatile unsigned int*)(0x42DE8224UL)) -#define bFM4_GPIO_PDOR4_P4A *((volatile unsigned int*)(0x42DE8228UL)) -#define bFM4_GPIO_PDOR4_P4B *((volatile unsigned int*)(0x42DE822CUL)) -#define bFM4_GPIO_PDOR4_P4C *((volatile unsigned int*)(0x42DE8230UL)) -#define bFM4_GPIO_PDOR4_P4D *((volatile unsigned int*)(0x42DE8234UL)) -#define bFM4_GPIO_PDOR4_P4E *((volatile unsigned int*)(0x42DE8238UL)) -#define bFM4_GPIO_PDOR5_P50 *((volatile unsigned int*)(0x42DE8280UL)) -#define bFM4_GPIO_PDOR5_P51 *((volatile unsigned int*)(0x42DE8284UL)) -#define bFM4_GPIO_PDOR5_P52 *((volatile unsigned int*)(0x42DE8288UL)) -#define bFM4_GPIO_PDOR5_P53 *((volatile unsigned int*)(0x42DE828CUL)) -#define bFM4_GPIO_PDOR5_P54 *((volatile unsigned int*)(0x42DE8290UL)) -#define bFM4_GPIO_PDOR5_P55 *((volatile unsigned int*)(0x42DE8294UL)) -#define bFM4_GPIO_PDOR5_P56 *((volatile unsigned int*)(0x42DE8298UL)) -#define bFM4_GPIO_PDOR5_P57 *((volatile unsigned int*)(0x42DE829CUL)) -#define bFM4_GPIO_PDOR5_P58 *((volatile unsigned int*)(0x42DE82A0UL)) -#define bFM4_GPIO_PDOR5_P59 *((volatile unsigned int*)(0x42DE82A4UL)) -#define bFM4_GPIO_PDOR5_P5A *((volatile unsigned int*)(0x42DE82A8UL)) -#define bFM4_GPIO_PDOR5_P5B *((volatile unsigned int*)(0x42DE82ACUL)) -#define bFM4_GPIO_PDOR6_P60 *((volatile unsigned int*)(0x42DE8300UL)) -#define bFM4_GPIO_PDOR6_P61 *((volatile unsigned int*)(0x42DE8304UL)) -#define bFM4_GPIO_PDOR6_P62 *((volatile unsigned int*)(0x42DE8308UL)) -#define bFM4_GPIO_PDOR6_P63 *((volatile unsigned int*)(0x42DE830CUL)) -#define bFM4_GPIO_PDOR6_P64 *((volatile unsigned int*)(0x42DE8310UL)) -#define bFM4_GPIO_PDOR6_P65 *((volatile unsigned int*)(0x42DE8314UL)) -#define bFM4_GPIO_PDOR6_P66 *((volatile unsigned int*)(0x42DE8318UL)) -#define bFM4_GPIO_PDOR6_P67 *((volatile unsigned int*)(0x42DE831CUL)) -#define bFM4_GPIO_PDOR6_P68 *((volatile unsigned int*)(0x42DE8320UL)) -#define bFM4_GPIO_PDOR7_P70 *((volatile unsigned int*)(0x42DE8380UL)) -#define bFM4_GPIO_PDOR7_P71 *((volatile unsigned int*)(0x42DE8384UL)) -#define bFM4_GPIO_PDOR7_P72 *((volatile unsigned int*)(0x42DE8388UL)) -#define bFM4_GPIO_PDOR7_P73 *((volatile unsigned int*)(0x42DE838CUL)) -#define bFM4_GPIO_PDOR7_P74 *((volatile unsigned int*)(0x42DE8390UL)) -#define bFM4_GPIO_PDOR8_P80 *((volatile unsigned int*)(0x42DE8400UL)) -#define bFM4_GPIO_PDOR8_P81 *((volatile unsigned int*)(0x42DE8404UL)) -#define bFM4_GPIO_PDORE_PE0 *((volatile unsigned int*)(0x42DE8700UL)) -#define bFM4_GPIO_PDORE_PE2 *((volatile unsigned int*)(0x42DE8708UL)) -#define bFM4_GPIO_PDORE_PE3 *((volatile unsigned int*)(0x42DE870CUL)) -#define bFM4_GPIO_ADE_AN00 *((volatile unsigned int*)(0x42DEA000UL)) -#define bFM4_GPIO_ADE_AN01 *((volatile unsigned int*)(0x42DEA004UL)) -#define bFM4_GPIO_ADE_AN02 *((volatile unsigned int*)(0x42DEA008UL)) -#define bFM4_GPIO_ADE_AN03 *((volatile unsigned int*)(0x42DEA00CUL)) -#define bFM4_GPIO_ADE_AN04 *((volatile unsigned int*)(0x42DEA010UL)) -#define bFM4_GPIO_ADE_AN05 *((volatile unsigned int*)(0x42DEA014UL)) -#define bFM4_GPIO_ADE_AN06 *((volatile unsigned int*)(0x42DEA018UL)) -#define bFM4_GPIO_ADE_AN07 *((volatile unsigned int*)(0x42DEA01CUL)) -#define bFM4_GPIO_ADE_AN08 *((volatile unsigned int*)(0x42DEA020UL)) -#define bFM4_GPIO_ADE_AN09 *((volatile unsigned int*)(0x42DEA024UL)) -#define bFM4_GPIO_ADE_AN10 *((volatile unsigned int*)(0x42DEA028UL)) -#define bFM4_GPIO_ADE_AN11 *((volatile unsigned int*)(0x42DEA02CUL)) -#define bFM4_GPIO_ADE_AN12 *((volatile unsigned int*)(0x42DEA030UL)) -#define bFM4_GPIO_ADE_AN13 *((volatile unsigned int*)(0x42DEA034UL)) -#define bFM4_GPIO_ADE_AN14 *((volatile unsigned int*)(0x42DEA038UL)) -#define bFM4_GPIO_ADE_AN15 *((volatile unsigned int*)(0x42DEA03CUL)) -#define bFM4_GPIO_ADE_AN16 *((volatile unsigned int*)(0x42DEA040UL)) -#define bFM4_GPIO_ADE_AN17 *((volatile unsigned int*)(0x42DEA044UL)) -#define bFM4_GPIO_ADE_AN18 *((volatile unsigned int*)(0x42DEA048UL)) -#define bFM4_GPIO_ADE_AN19 *((volatile unsigned int*)(0x42DEA04CUL)) -#define bFM4_GPIO_ADE_AN20 *((volatile unsigned int*)(0x42DEA050UL)) -#define bFM4_GPIO_ADE_AN21 *((volatile unsigned int*)(0x42DEA054UL)) -#define bFM4_GPIO_ADE_AN22 *((volatile unsigned int*)(0x42DEA058UL)) -#define bFM4_GPIO_ADE_AN23 *((volatile unsigned int*)(0x42DEA05CUL)) -#define bFM4_GPIO_ADE_AN24 *((volatile unsigned int*)(0x42DEA060UL)) -#define bFM4_GPIO_ADE_AN25 *((volatile unsigned int*)(0x42DEA064UL)) -#define bFM4_GPIO_ADE_AN26 *((volatile unsigned int*)(0x42DEA068UL)) -#define bFM4_GPIO_ADE_AN27 *((volatile unsigned int*)(0x42DEA06CUL)) -#define bFM4_GPIO_ADE_AN28 *((volatile unsigned int*)(0x42DEA070UL)) -#define bFM4_GPIO_ADE_AN29 *((volatile unsigned int*)(0x42DEA074UL)) -#define bFM4_GPIO_ADE_AN30 *((volatile unsigned int*)(0x42DEA078UL)) -#define bFM4_GPIO_ADE_AN31 *((volatile unsigned int*)(0x42DEA07CUL)) -#define bFM4_GPIO_SPSR_MAINXC0 *((volatile unsigned int*)(0x42DEB008UL)) -#define bFM4_GPIO_SPSR_MAINXC1 *((volatile unsigned int*)(0x42DEB00CUL)) -#define bFM4_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x42DEB010UL)) -#define bFM4_GPIO_SPSR_USB1C *((volatile unsigned int*)(0x42DEB014UL)) -#define bFM4_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x42DEC000UL)) -#define bFM4_GPIO_EPFR00_CROUTE0 *((volatile unsigned int*)(0x42DEC004UL)) -#define bFM4_GPIO_EPFR00_CROUTE1 *((volatile unsigned int*)(0x42DEC008UL)) -#define bFM4_GPIO_EPFR00_RTCCOE0 *((volatile unsigned int*)(0x42DEC010UL)) -#define bFM4_GPIO_EPFR00_RTCCOE1 *((volatile unsigned int*)(0x42DEC014UL)) -#define bFM4_GPIO_EPFR00_SUBOUTE0 *((volatile unsigned int*)(0x42DEC018UL)) -#define bFM4_GPIO_EPFR00_SUBOUTE1 *((volatile unsigned int*)(0x42DEC01CUL)) -#define bFM4_GPIO_EPFR00_USBP0E *((volatile unsigned int*)(0x42DEC024UL)) -#define bFM4_GPIO_EPFR00_USBP1E *((volatile unsigned int*)(0x42DEC034UL)) -#define bFM4_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x42DEC040UL)) -#define bFM4_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x42DEC044UL)) -#define bFM4_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x42DEC060UL)) -#define bFM4_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x42DEC064UL)) -#define bFM4_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x42DEC080UL)) -#define bFM4_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x42DEC084UL)) -#define bFM4_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x42DEC088UL)) -#define bFM4_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x42DEC08CUL)) -#define bFM4_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x42DEC090UL)) -#define bFM4_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x42DEC094UL)) -#define bFM4_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x42DEC098UL)) -#define bFM4_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x42DEC09CUL)) -#define bFM4_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x42DEC0A0UL)) -#define bFM4_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x42DEC0A4UL)) -#define bFM4_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x42DEC0A8UL)) -#define bFM4_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x42DEC0ACUL)) -#define bFM4_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x42DEC0B0UL)) -#define bFM4_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x42DEC0C0UL)) -#define bFM4_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x42DEC0C4UL)) -#define bFM4_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x42DEC0C8UL)) -#define bFM4_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x42DEC0CCUL)) -#define bFM4_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x42DEC0D0UL)) -#define bFM4_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x42DEC0D4UL)) -#define bFM4_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x42DEC0D8UL)) -#define bFM4_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x42DEC0DCUL)) -#define bFM4_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x42DEC0E0UL)) -#define bFM4_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x42DEC0E4UL)) -#define bFM4_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x42DEC0E8UL)) -#define bFM4_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x42DEC0ECUL)) -#define bFM4_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x42DEC0F0UL)) -#define bFM4_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x42DEC0F4UL)) -#define bFM4_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x42DEC0F8UL)) -#define bFM4_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x42DEC0FCUL)) -#define bFM4_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x42DEC100UL)) -#define bFM4_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x42DEC104UL)) -#define bFM4_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x42DEC108UL)) -#define bFM4_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x42DEC10CUL)) -#define bFM4_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x42DEC110UL)) -#define bFM4_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x42DEC114UL)) -#define bFM4_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x42DEC118UL)) -#define bFM4_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x42DEC11CUL)) -#define bFM4_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x42DEC120UL)) -#define bFM4_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x42DEC124UL)) -#define bFM4_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x42DEC128UL)) -#define bFM4_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x42DEC12CUL)) -#define bFM4_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x42DEC130UL)) -#define bFM4_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x42DEC140UL)) -#define bFM4_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x42DEC144UL)) -#define bFM4_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x42DEC148UL)) -#define bFM4_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x42DEC14CUL)) -#define bFM4_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x42DEC150UL)) -#define bFM4_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x42DEC154UL)) -#define bFM4_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x42DEC158UL)) -#define bFM4_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x42DEC15CUL)) -#define bFM4_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x42DEC160UL)) -#define bFM4_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x42DEC164UL)) -#define bFM4_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x42DEC168UL)) -#define bFM4_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x42DEC16CUL)) -#define bFM4_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x42DEC170UL)) -#define bFM4_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x42DEC174UL)) -#define bFM4_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x42DEC178UL)) -#define bFM4_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x42DEC17CUL)) -#define bFM4_GPIO_EPFR03_RTO20E0 *((volatile unsigned int*)(0x42DEC180UL)) -#define bFM4_GPIO_EPFR03_RTO20E1 *((volatile unsigned int*)(0x42DEC184UL)) -#define bFM4_GPIO_EPFR03_RTO21E0 *((volatile unsigned int*)(0x42DEC188UL)) -#define bFM4_GPIO_EPFR03_RTO21E1 *((volatile unsigned int*)(0x42DEC18CUL)) -#define bFM4_GPIO_EPFR03_RTO22E0 *((volatile unsigned int*)(0x42DEC190UL)) -#define bFM4_GPIO_EPFR03_RTO22E1 *((volatile unsigned int*)(0x42DEC194UL)) -#define bFM4_GPIO_EPFR03_RTO23E0 *((volatile unsigned int*)(0x42DEC198UL)) -#define bFM4_GPIO_EPFR03_RTO23E1 *((volatile unsigned int*)(0x42DEC19CUL)) -#define bFM4_GPIO_EPFR03_RTO24E0 *((volatile unsigned int*)(0x42DEC1A0UL)) -#define bFM4_GPIO_EPFR03_RTO24E1 *((volatile unsigned int*)(0x42DEC1A4UL)) -#define bFM4_GPIO_EPFR03_RTO25E0 *((volatile unsigned int*)(0x42DEC1A8UL)) -#define bFM4_GPIO_EPFR03_RTO25E1 *((volatile unsigned int*)(0x42DEC1ACUL)) -#define bFM4_GPIO_EPFR03_DTTI2C *((volatile unsigned int*)(0x42DEC1B0UL)) -#define bFM4_GPIO_EPFR03_DTTI2S0 *((volatile unsigned int*)(0x42DEC1C0UL)) -#define bFM4_GPIO_EPFR03_DTTI2S1 *((volatile unsigned int*)(0x42DEC1C4UL)) -#define bFM4_GPIO_EPFR03_FRCK2S0 *((volatile unsigned int*)(0x42DEC1C8UL)) -#define bFM4_GPIO_EPFR03_FRCK2S1 *((volatile unsigned int*)(0x42DEC1CCUL)) -#define bFM4_GPIO_EPFR03_IC20S0 *((volatile unsigned int*)(0x42DEC1D0UL)) -#define bFM4_GPIO_EPFR03_IC20S1 *((volatile unsigned int*)(0x42DEC1D4UL)) -#define bFM4_GPIO_EPFR03_IC20S2 *((volatile unsigned int*)(0x42DEC1D8UL)) -#define bFM4_GPIO_EPFR03_IC21S0 *((volatile unsigned int*)(0x42DEC1DCUL)) -#define bFM4_GPIO_EPFR03_IC21S1 *((volatile unsigned int*)(0x42DEC1E0UL)) -#define bFM4_GPIO_EPFR03_IC21S2 *((volatile unsigned int*)(0x42DEC1E4UL)) -#define bFM4_GPIO_EPFR03_IC22S0 *((volatile unsigned int*)(0x42DEC1E8UL)) -#define bFM4_GPIO_EPFR03_IC22S1 *((volatile unsigned int*)(0x42DEC1ECUL)) -#define bFM4_GPIO_EPFR03_IC22S2 *((volatile unsigned int*)(0x42DEC1F0UL)) -#define bFM4_GPIO_EPFR03_IC23S0 *((volatile unsigned int*)(0x42DEC1F4UL)) -#define bFM4_GPIO_EPFR03_IC23S1 *((volatile unsigned int*)(0x42DEC1F8UL)) -#define bFM4_GPIO_EPFR03_IC23S2 *((volatile unsigned int*)(0x42DEC1FCUL)) -#define bFM4_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x42DEC208UL)) -#define bFM4_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x42DEC20CUL)) -#define bFM4_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x42DEC210UL)) -#define bFM4_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x42DEC214UL)) -#define bFM4_GPIO_EPFR04_TIOB0S2 *((volatile unsigned int*)(0x42DEC218UL)) -#define bFM4_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x42DEC220UL)) -#define bFM4_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x42DEC224UL)) -#define bFM4_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x42DEC228UL)) -#define bFM4_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x42DEC22CUL)) -#define bFM4_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x42DEC230UL)) -#define bFM4_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x42DEC234UL)) -#define bFM4_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x42DEC248UL)) -#define bFM4_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x42DEC24CUL)) -#define bFM4_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x42DEC250UL)) -#define bFM4_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x42DEC254UL)) -#define bFM4_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x42DEC260UL)) -#define bFM4_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x42DEC264UL)) -#define bFM4_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x42DEC268UL)) -#define bFM4_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x42DEC26CUL)) -#define bFM4_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x42DEC270UL)) -#define bFM4_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x42DEC274UL)) -#define bFM4_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x42DEC288UL)) -#define bFM4_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x42DEC28CUL)) -#define bFM4_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x42DEC290UL)) -#define bFM4_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x42DEC294UL)) -#define bFM4_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x42DEC2A0UL)) -#define bFM4_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x42DEC2A4UL)) -#define bFM4_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x42DEC2A8UL)) -#define bFM4_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x42DEC2ACUL)) -#define bFM4_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x42DEC2B0UL)) -#define bFM4_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x42DEC2B4UL)) -#define bFM4_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x42DEC2C8UL)) -#define bFM4_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x42DEC2CCUL)) -#define bFM4_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x42DEC2D0UL)) -#define bFM4_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x42DEC2D4UL)) -#define bFM4_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x42DEC2E0UL)) -#define bFM4_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x42DEC2E4UL)) -#define bFM4_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x42DEC2E8UL)) -#define bFM4_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x42DEC2ECUL)) -#define bFM4_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x42DEC2F0UL)) -#define bFM4_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x42DEC2F4UL)) -#define bFM4_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x42DEC300UL)) -#define bFM4_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x42DEC304UL)) -#define bFM4_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x42DEC308UL)) -#define bFM4_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x42DEC30CUL)) -#define bFM4_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x42DEC310UL)) -#define bFM4_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x42DEC314UL)) -#define bFM4_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x42DEC318UL)) -#define bFM4_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x42DEC31CUL)) -#define bFM4_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x42DEC320UL)) -#define bFM4_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x42DEC324UL)) -#define bFM4_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x42DEC328UL)) -#define bFM4_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x42DEC32CUL)) -#define bFM4_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x42DEC330UL)) -#define bFM4_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x42DEC334UL)) -#define bFM4_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x42DEC338UL)) -#define bFM4_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x42DEC33CUL)) -#define bFM4_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x42DEC340UL)) -#define bFM4_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x42DEC344UL)) -#define bFM4_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x42DEC348UL)) -#define bFM4_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x42DEC34CUL)) -#define bFM4_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x42DEC350UL)) -#define bFM4_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x42DEC354UL)) -#define bFM4_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x42DEC358UL)) -#define bFM4_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x42DEC35CUL)) -#define bFM4_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x42DEC360UL)) -#define bFM4_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x42DEC364UL)) -#define bFM4_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x42DEC368UL)) -#define bFM4_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x42DEC36CUL)) -#define bFM4_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x42DEC370UL)) -#define bFM4_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x42DEC374UL)) -#define bFM4_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x42DEC378UL)) -#define bFM4_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x42DEC37CUL)) -#define bFM4_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x42DEC390UL)) -#define bFM4_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x42DEC394UL)) -#define bFM4_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x42DEC398UL)) -#define bFM4_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x42DEC39CUL)) -#define bFM4_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x42DEC3A0UL)) -#define bFM4_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x42DEC3A4UL)) -#define bFM4_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x42DEC3A8UL)) -#define bFM4_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x42DEC3ACUL)) -#define bFM4_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x42DEC3B0UL)) -#define bFM4_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x42DEC3B4UL)) -#define bFM4_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x42DEC3B8UL)) -#define bFM4_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x42DEC3BCUL)) -#define bFM4_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x42DEC3C0UL)) -#define bFM4_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x42DEC3C4UL)) -#define bFM4_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x42DEC3C8UL)) -#define bFM4_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x42DEC3CCUL)) -#define bFM4_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x42DEC3D0UL)) -#define bFM4_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x42DEC3D4UL)) -#define bFM4_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x42DEC3D8UL)) -#define bFM4_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x42DEC3DCUL)) -#define bFM4_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x42DEC3E0UL)) -#define bFM4_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x42DEC3E4UL)) -#define bFM4_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x42DEC3E8UL)) -#define bFM4_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x42DEC3ECUL)) -#define bFM4_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x42DEC400UL)) -#define bFM4_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x42DEC404UL)) -#define bFM4_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x42DEC408UL)) -#define bFM4_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x42DEC40CUL)) -#define bFM4_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x42DEC410UL)) -#define bFM4_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x42DEC414UL)) -#define bFM4_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x42DEC418UL)) -#define bFM4_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x42DEC41CUL)) -#define bFM4_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x42DEC420UL)) -#define bFM4_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x42DEC424UL)) -#define bFM4_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x42DEC428UL)) -#define bFM4_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x42DEC42CUL)) -#define bFM4_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x42DEC430UL)) -#define bFM4_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x42DEC434UL)) -#define bFM4_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x42DEC438UL)) -#define bFM4_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x42DEC43CUL)) -#define bFM4_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x42DEC440UL)) -#define bFM4_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x42DEC444UL)) -#define bFM4_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x42DEC448UL)) -#define bFM4_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x42DEC44CUL)) -#define bFM4_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x42DEC450UL)) -#define bFM4_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x42DEC454UL)) -#define bFM4_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x42DEC458UL)) -#define bFM4_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x42DEC45CUL)) -#define bFM4_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x42DEC460UL)) -#define bFM4_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x42DEC464UL)) -#define bFM4_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x42DEC468UL)) -#define bFM4_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x42DEC46CUL)) -#define bFM4_GPIO_EPFR08_RTS5E0 *((volatile unsigned int*)(0x42DEC470UL)) -#define bFM4_GPIO_EPFR08_RTS5E1 *((volatile unsigned int*)(0x42DEC474UL)) -#define bFM4_GPIO_EPFR08_CTS5S0 *((volatile unsigned int*)(0x42DEC478UL)) -#define bFM4_GPIO_EPFR08_CTS5S1 *((volatile unsigned int*)(0x42DEC47CUL)) -#define bFM4_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x42DEC480UL)) -#define bFM4_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x42DEC484UL)) -#define bFM4_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x42DEC488UL)) -#define bFM4_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x42DEC48CUL)) -#define bFM4_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x42DEC490UL)) -#define bFM4_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x42DEC494UL)) -#define bFM4_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x42DEC498UL)) -#define bFM4_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x42DEC49CUL)) -#define bFM4_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x42DEC4A0UL)) -#define bFM4_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x42DEC4A4UL)) -#define bFM4_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x42DEC4A8UL)) -#define bFM4_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x42DEC4ACUL)) -#define bFM4_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x42DEC4B0UL)) -#define bFM4_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x42DEC4B4UL)) -#define bFM4_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x42DEC4B8UL)) -#define bFM4_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x42DEC4BCUL)) -#define bFM4_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x42DEC4C0UL)) -#define bFM4_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x42DEC4C4UL)) -#define bFM4_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x42DEC4C8UL)) -#define bFM4_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x42DEC4CCUL)) -#define bFM4_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x42DEC4D0UL)) -#define bFM4_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x42DEC4D4UL)) -#define bFM4_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x42DEC4D8UL)) -#define bFM4_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x42DEC4DCUL)) -#define bFM4_GPIO_EPFR09_CRX0S0 *((volatile unsigned int*)(0x42DEC4E0UL)) -#define bFM4_GPIO_EPFR09_CRX0S1 *((volatile unsigned int*)(0x42DEC4E4UL)) -#define bFM4_GPIO_EPFR09_CTX0E0 *((volatile unsigned int*)(0x42DEC4E8UL)) -#define bFM4_GPIO_EPFR09_CTX0E1 *((volatile unsigned int*)(0x42DEC4ECUL)) -#define bFM4_GPIO_EPFR09_CRX1S0 *((volatile unsigned int*)(0x42DEC4F0UL)) -#define bFM4_GPIO_EPFR09_CRX1S1 *((volatile unsigned int*)(0x42DEC4F4UL)) -#define bFM4_GPIO_EPFR09_CTX1E0 *((volatile unsigned int*)(0x42DEC4F8UL)) -#define bFM4_GPIO_EPFR09_CTX1E1 *((volatile unsigned int*)(0x42DEC4FCUL)) -#define bFM4_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x42DEC500UL)) -#define bFM4_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x42DEC504UL)) -#define bFM4_GPIO_EPFR10_UECLKE *((volatile unsigned int*)(0x42DEC508UL)) -#define bFM4_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x42DEC50CUL)) -#define bFM4_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x42DEC510UL)) -#define bFM4_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x42DEC514UL)) -#define bFM4_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x42DEC518UL)) -#define bFM4_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x42DEC51CUL)) -#define bFM4_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x42DEC520UL)) -#define bFM4_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x42DEC524UL)) -#define bFM4_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x42DEC528UL)) -#define bFM4_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x42DEC52CUL)) -#define bFM4_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x42DEC530UL)) -#define bFM4_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x42DEC534UL)) -#define bFM4_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x42DEC538UL)) -#define bFM4_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x42DEC53CUL)) -#define bFM4_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x42DEC540UL)) -#define bFM4_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x42DEC544UL)) -#define bFM4_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x42DEC548UL)) -#define bFM4_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x42DEC54CUL)) -#define bFM4_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x42DEC550UL)) -#define bFM4_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x42DEC554UL)) -#define bFM4_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x42DEC558UL)) -#define bFM4_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x42DEC55CUL)) -#define bFM4_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x42DEC560UL)) -#define bFM4_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x42DEC564UL)) -#define bFM4_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x42DEC568UL)) -#define bFM4_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x42DEC56CUL)) -#define bFM4_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x42DEC570UL)) -#define bFM4_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x42DEC574UL)) -#define bFM4_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x42DEC578UL)) -#define bFM4_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x42DEC57CUL)) -#define bFM4_GPIO_EPFR11_UEALEE *((volatile unsigned int*)(0x42DEC580UL)) -#define bFM4_GPIO_EPFR11_UECS0E *((volatile unsigned int*)(0x42DEC584UL)) -#define bFM4_GPIO_EPFR11_UEA01E *((volatile unsigned int*)(0x42DEC588UL)) -#define bFM4_GPIO_EPFR11_UEA02E *((volatile unsigned int*)(0x42DEC58CUL)) -#define bFM4_GPIO_EPFR11_UEA03E *((volatile unsigned int*)(0x42DEC590UL)) -#define bFM4_GPIO_EPFR11_UEA04E *((volatile unsigned int*)(0x42DEC594UL)) -#define bFM4_GPIO_EPFR11_UEA05E *((volatile unsigned int*)(0x42DEC598UL)) -#define bFM4_GPIO_EPFR11_UEA06E *((volatile unsigned int*)(0x42DEC59CUL)) -#define bFM4_GPIO_EPFR11_UEA07E *((volatile unsigned int*)(0x42DEC5A0UL)) -#define bFM4_GPIO_EPFR11_UED00B *((volatile unsigned int*)(0x42DEC5A4UL)) -#define bFM4_GPIO_EPFR11_UED01B *((volatile unsigned int*)(0x42DEC5A8UL)) -#define bFM4_GPIO_EPFR11_UED02B *((volatile unsigned int*)(0x42DEC5ACUL)) -#define bFM4_GPIO_EPFR11_UED03B *((volatile unsigned int*)(0x42DEC5B0UL)) -#define bFM4_GPIO_EPFR11_UED04B *((volatile unsigned int*)(0x42DEC5B4UL)) -#define bFM4_GPIO_EPFR11_UED05B *((volatile unsigned int*)(0x42DEC5B8UL)) -#define bFM4_GPIO_EPFR11_UED06B *((volatile unsigned int*)(0x42DEC5BCUL)) -#define bFM4_GPIO_EPFR11_UED07B *((volatile unsigned int*)(0x42DEC5C0UL)) -#define bFM4_GPIO_EPFR11_UED08B *((volatile unsigned int*)(0x42DEC5C4UL)) -#define bFM4_GPIO_EPFR11_UED09B *((volatile unsigned int*)(0x42DEC5C8UL)) -#define bFM4_GPIO_EPFR11_UED10B *((volatile unsigned int*)(0x42DEC5CCUL)) -#define bFM4_GPIO_EPFR11_UED11B *((volatile unsigned int*)(0x42DEC5D0UL)) -#define bFM4_GPIO_EPFR11_UED12B *((volatile unsigned int*)(0x42DEC5D4UL)) -#define bFM4_GPIO_EPFR11_UED13B *((volatile unsigned int*)(0x42DEC5D8UL)) -#define bFM4_GPIO_EPFR11_UED14B *((volatile unsigned int*)(0x42DEC5DCUL)) -#define bFM4_GPIO_EPFR11_UED15B *((volatile unsigned int*)(0x42DEC5E0UL)) -#define bFM4_GPIO_EPFR11_UERLC *((volatile unsigned int*)(0x42DEC5E4UL)) -#define bFM4_GPIO_EPFR12_TIOA8E0 *((volatile unsigned int*)(0x42DEC608UL)) -#define bFM4_GPIO_EPFR12_TIOA8E1 *((volatile unsigned int*)(0x42DEC60CUL)) -#define bFM4_GPIO_EPFR12_TIOB8S0 *((volatile unsigned int*)(0x42DEC610UL)) -#define bFM4_GPIO_EPFR12_TIOB8S1 *((volatile unsigned int*)(0x42DEC614UL)) -#define bFM4_GPIO_EPFR12_TIOA9S0 *((volatile unsigned int*)(0x42DEC620UL)) -#define bFM4_GPIO_EPFR12_TIOA9S1 *((volatile unsigned int*)(0x42DEC624UL)) -#define bFM4_GPIO_EPFR12_TIOA9E0 *((volatile unsigned int*)(0x42DEC628UL)) -#define bFM4_GPIO_EPFR12_TIOA9E1 *((volatile unsigned int*)(0x42DEC62CUL)) -#define bFM4_GPIO_EPFR12_TIOB9S0 *((volatile unsigned int*)(0x42DEC630UL)) -#define bFM4_GPIO_EPFR12_TIOB9S1 *((volatile unsigned int*)(0x42DEC634UL)) -#define bFM4_GPIO_EPFR12_TIOA10E0 *((volatile unsigned int*)(0x42DEC648UL)) -#define bFM4_GPIO_EPFR12_TIOA10E1 *((volatile unsigned int*)(0x42DEC64CUL)) -#define bFM4_GPIO_EPFR12_TIOB10S0 *((volatile unsigned int*)(0x42DEC650UL)) -#define bFM4_GPIO_EPFR12_TIOB10S1 *((volatile unsigned int*)(0x42DEC654UL)) -#define bFM4_GPIO_EPFR12_TIOA11S0 *((volatile unsigned int*)(0x42DEC660UL)) -#define bFM4_GPIO_EPFR12_TIOA11S1 *((volatile unsigned int*)(0x42DEC664UL)) -#define bFM4_GPIO_EPFR12_TIOA11E0 *((volatile unsigned int*)(0x42DEC668UL)) -#define bFM4_GPIO_EPFR12_TIOA11E1 *((volatile unsigned int*)(0x42DEC66CUL)) -#define bFM4_GPIO_EPFR12_TIOB11S0 *((volatile unsigned int*)(0x42DEC670UL)) -#define bFM4_GPIO_EPFR12_TIOB11S1 *((volatile unsigned int*)(0x42DEC674UL)) -#define bFM4_GPIO_EPFR13_TIOA12E0 *((volatile unsigned int*)(0x42DEC688UL)) -#define bFM4_GPIO_EPFR13_TIOA12E1 *((volatile unsigned int*)(0x42DEC68CUL)) -#define bFM4_GPIO_EPFR13_TIOB12S0 *((volatile unsigned int*)(0x42DEC690UL)) -#define bFM4_GPIO_EPFR13_TIOB12S1 *((volatile unsigned int*)(0x42DEC694UL)) -#define bFM4_GPIO_EPFR13_TIOA13S0 *((volatile unsigned int*)(0x42DEC6A0UL)) -#define bFM4_GPIO_EPFR13_TIOA13S1 *((volatile unsigned int*)(0x42DEC6A4UL)) -#define bFM4_GPIO_EPFR13_TIOA13E0 *((volatile unsigned int*)(0x42DEC6A8UL)) -#define bFM4_GPIO_EPFR13_TIOA13E1 *((volatile unsigned int*)(0x42DEC6ACUL)) -#define bFM4_GPIO_EPFR13_TIOB13S0 *((volatile unsigned int*)(0x42DEC6B0UL)) -#define bFM4_GPIO_EPFR13_TIOB13S1 *((volatile unsigned int*)(0x42DEC6B4UL)) -#define bFM4_GPIO_EPFR13_TIOA14E0 *((volatile unsigned int*)(0x42DEC6C8UL)) -#define bFM4_GPIO_EPFR13_TIOA14E1 *((volatile unsigned int*)(0x42DEC6CCUL)) -#define bFM4_GPIO_EPFR13_TIOB14S0 *((volatile unsigned int*)(0x42DEC6D0UL)) -#define bFM4_GPIO_EPFR13_TIOB14S1 *((volatile unsigned int*)(0x42DEC6D4UL)) -#define bFM4_GPIO_EPFR13_TIOA15S0 *((volatile unsigned int*)(0x42DEC6E0UL)) -#define bFM4_GPIO_EPFR13_TIOA15S1 *((volatile unsigned int*)(0x42DEC6E4UL)) -#define bFM4_GPIO_EPFR13_TIOA15E0 *((volatile unsigned int*)(0x42DEC6E8UL)) -#define bFM4_GPIO_EPFR13_TIOA15E1 *((volatile unsigned int*)(0x42DEC6ECUL)) -#define bFM4_GPIO_EPFR13_TIOB15S0 *((volatile unsigned int*)(0x42DEC6F0UL)) -#define bFM4_GPIO_EPFR13_TIOB15S1 *((volatile unsigned int*)(0x42DEC6F4UL)) -#define bFM4_GPIO_EPFR14_QAIN2S0 *((volatile unsigned int*)(0x42DEC700UL)) -#define bFM4_GPIO_EPFR14_QAIN2S1 *((volatile unsigned int*)(0x42DEC704UL)) -#define bFM4_GPIO_EPFR14_QBIN2S0 *((volatile unsigned int*)(0x42DEC708UL)) -#define bFM4_GPIO_EPFR14_QBIN2S1 *((volatile unsigned int*)(0x42DEC70CUL)) -#define bFM4_GPIO_EPFR14_QZIN2S0 *((volatile unsigned int*)(0x42DEC710UL)) -#define bFM4_GPIO_EPFR14_QZIN2S1 *((volatile unsigned int*)(0x42DEC714UL)) -#define bFM4_GPIO_EPFR14_E_TD0E *((volatile unsigned int*)(0x42DEC748UL)) -#define bFM4_GPIO_EPFR14_E_TD1E *((volatile unsigned int*)(0x42DEC74CUL)) -#define bFM4_GPIO_EPFR14_E_TE0E *((volatile unsigned int*)(0x42DEC750UL)) -#define bFM4_GPIO_EPFR14_E_TE1E *((volatile unsigned int*)(0x42DEC754UL)) -#define bFM4_GPIO_EPFR14_E_MC0E *((volatile unsigned int*)(0x42DEC758UL)) -#define bFM4_GPIO_EPFR14_E_MC1B *((volatile unsigned int*)(0x42DEC75CUL)) -#define bFM4_GPIO_EPFR14_E_MD0B *((volatile unsigned int*)(0x42DEC760UL)) -#define bFM4_GPIO_EPFR14_E_MD1B *((volatile unsigned int*)(0x42DEC764UL)) -#define bFM4_GPIO_EPFR14_E_CKE *((volatile unsigned int*)(0x42DEC768UL)) -#define bFM4_GPIO_EPFR14_E_PSE *((volatile unsigned int*)(0x42DEC76CUL)) -#define bFM4_GPIO_EPFR14_E_SPLC0 *((volatile unsigned int*)(0x42DEC770UL)) -#define bFM4_GPIO_EPFR14_E_SPLC1 *((volatile unsigned int*)(0x42DEC774UL)) -#define bFM4_GPIO_EPFR15_EINT16S0 *((volatile unsigned int*)(0x42DEC780UL)) -#define bFM4_GPIO_EPFR15_EINT16S1 *((volatile unsigned int*)(0x42DEC784UL)) -#define bFM4_GPIO_EPFR15_EINT17S0 *((volatile unsigned int*)(0x42DEC788UL)) -#define bFM4_GPIO_EPFR15_EINT17S1 *((volatile unsigned int*)(0x42DEC78CUL)) -#define bFM4_GPIO_EPFR15_EINT18S0 *((volatile unsigned int*)(0x42DEC790UL)) -#define bFM4_GPIO_EPFR15_EINT18S1 *((volatile unsigned int*)(0x42DEC794UL)) -#define bFM4_GPIO_EPFR15_EINT19S0 *((volatile unsigned int*)(0x42DEC798UL)) -#define bFM4_GPIO_EPFR15_EINT19S1 *((volatile unsigned int*)(0x42DEC79CUL)) -#define bFM4_GPIO_EPFR15_EINT20S0 *((volatile unsigned int*)(0x42DEC7A0UL)) -#define bFM4_GPIO_EPFR15_EINT20S1 *((volatile unsigned int*)(0x42DEC7A4UL)) -#define bFM4_GPIO_EPFR15_EINT21S0 *((volatile unsigned int*)(0x42DEC7A8UL)) -#define bFM4_GPIO_EPFR15_EINT21S1 *((volatile unsigned int*)(0x42DEC7ACUL)) -#define bFM4_GPIO_EPFR15_EINT22S0 *((volatile unsigned int*)(0x42DEC7B0UL)) -#define bFM4_GPIO_EPFR15_EINT22S1 *((volatile unsigned int*)(0x42DEC7B4UL)) -#define bFM4_GPIO_EPFR15_EINT23S0 *((volatile unsigned int*)(0x42DEC7B8UL)) -#define bFM4_GPIO_EPFR15_EINT23S1 *((volatile unsigned int*)(0x42DEC7BCUL)) -#define bFM4_GPIO_EPFR15_EINT24S0 *((volatile unsigned int*)(0x42DEC7C0UL)) -#define bFM4_GPIO_EPFR15_EINT24S1 *((volatile unsigned int*)(0x42DEC7C4UL)) -#define bFM4_GPIO_EPFR15_EINT25S0 *((volatile unsigned int*)(0x42DEC7C8UL)) -#define bFM4_GPIO_EPFR15_EINT25S1 *((volatile unsigned int*)(0x42DEC7CCUL)) -#define bFM4_GPIO_EPFR15_EINT26S0 *((volatile unsigned int*)(0x42DEC7D0UL)) -#define bFM4_GPIO_EPFR15_EINT26S1 *((volatile unsigned int*)(0x42DEC7D4UL)) -#define bFM4_GPIO_EPFR15_EINT27S0 *((volatile unsigned int*)(0x42DEC7D8UL)) -#define bFM4_GPIO_EPFR15_EINT27S1 *((volatile unsigned int*)(0x42DEC7DCUL)) -#define bFM4_GPIO_EPFR15_EINT28S0 *((volatile unsigned int*)(0x42DEC7E0UL)) -#define bFM4_GPIO_EPFR15_EINT28S1 *((volatile unsigned int*)(0x42DEC7E4UL)) -#define bFM4_GPIO_EPFR15_EINT29S0 *((volatile unsigned int*)(0x42DEC7E8UL)) -#define bFM4_GPIO_EPFR15_EINT29S1 *((volatile unsigned int*)(0x42DEC7ECUL)) -#define bFM4_GPIO_EPFR15_EINT30S0 *((volatile unsigned int*)(0x42DEC7F0UL)) -#define bFM4_GPIO_EPFR15_EINT30S1 *((volatile unsigned int*)(0x42DEC7F4UL)) -#define bFM4_GPIO_EPFR15_EINT31S0 *((volatile unsigned int*)(0x42DEC7F8UL)) -#define bFM4_GPIO_EPFR15_EINT31S1 *((volatile unsigned int*)(0x42DEC7FCUL)) -#define bFM4_GPIO_EPFR16_SCS6B0 *((volatile unsigned int*)(0x42DEC800UL)) -#define bFM4_GPIO_EPFR16_SCS6B1 *((volatile unsigned int*)(0x42DEC804UL)) -#define bFM4_GPIO_EPFR16_SCS7B0 *((volatile unsigned int*)(0x42DEC808UL)) -#define bFM4_GPIO_EPFR16_SCS7B1 *((volatile unsigned int*)(0x42DEC80CUL)) -#define bFM4_GPIO_EPFR16_SIN8S0 *((volatile unsigned int*)(0x42DEC810UL)) -#define bFM4_GPIO_EPFR16_SIN8S1 *((volatile unsigned int*)(0x42DEC814UL)) -#define bFM4_GPIO_EPFR16_SOT8B0 *((volatile unsigned int*)(0x42DEC818UL)) -#define bFM4_GPIO_EPFR16_SOT8B1 *((volatile unsigned int*)(0x42DEC81CUL)) -#define bFM4_GPIO_EPFR16_SCK8B0 *((volatile unsigned int*)(0x42DEC820UL)) -#define bFM4_GPIO_EPFR16_SCK8B1 *((volatile unsigned int*)(0x42DEC824UL)) -#define bFM4_GPIO_EPFR16_SIN9S0 *((volatile unsigned int*)(0x42DEC828UL)) -#define bFM4_GPIO_EPFR16_SIN9S1 *((volatile unsigned int*)(0x42DEC82CUL)) -#define bFM4_GPIO_EPFR16_SOT9B0 *((volatile unsigned int*)(0x42DEC830UL)) -#define bFM4_GPIO_EPFR16_SOT9B1 *((volatile unsigned int*)(0x42DEC834UL)) -#define bFM4_GPIO_EPFR16_SCK9B0 *((volatile unsigned int*)(0x42DEC838UL)) -#define bFM4_GPIO_EPFR16_SCK9B1 *((volatile unsigned int*)(0x42DEC83CUL)) -#define bFM4_GPIO_EPFR16_SIN10S0 *((volatile unsigned int*)(0x42DEC840UL)) -#define bFM4_GPIO_EPFR16_SIN10S1 *((volatile unsigned int*)(0x42DEC844UL)) -#define bFM4_GPIO_EPFR16_SOT10B0 *((volatile unsigned int*)(0x42DEC848UL)) -#define bFM4_GPIO_EPFR16_SOT10B1 *((volatile unsigned int*)(0x42DEC84CUL)) -#define bFM4_GPIO_EPFR16_SCK10B0 *((volatile unsigned int*)(0x42DEC850UL)) -#define bFM4_GPIO_EPFR16_SCK10B1 *((volatile unsigned int*)(0x42DEC854UL)) -#define bFM4_GPIO_EPFR16_SIN11S0 *((volatile unsigned int*)(0x42DEC858UL)) -#define bFM4_GPIO_EPFR16_SIN11S1 *((volatile unsigned int*)(0x42DEC85CUL)) -#define bFM4_GPIO_EPFR16_SOT11B0 *((volatile unsigned int*)(0x42DEC860UL)) -#define bFM4_GPIO_EPFR16_SOT11B1 *((volatile unsigned int*)(0x42DEC864UL)) -#define bFM4_GPIO_EPFR16_SCK11B0 *((volatile unsigned int*)(0x42DEC868UL)) -#define bFM4_GPIO_EPFR16_SCK11B1 *((volatile unsigned int*)(0x42DEC86CUL)) -#define bFM4_GPIO_EPFR16_SFMPAC *((volatile unsigned int*)(0x42DEC870UL)) -#define bFM4_GPIO_EPFR16_SFMPBC *((volatile unsigned int*)(0x42DEC874UL)) -#define bFM4_GPIO_EPFR17_SIN12S0 *((volatile unsigned int*)(0x42DEC890UL)) -#define bFM4_GPIO_EPFR17_SIN12S1 *((volatile unsigned int*)(0x42DEC894UL)) -#define bFM4_GPIO_EPFR17_SOT12B0 *((volatile unsigned int*)(0x42DEC898UL)) -#define bFM4_GPIO_EPFR17_SOT12B1 *((volatile unsigned int*)(0x42DEC89CUL)) -#define bFM4_GPIO_EPFR17_SCK12B0 *((volatile unsigned int*)(0x42DEC8A0UL)) -#define bFM4_GPIO_EPFR17_SCK12B1 *((volatile unsigned int*)(0x42DEC8A4UL)) -#define bFM4_GPIO_EPFR17_SIN13S0 *((volatile unsigned int*)(0x42DEC8A8UL)) -#define bFM4_GPIO_EPFR17_SIN13S1 *((volatile unsigned int*)(0x42DEC8ACUL)) -#define bFM4_GPIO_EPFR17_SOT13B0 *((volatile unsigned int*)(0x42DEC8B0UL)) -#define bFM4_GPIO_EPFR17_SOT13B1 *((volatile unsigned int*)(0x42DEC8B4UL)) -#define bFM4_GPIO_EPFR17_SCK13B0 *((volatile unsigned int*)(0x42DEC8B8UL)) -#define bFM4_GPIO_EPFR17_SCK13B1 *((volatile unsigned int*)(0x42DEC8BCUL)) -#define bFM4_GPIO_EPFR17_SIN14S0 *((volatile unsigned int*)(0x42DEC8C0UL)) -#define bFM4_GPIO_EPFR17_SIN14S1 *((volatile unsigned int*)(0x42DEC8C4UL)) -#define bFM4_GPIO_EPFR17_SOT14B0 *((volatile unsigned int*)(0x42DEC8C8UL)) -#define bFM4_GPIO_EPFR17_SOT14B1 *((volatile unsigned int*)(0x42DEC8CCUL)) -#define bFM4_GPIO_EPFR17_SCK14B0 *((volatile unsigned int*)(0x42DEC8D0UL)) -#define bFM4_GPIO_EPFR17_SCK14B1 *((volatile unsigned int*)(0x42DEC8D4UL)) -#define bFM4_GPIO_EPFR17_SIN15S0 *((volatile unsigned int*)(0x42DEC8D8UL)) -#define bFM4_GPIO_EPFR17_SIN15S1 *((volatile unsigned int*)(0x42DEC8DCUL)) -#define bFM4_GPIO_EPFR17_SOT15B0 *((volatile unsigned int*)(0x42DEC8E0UL)) -#define bFM4_GPIO_EPFR17_SOT15B1 *((volatile unsigned int*)(0x42DEC8E4UL)) -#define bFM4_GPIO_EPFR17_SCK15B0 *((volatile unsigned int*)(0x42DEC8E8UL)) -#define bFM4_GPIO_EPFR17_SCK15B1 *((volatile unsigned int*)(0x42DEC8ECUL)) -#define bFM4_GPIO_EPFR18_QAIN3S0 *((volatile unsigned int*)(0x42DEC910UL)) -#define bFM4_GPIO_EPFR18_QAIN3S1 *((volatile unsigned int*)(0x42DEC914UL)) -#define bFM4_GPIO_EPFR18_QBIN3S0 *((volatile unsigned int*)(0x42DEC918UL)) -#define bFM4_GPIO_EPFR18_QBIN3S1 *((volatile unsigned int*)(0x42DEC91CUL)) -#define bFM4_GPIO_EPFR18_QZIN3S0 *((volatile unsigned int*)(0x42DEC920UL)) -#define bFM4_GPIO_EPFR18_QZIN3S1 *((volatile unsigned int*)(0x42DEC924UL)) -#define bFM4_GPIO_EPFR18_SDCLKE0 *((volatile unsigned int*)(0x42DEC938UL)) -#define bFM4_GPIO_EPFR18_SDCLKE1 *((volatile unsigned int*)(0x42DEC93CUL)) -#define bFM4_GPIO_EPFR18_SDCMDB0 *((volatile unsigned int*)(0x42DEC940UL)) -#define bFM4_GPIO_EPFR18_SDCMDB1 *((volatile unsigned int*)(0x42DEC944UL)) -#define bFM4_GPIO_EPFR18_SDDATA0B0 *((volatile unsigned int*)(0x42DEC948UL)) -#define bFM4_GPIO_EPFR18_SDDATA0B1 *((volatile unsigned int*)(0x42DEC94CUL)) -#define bFM4_GPIO_EPFR18_SDDATA1B0 *((volatile unsigned int*)(0x42DEC950UL)) -#define bFM4_GPIO_EPFR18_SDDATA1B1 *((volatile unsigned int*)(0x42DEC954UL)) -#define bFM4_GPIO_EPFR18_SDDATA2B0 *((volatile unsigned int*)(0x42DEC958UL)) -#define bFM4_GPIO_EPFR18_SDDATA2B1 *((volatile unsigned int*)(0x42DEC95CUL)) -#define bFM4_GPIO_EPFR18_SDDATA3B0 *((volatile unsigned int*)(0x42DEC960UL)) -#define bFM4_GPIO_EPFR18_SDDATA3B1 *((volatile unsigned int*)(0x42DEC964UL)) -#define bFM4_GPIO_EPFR18_SDCDS0 *((volatile unsigned int*)(0x42DEC968UL)) -#define bFM4_GPIO_EPFR18_SDCDS1 *((volatile unsigned int*)(0x42DEC96CUL)) -#define bFM4_GPIO_EPFR18_SDWPS0 *((volatile unsigned int*)(0x42DEC970UL)) -#define bFM4_GPIO_EPFR18_SDWPS1 *((volatile unsigned int*)(0x42DEC974UL)) -#define bFM4_GPIO_EPFR20_UESMCKE *((volatile unsigned int*)(0x42DECA00UL)) -#define bFM4_GPIO_EPFR20_UESMCEE *((volatile unsigned int*)(0x42DECA04UL)) -#define bFM4_GPIO_EPFR20_UERASE *((volatile unsigned int*)(0x42DECA08UL)) -#define bFM4_GPIO_EPFR20_UECASE *((volatile unsigned int*)(0x42DECA0CUL)) -#define bFM4_GPIO_EPFR20_UEDWEXE *((volatile unsigned int*)(0x42DECA10UL)) -#define bFM4_GPIO_EPFR20_UECSXE *((volatile unsigned int*)(0x42DECA14UL)) -#define bFM4_GPIO_EPFR20_UEDQM2E *((volatile unsigned int*)(0x42DECA18UL)) -#define bFM4_GPIO_EPFR20_UEDQM3E *((volatile unsigned int*)(0x42DECA1CUL)) -#define bFM4_GPIO_EPFR20_UEDTHHB *((volatile unsigned int*)(0x42DECA20UL)) -#define bFM4_GPIO_EPFR20_UED16B *((volatile unsigned int*)(0x42DECA24UL)) -#define bFM4_GPIO_EPFR20_UED17B *((volatile unsigned int*)(0x42DECA28UL)) -#define bFM4_GPIO_EPFR20_UED18B *((volatile unsigned int*)(0x42DECA2CUL)) -#define bFM4_GPIO_EPFR20_UED19B *((volatile unsigned int*)(0x42DECA30UL)) -#define bFM4_GPIO_EPFR20_UED20B *((volatile unsigned int*)(0x42DECA34UL)) -#define bFM4_GPIO_EPFR20_UED21B *((volatile unsigned int*)(0x42DECA38UL)) -#define bFM4_GPIO_EPFR20_UED22B *((volatile unsigned int*)(0x42DECA3CUL)) -#define bFM4_GPIO_EPFR20_UED23B *((volatile unsigned int*)(0x42DECA40UL)) -#define bFM4_GPIO_EPFR20_UED24B *((volatile unsigned int*)(0x42DECA44UL)) -#define bFM4_GPIO_EPFR20_UED25B *((volatile unsigned int*)(0x42DECA48UL)) -#define bFM4_GPIO_EPFR20_UED26B *((volatile unsigned int*)(0x42DECA4CUL)) -#define bFM4_GPIO_EPFR20_UED27B *((volatile unsigned int*)(0x42DECA50UL)) -#define bFM4_GPIO_EPFR20_UED28B *((volatile unsigned int*)(0x42DECA54UL)) -#define bFM4_GPIO_EPFR20_UED29B *((volatile unsigned int*)(0x42DECA58UL)) -#define bFM4_GPIO_EPFR20_UED30B *((volatile unsigned int*)(0x42DECA5CUL)) -#define bFM4_GPIO_EPFR20_UED31B *((volatile unsigned int*)(0x42DECA60UL)) -#define bFM4_GPIO_PZR0_P00 *((volatile unsigned int*)(0x42DEE000UL)) -#define bFM4_GPIO_PZR0_P01 *((volatile unsigned int*)(0x42DEE004UL)) -#define bFM4_GPIO_PZR0_P02 *((volatile unsigned int*)(0x42DEE008UL)) -#define bFM4_GPIO_PZR0_P03 *((volatile unsigned int*)(0x42DEE00CUL)) -#define bFM4_GPIO_PZR0_P04 *((volatile unsigned int*)(0x42DEE010UL)) -#define bFM4_GPIO_PZR0_P05 *((volatile unsigned int*)(0x42DEE014UL)) -#define bFM4_GPIO_PZR0_P06 *((volatile unsigned int*)(0x42DEE018UL)) -#define bFM4_GPIO_PZR0_P07 *((volatile unsigned int*)(0x42DEE01CUL)) -#define bFM4_GPIO_PZR0_P08 *((volatile unsigned int*)(0x42DEE020UL)) -#define bFM4_GPIO_PZR0_P09 *((volatile unsigned int*)(0x42DEE024UL)) -#define bFM4_GPIO_PZR0_P0A *((volatile unsigned int*)(0x42DEE028UL)) -#define bFM4_GPIO_PZR0_P0B *((volatile unsigned int*)(0x42DEE02CUL)) -#define bFM4_GPIO_PZR0_P0C *((volatile unsigned int*)(0x42DEE030UL)) -#define bFM4_GPIO_PZR0_P0D *((volatile unsigned int*)(0x42DEE034UL)) -#define bFM4_GPIO_PZR0_P0E *((volatile unsigned int*)(0x42DEE038UL)) -#define bFM4_GPIO_PZR0_P0F *((volatile unsigned int*)(0x42DEE03CUL)) -#define bFM4_GPIO_PZR1_P10 *((volatile unsigned int*)(0x42DEE080UL)) -#define bFM4_GPIO_PZR1_P11 *((volatile unsigned int*)(0x42DEE084UL)) -#define bFM4_GPIO_PZR1_P12 *((volatile unsigned int*)(0x42DEE088UL)) -#define bFM4_GPIO_PZR1_P13 *((volatile unsigned int*)(0x42DEE08CUL)) -#define bFM4_GPIO_PZR1_P14 *((volatile unsigned int*)(0x42DEE090UL)) -#define bFM4_GPIO_PZR1_P15 *((volatile unsigned int*)(0x42DEE094UL)) -#define bFM4_GPIO_PZR1_P16 *((volatile unsigned int*)(0x42DEE098UL)) -#define bFM4_GPIO_PZR1_P17 *((volatile unsigned int*)(0x42DEE09CUL)) -#define bFM4_GPIO_PZR1_P18 *((volatile unsigned int*)(0x42DEE0A0UL)) -#define bFM4_GPIO_PZR1_P19 *((volatile unsigned int*)(0x42DEE0A4UL)) -#define bFM4_GPIO_PZR1_P1A *((volatile unsigned int*)(0x42DEE0A8UL)) -#define bFM4_GPIO_PZR1_P1B *((volatile unsigned int*)(0x42DEE0ACUL)) -#define bFM4_GPIO_PZR1_P1C *((volatile unsigned int*)(0x42DEE0B0UL)) -#define bFM4_GPIO_PZR1_P1D *((volatile unsigned int*)(0x42DEE0B4UL)) -#define bFM4_GPIO_PZR1_P1E *((volatile unsigned int*)(0x42DEE0B8UL)) -#define bFM4_GPIO_PZR1_P1F *((volatile unsigned int*)(0x42DEE0BCUL)) -#define bFM4_GPIO_PZR2_P20 *((volatile unsigned int*)(0x42DEE100UL)) -#define bFM4_GPIO_PZR2_P21 *((volatile unsigned int*)(0x42DEE104UL)) -#define bFM4_GPIO_PZR2_P22 *((volatile unsigned int*)(0x42DEE108UL)) -#define bFM4_GPIO_PZR2_P23 *((volatile unsigned int*)(0x42DEE10CUL)) -#define bFM4_GPIO_PZR2_P24 *((volatile unsigned int*)(0x42DEE110UL)) -#define bFM4_GPIO_PZR2_P25 *((volatile unsigned int*)(0x42DEE114UL)) -#define bFM4_GPIO_PZR2_P26 *((volatile unsigned int*)(0x42DEE118UL)) -#define bFM4_GPIO_PZR2_P27 *((volatile unsigned int*)(0x42DEE11CUL)) -#define bFM4_GPIO_PZR3_P30 *((volatile unsigned int*)(0x42DEE180UL)) -#define bFM4_GPIO_PZR3_P31 *((volatile unsigned int*)(0x42DEE184UL)) -#define bFM4_GPIO_PZR3_P32 *((volatile unsigned int*)(0x42DEE188UL)) -#define bFM4_GPIO_PZR3_P33 *((volatile unsigned int*)(0x42DEE18CUL)) -#define bFM4_GPIO_PZR3_P34 *((volatile unsigned int*)(0x42DEE190UL)) -#define bFM4_GPIO_PZR3_P35 *((volatile unsigned int*)(0x42DEE194UL)) -#define bFM4_GPIO_PZR3_P36 *((volatile unsigned int*)(0x42DEE198UL)) -#define bFM4_GPIO_PZR3_P37 *((volatile unsigned int*)(0x42DEE19CUL)) -#define bFM4_GPIO_PZR3_P38 *((volatile unsigned int*)(0x42DEE1A0UL)) -#define bFM4_GPIO_PZR3_P39 *((volatile unsigned int*)(0x42DEE1A4UL)) -#define bFM4_GPIO_PZR3_P3A *((volatile unsigned int*)(0x42DEE1A8UL)) -#define bFM4_GPIO_PZR3_P3B *((volatile unsigned int*)(0x42DEE1ACUL)) -#define bFM4_GPIO_PZR3_P3C *((volatile unsigned int*)(0x42DEE1B0UL)) -#define bFM4_GPIO_PZR3_P3D *((volatile unsigned int*)(0x42DEE1B4UL)) -#define bFM4_GPIO_PZR3_P3E *((volatile unsigned int*)(0x42DEE1B8UL)) -#define bFM4_GPIO_PZR3_P3F *((volatile unsigned int*)(0x42DEE1BCUL)) -#define bFM4_GPIO_PZR4_P40 *((volatile unsigned int*)(0x42DEE200UL)) -#define bFM4_GPIO_PZR4_P41 *((volatile unsigned int*)(0x42DEE204UL)) -#define bFM4_GPIO_PZR4_P42 *((volatile unsigned int*)(0x42DEE208UL)) -#define bFM4_GPIO_PZR4_P43 *((volatile unsigned int*)(0x42DEE20CUL)) -#define bFM4_GPIO_PZR4_P44 *((volatile unsigned int*)(0x42DEE210UL)) -#define bFM4_GPIO_PZR4_P45 *((volatile unsigned int*)(0x42DEE214UL)) -#define bFM4_GPIO_PZR4_P46 *((volatile unsigned int*)(0x42DEE218UL)) -#define bFM4_GPIO_PZR4_P47 *((volatile unsigned int*)(0x42DEE21CUL)) -#define bFM4_GPIO_PZR4_P48 *((volatile unsigned int*)(0x42DEE220UL)) -#define bFM4_GPIO_PZR4_P49 *((volatile unsigned int*)(0x42DEE224UL)) -#define bFM4_GPIO_PZR4_P4A *((volatile unsigned int*)(0x42DEE228UL)) -#define bFM4_GPIO_PZR4_P4B *((volatile unsigned int*)(0x42DEE22CUL)) -#define bFM4_GPIO_PZR4_P4C *((volatile unsigned int*)(0x42DEE230UL)) -#define bFM4_GPIO_PZR4_P4D *((volatile unsigned int*)(0x42DEE234UL)) -#define bFM4_GPIO_PZR4_P4E *((volatile unsigned int*)(0x42DEE238UL)) -#define bFM4_GPIO_PZR5_P50 *((volatile unsigned int*)(0x42DEE280UL)) -#define bFM4_GPIO_PZR5_P51 *((volatile unsigned int*)(0x42DEE284UL)) -#define bFM4_GPIO_PZR5_P52 *((volatile unsigned int*)(0x42DEE288UL)) -#define bFM4_GPIO_PZR5_P53 *((volatile unsigned int*)(0x42DEE28CUL)) -#define bFM4_GPIO_PZR5_P54 *((volatile unsigned int*)(0x42DEE290UL)) -#define bFM4_GPIO_PZR5_P55 *((volatile unsigned int*)(0x42DEE294UL)) -#define bFM4_GPIO_PZR5_P56 *((volatile unsigned int*)(0x42DEE298UL)) -#define bFM4_GPIO_PZR5_P57 *((volatile unsigned int*)(0x42DEE29CUL)) -#define bFM4_GPIO_PZR5_P58 *((volatile unsigned int*)(0x42DEE2A0UL)) -#define bFM4_GPIO_PZR5_P59 *((volatile unsigned int*)(0x42DEE2A4UL)) -#define bFM4_GPIO_PZR5_P5A *((volatile unsigned int*)(0x42DEE2A8UL)) -#define bFM4_GPIO_PZR5_P5B *((volatile unsigned int*)(0x42DEE2ACUL)) -#define bFM4_GPIO_PZR6_P60 *((volatile unsigned int*)(0x42DEE300UL)) -#define bFM4_GPIO_PZR6_P61 *((volatile unsigned int*)(0x42DEE304UL)) -#define bFM4_GPIO_PZR6_P62 *((volatile unsigned int*)(0x42DEE308UL)) -#define bFM4_GPIO_PZR6_P63 *((volatile unsigned int*)(0x42DEE30CUL)) -#define bFM4_GPIO_PZR6_P64 *((volatile unsigned int*)(0x42DEE310UL)) -#define bFM4_GPIO_PZR6_P65 *((volatile unsigned int*)(0x42DEE314UL)) -#define bFM4_GPIO_PZR6_P66 *((volatile unsigned int*)(0x42DEE318UL)) -#define bFM4_GPIO_PZR6_P67 *((volatile unsigned int*)(0x42DEE31CUL)) -#define bFM4_GPIO_PZR6_P68 *((volatile unsigned int*)(0x42DEE320UL)) -#define bFM4_GPIO_PZR7_P70 *((volatile unsigned int*)(0x42DEE380UL)) -#define bFM4_GPIO_PZR7_P71 *((volatile unsigned int*)(0x42DEE384UL)) -#define bFM4_GPIO_PZR7_P72 *((volatile unsigned int*)(0x42DEE388UL)) -#define bFM4_GPIO_PZR7_P73 *((volatile unsigned int*)(0x42DEE38CUL)) -#define bFM4_GPIO_PZR7_P74 *((volatile unsigned int*)(0x42DEE390UL)) -#define bFM4_GPIO_PZR8_P80 *((volatile unsigned int*)(0x42DEE400UL)) -#define bFM4_GPIO_PZR8_P81 *((volatile unsigned int*)(0x42DEE404UL)) -#define bFM4_GPIO_PZRE_PE0 *((volatile unsigned int*)(0x42DEE700UL)) -#define bFM4_GPIO_PZRE_PE2 *((volatile unsigned int*)(0x42DEE708UL)) -#define bFM4_GPIO_PZRE_PE3 *((volatile unsigned int*)(0x42DEE70CUL)) - -/* Low voltage detection registers */ -#define bFM4_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) -#define bFM4_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) -#define bFM4_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) -#define bFM4_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) -#define bFM4_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) -#define bFM4_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) -#define bFM4_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) -#define bFM4_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) - -/* DS mode registers */ -#define bFM4_DS_RCK_CTL_RTCCKE *((volatile unsigned int*)(0x426A2080UL)) -#define bFM4_DS_PMD_CTL_RTCE *((volatile unsigned int*)(0x426B0000UL)) -#define bFM4_DS_WRFSR_WINITX *((volatile unsigned int*)(0x426B0080UL)) -#define bFM4_DS_WRFSR_WLVDH *((volatile unsigned int*)(0x426B0084UL)) -#define bFM4_DS_WIFSR_WRTCI *((volatile unsigned int*)(0x426B0100UL)) -#define bFM4_DS_WIFSR_WLVDI *((volatile unsigned int*)(0x426B0104UL)) -#define bFM4_DS_WIFSR_WUI0 *((volatile unsigned int*)(0x426B0108UL)) -#define bFM4_DS_WIFSR_WUI1 *((volatile unsigned int*)(0x426B010CUL)) -#define bFM4_DS_WIFSR_WUI2 *((volatile unsigned int*)(0x426B0110UL)) -#define bFM4_DS_WIFSR_WUI3 *((volatile unsigned int*)(0x426B0114UL)) -#define bFM4_DS_WIFSR_WUI4 *((volatile unsigned int*)(0x426B0118UL)) -#define bFM4_DS_WIFSR_WUI5 *((volatile unsigned int*)(0x426B011CUL)) -#define bFM4_DS_WIER_WRTCE *((volatile unsigned int*)(0x426B0180UL)) -#define bFM4_DS_WIER_WLVDE *((volatile unsigned int*)(0x426B0184UL)) -#define bFM4_DS_WIER_WUI1E *((volatile unsigned int*)(0x426B018CUL)) -#define bFM4_DS_WIER_WUI2E *((volatile unsigned int*)(0x426B0190UL)) -#define bFM4_DS_WIER_WUI3E *((volatile unsigned int*)(0x426B0194UL)) -#define bFM4_DS_WIER_WUI4E *((volatile unsigned int*)(0x426B0198UL)) -#define bFM4_DS_WIER_WUI5E *((volatile unsigned int*)(0x426B019CUL)) -#define bFM4_DS_WILVR_WUI1LV *((volatile unsigned int*)(0x426B0200UL)) -#define bFM4_DS_WILVR_WUI2LV *((volatile unsigned int*)(0x426B0204UL)) -#define bFM4_DS_WILVR_WUI3LV *((volatile unsigned int*)(0x426B0208UL)) -#define bFM4_DS_WILVR_WUI4LV *((volatile unsigned int*)(0x426B020CUL)) -#define bFM4_DS_WILVR_WUI5LV *((volatile unsigned int*)(0x426B0210UL)) -#define bFM4_DS_DSRAMR_SRAMR0 *((volatile unsigned int*)(0x426B0280UL)) -#define bFM4_DS_DSRAMR_SRAMR1 *((volatile unsigned int*)(0x426B0284UL)) - -/* USB clock registers */ -#define bFM4_USBCLK_UCCR_UCEN *((volatile unsigned int*)(0x426C0000UL)) -#define bFM4_USBCLK_UCCR_UCSEL *((volatile unsigned int*)(0x426C0004UL)) -#define bFM4_USBCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) -#define bFM4_USBCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) -#define bFM4_USBCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) -#define bFM4_USBCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) -#define bFM4_USBCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) -#define bFM4_USBCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) -#define bFM4_USBCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) -#define bFM4_USBCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) -#define bFM4_USBCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) -#define bFM4_USBCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) -#define bFM4_USBCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) -#define bFM4_USBCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) -#define bFM4_USBCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) -#define bFM4_USBCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) -#define bFM4_USBCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) -#define bFM4_USBCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) -#define bFM4_USBCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) -#define bFM4_USBCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) -#define bFM4_USBCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) -#define bFM4_USBCLK_USBEN_USBEN *((volatile unsigned int*)(0x426C0600UL)) - -/* CAN prescaler register */ -#define bFM4_CANPRES_CANPRE_CANPRE0 *((volatile unsigned int*)(0x426E0000UL)) -#define bFM4_CANPRES_CANPRE_CANPRE1 *((volatile unsigned int*)(0x426E0004UL)) -#define bFM4_CANPRES_CANPRE_CANPRE2 *((volatile unsigned int*)(0x426E0008UL)) -#define bFM4_CANPRES_CANPRE_CANPRE3 *((volatile unsigned int*)(0x426E000CUL)) - -/* MFS UART channel 0 registers */ -#define bFM4_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM4_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM4_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM4_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM4_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM4_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM4_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM4_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM4_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM4_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM4_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM4_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM4_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM4_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM4_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM4_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM4_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) -#define bFM4_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) -#define bFM4_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) -#define bFM4_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM4_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) -#define bFM4_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM4_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM4_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM4_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM4_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM4_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) -#define bFM4_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM4_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM4_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM4_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM4_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM4_MFS0_UART_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_UART_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_UART_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_UART_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_UART_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_UART_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_UART_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_UART_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_UART_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_UART_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_UART_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_UART_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_UART_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_UART_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_UART_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_UART_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_UART_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_UART_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) -#define bFM4_MFS0_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) - -/* MFS CSIO channel 0 registers */ -#define bFM4_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM4_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) -#define bFM4_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM4_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) -#define bFM4_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM4_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM4_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM4_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM4_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM4_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM4_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM4_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM4_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) -#define bFM4_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM4_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM4_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM4_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM4_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM4_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM4_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) -#define bFM4_MFS0_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42700098UL)) -#define bFM4_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) -#define bFM4_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM4_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM4_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM4_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM4_MFS0_CSIO_SSR_AWC *((volatile unsigned int*)(0x427000B0UL)) -#define bFM4_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM4_MFS0_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_CSIO_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_CSIO_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_CSIO_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42700380UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42700384UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42700388UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270038CUL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42700390UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42700394UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42700398UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270039CUL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427003A0UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427003A4UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427003A8UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427003ACUL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427003B0UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427003B4UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427003B8UL)) -#define bFM4_MFS0_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427003BCUL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42700400UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42700404UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42700408UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270040CUL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42700410UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42700414UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42700418UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270041CUL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42700420UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42700424UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42700428UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270042CUL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42700430UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42700434UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42700438UL)) -#define bFM4_MFS0_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270043CUL)) -#define bFM4_MFS0_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42700480UL)) -#define bFM4_MFS0_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42700484UL)) -#define bFM4_MFS0_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42700488UL)) -#define bFM4_MFS0_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270048CUL)) -#define bFM4_MFS0_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42700490UL)) -#define bFM4_MFS0_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42700498UL)) -#define bFM4_MFS0_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270049CUL)) -#define bFM4_MFS0_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427004A0UL)) -#define bFM4_MFS0_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427004ACUL)) -#define bFM4_MFS0_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427004B0UL)) -#define bFM4_MFS0_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427004B4UL)) -#define bFM4_MFS0_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42700500UL)) -#define bFM4_MFS0_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42700504UL)) -#define bFM4_MFS0_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42700508UL)) -#define bFM4_MFS0_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270050CUL)) -#define bFM4_MFS0_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42700510UL)) -#define bFM4_MFS0_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42700514UL)) -#define bFM4_MFS0_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42700518UL)) -#define bFM4_MFS0_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270051CUL)) -#define bFM4_MFS0_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42700520UL)) -#define bFM4_MFS0_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42700524UL)) -#define bFM4_MFS0_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42700528UL)) -#define bFM4_MFS0_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270052CUL)) -#define bFM4_MFS0_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42700530UL)) -#define bFM4_MFS0_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42700534UL)) -#define bFM4_MFS0_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42700538UL)) -#define bFM4_MFS0_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270053CUL)) -#define bFM4_MFS0_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42700580UL)) -#define bFM4_MFS0_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42700584UL)) -#define bFM4_MFS0_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42700588UL)) -#define bFM4_MFS0_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270058CUL)) -#define bFM4_MFS0_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42700590UL)) -#define bFM4_MFS0_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42700594UL)) -#define bFM4_MFS0_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42700598UL)) -#define bFM4_MFS0_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270059CUL)) -#define bFM4_MFS0_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427005A0UL)) -#define bFM4_MFS0_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427005A4UL)) -#define bFM4_MFS0_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427005A8UL)) -#define bFM4_MFS0_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427005ACUL)) -#define bFM4_MFS0_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427005B0UL)) -#define bFM4_MFS0_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427005B4UL)) -#define bFM4_MFS0_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427005B8UL)) -#define bFM4_MFS0_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427005BCUL)) -#define bFM4_MFS0_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42700600UL)) -#define bFM4_MFS0_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42700604UL)) -#define bFM4_MFS0_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42700614UL)) -#define bFM4_MFS0_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42700618UL)) -#define bFM4_MFS0_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270061CUL)) -#define bFM4_MFS0_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42700620UL)) -#define bFM4_MFS0_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42700624UL)) - -/* MFS LIN channel 0 registers */ -#define bFM4_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM4_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM4_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM4_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM4_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM4_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM4_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM4_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM4_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM4_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM4_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM4_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) -#define bFM4_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM4_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM4_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM4_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM4_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) -#define bFM4_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM4_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) -#define bFM4_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM4_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM4_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM4_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM4_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM4_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM4_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) -#define bFM4_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM4_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM4_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM4_MFS0_LIN_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_LIN_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_LIN_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_LIN_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_LIN_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_LIN_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_LIN_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_LIN_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_LIN_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_LIN_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) -#define bFM4_MFS0_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) - -/* MFS I2C channel 0 registers */ -#define bFM4_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) -#define bFM4_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) -#define bFM4_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM4_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM4_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM4_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) -#define bFM4_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) -#define bFM4_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) -#define bFM4_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM4_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) -#define bFM4_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) -#define bFM4_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) -#define bFM4_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) -#define bFM4_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) -#define bFM4_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) -#define bFM4_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) -#define bFM4_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) -#define bFM4_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) -#define bFM4_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) -#define bFM4_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) -#define bFM4_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) -#define bFM4_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) -#define bFM4_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM4_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM4_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM4_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM4_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM4_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) -#define bFM4_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) -#define bFM4_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM4_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) -#define bFM4_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) -#define bFM4_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) -#define bFM4_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) -#define bFM4_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) -#define bFM4_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) -#define bFM4_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) -#define bFM4_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) -#define bFM4_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) -#define bFM4_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) -#define bFM4_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) -#define bFM4_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) -#define bFM4_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) -#define bFM4_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) -#define bFM4_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) -#define bFM4_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) -#define bFM4_MFS0_I2C_FCR_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_I2C_FCR_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_I2C_FCR_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_I2C_FCR_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_I2C_FCR_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_I2C_FCR_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_I2C_FCR_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42700280UL)) -#define bFM4_MFS0_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42700284UL)) -#define bFM4_MFS0_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42700288UL)) -#define bFM4_MFS0_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270028CUL)) -#define bFM4_MFS0_I2C_FCR0_FSET *((volatile unsigned int*)(0x42700290UL)) -#define bFM4_MFS0_I2C_FCR0_FLD *((volatile unsigned int*)(0x42700294UL)) -#define bFM4_MFS0_I2C_FCR0_FLST *((volatile unsigned int*)(0x42700298UL)) -#define bFM4_MFS0_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427002A0UL)) -#define bFM4_MFS0_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427002A4UL)) -#define bFM4_MFS0_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427002A8UL)) -#define bFM4_MFS0_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427002ACUL)) -#define bFM4_MFS0_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427002B0UL)) -#define bFM4_MFS0_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270033CUL)) -#define bFM4_MFS0_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42700300UL)) -#define bFM4_MFS0_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42700304UL)) -#define bFM4_MFS0_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42700308UL)) -#define bFM4_MFS0_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270030CUL)) -#define bFM4_MFS0_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42700310UL)) -#define bFM4_MFS0_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42700314UL)) -#define bFM4_MFS0_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42700318UL)) -#define bFM4_MFS0_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270031CUL)) -#define bFM4_MFS0_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42700320UL)) -#define bFM4_MFS0_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42700324UL)) -#define bFM4_MFS0_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42700328UL)) -#define bFM4_MFS0_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270032CUL)) -#define bFM4_MFS0_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42700330UL)) -#define bFM4_MFS0_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42700334UL)) -#define bFM4_MFS0_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42700338UL)) -#define bFM4_MFS0_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270033CUL)) - -/* MFS UART channel 1 registers */ -#define bFM4_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM4_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM4_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM4_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM4_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM4_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM4_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM4_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM4_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM4_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM4_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM4_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM4_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM4_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM4_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM4_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM4_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) -#define bFM4_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) -#define bFM4_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) -#define bFM4_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM4_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) -#define bFM4_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM4_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM4_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM4_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM4_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM4_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) -#define bFM4_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM4_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM4_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM4_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM4_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM4_MFS1_UART_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_UART_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_UART_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_UART_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_UART_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_UART_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_UART_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_UART_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_UART_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_UART_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_UART_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_UART_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_UART_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_UART_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_UART_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_UART_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_UART_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_UART_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) -#define bFM4_MFS1_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) - -/* MFS CSIO channel 1 registers */ -#define bFM4_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM4_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) -#define bFM4_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM4_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) -#define bFM4_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM4_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM4_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM4_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM4_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM4_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM4_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM4_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM4_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) -#define bFM4_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM4_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM4_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM4_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM4_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM4_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM4_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) -#define bFM4_MFS1_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42702098UL)) -#define bFM4_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) -#define bFM4_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM4_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM4_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM4_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM4_MFS1_CSIO_SSR_AWC *((volatile unsigned int*)(0x427020B0UL)) -#define bFM4_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM4_MFS1_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_CSIO_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_CSIO_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_CSIO_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42702380UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42702384UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42702388UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270238CUL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42702390UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42702394UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42702398UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270239CUL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427023A0UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427023A4UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427023A8UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427023ACUL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427023B0UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427023B4UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427023B8UL)) -#define bFM4_MFS1_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427023BCUL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42702400UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42702404UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42702408UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270240CUL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42702410UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42702414UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42702418UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270241CUL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42702420UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42702424UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42702428UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270242CUL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42702430UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42702434UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42702438UL)) -#define bFM4_MFS1_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270243CUL)) -#define bFM4_MFS1_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42702480UL)) -#define bFM4_MFS1_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42702484UL)) -#define bFM4_MFS1_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42702488UL)) -#define bFM4_MFS1_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270248CUL)) -#define bFM4_MFS1_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42702490UL)) -#define bFM4_MFS1_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42702498UL)) -#define bFM4_MFS1_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270249CUL)) -#define bFM4_MFS1_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427024A0UL)) -#define bFM4_MFS1_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427024ACUL)) -#define bFM4_MFS1_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427024B0UL)) -#define bFM4_MFS1_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427024B4UL)) -#define bFM4_MFS1_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42702500UL)) -#define bFM4_MFS1_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42702504UL)) -#define bFM4_MFS1_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42702508UL)) -#define bFM4_MFS1_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270250CUL)) -#define bFM4_MFS1_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42702510UL)) -#define bFM4_MFS1_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42702514UL)) -#define bFM4_MFS1_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42702518UL)) -#define bFM4_MFS1_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270251CUL)) -#define bFM4_MFS1_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42702520UL)) -#define bFM4_MFS1_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42702524UL)) -#define bFM4_MFS1_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42702528UL)) -#define bFM4_MFS1_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270252CUL)) -#define bFM4_MFS1_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42702530UL)) -#define bFM4_MFS1_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42702534UL)) -#define bFM4_MFS1_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42702538UL)) -#define bFM4_MFS1_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270253CUL)) -#define bFM4_MFS1_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42702580UL)) -#define bFM4_MFS1_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42702584UL)) -#define bFM4_MFS1_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42702588UL)) -#define bFM4_MFS1_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270258CUL)) -#define bFM4_MFS1_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42702590UL)) -#define bFM4_MFS1_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42702594UL)) -#define bFM4_MFS1_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42702598UL)) -#define bFM4_MFS1_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270259CUL)) -#define bFM4_MFS1_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427025A0UL)) -#define bFM4_MFS1_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427025A4UL)) -#define bFM4_MFS1_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427025A8UL)) -#define bFM4_MFS1_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427025ACUL)) -#define bFM4_MFS1_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427025B0UL)) -#define bFM4_MFS1_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427025B4UL)) -#define bFM4_MFS1_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427025B8UL)) -#define bFM4_MFS1_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427025BCUL)) -#define bFM4_MFS1_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42702600UL)) -#define bFM4_MFS1_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42702604UL)) -#define bFM4_MFS1_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42702614UL)) -#define bFM4_MFS1_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42702618UL)) -#define bFM4_MFS1_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270261CUL)) -#define bFM4_MFS1_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42702620UL)) -#define bFM4_MFS1_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42702624UL)) - -/* MFS LIN channel 1 registers */ -#define bFM4_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM4_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM4_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM4_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM4_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM4_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM4_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM4_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM4_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM4_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM4_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM4_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) -#define bFM4_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM4_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM4_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM4_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM4_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) -#define bFM4_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM4_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) -#define bFM4_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM4_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM4_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM4_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM4_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM4_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM4_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) -#define bFM4_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM4_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM4_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM4_MFS1_LIN_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_LIN_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_LIN_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_LIN_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_LIN_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_LIN_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_LIN_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_LIN_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_LIN_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_LIN_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) -#define bFM4_MFS1_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) - -/* MFS I2C channel 1 registers */ -#define bFM4_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) -#define bFM4_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) -#define bFM4_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM4_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM4_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM4_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) -#define bFM4_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) -#define bFM4_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) -#define bFM4_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM4_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) -#define bFM4_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) -#define bFM4_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) -#define bFM4_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) -#define bFM4_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) -#define bFM4_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) -#define bFM4_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) -#define bFM4_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) -#define bFM4_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) -#define bFM4_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) -#define bFM4_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) -#define bFM4_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) -#define bFM4_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) -#define bFM4_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM4_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM4_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM4_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM4_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM4_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) -#define bFM4_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) -#define bFM4_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM4_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) -#define bFM4_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) -#define bFM4_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) -#define bFM4_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) -#define bFM4_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) -#define bFM4_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) -#define bFM4_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) -#define bFM4_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) -#define bFM4_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) -#define bFM4_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) -#define bFM4_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) -#define bFM4_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) -#define bFM4_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) -#define bFM4_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) -#define bFM4_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) -#define bFM4_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) -#define bFM4_MFS1_I2C_FCR_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_I2C_FCR_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_I2C_FCR_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_I2C_FCR_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_I2C_FCR_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_I2C_FCR_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_I2C_FCR_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42702280UL)) -#define bFM4_MFS1_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42702284UL)) -#define bFM4_MFS1_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42702288UL)) -#define bFM4_MFS1_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270228CUL)) -#define bFM4_MFS1_I2C_FCR0_FSET *((volatile unsigned int*)(0x42702290UL)) -#define bFM4_MFS1_I2C_FCR0_FLD *((volatile unsigned int*)(0x42702294UL)) -#define bFM4_MFS1_I2C_FCR0_FLST *((volatile unsigned int*)(0x42702298UL)) -#define bFM4_MFS1_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427022A0UL)) -#define bFM4_MFS1_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427022A4UL)) -#define bFM4_MFS1_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427022A8UL)) -#define bFM4_MFS1_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427022ACUL)) -#define bFM4_MFS1_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427022B0UL)) -#define bFM4_MFS1_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270233CUL)) -#define bFM4_MFS1_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42702300UL)) -#define bFM4_MFS1_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42702304UL)) -#define bFM4_MFS1_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42702308UL)) -#define bFM4_MFS1_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270230CUL)) -#define bFM4_MFS1_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42702310UL)) -#define bFM4_MFS1_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42702314UL)) -#define bFM4_MFS1_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42702318UL)) -#define bFM4_MFS1_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270231CUL)) -#define bFM4_MFS1_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42702320UL)) -#define bFM4_MFS1_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42702324UL)) -#define bFM4_MFS1_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42702328UL)) -#define bFM4_MFS1_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270232CUL)) -#define bFM4_MFS1_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42702330UL)) -#define bFM4_MFS1_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42702334UL)) -#define bFM4_MFS1_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42702338UL)) -#define bFM4_MFS1_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270233CUL)) - -/* MFS UART channel 2 registers */ -#define bFM4_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM4_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM4_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM4_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM4_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM4_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM4_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM4_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM4_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM4_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM4_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM4_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM4_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM4_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM4_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM4_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM4_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) -#define bFM4_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) -#define bFM4_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) -#define bFM4_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM4_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) -#define bFM4_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM4_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM4_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM4_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM4_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM4_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) -#define bFM4_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM4_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM4_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM4_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM4_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM4_MFS2_UART_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_UART_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_UART_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_UART_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_UART_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_UART_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_UART_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_UART_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_UART_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_UART_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_UART_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_UART_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_UART_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_UART_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_UART_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_UART_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_UART_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_UART_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) -#define bFM4_MFS2_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) - -/* MFS CSIO channel 2 registers */ -#define bFM4_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM4_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) -#define bFM4_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM4_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) -#define bFM4_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM4_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM4_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM4_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM4_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM4_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM4_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM4_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM4_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) -#define bFM4_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM4_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM4_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM4_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM4_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM4_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM4_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) -#define bFM4_MFS2_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42704098UL)) -#define bFM4_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) -#define bFM4_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM4_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM4_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM4_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM4_MFS2_CSIO_SSR_AWC *((volatile unsigned int*)(0x427040B0UL)) -#define bFM4_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM4_MFS2_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_CSIO_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_CSIO_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_CSIO_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42704380UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42704384UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42704388UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270438CUL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42704390UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42704394UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42704398UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270439CUL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427043A0UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427043A4UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427043A8UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427043ACUL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427043B0UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427043B4UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427043B8UL)) -#define bFM4_MFS2_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427043BCUL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42704400UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42704404UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42704408UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270440CUL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42704410UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42704414UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42704418UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270441CUL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42704420UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42704424UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42704428UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270442CUL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42704430UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42704434UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42704438UL)) -#define bFM4_MFS2_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270443CUL)) -#define bFM4_MFS2_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42704480UL)) -#define bFM4_MFS2_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42704484UL)) -#define bFM4_MFS2_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42704488UL)) -#define bFM4_MFS2_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270448CUL)) -#define bFM4_MFS2_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42704490UL)) -#define bFM4_MFS2_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42704498UL)) -#define bFM4_MFS2_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270449CUL)) -#define bFM4_MFS2_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427044A0UL)) -#define bFM4_MFS2_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427044ACUL)) -#define bFM4_MFS2_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427044B0UL)) -#define bFM4_MFS2_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427044B4UL)) -#define bFM4_MFS2_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42704500UL)) -#define bFM4_MFS2_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42704504UL)) -#define bFM4_MFS2_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42704508UL)) -#define bFM4_MFS2_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270450CUL)) -#define bFM4_MFS2_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42704510UL)) -#define bFM4_MFS2_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42704514UL)) -#define bFM4_MFS2_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42704518UL)) -#define bFM4_MFS2_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270451CUL)) -#define bFM4_MFS2_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42704520UL)) -#define bFM4_MFS2_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42704524UL)) -#define bFM4_MFS2_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42704528UL)) -#define bFM4_MFS2_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270452CUL)) -#define bFM4_MFS2_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42704530UL)) -#define bFM4_MFS2_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42704534UL)) -#define bFM4_MFS2_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42704538UL)) -#define bFM4_MFS2_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270453CUL)) -#define bFM4_MFS2_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42704580UL)) -#define bFM4_MFS2_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42704584UL)) -#define bFM4_MFS2_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42704588UL)) -#define bFM4_MFS2_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270458CUL)) -#define bFM4_MFS2_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42704590UL)) -#define bFM4_MFS2_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42704594UL)) -#define bFM4_MFS2_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42704598UL)) -#define bFM4_MFS2_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270459CUL)) -#define bFM4_MFS2_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427045A0UL)) -#define bFM4_MFS2_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427045A4UL)) -#define bFM4_MFS2_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427045A8UL)) -#define bFM4_MFS2_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427045ACUL)) -#define bFM4_MFS2_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427045B0UL)) -#define bFM4_MFS2_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427045B4UL)) -#define bFM4_MFS2_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427045B8UL)) -#define bFM4_MFS2_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427045BCUL)) -#define bFM4_MFS2_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42704600UL)) -#define bFM4_MFS2_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42704604UL)) -#define bFM4_MFS2_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42704614UL)) -#define bFM4_MFS2_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42704618UL)) -#define bFM4_MFS2_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270461CUL)) -#define bFM4_MFS2_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42704620UL)) -#define bFM4_MFS2_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42704624UL)) - -/* MFS LIN channel 2 registers */ -#define bFM4_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM4_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM4_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM4_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM4_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM4_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM4_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM4_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM4_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM4_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM4_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM4_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) -#define bFM4_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM4_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM4_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM4_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM4_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) -#define bFM4_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM4_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) -#define bFM4_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM4_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM4_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM4_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM4_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM4_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM4_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) -#define bFM4_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM4_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM4_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM4_MFS2_LIN_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_LIN_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_LIN_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_LIN_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_LIN_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_LIN_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_LIN_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_LIN_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_LIN_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_LIN_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) -#define bFM4_MFS2_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) - -/* MFS I2C channel 2 registers */ -#define bFM4_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) -#define bFM4_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) -#define bFM4_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM4_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM4_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM4_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) -#define bFM4_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) -#define bFM4_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) -#define bFM4_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM4_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) -#define bFM4_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) -#define bFM4_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) -#define bFM4_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) -#define bFM4_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) -#define bFM4_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) -#define bFM4_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) -#define bFM4_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) -#define bFM4_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) -#define bFM4_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) -#define bFM4_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) -#define bFM4_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) -#define bFM4_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) -#define bFM4_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM4_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM4_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM4_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM4_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM4_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) -#define bFM4_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) -#define bFM4_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM4_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) -#define bFM4_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) -#define bFM4_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) -#define bFM4_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) -#define bFM4_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) -#define bFM4_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) -#define bFM4_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) -#define bFM4_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) -#define bFM4_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) -#define bFM4_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) -#define bFM4_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) -#define bFM4_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) -#define bFM4_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) -#define bFM4_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) -#define bFM4_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) -#define bFM4_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) -#define bFM4_MFS2_I2C_FCR_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_I2C_FCR_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_I2C_FCR_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_I2C_FCR_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_I2C_FCR_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_I2C_FCR_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_I2C_FCR_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42704280UL)) -#define bFM4_MFS2_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42704284UL)) -#define bFM4_MFS2_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42704288UL)) -#define bFM4_MFS2_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270428CUL)) -#define bFM4_MFS2_I2C_FCR0_FSET *((volatile unsigned int*)(0x42704290UL)) -#define bFM4_MFS2_I2C_FCR0_FLD *((volatile unsigned int*)(0x42704294UL)) -#define bFM4_MFS2_I2C_FCR0_FLST *((volatile unsigned int*)(0x42704298UL)) -#define bFM4_MFS2_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427042A0UL)) -#define bFM4_MFS2_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427042A4UL)) -#define bFM4_MFS2_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427042A8UL)) -#define bFM4_MFS2_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427042ACUL)) -#define bFM4_MFS2_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427042B0UL)) -#define bFM4_MFS2_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270433CUL)) -#define bFM4_MFS2_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42704300UL)) -#define bFM4_MFS2_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42704304UL)) -#define bFM4_MFS2_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42704308UL)) -#define bFM4_MFS2_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270430CUL)) -#define bFM4_MFS2_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42704310UL)) -#define bFM4_MFS2_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42704314UL)) -#define bFM4_MFS2_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42704318UL)) -#define bFM4_MFS2_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270431CUL)) -#define bFM4_MFS2_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42704320UL)) -#define bFM4_MFS2_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42704324UL)) -#define bFM4_MFS2_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42704328UL)) -#define bFM4_MFS2_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270432CUL)) -#define bFM4_MFS2_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42704330UL)) -#define bFM4_MFS2_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42704334UL)) -#define bFM4_MFS2_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42704338UL)) -#define bFM4_MFS2_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270433CUL)) - -/* MFS UART channel 3 registers */ -#define bFM4_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM4_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM4_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM4_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM4_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM4_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM4_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM4_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM4_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM4_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM4_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM4_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM4_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM4_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM4_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM4_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM4_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) -#define bFM4_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) -#define bFM4_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) -#define bFM4_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM4_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) -#define bFM4_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM4_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM4_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM4_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM4_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM4_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) -#define bFM4_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM4_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM4_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM4_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM4_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM4_MFS3_UART_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_UART_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_UART_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_UART_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_UART_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_UART_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_UART_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_UART_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_UART_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_UART_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_UART_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_UART_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_UART_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_UART_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_UART_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_UART_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_UART_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_UART_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) -#define bFM4_MFS3_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) - -/* MFS CSIO channel 3 registers */ -#define bFM4_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM4_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) -#define bFM4_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM4_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) -#define bFM4_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM4_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM4_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM4_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM4_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM4_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM4_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM4_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM4_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) -#define bFM4_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM4_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM4_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM4_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM4_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM4_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM4_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) -#define bFM4_MFS3_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42706098UL)) -#define bFM4_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) -#define bFM4_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM4_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM4_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM4_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM4_MFS3_CSIO_SSR_AWC *((volatile unsigned int*)(0x427060B0UL)) -#define bFM4_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM4_MFS3_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_CSIO_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_CSIO_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_CSIO_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42706380UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42706384UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42706388UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270638CUL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42706390UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42706394UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42706398UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270639CUL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427063A0UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427063A4UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427063A8UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427063ACUL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427063B0UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427063B4UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427063B8UL)) -#define bFM4_MFS3_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427063BCUL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42706400UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42706404UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42706408UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270640CUL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42706410UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42706414UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42706418UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270641CUL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42706420UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42706424UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42706428UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270642CUL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42706430UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42706434UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42706438UL)) -#define bFM4_MFS3_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270643CUL)) -#define bFM4_MFS3_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42706480UL)) -#define bFM4_MFS3_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42706484UL)) -#define bFM4_MFS3_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42706488UL)) -#define bFM4_MFS3_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270648CUL)) -#define bFM4_MFS3_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42706490UL)) -#define bFM4_MFS3_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42706498UL)) -#define bFM4_MFS3_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270649CUL)) -#define bFM4_MFS3_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427064A0UL)) -#define bFM4_MFS3_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427064ACUL)) -#define bFM4_MFS3_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427064B0UL)) -#define bFM4_MFS3_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427064B4UL)) -#define bFM4_MFS3_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42706500UL)) -#define bFM4_MFS3_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42706504UL)) -#define bFM4_MFS3_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42706508UL)) -#define bFM4_MFS3_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270650CUL)) -#define bFM4_MFS3_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42706510UL)) -#define bFM4_MFS3_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42706514UL)) -#define bFM4_MFS3_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42706518UL)) -#define bFM4_MFS3_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270651CUL)) -#define bFM4_MFS3_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42706520UL)) -#define bFM4_MFS3_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42706524UL)) -#define bFM4_MFS3_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42706528UL)) -#define bFM4_MFS3_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270652CUL)) -#define bFM4_MFS3_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42706530UL)) -#define bFM4_MFS3_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42706534UL)) -#define bFM4_MFS3_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42706538UL)) -#define bFM4_MFS3_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270653CUL)) -#define bFM4_MFS3_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42706580UL)) -#define bFM4_MFS3_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42706584UL)) -#define bFM4_MFS3_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42706588UL)) -#define bFM4_MFS3_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270658CUL)) -#define bFM4_MFS3_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42706590UL)) -#define bFM4_MFS3_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42706594UL)) -#define bFM4_MFS3_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42706598UL)) -#define bFM4_MFS3_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270659CUL)) -#define bFM4_MFS3_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427065A0UL)) -#define bFM4_MFS3_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427065A4UL)) -#define bFM4_MFS3_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427065A8UL)) -#define bFM4_MFS3_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427065ACUL)) -#define bFM4_MFS3_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427065B0UL)) -#define bFM4_MFS3_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427065B4UL)) -#define bFM4_MFS3_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427065B8UL)) -#define bFM4_MFS3_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427065BCUL)) -#define bFM4_MFS3_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42706600UL)) -#define bFM4_MFS3_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42706604UL)) -#define bFM4_MFS3_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42706614UL)) -#define bFM4_MFS3_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42706618UL)) -#define bFM4_MFS3_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270661CUL)) -#define bFM4_MFS3_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42706620UL)) -#define bFM4_MFS3_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42706624UL)) - -/* MFS LIN channel 3 registers */ -#define bFM4_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM4_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM4_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM4_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM4_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM4_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM4_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM4_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM4_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM4_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM4_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM4_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) -#define bFM4_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM4_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM4_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM4_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM4_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) -#define bFM4_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM4_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) -#define bFM4_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM4_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM4_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM4_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM4_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM4_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM4_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) -#define bFM4_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM4_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM4_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM4_MFS3_LIN_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_LIN_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_LIN_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_LIN_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_LIN_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_LIN_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_LIN_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_LIN_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_LIN_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_LIN_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) -#define bFM4_MFS3_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) - -/* MFS I2C channel 3 registers */ -#define bFM4_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) -#define bFM4_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) -#define bFM4_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM4_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM4_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM4_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) -#define bFM4_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) -#define bFM4_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) -#define bFM4_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM4_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) -#define bFM4_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) -#define bFM4_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) -#define bFM4_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) -#define bFM4_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) -#define bFM4_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) -#define bFM4_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) -#define bFM4_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) -#define bFM4_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) -#define bFM4_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) -#define bFM4_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) -#define bFM4_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) -#define bFM4_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) -#define bFM4_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM4_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM4_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM4_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM4_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM4_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) -#define bFM4_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) -#define bFM4_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM4_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) -#define bFM4_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) -#define bFM4_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) -#define bFM4_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) -#define bFM4_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) -#define bFM4_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) -#define bFM4_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) -#define bFM4_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) -#define bFM4_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) -#define bFM4_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) -#define bFM4_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) -#define bFM4_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) -#define bFM4_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) -#define bFM4_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) -#define bFM4_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) -#define bFM4_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) -#define bFM4_MFS3_I2C_FCR_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_I2C_FCR_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_I2C_FCR_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_I2C_FCR_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_I2C_FCR_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_I2C_FCR_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_I2C_FCR_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42706280UL)) -#define bFM4_MFS3_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42706284UL)) -#define bFM4_MFS3_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42706288UL)) -#define bFM4_MFS3_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270628CUL)) -#define bFM4_MFS3_I2C_FCR0_FSET *((volatile unsigned int*)(0x42706290UL)) -#define bFM4_MFS3_I2C_FCR0_FLD *((volatile unsigned int*)(0x42706294UL)) -#define bFM4_MFS3_I2C_FCR0_FLST *((volatile unsigned int*)(0x42706298UL)) -#define bFM4_MFS3_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427062A0UL)) -#define bFM4_MFS3_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427062A4UL)) -#define bFM4_MFS3_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427062A8UL)) -#define bFM4_MFS3_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427062ACUL)) -#define bFM4_MFS3_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427062B0UL)) -#define bFM4_MFS3_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270633CUL)) -#define bFM4_MFS3_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42706300UL)) -#define bFM4_MFS3_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42706304UL)) -#define bFM4_MFS3_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42706308UL)) -#define bFM4_MFS3_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270630CUL)) -#define bFM4_MFS3_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42706310UL)) -#define bFM4_MFS3_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42706314UL)) -#define bFM4_MFS3_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42706318UL)) -#define bFM4_MFS3_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270631CUL)) -#define bFM4_MFS3_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42706320UL)) -#define bFM4_MFS3_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42706324UL)) -#define bFM4_MFS3_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42706328UL)) -#define bFM4_MFS3_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270632CUL)) -#define bFM4_MFS3_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42706330UL)) -#define bFM4_MFS3_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42706334UL)) -#define bFM4_MFS3_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42706338UL)) -#define bFM4_MFS3_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270633CUL)) - -/* MFS UART channel 4 registers */ -#define bFM4_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM4_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM4_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM4_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM4_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM4_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM4_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM4_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM4_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM4_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM4_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM4_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM4_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM4_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM4_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM4_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM4_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) -#define bFM4_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) -#define bFM4_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) -#define bFM4_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM4_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) -#define bFM4_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM4_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM4_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM4_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM4_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM4_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) -#define bFM4_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM4_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM4_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM4_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM4_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM4_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_UART_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM4_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* MFS CSIO channel 4 registers */ -#define bFM4_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM4_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) -#define bFM4_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM4_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) -#define bFM4_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM4_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM4_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM4_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM4_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM4_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM4_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM4_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM4_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) -#define bFM4_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM4_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM4_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM4_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM4_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM4_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM4_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) -#define bFM4_MFS4_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42708098UL)) -#define bFM4_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) -#define bFM4_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM4_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM4_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM4_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM4_MFS4_CSIO_SSR_AWC *((volatile unsigned int*)(0x427080B0UL)) -#define bFM4_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM4_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42708380UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42708384UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42708388UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270838CUL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42708390UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42708394UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42708398UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270839CUL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427083A0UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427083A4UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427083A8UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427083ACUL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427083B0UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427083B4UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427083B8UL)) -#define bFM4_MFS4_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427083BCUL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42708400UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42708404UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42708408UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270840CUL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42708410UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42708414UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42708418UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270841CUL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42708420UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42708424UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42708428UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270842CUL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42708430UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42708434UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42708438UL)) -#define bFM4_MFS4_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270843CUL)) -#define bFM4_MFS4_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42708480UL)) -#define bFM4_MFS4_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42708484UL)) -#define bFM4_MFS4_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42708488UL)) -#define bFM4_MFS4_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270848CUL)) -#define bFM4_MFS4_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42708490UL)) -#define bFM4_MFS4_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42708498UL)) -#define bFM4_MFS4_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270849CUL)) -#define bFM4_MFS4_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427084A0UL)) -#define bFM4_MFS4_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427084ACUL)) -#define bFM4_MFS4_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427084B0UL)) -#define bFM4_MFS4_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427084B4UL)) -#define bFM4_MFS4_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42708500UL)) -#define bFM4_MFS4_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42708504UL)) -#define bFM4_MFS4_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42708508UL)) -#define bFM4_MFS4_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270850CUL)) -#define bFM4_MFS4_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42708510UL)) -#define bFM4_MFS4_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42708514UL)) -#define bFM4_MFS4_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42708518UL)) -#define bFM4_MFS4_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270851CUL)) -#define bFM4_MFS4_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42708520UL)) -#define bFM4_MFS4_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42708524UL)) -#define bFM4_MFS4_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42708528UL)) -#define bFM4_MFS4_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270852CUL)) -#define bFM4_MFS4_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42708530UL)) -#define bFM4_MFS4_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42708534UL)) -#define bFM4_MFS4_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42708538UL)) -#define bFM4_MFS4_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270853CUL)) -#define bFM4_MFS4_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42708580UL)) -#define bFM4_MFS4_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42708584UL)) -#define bFM4_MFS4_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42708588UL)) -#define bFM4_MFS4_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270858CUL)) -#define bFM4_MFS4_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42708590UL)) -#define bFM4_MFS4_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42708594UL)) -#define bFM4_MFS4_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42708598UL)) -#define bFM4_MFS4_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270859CUL)) -#define bFM4_MFS4_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427085A0UL)) -#define bFM4_MFS4_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427085A4UL)) -#define bFM4_MFS4_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427085A8UL)) -#define bFM4_MFS4_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427085ACUL)) -#define bFM4_MFS4_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427085B0UL)) -#define bFM4_MFS4_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427085B4UL)) -#define bFM4_MFS4_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427085B8UL)) -#define bFM4_MFS4_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427085BCUL)) -#define bFM4_MFS4_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42708600UL)) -#define bFM4_MFS4_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42708604UL)) -#define bFM4_MFS4_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42708614UL)) -#define bFM4_MFS4_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42708618UL)) -#define bFM4_MFS4_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270861CUL)) -#define bFM4_MFS4_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42708620UL)) -#define bFM4_MFS4_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42708624UL)) - -/* MFS LIN channel 4 registers */ -#define bFM4_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM4_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM4_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM4_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM4_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM4_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM4_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM4_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM4_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM4_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM4_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM4_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) -#define bFM4_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM4_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM4_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM4_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM4_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) -#define bFM4_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM4_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) -#define bFM4_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM4_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM4_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM4_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM4_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM4_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM4_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) -#define bFM4_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM4_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM4_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM4_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM4_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* MFS I2C channel 4 registers */ -#define bFM4_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) -#define bFM4_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) -#define bFM4_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM4_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM4_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM4_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) -#define bFM4_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) -#define bFM4_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) -#define bFM4_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM4_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) -#define bFM4_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) -#define bFM4_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) -#define bFM4_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) -#define bFM4_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) -#define bFM4_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) -#define bFM4_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) -#define bFM4_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) -#define bFM4_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) -#define bFM4_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) -#define bFM4_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) -#define bFM4_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) -#define bFM4_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) -#define bFM4_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM4_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM4_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM4_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM4_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM4_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) -#define bFM4_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) -#define bFM4_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM4_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) -#define bFM4_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) -#define bFM4_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) -#define bFM4_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) -#define bFM4_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) -#define bFM4_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) -#define bFM4_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) -#define bFM4_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) -#define bFM4_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) -#define bFM4_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) -#define bFM4_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) -#define bFM4_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) -#define bFM4_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) -#define bFM4_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) -#define bFM4_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) -#define bFM4_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) -#define bFM4_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM4_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM4_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM4_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM4_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM4_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM4_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM4_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM4_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM4_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM4_MFS4_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM4_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM4_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM4_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM4_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM4_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM4_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM4_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM4_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM4_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM4_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM4_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM4_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM4_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM4_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM4_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM4_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM4_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM4_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* MFS UART channel 5 registers */ -#define bFM4_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM4_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM4_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM4_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM4_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM4_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM4_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM4_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM4_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM4_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM4_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM4_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM4_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM4_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM4_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM4_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM4_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM4_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) -#define bFM4_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) -#define bFM4_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM4_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM4_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM4_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM4_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM4_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM4_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM4_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM4_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM4_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM4_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM4_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM4_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM4_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_UART_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM4_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* MFS CSIO channel 5 registers */ -#define bFM4_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM4_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) -#define bFM4_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM4_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM4_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM4_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM4_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM4_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM4_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM4_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM4_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM4_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM4_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) -#define bFM4_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM4_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM4_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM4_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM4_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM4_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM4_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) -#define bFM4_MFS5_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4270A098UL)) -#define bFM4_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM4_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM4_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM4_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM4_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM4_MFS5_CSIO_SSR_AWC *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM4_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM4_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4270A380UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4270A384UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4270A388UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270A38CUL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4270A390UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4270A394UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4270A398UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270A39CUL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4270A3A0UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4270A3A4UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4270A3A8UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4270A3ACUL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4270A3B0UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4270A3B4UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4270A3B8UL)) -#define bFM4_MFS5_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4270A3BCUL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4270A400UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4270A404UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4270A408UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270A40CUL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4270A410UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4270A414UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4270A418UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270A41CUL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4270A420UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4270A424UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4270A428UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270A42CUL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4270A430UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4270A434UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4270A438UL)) -#define bFM4_MFS5_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270A43CUL)) -#define bFM4_MFS5_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4270A480UL)) -#define bFM4_MFS5_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4270A484UL)) -#define bFM4_MFS5_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4270A488UL)) -#define bFM4_MFS5_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270A48CUL)) -#define bFM4_MFS5_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4270A490UL)) -#define bFM4_MFS5_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4270A498UL)) -#define bFM4_MFS5_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270A49CUL)) -#define bFM4_MFS5_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4270A4A0UL)) -#define bFM4_MFS5_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4270A4ACUL)) -#define bFM4_MFS5_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4270A4B0UL)) -#define bFM4_MFS5_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4270A4B4UL)) -#define bFM4_MFS5_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4270A500UL)) -#define bFM4_MFS5_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4270A504UL)) -#define bFM4_MFS5_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4270A508UL)) -#define bFM4_MFS5_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270A50CUL)) -#define bFM4_MFS5_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4270A510UL)) -#define bFM4_MFS5_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4270A514UL)) -#define bFM4_MFS5_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4270A518UL)) -#define bFM4_MFS5_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270A51CUL)) -#define bFM4_MFS5_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4270A520UL)) -#define bFM4_MFS5_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4270A524UL)) -#define bFM4_MFS5_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4270A528UL)) -#define bFM4_MFS5_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270A52CUL)) -#define bFM4_MFS5_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4270A530UL)) -#define bFM4_MFS5_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4270A534UL)) -#define bFM4_MFS5_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4270A538UL)) -#define bFM4_MFS5_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270A53CUL)) -#define bFM4_MFS5_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4270A580UL)) -#define bFM4_MFS5_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4270A584UL)) -#define bFM4_MFS5_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4270A588UL)) -#define bFM4_MFS5_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270A58CUL)) -#define bFM4_MFS5_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4270A590UL)) -#define bFM4_MFS5_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4270A594UL)) -#define bFM4_MFS5_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4270A598UL)) -#define bFM4_MFS5_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270A59CUL)) -#define bFM4_MFS5_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4270A5A0UL)) -#define bFM4_MFS5_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4270A5A4UL)) -#define bFM4_MFS5_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4270A5A8UL)) -#define bFM4_MFS5_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4270A5ACUL)) -#define bFM4_MFS5_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4270A5B0UL)) -#define bFM4_MFS5_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4270A5B4UL)) -#define bFM4_MFS5_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4270A5B8UL)) -#define bFM4_MFS5_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4270A5BCUL)) -#define bFM4_MFS5_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4270A600UL)) -#define bFM4_MFS5_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4270A604UL)) -#define bFM4_MFS5_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4270A614UL)) -#define bFM4_MFS5_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4270A618UL)) -#define bFM4_MFS5_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270A61CUL)) -#define bFM4_MFS5_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4270A620UL)) -#define bFM4_MFS5_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4270A624UL)) - -/* MFS LIN channel 5 registers */ -#define bFM4_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM4_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM4_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM4_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM4_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM4_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM4_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM4_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM4_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM4_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM4_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM4_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) -#define bFM4_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM4_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM4_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM4_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM4_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM4_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM4_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) -#define bFM4_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM4_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM4_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM4_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM4_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM4_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM4_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM4_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM4_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM4_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM4_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM4_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* MFS I2C channel 5 registers */ -#define bFM4_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) -#define bFM4_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM4_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM4_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM4_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM4_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) -#define bFM4_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) -#define bFM4_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM4_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM4_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) -#define bFM4_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) -#define bFM4_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) -#define bFM4_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) -#define bFM4_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM4_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) -#define bFM4_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) -#define bFM4_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) -#define bFM4_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM4_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) -#define bFM4_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) -#define bFM4_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) -#define bFM4_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM4_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM4_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM4_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM4_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM4_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM4_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM4_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) -#define bFM4_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM4_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) -#define bFM4_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) -#define bFM4_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) -#define bFM4_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) -#define bFM4_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) -#define bFM4_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) -#define bFM4_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) -#define bFM4_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) -#define bFM4_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) -#define bFM4_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) -#define bFM4_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) -#define bFM4_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) -#define bFM4_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) -#define bFM4_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) -#define bFM4_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) -#define bFM4_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) -#define bFM4_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM4_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM4_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM4_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM4_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM4_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM4_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM4_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM4_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM4_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM4_MFS5_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM4_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM4_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM4_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM4_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM4_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM4_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM4_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM4_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM4_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM4_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM4_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM4_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM4_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM4_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM4_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM4_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM4_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM4_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* MFS UART channel 6 registers */ -#define bFM4_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM4_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM4_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM4_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM4_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM4_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM4_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM4_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM4_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM4_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM4_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM4_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM4_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM4_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM4_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM4_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM4_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM4_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) -#define bFM4_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) -#define bFM4_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM4_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM4_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM4_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM4_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM4_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM4_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM4_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM4_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM4_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM4_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM4_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM4_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM4_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_UART_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM4_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* MFS CSIO channel 6 registers */ -#define bFM4_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM4_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) -#define bFM4_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM4_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM4_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM4_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM4_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM4_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM4_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM4_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM4_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM4_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM4_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) -#define bFM4_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM4_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM4_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM4_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM4_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM4_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM4_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) -#define bFM4_MFS6_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4270C098UL)) -#define bFM4_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM4_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM4_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM4_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM4_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM4_MFS6_CSIO_SSR_AWC *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM4_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM4_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4270C380UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4270C384UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4270C388UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270C38CUL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4270C390UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4270C394UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4270C398UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270C39CUL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4270C3A0UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4270C3A4UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4270C3A8UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4270C3ACUL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4270C3B0UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4270C3B4UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4270C3B8UL)) -#define bFM4_MFS6_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4270C3BCUL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4270C400UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4270C404UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4270C408UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270C40CUL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4270C410UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4270C414UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4270C418UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270C41CUL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4270C420UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4270C424UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4270C428UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270C42CUL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4270C430UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4270C434UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4270C438UL)) -#define bFM4_MFS6_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270C43CUL)) -#define bFM4_MFS6_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4270C480UL)) -#define bFM4_MFS6_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4270C484UL)) -#define bFM4_MFS6_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4270C488UL)) -#define bFM4_MFS6_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270C48CUL)) -#define bFM4_MFS6_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4270C490UL)) -#define bFM4_MFS6_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4270C498UL)) -#define bFM4_MFS6_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270C49CUL)) -#define bFM4_MFS6_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4270C4A0UL)) -#define bFM4_MFS6_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4270C4ACUL)) -#define bFM4_MFS6_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4270C4B0UL)) -#define bFM4_MFS6_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4270C4B4UL)) -#define bFM4_MFS6_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4270C500UL)) -#define bFM4_MFS6_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4270C504UL)) -#define bFM4_MFS6_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4270C508UL)) -#define bFM4_MFS6_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270C50CUL)) -#define bFM4_MFS6_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4270C510UL)) -#define bFM4_MFS6_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4270C514UL)) -#define bFM4_MFS6_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4270C518UL)) -#define bFM4_MFS6_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270C51CUL)) -#define bFM4_MFS6_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4270C520UL)) -#define bFM4_MFS6_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4270C524UL)) -#define bFM4_MFS6_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4270C528UL)) -#define bFM4_MFS6_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270C52CUL)) -#define bFM4_MFS6_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4270C530UL)) -#define bFM4_MFS6_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4270C534UL)) -#define bFM4_MFS6_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4270C538UL)) -#define bFM4_MFS6_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270C53CUL)) -#define bFM4_MFS6_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4270C580UL)) -#define bFM4_MFS6_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4270C584UL)) -#define bFM4_MFS6_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4270C588UL)) -#define bFM4_MFS6_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270C58CUL)) -#define bFM4_MFS6_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4270C590UL)) -#define bFM4_MFS6_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4270C594UL)) -#define bFM4_MFS6_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4270C598UL)) -#define bFM4_MFS6_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270C59CUL)) -#define bFM4_MFS6_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4270C5A0UL)) -#define bFM4_MFS6_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4270C5A4UL)) -#define bFM4_MFS6_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4270C5A8UL)) -#define bFM4_MFS6_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4270C5ACUL)) -#define bFM4_MFS6_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4270C5B0UL)) -#define bFM4_MFS6_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4270C5B4UL)) -#define bFM4_MFS6_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4270C5B8UL)) -#define bFM4_MFS6_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4270C5BCUL)) -#define bFM4_MFS6_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4270C600UL)) -#define bFM4_MFS6_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4270C604UL)) -#define bFM4_MFS6_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4270C614UL)) -#define bFM4_MFS6_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4270C618UL)) -#define bFM4_MFS6_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270C61CUL)) -#define bFM4_MFS6_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4270C620UL)) -#define bFM4_MFS6_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4270C624UL)) - -/* MFS LIN channel 6 registers */ -#define bFM4_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM4_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM4_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM4_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM4_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM4_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM4_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM4_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM4_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM4_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM4_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM4_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) -#define bFM4_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM4_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM4_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM4_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM4_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM4_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM4_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) -#define bFM4_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM4_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM4_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM4_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM4_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM4_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM4_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM4_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM4_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM4_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM4_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM4_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* MFS I2C channel 6 registers */ -#define bFM4_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) -#define bFM4_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM4_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM4_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM4_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM4_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) -#define bFM4_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) -#define bFM4_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM4_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM4_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) -#define bFM4_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) -#define bFM4_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) -#define bFM4_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) -#define bFM4_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM4_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) -#define bFM4_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) -#define bFM4_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) -#define bFM4_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM4_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) -#define bFM4_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) -#define bFM4_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) -#define bFM4_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM4_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM4_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM4_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM4_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM4_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM4_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM4_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) -#define bFM4_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM4_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) -#define bFM4_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) -#define bFM4_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) -#define bFM4_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) -#define bFM4_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) -#define bFM4_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) -#define bFM4_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) -#define bFM4_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) -#define bFM4_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) -#define bFM4_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) -#define bFM4_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) -#define bFM4_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) -#define bFM4_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) -#define bFM4_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) -#define bFM4_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) -#define bFM4_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) -#define bFM4_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM4_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM4_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM4_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM4_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM4_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM4_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM4_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM4_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM4_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM4_MFS6_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM4_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM4_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM4_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM4_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM4_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM4_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM4_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM4_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM4_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM4_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM4_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM4_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM4_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM4_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM4_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM4_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM4_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM4_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* MFS UART channel 7 registers */ -#define bFM4_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM4_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM4_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM4_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM4_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM4_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM4_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM4_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM4_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM4_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM4_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM4_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM4_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM4_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM4_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM4_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM4_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM4_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) -#define bFM4_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) -#define bFM4_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM4_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM4_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM4_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM4_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM4_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM4_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM4_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM4_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM4_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM4_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM4_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM4_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM4_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_UART_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM4_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* MFS CSIO channel 7 registers */ -#define bFM4_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM4_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) -#define bFM4_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM4_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM4_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM4_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM4_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM4_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM4_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM4_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM4_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM4_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM4_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) -#define bFM4_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM4_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM4_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM4_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM4_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM4_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM4_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) -#define bFM4_MFS7_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4270E098UL)) -#define bFM4_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM4_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM4_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM4_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM4_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM4_MFS7_CSIO_SSR_AWC *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM4_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM4_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4270E380UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4270E384UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4270E388UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4270E38CUL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4270E390UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4270E394UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4270E398UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4270E39CUL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4270E3A0UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4270E3A4UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4270E3A8UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4270E3ACUL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4270E3B0UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4270E3B4UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4270E3B8UL)) -#define bFM4_MFS7_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4270E3BCUL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4270E400UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4270E404UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4270E408UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4270E40CUL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4270E410UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4270E414UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4270E418UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4270E41CUL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4270E420UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4270E424UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4270E428UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4270E42CUL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4270E430UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4270E434UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4270E438UL)) -#define bFM4_MFS7_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4270E43CUL)) -#define bFM4_MFS7_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4270E480UL)) -#define bFM4_MFS7_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4270E484UL)) -#define bFM4_MFS7_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4270E488UL)) -#define bFM4_MFS7_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4270E48CUL)) -#define bFM4_MFS7_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4270E490UL)) -#define bFM4_MFS7_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4270E498UL)) -#define bFM4_MFS7_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4270E49CUL)) -#define bFM4_MFS7_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4270E4A0UL)) -#define bFM4_MFS7_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4270E4ACUL)) -#define bFM4_MFS7_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4270E4B0UL)) -#define bFM4_MFS7_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4270E4B4UL)) -#define bFM4_MFS7_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4270E500UL)) -#define bFM4_MFS7_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4270E504UL)) -#define bFM4_MFS7_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4270E508UL)) -#define bFM4_MFS7_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4270E50CUL)) -#define bFM4_MFS7_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4270E510UL)) -#define bFM4_MFS7_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4270E514UL)) -#define bFM4_MFS7_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4270E518UL)) -#define bFM4_MFS7_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4270E51CUL)) -#define bFM4_MFS7_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4270E520UL)) -#define bFM4_MFS7_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4270E524UL)) -#define bFM4_MFS7_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4270E528UL)) -#define bFM4_MFS7_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4270E52CUL)) -#define bFM4_MFS7_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4270E530UL)) -#define bFM4_MFS7_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4270E534UL)) -#define bFM4_MFS7_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4270E538UL)) -#define bFM4_MFS7_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4270E53CUL)) -#define bFM4_MFS7_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4270E580UL)) -#define bFM4_MFS7_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4270E584UL)) -#define bFM4_MFS7_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4270E588UL)) -#define bFM4_MFS7_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4270E58CUL)) -#define bFM4_MFS7_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4270E590UL)) -#define bFM4_MFS7_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4270E594UL)) -#define bFM4_MFS7_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4270E598UL)) -#define bFM4_MFS7_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4270E59CUL)) -#define bFM4_MFS7_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4270E5A0UL)) -#define bFM4_MFS7_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4270E5A4UL)) -#define bFM4_MFS7_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4270E5A8UL)) -#define bFM4_MFS7_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4270E5ACUL)) -#define bFM4_MFS7_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4270E5B0UL)) -#define bFM4_MFS7_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4270E5B4UL)) -#define bFM4_MFS7_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4270E5B8UL)) -#define bFM4_MFS7_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4270E5BCUL)) -#define bFM4_MFS7_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4270E600UL)) -#define bFM4_MFS7_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4270E604UL)) -#define bFM4_MFS7_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4270E614UL)) -#define bFM4_MFS7_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4270E618UL)) -#define bFM4_MFS7_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4270E61CUL)) -#define bFM4_MFS7_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4270E620UL)) -#define bFM4_MFS7_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4270E624UL)) - -/* MFS LIN channel 7 registers */ -#define bFM4_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM4_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM4_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM4_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM4_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM4_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM4_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM4_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM4_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM4_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM4_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM4_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) -#define bFM4_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM4_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM4_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM4_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM4_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM4_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM4_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) -#define bFM4_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM4_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM4_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM4_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM4_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM4_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM4_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM4_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM4_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM4_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM4_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM4_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* MFS I2C channel 7 registers */ -#define bFM4_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) -#define bFM4_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM4_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM4_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM4_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM4_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) -#define bFM4_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) -#define bFM4_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM4_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM4_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) -#define bFM4_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) -#define bFM4_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) -#define bFM4_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) -#define bFM4_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM4_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) -#define bFM4_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) -#define bFM4_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) -#define bFM4_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM4_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) -#define bFM4_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) -#define bFM4_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) -#define bFM4_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM4_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM4_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM4_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM4_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM4_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM4_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM4_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) -#define bFM4_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM4_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) -#define bFM4_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) -#define bFM4_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) -#define bFM4_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) -#define bFM4_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) -#define bFM4_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) -#define bFM4_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) -#define bFM4_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) -#define bFM4_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) -#define bFM4_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) -#define bFM4_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) -#define bFM4_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) -#define bFM4_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) -#define bFM4_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) -#define bFM4_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) -#define bFM4_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) -#define bFM4_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM4_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM4_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM4_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM4_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM4_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM4_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM4_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM4_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM4_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM4_MFS7_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM4_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM4_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM4_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM4_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM4_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM4_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM4_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM4_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM4_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM4_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM4_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM4_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM4_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM4_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM4_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM4_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM4_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM4_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* MFS UART channel 8 registers */ -#define bFM4_MFS8_UART_SMR_SOE *((volatile unsigned int*)(0x42710000UL)) -#define bFM4_MFS8_UART_SMR_BDS *((volatile unsigned int*)(0x42710008UL)) -#define bFM4_MFS8_UART_SMR_SBL *((volatile unsigned int*)(0x4271000CUL)) -#define bFM4_MFS8_UART_SMR_WUCR *((volatile unsigned int*)(0x42710010UL)) -#define bFM4_MFS8_UART_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) -#define bFM4_MFS8_UART_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) -#define bFM4_MFS8_UART_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) -#define bFM4_MFS8_UART_SCR_TXE *((volatile unsigned int*)(0x42710020UL)) -#define bFM4_MFS8_UART_SCR_RXE *((volatile unsigned int*)(0x42710024UL)) -#define bFM4_MFS8_UART_SCR_TBIE *((volatile unsigned int*)(0x42710028UL)) -#define bFM4_MFS8_UART_SCR_TIE *((volatile unsigned int*)(0x4271002CUL)) -#define bFM4_MFS8_UART_SCR_RIE *((volatile unsigned int*)(0x42710030UL)) -#define bFM4_MFS8_UART_SCR_UPCL *((volatile unsigned int*)(0x4271003CUL)) -#define bFM4_MFS8_UART_ESCR_L0 *((volatile unsigned int*)(0x42710080UL)) -#define bFM4_MFS8_UART_ESCR_L1 *((volatile unsigned int*)(0x42710084UL)) -#define bFM4_MFS8_UART_ESCR_L2 *((volatile unsigned int*)(0x42710088UL)) -#define bFM4_MFS8_UART_ESCR_P *((volatile unsigned int*)(0x4271008CUL)) -#define bFM4_MFS8_UART_ESCR_PEN *((volatile unsigned int*)(0x42710090UL)) -#define bFM4_MFS8_UART_ESCR_INV *((volatile unsigned int*)(0x42710094UL)) -#define bFM4_MFS8_UART_ESCR_ESBL *((volatile unsigned int*)(0x42710098UL)) -#define bFM4_MFS8_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271009CUL)) -#define bFM4_MFS8_UART_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) -#define bFM4_MFS8_UART_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) -#define bFM4_MFS8_UART_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) -#define bFM4_MFS8_UART_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) -#define bFM4_MFS8_UART_SSR_FRE *((volatile unsigned int*)(0x427100B0UL)) -#define bFM4_MFS8_UART_SSR_PE *((volatile unsigned int*)(0x427100B4UL)) -#define bFM4_MFS8_UART_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) -#define bFM4_MFS8_UART_RDR_AD *((volatile unsigned int*)(0x42710120UL)) -#define bFM4_MFS8_UART_TDR_AD *((volatile unsigned int*)(0x42710120UL)) -#define bFM4_MFS8_UART_BGR_EXT *((volatile unsigned int*)(0x427101BCUL)) -#define bFM4_MFS8_UART_BGR1_EXT *((volatile unsigned int*)(0x427101BCUL)) -#define bFM4_MFS8_UART_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_UART_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_UART_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_UART_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_UART_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_UART_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_UART_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_UART_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_UART_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_UART_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_UART_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_UART_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_UART_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_UART_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_UART_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_UART_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_UART_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_UART_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) -#define bFM4_MFS8_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) - -/* MFS CSIO channel 8 registers */ -#define bFM4_MFS8_CSIO_SMR_SOE *((volatile unsigned int*)(0x42710000UL)) -#define bFM4_MFS8_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42710004UL)) -#define bFM4_MFS8_CSIO_SMR_BDS *((volatile unsigned int*)(0x42710008UL)) -#define bFM4_MFS8_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271000CUL)) -#define bFM4_MFS8_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) -#define bFM4_MFS8_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) -#define bFM4_MFS8_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) -#define bFM4_MFS8_CSIO_SCR_TXE *((volatile unsigned int*)(0x42710020UL)) -#define bFM4_MFS8_CSIO_SCR_RXE *((volatile unsigned int*)(0x42710024UL)) -#define bFM4_MFS8_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42710028UL)) -#define bFM4_MFS8_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271002CUL)) -#define bFM4_MFS8_CSIO_SCR_RIE *((volatile unsigned int*)(0x42710030UL)) -#define bFM4_MFS8_CSIO_SCR_SPI *((volatile unsigned int*)(0x42710034UL)) -#define bFM4_MFS8_CSIO_SCR_MS *((volatile unsigned int*)(0x42710038UL)) -#define bFM4_MFS8_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271003CUL)) -#define bFM4_MFS8_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42710080UL)) -#define bFM4_MFS8_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42710084UL)) -#define bFM4_MFS8_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42710088UL)) -#define bFM4_MFS8_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271008CUL)) -#define bFM4_MFS8_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42710090UL)) -#define bFM4_MFS8_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42710098UL)) -#define bFM4_MFS8_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271009CUL)) -#define bFM4_MFS8_CSIO_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) -#define bFM4_MFS8_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) -#define bFM4_MFS8_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) -#define bFM4_MFS8_CSIO_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) -#define bFM4_MFS8_CSIO_SSR_AWC *((volatile unsigned int*)(0x427100B0UL)) -#define bFM4_MFS8_CSIO_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) -#define bFM4_MFS8_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_CSIO_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_CSIO_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_CSIO_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42710380UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42710384UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42710388UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271038CUL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42710390UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42710394UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42710398UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271039CUL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427103A0UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427103A4UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427103A8UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427103ACUL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427103B0UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427103B4UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427103B8UL)) -#define bFM4_MFS8_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427103BCUL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42710400UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42710404UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42710408UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271040CUL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42710410UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42710414UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42710418UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271041CUL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42710420UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42710424UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42710428UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271042CUL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42710430UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42710434UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42710438UL)) -#define bFM4_MFS8_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271043CUL)) -#define bFM4_MFS8_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42710480UL)) -#define bFM4_MFS8_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42710484UL)) -#define bFM4_MFS8_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42710488UL)) -#define bFM4_MFS8_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271048CUL)) -#define bFM4_MFS8_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42710490UL)) -#define bFM4_MFS8_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42710498UL)) -#define bFM4_MFS8_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271049CUL)) -#define bFM4_MFS8_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427104A0UL)) -#define bFM4_MFS8_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427104ACUL)) -#define bFM4_MFS8_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427104B0UL)) -#define bFM4_MFS8_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427104B4UL)) -#define bFM4_MFS8_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42710500UL)) -#define bFM4_MFS8_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42710504UL)) -#define bFM4_MFS8_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42710508UL)) -#define bFM4_MFS8_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271050CUL)) -#define bFM4_MFS8_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42710510UL)) -#define bFM4_MFS8_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42710514UL)) -#define bFM4_MFS8_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42710518UL)) -#define bFM4_MFS8_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271051CUL)) -#define bFM4_MFS8_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42710520UL)) -#define bFM4_MFS8_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42710524UL)) -#define bFM4_MFS8_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42710528UL)) -#define bFM4_MFS8_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271052CUL)) -#define bFM4_MFS8_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42710530UL)) -#define bFM4_MFS8_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42710534UL)) -#define bFM4_MFS8_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42710538UL)) -#define bFM4_MFS8_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271053CUL)) -#define bFM4_MFS8_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42710580UL)) -#define bFM4_MFS8_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42710584UL)) -#define bFM4_MFS8_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42710588UL)) -#define bFM4_MFS8_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271058CUL)) -#define bFM4_MFS8_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42710590UL)) -#define bFM4_MFS8_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42710594UL)) -#define bFM4_MFS8_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42710598UL)) -#define bFM4_MFS8_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271059CUL)) -#define bFM4_MFS8_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427105A0UL)) -#define bFM4_MFS8_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427105A4UL)) -#define bFM4_MFS8_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427105A8UL)) -#define bFM4_MFS8_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427105ACUL)) -#define bFM4_MFS8_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427105B0UL)) -#define bFM4_MFS8_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427105B4UL)) -#define bFM4_MFS8_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427105B8UL)) -#define bFM4_MFS8_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427105BCUL)) -#define bFM4_MFS8_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42710600UL)) -#define bFM4_MFS8_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42710604UL)) -#define bFM4_MFS8_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42710614UL)) -#define bFM4_MFS8_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42710618UL)) -#define bFM4_MFS8_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271061CUL)) -#define bFM4_MFS8_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42710620UL)) -#define bFM4_MFS8_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42710624UL)) - -/* MFS LIN channel 8 registers */ -#define bFM4_MFS8_LIN_SMR_SOE *((volatile unsigned int*)(0x42710000UL)) -#define bFM4_MFS8_LIN_SMR_SBL *((volatile unsigned int*)(0x4271000CUL)) -#define bFM4_MFS8_LIN_SMR_WUCR *((volatile unsigned int*)(0x42710010UL)) -#define bFM4_MFS8_LIN_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) -#define bFM4_MFS8_LIN_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) -#define bFM4_MFS8_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) -#define bFM4_MFS8_LIN_SCR_TXE *((volatile unsigned int*)(0x42710020UL)) -#define bFM4_MFS8_LIN_SCR_RXE *((volatile unsigned int*)(0x42710024UL)) -#define bFM4_MFS8_LIN_SCR_TBIE *((volatile unsigned int*)(0x42710028UL)) -#define bFM4_MFS8_LIN_SCR_TIE *((volatile unsigned int*)(0x4271002CUL)) -#define bFM4_MFS8_LIN_SCR_RIE *((volatile unsigned int*)(0x42710030UL)) -#define bFM4_MFS8_LIN_SCR_LBR *((volatile unsigned int*)(0x42710034UL)) -#define bFM4_MFS8_LIN_SCR_MS *((volatile unsigned int*)(0x42710038UL)) -#define bFM4_MFS8_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271003CUL)) -#define bFM4_MFS8_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42710080UL)) -#define bFM4_MFS8_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42710084UL)) -#define bFM4_MFS8_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42710088UL)) -#define bFM4_MFS8_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271008CUL)) -#define bFM4_MFS8_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42710090UL)) -#define bFM4_MFS8_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42710098UL)) -#define bFM4_MFS8_LIN_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) -#define bFM4_MFS8_LIN_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) -#define bFM4_MFS8_LIN_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) -#define bFM4_MFS8_LIN_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) -#define bFM4_MFS8_LIN_SSR_FRE *((volatile unsigned int*)(0x427100B0UL)) -#define bFM4_MFS8_LIN_SSR_LBD *((volatile unsigned int*)(0x427100B4UL)) -#define bFM4_MFS8_LIN_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) -#define bFM4_MFS8_LIN_BGR_EXT *((volatile unsigned int*)(0x427101BCUL)) -#define bFM4_MFS8_LIN_BGR1_EXT *((volatile unsigned int*)(0x427101BCUL)) -#define bFM4_MFS8_LIN_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_LIN_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_LIN_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_LIN_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_LIN_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_LIN_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_LIN_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_LIN_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_LIN_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_LIN_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) -#define bFM4_MFS8_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) - -/* MFS I2C channel 8 registers */ -#define bFM4_MFS8_I2C_SMR_TIE *((volatile unsigned int*)(0x42710008UL)) -#define bFM4_MFS8_I2C_SMR_RIE *((volatile unsigned int*)(0x4271000CUL)) -#define bFM4_MFS8_I2C_SMR_MD0 *((volatile unsigned int*)(0x42710014UL)) -#define bFM4_MFS8_I2C_SMR_MD1 *((volatile unsigned int*)(0x42710018UL)) -#define bFM4_MFS8_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271001CUL)) -#define bFM4_MFS8_I2C_IBCR_INT *((volatile unsigned int*)(0x42710020UL)) -#define bFM4_MFS8_I2C_IBCR_BER *((volatile unsigned int*)(0x42710024UL)) -#define bFM4_MFS8_I2C_IBCR_INTE *((volatile unsigned int*)(0x42710028UL)) -#define bFM4_MFS8_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271002CUL)) -#define bFM4_MFS8_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42710030UL)) -#define bFM4_MFS8_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42710034UL)) -#define bFM4_MFS8_I2C_IBCR_ACT *((volatile unsigned int*)(0x42710038UL)) -#define bFM4_MFS8_I2C_IBCR_SCC *((volatile unsigned int*)(0x42710038UL)) -#define bFM4_MFS8_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271003CUL)) -#define bFM4_MFS8_I2C_IBSR_BB *((volatile unsigned int*)(0x42710080UL)) -#define bFM4_MFS8_I2C_IBSR_SPC *((volatile unsigned int*)(0x42710084UL)) -#define bFM4_MFS8_I2C_IBSR_RSC *((volatile unsigned int*)(0x42710088UL)) -#define bFM4_MFS8_I2C_IBSR_AL *((volatile unsigned int*)(0x4271008CUL)) -#define bFM4_MFS8_I2C_IBSR_TRX *((volatile unsigned int*)(0x42710090UL)) -#define bFM4_MFS8_I2C_IBSR_RSA *((volatile unsigned int*)(0x42710094UL)) -#define bFM4_MFS8_I2C_IBSR_RACK *((volatile unsigned int*)(0x42710098UL)) -#define bFM4_MFS8_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271009CUL)) -#define bFM4_MFS8_I2C_SSR_TBI *((volatile unsigned int*)(0x427100A0UL)) -#define bFM4_MFS8_I2C_SSR_TDRE *((volatile unsigned int*)(0x427100A4UL)) -#define bFM4_MFS8_I2C_SSR_RDRF *((volatile unsigned int*)(0x427100A8UL)) -#define bFM4_MFS8_I2C_SSR_ORE *((volatile unsigned int*)(0x427100ACUL)) -#define bFM4_MFS8_I2C_SSR_TBIE *((volatile unsigned int*)(0x427100B0UL)) -#define bFM4_MFS8_I2C_SSR_DMA *((volatile unsigned int*)(0x427100B4UL)) -#define bFM4_MFS8_I2C_SSR_TSET *((volatile unsigned int*)(0x427100B8UL)) -#define bFM4_MFS8_I2C_SSR_REC *((volatile unsigned int*)(0x427100BCUL)) -#define bFM4_MFS8_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42710200UL)) -#define bFM4_MFS8_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42710204UL)) -#define bFM4_MFS8_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42710208UL)) -#define bFM4_MFS8_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271020CUL)) -#define bFM4_MFS8_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42710210UL)) -#define bFM4_MFS8_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42710214UL)) -#define bFM4_MFS8_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42710218UL)) -#define bFM4_MFS8_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271021CUL)) -#define bFM4_MFS8_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42710220UL)) -#define bFM4_MFS8_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42710224UL)) -#define bFM4_MFS8_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42710228UL)) -#define bFM4_MFS8_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271022CUL)) -#define bFM4_MFS8_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42710230UL)) -#define bFM4_MFS8_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42710234UL)) -#define bFM4_MFS8_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42710238UL)) -#define bFM4_MFS8_I2C_ISMK_EN *((volatile unsigned int*)(0x4271023CUL)) -#define bFM4_MFS8_I2C_FCR_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_I2C_FCR_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_I2C_FCR_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_I2C_FCR_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_I2C_FCR_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_I2C_FCR_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_I2C_FCR_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42710280UL)) -#define bFM4_MFS8_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42710284UL)) -#define bFM4_MFS8_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42710288UL)) -#define bFM4_MFS8_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271028CUL)) -#define bFM4_MFS8_I2C_FCR0_FSET *((volatile unsigned int*)(0x42710290UL)) -#define bFM4_MFS8_I2C_FCR0_FLD *((volatile unsigned int*)(0x42710294UL)) -#define bFM4_MFS8_I2C_FCR0_FLST *((volatile unsigned int*)(0x42710298UL)) -#define bFM4_MFS8_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427102A0UL)) -#define bFM4_MFS8_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427102A4UL)) -#define bFM4_MFS8_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427102A8UL)) -#define bFM4_MFS8_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427102ACUL)) -#define bFM4_MFS8_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427102B0UL)) -#define bFM4_MFS8_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271033CUL)) -#define bFM4_MFS8_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42710300UL)) -#define bFM4_MFS8_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42710304UL)) -#define bFM4_MFS8_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42710308UL)) -#define bFM4_MFS8_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271030CUL)) -#define bFM4_MFS8_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42710310UL)) -#define bFM4_MFS8_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42710314UL)) -#define bFM4_MFS8_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42710318UL)) -#define bFM4_MFS8_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271031CUL)) -#define bFM4_MFS8_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42710320UL)) -#define bFM4_MFS8_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42710324UL)) -#define bFM4_MFS8_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42710328UL)) -#define bFM4_MFS8_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271032CUL)) -#define bFM4_MFS8_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42710330UL)) -#define bFM4_MFS8_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42710334UL)) -#define bFM4_MFS8_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42710338UL)) -#define bFM4_MFS8_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271033CUL)) - -/* MFS UART channel 9 registers */ -#define bFM4_MFS9_UART_SMR_SOE *((volatile unsigned int*)(0x42712000UL)) -#define bFM4_MFS9_UART_SMR_BDS *((volatile unsigned int*)(0x42712008UL)) -#define bFM4_MFS9_UART_SMR_SBL *((volatile unsigned int*)(0x4271200CUL)) -#define bFM4_MFS9_UART_SMR_WUCR *((volatile unsigned int*)(0x42712010UL)) -#define bFM4_MFS9_UART_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) -#define bFM4_MFS9_UART_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) -#define bFM4_MFS9_UART_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) -#define bFM4_MFS9_UART_SCR_TXE *((volatile unsigned int*)(0x42712020UL)) -#define bFM4_MFS9_UART_SCR_RXE *((volatile unsigned int*)(0x42712024UL)) -#define bFM4_MFS9_UART_SCR_TBIE *((volatile unsigned int*)(0x42712028UL)) -#define bFM4_MFS9_UART_SCR_TIE *((volatile unsigned int*)(0x4271202CUL)) -#define bFM4_MFS9_UART_SCR_RIE *((volatile unsigned int*)(0x42712030UL)) -#define bFM4_MFS9_UART_SCR_UPCL *((volatile unsigned int*)(0x4271203CUL)) -#define bFM4_MFS9_UART_ESCR_L0 *((volatile unsigned int*)(0x42712080UL)) -#define bFM4_MFS9_UART_ESCR_L1 *((volatile unsigned int*)(0x42712084UL)) -#define bFM4_MFS9_UART_ESCR_L2 *((volatile unsigned int*)(0x42712088UL)) -#define bFM4_MFS9_UART_ESCR_P *((volatile unsigned int*)(0x4271208CUL)) -#define bFM4_MFS9_UART_ESCR_PEN *((volatile unsigned int*)(0x42712090UL)) -#define bFM4_MFS9_UART_ESCR_INV *((volatile unsigned int*)(0x42712094UL)) -#define bFM4_MFS9_UART_ESCR_ESBL *((volatile unsigned int*)(0x42712098UL)) -#define bFM4_MFS9_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271209CUL)) -#define bFM4_MFS9_UART_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) -#define bFM4_MFS9_UART_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) -#define bFM4_MFS9_UART_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) -#define bFM4_MFS9_UART_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) -#define bFM4_MFS9_UART_SSR_FRE *((volatile unsigned int*)(0x427120B0UL)) -#define bFM4_MFS9_UART_SSR_PE *((volatile unsigned int*)(0x427120B4UL)) -#define bFM4_MFS9_UART_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) -#define bFM4_MFS9_UART_RDR_AD *((volatile unsigned int*)(0x42712120UL)) -#define bFM4_MFS9_UART_TDR_AD *((volatile unsigned int*)(0x42712120UL)) -#define bFM4_MFS9_UART_BGR_EXT *((volatile unsigned int*)(0x427121BCUL)) -#define bFM4_MFS9_UART_BGR1_EXT *((volatile unsigned int*)(0x427121BCUL)) -#define bFM4_MFS9_UART_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_UART_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_UART_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_UART_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_UART_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_UART_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_UART_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_UART_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_UART_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_UART_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_UART_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_UART_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_UART_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_UART_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_UART_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_UART_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_UART_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_UART_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) -#define bFM4_MFS9_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) - -/* MFS CSIO channel 9 registers */ -#define bFM4_MFS9_CSIO_SMR_SOE *((volatile unsigned int*)(0x42712000UL)) -#define bFM4_MFS9_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42712004UL)) -#define bFM4_MFS9_CSIO_SMR_BDS *((volatile unsigned int*)(0x42712008UL)) -#define bFM4_MFS9_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271200CUL)) -#define bFM4_MFS9_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) -#define bFM4_MFS9_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) -#define bFM4_MFS9_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) -#define bFM4_MFS9_CSIO_SCR_TXE *((volatile unsigned int*)(0x42712020UL)) -#define bFM4_MFS9_CSIO_SCR_RXE *((volatile unsigned int*)(0x42712024UL)) -#define bFM4_MFS9_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42712028UL)) -#define bFM4_MFS9_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271202CUL)) -#define bFM4_MFS9_CSIO_SCR_RIE *((volatile unsigned int*)(0x42712030UL)) -#define bFM4_MFS9_CSIO_SCR_SPI *((volatile unsigned int*)(0x42712034UL)) -#define bFM4_MFS9_CSIO_SCR_MS *((volatile unsigned int*)(0x42712038UL)) -#define bFM4_MFS9_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271203CUL)) -#define bFM4_MFS9_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42712080UL)) -#define bFM4_MFS9_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42712084UL)) -#define bFM4_MFS9_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42712088UL)) -#define bFM4_MFS9_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271208CUL)) -#define bFM4_MFS9_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42712090UL)) -#define bFM4_MFS9_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42712098UL)) -#define bFM4_MFS9_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271209CUL)) -#define bFM4_MFS9_CSIO_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) -#define bFM4_MFS9_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) -#define bFM4_MFS9_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) -#define bFM4_MFS9_CSIO_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) -#define bFM4_MFS9_CSIO_SSR_AWC *((volatile unsigned int*)(0x427120B0UL)) -#define bFM4_MFS9_CSIO_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) -#define bFM4_MFS9_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_CSIO_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_CSIO_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_CSIO_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42712380UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42712384UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42712388UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271238CUL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42712390UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42712394UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42712398UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271239CUL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427123A0UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427123A4UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427123A8UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427123ACUL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427123B0UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427123B4UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427123B8UL)) -#define bFM4_MFS9_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427123BCUL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42712400UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42712404UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42712408UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271240CUL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42712410UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42712414UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42712418UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271241CUL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42712420UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42712424UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42712428UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271242CUL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42712430UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42712434UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42712438UL)) -#define bFM4_MFS9_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271243CUL)) -#define bFM4_MFS9_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42712480UL)) -#define bFM4_MFS9_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42712484UL)) -#define bFM4_MFS9_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42712488UL)) -#define bFM4_MFS9_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271248CUL)) -#define bFM4_MFS9_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42712490UL)) -#define bFM4_MFS9_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42712498UL)) -#define bFM4_MFS9_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271249CUL)) -#define bFM4_MFS9_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427124A0UL)) -#define bFM4_MFS9_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427124ACUL)) -#define bFM4_MFS9_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427124B0UL)) -#define bFM4_MFS9_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427124B4UL)) -#define bFM4_MFS9_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42712500UL)) -#define bFM4_MFS9_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42712504UL)) -#define bFM4_MFS9_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42712508UL)) -#define bFM4_MFS9_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271250CUL)) -#define bFM4_MFS9_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42712510UL)) -#define bFM4_MFS9_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42712514UL)) -#define bFM4_MFS9_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42712518UL)) -#define bFM4_MFS9_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271251CUL)) -#define bFM4_MFS9_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42712520UL)) -#define bFM4_MFS9_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42712524UL)) -#define bFM4_MFS9_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42712528UL)) -#define bFM4_MFS9_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271252CUL)) -#define bFM4_MFS9_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42712530UL)) -#define bFM4_MFS9_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42712534UL)) -#define bFM4_MFS9_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42712538UL)) -#define bFM4_MFS9_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271253CUL)) -#define bFM4_MFS9_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42712580UL)) -#define bFM4_MFS9_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42712584UL)) -#define bFM4_MFS9_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42712588UL)) -#define bFM4_MFS9_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271258CUL)) -#define bFM4_MFS9_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42712590UL)) -#define bFM4_MFS9_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42712594UL)) -#define bFM4_MFS9_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42712598UL)) -#define bFM4_MFS9_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271259CUL)) -#define bFM4_MFS9_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427125A0UL)) -#define bFM4_MFS9_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427125A4UL)) -#define bFM4_MFS9_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427125A8UL)) -#define bFM4_MFS9_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427125ACUL)) -#define bFM4_MFS9_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427125B0UL)) -#define bFM4_MFS9_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427125B4UL)) -#define bFM4_MFS9_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427125B8UL)) -#define bFM4_MFS9_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427125BCUL)) -#define bFM4_MFS9_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42712600UL)) -#define bFM4_MFS9_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42712604UL)) -#define bFM4_MFS9_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42712614UL)) -#define bFM4_MFS9_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42712618UL)) -#define bFM4_MFS9_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271261CUL)) -#define bFM4_MFS9_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42712620UL)) -#define bFM4_MFS9_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42712624UL)) - -/* MFS LIN channel 9 registers */ -#define bFM4_MFS9_LIN_SMR_SOE *((volatile unsigned int*)(0x42712000UL)) -#define bFM4_MFS9_LIN_SMR_SBL *((volatile unsigned int*)(0x4271200CUL)) -#define bFM4_MFS9_LIN_SMR_WUCR *((volatile unsigned int*)(0x42712010UL)) -#define bFM4_MFS9_LIN_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) -#define bFM4_MFS9_LIN_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) -#define bFM4_MFS9_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) -#define bFM4_MFS9_LIN_SCR_TXE *((volatile unsigned int*)(0x42712020UL)) -#define bFM4_MFS9_LIN_SCR_RXE *((volatile unsigned int*)(0x42712024UL)) -#define bFM4_MFS9_LIN_SCR_TBIE *((volatile unsigned int*)(0x42712028UL)) -#define bFM4_MFS9_LIN_SCR_TIE *((volatile unsigned int*)(0x4271202CUL)) -#define bFM4_MFS9_LIN_SCR_RIE *((volatile unsigned int*)(0x42712030UL)) -#define bFM4_MFS9_LIN_SCR_LBR *((volatile unsigned int*)(0x42712034UL)) -#define bFM4_MFS9_LIN_SCR_MS *((volatile unsigned int*)(0x42712038UL)) -#define bFM4_MFS9_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271203CUL)) -#define bFM4_MFS9_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42712080UL)) -#define bFM4_MFS9_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42712084UL)) -#define bFM4_MFS9_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42712088UL)) -#define bFM4_MFS9_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271208CUL)) -#define bFM4_MFS9_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42712090UL)) -#define bFM4_MFS9_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42712098UL)) -#define bFM4_MFS9_LIN_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) -#define bFM4_MFS9_LIN_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) -#define bFM4_MFS9_LIN_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) -#define bFM4_MFS9_LIN_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) -#define bFM4_MFS9_LIN_SSR_FRE *((volatile unsigned int*)(0x427120B0UL)) -#define bFM4_MFS9_LIN_SSR_LBD *((volatile unsigned int*)(0x427120B4UL)) -#define bFM4_MFS9_LIN_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) -#define bFM4_MFS9_LIN_BGR_EXT *((volatile unsigned int*)(0x427121BCUL)) -#define bFM4_MFS9_LIN_BGR1_EXT *((volatile unsigned int*)(0x427121BCUL)) -#define bFM4_MFS9_LIN_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_LIN_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_LIN_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_LIN_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_LIN_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_LIN_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_LIN_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_LIN_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_LIN_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_LIN_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) -#define bFM4_MFS9_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) - -/* MFS I2C channel 9 registers */ -#define bFM4_MFS9_I2C_SMR_TIE *((volatile unsigned int*)(0x42712008UL)) -#define bFM4_MFS9_I2C_SMR_RIE *((volatile unsigned int*)(0x4271200CUL)) -#define bFM4_MFS9_I2C_SMR_MD0 *((volatile unsigned int*)(0x42712014UL)) -#define bFM4_MFS9_I2C_SMR_MD1 *((volatile unsigned int*)(0x42712018UL)) -#define bFM4_MFS9_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271201CUL)) -#define bFM4_MFS9_I2C_IBCR_INT *((volatile unsigned int*)(0x42712020UL)) -#define bFM4_MFS9_I2C_IBCR_BER *((volatile unsigned int*)(0x42712024UL)) -#define bFM4_MFS9_I2C_IBCR_INTE *((volatile unsigned int*)(0x42712028UL)) -#define bFM4_MFS9_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271202CUL)) -#define bFM4_MFS9_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42712030UL)) -#define bFM4_MFS9_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42712034UL)) -#define bFM4_MFS9_I2C_IBCR_ACT *((volatile unsigned int*)(0x42712038UL)) -#define bFM4_MFS9_I2C_IBCR_SCC *((volatile unsigned int*)(0x42712038UL)) -#define bFM4_MFS9_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271203CUL)) -#define bFM4_MFS9_I2C_IBSR_BB *((volatile unsigned int*)(0x42712080UL)) -#define bFM4_MFS9_I2C_IBSR_SPC *((volatile unsigned int*)(0x42712084UL)) -#define bFM4_MFS9_I2C_IBSR_RSC *((volatile unsigned int*)(0x42712088UL)) -#define bFM4_MFS9_I2C_IBSR_AL *((volatile unsigned int*)(0x4271208CUL)) -#define bFM4_MFS9_I2C_IBSR_TRX *((volatile unsigned int*)(0x42712090UL)) -#define bFM4_MFS9_I2C_IBSR_RSA *((volatile unsigned int*)(0x42712094UL)) -#define bFM4_MFS9_I2C_IBSR_RACK *((volatile unsigned int*)(0x42712098UL)) -#define bFM4_MFS9_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271209CUL)) -#define bFM4_MFS9_I2C_SSR_TBI *((volatile unsigned int*)(0x427120A0UL)) -#define bFM4_MFS9_I2C_SSR_TDRE *((volatile unsigned int*)(0x427120A4UL)) -#define bFM4_MFS9_I2C_SSR_RDRF *((volatile unsigned int*)(0x427120A8UL)) -#define bFM4_MFS9_I2C_SSR_ORE *((volatile unsigned int*)(0x427120ACUL)) -#define bFM4_MFS9_I2C_SSR_TBIE *((volatile unsigned int*)(0x427120B0UL)) -#define bFM4_MFS9_I2C_SSR_DMA *((volatile unsigned int*)(0x427120B4UL)) -#define bFM4_MFS9_I2C_SSR_TSET *((volatile unsigned int*)(0x427120B8UL)) -#define bFM4_MFS9_I2C_SSR_REC *((volatile unsigned int*)(0x427120BCUL)) -#define bFM4_MFS9_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42712200UL)) -#define bFM4_MFS9_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42712204UL)) -#define bFM4_MFS9_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42712208UL)) -#define bFM4_MFS9_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271220CUL)) -#define bFM4_MFS9_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42712210UL)) -#define bFM4_MFS9_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42712214UL)) -#define bFM4_MFS9_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42712218UL)) -#define bFM4_MFS9_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271221CUL)) -#define bFM4_MFS9_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42712220UL)) -#define bFM4_MFS9_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42712224UL)) -#define bFM4_MFS9_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42712228UL)) -#define bFM4_MFS9_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271222CUL)) -#define bFM4_MFS9_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42712230UL)) -#define bFM4_MFS9_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42712234UL)) -#define bFM4_MFS9_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42712238UL)) -#define bFM4_MFS9_I2C_ISMK_EN *((volatile unsigned int*)(0x4271223CUL)) -#define bFM4_MFS9_I2C_FCR_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_I2C_FCR_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_I2C_FCR_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_I2C_FCR_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_I2C_FCR_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_I2C_FCR_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_I2C_FCR_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42712280UL)) -#define bFM4_MFS9_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42712284UL)) -#define bFM4_MFS9_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42712288UL)) -#define bFM4_MFS9_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271228CUL)) -#define bFM4_MFS9_I2C_FCR0_FSET *((volatile unsigned int*)(0x42712290UL)) -#define bFM4_MFS9_I2C_FCR0_FLD *((volatile unsigned int*)(0x42712294UL)) -#define bFM4_MFS9_I2C_FCR0_FLST *((volatile unsigned int*)(0x42712298UL)) -#define bFM4_MFS9_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427122A0UL)) -#define bFM4_MFS9_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427122A4UL)) -#define bFM4_MFS9_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427122A8UL)) -#define bFM4_MFS9_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427122ACUL)) -#define bFM4_MFS9_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427122B0UL)) -#define bFM4_MFS9_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271233CUL)) -#define bFM4_MFS9_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42712300UL)) -#define bFM4_MFS9_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42712304UL)) -#define bFM4_MFS9_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42712308UL)) -#define bFM4_MFS9_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271230CUL)) -#define bFM4_MFS9_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42712310UL)) -#define bFM4_MFS9_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42712314UL)) -#define bFM4_MFS9_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42712318UL)) -#define bFM4_MFS9_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271231CUL)) -#define bFM4_MFS9_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42712320UL)) -#define bFM4_MFS9_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42712324UL)) -#define bFM4_MFS9_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42712328UL)) -#define bFM4_MFS9_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271232CUL)) -#define bFM4_MFS9_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42712330UL)) -#define bFM4_MFS9_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42712334UL)) -#define bFM4_MFS9_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42712338UL)) -#define bFM4_MFS9_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271233CUL)) - -/* MFS UART channel 10 registers */ -#define bFM4_MFS10_UART_SMR_SOE *((volatile unsigned int*)(0x42714000UL)) -#define bFM4_MFS10_UART_SMR_BDS *((volatile unsigned int*)(0x42714008UL)) -#define bFM4_MFS10_UART_SMR_SBL *((volatile unsigned int*)(0x4271400CUL)) -#define bFM4_MFS10_UART_SMR_WUCR *((volatile unsigned int*)(0x42714010UL)) -#define bFM4_MFS10_UART_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) -#define bFM4_MFS10_UART_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) -#define bFM4_MFS10_UART_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) -#define bFM4_MFS10_UART_SCR_TXE *((volatile unsigned int*)(0x42714020UL)) -#define bFM4_MFS10_UART_SCR_RXE *((volatile unsigned int*)(0x42714024UL)) -#define bFM4_MFS10_UART_SCR_TBIE *((volatile unsigned int*)(0x42714028UL)) -#define bFM4_MFS10_UART_SCR_TIE *((volatile unsigned int*)(0x4271402CUL)) -#define bFM4_MFS10_UART_SCR_RIE *((volatile unsigned int*)(0x42714030UL)) -#define bFM4_MFS10_UART_SCR_UPCL *((volatile unsigned int*)(0x4271403CUL)) -#define bFM4_MFS10_UART_ESCR_L0 *((volatile unsigned int*)(0x42714080UL)) -#define bFM4_MFS10_UART_ESCR_L1 *((volatile unsigned int*)(0x42714084UL)) -#define bFM4_MFS10_UART_ESCR_L2 *((volatile unsigned int*)(0x42714088UL)) -#define bFM4_MFS10_UART_ESCR_P *((volatile unsigned int*)(0x4271408CUL)) -#define bFM4_MFS10_UART_ESCR_PEN *((volatile unsigned int*)(0x42714090UL)) -#define bFM4_MFS10_UART_ESCR_INV *((volatile unsigned int*)(0x42714094UL)) -#define bFM4_MFS10_UART_ESCR_ESBL *((volatile unsigned int*)(0x42714098UL)) -#define bFM4_MFS10_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271409CUL)) -#define bFM4_MFS10_UART_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) -#define bFM4_MFS10_UART_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) -#define bFM4_MFS10_UART_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) -#define bFM4_MFS10_UART_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) -#define bFM4_MFS10_UART_SSR_FRE *((volatile unsigned int*)(0x427140B0UL)) -#define bFM4_MFS10_UART_SSR_PE *((volatile unsigned int*)(0x427140B4UL)) -#define bFM4_MFS10_UART_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) -#define bFM4_MFS10_UART_RDR_AD *((volatile unsigned int*)(0x42714120UL)) -#define bFM4_MFS10_UART_TDR_AD *((volatile unsigned int*)(0x42714120UL)) -#define bFM4_MFS10_UART_BGR_EXT *((volatile unsigned int*)(0x427141BCUL)) -#define bFM4_MFS10_UART_BGR1_EXT *((volatile unsigned int*)(0x427141BCUL)) -#define bFM4_MFS10_UART_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_UART_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_UART_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_UART_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_UART_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_UART_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_UART_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_UART_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_UART_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_UART_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_UART_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_UART_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_UART_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_UART_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_UART_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_UART_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_UART_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_UART_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) -#define bFM4_MFS10_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) - -/* MFS CSIO channel 10 registers */ -#define bFM4_MFS10_CSIO_SMR_SOE *((volatile unsigned int*)(0x42714000UL)) -#define bFM4_MFS10_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42714004UL)) -#define bFM4_MFS10_CSIO_SMR_BDS *((volatile unsigned int*)(0x42714008UL)) -#define bFM4_MFS10_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271400CUL)) -#define bFM4_MFS10_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) -#define bFM4_MFS10_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) -#define bFM4_MFS10_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) -#define bFM4_MFS10_CSIO_SCR_TXE *((volatile unsigned int*)(0x42714020UL)) -#define bFM4_MFS10_CSIO_SCR_RXE *((volatile unsigned int*)(0x42714024UL)) -#define bFM4_MFS10_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42714028UL)) -#define bFM4_MFS10_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271402CUL)) -#define bFM4_MFS10_CSIO_SCR_RIE *((volatile unsigned int*)(0x42714030UL)) -#define bFM4_MFS10_CSIO_SCR_SPI *((volatile unsigned int*)(0x42714034UL)) -#define bFM4_MFS10_CSIO_SCR_MS *((volatile unsigned int*)(0x42714038UL)) -#define bFM4_MFS10_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271403CUL)) -#define bFM4_MFS10_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42714080UL)) -#define bFM4_MFS10_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42714084UL)) -#define bFM4_MFS10_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42714088UL)) -#define bFM4_MFS10_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271408CUL)) -#define bFM4_MFS10_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42714090UL)) -#define bFM4_MFS10_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42714098UL)) -#define bFM4_MFS10_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271409CUL)) -#define bFM4_MFS10_CSIO_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) -#define bFM4_MFS10_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) -#define bFM4_MFS10_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) -#define bFM4_MFS10_CSIO_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) -#define bFM4_MFS10_CSIO_SSR_AWC *((volatile unsigned int*)(0x427140B0UL)) -#define bFM4_MFS10_CSIO_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) -#define bFM4_MFS10_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_CSIO_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_CSIO_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_CSIO_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42714380UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42714384UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42714388UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271438CUL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42714390UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42714394UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42714398UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271439CUL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427143A0UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427143A4UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427143A8UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427143ACUL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427143B0UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427143B4UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427143B8UL)) -#define bFM4_MFS10_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427143BCUL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42714400UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42714404UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42714408UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271440CUL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42714410UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42714414UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42714418UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271441CUL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42714420UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42714424UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42714428UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271442CUL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42714430UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42714434UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42714438UL)) -#define bFM4_MFS10_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271443CUL)) -#define bFM4_MFS10_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42714480UL)) -#define bFM4_MFS10_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42714484UL)) -#define bFM4_MFS10_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42714488UL)) -#define bFM4_MFS10_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271448CUL)) -#define bFM4_MFS10_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42714490UL)) -#define bFM4_MFS10_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42714498UL)) -#define bFM4_MFS10_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271449CUL)) -#define bFM4_MFS10_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427144A0UL)) -#define bFM4_MFS10_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427144ACUL)) -#define bFM4_MFS10_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427144B0UL)) -#define bFM4_MFS10_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427144B4UL)) -#define bFM4_MFS10_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42714500UL)) -#define bFM4_MFS10_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42714504UL)) -#define bFM4_MFS10_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42714508UL)) -#define bFM4_MFS10_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271450CUL)) -#define bFM4_MFS10_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42714510UL)) -#define bFM4_MFS10_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42714514UL)) -#define bFM4_MFS10_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42714518UL)) -#define bFM4_MFS10_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271451CUL)) -#define bFM4_MFS10_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42714520UL)) -#define bFM4_MFS10_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42714524UL)) -#define bFM4_MFS10_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42714528UL)) -#define bFM4_MFS10_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271452CUL)) -#define bFM4_MFS10_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42714530UL)) -#define bFM4_MFS10_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42714534UL)) -#define bFM4_MFS10_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42714538UL)) -#define bFM4_MFS10_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271453CUL)) -#define bFM4_MFS10_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42714580UL)) -#define bFM4_MFS10_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42714584UL)) -#define bFM4_MFS10_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42714588UL)) -#define bFM4_MFS10_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271458CUL)) -#define bFM4_MFS10_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42714590UL)) -#define bFM4_MFS10_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42714594UL)) -#define bFM4_MFS10_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42714598UL)) -#define bFM4_MFS10_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271459CUL)) -#define bFM4_MFS10_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427145A0UL)) -#define bFM4_MFS10_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427145A4UL)) -#define bFM4_MFS10_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427145A8UL)) -#define bFM4_MFS10_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427145ACUL)) -#define bFM4_MFS10_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427145B0UL)) -#define bFM4_MFS10_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427145B4UL)) -#define bFM4_MFS10_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427145B8UL)) -#define bFM4_MFS10_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427145BCUL)) -#define bFM4_MFS10_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42714600UL)) -#define bFM4_MFS10_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42714604UL)) -#define bFM4_MFS10_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42714614UL)) -#define bFM4_MFS10_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42714618UL)) -#define bFM4_MFS10_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271461CUL)) -#define bFM4_MFS10_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42714620UL)) -#define bFM4_MFS10_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42714624UL)) - -/* MFS LIN channel 10 registers */ -#define bFM4_MFS10_LIN_SMR_SOE *((volatile unsigned int*)(0x42714000UL)) -#define bFM4_MFS10_LIN_SMR_SBL *((volatile unsigned int*)(0x4271400CUL)) -#define bFM4_MFS10_LIN_SMR_WUCR *((volatile unsigned int*)(0x42714010UL)) -#define bFM4_MFS10_LIN_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) -#define bFM4_MFS10_LIN_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) -#define bFM4_MFS10_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) -#define bFM4_MFS10_LIN_SCR_TXE *((volatile unsigned int*)(0x42714020UL)) -#define bFM4_MFS10_LIN_SCR_RXE *((volatile unsigned int*)(0x42714024UL)) -#define bFM4_MFS10_LIN_SCR_TBIE *((volatile unsigned int*)(0x42714028UL)) -#define bFM4_MFS10_LIN_SCR_TIE *((volatile unsigned int*)(0x4271402CUL)) -#define bFM4_MFS10_LIN_SCR_RIE *((volatile unsigned int*)(0x42714030UL)) -#define bFM4_MFS10_LIN_SCR_LBR *((volatile unsigned int*)(0x42714034UL)) -#define bFM4_MFS10_LIN_SCR_MS *((volatile unsigned int*)(0x42714038UL)) -#define bFM4_MFS10_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271403CUL)) -#define bFM4_MFS10_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42714080UL)) -#define bFM4_MFS10_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42714084UL)) -#define bFM4_MFS10_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42714088UL)) -#define bFM4_MFS10_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271408CUL)) -#define bFM4_MFS10_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42714090UL)) -#define bFM4_MFS10_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42714098UL)) -#define bFM4_MFS10_LIN_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) -#define bFM4_MFS10_LIN_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) -#define bFM4_MFS10_LIN_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) -#define bFM4_MFS10_LIN_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) -#define bFM4_MFS10_LIN_SSR_FRE *((volatile unsigned int*)(0x427140B0UL)) -#define bFM4_MFS10_LIN_SSR_LBD *((volatile unsigned int*)(0x427140B4UL)) -#define bFM4_MFS10_LIN_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) -#define bFM4_MFS10_LIN_BGR_EXT *((volatile unsigned int*)(0x427141BCUL)) -#define bFM4_MFS10_LIN_BGR1_EXT *((volatile unsigned int*)(0x427141BCUL)) -#define bFM4_MFS10_LIN_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_LIN_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_LIN_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_LIN_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_LIN_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_LIN_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_LIN_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_LIN_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_LIN_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_LIN_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) -#define bFM4_MFS10_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) - -/* MFS I2C channel 10 registers */ -#define bFM4_MFS10_I2C_SMR_TIE *((volatile unsigned int*)(0x42714008UL)) -#define bFM4_MFS10_I2C_SMR_RIE *((volatile unsigned int*)(0x4271400CUL)) -#define bFM4_MFS10_I2C_SMR_MD0 *((volatile unsigned int*)(0x42714014UL)) -#define bFM4_MFS10_I2C_SMR_MD1 *((volatile unsigned int*)(0x42714018UL)) -#define bFM4_MFS10_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271401CUL)) -#define bFM4_MFS10_I2C_IBCR_INT *((volatile unsigned int*)(0x42714020UL)) -#define bFM4_MFS10_I2C_IBCR_BER *((volatile unsigned int*)(0x42714024UL)) -#define bFM4_MFS10_I2C_IBCR_INTE *((volatile unsigned int*)(0x42714028UL)) -#define bFM4_MFS10_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271402CUL)) -#define bFM4_MFS10_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42714030UL)) -#define bFM4_MFS10_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42714034UL)) -#define bFM4_MFS10_I2C_IBCR_ACT *((volatile unsigned int*)(0x42714038UL)) -#define bFM4_MFS10_I2C_IBCR_SCC *((volatile unsigned int*)(0x42714038UL)) -#define bFM4_MFS10_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271403CUL)) -#define bFM4_MFS10_I2C_IBSR_BB *((volatile unsigned int*)(0x42714080UL)) -#define bFM4_MFS10_I2C_IBSR_SPC *((volatile unsigned int*)(0x42714084UL)) -#define bFM4_MFS10_I2C_IBSR_RSC *((volatile unsigned int*)(0x42714088UL)) -#define bFM4_MFS10_I2C_IBSR_AL *((volatile unsigned int*)(0x4271408CUL)) -#define bFM4_MFS10_I2C_IBSR_TRX *((volatile unsigned int*)(0x42714090UL)) -#define bFM4_MFS10_I2C_IBSR_RSA *((volatile unsigned int*)(0x42714094UL)) -#define bFM4_MFS10_I2C_IBSR_RACK *((volatile unsigned int*)(0x42714098UL)) -#define bFM4_MFS10_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271409CUL)) -#define bFM4_MFS10_I2C_SSR_TBI *((volatile unsigned int*)(0x427140A0UL)) -#define bFM4_MFS10_I2C_SSR_TDRE *((volatile unsigned int*)(0x427140A4UL)) -#define bFM4_MFS10_I2C_SSR_RDRF *((volatile unsigned int*)(0x427140A8UL)) -#define bFM4_MFS10_I2C_SSR_ORE *((volatile unsigned int*)(0x427140ACUL)) -#define bFM4_MFS10_I2C_SSR_TBIE *((volatile unsigned int*)(0x427140B0UL)) -#define bFM4_MFS10_I2C_SSR_DMA *((volatile unsigned int*)(0x427140B4UL)) -#define bFM4_MFS10_I2C_SSR_TSET *((volatile unsigned int*)(0x427140B8UL)) -#define bFM4_MFS10_I2C_SSR_REC *((volatile unsigned int*)(0x427140BCUL)) -#define bFM4_MFS10_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42714200UL)) -#define bFM4_MFS10_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42714204UL)) -#define bFM4_MFS10_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42714208UL)) -#define bFM4_MFS10_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271420CUL)) -#define bFM4_MFS10_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42714210UL)) -#define bFM4_MFS10_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42714214UL)) -#define bFM4_MFS10_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42714218UL)) -#define bFM4_MFS10_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271421CUL)) -#define bFM4_MFS10_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42714220UL)) -#define bFM4_MFS10_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42714224UL)) -#define bFM4_MFS10_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42714228UL)) -#define bFM4_MFS10_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271422CUL)) -#define bFM4_MFS10_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42714230UL)) -#define bFM4_MFS10_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42714234UL)) -#define bFM4_MFS10_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42714238UL)) -#define bFM4_MFS10_I2C_ISMK_EN *((volatile unsigned int*)(0x4271423CUL)) -#define bFM4_MFS10_I2C_FCR_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_I2C_FCR_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_I2C_FCR_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_I2C_FCR_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_I2C_FCR_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_I2C_FCR_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_I2C_FCR_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42714280UL)) -#define bFM4_MFS10_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42714284UL)) -#define bFM4_MFS10_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42714288UL)) -#define bFM4_MFS10_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271428CUL)) -#define bFM4_MFS10_I2C_FCR0_FSET *((volatile unsigned int*)(0x42714290UL)) -#define bFM4_MFS10_I2C_FCR0_FLD *((volatile unsigned int*)(0x42714294UL)) -#define bFM4_MFS10_I2C_FCR0_FLST *((volatile unsigned int*)(0x42714298UL)) -#define bFM4_MFS10_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427142A0UL)) -#define bFM4_MFS10_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427142A4UL)) -#define bFM4_MFS10_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427142A8UL)) -#define bFM4_MFS10_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427142ACUL)) -#define bFM4_MFS10_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427142B0UL)) -#define bFM4_MFS10_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271433CUL)) -#define bFM4_MFS10_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42714300UL)) -#define bFM4_MFS10_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42714304UL)) -#define bFM4_MFS10_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42714308UL)) -#define bFM4_MFS10_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271430CUL)) -#define bFM4_MFS10_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42714310UL)) -#define bFM4_MFS10_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42714314UL)) -#define bFM4_MFS10_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42714318UL)) -#define bFM4_MFS10_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271431CUL)) -#define bFM4_MFS10_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42714320UL)) -#define bFM4_MFS10_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42714324UL)) -#define bFM4_MFS10_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42714328UL)) -#define bFM4_MFS10_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271432CUL)) -#define bFM4_MFS10_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42714330UL)) -#define bFM4_MFS10_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42714334UL)) -#define bFM4_MFS10_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42714338UL)) -#define bFM4_MFS10_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271433CUL)) - -/* MFS UART channel 11 registers */ -#define bFM4_MFS11_UART_SMR_SOE *((volatile unsigned int*)(0x42716000UL)) -#define bFM4_MFS11_UART_SMR_BDS *((volatile unsigned int*)(0x42716008UL)) -#define bFM4_MFS11_UART_SMR_SBL *((volatile unsigned int*)(0x4271600CUL)) -#define bFM4_MFS11_UART_SMR_WUCR *((volatile unsigned int*)(0x42716010UL)) -#define bFM4_MFS11_UART_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) -#define bFM4_MFS11_UART_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) -#define bFM4_MFS11_UART_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) -#define bFM4_MFS11_UART_SCR_TXE *((volatile unsigned int*)(0x42716020UL)) -#define bFM4_MFS11_UART_SCR_RXE *((volatile unsigned int*)(0x42716024UL)) -#define bFM4_MFS11_UART_SCR_TBIE *((volatile unsigned int*)(0x42716028UL)) -#define bFM4_MFS11_UART_SCR_TIE *((volatile unsigned int*)(0x4271602CUL)) -#define bFM4_MFS11_UART_SCR_RIE *((volatile unsigned int*)(0x42716030UL)) -#define bFM4_MFS11_UART_SCR_UPCL *((volatile unsigned int*)(0x4271603CUL)) -#define bFM4_MFS11_UART_ESCR_L0 *((volatile unsigned int*)(0x42716080UL)) -#define bFM4_MFS11_UART_ESCR_L1 *((volatile unsigned int*)(0x42716084UL)) -#define bFM4_MFS11_UART_ESCR_L2 *((volatile unsigned int*)(0x42716088UL)) -#define bFM4_MFS11_UART_ESCR_P *((volatile unsigned int*)(0x4271608CUL)) -#define bFM4_MFS11_UART_ESCR_PEN *((volatile unsigned int*)(0x42716090UL)) -#define bFM4_MFS11_UART_ESCR_INV *((volatile unsigned int*)(0x42716094UL)) -#define bFM4_MFS11_UART_ESCR_ESBL *((volatile unsigned int*)(0x42716098UL)) -#define bFM4_MFS11_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271609CUL)) -#define bFM4_MFS11_UART_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) -#define bFM4_MFS11_UART_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) -#define bFM4_MFS11_UART_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) -#define bFM4_MFS11_UART_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) -#define bFM4_MFS11_UART_SSR_FRE *((volatile unsigned int*)(0x427160B0UL)) -#define bFM4_MFS11_UART_SSR_PE *((volatile unsigned int*)(0x427160B4UL)) -#define bFM4_MFS11_UART_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) -#define bFM4_MFS11_UART_RDR_AD *((volatile unsigned int*)(0x42716120UL)) -#define bFM4_MFS11_UART_TDR_AD *((volatile unsigned int*)(0x42716120UL)) -#define bFM4_MFS11_UART_BGR_EXT *((volatile unsigned int*)(0x427161BCUL)) -#define bFM4_MFS11_UART_BGR1_EXT *((volatile unsigned int*)(0x427161BCUL)) -#define bFM4_MFS11_UART_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_UART_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_UART_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_UART_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_UART_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_UART_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_UART_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_UART_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_UART_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_UART_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_UART_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_UART_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_UART_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_UART_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_UART_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_UART_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_UART_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_UART_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) -#define bFM4_MFS11_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) - -/* MFS CSIO channel 11 registers */ -#define bFM4_MFS11_CSIO_SMR_SOE *((volatile unsigned int*)(0x42716000UL)) -#define bFM4_MFS11_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42716004UL)) -#define bFM4_MFS11_CSIO_SMR_BDS *((volatile unsigned int*)(0x42716008UL)) -#define bFM4_MFS11_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271600CUL)) -#define bFM4_MFS11_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) -#define bFM4_MFS11_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) -#define bFM4_MFS11_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) -#define bFM4_MFS11_CSIO_SCR_TXE *((volatile unsigned int*)(0x42716020UL)) -#define bFM4_MFS11_CSIO_SCR_RXE *((volatile unsigned int*)(0x42716024UL)) -#define bFM4_MFS11_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42716028UL)) -#define bFM4_MFS11_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271602CUL)) -#define bFM4_MFS11_CSIO_SCR_RIE *((volatile unsigned int*)(0x42716030UL)) -#define bFM4_MFS11_CSIO_SCR_SPI *((volatile unsigned int*)(0x42716034UL)) -#define bFM4_MFS11_CSIO_SCR_MS *((volatile unsigned int*)(0x42716038UL)) -#define bFM4_MFS11_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271603CUL)) -#define bFM4_MFS11_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42716080UL)) -#define bFM4_MFS11_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42716084UL)) -#define bFM4_MFS11_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42716088UL)) -#define bFM4_MFS11_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271608CUL)) -#define bFM4_MFS11_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42716090UL)) -#define bFM4_MFS11_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42716098UL)) -#define bFM4_MFS11_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271609CUL)) -#define bFM4_MFS11_CSIO_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) -#define bFM4_MFS11_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) -#define bFM4_MFS11_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) -#define bFM4_MFS11_CSIO_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) -#define bFM4_MFS11_CSIO_SSR_AWC *((volatile unsigned int*)(0x427160B0UL)) -#define bFM4_MFS11_CSIO_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) -#define bFM4_MFS11_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_CSIO_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_CSIO_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_CSIO_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42716380UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42716384UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42716388UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271638CUL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42716390UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42716394UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42716398UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271639CUL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427163A0UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427163A4UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427163A8UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427163ACUL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427163B0UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427163B4UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427163B8UL)) -#define bFM4_MFS11_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427163BCUL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42716400UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42716404UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42716408UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271640CUL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42716410UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42716414UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42716418UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271641CUL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42716420UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42716424UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42716428UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271642CUL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42716430UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42716434UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42716438UL)) -#define bFM4_MFS11_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271643CUL)) -#define bFM4_MFS11_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42716480UL)) -#define bFM4_MFS11_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42716484UL)) -#define bFM4_MFS11_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42716488UL)) -#define bFM4_MFS11_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271648CUL)) -#define bFM4_MFS11_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42716490UL)) -#define bFM4_MFS11_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42716498UL)) -#define bFM4_MFS11_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271649CUL)) -#define bFM4_MFS11_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427164A0UL)) -#define bFM4_MFS11_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427164ACUL)) -#define bFM4_MFS11_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427164B0UL)) -#define bFM4_MFS11_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427164B4UL)) -#define bFM4_MFS11_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42716500UL)) -#define bFM4_MFS11_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42716504UL)) -#define bFM4_MFS11_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42716508UL)) -#define bFM4_MFS11_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271650CUL)) -#define bFM4_MFS11_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42716510UL)) -#define bFM4_MFS11_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42716514UL)) -#define bFM4_MFS11_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42716518UL)) -#define bFM4_MFS11_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271651CUL)) -#define bFM4_MFS11_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42716520UL)) -#define bFM4_MFS11_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42716524UL)) -#define bFM4_MFS11_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42716528UL)) -#define bFM4_MFS11_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271652CUL)) -#define bFM4_MFS11_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42716530UL)) -#define bFM4_MFS11_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42716534UL)) -#define bFM4_MFS11_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42716538UL)) -#define bFM4_MFS11_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271653CUL)) -#define bFM4_MFS11_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42716580UL)) -#define bFM4_MFS11_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42716584UL)) -#define bFM4_MFS11_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42716588UL)) -#define bFM4_MFS11_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271658CUL)) -#define bFM4_MFS11_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42716590UL)) -#define bFM4_MFS11_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42716594UL)) -#define bFM4_MFS11_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42716598UL)) -#define bFM4_MFS11_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271659CUL)) -#define bFM4_MFS11_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427165A0UL)) -#define bFM4_MFS11_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427165A4UL)) -#define bFM4_MFS11_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427165A8UL)) -#define bFM4_MFS11_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427165ACUL)) -#define bFM4_MFS11_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427165B0UL)) -#define bFM4_MFS11_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427165B4UL)) -#define bFM4_MFS11_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427165B8UL)) -#define bFM4_MFS11_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427165BCUL)) -#define bFM4_MFS11_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42716600UL)) -#define bFM4_MFS11_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42716604UL)) -#define bFM4_MFS11_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42716614UL)) -#define bFM4_MFS11_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42716618UL)) -#define bFM4_MFS11_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271661CUL)) -#define bFM4_MFS11_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42716620UL)) -#define bFM4_MFS11_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42716624UL)) - -/* MFS LIN channel 11 registers */ -#define bFM4_MFS11_LIN_SMR_SOE *((volatile unsigned int*)(0x42716000UL)) -#define bFM4_MFS11_LIN_SMR_SBL *((volatile unsigned int*)(0x4271600CUL)) -#define bFM4_MFS11_LIN_SMR_WUCR *((volatile unsigned int*)(0x42716010UL)) -#define bFM4_MFS11_LIN_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) -#define bFM4_MFS11_LIN_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) -#define bFM4_MFS11_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) -#define bFM4_MFS11_LIN_SCR_TXE *((volatile unsigned int*)(0x42716020UL)) -#define bFM4_MFS11_LIN_SCR_RXE *((volatile unsigned int*)(0x42716024UL)) -#define bFM4_MFS11_LIN_SCR_TBIE *((volatile unsigned int*)(0x42716028UL)) -#define bFM4_MFS11_LIN_SCR_TIE *((volatile unsigned int*)(0x4271602CUL)) -#define bFM4_MFS11_LIN_SCR_RIE *((volatile unsigned int*)(0x42716030UL)) -#define bFM4_MFS11_LIN_SCR_LBR *((volatile unsigned int*)(0x42716034UL)) -#define bFM4_MFS11_LIN_SCR_MS *((volatile unsigned int*)(0x42716038UL)) -#define bFM4_MFS11_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271603CUL)) -#define bFM4_MFS11_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42716080UL)) -#define bFM4_MFS11_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42716084UL)) -#define bFM4_MFS11_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42716088UL)) -#define bFM4_MFS11_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271608CUL)) -#define bFM4_MFS11_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42716090UL)) -#define bFM4_MFS11_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42716098UL)) -#define bFM4_MFS11_LIN_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) -#define bFM4_MFS11_LIN_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) -#define bFM4_MFS11_LIN_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) -#define bFM4_MFS11_LIN_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) -#define bFM4_MFS11_LIN_SSR_FRE *((volatile unsigned int*)(0x427160B0UL)) -#define bFM4_MFS11_LIN_SSR_LBD *((volatile unsigned int*)(0x427160B4UL)) -#define bFM4_MFS11_LIN_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) -#define bFM4_MFS11_LIN_BGR_EXT *((volatile unsigned int*)(0x427161BCUL)) -#define bFM4_MFS11_LIN_BGR1_EXT *((volatile unsigned int*)(0x427161BCUL)) -#define bFM4_MFS11_LIN_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_LIN_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_LIN_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_LIN_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_LIN_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_LIN_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_LIN_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_LIN_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_LIN_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_LIN_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) -#define bFM4_MFS11_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) - -/* MFS I2C channel 11 registers */ -#define bFM4_MFS11_I2C_SMR_TIE *((volatile unsigned int*)(0x42716008UL)) -#define bFM4_MFS11_I2C_SMR_RIE *((volatile unsigned int*)(0x4271600CUL)) -#define bFM4_MFS11_I2C_SMR_MD0 *((volatile unsigned int*)(0x42716014UL)) -#define bFM4_MFS11_I2C_SMR_MD1 *((volatile unsigned int*)(0x42716018UL)) -#define bFM4_MFS11_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271601CUL)) -#define bFM4_MFS11_I2C_IBCR_INT *((volatile unsigned int*)(0x42716020UL)) -#define bFM4_MFS11_I2C_IBCR_BER *((volatile unsigned int*)(0x42716024UL)) -#define bFM4_MFS11_I2C_IBCR_INTE *((volatile unsigned int*)(0x42716028UL)) -#define bFM4_MFS11_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271602CUL)) -#define bFM4_MFS11_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42716030UL)) -#define bFM4_MFS11_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42716034UL)) -#define bFM4_MFS11_I2C_IBCR_ACT *((volatile unsigned int*)(0x42716038UL)) -#define bFM4_MFS11_I2C_IBCR_SCC *((volatile unsigned int*)(0x42716038UL)) -#define bFM4_MFS11_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271603CUL)) -#define bFM4_MFS11_I2C_IBSR_BB *((volatile unsigned int*)(0x42716080UL)) -#define bFM4_MFS11_I2C_IBSR_SPC *((volatile unsigned int*)(0x42716084UL)) -#define bFM4_MFS11_I2C_IBSR_RSC *((volatile unsigned int*)(0x42716088UL)) -#define bFM4_MFS11_I2C_IBSR_AL *((volatile unsigned int*)(0x4271608CUL)) -#define bFM4_MFS11_I2C_IBSR_TRX *((volatile unsigned int*)(0x42716090UL)) -#define bFM4_MFS11_I2C_IBSR_RSA *((volatile unsigned int*)(0x42716094UL)) -#define bFM4_MFS11_I2C_IBSR_RACK *((volatile unsigned int*)(0x42716098UL)) -#define bFM4_MFS11_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271609CUL)) -#define bFM4_MFS11_I2C_SSR_TBI *((volatile unsigned int*)(0x427160A0UL)) -#define bFM4_MFS11_I2C_SSR_TDRE *((volatile unsigned int*)(0x427160A4UL)) -#define bFM4_MFS11_I2C_SSR_RDRF *((volatile unsigned int*)(0x427160A8UL)) -#define bFM4_MFS11_I2C_SSR_ORE *((volatile unsigned int*)(0x427160ACUL)) -#define bFM4_MFS11_I2C_SSR_TBIE *((volatile unsigned int*)(0x427160B0UL)) -#define bFM4_MFS11_I2C_SSR_DMA *((volatile unsigned int*)(0x427160B4UL)) -#define bFM4_MFS11_I2C_SSR_TSET *((volatile unsigned int*)(0x427160B8UL)) -#define bFM4_MFS11_I2C_SSR_REC *((volatile unsigned int*)(0x427160BCUL)) -#define bFM4_MFS11_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42716200UL)) -#define bFM4_MFS11_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42716204UL)) -#define bFM4_MFS11_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42716208UL)) -#define bFM4_MFS11_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271620CUL)) -#define bFM4_MFS11_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42716210UL)) -#define bFM4_MFS11_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42716214UL)) -#define bFM4_MFS11_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42716218UL)) -#define bFM4_MFS11_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271621CUL)) -#define bFM4_MFS11_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42716220UL)) -#define bFM4_MFS11_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42716224UL)) -#define bFM4_MFS11_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42716228UL)) -#define bFM4_MFS11_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271622CUL)) -#define bFM4_MFS11_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42716230UL)) -#define bFM4_MFS11_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42716234UL)) -#define bFM4_MFS11_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42716238UL)) -#define bFM4_MFS11_I2C_ISMK_EN *((volatile unsigned int*)(0x4271623CUL)) -#define bFM4_MFS11_I2C_FCR_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_I2C_FCR_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_I2C_FCR_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_I2C_FCR_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_I2C_FCR_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_I2C_FCR_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_I2C_FCR_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42716280UL)) -#define bFM4_MFS11_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42716284UL)) -#define bFM4_MFS11_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42716288UL)) -#define bFM4_MFS11_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271628CUL)) -#define bFM4_MFS11_I2C_FCR0_FSET *((volatile unsigned int*)(0x42716290UL)) -#define bFM4_MFS11_I2C_FCR0_FLD *((volatile unsigned int*)(0x42716294UL)) -#define bFM4_MFS11_I2C_FCR0_FLST *((volatile unsigned int*)(0x42716298UL)) -#define bFM4_MFS11_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427162A0UL)) -#define bFM4_MFS11_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427162A4UL)) -#define bFM4_MFS11_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427162A8UL)) -#define bFM4_MFS11_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427162ACUL)) -#define bFM4_MFS11_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427162B0UL)) -#define bFM4_MFS11_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271633CUL)) -#define bFM4_MFS11_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42716300UL)) -#define bFM4_MFS11_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42716304UL)) -#define bFM4_MFS11_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42716308UL)) -#define bFM4_MFS11_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271630CUL)) -#define bFM4_MFS11_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42716310UL)) -#define bFM4_MFS11_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42716314UL)) -#define bFM4_MFS11_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42716318UL)) -#define bFM4_MFS11_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271631CUL)) -#define bFM4_MFS11_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42716320UL)) -#define bFM4_MFS11_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42716324UL)) -#define bFM4_MFS11_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42716328UL)) -#define bFM4_MFS11_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271632CUL)) -#define bFM4_MFS11_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42716330UL)) -#define bFM4_MFS11_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42716334UL)) -#define bFM4_MFS11_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42716338UL)) -#define bFM4_MFS11_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271633CUL)) - -/* MFS UART channel 12 registers */ -#define bFM4_MFS12_UART_SMR_SOE *((volatile unsigned int*)(0x42718000UL)) -#define bFM4_MFS12_UART_SMR_BDS *((volatile unsigned int*)(0x42718008UL)) -#define bFM4_MFS12_UART_SMR_SBL *((volatile unsigned int*)(0x4271800CUL)) -#define bFM4_MFS12_UART_SMR_WUCR *((volatile unsigned int*)(0x42718010UL)) -#define bFM4_MFS12_UART_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) -#define bFM4_MFS12_UART_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) -#define bFM4_MFS12_UART_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) -#define bFM4_MFS12_UART_SCR_TXE *((volatile unsigned int*)(0x42718020UL)) -#define bFM4_MFS12_UART_SCR_RXE *((volatile unsigned int*)(0x42718024UL)) -#define bFM4_MFS12_UART_SCR_TBIE *((volatile unsigned int*)(0x42718028UL)) -#define bFM4_MFS12_UART_SCR_TIE *((volatile unsigned int*)(0x4271802CUL)) -#define bFM4_MFS12_UART_SCR_RIE *((volatile unsigned int*)(0x42718030UL)) -#define bFM4_MFS12_UART_SCR_UPCL *((volatile unsigned int*)(0x4271803CUL)) -#define bFM4_MFS12_UART_ESCR_L0 *((volatile unsigned int*)(0x42718080UL)) -#define bFM4_MFS12_UART_ESCR_L1 *((volatile unsigned int*)(0x42718084UL)) -#define bFM4_MFS12_UART_ESCR_L2 *((volatile unsigned int*)(0x42718088UL)) -#define bFM4_MFS12_UART_ESCR_P *((volatile unsigned int*)(0x4271808CUL)) -#define bFM4_MFS12_UART_ESCR_PEN *((volatile unsigned int*)(0x42718090UL)) -#define bFM4_MFS12_UART_ESCR_INV *((volatile unsigned int*)(0x42718094UL)) -#define bFM4_MFS12_UART_ESCR_ESBL *((volatile unsigned int*)(0x42718098UL)) -#define bFM4_MFS12_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271809CUL)) -#define bFM4_MFS12_UART_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) -#define bFM4_MFS12_UART_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) -#define bFM4_MFS12_UART_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) -#define bFM4_MFS12_UART_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) -#define bFM4_MFS12_UART_SSR_FRE *((volatile unsigned int*)(0x427180B0UL)) -#define bFM4_MFS12_UART_SSR_PE *((volatile unsigned int*)(0x427180B4UL)) -#define bFM4_MFS12_UART_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) -#define bFM4_MFS12_UART_RDR_AD *((volatile unsigned int*)(0x42718120UL)) -#define bFM4_MFS12_UART_TDR_AD *((volatile unsigned int*)(0x42718120UL)) -#define bFM4_MFS12_UART_BGR_EXT *((volatile unsigned int*)(0x427181BCUL)) -#define bFM4_MFS12_UART_BGR1_EXT *((volatile unsigned int*)(0x427181BCUL)) -#define bFM4_MFS12_UART_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_UART_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_UART_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_UART_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_UART_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_UART_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_UART_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_UART_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_UART_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_UART_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_UART_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_UART_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_UART_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_UART_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_UART_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_UART_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_UART_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_UART_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_UART_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) -#define bFM4_MFS12_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) - -/* MFS CSIO channel 12 registers */ -#define bFM4_MFS12_CSIO_SMR_SOE *((volatile unsigned int*)(0x42718000UL)) -#define bFM4_MFS12_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42718004UL)) -#define bFM4_MFS12_CSIO_SMR_BDS *((volatile unsigned int*)(0x42718008UL)) -#define bFM4_MFS12_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271800CUL)) -#define bFM4_MFS12_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) -#define bFM4_MFS12_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) -#define bFM4_MFS12_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) -#define bFM4_MFS12_CSIO_SCR_TXE *((volatile unsigned int*)(0x42718020UL)) -#define bFM4_MFS12_CSIO_SCR_RXE *((volatile unsigned int*)(0x42718024UL)) -#define bFM4_MFS12_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42718028UL)) -#define bFM4_MFS12_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271802CUL)) -#define bFM4_MFS12_CSIO_SCR_RIE *((volatile unsigned int*)(0x42718030UL)) -#define bFM4_MFS12_CSIO_SCR_SPI *((volatile unsigned int*)(0x42718034UL)) -#define bFM4_MFS12_CSIO_SCR_MS *((volatile unsigned int*)(0x42718038UL)) -#define bFM4_MFS12_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271803CUL)) -#define bFM4_MFS12_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42718080UL)) -#define bFM4_MFS12_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42718084UL)) -#define bFM4_MFS12_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42718088UL)) -#define bFM4_MFS12_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271808CUL)) -#define bFM4_MFS12_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42718090UL)) -#define bFM4_MFS12_CSIO_ESCR_L3 *((volatile unsigned int*)(0x42718098UL)) -#define bFM4_MFS12_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271809CUL)) -#define bFM4_MFS12_CSIO_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) -#define bFM4_MFS12_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) -#define bFM4_MFS12_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) -#define bFM4_MFS12_CSIO_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) -#define bFM4_MFS12_CSIO_SSR_AWC *((volatile unsigned int*)(0x427180B0UL)) -#define bFM4_MFS12_CSIO_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) -#define bFM4_MFS12_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_CSIO_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_CSIO_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_CSIO_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x42718380UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x42718384UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x42718388UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271838CUL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x42718390UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x42718394UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x42718398UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271839CUL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x427183A0UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x427183A4UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x427183A8UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x427183ACUL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x427183B0UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x427183B4UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x427183B8UL)) -#define bFM4_MFS12_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x427183BCUL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x42718400UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x42718404UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x42718408UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271840CUL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x42718410UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x42718414UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x42718418UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271841CUL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x42718420UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x42718424UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x42718428UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271842CUL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x42718430UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x42718434UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x42718438UL)) -#define bFM4_MFS12_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271843CUL)) -#define bFM4_MFS12_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x42718480UL)) -#define bFM4_MFS12_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x42718484UL)) -#define bFM4_MFS12_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x42718488UL)) -#define bFM4_MFS12_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271848CUL)) -#define bFM4_MFS12_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x42718490UL)) -#define bFM4_MFS12_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x42718498UL)) -#define bFM4_MFS12_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271849CUL)) -#define bFM4_MFS12_CSIO_SACSR_TINT *((volatile unsigned int*)(0x427184A0UL)) -#define bFM4_MFS12_CSIO_SACSR_CSE *((volatile unsigned int*)(0x427184ACUL)) -#define bFM4_MFS12_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x427184B0UL)) -#define bFM4_MFS12_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x427184B4UL)) -#define bFM4_MFS12_CSIO_STMR_TM0 *((volatile unsigned int*)(0x42718500UL)) -#define bFM4_MFS12_CSIO_STMR_TM1 *((volatile unsigned int*)(0x42718504UL)) -#define bFM4_MFS12_CSIO_STMR_TM2 *((volatile unsigned int*)(0x42718508UL)) -#define bFM4_MFS12_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271850CUL)) -#define bFM4_MFS12_CSIO_STMR_TM4 *((volatile unsigned int*)(0x42718510UL)) -#define bFM4_MFS12_CSIO_STMR_TM5 *((volatile unsigned int*)(0x42718514UL)) -#define bFM4_MFS12_CSIO_STMR_TM6 *((volatile unsigned int*)(0x42718518UL)) -#define bFM4_MFS12_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271851CUL)) -#define bFM4_MFS12_CSIO_STMR_TM8 *((volatile unsigned int*)(0x42718520UL)) -#define bFM4_MFS12_CSIO_STMR_TM9 *((volatile unsigned int*)(0x42718524UL)) -#define bFM4_MFS12_CSIO_STMR_TM10 *((volatile unsigned int*)(0x42718528UL)) -#define bFM4_MFS12_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271852CUL)) -#define bFM4_MFS12_CSIO_STMR_TM12 *((volatile unsigned int*)(0x42718530UL)) -#define bFM4_MFS12_CSIO_STMR_TM13 *((volatile unsigned int*)(0x42718534UL)) -#define bFM4_MFS12_CSIO_STMR_TM14 *((volatile unsigned int*)(0x42718538UL)) -#define bFM4_MFS12_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271853CUL)) -#define bFM4_MFS12_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x42718580UL)) -#define bFM4_MFS12_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x42718584UL)) -#define bFM4_MFS12_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x42718588UL)) -#define bFM4_MFS12_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271858CUL)) -#define bFM4_MFS12_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x42718590UL)) -#define bFM4_MFS12_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x42718594UL)) -#define bFM4_MFS12_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x42718598UL)) -#define bFM4_MFS12_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271859CUL)) -#define bFM4_MFS12_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x427185A0UL)) -#define bFM4_MFS12_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x427185A4UL)) -#define bFM4_MFS12_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x427185A8UL)) -#define bFM4_MFS12_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x427185ACUL)) -#define bFM4_MFS12_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x427185B0UL)) -#define bFM4_MFS12_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x427185B4UL)) -#define bFM4_MFS12_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x427185B8UL)) -#define bFM4_MFS12_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x427185BCUL)) -#define bFM4_MFS12_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x42718600UL)) -#define bFM4_MFS12_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x42718604UL)) -#define bFM4_MFS12_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x42718614UL)) -#define bFM4_MFS12_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x42718618UL)) -#define bFM4_MFS12_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271861CUL)) -#define bFM4_MFS12_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x42718620UL)) -#define bFM4_MFS12_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x42718624UL)) - -/* MFS LIN channel 12 registers */ -#define bFM4_MFS12_LIN_SMR_SOE *((volatile unsigned int*)(0x42718000UL)) -#define bFM4_MFS12_LIN_SMR_SBL *((volatile unsigned int*)(0x4271800CUL)) -#define bFM4_MFS12_LIN_SMR_WUCR *((volatile unsigned int*)(0x42718010UL)) -#define bFM4_MFS12_LIN_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) -#define bFM4_MFS12_LIN_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) -#define bFM4_MFS12_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) -#define bFM4_MFS12_LIN_SCR_TXE *((volatile unsigned int*)(0x42718020UL)) -#define bFM4_MFS12_LIN_SCR_RXE *((volatile unsigned int*)(0x42718024UL)) -#define bFM4_MFS12_LIN_SCR_TBIE *((volatile unsigned int*)(0x42718028UL)) -#define bFM4_MFS12_LIN_SCR_TIE *((volatile unsigned int*)(0x4271802CUL)) -#define bFM4_MFS12_LIN_SCR_RIE *((volatile unsigned int*)(0x42718030UL)) -#define bFM4_MFS12_LIN_SCR_LBR *((volatile unsigned int*)(0x42718034UL)) -#define bFM4_MFS12_LIN_SCR_MS *((volatile unsigned int*)(0x42718038UL)) -#define bFM4_MFS12_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271803CUL)) -#define bFM4_MFS12_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42718080UL)) -#define bFM4_MFS12_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42718084UL)) -#define bFM4_MFS12_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42718088UL)) -#define bFM4_MFS12_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271808CUL)) -#define bFM4_MFS12_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42718090UL)) -#define bFM4_MFS12_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42718098UL)) -#define bFM4_MFS12_LIN_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) -#define bFM4_MFS12_LIN_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) -#define bFM4_MFS12_LIN_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) -#define bFM4_MFS12_LIN_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) -#define bFM4_MFS12_LIN_SSR_FRE *((volatile unsigned int*)(0x427180B0UL)) -#define bFM4_MFS12_LIN_SSR_LBD *((volatile unsigned int*)(0x427180B4UL)) -#define bFM4_MFS12_LIN_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) -#define bFM4_MFS12_LIN_BGR_EXT *((volatile unsigned int*)(0x427181BCUL)) -#define bFM4_MFS12_LIN_BGR1_EXT *((volatile unsigned int*)(0x427181BCUL)) -#define bFM4_MFS12_LIN_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_LIN_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_LIN_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_LIN_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_LIN_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_LIN_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_LIN_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_LIN_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_LIN_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_LIN_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_LIN_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) -#define bFM4_MFS12_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) - -/* MFS I2C channel 12 registers */ -#define bFM4_MFS12_I2C_SMR_TIE *((volatile unsigned int*)(0x42718008UL)) -#define bFM4_MFS12_I2C_SMR_RIE *((volatile unsigned int*)(0x4271800CUL)) -#define bFM4_MFS12_I2C_SMR_MD0 *((volatile unsigned int*)(0x42718014UL)) -#define bFM4_MFS12_I2C_SMR_MD1 *((volatile unsigned int*)(0x42718018UL)) -#define bFM4_MFS12_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271801CUL)) -#define bFM4_MFS12_I2C_IBCR_INT *((volatile unsigned int*)(0x42718020UL)) -#define bFM4_MFS12_I2C_IBCR_BER *((volatile unsigned int*)(0x42718024UL)) -#define bFM4_MFS12_I2C_IBCR_INTE *((volatile unsigned int*)(0x42718028UL)) -#define bFM4_MFS12_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271802CUL)) -#define bFM4_MFS12_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42718030UL)) -#define bFM4_MFS12_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42718034UL)) -#define bFM4_MFS12_I2C_IBCR_ACT *((volatile unsigned int*)(0x42718038UL)) -#define bFM4_MFS12_I2C_IBCR_SCC *((volatile unsigned int*)(0x42718038UL)) -#define bFM4_MFS12_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271803CUL)) -#define bFM4_MFS12_I2C_IBSR_BB *((volatile unsigned int*)(0x42718080UL)) -#define bFM4_MFS12_I2C_IBSR_SPC *((volatile unsigned int*)(0x42718084UL)) -#define bFM4_MFS12_I2C_IBSR_RSC *((volatile unsigned int*)(0x42718088UL)) -#define bFM4_MFS12_I2C_IBSR_AL *((volatile unsigned int*)(0x4271808CUL)) -#define bFM4_MFS12_I2C_IBSR_TRX *((volatile unsigned int*)(0x42718090UL)) -#define bFM4_MFS12_I2C_IBSR_RSA *((volatile unsigned int*)(0x42718094UL)) -#define bFM4_MFS12_I2C_IBSR_RACK *((volatile unsigned int*)(0x42718098UL)) -#define bFM4_MFS12_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271809CUL)) -#define bFM4_MFS12_I2C_SSR_TBI *((volatile unsigned int*)(0x427180A0UL)) -#define bFM4_MFS12_I2C_SSR_TDRE *((volatile unsigned int*)(0x427180A4UL)) -#define bFM4_MFS12_I2C_SSR_RDRF *((volatile unsigned int*)(0x427180A8UL)) -#define bFM4_MFS12_I2C_SSR_ORE *((volatile unsigned int*)(0x427180ACUL)) -#define bFM4_MFS12_I2C_SSR_TBIE *((volatile unsigned int*)(0x427180B0UL)) -#define bFM4_MFS12_I2C_SSR_DMA *((volatile unsigned int*)(0x427180B4UL)) -#define bFM4_MFS12_I2C_SSR_TSET *((volatile unsigned int*)(0x427180B8UL)) -#define bFM4_MFS12_I2C_SSR_REC *((volatile unsigned int*)(0x427180BCUL)) -#define bFM4_MFS12_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42718200UL)) -#define bFM4_MFS12_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42718204UL)) -#define bFM4_MFS12_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42718208UL)) -#define bFM4_MFS12_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271820CUL)) -#define bFM4_MFS12_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42718210UL)) -#define bFM4_MFS12_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42718214UL)) -#define bFM4_MFS12_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42718218UL)) -#define bFM4_MFS12_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271821CUL)) -#define bFM4_MFS12_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42718220UL)) -#define bFM4_MFS12_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42718224UL)) -#define bFM4_MFS12_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42718228UL)) -#define bFM4_MFS12_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271822CUL)) -#define bFM4_MFS12_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42718230UL)) -#define bFM4_MFS12_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42718234UL)) -#define bFM4_MFS12_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42718238UL)) -#define bFM4_MFS12_I2C_ISMK_EN *((volatile unsigned int*)(0x4271823CUL)) -#define bFM4_MFS12_I2C_FCR_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_I2C_FCR_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_I2C_FCR_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_I2C_FCR_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_I2C_FCR_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_I2C_FCR_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_I2C_FCR_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_I2C_FCR_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42718280UL)) -#define bFM4_MFS12_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42718284UL)) -#define bFM4_MFS12_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42718288UL)) -#define bFM4_MFS12_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271828CUL)) -#define bFM4_MFS12_I2C_FCR0_FSET *((volatile unsigned int*)(0x42718290UL)) -#define bFM4_MFS12_I2C_FCR0_FLD *((volatile unsigned int*)(0x42718294UL)) -#define bFM4_MFS12_I2C_FCR0_FLST *((volatile unsigned int*)(0x42718298UL)) -#define bFM4_MFS12_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427182A0UL)) -#define bFM4_MFS12_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427182A4UL)) -#define bFM4_MFS12_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427182A8UL)) -#define bFM4_MFS12_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x427182ACUL)) -#define bFM4_MFS12_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427182B0UL)) -#define bFM4_MFS12_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271833CUL)) -#define bFM4_MFS12_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42718300UL)) -#define bFM4_MFS12_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42718304UL)) -#define bFM4_MFS12_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42718308UL)) -#define bFM4_MFS12_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271830CUL)) -#define bFM4_MFS12_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42718310UL)) -#define bFM4_MFS12_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42718314UL)) -#define bFM4_MFS12_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42718318UL)) -#define bFM4_MFS12_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271831CUL)) -#define bFM4_MFS12_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42718320UL)) -#define bFM4_MFS12_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42718324UL)) -#define bFM4_MFS12_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42718328UL)) -#define bFM4_MFS12_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271832CUL)) -#define bFM4_MFS12_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42718330UL)) -#define bFM4_MFS12_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42718334UL)) -#define bFM4_MFS12_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42718338UL)) -#define bFM4_MFS12_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271833CUL)) - -/* MFS UART channel 13 registers */ -#define bFM4_MFS13_UART_SMR_SOE *((volatile unsigned int*)(0x4271A000UL)) -#define bFM4_MFS13_UART_SMR_BDS *((volatile unsigned int*)(0x4271A008UL)) -#define bFM4_MFS13_UART_SMR_SBL *((volatile unsigned int*)(0x4271A00CUL)) -#define bFM4_MFS13_UART_SMR_WUCR *((volatile unsigned int*)(0x4271A010UL)) -#define bFM4_MFS13_UART_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) -#define bFM4_MFS13_UART_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) -#define bFM4_MFS13_UART_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) -#define bFM4_MFS13_UART_SCR_TXE *((volatile unsigned int*)(0x4271A020UL)) -#define bFM4_MFS13_UART_SCR_RXE *((volatile unsigned int*)(0x4271A024UL)) -#define bFM4_MFS13_UART_SCR_TBIE *((volatile unsigned int*)(0x4271A028UL)) -#define bFM4_MFS13_UART_SCR_TIE *((volatile unsigned int*)(0x4271A02CUL)) -#define bFM4_MFS13_UART_SCR_RIE *((volatile unsigned int*)(0x4271A030UL)) -#define bFM4_MFS13_UART_SCR_UPCL *((volatile unsigned int*)(0x4271A03CUL)) -#define bFM4_MFS13_UART_ESCR_L0 *((volatile unsigned int*)(0x4271A080UL)) -#define bFM4_MFS13_UART_ESCR_L1 *((volatile unsigned int*)(0x4271A084UL)) -#define bFM4_MFS13_UART_ESCR_L2 *((volatile unsigned int*)(0x4271A088UL)) -#define bFM4_MFS13_UART_ESCR_P *((volatile unsigned int*)(0x4271A08CUL)) -#define bFM4_MFS13_UART_ESCR_PEN *((volatile unsigned int*)(0x4271A090UL)) -#define bFM4_MFS13_UART_ESCR_INV *((volatile unsigned int*)(0x4271A094UL)) -#define bFM4_MFS13_UART_ESCR_ESBL *((volatile unsigned int*)(0x4271A098UL)) -#define bFM4_MFS13_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271A09CUL)) -#define bFM4_MFS13_UART_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) -#define bFM4_MFS13_UART_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) -#define bFM4_MFS13_UART_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) -#define bFM4_MFS13_UART_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) -#define bFM4_MFS13_UART_SSR_FRE *((volatile unsigned int*)(0x4271A0B0UL)) -#define bFM4_MFS13_UART_SSR_PE *((volatile unsigned int*)(0x4271A0B4UL)) -#define bFM4_MFS13_UART_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) -#define bFM4_MFS13_UART_RDR_AD *((volatile unsigned int*)(0x4271A120UL)) -#define bFM4_MFS13_UART_TDR_AD *((volatile unsigned int*)(0x4271A120UL)) -#define bFM4_MFS13_UART_BGR_EXT *((volatile unsigned int*)(0x4271A1BCUL)) -#define bFM4_MFS13_UART_BGR1_EXT *((volatile unsigned int*)(0x4271A1BCUL)) -#define bFM4_MFS13_UART_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_UART_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_UART_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_UART_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_UART_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_UART_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_UART_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_UART_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_UART_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_UART_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_UART_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_UART_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_UART_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_UART_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_UART_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_UART_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_UART_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_UART_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) -#define bFM4_MFS13_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) - -/* MFS CSIO channel 13 registers */ -#define bFM4_MFS13_CSIO_SMR_SOE *((volatile unsigned int*)(0x4271A000UL)) -#define bFM4_MFS13_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4271A004UL)) -#define bFM4_MFS13_CSIO_SMR_BDS *((volatile unsigned int*)(0x4271A008UL)) -#define bFM4_MFS13_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271A00CUL)) -#define bFM4_MFS13_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) -#define bFM4_MFS13_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) -#define bFM4_MFS13_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) -#define bFM4_MFS13_CSIO_SCR_TXE *((volatile unsigned int*)(0x4271A020UL)) -#define bFM4_MFS13_CSIO_SCR_RXE *((volatile unsigned int*)(0x4271A024UL)) -#define bFM4_MFS13_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4271A028UL)) -#define bFM4_MFS13_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271A02CUL)) -#define bFM4_MFS13_CSIO_SCR_RIE *((volatile unsigned int*)(0x4271A030UL)) -#define bFM4_MFS13_CSIO_SCR_SPI *((volatile unsigned int*)(0x4271A034UL)) -#define bFM4_MFS13_CSIO_SCR_MS *((volatile unsigned int*)(0x4271A038UL)) -#define bFM4_MFS13_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271A03CUL)) -#define bFM4_MFS13_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4271A080UL)) -#define bFM4_MFS13_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4271A084UL)) -#define bFM4_MFS13_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4271A088UL)) -#define bFM4_MFS13_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271A08CUL)) -#define bFM4_MFS13_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4271A090UL)) -#define bFM4_MFS13_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4271A098UL)) -#define bFM4_MFS13_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271A09CUL)) -#define bFM4_MFS13_CSIO_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) -#define bFM4_MFS13_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) -#define bFM4_MFS13_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) -#define bFM4_MFS13_CSIO_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) -#define bFM4_MFS13_CSIO_SSR_AWC *((volatile unsigned int*)(0x4271A0B0UL)) -#define bFM4_MFS13_CSIO_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) -#define bFM4_MFS13_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_CSIO_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_CSIO_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_CSIO_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4271A380UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4271A384UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4271A388UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271A38CUL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4271A390UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4271A394UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4271A398UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271A39CUL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4271A3A0UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4271A3A4UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4271A3A8UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4271A3ACUL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4271A3B0UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4271A3B4UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4271A3B8UL)) -#define bFM4_MFS13_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4271A3BCUL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4271A400UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4271A404UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4271A408UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271A40CUL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4271A410UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4271A414UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4271A418UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271A41CUL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4271A420UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4271A424UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4271A428UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271A42CUL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4271A430UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4271A434UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4271A438UL)) -#define bFM4_MFS13_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271A43CUL)) -#define bFM4_MFS13_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4271A480UL)) -#define bFM4_MFS13_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4271A484UL)) -#define bFM4_MFS13_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4271A488UL)) -#define bFM4_MFS13_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271A48CUL)) -#define bFM4_MFS13_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4271A490UL)) -#define bFM4_MFS13_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4271A498UL)) -#define bFM4_MFS13_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271A49CUL)) -#define bFM4_MFS13_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4271A4A0UL)) -#define bFM4_MFS13_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4271A4ACUL)) -#define bFM4_MFS13_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4271A4B0UL)) -#define bFM4_MFS13_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4271A4B4UL)) -#define bFM4_MFS13_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4271A500UL)) -#define bFM4_MFS13_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4271A504UL)) -#define bFM4_MFS13_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4271A508UL)) -#define bFM4_MFS13_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271A50CUL)) -#define bFM4_MFS13_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4271A510UL)) -#define bFM4_MFS13_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4271A514UL)) -#define bFM4_MFS13_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4271A518UL)) -#define bFM4_MFS13_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271A51CUL)) -#define bFM4_MFS13_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4271A520UL)) -#define bFM4_MFS13_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4271A524UL)) -#define bFM4_MFS13_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4271A528UL)) -#define bFM4_MFS13_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271A52CUL)) -#define bFM4_MFS13_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4271A530UL)) -#define bFM4_MFS13_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4271A534UL)) -#define bFM4_MFS13_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4271A538UL)) -#define bFM4_MFS13_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271A53CUL)) -#define bFM4_MFS13_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4271A580UL)) -#define bFM4_MFS13_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4271A584UL)) -#define bFM4_MFS13_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4271A588UL)) -#define bFM4_MFS13_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271A58CUL)) -#define bFM4_MFS13_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4271A590UL)) -#define bFM4_MFS13_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4271A594UL)) -#define bFM4_MFS13_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4271A598UL)) -#define bFM4_MFS13_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271A59CUL)) -#define bFM4_MFS13_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4271A5A0UL)) -#define bFM4_MFS13_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4271A5A4UL)) -#define bFM4_MFS13_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4271A5A8UL)) -#define bFM4_MFS13_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4271A5ACUL)) -#define bFM4_MFS13_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4271A5B0UL)) -#define bFM4_MFS13_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4271A5B4UL)) -#define bFM4_MFS13_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4271A5B8UL)) -#define bFM4_MFS13_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4271A5BCUL)) -#define bFM4_MFS13_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4271A600UL)) -#define bFM4_MFS13_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4271A604UL)) -#define bFM4_MFS13_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4271A614UL)) -#define bFM4_MFS13_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4271A618UL)) -#define bFM4_MFS13_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271A61CUL)) -#define bFM4_MFS13_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4271A620UL)) -#define bFM4_MFS13_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4271A624UL)) - -/* MFS LIN channel 13 registers */ -#define bFM4_MFS13_LIN_SMR_SOE *((volatile unsigned int*)(0x4271A000UL)) -#define bFM4_MFS13_LIN_SMR_SBL *((volatile unsigned int*)(0x4271A00CUL)) -#define bFM4_MFS13_LIN_SMR_WUCR *((volatile unsigned int*)(0x4271A010UL)) -#define bFM4_MFS13_LIN_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) -#define bFM4_MFS13_LIN_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) -#define bFM4_MFS13_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) -#define bFM4_MFS13_LIN_SCR_TXE *((volatile unsigned int*)(0x4271A020UL)) -#define bFM4_MFS13_LIN_SCR_RXE *((volatile unsigned int*)(0x4271A024UL)) -#define bFM4_MFS13_LIN_SCR_TBIE *((volatile unsigned int*)(0x4271A028UL)) -#define bFM4_MFS13_LIN_SCR_TIE *((volatile unsigned int*)(0x4271A02CUL)) -#define bFM4_MFS13_LIN_SCR_RIE *((volatile unsigned int*)(0x4271A030UL)) -#define bFM4_MFS13_LIN_SCR_LBR *((volatile unsigned int*)(0x4271A034UL)) -#define bFM4_MFS13_LIN_SCR_MS *((volatile unsigned int*)(0x4271A038UL)) -#define bFM4_MFS13_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271A03CUL)) -#define bFM4_MFS13_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4271A080UL)) -#define bFM4_MFS13_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4271A084UL)) -#define bFM4_MFS13_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4271A088UL)) -#define bFM4_MFS13_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271A08CUL)) -#define bFM4_MFS13_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4271A090UL)) -#define bFM4_MFS13_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4271A098UL)) -#define bFM4_MFS13_LIN_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) -#define bFM4_MFS13_LIN_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) -#define bFM4_MFS13_LIN_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) -#define bFM4_MFS13_LIN_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) -#define bFM4_MFS13_LIN_SSR_FRE *((volatile unsigned int*)(0x4271A0B0UL)) -#define bFM4_MFS13_LIN_SSR_LBD *((volatile unsigned int*)(0x4271A0B4UL)) -#define bFM4_MFS13_LIN_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) -#define bFM4_MFS13_LIN_BGR_EXT *((volatile unsigned int*)(0x4271A1BCUL)) -#define bFM4_MFS13_LIN_BGR1_EXT *((volatile unsigned int*)(0x4271A1BCUL)) -#define bFM4_MFS13_LIN_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_LIN_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_LIN_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_LIN_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_LIN_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_LIN_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_LIN_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_LIN_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_LIN_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_LIN_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) -#define bFM4_MFS13_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) - -/* MFS I2C channel 13 registers */ -#define bFM4_MFS13_I2C_SMR_TIE *((volatile unsigned int*)(0x4271A008UL)) -#define bFM4_MFS13_I2C_SMR_RIE *((volatile unsigned int*)(0x4271A00CUL)) -#define bFM4_MFS13_I2C_SMR_MD0 *((volatile unsigned int*)(0x4271A014UL)) -#define bFM4_MFS13_I2C_SMR_MD1 *((volatile unsigned int*)(0x4271A018UL)) -#define bFM4_MFS13_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271A01CUL)) -#define bFM4_MFS13_I2C_IBCR_INT *((volatile unsigned int*)(0x4271A020UL)) -#define bFM4_MFS13_I2C_IBCR_BER *((volatile unsigned int*)(0x4271A024UL)) -#define bFM4_MFS13_I2C_IBCR_INTE *((volatile unsigned int*)(0x4271A028UL)) -#define bFM4_MFS13_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271A02CUL)) -#define bFM4_MFS13_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4271A030UL)) -#define bFM4_MFS13_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4271A034UL)) -#define bFM4_MFS13_I2C_IBCR_ACT *((volatile unsigned int*)(0x4271A038UL)) -#define bFM4_MFS13_I2C_IBCR_SCC *((volatile unsigned int*)(0x4271A038UL)) -#define bFM4_MFS13_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271A03CUL)) -#define bFM4_MFS13_I2C_IBSR_BB *((volatile unsigned int*)(0x4271A080UL)) -#define bFM4_MFS13_I2C_IBSR_SPC *((volatile unsigned int*)(0x4271A084UL)) -#define bFM4_MFS13_I2C_IBSR_RSC *((volatile unsigned int*)(0x4271A088UL)) -#define bFM4_MFS13_I2C_IBSR_AL *((volatile unsigned int*)(0x4271A08CUL)) -#define bFM4_MFS13_I2C_IBSR_TRX *((volatile unsigned int*)(0x4271A090UL)) -#define bFM4_MFS13_I2C_IBSR_RSA *((volatile unsigned int*)(0x4271A094UL)) -#define bFM4_MFS13_I2C_IBSR_RACK *((volatile unsigned int*)(0x4271A098UL)) -#define bFM4_MFS13_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271A09CUL)) -#define bFM4_MFS13_I2C_SSR_TBI *((volatile unsigned int*)(0x4271A0A0UL)) -#define bFM4_MFS13_I2C_SSR_TDRE *((volatile unsigned int*)(0x4271A0A4UL)) -#define bFM4_MFS13_I2C_SSR_RDRF *((volatile unsigned int*)(0x4271A0A8UL)) -#define bFM4_MFS13_I2C_SSR_ORE *((volatile unsigned int*)(0x4271A0ACUL)) -#define bFM4_MFS13_I2C_SSR_TBIE *((volatile unsigned int*)(0x4271A0B0UL)) -#define bFM4_MFS13_I2C_SSR_DMA *((volatile unsigned int*)(0x4271A0B4UL)) -#define bFM4_MFS13_I2C_SSR_TSET *((volatile unsigned int*)(0x4271A0B8UL)) -#define bFM4_MFS13_I2C_SSR_REC *((volatile unsigned int*)(0x4271A0BCUL)) -#define bFM4_MFS13_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4271A200UL)) -#define bFM4_MFS13_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4271A204UL)) -#define bFM4_MFS13_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4271A208UL)) -#define bFM4_MFS13_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271A20CUL)) -#define bFM4_MFS13_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4271A210UL)) -#define bFM4_MFS13_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4271A214UL)) -#define bFM4_MFS13_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4271A218UL)) -#define bFM4_MFS13_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271A21CUL)) -#define bFM4_MFS13_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4271A220UL)) -#define bFM4_MFS13_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4271A224UL)) -#define bFM4_MFS13_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4271A228UL)) -#define bFM4_MFS13_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271A22CUL)) -#define bFM4_MFS13_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4271A230UL)) -#define bFM4_MFS13_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4271A234UL)) -#define bFM4_MFS13_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4271A238UL)) -#define bFM4_MFS13_I2C_ISMK_EN *((volatile unsigned int*)(0x4271A23CUL)) -#define bFM4_MFS13_I2C_FCR_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_I2C_FCR_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_I2C_FCR_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_I2C_FCR_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_I2C_FCR_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_I2C_FCR_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_I2C_FCR_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4271A280UL)) -#define bFM4_MFS13_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4271A284UL)) -#define bFM4_MFS13_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4271A288UL)) -#define bFM4_MFS13_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271A28CUL)) -#define bFM4_MFS13_I2C_FCR0_FSET *((volatile unsigned int*)(0x4271A290UL)) -#define bFM4_MFS13_I2C_FCR0_FLD *((volatile unsigned int*)(0x4271A294UL)) -#define bFM4_MFS13_I2C_FCR0_FLST *((volatile unsigned int*)(0x4271A298UL)) -#define bFM4_MFS13_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4271A2A0UL)) -#define bFM4_MFS13_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4271A2A4UL)) -#define bFM4_MFS13_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4271A2A8UL)) -#define bFM4_MFS13_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4271A2ACUL)) -#define bFM4_MFS13_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4271A2B0UL)) -#define bFM4_MFS13_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271A33CUL)) -#define bFM4_MFS13_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4271A300UL)) -#define bFM4_MFS13_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4271A304UL)) -#define bFM4_MFS13_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4271A308UL)) -#define bFM4_MFS13_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271A30CUL)) -#define bFM4_MFS13_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4271A310UL)) -#define bFM4_MFS13_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4271A314UL)) -#define bFM4_MFS13_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4271A318UL)) -#define bFM4_MFS13_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271A31CUL)) -#define bFM4_MFS13_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4271A320UL)) -#define bFM4_MFS13_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4271A324UL)) -#define bFM4_MFS13_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4271A328UL)) -#define bFM4_MFS13_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271A32CUL)) -#define bFM4_MFS13_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4271A330UL)) -#define bFM4_MFS13_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4271A334UL)) -#define bFM4_MFS13_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4271A338UL)) -#define bFM4_MFS13_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271A33CUL)) - -/* MFS UART channel 14 registers */ -#define bFM4_MFS14_UART_SMR_SOE *((volatile unsigned int*)(0x4271C000UL)) -#define bFM4_MFS14_UART_SMR_BDS *((volatile unsigned int*)(0x4271C008UL)) -#define bFM4_MFS14_UART_SMR_SBL *((volatile unsigned int*)(0x4271C00CUL)) -#define bFM4_MFS14_UART_SMR_WUCR *((volatile unsigned int*)(0x4271C010UL)) -#define bFM4_MFS14_UART_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) -#define bFM4_MFS14_UART_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) -#define bFM4_MFS14_UART_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) -#define bFM4_MFS14_UART_SCR_TXE *((volatile unsigned int*)(0x4271C020UL)) -#define bFM4_MFS14_UART_SCR_RXE *((volatile unsigned int*)(0x4271C024UL)) -#define bFM4_MFS14_UART_SCR_TBIE *((volatile unsigned int*)(0x4271C028UL)) -#define bFM4_MFS14_UART_SCR_TIE *((volatile unsigned int*)(0x4271C02CUL)) -#define bFM4_MFS14_UART_SCR_RIE *((volatile unsigned int*)(0x4271C030UL)) -#define bFM4_MFS14_UART_SCR_UPCL *((volatile unsigned int*)(0x4271C03CUL)) -#define bFM4_MFS14_UART_ESCR_L0 *((volatile unsigned int*)(0x4271C080UL)) -#define bFM4_MFS14_UART_ESCR_L1 *((volatile unsigned int*)(0x4271C084UL)) -#define bFM4_MFS14_UART_ESCR_L2 *((volatile unsigned int*)(0x4271C088UL)) -#define bFM4_MFS14_UART_ESCR_P *((volatile unsigned int*)(0x4271C08CUL)) -#define bFM4_MFS14_UART_ESCR_PEN *((volatile unsigned int*)(0x4271C090UL)) -#define bFM4_MFS14_UART_ESCR_INV *((volatile unsigned int*)(0x4271C094UL)) -#define bFM4_MFS14_UART_ESCR_ESBL *((volatile unsigned int*)(0x4271C098UL)) -#define bFM4_MFS14_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271C09CUL)) -#define bFM4_MFS14_UART_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) -#define bFM4_MFS14_UART_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) -#define bFM4_MFS14_UART_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) -#define bFM4_MFS14_UART_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) -#define bFM4_MFS14_UART_SSR_FRE *((volatile unsigned int*)(0x4271C0B0UL)) -#define bFM4_MFS14_UART_SSR_PE *((volatile unsigned int*)(0x4271C0B4UL)) -#define bFM4_MFS14_UART_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) -#define bFM4_MFS14_UART_RDR_AD *((volatile unsigned int*)(0x4271C120UL)) -#define bFM4_MFS14_UART_TDR_AD *((volatile unsigned int*)(0x4271C120UL)) -#define bFM4_MFS14_UART_BGR_EXT *((volatile unsigned int*)(0x4271C1BCUL)) -#define bFM4_MFS14_UART_BGR1_EXT *((volatile unsigned int*)(0x4271C1BCUL)) -#define bFM4_MFS14_UART_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_UART_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_UART_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_UART_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_UART_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_UART_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_UART_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_UART_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_UART_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_UART_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_UART_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_UART_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_UART_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_UART_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_UART_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_UART_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_UART_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_UART_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) -#define bFM4_MFS14_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) - -/* MFS CSIO channel 14 registers */ -#define bFM4_MFS14_CSIO_SMR_SOE *((volatile unsigned int*)(0x4271C000UL)) -#define bFM4_MFS14_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4271C004UL)) -#define bFM4_MFS14_CSIO_SMR_BDS *((volatile unsigned int*)(0x4271C008UL)) -#define bFM4_MFS14_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271C00CUL)) -#define bFM4_MFS14_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) -#define bFM4_MFS14_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) -#define bFM4_MFS14_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) -#define bFM4_MFS14_CSIO_SCR_TXE *((volatile unsigned int*)(0x4271C020UL)) -#define bFM4_MFS14_CSIO_SCR_RXE *((volatile unsigned int*)(0x4271C024UL)) -#define bFM4_MFS14_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4271C028UL)) -#define bFM4_MFS14_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271C02CUL)) -#define bFM4_MFS14_CSIO_SCR_RIE *((volatile unsigned int*)(0x4271C030UL)) -#define bFM4_MFS14_CSIO_SCR_SPI *((volatile unsigned int*)(0x4271C034UL)) -#define bFM4_MFS14_CSIO_SCR_MS *((volatile unsigned int*)(0x4271C038UL)) -#define bFM4_MFS14_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271C03CUL)) -#define bFM4_MFS14_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4271C080UL)) -#define bFM4_MFS14_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4271C084UL)) -#define bFM4_MFS14_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4271C088UL)) -#define bFM4_MFS14_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271C08CUL)) -#define bFM4_MFS14_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4271C090UL)) -#define bFM4_MFS14_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4271C098UL)) -#define bFM4_MFS14_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271C09CUL)) -#define bFM4_MFS14_CSIO_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) -#define bFM4_MFS14_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) -#define bFM4_MFS14_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) -#define bFM4_MFS14_CSIO_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) -#define bFM4_MFS14_CSIO_SSR_AWC *((volatile unsigned int*)(0x4271C0B0UL)) -#define bFM4_MFS14_CSIO_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) -#define bFM4_MFS14_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_CSIO_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_CSIO_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_CSIO_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4271C380UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4271C384UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4271C388UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271C38CUL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4271C390UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4271C394UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4271C398UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271C39CUL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4271C3A0UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4271C3A4UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4271C3A8UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4271C3ACUL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4271C3B0UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4271C3B4UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4271C3B8UL)) -#define bFM4_MFS14_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4271C3BCUL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4271C400UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4271C404UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4271C408UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271C40CUL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4271C410UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4271C414UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4271C418UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271C41CUL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4271C420UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4271C424UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4271C428UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271C42CUL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4271C430UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4271C434UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4271C438UL)) -#define bFM4_MFS14_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271C43CUL)) -#define bFM4_MFS14_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4271C480UL)) -#define bFM4_MFS14_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4271C484UL)) -#define bFM4_MFS14_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4271C488UL)) -#define bFM4_MFS14_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271C48CUL)) -#define bFM4_MFS14_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4271C490UL)) -#define bFM4_MFS14_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4271C498UL)) -#define bFM4_MFS14_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271C49CUL)) -#define bFM4_MFS14_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4271C4A0UL)) -#define bFM4_MFS14_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4271C4ACUL)) -#define bFM4_MFS14_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4271C4B0UL)) -#define bFM4_MFS14_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4271C4B4UL)) -#define bFM4_MFS14_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4271C500UL)) -#define bFM4_MFS14_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4271C504UL)) -#define bFM4_MFS14_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4271C508UL)) -#define bFM4_MFS14_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271C50CUL)) -#define bFM4_MFS14_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4271C510UL)) -#define bFM4_MFS14_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4271C514UL)) -#define bFM4_MFS14_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4271C518UL)) -#define bFM4_MFS14_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271C51CUL)) -#define bFM4_MFS14_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4271C520UL)) -#define bFM4_MFS14_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4271C524UL)) -#define bFM4_MFS14_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4271C528UL)) -#define bFM4_MFS14_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271C52CUL)) -#define bFM4_MFS14_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4271C530UL)) -#define bFM4_MFS14_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4271C534UL)) -#define bFM4_MFS14_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4271C538UL)) -#define bFM4_MFS14_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271C53CUL)) -#define bFM4_MFS14_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4271C580UL)) -#define bFM4_MFS14_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4271C584UL)) -#define bFM4_MFS14_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4271C588UL)) -#define bFM4_MFS14_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271C58CUL)) -#define bFM4_MFS14_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4271C590UL)) -#define bFM4_MFS14_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4271C594UL)) -#define bFM4_MFS14_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4271C598UL)) -#define bFM4_MFS14_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271C59CUL)) -#define bFM4_MFS14_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4271C5A0UL)) -#define bFM4_MFS14_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4271C5A4UL)) -#define bFM4_MFS14_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4271C5A8UL)) -#define bFM4_MFS14_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4271C5ACUL)) -#define bFM4_MFS14_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4271C5B0UL)) -#define bFM4_MFS14_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4271C5B4UL)) -#define bFM4_MFS14_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4271C5B8UL)) -#define bFM4_MFS14_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4271C5BCUL)) -#define bFM4_MFS14_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4271C600UL)) -#define bFM4_MFS14_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4271C604UL)) -#define bFM4_MFS14_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4271C614UL)) -#define bFM4_MFS14_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4271C618UL)) -#define bFM4_MFS14_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271C61CUL)) -#define bFM4_MFS14_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4271C620UL)) -#define bFM4_MFS14_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4271C624UL)) - -/* MFS LIN channel 14 registers */ -#define bFM4_MFS14_LIN_SMR_SOE *((volatile unsigned int*)(0x4271C000UL)) -#define bFM4_MFS14_LIN_SMR_SBL *((volatile unsigned int*)(0x4271C00CUL)) -#define bFM4_MFS14_LIN_SMR_WUCR *((volatile unsigned int*)(0x4271C010UL)) -#define bFM4_MFS14_LIN_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) -#define bFM4_MFS14_LIN_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) -#define bFM4_MFS14_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) -#define bFM4_MFS14_LIN_SCR_TXE *((volatile unsigned int*)(0x4271C020UL)) -#define bFM4_MFS14_LIN_SCR_RXE *((volatile unsigned int*)(0x4271C024UL)) -#define bFM4_MFS14_LIN_SCR_TBIE *((volatile unsigned int*)(0x4271C028UL)) -#define bFM4_MFS14_LIN_SCR_TIE *((volatile unsigned int*)(0x4271C02CUL)) -#define bFM4_MFS14_LIN_SCR_RIE *((volatile unsigned int*)(0x4271C030UL)) -#define bFM4_MFS14_LIN_SCR_LBR *((volatile unsigned int*)(0x4271C034UL)) -#define bFM4_MFS14_LIN_SCR_MS *((volatile unsigned int*)(0x4271C038UL)) -#define bFM4_MFS14_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271C03CUL)) -#define bFM4_MFS14_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4271C080UL)) -#define bFM4_MFS14_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4271C084UL)) -#define bFM4_MFS14_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4271C088UL)) -#define bFM4_MFS14_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271C08CUL)) -#define bFM4_MFS14_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4271C090UL)) -#define bFM4_MFS14_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4271C098UL)) -#define bFM4_MFS14_LIN_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) -#define bFM4_MFS14_LIN_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) -#define bFM4_MFS14_LIN_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) -#define bFM4_MFS14_LIN_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) -#define bFM4_MFS14_LIN_SSR_FRE *((volatile unsigned int*)(0x4271C0B0UL)) -#define bFM4_MFS14_LIN_SSR_LBD *((volatile unsigned int*)(0x4271C0B4UL)) -#define bFM4_MFS14_LIN_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) -#define bFM4_MFS14_LIN_BGR_EXT *((volatile unsigned int*)(0x4271C1BCUL)) -#define bFM4_MFS14_LIN_BGR1_EXT *((volatile unsigned int*)(0x4271C1BCUL)) -#define bFM4_MFS14_LIN_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_LIN_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_LIN_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_LIN_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_LIN_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_LIN_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_LIN_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_LIN_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_LIN_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_LIN_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) -#define bFM4_MFS14_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) - -/* MFS I2C channel 14 registers */ -#define bFM4_MFS14_I2C_SMR_TIE *((volatile unsigned int*)(0x4271C008UL)) -#define bFM4_MFS14_I2C_SMR_RIE *((volatile unsigned int*)(0x4271C00CUL)) -#define bFM4_MFS14_I2C_SMR_MD0 *((volatile unsigned int*)(0x4271C014UL)) -#define bFM4_MFS14_I2C_SMR_MD1 *((volatile unsigned int*)(0x4271C018UL)) -#define bFM4_MFS14_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271C01CUL)) -#define bFM4_MFS14_I2C_IBCR_INT *((volatile unsigned int*)(0x4271C020UL)) -#define bFM4_MFS14_I2C_IBCR_BER *((volatile unsigned int*)(0x4271C024UL)) -#define bFM4_MFS14_I2C_IBCR_INTE *((volatile unsigned int*)(0x4271C028UL)) -#define bFM4_MFS14_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271C02CUL)) -#define bFM4_MFS14_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4271C030UL)) -#define bFM4_MFS14_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4271C034UL)) -#define bFM4_MFS14_I2C_IBCR_ACT *((volatile unsigned int*)(0x4271C038UL)) -#define bFM4_MFS14_I2C_IBCR_SCC *((volatile unsigned int*)(0x4271C038UL)) -#define bFM4_MFS14_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271C03CUL)) -#define bFM4_MFS14_I2C_IBSR_BB *((volatile unsigned int*)(0x4271C080UL)) -#define bFM4_MFS14_I2C_IBSR_SPC *((volatile unsigned int*)(0x4271C084UL)) -#define bFM4_MFS14_I2C_IBSR_RSC *((volatile unsigned int*)(0x4271C088UL)) -#define bFM4_MFS14_I2C_IBSR_AL *((volatile unsigned int*)(0x4271C08CUL)) -#define bFM4_MFS14_I2C_IBSR_TRX *((volatile unsigned int*)(0x4271C090UL)) -#define bFM4_MFS14_I2C_IBSR_RSA *((volatile unsigned int*)(0x4271C094UL)) -#define bFM4_MFS14_I2C_IBSR_RACK *((volatile unsigned int*)(0x4271C098UL)) -#define bFM4_MFS14_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271C09CUL)) -#define bFM4_MFS14_I2C_SSR_TBI *((volatile unsigned int*)(0x4271C0A0UL)) -#define bFM4_MFS14_I2C_SSR_TDRE *((volatile unsigned int*)(0x4271C0A4UL)) -#define bFM4_MFS14_I2C_SSR_RDRF *((volatile unsigned int*)(0x4271C0A8UL)) -#define bFM4_MFS14_I2C_SSR_ORE *((volatile unsigned int*)(0x4271C0ACUL)) -#define bFM4_MFS14_I2C_SSR_TBIE *((volatile unsigned int*)(0x4271C0B0UL)) -#define bFM4_MFS14_I2C_SSR_DMA *((volatile unsigned int*)(0x4271C0B4UL)) -#define bFM4_MFS14_I2C_SSR_TSET *((volatile unsigned int*)(0x4271C0B8UL)) -#define bFM4_MFS14_I2C_SSR_REC *((volatile unsigned int*)(0x4271C0BCUL)) -#define bFM4_MFS14_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4271C200UL)) -#define bFM4_MFS14_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4271C204UL)) -#define bFM4_MFS14_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4271C208UL)) -#define bFM4_MFS14_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271C20CUL)) -#define bFM4_MFS14_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4271C210UL)) -#define bFM4_MFS14_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4271C214UL)) -#define bFM4_MFS14_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4271C218UL)) -#define bFM4_MFS14_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271C21CUL)) -#define bFM4_MFS14_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4271C220UL)) -#define bFM4_MFS14_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4271C224UL)) -#define bFM4_MFS14_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4271C228UL)) -#define bFM4_MFS14_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271C22CUL)) -#define bFM4_MFS14_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4271C230UL)) -#define bFM4_MFS14_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4271C234UL)) -#define bFM4_MFS14_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4271C238UL)) -#define bFM4_MFS14_I2C_ISMK_EN *((volatile unsigned int*)(0x4271C23CUL)) -#define bFM4_MFS14_I2C_FCR_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_I2C_FCR_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_I2C_FCR_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_I2C_FCR_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_I2C_FCR_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_I2C_FCR_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_I2C_FCR_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4271C280UL)) -#define bFM4_MFS14_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4271C284UL)) -#define bFM4_MFS14_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4271C288UL)) -#define bFM4_MFS14_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271C28CUL)) -#define bFM4_MFS14_I2C_FCR0_FSET *((volatile unsigned int*)(0x4271C290UL)) -#define bFM4_MFS14_I2C_FCR0_FLD *((volatile unsigned int*)(0x4271C294UL)) -#define bFM4_MFS14_I2C_FCR0_FLST *((volatile unsigned int*)(0x4271C298UL)) -#define bFM4_MFS14_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4271C2A0UL)) -#define bFM4_MFS14_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4271C2A4UL)) -#define bFM4_MFS14_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4271C2A8UL)) -#define bFM4_MFS14_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4271C2ACUL)) -#define bFM4_MFS14_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4271C2B0UL)) -#define bFM4_MFS14_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271C33CUL)) -#define bFM4_MFS14_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4271C300UL)) -#define bFM4_MFS14_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4271C304UL)) -#define bFM4_MFS14_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4271C308UL)) -#define bFM4_MFS14_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271C30CUL)) -#define bFM4_MFS14_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4271C310UL)) -#define bFM4_MFS14_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4271C314UL)) -#define bFM4_MFS14_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4271C318UL)) -#define bFM4_MFS14_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271C31CUL)) -#define bFM4_MFS14_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4271C320UL)) -#define bFM4_MFS14_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4271C324UL)) -#define bFM4_MFS14_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4271C328UL)) -#define bFM4_MFS14_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271C32CUL)) -#define bFM4_MFS14_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4271C330UL)) -#define bFM4_MFS14_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4271C334UL)) -#define bFM4_MFS14_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4271C338UL)) -#define bFM4_MFS14_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271C33CUL)) - -/* MFS UART channel 15 registers */ -#define bFM4_MFS15_UART_SMR_SOE *((volatile unsigned int*)(0x4271E000UL)) -#define bFM4_MFS15_UART_SMR_BDS *((volatile unsigned int*)(0x4271E008UL)) -#define bFM4_MFS15_UART_SMR_SBL *((volatile unsigned int*)(0x4271E00CUL)) -#define bFM4_MFS15_UART_SMR_WUCR *((volatile unsigned int*)(0x4271E010UL)) -#define bFM4_MFS15_UART_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) -#define bFM4_MFS15_UART_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) -#define bFM4_MFS15_UART_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) -#define bFM4_MFS15_UART_SCR_TXE *((volatile unsigned int*)(0x4271E020UL)) -#define bFM4_MFS15_UART_SCR_RXE *((volatile unsigned int*)(0x4271E024UL)) -#define bFM4_MFS15_UART_SCR_TBIE *((volatile unsigned int*)(0x4271E028UL)) -#define bFM4_MFS15_UART_SCR_TIE *((volatile unsigned int*)(0x4271E02CUL)) -#define bFM4_MFS15_UART_SCR_RIE *((volatile unsigned int*)(0x4271E030UL)) -#define bFM4_MFS15_UART_SCR_UPCL *((volatile unsigned int*)(0x4271E03CUL)) -#define bFM4_MFS15_UART_ESCR_L0 *((volatile unsigned int*)(0x4271E080UL)) -#define bFM4_MFS15_UART_ESCR_L1 *((volatile unsigned int*)(0x4271E084UL)) -#define bFM4_MFS15_UART_ESCR_L2 *((volatile unsigned int*)(0x4271E088UL)) -#define bFM4_MFS15_UART_ESCR_P *((volatile unsigned int*)(0x4271E08CUL)) -#define bFM4_MFS15_UART_ESCR_PEN *((volatile unsigned int*)(0x4271E090UL)) -#define bFM4_MFS15_UART_ESCR_INV *((volatile unsigned int*)(0x4271E094UL)) -#define bFM4_MFS15_UART_ESCR_ESBL *((volatile unsigned int*)(0x4271E098UL)) -#define bFM4_MFS15_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4271E09CUL)) -#define bFM4_MFS15_UART_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) -#define bFM4_MFS15_UART_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) -#define bFM4_MFS15_UART_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) -#define bFM4_MFS15_UART_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) -#define bFM4_MFS15_UART_SSR_FRE *((volatile unsigned int*)(0x4271E0B0UL)) -#define bFM4_MFS15_UART_SSR_PE *((volatile unsigned int*)(0x4271E0B4UL)) -#define bFM4_MFS15_UART_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) -#define bFM4_MFS15_UART_RDR_AD *((volatile unsigned int*)(0x4271E120UL)) -#define bFM4_MFS15_UART_TDR_AD *((volatile unsigned int*)(0x4271E120UL)) -#define bFM4_MFS15_UART_BGR_EXT *((volatile unsigned int*)(0x4271E1BCUL)) -#define bFM4_MFS15_UART_BGR1_EXT *((volatile unsigned int*)(0x4271E1BCUL)) -#define bFM4_MFS15_UART_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_UART_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_UART_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_UART_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_UART_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_UART_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_UART_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_UART_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_UART_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_UART_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_UART_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_UART_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_UART_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_UART_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_UART_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_UART_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_UART_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_UART_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_UART_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_UART_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) -#define bFM4_MFS15_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) - -/* MFS CSIO channel 15 registers */ -#define bFM4_MFS15_CSIO_SMR_SOE *((volatile unsigned int*)(0x4271E000UL)) -#define bFM4_MFS15_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4271E004UL)) -#define bFM4_MFS15_CSIO_SMR_BDS *((volatile unsigned int*)(0x4271E008UL)) -#define bFM4_MFS15_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4271E00CUL)) -#define bFM4_MFS15_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) -#define bFM4_MFS15_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) -#define bFM4_MFS15_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) -#define bFM4_MFS15_CSIO_SCR_TXE *((volatile unsigned int*)(0x4271E020UL)) -#define bFM4_MFS15_CSIO_SCR_RXE *((volatile unsigned int*)(0x4271E024UL)) -#define bFM4_MFS15_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4271E028UL)) -#define bFM4_MFS15_CSIO_SCR_TIE *((volatile unsigned int*)(0x4271E02CUL)) -#define bFM4_MFS15_CSIO_SCR_RIE *((volatile unsigned int*)(0x4271E030UL)) -#define bFM4_MFS15_CSIO_SCR_SPI *((volatile unsigned int*)(0x4271E034UL)) -#define bFM4_MFS15_CSIO_SCR_MS *((volatile unsigned int*)(0x4271E038UL)) -#define bFM4_MFS15_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4271E03CUL)) -#define bFM4_MFS15_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4271E080UL)) -#define bFM4_MFS15_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4271E084UL)) -#define bFM4_MFS15_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4271E088UL)) -#define bFM4_MFS15_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4271E08CUL)) -#define bFM4_MFS15_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4271E090UL)) -#define bFM4_MFS15_CSIO_ESCR_L3 *((volatile unsigned int*)(0x4271E098UL)) -#define bFM4_MFS15_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4271E09CUL)) -#define bFM4_MFS15_CSIO_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) -#define bFM4_MFS15_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) -#define bFM4_MFS15_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) -#define bFM4_MFS15_CSIO_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) -#define bFM4_MFS15_CSIO_SSR_AWC *((volatile unsigned int*)(0x4271E0B0UL)) -#define bFM4_MFS15_CSIO_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) -#define bFM4_MFS15_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_CSIO_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_CSIO_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_CSIO_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_CSIO_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_CSIO_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD0 *((volatile unsigned int*)(0x4271E380UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD1 *((volatile unsigned int*)(0x4271E384UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD2 *((volatile unsigned int*)(0x4271E388UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD3 *((volatile unsigned int*)(0x4271E38CUL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD4 *((volatile unsigned int*)(0x4271E390UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD5 *((volatile unsigned int*)(0x4271E394UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD6 *((volatile unsigned int*)(0x4271E398UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSHD7 *((volatile unsigned int*)(0x4271E39CUL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU0 *((volatile unsigned int*)(0x4271E3A0UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU1 *((volatile unsigned int*)(0x4271E3A4UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU2 *((volatile unsigned int*)(0x4271E3A8UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU3 *((volatile unsigned int*)(0x4271E3ACUL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU4 *((volatile unsigned int*)(0x4271E3B0UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU5 *((volatile unsigned int*)(0x4271E3B4UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU6 *((volatile unsigned int*)(0x4271E3B8UL)) -#define bFM4_MFS15_CSIO_SCSTR10_CSSU7 *((volatile unsigned int*)(0x4271E3BCUL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS0 *((volatile unsigned int*)(0x4271E400UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS1 *((volatile unsigned int*)(0x4271E404UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS2 *((volatile unsigned int*)(0x4271E408UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS3 *((volatile unsigned int*)(0x4271E40CUL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS4 *((volatile unsigned int*)(0x4271E410UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS5 *((volatile unsigned int*)(0x4271E414UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS6 *((volatile unsigned int*)(0x4271E418UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS7 *((volatile unsigned int*)(0x4271E41CUL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS8 *((volatile unsigned int*)(0x4271E420UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS9 *((volatile unsigned int*)(0x4271E424UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS10 *((volatile unsigned int*)(0x4271E428UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS11 *((volatile unsigned int*)(0x4271E42CUL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS12 *((volatile unsigned int*)(0x4271E430UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS13 *((volatile unsigned int*)(0x4271E434UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS14 *((volatile unsigned int*)(0x4271E438UL)) -#define bFM4_MFS15_CSIO_SCSTR32_CSDS15 *((volatile unsigned int*)(0x4271E43CUL)) -#define bFM4_MFS15_CSIO_SACSR_TMRE *((volatile unsigned int*)(0x4271E480UL)) -#define bFM4_MFS15_CSIO_SACSR_TDIV0 *((volatile unsigned int*)(0x4271E484UL)) -#define bFM4_MFS15_CSIO_SACSR_TDIV1 *((volatile unsigned int*)(0x4271E488UL)) -#define bFM4_MFS15_CSIO_SACSR_TDIV2 *((volatile unsigned int*)(0x4271E48CUL)) -#define bFM4_MFS15_CSIO_SACSR_TDIV3 *((volatile unsigned int*)(0x4271E490UL)) -#define bFM4_MFS15_CSIO_SACSR_TSYNE *((volatile unsigned int*)(0x4271E498UL)) -#define bFM4_MFS15_CSIO_SACSR_TINTE *((volatile unsigned int*)(0x4271E49CUL)) -#define bFM4_MFS15_CSIO_SACSR_TINT *((volatile unsigned int*)(0x4271E4A0UL)) -#define bFM4_MFS15_CSIO_SACSR_CSE *((volatile unsigned int*)(0x4271E4ACUL)) -#define bFM4_MFS15_CSIO_SACSR_CSEIE *((volatile unsigned int*)(0x4271E4B0UL)) -#define bFM4_MFS15_CSIO_SACSR_TBEEN *((volatile unsigned int*)(0x4271E4B4UL)) -#define bFM4_MFS15_CSIO_STMR_TM0 *((volatile unsigned int*)(0x4271E500UL)) -#define bFM4_MFS15_CSIO_STMR_TM1 *((volatile unsigned int*)(0x4271E504UL)) -#define bFM4_MFS15_CSIO_STMR_TM2 *((volatile unsigned int*)(0x4271E508UL)) -#define bFM4_MFS15_CSIO_STMR_TM3 *((volatile unsigned int*)(0x4271E50CUL)) -#define bFM4_MFS15_CSIO_STMR_TM4 *((volatile unsigned int*)(0x4271E510UL)) -#define bFM4_MFS15_CSIO_STMR_TM5 *((volatile unsigned int*)(0x4271E514UL)) -#define bFM4_MFS15_CSIO_STMR_TM6 *((volatile unsigned int*)(0x4271E518UL)) -#define bFM4_MFS15_CSIO_STMR_TM7 *((volatile unsigned int*)(0x4271E51CUL)) -#define bFM4_MFS15_CSIO_STMR_TM8 *((volatile unsigned int*)(0x4271E520UL)) -#define bFM4_MFS15_CSIO_STMR_TM9 *((volatile unsigned int*)(0x4271E524UL)) -#define bFM4_MFS15_CSIO_STMR_TM10 *((volatile unsigned int*)(0x4271E528UL)) -#define bFM4_MFS15_CSIO_STMR_TM11 *((volatile unsigned int*)(0x4271E52CUL)) -#define bFM4_MFS15_CSIO_STMR_TM12 *((volatile unsigned int*)(0x4271E530UL)) -#define bFM4_MFS15_CSIO_STMR_TM13 *((volatile unsigned int*)(0x4271E534UL)) -#define bFM4_MFS15_CSIO_STMR_TM14 *((volatile unsigned int*)(0x4271E538UL)) -#define bFM4_MFS15_CSIO_STMR_TM15 *((volatile unsigned int*)(0x4271E53CUL)) -#define bFM4_MFS15_CSIO_STMCR_TC0 *((volatile unsigned int*)(0x4271E580UL)) -#define bFM4_MFS15_CSIO_STMCR_TC1 *((volatile unsigned int*)(0x4271E584UL)) -#define bFM4_MFS15_CSIO_STMCR_TC2 *((volatile unsigned int*)(0x4271E588UL)) -#define bFM4_MFS15_CSIO_STMCR_TC3 *((volatile unsigned int*)(0x4271E58CUL)) -#define bFM4_MFS15_CSIO_STMCR_TC4 *((volatile unsigned int*)(0x4271E590UL)) -#define bFM4_MFS15_CSIO_STMCR_TC5 *((volatile unsigned int*)(0x4271E594UL)) -#define bFM4_MFS15_CSIO_STMCR_TC6 *((volatile unsigned int*)(0x4271E598UL)) -#define bFM4_MFS15_CSIO_STMCR_TC7 *((volatile unsigned int*)(0x4271E59CUL)) -#define bFM4_MFS15_CSIO_STMCR_TC8 *((volatile unsigned int*)(0x4271E5A0UL)) -#define bFM4_MFS15_CSIO_STMCR_TC9 *((volatile unsigned int*)(0x4271E5A4UL)) -#define bFM4_MFS15_CSIO_STMCR_TC10 *((volatile unsigned int*)(0x4271E5A8UL)) -#define bFM4_MFS15_CSIO_STMCR_TC11 *((volatile unsigned int*)(0x4271E5ACUL)) -#define bFM4_MFS15_CSIO_STMCR_TC12 *((volatile unsigned int*)(0x4271E5B0UL)) -#define bFM4_MFS15_CSIO_STMCR_TC13 *((volatile unsigned int*)(0x4271E5B4UL)) -#define bFM4_MFS15_CSIO_STMCR_TC14 *((volatile unsigned int*)(0x4271E5B8UL)) -#define bFM4_MFS15_CSIO_STMCR_TC15 *((volatile unsigned int*)(0x4271E5BCUL)) -#define bFM4_MFS15_CSIO_SCSCR_CSOE *((volatile unsigned int*)(0x4271E600UL)) -#define bFM4_MFS15_CSIO_SCSCR_CSEN0 *((volatile unsigned int*)(0x4271E604UL)) -#define bFM4_MFS15_CSIO_SCSCR_CSLVL *((volatile unsigned int*)(0x4271E614UL)) -#define bFM4_MFS15_CSIO_SCSCR_CDIV0 *((volatile unsigned int*)(0x4271E618UL)) -#define bFM4_MFS15_CSIO_SCSCR_CDIV1 *((volatile unsigned int*)(0x4271E61CUL)) -#define bFM4_MFS15_CSIO_SCSCR_CDIV2 *((volatile unsigned int*)(0x4271E620UL)) -#define bFM4_MFS15_CSIO_SCSCR_SCAM *((volatile unsigned int*)(0x4271E624UL)) - -/* MFS LIN channel 15 registers */ -#define bFM4_MFS15_LIN_SMR_SOE *((volatile unsigned int*)(0x4271E000UL)) -#define bFM4_MFS15_LIN_SMR_SBL *((volatile unsigned int*)(0x4271E00CUL)) -#define bFM4_MFS15_LIN_SMR_WUCR *((volatile unsigned int*)(0x4271E010UL)) -#define bFM4_MFS15_LIN_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) -#define bFM4_MFS15_LIN_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) -#define bFM4_MFS15_LIN_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) -#define bFM4_MFS15_LIN_SCR_TXE *((volatile unsigned int*)(0x4271E020UL)) -#define bFM4_MFS15_LIN_SCR_RXE *((volatile unsigned int*)(0x4271E024UL)) -#define bFM4_MFS15_LIN_SCR_TBIE *((volatile unsigned int*)(0x4271E028UL)) -#define bFM4_MFS15_LIN_SCR_TIE *((volatile unsigned int*)(0x4271E02CUL)) -#define bFM4_MFS15_LIN_SCR_RIE *((volatile unsigned int*)(0x4271E030UL)) -#define bFM4_MFS15_LIN_SCR_LBR *((volatile unsigned int*)(0x4271E034UL)) -#define bFM4_MFS15_LIN_SCR_MS *((volatile unsigned int*)(0x4271E038UL)) -#define bFM4_MFS15_LIN_SCR_UPCL *((volatile unsigned int*)(0x4271E03CUL)) -#define bFM4_MFS15_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4271E080UL)) -#define bFM4_MFS15_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4271E084UL)) -#define bFM4_MFS15_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4271E088UL)) -#define bFM4_MFS15_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4271E08CUL)) -#define bFM4_MFS15_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4271E090UL)) -#define bFM4_MFS15_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4271E098UL)) -#define bFM4_MFS15_LIN_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) -#define bFM4_MFS15_LIN_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) -#define bFM4_MFS15_LIN_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) -#define bFM4_MFS15_LIN_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) -#define bFM4_MFS15_LIN_SSR_FRE *((volatile unsigned int*)(0x4271E0B0UL)) -#define bFM4_MFS15_LIN_SSR_LBD *((volatile unsigned int*)(0x4271E0B4UL)) -#define bFM4_MFS15_LIN_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) -#define bFM4_MFS15_LIN_BGR_EXT *((volatile unsigned int*)(0x4271E1BCUL)) -#define bFM4_MFS15_LIN_BGR1_EXT *((volatile unsigned int*)(0x4271E1BCUL)) -#define bFM4_MFS15_LIN_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_LIN_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_LIN_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_LIN_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_LIN_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_LIN_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_LIN_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_LIN_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_LIN_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_LIN_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_LIN_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_LIN_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) -#define bFM4_MFS15_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) - -/* MFS I2C channel 15 registers */ -#define bFM4_MFS15_I2C_SMR_TIE *((volatile unsigned int*)(0x4271E008UL)) -#define bFM4_MFS15_I2C_SMR_RIE *((volatile unsigned int*)(0x4271E00CUL)) -#define bFM4_MFS15_I2C_SMR_MD0 *((volatile unsigned int*)(0x4271E014UL)) -#define bFM4_MFS15_I2C_SMR_MD1 *((volatile unsigned int*)(0x4271E018UL)) -#define bFM4_MFS15_I2C_SMR_MD2 *((volatile unsigned int*)(0x4271E01CUL)) -#define bFM4_MFS15_I2C_IBCR_INT *((volatile unsigned int*)(0x4271E020UL)) -#define bFM4_MFS15_I2C_IBCR_BER *((volatile unsigned int*)(0x4271E024UL)) -#define bFM4_MFS15_I2C_IBCR_INTE *((volatile unsigned int*)(0x4271E028UL)) -#define bFM4_MFS15_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4271E02CUL)) -#define bFM4_MFS15_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4271E030UL)) -#define bFM4_MFS15_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4271E034UL)) -#define bFM4_MFS15_I2C_IBCR_ACT *((volatile unsigned int*)(0x4271E038UL)) -#define bFM4_MFS15_I2C_IBCR_SCC *((volatile unsigned int*)(0x4271E038UL)) -#define bFM4_MFS15_I2C_IBCR_MSS *((volatile unsigned int*)(0x4271E03CUL)) -#define bFM4_MFS15_I2C_IBSR_BB *((volatile unsigned int*)(0x4271E080UL)) -#define bFM4_MFS15_I2C_IBSR_SPC *((volatile unsigned int*)(0x4271E084UL)) -#define bFM4_MFS15_I2C_IBSR_RSC *((volatile unsigned int*)(0x4271E088UL)) -#define bFM4_MFS15_I2C_IBSR_AL *((volatile unsigned int*)(0x4271E08CUL)) -#define bFM4_MFS15_I2C_IBSR_TRX *((volatile unsigned int*)(0x4271E090UL)) -#define bFM4_MFS15_I2C_IBSR_RSA *((volatile unsigned int*)(0x4271E094UL)) -#define bFM4_MFS15_I2C_IBSR_RACK *((volatile unsigned int*)(0x4271E098UL)) -#define bFM4_MFS15_I2C_IBSR_FBT *((volatile unsigned int*)(0x4271E09CUL)) -#define bFM4_MFS15_I2C_SSR_TBI *((volatile unsigned int*)(0x4271E0A0UL)) -#define bFM4_MFS15_I2C_SSR_TDRE *((volatile unsigned int*)(0x4271E0A4UL)) -#define bFM4_MFS15_I2C_SSR_RDRF *((volatile unsigned int*)(0x4271E0A8UL)) -#define bFM4_MFS15_I2C_SSR_ORE *((volatile unsigned int*)(0x4271E0ACUL)) -#define bFM4_MFS15_I2C_SSR_TBIE *((volatile unsigned int*)(0x4271E0B0UL)) -#define bFM4_MFS15_I2C_SSR_DMA *((volatile unsigned int*)(0x4271E0B4UL)) -#define bFM4_MFS15_I2C_SSR_TSET *((volatile unsigned int*)(0x4271E0B8UL)) -#define bFM4_MFS15_I2C_SSR_REC *((volatile unsigned int*)(0x4271E0BCUL)) -#define bFM4_MFS15_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4271E200UL)) -#define bFM4_MFS15_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4271E204UL)) -#define bFM4_MFS15_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4271E208UL)) -#define bFM4_MFS15_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4271E20CUL)) -#define bFM4_MFS15_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4271E210UL)) -#define bFM4_MFS15_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4271E214UL)) -#define bFM4_MFS15_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4271E218UL)) -#define bFM4_MFS15_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4271E21CUL)) -#define bFM4_MFS15_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4271E220UL)) -#define bFM4_MFS15_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4271E224UL)) -#define bFM4_MFS15_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4271E228UL)) -#define bFM4_MFS15_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4271E22CUL)) -#define bFM4_MFS15_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4271E230UL)) -#define bFM4_MFS15_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4271E234UL)) -#define bFM4_MFS15_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4271E238UL)) -#define bFM4_MFS15_I2C_ISMK_EN *((volatile unsigned int*)(0x4271E23CUL)) -#define bFM4_MFS15_I2C_FCR_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_I2C_FCR_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_I2C_FCR_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_I2C_FCR_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_I2C_FCR_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_I2C_FCR_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_I2C_FCR_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_I2C_FCR_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4271E280UL)) -#define bFM4_MFS15_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4271E284UL)) -#define bFM4_MFS15_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4271E288UL)) -#define bFM4_MFS15_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4271E28CUL)) -#define bFM4_MFS15_I2C_FCR0_FSET *((volatile unsigned int*)(0x4271E290UL)) -#define bFM4_MFS15_I2C_FCR0_FLD *((volatile unsigned int*)(0x4271E294UL)) -#define bFM4_MFS15_I2C_FCR0_FLST *((volatile unsigned int*)(0x4271E298UL)) -#define bFM4_MFS15_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4271E2A0UL)) -#define bFM4_MFS15_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4271E2A4UL)) -#define bFM4_MFS15_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4271E2A8UL)) -#define bFM4_MFS15_I2C_FCR1_FRIIE *((volatile unsigned int*)(0x4271E2ACUL)) -#define bFM4_MFS15_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4271E2B0UL)) -#define bFM4_MFS15_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4271E33CUL)) -#define bFM4_MFS15_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4271E300UL)) -#define bFM4_MFS15_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4271E304UL)) -#define bFM4_MFS15_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4271E308UL)) -#define bFM4_MFS15_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4271E30CUL)) -#define bFM4_MFS15_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4271E310UL)) -#define bFM4_MFS15_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4271E314UL)) -#define bFM4_MFS15_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4271E318UL)) -#define bFM4_MFS15_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4271E31CUL)) -#define bFM4_MFS15_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4271E320UL)) -#define bFM4_MFS15_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4271E324UL)) -#define bFM4_MFS15_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4271E328UL)) -#define bFM4_MFS15_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4271E32CUL)) -#define bFM4_MFS15_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4271E330UL)) -#define bFM4_MFS15_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4271E334UL)) -#define bFM4_MFS15_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4271E338UL)) -#define bFM4_MFS15_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4271E33CUL)) - -/* CRC registers */ -#define bFM4_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) -#define bFM4_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) -#define bFM4_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) -#define bFM4_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) -#define bFM4_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) -#define bFM4_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) -#define bFM4_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) - -/* Watch counter registers */ -#define bFM4_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) -#define bFM4_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) -#define bFM4_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) -#define bFM4_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) -#define bFM4_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) -#define bFM4_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) -#define bFM4_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) -#define bFM4_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) -#define bFM4_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) -#define bFM4_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) -#define bFM4_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) -#define bFM4_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) -#define bFM4_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) -#define bFM4_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) -#define bFM4_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) -#define bFM4_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) -#define bFM4_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) -#define bFM4_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) -#define bFM4_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) -#define bFM4_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) -#define bFM4_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) -#define bFM4_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) - -/* Real time clock registers */ -#define bFM4_RTC_WTCR10_ST *((volatile unsigned int*)(0x42762000UL)) -#define bFM4_RTC_WTCR10_RUN *((volatile unsigned int*)(0x42762008UL)) -#define bFM4_RTC_WTCR10_SRST *((volatile unsigned int*)(0x4276200CUL)) -#define bFM4_RTC_WTCR10_SCST *((volatile unsigned int*)(0x42762010UL)) -#define bFM4_RTC_WTCR10_SCRST *((volatile unsigned int*)(0x42762014UL)) -#define bFM4_RTC_WTCR10_BUSY *((volatile unsigned int*)(0x42762018UL)) -#define bFM4_RTC_WTCR10_TRANS *((volatile unsigned int*)(0x4276201CUL)) -#define bFM4_RTC_WTCR11_MIEN *((volatile unsigned int*)(0x42762080UL)) -#define bFM4_RTC_WTCR11_HEN *((volatile unsigned int*)(0x42762084UL)) -#define bFM4_RTC_WTCR11_DEN *((volatile unsigned int*)(0x42762088UL)) -#define bFM4_RTC_WTCR11_MOEN *((volatile unsigned int*)(0x4276208CUL)) -#define bFM4_RTC_WTCR11_YEN *((volatile unsigned int*)(0x42762090UL)) -#define bFM4_RTC_WTCR12_INTSSI *((volatile unsigned int*)(0x42762100UL)) -#define bFM4_RTC_WTCR12_INTSI *((volatile unsigned int*)(0x42762104UL)) -#define bFM4_RTC_WTCR12_INTMI *((volatile unsigned int*)(0x42762108UL)) -#define bFM4_RTC_WTCR12_INTHI *((volatile unsigned int*)(0x4276210CUL)) -#define bFM4_RTC_WTCR12_INTTMI *((volatile unsigned int*)(0x42762110UL)) -#define bFM4_RTC_WTCR12_INTALI *((volatile unsigned int*)(0x42762114UL)) -#define bFM4_RTC_WTCR12_INTERI *((volatile unsigned int*)(0x42762118UL)) -#define bFM4_RTC_WTCR12_INTCRI *((volatile unsigned int*)(0x4276211CUL)) -#define bFM4_RTC_WTCR13_INTSSIE *((volatile unsigned int*)(0x42762180UL)) -#define bFM4_RTC_WTCR13_INTSIE *((volatile unsigned int*)(0x42762184UL)) -#define bFM4_RTC_WTCR13_INTMIE *((volatile unsigned int*)(0x42762188UL)) -#define bFM4_RTC_WTCR13_INTHIE *((volatile unsigned int*)(0x4276218CUL)) -#define bFM4_RTC_WTCR13_INTTMIE *((volatile unsigned int*)(0x42762190UL)) -#define bFM4_RTC_WTCR13_INTALIE *((volatile unsigned int*)(0x42762194UL)) -#define bFM4_RTC_WTCR13_INTERIE *((volatile unsigned int*)(0x42762198UL)) -#define bFM4_RTC_WTCR13_INTCRIE *((volatile unsigned int*)(0x4276219CUL)) -#define bFM4_RTC_WTCR20_CREAD *((volatile unsigned int*)(0x42762200UL)) -#define bFM4_RTC_WTCR20_CWRITE *((volatile unsigned int*)(0x42762204UL)) -#define bFM4_RTC_WTCR20_BREAD *((volatile unsigned int*)(0x42762208UL)) -#define bFM4_RTC_WTCR20_BWRITE *((volatile unsigned int*)(0x4276220CUL)) -#define bFM4_RTC_WTCR20_PREAD *((volatile unsigned int*)(0x42762210UL)) -#define bFM4_RTC_WTCR20_PWRITE *((volatile unsigned int*)(0x42762214UL)) -#define bFM4_RTC_WTCR21_TMST *((volatile unsigned int*)(0x42762280UL)) -#define bFM4_RTC_WTCR21_TMEN *((volatile unsigned int*)(0x42762284UL)) -#define bFM4_RTC_WTCR21_TMRUN *((volatile unsigned int*)(0x42762288UL)) -#define bFM4_RTC_WTSR_S0 *((volatile unsigned int*)(0x42762380UL)) -#define bFM4_RTC_WTSR_S1 *((volatile unsigned int*)(0x42762384UL)) -#define bFM4_RTC_WTSR_S2 *((volatile unsigned int*)(0x42762388UL)) -#define bFM4_RTC_WTSR_S3 *((volatile unsigned int*)(0x4276238CUL)) -#define bFM4_RTC_WTSR_TS0 *((volatile unsigned int*)(0x42762390UL)) -#define bFM4_RTC_WTSR_TS1 *((volatile unsigned int*)(0x42762394UL)) -#define bFM4_RTC_WTSR_TS2 *((volatile unsigned int*)(0x42762398UL)) -#define bFM4_RTC_WTMIR_MI0 *((volatile unsigned int*)(0x42762400UL)) -#define bFM4_RTC_WTMIR_MI1 *((volatile unsigned int*)(0x42762404UL)) -#define bFM4_RTC_WTMIR_MI2 *((volatile unsigned int*)(0x42762408UL)) -#define bFM4_RTC_WTMIR_MI3 *((volatile unsigned int*)(0x4276240CUL)) -#define bFM4_RTC_WTMIR_TMI0 *((volatile unsigned int*)(0x42762410UL)) -#define bFM4_RTC_WTMIR_TMI1 *((volatile unsigned int*)(0x42762414UL)) -#define bFM4_RTC_WTMIR_TMI2 *((volatile unsigned int*)(0x42762418UL)) -#define bFM4_RTC_WTHR_H0 *((volatile unsigned int*)(0x42762480UL)) -#define bFM4_RTC_WTHR_H1 *((volatile unsigned int*)(0x42762484UL)) -#define bFM4_RTC_WTHR_H2 *((volatile unsigned int*)(0x42762488UL)) -#define bFM4_RTC_WTHR_H3 *((volatile unsigned int*)(0x4276248CUL)) -#define bFM4_RTC_WTHR_TH0 *((volatile unsigned int*)(0x42762490UL)) -#define bFM4_RTC_WTHR_TH1 *((volatile unsigned int*)(0x42762494UL)) -#define bFM4_RTC_WTDR_D0 *((volatile unsigned int*)(0x42762500UL)) -#define bFM4_RTC_WTDR_D1 *((volatile unsigned int*)(0x42762504UL)) -#define bFM4_RTC_WTDR_D2 *((volatile unsigned int*)(0x42762508UL)) -#define bFM4_RTC_WTDR_D3 *((volatile unsigned int*)(0x4276250CUL)) -#define bFM4_RTC_WTDR_TD0 *((volatile unsigned int*)(0x42762510UL)) -#define bFM4_RTC_WTDR_TD1 *((volatile unsigned int*)(0x42762514UL)) -#define bFM4_RTC_WTDW_DW0 *((volatile unsigned int*)(0x42762580UL)) -#define bFM4_RTC_WTDW_DW1 *((volatile unsigned int*)(0x42762584UL)) -#define bFM4_RTC_WTDW_DW2 *((volatile unsigned int*)(0x42762588UL)) -#define bFM4_RTC_WTMOR_MO0 *((volatile unsigned int*)(0x42762600UL)) -#define bFM4_RTC_WTMOR_MO1 *((volatile unsigned int*)(0x42762604UL)) -#define bFM4_RTC_WTMOR_MO2 *((volatile unsigned int*)(0x42762608UL)) -#define bFM4_RTC_WTMOR_MO3 *((volatile unsigned int*)(0x4276260CUL)) -#define bFM4_RTC_WTMOR_TMO *((volatile unsigned int*)(0x42762610UL)) -#define bFM4_RTC_WTYR_Y0 *((volatile unsigned int*)(0x42762680UL)) -#define bFM4_RTC_WTYR_Y1 *((volatile unsigned int*)(0x42762684UL)) -#define bFM4_RTC_WTYR_Y2 *((volatile unsigned int*)(0x42762688UL)) -#define bFM4_RTC_WTYR_Y3 *((volatile unsigned int*)(0x4276268CUL)) -#define bFM4_RTC_WTYR_TY0 *((volatile unsigned int*)(0x42762690UL)) -#define bFM4_RTC_WTYR_TY1 *((volatile unsigned int*)(0x42762694UL)) -#define bFM4_RTC_WTYR_TY2 *((volatile unsigned int*)(0x42762698UL)) -#define bFM4_RTC_WTYR_TY3 *((volatile unsigned int*)(0x4276269CUL)) -#define bFM4_RTC_ALMIR_AMI0 *((volatile unsigned int*)(0x42762700UL)) -#define bFM4_RTC_ALMIR_AMI1 *((volatile unsigned int*)(0x42762704UL)) -#define bFM4_RTC_ALMIR_AMI2 *((volatile unsigned int*)(0x42762708UL)) -#define bFM4_RTC_ALMIR_AMI3 *((volatile unsigned int*)(0x4276270CUL)) -#define bFM4_RTC_ALMIR_TAMI0 *((volatile unsigned int*)(0x42762710UL)) -#define bFM4_RTC_ALMIR_TAMI1 *((volatile unsigned int*)(0x42762714UL)) -#define bFM4_RTC_ALMIR_TAMI2 *((volatile unsigned int*)(0x42762718UL)) -#define bFM4_RTC_ALHR_AH0 *((volatile unsigned int*)(0x42762780UL)) -#define bFM4_RTC_ALHR_AH1 *((volatile unsigned int*)(0x42762784UL)) -#define bFM4_RTC_ALHR_AH2 *((volatile unsigned int*)(0x42762788UL)) -#define bFM4_RTC_ALHR_AH3 *((volatile unsigned int*)(0x4276278CUL)) -#define bFM4_RTC_ALHR_TAH0 *((volatile unsigned int*)(0x42762790UL)) -#define bFM4_RTC_ALHR_TAH1 *((volatile unsigned int*)(0x42762794UL)) -#define bFM4_RTC_ALDR_AD0 *((volatile unsigned int*)(0x42762800UL)) -#define bFM4_RTC_ALDR_AD1 *((volatile unsigned int*)(0x42762804UL)) -#define bFM4_RTC_ALDR_AD2 *((volatile unsigned int*)(0x42762808UL)) -#define bFM4_RTC_ALDR_AD3 *((volatile unsigned int*)(0x4276280CUL)) -#define bFM4_RTC_ALDR_TAD0 *((volatile unsigned int*)(0x42762810UL)) -#define bFM4_RTC_ALDR_TAD1 *((volatile unsigned int*)(0x42762814UL)) -#define bFM4_RTC_ALMOR_AMO0 *((volatile unsigned int*)(0x42762880UL)) -#define bFM4_RTC_ALMOR_AMO1 *((volatile unsigned int*)(0x42762884UL)) -#define bFM4_RTC_ALMOR_AMO2 *((volatile unsigned int*)(0x42762888UL)) -#define bFM4_RTC_ALMOR_AMO3 *((volatile unsigned int*)(0x4276288CUL)) -#define bFM4_RTC_ALMOR_TAMO *((volatile unsigned int*)(0x42762890UL)) -#define bFM4_RTC_ALYR_AY0 *((volatile unsigned int*)(0x42762900UL)) -#define bFM4_RTC_ALYR_AY1 *((volatile unsigned int*)(0x42762904UL)) -#define bFM4_RTC_ALYR_AY2 *((volatile unsigned int*)(0x42762908UL)) -#define bFM4_RTC_ALYR_AY3 *((volatile unsigned int*)(0x4276290CUL)) -#define bFM4_RTC_ALYR_TAY0 *((volatile unsigned int*)(0x42762910UL)) -#define bFM4_RTC_ALYR_TAY1 *((volatile unsigned int*)(0x42762914UL)) -#define bFM4_RTC_ALYR_TAY2 *((volatile unsigned int*)(0x42762918UL)) -#define bFM4_RTC_ALYR_TAY3 *((volatile unsigned int*)(0x4276291CUL)) -#define bFM4_RTC_WTTR0_TM0 *((volatile unsigned int*)(0x42762980UL)) -#define bFM4_RTC_WTTR0_TM1 *((volatile unsigned int*)(0x42762984UL)) -#define bFM4_RTC_WTTR0_TM2 *((volatile unsigned int*)(0x42762988UL)) -#define bFM4_RTC_WTTR0_TM3 *((volatile unsigned int*)(0x4276298CUL)) -#define bFM4_RTC_WTTR0_TM4 *((volatile unsigned int*)(0x42762990UL)) -#define bFM4_RTC_WTTR0_TM5 *((volatile unsigned int*)(0x42762994UL)) -#define bFM4_RTC_WTTR0_TM6 *((volatile unsigned int*)(0x42762998UL)) -#define bFM4_RTC_WTTR0_TM7 *((volatile unsigned int*)(0x4276299CUL)) -#define bFM4_RTC_WTTR1_TM8 *((volatile unsigned int*)(0x42762A00UL)) -#define bFM4_RTC_WTTR1_TM9 *((volatile unsigned int*)(0x42762A04UL)) -#define bFM4_RTC_WTTR1_TM10 *((volatile unsigned int*)(0x42762A08UL)) -#define bFM4_RTC_WTTR1_TM11 *((volatile unsigned int*)(0x42762A0CUL)) -#define bFM4_RTC_WTTR1_TM12 *((volatile unsigned int*)(0x42762A10UL)) -#define bFM4_RTC_WTTR1_TM13 *((volatile unsigned int*)(0x42762A14UL)) -#define bFM4_RTC_WTTR1_TM14 *((volatile unsigned int*)(0x42762A18UL)) -#define bFM4_RTC_WTTR1_TM15 *((volatile unsigned int*)(0x42762A1CUL)) -#define bFM4_RTC_WTTR2_TM16 *((volatile unsigned int*)(0x42762A80UL)) -#define bFM4_RTC_WTTR2_TM17 *((volatile unsigned int*)(0x42762A84UL)) -#define bFM4_RTC_WTCAL1_WTCAL10 *((volatile unsigned int*)(0x42762B80UL)) -#define bFM4_RTC_WTCAL1_WTCAL11 *((volatile unsigned int*)(0x42762B84UL)) -#define bFM4_RTC_WTCALEN_WTCALEN *((volatile unsigned int*)(0x42762C00UL)) -#define bFM4_RTC_WTDIV_WTDIV0 *((volatile unsigned int*)(0x42762C80UL)) -#define bFM4_RTC_WTDIV_WTDIV1 *((volatile unsigned int*)(0x42762C84UL)) -#define bFM4_RTC_WTDIV_WTDIV2 *((volatile unsigned int*)(0x42762C88UL)) -#define bFM4_RTC_WTDIV_WTDIV3 *((volatile unsigned int*)(0x42762C8CUL)) -#define bFM4_RTC_WTDIVEN_WTDIVEN *((volatile unsigned int*)(0x42762D00UL)) -#define bFM4_RTC_WTDIVEN_WTDIVRDY *((volatile unsigned int*)(0x42762D04UL)) -#define bFM4_RTC_WTCALPRD_WTCALPRD0 *((volatile unsigned int*)(0x42762D80UL)) -#define bFM4_RTC_WTCALPRD_WTCALPRD1 *((volatile unsigned int*)(0x42762D84UL)) -#define bFM4_RTC_WTCALPRD_WTCALPRD2 *((volatile unsigned int*)(0x42762D88UL)) -#define bFM4_RTC_WTCALPRD_WTCALPRD3 *((volatile unsigned int*)(0x42762D8CUL)) -#define bFM4_RTC_WTCALPRD_WTCALPRD4 *((volatile unsigned int*)(0x42762D90UL)) -#define bFM4_RTC_WTCALPRD_WTCALPRD5 *((volatile unsigned int*)(0x42762D94UL)) -#define bFM4_RTC_WTCOSEL_WTCOSEL *((volatile unsigned int*)(0x42762E00UL)) -#define bFM4_RTC_VB_CLKDIV_DIV0 *((volatile unsigned int*)(0x42762E80UL)) -#define bFM4_RTC_VB_CLKDIV_DIV1 *((volatile unsigned int*)(0x42762E84UL)) -#define bFM4_RTC_VB_CLKDIV_DIV2 *((volatile unsigned int*)(0x42762E88UL)) -#define bFM4_RTC_VB_CLKDIV_DIV3 *((volatile unsigned int*)(0x42762E8CUL)) -#define bFM4_RTC_VB_CLKDIV_DIV4 *((volatile unsigned int*)(0x42762E90UL)) -#define bFM4_RTC_VB_CLKDIV_DIV5 *((volatile unsigned int*)(0x42762E94UL)) -#define bFM4_RTC_VB_CLKDIV_DIV6 *((volatile unsigned int*)(0x42762E98UL)) -#define bFM4_RTC_VB_CLKDIV_DIV7 *((volatile unsigned int*)(0x42762E9CUL)) -#define bFM4_RTC_WTOSCCNT_SOSCEX *((volatile unsigned int*)(0x42762F00UL)) -#define bFM4_RTC_WTOSCCNT_SOSCNTL *((volatile unsigned int*)(0x42762F04UL)) -#define bFM4_RTC_BOOST_BOOST0 *((volatile unsigned int*)(0x42763100UL)) -#define bFM4_RTC_BOOST_BOOST1 *((volatile unsigned int*)(0x42763104UL)) -#define bFM4_RTC_EWKUP_WUP0 *((volatile unsigned int*)(0x42763180UL)) -#define bFM4_RTC_VDET_PON *((volatile unsigned int*)(0x4276321CUL)) -#define bFM4_RTC_HIBRST_HIBRST *((volatile unsigned int*)(0x42763300UL)) -#define bFM4_RTC_VBPFR_VPFR0 *((volatile unsigned int*)(0x42763380UL)) -#define bFM4_RTC_VBPFR_VPFR1 *((volatile unsigned int*)(0x42763384UL)) -#define bFM4_RTC_VBPFR_VPFR2 *((volatile unsigned int*)(0x42763388UL)) -#define bFM4_RTC_VBPFR_VPFR3 *((volatile unsigned int*)(0x4276338CUL)) -#define bFM4_RTC_VBPFR_SPSR0 *((volatile unsigned int*)(0x42763390UL)) -#define bFM4_RTC_VBPFR_SPSR1 *((volatile unsigned int*)(0x42763394UL)) -#define bFM4_RTC_VBPCR_VPCR0 *((volatile unsigned int*)(0x42763400UL)) -#define bFM4_RTC_VBPCR_VPCR1 *((volatile unsigned int*)(0x42763404UL)) -#define bFM4_RTC_VBPCR_VPCR2 *((volatile unsigned int*)(0x42763408UL)) -#define bFM4_RTC_VBPCR_VPCR3 *((volatile unsigned int*)(0x4276340CUL)) -#define bFM4_RTC_VBDDR_VDDR0 *((volatile unsigned int*)(0x42763480UL)) -#define bFM4_RTC_VBDDR_VDDR1 *((volatile unsigned int*)(0x42763484UL)) -#define bFM4_RTC_VBDDR_VDDR2 *((volatile unsigned int*)(0x42763488UL)) -#define bFM4_RTC_VBDDR_VDDR3 *((volatile unsigned int*)(0x4276348CUL)) -#define bFM4_RTC_VBDIR_VDIR0 *((volatile unsigned int*)(0x42763500UL)) -#define bFM4_RTC_VBDIR_VDIR1 *((volatile unsigned int*)(0x42763504UL)) -#define bFM4_RTC_VBDIR_VDIR2 *((volatile unsigned int*)(0x42763508UL)) -#define bFM4_RTC_VBDIR_VDIR3 *((volatile unsigned int*)(0x4276350CUL)) -#define bFM4_RTC_VBDOR_VDOR0 *((volatile unsigned int*)(0x42763580UL)) -#define bFM4_RTC_VBDOR_VDOR1 *((volatile unsigned int*)(0x42763584UL)) -#define bFM4_RTC_VBDOR_VDOR2 *((volatile unsigned int*)(0x42763588UL)) -#define bFM4_RTC_VBDOR_VDOR3 *((volatile unsigned int*)(0x4276358CUL)) -#define bFM4_RTC_VBPZR_VPZR0 *((volatile unsigned int*)(0x42763600UL)) -#define bFM4_RTC_VBPZR_VPZR1 *((volatile unsigned int*)(0x42763604UL)) - -/* Low-speed CR prescaler registers */ -#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD0 *((volatile unsigned int*)(0x42780000UL)) -#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD1 *((volatile unsigned int*)(0x42780004UL)) -#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD2 *((volatile unsigned int*)(0x42780008UL)) -#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD3 *((volatile unsigned int*)(0x4278000CUL)) -#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD4 *((volatile unsigned int*)(0x42780010UL)) -#define bFM4_LCR_LCR_PRSLD_LCR_PRSLD5 *((volatile unsigned int*)(0x42780014UL)) - -/* Peripheral Clock Gating registers */ -#define bFM4_CLK_GATING_CKEN0_MFSCK0 *((volatile unsigned int*)(0x42782000UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK1 *((volatile unsigned int*)(0x42782004UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK2 *((volatile unsigned int*)(0x42782008UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK3 *((volatile unsigned int*)(0x4278200CUL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK4 *((volatile unsigned int*)(0x42782010UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK5 *((volatile unsigned int*)(0x42782014UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK6 *((volatile unsigned int*)(0x42782018UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK7 *((volatile unsigned int*)(0x4278201CUL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK8 *((volatile unsigned int*)(0x42782020UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK9 *((volatile unsigned int*)(0x42782024UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK10 *((volatile unsigned int*)(0x42782028UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK11 *((volatile unsigned int*)(0x4278202CUL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK12 *((volatile unsigned int*)(0x42782030UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK13 *((volatile unsigned int*)(0x42782034UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK14 *((volatile unsigned int*)(0x42782038UL)) -#define bFM4_CLK_GATING_CKEN0_MFSCK15 *((volatile unsigned int*)(0x4278203CUL)) -#define bFM4_CLK_GATING_CKEN0_ADCCK0 *((volatile unsigned int*)(0x42782040UL)) -#define bFM4_CLK_GATING_CKEN0_ADCCK1 *((volatile unsigned int*)(0x42782044UL)) -#define bFM4_CLK_GATING_CKEN0_ADCCK2 *((volatile unsigned int*)(0x42782048UL)) -#define bFM4_CLK_GATING_CKEN0_ADCCK3 *((volatile unsigned int*)(0x4278204CUL)) -#define bFM4_CLK_GATING_CKEN0_DMACK *((volatile unsigned int*)(0x42782060UL)) -#define bFM4_CLK_GATING_CKEN0_EXBCK *((volatile unsigned int*)(0x42782068UL)) -#define bFM4_CLK_GATING_CKEN0_GIOCK *((volatile unsigned int*)(0x42782070UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST0 *((volatile unsigned int*)(0x42782080UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST1 *((volatile unsigned int*)(0x42782084UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST2 *((volatile unsigned int*)(0x42782088UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST3 *((volatile unsigned int*)(0x4278208CUL)) -#define bFM4_CLK_GATING_MRST0_MFSRST4 *((volatile unsigned int*)(0x42782090UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST5 *((volatile unsigned int*)(0x42782094UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST6 *((volatile unsigned int*)(0x42782098UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST7 *((volatile unsigned int*)(0x4278209CUL)) -#define bFM4_CLK_GATING_MRST0_MFSRST8 *((volatile unsigned int*)(0x427820A0UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST9 *((volatile unsigned int*)(0x427820A4UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST10 *((volatile unsigned int*)(0x427820A8UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST11 *((volatile unsigned int*)(0x427820ACUL)) -#define bFM4_CLK_GATING_MRST0_MFSRST12 *((volatile unsigned int*)(0x427820B0UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST13 *((volatile unsigned int*)(0x427820B4UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST14 *((volatile unsigned int*)(0x427820B8UL)) -#define bFM4_CLK_GATING_MRST0_MFSRST15 *((volatile unsigned int*)(0x427820BCUL)) -#define bFM4_CLK_GATING_MRST0_ADCRST0 *((volatile unsigned int*)(0x427820C0UL)) -#define bFM4_CLK_GATING_MRST0_ADCRST1 *((volatile unsigned int*)(0x427820C4UL)) -#define bFM4_CLK_GATING_MRST0_ADCRST2 *((volatile unsigned int*)(0x427820C8UL)) -#define bFM4_CLK_GATING_MRST0_ADCRST3 *((volatile unsigned int*)(0x427820CCUL)) -#define bFM4_CLK_GATING_MRST0_DMARST *((volatile unsigned int*)(0x427820E0UL)) -#define bFM4_CLK_GATING_MRST0_EXBRST *((volatile unsigned int*)(0x427820E8UL)) -#define bFM4_CLK_GATING_CKEN1_BTMCK0 *((volatile unsigned int*)(0x42782200UL)) -#define bFM4_CLK_GATING_CKEN1_BTMCK1 *((volatile unsigned int*)(0x42782204UL)) -#define bFM4_CLK_GATING_CKEN1_BTMCK2 *((volatile unsigned int*)(0x42782208UL)) -#define bFM4_CLK_GATING_CKEN1_BTMCK3 *((volatile unsigned int*)(0x4278220CUL)) -#define bFM4_CLK_GATING_CKEN1_MFTCK0 *((volatile unsigned int*)(0x42782220UL)) -#define bFM4_CLK_GATING_CKEN1_MFTCK1 *((volatile unsigned int*)(0x42782224UL)) -#define bFM4_CLK_GATING_CKEN1_MFTCK2 *((volatile unsigned int*)(0x42782228UL)) -#define bFM4_CLK_GATING_CKEN1_MFTCK3 *((volatile unsigned int*)(0x4278222CUL)) -#define bFM4_CLK_GATING_CKEN1_QDUCK0 *((volatile unsigned int*)(0x42782240UL)) -#define bFM4_CLK_GATING_CKEN1_QDUCK1 *((volatile unsigned int*)(0x42782244UL)) -#define bFM4_CLK_GATING_CKEN1_QDUCK2 *((volatile unsigned int*)(0x42782248UL)) -#define bFM4_CLK_GATING_CKEN1_QDUCK3 *((volatile unsigned int*)(0x4278224CUL)) -#define bFM4_CLK_GATING_MRST1_BTMRST0 *((volatile unsigned int*)(0x42782280UL)) -#define bFM4_CLK_GATING_MRST1_BTMRST1 *((volatile unsigned int*)(0x42782284UL)) -#define bFM4_CLK_GATING_MRST1_BTMRST2 *((volatile unsigned int*)(0x42782288UL)) -#define bFM4_CLK_GATING_MRST1_BTMRST3 *((volatile unsigned int*)(0x4278228CUL)) -#define bFM4_CLK_GATING_MRST1_MFTRST0 *((volatile unsigned int*)(0x427822A0UL)) -#define bFM4_CLK_GATING_MRST1_MFTRST1 *((volatile unsigned int*)(0x427822A4UL)) -#define bFM4_CLK_GATING_MRST1_MFTRST2 *((volatile unsigned int*)(0x427822A8UL)) -#define bFM4_CLK_GATING_MRST1_MFTRST3 *((volatile unsigned int*)(0x427822ACUL)) -#define bFM4_CLK_GATING_MRST1_QDURST0 *((volatile unsigned int*)(0x427822C0UL)) -#define bFM4_CLK_GATING_MRST1_QDURST1 *((volatile unsigned int*)(0x427822C4UL)) -#define bFM4_CLK_GATING_MRST1_QDURST2 *((volatile unsigned int*)(0x427822C8UL)) -#define bFM4_CLK_GATING_MRST1_QDURST3 *((volatile unsigned int*)(0x427822CCUL)) -#define bFM4_CLK_GATING_CKEN2_USBCK0 *((volatile unsigned int*)(0x42782400UL)) -#define bFM4_CLK_GATING_CKEN2_USBCK1 *((volatile unsigned int*)(0x42782404UL)) -#define bFM4_CLK_GATING_CKEN2_CANCK0 *((volatile unsigned int*)(0x42782410UL)) -#define bFM4_CLK_GATING_CKEN2_CANCK1 *((volatile unsigned int*)(0x42782414UL)) -#define bFM4_CLK_GATING_CKEN2_SDCCK *((volatile unsigned int*)(0x42782420UL)) -#define bFM4_CLK_GATING_MRST2_USBRST0 *((volatile unsigned int*)(0x42782480UL)) -#define bFM4_CLK_GATING_MRST2_USBRST1 *((volatile unsigned int*)(0x42782484UL)) -#define bFM4_CLK_GATING_MRST2_CANRST0 *((volatile unsigned int*)(0x42782490UL)) -#define bFM4_CLK_GATING_MRST2_CANRST1 *((volatile unsigned int*)(0x42782494UL)) -#define bFM4_CLK_GATING_MRST2_SDCRST *((volatile unsigned int*)(0x427824A0UL)) - -/* External bus interface registers */ -#define bFM4_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) -#define bFM4_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) -#define bFM4_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) -#define bFM4_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) -#define bFM4_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) -#define bFM4_EXBUS_MODE0_TEST *((volatile unsigned int*)(0x427E0018UL)) -#define bFM4_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) -#define bFM4_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) -#define bFM4_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) -#define bFM4_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) -#define bFM4_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) -#define bFM4_EXBUS_MODE1_TEST *((volatile unsigned int*)(0x427E0098UL)) -#define bFM4_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) -#define bFM4_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) -#define bFM4_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) -#define bFM4_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) -#define bFM4_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) -#define bFM4_EXBUS_MODE2_TEST *((volatile unsigned int*)(0x427E0118UL)) -#define bFM4_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) -#define bFM4_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) -#define bFM4_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) -#define bFM4_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) -#define bFM4_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) -#define bFM4_EXBUS_MODE3_TEST *((volatile unsigned int*)(0x427E0198UL)) -#define bFM4_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) -#define bFM4_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) -#define bFM4_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) -#define bFM4_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) -#define bFM4_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) -#define bFM4_EXBUS_MODE7_TEST *((volatile unsigned int*)(0x427E0398UL)) -#define bFM4_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) -#define bFM4_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) -#define bFM4_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) -#define bFM4_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) -#define bFM4_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) -#define bFM4_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) -#define bFM4_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) -#define bFM4_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) -#define bFM4_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) -#define bFM4_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) -#define bFM4_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) -#define bFM4_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) -#define bFM4_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) -#define bFM4_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) -#define bFM4_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) -#define bFM4_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) -#define bFM4_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) -#define bFM4_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) -#define bFM4_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) -#define bFM4_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) -#define bFM4_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) -#define bFM4_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) -#define bFM4_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) -#define bFM4_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) -#define bFM4_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) -#define bFM4_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) -#define bFM4_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) -#define bFM4_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) -#define bFM4_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) -#define bFM4_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) -#define bFM4_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) -#define bFM4_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) -#define bFM4_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) -#define bFM4_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) -#define bFM4_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) -#define bFM4_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) -#define bFM4_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) -#define bFM4_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) -#define bFM4_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) -#define bFM4_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) -#define bFM4_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) -#define bFM4_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) -#define bFM4_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) -#define bFM4_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) -#define bFM4_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) -#define bFM4_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) -#define bFM4_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) -#define bFM4_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) -#define bFM4_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) -#define bFM4_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) -#define bFM4_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) -#define bFM4_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) -#define bFM4_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) -#define bFM4_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) -#define bFM4_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) -#define bFM4_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) -#define bFM4_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) -#define bFM4_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) -#define bFM4_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) -#define bFM4_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) -#define bFM4_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) -#define bFM4_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) -#define bFM4_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) -#define bFM4_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) -#define bFM4_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) -#define bFM4_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) -#define bFM4_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) -#define bFM4_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) -#define bFM4_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) -#define bFM4_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) -#define bFM4_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) -#define bFM4_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) -#define bFM4_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) -#define bFM4_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) -#define bFM4_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) -#define bFM4_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) -#define bFM4_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) -#define bFM4_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) -#define bFM4_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) -#define bFM4_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) -#define bFM4_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) -#define bFM4_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) -#define bFM4_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) -#define bFM4_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) -#define bFM4_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) -#define bFM4_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) -#define bFM4_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) -#define bFM4_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) -#define bFM4_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) -#define bFM4_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) -#define bFM4_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) -#define bFM4_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) -#define bFM4_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) -#define bFM4_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) -#define bFM4_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) -#define bFM4_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) -#define bFM4_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) -#define bFM4_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) -#define bFM4_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) -#define bFM4_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) -#define bFM4_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) -#define bFM4_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) -#define bFM4_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) -#define bFM4_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) -#define bFM4_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) -#define bFM4_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) -#define bFM4_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) -#define bFM4_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) -#define bFM4_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) -#define bFM4_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) -#define bFM4_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) -#define bFM4_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) -#define bFM4_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) -#define bFM4_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) -#define bFM4_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) -#define bFM4_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) -#define bFM4_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) -#define bFM4_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) -#define bFM4_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) -#define bFM4_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) -#define bFM4_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) -#define bFM4_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) -#define bFM4_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) -#define bFM4_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) -#define bFM4_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) -#define bFM4_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) -#define bFM4_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) -#define bFM4_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) -#define bFM4_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) -#define bFM4_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) -#define bFM4_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) -#define bFM4_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) -#define bFM4_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) -#define bFM4_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) -#define bFM4_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) -#define bFM4_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) -#define bFM4_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) -#define bFM4_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) -#define bFM4_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) -#define bFM4_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) -#define bFM4_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) -#define bFM4_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) -#define bFM4_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) -#define bFM4_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) -#define bFM4_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) -#define bFM4_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) -#define bFM4_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) -#define bFM4_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) -#define bFM4_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) -#define bFM4_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) -#define bFM4_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) -#define bFM4_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) -#define bFM4_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) -#define bFM4_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) -#define bFM4_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) -#define bFM4_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) -#define bFM4_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) -#define bFM4_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) -#define bFM4_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) -#define bFM4_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) -#define bFM4_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) -#define bFM4_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) -#define bFM4_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) -#define bFM4_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) -#define bFM4_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) -#define bFM4_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) -#define bFM4_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) -#define bFM4_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) -#define bFM4_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) -#define bFM4_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) -#define bFM4_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) -#define bFM4_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) -#define bFM4_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) -#define bFM4_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) -#define bFM4_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) -#define bFM4_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) -#define bFM4_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) -#define bFM4_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) -#define bFM4_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) -#define bFM4_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) -#define bFM4_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) -#define bFM4_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) -#define bFM4_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) -#define bFM4_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) -#define bFM4_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) -#define bFM4_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) -#define bFM4_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) -#define bFM4_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) -#define bFM4_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) -#define bFM4_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) -#define bFM4_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) -#define bFM4_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) -#define bFM4_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) -#define bFM4_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) -#define bFM4_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) -#define bFM4_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) -#define bFM4_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) -#define bFM4_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) -#define bFM4_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) -#define bFM4_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) -#define bFM4_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) -#define bFM4_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) -#define bFM4_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) -#define bFM4_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) -#define bFM4_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) -#define bFM4_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) -#define bFM4_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) -#define bFM4_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) -#define bFM4_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) -#define bFM4_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) -#define bFM4_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) -#define bFM4_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) -#define bFM4_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) -#define bFM4_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) -#define bFM4_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) -#define bFM4_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) -#define bFM4_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) -#define bFM4_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) -#define bFM4_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) -#define bFM4_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) -#define bFM4_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) -#define bFM4_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) -#define bFM4_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) -#define bFM4_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) -#define bFM4_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) -#define bFM4_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) -#define bFM4_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) -#define bFM4_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) -#define bFM4_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) -#define bFM4_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) -#define bFM4_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) -#define bFM4_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) -#define bFM4_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) -#define bFM4_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) -#define bFM4_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) - -/* USB channel 0 registers */ -#define bFM4_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM4_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM4_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM4_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM4_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM4_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM4_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM4_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM4_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM4_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM4_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM4_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM4_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM4_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM4_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM4_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM4_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM4_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM4_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM4_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM4_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM4_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM4_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) -#define bFM4_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) -#define bFM4_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) -#define bFM4_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) -#define bFM4_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) -#define bFM4_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) -#define bFM4_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) -#define bFM4_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) -#define bFM4_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) -#define bFM4_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) -#define bFM4_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) -#define bFM4_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) -#define bFM4_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) -#define bFM4_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) -#define bFM4_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) -#define bFM4_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) -#define bFM4_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) -#define bFM4_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) -#define bFM4_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) -#define bFM4_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) -#define bFM4_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) -#define bFM4_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) -#define bFM4_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) -#define bFM4_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) -#define bFM4_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) -#define bFM4_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM4_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) -#define bFM4_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) -#define bFM4_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) -#define bFM4_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM4_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM4_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM4_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM4_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM4_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM4_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM4_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM4_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM4_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) -#define bFM4_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) -#define bFM4_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) -#define bFM4_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM4_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) -#define bFM4_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) -#define bFM4_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) -#define bFM4_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM4_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM4_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM4_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM4_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM4_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM4_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM4_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM4_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM4_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) -#define bFM4_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) -#define bFM4_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) -#define bFM4_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) -#define bFM4_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) -#define bFM4_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) -#define bFM4_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) -#define bFM4_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) -#define bFM4_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) -#define bFM4_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) -#define bFM4_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) -#define bFM4_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) -#define bFM4_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) -#define bFM4_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM4_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) -#define bFM4_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) -#define bFM4_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) -#define bFM4_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM4_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM4_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM4_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM4_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM4_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM4_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM4_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) -#define bFM4_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) -#define bFM4_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) -#define bFM4_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) -#define bFM4_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) -#define bFM4_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM4_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) -#define bFM4_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) -#define bFM4_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) -#define bFM4_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM4_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM4_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM4_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM4_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM4_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM4_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM4_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) -#define bFM4_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) -#define bFM4_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) -#define bFM4_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM4_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) -#define bFM4_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) -#define bFM4_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) -#define bFM4_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM4_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) -#define bFM4_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) -#define bFM4_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) -#define bFM4_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) -#define bFM4_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) -#define bFM4_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) -#define bFM4_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM4_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) -#define bFM4_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) -#define bFM4_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) -#define bFM4_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM4_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) -#define bFM4_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) -#define bFM4_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) -#define bFM4_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) -#define bFM4_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) -#define bFM4_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) -#define bFM4_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) -#define bFM4_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) -#define bFM4_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) -#define bFM4_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) -#define bFM4_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) -#define bFM4_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) -#define bFM4_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) -#define bFM4_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) -#define bFM4_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) -#define bFM4_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) -#define bFM4_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) -#define bFM4_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) -#define bFM4_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) -#define bFM4_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) -#define bFM4_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) -#define bFM4_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) -#define bFM4_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) -#define bFM4_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) -#define bFM4_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) -#define bFM4_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) -#define bFM4_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) -#define bFM4_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) -#define bFM4_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) -#define bFM4_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) -#define bFM4_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) -#define bFM4_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) -#define bFM4_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) -#define bFM4_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) -#define bFM4_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) -#define bFM4_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) -#define bFM4_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) -#define bFM4_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) -#define bFM4_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) -#define bFM4_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) -#define bFM4_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) -#define bFM4_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) -#define bFM4_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) -#define bFM4_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) -#define bFM4_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) -#define bFM4_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) -#define bFM4_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) -#define bFM4_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) -#define bFM4_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) -#define bFM4_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) -#define bFM4_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) -#define bFM4_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) -#define bFM4_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) -#define bFM4_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) -#define bFM4_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) -#define bFM4_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) -#define bFM4_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) -#define bFM4_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) -#define bFM4_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) -#define bFM4_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) -#define bFM4_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) -#define bFM4_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) -#define bFM4_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) -#define bFM4_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) -#define bFM4_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) -#define bFM4_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) -#define bFM4_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) -#define bFM4_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) -#define bFM4_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) -#define bFM4_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) -#define bFM4_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) -#define bFM4_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) -#define bFM4_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) -#define bFM4_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) -#define bFM4_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) -#define bFM4_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) -#define bFM4_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) -#define bFM4_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) -#define bFM4_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) -#define bFM4_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) -#define bFM4_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) -#define bFM4_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) -#define bFM4_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) -#define bFM4_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) -#define bFM4_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) -#define bFM4_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) -#define bFM4_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) -#define bFM4_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) -#define bFM4_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) -#define bFM4_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) -#define bFM4_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) -#define bFM4_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) -#define bFM4_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) -#define bFM4_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) -#define bFM4_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) -#define bFM4_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) -#define bFM4_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) -#define bFM4_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) -#define bFM4_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) -#define bFM4_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) -#define bFM4_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) -#define bFM4_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) -#define bFM4_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) -#define bFM4_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) -#define bFM4_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) -#define bFM4_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) -#define bFM4_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) -#define bFM4_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) -#define bFM4_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) -#define bFM4_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) -#define bFM4_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) -#define bFM4_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) -#define bFM4_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) -#define bFM4_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) -#define bFM4_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) -#define bFM4_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) -#define bFM4_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) -#define bFM4_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) -#define bFM4_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) -#define bFM4_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) -#define bFM4_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) -#define bFM4_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) -#define bFM4_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) -#define bFM4_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) -#define bFM4_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) -#define bFM4_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) -#define bFM4_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) -#define bFM4_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) -#define bFM4_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) -#define bFM4_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) -#define bFM4_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) -#define bFM4_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) -#define bFM4_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) -#define bFM4_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) -#define bFM4_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) -#define bFM4_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) -#define bFM4_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) -#define bFM4_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) -#define bFM4_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) -#define bFM4_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) -#define bFM4_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) -#define bFM4_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) -#define bFM4_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) -#define bFM4_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) -#define bFM4_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) -#define bFM4_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) -#define bFM4_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) -#define bFM4_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) -#define bFM4_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) -#define bFM4_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) -#define bFM4_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) -#define bFM4_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) -#define bFM4_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) -#define bFM4_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) -#define bFM4_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) -#define bFM4_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) -#define bFM4_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) -#define bFM4_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) -#define bFM4_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) -#define bFM4_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) -#define bFM4_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) -#define bFM4_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) -#define bFM4_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) -#define bFM4_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) -#define bFM4_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) -#define bFM4_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) -#define bFM4_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) -#define bFM4_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) -#define bFM4_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) -#define bFM4_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) -#define bFM4_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) -#define bFM4_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) -#define bFM4_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) -#define bFM4_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) -#define bFM4_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) -#define bFM4_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) -#define bFM4_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) -#define bFM4_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) -#define bFM4_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) -#define bFM4_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) -#define bFM4_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) -#define bFM4_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) -#define bFM4_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) -#define bFM4_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) -#define bFM4_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) -#define bFM4_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) -#define bFM4_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) -#define bFM4_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) -#define bFM4_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) -#define bFM4_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) -#define bFM4_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) -#define bFM4_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) -#define bFM4_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) -#define bFM4_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) -#define bFM4_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) -#define bFM4_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) -#define bFM4_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) -#define bFM4_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) -#define bFM4_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) -#define bFM4_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) -#define bFM4_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) -#define bFM4_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) -#define bFM4_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) -#define bFM4_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) - -/* DMA controller */ -#define bFM4_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) -#define bFM4_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) -#define bFM4_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) -#define bFM4_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) -#define bFM4_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) -#define bFM4_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) -#define bFM4_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) -#define bFM4_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) -#define bFM4_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) -#define bFM4_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) -#define bFM4_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) -#define bFM4_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) -#define bFM4_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) -#define bFM4_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) -#define bFM4_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) -#define bFM4_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) -#define bFM4_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) -#define bFM4_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) -#define bFM4_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) -#define bFM4_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) -#define bFM4_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) -#define bFM4_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) -#define bFM4_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) -#define bFM4_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) -#define bFM4_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) -#define bFM4_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) -#define bFM4_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) -#define bFM4_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) -#define bFM4_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) -#define bFM4_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) -#define bFM4_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) -#define bFM4_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) -#define bFM4_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) -#define bFM4_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) -#define bFM4_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) -#define bFM4_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) -#define bFM4_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) -#define bFM4_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) -#define bFM4_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) -#define bFM4_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) -#define bFM4_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) -#define bFM4_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) -#define bFM4_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) -#define bFM4_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) -#define bFM4_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) -#define bFM4_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) -#define bFM4_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) -#define bFM4_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) -#define bFM4_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) -#define bFM4_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) -#define bFM4_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) -#define bFM4_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) -#define bFM4_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) -#define bFM4_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) -#define bFM4_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) -#define bFM4_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) -#define bFM4_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) -#define bFM4_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) -#define bFM4_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) -#define bFM4_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) -#define bFM4_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) -#define bFM4_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) -#define bFM4_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) -#define bFM4_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) -#define bFM4_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) -#define bFM4_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) -#define bFM4_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) -#define bFM4_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) -#define bFM4_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) -#define bFM4_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) -#define bFM4_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) -#define bFM4_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) -#define bFM4_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) -#define bFM4_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) -#define bFM4_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) -#define bFM4_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) -#define bFM4_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) -#define bFM4_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) -#define bFM4_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) -#define bFM4_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) -#define bFM4_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) -#define bFM4_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) -#define bFM4_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) -#define bFM4_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) -#define bFM4_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) -#define bFM4_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) -#define bFM4_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) -#define bFM4_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) -#define bFM4_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) -#define bFM4_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) -#define bFM4_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) -#define bFM4_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) -#define bFM4_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) -#define bFM4_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) -#define bFM4_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) -#define bFM4_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) -#define bFM4_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) -#define bFM4_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) -#define bFM4_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) -#define bFM4_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) -#define bFM4_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) -#define bFM4_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) -#define bFM4_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) -#define bFM4_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) -#define bFM4_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) -#define bFM4_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) -#define bFM4_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) -#define bFM4_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) -#define bFM4_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) -#define bFM4_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) -#define bFM4_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) -#define bFM4_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) -#define bFM4_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) -#define bFM4_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) -#define bFM4_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) -#define bFM4_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) -#define bFM4_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) -#define bFM4_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) -#define bFM4_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) -#define bFM4_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) -#define bFM4_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) -#define bFM4_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) -#define bFM4_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) -#define bFM4_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) -#define bFM4_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) -#define bFM4_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) -#define bFM4_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) -#define bFM4_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) -#define bFM4_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) -#define bFM4_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) -#define bFM4_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) -#define bFM4_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) -#define bFM4_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) -#define bFM4_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) -#define bFM4_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) -#define bFM4_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) -#define bFM4_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) -#define bFM4_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) -#define bFM4_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) -#define bFM4_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) -#define bFM4_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) -#define bFM4_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) -#define bFM4_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) -#define bFM4_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) -#define bFM4_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) -#define bFM4_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) -#define bFM4_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) -#define bFM4_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) -#define bFM4_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) -#define bFM4_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) -#define bFM4_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) -#define bFM4_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) -#define bFM4_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) -#define bFM4_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) -#define bFM4_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) -#define bFM4_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) -#define bFM4_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) -#define bFM4_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) -#define bFM4_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) -#define bFM4_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) -#define bFM4_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) -#define bFM4_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) -#define bFM4_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) -#define bFM4_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) -#define bFM4_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) -#define bFM4_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) -#define bFM4_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) -#define bFM4_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) -#define bFM4_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) -#define bFM4_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) -#define bFM4_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) -#define bFM4_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) -#define bFM4_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) -#define bFM4_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) -#define bFM4_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) -#define bFM4_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) -#define bFM4_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) -#define bFM4_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) -#define bFM4_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) -#define bFM4_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) -#define bFM4_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) -#define bFM4_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) -#define bFM4_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) -#define bFM4_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) -#define bFM4_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) -#define bFM4_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) -#define bFM4_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) -#define bFM4_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) -#define bFM4_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) -#define bFM4_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) -#define bFM4_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) -#define bFM4_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) -#define bFM4_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) -#define bFM4_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) -#define bFM4_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) -#define bFM4_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) -#define bFM4_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) -#define bFM4_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) -#define bFM4_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) -#define bFM4_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) -#define bFM4_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) -#define bFM4_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) -#define bFM4_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) -#define bFM4_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) -#define bFM4_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) -#define bFM4_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) -#define bFM4_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) -#define bFM4_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) -#define bFM4_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) -#define bFM4_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) -#define bFM4_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) -#define bFM4_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) -#define bFM4_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) -#define bFM4_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) -#define bFM4_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) -#define bFM4_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) -#define bFM4_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) -#define bFM4_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) -#define bFM4_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) -#define bFM4_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) -#define bFM4_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) -#define bFM4_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) -#define bFM4_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) -#define bFM4_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) -#define bFM4_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) -#define bFM4_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) -#define bFM4_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) -#define bFM4_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) -#define bFM4_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) -#define bFM4_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) -#define bFM4_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) -#define bFM4_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) -#define bFM4_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) -#define bFM4_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) -#define bFM4_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) -#define bFM4_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) -#define bFM4_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) -#define bFM4_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) -#define bFM4_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) -#define bFM4_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) -#define bFM4_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) -#define bFM4_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) -#define bFM4_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) -#define bFM4_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) -#define bFM4_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) -#define bFM4_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) -#define bFM4_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) -#define bFM4_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) -#define bFM4_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) -#define bFM4_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) -#define bFM4_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) -#define bFM4_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) -#define bFM4_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) -#define bFM4_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) -#define bFM4_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) -#define bFM4_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) -#define bFM4_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) -#define bFM4_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) -#define bFM4_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) -#define bFM4_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) -#define bFM4_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) -#define bFM4_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) -#define bFM4_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) -#define bFM4_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) -#define bFM4_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) -#define bFM4_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) -#define bFM4_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) -#define bFM4_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) -#define bFM4_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) -#define bFM4_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) -#define bFM4_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) -#define bFM4_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) -#define bFM4_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) -#define bFM4_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) -#define bFM4_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) -#define bFM4_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) -#define bFM4_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) -#define bFM4_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) -#define bFM4_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) -#define bFM4_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) -#define bFM4_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) -#define bFM4_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) -#define bFM4_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) -#define bFM4_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) -#define bFM4_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) -#define bFM4_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) -#define bFM4_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) -#define bFM4_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) -#define bFM4_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) -#define bFM4_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) -#define bFM4_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) -#define bFM4_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) -#define bFM4_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) -#define bFM4_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) -#define bFM4_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) -#define bFM4_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) -#define bFM4_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) -#define bFM4_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) -#define bFM4_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) -#define bFM4_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) -#define bFM4_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) -#define bFM4_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) -#define bFM4_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) -#define bFM4_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) -#define bFM4_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) -#define bFM4_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) -#define bFM4_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) -#define bFM4_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) -#define bFM4_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) -#define bFM4_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) -#define bFM4_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) -#define bFM4_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) -#define bFM4_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) -#define bFM4_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) -#define bFM4_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) -#define bFM4_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) -#define bFM4_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) -#define bFM4_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) -#define bFM4_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) -#define bFM4_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) -#define bFM4_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) -#define bFM4_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) -#define bFM4_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) -#define bFM4_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) -#define bFM4_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) -#define bFM4_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) -#define bFM4_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) -#define bFM4_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) -#define bFM4_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) -#define bFM4_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) -#define bFM4_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) -#define bFM4_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) -#define bFM4_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) -#define bFM4_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) -#define bFM4_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) -#define bFM4_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) -#define bFM4_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) -#define bFM4_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) -#define bFM4_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) -#define bFM4_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) -#define bFM4_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) -#define bFM4_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) -#define bFM4_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) -#define bFM4_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) -#define bFM4_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) -#define bFM4_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) -#define bFM4_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) -#define bFM4_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) -#define bFM4_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) -#define bFM4_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) -#define bFM4_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) -#define bFM4_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) -#define bFM4_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) -#define bFM4_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) -#define bFM4_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) -#define bFM4_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) -#define bFM4_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) -#define bFM4_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) -#define bFM4_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) - -/* CAN channel 0 registers */ -#define bFM4_CAN0_CTRLR_INIT *((volatile unsigned int*)(0x42C40000UL)) -#define bFM4_CAN0_CTRLR_IE *((volatile unsigned int*)(0x42C40004UL)) -#define bFM4_CAN0_CTRLR_SIE *((volatile unsigned int*)(0x42C40008UL)) -#define bFM4_CAN0_CTRLR_EIE *((volatile unsigned int*)(0x42C4000CUL)) -#define bFM4_CAN0_CTRLR_DAR *((volatile unsigned int*)(0x42C40014UL)) -#define bFM4_CAN0_CTRLR_CCE *((volatile unsigned int*)(0x42C40018UL)) -#define bFM4_CAN0_CTRLR_TEST *((volatile unsigned int*)(0x42C4001CUL)) -#define bFM4_CAN0_STATR_LEC0 *((volatile unsigned int*)(0x42C40040UL)) -#define bFM4_CAN0_STATR_LEC1 *((volatile unsigned int*)(0x42C40044UL)) -#define bFM4_CAN0_STATR_LEC2 *((volatile unsigned int*)(0x42C40048UL)) -#define bFM4_CAN0_STATR_TXOK *((volatile unsigned int*)(0x42C4004CUL)) -#define bFM4_CAN0_STATR_RXOK *((volatile unsigned int*)(0x42C40050UL)) -#define bFM4_CAN0_STATR_EPASS *((volatile unsigned int*)(0x42C40054UL)) -#define bFM4_CAN0_STATR_EWARM *((volatile unsigned int*)(0x42C40058UL)) -#define bFM4_CAN0_STATR_BOFF *((volatile unsigned int*)(0x42C4005CUL)) -#define bFM4_CAN0_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C40080UL)) -#define bFM4_CAN0_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C40084UL)) -#define bFM4_CAN0_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C40088UL)) -#define bFM4_CAN0_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C4008CUL)) -#define bFM4_CAN0_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C40090UL)) -#define bFM4_CAN0_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C40094UL)) -#define bFM4_CAN0_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C40098UL)) -#define bFM4_CAN0_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C4009CUL)) -#define bFM4_CAN0_ERRCNT_REC0 *((volatile unsigned int*)(0x42C400A0UL)) -#define bFM4_CAN0_ERRCNT_REC1 *((volatile unsigned int*)(0x42C400A4UL)) -#define bFM4_CAN0_ERRCNT_REC2 *((volatile unsigned int*)(0x42C400A8UL)) -#define bFM4_CAN0_ERRCNT_REC3 *((volatile unsigned int*)(0x42C400ACUL)) -#define bFM4_CAN0_ERRCNT_REC4 *((volatile unsigned int*)(0x42C400B0UL)) -#define bFM4_CAN0_ERRCNT_REC5 *((volatile unsigned int*)(0x42C400B4UL)) -#define bFM4_CAN0_ERRCNT_REC6 *((volatile unsigned int*)(0x42C400B8UL)) -#define bFM4_CAN0_ERRCNT_RP *((volatile unsigned int*)(0x42C400BCUL)) -#define bFM4_CAN0_BTR_BRP0 *((volatile unsigned int*)(0x42C400C0UL)) -#define bFM4_CAN0_BTR_BRP1 *((volatile unsigned int*)(0x42C400C4UL)) -#define bFM4_CAN0_BTR_BRP2 *((volatile unsigned int*)(0x42C400C8UL)) -#define bFM4_CAN0_BTR_BRP3 *((volatile unsigned int*)(0x42C400CCUL)) -#define bFM4_CAN0_BTR_BRP4 *((volatile unsigned int*)(0x42C400D0UL)) -#define bFM4_CAN0_BTR_BRP5 *((volatile unsigned int*)(0x42C400D4UL)) -#define bFM4_CAN0_BTR_SJW0 *((volatile unsigned int*)(0x42C400D8UL)) -#define bFM4_CAN0_BTR_SJW1 *((volatile unsigned int*)(0x42C400DCUL)) -#define bFM4_CAN0_BTR_TSEG10 *((volatile unsigned int*)(0x42C400E0UL)) -#define bFM4_CAN0_BTR_TSEG11 *((volatile unsigned int*)(0x42C400E4UL)) -#define bFM4_CAN0_BTR_TSEG12 *((volatile unsigned int*)(0x42C400E8UL)) -#define bFM4_CAN0_BTR_TSEG13 *((volatile unsigned int*)(0x42C400ECUL)) -#define bFM4_CAN0_BTR_TSEG20 *((volatile unsigned int*)(0x42C400F0UL)) -#define bFM4_CAN0_BTR_TSEG21 *((volatile unsigned int*)(0x42C400F4UL)) -#define bFM4_CAN0_BTR_TSEG22 *((volatile unsigned int*)(0x42C400F8UL)) -#define bFM4_CAN0_INTR_INTID0 *((volatile unsigned int*)(0x42C40100UL)) -#define bFM4_CAN0_INTR_INTID1 *((volatile unsigned int*)(0x42C40104UL)) -#define bFM4_CAN0_INTR_INTID2 *((volatile unsigned int*)(0x42C40108UL)) -#define bFM4_CAN0_INTR_INTID3 *((volatile unsigned int*)(0x42C4010CUL)) -#define bFM4_CAN0_INTR_INTID4 *((volatile unsigned int*)(0x42C40110UL)) -#define bFM4_CAN0_INTR_INTID5 *((volatile unsigned int*)(0x42C40114UL)) -#define bFM4_CAN0_INTR_INTID6 *((volatile unsigned int*)(0x42C40118UL)) -#define bFM4_CAN0_INTR_INTID7 *((volatile unsigned int*)(0x42C4011CUL)) -#define bFM4_CAN0_INTR_INTID8 *((volatile unsigned int*)(0x42C40120UL)) -#define bFM4_CAN0_INTR_INTID9 *((volatile unsigned int*)(0x42C40124UL)) -#define bFM4_CAN0_INTR_INTID10 *((volatile unsigned int*)(0x42C40128UL)) -#define bFM4_CAN0_INTR_INTID11 *((volatile unsigned int*)(0x42C4012CUL)) -#define bFM4_CAN0_INTR_INTID12 *((volatile unsigned int*)(0x42C40130UL)) -#define bFM4_CAN0_INTR_INTID13 *((volatile unsigned int*)(0x42C40134UL)) -#define bFM4_CAN0_INTR_INTID14 *((volatile unsigned int*)(0x42C40138UL)) -#define bFM4_CAN0_INTR_INTID15 *((volatile unsigned int*)(0x42C4013CUL)) -#define bFM4_CAN0_TESTR_BASIC *((volatile unsigned int*)(0x42C40148UL)) -#define bFM4_CAN0_TESTR_SILENT *((volatile unsigned int*)(0x42C4014CUL)) -#define bFM4_CAN0_TESTR_LBACK *((volatile unsigned int*)(0x42C40150UL)) -#define bFM4_CAN0_TESTR_TX0 *((volatile unsigned int*)(0x42C40154UL)) -#define bFM4_CAN0_TESTR_TX1 *((volatile unsigned int*)(0x42C40158UL)) -#define bFM4_CAN0_TESTR_RX *((volatile unsigned int*)(0x42C4015CUL)) -#define bFM4_CAN0_BRPER_BRPE0 *((volatile unsigned int*)(0x42C40180UL)) -#define bFM4_CAN0_BRPER_BRPE1 *((volatile unsigned int*)(0x42C40184UL)) -#define bFM4_CAN0_BRPER_BRPE2 *((volatile unsigned int*)(0x42C40188UL)) -#define bFM4_CAN0_BRPER_BRPE3 *((volatile unsigned int*)(0x42C4018CUL)) -#define bFM4_CAN0_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C4023CUL)) -#define bFM4_CAN0_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C40240UL)) -#define bFM4_CAN0_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C40244UL)) -#define bFM4_CAN0_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C40248UL)) -#define bFM4_CAN0_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C40248UL)) -#define bFM4_CAN0_IF1CMSK_CIP *((volatile unsigned int*)(0x42C4024CUL)) -#define bFM4_CAN0_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C40250UL)) -#define bFM4_CAN0_IF1CMSK_ARB *((volatile unsigned int*)(0x42C40254UL)) -#define bFM4_CAN0_IF1CMSK_MASK *((volatile unsigned int*)(0x42C40258UL)) -#define bFM4_CAN0_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C4025CUL)) -#define bFM4_CAN0_IF1MSK_MDIR *((volatile unsigned int*)(0x42C402F8UL)) -#define bFM4_CAN0_IF1MSK_MXTD *((volatile unsigned int*)(0x42C402FCUL)) -#define bFM4_CAN0_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C402F8UL)) -#define bFM4_CAN0_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C402FCUL)) -#define bFM4_CAN0_IF1ARB_DIR *((volatile unsigned int*)(0x42C40374UL)) -#define bFM4_CAN0_IF1ARB_XTD *((volatile unsigned int*)(0x42C40378UL)) -#define bFM4_CAN0_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) -#define bFM4_CAN0_IF1ARB2_DIR *((volatile unsigned int*)(0x42C40374UL)) -#define bFM4_CAN0_IF1ARB2_XTD *((volatile unsigned int*)(0x42C40378UL)) -#define bFM4_CAN0_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C4037CUL)) -#define bFM4_CAN0_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C40380UL)) -#define bFM4_CAN0_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C40384UL)) -#define bFM4_CAN0_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C40388UL)) -#define bFM4_CAN0_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C4038CUL)) -#define bFM4_CAN0_IF1MCTR_EOB *((volatile unsigned int*)(0x42C4039CUL)) -#define bFM4_CAN0_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C403A0UL)) -#define bFM4_CAN0_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C403A4UL)) -#define bFM4_CAN0_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C403A8UL)) -#define bFM4_CAN0_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C403ACUL)) -#define bFM4_CAN0_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C403B0UL)) -#define bFM4_CAN0_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C403B4UL)) -#define bFM4_CAN0_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C403B8UL)) -#define bFM4_CAN0_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C403BCUL)) -#define bFM4_CAN0_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C4083CUL)) -#define bFM4_CAN0_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C40840UL)) -#define bFM4_CAN0_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C40844UL)) -#define bFM4_CAN0_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C40848UL)) -#define bFM4_CAN0_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C40848UL)) -#define bFM4_CAN0_IF2CMSK_CIP *((volatile unsigned int*)(0x42C4084CUL)) -#define bFM4_CAN0_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C40850UL)) -#define bFM4_CAN0_IF2CMSK_ARB *((volatile unsigned int*)(0x42C40854UL)) -#define bFM4_CAN0_IF2CMSK_MASK *((volatile unsigned int*)(0x42C40858UL)) -#define bFM4_CAN0_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C4085CUL)) -#define bFM4_CAN0_IF2MSK_MDIR *((volatile unsigned int*)(0x42C408F8UL)) -#define bFM4_CAN0_IF2MSK_MXTD *((volatile unsigned int*)(0x42C408FCUL)) -#define bFM4_CAN0_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C408F8UL)) -#define bFM4_CAN0_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C408FCUL)) -#define bFM4_CAN0_IF2ARB_DIR *((volatile unsigned int*)(0x42C40974UL)) -#define bFM4_CAN0_IF2ARB_XTD *((volatile unsigned int*)(0x42C40978UL)) -#define bFM4_CAN0_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) -#define bFM4_CAN0_IF2ARB2_DIR *((volatile unsigned int*)(0x42C40974UL)) -#define bFM4_CAN0_IF2ARB2_XTD *((volatile unsigned int*)(0x42C40978UL)) -#define bFM4_CAN0_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C4097CUL)) -#define bFM4_CAN0_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C40980UL)) -#define bFM4_CAN0_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C40984UL)) -#define bFM4_CAN0_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C40988UL)) -#define bFM4_CAN0_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C4098CUL)) -#define bFM4_CAN0_IF2MCTR_EOB *((volatile unsigned int*)(0x42C4099CUL)) -#define bFM4_CAN0_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C409A0UL)) -#define bFM4_CAN0_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C409A4UL)) -#define bFM4_CAN0_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C409A8UL)) -#define bFM4_CAN0_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C409ACUL)) -#define bFM4_CAN0_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C409B0UL)) -#define bFM4_CAN0_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C409B4UL)) -#define bFM4_CAN0_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C409B8UL)) -#define bFM4_CAN0_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C409BCUL)) -#define bFM4_CAN0_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) -#define bFM4_CAN0_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) -#define bFM4_CAN0_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) -#define bFM4_CAN0_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) -#define bFM4_CAN0_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) -#define bFM4_CAN0_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) -#define bFM4_CAN0_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) -#define bFM4_CAN0_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) -#define bFM4_CAN0_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) -#define bFM4_CAN0_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) -#define bFM4_CAN0_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) -#define bFM4_CAN0_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) -#define bFM4_CAN0_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) -#define bFM4_CAN0_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) -#define bFM4_CAN0_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) -#define bFM4_CAN0_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) -#define bFM4_CAN0_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) -#define bFM4_CAN0_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) -#define bFM4_CAN0_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) -#define bFM4_CAN0_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) -#define bFM4_CAN0_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) -#define bFM4_CAN0_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) -#define bFM4_CAN0_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) -#define bFM4_CAN0_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) -#define bFM4_CAN0_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) -#define bFM4_CAN0_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) -#define bFM4_CAN0_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) -#define bFM4_CAN0_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) -#define bFM4_CAN0_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) -#define bFM4_CAN0_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) -#define bFM4_CAN0_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) -#define bFM4_CAN0_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) -#define bFM4_CAN0_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C41000UL)) -#define bFM4_CAN0_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C41004UL)) -#define bFM4_CAN0_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C41008UL)) -#define bFM4_CAN0_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C4100CUL)) -#define bFM4_CAN0_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C41010UL)) -#define bFM4_CAN0_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C41014UL)) -#define bFM4_CAN0_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C41018UL)) -#define bFM4_CAN0_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C4101CUL)) -#define bFM4_CAN0_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C41020UL)) -#define bFM4_CAN0_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C41024UL)) -#define bFM4_CAN0_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C41028UL)) -#define bFM4_CAN0_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C4102CUL)) -#define bFM4_CAN0_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C41030UL)) -#define bFM4_CAN0_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C41034UL)) -#define bFM4_CAN0_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C41038UL)) -#define bFM4_CAN0_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C4103CUL)) -#define bFM4_CAN0_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C41040UL)) -#define bFM4_CAN0_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C41044UL)) -#define bFM4_CAN0_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C41048UL)) -#define bFM4_CAN0_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C4104CUL)) -#define bFM4_CAN0_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C41050UL)) -#define bFM4_CAN0_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C41054UL)) -#define bFM4_CAN0_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C41058UL)) -#define bFM4_CAN0_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C4105CUL)) -#define bFM4_CAN0_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C41060UL)) -#define bFM4_CAN0_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C41064UL)) -#define bFM4_CAN0_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C41068UL)) -#define bFM4_CAN0_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C4106CUL)) -#define bFM4_CAN0_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C41070UL)) -#define bFM4_CAN0_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C41074UL)) -#define bFM4_CAN0_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C41078UL)) -#define bFM4_CAN0_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C4107CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) -#define bFM4_CAN0_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) -#define bFM4_CAN0_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) -#define bFM4_CAN0_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) -#define bFM4_CAN0_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) -#define bFM4_CAN0_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) -#define bFM4_CAN0_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) -#define bFM4_CAN0_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) -#define bFM4_CAN0_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) -#define bFM4_CAN0_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) -#define bFM4_CAN0_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) -#define bFM4_CAN0_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) -#define bFM4_CAN0_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) -#define bFM4_CAN0_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) -#define bFM4_CAN0_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) -#define bFM4_CAN0_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) -#define bFM4_CAN0_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) -#define bFM4_CAN0_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) -#define bFM4_CAN0_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) -#define bFM4_CAN0_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) -#define bFM4_CAN0_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) -#define bFM4_CAN0_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) -#define bFM4_CAN0_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) -#define bFM4_CAN0_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) -#define bFM4_CAN0_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) -#define bFM4_CAN0_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) -#define bFM4_CAN0_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C41200UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C41204UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C41208UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C4120CUL)) -#define bFM4_CAN0_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C41210UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C41214UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C41218UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C4121CUL)) -#define bFM4_CAN0_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C41220UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C41224UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C41228UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C4122CUL)) -#define bFM4_CAN0_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C41230UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C41234UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C41238UL)) -#define bFM4_CAN0_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C4123CUL)) -#define bFM4_CAN0_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C41240UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C41244UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C41248UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C4124CUL)) -#define bFM4_CAN0_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C41250UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C41254UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C41258UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C4125CUL)) -#define bFM4_CAN0_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C41260UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C41264UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C41268UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C4126CUL)) -#define bFM4_CAN0_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C41270UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C41274UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C41278UL)) -#define bFM4_CAN0_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C4127CUL)) -#define bFM4_CAN0_INTPND_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) -#define bFM4_CAN0_INTPND_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) -#define bFM4_CAN0_INTPND_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) -#define bFM4_CAN0_INTPND_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) -#define bFM4_CAN0_INTPND_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) -#define bFM4_CAN0_INTPND_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) -#define bFM4_CAN0_INTPND_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) -#define bFM4_CAN0_INTPND_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) -#define bFM4_CAN0_INTPND_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) -#define bFM4_CAN0_INTPND_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) -#define bFM4_CAN0_INTPND_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) -#define bFM4_CAN0_INTPND_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) -#define bFM4_CAN0_INTPND_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) -#define bFM4_CAN0_INTPND_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) -#define bFM4_CAN0_INTPND_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) -#define bFM4_CAN0_INTPND_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) -#define bFM4_CAN0_INTPND_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) -#define bFM4_CAN0_INTPND_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) -#define bFM4_CAN0_INTPND_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) -#define bFM4_CAN0_INTPND_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) -#define bFM4_CAN0_INTPND_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) -#define bFM4_CAN0_INTPND_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) -#define bFM4_CAN0_INTPND_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) -#define bFM4_CAN0_INTPND_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) -#define bFM4_CAN0_INTPND_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) -#define bFM4_CAN0_INTPND_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) -#define bFM4_CAN0_INTPND_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) -#define bFM4_CAN0_INTPND_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) -#define bFM4_CAN0_INTPND_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) -#define bFM4_CAN0_INTPND_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) -#define bFM4_CAN0_INTPND_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) -#define bFM4_CAN0_INTPND_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) -#define bFM4_CAN0_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C41400UL)) -#define bFM4_CAN0_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C41404UL)) -#define bFM4_CAN0_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C41408UL)) -#define bFM4_CAN0_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C4140CUL)) -#define bFM4_CAN0_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C41410UL)) -#define bFM4_CAN0_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C41414UL)) -#define bFM4_CAN0_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C41418UL)) -#define bFM4_CAN0_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C4141CUL)) -#define bFM4_CAN0_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C41420UL)) -#define bFM4_CAN0_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C41424UL)) -#define bFM4_CAN0_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C41428UL)) -#define bFM4_CAN0_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C4142CUL)) -#define bFM4_CAN0_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C41430UL)) -#define bFM4_CAN0_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C41434UL)) -#define bFM4_CAN0_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C41438UL)) -#define bFM4_CAN0_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C4143CUL)) -#define bFM4_CAN0_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C41440UL)) -#define bFM4_CAN0_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C41444UL)) -#define bFM4_CAN0_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C41448UL)) -#define bFM4_CAN0_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C4144CUL)) -#define bFM4_CAN0_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C41450UL)) -#define bFM4_CAN0_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C41454UL)) -#define bFM4_CAN0_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C41458UL)) -#define bFM4_CAN0_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C4145CUL)) -#define bFM4_CAN0_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C41460UL)) -#define bFM4_CAN0_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C41464UL)) -#define bFM4_CAN0_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C41468UL)) -#define bFM4_CAN0_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C4146CUL)) -#define bFM4_CAN0_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C41470UL)) -#define bFM4_CAN0_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C41474UL)) -#define bFM4_CAN0_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C41478UL)) -#define bFM4_CAN0_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C4147CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) -#define bFM4_CAN0_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) -#define bFM4_CAN0_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C41600UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C41604UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C41608UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C4160CUL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C41610UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C41614UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C41618UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C4161CUL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C41620UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C41624UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C41628UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C4162CUL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C41630UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C41634UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C41638UL)) -#define bFM4_CAN0_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C4163CUL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C41640UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C41644UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C41648UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C4164CUL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C41650UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C41654UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C41658UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C4165CUL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C41660UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C41664UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C41668UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C4166CUL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C41670UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C41674UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C41678UL)) -#define bFM4_CAN0_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C4167CUL)) - -/* CAN channel 1 registers */ -#define bFM4_CAN1_CTRLR_INIT *((volatile unsigned int*)(0x42C60000UL)) -#define bFM4_CAN1_CTRLR_IE *((volatile unsigned int*)(0x42C60004UL)) -#define bFM4_CAN1_CTRLR_SIE *((volatile unsigned int*)(0x42C60008UL)) -#define bFM4_CAN1_CTRLR_EIE *((volatile unsigned int*)(0x42C6000CUL)) -#define bFM4_CAN1_CTRLR_DAR *((volatile unsigned int*)(0x42C60014UL)) -#define bFM4_CAN1_CTRLR_CCE *((volatile unsigned int*)(0x42C60018UL)) -#define bFM4_CAN1_CTRLR_TEST *((volatile unsigned int*)(0x42C6001CUL)) -#define bFM4_CAN1_STATR_LEC0 *((volatile unsigned int*)(0x42C60040UL)) -#define bFM4_CAN1_STATR_LEC1 *((volatile unsigned int*)(0x42C60044UL)) -#define bFM4_CAN1_STATR_LEC2 *((volatile unsigned int*)(0x42C60048UL)) -#define bFM4_CAN1_STATR_TXOK *((volatile unsigned int*)(0x42C6004CUL)) -#define bFM4_CAN1_STATR_RXOK *((volatile unsigned int*)(0x42C60050UL)) -#define bFM4_CAN1_STATR_EPASS *((volatile unsigned int*)(0x42C60054UL)) -#define bFM4_CAN1_STATR_EWARM *((volatile unsigned int*)(0x42C60058UL)) -#define bFM4_CAN1_STATR_BOFF *((volatile unsigned int*)(0x42C6005CUL)) -#define bFM4_CAN1_ERRCNT_TEC0 *((volatile unsigned int*)(0x42C60080UL)) -#define bFM4_CAN1_ERRCNT_TEC1 *((volatile unsigned int*)(0x42C60084UL)) -#define bFM4_CAN1_ERRCNT_TEC2 *((volatile unsigned int*)(0x42C60088UL)) -#define bFM4_CAN1_ERRCNT_TEC3 *((volatile unsigned int*)(0x42C6008CUL)) -#define bFM4_CAN1_ERRCNT_TEC4 *((volatile unsigned int*)(0x42C60090UL)) -#define bFM4_CAN1_ERRCNT_TEC5 *((volatile unsigned int*)(0x42C60094UL)) -#define bFM4_CAN1_ERRCNT_TEC6 *((volatile unsigned int*)(0x42C60098UL)) -#define bFM4_CAN1_ERRCNT_TEC7 *((volatile unsigned int*)(0x42C6009CUL)) -#define bFM4_CAN1_ERRCNT_REC0 *((volatile unsigned int*)(0x42C600A0UL)) -#define bFM4_CAN1_ERRCNT_REC1 *((volatile unsigned int*)(0x42C600A4UL)) -#define bFM4_CAN1_ERRCNT_REC2 *((volatile unsigned int*)(0x42C600A8UL)) -#define bFM4_CAN1_ERRCNT_REC3 *((volatile unsigned int*)(0x42C600ACUL)) -#define bFM4_CAN1_ERRCNT_REC4 *((volatile unsigned int*)(0x42C600B0UL)) -#define bFM4_CAN1_ERRCNT_REC5 *((volatile unsigned int*)(0x42C600B4UL)) -#define bFM4_CAN1_ERRCNT_REC6 *((volatile unsigned int*)(0x42C600B8UL)) -#define bFM4_CAN1_ERRCNT_RP *((volatile unsigned int*)(0x42C600BCUL)) -#define bFM4_CAN1_BTR_BRP0 *((volatile unsigned int*)(0x42C600C0UL)) -#define bFM4_CAN1_BTR_BRP1 *((volatile unsigned int*)(0x42C600C4UL)) -#define bFM4_CAN1_BTR_BRP2 *((volatile unsigned int*)(0x42C600C8UL)) -#define bFM4_CAN1_BTR_BRP3 *((volatile unsigned int*)(0x42C600CCUL)) -#define bFM4_CAN1_BTR_BRP4 *((volatile unsigned int*)(0x42C600D0UL)) -#define bFM4_CAN1_BTR_BRP5 *((volatile unsigned int*)(0x42C600D4UL)) -#define bFM4_CAN1_BTR_SJW0 *((volatile unsigned int*)(0x42C600D8UL)) -#define bFM4_CAN1_BTR_SJW1 *((volatile unsigned int*)(0x42C600DCUL)) -#define bFM4_CAN1_BTR_TSEG10 *((volatile unsigned int*)(0x42C600E0UL)) -#define bFM4_CAN1_BTR_TSEG11 *((volatile unsigned int*)(0x42C600E4UL)) -#define bFM4_CAN1_BTR_TSEG12 *((volatile unsigned int*)(0x42C600E8UL)) -#define bFM4_CAN1_BTR_TSEG13 *((volatile unsigned int*)(0x42C600ECUL)) -#define bFM4_CAN1_BTR_TSEG20 *((volatile unsigned int*)(0x42C600F0UL)) -#define bFM4_CAN1_BTR_TSEG21 *((volatile unsigned int*)(0x42C600F4UL)) -#define bFM4_CAN1_BTR_TSEG22 *((volatile unsigned int*)(0x42C600F8UL)) -#define bFM4_CAN1_INTR_INTID0 *((volatile unsigned int*)(0x42C60100UL)) -#define bFM4_CAN1_INTR_INTID1 *((volatile unsigned int*)(0x42C60104UL)) -#define bFM4_CAN1_INTR_INTID2 *((volatile unsigned int*)(0x42C60108UL)) -#define bFM4_CAN1_INTR_INTID3 *((volatile unsigned int*)(0x42C6010CUL)) -#define bFM4_CAN1_INTR_INTID4 *((volatile unsigned int*)(0x42C60110UL)) -#define bFM4_CAN1_INTR_INTID5 *((volatile unsigned int*)(0x42C60114UL)) -#define bFM4_CAN1_INTR_INTID6 *((volatile unsigned int*)(0x42C60118UL)) -#define bFM4_CAN1_INTR_INTID7 *((volatile unsigned int*)(0x42C6011CUL)) -#define bFM4_CAN1_INTR_INTID8 *((volatile unsigned int*)(0x42C60120UL)) -#define bFM4_CAN1_INTR_INTID9 *((volatile unsigned int*)(0x42C60124UL)) -#define bFM4_CAN1_INTR_INTID10 *((volatile unsigned int*)(0x42C60128UL)) -#define bFM4_CAN1_INTR_INTID11 *((volatile unsigned int*)(0x42C6012CUL)) -#define bFM4_CAN1_INTR_INTID12 *((volatile unsigned int*)(0x42C60130UL)) -#define bFM4_CAN1_INTR_INTID13 *((volatile unsigned int*)(0x42C60134UL)) -#define bFM4_CAN1_INTR_INTID14 *((volatile unsigned int*)(0x42C60138UL)) -#define bFM4_CAN1_INTR_INTID15 *((volatile unsigned int*)(0x42C6013CUL)) -#define bFM4_CAN1_TESTR_BASIC *((volatile unsigned int*)(0x42C60148UL)) -#define bFM4_CAN1_TESTR_SILENT *((volatile unsigned int*)(0x42C6014CUL)) -#define bFM4_CAN1_TESTR_LBACK *((volatile unsigned int*)(0x42C60150UL)) -#define bFM4_CAN1_TESTR_TX0 *((volatile unsigned int*)(0x42C60154UL)) -#define bFM4_CAN1_TESTR_TX1 *((volatile unsigned int*)(0x42C60158UL)) -#define bFM4_CAN1_TESTR_RX *((volatile unsigned int*)(0x42C6015CUL)) -#define bFM4_CAN1_BRPER_BRPE0 *((volatile unsigned int*)(0x42C60180UL)) -#define bFM4_CAN1_BRPER_BRPE1 *((volatile unsigned int*)(0x42C60184UL)) -#define bFM4_CAN1_BRPER_BRPE2 *((volatile unsigned int*)(0x42C60188UL)) -#define bFM4_CAN1_BRPER_BRPE3 *((volatile unsigned int*)(0x42C6018CUL)) -#define bFM4_CAN1_IF1CREQ_BUSY *((volatile unsigned int*)(0x42C6023CUL)) -#define bFM4_CAN1_IF1CMSK_DATAB *((volatile unsigned int*)(0x42C60240UL)) -#define bFM4_CAN1_IF1CMSK_DATAA *((volatile unsigned int*)(0x42C60244UL)) -#define bFM4_CAN1_IF1CMSK_TXREST *((volatile unsigned int*)(0x42C60248UL)) -#define bFM4_CAN1_IF1CMSK_NEWDAT *((volatile unsigned int*)(0x42C60248UL)) -#define bFM4_CAN1_IF1CMSK_CIP *((volatile unsigned int*)(0x42C6024CUL)) -#define bFM4_CAN1_IF1CMSK_CONTROL *((volatile unsigned int*)(0x42C60250UL)) -#define bFM4_CAN1_IF1CMSK_ARB *((volatile unsigned int*)(0x42C60254UL)) -#define bFM4_CAN1_IF1CMSK_MASK *((volatile unsigned int*)(0x42C60258UL)) -#define bFM4_CAN1_IF1CMSK_WRRD *((volatile unsigned int*)(0x42C6025CUL)) -#define bFM4_CAN1_IF1MSK_MDIR *((volatile unsigned int*)(0x42C602F8UL)) -#define bFM4_CAN1_IF1MSK_MXTD *((volatile unsigned int*)(0x42C602FCUL)) -#define bFM4_CAN1_IF1MSK2_MDIR *((volatile unsigned int*)(0x42C602F8UL)) -#define bFM4_CAN1_IF1MSK2_MXTD *((volatile unsigned int*)(0x42C602FCUL)) -#define bFM4_CAN1_IF1ARB_DIR *((volatile unsigned int*)(0x42C60374UL)) -#define bFM4_CAN1_IF1ARB_XTD *((volatile unsigned int*)(0x42C60378UL)) -#define bFM4_CAN1_IF1ARB_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) -#define bFM4_CAN1_IF1ARB2_DIR *((volatile unsigned int*)(0x42C60374UL)) -#define bFM4_CAN1_IF1ARB2_XTD *((volatile unsigned int*)(0x42C60378UL)) -#define bFM4_CAN1_IF1ARB2_MSGVAL *((volatile unsigned int*)(0x42C6037CUL)) -#define bFM4_CAN1_IF1MCTR_DLC0 *((volatile unsigned int*)(0x42C60380UL)) -#define bFM4_CAN1_IF1MCTR_DLC1 *((volatile unsigned int*)(0x42C60384UL)) -#define bFM4_CAN1_IF1MCTR_DLC2 *((volatile unsigned int*)(0x42C60388UL)) -#define bFM4_CAN1_IF1MCTR_DLC3 *((volatile unsigned int*)(0x42C6038CUL)) -#define bFM4_CAN1_IF1MCTR_EOB *((volatile unsigned int*)(0x42C6039CUL)) -#define bFM4_CAN1_IF1MCTR_TXRQST *((volatile unsigned int*)(0x42C603A0UL)) -#define bFM4_CAN1_IF1MCTR_RMTEN *((volatile unsigned int*)(0x42C603A4UL)) -#define bFM4_CAN1_IF1MCTR_RXIE *((volatile unsigned int*)(0x42C603A8UL)) -#define bFM4_CAN1_IF1MCTR_TXIE *((volatile unsigned int*)(0x42C603ACUL)) -#define bFM4_CAN1_IF1MCTR_UMASK *((volatile unsigned int*)(0x42C603B0UL)) -#define bFM4_CAN1_IF1MCTR_INTPND *((volatile unsigned int*)(0x42C603B4UL)) -#define bFM4_CAN1_IF1MCTR_MSGLST *((volatile unsigned int*)(0x42C603B8UL)) -#define bFM4_CAN1_IF1MCTR_NEWDAT *((volatile unsigned int*)(0x42C603BCUL)) -#define bFM4_CAN1_IF2CREQ_BUSY *((volatile unsigned int*)(0x42C6083CUL)) -#define bFM4_CAN1_IF2CMSK_DATAB *((volatile unsigned int*)(0x42C60840UL)) -#define bFM4_CAN1_IF2CMSK_DATAA *((volatile unsigned int*)(0x42C60844UL)) -#define bFM4_CAN1_IF2CMSK_TXREST *((volatile unsigned int*)(0x42C60848UL)) -#define bFM4_CAN1_IF2CMSK_NEWDAT *((volatile unsigned int*)(0x42C60848UL)) -#define bFM4_CAN1_IF2CMSK_CIP *((volatile unsigned int*)(0x42C6084CUL)) -#define bFM4_CAN1_IF2CMSK_CONTROL *((volatile unsigned int*)(0x42C60850UL)) -#define bFM4_CAN1_IF2CMSK_ARB *((volatile unsigned int*)(0x42C60854UL)) -#define bFM4_CAN1_IF2CMSK_MASK *((volatile unsigned int*)(0x42C60858UL)) -#define bFM4_CAN1_IF2CMSK_WRRD *((volatile unsigned int*)(0x42C6085CUL)) -#define bFM4_CAN1_IF2MSK_MDIR *((volatile unsigned int*)(0x42C608F8UL)) -#define bFM4_CAN1_IF2MSK_MXTD *((volatile unsigned int*)(0x42C608FCUL)) -#define bFM4_CAN1_IF2MSK2_MDIR *((volatile unsigned int*)(0x42C608F8UL)) -#define bFM4_CAN1_IF2MSK2_MXTD *((volatile unsigned int*)(0x42C608FCUL)) -#define bFM4_CAN1_IF2ARB_DIR *((volatile unsigned int*)(0x42C60974UL)) -#define bFM4_CAN1_IF2ARB_XTD *((volatile unsigned int*)(0x42C60978UL)) -#define bFM4_CAN1_IF2ARB_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) -#define bFM4_CAN1_IF2ARB2_DIR *((volatile unsigned int*)(0x42C60974UL)) -#define bFM4_CAN1_IF2ARB2_XTD *((volatile unsigned int*)(0x42C60978UL)) -#define bFM4_CAN1_IF2ARB2_MSGVAL *((volatile unsigned int*)(0x42C6097CUL)) -#define bFM4_CAN1_IF2MCTR_DLC0 *((volatile unsigned int*)(0x42C60980UL)) -#define bFM4_CAN1_IF2MCTR_DLC1 *((volatile unsigned int*)(0x42C60984UL)) -#define bFM4_CAN1_IF2MCTR_DLC2 *((volatile unsigned int*)(0x42C60988UL)) -#define bFM4_CAN1_IF2MCTR_DLC3 *((volatile unsigned int*)(0x42C6098CUL)) -#define bFM4_CAN1_IF2MCTR_EOB *((volatile unsigned int*)(0x42C6099CUL)) -#define bFM4_CAN1_IF2MCTR_TXRQST *((volatile unsigned int*)(0x42C609A0UL)) -#define bFM4_CAN1_IF2MCTR_RMTEN *((volatile unsigned int*)(0x42C609A4UL)) -#define bFM4_CAN1_IF2MCTR_RXIE *((volatile unsigned int*)(0x42C609A8UL)) -#define bFM4_CAN1_IF2MCTR_TXIE *((volatile unsigned int*)(0x42C609ACUL)) -#define bFM4_CAN1_IF2MCTR_UMASK *((volatile unsigned int*)(0x42C609B0UL)) -#define bFM4_CAN1_IF2MCTR_INTPND *((volatile unsigned int*)(0x42C609B4UL)) -#define bFM4_CAN1_IF2MCTR_MSGLST *((volatile unsigned int*)(0x42C609B8UL)) -#define bFM4_CAN1_IF2MCTR_NEWDAT *((volatile unsigned int*)(0x42C609BCUL)) -#define bFM4_CAN1_TREQR_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) -#define bFM4_CAN1_TREQR_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) -#define bFM4_CAN1_TREQR_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) -#define bFM4_CAN1_TREQR_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) -#define bFM4_CAN1_TREQR_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) -#define bFM4_CAN1_TREQR_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) -#define bFM4_CAN1_TREQR_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) -#define bFM4_CAN1_TREQR_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) -#define bFM4_CAN1_TREQR_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) -#define bFM4_CAN1_TREQR_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) -#define bFM4_CAN1_TREQR_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) -#define bFM4_CAN1_TREQR_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) -#define bFM4_CAN1_TREQR_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) -#define bFM4_CAN1_TREQR_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) -#define bFM4_CAN1_TREQR_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) -#define bFM4_CAN1_TREQR_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) -#define bFM4_CAN1_TREQR_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) -#define bFM4_CAN1_TREQR_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) -#define bFM4_CAN1_TREQR_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) -#define bFM4_CAN1_TREQR_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) -#define bFM4_CAN1_TREQR_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) -#define bFM4_CAN1_TREQR_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) -#define bFM4_CAN1_TREQR_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) -#define bFM4_CAN1_TREQR_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) -#define bFM4_CAN1_TREQR_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) -#define bFM4_CAN1_TREQR_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) -#define bFM4_CAN1_TREQR_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) -#define bFM4_CAN1_TREQR_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) -#define bFM4_CAN1_TREQR_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) -#define bFM4_CAN1_TREQR_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) -#define bFM4_CAN1_TREQR_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) -#define bFM4_CAN1_TREQR_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) -#define bFM4_CAN1_TREQR1_TXRQST1 *((volatile unsigned int*)(0x42C61000UL)) -#define bFM4_CAN1_TREQR1_TXRQST2 *((volatile unsigned int*)(0x42C61004UL)) -#define bFM4_CAN1_TREQR1_TXRQST3 *((volatile unsigned int*)(0x42C61008UL)) -#define bFM4_CAN1_TREQR1_TXRQST4 *((volatile unsigned int*)(0x42C6100CUL)) -#define bFM4_CAN1_TREQR1_TXRQST5 *((volatile unsigned int*)(0x42C61010UL)) -#define bFM4_CAN1_TREQR1_TXRQST6 *((volatile unsigned int*)(0x42C61014UL)) -#define bFM4_CAN1_TREQR1_TXRQST7 *((volatile unsigned int*)(0x42C61018UL)) -#define bFM4_CAN1_TREQR1_TXRQST8 *((volatile unsigned int*)(0x42C6101CUL)) -#define bFM4_CAN1_TREQR1_TXRQST9 *((volatile unsigned int*)(0x42C61020UL)) -#define bFM4_CAN1_TREQR1_TXRQST10 *((volatile unsigned int*)(0x42C61024UL)) -#define bFM4_CAN1_TREQR1_TXRQST11 *((volatile unsigned int*)(0x42C61028UL)) -#define bFM4_CAN1_TREQR1_TXRQST12 *((volatile unsigned int*)(0x42C6102CUL)) -#define bFM4_CAN1_TREQR1_TXRQST13 *((volatile unsigned int*)(0x42C61030UL)) -#define bFM4_CAN1_TREQR1_TXRQST14 *((volatile unsigned int*)(0x42C61034UL)) -#define bFM4_CAN1_TREQR1_TXRQST15 *((volatile unsigned int*)(0x42C61038UL)) -#define bFM4_CAN1_TREQR1_TXRQST16 *((volatile unsigned int*)(0x42C6103CUL)) -#define bFM4_CAN1_TREQR2_TXRQST17 *((volatile unsigned int*)(0x42C61040UL)) -#define bFM4_CAN1_TREQR2_TXRQST18 *((volatile unsigned int*)(0x42C61044UL)) -#define bFM4_CAN1_TREQR2_TXRQST19 *((volatile unsigned int*)(0x42C61048UL)) -#define bFM4_CAN1_TREQR2_TXRQST20 *((volatile unsigned int*)(0x42C6104CUL)) -#define bFM4_CAN1_TREQR2_TXRQST21 *((volatile unsigned int*)(0x42C61050UL)) -#define bFM4_CAN1_TREQR2_TXRQST22 *((volatile unsigned int*)(0x42C61054UL)) -#define bFM4_CAN1_TREQR2_TXRQST23 *((volatile unsigned int*)(0x42C61058UL)) -#define bFM4_CAN1_TREQR2_TXRQST24 *((volatile unsigned int*)(0x42C6105CUL)) -#define bFM4_CAN1_TREQR2_TXRQST25 *((volatile unsigned int*)(0x42C61060UL)) -#define bFM4_CAN1_TREQR2_TXRQST26 *((volatile unsigned int*)(0x42C61064UL)) -#define bFM4_CAN1_TREQR2_TXRQST27 *((volatile unsigned int*)(0x42C61068UL)) -#define bFM4_CAN1_TREQR2_TXRQST28 *((volatile unsigned int*)(0x42C6106CUL)) -#define bFM4_CAN1_TREQR2_TXRQST29 *((volatile unsigned int*)(0x42C61070UL)) -#define bFM4_CAN1_TREQR2_TXRQST30 *((volatile unsigned int*)(0x42C61074UL)) -#define bFM4_CAN1_TREQR2_TXRQST31 *((volatile unsigned int*)(0x42C61078UL)) -#define bFM4_CAN1_TREQR2_TXRQST32 *((volatile unsigned int*)(0x42C6107CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) -#define bFM4_CAN1_NEWDT_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) -#define bFM4_CAN1_NEWDT_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) -#define bFM4_CAN1_NEWDT_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) -#define bFM4_CAN1_NEWDT_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) -#define bFM4_CAN1_NEWDT_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) -#define bFM4_CAN1_NEWDT_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) -#define bFM4_CAN1_NEWDT_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) -#define bFM4_CAN1_NEWDT_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) -#define bFM4_CAN1_NEWDT_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) -#define bFM4_CAN1_NEWDT_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) -#define bFM4_CAN1_NEWDT_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) -#define bFM4_CAN1_NEWDT_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) -#define bFM4_CAN1_NEWDT_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) -#define bFM4_CAN1_NEWDT_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) -#define bFM4_CAN1_NEWDT_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) -#define bFM4_CAN1_NEWDT_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) -#define bFM4_CAN1_NEWDT_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) -#define bFM4_CAN1_NEWDT_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) -#define bFM4_CAN1_NEWDT_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) -#define bFM4_CAN1_NEWDT_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) -#define bFM4_CAN1_NEWDT_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) -#define bFM4_CAN1_NEWDT_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) -#define bFM4_CAN1_NEWDT_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) -#define bFM4_CAN1_NEWDT_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) -#define bFM4_CAN1_NEWDT_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) -#define bFM4_CAN1_NEWDT1_NEWDAT1 *((volatile unsigned int*)(0x42C61200UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT2 *((volatile unsigned int*)(0x42C61204UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT3 *((volatile unsigned int*)(0x42C61208UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT4 *((volatile unsigned int*)(0x42C6120CUL)) -#define bFM4_CAN1_NEWDT1_NEWDAT5 *((volatile unsigned int*)(0x42C61210UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT6 *((volatile unsigned int*)(0x42C61214UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT7 *((volatile unsigned int*)(0x42C61218UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT8 *((volatile unsigned int*)(0x42C6121CUL)) -#define bFM4_CAN1_NEWDT1_NEWDAT9 *((volatile unsigned int*)(0x42C61220UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT10 *((volatile unsigned int*)(0x42C61224UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT11 *((volatile unsigned int*)(0x42C61228UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT12 *((volatile unsigned int*)(0x42C6122CUL)) -#define bFM4_CAN1_NEWDT1_NEWDAT13 *((volatile unsigned int*)(0x42C61230UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT14 *((volatile unsigned int*)(0x42C61234UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT15 *((volatile unsigned int*)(0x42C61238UL)) -#define bFM4_CAN1_NEWDT1_NEWDAT16 *((volatile unsigned int*)(0x42C6123CUL)) -#define bFM4_CAN1_NEWDT2_NEWDAT17 *((volatile unsigned int*)(0x42C61240UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT18 *((volatile unsigned int*)(0x42C61244UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT19 *((volatile unsigned int*)(0x42C61248UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT20 *((volatile unsigned int*)(0x42C6124CUL)) -#define bFM4_CAN1_NEWDT2_NEWDAT21 *((volatile unsigned int*)(0x42C61250UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT22 *((volatile unsigned int*)(0x42C61254UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT23 *((volatile unsigned int*)(0x42C61258UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT24 *((volatile unsigned int*)(0x42C6125CUL)) -#define bFM4_CAN1_NEWDT2_NEWDAT25 *((volatile unsigned int*)(0x42C61260UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT26 *((volatile unsigned int*)(0x42C61264UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT27 *((volatile unsigned int*)(0x42C61268UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT28 *((volatile unsigned int*)(0x42C6126CUL)) -#define bFM4_CAN1_NEWDT2_NEWDAT29 *((volatile unsigned int*)(0x42C61270UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT30 *((volatile unsigned int*)(0x42C61274UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT31 *((volatile unsigned int*)(0x42C61278UL)) -#define bFM4_CAN1_NEWDT2_NEWDAT32 *((volatile unsigned int*)(0x42C6127CUL)) -#define bFM4_CAN1_INTPND_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) -#define bFM4_CAN1_INTPND_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) -#define bFM4_CAN1_INTPND_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) -#define bFM4_CAN1_INTPND_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) -#define bFM4_CAN1_INTPND_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) -#define bFM4_CAN1_INTPND_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) -#define bFM4_CAN1_INTPND_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) -#define bFM4_CAN1_INTPND_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) -#define bFM4_CAN1_INTPND_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) -#define bFM4_CAN1_INTPND_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) -#define bFM4_CAN1_INTPND_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) -#define bFM4_CAN1_INTPND_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) -#define bFM4_CAN1_INTPND_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) -#define bFM4_CAN1_INTPND_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) -#define bFM4_CAN1_INTPND_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) -#define bFM4_CAN1_INTPND_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) -#define bFM4_CAN1_INTPND_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) -#define bFM4_CAN1_INTPND_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) -#define bFM4_CAN1_INTPND_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) -#define bFM4_CAN1_INTPND_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) -#define bFM4_CAN1_INTPND_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) -#define bFM4_CAN1_INTPND_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) -#define bFM4_CAN1_INTPND_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) -#define bFM4_CAN1_INTPND_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) -#define bFM4_CAN1_INTPND_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) -#define bFM4_CAN1_INTPND_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) -#define bFM4_CAN1_INTPND_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) -#define bFM4_CAN1_INTPND_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) -#define bFM4_CAN1_INTPND_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) -#define bFM4_CAN1_INTPND_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) -#define bFM4_CAN1_INTPND_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) -#define bFM4_CAN1_INTPND_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) -#define bFM4_CAN1_INTPND1_INTPND1 *((volatile unsigned int*)(0x42C61400UL)) -#define bFM4_CAN1_INTPND1_INTPND2 *((volatile unsigned int*)(0x42C61404UL)) -#define bFM4_CAN1_INTPND1_INTPND3 *((volatile unsigned int*)(0x42C61408UL)) -#define bFM4_CAN1_INTPND1_INTPND4 *((volatile unsigned int*)(0x42C6140CUL)) -#define bFM4_CAN1_INTPND1_INTPND5 *((volatile unsigned int*)(0x42C61410UL)) -#define bFM4_CAN1_INTPND1_INTPND6 *((volatile unsigned int*)(0x42C61414UL)) -#define bFM4_CAN1_INTPND1_INTPND7 *((volatile unsigned int*)(0x42C61418UL)) -#define bFM4_CAN1_INTPND1_INTPND8 *((volatile unsigned int*)(0x42C6141CUL)) -#define bFM4_CAN1_INTPND1_INTPND9 *((volatile unsigned int*)(0x42C61420UL)) -#define bFM4_CAN1_INTPND1_INTPND10 *((volatile unsigned int*)(0x42C61424UL)) -#define bFM4_CAN1_INTPND1_INTPND11 *((volatile unsigned int*)(0x42C61428UL)) -#define bFM4_CAN1_INTPND1_INTPND12 *((volatile unsigned int*)(0x42C6142CUL)) -#define bFM4_CAN1_INTPND1_INTPND13 *((volatile unsigned int*)(0x42C61430UL)) -#define bFM4_CAN1_INTPND1_INTPND14 *((volatile unsigned int*)(0x42C61434UL)) -#define bFM4_CAN1_INTPND1_INTPND15 *((volatile unsigned int*)(0x42C61438UL)) -#define bFM4_CAN1_INTPND1_INTPND16 *((volatile unsigned int*)(0x42C6143CUL)) -#define bFM4_CAN1_INTPND2_INTPND17 *((volatile unsigned int*)(0x42C61440UL)) -#define bFM4_CAN1_INTPND2_INTPND18 *((volatile unsigned int*)(0x42C61444UL)) -#define bFM4_CAN1_INTPND2_INTPND19 *((volatile unsigned int*)(0x42C61448UL)) -#define bFM4_CAN1_INTPND2_INTPND20 *((volatile unsigned int*)(0x42C6144CUL)) -#define bFM4_CAN1_INTPND2_INTPND21 *((volatile unsigned int*)(0x42C61450UL)) -#define bFM4_CAN1_INTPND2_INTPND22 *((volatile unsigned int*)(0x42C61454UL)) -#define bFM4_CAN1_INTPND2_INTPND23 *((volatile unsigned int*)(0x42C61458UL)) -#define bFM4_CAN1_INTPND2_INTPND24 *((volatile unsigned int*)(0x42C6145CUL)) -#define bFM4_CAN1_INTPND2_INTPND25 *((volatile unsigned int*)(0x42C61460UL)) -#define bFM4_CAN1_INTPND2_INTPND26 *((volatile unsigned int*)(0x42C61464UL)) -#define bFM4_CAN1_INTPND2_INTPND27 *((volatile unsigned int*)(0x42C61468UL)) -#define bFM4_CAN1_INTPND2_INTPND28 *((volatile unsigned int*)(0x42C6146CUL)) -#define bFM4_CAN1_INTPND2_INTPND29 *((volatile unsigned int*)(0x42C61470UL)) -#define bFM4_CAN1_INTPND2_INTPND30 *((volatile unsigned int*)(0x42C61474UL)) -#define bFM4_CAN1_INTPND2_INTPND31 *((volatile unsigned int*)(0x42C61478UL)) -#define bFM4_CAN1_INTPND2_INTPND32 *((volatile unsigned int*)(0x42C6147CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) -#define bFM4_CAN1_MSGVAL_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) -#define bFM4_CAN1_MSGVAL_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL1 *((volatile unsigned int*)(0x42C61600UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL2 *((volatile unsigned int*)(0x42C61604UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL3 *((volatile unsigned int*)(0x42C61608UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL4 *((volatile unsigned int*)(0x42C6160CUL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL5 *((volatile unsigned int*)(0x42C61610UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL6 *((volatile unsigned int*)(0x42C61614UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL7 *((volatile unsigned int*)(0x42C61618UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL8 *((volatile unsigned int*)(0x42C6161CUL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL9 *((volatile unsigned int*)(0x42C61620UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL10 *((volatile unsigned int*)(0x42C61624UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL11 *((volatile unsigned int*)(0x42C61628UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL12 *((volatile unsigned int*)(0x42C6162CUL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL13 *((volatile unsigned int*)(0x42C61630UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL14 *((volatile unsigned int*)(0x42C61634UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL15 *((volatile unsigned int*)(0x42C61638UL)) -#define bFM4_CAN1_MSGVAL1_MSGVAL16 *((volatile unsigned int*)(0x42C6163CUL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL17 *((volatile unsigned int*)(0x42C61640UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL18 *((volatile unsigned int*)(0x42C61644UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL19 *((volatile unsigned int*)(0x42C61648UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL20 *((volatile unsigned int*)(0x42C6164CUL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL21 *((volatile unsigned int*)(0x42C61650UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL22 *((volatile unsigned int*)(0x42C61654UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL23 *((volatile unsigned int*)(0x42C61658UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL24 *((volatile unsigned int*)(0x42C6165CUL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL25 *((volatile unsigned int*)(0x42C61660UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL26 *((volatile unsigned int*)(0x42C61664UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL27 *((volatile unsigned int*)(0x42C61668UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL28 *((volatile unsigned int*)(0x42C6166CUL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL29 *((volatile unsigned int*)(0x42C61670UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL30 *((volatile unsigned int*)(0x42C61674UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL31 *((volatile unsigned int*)(0x42C61678UL)) -#define bFM4_CAN1_MSGVAL2_MSGVAL32 *((volatile unsigned int*)(0x42C6167CUL)) - -/* SD IF registers */ - -#ifdef __cplusplus -} -#endif - -#endif /* _MB9B560R_H_ */ - diff --git a/bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c b/bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c deleted file mode 100644 index f58f1ac2ad..0000000000 --- a/bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9abxxx.c +++ /dev/null @@ -1,240 +0,0 @@ -/******************************************************************************* -* Copyright (C) 2013 Spansion LLC. All Rights Reserved. -* -* This software is owned and published by: -* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). -* -* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND -* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. -* -* This software contains source code for use with Spansion -* components. This software is licensed by Spansion to be adapted only -* for use in systems utilizing Spansion components. Spansion shall not be -* responsible for misuse or illegal use of this software for devices not -* supported herein. Spansion is providing this software "AS IS" and will -* not be responsible for issues arising from incorrect user implementation -* of the software. -* -* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, -* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), -* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, -* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED -* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED -* WARRANTY OF NONINFRINGEMENT. -* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, -* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT -* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, -* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR -* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, -* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, -* SAVINGS OR PROFITS, -* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR -* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED -* FROM, THE SOFTWARE. -* -* This software may be replicated in part or whole for the licensed use, -* with the restriction that this Disclaimer and Copyright notice must be -* included with each copy of this software, whether used in part or whole, -* at all times. -*/ -/** - ****************************************************************************** - ** \file system_mb9abxxx.c - ** - ** FM3 system initialization functions - ** All adjustments can be done in belonging header file. - ** - ** History: - ** 2013-01-21 0.1 MWi AI: Unification to be done - ** 2013-01-23 0.2 MWi mcu.h inclusion changed to pdl.h - ** 2013-06-28 0.3 EH Added Trace Buffer enable - ******************************************************************************/ - -#include "mcu.h" - -/** - ****************************************************************************** - ** System Clock Frequency (Core Clock) Variable according CMSIS - ******************************************************************************/ -uint32_t SystemCoreClock = __HCLK; - -/** - ****************************************************************************** - ** \brief Update the System Core Clock with current core Clock retrieved from - ** cpu registers. - ** \param none - ** \return none - ******************************************************************************/ -void SystemCoreClockUpdate (void) { - uint32_t masterClk; - uint32_t u32RegisterRead; // Workaround variable for MISRA C rule conformance - - switch ((FM4_CRG->SCM_CTL >> 5U) & 0x07U) { - case 0u: /* internal High-speed Cr osc. */ - masterClk = __CLKHC; - break; - - case 1u: /* external main osc. */ - masterClk = __CLKMO; - break; - - case 2u: /* PLL clock */ - // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) - // violation: - // "Unordered accesses to a volatile location" - u32RegisterRead = (__CLKMO * (((uint32_t)(FM4_CRG->PLL_CTL2) & 0x3Fu) + 1u)); - masterClk = (u32RegisterRead / ((((uint32_t)(FM4_CRG->PLL_CTL1) >> 4ul) & 0x0Fu) + 1u)); - break; - - case 4u: /* internal Low-speed CR osc. */ - masterClk = __CLKLC; - break; - - case 5u: /* external Sub osc. */ - masterClk = __CLKSO; - break; - - default: - masterClk = 0ul; - break; - } - - switch (FM4_CRG->BSC_PSR & 0x07u) { - case 0u: - SystemCoreClock = masterClk; - break; - - case 1u: - SystemCoreClock = masterClk / 2u; - break; - - case 2u: - SystemCoreClock = masterClk / 3u; - break; - - case 3u: - SystemCoreClock = masterClk / 4u; - break; - - case 4u: - SystemCoreClock = masterClk / 6u; - break; - - case 5u: - SystemCoreClock = masterClk /8u; - break; - - case 6u: - SystemCoreClock = masterClk /16u; - break; - - default: - SystemCoreClock = 0ul; - break; - } - -} - -/** - ****************************************************************************** - ** \brief Setup the microcontroller system. Initialize the System and update - ** the SystemCoreClock variable. - ** - ** \param none - ** \return none - ******************************************************************************/ -void SystemInit (void) { - - static uint8_t u8IoRegisterRead; // Workaround variable for MISRA C rule conformance - -#if (HWWD_DISABLE) /* HW Watchdog Disable */ - FM4_HWWDT->WDG_LCK = 0x1ACCE551u; /* HW Watchdog Unlock */ - FM4_HWWDT->WDG_LCK = 0xE5331AAEu; - FM4_HWWDT->WDG_CTL = 0u; /* HW Watchdog stop */ -#endif - -#if (TRACE_BUFFER_ENABLE) - FM4_FLASH_IF->FBFCR = 0x01; /* Trace Buffer enable */ -#endif - -#if (CLOCK_SETUP) /* Clock Setup */ - FM4_CRG->BSC_PSR = (uint8_t)BSC_PSR_Val; /* set System Clock presacaler */ - FM4_CRG->APBC0_PSR = (uint8_t)APBC0_PSR_Val; /* set APB0 presacaler */ - FM4_CRG->APBC1_PSR = (uint8_t)APBC1_PSR_Val; /* set APB1 presacaler */ - FM4_CRG->APBC2_PSR = (uint8_t)APBC2_PSR_Val; /* set APB2 presacaler */ - FM4_CRG->SWC_PSR = (uint8_t)(SWC_PSR_Val | (1ul << 7u)); /* set SW Watchdog presacaler */ - FM4_CRG->TTC_PSR = (uint8_t)TTC_PSR_Val; /* set Trace Clock presacaler */ - - FM4_CRG->CSW_TMR = (uint8_t)CSW_TMR_Val; /* set oscillation stabilization wait time */ - - if (SCM_CTL_Val & (1ul << 1u)) { /* Main clock oscillator enabled ? */ - FM4_CRG->SCM_CTL |= (uint8_t)(1ul << 1u); /* enable main oscillator */ - - while (!((FM4_CRG->SCM_STR) & (uint8_t)(1ul << 1u))) /* wait for Main clock oscillation stable */ - {} - } - - if (SCM_CTL_Val & (1UL << 3)) { /* Sub clock oscillator enabled ? */ - // Initialize VBAT (Temporary process) - FM4_RTC->VDET = 0x00; - FM4_RTC->VBPFR = 0x1C; - FM4_RTC->CCB = 0x10; - FM4_RTC->CCS = 0x08; - - // VB_CLK is less or equal to 1MHz (Temporary process) - FM4_RTC->VB_CLKDIV = 0x4E; - FM4_RTC->BOOST = 0x03; - - // Enable SUB CLK oscilation (Temporary process) - FM4_RTC->WTOSCCNT_f.SOSCEX = 0; - FM4_RTC->WTOSCCNT_f.SOSCNTL = 1; - - // Transmit to VBAT domain (Temporary process) - FM4_RTC->WTCR20_f.PWRITE = 1; - - // Wait to complete transmission - while(0 != FM4_RTC->WTCR10_f.TRANS) - - FM4_CRG->SCM_CTL |= (1UL << 3); /* enable sub oscillator */ - while (!(FM4_CRG->SCM_STR & (1UL << 3))); /* wait for Sub clock oscillation stable */ - } - - FM4_CRG->PSW_TMR = (uint8_t)PSW_TMR_Val; /* set PLL stabilization wait time */ - FM4_CRG->PLL_CTL1 = (uint8_t) PLL_CTL1_Val; /* set PLLM and PLLK */ - FM4_CRG->PLL_CTL2 = (uint8_t)PLL_CTL2_Val; /* set PLLN */ - - if (SCM_CTL_Val & (uint8_t)(1ul << 4u)) { /* PLL enabled ? */ - FM4_CRG->SCM_CTL |= (uint8_t)(1ul << 4u); /* enable PLL */ - while (!(FM4_CRG->SCM_STR & (uint8_t)(1ul << 4u))) /* wait for PLL stable */ - {} - } - - FM4_CRG->SCM_CTL |= (uint8_t)(SCM_CTL_Val & 0xE0u); /* Set Master Clock switch */ - - // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) - // violations: - // "Unordered reads and writes to or from same location" and - // "Unordered accesses to a volatile location" - do - { - u8IoRegisterRead = (FM4_CRG->SCM_CTL & 0xE0u); - }while ((FM4_CRG->SCM_STR & 0xE0u) != u8IoRegisterRead); -#endif // (CLOCK_SETUP) - -#if (CR_TRIM_SETUP) - /* CR Trimming Data */ - if( 0x000003FFu != (FM4_FLASH_IF->CRTRMM & 0x000003FFu) ) - { - /* UnLock (MCR_FTRM) */ - FM4_CRTRIM->MCR_RLR = (uint32_t)0x1ACCE554u; - /* Set MCR_FTRM */ - FM4_CRTRIM->MCR_FTRM = (uint16_t)FM4_FLASH_IF->CRTRMM; - /* Lock (MCR_FTRM) */ - FM4_CRTRIM->MCR_RLR = (uint32_t)0x00000000u; - } -#endif // (CR_TRIM_SETUP) -} - - - diff --git a/bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h b/bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h deleted file mode 100644 index 23cd07d188..0000000000 --- a/bsp/mb9bf568r/CMSIS/DeviceSupport/system_mb9bf56xr.h +++ /dev/null @@ -1,674 +0,0 @@ -/******************************************************************************* -* Copyright (C) 2013 Spansion LLC. All Rights Reserved. -* -* This software is owned and published by: -* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion"). -* -* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND -* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. -* -* This software contains source code for use with Spansion -* components. This software is licensed by Spansion to be adapted only -* for use in systems utilizing Spansion components. Spansion shall not be -* responsible for misuse or illegal use of this software for devices not -* supported herein. Spansion is providing this software "AS IS" and will -* not be responsible for issues arising from incorrect user implementation -* of the software. -* -* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE, -* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS), -* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING, -* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED -* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED -* WARRANTY OF NONINFRINGEMENT. -* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT, -* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT -* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, -* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR -* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT, -* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA, -* SAVINGS OR PROFITS, -* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR -* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED -* FROM, THE SOFTWARE. -* -* This software may be replicated in part or whole for the licensed use, -* with the restriction that this Disclaimer and Copyright notice must be -* included with each copy of this software, whether used in part or whole, -* at all times. -*/ - -/******************************************************************************/ -/** \file system_mb9bf56xr.h - ** - ** Headerfile for FM4 system parameters - ** - ** History: - ** 2013-01-21 0.1 MWi AI: Unification to be done - ** 2013-02-06 0.2 MWi CMSIS coding restored; unifying still to be done - ** 2013-06-28 0.3 EH Added Trace Buffer enable definition - ** 2013-08-15 0.4 EH Changed APB1 Prescaler value - ******************************************************************************/ - -#ifndef _SYSTEM_MB9ABXXX_H_ -#define _SYSTEM_MB9ABXXX_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -/******************************************************************************/ -/* Include files */ -/******************************************************************************/ -#include - -/******************************************************************************/ -/* Global pre-processor symbols/macros ('define') */ -/******************************************************************************/ - -/******************************************************************************/ -/* */ -/* START OF USER SETTINGS HERE */ -/* =========================== */ -/* */ -/* All lines with '<<<' can be set by user. */ -/* */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Clock Setup Enable - ** (USER SETTING) - ** - ** - 0 = No clock setup done by system_mb9xfxxx.c - ** - 1 = Clock setup done by system_mb9xfxxx.c - ******************************************************************************/ -#define CLOCK_SETUP 1 // <<< Define clock setup here - -/** - ****************************************************************************** - ** \brief External Main Clock Frequency (in Hz, [value]ul) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKMO ( 4000000ul) // <<< External 4MHz Crystal - -/** - ****************************************************************************** - ** \brief External Sub Clock Frequency (in Hz, [value]ul) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKSO ( 32768ul) // <<< External 32KHz Crystal - -/** - ****************************************************************************** - ** \brief System Clock Mode Control Register value definition - ** (USER SETTING) - ** - ** SCM_CTL - ** - ** Bit#7-5 : RCS[2:0] - ** - 0 = Internal high-speed CR oscillation (default) - ** - 1 = Main oscillation clock - ** - 2 = PLL oscillation clock - ** - 3 = (not allowed) - ** - 4 = Internal low-speed CR oscillation - ** - 5 = Sub clock oscillation - ** - 6 = (not allowed) - ** - 7 = (not allowed) - ** - ** Bit#4 : PLLE - ** - 0 = Disable PLL (default) - ** - 1 = Enable PLL - ** - ** Bit#3 : SOSCE - ** - 0 = Disable sub oscillation (default) - ** - 1 = Enable sub oscillation - ** - ** Bit#2 : (reserved) - ** - ** Bit#1 : MOSCE - ** - 0 = Disable main oscillation (default) - ** - 1 = Enable main oscillation - ** - ** Bit#0 : (reserved) - ******************************************************************************/ -#define SCM_CTL_Val 0x00000052ul // <<< Define SCM_CTL here - -/** - ****************************************************************************** - ** \brief Base Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** BSC_PSR - ** - ** Bit#7-3 : (reserved) - ** - ** Bit#2-0 : BSR[2:0] - ** - 0 = HCLK = Master Clock - ** - 1 = HCLK = Master Clock / 2 - ** - 2 = HCLK = Master Clock / 3 - ** - 3 = HCLK = Master Clock / 4 - ** - 4 = HCLK = Master Clock / 6 - ** - 5 = HCLK = Master Clock / 8 - ** - 6 = HCLK = Master Clock / 16 - ** - 7 = (reserved) - ******************************************************************************/ -#define BSC_PSR_Val 0x00000000ul // <<< Define BSC_PSR here - -/** - ****************************************************************************** - ** \brief APB0 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC0_PSR - ** - ** Bit#7-2 : (reserved) - ** - ** Bit#1-0 : BSR[2:0] - ** - 0 = PCLK0 = HCLK - ** - 1 = PCLK0 = HCLK / 2 - ** - 2 = PCLK0 = HCLK / 4 - ** - 3 = PCLK0 = HCLK / 8 - ******************************************************************************/ -#define APBC0_PSR_Val 0x00000001UL // <<< Define APBC0_PSR here - -/** - ****************************************************************************** - ** \brief APB1 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC1_PSR - ** - ** Bit#7 : APBC1EN - ** - 0 = Disable PCLK1 output - ** - 1 = Enables PCLK1 (default) - ** - ** Bit#6-5 : (reserved) - ** - ** Bit#4 : APBC1RST - ** - 0 = APB1 bus reset, inactive (default) - ** - 1 = APB1 bus reset, active - ** - ** Bit#3-2 : (reserved) - ** - ** Bit#1-0 : APBC1[2:0] - ** - 0 = PCLK1 = HCLK - ** - 1 = PCLK1 = HCLK / 2 - ** - 2 = PCLK1 = HCLK / 4 - ** - 3 = PCLK1 = HCLK / 8 - ******************************************************************************/ -#define APBC1_PSR_Val 0x00000080ul // <<< Define APBC1_PSR here - -/** - ****************************************************************************** - ** \brief APB2 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC2_PSR - ** - ** Bit#7 : APBC2EN - ** - 0 = Disable PCLK2 output - ** - 1 = Enables PCLK2 (default) - ** - ** Bit#6-5 : (reserved) - ** - ** Bit#4 : APBC2RST - ** - 0 = APB2 bus reset, inactive (default) - ** - 1 = APB2 bus reset, active - ** - ** Bit#3-2 : (reserved) - ** - ** Bit#1-0 : APBC2[1:0] - ** - 0 = PCLK2 = HCLK - ** - 1 = PCLK2 = HCLK / 2 - ** - 2 = PCLK2 = HCLK / 4 - ** - 3 = PCLK2 = HCLK / 8 - ******************************************************************************/ -#define APBC2_PSR_Val 0x00000081ul // <<< Define APBC2_PSR here - -/** - ****************************************************************************** - ** \brief Software Watchdog Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** SWC_PSR - ** - ** Bit#7 : TESTB - ** - 0 = (not allowed) - ** - 1 = (always write "1" to this bit) - ** - ** Bit#6-2 : (reserved) - ** - ** Bit#1-0 : SWDS[2:0] - ** - 0 = SWDGOGCLK = PCLK0 - ** - 1 = SWDGOGCLK = PCLK0 / 2 - ** - 2 = SWDGOGCLK = PCLK0 / 4 - ** - 3 = SWDGOGCLK = PCLK0 / 8 - ******************************************************************************/ -#define SWC_PSR_Val 0x00000003ul // <<< Define SWC_PSR here - -/** - ****************************************************************************** - ** \brief Trace Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** TTC_PSR - ** - ** Bit#7-1 : (reserved) - ** - ** Bit#0 : TTC - ** - 0 = TPIUCLK = HCLK - ** - 1 = TPIUCLK = HCLK / 2 - ******************************************************************************/ -#define TTC_PSR_Val 0x00000000ul // <<< Define TTC_PSR here - -/** - ****************************************************************************** - ** \brief Clock Stabilization Wait Time Register value definition - ** (USER SETTING) - ** - ** CSW_TMR - ** - ** Bit#7 : (reserved) - ** - ** Bit#6-4 : SOWT[2:0] - ** - 0 = ~10.3 ms (default) - ** - 1 = ~20.5 ms - ** - 2 = ~41 ms - ** - 3 = ~82 ms - ** - 4 = ~164 ms - ** - 5 = ~327 ms - ** - 6 = ~655 ms - ** - 7 = ~1.31 s - ** - ** Bit#3-0 : MOWT[3:0] - ** - 0 = ~500 ns (default) - ** - 1 = ~8 us - ** - 2 = ~16 us - ** - 3 = ~32 us - ** - 4 = ~64 us - ** - 5 = ~128 us - ** - 6 = ~256 us - ** - 7 = ~512 us - ** - 8 = ~1.0 ms - ** - 9 = ~2.0 ms - ** - 10 = ~4.0 ms - ** - 11 = ~8.0 ms - ** - 12 = ~33.0 ms - ** - 13 = ~131 ms - ** - 14 = ~524 ms - ** - 15 = ~2.0 s - ******************************************************************************/ -#define CSW_TMR_Val 0x0000005Cul // <<< Define CSW_TMR here - -/** - ****************************************************************************** - ** \brief PLL Clock Stabilization Wait Time Setup Register value definition - ** (USER SETTING) - ** - ** PSW_TMR - ** - ** Bit#7-5 : (reserved) - ** - ** Bit#4 : PINC - ** - 0 = Selects CLKMO (main oscillation) (default) - ** - 1 = (setting diabled) - ** - ** Bit#3 : (reserved) - ** - ** Bit#2-0 : POWT[2:0] - ** - 0 = ~128 us (default) - ** - 1 = ~256 us - ** - 2 = ~512 us - ** - 3 = ~1.02 ms - ** - 4 = ~2.05 ms - ** - 5 = ~4.10 ms - ** - 6 = ~8.20 ms - ** - 7 = ~16.40 ms - ******************************************************************************/ -#define PSW_TMR_Val 0x00000000ul // <<< Define PSW_TMR here - -/** - ****************************************************************************** - ** \brief PLL Control Register 1 value definition - ** (USER SETTING) - ** - ** PLL_CTL1 - ** - ** Bit#7-4 : PLLK[3:0] - ** - 0 = Division(PLLK) = 1/1 (default) - ** - 1 = Division(PLLK) = 1/2 - ** - 2 = Division(PLLK) = 1/3 - ** - . . . - ** - 15 = Division(PLLK) = 1/16 - ** - ** Bit#3-0 : PLLM[3:0] - ** - 0 = Division(PLLM) = 1/1 (default) - ** - 1 = Division(PLLM) = 1/2 - ** - 2 = Division(PLLM) = 1/3 - ** - . . . - ** - 15 = Division(PLLM) = 1/16 - ******************************************************************************/ -#define PLL_CTL1_Val 0x00000001ul // <<< Define PLL_CTL1 here - -/** - ****************************************************************************** - ** \brief PLL Control Register 2 value definition - ** (USER SETTING) - ** - ** PLL_CTL2 - ** - ** Bit#7-6 : (reserved) - ** - ** Bit#5-0 : PLLN[5:0] - ** - 0 = Division(PLLN) = 1/1 (default) - ** - 1 = Division(PLLN) = 1/2 - ** - 2 = Division(PLLN) = 1/3 - ** - . . . - ** - 63 = Division(PLLN) = 1/64 - ******************************************************************************/ -#define PLL_CTL2_Val 0x00000027ul // <<< Define PLL_CTL2 here - -/** - ****************************************************************************** - ** \brief Hardware Watchdog disable definition - ** (USER SETTING) - ** - ** - 0 = Hardware Watchdog enable - ** - 1 = Hardware Watchdog disable - ******************************************************************************/ -#define HWWD_DISABLE 1 // <<< Define HW Watach dog enable here - -/** - ****************************************************************************** - ** \brief Trimming CR - ** (USER SETTING) - ** - ** - 0 = CR is not trimmed at startup - ** - 1 = CR is trimmed at startup - ******************************************************************************/ -#define CR_TRIM_SETUP 1 // <<< Define CR trimming at startup enable here - -/** - ****************************************************************************** - ** brief Trace Buffer enable definition - ** (USER SETTING) - ** - ** - 0 = Trace Buffer disable - ** - 1 = Trace Buffer enable - ******************************************************************************/ -#define TRACE_BUFFER_ENABLE 1 // <<< Define Trace Buffer enable here - - -/******************************************************************************/ -/* */ -/* END OF USER SETTINGS HERE */ -/* ========================= */ -/* */ -/******************************************************************************/ - -/******************************************************************************/ -/* Device dependent System Clock absolute maximum ranges */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Internal High-Speed CR Oscillator Frequency (in Hz, [value]ul) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKHC ( 4000000ul) /* Internal 4MHz CR Oscillator */ - -/** - ****************************************************************************** - ** \brief Internal Low-Speed CR Oscillator Frequency (in Hz, [value]ul) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKLC ( 100000ul) /* Internal 100KHz CR Oscillator */ - -/** - ****************************************************************************** - ** \brief Any case minimum Main Clock frequency (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKMOMIN ( 4000000ul) - -/** - ****************************************************************************** - ** \brief Maximum Main Clock frequency using external clock (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKMOMAX ( 48000000ul) - -/** - ****************************************************************************** - ** \brief Any case minimum Sub Clock frequency (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKSOMIN ( 32000ul) - -/** - ****************************************************************************** - ** \brief Maximum Sub Clock frequency using external clock (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKSOMAX ( 100000ul) - -/** - ****************************************************************************** - ** \brief Absolute minimum PLL input frequency (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKINMIN ( 4000000ul) - -/** - ****************************************************************************** - ** \brief Absolute maximum PLL input frequency (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKINMAX ( 16000000ul) - -/** - ****************************************************************************** - ** \brief Absolute minimum PLL oscillation frequency (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKMIN (200000000ul) - -/** - ****************************************************************************** - ** \brief Absolute maximum PLL oscillation frequency (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKMAX (320000000ul) - -/** - ****************************************************************************** - ** \brief Absolute maximum System Clock frequency (HCLK) (in Hz, [value]ul) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __HCLKMAX (160000000ul) - -/** - ****************************************************************************** - ** \brief Preprocessor macro for checking range (clock settings). - ** - ** \return 0 Within range - ** \return 1 Out of range - ******************************************************************************/ -#define CHECK_RANGE(val, min, max) (((val) < (min)) || ((val) > (max))) - -/** - ****************************************************************************** - ** \brief Preprocessor macro for checking bits with mask (clock settings). - ** Prevents from setting reserved bits by mistake. - ** - ** \return 0 All bits within mask - ** \return 1 One or more bits out of mask - ******************************************************************************/ -#define CHECK_RSVD(val, mask) ((val) & (mask)) - - -/******************************************************************************/ -/* Check register settings */ -/******************************************************************************/ -#if (CHECK_RSVD((SCM_CTL_Val), ~0x000000FAul)) - #error "SCM_CTL: Invalid values of reserved bits!" -#endif - -#if ((SCM_CTL_Val & 0xE0ul) == 0x40ul) && ((SCM_CTL_Val & 0x10ul) != 0x10ul) - #error "SCM_CTL: CLKPLL is selected but PLL is not enabled!" -#endif - -#if (CHECK_RSVD((CSW_TMR_Val), ~0x0000007Ful)) - #error "CSW_TMR: Invalid values of reserved bits!" -#endif - -#if ((SCM_CTL_Val & 0x10ul)) /* if PLL is used */ - #if (CHECK_RSVD((PSW_TMR_Val), ~0x00000017ul)) - #error "PSW_TMR: Invalid values of reserved bits!" - #endif - - #if (CHECK_RSVD((PLL_CTL1_Val), ~0x000000FFul)) - #error "PLL_CTL1: Invalid values of reserved bits!" - #endif - - #if (CHECK_RSVD((PLL_CTL2_Val), ~0x0000003Ful)) - #error "PLL_CTL2: Invalid values of reserved bits!" - #endif -#endif - -#if (CHECK_RSVD((BSC_PSR_Val), ~0x00000007ul)) - #error "BSC_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC0_PSR_Val), ~0x00000003ul)) - #error "APBC0_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC1_PSR_Val), ~0x00000093ul)) - #error "APBC1_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC2_PSR_Val), ~0x00000093ul)) - #error "APBC2_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((SWC_PSR_Val), ~0x00000003ul)) - #error "SWC_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((TTC_PSR_Val), ~0x00000003ul)) - #error "TTC_PSR: Invalid values of reserved bits!" -#endif - -/******************************************************************************/ -/* Define clocks with checking settings */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Calculate PLL K factor from settings - ******************************************************************************/ -#define __PLLK (((PLL_CTL1_Val >> 4ul) & 0x0Ful) + 1ul) - -/** - ****************************************************************************** - ** \brief Calculate PLL N factor from settings - ******************************************************************************/ -#define __PLLN (((PLL_CTL2_Val ) & 0x3Ful) + 1ul) - -/** - ****************************************************************************** - ** \brief Calculate PLL M factor from settings - ******************************************************************************/ -#define __PLLM (((PLL_CTL1_Val ) & 0x0Ful) + 1ul) - -/** - ****************************************************************************** - ** \brief Calculate PLL output frequency from settings - ******************************************************************************/ -#define __PLLCLK ((__CLKMO * __PLLN) / __PLLK) - -/******************************************************************************/ -/* Determine core clock frequency according to settings */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Define Master Clock from settings - ******************************************************************************/ -#if (((SCM_CTL_Val >> 5ul) & 0x07UL) == 0ul) - #define __MASTERCLK (__CLKHC) -#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 1ul) - #define __MASTERCLK (__CLKMO) -#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 2ul) - #define __MASTERCLK (__PLLCLK) -#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 4ul) - #define __MASTERCLK (__CLKLC) -#elif (((SCM_CTL_Val >> 5ul) & 0x07UL) == 5ul) - #define __MASTERCLK (__CLKSO) -#else - #define __MASTERCLK (0UL) -#endif - -/** - ****************************************************************************** - ** \brief Define System Clock Frequency (Core Clock) from settings - ******************************************************************************/ -#if ((BSC_PSR_Val & 0x07UL) == 0ul) - #define __HCLK (__MASTERCLK / 1ul) -#elif ((BSC_PSR_Val & 0x07UL) == 1ul) - #define __HCLK (__MASTERCLK / 2ul) -#elif ((BSC_PSR_Val & 0x07UL) == 2ul) - #define __HCLK (__MASTERCLK / 3ul) -#elif ((BSC_PSR_Val & 0x07UL) == 3ul) - #define __HCLK (__MASTERCLK / 4ul) -#elif ((BSC_PSR_Val & 0x07UL) == 4ul) - #define __HCLK (__MASTERCLK / 6ul) -#elif ((BSC_PSR_Val & 0x07UL) == 5ul) - #define __HCLK (__MASTERCLK / 8ul) -#elif ((BSC_PSR_Val & 0x07UL) == 6ul) - #define __HCLK (__MASTERCLK /16ul) -#else - #define __HCLK (0ul) -#endif - -/******************************************************************************/ -/* HCLK range check */ -/******************************************************************************/ -#if (CHECK_RANGE(__CLKMO, __CLKMOMIN, __CLKMOMAX)) - #error "Main Oscillator Clock (CLKMO) out of range!" -#endif - -#if (CHECK_RANGE(__CLKSO, __CLKSOMIN, __CLKSOMAX)) - #error "Sub Oscillator Clock (CLKMO) out of range!" -#endif - -#if (CHECK_RANGE((__CLKMO / __PLLK), __PLLCLKINMIN, __PLLCLKINMAX)) - #error "PLL input frequency out of range!" -#endif - -#if (CHECK_RANGE(((__CLKMO * __PLLN * __PLLM) / __PLLK), __PLLCLKMIN, __PLLCLKMAX)) - #error "PLL oscillation frequency out of range!" -#endif - -#if (CHECK_RANGE(__HCLK, 0UL, __HCLKMAX)) - #error "System Clock (HCLK) out of range!" -#endif - -/******************************************************************************/ -/* Global function prototypes ('extern', definition in C source) */ -/******************************************************************************/ - -extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) - -extern void SystemInit (void); // Initialize the system - -extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable - -#ifdef __cplusplus -} -#endif - -#endif /* _SYSTEM_MB9ABXXX_H_ */ diff --git a/bsp/mb9bf568r/CMSIS/Include/arm_common_tables.h b/bsp/mb9bf568r/CMSIS/Include/arm_common_tables.h deleted file mode 100644 index 7245c4f12b..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/arm_common_tables.h +++ /dev/null @@ -1,35 +0,0 @@ -/* ---------------------------------------------------------------------- -* Copyright (C) 2010 ARM Limited. All rights reserved. -* -* $Date: 11. November 2010 -* $Revision: V1.0.2 -* -* Project: CMSIS DSP Library -* Title: arm_common_tables.h -* -* Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions -* -* Target Processor: Cortex-M4/Cortex-M3 -* -* Version 1.0.2 2010/11/11 -* Documentation updated. -* -* Version 1.0.1 2010/10/05 -* Production release and review comments incorporated. -* -* Version 1.0.0 2010/09/20 -* Production release and review comments incorporated. -* -------------------------------------------------------------------- */ - -#ifndef _ARM_COMMON_TABLES_H -#define _ARM_COMMON_TABLES_H - -#include "arm_math.h" - -extern uint16_t armBitRevTable[256]; -extern q15_t armRecipTableQ15[64]; -extern q31_t armRecipTableQ31[64]; -extern const q31_t realCoefAQ31[1024]; -extern const q31_t realCoefBQ31[1024]; - -#endif /* ARM_COMMON_TABLES_H */ diff --git a/bsp/mb9bf568r/CMSIS/Include/arm_math.h b/bsp/mb9bf568r/CMSIS/Include/arm_math.h deleted file mode 100644 index ffa03b6fd1..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/arm_math.h +++ /dev/null @@ -1,7051 +0,0 @@ -/* ---------------------------------------------------------------------- - * Copyright (C) 2010 ARM Limited. All rights reserved. - * - * $Date: 15. July 2011 - * $Revision: V1.0.10 - * - * Project: CMSIS DSP Library - * Title: arm_math.h - * - * Description: Public header file for CMSIS DSP Library - * - * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0 - * - * Version 1.0.10 2011/7/15 - * Big Endian support added and Merged M0 and M3/M4 Source code. - * - * Version 1.0.3 2010/11/29 - * Re-organized the CMSIS folders and updated documentation. - * - * Version 1.0.2 2010/11/11 - * Documentation updated. - * - * Version 1.0.1 2010/10/05 - * Production release and review comments incorporated. - * - * Version 1.0.0 2010/09/20 - * Production release and review comments incorporated. - * -------------------------------------------------------------------- */ - -/** - \mainpage CMSIS DSP Software Library - * - * Introduction - * - * This user manual describes the CMSIS DSP software library, - * a suite of common signal processing functions for use on Cortex-M processor based devices. - * - * The library is divided into a number of modules each covering a specific category: - * - Basic math functions - * - Fast math functions - * - Complex math functions - * - Filters - * - Matrix functions - * - Transforms - * - Motor control functions - * - Statistical functions - * - Support functions - * - Interpolation functions - * - * The library has separate functions for operating on 8-bit integers, 16-bit integers, - * 32-bit integer and 32-bit floating-point values. - * - * Processor Support - * - * The library is completely written in C and is fully CMSIS compliant. - * High performance is achieved through maximum use of Cortex-M4 intrinsics. - * - * The supplied library source code also builds and runs on the Cortex-M3 and Cortex-M0 processor, - * with the DSP intrinsics being emulated through software. - * - * - * Toolchain Support - * - * The library has been developed and tested with MDK-ARM version 4.21. - * The library is being tested in GCC and IAR toolchains and updates on this activity will be made available shortly. - * - * Using the Library - * - * The library installer contains prebuilt versions of the libraries in the Lib folder. - * - arm_cortexM4lf_math.lib (Little endian and Floating Point Unit on Cortex-M4) - * - arm_cortexM4bf_math.lib (Big endian and Floating Point Unit on Cortex-M4) - * - arm_cortexM4l_math.lib (Little endian on Cortex-M4) - * - arm_cortexM4b_math.lib (Big endian on Cortex-M4) - * - arm_cortexM3l_math.lib (Little endian on Cortex-M3) - * - arm_cortexM3b_math.lib (Big endian on Cortex-M3) - * - arm_cortexM0l_math.lib (Little endian on Cortex-M0) - * - arm_cortexM0b_math.lib (Big endian on Cortex-M3) - * - * The library functions are declared in the public file arm_math.h which is placed in the Include folder. - * Simply include this file and link the appropriate library in the application and begin calling the library functions. The Library supports single - * public header file arm_math.h for Cortex-M4/M3/M0 with little endian and big endian. Same header file will be used for floating point unit(FPU) variants. - * Define the appropriate pre processor MACRO ARM_MATH_CM4 or ARM_MATH_CM3 or - * ARM_MATH_CM0 depending on the target processor in the application. - * - * Examples - * - * The library ships with a number of examples which demonstrate how to use the library functions. - * - * Building the Library - * - * The library installer contains project files to re build libraries on MDK Tool chain in the CMSIS\DSP_Lib\Source\ARM folder. - * - arm_cortexM0b_math.uvproj - * - arm_cortexM0l_math.uvproj - * - arm_cortexM3b_math.uvproj - * - arm_cortexM3l_math.uvproj - * - arm_cortexM4b_math.uvproj - * - arm_cortexM4l_math.uvproj - * - arm_cortexM4bf_math.uvproj - * - arm_cortexM4lf_math.uvproj - * - * Each library project have differant pre-processor macros. - * - * ARM_MATH_CMx: - * Define macro ARM_MATH_CM4 for building the library on Cortex-M4 target, ARM_MATH_CM3 for building library on Cortex-M3 target - * and ARM_MATH_CM0 for building library on cortex-M0 target. - * - * ARM_MATH_BIG_ENDIAN: - * Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets. - * - * ARM_MATH_MATRIX_CHECK: - * Define macro for checking on the input and output sizes of matrices - * - * ARM_MATH_ROUNDING: - * Define macro for rounding on support functions - * - * __FPU_PRESENT: - * Initialize macro __FPU_PRESENT = 1 when building on FPU supported Targets. Enable this macro for M4bf and M4lf libraries - * - * - * The project can be built by opening the appropriate project in MDK-ARM 4.21 chain and defining the optional pre processor MACROs detailed above. - * - * Copyright Notice - * - * Copyright (C) 2010 ARM Limited. All rights reserved. - */ - - -/** - * @defgroup groupMath Basic Math Functions - */ - -/** - * @defgroup groupFastMath Fast Math Functions - * This set of functions provides a fast approximation to sine, cosine, and square root. - * As compared to most of the other functions in the CMSIS math library, the fast math functions - * operate on individual values and not arrays. - * There are separate functions for Q15, Q31, and floating-point data. - * - */ - -/** - * @defgroup groupCmplxMath Complex Math Functions - * This set of functions operates on complex data vectors. - * The data in the complex arrays is stored in an interleaved fashion - * (real, imag, real, imag, ...). - * In the API functions, the number of samples in a complex array refers - * to the number of complex values; the array contains twice this number of - * real values. - */ - -/** - * @defgroup groupFilters Filtering Functions - */ - -/** - * @defgroup groupMatrix Matrix Functions - * - * This set of functions provides basic matrix math operations. - * The functions operate on matrix data structures. For example, - * the type - * definition for the floating-point matrix structure is shown - * below: - *
- *     typedef struct
- *     {
- *       uint16_t numRows;     // number of rows of the matrix.
- *       uint16_t numCols;     // number of columns of the matrix.
- *       float32_t *pData;     // points to the data of the matrix.
- *     } arm_matrix_instance_f32;
- * 
- * There are similar definitions for Q15 and Q31 data types. - * - * The structure specifies the size of the matrix and then points to - * an array of data. The array is of size numRows X numCols - * and the values are arranged in row order. That is, the - * matrix element (i, j) is stored at: - *
- *     pData[i*numCols + j]
- * 
- * - * \par Init Functions - * There is an associated initialization function for each type of matrix - * data structure. - * The initialization function sets the values of the internal structure fields. - * Refer to the function arm_mat_init_f32(), arm_mat_init_q31() - * and arm_mat_init_q15() for floating-point, Q31 and Q15 types, respectively. - * - * \par - * Use of the initialization function is optional. However, if initialization function is used - * then the instance structure cannot be placed into a const data section. - * To place the instance structure in a const data - * section, manually initialize the data structure. For example: - *
- * arm_matrix_instance_f32 S = {nRows, nColumns, pData};
- * arm_matrix_instance_q31 S = {nRows, nColumns, pData};
- * arm_matrix_instance_q15 S = {nRows, nColumns, pData};
- * 
- * where nRows specifies the number of rows, nColumns - * specifies the number of columns, and pData points to the - * data array. - * - * \par Size Checking - * By default all of the matrix functions perform size checking on the input and - * output matrices. For example, the matrix addition function verifies that the - * two input matrices and the output matrix all have the same number of rows and - * columns. If the size check fails the functions return: - *
- *     ARM_MATH_SIZE_MISMATCH
- * 
- * Otherwise the functions return - *
- *     ARM_MATH_SUCCESS
- * 
- * There is some overhead associated with this matrix size checking. - * The matrix size checking is enabled via the #define - *
- *     ARM_MATH_MATRIX_CHECK
- * 
- * within the library project settings. By default this macro is defined - * and size checking is enabled. By changing the project settings and - * undefining this macro size checking is eliminated and the functions - * run a bit faster. With size checking disabled the functions always - * return ARM_MATH_SUCCESS. - */ - -/** - * @defgroup groupTransforms Transform Functions - */ - -/** - * @defgroup groupController Controller Functions - */ - -/** - * @defgroup groupStats Statistics Functions - */ -/** - * @defgroup groupSupport Support Functions - */ - -/** - * @defgroup groupInterpolation Interpolation Functions - * These functions perform 1- and 2-dimensional interpolation of data. - * Linear interpolation is used for 1-dimensional data and - * bilinear interpolation is used for 2-dimensional data. - */ - -/** - * @defgroup groupExamples Examples - */ -#ifndef _ARM_MATH_H -#define _ARM_MATH_H - -#define __CMSIS_GENERIC /* disable NVIC and Systick functions */ - -#if defined (ARM_MATH_CM4) - #include "core_cm4.h" -#elif defined (ARM_MATH_CM3) - #include "core_cm3.h" -#elif defined (ARM_MATH_CM0) - #include "core_cm0.h" -#else -#include "ARMCM4.h" -#warning "Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4....." -#endif - -#undef __CMSIS_GENERIC /* enable NVIC and Systick functions */ -#include "string.h" - #include "math.h" -#ifdef __cplusplus -extern "C" -{ -#endif - - - /** - * @brief Macros required for reciprocal calculation in Normalized LMS - */ - -#define DELTA_Q31 (0x100) -#define DELTA_Q15 0x5 -#define INDEX_MASK 0x0000003F -#define PI 3.14159265358979f - - /** - * @brief Macros required for SINE and COSINE Fast math approximations - */ - -#define TABLE_SIZE 256 -#define TABLE_SPACING_Q31 0x800000 -#define TABLE_SPACING_Q15 0x80 - - /** - * @brief Macros required for SINE and COSINE Controller functions - */ - /* 1.31(q31) Fixed value of 2/360 */ - /* -1 to +1 is divided into 360 values so total spacing is (2/360) */ -#define INPUT_SPACING 0xB60B61 - - - /** - * @brief Error status returned by some functions in the library. - */ - - typedef enum - { - ARM_MATH_SUCCESS = 0, /**< No error */ - ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */ - ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */ - ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */ - ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */ - ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */ - ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */ - } arm_status; - - /** - * @brief 8-bit fractional data type in 1.7 format. - */ - typedef int8_t q7_t; - - /** - * @brief 16-bit fractional data type in 1.15 format. - */ - typedef int16_t q15_t; - - /** - * @brief 32-bit fractional data type in 1.31 format. - */ - typedef int32_t q31_t; - - /** - * @brief 64-bit fractional data type in 1.63 format. - */ - typedef int64_t q63_t; - - /** - * @brief 32-bit floating-point type definition. - */ - typedef float float32_t; - - /** - * @brief 64-bit floating-point type definition. - */ - typedef double float64_t; - - /** - * @brief definition to read/write two 16 bit values. - */ -#define __SIMD32(addr) (*(int32_t **) & (addr)) - -#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0) - /** - * @brief definition to pack two 16 bit values. - */ -#define __PKHBT(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0x0000FFFF) | \ - (((int32_t)(ARG2) << ARG3) & (int32_t)0xFFFF0000) ) - -#endif - - - /** - * @brief definition to pack four 8 bit values. - */ -#ifndef ARM_MATH_BIG_ENDIAN - -#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v0) << 0) & (int32_t)0x000000FF) | \ - (((int32_t)(v1) << 8) & (int32_t)0x0000FF00) | \ - (((int32_t)(v2) << 16) & (int32_t)0x00FF0000) | \ - (((int32_t)(v3) << 24) & (int32_t)0xFF000000) ) -#else - -#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v3) << 0) & (int32_t)0x000000FF) | \ - (((int32_t)(v2) << 8) & (int32_t)0x0000FF00) | \ - (((int32_t)(v1) << 16) & (int32_t)0x00FF0000) | \ - (((int32_t)(v0) << 24) & (int32_t)0xFF000000) ) - -#endif - - - /** - * @brief Clips Q63 to Q31 values. - */ - static __INLINE q31_t clip_q63_to_q31( - q63_t x) - { - return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? - ((0x7FFFFFFF ^ ((q31_t) (x >> 63)))) : (q31_t) x; - } - - /** - * @brief Clips Q63 to Q15 values. - */ - static __INLINE q15_t clip_q63_to_q15( - q63_t x) - { - return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? - ((0x7FFF ^ ((q15_t) (x >> 63)))) : (q15_t) (x >> 15); - } - - /** - * @brief Clips Q31 to Q7 values. - */ - static __INLINE q7_t clip_q31_to_q7( - q31_t x) - { - return ((q31_t) (x >> 24) != ((q31_t) x >> 23)) ? - ((0x7F ^ ((q7_t) (x >> 31)))) : (q7_t) x; - } - - /** - * @brief Clips Q31 to Q15 values. - */ - static __INLINE q15_t clip_q31_to_q15( - q31_t x) - { - return ((q31_t) (x >> 16) != ((q31_t) x >> 15)) ? - ((0x7FFF ^ ((q15_t) (x >> 31)))) : (q15_t) x; - } - - /** - * @brief Multiplies 32 X 64 and returns 32 bit result in 2.30 format. - */ - - static __INLINE q63_t mult32x64( - q63_t x, - q31_t y) - { - return ((((q63_t) (x & 0x00000000FFFFFFFF) * y) >> 32) + - (((q63_t) (x >> 32) * y))); - } - - -#if defined (ARM_MATH_CM0) && defined ( __CC_ARM ) -#define __CLZ __clz -#endif - -#if defined (ARM_MATH_CM0) && ((defined (__ICCARM__)) ||(defined (__GNUC__)) || defined (__TASKING__) ) - - static __INLINE uint32_t __CLZ(q31_t data); - - - static __INLINE uint32_t __CLZ(q31_t data) - { - uint32_t count = 0; - uint32_t mask = 0x80000000; - - while((data & mask) == 0) - { - count += 1u; - mask = mask >> 1u; - } - - return(count); - - } - -#endif - - /** - * @brief Function to Calculates 1/in(reciprocal) value of Q31 Data type. - */ - - static __INLINE uint32_t arm_recip_q31( - q31_t in, - q31_t * dst, - q31_t * pRecipTable) - { - - uint32_t out, tempVal; - uint32_t index, i; - uint32_t signBits; - - if(in > 0) - { - signBits = __CLZ(in) - 1; - } - else - { - signBits = __CLZ(-in) - 1; - } - - /* Convert input sample to 1.31 format */ - in = in << signBits; - - /* calculation of index for initial approximated Val */ - index = (uint32_t) (in >> 24u); - index = (index & INDEX_MASK); - - /* 1.31 with exp 1 */ - out = pRecipTable[index]; - - /* calculation of reciprocal value */ - /* running approximation for two iterations */ - for (i = 0u; i < 2u; i++) - { - tempVal = (q31_t) (((q63_t) in * out) >> 31u); - tempVal = 0x7FFFFFFF - tempVal; - /* 1.31 with exp 1 */ - //out = (q31_t) (((q63_t) out * tempVal) >> 30u); - out = (q31_t) clip_q63_to_q31(((q63_t) out * tempVal) >> 30u); - } - - /* write output */ - *dst = out; - - /* return num of signbits of out = 1/in value */ - return (signBits + 1u); - - } - - /** - * @brief Function to Calculates 1/in(reciprocal) value of Q15 Data type. - */ - static __INLINE uint32_t arm_recip_q15( - q15_t in, - q15_t * dst, - q15_t * pRecipTable) - { - - uint32_t out = 0, tempVal = 0; - uint32_t index = 0, i = 0; - uint32_t signBits = 0; - - if(in > 0) - { - signBits = __CLZ(in) - 17; - } - else - { - signBits = __CLZ(-in) - 17; - } - - /* Convert input sample to 1.15 format */ - in = in << signBits; - - /* calculation of index for initial approximated Val */ - index = in >> 8; - index = (index & INDEX_MASK); - - /* 1.15 with exp 1 */ - out = pRecipTable[index]; - - /* calculation of reciprocal value */ - /* running approximation for two iterations */ - for (i = 0; i < 2; i++) - { - tempVal = (q15_t) (((q31_t) in * out) >> 15); - tempVal = 0x7FFF - tempVal; - /* 1.15 with exp 1 */ - out = (q15_t) (((q31_t) out * tempVal) >> 14); - } - - /* write output */ - *dst = out; - - /* return num of signbits of out = 1/in value */ - return (signBits + 1); - - } - - - /* - * @brief C custom defined intrinisic function for only M0 processors - */ -#if defined(ARM_MATH_CM0) - - static __INLINE q31_t __SSAT( - q31_t x, - uint32_t y) - { - int32_t posMax, negMin; - uint32_t i; - - posMax = 1; - for (i = 0; i < (y - 1); i++) - { - posMax = posMax * 2; - } - - if(x > 0) - { - posMax = (posMax - 1); - - if(x > posMax) - { - x = posMax; - } - } - else - { - negMin = -posMax; - - if(x < negMin) - { - x = negMin; - } - } - return (x); - - - } - -#endif /* end of ARM_MATH_CM0 */ - - - - /* - * @brief C custom defined intrinsic function for M3 and M0 processors - */ -#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0) - - /* - * @brief C custom defined QADD8 for M3 and M0 processors - */ - static __INLINE q31_t __QADD8( - q31_t x, - q31_t y) - { - - q31_t sum; - q7_t r, s, t, u; - - r = (char) x; - s = (char) y; - - r = __SSAT((q31_t) (r + s), 8); - s = __SSAT(((q31_t) (((x << 16) >> 24) + ((y << 16) >> 24))), 8); - t = __SSAT(((q31_t) (((x << 8) >> 24) + ((y << 8) >> 24))), 8); - u = __SSAT(((q31_t) ((x >> 24) + (y >> 24))), 8); - - sum = (((q31_t) u << 24) & 0xFF000000) | (((q31_t) t << 16) & 0x00FF0000) | - (((q31_t) s << 8) & 0x0000FF00) | (r & 0x000000FF); - - return sum; - - } - - /* - * @brief C custom defined QSUB8 for M3 and M0 processors - */ - static __INLINE q31_t __QSUB8( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s, t, u; - - r = (char) x; - s = (char) y; - - r = __SSAT((r - s), 8); - s = __SSAT(((q31_t) (((x << 16) >> 24) - ((y << 16) >> 24))), 8) << 8; - t = __SSAT(((q31_t) (((x << 8) >> 24) - ((y << 8) >> 24))), 8) << 16; - u = __SSAT(((q31_t) ((x >> 24) - (y >> 24))), 8) << 24; - - sum = - (u & 0xFF000000) | (t & 0x00FF0000) | (s & 0x0000FF00) | (r & 0x000000FF); - - return sum; - } - - /* - * @brief C custom defined QADD16 for M3 and M0 processors - */ - - /* - * @brief C custom defined QADD16 for M3 and M0 processors - */ - static __INLINE q31_t __QADD16( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = __SSAT(r + s, 16); - s = __SSAT(((q31_t) ((x >> 16) + (y >> 16))), 16) << 16; - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - - } - - /* - * @brief C custom defined SHADD16 for M3 and M0 processors - */ - static __INLINE q31_t __SHADD16( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) + (s >> 1)); - s = ((q31_t) ((x >> 17) + (y >> 17))) << 16; - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - - } - - /* - * @brief C custom defined QSUB16 for M3 and M0 processors - */ - static __INLINE q31_t __QSUB16( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = __SSAT(r - s, 16); - s = __SSAT(((q31_t) ((x >> 16) - (y >> 16))), 16) << 16; - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - } - - /* - * @brief C custom defined SHSUB16 for M3 and M0 processors - */ - static __INLINE q31_t __SHSUB16( - q31_t x, - q31_t y) - { - - q31_t diff; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) - (s >> 1)); - s = (((x >> 17) - (y >> 17)) << 16); - - diff = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return diff; - } - - /* - * @brief C custom defined QASX for M3 and M0 processors - */ - static __INLINE q31_t __QASX( - q31_t x, - q31_t y) - { - - q31_t sum = 0; - - sum = ((sum + clip_q31_to_q15((q31_t) ((short) (x >> 16) + (short) y))) << 16) + - clip_q31_to_q15((q31_t) ((short) x - (short) (y >> 16))); - - return sum; - } - - /* - * @brief C custom defined SHASX for M3 and M0 processors - */ - static __INLINE q31_t __SHASX( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) - (y >> 17)); - s = (((x >> 17) + (s >> 1)) << 16); - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - } - - - /* - * @brief C custom defined QSAX for M3 and M0 processors - */ - static __INLINE q31_t __QSAX( - q31_t x, - q31_t y) - { - - q31_t sum = 0; - - sum = ((sum + clip_q31_to_q15((q31_t) ((short) (x >> 16) - (short) y))) << 16) + - clip_q31_to_q15((q31_t) ((short) x + (short) (y >> 16))); - - return sum; - } - - /* - * @brief C custom defined SHSAX for M3 and M0 processors - */ - static __INLINE q31_t __SHSAX( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) + (y >> 17)); - s = (((x >> 17) - (s >> 1)) << 16); - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - } - - /* - * @brief C custom defined SMUSDX for M3 and M0 processors - */ - static __INLINE q31_t __SMUSDX( - q31_t x, - q31_t y) - { - - return ((q31_t)(((short) x * (short) (y >> 16)) - - ((short) (x >> 16) * (short) y))); - } - - /* - * @brief C custom defined SMUADX for M3 and M0 processors - */ - static __INLINE q31_t __SMUADX( - q31_t x, - q31_t y) - { - - return ((q31_t)(((short) x * (short) (y >> 16)) + - ((short) (x >> 16) * (short) y))); - } - - /* - * @brief C custom defined QADD for M3 and M0 processors - */ - static __INLINE q31_t __QADD( - q31_t x, - q31_t y) - { - return clip_q63_to_q31((q63_t) x + y); - } - - /* - * @brief C custom defined QSUB for M3 and M0 processors - */ - static __INLINE q31_t __QSUB( - q31_t x, - q31_t y) - { - return clip_q63_to_q31((q63_t) x - y); - } - - /* - * @brief C custom defined SMLAD for M3 and M0 processors - */ - static __INLINE q31_t __SMLAD( - q31_t x, - q31_t y, - q31_t sum) - { - - return (sum + ((short) (x >> 16) * (short) (y >> 16)) + - ((short) x * (short) y)); - } - - /* - * @brief C custom defined SMLADX for M3 and M0 processors - */ - static __INLINE q31_t __SMLADX( - q31_t x, - q31_t y, - q31_t sum) - { - - return (sum + ((short) (x >> 16) * (short) (y)) + - ((short) x * (short) (y >> 16))); - } - - /* - * @brief C custom defined SMLSDX for M3 and M0 processors - */ - static __INLINE q31_t __SMLSDX( - q31_t x, - q31_t y, - q31_t sum) - { - - return (sum - ((short) (x >> 16) * (short) (y)) + - ((short) x * (short) (y >> 16))); - } - - /* - * @brief C custom defined SMLALD for M3 and M0 processors - */ - static __INLINE q63_t __SMLALD( - q31_t x, - q31_t y, - q63_t sum) - { - - return (sum + ((short) (x >> 16) * (short) (y >> 16)) + - ((short) x * (short) y)); - } - - /* - * @brief C custom defined SMLALDX for M3 and M0 processors - */ - static __INLINE q63_t __SMLALDX( - q31_t x, - q31_t y, - q63_t sum) - { - - return (sum + ((short) (x >> 16) * (short) y)) + - ((short) x * (short) (y >> 16)); - } - - /* - * @brief C custom defined SMUAD for M3 and M0 processors - */ - static __INLINE q31_t __SMUAD( - q31_t x, - q31_t y) - { - - return (((x >> 16) * (y >> 16)) + - (((x << 16) >> 16) * ((y << 16) >> 16))); - } - - /* - * @brief C custom defined SMUSD for M3 and M0 processors - */ - static __INLINE q31_t __SMUSD( - q31_t x, - q31_t y) - { - - return (-((x >> 16) * (y >> 16)) + - (((x << 16) >> 16) * ((y << 16) >> 16))); - } - - - - -#endif /* (ARM_MATH_CM3) || defined (ARM_MATH_CM0) */ - - - /** - * @brief Instance structure for the Q7 FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - } arm_fir_instance_q7; - - /** - * @brief Instance structure for the Q15 FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - } arm_fir_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - } arm_fir_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - } arm_fir_instance_f32; - - - /** - * @brief Processing function for the Q7 FIR filter. - * @param[in] *S points to an instance of the Q7 FIR filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_q7( - const arm_fir_instance_q7 * S, - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q7 FIR filter. - * @param[in,out] *S points to an instance of the Q7 FIR structure. - * @param[in] numTaps Number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed. - * @return none - */ - void arm_fir_init_q7( - arm_fir_instance_q7 * S, - uint16_t numTaps, - q7_t * pCoeffs, - q7_t * pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q15 FIR filter. - * @param[in] *S points to an instance of the Q15 FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_q15( - const arm_fir_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the fast Q15 FIR filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q15 FIR filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_fast_q15( - const arm_fir_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q15 FIR filter. - * @param[in,out] *S points to an instance of the Q15 FIR filter structure. - * @param[in] numTaps Number of filter coefficients in the filter. Must be even and greater than or equal to 4. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed at a time. - * @return The function returns ARM_MATH_SUCCESS if initialization was successful or ARM_MATH_ARGUMENT_ERROR if - * numTaps is not a supported value. - */ - - arm_status arm_fir_init_q15( - arm_fir_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR filter. - * @param[in] *S points to an instance of the Q31 FIR filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_q31( - const arm_fir_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the fast Q31 FIR filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q31 FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_fast_q31( - const arm_fir_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 FIR filter. - * @param[in,out] *S points to an instance of the Q31 FIR structure. - * @param[in] numTaps Number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed at a time. - * @return none. - */ - void arm_fir_init_q31( - arm_fir_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the floating-point FIR filter. - * @param[in] *S points to an instance of the floating-point FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_f32( - const arm_fir_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point FIR filter. - * @param[in,out] *S points to an instance of the floating-point FIR filter structure. - * @param[in] numTaps Number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed at a time. - * @return none. - */ - void arm_fir_init_f32( - arm_fir_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q15 Biquad cascade filter. - */ - typedef struct - { - int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ - q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ - int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ - - } arm_biquad_casd_df1_inst_q15; - - - /** - * @brief Instance structure for the Q31 Biquad cascade filter. - */ - typedef struct - { - uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ - q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ - uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ - - } arm_biquad_casd_df1_inst_q31; - - /** - * @brief Instance structure for the floating-point Biquad cascade filter. - */ - typedef struct - { - uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ - float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ - - - } arm_biquad_casd_df1_inst_f32; - - - - /** - * @brief Processing function for the Q15 Biquad cascade filter. - * @param[in] *S points to an instance of the Q15 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_q15( - const arm_biquad_casd_df1_inst_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q15 Biquad cascade filter. - * @param[in,out] *S points to an instance of the Q15 Biquad cascade structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format - * @return none - */ - - void arm_biquad_cascade_df1_init_q15( - arm_biquad_casd_df1_inst_q15 * S, - uint8_t numStages, - q15_t * pCoeffs, - q15_t * pState, - int8_t postShift); - - - /** - * @brief Fast but less precise processing function for the Q15 Biquad cascade filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q15 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_fast_q15( - const arm_biquad_casd_df1_inst_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q31 Biquad cascade filter - * @param[in] *S points to an instance of the Q31 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_q31( - const arm_biquad_casd_df1_inst_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Fast but less precise processing function for the Q31 Biquad cascade filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q31 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_fast_q31( - const arm_biquad_casd_df1_inst_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 Biquad cascade filter. - * @param[in,out] *S points to an instance of the Q31 Biquad cascade structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format - * @return none - */ - - void arm_biquad_cascade_df1_init_q31( - arm_biquad_casd_df1_inst_q31 * S, - uint8_t numStages, - q31_t * pCoeffs, - q31_t * pState, - int8_t postShift); - - /** - * @brief Processing function for the floating-point Biquad cascade filter. - * @param[in] *S points to an instance of the floating-point Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_f32( - const arm_biquad_casd_df1_inst_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point Biquad cascade filter. - * @param[in,out] *S points to an instance of the floating-point Biquad cascade structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @return none - */ - - void arm_biquad_cascade_df1_init_f32( - arm_biquad_casd_df1_inst_f32 * S, - uint8_t numStages, - float32_t * pCoeffs, - float32_t * pState); - - - /** - * @brief Instance structure for the floating-point matrix structure. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows of the matrix. */ - uint16_t numCols; /**< number of columns of the matrix. */ - float32_t *pData; /**< points to the data of the matrix. */ - } arm_matrix_instance_f32; - - /** - * @brief Instance structure for the Q15 matrix structure. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows of the matrix. */ - uint16_t numCols; /**< number of columns of the matrix. */ - q15_t *pData; /**< points to the data of the matrix. */ - - } arm_matrix_instance_q15; - - /** - * @brief Instance structure for the Q31 matrix structure. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows of the matrix. */ - uint16_t numCols; /**< number of columns of the matrix. */ - q31_t *pData; /**< points to the data of the matrix. */ - - } arm_matrix_instance_q31; - - - - /** - * @brief Floating-point matrix addition. - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_add_f32( - const arm_matrix_instance_f32 * pSrcA, - const arm_matrix_instance_f32 * pSrcB, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix addition. - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_add_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix addition. - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_add_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Floating-point matrix transpose. - * @param[in] *pSrc points to the input matrix - * @param[out] *pDst points to the output matrix - * @return The function returns either ARM_MATH_SIZE_MISMATCH - * or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_trans_f32( - const arm_matrix_instance_f32 * pSrc, - arm_matrix_instance_f32 * pDst); - - - /** - * @brief Q15 matrix transpose. - * @param[in] *pSrc points to the input matrix - * @param[out] *pDst points to the output matrix - * @return The function returns either ARM_MATH_SIZE_MISMATCH - * or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_trans_q15( - const arm_matrix_instance_q15 * pSrc, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix transpose. - * @param[in] *pSrc points to the input matrix - * @param[out] *pDst points to the output matrix - * @return The function returns either ARM_MATH_SIZE_MISMATCH - * or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_trans_q31( - const arm_matrix_instance_q31 * pSrc, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Floating-point matrix multiplication - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_f32( - const arm_matrix_instance_f32 * pSrcA, - const arm_matrix_instance_f32 * pSrcB, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix multiplication - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst, - q15_t * pState); - - /** - * @brief Q15 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @param[in] *pState points to the array for storing intermediate results - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_fast_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst, - q15_t * pState); - - /** - * @brief Q31 matrix multiplication - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - /** - * @brief Q31 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_fast_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Floating-point matrix subtraction - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_sub_f32( - const arm_matrix_instance_f32 * pSrcA, - const arm_matrix_instance_f32 * pSrcB, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix subtraction - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_sub_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix subtraction - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_sub_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - /** - * @brief Floating-point matrix scaling. - * @param[in] *pSrc points to the input matrix - * @param[in] scale scale factor - * @param[out] *pDst points to the output matrix - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_scale_f32( - const arm_matrix_instance_f32 * pSrc, - float32_t scale, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix scaling. - * @param[in] *pSrc points to input matrix - * @param[in] scaleFract fractional portion of the scale factor - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to output matrix - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_scale_q15( - const arm_matrix_instance_q15 * pSrc, - q15_t scaleFract, - int32_t shift, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix scaling. - * @param[in] *pSrc points to input matrix - * @param[in] scaleFract fractional portion of the scale factor - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_scale_q31( - const arm_matrix_instance_q31 * pSrc, - q31_t scaleFract, - int32_t shift, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Q31 matrix initialization. - * @param[in,out] *S points to an instance of the floating-point matrix structure. - * @param[in] nRows number of rows in the matrix. - * @param[in] nColumns number of columns in the matrix. - * @param[in] *pData points to the matrix data array. - * @return none - */ - - void arm_mat_init_q31( - arm_matrix_instance_q31 * S, - uint16_t nRows, - uint16_t nColumns, - q31_t *pData); - - /** - * @brief Q15 matrix initialization. - * @param[in,out] *S points to an instance of the floating-point matrix structure. - * @param[in] nRows number of rows in the matrix. - * @param[in] nColumns number of columns in the matrix. - * @param[in] *pData points to the matrix data array. - * @return none - */ - - void arm_mat_init_q15( - arm_matrix_instance_q15 * S, - uint16_t nRows, - uint16_t nColumns, - q15_t *pData); - - /** - * @brief Floating-point matrix initialization. - * @param[in,out] *S points to an instance of the floating-point matrix structure. - * @param[in] nRows number of rows in the matrix. - * @param[in] nColumns number of columns in the matrix. - * @param[in] *pData points to the matrix data array. - * @return none - */ - - void arm_mat_init_f32( - arm_matrix_instance_f32 * S, - uint16_t nRows, - uint16_t nColumns, - float32_t *pData); - - - - /** - * @brief Instance structure for the Q15 PID Control. - */ - typedef struct - { - q15_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ - #ifdef ARM_MATH_CM0 - q15_t A1; - q15_t A2; - #else - q31_t A1; /**< The derived gain A1 = -Kp - 2Kd | Kd.*/ - #endif - q15_t state[3]; /**< The state array of length 3. */ - q15_t Kp; /**< The proportional gain. */ - q15_t Ki; /**< The integral gain. */ - q15_t Kd; /**< The derivative gain. */ - } arm_pid_instance_q15; - - /** - * @brief Instance structure for the Q31 PID Control. - */ - typedef struct - { - q31_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ - q31_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ - q31_t A2; /**< The derived gain, A2 = Kd . */ - q31_t state[3]; /**< The state array of length 3. */ - q31_t Kp; /**< The proportional gain. */ - q31_t Ki; /**< The integral gain. */ - q31_t Kd; /**< The derivative gain. */ - - } arm_pid_instance_q31; - - /** - * @brief Instance structure for the floating-point PID Control. - */ - typedef struct - { - float32_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ - float32_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ - float32_t A2; /**< The derived gain, A2 = Kd . */ - float32_t state[3]; /**< The state array of length 3. */ - float32_t Kp; /**< The proportional gain. */ - float32_t Ki; /**< The integral gain. */ - float32_t Kd; /**< The derivative gain. */ - } arm_pid_instance_f32; - - - - /** - * @brief Initialization function for the floating-point PID Control. - * @param[in,out] *S points to an instance of the PID structure. - * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. - * @return none. - */ - void arm_pid_init_f32( - arm_pid_instance_f32 * S, - int32_t resetStateFlag); - - /** - * @brief Reset function for the floating-point PID Control. - * @param[in,out] *S is an instance of the floating-point PID Control structure - * @return none - */ - void arm_pid_reset_f32( - arm_pid_instance_f32 * S); - - - /** - * @brief Initialization function for the Q31 PID Control. - * @param[in,out] *S points to an instance of the Q15 PID structure. - * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. - * @return none. - */ - void arm_pid_init_q31( - arm_pid_instance_q31 * S, - int32_t resetStateFlag); - - - /** - * @brief Reset function for the Q31 PID Control. - * @param[in,out] *S points to an instance of the Q31 PID Control structure - * @return none - */ - - void arm_pid_reset_q31( - arm_pid_instance_q31 * S); - - /** - * @brief Initialization function for the Q15 PID Control. - * @param[in,out] *S points to an instance of the Q15 PID structure. - * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. - * @return none. - */ - void arm_pid_init_q15( - arm_pid_instance_q15 * S, - int32_t resetStateFlag); - - /** - * @brief Reset function for the Q15 PID Control. - * @param[in,out] *S points to an instance of the q15 PID Control structure - * @return none - */ - void arm_pid_reset_q15( - arm_pid_instance_q15 * S); - - - /** - * @brief Instance structure for the floating-point Linear Interpolate function. - */ - typedef struct - { - uint32_t nValues; - float32_t x1; - float32_t xSpacing; - float32_t *pYData; /**< pointer to the table of Y values */ - } arm_linear_interp_instance_f32; - - /** - * @brief Instance structure for the floating-point bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - float32_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_f32; - - /** - * @brief Instance structure for the Q31 bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - q31_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_q31; - - /** - * @brief Instance structure for the Q15 bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - q15_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_q15; - - /** - * @brief Instance structure for the Q15 bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - q7_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_q7; - - - /** - * @brief Q7 vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_q7( - q7_t * pSrcA, - q7_t * pSrcB, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Floating-point vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q15 CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - q15_t *pTwiddle; /**< points to the twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - } arm_cfft_radix4_instance_q15; - - /** - * @brief Instance structure for the Q31 CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - q31_t *pTwiddle; /**< points to the twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - } arm_cfft_radix4_instance_q31; - - /** - * @brief Instance structure for the floating-point CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - float32_t *pTwiddle; /**< points to the twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - float32_t onebyfftLen; /**< value of 1/fftLen. */ - } arm_cfft_radix4_instance_f32; - - /** - * @brief Processing function for the Q15 CFFT/CIFFT. - * @param[in] *S points to an instance of the Q15 CFFT/CIFFT structure. - * @param[in, out] *pSrc points to the complex data buffer. Processing occurs in-place. - * @return none. - */ - - void arm_cfft_radix4_q15( - const arm_cfft_radix4_instance_q15 * S, - q15_t * pSrc); - - /** - * @brief Initialization function for the Q15 CFFT/CIFFT. - * @param[in,out] *S points to an instance of the Q15 CFFT/CIFFT structure. - * @param[in] fftLen length of the FFT. - * @param[in] ifftFlag flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. - * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLen is not a supported value. - */ - - arm_status arm_cfft_radix4_init_q15( - arm_cfft_radix4_instance_q15 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - /** - * @brief Processing function for the Q31 CFFT/CIFFT. - * @param[in] *S points to an instance of the Q31 CFFT/CIFFT structure. - * @param[in, out] *pSrc points to the complex data buffer. Processing occurs in-place. - * @return none. - */ - - void arm_cfft_radix4_q31( - const arm_cfft_radix4_instance_q31 * S, - q31_t * pSrc); - - /** - * @brief Initialization function for the Q31 CFFT/CIFFT. - * @param[in,out] *S points to an instance of the Q31 CFFT/CIFFT structure. - * @param[in] fftLen length of the FFT. - * @param[in] ifftFlag flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. - * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLen is not a supported value. - */ - - arm_status arm_cfft_radix4_init_q31( - arm_cfft_radix4_instance_q31 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - /** - * @brief Processing function for the floating-point CFFT/CIFFT. - * @param[in] *S points to an instance of the floating-point CFFT/CIFFT structure. - * @param[in, out] *pSrc points to the complex data buffer. Processing occurs in-place. - * @return none. - */ - - void arm_cfft_radix4_f32( - const arm_cfft_radix4_instance_f32 * S, - float32_t * pSrc); - - /** - * @brief Initialization function for the floating-point CFFT/CIFFT. - * @param[in,out] *S points to an instance of the floating-point CFFT/CIFFT structure. - * @param[in] fftLen length of the FFT. - * @param[in] ifftFlag flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. - * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLen is not a supported value. - */ - - arm_status arm_cfft_radix4_init_f32( - arm_cfft_radix4_instance_f32 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - - - /*---------------------------------------------------------------------- - * Internal functions prototypes FFT function - ----------------------------------------------------------------------*/ - - /** - * @brief Core function for the floating-point CFFT butterfly process. - * @param[in, out] *pSrc points to the in-place buffer of floating-point data type. - * @param[in] fftLen length of the FFT. - * @param[in] *pCoef points to the twiddle coefficient buffer. - * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. - * @return none. - */ - - void arm_radix4_butterfly_f32( - float32_t * pSrc, - uint16_t fftLen, - float32_t * pCoef, - uint16_t twidCoefModifier); - - /** - * @brief Core function for the floating-point CIFFT butterfly process. - * @param[in, out] *pSrc points to the in-place buffer of floating-point data type. - * @param[in] fftLen length of the FFT. - * @param[in] *pCoef points to twiddle coefficient buffer. - * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. - * @param[in] onebyfftLen value of 1/fftLen. - * @return none. - */ - - void arm_radix4_butterfly_inverse_f32( - float32_t * pSrc, - uint16_t fftLen, - float32_t * pCoef, - uint16_t twidCoefModifier, - float32_t onebyfftLen); - - /** - * @brief In-place bit reversal function. - * @param[in, out] *pSrc points to the in-place buffer of floating-point data type. - * @param[in] fftSize length of the FFT. - * @param[in] bitRevFactor bit reversal modifier that supports different size FFTs with the same bit reversal table. - * @param[in] *pBitRevTab points to the bit reversal table. - * @return none. - */ - - void arm_bitreversal_f32( - float32_t *pSrc, - uint16_t fftSize, - uint16_t bitRevFactor, - uint16_t *pBitRevTab); - - /** - * @brief Core function for the Q31 CFFT butterfly process. - * @param[in, out] *pSrc points to the in-place buffer of Q31 data type. - * @param[in] fftLen length of the FFT. - * @param[in] *pCoef points to twiddle coefficient buffer. - * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. - * @return none. - */ - - void arm_radix4_butterfly_q31( - q31_t *pSrc, - uint32_t fftLen, - q31_t *pCoef, - uint32_t twidCoefModifier); - - /** - * @brief Core function for the Q31 CIFFT butterfly process. - * @param[in, out] *pSrc points to the in-place buffer of Q31 data type. - * @param[in] fftLen length of the FFT. - * @param[in] *pCoef points to twiddle coefficient buffer. - * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. - * @return none. - */ - - void arm_radix4_butterfly_inverse_q31( - q31_t * pSrc, - uint32_t fftLen, - q31_t * pCoef, - uint32_t twidCoefModifier); - - /** - * @brief In-place bit reversal function. - * @param[in, out] *pSrc points to the in-place buffer of Q31 data type. - * @param[in] fftLen length of the FFT. - * @param[in] bitRevFactor bit reversal modifier that supports different size FFTs with the same bit reversal table - * @param[in] *pBitRevTab points to bit reversal table. - * @return none. - */ - - void arm_bitreversal_q31( - q31_t * pSrc, - uint32_t fftLen, - uint16_t bitRevFactor, - uint16_t *pBitRevTab); - - /** - * @brief Core function for the Q15 CFFT butterfly process. - * @param[in, out] *pSrc16 points to the in-place buffer of Q15 data type. - * @param[in] fftLen length of the FFT. - * @param[in] *pCoef16 points to twiddle coefficient buffer. - * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. - * @return none. - */ - - void arm_radix4_butterfly_q15( - q15_t *pSrc16, - uint32_t fftLen, - q15_t *pCoef16, - uint32_t twidCoefModifier); - - /** - * @brief Core function for the Q15 CIFFT butterfly process. - * @param[in, out] *pSrc16 points to the in-place buffer of Q15 data type. - * @param[in] fftLen length of the FFT. - * @param[in] *pCoef16 points to twiddle coefficient buffer. - * @param[in] twidCoefModifier twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. - * @return none. - */ - - void arm_radix4_butterfly_inverse_q15( - q15_t *pSrc16, - uint32_t fftLen, - q15_t *pCoef16, - uint32_t twidCoefModifier); - - /** - * @brief In-place bit reversal function. - * @param[in, out] *pSrc points to the in-place buffer of Q15 data type. - * @param[in] fftLen length of the FFT. - * @param[in] bitRevFactor bit reversal modifier that supports different size FFTs with the same bit reversal table - * @param[in] *pBitRevTab points to bit reversal table. - * @return none. - */ - - void arm_bitreversal_q15( - q15_t * pSrc, - uint32_t fftLen, - uint16_t bitRevFactor, - uint16_t *pBitRevTab); - - /** - * @brief Instance structure for the Q15 RFFT/RIFFT function. - */ - - typedef struct - { - uint32_t fftLenReal; /**< length of the real FFT. */ - uint32_t fftLenBy2; /**< length of the complex FFT. */ - uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ - uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ - uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - q15_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ - q15_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ - arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ - } arm_rfft_instance_q15; - - /** - * @brief Instance structure for the Q31 RFFT/RIFFT function. - */ - - typedef struct - { - uint32_t fftLenReal; /**< length of the real FFT. */ - uint32_t fftLenBy2; /**< length of the complex FFT. */ - uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ - uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ - uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - q31_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ - q31_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ - arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ - } arm_rfft_instance_q31; - - /** - * @brief Instance structure for the floating-point RFFT/RIFFT function. - */ - - typedef struct - { - uint32_t fftLenReal; /**< length of the real FFT. */ - uint16_t fftLenBy2; /**< length of the complex FFT. */ - uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ - uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ - uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - float32_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ - float32_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ - arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ - } arm_rfft_instance_f32; - - /** - * @brief Processing function for the Q15 RFFT/RIFFT. - * @param[in] *S points to an instance of the Q15 RFFT/RIFFT structure. - * @param[in] *pSrc points to the input buffer. - * @param[out] *pDst points to the output buffer. - * @return none. - */ - - void arm_rfft_q15( - const arm_rfft_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst); - - /** - * @brief Initialization function for the Q15 RFFT/RIFFT. - * @param[in, out] *S points to an instance of the Q15 RFFT/RIFFT structure. - * @param[in] *S_CFFT points to an instance of the Q15 CFFT/CIFFT structure. - * @param[in] fftLenReal length of the FFT. - * @param[in] ifftFlagR flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. - * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported value. - */ - - arm_status arm_rfft_init_q15( - arm_rfft_instance_q15 * S, - arm_cfft_radix4_instance_q15 * S_CFFT, - uint32_t fftLenReal, - uint32_t ifftFlagR, - uint32_t bitReverseFlag); - - /** - * @brief Processing function for the Q31 RFFT/RIFFT. - * @param[in] *S points to an instance of the Q31 RFFT/RIFFT structure. - * @param[in] *pSrc points to the input buffer. - * @param[out] *pDst points to the output buffer. - * @return none. - */ - - void arm_rfft_q31( - const arm_rfft_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst); - - /** - * @brief Initialization function for the Q31 RFFT/RIFFT. - * @param[in, out] *S points to an instance of the Q31 RFFT/RIFFT structure. - * @param[in, out] *S_CFFT points to an instance of the Q31 CFFT/CIFFT structure. - * @param[in] fftLenReal length of the FFT. - * @param[in] ifftFlagR flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. - * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported value. - */ - - arm_status arm_rfft_init_q31( - arm_rfft_instance_q31 * S, - arm_cfft_radix4_instance_q31 * S_CFFT, - uint32_t fftLenReal, - uint32_t ifftFlagR, - uint32_t bitReverseFlag); - - /** - * @brief Initialization function for the floating-point RFFT/RIFFT. - * @param[in,out] *S points to an instance of the floating-point RFFT/RIFFT structure. - * @param[in,out] *S_CFFT points to an instance of the floating-point CFFT/CIFFT structure. - * @param[in] fftLenReal length of the FFT. - * @param[in] ifftFlagR flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. - * @param[in] bitReverseFlag flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported value. - */ - - arm_status arm_rfft_init_f32( - arm_rfft_instance_f32 * S, - arm_cfft_radix4_instance_f32 * S_CFFT, - uint32_t fftLenReal, - uint32_t ifftFlagR, - uint32_t bitReverseFlag); - - /** - * @brief Processing function for the floating-point RFFT/RIFFT. - * @param[in] *S points to an instance of the floating-point RFFT/RIFFT structure. - * @param[in] *pSrc points to the input buffer. - * @param[out] *pDst points to the output buffer. - * @return none. - */ - - void arm_rfft_f32( - const arm_rfft_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst); - - /** - * @brief Instance structure for the floating-point DCT4/IDCT4 function. - */ - - typedef struct - { - uint16_t N; /**< length of the DCT4. */ - uint16_t Nby2; /**< half of the length of the DCT4. */ - float32_t normalize; /**< normalizing factor. */ - float32_t *pTwiddle; /**< points to the twiddle factor table. */ - float32_t *pCosFactor; /**< points to the cosFactor table. */ - arm_rfft_instance_f32 *pRfft; /**< points to the real FFT instance. */ - arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ - } arm_dct4_instance_f32; - - /** - * @brief Initialization function for the floating-point DCT4/IDCT4. - * @param[in,out] *S points to an instance of floating-point DCT4/IDCT4 structure. - * @param[in] *S_RFFT points to an instance of floating-point RFFT/RIFFT structure. - * @param[in] *S_CFFT points to an instance of floating-point CFFT/CIFFT structure. - * @param[in] N length of the DCT4. - * @param[in] Nby2 half of the length of the DCT4. - * @param[in] normalize normalizing factor. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported transform length. - */ - - arm_status arm_dct4_init_f32( - arm_dct4_instance_f32 * S, - arm_rfft_instance_f32 * S_RFFT, - arm_cfft_radix4_instance_f32 * S_CFFT, - uint16_t N, - uint16_t Nby2, - float32_t normalize); - - /** - * @brief Processing function for the floating-point DCT4/IDCT4. - * @param[in] *S points to an instance of the floating-point DCT4/IDCT4 structure. - * @param[in] *pState points to state buffer. - * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. - * @return none. - */ - - void arm_dct4_f32( - const arm_dct4_instance_f32 * S, - float32_t * pState, - float32_t * pInlineBuffer); - - /** - * @brief Instance structure for the Q31 DCT4/IDCT4 function. - */ - - typedef struct - { - uint16_t N; /**< length of the DCT4. */ - uint16_t Nby2; /**< half of the length of the DCT4. */ - q31_t normalize; /**< normalizing factor. */ - q31_t *pTwiddle; /**< points to the twiddle factor table. */ - q31_t *pCosFactor; /**< points to the cosFactor table. */ - arm_rfft_instance_q31 *pRfft; /**< points to the real FFT instance. */ - arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ - } arm_dct4_instance_q31; - - /** - * @brief Initialization function for the Q31 DCT4/IDCT4. - * @param[in,out] *S points to an instance of Q31 DCT4/IDCT4 structure. - * @param[in] *S_RFFT points to an instance of Q31 RFFT/RIFFT structure - * @param[in] *S_CFFT points to an instance of Q31 CFFT/CIFFT structure - * @param[in] N length of the DCT4. - * @param[in] Nby2 half of the length of the DCT4. - * @param[in] normalize normalizing factor. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. - */ - - arm_status arm_dct4_init_q31( - arm_dct4_instance_q31 * S, - arm_rfft_instance_q31 * S_RFFT, - arm_cfft_radix4_instance_q31 * S_CFFT, - uint16_t N, - uint16_t Nby2, - q31_t normalize); - - /** - * @brief Processing function for the Q31 DCT4/IDCT4. - * @param[in] *S points to an instance of the Q31 DCT4 structure. - * @param[in] *pState points to state buffer. - * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. - * @return none. - */ - - void arm_dct4_q31( - const arm_dct4_instance_q31 * S, - q31_t * pState, - q31_t * pInlineBuffer); - - /** - * @brief Instance structure for the Q15 DCT4/IDCT4 function. - */ - - typedef struct - { - uint16_t N; /**< length of the DCT4. */ - uint16_t Nby2; /**< half of the length of the DCT4. */ - q15_t normalize; /**< normalizing factor. */ - q15_t *pTwiddle; /**< points to the twiddle factor table. */ - q15_t *pCosFactor; /**< points to the cosFactor table. */ - arm_rfft_instance_q15 *pRfft; /**< points to the real FFT instance. */ - arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ - } arm_dct4_instance_q15; - - /** - * @brief Initialization function for the Q15 DCT4/IDCT4. - * @param[in,out] *S points to an instance of Q15 DCT4/IDCT4 structure. - * @param[in] *S_RFFT points to an instance of Q15 RFFT/RIFFT structure. - * @param[in] *S_CFFT points to an instance of Q15 CFFT/CIFFT structure. - * @param[in] N length of the DCT4. - * @param[in] Nby2 half of the length of the DCT4. - * @param[in] normalize normalizing factor. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. - */ - - arm_status arm_dct4_init_q15( - arm_dct4_instance_q15 * S, - arm_rfft_instance_q15 * S_RFFT, - arm_cfft_radix4_instance_q15 * S_CFFT, - uint16_t N, - uint16_t Nby2, - q15_t normalize); - - /** - * @brief Processing function for the Q15 DCT4/IDCT4. - * @param[in] *S points to an instance of the Q15 DCT4 structure. - * @param[in] *pState points to state buffer. - * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. - * @return none. - */ - - void arm_dct4_q15( - const arm_dct4_instance_q15 * S, - q15_t * pState, - q15_t * pInlineBuffer); - - /** - * @brief Floating-point vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Q7 vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_q7( - q7_t * pSrcA, - q7_t * pSrcB, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Floating-point vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Q7 vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_q7( - q7_t * pSrcA, - q7_t * pSrcB, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a floating-point vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scale scale factor to be applied - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_f32( - float32_t * pSrc, - float32_t scale, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a Q7 vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scaleFract fractional portion of the scale value - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_q7( - q7_t * pSrc, - q7_t scaleFract, - int8_t shift, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a Q15 vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scaleFract fractional portion of the scale value - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_q15( - q15_t * pSrc, - q15_t scaleFract, - int8_t shift, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a Q31 vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scaleFract fractional portion of the scale value - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_q31( - q31_t * pSrc, - q31_t scaleFract, - int8_t shift, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Q7 vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_q7( - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Floating-point vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Dot product of floating-point vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_f32( - float32_t * pSrcA, - float32_t * pSrcB, - uint32_t blockSize, - float32_t * result); - - /** - * @brief Dot product of Q7 vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_q7( - q7_t * pSrcA, - q7_t * pSrcB, - uint32_t blockSize, - q31_t * result); - - /** - * @brief Dot product of Q15 vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_q15( - q15_t * pSrcA, - q15_t * pSrcB, - uint32_t blockSize, - q63_t * result); - - /** - * @brief Dot product of Q31 vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_q31( - q31_t * pSrcA, - q31_t * pSrcB, - uint32_t blockSize, - q63_t * result); - - /** - * @brief Shifts the elements of a Q7 vector a specified number of bits. - * @param[in] *pSrc points to the input vector - * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_shift_q7( - q7_t * pSrc, - int8_t shiftBits, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Shifts the elements of a Q15 vector a specified number of bits. - * @param[in] *pSrc points to the input vector - * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_shift_q15( - q15_t * pSrc, - int8_t shiftBits, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Shifts the elements of a Q31 vector a specified number of bits. - * @param[in] *pSrc points to the input vector - * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_shift_q31( - q31_t * pSrc, - int8_t shiftBits, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a floating-point vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_f32( - float32_t * pSrc, - float32_t offset, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a Q7 vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_q7( - q7_t * pSrc, - q7_t offset, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a Q15 vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_q15( - q15_t * pSrc, - q15_t offset, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a Q31 vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_q31( - q31_t * pSrc, - q31_t offset, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a floating-point vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a Q7 vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_q7( - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a Q15 vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a Q31 vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - /** - * @brief Copies the elements of a floating-point vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Copies the elements of a Q7 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_q7( - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Copies the elements of a Q15 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Copies the elements of a Q31 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - /** - * @brief Fills a constant value into a floating-point vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_f32( - float32_t value, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Fills a constant value into a Q7 vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_q7( - q7_t value, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Fills a constant value into a Q15 vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_q15( - q15_t value, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Fills a constant value into a Q31 vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_q31( - q31_t value, - q31_t * pDst, - uint32_t blockSize); - -/** - * @brief Convolution of floating-point sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_f32( - float32_t * pSrcA, - uint32_t srcALen, - float32_t * pSrcB, - uint32_t srcBLen, - float32_t * pDst); - -/** - * @brief Convolution of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_fast_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Convolution of Q31 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - /** - * @brief Convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_fast_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - /** - * @brief Convolution of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst); - - /** - * @brief Partial convolution of floating-point sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_f32( - float32_t * pSrcA, - uint32_t srcALen, - float32_t * pSrcB, - uint32_t srcBLen, - float32_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - /** - * @brief Partial convolution of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - /** - * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_fast_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - /** - * @brief Partial convolution of Q31 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - - /** - * @brief Partial convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_fast_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - /** - * @brief Partial convolution of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - - /** - * @brief Instance structure for the Q15 FIR decimator. - */ - - typedef struct - { - uint8_t M; /**< decimation factor. */ - uint16_t numTaps; /**< number of coefficients in the filter. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - } arm_fir_decimate_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR decimator. - */ - - typedef struct - { - uint8_t M; /**< decimation factor. */ - uint16_t numTaps; /**< number of coefficients in the filter. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - - } arm_fir_decimate_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR decimator. - */ - - typedef struct - { - uint8_t M; /**< decimation factor. */ - uint16_t numTaps; /**< number of coefficients in the filter. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - - } arm_fir_decimate_instance_f32; - - - - /** - * @brief Processing function for the floating-point FIR decimator. - * @param[in] *S points to an instance of the floating-point FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_f32( - const arm_fir_decimate_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the floating-point FIR decimator. - * @param[in,out] *S points to an instance of the floating-point FIR decimator structure. - * @param[in] numTaps number of coefficients in the filter. - * @param[in] M decimation factor. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * blockSize is not a multiple of M. - */ - - arm_status arm_fir_decimate_init_f32( - arm_fir_decimate_instance_f32 * S, - uint16_t numTaps, - uint8_t M, - float32_t * pCoeffs, - float32_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q15 FIR decimator. - * @param[in] *S points to an instance of the Q15 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_q15( - const arm_fir_decimate_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the Q15 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q15 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_fast_q15( - const arm_fir_decimate_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - - /** - * @brief Initialization function for the Q15 FIR decimator. - * @param[in,out] *S points to an instance of the Q15 FIR decimator structure. - * @param[in] numTaps number of coefficients in the filter. - * @param[in] M decimation factor. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * blockSize is not a multiple of M. - */ - - arm_status arm_fir_decimate_init_q15( - arm_fir_decimate_instance_q15 * S, - uint16_t numTaps, - uint8_t M, - q15_t * pCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR decimator. - * @param[in] *S points to an instance of the Q31 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_q31( - const arm_fir_decimate_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q31 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_fast_q31( - arm_fir_decimate_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q31 FIR decimator. - * @param[in,out] *S points to an instance of the Q31 FIR decimator structure. - * @param[in] numTaps number of coefficients in the filter. - * @param[in] M decimation factor. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * blockSize is not a multiple of M. - */ - - arm_status arm_fir_decimate_init_q31( - arm_fir_decimate_instance_q31 * S, - uint16_t numTaps, - uint8_t M, - q31_t * pCoeffs, - q31_t * pState, - uint32_t blockSize); - - - - /** - * @brief Instance structure for the Q15 FIR interpolator. - */ - - typedef struct - { - uint8_t L; /**< upsample factor. */ - uint16_t phaseLength; /**< length of each polyphase filter component. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ - q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ - } arm_fir_interpolate_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR interpolator. - */ - - typedef struct - { - uint8_t L; /**< upsample factor. */ - uint16_t phaseLength; /**< length of each polyphase filter component. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ - q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ - } arm_fir_interpolate_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR interpolator. - */ - - typedef struct - { - uint8_t L; /**< upsample factor. */ - uint16_t phaseLength; /**< length of each polyphase filter component. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ - float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */ - } arm_fir_interpolate_instance_f32; - - - /** - * @brief Processing function for the Q15 FIR interpolator. - * @param[in] *S points to an instance of the Q15 FIR interpolator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_interpolate_q15( - const arm_fir_interpolate_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q15 FIR interpolator. - * @param[in,out] *S points to an instance of the Q15 FIR interpolator structure. - * @param[in] L upsample factor. - * @param[in] numTaps number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * the filter length numTaps is not a multiple of the interpolation factor L. - */ - - arm_status arm_fir_interpolate_init_q15( - arm_fir_interpolate_instance_q15 * S, - uint8_t L, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR interpolator. - * @param[in] *S points to an instance of the Q15 FIR interpolator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_interpolate_q31( - const arm_fir_interpolate_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 FIR interpolator. - * @param[in,out] *S points to an instance of the Q31 FIR interpolator structure. - * @param[in] L upsample factor. - * @param[in] numTaps number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * the filter length numTaps is not a multiple of the interpolation factor L. - */ - - arm_status arm_fir_interpolate_init_q31( - arm_fir_interpolate_instance_q31 * S, - uint8_t L, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the floating-point FIR interpolator. - * @param[in] *S points to an instance of the floating-point FIR interpolator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_interpolate_f32( - const arm_fir_interpolate_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point FIR interpolator. - * @param[in,out] *S points to an instance of the floating-point FIR interpolator structure. - * @param[in] L upsample factor. - * @param[in] numTaps number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * the filter length numTaps is not a multiple of the interpolation factor L. - */ - - arm_status arm_fir_interpolate_init_f32( - arm_fir_interpolate_instance_f32 * S, - uint8_t L, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - uint32_t blockSize); - - /** - * @brief Instance structure for the high precision Q31 Biquad cascade filter. - */ - - typedef struct - { - uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ - q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ - uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */ - - } arm_biquad_cas_df1_32x64_ins_q31; - - - /** - * @param[in] *S points to an instance of the high precision Q31 Biquad cascade filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cas_df1_32x64_q31( - const arm_biquad_cas_df1_32x64_ins_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @param[in,out] *S points to an instance of the high precision Q31 Biquad cascade filter structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] postShift shift to be applied to the output. Varies according to the coefficients format - * @return none - */ - - void arm_biquad_cas_df1_32x64_init_q31( - arm_biquad_cas_df1_32x64_ins_q31 * S, - uint8_t numStages, - q31_t * pCoeffs, - q63_t * pState, - uint8_t postShift); - - - - /** - * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. - */ - - typedef struct - { - uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ - float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ - } arm_biquad_cascade_df2T_instance_f32; - - - /** - * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. - * @param[in] *S points to an instance of the filter data structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df2T_f32( - const arm_biquad_cascade_df2T_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. - * @param[in,out] *S points to an instance of the filter data structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @return none - */ - - void arm_biquad_cascade_df2T_init_f32( - arm_biquad_cascade_df2T_instance_f32 * S, - uint8_t numStages, - float32_t * pCoeffs, - float32_t * pState); - - - - /** - * @brief Instance structure for the Q15 FIR lattice filter. - */ - - typedef struct - { - uint16_t numStages; /**< number of filter stages. */ - q15_t *pState; /**< points to the state variable array. The array is of length numStages. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ - } arm_fir_lattice_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR lattice filter. - */ - - typedef struct - { - uint16_t numStages; /**< number of filter stages. */ - q31_t *pState; /**< points to the state variable array. The array is of length numStages. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ - } arm_fir_lattice_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR lattice filter. - */ - - typedef struct - { - uint16_t numStages; /**< number of filter stages. */ - float32_t *pState; /**< points to the state variable array. The array is of length numStages. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ - } arm_fir_lattice_instance_f32; - - /** - * @brief Initialization function for the Q15 FIR lattice filter. - * @param[in] *S points to an instance of the Q15 FIR lattice structure. - * @param[in] numStages number of filter stages. - * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. - * @param[in] *pState points to the state buffer. The array is of length numStages. - * @return none. - */ - - void arm_fir_lattice_init_q15( - arm_fir_lattice_instance_q15 * S, - uint16_t numStages, - q15_t * pCoeffs, - q15_t * pState); - - - /** - * @brief Processing function for the Q15 FIR lattice filter. - * @param[in] *S points to an instance of the Q15 FIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_lattice_q15( - const arm_fir_lattice_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 FIR lattice filter. - * @param[in] *S points to an instance of the Q31 FIR lattice structure. - * @param[in] numStages number of filter stages. - * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. - * @param[in] *pState points to the state buffer. The array is of length numStages. - * @return none. - */ - - void arm_fir_lattice_init_q31( - arm_fir_lattice_instance_q31 * S, - uint16_t numStages, - q31_t * pCoeffs, - q31_t * pState); - - - /** - * @brief Processing function for the Q31 FIR lattice filter. - * @param[in] *S points to an instance of the Q31 FIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_fir_lattice_q31( - const arm_fir_lattice_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - -/** - * @brief Initialization function for the floating-point FIR lattice filter. - * @param[in] *S points to an instance of the floating-point FIR lattice structure. - * @param[in] numStages number of filter stages. - * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. - * @param[in] *pState points to the state buffer. The array is of length numStages. - * @return none. - */ - - void arm_fir_lattice_init_f32( - arm_fir_lattice_instance_f32 * S, - uint16_t numStages, - float32_t * pCoeffs, - float32_t * pState); - - /** - * @brief Processing function for the floating-point FIR lattice filter. - * @param[in] *S points to an instance of the floating-point FIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_fir_lattice_f32( - const arm_fir_lattice_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Instance structure for the Q15 IIR lattice filter. - */ - typedef struct - { - uint16_t numStages; /**< number of stages in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ - q15_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ - q15_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ - } arm_iir_lattice_instance_q15; - - /** - * @brief Instance structure for the Q31 IIR lattice filter. - */ - typedef struct - { - uint16_t numStages; /**< number of stages in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ - q31_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ - q31_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ - } arm_iir_lattice_instance_q31; - - /** - * @brief Instance structure for the floating-point IIR lattice filter. - */ - typedef struct - { - uint16_t numStages; /**< number of stages in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ - float32_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ - float32_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ - } arm_iir_lattice_instance_f32; - - /** - * @brief Processing function for the floating-point IIR lattice filter. - * @param[in] *S points to an instance of the floating-point IIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_f32( - const arm_iir_lattice_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point IIR lattice filter. - * @param[in] *S points to an instance of the floating-point IIR lattice structure. - * @param[in] numStages number of stages in the filter. - * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. - * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. - * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize-1. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_init_f32( - arm_iir_lattice_instance_f32 * S, - uint16_t numStages, - float32_t *pkCoeffs, - float32_t *pvCoeffs, - float32_t *pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q31 IIR lattice filter. - * @param[in] *S points to an instance of the Q31 IIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_q31( - const arm_iir_lattice_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q31 IIR lattice filter. - * @param[in] *S points to an instance of the Q31 IIR lattice structure. - * @param[in] numStages number of stages in the filter. - * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. - * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. - * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_init_q31( - arm_iir_lattice_instance_q31 * S, - uint16_t numStages, - q31_t *pkCoeffs, - q31_t *pvCoeffs, - q31_t *pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q15 IIR lattice filter. - * @param[in] *S points to an instance of the Q15 IIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_q15( - const arm_iir_lattice_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - -/** - * @brief Initialization function for the Q15 IIR lattice filter. - * @param[in] *S points to an instance of the fixed-point Q15 IIR lattice structure. - * @param[in] numStages number of stages in the filter. - * @param[in] *pkCoeffs points to reflection coefficient buffer. The array is of length numStages. - * @param[in] *pvCoeffs points to ladder coefficient buffer. The array is of length numStages+1. - * @param[in] *pState points to state buffer. The array is of length numStages+blockSize. - * @param[in] blockSize number of samples to process per call. - * @return none. - */ - - void arm_iir_lattice_init_q15( - arm_iir_lattice_instance_q15 * S, - uint16_t numStages, - q15_t *pkCoeffs, - q15_t *pvCoeffs, - q15_t *pState, - uint32_t blockSize); - - /** - * @brief Instance structure for the floating-point LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - float32_t mu; /**< step size that controls filter coefficient updates. */ - } arm_lms_instance_f32; - - /** - * @brief Processing function for floating-point LMS filter. - * @param[in] *S points to an instance of the floating-point LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_f32( - const arm_lms_instance_f32 * S, - float32_t * pSrc, - float32_t * pRef, - float32_t * pOut, - float32_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for floating-point LMS filter. - * @param[in] *S points to an instance of the floating-point LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to the coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_init_f32( - arm_lms_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - float32_t mu, - uint32_t blockSize); - - /** - * @brief Instance structure for the Q15 LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q15_t mu; /**< step size that controls filter coefficient updates. */ - uint32_t postShift; /**< bit shift applied to coefficients. */ - } arm_lms_instance_q15; - - - /** - * @brief Initialization function for the Q15 LMS filter. - * @param[in] *S points to an instance of the Q15 LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to the coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_init_q15( - arm_lms_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - q15_t mu, - uint32_t blockSize, - uint32_t postShift); - - /** - * @brief Processing function for Q15 LMS filter. - * @param[in] *S points to an instance of the Q15 LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_q15( - const arm_lms_instance_q15 * S, - q15_t * pSrc, - q15_t * pRef, - q15_t * pOut, - q15_t * pErr, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q31 LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q31_t mu; /**< step size that controls filter coefficient updates. */ - uint32_t postShift; /**< bit shift applied to coefficients. */ - - } arm_lms_instance_q31; - - /** - * @brief Processing function for Q31 LMS filter. - * @param[in] *S points to an instance of the Q15 LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_q31( - const arm_lms_instance_q31 * S, - q31_t * pSrc, - q31_t * pRef, - q31_t * pOut, - q31_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for Q31 LMS filter. - * @param[in] *S points to an instance of the Q31 LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_init_q31( - arm_lms_instance_q31 * S, - uint16_t numTaps, - q31_t *pCoeffs, - q31_t *pState, - q31_t mu, - uint32_t blockSize, - uint32_t postShift); - - /** - * @brief Instance structure for the floating-point normalized LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - float32_t mu; /**< step size that control filter coefficient updates. */ - float32_t energy; /**< saves previous frame energy. */ - float32_t x0; /**< saves previous input sample. */ - } arm_lms_norm_instance_f32; - - /** - * @brief Processing function for floating-point normalized LMS filter. - * @param[in] *S points to an instance of the floating-point normalized LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_f32( - arm_lms_norm_instance_f32 * S, - float32_t * pSrc, - float32_t * pRef, - float32_t * pOut, - float32_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for floating-point normalized LMS filter. - * @param[in] *S points to an instance of the floating-point LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_init_f32( - arm_lms_norm_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - float32_t mu, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q31 normalized LMS filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q31_t mu; /**< step size that controls filter coefficient updates. */ - uint8_t postShift; /**< bit shift applied to coefficients. */ - q31_t *recipTable; /**< points to the reciprocal initial value table. */ - q31_t energy; /**< saves previous frame energy. */ - q31_t x0; /**< saves previous input sample. */ - } arm_lms_norm_instance_q31; - - /** - * @brief Processing function for Q31 normalized LMS filter. - * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_q31( - arm_lms_norm_instance_q31 * S, - q31_t * pSrc, - q31_t * pRef, - q31_t * pOut, - q31_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for Q31 normalized LMS filter. - * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_norm_init_q31( - arm_lms_norm_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - q31_t mu, - uint32_t blockSize, - uint8_t postShift); - - /** - * @brief Instance structure for the Q15 normalized LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< Number of coefficients in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q15_t mu; /**< step size that controls filter coefficient updates. */ - uint8_t postShift; /**< bit shift applied to coefficients. */ - q15_t *recipTable; /**< Points to the reciprocal initial value table. */ - q15_t energy; /**< saves previous frame energy. */ - q15_t x0; /**< saves previous input sample. */ - } arm_lms_norm_instance_q15; - - /** - * @brief Processing function for Q15 normalized LMS filter. - * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_q15( - arm_lms_norm_instance_q15 * S, - q15_t * pSrc, - q15_t * pRef, - q15_t * pOut, - q15_t * pErr, - uint32_t blockSize); - - - /** - * @brief Initialization function for Q15 normalized LMS filter. - * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_norm_init_q15( - arm_lms_norm_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - q15_t mu, - uint32_t blockSize, - uint8_t postShift); - - /** - * @brief Correlation of floating-point sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_f32( - float32_t * pSrcA, - uint32_t srcALen, - float32_t * pSrcB, - uint32_t srcBLen, - float32_t * pDst); - - /** - * @brief Correlation of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_fast_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Correlation of Q31 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - /** - * @brief Correlation of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_fast_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - /** - * @brief Correlation of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst); - - /** - * @brief Instance structure for the floating-point sparse FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_f32; - - /** - * @brief Instance structure for the Q31 sparse FIR filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_q31; - - /** - * @brief Instance structure for the Q15 sparse FIR filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_q15; - - /** - * @brief Instance structure for the Q7 sparse FIR filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_q7; - - /** - * @brief Processing function for the floating-point sparse FIR filter. - * @param[in] *S points to an instance of the floating-point sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_f32( - arm_fir_sparse_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - float32_t * pScratchIn, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point sparse FIR filter. - * @param[in,out] *S points to an instance of the floating-point sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_f32( - arm_fir_sparse_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 sparse FIR filter. - * @param[in] *S points to an instance of the Q31 sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_q31( - arm_fir_sparse_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - q31_t * pScratchIn, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 sparse FIR filter. - * @param[in,out] *S points to an instance of the Q31 sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_q31( - arm_fir_sparse_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - /** - * @brief Processing function for the Q15 sparse FIR filter. - * @param[in] *S points to an instance of the Q15 sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] *pScratchOut points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_q15( - arm_fir_sparse_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - q15_t * pScratchIn, - q31_t * pScratchOut, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q15 sparse FIR filter. - * @param[in,out] *S points to an instance of the Q15 sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_q15( - arm_fir_sparse_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - /** - * @brief Processing function for the Q7 sparse FIR filter. - * @param[in] *S points to an instance of the Q7 sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] *pScratchOut points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_q7( - arm_fir_sparse_instance_q7 * S, - q7_t * pSrc, - q7_t * pDst, - q7_t * pScratchIn, - q31_t * pScratchOut, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q7 sparse FIR filter. - * @param[in,out] *S points to an instance of the Q7 sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_q7( - arm_fir_sparse_instance_q7 * S, - uint16_t numTaps, - q7_t * pCoeffs, - q7_t * pState, - int32_t *pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - - /* - * @brief Floating-point sin_cos function. - * @param[in] theta input value in degrees - * @param[out] *pSinVal points to the processed sine output. - * @param[out] *pCosVal points to the processed cos output. - * @return none. - */ - - void arm_sin_cos_f32( - float32_t theta, - float32_t *pSinVal, - float32_t *pCcosVal); - - /* - * @brief Q31 sin_cos function. - * @param[in] theta scaled input value in degrees - * @param[out] *pSinVal points to the processed sine output. - * @param[out] *pCosVal points to the processed cosine output. - * @return none. - */ - - void arm_sin_cos_q31( - q31_t theta, - q31_t *pSinVal, - q31_t *pCosVal); - - - /** - * @brief Floating-point complex conjugate. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_conj_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex conjugate. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_conj_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex conjugate. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_conj_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t numSamples); - - - - /** - * @brief Floating-point complex magnitude squared - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_squared_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex magnitude squared - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_squared_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex magnitude squared - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_squared_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t numSamples); - - - /** - * @ingroup groupController - */ - - /** - * @defgroup PID PID Motor Control - * - * A Proportional Integral Derivative (PID) controller is a generic feedback control - * loop mechanism widely used in industrial control systems. - * A PID controller is the most commonly used type of feedback controller. - * - * This set of functions implements (PID) controllers - * for Q15, Q31, and floating-point data types. The functions operate on a single sample - * of data and each call to the function returns a single processed value. - * S points to an instance of the PID control data structure. in - * is the input sample value. The functions return the output value. - * - * \par Algorithm: - *
-   *    y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2]
-   *    A0 = Kp + Ki + Kd
-   *    A1 = (-Kp ) - (2 * Kd )
-   *    A2 = Kd  
- * - * \par - * where \c Kp is proportional constant, \c Ki is Integral constant and \c Kd is Derivative constant - * - * \par - * \image html PID.gif "Proportional Integral Derivative Controller" - * - * \par - * The PID controller calculates an "error" value as the difference between - * the measured output and the reference input. - * The controller attempts to minimize the error by adjusting the process control inputs. - * The proportional value determines the reaction to the current error, - * the integral value determines the reaction based on the sum of recent errors, - * and the derivative value determines the reaction based on the rate at which the error has been changing. - * - * \par Instance Structure - * The Gains A0, A1, A2 and state variables for a PID controller are stored together in an instance data structure. - * A separate instance structure must be defined for each PID Controller. - * There are separate instance structure declarations for each of the 3 supported data types. - * - * \par Reset Functions - * There is also an associated reset function for each data type which clears the state array. - * - * \par Initialization Functions - * There is also an associated initialization function for each data type. - * The initialization function performs the following operations: - * - Initializes the Gains A0, A1, A2 from Kp,Ki, Kd gains. - * - Zeros out the values in the state buffer. - * - * \par - * Instance structure cannot be placed into a const data section and it is recommended to use the initialization function. - * - * \par Fixed-Point Behavior - * Care must be taken when using the fixed-point versions of the PID Controller functions. - * In particular, the overflow and saturation behavior of the accumulator used in each function must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup PID - * @{ - */ - - /** - * @brief Process function for the floating-point PID Control. - * @param[in,out] *S is an instance of the floating-point PID Control structure - * @param[in] in input sample to process - * @return out processed output sample. - */ - - - static __INLINE float32_t arm_pid_f32( - arm_pid_instance_f32 * S, - float32_t in) - { - float32_t out; - - /* y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2] */ - out = (S->A0 * in) + - (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); - - /* Update state */ - S->state[1] = S->state[0]; - S->state[0] = in; - S->state[2] = out; - - /* return to application */ - return (out); - - } - - /** - * @brief Process function for the Q31 PID Control. - * @param[in,out] *S points to an instance of the Q31 PID Control structure - * @param[in] in input sample to process - * @return out processed output sample. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 64-bit accumulator. - * The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit. - * Thus, if the accumulator result overflows it wraps around rather than clip. - * In order to avoid overflows completely the input signal must be scaled down by 2 bits as there are four additions. - * After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format. - */ - - static __INLINE q31_t arm_pid_q31( - arm_pid_instance_q31 * S, - q31_t in) - { - q63_t acc; - q31_t out; - - /* acc = A0 * x[n] */ - acc = (q63_t) S->A0 * in; - - /* acc += A1 * x[n-1] */ - acc += (q63_t) S->A1 * S->state[0]; - - /* acc += A2 * x[n-2] */ - acc += (q63_t) S->A2 * S->state[1]; - - /* convert output to 1.31 format to add y[n-1] */ - out = (q31_t) (acc >> 31u); - - /* out += y[n-1] */ - out += S->state[2]; - - /* Update state */ - S->state[1] = S->state[0]; - S->state[0] = in; - S->state[2] = out; - - /* return to application */ - return (out); - - } - - /** - * @brief Process function for the Q15 PID Control. - * @param[in,out] *S points to an instance of the Q15 PID Control structure - * @param[in] in input sample to process - * @return out processed output sample. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using a 64-bit internal accumulator. - * Both Gains and state variables are represented in 1.15 format and multiplications yield a 2.30 result. - * The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format. - * There is no risk of internal overflow with this approach and the full precision of intermediate multiplications is preserved. - * After all additions have been performed, the accumulator is truncated to 34.15 format by discarding low 15 bits. - * Lastly, the accumulator is saturated to yield a result in 1.15 format. - */ - - static __INLINE q15_t arm_pid_q15( - arm_pid_instance_q15 * S, - q15_t in) - { - q63_t acc; - q15_t out; - - /* Implementation of PID controller */ - - #ifdef ARM_MATH_CM0 - - /* acc = A0 * x[n] */ - acc = ((q31_t) S->A0 )* in ; - - #else - - /* acc = A0 * x[n] */ - acc = (q31_t) __SMUAD(S->A0, in); - - #endif - - #ifdef ARM_MATH_CM0 - - /* acc += A1 * x[n-1] + A2 * x[n-2] */ - acc += (q31_t) S->A1 * S->state[0] ; - acc += (q31_t) S->A2 * S->state[1] ; - - #else - - /* acc += A1 * x[n-1] + A2 * x[n-2] */ - acc = __SMLALD(S->A1, (q31_t)__SIMD32(S->state), acc); - - #endif - - /* acc += y[n-1] */ - acc += (q31_t) S->state[2] << 15; - - /* saturate the output */ - out = (q15_t) (__SSAT((acc >> 15), 16)); - - /* Update state */ - S->state[1] = S->state[0]; - S->state[0] = in; - S->state[2] = out; - - /* return to application */ - return (out); - - } - - /** - * @} end of PID group - */ - - - /** - * @brief Floating-point matrix inverse. - * @param[in] *src points to the instance of the input floating-point matrix structure. - * @param[out] *dst points to the instance of the output floating-point matrix structure. - * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. - * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. - */ - - arm_status arm_mat_inverse_f32( - const arm_matrix_instance_f32 * src, - arm_matrix_instance_f32 * dst); - - - - /** - * @ingroup groupController - */ - - - /** - * @defgroup clarke Vector Clarke Transform - * Forward Clarke transform converts the instantaneous stator phases into a two-coordinate time invariant vector. - * Generally the Clarke transform uses three-phase currents Ia, Ib and Ic to calculate currents - * in the two-phase orthogonal stator axis Ialpha and Ibeta. - * When Ialpha is superposed with Ia as shown in the figure below - * \image html clarke.gif Stator current space vector and its components in (a,b). - * and Ia + Ib + Ic = 0, in this condition Ialpha and Ibeta - * can be calculated using only Ia and Ib. - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html clarkeFormula.gif - * where Ia and Ib are the instantaneous stator phases and - * pIalpha and pIbeta are the two coordinates of time invariant vector. - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Clarke transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup clarke - * @{ - */ - - /** - * - * @brief Floating-point Clarke transform - * @param[in] Ia input three-phase coordinate a - * @param[in] Ib input three-phase coordinate b - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @return none. - */ - - static __INLINE void arm_clarke_f32( - float32_t Ia, - float32_t Ib, - float32_t * pIalpha, - float32_t * pIbeta) - { - /* Calculate pIalpha using the equation, pIalpha = Ia */ - *pIalpha = Ia; - - /* Calculate pIbeta using the equation, pIbeta = (1/sqrt(3)) * Ia + (2/sqrt(3)) * Ib */ - *pIbeta = ((float32_t) 0.57735026919 * Ia + (float32_t) 1.15470053838 * Ib); - - } - - /** - * @brief Clarke transform for Q31 version - * @param[in] Ia input three-phase coordinate a - * @param[in] Ib input three-phase coordinate b - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the addition, hence there is no risk of overflow. - */ - - static __INLINE void arm_clarke_q31( - q31_t Ia, - q31_t Ib, - q31_t * pIalpha, - q31_t * pIbeta) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - - /* Calculating pIalpha from Ia by equation pIalpha = Ia */ - *pIalpha = Ia; - - /* Intermediate product is calculated by (1/(sqrt(3)) * Ia) */ - product1 = (q31_t) (((q63_t) Ia * 0x24F34E8B) >> 30); - - /* Intermediate product is calculated by (2/sqrt(3) * Ib) */ - product2 = (q31_t) (((q63_t) Ib * 0x49E69D16) >> 30); - - /* pIbeta is calculated by adding the intermediate products */ - *pIbeta = __QADD(product1, product2); - } - - /** - * @} end of clarke group - */ - - /** - * @brief Converts the elements of the Q7 vector to Q31 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_q7_to_q31( - q7_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - - - /** - * @ingroup groupController - */ - - /** - * @defgroup inv_clarke Vector Inverse Clarke Transform - * Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases. - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html clarkeInvFormula.gif - * where pIa and pIb are the instantaneous stator phases and - * Ialpha and Ibeta are the two coordinates of time invariant vector. - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Clarke transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup inv_clarke - * @{ - */ - - /** - * @brief Floating-point Inverse Clarke transform - * @param[in] Ialpha input two-phase orthogonal vector axis alpha - * @param[in] Ibeta input two-phase orthogonal vector axis beta - * @param[out] *pIa points to output three-phase coordinate a - * @param[out] *pIb points to output three-phase coordinate b - * @return none. - */ - - - static __INLINE void arm_inv_clarke_f32( - float32_t Ialpha, - float32_t Ibeta, - float32_t * pIa, - float32_t * pIb) - { - /* Calculating pIa from Ialpha by equation pIa = Ialpha */ - *pIa = Ialpha; - - /* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */ - *pIb = -0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta; - - } - - /** - * @brief Inverse Clarke transform for Q31 version - * @param[in] Ialpha input two-phase orthogonal vector axis alpha - * @param[in] Ibeta input two-phase orthogonal vector axis beta - * @param[out] *pIa points to output three-phase coordinate a - * @param[out] *pIb points to output three-phase coordinate b - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the subtraction, hence there is no risk of overflow. - */ - - static __INLINE void arm_inv_clarke_q31( - q31_t Ialpha, - q31_t Ibeta, - q31_t * pIa, - q31_t * pIb) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - - /* Calculating pIa from Ialpha by equation pIa = Ialpha */ - *pIa = Ialpha; - - /* Intermediate product is calculated by (1/(2*sqrt(3)) * Ia) */ - product1 = (q31_t) (((q63_t) (Ialpha) * (0x40000000)) >> 31); - - /* Intermediate product is calculated by (1/sqrt(3) * pIb) */ - product2 = (q31_t) (((q63_t) (Ibeta) * (0x6ED9EBA1)) >> 31); - - /* pIb is calculated by subtracting the products */ - *pIb = __QSUB(product2, product1); - - } - - /** - * @} end of inv_clarke group - */ - - /** - * @brief Converts the elements of the Q7 vector to Q15 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_q7_to_q15( - q7_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - - /** - * @ingroup groupController - */ - - /** - * @defgroup park Vector Park Transform - * - * Forward Park transform converts the input two-coordinate vector to flux and torque components. - * The Park transform can be used to realize the transformation of the Ialpha and the Ibeta currents - * from the stationary to the moving reference frame and control the spatial relationship between - * the stator vector current and rotor flux vector. - * If we consider the d axis aligned with the rotor flux, the diagram below shows the - * current vector and the relationship from the two reference frames: - * \image html park.gif "Stator current space vector and its component in (a,b) and in the d,q rotating reference frame" - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html parkFormula.gif - * where Ialpha and Ibeta are the stator vector components, - * pId and pIq are rotor vector components and cosVal and sinVal are the - * cosine and sine values of theta (rotor flux position). - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Park transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup park - * @{ - */ - - /** - * @brief Floating-point Park transform - * @param[in] Ialpha input two-phase vector coordinate alpha - * @param[in] Ibeta input two-phase vector coordinate beta - * @param[out] *pId points to output rotor reference frame d - * @param[out] *pIq points to output rotor reference frame q - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - * - * The function implements the forward Park transform. - * - */ - - static __INLINE void arm_park_f32( - float32_t Ialpha, - float32_t Ibeta, - float32_t * pId, - float32_t * pIq, - float32_t sinVal, - float32_t cosVal) - { - /* Calculate pId using the equation, pId = Ialpha * cosVal + Ibeta * sinVal */ - *pId = Ialpha * cosVal + Ibeta * sinVal; - - /* Calculate pIq using the equation, pIq = - Ialpha * sinVal + Ibeta * cosVal */ - *pIq = -Ialpha * sinVal + Ibeta * cosVal; - - } - - /** - * @brief Park transform for Q31 version - * @param[in] Ialpha input two-phase vector coordinate alpha - * @param[in] Ibeta input two-phase vector coordinate beta - * @param[out] *pId points to output rotor reference frame d - * @param[out] *pIq points to output rotor reference frame q - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the addition and subtraction, hence there is no risk of overflow. - */ - - - static __INLINE void arm_park_q31( - q31_t Ialpha, - q31_t Ibeta, - q31_t * pId, - q31_t * pIq, - q31_t sinVal, - q31_t cosVal) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - q31_t product3, product4; /* Temporary variables used to store intermediate results */ - - /* Intermediate product is calculated by (Ialpha * cosVal) */ - product1 = (q31_t) (((q63_t) (Ialpha) * (cosVal)) >> 31); - - /* Intermediate product is calculated by (Ibeta * sinVal) */ - product2 = (q31_t) (((q63_t) (Ibeta) * (sinVal)) >> 31); - - - /* Intermediate product is calculated by (Ialpha * sinVal) */ - product3 = (q31_t) (((q63_t) (Ialpha) * (sinVal)) >> 31); - - /* Intermediate product is calculated by (Ibeta * cosVal) */ - product4 = (q31_t) (((q63_t) (Ibeta) * (cosVal)) >> 31); - - /* Calculate pId by adding the two intermediate products 1 and 2 */ - *pId = __QADD(product1, product2); - - /* Calculate pIq by subtracting the two intermediate products 3 from 4 */ - *pIq = __QSUB(product4, product3); - } - - /** - * @} end of park group - */ - - /** - * @brief Converts the elements of the Q7 vector to floating-point vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q7_to_float( - q7_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @ingroup groupController - */ - - /** - * @defgroup inv_park Vector Inverse Park transform - * Inverse Park transform converts the input flux and torque components to two-coordinate vector. - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html parkInvFormula.gif - * where pIalpha and pIbeta are the stator vector components, - * Id and Iq are rotor vector components and cosVal and sinVal are the - * cosine and sine values of theta (rotor flux position). - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Park transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup inv_park - * @{ - */ - - /** - * @brief Floating-point Inverse Park transform - * @param[in] Id input coordinate of rotor reference frame d - * @param[in] Iq input coordinate of rotor reference frame q - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - */ - - static __INLINE void arm_inv_park_f32( - float32_t Id, - float32_t Iq, - float32_t * pIalpha, - float32_t * pIbeta, - float32_t sinVal, - float32_t cosVal) - { - /* Calculate pIalpha using the equation, pIalpha = Id * cosVal - Iq * sinVal */ - *pIalpha = Id * cosVal - Iq * sinVal; - - /* Calculate pIbeta using the equation, pIbeta = Id * sinVal + Iq * cosVal */ - *pIbeta = Id * sinVal + Iq * cosVal; - - } - - - /** - * @brief Inverse Park transform for Q31 version - * @param[in] Id input coordinate of rotor reference frame d - * @param[in] Iq input coordinate of rotor reference frame q - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the addition, hence there is no risk of overflow. - */ - - - static __INLINE void arm_inv_park_q31( - q31_t Id, - q31_t Iq, - q31_t * pIalpha, - q31_t * pIbeta, - q31_t sinVal, - q31_t cosVal) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - q31_t product3, product4; /* Temporary variables used to store intermediate results */ - - /* Intermediate product is calculated by (Id * cosVal) */ - product1 = (q31_t) (((q63_t) (Id) * (cosVal)) >> 31); - - /* Intermediate product is calculated by (Iq * sinVal) */ - product2 = (q31_t) (((q63_t) (Iq) * (sinVal)) >> 31); - - - /* Intermediate product is calculated by (Id * sinVal) */ - product3 = (q31_t) (((q63_t) (Id) * (sinVal)) >> 31); - - /* Intermediate product is calculated by (Iq * cosVal) */ - product4 = (q31_t) (((q63_t) (Iq) * (cosVal)) >> 31); - - /* Calculate pIalpha by using the two intermediate products 1 and 2 */ - *pIalpha = __QSUB(product1, product2); - - /* Calculate pIbeta by using the two intermediate products 3 and 4 */ - *pIbeta = __QADD(product4, product3); - - } - - /** - * @} end of Inverse park group - */ - - - /** - * @brief Converts the elements of the Q31 vector to floating-point vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q31_to_float( - q31_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @ingroup groupInterpolation - */ - - /** - * @defgroup LinearInterpolate Linear Interpolation - * - * Linear interpolation is a method of curve fitting using linear polynomials. - * Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line - * - * \par - * \image html LinearInterp.gif "Linear interpolation" - * - * \par - * A Linear Interpolate function calculates an output value(y), for the input(x) - * using linear interpolation of the input values x0, x1( nearest input values) and the output values y0 and y1(nearest output values) - * - * \par Algorithm: - *
-   *       y = y0 + (x - x0) * ((y1 - y0)/(x1-x0))
-   *       where x0, x1 are nearest values of input x
-   *             y0, y1 are nearest values to output y
-   * 
- * - * \par - * This set of functions implements Linear interpolation process - * for Q7, Q15, Q31, and floating-point data types. The functions operate on a single - * sample of data and each call to the function returns a single processed value. - * S points to an instance of the Linear Interpolate function data structure. - * x is the input sample value. The functions returns the output value. - * - * \par - * if x is outside of the table boundary, Linear interpolation returns first value of the table - * if x is below input range and returns last value of table if x is above range. - */ - - /** - * @addtogroup LinearInterpolate - * @{ - */ - - /** - * @brief Process function for the floating-point Linear Interpolation Function. - * @param[in,out] *S is an instance of the floating-point Linear Interpolation structure - * @param[in] x input sample to process - * @return y processed output sample. - * - */ - - static __INLINE float32_t arm_linear_interp_f32( - arm_linear_interp_instance_f32 * S, - float32_t x) - { - - float32_t y; - float32_t x0, x1; /* Nearest input values */ - float32_t y0, y1; /* Nearest output values */ - float32_t xSpacing = S->xSpacing; /* spacing between input values */ - int32_t i; /* Index variable */ - float32_t *pYData = S->pYData; /* pointer to output table */ - - /* Calculation of index */ - i = (x - S->x1) / xSpacing; - - if(i < 0) - { - /* Iniatilize output for below specified range as least output value of table */ - y = pYData[0]; - } - else if(i >= S->nValues) - { - /* Iniatilize output for above specified range as last output value of table */ - y = pYData[S->nValues-1]; - } - else - { - /* Calculation of nearest input values */ - x0 = S->x1 + i * xSpacing; - x1 = S->x1 + (i +1) * xSpacing; - - /* Read of nearest output values */ - y0 = pYData[i]; - y1 = pYData[i + 1]; - - /* Calculation of output */ - y = y0 + (x - x0) * ((y1 - y0)/(x1-x0)); - - } - - /* returns output value */ - return (y); - } - - /** - * - * @brief Process function for the Q31 Linear Interpolation Function. - * @param[in] *pYData pointer to Q31 Linear Interpolation table - * @param[in] x input sample to process - * @param[in] nValues number of table values - * @return y processed output sample. - * - * \par - * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. - * This function can support maximum of table size 2^12. - * - */ - - - static __INLINE q31_t arm_linear_interp_q31(q31_t *pYData, - q31_t x, uint32_t nValues) - { - q31_t y; /* output */ - q31_t y0, y1; /* Nearest output values */ - q31_t fract; /* fractional part */ - int32_t index; /* Index to read nearest output values */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - index = ((x & 0xFFF00000) >> 20); - - if(index >= (nValues - 1)) - { - return(pYData[nValues - 1]); - } - else if(index < 0) - { - return(pYData[0]); - } - else - { - - /* 20 bits for the fractional part */ - /* shift left by 11 to keep fract in 1.31 format */ - fract = (x & 0x000FFFFF) << 11; - - /* Read two nearest output values from the index in 1.31(q31) format */ - y0 = pYData[index]; - y1 = pYData[index + 1u]; - - /* Calculation of y0 * (1-fract) and y is in 2.30 format */ - y = ((q31_t) ((q63_t) y0 * (0x7FFFFFFF - fract) >> 32)); - - /* Calculation of y0 * (1-fract) + y1 *fract and y is in 2.30 format */ - y += ((q31_t) (((q63_t) y1 * fract) >> 32)); - - /* Convert y to 1.31 format */ - return (y << 1u); - - } - - } - - /** - * - * @brief Process function for the Q15 Linear Interpolation Function. - * @param[in] *pYData pointer to Q15 Linear Interpolation table - * @param[in] x input sample to process - * @param[in] nValues number of table values - * @return y processed output sample. - * - * \par - * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. - * This function can support maximum of table size 2^12. - * - */ - - - static __INLINE q15_t arm_linear_interp_q15(q15_t *pYData, q31_t x, uint32_t nValues) - { - q63_t y; /* output */ - q15_t y0, y1; /* Nearest output values */ - q31_t fract; /* fractional part */ - int32_t index; /* Index to read nearest output values */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - index = ((x & 0xFFF00000) >> 20u); - - if(index >= (nValues - 1)) - { - return(pYData[nValues - 1]); - } - else if(index < 0) - { - return(pYData[0]); - } - else - { - /* 20 bits for the fractional part */ - /* fract is in 12.20 format */ - fract = (x & 0x000FFFFF); - - /* Read two nearest output values from the index */ - y0 = pYData[index]; - y1 = pYData[index + 1u]; - - /* Calculation of y0 * (1-fract) and y is in 13.35 format */ - y = ((q63_t) y0 * (0xFFFFF - fract)); - - /* Calculation of (y0 * (1-fract) + y1 * fract) and y is in 13.35 format */ - y += ((q63_t) y1 * (fract)); - - /* convert y to 1.15 format */ - return (y >> 20); - } - - - } - - /** - * - * @brief Process function for the Q7 Linear Interpolation Function. - * @param[in] *pYData pointer to Q7 Linear Interpolation table - * @param[in] x input sample to process - * @param[in] nValues number of table values - * @return y processed output sample. - * - * \par - * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. - * This function can support maximum of table size 2^12. - */ - - - static __INLINE q7_t arm_linear_interp_q7(q7_t *pYData, q31_t x, uint32_t nValues) - { - q31_t y; /* output */ - q7_t y0, y1; /* Nearest output values */ - q31_t fract; /* fractional part */ - int32_t index; /* Index to read nearest output values */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - index = ((x & 0xFFF00000) >> 20u); - - - if(index >= (nValues - 1)) - { - return(pYData[nValues - 1]); - } - else if(index < 0) - { - return(pYData[0]); - } - else - { - - /* 20 bits for the fractional part */ - /* fract is in 12.20 format */ - fract = (x & 0x000FFFFF); - - /* Read two nearest output values from the index and are in 1.7(q7) format */ - y0 = pYData[index]; - y1 = pYData[index + 1u]; - - /* Calculation of y0 * (1-fract ) and y is in 13.27(q27) format */ - y = ((y0 * (0xFFFFF - fract))); - - /* Calculation of y1 * fract + y0 * (1-fract) and y is in 13.27(q27) format */ - y += (y1 * fract); - - /* convert y to 1.7(q7) format */ - return (y >> 20u); - - } - - } - /** - * @} end of LinearInterpolate group - */ - - /** - * @brief Fast approximation to the trigonometric sine function for floating-point data. - * @param[in] x input value in radians. - * @return sin(x). - */ - - float32_t arm_sin_f32( - float32_t x); - - /** - * @brief Fast approximation to the trigonometric sine function for Q31 data. - * @param[in] x Scaled input value in radians. - * @return sin(x). - */ - - q31_t arm_sin_q31( - q31_t x); - - /** - * @brief Fast approximation to the trigonometric sine function for Q15 data. - * @param[in] x Scaled input value in radians. - * @return sin(x). - */ - - q15_t arm_sin_q15( - q15_t x); - - /** - * @brief Fast approximation to the trigonometric cosine function for floating-point data. - * @param[in] x input value in radians. - * @return cos(x). - */ - - float32_t arm_cos_f32( - float32_t x); - - /** - * @brief Fast approximation to the trigonometric cosine function for Q31 data. - * @param[in] x Scaled input value in radians. - * @return cos(x). - */ - - q31_t arm_cos_q31( - q31_t x); - - /** - * @brief Fast approximation to the trigonometric cosine function for Q15 data. - * @param[in] x Scaled input value in radians. - * @return cos(x). - */ - - q15_t arm_cos_q15( - q15_t x); - - - /** - * @ingroup groupFastMath - */ - - - /** - * @defgroup SQRT Square Root - * - * Computes the square root of a number. - * There are separate functions for Q15, Q31, and floating-point data types. - * The square root function is computed using the Newton-Raphson algorithm. - * This is an iterative algorithm of the form: - *
-   *      x1 = x0 - f(x0)/f'(x0)
-   * 
- * where x1 is the current estimate, - * x0 is the previous estimate and - * f'(x0) is the derivative of f() evaluated at x0. - * For the square root function, the algorithm reduces to: - *
-   *     x0 = in/2                         [initial guess]
-   *     x1 = 1/2 * ( x0 + in / x0)        [each iteration]
-   * 
- */ - - - /** - * @addtogroup SQRT - * @{ - */ - - /** - * @brief Floating-point square root function. - * @param[in] in input value. - * @param[out] *pOut square root of input value. - * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if - * in is negative value and returns zero output for negative values. - */ - - static __INLINE arm_status arm_sqrt_f32( - float32_t in, float32_t *pOut) - { - if(in > 0) - { - -// #if __FPU_USED - #if (__FPU_USED == 1) && defined ( __CC_ARM ) - *pOut = __sqrtf(in); - #else - *pOut = sqrtf(in); - #endif - - return (ARM_MATH_SUCCESS); - } - else - { - *pOut = 0.0f; - return (ARM_MATH_ARGUMENT_ERROR); - } - - } - - - /** - * @brief Q31 square root function. - * @param[in] in input value. The range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. - * @param[out] *pOut square root of input value. - * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if - * in is negative value and returns zero output for negative values. - */ - arm_status arm_sqrt_q31( - q31_t in, q31_t *pOut); - - /** - * @brief Q15 square root function. - * @param[in] in input value. The range of the input value is [0 +1) or 0x0000 to 0x7FFF. - * @param[out] *pOut square root of input value. - * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if - * in is negative value and returns zero output for negative values. - */ - arm_status arm_sqrt_q15( - q15_t in, q15_t *pOut); - - /** - * @} end of SQRT group - */ - - - - - - - /** - * @brief floating-point Circular write function. - */ - - static __INLINE void arm_circularWrite_f32( - int32_t * circBuffer, - int32_t L, - uint16_t * writeOffset, - int32_t bufferInc, - const int32_t * src, - int32_t srcInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t wOffset; - - /* Copy the value of Index pointer that points - * to the current location where the input samples to be copied */ - wOffset = *writeOffset; - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the input sample to the circular buffer */ - circBuffer[wOffset] = *src; - - /* Update the input pointer */ - src += srcInc; - - /* Circularly update wOffset. Watch out for positive and negative value */ - wOffset += bufferInc; - if(wOffset >= L) - wOffset -= L; - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *writeOffset = wOffset; - } - - - - /** - * @brief floating-point Circular Read function. - */ - static __INLINE void arm_circularRead_f32( - int32_t * circBuffer, - int32_t L, - int32_t * readOffset, - int32_t bufferInc, - int32_t * dst, - int32_t * dst_base, - int32_t dst_length, - int32_t dstInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t rOffset, dst_end; - - /* Copy the value of Index pointer that points - * to the current location from where the input samples to be read */ - rOffset = *readOffset; - dst_end = (int32_t) (dst_base + dst_length); - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the sample from the circular buffer to the destination buffer */ - *dst = circBuffer[rOffset]; - - /* Update the input pointer */ - dst += dstInc; - - if(dst == (int32_t *) dst_end) - { - dst = dst_base; - } - - /* Circularly update rOffset. Watch out for positive and negative value */ - rOffset += bufferInc; - - if(rOffset >= L) - { - rOffset -= L; - } - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *readOffset = rOffset; - } - - /** - * @brief Q15 Circular write function. - */ - - static __INLINE void arm_circularWrite_q15( - q15_t * circBuffer, - int32_t L, - uint16_t * writeOffset, - int32_t bufferInc, - const q15_t * src, - int32_t srcInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t wOffset; - - /* Copy the value of Index pointer that points - * to the current location where the input samples to be copied */ - wOffset = *writeOffset; - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the input sample to the circular buffer */ - circBuffer[wOffset] = *src; - - /* Update the input pointer */ - src += srcInc; - - /* Circularly update wOffset. Watch out for positive and negative value */ - wOffset += bufferInc; - if(wOffset >= L) - wOffset -= L; - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *writeOffset = wOffset; - } - - - - /** - * @brief Q15 Circular Read function. - */ - static __INLINE void arm_circularRead_q15( - q15_t * circBuffer, - int32_t L, - int32_t * readOffset, - int32_t bufferInc, - q15_t * dst, - q15_t * dst_base, - int32_t dst_length, - int32_t dstInc, - uint32_t blockSize) - { - uint32_t i = 0; - int32_t rOffset, dst_end; - - /* Copy the value of Index pointer that points - * to the current location from where the input samples to be read */ - rOffset = *readOffset; - - dst_end = (int32_t) (dst_base + dst_length); - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the sample from the circular buffer to the destination buffer */ - *dst = circBuffer[rOffset]; - - /* Update the input pointer */ - dst += dstInc; - - if(dst == (q15_t *) dst_end) - { - dst = dst_base; - } - - /* Circularly update wOffset. Watch out for positive and negative value */ - rOffset += bufferInc; - - if(rOffset >= L) - { - rOffset -= L; - } - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *readOffset = rOffset; - } - - - /** - * @brief Q7 Circular write function. - */ - - static __INLINE void arm_circularWrite_q7( - q7_t * circBuffer, - int32_t L, - uint16_t * writeOffset, - int32_t bufferInc, - const q7_t * src, - int32_t srcInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t wOffset; - - /* Copy the value of Index pointer that points - * to the current location where the input samples to be copied */ - wOffset = *writeOffset; - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the input sample to the circular buffer */ - circBuffer[wOffset] = *src; - - /* Update the input pointer */ - src += srcInc; - - /* Circularly update wOffset. Watch out for positive and negative value */ - wOffset += bufferInc; - if(wOffset >= L) - wOffset -= L; - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *writeOffset = wOffset; - } - - - - /** - * @brief Q7 Circular Read function. - */ - static __INLINE void arm_circularRead_q7( - q7_t * circBuffer, - int32_t L, - int32_t * readOffset, - int32_t bufferInc, - q7_t * dst, - q7_t * dst_base, - int32_t dst_length, - int32_t dstInc, - uint32_t blockSize) - { - uint32_t i = 0; - int32_t rOffset, dst_end; - - /* Copy the value of Index pointer that points - * to the current location from where the input samples to be read */ - rOffset = *readOffset; - - dst_end = (int32_t) (dst_base + dst_length); - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the sample from the circular buffer to the destination buffer */ - *dst = circBuffer[rOffset]; - - /* Update the input pointer */ - dst += dstInc; - - if(dst == (q7_t *) dst_end) - { - dst = dst_base; - } - - /* Circularly update rOffset. Watch out for positive and negative value */ - rOffset += bufferInc; - - if(rOffset >= L) - { - rOffset -= L; - } - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *readOffset = rOffset; - } - - - /** - * @brief Sum of the squares of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_q31( - q31_t * pSrc, - uint32_t blockSize, - q63_t * pResult); - - /** - * @brief Sum of the squares of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Sum of the squares of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_q15( - q15_t * pSrc, - uint32_t blockSize, - q63_t * pResult); - - /** - * @brief Sum of the squares of the elements of a Q7 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_q7( - q7_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Mean value of a Q7 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_mean_q7( - q7_t * pSrc, - uint32_t blockSize, - q7_t * pResult); - - /** - * @brief Mean value of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - void arm_mean_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult); - - /** - * @brief Mean value of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - void arm_mean_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Mean value of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - void arm_mean_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Variance of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_var_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Variance of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_var_q31( - q31_t * pSrc, - uint32_t blockSize, - q63_t * pResult); - - /** - * @brief Variance of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_var_q15( - q15_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Root Mean Square of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_rms_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Root Mean Square of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_rms_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Root Mean Square of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_rms_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult); - - /** - * @brief Standard deviation of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_std_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Standard deviation of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_std_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Standard deviation of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_std_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult); - - /** - * @brief Floating-point complex magnitude - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex magnitude - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex magnitude - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex dot product - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] numSamples number of complex samples in each vector - * @param[out] *realResult real part of the result returned here - * @param[out] *imagResult imaginary part of the result returned here - * @return none. - */ - - void arm_cmplx_dot_prod_q15( - q15_t * pSrcA, - q15_t * pSrcB, - uint32_t numSamples, - q31_t * realResult, - q31_t * imagResult); - - /** - * @brief Q31 complex dot product - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] numSamples number of complex samples in each vector - * @param[out] *realResult real part of the result returned here - * @param[out] *imagResult imaginary part of the result returned here - * @return none. - */ - - void arm_cmplx_dot_prod_q31( - q31_t * pSrcA, - q31_t * pSrcB, - uint32_t numSamples, - q63_t * realResult, - q63_t * imagResult); - - /** - * @brief Floating-point complex dot product - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] numSamples number of complex samples in each vector - * @param[out] *realResult real part of the result returned here - * @param[out] *imagResult imaginary part of the result returned here - * @return none. - */ - - void arm_cmplx_dot_prod_f32( - float32_t * pSrcA, - float32_t * pSrcB, - uint32_t numSamples, - float32_t * realResult, - float32_t * imagResult); - - /** - * @brief Q15 complex-by-real multiplication - * @param[in] *pSrcCmplx points to the complex input vector - * @param[in] *pSrcReal points to the real input vector - * @param[out] *pCmplxDst points to the complex output vector - * @param[in] numSamples number of samples in each vector - * @return none. - */ - - void arm_cmplx_mult_real_q15( - q15_t * pSrcCmplx, - q15_t * pSrcReal, - q15_t * pCmplxDst, - uint32_t numSamples); - - /** - * @brief Q31 complex-by-real multiplication - * @param[in] *pSrcCmplx points to the complex input vector - * @param[in] *pSrcReal points to the real input vector - * @param[out] *pCmplxDst points to the complex output vector - * @param[in] numSamples number of samples in each vector - * @return none. - */ - - void arm_cmplx_mult_real_q31( - q31_t * pSrcCmplx, - q31_t * pSrcReal, - q31_t * pCmplxDst, - uint32_t numSamples); - - /** - * @brief Floating-point complex-by-real multiplication - * @param[in] *pSrcCmplx points to the complex input vector - * @param[in] *pSrcReal points to the real input vector - * @param[out] *pCmplxDst points to the complex output vector - * @param[in] numSamples number of samples in each vector - * @return none. - */ - - void arm_cmplx_mult_real_f32( - float32_t * pSrcCmplx, - float32_t * pSrcReal, - float32_t * pCmplxDst, - uint32_t numSamples); - - /** - * @brief Minimum value of a Q7 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *result is output pointer - * @param[in] index is the array index of the minimum value in the input buffer. - * @return none. - */ - - void arm_min_q7( - q7_t * pSrc, - uint32_t blockSize, - q7_t * result, - uint32_t * index); - - /** - * @brief Minimum value of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output pointer - * @param[in] *pIndex is the array index of the minimum value in the input buffer. - * @return none. - */ - - void arm_min_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult, - uint32_t * pIndex); - - /** - * @brief Minimum value of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output pointer - * @param[out] *pIndex is the array index of the minimum value in the input buffer. - * @return none. - */ - void arm_min_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult, - uint32_t * pIndex); - - /** - * @brief Minimum value of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output pointer - * @param[out] *pIndex is the array index of the minimum value in the input buffer. - * @return none. - */ - - void arm_min_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a Q7 vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_q7( - q7_t * pSrc, - uint32_t blockSize, - q7_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a Q15 vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a Q31 vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a floating-point vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult, - uint32_t * pIndex); - - /** - * @brief Q15 complex-by-complex multiplication - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_mult_cmplx_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex-by-complex multiplication - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_mult_cmplx_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Floating-point complex-by-complex multiplication - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_mult_cmplx_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Converts the elements of the floating-point vector to Q31 vector. - * @param[in] *pSrc points to the floating-point input vector - * @param[out] *pDst points to the Q31 output vector - * @param[in] blockSize length of the input vector - * @return none. - */ - void arm_float_to_q31( - float32_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the floating-point vector to Q15 vector. - * @param[in] *pSrc points to the floating-point input vector - * @param[out] *pDst points to the Q15 output vector - * @param[in] blockSize length of the input vector - * @return none - */ - void arm_float_to_q15( - float32_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the floating-point vector to Q7 vector. - * @param[in] *pSrc points to the floating-point input vector - * @param[out] *pDst points to the Q7 output vector - * @param[in] blockSize length of the input vector - * @return none - */ - void arm_float_to_q7( - float32_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - - /** - * @brief Converts the elements of the Q31 vector to Q15 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q31_to_q15( - q31_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the Q31 vector to Q7 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q31_to_q7( - q31_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the Q15 vector to floating-point vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q15_to_float( - q15_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Converts the elements of the Q15 vector to Q31 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q15_to_q31( - q15_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @brief Converts the elements of the Q15 vector to Q7 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q15_to_q7( - q15_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - - /** - * @ingroup groupInterpolation - */ - - /** - * @defgroup BilinearInterpolate Bilinear Interpolation - * - * Bilinear interpolation is an extension of linear interpolation applied to a two dimensional grid. - * The underlying function f(x, y) is sampled on a regular grid and the interpolation process - * determines values between the grid points. - * Bilinear interpolation is equivalent to two step linear interpolation, first in the x-dimension and then in the y-dimension. - * Bilinear interpolation is often used in image processing to rescale images. - * The CMSIS DSP library provides bilinear interpolation functions for Q7, Q15, Q31, and floating-point data types. - * - * Algorithm - * \par - * The instance structure used by the bilinear interpolation functions describes a two dimensional data table. - * For floating-point, the instance structure is defined as: - *
-   *   typedef struct
-   *   {
-   *     uint16_t numRows;
-   *     uint16_t numCols;
-   *     float32_t *pData;
-   * } arm_bilinear_interp_instance_f32;
-   * 
- * - * \par - * where numRows specifies the number of rows in the table; - * numCols specifies the number of columns in the table; - * and pData points to an array of size numRows*numCols values. - * The data table pTable is organized in row order and the supplied data values fall on integer indexes. - * That is, table element (x,y) is located at pTable[x + y*numCols] where x and y are integers. - * - * \par - * Let (x, y) specify the desired interpolation point. Then define: - *
-   *     XF = floor(x)
-   *     YF = floor(y)
-   * 
- * \par - * The interpolated output point is computed as: - *
-   *  f(x, y) = f(XF, YF) * (1-(x-XF)) * (1-(y-YF))
-   *           + f(XF+1, YF) * (x-XF)*(1-(y-YF))
-   *           + f(XF, YF+1) * (1-(x-XF))*(y-YF)
-   *           + f(XF+1, YF+1) * (x-XF)*(y-YF)
-   * 
- * Note that the coordinates (x, y) contain integer and fractional components. - * The integer components specify which portion of the table to use while the - * fractional components control the interpolation processor. - * - * \par - * if (x,y) are outside of the table boundary, Bilinear interpolation returns zero output. - */ - - /** - * @addtogroup BilinearInterpolate - * @{ - */ - - /** - * - * @brief Floating-point bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate. - * @param[in] Y interpolation coordinate. - * @return out interpolated value. - */ - - - static __INLINE float32_t arm_bilinear_interp_f32( - const arm_bilinear_interp_instance_f32 * S, - float32_t X, - float32_t Y) - { - float32_t out; - float32_t f00, f01, f10, f11; - float32_t *pData = S->pData; - int32_t xIndex, yIndex, index; - float32_t xdiff, ydiff; - float32_t b1, b2, b3, b4; - - xIndex = (int32_t) X; - yIndex = (int32_t) Y; - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(xIndex < 0 || xIndex > (S->numRows-1) || yIndex < 0 || yIndex > ( S->numCols-1)) - { - return(0); - } - - /* Calculation of index for two nearest points in X-direction */ - index = (xIndex - 1) + (yIndex-1) * S->numCols ; - - - /* Read two nearest points in X-direction */ - f00 = pData[index]; - f01 = pData[index + 1]; - - /* Calculation of index for two nearest points in Y-direction */ - index = (xIndex-1) + (yIndex) * S->numCols; - - - /* Read two nearest points in Y-direction */ - f10 = pData[index]; - f11 = pData[index + 1]; - - /* Calculation of intermediate values */ - b1 = f00; - b2 = f01 - f00; - b3 = f10 - f00; - b4 = f00 - f01 - f10 + f11; - - /* Calculation of fractional part in X */ - xdiff = X - xIndex; - - /* Calculation of fractional part in Y */ - ydiff = Y - yIndex; - - /* Calculation of bi-linear interpolated output */ - out = b1 + b2 * xdiff + b3 * ydiff + b4 * xdiff * ydiff; - - /* return to application */ - return (out); - - } - - /** - * - * @brief Q31 bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate in 12.20 format. - * @param[in] Y interpolation coordinate in 12.20 format. - * @return out interpolated value. - */ - - static __INLINE q31_t arm_bilinear_interp_q31( - arm_bilinear_interp_instance_q31 * S, - q31_t X, - q31_t Y) - { - q31_t out; /* Temporary output */ - q31_t acc = 0; /* output */ - q31_t xfract, yfract; /* X, Y fractional parts */ - q31_t x1, x2, y1, y2; /* Nearest output values */ - int32_t rI, cI; /* Row and column indices */ - q31_t *pYData = S->pData; /* pointer to output table values */ - uint32_t nCols = S->numCols; /* num of rows */ - - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - rI = ((X & 0xFFF00000) >> 20u); - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - cI = ((Y & 0xFFF00000) >> 20u); - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(rI < 0 || rI > (S->numRows-1) || cI < 0 || cI > ( S->numCols-1)) - { - return(0); - } - - /* 20 bits for the fractional part */ - /* shift left xfract by 11 to keep 1.31 format */ - xfract = (X & 0x000FFFFF) << 11u; - - /* Read two nearest output values from the index */ - x1 = pYData[(rI) + nCols * (cI)]; - x2 = pYData[(rI) + nCols * (cI) + 1u]; - - /* 20 bits for the fractional part */ - /* shift left yfract by 11 to keep 1.31 format */ - yfract = (Y & 0x000FFFFF) << 11u; - - /* Read two nearest output values from the index */ - y1 = pYData[(rI) + nCols * (cI + 1)]; - y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; - - /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 3.29(q29) format */ - out = ((q31_t) (((q63_t) x1 * (0x7FFFFFFF - xfract)) >> 32)); - acc = ((q31_t) (((q63_t) out * (0x7FFFFFFF - yfract)) >> 32)); - - /* x2 * (xfract) * (1-yfract) in 3.29(q29) and adding to acc */ - out = ((q31_t) ((q63_t) x2 * (0x7FFFFFFF - yfract) >> 32)); - acc += ((q31_t) ((q63_t) out * (xfract) >> 32)); - - /* y1 * (1 - xfract) * (yfract) in 3.29(q29) and adding to acc */ - out = ((q31_t) ((q63_t) y1 * (0x7FFFFFFF - xfract) >> 32)); - acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); - - /* y2 * (xfract) * (yfract) in 3.29(q29) and adding to acc */ - out = ((q31_t) ((q63_t) y2 * (xfract) >> 32)); - acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); - - /* Convert acc to 1.31(q31) format */ - return (acc << 2u); - - } - - /** - * @brief Q15 bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate in 12.20 format. - * @param[in] Y interpolation coordinate in 12.20 format. - * @return out interpolated value. - */ - - static __INLINE q15_t arm_bilinear_interp_q15( - arm_bilinear_interp_instance_q15 * S, - q31_t X, - q31_t Y) - { - q63_t acc = 0; /* output */ - q31_t out; /* Temporary output */ - q15_t x1, x2, y1, y2; /* Nearest output values */ - q31_t xfract, yfract; /* X, Y fractional parts */ - int32_t rI, cI; /* Row and column indices */ - q15_t *pYData = S->pData; /* pointer to output table values */ - uint32_t nCols = S->numCols; /* num of rows */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - rI = ((X & 0xFFF00000) >> 20); - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - cI = ((Y & 0xFFF00000) >> 20); - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(rI < 0 || rI > (S->numRows-1) || cI < 0 || cI > ( S->numCols-1)) - { - return(0); - } - - /* 20 bits for the fractional part */ - /* xfract should be in 12.20 format */ - xfract = (X & 0x000FFFFF); - - /* Read two nearest output values from the index */ - x1 = pYData[(rI) + nCols * (cI)]; - x2 = pYData[(rI) + nCols * (cI) + 1u]; - - - /* 20 bits for the fractional part */ - /* yfract should be in 12.20 format */ - yfract = (Y & 0x000FFFFF); - - /* Read two nearest output values from the index */ - y1 = pYData[(rI) + nCols * (cI + 1)]; - y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; - - /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 13.51 format */ - - /* x1 is in 1.15(q15), xfract in 12.20 format and out is in 13.35 format */ - /* convert 13.35 to 13.31 by right shifting and out is in 1.31 */ - out = (q31_t) (((q63_t) x1 * (0xFFFFF - xfract)) >> 4u); - acc = ((q63_t) out * (0xFFFFF - yfract)); - - /* x2 * (xfract) * (1-yfract) in 1.51 and adding to acc */ - out = (q31_t) (((q63_t) x2 * (0xFFFFF - yfract)) >> 4u); - acc += ((q63_t) out * (xfract)); - - /* y1 * (1 - xfract) * (yfract) in 1.51 and adding to acc */ - out = (q31_t) (((q63_t) y1 * (0xFFFFF - xfract)) >> 4u); - acc += ((q63_t) out * (yfract)); - - /* y2 * (xfract) * (yfract) in 1.51 and adding to acc */ - out = (q31_t) (((q63_t) y2 * (xfract)) >> 4u); - acc += ((q63_t) out * (yfract)); - - /* acc is in 13.51 format and down shift acc by 36 times */ - /* Convert out to 1.15 format */ - return (acc >> 36); - - } - - /** - * @brief Q7 bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate in 12.20 format. - * @param[in] Y interpolation coordinate in 12.20 format. - * @return out interpolated value. - */ - - static __INLINE q7_t arm_bilinear_interp_q7( - arm_bilinear_interp_instance_q7 * S, - q31_t X, - q31_t Y) - { - q63_t acc = 0; /* output */ - q31_t out; /* Temporary output */ - q31_t xfract, yfract; /* X, Y fractional parts */ - q7_t x1, x2, y1, y2; /* Nearest output values */ - int32_t rI, cI; /* Row and column indices */ - q7_t *pYData = S->pData; /* pointer to output table values */ - uint32_t nCols = S->numCols; /* num of rows */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - rI = ((X & 0xFFF00000) >> 20); - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - cI = ((Y & 0xFFF00000) >> 20); - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(rI < 0 || rI > (S->numRows-1) || cI < 0 || cI > ( S->numCols-1)) - { - return(0); - } - - /* 20 bits for the fractional part */ - /* xfract should be in 12.20 format */ - xfract = (X & 0x000FFFFF); - - /* Read two nearest output values from the index */ - x1 = pYData[(rI) + nCols * (cI)]; - x2 = pYData[(rI) + nCols * (cI) + 1u]; - - - /* 20 bits for the fractional part */ - /* yfract should be in 12.20 format */ - yfract = (Y & 0x000FFFFF); - - /* Read two nearest output values from the index */ - y1 = pYData[(rI) + nCols * (cI + 1)]; - y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; - - /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 16.47 format */ - out = ((x1 * (0xFFFFF - xfract))); - acc = (((q63_t) out * (0xFFFFF - yfract))); - - /* x2 * (xfract) * (1-yfract) in 2.22 and adding to acc */ - out = ((x2 * (0xFFFFF - yfract))); - acc += (((q63_t) out * (xfract))); - - /* y1 * (1 - xfract) * (yfract) in 2.22 and adding to acc */ - out = ((y1 * (0xFFFFF - xfract))); - acc += (((q63_t) out * (yfract))); - - /* y2 * (xfract) * (yfract) in 2.22 and adding to acc */ - out = ((y2 * (yfract))); - acc += (((q63_t) out * (xfract))); - - /* acc in 16.47 format and down shift by 40 to convert to 1.7 format */ - return (acc >> 40); - - } - - /** - * @} end of BilinearInterpolate group - */ - - - - - - -#ifdef __cplusplus -} -#endif - - -#endif /* _ARM_MATH_H */ - - -/** - * - * End of file. - */ diff --git a/bsp/mb9bf568r/CMSIS/Include/core_cm0.h b/bsp/mb9bf568r/CMSIS/Include/core_cm0.h deleted file mode 100644 index 9d7a19f9ae..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/core_cm0.h +++ /dev/null @@ -1,665 +0,0 @@ -/**************************************************************************//** - * @file core_cm0.h - * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File - * @version V2.10 - * @date 19. July 2011 - * - * @note - * Copyright (C) 2009-2011 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM0_H_GENERIC -#define __CORE_CM0_H_GENERIC - - -/** \mainpage CMSIS Cortex-M0 - - This documentation describes the CMSIS Cortex-M Core Peripheral Access Layer. - It consists of: - - - Cortex-M Core Register Definitions - - Cortex-M functions - - Cortex-M instructions - - The CMSIS Cortex-M0 Core Peripheral Access Layer contains C and assembly functions that ease - access to the Cortex-M Core - */ - -/** \defgroup CMSIS_MISRA_Exceptions CMSIS MISRA-C:2004 Compliance Exceptions - CMSIS violates following MISRA-C2004 Rules: - - - Violates MISRA 2004 Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - - Violates MISRA 2004 Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - - Violates MISRA 2004 Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \defgroup CMSIS_core_definitions CMSIS Core Definitions - This file defines all structures and symbols for CMSIS core: - - CMSIS version number - - Cortex-M core - - Cortex-M core Revision Number - @{ - */ - -/* CMSIS CM0 definitions */ -#define __CM0_CMSIS_VERSION_MAIN (0x02) /*!< [31:16] CMSIS HAL main version */ -#define __CM0_CMSIS_VERSION_SUB (0x10) /*!< [15:0] CMSIS HAL sub version */ -#define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16) | __CM0_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x00) /*!< Cortex core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - -#endif - -/*!< __FPU_USED to be checked prior to making use of FPU specific registers and functions */ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - /* add preprocessor checks */ -#endif - -#include /*!< standard types definitions */ -#include "core_cmInstr.h" /*!< Core Instruction Access */ -#include "core_cmFunc.h" /*!< Core Function Access */ - -#endif /* __CORE_CM0_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM0_H_DEPENDANT -#define __CORE_CM0_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM0_REV - #define __CM0_REV 0x0000 - #warning "__CM0_REV not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -#ifdef __cplusplus - #define __I volatile /*!< defines 'read only' permissions */ -#else - #define __I volatile const /*!< defines 'read only' permissions */ -#endif -#define __O volatile /*!< defines 'write only' permissions */ -#define __IO volatile /*!< defines 'read / write' permissions */ - -/*@} end of group CMSIS_core_definitions */ - - - -/******************************************************************************* - * Register Abstraction - ******************************************************************************/ -/** \defgroup CMSIS_core_register CMSIS Core Register - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE CMSIS Core - Type definitions for the Cortex-M Core Registers - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC CMSIS NVIC - Type definitions for the Cortex-M NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31]; - __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[31]; - __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31]; - __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31]; - uint32_t RESERVED4[64]; - __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB CMSIS SCB - Type definitions for the Cortex-M System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - uint32_t RESERVED0; - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick CMSIS SysTick - Type definitions for the Cortex-M System Timer Registers - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug CMSIS Core Debug - Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) are only accessible over DAP - and not via processor. Therefore they are not covered by the Cortex-M0 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - @{ - */ - -/* Memory mapping of Cortex-M0 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface CMSIS Core Function Interface - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions CMSIS Core NVIC Functions - @{ - */ - -/* Interrupt Priorities are WORD accessible only under ARMv6M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) -#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) -#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) - - -/** \brief Enable External Interrupt - - This function enables a device specific interrupt in the NVIC interrupt controller. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the external interrupt to enable - */ -static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Disable External Interrupt - - This function disables a device specific interrupt in the NVIC interrupt controller. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the external interrupt to disable - */ -static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Get Pending Interrupt - - This function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Number of the interrupt for get pending - \return 0 Interrupt status is not pending - \return 1 Interrupt status is pending - */ -static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); -} - - -/** \brief Set Pending Interrupt - - This function sets the pending bit for the specified interrupt. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the interrupt for set pending - */ -static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Clear Pending Interrupt - - This function clears the pending bit for the specified interrupt. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the interrupt for clear pending - */ -static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Set Interrupt Priority - - This function sets the priority for the specified interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - Note: The priority cannot be set for every core interrupt. - - \param [in] IRQn Number of the interrupt for set priority - \param [in] priority Priority to set - */ -static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } - else { - NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } -} - - -/** \brief Get Interrupt Priority - - This function reads the priority for the specified interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - The returned priority value is automatically aligned to the implemented - priority bits of the microcontroller. - - \param [in] IRQn Number of the interrupt for get priority - \return Interrupt Priority - */ -static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ - else { - return((uint32_t)((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief System Reset - - This function initiate a system reset request to reset the MCU. - */ -static __INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions CMSIS Core SysTick Functions - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - This function initialises the system tick timer and its interrupt and start the system tick timer. - Counter is in free running mode to generate periodical interrupts. - - \param [in] ticks Number of ticks between two interrupts - \return 0 Function succeeded - \return 1 Function failed - */ -static __INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#endif /* __CORE_CM0_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf568r/CMSIS/Include/core_cm3.h b/bsp/mb9bf568r/CMSIS/Include/core_cm3.h deleted file mode 100644 index 1c688181af..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/core_cm3.h +++ /dev/null @@ -1,1236 +0,0 @@ -/**************************************************************************//** - * @file core_cm3.h - * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File - * @version V2.10 - * @date 19. July 2011 - * - * @note - * Copyright (C) 2009-2011 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM3_H_GENERIC -#define __CORE_CM3_H_GENERIC - - -/** \mainpage CMSIS Cortex-M3 - - This documentation describes the CMSIS Cortex-M Core Peripheral Access Layer. - It consists of: - - - Cortex-M Core Register Definitions - - Cortex-M functions - - Cortex-M instructions - - The CMSIS Cortex-M3 Core Peripheral Access Layer contains C and assembly functions that ease - access to the Cortex-M Core - */ - -/** \defgroup CMSIS_MISRA_Exceptions CMSIS MISRA-C:2004 Compliance Exceptions - CMSIS violates following MISRA-C2004 Rules: - - - Violates MISRA 2004 Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - - Violates MISRA 2004 Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - - Violates MISRA 2004 Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \defgroup CMSIS_core_definitions CMSIS Core Definitions - This file defines all structures and symbols for CMSIS core: - - CMSIS version number - - Cortex-M core - - Cortex-M core Revision Number - @{ - */ - -/* CMSIS CM3 definitions */ -#define __CM3_CMSIS_VERSION_MAIN (0x02) /*!< [31:16] CMSIS HAL main version */ -#define __CM3_CMSIS_VERSION_SUB (0x10) /*!< [15:0] CMSIS HAL sub version */ -#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | __CM3_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x03) /*!< Cortex core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - -#endif - -/*!< __FPU_USED to be checked prior to making use of FPU specific registers and functions */ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - /* add preprocessor checks */ -#endif - -#include /*!< standard types definitions */ -#include "core_cmInstr.h" /*!< Core Instruction Access */ -#include "core_cmFunc.h" /*!< Core Function Access */ - -#endif /* __CORE_CM3_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM3_H_DEPENDANT -#define __CORE_CM3_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM3_REV - #define __CM3_REV 0x0200 - #warning "__CM3_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -#ifdef __cplusplus - #define __I volatile /*!< defines 'read only' permissions */ -#else - #define __I volatile const /*!< defines 'read only' permissions */ -#endif -#define __O volatile /*!< defines 'write only' permissions */ -#define __IO volatile /*!< defines 'read / write' permissions */ - -/*@} end of group CMSIS_core_definitions */ - - - -/******************************************************************************* - * Register Abstraction - ******************************************************************************/ -/** \defgroup CMSIS_core_register CMSIS Core Register - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE CMSIS Core - Type definitions for the Cortex-M Core Registers - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC CMSIS NVIC - Type definitions for the Cortex-M NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB CMSIS SCB - Type definitions for the Cortex-M System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5]; - __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB CMSIS System Control and ID Register not in the SCB - Type definitions for the Cortex-M System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ -#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) - __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -#else - uint32_t RESERVED1[1]; -#endif -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick CMSIS SysTick - Type definitions for the Cortex-M System Timer Registers - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_ITM CMSIS ITM - Type definitions for the Cortex-M Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_TXENA_Pos 3 /*!< ITM TCR: TXENA Position */ -#define ITM_TCR_TXENA_Msk (1UL << ITM_TCR_TXENA_Pos) /*!< ITM TCR: TXENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU CMSIS MPU - Type definitions for the Cortex-M Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug CMSIS Core Debug - Type definitions for the Cortex-M Core Debug Registers - @{ - */ - -/** \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - @{ - */ - -/* Memory mapping of Cortex-M3 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface CMSIS Core Function Interface - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions CMSIS Core NVIC Functions - @{ - */ - -/** \brief Set Priority Grouping - - This function sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - - \param [in] PriorityGroup Priority grouping field - */ -static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** \brief Get Priority Grouping - - This function gets the priority grouping from NVIC Interrupt Controller. - Priority grouping is SCB->AIRCR [10:8] PRIGROUP field. - - \return Priority grouping field - */ -static __INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - - -/** \brief Enable External Interrupt - - This function enables a device specific interrupt in the NVIC interrupt controller. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the external interrupt to enable - */ -static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ -} - - -/** \brief Disable External Interrupt - - This function disables a device specific interrupt in the NVIC interrupt controller. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the external interrupt to disable - */ -static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - - -/** \brief Get Pending Interrupt - - This function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Number of the interrupt for get pending - \return 0 Interrupt status is not pending - \return 1 Interrupt status is pending - */ -static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - - -/** \brief Set Pending Interrupt - - This function sets the pending bit for the specified interrupt. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the interrupt for set pending - */ -static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - - -/** \brief Clear Pending Interrupt - - This function clears the pending bit for the specified interrupt. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the interrupt for clear pending - */ -static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Get Active Interrupt - - This function reads the active register in NVIC and returns the active bit. - \param [in] IRQn Number of the interrupt for get active - \return 0 Interrupt status is not active - \return 1 Interrupt status is active - */ -static __INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - - -/** \brief Set Interrupt Priority - - This function sets the priority for the specified interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - Note: The priority cannot be set for every core interrupt. - - \param [in] IRQn Number of the interrupt for set priority - \param [in] priority Priority to set - */ -static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - - -/** \brief Get Interrupt Priority - - This function reads the priority for the specified interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - The returned priority value is automatically aligned to the implemented - priority bits of the microcontroller. - - \param [in] IRQn Number of the interrupt for get priority - \return Interrupt Priority - */ -static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief Encode Priority - - This function encodes the priority for an interrupt with the given priority group, - preemptive priority value and sub priority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - The returned priority value can be used for NVIC_SetPriority(...) function - - \param [in] PriorityGroup Used priority group - \param [in] PreemptPriority Preemptive priority value (starting from 0) - \param [in] SubPriority Sub priority value (starting from 0) - \return Encoded priority for the interrupt - */ -static __INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** \brief Decode Priority - - This function decodes an interrupt priority value with the given priority group to - preemptive priority value and sub priority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - The priority value can be retrieved with NVIC_GetPriority(...) function - - \param [in] Priority Priority value - \param [in] PriorityGroup Used priority group - \param [out] pPreemptPriority Preemptive priority value (starting from 0) - \param [out] pSubPriority Sub priority value (starting from 0) - */ -static __INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - -/** \brief System Reset - - This function initiate a system reset request to reset the MCU. - */ -static __INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions CMSIS Core SysTick Functions - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - This function initialises the system tick timer and its interrupt and start the system tick timer. - Counter is in free running mode to generate periodical interrupts. - - \param [in] ticks Number of ticks between two interrupts - \return 0 Function succeeded - \return 1 Function failed - */ -static __INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions CMSIS Core Debug Functions - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< external variable to receive characters */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< value identifying ITM_RxBuffer is ready for next character */ - - -/** \brief ITM Send Character - - This function transmits a character via the ITM channel 0. - It just returns when no debugger is connected that has booked the output. - It is blocking when a debugger is connected, but the previous character send is not transmitted. - - \param [in] ch Character to transmit - \return Character to transmit - */ -static __INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk) && /* Trace enabled */ - (ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** \brief ITM Receive Character - - This function inputs a character via external variable ITM_RxBuffer. - It just returns when no debugger is connected that has booked the output. - It is blocking when a debugger is connected, but the previous character send is not transmitted. - - \return Received character - \return -1 No character received - */ -static __INLINE int32_t ITM_ReceiveChar (void) { - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** \brief ITM Check Character - - This function checks external variable ITM_RxBuffer whether a character is available or not. - It returns '1' if a character is available and '0' if no character is available. - - \return 0 No character available - \return 1 Character available - */ -static __INLINE int32_t ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - -#endif /* __CORE_CM3_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf568r/CMSIS/Include/core_cm4.h b/bsp/mb9bf568r/CMSIS/Include/core_cm4.h deleted file mode 100644 index bf022ba67f..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/core_cm4.h +++ /dev/null @@ -1,1378 +0,0 @@ -/**************************************************************************//** - * @file core_cm4.h - * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File - * @version V2.10 - * @date 19. July 2011 - * - * @note - * Copyright (C) 2009-2011 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM4_H_GENERIC -#define __CORE_CM4_H_GENERIC - - -/** \mainpage CMSIS Cortex-M4 - - This documentation describes the CMSIS Cortex-M Core Peripheral Access Layer. - It consists of: - - - Cortex-M Core Register Definitions - - Cortex-M functions - - Cortex-M instructions - - Cortex-M SIMD instructions - - The CMSIS Cortex-M4 Core Peripheral Access Layer contains C and assembly functions that ease - access to the Cortex-M Core - */ - -/** \defgroup CMSIS_MISRA_Exceptions CMSIS MISRA-C:2004 Compliance Exceptions - CMSIS violates following MISRA-C2004 Rules: - - - Violates MISRA 2004 Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - - Violates MISRA 2004 Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - - Violates MISRA 2004 Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \defgroup CMSIS_core_definitions CMSIS Core Definitions - This file defines all structures and symbols for CMSIS core: - - CMSIS version number - - Cortex-M core - - Cortex-M core Revision Number - @{ - */ - -/* CMSIS CM4 definitions */ -#define __CM4_CMSIS_VERSION_MAIN (0x02) /*!< [31:16] CMSIS HAL main version */ -#define __CM4_CMSIS_VERSION_SUB (0x10) /*!< [15:0] CMSIS HAL sub version */ -#define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN << 16) | __CM4_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x04) /*!< Cortex core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - -#endif - -/*!< __FPU_USED to be checked prior to making use of FPU specific registers and functions */ -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __TASKING__ ) - /* add preprocessor checks to define __FPU_USED */ - #define __FPU_USED 0 -#endif - -#include /*!< standard types definitions */ -#include /*!< Core Instruction Access */ -#include /*!< Core Function Access */ -#include /*!< Compiler specific SIMD Intrinsics */ - -#endif /* __CORE_CM4_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM4_H_DEPENDANT -#define __CORE_CM4_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM4_REV - #define __CM4_REV 0x0000 - #warning "__CM4_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0 - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -#ifdef __cplusplus - #define __I volatile /*!< defines 'read only' permissions */ -#else - #define __I volatile const /*!< defines 'read only' permissions */ -#endif -#define __O volatile /*!< defines 'write only' permissions */ -#define __IO volatile /*!< defines 'read / write' permissions */ - -/*@} end of group CMSIS_core_definitions */ - - - -/******************************************************************************* - * Register Abstraction - ******************************************************************************/ -/** \defgroup CMSIS_core_register CMSIS Core Register - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core FPU Register -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE CMSIS Core - Type definitions for the Cortex-M Core Registers - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC CMSIS NVIC - Type definitions for the Cortex-M NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB CMSIS SCB - Type definitions for the Cortex-M System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5]; - __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB CMSIS System Control and ID Register not in the SCB - Type definitions for the Cortex-M System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISOOFP_Pos 9 /*!< ACTLR: DISOOFP Position */ -#define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ - -#define SCnSCB_ACTLR_DISFPCA_Pos 8 /*!< ACTLR: DISFPCA Position */ -#define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick CMSIS SysTick - Type definitions for the Cortex-M System Timer Registers - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_ITM CMSIS ITM - Type definitions for the Cortex-M Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_TXENA_Pos 3 /*!< ITM TCR: TXENA Position */ -#define ITM_TCR_TXENA_Msk (1UL << ITM_TCR_TXENA_Pos) /*!< ITM TCR: TXENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU CMSIS MPU - Type definitions for the Cortex-M Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if (__FPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_FPU CMSIS FPU - Type definitions for the Cortex-M Floating Point Unit (FPU) - @{ - */ - -/** \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __IO uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IO uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IO uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __I uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __I uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ -} FPU_Type; - -/* Floating-Point Context Control Register */ -#define FPU_FPCCR_ASPEN_Pos 31 /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30 /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8 /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6 /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5 /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4 /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3 /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_USER_Pos 1 /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0 /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL << FPU_FPCCR_LSPACT_Pos) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register */ -#define FPU_FPCAR_ADDRESS_Pos 3 /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register */ -#define FPU_FPDSCR_AHP_Pos 26 /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25 /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24 /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22 /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28 /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24 /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20 /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16 /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12 /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8 /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4 /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0 /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL << FPU_MVFR0_A_SIMD_registers_Pos) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28 /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24 /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4 /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0 /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL << FPU_MVFR1_FtZ_mode_Pos) /*!< MVFR1: FtZ mode bits Mask */ - -/*@} end of group CMSIS_FPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug CMSIS Core Debug - Type definitions for the Cortex-M Core Debug Registers - @{ - */ - -/** \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - @{ - */ - -/* Memory mapping of Cortex-M4 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -#if (__FPU_PRESENT == 1) - #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ - #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface CMSIS Core Function Interface - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions CMSIS Core NVIC Functions - @{ - */ - -/** \brief Set Priority Grouping - - This function sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. - - \param [in] PriorityGroup Priority grouping field - */ -static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** \brief Get Priority Grouping - - This function gets the priority grouping from NVIC Interrupt Controller. - Priority grouping is SCB->AIRCR [10:8] PRIGROUP field. - - \return Priority grouping field - */ -static __INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - - -/** \brief Enable External Interrupt - - This function enables a device specific interrupt in the NVIC interrupt controller. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the external interrupt to enable - */ -static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ -/* NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); enable interrupt */ - NVIC->ISER[(uint32_t)((int32_t)IRQn) >> 5] = (uint32_t)(1 << ((uint32_t)((int32_t)IRQn) & (uint32_t)0x1F)); /* enable interrupt */ -} - - -/** \brief Disable External Interrupt - - This function disables a device specific interrupt in the NVIC interrupt controller. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the external interrupt to disable - */ -static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - - -/** \brief Get Pending Interrupt - - This function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Number of the interrupt for get pending - \return 0 Interrupt status is not pending - \return 1 Interrupt status is pending - */ -static __INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - - -/** \brief Set Pending Interrupt - - This function sets the pending bit for the specified interrupt. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the interrupt for set pending - */ -static __INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - - -/** \brief Clear Pending Interrupt - - This function clears the pending bit for the specified interrupt. - The interrupt number cannot be a negative value. - - \param [in] IRQn Number of the interrupt for clear pending - */ -static __INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Get Active Interrupt - - This function reads the active register in NVIC and returns the active bit. - \param [in] IRQn Number of the interrupt for get active - \return 0 Interrupt status is not active - \return 1 Interrupt status is active - */ -static __INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - - -/** \brief Set Interrupt Priority - - This function sets the priority for the specified interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - Note: The priority cannot be set for every core interrupt. - - \param [in] IRQn Number of the interrupt for set priority - \param [in] priority Priority to set - */ -static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - - -/** \brief Get Interrupt Priority - - This function reads the priority for the specified interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - The returned priority value is automatically aligned to the implemented - priority bits of the microcontroller. - - \param [in] IRQn Number of the interrupt for get priority - \return Interrupt Priority - */ -static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief Encode Priority - - This function encodes the priority for an interrupt with the given priority group, - preemptive priority value and sub priority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - The returned priority value can be used for NVIC_SetPriority(...) function - - \param [in] PriorityGroup Used priority group - \param [in] PreemptPriority Preemptive priority value (starting from 0) - \param [in] SubPriority Sub priority value (starting from 0) - \return Encoded priority for the interrupt - */ -static __INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** \brief Decode Priority - - This function decodes an interrupt priority value with the given priority group to - preemptive priority value and sub priority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - The priority value can be retrieved with NVIC_GetPriority(...) function - - \param [in] Priority Priority value - \param [in] PriorityGroup Used priority group - \param [out] pPreemptPriority Preemptive priority value (starting from 0) - \param [out] pSubPriority Sub priority value (starting from 0) - */ -static __INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - -/** \brief System Reset - - This function initiate a system reset request to reset the MCU. - */ -static __INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions CMSIS Core SysTick Functions - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - This function initialises the system tick timer and its interrupt and start the system tick timer. - Counter is in free running mode to generate periodical interrupts. - - \param [in] ticks Number of ticks between two interrupts - \return 0 Function succeeded - \return 1 Function failed - */ -static __INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = (ticks & SysTick_LOAD_RELOAD_Msk) - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Cortex-M0 System Interrupts */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions CMSIS Core Debug Functions - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< external variable to receive characters */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< value identifying ITM_RxBuffer is ready for next character */ - - -/** \brief ITM Send Character - - This function transmits a character via the ITM channel 0. - It just returns when no debugger is connected that has booked the output. - It is blocking when a debugger is connected, but the previous character send is not transmitted. - - \param [in] ch Character to transmit - \return Character to transmit - */ -static __INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk) && /* Trace enabled */ - (ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** \brief ITM Receive Character - - This function inputs a character via external variable ITM_RxBuffer. - It just returns when no debugger is connected that has booked the output. - It is blocking when a debugger is connected, but the previous character send is not transmitted. - - \return Received character - \return -1 No character received - */ -static __INLINE int32_t ITM_ReceiveChar (void) { - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** \brief ITM Check Character - - This function checks external variable ITM_RxBuffer whether a character is available or not. - It returns '1' if a character is available and '0' if no character is available. - - \return 0 No character available - \return 1 Character available - */ -static __INLINE int32_t ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - -#endif /* __CORE_CM4_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf568r/CMSIS/Include/core_cm4_simd.h b/bsp/mb9bf568r/CMSIS/Include/core_cm4_simd.h deleted file mode 100644 index e7b6765225..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/core_cm4_simd.h +++ /dev/null @@ -1,701 +0,0 @@ -/**************************************************************************//** - * @file core_cm4_simd.h - * @brief CMSIS Cortex-M4 SIMD Header File - * @version V2.10 - * @date 19. July 2011 - * - * @note - * Copyright (C) 2010-2011 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM4_SIMD_H -#define __CORE_CM4_SIMD_H - - -/******************************************************************************* - * Hardware Abstraction Layer - ******************************************************************************/ - - -/* ################### Compiler specific Intrinsics ########################### */ -/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics - Access to dedicated SIMD instructions - @{ -*/ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -/*------ CM4 SOMD Intrinsics -----------------------------------------------------*/ -#define __SADD8 __sadd8 -#define __QADD8 __qadd8 -#define __SHADD8 __shadd8 -#define __UADD8 __uadd8 -#define __UQADD8 __uqadd8 -#define __UHADD8 __uhadd8 -#define __SSUB8 __ssub8 -#define __QSUB8 __qsub8 -#define __SHSUB8 __shsub8 -#define __USUB8 __usub8 -#define __UQSUB8 __uqsub8 -#define __UHSUB8 __uhsub8 -#define __SADD16 __sadd16 -#define __QADD16 __qadd16 -#define __SHADD16 __shadd16 -#define __UADD16 __uadd16 -#define __UQADD16 __uqadd16 -#define __UHADD16 __uhadd16 -#define __SSUB16 __ssub16 -#define __QSUB16 __qsub16 -#define __SHSUB16 __shsub16 -#define __USUB16 __usub16 -#define __UQSUB16 __uqsub16 -#define __UHSUB16 __uhsub16 -#define __SASX __sasx -#define __QASX __qasx -#define __SHASX __shasx -#define __UASX __uasx -#define __UQASX __uqasx -#define __UHASX __uhasx -#define __SSAX __ssax -#define __QSAX __qsax -#define __SHSAX __shsax -#define __USAX __usax -#define __UQSAX __uqsax -#define __UHSAX __uhsax -#define __USAD8 __usad8 -#define __USADA8 __usada8 -#define __SSAT16 __ssat16 -#define __USAT16 __usat16 -#define __UXTB16 __uxtb16 -#define __UXTAB16 __uxtab16 -#define __SXTB16 __sxtb16 -#define __SXTAB16 __sxtab16 -#define __SMUAD __smuad -#define __SMUADX __smuadx -#define __SMLAD __smlad -#define __SMLADX __smladx -#define __SMLALD __smlald -#define __SMLALDX __smlaldx -#define __SMUSD __smusd -#define __SMUSDX __smusdx -#define __SMLSD __smlsd -#define __SMLSDX __smlsdx -#define __SMLSLD __smlsld -#define __SMLSLDX __smlsldx -#define __SEL __sel -#define __QADD __qadd -#define __QSUB __qsub - -#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ - ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) - -#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ - ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) - - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - -/*------ CM4 SIMDDSP Intrinsics -----------------------------------------------------*/ -/* intrinsic __SADD8 see intrinsics.h */ -/* intrinsic __QADD8 see intrinsics.h */ -/* intrinsic __SHADD8 see intrinsics.h */ -/* intrinsic __UADD8 see intrinsics.h */ -/* intrinsic __UQADD8 see intrinsics.h */ -/* intrinsic __UHADD8 see intrinsics.h */ -/* intrinsic __SSUB8 see intrinsics.h */ -/* intrinsic __QSUB8 see intrinsics.h */ -/* intrinsic __SHSUB8 see intrinsics.h */ -/* intrinsic __USUB8 see intrinsics.h */ -/* intrinsic __UQSUB8 see intrinsics.h */ -/* intrinsic __UHSUB8 see intrinsics.h */ -/* intrinsic __SADD16 see intrinsics.h */ -/* intrinsic __QADD16 see intrinsics.h */ -/* intrinsic __SHADD16 see intrinsics.h */ -/* intrinsic __UADD16 see intrinsics.h */ -/* intrinsic __UQADD16 see intrinsics.h */ -/* intrinsic __UHADD16 see intrinsics.h */ -/* intrinsic __SSUB16 see intrinsics.h */ -/* intrinsic __QSUB16 see intrinsics.h */ -/* intrinsic __SHSUB16 see intrinsics.h */ -/* intrinsic __USUB16 see intrinsics.h */ -/* intrinsic __UQSUB16 see intrinsics.h */ -/* intrinsic __UHSUB16 see intrinsics.h */ -/* intrinsic __SASX see intrinsics.h */ -/* intrinsic __QASX see intrinsics.h */ -/* intrinsic __SHASX see intrinsics.h */ -/* intrinsic __UASX see intrinsics.h */ -/* intrinsic __UQASX see intrinsics.h */ -/* intrinsic __UHASX see intrinsics.h */ -/* intrinsic __SSAX see intrinsics.h */ -/* intrinsic __QSAX see intrinsics.h */ -/* intrinsic __SHSAX see intrinsics.h */ -/* intrinsic __USAX see intrinsics.h */ -/* intrinsic __UQSAX see intrinsics.h */ -/* intrinsic __UHSAX see intrinsics.h */ -/* intrinsic __USAD8 see intrinsics.h */ -/* intrinsic __USADA8 see intrinsics.h */ -/* intrinsic __SSAT16 see intrinsics.h */ -/* intrinsic __USAT16 see intrinsics.h */ -/* intrinsic __UXTB16 see intrinsics.h */ -/* intrinsic __SXTB16 see intrinsics.h */ -/* intrinsic __UXTAB16 see intrinsics.h */ -/* intrinsic __SXTAB16 see intrinsics.h */ -/* intrinsic __SMUAD see intrinsics.h */ -/* intrinsic __SMUADX see intrinsics.h */ -/* intrinsic __SMLAD see intrinsics.h */ -/* intrinsic __SMLADX see intrinsics.h */ -/* intrinsic __SMLALD see intrinsics.h */ -/* intrinsic __SMLALDX see intrinsics.h */ -/* intrinsic __SMUSD see intrinsics.h */ -/* intrinsic __SMUSDX see intrinsics.h */ -/* intrinsic __SMLSD see intrinsics.h */ -/* intrinsic __SMLSDX see intrinsics.h */ -/* intrinsic __SMLSLD see intrinsics.h */ -/* intrinsic __SMLSLDX see intrinsics.h */ -/* intrinsic __SEL see intrinsics.h */ -/* intrinsic __QADD see intrinsics.h */ -/* intrinsic __QSUB see intrinsics.h */ -/* intrinsic __PKHBT see intrinsics.h */ -/* intrinsic __PKHTB see intrinsics.h */ - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __USAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SSAT16(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -#define __USAT16(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SMLALD(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -#define __SMLALDX(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SMLSLD(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -#define __SMLSLDX(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __SEL (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QADD(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) static __INLINE uint32_t __QSUB(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -#define __PKHBT(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ - __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ - __RES; \ - }) - -#define __PKHTB(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ - if (ARG3 == 0) \ - __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ - else \ - __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ - __RES; \ - }) - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -/* not yet supported */ -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - -#endif - -/*@} end of group CMSIS_SIMD_intrinsics */ - - -#endif /* __CORE_CM4_SIMD_H */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf568r/CMSIS/Include/core_cmFunc.h b/bsp/mb9bf568r/CMSIS/Include/core_cmFunc.h deleted file mode 100644 index 88819f9dd1..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/core_cmFunc.h +++ /dev/null @@ -1,609 +0,0 @@ -/**************************************************************************//** - * @file core_cmFunc.h - * @brief CMSIS Cortex-M Core Function Access Header File - * @version V2.10 - * @date 26. July 2011 - * - * @note - * Copyright (C) 2009-2011 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CMFUNC_H -#define __CORE_CMFUNC_H - - -/* ########################### Core Function Access ########################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - @{ - */ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -#if (__ARMCC_VERSION < 400677) - #error "Please use ARM Compiler Toolchain V4.0.677 or later!" -#endif - -/* intrinsic void __enable_irq(); */ -/* intrinsic void __disable_irq(); */ - -/** \brief Get Control Register - - This function returns the content of the Control Register. - - \return Control Register value - */ -static __INLINE uint32_t __get_CONTROL(void) -{ - register uint32_t __regControl __ASM("control"); - return(__regControl); -} - - -/** \brief Set Control Register - - This function writes the given value to the Control Register. - - \param [in] control Control Register value to set - */ -static __INLINE void __set_CONTROL(uint32_t control) -{ - register uint32_t __regControl __ASM("control"); - __regControl = control; -} - - -/** \brief Get ISPR Register - - This function returns the content of the ISPR Register. - - \return ISPR Register value - */ -static __INLINE uint32_t __get_IPSR(void) -{ - register uint32_t __regIPSR __ASM("ipsr"); - return(__regIPSR); -} - - -/** \brief Get APSR Register - - This function returns the content of the APSR Register. - - \return APSR Register value - */ -static __INLINE uint32_t __get_APSR(void) -{ - register uint32_t __regAPSR __ASM("apsr"); - return(__regAPSR); -} - - -/** \brief Get xPSR Register - - This function returns the content of the xPSR Register. - - \return xPSR Register value - */ -static __INLINE uint32_t __get_xPSR(void) -{ - register uint32_t __regXPSR __ASM("xpsr"); - return(__regXPSR); -} - - -/** \brief Get Process Stack Pointer - - This function returns the current value of the Process Stack Pointer (PSP). - - \return PSP Register value - */ -static __INLINE uint32_t __get_PSP(void) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - return(__regProcessStackPointer); -} - - -/** \brief Set Process Stack Pointer - - This function assigns the given value to the Process Stack Pointer (PSP). - - \param [in] topOfProcStack Process Stack Pointer value to set - */ -static __INLINE void __set_PSP(uint32_t topOfProcStack) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - __regProcessStackPointer = topOfProcStack; -} - - -/** \brief Get Main Stack Pointer - - This function returns the current value of the Main Stack Pointer (MSP). - - \return MSP Register value - */ -static __INLINE uint32_t __get_MSP(void) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - return(__regMainStackPointer); -} - - -/** \brief Set Main Stack Pointer - - This function assigns the given value to the Main Stack Pointer (MSP). - - \param [in] topOfMainStack Main Stack Pointer value to set - */ -static __INLINE void __set_MSP(uint32_t topOfMainStack) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - __regMainStackPointer = topOfMainStack; -} - - -/** \brief Get Priority Mask - - This function returns the current state of the priority mask bit from the Priority Mask Register. - - \return Priority Mask value - */ -static __INLINE uint32_t __get_PRIMASK(void) -{ - register uint32_t __regPriMask __ASM("primask"); - return(__regPriMask); -} - - -/** \brief Set Priority Mask - - This function assigns the given value to the Priority Mask Register. - - \param [in] priMask Priority Mask - */ -static __INLINE void __set_PRIMASK(uint32_t priMask) -{ - register uint32_t __regPriMask __ASM("primask"); - __regPriMask = (priMask); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Enable FIQ - - This function enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __enable_fault_irq __enable_fiq - - -/** \brief Disable FIQ - - This function disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __disable_fault_irq __disable_fiq - - -/** \brief Get Base Priority - - This function returns the current value of the Base Priority register. - - \return Base Priority register value - */ -static __INLINE uint32_t __get_BASEPRI(void) -{ - register uint32_t __regBasePri __ASM("basepri"); - return(__regBasePri); -} - - -/** \brief Set Base Priority - - This function assigns the given value to the Base Priority register. - - \param [in] basePri Base Priority value to set - */ -static __INLINE void __set_BASEPRI(uint32_t basePri) -{ - register uint32_t __regBasePri __ASM("basepri"); - __regBasePri = (basePri & 0xff); -} - - -/** \brief Get Fault Mask - - This function returns the current value of the Fault Mask register. - - \return Fault Mask register value - */ -static __INLINE uint32_t __get_FAULTMASK(void) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - return(__regFaultMask); -} - - -/** \brief Set Fault Mask - - This function assigns the given value to the Fault Mask register. - - \param [in] faultMask Fault Mask value to set - */ -static __INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - __regFaultMask = (faultMask & (uint32_t)1); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** \brief Get FPSCR - - This function returns the current value of the Floating Point Status/Control register. - - \return Floating Point Status/Control register value - */ -static __INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - register uint32_t __regfpscr __ASM("fpscr"); - return(__regfpscr); -#else - return(0); -#endif -} - - -/** \brief Set FPSCR - - This function assigns the given value to the Floating Point Status/Control register. - - \param [in] fpscr Floating Point Status/Control value to set - */ -static __INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - register uint32_t __regfpscr __ASM("fpscr"); - __regfpscr = (fpscr); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/** \brief Enable IRQ Interrupts - - This function enables IRQ interrupts by clearing the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) static __INLINE void __enable_irq(void) -{ - __ASM volatile ("cpsie i"); -} - - -/** \brief Disable IRQ Interrupts - - This function disables IRQ interrupts by setting the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) static __INLINE void __disable_irq(void) -{ - __ASM volatile ("cpsid i"); -} - - -/** \brief Get Control Register - - This function returns the content of the Control Register. - - \return Control Register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_CONTROL(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - - -/** \brief Set Control Register - - This function writes the given value to the Control Register. - - \param [in] control Control Register value to set - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) ); -} - - -/** \brief Get ISPR Register - - This function returns the content of the ISPR Register. - - \return ISPR Register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_IPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get APSR Register - - This function returns the content of the APSR Register. - - \return APSR Register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_APSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get xPSR Register - - This function returns the content of the xPSR Register. - - \return xPSR Register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_xPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get Process Stack Pointer - - This function returns the current value of the Process Stack Pointer (PSP). - - \return PSP Register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_PSP(void) -{ - register uint32_t result; - - __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); - return(result); -} - - -/** \brief Set Process Stack Pointer - - This function assigns the given value to the Process Stack Pointer (PSP). - - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) ); -} - - -/** \brief Get Main Stack Pointer - - This function returns the current value of the Main Stack Pointer (MSP). - - \return MSP Register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_MSP(void) -{ - register uint32_t result; - - __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); - return(result); -} - - -/** \brief Set Main Stack Pointer - - This function assigns the given value to the Main Stack Pointer (MSP). - - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) ); -} - - -/** \brief Get Priority Mask - - This function returns the current state of the priority mask bit from the Priority Mask Register. - - \return Priority Mask value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask" : "=r" (result) ); - return(result); -} - - -/** \brief Set Priority Mask - - This function assigns the given value to the Priority Mask Register. - - \param [in] priMask Priority Mask - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) ); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Enable FIQ - - This function enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) static __INLINE void __enable_fault_irq(void) -{ - __ASM volatile ("cpsie f"); -} - - -/** \brief Disable FIQ - - This function disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) static __INLINE void __disable_fault_irq(void) -{ - __ASM volatile ("cpsid f"); -} - - -/** \brief Get Base Priority - - This function returns the current value of the Base Priority register. - - \return Base Priority register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); - return(result); -} - - -/** \brief Set Base Priority - - This function assigns the given value to the Base Priority register. - - \param [in] basePri Base Priority value to set - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_BASEPRI(uint32_t value) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (value) ); -} - - -/** \brief Get Fault Mask - - This function returns the current value of the Fault Mask register. - - \return Fault Mask register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - - -/** \brief Set Fault Mask - - This function assigns the given value to the Fault Mask register. - - \param [in] faultMask Fault Mask value to set - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) ); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** \brief Get FPSCR - - This function returns the current value of the Floating Point Status/Control register. - - \return Floating Point Status/Control register value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - uint32_t result; - - __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - return(result); -#else - return(0); -#endif -} - - -/** \brief Set FPSCR - - This function assigns the given value to the Floating Point Status/Control register. - - \param [in] fpscr Floating Point Status/Control value to set - */ -__attribute__( ( always_inline ) ) static __INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) ); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all instrinsics, - * Including the CMSIS ones. - */ - -#endif - -/*@} end of CMSIS_Core_RegAccFunctions */ - - -#endif /* __CORE_CMFUNC_H */ diff --git a/bsp/mb9bf568r/CMSIS/Include/core_cmInstr.h b/bsp/mb9bf568r/CMSIS/Include/core_cmInstr.h deleted file mode 100644 index 78d2ef80ba..0000000000 --- a/bsp/mb9bf568r/CMSIS/Include/core_cmInstr.h +++ /dev/null @@ -1,585 +0,0 @@ -/**************************************************************************//** - * @file core_cmInstr.h - * @brief CMSIS Cortex-M Core Instruction Access Header File - * @version V2.10 - * @date 19. July 2011 - * - * @note - * Copyright (C) 2009-2011 ARM Limited. All rights reserved. - * - * @par - * ARM Limited (ARM) is supplying this software for use with Cortex-M - * processor based microcontrollers. This file can be freely distributed - * within development tools that are supporting such ARM based processors. - * - * @par - * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED - * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. - * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR - * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. - * - ******************************************************************************/ - -#ifndef __CORE_CMINSTR_H -#define __CORE_CMINSTR_H - - -/* ########################## Core Instruction Access ######################### */ -/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - Access to dedicated instructions - @{ -*/ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -#if (__ARMCC_VERSION < 400677) - #error "Please use ARM Compiler Toolchain V4.0.677 or later!" -#endif - - -/** \brief No Operation - - No Operation does nothing. This instruction can be used for code alignment purposes. - */ -#define __NOP __nop - - -/** \brief Wait For Interrupt - - Wait For Interrupt is a hint instruction that suspends execution - until one of a number of events occurs. - */ -#define __WFI __wfi - - -/** \brief Wait For Event - - Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -#define __WFE __wfe - - -/** \brief Send Event - - Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -#define __SEV __sev - - -/** \brief Instruction Synchronization Barrier - - Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or - memory, after the instruction has been completed. - */ -#define __ISB() __isb(0xF) - - -/** \brief Data Synchronization Barrier - - This function acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -#define __DSB() __dsb(0xF) - - -/** \brief Data Memory Barrier - - This function ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -#define __DMB() __dmb(0xF) - - -/** \brief Reverse byte order (32 bit) - - This function reverses the byte order in integer value. - - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV __rev - - -/** \brief Reverse byte order (16 bit) - - This function reverses the byte order in two unsigned short values. - - \param [in] value Value to reverse - \return Reversed value - */ -static __INLINE __ASM uint32_t __REV16(uint32_t value) -{ - rev16 r0, r0 - bx lr -} - - -/** \brief Reverse byte order in signed short value - - This function reverses the byte order in a signed short value with sign extension to integer. - - \param [in] value Value to reverse - \return Reversed value - */ -static __INLINE __ASM int32_t __REVSH(int32_t value) -{ - revsh r0, r0 - bx lr -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Reverse bit order of value - - This function reverses the bit order of the given value. - - \param [in] value Value to reverse - \return Reversed value - */ -#define __RBIT __rbit - - -/** \brief LDR Exclusive (8 bit) - - This function performs a exclusive LDR command for 8 bit value. - - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) - - -/** \brief LDR Exclusive (16 bit) - - This function performs a exclusive LDR command for 16 bit values. - - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) - - -/** \brief LDR Exclusive (32 bit) - - This function performs a exclusive LDR command for 32 bit values. - - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) - - -/** \brief STR Exclusive (8 bit) - - This function performs a exclusive STR command for 8 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXB(value, ptr) __strex(value, ptr) - - -/** \brief STR Exclusive (16 bit) - - This function performs a exclusive STR command for 16 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXH(value, ptr) __strex(value, ptr) - - -/** \brief STR Exclusive (32 bit) - - This function performs a exclusive STR command for 32 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXW(value, ptr) __strex(value, ptr) - - -/** \brief Remove the exclusive lock - - This function removes the exclusive lock which is created by LDREX. - - */ -#define __CLREX __clrex - - -/** \brief Signed Saturate - - This function saturates a signed value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT __ssat - - -/** \brief Unsigned Saturate - - This function saturates an unsigned value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT __usat - - -/** \brief Count leading zeros - - This function counts the number of leading zeros of a data value. - - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -#define __CLZ __clz - -#endif /* (__CORTEX_M >= 0x03) */ - - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/** \brief No Operation - - No Operation does nothing. This instruction can be used for code alignment purposes. - */ -__attribute__( ( always_inline ) ) static __INLINE void __NOP(void) -{ - __ASM volatile ("nop"); -} - - -/** \brief Wait For Interrupt - - Wait For Interrupt is a hint instruction that suspends execution - until one of a number of events occurs. - */ -__attribute__( ( always_inline ) ) static __INLINE void __WFI(void) -{ - __ASM volatile ("wfi"); -} - - -/** \brief Wait For Event - - Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -__attribute__( ( always_inline ) ) static __INLINE void __WFE(void) -{ - __ASM volatile ("wfe"); -} - - -/** \brief Send Event - - Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -__attribute__( ( always_inline ) ) static __INLINE void __SEV(void) -{ - __ASM volatile ("sev"); -} - - -/** \brief Instruction Synchronization Barrier - - Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or - memory, after the instruction has been completed. - */ -__attribute__( ( always_inline ) ) static __INLINE void __ISB(void) -{ - __ASM volatile ("isb"); -} - - -/** \brief Data Synchronization Barrier - - This function acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -__attribute__( ( always_inline ) ) static __INLINE void __DSB(void) -{ - __ASM volatile ("dsb"); -} - - -/** \brief Data Memory Barrier - - This function ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -__attribute__( ( always_inline ) ) static __INLINE void __DMB(void) -{ - __ASM volatile ("dmb"); -} - - -/** \brief Reverse byte order (32 bit) - - This function reverses the byte order in integer value. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __REV(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rev %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief Reverse byte order (16 bit) - - This function reverses the byte order in two unsigned short values. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __REV16(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rev16 %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief Reverse byte order in signed short value - - This function reverses the byte order in a signed short value with sign extension to integer. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) static __INLINE int32_t __REVSH(int32_t value) -{ - uint32_t result; - - __ASM volatile ("revsh %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Reverse bit order of value - - This function reverses the bit order of the given value. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __RBIT(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief LDR Exclusive (8 bit) - - This function performs a exclusive LDR command for 8 bit value. - - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__attribute__( ( always_inline ) ) static __INLINE uint8_t __LDREXB(volatile uint8_t *addr) -{ - uint8_t result; - - __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - - -/** \brief LDR Exclusive (16 bit) - - This function performs a exclusive LDR command for 16 bit values. - - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__attribute__( ( always_inline ) ) static __INLINE uint16_t __LDREXH(volatile uint16_t *addr) -{ - uint16_t result; - - __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - - -/** \brief LDR Exclusive (32 bit) - - This function performs a exclusive LDR command for 32 bit values. - - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __LDREXW(volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("ldrex %0, [%1]" : "=r" (result) : "r" (addr) ); - return(result); -} - - -/** \brief STR Exclusive (8 bit) - - This function performs a exclusive STR command for 8 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexb %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - -/** \brief STR Exclusive (16 bit) - - This function performs a exclusive STR command for 16 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexh %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - -/** \brief STR Exclusive (32 bit) - - This function performs a exclusive STR command for 32 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) static __INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("strex %0, %2, [%1]" : "=r" (result) : "r" (addr), "r" (value) ); - return(result); -} - - -/** \brief Remove the exclusive lock - - This function removes the exclusive lock which is created by LDREX. - - */ -__attribute__( ( always_inline ) ) static __INLINE void __CLREX(void) -{ - __ASM volatile ("clrex"); -} - - -/** \brief Signed Saturate - - This function saturates a signed value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** \brief Unsigned Saturate - - This function saturates an unsigned value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** \brief Count leading zeros - - This function counts the number of leading zeros of a data value. - - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -__attribute__( ( always_inline ) ) static __INLINE uint8_t __CLZ(uint32_t value) -{ - uint8_t result; - - __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all intrinsics, - * Including the CMSIS ones. - */ - -#endif - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - -#endif /* __CORE_CMINSTR_H */ diff --git a/bsp/mb9bf568r/CMSIS/SConscript b/bsp/mb9bf568r/CMSIS/SConscript deleted file mode 100644 index 6ab907fca5..0000000000 --- a/bsp/mb9bf568r/CMSIS/SConscript +++ /dev/null @@ -1,19 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = GetCurrentDir() -src = Glob('DeviceSupport/*.c') - -CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport'] - -# add for startup script -if rtconfig.CROSS_TOOL == 'keil': - src += ['DeviceSupport/arm/startup_mb9bf56xr.s'] - -if rtconfig.CROSS_TOOL == 'gcc': - src += ['DeviceSupport/gcc/startup_mb9bf56xr.S'] - -group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf568r/SConscript b/bsp/mb9bf568r/SConscript deleted file mode 100644 index fe0ae941ae..0000000000 --- a/bsp/mb9bf568r/SConscript +++ /dev/null @@ -1,14 +0,0 @@ -# for module compiling -import os -Import('RTT_ROOT') - -cwd = str(Dir('#')) -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/mb9bf568r/SConstruct b/bsp/mb9bf568r/SConstruct deleted file mode 100644 index 1725b1f69c..0000000000 --- a/bsp/mb9bf568r/SConstruct +++ /dev/null @@ -1,36 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread-fm4.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - -if rtconfig.PLATFORM == 'iar': - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/mb9bf568r/applications/SConscript b/bsp/mb9bf568r/applications/SConscript deleted file mode 100644 index 01eb940dfb..0000000000 --- a/bsp/mb9bf568r/applications/SConscript +++ /dev/null @@ -1,11 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf568r/applications/application.c b/bsp/mb9bf568r/applications/application.c deleted file mode 100644 index 12199175b2..0000000000 --- a/bsp/mb9bf568r/applications/application.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-05-24 Bernard the first version - */ - -/** - * @addtogroup FM4 - */ -/*@{*/ - -#include -#include "board.h" - -void rt_init_thread_entry(void *parameter) -{ -#ifdef RT_USING_COMPONENTS_INIT - /* initialization RT-Thread Components */ - rt_components_init(); -#endif - - - //finsh_system_init(); -#if !defined(RT_USING_POSIX_STDIO) && defined(RT_USING_DEVICE) - finsh_set_device(RT_CONSOLE_DEVICE_NAME); -#endif - - /**< init led device */ - { - extern void rt_led_hw_init(void); - rt_led_hw_init(); - } - -} - -int rt_application_init() -{ - rt_thread_t tid; - - tid = rt_thread_create("init", - rt_init_thread_entry, RT_NULL, - 2048, 8, 20); - if (tid != RT_NULL) rt_thread_startup(tid); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf568r/applications/startup.c b/bsp/mb9bf568r/applications/startup.c deleted file mode 100644 index 263bd20a28..0000000000 --- a/bsp/mb9bf568r/applications/startup.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" - -/** - * @addtogroup FM4 - */ - -/*@{*/ - -extern int rt_application_init(void); - -#ifdef __CC_ARM -extern int Image$$RW_IRAM1$$ZI$$Limit; -#elif __ICCARM__ -#pragma section="HEAP" -#else -extern int __bss_end; -#endif - -/** - * This function will startup RT-Thread RTOS. - */ -void rtthread_startup(void) -{ - /* init board */ - rt_hw_board_init(); - - /* show version */ - rt_show_version(); - - /* init timer system */ - rt_system_timer_init(); - -#ifdef RT_USING_HEAP -#ifdef __CC_ARM - rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM4_SRAM_END); -#elif __ICCARM__ - rt_system_heap_init(__segment_end("HEAP"), (void*)FM4_SRAM_END); -#else - /* init memory system */ - rt_system_heap_init((void*)&__bss_end, (void*)FM4_SRAM_END); -#endif -#endif - - /* init scheduler system */ - rt_system_scheduler_init(); - - /* init timer thread */ - rt_system_timer_thread_init(); - - /* init application */ - rt_application_init(); - - /* init idle thread */ - rt_thread_idle_init(); - - /* start scheduler */ - rt_system_scheduler_start(); - - /* never reach here */ - return ; -} - -int main(void) -{ - /* disable interrupt first */ - rt_hw_interrupt_disable(); - - /* startup RT-Thread RTOS */ - rtthread_startup(); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf568r/drivers/SConscript b/bsp/mb9bf568r/drivers/SConscript deleted file mode 100644 index 5bbef48785..0000000000 --- a/bsp/mb9bf568r/drivers/SConscript +++ /dev/null @@ -1,11 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf568r/drivers/board.c b/bsp/mb9bf568r/drivers/board.c deleted file mode 100644 index bd44ad80b1..0000000000 --- a/bsp/mb9bf568r/drivers/board.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" - -#include "serial.h" - -/** - * @addtogroup FM4 - */ - -/*@{*/ - -/** - * This is the timer interrupt service routine. - * - */ -void SysTick_Handler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - - rt_tick_increase(); - - /* leave interrupt */ - rt_interrupt_leave(); -} - -/** - * This fucntion returns milliseconds since system passed - */ -rt_uint32_t rt_hw_tick_get_millisecond(void) -{ - rt_tick_t tick; - rt_uint32_t value; - -#define TICK_MS (1000/RT_TICK_PER_SECOND) - - tick = rt_tick_get(); - value = tick * TICK_MS + (SysTick->LOAD - SysTick->VAL) * TICK_MS / SysTick->LOAD; - - return value; -} - -/** - * This fucntion returns microseconds since system passed - */ -rt_uint32_t rt_hw_tick_get_microsecond(void) -{ - rt_tick_t tick; - rt_uint32_t value; - -#define TICK_US (1000000/RT_TICK_PER_SECOND) - - tick = rt_tick_get(); - value = tick * TICK_US + (SysTick->LOAD - SysTick->VAL) * TICK_US / SysTick->LOAD; - - return value; -} - -/** -* This function will initial FM3 Easy Kit board. - */ -void rt_hw_board_init(void) -{ - /* disable all analog input. */ - FM4_GPIO->ADE = 0x00u; - - /* init systick */ - SysTick_Config(SystemCoreClock/RT_TICK_PER_SECOND); - - /* initialize UART device */ - rt_hw_serial_init(); - /* set console as UART device */ - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); - -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif -} - -/*@}*/ diff --git a/bsp/mb9bf568r/drivers/board.h b/bsp/mb9bf568r/drivers/board.h deleted file mode 100644 index ed258f82a0..0000000000 --- a/bsp/mb9bf568r/drivers/board.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2009-09-22 Bernard add board.h to this bsp - * 2011-03-04 lgnq add board.h to FM3 bsp - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - - -#include -#include -#include - -#include "serial.h" - - -#define FM4_SRAM_SIZE 128 -#define FM4_SRAM_END (0x1FFF0000 + FM4_SRAM_SIZE * 1024) - -/* RT_USING_UART */ -#define RT_USING_UART0 - -#define RT_UART_RX_BUFFER_SIZE 128 - -void rt_hw_board_init(void); -rt_uint32_t rt_hw_tick_get_millisecond(void); -rt_uint32_t rt_hw_tick_get_microsecond(void); - -#endif diff --git a/bsp/mb9bf568r/drivers/led.c b/bsp/mb9bf568r/drivers/led.c deleted file mode 100644 index db80b56fd0..0000000000 --- a/bsp/mb9bf568r/drivers/led.c +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ -#include -#include "board.h" - -#define RT_DEVICE_CTRL_RTC_GET_COUNT 0x81 /**< get count */ - -#define LED_NUM 3 -struct fm4_gpio_ctrl -{ - uint32_t led_num; - volatile uint32_t * PDOR; - volatile uint32_t * PDIR; -}; - -struct fm4_led -{ - /* inherit from rt_device */ - struct rt_device parent; - - struct fm4_gpio_ctrl fm4_gpio_ctrl[LED_NUM]; -}; - -static struct fm4_led fm4_led; - -static rt_err_t rt_led_init (rt_device_t dev) -{ - uint32_t i; - - /* led0-1-2 : P27-P38-PE0 */ - FM4_GPIO->PFR2 &= ~((1<<7) ); /* set P27 fuction is GPIO. */ - FM4_GPIO->DDR2 |= (1<<7) ; /* set P27 output. */ - FM4_GPIO->PFR3 &= ~((1<<8) ); /* set P38 fuction is GPIO. */ - FM4_GPIO->DDR3 |= (1<<8) ; /* set P38 output. */ - FM4_GPIO->PFRE &= ~((1<<0) ); /* set PE0 fuction is GPIO. */ - FM4_GPIO->DDRE |= (1<<0) ; /* set PE0 output. */ - - /* LED0 */ - i = 0; - fm4_led.fm4_gpio_ctrl[i].led_num = 7; - fm4_led.fm4_gpio_ctrl[i].PDOR = &FM4_GPIO->PDOR2; - fm4_led.fm4_gpio_ctrl[i].PDIR = &FM4_GPIO->PDIR2; - - /* LED1 */ - i++; - fm4_led.fm4_gpio_ctrl[i].led_num = 8; - fm4_led.fm4_gpio_ctrl[i].PDOR = &FM4_GPIO->PDOR3; - fm4_led.fm4_gpio_ctrl[i].PDIR = &FM4_GPIO->PDIR3; - - /* LED2 */ - i++; - fm4_led.fm4_gpio_ctrl[i].led_num = 0; - fm4_led.fm4_gpio_ctrl[i].PDOR = &FM4_GPIO->PDORE; - fm4_led.fm4_gpio_ctrl[i].PDIR = &FM4_GPIO->PDIRE; - - return RT_EOK; -} - -static rt_err_t rt_led_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -static rt_err_t rt_led_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t rt_led_read (rt_device_t dev, rt_off_t pos, void* buffer, - rt_size_t size) -{ - rt_ubase_t index = 0; - rt_ubase_t nr = size; - rt_uint8_t * value = buffer; - - RT_ASSERT(dev == &fm4_led.parent); - RT_ASSERT((pos+size) <= LED_NUM ); - - for(index=0; index -void led(rt_uint32_t led, rt_uint32_t value) -{ - rt_uint8_t led_value = value; - rt_led_write(&fm4_led.parent, led, &led_value, 1); -} -FINSH_FUNCTION_EXPORT(led, e.g:led(0,0)/led(0,1).) -#endif diff --git a/bsp/mb9bf568r/drivers/mcu.h b/bsp/mb9bf568r/drivers/mcu.h deleted file mode 100644 index 5717ff37cc..0000000000 --- a/bsp/mb9bf568r/drivers/mcu.h +++ /dev/null @@ -1,65 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/** - ****************************************************************************** - ** \file mcu.h - ** - ** Header File for device dependent includes - ** - ** History: - ** 2011-05-19 V1.00 MWi first version - ** - ******************************************************************************/ - -#define PDL_INT_TYPE_C 1 -#define PDL_INT_TYPE_A 2 - -#define PDL_MCU_INT_TYPE PDL_INT_TYPE_A - -/** - ****************************************************************************** - ** \brief MCU header file include - ** - ******************************************************************************/ -#ifndef _MB9B560R_H_ - #include "mb9b560r.h" -#endif - -/** - ****************************************************************************** - ** \brief MCU system start-up header file include - ** - ******************************************************************************/ -#ifndef _SYSTEM_MB9ABXXX_H_ - #include "system_mb9bf56xr.h" -#endif diff --git a/bsp/mb9bf568r/drivers/serial.c b/bsp/mb9bf568r/drivers/serial.c deleted file mode 100644 index 6c3a132216..0000000000 --- a/bsp/mb9bf568r/drivers/serial.c +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2006-03-13 Bernard first version - * 2011-05-15 lgnq modified according bernard's implementaion. - */ - -#include - -#include "serial.h" - -/** - * @addtogroup FM4 MB9BF568R - */ -/*@{*/ - -/* RT-Thread Device Interface */ -/** - * This function initializes serial - */ -static rt_err_t rt_serial_init (rt_device_t dev) -{ - struct serial_device* uart = (struct serial_device*) dev->user_data; - - if (!(dev->flag & RT_DEVICE_FLAG_ACTIVATED)) - { - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - rt_memset(uart->int_rx->rx_buffer, 0, - sizeof(uart->int_rx->rx_buffer)); - uart->int_rx->read_index = uart->int_rx->save_index = 0; - } - - if (dev->flag & RT_DEVICE_FLAG_INT_TX) - { - rt_memset(uart->int_tx->tx_buffer, 0, - sizeof(uart->int_tx->tx_buffer)); - uart->int_tx->write_index = uart->int_tx->save_index = 0; - } - - dev->flag |= RT_DEVICE_FLAG_ACTIVATED; - } - - return RT_EOK; -} - -/* save a char to serial buffer */ -static void rt_serial_savechar(struct serial_device* uart, char ch) -{ - rt_base_t level; - - /* disable interrupt */ - level = rt_hw_interrupt_disable(); - - uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; - uart->int_rx->save_index ++; - if (uart->int_rx->save_index >= UART_RX_BUFFER_SIZE) - uart->int_rx->save_index = 0; - - /* if the next position is read index, discard this 'read char' */ - if (uart->int_rx->save_index == uart->int_rx->read_index) - { - uart->int_rx->read_index ++; - if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) - uart->int_rx->read_index = 0; - } - - /* enable interrupt */ - rt_hw_interrupt_enable(level); -} - -static rt_err_t rt_serial_open(rt_device_t dev, rt_uint16_t oflag) -{ - struct serial_device* uart; - - RT_ASSERT(dev != RT_NULL); - uart = (struct serial_device*) dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - /* enable interrupt */ - UART_ENABLE_IRQ(uart->rx_irq); - } - - return RT_EOK; -} - -static rt_err_t rt_serial_close(rt_device_t dev) -{ - struct serial_device* uart; - - RT_ASSERT(dev != RT_NULL); - uart = (struct serial_device*) dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - /* disable interrupt */ - UART_DISABLE_IRQ(uart->rx_irq); - } - - return RT_EOK; -} - -static rt_size_t rt_serial_read (rt_device_t dev, rt_off_t pos, void* buffer, - rt_size_t size) -{ - rt_uint8_t* ptr; - rt_err_t err_code; - struct serial_device* uart; - - ptr = buffer; - err_code = RT_EOK; - uart = (struct serial_device*)dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - rt_base_t level; - - /* interrupt mode Rx */ - while (size) - { - if (uart->int_rx->read_index != uart->int_rx->save_index) - { - *ptr++ = uart->int_rx->rx_buffer[uart->int_rx->read_index]; - size --; - - /* disable interrupt */ - level = rt_hw_interrupt_disable(); - - uart->int_rx->read_index ++; - if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) - uart->int_rx->read_index = 0; - - /* enable interrupt */ - rt_hw_interrupt_enable(level); - } - else - { - /* set error code */ - err_code = -RT_EEMPTY; - break; - } - } - } - else - { - /* polling mode */ - while ((rt_uint32_t)ptr - (rt_uint32_t)buffer < size) - { - while (uart->uart_device->SSR & SSR_RDRF) - { - *ptr = uart->uart_device->RDR & 0xff; - ptr ++; - } - } - } - - /* set error code */ - rt_set_errno(err_code); - return (rt_uint32_t)ptr - (rt_uint32_t)buffer; -} - -static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, - const void* buffer, rt_size_t size) -{ - rt_uint8_t* ptr; - rt_err_t err_code; - struct serial_device* uart; - - err_code = RT_EOK; - ptr = (rt_uint8_t*)buffer; - uart = (struct serial_device*)dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_TX) - { - /* interrupt mode Tx */ - while (uart->int_tx->save_index != uart->int_tx->write_index) - { - /* save on tx buffer */ - uart->int_tx->tx_buffer[uart->int_tx->save_index] = *ptr++; - - -- size; - - /* move to next position */ - uart->int_tx->save_index ++; - - /* wrap save index */ - if (uart->int_tx->save_index >= UART_TX_BUFFER_SIZE) - uart->int_tx->save_index = 0; - } - - /* set error code */ - if (size > 0) - err_code = -RT_EFULL; - } - else - { - /* polling mode */ - while (size) - { - /* - * to be polite with serial console add a line feed - * to the carriage return character - */ - if (*ptr == '\n' && (dev->flag & RT_DEVICE_FLAG_STREAM)) - { - while (!(uart->uart_device->SSR & SSR_TDRE)); - uart->uart_device->TDR = '\r'; - } - - while (!(uart->uart_device->SSR & SSR_TDRE)); - uart->uart_device->TDR = (*ptr & 0x1FF); - - ++ptr; - --size; - } - } - - /* set error code */ - rt_set_errno(err_code); - - return (rt_uint32_t)ptr - (rt_uint32_t)buffer; -} - -static rt_err_t rt_serial_control (rt_device_t dev, int cmd, void *args) -{ - RT_ASSERT(dev != RT_NULL); - - switch (cmd) - { - case RT_DEVICE_CTRL_SUSPEND: - /* suspend device */ - dev->flag |= RT_DEVICE_FLAG_SUSPENDED; - break; - - case RT_DEVICE_CTRL_RESUME: - /* resume device */ - dev->flag &= ~RT_DEVICE_FLAG_SUSPENDED; - break; - } - - return RT_EOK; -} - -/* - * serial register - */ -rt_err_t rt_hw_serial_register(rt_device_t device, const char* name, - rt_uint32_t flag, struct serial_device *serial) -{ - RT_ASSERT(device != RT_NULL); - - device->type = RT_Device_Class_Char; - device->rx_indicate = RT_NULL; - device->tx_complete = RT_NULL; - device->init = rt_serial_init; - device->open = rt_serial_open; - device->close = rt_serial_close; - device->read = rt_serial_read; - device->write = rt_serial_write; - device->control = rt_serial_control; - device->user_data = serial; - - /* register a character device */ - return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR | flag); -} - -/* ISR for serial interrupt */ -void rt_hw_serial_isr(rt_device_t device) -{ - struct serial_device* uart = (struct serial_device*) device->user_data; - - /* interrupt mode receive */ - RT_ASSERT(device->flag & RT_DEVICE_FLAG_INT_RX); - - /* save on rx buffer */ - while (uart->uart_device->SSR & SSR_RDRF) - { - rt_serial_savechar(uart, uart->uart_device->RDR & 0xff); - } - - /* invoke callback */ - if (device->rx_indicate != RT_NULL) - { - rt_size_t rx_length; - - /* get rx length */ - rx_length = uart->int_rx->read_index > uart->int_rx->save_index ? - UART_RX_BUFFER_SIZE - uart->int_rx->read_index + uart->int_rx->save_index : - uart->int_rx->save_index - uart->int_rx->read_index; - - device->rx_indicate(device, rx_length); - } -} - -#ifdef RT_USING_UART0 -/* UART0 device driver structure */ -#define UART0 FM4_MFS0 -struct serial_int_rx uart0_int_rx; -struct serial_device uart0 = -{ - UART0, - MFS0_RX_IRQn, - MFS0_TX_IRQn, - &uart0_int_rx, - RT_NULL -}; -struct rt_device uart0_device; - -void MFS0_RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&uart0_device); - /* leave interrupt */ - rt_interrupt_leave(); -} - - -#endif /**< #ifdef RT_USING_UART0 */ - - -void rt_hw_serial_init(void) -{ - uint32_t APB2_clock = (SystemCoreClock >> (APBC2_PSR_Val & 0x03)); - -#ifdef RT_USING_UART0 - // Initialize ports for MFS0 - FM4_GPIO->PFR2 = 0x06u; // P21>SIN0_0, P22>SOT0_0 - FM4_GPIO->EPFR07 &= 0xFFFFFF0Ful; - FM4_GPIO->EPFR07 |= 0x00000040ul; - - // Initialize MFS to UART asynchronous mode - - uart0.uart_device->SMR = SMR_MD_UART | SMR_SOE;; - uart0.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ - uart0.uart_device->ESCR = ESCR_DATABITS_8; - uart0.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; - - /* register UART0 device */ - rt_hw_serial_register(&uart0_device, - "uart0", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart0); - - -#endif /**< #ifdef RT_USING_UART0 */ - -} - -/*@}*/ diff --git a/bsp/mb9bf568r/drivers/serial.h b/bsp/mb9bf568r/drivers/serial.h deleted file mode 100644 index 776b2a3877..0000000000 --- a/bsp/mb9bf568r/drivers/serial.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2006-03-13 Bernard first version - * 2011-05-15 lgnq modified according bernard's implementaion. - */ - -#ifndef __RT_HW_SERIAL_H__ -#define __RT_HW_SERIAL_H__ - -#include -#include - -#include "board.h" - -#define SMR_SOE 0x01U -#define SMR_BDS 0x04U -#define SMR_SBL 0x08U -#define SMR_WUCR 0x10U -#define SMR_MD_UART 0x00U -#define SMR_MD_UART_MP 0x20U -#define SMR_MD_SIO 0x40U -#define SMR_MD_LIN 0x60U -#define SMR_MD_I2C 0x80U - -#define SCR_TXE 0x01U -#define SCR_RXE 0x02U -#define SCR_TBIE 0x04U -#define SCR_TIE 0x08U -#define SCR_RIE 0x10U -#define SCR_UPGL 0x80U - -#define SSR_TBI 0x01U -#define SSR_TDRE 0x02U -#define SSR_RDRF 0x04U -#define SSR_ORE 0x08U -#define SSR_FRE 0x10U -#define SSR_PE 0x20U -#define SSR_REC 0x80U - -#define ESCR_P 0x08U -#define ESCR_PEN 0x10U -#define ESCR_INV 0x20U -#define ESCR_ESBL 0x40U -#define ESCR_FLWEN 0x80U -#define ESCR_DATABITS_8 0x00U -#define ESCR_DATABITS_5 0x01U -#define ESCR_DATABITS_6 0x02U -#define ESCR_DATABITS_7 0x03U -#define ESCR_DATABITS_9 0x04U - -#define BPS 115200 /* serial baudrate */ - -#define UART_RX_BUFFER_SIZE 128 -#define UART_TX_BUFFER_SIZE 128 - -struct serial_int_rx -{ - rt_uint8_t rx_buffer[UART_RX_BUFFER_SIZE]; - rt_uint32_t read_index, save_index; -}; - -struct serial_int_tx -{ - rt_uint8_t tx_buffer[UART_TX_BUFFER_SIZE]; - rt_uint32_t write_index, save_index; -}; - -/* - * Enable/DISABLE Interrupt Controller - */ -/* deviation from MISRA-C:2004 Rule 19.7 */ -#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) -#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) - -struct serial_device -{ - FM4_MFS_TypeDef* uart_device; - /* irq number */ - IRQn_Type rx_irq; - IRQn_Type tx_irq; - - /* rx structure */ - struct serial_int_rx* int_rx; - /* tx structure */ - struct serial_int_tx* int_tx; -}; - -void rt_hw_serial_isr(rt_device_t device); -void rt_hw_serial_init(void); - -#endif diff --git a/bsp/mb9bf568r/project.uvopt b/bsp/mb9bf568r/project.uvopt deleted file mode 100644 index c7c71b2bbf..0000000000 --- a/bsp/mb9bf568r/project.uvopt +++ /dev/null @@ -1,172 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - - - - 0 - 0 - - - - rtthread-fm4 - 0x4 - ARM-ADS - - 4000000 - - 1 - 1 - 1 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\build\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 0 - 0 - 1 - - 255 - - SARMCM3.DLL - - DCM.DLL - -pCM4 - SARMCM3.DLL - - TCM.DLL - -pCM4 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 14 - - - - - - - - - - - BIN\CMSIS_AGDI.dll - - - - 0 - CMSIS_AGDI - -X"CMSIS-DAP" -U -O175 -S0 -C0 -P00 -N00("ARM CoreSight JTAG-DP") -D00(4BA00477) -L00(0) -FO15 -FD20000000 -FC8000 -FN2 -FF0MB9B560_1024 -FS00 -FL0100000 -FF1MB9B560_WORK32 -FS1200C0000 -FL18000 - - - - - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 0 - - - - - - - - Source Group 1 - 0 - 0 - 0 - 0 - - -
diff --git a/bsp/mb9bf568r/project.uvproj b/bsp/mb9bf568r/project.uvproj deleted file mode 100644 index 2518cee715..0000000000 --- a/bsp/mb9bf568r/project.uvproj +++ /dev/null @@ -1,629 +0,0 @@ - - - 1.1 -
### uVision Project, (C) Keil Software
- - - rtthread-fm4 - 0x4 - ARM-ADS - - - Cortex-M4 FPU - ARM - CLOCK(12000000) CPUTYPE("Cortex-M4") ESEL ELITTLE FPU2 - - - - 5237 - - - - - - - - - - - - 0 - - - - - - - 0 - 0 - 0 - 0 - 1 - - .\build\ - template_mb9b56xx - 1 - 0 - 0 - 1 - 1 - .\build\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - - DCM.DLL - -pCM4 - SARMCM3.DLL - - TCM.DLL - -pCM4 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - - 0 - 14 - - - - - - - - - - - - - - BIN\CMSIS_AGDI.dll - - - - - 1 - 0 - 0 - 0 - 1 - 4105 - - BIN\CMSIS_AGDI.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - "Cortex-M4" - - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 8 - 0 - 1 - 0 - 0 - 5 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 1 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x100000 - - - 1 - 0x200c0000 - 0x8000 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x1fff0000 - 0x10000 - - - 0 - 0x20038000 - 0x10000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - applications;.;CMSIS\Include;CMSIS\DeviceSupport;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 1 - 0 - 0x00000000 - 0x00000000 - - - - - - - - - - - - Applications - - - startup.c - 1 - applications\startup.c - - - - - application.c - 1 - applications\application.c - - - - - CMSIS - - - startup_mb9bf56xr.s - 2 - CMSIS\DeviceSupport\arm\startup_mb9bf56xr.s - - - - - system_mb9abxxx.c - 1 - CMSIS\DeviceSupport\system_mb9abxxx.c - - - - - Compiler - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - - - - time.c - 1 - ..\..\components\libc\compilers\common\time.c - - - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - - - - CPU - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - - - - showmem.c - 1 - ..\..\libcpu\arm\common\showmem.c - - - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m4\context_rvds.S - - - - - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m4\cpuport.c - - - - - Drivers - - - serial.c - 1 - drivers\serial.c - - - - - board.c - 1 - drivers\board.c - - - - - led.c - 1 - drivers\led.c - - - - - Finsh - - - shell.c - 1 - ..\..\components\finsh\shell.c - - - - - msh.c - 1 - ..\..\components\finsh\msh.c - - - - - Kernel - - - object.c - 1 - ..\..\src\object.c - - - - - clock.c - 1 - ..\..\src\clock.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - components.c - 1 - ..\..\src\components.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - device.c - 1 - ..\..\src\device.c - - - - - - -
diff --git a/bsp/mb9bf568r/rtconfig.h b/bsp/mb9bf568r/rtconfig.h deleted file mode 100644 index 8191fc8e65..0000000000 --- a/bsp/mb9bf568r/rtconfig.h +++ /dev/null @@ -1,75 +0,0 @@ -/* RT-Thread config file */ -#ifndef __RTTHREAD_CFG_H__ -#define __RTTHREAD_CFG_H__ - -/* RT_NAME_MAX*/ -#define RT_NAME_MAX 8 - -/* RT_ALIGN_SIZE*/ -#define RT_ALIGN_SIZE 4 - -/* PRIORITY_MAX */ -#define RT_THREAD_PRIORITY_MAX 64 - -/* Tick per Second */ -#define RT_TICK_PER_SECOND 100 - -/* SECTION: RT_DEBUG */ -/* Thread Debug */ -#define RT_DEBUG -#define RT_DEBUG_COLOR -#define RT_USING_OVERFLOW_CHECK - -/* Using Hook */ -#define RT_USING_HOOK - -/* SECTION: IPC */ -/* Using Semaphore */ -#define RT_USING_SEMAPHORE - -/* Using Mutex */ -#define RT_USING_MUTEX - -/* Using Event */ -#define RT_USING_EVENT - -/* Using MailBox */ -#define RT_USING_MAILBOX - -/* Using Message Queue */ -#define RT_USING_MESSAGEQUEUE - -/* SECTION: Memory Management */ -/* Using Memory Pool Management*/ -#define RT_USING_MEMPOOL - -/* Using Dynamic Heap Management */ -#define RT_USING_HEAP - -/* Using Small MM */ -#define RT_USING_SMALL_MEM - -// -#define RT_USING_COMPONENTS_INIT - -/* SECTION: Device System */ -/* Using Device System */ -#define RT_USING_DEVICE - -/* SECTION: Console options */ -/* #define RT_TINY_SIZE */ -#define RT_USING_CONSOLE -/* the buffer size of console */ -#define RT_CONSOLEBUF_SIZE 128 -// -#define RT_CONSOLE_DEVICE_NAME "uart0" - -/* SECTION: finsh, a C-Express shell */ -/* Using FinSH as Shell*/ -#define RT_USING_FINSH -/* Using symbol table */ -#define FINSH_USING_SYMTAB -#define FINSH_USING_DESCRIPTION -#define FINSH_THREAD_STACK_SIZE 1024 - -#endif diff --git a/bsp/mb9bf568r/rtconfig.py b/bsp/mb9bf568r/rtconfig.py deleted file mode 100644 index abee5014b2..0000000000 --- a/bsp/mb9bf568r/rtconfig.py +++ /dev/null @@ -1,86 +0,0 @@ -import os - -# toolchains options -ARCH='arm' -CPU='cortex-m4' -CROSS_TOOL='keil' -BOARD_NAME = 'mb9bf568r' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = r'D:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin' -elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = 'C:/Keil_MDK_471' -elif CROSS_TOOL == 'iar': - print('================ERROR============================') - print('Not support iar yet!') - print('=================================================') - exit(0) - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -if PLATFORM == 'gcc': - # toolchains - PREFIX = 'arm-none-eabi-' - CC = PREFIX + 'gcc' - CXX = PREFIX + 'g++' - AS = PREFIX + 'gcc' - AR = PREFIX + 'ar' - LINK = PREFIX + 'g++' - TARGET_EXT = 'elf' - SIZE = PREFIX + 'size' - OBJDUMP = PREFIX + 'objdump' - OBJCPY = PREFIX + 'objcopy' - - DEVICE = ' -mcpu=cortex-m4 -mthumb' - CFLAGS = DEVICE - AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' - LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-' + BOARD_NAME + '.map,-cref,-u,Reset_Handler -T rtthread-' + BOARD_NAME + '.ld -nostartfiles' - - CPATH = '' - LPATH = '' - - if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' - else: - CFLAGS += ' -O2' - CXXFLAGS = CFLAGS - - POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' - -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - CXX = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --cpu Cortex-M4.fp' - CFLAGS = DEVICE + ' --apcs=interwork' - AFLAGS = DEVICE - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread_' + \ - BOARD_NAME + '.map --scatter rtthread-' + BOARD_NAME + '.sct' - - CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' - LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' - - EXEC_PATH += '/arm/bin40/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - CXXFLAGS = CFLAGS - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' diff --git a/bsp/mb9bf568r/rtthread-mb9bf568r.ld b/bsp/mb9bf568r/rtthread-mb9bf568r.ld deleted file mode 100644 index c6700b9535..0000000000 --- a/bsp/mb9bf568r/rtthread-mb9bf568r.ld +++ /dev/null @@ -1,221 +0,0 @@ -/* Linker script to configure memory regions - * - * Version:CodeSourcery Sourcery G++ Lite 2007q3-53 - * BugURL:https://support.codesourcery.com/GNUToolchain/ - * - * Copyright 2007 CodeSourcery. - * - * 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(_start) -SEARCH_DIR(.) - -MEMORY -{ - rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00100000 /* 1024k */ - ram (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 /* 64k */ -} - -/* These force the linker to search for particular symbols from - * the start of the link process and thus ensure the user's - * overrides are picked up - */ -EXTERN(__cs3_reset_cortex_m) -EXTERN(__cs3_interrupt_vector_cortex_m) -EXTERN(__cs3_start_c main __cs3_stack __cs3_stack_size __cs3_heap_end) - -PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram); -PROVIDE(__cs3_stack_size = __cs3_region_start_ram + __cs3_region_size_ram - _end); -PROVIDE(__cs3_heap_start = _end); -PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); - -SECTIONS -{ - .text : - { - CREATE_OBJECT_SYMBOLS - __cs3_region_start_rom = .; - *(.cs3.region-head.rom) - __cs3_interrupt_vector = __cs3_interrupt_vector_cortex_m; - *(.cs3.interrupt_vector) - /* Make sure we pulled in an interrupt vector. */ - ASSERT (. != __cs3_interrupt_vector_cortex_m, "No interrupt vector"); - *(.rom) - *(.rom.b) - - __cs3_reset = __cs3_reset_cortex_m; - *(.cs3.reset) - /* Make sure we pulled in some reset code. */ - ASSERT (. != __cs3_reset, "No reset code"); - - *(.text .text.* .gnu.linkonce.t.*) - *(.plt) - *(.gnu.warning) - *(.glue_7t) *(.glue_7) *(.vfp11_veneer) - - *(.rodata .rodata.* .gnu.linkonce.r.*) - - *(.ARM.extab* .gnu.linkonce.armextab.*) - *(.gcc_except_table) - *(.eh_frame_hdr) - *(.eh_frame) - - . = ALIGN(4); - KEEP(*(.init)) - - . = ALIGN(4); - __preinit_array_start = .; - KEEP (*(.preinit_array)) - __preinit_array_end = .; - - . = ALIGN(4); - __init_array_start = .; - KEEP (*(SORT(.init_array.*))) - KEEP (*(.init_array)) - __init_array_end = .; - - . = ALIGN(0x4); - KEEP (*crtbegin.o(.ctors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*crtend.o(.ctors)) - - . = ALIGN(4); - KEEP(*(.fini)) - - . = ALIGN(4); - __fini_array_start = .; - KEEP (*(.fini_array)) - KEEP (*(SORT(.fini_array.*))) - __fini_array_end = .; - - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*crtend.o(.dtors)) - - . = ALIGN(4); - __cs3_regions = .; - LONG (0) - LONG (__cs3_region_init_ram) - LONG (__cs3_region_start_ram) - LONG (__cs3_region_init_size_ram) - LONG (__cs3_region_zero_size_ram) - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - - } - - /* .ARM.exidx is sorted, so has to go in its own output section. */ - __exidx_start = .; - .ARM.exidx : - { - *(.ARM.exidx* .gnu.linkonce.armexidx.*) - } >rom - __exidx_end = .; - .text.align : - { - . = ALIGN(8); - _etext = .; - } >rom - __cs3_region_size_rom = LENGTH(rom); - __cs3_region_num = 1; - - .data : - { - __cs3_region_start_ram = .; - *(.cs3.region-head.ram) - KEEP(*(.jcr)) - *(.got.plt) *(.got) - *(.shdata) - *(.data .data.* .gnu.linkonce.d.*) - *(.ram) - . = ALIGN (8); - _edata = .; - } >ram AT>rom - - .bss : - { - *(.shbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - *(.ram.b) - . = ALIGN (8); - _end = .; - __end = .; - } >ram AT>rom - - .heap : - { - *(.heap) - } >ram - - __bss_end = .; - - .stack (__cs3_stack - __cs3_stack_size) : - { - *(.stack) - } >ram - - __cs3_region_init_ram = LOADADDR (.data); - __cs3_region_init_size_ram = _edata - __cs3_region_start_ram; - __cs3_region_zero_size_ram = _end - _edata; - __cs3_region_size_ram = LENGTH(ram); - __cs3_region_num = 1; - - .stab 0 (NOLOAD) : { *(.stab) } - .stabstr 0 (NOLOAD) : { *(.stabstr) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } - .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/bsp/mb9bf568r/rtthread-mb9bf568r.sct b/bsp/mb9bf568r/rtthread-mb9bf568r.sct deleted file mode 100644 index 5b025eb611..0000000000 --- a/bsp/mb9bf568r/rtthread-mb9bf568r.sct +++ /dev/null @@ -1,23 +0,0 @@ -; ************************************************************* -; *** Scatter-Loading Description File generated by uVision *** -; ************************************************************* - -LR_IROM1 0x00000000 0x00100000 { ; load region size_region - ER_IROM1 0x00000000 0x00100000 { ; load address = execution address - *.o (RESET, +First) - *(InRoot$$Sections) - .ANY (+RO) - } - RW_IRAM1 0x1FFF0000 0x00010000 { ; RW data - .ANY (+RW +ZI) - } - RW_IRAM2 0x20038000 0x00010000 { - .ANY (+RW +ZI) - } -} - -LR_IROM2 0x200C0000 0x00008000 { - ER_IROM2 0x200C0000 0x00008000 { ; load address = execution address - .ANY (+RO) - } -} diff --git a/bsp/mb9bf568r/template.uvopt b/bsp/mb9bf568r/template.uvopt deleted file mode 100644 index c7c71b2bbf..0000000000 --- a/bsp/mb9bf568r/template.uvopt +++ /dev/null @@ -1,172 +0,0 @@ - - - - 1.0 - -
### uVision Project, (C) Keil Software
- - - *.c - *.s*; *.src; *.a* - *.obj - *.lib - *.txt; *.h; *.inc - *.plm - *.cpp - - - - 0 - 0 - - - - rtthread-fm4 - 0x4 - ARM-ADS - - 4000000 - - 1 - 1 - 1 - 0 - - - 1 - 65535 - 0 - 0 - 0 - - - 79 - 66 - 8 - .\build\ - - - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - - - 0 - 0 - 1 - - 255 - - SARMCM3.DLL - - DCM.DLL - -pCM4 - SARMCM3.DLL - - TCM.DLL - -pCM4 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 14 - - - - - - - - - - - BIN\CMSIS_AGDI.dll - - - - 0 - CMSIS_AGDI - -X"CMSIS-DAP" -U -O175 -S0 -C0 -P00 -N00("ARM CoreSight JTAG-DP") -D00(4BA00477) -L00(0) -FO15 -FD20000000 -FC8000 -FN2 -FF0MB9B560_1024 -FS00 -FL0100000 -FF1MB9B560_WORK32 -FS1200C0000 -FL18000 - - - - - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - 0 - - - - - - - - Source Group 1 - 0 - 0 - 0 - 0 - - -
diff --git a/bsp/mb9bf568r/template.uvproj b/bsp/mb9bf568r/template.uvproj deleted file mode 100644 index b65281bbef..0000000000 --- a/bsp/mb9bf568r/template.uvproj +++ /dev/null @@ -1,398 +0,0 @@ - - - - 1.1 - -
### uVision Project, (C) Keil Software
- - - - rtthread-fm4 - 0x4 - ARM-ADS - - - Cortex-M4 FPU - ARM - CLOCK(12000000) CPUTYPE("Cortex-M4") ESEL ELITTLE FPU2 - - - - 5237 - - - - - - - - - - - - 0 - - - - - - - 0 - 0 - 0 - 0 - 1 - - .\build\ - template_mb9b56xx - 1 - 0 - 0 - 1 - 1 - .\build\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - - DCM.DLL - -pCM4 - SARMCM3.DLL - - TCM.DLL - -pCM4 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - - 0 - 14 - - - - - - - - - - - - - - BIN\CMSIS_AGDI.dll - - - - - 1 - 0 - 0 - 0 - 1 - 4105 - - BIN\CMSIS_AGDI.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - "Cortex-M4" - - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 8 - 0 - 1 - 0 - 0 - 5 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 1 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x100000 - - - 1 - 0x200c0000 - 0x8000 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x1fff0000 - 0x10000 - - - 0 - 0x20038000 - 0x10000 - - - - - - 1 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 1 - 0 - 0x00000000 - 0x00000000 - - - - - - - - - - - - Source Group 1 - - - - - -
diff --git a/bsp/mb9bf618s/CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf b/bsp/mb9bf618s/CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf deleted file mode 100644 index aabdddc5d9..0000000000 Binary files a/bsp/mb9bf618s/CMSIS/CMSIS END USER LICENCE AGREEMENT.pdf and /dev/null differ diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h deleted file mode 100644 index 374040f314..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610s.h +++ /dev/null @@ -1,29269 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/* */ -/* Header File for Device MB9BF618S */ -/* Version V1.00 */ -/* Date 2011-08-04 */ -/* */ -/************************************************************************/ - -#ifndef _MB9BF618S_H_ -#define _MB9BF618S_H_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/****************************************************************************** - * Configuration of the Cortex-M3 Processor and Core Peripherals - ******************************************************************************/ -#define __MPU_PRESENT 1 /* FM3 provide an MPU */ -#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ -#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ - - -/****************************************************************************** - * Interrupt Number Definition - ******************************************************************************/ -typedef enum IRQn -{ - NMI_IRQn = -14, /* 2 Non Maskable */ - HardFault_IRQn = -13, /* 3 Hard Fault */ - MemManage_IRQn = -12, /* 4 Memory Management */ - BusFault_IRQn = -11, /* 5 Bus Fault */ - UsageFault_IRQn = -10, /* 6 Usage Fault */ - SVC_IRQn = -5, /* 11 SV Call */ - DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ - PendSV_IRQn = -2, /* 14 Pend SV */ - SysTick_IRQn = -1, /* 15 System Tick */ - - CSV_IRQn = 0, /* Clock Super Visor */ - SWDT_IRQn = 1, /* Software Watchdog Timer */ - LVD_IRQn = 2, /* Low Voltage Detector */ - WFG_IRQn = 3, /* Wave Form Generator */ - EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ - EXINT8_31_IRQn = 5, /* External Interrupt Request ch.8 to ch.31 */ - DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ - MFS0RX_IRQn = 7, /* MultiFunction Serial Reception ch.0 */ - MFS0TX_IRQn = 8, /* MultiFunction Serial Transmission ch.0 */ - MFS1RX_IRQn = 9, /* MultiFunction Serial Reception ch.1 */ - MFS1TX_IRQn = 10, /* MultiFunction Serial Transmission ch.1 */ - MFS2RX_IRQn = 11, /* MultiFunction Serial Reception ch.2 */ - MFS2TX_IRQn = 12, /* MultiFunction Serial Transmission ch.2 */ - MFS3RX_IRQn = 13, /* MultiFunction Serial Reception ch.3 */ - MFS3TX_IRQn = 14, /* MultiFunction Serial Transmission ch.3 */ - MFS4RX_IRQn = 15, /* MultiFunction Serial Reception ch.4 */ - MFS4TX_IRQn = 16, /* MultiFunction Serial Transmission ch.4 */ - MFS5RX_IRQn = 17, /* MultiFunction Serial Reception ch.5 */ - MFS5TX_IRQn = 18, /* MultiFunction Serial Transmission ch.5 */ - MFS6RX_IRQn = 19, /* MultiFunction Serial Reception ch.6 */ - MFS6TX_IRQn = 20, /* MultiFunction Serial Transmission ch.6 */ - MFS7RX_IRQn = 21, /* MultiFunction Serial Reception ch.7 */ - MFS7TX_IRQn = 22, /* MultiFunction Serial Transmission ch.7 */ - PPG_IRQn = 23, /* PPG */ - OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ - ADC0_IRQn = 25, /* ADC0 */ - ADC1_IRQn = 26, /* ADC1 */ - ADC2_IRQn = 27, /* ADC2 */ - FRTIM_IRQn = 28, /* Free-run Timer */ - INCAP_IRQn = 29, /* Input Capture */ - OUTCOMP_IRQn = 30, /* Output Compare */ - BTIM0_7_IRQn = 31, /* Base Timer ch.0 to ch.7 */ - ETHER_MAC0_IRQn = 32, /* Ethernet MAC ch.0 */ - ETHER_MAC1_IRQn = 33, /* Ethernet MAC ch.1 */ - USB0F_IRQn = 34, /* USB Function ch.0 */ - USB0F_USB0H_IRQn = 35, /* USB Function ch.0 / USB Host ch.0 */ - USB1F_IRQn = 36, /* USB Function ch.1 */ - USB1F_USB1H_IRQn = 37, /* USB Function ch.1 / USB Host ch.1 */ - DMAC0_IRQn = 38, /* DMAC ch.0 */ - DMAC1_IRQn = 39, /* DMAC ch.1 */ - DMAC2_IRQn = 40, /* DMAC ch.2 */ - DMAC3_IRQn = 41, /* DMAC ch.3 */ - DMAC4_IRQn = 42, /* DMAC ch.4 */ - DMAC5_IRQn = 43, /* DMAC ch.5 */ - DMAC6_IRQn = 44, /* DMAC ch.6 */ - DMAC7_IRQn = 45, /* DMAC ch.7 */ - BTIM8_15_IRQn = 46 /* Base Timer ch.8 to ch.15 */ - /* Reserved = 47 */ -} IRQn_Type; - - -#include -#include "system_mb9bf61x.h" -#include - -#define SUCCESS 0 -#define ERROR -1 - -#ifndef NULL -#define NULL 0 -#endif - - -/******************************************************************************/ -/* Device Specific Peripheral Registers structures */ -/******************************************************************************/ - -#if defined ( __CC_ARM ) -#pragma anon_unions -#endif - -/****************************************************************************** - * Peripheral register bit fields - ******************************************************************************/ - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash_IF_MODULE register bit fields */ -typedef struct stc_flash_if_faszr_field -{ - __IO uint32_t ASZ0 : 1; - __IO uint32_t ASZ1 : 1; -} stc_flash_if_faszr_field_t; - -typedef struct stc_flash_if_frwtr_field -{ - __IO uint32_t RWT0 : 1; - __IO uint32_t RWT1 : 1; -} stc_flash_if_frwtr_field_t; - -typedef struct stc_flash_if_fstr_field -{ - __IO uint32_t RDY : 1; - __IO uint32_t HNG : 1; - __IO uint32_t EER : 1; -} stc_flash_if_fstr_field_t; - -typedef struct stc_flash_if_fsyndn_field -{ - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; -} stc_flash_if_fsyndn_field_t; - -typedef struct stc_flash_if_crtrmm_field -{ - __IO uint32_t TRMM0 : 1; - __IO uint32_t TRMM1 : 1; - __IO uint32_t TRMM2 : 1; - __IO uint32_t TRMM3 : 1; - __IO uint32_t TRMM4 : 1; - __IO uint32_t TRMM5 : 1; - __IO uint32_t TRMM6 : 1; - __IO uint32_t TRMM7 : 1; - __IO uint32_t TRMM8 : 1; - __IO uint32_t TRMM9 : 1; -} stc_flash_if_crtrmm_field_t; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock_Reset_MODULE register bit fields */ -typedef struct stc_crg_scm_ctl_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MOSCE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SOSCE : 1; - __IO uint8_t PLLE : 1; - __IO uint8_t RCS0 : 1; - __IO uint8_t RCS1 : 1; - __IO uint8_t RCS2 : 1; -} stc_crg_scm_ctl_field_t; - -typedef struct stc_crg_scm_str_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MORDY : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SORDY : 1; - __IO uint8_t PLRDY : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t RCM2 : 1; -} stc_crg_scm_str_field_t; - -typedef struct stc_crg_rst_str_field -{ - __IO uint16_t PONR : 1; - __IO uint16_t INITX : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SWDT : 1; - __IO uint16_t HWDT : 1; - __IO uint16_t CSVR : 1; - __IO uint16_t FCSR : 1; - __IO uint16_t SRST : 1; -} stc_crg_rst_str_field_t; - -typedef struct stc_crg_bsc_psr_field -{ - __IO uint8_t BSR0 : 1; - __IO uint8_t BSR1 : 1; - __IO uint8_t BSR2 : 1; -} stc_crg_bsc_psr_field_t; - -typedef struct stc_crg_apbc0_psr_field -{ - __IO uint8_t APBC00 : 1; - __IO uint8_t APBC01 : 1; -} stc_crg_apbc0_psr_field_t; - -typedef struct stc_crg_apbc1_psr_field -{ - __IO uint8_t APBC10 : 1; - __IO uint8_t APBC11 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC1RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC1EN : 1; -} stc_crg_apbc1_psr_field_t; - -typedef struct stc_crg_apbc2_psr_field -{ - __IO uint8_t APBC20 : 1; - __IO uint8_t APBC21 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC2RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC2EN : 1; -} stc_crg_apbc2_psr_field_t; - -typedef struct stc_crg_swc_psr_field -{ - __IO uint8_t SWDS0 : 1; - __IO uint8_t SWDS1 : 1; - uint8_t RESERVED1 : 5; - __IO uint8_t TESTB : 1; -} stc_crg_swc_psr_field_t; - -typedef struct stc_crg_ttc_psr_field -{ - __IO uint8_t TTC0 : 1; - __IO uint8_t TTC1 : 1; -} stc_crg_ttc_psr_field_t; - -typedef struct stc_crg_csw_tmr_field -{ - __IO uint8_t MOWT0 : 1; - __IO uint8_t MOWT1 : 1; - __IO uint8_t MOWT2 : 1; - __IO uint8_t MOWT3 : 1; - __IO uint8_t SOWT0 : 1; - __IO uint8_t SOWT1 : 1; - __IO uint8_t SOWT2 : 1; -} stc_crg_csw_tmr_field_t; - -typedef struct stc_crg_psw_tmr_field -{ - __IO uint8_t POWT0 : 1; - __IO uint8_t POWT1 : 1; - __IO uint8_t POWT2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t PINC : 1; -} stc_crg_psw_tmr_field_t; - -typedef struct stc_crg_pll_ctl1_field -{ - __IO uint8_t PLLM0 : 1; - __IO uint8_t PLLM1 : 1; - __IO uint8_t PLLM2 : 1; - __IO uint8_t PLLM3 : 1; - __IO uint8_t PLLK0 : 1; - __IO uint8_t PLLK1 : 1; - __IO uint8_t PLLK2 : 1; - __IO uint8_t PLLK3 : 1; -} stc_crg_pll_ctl1_field_t; - -typedef struct stc_crg_pll_ctl2_field -{ - __IO uint8_t PLLN0 : 1; - __IO uint8_t PLLN1 : 1; - __IO uint8_t PLLN2 : 1; - __IO uint8_t PLLN3 : 1; - __IO uint8_t PLLN4 : 1; - __IO uint8_t PLLN5 : 1; -} stc_crg_pll_ctl2_field_t; - -typedef struct stc_crg_csv_ctl_field -{ - __IO uint16_t MCSVE : 1; - __IO uint16_t SCSVE : 1; - uint16_t RESERVED1 : 6; - __IO uint16_t FCSDE : 1; - __IO uint16_t FCSRE : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t FCD0 : 1; - __IO uint16_t FCD1 : 1; - __IO uint16_t FCD2 : 1; -} stc_crg_csv_ctl_field_t; - -typedef struct stc_crg_csv_str_field -{ - __IO uint8_t MCMF : 1; - __IO uint8_t SCMF : 1; -} stc_crg_csv_str_field_t; - -typedef struct stc_crg_dbwdt_ctl_field -{ - uint8_t RESERVED1 : 5; - __IO uint8_t DPSWBE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t DPHWBE : 1; -} stc_crg_dbwdt_ctl_field_t; - -typedef struct stc_crg_int_enr_field -{ - __IO uint8_t MCSE : 1; - __IO uint8_t SCSE : 1; - __IO uint8_t PCSE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSE : 1; -} stc_crg_int_enr_field_t; - -typedef struct stc_crg_int_str_field -{ - __IO uint8_t MCSI : 1; - __IO uint8_t SCSI : 1; - __IO uint8_t PCSI : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSI : 1; -} stc_crg_int_str_field_t; - -typedef struct stc_crg_int_clr_field -{ - __IO uint8_t MCSC : 1; - __IO uint8_t SCSC : 1; - __IO uint8_t PCSC : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSC : 1; -} stc_crg_int_clr_field_t; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* HWWDT_MODULE register bit fields */ -typedef struct stc_hwwdt_wdg_ctl_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_hwwdt_wdg_ctl_field_t; - -typedef struct stc_hwwdt_wdg_ris_field -{ - __IO uint8_t RIS : 1; -} stc_hwwdt_wdg_ris_field_t; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* SWWDT_MODULE register bit fields */ -typedef struct stc_swwdt_wdogcontrol_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_swwdt_wdogcontrol_field_t; - -typedef struct stc_swwdt_wdogris_field -{ - __IO uint8_t RIS : 1; -} stc_swwdt_wdogris_field_t; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* DTIM_MODULE register bit fields */ -typedef struct stc_dtim_timer1control_field -{ - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; -} stc_dtim_timer1control_field_t; - -typedef struct stc_dtim_timer1ris_field -{ - __IO uint32_t TIMER1RIS : 1; -} stc_dtim_timer1ris_field_t; - -typedef struct stc_dtim_timer1mis_field -{ - __IO uint32_t TIMER1MIS : 1; -} stc_dtim_timer1mis_field_t; - -typedef struct stc_dtim_timer2control_field -{ - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; -} stc_dtim_timer2control_field_t; - -typedef struct stc_dtim_timer2ris_field -{ - __IO uint32_t TIMER2RIS : 1; -} stc_dtim_timer2ris_field_t; - -typedef struct stc_dtim_timer2mis_field -{ - __IO uint32_t TIMER2MIS : 1; -} stc_dtim_timer2mis_field_t; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* MFT_FRT_MODULE register bit fields */ -typedef struct stc_mft_frt_tcsa0_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa0_field_t; - -typedef struct stc_mft_frt_tcsb0_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb0_field_t; - -typedef struct stc_mft_frt_tcsa1_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa1_field_t; - -typedef struct stc_mft_frt_tcsb1_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb1_field_t; - -typedef struct stc_mft_frt_tcsa2_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa2_field_t; - -typedef struct stc_mft_frt_tcsb2_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb2_field_t; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* MFT_OCU_MODULE register bit fields */ -typedef struct stc_mft_ocu_ocsa10_field -{ - __IO uint8_t CST0 : 1; - __IO uint8_t CST1 : 1; - __IO uint8_t BDIS0 : 1; - __IO uint8_t BDIS1 : 1; - __IO uint8_t IOE0 : 1; - __IO uint8_t IOE1 : 1; - __IO uint8_t IOP0 : 1; - __IO uint8_t IOP1 : 1; -} stc_mft_ocu_ocsa10_field_t; - -typedef struct stc_mft_ocu_ocsb10_field -{ - __IO uint8_t OTD0 : 1; - __IO uint8_t OTD1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS0 : 1; - __IO uint8_t BTS1 : 1; -} stc_mft_ocu_ocsb10_field_t; - -typedef struct stc_mft_ocu_ocsa32_field -{ - __IO uint8_t CST2 : 1; - __IO uint8_t CST3 : 1; - __IO uint8_t BDIS2 : 1; - __IO uint8_t BDIS3 : 1; - __IO uint8_t IOE2 : 1; - __IO uint8_t IOE3 : 1; - __IO uint8_t IOP2 : 1; - __IO uint8_t IOP3 : 1; -} stc_mft_ocu_ocsa32_field_t; - -typedef struct stc_mft_ocu_ocsb32_field -{ - __IO uint8_t OTD2 : 1; - __IO uint8_t OTD3 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS2 : 1; - __IO uint8_t BTS3 : 1; -} stc_mft_ocu_ocsb32_field_t; - -typedef struct stc_mft_ocu_ocsa54_field -{ - __IO uint8_t CST4 : 1; - __IO uint8_t CST5 : 1; - __IO uint8_t BDIS4 : 1; - __IO uint8_t BDIS5 : 1; - __IO uint8_t IOE4 : 1; - __IO uint8_t IOE5 : 1; - __IO uint8_t IOP4 : 1; - __IO uint8_t IOP5 : 1; -} stc_mft_ocu_ocsa54_field_t; - -typedef struct stc_mft_ocu_ocsb54_field -{ - __IO uint8_t OTD4 : 1; - __IO uint8_t OTD5 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS4 : 1; - __IO uint8_t BTS5 : 1; -} stc_mft_ocu_ocsb54_field_t; - -typedef struct stc_mft_ocu_ocsc_field -{ - __IO uint8_t MOD0 : 1; - __IO uint8_t MOD1 : 1; - __IO uint8_t MOD2 : 1; - __IO uint8_t MOD3 : 1; - __IO uint8_t MOD4 : 1; - __IO uint8_t MOD5 : 1; -} stc_mft_ocu_ocsc_field_t; - -typedef struct stc_mft_ocu_ocfs10_field -{ - __IO uint8_t FSO00 : 1; - __IO uint8_t FSO01 : 1; - __IO uint8_t FSO02 : 1; - __IO uint8_t FSO03 : 1; - __IO uint8_t FSO10 : 1; - __IO uint8_t FSO11 : 1; - __IO uint8_t FSO12 : 1; - __IO uint8_t FSO13 : 1; -} stc_mft_ocu_ocfs10_field_t; - -typedef struct stc_mft_ocu_ocfs32_field -{ - __IO uint8_t FSO20 : 1; - __IO uint8_t FSO21 : 1; - __IO uint8_t FSO22 : 1; - __IO uint8_t FSO23 : 1; - __IO uint8_t FSO30 : 1; - __IO uint8_t FSO31 : 1; - __IO uint8_t FSO32 : 1; - __IO uint8_t FSO33 : 1; -} stc_mft_ocu_ocfs32_field_t; - -typedef struct stc_mft_ocu_ocfs54_field -{ - __IO uint8_t FSO40 : 1; - __IO uint8_t FSO41 : 1; - __IO uint8_t FSO42 : 1; - __IO uint8_t FSO43 : 1; - __IO uint8_t FSO50 : 1; - __IO uint8_t FSO51 : 1; - __IO uint8_t FSO52 : 1; - __IO uint8_t FSO53 : 1; -} stc_mft_ocu_ocfs54_field_t; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* MFT_WFG_MODULE register bit fields */ -typedef struct stc_mft_wfg_wfsa10_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD0 : 1; - __IO uint16_t TMD1 : 1; - __IO uint16_t TMD2 : 1; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa10_field_t; - -typedef struct stc_mft_wfg_wfsa32_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD0 : 1; - __IO uint16_t TMD1 : 1; - __IO uint16_t TMD2 : 1; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa32_field_t; - -typedef struct stc_mft_wfg_wfsa54_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD0 : 1; - __IO uint16_t TMD1 : 1; - __IO uint16_t TMD2 : 1; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa54_field_t; - -typedef struct stc_mft_wfg_wfir_field -{ - __IO uint16_t DTIF : 1; - __IO uint16_t DTIC : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t TMIF10 : 1; - __IO uint16_t TMIC10 : 1; - __IO uint16_t TMIE10 : 1; - __IO uint16_t TMIS10 : 1; - __IO uint16_t TMIF32 : 1; - __IO uint16_t TMIC32 : 1; - __IO uint16_t TMIE32 : 1; - __IO uint16_t TMIS32 : 1; - __IO uint16_t TMIF54 : 1; - __IO uint16_t TMIC54 : 1; - __IO uint16_t TMIE54 : 1; - __IO uint16_t TMIS54 : 1; -} stc_mft_wfg_wfir_field_t; - -typedef struct stc_mft_wfg_nzcl_field -{ - __IO uint16_t DTIE : 1; - __IO uint16_t NWS0 : 1; - __IO uint16_t NWS1 : 1; - __IO uint16_t NWS2 : 1; - __IO uint16_t SDTI : 1; -} stc_mft_wfg_nzcl_field_t; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* MFT_ICU_MODULE register bit fields */ -typedef struct stc_mft_icu_icfs10_field -{ - __IO uint8_t FSI00 : 1; - __IO uint8_t FSI01 : 1; - __IO uint8_t FSI02 : 1; - __IO uint8_t FSI03 : 1; - __IO uint8_t FSI10 : 1; - __IO uint8_t FSI11 : 1; - __IO uint8_t FSI12 : 1; - __IO uint8_t FSI13 : 1; -} stc_mft_icu_icfs10_field_t; - -typedef struct stc_mft_icu_icfs32_field -{ - __IO uint8_t FSI20 : 1; - __IO uint8_t FSI21 : 1; - __IO uint8_t FSI22 : 1; - __IO uint8_t FSI23 : 1; - __IO uint8_t FSI30 : 1; - __IO uint8_t FSI31 : 1; - __IO uint8_t FSI32 : 1; - __IO uint8_t FSI33 : 1; -} stc_mft_icu_icfs32_field_t; - -typedef struct stc_mft_icu_icsa10_field -{ - __IO uint8_t EG00 : 1; - __IO uint8_t EG01 : 1; - __IO uint8_t EG10 : 1; - __IO uint8_t EG11 : 1; - __IO uint8_t ICE0 : 1; - __IO uint8_t ICE1 : 1; - __IO uint8_t ICP0 : 1; - __IO uint8_t ICP1 : 1; -} stc_mft_icu_icsa10_field_t; - -typedef struct stc_mft_icu_icsb10_field -{ - __IO uint8_t IEI0 : 1; - __IO uint8_t IEI1 : 1; -} stc_mft_icu_icsb10_field_t; - -typedef struct stc_mft_icu_icsa32_field -{ - __IO uint8_t EG20 : 1; - __IO uint8_t EG21 : 1; - __IO uint8_t EG30 : 1; - __IO uint8_t EG31 : 1; - __IO uint8_t ICE2 : 1; - __IO uint8_t ICE3 : 1; - __IO uint8_t ICP2 : 1; - __IO uint8_t ICP3 : 1; -} stc_mft_icu_icsa32_field_t; - -typedef struct stc_mft_icu_icsb32_field -{ - __IO uint8_t IEI2 : 1; - __IO uint8_t IEI3 : 1; -} stc_mft_icu_icsb32_field_t; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* MFT_ADCMP_MODULE register bit fields */ -typedef struct stc_mft_adcmp_acsb_field -{ - __IO uint8_t BDIS0 : 1; - __IO uint8_t BDIS1 : 1; - __IO uint8_t BDIS2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BTS0 : 1; - __IO uint8_t BTS1 : 1; - __IO uint8_t BTS2 : 1; -} stc_mft_adcmp_acsb_field_t; - -typedef struct stc_mft_adcmp_acsa_field -{ - __IO uint16_t CE00 : 1; - __IO uint16_t CE01 : 1; - __IO uint16_t CE10 : 1; - __IO uint16_t CE11 : 1; - __IO uint16_t CE20 : 1; - __IO uint16_t CE21 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SEL00 : 1; - __IO uint16_t SEL01 : 1; - __IO uint16_t SEL10 : 1; - __IO uint16_t SEL11 : 1; - __IO uint16_t SEL20 : 1; - __IO uint16_t SEL21 : 1; -} stc_mft_adcmp_acsa_field_t; - -typedef struct stc_mft_adcmp_atsa_field -{ - __IO uint16_t AD0S0 : 1; - __IO uint16_t AD0S1 : 1; - __IO uint16_t AD1S0 : 1; - __IO uint16_t AD1S1 : 1; - __IO uint16_t AD2S0 : 1; - __IO uint16_t AD2S1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t AD0P0 : 1; - __IO uint16_t AD0P1 : 1; - __IO uint16_t AD1P0 : 1; - __IO uint16_t AD1P1 : 1; - __IO uint16_t AD2P0 : 1; - __IO uint16_t AD2P1 : 1; -} stc_mft_adcmp_atsa_field_t; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* MFT_PPG_MODULE register bit fields */ -typedef struct stc_mft_ppg_ttcr0_field -{ - __IO uint8_t STR0 : 1; - __IO uint8_t MONI0 : 1; - __IO uint8_t CS00 : 1; - __IO uint8_t CS01 : 1; - __IO uint8_t TRG0O : 1; - __IO uint8_t TRG2O : 1; - __IO uint8_t TRG4O : 1; - __IO uint8_t TRG6O : 1; -} stc_mft_ppg_ttcr0_field_t; - -typedef struct stc_mft_ppg_ttcr1_field -{ - __IO uint8_t STR1 : 1; - __IO uint8_t MONI1 : 1; - __IO uint8_t CS10 : 1; - __IO uint8_t CS11 : 1; - __IO uint8_t TRG1O : 1; - __IO uint8_t TRG3O : 1; - __IO uint8_t TRG5O : 1; - __IO uint8_t TRG7O : 1; -} stc_mft_ppg_ttcr1_field_t; - -typedef struct stc_mft_ppg_ttcr2_field -{ - __IO uint8_t STR2 : 1; - __IO uint8_t MONI2 : 1; - __IO uint8_t CS20 : 1; - __IO uint8_t CS21 : 1; - __IO uint8_t TRG16O : 1; - __IO uint8_t TRG18O : 1; - __IO uint8_t TRG20O : 1; - __IO uint8_t TRG22O : 1; -} stc_mft_ppg_ttcr2_field_t; - -typedef struct stc_mft_ppg_trg_field -{ - __IO uint16_t PEN00 : 1; - __IO uint16_t PEN01 : 1; - __IO uint16_t PEN02 : 1; - __IO uint16_t PEN03 : 1; - __IO uint16_t PEN04 : 1; - __IO uint16_t PEN05 : 1; - __IO uint16_t PEN06 : 1; - __IO uint16_t PEN07 : 1; - __IO uint16_t PEN08 : 1; - __IO uint16_t PEN09 : 1; - __IO uint16_t PEN10 : 1; - __IO uint16_t PEN11 : 1; - __IO uint16_t PEN12 : 1; - __IO uint16_t PEN13 : 1; - __IO uint16_t PEN14 : 1; - __IO uint16_t PEN15 : 1; -} stc_mft_ppg_trg_field_t; - -typedef struct stc_mft_ppg_trg1_field -{ - __IO uint16_t PEN16 : 1; - __IO uint16_t PEN17 : 1; - __IO uint16_t PEN18 : 1; - __IO uint16_t PEN19 : 1; - __IO uint16_t PEN20 : 1; - __IO uint16_t PEN21 : 1; - __IO uint16_t PEN22 : 1; - __IO uint16_t PEN23 : 1; -} stc_mft_ppg_trg1_field_t; - -typedef struct stc_mft_ppg_revc_field -{ - __IO uint16_t REV00 : 1; - __IO uint16_t REV01 : 1; - __IO uint16_t REV02 : 1; - __IO uint16_t REV03 : 1; - __IO uint16_t REV04 : 1; - __IO uint16_t REV05 : 1; - __IO uint16_t REV06 : 1; - __IO uint16_t REV07 : 1; - __IO uint16_t REV08 : 1; - __IO uint16_t REV09 : 1; - __IO uint16_t REV10 : 1; - __IO uint16_t REV11 : 1; - __IO uint16_t REV12 : 1; - __IO uint16_t REV13 : 1; - __IO uint16_t REV14 : 1; - __IO uint16_t REV15 : 1; -} stc_mft_ppg_revc_field_t; - -typedef struct stc_mft_ppg_revc1_field -{ - __IO uint16_t REV16 : 1; - __IO uint16_t REV17 : 1; - __IO uint16_t REV18 : 1; - __IO uint16_t REV19 : 1; - __IO uint16_t REV20 : 1; - __IO uint16_t REV21 : 1; - __IO uint16_t REV22 : 1; - __IO uint16_t REV23 : 1; -} stc_mft_ppg_revc1_field_t; - -typedef struct stc_mft_ppg_ppgc1_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc1_field_t; - -typedef struct stc_mft_ppg_ppgc0_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc0_field_t; - -typedef struct stc_mft_ppg_ppgc3_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc3_field_t; - -typedef struct stc_mft_ppg_ppgc2_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc2_field_t; - -typedef struct stc_mft_ppg_gatec0_field -{ - __IO uint8_t EDGE0 : 1; - __IO uint8_t STRG0 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE2 : 1; - __IO uint8_t STRG2 : 1; -} stc_mft_ppg_gatec0_field_t; - -typedef struct stc_mft_ppg_ppgc5_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc5_field_t; - -typedef struct stc_mft_ppg_ppgc4_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc4_field_t; - -typedef struct stc_mft_ppg_ppgc7_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc7_field_t; - -typedef struct stc_mft_ppg_ppgc6_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc6_field_t; - -typedef struct stc_mft_ppg_gatec4_field -{ - __IO uint8_t EDGE4 : 1; - __IO uint8_t STRG4 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE6 : 1; - __IO uint8_t STRG6 : 1; -} stc_mft_ppg_gatec4_field_t; - -typedef struct stc_mft_ppg_ppgc9_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc9_field_t; - -typedef struct stc_mft_ppg_ppgc8_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc8_field_t; - -typedef struct stc_mft_ppg_ppgc11_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc11_field_t; - -typedef struct stc_mft_ppg_ppgc10_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc10_field_t; - -typedef struct stc_mft_ppg_gatec8_field -{ - __IO uint8_t EDGE8 : 1; - __IO uint8_t STRG8 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE10 : 1; - __IO uint8_t STRG10 : 1; -} stc_mft_ppg_gatec8_field_t; - -typedef struct stc_mft_ppg_ppgc13_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc13_field_t; - -typedef struct stc_mft_ppg_ppgc12_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc12_field_t; - -typedef struct stc_mft_ppg_ppgc15_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc15_field_t; - -typedef struct stc_mft_ppg_ppgc14_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc14_field_t; - -typedef struct stc_mft_ppg_gatec12_field -{ - __IO uint8_t EDGE12 : 1; - __IO uint8_t STRG12 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE14 : 1; - __IO uint8_t STRG14 : 1; -} stc_mft_ppg_gatec12_field_t; - -typedef struct stc_mft_ppg_ppgc17_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc17_field_t; - -typedef struct stc_mft_ppg_ppgc16_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc16_field_t; - -typedef struct stc_mft_ppg_ppgc19_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc19_field_t; - -typedef struct stc_mft_ppg_ppgc18_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc18_field_t; - -typedef struct stc_mft_ppg_gatec16_field -{ - __IO uint8_t EDGE16 : 1; - __IO uint8_t STRG16 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE18 : 1; - __IO uint8_t STRG18 : 1; -} stc_mft_ppg_gatec16_field_t; - -typedef struct stc_mft_ppg_ppgc21_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc21_field_t; - -typedef struct stc_mft_ppg_ppgc20_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc20_field_t; - -typedef struct stc_mft_ppg_ppgc23_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc23_field_t; - -typedef struct stc_mft_ppg_ppgc22_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc22_field_t; - -typedef struct stc_mft_ppg_gatec20_field -{ - __IO uint8_t EDGE20 : 1; - __IO uint8_t STRG20 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE22 : 1; - __IO uint8_t STRG22 : 1; -} stc_mft_ppg_gatec20_field_t; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* BT_PPG_MODULE register bit fields */ -typedef struct stc_bt_ppg_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_ppg_tmcr_field_t; - -typedef struct stc_bt_ppg_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_ppg_stc_field_t; - -typedef struct stc_bt_ppg_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_ppg_tmcr2_field_t; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* BT_PWM_MODULE register bit fields */ -typedef struct stc_bt_pwm_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwm_tmcr_field_t; - -typedef struct stc_bt_pwm_stc_field -{ - __IO uint8_t UDIR : 1; - __IO uint8_t DTIR : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t UDIE : 1; - __IO uint8_t DTIE : 1; - __IO uint8_t TGIE : 1; -} stc_bt_pwm_stc_field_t; - -typedef struct stc_bt_pwm_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwm_tmcr2_field_t; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* BT_RT_MODULE register bit fields */ -typedef struct stc_bt_rt_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_rt_tmcr_field_t; - -typedef struct stc_bt_rt_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_rt_stc_field_t; - -typedef struct stc_bt_rt_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_rt_tmcr2_field_t; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* BT_PWC_MODULE register bit fields */ -typedef struct stc_bt_pwc_tmcr_field -{ - uint16_t RESERVED1 : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FMD0 : 1; - __IO uint16_t FMD1 : 1; - __IO uint16_t FMD2 : 1; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t EGS2 : 1; - uint16_t RESERVED3 : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwc_tmcr_field_t; - -typedef struct stc_bt_pwc_stc_field -{ - __IO uint8_t OVIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t EDIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t OVIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t EDIE : 1; - __IO uint8_t ERR : 1; -} stc_bt_pwc_stc_field_t; - -typedef struct stc_bt_pwc_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwc_tmcr2_field_t; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* BTIOSEL03_MODULE register bit fields */ -typedef struct stc_btiosel03_btsel0123_field -{ - __IO uint8_t SEL01_0 : 1; - __IO uint8_t SEL01_1 : 1; - __IO uint8_t SEL01_2 : 1; - __IO uint8_t SEL01_3 : 1; - __IO uint8_t SEL23_0 : 1; - __IO uint8_t SEL23_1 : 1; - __IO uint8_t SEL23_2 : 1; - __IO uint8_t SEL23_3 : 1; -} stc_btiosel03_btsel0123_field_t; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* BTIOSEL47_MODULE register bit fields */ -typedef struct stc_btiosel47_btsel4567_field -{ - __IO uint8_t SEL45_0 : 1; - __IO uint8_t SEL45_1 : 1; - __IO uint8_t SEL45_2 : 1; - __IO uint8_t SEL45_3 : 1; - __IO uint8_t SEL67_0 : 1; - __IO uint8_t SEL67_1 : 1; - __IO uint8_t SEL67_2 : 1; - __IO uint8_t SEL67_3 : 1; -} stc_btiosel47_btsel4567_field_t; - -/****************************************************************************** - * BTIOSEL811_MODULE - ******************************************************************************/ -/* BTIOSEL811_MODULE register bit fields */ -typedef struct stc_btiosel8b_btsel89ab_field -{ - __IO uint8_t SEL89_0 : 1; - __IO uint8_t SEL89_1 : 1; - __IO uint8_t SEL89_2 : 1; - __IO uint8_t SEL89_3 : 1; - __IO uint8_t SELAB_0 : 1; - __IO uint8_t SELAB_1 : 1; - __IO uint8_t SELAB_2 : 1; - __IO uint8_t SELAB_3 : 1; -} stc_btiosel8b_btsel89ab_field_t; - -/****************************************************************************** - * BTIOSEL1215_MODULE - ******************************************************************************/ -/* BTIOSEL1215_MODULE register bit fields */ -typedef struct stc_btioselcf_btselcdef_field -{ - __IO uint8_t SELCD_0 : 1; - __IO uint8_t SELCD_1 : 1; - __IO uint8_t SELCD_2 : 1; - __IO uint8_t SELCD_3 : 1; - __IO uint8_t SELEF_0 : 1; - __IO uint8_t SELEF_1 : 1; - __IO uint8_t SELEF_2 : 1; - __IO uint8_t SELEF_3 : 1; -} stc_btioselcf_btselcdef_field_t; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* SBSSR_MODULE register bit fields */ -typedef struct stc_sbssr_btsssr_field -{ - __IO uint16_t SSR0 : 1; - __IO uint16_t SSR1 : 1; - __IO uint16_t SSR2 : 1; - __IO uint16_t SSR3 : 1; - __IO uint16_t SSR4 : 1; - __IO uint16_t SSR5 : 1; - __IO uint16_t SSR6 : 1; - __IO uint16_t SSR7 : 1; - __IO uint16_t SSR8 : 1; - __IO uint16_t SSR9 : 1; - __IO uint16_t SSR10 : 1; - __IO uint16_t SSR11 : 1; - __IO uint16_t SSR12 : 1; - __IO uint16_t SSR13 : 1; - __IO uint16_t SSR14 : 1; - __IO uint16_t SSR15 : 1; -} stc_sbssr_btsssr_field_t; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* QPRC_MODULE register bit fields */ -typedef struct stc_qprc_qicr_field -{ - __IO uint16_t QPCMIE : 1; - __IO uint16_t QPCMF : 1; - __IO uint16_t QPRCMIE : 1; - __IO uint16_t QPRCMF : 1; - __IO uint16_t OUZIE : 1; - __IO uint16_t UFDF : 1; - __IO uint16_t OFDF : 1; - __IO uint16_t ZIIF : 1; - __IO uint16_t CDCIE : 1; - __IO uint16_t CDCF : 1; - __IO uint16_t DIRPC : 1; - __IO uint16_t DIROU : 1; - __IO uint16_t QPCNRCMIE : 1; - __IO uint16_t QPCNRCMF : 1; -} stc_qprc_qicr_field_t; - -typedef struct stc_qprc_qicrl_field -{ - __IO uint8_t QPCMIE : 1; - __IO uint8_t QPCMF : 1; - __IO uint8_t QPRCMIE : 1; - __IO uint8_t QPRCMF : 1; - __IO uint8_t OUZIE : 1; - __IO uint8_t UFDF : 1; - __IO uint8_t OFDF : 1; - __IO uint8_t ZIIF : 1; -} stc_qprc_qicrl_field_t; - -typedef struct stc_qprc_qicrh_field -{ - __IO uint8_t CDCIE : 1; - __IO uint8_t CDCF : 1; - __IO uint8_t DIRPC : 1; - __IO uint8_t DIROU : 1; - __IO uint8_t QPCNRCMIE : 1; - __IO uint8_t QPCNRCMF : 1; -} stc_qprc_qicrh_field_t; - -typedef struct stc_qprc_qcr_field -{ - __IO uint16_t PCM0 : 1; - __IO uint16_t PCM1 : 1; - __IO uint16_t RCM0 : 1; - __IO uint16_t RCM1 : 1; - __IO uint16_t PSTP : 1; - __IO uint16_t CGSC : 1; - __IO uint16_t RSEL : 1; - __IO uint16_t SWAP : 1; - __IO uint16_t PCRM0 : 1; - __IO uint16_t PCRM1 : 1; - __IO uint16_t AES0 : 1; - __IO uint16_t AES1 : 1; - __IO uint16_t BES0 : 1; - __IO uint16_t BES1 : 1; - __IO uint16_t CGE0 : 1; - __IO uint16_t CGE1 : 1; -} stc_qprc_qcr_field_t; - -typedef struct stc_qprc_qcrl_field -{ - __IO uint8_t PCM0 : 1; - __IO uint8_t PCM1 : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t PSTP : 1; - __IO uint8_t CGSC : 1; - __IO uint8_t RSEL : 1; - __IO uint8_t SWAP : 1; -} stc_qprc_qcrl_field_t; - -typedef struct stc_qprc_qcrh_field -{ - __IO uint8_t PCRM0 : 1; - __IO uint8_t PCRM1 : 1; - __IO uint8_t AES0 : 1; - __IO uint8_t AES1 : 1; - __IO uint8_t BES0 : 1; - __IO uint8_t BES1 : 1; - __IO uint8_t CGE0 : 1; - __IO uint8_t CGE1 : 1; -} stc_qprc_qcrh_field_t; - -typedef struct stc_qprc_qecr_field -{ - __IO uint16_t ORNGMD : 1; - __IO uint16_t ORNGF : 1; - __IO uint16_t ORNGIE : 1; -} stc_qprc_qecr_field_t; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* ADC12_MODULE register bit fields */ -typedef struct stc_adc_adsr_field -{ - __IO uint8_t SCS : 1; - __IO uint8_t PCS : 1; - __IO uint8_t PCNS : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t FDAS : 1; - __IO uint8_t ADSTP : 1; -} stc_adc_adsr_field_t; - -typedef struct stc_adc_adcr_field -{ - __IO uint8_t OVRIE : 1; - __IO uint8_t CMPIE : 1; - __IO uint8_t PCIE : 1; - __IO uint8_t SCIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t CMPIF : 1; - __IO uint8_t PCIF : 1; - __IO uint8_t SCIF : 1; -} stc_adc_adcr_field_t; - -typedef struct stc_adc_sfns_field -{ - __IO uint8_t SFS0 : 1; - __IO uint8_t SFS1 : 1; - __IO uint8_t SFS2 : 1; - __IO uint8_t SFS3 : 1; -} stc_adc_sfns_field_t; - -typedef struct stc_adc_sccr_field -{ - __IO uint8_t SSTR : 1; - __IO uint8_t SHEN : 1; - __IO uint8_t RPT : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t SFCLR : 1; - __IO uint8_t SOVR : 1; - __IO uint8_t SFUL : 1; - __IO uint8_t SEMP : 1; -} stc_adc_sccr_field_t; - -typedef struct stc_adc_scfd_field -{ - __IO uint32_t SC0 : 1; - __IO uint32_t SC1 : 1; - __IO uint32_t SC2 : 1; - __IO uint32_t SC3 : 1; - __IO uint32_t SC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; - __IO uint32_t SD3 : 1; - __IO uint32_t SD4 : 1; - __IO uint32_t SD5 : 1; - __IO uint32_t SD6 : 1; - __IO uint32_t SD7 : 1; - __IO uint32_t SD8 : 1; - __IO uint32_t SD9 : 1; - __IO uint32_t SD10 : 1; - __IO uint32_t SD11 : 1; -} stc_adc_scfd_field_t; - -typedef struct stc_adc_scfdl_field -{ - __IO uint16_t SC0 : 1; - __IO uint16_t SC1 : 1; - __IO uint16_t SC2 : 1; - __IO uint16_t SC3 : 1; - __IO uint16_t SC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t INVL : 1; -} stc_adc_scfdl_field_t; - -typedef struct stc_adc_scfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t SD0 : 1; - __IO uint16_t SD1 : 1; - __IO uint16_t SD2 : 1; - __IO uint16_t SD3 : 1; - __IO uint16_t SD4 : 1; - __IO uint16_t SD5 : 1; - __IO uint16_t SD6 : 1; - __IO uint16_t SD7 : 1; - __IO uint16_t SD8 : 1; - __IO uint16_t SD9 : 1; - __IO uint16_t SD10 : 1; - __IO uint16_t SD11 : 1; -} stc_adc_scfdh_field_t; - -typedef struct stc_adc_scis23_field -{ - __IO uint16_t AN16 : 1; - __IO uint16_t AN17 : 1; - __IO uint16_t AN18 : 1; - __IO uint16_t AN19 : 1; - __IO uint16_t AN20 : 1; - __IO uint16_t AN21 : 1; - __IO uint16_t AN22 : 1; - __IO uint16_t AN23 : 1; - __IO uint16_t AN24 : 1; - __IO uint16_t AN25 : 1; - __IO uint16_t AN26 : 1; - __IO uint16_t AN27 : 1; - __IO uint16_t AN28 : 1; - __IO uint16_t AN29 : 1; - __IO uint16_t AN30 : 1; - __IO uint16_t AN31 : 1; -} stc_adc_scis23_field_t; - -typedef struct stc_adc_scis2_field -{ - __IO uint8_t AN16 : 1; - __IO uint8_t AN17 : 1; - __IO uint8_t AN18 : 1; - __IO uint8_t AN19 : 1; - __IO uint8_t AN20 : 1; - __IO uint8_t AN21 : 1; - __IO uint8_t AN22 : 1; - __IO uint8_t AN23 : 1; -} stc_adc_scis2_field_t; - -typedef struct stc_adc_scis3_field -{ - __IO uint8_t AN24 : 1; - __IO uint8_t AN25 : 1; - __IO uint8_t AN26 : 1; - __IO uint8_t AN27 : 1; - __IO uint8_t AN28 : 1; - __IO uint8_t AN29 : 1; - __IO uint8_t AN30 : 1; - __IO uint8_t AN31 : 1; -} stc_adc_scis3_field_t; - -typedef struct stc_adc_scis01_field -{ - __IO uint16_t AN0 : 1; - __IO uint16_t AN1 : 1; - __IO uint16_t AN2 : 1; - __IO uint16_t AN3 : 1; - __IO uint16_t AN4 : 1; - __IO uint16_t AN5 : 1; - __IO uint16_t AN6 : 1; - __IO uint16_t AN7 : 1; - __IO uint16_t AN8 : 1; - __IO uint16_t AN9 : 1; - __IO uint16_t AN10 : 1; - __IO uint16_t AN11 : 1; - __IO uint16_t AN12 : 1; - __IO uint16_t AN13 : 1; - __IO uint16_t AN14 : 1; - __IO uint16_t AN15 : 1; -} stc_adc_scis01_field_t; - -typedef struct stc_adc_scis0_field -{ - __IO uint8_t AN0 : 1; - __IO uint8_t AN1 : 1; - __IO uint8_t AN2 : 1; - __IO uint8_t AN3 : 1; - __IO uint8_t AN4 : 1; - __IO uint8_t AN5 : 1; - __IO uint8_t AN6 : 1; - __IO uint8_t AN7 : 1; -} stc_adc_scis0_field_t; - -typedef struct stc_adc_scis1_field -{ - __IO uint8_t AN8 : 1; - __IO uint8_t AN9 : 1; - __IO uint8_t AN10 : 1; - __IO uint8_t AN11 : 1; - __IO uint8_t AN12 : 1; - __IO uint8_t AN13 : 1; - __IO uint8_t AN14 : 1; - __IO uint8_t AN15 : 1; -} stc_adc_scis1_field_t; - -typedef struct stc_adc_pfns_field -{ - __IO uint8_t PFS0 : 1; - __IO uint8_t PFS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t TEST0 : 1; - __IO uint8_t TEST1 : 1; -} stc_adc_pfns_field_t; - -typedef struct stc_adc_pccr_field -{ - __IO uint8_t PSTR : 1; - __IO uint8_t PHEN : 1; - __IO uint8_t PEEN : 1; - __IO uint8_t ESCE : 1; - __IO uint8_t PFCLR : 1; - __IO uint8_t POVR : 1; - __IO uint8_t PFUL : 1; - __IO uint8_t PEMP : 1; -} stc_adc_pccr_field_t; - -typedef struct stc_adc_pcfd_field -{ - __IO uint32_t PC0 : 1; - __IO uint32_t PC1 : 1; - __IO uint32_t PC2 : 1; - __IO uint32_t PC3 : 1; - __IO uint32_t PC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - __IO uint32_t RS2 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t PD0 : 1; - __IO uint32_t PD1 : 1; - __IO uint32_t PD2 : 1; - __IO uint32_t PD3 : 1; - __IO uint32_t PD4 : 1; - __IO uint32_t PD5 : 1; - __IO uint32_t PD6 : 1; - __IO uint32_t PD7 : 1; - __IO uint32_t PD8 : 1; - __IO uint32_t PD9 : 1; - __IO uint32_t PD10 : 1; - __IO uint32_t PD11 : 1; -} stc_adc_pcfd_field_t; - -typedef struct stc_adc_pcfdl_field -{ - __IO uint16_t PC0 : 1; - __IO uint16_t PC1 : 1; - __IO uint16_t PC2 : 1; - __IO uint16_t PC3 : 1; - __IO uint16_t PC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - __IO uint16_t RS2 : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t INVL : 1; -} stc_adc_pcfdl_field_t; - -typedef struct stc_adc_pcfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t PD0 : 1; - __IO uint16_t PD1 : 1; - __IO uint16_t PD2 : 1; - __IO uint16_t PD3 : 1; - __IO uint16_t PD4 : 1; - __IO uint16_t PD5 : 1; - __IO uint16_t PD6 : 1; - __IO uint16_t PD7 : 1; - __IO uint16_t PD8 : 1; - __IO uint16_t PD9 : 1; - __IO uint16_t PD10 : 1; - __IO uint16_t PD11 : 1; -} stc_adc_pcfdh_field_t; - -typedef struct stc_adc_pcis_field -{ - __IO uint8_t P1A0 : 1; - __IO uint8_t P1A1 : 1; - __IO uint8_t P1A2 : 1; - __IO uint8_t P2A0 : 1; - __IO uint8_t P2A1 : 1; - __IO uint8_t P2A2 : 1; - __IO uint8_t P2A3 : 1; - __IO uint8_t P2A4 : 1; -} stc_adc_pcis_field_t; - -typedef struct stc_adc_cmpcr_field -{ - __IO uint8_t CCH0 : 1; - __IO uint8_t CCH1 : 1; - __IO uint8_t CCH2 : 1; - __IO uint8_t CCH3 : 1; - __IO uint8_t CCH4 : 1; - __IO uint8_t CMD0 : 1; - __IO uint8_t CMD1 : 1; - __IO uint8_t CMPEN : 1; -} stc_adc_cmpcr_field_t; - -typedef struct stc_adc_cmpd_field -{ - uint16_t RESERVED1 : 6; - __IO uint16_t CMAD2 : 1; - __IO uint16_t CMAD3 : 1; - __IO uint16_t CMAD4 : 1; - __IO uint16_t CMAD5 : 1; - __IO uint16_t CMAD6 : 1; - __IO uint16_t CMAD7 : 1; - __IO uint16_t CMAD8 : 1; - __IO uint16_t CMAD9 : 1; - __IO uint16_t CMAD10 : 1; - __IO uint16_t CMAD11 : 1; -} stc_adc_cmpd_field_t; - -typedef struct stc_adc_adss23_field -{ - __IO uint16_t TS16 : 1; - __IO uint16_t TS17 : 1; - __IO uint16_t TS18 : 1; - __IO uint16_t TS19 : 1; - __IO uint16_t TS20 : 1; - __IO uint16_t TS21 : 1; - __IO uint16_t TS22 : 1; - __IO uint16_t TS23 : 1; - __IO uint16_t TS24 : 1; - __IO uint16_t TS25 : 1; - __IO uint16_t TS26 : 1; - __IO uint16_t TS27 : 1; - __IO uint16_t TS28 : 1; - __IO uint16_t TS29 : 1; - __IO uint16_t TS30 : 1; - __IO uint16_t TS31 : 1; -} stc_adc_adss23_field_t; - -typedef struct stc_adc_adss2_field -{ - __IO uint8_t TS16 : 1; - __IO uint8_t TS17 : 1; - __IO uint8_t TS18 : 1; - __IO uint8_t TS19 : 1; - __IO uint8_t TS20 : 1; - __IO uint8_t TS21 : 1; - __IO uint8_t TS22 : 1; - __IO uint8_t TS23 : 1; -} stc_adc_adss2_field_t; - -typedef struct stc_adc_adss3_field -{ - __IO uint8_t TS24 : 1; - __IO uint8_t TS25 : 1; - __IO uint8_t TS26 : 1; - __IO uint8_t TS27 : 1; - __IO uint8_t TS28 : 1; - __IO uint8_t TS29 : 1; - __IO uint8_t TS30 : 1; - __IO uint8_t TS31 : 1; -} stc_adc_adss3_field_t; - -typedef struct stc_adc_adss01_field -{ - __IO uint16_t TS0 : 1; - __IO uint16_t TS1 : 1; - __IO uint16_t TS2 : 1; - __IO uint16_t TS3 : 1; - __IO uint16_t TS4 : 1; - __IO uint16_t TS5 : 1; - __IO uint16_t TS6 : 1; - __IO uint16_t TS7 : 1; - __IO uint16_t TS8 : 1; - __IO uint16_t TS9 : 1; - __IO uint16_t TS10 : 1; - __IO uint16_t TS11 : 1; - __IO uint16_t TS12 : 1; - __IO uint16_t TS13 : 1; - __IO uint16_t TS14 : 1; - __IO uint16_t TS15 : 1; -} stc_adc_adss01_field_t; - -typedef struct stc_adc_adss0_field -{ - __IO uint8_t TS0 : 1; - __IO uint8_t TS1 : 1; - __IO uint8_t TS2 : 1; - __IO uint8_t TS3 : 1; - __IO uint8_t TS4 : 1; - __IO uint8_t TS5 : 1; - __IO uint8_t TS6 : 1; - __IO uint8_t TS7 : 1; -} stc_adc_adss0_field_t; - -typedef struct stc_adc_adss1_field -{ - __IO uint8_t TS8 : 1; - __IO uint8_t TS9 : 1; - __IO uint8_t TS10 : 1; - __IO uint8_t TS11 : 1; - __IO uint8_t TS12 : 1; - __IO uint8_t TS13 : 1; - __IO uint8_t TS14 : 1; - __IO uint8_t TS15 : 1; -} stc_adc_adss1_field_t; - -typedef struct stc_adc_adst01_field -{ - __IO uint16_t ST10 : 1; - __IO uint16_t ST11 : 1; - __IO uint16_t ST12 : 1; - __IO uint16_t ST13 : 1; - __IO uint16_t ST14 : 1; - __IO uint16_t STX10 : 1; - __IO uint16_t STX11 : 1; - __IO uint16_t STX12 : 1; - __IO uint16_t ST00 : 1; - __IO uint16_t ST01 : 1; - __IO uint16_t ST02 : 1; - __IO uint16_t ST03 : 1; - __IO uint16_t ST04 : 1; - __IO uint16_t STX00 : 1; - __IO uint16_t STX01 : 1; - __IO uint16_t STX02 : 1; -} stc_adc_adst01_field_t; - -typedef struct stc_adc_adst1_field -{ - __IO uint8_t ST10 : 1; - __IO uint8_t ST11 : 1; - __IO uint8_t ST12 : 1; - __IO uint8_t ST13 : 1; - __IO uint8_t ST14 : 1; - __IO uint8_t STX10 : 1; - __IO uint8_t STX11 : 1; - __IO uint8_t STX12 : 1; -} stc_adc_adst1_field_t; - -typedef struct stc_adc_adst0_field -{ - __IO uint8_t ST00 : 1; - __IO uint8_t ST01 : 1; - __IO uint8_t ST02 : 1; - __IO uint8_t ST03 : 1; - __IO uint8_t ST04 : 1; - __IO uint8_t STX00 : 1; - __IO uint8_t STX01 : 1; - __IO uint8_t STX02 : 1; -} stc_adc_adst0_field_t; - -typedef struct stc_adc_adct_field -{ - __IO uint8_t CT0 : 1; - __IO uint8_t CT1 : 1; - __IO uint8_t CT2 : 1; - __IO uint8_t CT3 : 1; - __IO uint8_t CT4 : 1; - __IO uint8_t CT5 : 1; - __IO uint8_t CT6 : 1; - __IO uint8_t CT7 : 1; -} stc_adc_adct_field_t; - -typedef struct stc_adc_prtsl_field -{ - __IO uint8_t PRTSL0 : 1; - __IO uint8_t PRTSL1 : 1; - __IO uint8_t PRTSL2 : 1; - __IO uint8_t PRTSL3 : 1; -} stc_adc_prtsl_field_t; - -typedef struct stc_adc_sctsl_field -{ - __IO uint8_t SCTSL0 : 1; - __IO uint8_t SCTSL1 : 1; - __IO uint8_t SCTSL2 : 1; - __IO uint8_t SCTSL3 : 1; -} stc_adc_sctsl_field_t; - -typedef struct stc_adc_adcen_field -{ - __IO uint8_t ENBL : 1; - __IO uint8_t READY : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CYCLSL0 : 1; - __IO uint8_t CYCLSL1 : 1; -} stc_adc_adcen_field_t; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CRTRIM_MODULE register bit fields */ -typedef struct stc_crtrim_mcr_psr_field -{ - __IO uint8_t CSR0 : 1; - __IO uint8_t CSR1 : 1; -} stc_crtrim_mcr_psr_field_t; - -typedef struct stc_crtrim_mcr_ftrm_field -{ - __IO uint16_t TRD0 : 1; - __IO uint16_t TRD1 : 1; - __IO uint16_t TRD2 : 1; - __IO uint16_t TRD3 : 1; - __IO uint16_t TRD4 : 1; - __IO uint16_t TRD5 : 1; - __IO uint16_t TRD6 : 1; - __IO uint16_t TRD7 : 1; -} stc_crtrim_mcr_ftrm_field_t; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* EXTI_MODULE registEN bit fields */ -typedef struct stc_exti_enir_field -{ - __IO uint16_t EN0 : 1; - __IO uint16_t EN1 : 1; - __IO uint16_t EN2 : 1; - __IO uint16_t EN3 : 1; - __IO uint16_t EN4 : 1; - __IO uint16_t EN5 : 1; - __IO uint16_t EN6 : 1; - __IO uint16_t EN7 : 1; - __IO uint16_t EN8 : 1; - __IO uint16_t EN9 : 1; - __IO uint16_t EN10 : 1; - __IO uint16_t EN11 : 1; - __IO uint16_t EN12 : 1; - __IO uint16_t EN13 : 1; - __IO uint16_t EN14 : 1; - __IO uint16_t EN15 : 1; - __IO uint16_t EN16 : 1; - __IO uint16_t EN17 : 1; - __IO uint16_t EN18 : 1; - __IO uint16_t EN19 : 1; - __IO uint16_t EN20 : 1; - __IO uint16_t EN21 : 1; - __IO uint16_t EN22 : 1; - __IO uint16_t EN23 : 1; - __IO uint16_t EN24 : 1; - __IO uint16_t EN25 : 1; - __IO uint16_t EN26 : 1; - __IO uint16_t EN27 : 1; - __IO uint16_t EN28 : 1; - __IO uint16_t EN29 : 1; - __IO uint16_t EN30 : 1; - __IO uint16_t EN31 : 1; -} stc_exti_enir_field_t; - -typedef struct stc_exti_eirr_field -{ - __IO uint16_t ER0 : 1; - __IO uint16_t ER1 : 1; - __IO uint16_t ER2 : 1; - __IO uint16_t ER3 : 1; - __IO uint16_t ER4 : 1; - __IO uint16_t ER5 : 1; - __IO uint16_t ER6 : 1; - __IO uint16_t ER7 : 1; - __IO uint16_t ER8 : 1; - __IO uint16_t ER9 : 1; - __IO uint16_t ER10 : 1; - __IO uint16_t ER11 : 1; - __IO uint16_t ER12 : 1; - __IO uint16_t ER13 : 1; - __IO uint16_t ER14 : 1; - __IO uint16_t ER15 : 1; - __IO uint16_t ER16 : 1; - __IO uint16_t ER17 : 1; - __IO uint16_t ER18 : 1; - __IO uint16_t ER19 : 1; - __IO uint16_t ER20 : 1; - __IO uint16_t ER21 : 1; - __IO uint16_t ER22 : 1; - __IO uint16_t ER23 : 1; - __IO uint16_t ER24 : 1; - __IO uint16_t ER25 : 1; - __IO uint16_t ER26 : 1; - __IO uint16_t ER27 : 1; - __IO uint16_t ER28 : 1; - __IO uint16_t ER29 : 1; - __IO uint16_t ER30 : 1; - __IO uint16_t ER31 : 1; -} stc_exti_eirr_field_t; - -typedef struct stc_exti_eicl_field -{ - __IO uint16_t ECL0 : 1; - __IO uint16_t ECL1 : 1; - __IO uint16_t ECL2 : 1; - __IO uint16_t ECL3 : 1; - __IO uint16_t ECL4 : 1; - __IO uint16_t ECL5 : 1; - __IO uint16_t ECL6 : 1; - __IO uint16_t ECL7 : 1; - __IO uint16_t ECL8 : 1; - __IO uint16_t ECL9 : 1; - __IO uint16_t ECL10 : 1; - __IO uint16_t ECL11 : 1; - __IO uint16_t ECL12 : 1; - __IO uint16_t ECL13 : 1; - __IO uint16_t ECL14 : 1; - __IO uint16_t ECL15 : 1; - __IO uint16_t ECL16 : 1; - __IO uint16_t ECL17 : 1; - __IO uint16_t ECL18 : 1; - __IO uint16_t ECL19 : 1; - __IO uint16_t ECL20 : 1; - __IO uint16_t ECL21 : 1; - __IO uint16_t ECL22 : 1; - __IO uint16_t ECL23 : 1; - __IO uint16_t ECL24 : 1; - __IO uint16_t ECL25 : 1; - __IO uint16_t ECL26 : 1; - __IO uint16_t ECL27 : 1; - __IO uint16_t ECL28 : 1; - __IO uint16_t ECL29 : 1; - __IO uint16_t ECL30 : 1; - __IO uint16_t ECL31 : 1; -} stc_exti_eicl_field_t; - -typedef struct stc_exti_elvr_field -{ - __IO uint32_t LA0 : 1; - __IO uint32_t LB0 : 1; - __IO uint32_t LA1 : 1; - __IO uint32_t LB1 : 1; - __IO uint32_t LA2 : 1; - __IO uint32_t LB2 : 1; - __IO uint32_t LA3 : 1; - __IO uint32_t LB3 : 1; - __IO uint32_t LA4 : 1; - __IO uint32_t LB4 : 1; - __IO uint32_t LA5 : 1; - __IO uint32_t LB5 : 1; - __IO uint32_t LA6 : 1; - __IO uint32_t LB6 : 1; - __IO uint32_t LA7 : 1; - __IO uint32_t LB7 : 1; - __IO uint32_t LA8 : 1; - __IO uint32_t LB8 : 1; - __IO uint32_t LA9 : 1; - __IO uint32_t LB9 : 1; - __IO uint32_t LA10 : 1; - __IO uint32_t LB10 : 1; - __IO uint32_t LA11 : 1; - __IO uint32_t LB11 : 1; - __IO uint32_t LA12 : 1; - __IO uint32_t LB12 : 1; - __IO uint32_t LA13 : 1; - __IO uint32_t LB13 : 1; - __IO uint32_t LA14 : 1; - __IO uint32_t LB14 : 1; - __IO uint32_t LA15 : 1; - __IO uint32_t LB15 : 1; -} stc_exti_elvr_field_t; - -typedef struct stc_exti_elvr1_field -{ - __IO uint32_t LA16 : 1; - __IO uint32_t LB16 : 1; - __IO uint32_t LA17 : 1; - __IO uint32_t LB17 : 1; - __IO uint32_t LA18 : 1; - __IO uint32_t LB18 : 1; - __IO uint32_t LA19 : 1; - __IO uint32_t LB19 : 1; - __IO uint32_t LA20 : 1; - __IO uint32_t LB20 : 1; - __IO uint32_t LA21 : 1; - __IO uint32_t LB21 : 1; - __IO uint32_t LA22 : 1; - __IO uint32_t LB22 : 1; - __IO uint32_t LA23 : 1; - __IO uint32_t LB23 : 1; - __IO uint32_t LA24 : 1; - __IO uint32_t LB24 : 1; - __IO uint32_t LA25 : 1; - __IO uint32_t LB25 : 1; - __IO uint32_t LA26 : 1; - __IO uint32_t LB26 : 1; - __IO uint32_t LA27 : 1; - __IO uint32_t LB27 : 1; - __IO uint32_t LA28 : 1; - __IO uint32_t LB28 : 1; - __IO uint32_t LA29 : 1; - __IO uint32_t LB29 : 1; - __IO uint32_t LA30 : 1; - __IO uint32_t LB30 : 1; - __IO uint32_t LA31 : 1; - __IO uint32_t LB31 : 1; -} stc_exti_elvr1_field_t; - -typedef struct stc_exti_nmirr_field -{ - __IO uint8_t NR0 : 1; -} stc_exti_nmirr_field_t; - -typedef struct stc_exti_nmicl_field -{ - __IO uint8_t NCL0 : 1; -} stc_exti_nmicl_field_t; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* INTREQ_MODULE register bit fields */ -typedef struct stc_intreq_drqsel_field -{ - __IO uint32_t DRQSEL0 : 1; - __IO uint32_t DRQSEL1 : 1; - __IO uint32_t DRQSEL2 : 1; - __IO uint32_t DRQSEL3 : 1; - __IO uint32_t DRQSEL4 : 1; - __IO uint32_t DRQSEL5 : 1; - __IO uint32_t DRQSEL6 : 1; - __IO uint32_t DRQSEL7 : 1; - __IO uint32_t DRQSEL8 : 1; - __IO uint32_t DRQSEL9 : 1; - __IO uint32_t DRQSEL10 : 1; - __IO uint32_t DRQSEL11 : 1; - __IO uint32_t DRQSEL12 : 1; - __IO uint32_t DRQSEL13 : 1; - __IO uint32_t DRQSEL14 : 1; - __IO uint32_t DRQSEL15 : 1; - __IO uint32_t DRQSEL16 : 1; - __IO uint32_t DRQSEL17 : 1; - __IO uint32_t DRQSEL18 : 1; - __IO uint32_t DRQSEL19 : 1; - __IO uint32_t DRQSEL20 : 1; - __IO uint32_t DRQSEL21 : 1; - __IO uint32_t DRQSEL22 : 1; - __IO uint32_t DRQSEL23 : 1; - __IO uint32_t DRQSEL24 : 1; - __IO uint32_t DRQSEL25 : 1; - __IO uint32_t DRQSEL26 : 1; - __IO uint32_t DRQSEL27 : 1; - __IO uint32_t DRQSEL28 : 1; - __IO uint32_t DRQSEL29 : 1; - __IO uint32_t DRQSEL30 : 1; - __IO uint32_t DRQSEL31 : 1; -} stc_intreq_drqsel_field_t; - -typedef struct stc_intreq_oddpks_field -{ - __IO uint8_t ODDPKS0 : 1; - __IO uint8_t ODDPKS1 : 1; - __IO uint8_t ODDPKS2 : 1; - __IO uint8_t ODDPKS3 : 1; - __IO uint8_t ODDPKS4 : 1; -} stc_intreq_oddpks_field_t; - -typedef struct stc_intreq_exc02mon_field -{ - __IO uint32_t NMI : 1; - __IO uint32_t HWINT : 1; -} stc_intreq_exc02mon_field_t; - -typedef struct stc_intreq_irq00mon_field -{ - __IO uint32_t FCSINT : 1; -} stc_intreq_irq00mon_field_t; - -typedef struct stc_intreq_irq01mon_field -{ - __IO uint32_t SWWDTINT : 1; -} stc_intreq_irq01mon_field_t; - -typedef struct stc_intreq_irq02mon_field -{ - __IO uint32_t LVDINT : 1; -} stc_intreq_irq02mon_field_t; - -typedef struct stc_intreq_irq03mon_field -{ - __IO uint32_t WAVE0INT0 : 1; - __IO uint32_t WAVE0INT1 : 1; - __IO uint32_t WAVE0INT2 : 1; - __IO uint32_t WAVE0INT3 : 1; - __IO uint32_t WAVE1INT0 : 1; - __IO uint32_t WAVE1INT1 : 1; - __IO uint32_t WAVE1INT2 : 1; - __IO uint32_t WAVE1INT3 : 1; - __IO uint32_t WAVE2INT0 : 1; - __IO uint32_t WAVE2INT1 : 1; - __IO uint32_t WAVE2INT2 : 1; - __IO uint32_t WAVE2INT3 : 1; -} stc_intreq_irq03mon_field_t; - -typedef struct stc_intreq_irq04mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; - __IO uint32_t EXTINT4 : 1; - __IO uint32_t EXTINT5 : 1; - __IO uint32_t EXTINT6 : 1; - __IO uint32_t EXTINT7 : 1; -} stc_intreq_irq04mon_field_t; - -typedef struct stc_intreq_irq05mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; - __IO uint32_t EXTINT4 : 1; - __IO uint32_t EXTINT5 : 1; - __IO uint32_t EXTINT6 : 1; - __IO uint32_t EXTINT7 : 1; - __IO uint32_t EXTINT8 : 1; - __IO uint32_t EXTINT9 : 1; - __IO uint32_t EXTINT10 : 1; - __IO uint32_t EXTINT11 : 1; - __IO uint32_t EXTINT12 : 1; - __IO uint32_t EXTINT13 : 1; - __IO uint32_t EXTINT14 : 1; - __IO uint32_t EXTINT15 : 1; - __IO uint32_t EXTINT16 : 1; - __IO uint32_t EXTINT17 : 1; - __IO uint32_t EXTINT18 : 1; - __IO uint32_t EXTINT19 : 1; - __IO uint32_t EXTINT20 : 1; - __IO uint32_t EXTINT21 : 1; - __IO uint32_t EXTINT22 : 1; - __IO uint32_t EXTINT23 : 1; -} stc_intreq_irq05mon_field_t; - -typedef struct stc_intreq_irq06mon_field -{ - __IO uint32_t TIMINT1 : 1; - __IO uint32_t TIMINT2 : 1; - __IO uint32_t QUD0INT0 : 1; - __IO uint32_t QUD0INT1 : 1; - __IO uint32_t QUD0INT2 : 1; - __IO uint32_t QUD0INT3 : 1; - __IO uint32_t QUD0INT4 : 1; - __IO uint32_t QUD0INT5 : 1; - __IO uint32_t QUD1INT0 : 1; - __IO uint32_t QUD1INT1 : 1; - __IO uint32_t QUD1INT2 : 1; - __IO uint32_t QUD1INT3 : 1; - __IO uint32_t QUD1INT4 : 1; - __IO uint32_t QUD1INT5 : 1; - __IO uint32_t QUD2INT0 : 1; - __IO uint32_t QUD2INT1 : 1; - __IO uint32_t QUD2INT2 : 1; - __IO uint32_t QUD2INT3 : 1; - __IO uint32_t QUD2INT4 : 1; - __IO uint32_t QUD2INT5 : 1; -} stc_intreq_irq06mon_field_t; - -typedef struct stc_intreq_irq07mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq07mon_field_t; - -typedef struct stc_intreq_irq08mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq08mon_field_t; - -typedef struct stc_intreq_irq09mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq09mon_field_t; - -typedef struct stc_intreq_irq10mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq10mon_field_t; - -typedef struct stc_intreq_irq11mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq11mon_field_t; - -typedef struct stc_intreq_irq12mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq12mon_field_t; - -typedef struct stc_intreq_irq13mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq13mon_field_t; - -typedef struct stc_intreq_irq14mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq14mon_field_t; - -typedef struct stc_intreq_irq15mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq15mon_field_t; - -typedef struct stc_intreq_irq16mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq16mon_field_t; - -typedef struct stc_intreq_irq17mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq17mon_field_t; - -typedef struct stc_intreq_irq18mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq18mon_field_t; - -typedef struct stc_intreq_irq19mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq19mon_field_t; - -typedef struct stc_intreq_irq20mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq20mon_field_t; - -typedef struct stc_intreq_irq21mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq21mon_field_t; - -typedef struct stc_intreq_irq22mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq22mon_field_t; - -typedef struct stc_intreq_irq23mon_field -{ - __IO uint32_t PPGINT0 : 1; - __IO uint32_t PPGINT1 : 1; - __IO uint32_t PPGINT2 : 1; - __IO uint32_t PPGINT3 : 1; - __IO uint32_t PPGINT4 : 1; - __IO uint32_t PPGINT5 : 1; - __IO uint32_t PPGINT6 : 1; - __IO uint32_t PPGINT7 : 1; - __IO uint32_t PPGINT8 : 1; -} stc_intreq_irq23mon_field_t; - -typedef struct stc_intreq_irq24mon_field -{ - __IO uint32_t MOSCINT : 1; - __IO uint32_t SOSCINT : 1; - __IO uint32_t MPLLINT : 1; - __IO uint32_t UPLLINT : 1; - __IO uint32_t WCINT : 1; -} stc_intreq_irq24mon_field_t; - -typedef struct stc_intreq_irq25mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq25mon_field_t; - -typedef struct stc_intreq_irq26mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq26mon_field_t; - -typedef struct stc_intreq_irq27mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq27mon_field_t; - -typedef struct stc_intreq_irq28mon_field -{ - __IO uint32_t FRT0INT0 : 1; - __IO uint32_t FRT0INT1 : 1; - __IO uint32_t FRT0INT2 : 1; - __IO uint32_t FRT0INT3 : 1; - __IO uint32_t FRT0INT4 : 1; - __IO uint32_t FRT0INT5 : 1; - __IO uint32_t FRT1INT0 : 1; - __IO uint32_t FRT1INT1 : 1; - __IO uint32_t FRT1INT2 : 1; - __IO uint32_t FRT1INT3 : 1; - __IO uint32_t FRT1INT4 : 1; - __IO uint32_t FRT1INT5 : 1; - __IO uint32_t FRT2INT0 : 1; - __IO uint32_t FRT2INT1 : 1; - __IO uint32_t FRT2INT2 : 1; - __IO uint32_t FRT2INT3 : 1; - __IO uint32_t FRT2INT4 : 1; - __IO uint32_t FRT2INT5 : 1; -} stc_intreq_irq28mon_field_t; - -typedef struct stc_intreq_irq29mon_field -{ - __IO uint32_t ICU0INT0 : 1; - __IO uint32_t ICU0INT1 : 1; - __IO uint32_t ICU0INT2 : 1; - __IO uint32_t ICU0INT3 : 1; - __IO uint32_t ICU1INT0 : 1; - __IO uint32_t ICU1INT1 : 1; - __IO uint32_t ICU1INT2 : 1; - __IO uint32_t ICU1INT3 : 1; - __IO uint32_t ICU2INT0 : 1; - __IO uint32_t ICU2INT1 : 1; - __IO uint32_t ICU2INT2 : 1; - __IO uint32_t ICU2INT3 : 1; -} stc_intreq_irq29mon_field_t; - -typedef struct stc_intreq_irq30mon_field -{ - __IO uint32_t OCU0INT0 : 1; - __IO uint32_t OCU0INT1 : 1; - __IO uint32_t OCU0INT2 : 1; - __IO uint32_t OCU0INT3 : 1; - __IO uint32_t OCU0INT4 : 1; - __IO uint32_t OCU0INT5 : 1; - __IO uint32_t OCU1INT0 : 1; - __IO uint32_t OCU1INT1 : 1; - __IO uint32_t OCU1INT2 : 1; - __IO uint32_t OCU1INT3 : 1; - __IO uint32_t OCU1INT4 : 1; - __IO uint32_t OCU1INT5 : 1; - __IO uint32_t OCU2INT0 : 1; - __IO uint32_t OCU2INT1 : 1; - __IO uint32_t OCU2INT2 : 1; - __IO uint32_t OCU2INT3 : 1; - __IO uint32_t OCU2INT4 : 1; - __IO uint32_t OCU2INT5 : 1; -} stc_intreq_irq30mon_field_t; - -typedef struct stc_intreq_irq31mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; - __IO uint32_t BTINT2 : 1; - __IO uint32_t BTINT3 : 1; - __IO uint32_t BTINT4 : 1; - __IO uint32_t BTINT5 : 1; - __IO uint32_t BTINT6 : 1; - __IO uint32_t BTINT7 : 1; - __IO uint32_t BTINT8 : 1; - __IO uint32_t BTINT9 : 1; - __IO uint32_t BTINT10 : 1; - __IO uint32_t BTINT11 : 1; - __IO uint32_t BTINT12 : 1; - __IO uint32_t BTINT13 : 1; - __IO uint32_t BTINT14 : 1; - __IO uint32_t BTINT15 : 1; -} stc_intreq_irq31mon_field_t; - -typedef struct stc_intreq_irq32mon_field -{ - uint32_t RESERVED1 : 1; - __IO uint32_t MAC0SBD : 1; - __IO uint32_t MAC0PMI : 1; - __IO uint32_t MAC0LPI : 1; -} stc_intreq_irq32mon_field_t; - -typedef struct stc_intreq_irq33mon_field -{ - uint32_t RESERVED1 : 1; - __IO uint32_t MAC1SBD : 1; - __IO uint32_t MAC1PMI : 1; -} stc_intreq_irq33mon_field_t; - -typedef struct stc_intreq_irq34mon_field -{ - __IO uint32_t USB0INT0 : 1; - __IO uint32_t USB0INT1 : 1; - __IO uint32_t USB0INT2 : 1; - __IO uint32_t USB0INT3 : 1; - __IO uint32_t USB0INT4 : 1; -} stc_intreq_irq34mon_field_t; - -typedef struct stc_intreq_irq35mon_field -{ - __IO uint32_t USB0INT0 : 1; - __IO uint32_t USB0INT1 : 1; - __IO uint32_t USB0INT2 : 1; - __IO uint32_t USB0INT3 : 1; - __IO uint32_t USB0INT4 : 1; - __IO uint32_t USB0INT5 : 1; -} stc_intreq_irq35mon_field_t; - -typedef struct stc_intreq_irq36mon_field -{ - __IO uint32_t USB1INT0 : 1; - __IO uint32_t USB1INT1 : 1; - __IO uint32_t USB1INT2 : 1; - __IO uint32_t USB1INT3 : 1; - __IO uint32_t USB1INT4 : 1; -} stc_intreq_irq36mon_field_t; - -typedef struct stc_intreq_irq37mon_field -{ - __IO uint32_t USB1INT0 : 1; - __IO uint32_t USB1INT1 : 1; - __IO uint32_t USB1INT2 : 1; - __IO uint32_t USB1INT3 : 1; - __IO uint32_t USB1INT4 : 1; - __IO uint32_t USB1INT5 : 1; -} stc_intreq_irq37mon_field_t; - -typedef struct stc_intreq_irq38mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq38mon_field_t; - -typedef struct stc_intreq_irq39mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq39mon_field_t; - -typedef struct stc_intreq_irq40mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq40mon_field_t; - -typedef struct stc_intreq_irq41mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq41mon_field_t; - -typedef struct stc_intreq_irq42mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq42mon_field_t; - -typedef struct stc_intreq_irq43mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq43mon_field_t; - -typedef struct stc_intreq_irq44mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq44mon_field_t; - -typedef struct stc_intreq_irq45mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq45mon_field_t; - -typedef struct stc_intreq_irq46mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; - __IO uint32_t BTINT2 : 1; - __IO uint32_t BTINT3 : 1; - __IO uint32_t BTINT4 : 1; - __IO uint32_t BTINT5 : 1; - __IO uint32_t BTINT6 : 1; - __IO uint32_t BTINT7 : 1; - __IO uint32_t BTINT8 : 1; - __IO uint32_t BTINT9 : 1; - __IO uint32_t BTINT10 : 1; - __IO uint32_t BTINT11 : 1; - __IO uint32_t BTINT12 : 1; - __IO uint32_t BTINT13 : 1; - __IO uint32_t BTINT14 : 1; - __IO uint32_t BTINT15 : 1; -} stc_intreq_irq46mon_field_t; - -typedef struct stc_intreq_drqsel1_field -{ - __IO uint32_t DRQSEL10 : 1; - __IO uint32_t DRQSEL11 : 1; - __IO uint32_t DRQSEL12 : 1; - __IO uint32_t DRQSEL13 : 1; - __IO uint32_t DRQSEL14 : 1; -} stc_intreq_drqsel1_field_t; - -typedef struct stc_intreq_dqesel_field -{ - __IO uint32_t ESEL100 : 1; - __IO uint32_t ESEL101 : 1; - __IO uint32_t ESEL102 : 1; - __IO uint32_t ESEL103 : 1; - __IO uint32_t ESEL110 : 1; - __IO uint32_t ESEL111 : 1; - __IO uint32_t ESEL112 : 1; - __IO uint32_t ESEL113 : 1; - __IO uint32_t ESEL240 : 1; - __IO uint32_t ESEL241 : 1; - __IO uint32_t ESEL242 : 1; - __IO uint32_t ESEL243 : 1; - __IO uint32_t ESEL250 : 1; - __IO uint32_t ESEL251 : 1; - __IO uint32_t ESEL252 : 1; - __IO uint32_t ESEL253 : 1; - __IO uint32_t ESEL260 : 1; - __IO uint32_t ESEL261 : 1; - __IO uint32_t ESEL262 : 1; - __IO uint32_t ESEL263 : 1; - __IO uint32_t ESEL270 : 1; - __IO uint32_t ESEL271 : 1; - __IO uint32_t ESEL272 : 1; - __IO uint32_t ESEL273 : 1; - __IO uint32_t ESEL300 : 1; - __IO uint32_t ESEL301 : 1; - __IO uint32_t ESEL302 : 1; - __IO uint32_t ESEL303 : 1; - __IO uint32_t ESEL310 : 1; - __IO uint32_t ESEL311 : 1; - __IO uint32_t ESEL312 : 1; - __IO uint32_t ESEL313 : 1; -} stc_intreq_dqesel_field_t; - -typedef struct stc_intreq_oddpks1_field -{ - __IO uint8_t ODDPKS10 : 1; - __IO uint8_t ODDPKS11 : 1; - __IO uint8_t ODDPKS12 : 1; - __IO uint8_t ODDPKS13 : 1; - __IO uint8_t ODDPKS14 : 1; -} stc_intreq_oddpks1_field_t; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* GPIO_MODULE register bit fields */ -typedef struct stc_gpio_pfr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pfr0_field_t; - -typedef struct stc_gpio_pfr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr1_field_t; - -typedef struct stc_gpio_pfr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pfr2_field_t; - -typedef struct stc_gpio_pfr3_field -{ - uint32_t RESERVED1 : 6; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr3_field_t; - -typedef struct stc_gpio_pfr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pfr4_field_t; - -typedef struct stc_gpio_pfr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pfr5_field_t; - -typedef struct stc_gpio_pfr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pfr6_field_t; - -typedef struct stc_gpio_pfr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; -} stc_gpio_pfr7_field_t; - -typedef struct stc_gpio_pfr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pfr8_field_t; - - -typedef struct stc_gpio_pfra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pfra_field_t; - -typedef struct stc_gpio_pfrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfrc_field_t; - -typedef struct stc_gpio_pfrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pfrd_field_t; - -typedef struct stc_gpio_pfre_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pfre_field_t; - -typedef struct stc_gpio_pfrf_field -{ - uint32_t RESERVED1 : 5; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pfrf_field_t; - -typedef struct stc_gpio_pcr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pcr0_field_t; - -typedef struct stc_gpio_pcr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr1_field_t; - -typedef struct stc_gpio_pcr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pcr2_field_t; - -typedef struct stc_gpio_pcr3_field -{ - uint32_t RESERVED1 : 6; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr3_field_t; - -typedef struct stc_gpio_pcr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pcr4_field_t; - -typedef struct stc_gpio_pcr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pcr5_field_t; - -typedef struct stc_gpio_pcr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pcr6_field_t; - -typedef struct stc_gpio_pcr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; -} stc_gpio_pcr7_field_t; - -typedef struct stc_gpio_pcra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pcra_field_t; - -typedef struct stc_gpio_pcrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcrc_field_t; - -typedef struct stc_gpio_pcrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pcrd_field_t; - -typedef struct stc_gpio_pcre_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pcre_field_t; - -typedef struct stc_gpio_ddr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_ddr0_field_t; - -typedef struct stc_gpio_ddr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr1_field_t; - -typedef struct stc_gpio_ddr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_ddr2_field_t; - -typedef struct stc_gpio_ddr3_field -{ - uint32_t RESERVED1 : 6; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr3_field_t; - -typedef struct stc_gpio_ddr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_ddr4_field_t; - -typedef struct stc_gpio_ddr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_ddr5_field_t; - -typedef struct stc_gpio_ddr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_ddr6_field_t; - -typedef struct stc_gpio_ddr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; -} stc_gpio_ddr7_field_t; - -typedef struct stc_gpio_ddr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_ddr8_field_t; - -typedef struct stc_gpio_ddra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_ddra_field_t; - -typedef struct stc_gpio_ddrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddrc_field_t; - -typedef struct stc_gpio_ddrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_ddrd_field_t; - -typedef struct stc_gpio_ddre_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_ddre_field_t; - -typedef struct stc_gpio_ddrf_field -{ - uint32_t RESERVED1 : 5; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_ddrf_field_t; - -typedef struct stc_gpio_pdir0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdir0_field_t; - -typedef struct stc_gpio_pdir1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir1_field_t; - -typedef struct stc_gpio_pdir2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdir2_field_t; - -typedef struct stc_gpio_pdir3_field -{ - uint32_t RESERVED1 : 6; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir3_field_t; - -typedef struct stc_gpio_pdir4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pdir4_field_t; - -typedef struct stc_gpio_pdir5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pdir5_field_t; - -typedef struct stc_gpio_pdir6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pdir6_field_t; - -typedef struct stc_gpio_pdir7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; -} stc_gpio_pdir7_field_t; - -typedef struct stc_gpio_pdir8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdir8_field_t; - -typedef struct stc_gpio_pdira_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pdira_field_t; - -typedef struct stc_gpio_pdirc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdirc_field_t; - -typedef struct stc_gpio_pdird_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdird_field_t; - -typedef struct stc_gpio_pdire_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdire_field_t; - -typedef struct stc_gpio_pdirf_field -{ - uint32_t RESERVED1 : 5; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pdirf_field_t; - -typedef struct stc_gpio_pdor0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdor0_field_t; - -typedef struct stc_gpio_pdor1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor1_field_t; - -typedef struct stc_gpio_pdor2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdor2_field_t; - -typedef struct stc_gpio_pdor3_field -{ - uint32_t RESERVED1 : 6; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor3_field_t; - -typedef struct stc_gpio_pdor4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pdor4_field_t; - -typedef struct stc_gpio_pdor5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pdor5_field_t; - -typedef struct stc_gpio_pdor6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pdor6_field_t; - -typedef struct stc_gpio_pdor7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; -} stc_gpio_pdor7_field_t; - -typedef struct stc_gpio_pdor8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdor8_field_t; - -typedef struct stc_gpio_pdora_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pdora_field_t; - -typedef struct stc_gpio_pdorc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdorc_field_t; - -typedef struct stc_gpio_pdord_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdord_field_t; - -typedef struct stc_gpio_pdore_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdore_field_t; - -typedef struct stc_gpio_pdorf_field -{ - uint32_t RESERVED1 : 5; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pdorf_field_t; - -typedef struct stc_gpio_ade_field -{ - __IO uint32_t AN0 : 1; - __IO uint32_t AN1 : 1; - __IO uint32_t AN2 : 1; - __IO uint32_t AN3 : 1; - __IO uint32_t AN4 : 1; - __IO uint32_t AN5 : 1; - __IO uint32_t AN6 : 1; - __IO uint32_t AN7 : 1; - __IO uint32_t AN8 : 1; - __IO uint32_t AN9 : 1; - __IO uint32_t AN10 : 1; - __IO uint32_t AN11 : 1; - __IO uint32_t AN12 : 1; - __IO uint32_t AN13 : 1; - __IO uint32_t AN14 : 1; - __IO uint32_t AN15 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t AN24 : 1; - __IO uint32_t AN25 : 1; - __IO uint32_t AN26 : 1; - __IO uint32_t AN27 : 1; - __IO uint32_t AN28 : 1; - __IO uint32_t AN29 : 1; - __IO uint32_t AN30 : 1; - __IO uint32_t AN31 : 1; -} stc_gpio_ade_field_t; - -typedef struct stc_gpio_spsr_field -{ - __IO uint32_t SUBXC : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MAINXC : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t USB0C : 1; - __IO uint32_t USB1C : 1; -} stc_gpio_spsr_field_t; - -typedef struct stc_gpio_epfr00_field -{ - __IO uint32_t NMIS : 1; - __IO uint32_t CROUTE0 : 1; - __IO uint32_t CROUTE1 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t SUBOUTE0 : 1; - __IO uint32_t SUBOUTE1 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t USBP0E : 1; - uint32_t RESERVED3 : 3; - __IO uint32_t USBP1E : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t JTAGEN0B : 1; - __IO uint32_t JTAGEN1S : 1; - uint32_t RESERVED5 : 6; - __IO uint32_t TRC0E : 1; - __IO uint32_t TRC1E : 1; -} stc_gpio_epfr00_field_t; - -typedef struct stc_gpio_epfr01_field -{ - __IO uint32_t RTO00E0 : 1; - __IO uint32_t RTO00E1 : 1; - __IO uint32_t RTO01E0 : 1; - __IO uint32_t RTO01E1 : 1; - __IO uint32_t RTO02E0 : 1; - __IO uint32_t RTO02E1 : 1; - __IO uint32_t RTO03E0 : 1; - __IO uint32_t RTO03E1 : 1; - __IO uint32_t RTO04E0 : 1; - __IO uint32_t RTO04E1 : 1; - __IO uint32_t RTO05E0 : 1; - __IO uint32_t RTO05E1 : 1; - __IO uint32_t DTTI0C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI0S0 : 1; - __IO uint32_t DTTI0S1 : 1; - __IO uint32_t FRCK0S0 : 1; - __IO uint32_t FRCK0S1 : 1; - __IO uint32_t IC00S0 : 1; - __IO uint32_t IC00S1 : 1; - __IO uint32_t IC00S2 : 1; - __IO uint32_t IC01S0 : 1; - __IO uint32_t IC01S1 : 1; - __IO uint32_t IC01S2 : 1; - __IO uint32_t IC02S0 : 1; - __IO uint32_t IC02S1 : 1; - __IO uint32_t IC02S2 : 1; - __IO uint32_t IC03S0 : 1; - __IO uint32_t IC03S1 : 1; - __IO uint32_t IC03S2 : 1; -} stc_gpio_epfr01_field_t; - -typedef struct stc_gpio_epfr02_field -{ - __IO uint32_t RTO10E0 : 1; - __IO uint32_t RTO10E1 : 1; - __IO uint32_t RTO11E0 : 1; - __IO uint32_t RTO11E1 : 1; - __IO uint32_t RTO12E0 : 1; - __IO uint32_t RTO12E1 : 1; - __IO uint32_t RTO13E0 : 1; - __IO uint32_t RTO13E1 : 1; - __IO uint32_t RTO14E0 : 1; - __IO uint32_t RTO14E1 : 1; - __IO uint32_t RTO15E0 : 1; - __IO uint32_t RTO15E1 : 1; - __IO uint32_t DTTI1C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI1S0 : 1; - __IO uint32_t DTTI1S1 : 1; - __IO uint32_t FRCK1S0 : 1; - __IO uint32_t FRCK1S1 : 1; - __IO uint32_t IC10S0 : 1; - __IO uint32_t IC10S1 : 1; - __IO uint32_t IC10S2 : 1; - __IO uint32_t IC11S0 : 1; - __IO uint32_t IC11S1 : 1; - __IO uint32_t IC11S2 : 1; - __IO uint32_t IC12S0 : 1; - __IO uint32_t IC12S1 : 1; - __IO uint32_t IC12S2 : 1; - __IO uint32_t IC13S0 : 1; - __IO uint32_t IC13S1 : 1; - __IO uint32_t IC13S2 : 1; -} stc_gpio_epfr02_field_t; - -typedef struct stc_gpio_epfr03_field -{ - __IO uint32_t RTO20E0 : 1; - __IO uint32_t RTO20E1 : 1; - __IO uint32_t RTO21E0 : 1; - __IO uint32_t RTO21E1 : 1; - __IO uint32_t RTO22E0 : 1; - __IO uint32_t RTO22E1 : 1; - __IO uint32_t RTO23E0 : 1; - __IO uint32_t RTO23E1 : 1; - __IO uint32_t RTO24E0 : 1; - __IO uint32_t RTO24E1 : 1; - __IO uint32_t RTO25E0 : 1; - __IO uint32_t RTO25E1 : 1; - __IO uint32_t DTTI2C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI2S0 : 1; - __IO uint32_t DTTI2S1 : 1; - __IO uint32_t FRCK2S0 : 1; - __IO uint32_t FRCK2S1 : 1; - __IO uint32_t IC20S0 : 1; - __IO uint32_t IC20S1 : 1; - __IO uint32_t IC20S2 : 1; - __IO uint32_t IC21S0 : 1; - __IO uint32_t IC21S1 : 1; - __IO uint32_t IC21S2 : 1; - __IO uint32_t IC22S0 : 1; - __IO uint32_t IC22S1 : 1; - __IO uint32_t IC22S2 : 1; - __IO uint32_t IC23S0 : 1; - __IO uint32_t IC23S1 : 1; - __IO uint32_t IC23S2 : 1; -} stc_gpio_epfr03_field_t; - -typedef struct stc_gpio_epfr04_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA0E0 : 1; - __IO uint32_t TIOA0E1 : 1; - __IO uint32_t TIOB0S0 : 1; - __IO uint32_t TIOB0S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA1S0 : 1; - __IO uint32_t TIOA1S1 : 1; - __IO uint32_t TIOA1E0 : 1; - __IO uint32_t TIOA1E1 : 1; - __IO uint32_t TIOB1S0 : 1; - __IO uint32_t TIOB1S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA2E0 : 1; - __IO uint32_t TIOA2E1 : 1; - __IO uint32_t TIOB2S0 : 1; - __IO uint32_t TIOB2S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA3S0 : 1; - __IO uint32_t TIOA3S1 : 1; - __IO uint32_t TIOA3E0 : 1; - __IO uint32_t TIOA3E1 : 1; - __IO uint32_t TIOB3S0 : 1; - __IO uint32_t TIOB3S1 : 1; -} stc_gpio_epfr04_field_t; - -typedef struct stc_gpio_epfr05_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA4E0 : 1; - __IO uint32_t TIOA4E1 : 1; - __IO uint32_t TIOB4S0 : 1; - __IO uint32_t TIOB4S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA5S0 : 1; - __IO uint32_t TIOA5S1 : 1; - __IO uint32_t TIOA5E0 : 1; - __IO uint32_t TIOA5E1 : 1; - __IO uint32_t TIOB5S0 : 1; - __IO uint32_t TIOB5S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA6E0 : 1; - __IO uint32_t TIOA6E1 : 1; - __IO uint32_t TIOB6S0 : 1; - __IO uint32_t TIOB6S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA7S0 : 1; - __IO uint32_t TIOA7S1 : 1; - __IO uint32_t TIOA7E0 : 1; - __IO uint32_t TIOA7E1 : 1; - __IO uint32_t TIOB7S0 : 1; - __IO uint32_t TIOB7S1 : 1; -} stc_gpio_epfr05_field_t; - -typedef struct stc_gpio_epfr06_field -{ - __IO uint32_t EINT00S0 : 1; - __IO uint32_t EINT00S1 : 1; - __IO uint32_t EINT01S0 : 1; - __IO uint32_t EINT01S1 : 1; - __IO uint32_t EINT02S0 : 1; - __IO uint32_t EINT02S1 : 1; - __IO uint32_t EINT03S0 : 1; - __IO uint32_t EINT03S1 : 1; - __IO uint32_t EINT04S0 : 1; - __IO uint32_t EINT04S1 : 1; - __IO uint32_t EINT05S0 : 1; - __IO uint32_t EINT05S1 : 1; - __IO uint32_t EINT06S0 : 1; - __IO uint32_t EINT06S1 : 1; - __IO uint32_t EINT07S0 : 1; - __IO uint32_t EINT07S1 : 1; - __IO uint32_t EINT08S0 : 1; - __IO uint32_t EINT08S1 : 1; - __IO uint32_t EINT09S0 : 1; - __IO uint32_t EINT09S1 : 1; - __IO uint32_t EINT10S0 : 1; - __IO uint32_t EINT10S1 : 1; - __IO uint32_t EINT11S0 : 1; - __IO uint32_t EINT11S1 : 1; - __IO uint32_t EINT12S0 : 1; - __IO uint32_t EINT12S1 : 1; - __IO uint32_t EINT13S0 : 1; - __IO uint32_t EINT13S1 : 1; - __IO uint32_t EINT14S0 : 1; - __IO uint32_t EINT14S1 : 1; - __IO uint32_t EINT15S0 : 1; - __IO uint32_t EINT15S1 : 1; -} stc_gpio_epfr06_field_t; - -typedef struct stc_gpio_epfr07_field -{ - uint32_t RESERVED1 : 4; - __IO uint32_t SIN0S0 : 1; - __IO uint32_t SIN0S1 : 1; - __IO uint32_t SOT0B0 : 1; - __IO uint32_t SOT0B1 : 1; - __IO uint32_t SCK0B0 : 1; - __IO uint32_t SCK0B1 : 1; - __IO uint32_t SIN1S0 : 1; - __IO uint32_t SIN1S1 : 1; - __IO uint32_t SOT1B0 : 1; - __IO uint32_t SOT1B1 : 1; - __IO uint32_t SCK1B0 : 1; - __IO uint32_t SCK1B1 : 1; - __IO uint32_t SIN2S0 : 1; - __IO uint32_t SIN2S1 : 1; - __IO uint32_t SOT2B0 : 1; - __IO uint32_t SOT2B1 : 1; - __IO uint32_t SCK2B0 : 1; - __IO uint32_t SCK2B1 : 1; - __IO uint32_t SIN3S0 : 1; - __IO uint32_t SIN3S1 : 1; - __IO uint32_t SOT3B0 : 1; - __IO uint32_t SOT3B1 : 1; - __IO uint32_t SCK3B0 : 1; - __IO uint32_t SCK3B1 : 1; -} stc_gpio_epfr07_field_t; - -typedef struct stc_gpio_epfr08_field -{ - __IO uint32_t RTS4E0 : 1; - __IO uint32_t RTS4E1 : 1; - __IO uint32_t CTS4S0 : 1; - __IO uint32_t CTS4S1 : 1; - __IO uint32_t SIN4S0 : 1; - __IO uint32_t SIN4S1 : 1; - __IO uint32_t SOT4B0 : 1; - __IO uint32_t SOT4B1 : 1; - __IO uint32_t SCK4B0 : 1; - __IO uint32_t SCK4B1 : 1; - __IO uint32_t SIN5S0 : 1; - __IO uint32_t SIN5S1 : 1; - __IO uint32_t SOT5B0 : 1; - __IO uint32_t SOT5B1 : 1; - __IO uint32_t SCK5B0 : 1; - __IO uint32_t SCK5B1 : 1; - __IO uint32_t SIN6S0 : 1; - __IO uint32_t SIN6S1 : 1; - __IO uint32_t SOT6B0 : 1; - __IO uint32_t SOT6B1 : 1; - __IO uint32_t SCK6B0 : 1; - __IO uint32_t SCK6B1 : 1; - __IO uint32_t SIN7S0 : 1; - __IO uint32_t SIN7S1 : 1; - __IO uint32_t SOT7B0 : 1; - __IO uint32_t SOT7B1 : 1; - __IO uint32_t SCK7B0 : 1; - __IO uint32_t SCK7B1 : 1; -} stc_gpio_epfr08_field_t; - -typedef struct stc_gpio_epfr09_field -{ - __IO uint32_t QAIN0S0 : 1; - __IO uint32_t QAIN0S1 : 1; - __IO uint32_t QBIN0S0 : 1; - __IO uint32_t QBIN0S1 : 1; - __IO uint32_t QZIN0S0 : 1; - __IO uint32_t QZIN0S1 : 1; - __IO uint32_t QAIN1S0 : 1; - __IO uint32_t QAIN1S1 : 1; - __IO uint32_t QBIN1S0 : 1; - __IO uint32_t QBIN1S1 : 1; - __IO uint32_t QZIN1S0 : 1; - __IO uint32_t QZIN1S1 : 1; - __IO uint32_t ADTRG0S0 : 1; - __IO uint32_t ADTRG0S1 : 1; - __IO uint32_t ADTRG0S2 : 1; - __IO uint32_t ADTRG0S3 : 1; - __IO uint32_t ADTRG1S0 : 1; - __IO uint32_t ADTRG1S1 : 1; - __IO uint32_t ADTRG1S2 : 1; - __IO uint32_t ADTRG1S3 : 1; - __IO uint32_t ADTRG2S0 : 1; - __IO uint32_t ADTRG2S1 : 1; - __IO uint32_t ADTRG2S2 : 1; - __IO uint32_t ADTRG2S3 : 1; -} stc_gpio_epfr09_field_t; - -typedef struct stc_gpio_epfr10_field -{ - __IO uint32_t UEDEFB : 1; - __IO uint32_t UEDTHB : 1; - __IO uint32_t UECLKE : 1; - __IO uint32_t UEWEXE : 1; - __IO uint32_t UEDQME : 1; - __IO uint32_t UEOEXE : 1; - __IO uint32_t UEFLSE : 1; - __IO uint32_t UECS1E : 1; - __IO uint32_t UECS2E : 1; - __IO uint32_t UECS3E : 1; - __IO uint32_t UECS4E : 1; - __IO uint32_t UECS5E : 1; - __IO uint32_t UECS6E : 1; - __IO uint32_t UECS7E : 1; - __IO uint32_t UEAOOE : 1; - __IO uint32_t UEA08E : 1; - __IO uint32_t UEA09E : 1; - __IO uint32_t UEA10E : 1; - __IO uint32_t UEA11E : 1; - __IO uint32_t UEA12E : 1; - __IO uint32_t UEA13E : 1; - __IO uint32_t UEA14E : 1; - __IO uint32_t UEA15E : 1; - __IO uint32_t UEA16E : 1; - __IO uint32_t UEA17E : 1; - __IO uint32_t UEA18E : 1; -} stc_gpio_epfr10_field_t; - -typedef struct stc_gpio_epfr11_field -{ - __IO uint32_t UEALEE : 1; - __IO uint32_t UECS0E : 1; - __IO uint32_t UEA01E : 1; - __IO uint32_t UEA02E : 1; - __IO uint32_t UEA03E : 1; - __IO uint32_t UEA04E : 1; - __IO uint32_t UEA05E : 1; - __IO uint32_t UEA06E : 1; - __IO uint32_t UEA07E : 1; - __IO uint32_t UED00B : 1; - __IO uint32_t UED01B : 1; - __IO uint32_t UED02B : 1; - __IO uint32_t UED03B : 1; - __IO uint32_t UED04B : 1; - __IO uint32_t UED05B : 1; - __IO uint32_t UED06B : 1; - __IO uint32_t UED07B : 1; - __IO uint32_t UED08B : 1; - __IO uint32_t UED09B : 1; - __IO uint32_t UED10B : 1; - __IO uint32_t UED11B : 1; - __IO uint32_t UED12B : 1; - __IO uint32_t UED13B : 1; - __IO uint32_t UED14B : 1; - __IO uint32_t UED15B : 1; - __IO uint32_t UERLC : 1; -} stc_gpio_epfr11_field_t; - -typedef struct stc_gpio_epfr12_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA8E0 : 1; - __IO uint32_t TIOA8E1 : 1; - __IO uint32_t TIOB8S0 : 1; - __IO uint32_t TIOB8S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA9S0 : 1; - __IO uint32_t TIOA9S1 : 1; - __IO uint32_t TIOA9E0 : 1; - __IO uint32_t TIOA9E1 : 1; - __IO uint32_t TIOB9S0 : 1; - __IO uint32_t TIOB9S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA10E0 : 1; - __IO uint32_t TIOA10E1 : 1; - __IO uint32_t TIOB10S0 : 1; - __IO uint32_t TIOB10S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA11S0 : 1; - __IO uint32_t TIOA11S1 : 1; - __IO uint32_t TIOA11E0 : 1; - __IO uint32_t TIOA11E1 : 1; - __IO uint32_t TIOB11S0 : 1; - __IO uint32_t TIOB11S1 : 1; -} stc_gpio_epfr12_field_t; - -typedef struct stc_gpio_epfr13_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA12E0 : 1; - __IO uint32_t TIOA12E1 : 1; - __IO uint32_t TIOB12S0 : 1; - __IO uint32_t TIOB12S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA13S0 : 1; - __IO uint32_t TIOA13S1 : 1; - __IO uint32_t TIOA13E0 : 1; - __IO uint32_t TIOA13E1 : 1; - __IO uint32_t TIOB13S0 : 1; - __IO uint32_t TIOB13S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA14E0 : 1; - __IO uint32_t TIOA14E1 : 1; - __IO uint32_t TIOB14S0 : 1; - __IO uint32_t TIOB14S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA15S0 : 1; - __IO uint32_t TIOA15S1 : 1; - __IO uint32_t TIOA15E0 : 1; - __IO uint32_t TIOA15E1 : 1; - __IO uint32_t TIOB15S0 : 1; - __IO uint32_t TIOB15S1 : 1; -} stc_gpio_epfr13_field_t; - -typedef struct stc_gpio_epfr14_field -{ - __IO uint32_t QAIN2S0 : 1; - __IO uint32_t QAIN2S1 : 1; - __IO uint32_t QBIN2S0 : 1; - __IO uint32_t QBIN2S1 : 1; - __IO uint32_t QZIN2S0 : 1; - __IO uint32_t QZIN2S1 : 1; - uint32_t RESERVED1 : 12; - __IO uint32_t E_TD0E : 1; - __IO uint32_t E_TD1E : 1; - __IO uint32_t E_TE0E : 1; - __IO uint32_t E_TE1E : 1; - __IO uint32_t E_MC0E : 1; - __IO uint32_t E_MC1B : 1; - __IO uint32_t E_MD0B : 1; - __IO uint32_t E_MD1B : 1; - __IO uint32_t E_CKE : 1; - __IO uint32_t E_PSE : 1; - __IO uint32_t E_SPLC0 : 1; - __IO uint32_t E_SPLC1 : 1; -} stc_gpio_epfr14_field_t; - -typedef struct stc_gpio_epfr15_field -{ - __IO uint32_t EINT16S0 : 1; - __IO uint32_t EINT16S1 : 1; - __IO uint32_t EINT17S0 : 1; - __IO uint32_t EINT17S1 : 1; - __IO uint32_t EINT18S0 : 1; - __IO uint32_t EINT18S1 : 1; - __IO uint32_t EINT19S0 : 1; - __IO uint32_t EINT19S1 : 1; - __IO uint32_t EINT20S0 : 1; - __IO uint32_t EINT20S1 : 1; - __IO uint32_t EINT21S0 : 1; - __IO uint32_t EINT21S1 : 1; - __IO uint32_t EINT22S0 : 1; - __IO uint32_t EINT22S1 : 1; - __IO uint32_t EINT23S0 : 1; - __IO uint32_t EINT23S1 : 1; - __IO uint32_t EINT24S0 : 1; - __IO uint32_t EINT24S1 : 1; - __IO uint32_t EINT25S0 : 1; - __IO uint32_t EINT25S1 : 1; - __IO uint32_t EINT26S0 : 1; - __IO uint32_t EINT26S1 : 1; - __IO uint32_t EINT27S0 : 1; - __IO uint32_t EINT27S1 : 1; - __IO uint32_t EINT28S0 : 1; - __IO uint32_t EINT28S1 : 1; - __IO uint32_t EINT29S0 : 1; - __IO uint32_t EINT29S1 : 1; - __IO uint32_t EINT30S0 : 1; - __IO uint32_t EINT30S1 : 1; - __IO uint32_t EINT31S0 : 1; - __IO uint32_t EINT31S1 : 1; -} stc_gpio_epfr15_field_t; - -typedef struct stc_gpio_pzr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pzr0_field_t; - -typedef struct stc_gpio_pzr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzr1_field_t; - -typedef struct stc_gpio_pzr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pzr2_field_t; - -typedef struct stc_gpio_pzr3_field -{ - uint32_t RESERVED1 : 6; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzr3_field_t; - -typedef struct stc_gpio_pzr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pzr4_field_t; - -typedef struct stc_gpio_pzr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; -} stc_gpio_pzr5_field_t; - -typedef struct stc_gpio_pzr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pzr6_field_t; - -typedef struct stc_gpio_pzr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; -} stc_gpio_pzr7_field_t; - -typedef struct stc_gpio_pzr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pzr8_field_t; - -typedef struct stc_gpio_pzra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pzra_field_t; - -typedef struct stc_gpio_pzrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzrc_field_t; - -typedef struct stc_gpio_pzrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pzrd_field_t; - -typedef struct stc_gpio_pzre_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pzre_field_t; - -typedef struct stc_gpio_pzrf_field -{ - uint32_t RESERVED1 : 5; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pzrf_field_t; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* LVD_MODULE register bit fields */ -typedef struct stc_lvd_lvd_ctl_field -{ - uint8_t RESERVED1 : 2; - __IO uint8_t SVHI0 : 1; - __IO uint8_t SVHI1 : 1; - __IO uint8_t SVHI2 : 1; - __IO uint8_t SVHI3 : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t LVDIE : 1; -} stc_lvd_lvd_ctl_field_t; - -typedef struct stc_lvd_lvd_str_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIR : 1; -} stc_lvd_lvd_str_field_t; - -typedef struct stc_lvd_lvd_clr_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDCL : 1; -} stc_lvd_lvd_clr_field_t; - -typedef struct stc_lvd_lvd_str2_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIRDY : 1; -} stc_lvd_lvd_str2_field_t; - -/****************************************************************************** - * USB Ethernet CLK - ******************************************************************************/ -/* USB ETHERNET CLK register bit fields */ -typedef struct stc_usbethernetclk_uccr_field -{ - __IO uint8_t UCEN0 : 1; - __IO uint8_t UCSEL0 : 1; - __IO uint8_t UCSEL1 : 1; - __IO uint8_t UCEN1 : 1; - __IO uint8_t ECEN : 1; - __IO uint8_t ECSEL0 : 1; - __IO uint8_t ECSEL1 : 1; -} stc_usbethernetclk_uccr_field_t; - -typedef struct stc_usbethernetclk_upcr1_field -{ - __IO uint8_t UPLLEN : 1; - __IO uint8_t UPINC : 1; -} stc_usbethernetclk_upcr1_field_t; - -typedef struct stc_usbethernetclk_upcr2_field -{ - __IO uint8_t UPOWT0 : 1; - __IO uint8_t UPOWT1 : 1; - __IO uint8_t UPOWT2 : 1; -} stc_usbethernetclk_upcr2_field_t; - -typedef struct stc_usbethernetclk_upcr3_field -{ - __IO uint8_t UPLLK0 : 1; - __IO uint8_t UPLLK1 : 1; - __IO uint8_t UPLLK2 : 1; - __IO uint8_t UPLLK3 : 1; - __IO uint8_t UPLLK4 : 1; -} stc_usbethernetclk_upcr3_field_t; - -typedef struct stc_usbethernetclk_upcr4_field -{ - __IO uint8_t UPLLN0 : 1; - __IO uint8_t UPLLN1 : 1; - __IO uint8_t UPLLN2 : 1; - __IO uint8_t UPLLN3 : 1; - __IO uint8_t UPLLN4 : 1; - __IO uint8_t UPLLN5 : 1; - __IO uint8_t UPLLN6 : 1; -} stc_usbethernetclk_upcr4_field_t; - -typedef struct stc_usbethernetclk_up_str_field -{ - __IO uint8_t UPRDY : 1; -} stc_usbethernetclk_up_str_field_t; - -typedef struct stc_usbethernetclk_upint_enr_field -{ - __IO uint8_t UPCSE : 1; -} stc_usbethernetclk_upint_enr_field_t; - -typedef struct stc_usbethernetclk_upint_clr_field -{ - __IO uint8_t UPCSC : 1; -} stc_usbethernetclk_upint_clr_field_t; - -typedef struct stc_usbethernetclk_upint_str_field -{ - __IO uint8_t UPCSI : 1; -} stc_usbethernetclk_upint_str_field_t; - -typedef struct stc_usbethernetclk_upcr5_field -{ - __IO uint8_t UPLLM0 : 1; - __IO uint8_t UPLLM1 : 1; - __IO uint8_t UPLLM2 : 1; - __IO uint8_t UPLLM3 : 1; -} stc_usbethernetclk_upcr5_field_t; - -typedef struct stc_usbethernetclk_upcr6_field -{ - __IO uint8_t UBSR0 : 1; - __IO uint8_t UBSR1 : 1; - __IO uint8_t UBSR2 : 1; - __IO uint8_t UBSR3 : 1; -} stc_usbethernetclk_upcr6_field_t; - -typedef struct stc_usbethernetclk_upcr7_field -{ - __IO uint8_t EPLLEN : 1; -} stc_usbethernetclk_upcr7_field_t; - -typedef struct stc_usbethernetclk_usben0_field -{ - __IO uint8_t USBEN0 : 1; -} stc_usbethernetclk_usben0_field_t; - -typedef struct stc_usbethernetclk_usben1_field -{ - __IO uint8_t USBEN1 : 1; -} stc_usbethernetclk_usben1_field_t; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* MFS03_UART_MODULE register bit fields */ -typedef struct stc_mfs03_uart_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_uart_smr_field_t; - -typedef struct stc_mfs03_uart_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; -} stc_mfs03_uart_scr_field_t; - -typedef struct stc_mfs03_uart_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t P : 1; - __IO uint8_t PEN : 1; - __IO uint8_t INV : 1; - __IO uint8_t ESBL : 1; - __IO uint8_t FLWEN : 1; -} stc_mfs03_uart_escr_field_t; - -typedef struct stc_mfs03_uart_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t PE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs03_uart_ssr_field_t; - -typedef struct stc_mfs03_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs03_uart_rdr_field_t; - -typedef struct stc_mfs03_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs03_uart_tdr_field_t; - -typedef struct stc_mfs03_uart_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs03_uart_bgr_field_t; - -typedef struct stc_mfs03_uart_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs03_uart_bgr1_field_t; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* MFS03_CSIO_MODULE register bit fields */ -typedef struct stc_mfs03_csio_smr_field -{ - __IO uint8_t SOE : 1; - __IO uint8_t SCKE : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SCINV : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_csio_smr_field_t; - -typedef struct stc_mfs03_csio_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t SPI : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs03_csio_scr_field_t; - -typedef struct stc_mfs03_csio_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t WT0 : 1; - __IO uint8_t WT1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SOP : 1; -} stc_mfs03_csio_escr_field_t; - -typedef struct stc_mfs03_csio_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t REC : 1; -} stc_mfs03_csio_ssr_field_t; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* MFS03_LIN_MODULE register bit fields */ -typedef struct stc_mfs03_lin_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_lin_smr_field_t; - -typedef struct stc_mfs03_lin_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t LBR : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs03_lin_scr_field_t; - -typedef struct stc_mfs03_lin_escr_field -{ - __IO uint8_t DEL0 : 1; - __IO uint8_t DEL1 : 1; - __IO uint8_t LBL0 : 1; - __IO uint8_t LBL1 : 1; - __IO uint8_t LBIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t ESBL : 1; -} stc_mfs03_lin_escr_field_t; - -typedef struct stc_mfs03_lin_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t LBD : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs03_lin_ssr_field_t; - -typedef struct stc_mfs03_lin_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs03_lin_bgr_field_t; - -typedef struct stc_mfs03_lin_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs03_lin_bgr1_field_t; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* MFS03_I2C_MODULE register bit fields */ -typedef struct stc_mfs03_i2c_smr_field -{ - __IO uint8_t ITST0 : 1; - __IO uint8_t ITST1 : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs03_i2c_smr_field_t; - -typedef struct stc_mfs03_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs03_i2c_ibcr_field_t; - -typedef struct stc_mfs03_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs03_i2c_ibsr_field_t; - -typedef struct stc_mfs03_i2c_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t DMA : 1; - __IO uint8_t TSET : 1; - __IO uint8_t REC : 1; -} stc_mfs03_i2c_ssr_field_t; - -typedef struct stc_mfs03_i2c_isba_field -{ - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - __IO uint8_t SAEN : 1; -} stc_mfs03_i2c_isba_field_t; - -typedef struct stc_mfs03_i2c_ismk_field -{ - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - __IO uint8_t EN : 1; -} stc_mfs03_i2c_ismk_field_t; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* MFS47_UART_MODULE register bit fields */ -typedef struct stc_mfs47_uart_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_uart_smr_field_t; - -typedef struct stc_mfs47_uart_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; -} stc_mfs47_uart_scr_field_t; - -typedef struct stc_mfs47_uart_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t P : 1; - __IO uint8_t PEN : 1; - __IO uint8_t INV : 1; - __IO uint8_t ESBL : 1; - __IO uint8_t FLWEN : 1; -} stc_mfs47_uart_escr_field_t; - -typedef struct stc_mfs47_uart_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t PE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs47_uart_ssr_field_t; - -typedef struct stc_mfs47_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs47_uart_rdr_field_t; - -typedef struct stc_mfs47_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs47_uart_tdr_field_t; - -typedef struct stc_mfs47_uart_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs47_uart_bgr_field_t; - -typedef struct stc_mfs47_uart_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs47_uart_bgr1_field_t; - -typedef struct stc_mfs47_uart_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_uart_fcr_field_t; - -typedef struct stc_mfs47_uart_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_uart_fcr0_field_t; - -typedef struct stc_mfs47_uart_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_uart_fcr1_field_t; - -typedef struct stc_mfs47_uart_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_uart_fbyte_field_t; - -typedef struct stc_mfs47_uart_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_uart_fbyte1_field_t; - -typedef struct stc_mfs47_uart_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_uart_fbyte2_field_t; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* MFS47_CSIO_MODULE register bit fields */ -typedef struct stc_mfs47_csio_smr_field -{ - __IO uint8_t SOE : 1; - __IO uint8_t SCKE : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SCINV : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_csio_smr_field_t; - -typedef struct stc_mfs47_csio_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t SPI : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs47_csio_scr_field_t; - -typedef struct stc_mfs47_csio_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t WT0 : 1; - __IO uint8_t WT1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SOP : 1; -} stc_mfs47_csio_escr_field_t; - -typedef struct stc_mfs47_csio_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t REC : 1; -} stc_mfs47_csio_ssr_field_t; - -typedef struct stc_mfs47_csio_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_csio_fcr_field_t; - -typedef struct stc_mfs47_csio_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_csio_fcr0_field_t; - -typedef struct stc_mfs47_csio_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_csio_fcr1_field_t; - -typedef struct stc_mfs47_csio_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_csio_fbyte_field_t; - -typedef struct stc_mfs47_csio_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_csio_fbyte1_field_t; - -typedef struct stc_mfs47_csio_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_csio_fbyte2_field_t; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* MFS47_LIN_MODULE register bit fields */ -typedef struct stc_mfs47_lin_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_lin_smr_field_t; - -typedef struct stc_mfs47_lin_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t LBR : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs47_lin_scr_field_t; - -typedef struct stc_mfs47_lin_escr_field -{ - __IO uint8_t DEL0 : 1; - __IO uint8_t DEL1 : 1; - __IO uint8_t LBL0 : 1; - __IO uint8_t LBL1 : 1; - __IO uint8_t LBIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t ESBL : 1; -} stc_mfs47_lin_escr_field_t; - -typedef struct stc_mfs47_lin_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t LBD : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs47_lin_ssr_field_t; - -typedef struct stc_mfs47_lin_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs47_lin_bgr_field_t; - -typedef struct stc_mfs47_lin_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs47_lin_bgr1_field_t; - -typedef struct stc_mfs47_lin_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_lin_fcr_field_t; - -typedef struct stc_mfs47_lin_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_lin_fcr0_field_t; - -typedef struct stc_mfs47_lin_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_lin_fcr1_field_t; - -typedef struct stc_mfs47_lin_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_lin_fbyte_field_t; - -typedef struct stc_mfs47_lin_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_lin_fbyte1_field_t; - -typedef struct stc_mfs47_lin_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_lin_fbyte2_field_t; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* MFS47_I2C_MODULE register bit fields */ -typedef struct stc_mfs47_i2c_smr_field -{ - __IO uint8_t ITST0 : 1; - __IO uint8_t ITST1 : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD0 : 1; - __IO uint8_t MD1 : 1; - __IO uint8_t MD2 : 1; -} stc_mfs47_i2c_smr_field_t; - -typedef struct stc_mfs47_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs47_i2c_ibcr_field_t; - -typedef struct stc_mfs47_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs47_i2c_ibsr_field_t; - -typedef struct stc_mfs47_i2c_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t DMA : 1; - __IO uint8_t TSET : 1; - __IO uint8_t REC : 1; -} stc_mfs47_i2c_ssr_field_t; - -typedef struct stc_mfs47_i2c_isba_field -{ - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - __IO uint8_t SAEN : 1; -} stc_mfs47_i2c_isba_field_t; - -typedef struct stc_mfs47_i2c_ismk_field -{ - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - __IO uint8_t EN : 1; -} stc_mfs47_i2c_ismk_field_t; - -typedef struct stc_mfs47_i2c_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_i2c_fcr_field_t; - -typedef struct stc_mfs47_i2c_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_i2c_fcr0_field_t; - -typedef struct stc_mfs47_i2c_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_i2c_fcr1_field_t; - -typedef struct stc_mfs47_i2c_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_i2c_fbyte_field_t; - -typedef struct stc_mfs47_i2c_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_i2c_fbyte1_field_t; - -typedef struct stc_mfs47_i2c_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_i2c_fbyte2_field_t; - -/****************************************************************************** - * MFS_NFC_MODULE - ******************************************************************************/ -/* MFS_NFC_MODULE register bit fields */ -typedef struct stc_mfs_nfc_i2cdnf_field -{ - __IO uint16_t I2CDNF00 : 1; - __IO uint16_t I2CDNF01 : 1; - __IO uint16_t I2CDNF10 : 1; - __IO uint16_t I2CDNF11 : 1; - __IO uint16_t I2CDNF20 : 1; - __IO uint16_t I2CDNF21 : 1; - __IO uint16_t I2CDNF30 : 1; - __IO uint16_t I2CDNF31 : 1; - __IO uint16_t I2CDNF40 : 1; - __IO uint16_t I2CDNF41 : 1; - __IO uint16_t I2CDNF50 : 1; - __IO uint16_t I2CDNF51 : 1; - __IO uint16_t I2CDNF60 : 1; - __IO uint16_t I2CDNF61 : 1; - __IO uint16_t I2CDNF70 : 1; - __IO uint16_t I2CDNF71 : 1; -} stc_mfs_nfc_i2cdnf_field_t; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC_MODULE register bit fields */ -typedef struct stc_crc_crccr_field -{ - __IO uint8_t INIT : 1; - __IO uint8_t CRC32 : 1; - __IO uint8_t LTLEND : 1; - __IO uint8_t LSBFST : 1; - __IO uint8_t CRCLTE : 1; - __IO uint8_t CRCLSF : 1; - __IO uint8_t FXOR : 1; -} stc_crc_crccr_field_t; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* WC_MODULE register bit fields */ -typedef struct stc_wc_wcrd_field -{ - __IO uint8_t CTR0 : 1; - __IO uint8_t CTR1 : 1; - __IO uint8_t CTR2 : 1; - __IO uint8_t CTR3 : 1; - __IO uint8_t CTR4 : 1; - __IO uint8_t CTR5 : 1; -} stc_wc_wcrd_field_t; - -typedef struct stc_wc_wcrl_field -{ - __IO uint8_t RLC0 : 1; - __IO uint8_t RLC1 : 1; - __IO uint8_t RLC2 : 1; - __IO uint8_t RLC3 : 1; - __IO uint8_t RLC4 : 1; - __IO uint8_t RLC5 : 1; -} stc_wc_wcrl_field_t; - -typedef struct stc_wc_wccr_field -{ - __IO uint8_t WCIF : 1; - __IO uint8_t WCIE : 1; - __IO uint8_t CS0 : 1; - __IO uint8_t CS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t WCOP : 1; - __IO uint8_t WCEN : 1; -} stc_wc_wccr_field_t; - -typedef struct stc_wc_clk_sel_field -{ - __IO uint16_t SEL_IN : 1; - uint16_t RESERVED1 : 7; - __IO uint16_t SEL_OUT : 1; -} stc_wc_clk_sel_field_t; - -typedef struct stc_wc_clk_en_field -{ - __IO uint8_t CLK_EN : 1; - __IO uint8_t CLK_EN_R : 1; -} stc_wc_clk_en_field_t; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* EXBUS_MODULE register bit fields */ -typedef struct stc_exbus_mode0_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode0_field_t; - -typedef struct stc_exbus_mode1_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode1_field_t; - -typedef struct stc_exbus_mode2_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode2_field_t; - -typedef struct stc_exbus_mode3_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode3_field_t; - -typedef struct stc_exbus_mode4_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode4_field_t; - -typedef struct stc_exbus_mode5_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode5_field_t; - -typedef struct stc_exbus_mode6_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode6_field_t; - -typedef struct stc_exbus_mode7_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode7_field_t; - -typedef struct stc_exbus_tim0_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim0_field_t; - -typedef struct stc_exbus_tim1_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim1_field_t; - -typedef struct stc_exbus_tim2_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim2_field_t; - -typedef struct stc_exbus_tim3_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim3_field_t; - -typedef struct stc_exbus_tim4_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim4_field_t; - -typedef struct stc_exbus_tim5_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim5_field_t; - -typedef struct stc_exbus_tim6_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim6_field_t; - -typedef struct stc_exbus_tim7_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim7_field_t; - -typedef struct stc_exbus_area0_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area0_field_t; - -typedef struct stc_exbus_area1_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area1_field_t; - -typedef struct stc_exbus_area2_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area2_field_t; - -typedef struct stc_exbus_area3_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area3_field_t; - -typedef struct stc_exbus_area4_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area4_field_t; - -typedef struct stc_exbus_area5_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area5_field_t; - -typedef struct stc_exbus_area6_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area6_field_t; - -typedef struct stc_exbus_area7_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area7_field_t; - -typedef struct stc_exbus_atim0_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim0_field_t; - -typedef struct stc_exbus_atim1_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim1_field_t; - -typedef struct stc_exbus_atim2_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim2_field_t; - -typedef struct stc_exbus_atim3_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim3_field_t; - -typedef struct stc_exbus_atim4_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim4_field_t; - -typedef struct stc_exbus_atim5_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim5_field_t; - -typedef struct stc_exbus_atim6_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim6_field_t; - -typedef struct stc_exbus_atim7_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim7_field_t; - -typedef struct stc_exbus_dclkr_field -{ - __IO uint8_t MDIV0 : 1; - __IO uint8_t MDIV1 : 1; - __IO uint8_t MDIV2 : 1; - __IO uint8_t MDIV3 : 1; - __IO uint8_t MCLKON : 1; -} stc_exbus_dclkr_field_t; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB_MODULE register bit fields */ -typedef struct stc_usb_hcnt_field -{ - __IO uint16_t HOST : 1; - __IO uint16_t URST : 1; - __IO uint16_t SOFIRE : 1; - __IO uint16_t DIRE : 1; - __IO uint16_t CNNIRE : 1; - __IO uint16_t CMPIRE : 1; - __IO uint16_t URIRE : 1; - __IO uint16_t RWKIRE : 1; - __IO uint16_t RETRY : 1; - __IO uint16_t CANCEL : 1; - __IO uint16_t SOFSTEP : 1; -} stc_usb_hcnt_field_t; - -typedef struct stc_usb_hcnt0_field -{ - __IO uint8_t HOST : 1; - __IO uint8_t URST : 1; - __IO uint8_t SOFIRE : 1; - __IO uint8_t DIRE : 1; - __IO uint8_t CNNIRE : 1; - __IO uint8_t CMPIRE : 1; - __IO uint8_t URIRE : 1; - __IO uint8_t RWKIRE : 1; -} stc_usb_hcnt0_field_t; - -typedef struct stc_usb_hcnt1_field -{ - __IO uint8_t RETRY : 1; - __IO uint8_t CANCEL : 1; - __IO uint8_t SOFSTEP : 1; -} stc_usb_hcnt1_field_t; - -typedef struct stc_usb_hirq_field -{ - __IO uint8_t SOFIRQ : 1; - __IO uint8_t DIRQ : 1; - __IO uint8_t CNNIRQ : 1; - __IO uint8_t CMPIRQ : 1; - __IO uint8_t URIRQ : 1; - __IO uint8_t RWKIRQ : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TCAN : 1; -} stc_usb_hirq_field_t; - -typedef struct stc_usb_herr_field -{ - __IO uint8_t HS0 : 1; - __IO uint8_t HS1 : 1; - __IO uint8_t STUFF : 1; - __IO uint8_t TGERR : 1; - __IO uint8_t CRC : 1; - __IO uint8_t TOUT : 1; - __IO uint8_t RERR : 1; - __IO uint8_t LSTOF : 1; -} stc_usb_herr_field_t; - -typedef struct stc_usb_hstate_field -{ - __IO uint8_t CSTAT : 1; - __IO uint8_t TMODE : 1; - __IO uint8_t SUSP : 1; - __IO uint8_t SOFBUSY : 1; - __IO uint8_t CLKSEL : 1; - __IO uint8_t ALIVE : 1; -} stc_usb_hstate_field_t; - -typedef struct stc_usb_hfcomp_field -{ - __IO uint8_t FRAMECOMP0 : 1; - __IO uint8_t FRAMECOMP1 : 1; - __IO uint8_t FRAMECOMP2 : 1; - __IO uint8_t FRAMECOMP3 : 1; - __IO uint8_t FRAMECOMP4 : 1; - __IO uint8_t FRAMECOMP5 : 1; - __IO uint8_t FRAMECOMP6 : 1; - __IO uint8_t FRAMECOMP7 : 1; -} stc_usb_hfcomp_field_t; - -typedef struct stc_usb_hrtimer_field -{ - __IO uint16_t RTIMER0 : 1; - __IO uint16_t RTIMER1 : 1; - __IO uint16_t RTIMER2 : 1; - __IO uint16_t RTIMER3 : 1; - __IO uint16_t RTIMER4 : 1; - __IO uint16_t RTIMER5 : 1; - __IO uint16_t RTIMER6 : 1; - __IO uint16_t RTIMER7 : 1; - __IO uint16_t RTIMER8 : 1; - __IO uint16_t RTIMER9 : 1; - __IO uint16_t RTIMER10 : 1; - __IO uint16_t RTIMER11 : 1; - __IO uint16_t RTIMER12 : 1; - __IO uint16_t RTIMER13 : 1; - __IO uint16_t RTIMER14 : 1; - __IO uint16_t RTIMER15 : 1; -} stc_usb_hrtimer_field_t; - -typedef struct stc_usb_hrtimer0_field -{ - __IO uint8_t RTIMER00 : 1; - __IO uint8_t RTIMER01 : 1; - __IO uint8_t RTIMER02 : 1; - __IO uint8_t RTIMER03 : 1; - __IO uint8_t RTIMER04 : 1; - __IO uint8_t RTIMER05 : 1; - __IO uint8_t RTIMER06 : 1; - __IO uint8_t RTIMER07 : 1; -} stc_usb_hrtimer0_field_t; - -typedef struct stc_usb_hrtimer1_field -{ - __IO uint8_t RTIMER10 : 1; - __IO uint8_t RTIMER11 : 1; - __IO uint8_t RTIMER12 : 1; - __IO uint8_t RTIMER13 : 1; - __IO uint8_t RTIMER14 : 1; - __IO uint8_t RTIMER15 : 1; - __IO uint8_t RTIMER16 : 1; - __IO uint8_t RTIMER17 : 1; -} stc_usb_hrtimer1_field_t; - -typedef struct stc_usb_hrtimer2_field -{ - __IO uint8_t RTIMER20 : 1; - __IO uint8_t RTIMER21 : 1; - __IO uint8_t RTIMER22 : 1; -} stc_usb_hrtimer2_field_t; - -typedef struct stc_usb_hadr_field -{ - __IO uint8_t ADDRESS0 : 1; - __IO uint8_t ADDRESS1 : 1; - __IO uint8_t ADDRESS2 : 1; - __IO uint8_t ADDRESS3 : 1; - __IO uint8_t ADDRESS4 : 1; - __IO uint8_t ADDRESS5 : 1; - __IO uint8_t ADDRESS6 : 1; -} stc_usb_hadr_field_t; - -typedef struct stc_usb_heof_field -{ - __IO uint16_t EOF0 : 1; - __IO uint16_t EOF1 : 1; - __IO uint16_t EOF2 : 1; - __IO uint16_t EOF3 : 1; - __IO uint16_t EOF4 : 1; - __IO uint16_t EOF5 : 1; - __IO uint16_t EOF6 : 1; - __IO uint16_t EOF7 : 1; - __IO uint16_t EOF8 : 1; - __IO uint16_t EOF9 : 1; - __IO uint16_t EOF10 : 1; - __IO uint16_t EOF11 : 1; - __IO uint16_t EOF12 : 1; - __IO uint16_t EOF13 : 1; - __IO uint16_t EOF14 : 1; - __IO uint16_t EOF15 : 1; -} stc_usb_heof_field_t; - -typedef struct stc_usb_heof0_field -{ - __IO uint8_t EOF00 : 1; - __IO uint8_t EOF01 : 1; - __IO uint8_t EOF02 : 1; - __IO uint8_t EOF03 : 1; - __IO uint8_t EOF04 : 1; - __IO uint8_t EOF05 : 1; - __IO uint8_t EOF06 : 1; - __IO uint8_t EOF07 : 1; -} stc_usb_heof0_field_t; - -typedef struct stc_usb_heof1_field -{ - __IO uint8_t EOF10 : 1; - __IO uint8_t EOF11 : 1; - __IO uint8_t EOF12 : 1; - __IO uint8_t EOF13 : 1; - __IO uint8_t EOF14 : 1; - __IO uint8_t EOF15 : 1; -} stc_usb_heof1_field_t; - -typedef struct stc_usb_hframe_field -{ - __IO uint16_t FRAME0 : 1; - __IO uint16_t FRAME1 : 1; - __IO uint16_t FRAME2 : 1; - __IO uint16_t FRAME3 : 1; - __IO uint16_t FRAME4 : 1; - __IO uint16_t FRAME5 : 1; - __IO uint16_t FRAME6 : 1; - __IO uint16_t FRAME7 : 1; - __IO uint16_t FRAME8 : 1; - __IO uint16_t FRAME9 : 1; - __IO uint16_t FRAME10 : 1; -} stc_usb_hframe_field_t; - -typedef struct stc_usb_hframe0_field -{ - __IO uint8_t FRAME00 : 1; - __IO uint8_t FRAME01 : 1; - __IO uint8_t FRAME02 : 1; - __IO uint8_t FRAME03 : 1; - __IO uint8_t FRAME04 : 1; - __IO uint8_t FRAME05 : 1; - __IO uint8_t FRAME06 : 1; - __IO uint8_t FRAME07 : 1; -} stc_usb_hframe0_field_t; - -typedef struct stc_usb_hframe1_field -{ - __IO uint8_t FRAME10 : 1; - __IO uint8_t FRAME11 : 1; - __IO uint8_t FRAME12 : 1; - __IO uint8_t FRAME13 : 1; -} stc_usb_hframe1_field_t; - -typedef struct stc_usb_htoken_field -{ - __IO uint8_t ENDPT0 : 1; - __IO uint8_t ENDPT1 : 1; - __IO uint8_t ENDPT2 : 1; - __IO uint8_t ENDPT3 : 1; - __IO uint8_t TKNEN0 : 1; - __IO uint8_t TKNEN1 : 1; - __IO uint8_t TKNEN2 : 1; - __IO uint8_t TGGL : 1; -} stc_usb_htoken_field_t; - -typedef struct stc_usb_udcc_field -{ - __IO uint16_t PWC : 1; - __IO uint16_t RFBK : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t STALCLREN : 1; - __IO uint16_t USTP : 1; - __IO uint16_t HCONX : 1; - __IO uint16_t RESUM : 1; - __IO uint16_t RST : 1; -} stc_usb_udcc_field_t; - -typedef struct stc_usb_ep0c_field -{ - __IO uint16_t PKS00 : 1; - __IO uint16_t PKS01 : 1; - __IO uint16_t PKS02 : 1; - __IO uint16_t PKS03 : 1; - __IO uint16_t PKS04 : 1; - __IO uint16_t PKS05 : 1; - __IO uint16_t PKS06 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; -} stc_usb_ep0c_field_t; - -typedef struct stc_usb_ep1c_field -{ - __IO uint16_t PKS10 : 1; - __IO uint16_t PKS11 : 1; - __IO uint16_t PKS12 : 1; - __IO uint16_t PKS13 : 1; - __IO uint16_t PKS14 : 1; - __IO uint16_t PKS15 : 1; - __IO uint16_t PKS16 : 1; - __IO uint16_t PKS17 : 1; - __IO uint16_t PKS18 : 1; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep1c_field_t; - -typedef struct stc_usb_ep2c_field -{ - __IO uint16_t PKS20 : 1; - __IO uint16_t PKS21 : 1; - __IO uint16_t PKS22 : 1; - __IO uint16_t PKS23 : 1; - __IO uint16_t PKS24 : 1; - __IO uint16_t PKS25 : 1; - __IO uint16_t PKS26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep2c_field_t; - -typedef struct stc_usb_ep3c_field -{ - __IO uint16_t PKS30 : 1; - __IO uint16_t PKS31 : 1; - __IO uint16_t PKS32 : 1; - __IO uint16_t PKS33 : 1; - __IO uint16_t PKS34 : 1; - __IO uint16_t PKS35 : 1; - __IO uint16_t PKS36 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep3c_field_t; - -typedef struct stc_usb_ep4c_field -{ - __IO uint16_t PKS40 : 1; - __IO uint16_t PKS41 : 1; - __IO uint16_t PKS42 : 1; - __IO uint16_t PKS43 : 1; - __IO uint16_t PKS44 : 1; - __IO uint16_t PKS45 : 1; - __IO uint16_t PKS46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep4c_field_t; - -typedef struct stc_usb_ep5c_field -{ - __IO uint16_t PKS50 : 1; - __IO uint16_t PKS51 : 1; - __IO uint16_t PKS52 : 1; - __IO uint16_t PKS53 : 1; - __IO uint16_t PKS54 : 1; - __IO uint16_t PKS55 : 1; - __IO uint16_t PKS56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep5c_field_t; - -typedef struct stc_usb_tmsp_field -{ - __IO uint16_t TMSP0 : 1; - __IO uint16_t TMSP1 : 1; - __IO uint16_t TMSP2 : 1; - __IO uint16_t TMSP3 : 1; - __IO uint16_t TMSP4 : 1; - __IO uint16_t TMSP5 : 1; - __IO uint16_t TMSP6 : 1; - __IO uint16_t TMSP7 : 1; - __IO uint16_t TMSP8 : 1; - __IO uint16_t TMSP9 : 1; - __IO uint16_t TMSP10 : 1; -} stc_usb_tmsp_field_t; - -typedef struct stc_usb_udcs_field -{ - __IO uint8_t CONF : 1; - __IO uint8_t SETP : 1; - __IO uint8_t WKUP : 1; - __IO uint8_t BRST : 1; - __IO uint8_t SOF : 1; - __IO uint8_t SUSP : 1; -} stc_usb_udcs_field_t; - -typedef struct stc_usb_udcie_field -{ - __IO uint8_t CONFIE : 1; - __IO uint8_t CONFN : 1; - __IO uint8_t WKUPIE : 1; - __IO uint8_t BRSTIE : 1; - __IO uint8_t SOFIE : 1; - __IO uint8_t SUSPIE : 1; -} stc_usb_udcie_field_t; - -typedef struct stc_usb_ep0is_field -{ - uint16_t RESERVED1 : 10; - __IO uint16_t DRQI : 1; - uint16_t RESERVED2 : 3; - __IO uint16_t DRQIIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0is_field_t; - -typedef struct stc_usb_ep0os_field -{ - __IO uint16_t SIZE0 : 1; - __IO uint16_t SIZE1 : 1; - __IO uint16_t SIZE2 : 1; - __IO uint16_t SIZE3 : 1; - __IO uint16_t SIZE4 : 1; - __IO uint16_t SIZE5 : 1; - __IO uint16_t SIZE6 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQO : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQOIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0os_field_t; - -typedef struct stc_usb_ep1s_field -{ - __IO uint16_t SIZE10 : 1; - __IO uint16_t SIZE11 : 1; - __IO uint16_t SIZE12 : 1; - __IO uint16_t SIZE13 : 1; - __IO uint16_t SIZE14 : 1; - __IO uint16_t SIZE15 : 1; - __IO uint16_t SIZE16 : 1; - __IO uint16_t SIZE17 : 1; - __IO uint16_t SIZE18 : 1; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep1s_field_t; - -typedef struct stc_usb_ep2s_field -{ - __IO uint16_t SIZE20 : 1; - __IO uint16_t SIZE21 : 1; - __IO uint16_t SIZE22 : 1; - __IO uint16_t SIZE23 : 1; - __IO uint16_t SIZE24 : 1; - __IO uint16_t SIZE25 : 1; - __IO uint16_t SIZE26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep2s_field_t; - -typedef struct stc_usb_ep4s_field -{ - __IO uint16_t SIZE40 : 1; - __IO uint16_t SIZE41 : 1; - __IO uint16_t SIZE42 : 1; - __IO uint16_t SIZE43 : 1; - __IO uint16_t SIZE44 : 1; - __IO uint16_t SIZE45 : 1; - __IO uint16_t SIZE46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep4s_field_t; - -typedef struct stc_usb_ep5s_field -{ - __IO uint16_t SIZE50 : 1; - __IO uint16_t SIZE51 : 1; - __IO uint16_t SIZE52 : 1; - __IO uint16_t SIZE53 : 1; - __IO uint16_t SIZE54 : 1; - __IO uint16_t SIZE55 : 1; - __IO uint16_t SIZE56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep5s_field_t; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMAC_MODULE register bit fields */ -typedef struct stc_dmac_dmacr_field -{ - uint32_t RESERVED1 : 24; - __IO uint32_t DH0 : 1; - __IO uint32_t DH1 : 1; - __IO uint32_t DH2 : 1; - __IO uint32_t DH3 : 1; - __IO uint32_t PR : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t DS : 1; - __IO uint32_t DE : 1; -} stc_dmac_dmacr_field_t; - -typedef struct stc_dmac_dmaca0_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca0_field_t; - -typedef struct stc_dmac_dmacb0_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb0_field_t; - -typedef struct stc_dmac_dmaca1_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca1_field_t; - -typedef struct stc_dmac_dmacb1_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb1_field_t; - -typedef struct stc_dmac_dmaca2_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca2_field_t; - -typedef struct stc_dmac_dmacb2_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb2_field_t; - -typedef struct stc_dmac_dmaca3_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca3_field_t; - -typedef struct stc_dmac_dmacb3_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb3_field_t; - -typedef struct stc_dmac_dmaca4_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca4_field_t; - -typedef struct stc_dmac_dmacb4_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb4_field_t; - -typedef struct stc_dmac_dmaca5_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca5_field_t; - -typedef struct stc_dmac_dmacb5_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb5_field_t; - -typedef struct stc_dmac_dmaca6_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca6_field_t; - -typedef struct stc_dmac_dmacb6_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb6_field_t; - -typedef struct stc_dmac_dmaca7_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca7_field_t; - -typedef struct stc_dmac_dmacb7_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb7_field_t; - -/****************************************************************************** - * ETHERNET_MAC_MODULE - ******************************************************************************/ -/* ETHERNET_MAC_MODULE register bit fields */ -typedef struct stc_ethernet_mac_mcr_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t RE : 1; - __IO uint32_t TE : 1; - __IO uint32_t DC : 1; - __IO uint32_t BL0 : 1; - __IO uint32_t BL1 : 1; - __IO uint32_t ACS : 1; - __IO uint32_t LUD : 1; - __IO uint32_t DR : 1; - __IO uint32_t IPC : 1; - __IO uint32_t DM : 1; - __IO uint32_t LM : 1; - __IO uint32_t DO : 1; - __IO uint32_t FES : 1; - __IO uint32_t PS : 1; - __IO uint32_t DCRS : 1; - __IO uint32_t IFG0 : 1; - __IO uint32_t IFG1 : 1; - __IO uint32_t IFG2 : 1; - __IO uint32_t JE : 1; - __IO uint32_t BE : 1; - __IO uint32_t JD : 1; - __IO uint32_t WD : 1; - __IO uint32_t TC : 1; - __IO uint32_t CST : 1; -} stc_ethernet_mac_mcr_field_t; - -typedef struct stc_ethernet_mac_mffr_field -{ - __IO uint32_t PR : 1; - __IO uint32_t HUC : 1; - __IO uint32_t HMC : 1; - __IO uint32_t DAIF : 1; - __IO uint32_t PM : 1; - __IO uint32_t DB : 1; - __IO uint32_t PCF0 : 1; - __IO uint32_t PCF1 : 1; - __IO uint32_t SAIF : 1; - __IO uint32_t SAF : 1; - __IO uint32_t HPF : 1; - uint32_t RESERVED1 :20; - __IO uint32_t RA : 1; -} stc_ethernet_mac_mffr_field_t; - -typedef struct stc_ethernet_mac_mhtrh_field -{ - __IO uint32_t HTH0 : 1; - __IO uint32_t HTH1 : 1; - __IO uint32_t HTH2 : 1; - __IO uint32_t HTH3 : 1; - __IO uint32_t HTH4 : 1; - __IO uint32_t HTH5 : 1; - __IO uint32_t HTH6 : 1; - __IO uint32_t HTH7 : 1; - __IO uint32_t HTH8 : 1; - __IO uint32_t HTH9 : 1; - __IO uint32_t HTH10 : 1; - __IO uint32_t HTH11 : 1; - __IO uint32_t HTH12 : 1; - __IO uint32_t HTH13 : 1; - __IO uint32_t HTH14 : 1; - __IO uint32_t HTH15 : 1; - __IO uint32_t HTH16 : 1; - __IO uint32_t HTH17 : 1; - __IO uint32_t HTH18 : 1; - __IO uint32_t HTH19 : 1; - __IO uint32_t HTH20 : 1; - __IO uint32_t HTH21 : 1; - __IO uint32_t HTH22 : 1; - __IO uint32_t HTH23 : 1; - __IO uint32_t HTH24 : 1; - __IO uint32_t HTH25 : 1; - __IO uint32_t HTH26 : 1; - __IO uint32_t HTH27 : 1; - __IO uint32_t HTH28 : 1; - __IO uint32_t HTH29 : 1; - __IO uint32_t HTH30 : 1; - __IO uint32_t HTH31 : 1; -} stc_ethernet_mac_mhtrh_field_t; - -typedef struct stc_ethernet_mac_mhtrl_field -{ - __IO uint32_t HTL0 : 1; - __IO uint32_t HTL1 : 1; - __IO uint32_t HTL2 : 1; - __IO uint32_t HTL3 : 1; - __IO uint32_t HTL4 : 1; - __IO uint32_t HTL5 : 1; - __IO uint32_t HTL6 : 1; - __IO uint32_t HTL7 : 1; - __IO uint32_t HTL8 : 1; - __IO uint32_t HTL9 : 1; - __IO uint32_t HTL10 : 1; - __IO uint32_t HTL11 : 1; - __IO uint32_t HTL12 : 1; - __IO uint32_t HTL13 : 1; - __IO uint32_t HTL14 : 1; - __IO uint32_t HTL15 : 1; - __IO uint32_t HTL16 : 1; - __IO uint32_t HTL17 : 1; - __IO uint32_t HTL18 : 1; - __IO uint32_t HTL19 : 1; - __IO uint32_t HTL20 : 1; - __IO uint32_t HTL21 : 1; - __IO uint32_t HTL22 : 1; - __IO uint32_t HTL23 : 1; - __IO uint32_t HTL24 : 1; - __IO uint32_t HTL25 : 1; - __IO uint32_t HTL26 : 1; - __IO uint32_t HTL27 : 1; - __IO uint32_t HTL28 : 1; - __IO uint32_t HTL29 : 1; - __IO uint32_t HTL30 : 1; - __IO uint32_t HTL31 : 1; -} stc_ethernet_mac_mhtrl_field_t; - -typedef struct stc_ethernet_mac_gar_field -{ - __IO uint32_t GB : 1; - __IO uint32_t GW : 1; - __IO uint32_t CR0 : 1; - __IO uint32_t CR1 : 1; - __IO uint32_t CR2 : 1; - __IO uint32_t CR3 : 1; - __IO uint32_t GR0 : 1; - __IO uint32_t GR1 : 1; - __IO uint32_t GR2 : 1; - __IO uint32_t GR3 : 1; - __IO uint32_t GR4 : 1; - __IO uint32_t PA0 : 1; - __IO uint32_t PA1 : 1; - __IO uint32_t PA2 : 1; - __IO uint32_t PA3 : 1; - __IO uint32_t PA4 : 1; -} stc_ethernet_mac_gar_field_t; - -typedef struct stc_ethernet_mac_gdr_field -{ - __IO uint32_t GD0 : 1; - __IO uint32_t GD1 : 1; - __IO uint32_t GD2 : 1; - __IO uint32_t GD3 : 1; - __IO uint32_t GD4 : 1; - __IO uint32_t GD5 : 1; - __IO uint32_t GD6 : 1; - __IO uint32_t GD7 : 1; - __IO uint32_t GD8 : 1; - __IO uint32_t GD9 : 1; - __IO uint32_t GD10 : 1; - __IO uint32_t GD11 : 1; - __IO uint32_t GD12 : 1; - __IO uint32_t GD13 : 1; - __IO uint32_t GD14 : 1; - __IO uint32_t GD15 : 1; -} stc_ethernet_mac_gdr_field_t; - -typedef struct stc_ethernet_mac_fcr_field -{ - __IO uint32_t FCB_BPA : 1; - __IO uint32_t TFE : 1; - __IO uint32_t RFE : 1; - __IO uint32_t UP : 1; - __IO uint32_t PLT0 : 1; - __IO uint32_t PLT1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t DZPQ : 1; - uint32_t RESERVED2 : 8; - __IO uint32_t PT0 : 1; - __IO uint32_t PT1 : 1; - __IO uint32_t PT2 : 1; - __IO uint32_t PT3 : 1; - __IO uint32_t PT4 : 1; - __IO uint32_t PT5 : 1; - __IO uint32_t PT6 : 1; - __IO uint32_t PT7 : 1; - __IO uint32_t PT8 : 1; - __IO uint32_t PT9 : 1; - __IO uint32_t PT10 : 1; - __IO uint32_t PT11 : 1; - __IO uint32_t PT12 : 1; - __IO uint32_t PT13 : 1; - __IO uint32_t PT14 : 1; - __IO uint32_t PT15 : 1; -} stc_ethernet_mac_fcr_field_t; - -typedef struct stc_ethernet_mac_vtr_field -{ - __IO uint32_t VL0 : 1; - __IO uint32_t VL1 : 1; - __IO uint32_t VL2 : 1; - __IO uint32_t VL3 : 1; - __IO uint32_t VL4 : 1; - __IO uint32_t VL5 : 1; - __IO uint32_t VL6 : 1; - __IO uint32_t VL7 : 1; - __IO uint32_t VL8 : 1; - __IO uint32_t VL9 : 1; - __IO uint32_t VL10 : 1; - __IO uint32_t VL11 : 1; - __IO uint32_t VL12 : 1; - __IO uint32_t VL13 : 1; - __IO uint32_t VL14 : 1; - __IO uint32_t VL15 : 1; - __IO uint32_t ETV : 1; -} stc_ethernet_mac_vtr_field_t; - -typedef struct stc_ethernet_mac_rwffr_field -{ - __IO uint32_t RWFFR0 : 1; - __IO uint32_t RWFFR1 : 1; - __IO uint32_t RWFFR2 : 1; - __IO uint32_t RWFFR3 : 1; - __IO uint32_t RWFFR4 : 1; - __IO uint32_t RWFFR5 : 1; - __IO uint32_t RWFFR6 : 1; - __IO uint32_t RWFFR7 : 1; - __IO uint32_t RWFFR8 : 1; - __IO uint32_t RWFFR9 : 1; - __IO uint32_t RWFFR10 : 1; - __IO uint32_t RWFFR11 : 1; - __IO uint32_t RWFFR12 : 1; - __IO uint32_t RWFFR13 : 1; - __IO uint32_t RWFFR14 : 1; - __IO uint32_t RWFFR15 : 1; - __IO uint32_t RWFFR16 : 1; - __IO uint32_t RWFFR17 : 1; - __IO uint32_t RWFFR18 : 1; - __IO uint32_t RWFFR19 : 1; - __IO uint32_t RWFFR20 : 1; - __IO uint32_t RWFFR21 : 1; - __IO uint32_t RWFFR22 : 1; - __IO uint32_t RWFFR23 : 1; - __IO uint32_t RWFFR24 : 1; - __IO uint32_t RWFFR25 : 1; - __IO uint32_t RWFFR26 : 1; - __IO uint32_t RWFFR27 : 1; - __IO uint32_t RWFFR28 : 1; - __IO uint32_t RWFFR29 : 1; - __IO uint32_t RWFFR30 : 1; - __IO uint32_t RWFFR31 : 1; -} stc_ethernet_mac_rwffr_field_t; - -typedef struct stc_ethernet_mac_pmtr_field -{ - __IO uint32_t PD : 1; - __IO uint32_t MPE : 1; - __IO uint32_t WFE : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t MPR : 1; - __IO uint32_t WPR : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t GU : 1; - uint32_t RESERVED3 :21; - __IO uint32_t RWFFRPR : 1; -} stc_ethernet_mac_pmtr_field_t; - -typedef struct stc_ethernet_mac_lpicsr_field -{ - __IO uint32_t TLPIEN : 1; - __IO uint32_t TLPIEX : 1; - __IO uint32_t RLPIEN : 1; - __IO uint32_t RLPIEX : 1; - uint32_t RESERVED1 : 4; - __IO uint32_t TLPIST : 1; - __IO uint32_t RLPIST : 1; - uint32_t RESERVED2 : 6; - __IO uint32_t LPIEN : 1; - __IO uint32_t PLS : 1; - __IO uint32_t PLSEN : 1; - __IO uint32_t LPITXA : 1; -} stc_ethernet_mac_lpicsr_field_t; - -typedef struct stc_ethernet_mac_lpitcr_field -{ - __IO uint32_t TWT0 : 1; - __IO uint32_t TWT1 : 1; - __IO uint32_t TWT2 : 1; - __IO uint32_t TWT3 : 1; - __IO uint32_t TWT4 : 1; - __IO uint32_t TWT5 : 1; - __IO uint32_t TWT6 : 1; - __IO uint32_t TWT7 : 1; - __IO uint32_t TWT8 : 1; - __IO uint32_t TWT9 : 1; - __IO uint32_t TWT10 : 1; - __IO uint32_t TWT11 : 1; - __IO uint32_t TWT12 : 1; - __IO uint32_t TWT13 : 1; - __IO uint32_t TWT14 : 1; - __IO uint32_t TWT15 : 1; - __IO uint32_t LIT0 : 1; - __IO uint32_t LIT1 : 1; - __IO uint32_t LIT2 : 1; - __IO uint32_t LIT3 : 1; - __IO uint32_t LIT4 : 1; - __IO uint32_t LIT5 : 1; - __IO uint32_t LIT6 : 1; - __IO uint32_t LIT7 : 1; - __IO uint32_t LIT8 : 1; - __IO uint32_t LIT9 : 1; -} stc_ethernet_mac_lpitcr_field_t; - -typedef struct stc_ethernet_mac_isr_field -{ - __IO uint32_t RGIS : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t PIS : 1; - __IO uint32_t MIS : 1; - __IO uint32_t RIS : 1; - __IO uint32_t TIS : 1; - __IO uint32_t COIS : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t TSIS : 1; - __IO uint32_t LPIIS : 1; -} stc_ethernet_mac_isr_field_t; - -typedef struct stc_ethernet_mac_imr_field -{ - __IO uint32_t RGIM : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t PIM : 1; - uint32_t RESERVED2 : 5; - __IO uint32_t TSIM : 1; - __IO uint32_t LPIIM : 1; -} stc_ethernet_mac_imr_field_t; - -typedef struct stc_ethernet_mac_mar0h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 :15; - __IO uint32_t MO : 1; -} stc_ethernet_mac_mar0h_field_t; - -typedef struct stc_ethernet_mac_mar0l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar0l_field_t; - -typedef struct stc_ethernet_mac_mar1h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar1h_field_t; - -typedef struct stc_ethernet_mac_mar1l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar1l_field_t; - -typedef struct stc_ethernet_mac_mar2h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar2h_field_t; - -typedef struct stc_ethernet_mac_mar2l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar2l_field_t; - -typedef struct stc_ethernet_mac_mar3h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar3h_field_t; - -typedef struct stc_ethernet_mac_mar3l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar3l_field_t; - -typedef struct stc_ethernet_mac_mar4h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar4h_field_t; - -typedef struct stc_ethernet_mac_mar4l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar4l_field_t; - -typedef struct stc_ethernet_mac_mar5h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar5h_field_t; - -typedef struct stc_ethernet_mac_mar5l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar5l_field_t; - -typedef struct stc_ethernet_mac_mar6h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar6h_field_t; - -typedef struct stc_ethernet_mac_mar6l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar6l_field_t; - -typedef struct stc_ethernet_mac_mar7h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar7h_field_t; - -typedef struct stc_ethernet_mac_mar7l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar7l_field_t; - -typedef struct stc_ethernet_mac_mar8h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar8h_field_t; - -typedef struct stc_ethernet_mac_mar8l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar8l_field_t; - -typedef struct stc_ethernet_mac_mar9h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar9h_field_t; - -typedef struct stc_ethernet_mac_mar9l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar9l_field_t; - -typedef struct stc_ethernet_mac_mar10h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar10h_field_t; - -typedef struct stc_ethernet_mac_mar10l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar10l_field_t; - -typedef struct stc_ethernet_mac_mar11h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar11h_field_t; - -typedef struct stc_ethernet_mac_mar11l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar11l_field_t; - -typedef struct stc_ethernet_mac_mar12h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar12h_field_t; - -typedef struct stc_ethernet_mac_mar12l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar12l_field_t; - -typedef struct stc_ethernet_mac_mar13h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar13h_field_t; - -typedef struct stc_ethernet_mac_mar13l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar13l_field_t; - -typedef struct stc_ethernet_mac_mar14h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar14h_field_t; - -typedef struct stc_ethernet_mac_mar14l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar14l_field_t; - -typedef struct stc_ethernet_mac_mar15h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar15h_field_t; - -typedef struct stc_ethernet_mac_mar15l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar15l_field_t; - -typedef struct stc_ethernet_mac_rgsr_field -{ - __IO uint32_t LM : 1; - __IO uint32_t LSP0 : 1; - __IO uint32_t LSP1 : 1; - __IO uint32_t LS : 1; -} stc_ethernet_mac_rgsr_field_t; - -typedef struct stc_ethernet_mac_tscr_field -{ - __IO uint32_t TSE : 1; - __IO uint32_t TFCU : 1; - __IO uint32_t TSI : 1; - __IO uint32_t TSU : 1; - __IO uint32_t TITE : 1; - __IO uint32_t TARU : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t TSEA : 1; - __IO uint32_t TSDB : 1; - __IO uint32_t TSV2E : 1; - __IO uint32_t TETSP : 1; - __IO uint32_t TSIP6E : 1; - __IO uint32_t TSIP4E : 1; - __IO uint32_t TETSEM : 1; - __IO uint32_t TSMRM : 1; - __IO uint32_t TSPS0 : 1; - __IO uint32_t TSPS1 : 1; - __IO uint32_t TSENMF : 1; - uint32_t RESERVED2 : 5; - __IO uint32_t ATSFC : 1; -} stc_ethernet_mac_tscr_field_t; - -typedef struct stc_ethernet_mac_ssir_field -{ - __IO uint32_t SSINC0 : 1; - __IO uint32_t SSINC1 : 1; - __IO uint32_t SSINC2 : 1; - __IO uint32_t SSINC3 : 1; - __IO uint32_t SSINC4 : 1; - __IO uint32_t SSINC5 : 1; - __IO uint32_t SSINC6 : 1; - __IO uint32_t SSINC7 : 1; -} stc_ethernet_mac_ssir_field_t; - -typedef struct stc_ethernet_mac_stsr_field -{ - __IO uint32_t TSS0 : 1; - __IO uint32_t TSS1 : 1; - __IO uint32_t TSS2 : 1; - __IO uint32_t TSS3 : 1; - __IO uint32_t TSS4 : 1; - __IO uint32_t TSS5 : 1; - __IO uint32_t TSS6 : 1; - __IO uint32_t TSS7 : 1; - __IO uint32_t TSS8 : 1; - __IO uint32_t TSS9 : 1; - __IO uint32_t TSS10 : 1; - __IO uint32_t TSS11 : 1; - __IO uint32_t TSS12 : 1; - __IO uint32_t TSS13 : 1; - __IO uint32_t TSS14 : 1; - __IO uint32_t TSS15 : 1; - __IO uint32_t TSS16 : 1; - __IO uint32_t TSS17 : 1; - __IO uint32_t TSS18 : 1; - __IO uint32_t TSS19 : 1; - __IO uint32_t TSS20 : 1; - __IO uint32_t TSS21 : 1; - __IO uint32_t TSS22 : 1; - __IO uint32_t TSS23 : 1; - __IO uint32_t TSS24 : 1; - __IO uint32_t TSS25 : 1; - __IO uint32_t TSS26 : 1; - __IO uint32_t TSS27 : 1; - __IO uint32_t TSS28 : 1; - __IO uint32_t TSS29 : 1; - __IO uint32_t TSS30 : 1; - __IO uint32_t TSS31 : 1; -} stc_ethernet_mac_stsr_field_t; - -typedef struct stc_ethernet_mac_stnr_field -{ - __IO uint32_t TSSS0 : 1; - __IO uint32_t TSSS1 : 1; - __IO uint32_t TSSS2 : 1; - __IO uint32_t TSSS3 : 1; - __IO uint32_t TSSS4 : 1; - __IO uint32_t TSSS5 : 1; - __IO uint32_t TSSS6 : 1; - __IO uint32_t TSSS7 : 1; - __IO uint32_t TSSS8 : 1; - __IO uint32_t TSSS9 : 1; - __IO uint32_t TSSS10 : 1; - __IO uint32_t TSSS11 : 1; - __IO uint32_t TSSS12 : 1; - __IO uint32_t TSSS13 : 1; - __IO uint32_t TSSS14 : 1; - __IO uint32_t TSSS15 : 1; - __IO uint32_t TSSS16 : 1; - __IO uint32_t TSSS17 : 1; - __IO uint32_t TSSS18 : 1; - __IO uint32_t TSSS19 : 1; - __IO uint32_t TSSS20 : 1; - __IO uint32_t TSSS21 : 1; - __IO uint32_t TSSS22 : 1; - __IO uint32_t TSSS23 : 1; - __IO uint32_t TSSS24 : 1; - __IO uint32_t TSSS25 : 1; - __IO uint32_t TSSS26 : 1; - __IO uint32_t TSSS27 : 1; - __IO uint32_t TSSS28 : 1; - __IO uint32_t TSSS29 : 1; - __IO uint32_t TSSS30 : 1; -} stc_ethernet_mac_stnr_field_t; - -typedef struct stc_ethernet_mac_stsur_field -{ - __IO uint32_t TSS0 : 1; - __IO uint32_t TSS1 : 1; - __IO uint32_t TSS2 : 1; - __IO uint32_t TSS3 : 1; - __IO uint32_t TSS4 : 1; - __IO uint32_t TSS5 : 1; - __IO uint32_t TSS6 : 1; - __IO uint32_t TSS7 : 1; - __IO uint32_t TSS8 : 1; - __IO uint32_t TSS9 : 1; - __IO uint32_t TSS10 : 1; - __IO uint32_t TSS11 : 1; - __IO uint32_t TSS12 : 1; - __IO uint32_t TSS13 : 1; - __IO uint32_t TSS14 : 1; - __IO uint32_t TSS15 : 1; - __IO uint32_t TSS16 : 1; - __IO uint32_t TSS17 : 1; - __IO uint32_t TSS18 : 1; - __IO uint32_t TSS19 : 1; - __IO uint32_t TSS20 : 1; - __IO uint32_t TSS21 : 1; - __IO uint32_t TSS22 : 1; - __IO uint32_t TSS23 : 1; - __IO uint32_t TSS24 : 1; - __IO uint32_t TSS25 : 1; - __IO uint32_t TSS26 : 1; - __IO uint32_t TSS27 : 1; - __IO uint32_t TSS28 : 1; - __IO uint32_t TSS29 : 1; - __IO uint32_t TSS30 : 1; - __IO uint32_t TSS31 : 1; -} stc_ethernet_mac_stsur_field_t; - -typedef struct stc_ethernet_mac_stnur_field -{ - __IO uint32_t TSSS0 : 1; - __IO uint32_t TSSS1 : 1; - __IO uint32_t TSSS2 : 1; - __IO uint32_t TSSS3 : 1; - __IO uint32_t TSSS4 : 1; - __IO uint32_t TSSS5 : 1; - __IO uint32_t TSSS6 : 1; - __IO uint32_t TSSS7 : 1; - __IO uint32_t TSSS8 : 1; - __IO uint32_t TSSS9 : 1; - __IO uint32_t TSSS10 : 1; - __IO uint32_t TSSS11 : 1; - __IO uint32_t TSSS12 : 1; - __IO uint32_t TSSS13 : 1; - __IO uint32_t TSSS14 : 1; - __IO uint32_t TSSS15 : 1; - __IO uint32_t TSSS16 : 1; - __IO uint32_t TSSS17 : 1; - __IO uint32_t TSSS18 : 1; - __IO uint32_t TSSS19 : 1; - __IO uint32_t TSSS20 : 1; - __IO uint32_t TSSS21 : 1; - __IO uint32_t TSSS22 : 1; - __IO uint32_t TSSS23 : 1; - __IO uint32_t TSSS24 : 1; - __IO uint32_t TSSS25 : 1; - __IO uint32_t TSSS26 : 1; - __IO uint32_t TSSS27 : 1; - __IO uint32_t TSSS28 : 1; - __IO uint32_t TSSS29 : 1; - __IO uint32_t TSSS30 : 1; - __IO uint32_t ADDSUB : 1; -} stc_ethernet_mac_stnur_field_t; - -typedef struct stc_ethernet_mac_tsar_field -{ - __IO uint32_t TSAR0 : 1; - __IO uint32_t TSAR1 : 1; - __IO uint32_t TSAR2 : 1; - __IO uint32_t TSAR3 : 1; - __IO uint32_t TSAR4 : 1; - __IO uint32_t TSAR5 : 1; - __IO uint32_t TSAR6 : 1; - __IO uint32_t TSAR7 : 1; - __IO uint32_t TSAR8 : 1; - __IO uint32_t TSAR9 : 1; - __IO uint32_t TSAR10 : 1; - __IO uint32_t TSAR11 : 1; - __IO uint32_t TSAR12 : 1; - __IO uint32_t TSAR13 : 1; - __IO uint32_t TSAR14 : 1; - __IO uint32_t TSAR15 : 1; - __IO uint32_t TSAR16 : 1; - __IO uint32_t TSAR17 : 1; - __IO uint32_t TSAR18 : 1; - __IO uint32_t TSAR19 : 1; - __IO uint32_t TSAR20 : 1; - __IO uint32_t TSAR21 : 1; - __IO uint32_t TSAR22 : 1; - __IO uint32_t TSAR23 : 1; - __IO uint32_t TSAR24 : 1; - __IO uint32_t TSAR25 : 1; - __IO uint32_t TSAR26 : 1; - __IO uint32_t TSAR27 : 1; - __IO uint32_t TSAR28 : 1; - __IO uint32_t TSAR29 : 1; - __IO uint32_t TSAR30 : 1; - __IO uint32_t TSAR31 : 1; -} stc_ethernet_mac_tsar_field_t; - -typedef struct stc_ethernet_mac_ttsr_field -{ - __IO uint32_t TSTR0 : 1; - __IO uint32_t TSTR1 : 1; - __IO uint32_t TSTR2 : 1; - __IO uint32_t TSTR3 : 1; - __IO uint32_t TSTR4 : 1; - __IO uint32_t TSTR5 : 1; - __IO uint32_t TSTR6 : 1; - __IO uint32_t TSTR7 : 1; - __IO uint32_t TSTR8 : 1; - __IO uint32_t TSTR9 : 1; - __IO uint32_t TSTR10 : 1; - __IO uint32_t TSTR11 : 1; - __IO uint32_t TSTR12 : 1; - __IO uint32_t TSTR13 : 1; - __IO uint32_t TSTR14 : 1; - __IO uint32_t TSTR15 : 1; - __IO uint32_t TSTR16 : 1; - __IO uint32_t TSTR17 : 1; - __IO uint32_t TSTR18 : 1; - __IO uint32_t TSTR19 : 1; - __IO uint32_t TSTR20 : 1; - __IO uint32_t TSTR21 : 1; - __IO uint32_t TSTR22 : 1; - __IO uint32_t TSTR23 : 1; - __IO uint32_t TSTR24 : 1; - __IO uint32_t TSTR25 : 1; - __IO uint32_t TSTR26 : 1; - __IO uint32_t TSTR27 : 1; - __IO uint32_t TSTR28 : 1; - __IO uint32_t TSTR29 : 1; - __IO uint32_t TSTR30 : 1; - __IO uint32_t TSTR31 : 1; -} stc_ethernet_mac_ttsr_field_t; - -typedef struct stc_ethernet_mac_ttnr_field -{ - __IO uint32_t TSTR0 : 1; - __IO uint32_t TSTR1 : 1; - __IO uint32_t TSTR2 : 1; - __IO uint32_t TSTR3 : 1; - __IO uint32_t TSTR4 : 1; - __IO uint32_t TSTR5 : 1; - __IO uint32_t TSTR6 : 1; - __IO uint32_t TSTR7 : 1; - __IO uint32_t TSTR8 : 1; - __IO uint32_t TSTR9 : 1; - __IO uint32_t TSTR10 : 1; - __IO uint32_t TSTR11 : 1; - __IO uint32_t TSTR12 : 1; - __IO uint32_t TSTR13 : 1; - __IO uint32_t TSTR14 : 1; - __IO uint32_t TSTR15 : 1; - __IO uint32_t TSTR16 : 1; - __IO uint32_t TSTR17 : 1; - __IO uint32_t TSTR18 : 1; - __IO uint32_t TSTR19 : 1; - __IO uint32_t TSTR20 : 1; - __IO uint32_t TSTR21 : 1; - __IO uint32_t TSTR22 : 1; - __IO uint32_t TSTR23 : 1; - __IO uint32_t TSTR24 : 1; - __IO uint32_t TSTR25 : 1; - __IO uint32_t TSTR26 : 1; - __IO uint32_t TSTR27 : 1; - __IO uint32_t TSTR28 : 1; - __IO uint32_t TSTR29 : 1; - __IO uint32_t TSTR30 : 1; -} stc_ethernet_mac_ttnr_field_t; - -typedef struct stc_ethernet_mac_sthwsr_field -{ - __IO uint32_t TSHWR0 : 1; - __IO uint32_t TSHWR1 : 1; - __IO uint32_t TSHWR2 : 1; - __IO uint32_t TSHWR3 : 1; - __IO uint32_t TSHWR4 : 1; - __IO uint32_t TSHWR5 : 1; - __IO uint32_t TSHWR6 : 1; - __IO uint32_t TSHWR7 : 1; - __IO uint32_t TSHWR8 : 1; - __IO uint32_t TSHWR9 : 1; - __IO uint32_t TSHWR10 : 1; - __IO uint32_t TSHWR11 : 1; - __IO uint32_t TSHWR12 : 1; - __IO uint32_t TSHWR13 : 1; - __IO uint32_t TSHWR14 : 1; - __IO uint32_t TSHWR15 : 1; -} stc_ethernet_mac_sthwsr_field_t; - -typedef struct stc_ethernet_mac_tsr_field -{ - __IO uint32_t TSSOVF : 1; - __IO uint32_t TSTART : 1; - __IO uint32_t ATSTS : 1; - __IO uint32_t TRGTER : 1; - uint32_t RESERVED1 :20; - __IO uint32_t ATSSTM : 1; - __IO uint32_t ATSNS0 : 1; - __IO uint32_t ATSNS1 : 1; - __IO uint32_t ATSNS2 : 1; -} stc_ethernet_mac_tsr_field_t; - -typedef struct stc_ethernet_mac_ppscr_field -{ - __IO uint32_t PPSCTRL0 : 1; - __IO uint32_t PPSCTRL1 : 1; - __IO uint32_t PPSCTRL2 : 1; - __IO uint32_t PPSCTRL3 : 1; -} stc_ethernet_mac_ppscr_field_t; - -typedef struct stc_ethernet_mac_atnr_field -{ - __IO uint32_t ATN0 : 1; - __IO uint32_t ATN1 : 1; - __IO uint32_t ATN2 : 1; - __IO uint32_t ATN3 : 1; - __IO uint32_t ATN4 : 1; - __IO uint32_t ATN5 : 1; - __IO uint32_t ATN6 : 1; - __IO uint32_t ATN7 : 1; - __IO uint32_t ATN8 : 1; - __IO uint32_t ATN9 : 1; - __IO uint32_t ATN10 : 1; - __IO uint32_t ATN11 : 1; - __IO uint32_t ATN12 : 1; - __IO uint32_t ATN13 : 1; - __IO uint32_t ATN14 : 1; - __IO uint32_t ATN15 : 1; - __IO uint32_t ATN16 : 1; - __IO uint32_t ATN17 : 1; - __IO uint32_t ATN18 : 1; - __IO uint32_t ATN19 : 1; - __IO uint32_t ATN20 : 1; - __IO uint32_t ATN21 : 1; - __IO uint32_t ATN22 : 1; - __IO uint32_t ATN23 : 1; - __IO uint32_t ATN24 : 1; - __IO uint32_t ATN25 : 1; - __IO uint32_t ATN26 : 1; - __IO uint32_t ATN27 : 1; - __IO uint32_t ATN28 : 1; - __IO uint32_t ATN29 : 1; - __IO uint32_t ATN30 : 1; -} stc_ethernet_mac_atnr_field_t; - -typedef struct stc_ethernet_mac_atsr_field -{ - __IO uint32_t ATS0 : 1; - __IO uint32_t ATS1 : 1; - __IO uint32_t ATS2 : 1; - __IO uint32_t ATS3 : 1; - __IO uint32_t ATS4 : 1; - __IO uint32_t ATS5 : 1; - __IO uint32_t ATS6 : 1; - __IO uint32_t ATS7 : 1; - __IO uint32_t ATS8 : 1; - __IO uint32_t ATS9 : 1; - __IO uint32_t ATS10 : 1; - __IO uint32_t ATS11 : 1; - __IO uint32_t ATS12 : 1; - __IO uint32_t ATS13 : 1; - __IO uint32_t ATS14 : 1; - __IO uint32_t ATS15 : 1; - __IO uint32_t ATS16 : 1; - __IO uint32_t ATS17 : 1; - __IO uint32_t ATS18 : 1; - __IO uint32_t ATS19 : 1; - __IO uint32_t ATS20 : 1; - __IO uint32_t ATS21 : 1; - __IO uint32_t ATS22 : 1; - __IO uint32_t ATS23 : 1; - __IO uint32_t ATS24 : 1; - __IO uint32_t ATS25 : 1; - __IO uint32_t ATS26 : 1; - __IO uint32_t ATS27 : 1; - __IO uint32_t ATS28 : 1; - __IO uint32_t ATS29 : 1; - __IO uint32_t ATS30 : 1; - __IO uint32_t ATS31 : 1; -} stc_ethernet_mac_atsr_field_t; - -typedef struct stc_ethernet_mac_mar16h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar16h_field_t; - -typedef struct stc_ethernet_mac_mar16l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar16l_field_t; - -typedef struct stc_ethernet_mac_mar17h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar17h_field_t; - -typedef struct stc_ethernet_mac_mar17l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar17l_field_t; - -typedef struct stc_ethernet_mac_mar18h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar18h_field_t; - -typedef struct stc_ethernet_mac_mar18l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar18l_field_t; - -typedef struct stc_ethernet_mac_mar19h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar19h_field_t; - -typedef struct stc_ethernet_mac_mar19l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar19l_field_t; - -typedef struct stc_ethernet_mac_mar20h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar20h_field_t; - -typedef struct stc_ethernet_mac_mar20l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar20l_field_t; - -typedef struct stc_ethernet_mac_mar21h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar21h_field_t; - -typedef struct stc_ethernet_mac_mar21l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar21l_field_t; - -typedef struct stc_ethernet_mac_mar22h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar22h_field_t; - -typedef struct stc_ethernet_mac_mar22l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar22l_field_t; - -typedef struct stc_ethernet_mac_mar23h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar23h_field_t; - -typedef struct stc_ethernet_mac_mar23l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar23l_field_t; - -typedef struct stc_ethernet_mac_mar24h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar24h_field_t; - -typedef struct stc_ethernet_mac_mar24l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar24l_field_t; - -typedef struct stc_ethernet_mac_mar25h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar25h_field_t; - -typedef struct stc_ethernet_mac_mar25l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar25l_field_t; - -typedef struct stc_ethernet_mac_mar26h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar26h_field_t; - -typedef struct stc_ethernet_mac_mar26l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar26l_field_t; - -typedef struct stc_ethernet_mac_mar27h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar27h_field_t; - -typedef struct stc_ethernet_mac_mar27l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar27l_field_t; - -typedef struct stc_ethernet_mac_mar28h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar28h_field_t; - -typedef struct stc_ethernet_mac_mar28l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar28l_field_t; - -typedef struct stc_ethernet_mac_mar29h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar29h_field_t; - -typedef struct stc_ethernet_mac_mar29l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar29l_field_t; - -typedef struct stc_ethernet_mac_mar30h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar30h_field_t; - -typedef struct stc_ethernet_mac_mar30l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar30l_field_t; - -typedef struct stc_ethernet_mac_mar31h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar31h_field_t; - -typedef struct stc_ethernet_mac_mar31l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar31l_field_t; - -typedef struct stc_ethernet_mac_bmr_field -{ - __IO uint32_t SWR : 1; - __IO uint32_t DA : 1; - __IO uint32_t DSL0 : 1; - __IO uint32_t DSL1 : 1; - __IO uint32_t DSL2 : 1; - __IO uint32_t DSL3 : 1; - __IO uint32_t DSL4 : 1; - __IO uint32_t ATDS : 1; - __IO uint32_t PBL0 : 1; - __IO uint32_t PBL1 : 1; - __IO uint32_t PBL2 : 1; - __IO uint32_t PBL3 : 1; - __IO uint32_t PBL4 : 1; - __IO uint32_t PBL5 : 1; - __IO uint32_t PR0 : 1; - __IO uint32_t PR1 : 1; - __IO uint32_t FB : 1; - __IO uint32_t RPBL0 : 1; - __IO uint32_t RPBL1 : 1; - __IO uint32_t RPBL2 : 1; - __IO uint32_t RPBL3 : 1; - __IO uint32_t RPBL4 : 1; - __IO uint32_t RPBL5 : 1; - __IO uint32_t USP : 1; - __IO uint32_t _8XPBL : 1; - __IO uint32_t AAL : 1; - __IO uint32_t MB : 1; - __IO uint32_t TXPR : 1; -} stc_ethernet_mac_bmr_field_t; - -typedef struct stc_ethernet_mac_tpdr_field -{ - __IO uint32_t TPD0 : 1; - __IO uint32_t TPD1 : 1; - __IO uint32_t TPD2 : 1; - __IO uint32_t TPD3 : 1; - __IO uint32_t TPD4 : 1; - __IO uint32_t TPD5 : 1; - __IO uint32_t TPD6 : 1; - __IO uint32_t TPD7 : 1; - __IO uint32_t TPD8 : 1; - __IO uint32_t TPD9 : 1; - __IO uint32_t TPD10 : 1; - __IO uint32_t TPD11 : 1; - __IO uint32_t TPD12 : 1; - __IO uint32_t TPD13 : 1; - __IO uint32_t TPD14 : 1; - __IO uint32_t TPD15 : 1; - __IO uint32_t TPD16 : 1; - __IO uint32_t TPD17 : 1; - __IO uint32_t TPD18 : 1; - __IO uint32_t TPD19 : 1; - __IO uint32_t TPD20 : 1; - __IO uint32_t TPD21 : 1; - __IO uint32_t TPD22 : 1; - __IO uint32_t TPD23 : 1; - __IO uint32_t TPD24 : 1; - __IO uint32_t TPD25 : 1; - __IO uint32_t TPD26 : 1; - __IO uint32_t TPD27 : 1; - __IO uint32_t TPD28 : 1; - __IO uint32_t TPD29 : 1; - __IO uint32_t TPD30 : 1; - __IO uint32_t TPD31 : 1; -} stc_ethernet_mac_tpdr_field_t; - -typedef struct stc_ethernet_mac_rpdr_field -{ - __IO uint32_t RPD0 : 1; - __IO uint32_t RPD1 : 1; - __IO uint32_t RPD2 : 1; - __IO uint32_t RPD3 : 1; - __IO uint32_t RPD4 : 1; - __IO uint32_t RPD5 : 1; - __IO uint32_t RPD6 : 1; - __IO uint32_t RPD7 : 1; - __IO uint32_t RPD8 : 1; - __IO uint32_t RPD9 : 1; - __IO uint32_t RPD10 : 1; - __IO uint32_t RPD11 : 1; - __IO uint32_t RPD12 : 1; - __IO uint32_t RPD13 : 1; - __IO uint32_t RPD14 : 1; - __IO uint32_t RPD15 : 1; - __IO uint32_t RPD16 : 1; - __IO uint32_t RPD17 : 1; - __IO uint32_t RPD18 : 1; - __IO uint32_t RPD19 : 1; - __IO uint32_t RPD20 : 1; - __IO uint32_t RPD21 : 1; - __IO uint32_t RPD22 : 1; - __IO uint32_t RPD23 : 1; - __IO uint32_t RPD24 : 1; - __IO uint32_t RPD25 : 1; - __IO uint32_t RPD26 : 1; - __IO uint32_t RPD27 : 1; - __IO uint32_t RPD28 : 1; - __IO uint32_t RPD29 : 1; - __IO uint32_t RPD30 : 1; - __IO uint32_t RPD31 : 1; -} stc_ethernet_mac_rpdr_field_t; - -typedef struct stc_ethernet_mac_rdlar_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t SRL2 : 1; - __IO uint32_t SRL3 : 1; - __IO uint32_t SRL4 : 1; - __IO uint32_t SRL5 : 1; - __IO uint32_t SRL6 : 1; - __IO uint32_t SRL7 : 1; - __IO uint32_t SRL8 : 1; - __IO uint32_t SRL9 : 1; - __IO uint32_t SRL10 : 1; - __IO uint32_t SRL11 : 1; - __IO uint32_t SRL12 : 1; - __IO uint32_t SRL13 : 1; - __IO uint32_t SRL14 : 1; - __IO uint32_t SRL15 : 1; - __IO uint32_t SRL16 : 1; - __IO uint32_t SRL17 : 1; - __IO uint32_t SRL18 : 1; - __IO uint32_t SRL19 : 1; - __IO uint32_t SRL20 : 1; - __IO uint32_t SRL21 : 1; - __IO uint32_t SRL22 : 1; - __IO uint32_t SRL23 : 1; - __IO uint32_t SRL24 : 1; - __IO uint32_t SRL25 : 1; - __IO uint32_t SRL26 : 1; - __IO uint32_t SRL27 : 1; - __IO uint32_t SRL28 : 1; - __IO uint32_t SRL29 : 1; - __IO uint32_t SRL30 : 1; - __IO uint32_t SRL31 : 1; -} stc_ethernet_mac_rdlar_field_t; - -typedef struct stc_ethernet_mac_tdlar_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t STL2 : 1; - __IO uint32_t STL3 : 1; - __IO uint32_t STL4 : 1; - __IO uint32_t STL5 : 1; - __IO uint32_t STL6 : 1; - __IO uint32_t STL7 : 1; - __IO uint32_t STL8 : 1; - __IO uint32_t STL9 : 1; - __IO uint32_t STL10 : 1; - __IO uint32_t STL11 : 1; - __IO uint32_t STL12 : 1; - __IO uint32_t STL13 : 1; - __IO uint32_t STL14 : 1; - __IO uint32_t STL15 : 1; - __IO uint32_t STL16 : 1; - __IO uint32_t STL17 : 1; - __IO uint32_t STL18 : 1; - __IO uint32_t STL19 : 1; - __IO uint32_t STL20 : 1; - __IO uint32_t STL21 : 1; - __IO uint32_t STL22 : 1; - __IO uint32_t STL23 : 1; - __IO uint32_t STL24 : 1; - __IO uint32_t STL25 : 1; - __IO uint32_t STL26 : 1; - __IO uint32_t STL27 : 1; - __IO uint32_t STL28 : 1; - __IO uint32_t STL29 : 1; - __IO uint32_t STL30 : 1; - __IO uint32_t STL31 : 1; -} stc_ethernet_mac_tdlar_field_t; - -typedef struct stc_ethernet_mac_sr_field -{ - __IO uint32_t TI : 1; - __IO uint32_t TPS : 1; - __IO uint32_t TU : 1; - __IO uint32_t TJT : 1; - __IO uint32_t OVF : 1; - __IO uint32_t UNF : 1; - __IO uint32_t RI : 1; - __IO uint32_t RU : 1; - __IO uint32_t RPS : 1; - __IO uint32_t RWT : 1; - __IO uint32_t ETI : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t FBI : 1; - __IO uint32_t ERI : 1; - __IO uint32_t AIS : 1; - __IO uint32_t NIS : 1; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - __IO uint32_t RS2 : 1; - __IO uint32_t TS0 : 1; - __IO uint32_t TS1 : 1; - __IO uint32_t TS2 : 1; - __IO uint32_t EB0 : 1; - __IO uint32_t EB1 : 1; - __IO uint32_t EB2 : 1; - __IO uint32_t GLI : 1; - __IO uint32_t GMI : 1; - __IO uint32_t GPI : 1; - __IO uint32_t TTI : 1; - __IO uint32_t GLPII : 1; -} stc_ethernet_mac_sr_field_t; - -typedef struct stc_ethernet_mac_omr_field -{ - uint32_t RESERVED1 : 1; - __IO uint32_t SR : 1; - __IO uint32_t OSF : 1; - __IO uint32_t RTC0 : 1; - __IO uint32_t RTC1 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t FUF : 1; - __IO uint32_t FEF : 1; - uint32_t RESERVED3 : 5; - __IO uint32_t ST : 1; - __IO uint32_t TTC0 : 1; - __IO uint32_t TTC1 : 1; - __IO uint32_t TTC2 : 1; - uint32_t RESERVED4 : 3; - __IO uint32_t FTF : 1; - __IO uint32_t TSF : 1; - uint32_t RESERVED5 : 2; - __IO uint32_t DFF : 1; - __IO uint32_t RSF : 1; - __IO uint32_t DT : 1; -} stc_ethernet_mac_omr_field_t; - -typedef struct stc_ethernet_mac_ier_field -{ - __IO uint32_t TIE : 1; - __IO uint32_t TSE : 1; - __IO uint32_t TUE : 1; - __IO uint32_t TJE : 1; - __IO uint32_t OVE : 1; - __IO uint32_t UNE : 1; - __IO uint32_t RIE : 1; - __IO uint32_t RUE : 1; - __IO uint32_t RSE : 1; - __IO uint32_t RWE : 1; - __IO uint32_t ETE : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t FBE : 1; - __IO uint32_t ERE : 1; - __IO uint32_t AIE : 1; - __IO uint32_t NIE : 1; -} stc_ethernet_mac_ier_field_t; - -typedef struct stc_ethernet_mac_mfbocr_field -{ - __IO uint32_t NMFH0 : 1; - __IO uint32_t NMFH1 : 1; - __IO uint32_t NMFH2 : 1; - __IO uint32_t NMFH3 : 1; - __IO uint32_t NMFH4 : 1; - __IO uint32_t NMFH5 : 1; - __IO uint32_t NMFH6 : 1; - __IO uint32_t NMFH7 : 1; - __IO uint32_t NMFH8 : 1; - __IO uint32_t NMFH9 : 1; - __IO uint32_t NMFH10 : 1; - __IO uint32_t NMFH11 : 1; - __IO uint32_t NMFH12 : 1; - __IO uint32_t NMFH13 : 1; - __IO uint32_t NMFH14 : 1; - __IO uint32_t NMFH15 : 1; - __IO uint32_t ONMFH : 1; - __IO uint32_t NMFF0 : 1; - __IO uint32_t NMFF1 : 1; - __IO uint32_t NMFF2 : 1; - __IO uint32_t NMFF3 : 1; - __IO uint32_t NMFF4 : 1; - __IO uint32_t NMFF5 : 1; - __IO uint32_t NMFF6 : 1; - __IO uint32_t NMFF7 : 1; - __IO uint32_t NMFF8 : 1; - __IO uint32_t NMFF9 : 1; - __IO uint32_t NMFF10 : 1; - __IO uint32_t ONMFF : 1; -} stc_ethernet_mac_mfbocr_field_t; - -typedef struct stc_ethernet_mac_riwtr_field -{ - __IO uint32_t RIWT0 : 1; - __IO uint32_t RIWT1 : 1; - __IO uint32_t RIWT2 : 1; - __IO uint32_t RIWT3 : 1; - __IO uint32_t RIWT4 : 1; - __IO uint32_t RIWT5 : 1; - __IO uint32_t RIWT6 : 1; - __IO uint32_t RIWT7 : 1; -} stc_ethernet_mac_riwtr_field_t; - -typedef struct stc_ethernet_mac_ahbsr_field -{ - __IO uint32_t AHBS : 1; -} stc_ethernet_mac_ahbsr_field_t; - -typedef struct stc_ethernet_mac_chtdr_field -{ - __IO uint32_t HTDAP0 : 1; - __IO uint32_t HTDAP1 : 1; - __IO uint32_t HTDAP2 : 1; - __IO uint32_t HTDAP3 : 1; - __IO uint32_t HTDAP4 : 1; - __IO uint32_t HTDAP5 : 1; - __IO uint32_t HTDAP6 : 1; - __IO uint32_t HTDAP7 : 1; - __IO uint32_t HTDAP8 : 1; - __IO uint32_t HTDAP9 : 1; - __IO uint32_t HTDAP10 : 1; - __IO uint32_t HTDAP11 : 1; - __IO uint32_t HTDAP12 : 1; - __IO uint32_t HTDAP13 : 1; - __IO uint32_t HTDAP14 : 1; - __IO uint32_t HTDAP15 : 1; - __IO uint32_t HTDAP16 : 1; - __IO uint32_t HTDAP17 : 1; - __IO uint32_t HTDAP18 : 1; - __IO uint32_t HTDAP19 : 1; - __IO uint32_t HTDAP20 : 1; - __IO uint32_t HTDAP21 : 1; - __IO uint32_t HTDAP22 : 1; - __IO uint32_t HTDAP23 : 1; - __IO uint32_t HTDAP24 : 1; - __IO uint32_t HTDAP25 : 1; - __IO uint32_t HTDAP26 : 1; - __IO uint32_t HTDAP27 : 1; - __IO uint32_t HTDAP28 : 1; - __IO uint32_t HTDAP29 : 1; - __IO uint32_t HTDAP30 : 1; - __IO uint32_t HTDAP31 : 1; -} stc_ethernet_mac_chtdr_field_t; - -typedef struct stc_ethernet_mac_chrdr_field -{ - __IO uint32_t HRDAP0 : 1; - __IO uint32_t HRDAP1 : 1; - __IO uint32_t HRDAP2 : 1; - __IO uint32_t HRDAP3 : 1; - __IO uint32_t HRDAP4 : 1; - __IO uint32_t HRDAP5 : 1; - __IO uint32_t HRDAP6 : 1; - __IO uint32_t HRDAP7 : 1; - __IO uint32_t HRDAP8 : 1; - __IO uint32_t HRDAP9 : 1; - __IO uint32_t HRDAP10 : 1; - __IO uint32_t HRDAP11 : 1; - __IO uint32_t HRDAP12 : 1; - __IO uint32_t HRDAP13 : 1; - __IO uint32_t HRDAP14 : 1; - __IO uint32_t HRDAP15 : 1; - __IO uint32_t HRDAP16 : 1; - __IO uint32_t HRDAP17 : 1; - __IO uint32_t HRDAP18 : 1; - __IO uint32_t HRDAP19 : 1; - __IO uint32_t HRDAP20 : 1; - __IO uint32_t HRDAP21 : 1; - __IO uint32_t HRDAP22 : 1; - __IO uint32_t HRDAP23 : 1; - __IO uint32_t HRDAP24 : 1; - __IO uint32_t HRDAP25 : 1; - __IO uint32_t HRDAP26 : 1; - __IO uint32_t HRDAP27 : 1; - __IO uint32_t HRDAP28 : 1; - __IO uint32_t HRDAP29 : 1; - __IO uint32_t HRDAP30 : 1; - __IO uint32_t HRDAP31 : 1; -} stc_ethernet_mac_chrdr_field_t; - -typedef struct stc_ethernet_mac_chtbar_field -{ - __IO uint32_t HTBAR0 : 1; - __IO uint32_t HTBAR1 : 1; - __IO uint32_t HTBAR2 : 1; - __IO uint32_t HTBAR3 : 1; - __IO uint32_t HTBAR4 : 1; - __IO uint32_t HTBAR5 : 1; - __IO uint32_t HTBAR6 : 1; - __IO uint32_t HTBAR7 : 1; - __IO uint32_t HTBAR8 : 1; - __IO uint32_t HTBAR9 : 1; - __IO uint32_t HTBAR10 : 1; - __IO uint32_t HTBAR11 : 1; - __IO uint32_t HTBAR12 : 1; - __IO uint32_t HTBAR13 : 1; - __IO uint32_t HTBAR14 : 1; - __IO uint32_t HTBAR15 : 1; - __IO uint32_t HTBAR16 : 1; - __IO uint32_t HTBAR17 : 1; - __IO uint32_t HTBAR18 : 1; - __IO uint32_t HTBAR19 : 1; - __IO uint32_t HTBAR20 : 1; - __IO uint32_t HTBAR21 : 1; - __IO uint32_t HTBAR22 : 1; - __IO uint32_t HTBAR23 : 1; - __IO uint32_t HTBAR24 : 1; - __IO uint32_t HTBAR25 : 1; - __IO uint32_t HTBAR26 : 1; - __IO uint32_t HTBAR27 : 1; - __IO uint32_t HTBAR28 : 1; - __IO uint32_t HTBAR29 : 1; - __IO uint32_t HTBAR30 : 1; - __IO uint32_t HTBAR31 : 1; -} stc_ethernet_mac_chtbar_field_t; - -typedef struct stc_ethernet_mac_chrbar_field -{ - __IO uint32_t HRBAR0 : 1; - __IO uint32_t HRBAR1 : 1; - __IO uint32_t HRBAR2 : 1; - __IO uint32_t HRBAR3 : 1; - __IO uint32_t HRBAR4 : 1; - __IO uint32_t HRBAR5 : 1; - __IO uint32_t HRBAR6 : 1; - __IO uint32_t HRBAR7 : 1; - __IO uint32_t HRBAR8 : 1; - __IO uint32_t HRBAR9 : 1; - __IO uint32_t HRBAR10 : 1; - __IO uint32_t HRBAR11 : 1; - __IO uint32_t HRBAR12 : 1; - __IO uint32_t HRBAR13 : 1; - __IO uint32_t HRBAR14 : 1; - __IO uint32_t HRBAR15 : 1; - __IO uint32_t HRBAR16 : 1; - __IO uint32_t HRBAR17 : 1; - __IO uint32_t HRBAR18 : 1; - __IO uint32_t HRBAR19 : 1; - __IO uint32_t HRBAR20 : 1; - __IO uint32_t HRBAR21 : 1; - __IO uint32_t HRBAR22 : 1; - __IO uint32_t HRBAR23 : 1; - __IO uint32_t HRBAR24 : 1; - __IO uint32_t HRBAR25 : 1; - __IO uint32_t HRBAR26 : 1; - __IO uint32_t HRBAR27 : 1; - __IO uint32_t HRBAR28 : 1; - __IO uint32_t HRBAR29 : 1; - __IO uint32_t HRBAR30 : 1; - __IO uint32_t HRBAR31 : 1; -} stc_ethernet_mac_chrbar_field_t; - -/* ETHERNET_CONTROL_MODULE register bit fields */ -typedef struct stc_ethernet_control_eth_mode_field -{ - __IO uint32_t IFMODE : 1; - uint32_t RESERVED1 : 7; - __IO uint32_t RST0 : 1; - __IO uint32_t RST1 : 1; - uint32_t RESERVED2 :18; - __IO uint32_t ASZPPSSEL : 1; -} stc_ethernet_control_eth_mode_field_t; - -typedef struct stc_ethernet_control_eth_clkg_field -{ - __IO uint32_t MACEN0 : 1; - __IO uint32_t MACEN1 : 1; -} stc_ethernet_control_eth_clkg_field_t; - -/****************************************************************************** - * Peripheral register structures - ******************************************************************************/ - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash interface registers */ -typedef struct -{ - union { - __IO uint32_t FASZR; - stc_flash_if_faszr_field_t FASZR_f; - }; - union { - __IO uint32_t FRWTR; - stc_flash_if_frwtr_field_t FRWTR_f; - }; - union { - __IO uint32_t FSTR; - stc_flash_if_fstr_field_t FSTR_f; - }; - uint8_t RESERVED0[4]; - union { - __IO uint32_t FSYNDN; - stc_flash_if_fsyndn_field_t FSYNDN_f; - }; - uint8_t RESERVED1[236]; - union { - __IO uint32_t CRTRMM; - stc_flash_if_crtrmm_field_t CRTRMM_f; - }; -}FM3_FLASH_IF_TypeDef; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock and reset registers */ -typedef struct -{ - union { - __IO uint8_t SCM_CTL; - stc_crg_scm_ctl_field_t SCM_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t SCM_STR; - stc_crg_scm_str_field_t SCM_STR_f; - }; - uint8_t RESERVED1[3]; - __IO uint32_t STB_CTL; - union { - __IO uint16_t RST_STR; - stc_crg_rst_str_field_t RST_STR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t BSC_PSR; - stc_crg_bsc_psr_field_t BSC_PSR_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t APBC0_PSR; - stc_crg_apbc0_psr_field_t APBC0_PSR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t APBC1_PSR; - stc_crg_apbc1_psr_field_t APBC1_PSR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t APBC2_PSR; - stc_crg_apbc2_psr_field_t APBC2_PSR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t SWC_PSR; - stc_crg_swc_psr_field_t SWC_PSR_f; - }; - uint8_t RESERVED7[7]; - union { - __IO uint8_t TTC_PSR; - stc_crg_ttc_psr_field_t TTC_PSR_f; - }; - uint8_t RESERVED8[7]; - union { - __IO uint8_t CSW_TMR; - stc_crg_csw_tmr_field_t CSW_TMR_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t PSW_TMR; - stc_crg_psw_tmr_field_t PSW_TMR_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PLL_CTL1; - stc_crg_pll_ctl1_field_t PLL_CTL1_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t PLL_CTL2; - stc_crg_pll_ctl2_field_t PLL_CTL2_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint16_t CSV_CTL; - stc_crg_csv_ctl_field_t CSV_CTL_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint8_t CSV_STR; - stc_crg_csv_str_field_t CSV_STR_f; - }; - uint8_t RESERVED14[3]; - __IO uint16_t FCSWH_CTL; - uint8_t RESERVED15[2]; - __IO uint16_t FCSWL_CTL; - uint8_t RESERVED16[2]; - __IO uint16_t FCSWD_CTL; - uint8_t RESERVED17[2]; - union { - __IO uint8_t DBWDT_CTL; - stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; - }; - uint8_t RESERVED18[11]; - union { - __IO uint8_t INT_ENR; - stc_crg_int_enr_field_t INT_ENR_f; - }; - uint8_t RESERVED19[3]; - union { - __IO uint8_t INT_STR; - stc_crg_int_str_field_t INT_STR_f; - }; - uint8_t RESERVED20[3]; - union { - __IO uint8_t INT_CLR; - stc_crg_int_clr_field_t INT_CLR_f; - }; -}FM3_CRG_TypeDef; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* Hardware watchdog registers */ -typedef struct -{ - __IO uint32_t WDG_LDR; - __IO uint32_t WDG_VLR; - union { - __IO uint8_t WDG_CTL; - stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; - }; - uint8_t RESERVED0[3]; - __IO uint8_t WDG_ICL; - uint8_t RESERVED1[3]; - union { - __IO uint8_t WDG_RIS; - stc_hwwdt_wdg_ris_field_t WDG_RIS_f; - }; - uint8_t RESERVED2[3055]; - __IO uint32_t WDG_LCK; -}FM3_HWWDT_TypeDef; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* Software watchdog registers */ -typedef struct -{ - __IO uint32_t WDOGLOAD; - __IO uint32_t WDOGVALUE; - union { - __IO uint8_t WDOGCONTROL; - stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t WDOGINTCLR; - union { - __IO uint8_t WDOGRIS; - stc_swwdt_wdogris_field_t WDOGRIS_f; - }; - uint8_t RESERVED1[3055]; - __IO uint32_t WDOGLOCK; -}FM3_SWWDT_TypeDef; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* Dual timer 1/2 registers */ -typedef struct -{ - __IO uint32_t TIMER1LOAD; - __IO uint32_t TIMER1VALUE; - union { - __IO uint32_t TIMER1CONTROL; - stc_dtim_timer1control_field_t TIMER1CONTROL_f; - }; - __IO uint32_t TIMER1INTCLR; - union { - __IO uint32_t TIMER1RIS; - stc_dtim_timer1ris_field_t TIMER1RIS_f; - }; - union { - __IO uint32_t TIMER1MIS; - stc_dtim_timer1mis_field_t TIMER1MIS_f; - }; - __IO uint32_t TIMER1BGLOAD; - uint8_t RESERVED0[4]; - __IO uint32_t TIMER2LOAD; - __IO uint32_t TIMER2VALUE; - union { - __IO uint32_t TIMER2CONTROL; - stc_dtim_timer2control_field_t TIMER2CONTROL_f; - }; - __IO uint32_t TIMER2INTCLR; - union { - __IO uint32_t TIMER2RIS; - stc_dtim_timer2ris_field_t TIMER2RIS_f; - }; - union { - __IO uint32_t TIMER2MIS; - stc_dtim_timer2mis_field_t TIMER2MIS_f; - }; - __IO uint32_t TIMER2BGLOAD; -}FM3_DTIM_TypeDef; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Free Running Timer registers */ -typedef struct -{ - uint8_t RESERVED0[40]; - __IO uint16_t TCCP0; - uint8_t RESERVED1[2]; - __IO uint16_t TCDT0; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TCSA0; - stc_mft_frt_tcsa0_field_t TCSA0_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t TCSB0; - stc_mft_frt_tcsb0_field_t TCSB0_f; - }; - uint8_t RESERVED4[2]; - __IO uint16_t TCCP1; - uint8_t RESERVED5[2]; - __IO uint16_t TCDT1; - uint8_t RESERVED6[2]; - union { - __IO uint16_t TCSA1; - stc_mft_frt_tcsa1_field_t TCSA1_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t TCSB1; - stc_mft_frt_tcsb1_field_t TCSB1_f; - }; - uint8_t RESERVED8[2]; - __IO uint16_t TCCP2; - uint8_t RESERVED9[2]; - __IO uint16_t TCDT2; - uint8_t RESERVED10[2]; - union { - __IO uint16_t TCSA2; - stc_mft_frt_tcsa2_field_t TCSA2_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t TCSB2; - stc_mft_frt_tcsb2_field_t TCSB2_f; - }; -}FM3_MFT_FRT_TypeDef; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Output Compare Unit registers */ -typedef struct -{ - __IO uint16_t OCCP0; - uint8_t RESERVED0[2]; - __IO uint16_t OCCP1; - uint8_t RESERVED1[2]; - __IO uint16_t OCCP2; - uint8_t RESERVED2[2]; - __IO uint16_t OCCP3; - uint8_t RESERVED3[2]; - __IO uint16_t OCCP4; - uint8_t RESERVED4[2]; - __IO uint16_t OCCP5; - uint8_t RESERVED5[2]; - union { - __IO uint8_t OCSA10; - stc_mft_ocu_ocsa10_field_t OCSA10_f; - }; - union { - __IO uint8_t OCSB10; - stc_mft_ocu_ocsb10_field_t OCSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t OCSA32; - stc_mft_ocu_ocsa32_field_t OCSA32_f; - }; - union { - __IO uint8_t OCSB32; - stc_mft_ocu_ocsb32_field_t OCSB32_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint8_t OCSA54; - stc_mft_ocu_ocsa54_field_t OCSA54_f; - }; - union { - __IO uint8_t OCSB54; - stc_mft_ocu_ocsb54_field_t OCSB54_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t OCSC; - stc_mft_ocu_ocsc_field_t OCSC_f; - }; - uint8_t RESERVED9[50]; - union { - __IO uint8_t OCFS10; - stc_mft_ocu_ocfs10_field_t OCFS10_f; - }; - union { - __IO uint8_t OCFS32; - stc_mft_ocu_ocfs32_field_t OCFS32_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint8_t OCFS54; - stc_mft_ocu_ocfs54_field_t OCFS54_f; - }; -}FM3_MFT_OCU_TypeDef; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -typedef struct -{ - uint8_t RESERVED0[128]; - __IO uint16_t WFTM10; - uint8_t RESERVED1[2]; - __IO uint16_t WFTM32; - uint8_t RESERVED2[2]; - __IO uint16_t WFTM54; - uint8_t RESERVED3[2]; - union { - __IO uint16_t WFSA10; - stc_mft_wfg_wfsa10_field_t WFSA10_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t WFSA32; - stc_mft_wfg_wfsa32_field_t WFSA32_f; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t WFSA54; - stc_mft_wfg_wfsa54_field_t WFSA54_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t WFIR; - stc_mft_wfg_wfir_field_t WFIR_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t NZCL; - stc_mft_wfg_nzcl_field_t NZCL_f; - }; -}FM3_MFT_WFG_TypeDef; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Input Capture Unit registers */ -typedef struct -{ - uint8_t RESERVED0[96]; - union { - __IO uint8_t ICFS10; - stc_mft_icu_icfs10_field_t ICFS10_f; - }; - union { - __IO uint8_t ICFS32; - stc_mft_icu_icfs32_field_t ICFS32_f; - }; - uint8_t RESERVED1[6]; - __IO uint16_t ICCP0; - uint8_t RESERVED2[2]; - __IO uint16_t ICCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ICCP2; - uint8_t RESERVED4[2]; - __IO uint16_t ICCP3; - uint8_t RESERVED5[2]; - union { - __IO uint8_t ICSA10; - stc_mft_icu_icsa10_field_t ICSA10_f; - }; - union { - __IO uint8_t ICSB10; - stc_mft_icu_icsb10_field_t ICSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ICSA32; - stc_mft_icu_icsa32_field_t ICSA32_f; - }; - union { - __IO uint8_t ICSB32; - stc_mft_icu_icsb32_field_t ICSB32_f; - }; -}FM3_MFT_ICU_TypeDef; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -typedef struct -{ - uint8_t RESERVED0[160]; - __IO uint16_t ACCP0; - uint8_t RESERVED1[2]; - __IO uint16_t ACCPDN0; - uint8_t RESERVED2[2]; - __IO uint16_t ACCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ACCPDN1; - uint8_t RESERVED4[2]; - __IO uint16_t ACCP2; - uint8_t RESERVED5[2]; - __IO uint16_t ACCPDN2; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ACSB; - stc_mft_adcmp_acsb_field_t ACSB_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t ACSA; - stc_mft_adcmp_acsa_field_t ACSA_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t ATSA; - stc_mft_adcmp_atsa_field_t ATSA_f; - }; -}FM3_MFT_ADCMP_TypeDef; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* Multifunction Timer PPG registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t TTCR0; - stc_mft_ppg_ttcr0_field_t TTCR0_f; - }; - uint8_t RESERVED1[7]; - __IO uint8_t COMP0; - uint8_t RESERVED2[2]; - __IO uint8_t COMP2; - uint8_t RESERVED3[4]; - __IO uint8_t COMP4; - uint8_t RESERVED4[2]; - __IO uint8_t COMP6; - uint8_t RESERVED5[12]; - union { - __IO uint8_t TTCR1; - stc_mft_ppg_ttcr1_field_t TTCR1_f; - }; - uint8_t RESERVED6[7]; - __IO uint8_t COMP1; - uint8_t RESERVED7[2]; - __IO uint8_t COMP3; - uint8_t RESERVED8[4]; - __IO uint8_t COMP5; - uint8_t RESERVED9[2]; - __IO uint8_t COMP7; - uint8_t RESERVED10[12]; - union { - __IO uint8_t TTCR2; - stc_mft_ppg_ttcr2_field_t TTCR2_f; - }; - uint8_t RESERVED11[7]; - __IO uint8_t COMP8; - uint8_t RESERVED12[2]; - __IO uint8_t COMP10; - uint8_t RESERVED13[4]; - __IO uint8_t COMP12; - uint8_t RESERVED14[2]; - __IO uint8_t COMP14; - uint8_t RESERVED15[171]; - union { - __IO uint16_t TRG; - stc_mft_ppg_trg_field_t TRG_f; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t REVC; - stc_mft_ppg_revc_field_t REVC_f; - }; - uint8_t RESERVED17[58]; - union { - __IO uint16_t TRG1; - stc_mft_ppg_trg1_field_t TRG1_f; - }; - uint8_t RESERVED18[2]; - union { - __IO uint16_t REVC1; - stc_mft_ppg_revc1_field_t REVC1_f; - }; - uint8_t RESERVED19[186]; - union { - __IO uint8_t PPGC1; - stc_mft_ppg_ppgc1_field_t PPGC1_f; - }; - union { - __IO uint8_t PPGC0; - stc_mft_ppg_ppgc0_field_t PPGC0_f; - }; - uint8_t RESERVED20[2]; - union { - __IO uint8_t PPGC3; - stc_mft_ppg_ppgc3_field_t PPGC3_f; - }; - union { - __IO uint8_t PPGC2; - stc_mft_ppg_ppgc2_field_t PPGC2_f; - }; - uint8_t RESERVED21[2]; - union { - __IO uint16_t PRL0; - struct { - __IO uint8_t PRLL0; - __IO uint8_t PRLH0; - }; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t PRL1; - struct { - __IO uint8_t PRLL1; - __IO uint8_t PRLH1; - }; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t PRL2; - struct { - __IO uint8_t PRLL2; - __IO uint8_t PRLH2; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t PRL3; - struct { - __IO uint8_t PRLL3; - __IO uint8_t PRLH3; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint8_t GATEC0; - stc_mft_ppg_gatec0_field_t GATEC0_f; - }; - uint8_t RESERVED26[39]; - union { - __IO uint8_t PPGC5; - stc_mft_ppg_ppgc5_field_t PPGC5_f; - }; - union { - __IO uint8_t PPGC4; - stc_mft_ppg_ppgc4_field_t PPGC4_f; - }; - uint8_t RESERVED27[2]; - union { - __IO uint8_t PPGC7; - stc_mft_ppg_ppgc7_field_t PPGC7_f; - }; - union { - __IO uint8_t PPGC6; - stc_mft_ppg_ppgc6_field_t PPGC6_f; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t PRL4; - struct { - __IO uint8_t PRLL4; - __IO uint8_t PRLH4; - }; - }; - uint8_t RESERVED29[2]; - union { - __IO uint16_t PRL5; - struct { - __IO uint8_t PRLL5; - __IO uint8_t PRLH5; - }; - }; - uint8_t RESERVED30[2]; - union { - __IO uint16_t PRL6; - struct { - __IO uint8_t PRLL6; - __IO uint8_t PRLH6; - }; - }; - uint8_t RESERVED31[2]; - union { - __IO uint16_t PRL7; - struct { - __IO uint8_t PRLL7; - __IO uint8_t PRLH7; - }; - }; - uint8_t RESERVED32[2]; - union { - __IO uint8_t GATEC4; - stc_mft_ppg_gatec4_field_t GATEC4_f; - }; - uint8_t RESERVED33[39]; - union { - __IO uint8_t PPGC9; - stc_mft_ppg_ppgc9_field_t PPGC9_f; - }; - union { - __IO uint8_t PPGC8; - stc_mft_ppg_ppgc8_field_t PPGC8_f; - }; - uint8_t RESERVED34[2]; - union { - __IO uint8_t PPGC11; - stc_mft_ppg_ppgc11_field_t PPGC11_f; - }; - union { - __IO uint8_t PPGC10; - stc_mft_ppg_ppgc10_field_t PPGC10_f; - }; - uint8_t RESERVED35[2]; - union { - __IO uint16_t PRL8; - struct { - __IO uint8_t PRLL8; - __IO uint8_t PRLH8; - }; - }; - uint8_t RESERVED36[2]; - union { - __IO uint16_t PRL9; - struct { - __IO uint8_t PRLL9; - __IO uint8_t PRLH9; - }; - }; - uint8_t RESERVED37[2]; - union { - __IO uint16_t PRL10; - struct { - __IO uint8_t PRLL10; - __IO uint8_t PRLH10; - }; - }; - uint8_t RESERVED38[2]; - union { - __IO uint16_t PRL11; - struct { - __IO uint8_t PRLL11; - __IO uint8_t PRLH11; - }; - }; - uint8_t RESERVED39[2]; - union { - __IO uint8_t GATEC8; - stc_mft_ppg_gatec8_field_t GATEC8_f; - }; - uint8_t RESERVED40[39]; - union { - __IO uint8_t PPGC13; - stc_mft_ppg_ppgc13_field_t PPGC13_f; - }; - union { - __IO uint8_t PPGC12; - stc_mft_ppg_ppgc12_field_t PPGC12_f; - }; - uint8_t RESERVED41[2]; - union { - __IO uint8_t PPGC15; - stc_mft_ppg_ppgc15_field_t PPGC15_f; - }; - union { - __IO uint8_t PPGC14; - stc_mft_ppg_ppgc14_field_t PPGC14_f; - }; - uint8_t RESERVED42[2]; - union { - __IO uint16_t PRL12; - struct { - __IO uint8_t PRLL12; - __IO uint8_t PRLH12; - }; - }; - uint8_t RESERVED43[2]; - union { - __IO uint16_t PRL13; - struct { - __IO uint8_t PRLL13; - __IO uint8_t PRLH13; - }; - }; - uint8_t RESERVED44[2]; - union { - __IO uint16_t PRL14; - struct { - __IO uint8_t PRLL14; - __IO uint8_t PRLH14; - }; - }; - uint8_t RESERVED45[2]; - union { - __IO uint16_t PRL15; - struct { - __IO uint8_t PRLL15; - __IO uint8_t PRLH15; - }; - }; - uint8_t RESERVED46[2]; - union { - __IO uint8_t GATEC12; - stc_mft_ppg_gatec12_field_t GATEC12_f; - }; - uint8_t RESERVED47[39]; - union { - __IO uint8_t PPGC17; - stc_mft_ppg_ppgc17_field_t PPGC17_f; - }; - union { - __IO uint8_t PPGC16; - stc_mft_ppg_ppgc16_field_t PPGC16_f; - }; - uint8_t RESERVED48[2]; - union { - __IO uint8_t PPGC19; - stc_mft_ppg_ppgc19_field_t PPGC19_f; - }; - union { - __IO uint8_t PPGC18; - stc_mft_ppg_ppgc18_field_t PPGC18_f; - }; - uint8_t RESERVED49[2]; - union { - __IO uint16_t PRL16; - struct { - __IO uint8_t PRLL16; - __IO uint8_t PRLH16; - }; - }; - uint8_t RESERVED50[2]; - union { - __IO uint16_t PRL17; - struct { - __IO uint8_t PRLL17; - __IO uint8_t PRLH17; - }; - }; - uint8_t RESERVED51[2]; - union { - __IO uint16_t PRL18; - struct { - __IO uint8_t PRLL18; - __IO uint8_t PRLH18; - }; - }; - uint8_t RESERVED52[2]; - union { - __IO uint16_t PRL19; - struct { - __IO uint8_t PRLL19; - __IO uint8_t PRLH19; - }; - }; - uint8_t RESERVED53[2]; - union { - __IO uint8_t GATEC16; - stc_mft_ppg_gatec16_field_t GATEC16_f; - }; - uint8_t RESERVED54[39]; - union { - __IO uint8_t PPGC21; - stc_mft_ppg_ppgc21_field_t PPGC21_f; - }; - union { - __IO uint8_t PPGC20; - stc_mft_ppg_ppgc20_field_t PPGC20_f; - }; - uint8_t RESERVED55[2]; - union { - __IO uint8_t PPGC23; - stc_mft_ppg_ppgc23_field_t PPGC23_f; - }; - union { - __IO uint8_t PPGC22; - stc_mft_ppg_ppgc22_field_t PPGC22_f; - }; - uint8_t RESERVED56[2]; - union { - __IO uint16_t PRL20; - struct { - __IO uint8_t PRLL20; - __IO uint8_t PRLH20; - }; - }; - uint8_t RESERVED57[2]; - union { - __IO uint16_t PRL21; - struct { - __IO uint8_t PRLL21; - __IO uint8_t PRLH21; - }; - }; - uint8_t RESERVED58[2]; - union { - __IO uint16_t PRL22; - struct { - __IO uint8_t PRLL22; - __IO uint8_t PRLH22; - }; - }; - uint8_t RESERVED59[2]; - union { - __IO uint16_t PRL23; - struct { - __IO uint8_t PRLL23; - __IO uint8_t PRLH23; - }; - }; - uint8_t RESERVED60[2]; - union { - __IO uint8_t GATEC20; - stc_mft_ppg_gatec20_field_t GATEC20_f; - }; -}FM3_MFT_PPG_TypeDef; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* Base Timer 0 PPG registers */ -typedef struct -{ - __IO uint16_t PRLL; - uint8_t RESERVED0[2]; - __IO uint16_t PRLH; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_ppg_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_ppg_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_ppg_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PPG_TypeDef; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* Base Timer 0 PWM registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[2]; - __IO uint16_t PDUT; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_pwm_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_pwm_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwm_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PWM_TypeDef; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* Base Timer 0 RT registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[6]; - __IO uint16_t TMR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t TMCR; - stc_bt_rt_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_rt_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_rt_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_RT_TypeDef; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* Base Timer 0 PWC registers */ -typedef struct -{ - uint8_t RESERVED0[4]; - __IO uint16_t DTBF; - uint8_t RESERVED1[6]; - union { - __IO uint16_t TMCR; - stc_bt_pwc_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_pwc_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwc_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PWC_TypeDef; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 0 - channel 3 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL0123; - stc_btiosel03_btsel0123_field_t BTSEL0123_f; - }; -}FM3_BTIOSEL03_TypeDef; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 4 - channel 7 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL4567; - stc_btiosel47_btsel4567_field_t BTSEL4567_f; - }; -}FM3_BTIOSEL47_TypeDef; - -/****************************************************************************** - * BTIOSEL8B_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 8 - channel 11 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL89AB; - stc_btiosel8b_btsel89ab_field_t BTSEL89AB_f; - }; -}FM3_BTIOSEL8B_TypeDef; - -/****************************************************************************** - * BTIOSELCF_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 12 - channel 15 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSELCDEF; - stc_btioselcf_btselcdef_field_t BTSELCDEF_f; - }; -}FM3_BTIOSELCF_TypeDef; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* Software based Simulation Startup (Base Timer) register */ -typedef struct -{ - union { - __IO uint16_t BTSSSR; - stc_sbssr_btsssr_field_t BTSSSR_f; - }; -}FM3_SBSSR_TypeDef; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* Quad position and revolution counter channel 0 registers */ -typedef struct -{ - __IO uint16_t QPCR; - uint8_t RESERVED0[2]; - __IO uint16_t QRCR; - uint8_t RESERVED1[2]; - __IO uint16_t QPCCR; - uint8_t RESERVED2[2]; - __IO uint16_t QPRCR; - uint8_t RESERVED3[2]; - __IO uint16_t QMPR; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t QICR; - stc_qprc_qicr_field_t QICR_f; - }; - struct { - union { - __IO uint8_t QICRL; - stc_qprc_qicrl_field_t QICRL_f; - }; - union { - __IO uint8_t QICRH; - stc_qprc_qicrh_field_t QICRH_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t QCR; - stc_qprc_qcr_field_t QCR_f; - }; - struct { - union { - __IO uint8_t QCRL; - stc_qprc_qcrl_field_t QCRL_f; - }; - union { - __IO uint8_t QCRH; - stc_qprc_qcrh_field_t QCRH_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t QECR; - stc_qprc_qecr_field_t QECR_f; - }; - uint8_t RESERVED7[30]; - __IO uint16_t QRCRR; - __IO uint16_t QPCRR; -}FM3_QPRC_TypeDef; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* 12-bit ADC unit 0 registers */ -typedef struct -{ - union { - __IO uint8_t ADSR; - stc_adc_adsr_field_t ADSR_f; - }; - union { - __IO uint8_t ADCR; - stc_adc_adcr_field_t ADCR_f; - }; - uint8_t RESERVED0[6]; - union { - __IO uint8_t SFNS; - stc_adc_sfns_field_t SFNS_f; - }; - union { - __IO uint8_t SCCR; - stc_adc_sccr_field_t SCCR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint32_t SCFD; - stc_adc_scfd_field_t SCFD_f; - }; - struct { - union { - __IO uint16_t SCFDL; - stc_adc_scfdl_field_t SCFDL_f; - }; - union { - __IO uint16_t SCFDH; - stc_adc_scfdh_field_t SCFDH_f; - }; - }; - }; - union { - union { - __IO uint16_t SCIS23; - stc_adc_scis23_field_t SCIS23_f; - }; - struct { - union { - __IO uint8_t SCIS2; - stc_adc_scis2_field_t SCIS2_f; - }; - union { - __IO uint8_t SCIS3; - stc_adc_scis3_field_t SCIS3_f; - }; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t SCIS01; - stc_adc_scis01_field_t SCIS01_f; - }; - struct { - union { - __IO uint8_t SCIS0; - stc_adc_scis0_field_t SCIS0_f; - }; - union { - __IO uint8_t SCIS1; - stc_adc_scis1_field_t SCIS1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t PFNS; - stc_adc_pfns_field_t PFNS_f; - }; - union { - __IO uint8_t PCCR; - stc_adc_pccr_field_t PCCR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint32_t PCFD; - stc_adc_pcfd_field_t PCFD_f; - }; - struct { - union { - __IO uint16_t PCFDL; - stc_adc_pcfdl_field_t PCFDL_f; - }; - union { - __IO uint16_t PCFDH; - stc_adc_pcfdh_field_t PCFDH_f; - }; - }; - }; - union { - __IO uint8_t PCIS; - stc_adc_pcis_field_t PCIS_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t CMPCR; - stc_adc_cmpcr_field_t CMPCR_f; - }; - uint8_t RESERVED6; - union { - __IO uint16_t CMPD; - stc_adc_cmpd_field_t CMPD_f; - }; - union { - union { - __IO uint16_t ADSS23; - stc_adc_adss23_field_t ADSS23_f; - }; - struct { - union { - __IO uint8_t ADSS2; - stc_adc_adss2_field_t ADSS2_f; - }; - union { - __IO uint8_t ADSS3; - stc_adc_adss3_field_t ADSS3_f; - }; - }; - }; - uint8_t RESERVED7[2]; - union { - union { - __IO uint16_t ADSS01; - stc_adc_adss01_field_t ADSS01_f; - }; - struct { - union { - __IO uint8_t ADSS0; - stc_adc_adss0_field_t ADSS0_f; - }; - union { - __IO uint8_t ADSS1; - stc_adc_adss1_field_t ADSS1_f; - }; - }; - }; - uint8_t RESERVED8[2]; - union { - union { - __IO uint16_t ADST01; - stc_adc_adst01_field_t ADST01_f; - }; - struct { - union { - __IO uint8_t ADST1; - stc_adc_adst1_field_t ADST1_f; - }; - union { - __IO uint8_t ADST0; - stc_adc_adst0_field_t ADST0_f; - }; - }; - }; - uint8_t RESERVED9[2]; - union { - __IO uint8_t ADCT; - stc_adc_adct_field_t ADCT_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PRTSL; - stc_adc_prtsl_field_t PRTSL_f; - }; - union { - __IO uint8_t SCTSL; - stc_adc_sctsl_field_t SCTSL_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint8_t ADCEN; - stc_adc_adcen_field_t ADCEN_f; - }; -}FM3_ADC_TypeDef; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CR trimming registers */ -typedef struct -{ - union { - __IO uint8_t MCR_PSR; - stc_crtrim_mcr_psr_field_t MCR_PSR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint16_t MCR_FTRM; - stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; - }; - uint8_t RESERVED1[6]; - __IO uint32_t MCR_RLR; -}FM3_CRTRIM_TypeDef; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* External interrupt registers */ -typedef struct -{ - union { - __IO uint32_t ENIR; - stc_exti_enir_field_t ENIR_f; - }; - union { - __IO uint32_t EIRR; - stc_exti_eirr_field_t EIRR_f; - }; - union { - __IO uint32_t EICL; - stc_exti_eicl_field_t EICL_f; - }; - union { - __IO uint32_t ELVR; - stc_exti_elvr_field_t ELVR_f; - }; - union { - __IO uint32_t ELVR1; - stc_exti_elvr1_field_t ELVR1_f; - }; - union { - __IO uint8_t NMIRR; - stc_exti_nmirr_field_t NMIRR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t NMICL; - stc_exti_nmicl_field_t NMICL_f; - }; -}FM3_EXTI_TypeDef; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* Interrupt request read registers */ -typedef struct -{ - union { - __IO uint32_t DRQSEL; - stc_intreq_drqsel_field_t DRQSEL_f; - }; - uint8_t RESERVED0[7]; - union { - __IO uint8_t ODDPKS; - stc_intreq_oddpks_field_t ODDPKS_f; - }; - uint8_t RESERVED1[4]; - union { - __IO uint32_t EXC02MON; - stc_intreq_exc02mon_field_t EXC02MON_f; - }; - union { - __IO uint32_t IRQ00MON; - stc_intreq_irq00mon_field_t IRQ00MON_f; - }; - union { - __IO uint32_t IRQ01MON; - stc_intreq_irq01mon_field_t IRQ01MON_f; - }; - union { - __IO uint32_t IRQ02MON; - stc_intreq_irq02mon_field_t IRQ02MON_f; - }; - union { - __IO uint32_t IRQ03MON; - stc_intreq_irq03mon_field_t IRQ03MON_f; - }; - union { - __IO uint32_t IRQ04MON; - stc_intreq_irq04mon_field_t IRQ04MON_f; - }; - union { - __IO uint32_t IRQ05MON; - stc_intreq_irq05mon_field_t IRQ05MON_f; - }; - union { - __IO uint32_t IRQ06MON; - stc_intreq_irq06mon_field_t IRQ06MON_f; - }; - union { - __IO uint32_t IRQ07MON; - stc_intreq_irq07mon_field_t IRQ07MON_f; - }; - union { - __IO uint32_t IRQ08MON; - stc_intreq_irq08mon_field_t IRQ08MON_f; - }; - union { - __IO uint32_t IRQ09MON; - stc_intreq_irq09mon_field_t IRQ09MON_f; - }; - union { - __IO uint32_t IRQ10MON; - stc_intreq_irq10mon_field_t IRQ10MON_f; - }; - union { - __IO uint32_t IRQ11MON; - stc_intreq_irq11mon_field_t IRQ11MON_f; - }; - union { - __IO uint32_t IRQ12MON; - stc_intreq_irq12mon_field_t IRQ12MON_f; - }; - union { - __IO uint32_t IRQ13MON; - stc_intreq_irq13mon_field_t IRQ13MON_f; - }; - union { - __IO uint32_t IRQ14MON; - stc_intreq_irq14mon_field_t IRQ14MON_f; - }; - union { - __IO uint32_t IRQ15MON; - stc_intreq_irq15mon_field_t IRQ15MON_f; - }; - union { - __IO uint32_t IRQ16MON; - stc_intreq_irq16mon_field_t IRQ16MON_f; - }; - union { - __IO uint32_t IRQ17MON; - stc_intreq_irq17mon_field_t IRQ17MON_f; - }; - union { - __IO uint32_t IRQ18MON; - stc_intreq_irq18mon_field_t IRQ18MON_f; - }; - union { - __IO uint32_t IRQ19MON; - stc_intreq_irq19mon_field_t IRQ19MON_f; - }; - union { - __IO uint32_t IRQ20MON; - stc_intreq_irq20mon_field_t IRQ20MON_f; - }; - union { - __IO uint32_t IRQ21MON; - stc_intreq_irq21mon_field_t IRQ21MON_f; - }; - union { - __IO uint32_t IRQ22MON; - stc_intreq_irq22mon_field_t IRQ22MON_f; - }; - union { - __IO uint32_t IRQ23MON; - stc_intreq_irq23mon_field_t IRQ23MON_f; - }; - union { - __IO uint32_t IRQ24MON; - stc_intreq_irq24mon_field_t IRQ24MON_f; - }; - union { - __IO uint32_t IRQ25MON; - stc_intreq_irq25mon_field_t IRQ25MON_f; - }; - union { - __IO uint32_t IRQ26MON; - stc_intreq_irq26mon_field_t IRQ26MON_f; - }; - union { - __IO uint32_t IRQ27MON; - stc_intreq_irq27mon_field_t IRQ27MON_f; - }; - union { - __IO uint32_t IRQ28MON; - stc_intreq_irq28mon_field_t IRQ28MON_f; - }; - union { - __IO uint32_t IRQ29MON; - stc_intreq_irq29mon_field_t IRQ29MON_f; - }; - union { - __IO uint32_t IRQ30MON; - stc_intreq_irq30mon_field_t IRQ30MON_f; - }; - union { - __IO uint32_t IRQ31MON; - stc_intreq_irq31mon_field_t IRQ31MON_f; - }; - union { - __IO uint32_t IRQ32MON; - stc_intreq_irq32mon_field_t IRQ32MON_f; - }; - union { - __IO uint32_t IRQ33MON; - stc_intreq_irq33mon_field_t IRQ33MON_f; - }; - union { - __IO uint32_t IRQ34MON; - stc_intreq_irq34mon_field_t IRQ34MON_f; - }; - union { - __IO uint32_t IRQ35MON; - stc_intreq_irq35mon_field_t IRQ35MON_f; - }; - union { - __IO uint32_t IRQ36MON; - stc_intreq_irq36mon_field_t IRQ36MON_f; - }; - union { - __IO uint32_t IRQ37MON; - stc_intreq_irq37mon_field_t IRQ37MON_f; - }; - union { - __IO uint32_t IRQ38MON; - stc_intreq_irq38mon_field_t IRQ38MON_f; - }; - union { - __IO uint32_t IRQ39MON; - stc_intreq_irq39mon_field_t IRQ39MON_f; - }; - union { - __IO uint32_t IRQ40MON; - stc_intreq_irq40mon_field_t IRQ40MON_f; - }; - union { - __IO uint32_t IRQ41MON; - stc_intreq_irq41mon_field_t IRQ41MON_f; - }; - union { - __IO uint32_t IRQ42MON; - stc_intreq_irq42mon_field_t IRQ42MON_f; - }; - union { - __IO uint32_t IRQ43MON; - stc_intreq_irq43mon_field_t IRQ43MON_f; - }; - union { - __IO uint32_t IRQ44MON; - stc_intreq_irq44mon_field_t IRQ44MON_f; - }; - union { - __IO uint32_t IRQ45MON; - stc_intreq_irq45mon_field_t IRQ45MON_f; - }; - union { - __IO uint32_t IRQ46MON; - stc_intreq_irq46mon_field_t IRQ46MON_f; - }; - uint8_t RESERVED2[300]; - union { - __IO uint32_t DRQSEL1; - stc_intreq_drqsel1_field_t DRQSEL1_f; - }; - union { - __IO uint32_t DQESEL; - stc_intreq_dqesel_field_t DQESEL_f; - }; - uint8_t RESERVED3[7]; - union { - __IO uint8_t ODDPKS1; - stc_intreq_oddpks1_field_t ODDPKS1_f; - }; -}FM3_INTREQ_TypeDef; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* General purpose I/O registers */ -typedef struct -{ - union { - __IO uint32_t PFR0; - stc_gpio_pfr0_field_t PFR0_f; - }; - union { - __IO uint32_t PFR1; - stc_gpio_pfr1_field_t PFR1_f; - }; - union { - __IO uint32_t PFR2; - stc_gpio_pfr2_field_t PFR2_f; - }; - union { - __IO uint32_t PFR3; - stc_gpio_pfr3_field_t PFR3_f; - }; - union { - __IO uint32_t PFR4; - stc_gpio_pfr4_field_t PFR4_f; - }; - union { - __IO uint32_t PFR5; - stc_gpio_pfr5_field_t PFR5_f; - }; - union { - __IO uint32_t PFR6; - stc_gpio_pfr6_field_t PFR6_f; - }; - union { - __IO uint32_t PFR7; - stc_gpio_pfr7_field_t PFR7_f; - }; - union { - __IO uint32_t PFR8; - stc_gpio_pfr8_field_t PFR8_f; - }; - __IO uint32_t PFR9; - union { - __IO uint32_t PFRA; - stc_gpio_pfra_field_t PFRA_f; - }; - __IO uint32_t PFRB; - union { - __IO uint32_t PFRC; - stc_gpio_pfrc_field_t PFRC_f; - }; - union { - __IO uint32_t PFRD; - stc_gpio_pfrd_field_t PFRD_f; - }; - union { - __IO uint32_t PFRE; - stc_gpio_pfre_field_t PFRE_f; - }; - union { - __IO uint32_t PFRF; - stc_gpio_pfrf_field_t PFRF_f; - }; - uint8_t RESERVED0[192]; - union { - __IO uint32_t PCR0; - stc_gpio_pcr0_field_t PCR0_f; - }; - union { - __IO uint32_t PCR1; - stc_gpio_pcr1_field_t PCR1_f; - }; - union { - __IO uint32_t PCR2; - stc_gpio_pcr2_field_t PCR2_f; - }; - union { - __IO uint32_t PCR3; - stc_gpio_pcr3_field_t PCR3_f; - }; - union { - __IO uint32_t PCR4; - stc_gpio_pcr4_field_t PCR4_f; - }; - union { - __IO uint32_t PCR5; - stc_gpio_pcr5_field_t PCR5_f; - }; - union { - __IO uint32_t PCR6; - stc_gpio_pcr6_field_t PCR6_f; - }; - union { - __IO uint32_t PCR7; - stc_gpio_pcr7_field_t PCR7_f; - }; - __IO uint32_t PCR8; - __IO uint32_t PCR9; - union { - __IO uint32_t PCRA; - stc_gpio_pcra_field_t PCRA_f; - }; - __IO uint32_t PCRB; - union { - __IO uint32_t PCRC; - stc_gpio_pcrc_field_t PCRC_f; - }; - union { - __IO uint32_t PCRD; - stc_gpio_pcrd_field_t PCRD_f; - }; - union { - __IO uint32_t PCRE; - stc_gpio_pcre_field_t PCRE_f; - }; - __IO uint32_t PCRF; - uint8_t RESERVED1[192]; - union { - __IO uint32_t DDR0; - stc_gpio_ddr0_field_t DDR0_f; - }; - union { - __IO uint32_t DDR1; - stc_gpio_ddr1_field_t DDR1_f; - }; - union { - __IO uint32_t DDR2; - stc_gpio_ddr2_field_t DDR2_f; - }; - union { - __IO uint32_t DDR3; - stc_gpio_ddr3_field_t DDR3_f; - }; - union { - __IO uint32_t DDR4; - stc_gpio_ddr4_field_t DDR4_f; - }; - union { - __IO uint32_t DDR5; - stc_gpio_ddr5_field_t DDR5_f; - }; - union { - __IO uint32_t DDR6; - stc_gpio_ddr6_field_t DDR6_f; - }; - union { - __IO uint32_t DDR7; - stc_gpio_ddr7_field_t DDR7_f; - }; - union { - __IO uint32_t DDR8; - stc_gpio_ddr8_field_t DDR8_f; - }; - __IO uint32_t DDR9; - union { - __IO uint32_t DDRA; - stc_gpio_ddra_field_t DDRA_f; - }; - __IO uint32_t DDRB; - union { - __IO uint32_t DDRC; - stc_gpio_ddrc_field_t DDRC_f; - }; - union { - __IO uint32_t DDRD; - stc_gpio_ddrd_field_t DDRD_f; - }; - union { - __IO uint32_t DDRE; - stc_gpio_ddre_field_t DDRE_f; - }; - union { - __IO uint32_t DDRF; - stc_gpio_ddrf_field_t DDRF_f; - }; - uint8_t RESERVED2[192]; - union { - __IO uint32_t PDIR0; - stc_gpio_pdir0_field_t PDIR0_f; - }; - union { - __IO uint32_t PDIR1; - stc_gpio_pdir1_field_t PDIR1_f; - }; - union { - __IO uint32_t PDIR2; - stc_gpio_pdir2_field_t PDIR2_f; - }; - union { - __IO uint32_t PDIR3; - stc_gpio_pdir3_field_t PDIR3_f; - }; - union { - __IO uint32_t PDIR4; - stc_gpio_pdir4_field_t PDIR4_f; - }; - union { - __IO uint32_t PDIR5; - stc_gpio_pdir5_field_t PDIR5_f; - }; - union { - __IO uint32_t PDIR6; - stc_gpio_pdir6_field_t PDIR6_f; - }; - union { - __IO uint32_t PDIR7; - stc_gpio_pdir7_field_t PDIR7_f; - }; - union { - __IO uint32_t PDIR8; - stc_gpio_pdir8_field_t PDIR8_f; - }; - __IO uint32_t PDIR9; - union { - __IO uint32_t PDIRA; - stc_gpio_pdira_field_t PDIRA_f; - }; - __IO uint32_t PDIRB; - union { - __IO uint32_t PDIRC; - stc_gpio_pdirc_field_t PDIRC_f; - }; - union { - __IO uint32_t PDIRD; - stc_gpio_pdird_field_t PDIRD_f; - }; - union { - __IO uint32_t PDIRE; - stc_gpio_pdire_field_t PDIRE_f; - }; - union { - __IO uint32_t PDIRF; - stc_gpio_pdirf_field_t PDIRF_f; - }; - uint8_t RESERVED3[192]; - union { - __IO uint32_t PDOR0; - stc_gpio_pdor0_field_t PDOR0_f; - }; - union { - __IO uint32_t PDOR1; - stc_gpio_pdor1_field_t PDOR1_f; - }; - union { - __IO uint32_t PDOR2; - stc_gpio_pdor2_field_t PDOR2_f; - }; - union { - __IO uint32_t PDOR3; - stc_gpio_pdor3_field_t PDOR3_f; - }; - union { - __IO uint32_t PDOR4; - stc_gpio_pdor4_field_t PDOR4_f; - }; - union { - __IO uint32_t PDOR5; - stc_gpio_pdor5_field_t PDOR5_f; - }; - union { - __IO uint32_t PDOR6; - stc_gpio_pdor6_field_t PDOR6_f; - }; - union { - __IO uint32_t PDOR7; - stc_gpio_pdor7_field_t PDOR7_f; - }; - union { - __IO uint32_t PDOR8; - stc_gpio_pdor8_field_t PDOR8_f; - }; - __IO uint32_t PDOR9; - union { - __IO uint32_t PDORA; - stc_gpio_pdora_field_t PDORA_f; - }; - __IO uint32_t PDORB; - union { - __IO uint32_t PDORC; - stc_gpio_pdorc_field_t PDORC_f; - }; - union { - __IO uint32_t PDORD; - stc_gpio_pdord_field_t PDORD_f; - }; - union { - __IO uint32_t PDORE; - stc_gpio_pdore_field_t PDORE_f; - }; - union { - __IO uint32_t PDORF; - stc_gpio_pdorf_field_t PDORF_f; - }; - uint8_t RESERVED4[192]; - union { - __IO uint32_t ADE; - stc_gpio_ade_field_t ADE_f; - }; - uint8_t RESERVED5[124]; - union { - __IO uint32_t SPSR; - stc_gpio_spsr_field_t SPSR_f; - }; - uint8_t RESERVED6[124]; - union { - __IO uint32_t EPFR00; - stc_gpio_epfr00_field_t EPFR00_f; - }; - union { - __IO uint32_t EPFR01; - stc_gpio_epfr01_field_t EPFR01_f; - }; - union { - __IO uint32_t EPFR02; - stc_gpio_epfr02_field_t EPFR02_f; - }; - union { - __IO uint32_t EPFR03; - stc_gpio_epfr03_field_t EPFR03_f; - }; - union { - __IO uint32_t EPFR04; - stc_gpio_epfr04_field_t EPFR04_f; - }; - union { - __IO uint32_t EPFR05; - stc_gpio_epfr05_field_t EPFR05_f; - }; - union { - __IO uint32_t EPFR06; - stc_gpio_epfr06_field_t EPFR06_f; - }; - union { - __IO uint32_t EPFR07; - stc_gpio_epfr07_field_t EPFR07_f; - }; - union { - __IO uint32_t EPFR08; - stc_gpio_epfr08_field_t EPFR08_f; - }; - union { - __IO uint32_t EPFR09; - stc_gpio_epfr09_field_t EPFR09_f; - }; - union { - __IO uint32_t EPFR10; - stc_gpio_epfr10_field_t EPFR10_f; - }; - union { - __IO uint32_t EPFR11; - stc_gpio_epfr11_field_t EPFR11_f; - }; - union { - __IO uint32_t EPFR12; - stc_gpio_epfr12_field_t EPFR12_f; - }; - union { - __IO uint32_t EPFR13; - stc_gpio_epfr13_field_t EPFR13_f; - }; - union { - __IO uint32_t EPFR14; - stc_gpio_epfr14_field_t EPFR14_f; - }; - union { - __IO uint32_t EPFR15; - stc_gpio_epfr15_field_t EPFR15_f; - }; - uint8_t RESERVED7[192]; - union { - __IO uint32_t PZR0; - stc_gpio_pzr0_field_t PZR0_f; - }; - union { - __IO uint32_t PZR1; - stc_gpio_pzr1_field_t PZR1_f; - }; - union { - __IO uint32_t PZR2; - stc_gpio_pzr2_field_t PZR2_f; - }; - union { - __IO uint32_t PZR3; - stc_gpio_pzr3_field_t PZR3_f; - }; - union { - __IO uint32_t PZR4; - stc_gpio_pzr4_field_t PZR4_f; - }; - union { - __IO uint32_t PZR5; - stc_gpio_pzr5_field_t PZR5_f; - }; - union { - __IO uint32_t PZR6; - stc_gpio_pzr6_field_t PZR6_f; - }; - union { - __IO uint32_t PZR7; - stc_gpio_pzr7_field_t PZR7_f; - }; - union { - __IO uint32_t PZR8; - stc_gpio_pzr8_field_t PZR8_f; - }; - __IO uint32_t PZR9; - union { - __IO uint32_t PZRA; - stc_gpio_pzra_field_t PZRA_f; - }; - __IO uint32_t PZRB; - union { - __IO uint32_t PZRC; - stc_gpio_pzrc_field_t PZRC_f; - }; - union { - __IO uint32_t PZRD; - stc_gpio_pzrd_field_t PZRD_f; - }; - union { - __IO uint32_t PZRE; - stc_gpio_pzre_field_t PZRE_f; - }; - union { - __IO uint32_t PZRF; - stc_gpio_pzrf_field_t PZRF_f; - }; -}FM3_GPIO_TypeDef; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* Low voltage detection registers */ -typedef struct -{ - union { - __IO uint8_t LVD_CTL; - stc_lvd_lvd_ctl_field_t LVD_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t LVD_STR; - stc_lvd_lvd_str_field_t LVD_STR_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t LVD_CLR; - stc_lvd_lvd_clr_field_t LVD_CLR_f; - }; - uint8_t RESERVED2[3]; - __IO uint32_t LVD_RLR; - union { - __IO uint8_t LVD_STR2; - stc_lvd_lvd_str2_field_t LVD_STR2_f; - }; -}FM3_LVD_TypeDef; - -/****************************************************************************** - * USBETHERNETCLK - ******************************************************************************/ -/* USB Ethernet clock registers */ -typedef struct -{ - union { - __IO uint8_t UCCR; - stc_usbethernetclk_uccr_field_t UCCR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t UPCR1; - stc_usbethernetclk_upcr1_field_t UPCR1_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t UPCR2; - stc_usbethernetclk_upcr2_field_t UPCR2_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint8_t UPCR3; - stc_usbethernetclk_upcr3_field_t UPCR3_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t UPCR4; - stc_usbethernetclk_upcr4_field_t UPCR4_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t UP_STR; - stc_usbethernetclk_up_str_field_t UP_STR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t UPINT_ENR; - stc_usbethernetclk_upint_enr_field_t UPINT_ENR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t UPINT_CLR; - stc_usbethernetclk_upint_clr_field_t UPINT_CLR_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint8_t UPINT_STR; - stc_usbethernetclk_upint_str_field_t UPINT_STR_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t UPCR5; - stc_usbethernetclk_upcr5_field_t UPCR5_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t UPCR6; - stc_usbethernetclk_upcr6_field_t UPCR6_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t UPCR7; - stc_usbethernetclk_upcr7_field_t UPCR7_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t USBEN0; - stc_usbethernetclk_usben0_field_t USBEN0_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint8_t USBEN1; - stc_usbethernetclk_usben1_field_t USBEN1_f; - }; -}FM3_USBETHERNETCLK_TypeDef; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_uart_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_uart_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_uart_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_uart_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint16_t RDR; - stc_mfs03_uart_rdr_field_t RDR_f; - }; - union { - __IO uint16_t TDR; - stc_mfs03_uart_tdr_field_t TDR_f; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs03_uart_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs03_uart_bgr1_field_t BGR1_f; - }; - }; - }; -}FM3_MFS03_UART_TypeDef; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_csio_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_csio_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_csio_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_csio_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; -}FM3_MFS03_CSIO_TypeDef; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_lin_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_lin_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_lin_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_lin_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs03_lin_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs03_lin_bgr1_field_t BGR1_f; - }; - }; - }; -}FM3_MFS03_LIN_TypeDef; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* I2C channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_i2c_smr_field_t SMR_f; - }; - union { - __IO uint8_t IBCR; - stc_mfs03_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t IBSR; - stc_mfs03_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_i2c_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t ISBA; - stc_mfs03_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs03_i2c_ismk_field_t ISMK_f; - }; -}FM3_MFS03_I2C_TypeDef; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_uart_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_uart_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_uart_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_uart_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint16_t RDR; - stc_mfs47_uart_rdr_field_t RDR_f; - }; - union { - __IO uint16_t TDR; - stc_mfs47_uart_tdr_field_t TDR_f; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs47_uart_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs47_uart_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_uart_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_uart_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_uart_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_uart_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_uart_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_uart_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_UART_TypeDef; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_csio_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_csio_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_csio_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_csio_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_csio_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_csio_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_csio_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_csio_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_csio_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_csio_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_CSIO_TypeDef; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_lin_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_lin_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_lin_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_lin_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs47_lin_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs47_lin_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_lin_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_lin_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_lin_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_lin_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_lin_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_lin_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_LIN_TypeDef; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* I2C channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_i2c_smr_field_t SMR_f; - }; - union { - __IO uint8_t IBCR; - stc_mfs47_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t IBSR; - stc_mfs47_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_i2c_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t ISBA; - stc_mfs47_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs47_i2c_ismk_field_t ISMK_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_i2c_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_i2c_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_i2c_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_i2c_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_i2c_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_i2c_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_I2C_TypeDef; - -/****************************************************************************** - * MFS_NFC_MODULE - ******************************************************************************/ -/* MFS_NFC_MODULE register bit fields */ -typedef struct -{ - union { - __IO uint16_t I2CDNF; - stc_mfs_nfc_i2cdnf_field_t I2CDNF_f; - }; -}FM3_MFS_NFC_TypeDef; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC registers */ -typedef struct -{ - union { - __IO uint8_t CRCCR; - stc_crc_crccr_field_t CRCCR_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t CRCINIT; - union { - __IO uint32_t CRCIN; - struct { - union { - __IO uint16_t CRCINL; - struct { - __IO uint8_t CRCINLL; - __IO uint8_t CRCINLH; - }; - }; - union { - __IO uint16_t CRCINH; - struct { - __IO uint8_t CRCINHL; - __IO uint8_t CRCINHH; - }; - }; - }; - }; - __IO uint32_t CRCR; -}FM3_CRC_TypeDef; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* Watch counter registers */ -typedef struct -{ - union { - __IO uint8_t WCRD; - stc_wc_wcrd_field_t WCRD_f; - }; - union { - __IO uint8_t WCRL; - stc_wc_wcrl_field_t WCRL_f; - }; - union { - __IO uint8_t WCCR; - stc_wc_wccr_field_t WCCR_f; - }; - uint8_t RESERVED0[13]; - union { - __IO uint16_t CLK_SEL; - stc_wc_clk_sel_field_t CLK_SEL_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t CLK_EN; - stc_wc_clk_en_field_t CLK_EN_f; - }; -}FM3_WC_TypeDef; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* External bus interface registers */ -typedef struct -{ - union { - __IO uint32_t MODE0; - stc_exbus_mode0_field_t MODE0_f; - }; - union { - __IO uint32_t MODE1; - stc_exbus_mode1_field_t MODE1_f; - }; - union { - __IO uint32_t MODE2; - stc_exbus_mode2_field_t MODE2_f; - }; - union { - __IO uint32_t MODE3; - stc_exbus_mode3_field_t MODE3_f; - }; - union { - __IO uint32_t MODE4; - stc_exbus_mode4_field_t MODE4_f; - }; - union { - __IO uint32_t MODE5; - stc_exbus_mode5_field_t MODE5_f; - }; - union { - __IO uint32_t MODE6; - stc_exbus_mode6_field_t MODE6_f; - }; - union { - __IO uint32_t MODE7; - stc_exbus_mode7_field_t MODE7_f; - }; - union { - __IO uint32_t TIM0; - stc_exbus_tim0_field_t TIM0_f; - }; - union { - __IO uint32_t TIM1; - stc_exbus_tim1_field_t TIM1_f; - }; - union { - __IO uint32_t TIM2; - stc_exbus_tim2_field_t TIM2_f; - }; - union { - __IO uint32_t TIM3; - stc_exbus_tim3_field_t TIM3_f; - }; - union { - __IO uint32_t TIM4; - stc_exbus_tim4_field_t TIM4_f; - }; - union { - __IO uint32_t TIM5; - stc_exbus_tim5_field_t TIM5_f; - }; - union { - __IO uint32_t TIM6; - stc_exbus_tim6_field_t TIM6_f; - }; - union { - __IO uint32_t TIM7; - stc_exbus_tim7_field_t TIM7_f; - }; - union { - __IO uint32_t AREA0; - stc_exbus_area0_field_t AREA0_f; - }; - union { - __IO uint32_t AREA1; - stc_exbus_area1_field_t AREA1_f; - }; - union { - __IO uint32_t AREA2; - stc_exbus_area2_field_t AREA2_f; - }; - union { - __IO uint32_t AREA3; - stc_exbus_area3_field_t AREA3_f; - }; - union { - __IO uint32_t AREA4; - stc_exbus_area4_field_t AREA4_f; - }; - union { - __IO uint32_t AREA5; - stc_exbus_area5_field_t AREA5_f; - }; - union { - __IO uint32_t AREA6; - stc_exbus_area6_field_t AREA6_f; - }; - union { - __IO uint32_t AREA7; - stc_exbus_area7_field_t AREA7_f; - }; - union { - __IO uint16_t ATIM0; - stc_exbus_atim0_field_t ATIM0_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint16_t ATIM1; - stc_exbus_atim1_field_t ATIM1_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t ATIM2; - stc_exbus_atim2_field_t ATIM2_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t ATIM3; - stc_exbus_atim3_field_t ATIM3_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t ATIM4; - stc_exbus_atim4_field_t ATIM4_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t ATIM5; - stc_exbus_atim5_field_t ATIM5_f; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t ATIM6; - stc_exbus_atim6_field_t ATIM6_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t ATIM7; - stc_exbus_atim7_field_t ATIM7_f; - }; - uint8_t RESERVED7[642]; - union { - __IO uint8_t DCLKR; - stc_exbus_dclkr_field_t DCLKR_f; - }; -}FM3_EXBUS_TypeDef; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB channel 0 registers */ -typedef struct -{ - union { - union { - __IO uint16_t HCNT; - stc_usb_hcnt_field_t HCNT_f; - }; - struct { - union { - __IO uint8_t HCNT0; - stc_usb_hcnt0_field_t HCNT0_f; - }; - union { - __IO uint8_t HCNT1; - stc_usb_hcnt1_field_t HCNT1_f; - }; - }; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t HIRQ; - stc_usb_hirq_field_t HIRQ_f; - }; - union { - __IO uint8_t HERR; - stc_usb_herr_field_t HERR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t HSTATE; - stc_usb_hstate_field_t HSTATE_f; - }; - union { - __IO uint8_t HFCOMP; - stc_usb_hfcomp_field_t HFCOMP_f; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t HRTIMER; - stc_usb_hrtimer_field_t HRTIMER_f; - }; - struct { - union { - __IO uint8_t HRTIMER0; - stc_usb_hrtimer0_field_t HRTIMER0_f; - }; - union { - __IO uint8_t HRTIMER1; - stc_usb_hrtimer1_field_t HRTIMER1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t HRTIMER2; - stc_usb_hrtimer2_field_t HRTIMER2_f; - }; - union { - __IO uint8_t HADR; - stc_usb_hadr_field_t HADR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t HEOF; - stc_usb_heof_field_t HEOF_f; - }; - struct { - union { - __IO uint8_t HEOF0; - stc_usb_heof0_field_t HEOF0_f; - }; - union { - __IO uint8_t HEOF1; - stc_usb_heof1_field_t HEOF1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t HFRAME; - stc_usb_hframe_field_t HFRAME_f; - }; - struct { - union { - __IO uint8_t HFRAME0; - stc_usb_hframe0_field_t HFRAME0_f; - }; - union { - __IO uint8_t HFRAME1; - stc_usb_hframe1_field_t HFRAME1_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t HTOKEN; - stc_usb_htoken_field_t HTOKEN_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t UDCC; - stc_usb_udcc_field_t UDCC_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t EP0C; - stc_usb_ep0c_field_t EP0C_f; - }; - uint8_t RESERVED9[2]; - union { - __IO uint16_t EP1C; - stc_usb_ep1c_field_t EP1C_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint16_t EP2C; - stc_usb_ep2c_field_t EP2C_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t EP3C; - stc_usb_ep3c_field_t EP3C_f; - }; - uint8_t RESERVED12[2]; - union { - __IO uint16_t EP4C; - stc_usb_ep4c_field_t EP4C_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint16_t EP5C; - stc_usb_ep5c_field_t EP5C_f; - }; - uint8_t RESERVED14[2]; - union { - __IO uint16_t TMSP; - stc_usb_tmsp_field_t TMSP_f; - }; - uint8_t RESERVED15[2]; - union { - __IO uint8_t UDCS; - stc_usb_udcs_field_t UDCS_f; - }; - union { - __IO uint8_t UDCIE; - stc_usb_udcie_field_t UDCIE_f; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t EP0IS; - stc_usb_ep0is_field_t EP0IS_f; - }; - uint8_t RESERVED17[2]; - union { - __IO uint16_t EP0OS; - stc_usb_ep0os_field_t EP0OS_f; - }; - uint8_t RESERVED18[2]; - union { - __IO uint16_t EP1S; - stc_usb_ep1s_field_t EP1S_f; - }; - uint8_t RESERVED19[2]; - union { - __IO uint16_t EP2S; - stc_usb_ep2s_field_t EP2S_f; - }; - uint8_t RESERVED20[2]; - __IO uint16_t EP3S; - uint8_t RESERVED21[2]; - union { - __IO uint16_t EP4S; - stc_usb_ep4s_field_t EP4S_f; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t EP5S; - stc_usb_ep5s_field_t EP5S_f; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t EP0DT; - struct { - __IO uint8_t EP0DTL; - __IO uint8_t EP0DTH; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t EP1DT; - struct { - __IO uint8_t EP1DTL; - __IO uint8_t EP1DTH; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint16_t EP2DT; - struct { - __IO uint8_t EP2DTL; - __IO uint8_t EP2DTH; - }; - }; - uint8_t RESERVED26[2]; - union { - __IO uint16_t EP3DT; - struct { - __IO uint8_t EP3DTL; - __IO uint8_t EP3DTH; - }; - }; - uint8_t RESERVED27[2]; - union { - __IO uint16_t EP4DT; - struct { - __IO uint8_t EP4DTL; - __IO uint8_t EP4DTH; - }; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t EP5DT; - struct { - __IO uint8_t EP5DTL; - __IO uint8_t EP5DTH; - }; - }; -}FM3_USB_TypeDef; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMA controller */ -typedef struct -{ - union { - __IO uint32_t DMACR; - stc_dmac_dmacr_field_t DMACR_f; - }; - uint8_t RESERVED0[12]; - union { - __IO uint32_t DMACA0; - stc_dmac_dmaca0_field_t DMACA0_f; - }; - union { - __IO uint32_t DMACB0; - stc_dmac_dmacb0_field_t DMACB0_f; - }; - __IO uint32_t DMACSA0; - __IO uint32_t DMACDA0; - union { - __IO uint32_t DMACA1; - stc_dmac_dmaca1_field_t DMACA1_f; - }; - union { - __IO uint32_t DMACB1; - stc_dmac_dmacb1_field_t DMACB1_f; - }; - __IO uint32_t DMACSA1; - __IO uint32_t DMACDA1; - union { - __IO uint32_t DMACA2; - stc_dmac_dmaca2_field_t DMACA2_f; - }; - union { - __IO uint32_t DMACB2; - stc_dmac_dmacb2_field_t DMACB2_f; - }; - __IO uint32_t DMACSA2; - __IO uint32_t DMACDA2; - union { - __IO uint32_t DMACA3; - stc_dmac_dmaca3_field_t DMACA3_f; - }; - union { - __IO uint32_t DMACB3; - stc_dmac_dmacb3_field_t DMACB3_f; - }; - __IO uint32_t DMACSA3; - __IO uint32_t DMACDA3; - union { - __IO uint32_t DMACA4; - stc_dmac_dmaca4_field_t DMACA4_f; - }; - union { - __IO uint32_t DMACB4; - stc_dmac_dmacb4_field_t DMACB4_f; - }; - __IO uint32_t DMACSA4; - __IO uint32_t DMACDA4; - union { - __IO uint32_t DMACA5; - stc_dmac_dmaca5_field_t DMACA5_f; - }; - union { - __IO uint32_t DMACB5; - stc_dmac_dmacb5_field_t DMACB5_f; - }; - __IO uint32_t DMACSA5; - __IO uint32_t DMACDA5; - union { - __IO uint32_t DMACA6; - stc_dmac_dmaca6_field_t DMACA6_f; - }; - union { - __IO uint32_t DMACB6; - stc_dmac_dmacb6_field_t DMACB6_f; - }; - __IO uint32_t DMACSA6; - __IO uint32_t DMACDA6; - union { - __IO uint32_t DMACA7; - stc_dmac_dmaca7_field_t DMACA7_f; - }; - union { - __IO uint32_t DMACB7; - stc_dmac_dmacb7_field_t DMACB7_f; - }; - __IO uint32_t DMACSA7; - __IO uint32_t DMACDA7; -}FM3_DMAC_TypeDef; - -/****************************************************************************** - * ETHERNET_MAC_MODULE - ******************************************************************************/ -/* ETHERNET-MAC registers */ -typedef struct -{ - union { - __IO uint32_t MCR; - stc_ethernet_mac_mcr_field_t MCR_f; - }; - union { - __IO uint32_t MFFR; - stc_ethernet_mac_mffr_field_t MFFR_f; - }; - union { - __IO uint32_t MHTRH; - stc_ethernet_mac_mhtrh_field_t MHTRH_f; - }; - union { - __IO uint32_t MHTRL; - stc_ethernet_mac_mhtrl_field_t MHTRL_f; - }; - union { - __IO uint32_t GAR; - stc_ethernet_mac_gar_field_t GAR_f; - }; - union { - __IO uint32_t GDR; - stc_ethernet_mac_gdr_field_t GDR_f; - }; - union { - __IO uint32_t FCR; - stc_ethernet_mac_fcr_field_t FCR_f; - }; - union { - __IO uint32_t VTR; - stc_ethernet_mac_vtr_field_t VTR_f; - }; - uint8_t RESERVED0[8]; - union { - __IO uint32_t RWFFR; - stc_ethernet_mac_rwffr_field_t RWFFR_f; - }; - union { - __IO uint32_t PMTR; - stc_ethernet_mac_pmtr_field_t PMTR_f; - }; - union { - __IO uint32_t LPICSR; - stc_ethernet_mac_lpicsr_field_t LPICSR_f; - }; - union { - __IO uint32_t LPITCR; - stc_ethernet_mac_lpitcr_field_t LPITCR_f; - }; - union { - __IO uint32_t ISR; - stc_ethernet_mac_isr_field_t ISR_f; - }; - union { - __IO uint32_t IMR; - stc_ethernet_mac_imr_field_t IMR_f; - }; - union { - __IO uint32_t MAR0H; - stc_ethernet_mac_mar0h_field_t MAR0H_f; - }; - union { - __IO uint32_t MAR0L; - stc_ethernet_mac_mar0l_field_t MAR0L_f; - }; - union { - __IO uint32_t MAR1H; - stc_ethernet_mac_mar1h_field_t MAR1H_f; - }; - union { - __IO uint32_t MAR1L; - stc_ethernet_mac_mar1l_field_t MAR1L_f; - }; - union { - __IO uint32_t MAR2H; - stc_ethernet_mac_mar2h_field_t MAR2H_f; - }; - union { - __IO uint32_t MAR2L; - stc_ethernet_mac_mar2l_field_t MAR2L_f; - }; - union { - __IO uint32_t MAR3H; - stc_ethernet_mac_mar3h_field_t MAR3H_f; - }; - union { - __IO uint32_t MAR3L; - stc_ethernet_mac_mar3l_field_t MAR3L_f; - }; - union { - __IO uint32_t MAR4H; - stc_ethernet_mac_mar4h_field_t MAR4H_f; - }; - union { - __IO uint32_t MAR4L; - stc_ethernet_mac_mar4l_field_t MAR4L_f; - }; - union { - __IO uint32_t MAR5H; - stc_ethernet_mac_mar5h_field_t MAR5H_f; - }; - union { - __IO uint32_t MAR5L; - stc_ethernet_mac_mar5l_field_t MAR5L_f; - }; - union { - __IO uint32_t MAR6H; - stc_ethernet_mac_mar6h_field_t MAR6H_f; - }; - union { - __IO uint32_t MAR6L; - stc_ethernet_mac_mar6l_field_t MAR6L_f; - }; - union { - __IO uint32_t MAR7H; - stc_ethernet_mac_mar7h_field_t MAR7H_f; - }; - union { - __IO uint32_t MAR7L; - stc_ethernet_mac_mar7l_field_t MAR7L_f; - }; - union { - __IO uint32_t MAR8H; - stc_ethernet_mac_mar8h_field_t MAR8H_f; - }; - union { - __IO uint32_t MAR8L; - stc_ethernet_mac_mar8l_field_t MAR8L_f; - }; - union { - __IO uint32_t MAR9H; - stc_ethernet_mac_mar9h_field_t MAR9H_f; - }; - union { - __IO uint32_t MAR9L; - stc_ethernet_mac_mar9l_field_t MAR9L_f; - }; - union { - __IO uint32_t MAR10H; - stc_ethernet_mac_mar10h_field_t MAR10H_f; - }; - union { - __IO uint32_t MAR10L; - stc_ethernet_mac_mar10l_field_t MAR10L_f; - }; - union { - __IO uint32_t MAR11H; - stc_ethernet_mac_mar11h_field_t MAR11H_f; - }; - union { - __IO uint32_t MAR11L; - stc_ethernet_mac_mar11l_field_t MAR11L_f; - }; - union { - __IO uint32_t MAR12H; - stc_ethernet_mac_mar12h_field_t MAR12H_f; - }; - union { - __IO uint32_t MAR12L; - stc_ethernet_mac_mar12l_field_t MAR12L_f; - }; - union { - __IO uint32_t MAR13H; - stc_ethernet_mac_mar13h_field_t MAR13H_f; - }; - union { - __IO uint32_t MAR13L; - stc_ethernet_mac_mar13l_field_t MAR13L_f; - }; - union { - __IO uint32_t MAR14H; - stc_ethernet_mac_mar14h_field_t MAR14H_f; - }; - union { - __IO uint32_t MAR14L; - stc_ethernet_mac_mar14l_field_t MAR14L_f; - }; - union { - __IO uint32_t MAR15H; - stc_ethernet_mac_mar15h_field_t MAR15H_f; - }; - union { - __IO uint32_t MAR15L; - stc_ethernet_mac_mar15l_field_t MAR15L_f; - }; - uint8_t RESERVED1[24]; - union { - __IO uint32_t RGSR; - stc_ethernet_mac_rgsr_field_t RGSR_f; - }; - uint8_t RESERVED2[36]; - __IO uint32_t mmc_cntl; - __IO uint32_t mmc_intr_rx; - __IO uint32_t mmc_intr_tx; - __IO uint32_t mmc_intr_mask_rx; - __IO uint32_t mmc_intr_mask_tx; - __IO uint32_t txoctetcount_gb; - __IO uint32_t txframecount_gb; - __IO uint32_t txbroadcastframes_g; - __IO uint32_t txmulticastframes_g; - __IO uint32_t tx64octets_gb; - __IO uint32_t tx65to127octets_gb; - __IO uint32_t tx128to255octets_gb; - __IO uint32_t tx256to511octets_gb; - __IO uint32_t tx512to1023octets_gb; - __IO uint32_t tx1024tomaxoctets_gb; - __IO uint32_t txunicastframes_gb; - __IO uint32_t txmulticastframes_gb; - __IO uint32_t txbroadcastframes_gb; - __IO uint32_t txunderflowerror; - __IO uint32_t txsinglecol_g; - __IO uint32_t txmulticol_g; - __IO uint32_t txdeferred; - __IO uint32_t txlatecol; - __IO uint32_t txexesscol; - __IO uint32_t txcarriererror; - __IO uint32_t txoctetcount_g; - __IO uint32_t txframecount_g; - __IO uint32_t txexecessdef_g; - __IO uint32_t txpauseframes; - __IO uint32_t txvlanframes_g; - uint8_t RESERVED3[8]; - __IO uint32_t rxframecount_gb; - __IO uint32_t rxoctetcount_gb; - __IO uint32_t rxoctetcount_g; - __IO uint32_t rxbroadcastframes_g; - __IO uint32_t rxmulticastframes_g; - __IO uint32_t rxcrcerror; - __IO uint32_t rxallignmenterror; - __IO uint32_t rxrunterror; - __IO uint32_t rxjabbererror; - __IO uint32_t rxundersize_g; - __IO uint32_t rxoversize_g; - __IO uint32_t rx64octets_gb; - __IO uint32_t rx65to127octets_gb; - __IO uint32_t rx128to255octets_gb; - __IO uint32_t rx256to511octets_gb; - __IO uint32_t rx512to1023octets_gb; - __IO uint32_t rx1024tomaxoctets_gb; - __IO uint32_t rxunicastframes_g; - __IO uint32_t rxlengtherror; - __IO uint32_t rxoutofrangetype; - __IO uint32_t rxpauseframes; - __IO uint32_t rxfifooverflow; - __IO uint32_t rxvlanframes_gb; - __IO uint32_t rxwatchdogerror; - uint8_t RESERVED4[32]; - __IO uint32_t mmc_ipc_intr_mask_rx; - uint8_t RESERVED5[4]; - __IO uint32_t mmc_ipc_intr_rx; - uint8_t RESERVED6[4]; - __IO uint32_t rxipv4_gd_frms; - __IO uint32_t rxipv4_hdrerr_frms; - __IO uint32_t rxipv4_nopay_frms; - __IO uint32_t rxipv4_frag_frms; - __IO uint32_t rxipv4_udsbl_frms; - __IO uint32_t rxipv6_gd_frms; - __IO uint32_t rxipv6_hdrerr_frms; - __IO uint32_t rxipv6_nopay_frms; - __IO uint32_t rxudp_gd_frms; - __IO uint32_t rxudp_err_frms; - __IO uint32_t rxtcp_gd_frms; - __IO uint32_t rxtcp_err_frms; - __IO uint32_t rxicmp_gd_frms; - __IO uint32_t rxicmp_err_frms; - uint8_t RESERVED7[8]; - __IO uint32_t rxipv4_gd_octets; - __IO uint32_t rxipv4_hdrerr_octets; - __IO uint32_t rxipv4_nopay_octets; - __IO uint32_t rxipv4_frag_octets; - __IO uint32_t rxipv4_udsbl_octets; - __IO uint32_t rxipv6_gd_octets; - __IO uint32_t rxipv6_hdrerr_octets; - __IO uint32_t rxipv6_nopay_octets; - __IO uint32_t rxudp_gd_octets; - __IO uint32_t rxudp_err_octets; - __IO uint32_t rxtcp_gd_octets; - __IO uint32_t rxtcp_err_octets; - __IO uint32_t rxicmp_gd_octets; - __IO uint32_t rxicmp_err_octets; - uint8_t RESERVED8[1144]; - union { - __IO uint32_t TSCR; - stc_ethernet_mac_tscr_field_t TSCR_f; - }; - union { - __IO uint32_t SSIR; - stc_ethernet_mac_ssir_field_t SSIR_f; - }; - union { - __IO uint32_t STSR; - stc_ethernet_mac_stsr_field_t STSR_f; - }; - union { - __IO uint32_t STNR; - stc_ethernet_mac_stnr_field_t STNR_f; - }; - union { - __IO uint32_t STSUR; - stc_ethernet_mac_stsur_field_t STSUR_f; - }; - union { - __IO uint32_t STNUR; - stc_ethernet_mac_stnur_field_t STNUR_f; - }; - union { - __IO uint32_t TSAR; - stc_ethernet_mac_tsar_field_t TSAR_f; - }; - union { - __IO uint32_t TTSR; - stc_ethernet_mac_ttsr_field_t TTSR_f; - }; - union { - __IO uint32_t TTNR; - stc_ethernet_mac_ttnr_field_t TTNR_f; - }; - union { - __IO uint32_t STHWSR; - stc_ethernet_mac_sthwsr_field_t STHWSR_f; - }; - union { - __IO uint32_t TSR; - stc_ethernet_mac_tsr_field_t TSR_f; - }; - union { - __IO uint32_t PPSCR; - stc_ethernet_mac_ppscr_field_t PPSCR_f; - }; - union { - __IO uint32_t ATNR; - stc_ethernet_mac_atnr_field_t ATNR_f; - }; - union { - __IO uint32_t ATSR; - stc_ethernet_mac_atsr_field_t ATSR_f; - }; - uint8_t RESERVED9[200]; - union { - __IO uint32_t MAR16H; - stc_ethernet_mac_mar16h_field_t MAR16H_f; - }; - union { - __IO uint32_t MAR16L; - stc_ethernet_mac_mar16l_field_t MAR16L_f; - }; - union { - __IO uint32_t MAR17H; - stc_ethernet_mac_mar17h_field_t MAR17H_f; - }; - union { - __IO uint32_t MAR17L; - stc_ethernet_mac_mar17l_field_t MAR17L_f; - }; - union { - __IO uint32_t MAR18H; - stc_ethernet_mac_mar18h_field_t MAR18H_f; - }; - union { - __IO uint32_t MAR18L; - stc_ethernet_mac_mar18l_field_t MAR18L_f; - }; - union { - __IO uint32_t MAR19H; - stc_ethernet_mac_mar19h_field_t MAR19H_f; - }; - union { - __IO uint32_t MAR19L; - stc_ethernet_mac_mar19l_field_t MAR19L_f; - }; - union { - __IO uint32_t MAR20H; - stc_ethernet_mac_mar20h_field_t MAR20H_f; - }; - union { - __IO uint32_t MAR20L; - stc_ethernet_mac_mar20l_field_t MAR20L_f; - }; - union { - __IO uint32_t MAR21H; - stc_ethernet_mac_mar21h_field_t MAR21H_f; - }; - union { - __IO uint32_t MAR21L; - stc_ethernet_mac_mar21l_field_t MAR21L_f; - }; - union { - __IO uint32_t MAR22H; - stc_ethernet_mac_mar22h_field_t MAR22H_f; - }; - union { - __IO uint32_t MAR22L; - stc_ethernet_mac_mar22l_field_t MAR22L_f; - }; - union { - __IO uint32_t MAR23H; - stc_ethernet_mac_mar23h_field_t MAR23H_f; - }; - union { - __IO uint32_t MAR23L; - stc_ethernet_mac_mar23l_field_t MAR23L_f; - }; - union { - __IO uint32_t MAR24H; - stc_ethernet_mac_mar24h_field_t MAR24H_f; - }; - union { - __IO uint32_t MAR24L; - stc_ethernet_mac_mar24l_field_t MAR24L_f; - }; - union { - __IO uint32_t MAR25H; - stc_ethernet_mac_mar25h_field_t MAR25H_f; - }; - union { - __IO uint32_t MAR25L; - stc_ethernet_mac_mar25l_field_t MAR25L_f; - }; - union { - __IO uint32_t MAR26H; - stc_ethernet_mac_mar26h_field_t MAR26H_f; - }; - union { - __IO uint32_t MAR26L; - stc_ethernet_mac_mar26l_field_t MAR26L_f; - }; - union { - __IO uint32_t MAR27H; - stc_ethernet_mac_mar27h_field_t MAR27H_f; - }; - union { - __IO uint32_t MAR27L; - stc_ethernet_mac_mar27l_field_t MAR27L_f; - }; - union { - __IO uint32_t MAR28H; - stc_ethernet_mac_mar28h_field_t MAR28H_f; - }; - union { - __IO uint32_t MAR28L; - stc_ethernet_mac_mar28l_field_t MAR28L_f; - }; - union { - __IO uint32_t MAR29H; - stc_ethernet_mac_mar29h_field_t MAR29H_f; - }; - union { - __IO uint32_t MAR29L; - stc_ethernet_mac_mar29l_field_t MAR29L_f; - }; - union { - __IO uint32_t MAR30H; - stc_ethernet_mac_mar30h_field_t MAR30H_f; - }; - union { - __IO uint32_t MAR30L; - stc_ethernet_mac_mar30l_field_t MAR30L_f; - }; - union { - __IO uint32_t MAR31H; - stc_ethernet_mac_mar31h_field_t MAR31H_f; - }; - union { - __IO uint32_t MAR31L; - stc_ethernet_mac_mar31l_field_t MAR31L_f; - }; - uint8_t RESERVED10[1920]; - union { - __IO uint32_t BMR; - stc_ethernet_mac_bmr_field_t BMR_f; - }; - union { - __IO uint32_t TPDR; - stc_ethernet_mac_tpdr_field_t TPDR_f; - }; - union { - __IO uint32_t RPDR; - stc_ethernet_mac_rpdr_field_t RPDR_f; - }; - union { - __IO uint32_t RDLAR; - stc_ethernet_mac_rdlar_field_t RDLAR_f; - }; - union { - __IO uint32_t TDLAR; - stc_ethernet_mac_tdlar_field_t TDLAR_f; - }; - union { - __IO uint32_t SR; - stc_ethernet_mac_sr_field_t SR_f; - }; - union { - __IO uint32_t OMR; - stc_ethernet_mac_omr_field_t OMR_f; - }; - union { - __IO uint32_t IER; - stc_ethernet_mac_ier_field_t IER_f; - }; - union { - __IO uint32_t MFBOCR; - stc_ethernet_mac_mfbocr_field_t MFBOCR_f; - }; - union { - __IO uint32_t RIWTR; - stc_ethernet_mac_riwtr_field_t RIWTR_f; - }; - uint8_t RESERVED11[4]; - union { - __IO uint32_t AHBSR; - stc_ethernet_mac_ahbsr_field_t AHBSR_f; - }; - uint8_t RESERVED12[24]; - union { - __IO uint32_t CHTDR; - stc_ethernet_mac_chtdr_field_t CHTDR_f; - }; - union { - __IO uint32_t CHRDR; - stc_ethernet_mac_chrdr_field_t CHRDR_f; - }; - union { - __IO uint32_t CHTBAR; - stc_ethernet_mac_chtbar_field_t CHTBAR_f; - }; - union { - __IO uint32_t CHRBAR; - stc_ethernet_mac_chrbar_field_t CHRBAR_f; - }; -}FM3_ETHERNET_MAC_TypeDef; - -/* ETHERNET-CONTROL registers */ -typedef struct -{ - union { - __IO uint32_t ETH_MODE; - stc_ethernet_control_eth_mode_field_t ETH_MODE_f; - }; - uint8_t RESERVED1[4]; - union { - __IO uint32_t ETH_CLKG; - stc_ethernet_control_eth_clkg_field_t ETH_CLKG_f; - }; -}FM3_ETHERNET_CONTROL_TypeDef; - -/****************************************************************************** - * Peripheral memory map - ******************************************************************************/ -#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ -#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ -#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ - -#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ -#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ -#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ -#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ -#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ -#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ -#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ -#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ -#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ -#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ -#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ -#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define FM3_MFT2_FRT_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Free Running Timer registers */ -#define FM3_MFT2_OCU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Output Compare Unit registers */ -#define FM3_MFT2_WFG_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT2_ICU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Input Capture Unit registers */ -#define FM3_MFT2_ADCMP_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 ADC Start Compare Unit registers */ -#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ -#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ -#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ -#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ -#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ -#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ -#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ -#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ -#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ -#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ -#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ -#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ -#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ -#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ -#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ -#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ -#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ -#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ -#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ -#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ -#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ -#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ -#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ -#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ -#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ -#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ -#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ -#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ -#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ -#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ -#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ -#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ -#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ -#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ -#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ -#define FM3_BT8_PPG_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PPG registers */ -#define FM3_BT8_PWM_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWM registers */ -#define FM3_BT8_RT_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 RT registers */ -#define FM3_BT8_PWC_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWC registers */ -#define FM3_BT9_PPG_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PPG registers */ -#define FM3_BT9_PWM_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWM registers */ -#define FM3_BT9_RT_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 RT registers */ -#define FM3_BT9_PWC_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWC registers */ -#define FM3_BT10_PPG_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PPG registers */ -#define FM3_BT10_PWM_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWM registers */ -#define FM3_BT10_RT_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 RT registers */ -#define FM3_BT10_PWC_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWC registers */ -#define FM3_BT11_PPG_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PPG registers */ -#define FM3_BT11_PWM_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWM registers */ -#define FM3_BT11_RT_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 RT registers */ -#define FM3_BT11_PWC_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWC registers */ -#define FM3_BT12_PPG_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PPG registers */ -#define FM3_BT12_PWM_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWM registers */ -#define FM3_BT12_RT_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 RT registers */ -#define FM3_BT12_PWC_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWC registers */ -#define FM3_BT13_PPG_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PPG registers */ -#define FM3_BT13_PWM_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWM registers */ -#define FM3_BT13_RT_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 RT registers */ -#define FM3_BT13_PWC_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWC registers */ -#define FM3_BT14_PPG_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PPG registers */ -#define FM3_BT14_PWM_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWM registers */ -#define FM3_BT14_RT_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 RT registers */ -#define FM3_BT14_PWC_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWC registers */ -#define FM3_BT15_PPG_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PPG registers */ -#define FM3_BT15_PWM_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWM registers */ -#define FM3_BT15_RT_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 RT registers */ -#define FM3_BT15_PWC_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWC registers */ -#define FM3_BTIOSEL8B_BASE (FM3_PERIPH_BASE + 0x25500UL) /* Base Timer I/O selector channel 8 - channel 11 registers */ -#define FM3_BTIOSELCF_BASE (FM3_PERIPH_BASE + 0x25700UL) /* Base Timer I/O selector channel 12 - channel 15 registers */ -#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ -#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ -#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ -#define FM3_QPRC2_BASE (FM3_PERIPH_BASE + 0x26080UL) /* Quad position and revolution counter channel 2 registers */ -#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ -#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ -#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ -#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ -#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ -#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ -#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ -#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ -#define FM3_USBETHERNETCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ -#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ -#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ -#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ -#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ -#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ -#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ -#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ -#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ -#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ -#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ -#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ -#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ -#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ -#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ -#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ -#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ -#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ -#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ -#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ -#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ -#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ -#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ -#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ -#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ -#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ -#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ -#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ -#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ -#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ -#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ -#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ -#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ -#define FM3_MFS_NFC_BASE (FM3_PERIPH_BASE + 0x38800UL) /* MFS Noise Filter Control register */ -#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ -#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ -#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ -#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ -#define FM3_USB1_BASE (FM3_PERIPH_BASE + 0x52100UL) /* USB channel 1 registers */ -#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ -#define FM3_ETHERNET_MAC0_BASE (FM3_PERIPH_BASE + 0x64000UL) /* Ethernet MAC 0 registers */ -#define FM3_ETHERNET_CONTROL_BASE (FM3_PERIPH_BASE + 0x66000UL) /* Ethernet MAC control registers */ -#define FM3_ETHERNET_MAC1_BASE (FM3_PERIPH_BASE + 0x67000UL) /* Ethernet MAC 1 registers */ - -/****************************************************************************** - * Peripheral declaration - ******************************************************************************/ -#define FM3_FLASH_IF ((FM3_FLASH_IF_TypeDef *)FM3_FLASH_IF_BASE) -#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) -#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) -#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) -#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) -#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) -#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) -#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) -#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) -#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) -#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) -#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) -#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) -#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) -#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) -#define FM3_MFT2_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT2_FRT_BASE) -#define FM3_MFT2_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT2_OCU_BASE) -#define FM3_MFT2_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT2_WFG_BASE) -#define FM3_MFT2_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT2_ICU_BASE) -#define FM3_MFT2_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT2_ADCMP_BASE) -#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) -#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) -#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) -#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) -#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) -#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) -#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) -#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) -#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) -#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) -#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) -#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) -#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) -#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) -#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) -#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) -#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) -#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) -#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) -#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) -#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) -#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) -#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) -#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) -#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) -#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) -#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) -#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) -#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) -#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) -#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) -#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) -#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) -#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) -#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) -#define FM3_BT8_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT8_PPG_BASE) -#define FM3_BT8_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT8_PWM_BASE) -#define FM3_BT8_RT ((FM3_BT_RT_TypeDef *)FM3_BT8_RT_BASE) -#define FM3_BT8_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT8_PWC_BASE) -#define FM3_BT9_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT9_PPG_BASE) -#define FM3_BT9_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT9_PWM_BASE) -#define FM3_BT9_RT ((FM3_BT_RT_TypeDef *)FM3_BT9_RT_BASE) -#define FM3_BT9_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT9_PWC_BASE) -#define FM3_BT10_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT10_PPG_BASE) -#define FM3_BT10_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT10_PWM_BASE) -#define FM3_BT10_RT ((FM3_BT_RT_TypeDef *)FM3_BT10_RT_BASE) -#define FM3_BT10_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT10_PWC_BASE) -#define FM3_BT11_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT11_PPG_BASE) -#define FM3_BT11_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT11_PWM_BASE) -#define FM3_BT11_RT ((FM3_BT_RT_TypeDef *)FM3_BT11_RT_BASE) -#define FM3_BT11_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT11_PWC_BASE) -#define FM3_BT12_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT12_PPG_BASE) -#define FM3_BT12_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT12_PWM_BASE) -#define FM3_BT12_RT ((FM3_BT_RT_TypeDef *)FM3_BT12_RT_BASE) -#define FM3_BT12_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT12_PWC_BASE) -#define FM3_BT13_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT13_PPG_BASE) -#define FM3_BT13_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT13_PWM_BASE) -#define FM3_BT13_RT ((FM3_BT_RT_TypeDef *)FM3_BT13_RT_BASE) -#define FM3_BT13_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT13_PWC_BASE) -#define FM3_BT14_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT14_PPG_BASE) -#define FM3_BT14_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT14_PWM_BASE) -#define FM3_BT14_RT ((FM3_BT_RT_TypeDef *)FM3_BT14_RT_BASE) -#define FM3_BT14_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT14_PWC_BASE) -#define FM3_BT15_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT15_PPG_BASE) -#define FM3_BT15_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT15_PWM_BASE) -#define FM3_BT15_RT ((FM3_BT_RT_TypeDef *)FM3_BT15_RT_BASE) -#define FM3_BT15_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT15_PWC_BASE) -#define FM3_BTIOSEL8B ((FM3_BTIOSEL8B_TypeDef *)FM3_BTIOSEL8B_BASE) -#define FM3_BTIOSELCF ((FM3_BTIOSELCF_TypeDef *)FM3_BTIOSELCF_BASE) -#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) -#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) -#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) -#define FM3_QPRC3 ((FM3_QPRC_TypeDef *)FM3_QPRC2_BASE) -#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) -#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) -#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) -#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) -#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) -#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) -#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) -#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) -#define FM3_USBETHERNETCLK ((FM3_USBETHERNETCLK_TypeDef *)FM3_USBETHERNETCLK_BASE) -#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) -#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) -#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) -#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) -#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) -#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) -#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) -#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) -#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) -#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) -#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) -#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) -#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) -#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) -#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) -#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) -#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) -#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) -#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) -#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) -#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) -#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) -#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) -#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) -#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) -#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) -#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) -#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) -#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) -#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) -#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) -#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) -#define FM3_MFS_NFC ((FM3_MFS_NFC_TypeDef *)FM3_MFS_NFC_BASE) -#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) -#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) -#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) -#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) -#define FM3_USB1 ((FM3_USB_TypeDef *)FM3_USB1_BASE) -#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) -#define FM3_ETHERNET_MAC0 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC0_BASE) -#define FM3_ETHERNET_CONTROL ((FM3_ETHERNET_CONTROL_TypeDef *)FM3_ETHERNET_CONTROL_BASE) -#define FM3_ETHERNET_MAC1 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC1_BASE) - -/****************************************************************************** - * Peripheral Bit Band Alias declaration - ******************************************************************************/ - -/* Flash interface registers */ -#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) -#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) -#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) -#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) -#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) -#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) -#define bFM3_FLASH_IF_FSTR_EER *((volatile unsigned int*)(0x42000108UL)) -#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) -#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) -#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) - -/* Clock and reset registers */ -#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) -#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) -#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) -#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) -#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) -#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) -#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) -#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) -#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) -#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) -#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) -#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) -#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) -#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) -#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) -#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) -#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) -#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) -#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) -#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) -#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) -#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) -#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) -#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) -#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) -#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) -#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) -#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) -#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) -#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) -#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) -#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) -#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) -#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) -#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) -#define bFM3_CRG_TTC_PSR_TTC0 *((volatile unsigned int*)(0x42200500UL)) -#define bFM3_CRG_TTC_PSR_TTC1 *((volatile unsigned int*)(0x42200504UL)) -#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) -#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) -#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) -#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) -#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) -#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) -#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) -#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) -#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) -#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) -#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) -#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) -#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) -#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) -#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) -#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) -#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) -#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) -#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) -#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) -#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) -#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) -#define bFM3_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) -#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) -#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) -#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) -#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) -#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) -#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) -#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) -#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) -#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) -#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) -#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) -#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) -#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) -#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) -#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) -#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) -#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) -#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) -#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) -#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) -#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) -#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) -#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) - -/* Hardware watchdog registers */ -#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) -#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) -#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) - -/* Software watchdog registers */ -#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) -#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) -#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) - -/* Dual timer 1/2 registers */ -#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) -#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) -#define bFM3_DTIM_TIMER1RIS_TIMER1RIS *((volatile unsigned int*)(0x422A0200UL)) -#define bFM3_DTIM_TIMER1MIS_TIMER1MIS *((volatile unsigned int*)(0x422A0280UL)) -#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) -#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) -#define bFM3_DTIM_TIMER2RIS_TIMER2RIS *((volatile unsigned int*)(0x422A0600UL)) -#define bFM3_DTIM_TIMER2MIS_TIMER2MIS *((volatile unsigned int*)(0x422A0680UL)) - -/* Multifunction Timer unit 0 Free Running Timer registers */ -#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) -#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) -#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) -#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) -#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) -#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) -#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) -#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) -#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) -#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) -#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) -#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) -#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) -#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) -#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) -#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) -#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) -#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) -#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) -#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) -#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) -#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) -#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) -#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) -#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) -#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) -#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) -#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) -#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) -#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) -#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) - -/* Multifunction Timer unit 0 Output Compare Unit registers */ -#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) -#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) -#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) -#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) -#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) -#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) -#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) -#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) -#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) -#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) -#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) -#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) -#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) -#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) -#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) -#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) -#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) -#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) -#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) -#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) -#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) -#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) -#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) -#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) -#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) -#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) - -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) -#define bFM3_MFT0_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4240118CUL)) -#define bFM3_MFT0_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42401190UL)) -#define bFM3_MFT0_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42401194UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) -#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) -#define bFM3_MFT0_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4240120CUL)) -#define bFM3_MFT0_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42401210UL)) -#define bFM3_MFT0_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42401214UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) -#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) -#define bFM3_MFT0_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4240128CUL)) -#define bFM3_MFT0_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42401290UL)) -#define bFM3_MFT0_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42401294UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) -#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) -#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) -#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) -#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) -#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) -#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) -#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) -#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) -#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) - -/* Multifunction Timer unit 0 Input Capture Unit registers */ -#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) -#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) -#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) -#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) -#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) -#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) -#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) -#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) -#define bFM3_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42400F18UL)) -#define bFM3_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42400F1CUL)) -#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) -#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) -#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) -#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) -#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) -#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) -#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) -#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) -#define bFM3_MFT0_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42400F98UL)) -#define bFM3_MFT0_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42400F9CUL)) -#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) -#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) - -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) -#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) - -/* Multifunction Timer unit 1 Free Running Timer registers */ -#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) -#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) -#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) -#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) -#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) -#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) -#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) -#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) -#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) -#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) -#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) -#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) -#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) -#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) -#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) -#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) -#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) -#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) -#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) -#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) -#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) -#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) -#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) -#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) -#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) -#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) -#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) -#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) -#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) -#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) -#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) - -/* Multifunction Timer unit 1 Output Compare Unit registers */ -#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) -#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) -#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) -#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) -#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) -#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) -#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) -#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) -#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) -#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) -#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) -#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) -#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) -#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) -#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) -#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) -#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) -#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) -#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) -#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) -#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) -#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) -#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) -#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) -#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) -#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) - -/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) -#define bFM3_MFT1_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4242118CUL)) -#define bFM3_MFT1_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42421190UL)) -#define bFM3_MFT1_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42421194UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) -#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) -#define bFM3_MFT1_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4242120CUL)) -#define bFM3_MFT1_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42421210UL)) -#define bFM3_MFT1_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42421214UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) -#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) -#define bFM3_MFT1_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4242128CUL)) -#define bFM3_MFT1_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42421290UL)) -#define bFM3_MFT1_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42421294UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) -#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) -#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) -#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) -#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) -#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) -#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) -#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) -#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) -#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) - -/* Multifunction Timer unit 1 Input Capture Unit registers */ -#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) -#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) -#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) -#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) -#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) -#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) -#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) -#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) -#define bFM3_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42420F18UL)) -#define bFM3_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42420F1CUL)) -#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) -#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) -#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) -#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) -#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) -#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) -#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) -#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) -#define bFM3_MFT1_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42420F98UL)) -#define bFM3_MFT1_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42420F9CUL)) -#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) -#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) - -/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) -#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) - -/* Multifunction Timer unit 2 Free Running Timer registers */ -#define bFM3_MFT2_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42440600UL)) -#define bFM3_MFT2_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42440604UL)) -#define bFM3_MFT2_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42440608UL)) -#define bFM3_MFT2_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4244060CUL)) -#define bFM3_MFT2_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42440610UL)) -#define bFM3_MFT2_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42440614UL)) -#define bFM3_MFT2_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42440618UL)) -#define bFM3_MFT2_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4244061CUL)) -#define bFM3_MFT2_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42440620UL)) -#define bFM3_MFT2_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42440624UL)) -#define bFM3_MFT2_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42440634UL)) -#define bFM3_MFT2_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42440638UL)) -#define bFM3_MFT2_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4244063CUL)) -#define bFM3_MFT2_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42440680UL)) -#define bFM3_MFT2_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42440684UL)) -#define bFM3_MFT2_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42440688UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42440800UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42440804UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42440808UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4244080CUL)) -#define bFM3_MFT2_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42440810UL)) -#define bFM3_MFT2_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42440814UL)) -#define bFM3_MFT2_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42440818UL)) -#define bFM3_MFT2_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4244081CUL)) -#define bFM3_MFT2_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42440820UL)) -#define bFM3_MFT2_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42440824UL)) -#define bFM3_MFT2_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42440834UL)) -#define bFM3_MFT2_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42440838UL)) -#define bFM3_MFT2_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4244083CUL)) -#define bFM3_MFT2_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42440880UL)) -#define bFM3_MFT2_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42440884UL)) -#define bFM3_MFT2_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42440888UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42440A00UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42440A04UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42440A08UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42440A0CUL)) -#define bFM3_MFT2_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42440A10UL)) -#define bFM3_MFT2_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42440A14UL)) -#define bFM3_MFT2_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42440A18UL)) -#define bFM3_MFT2_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42440A1CUL)) -#define bFM3_MFT2_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42440A20UL)) -#define bFM3_MFT2_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42440A24UL)) -#define bFM3_MFT2_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42440A34UL)) -#define bFM3_MFT2_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42440A38UL)) -#define bFM3_MFT2_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42440A3CUL)) -#define bFM3_MFT2_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42440A80UL)) -#define bFM3_MFT2_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42440A84UL)) -#define bFM3_MFT2_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42440A88UL)) - -/* Multifunction Timer unit 2 Output Compare Unit registers */ -#define bFM3_MFT2_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42440300UL)) -#define bFM3_MFT2_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42440304UL)) -#define bFM3_MFT2_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42440308UL)) -#define bFM3_MFT2_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4244030CUL)) -#define bFM3_MFT2_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42440310UL)) -#define bFM3_MFT2_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42440314UL)) -#define bFM3_MFT2_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42440318UL)) -#define bFM3_MFT2_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4244031CUL)) -#define bFM3_MFT2_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42440320UL)) -#define bFM3_MFT2_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42440324UL)) -#define bFM3_MFT2_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42440330UL)) -#define bFM3_MFT2_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42440334UL)) -#define bFM3_MFT2_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42440338UL)) -#define bFM3_MFT2_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42440380UL)) -#define bFM3_MFT2_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42440384UL)) -#define bFM3_MFT2_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42440388UL)) -#define bFM3_MFT2_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4244038CUL)) -#define bFM3_MFT2_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42440390UL)) -#define bFM3_MFT2_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42440394UL)) -#define bFM3_MFT2_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42440398UL)) -#define bFM3_MFT2_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4244039CUL)) -#define bFM3_MFT2_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424403A0UL)) -#define bFM3_MFT2_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424403A4UL)) -#define bFM3_MFT2_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424403B0UL)) -#define bFM3_MFT2_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424403B4UL)) -#define bFM3_MFT2_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424403B8UL)) -#define bFM3_MFT2_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42440400UL)) -#define bFM3_MFT2_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42440404UL)) -#define bFM3_MFT2_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42440408UL)) -#define bFM3_MFT2_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4244040CUL)) -#define bFM3_MFT2_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42440410UL)) -#define bFM3_MFT2_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42440414UL)) -#define bFM3_MFT2_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42440418UL)) -#define bFM3_MFT2_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4244041CUL)) -#define bFM3_MFT2_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42440420UL)) -#define bFM3_MFT2_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42440424UL)) -#define bFM3_MFT2_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42440430UL)) -#define bFM3_MFT2_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42440434UL)) -#define bFM3_MFT2_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42440438UL)) -#define bFM3_MFT2_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424404A0UL)) -#define bFM3_MFT2_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424404A4UL)) -#define bFM3_MFT2_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424404A8UL)) -#define bFM3_MFT2_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424404ACUL)) -#define bFM3_MFT2_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424404B0UL)) -#define bFM3_MFT2_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424404B4UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42440B00UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42440B04UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42440B08UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42440B0CUL)) -#define bFM3_MFT2_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42440B10UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42440B14UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42440B18UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42440B1CUL)) -#define bFM3_MFT2_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42440B20UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42440B24UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42440B28UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42440B2CUL)) -#define bFM3_MFT2_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42440B30UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42440B34UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42440B38UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42440B3CUL)) -#define bFM3_MFT2_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42440B80UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42440B84UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42440B88UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42440B8CUL)) -#define bFM3_MFT2_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42440B90UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42440B94UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42440B98UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42440B9CUL)) - -/* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT2_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42441180UL)) -#define bFM3_MFT2_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42441184UL)) -#define bFM3_MFT2_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42441188UL)) -#define bFM3_MFT2_WFG_WFSA10_TMD0 *((volatile unsigned int*)(0x4244118CUL)) -#define bFM3_MFT2_WFG_WFSA10_TMD1 *((volatile unsigned int*)(0x42441190UL)) -#define bFM3_MFT2_WFG_WFSA10_TMD2 *((volatile unsigned int*)(0x42441194UL)) -#define bFM3_MFT2_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42441198UL)) -#define bFM3_MFT2_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4244119CUL)) -#define bFM3_MFT2_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424411A0UL)) -#define bFM3_MFT2_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424411A4UL)) -#define bFM3_MFT2_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424411A8UL)) -#define bFM3_MFT2_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424411ACUL)) -#define bFM3_MFT2_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424411B0UL)) -#define bFM3_MFT2_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42441200UL)) -#define bFM3_MFT2_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42441204UL)) -#define bFM3_MFT2_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42441208UL)) -#define bFM3_MFT2_WFG_WFSA32_TMD0 *((volatile unsigned int*)(0x4244120CUL)) -#define bFM3_MFT2_WFG_WFSA32_TMD1 *((volatile unsigned int*)(0x42441210UL)) -#define bFM3_MFT2_WFG_WFSA32_TMD2 *((volatile unsigned int*)(0x42441214UL)) -#define bFM3_MFT2_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42441218UL)) -#define bFM3_MFT2_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4244121CUL)) -#define bFM3_MFT2_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42441220UL)) -#define bFM3_MFT2_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42441224UL)) -#define bFM3_MFT2_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42441228UL)) -#define bFM3_MFT2_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4244122CUL)) -#define bFM3_MFT2_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42441230UL)) -#define bFM3_MFT2_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42441280UL)) -#define bFM3_MFT2_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42441284UL)) -#define bFM3_MFT2_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42441288UL)) -#define bFM3_MFT2_WFG_WFSA54_TMD0 *((volatile unsigned int*)(0x4244128CUL)) -#define bFM3_MFT2_WFG_WFSA54_TMD1 *((volatile unsigned int*)(0x42441290UL)) -#define bFM3_MFT2_WFG_WFSA54_TMD2 *((volatile unsigned int*)(0x42441294UL)) -#define bFM3_MFT2_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42441298UL)) -#define bFM3_MFT2_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4244129CUL)) -#define bFM3_MFT2_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424412A0UL)) -#define bFM3_MFT2_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424412A4UL)) -#define bFM3_MFT2_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424412A8UL)) -#define bFM3_MFT2_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424412ACUL)) -#define bFM3_MFT2_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424412B0UL)) -#define bFM3_MFT2_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42441300UL)) -#define bFM3_MFT2_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42441304UL)) -#define bFM3_MFT2_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42441310UL)) -#define bFM3_MFT2_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42441314UL)) -#define bFM3_MFT2_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42441318UL)) -#define bFM3_MFT2_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4244131CUL)) -#define bFM3_MFT2_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42441320UL)) -#define bFM3_MFT2_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42441324UL)) -#define bFM3_MFT2_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42441328UL)) -#define bFM3_MFT2_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4244132CUL)) -#define bFM3_MFT2_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42441330UL)) -#define bFM3_MFT2_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42441334UL)) -#define bFM3_MFT2_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42441338UL)) -#define bFM3_MFT2_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4244133CUL)) -#define bFM3_MFT2_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42441380UL)) -#define bFM3_MFT2_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42441384UL)) -#define bFM3_MFT2_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42441388UL)) -#define bFM3_MFT2_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4244138CUL)) -#define bFM3_MFT2_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42441390UL)) - -/* Multifunction Timer unit 2 Input Capture Unit registers */ -#define bFM3_MFT2_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42440C00UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42440C04UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42440C08UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42440C0CUL)) -#define bFM3_MFT2_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42440C10UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42440C14UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42440C18UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42440C1CUL)) -#define bFM3_MFT2_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42440C20UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42440C24UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42440C28UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42440C2CUL)) -#define bFM3_MFT2_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42440C30UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42440C34UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42440C38UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42440C3CUL)) -#define bFM3_MFT2_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42440F00UL)) -#define bFM3_MFT2_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42440F04UL)) -#define bFM3_MFT2_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42440F08UL)) -#define bFM3_MFT2_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42440F0CUL)) -#define bFM3_MFT2_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42440F10UL)) -#define bFM3_MFT2_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42440F14UL)) -#define bFM3_MFT2_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42440F18UL)) -#define bFM3_MFT2_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42440F1CUL)) -#define bFM3_MFT2_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42440F20UL)) -#define bFM3_MFT2_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42440F24UL)) -#define bFM3_MFT2_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42440F80UL)) -#define bFM3_MFT2_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42440F84UL)) -#define bFM3_MFT2_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42440F88UL)) -#define bFM3_MFT2_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42440F8CUL)) -#define bFM3_MFT2_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42440F90UL)) -#define bFM3_MFT2_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42440F94UL)) -#define bFM3_MFT2_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42440F98UL)) -#define bFM3_MFT2_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42440F9CUL)) -#define bFM3_MFT2_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42440FA0UL)) -#define bFM3_MFT2_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42440FA4UL)) - -/* Multifunction Timer unit 2 ADC Start Compare Unit registers */ -#define bFM3_MFT2_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42441700UL)) -#define bFM3_MFT2_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42441704UL)) -#define bFM3_MFT2_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42441708UL)) -#define bFM3_MFT2_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42441710UL)) -#define bFM3_MFT2_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42441714UL)) -#define bFM3_MFT2_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42441718UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42441780UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42441784UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42441788UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4244178CUL)) -#define bFM3_MFT2_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42441790UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42441794UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424417A0UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424417A4UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424417A8UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424417ACUL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424417B0UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424417B4UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42441800UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42441804UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42441808UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4244180CUL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42441810UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42441814UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42441820UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42441824UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42441828UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4244182CUL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42441830UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42441834UL)) - -/* Multifunction Timer PPG registers */ -#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) -#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) -#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) -#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) -#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) -#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) -#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) -#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) -#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) -#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) -#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) -#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) -#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) -#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) -#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) -#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) -#define bFM3_MFT_PPG_TTCR2_STR2 *((volatile unsigned int*)(0x42480820UL)) -#define bFM3_MFT_PPG_TTCR2_MONI2 *((volatile unsigned int*)(0x42480824UL)) -#define bFM3_MFT_PPG_TTCR2_CS20 *((volatile unsigned int*)(0x42480828UL)) -#define bFM3_MFT_PPG_TTCR2_CS21 *((volatile unsigned int*)(0x4248082CUL)) -#define bFM3_MFT_PPG_TTCR2_TRG16O *((volatile unsigned int*)(0x42480830UL)) -#define bFM3_MFT_PPG_TTCR2_TRG18O *((volatile unsigned int*)(0x42480834UL)) -#define bFM3_MFT_PPG_TTCR2_TRG20O *((volatile unsigned int*)(0x42480838UL)) -#define bFM3_MFT_PPG_TTCR2_TRG22O *((volatile unsigned int*)(0x4248083CUL)) -#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) -#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) -#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) -#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) -#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) -#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) -#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) -#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) -#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) -#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) -#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) -#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) -#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) -#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) -#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) -#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) -#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) -#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) -#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) -#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) -#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) -#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) -#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) -#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) -#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) -#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) -#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) -#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) -#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) -#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) -#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) -#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) -#define bFM3_MFT_PPG_TRG1_PEN16 *((volatile unsigned int*)(0x42482800UL)) -#define bFM3_MFT_PPG_TRG1_PEN17 *((volatile unsigned int*)(0x42482804UL)) -#define bFM3_MFT_PPG_TRG1_PEN18 *((volatile unsigned int*)(0x42482808UL)) -#define bFM3_MFT_PPG_TRG1_PEN19 *((volatile unsigned int*)(0x4248280CUL)) -#define bFM3_MFT_PPG_TRG1_PEN20 *((volatile unsigned int*)(0x42482810UL)) -#define bFM3_MFT_PPG_TRG1_PEN21 *((volatile unsigned int*)(0x42482814UL)) -#define bFM3_MFT_PPG_TRG1_PEN22 *((volatile unsigned int*)(0x42482818UL)) -#define bFM3_MFT_PPG_TRG1_PEN23 *((volatile unsigned int*)(0x4248281CUL)) -#define bFM3_MFT_PPG_REVC1_REV16 *((volatile unsigned int*)(0x42482880UL)) -#define bFM3_MFT_PPG_REVC1_REV17 *((volatile unsigned int*)(0x42482884UL)) -#define bFM3_MFT_PPG_REVC1_REV18 *((volatile unsigned int*)(0x42482888UL)) -#define bFM3_MFT_PPG_REVC1_REV19 *((volatile unsigned int*)(0x4248288CUL)) -#define bFM3_MFT_PPG_REVC1_REV20 *((volatile unsigned int*)(0x42482890UL)) -#define bFM3_MFT_PPG_REVC1_REV21 *((volatile unsigned int*)(0x42482894UL)) -#define bFM3_MFT_PPG_REVC1_REV22 *((volatile unsigned int*)(0x42482898UL)) -#define bFM3_MFT_PPG_REVC1_REV23 *((volatile unsigned int*)(0x4248289CUL)) -#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) -#define bFM3_MFT_PPG_PPGC1_MD0 *((volatile unsigned int*)(0x42484004UL)) -#define bFM3_MFT_PPG_PPGC1_MD1 *((volatile unsigned int*)(0x42484008UL)) -#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) -#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) -#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) -#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) -#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) -#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) -#define bFM3_MFT_PPG_PPGC0_MD0 *((volatile unsigned int*)(0x42484024UL)) -#define bFM3_MFT_PPG_PPGC0_MD1 *((volatile unsigned int*)(0x42484028UL)) -#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) -#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) -#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) -#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) -#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) -#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) -#define bFM3_MFT_PPG_PPGC3_MD0 *((volatile unsigned int*)(0x42484084UL)) -#define bFM3_MFT_PPG_PPGC3_MD1 *((volatile unsigned int*)(0x42484088UL)) -#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) -#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) -#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) -#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) -#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) -#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) -#define bFM3_MFT_PPG_PPGC2_MD0 *((volatile unsigned int*)(0x424840A4UL)) -#define bFM3_MFT_PPG_PPGC2_MD1 *((volatile unsigned int*)(0x424840A8UL)) -#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) -#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) -#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) -#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) -#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) -#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) -#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) -#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) -#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) -#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) -#define bFM3_MFT_PPG_PPGC5_MD0 *((volatile unsigned int*)(0x42484804UL)) -#define bFM3_MFT_PPG_PPGC5_MD1 *((volatile unsigned int*)(0x42484808UL)) -#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) -#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) -#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) -#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) -#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) -#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) -#define bFM3_MFT_PPG_PPGC4_MD0 *((volatile unsigned int*)(0x42484824UL)) -#define bFM3_MFT_PPG_PPGC4_MD1 *((volatile unsigned int*)(0x42484828UL)) -#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) -#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) -#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) -#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) -#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) -#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) -#define bFM3_MFT_PPG_PPGC7_MD0 *((volatile unsigned int*)(0x42484884UL)) -#define bFM3_MFT_PPG_PPGC7_MD1 *((volatile unsigned int*)(0x42484888UL)) -#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) -#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) -#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) -#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) -#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) -#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) -#define bFM3_MFT_PPG_PPGC6_MD0 *((volatile unsigned int*)(0x424848A4UL)) -#define bFM3_MFT_PPG_PPGC6_MD1 *((volatile unsigned int*)(0x424848A8UL)) -#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) -#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) -#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) -#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) -#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) -#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) -#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) -#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) -#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) -#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) -#define bFM3_MFT_PPG_PPGC9_MD0 *((volatile unsigned int*)(0x42485004UL)) -#define bFM3_MFT_PPG_PPGC9_MD1 *((volatile unsigned int*)(0x42485008UL)) -#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) -#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) -#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) -#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) -#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) -#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) -#define bFM3_MFT_PPG_PPGC8_MD0 *((volatile unsigned int*)(0x42485024UL)) -#define bFM3_MFT_PPG_PPGC8_MD1 *((volatile unsigned int*)(0x42485028UL)) -#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) -#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) -#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) -#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) -#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) -#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) -#define bFM3_MFT_PPG_PPGC11_MD0 *((volatile unsigned int*)(0x42485084UL)) -#define bFM3_MFT_PPG_PPGC11_MD1 *((volatile unsigned int*)(0x42485088UL)) -#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) -#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) -#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) -#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) -#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) -#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) -#define bFM3_MFT_PPG_PPGC10_MD0 *((volatile unsigned int*)(0x424850A4UL)) -#define bFM3_MFT_PPG_PPGC10_MD1 *((volatile unsigned int*)(0x424850A8UL)) -#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) -#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) -#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) -#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) -#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) -#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) -#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) -#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) -#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) -#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) -#define bFM3_MFT_PPG_PPGC13_MD0 *((volatile unsigned int*)(0x42485804UL)) -#define bFM3_MFT_PPG_PPGC13_MD1 *((volatile unsigned int*)(0x42485808UL)) -#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) -#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) -#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) -#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) -#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) -#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) -#define bFM3_MFT_PPG_PPGC12_MD0 *((volatile unsigned int*)(0x42485824UL)) -#define bFM3_MFT_PPG_PPGC12_MD1 *((volatile unsigned int*)(0x42485828UL)) -#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) -#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) -#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) -#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) -#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) -#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) -#define bFM3_MFT_PPG_PPGC15_MD0 *((volatile unsigned int*)(0x42485884UL)) -#define bFM3_MFT_PPG_PPGC15_MD1 *((volatile unsigned int*)(0x42485888UL)) -#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) -#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) -#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) -#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) -#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) -#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) -#define bFM3_MFT_PPG_PPGC14_MD0 *((volatile unsigned int*)(0x424858A4UL)) -#define bFM3_MFT_PPG_PPGC14_MD1 *((volatile unsigned int*)(0x424858A8UL)) -#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) -#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) -#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) -#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) -#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) -#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) -#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) -#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) -#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) -#define bFM3_MFT_PPG_PPGC17_TTRG *((volatile unsigned int*)(0x42486000UL)) -#define bFM3_MFT_PPG_PPGC17_MD0 *((volatile unsigned int*)(0x42486004UL)) -#define bFM3_MFT_PPG_PPGC17_MD1 *((volatile unsigned int*)(0x42486008UL)) -#define bFM3_MFT_PPG_PPGC17_PCS0 *((volatile unsigned int*)(0x4248600CUL)) -#define bFM3_MFT_PPG_PPGC17_PCS1 *((volatile unsigned int*)(0x42486010UL)) -#define bFM3_MFT_PPG_PPGC17_INTM *((volatile unsigned int*)(0x42486014UL)) -#define bFM3_MFT_PPG_PPGC17_PUF *((volatile unsigned int*)(0x42486018UL)) -#define bFM3_MFT_PPG_PPGC17_PIE *((volatile unsigned int*)(0x4248601CUL)) -#define bFM3_MFT_PPG_PPGC16_TTRG *((volatile unsigned int*)(0x42486020UL)) -#define bFM3_MFT_PPG_PPGC16_MD0 *((volatile unsigned int*)(0x42486024UL)) -#define bFM3_MFT_PPG_PPGC16_MD1 *((volatile unsigned int*)(0x42486028UL)) -#define bFM3_MFT_PPG_PPGC16_PCS0 *((volatile unsigned int*)(0x4248602CUL)) -#define bFM3_MFT_PPG_PPGC16_PCS1 *((volatile unsigned int*)(0x42486030UL)) -#define bFM3_MFT_PPG_PPGC16_INTM *((volatile unsigned int*)(0x42486034UL)) -#define bFM3_MFT_PPG_PPGC16_PUF *((volatile unsigned int*)(0x42486038UL)) -#define bFM3_MFT_PPG_PPGC16_PIE *((volatile unsigned int*)(0x4248603CUL)) -#define bFM3_MFT_PPG_PPGC19_TTRG *((volatile unsigned int*)(0x42486080UL)) -#define bFM3_MFT_PPG_PPGC19_MD0 *((volatile unsigned int*)(0x42486084UL)) -#define bFM3_MFT_PPG_PPGC19_MD1 *((volatile unsigned int*)(0x42486088UL)) -#define bFM3_MFT_PPG_PPGC19_PCS0 *((volatile unsigned int*)(0x4248608CUL)) -#define bFM3_MFT_PPG_PPGC19_PCS1 *((volatile unsigned int*)(0x42486090UL)) -#define bFM3_MFT_PPG_PPGC19_INTM *((volatile unsigned int*)(0x42486094UL)) -#define bFM3_MFT_PPG_PPGC19_PUF *((volatile unsigned int*)(0x42486098UL)) -#define bFM3_MFT_PPG_PPGC19_PIE *((volatile unsigned int*)(0x4248609CUL)) -#define bFM3_MFT_PPG_PPGC18_TTRG *((volatile unsigned int*)(0x424860A0UL)) -#define bFM3_MFT_PPG_PPGC18_MD0 *((volatile unsigned int*)(0x424860A4UL)) -#define bFM3_MFT_PPG_PPGC18_MD1 *((volatile unsigned int*)(0x424860A8UL)) -#define bFM3_MFT_PPG_PPGC18_PCS0 *((volatile unsigned int*)(0x424860ACUL)) -#define bFM3_MFT_PPG_PPGC18_PCS1 *((volatile unsigned int*)(0x424860B0UL)) -#define bFM3_MFT_PPG_PPGC18_INTM *((volatile unsigned int*)(0x424860B4UL)) -#define bFM3_MFT_PPG_PPGC18_PUF *((volatile unsigned int*)(0x424860B8UL)) -#define bFM3_MFT_PPG_PPGC18_PIE *((volatile unsigned int*)(0x424860BCUL)) -#define bFM3_MFT_PPG_GATEC16_EDGE16 *((volatile unsigned int*)(0x42486300UL)) -#define bFM3_MFT_PPG_GATEC16_STRG16 *((volatile unsigned int*)(0x42486304UL)) -#define bFM3_MFT_PPG_GATEC16_EDGE18 *((volatile unsigned int*)(0x42486310UL)) -#define bFM3_MFT_PPG_GATEC16_STRG18 *((volatile unsigned int*)(0x42486314UL)) -#define bFM3_MFT_PPG_PPGC21_TTRG *((volatile unsigned int*)(0x42486800UL)) -#define bFM3_MFT_PPG_PPGC21_MD0 *((volatile unsigned int*)(0x42486804UL)) -#define bFM3_MFT_PPG_PPGC21_MD1 *((volatile unsigned int*)(0x42486808UL)) -#define bFM3_MFT_PPG_PPGC21_PCS0 *((volatile unsigned int*)(0x4248680CUL)) -#define bFM3_MFT_PPG_PPGC21_PCS1 *((volatile unsigned int*)(0x42486810UL)) -#define bFM3_MFT_PPG_PPGC21_INTM *((volatile unsigned int*)(0x42486814UL)) -#define bFM3_MFT_PPG_PPGC21_PUF *((volatile unsigned int*)(0x42486818UL)) -#define bFM3_MFT_PPG_PPGC21_PIE *((volatile unsigned int*)(0x4248681CUL)) -#define bFM3_MFT_PPG_PPGC20_TTRG *((volatile unsigned int*)(0x42486820UL)) -#define bFM3_MFT_PPG_PPGC20_MD0 *((volatile unsigned int*)(0x42486824UL)) -#define bFM3_MFT_PPG_PPGC20_MD1 *((volatile unsigned int*)(0x42486828UL)) -#define bFM3_MFT_PPG_PPGC20_PCS0 *((volatile unsigned int*)(0x4248682CUL)) -#define bFM3_MFT_PPG_PPGC20_PCS1 *((volatile unsigned int*)(0x42486830UL)) -#define bFM3_MFT_PPG_PPGC20_INTM *((volatile unsigned int*)(0x42486834UL)) -#define bFM3_MFT_PPG_PPGC20_PUF *((volatile unsigned int*)(0x42486838UL)) -#define bFM3_MFT_PPG_PPGC20_PIE *((volatile unsigned int*)(0x4248683CUL)) -#define bFM3_MFT_PPG_PPGC23_TTRG *((volatile unsigned int*)(0x42486880UL)) -#define bFM3_MFT_PPG_PPGC23_MD0 *((volatile unsigned int*)(0x42486884UL)) -#define bFM3_MFT_PPG_PPGC23_MD1 *((volatile unsigned int*)(0x42486888UL)) -#define bFM3_MFT_PPG_PPGC23_PCS0 *((volatile unsigned int*)(0x4248688CUL)) -#define bFM3_MFT_PPG_PPGC23_PCS1 *((volatile unsigned int*)(0x42486890UL)) -#define bFM3_MFT_PPG_PPGC23_INTM *((volatile unsigned int*)(0x42486894UL)) -#define bFM3_MFT_PPG_PPGC23_PUF *((volatile unsigned int*)(0x42486898UL)) -#define bFM3_MFT_PPG_PPGC23_PIE *((volatile unsigned int*)(0x4248689CUL)) -#define bFM3_MFT_PPG_PPGC22_TTRG *((volatile unsigned int*)(0x424868A0UL)) -#define bFM3_MFT_PPG_PPGC22_MD0 *((volatile unsigned int*)(0x424868A4UL)) -#define bFM3_MFT_PPG_PPGC22_MD1 *((volatile unsigned int*)(0x424868A8UL)) -#define bFM3_MFT_PPG_PPGC22_PCS0 *((volatile unsigned int*)(0x424868ACUL)) -#define bFM3_MFT_PPG_PPGC22_PCS1 *((volatile unsigned int*)(0x424868B0UL)) -#define bFM3_MFT_PPG_PPGC22_INTM *((volatile unsigned int*)(0x424868B4UL)) -#define bFM3_MFT_PPG_PPGC22_PUF *((volatile unsigned int*)(0x424868B8UL)) -#define bFM3_MFT_PPG_PPGC22_PIE *((volatile unsigned int*)(0x424868BCUL)) -#define bFM3_MFT_PPG_GATEC20_EDGE20 *((volatile unsigned int*)(0x42486B00UL)) -#define bFM3_MFT_PPG_GATEC20_STRG20 *((volatile unsigned int*)(0x42486B04UL)) -#define bFM3_MFT_PPG_GATEC20_EDGE22 *((volatile unsigned int*)(0x42486B10UL)) -#define bFM3_MFT_PPG_GATEC20_STRG22 *((volatile unsigned int*)(0x42486B14UL)) - -/* Base Timer 0 PPG registers */ -#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWM registers */ -#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) -#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) -#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 RT registers */ -#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWC registers */ -#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0190UL)) -#define bFM3_BT0_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0194UL)) -#define bFM3_BT0_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0198UL)) -#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) -#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 1 PPG registers */ -#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWM registers */ -#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) -#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) -#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 RT registers */ -#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWC registers */ -#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A0990UL)) -#define bFM3_BT1_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A0994UL)) -#define bFM3_BT1_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A0998UL)) -#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) -#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 2 PPG registers */ -#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWM registers */ -#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) -#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) -#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 RT registers */ -#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWC registers */ -#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1190UL)) -#define bFM3_BT2_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1194UL)) -#define bFM3_BT2_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1198UL)) -#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) -#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 3 PPG registers */ -#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWM registers */ -#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) -#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) -#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 RT registers */ -#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWC registers */ -#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A1990UL)) -#define bFM3_BT3_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A1994UL)) -#define bFM3_BT3_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A1998UL)) -#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) -#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 4 PPG registers */ -#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWM registers */ -#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) -#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) -#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 RT registers */ -#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWC registers */ -#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4190UL)) -#define bFM3_BT4_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4194UL)) -#define bFM3_BT4_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4198UL)) -#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) -#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 5 PPG registers */ -#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWM registers */ -#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) -#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) -#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 RT registers */ -#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWC registers */ -#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A4990UL)) -#define bFM3_BT5_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A4994UL)) -#define bFM3_BT5_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A4998UL)) -#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) -#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 6 PPG registers */ -#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWM registers */ -#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) -#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) -#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 RT registers */ -#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWC registers */ -#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5190UL)) -#define bFM3_BT6_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5194UL)) -#define bFM3_BT6_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5198UL)) -#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) -#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 7 PPG registers */ -#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWM registers */ -#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) -#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) -#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 RT registers */ -#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWC registers */ -#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A5990UL)) -#define bFM3_BT7_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A5994UL)) -#define bFM3_BT7_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A5998UL)) -#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) -#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer I/O selector channel 0 - channel 3 registers */ -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) - -/* Base Timer I/O selector channel 4 - channel 7 registers */ -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) - -/* Base Timer 8 PPG registers */ -#define bFM3_BT8_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM3_BT8_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM3_BT8_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) -#define bFM3_BT8_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) -#define bFM3_BT8_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) -#define bFM3_BT8_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM3_BT8_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) -#define bFM3_BT8_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 PWM registers */ -#define bFM3_BT8_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM3_BT8_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM3_BT8_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) -#define bFM3_BT8_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) -#define bFM3_BT8_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) -#define bFM3_BT8_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM3_BT8_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) -#define bFM3_BT8_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8204UL)) -#define bFM3_BT8_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8214UL)) -#define bFM3_BT8_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 RT registers */ -#define bFM3_BT8_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM3_BT8_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM3_BT8_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) -#define bFM3_BT8_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) -#define bFM3_BT8_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) -#define bFM3_BT8_RT_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) -#define bFM3_BT8_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_RT_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_RT_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_RT_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_RT_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 PWC registers */ -#define bFM3_BT8_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A8190UL)) -#define bFM3_BT8_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A8194UL)) -#define bFM3_BT8_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A8198UL)) -#define bFM3_BT8_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) -#define bFM3_BT8_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM3_BT8_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_PWC_STC_ERR *((volatile unsigned int*)(0x424A821CUL)) -#define bFM3_BT8_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 9 PPG registers */ -#define bFM3_BT9_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM3_BT9_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM3_BT9_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) -#define bFM3_BT9_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) -#define bFM3_BT9_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) -#define bFM3_BT9_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM3_BT9_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) -#define bFM3_BT9_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 PWM registers */ -#define bFM3_BT9_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM3_BT9_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM3_BT9_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) -#define bFM3_BT9_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) -#define bFM3_BT9_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) -#define bFM3_BT9_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM3_BT9_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) -#define bFM3_BT9_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8A04UL)) -#define bFM3_BT9_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8A14UL)) -#define bFM3_BT9_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 RT registers */ -#define bFM3_BT9_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM3_BT9_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM3_BT9_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) -#define bFM3_BT9_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) -#define bFM3_BT9_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) -#define bFM3_BT9_RT_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) -#define bFM3_BT9_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_RT_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_RT_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_RT_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_RT_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 PWC registers */ -#define bFM3_BT9_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A8990UL)) -#define bFM3_BT9_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A8994UL)) -#define bFM3_BT9_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A8998UL)) -#define bFM3_BT9_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) -#define bFM3_BT9_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM3_BT9_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_PWC_STC_ERR *((volatile unsigned int*)(0x424A8A1CUL)) -#define bFM3_BT9_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 10 PPG registers */ -#define bFM3_BT10_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM3_BT10_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM3_BT10_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) -#define bFM3_BT10_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) -#define bFM3_BT10_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) -#define bFM3_BT10_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM3_BT10_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) -#define bFM3_BT10_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 PWM registers */ -#define bFM3_BT10_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM3_BT10_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM3_BT10_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) -#define bFM3_BT10_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) -#define bFM3_BT10_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) -#define bFM3_BT10_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM3_BT10_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) -#define bFM3_BT10_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9204UL)) -#define bFM3_BT10_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9214UL)) -#define bFM3_BT10_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 RT registers */ -#define bFM3_BT10_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM3_BT10_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM3_BT10_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) -#define bFM3_BT10_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) -#define bFM3_BT10_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) -#define bFM3_BT10_RT_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) -#define bFM3_BT10_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_RT_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_RT_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_RT_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_RT_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 PWC registers */ -#define bFM3_BT10_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A9190UL)) -#define bFM3_BT10_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A9194UL)) -#define bFM3_BT10_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A9198UL)) -#define bFM3_BT10_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) -#define bFM3_BT10_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM3_BT10_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_PWC_STC_ERR *((volatile unsigned int*)(0x424A921CUL)) -#define bFM3_BT10_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 11 PPG registers */ -#define bFM3_BT11_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM3_BT11_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM3_BT11_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) -#define bFM3_BT11_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) -#define bFM3_BT11_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) -#define bFM3_BT11_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM3_BT11_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) -#define bFM3_BT11_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 PWM registers */ -#define bFM3_BT11_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM3_BT11_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM3_BT11_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) -#define bFM3_BT11_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) -#define bFM3_BT11_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) -#define bFM3_BT11_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM3_BT11_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) -#define bFM3_BT11_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9A04UL)) -#define bFM3_BT11_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9A14UL)) -#define bFM3_BT11_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 RT registers */ -#define bFM3_BT11_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM3_BT11_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM3_BT11_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) -#define bFM3_BT11_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) -#define bFM3_BT11_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) -#define bFM3_BT11_RT_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) -#define bFM3_BT11_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_RT_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_RT_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_RT_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_RT_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 PWC registers */ -#define bFM3_BT11_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424A9990UL)) -#define bFM3_BT11_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424A9994UL)) -#define bFM3_BT11_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424A9998UL)) -#define bFM3_BT11_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) -#define bFM3_BT11_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM3_BT11_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_PWC_STC_ERR *((volatile unsigned int*)(0x424A9A1CUL)) -#define bFM3_BT11_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 12 PPG registers */ -#define bFM3_BT12_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM3_BT12_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM3_BT12_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) -#define bFM3_BT12_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) -#define bFM3_BT12_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) -#define bFM3_BT12_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM3_BT12_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) -#define bFM3_BT12_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_PPG_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_PPG_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_PPG_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_PPG_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 PWM registers */ -#define bFM3_BT12_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM3_BT12_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM3_BT12_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) -#define bFM3_BT12_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) -#define bFM3_BT12_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) -#define bFM3_BT12_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM3_BT12_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) -#define bFM3_BT12_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_PWM_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_PWM_STC_DTIR *((volatile unsigned int*)(0x424AC204UL)) -#define bFM3_BT12_PWM_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_PWM_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_PWM_STC_DTIE *((volatile unsigned int*)(0x424AC214UL)) -#define bFM3_BT12_PWM_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 RT registers */ -#define bFM3_BT12_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM3_BT12_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM3_BT12_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) -#define bFM3_BT12_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) -#define bFM3_BT12_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) -#define bFM3_BT12_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) -#define bFM3_BT12_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_RT_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_RT_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_RT_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_RT_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 PWC registers */ -#define bFM3_BT12_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AC190UL)) -#define bFM3_BT12_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AC194UL)) -#define bFM3_BT12_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AC198UL)) -#define bFM3_BT12_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) -#define bFM3_BT12_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM3_BT12_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_PWC_STC_OVIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_PWC_STC_EDIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_PWC_STC_OVIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_PWC_STC_EDIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_PWC_STC_ERR *((volatile unsigned int*)(0x424AC21CUL)) -#define bFM3_BT12_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 13 PPG registers */ -#define bFM3_BT13_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM3_BT13_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM3_BT13_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) -#define bFM3_BT13_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) -#define bFM3_BT13_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) -#define bFM3_BT13_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM3_BT13_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) -#define bFM3_BT13_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_PPG_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_PPG_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_PPG_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_PPG_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 PWM registers */ -#define bFM3_BT13_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM3_BT13_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM3_BT13_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) -#define bFM3_BT13_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) -#define bFM3_BT13_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) -#define bFM3_BT13_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM3_BT13_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) -#define bFM3_BT13_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_PWM_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_PWM_STC_DTIR *((volatile unsigned int*)(0x424ACA04UL)) -#define bFM3_BT13_PWM_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_PWM_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_PWM_STC_DTIE *((volatile unsigned int*)(0x424ACA14UL)) -#define bFM3_BT13_PWM_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 RT registers */ -#define bFM3_BT13_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM3_BT13_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM3_BT13_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) -#define bFM3_BT13_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) -#define bFM3_BT13_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) -#define bFM3_BT13_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) -#define bFM3_BT13_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_RT_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_RT_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_RT_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_RT_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 PWC registers */ -#define bFM3_BT13_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AC990UL)) -#define bFM3_BT13_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AC994UL)) -#define bFM3_BT13_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AC998UL)) -#define bFM3_BT13_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) -#define bFM3_BT13_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM3_BT13_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_PWC_STC_OVIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_PWC_STC_EDIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_PWC_STC_OVIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_PWC_STC_EDIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_PWC_STC_ERR *((volatile unsigned int*)(0x424ACA1CUL)) -#define bFM3_BT13_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 14 PPG registers */ -#define bFM3_BT14_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM3_BT14_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM3_BT14_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) -#define bFM3_BT14_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) -#define bFM3_BT14_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) -#define bFM3_BT14_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM3_BT14_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) -#define bFM3_BT14_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_PPG_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_PPG_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_PPG_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_PPG_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 PWM registers */ -#define bFM3_BT14_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM3_BT14_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM3_BT14_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) -#define bFM3_BT14_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) -#define bFM3_BT14_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) -#define bFM3_BT14_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM3_BT14_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) -#define bFM3_BT14_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_PWM_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_PWM_STC_DTIR *((volatile unsigned int*)(0x424AD204UL)) -#define bFM3_BT14_PWM_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_PWM_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_PWM_STC_DTIE *((volatile unsigned int*)(0x424AD214UL)) -#define bFM3_BT14_PWM_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 RT registers */ -#define bFM3_BT14_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM3_BT14_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM3_BT14_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) -#define bFM3_BT14_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) -#define bFM3_BT14_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) -#define bFM3_BT14_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) -#define bFM3_BT14_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_RT_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_RT_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_RT_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_RT_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 PWC registers */ -#define bFM3_BT14_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AD190UL)) -#define bFM3_BT14_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AD194UL)) -#define bFM3_BT14_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AD198UL)) -#define bFM3_BT14_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) -#define bFM3_BT14_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM3_BT14_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_PWC_STC_OVIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_PWC_STC_EDIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_PWC_STC_OVIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_PWC_STC_EDIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_PWC_STC_ERR *((volatile unsigned int*)(0x424AD21CUL)) -#define bFM3_BT14_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 15 PPG registers */ -#define bFM3_BT15_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM3_BT15_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM3_BT15_PPG_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) -#define bFM3_BT15_PPG_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) -#define bFM3_BT15_PPG_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) -#define bFM3_BT15_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM3_BT15_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) -#define bFM3_BT15_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_PPG_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_PPG_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_PPG_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_PPG_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 PWM registers */ -#define bFM3_BT15_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM3_BT15_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM3_BT15_PWM_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) -#define bFM3_BT15_PWM_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) -#define bFM3_BT15_PWM_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) -#define bFM3_BT15_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM3_BT15_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) -#define bFM3_BT15_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_PWM_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_PWM_STC_DTIR *((volatile unsigned int*)(0x424ADA04UL)) -#define bFM3_BT15_PWM_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_PWM_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_PWM_STC_DTIE *((volatile unsigned int*)(0x424ADA14UL)) -#define bFM3_BT15_PWM_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 RT registers */ -#define bFM3_BT15_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM3_BT15_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM3_BT15_RT_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) -#define bFM3_BT15_RT_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) -#define bFM3_BT15_RT_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) -#define bFM3_BT15_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) -#define bFM3_BT15_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_RT_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_RT_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_RT_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_RT_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 PWC registers */ -#define bFM3_BT15_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_PWC_TMCR_FMD0 *((volatile unsigned int*)(0x424AD990UL)) -#define bFM3_BT15_PWC_TMCR_FMD1 *((volatile unsigned int*)(0x424AD994UL)) -#define bFM3_BT15_PWC_TMCR_FMD2 *((volatile unsigned int*)(0x424AD998UL)) -#define bFM3_BT15_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) -#define bFM3_BT15_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM3_BT15_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_PWC_STC_OVIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_PWC_STC_EDIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_PWC_STC_OVIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_PWC_STC_EDIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_PWC_STC_ERR *((volatile unsigned int*)(0x424ADA1CUL)) -#define bFM3_BT15_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer I/O selector channel 8 - channel 11 registers */ -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_0 *((volatile unsigned int*)(0x424AA020UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_1 *((volatile unsigned int*)(0x424AA024UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_2 *((volatile unsigned int*)(0x424AA028UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_3 *((volatile unsigned int*)(0x424AA02CUL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_0 *((volatile unsigned int*)(0x424AA030UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_1 *((volatile unsigned int*)(0x424AA034UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_2 *((volatile unsigned int*)(0x424AA038UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_3 *((volatile unsigned int*)(0x424AA03CUL)) - -/* Base Timer I/O selector channel 12 - channel 15 registers */ -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_0 *((volatile unsigned int*)(0x424AE020UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_1 *((volatile unsigned int*)(0x424AE024UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_2 *((volatile unsigned int*)(0x424AE028UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_3 *((volatile unsigned int*)(0x424AE02CUL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_0 *((volatile unsigned int*)(0x424AE030UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_1 *((volatile unsigned int*)(0x424AE034UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_2 *((volatile unsigned int*)(0x424AE038UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_3 *((volatile unsigned int*)(0x424AE03CUL)) - -/* Software based Simulation Startup (Base Timer) register */ -#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) -#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) -#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) -#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) -#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) -#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) -#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) -#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) -#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) -#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) -#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) -#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) -#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) -#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) -#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) -#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) - -/* Quad position and revolution counter channel 0 registers */ -#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) -#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) -#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) - -/* Quad position and revolution counter channel 1 registers */ -#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) -#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) -#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) - -/* Quad position and revolution counter channel 2 registers */ -#define bFM3_QPRC2_QICR_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) -#define bFM3_QPRC2_QICR_QPCMF *((volatile unsigned int*)(0x424C1284UL)) -#define bFM3_QPRC2_QICR_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) -#define bFM3_QPRC2_QICR_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) -#define bFM3_QPRC2_QICR_OUZIE *((volatile unsigned int*)(0x424C1290UL)) -#define bFM3_QPRC2_QICR_UFDF *((volatile unsigned int*)(0x424C1294UL)) -#define bFM3_QPRC2_QICR_OFDF *((volatile unsigned int*)(0x424C1298UL)) -#define bFM3_QPRC2_QICR_ZIIF *((volatile unsigned int*)(0x424C129CUL)) -#define bFM3_QPRC2_QICR_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) -#define bFM3_QPRC2_QICR_CDCF *((volatile unsigned int*)(0x424C12A4UL)) -#define bFM3_QPRC2_QICR_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) -#define bFM3_QPRC2_QICR_DIROU *((volatile unsigned int*)(0x424C12ACUL)) -#define bFM3_QPRC2_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) -#define bFM3_QPRC2_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) -#define bFM3_QPRC2_QICRL_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) -#define bFM3_QPRC2_QICRL_QPCMF *((volatile unsigned int*)(0x424C1284UL)) -#define bFM3_QPRC2_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) -#define bFM3_QPRC2_QICRL_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) -#define bFM3_QPRC2_QICRL_OUZIE *((volatile unsigned int*)(0x424C1290UL)) -#define bFM3_QPRC2_QICRL_UFDF *((volatile unsigned int*)(0x424C1294UL)) -#define bFM3_QPRC2_QICRL_OFDF *((volatile unsigned int*)(0x424C1298UL)) -#define bFM3_QPRC2_QICRL_ZIIF *((volatile unsigned int*)(0x424C129CUL)) -#define bFM3_QPRC2_QICRH_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) -#define bFM3_QPRC2_QICRH_CDCF *((volatile unsigned int*)(0x424C12A4UL)) -#define bFM3_QPRC2_QICRH_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) -#define bFM3_QPRC2_QICRH_DIROU *((volatile unsigned int*)(0x424C12ACUL)) -#define bFM3_QPRC2_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) -#define bFM3_QPRC2_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) -#define bFM3_QPRC2_QCR_PCM0 *((volatile unsigned int*)(0x424C1300UL)) -#define bFM3_QPRC2_QCR_PCM1 *((volatile unsigned int*)(0x424C1304UL)) -#define bFM3_QPRC2_QCR_RCM0 *((volatile unsigned int*)(0x424C1308UL)) -#define bFM3_QPRC2_QCR_RCM1 *((volatile unsigned int*)(0x424C130CUL)) -#define bFM3_QPRC2_QCR_PSTP *((volatile unsigned int*)(0x424C1310UL)) -#define bFM3_QPRC2_QCR_CGSC *((volatile unsigned int*)(0x424C1314UL)) -#define bFM3_QPRC2_QCR_RSEL *((volatile unsigned int*)(0x424C1318UL)) -#define bFM3_QPRC2_QCR_SWAP *((volatile unsigned int*)(0x424C131CUL)) -#define bFM3_QPRC2_QCR_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) -#define bFM3_QPRC2_QCR_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) -#define bFM3_QPRC2_QCR_AES0 *((volatile unsigned int*)(0x424C1328UL)) -#define bFM3_QPRC2_QCR_AES1 *((volatile unsigned int*)(0x424C132CUL)) -#define bFM3_QPRC2_QCR_BES0 *((volatile unsigned int*)(0x424C1330UL)) -#define bFM3_QPRC2_QCR_BES1 *((volatile unsigned int*)(0x424C1334UL)) -#define bFM3_QPRC2_QCR_CGE0 *((volatile unsigned int*)(0x424C1338UL)) -#define bFM3_QPRC2_QCR_CGE1 *((volatile unsigned int*)(0x424C133CUL)) -#define bFM3_QPRC2_QCRL_PCM0 *((volatile unsigned int*)(0x424C1300UL)) -#define bFM3_QPRC2_QCRL_PCM1 *((volatile unsigned int*)(0x424C1304UL)) -#define bFM3_QPRC2_QCRL_RCM0 *((volatile unsigned int*)(0x424C1308UL)) -#define bFM3_QPRC2_QCRL_RCM1 *((volatile unsigned int*)(0x424C130CUL)) -#define bFM3_QPRC2_QCRL_PSTP *((volatile unsigned int*)(0x424C1310UL)) -#define bFM3_QPRC2_QCRL_CGSC *((volatile unsigned int*)(0x424C1314UL)) -#define bFM3_QPRC2_QCRL_RSEL *((volatile unsigned int*)(0x424C1318UL)) -#define bFM3_QPRC2_QCRL_SWAP *((volatile unsigned int*)(0x424C131CUL)) -#define bFM3_QPRC2_QCRH_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) -#define bFM3_QPRC2_QCRH_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) -#define bFM3_QPRC2_QCRH_AES0 *((volatile unsigned int*)(0x424C1328UL)) -#define bFM3_QPRC2_QCRH_AES1 *((volatile unsigned int*)(0x424C132CUL)) -#define bFM3_QPRC2_QCRH_BES0 *((volatile unsigned int*)(0x424C1330UL)) -#define bFM3_QPRC2_QCRH_BES1 *((volatile unsigned int*)(0x424C1334UL)) -#define bFM3_QPRC2_QCRH_CGE0 *((volatile unsigned int*)(0x424C1338UL)) -#define bFM3_QPRC2_QCRH_CGE1 *((volatile unsigned int*)(0x424C133CUL)) -#define bFM3_QPRC2_QECR_ORNGMD *((volatile unsigned int*)(0x424C1380UL)) -#define bFM3_QPRC2_QECR_ORNGF *((volatile unsigned int*)(0x424C1384UL)) -#define bFM3_QPRC2_QECR_ORNGIE *((volatile unsigned int*)(0x424C1388UL)) - -/* 12-bit ADC unit 0 registers */ -#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) -#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) -#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) -#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) -#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) -#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) -#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) -#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) -#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) -#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) -#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) -#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) -#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) -#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) -#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) -#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) -#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) -#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) -#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) -#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) -#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) -#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) -#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) -#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) -#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) -#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) -#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) -#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) -#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) -#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) -#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) -#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) -#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) -#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) -#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) -#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) -#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) -#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) -#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) -#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) -#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) -#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) -#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) -#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) -#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) -#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) -#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) -#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) -#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) -#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) -#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) -#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) -#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) -#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) -#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) -#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) -#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) -#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) -#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) -#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) -#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) -#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) -#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) -#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) -#define bFM3_ADC0_ADCT_CT3 *((volatile unsigned int*)(0x424E068CUL)) -#define bFM3_ADC0_ADCT_CT4 *((volatile unsigned int*)(0x424E0690UL)) -#define bFM3_ADC0_ADCT_CT5 *((volatile unsigned int*)(0x424E0694UL)) -#define bFM3_ADC0_ADCT_CT6 *((volatile unsigned int*)(0x424E0698UL)) -#define bFM3_ADC0_ADCT_CT7 *((volatile unsigned int*)(0x424E069CUL)) -#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) -#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) -#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) -#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) -#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) -#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) -#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) -#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) -#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) -#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) -#define bFM3_ADC0_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E0790UL)) -#define bFM3_ADC0_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E0794UL)) - -/* 12-bit ADC unit 1 registers */ -#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) -#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) -#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) -#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) -#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) -#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) -#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) -#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) -#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) -#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) -#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) -#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) -#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) -#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) -#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) -#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) -#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) -#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) -#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) -#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) -#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) -#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) -#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) -#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) -#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) -#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) -#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) -#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) -#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) -#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) -#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) -#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) -#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) -#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) -#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) -#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) -#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) -#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) -#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) -#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) -#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) -#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) -#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) -#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) -#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) -#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) -#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) -#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) -#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) -#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) -#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) -#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) -#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) -#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) -#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) -#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) -#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) -#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) -#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) -#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) -#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) -#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) -#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) -#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) -#define bFM3_ADC1_ADCT_CT3 *((volatile unsigned int*)(0x424E268CUL)) -#define bFM3_ADC1_ADCT_CT4 *((volatile unsigned int*)(0x424E2690UL)) -#define bFM3_ADC1_ADCT_CT5 *((volatile unsigned int*)(0x424E2694UL)) -#define bFM3_ADC1_ADCT_CT6 *((volatile unsigned int*)(0x424E2698UL)) -#define bFM3_ADC1_ADCT_CT7 *((volatile unsigned int*)(0x424E269CUL)) -#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) -#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) -#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) -#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) -#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) -#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) -#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) -#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) -#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) -#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) -#define bFM3_ADC1_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E2790UL)) -#define bFM3_ADC1_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E2794UL)) - -/* 12-bit ADC unit 2 registers */ -#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) -#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) -#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) -#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) -#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) -#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) -#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) -#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) -#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) -#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) -#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) -#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) -#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) -#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) -#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) -#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) -#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) -#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) -#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) -#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) -#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) -#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) -#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) -#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) -#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) -#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) -#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) -#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) -#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) -#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) -#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) -#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) -#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) -#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) -#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) -#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) -#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) -#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) -#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) -#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) -#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) -#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) -#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) -#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) -#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) -#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) -#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) -#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) -#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) -#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) -#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) -#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) -#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) -#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) -#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) -#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) -#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) -#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) -#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) -#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) -#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) -#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) -#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) -#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) -#define bFM3_ADC2_ADCT_CT3 *((volatile unsigned int*)(0x424E468CUL)) -#define bFM3_ADC2_ADCT_CT4 *((volatile unsigned int*)(0x424E4690UL)) -#define bFM3_ADC2_ADCT_CT5 *((volatile unsigned int*)(0x424E4694UL)) -#define bFM3_ADC2_ADCT_CT6 *((volatile unsigned int*)(0x424E4698UL)) -#define bFM3_ADC2_ADCT_CT7 *((volatile unsigned int*)(0x424E469CUL)) -#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) -#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) -#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) -#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) -#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) -#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) -#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) -#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) -#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) -#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) -#define bFM3_ADC2_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E4790UL)) -#define bFM3_ADC2_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E4794UL)) - -/* CR trimming registers */ -#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) -#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) - -/* External interrupt registers */ -#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) -#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) -#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) -#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) -#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) -#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) -#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) -#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) -#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) -#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) -#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) -#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) -#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) -#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) -#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) -#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) -#define bFM3_EXTI_ENIR_EN16 *((volatile unsigned int*)(0x42600040UL)) -#define bFM3_EXTI_ENIR_EN17 *((volatile unsigned int*)(0x42600044UL)) -#define bFM3_EXTI_ENIR_EN18 *((volatile unsigned int*)(0x42600048UL)) -#define bFM3_EXTI_ENIR_EN19 *((volatile unsigned int*)(0x4260004CUL)) -#define bFM3_EXTI_ENIR_EN20 *((volatile unsigned int*)(0x42600050UL)) -#define bFM3_EXTI_ENIR_EN21 *((volatile unsigned int*)(0x42600054UL)) -#define bFM3_EXTI_ENIR_EN22 *((volatile unsigned int*)(0x42600058UL)) -#define bFM3_EXTI_ENIR_EN23 *((volatile unsigned int*)(0x4260005CUL)) -#define bFM3_EXTI_ENIR_EN24 *((volatile unsigned int*)(0x42600060UL)) -#define bFM3_EXTI_ENIR_EN25 *((volatile unsigned int*)(0x42600064UL)) -#define bFM3_EXTI_ENIR_EN26 *((volatile unsigned int*)(0x42600068UL)) -#define bFM3_EXTI_ENIR_EN27 *((volatile unsigned int*)(0x4260006CUL)) -#define bFM3_EXTI_ENIR_EN28 *((volatile unsigned int*)(0x42600070UL)) -#define bFM3_EXTI_ENIR_EN29 *((volatile unsigned int*)(0x42600074UL)) -#define bFM3_EXTI_ENIR_EN30 *((volatile unsigned int*)(0x42600078UL)) -#define bFM3_EXTI_ENIR_EN31 *((volatile unsigned int*)(0x4260007CUL)) -#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) -#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) -#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) -#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) -#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) -#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) -#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) -#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) -#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) -#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) -#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) -#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) -#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) -#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) -#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) -#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) -#define bFM3_EXTI_EIRR_ER16 *((volatile unsigned int*)(0x426000C0UL)) -#define bFM3_EXTI_EIRR_ER17 *((volatile unsigned int*)(0x426000C4UL)) -#define bFM3_EXTI_EIRR_ER18 *((volatile unsigned int*)(0x426000C8UL)) -#define bFM3_EXTI_EIRR_ER19 *((volatile unsigned int*)(0x426000CCUL)) -#define bFM3_EXTI_EIRR_ER20 *((volatile unsigned int*)(0x426000D0UL)) -#define bFM3_EXTI_EIRR_ER21 *((volatile unsigned int*)(0x426000D4UL)) -#define bFM3_EXTI_EIRR_ER22 *((volatile unsigned int*)(0x426000D8UL)) -#define bFM3_EXTI_EIRR_ER23 *((volatile unsigned int*)(0x426000DCUL)) -#define bFM3_EXTI_EIRR_ER24 *((volatile unsigned int*)(0x426000E0UL)) -#define bFM3_EXTI_EIRR_ER25 *((volatile unsigned int*)(0x426000E4UL)) -#define bFM3_EXTI_EIRR_ER26 *((volatile unsigned int*)(0x426000E8UL)) -#define bFM3_EXTI_EIRR_ER27 *((volatile unsigned int*)(0x426000ECUL)) -#define bFM3_EXTI_EIRR_ER28 *((volatile unsigned int*)(0x426000F0UL)) -#define bFM3_EXTI_EIRR_ER29 *((volatile unsigned int*)(0x426000F4UL)) -#define bFM3_EXTI_EIRR_ER30 *((volatile unsigned int*)(0x426000F8UL)) -#define bFM3_EXTI_EIRR_ER31 *((volatile unsigned int*)(0x426000FCUL)) -#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) -#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) -#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) -#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) -#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) -#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) -#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) -#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) -#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) -#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) -#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) -#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) -#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) -#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) -#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) -#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) -#define bFM3_EXTI_EICL_ECL16 *((volatile unsigned int*)(0x42600140UL)) -#define bFM3_EXTI_EICL_ECL17 *((volatile unsigned int*)(0x42600144UL)) -#define bFM3_EXTI_EICL_ECL18 *((volatile unsigned int*)(0x42600148UL)) -#define bFM3_EXTI_EICL_ECL19 *((volatile unsigned int*)(0x4260014CUL)) -#define bFM3_EXTI_EICL_ECL20 *((volatile unsigned int*)(0x42600150UL)) -#define bFM3_EXTI_EICL_ECL21 *((volatile unsigned int*)(0x42600154UL)) -#define bFM3_EXTI_EICL_ECL22 *((volatile unsigned int*)(0x42600158UL)) -#define bFM3_EXTI_EICL_ECL23 *((volatile unsigned int*)(0x4260015CUL)) -#define bFM3_EXTI_EICL_ECL24 *((volatile unsigned int*)(0x42600160UL)) -#define bFM3_EXTI_EICL_ECL25 *((volatile unsigned int*)(0x42600164UL)) -#define bFM3_EXTI_EICL_ECL26 *((volatile unsigned int*)(0x42600168UL)) -#define bFM3_EXTI_EICL_ECL27 *((volatile unsigned int*)(0x4260016CUL)) -#define bFM3_EXTI_EICL_ECL28 *((volatile unsigned int*)(0x42600170UL)) -#define bFM3_EXTI_EICL_ECL29 *((volatile unsigned int*)(0x42600174UL)) -#define bFM3_EXTI_EICL_ECL30 *((volatile unsigned int*)(0x42600178UL)) -#define bFM3_EXTI_EICL_ECL31 *((volatile unsigned int*)(0x4260017CUL)) -#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) -#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) -#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) -#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) -#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) -#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) -#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) -#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) -#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) -#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) -#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) -#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) -#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) -#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) -#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) -#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) -#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) -#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) -#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) -#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) -#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) -#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) -#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) -#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) -#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) -#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) -#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) -#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) -#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) -#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) -#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) -#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) -#define bFM3_EXTI_ELVR_LA16 *((volatile unsigned int*)(0x42600200UL)) -#define bFM3_EXTI_ELVR_LB16 *((volatile unsigned int*)(0x42600204UL)) -#define bFM3_EXTI_ELVR_LA17 *((volatile unsigned int*)(0x42600208UL)) -#define bFM3_EXTI_ELVR_LB17 *((volatile unsigned int*)(0x4260020CUL)) -#define bFM3_EXTI_ELVR_LA18 *((volatile unsigned int*)(0x42600210UL)) -#define bFM3_EXTI_ELVR_LB18 *((volatile unsigned int*)(0x42600214UL)) -#define bFM3_EXTI_ELVR_LA19 *((volatile unsigned int*)(0x42600218UL)) -#define bFM3_EXTI_ELVR_LB19 *((volatile unsigned int*)(0x4260021CUL)) -#define bFM3_EXTI_ELVR_LA20 *((volatile unsigned int*)(0x42600220UL)) -#define bFM3_EXTI_ELVR_LB20 *((volatile unsigned int*)(0x42600224UL)) -#define bFM3_EXTI_ELVR_LA21 *((volatile unsigned int*)(0x42600228UL)) -#define bFM3_EXTI_ELVR_LB21 *((volatile unsigned int*)(0x4260022CUL)) -#define bFM3_EXTI_ELVR_LA22 *((volatile unsigned int*)(0x42600230UL)) -#define bFM3_EXTI_ELVR_LB22 *((volatile unsigned int*)(0x42600234UL)) -#define bFM3_EXTI_ELVR_LA23 *((volatile unsigned int*)(0x42600238UL)) -#define bFM3_EXTI_ELVR_LB23 *((volatile unsigned int*)(0x4260023CUL)) -#define bFM3_EXTI_ELVR_LA24 *((volatile unsigned int*)(0x42600240UL)) -#define bFM3_EXTI_ELVR_LB24 *((volatile unsigned int*)(0x42600244UL)) -#define bFM3_EXTI_ELVR_LA25 *((volatile unsigned int*)(0x42600248UL)) -#define bFM3_EXTI_ELVR_LB25 *((volatile unsigned int*)(0x4260024CUL)) -#define bFM3_EXTI_ELVR_LA26 *((volatile unsigned int*)(0x42600250UL)) -#define bFM3_EXTI_ELVR_LB26 *((volatile unsigned int*)(0x42600254UL)) -#define bFM3_EXTI_ELVR_LA27 *((volatile unsigned int*)(0x42600258UL)) -#define bFM3_EXTI_ELVR_LB27 *((volatile unsigned int*)(0x4260025CUL)) -#define bFM3_EXTI_ELVR_LA28 *((volatile unsigned int*)(0x42600260UL)) -#define bFM3_EXTI_ELVR_LB28 *((volatile unsigned int*)(0x42600264UL)) -#define bFM3_EXTI_ELVR_LA29 *((volatile unsigned int*)(0x42600268UL)) -#define bFM3_EXTI_ELVR_LB29 *((volatile unsigned int*)(0x4260026CUL)) -#define bFM3_EXTI_ELVR_LA30 *((volatile unsigned int*)(0x42600270UL)) -#define bFM3_EXTI_ELVR_LB30 *((volatile unsigned int*)(0x42600274UL)) -#define bFM3_EXTI_ELVR_LA31 *((volatile unsigned int*)(0x42600278UL)) -#define bFM3_EXTI_ELVR_LB31 *((volatile unsigned int*)(0x4260027CUL)) -#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) -#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) - -/* Interrupt request read registers */ -#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS0 *((volatile unsigned char*)(0x42620160UL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS1 *((volatile unsigned char*)(0x42620164UL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS2 *((volatile unsigned char*)(0x42620168UL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS3 *((volatile unsigned char*)(0x4262016CUL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS4 *((volatile unsigned char*)(0x42620170UL)) -#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) -#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) -#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) -#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) -#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT0 *((volatile unsigned int*)(0x42620420UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT1 *((volatile unsigned int*)(0x42620424UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT2 *((volatile unsigned int*)(0x42620428UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT3 *((volatile unsigned int*)(0x4262042CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT8 *((volatile unsigned int*)(0x42620520UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT9 *((volatile unsigned int*)(0x42620524UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT10 *((volatile unsigned int*)(0x42620528UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT11 *((volatile unsigned int*)(0x4262052CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT12 *((volatile unsigned int*)(0x42620530UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT13 *((volatile unsigned int*)(0x42620534UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT14 *((volatile unsigned int*)(0x42620538UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT15 *((volatile unsigned int*)(0x4262053CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT16 *((volatile unsigned int*)(0x42620540UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT17 *((volatile unsigned int*)(0x42620544UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT18 *((volatile unsigned int*)(0x42620548UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT19 *((volatile unsigned int*)(0x4262054CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT20 *((volatile unsigned int*)(0x42620550UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT21 *((volatile unsigned int*)(0x42620554UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT22 *((volatile unsigned int*)(0x42620558UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT23 *((volatile unsigned int*)(0x4262055CUL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620580UL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT2 *((volatile unsigned int*)(0x42620584UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT0 *((volatile unsigned int*)(0x426205B8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT1 *((volatile unsigned int*)(0x426205BCUL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT2 *((volatile unsigned int*)(0x426205C0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT3 *((volatile unsigned int*)(0x426205C4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT4 *((volatile unsigned int*)(0x426205C8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT5 *((volatile unsigned int*)(0x426205CCUL)) -#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) -#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) -#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) -#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) -#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) -#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) -#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) -#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT6 *((volatile unsigned int*)(0x42620E18UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT7 *((volatile unsigned int*)(0x42620E1CUL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT8 *((volatile unsigned int*)(0x42620E20UL)) -#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) -#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) -#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) -#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) -#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT0 *((volatile unsigned int*)(0x426210B0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT1 *((volatile unsigned int*)(0x426210B4UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT2 *((volatile unsigned int*)(0x426210B8UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT3 *((volatile unsigned int*)(0x426210BCUL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT4 *((volatile unsigned int*)(0x426210C0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT5 *((volatile unsigned int*)(0x426210C4UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT0 *((volatile unsigned int*)(0x42621120UL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT1 *((volatile unsigned int*)(0x42621124UL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT2 *((volatile unsigned int*)(0x42621128UL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT3 *((volatile unsigned int*)(0x4262112CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT0 *((volatile unsigned int*)(0x426211B0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT1 *((volatile unsigned int*)(0x426211B4UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT2 *((volatile unsigned int*)(0x426211B8UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT3 *((volatile unsigned int*)(0x426211BCUL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT4 *((volatile unsigned int*)(0x426211C0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT5 *((volatile unsigned int*)(0x426211C4UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) -#define bFM3_INTREQ_IRQ32MON_MAC0SBD *((volatile unsigned int*)(0x42621284UL)) -#define bFM3_INTREQ_IRQ32MON_MAC0PMI *((volatile unsigned int*)(0x42621288UL)) -#define bFM3_INTREQ_IRQ32MON_MAC0LPI *((volatile unsigned int*)(0x4262128CUL)) -#define bFM3_INTREQ_IRQ33MON_MAC1SBD *((volatile unsigned int*)(0x42621304UL)) -#define bFM3_INTREQ_IRQ33MON_MAC1PMI *((volatile unsigned int*)(0x42621308UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT5 *((volatile unsigned int*)(0x42621414UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT0 *((volatile unsigned int*)(0x42621480UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT1 *((volatile unsigned int*)(0x42621484UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT2 *((volatile unsigned int*)(0x42621488UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT3 *((volatile unsigned int*)(0x4262148CUL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT4 *((volatile unsigned int*)(0x42621490UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT0 *((volatile unsigned int*)(0x42621500UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT1 *((volatile unsigned int*)(0x42621504UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT2 *((volatile unsigned int*)(0x42621508UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT3 *((volatile unsigned int*)(0x4262150CUL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT4 *((volatile unsigned int*)(0x42621510UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT5 *((volatile unsigned int*)(0x42621514UL)) -#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) -#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) -#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) -#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) -#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) -#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) -#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) -#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT0 *((volatile unsigned int*)(0x42621980UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT1 *((volatile unsigned int*)(0x42621984UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT2 *((volatile unsigned int*)(0x42621988UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT3 *((volatile unsigned int*)(0x4262198CUL)) -#define bFM3_INTREQ_IRQ46MON_BTINT4 *((volatile unsigned int*)(0x42621990UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT5 *((volatile unsigned int*)(0x42621994UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT6 *((volatile unsigned int*)(0x42621998UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT7 *((volatile unsigned int*)(0x4262199CUL)) -#define bFM3_INTREQ_IRQ46MON_BTINT8 *((volatile unsigned int*)(0x426219A0UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT9 *((volatile unsigned int*)(0x426219A4UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT10 *((volatile unsigned int*)(0x426219A8UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT11 *((volatile unsigned int*)(0x426219ACUL)) -#define bFM3_INTREQ_IRQ46MON_BTINT12 *((volatile unsigned int*)(0x426219B0UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT13 *((volatile unsigned int*)(0x426219B4UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT14 *((volatile unsigned int*)(0x426219B8UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT15 *((volatile unsigned int*)(0x426219BCUL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL10 *((volatile unsigned int*)(0x42624000UL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL11 *((volatile unsigned int*)(0x42624004UL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL12 *((volatile unsigned int*)(0x42624008UL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL13 *((volatile unsigned int*)(0x4262400CUL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL14 *((volatile unsigned int*)(0x42624010UL)) -#define bFM3_INTREQ_DQESEL_ESEL100 *((volatile unsigned int*)(0x42624080UL)) -#define bFM3_INTREQ_DQESEL_ESEL101 *((volatile unsigned int*)(0x42624084UL)) -#define bFM3_INTREQ_DQESEL_ESEL102 *((volatile unsigned int*)(0x42624088UL)) -#define bFM3_INTREQ_DQESEL_ESEL103 *((volatile unsigned int*)(0x4262408CUL)) -#define bFM3_INTREQ_DQESEL_ESEL110 *((volatile unsigned int*)(0x42624090UL)) -#define bFM3_INTREQ_DQESEL_ESEL111 *((volatile unsigned int*)(0x42624094UL)) -#define bFM3_INTREQ_DQESEL_ESEL112 *((volatile unsigned int*)(0x42624098UL)) -#define bFM3_INTREQ_DQESEL_ESEL113 *((volatile unsigned int*)(0x4262409CUL)) -#define bFM3_INTREQ_DQESEL_ESEL240 *((volatile unsigned int*)(0x426240A0UL)) -#define bFM3_INTREQ_DQESEL_ESEL241 *((volatile unsigned int*)(0x426240A4UL)) -#define bFM3_INTREQ_DQESEL_ESEL242 *((volatile unsigned int*)(0x426240A8UL)) -#define bFM3_INTREQ_DQESEL_ESEL243 *((volatile unsigned int*)(0x426240ACUL)) -#define bFM3_INTREQ_DQESEL_ESEL250 *((volatile unsigned int*)(0x426240B0UL)) -#define bFM3_INTREQ_DQESEL_ESEL251 *((volatile unsigned int*)(0x426240B4UL)) -#define bFM3_INTREQ_DQESEL_ESEL252 *((volatile unsigned int*)(0x426240B8UL)) -#define bFM3_INTREQ_DQESEL_ESEL253 *((volatile unsigned int*)(0x426240BCUL)) -#define bFM3_INTREQ_DQESEL_ESEL260 *((volatile unsigned int*)(0x426240C0UL)) -#define bFM3_INTREQ_DQESEL_ESEL261 *((volatile unsigned int*)(0x426240C4UL)) -#define bFM3_INTREQ_DQESEL_ESEL262 *((volatile unsigned int*)(0x426240C8UL)) -#define bFM3_INTREQ_DQESEL_ESEL263 *((volatile unsigned int*)(0x426240CCUL)) -#define bFM3_INTREQ_DQESEL_ESEL270 *((volatile unsigned int*)(0x426240D0UL)) -#define bFM3_INTREQ_DQESEL_ESEL271 *((volatile unsigned int*)(0x426240D4UL)) -#define bFM3_INTREQ_DQESEL_ESEL272 *((volatile unsigned int*)(0x426240D8UL)) -#define bFM3_INTREQ_DQESEL_ESEL273 *((volatile unsigned int*)(0x426240DCUL)) -#define bFM3_INTREQ_DQESEL_ESEL300 *((volatile unsigned int*)(0x426240E0UL)) -#define bFM3_INTREQ_DQESEL_ESEL301 *((volatile unsigned int*)(0x426240E4UL)) -#define bFM3_INTREQ_DQESEL_ESEL302 *((volatile unsigned int*)(0x426240E8UL)) -#define bFM3_INTREQ_DQESEL_ESEL303 *((volatile unsigned int*)(0x426240ECUL)) -#define bFM3_INTREQ_DQESEL_ESEL310 *((volatile unsigned int*)(0x426240F0UL)) -#define bFM3_INTREQ_DQESEL_ESEL311 *((volatile unsigned int*)(0x426240F4UL)) -#define bFM3_INTREQ_DQESEL_ESEL312 *((volatile unsigned int*)(0x426240F8UL)) -#define bFM3_INTREQ_DQESEL_ESEL313 *((volatile unsigned int*)(0x426240FCUL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS10 *((volatile unsigned char*)(0x426241E0UL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS11 *((volatile unsigned char*)(0x426241E4UL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS12 *((volatile unsigned char*)(0x426241E8UL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS13 *((volatile unsigned char*)(0x426241ECUL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS14 *((volatile unsigned char*)(0x426241F0UL)) - -/* General purpose I/O registers */ -#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) -#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) -#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) -#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) -#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) -#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) -#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) -#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) -#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) -#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) -#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) -#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) -#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) -#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) -#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) -#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) -#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) -#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) -#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) -#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) -#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) -#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) -#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) -#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) -#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) -#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) -#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) -#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) -#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) -#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) -#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) -#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) -#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) -#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) -#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) -#define bFM3_GPIO_PFR2_P9 *((volatile unsigned int*)(0x42660124UL)) -#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) -#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) -#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) -#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) -#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) -#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) -#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) -#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) -#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) -#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) -#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) -#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) -#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) -#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) -#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) -#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) -#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) -#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) -#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) -#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) -#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) -#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) -#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) -#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) -#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) -#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) -#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) -#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) -#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) -#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) -#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) -#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) -#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) -#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) -#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) -#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) -#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) -#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) -#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) -#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) -#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) -#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) -#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) -#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) -#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) -#define bFM3_GPIO_PFR7_P5 *((volatile unsigned int*)(0x42660394UL)) -#define bFM3_GPIO_PFR7_P6 *((volatile unsigned int*)(0x42660398UL)) -#define bFM3_GPIO_PFR7_P7 *((volatile unsigned int*)(0x4266039CUL)) -#define bFM3_GPIO_PFR7_P8 *((volatile unsigned int*)(0x426603A0UL)) -#define bFM3_GPIO_PFR7_P9 *((volatile unsigned int*)(0x426603A4UL)) -#define bFM3_GPIO_PFR7_PA *((volatile unsigned int*)(0x426603A8UL)) -#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) -#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) -#define bFM3_GPIO_PFR8_P2 *((volatile unsigned int*)(0x42660408UL)) -#define bFM3_GPIO_PFR8_P3 *((volatile unsigned int*)(0x4266040CUL)) -#define bFM3_GPIO_PFRA_P0 *((volatile unsigned int*)(0x42660500UL)) -#define bFM3_GPIO_PFRA_P1 *((volatile unsigned int*)(0x42660504UL)) -#define bFM3_GPIO_PFRA_P2 *((volatile unsigned int*)(0x42660508UL)) -#define bFM3_GPIO_PFRA_P3 *((volatile unsigned int*)(0x4266050CUL)) -#define bFM3_GPIO_PFRA_P4 *((volatile unsigned int*)(0x42660510UL)) -#define bFM3_GPIO_PFRA_P5 *((volatile unsigned int*)(0x42660514UL)) -#define bFM3_GPIO_PFRC_P0 *((volatile unsigned int*)(0x42660600UL)) -#define bFM3_GPIO_PFRC_P1 *((volatile unsigned int*)(0x42660604UL)) -#define bFM3_GPIO_PFRC_P2 *((volatile unsigned int*)(0x42660608UL)) -#define bFM3_GPIO_PFRC_P3 *((volatile unsigned int*)(0x4266060CUL)) -#define bFM3_GPIO_PFRC_P4 *((volatile unsigned int*)(0x42660610UL)) -#define bFM3_GPIO_PFRC_P5 *((volatile unsigned int*)(0x42660614UL)) -#define bFM3_GPIO_PFRC_P6 *((volatile unsigned int*)(0x42660618UL)) -#define bFM3_GPIO_PFRC_P7 *((volatile unsigned int*)(0x4266061CUL)) -#define bFM3_GPIO_PFRC_P8 *((volatile unsigned int*)(0x42660620UL)) -#define bFM3_GPIO_PFRC_P9 *((volatile unsigned int*)(0x42660624UL)) -#define bFM3_GPIO_PFRC_PA *((volatile unsigned int*)(0x42660628UL)) -#define bFM3_GPIO_PFRC_PB *((volatile unsigned int*)(0x4266062CUL)) -#define bFM3_GPIO_PFRC_PC *((volatile unsigned int*)(0x42660630UL)) -#define bFM3_GPIO_PFRC_PD *((volatile unsigned int*)(0x42660634UL)) -#define bFM3_GPIO_PFRC_PE *((volatile unsigned int*)(0x42660638UL)) -#define bFM3_GPIO_PFRC_PF *((volatile unsigned int*)(0x4266063CUL)) -#define bFM3_GPIO_PFRD_P0 *((volatile unsigned int*)(0x42660680UL)) -#define bFM3_GPIO_PFRD_P1 *((volatile unsigned int*)(0x42660684UL)) -#define bFM3_GPIO_PFRD_P2 *((volatile unsigned int*)(0x42660688UL)) -#define bFM3_GPIO_PFRD_P3 *((volatile unsigned int*)(0x4266068CUL)) -#define bFM3_GPIO_PFRE_P0 *((volatile unsigned int*)(0x42660700UL)) -#define bFM3_GPIO_PFRE_P2 *((volatile unsigned int*)(0x42660708UL)) -#define bFM3_GPIO_PFRE_P3 *((volatile unsigned int*)(0x4266070CUL)) -#define bFM3_GPIO_PFRF_P5 *((volatile unsigned int*)(0x42660794UL)) -#define bFM3_GPIO_PFRF_P6 *((volatile unsigned int*)(0x42660798UL)) -#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) -#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) -#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) -#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) -#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) -#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) -#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) -#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) -#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) -#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) -#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) -#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) -#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) -#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) -#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) -#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) -#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) -#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) -#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) -#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) -#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) -#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) -#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) -#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) -#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) -#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) -#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) -#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) -#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) -#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) -#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) -#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) -#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) -#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) -#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) -#define bFM3_GPIO_PCR2_P9 *((volatile unsigned int*)(0x42662124UL)) -#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) -#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) -#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) -#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) -#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) -#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) -#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) -#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) -#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) -#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) -#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) -#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) -#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) -#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) -#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) -#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) -#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) -#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) -#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) -#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) -#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) -#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) -#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) -#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) -#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) -#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) -#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) -#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) -#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) -#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) -#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) -#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) -#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) -#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) -#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) -#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) -#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) -#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) -#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) -#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) -#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) -#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) -#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) -#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) -#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) -#define bFM3_GPIO_PCR7_P5 *((volatile unsigned int*)(0x42662394UL)) -#define bFM3_GPIO_PCR7_P6 *((volatile unsigned int*)(0x42662398UL)) -#define bFM3_GPIO_PCR7_P7 *((volatile unsigned int*)(0x4266239CUL)) -#define bFM3_GPIO_PCR7_P8 *((volatile unsigned int*)(0x426623A0UL)) -#define bFM3_GPIO_PCR7_P9 *((volatile unsigned int*)(0x426623A4UL)) -#define bFM3_GPIO_PCR7_PA *((volatile unsigned int*)(0x426623A8UL)) -#define bFM3_GPIO_PCRA_P0 *((volatile unsigned int*)(0x42662500UL)) -#define bFM3_GPIO_PCRA_P1 *((volatile unsigned int*)(0x42662504UL)) -#define bFM3_GPIO_PCRA_P2 *((volatile unsigned int*)(0x42662508UL)) -#define bFM3_GPIO_PCRA_P3 *((volatile unsigned int*)(0x4266250CUL)) -#define bFM3_GPIO_PCRA_P4 *((volatile unsigned int*)(0x42662510UL)) -#define bFM3_GPIO_PCRA_P5 *((volatile unsigned int*)(0x42662514UL)) -#define bFM3_GPIO_PCRC_P0 *((volatile unsigned int*)(0x42662600UL)) -#define bFM3_GPIO_PCRC_P1 *((volatile unsigned int*)(0x42662604UL)) -#define bFM3_GPIO_PCRC_P2 *((volatile unsigned int*)(0x42662608UL)) -#define bFM3_GPIO_PCRC_P3 *((volatile unsigned int*)(0x4266260CUL)) -#define bFM3_GPIO_PCRC_P4 *((volatile unsigned int*)(0x42662610UL)) -#define bFM3_GPIO_PCRC_P5 *((volatile unsigned int*)(0x42662614UL)) -#define bFM3_GPIO_PCRC_P6 *((volatile unsigned int*)(0x42662618UL)) -#define bFM3_GPIO_PCRC_P7 *((volatile unsigned int*)(0x4266261CUL)) -#define bFM3_GPIO_PCRC_P8 *((volatile unsigned int*)(0x42662620UL)) -#define bFM3_GPIO_PCRC_P9 *((volatile unsigned int*)(0x42662624UL)) -#define bFM3_GPIO_PCRC_PA *((volatile unsigned int*)(0x42662628UL)) -#define bFM3_GPIO_PCRC_PB *((volatile unsigned int*)(0x4266262CUL)) -#define bFM3_GPIO_PCRC_PC *((volatile unsigned int*)(0x42662630UL)) -#define bFM3_GPIO_PCRC_PD *((volatile unsigned int*)(0x42662634UL)) -#define bFM3_GPIO_PCRC_PE *((volatile unsigned int*)(0x42662638UL)) -#define bFM3_GPIO_PCRC_PF *((volatile unsigned int*)(0x4266263CUL)) -#define bFM3_GPIO_PCRD_P0 *((volatile unsigned int*)(0x42662680UL)) -#define bFM3_GPIO_PCRD_P1 *((volatile unsigned int*)(0x42662684UL)) -#define bFM3_GPIO_PCRD_P2 *((volatile unsigned int*)(0x42662688UL)) -#define bFM3_GPIO_PCRD_P3 *((volatile unsigned int*)(0x4266268CUL)) -#define bFM3_GPIO_PCRE_P2 *((volatile unsigned int*)(0x42662708UL)) -#define bFM3_GPIO_PCRE_P3 *((volatile unsigned int*)(0x4266270CUL)) -#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) -#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) -#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) -#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) -#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) -#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) -#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) -#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) -#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) -#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) -#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) -#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) -#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) -#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) -#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) -#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) -#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) -#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) -#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) -#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) -#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) -#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) -#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) -#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) -#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) -#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) -#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) -#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) -#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) -#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) -#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) -#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) -#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) -#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) -#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) -#define bFM3_GPIO_DDR2_P9 *((volatile unsigned int*)(0x42664124UL)) -#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) -#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) -#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) -#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) -#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) -#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) -#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) -#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) -#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) -#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) -#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) -#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) -#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) -#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) -#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) -#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) -#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) -#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) -#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) -#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) -#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) -#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) -#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) -#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) -#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) -#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) -#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) -#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) -#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) -#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) -#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) -#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) -#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) -#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) -#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) -#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) -#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) -#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) -#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) -#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) -#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) -#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) -#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) -#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) -#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) -#define bFM3_GPIO_DDR7_P5 *((volatile unsigned int*)(0x42664394UL)) -#define bFM3_GPIO_DDR7_P6 *((volatile unsigned int*)(0x42664398UL)) -#define bFM3_GPIO_DDR7_P7 *((volatile unsigned int*)(0x4266439CUL)) -#define bFM3_GPIO_DDR7_P8 *((volatile unsigned int*)(0x426643A0UL)) -#define bFM3_GPIO_DDR7_P9 *((volatile unsigned int*)(0x426643A4UL)) -#define bFM3_GPIO_DDR7_PA *((volatile unsigned int*)(0x426643A8UL)) -#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) -#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) -#define bFM3_GPIO_DDR8_P2 *((volatile unsigned int*)(0x42664408UL)) -#define bFM3_GPIO_DDR8_P3 *((volatile unsigned int*)(0x4266440CUL)) -#define bFM3_GPIO_DDRA_P0 *((volatile unsigned int*)(0x42664500UL)) -#define bFM3_GPIO_DDRA_P1 *((volatile unsigned int*)(0x42664504UL)) -#define bFM3_GPIO_DDRA_P2 *((volatile unsigned int*)(0x42664508UL)) -#define bFM3_GPIO_DDRA_P3 *((volatile unsigned int*)(0x4266450CUL)) -#define bFM3_GPIO_DDRA_P4 *((volatile unsigned int*)(0x42664510UL)) -#define bFM3_GPIO_DDRA_P5 *((volatile unsigned int*)(0x42664514UL)) -#define bFM3_GPIO_DDRC_P0 *((volatile unsigned int*)(0x42664600UL)) -#define bFM3_GPIO_DDRC_P1 *((volatile unsigned int*)(0x42664604UL)) -#define bFM3_GPIO_DDRC_P2 *((volatile unsigned int*)(0x42664608UL)) -#define bFM3_GPIO_DDRC_P3 *((volatile unsigned int*)(0x4266460CUL)) -#define bFM3_GPIO_DDRC_P4 *((volatile unsigned int*)(0x42664610UL)) -#define bFM3_GPIO_DDRC_P5 *((volatile unsigned int*)(0x42664614UL)) -#define bFM3_GPIO_DDRC_P6 *((volatile unsigned int*)(0x42664618UL)) -#define bFM3_GPIO_DDRC_P7 *((volatile unsigned int*)(0x4266461CUL)) -#define bFM3_GPIO_DDRC_P8 *((volatile unsigned int*)(0x42664620UL)) -#define bFM3_GPIO_DDRC_P9 *((volatile unsigned int*)(0x42664624UL)) -#define bFM3_GPIO_DDRC_PA *((volatile unsigned int*)(0x42664628UL)) -#define bFM3_GPIO_DDRC_PB *((volatile unsigned int*)(0x4266462CUL)) -#define bFM3_GPIO_DDRC_PC *((volatile unsigned int*)(0x42664630UL)) -#define bFM3_GPIO_DDRC_PD *((volatile unsigned int*)(0x42664634UL)) -#define bFM3_GPIO_DDRC_PE *((volatile unsigned int*)(0x42664638UL)) -#define bFM3_GPIO_DDRC_PF *((volatile unsigned int*)(0x4266463CUL)) -#define bFM3_GPIO_DDRD_P0 *((volatile unsigned int*)(0x42664680UL)) -#define bFM3_GPIO_DDRD_P1 *((volatile unsigned int*)(0x42664684UL)) -#define bFM3_GPIO_DDRD_P2 *((volatile unsigned int*)(0x42664688UL)) -#define bFM3_GPIO_DDRD_P3 *((volatile unsigned int*)(0x4266468CUL)) -#define bFM3_GPIO_DDRE_P0 *((volatile unsigned int*)(0x42664700UL)) -#define bFM3_GPIO_DDRE_P2 *((volatile unsigned int*)(0x42664708UL)) -#define bFM3_GPIO_DDRE_P3 *((volatile unsigned int*)(0x4266470CUL)) -#define bFM3_GPIO_DDRF_P5 *((volatile unsigned int*)(0x42664794UL)) -#define bFM3_GPIO_DDRF_P6 *((volatile unsigned int*)(0x42664798UL)) -#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) -#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) -#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) -#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) -#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) -#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) -#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) -#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) -#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) -#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) -#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) -#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) -#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) -#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) -#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) -#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) -#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) -#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) -#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) -#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) -#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) -#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) -#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) -#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) -#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) -#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) -#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) -#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) -#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) -#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) -#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) -#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) -#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) -#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) -#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) -#define bFM3_GPIO_PDIR2_P9 *((volatile unsigned int*)(0x42666124UL)) -#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) -#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) -#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) -#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) -#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) -#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) -#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) -#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) -#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) -#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) -#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) -#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) -#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) -#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) -#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) -#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) -#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) -#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) -#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) -#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) -#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) -#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) -#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) -#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) -#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) -#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) -#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) -#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) -#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) -#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) -#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) -#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) -#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) -#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) -#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) -#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) -#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) -#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) -#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) -#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) -#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) -#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) -#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) -#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) -#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) -#define bFM3_GPIO_PDIR7_P5 *((volatile unsigned int*)(0x42666394UL)) -#define bFM3_GPIO_PDIR7_P6 *((volatile unsigned int*)(0x42666398UL)) -#define bFM3_GPIO_PDIR7_P7 *((volatile unsigned int*)(0x4266639CUL)) -#define bFM3_GPIO_PDIR7_P8 *((volatile unsigned int*)(0x426663A0UL)) -#define bFM3_GPIO_PDIR7_P9 *((volatile unsigned int*)(0x426663A4UL)) -#define bFM3_GPIO_PDIR7_PA *((volatile unsigned int*)(0x426663A8UL)) -#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) -#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) -#define bFM3_GPIO_PDIR8_P2 *((volatile unsigned int*)(0x42666408UL)) -#define bFM3_GPIO_PDIR8_P3 *((volatile unsigned int*)(0x4266640CUL)) -#define bFM3_GPIO_PDIRA_P0 *((volatile unsigned int*)(0x42666500UL)) -#define bFM3_GPIO_PDIRA_P1 *((volatile unsigned int*)(0x42666504UL)) -#define bFM3_GPIO_PDIRA_P2 *((volatile unsigned int*)(0x42666508UL)) -#define bFM3_GPIO_PDIRA_P3 *((volatile unsigned int*)(0x4266650CUL)) -#define bFM3_GPIO_PDIRA_P4 *((volatile unsigned int*)(0x42666510UL)) -#define bFM3_GPIO_PDIRA_P5 *((volatile unsigned int*)(0x42666514UL)) -#define bFM3_GPIO_PDIRC_P0 *((volatile unsigned int*)(0x42666600UL)) -#define bFM3_GPIO_PDIRC_P1 *((volatile unsigned int*)(0x42666604UL)) -#define bFM3_GPIO_PDIRC_P2 *((volatile unsigned int*)(0x42666608UL)) -#define bFM3_GPIO_PDIRC_P3 *((volatile unsigned int*)(0x4266660CUL)) -#define bFM3_GPIO_PDIRC_P4 *((volatile unsigned int*)(0x42666610UL)) -#define bFM3_GPIO_PDIRC_P5 *((volatile unsigned int*)(0x42666614UL)) -#define bFM3_GPIO_PDIRC_P6 *((volatile unsigned int*)(0x42666618UL)) -#define bFM3_GPIO_PDIRC_P7 *((volatile unsigned int*)(0x4266661CUL)) -#define bFM3_GPIO_PDIRC_P8 *((volatile unsigned int*)(0x42666620UL)) -#define bFM3_GPIO_PDIRC_P9 *((volatile unsigned int*)(0x42666624UL)) -#define bFM3_GPIO_PDIRC_PA *((volatile unsigned int*)(0x42666628UL)) -#define bFM3_GPIO_PDIRC_PB *((volatile unsigned int*)(0x4266662CUL)) -#define bFM3_GPIO_PDIRC_PC *((volatile unsigned int*)(0x42666630UL)) -#define bFM3_GPIO_PDIRC_PD *((volatile unsigned int*)(0x42666634UL)) -#define bFM3_GPIO_PDIRC_PE *((volatile unsigned int*)(0x42666638UL)) -#define bFM3_GPIO_PDIRC_PF *((volatile unsigned int*)(0x4266663CUL)) -#define bFM3_GPIO_PDIRD_P0 *((volatile unsigned int*)(0x42666680UL)) -#define bFM3_GPIO_PDIRD_P1 *((volatile unsigned int*)(0x42666684UL)) -#define bFM3_GPIO_PDIRD_P2 *((volatile unsigned int*)(0x42666688UL)) -#define bFM3_GPIO_PDIRD_P3 *((volatile unsigned int*)(0x4266668CUL)) -#define bFM3_GPIO_PDIRE_P0 *((volatile unsigned int*)(0x42666700UL)) -#define bFM3_GPIO_PDIRE_P2 *((volatile unsigned int*)(0x42666708UL)) -#define bFM3_GPIO_PDIRE_P3 *((volatile unsigned int*)(0x4266670CUL)) -#define bFM3_GPIO_PDIRF_P5 *((volatile unsigned int*)(0x42666794UL)) -#define bFM3_GPIO_PDIRF_P6 *((volatile unsigned int*)(0x42666798UL)) -#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) -#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) -#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) -#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) -#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) -#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) -#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) -#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) -#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) -#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) -#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) -#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) -#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) -#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) -#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) -#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) -#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) -#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) -#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) -#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) -#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) -#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) -#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) -#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) -#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) -#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) -#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) -#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) -#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) -#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) -#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) -#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) -#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) -#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) -#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) -#define bFM3_GPIO_PDOR2_P9 *((volatile unsigned int*)(0x42668124UL)) -#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) -#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) -#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) -#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) -#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) -#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) -#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) -#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) -#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) -#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) -#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) -#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) -#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) -#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) -#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) -#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) -#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) -#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) -#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) -#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) -#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) -#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) -#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) -#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) -#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) -#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) -#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) -#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) -#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) -#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) -#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) -#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) -#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) -#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) -#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) -#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) -#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) -#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) -#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) -#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) -#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) -#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) -#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) -#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) -#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) -#define bFM3_GPIO_PDOR7_P5 *((volatile unsigned int*)(0x42668394UL)) -#define bFM3_GPIO_PDOR7_P6 *((volatile unsigned int*)(0x42668398UL)) -#define bFM3_GPIO_PDOR7_P7 *((volatile unsigned int*)(0x4266839CUL)) -#define bFM3_GPIO_PDOR7_P8 *((volatile unsigned int*)(0x426683A0UL)) -#define bFM3_GPIO_PDOR7_P9 *((volatile unsigned int*)(0x426683A4UL)) -#define bFM3_GPIO_PDOR7_PA *((volatile unsigned int*)(0x426683A8UL)) -#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) -#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) -#define bFM3_GPIO_PDOR8_P2 *((volatile unsigned int*)(0x42668408UL)) -#define bFM3_GPIO_PDOR8_P3 *((volatile unsigned int*)(0x4266840CUL)) -#define bFM3_GPIO_PDORA_P0 *((volatile unsigned int*)(0x42668500UL)) -#define bFM3_GPIO_PDORA_P1 *((volatile unsigned int*)(0x42668504UL)) -#define bFM3_GPIO_PDORA_P2 *((volatile unsigned int*)(0x42668508UL)) -#define bFM3_GPIO_PDORA_P3 *((volatile unsigned int*)(0x4266850CUL)) -#define bFM3_GPIO_PDORA_P4 *((volatile unsigned int*)(0x42668510UL)) -#define bFM3_GPIO_PDORA_P5 *((volatile unsigned int*)(0x42668514UL)) -#define bFM3_GPIO_PDORC_P0 *((volatile unsigned int*)(0x42668600UL)) -#define bFM3_GPIO_PDORC_P1 *((volatile unsigned int*)(0x42668604UL)) -#define bFM3_GPIO_PDORC_P2 *((volatile unsigned int*)(0x42668608UL)) -#define bFM3_GPIO_PDORC_P3 *((volatile unsigned int*)(0x4266860CUL)) -#define bFM3_GPIO_PDORC_P4 *((volatile unsigned int*)(0x42668610UL)) -#define bFM3_GPIO_PDORC_P5 *((volatile unsigned int*)(0x42668614UL)) -#define bFM3_GPIO_PDORC_P6 *((volatile unsigned int*)(0x42668618UL)) -#define bFM3_GPIO_PDORC_P7 *((volatile unsigned int*)(0x4266861CUL)) -#define bFM3_GPIO_PDORC_P8 *((volatile unsigned int*)(0x42668620UL)) -#define bFM3_GPIO_PDORC_P9 *((volatile unsigned int*)(0x42668624UL)) -#define bFM3_GPIO_PDORC_PA *((volatile unsigned int*)(0x42668628UL)) -#define bFM3_GPIO_PDORC_PB *((volatile unsigned int*)(0x4266862CUL)) -#define bFM3_GPIO_PDORC_PC *((volatile unsigned int*)(0x42668630UL)) -#define bFM3_GPIO_PDORC_PD *((volatile unsigned int*)(0x42668634UL)) -#define bFM3_GPIO_PDORC_PE *((volatile unsigned int*)(0x42668638UL)) -#define bFM3_GPIO_PDORC_PF *((volatile unsigned int*)(0x4266863CUL)) -#define bFM3_GPIO_PDORD_P0 *((volatile unsigned int*)(0x42668680UL)) -#define bFM3_GPIO_PDORD_P1 *((volatile unsigned int*)(0x42668684UL)) -#define bFM3_GPIO_PDORD_P2 *((volatile unsigned int*)(0x42668688UL)) -#define bFM3_GPIO_PDORD_P3 *((volatile unsigned int*)(0x4266868CUL)) -#define bFM3_GPIO_PDORE_P0 *((volatile unsigned int*)(0x42668700UL)) -#define bFM3_GPIO_PDORE_P2 *((volatile unsigned int*)(0x42668708UL)) -#define bFM3_GPIO_PDORE_P3 *((volatile unsigned int*)(0x4266870CUL)) -#define bFM3_GPIO_PDORF_P5 *((volatile unsigned int*)(0x42668794UL)) -#define bFM3_GPIO_PDORF_P6 *((volatile unsigned int*)(0x42668798UL)) -#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) -#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) -#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) -#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) -#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) -#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) -#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) -#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) -#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) -#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) -#define bFM3_GPIO_ADE_AN10 *((volatile unsigned int*)(0x4266A028UL)) -#define bFM3_GPIO_ADE_AN11 *((volatile unsigned int*)(0x4266A02CUL)) -#define bFM3_GPIO_ADE_AN12 *((volatile unsigned int*)(0x4266A030UL)) -#define bFM3_GPIO_ADE_AN13 *((volatile unsigned int*)(0x4266A034UL)) -#define bFM3_GPIO_ADE_AN14 *((volatile unsigned int*)(0x4266A038UL)) -#define bFM3_GPIO_ADE_AN15 *((volatile unsigned int*)(0x4266A03CUL)) -#define bFM3_GPIO_ADE_AN24 *((volatile unsigned int*)(0x4266A060UL)) -#define bFM3_GPIO_ADE_AN25 *((volatile unsigned int*)(0x4266A064UL)) -#define bFM3_GPIO_ADE_AN26 *((volatile unsigned int*)(0x4266A068UL)) -#define bFM3_GPIO_ADE_AN27 *((volatile unsigned int*)(0x4266A06CUL)) -#define bFM3_GPIO_ADE_AN28 *((volatile unsigned int*)(0x4266A070UL)) -#define bFM3_GPIO_ADE_AN29 *((volatile unsigned int*)(0x4266A074UL)) -#define bFM3_GPIO_ADE_AN30 *((volatile unsigned int*)(0x4266A078UL)) -#define bFM3_GPIO_ADE_AN31 *((volatile unsigned int*)(0x4266A07CUL)) -#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) -#define bFM3_GPIO_SPSR_MAINXC *((volatile unsigned int*)(0x4266B008UL)) -#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) -#define bFM3_GPIO_SPSR_USB1C *((volatile unsigned int*)(0x4266B014UL)) -#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) -#define bFM3_GPIO_EPFR00_CROUTE0 *((volatile unsigned int*)(0x4266C004UL)) -#define bFM3_GPIO_EPFR00_CROUTE1 *((volatile unsigned int*)(0x4266C008UL)) -#define bFM3_GPIO_EPFR00_SUBOUTE0 *((volatile unsigned int*)(0x4266C018UL)) -#define bFM3_GPIO_EPFR00_SUBOUTE1 *((volatile unsigned int*)(0x4266C01CUL)) -#define bFM3_GPIO_EPFR00_USBP0E *((volatile unsigned int*)(0x4266C024UL)) -#define bFM3_GPIO_EPFR00_USBP1E *((volatile unsigned int*)(0x4266C034UL)) -#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) -#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) -#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) -#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) -#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) -#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) -#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) -#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) -#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) -#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) -#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) -#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) -#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) -#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) -#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) -#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) -#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) -#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) -#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) -#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) -#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) -#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) -#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) -#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) -#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) -#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) -#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) -#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) -#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) -#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) -#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) -#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) -#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) -#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) -#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) -#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) -#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) -#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) -#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) -#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) -#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) -#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) -#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) -#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) -#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) -#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) -#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) -#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) -#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) -#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) -#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) -#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) -#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) -#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) -#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) -#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) -#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) -#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) -#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) -#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) -#define bFM3_GPIO_EPFR03_RTO20E0 *((volatile unsigned int*)(0x4266C180UL)) -#define bFM3_GPIO_EPFR03_RTO20E1 *((volatile unsigned int*)(0x4266C184UL)) -#define bFM3_GPIO_EPFR03_RTO21E0 *((volatile unsigned int*)(0x4266C188UL)) -#define bFM3_GPIO_EPFR03_RTO21E1 *((volatile unsigned int*)(0x4266C18CUL)) -#define bFM3_GPIO_EPFR03_RTO22E0 *((volatile unsigned int*)(0x4266C190UL)) -#define bFM3_GPIO_EPFR03_RTO22E1 *((volatile unsigned int*)(0x4266C194UL)) -#define bFM3_GPIO_EPFR03_RTO23E0 *((volatile unsigned int*)(0x4266C198UL)) -#define bFM3_GPIO_EPFR03_RTO23E1 *((volatile unsigned int*)(0x4266C19CUL)) -#define bFM3_GPIO_EPFR03_RTO24E0 *((volatile unsigned int*)(0x4266C1A0UL)) -#define bFM3_GPIO_EPFR03_RTO24E1 *((volatile unsigned int*)(0x4266C1A4UL)) -#define bFM3_GPIO_EPFR03_RTO25E0 *((volatile unsigned int*)(0x4266C1A8UL)) -#define bFM3_GPIO_EPFR03_RTO25E1 *((volatile unsigned int*)(0x4266C1ACUL)) -#define bFM3_GPIO_EPFR03_DTTI2C *((volatile unsigned int*)(0x4266C1B0UL)) -#define bFM3_GPIO_EPFR03_DTTI2S0 *((volatile unsigned int*)(0x4266C1C0UL)) -#define bFM3_GPIO_EPFR03_DTTI2S1 *((volatile unsigned int*)(0x4266C1C4UL)) -#define bFM3_GPIO_EPFR03_FRCK2S0 *((volatile unsigned int*)(0x4266C1C8UL)) -#define bFM3_GPIO_EPFR03_FRCK2S1 *((volatile unsigned int*)(0x4266C1CCUL)) -#define bFM3_GPIO_EPFR03_IC20S0 *((volatile unsigned int*)(0x4266C1D0UL)) -#define bFM3_GPIO_EPFR03_IC20S1 *((volatile unsigned int*)(0x4266C1D4UL)) -#define bFM3_GPIO_EPFR03_IC20S2 *((volatile unsigned int*)(0x4266C1D8UL)) -#define bFM3_GPIO_EPFR03_IC21S0 *((volatile unsigned int*)(0x4266C1DCUL)) -#define bFM3_GPIO_EPFR03_IC21S1 *((volatile unsigned int*)(0x4266C1E0UL)) -#define bFM3_GPIO_EPFR03_IC21S2 *((volatile unsigned int*)(0x4266C1E4UL)) -#define bFM3_GPIO_EPFR03_IC22S0 *((volatile unsigned int*)(0x4266C1E8UL)) -#define bFM3_GPIO_EPFR03_IC22S1 *((volatile unsigned int*)(0x4266C1ECUL)) -#define bFM3_GPIO_EPFR03_IC22S2 *((volatile unsigned int*)(0x4266C1F0UL)) -#define bFM3_GPIO_EPFR03_IC23S0 *((volatile unsigned int*)(0x4266C1F4UL)) -#define bFM3_GPIO_EPFR03_IC23S1 *((volatile unsigned int*)(0x4266C1F8UL)) -#define bFM3_GPIO_EPFR03_IC23S2 *((volatile unsigned int*)(0x4266C1FCUL)) -#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) -#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) -#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) -#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) -#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) -#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) -#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) -#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) -#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) -#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) -#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) -#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) -#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) -#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) -#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) -#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) -#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) -#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) -#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) -#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) -#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) -#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) -#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) -#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) -#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) -#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) -#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) -#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) -#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) -#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) -#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) -#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) -#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) -#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) -#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) -#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) -#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) -#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) -#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) -#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) -#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) -#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) -#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) -#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) -#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) -#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) -#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) -#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) -#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) -#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) -#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) -#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) -#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) -#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) -#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) -#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) -#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) -#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) -#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) -#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) -#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) -#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) -#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) -#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) -#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) -#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) -#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) -#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) -#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) -#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) -#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) -#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) -#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) -#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) -#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) -#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) -#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) -#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) -#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) -#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) -#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) -#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) -#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) -#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) -#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) -#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) -#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) -#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) -#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) -#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) -#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) -#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) -#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) -#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) -#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) -#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) -#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) -#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) -#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) -#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) -#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) -#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) -#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) -#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) -#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) -#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) -#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) -#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) -#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) -#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) -#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) -#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) -#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) -#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) -#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) -#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) -#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) -#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) -#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) -#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) -#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) -#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) -#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) -#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) -#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) -#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) -#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) -#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) -#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) -#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) -#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) -#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) -#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) -#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) -#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) -#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) -#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) -#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) -#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) -#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) -#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) -#define bFM3_GPIO_EPFR10_UECLKE *((volatile unsigned int*)(0x4266C508UL)) -#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) -#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) -#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) -#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) -#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) -#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) -#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) -#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) -#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) -#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) -#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) -#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) -#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) -#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) -#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) -#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) -#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) -#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) -#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) -#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) -#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) -#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) -#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) -#define bFM3_GPIO_EPFR11_UEALEE *((volatile unsigned int*)(0x4266C580UL)) -#define bFM3_GPIO_EPFR11_UECS0E *((volatile unsigned int*)(0x4266C584UL)) -#define bFM3_GPIO_EPFR11_UEA01E *((volatile unsigned int*)(0x4266C588UL)) -#define bFM3_GPIO_EPFR11_UEA02E *((volatile unsigned int*)(0x4266C58CUL)) -#define bFM3_GPIO_EPFR11_UEA03E *((volatile unsigned int*)(0x4266C590UL)) -#define bFM3_GPIO_EPFR11_UEA04E *((volatile unsigned int*)(0x4266C594UL)) -#define bFM3_GPIO_EPFR11_UEA05E *((volatile unsigned int*)(0x4266C598UL)) -#define bFM3_GPIO_EPFR11_UEA06E *((volatile unsigned int*)(0x4266C59CUL)) -#define bFM3_GPIO_EPFR11_UEA07E *((volatile unsigned int*)(0x4266C5A0UL)) -#define bFM3_GPIO_EPFR11_UED00B *((volatile unsigned int*)(0x4266C5A4UL)) -#define bFM3_GPIO_EPFR11_UED01B *((volatile unsigned int*)(0x4266C5A8UL)) -#define bFM3_GPIO_EPFR11_UED02B *((volatile unsigned int*)(0x4266C5ACUL)) -#define bFM3_GPIO_EPFR11_UED03B *((volatile unsigned int*)(0x4266C5B0UL)) -#define bFM3_GPIO_EPFR11_UED04B *((volatile unsigned int*)(0x4266C5B4UL)) -#define bFM3_GPIO_EPFR11_UED05B *((volatile unsigned int*)(0x4266C5B8UL)) -#define bFM3_GPIO_EPFR11_UED06B *((volatile unsigned int*)(0x4266C5BCUL)) -#define bFM3_GPIO_EPFR11_UED07B *((volatile unsigned int*)(0x4266C5C0UL)) -#define bFM3_GPIO_EPFR11_UED08B *((volatile unsigned int*)(0x4266C5C4UL)) -#define bFM3_GPIO_EPFR11_UED09B *((volatile unsigned int*)(0x4266C5C8UL)) -#define bFM3_GPIO_EPFR11_UED10B *((volatile unsigned int*)(0x4266C5CCUL)) -#define bFM3_GPIO_EPFR11_UED11B *((volatile unsigned int*)(0x4266C5D0UL)) -#define bFM3_GPIO_EPFR11_UED12B *((volatile unsigned int*)(0x4266C5D4UL)) -#define bFM3_GPIO_EPFR11_UED13B *((volatile unsigned int*)(0x4266C5D8UL)) -#define bFM3_GPIO_EPFR11_UED14B *((volatile unsigned int*)(0x4266C5DCUL)) -#define bFM3_GPIO_EPFR11_UED15B *((volatile unsigned int*)(0x4266C5E0UL)) -#define bFM3_GPIO_EPFR11_UERLC *((volatile unsigned int*)(0x4266C5E4UL)) -#define bFM3_GPIO_EPFR12_TIOA8E0 *((volatile unsigned int*)(0x4266C608UL)) -#define bFM3_GPIO_EPFR12_TIOA8E1 *((volatile unsigned int*)(0x4266C60CUL)) -#define bFM3_GPIO_EPFR12_TIOB8S0 *((volatile unsigned int*)(0x4266C610UL)) -#define bFM3_GPIO_EPFR12_TIOB8S1 *((volatile unsigned int*)(0x4266C614UL)) -#define bFM3_GPIO_EPFR12_TIOA9S0 *((volatile unsigned int*)(0x4266C620UL)) -#define bFM3_GPIO_EPFR12_TIOA9S1 *((volatile unsigned int*)(0x4266C624UL)) -#define bFM3_GPIO_EPFR12_TIOA9E0 *((volatile unsigned int*)(0x4266C628UL)) -#define bFM3_GPIO_EPFR12_TIOA9E1 *((volatile unsigned int*)(0x4266C62CUL)) -#define bFM3_GPIO_EPFR12_TIOB9S0 *((volatile unsigned int*)(0x4266C630UL)) -#define bFM3_GPIO_EPFR12_TIOB9S1 *((volatile unsigned int*)(0x4266C634UL)) -#define bFM3_GPIO_EPFR12_TIOA10E0 *((volatile unsigned int*)(0x4266C648UL)) -#define bFM3_GPIO_EPFR12_TIOA10E1 *((volatile unsigned int*)(0x4266C64CUL)) -#define bFM3_GPIO_EPFR12_TIOB10S0 *((volatile unsigned int*)(0x4266C650UL)) -#define bFM3_GPIO_EPFR12_TIOB10S1 *((volatile unsigned int*)(0x4266C654UL)) -#define bFM3_GPIO_EPFR12_TIOA11S0 *((volatile unsigned int*)(0x4266C660UL)) -#define bFM3_GPIO_EPFR12_TIOA11S1 *((volatile unsigned int*)(0x4266C664UL)) -#define bFM3_GPIO_EPFR12_TIOA11E0 *((volatile unsigned int*)(0x4266C668UL)) -#define bFM3_GPIO_EPFR12_TIOA11E1 *((volatile unsigned int*)(0x4266C66CUL)) -#define bFM3_GPIO_EPFR12_TIOB11S0 *((volatile unsigned int*)(0x4266C670UL)) -#define bFM3_GPIO_EPFR12_TIOB11S1 *((volatile unsigned int*)(0x4266C674UL)) -#define bFM3_GPIO_EPFR13_TIOA12E0 *((volatile unsigned int*)(0x4266C688UL)) -#define bFM3_GPIO_EPFR13_TIOA12E1 *((volatile unsigned int*)(0x4266C68CUL)) -#define bFM3_GPIO_EPFR13_TIOB12S0 *((volatile unsigned int*)(0x4266C690UL)) -#define bFM3_GPIO_EPFR13_TIOB12S1 *((volatile unsigned int*)(0x4266C694UL)) -#define bFM3_GPIO_EPFR13_TIOA13S0 *((volatile unsigned int*)(0x4266C6A0UL)) -#define bFM3_GPIO_EPFR13_TIOA13S1 *((volatile unsigned int*)(0x4266C6A4UL)) -#define bFM3_GPIO_EPFR13_TIOA13E0 *((volatile unsigned int*)(0x4266C6A8UL)) -#define bFM3_GPIO_EPFR13_TIOA13E1 *((volatile unsigned int*)(0x4266C6ACUL)) -#define bFM3_GPIO_EPFR13_TIOB13S0 *((volatile unsigned int*)(0x4266C6B0UL)) -#define bFM3_GPIO_EPFR13_TIOB13S1 *((volatile unsigned int*)(0x4266C6B4UL)) -#define bFM3_GPIO_EPFR13_TIOA14E0 *((volatile unsigned int*)(0x4266C6C8UL)) -#define bFM3_GPIO_EPFR13_TIOA14E1 *((volatile unsigned int*)(0x4266C6CCUL)) -#define bFM3_GPIO_EPFR13_TIOB14S0 *((volatile unsigned int*)(0x4266C6D0UL)) -#define bFM3_GPIO_EPFR13_TIOB14S1 *((volatile unsigned int*)(0x4266C6D4UL)) -#define bFM3_GPIO_EPFR13_TIOA15S0 *((volatile unsigned int*)(0x4266C6E0UL)) -#define bFM3_GPIO_EPFR13_TIOA15S1 *((volatile unsigned int*)(0x4266C6E4UL)) -#define bFM3_GPIO_EPFR13_TIOA15E0 *((volatile unsigned int*)(0x4266C6E8UL)) -#define bFM3_GPIO_EPFR13_TIOA15E1 *((volatile unsigned int*)(0x4266C6ECUL)) -#define bFM3_GPIO_EPFR13_TIOB15S0 *((volatile unsigned int*)(0x4266C6F0UL)) -#define bFM3_GPIO_EPFR13_TIOB15S1 *((volatile unsigned int*)(0x4266C6F4UL)) -#define bFM3_GPIO_EPFR14_QAIN2S0 *((volatile unsigned int*)(0x4266C700UL)) -#define bFM3_GPIO_EPFR14_QAIN2S1 *((volatile unsigned int*)(0x4266C704UL)) -#define bFM3_GPIO_EPFR14_QBIN2S0 *((volatile unsigned int*)(0x4266C708UL)) -#define bFM3_GPIO_EPFR14_QBIN2S1 *((volatile unsigned int*)(0x4266C70CUL)) -#define bFM3_GPIO_EPFR14_QZIN2S0 *((volatile unsigned int*)(0x4266C710UL)) -#define bFM3_GPIO_EPFR14_QZIN2S1 *((volatile unsigned int*)(0x4266C714UL)) -#define bFM3_GPIO_EPFR14_E_TD0E *((volatile unsigned int*)(0x4266C748UL)) -#define bFM3_GPIO_EPFR14_E_TD1E *((volatile unsigned int*)(0x4266C74CUL)) -#define bFM3_GPIO_EPFR14_E_TE0E *((volatile unsigned int*)(0x4266C750UL)) -#define bFM3_GPIO_EPFR14_E_TE1E *((volatile unsigned int*)(0x4266C754UL)) -#define bFM3_GPIO_EPFR14_E_MC0E *((volatile unsigned int*)(0x4266C758UL)) -#define bFM3_GPIO_EPFR14_E_MC1B *((volatile unsigned int*)(0x4266C75CUL)) -#define bFM3_GPIO_EPFR14_E_MD0B *((volatile unsigned int*)(0x4266C760UL)) -#define bFM3_GPIO_EPFR14_E_MD1B *((volatile unsigned int*)(0x4266C764UL)) -#define bFM3_GPIO_EPFR14_E_CKE *((volatile unsigned int*)(0x4266C768UL)) -#define bFM3_GPIO_EPFR14_E_PSE *((volatile unsigned int*)(0x4266C76CUL)) -#define bFM3_GPIO_EPFR14_E_SPLC0 *((volatile unsigned int*)(0x4266C770UL)) -#define bFM3_GPIO_EPFR14_E_SPLC1 *((volatile unsigned int*)(0x4266C774UL)) -#define bFM3_GPIO_EPFR15_EINT16S0 *((volatile unsigned int*)(0x4266C780UL)) -#define bFM3_GPIO_EPFR15_EINT16S1 *((volatile unsigned int*)(0x4266C784UL)) -#define bFM3_GPIO_EPFR15_EINT17S0 *((volatile unsigned int*)(0x4266C788UL)) -#define bFM3_GPIO_EPFR15_EINT17S1 *((volatile unsigned int*)(0x4266C78CUL)) -#define bFM3_GPIO_EPFR15_EINT18S0 *((volatile unsigned int*)(0x4266C790UL)) -#define bFM3_GPIO_EPFR15_EINT18S1 *((volatile unsigned int*)(0x4266C794UL)) -#define bFM3_GPIO_EPFR15_EINT19S0 *((volatile unsigned int*)(0x4266C798UL)) -#define bFM3_GPIO_EPFR15_EINT19S1 *((volatile unsigned int*)(0x4266C79CUL)) -#define bFM3_GPIO_EPFR15_EINT20S0 *((volatile unsigned int*)(0x4266C7A0UL)) -#define bFM3_GPIO_EPFR15_EINT20S1 *((volatile unsigned int*)(0x4266C7A4UL)) -#define bFM3_GPIO_EPFR15_EINT21S0 *((volatile unsigned int*)(0x4266C7A8UL)) -#define bFM3_GPIO_EPFR15_EINT21S1 *((volatile unsigned int*)(0x4266C7ACUL)) -#define bFM3_GPIO_EPFR15_EINT22S0 *((volatile unsigned int*)(0x4266C7B0UL)) -#define bFM3_GPIO_EPFR15_EINT22S1 *((volatile unsigned int*)(0x4266C7B4UL)) -#define bFM3_GPIO_EPFR15_EINT23S0 *((volatile unsigned int*)(0x4266C7B8UL)) -#define bFM3_GPIO_EPFR15_EINT23S1 *((volatile unsigned int*)(0x4266C7BCUL)) -#define bFM3_GPIO_EPFR15_EINT24S0 *((volatile unsigned int*)(0x4266C7C0UL)) -#define bFM3_GPIO_EPFR15_EINT24S1 *((volatile unsigned int*)(0x4266C7C4UL)) -#define bFM3_GPIO_EPFR15_EINT25S0 *((volatile unsigned int*)(0x4266C7C8UL)) -#define bFM3_GPIO_EPFR15_EINT25S1 *((volatile unsigned int*)(0x4266C7CCUL)) -#define bFM3_GPIO_EPFR15_EINT26S0 *((volatile unsigned int*)(0x4266C7D0UL)) -#define bFM3_GPIO_EPFR15_EINT26S1 *((volatile unsigned int*)(0x4266C7D4UL)) -#define bFM3_GPIO_EPFR15_EINT27S0 *((volatile unsigned int*)(0x4266C7D8UL)) -#define bFM3_GPIO_EPFR15_EINT27S1 *((volatile unsigned int*)(0x4266C7DCUL)) -#define bFM3_GPIO_EPFR15_EINT28S0 *((volatile unsigned int*)(0x4266C7E0UL)) -#define bFM3_GPIO_EPFR15_EINT28S1 *((volatile unsigned int*)(0x4266C7E4UL)) -#define bFM3_GPIO_EPFR15_EINT29S0 *((volatile unsigned int*)(0x4266C7E8UL)) -#define bFM3_GPIO_EPFR15_EINT29S1 *((volatile unsigned int*)(0x4266C7ECUL)) -#define bFM3_GPIO_EPFR15_EINT30S0 *((volatile unsigned int*)(0x4266C7F0UL)) -#define bFM3_GPIO_EPFR15_EINT30S1 *((volatile unsigned int*)(0x4266C7F4UL)) -#define bFM3_GPIO_EPFR15_EINT31S0 *((volatile unsigned int*)(0x4266C7F8UL)) -#define bFM3_GPIO_EPFR15_EINT31S1 *((volatile unsigned int*)(0x4266C7FCUL)) -#define bFM3_GPIO_PZR0_P0 *((volatile unsigned int*)(0x4266E000UL)) -#define bFM3_GPIO_PZR0_P1 *((volatile unsigned int*)(0x4266E004UL)) -#define bFM3_GPIO_PZR0_P2 *((volatile unsigned int*)(0x4266E008UL)) -#define bFM3_GPIO_PZR0_P3 *((volatile unsigned int*)(0x4266E00CUL)) -#define bFM3_GPIO_PZR0_P4 *((volatile unsigned int*)(0x4266E010UL)) -#define bFM3_GPIO_PZR0_P5 *((volatile unsigned int*)(0x4266E014UL)) -#define bFM3_GPIO_PZR0_P6 *((volatile unsigned int*)(0x4266E018UL)) -#define bFM3_GPIO_PZR0_P7 *((volatile unsigned int*)(0x4266E01CUL)) -#define bFM3_GPIO_PZR0_P8 *((volatile unsigned int*)(0x4266E020UL)) -#define bFM3_GPIO_PZR0_P9 *((volatile unsigned int*)(0x4266E024UL)) -#define bFM3_GPIO_PZR1_P0 *((volatile unsigned int*)(0x4266E080UL)) -#define bFM3_GPIO_PZR1_P1 *((volatile unsigned int*)(0x4266E084UL)) -#define bFM3_GPIO_PZR1_P2 *((volatile unsigned int*)(0x4266E088UL)) -#define bFM3_GPIO_PZR1_P3 *((volatile unsigned int*)(0x4266E08CUL)) -#define bFM3_GPIO_PZR1_P4 *((volatile unsigned int*)(0x4266E090UL)) -#define bFM3_GPIO_PZR1_P5 *((volatile unsigned int*)(0x4266E094UL)) -#define bFM3_GPIO_PZR1_P6 *((volatile unsigned int*)(0x4266E098UL)) -#define bFM3_GPIO_PZR1_P7 *((volatile unsigned int*)(0x4266E09CUL)) -#define bFM3_GPIO_PZR1_P8 *((volatile unsigned int*)(0x4266E0A0UL)) -#define bFM3_GPIO_PZR1_P9 *((volatile unsigned int*)(0x4266E0A4UL)) -#define bFM3_GPIO_PZR1_PA *((volatile unsigned int*)(0x4266E0A8UL)) -#define bFM3_GPIO_PZR1_PB *((volatile unsigned int*)(0x4266E0ACUL)) -#define bFM3_GPIO_PZR1_PC *((volatile unsigned int*)(0x4266E0B0UL)) -#define bFM3_GPIO_PZR1_PD *((volatile unsigned int*)(0x4266E0B4UL)) -#define bFM3_GPIO_PZR1_PE *((volatile unsigned int*)(0x4266E0B8UL)) -#define bFM3_GPIO_PZR1_PF *((volatile unsigned int*)(0x4266E0BCUL)) -#define bFM3_GPIO_PZR2_P0 *((volatile unsigned int*)(0x4266E100UL)) -#define bFM3_GPIO_PZR2_P1 *((volatile unsigned int*)(0x4266E104UL)) -#define bFM3_GPIO_PZR2_P2 *((volatile unsigned int*)(0x4266E108UL)) -#define bFM3_GPIO_PZR2_P3 *((volatile unsigned int*)(0x4266E10CUL)) -#define bFM3_GPIO_PZR2_P4 *((volatile unsigned int*)(0x4266E110UL)) -#define bFM3_GPIO_PZR2_P5 *((volatile unsigned int*)(0x4266E114UL)) -#define bFM3_GPIO_PZR2_P6 *((volatile unsigned int*)(0x4266E118UL)) -#define bFM3_GPIO_PZR2_P7 *((volatile unsigned int*)(0x4266E11CUL)) -#define bFM3_GPIO_PZR2_P8 *((volatile unsigned int*)(0x4266E120UL)) -#define bFM3_GPIO_PZR2_P9 *((volatile unsigned int*)(0x4266E124UL)) -#define bFM3_GPIO_PZR3_P6 *((volatile unsigned int*)(0x4266E198UL)) -#define bFM3_GPIO_PZR3_P7 *((volatile unsigned int*)(0x4266E19CUL)) -#define bFM3_GPIO_PZR3_P8 *((volatile unsigned int*)(0x4266E1A0UL)) -#define bFM3_GPIO_PZR3_P9 *((volatile unsigned int*)(0x4266E1A4UL)) -#define bFM3_GPIO_PZR3_PA *((volatile unsigned int*)(0x4266E1A8UL)) -#define bFM3_GPIO_PZR3_PB *((volatile unsigned int*)(0x4266E1ACUL)) -#define bFM3_GPIO_PZR3_PC *((volatile unsigned int*)(0x4266E1B0UL)) -#define bFM3_GPIO_PZR3_PD *((volatile unsigned int*)(0x4266E1B4UL)) -#define bFM3_GPIO_PZR3_PE *((volatile unsigned int*)(0x4266E1B8UL)) -#define bFM3_GPIO_PZR3_PF *((volatile unsigned int*)(0x4266E1BCUL)) -#define bFM3_GPIO_PZR4_P0 *((volatile unsigned int*)(0x4266E200UL)) -#define bFM3_GPIO_PZR4_P1 *((volatile unsigned int*)(0x4266E204UL)) -#define bFM3_GPIO_PZR4_P2 *((volatile unsigned int*)(0x4266E208UL)) -#define bFM3_GPIO_PZR4_P3 *((volatile unsigned int*)(0x4266E20CUL)) -#define bFM3_GPIO_PZR4_P4 *((volatile unsigned int*)(0x4266E210UL)) -#define bFM3_GPIO_PZR4_P5 *((volatile unsigned int*)(0x4266E214UL)) -#define bFM3_GPIO_PZR4_P6 *((volatile unsigned int*)(0x4266E218UL)) -#define bFM3_GPIO_PZR4_P7 *((volatile unsigned int*)(0x4266E21CUL)) -#define bFM3_GPIO_PZR4_P8 *((volatile unsigned int*)(0x4266E220UL)) -#define bFM3_GPIO_PZR4_P9 *((volatile unsigned int*)(0x4266E224UL)) -#define bFM3_GPIO_PZR4_PA *((volatile unsigned int*)(0x4266E228UL)) -#define bFM3_GPIO_PZR4_PB *((volatile unsigned int*)(0x4266E22CUL)) -#define bFM3_GPIO_PZR4_PC *((volatile unsigned int*)(0x4266E230UL)) -#define bFM3_GPIO_PZR4_PD *((volatile unsigned int*)(0x4266E234UL)) -#define bFM3_GPIO_PZR4_PE *((volatile unsigned int*)(0x4266E238UL)) -#define bFM3_GPIO_PZR5_P0 *((volatile unsigned int*)(0x4266E280UL)) -#define bFM3_GPIO_PZR5_P1 *((volatile unsigned int*)(0x4266E284UL)) -#define bFM3_GPIO_PZR5_P2 *((volatile unsigned int*)(0x4266E288UL)) -#define bFM3_GPIO_PZR5_P3 *((volatile unsigned int*)(0x4266E28CUL)) -#define bFM3_GPIO_PZR5_P4 *((volatile unsigned int*)(0x4266E290UL)) -#define bFM3_GPIO_PZR5_P5 *((volatile unsigned int*)(0x4266E294UL)) -#define bFM3_GPIO_PZR5_P6 *((volatile unsigned int*)(0x4266E298UL)) -#define bFM3_GPIO_PZR5_P7 *((volatile unsigned int*)(0x4266E29CUL)) -#define bFM3_GPIO_PZR5_P8 *((volatile unsigned int*)(0x4266E2A0UL)) -#define bFM3_GPIO_PZR5_P9 *((volatile unsigned int*)(0x4266E2A4UL)) -#define bFM3_GPIO_PZR5_PA *((volatile unsigned int*)(0x4266E2A8UL)) -#define bFM3_GPIO_PZR5_PB *((volatile unsigned int*)(0x4266E2ACUL)) -#define bFM3_GPIO_PZR6_P0 *((volatile unsigned int*)(0x4266E300UL)) -#define bFM3_GPIO_PZR6_P1 *((volatile unsigned int*)(0x4266E304UL)) -#define bFM3_GPIO_PZR6_P2 *((volatile unsigned int*)(0x4266E308UL)) -#define bFM3_GPIO_PZR7_P0 *((volatile unsigned int*)(0x4266E380UL)) -#define bFM3_GPIO_PZR7_P1 *((volatile unsigned int*)(0x4266E384UL)) -#define bFM3_GPIO_PZR7_P2 *((volatile unsigned int*)(0x4266E388UL)) -#define bFM3_GPIO_PZR7_P3 *((volatile unsigned int*)(0x4266E38CUL)) -#define bFM3_GPIO_PZR7_P4 *((volatile unsigned int*)(0x4266E390UL)) -#define bFM3_GPIO_PZR7_P5 *((volatile unsigned int*)(0x4266E394UL)) -#define bFM3_GPIO_PZR7_P6 *((volatile unsigned int*)(0x4266E398UL)) -#define bFM3_GPIO_PZR7_P7 *((volatile unsigned int*)(0x4266E39CUL)) -#define bFM3_GPIO_PZR7_P8 *((volatile unsigned int*)(0x4266E3A0UL)) -#define bFM3_GPIO_PZR7_P9 *((volatile unsigned int*)(0x4266E3A4UL)) -#define bFM3_GPIO_PZR7_PA *((volatile unsigned int*)(0x4266E3A8UL)) -#define bFM3_GPIO_PZR8_P0 *((volatile unsigned int*)(0x4266E400UL)) -#define bFM3_GPIO_PZR8_P1 *((volatile unsigned int*)(0x4266E404UL)) -#define bFM3_GPIO_PZR8_P2 *((volatile unsigned int*)(0x4266E408UL)) -#define bFM3_GPIO_PZR8_P3 *((volatile unsigned int*)(0x4266E40CUL)) -#define bFM3_GPIO_PZRA_P0 *((volatile unsigned int*)(0x4266E500UL)) -#define bFM3_GPIO_PZRA_P1 *((volatile unsigned int*)(0x4266E504UL)) -#define bFM3_GPIO_PZRA_P2 *((volatile unsigned int*)(0x4266E508UL)) -#define bFM3_GPIO_PZRA_P3 *((volatile unsigned int*)(0x4266E50CUL)) -#define bFM3_GPIO_PZRA_P4 *((volatile unsigned int*)(0x4266E510UL)) -#define bFM3_GPIO_PZRA_P5 *((volatile unsigned int*)(0x4266E514UL)) -#define bFM3_GPIO_PZRC_P0 *((volatile unsigned int*)(0x4266E600UL)) -#define bFM3_GPIO_PZRC_P1 *((volatile unsigned int*)(0x4266E604UL)) -#define bFM3_GPIO_PZRC_P2 *((volatile unsigned int*)(0x4266E608UL)) -#define bFM3_GPIO_PZRC_P3 *((volatile unsigned int*)(0x4266E60CUL)) -#define bFM3_GPIO_PZRC_P4 *((volatile unsigned int*)(0x4266E610UL)) -#define bFM3_GPIO_PZRC_P5 *((volatile unsigned int*)(0x4266E614UL)) -#define bFM3_GPIO_PZRC_P6 *((volatile unsigned int*)(0x4266E618UL)) -#define bFM3_GPIO_PZRC_P7 *((volatile unsigned int*)(0x4266E61CUL)) -#define bFM3_GPIO_PZRC_P8 *((volatile unsigned int*)(0x4266E620UL)) -#define bFM3_GPIO_PZRC_P9 *((volatile unsigned int*)(0x4266E624UL)) -#define bFM3_GPIO_PZRC_PA *((volatile unsigned int*)(0x4266E628UL)) -#define bFM3_GPIO_PZRC_PB *((volatile unsigned int*)(0x4266E62CUL)) -#define bFM3_GPIO_PZRC_PC *((volatile unsigned int*)(0x4266E630UL)) -#define bFM3_GPIO_PZRC_PD *((volatile unsigned int*)(0x4266E634UL)) -#define bFM3_GPIO_PZRC_PE *((volatile unsigned int*)(0x4266E638UL)) -#define bFM3_GPIO_PZRC_PF *((volatile unsigned int*)(0x4266E63CUL)) -#define bFM3_GPIO_PZRD_P0 *((volatile unsigned int*)(0x4266E680UL)) -#define bFM3_GPIO_PZRD_P1 *((volatile unsigned int*)(0x4266E684UL)) -#define bFM3_GPIO_PZRD_P2 *((volatile unsigned int*)(0x4266E688UL)) -#define bFM3_GPIO_PZRD_P3 *((volatile unsigned int*)(0x4266E68CUL)) -#define bFM3_GPIO_PZRE_P0 *((volatile unsigned int*)(0x4266E700UL)) -#define bFM3_GPIO_PZRE_P2 *((volatile unsigned int*)(0x4266E708UL)) -#define bFM3_GPIO_PZRE_P3 *((volatile unsigned int*)(0x4266E70CUL)) -#define bFM3_GPIO_PZRF_P5 *((volatile unsigned int*)(0x4266E794UL)) -#define bFM3_GPIO_PZRF_P6 *((volatile unsigned int*)(0x4266E798UL)) - -/* Low voltage detection registers */ -#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) -#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) -#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) -#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) -#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) -#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) -#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) -#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) - -/* USB clock registers */ -#define bFM3_USBETHERNETCLK_UCCR_UCEN0 *((volatile unsigned int*)(0x426C0000UL)) -#define bFM3_USBETHERNETCLK_UCCR_UCSEL0 *((volatile unsigned int*)(0x426C0004UL)) -#define bFM3_USBETHERNETCLK_UCCR_UCSEL1 *((volatile unsigned int*)(0x426C0008UL)) -#define bFM3_USBETHERNETCLK_UCCR_UCEN1 *((volatile unsigned int*)(0x426C000CUL)) -#define bFM3_USBETHERNETCLK_UCCR_ECEN *((volatile unsigned int*)(0x426C0010UL)) -#define bFM3_USBETHERNETCLK_UCCR_ECSEL0 *((volatile unsigned int*)(0x426C0014UL)) -#define bFM3_USBETHERNETCLK_UCCR_ECSEL1 *((volatile unsigned int*)(0x426C0018UL)) -#define bFM3_USBETHERNETCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) -#define bFM3_USBETHERNETCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) -#define bFM3_USBETHERNETCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) -#define bFM3_USBETHERNETCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) -#define bFM3_USBETHERNETCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN5 *((volatile unsigned int*)(0x426C0214UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN6 *((volatile unsigned int*)(0x426C0218UL)) -#define bFM3_USBETHERNETCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) -#define bFM3_USBETHERNETCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) -#define bFM3_USBETHERNETCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) -#define bFM3_USBETHERNETCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM0 *((volatile unsigned int*)(0x426C0480UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM1 *((volatile unsigned int*)(0x426C0484UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM2 *((volatile unsigned int*)(0x426C0488UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM3 *((volatile unsigned int*)(0x426C048CUL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR0 *((volatile unsigned int*)(0x426C0500UL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR1 *((volatile unsigned int*)(0x426C0504UL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR2 *((volatile unsigned int*)(0x426C0508UL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR3 *((volatile unsigned int*)(0x426C050CUL)) -#define bFM3_USBETHERNETCLK_UPCR7_EPLLEN *((volatile unsigned int*)(0x426C0580UL)) -#define bFM3_USBETHERNETCLK_USBEN0_USBEN0 *((volatile unsigned int*)(0x426C0600UL)) -#define bFM3_USBETHERNETCLK_USBEN1_USBEN1 *((volatile unsigned int*)(0x426C0680UL)) - -/* UART asynchronous channel 0 registers */ -#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_UART_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_UART_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_UART_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* UART synchronous channel 0 registers */ -#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) - -/* UART LIN channel 0 registers */ -#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_LIN_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_LIN_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* I2C channel 0 registers */ -#define bFM3_MFS0_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_I2C_SMR_MD0 *((volatile unsigned int*)(0x42700014UL)) -#define bFM3_MFS0_I2C_SMR_MD1 *((volatile unsigned int*)(0x42700018UL)) -#define bFM3_MFS0_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270001CUL)) -#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) -#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) -#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) -#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) -#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) -#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) -#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) -#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) -#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) -#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) -#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) -#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) -#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) -#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) -#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) -#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) -#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) - -/* UART asynchronous channel 1 registers */ -#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_UART_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_UART_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_UART_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* UART synchronous channel 1 registers */ -#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) - -/* UART LIN channel 1 registers */ -#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_LIN_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_LIN_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* I2C channel 1 registers */ -#define bFM3_MFS1_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_I2C_SMR_MD0 *((volatile unsigned int*)(0x42702014UL)) -#define bFM3_MFS1_I2C_SMR_MD1 *((volatile unsigned int*)(0x42702018UL)) -#define bFM3_MFS1_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270201CUL)) -#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) -#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) -#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) -#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) -#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) -#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) -#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) -#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) -#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) -#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) -#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) -#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) -#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) -#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) -#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) -#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) -#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) - -/* UART asynchronous channel 2 registers */ -#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_UART_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_UART_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_UART_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* UART synchronous channel 2 registers */ -#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) - -/* UART LIN channel 2 registers */ -#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_LIN_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_LIN_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* I2C channel 2 registers */ -#define bFM3_MFS2_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_I2C_SMR_MD0 *((volatile unsigned int*)(0x42704014UL)) -#define bFM3_MFS2_I2C_SMR_MD1 *((volatile unsigned int*)(0x42704018UL)) -#define bFM3_MFS2_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270401CUL)) -#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) -#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) -#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) -#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) -#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) -#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) -#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) -#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) -#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) -#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) -#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) -#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) -#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) -#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) -#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) -#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) -#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) - -/* UART asynchronous channel 3 registers */ -#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_UART_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_UART_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_UART_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* UART synchronous channel 3 registers */ -#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) - -/* UART LIN channel 3 registers */ -#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_LIN_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_LIN_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* I2C channel 3 registers */ -#define bFM3_MFS3_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_I2C_SMR_MD0 *((volatile unsigned int*)(0x42706014UL)) -#define bFM3_MFS3_I2C_SMR_MD1 *((volatile unsigned int*)(0x42706018UL)) -#define bFM3_MFS3_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270601CUL)) -#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) -#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) -#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) -#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) -#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) -#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) -#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) -#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) -#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) -#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) -#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) -#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) -#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) -#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) -#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) -#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) -#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) - -/* UART asynchronous channel 4 registers */ -#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_UART_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_UART_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_UART_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART synchronous channel 4 registers */ -#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_CSIO_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_CSIO_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART LIN channel 4 registers */ -#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_LIN_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_LIN_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* I2C channel 4 registers */ -#define bFM3_MFS4_I2C_SMR_ITST0 *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_I2C_SMR_ITST1 *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_I2C_SMR_MD0 *((volatile unsigned int*)(0x42708014UL)) -#define bFM3_MFS4_I2C_SMR_MD1 *((volatile unsigned int*)(0x42708018UL)) -#define bFM3_MFS4_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270801CUL)) -#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) -#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) -#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) -#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) -#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) -#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) -#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) -#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) -#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) -#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) -#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) -#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) -#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) -#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) -#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) -#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) -#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) -#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART asynchronous channel 5 registers */ -#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_UART_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_UART_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_UART_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART synchronous channel 5 registers */ -#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART LIN channel 5 registers */ -#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* I2C channel 5 registers */ -#define bFM3_MFS5_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270A014UL)) -#define bFM3_MFS5_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270A018UL)) -#define bFM3_MFS5_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270A01CUL)) -#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) -#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) -#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) -#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) -#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) -#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) -#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) -#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) -#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) -#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) -#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) -#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) -#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) -#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) -#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) -#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) -#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) -#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART asynchronous channel 6 registers */ -#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_UART_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_UART_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_UART_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART synchronous channel 6 registers */ -#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART LIN channel 6 registers */ -#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* I2C channel 6 registers */ -#define bFM3_MFS6_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270C014UL)) -#define bFM3_MFS6_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270C018UL)) -#define bFM3_MFS6_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270C01CUL)) -#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) -#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) -#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) -#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) -#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) -#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) -#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) -#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) -#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) -#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) -#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) -#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) -#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) -#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) -#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) -#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) -#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) -#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART asynchronous channel 7 registers */ -#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_UART_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_UART_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_UART_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART synchronous channel 7 registers */ -#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_CSIO_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_CSIO_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_CSIO_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART LIN channel 7 registers */ -#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_LIN_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_LIN_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_LIN_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* I2C channel 7 registers */ -#define bFM3_MFS7_I2C_SMR_ITST0 *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_I2C_SMR_ITST1 *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_I2C_SMR_MD0 *((volatile unsigned int*)(0x4270E014UL)) -#define bFM3_MFS7_I2C_SMR_MD1 *((volatile unsigned int*)(0x4270E018UL)) -#define bFM3_MFS7_I2C_SMR_MD2 *((volatile unsigned int*)(0x4270E01CUL)) -#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) -#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) -#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) -#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) -#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) -#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) -#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) -#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) -#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) -#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) -#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) -#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) -#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) -#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) -#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) -#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) -#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) -#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* MFS Noise Filter Control registers */ -#define bFM3_MFS_NFC_I2CDNF_I2CDNF00 *((volatile unsigned int*)(0x42710000UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF01 *((volatile unsigned int*)(0x42710004UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF10 *((volatile unsigned int*)(0x42710008UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF11 *((volatile unsigned int*)(0x4271000CUL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF20 *((volatile unsigned int*)(0x42710010UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF21 *((volatile unsigned int*)(0x42710014UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF30 *((volatile unsigned int*)(0x42710018UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF31 *((volatile unsigned int*)(0x4271001CUL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF40 *((volatile unsigned int*)(0x42710020UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF41 *((volatile unsigned int*)(0x42710024UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF50 *((volatile unsigned int*)(0x42710028UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF51 *((volatile unsigned int*)(0x4271002CUL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF60 *((volatile unsigned int*)(0x42710030UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF61 *((volatile unsigned int*)(0x42710034UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF70 *((volatile unsigned int*)(0x42710038UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF71 *((volatile unsigned int*)(0x4271003CUL)) - -/* CRC registers */ -#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) -#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) -#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) -#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) -#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) -#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) -#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) - -/* Watch counter registers */ -#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) -#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) -#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) -#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) -#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) -#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) -#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) -#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) -#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) -#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) -#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) -#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) -#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) -#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) -#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) -#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) -#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) -#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) -#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) -#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) -#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) -#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) - -/* External bus interface registers */ -#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) -#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) -#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) -#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) -#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0210UL)) -#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) -#define bFM3_EXBUS_MODE0_RDY *((volatile unsigned int*)(0x427E0018UL)) -#define bFM3_EXBUS_MODE0_SHRTDOUT *((volatile unsigned int*)(0x427E001CUL)) -#define bFM3_EXBUS_MODE0_MPXMODE *((volatile unsigned int*)(0x427E0020UL)) -#define bFM3_EXBUS_MODE0_ALEINV *((volatile unsigned int*)(0x427E0024UL)) -#define bFM3_EXBUS_MODE0_MPXDOFF *((volatile unsigned int*)(0x427E002CUL)) -#define bFM3_EXBUS_MODE0_MPXCSOF *((volatile unsigned int*)(0x427E0030UL)) -#define bFM3_EXBUS_MODE0_MOEXEUP *((volatile unsigned int*)(0x427E0034UL)) -#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) -#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) -#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) -#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) -#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) -#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) -#define bFM3_EXBUS_MODE1_RDY *((volatile unsigned int*)(0x427E0098UL)) -#define bFM3_EXBUS_MODE1_SHRTDOUT *((volatile unsigned int*)(0x427E009CUL)) -#define bFM3_EXBUS_MODE1_MPXMODE *((volatile unsigned int*)(0x427E00A0UL)) -#define bFM3_EXBUS_MODE1_ALEINV *((volatile unsigned int*)(0x427E00A4UL)) -#define bFM3_EXBUS_MODE1_MPXDOFF *((volatile unsigned int*)(0x427E00ACUL)) -#define bFM3_EXBUS_MODE1_MPXCSOF *((volatile unsigned int*)(0x427E00B0UL)) -#define bFM3_EXBUS_MODE1_MOEXEUP *((volatile unsigned int*)(0x427E00B4UL)) -#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) -#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) -#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) -#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) -#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) -#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) -#define bFM3_EXBUS_MODE2_RDY *((volatile unsigned int*)(0x427E0118UL)) -#define bFM3_EXBUS_MODE2_SHRTDOUT *((volatile unsigned int*)(0x427E011CUL)) -#define bFM3_EXBUS_MODE2_MPXMODE *((volatile unsigned int*)(0x427E0120UL)) -#define bFM3_EXBUS_MODE2_ALEINV *((volatile unsigned int*)(0x427E0124UL)) -#define bFM3_EXBUS_MODE2_MPXDOFF *((volatile unsigned int*)(0x427E012CUL)) -#define bFM3_EXBUS_MODE2_MPXCSOF *((volatile unsigned int*)(0x427E0130UL)) -#define bFM3_EXBUS_MODE2_MOEXEUP *((volatile unsigned int*)(0x427E0134UL)) -#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) -#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) -#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) -#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) -#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) -#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) -#define bFM3_EXBUS_MODE3_RDY *((volatile unsigned int*)(0x427E0198UL)) -#define bFM3_EXBUS_MODE3_SHRTDOUT *((volatile unsigned int*)(0x427E019CUL)) -#define bFM3_EXBUS_MODE3_MPXMODE *((volatile unsigned int*)(0x427E01A0UL)) -#define bFM3_EXBUS_MODE3_ALEINV *((volatile unsigned int*)(0x427E01A4UL)) -#define bFM3_EXBUS_MODE3_MPXDOFF *((volatile unsigned int*)(0x427E01ACUL)) -#define bFM3_EXBUS_MODE3_MPXCSOF *((volatile unsigned int*)(0x427E01B0UL)) -#define bFM3_EXBUS_MODE3_MOEXEUP *((volatile unsigned int*)(0x427E01B4UL)) -#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) -#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) -#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) -#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) -#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) -#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) -#define bFM3_EXBUS_MODE4_RDY *((volatile unsigned int*)(0x427E0218UL)) -#define bFM3_EXBUS_MODE4_SHRTDOUT *((volatile unsigned int*)(0x427E021CUL)) -#define bFM3_EXBUS_MODE4_MPXMODE *((volatile unsigned int*)(0x427E0220UL)) -#define bFM3_EXBUS_MODE4_ALEINV *((volatile unsigned int*)(0x427E0224UL)) -#define bFM3_EXBUS_MODE4_MPXDOFF *((volatile unsigned int*)(0x427E022CUL)) -#define bFM3_EXBUS_MODE4_MPXCSOF *((volatile unsigned int*)(0x427E0230UL)) -#define bFM3_EXBUS_MODE4_MOEXEUP *((volatile unsigned int*)(0x427E0234UL)) -#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) -#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) -#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) -#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) -#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) -#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) -#define bFM3_EXBUS_MODE5_RDY *((volatile unsigned int*)(0x427E0298UL)) -#define bFM3_EXBUS_MODE5_SHRTDOUT *((volatile unsigned int*)(0x427E029CUL)) -#define bFM3_EXBUS_MODE5_MPXMODE *((volatile unsigned int*)(0x427E02A0UL)) -#define bFM3_EXBUS_MODE5_ALEINV *((volatile unsigned int*)(0x427E02A4UL)) -#define bFM3_EXBUS_MODE5_MPXDOFF *((volatile unsigned int*)(0x427E02ACUL)) -#define bFM3_EXBUS_MODE5_MPXCSOF *((volatile unsigned int*)(0x427E02B0UL)) -#define bFM3_EXBUS_MODE5_MOEXEUP *((volatile unsigned int*)(0x427E02B4UL)) -#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) -#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) -#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) -#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) -#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) -#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) -#define bFM3_EXBUS_MODE6_RDY *((volatile unsigned int*)(0x427E0318UL)) -#define bFM3_EXBUS_MODE6_SHRTDOUT *((volatile unsigned int*)(0x427E031CUL)) -#define bFM3_EXBUS_MODE6_MPXMODE *((volatile unsigned int*)(0x427E0320UL)) -#define bFM3_EXBUS_MODE6_ALEINV *((volatile unsigned int*)(0x427E0324UL)) -#define bFM3_EXBUS_MODE6_MPXDOFF *((volatile unsigned int*)(0x427E032CUL)) -#define bFM3_EXBUS_MODE6_MPXCSOF *((volatile unsigned int*)(0x427E0330UL)) -#define bFM3_EXBUS_MODE6_MOEXEUP *((volatile unsigned int*)(0x427E0334UL)) -#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) -#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) -#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) -#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) -#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) -#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) -#define bFM3_EXBUS_MODE7_RDY *((volatile unsigned int*)(0x427E0398UL)) -#define bFM3_EXBUS_MODE7_SHRTDOUT *((volatile unsigned int*)(0x427E039CUL)) -#define bFM3_EXBUS_MODE7_MPXMODE *((volatile unsigned int*)(0x427E03A0UL)) -#define bFM3_EXBUS_MODE7_ALEINV *((volatile unsigned int*)(0x427E03A4UL)) -#define bFM3_EXBUS_MODE7_MPXDOFF *((volatile unsigned int*)(0x427E03ACUL)) -#define bFM3_EXBUS_MODE7_MPXCSOF *((volatile unsigned int*)(0x427E03B0UL)) -#define bFM3_EXBUS_MODE7_MOEXEUP *((volatile unsigned int*)(0x427E03B4UL)) -#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) -#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) -#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) -#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) -#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) -#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) -#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) -#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) -#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) -#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) -#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) -#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) -#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) -#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) -#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) -#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) -#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) -#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) -#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) -#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) -#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) -#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) -#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) -#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) -#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) -#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) -#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) -#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) -#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) -#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) -#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) -#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) -#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) -#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) -#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) -#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) -#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) -#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) -#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) -#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) -#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) -#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) -#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) -#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) -#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) -#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) -#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) -#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) -#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) -#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) -#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) -#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) -#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) -#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) -#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) -#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) -#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) -#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) -#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) -#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) -#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) -#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) -#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) -#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) -#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) -#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) -#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) -#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) -#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) -#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) -#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) -#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) -#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) -#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) -#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) -#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) -#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) -#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) -#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) -#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) -#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) -#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) -#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) -#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) -#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) -#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) -#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) -#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) -#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) -#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) -#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) -#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) -#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) -#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) -#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) -#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) -#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) -#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) -#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) -#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) -#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) -#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) -#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) -#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) -#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) -#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) -#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) -#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) -#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) -#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) -#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) -#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) -#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) -#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) -#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) -#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) -#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) -#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) -#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) -#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) -#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) -#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) -#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) -#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) -#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) -#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) -#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) -#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) -#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) -#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) -#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) -#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) -#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) -#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) -#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) -#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) -#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) -#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) -#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) -#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) -#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) -#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) -#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) -#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) -#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) -#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) -#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) -#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) -#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) -#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) -#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) -#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) -#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) -#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) -#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) -#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) -#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) -#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) -#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) -#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) -#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) -#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) -#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) -#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) -#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) -#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) -#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) -#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) -#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) -#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) -#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) -#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) -#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) -#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) -#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) -#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) -#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) -#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) -#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) -#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) -#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) -#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) -#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) -#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) -#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) -#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) -#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) -#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) -#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) -#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) -#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) -#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) -#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) -#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) -#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) -#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) -#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) -#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) -#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) -#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) -#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) -#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) -#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) -#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) -#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) -#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) -#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) -#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) -#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) -#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) -#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) -#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) -#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) -#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) -#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) -#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) -#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) -#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) -#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) -#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) -#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) -#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) -#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) -#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) -#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) -#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) -#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) -#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) -#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) -#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) -#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) -#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) -#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) -#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) -#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) -#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) -#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) -#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) -#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) -#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) -#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) -#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) -#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) -#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) -#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) -#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) -#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) -#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) -#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) -#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) -#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) -#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) -#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) -#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) -#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) -#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) -#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) -#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) -#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) -#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) -#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) -#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) -#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) -#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) -#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) -#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) -#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) -#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) -#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) -#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) -#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) -#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) -#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) -#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) -#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) -#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) -#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) -#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) -#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) -#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) -#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) -#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) -#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) -#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) -#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) -#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) -#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) -#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) -#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) -#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) -#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) -#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) -#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) -#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) -#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) -#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) -#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) -#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) -#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) -#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) -#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) -#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) -#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) -#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) -#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) -#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) -#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) -#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) -#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) -#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) -#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) -#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) -#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) -#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) -#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) -#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) -#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) -#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) -#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) -#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) -#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) -#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) -#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) -#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) -#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) -#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) -#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) -#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) -#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) -#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) -#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) -#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) -#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) -#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) -#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) -#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) -#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) -#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) -#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) -#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) -#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) -#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) -#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) -#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) -#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) -#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) -#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) -#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) -#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) -#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) -#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) -#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) -#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) -#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) -#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) -#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) -#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) -#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) -#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) -#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) -#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) -#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) -#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) -#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) -#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) -#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) -#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) -#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) -#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) -#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) -#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) -#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) -#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) -#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) -#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) -#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) -#define bFM3_EXBUS_ATIM0_ALC0 *((volatile unsigned int*)(0x427E0C00UL)) -#define bFM3_EXBUS_ATIM0_ALC1 *((volatile unsigned int*)(0x427E0C04UL)) -#define bFM3_EXBUS_ATIM0_ALC2 *((volatile unsigned int*)(0x427E0C08UL)) -#define bFM3_EXBUS_ATIM0_ALC3 *((volatile unsigned int*)(0x427E0C0CUL)) -#define bFM3_EXBUS_ATIM0_ALES0 *((volatile unsigned int*)(0x427E0C10UL)) -#define bFM3_EXBUS_ATIM0_ALES1 *((volatile unsigned int*)(0x427E0C14UL)) -#define bFM3_EXBUS_ATIM0_ALES2 *((volatile unsigned int*)(0x427E0C18UL)) -#define bFM3_EXBUS_ATIM0_ALES3 *((volatile unsigned int*)(0x427E0C1CUL)) -#define bFM3_EXBUS_ATIM0_ALEW0 *((volatile unsigned int*)(0x427E0C20UL)) -#define bFM3_EXBUS_ATIM0_ALEW1 *((volatile unsigned int*)(0x427E0C24UL)) -#define bFM3_EXBUS_ATIM0_ALEW2 *((volatile unsigned int*)(0x427E0C28UL)) -#define bFM3_EXBUS_ATIM0_ALEW3 *((volatile unsigned int*)(0x427E0C2CUL)) -#define bFM3_EXBUS_ATIM1_ALC0 *((volatile unsigned int*)(0x427E0C80UL)) -#define bFM3_EXBUS_ATIM1_ALC1 *((volatile unsigned int*)(0x427E0C84UL)) -#define bFM3_EXBUS_ATIM1_ALC2 *((volatile unsigned int*)(0x427E0C88UL)) -#define bFM3_EXBUS_ATIM1_ALC3 *((volatile unsigned int*)(0x427E0C8CUL)) -#define bFM3_EXBUS_ATIM1_ALES0 *((volatile unsigned int*)(0x427E0C90UL)) -#define bFM3_EXBUS_ATIM1_ALES1 *((volatile unsigned int*)(0x427E0C94UL)) -#define bFM3_EXBUS_ATIM1_ALES2 *((volatile unsigned int*)(0x427E0C98UL)) -#define bFM3_EXBUS_ATIM1_ALES3 *((volatile unsigned int*)(0x427E0C9CUL)) -#define bFM3_EXBUS_ATIM1_ALEW0 *((volatile unsigned int*)(0x427E0CA0UL)) -#define bFM3_EXBUS_ATIM1_ALEW1 *((volatile unsigned int*)(0x427E0CA4UL)) -#define bFM3_EXBUS_ATIM1_ALEW2 *((volatile unsigned int*)(0x427E0CA8UL)) -#define bFM3_EXBUS_ATIM1_ALEW3 *((volatile unsigned int*)(0x427E0CACUL)) -#define bFM3_EXBUS_ATIM2_ALC0 *((volatile unsigned int*)(0x427E0D00UL)) -#define bFM3_EXBUS_ATIM2_ALC1 *((volatile unsigned int*)(0x427E0D04UL)) -#define bFM3_EXBUS_ATIM2_ALC2 *((volatile unsigned int*)(0x427E0D08UL)) -#define bFM3_EXBUS_ATIM2_ALC3 *((volatile unsigned int*)(0x427E0D0CUL)) -#define bFM3_EXBUS_ATIM2_ALES0 *((volatile unsigned int*)(0x427E0D10UL)) -#define bFM3_EXBUS_ATIM2_ALES1 *((volatile unsigned int*)(0x427E0D14UL)) -#define bFM3_EXBUS_ATIM2_ALES2 *((volatile unsigned int*)(0x427E0D18UL)) -#define bFM3_EXBUS_ATIM2_ALES3 *((volatile unsigned int*)(0x427E0D1CUL)) -#define bFM3_EXBUS_ATIM2_ALEW0 *((volatile unsigned int*)(0x427E0D20UL)) -#define bFM3_EXBUS_ATIM2_ALEW1 *((volatile unsigned int*)(0x427E0D24UL)) -#define bFM3_EXBUS_ATIM2_ALEW2 *((volatile unsigned int*)(0x427E0D28UL)) -#define bFM3_EXBUS_ATIM2_ALEW3 *((volatile unsigned int*)(0x427E0D2CUL)) -#define bFM3_EXBUS_ATIM3_ALC0 *((volatile unsigned int*)(0x427E0D80UL)) -#define bFM3_EXBUS_ATIM3_ALC1 *((volatile unsigned int*)(0x427E0D84UL)) -#define bFM3_EXBUS_ATIM3_ALC2 *((volatile unsigned int*)(0x427E0D88UL)) -#define bFM3_EXBUS_ATIM3_ALC3 *((volatile unsigned int*)(0x427E0D8CUL)) -#define bFM3_EXBUS_ATIM3_ALES0 *((volatile unsigned int*)(0x427E0D90UL)) -#define bFM3_EXBUS_ATIM3_ALES1 *((volatile unsigned int*)(0x427E0D94UL)) -#define bFM3_EXBUS_ATIM3_ALES2 *((volatile unsigned int*)(0x427E0D98UL)) -#define bFM3_EXBUS_ATIM3_ALES3 *((volatile unsigned int*)(0x427E0D9CUL)) -#define bFM3_EXBUS_ATIM3_ALEW0 *((volatile unsigned int*)(0x427E0DA0UL)) -#define bFM3_EXBUS_ATIM3_ALEW1 *((volatile unsigned int*)(0x427E0DA4UL)) -#define bFM3_EXBUS_ATIM3_ALEW2 *((volatile unsigned int*)(0x427E0DA8UL)) -#define bFM3_EXBUS_ATIM3_ALEW3 *((volatile unsigned int*)(0x427E0DACUL)) -#define bFM3_EXBUS_ATIM4_ALC0 *((volatile unsigned int*)(0x427E0E00UL)) -#define bFM3_EXBUS_ATIM4_ALC1 *((volatile unsigned int*)(0x427E0E04UL)) -#define bFM3_EXBUS_ATIM4_ALC2 *((volatile unsigned int*)(0x427E0E08UL)) -#define bFM3_EXBUS_ATIM4_ALC3 *((volatile unsigned int*)(0x427E0E0CUL)) -#define bFM3_EXBUS_ATIM4_ALES0 *((volatile unsigned int*)(0x427E0E10UL)) -#define bFM3_EXBUS_ATIM4_ALES1 *((volatile unsigned int*)(0x427E0E14UL)) -#define bFM3_EXBUS_ATIM4_ALES2 *((volatile unsigned int*)(0x427E0E18UL)) -#define bFM3_EXBUS_ATIM4_ALES3 *((volatile unsigned int*)(0x427E0E1CUL)) -#define bFM3_EXBUS_ATIM4_ALEW0 *((volatile unsigned int*)(0x427E0E20UL)) -#define bFM3_EXBUS_ATIM4_ALEW1 *((volatile unsigned int*)(0x427E0E24UL)) -#define bFM3_EXBUS_ATIM4_ALEW2 *((volatile unsigned int*)(0x427E0E28UL)) -#define bFM3_EXBUS_ATIM4_ALEW3 *((volatile unsigned int*)(0x427E0E2CUL)) -#define bFM3_EXBUS_ATIM5_ALC0 *((volatile unsigned int*)(0x427E0E80UL)) -#define bFM3_EXBUS_ATIM5_ALC1 *((volatile unsigned int*)(0x427E0E84UL)) -#define bFM3_EXBUS_ATIM5_ALC2 *((volatile unsigned int*)(0x427E0E88UL)) -#define bFM3_EXBUS_ATIM5_ALC3 *((volatile unsigned int*)(0x427E0E8CUL)) -#define bFM3_EXBUS_ATIM5_ALES0 *((volatile unsigned int*)(0x427E0E90UL)) -#define bFM3_EXBUS_ATIM5_ALES1 *((volatile unsigned int*)(0x427E0E94UL)) -#define bFM3_EXBUS_ATIM5_ALES2 *((volatile unsigned int*)(0x427E0E98UL)) -#define bFM3_EXBUS_ATIM5_ALES3 *((volatile unsigned int*)(0x427E0E9CUL)) -#define bFM3_EXBUS_ATIM5_ALEW0 *((volatile unsigned int*)(0x427E0EA0UL)) -#define bFM3_EXBUS_ATIM5_ALEW1 *((volatile unsigned int*)(0x427E0EA4UL)) -#define bFM3_EXBUS_ATIM5_ALEW2 *((volatile unsigned int*)(0x427E0EA8UL)) -#define bFM3_EXBUS_ATIM5_ALEW3 *((volatile unsigned int*)(0x427E0EACUL)) -#define bFM3_EXBUS_ATIM6_ALC0 *((volatile unsigned int*)(0x427E0F00UL)) -#define bFM3_EXBUS_ATIM6_ALC1 *((volatile unsigned int*)(0x427E0F04UL)) -#define bFM3_EXBUS_ATIM6_ALC2 *((volatile unsigned int*)(0x427E0F08UL)) -#define bFM3_EXBUS_ATIM6_ALC3 *((volatile unsigned int*)(0x427E0F0CUL)) -#define bFM3_EXBUS_ATIM6_ALES0 *((volatile unsigned int*)(0x427E0F10UL)) -#define bFM3_EXBUS_ATIM6_ALES1 *((volatile unsigned int*)(0x427E0F14UL)) -#define bFM3_EXBUS_ATIM6_ALES2 *((volatile unsigned int*)(0x427E0F18UL)) -#define bFM3_EXBUS_ATIM6_ALES3 *((volatile unsigned int*)(0x427E0F1CUL)) -#define bFM3_EXBUS_ATIM6_ALEW0 *((volatile unsigned int*)(0x427E0F20UL)) -#define bFM3_EXBUS_ATIM6_ALEW1 *((volatile unsigned int*)(0x427E0F24UL)) -#define bFM3_EXBUS_ATIM6_ALEW2 *((volatile unsigned int*)(0x427E0F28UL)) -#define bFM3_EXBUS_ATIM6_ALEW3 *((volatile unsigned int*)(0x427E0F2CUL)) -#define bFM3_EXBUS_ATIM7_ALC0 *((volatile unsigned int*)(0x427E0F80UL)) -#define bFM3_EXBUS_ATIM7_ALC1 *((volatile unsigned int*)(0x427E0F84UL)) -#define bFM3_EXBUS_ATIM7_ALC2 *((volatile unsigned int*)(0x427E0F88UL)) -#define bFM3_EXBUS_ATIM7_ALC3 *((volatile unsigned int*)(0x427E0F8CUL)) -#define bFM3_EXBUS_ATIM7_ALES0 *((volatile unsigned int*)(0x427E0F90UL)) -#define bFM3_EXBUS_ATIM7_ALES1 *((volatile unsigned int*)(0x427E0F94UL)) -#define bFM3_EXBUS_ATIM7_ALES2 *((volatile unsigned int*)(0x427E0F98UL)) -#define bFM3_EXBUS_ATIM7_ALES3 *((volatile unsigned int*)(0x427E0F9CUL)) -#define bFM3_EXBUS_ATIM7_ALEW0 *((volatile unsigned int*)(0x427E0FA0UL)) -#define bFM3_EXBUS_ATIM7_ALEW1 *((volatile unsigned int*)(0x427E0FA4UL)) -#define bFM3_EXBUS_ATIM7_ALEW2 *((volatile unsigned int*)(0x427E0FA8UL)) -#define bFM3_EXBUS_ATIM7_ALEW3 *((volatile unsigned int*)(0x427E0FACUL)) -#define bFM3_EXBUS_DCLKR_MDIV0 *((volatile unsigned int*)(0x427E6000UL)) -#define bFM3_EXBUS_DCLKR_MDIV1 *((volatile unsigned int*)(0x427E6004UL)) -#define bFM3_EXBUS_DCLKR_MDIV2 *((volatile unsigned int*)(0x427E6008UL)) -#define bFM3_EXBUS_DCLKR_MDIV3 *((volatile unsigned int*)(0x427E600CUL)) -#define bFM3_EXBUS_DCLKR_MCLKON *((volatile unsigned int*)(0x427E6010UL)) - -/* USB channel 0 registers */ -#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) -#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) -#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) -#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) -#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) -#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) -#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) -#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) -#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) -#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) -#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) -#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) -#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) -#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) -#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) -#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) -#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) -#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) -#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) -#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) -#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) -#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) -#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) -#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) -#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) -#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) -#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) -#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) -#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) -#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) -#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) -#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) -#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) -#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) -#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) -#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) -#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) -#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) -#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) -#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) -#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) -#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) -#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) -#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) -#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) -#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) -#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) -#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) -#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) -#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) -#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) -#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) -#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) -#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) -#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) -#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) -#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) -#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) -#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) -#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) -#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) -#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) -#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) -#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) -#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) -#define bFM3_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) -#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) -#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) -#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) -#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) -#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) -#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) -#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) -#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) -#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) -#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) -#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) -#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) -#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) -#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) -#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) -#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) -#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) -#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) -#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) -#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) -#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) -#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) -#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) -#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) -#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) -#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) -#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) -#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) -#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) -#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) -#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) -#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) -#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) -#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) -#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) -#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) -#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) -#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) -#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) -#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) -#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) -#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) -#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) -#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) -#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) -#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) -#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) -#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) -#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) -#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) -#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) -#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) -#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) -#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) -#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) -#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) -#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) -#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) -#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) -#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) -#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) -#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) -#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) -#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) -#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) -#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) -#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) -#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) -#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) -#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) -#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) -#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) -#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) -#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) -#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) -#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) -#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) -#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) -#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) -#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) -#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) -#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) -#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) -#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) -#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) -#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) -#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) -#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) -#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) -#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) -#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) -#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) -#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) -#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) -#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) -#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) -#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) -#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) -#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) -#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) -#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) -#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) -#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) -#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) -#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) -#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) -#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) -#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) -#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) -#define bFM3_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) -#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) -#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) -#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) -#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) -#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) -#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) -#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) -#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) -#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) -#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) -#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) -#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) -#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) -#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) -#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) -#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) -#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) -#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) -#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) -#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) -#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) -#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) -#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) -#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) -#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) -#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) -#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) -#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) -#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) -#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) -#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) -#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) -#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) -#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) -#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) -#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) -#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) -#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) -#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) -#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) -#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) -#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) -#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) -#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) -#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) -#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) -#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) -#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) -#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) -#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) -#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) -#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) -#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) -#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) -#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) -#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) -#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) -#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) - -/* USB channel 1 registers */ -#define bFM3_USB1_HCNT_HOST *((volatile unsigned int*)(0x42A42000UL)) -#define bFM3_USB1_HCNT_URST *((volatile unsigned int*)(0x42A42004UL)) -#define bFM3_USB1_HCNT_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) -#define bFM3_USB1_HCNT_DIRE *((volatile unsigned int*)(0x42A4200CUL)) -#define bFM3_USB1_HCNT_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) -#define bFM3_USB1_HCNT_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) -#define bFM3_USB1_HCNT_URIRE *((volatile unsigned int*)(0x42A42018UL)) -#define bFM3_USB1_HCNT_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) -#define bFM3_USB1_HCNT_RETRY *((volatile unsigned int*)(0x42A42020UL)) -#define bFM3_USB1_HCNT_CANCEL *((volatile unsigned int*)(0x42A42024UL)) -#define bFM3_USB1_HCNT_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) -#define bFM3_USB1_HCNT0_HOST *((volatile unsigned int*)(0x42A42000UL)) -#define bFM3_USB1_HCNT0_URST *((volatile unsigned int*)(0x42A42004UL)) -#define bFM3_USB1_HCNT0_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) -#define bFM3_USB1_HCNT0_DIRE *((volatile unsigned int*)(0x42A4200CUL)) -#define bFM3_USB1_HCNT0_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) -#define bFM3_USB1_HCNT0_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) -#define bFM3_USB1_HCNT0_URIRE *((volatile unsigned int*)(0x42A42018UL)) -#define bFM3_USB1_HCNT0_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) -#define bFM3_USB1_HCNT1_RETRY *((volatile unsigned int*)(0x42A42020UL)) -#define bFM3_USB1_HCNT1_CANCEL *((volatile unsigned int*)(0x42A42024UL)) -#define bFM3_USB1_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) -#define bFM3_USB1_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42A42080UL)) -#define bFM3_USB1_HIRQ_DIRQ *((volatile unsigned int*)(0x42A42084UL)) -#define bFM3_USB1_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42A42088UL)) -#define bFM3_USB1_HIRQ_CMPIRQ *((volatile unsigned int*)(0x42A4208CUL)) -#define bFM3_USB1_HIRQ_URIRQ *((volatile unsigned int*)(0x42A42090UL)) -#define bFM3_USB1_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42A42094UL)) -#define bFM3_USB1_HIRQ_TCAN *((volatile unsigned int*)(0x42A4209CUL)) -#define bFM3_USB1_HERR_HS0 *((volatile unsigned int*)(0x42A420A0UL)) -#define bFM3_USB1_HERR_HS1 *((volatile unsigned int*)(0x42A420A4UL)) -#define bFM3_USB1_HERR_STUFF *((volatile unsigned int*)(0x42A420A8UL)) -#define bFM3_USB1_HERR_TGERR *((volatile unsigned int*)(0x42A420ACUL)) -#define bFM3_USB1_HERR_CRC *((volatile unsigned int*)(0x42A420B0UL)) -#define bFM3_USB1_HERR_TOUT *((volatile unsigned int*)(0x42A420B4UL)) -#define bFM3_USB1_HERR_RERR *((volatile unsigned int*)(0x42A420B8UL)) -#define bFM3_USB1_HERR_LSTOF *((volatile unsigned int*)(0x42A420BCUL)) -#define bFM3_USB1_HSTATE_CSTAT *((volatile unsigned int*)(0x42A42100UL)) -#define bFM3_USB1_HSTATE_TMODE *((volatile unsigned int*)(0x42A42104UL)) -#define bFM3_USB1_HSTATE_SUSP *((volatile unsigned int*)(0x42A42108UL)) -#define bFM3_USB1_HSTATE_SOFBUSY *((volatile unsigned int*)(0x42A4210CUL)) -#define bFM3_USB1_HSTATE_CLKSEL *((volatile unsigned int*)(0x42A42110UL)) -#define bFM3_USB1_HSTATE_ALIVE *((volatile unsigned int*)(0x42A42114UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42A42120UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42A42124UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42A42128UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x42A4212CUL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42A42130UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42A42134UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42A42138UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x42A4213CUL)) -#define bFM3_USB1_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42A42180UL)) -#define bFM3_USB1_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42A42184UL)) -#define bFM3_USB1_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42A42188UL)) -#define bFM3_USB1_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x42A4218CUL)) -#define bFM3_USB1_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42A42190UL)) -#define bFM3_USB1_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42A42194UL)) -#define bFM3_USB1_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42A42198UL)) -#define bFM3_USB1_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x42A4219CUL)) -#define bFM3_USB1_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x42A421A0UL)) -#define bFM3_USB1_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x42A421A4UL)) -#define bFM3_USB1_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x42A421A8UL)) -#define bFM3_USB1_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x42A421ACUL)) -#define bFM3_USB1_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x42A421B0UL)) -#define bFM3_USB1_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x42A421B4UL)) -#define bFM3_USB1_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x42A421B8UL)) -#define bFM3_USB1_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x42A421BCUL)) -#define bFM3_USB1_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42A42180UL)) -#define bFM3_USB1_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42A42184UL)) -#define bFM3_USB1_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42A42188UL)) -#define bFM3_USB1_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x42A4218CUL)) -#define bFM3_USB1_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42A42190UL)) -#define bFM3_USB1_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42A42194UL)) -#define bFM3_USB1_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42A42198UL)) -#define bFM3_USB1_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x42A4219CUL)) -#define bFM3_USB1_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x42A421A0UL)) -#define bFM3_USB1_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x42A421A4UL)) -#define bFM3_USB1_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x42A421A8UL)) -#define bFM3_USB1_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x42A421ACUL)) -#define bFM3_USB1_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x42A421B0UL)) -#define bFM3_USB1_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x42A421B4UL)) -#define bFM3_USB1_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x42A421B8UL)) -#define bFM3_USB1_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x42A421BCUL)) -#define bFM3_USB1_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42A42200UL)) -#define bFM3_USB1_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42A42204UL)) -#define bFM3_USB1_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42A42208UL)) -#define bFM3_USB1_HADR_ADDRESS0 *((volatile unsigned int*)(0x42A42220UL)) -#define bFM3_USB1_HADR_ADDRESS1 *((volatile unsigned int*)(0x42A42224UL)) -#define bFM3_USB1_HADR_ADDRESS2 *((volatile unsigned int*)(0x42A42228UL)) -#define bFM3_USB1_HADR_ADDRESS3 *((volatile unsigned int*)(0x42A4222CUL)) -#define bFM3_USB1_HADR_ADDRESS4 *((volatile unsigned int*)(0x42A42230UL)) -#define bFM3_USB1_HADR_ADDRESS5 *((volatile unsigned int*)(0x42A42234UL)) -#define bFM3_USB1_HADR_ADDRESS6 *((volatile unsigned int*)(0x42A42238UL)) -#define bFM3_USB1_HEOF_EOF0 *((volatile unsigned int*)(0x42A42280UL)) -#define bFM3_USB1_HEOF_EOF1 *((volatile unsigned int*)(0x42A42284UL)) -#define bFM3_USB1_HEOF_EOF2 *((volatile unsigned int*)(0x42A42288UL)) -#define bFM3_USB1_HEOF_EOF3 *((volatile unsigned int*)(0x42A4228CUL)) -#define bFM3_USB1_HEOF_EOF4 *((volatile unsigned int*)(0x42A42290UL)) -#define bFM3_USB1_HEOF_EOF5 *((volatile unsigned int*)(0x42A42294UL)) -#define bFM3_USB1_HEOF_EOF6 *((volatile unsigned int*)(0x42A42298UL)) -#define bFM3_USB1_HEOF_EOF7 *((volatile unsigned int*)(0x42A4229CUL)) -#define bFM3_USB1_HEOF_EOF8 *((volatile unsigned int*)(0x42A422A0UL)) -#define bFM3_USB1_HEOF_EOF9 *((volatile unsigned int*)(0x42A422A4UL)) -#define bFM3_USB1_HEOF_EOF10 *((volatile unsigned int*)(0x42A422A8UL)) -#define bFM3_USB1_HEOF_EOF11 *((volatile unsigned int*)(0x42A422ACUL)) -#define bFM3_USB1_HEOF_EOF12 *((volatile unsigned int*)(0x42A422B0UL)) -#define bFM3_USB1_HEOF_EOF13 *((volatile unsigned int*)(0x42A422B4UL)) -#define bFM3_USB1_HEOF_EOF14 *((volatile unsigned int*)(0x42A422B8UL)) -#define bFM3_USB1_HEOF_EOF15 *((volatile unsigned int*)(0x42A422BCUL)) -#define bFM3_USB1_HEOF0_EOF00 *((volatile unsigned int*)(0x42A42280UL)) -#define bFM3_USB1_HEOF0_EOF01 *((volatile unsigned int*)(0x42A42284UL)) -#define bFM3_USB1_HEOF0_EOF02 *((volatile unsigned int*)(0x42A42288UL)) -#define bFM3_USB1_HEOF0_EOF03 *((volatile unsigned int*)(0x42A4228CUL)) -#define bFM3_USB1_HEOF0_EOF04 *((volatile unsigned int*)(0x42A42290UL)) -#define bFM3_USB1_HEOF0_EOF05 *((volatile unsigned int*)(0x42A42294UL)) -#define bFM3_USB1_HEOF0_EOF06 *((volatile unsigned int*)(0x42A42298UL)) -#define bFM3_USB1_HEOF0_EOF07 *((volatile unsigned int*)(0x42A4229CUL)) -#define bFM3_USB1_HEOF1_EOF10 *((volatile unsigned int*)(0x42A422A0UL)) -#define bFM3_USB1_HEOF1_EOF11 *((volatile unsigned int*)(0x42A422A4UL)) -#define bFM3_USB1_HEOF1_EOF12 *((volatile unsigned int*)(0x42A422A8UL)) -#define bFM3_USB1_HEOF1_EOF13 *((volatile unsigned int*)(0x42A422ACUL)) -#define bFM3_USB1_HEOF1_EOF14 *((volatile unsigned int*)(0x42A422B0UL)) -#define bFM3_USB1_HEOF1_EOF15 *((volatile unsigned int*)(0x42A422B4UL)) -#define bFM3_USB1_HFRAME_FRAME0 *((volatile unsigned int*)(0x42A42300UL)) -#define bFM3_USB1_HFRAME_FRAME1 *((volatile unsigned int*)(0x42A42304UL)) -#define bFM3_USB1_HFRAME_FRAME2 *((volatile unsigned int*)(0x42A42308UL)) -#define bFM3_USB1_HFRAME_FRAME3 *((volatile unsigned int*)(0x42A4230CUL)) -#define bFM3_USB1_HFRAME_FRAME4 *((volatile unsigned int*)(0x42A42310UL)) -#define bFM3_USB1_HFRAME_FRAME5 *((volatile unsigned int*)(0x42A42314UL)) -#define bFM3_USB1_HFRAME_FRAME6 *((volatile unsigned int*)(0x42A42318UL)) -#define bFM3_USB1_HFRAME_FRAME7 *((volatile unsigned int*)(0x42A4231CUL)) -#define bFM3_USB1_HFRAME_FRAME8 *((volatile unsigned int*)(0x42A42320UL)) -#define bFM3_USB1_HFRAME_FRAME9 *((volatile unsigned int*)(0x42A42324UL)) -#define bFM3_USB1_HFRAME_FRAME10 *((volatile unsigned int*)(0x42A42328UL)) -#define bFM3_USB1_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42A42300UL)) -#define bFM3_USB1_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42A42304UL)) -#define bFM3_USB1_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42A42308UL)) -#define bFM3_USB1_HFRAME0_FRAME03 *((volatile unsigned int*)(0x42A4230CUL)) -#define bFM3_USB1_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42A42310UL)) -#define bFM3_USB1_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42A42314UL)) -#define bFM3_USB1_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42A42318UL)) -#define bFM3_USB1_HFRAME0_FRAME07 *((volatile unsigned int*)(0x42A4231CUL)) -#define bFM3_USB1_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42A42320UL)) -#define bFM3_USB1_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42A42324UL)) -#define bFM3_USB1_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42A42328UL)) -#define bFM3_USB1_HFRAME1_FRAME13 *((volatile unsigned int*)(0x42A4232CUL)) -#define bFM3_USB1_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42A42380UL)) -#define bFM3_USB1_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42A42384UL)) -#define bFM3_USB1_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42A42388UL)) -#define bFM3_USB1_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x42A4238CUL)) -#define bFM3_USB1_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42A42390UL)) -#define bFM3_USB1_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42A42394UL)) -#define bFM3_USB1_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42A42398UL)) -#define bFM3_USB1_HTOKEN_TGGL *((volatile unsigned int*)(0x42A4239CUL)) -#define bFM3_USB1_UDCC_PWC *((volatile unsigned int*)(0x42A42400UL)) -#define bFM3_USB1_UDCC_RFBK *((volatile unsigned int*)(0x42A42404UL)) -#define bFM3_USB1_UDCC_STALCLREN *((volatile unsigned int*)(0x42A4240CUL)) -#define bFM3_USB1_UDCC_USTP *((volatile unsigned int*)(0x42A42410UL)) -#define bFM3_USB1_UDCC_HCONX *((volatile unsigned int*)(0x42A42414UL)) -#define bFM3_USB1_UDCC_RESUM *((volatile unsigned int*)(0x42A42418UL)) -#define bFM3_USB1_UDCC_RST *((volatile unsigned int*)(0x42A4241CUL)) -#define bFM3_USB1_EP0C_PKS00 *((volatile unsigned int*)(0x42A42480UL)) -#define bFM3_USB1_EP0C_PKS01 *((volatile unsigned int*)(0x42A42484UL)) -#define bFM3_USB1_EP0C_PKS02 *((volatile unsigned int*)(0x42A42488UL)) -#define bFM3_USB1_EP0C_PKS03 *((volatile unsigned int*)(0x42A4248CUL)) -#define bFM3_USB1_EP0C_PKS04 *((volatile unsigned int*)(0x42A42490UL)) -#define bFM3_USB1_EP0C_PKS05 *((volatile unsigned int*)(0x42A42494UL)) -#define bFM3_USB1_EP0C_PKS06 *((volatile unsigned int*)(0x42A42498UL)) -#define bFM3_USB1_EP0C_STAL *((volatile unsigned int*)(0x42A424A4UL)) -#define bFM3_USB1_EP1C_PKS10 *((volatile unsigned int*)(0x42A42500UL)) -#define bFM3_USB1_EP1C_PKS11 *((volatile unsigned int*)(0x42A42504UL)) -#define bFM3_USB1_EP1C_PKS12 *((volatile unsigned int*)(0x42A42508UL)) -#define bFM3_USB1_EP1C_PKS13 *((volatile unsigned int*)(0x42A4250CUL)) -#define bFM3_USB1_EP1C_PKS14 *((volatile unsigned int*)(0x42A42510UL)) -#define bFM3_USB1_EP1C_PKS15 *((volatile unsigned int*)(0x42A42514UL)) -#define bFM3_USB1_EP1C_PKS16 *((volatile unsigned int*)(0x42A42518UL)) -#define bFM3_USB1_EP1C_PKS17 *((volatile unsigned int*)(0x42A4251CUL)) -#define bFM3_USB1_EP1C_PKS18 *((volatile unsigned int*)(0x42A42520UL)) -#define bFM3_USB1_EP1C_STAL *((volatile unsigned int*)(0x42A42524UL)) -#define bFM3_USB1_EP1C_NULE *((volatile unsigned int*)(0x42A42528UL)) -#define bFM3_USB1_EP1C_DMAE *((volatile unsigned int*)(0x42A4252CUL)) -#define bFM3_USB1_EP1C_DIR *((volatile unsigned int*)(0x42A42530UL)) -#define bFM3_USB1_EP1C_TYPE0 *((volatile unsigned int*)(0x42A42534UL)) -#define bFM3_USB1_EP1C_TYPE1 *((volatile unsigned int*)(0x42A42538UL)) -#define bFM3_USB1_EP1C_EPEN *((volatile unsigned int*)(0x42A4253CUL)) -#define bFM3_USB1_EP2C_PKS20 *((volatile unsigned int*)(0x42A42580UL)) -#define bFM3_USB1_EP2C_PKS21 *((volatile unsigned int*)(0x42A42584UL)) -#define bFM3_USB1_EP2C_PKS22 *((volatile unsigned int*)(0x42A42588UL)) -#define bFM3_USB1_EP2C_PKS23 *((volatile unsigned int*)(0x42A4258CUL)) -#define bFM3_USB1_EP2C_PKS24 *((volatile unsigned int*)(0x42A42590UL)) -#define bFM3_USB1_EP2C_PKS25 *((volatile unsigned int*)(0x42A42594UL)) -#define bFM3_USB1_EP2C_PKS26 *((volatile unsigned int*)(0x42A42598UL)) -#define bFM3_USB1_EP2C_STAL *((volatile unsigned int*)(0x42A425A4UL)) -#define bFM3_USB1_EP2C_NULE *((volatile unsigned int*)(0x42A425A8UL)) -#define bFM3_USB1_EP2C_DMAE *((volatile unsigned int*)(0x42A425ACUL)) -#define bFM3_USB1_EP2C_DIR *((volatile unsigned int*)(0x42A425B0UL)) -#define bFM3_USB1_EP2C_TYPE0 *((volatile unsigned int*)(0x42A425B4UL)) -#define bFM3_USB1_EP2C_TYPE1 *((volatile unsigned int*)(0x42A425B8UL)) -#define bFM3_USB1_EP2C_EPEN *((volatile unsigned int*)(0x42A425BCUL)) -#define bFM3_USB1_EP3C_PKS30 *((volatile unsigned int*)(0x42A42600UL)) -#define bFM3_USB1_EP3C_PKS31 *((volatile unsigned int*)(0x42A42604UL)) -#define bFM3_USB1_EP3C_PKS32 *((volatile unsigned int*)(0x42A42608UL)) -#define bFM3_USB1_EP3C_PKS33 *((volatile unsigned int*)(0x42A4260CUL)) -#define bFM3_USB1_EP3C_PKS34 *((volatile unsigned int*)(0x42A42610UL)) -#define bFM3_USB1_EP3C_PKS35 *((volatile unsigned int*)(0x42A42614UL)) -#define bFM3_USB1_EP3C_PKS36 *((volatile unsigned int*)(0x42A42618UL)) -#define bFM3_USB1_EP3C_STAL *((volatile unsigned int*)(0x42A42624UL)) -#define bFM3_USB1_EP3C_NULE *((volatile unsigned int*)(0x42A42628UL)) -#define bFM3_USB1_EP3C_DMAE *((volatile unsigned int*)(0x42A4262CUL)) -#define bFM3_USB1_EP3C_DIR *((volatile unsigned int*)(0x42A42630UL)) -#define bFM3_USB1_EP3C_TYPE0 *((volatile unsigned int*)(0x42A42634UL)) -#define bFM3_USB1_EP3C_TYPE1 *((volatile unsigned int*)(0x42A42638UL)) -#define bFM3_USB1_EP3C_EPEN *((volatile unsigned int*)(0x42A4263CUL)) -#define bFM3_USB1_EP4C_PKS40 *((volatile unsigned int*)(0x42A42680UL)) -#define bFM3_USB1_EP4C_PKS41 *((volatile unsigned int*)(0x42A42684UL)) -#define bFM3_USB1_EP4C_PKS42 *((volatile unsigned int*)(0x42A42688UL)) -#define bFM3_USB1_EP4C_PKS43 *((volatile unsigned int*)(0x42A4268CUL)) -#define bFM3_USB1_EP4C_PKS44 *((volatile unsigned int*)(0x42A42690UL)) -#define bFM3_USB1_EP4C_PKS45 *((volatile unsigned int*)(0x42A42694UL)) -#define bFM3_USB1_EP4C_PKS46 *((volatile unsigned int*)(0x42A42698UL)) -#define bFM3_USB1_EP4C_STAL *((volatile unsigned int*)(0x42A426A4UL)) -#define bFM3_USB1_EP4C_NULE *((volatile unsigned int*)(0x42A426A8UL)) -#define bFM3_USB1_EP4C_DMAE *((volatile unsigned int*)(0x42A426ACUL)) -#define bFM3_USB1_EP4C_DIR *((volatile unsigned int*)(0x42A426B0UL)) -#define bFM3_USB1_EP4C_TYPE0 *((volatile unsigned int*)(0x42A426B4UL)) -#define bFM3_USB1_EP4C_TYPE1 *((volatile unsigned int*)(0x42A426B8UL)) -#define bFM3_USB1_EP4C_EPEN *((volatile unsigned int*)(0x42A426BCUL)) -#define bFM3_USB1_EP5C_PKS50 *((volatile unsigned int*)(0x42A42700UL)) -#define bFM3_USB1_EP5C_PKS51 *((volatile unsigned int*)(0x42A42704UL)) -#define bFM3_USB1_EP5C_PKS52 *((volatile unsigned int*)(0x42A42708UL)) -#define bFM3_USB1_EP5C_PKS53 *((volatile unsigned int*)(0x42A4270CUL)) -#define bFM3_USB1_EP5C_PKS54 *((volatile unsigned int*)(0x42A42710UL)) -#define bFM3_USB1_EP5C_PKS55 *((volatile unsigned int*)(0x42A42714UL)) -#define bFM3_USB1_EP5C_PKS56 *((volatile unsigned int*)(0x42A42718UL)) -#define bFM3_USB1_EP5C_STAL *((volatile unsigned int*)(0x42A42724UL)) -#define bFM3_USB1_EP5C_NULE *((volatile unsigned int*)(0x42A42728UL)) -#define bFM3_USB1_EP5C_DMAE *((volatile unsigned int*)(0x42A4272CUL)) -#define bFM3_USB1_EP5C_DIR *((volatile unsigned int*)(0x42A42730UL)) -#define bFM3_USB1_EP5C_TYPE0 *((volatile unsigned int*)(0x42A42734UL)) -#define bFM3_USB1_EP5C_TYPE1 *((volatile unsigned int*)(0x42A42738UL)) -#define bFM3_USB1_EP5C_EPEN *((volatile unsigned int*)(0x42A4273CUL)) -#define bFM3_USB1_TMSP_TMSP0 *((volatile unsigned int*)(0x42A42780UL)) -#define bFM3_USB1_TMSP_TMSP1 *((volatile unsigned int*)(0x42A42784UL)) -#define bFM3_USB1_TMSP_TMSP2 *((volatile unsigned int*)(0x42A42788UL)) -#define bFM3_USB1_TMSP_TMSP3 *((volatile unsigned int*)(0x42A4278CUL)) -#define bFM3_USB1_TMSP_TMSP4 *((volatile unsigned int*)(0x42A42790UL)) -#define bFM3_USB1_TMSP_TMSP5 *((volatile unsigned int*)(0x42A42794UL)) -#define bFM3_USB1_TMSP_TMSP6 *((volatile unsigned int*)(0x42A42798UL)) -#define bFM3_USB1_TMSP_TMSP7 *((volatile unsigned int*)(0x42A4279CUL)) -#define bFM3_USB1_TMSP_TMSP8 *((volatile unsigned int*)(0x42A427A0UL)) -#define bFM3_USB1_TMSP_TMSP9 *((volatile unsigned int*)(0x42A427A4UL)) -#define bFM3_USB1_TMSP_TMSP10 *((volatile unsigned int*)(0x42A427A8UL)) -#define bFM3_USB1_UDCS_CONF *((volatile unsigned int*)(0x42A42800UL)) -#define bFM3_USB1_UDCS_SETP *((volatile unsigned int*)(0x42A42804UL)) -#define bFM3_USB1_UDCS_WKUP *((volatile unsigned int*)(0x42A42808UL)) -#define bFM3_USB1_UDCS_BRST *((volatile unsigned int*)(0x42A4280CUL)) -#define bFM3_USB1_UDCS_SOF *((volatile unsigned int*)(0x42A42810UL)) -#define bFM3_USB1_UDCS_SUSP *((volatile unsigned int*)(0x42A42814UL)) -#define bFM3_USB1_UDCIE_CONFIE *((volatile unsigned int*)(0x42A42820UL)) -#define bFM3_USB1_UDCIE_CONFN *((volatile unsigned int*)(0x42A42824UL)) -#define bFM3_USB1_UDCIE_WKUPIE *((volatile unsigned int*)(0x42A42828UL)) -#define bFM3_USB1_UDCIE_BRSTIE *((volatile unsigned int*)(0x42A4282CUL)) -#define bFM3_USB1_UDCIE_SOFIE *((volatile unsigned int*)(0x42A42830UL)) -#define bFM3_USB1_UDCIE_SUSPIE *((volatile unsigned int*)(0x42A42834UL)) -#define bFM3_USB1_EP0IS_DRQI *((volatile unsigned int*)(0x42A428A8UL)) -#define bFM3_USB1_EP0IS_DRQIIE *((volatile unsigned int*)(0x42A428B8UL)) -#define bFM3_USB1_EP0IS_BFINI *((volatile unsigned int*)(0x42A428BCUL)) -#define bFM3_USB1_EP0OS_SIZE0 *((volatile unsigned int*)(0x42A42900UL)) -#define bFM3_USB1_EP0OS_SIZE1 *((volatile unsigned int*)(0x42A42904UL)) -#define bFM3_USB1_EP0OS_SIZE2 *((volatile unsigned int*)(0x42A42908UL)) -#define bFM3_USB1_EP0OS_SIZE3 *((volatile unsigned int*)(0x42A4290CUL)) -#define bFM3_USB1_EP0OS_SIZE4 *((volatile unsigned int*)(0x42A42910UL)) -#define bFM3_USB1_EP0OS_SIZE5 *((volatile unsigned int*)(0x42A42914UL)) -#define bFM3_USB1_EP0OS_SIZE6 *((volatile unsigned int*)(0x42A42918UL)) -#define bFM3_USB1_EP0OS_SPK *((volatile unsigned int*)(0x42A42924UL)) -#define bFM3_USB1_EP0OS_DRQO *((volatile unsigned int*)(0x42A42928UL)) -#define bFM3_USB1_EP0OS_SPKIE *((volatile unsigned int*)(0x42A42934UL)) -#define bFM3_USB1_EP0OS_DRQOIE *((volatile unsigned int*)(0x42A42938UL)) -#define bFM3_USB1_EP0OS_BFINI *((volatile unsigned int*)(0x42A4293CUL)) -#define bFM3_USB1_EP1S_SIZE10 *((volatile unsigned int*)(0x42A42980UL)) -#define bFM3_USB1_EP1S_SIZE11 *((volatile unsigned int*)(0x42A42984UL)) -#define bFM3_USB1_EP1S_SIZE12 *((volatile unsigned int*)(0x42A42988UL)) -#define bFM3_USB1_EP1S_SIZE13 *((volatile unsigned int*)(0x42A4298CUL)) -#define bFM3_USB1_EP1S_SIZE14 *((volatile unsigned int*)(0x42A42990UL)) -#define bFM3_USB1_EP1S_SIZE15 *((volatile unsigned int*)(0x42A42994UL)) -#define bFM3_USB1_EP1S_SIZE16 *((volatile unsigned int*)(0x42A42998UL)) -#define bFM3_USB1_EP1S_SIZE17 *((volatile unsigned int*)(0x42A4299CUL)) -#define bFM3_USB1_EP1S_SIZE18 *((volatile unsigned int*)(0x42A429A0UL)) -#define bFM3_USB1_EP1S_SPK *((volatile unsigned int*)(0x42A429A4UL)) -#define bFM3_USB1_EP1S_DRQ *((volatile unsigned int*)(0x42A429A8UL)) -#define bFM3_USB1_EP1S_BUSY *((volatile unsigned int*)(0x42A429ACUL)) -#define bFM3_USB1_EP1S_SPKIE *((volatile unsigned int*)(0x42A429B4UL)) -#define bFM3_USB1_EP1S_DRQIE *((volatile unsigned int*)(0x42A429B8UL)) -#define bFM3_USB1_EP1S_BFINI *((volatile unsigned int*)(0x42A429BCUL)) -#define bFM3_USB1_EP2S_SIZE20 *((volatile unsigned int*)(0x42A42A00UL)) -#define bFM3_USB1_EP2S_SIZE21 *((volatile unsigned int*)(0x42A42A04UL)) -#define bFM3_USB1_EP2S_SIZE22 *((volatile unsigned int*)(0x42A42A08UL)) -#define bFM3_USB1_EP2S_SIZE23 *((volatile unsigned int*)(0x42A42A0CUL)) -#define bFM3_USB1_EP2S_SIZE24 *((volatile unsigned int*)(0x42A42A10UL)) -#define bFM3_USB1_EP2S_SIZE25 *((volatile unsigned int*)(0x42A42A14UL)) -#define bFM3_USB1_EP2S_SIZE26 *((volatile unsigned int*)(0x42A42A18UL)) -#define bFM3_USB1_EP2S_SPK *((volatile unsigned int*)(0x42A42A24UL)) -#define bFM3_USB1_EP2S_DRQ *((volatile unsigned int*)(0x42A42A28UL)) -#define bFM3_USB1_EP2S_BUSY *((volatile unsigned int*)(0x42A42A2CUL)) -#define bFM3_USB1_EP2S_SPKIE *((volatile unsigned int*)(0x42A42A34UL)) -#define bFM3_USB1_EP2S_DRQIE *((volatile unsigned int*)(0x42A42A38UL)) -#define bFM3_USB1_EP2S_BFINI *((volatile unsigned int*)(0x42A42A3CUL)) -#define bFM3_USB1_EP3S_SIZE30 *((volatile unsigned int*)(0x42A42A80UL)) -#define bFM3_USB1_EP3S_SIZE31 *((volatile unsigned int*)(0x42A42A84UL)) -#define bFM3_USB1_EP3S_SIZE32 *((volatile unsigned int*)(0x42A42A88UL)) -#define bFM3_USB1_EP3S_SIZE33 *((volatile unsigned int*)(0x42A42A8CUL)) -#define bFM3_USB1_EP3S_SIZE34 *((volatile unsigned int*)(0x42A42A90UL)) -#define bFM3_USB1_EP3S_SIZE35 *((volatile unsigned int*)(0x42A42A94UL)) -#define bFM3_USB1_EP3S_SIZE36 *((volatile unsigned int*)(0x42A42A98UL)) -#define bFM3_USB1_EP3S_SPK *((volatile unsigned int*)(0x42A42AA4UL)) -#define bFM3_USB1_EP3S_DRQ *((volatile unsigned int*)(0x42A42AA8UL)) -#define bFM3_USB1_EP3S_BUSY *((volatile unsigned int*)(0x42A42AACUL)) -#define bFM3_USB1_EP3S_SPKIE *((volatile unsigned int*)(0x42A42AB4UL)) -#define bFM3_USB1_EP3S_DRQIE *((volatile unsigned int*)(0x42A42AB8UL)) -#define bFM3_USB1_EP3S_BFINI *((volatile unsigned int*)(0x42A42ABCUL)) -#define bFM3_USB1_EP4S_SIZE40 *((volatile unsigned int*)(0x42A42B00UL)) -#define bFM3_USB1_EP4S_SIZE41 *((volatile unsigned int*)(0x42A42B04UL)) -#define bFM3_USB1_EP4S_SIZE42 *((volatile unsigned int*)(0x42A42B08UL)) -#define bFM3_USB1_EP4S_SIZE43 *((volatile unsigned int*)(0x42A42B0CUL)) -#define bFM3_USB1_EP4S_SIZE44 *((volatile unsigned int*)(0x42A42B10UL)) -#define bFM3_USB1_EP4S_SIZE45 *((volatile unsigned int*)(0x42A42B14UL)) -#define bFM3_USB1_EP4S_SIZE46 *((volatile unsigned int*)(0x42A42B18UL)) -#define bFM3_USB1_EP4S_SPK *((volatile unsigned int*)(0x42A42B24UL)) -#define bFM3_USB1_EP4S_DRQ *((volatile unsigned int*)(0x42A42B28UL)) -#define bFM3_USB1_EP4S_BUSY *((volatile unsigned int*)(0x42A42B2CUL)) -#define bFM3_USB1_EP4S_SPKIE *((volatile unsigned int*)(0x42A42B34UL)) -#define bFM3_USB1_EP4S_DRQIE *((volatile unsigned int*)(0x42A42B38UL)) -#define bFM3_USB1_EP4S_BFINI *((volatile unsigned int*)(0x42A42B3CUL)) -#define bFM3_USB1_EP5S_SIZE50 *((volatile unsigned int*)(0x42A42B80UL)) -#define bFM3_USB1_EP5S_SIZE51 *((volatile unsigned int*)(0x42A42B84UL)) -#define bFM3_USB1_EP5S_SIZE52 *((volatile unsigned int*)(0x42A42B88UL)) -#define bFM3_USB1_EP5S_SIZE53 *((volatile unsigned int*)(0x42A42B8CUL)) -#define bFM3_USB1_EP5S_SIZE54 *((volatile unsigned int*)(0x42A42B90UL)) -#define bFM3_USB1_EP5S_SIZE55 *((volatile unsigned int*)(0x42A42B94UL)) -#define bFM3_USB1_EP5S_SIZE56 *((volatile unsigned int*)(0x42A42B98UL)) -#define bFM3_USB1_EP5S_SPK *((volatile unsigned int*)(0x42A42BA4UL)) -#define bFM3_USB1_EP5S_DRQ *((volatile unsigned int*)(0x42A42BA8UL)) -#define bFM3_USB1_EP5S_BUSY *((volatile unsigned int*)(0x42A42BACUL)) -#define bFM3_USB1_EP5S_SPKIE *((volatile unsigned int*)(0x42A42BB4UL)) -#define bFM3_USB1_EP5S_DRQIE *((volatile unsigned int*)(0x42A42BB8UL)) -#define bFM3_USB1_EP5S_BFINI *((volatile unsigned int*)(0x42A42BBCUL)) - -/* DMA controller */ -#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) -#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) -#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) -#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) -#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) -#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) -#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) -#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) -#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) -#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) -#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) -#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) -#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) -#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) -#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) -#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) -#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) -#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) -#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) -#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) -#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) -#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) -#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) -#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) -#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) -#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) -#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) -#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) -#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) -#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) -#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) -#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) -#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) -#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) -#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) -#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) -#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) -#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) -#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) -#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) -#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) -#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) -#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) -#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) -#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) -#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) -#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) -#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) -#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) -#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) -#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) -#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) -#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) -#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) -#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) -#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) -#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) -#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) -#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) -#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) -#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) -#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) -#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) -#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) -#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) -#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) -#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) -#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) -#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) -#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) -#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) -#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) -#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) -#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) -#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) -#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) -#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) -#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) -#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) -#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) -#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) -#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) -#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) -#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) -#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) -#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) -#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) -#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) -#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) -#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) -#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) -#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) -#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) -#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) -#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) -#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) -#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) -#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) -#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) -#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) -#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) -#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) -#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) -#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) -#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) -#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) -#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) -#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) -#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) -#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) -#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) -#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) -#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) -#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) -#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) -#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) -#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) -#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) -#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) -#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) -#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) -#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) -#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) -#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) -#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) -#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) -#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) -#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) -#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) -#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) -#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) -#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) -#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) -#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) -#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) -#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) -#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) -#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) -#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) -#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) -#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) -#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) -#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) -#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) -#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) -#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) -#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) -#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) -#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) -#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) -#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) -#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) -#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) -#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) -#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) -#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) -#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) -#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) -#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) -#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) -#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) -#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) -#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) -#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) -#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) -#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) -#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) -#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) -#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) -#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) -#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) -#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) -#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) -#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) -#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) -#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) -#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) -#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) -#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) -#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) -#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) -#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) -#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) -#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) -#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) -#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) -#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) -#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) -#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) -#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) -#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) -#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) -#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) -#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) -#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) -#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) -#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) -#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) -#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) -#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) -#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) -#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) -#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) -#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) -#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) -#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) -#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) -#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) -#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) -#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) -#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) -#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) -#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) -#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) -#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) -#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) -#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) -#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) -#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) -#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) -#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) -#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) -#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) -#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) -#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) -#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) -#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) -#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) -#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) -#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) -#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) -#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) -#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) -#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) -#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) -#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) -#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) -#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) -#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) -#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) -#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) -#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) -#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) -#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) -#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) -#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) -#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) -#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) -#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) -#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) -#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) -#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) -#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) -#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) -#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) -#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) -#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) -#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) -#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) -#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) -#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) -#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) -#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) -#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) -#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) -#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) -#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) -#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) -#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) -#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) -#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) -#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) -#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) -#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) -#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) -#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) -#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) -#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) -#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) -#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) -#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) -#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) -#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) -#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) -#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) -#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) -#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) -#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) -#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) -#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) -#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) -#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) -#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) -#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) -#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) -#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) -#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) -#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) -#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) -#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) -#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) -#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) -#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) -#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) -#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) -#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) -#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) -#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) -#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) -#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) -#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) -#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) -#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) -#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) -#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) -#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) -#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) -#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) -#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) -#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) -#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) -#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) -#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) -#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) -#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) -#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) -#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) -#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) -#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) -#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) -#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) -#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) -#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) -#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) -#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) -#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) -#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) -#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) -#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) -#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) -#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) -#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) -#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) -#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) -#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) -#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) -#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) -#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) -#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) -#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) -#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) -#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) -#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) -#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) -#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) -#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) -#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) -#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) -#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) - -/* ETHERNET-MAC0 registers*/ -#define bFM3_ETHERNET_MAC0_MCR_RE *((volatile unsigned int*)(0x42C80008UL)) -#define bFM3_ETHERNET_MAC0_MCR_TE *((volatile unsigned int*)(0x42C8000CUL)) -#define bFM3_ETHERNET_MAC0_MCR_DC *((volatile unsigned int*)(0x42C80010UL)) -#define bFM3_ETHERNET_MAC0_MCR_BL0 *((volatile unsigned int*)(0x42C80014UL)) -#define bFM3_ETHERNET_MAC0_MCR_BL1 *((volatile unsigned int*)(0x42C80018UL)) -#define bFM3_ETHERNET_MAC0_MCR_ACS *((volatile unsigned int*)(0x42C8001CUL)) -#define bFM3_ETHERNET_MAC0_MCR_LUD *((volatile unsigned int*)(0x42C80020UL)) -#define bFM3_ETHERNET_MAC0_MCR_DR *((volatile unsigned int*)(0x42C80024UL)) -#define bFM3_ETHERNET_MAC0_MCR_IPC *((volatile unsigned int*)(0x42C80028UL)) -#define bFM3_ETHERNET_MAC0_MCR_DM *((volatile unsigned int*)(0x42C8002CUL)) -#define bFM3_ETHERNET_MAC0_MCR_LM *((volatile unsigned int*)(0x42C80030UL)) -#define bFM3_ETHERNET_MAC0_MCR_DO *((volatile unsigned int*)(0x42C80034UL)) -#define bFM3_ETHERNET_MAC0_MCR_FES *((volatile unsigned int*)(0x42C80038UL)) -#define bFM3_ETHERNET_MAC0_MCR_PS *((volatile unsigned int*)(0x42C8003CUL)) -#define bFM3_ETHERNET_MAC0_MCR_DCRS *((volatile unsigned int*)(0x42C80040UL)) -#define bFM3_ETHERNET_MAC0_MCR_IFG0 *((volatile unsigned int*)(0x42C80044UL)) -#define bFM3_ETHERNET_MAC0_MCR_IFG1 *((volatile unsigned int*)(0x42C80048UL)) -#define bFM3_ETHERNET_MAC0_MCR_IFG2 *((volatile unsigned int*)(0x42C8004CUL)) -#define bFM3_ETHERNET_MAC0_MCR_JE *((volatile unsigned int*)(0x42C80050UL)) -#define bFM3_ETHERNET_MAC0_MCR_BE *((volatile unsigned int*)(0x42C80054UL)) -#define bFM3_ETHERNET_MAC0_MCR_JD *((volatile unsigned int*)(0x42C80058UL)) -#define bFM3_ETHERNET_MAC0_MCR_WD *((volatile unsigned int*)(0x42C8005CUL)) -#define bFM3_ETHERNET_MAC0_MCR_TC *((volatile unsigned int*)(0x42C80060UL)) -#define bFM3_ETHERNET_MAC0_MCR_CST *((volatile unsigned int*)(0x42C80064UL)) -#define bFM3_ETHERNET_MAC0_MFFR_PR *((volatile unsigned int*)(0x42C80080UL)) -#define bFM3_ETHERNET_MAC0_MFFR_HUC *((volatile unsigned int*)(0x42C80084UL)) -#define bFM3_ETHERNET_MAC0_MFFR_HMC *((volatile unsigned int*)(0x42C80088UL)) -#define bFM3_ETHERNET_MAC0_MFFR_DAIF *((volatile unsigned int*)(0x42C8008CUL)) -#define bFM3_ETHERNET_MAC0_MFFR_PM *((volatile unsigned int*)(0x42C80090UL)) -#define bFM3_ETHERNET_MAC0_MFFR_DB *((volatile unsigned int*)(0x42C80094UL)) -#define bFM3_ETHERNET_MAC0_MFFR_PCF0 *((volatile unsigned int*)(0x42C80098UL)) -#define bFM3_ETHERNET_MAC0_MFFR_PCF1 *((volatile unsigned int*)(0x42C8009CUL)) -#define bFM3_ETHERNET_MAC0_MFFR_SAIF *((volatile unsigned int*)(0x42C800A0UL)) -#define bFM3_ETHERNET_MAC0_MFFR_SAF *((volatile unsigned int*)(0x42C800A4UL)) -#define bFM3_ETHERNET_MAC0_MFFR_HPF *((volatile unsigned int*)(0x42C800A8UL)) -#define bFM3_ETHERNET_MAC0_MFFR_RA *((volatile unsigned int*)(0x42C800FCUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH0 *((volatile unsigned int*)(0x42C80100UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH1 *((volatile unsigned int*)(0x42C80104UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH2 *((volatile unsigned int*)(0x42C80108UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH3 *((volatile unsigned int*)(0x42C8010CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH4 *((volatile unsigned int*)(0x42C80110UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH5 *((volatile unsigned int*)(0x42C80114UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH6 *((volatile unsigned int*)(0x42C80118UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH7 *((volatile unsigned int*)(0x42C8011CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH8 *((volatile unsigned int*)(0x42C80120UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH9 *((volatile unsigned int*)(0x42C80124UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH10 *((volatile unsigned int*)(0x42C80128UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH11 *((volatile unsigned int*)(0x42C8012CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH12 *((volatile unsigned int*)(0x42C80130UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH13 *((volatile unsigned int*)(0x42C80134UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH14 *((volatile unsigned int*)(0x42C80138UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH15 *((volatile unsigned int*)(0x42C8013CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH16 *((volatile unsigned int*)(0x42C80140UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH17 *((volatile unsigned int*)(0x42C80144UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH18 *((volatile unsigned int*)(0x42C80148UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH19 *((volatile unsigned int*)(0x42C8014CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH20 *((volatile unsigned int*)(0x42C80150UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH21 *((volatile unsigned int*)(0x42C80154UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH22 *((volatile unsigned int*)(0x42C80158UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH23 *((volatile unsigned int*)(0x42C8015CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH24 *((volatile unsigned int*)(0x42C80160UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH25 *((volatile unsigned int*)(0x42C80164UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH26 *((volatile unsigned int*)(0x42C80168UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH27 *((volatile unsigned int*)(0x42C8016CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH28 *((volatile unsigned int*)(0x42C80170UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH29 *((volatile unsigned int*)(0x42C80174UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH30 *((volatile unsigned int*)(0x42C80178UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH31 *((volatile unsigned int*)(0x42C8017CUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL0 *((volatile unsigned int*)(0x42C80180UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL1 *((volatile unsigned int*)(0x42C80184UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL2 *((volatile unsigned int*)(0x42C80188UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL3 *((volatile unsigned int*)(0x42C8018CUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL4 *((volatile unsigned int*)(0x42C80190UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL5 *((volatile unsigned int*)(0x42C80194UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL6 *((volatile unsigned int*)(0x42C80198UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL7 *((volatile unsigned int*)(0x42C8019CUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL8 *((volatile unsigned int*)(0x42C801A0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL9 *((volatile unsigned int*)(0x42C801A4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL10 *((volatile unsigned int*)(0x42C801A8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL11 *((volatile unsigned int*)(0x42C801ACUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL12 *((volatile unsigned int*)(0x42C801B0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL13 *((volatile unsigned int*)(0x42C801B4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL14 *((volatile unsigned int*)(0x42C801B8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL15 *((volatile unsigned int*)(0x42C801BCUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL16 *((volatile unsigned int*)(0x42C801C0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL17 *((volatile unsigned int*)(0x42C801C4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL18 *((volatile unsigned int*)(0x42C801C8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL19 *((volatile unsigned int*)(0x42C801CCUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL20 *((volatile unsigned int*)(0x42C801D0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL21 *((volatile unsigned int*)(0x42C801D4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL22 *((volatile unsigned int*)(0x42C801D8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL23 *((volatile unsigned int*)(0x42C801DCUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL24 *((volatile unsigned int*)(0x42C801E0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL25 *((volatile unsigned int*)(0x42C801E4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL26 *((volatile unsigned int*)(0x42C801E8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL27 *((volatile unsigned int*)(0x42C801ECUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL28 *((volatile unsigned int*)(0x42C801F0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL29 *((volatile unsigned int*)(0x42C801F4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL30 *((volatile unsigned int*)(0x42C801F8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL31 *((volatile unsigned int*)(0x42C801FCUL)) -#define bFM3_ETHERNET_MAC0_GAR_GB *((volatile unsigned int*)(0x42C80200UL)) -#define bFM3_ETHERNET_MAC0_GAR_GW *((volatile unsigned int*)(0x42C80204UL)) -#define bFM3_ETHERNET_MAC0_GAR_CR0 *((volatile unsigned int*)(0x42C80208UL)) -#define bFM3_ETHERNET_MAC0_GAR_CR1 *((volatile unsigned int*)(0x42C8020CUL)) -#define bFM3_ETHERNET_MAC0_GAR_CR2 *((volatile unsigned int*)(0x42C80210UL)) -#define bFM3_ETHERNET_MAC0_GAR_CR3 *((volatile unsigned int*)(0x42C80214UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR0 *((volatile unsigned int*)(0x42C80218UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR1 *((volatile unsigned int*)(0x42C8021CUL)) -#define bFM3_ETHERNET_MAC0_GAR_GR2 *((volatile unsigned int*)(0x42C80220UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR3 *((volatile unsigned int*)(0x42C80224UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR4 *((volatile unsigned int*)(0x42C80228UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA0 *((volatile unsigned int*)(0x42C8022CUL)) -#define bFM3_ETHERNET_MAC0_GAR_PA1 *((volatile unsigned int*)(0x42C80230UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA2 *((volatile unsigned int*)(0x42C80234UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA3 *((volatile unsigned int*)(0x42C80238UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA4 *((volatile unsigned int*)(0x42C8023CUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD0 *((volatile unsigned int*)(0x42C80280UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD1 *((volatile unsigned int*)(0x42C80284UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD2 *((volatile unsigned int*)(0x42C80288UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD3 *((volatile unsigned int*)(0x42C8028CUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD4 *((volatile unsigned int*)(0x42C80290UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD5 *((volatile unsigned int*)(0x42C80294UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD6 *((volatile unsigned int*)(0x42C80298UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD7 *((volatile unsigned int*)(0x42C8029CUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD8 *((volatile unsigned int*)(0x42C802A0UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD9 *((volatile unsigned int*)(0x42C802A4UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD10 *((volatile unsigned int*)(0x42C802A8UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD11 *((volatile unsigned int*)(0x42C802ACUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD12 *((volatile unsigned int*)(0x42C802B0UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD13 *((volatile unsigned int*)(0x42C802B4UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD14 *((volatile unsigned int*)(0x42C802B8UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD15 *((volatile unsigned int*)(0x42C802BCUL)) -#define bFM3_ETHERNET_MAC0_FCR_FCB_BPA *((volatile unsigned int*)(0x42C80300UL)) -#define bFM3_ETHERNET_MAC0_FCR_TFE *((volatile unsigned int*)(0x42C80304UL)) -#define bFM3_ETHERNET_MAC0_FCR_RFE *((volatile unsigned int*)(0x42C80308UL)) -#define bFM3_ETHERNET_MAC0_FCR_UP *((volatile unsigned int*)(0x42C8030CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PLT0 *((volatile unsigned int*)(0x42C80310UL)) -#define bFM3_ETHERNET_MAC0_FCR_PLT1 *((volatile unsigned int*)(0x42C80314UL)) -#define bFM3_ETHERNET_MAC0_FCR_DZPQ *((volatile unsigned int*)(0x42C8031CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT0 *((volatile unsigned int*)(0x42C80340UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT1 *((volatile unsigned int*)(0x42C80344UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT2 *((volatile unsigned int*)(0x42C80348UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT3 *((volatile unsigned int*)(0x42C8034CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT4 *((volatile unsigned int*)(0x42C80350UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT5 *((volatile unsigned int*)(0x42C80354UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT6 *((volatile unsigned int*)(0x42C80358UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT7 *((volatile unsigned int*)(0x42C8035CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT8 *((volatile unsigned int*)(0x42C80360UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT9 *((volatile unsigned int*)(0x42C80364UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT10 *((volatile unsigned int*)(0x42C80368UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT11 *((volatile unsigned int*)(0x42C8036CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT12 *((volatile unsigned int*)(0x42C80370UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT13 *((volatile unsigned int*)(0x42C80374UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT14 *((volatile unsigned int*)(0x42C80378UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT15 *((volatile unsigned int*)(0x42C8037CUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL0 *((volatile unsigned int*)(0x42C80380UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL1 *((volatile unsigned int*)(0x42C80384UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL2 *((volatile unsigned int*)(0x42C80388UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL3 *((volatile unsigned int*)(0x42C8038CUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL4 *((volatile unsigned int*)(0x42C80390UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL5 *((volatile unsigned int*)(0x42C80394UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL6 *((volatile unsigned int*)(0x42C80398UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL7 *((volatile unsigned int*)(0x42C8039CUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL8 *((volatile unsigned int*)(0x42C803A0UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL9 *((volatile unsigned int*)(0x42C803A4UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL10 *((volatile unsigned int*)(0x42C803A8UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL11 *((volatile unsigned int*)(0x42C803ACUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL12 *((volatile unsigned int*)(0x42C803B0UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL13 *((volatile unsigned int*)(0x42C803B4UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL14 *((volatile unsigned int*)(0x42C803B8UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL15 *((volatile unsigned int*)(0x42C803BCUL)) -#define bFM3_ETHERNET_MAC0_VTR_ETV *((volatile unsigned int*)(0x42C803C0UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42C80500UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42C80504UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42C80508UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42C8050CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42C80510UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42C80514UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42C80518UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42C8051CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42C80520UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42C80524UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42C80528UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42C8052CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42C80530UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42C80534UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42C80538UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42C8053CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42C80540UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42C80544UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42C80548UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42C8054CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42C80550UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42C80554UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42C80558UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42C8055CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42C80560UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42C80564UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42C80568UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42C8056CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42C80570UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42C80574UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42C80578UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42C8057CUL)) -#define bFM3_ETHERNET_MAC0_PMTR_PD *((volatile unsigned int*)(0x42C80580UL)) -#define bFM3_ETHERNET_MAC0_PMTR_MPE *((volatile unsigned int*)(0x42C80584UL)) -#define bFM3_ETHERNET_MAC0_PMTR_WFE *((volatile unsigned int*)(0x42C80588UL)) -#define bFM3_ETHERNET_MAC0_PMTR_MPR *((volatile unsigned int*)(0x42C80594UL)) -#define bFM3_ETHERNET_MAC0_PMTR_WPR *((volatile unsigned int*)(0x42C80598UL)) -#define bFM3_ETHERNET_MAC0_PMTR_GU *((volatile unsigned int*)(0x42C805A4UL)) -#define bFM3_ETHERNET_MAC0_PMTR_RWFFRPR *((volatile unsigned int*)(0x42C805FCUL)) -#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEN *((volatile unsigned int*)(0x42C80600UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEX *((volatile unsigned int*)(0x42C80604UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEN *((volatile unsigned int*)(0x42C80608UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEX *((volatile unsigned int*)(0x42C8060CUL)) -#define bFM3_ETHERNET_MAC0_LPICSR_TLPIST *((volatile unsigned int*)(0x42C80620UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_RLPIST *((volatile unsigned int*)(0x42C80624UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_LPIEN *((volatile unsigned int*)(0x42C80640UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_PLS *((volatile unsigned int*)(0x42C80644UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_PLSEN *((volatile unsigned int*)(0x42C80648UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_LPITXA *((volatile unsigned int*)(0x42C8064CUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT0 *((volatile unsigned int*)(0x42C80680UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT1 *((volatile unsigned int*)(0x42C80684UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT2 *((volatile unsigned int*)(0x42C80688UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT3 *((volatile unsigned int*)(0x42C8068CUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT4 *((volatile unsigned int*)(0x42C80690UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT5 *((volatile unsigned int*)(0x42C80694UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT6 *((volatile unsigned int*)(0x42C80698UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT7 *((volatile unsigned int*)(0x42C8069CUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT8 *((volatile unsigned int*)(0x42C806A0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT9 *((volatile unsigned int*)(0x42C806A4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT10 *((volatile unsigned int*)(0x42C806A8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT11 *((volatile unsigned int*)(0x42C806ACUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT12 *((volatile unsigned int*)(0x42C806B0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT13 *((volatile unsigned int*)(0x42C806B4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT14 *((volatile unsigned int*)(0x42C806B8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT15 *((volatile unsigned int*)(0x42C806BCUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT0 *((volatile unsigned int*)(0x42C806C0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT1 *((volatile unsigned int*)(0x42C806C4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT2 *((volatile unsigned int*)(0x42C806C8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT3 *((volatile unsigned int*)(0x42C806CCUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT4 *((volatile unsigned int*)(0x42C806D0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT5 *((volatile unsigned int*)(0x42C806D4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT6 *((volatile unsigned int*)(0x42C806D8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT7 *((volatile unsigned int*)(0x42C806DCUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT8 *((volatile unsigned int*)(0x42C806E0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT9 *((volatile unsigned int*)(0x42C806E4UL)) -#define bFM3_ETHERNET_MAC0_ISR_RGIS *((volatile unsigned int*)(0x42C80700UL)) -#define bFM3_ETHERNET_MAC0_ISR_PIS *((volatile unsigned int*)(0x42C8070CUL)) -#define bFM3_ETHERNET_MAC0_ISR_MIS *((volatile unsigned int*)(0x42C80710UL)) -#define bFM3_ETHERNET_MAC0_ISR_RIS *((volatile unsigned int*)(0x42C80714UL)) -#define bFM3_ETHERNET_MAC0_ISR_TIS *((volatile unsigned int*)(0x42C80718UL)) -#define bFM3_ETHERNET_MAC0_ISR_COIS *((volatile unsigned int*)(0x42C8071CUL)) -#define bFM3_ETHERNET_MAC0_ISR_TSIS *((volatile unsigned int*)(0x42C80724UL)) -#define bFM3_ETHERNET_MAC0_ISR_LPIIS *((volatile unsigned int*)(0x42C80728UL)) -#define bFM3_ETHERNET_MAC0_IMR_RGIM *((volatile unsigned int*)(0x42C80780UL)) -#define bFM3_ETHERNET_MAC0_IMR_PIM *((volatile unsigned int*)(0x42C8078CUL)) -#define bFM3_ETHERNET_MAC0_IMR_TSIM *((volatile unsigned int*)(0x42C80794UL)) -#define bFM3_ETHERNET_MAC0_IMR_LPIIM *((volatile unsigned int*)(0x42C80798UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A32 *((volatile unsigned int*)(0x42C80800UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A33 *((volatile unsigned int*)(0x42C80804UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A34 *((volatile unsigned int*)(0x42C80808UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A35 *((volatile unsigned int*)(0x42C8080CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A36 *((volatile unsigned int*)(0x42C80810UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A37 *((volatile unsigned int*)(0x42C80814UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A38 *((volatile unsigned int*)(0x42C80818UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A39 *((volatile unsigned int*)(0x42C8081CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A40 *((volatile unsigned int*)(0x42C80820UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A41 *((volatile unsigned int*)(0x42C80824UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A42 *((volatile unsigned int*)(0x42C80828UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A43 *((volatile unsigned int*)(0x42C8082CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A44 *((volatile unsigned int*)(0x42C80830UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A45 *((volatile unsigned int*)(0x42C80834UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A46 *((volatile unsigned int*)(0x42C80838UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A47 *((volatile unsigned int*)(0x42C8083CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_MO *((volatile unsigned int*)(0x42C8087CUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A0 *((volatile unsigned int*)(0x42C80880UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A1 *((volatile unsigned int*)(0x42C80884UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A2 *((volatile unsigned int*)(0x42C80888UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A3 *((volatile unsigned int*)(0x42C8088CUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A4 *((volatile unsigned int*)(0x42C80890UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A5 *((volatile unsigned int*)(0x42C80894UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A6 *((volatile unsigned int*)(0x42C80898UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A7 *((volatile unsigned int*)(0x42C8089CUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A8 *((volatile unsigned int*)(0x42C808A0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A9 *((volatile unsigned int*)(0x42C808A4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A10 *((volatile unsigned int*)(0x42C808A8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A11 *((volatile unsigned int*)(0x42C808ACUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A12 *((volatile unsigned int*)(0x42C808B0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A13 *((volatile unsigned int*)(0x42C808B4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A14 *((volatile unsigned int*)(0x42C808B8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A15 *((volatile unsigned int*)(0x42C808BCUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A16 *((volatile unsigned int*)(0x42C808C0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A17 *((volatile unsigned int*)(0x42C808C4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A18 *((volatile unsigned int*)(0x42C808C8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A19 *((volatile unsigned int*)(0x42C808CCUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A20 *((volatile unsigned int*)(0x42C808D0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A21 *((volatile unsigned int*)(0x42C808D4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A22 *((volatile unsigned int*)(0x42C808D8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A23 *((volatile unsigned int*)(0x42C808DCUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A24 *((volatile unsigned int*)(0x42C808E0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A25 *((volatile unsigned int*)(0x42C808E4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A26 *((volatile unsigned int*)(0x42C808E8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A27 *((volatile unsigned int*)(0x42C808ECUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A28 *((volatile unsigned int*)(0x42C808F0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A29 *((volatile unsigned int*)(0x42C808F4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A30 *((volatile unsigned int*)(0x42C808F8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A31 *((volatile unsigned int*)(0x42C808FCUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A32 *((volatile unsigned int*)(0x42C80900UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A33 *((volatile unsigned int*)(0x42C80904UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A34 *((volatile unsigned int*)(0x42C80908UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A35 *((volatile unsigned int*)(0x42C8090CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A36 *((volatile unsigned int*)(0x42C80910UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A37 *((volatile unsigned int*)(0x42C80914UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A38 *((volatile unsigned int*)(0x42C80918UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A39 *((volatile unsigned int*)(0x42C8091CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A40 *((volatile unsigned int*)(0x42C80920UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A41 *((volatile unsigned int*)(0x42C80924UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A42 *((volatile unsigned int*)(0x42C80928UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A43 *((volatile unsigned int*)(0x42C8092CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A44 *((volatile unsigned int*)(0x42C80930UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A45 *((volatile unsigned int*)(0x42C80934UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A46 *((volatile unsigned int*)(0x42C80938UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A47 *((volatile unsigned int*)(0x42C8093CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC0 *((volatile unsigned int*)(0x42C80960UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC1 *((volatile unsigned int*)(0x42C80964UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC2 *((volatile unsigned int*)(0x42C80968UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC3 *((volatile unsigned int*)(0x42C8096CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC4 *((volatile unsigned int*)(0x42C80970UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC5 *((volatile unsigned int*)(0x42C80974UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_SA *((volatile unsigned int*)(0x42C80978UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_AE *((volatile unsigned int*)(0x42C8097CUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A0 *((volatile unsigned int*)(0x42C80980UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A1 *((volatile unsigned int*)(0x42C80984UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A2 *((volatile unsigned int*)(0x42C80988UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A3 *((volatile unsigned int*)(0x42C8098CUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A4 *((volatile unsigned int*)(0x42C80990UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A5 *((volatile unsigned int*)(0x42C80994UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A6 *((volatile unsigned int*)(0x42C80998UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A7 *((volatile unsigned int*)(0x42C8099CUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A8 *((volatile unsigned int*)(0x42C809A0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A9 *((volatile unsigned int*)(0x42C809A4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A10 *((volatile unsigned int*)(0x42C809A8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A11 *((volatile unsigned int*)(0x42C809ACUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A12 *((volatile unsigned int*)(0x42C809B0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A13 *((volatile unsigned int*)(0x42C809B4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A14 *((volatile unsigned int*)(0x42C809B8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A15 *((volatile unsigned int*)(0x42C809BCUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A16 *((volatile unsigned int*)(0x42C809C0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A17 *((volatile unsigned int*)(0x42C809C4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A18 *((volatile unsigned int*)(0x42C809C8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A19 *((volatile unsigned int*)(0x42C809CCUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A20 *((volatile unsigned int*)(0x42C809D0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A21 *((volatile unsigned int*)(0x42C809D4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A22 *((volatile unsigned int*)(0x42C809D8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A23 *((volatile unsigned int*)(0x42C809DCUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A24 *((volatile unsigned int*)(0x42C809E0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A25 *((volatile unsigned int*)(0x42C809E4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A26 *((volatile unsigned int*)(0x42C809E8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A27 *((volatile unsigned int*)(0x42C809ECUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A28 *((volatile unsigned int*)(0x42C809F0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A29 *((volatile unsigned int*)(0x42C809F4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A30 *((volatile unsigned int*)(0x42C809F8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A31 *((volatile unsigned int*)(0x42C809FCUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A32 *((volatile unsigned int*)(0x42C80A00UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A33 *((volatile unsigned int*)(0x42C80A04UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A34 *((volatile unsigned int*)(0x42C80A08UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A35 *((volatile unsigned int*)(0x42C80A0CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A36 *((volatile unsigned int*)(0x42C80A10UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A37 *((volatile unsigned int*)(0x42C80A14UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A38 *((volatile unsigned int*)(0x42C80A18UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A39 *((volatile unsigned int*)(0x42C80A1CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A40 *((volatile unsigned int*)(0x42C80A20UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A41 *((volatile unsigned int*)(0x42C80A24UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A42 *((volatile unsigned int*)(0x42C80A28UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A43 *((volatile unsigned int*)(0x42C80A2CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A44 *((volatile unsigned int*)(0x42C80A30UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A45 *((volatile unsigned int*)(0x42C80A34UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A46 *((volatile unsigned int*)(0x42C80A38UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A47 *((volatile unsigned int*)(0x42C80A3CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC0 *((volatile unsigned int*)(0x42C80A60UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC1 *((volatile unsigned int*)(0x42C80A64UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC2 *((volatile unsigned int*)(0x42C80A68UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC3 *((volatile unsigned int*)(0x42C80A6CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC4 *((volatile unsigned int*)(0x42C80A70UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC5 *((volatile unsigned int*)(0x42C80A74UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_SA *((volatile unsigned int*)(0x42C80A78UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_AE *((volatile unsigned int*)(0x42C80A7CUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A0 *((volatile unsigned int*)(0x42C80A80UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A1 *((volatile unsigned int*)(0x42C80A84UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A2 *((volatile unsigned int*)(0x42C80A88UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A3 *((volatile unsigned int*)(0x42C80A8CUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A4 *((volatile unsigned int*)(0x42C80A90UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A5 *((volatile unsigned int*)(0x42C80A94UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A6 *((volatile unsigned int*)(0x42C80A98UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A7 *((volatile unsigned int*)(0x42C80A9CUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A8 *((volatile unsigned int*)(0x42C80AA0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A9 *((volatile unsigned int*)(0x42C80AA4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A10 *((volatile unsigned int*)(0x42C80AA8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A11 *((volatile unsigned int*)(0x42C80AACUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A12 *((volatile unsigned int*)(0x42C80AB0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A13 *((volatile unsigned int*)(0x42C80AB4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A14 *((volatile unsigned int*)(0x42C80AB8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A15 *((volatile unsigned int*)(0x42C80ABCUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A16 *((volatile unsigned int*)(0x42C80AC0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A17 *((volatile unsigned int*)(0x42C80AC4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A18 *((volatile unsigned int*)(0x42C80AC8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A19 *((volatile unsigned int*)(0x42C80ACCUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A20 *((volatile unsigned int*)(0x42C80AD0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A21 *((volatile unsigned int*)(0x42C80AD4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A22 *((volatile unsigned int*)(0x42C80AD8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A23 *((volatile unsigned int*)(0x42C80ADCUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A24 *((volatile unsigned int*)(0x42C80AE0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A25 *((volatile unsigned int*)(0x42C80AE4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A26 *((volatile unsigned int*)(0x42C80AE8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A27 *((volatile unsigned int*)(0x42C80AECUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A28 *((volatile unsigned int*)(0x42C80AF0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A29 *((volatile unsigned int*)(0x42C80AF4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A30 *((volatile unsigned int*)(0x42C80AF8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A31 *((volatile unsigned int*)(0x42C80AFCUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A32 *((volatile unsigned int*)(0x42C80B00UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A33 *((volatile unsigned int*)(0x42C80B04UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A34 *((volatile unsigned int*)(0x42C80B08UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A35 *((volatile unsigned int*)(0x42C80B0CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A36 *((volatile unsigned int*)(0x42C80B10UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A37 *((volatile unsigned int*)(0x42C80B14UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A38 *((volatile unsigned int*)(0x42C80B18UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A39 *((volatile unsigned int*)(0x42C80B1CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A40 *((volatile unsigned int*)(0x42C80B20UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A41 *((volatile unsigned int*)(0x42C80B24UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A42 *((volatile unsigned int*)(0x42C80B28UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A43 *((volatile unsigned int*)(0x42C80B2CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A44 *((volatile unsigned int*)(0x42C80B30UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A45 *((volatile unsigned int*)(0x42C80B34UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A46 *((volatile unsigned int*)(0x42C80B38UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A47 *((volatile unsigned int*)(0x42C80B3CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC0 *((volatile unsigned int*)(0x42C80B60UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC1 *((volatile unsigned int*)(0x42C80B64UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC2 *((volatile unsigned int*)(0x42C80B68UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC3 *((volatile unsigned int*)(0x42C80B6CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC4 *((volatile unsigned int*)(0x42C80B70UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC5 *((volatile unsigned int*)(0x42C80B74UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_SA *((volatile unsigned int*)(0x42C80B78UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_AE *((volatile unsigned int*)(0x42C80B7CUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A0 *((volatile unsigned int*)(0x42C80B80UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A1 *((volatile unsigned int*)(0x42C80B84UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A2 *((volatile unsigned int*)(0x42C80B88UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A3 *((volatile unsigned int*)(0x42C80B8CUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A4 *((volatile unsigned int*)(0x42C80B90UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A5 *((volatile unsigned int*)(0x42C80B94UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A6 *((volatile unsigned int*)(0x42C80B98UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A7 *((volatile unsigned int*)(0x42C80B9CUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A8 *((volatile unsigned int*)(0x42C80BA0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A9 *((volatile unsigned int*)(0x42C80BA4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A10 *((volatile unsigned int*)(0x42C80BA8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A11 *((volatile unsigned int*)(0x42C80BACUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A12 *((volatile unsigned int*)(0x42C80BB0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A13 *((volatile unsigned int*)(0x42C80BB4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A14 *((volatile unsigned int*)(0x42C80BB8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A15 *((volatile unsigned int*)(0x42C80BBCUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A16 *((volatile unsigned int*)(0x42C80BC0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A17 *((volatile unsigned int*)(0x42C80BC4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A18 *((volatile unsigned int*)(0x42C80BC8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A19 *((volatile unsigned int*)(0x42C80BCCUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A20 *((volatile unsigned int*)(0x42C80BD0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A21 *((volatile unsigned int*)(0x42C80BD4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A22 *((volatile unsigned int*)(0x42C80BD8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A23 *((volatile unsigned int*)(0x42C80BDCUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A24 *((volatile unsigned int*)(0x42C80BE0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A25 *((volatile unsigned int*)(0x42C80BE4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A26 *((volatile unsigned int*)(0x42C80BE8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A27 *((volatile unsigned int*)(0x42C80BECUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A28 *((volatile unsigned int*)(0x42C80BF0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A29 *((volatile unsigned int*)(0x42C80BF4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A30 *((volatile unsigned int*)(0x42C80BF8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A31 *((volatile unsigned int*)(0x42C80BFCUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A32 *((volatile unsigned int*)(0x42C80C00UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A33 *((volatile unsigned int*)(0x42C80C04UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A34 *((volatile unsigned int*)(0x42C80C08UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A35 *((volatile unsigned int*)(0x42C80C0CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A36 *((volatile unsigned int*)(0x42C80C10UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A37 *((volatile unsigned int*)(0x42C80C14UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A38 *((volatile unsigned int*)(0x42C80C18UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A39 *((volatile unsigned int*)(0x42C80C1CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A40 *((volatile unsigned int*)(0x42C80C20UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A41 *((volatile unsigned int*)(0x42C80C24UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A42 *((volatile unsigned int*)(0x42C80C28UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A43 *((volatile unsigned int*)(0x42C80C2CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A44 *((volatile unsigned int*)(0x42C80C30UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A45 *((volatile unsigned int*)(0x42C80C34UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A46 *((volatile unsigned int*)(0x42C80C38UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A47 *((volatile unsigned int*)(0x42C80C3CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC0 *((volatile unsigned int*)(0x42C80C60UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC1 *((volatile unsigned int*)(0x42C80C64UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC2 *((volatile unsigned int*)(0x42C80C68UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC3 *((volatile unsigned int*)(0x42C80C6CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC4 *((volatile unsigned int*)(0x42C80C70UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC5 *((volatile unsigned int*)(0x42C80C74UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_SA *((volatile unsigned int*)(0x42C80C78UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_AE *((volatile unsigned int*)(0x42C80C7CUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A0 *((volatile unsigned int*)(0x42C80C80UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A1 *((volatile unsigned int*)(0x42C80C84UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A2 *((volatile unsigned int*)(0x42C80C88UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A3 *((volatile unsigned int*)(0x42C80C8CUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A4 *((volatile unsigned int*)(0x42C80C90UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A5 *((volatile unsigned int*)(0x42C80C94UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A6 *((volatile unsigned int*)(0x42C80C98UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A7 *((volatile unsigned int*)(0x42C80C9CUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A8 *((volatile unsigned int*)(0x42C80CA0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A9 *((volatile unsigned int*)(0x42C80CA4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A10 *((volatile unsigned int*)(0x42C80CA8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A11 *((volatile unsigned int*)(0x42C80CACUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A12 *((volatile unsigned int*)(0x42C80CB0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A13 *((volatile unsigned int*)(0x42C80CB4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A14 *((volatile unsigned int*)(0x42C80CB8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A15 *((volatile unsigned int*)(0x42C80CBCUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A16 *((volatile unsigned int*)(0x42C80CC0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A17 *((volatile unsigned int*)(0x42C80CC4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A18 *((volatile unsigned int*)(0x42C80CC8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A19 *((volatile unsigned int*)(0x42C80CCCUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A20 *((volatile unsigned int*)(0x42C80CD0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A21 *((volatile unsigned int*)(0x42C80CD4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A22 *((volatile unsigned int*)(0x42C80CD8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A23 *((volatile unsigned int*)(0x42C80CDCUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A24 *((volatile unsigned int*)(0x42C80CE0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A25 *((volatile unsigned int*)(0x42C80CE4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A26 *((volatile unsigned int*)(0x42C80CE8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A27 *((volatile unsigned int*)(0x42C80CECUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A28 *((volatile unsigned int*)(0x42C80CF0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A29 *((volatile unsigned int*)(0x42C80CF4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A30 *((volatile unsigned int*)(0x42C80CF8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A31 *((volatile unsigned int*)(0x42C80CFCUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A32 *((volatile unsigned int*)(0x42C80D00UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A33 *((volatile unsigned int*)(0x42C80D04UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A34 *((volatile unsigned int*)(0x42C80D08UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A35 *((volatile unsigned int*)(0x42C80D0CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A36 *((volatile unsigned int*)(0x42C80D10UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A37 *((volatile unsigned int*)(0x42C80D14UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A38 *((volatile unsigned int*)(0x42C80D18UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A39 *((volatile unsigned int*)(0x42C80D1CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A40 *((volatile unsigned int*)(0x42C80D20UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A41 *((volatile unsigned int*)(0x42C80D24UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A42 *((volatile unsigned int*)(0x42C80D28UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A43 *((volatile unsigned int*)(0x42C80D2CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A44 *((volatile unsigned int*)(0x42C80D30UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A45 *((volatile unsigned int*)(0x42C80D34UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A46 *((volatile unsigned int*)(0x42C80D38UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A47 *((volatile unsigned int*)(0x42C80D3CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC0 *((volatile unsigned int*)(0x42C80D60UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC1 *((volatile unsigned int*)(0x42C80D64UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC2 *((volatile unsigned int*)(0x42C80D68UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC3 *((volatile unsigned int*)(0x42C80D6CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC4 *((volatile unsigned int*)(0x42C80D70UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC5 *((volatile unsigned int*)(0x42C80D74UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_SA *((volatile unsigned int*)(0x42C80D78UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_AE *((volatile unsigned int*)(0x42C80D7CUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A0 *((volatile unsigned int*)(0x42C80D80UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A1 *((volatile unsigned int*)(0x42C80D84UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A2 *((volatile unsigned int*)(0x42C80D88UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A3 *((volatile unsigned int*)(0x42C80D8CUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A4 *((volatile unsigned int*)(0x42C80D90UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A5 *((volatile unsigned int*)(0x42C80D94UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A6 *((volatile unsigned int*)(0x42C80D98UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A7 *((volatile unsigned int*)(0x42C80D9CUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A8 *((volatile unsigned int*)(0x42C80DA0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A9 *((volatile unsigned int*)(0x42C80DA4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A10 *((volatile unsigned int*)(0x42C80DA8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A11 *((volatile unsigned int*)(0x42C80DACUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A12 *((volatile unsigned int*)(0x42C80DB0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A13 *((volatile unsigned int*)(0x42C80DB4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A14 *((volatile unsigned int*)(0x42C80DB8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A15 *((volatile unsigned int*)(0x42C80DBCUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A16 *((volatile unsigned int*)(0x42C80DC0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A17 *((volatile unsigned int*)(0x42C80DC4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A18 *((volatile unsigned int*)(0x42C80DC8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A19 *((volatile unsigned int*)(0x42C80DCCUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A20 *((volatile unsigned int*)(0x42C80DD0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A21 *((volatile unsigned int*)(0x42C80DD4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A22 *((volatile unsigned int*)(0x42C80DD8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A23 *((volatile unsigned int*)(0x42C80DDCUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A24 *((volatile unsigned int*)(0x42C80DE0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A25 *((volatile unsigned int*)(0x42C80DE4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A26 *((volatile unsigned int*)(0x42C80DE8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A27 *((volatile unsigned int*)(0x42C80DECUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A28 *((volatile unsigned int*)(0x42C80DF0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A29 *((volatile unsigned int*)(0x42C80DF4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A30 *((volatile unsigned int*)(0x42C80DF8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A31 *((volatile unsigned int*)(0x42C80DFCUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A32 *((volatile unsigned int*)(0x42C80E00UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A33 *((volatile unsigned int*)(0x42C80E04UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A34 *((volatile unsigned int*)(0x42C80E08UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A35 *((volatile unsigned int*)(0x42C80E0CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A36 *((volatile unsigned int*)(0x42C80E10UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A37 *((volatile unsigned int*)(0x42C80E14UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A38 *((volatile unsigned int*)(0x42C80E18UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A39 *((volatile unsigned int*)(0x42C80E1CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A40 *((volatile unsigned int*)(0x42C80E20UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A41 *((volatile unsigned int*)(0x42C80E24UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A42 *((volatile unsigned int*)(0x42C80E28UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A43 *((volatile unsigned int*)(0x42C80E2CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A44 *((volatile unsigned int*)(0x42C80E30UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A45 *((volatile unsigned int*)(0x42C80E34UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A46 *((volatile unsigned int*)(0x42C80E38UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A47 *((volatile unsigned int*)(0x42C80E3CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC0 *((volatile unsigned int*)(0x42C80E60UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC1 *((volatile unsigned int*)(0x42C80E64UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC2 *((volatile unsigned int*)(0x42C80E68UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC3 *((volatile unsigned int*)(0x42C80E6CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC4 *((volatile unsigned int*)(0x42C80E70UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC5 *((volatile unsigned int*)(0x42C80E74UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_SA *((volatile unsigned int*)(0x42C80E78UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_AE *((volatile unsigned int*)(0x42C80E7CUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A0 *((volatile unsigned int*)(0x42C80E80UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A1 *((volatile unsigned int*)(0x42C80E84UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A2 *((volatile unsigned int*)(0x42C80E88UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A3 *((volatile unsigned int*)(0x42C80E8CUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A4 *((volatile unsigned int*)(0x42C80E90UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A5 *((volatile unsigned int*)(0x42C80E94UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A6 *((volatile unsigned int*)(0x42C80E98UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A7 *((volatile unsigned int*)(0x42C80E9CUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A8 *((volatile unsigned int*)(0x42C80EA0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A9 *((volatile unsigned int*)(0x42C80EA4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A10 *((volatile unsigned int*)(0x42C80EA8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A11 *((volatile unsigned int*)(0x42C80EACUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A12 *((volatile unsigned int*)(0x42C80EB0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A13 *((volatile unsigned int*)(0x42C80EB4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A14 *((volatile unsigned int*)(0x42C80EB8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A15 *((volatile unsigned int*)(0x42C80EBCUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A16 *((volatile unsigned int*)(0x42C80EC0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A17 *((volatile unsigned int*)(0x42C80EC4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A18 *((volatile unsigned int*)(0x42C80EC8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A19 *((volatile unsigned int*)(0x42C80ECCUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A20 *((volatile unsigned int*)(0x42C80ED0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A21 *((volatile unsigned int*)(0x42C80ED4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A22 *((volatile unsigned int*)(0x42C80ED8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A23 *((volatile unsigned int*)(0x42C80EDCUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A24 *((volatile unsigned int*)(0x42C80EE0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A25 *((volatile unsigned int*)(0x42C80EE4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A26 *((volatile unsigned int*)(0x42C80EE8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A27 *((volatile unsigned int*)(0x42C80EECUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A28 *((volatile unsigned int*)(0x42C80EF0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A29 *((volatile unsigned int*)(0x42C80EF4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A30 *((volatile unsigned int*)(0x42C80EF8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A31 *((volatile unsigned int*)(0x42C80EFCUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A32 *((volatile unsigned int*)(0x42C80F00UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A33 *((volatile unsigned int*)(0x42C80F04UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A34 *((volatile unsigned int*)(0x42C80F08UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A35 *((volatile unsigned int*)(0x42C80F0CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A36 *((volatile unsigned int*)(0x42C80F10UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A37 *((volatile unsigned int*)(0x42C80F14UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A38 *((volatile unsigned int*)(0x42C80F18UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A39 *((volatile unsigned int*)(0x42C80F1CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A40 *((volatile unsigned int*)(0x42C80F20UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A41 *((volatile unsigned int*)(0x42C80F24UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A42 *((volatile unsigned int*)(0x42C80F28UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A43 *((volatile unsigned int*)(0x42C80F2CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A44 *((volatile unsigned int*)(0x42C80F30UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A45 *((volatile unsigned int*)(0x42C80F34UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A46 *((volatile unsigned int*)(0x42C80F38UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A47 *((volatile unsigned int*)(0x42C80F3CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC0 *((volatile unsigned int*)(0x42C80F60UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC1 *((volatile unsigned int*)(0x42C80F64UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC2 *((volatile unsigned int*)(0x42C80F68UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC3 *((volatile unsigned int*)(0x42C80F6CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC4 *((volatile unsigned int*)(0x42C80F70UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC5 *((volatile unsigned int*)(0x42C80F74UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_SA *((volatile unsigned int*)(0x42C80F78UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_AE *((volatile unsigned int*)(0x42C80F7CUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A0 *((volatile unsigned int*)(0x42C80F80UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A1 *((volatile unsigned int*)(0x42C80F84UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A2 *((volatile unsigned int*)(0x42C80F88UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A3 *((volatile unsigned int*)(0x42C80F8CUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A4 *((volatile unsigned int*)(0x42C80F90UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A5 *((volatile unsigned int*)(0x42C80F94UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A6 *((volatile unsigned int*)(0x42C80F98UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A7 *((volatile unsigned int*)(0x42C80F9CUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A8 *((volatile unsigned int*)(0x42C80FA0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A9 *((volatile unsigned int*)(0x42C80FA4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A10 *((volatile unsigned int*)(0x42C80FA8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A11 *((volatile unsigned int*)(0x42C80FACUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A12 *((volatile unsigned int*)(0x42C80FB0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A13 *((volatile unsigned int*)(0x42C80FB4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A14 *((volatile unsigned int*)(0x42C80FB8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A15 *((volatile unsigned int*)(0x42C80FBCUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A16 *((volatile unsigned int*)(0x42C80FC0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A17 *((volatile unsigned int*)(0x42C80FC4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A18 *((volatile unsigned int*)(0x42C80FC8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A19 *((volatile unsigned int*)(0x42C80FCCUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A20 *((volatile unsigned int*)(0x42C80FD0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A21 *((volatile unsigned int*)(0x42C80FD4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A22 *((volatile unsigned int*)(0x42C80FD8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A23 *((volatile unsigned int*)(0x42C80FDCUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A24 *((volatile unsigned int*)(0x42C80FE0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A25 *((volatile unsigned int*)(0x42C80FE4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A26 *((volatile unsigned int*)(0x42C80FE8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A27 *((volatile unsigned int*)(0x42C80FECUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A28 *((volatile unsigned int*)(0x42C80FF0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A29 *((volatile unsigned int*)(0x42C80FF4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A30 *((volatile unsigned int*)(0x42C80FF8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A31 *((volatile unsigned int*)(0x42C80FFCUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A32 *((volatile unsigned int*)(0x42C81000UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A33 *((volatile unsigned int*)(0x42C81004UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A34 *((volatile unsigned int*)(0x42C81008UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A35 *((volatile unsigned int*)(0x42C8100CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A36 *((volatile unsigned int*)(0x42C81010UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A37 *((volatile unsigned int*)(0x42C81014UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A38 *((volatile unsigned int*)(0x42C81018UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A39 *((volatile unsigned int*)(0x42C8101CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A40 *((volatile unsigned int*)(0x42C81020UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A41 *((volatile unsigned int*)(0x42C81024UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A42 *((volatile unsigned int*)(0x42C81028UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A43 *((volatile unsigned int*)(0x42C8102CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A44 *((volatile unsigned int*)(0x42C81030UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A45 *((volatile unsigned int*)(0x42C81034UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A46 *((volatile unsigned int*)(0x42C81038UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A47 *((volatile unsigned int*)(0x42C8103CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC0 *((volatile unsigned int*)(0x42C81060UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC1 *((volatile unsigned int*)(0x42C81064UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC2 *((volatile unsigned int*)(0x42C81068UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC3 *((volatile unsigned int*)(0x42C8106CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC4 *((volatile unsigned int*)(0x42C81070UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC5 *((volatile unsigned int*)(0x42C81074UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_SA *((volatile unsigned int*)(0x42C81078UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_AE *((volatile unsigned int*)(0x42C8107CUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A0 *((volatile unsigned int*)(0x42C81080UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A1 *((volatile unsigned int*)(0x42C81084UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A2 *((volatile unsigned int*)(0x42C81088UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A3 *((volatile unsigned int*)(0x42C8108CUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A4 *((volatile unsigned int*)(0x42C81090UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A5 *((volatile unsigned int*)(0x42C81094UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A6 *((volatile unsigned int*)(0x42C81098UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A7 *((volatile unsigned int*)(0x42C8109CUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A8 *((volatile unsigned int*)(0x42C810A0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A9 *((volatile unsigned int*)(0x42C810A4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A10 *((volatile unsigned int*)(0x42C810A8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A11 *((volatile unsigned int*)(0x42C810ACUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A12 *((volatile unsigned int*)(0x42C810B0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A13 *((volatile unsigned int*)(0x42C810B4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A14 *((volatile unsigned int*)(0x42C810B8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A15 *((volatile unsigned int*)(0x42C810BCUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A16 *((volatile unsigned int*)(0x42C810C0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A17 *((volatile unsigned int*)(0x42C810C4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A18 *((volatile unsigned int*)(0x42C810C8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A19 *((volatile unsigned int*)(0x42C810CCUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A20 *((volatile unsigned int*)(0x42C810D0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A21 *((volatile unsigned int*)(0x42C810D4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A22 *((volatile unsigned int*)(0x42C810D8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A23 *((volatile unsigned int*)(0x42C810DCUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A24 *((volatile unsigned int*)(0x42C810E0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A25 *((volatile unsigned int*)(0x42C810E4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A26 *((volatile unsigned int*)(0x42C810E8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A27 *((volatile unsigned int*)(0x42C810ECUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A28 *((volatile unsigned int*)(0x42C810F0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A29 *((volatile unsigned int*)(0x42C810F4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A30 *((volatile unsigned int*)(0x42C810F8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A31 *((volatile unsigned int*)(0x42C810FCUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A32 *((volatile unsigned int*)(0x42C81100UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A33 *((volatile unsigned int*)(0x42C81104UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A34 *((volatile unsigned int*)(0x42C81108UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A35 *((volatile unsigned int*)(0x42C8110CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A36 *((volatile unsigned int*)(0x42C81110UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A37 *((volatile unsigned int*)(0x42C81114UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A38 *((volatile unsigned int*)(0x42C81118UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A39 *((volatile unsigned int*)(0x42C8111CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A40 *((volatile unsigned int*)(0x42C81120UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A41 *((volatile unsigned int*)(0x42C81124UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A42 *((volatile unsigned int*)(0x42C81128UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A43 *((volatile unsigned int*)(0x42C8112CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A44 *((volatile unsigned int*)(0x42C81130UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A45 *((volatile unsigned int*)(0x42C81134UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A46 *((volatile unsigned int*)(0x42C81138UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A47 *((volatile unsigned int*)(0x42C8113CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC0 *((volatile unsigned int*)(0x42C81160UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC1 *((volatile unsigned int*)(0x42C81164UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC2 *((volatile unsigned int*)(0x42C81168UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC3 *((volatile unsigned int*)(0x42C8116CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC4 *((volatile unsigned int*)(0x42C81170UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC5 *((volatile unsigned int*)(0x42C81174UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_SA *((volatile unsigned int*)(0x42C81178UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_AE *((volatile unsigned int*)(0x42C8117CUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A0 *((volatile unsigned int*)(0x42C81180UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A1 *((volatile unsigned int*)(0x42C81184UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A2 *((volatile unsigned int*)(0x42C81188UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A3 *((volatile unsigned int*)(0x42C8118CUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A4 *((volatile unsigned int*)(0x42C81190UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A5 *((volatile unsigned int*)(0x42C81194UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A6 *((volatile unsigned int*)(0x42C81198UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A7 *((volatile unsigned int*)(0x42C8119CUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A8 *((volatile unsigned int*)(0x42C811A0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A9 *((volatile unsigned int*)(0x42C811A4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A10 *((volatile unsigned int*)(0x42C811A8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A11 *((volatile unsigned int*)(0x42C811ACUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A12 *((volatile unsigned int*)(0x42C811B0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A13 *((volatile unsigned int*)(0x42C811B4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A14 *((volatile unsigned int*)(0x42C811B8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A15 *((volatile unsigned int*)(0x42C811BCUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A16 *((volatile unsigned int*)(0x42C811C0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A17 *((volatile unsigned int*)(0x42C811C4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A18 *((volatile unsigned int*)(0x42C811C8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A19 *((volatile unsigned int*)(0x42C811CCUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A20 *((volatile unsigned int*)(0x42C811D0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A21 *((volatile unsigned int*)(0x42C811D4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A22 *((volatile unsigned int*)(0x42C811D8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A23 *((volatile unsigned int*)(0x42C811DCUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A24 *((volatile unsigned int*)(0x42C811E0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A25 *((volatile unsigned int*)(0x42C811E4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A26 *((volatile unsigned int*)(0x42C811E8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A27 *((volatile unsigned int*)(0x42C811ECUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A28 *((volatile unsigned int*)(0x42C811F0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A29 *((volatile unsigned int*)(0x42C811F4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A30 *((volatile unsigned int*)(0x42C811F8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A31 *((volatile unsigned int*)(0x42C811FCUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A32 *((volatile unsigned int*)(0x42C81200UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A33 *((volatile unsigned int*)(0x42C81204UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A34 *((volatile unsigned int*)(0x42C81208UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A35 *((volatile unsigned int*)(0x42C8120CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A36 *((volatile unsigned int*)(0x42C81210UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A37 *((volatile unsigned int*)(0x42C81214UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A38 *((volatile unsigned int*)(0x42C81218UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A39 *((volatile unsigned int*)(0x42C8121CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A40 *((volatile unsigned int*)(0x42C81220UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A41 *((volatile unsigned int*)(0x42C81224UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A42 *((volatile unsigned int*)(0x42C81228UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A43 *((volatile unsigned int*)(0x42C8122CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A44 *((volatile unsigned int*)(0x42C81230UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A45 *((volatile unsigned int*)(0x42C81234UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A46 *((volatile unsigned int*)(0x42C81238UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A47 *((volatile unsigned int*)(0x42C8123CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC0 *((volatile unsigned int*)(0x42C81260UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC1 *((volatile unsigned int*)(0x42C81264UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC2 *((volatile unsigned int*)(0x42C81268UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC3 *((volatile unsigned int*)(0x42C8126CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC4 *((volatile unsigned int*)(0x42C81270UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC5 *((volatile unsigned int*)(0x42C81274UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_SA *((volatile unsigned int*)(0x42C81278UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_AE *((volatile unsigned int*)(0x42C8127CUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A0 *((volatile unsigned int*)(0x42C81280UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A1 *((volatile unsigned int*)(0x42C81284UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A2 *((volatile unsigned int*)(0x42C81288UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A3 *((volatile unsigned int*)(0x42C8128CUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A4 *((volatile unsigned int*)(0x42C81290UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A5 *((volatile unsigned int*)(0x42C81294UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A6 *((volatile unsigned int*)(0x42C81298UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A7 *((volatile unsigned int*)(0x42C8129CUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A8 *((volatile unsigned int*)(0x42C812A0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A9 *((volatile unsigned int*)(0x42C812A4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A10 *((volatile unsigned int*)(0x42C812A8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A11 *((volatile unsigned int*)(0x42C812ACUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A12 *((volatile unsigned int*)(0x42C812B0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A13 *((volatile unsigned int*)(0x42C812B4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A14 *((volatile unsigned int*)(0x42C812B8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A15 *((volatile unsigned int*)(0x42C812BCUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A16 *((volatile unsigned int*)(0x42C812C0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A17 *((volatile unsigned int*)(0x42C812C4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A18 *((volatile unsigned int*)(0x42C812C8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A19 *((volatile unsigned int*)(0x42C812CCUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A20 *((volatile unsigned int*)(0x42C812D0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A21 *((volatile unsigned int*)(0x42C812D4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A22 *((volatile unsigned int*)(0x42C812D8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A23 *((volatile unsigned int*)(0x42C812DCUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A24 *((volatile unsigned int*)(0x42C812E0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A25 *((volatile unsigned int*)(0x42C812E4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A26 *((volatile unsigned int*)(0x42C812E8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A27 *((volatile unsigned int*)(0x42C812ECUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A28 *((volatile unsigned int*)(0x42C812F0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A29 *((volatile unsigned int*)(0x42C812F4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A30 *((volatile unsigned int*)(0x42C812F8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A31 *((volatile unsigned int*)(0x42C812FCUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A32 *((volatile unsigned int*)(0x42C81300UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A33 *((volatile unsigned int*)(0x42C81304UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A34 *((volatile unsigned int*)(0x42C81308UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A35 *((volatile unsigned int*)(0x42C8130CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A36 *((volatile unsigned int*)(0x42C81310UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A37 *((volatile unsigned int*)(0x42C81314UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A38 *((volatile unsigned int*)(0x42C81318UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A39 *((volatile unsigned int*)(0x42C8131CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A40 *((volatile unsigned int*)(0x42C81320UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A41 *((volatile unsigned int*)(0x42C81324UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A42 *((volatile unsigned int*)(0x42C81328UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A43 *((volatile unsigned int*)(0x42C8132CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A44 *((volatile unsigned int*)(0x42C81330UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A45 *((volatile unsigned int*)(0x42C81334UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A46 *((volatile unsigned int*)(0x42C81338UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A47 *((volatile unsigned int*)(0x42C8133CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC0 *((volatile unsigned int*)(0x42C81360UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC1 *((volatile unsigned int*)(0x42C81364UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC2 *((volatile unsigned int*)(0x42C81368UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC3 *((volatile unsigned int*)(0x42C8136CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC4 *((volatile unsigned int*)(0x42C81370UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC5 *((volatile unsigned int*)(0x42C81374UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_SA *((volatile unsigned int*)(0x42C81378UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_AE *((volatile unsigned int*)(0x42C8137CUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A0 *((volatile unsigned int*)(0x42C81380UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A1 *((volatile unsigned int*)(0x42C81384UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A2 *((volatile unsigned int*)(0x42C81388UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A3 *((volatile unsigned int*)(0x42C8138CUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A4 *((volatile unsigned int*)(0x42C81390UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A5 *((volatile unsigned int*)(0x42C81394UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A6 *((volatile unsigned int*)(0x42C81398UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A7 *((volatile unsigned int*)(0x42C8139CUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A8 *((volatile unsigned int*)(0x42C813A0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A9 *((volatile unsigned int*)(0x42C813A4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A10 *((volatile unsigned int*)(0x42C813A8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A11 *((volatile unsigned int*)(0x42C813ACUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A12 *((volatile unsigned int*)(0x42C813B0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A13 *((volatile unsigned int*)(0x42C813B4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A14 *((volatile unsigned int*)(0x42C813B8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A15 *((volatile unsigned int*)(0x42C813BCUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A16 *((volatile unsigned int*)(0x42C813C0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A17 *((volatile unsigned int*)(0x42C813C4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A18 *((volatile unsigned int*)(0x42C813C8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A19 *((volatile unsigned int*)(0x42C813CCUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A20 *((volatile unsigned int*)(0x42C813D0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A21 *((volatile unsigned int*)(0x42C813D4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A22 *((volatile unsigned int*)(0x42C813D8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A23 *((volatile unsigned int*)(0x42C813DCUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A24 *((volatile unsigned int*)(0x42C813E0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A25 *((volatile unsigned int*)(0x42C813E4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A26 *((volatile unsigned int*)(0x42C813E8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A27 *((volatile unsigned int*)(0x42C813ECUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A28 *((volatile unsigned int*)(0x42C813F0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A29 *((volatile unsigned int*)(0x42C813F4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A30 *((volatile unsigned int*)(0x42C813F8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A31 *((volatile unsigned int*)(0x42C813FCUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A32 *((volatile unsigned int*)(0x42C81400UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A33 *((volatile unsigned int*)(0x42C81404UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A34 *((volatile unsigned int*)(0x42C81408UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A35 *((volatile unsigned int*)(0x42C8140CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A36 *((volatile unsigned int*)(0x42C81410UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A37 *((volatile unsigned int*)(0x42C81414UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A38 *((volatile unsigned int*)(0x42C81418UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A39 *((volatile unsigned int*)(0x42C8141CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A40 *((volatile unsigned int*)(0x42C81420UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A41 *((volatile unsigned int*)(0x42C81424UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A42 *((volatile unsigned int*)(0x42C81428UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A43 *((volatile unsigned int*)(0x42C8142CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A44 *((volatile unsigned int*)(0x42C81430UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A45 *((volatile unsigned int*)(0x42C81434UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A46 *((volatile unsigned int*)(0x42C81438UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A47 *((volatile unsigned int*)(0x42C8143CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC0 *((volatile unsigned int*)(0x42C81460UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC1 *((volatile unsigned int*)(0x42C81464UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC2 *((volatile unsigned int*)(0x42C81468UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC3 *((volatile unsigned int*)(0x42C8146CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC4 *((volatile unsigned int*)(0x42C81470UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC5 *((volatile unsigned int*)(0x42C81474UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_SA *((volatile unsigned int*)(0x42C81478UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_AE *((volatile unsigned int*)(0x42C8147CUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A0 *((volatile unsigned int*)(0x42C81480UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A1 *((volatile unsigned int*)(0x42C81484UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A2 *((volatile unsigned int*)(0x42C81488UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A3 *((volatile unsigned int*)(0x42C8148CUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A4 *((volatile unsigned int*)(0x42C81490UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A5 *((volatile unsigned int*)(0x42C81494UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A6 *((volatile unsigned int*)(0x42C81498UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A7 *((volatile unsigned int*)(0x42C8149CUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A8 *((volatile unsigned int*)(0x42C814A0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A9 *((volatile unsigned int*)(0x42C814A4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A10 *((volatile unsigned int*)(0x42C814A8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A11 *((volatile unsigned int*)(0x42C814ACUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A12 *((volatile unsigned int*)(0x42C814B0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A13 *((volatile unsigned int*)(0x42C814B4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A14 *((volatile unsigned int*)(0x42C814B8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A15 *((volatile unsigned int*)(0x42C814BCUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A16 *((volatile unsigned int*)(0x42C814C0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A17 *((volatile unsigned int*)(0x42C814C4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A18 *((volatile unsigned int*)(0x42C814C8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A19 *((volatile unsigned int*)(0x42C814CCUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A20 *((volatile unsigned int*)(0x42C814D0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A21 *((volatile unsigned int*)(0x42C814D4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A22 *((volatile unsigned int*)(0x42C814D8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A23 *((volatile unsigned int*)(0x42C814DCUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A24 *((volatile unsigned int*)(0x42C814E0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A25 *((volatile unsigned int*)(0x42C814E4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A26 *((volatile unsigned int*)(0x42C814E8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A27 *((volatile unsigned int*)(0x42C814ECUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A28 *((volatile unsigned int*)(0x42C814F0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A29 *((volatile unsigned int*)(0x42C814F4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A30 *((volatile unsigned int*)(0x42C814F8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A31 *((volatile unsigned int*)(0x42C814FCUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A32 *((volatile unsigned int*)(0x42C81500UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A33 *((volatile unsigned int*)(0x42C81504UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A34 *((volatile unsigned int*)(0x42C81508UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A35 *((volatile unsigned int*)(0x42C8150CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A36 *((volatile unsigned int*)(0x42C81510UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A37 *((volatile unsigned int*)(0x42C81514UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A38 *((volatile unsigned int*)(0x42C81518UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A39 *((volatile unsigned int*)(0x42C8151CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A40 *((volatile unsigned int*)(0x42C81520UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A41 *((volatile unsigned int*)(0x42C81524UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A42 *((volatile unsigned int*)(0x42C81528UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A43 *((volatile unsigned int*)(0x42C8152CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A44 *((volatile unsigned int*)(0x42C81530UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A45 *((volatile unsigned int*)(0x42C81534UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A46 *((volatile unsigned int*)(0x42C81538UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A47 *((volatile unsigned int*)(0x42C8153CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC0 *((volatile unsigned int*)(0x42C81560UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC1 *((volatile unsigned int*)(0x42C81564UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC2 *((volatile unsigned int*)(0x42C81568UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC3 *((volatile unsigned int*)(0x42C8156CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC4 *((volatile unsigned int*)(0x42C81570UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC5 *((volatile unsigned int*)(0x42C81574UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_SA *((volatile unsigned int*)(0x42C81578UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_AE *((volatile unsigned int*)(0x42C8157CUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A0 *((volatile unsigned int*)(0x42C81580UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A1 *((volatile unsigned int*)(0x42C81584UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A2 *((volatile unsigned int*)(0x42C81588UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A3 *((volatile unsigned int*)(0x42C8158CUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A4 *((volatile unsigned int*)(0x42C81590UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A5 *((volatile unsigned int*)(0x42C81594UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A6 *((volatile unsigned int*)(0x42C81598UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A7 *((volatile unsigned int*)(0x42C8159CUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A8 *((volatile unsigned int*)(0x42C815A0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A9 *((volatile unsigned int*)(0x42C815A4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A10 *((volatile unsigned int*)(0x42C815A8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A11 *((volatile unsigned int*)(0x42C815ACUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A12 *((volatile unsigned int*)(0x42C815B0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A13 *((volatile unsigned int*)(0x42C815B4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A14 *((volatile unsigned int*)(0x42C815B8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A15 *((volatile unsigned int*)(0x42C815BCUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A16 *((volatile unsigned int*)(0x42C815C0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A17 *((volatile unsigned int*)(0x42C815C4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A18 *((volatile unsigned int*)(0x42C815C8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A19 *((volatile unsigned int*)(0x42C815CCUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A20 *((volatile unsigned int*)(0x42C815D0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A21 *((volatile unsigned int*)(0x42C815D4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A22 *((volatile unsigned int*)(0x42C815D8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A23 *((volatile unsigned int*)(0x42C815DCUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A24 *((volatile unsigned int*)(0x42C815E0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A25 *((volatile unsigned int*)(0x42C815E4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A26 *((volatile unsigned int*)(0x42C815E8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A27 *((volatile unsigned int*)(0x42C815ECUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A28 *((volatile unsigned int*)(0x42C815F0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A29 *((volatile unsigned int*)(0x42C815F4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A30 *((volatile unsigned int*)(0x42C815F8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A31 *((volatile unsigned int*)(0x42C815FCUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A32 *((volatile unsigned int*)(0x42C81600UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A33 *((volatile unsigned int*)(0x42C81604UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A34 *((volatile unsigned int*)(0x42C81608UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A35 *((volatile unsigned int*)(0x42C8160CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A36 *((volatile unsigned int*)(0x42C81610UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A37 *((volatile unsigned int*)(0x42C81614UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A38 *((volatile unsigned int*)(0x42C81618UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A39 *((volatile unsigned int*)(0x42C8161CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A40 *((volatile unsigned int*)(0x42C81620UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A41 *((volatile unsigned int*)(0x42C81624UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A42 *((volatile unsigned int*)(0x42C81628UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A43 *((volatile unsigned int*)(0x42C8162CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A44 *((volatile unsigned int*)(0x42C81630UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A45 *((volatile unsigned int*)(0x42C81634UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A46 *((volatile unsigned int*)(0x42C81638UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A47 *((volatile unsigned int*)(0x42C8163CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC0 *((volatile unsigned int*)(0x42C81660UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC1 *((volatile unsigned int*)(0x42C81664UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC2 *((volatile unsigned int*)(0x42C81668UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC3 *((volatile unsigned int*)(0x42C8166CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC4 *((volatile unsigned int*)(0x42C81670UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC5 *((volatile unsigned int*)(0x42C81674UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_SA *((volatile unsigned int*)(0x42C81678UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_AE *((volatile unsigned int*)(0x42C8167CUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A0 *((volatile unsigned int*)(0x42C81680UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A1 *((volatile unsigned int*)(0x42C81684UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A2 *((volatile unsigned int*)(0x42C81688UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A3 *((volatile unsigned int*)(0x42C8168CUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A4 *((volatile unsigned int*)(0x42C81690UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A5 *((volatile unsigned int*)(0x42C81694UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A6 *((volatile unsigned int*)(0x42C81698UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A7 *((volatile unsigned int*)(0x42C8169CUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A8 *((volatile unsigned int*)(0x42C816A0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A9 *((volatile unsigned int*)(0x42C816A4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A10 *((volatile unsigned int*)(0x42C816A8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A11 *((volatile unsigned int*)(0x42C816ACUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A12 *((volatile unsigned int*)(0x42C816B0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A13 *((volatile unsigned int*)(0x42C816B4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A14 *((volatile unsigned int*)(0x42C816B8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A15 *((volatile unsigned int*)(0x42C816BCUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A16 *((volatile unsigned int*)(0x42C816C0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A17 *((volatile unsigned int*)(0x42C816C4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A18 *((volatile unsigned int*)(0x42C816C8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A19 *((volatile unsigned int*)(0x42C816CCUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A20 *((volatile unsigned int*)(0x42C816D0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A21 *((volatile unsigned int*)(0x42C816D4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A22 *((volatile unsigned int*)(0x42C816D8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A23 *((volatile unsigned int*)(0x42C816DCUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A24 *((volatile unsigned int*)(0x42C816E0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A25 *((volatile unsigned int*)(0x42C816E4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A26 *((volatile unsigned int*)(0x42C816E8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A27 *((volatile unsigned int*)(0x42C816ECUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A28 *((volatile unsigned int*)(0x42C816F0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A29 *((volatile unsigned int*)(0x42C816F4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A30 *((volatile unsigned int*)(0x42C816F8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A31 *((volatile unsigned int*)(0x42C816FCUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A32 *((volatile unsigned int*)(0x42C81700UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A33 *((volatile unsigned int*)(0x42C81704UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A34 *((volatile unsigned int*)(0x42C81708UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A35 *((volatile unsigned int*)(0x42C8170CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A36 *((volatile unsigned int*)(0x42C81710UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A37 *((volatile unsigned int*)(0x42C81714UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A38 *((volatile unsigned int*)(0x42C81718UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A39 *((volatile unsigned int*)(0x42C8171CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A40 *((volatile unsigned int*)(0x42C81720UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A41 *((volatile unsigned int*)(0x42C81724UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A42 *((volatile unsigned int*)(0x42C81728UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A43 *((volatile unsigned int*)(0x42C8172CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A44 *((volatile unsigned int*)(0x42C81730UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A45 *((volatile unsigned int*)(0x42C81734UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A46 *((volatile unsigned int*)(0x42C81738UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A47 *((volatile unsigned int*)(0x42C8173CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC0 *((volatile unsigned int*)(0x42C81760UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC1 *((volatile unsigned int*)(0x42C81764UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC2 *((volatile unsigned int*)(0x42C81768UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC3 *((volatile unsigned int*)(0x42C8176CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC4 *((volatile unsigned int*)(0x42C81770UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC5 *((volatile unsigned int*)(0x42C81774UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_SA *((volatile unsigned int*)(0x42C81778UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_AE *((volatile unsigned int*)(0x42C8177CUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A0 *((volatile unsigned int*)(0x42C81780UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A1 *((volatile unsigned int*)(0x42C81784UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A2 *((volatile unsigned int*)(0x42C81788UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A3 *((volatile unsigned int*)(0x42C8178CUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A4 *((volatile unsigned int*)(0x42C81790UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A5 *((volatile unsigned int*)(0x42C81794UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A6 *((volatile unsigned int*)(0x42C81798UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A7 *((volatile unsigned int*)(0x42C8179CUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A8 *((volatile unsigned int*)(0x42C817A0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A9 *((volatile unsigned int*)(0x42C817A4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A10 *((volatile unsigned int*)(0x42C817A8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A11 *((volatile unsigned int*)(0x42C817ACUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A12 *((volatile unsigned int*)(0x42C817B0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A13 *((volatile unsigned int*)(0x42C817B4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A14 *((volatile unsigned int*)(0x42C817B8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A15 *((volatile unsigned int*)(0x42C817BCUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A16 *((volatile unsigned int*)(0x42C817C0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A17 *((volatile unsigned int*)(0x42C817C4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A18 *((volatile unsigned int*)(0x42C817C8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A19 *((volatile unsigned int*)(0x42C817CCUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A20 *((volatile unsigned int*)(0x42C817D0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A21 *((volatile unsigned int*)(0x42C817D4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A22 *((volatile unsigned int*)(0x42C817D8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A23 *((volatile unsigned int*)(0x42C817DCUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A24 *((volatile unsigned int*)(0x42C817E0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A25 *((volatile unsigned int*)(0x42C817E4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A26 *((volatile unsigned int*)(0x42C817E8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A27 *((volatile unsigned int*)(0x42C817ECUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A28 *((volatile unsigned int*)(0x42C817F0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A29 *((volatile unsigned int*)(0x42C817F4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A30 *((volatile unsigned int*)(0x42C817F8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A31 *((volatile unsigned int*)(0x42C817FCUL)) -#define bFM3_ETHERNET_MAC0_RGSR_LM *((volatile unsigned int*)(0x42C81B00UL)) -#define bFM3_ETHERNET_MAC0_RGSR_LSP0 *((volatile unsigned int*)(0x42C81B04UL)) -#define bFM3_ETHERNET_MAC0_RGSR_LSP1 *((volatile unsigned int*)(0x42C81B08UL)) -#define bFM3_ETHERNET_MAC0_RGSR_LS *((volatile unsigned int*)(0x42C81B0CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSE *((volatile unsigned int*)(0x42C8E000UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TFCU *((volatile unsigned int*)(0x42C8E004UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSI *((volatile unsigned int*)(0x42C8E008UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSU *((volatile unsigned int*)(0x42C8E00CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TITE *((volatile unsigned int*)(0x42C8E010UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TARU *((volatile unsigned int*)(0x42C8E014UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSEA *((volatile unsigned int*)(0x42C8E020UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSDB *((volatile unsigned int*)(0x42C8E024UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSV2E *((volatile unsigned int*)(0x42C8E028UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TETSP *((volatile unsigned int*)(0x42C8E02CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSIP6E *((volatile unsigned int*)(0x42C8E030UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSIP4E *((volatile unsigned int*)(0x42C8E034UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TETSEM *((volatile unsigned int*)(0x42C8E038UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSMRM *((volatile unsigned int*)(0x42C8E03CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSPS0 *((volatile unsigned int*)(0x42C8E040UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSPS1 *((volatile unsigned int*)(0x42C8E044UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSENMF *((volatile unsigned int*)(0x42C8E048UL)) -#define bFM3_ETHERNET_MAC0_TSCR_ATSFC *((volatile unsigned int*)(0x42C8E060UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC0 *((volatile unsigned int*)(0x42C8E080UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC1 *((volatile unsigned int*)(0x42C8E084UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC2 *((volatile unsigned int*)(0x42C8E088UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC3 *((volatile unsigned int*)(0x42C8E08CUL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC4 *((volatile unsigned int*)(0x42C8E090UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC5 *((volatile unsigned int*)(0x42C8E094UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC6 *((volatile unsigned int*)(0x42C8E098UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC7 *((volatile unsigned int*)(0x42C8E09CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS0 *((volatile unsigned int*)(0x42C8E100UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS1 *((volatile unsigned int*)(0x42C8E104UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS2 *((volatile unsigned int*)(0x42C8E108UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS3 *((volatile unsigned int*)(0x42C8E10CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS4 *((volatile unsigned int*)(0x42C8E110UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS5 *((volatile unsigned int*)(0x42C8E114UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS6 *((volatile unsigned int*)(0x42C8E118UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS7 *((volatile unsigned int*)(0x42C8E11CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS8 *((volatile unsigned int*)(0x42C8E120UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS9 *((volatile unsigned int*)(0x42C8E124UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS10 *((volatile unsigned int*)(0x42C8E128UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS11 *((volatile unsigned int*)(0x42C8E12CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS12 *((volatile unsigned int*)(0x42C8E130UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS13 *((volatile unsigned int*)(0x42C8E134UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS14 *((volatile unsigned int*)(0x42C8E138UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS15 *((volatile unsigned int*)(0x42C8E13CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS16 *((volatile unsigned int*)(0x42C8E140UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS17 *((volatile unsigned int*)(0x42C8E144UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS18 *((volatile unsigned int*)(0x42C8E148UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS19 *((volatile unsigned int*)(0x42C8E14CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS20 *((volatile unsigned int*)(0x42C8E150UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS21 *((volatile unsigned int*)(0x42C8E154UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS22 *((volatile unsigned int*)(0x42C8E158UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS23 *((volatile unsigned int*)(0x42C8E15CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS24 *((volatile unsigned int*)(0x42C8E160UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS25 *((volatile unsigned int*)(0x42C8E164UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS26 *((volatile unsigned int*)(0x42C8E168UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS27 *((volatile unsigned int*)(0x42C8E16CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS28 *((volatile unsigned int*)(0x42C8E170UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS29 *((volatile unsigned int*)(0x42C8E174UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS30 *((volatile unsigned int*)(0x42C8E178UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS31 *((volatile unsigned int*)(0x42C8E17CUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS0 *((volatile unsigned int*)(0x42C8E080UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS1 *((volatile unsigned int*)(0x42C8E084UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS2 *((volatile unsigned int*)(0x42C8E088UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS3 *((volatile unsigned int*)(0x42C8E08CUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS4 *((volatile unsigned int*)(0x42C8E090UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS5 *((volatile unsigned int*)(0x42C8E094UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS6 *((volatile unsigned int*)(0x42C8E098UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS7 *((volatile unsigned int*)(0x42C8E09CUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS8 *((volatile unsigned int*)(0x42C8E0A0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS9 *((volatile unsigned int*)(0x42C8E0A4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS10 *((volatile unsigned int*)(0x42C8E0A8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS11 *((volatile unsigned int*)(0x42C8E0ACUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS12 *((volatile unsigned int*)(0x42C8E0B0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS13 *((volatile unsigned int*)(0x42C8E0B4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS14 *((volatile unsigned int*)(0x42C8E0B8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS15 *((volatile unsigned int*)(0x42C8E0BCUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS16 *((volatile unsigned int*)(0x42C8E0C0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS17 *((volatile unsigned int*)(0x42C8E0C4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS18 *((volatile unsigned int*)(0x42C8E0C8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS19 *((volatile unsigned int*)(0x42C8E0CCUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS20 *((volatile unsigned int*)(0x42C8E0D0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS21 *((volatile unsigned int*)(0x42C8E0D4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS22 *((volatile unsigned int*)(0x42C8E0D8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS23 *((volatile unsigned int*)(0x42C8E0DCUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS24 *((volatile unsigned int*)(0x42C8E0E0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS25 *((volatile unsigned int*)(0x42C8E0E4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS26 *((volatile unsigned int*)(0x42C8E0E8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS27 *((volatile unsigned int*)(0x42C8E0ECUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS28 *((volatile unsigned int*)(0x42C8E0F0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS29 *((volatile unsigned int*)(0x42C8E0F4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS30 *((volatile unsigned int*)(0x42C8E0F8UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS0 *((volatile unsigned int*)(0x42C8E200UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS1 *((volatile unsigned int*)(0x42C8E204UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS2 *((volatile unsigned int*)(0x42C8E208UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS3 *((volatile unsigned int*)(0x42C8E20CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS4 *((volatile unsigned int*)(0x42C8E210UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS5 *((volatile unsigned int*)(0x42C8E214UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS6 *((volatile unsigned int*)(0x42C8E218UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS7 *((volatile unsigned int*)(0x42C8E21CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS8 *((volatile unsigned int*)(0x42C8E220UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS9 *((volatile unsigned int*)(0x42C8E224UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS10 *((volatile unsigned int*)(0x42C8E228UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS11 *((volatile unsigned int*)(0x42C8E22CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS12 *((volatile unsigned int*)(0x42C8E230UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS13 *((volatile unsigned int*)(0x42C8E234UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS14 *((volatile unsigned int*)(0x42C8E238UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS15 *((volatile unsigned int*)(0x42C8E23CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS16 *((volatile unsigned int*)(0x42C8E240UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS17 *((volatile unsigned int*)(0x42C8E244UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS18 *((volatile unsigned int*)(0x42C8E248UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS19 *((volatile unsigned int*)(0x42C8E24CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS20 *((volatile unsigned int*)(0x42C8E250UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS21 *((volatile unsigned int*)(0x42C8E254UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS22 *((volatile unsigned int*)(0x42C8E258UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS23 *((volatile unsigned int*)(0x42C8E25CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS24 *((volatile unsigned int*)(0x42C8E260UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS25 *((volatile unsigned int*)(0x42C8E264UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS26 *((volatile unsigned int*)(0x42C8E268UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS27 *((volatile unsigned int*)(0x42C8E26CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS28 *((volatile unsigned int*)(0x42C8E270UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS29 *((volatile unsigned int*)(0x42C8E274UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS30 *((volatile unsigned int*)(0x42C8E278UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS31 *((volatile unsigned int*)(0x42C8E27CUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS0 *((volatile unsigned int*)(0x42C8E280UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS1 *((volatile unsigned int*)(0x42C8E284UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS2 *((volatile unsigned int*)(0x42C8E288UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS3 *((volatile unsigned int*)(0x42C8E28CUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS4 *((volatile unsigned int*)(0x42C8E290UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS5 *((volatile unsigned int*)(0x42C8E294UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS6 *((volatile unsigned int*)(0x42C8E298UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS7 *((volatile unsigned int*)(0x42C8E29CUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS8 *((volatile unsigned int*)(0x42C8E2A0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS9 *((volatile unsigned int*)(0x42C8E2A4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS10 *((volatile unsigned int*)(0x42C8E2A8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS11 *((volatile unsigned int*)(0x42C8E2ACUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS12 *((volatile unsigned int*)(0x42C8E2B0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS13 *((volatile unsigned int*)(0x42C8E2B4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS14 *((volatile unsigned int*)(0x42C8E2B8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS15 *((volatile unsigned int*)(0x42C8E2BCUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS16 *((volatile unsigned int*)(0x42C8E2C0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS17 *((volatile unsigned int*)(0x42C8E2C4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS18 *((volatile unsigned int*)(0x42C8E2C8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS19 *((volatile unsigned int*)(0x42C8E2CCUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS20 *((volatile unsigned int*)(0x42C8E2D0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS21 *((volatile unsigned int*)(0x42C8E2D4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS22 *((volatile unsigned int*)(0x42C8E2D8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS23 *((volatile unsigned int*)(0x42C8E2DCUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS24 *((volatile unsigned int*)(0x42C8E2E0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS25 *((volatile unsigned int*)(0x42C8E2E4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS26 *((volatile unsigned int*)(0x42C8E2E8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS27 *((volatile unsigned int*)(0x42C8E2ECUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS28 *((volatile unsigned int*)(0x42C8E2F0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS29 *((volatile unsigned int*)(0x42C8E2F4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS30 *((volatile unsigned int*)(0x42C8E2F8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_ADDSUB *((volatile unsigned int*)(0x42C8E2FCUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR0 *((volatile unsigned int*)(0x42C8E300UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR1 *((volatile unsigned int*)(0x42C8E304UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR2 *((volatile unsigned int*)(0x42C8E308UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR3 *((volatile unsigned int*)(0x42C8E30CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR4 *((volatile unsigned int*)(0x42C8E310UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR5 *((volatile unsigned int*)(0x42C8E314UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR6 *((volatile unsigned int*)(0x42C8E318UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR7 *((volatile unsigned int*)(0x42C8E31CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR8 *((volatile unsigned int*)(0x42C8E320UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR9 *((volatile unsigned int*)(0x42C8E324UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR10 *((volatile unsigned int*)(0x42C8E328UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR11 *((volatile unsigned int*)(0x42C8E32CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR12 *((volatile unsigned int*)(0x42C8E330UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR13 *((volatile unsigned int*)(0x42C8E334UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR14 *((volatile unsigned int*)(0x42C8E338UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR15 *((volatile unsigned int*)(0x42C8E33CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR16 *((volatile unsigned int*)(0x42C8E340UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR17 *((volatile unsigned int*)(0x42C8E344UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR18 *((volatile unsigned int*)(0x42C8E348UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR19 *((volatile unsigned int*)(0x42C8E34CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR20 *((volatile unsigned int*)(0x42C8E350UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR21 *((volatile unsigned int*)(0x42C8E354UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR22 *((volatile unsigned int*)(0x42C8E358UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR23 *((volatile unsigned int*)(0x42C8E35CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR24 *((volatile unsigned int*)(0x42C8E360UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR25 *((volatile unsigned int*)(0x42C8E364UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR26 *((volatile unsigned int*)(0x42C8E368UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR27 *((volatile unsigned int*)(0x42C8E36CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR28 *((volatile unsigned int*)(0x42C8E370UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR29 *((volatile unsigned int*)(0x42C8E374UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR30 *((volatile unsigned int*)(0x42C8E378UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR31 *((volatile unsigned int*)(0x42C8E37CUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR0 *((volatile unsigned int*)(0x42C8E380UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR1 *((volatile unsigned int*)(0x42C8E384UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR2 *((volatile unsigned int*)(0x42C8E388UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR3 *((volatile unsigned int*)(0x42C8E38CUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR4 *((volatile unsigned int*)(0x42C8E390UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR5 *((volatile unsigned int*)(0x42C8E394UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR6 *((volatile unsigned int*)(0x42C8E398UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR7 *((volatile unsigned int*)(0x42C8E39CUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR8 *((volatile unsigned int*)(0x42C8E3A0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR9 *((volatile unsigned int*)(0x42C8E3A4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR10 *((volatile unsigned int*)(0x42C8E3A8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR11 *((volatile unsigned int*)(0x42C8E3ACUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR12 *((volatile unsigned int*)(0x42C8E3B0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR13 *((volatile unsigned int*)(0x42C8E3B4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR14 *((volatile unsigned int*)(0x42C8E3B8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR15 *((volatile unsigned int*)(0x42C8E3BCUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR16 *((volatile unsigned int*)(0x42C8E3C0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR17 *((volatile unsigned int*)(0x42C8E3C4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR18 *((volatile unsigned int*)(0x42C8E3C8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR19 *((volatile unsigned int*)(0x42C8E3CCUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR20 *((volatile unsigned int*)(0x42C8E3D0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR21 *((volatile unsigned int*)(0x42C8E3D4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR22 *((volatile unsigned int*)(0x42C8E3D8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR23 *((volatile unsigned int*)(0x42C8E3DCUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR24 *((volatile unsigned int*)(0x42C8E3E0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR25 *((volatile unsigned int*)(0x42C8E3E4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR26 *((volatile unsigned int*)(0x42C8E3E8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR27 *((volatile unsigned int*)(0x42C8E3ECUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR28 *((volatile unsigned int*)(0x42C8E3F0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR29 *((volatile unsigned int*)(0x42C8E3F4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR30 *((volatile unsigned int*)(0x42C8E3F8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR31 *((volatile unsigned int*)(0x42C8E3FCUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR0 *((volatile unsigned int*)(0x42C8E400UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR1 *((volatile unsigned int*)(0x42C8E404UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR2 *((volatile unsigned int*)(0x42C8E408UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR3 *((volatile unsigned int*)(0x42C8E40CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR4 *((volatile unsigned int*)(0x42C8E410UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR5 *((volatile unsigned int*)(0x42C8E414UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR6 *((volatile unsigned int*)(0x42C8E418UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR7 *((volatile unsigned int*)(0x42C8E41CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR8 *((volatile unsigned int*)(0x42C8E420UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR9 *((volatile unsigned int*)(0x42C8E424UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR10 *((volatile unsigned int*)(0x42C8E428UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR11 *((volatile unsigned int*)(0x42C8E42CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR12 *((volatile unsigned int*)(0x42C8E430UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR13 *((volatile unsigned int*)(0x42C8E434UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR14 *((volatile unsigned int*)(0x42C8E438UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR15 *((volatile unsigned int*)(0x42C8E43CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR16 *((volatile unsigned int*)(0x42C8E440UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR17 *((volatile unsigned int*)(0x42C8E444UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR18 *((volatile unsigned int*)(0x42C8E448UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR19 *((volatile unsigned int*)(0x42C8E44CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR20 *((volatile unsigned int*)(0x42C8E450UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR21 *((volatile unsigned int*)(0x42C8E454UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR22 *((volatile unsigned int*)(0x42C8E458UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR23 *((volatile unsigned int*)(0x42C8E45CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR24 *((volatile unsigned int*)(0x42C8E460UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR25 *((volatile unsigned int*)(0x42C8E464UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR26 *((volatile unsigned int*)(0x42C8E468UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR27 *((volatile unsigned int*)(0x42C8E46CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR28 *((volatile unsigned int*)(0x42C8E470UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR29 *((volatile unsigned int*)(0x42C8E474UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR30 *((volatile unsigned int*)(0x42C8E478UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42C8E480UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42C8E484UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42C8E488UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42C8E48CUL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42C8E490UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42C8E494UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42C8E498UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42C8E49CUL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42C8E4A0UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42C8E4A4UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42C8E4A8UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42C8E4ACUL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42C8E4B0UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42C8E4B4UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42C8E4B8UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42C8E4BCUL)) -#define bFM3_ETHERNET_MAC0_TSR_TSSOVF *((volatile unsigned int*)(0x42C8E500UL)) -#define bFM3_ETHERNET_MAC0_TSR_TSTART *((volatile unsigned int*)(0x42C8E504UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSTS *((volatile unsigned int*)(0x42C8E508UL)) -#define bFM3_ETHERNET_MAC0_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSSTM *((volatile unsigned int*)(0x42C8E560UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSNS0 *((volatile unsigned int*)(0x42C8E564UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSNS1 *((volatile unsigned int*)(0x42C8E568UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSNS2 *((volatile unsigned int*)(0x42C8E56CUL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42C8E580UL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42C8E584UL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42C8E588UL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42C8E58CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN0 *((volatile unsigned int*)(0x42C8E600UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN1 *((volatile unsigned int*)(0x42C8E604UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN2 *((volatile unsigned int*)(0x42C8E608UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN3 *((volatile unsigned int*)(0x42C8E60CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN4 *((volatile unsigned int*)(0x42C8E610UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN5 *((volatile unsigned int*)(0x42C8E614UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN6 *((volatile unsigned int*)(0x42C8E618UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN7 *((volatile unsigned int*)(0x42C8E61CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN8 *((volatile unsigned int*)(0x42C8E620UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN9 *((volatile unsigned int*)(0x42C8E624UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN10 *((volatile unsigned int*)(0x42C8E628UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN11 *((volatile unsigned int*)(0x42C8E62CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN12 *((volatile unsigned int*)(0x42C8E630UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN13 *((volatile unsigned int*)(0x42C8E634UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN14 *((volatile unsigned int*)(0x42C8E638UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN15 *((volatile unsigned int*)(0x42C8E63CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN16 *((volatile unsigned int*)(0x42C8E640UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN17 *((volatile unsigned int*)(0x42C8E644UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN18 *((volatile unsigned int*)(0x42C8E648UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN19 *((volatile unsigned int*)(0x42C8E64CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN20 *((volatile unsigned int*)(0x42C8E650UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN21 *((volatile unsigned int*)(0x42C8E654UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN22 *((volatile unsigned int*)(0x42C8E658UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN23 *((volatile unsigned int*)(0x42C8E65CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN24 *((volatile unsigned int*)(0x42C8E660UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN25 *((volatile unsigned int*)(0x42C8E664UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN26 *((volatile unsigned int*)(0x42C8E668UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN27 *((volatile unsigned int*)(0x42C8E66CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN28 *((volatile unsigned int*)(0x42C8E670UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN29 *((volatile unsigned int*)(0x42C8E674UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN30 *((volatile unsigned int*)(0x42C8E678UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS0 *((volatile unsigned int*)(0x42C8E680UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS1 *((volatile unsigned int*)(0x42C8E684UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS2 *((volatile unsigned int*)(0x42C8E688UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS3 *((volatile unsigned int*)(0x42C8E68CUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS4 *((volatile unsigned int*)(0x42C8E690UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS5 *((volatile unsigned int*)(0x42C8E694UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS6 *((volatile unsigned int*)(0x42C8E698UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS7 *((volatile unsigned int*)(0x42C8E69CUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS8 *((volatile unsigned int*)(0x42C8E6A0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS9 *((volatile unsigned int*)(0x42C8E6A4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS10 *((volatile unsigned int*)(0x42C8E6A8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS11 *((volatile unsigned int*)(0x42C8E6ACUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS12 *((volatile unsigned int*)(0x42C8E6B0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS13 *((volatile unsigned int*)(0x42C8E6B4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS14 *((volatile unsigned int*)(0x42C8E6B8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS15 *((volatile unsigned int*)(0x42C8E6BCUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS16 *((volatile unsigned int*)(0x42C8E6C0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS17 *((volatile unsigned int*)(0x42C8E6C4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS18 *((volatile unsigned int*)(0x42C8E6C8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS19 *((volatile unsigned int*)(0x42C8E6CCUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS20 *((volatile unsigned int*)(0x42C8E6D0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS21 *((volatile unsigned int*)(0x42C8E6D4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS22 *((volatile unsigned int*)(0x42C8E6D8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS23 *((volatile unsigned int*)(0x42C8E6DCUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS24 *((volatile unsigned int*)(0x42C8E6E0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS25 *((volatile unsigned int*)(0x42C8E6E4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS26 *((volatile unsigned int*)(0x42C8E6E8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS27 *((volatile unsigned int*)(0x42C8E6ECUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS28 *((volatile unsigned int*)(0x42C8E6F0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS29 *((volatile unsigned int*)(0x42C8E6F4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS30 *((volatile unsigned int*)(0x42C8E6F8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS31 *((volatile unsigned int*)(0x42C8E6FCUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A32 *((volatile unsigned int*)(0x42C90000UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A33 *((volatile unsigned int*)(0x42C90004UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A34 *((volatile unsigned int*)(0x42C90008UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A35 *((volatile unsigned int*)(0x42C9000CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A36 *((volatile unsigned int*)(0x42C90010UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A37 *((volatile unsigned int*)(0x42C90014UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A38 *((volatile unsigned int*)(0x42C90018UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A39 *((volatile unsigned int*)(0x42C9001CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A40 *((volatile unsigned int*)(0x42C90020UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A41 *((volatile unsigned int*)(0x42C90024UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A42 *((volatile unsigned int*)(0x42C90028UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A43 *((volatile unsigned int*)(0x42C9002CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A44 *((volatile unsigned int*)(0x42C90030UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A45 *((volatile unsigned int*)(0x42C90034UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A46 *((volatile unsigned int*)(0x42C90038UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A47 *((volatile unsigned int*)(0x42C9003CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC0 *((volatile unsigned int*)(0x42C90060UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC1 *((volatile unsigned int*)(0x42C90064UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC2 *((volatile unsigned int*)(0x42C90068UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC3 *((volatile unsigned int*)(0x42C9006CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC4 *((volatile unsigned int*)(0x42C90070UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC5 *((volatile unsigned int*)(0x42C90074UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_SA *((volatile unsigned int*)(0x42C90078UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_AE *((volatile unsigned int*)(0x42C9007CUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A0 *((volatile unsigned int*)(0x42C90080UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A1 *((volatile unsigned int*)(0x42C90084UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A2 *((volatile unsigned int*)(0x42C90088UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A3 *((volatile unsigned int*)(0x42C9008CUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A4 *((volatile unsigned int*)(0x42C90090UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A5 *((volatile unsigned int*)(0x42C90094UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A6 *((volatile unsigned int*)(0x42C90098UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A7 *((volatile unsigned int*)(0x42C9009CUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A8 *((volatile unsigned int*)(0x42C900A0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A9 *((volatile unsigned int*)(0x42C900A4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A10 *((volatile unsigned int*)(0x42C900A8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A11 *((volatile unsigned int*)(0x42C900ACUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A12 *((volatile unsigned int*)(0x42C900B0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A13 *((volatile unsigned int*)(0x42C900B4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A14 *((volatile unsigned int*)(0x42C900B8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A15 *((volatile unsigned int*)(0x42C900BCUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A16 *((volatile unsigned int*)(0x42C900C0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A17 *((volatile unsigned int*)(0x42C900C4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A18 *((volatile unsigned int*)(0x42C900C8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A19 *((volatile unsigned int*)(0x42C900CCUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A20 *((volatile unsigned int*)(0x42C900D0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A21 *((volatile unsigned int*)(0x42C900D4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A22 *((volatile unsigned int*)(0x42C900D8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A23 *((volatile unsigned int*)(0x42C900DCUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A24 *((volatile unsigned int*)(0x42C900E0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A25 *((volatile unsigned int*)(0x42C900E4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A26 *((volatile unsigned int*)(0x42C900E8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A27 *((volatile unsigned int*)(0x42C900ECUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A28 *((volatile unsigned int*)(0x42C900F0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A29 *((volatile unsigned int*)(0x42C900F4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A30 *((volatile unsigned int*)(0x42C900F8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A31 *((volatile unsigned int*)(0x42C900FCUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A32 *((volatile unsigned int*)(0x42C90100UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A33 *((volatile unsigned int*)(0x42C90104UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A34 *((volatile unsigned int*)(0x42C90108UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A35 *((volatile unsigned int*)(0x42C9010CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A36 *((volatile unsigned int*)(0x42C90110UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A37 *((volatile unsigned int*)(0x42C90114UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A38 *((volatile unsigned int*)(0x42C90118UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A39 *((volatile unsigned int*)(0x42C9011CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A40 *((volatile unsigned int*)(0x42C90120UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A41 *((volatile unsigned int*)(0x42C90124UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A42 *((volatile unsigned int*)(0x42C90128UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A43 *((volatile unsigned int*)(0x42C9012CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A44 *((volatile unsigned int*)(0x42C90130UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A45 *((volatile unsigned int*)(0x42C90134UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A46 *((volatile unsigned int*)(0x42C90138UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A47 *((volatile unsigned int*)(0x42C9013CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC0 *((volatile unsigned int*)(0x42C90160UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC1 *((volatile unsigned int*)(0x42C90164UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC2 *((volatile unsigned int*)(0x42C90168UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC3 *((volatile unsigned int*)(0x42C9016CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC4 *((volatile unsigned int*)(0x42C90170UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC5 *((volatile unsigned int*)(0x42C90174UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_SA *((volatile unsigned int*)(0x42C90178UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_AE *((volatile unsigned int*)(0x42C9017CUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A0 *((volatile unsigned int*)(0x42C90180UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A1 *((volatile unsigned int*)(0x42C90184UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A2 *((volatile unsigned int*)(0x42C90188UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A3 *((volatile unsigned int*)(0x42C9018CUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A4 *((volatile unsigned int*)(0x42C90190UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A5 *((volatile unsigned int*)(0x42C90194UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A6 *((volatile unsigned int*)(0x42C90198UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A7 *((volatile unsigned int*)(0x42C9019CUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A8 *((volatile unsigned int*)(0x42C901A0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A9 *((volatile unsigned int*)(0x42C901A4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A10 *((volatile unsigned int*)(0x42C901A8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A11 *((volatile unsigned int*)(0x42C901ACUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A12 *((volatile unsigned int*)(0x42C901B0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A13 *((volatile unsigned int*)(0x42C901B4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A14 *((volatile unsigned int*)(0x42C901B8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A15 *((volatile unsigned int*)(0x42C901BCUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A16 *((volatile unsigned int*)(0x42C901C0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A17 *((volatile unsigned int*)(0x42C901C4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A18 *((volatile unsigned int*)(0x42C901C8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A19 *((volatile unsigned int*)(0x42C901CCUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A20 *((volatile unsigned int*)(0x42C901D0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A21 *((volatile unsigned int*)(0x42C901D4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A22 *((volatile unsigned int*)(0x42C901D8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A23 *((volatile unsigned int*)(0x42C901DCUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A24 *((volatile unsigned int*)(0x42C901E0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A25 *((volatile unsigned int*)(0x42C901E4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A26 *((volatile unsigned int*)(0x42C901E8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A27 *((volatile unsigned int*)(0x42C901ECUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A28 *((volatile unsigned int*)(0x42C901F0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A29 *((volatile unsigned int*)(0x42C901F4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A30 *((volatile unsigned int*)(0x42C901F8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A31 *((volatile unsigned int*)(0x42C901FCUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A32 *((volatile unsigned int*)(0x42C90200UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A33 *((volatile unsigned int*)(0x42C90204UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A34 *((volatile unsigned int*)(0x42C90208UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A35 *((volatile unsigned int*)(0x42C9020CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A36 *((volatile unsigned int*)(0x42C90210UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A37 *((volatile unsigned int*)(0x42C90214UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A38 *((volatile unsigned int*)(0x42C90218UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A39 *((volatile unsigned int*)(0x42C9021CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A40 *((volatile unsigned int*)(0x42C90220UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A41 *((volatile unsigned int*)(0x42C90224UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A42 *((volatile unsigned int*)(0x42C90228UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A43 *((volatile unsigned int*)(0x42C9022CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A44 *((volatile unsigned int*)(0x42C90230UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A45 *((volatile unsigned int*)(0x42C90234UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A46 *((volatile unsigned int*)(0x42C90238UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A47 *((volatile unsigned int*)(0x42C9023CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC0 *((volatile unsigned int*)(0x42C90260UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC1 *((volatile unsigned int*)(0x42C90264UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC2 *((volatile unsigned int*)(0x42C90268UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC3 *((volatile unsigned int*)(0x42C9026CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC4 *((volatile unsigned int*)(0x42C90270UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC5 *((volatile unsigned int*)(0x42C90274UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_SA *((volatile unsigned int*)(0x42C90278UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_AE *((volatile unsigned int*)(0x42C9027CUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A0 *((volatile unsigned int*)(0x42C90280UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A1 *((volatile unsigned int*)(0x42C90284UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A2 *((volatile unsigned int*)(0x42C90288UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A3 *((volatile unsigned int*)(0x42C9028CUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A4 *((volatile unsigned int*)(0x42C90290UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A5 *((volatile unsigned int*)(0x42C90294UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A6 *((volatile unsigned int*)(0x42C90298UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A7 *((volatile unsigned int*)(0x42C9029CUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A8 *((volatile unsigned int*)(0x42C902A0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A9 *((volatile unsigned int*)(0x42C902A4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A10 *((volatile unsigned int*)(0x42C902A8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A11 *((volatile unsigned int*)(0x42C902ACUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A12 *((volatile unsigned int*)(0x42C902B0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A13 *((volatile unsigned int*)(0x42C902B4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A14 *((volatile unsigned int*)(0x42C902B8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A15 *((volatile unsigned int*)(0x42C902BCUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A16 *((volatile unsigned int*)(0x42C902C0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A17 *((volatile unsigned int*)(0x42C902C4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A18 *((volatile unsigned int*)(0x42C902C8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A19 *((volatile unsigned int*)(0x42C902CCUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A20 *((volatile unsigned int*)(0x42C902D0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A21 *((volatile unsigned int*)(0x42C902D4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A22 *((volatile unsigned int*)(0x42C902D8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A23 *((volatile unsigned int*)(0x42C902DCUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A24 *((volatile unsigned int*)(0x42C902E0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A25 *((volatile unsigned int*)(0x42C902E4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A26 *((volatile unsigned int*)(0x42C902E8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A27 *((volatile unsigned int*)(0x42C902ECUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A28 *((volatile unsigned int*)(0x42C902F0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A29 *((volatile unsigned int*)(0x42C902F4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A30 *((volatile unsigned int*)(0x42C902F8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A31 *((volatile unsigned int*)(0x42C902FCUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A32 *((volatile unsigned int*)(0x42C90300UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A33 *((volatile unsigned int*)(0x42C90304UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A34 *((volatile unsigned int*)(0x42C90308UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A35 *((volatile unsigned int*)(0x42C9030CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A36 *((volatile unsigned int*)(0x42C90310UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A37 *((volatile unsigned int*)(0x42C90314UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A38 *((volatile unsigned int*)(0x42C90318UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A39 *((volatile unsigned int*)(0x42C9031CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A40 *((volatile unsigned int*)(0x42C90320UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A41 *((volatile unsigned int*)(0x42C90324UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A42 *((volatile unsigned int*)(0x42C90328UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A43 *((volatile unsigned int*)(0x42C9032CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A44 *((volatile unsigned int*)(0x42C90330UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A45 *((volatile unsigned int*)(0x42C90334UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A46 *((volatile unsigned int*)(0x42C90338UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A47 *((volatile unsigned int*)(0x42C9033CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC0 *((volatile unsigned int*)(0x42C90360UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC1 *((volatile unsigned int*)(0x42C90364UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC2 *((volatile unsigned int*)(0x42C90368UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC3 *((volatile unsigned int*)(0x42C9036CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC4 *((volatile unsigned int*)(0x42C90370UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC5 *((volatile unsigned int*)(0x42C90374UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_SA *((volatile unsigned int*)(0x42C90378UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_AE *((volatile unsigned int*)(0x42C9037CUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A0 *((volatile unsigned int*)(0x42C90380UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A1 *((volatile unsigned int*)(0x42C90384UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A2 *((volatile unsigned int*)(0x42C90388UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A3 *((volatile unsigned int*)(0x42C9038CUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A4 *((volatile unsigned int*)(0x42C90390UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A5 *((volatile unsigned int*)(0x42C90394UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A6 *((volatile unsigned int*)(0x42C90398UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A7 *((volatile unsigned int*)(0x42C9039CUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A8 *((volatile unsigned int*)(0x42C903A0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A9 *((volatile unsigned int*)(0x42C903A4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A10 *((volatile unsigned int*)(0x42C903A8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A11 *((volatile unsigned int*)(0x42C903ACUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A12 *((volatile unsigned int*)(0x42C903B0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A13 *((volatile unsigned int*)(0x42C903B4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A14 *((volatile unsigned int*)(0x42C903B8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A15 *((volatile unsigned int*)(0x42C903BCUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A16 *((volatile unsigned int*)(0x42C903C0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A17 *((volatile unsigned int*)(0x42C903C4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A18 *((volatile unsigned int*)(0x42C903C8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A19 *((volatile unsigned int*)(0x42C903CCUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A20 *((volatile unsigned int*)(0x42C903D0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A21 *((volatile unsigned int*)(0x42C903D4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A22 *((volatile unsigned int*)(0x42C903D8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A23 *((volatile unsigned int*)(0x42C903DCUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A24 *((volatile unsigned int*)(0x42C903E0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A25 *((volatile unsigned int*)(0x42C903E4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A26 *((volatile unsigned int*)(0x42C903E8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A27 *((volatile unsigned int*)(0x42C903ECUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A28 *((volatile unsigned int*)(0x42C903F0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A29 *((volatile unsigned int*)(0x42C903F4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A30 *((volatile unsigned int*)(0x42C903F8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A31 *((volatile unsigned int*)(0x42C903FCUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A32 *((volatile unsigned int*)(0x42C90400UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A33 *((volatile unsigned int*)(0x42C90404UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A34 *((volatile unsigned int*)(0x42C90408UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A35 *((volatile unsigned int*)(0x42C9040CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A36 *((volatile unsigned int*)(0x42C90410UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A37 *((volatile unsigned int*)(0x42C90414UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A38 *((volatile unsigned int*)(0x42C90418UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A39 *((volatile unsigned int*)(0x42C9041CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A40 *((volatile unsigned int*)(0x42C90420UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A41 *((volatile unsigned int*)(0x42C90424UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A42 *((volatile unsigned int*)(0x42C90428UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A43 *((volatile unsigned int*)(0x42C9042CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A44 *((volatile unsigned int*)(0x42C90430UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A45 *((volatile unsigned int*)(0x42C90434UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A46 *((volatile unsigned int*)(0x42C90438UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A47 *((volatile unsigned int*)(0x42C9043CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC0 *((volatile unsigned int*)(0x42C90460UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC1 *((volatile unsigned int*)(0x42C90464UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC2 *((volatile unsigned int*)(0x42C90468UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC3 *((volatile unsigned int*)(0x42C9046CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC4 *((volatile unsigned int*)(0x42C90470UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC5 *((volatile unsigned int*)(0x42C90474UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_SA *((volatile unsigned int*)(0x42C90478UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_AE *((volatile unsigned int*)(0x42C9047CUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A0 *((volatile unsigned int*)(0x42C90480UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A1 *((volatile unsigned int*)(0x42C90484UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A2 *((volatile unsigned int*)(0x42C90488UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A3 *((volatile unsigned int*)(0x42C9048CUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A4 *((volatile unsigned int*)(0x42C90490UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A5 *((volatile unsigned int*)(0x42C90494UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A6 *((volatile unsigned int*)(0x42C90498UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A7 *((volatile unsigned int*)(0x42C9049CUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A8 *((volatile unsigned int*)(0x42C904A0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A9 *((volatile unsigned int*)(0x42C904A4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A10 *((volatile unsigned int*)(0x42C904A8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A11 *((volatile unsigned int*)(0x42C904ACUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A12 *((volatile unsigned int*)(0x42C904B0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A13 *((volatile unsigned int*)(0x42C904B4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A14 *((volatile unsigned int*)(0x42C904B8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A15 *((volatile unsigned int*)(0x42C904BCUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A16 *((volatile unsigned int*)(0x42C904C0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A17 *((volatile unsigned int*)(0x42C904C4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A18 *((volatile unsigned int*)(0x42C904C8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A19 *((volatile unsigned int*)(0x42C904CCUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A20 *((volatile unsigned int*)(0x42C904D0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A21 *((volatile unsigned int*)(0x42C904D4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A22 *((volatile unsigned int*)(0x42C904D8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A23 *((volatile unsigned int*)(0x42C904DCUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A24 *((volatile unsigned int*)(0x42C904E0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A25 *((volatile unsigned int*)(0x42C904E4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A26 *((volatile unsigned int*)(0x42C904E8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A27 *((volatile unsigned int*)(0x42C904ECUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A28 *((volatile unsigned int*)(0x42C904F0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A29 *((volatile unsigned int*)(0x42C904F4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A30 *((volatile unsigned int*)(0x42C904F8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A31 *((volatile unsigned int*)(0x42C904FCUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A32 *((volatile unsigned int*)(0x42C90500UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A33 *((volatile unsigned int*)(0x42C90504UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A34 *((volatile unsigned int*)(0x42C90508UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A35 *((volatile unsigned int*)(0x42C9050CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A36 *((volatile unsigned int*)(0x42C90510UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A37 *((volatile unsigned int*)(0x42C90514UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A38 *((volatile unsigned int*)(0x42C90518UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A39 *((volatile unsigned int*)(0x42C9051CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A40 *((volatile unsigned int*)(0x42C90520UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A41 *((volatile unsigned int*)(0x42C90524UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A42 *((volatile unsigned int*)(0x42C90528UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A43 *((volatile unsigned int*)(0x42C9052CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A44 *((volatile unsigned int*)(0x42C90530UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A45 *((volatile unsigned int*)(0x42C90534UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A46 *((volatile unsigned int*)(0x42C90538UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A47 *((volatile unsigned int*)(0x42C9053CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC0 *((volatile unsigned int*)(0x42C90560UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC1 *((volatile unsigned int*)(0x42C90564UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC2 *((volatile unsigned int*)(0x42C90568UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC3 *((volatile unsigned int*)(0x42C9056CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC4 *((volatile unsigned int*)(0x42C90570UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC5 *((volatile unsigned int*)(0x42C90574UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_SA *((volatile unsigned int*)(0x42C90578UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_AE *((volatile unsigned int*)(0x42C9057CUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A0 *((volatile unsigned int*)(0x42C90580UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A1 *((volatile unsigned int*)(0x42C90584UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A2 *((volatile unsigned int*)(0x42C90588UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A3 *((volatile unsigned int*)(0x42C9058CUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A4 *((volatile unsigned int*)(0x42C90590UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A5 *((volatile unsigned int*)(0x42C90594UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A6 *((volatile unsigned int*)(0x42C90598UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A7 *((volatile unsigned int*)(0x42C9059CUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A8 *((volatile unsigned int*)(0x42C905A0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A9 *((volatile unsigned int*)(0x42C905A4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A10 *((volatile unsigned int*)(0x42C905A8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A11 *((volatile unsigned int*)(0x42C905ACUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A12 *((volatile unsigned int*)(0x42C905B0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A13 *((volatile unsigned int*)(0x42C905B4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A14 *((volatile unsigned int*)(0x42C905B8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A15 *((volatile unsigned int*)(0x42C905BCUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A16 *((volatile unsigned int*)(0x42C905C0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A17 *((volatile unsigned int*)(0x42C905C4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A18 *((volatile unsigned int*)(0x42C905C8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A19 *((volatile unsigned int*)(0x42C905CCUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A20 *((volatile unsigned int*)(0x42C905D0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A21 *((volatile unsigned int*)(0x42C905D4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A22 *((volatile unsigned int*)(0x42C905D8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A23 *((volatile unsigned int*)(0x42C905DCUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A24 *((volatile unsigned int*)(0x42C905E0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A25 *((volatile unsigned int*)(0x42C905E4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A26 *((volatile unsigned int*)(0x42C905E8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A27 *((volatile unsigned int*)(0x42C905ECUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A28 *((volatile unsigned int*)(0x42C905F0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A29 *((volatile unsigned int*)(0x42C905F4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A30 *((volatile unsigned int*)(0x42C905F8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A31 *((volatile unsigned int*)(0x42C905FCUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A32 *((volatile unsigned int*)(0x42C90600UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A33 *((volatile unsigned int*)(0x42C90604UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A34 *((volatile unsigned int*)(0x42C90608UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A35 *((volatile unsigned int*)(0x42C9060CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A36 *((volatile unsigned int*)(0x42C90610UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A37 *((volatile unsigned int*)(0x42C90614UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A38 *((volatile unsigned int*)(0x42C90618UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A39 *((volatile unsigned int*)(0x42C9061CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A40 *((volatile unsigned int*)(0x42C90620UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A41 *((volatile unsigned int*)(0x42C90624UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A42 *((volatile unsigned int*)(0x42C90628UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A43 *((volatile unsigned int*)(0x42C9062CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A44 *((volatile unsigned int*)(0x42C90630UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A45 *((volatile unsigned int*)(0x42C90634UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A46 *((volatile unsigned int*)(0x42C90638UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A47 *((volatile unsigned int*)(0x42C9063CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC0 *((volatile unsigned int*)(0x42C90660UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC1 *((volatile unsigned int*)(0x42C90664UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC2 *((volatile unsigned int*)(0x42C90668UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC3 *((volatile unsigned int*)(0x42C9066CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC4 *((volatile unsigned int*)(0x42C90670UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC5 *((volatile unsigned int*)(0x42C90674UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_SA *((volatile unsigned int*)(0x42C90678UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_AE *((volatile unsigned int*)(0x42C9067CUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A0 *((volatile unsigned int*)(0x42C90680UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A1 *((volatile unsigned int*)(0x42C90684UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A2 *((volatile unsigned int*)(0x42C90688UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A3 *((volatile unsigned int*)(0x42C9068CUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A4 *((volatile unsigned int*)(0x42C90690UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A5 *((volatile unsigned int*)(0x42C90694UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A6 *((volatile unsigned int*)(0x42C90698UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A7 *((volatile unsigned int*)(0x42C9069CUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A8 *((volatile unsigned int*)(0x42C906A0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A9 *((volatile unsigned int*)(0x42C906A4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A10 *((volatile unsigned int*)(0x42C906A8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A11 *((volatile unsigned int*)(0x42C906ACUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A12 *((volatile unsigned int*)(0x42C906B0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A13 *((volatile unsigned int*)(0x42C906B4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A14 *((volatile unsigned int*)(0x42C906B8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A15 *((volatile unsigned int*)(0x42C906BCUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A16 *((volatile unsigned int*)(0x42C906C0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A17 *((volatile unsigned int*)(0x42C906C4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A18 *((volatile unsigned int*)(0x42C906C8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A19 *((volatile unsigned int*)(0x42C906CCUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A20 *((volatile unsigned int*)(0x42C906D0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A21 *((volatile unsigned int*)(0x42C906D4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A22 *((volatile unsigned int*)(0x42C906D8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A23 *((volatile unsigned int*)(0x42C906DCUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A24 *((volatile unsigned int*)(0x42C906E0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A25 *((volatile unsigned int*)(0x42C906E4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A26 *((volatile unsigned int*)(0x42C906E8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A27 *((volatile unsigned int*)(0x42C906ECUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A28 *((volatile unsigned int*)(0x42C906F0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A29 *((volatile unsigned int*)(0x42C906F4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A30 *((volatile unsigned int*)(0x42C906F8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A31 *((volatile unsigned int*)(0x42C906FCUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A32 *((volatile unsigned int*)(0x42C90700UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A33 *((volatile unsigned int*)(0x42C90704UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A34 *((volatile unsigned int*)(0x42C90708UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A35 *((volatile unsigned int*)(0x42C9070CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A36 *((volatile unsigned int*)(0x42C90710UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A37 *((volatile unsigned int*)(0x42C90714UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A38 *((volatile unsigned int*)(0x42C90718UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A39 *((volatile unsigned int*)(0x42C9071CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A40 *((volatile unsigned int*)(0x42C90720UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A41 *((volatile unsigned int*)(0x42C90724UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A42 *((volatile unsigned int*)(0x42C90728UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A43 *((volatile unsigned int*)(0x42C9072CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A44 *((volatile unsigned int*)(0x42C90730UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A45 *((volatile unsigned int*)(0x42C90734UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A46 *((volatile unsigned int*)(0x42C90738UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A47 *((volatile unsigned int*)(0x42C9073CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC0 *((volatile unsigned int*)(0x42C90760UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC1 *((volatile unsigned int*)(0x42C90764UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC2 *((volatile unsigned int*)(0x42C90768UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC3 *((volatile unsigned int*)(0x42C9076CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC4 *((volatile unsigned int*)(0x42C90770UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC5 *((volatile unsigned int*)(0x42C90774UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_SA *((volatile unsigned int*)(0x42C90778UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_AE *((volatile unsigned int*)(0x42C9077CUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A0 *((volatile unsigned int*)(0x42C90780UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A1 *((volatile unsigned int*)(0x42C90784UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A2 *((volatile unsigned int*)(0x42C90788UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A3 *((volatile unsigned int*)(0x42C9078CUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A4 *((volatile unsigned int*)(0x42C90790UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A5 *((volatile unsigned int*)(0x42C90794UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A6 *((volatile unsigned int*)(0x42C90798UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A7 *((volatile unsigned int*)(0x42C9079CUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A8 *((volatile unsigned int*)(0x42C907A0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A9 *((volatile unsigned int*)(0x42C907A4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A10 *((volatile unsigned int*)(0x42C907A8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A11 *((volatile unsigned int*)(0x42C907ACUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A12 *((volatile unsigned int*)(0x42C907B0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A13 *((volatile unsigned int*)(0x42C907B4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A14 *((volatile unsigned int*)(0x42C907B8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A15 *((volatile unsigned int*)(0x42C907BCUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A16 *((volatile unsigned int*)(0x42C907C0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A17 *((volatile unsigned int*)(0x42C907C4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A18 *((volatile unsigned int*)(0x42C907C8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A19 *((volatile unsigned int*)(0x42C907CCUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A20 *((volatile unsigned int*)(0x42C907D0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A21 *((volatile unsigned int*)(0x42C907D4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A22 *((volatile unsigned int*)(0x42C907D8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A23 *((volatile unsigned int*)(0x42C907DCUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A24 *((volatile unsigned int*)(0x42C907E0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A25 *((volatile unsigned int*)(0x42C907E4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A26 *((volatile unsigned int*)(0x42C907E8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A27 *((volatile unsigned int*)(0x42C907ECUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A28 *((volatile unsigned int*)(0x42C907F0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A29 *((volatile unsigned int*)(0x42C907F4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A30 *((volatile unsigned int*)(0x42C907F8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A31 *((volatile unsigned int*)(0x42C907FCUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A32 *((volatile unsigned int*)(0x42C90800UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A33 *((volatile unsigned int*)(0x42C90804UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A34 *((volatile unsigned int*)(0x42C90808UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A35 *((volatile unsigned int*)(0x42C9080CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A36 *((volatile unsigned int*)(0x42C90810UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A37 *((volatile unsigned int*)(0x42C90814UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A38 *((volatile unsigned int*)(0x42C90818UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A39 *((volatile unsigned int*)(0x42C9081CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A40 *((volatile unsigned int*)(0x42C90820UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A41 *((volatile unsigned int*)(0x42C90824UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A42 *((volatile unsigned int*)(0x42C90828UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A43 *((volatile unsigned int*)(0x42C9082CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A44 *((volatile unsigned int*)(0x42C90830UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A45 *((volatile unsigned int*)(0x42C90834UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A46 *((volatile unsigned int*)(0x42C90838UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A47 *((volatile unsigned int*)(0x42C9083CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC0 *((volatile unsigned int*)(0x42C90860UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC1 *((volatile unsigned int*)(0x42C90864UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC2 *((volatile unsigned int*)(0x42C90868UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC3 *((volatile unsigned int*)(0x42C9086CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC4 *((volatile unsigned int*)(0x42C90870UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC5 *((volatile unsigned int*)(0x42C90874UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_SA *((volatile unsigned int*)(0x42C90878UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_AE *((volatile unsigned int*)(0x42C9087CUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A0 *((volatile unsigned int*)(0x42C90880UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A1 *((volatile unsigned int*)(0x42C90884UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A2 *((volatile unsigned int*)(0x42C90888UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A3 *((volatile unsigned int*)(0x42C9088CUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A4 *((volatile unsigned int*)(0x42C90890UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A5 *((volatile unsigned int*)(0x42C90894UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A6 *((volatile unsigned int*)(0x42C90898UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A7 *((volatile unsigned int*)(0x42C9089CUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A8 *((volatile unsigned int*)(0x42C908A0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A9 *((volatile unsigned int*)(0x42C908A4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A10 *((volatile unsigned int*)(0x42C908A8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A11 *((volatile unsigned int*)(0x42C908ACUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A12 *((volatile unsigned int*)(0x42C908B0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A13 *((volatile unsigned int*)(0x42C908B4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A14 *((volatile unsigned int*)(0x42C908B8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A15 *((volatile unsigned int*)(0x42C908BCUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A16 *((volatile unsigned int*)(0x42C908C0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A17 *((volatile unsigned int*)(0x42C908C4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A18 *((volatile unsigned int*)(0x42C908C8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A19 *((volatile unsigned int*)(0x42C908CCUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A20 *((volatile unsigned int*)(0x42C908D0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A21 *((volatile unsigned int*)(0x42C908D4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A22 *((volatile unsigned int*)(0x42C908D8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A23 *((volatile unsigned int*)(0x42C908DCUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A24 *((volatile unsigned int*)(0x42C908E0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A25 *((volatile unsigned int*)(0x42C908E4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A26 *((volatile unsigned int*)(0x42C908E8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A27 *((volatile unsigned int*)(0x42C908ECUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A28 *((volatile unsigned int*)(0x42C908F0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A29 *((volatile unsigned int*)(0x42C908F4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A30 *((volatile unsigned int*)(0x42C908F8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A31 *((volatile unsigned int*)(0x42C908FCUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A32 *((volatile unsigned int*)(0x42C90900UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A33 *((volatile unsigned int*)(0x42C90904UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A34 *((volatile unsigned int*)(0x42C90908UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A35 *((volatile unsigned int*)(0x42C9090CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A36 *((volatile unsigned int*)(0x42C90910UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A37 *((volatile unsigned int*)(0x42C90914UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A38 *((volatile unsigned int*)(0x42C90918UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A39 *((volatile unsigned int*)(0x42C9091CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A40 *((volatile unsigned int*)(0x42C90920UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A41 *((volatile unsigned int*)(0x42C90924UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A42 *((volatile unsigned int*)(0x42C90928UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A43 *((volatile unsigned int*)(0x42C9092CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A44 *((volatile unsigned int*)(0x42C90930UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A45 *((volatile unsigned int*)(0x42C90934UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A46 *((volatile unsigned int*)(0x42C90938UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A47 *((volatile unsigned int*)(0x42C9093CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC0 *((volatile unsigned int*)(0x42C90960UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC1 *((volatile unsigned int*)(0x42C90964UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC2 *((volatile unsigned int*)(0x42C90968UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC3 *((volatile unsigned int*)(0x42C9096CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC4 *((volatile unsigned int*)(0x42C90970UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC5 *((volatile unsigned int*)(0x42C90974UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_SA *((volatile unsigned int*)(0x42C90978UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_AE *((volatile unsigned int*)(0x42C9097CUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A0 *((volatile unsigned int*)(0x42C90980UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A1 *((volatile unsigned int*)(0x42C90984UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A2 *((volatile unsigned int*)(0x42C90988UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A3 *((volatile unsigned int*)(0x42C9098CUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A4 *((volatile unsigned int*)(0x42C90990UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A5 *((volatile unsigned int*)(0x42C90994UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A6 *((volatile unsigned int*)(0x42C90998UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A7 *((volatile unsigned int*)(0x42C9099CUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A8 *((volatile unsigned int*)(0x42C909A0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A9 *((volatile unsigned int*)(0x42C909A4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A10 *((volatile unsigned int*)(0x42C909A8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A11 *((volatile unsigned int*)(0x42C909ACUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A12 *((volatile unsigned int*)(0x42C909B0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A13 *((volatile unsigned int*)(0x42C909B4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A14 *((volatile unsigned int*)(0x42C909B8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A15 *((volatile unsigned int*)(0x42C909BCUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A16 *((volatile unsigned int*)(0x42C909C0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A17 *((volatile unsigned int*)(0x42C909C4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A18 *((volatile unsigned int*)(0x42C909C8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A19 *((volatile unsigned int*)(0x42C909CCUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A20 *((volatile unsigned int*)(0x42C909D0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A21 *((volatile unsigned int*)(0x42C909D4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A22 *((volatile unsigned int*)(0x42C909D8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A23 *((volatile unsigned int*)(0x42C909DCUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A24 *((volatile unsigned int*)(0x42C909E0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A25 *((volatile unsigned int*)(0x42C909E4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A26 *((volatile unsigned int*)(0x42C909E8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A27 *((volatile unsigned int*)(0x42C909ECUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A28 *((volatile unsigned int*)(0x42C909F0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A29 *((volatile unsigned int*)(0x42C909F4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A30 *((volatile unsigned int*)(0x42C909F8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A31 *((volatile unsigned int*)(0x42C909FCUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A32 *((volatile unsigned int*)(0x42C90A00UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A33 *((volatile unsigned int*)(0x42C90A04UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A34 *((volatile unsigned int*)(0x42C90A08UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A35 *((volatile unsigned int*)(0x42C90A0CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A36 *((volatile unsigned int*)(0x42C90A10UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A37 *((volatile unsigned int*)(0x42C90A14UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A38 *((volatile unsigned int*)(0x42C90A18UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A39 *((volatile unsigned int*)(0x42C90A1CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A40 *((volatile unsigned int*)(0x42C90A20UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A41 *((volatile unsigned int*)(0x42C90A24UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A42 *((volatile unsigned int*)(0x42C90A28UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A43 *((volatile unsigned int*)(0x42C90A2CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A44 *((volatile unsigned int*)(0x42C90A30UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A45 *((volatile unsigned int*)(0x42C90A34UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A46 *((volatile unsigned int*)(0x42C90A38UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A47 *((volatile unsigned int*)(0x42C90A3CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC0 *((volatile unsigned int*)(0x42C90A60UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC1 *((volatile unsigned int*)(0x42C90A64UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC2 *((volatile unsigned int*)(0x42C90A68UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC3 *((volatile unsigned int*)(0x42C90A6CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC4 *((volatile unsigned int*)(0x42C90A70UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC5 *((volatile unsigned int*)(0x42C90A74UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_SA *((volatile unsigned int*)(0x42C90A78UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_AE *((volatile unsigned int*)(0x42C90A7CUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A0 *((volatile unsigned int*)(0x42C90A80UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A1 *((volatile unsigned int*)(0x42C90A84UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A2 *((volatile unsigned int*)(0x42C90A88UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A3 *((volatile unsigned int*)(0x42C90A8CUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A4 *((volatile unsigned int*)(0x42C90A90UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A5 *((volatile unsigned int*)(0x42C90A94UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A6 *((volatile unsigned int*)(0x42C90A98UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A7 *((volatile unsigned int*)(0x42C90A9CUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A8 *((volatile unsigned int*)(0x42C90AA0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A9 *((volatile unsigned int*)(0x42C90AA4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A10 *((volatile unsigned int*)(0x42C90AA8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A11 *((volatile unsigned int*)(0x42C90AACUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A12 *((volatile unsigned int*)(0x42C90AB0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A13 *((volatile unsigned int*)(0x42C90AB4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A14 *((volatile unsigned int*)(0x42C90AB8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A15 *((volatile unsigned int*)(0x42C90ABCUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A16 *((volatile unsigned int*)(0x42C90AC0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A17 *((volatile unsigned int*)(0x42C90AC4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A18 *((volatile unsigned int*)(0x42C90AC8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A19 *((volatile unsigned int*)(0x42C90ACCUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A20 *((volatile unsigned int*)(0x42C90AD0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A21 *((volatile unsigned int*)(0x42C90AD4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A22 *((volatile unsigned int*)(0x42C90AD8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A23 *((volatile unsigned int*)(0x42C90ADCUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A24 *((volatile unsigned int*)(0x42C90AE0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A25 *((volatile unsigned int*)(0x42C90AE4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A26 *((volatile unsigned int*)(0x42C90AE8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A27 *((volatile unsigned int*)(0x42C90AECUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A28 *((volatile unsigned int*)(0x42C90AF0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A29 *((volatile unsigned int*)(0x42C90AF4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A30 *((volatile unsigned int*)(0x42C90AF8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A31 *((volatile unsigned int*)(0x42C90AFCUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A32 *((volatile unsigned int*)(0x42C90B00UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A33 *((volatile unsigned int*)(0x42C90B04UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A34 *((volatile unsigned int*)(0x42C90B08UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A35 *((volatile unsigned int*)(0x42C90B0CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A36 *((volatile unsigned int*)(0x42C90B10UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A37 *((volatile unsigned int*)(0x42C90B14UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A38 *((volatile unsigned int*)(0x42C90B18UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A39 *((volatile unsigned int*)(0x42C90B1CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A40 *((volatile unsigned int*)(0x42C90B20UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A41 *((volatile unsigned int*)(0x42C90B24UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A42 *((volatile unsigned int*)(0x42C90B28UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A43 *((volatile unsigned int*)(0x42C90B2CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A44 *((volatile unsigned int*)(0x42C90B30UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A45 *((volatile unsigned int*)(0x42C90B34UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A46 *((volatile unsigned int*)(0x42C90B38UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A47 *((volatile unsigned int*)(0x42C90B3CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC0 *((volatile unsigned int*)(0x42C90B60UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC1 *((volatile unsigned int*)(0x42C90B64UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC2 *((volatile unsigned int*)(0x42C90B68UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC3 *((volatile unsigned int*)(0x42C90B6CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC4 *((volatile unsigned int*)(0x42C90B70UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC5 *((volatile unsigned int*)(0x42C90B74UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_SA *((volatile unsigned int*)(0x42C90B78UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_AE *((volatile unsigned int*)(0x42C90B7CUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A0 *((volatile unsigned int*)(0x42C90B80UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A1 *((volatile unsigned int*)(0x42C90B84UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A2 *((volatile unsigned int*)(0x42C90B88UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A3 *((volatile unsigned int*)(0x42C90B8CUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A4 *((volatile unsigned int*)(0x42C90B90UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A5 *((volatile unsigned int*)(0x42C90B94UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A6 *((volatile unsigned int*)(0x42C90B98UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A7 *((volatile unsigned int*)(0x42C90B9CUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A8 *((volatile unsigned int*)(0x42C90BA0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A9 *((volatile unsigned int*)(0x42C90BA4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A10 *((volatile unsigned int*)(0x42C90BA8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A11 *((volatile unsigned int*)(0x42C90BACUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A12 *((volatile unsigned int*)(0x42C90BB0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A13 *((volatile unsigned int*)(0x42C90BB4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A14 *((volatile unsigned int*)(0x42C90BB8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A15 *((volatile unsigned int*)(0x42C90BBCUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A16 *((volatile unsigned int*)(0x42C90BC0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A17 *((volatile unsigned int*)(0x42C90BC4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A18 *((volatile unsigned int*)(0x42C90BC8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A19 *((volatile unsigned int*)(0x42C90BCCUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A20 *((volatile unsigned int*)(0x42C90BD0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A21 *((volatile unsigned int*)(0x42C90BD4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A22 *((volatile unsigned int*)(0x42C90BD8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A23 *((volatile unsigned int*)(0x42C90BDCUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A24 *((volatile unsigned int*)(0x42C90BE0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A25 *((volatile unsigned int*)(0x42C90BE4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A26 *((volatile unsigned int*)(0x42C90BE8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A27 *((volatile unsigned int*)(0x42C90BECUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A28 *((volatile unsigned int*)(0x42C90BF0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A29 *((volatile unsigned int*)(0x42C90BF4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A30 *((volatile unsigned int*)(0x42C90BF8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A31 *((volatile unsigned int*)(0x42C90BFCUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A32 *((volatile unsigned int*)(0x42C90C00UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A33 *((volatile unsigned int*)(0x42C90C04UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A34 *((volatile unsigned int*)(0x42C90C08UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A35 *((volatile unsigned int*)(0x42C90C0CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A36 *((volatile unsigned int*)(0x42C90C10UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A37 *((volatile unsigned int*)(0x42C90C14UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A38 *((volatile unsigned int*)(0x42C90C18UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A39 *((volatile unsigned int*)(0x42C90C1CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A40 *((volatile unsigned int*)(0x42C90C20UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A41 *((volatile unsigned int*)(0x42C90C24UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A42 *((volatile unsigned int*)(0x42C90C28UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A43 *((volatile unsigned int*)(0x42C90C2CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A44 *((volatile unsigned int*)(0x42C90C30UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A45 *((volatile unsigned int*)(0x42C90C34UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A46 *((volatile unsigned int*)(0x42C90C38UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A47 *((volatile unsigned int*)(0x42C90C3CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC0 *((volatile unsigned int*)(0x42C90C60UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC1 *((volatile unsigned int*)(0x42C90C64UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC2 *((volatile unsigned int*)(0x42C90C68UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC3 *((volatile unsigned int*)(0x42C90C6CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC4 *((volatile unsigned int*)(0x42C90C70UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC5 *((volatile unsigned int*)(0x42C90C74UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_SA *((volatile unsigned int*)(0x42C90C78UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_AE *((volatile unsigned int*)(0x42C90C7CUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A0 *((volatile unsigned int*)(0x42C90C80UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A1 *((volatile unsigned int*)(0x42C90C84UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A2 *((volatile unsigned int*)(0x42C90C88UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A3 *((volatile unsigned int*)(0x42C90C8CUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A4 *((volatile unsigned int*)(0x42C90C90UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A5 *((volatile unsigned int*)(0x42C90C94UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A6 *((volatile unsigned int*)(0x42C90C98UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A7 *((volatile unsigned int*)(0x42C90C9CUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A8 *((volatile unsigned int*)(0x42C90CA0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A9 *((volatile unsigned int*)(0x42C90CA4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A10 *((volatile unsigned int*)(0x42C90CA8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A11 *((volatile unsigned int*)(0x42C90CACUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A12 *((volatile unsigned int*)(0x42C90CB0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A13 *((volatile unsigned int*)(0x42C90CB4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A14 *((volatile unsigned int*)(0x42C90CB8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A15 *((volatile unsigned int*)(0x42C90CBCUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A16 *((volatile unsigned int*)(0x42C90CC0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A17 *((volatile unsigned int*)(0x42C90CC4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A18 *((volatile unsigned int*)(0x42C90CC8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A19 *((volatile unsigned int*)(0x42C90CCCUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A20 *((volatile unsigned int*)(0x42C90CD0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A21 *((volatile unsigned int*)(0x42C90CD4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A22 *((volatile unsigned int*)(0x42C90CD8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A23 *((volatile unsigned int*)(0x42C90CDCUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A24 *((volatile unsigned int*)(0x42C90CE0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A25 *((volatile unsigned int*)(0x42C90CE4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A26 *((volatile unsigned int*)(0x42C90CE8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A27 *((volatile unsigned int*)(0x42C90CECUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A28 *((volatile unsigned int*)(0x42C90CF0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A29 *((volatile unsigned int*)(0x42C90CF4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A30 *((volatile unsigned int*)(0x42C90CF8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A31 *((volatile unsigned int*)(0x42C90CFCUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A32 *((volatile unsigned int*)(0x42C90D00UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A33 *((volatile unsigned int*)(0x42C90D04UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A34 *((volatile unsigned int*)(0x42C90D08UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A35 *((volatile unsigned int*)(0x42C90D0CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A36 *((volatile unsigned int*)(0x42C90D10UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A37 *((volatile unsigned int*)(0x42C90D14UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A38 *((volatile unsigned int*)(0x42C90D18UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A39 *((volatile unsigned int*)(0x42C90D1CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A40 *((volatile unsigned int*)(0x42C90D20UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A41 *((volatile unsigned int*)(0x42C90D24UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A42 *((volatile unsigned int*)(0x42C90D28UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A43 *((volatile unsigned int*)(0x42C90D2CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A44 *((volatile unsigned int*)(0x42C90D30UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A45 *((volatile unsigned int*)(0x42C90D34UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A46 *((volatile unsigned int*)(0x42C90D38UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A47 *((volatile unsigned int*)(0x42C90D3CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC0 *((volatile unsigned int*)(0x42C90D60UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC1 *((volatile unsigned int*)(0x42C90D64UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC2 *((volatile unsigned int*)(0x42C90D68UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC3 *((volatile unsigned int*)(0x42C90D6CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC4 *((volatile unsigned int*)(0x42C90D70UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC5 *((volatile unsigned int*)(0x42C90D74UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_SA *((volatile unsigned int*)(0x42C90D78UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_AE *((volatile unsigned int*)(0x42C90D7CUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A0 *((volatile unsigned int*)(0x42C90D80UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A1 *((volatile unsigned int*)(0x42C90D84UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A2 *((volatile unsigned int*)(0x42C90D88UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A3 *((volatile unsigned int*)(0x42C90D8CUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A4 *((volatile unsigned int*)(0x42C90D90UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A5 *((volatile unsigned int*)(0x42C90D94UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A6 *((volatile unsigned int*)(0x42C90D98UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A7 *((volatile unsigned int*)(0x42C90D9CUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A8 *((volatile unsigned int*)(0x42C90DA0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A9 *((volatile unsigned int*)(0x42C90DA4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A10 *((volatile unsigned int*)(0x42C90DA8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A11 *((volatile unsigned int*)(0x42C90DACUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A12 *((volatile unsigned int*)(0x42C90DB0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A13 *((volatile unsigned int*)(0x42C90DB4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A14 *((volatile unsigned int*)(0x42C90DB8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A15 *((volatile unsigned int*)(0x42C90DBCUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A16 *((volatile unsigned int*)(0x42C90DC0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A17 *((volatile unsigned int*)(0x42C90DC4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A18 *((volatile unsigned int*)(0x42C90DC8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A19 *((volatile unsigned int*)(0x42C90DCCUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A20 *((volatile unsigned int*)(0x42C90DD0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A21 *((volatile unsigned int*)(0x42C90DD4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A22 *((volatile unsigned int*)(0x42C90DD8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A23 *((volatile unsigned int*)(0x42C90DDCUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A24 *((volatile unsigned int*)(0x42C90DE0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A25 *((volatile unsigned int*)(0x42C90DE4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A26 *((volatile unsigned int*)(0x42C90DE8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A27 *((volatile unsigned int*)(0x42C90DECUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A28 *((volatile unsigned int*)(0x42C90DF0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A29 *((volatile unsigned int*)(0x42C90DF4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A30 *((volatile unsigned int*)(0x42C90DF8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A31 *((volatile unsigned int*)(0x42C90DFCUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A32 *((volatile unsigned int*)(0x42C90E00UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A33 *((volatile unsigned int*)(0x42C90E04UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A34 *((volatile unsigned int*)(0x42C90E08UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A35 *((volatile unsigned int*)(0x42C90E0CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A36 *((volatile unsigned int*)(0x42C90E10UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A37 *((volatile unsigned int*)(0x42C90E14UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A38 *((volatile unsigned int*)(0x42C90E18UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A39 *((volatile unsigned int*)(0x42C90E1CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A40 *((volatile unsigned int*)(0x42C90E20UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A41 *((volatile unsigned int*)(0x42C90E24UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A42 *((volatile unsigned int*)(0x42C90E28UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A43 *((volatile unsigned int*)(0x42C90E2CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A44 *((volatile unsigned int*)(0x42C90E30UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A45 *((volatile unsigned int*)(0x42C90E34UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A46 *((volatile unsigned int*)(0x42C90E38UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A47 *((volatile unsigned int*)(0x42C90E3CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC0 *((volatile unsigned int*)(0x42C90E60UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC1 *((volatile unsigned int*)(0x42C90E64UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC2 *((volatile unsigned int*)(0x42C90E68UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC3 *((volatile unsigned int*)(0x42C90E6CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC4 *((volatile unsigned int*)(0x42C90E70UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC5 *((volatile unsigned int*)(0x42C90E74UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_SA *((volatile unsigned int*)(0x42C90E78UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_AE *((volatile unsigned int*)(0x42C90E7CUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A0 *((volatile unsigned int*)(0x42C90E80UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A1 *((volatile unsigned int*)(0x42C90E84UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A2 *((volatile unsigned int*)(0x42C90E88UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A3 *((volatile unsigned int*)(0x42C90E8CUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A4 *((volatile unsigned int*)(0x42C90E90UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A5 *((volatile unsigned int*)(0x42C90E94UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A6 *((volatile unsigned int*)(0x42C90E98UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A7 *((volatile unsigned int*)(0x42C90E9CUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A8 *((volatile unsigned int*)(0x42C90EA0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A9 *((volatile unsigned int*)(0x42C90EA4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A10 *((volatile unsigned int*)(0x42C90EA8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A11 *((volatile unsigned int*)(0x42C90EACUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A12 *((volatile unsigned int*)(0x42C90EB0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A13 *((volatile unsigned int*)(0x42C90EB4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A14 *((volatile unsigned int*)(0x42C90EB8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A15 *((volatile unsigned int*)(0x42C90EBCUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A16 *((volatile unsigned int*)(0x42C90EC0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A17 *((volatile unsigned int*)(0x42C90EC4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A18 *((volatile unsigned int*)(0x42C90EC8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A19 *((volatile unsigned int*)(0x42C90ECCUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A20 *((volatile unsigned int*)(0x42C90ED0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A21 *((volatile unsigned int*)(0x42C90ED4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A22 *((volatile unsigned int*)(0x42C90ED8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A23 *((volatile unsigned int*)(0x42C90EDCUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A24 *((volatile unsigned int*)(0x42C90EE0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A25 *((volatile unsigned int*)(0x42C90EE4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A26 *((volatile unsigned int*)(0x42C90EE8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A27 *((volatile unsigned int*)(0x42C90EECUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A28 *((volatile unsigned int*)(0x42C90EF0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A29 *((volatile unsigned int*)(0x42C90EF4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A30 *((volatile unsigned int*)(0x42C90EF8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A31 *((volatile unsigned int*)(0x42C90EFCUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A32 *((volatile unsigned int*)(0x42C90F00UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A33 *((volatile unsigned int*)(0x42C90F04UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A34 *((volatile unsigned int*)(0x42C90F08UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A35 *((volatile unsigned int*)(0x42C90F0CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A36 *((volatile unsigned int*)(0x42C90F10UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A37 *((volatile unsigned int*)(0x42C90F14UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A38 *((volatile unsigned int*)(0x42C90F18UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A39 *((volatile unsigned int*)(0x42C90F1CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A40 *((volatile unsigned int*)(0x42C90F20UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A41 *((volatile unsigned int*)(0x42C90F24UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A42 *((volatile unsigned int*)(0x42C90F28UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A43 *((volatile unsigned int*)(0x42C90F2CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A44 *((volatile unsigned int*)(0x42C90F30UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A45 *((volatile unsigned int*)(0x42C90F34UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A46 *((volatile unsigned int*)(0x42C90F38UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A47 *((volatile unsigned int*)(0x42C90F3CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC0 *((volatile unsigned int*)(0x42C90F60UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC1 *((volatile unsigned int*)(0x42C90F64UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC2 *((volatile unsigned int*)(0x42C90F68UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC3 *((volatile unsigned int*)(0x42C90F6CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC4 *((volatile unsigned int*)(0x42C90F70UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC5 *((volatile unsigned int*)(0x42C90F74UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_SA *((volatile unsigned int*)(0x42C90F78UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_AE *((volatile unsigned int*)(0x42C90F7CUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A0 *((volatile unsigned int*)(0x42C90F80UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A1 *((volatile unsigned int*)(0x42C90F84UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A2 *((volatile unsigned int*)(0x42C90F88UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A3 *((volatile unsigned int*)(0x42C90F8CUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A4 *((volatile unsigned int*)(0x42C90F90UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A5 *((volatile unsigned int*)(0x42C90F94UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A6 *((volatile unsigned int*)(0x42C90F98UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A7 *((volatile unsigned int*)(0x42C90F9CUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A8 *((volatile unsigned int*)(0x42C90FA0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A9 *((volatile unsigned int*)(0x42C90FA4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A10 *((volatile unsigned int*)(0x42C90FA8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A11 *((volatile unsigned int*)(0x42C90FACUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A12 *((volatile unsigned int*)(0x42C90FB0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A13 *((volatile unsigned int*)(0x42C90FB4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A14 *((volatile unsigned int*)(0x42C90FB8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A15 *((volatile unsigned int*)(0x42C90FBCUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A16 *((volatile unsigned int*)(0x42C90FC0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A17 *((volatile unsigned int*)(0x42C90FC4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A18 *((volatile unsigned int*)(0x42C90FC8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A19 *((volatile unsigned int*)(0x42C90FCCUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A20 *((volatile unsigned int*)(0x42C90FD0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A21 *((volatile unsigned int*)(0x42C90FD4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A22 *((volatile unsigned int*)(0x42C90FD8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A23 *((volatile unsigned int*)(0x42C90FDCUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A24 *((volatile unsigned int*)(0x42C90FE0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A25 *((volatile unsigned int*)(0x42C90FE4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A26 *((volatile unsigned int*)(0x42C90FE8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A27 *((volatile unsigned int*)(0x42C90FECUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A28 *((volatile unsigned int*)(0x42C90FF0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A29 *((volatile unsigned int*)(0x42C90FF4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A30 *((volatile unsigned int*)(0x42C90FF8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A31 *((volatile unsigned int*)(0x42C90FFCUL)) -#define bFM3_ETHERNET_MAC0_BMR_SWR *((volatile unsigned int*)(0x42CA0000UL)) -#define bFM3_ETHERNET_MAC0_BMR_DA *((volatile unsigned int*)(0x42CA0004UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL0 *((volatile unsigned int*)(0x42CA0008UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL1 *((volatile unsigned int*)(0x42CA000CUL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL2 *((volatile unsigned int*)(0x42CA0010UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL3 *((volatile unsigned int*)(0x42CA0014UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL4 *((volatile unsigned int*)(0x42CA0018UL)) -#define bFM3_ETHERNET_MAC0_BMR_ATDS *((volatile unsigned int*)(0x42CA001CUL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL0 *((volatile unsigned int*)(0x42CA0020UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL1 *((volatile unsigned int*)(0x42CA0024UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL2 *((volatile unsigned int*)(0x42CA0028UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL3 *((volatile unsigned int*)(0x42CA002CUL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL4 *((volatile unsigned int*)(0x42CA0030UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL5 *((volatile unsigned int*)(0x42CA0034UL)) -#define bFM3_ETHERNET_MAC0_BMR_PR0 *((volatile unsigned int*)(0x42CA0038UL)) -#define bFM3_ETHERNET_MAC0_BMR_PR1 *((volatile unsigned int*)(0x42CA003CUL)) -#define bFM3_ETHERNET_MAC0_BMR_FB *((volatile unsigned int*)(0x42CA0040UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL0 *((volatile unsigned int*)(0x42CA0044UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL1 *((volatile unsigned int*)(0x42CA0048UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL2 *((volatile unsigned int*)(0x42CA004CUL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL3 *((volatile unsigned int*)(0x42CA0050UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL4 *((volatile unsigned int*)(0x42CA0054UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL5 *((volatile unsigned int*)(0x42CA0058UL)) -#define bFM3_ETHERNET_MAC0_BMR_USP *((volatile unsigned int*)(0x42CA005CUL)) -#define bFM3_ETHERNET_MAC0_BMR_8XPBL *((volatile unsigned int*)(0x42CA0060UL)) -#define bFM3_ETHERNET_MAC0_BMR_AAL *((volatile unsigned int*)(0x42CA0064UL)) -#define bFM3_ETHERNET_MAC0_BMR_MB *((volatile unsigned int*)(0x42CA0068UL)) -#define bFM3_ETHERNET_MAC0_BMR_TXPR *((volatile unsigned int*)(0x42CA006CUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD0 *((volatile unsigned int*)(0x42CA0080UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD1 *((volatile unsigned int*)(0x42CA0084UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD2 *((volatile unsigned int*)(0x42CA0088UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD3 *((volatile unsigned int*)(0x42CA008CUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD4 *((volatile unsigned int*)(0x42CA0090UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD5 *((volatile unsigned int*)(0x42CA0094UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD6 *((volatile unsigned int*)(0x42CA0098UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD7 *((volatile unsigned int*)(0x42CA009CUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD8 *((volatile unsigned int*)(0x42CA00A0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD9 *((volatile unsigned int*)(0x42CA00A4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD10 *((volatile unsigned int*)(0x42CA00A8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD11 *((volatile unsigned int*)(0x42CA00ACUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD12 *((volatile unsigned int*)(0x42CA00B0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD13 *((volatile unsigned int*)(0x42CA00B4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD14 *((volatile unsigned int*)(0x42CA00B8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD15 *((volatile unsigned int*)(0x42CA00BCUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD16 *((volatile unsigned int*)(0x42CA00C0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD17 *((volatile unsigned int*)(0x42CA00C4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD18 *((volatile unsigned int*)(0x42CA00C8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD19 *((volatile unsigned int*)(0x42CA00CCUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD20 *((volatile unsigned int*)(0x42CA00D0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD21 *((volatile unsigned int*)(0x42CA00D4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD22 *((volatile unsigned int*)(0x42CA00D8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD23 *((volatile unsigned int*)(0x42CA00DCUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD24 *((volatile unsigned int*)(0x42CA00E0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD25 *((volatile unsigned int*)(0x42CA00E4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD26 *((volatile unsigned int*)(0x42CA00E8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD27 *((volatile unsigned int*)(0x42CA00ECUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD28 *((volatile unsigned int*)(0x42CA00F0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD29 *((volatile unsigned int*)(0x42CA00F4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD30 *((volatile unsigned int*)(0x42CA00F8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD31 *((volatile unsigned int*)(0x42CA00FCUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD0 *((volatile unsigned int*)(0x42CA0100UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD1 *((volatile unsigned int*)(0x42CA0104UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD2 *((volatile unsigned int*)(0x42CA0108UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD3 *((volatile unsigned int*)(0x42CA010CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD4 *((volatile unsigned int*)(0x42CA0110UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD5 *((volatile unsigned int*)(0x42CA0114UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD6 *((volatile unsigned int*)(0x42CA0118UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD7 *((volatile unsigned int*)(0x42CA011CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD8 *((volatile unsigned int*)(0x42CA0120UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD9 *((volatile unsigned int*)(0x42CA0124UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD10 *((volatile unsigned int*)(0x42CA0128UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD11 *((volatile unsigned int*)(0x42CA012CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD12 *((volatile unsigned int*)(0x42CA0130UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD13 *((volatile unsigned int*)(0x42CA0134UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD14 *((volatile unsigned int*)(0x42CA0138UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD15 *((volatile unsigned int*)(0x42CA013CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD16 *((volatile unsigned int*)(0x42CA0140UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD17 *((volatile unsigned int*)(0x42CA0144UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD18 *((volatile unsigned int*)(0x42CA0148UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD19 *((volatile unsigned int*)(0x42CA014CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD20 *((volatile unsigned int*)(0x42CA0150UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD21 *((volatile unsigned int*)(0x42CA0154UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD22 *((volatile unsigned int*)(0x42CA0158UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD23 *((volatile unsigned int*)(0x42CA015CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD24 *((volatile unsigned int*)(0x42CA0160UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD25 *((volatile unsigned int*)(0x42CA0164UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD26 *((volatile unsigned int*)(0x42CA0168UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD27 *((volatile unsigned int*)(0x42CA016CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD28 *((volatile unsigned int*)(0x42CA0170UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD29 *((volatile unsigned int*)(0x42CA0174UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD30 *((volatile unsigned int*)(0x42CA0178UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD31 *((volatile unsigned int*)(0x42CA017CUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL2 *((volatile unsigned int*)(0x42CA0188UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL3 *((volatile unsigned int*)(0x42CA018CUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL4 *((volatile unsigned int*)(0x42CA0190UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL5 *((volatile unsigned int*)(0x42CA0194UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL6 *((volatile unsigned int*)(0x42CA0198UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL7 *((volatile unsigned int*)(0x42CA019CUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL8 *((volatile unsigned int*)(0x42CA01A0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL9 *((volatile unsigned int*)(0x42CA01A4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL10 *((volatile unsigned int*)(0x42CA01A8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL11 *((volatile unsigned int*)(0x42CA01ACUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL12 *((volatile unsigned int*)(0x42CA01B0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL13 *((volatile unsigned int*)(0x42CA01B4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL14 *((volatile unsigned int*)(0x42CA01B8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL15 *((volatile unsigned int*)(0x42CA01BCUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL16 *((volatile unsigned int*)(0x42CA01C0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL17 *((volatile unsigned int*)(0x42CA01C4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL18 *((volatile unsigned int*)(0x42CA01C8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL19 *((volatile unsigned int*)(0x42CA01CCUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL20 *((volatile unsigned int*)(0x42CA01D0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL21 *((volatile unsigned int*)(0x42CA01D4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL22 *((volatile unsigned int*)(0x42CA01D8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL23 *((volatile unsigned int*)(0x42CA01DCUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL24 *((volatile unsigned int*)(0x42CA01E0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL25 *((volatile unsigned int*)(0x42CA01E4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL26 *((volatile unsigned int*)(0x42CA01E8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL27 *((volatile unsigned int*)(0x42CA01ECUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL28 *((volatile unsigned int*)(0x42CA01F0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL29 *((volatile unsigned int*)(0x42CA01F4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL30 *((volatile unsigned int*)(0x42CA01F8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL31 *((volatile unsigned int*)(0x42CA01FCUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL2 *((volatile unsigned int*)(0x42CA0208UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL3 *((volatile unsigned int*)(0x42CA020CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL4 *((volatile unsigned int*)(0x42CA0210UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL5 *((volatile unsigned int*)(0x42CA0214UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL6 *((volatile unsigned int*)(0x42CA0218UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL7 *((volatile unsigned int*)(0x42CA021CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL8 *((volatile unsigned int*)(0x42CA0220UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL9 *((volatile unsigned int*)(0x42CA0224UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL10 *((volatile unsigned int*)(0x42CA0228UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL11 *((volatile unsigned int*)(0x42CA022CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL12 *((volatile unsigned int*)(0x42CA0230UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL13 *((volatile unsigned int*)(0x42CA0234UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL14 *((volatile unsigned int*)(0x42CA0238UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL15 *((volatile unsigned int*)(0x42CA023CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL16 *((volatile unsigned int*)(0x42CA0240UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL17 *((volatile unsigned int*)(0x42CA0244UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL18 *((volatile unsigned int*)(0x42CA0248UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL19 *((volatile unsigned int*)(0x42CA024CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL20 *((volatile unsigned int*)(0x42CA0250UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL21 *((volatile unsigned int*)(0x42CA0254UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL22 *((volatile unsigned int*)(0x42CA0258UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL23 *((volatile unsigned int*)(0x42CA025CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL24 *((volatile unsigned int*)(0x42CA0260UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL25 *((volatile unsigned int*)(0x42CA0264UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL26 *((volatile unsigned int*)(0x42CA0268UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL27 *((volatile unsigned int*)(0x42CA026CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL28 *((volatile unsigned int*)(0x42CA0270UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL29 *((volatile unsigned int*)(0x42CA0274UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL30 *((volatile unsigned int*)(0x42CA0278UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL31 *((volatile unsigned int*)(0x42CA027CUL)) -#define bFM3_ETHERNET_MAC0_SR_TI *((volatile unsigned int*)(0x42CA0280UL)) -#define bFM3_ETHERNET_MAC0_SR_TPS *((volatile unsigned int*)(0x42CA0284UL)) -#define bFM3_ETHERNET_MAC0_SR_TU *((volatile unsigned int*)(0x42CA0288UL)) -#define bFM3_ETHERNET_MAC0_SR_TJT *((volatile unsigned int*)(0x42CA028CUL)) -#define bFM3_ETHERNET_MAC0_SR_OVF *((volatile unsigned int*)(0x42CA0290UL)) -#define bFM3_ETHERNET_MAC0_SR_UNF *((volatile unsigned int*)(0x42CA0294UL)) -#define bFM3_ETHERNET_MAC0_SR_RI *((volatile unsigned int*)(0x42CA0298UL)) -#define bFM3_ETHERNET_MAC0_SR_RU *((volatile unsigned int*)(0x42CA029CUL)) -#define bFM3_ETHERNET_MAC0_SR_RPS *((volatile unsigned int*)(0x42CA02A0UL)) -#define bFM3_ETHERNET_MAC0_SR_RWT *((volatile unsigned int*)(0x42CA02A4UL)) -#define bFM3_ETHERNET_MAC0_SR_ETI *((volatile unsigned int*)(0x42CA02A8UL)) -#define bFM3_ETHERNET_MAC0_SR_FBI *((volatile unsigned int*)(0x42CA02B4UL)) -#define bFM3_ETHERNET_MAC0_SR_ERI *((volatile unsigned int*)(0x42CA02B8UL)) -#define bFM3_ETHERNET_MAC0_SR_AIS *((volatile unsigned int*)(0x42CA02BCUL)) -#define bFM3_ETHERNET_MAC0_SR_NIS *((volatile unsigned int*)(0x42CA02C0UL)) -#define bFM3_ETHERNET_MAC0_SR_RS0 *((volatile unsigned int*)(0x42CA02C4UL)) -#define bFM3_ETHERNET_MAC0_SR_RS1 *((volatile unsigned int*)(0x42CA02C8UL)) -#define bFM3_ETHERNET_MAC0_SR_RS2 *((volatile unsigned int*)(0x42CA02CCUL)) -#define bFM3_ETHERNET_MAC0_SR_TS0 *((volatile unsigned int*)(0x42CA02D0UL)) -#define bFM3_ETHERNET_MAC0_SR_TS1 *((volatile unsigned int*)(0x42CA02D4UL)) -#define bFM3_ETHERNET_MAC0_SR_TS2 *((volatile unsigned int*)(0x42CA02D8UL)) -#define bFM3_ETHERNET_MAC0_SR_EB0 *((volatile unsigned int*)(0x42CA02DCUL)) -#define bFM3_ETHERNET_MAC0_SR_EB1 *((volatile unsigned int*)(0x42CA02E0UL)) -#define bFM3_ETHERNET_MAC0_SR_EB2 *((volatile unsigned int*)(0x42CA02E4UL)) -#define bFM3_ETHERNET_MAC0_SR_GLI *((volatile unsigned int*)(0x42CA02E8UL)) -#define bFM3_ETHERNET_MAC0_SR_GMI *((volatile unsigned int*)(0x42CA02ECUL)) -#define bFM3_ETHERNET_MAC0_SR_GPI *((volatile unsigned int*)(0x42CA02F0UL)) -#define bFM3_ETHERNET_MAC0_SR_TTI *((volatile unsigned int*)(0x42CA02F4UL)) -#define bFM3_ETHERNET_MAC0_SR_GLPII *((volatile unsigned int*)(0x42CA02F8UL)) -#define bFM3_ETHERNET_MAC0_OMR_SR *((volatile unsigned int*)(0x42CA0304UL)) -#define bFM3_ETHERNET_MAC0_OMR_OSF *((volatile unsigned int*)(0x42CA0308UL)) -#define bFM3_ETHERNET_MAC0_OMR_RTC0 *((volatile unsigned int*)(0x42CA030CUL)) -#define bFM3_ETHERNET_MAC0_OMR_RTC1 *((volatile unsigned int*)(0x42CA0310UL)) -#define bFM3_ETHERNET_MAC0_OMR_FUF *((volatile unsigned int*)(0x42CA0318UL)) -#define bFM3_ETHERNET_MAC0_OMR_FEF *((volatile unsigned int*)(0x42CA031CUL)) -#define bFM3_ETHERNET_MAC0_OMR_ST *((volatile unsigned int*)(0x42CA0334UL)) -#define bFM3_ETHERNET_MAC0_OMR_TTC0 *((volatile unsigned int*)(0x42CA0338UL)) -#define bFM3_ETHERNET_MAC0_OMR_TTC1 *((volatile unsigned int*)(0x42CA033CUL)) -#define bFM3_ETHERNET_MAC0_OMR_TTC2 *((volatile unsigned int*)(0x42CA0340UL)) -#define bFM3_ETHERNET_MAC0_OMR_FTF *((volatile unsigned int*)(0x42CA0350UL)) -#define bFM3_ETHERNET_MAC0_OMR_TSF *((volatile unsigned int*)(0x42CA0354UL)) -#define bFM3_ETHERNET_MAC0_OMR_DFF *((volatile unsigned int*)(0x42CA0360UL)) -#define bFM3_ETHERNET_MAC0_OMR_RSF *((volatile unsigned int*)(0x42CA0364UL)) -#define bFM3_ETHERNET_MAC0_OMR_DT *((volatile unsigned int*)(0x42CA0368UL)) -#define bFM3_ETHERNET_MAC0_IER_TIE *((volatile unsigned int*)(0x42CA0380UL)) -#define bFM3_ETHERNET_MAC0_IER_TSE *((volatile unsigned int*)(0x42CA0384UL)) -#define bFM3_ETHERNET_MAC0_IER_TUE *((volatile unsigned int*)(0x42CA0388UL)) -#define bFM3_ETHERNET_MAC0_IER_TJE *((volatile unsigned int*)(0x42CA038CUL)) -#define bFM3_ETHERNET_MAC0_IER_OVE *((volatile unsigned int*)(0x42CA0390UL)) -#define bFM3_ETHERNET_MAC0_IER_UNE *((volatile unsigned int*)(0x42CA0394UL)) -#define bFM3_ETHERNET_MAC0_IER_RIE *((volatile unsigned int*)(0x42CA0398UL)) -#define bFM3_ETHERNET_MAC0_IER_RUE *((volatile unsigned int*)(0x42CA039CUL)) -#define bFM3_ETHERNET_MAC0_IER_RSE *((volatile unsigned int*)(0x42CA03A0UL)) -#define bFM3_ETHERNET_MAC0_IER_RWE *((volatile unsigned int*)(0x42CA03A4UL)) -#define bFM3_ETHERNET_MAC0_IER_ETE *((volatile unsigned int*)(0x42CA03A8UL)) -#define bFM3_ETHERNET_MAC0_IER_FBE *((volatile unsigned int*)(0x42CA03B4UL)) -#define bFM3_ETHERNET_MAC0_IER_ERE *((volatile unsigned int*)(0x42CA03B8UL)) -#define bFM3_ETHERNET_MAC0_IER_AIE *((volatile unsigned int*)(0x42CA03BCUL)) -#define bFM3_ETHERNET_MAC0_IER_NIE *((volatile unsigned int*)(0x42CA03C0UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42CA0400UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42CA0404UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42CA0408UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42CA040CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42CA0410UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42CA0414UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42CA0418UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42CA041CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42CA0420UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42CA0424UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42CA0428UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42CA042CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42CA0430UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42CA0434UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42CA0438UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42CA043CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFH *((volatile unsigned int*)(0x42CA0440UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42CA0444UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42CA0448UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42CA044CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42CA0450UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42CA0454UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42CA0458UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42CA045CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42CA0460UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42CA0464UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42CA0468UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42CA046CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFF *((volatile unsigned int*)(0x42CA0470UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT0 *((volatile unsigned int*)(0x42CA0480UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT1 *((volatile unsigned int*)(0x42CA0484UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT2 *((volatile unsigned int*)(0x42CA0488UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT3 *((volatile unsigned int*)(0x42CA048CUL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT4 *((volatile unsigned int*)(0x42CA0490UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT5 *((volatile unsigned int*)(0x42CA0494UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT6 *((volatile unsigned int*)(0x42CA0498UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT7 *((volatile unsigned int*)(0x42CA049CUL)) -#define bFM3_ETHERNET_MAC0_AHBSR_AHBS *((volatile unsigned int*)(0x42CA0580UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42CA0900UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42CA0904UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42CA0908UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42CA090CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42CA0910UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42CA0914UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42CA0918UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42CA091CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42CA0920UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42CA0924UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42CA0928UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42CA092CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42CA0930UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42CA0934UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42CA0938UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42CA093CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42CA0940UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42CA0944UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42CA0948UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42CA094CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42CA0950UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42CA0954UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42CA0958UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42CA095CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42CA0960UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42CA0964UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42CA0968UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42CA096CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42CA0970UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42CA0974UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42CA0978UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42CA097CUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42CA0980UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42CA0984UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42CA0988UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42CA098CUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42CA0990UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42CA0994UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42CA0998UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42CA099CUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42CA09A0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42CA09A4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42CA09A8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42CA09ACUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42CA09B0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42CA09B4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42CA09B8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42CA09BCUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42CA09C0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42CA09C4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42CA09C8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42CA09CCUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42CA09D0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42CA09D4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42CA09D8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42CA09DCUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42CA09E0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42CA09E4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42CA09E8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42CA09ECUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42CA09F0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42CA09F4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42CA09F8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42CA09FCUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42CA0A00UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42CA0A04UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42CA0A08UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42CA0A0CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42CA0A10UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42CA0A14UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42CA0A18UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42CA0A1CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42CA0A20UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42CA0A24UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42CA0A28UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42CA0A2CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42CA0A30UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42CA0A34UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42CA0A38UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42CA0A3CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42CA0A40UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42CA0A44UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42CA0A48UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42CA0A4CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42CA0A50UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42CA0A54UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42CA0A58UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42CA0A5CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42CA0A60UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42CA0A64UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42CA0A68UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42CA0A6CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42CA0A70UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42CA0A74UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42CA0A78UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42CA0A7CUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42CA0A80UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42CA0A84UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42CA0A88UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42CA0A8CUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42CA0A90UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42CA0A94UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42CA0A98UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42CA0A9CUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42CA0AA0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42CA0AA4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42CA0AA8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42CA0AACUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42CA0AB0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42CA0AB4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42CA0AB8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42CA0ABCUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42CA0AC0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42CA0AC4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42CA0AC8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42CA0ACCUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42CA0AD0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42CA0AD4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42CA0AD8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42CA0ADCUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42CA0AE0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42CA0AE4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42CA0AE8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42CA0AECUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42CA0AF0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42CA0AF4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42CA0AF8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42CA0AFCUL)) - -/* ETHERNET-MAC-CONTROL registers */ -#define bFM3_ETHERNET_CONTROL_ETH_MODE_IFMODE *((volatile unsigned int*)(0x42CC0000UL)) -#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST0 *((volatile unsigned int*)(0x42CC0020UL)) -#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST1 *((volatile unsigned int*)(0x42CC0024UL)) -#define bFM3_ETHERNET_CONTROL_ETH_MODE_PPSSEL *((volatile unsigned int*)(0x42CC0070UL)) -#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN0 *((volatile unsigned int*)(0x42CC0100UL)) -#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN1 *((volatile unsigned int*)(0x42CC0104UL)) - -/* ETHERNET-MAC1 registers*/ -#define bFM3_ETHERNET_MAC1_MCR_RE *((volatile unsigned int*)(0x42CE0008UL)) -#define bFM3_ETHERNET_MAC1_MCR_TE *((volatile unsigned int*)(0x42CE000CUL)) -#define bFM3_ETHERNET_MAC1_MCR_DC *((volatile unsigned int*)(0x42CE0010UL)) -#define bFM3_ETHERNET_MAC1_MCR_BL0 *((volatile unsigned int*)(0x42CE0014UL)) -#define bFM3_ETHERNET_MAC1_MCR_BL1 *((volatile unsigned int*)(0x42CE0018UL)) -#define bFM3_ETHERNET_MAC1_MCR_ACS *((volatile unsigned int*)(0x42CE001CUL)) -#define bFM3_ETHERNET_MAC1_MCR_LUD *((volatile unsigned int*)(0x42CE0020UL)) -#define bFM3_ETHERNET_MAC1_MCR_DR *((volatile unsigned int*)(0x42CE0024UL)) -#define bFM3_ETHERNET_MAC1_MCR_IPC *((volatile unsigned int*)(0x42CE0028UL)) -#define bFM3_ETHERNET_MAC1_MCR_DM *((volatile unsigned int*)(0x42CE002CUL)) -#define bFM3_ETHERNET_MAC1_MCR_LM *((volatile unsigned int*)(0x42CE0030UL)) -#define bFM3_ETHERNET_MAC1_MCR_DO *((volatile unsigned int*)(0x42CE0034UL)) -#define bFM3_ETHERNET_MAC1_MCR_FES *((volatile unsigned int*)(0x42CE0038UL)) -#define bFM3_ETHERNET_MAC1_MCR_PS *((volatile unsigned int*)(0x42CE003CUL)) -#define bFM3_ETHERNET_MAC1_MCR_DCRS *((volatile unsigned int*)(0x42CE0040UL)) -#define bFM3_ETHERNET_MAC1_MCR_IFG0 *((volatile unsigned int*)(0x42CE0044UL)) -#define bFM3_ETHERNET_MAC1_MCR_IFG1 *((volatile unsigned int*)(0x42CE0048UL)) -#define bFM3_ETHERNET_MAC1_MCR_IFG2 *((volatile unsigned int*)(0x42CE004CUL)) -#define bFM3_ETHERNET_MAC1_MCR_JE *((volatile unsigned int*)(0x42CE0050UL)) -#define bFM3_ETHERNET_MAC1_MCR_BE *((volatile unsigned int*)(0x42CE0054UL)) -#define bFM3_ETHERNET_MAC1_MCR_JD *((volatile unsigned int*)(0x42CE0058UL)) -#define bFM3_ETHERNET_MAC1_MCR_WD *((volatile unsigned int*)(0x42CE005CUL)) -#define bFM3_ETHERNET_MAC1_MCR_TC *((volatile unsigned int*)(0x42CE0060UL)) -#define bFM3_ETHERNET_MAC1_MCR_CST *((volatile unsigned int*)(0x42CE0064UL)) -#define bFM3_ETHERNET_MAC1_MFFR_PR *((volatile unsigned int*)(0x42CE0080UL)) -#define bFM3_ETHERNET_MAC1_MFFR_HUC *((volatile unsigned int*)(0x42CE0084UL)) -#define bFM3_ETHERNET_MAC1_MFFR_HMC *((volatile unsigned int*)(0x42CE0088UL)) -#define bFM3_ETHERNET_MAC1_MFFR_DAIF *((volatile unsigned int*)(0x42CE008CUL)) -#define bFM3_ETHERNET_MAC1_MFFR_PM *((volatile unsigned int*)(0x42CE0090UL)) -#define bFM3_ETHERNET_MAC1_MFFR_DB *((volatile unsigned int*)(0x42CE0094UL)) -#define bFM3_ETHERNET_MAC1_MFFR_PCF0 *((volatile unsigned int*)(0x42CE0098UL)) -#define bFM3_ETHERNET_MAC1_MFFR_PCF1 *((volatile unsigned int*)(0x42CE009CUL)) -#define bFM3_ETHERNET_MAC1_MFFR_SAIF *((volatile unsigned int*)(0x42CE00A0UL)) -#define bFM3_ETHERNET_MAC1_MFFR_SAF *((volatile unsigned int*)(0x42CE00A4UL)) -#define bFM3_ETHERNET_MAC1_MFFR_HPF *((volatile unsigned int*)(0x42CE00A8UL)) -#define bFM3_ETHERNET_MAC1_MFFR_RA *((volatile unsigned int*)(0x42CE00FCUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH0 *((volatile unsigned int*)(0x42CE0100UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH1 *((volatile unsigned int*)(0x42CE0104UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH2 *((volatile unsigned int*)(0x42CE0108UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH3 *((volatile unsigned int*)(0x42CE010CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH4 *((volatile unsigned int*)(0x42CE0110UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH5 *((volatile unsigned int*)(0x42CE0114UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH6 *((volatile unsigned int*)(0x42CE0118UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH7 *((volatile unsigned int*)(0x42CE011CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH8 *((volatile unsigned int*)(0x42CE0120UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH9 *((volatile unsigned int*)(0x42CE0124UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH10 *((volatile unsigned int*)(0x42CE0128UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH11 *((volatile unsigned int*)(0x42CE012CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH12 *((volatile unsigned int*)(0x42CE0130UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH13 *((volatile unsigned int*)(0x42CE0134UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH14 *((volatile unsigned int*)(0x42CE0138UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH15 *((volatile unsigned int*)(0x42CE013CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH16 *((volatile unsigned int*)(0x42CE0140UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH17 *((volatile unsigned int*)(0x42CE0144UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH18 *((volatile unsigned int*)(0x42CE0148UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH19 *((volatile unsigned int*)(0x42CE014CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH20 *((volatile unsigned int*)(0x42CE0150UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH21 *((volatile unsigned int*)(0x42CE0154UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH22 *((volatile unsigned int*)(0x42CE0158UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH23 *((volatile unsigned int*)(0x42CE015CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH24 *((volatile unsigned int*)(0x42CE0160UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH25 *((volatile unsigned int*)(0x42CE0164UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH26 *((volatile unsigned int*)(0x42CE0168UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH27 *((volatile unsigned int*)(0x42CE016CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH28 *((volatile unsigned int*)(0x42CE0170UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH29 *((volatile unsigned int*)(0x42CE0174UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH30 *((volatile unsigned int*)(0x42CE0178UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH31 *((volatile unsigned int*)(0x42CE017CUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL0 *((volatile unsigned int*)(0x42CE0180UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL1 *((volatile unsigned int*)(0x42CE0184UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL2 *((volatile unsigned int*)(0x42CE0188UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL3 *((volatile unsigned int*)(0x42CE018CUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL4 *((volatile unsigned int*)(0x42CE0190UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL5 *((volatile unsigned int*)(0x42CE0194UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL6 *((volatile unsigned int*)(0x42CE0198UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL7 *((volatile unsigned int*)(0x42CE019CUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL8 *((volatile unsigned int*)(0x42CE01A0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL9 *((volatile unsigned int*)(0x42CE01A4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL10 *((volatile unsigned int*)(0x42CE01A8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL11 *((volatile unsigned int*)(0x42CE01ACUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL12 *((volatile unsigned int*)(0x42CE01B0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL13 *((volatile unsigned int*)(0x42CE01B4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL14 *((volatile unsigned int*)(0x42CE01B8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL15 *((volatile unsigned int*)(0x42CE01BCUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL16 *((volatile unsigned int*)(0x42CE01C0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL17 *((volatile unsigned int*)(0x42CE01C4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL18 *((volatile unsigned int*)(0x42CE01C8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL19 *((volatile unsigned int*)(0x42CE01CCUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL20 *((volatile unsigned int*)(0x42CE01D0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL21 *((volatile unsigned int*)(0x42CE01D4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL22 *((volatile unsigned int*)(0x42CE01D8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL23 *((volatile unsigned int*)(0x42CE01DCUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL24 *((volatile unsigned int*)(0x42CE01E0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL25 *((volatile unsigned int*)(0x42CE01E4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL26 *((volatile unsigned int*)(0x42CE01E8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL27 *((volatile unsigned int*)(0x42CE01ECUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL28 *((volatile unsigned int*)(0x42CE01F0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL29 *((volatile unsigned int*)(0x42CE01F4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL30 *((volatile unsigned int*)(0x42CE01F8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL31 *((volatile unsigned int*)(0x42CE01FCUL)) -#define bFM3_ETHERNET_MAC1_GAR_GB *((volatile unsigned int*)(0x42CE0200UL)) -#define bFM3_ETHERNET_MAC1_GAR_GW *((volatile unsigned int*)(0x42CE0204UL)) -#define bFM3_ETHERNET_MAC1_GAR_CR0 *((volatile unsigned int*)(0x42CE0208UL)) -#define bFM3_ETHERNET_MAC1_GAR_CR1 *((volatile unsigned int*)(0x42CE020CUL)) -#define bFM3_ETHERNET_MAC1_GAR_CR2 *((volatile unsigned int*)(0x42CE0210UL)) -#define bFM3_ETHERNET_MAC1_GAR_CR3 *((volatile unsigned int*)(0x42CE0214UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR0 *((volatile unsigned int*)(0x42CE0218UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR1 *((volatile unsigned int*)(0x42CE021CUL)) -#define bFM3_ETHERNET_MAC1_GAR_GR2 *((volatile unsigned int*)(0x42CE0220UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR3 *((volatile unsigned int*)(0x42CE0224UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR4 *((volatile unsigned int*)(0x42CE0228UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA0 *((volatile unsigned int*)(0x42CE022CUL)) -#define bFM3_ETHERNET_MAC1_GAR_PA1 *((volatile unsigned int*)(0x42CE0230UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA2 *((volatile unsigned int*)(0x42CE0234UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA3 *((volatile unsigned int*)(0x42CE0238UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA4 *((volatile unsigned int*)(0x42CE023CUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD0 *((volatile unsigned int*)(0x42CE0280UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD1 *((volatile unsigned int*)(0x42CE0284UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD2 *((volatile unsigned int*)(0x42CE0288UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD3 *((volatile unsigned int*)(0x42CE028CUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD4 *((volatile unsigned int*)(0x42CE0290UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD5 *((volatile unsigned int*)(0x42CE0294UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD6 *((volatile unsigned int*)(0x42CE0298UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD7 *((volatile unsigned int*)(0x42CE029CUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD8 *((volatile unsigned int*)(0x42CE02A0UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD9 *((volatile unsigned int*)(0x42CE02A4UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD10 *((volatile unsigned int*)(0x42CE02A8UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD11 *((volatile unsigned int*)(0x42CE02ACUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD12 *((volatile unsigned int*)(0x42CE02B0UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD13 *((volatile unsigned int*)(0x42CE02B4UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD14 *((volatile unsigned int*)(0x42CE02B8UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD15 *((volatile unsigned int*)(0x42CE02BCUL)) -#define bFM3_ETHERNET_MAC1_FCR_FCB_BPA *((volatile unsigned int*)(0x42CE0300UL)) -#define bFM3_ETHERNET_MAC1_FCR_TFE *((volatile unsigned int*)(0x42CE0304UL)) -#define bFM3_ETHERNET_MAC1_FCR_RFE *((volatile unsigned int*)(0x42CE0308UL)) -#define bFM3_ETHERNET_MAC1_FCR_UP *((volatile unsigned int*)(0x42CE030CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PLT0 *((volatile unsigned int*)(0x42CE0310UL)) -#define bFM3_ETHERNET_MAC1_FCR_PLT1 *((volatile unsigned int*)(0x42CE0314UL)) -#define bFM3_ETHERNET_MAC1_FCR_DZPQ *((volatile unsigned int*)(0x42CE031CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT0 *((volatile unsigned int*)(0x42CE0340UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT1 *((volatile unsigned int*)(0x42CE0344UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT2 *((volatile unsigned int*)(0x42CE0348UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT3 *((volatile unsigned int*)(0x42CE034CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT4 *((volatile unsigned int*)(0x42CE0350UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT5 *((volatile unsigned int*)(0x42CE0354UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT6 *((volatile unsigned int*)(0x42CE0358UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT7 *((volatile unsigned int*)(0x42CE035CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT8 *((volatile unsigned int*)(0x42CE0360UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT9 *((volatile unsigned int*)(0x42CE0364UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT10 *((volatile unsigned int*)(0x42CE0368UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT11 *((volatile unsigned int*)(0x42CE036CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT12 *((volatile unsigned int*)(0x42CE0370UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT13 *((volatile unsigned int*)(0x42CE0374UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT14 *((volatile unsigned int*)(0x42CE0378UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT15 *((volatile unsigned int*)(0x42CE037CUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL0 *((volatile unsigned int*)(0x42CE0380UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL1 *((volatile unsigned int*)(0x42CE0384UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL2 *((volatile unsigned int*)(0x42CE0388UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL3 *((volatile unsigned int*)(0x42CE038CUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL4 *((volatile unsigned int*)(0x42CE0390UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL5 *((volatile unsigned int*)(0x42CE0394UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL6 *((volatile unsigned int*)(0x42CE0398UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL7 *((volatile unsigned int*)(0x42CE039CUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL8 *((volatile unsigned int*)(0x42CE03A0UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL9 *((volatile unsigned int*)(0x42CE03A4UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL10 *((volatile unsigned int*)(0x42CE03A8UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL11 *((volatile unsigned int*)(0x42CE03ACUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL12 *((volatile unsigned int*)(0x42CE03B0UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL13 *((volatile unsigned int*)(0x42CE03B4UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL14 *((volatile unsigned int*)(0x42CE03B8UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL15 *((volatile unsigned int*)(0x42CE03BCUL)) -#define bFM3_ETHERNET_MAC1_VTR_ETV *((volatile unsigned int*)(0x42CE03C0UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42CE0500UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42CE0504UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42CE0508UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42CE050CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42CE0510UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42CE0514UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42CE0518UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42CE051CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42CE0520UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42CE0524UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42CE0528UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42CE052CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42CE0530UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42CE0534UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42CE0538UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42CE053CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42CE0540UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42CE0544UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42CE0548UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42CE054CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42CE0550UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42CE0554UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42CE0558UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42CE055CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42CE0560UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42CE0564UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42CE0568UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42CE056CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42CE0570UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42CE0574UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42CE0578UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42CE057CUL)) -#define bFM3_ETHERNET_MAC1_PMTR_PD *((volatile unsigned int*)(0x42CE0580UL)) -#define bFM3_ETHERNET_MAC1_PMTR_MPE *((volatile unsigned int*)(0x42CE0584UL)) -#define bFM3_ETHERNET_MAC1_PMTR_WFE *((volatile unsigned int*)(0x42CE0588UL)) -#define bFM3_ETHERNET_MAC1_PMTR_MPR *((volatile unsigned int*)(0x42CE0594UL)) -#define bFM3_ETHERNET_MAC1_PMTR_WPR *((volatile unsigned int*)(0x42CE0598UL)) -#define bFM3_ETHERNET_MAC1_PMTR_GU *((volatile unsigned int*)(0x42CE05A4UL)) -#define bFM3_ETHERNET_MAC1_PMTR_RWFFRPR *((volatile unsigned int*)(0x42CE05FCUL)) -#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEN *((volatile unsigned int*)(0x42CE0600UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEX *((volatile unsigned int*)(0x42CE0604UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEN *((volatile unsigned int*)(0x42CE0608UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEX *((volatile unsigned int*)(0x42CE060CUL)) -#define bFM3_ETHERNET_MAC1_LPICSR_TLPIST *((volatile unsigned int*)(0x42CE0620UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_RLPIST *((volatile unsigned int*)(0x42CE0624UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_LPIEN *((volatile unsigned int*)(0x42CE0640UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_PLS *((volatile unsigned int*)(0x42CE0644UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_PLSEN *((volatile unsigned int*)(0x42CE0648UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_LPITXA *((volatile unsigned int*)(0x42CE064CUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT0 *((volatile unsigned int*)(0x42CE0680UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT1 *((volatile unsigned int*)(0x42CE0684UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT2 *((volatile unsigned int*)(0x42CE0688UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT3 *((volatile unsigned int*)(0x42CE068CUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT4 *((volatile unsigned int*)(0x42CE0690UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT5 *((volatile unsigned int*)(0x42CE0694UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT6 *((volatile unsigned int*)(0x42CE0698UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT7 *((volatile unsigned int*)(0x42CE069CUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT8 *((volatile unsigned int*)(0x42CE06A0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT9 *((volatile unsigned int*)(0x42CE06A4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT10 *((volatile unsigned int*)(0x42CE06A8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT11 *((volatile unsigned int*)(0x42CE06ACUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT12 *((volatile unsigned int*)(0x42CE06B0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT13 *((volatile unsigned int*)(0x42CE06B4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT14 *((volatile unsigned int*)(0x42CE06B8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT15 *((volatile unsigned int*)(0x42CE06BCUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT0 *((volatile unsigned int*)(0x42CE06C0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT1 *((volatile unsigned int*)(0x42CE06C4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT2 *((volatile unsigned int*)(0x42CE06C8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT3 *((volatile unsigned int*)(0x42CE06CCUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT4 *((volatile unsigned int*)(0x42CE06D0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT5 *((volatile unsigned int*)(0x42CE06D4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT6 *((volatile unsigned int*)(0x42CE06D8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT7 *((volatile unsigned int*)(0x42CE06DCUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT8 *((volatile unsigned int*)(0x42CE06E0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT9 *((volatile unsigned int*)(0x42CE06E4UL)) -#define bFM3_ETHERNET_MAC1_ISR_RGIS *((volatile unsigned int*)(0x42CE0700UL)) -#define bFM3_ETHERNET_MAC1_ISR_PIS *((volatile unsigned int*)(0x42CE070CUL)) -#define bFM3_ETHERNET_MAC1_ISR_MIS *((volatile unsigned int*)(0x42CE0710UL)) -#define bFM3_ETHERNET_MAC1_ISR_RIS *((volatile unsigned int*)(0x42CE0714UL)) -#define bFM3_ETHERNET_MAC1_ISR_TIS *((volatile unsigned int*)(0x42CE0718UL)) -#define bFM3_ETHERNET_MAC1_ISR_COIS *((volatile unsigned int*)(0x42CE071CUL)) -#define bFM3_ETHERNET_MAC1_ISR_TSIS *((volatile unsigned int*)(0x42CE0724UL)) -#define bFM3_ETHERNET_MAC1_ISR_LPIIS *((volatile unsigned int*)(0x42CE0728UL)) -#define bFM3_ETHERNET_MAC1_IMR_RGIM *((volatile unsigned int*)(0x42CE0780UL)) -#define bFM3_ETHERNET_MAC1_IMR_PIM *((volatile unsigned int*)(0x42CE078CUL)) -#define bFM3_ETHERNET_MAC1_IMR_TSIM *((volatile unsigned int*)(0x42CE0794UL)) -#define bFM3_ETHERNET_MAC1_IMR_LPIIM *((volatile unsigned int*)(0x42CE0798UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A32 *((volatile unsigned int*)(0x42CE0800UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A33 *((volatile unsigned int*)(0x42CE0804UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A34 *((volatile unsigned int*)(0x42CE0808UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A35 *((volatile unsigned int*)(0x42CE080CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A36 *((volatile unsigned int*)(0x42CE0810UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A37 *((volatile unsigned int*)(0x42CE0814UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A38 *((volatile unsigned int*)(0x42CE0818UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A39 *((volatile unsigned int*)(0x42CE081CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A40 *((volatile unsigned int*)(0x42CE0820UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A41 *((volatile unsigned int*)(0x42CE0824UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A42 *((volatile unsigned int*)(0x42CE0828UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A43 *((volatile unsigned int*)(0x42CE082CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A44 *((volatile unsigned int*)(0x42CE0830UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A45 *((volatile unsigned int*)(0x42CE0834UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A46 *((volatile unsigned int*)(0x42CE0838UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A47 *((volatile unsigned int*)(0x42CE083CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_MO *((volatile unsigned int*)(0x42CE087CUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A0 *((volatile unsigned int*)(0x42CE0880UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A1 *((volatile unsigned int*)(0x42CE0884UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A2 *((volatile unsigned int*)(0x42CE0888UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A3 *((volatile unsigned int*)(0x42CE088CUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A4 *((volatile unsigned int*)(0x42CE0890UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A5 *((volatile unsigned int*)(0x42CE0894UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A6 *((volatile unsigned int*)(0x42CE0898UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A7 *((volatile unsigned int*)(0x42CE089CUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A8 *((volatile unsigned int*)(0x42CE08A0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A9 *((volatile unsigned int*)(0x42CE08A4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A10 *((volatile unsigned int*)(0x42CE08A8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A11 *((volatile unsigned int*)(0x42CE08ACUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A12 *((volatile unsigned int*)(0x42CE08B0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A13 *((volatile unsigned int*)(0x42CE08B4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A14 *((volatile unsigned int*)(0x42CE08B8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A15 *((volatile unsigned int*)(0x42CE08BCUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A16 *((volatile unsigned int*)(0x42CE08C0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A17 *((volatile unsigned int*)(0x42CE08C4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A18 *((volatile unsigned int*)(0x42CE08C8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A19 *((volatile unsigned int*)(0x42CE08CCUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A20 *((volatile unsigned int*)(0x42CE08D0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A21 *((volatile unsigned int*)(0x42CE08D4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A22 *((volatile unsigned int*)(0x42CE08D8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A23 *((volatile unsigned int*)(0x42CE08DCUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A24 *((volatile unsigned int*)(0x42CE08E0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A25 *((volatile unsigned int*)(0x42CE08E4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A26 *((volatile unsigned int*)(0x42CE08E8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A27 *((volatile unsigned int*)(0x42CE08ECUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A28 *((volatile unsigned int*)(0x42CE08F0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A29 *((volatile unsigned int*)(0x42CE08F4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A30 *((volatile unsigned int*)(0x42CE08F8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A31 *((volatile unsigned int*)(0x42CE08FCUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A32 *((volatile unsigned int*)(0x42CE0900UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A33 *((volatile unsigned int*)(0x42CE0904UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A34 *((volatile unsigned int*)(0x42CE0908UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A35 *((volatile unsigned int*)(0x42CE090CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A36 *((volatile unsigned int*)(0x42CE0910UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A37 *((volatile unsigned int*)(0x42CE0914UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A38 *((volatile unsigned int*)(0x42CE0918UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A39 *((volatile unsigned int*)(0x42CE091CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A40 *((volatile unsigned int*)(0x42CE0920UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A41 *((volatile unsigned int*)(0x42CE0924UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A42 *((volatile unsigned int*)(0x42CE0928UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A43 *((volatile unsigned int*)(0x42CE092CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A44 *((volatile unsigned int*)(0x42CE0930UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A45 *((volatile unsigned int*)(0x42CE0934UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A46 *((volatile unsigned int*)(0x42CE0938UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A47 *((volatile unsigned int*)(0x42CE093CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC0 *((volatile unsigned int*)(0x42CE0960UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC1 *((volatile unsigned int*)(0x42CE0964UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC2 *((volatile unsigned int*)(0x42CE0968UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC3 *((volatile unsigned int*)(0x42CE096CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC4 *((volatile unsigned int*)(0x42CE0970UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC5 *((volatile unsigned int*)(0x42CE0974UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_SA *((volatile unsigned int*)(0x42CE0978UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_AE *((volatile unsigned int*)(0x42CE097CUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A0 *((volatile unsigned int*)(0x42CE0980UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A1 *((volatile unsigned int*)(0x42CE0984UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A2 *((volatile unsigned int*)(0x42CE0988UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A3 *((volatile unsigned int*)(0x42CE098CUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A4 *((volatile unsigned int*)(0x42CE0990UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A5 *((volatile unsigned int*)(0x42CE0994UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A6 *((volatile unsigned int*)(0x42CE0998UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A7 *((volatile unsigned int*)(0x42CE099CUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A8 *((volatile unsigned int*)(0x42CE09A0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A9 *((volatile unsigned int*)(0x42CE09A4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A10 *((volatile unsigned int*)(0x42CE09A8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A11 *((volatile unsigned int*)(0x42CE09ACUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A12 *((volatile unsigned int*)(0x42CE09B0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A13 *((volatile unsigned int*)(0x42CE09B4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A14 *((volatile unsigned int*)(0x42CE09B8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A15 *((volatile unsigned int*)(0x42CE09BCUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A16 *((volatile unsigned int*)(0x42CE09C0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A17 *((volatile unsigned int*)(0x42CE09C4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A18 *((volatile unsigned int*)(0x42CE09C8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A19 *((volatile unsigned int*)(0x42CE09CCUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A20 *((volatile unsigned int*)(0x42CE09D0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A21 *((volatile unsigned int*)(0x42CE09D4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A22 *((volatile unsigned int*)(0x42CE09D8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A23 *((volatile unsigned int*)(0x42CE09DCUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A24 *((volatile unsigned int*)(0x42CE09E0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A25 *((volatile unsigned int*)(0x42CE09E4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A26 *((volatile unsigned int*)(0x42CE09E8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A27 *((volatile unsigned int*)(0x42CE09ECUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A28 *((volatile unsigned int*)(0x42CE09F0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A29 *((volatile unsigned int*)(0x42CE09F4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A30 *((volatile unsigned int*)(0x42CE09F8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A31 *((volatile unsigned int*)(0x42CE09FCUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A32 *((volatile unsigned int*)(0x42CE0A00UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A33 *((volatile unsigned int*)(0x42CE0A04UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A34 *((volatile unsigned int*)(0x42CE0A08UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A35 *((volatile unsigned int*)(0x42CE0A0CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A36 *((volatile unsigned int*)(0x42CE0A10UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A37 *((volatile unsigned int*)(0x42CE0A14UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A38 *((volatile unsigned int*)(0x42CE0A18UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A39 *((volatile unsigned int*)(0x42CE0A1CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A40 *((volatile unsigned int*)(0x42CE0A20UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A41 *((volatile unsigned int*)(0x42CE0A24UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A42 *((volatile unsigned int*)(0x42CE0A28UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A43 *((volatile unsigned int*)(0x42CE0A2CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A44 *((volatile unsigned int*)(0x42CE0A30UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A45 *((volatile unsigned int*)(0x42CE0A34UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A46 *((volatile unsigned int*)(0x42CE0A38UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A47 *((volatile unsigned int*)(0x42CE0A3CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC0 *((volatile unsigned int*)(0x42CE0A60UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC1 *((volatile unsigned int*)(0x42CE0A64UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC2 *((volatile unsigned int*)(0x42CE0A68UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC3 *((volatile unsigned int*)(0x42CE0A6CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC4 *((volatile unsigned int*)(0x42CE0A70UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC5 *((volatile unsigned int*)(0x42CE0A74UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_SA *((volatile unsigned int*)(0x42CE0A78UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_AE *((volatile unsigned int*)(0x42CE0A7CUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A0 *((volatile unsigned int*)(0x42CE0A80UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A1 *((volatile unsigned int*)(0x42CE0A84UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A2 *((volatile unsigned int*)(0x42CE0A88UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A3 *((volatile unsigned int*)(0x42CE0A8CUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A4 *((volatile unsigned int*)(0x42CE0A90UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A5 *((volatile unsigned int*)(0x42CE0A94UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A6 *((volatile unsigned int*)(0x42CE0A98UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A7 *((volatile unsigned int*)(0x42CE0A9CUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A8 *((volatile unsigned int*)(0x42CE0AA0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A9 *((volatile unsigned int*)(0x42CE0AA4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A10 *((volatile unsigned int*)(0x42CE0AA8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A11 *((volatile unsigned int*)(0x42CE0AACUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A12 *((volatile unsigned int*)(0x42CE0AB0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A13 *((volatile unsigned int*)(0x42CE0AB4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A14 *((volatile unsigned int*)(0x42CE0AB8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A15 *((volatile unsigned int*)(0x42CE0ABCUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A16 *((volatile unsigned int*)(0x42CE0AC0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A17 *((volatile unsigned int*)(0x42CE0AC4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A18 *((volatile unsigned int*)(0x42CE0AC8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A19 *((volatile unsigned int*)(0x42CE0ACCUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A20 *((volatile unsigned int*)(0x42CE0AD0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A21 *((volatile unsigned int*)(0x42CE0AD4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A22 *((volatile unsigned int*)(0x42CE0AD8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A23 *((volatile unsigned int*)(0x42CE0ADCUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A24 *((volatile unsigned int*)(0x42CE0AE0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A25 *((volatile unsigned int*)(0x42CE0AE4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A26 *((volatile unsigned int*)(0x42CE0AE8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A27 *((volatile unsigned int*)(0x42CE0AECUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A28 *((volatile unsigned int*)(0x42CE0AF0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A29 *((volatile unsigned int*)(0x42CE0AF4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A30 *((volatile unsigned int*)(0x42CE0AF8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A31 *((volatile unsigned int*)(0x42CE0AFCUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A32 *((volatile unsigned int*)(0x42CE0B00UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A33 *((volatile unsigned int*)(0x42CE0B04UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A34 *((volatile unsigned int*)(0x42CE0B08UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A35 *((volatile unsigned int*)(0x42CE0B0CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A36 *((volatile unsigned int*)(0x42CE0B10UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A37 *((volatile unsigned int*)(0x42CE0B14UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A38 *((volatile unsigned int*)(0x42CE0B18UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A39 *((volatile unsigned int*)(0x42CE0B1CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A40 *((volatile unsigned int*)(0x42CE0B20UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A41 *((volatile unsigned int*)(0x42CE0B24UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A42 *((volatile unsigned int*)(0x42CE0B28UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A43 *((volatile unsigned int*)(0x42CE0B2CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A44 *((volatile unsigned int*)(0x42CE0B30UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A45 *((volatile unsigned int*)(0x42CE0B34UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A46 *((volatile unsigned int*)(0x42CE0B38UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A47 *((volatile unsigned int*)(0x42CE0B3CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC0 *((volatile unsigned int*)(0x42CE0B60UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC1 *((volatile unsigned int*)(0x42CE0B64UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC2 *((volatile unsigned int*)(0x42CE0B68UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC3 *((volatile unsigned int*)(0x42CE0B6CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC4 *((volatile unsigned int*)(0x42CE0B70UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC5 *((volatile unsigned int*)(0x42CE0B74UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_SA *((volatile unsigned int*)(0x42CE0B78UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_AE *((volatile unsigned int*)(0x42CE0B7CUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A0 *((volatile unsigned int*)(0x42CE0B80UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A1 *((volatile unsigned int*)(0x42CE0B84UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A2 *((volatile unsigned int*)(0x42CE0B88UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A3 *((volatile unsigned int*)(0x42CE0B8CUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A4 *((volatile unsigned int*)(0x42CE0B90UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A5 *((volatile unsigned int*)(0x42CE0B94UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A6 *((volatile unsigned int*)(0x42CE0B98UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A7 *((volatile unsigned int*)(0x42CE0B9CUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A8 *((volatile unsigned int*)(0x42CE0BA0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A9 *((volatile unsigned int*)(0x42CE0BA4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A10 *((volatile unsigned int*)(0x42CE0BA8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A11 *((volatile unsigned int*)(0x42CE0BACUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A12 *((volatile unsigned int*)(0x42CE0BB0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A13 *((volatile unsigned int*)(0x42CE0BB4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A14 *((volatile unsigned int*)(0x42CE0BB8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A15 *((volatile unsigned int*)(0x42CE0BBCUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A16 *((volatile unsigned int*)(0x42CE0BC0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A17 *((volatile unsigned int*)(0x42CE0BC4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A18 *((volatile unsigned int*)(0x42CE0BC8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A19 *((volatile unsigned int*)(0x42CE0BCCUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A20 *((volatile unsigned int*)(0x42CE0BD0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A21 *((volatile unsigned int*)(0x42CE0BD4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A22 *((volatile unsigned int*)(0x42CE0BD8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A23 *((volatile unsigned int*)(0x42CE0BDCUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A24 *((volatile unsigned int*)(0x42CE0BE0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A25 *((volatile unsigned int*)(0x42CE0BE4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A26 *((volatile unsigned int*)(0x42CE0BE8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A27 *((volatile unsigned int*)(0x42CE0BECUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A28 *((volatile unsigned int*)(0x42CE0BF0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A29 *((volatile unsigned int*)(0x42CE0BF4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A30 *((volatile unsigned int*)(0x42CE0BF8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A31 *((volatile unsigned int*)(0x42CE0BFCUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A32 *((volatile unsigned int*)(0x42CE0C00UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A33 *((volatile unsigned int*)(0x42CE0C04UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A34 *((volatile unsigned int*)(0x42CE0C08UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A35 *((volatile unsigned int*)(0x42CE0C0CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A36 *((volatile unsigned int*)(0x42CE0C10UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A37 *((volatile unsigned int*)(0x42CE0C14UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A38 *((volatile unsigned int*)(0x42CE0C18UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A39 *((volatile unsigned int*)(0x42CE0C1CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A40 *((volatile unsigned int*)(0x42CE0C20UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A41 *((volatile unsigned int*)(0x42CE0C24UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A42 *((volatile unsigned int*)(0x42CE0C28UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A43 *((volatile unsigned int*)(0x42CE0C2CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A44 *((volatile unsigned int*)(0x42CE0C30UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A45 *((volatile unsigned int*)(0x42CE0C34UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A46 *((volatile unsigned int*)(0x42CE0C38UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A47 *((volatile unsigned int*)(0x42CE0C3CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC0 *((volatile unsigned int*)(0x42CE0C60UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC1 *((volatile unsigned int*)(0x42CE0C64UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC2 *((volatile unsigned int*)(0x42CE0C68UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC3 *((volatile unsigned int*)(0x42CE0C6CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC4 *((volatile unsigned int*)(0x42CE0C70UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC5 *((volatile unsigned int*)(0x42CE0C74UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_SA *((volatile unsigned int*)(0x42CE0C78UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_AE *((volatile unsigned int*)(0x42CE0C7CUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A0 *((volatile unsigned int*)(0x42CE0C80UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A1 *((volatile unsigned int*)(0x42CE0C84UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A2 *((volatile unsigned int*)(0x42CE0C88UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A3 *((volatile unsigned int*)(0x42CE0C8CUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A4 *((volatile unsigned int*)(0x42CE0C90UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A5 *((volatile unsigned int*)(0x42CE0C94UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A6 *((volatile unsigned int*)(0x42CE0C98UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A7 *((volatile unsigned int*)(0x42CE0C9CUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A8 *((volatile unsigned int*)(0x42CE0CA0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A9 *((volatile unsigned int*)(0x42CE0CA4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A10 *((volatile unsigned int*)(0x42CE0CA8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A11 *((volatile unsigned int*)(0x42CE0CACUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A12 *((volatile unsigned int*)(0x42CE0CB0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A13 *((volatile unsigned int*)(0x42CE0CB4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A14 *((volatile unsigned int*)(0x42CE0CB8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A15 *((volatile unsigned int*)(0x42CE0CBCUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A16 *((volatile unsigned int*)(0x42CE0CC0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A17 *((volatile unsigned int*)(0x42CE0CC4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A18 *((volatile unsigned int*)(0x42CE0CC8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A19 *((volatile unsigned int*)(0x42CE0CCCUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A20 *((volatile unsigned int*)(0x42CE0CD0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A21 *((volatile unsigned int*)(0x42CE0CD4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A22 *((volatile unsigned int*)(0x42CE0CD8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A23 *((volatile unsigned int*)(0x42CE0CDCUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A24 *((volatile unsigned int*)(0x42CE0CE0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A25 *((volatile unsigned int*)(0x42CE0CE4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A26 *((volatile unsigned int*)(0x42CE0CE8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A27 *((volatile unsigned int*)(0x42CE0CECUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A28 *((volatile unsigned int*)(0x42CE0CF0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A29 *((volatile unsigned int*)(0x42CE0CF4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A30 *((volatile unsigned int*)(0x42CE0CF8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A31 *((volatile unsigned int*)(0x42CE0CFCUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A32 *((volatile unsigned int*)(0x42CE0D00UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A33 *((volatile unsigned int*)(0x42CE0D04UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A34 *((volatile unsigned int*)(0x42CE0D08UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A35 *((volatile unsigned int*)(0x42CE0D0CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A36 *((volatile unsigned int*)(0x42CE0D10UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A37 *((volatile unsigned int*)(0x42CE0D14UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A38 *((volatile unsigned int*)(0x42CE0D18UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A39 *((volatile unsigned int*)(0x42CE0D1CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A40 *((volatile unsigned int*)(0x42CE0D20UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A41 *((volatile unsigned int*)(0x42CE0D24UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A42 *((volatile unsigned int*)(0x42CE0D28UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A43 *((volatile unsigned int*)(0x42CE0D2CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A44 *((volatile unsigned int*)(0x42CE0D30UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A45 *((volatile unsigned int*)(0x42CE0D34UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A46 *((volatile unsigned int*)(0x42CE0D38UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A47 *((volatile unsigned int*)(0x42CE0D3CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC0 *((volatile unsigned int*)(0x42CE0D60UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC1 *((volatile unsigned int*)(0x42CE0D64UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC2 *((volatile unsigned int*)(0x42CE0D68UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC3 *((volatile unsigned int*)(0x42CE0D6CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC4 *((volatile unsigned int*)(0x42CE0D70UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC5 *((volatile unsigned int*)(0x42CE0D74UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_SA *((volatile unsigned int*)(0x42CE0D78UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_AE *((volatile unsigned int*)(0x42CE0D7CUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A0 *((volatile unsigned int*)(0x42CE0D80UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A1 *((volatile unsigned int*)(0x42CE0D84UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A2 *((volatile unsigned int*)(0x42CE0D88UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A3 *((volatile unsigned int*)(0x42CE0D8CUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A4 *((volatile unsigned int*)(0x42CE0D90UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A5 *((volatile unsigned int*)(0x42CE0D94UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A6 *((volatile unsigned int*)(0x42CE0D98UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A7 *((volatile unsigned int*)(0x42CE0D9CUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A8 *((volatile unsigned int*)(0x42CE0DA0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A9 *((volatile unsigned int*)(0x42CE0DA4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A10 *((volatile unsigned int*)(0x42CE0DA8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A11 *((volatile unsigned int*)(0x42CE0DACUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A12 *((volatile unsigned int*)(0x42CE0DB0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A13 *((volatile unsigned int*)(0x42CE0DB4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A14 *((volatile unsigned int*)(0x42CE0DB8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A15 *((volatile unsigned int*)(0x42CE0DBCUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A16 *((volatile unsigned int*)(0x42CE0DC0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A17 *((volatile unsigned int*)(0x42CE0DC4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A18 *((volatile unsigned int*)(0x42CE0DC8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A19 *((volatile unsigned int*)(0x42CE0DCCUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A20 *((volatile unsigned int*)(0x42CE0DD0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A21 *((volatile unsigned int*)(0x42CE0DD4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A22 *((volatile unsigned int*)(0x42CE0DD8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A23 *((volatile unsigned int*)(0x42CE0DDCUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A24 *((volatile unsigned int*)(0x42CE0DE0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A25 *((volatile unsigned int*)(0x42CE0DE4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A26 *((volatile unsigned int*)(0x42CE0DE8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A27 *((volatile unsigned int*)(0x42CE0DECUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A28 *((volatile unsigned int*)(0x42CE0DF0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A29 *((volatile unsigned int*)(0x42CE0DF4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A30 *((volatile unsigned int*)(0x42CE0DF8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A31 *((volatile unsigned int*)(0x42CE0DFCUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A32 *((volatile unsigned int*)(0x42CE0E00UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A33 *((volatile unsigned int*)(0x42CE0E04UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A34 *((volatile unsigned int*)(0x42CE0E08UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A35 *((volatile unsigned int*)(0x42CE0E0CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A36 *((volatile unsigned int*)(0x42CE0E10UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A37 *((volatile unsigned int*)(0x42CE0E14UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A38 *((volatile unsigned int*)(0x42CE0E18UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A39 *((volatile unsigned int*)(0x42CE0E1CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A40 *((volatile unsigned int*)(0x42CE0E20UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A41 *((volatile unsigned int*)(0x42CE0E24UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A42 *((volatile unsigned int*)(0x42CE0E28UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A43 *((volatile unsigned int*)(0x42CE0E2CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A44 *((volatile unsigned int*)(0x42CE0E30UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A45 *((volatile unsigned int*)(0x42CE0E34UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A46 *((volatile unsigned int*)(0x42CE0E38UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A47 *((volatile unsigned int*)(0x42CE0E3CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC0 *((volatile unsigned int*)(0x42CE0E60UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC1 *((volatile unsigned int*)(0x42CE0E64UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC2 *((volatile unsigned int*)(0x42CE0E68UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC3 *((volatile unsigned int*)(0x42CE0E6CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC4 *((volatile unsigned int*)(0x42CE0E70UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC5 *((volatile unsigned int*)(0x42CE0E74UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_SA *((volatile unsigned int*)(0x42CE0E78UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_AE *((volatile unsigned int*)(0x42CE0E7CUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A0 *((volatile unsigned int*)(0x42CE0E80UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A1 *((volatile unsigned int*)(0x42CE0E84UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A2 *((volatile unsigned int*)(0x42CE0E88UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A3 *((volatile unsigned int*)(0x42CE0E8CUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A4 *((volatile unsigned int*)(0x42CE0E90UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A5 *((volatile unsigned int*)(0x42CE0E94UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A6 *((volatile unsigned int*)(0x42CE0E98UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A7 *((volatile unsigned int*)(0x42CE0E9CUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A8 *((volatile unsigned int*)(0x42CE0EA0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A9 *((volatile unsigned int*)(0x42CE0EA4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A10 *((volatile unsigned int*)(0x42CE0EA8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A11 *((volatile unsigned int*)(0x42CE0EACUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A12 *((volatile unsigned int*)(0x42CE0EB0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A13 *((volatile unsigned int*)(0x42CE0EB4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A14 *((volatile unsigned int*)(0x42CE0EB8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A15 *((volatile unsigned int*)(0x42CE0EBCUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A16 *((volatile unsigned int*)(0x42CE0EC0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A17 *((volatile unsigned int*)(0x42CE0EC4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A18 *((volatile unsigned int*)(0x42CE0EC8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A19 *((volatile unsigned int*)(0x42CE0ECCUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A20 *((volatile unsigned int*)(0x42CE0ED0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A21 *((volatile unsigned int*)(0x42CE0ED4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A22 *((volatile unsigned int*)(0x42CE0ED8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A23 *((volatile unsigned int*)(0x42CE0EDCUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A24 *((volatile unsigned int*)(0x42CE0EE0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A25 *((volatile unsigned int*)(0x42CE0EE4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A26 *((volatile unsigned int*)(0x42CE0EE8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A27 *((volatile unsigned int*)(0x42CE0EECUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A28 *((volatile unsigned int*)(0x42CE0EF0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A29 *((volatile unsigned int*)(0x42CE0EF4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A30 *((volatile unsigned int*)(0x42CE0EF8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A31 *((volatile unsigned int*)(0x42CE0EFCUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A32 *((volatile unsigned int*)(0x42CE0F00UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A33 *((volatile unsigned int*)(0x42CE0F04UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A34 *((volatile unsigned int*)(0x42CE0F08UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A35 *((volatile unsigned int*)(0x42CE0F0CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A36 *((volatile unsigned int*)(0x42CE0F10UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A37 *((volatile unsigned int*)(0x42CE0F14UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A38 *((volatile unsigned int*)(0x42CE0F18UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A39 *((volatile unsigned int*)(0x42CE0F1CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A40 *((volatile unsigned int*)(0x42CE0F20UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A41 *((volatile unsigned int*)(0x42CE0F24UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A42 *((volatile unsigned int*)(0x42CE0F28UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A43 *((volatile unsigned int*)(0x42CE0F2CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A44 *((volatile unsigned int*)(0x42CE0F30UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A45 *((volatile unsigned int*)(0x42CE0F34UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A46 *((volatile unsigned int*)(0x42CE0F38UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A47 *((volatile unsigned int*)(0x42CE0F3CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC0 *((volatile unsigned int*)(0x42CE0F60UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC1 *((volatile unsigned int*)(0x42CE0F64UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC2 *((volatile unsigned int*)(0x42CE0F68UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC3 *((volatile unsigned int*)(0x42CE0F6CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC4 *((volatile unsigned int*)(0x42CE0F70UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC5 *((volatile unsigned int*)(0x42CE0F74UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_SA *((volatile unsigned int*)(0x42CE0F78UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_AE *((volatile unsigned int*)(0x42CE0F7CUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A0 *((volatile unsigned int*)(0x42CE0F80UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A1 *((volatile unsigned int*)(0x42CE0F84UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A2 *((volatile unsigned int*)(0x42CE0F88UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A3 *((volatile unsigned int*)(0x42CE0F8CUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A4 *((volatile unsigned int*)(0x42CE0F90UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A5 *((volatile unsigned int*)(0x42CE0F94UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A6 *((volatile unsigned int*)(0x42CE0F98UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A7 *((volatile unsigned int*)(0x42CE0F9CUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A8 *((volatile unsigned int*)(0x42CE0FA0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A9 *((volatile unsigned int*)(0x42CE0FA4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A10 *((volatile unsigned int*)(0x42CE0FA8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A11 *((volatile unsigned int*)(0x42CE0FACUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A12 *((volatile unsigned int*)(0x42CE0FB0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A13 *((volatile unsigned int*)(0x42CE0FB4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A14 *((volatile unsigned int*)(0x42CE0FB8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A15 *((volatile unsigned int*)(0x42CE0FBCUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A16 *((volatile unsigned int*)(0x42CE0FC0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A17 *((volatile unsigned int*)(0x42CE0FC4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A18 *((volatile unsigned int*)(0x42CE0FC8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A19 *((volatile unsigned int*)(0x42CE0FCCUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A20 *((volatile unsigned int*)(0x42CE0FD0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A21 *((volatile unsigned int*)(0x42CE0FD4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A22 *((volatile unsigned int*)(0x42CE0FD8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A23 *((volatile unsigned int*)(0x42CE0FDCUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A24 *((volatile unsigned int*)(0x42CE0FE0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A25 *((volatile unsigned int*)(0x42CE0FE4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A26 *((volatile unsigned int*)(0x42CE0FE8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A27 *((volatile unsigned int*)(0x42CE0FECUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A28 *((volatile unsigned int*)(0x42CE0FF0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A29 *((volatile unsigned int*)(0x42CE0FF4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A30 *((volatile unsigned int*)(0x42CE0FF8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A31 *((volatile unsigned int*)(0x42CE0FFCUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A32 *((volatile unsigned int*)(0x42CE1000UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A33 *((volatile unsigned int*)(0x42CE1004UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A34 *((volatile unsigned int*)(0x42CE1008UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A35 *((volatile unsigned int*)(0x42CE100CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A36 *((volatile unsigned int*)(0x42CE1010UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A37 *((volatile unsigned int*)(0x42CE1014UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A38 *((volatile unsigned int*)(0x42CE1018UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A39 *((volatile unsigned int*)(0x42CE101CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A40 *((volatile unsigned int*)(0x42CE1020UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A41 *((volatile unsigned int*)(0x42CE1024UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A42 *((volatile unsigned int*)(0x42CE1028UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A43 *((volatile unsigned int*)(0x42CE102CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A44 *((volatile unsigned int*)(0x42CE1030UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A45 *((volatile unsigned int*)(0x42CE1034UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A46 *((volatile unsigned int*)(0x42CE1038UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A47 *((volatile unsigned int*)(0x42CE103CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC0 *((volatile unsigned int*)(0x42CE1060UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC1 *((volatile unsigned int*)(0x42CE1064UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC2 *((volatile unsigned int*)(0x42CE1068UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC3 *((volatile unsigned int*)(0x42CE106CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC4 *((volatile unsigned int*)(0x42CE1070UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC5 *((volatile unsigned int*)(0x42CE1074UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_SA *((volatile unsigned int*)(0x42CE1078UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_AE *((volatile unsigned int*)(0x42CE107CUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A0 *((volatile unsigned int*)(0x42CE1080UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A1 *((volatile unsigned int*)(0x42CE1084UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A2 *((volatile unsigned int*)(0x42CE1088UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A3 *((volatile unsigned int*)(0x42CE108CUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A4 *((volatile unsigned int*)(0x42CE1090UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A5 *((volatile unsigned int*)(0x42CE1094UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A6 *((volatile unsigned int*)(0x42CE1098UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A7 *((volatile unsigned int*)(0x42CE109CUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A8 *((volatile unsigned int*)(0x42CE10A0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A9 *((volatile unsigned int*)(0x42CE10A4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A10 *((volatile unsigned int*)(0x42CE10A8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A11 *((volatile unsigned int*)(0x42CE10ACUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A12 *((volatile unsigned int*)(0x42CE10B0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A13 *((volatile unsigned int*)(0x42CE10B4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A14 *((volatile unsigned int*)(0x42CE10B8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A15 *((volatile unsigned int*)(0x42CE10BCUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A16 *((volatile unsigned int*)(0x42CE10C0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A17 *((volatile unsigned int*)(0x42CE10C4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A18 *((volatile unsigned int*)(0x42CE10C8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A19 *((volatile unsigned int*)(0x42CE10CCUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A20 *((volatile unsigned int*)(0x42CE10D0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A21 *((volatile unsigned int*)(0x42CE10D4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A22 *((volatile unsigned int*)(0x42CE10D8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A23 *((volatile unsigned int*)(0x42CE10DCUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A24 *((volatile unsigned int*)(0x42CE10E0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A25 *((volatile unsigned int*)(0x42CE10E4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A26 *((volatile unsigned int*)(0x42CE10E8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A27 *((volatile unsigned int*)(0x42CE10ECUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A28 *((volatile unsigned int*)(0x42CE10F0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A29 *((volatile unsigned int*)(0x42CE10F4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A30 *((volatile unsigned int*)(0x42CE10F8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A31 *((volatile unsigned int*)(0x42CE10FCUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A32 *((volatile unsigned int*)(0x42CE1100UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A33 *((volatile unsigned int*)(0x42CE1104UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A34 *((volatile unsigned int*)(0x42CE1108UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A35 *((volatile unsigned int*)(0x42CE110CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A36 *((volatile unsigned int*)(0x42CE1110UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A37 *((volatile unsigned int*)(0x42CE1114UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A38 *((volatile unsigned int*)(0x42CE1118UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A39 *((volatile unsigned int*)(0x42CE111CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A40 *((volatile unsigned int*)(0x42CE1120UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A41 *((volatile unsigned int*)(0x42CE1124UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A42 *((volatile unsigned int*)(0x42CE1128UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A43 *((volatile unsigned int*)(0x42CE112CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A44 *((volatile unsigned int*)(0x42CE1130UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A45 *((volatile unsigned int*)(0x42CE1134UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A46 *((volatile unsigned int*)(0x42CE1138UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A47 *((volatile unsigned int*)(0x42CE113CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC0 *((volatile unsigned int*)(0x42CE1160UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC1 *((volatile unsigned int*)(0x42CE1164UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC2 *((volatile unsigned int*)(0x42CE1168UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC3 *((volatile unsigned int*)(0x42CE116CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC4 *((volatile unsigned int*)(0x42CE1170UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC5 *((volatile unsigned int*)(0x42CE1174UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_SA *((volatile unsigned int*)(0x42CE1178UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_AE *((volatile unsigned int*)(0x42CE117CUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A0 *((volatile unsigned int*)(0x42CE1180UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A1 *((volatile unsigned int*)(0x42CE1184UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A2 *((volatile unsigned int*)(0x42CE1188UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A3 *((volatile unsigned int*)(0x42CE118CUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A4 *((volatile unsigned int*)(0x42CE1190UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A5 *((volatile unsigned int*)(0x42CE1194UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A6 *((volatile unsigned int*)(0x42CE1198UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A7 *((volatile unsigned int*)(0x42CE119CUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A8 *((volatile unsigned int*)(0x42CE11A0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A9 *((volatile unsigned int*)(0x42CE11A4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A10 *((volatile unsigned int*)(0x42CE11A8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A11 *((volatile unsigned int*)(0x42CE11ACUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A12 *((volatile unsigned int*)(0x42CE11B0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A13 *((volatile unsigned int*)(0x42CE11B4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A14 *((volatile unsigned int*)(0x42CE11B8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A15 *((volatile unsigned int*)(0x42CE11BCUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A16 *((volatile unsigned int*)(0x42CE11C0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A17 *((volatile unsigned int*)(0x42CE11C4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A18 *((volatile unsigned int*)(0x42CE11C8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A19 *((volatile unsigned int*)(0x42CE11CCUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A20 *((volatile unsigned int*)(0x42CE11D0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A21 *((volatile unsigned int*)(0x42CE11D4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A22 *((volatile unsigned int*)(0x42CE11D8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A23 *((volatile unsigned int*)(0x42CE11DCUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A24 *((volatile unsigned int*)(0x42CE11E0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A25 *((volatile unsigned int*)(0x42CE11E4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A26 *((volatile unsigned int*)(0x42CE11E8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A27 *((volatile unsigned int*)(0x42CE11ECUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A28 *((volatile unsigned int*)(0x42CE11F0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A29 *((volatile unsigned int*)(0x42CE11F4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A30 *((volatile unsigned int*)(0x42CE11F8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A31 *((volatile unsigned int*)(0x42CE11FCUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A32 *((volatile unsigned int*)(0x42CE1200UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A33 *((volatile unsigned int*)(0x42CE1204UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A34 *((volatile unsigned int*)(0x42CE1208UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A35 *((volatile unsigned int*)(0x42CE120CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A36 *((volatile unsigned int*)(0x42CE1210UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A37 *((volatile unsigned int*)(0x42CE1214UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A38 *((volatile unsigned int*)(0x42CE1218UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A39 *((volatile unsigned int*)(0x42CE121CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A40 *((volatile unsigned int*)(0x42CE1220UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A41 *((volatile unsigned int*)(0x42CE1224UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A42 *((volatile unsigned int*)(0x42CE1228UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A43 *((volatile unsigned int*)(0x42CE122CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A44 *((volatile unsigned int*)(0x42CE1230UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A45 *((volatile unsigned int*)(0x42CE1234UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A46 *((volatile unsigned int*)(0x42CE1238UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A47 *((volatile unsigned int*)(0x42CE123CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC0 *((volatile unsigned int*)(0x42CE1260UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC1 *((volatile unsigned int*)(0x42CE1264UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC2 *((volatile unsigned int*)(0x42CE1268UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC3 *((volatile unsigned int*)(0x42CE126CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC4 *((volatile unsigned int*)(0x42CE1270UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC5 *((volatile unsigned int*)(0x42CE1274UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_SA *((volatile unsigned int*)(0x42CE1278UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_AE *((volatile unsigned int*)(0x42CE127CUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A0 *((volatile unsigned int*)(0x42CE1280UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A1 *((volatile unsigned int*)(0x42CE1284UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A2 *((volatile unsigned int*)(0x42CE1288UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A3 *((volatile unsigned int*)(0x42CE128CUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A4 *((volatile unsigned int*)(0x42CE1290UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A5 *((volatile unsigned int*)(0x42CE1294UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A6 *((volatile unsigned int*)(0x42CE1298UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A7 *((volatile unsigned int*)(0x42CE129CUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A8 *((volatile unsigned int*)(0x42CE12A0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A9 *((volatile unsigned int*)(0x42CE12A4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A10 *((volatile unsigned int*)(0x42CE12A8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A11 *((volatile unsigned int*)(0x42CE12ACUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A12 *((volatile unsigned int*)(0x42CE12B0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A13 *((volatile unsigned int*)(0x42CE12B4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A14 *((volatile unsigned int*)(0x42CE12B8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A15 *((volatile unsigned int*)(0x42CE12BCUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A16 *((volatile unsigned int*)(0x42CE12C0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A17 *((volatile unsigned int*)(0x42CE12C4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A18 *((volatile unsigned int*)(0x42CE12C8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A19 *((volatile unsigned int*)(0x42CE12CCUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A20 *((volatile unsigned int*)(0x42CE12D0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A21 *((volatile unsigned int*)(0x42CE12D4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A22 *((volatile unsigned int*)(0x42CE12D8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A23 *((volatile unsigned int*)(0x42CE12DCUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A24 *((volatile unsigned int*)(0x42CE12E0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A25 *((volatile unsigned int*)(0x42CE12E4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A26 *((volatile unsigned int*)(0x42CE12E8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A27 *((volatile unsigned int*)(0x42CE12ECUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A28 *((volatile unsigned int*)(0x42CE12F0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A29 *((volatile unsigned int*)(0x42CE12F4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A30 *((volatile unsigned int*)(0x42CE12F8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A31 *((volatile unsigned int*)(0x42CE12FCUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A32 *((volatile unsigned int*)(0x42CE1300UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A33 *((volatile unsigned int*)(0x42CE1304UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A34 *((volatile unsigned int*)(0x42CE1308UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A35 *((volatile unsigned int*)(0x42CE130CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A36 *((volatile unsigned int*)(0x42CE1310UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A37 *((volatile unsigned int*)(0x42CE1314UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A38 *((volatile unsigned int*)(0x42CE1318UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A39 *((volatile unsigned int*)(0x42CE131CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A40 *((volatile unsigned int*)(0x42CE1320UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A41 *((volatile unsigned int*)(0x42CE1324UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A42 *((volatile unsigned int*)(0x42CE1328UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A43 *((volatile unsigned int*)(0x42CE132CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A44 *((volatile unsigned int*)(0x42CE1330UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A45 *((volatile unsigned int*)(0x42CE1334UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A46 *((volatile unsigned int*)(0x42CE1338UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A47 *((volatile unsigned int*)(0x42CE133CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC0 *((volatile unsigned int*)(0x42CE1360UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC1 *((volatile unsigned int*)(0x42CE1364UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC2 *((volatile unsigned int*)(0x42CE1368UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC3 *((volatile unsigned int*)(0x42CE136CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC4 *((volatile unsigned int*)(0x42CE1370UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC5 *((volatile unsigned int*)(0x42CE1374UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_SA *((volatile unsigned int*)(0x42CE1378UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_AE *((volatile unsigned int*)(0x42CE137CUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A0 *((volatile unsigned int*)(0x42CE1380UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A1 *((volatile unsigned int*)(0x42CE1384UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A2 *((volatile unsigned int*)(0x42CE1388UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A3 *((volatile unsigned int*)(0x42CE138CUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A4 *((volatile unsigned int*)(0x42CE1390UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A5 *((volatile unsigned int*)(0x42CE1394UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A6 *((volatile unsigned int*)(0x42CE1398UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A7 *((volatile unsigned int*)(0x42CE139CUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A8 *((volatile unsigned int*)(0x42CE13A0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A9 *((volatile unsigned int*)(0x42CE13A4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A10 *((volatile unsigned int*)(0x42CE13A8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A11 *((volatile unsigned int*)(0x42CE13ACUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A12 *((volatile unsigned int*)(0x42CE13B0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A13 *((volatile unsigned int*)(0x42CE13B4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A14 *((volatile unsigned int*)(0x42CE13B8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A15 *((volatile unsigned int*)(0x42CE13BCUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A16 *((volatile unsigned int*)(0x42CE13C0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A17 *((volatile unsigned int*)(0x42CE13C4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A18 *((volatile unsigned int*)(0x42CE13C8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A19 *((volatile unsigned int*)(0x42CE13CCUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A20 *((volatile unsigned int*)(0x42CE13D0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A21 *((volatile unsigned int*)(0x42CE13D4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A22 *((volatile unsigned int*)(0x42CE13D8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A23 *((volatile unsigned int*)(0x42CE13DCUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A24 *((volatile unsigned int*)(0x42CE13E0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A25 *((volatile unsigned int*)(0x42CE13E4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A26 *((volatile unsigned int*)(0x42CE13E8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A27 *((volatile unsigned int*)(0x42CE13ECUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A28 *((volatile unsigned int*)(0x42CE13F0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A29 *((volatile unsigned int*)(0x42CE13F4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A30 *((volatile unsigned int*)(0x42CE13F8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A31 *((volatile unsigned int*)(0x42CE13FCUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A32 *((volatile unsigned int*)(0x42CE1400UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A33 *((volatile unsigned int*)(0x42CE1404UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A34 *((volatile unsigned int*)(0x42CE1408UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A35 *((volatile unsigned int*)(0x42CE140CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A36 *((volatile unsigned int*)(0x42CE1410UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A37 *((volatile unsigned int*)(0x42CE1414UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A38 *((volatile unsigned int*)(0x42CE1418UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A39 *((volatile unsigned int*)(0x42CE141CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A40 *((volatile unsigned int*)(0x42CE1420UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A41 *((volatile unsigned int*)(0x42CE1424UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A42 *((volatile unsigned int*)(0x42CE1428UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A43 *((volatile unsigned int*)(0x42CE142CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A44 *((volatile unsigned int*)(0x42CE1430UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A45 *((volatile unsigned int*)(0x42CE1434UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A46 *((volatile unsigned int*)(0x42CE1438UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A47 *((volatile unsigned int*)(0x42CE143CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC0 *((volatile unsigned int*)(0x42CE1460UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC1 *((volatile unsigned int*)(0x42CE1464UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC2 *((volatile unsigned int*)(0x42CE1468UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC3 *((volatile unsigned int*)(0x42CE146CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC4 *((volatile unsigned int*)(0x42CE1470UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC5 *((volatile unsigned int*)(0x42CE1474UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_SA *((volatile unsigned int*)(0x42CE1478UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_AE *((volatile unsigned int*)(0x42CE147CUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A0 *((volatile unsigned int*)(0x42CE1480UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A1 *((volatile unsigned int*)(0x42CE1484UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A2 *((volatile unsigned int*)(0x42CE1488UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A3 *((volatile unsigned int*)(0x42CE148CUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A4 *((volatile unsigned int*)(0x42CE1490UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A5 *((volatile unsigned int*)(0x42CE1494UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A6 *((volatile unsigned int*)(0x42CE1498UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A7 *((volatile unsigned int*)(0x42CE149CUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A8 *((volatile unsigned int*)(0x42CE14A0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A9 *((volatile unsigned int*)(0x42CE14A4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A10 *((volatile unsigned int*)(0x42CE14A8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A11 *((volatile unsigned int*)(0x42CE14ACUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A12 *((volatile unsigned int*)(0x42CE14B0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A13 *((volatile unsigned int*)(0x42CE14B4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A14 *((volatile unsigned int*)(0x42CE14B8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A15 *((volatile unsigned int*)(0x42CE14BCUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A16 *((volatile unsigned int*)(0x42CE14C0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A17 *((volatile unsigned int*)(0x42CE14C4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A18 *((volatile unsigned int*)(0x42CE14C8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A19 *((volatile unsigned int*)(0x42CE14CCUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A20 *((volatile unsigned int*)(0x42CE14D0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A21 *((volatile unsigned int*)(0x42CE14D4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A22 *((volatile unsigned int*)(0x42CE14D8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A23 *((volatile unsigned int*)(0x42CE14DCUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A24 *((volatile unsigned int*)(0x42CE14E0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A25 *((volatile unsigned int*)(0x42CE14E4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A26 *((volatile unsigned int*)(0x42CE14E8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A27 *((volatile unsigned int*)(0x42CE14ECUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A28 *((volatile unsigned int*)(0x42CE14F0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A29 *((volatile unsigned int*)(0x42CE14F4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A30 *((volatile unsigned int*)(0x42CE14F8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A31 *((volatile unsigned int*)(0x42CE14FCUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A32 *((volatile unsigned int*)(0x42CE1500UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A33 *((volatile unsigned int*)(0x42CE1504UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A34 *((volatile unsigned int*)(0x42CE1508UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A35 *((volatile unsigned int*)(0x42CE150CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A36 *((volatile unsigned int*)(0x42CE1510UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A37 *((volatile unsigned int*)(0x42CE1514UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A38 *((volatile unsigned int*)(0x42CE1518UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A39 *((volatile unsigned int*)(0x42CE151CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A40 *((volatile unsigned int*)(0x42CE1520UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A41 *((volatile unsigned int*)(0x42CE1524UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A42 *((volatile unsigned int*)(0x42CE1528UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A43 *((volatile unsigned int*)(0x42CE152CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A44 *((volatile unsigned int*)(0x42CE1530UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A45 *((volatile unsigned int*)(0x42CE1534UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A46 *((volatile unsigned int*)(0x42CE1538UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A47 *((volatile unsigned int*)(0x42CE153CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC0 *((volatile unsigned int*)(0x42CE1560UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC1 *((volatile unsigned int*)(0x42CE1564UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC2 *((volatile unsigned int*)(0x42CE1568UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC3 *((volatile unsigned int*)(0x42CE156CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC4 *((volatile unsigned int*)(0x42CE1570UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC5 *((volatile unsigned int*)(0x42CE1574UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_SA *((volatile unsigned int*)(0x42CE1578UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_AE *((volatile unsigned int*)(0x42CE157CUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A0 *((volatile unsigned int*)(0x42CE1580UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A1 *((volatile unsigned int*)(0x42CE1584UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A2 *((volatile unsigned int*)(0x42CE1588UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A3 *((volatile unsigned int*)(0x42CE158CUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A4 *((volatile unsigned int*)(0x42CE1590UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A5 *((volatile unsigned int*)(0x42CE1594UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A6 *((volatile unsigned int*)(0x42CE1598UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A7 *((volatile unsigned int*)(0x42CE159CUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A8 *((volatile unsigned int*)(0x42CE15A0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A9 *((volatile unsigned int*)(0x42CE15A4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A10 *((volatile unsigned int*)(0x42CE15A8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A11 *((volatile unsigned int*)(0x42CE15ACUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A12 *((volatile unsigned int*)(0x42CE15B0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A13 *((volatile unsigned int*)(0x42CE15B4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A14 *((volatile unsigned int*)(0x42CE15B8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A15 *((volatile unsigned int*)(0x42CE15BCUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A16 *((volatile unsigned int*)(0x42CE15C0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A17 *((volatile unsigned int*)(0x42CE15C4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A18 *((volatile unsigned int*)(0x42CE15C8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A19 *((volatile unsigned int*)(0x42CE15CCUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A20 *((volatile unsigned int*)(0x42CE15D0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A21 *((volatile unsigned int*)(0x42CE15D4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A22 *((volatile unsigned int*)(0x42CE15D8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A23 *((volatile unsigned int*)(0x42CE15DCUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A24 *((volatile unsigned int*)(0x42CE15E0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A25 *((volatile unsigned int*)(0x42CE15E4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A26 *((volatile unsigned int*)(0x42CE15E8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A27 *((volatile unsigned int*)(0x42CE15ECUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A28 *((volatile unsigned int*)(0x42CE15F0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A29 *((volatile unsigned int*)(0x42CE15F4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A30 *((volatile unsigned int*)(0x42CE15F8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A31 *((volatile unsigned int*)(0x42CE15FCUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A32 *((volatile unsigned int*)(0x42CE1600UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A33 *((volatile unsigned int*)(0x42CE1604UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A34 *((volatile unsigned int*)(0x42CE1608UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A35 *((volatile unsigned int*)(0x42CE160CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A36 *((volatile unsigned int*)(0x42CE1610UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A37 *((volatile unsigned int*)(0x42CE1614UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A38 *((volatile unsigned int*)(0x42CE1618UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A39 *((volatile unsigned int*)(0x42CE161CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A40 *((volatile unsigned int*)(0x42CE1620UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A41 *((volatile unsigned int*)(0x42CE1624UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A42 *((volatile unsigned int*)(0x42CE1628UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A43 *((volatile unsigned int*)(0x42CE162CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A44 *((volatile unsigned int*)(0x42CE1630UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A45 *((volatile unsigned int*)(0x42CE1634UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A46 *((volatile unsigned int*)(0x42CE1638UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A47 *((volatile unsigned int*)(0x42CE163CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC0 *((volatile unsigned int*)(0x42CE1660UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC1 *((volatile unsigned int*)(0x42CE1664UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC2 *((volatile unsigned int*)(0x42CE1668UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC3 *((volatile unsigned int*)(0x42CE166CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC4 *((volatile unsigned int*)(0x42CE1670UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC5 *((volatile unsigned int*)(0x42CE1674UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_SA *((volatile unsigned int*)(0x42CE1678UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_AE *((volatile unsigned int*)(0x42CE167CUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A0 *((volatile unsigned int*)(0x42CE1680UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A1 *((volatile unsigned int*)(0x42CE1684UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A2 *((volatile unsigned int*)(0x42CE1688UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A3 *((volatile unsigned int*)(0x42CE168CUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A4 *((volatile unsigned int*)(0x42CE1690UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A5 *((volatile unsigned int*)(0x42CE1694UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A6 *((volatile unsigned int*)(0x42CE1698UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A7 *((volatile unsigned int*)(0x42CE169CUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A8 *((volatile unsigned int*)(0x42CE16A0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A9 *((volatile unsigned int*)(0x42CE16A4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A10 *((volatile unsigned int*)(0x42CE16A8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A11 *((volatile unsigned int*)(0x42CE16ACUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A12 *((volatile unsigned int*)(0x42CE16B0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A13 *((volatile unsigned int*)(0x42CE16B4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A14 *((volatile unsigned int*)(0x42CE16B8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A15 *((volatile unsigned int*)(0x42CE16BCUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A16 *((volatile unsigned int*)(0x42CE16C0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A17 *((volatile unsigned int*)(0x42CE16C4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A18 *((volatile unsigned int*)(0x42CE16C8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A19 *((volatile unsigned int*)(0x42CE16CCUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A20 *((volatile unsigned int*)(0x42CE16D0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A21 *((volatile unsigned int*)(0x42CE16D4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A22 *((volatile unsigned int*)(0x42CE16D8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A23 *((volatile unsigned int*)(0x42CE16DCUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A24 *((volatile unsigned int*)(0x42CE16E0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A25 *((volatile unsigned int*)(0x42CE16E4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A26 *((volatile unsigned int*)(0x42CE16E8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A27 *((volatile unsigned int*)(0x42CE16ECUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A28 *((volatile unsigned int*)(0x42CE16F0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A29 *((volatile unsigned int*)(0x42CE16F4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A30 *((volatile unsigned int*)(0x42CE16F8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A31 *((volatile unsigned int*)(0x42CE16FCUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A32 *((volatile unsigned int*)(0x42CE1700UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A33 *((volatile unsigned int*)(0x42CE1704UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A34 *((volatile unsigned int*)(0x42CE1708UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A35 *((volatile unsigned int*)(0x42CE170CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A36 *((volatile unsigned int*)(0x42CE1710UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A37 *((volatile unsigned int*)(0x42CE1714UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A38 *((volatile unsigned int*)(0x42CE1718UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A39 *((volatile unsigned int*)(0x42CE171CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A40 *((volatile unsigned int*)(0x42CE1720UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A41 *((volatile unsigned int*)(0x42CE1724UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A42 *((volatile unsigned int*)(0x42CE1728UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A43 *((volatile unsigned int*)(0x42CE172CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A44 *((volatile unsigned int*)(0x42CE1730UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A45 *((volatile unsigned int*)(0x42CE1734UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A46 *((volatile unsigned int*)(0x42CE1738UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A47 *((volatile unsigned int*)(0x42CE173CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC0 *((volatile unsigned int*)(0x42CE1760UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC1 *((volatile unsigned int*)(0x42CE1764UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC2 *((volatile unsigned int*)(0x42CE1768UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC3 *((volatile unsigned int*)(0x42CE176CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC4 *((volatile unsigned int*)(0x42CE1770UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC5 *((volatile unsigned int*)(0x42CE1774UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_SA *((volatile unsigned int*)(0x42CE1778UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_AE *((volatile unsigned int*)(0x42CE177CUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A0 *((volatile unsigned int*)(0x42CE1780UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A1 *((volatile unsigned int*)(0x42CE1784UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A2 *((volatile unsigned int*)(0x42CE1788UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A3 *((volatile unsigned int*)(0x42CE178CUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A4 *((volatile unsigned int*)(0x42CE1790UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A5 *((volatile unsigned int*)(0x42CE1794UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A6 *((volatile unsigned int*)(0x42CE1798UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A7 *((volatile unsigned int*)(0x42CE179CUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A8 *((volatile unsigned int*)(0x42CE17A0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A9 *((volatile unsigned int*)(0x42CE17A4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A10 *((volatile unsigned int*)(0x42CE17A8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A11 *((volatile unsigned int*)(0x42CE17ACUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A12 *((volatile unsigned int*)(0x42CE17B0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A13 *((volatile unsigned int*)(0x42CE17B4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A14 *((volatile unsigned int*)(0x42CE17B8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A15 *((volatile unsigned int*)(0x42CE17BCUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A16 *((volatile unsigned int*)(0x42CE17C0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A17 *((volatile unsigned int*)(0x42CE17C4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A18 *((volatile unsigned int*)(0x42CE17C8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A19 *((volatile unsigned int*)(0x42CE17CCUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A20 *((volatile unsigned int*)(0x42CE17D0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A21 *((volatile unsigned int*)(0x42CE17D4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A22 *((volatile unsigned int*)(0x42CE17D8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A23 *((volatile unsigned int*)(0x42CE17DCUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A24 *((volatile unsigned int*)(0x42CE17E0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A25 *((volatile unsigned int*)(0x42CE17E4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A26 *((volatile unsigned int*)(0x42CE17E8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A27 *((volatile unsigned int*)(0x42CE17ECUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A28 *((volatile unsigned int*)(0x42CE17F0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A29 *((volatile unsigned int*)(0x42CE17F4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A30 *((volatile unsigned int*)(0x42CE17F8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A31 *((volatile unsigned int*)(0x42CE17FCUL)) -#define bFM3_ETHERNET_MAC1_RGSR_LM *((volatile unsigned int*)(0x42CE1B00UL)) -#define bFM3_ETHERNET_MAC1_RGSR_LSP0 *((volatile unsigned int*)(0x42CE1B04UL)) -#define bFM3_ETHERNET_MAC1_RGSR_LSP1 *((volatile unsigned int*)(0x42CE1B08UL)) -#define bFM3_ETHERNET_MAC1_RGSR_LS *((volatile unsigned int*)(0x42CE1B0CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSE *((volatile unsigned int*)(0x42CEE000UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TFCU *((volatile unsigned int*)(0x42CEE004UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSI *((volatile unsigned int*)(0x42CEE008UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSU *((volatile unsigned int*)(0x42CEE00CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TITE *((volatile unsigned int*)(0x42CEE010UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TARU *((volatile unsigned int*)(0x42CEE014UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSEA *((volatile unsigned int*)(0x42CEE020UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSDB *((volatile unsigned int*)(0x42CEE024UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSV2E *((volatile unsigned int*)(0x42CEE028UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TETSP *((volatile unsigned int*)(0x42CEE02CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSIP6E *((volatile unsigned int*)(0x42CEE030UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSIP4E *((volatile unsigned int*)(0x42CEE034UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TETSEM *((volatile unsigned int*)(0x42CEE038UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSMRM *((volatile unsigned int*)(0x42CEE03CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSPS0 *((volatile unsigned int*)(0x42CEE040UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSPS1 *((volatile unsigned int*)(0x42CEE044UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSENMF *((volatile unsigned int*)(0x42CEE048UL)) -#define bFM3_ETHERNET_MAC1_TSCR_ATSFC *((volatile unsigned int*)(0x42CEE060UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC0 *((volatile unsigned int*)(0x42CEE080UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC1 *((volatile unsigned int*)(0x42CEE084UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC2 *((volatile unsigned int*)(0x42CEE088UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC3 *((volatile unsigned int*)(0x42CEE08CUL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC4 *((volatile unsigned int*)(0x42CEE090UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC5 *((volatile unsigned int*)(0x42CEE094UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC6 *((volatile unsigned int*)(0x42CEE098UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC7 *((volatile unsigned int*)(0x42CEE09CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS0 *((volatile unsigned int*)(0x42CEE100UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS1 *((volatile unsigned int*)(0x42CEE104UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS2 *((volatile unsigned int*)(0x42CEE108UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS3 *((volatile unsigned int*)(0x42CEE10CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS4 *((volatile unsigned int*)(0x42CEE110UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS5 *((volatile unsigned int*)(0x42CEE114UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS6 *((volatile unsigned int*)(0x42CEE118UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS7 *((volatile unsigned int*)(0x42CEE11CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS8 *((volatile unsigned int*)(0x42CEE120UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS9 *((volatile unsigned int*)(0x42CEE124UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS10 *((volatile unsigned int*)(0x42CEE128UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS11 *((volatile unsigned int*)(0x42CEE12CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS12 *((volatile unsigned int*)(0x42CEE130UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS13 *((volatile unsigned int*)(0x42CEE134UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS14 *((volatile unsigned int*)(0x42CEE138UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS15 *((volatile unsigned int*)(0x42CEE13CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS16 *((volatile unsigned int*)(0x42CEE140UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS17 *((volatile unsigned int*)(0x42CEE144UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS18 *((volatile unsigned int*)(0x42CEE148UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS19 *((volatile unsigned int*)(0x42CEE14CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS20 *((volatile unsigned int*)(0x42CEE150UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS21 *((volatile unsigned int*)(0x42CEE154UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS22 *((volatile unsigned int*)(0x42CEE158UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS23 *((volatile unsigned int*)(0x42CEE15CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS24 *((volatile unsigned int*)(0x42CEE160UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS25 *((volatile unsigned int*)(0x42CEE164UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS26 *((volatile unsigned int*)(0x42CEE168UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS27 *((volatile unsigned int*)(0x42CEE16CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS28 *((volatile unsigned int*)(0x42CEE170UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS29 *((volatile unsigned int*)(0x42CEE174UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS30 *((volatile unsigned int*)(0x42CEE178UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS31 *((volatile unsigned int*)(0x42CEE17CUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS0 *((volatile unsigned int*)(0x42CEE080UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS1 *((volatile unsigned int*)(0x42CEE084UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS2 *((volatile unsigned int*)(0x42CEE088UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS3 *((volatile unsigned int*)(0x42CEE08CUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS4 *((volatile unsigned int*)(0x42CEE090UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS5 *((volatile unsigned int*)(0x42CEE094UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS6 *((volatile unsigned int*)(0x42CEE098UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS7 *((volatile unsigned int*)(0x42CEE09CUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS8 *((volatile unsigned int*)(0x42CEE0A0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS9 *((volatile unsigned int*)(0x42CEE0A4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS10 *((volatile unsigned int*)(0x42CEE0A8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS11 *((volatile unsigned int*)(0x42CEE0ACUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS12 *((volatile unsigned int*)(0x42CEE0B0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS13 *((volatile unsigned int*)(0x42CEE0B4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS14 *((volatile unsigned int*)(0x42CEE0B8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS15 *((volatile unsigned int*)(0x42CEE0BCUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS16 *((volatile unsigned int*)(0x42CEE0C0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS17 *((volatile unsigned int*)(0x42CEE0C4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS18 *((volatile unsigned int*)(0x42CEE0C8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS19 *((volatile unsigned int*)(0x42CEE0CCUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS20 *((volatile unsigned int*)(0x42CEE0D0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS21 *((volatile unsigned int*)(0x42CEE0D4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS22 *((volatile unsigned int*)(0x42CEE0D8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS23 *((volatile unsigned int*)(0x42CEE0DCUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS24 *((volatile unsigned int*)(0x42CEE0E0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS25 *((volatile unsigned int*)(0x42CEE0E4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS26 *((volatile unsigned int*)(0x42CEE0E8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS27 *((volatile unsigned int*)(0x42CEE0ECUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS28 *((volatile unsigned int*)(0x42CEE0F0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS29 *((volatile unsigned int*)(0x42CEE0F4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS30 *((volatile unsigned int*)(0x42CEE0F8UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS0 *((volatile unsigned int*)(0x42CEE200UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS1 *((volatile unsigned int*)(0x42CEE204UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS2 *((volatile unsigned int*)(0x42CEE208UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS3 *((volatile unsigned int*)(0x42CEE20CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS4 *((volatile unsigned int*)(0x42CEE210UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS5 *((volatile unsigned int*)(0x42CEE214UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS6 *((volatile unsigned int*)(0x42CEE218UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS7 *((volatile unsigned int*)(0x42CEE21CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS8 *((volatile unsigned int*)(0x42CEE220UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS9 *((volatile unsigned int*)(0x42CEE224UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS10 *((volatile unsigned int*)(0x42CEE228UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS11 *((volatile unsigned int*)(0x42CEE22CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS12 *((volatile unsigned int*)(0x42CEE230UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS13 *((volatile unsigned int*)(0x42CEE234UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS14 *((volatile unsigned int*)(0x42CEE238UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS15 *((volatile unsigned int*)(0x42CEE23CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS16 *((volatile unsigned int*)(0x42CEE240UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS17 *((volatile unsigned int*)(0x42CEE244UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS18 *((volatile unsigned int*)(0x42CEE248UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS19 *((volatile unsigned int*)(0x42CEE24CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS20 *((volatile unsigned int*)(0x42CEE250UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS21 *((volatile unsigned int*)(0x42CEE254UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS22 *((volatile unsigned int*)(0x42CEE258UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS23 *((volatile unsigned int*)(0x42CEE25CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS24 *((volatile unsigned int*)(0x42CEE260UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS25 *((volatile unsigned int*)(0x42CEE264UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS26 *((volatile unsigned int*)(0x42CEE268UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS27 *((volatile unsigned int*)(0x42CEE26CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS28 *((volatile unsigned int*)(0x42CEE270UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS29 *((volatile unsigned int*)(0x42CEE274UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS30 *((volatile unsigned int*)(0x42CEE278UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS31 *((volatile unsigned int*)(0x42CEE27CUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS0 *((volatile unsigned int*)(0x42CEE280UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS1 *((volatile unsigned int*)(0x42CEE284UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS2 *((volatile unsigned int*)(0x42CEE288UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS3 *((volatile unsigned int*)(0x42CEE28CUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS4 *((volatile unsigned int*)(0x42CEE290UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS5 *((volatile unsigned int*)(0x42CEE294UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS6 *((volatile unsigned int*)(0x42CEE298UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS7 *((volatile unsigned int*)(0x42CEE29CUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS8 *((volatile unsigned int*)(0x42CEE2A0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS9 *((volatile unsigned int*)(0x42CEE2A4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS10 *((volatile unsigned int*)(0x42CEE2A8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS11 *((volatile unsigned int*)(0x42CEE2ACUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS12 *((volatile unsigned int*)(0x42CEE2B0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS13 *((volatile unsigned int*)(0x42CEE2B4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS14 *((volatile unsigned int*)(0x42CEE2B8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS15 *((volatile unsigned int*)(0x42CEE2BCUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS16 *((volatile unsigned int*)(0x42CEE2C0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS17 *((volatile unsigned int*)(0x42CEE2C4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS18 *((volatile unsigned int*)(0x42CEE2C8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS19 *((volatile unsigned int*)(0x42CEE2CCUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS20 *((volatile unsigned int*)(0x42CEE2D0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS21 *((volatile unsigned int*)(0x42CEE2D4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS22 *((volatile unsigned int*)(0x42CEE2D8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS23 *((volatile unsigned int*)(0x42CEE2DCUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS24 *((volatile unsigned int*)(0x42CEE2E0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS25 *((volatile unsigned int*)(0x42CEE2E4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS26 *((volatile unsigned int*)(0x42CEE2E8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS27 *((volatile unsigned int*)(0x42CEE2ECUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS28 *((volatile unsigned int*)(0x42CEE2F0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS29 *((volatile unsigned int*)(0x42CEE2F4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS30 *((volatile unsigned int*)(0x42CEE2F8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_ADDSUB *((volatile unsigned int*)(0x42CEE2FCUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR0 *((volatile unsigned int*)(0x42CEE300UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR1 *((volatile unsigned int*)(0x42CEE304UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR2 *((volatile unsigned int*)(0x42CEE308UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR3 *((volatile unsigned int*)(0x42CEE30CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR4 *((volatile unsigned int*)(0x42CEE310UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR5 *((volatile unsigned int*)(0x42CEE314UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR6 *((volatile unsigned int*)(0x42CEE318UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR7 *((volatile unsigned int*)(0x42CEE31CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR8 *((volatile unsigned int*)(0x42CEE320UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR9 *((volatile unsigned int*)(0x42CEE324UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR10 *((volatile unsigned int*)(0x42CEE328UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR11 *((volatile unsigned int*)(0x42CEE32CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR12 *((volatile unsigned int*)(0x42CEE330UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR13 *((volatile unsigned int*)(0x42CEE334UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR14 *((volatile unsigned int*)(0x42CEE338UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR15 *((volatile unsigned int*)(0x42CEE33CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR16 *((volatile unsigned int*)(0x42CEE340UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR17 *((volatile unsigned int*)(0x42CEE344UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR18 *((volatile unsigned int*)(0x42CEE348UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR19 *((volatile unsigned int*)(0x42CEE34CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR20 *((volatile unsigned int*)(0x42CEE350UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR21 *((volatile unsigned int*)(0x42CEE354UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR22 *((volatile unsigned int*)(0x42CEE358UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR23 *((volatile unsigned int*)(0x42CEE35CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR24 *((volatile unsigned int*)(0x42CEE360UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR25 *((volatile unsigned int*)(0x42CEE364UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR26 *((volatile unsigned int*)(0x42CEE368UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR27 *((volatile unsigned int*)(0x42CEE36CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR28 *((volatile unsigned int*)(0x42CEE370UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR29 *((volatile unsigned int*)(0x42CEE374UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR30 *((volatile unsigned int*)(0x42CEE378UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR31 *((volatile unsigned int*)(0x42CEE37CUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR0 *((volatile unsigned int*)(0x42CEE380UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR1 *((volatile unsigned int*)(0x42CEE384UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR2 *((volatile unsigned int*)(0x42CEE388UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR3 *((volatile unsigned int*)(0x42CEE38CUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR4 *((volatile unsigned int*)(0x42CEE390UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR5 *((volatile unsigned int*)(0x42CEE394UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR6 *((volatile unsigned int*)(0x42CEE398UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR7 *((volatile unsigned int*)(0x42CEE39CUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR8 *((volatile unsigned int*)(0x42CEE3A0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR9 *((volatile unsigned int*)(0x42CEE3A4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR10 *((volatile unsigned int*)(0x42CEE3A8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR11 *((volatile unsigned int*)(0x42CEE3ACUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR12 *((volatile unsigned int*)(0x42CEE3B0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR13 *((volatile unsigned int*)(0x42CEE3B4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR14 *((volatile unsigned int*)(0x42CEE3B8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR15 *((volatile unsigned int*)(0x42CEE3BCUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR16 *((volatile unsigned int*)(0x42CEE3C0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR17 *((volatile unsigned int*)(0x42CEE3C4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR18 *((volatile unsigned int*)(0x42CEE3C8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR19 *((volatile unsigned int*)(0x42CEE3CCUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR20 *((volatile unsigned int*)(0x42CEE3D0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR21 *((volatile unsigned int*)(0x42CEE3D4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR22 *((volatile unsigned int*)(0x42CEE3D8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR23 *((volatile unsigned int*)(0x42CEE3DCUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR24 *((volatile unsigned int*)(0x42CEE3E0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR25 *((volatile unsigned int*)(0x42CEE3E4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR26 *((volatile unsigned int*)(0x42CEE3E8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR27 *((volatile unsigned int*)(0x42CEE3ECUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR28 *((volatile unsigned int*)(0x42CEE3F0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR29 *((volatile unsigned int*)(0x42CEE3F4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR30 *((volatile unsigned int*)(0x42CEE3F8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR31 *((volatile unsigned int*)(0x42CEE3FCUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR0 *((volatile unsigned int*)(0x42CEE400UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR1 *((volatile unsigned int*)(0x42CEE404UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR2 *((volatile unsigned int*)(0x42CEE408UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR3 *((volatile unsigned int*)(0x42CEE40CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR4 *((volatile unsigned int*)(0x42CEE410UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR5 *((volatile unsigned int*)(0x42CEE414UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR6 *((volatile unsigned int*)(0x42CEE418UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR7 *((volatile unsigned int*)(0x42CEE41CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR8 *((volatile unsigned int*)(0x42CEE420UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR9 *((volatile unsigned int*)(0x42CEE424UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR10 *((volatile unsigned int*)(0x42CEE428UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR11 *((volatile unsigned int*)(0x42CEE42CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR12 *((volatile unsigned int*)(0x42CEE430UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR13 *((volatile unsigned int*)(0x42CEE434UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR14 *((volatile unsigned int*)(0x42CEE438UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR15 *((volatile unsigned int*)(0x42CEE43CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR16 *((volatile unsigned int*)(0x42CEE440UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR17 *((volatile unsigned int*)(0x42CEE444UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR18 *((volatile unsigned int*)(0x42CEE448UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR19 *((volatile unsigned int*)(0x42CEE44CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR20 *((volatile unsigned int*)(0x42CEE450UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR21 *((volatile unsigned int*)(0x42CEE454UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR22 *((volatile unsigned int*)(0x42CEE458UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR23 *((volatile unsigned int*)(0x42CEE45CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR24 *((volatile unsigned int*)(0x42CEE460UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR25 *((volatile unsigned int*)(0x42CEE464UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR26 *((volatile unsigned int*)(0x42CEE468UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR27 *((volatile unsigned int*)(0x42CEE46CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR28 *((volatile unsigned int*)(0x42CEE470UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR29 *((volatile unsigned int*)(0x42CEE474UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR30 *((volatile unsigned int*)(0x42CEE478UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42CEE480UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42CEE484UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42CEE488UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42CEE48CUL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42CEE490UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42CEE494UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42CEE498UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42CEE49CUL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42CEE4A0UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42CEE4A4UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42CEE4A8UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42CEE4ACUL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42CEE4B0UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42CEE4B4UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42CEE4B8UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42CEE4BCUL)) -#define bFM3_ETHERNET_MAC1_TSR_TSSOVF *((volatile unsigned int*)(0x42CEE500UL)) -#define bFM3_ETHERNET_MAC1_TSR_TSTART *((volatile unsigned int*)(0x42CEE504UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSTS *((volatile unsigned int*)(0x42CEE508UL)) -#define bFM3_ETHERNET_MAC1_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSSTM *((volatile unsigned int*)(0x42CEE560UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSNS0 *((volatile unsigned int*)(0x42CEE564UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSNS1 *((volatile unsigned int*)(0x42CEE568UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSNS2 *((volatile unsigned int*)(0x42CEE56CUL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42CEE580UL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42CEE584UL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42CEE588UL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42CEE58CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN0 *((volatile unsigned int*)(0x42CEE600UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN1 *((volatile unsigned int*)(0x42CEE604UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN2 *((volatile unsigned int*)(0x42CEE608UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN3 *((volatile unsigned int*)(0x42CEE60CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN4 *((volatile unsigned int*)(0x42CEE610UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN5 *((volatile unsigned int*)(0x42CEE614UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN6 *((volatile unsigned int*)(0x42CEE618UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN7 *((volatile unsigned int*)(0x42CEE61CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN8 *((volatile unsigned int*)(0x42CEE620UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN9 *((volatile unsigned int*)(0x42CEE624UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN10 *((volatile unsigned int*)(0x42CEE628UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN11 *((volatile unsigned int*)(0x42CEE62CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN12 *((volatile unsigned int*)(0x42CEE630UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN13 *((volatile unsigned int*)(0x42CEE634UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN14 *((volatile unsigned int*)(0x42CEE638UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN15 *((volatile unsigned int*)(0x42CEE63CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN16 *((volatile unsigned int*)(0x42CEE640UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN17 *((volatile unsigned int*)(0x42CEE644UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN18 *((volatile unsigned int*)(0x42CEE648UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN19 *((volatile unsigned int*)(0x42CEE64CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN20 *((volatile unsigned int*)(0x42CEE650UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN21 *((volatile unsigned int*)(0x42CEE654UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN22 *((volatile unsigned int*)(0x42CEE658UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN23 *((volatile unsigned int*)(0x42CEE65CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN24 *((volatile unsigned int*)(0x42CEE660UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN25 *((volatile unsigned int*)(0x42CEE664UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN26 *((volatile unsigned int*)(0x42CEE668UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN27 *((volatile unsigned int*)(0x42CEE66CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN28 *((volatile unsigned int*)(0x42CEE670UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN29 *((volatile unsigned int*)(0x42CEE674UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN30 *((volatile unsigned int*)(0x42CEE678UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS0 *((volatile unsigned int*)(0x42CEE680UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS1 *((volatile unsigned int*)(0x42CEE684UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS2 *((volatile unsigned int*)(0x42CEE688UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS3 *((volatile unsigned int*)(0x42CEE68CUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS4 *((volatile unsigned int*)(0x42CEE690UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS5 *((volatile unsigned int*)(0x42CEE694UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS6 *((volatile unsigned int*)(0x42CEE698UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS7 *((volatile unsigned int*)(0x42CEE69CUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS8 *((volatile unsigned int*)(0x42CEE6A0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS9 *((volatile unsigned int*)(0x42CEE6A4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS10 *((volatile unsigned int*)(0x42CEE6A8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS11 *((volatile unsigned int*)(0x42CEE6ACUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS12 *((volatile unsigned int*)(0x42CEE6B0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS13 *((volatile unsigned int*)(0x42CEE6B4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS14 *((volatile unsigned int*)(0x42CEE6B8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS15 *((volatile unsigned int*)(0x42CEE6BCUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS16 *((volatile unsigned int*)(0x42CEE6C0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS17 *((volatile unsigned int*)(0x42CEE6C4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS18 *((volatile unsigned int*)(0x42CEE6C8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS19 *((volatile unsigned int*)(0x42CEE6CCUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS20 *((volatile unsigned int*)(0x42CEE6D0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS21 *((volatile unsigned int*)(0x42CEE6D4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS22 *((volatile unsigned int*)(0x42CEE6D8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS23 *((volatile unsigned int*)(0x42CEE6DCUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS24 *((volatile unsigned int*)(0x42CEE6E0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS25 *((volatile unsigned int*)(0x42CEE6E4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS26 *((volatile unsigned int*)(0x42CEE6E8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS27 *((volatile unsigned int*)(0x42CEE6ECUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS28 *((volatile unsigned int*)(0x42CEE6F0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS29 *((volatile unsigned int*)(0x42CEE6F4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS30 *((volatile unsigned int*)(0x42CEE6F8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS31 *((volatile unsigned int*)(0x42CEE6FCUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A32 *((volatile unsigned int*)(0x42CF0000UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A33 *((volatile unsigned int*)(0x42CF0004UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A34 *((volatile unsigned int*)(0x42CF0008UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A35 *((volatile unsigned int*)(0x42CF000CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A36 *((volatile unsigned int*)(0x42CF0010UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A37 *((volatile unsigned int*)(0x42CF0014UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A38 *((volatile unsigned int*)(0x42CF0018UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A39 *((volatile unsigned int*)(0x42CF001CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A40 *((volatile unsigned int*)(0x42CF0020UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A41 *((volatile unsigned int*)(0x42CF0024UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A42 *((volatile unsigned int*)(0x42CF0028UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A43 *((volatile unsigned int*)(0x42CF002CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A44 *((volatile unsigned int*)(0x42CF0030UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A45 *((volatile unsigned int*)(0x42CF0034UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A46 *((volatile unsigned int*)(0x42CF0038UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A47 *((volatile unsigned int*)(0x42CF003CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC0 *((volatile unsigned int*)(0x42CF0060UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC1 *((volatile unsigned int*)(0x42CF0064UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC2 *((volatile unsigned int*)(0x42CF0068UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC3 *((volatile unsigned int*)(0x42CF006CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC4 *((volatile unsigned int*)(0x42CF0070UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC5 *((volatile unsigned int*)(0x42CF0074UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_SA *((volatile unsigned int*)(0x42CF0078UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_AE *((volatile unsigned int*)(0x42CF007CUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A0 *((volatile unsigned int*)(0x42CF0080UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A1 *((volatile unsigned int*)(0x42CF0084UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A2 *((volatile unsigned int*)(0x42CF0088UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A3 *((volatile unsigned int*)(0x42CF008CUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A4 *((volatile unsigned int*)(0x42CF0090UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A5 *((volatile unsigned int*)(0x42CF0094UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A6 *((volatile unsigned int*)(0x42CF0098UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A7 *((volatile unsigned int*)(0x42CF009CUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A8 *((volatile unsigned int*)(0x42CF00A0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A9 *((volatile unsigned int*)(0x42CF00A4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A10 *((volatile unsigned int*)(0x42CF00A8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A11 *((volatile unsigned int*)(0x42CF00ACUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A12 *((volatile unsigned int*)(0x42CF00B0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A13 *((volatile unsigned int*)(0x42CF00B4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A14 *((volatile unsigned int*)(0x42CF00B8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A15 *((volatile unsigned int*)(0x42CF00BCUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A16 *((volatile unsigned int*)(0x42CF00C0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A17 *((volatile unsigned int*)(0x42CF00C4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A18 *((volatile unsigned int*)(0x42CF00C8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A19 *((volatile unsigned int*)(0x42CF00CCUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A20 *((volatile unsigned int*)(0x42CF00D0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A21 *((volatile unsigned int*)(0x42CF00D4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A22 *((volatile unsigned int*)(0x42CF00D8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A23 *((volatile unsigned int*)(0x42CF00DCUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A24 *((volatile unsigned int*)(0x42CF00E0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A25 *((volatile unsigned int*)(0x42CF00E4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A26 *((volatile unsigned int*)(0x42CF00E8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A27 *((volatile unsigned int*)(0x42CF00ECUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A28 *((volatile unsigned int*)(0x42CF00F0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A29 *((volatile unsigned int*)(0x42CF00F4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A30 *((volatile unsigned int*)(0x42CF00F8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A31 *((volatile unsigned int*)(0x42CF00FCUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A32 *((volatile unsigned int*)(0x42CF0100UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A33 *((volatile unsigned int*)(0x42CF0104UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A34 *((volatile unsigned int*)(0x42CF0108UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A35 *((volatile unsigned int*)(0x42CF010CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A36 *((volatile unsigned int*)(0x42CF0110UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A37 *((volatile unsigned int*)(0x42CF0114UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A38 *((volatile unsigned int*)(0x42CF0118UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A39 *((volatile unsigned int*)(0x42CF011CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A40 *((volatile unsigned int*)(0x42CF0120UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A41 *((volatile unsigned int*)(0x42CF0124UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A42 *((volatile unsigned int*)(0x42CF0128UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A43 *((volatile unsigned int*)(0x42CF012CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A44 *((volatile unsigned int*)(0x42CF0130UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A45 *((volatile unsigned int*)(0x42CF0134UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A46 *((volatile unsigned int*)(0x42CF0138UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A47 *((volatile unsigned int*)(0x42CF013CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC0 *((volatile unsigned int*)(0x42CF0160UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC1 *((volatile unsigned int*)(0x42CF0164UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC2 *((volatile unsigned int*)(0x42CF0168UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC3 *((volatile unsigned int*)(0x42CF016CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC4 *((volatile unsigned int*)(0x42CF0170UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC5 *((volatile unsigned int*)(0x42CF0174UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_SA *((volatile unsigned int*)(0x42CF0178UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_AE *((volatile unsigned int*)(0x42CF017CUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A0 *((volatile unsigned int*)(0x42CF0180UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A1 *((volatile unsigned int*)(0x42CF0184UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A2 *((volatile unsigned int*)(0x42CF0188UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A3 *((volatile unsigned int*)(0x42CF018CUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A4 *((volatile unsigned int*)(0x42CF0190UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A5 *((volatile unsigned int*)(0x42CF0194UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A6 *((volatile unsigned int*)(0x42CF0198UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A7 *((volatile unsigned int*)(0x42CF019CUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A8 *((volatile unsigned int*)(0x42CF01A0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A9 *((volatile unsigned int*)(0x42CF01A4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A10 *((volatile unsigned int*)(0x42CF01A8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A11 *((volatile unsigned int*)(0x42CF01ACUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A12 *((volatile unsigned int*)(0x42CF01B0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A13 *((volatile unsigned int*)(0x42CF01B4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A14 *((volatile unsigned int*)(0x42CF01B8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A15 *((volatile unsigned int*)(0x42CF01BCUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A16 *((volatile unsigned int*)(0x42CF01C0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A17 *((volatile unsigned int*)(0x42CF01C4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A18 *((volatile unsigned int*)(0x42CF01C8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A19 *((volatile unsigned int*)(0x42CF01CCUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A20 *((volatile unsigned int*)(0x42CF01D0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A21 *((volatile unsigned int*)(0x42CF01D4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A22 *((volatile unsigned int*)(0x42CF01D8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A23 *((volatile unsigned int*)(0x42CF01DCUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A24 *((volatile unsigned int*)(0x42CF01E0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A25 *((volatile unsigned int*)(0x42CF01E4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A26 *((volatile unsigned int*)(0x42CF01E8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A27 *((volatile unsigned int*)(0x42CF01ECUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A28 *((volatile unsigned int*)(0x42CF01F0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A29 *((volatile unsigned int*)(0x42CF01F4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A30 *((volatile unsigned int*)(0x42CF01F8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A31 *((volatile unsigned int*)(0x42CF01FCUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A32 *((volatile unsigned int*)(0x42CF0200UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A33 *((volatile unsigned int*)(0x42CF0204UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A34 *((volatile unsigned int*)(0x42CF0208UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A35 *((volatile unsigned int*)(0x42CF020CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A36 *((volatile unsigned int*)(0x42CF0210UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A37 *((volatile unsigned int*)(0x42CF0214UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A38 *((volatile unsigned int*)(0x42CF0218UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A39 *((volatile unsigned int*)(0x42CF021CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A40 *((volatile unsigned int*)(0x42CF0220UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A41 *((volatile unsigned int*)(0x42CF0224UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A42 *((volatile unsigned int*)(0x42CF0228UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A43 *((volatile unsigned int*)(0x42CF022CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A44 *((volatile unsigned int*)(0x42CF0230UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A45 *((volatile unsigned int*)(0x42CF0234UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A46 *((volatile unsigned int*)(0x42CF0238UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A47 *((volatile unsigned int*)(0x42CF023CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC0 *((volatile unsigned int*)(0x42CF0260UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC1 *((volatile unsigned int*)(0x42CF0264UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC2 *((volatile unsigned int*)(0x42CF0268UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC3 *((volatile unsigned int*)(0x42CF026CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC4 *((volatile unsigned int*)(0x42CF0270UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC5 *((volatile unsigned int*)(0x42CF0274UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_SA *((volatile unsigned int*)(0x42CF0278UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_AE *((volatile unsigned int*)(0x42CF027CUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A0 *((volatile unsigned int*)(0x42CF0280UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A1 *((volatile unsigned int*)(0x42CF0284UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A2 *((volatile unsigned int*)(0x42CF0288UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A3 *((volatile unsigned int*)(0x42CF028CUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A4 *((volatile unsigned int*)(0x42CF0290UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A5 *((volatile unsigned int*)(0x42CF0294UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A6 *((volatile unsigned int*)(0x42CF0298UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A7 *((volatile unsigned int*)(0x42CF029CUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A8 *((volatile unsigned int*)(0x42CF02A0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A9 *((volatile unsigned int*)(0x42CF02A4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A10 *((volatile unsigned int*)(0x42CF02A8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A11 *((volatile unsigned int*)(0x42CF02ACUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A12 *((volatile unsigned int*)(0x42CF02B0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A13 *((volatile unsigned int*)(0x42CF02B4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A14 *((volatile unsigned int*)(0x42CF02B8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A15 *((volatile unsigned int*)(0x42CF02BCUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A16 *((volatile unsigned int*)(0x42CF02C0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A17 *((volatile unsigned int*)(0x42CF02C4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A18 *((volatile unsigned int*)(0x42CF02C8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A19 *((volatile unsigned int*)(0x42CF02CCUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A20 *((volatile unsigned int*)(0x42CF02D0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A21 *((volatile unsigned int*)(0x42CF02D4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A22 *((volatile unsigned int*)(0x42CF02D8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A23 *((volatile unsigned int*)(0x42CF02DCUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A24 *((volatile unsigned int*)(0x42CF02E0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A25 *((volatile unsigned int*)(0x42CF02E4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A26 *((volatile unsigned int*)(0x42CF02E8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A27 *((volatile unsigned int*)(0x42CF02ECUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A28 *((volatile unsigned int*)(0x42CF02F0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A29 *((volatile unsigned int*)(0x42CF02F4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A30 *((volatile unsigned int*)(0x42CF02F8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A31 *((volatile unsigned int*)(0x42CF02FCUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A32 *((volatile unsigned int*)(0x42CF0300UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A33 *((volatile unsigned int*)(0x42CF0304UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A34 *((volatile unsigned int*)(0x42CF0308UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A35 *((volatile unsigned int*)(0x42CF030CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A36 *((volatile unsigned int*)(0x42CF0310UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A37 *((volatile unsigned int*)(0x42CF0314UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A38 *((volatile unsigned int*)(0x42CF0318UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A39 *((volatile unsigned int*)(0x42CF031CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A40 *((volatile unsigned int*)(0x42CF0320UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A41 *((volatile unsigned int*)(0x42CF0324UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A42 *((volatile unsigned int*)(0x42CF0328UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A43 *((volatile unsigned int*)(0x42CF032CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A44 *((volatile unsigned int*)(0x42CF0330UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A45 *((volatile unsigned int*)(0x42CF0334UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A46 *((volatile unsigned int*)(0x42CF0338UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A47 *((volatile unsigned int*)(0x42CF033CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC0 *((volatile unsigned int*)(0x42CF0360UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC1 *((volatile unsigned int*)(0x42CF0364UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC2 *((volatile unsigned int*)(0x42CF0368UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC3 *((volatile unsigned int*)(0x42CF036CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC4 *((volatile unsigned int*)(0x42CF0370UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC5 *((volatile unsigned int*)(0x42CF0374UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_SA *((volatile unsigned int*)(0x42CF0378UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_AE *((volatile unsigned int*)(0x42CF037CUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A0 *((volatile unsigned int*)(0x42CF0380UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A1 *((volatile unsigned int*)(0x42CF0384UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A2 *((volatile unsigned int*)(0x42CF0388UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A3 *((volatile unsigned int*)(0x42CF038CUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A4 *((volatile unsigned int*)(0x42CF0390UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A5 *((volatile unsigned int*)(0x42CF0394UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A6 *((volatile unsigned int*)(0x42CF0398UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A7 *((volatile unsigned int*)(0x42CF039CUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A8 *((volatile unsigned int*)(0x42CF03A0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A9 *((volatile unsigned int*)(0x42CF03A4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A10 *((volatile unsigned int*)(0x42CF03A8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A11 *((volatile unsigned int*)(0x42CF03ACUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A12 *((volatile unsigned int*)(0x42CF03B0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A13 *((volatile unsigned int*)(0x42CF03B4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A14 *((volatile unsigned int*)(0x42CF03B8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A15 *((volatile unsigned int*)(0x42CF03BCUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A16 *((volatile unsigned int*)(0x42CF03C0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A17 *((volatile unsigned int*)(0x42CF03C4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A18 *((volatile unsigned int*)(0x42CF03C8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A19 *((volatile unsigned int*)(0x42CF03CCUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A20 *((volatile unsigned int*)(0x42CF03D0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A21 *((volatile unsigned int*)(0x42CF03D4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A22 *((volatile unsigned int*)(0x42CF03D8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A23 *((volatile unsigned int*)(0x42CF03DCUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A24 *((volatile unsigned int*)(0x42CF03E0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A25 *((volatile unsigned int*)(0x42CF03E4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A26 *((volatile unsigned int*)(0x42CF03E8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A27 *((volatile unsigned int*)(0x42CF03ECUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A28 *((volatile unsigned int*)(0x42CF03F0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A29 *((volatile unsigned int*)(0x42CF03F4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A30 *((volatile unsigned int*)(0x42CF03F8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A31 *((volatile unsigned int*)(0x42CF03FCUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A32 *((volatile unsigned int*)(0x42CF0400UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A33 *((volatile unsigned int*)(0x42CF0404UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A34 *((volatile unsigned int*)(0x42CF0408UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A35 *((volatile unsigned int*)(0x42CF040CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A36 *((volatile unsigned int*)(0x42CF0410UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A37 *((volatile unsigned int*)(0x42CF0414UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A38 *((volatile unsigned int*)(0x42CF0418UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A39 *((volatile unsigned int*)(0x42CF041CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A40 *((volatile unsigned int*)(0x42CF0420UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A41 *((volatile unsigned int*)(0x42CF0424UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A42 *((volatile unsigned int*)(0x42CF0428UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A43 *((volatile unsigned int*)(0x42CF042CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A44 *((volatile unsigned int*)(0x42CF0430UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A45 *((volatile unsigned int*)(0x42CF0434UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A46 *((volatile unsigned int*)(0x42CF0438UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A47 *((volatile unsigned int*)(0x42CF043CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC0 *((volatile unsigned int*)(0x42CF0460UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC1 *((volatile unsigned int*)(0x42CF0464UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC2 *((volatile unsigned int*)(0x42CF0468UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC3 *((volatile unsigned int*)(0x42CF046CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC4 *((volatile unsigned int*)(0x42CF0470UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC5 *((volatile unsigned int*)(0x42CF0474UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_SA *((volatile unsigned int*)(0x42CF0478UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_AE *((volatile unsigned int*)(0x42CF047CUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A0 *((volatile unsigned int*)(0x42CF0480UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A1 *((volatile unsigned int*)(0x42CF0484UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A2 *((volatile unsigned int*)(0x42CF0488UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A3 *((volatile unsigned int*)(0x42CF048CUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A4 *((volatile unsigned int*)(0x42CF0490UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A5 *((volatile unsigned int*)(0x42CF0494UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A6 *((volatile unsigned int*)(0x42CF0498UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A7 *((volatile unsigned int*)(0x42CF049CUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A8 *((volatile unsigned int*)(0x42CF04A0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A9 *((volatile unsigned int*)(0x42CF04A4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A10 *((volatile unsigned int*)(0x42CF04A8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A11 *((volatile unsigned int*)(0x42CF04ACUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A12 *((volatile unsigned int*)(0x42CF04B0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A13 *((volatile unsigned int*)(0x42CF04B4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A14 *((volatile unsigned int*)(0x42CF04B8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A15 *((volatile unsigned int*)(0x42CF04BCUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A16 *((volatile unsigned int*)(0x42CF04C0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A17 *((volatile unsigned int*)(0x42CF04C4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A18 *((volatile unsigned int*)(0x42CF04C8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A19 *((volatile unsigned int*)(0x42CF04CCUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A20 *((volatile unsigned int*)(0x42CF04D0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A21 *((volatile unsigned int*)(0x42CF04D4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A22 *((volatile unsigned int*)(0x42CF04D8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A23 *((volatile unsigned int*)(0x42CF04DCUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A24 *((volatile unsigned int*)(0x42CF04E0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A25 *((volatile unsigned int*)(0x42CF04E4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A26 *((volatile unsigned int*)(0x42CF04E8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A27 *((volatile unsigned int*)(0x42CF04ECUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A28 *((volatile unsigned int*)(0x42CF04F0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A29 *((volatile unsigned int*)(0x42CF04F4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A30 *((volatile unsigned int*)(0x42CF04F8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A31 *((volatile unsigned int*)(0x42CF04FCUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A32 *((volatile unsigned int*)(0x42CF0500UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A33 *((volatile unsigned int*)(0x42CF0504UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A34 *((volatile unsigned int*)(0x42CF0508UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A35 *((volatile unsigned int*)(0x42CF050CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A36 *((volatile unsigned int*)(0x42CF0510UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A37 *((volatile unsigned int*)(0x42CF0514UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A38 *((volatile unsigned int*)(0x42CF0518UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A39 *((volatile unsigned int*)(0x42CF051CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A40 *((volatile unsigned int*)(0x42CF0520UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A41 *((volatile unsigned int*)(0x42CF0524UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A42 *((volatile unsigned int*)(0x42CF0528UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A43 *((volatile unsigned int*)(0x42CF052CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A44 *((volatile unsigned int*)(0x42CF0530UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A45 *((volatile unsigned int*)(0x42CF0534UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A46 *((volatile unsigned int*)(0x42CF0538UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A47 *((volatile unsigned int*)(0x42CF053CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC0 *((volatile unsigned int*)(0x42CF0560UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC1 *((volatile unsigned int*)(0x42CF0564UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC2 *((volatile unsigned int*)(0x42CF0568UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC3 *((volatile unsigned int*)(0x42CF056CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC4 *((volatile unsigned int*)(0x42CF0570UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC5 *((volatile unsigned int*)(0x42CF0574UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_SA *((volatile unsigned int*)(0x42CF0578UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_AE *((volatile unsigned int*)(0x42CF057CUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A0 *((volatile unsigned int*)(0x42CF0580UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A1 *((volatile unsigned int*)(0x42CF0584UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A2 *((volatile unsigned int*)(0x42CF0588UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A3 *((volatile unsigned int*)(0x42CF058CUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A4 *((volatile unsigned int*)(0x42CF0590UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A5 *((volatile unsigned int*)(0x42CF0594UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A6 *((volatile unsigned int*)(0x42CF0598UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A7 *((volatile unsigned int*)(0x42CF059CUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A8 *((volatile unsigned int*)(0x42CF05A0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A9 *((volatile unsigned int*)(0x42CF05A4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A10 *((volatile unsigned int*)(0x42CF05A8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A11 *((volatile unsigned int*)(0x42CF05ACUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A12 *((volatile unsigned int*)(0x42CF05B0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A13 *((volatile unsigned int*)(0x42CF05B4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A14 *((volatile unsigned int*)(0x42CF05B8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A15 *((volatile unsigned int*)(0x42CF05BCUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A16 *((volatile unsigned int*)(0x42CF05C0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A17 *((volatile unsigned int*)(0x42CF05C4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A18 *((volatile unsigned int*)(0x42CF05C8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A19 *((volatile unsigned int*)(0x42CF05CCUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A20 *((volatile unsigned int*)(0x42CF05D0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A21 *((volatile unsigned int*)(0x42CF05D4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A22 *((volatile unsigned int*)(0x42CF05D8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A23 *((volatile unsigned int*)(0x42CF05DCUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A24 *((volatile unsigned int*)(0x42CF05E0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A25 *((volatile unsigned int*)(0x42CF05E4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A26 *((volatile unsigned int*)(0x42CF05E8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A27 *((volatile unsigned int*)(0x42CF05ECUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A28 *((volatile unsigned int*)(0x42CF05F0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A29 *((volatile unsigned int*)(0x42CF05F4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A30 *((volatile unsigned int*)(0x42CF05F8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A31 *((volatile unsigned int*)(0x42CF05FCUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A32 *((volatile unsigned int*)(0x42CF0600UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A33 *((volatile unsigned int*)(0x42CF0604UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A34 *((volatile unsigned int*)(0x42CF0608UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A35 *((volatile unsigned int*)(0x42CF060CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A36 *((volatile unsigned int*)(0x42CF0610UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A37 *((volatile unsigned int*)(0x42CF0614UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A38 *((volatile unsigned int*)(0x42CF0618UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A39 *((volatile unsigned int*)(0x42CF061CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A40 *((volatile unsigned int*)(0x42CF0620UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A41 *((volatile unsigned int*)(0x42CF0624UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A42 *((volatile unsigned int*)(0x42CF0628UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A43 *((volatile unsigned int*)(0x42CF062CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A44 *((volatile unsigned int*)(0x42CF0630UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A45 *((volatile unsigned int*)(0x42CF0634UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A46 *((volatile unsigned int*)(0x42CF0638UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A47 *((volatile unsigned int*)(0x42CF063CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC0 *((volatile unsigned int*)(0x42CF0660UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC1 *((volatile unsigned int*)(0x42CF0664UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC2 *((volatile unsigned int*)(0x42CF0668UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC3 *((volatile unsigned int*)(0x42CF066CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC4 *((volatile unsigned int*)(0x42CF0670UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC5 *((volatile unsigned int*)(0x42CF0674UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_SA *((volatile unsigned int*)(0x42CF0678UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_AE *((volatile unsigned int*)(0x42CF067CUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A0 *((volatile unsigned int*)(0x42CF0680UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A1 *((volatile unsigned int*)(0x42CF0684UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A2 *((volatile unsigned int*)(0x42CF0688UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A3 *((volatile unsigned int*)(0x42CF068CUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A4 *((volatile unsigned int*)(0x42CF0690UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A5 *((volatile unsigned int*)(0x42CF0694UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A6 *((volatile unsigned int*)(0x42CF0698UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A7 *((volatile unsigned int*)(0x42CF069CUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A8 *((volatile unsigned int*)(0x42CF06A0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A9 *((volatile unsigned int*)(0x42CF06A4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A10 *((volatile unsigned int*)(0x42CF06A8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A11 *((volatile unsigned int*)(0x42CF06ACUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A12 *((volatile unsigned int*)(0x42CF06B0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A13 *((volatile unsigned int*)(0x42CF06B4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A14 *((volatile unsigned int*)(0x42CF06B8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A15 *((volatile unsigned int*)(0x42CF06BCUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A16 *((volatile unsigned int*)(0x42CF06C0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A17 *((volatile unsigned int*)(0x42CF06C4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A18 *((volatile unsigned int*)(0x42CF06C8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A19 *((volatile unsigned int*)(0x42CF06CCUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A20 *((volatile unsigned int*)(0x42CF06D0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A21 *((volatile unsigned int*)(0x42CF06D4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A22 *((volatile unsigned int*)(0x42CF06D8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A23 *((volatile unsigned int*)(0x42CF06DCUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A24 *((volatile unsigned int*)(0x42CF06E0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A25 *((volatile unsigned int*)(0x42CF06E4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A26 *((volatile unsigned int*)(0x42CF06E8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A27 *((volatile unsigned int*)(0x42CF06ECUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A28 *((volatile unsigned int*)(0x42CF06F0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A29 *((volatile unsigned int*)(0x42CF06F4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A30 *((volatile unsigned int*)(0x42CF06F8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A31 *((volatile unsigned int*)(0x42CF06FCUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A32 *((volatile unsigned int*)(0x42CF0700UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A33 *((volatile unsigned int*)(0x42CF0704UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A34 *((volatile unsigned int*)(0x42CF0708UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A35 *((volatile unsigned int*)(0x42CF070CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A36 *((volatile unsigned int*)(0x42CF0710UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A37 *((volatile unsigned int*)(0x42CF0714UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A38 *((volatile unsigned int*)(0x42CF0718UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A39 *((volatile unsigned int*)(0x42CF071CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A40 *((volatile unsigned int*)(0x42CF0720UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A41 *((volatile unsigned int*)(0x42CF0724UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A42 *((volatile unsigned int*)(0x42CF0728UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A43 *((volatile unsigned int*)(0x42CF072CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A44 *((volatile unsigned int*)(0x42CF0730UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A45 *((volatile unsigned int*)(0x42CF0734UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A46 *((volatile unsigned int*)(0x42CF0738UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A47 *((volatile unsigned int*)(0x42CF073CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC0 *((volatile unsigned int*)(0x42CF0760UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC1 *((volatile unsigned int*)(0x42CF0764UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC2 *((volatile unsigned int*)(0x42CF0768UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC3 *((volatile unsigned int*)(0x42CF076CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC4 *((volatile unsigned int*)(0x42CF0770UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC5 *((volatile unsigned int*)(0x42CF0774UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_SA *((volatile unsigned int*)(0x42CF0778UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_AE *((volatile unsigned int*)(0x42CF077CUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A0 *((volatile unsigned int*)(0x42CF0780UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A1 *((volatile unsigned int*)(0x42CF0784UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A2 *((volatile unsigned int*)(0x42CF0788UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A3 *((volatile unsigned int*)(0x42CF078CUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A4 *((volatile unsigned int*)(0x42CF0790UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A5 *((volatile unsigned int*)(0x42CF0794UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A6 *((volatile unsigned int*)(0x42CF0798UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A7 *((volatile unsigned int*)(0x42CF079CUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A8 *((volatile unsigned int*)(0x42CF07A0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A9 *((volatile unsigned int*)(0x42CF07A4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A10 *((volatile unsigned int*)(0x42CF07A8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A11 *((volatile unsigned int*)(0x42CF07ACUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A12 *((volatile unsigned int*)(0x42CF07B0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A13 *((volatile unsigned int*)(0x42CF07B4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A14 *((volatile unsigned int*)(0x42CF07B8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A15 *((volatile unsigned int*)(0x42CF07BCUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A16 *((volatile unsigned int*)(0x42CF07C0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A17 *((volatile unsigned int*)(0x42CF07C4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A18 *((volatile unsigned int*)(0x42CF07C8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A19 *((volatile unsigned int*)(0x42CF07CCUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A20 *((volatile unsigned int*)(0x42CF07D0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A21 *((volatile unsigned int*)(0x42CF07D4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A22 *((volatile unsigned int*)(0x42CF07D8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A23 *((volatile unsigned int*)(0x42CF07DCUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A24 *((volatile unsigned int*)(0x42CF07E0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A25 *((volatile unsigned int*)(0x42CF07E4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A26 *((volatile unsigned int*)(0x42CF07E8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A27 *((volatile unsigned int*)(0x42CF07ECUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A28 *((volatile unsigned int*)(0x42CF07F0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A29 *((volatile unsigned int*)(0x42CF07F4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A30 *((volatile unsigned int*)(0x42CF07F8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A31 *((volatile unsigned int*)(0x42CF07FCUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A32 *((volatile unsigned int*)(0x42CF0800UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A33 *((volatile unsigned int*)(0x42CF0804UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A34 *((volatile unsigned int*)(0x42CF0808UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A35 *((volatile unsigned int*)(0x42CF080CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A36 *((volatile unsigned int*)(0x42CF0810UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A37 *((volatile unsigned int*)(0x42CF0814UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A38 *((volatile unsigned int*)(0x42CF0818UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A39 *((volatile unsigned int*)(0x42CF081CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A40 *((volatile unsigned int*)(0x42CF0820UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A41 *((volatile unsigned int*)(0x42CF0824UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A42 *((volatile unsigned int*)(0x42CF0828UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A43 *((volatile unsigned int*)(0x42CF082CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A44 *((volatile unsigned int*)(0x42CF0830UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A45 *((volatile unsigned int*)(0x42CF0834UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A46 *((volatile unsigned int*)(0x42CF0838UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A47 *((volatile unsigned int*)(0x42CF083CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC0 *((volatile unsigned int*)(0x42CF0860UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC1 *((volatile unsigned int*)(0x42CF0864UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC2 *((volatile unsigned int*)(0x42CF0868UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC3 *((volatile unsigned int*)(0x42CF086CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC4 *((volatile unsigned int*)(0x42CF0870UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC5 *((volatile unsigned int*)(0x42CF0874UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_SA *((volatile unsigned int*)(0x42CF0878UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_AE *((volatile unsigned int*)(0x42CF087CUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A0 *((volatile unsigned int*)(0x42CF0880UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A1 *((volatile unsigned int*)(0x42CF0884UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A2 *((volatile unsigned int*)(0x42CF0888UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A3 *((volatile unsigned int*)(0x42CF088CUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A4 *((volatile unsigned int*)(0x42CF0890UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A5 *((volatile unsigned int*)(0x42CF0894UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A6 *((volatile unsigned int*)(0x42CF0898UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A7 *((volatile unsigned int*)(0x42CF089CUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A8 *((volatile unsigned int*)(0x42CF08A0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A9 *((volatile unsigned int*)(0x42CF08A4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A10 *((volatile unsigned int*)(0x42CF08A8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A11 *((volatile unsigned int*)(0x42CF08ACUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A12 *((volatile unsigned int*)(0x42CF08B0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A13 *((volatile unsigned int*)(0x42CF08B4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A14 *((volatile unsigned int*)(0x42CF08B8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A15 *((volatile unsigned int*)(0x42CF08BCUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A16 *((volatile unsigned int*)(0x42CF08C0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A17 *((volatile unsigned int*)(0x42CF08C4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A18 *((volatile unsigned int*)(0x42CF08C8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A19 *((volatile unsigned int*)(0x42CF08CCUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A20 *((volatile unsigned int*)(0x42CF08D0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A21 *((volatile unsigned int*)(0x42CF08D4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A22 *((volatile unsigned int*)(0x42CF08D8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A23 *((volatile unsigned int*)(0x42CF08DCUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A24 *((volatile unsigned int*)(0x42CF08E0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A25 *((volatile unsigned int*)(0x42CF08E4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A26 *((volatile unsigned int*)(0x42CF08E8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A27 *((volatile unsigned int*)(0x42CF08ECUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A28 *((volatile unsigned int*)(0x42CF08F0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A29 *((volatile unsigned int*)(0x42CF08F4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A30 *((volatile unsigned int*)(0x42CF08F8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A31 *((volatile unsigned int*)(0x42CF08FCUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A32 *((volatile unsigned int*)(0x42CF0900UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A33 *((volatile unsigned int*)(0x42CF0904UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A34 *((volatile unsigned int*)(0x42CF0908UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A35 *((volatile unsigned int*)(0x42CF090CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A36 *((volatile unsigned int*)(0x42CF0910UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A37 *((volatile unsigned int*)(0x42CF0914UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A38 *((volatile unsigned int*)(0x42CF0918UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A39 *((volatile unsigned int*)(0x42CF091CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A40 *((volatile unsigned int*)(0x42CF0920UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A41 *((volatile unsigned int*)(0x42CF0924UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A42 *((volatile unsigned int*)(0x42CF0928UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A43 *((volatile unsigned int*)(0x42CF092CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A44 *((volatile unsigned int*)(0x42CF0930UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A45 *((volatile unsigned int*)(0x42CF0934UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A46 *((volatile unsigned int*)(0x42CF0938UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A47 *((volatile unsigned int*)(0x42CF093CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC0 *((volatile unsigned int*)(0x42CF0960UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC1 *((volatile unsigned int*)(0x42CF0964UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC2 *((volatile unsigned int*)(0x42CF0968UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC3 *((volatile unsigned int*)(0x42CF096CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC4 *((volatile unsigned int*)(0x42CF0970UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC5 *((volatile unsigned int*)(0x42CF0974UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_SA *((volatile unsigned int*)(0x42CF0978UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_AE *((volatile unsigned int*)(0x42CF097CUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A0 *((volatile unsigned int*)(0x42CF0980UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A1 *((volatile unsigned int*)(0x42CF0984UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A2 *((volatile unsigned int*)(0x42CF0988UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A3 *((volatile unsigned int*)(0x42CF098CUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A4 *((volatile unsigned int*)(0x42CF0990UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A5 *((volatile unsigned int*)(0x42CF0994UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A6 *((volatile unsigned int*)(0x42CF0998UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A7 *((volatile unsigned int*)(0x42CF099CUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A8 *((volatile unsigned int*)(0x42CF09A0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A9 *((volatile unsigned int*)(0x42CF09A4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A10 *((volatile unsigned int*)(0x42CF09A8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A11 *((volatile unsigned int*)(0x42CF09ACUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A12 *((volatile unsigned int*)(0x42CF09B0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A13 *((volatile unsigned int*)(0x42CF09B4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A14 *((volatile unsigned int*)(0x42CF09B8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A15 *((volatile unsigned int*)(0x42CF09BCUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A16 *((volatile unsigned int*)(0x42CF09C0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A17 *((volatile unsigned int*)(0x42CF09C4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A18 *((volatile unsigned int*)(0x42CF09C8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A19 *((volatile unsigned int*)(0x42CF09CCUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A20 *((volatile unsigned int*)(0x42CF09D0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A21 *((volatile unsigned int*)(0x42CF09D4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A22 *((volatile unsigned int*)(0x42CF09D8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A23 *((volatile unsigned int*)(0x42CF09DCUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A24 *((volatile unsigned int*)(0x42CF09E0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A25 *((volatile unsigned int*)(0x42CF09E4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A26 *((volatile unsigned int*)(0x42CF09E8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A27 *((volatile unsigned int*)(0x42CF09ECUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A28 *((volatile unsigned int*)(0x42CF09F0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A29 *((volatile unsigned int*)(0x42CF09F4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A30 *((volatile unsigned int*)(0x42CF09F8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A31 *((volatile unsigned int*)(0x42CF09FCUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A32 *((volatile unsigned int*)(0x42CF0A00UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A33 *((volatile unsigned int*)(0x42CF0A04UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A34 *((volatile unsigned int*)(0x42CF0A08UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A35 *((volatile unsigned int*)(0x42CF0A0CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A36 *((volatile unsigned int*)(0x42CF0A10UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A37 *((volatile unsigned int*)(0x42CF0A14UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A38 *((volatile unsigned int*)(0x42CF0A18UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A39 *((volatile unsigned int*)(0x42CF0A1CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A40 *((volatile unsigned int*)(0x42CF0A20UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A41 *((volatile unsigned int*)(0x42CF0A24UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A42 *((volatile unsigned int*)(0x42CF0A28UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A43 *((volatile unsigned int*)(0x42CF0A2CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A44 *((volatile unsigned int*)(0x42CF0A30UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A45 *((volatile unsigned int*)(0x42CF0A34UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A46 *((volatile unsigned int*)(0x42CF0A38UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A47 *((volatile unsigned int*)(0x42CF0A3CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC0 *((volatile unsigned int*)(0x42CF0A60UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC1 *((volatile unsigned int*)(0x42CF0A64UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC2 *((volatile unsigned int*)(0x42CF0A68UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC3 *((volatile unsigned int*)(0x42CF0A6CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC4 *((volatile unsigned int*)(0x42CF0A70UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC5 *((volatile unsigned int*)(0x42CF0A74UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_SA *((volatile unsigned int*)(0x42CF0A78UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_AE *((volatile unsigned int*)(0x42CF0A7CUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A0 *((volatile unsigned int*)(0x42CF0A80UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A1 *((volatile unsigned int*)(0x42CF0A84UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A2 *((volatile unsigned int*)(0x42CF0A88UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A3 *((volatile unsigned int*)(0x42CF0A8CUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A4 *((volatile unsigned int*)(0x42CF0A90UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A5 *((volatile unsigned int*)(0x42CF0A94UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A6 *((volatile unsigned int*)(0x42CF0A98UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A7 *((volatile unsigned int*)(0x42CF0A9CUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A8 *((volatile unsigned int*)(0x42CF0AA0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A9 *((volatile unsigned int*)(0x42CF0AA4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A10 *((volatile unsigned int*)(0x42CF0AA8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A11 *((volatile unsigned int*)(0x42CF0AACUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A12 *((volatile unsigned int*)(0x42CF0AB0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A13 *((volatile unsigned int*)(0x42CF0AB4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A14 *((volatile unsigned int*)(0x42CF0AB8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A15 *((volatile unsigned int*)(0x42CF0ABCUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A16 *((volatile unsigned int*)(0x42CF0AC0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A17 *((volatile unsigned int*)(0x42CF0AC4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A18 *((volatile unsigned int*)(0x42CF0AC8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A19 *((volatile unsigned int*)(0x42CF0ACCUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A20 *((volatile unsigned int*)(0x42CF0AD0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A21 *((volatile unsigned int*)(0x42CF0AD4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A22 *((volatile unsigned int*)(0x42CF0AD8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A23 *((volatile unsigned int*)(0x42CF0ADCUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A24 *((volatile unsigned int*)(0x42CF0AE0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A25 *((volatile unsigned int*)(0x42CF0AE4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A26 *((volatile unsigned int*)(0x42CF0AE8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A27 *((volatile unsigned int*)(0x42CF0AECUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A28 *((volatile unsigned int*)(0x42CF0AF0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A29 *((volatile unsigned int*)(0x42CF0AF4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A30 *((volatile unsigned int*)(0x42CF0AF8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A31 *((volatile unsigned int*)(0x42CF0AFCUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A32 *((volatile unsigned int*)(0x42CF0B00UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A33 *((volatile unsigned int*)(0x42CF0B04UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A34 *((volatile unsigned int*)(0x42CF0B08UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A35 *((volatile unsigned int*)(0x42CF0B0CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A36 *((volatile unsigned int*)(0x42CF0B10UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A37 *((volatile unsigned int*)(0x42CF0B14UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A38 *((volatile unsigned int*)(0x42CF0B18UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A39 *((volatile unsigned int*)(0x42CF0B1CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A40 *((volatile unsigned int*)(0x42CF0B20UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A41 *((volatile unsigned int*)(0x42CF0B24UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A42 *((volatile unsigned int*)(0x42CF0B28UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A43 *((volatile unsigned int*)(0x42CF0B2CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A44 *((volatile unsigned int*)(0x42CF0B30UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A45 *((volatile unsigned int*)(0x42CF0B34UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A46 *((volatile unsigned int*)(0x42CF0B38UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A47 *((volatile unsigned int*)(0x42CF0B3CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC0 *((volatile unsigned int*)(0x42CF0B60UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC1 *((volatile unsigned int*)(0x42CF0B64UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC2 *((volatile unsigned int*)(0x42CF0B68UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC3 *((volatile unsigned int*)(0x42CF0B6CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC4 *((volatile unsigned int*)(0x42CF0B70UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC5 *((volatile unsigned int*)(0x42CF0B74UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_SA *((volatile unsigned int*)(0x42CF0B78UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_AE *((volatile unsigned int*)(0x42CF0B7CUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A0 *((volatile unsigned int*)(0x42CF0B80UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A1 *((volatile unsigned int*)(0x42CF0B84UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A2 *((volatile unsigned int*)(0x42CF0B88UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A3 *((volatile unsigned int*)(0x42CF0B8CUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A4 *((volatile unsigned int*)(0x42CF0B90UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A5 *((volatile unsigned int*)(0x42CF0B94UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A6 *((volatile unsigned int*)(0x42CF0B98UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A7 *((volatile unsigned int*)(0x42CF0B9CUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A8 *((volatile unsigned int*)(0x42CF0BA0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A9 *((volatile unsigned int*)(0x42CF0BA4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A10 *((volatile unsigned int*)(0x42CF0BA8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A11 *((volatile unsigned int*)(0x42CF0BACUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A12 *((volatile unsigned int*)(0x42CF0BB0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A13 *((volatile unsigned int*)(0x42CF0BB4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A14 *((volatile unsigned int*)(0x42CF0BB8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A15 *((volatile unsigned int*)(0x42CF0BBCUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A16 *((volatile unsigned int*)(0x42CF0BC0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A17 *((volatile unsigned int*)(0x42CF0BC4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A18 *((volatile unsigned int*)(0x42CF0BC8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A19 *((volatile unsigned int*)(0x42CF0BCCUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A20 *((volatile unsigned int*)(0x42CF0BD0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A21 *((volatile unsigned int*)(0x42CF0BD4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A22 *((volatile unsigned int*)(0x42CF0BD8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A23 *((volatile unsigned int*)(0x42CF0BDCUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A24 *((volatile unsigned int*)(0x42CF0BE0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A25 *((volatile unsigned int*)(0x42CF0BE4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A26 *((volatile unsigned int*)(0x42CF0BE8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A27 *((volatile unsigned int*)(0x42CF0BECUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A28 *((volatile unsigned int*)(0x42CF0BF0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A29 *((volatile unsigned int*)(0x42CF0BF4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A30 *((volatile unsigned int*)(0x42CF0BF8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A31 *((volatile unsigned int*)(0x42CF0BFCUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A32 *((volatile unsigned int*)(0x42CF0C00UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A33 *((volatile unsigned int*)(0x42CF0C04UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A34 *((volatile unsigned int*)(0x42CF0C08UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A35 *((volatile unsigned int*)(0x42CF0C0CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A36 *((volatile unsigned int*)(0x42CF0C10UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A37 *((volatile unsigned int*)(0x42CF0C14UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A38 *((volatile unsigned int*)(0x42CF0C18UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A39 *((volatile unsigned int*)(0x42CF0C1CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A40 *((volatile unsigned int*)(0x42CF0C20UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A41 *((volatile unsigned int*)(0x42CF0C24UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A42 *((volatile unsigned int*)(0x42CF0C28UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A43 *((volatile unsigned int*)(0x42CF0C2CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A44 *((volatile unsigned int*)(0x42CF0C30UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A45 *((volatile unsigned int*)(0x42CF0C34UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A46 *((volatile unsigned int*)(0x42CF0C38UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A47 *((volatile unsigned int*)(0x42CF0C3CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC0 *((volatile unsigned int*)(0x42CF0C60UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC1 *((volatile unsigned int*)(0x42CF0C64UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC2 *((volatile unsigned int*)(0x42CF0C68UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC3 *((volatile unsigned int*)(0x42CF0C6CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC4 *((volatile unsigned int*)(0x42CF0C70UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC5 *((volatile unsigned int*)(0x42CF0C74UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_SA *((volatile unsigned int*)(0x42CF0C78UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_AE *((volatile unsigned int*)(0x42CF0C7CUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A0 *((volatile unsigned int*)(0x42CF0C80UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A1 *((volatile unsigned int*)(0x42CF0C84UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A2 *((volatile unsigned int*)(0x42CF0C88UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A3 *((volatile unsigned int*)(0x42CF0C8CUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A4 *((volatile unsigned int*)(0x42CF0C90UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A5 *((volatile unsigned int*)(0x42CF0C94UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A6 *((volatile unsigned int*)(0x42CF0C98UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A7 *((volatile unsigned int*)(0x42CF0C9CUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A8 *((volatile unsigned int*)(0x42CF0CA0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A9 *((volatile unsigned int*)(0x42CF0CA4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A10 *((volatile unsigned int*)(0x42CF0CA8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A11 *((volatile unsigned int*)(0x42CF0CACUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A12 *((volatile unsigned int*)(0x42CF0CB0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A13 *((volatile unsigned int*)(0x42CF0CB4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A14 *((volatile unsigned int*)(0x42CF0CB8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A15 *((volatile unsigned int*)(0x42CF0CBCUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A16 *((volatile unsigned int*)(0x42CF0CC0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A17 *((volatile unsigned int*)(0x42CF0CC4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A18 *((volatile unsigned int*)(0x42CF0CC8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A19 *((volatile unsigned int*)(0x42CF0CCCUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A20 *((volatile unsigned int*)(0x42CF0CD0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A21 *((volatile unsigned int*)(0x42CF0CD4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A22 *((volatile unsigned int*)(0x42CF0CD8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A23 *((volatile unsigned int*)(0x42CF0CDCUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A24 *((volatile unsigned int*)(0x42CF0CE0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A25 *((volatile unsigned int*)(0x42CF0CE4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A26 *((volatile unsigned int*)(0x42CF0CE8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A27 *((volatile unsigned int*)(0x42CF0CECUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A28 *((volatile unsigned int*)(0x42CF0CF0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A29 *((volatile unsigned int*)(0x42CF0CF4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A30 *((volatile unsigned int*)(0x42CF0CF8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A31 *((volatile unsigned int*)(0x42CF0CFCUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A32 *((volatile unsigned int*)(0x42CF0D00UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A33 *((volatile unsigned int*)(0x42CF0D04UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A34 *((volatile unsigned int*)(0x42CF0D08UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A35 *((volatile unsigned int*)(0x42CF0D0CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A36 *((volatile unsigned int*)(0x42CF0D10UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A37 *((volatile unsigned int*)(0x42CF0D14UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A38 *((volatile unsigned int*)(0x42CF0D18UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A39 *((volatile unsigned int*)(0x42CF0D1CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A40 *((volatile unsigned int*)(0x42CF0D20UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A41 *((volatile unsigned int*)(0x42CF0D24UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A42 *((volatile unsigned int*)(0x42CF0D28UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A43 *((volatile unsigned int*)(0x42CF0D2CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A44 *((volatile unsigned int*)(0x42CF0D30UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A45 *((volatile unsigned int*)(0x42CF0D34UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A46 *((volatile unsigned int*)(0x42CF0D38UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A47 *((volatile unsigned int*)(0x42CF0D3CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC0 *((volatile unsigned int*)(0x42CF0D60UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC1 *((volatile unsigned int*)(0x42CF0D64UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC2 *((volatile unsigned int*)(0x42CF0D68UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC3 *((volatile unsigned int*)(0x42CF0D6CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC4 *((volatile unsigned int*)(0x42CF0D70UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC5 *((volatile unsigned int*)(0x42CF0D74UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_SA *((volatile unsigned int*)(0x42CF0D78UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_AE *((volatile unsigned int*)(0x42CF0D7CUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A0 *((volatile unsigned int*)(0x42CF0D80UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A1 *((volatile unsigned int*)(0x42CF0D84UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A2 *((volatile unsigned int*)(0x42CF0D88UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A3 *((volatile unsigned int*)(0x42CF0D8CUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A4 *((volatile unsigned int*)(0x42CF0D90UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A5 *((volatile unsigned int*)(0x42CF0D94UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A6 *((volatile unsigned int*)(0x42CF0D98UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A7 *((volatile unsigned int*)(0x42CF0D9CUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A8 *((volatile unsigned int*)(0x42CF0DA0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A9 *((volatile unsigned int*)(0x42CF0DA4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A10 *((volatile unsigned int*)(0x42CF0DA8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A11 *((volatile unsigned int*)(0x42CF0DACUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A12 *((volatile unsigned int*)(0x42CF0DB0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A13 *((volatile unsigned int*)(0x42CF0DB4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A14 *((volatile unsigned int*)(0x42CF0DB8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A15 *((volatile unsigned int*)(0x42CF0DBCUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A16 *((volatile unsigned int*)(0x42CF0DC0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A17 *((volatile unsigned int*)(0x42CF0DC4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A18 *((volatile unsigned int*)(0x42CF0DC8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A19 *((volatile unsigned int*)(0x42CF0DCCUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A20 *((volatile unsigned int*)(0x42CF0DD0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A21 *((volatile unsigned int*)(0x42CF0DD4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A22 *((volatile unsigned int*)(0x42CF0DD8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A23 *((volatile unsigned int*)(0x42CF0DDCUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A24 *((volatile unsigned int*)(0x42CF0DE0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A25 *((volatile unsigned int*)(0x42CF0DE4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A26 *((volatile unsigned int*)(0x42CF0DE8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A27 *((volatile unsigned int*)(0x42CF0DECUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A28 *((volatile unsigned int*)(0x42CF0DF0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A29 *((volatile unsigned int*)(0x42CF0DF4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A30 *((volatile unsigned int*)(0x42CF0DF8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A31 *((volatile unsigned int*)(0x42CF0DFCUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A32 *((volatile unsigned int*)(0x42CF0E00UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A33 *((volatile unsigned int*)(0x42CF0E04UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A34 *((volatile unsigned int*)(0x42CF0E08UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A35 *((volatile unsigned int*)(0x42CF0E0CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A36 *((volatile unsigned int*)(0x42CF0E10UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A37 *((volatile unsigned int*)(0x42CF0E14UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A38 *((volatile unsigned int*)(0x42CF0E18UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A39 *((volatile unsigned int*)(0x42CF0E1CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A40 *((volatile unsigned int*)(0x42CF0E20UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A41 *((volatile unsigned int*)(0x42CF0E24UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A42 *((volatile unsigned int*)(0x42CF0E28UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A43 *((volatile unsigned int*)(0x42CF0E2CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A44 *((volatile unsigned int*)(0x42CF0E30UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A45 *((volatile unsigned int*)(0x42CF0E34UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A46 *((volatile unsigned int*)(0x42CF0E38UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A47 *((volatile unsigned int*)(0x42CF0E3CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC0 *((volatile unsigned int*)(0x42CF0E60UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC1 *((volatile unsigned int*)(0x42CF0E64UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC2 *((volatile unsigned int*)(0x42CF0E68UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC3 *((volatile unsigned int*)(0x42CF0E6CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC4 *((volatile unsigned int*)(0x42CF0E70UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC5 *((volatile unsigned int*)(0x42CF0E74UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_SA *((volatile unsigned int*)(0x42CF0E78UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_AE *((volatile unsigned int*)(0x42CF0E7CUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A0 *((volatile unsigned int*)(0x42CF0E80UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A1 *((volatile unsigned int*)(0x42CF0E84UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A2 *((volatile unsigned int*)(0x42CF0E88UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A3 *((volatile unsigned int*)(0x42CF0E8CUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A4 *((volatile unsigned int*)(0x42CF0E90UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A5 *((volatile unsigned int*)(0x42CF0E94UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A6 *((volatile unsigned int*)(0x42CF0E98UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A7 *((volatile unsigned int*)(0x42CF0E9CUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A8 *((volatile unsigned int*)(0x42CF0EA0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A9 *((volatile unsigned int*)(0x42CF0EA4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A10 *((volatile unsigned int*)(0x42CF0EA8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A11 *((volatile unsigned int*)(0x42CF0EACUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A12 *((volatile unsigned int*)(0x42CF0EB0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A13 *((volatile unsigned int*)(0x42CF0EB4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A14 *((volatile unsigned int*)(0x42CF0EB8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A15 *((volatile unsigned int*)(0x42CF0EBCUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A16 *((volatile unsigned int*)(0x42CF0EC0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A17 *((volatile unsigned int*)(0x42CF0EC4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A18 *((volatile unsigned int*)(0x42CF0EC8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A19 *((volatile unsigned int*)(0x42CF0ECCUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A20 *((volatile unsigned int*)(0x42CF0ED0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A21 *((volatile unsigned int*)(0x42CF0ED4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A22 *((volatile unsigned int*)(0x42CF0ED8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A23 *((volatile unsigned int*)(0x42CF0EDCUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A24 *((volatile unsigned int*)(0x42CF0EE0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A25 *((volatile unsigned int*)(0x42CF0EE4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A26 *((volatile unsigned int*)(0x42CF0EE8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A27 *((volatile unsigned int*)(0x42CF0EECUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A28 *((volatile unsigned int*)(0x42CF0EF0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A29 *((volatile unsigned int*)(0x42CF0EF4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A30 *((volatile unsigned int*)(0x42CF0EF8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A31 *((volatile unsigned int*)(0x42CF0EFCUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A32 *((volatile unsigned int*)(0x42CF0F00UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A33 *((volatile unsigned int*)(0x42CF0F04UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A34 *((volatile unsigned int*)(0x42CF0F08UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A35 *((volatile unsigned int*)(0x42CF0F0CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A36 *((volatile unsigned int*)(0x42CF0F10UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A37 *((volatile unsigned int*)(0x42CF0F14UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A38 *((volatile unsigned int*)(0x42CF0F18UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A39 *((volatile unsigned int*)(0x42CF0F1CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A40 *((volatile unsigned int*)(0x42CF0F20UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A41 *((volatile unsigned int*)(0x42CF0F24UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A42 *((volatile unsigned int*)(0x42CF0F28UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A43 *((volatile unsigned int*)(0x42CF0F2CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A44 *((volatile unsigned int*)(0x42CF0F30UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A45 *((volatile unsigned int*)(0x42CF0F34UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A46 *((volatile unsigned int*)(0x42CF0F38UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A47 *((volatile unsigned int*)(0x42CF0F3CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC0 *((volatile unsigned int*)(0x42CF0F60UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC1 *((volatile unsigned int*)(0x42CF0F64UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC2 *((volatile unsigned int*)(0x42CF0F68UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC3 *((volatile unsigned int*)(0x42CF0F6CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC4 *((volatile unsigned int*)(0x42CF0F70UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC5 *((volatile unsigned int*)(0x42CF0F74UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_SA *((volatile unsigned int*)(0x42CF0F78UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_AE *((volatile unsigned int*)(0x42CF0F7CUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A0 *((volatile unsigned int*)(0x42CF0F80UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A1 *((volatile unsigned int*)(0x42CF0F84UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A2 *((volatile unsigned int*)(0x42CF0F88UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A3 *((volatile unsigned int*)(0x42CF0F8CUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A4 *((volatile unsigned int*)(0x42CF0F90UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A5 *((volatile unsigned int*)(0x42CF0F94UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A6 *((volatile unsigned int*)(0x42CF0F98UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A7 *((volatile unsigned int*)(0x42CF0F9CUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A8 *((volatile unsigned int*)(0x42CF0FA0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A9 *((volatile unsigned int*)(0x42CF0FA4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A10 *((volatile unsigned int*)(0x42CF0FA8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A11 *((volatile unsigned int*)(0x42CF0FACUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A12 *((volatile unsigned int*)(0x42CF0FB0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A13 *((volatile unsigned int*)(0x42CF0FB4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A14 *((volatile unsigned int*)(0x42CF0FB8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A15 *((volatile unsigned int*)(0x42CF0FBCUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A16 *((volatile unsigned int*)(0x42CF0FC0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A17 *((volatile unsigned int*)(0x42CF0FC4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A18 *((volatile unsigned int*)(0x42CF0FC8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A19 *((volatile unsigned int*)(0x42CF0FCCUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A20 *((volatile unsigned int*)(0x42CF0FD0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A21 *((volatile unsigned int*)(0x42CF0FD4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A22 *((volatile unsigned int*)(0x42CF0FD8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A23 *((volatile unsigned int*)(0x42CF0FDCUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A24 *((volatile unsigned int*)(0x42CF0FE0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A25 *((volatile unsigned int*)(0x42CF0FE4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A26 *((volatile unsigned int*)(0x42CF0FE8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A27 *((volatile unsigned int*)(0x42CF0FECUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A28 *((volatile unsigned int*)(0x42CF0FF0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A29 *((volatile unsigned int*)(0x42CF0FF4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A30 *((volatile unsigned int*)(0x42CF0FF8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A31 *((volatile unsigned int*)(0x42CF0FFCUL)) -#define bFM3_ETHERNET_MAC1_BMR_SWR *((volatile unsigned int*)(0x42D00000UL)) -#define bFM3_ETHERNET_MAC1_BMR_DA *((volatile unsigned int*)(0x42D00004UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL0 *((volatile unsigned int*)(0x42D00008UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL1 *((volatile unsigned int*)(0x42D0000CUL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL2 *((volatile unsigned int*)(0x42D00010UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL3 *((volatile unsigned int*)(0x42D00014UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL4 *((volatile unsigned int*)(0x42D00018UL)) -#define bFM3_ETHERNET_MAC1_BMR_ATDS *((volatile unsigned int*)(0x42D0001CUL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL0 *((volatile unsigned int*)(0x42D00020UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL1 *((volatile unsigned int*)(0x42D00024UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL2 *((volatile unsigned int*)(0x42D00028UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL3 *((volatile unsigned int*)(0x42D0002CUL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL4 *((volatile unsigned int*)(0x42D00030UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL5 *((volatile unsigned int*)(0x42D00034UL)) -#define bFM3_ETHERNET_MAC1_BMR_PR0 *((volatile unsigned int*)(0x42D00038UL)) -#define bFM3_ETHERNET_MAC1_BMR_PR1 *((volatile unsigned int*)(0x42D0003CUL)) -#define bFM3_ETHERNET_MAC1_BMR_FB *((volatile unsigned int*)(0x42D00040UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL0 *((volatile unsigned int*)(0x42D00044UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL1 *((volatile unsigned int*)(0x42D00048UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL2 *((volatile unsigned int*)(0x42D0004CUL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL3 *((volatile unsigned int*)(0x42D00050UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL4 *((volatile unsigned int*)(0x42D00054UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL5 *((volatile unsigned int*)(0x42D00058UL)) -#define bFM3_ETHERNET_MAC1_BMR_USP *((volatile unsigned int*)(0x42D0005CUL)) -#define bFM3_ETHERNET_MAC1_BMR_8XPBL *((volatile unsigned int*)(0x42D00060UL)) -#define bFM3_ETHERNET_MAC1_BMR_AAL *((volatile unsigned int*)(0x42D00064UL)) -#define bFM3_ETHERNET_MAC1_BMR_MB *((volatile unsigned int*)(0x42D00068UL)) -#define bFM3_ETHERNET_MAC1_BMR_TXPR *((volatile unsigned int*)(0x42D0006CUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD0 *((volatile unsigned int*)(0x42D00080UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD1 *((volatile unsigned int*)(0x42D00084UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD2 *((volatile unsigned int*)(0x42D00088UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD3 *((volatile unsigned int*)(0x42D0008CUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD4 *((volatile unsigned int*)(0x42D00090UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD5 *((volatile unsigned int*)(0x42D00094UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD6 *((volatile unsigned int*)(0x42D00098UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD7 *((volatile unsigned int*)(0x42D0009CUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD8 *((volatile unsigned int*)(0x42D000A0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD9 *((volatile unsigned int*)(0x42D000A4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD10 *((volatile unsigned int*)(0x42D000A8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD11 *((volatile unsigned int*)(0x42D000ACUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD12 *((volatile unsigned int*)(0x42D000B0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD13 *((volatile unsigned int*)(0x42D000B4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD14 *((volatile unsigned int*)(0x42D000B8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD15 *((volatile unsigned int*)(0x42D000BCUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD16 *((volatile unsigned int*)(0x42D000C0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD17 *((volatile unsigned int*)(0x42D000C4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD18 *((volatile unsigned int*)(0x42D000C8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD19 *((volatile unsigned int*)(0x42D000CCUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD20 *((volatile unsigned int*)(0x42D000D0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD21 *((volatile unsigned int*)(0x42D000D4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD22 *((volatile unsigned int*)(0x42D000D8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD23 *((volatile unsigned int*)(0x42D000DCUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD24 *((volatile unsigned int*)(0x42D000E0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD25 *((volatile unsigned int*)(0x42D000E4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD26 *((volatile unsigned int*)(0x42D000E8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD27 *((volatile unsigned int*)(0x42D000ECUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD28 *((volatile unsigned int*)(0x42D000F0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD29 *((volatile unsigned int*)(0x42D000F4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD30 *((volatile unsigned int*)(0x42D000F8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD31 *((volatile unsigned int*)(0x42D000FCUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD0 *((volatile unsigned int*)(0x42D00100UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD1 *((volatile unsigned int*)(0x42D00104UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD2 *((volatile unsigned int*)(0x42D00108UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD3 *((volatile unsigned int*)(0x42D0010CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD4 *((volatile unsigned int*)(0x42D00110UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD5 *((volatile unsigned int*)(0x42D00114UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD6 *((volatile unsigned int*)(0x42D00118UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD7 *((volatile unsigned int*)(0x42D0011CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD8 *((volatile unsigned int*)(0x42D00120UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD9 *((volatile unsigned int*)(0x42D00124UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD10 *((volatile unsigned int*)(0x42D00128UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD11 *((volatile unsigned int*)(0x42D0012CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD12 *((volatile unsigned int*)(0x42D00130UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD13 *((volatile unsigned int*)(0x42D00134UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD14 *((volatile unsigned int*)(0x42D00138UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD15 *((volatile unsigned int*)(0x42D0013CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD16 *((volatile unsigned int*)(0x42D00140UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD17 *((volatile unsigned int*)(0x42D00144UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD18 *((volatile unsigned int*)(0x42D00148UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD19 *((volatile unsigned int*)(0x42D0014CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD20 *((volatile unsigned int*)(0x42D00150UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD21 *((volatile unsigned int*)(0x42D00154UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD22 *((volatile unsigned int*)(0x42D00158UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD23 *((volatile unsigned int*)(0x42D0015CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD24 *((volatile unsigned int*)(0x42D00160UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD25 *((volatile unsigned int*)(0x42D00164UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD26 *((volatile unsigned int*)(0x42D00168UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD27 *((volatile unsigned int*)(0x42D0016CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD28 *((volatile unsigned int*)(0x42D00170UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD29 *((volatile unsigned int*)(0x42D00174UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD30 *((volatile unsigned int*)(0x42D00178UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD31 *((volatile unsigned int*)(0x42D0017CUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL2 *((volatile unsigned int*)(0x42D00188UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL3 *((volatile unsigned int*)(0x42D0018CUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL4 *((volatile unsigned int*)(0x42D00190UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL5 *((volatile unsigned int*)(0x42D00194UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL6 *((volatile unsigned int*)(0x42D00198UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL7 *((volatile unsigned int*)(0x42D0019CUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL8 *((volatile unsigned int*)(0x42D001A0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL9 *((volatile unsigned int*)(0x42D001A4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL10 *((volatile unsigned int*)(0x42D001A8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL11 *((volatile unsigned int*)(0x42D001ACUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL12 *((volatile unsigned int*)(0x42D001B0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL13 *((volatile unsigned int*)(0x42D001B4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL14 *((volatile unsigned int*)(0x42D001B8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL15 *((volatile unsigned int*)(0x42D001BCUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL16 *((volatile unsigned int*)(0x42D001C0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL17 *((volatile unsigned int*)(0x42D001C4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL18 *((volatile unsigned int*)(0x42D001C8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL19 *((volatile unsigned int*)(0x42D001CCUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL20 *((volatile unsigned int*)(0x42D001D0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL21 *((volatile unsigned int*)(0x42D001D4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL22 *((volatile unsigned int*)(0x42D001D8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL23 *((volatile unsigned int*)(0x42D001DCUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL24 *((volatile unsigned int*)(0x42D001E0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL25 *((volatile unsigned int*)(0x42D001E4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL26 *((volatile unsigned int*)(0x42D001E8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL27 *((volatile unsigned int*)(0x42D001ECUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL28 *((volatile unsigned int*)(0x42D001F0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL29 *((volatile unsigned int*)(0x42D001F4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL30 *((volatile unsigned int*)(0x42D001F8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL31 *((volatile unsigned int*)(0x42D001FCUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL2 *((volatile unsigned int*)(0x42D00208UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL3 *((volatile unsigned int*)(0x42D0020CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL4 *((volatile unsigned int*)(0x42D00210UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL5 *((volatile unsigned int*)(0x42D00214UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL6 *((volatile unsigned int*)(0x42D00218UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL7 *((volatile unsigned int*)(0x42D0021CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL8 *((volatile unsigned int*)(0x42D00220UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL9 *((volatile unsigned int*)(0x42D00224UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL10 *((volatile unsigned int*)(0x42D00228UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL11 *((volatile unsigned int*)(0x42D0022CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL12 *((volatile unsigned int*)(0x42D00230UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL13 *((volatile unsigned int*)(0x42D00234UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL14 *((volatile unsigned int*)(0x42D00238UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL15 *((volatile unsigned int*)(0x42D0023CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL16 *((volatile unsigned int*)(0x42D00240UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL17 *((volatile unsigned int*)(0x42D00244UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL18 *((volatile unsigned int*)(0x42D00248UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL19 *((volatile unsigned int*)(0x42D0024CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL20 *((volatile unsigned int*)(0x42D00250UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL21 *((volatile unsigned int*)(0x42D00254UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL22 *((volatile unsigned int*)(0x42D00258UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL23 *((volatile unsigned int*)(0x42D0025CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL24 *((volatile unsigned int*)(0x42D00260UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL25 *((volatile unsigned int*)(0x42D00264UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL26 *((volatile unsigned int*)(0x42D00268UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL27 *((volatile unsigned int*)(0x42D0026CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL28 *((volatile unsigned int*)(0x42D00270UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL29 *((volatile unsigned int*)(0x42D00274UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL30 *((volatile unsigned int*)(0x42D00278UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL31 *((volatile unsigned int*)(0x42D0027CUL)) -#define bFM3_ETHERNET_MAC1_SR_TI *((volatile unsigned int*)(0x42D00280UL)) -#define bFM3_ETHERNET_MAC1_SR_TPS *((volatile unsigned int*)(0x42D00284UL)) -#define bFM3_ETHERNET_MAC1_SR_TU *((volatile unsigned int*)(0x42D00288UL)) -#define bFM3_ETHERNET_MAC1_SR_TJT *((volatile unsigned int*)(0x42D0028CUL)) -#define bFM3_ETHERNET_MAC1_SR_OVF *((volatile unsigned int*)(0x42D00290UL)) -#define bFM3_ETHERNET_MAC1_SR_UNF *((volatile unsigned int*)(0x42D00294UL)) -#define bFM3_ETHERNET_MAC1_SR_RI *((volatile unsigned int*)(0x42D00298UL)) -#define bFM3_ETHERNET_MAC1_SR_RU *((volatile unsigned int*)(0x42D0029CUL)) -#define bFM3_ETHERNET_MAC1_SR_RPS *((volatile unsigned int*)(0x42D002A0UL)) -#define bFM3_ETHERNET_MAC1_SR_RWT *((volatile unsigned int*)(0x42D002A4UL)) -#define bFM3_ETHERNET_MAC1_SR_ETI *((volatile unsigned int*)(0x42D002A8UL)) -#define bFM3_ETHERNET_MAC1_SR_FBI *((volatile unsigned int*)(0x42D002B4UL)) -#define bFM3_ETHERNET_MAC1_SR_ERI *((volatile unsigned int*)(0x42D002B8UL)) -#define bFM3_ETHERNET_MAC1_SR_AIS *((volatile unsigned int*)(0x42D002BCUL)) -#define bFM3_ETHERNET_MAC1_SR_NIS *((volatile unsigned int*)(0x42D002C0UL)) -#define bFM3_ETHERNET_MAC1_SR_RS0 *((volatile unsigned int*)(0x42D002C4UL)) -#define bFM3_ETHERNET_MAC1_SR_RS1 *((volatile unsigned int*)(0x42D002C8UL)) -#define bFM3_ETHERNET_MAC1_SR_RS2 *((volatile unsigned int*)(0x42D002CCUL)) -#define bFM3_ETHERNET_MAC1_SR_TS0 *((volatile unsigned int*)(0x42D002D0UL)) -#define bFM3_ETHERNET_MAC1_SR_TS1 *((volatile unsigned int*)(0x42D002D4UL)) -#define bFM3_ETHERNET_MAC1_SR_TS2 *((volatile unsigned int*)(0x42D002D8UL)) -#define bFM3_ETHERNET_MAC1_SR_EB0 *((volatile unsigned int*)(0x42D002DCUL)) -#define bFM3_ETHERNET_MAC1_SR_EB1 *((volatile unsigned int*)(0x42D002E0UL)) -#define bFM3_ETHERNET_MAC1_SR_EB2 *((volatile unsigned int*)(0x42D002E4UL)) -#define bFM3_ETHERNET_MAC1_SR_GLI *((volatile unsigned int*)(0x42D002E8UL)) -#define bFM3_ETHERNET_MAC1_SR_GMI *((volatile unsigned int*)(0x42D002ECUL)) -#define bFM3_ETHERNET_MAC1_SR_GPI *((volatile unsigned int*)(0x42D002F0UL)) -#define bFM3_ETHERNET_MAC1_SR_TTI *((volatile unsigned int*)(0x42D002F4UL)) -#define bFM3_ETHERNET_MAC1_SR_GLPII *((volatile unsigned int*)(0x42D002F8UL)) -#define bFM3_ETHERNET_MAC1_OMR_SR *((volatile unsigned int*)(0x42D00304UL)) -#define bFM3_ETHERNET_MAC1_OMR_OSF *((volatile unsigned int*)(0x42D00308UL)) -#define bFM3_ETHERNET_MAC1_OMR_RTC0 *((volatile unsigned int*)(0x42D0030CUL)) -#define bFM3_ETHERNET_MAC1_OMR_RTC1 *((volatile unsigned int*)(0x42D00310UL)) -#define bFM3_ETHERNET_MAC1_OMR_FUF *((volatile unsigned int*)(0x42D00318UL)) -#define bFM3_ETHERNET_MAC1_OMR_FEF *((volatile unsigned int*)(0x42D0031CUL)) -#define bFM3_ETHERNET_MAC1_OMR_ST *((volatile unsigned int*)(0x42D00334UL)) -#define bFM3_ETHERNET_MAC1_OMR_TTC0 *((volatile unsigned int*)(0x42D00338UL)) -#define bFM3_ETHERNET_MAC1_OMR_TTC1 *((volatile unsigned int*)(0x42D0033CUL)) -#define bFM3_ETHERNET_MAC1_OMR_TTC2 *((volatile unsigned int*)(0x42D00340UL)) -#define bFM3_ETHERNET_MAC1_OMR_FTF *((volatile unsigned int*)(0x42D00350UL)) -#define bFM3_ETHERNET_MAC1_OMR_TSF *((volatile unsigned int*)(0x42D00354UL)) -#define bFM3_ETHERNET_MAC1_OMR_DFF *((volatile unsigned int*)(0x42D00360UL)) -#define bFM3_ETHERNET_MAC1_OMR_RSF *((volatile unsigned int*)(0x42D00364UL)) -#define bFM3_ETHERNET_MAC1_OMR_DT *((volatile unsigned int*)(0x42D00368UL)) -#define bFM3_ETHERNET_MAC1_IER_TIE *((volatile unsigned int*)(0x42D00380UL)) -#define bFM3_ETHERNET_MAC1_IER_TSE *((volatile unsigned int*)(0x42D00384UL)) -#define bFM3_ETHERNET_MAC1_IER_TUE *((volatile unsigned int*)(0x42D00388UL)) -#define bFM3_ETHERNET_MAC1_IER_TJE *((volatile unsigned int*)(0x42D0038CUL)) -#define bFM3_ETHERNET_MAC1_IER_OVE *((volatile unsigned int*)(0x42D00390UL)) -#define bFM3_ETHERNET_MAC1_IER_UNE *((volatile unsigned int*)(0x42D00394UL)) -#define bFM3_ETHERNET_MAC1_IER_RIE *((volatile unsigned int*)(0x42D00398UL)) -#define bFM3_ETHERNET_MAC1_IER_RUE *((volatile unsigned int*)(0x42D0039CUL)) -#define bFM3_ETHERNET_MAC1_IER_RSE *((volatile unsigned int*)(0x42D003A0UL)) -#define bFM3_ETHERNET_MAC1_IER_RWE *((volatile unsigned int*)(0x42D003A4UL)) -#define bFM3_ETHERNET_MAC1_IER_ETE *((volatile unsigned int*)(0x42D003A8UL)) -#define bFM3_ETHERNET_MAC1_IER_FBE *((volatile unsigned int*)(0x42D003B4UL)) -#define bFM3_ETHERNET_MAC1_IER_ERE *((volatile unsigned int*)(0x42D003B8UL)) -#define bFM3_ETHERNET_MAC1_IER_AIE *((volatile unsigned int*)(0x42D003BCUL)) -#define bFM3_ETHERNET_MAC1_IER_NIE *((volatile unsigned int*)(0x42D003C0UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42D00400UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42D00404UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42D00408UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42D0040CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42D00410UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42D00414UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42D00418UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42D0041CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42D00420UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42D00424UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42D00428UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42D0042CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42D00430UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42D00434UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42D00438UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42D0043CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFH *((volatile unsigned int*)(0x42D00440UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42D00444UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42D00448UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42D0044CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42D00450UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42D00454UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42D00458UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42D0045CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42D00460UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42D00464UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42D00468UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42D0046CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFF *((volatile unsigned int*)(0x42D00470UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT0 *((volatile unsigned int*)(0x42D00480UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT1 *((volatile unsigned int*)(0x42D00484UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT2 *((volatile unsigned int*)(0x42D00488UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT3 *((volatile unsigned int*)(0x42D0048CUL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT4 *((volatile unsigned int*)(0x42D00490UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT5 *((volatile unsigned int*)(0x42D00494UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT6 *((volatile unsigned int*)(0x42D00498UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT7 *((volatile unsigned int*)(0x42D0049CUL)) -#define bFM3_ETHERNET_MAC1_AHBSR_AHBS *((volatile unsigned int*)(0x42D00580UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42D00900UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42D00904UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42D00908UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42D0090CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42D00910UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42D00914UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42D00918UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42D0091CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42D00920UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42D00924UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42D00928UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42D0092CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42D00930UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42D00934UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42D00938UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42D0093CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42D00940UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42D00944UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42D00948UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42D0094CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42D00950UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42D00954UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42D00958UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42D0095CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42D00960UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42D00964UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42D00968UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42D0096CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42D00970UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42D00974UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42D00978UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42D0097CUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42D00980UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42D00984UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42D00988UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42D0098CUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42D00990UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42D00994UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42D00998UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42D0099CUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42D009A0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42D009A4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42D009A8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42D009ACUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42D009B0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42D009B4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42D009B8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42D009BCUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42D009C0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42D009C4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42D009C8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42D009CCUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42D009D0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42D009D4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42D009D8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42D009DCUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42D009E0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42D009E4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42D009E8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42D009ECUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42D009F0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42D009F4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42D009F8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42D009FCUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42D00A00UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42D00A04UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42D00A08UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42D00A0CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42D00A10UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42D00A14UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42D00A18UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42D00A1CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42D00A20UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42D00A24UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42D00A28UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42D00A2CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42D00A30UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42D00A34UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42D00A38UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42D00A3CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42D00A40UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42D00A44UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42D00A48UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42D00A4CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42D00A50UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42D00A54UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42D00A58UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42D00A5CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42D00A60UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42D00A64UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42D00A68UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42D00A6CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42D00A70UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42D00A74UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42D00A78UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42D00A7CUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42D00A80UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42D00A84UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42D00A88UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42D00A8CUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42D00A90UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42D00A94UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42D00A98UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42D00A9CUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42D00AA0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42D00AA4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42D00AA8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42D00AACUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42D00AB0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42D00AB4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42D00AB8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42D00ABCUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42D00AC0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42D00AC4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42D00AC8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42D00ACCUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42D00AD0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42D00AD4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42D00AD8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42D00ADCUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42D00AE0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42D00AE4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42D00AE8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42D00AECUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42D00AF0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42D00AF4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42D00AF8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42D00AFCUL)) - -#ifdef __cplusplus -} -#endif - -#endif /* _MB9BF618S_H_ */ - diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h deleted file mode 100644 index b75c77ba6b..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/mb9b610t.h +++ /dev/null @@ -1,29338 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/* */ -/* Header File for Device MB9B610T */ -/* Version V1.2 */ -/* Date 2012-02-23 */ -/* */ -/************************************************************************/ - -/****************************************************************************** - * History - * Date Ver Description - * 2011-08-04 1.0 Initial - * 2011-10-04 1.1 Added FBFCR register - * Removed the following bits from the bit fields - * - TMD bits of WFSAxx register in MFT - * - MD bits of PPGCx register in PPG - * - FMD bits of TMCR register in BT - * - MD bits of SMR register in MFS - * 2012-02-23 1.2 Added the following bits to the bit fields - * - TMD bits of WFSAxx register in MFT - * - MD bits of PPGCx register in PPG - * - FMD bits of TMCR register in BT - * - MD bits of SMR register in MFS - * - ******************************************************************************/ - -#ifndef _MB9B610T_H_ -#define _MB9B610T_H_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/****************************************************************************** - * Configuration of the Cortex-M3 Processor and Core Peripherals - ******************************************************************************/ -#define __MPU_PRESENT 1 /* FM3 provide an MPU */ -#define __NVIC_PRIO_BITS 4 /* FM3 uses 4 Bits for the Priority Levels */ -#define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ - - -/****************************************************************************** - * Interrupt Number Definition - ******************************************************************************/ -typedef enum IRQn -{ - NMI_IRQn = -14, /* 2 Non Maskable */ - HardFault_IRQn = -13, /* 3 Hard Fault */ - MemManage_IRQn = -12, /* 4 Memory Management */ - BusFault_IRQn = -11, /* 5 Bus Fault */ - UsageFault_IRQn = -10, /* 6 Usage Fault */ - SVC_IRQn = -5, /* 11 SV Call */ - DebugMonitor_IRQn = -4, /* 12 Debug Monitor */ - PendSV_IRQn = -2, /* 14 Pend SV */ - SysTick_IRQn = -1, /* 15 System Tick */ - - CSV_IRQn = 0, /* Clock Super Visor */ - SWDT_IRQn = 1, /* Software Watchdog Timer */ - LVD_IRQn = 2, /* Low Voltage Detector */ - WFG_IRQn = 3, /* Wave Form Generator */ - EXINT0_7_IRQn = 4, /* External Interrupt Request ch.0 to ch.7 */ - EXINT8_31_IRQn = 5, /* External Interrupt Request ch.8 to ch.31 */ - DTIM_QDU_IRQn = 6, /* Dual Timer / Quad Decoder */ - MFS0RX_IRQn = 7, /* MultiFunction Serial Reception ch.0 */ - MFS0TX_IRQn = 8, /* MultiFunction Serial Transmission ch.0 */ - MFS1RX_IRQn = 9, /* MultiFunction Serial Reception ch.1 */ - MFS1TX_IRQn = 10, /* MultiFunction Serial Transmission ch.1 */ - MFS2RX_IRQn = 11, /* MultiFunction Serial Reception ch.2 */ - MFS2TX_IRQn = 12, /* MultiFunction Serial Transmission ch.2 */ - MFS3RX_IRQn = 13, /* MultiFunction Serial Reception ch.3 */ - MFS3TX_IRQn = 14, /* MultiFunction Serial Transmission ch.3 */ - MFS4RX_IRQn = 15, /* MultiFunction Serial Reception ch.4 */ - MFS4TX_IRQn = 16, /* MultiFunction Serial Transmission ch.4 */ - MFS5RX_IRQn = 17, /* MultiFunction Serial Reception ch.5 */ - MFS5TX_IRQn = 18, /* MultiFunction Serial Transmission ch.5 */ - MFS6RX_IRQn = 19, /* MultiFunction Serial Reception ch.6 */ - MFS6TX_IRQn = 20, /* MultiFunction Serial Transmission ch.6 */ - MFS7RX_IRQn = 21, /* MultiFunction Serial Reception ch.7 */ - MFS7TX_IRQn = 22, /* MultiFunction Serial Transmission ch.7 */ - PPG_IRQn = 23, /* PPG */ - OSC_PLL_WC_IRQn = 24, /* OSC / PLL / Watch Counter */ - ADC0_IRQn = 25, /* ADC0 */ - ADC1_IRQn = 26, /* ADC1 */ - ADC2_IRQn = 27, /* ADC2 */ - FRTIM_IRQn = 28, /* Free-run Timer */ - INCAP_IRQn = 29, /* Input Capture */ - OUTCOMP_IRQn = 30, /* Output Compare */ - BTIM0_7_IRQn = 31, /* Base Timer ch.0 to ch.7 */ - ETHER_MAC0_IRQn = 32, /* Ethernet MAC ch.0 */ - ETHER_MAC1_IRQn = 33, /* Ethernet MAC ch.1 */ - USB0F_IRQn = 34, /* USB Function ch.0 */ - USB0F_USB0H_IRQn = 35, /* USB Function ch.0 / USB Host ch.0 */ - USB1F_IRQn = 36, /* USB Function ch.1 */ - USB1F_USB1H_IRQn = 37, /* USB Function ch.1 / USB Host ch.1 */ - DMAC0_IRQn = 38, /* DMAC ch.0 */ - DMAC1_IRQn = 39, /* DMAC ch.1 */ - DMAC2_IRQn = 40, /* DMAC ch.2 */ - DMAC3_IRQn = 41, /* DMAC ch.3 */ - DMAC4_IRQn = 42, /* DMAC ch.4 */ - DMAC5_IRQn = 43, /* DMAC ch.5 */ - DMAC6_IRQn = 44, /* DMAC ch.6 */ - DMAC7_IRQn = 45, /* DMAC ch.7 */ - BTIM8_15_IRQn = 46 /* Base Timer ch.8 to ch.15 */ - /* Reserved = 47 */ -} IRQn_Type; - - -#include -#include "system_mb9bf61x.h" -#include - -#define SUCCESS 0 -#define ERROR -1 - -#ifndef NULL -#define NULL 0 -#endif - - -/******************************************************************************/ -/* Device Specific Peripheral Registers structures */ -/******************************************************************************/ - -#if defined ( __CC_ARM ) -#pragma anon_unions -#endif - -/****************************************************************************** - * Peripheral register bit fields - ******************************************************************************/ - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash_IF_MODULE register bit fields */ -typedef struct stc_flash_if_faszr_field -{ - __IO uint32_t ASZ0 : 1; - __IO uint32_t ASZ1 : 1; -} stc_flash_if_faszr_field_t; - -typedef struct stc_flash_if_frwtr_field -{ - __IO uint32_t RWT0 : 1; - __IO uint32_t RWT1 : 1; -} stc_flash_if_frwtr_field_t; - -typedef struct stc_flash_if_fstr_field -{ - __IO uint32_t RDY : 1; - __IO uint32_t HNG : 1; - __IO uint32_t EER : 1; -} stc_flash_if_fstr_field_t; - -typedef struct stc_flash_if_fsyndn_field -{ - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; -} stc_flash_if_fsyndn_field_t; - -typedef struct stc_flash_if_fbfcr_field -{ - __IO uint32_t BE : 1; - __IO uint32_t BS : 1; -} stc_flash_if_fbfcr_field_t; - -typedef struct stc_flash_if_crtrmm_field -{ - __IO uint32_t TRMM0 : 1; - __IO uint32_t TRMM1 : 1; - __IO uint32_t TRMM2 : 1; - __IO uint32_t TRMM3 : 1; - __IO uint32_t TRMM4 : 1; - __IO uint32_t TRMM5 : 1; - __IO uint32_t TRMM6 : 1; - __IO uint32_t TRMM7 : 1; - __IO uint32_t TRMM8 : 1; - __IO uint32_t TRMM9 : 1; -} stc_flash_if_crtrmm_field_t; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock_Reset_MODULE register bit fields */ -typedef struct stc_crg_scm_ctl_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MOSCE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SOSCE : 1; - __IO uint8_t PLLE : 1; - __IO uint8_t RCS0 : 1; - __IO uint8_t RCS1 : 1; - __IO uint8_t RCS2 : 1; -} stc_crg_scm_ctl_field_t; - -typedef struct stc_crg_scm_str_field -{ - uint8_t RESERVED1 : 1; - __IO uint8_t MORDY : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t SORDY : 1; - __IO uint8_t PLRDY : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t RCM2 : 1; -} stc_crg_scm_str_field_t; - -typedef struct stc_crg_rst_str_field -{ - __IO uint16_t PONR : 1; - __IO uint16_t INITX : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SWDT : 1; - __IO uint16_t HWDT : 1; - __IO uint16_t CSVR : 1; - __IO uint16_t FCSR : 1; - __IO uint16_t SRST : 1; -} stc_crg_rst_str_field_t; - -typedef struct stc_crg_bsc_psr_field -{ - __IO uint8_t BSR0 : 1; - __IO uint8_t BSR1 : 1; - __IO uint8_t BSR2 : 1; -} stc_crg_bsc_psr_field_t; - -typedef struct stc_crg_apbc0_psr_field -{ - __IO uint8_t APBC00 : 1; - __IO uint8_t APBC01 : 1; -} stc_crg_apbc0_psr_field_t; - -typedef struct stc_crg_apbc1_psr_field -{ - __IO uint8_t APBC10 : 1; - __IO uint8_t APBC11 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC1RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC1EN : 1; -} stc_crg_apbc1_psr_field_t; - -typedef struct stc_crg_apbc2_psr_field -{ - __IO uint8_t APBC20 : 1; - __IO uint8_t APBC21 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t APBC2RST : 1; - uint8_t RESERVED2 : 2; - __IO uint8_t APBC2EN : 1; -} stc_crg_apbc2_psr_field_t; - -typedef struct stc_crg_swc_psr_field -{ - __IO uint8_t SWDS0 : 1; - __IO uint8_t SWDS1 : 1; - uint8_t RESERVED1 : 5; - __IO uint8_t TESTB : 1; -} stc_crg_swc_psr_field_t; - -typedef struct stc_crg_ttc_psr_field -{ - __IO uint8_t TTC0 : 1; - __IO uint8_t TTC1 : 1; -} stc_crg_ttc_psr_field_t; - -typedef struct stc_crg_csw_tmr_field -{ - __IO uint8_t MOWT0 : 1; - __IO uint8_t MOWT1 : 1; - __IO uint8_t MOWT2 : 1; - __IO uint8_t MOWT3 : 1; - __IO uint8_t SOWT0 : 1; - __IO uint8_t SOWT1 : 1; - __IO uint8_t SOWT2 : 1; -} stc_crg_csw_tmr_field_t; - -typedef struct stc_crg_psw_tmr_field -{ - __IO uint8_t POWT0 : 1; - __IO uint8_t POWT1 : 1; - __IO uint8_t POWT2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t PINC : 1; -} stc_crg_psw_tmr_field_t; - -typedef struct stc_crg_pll_ctl1_field -{ - __IO uint8_t PLLM0 : 1; - __IO uint8_t PLLM1 : 1; - __IO uint8_t PLLM2 : 1; - __IO uint8_t PLLM3 : 1; - __IO uint8_t PLLK0 : 1; - __IO uint8_t PLLK1 : 1; - __IO uint8_t PLLK2 : 1; - __IO uint8_t PLLK3 : 1; -} stc_crg_pll_ctl1_field_t; - -typedef struct stc_crg_pll_ctl2_field -{ - __IO uint8_t PLLN0 : 1; - __IO uint8_t PLLN1 : 1; - __IO uint8_t PLLN2 : 1; - __IO uint8_t PLLN3 : 1; - __IO uint8_t PLLN4 : 1; - __IO uint8_t PLLN5 : 1; -} stc_crg_pll_ctl2_field_t; - -typedef struct stc_crg_csv_ctl_field -{ - __IO uint16_t MCSVE : 1; - __IO uint16_t SCSVE : 1; - uint16_t RESERVED1 : 6; - __IO uint16_t FCSDE : 1; - __IO uint16_t FCSRE : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t FCD0 : 1; - __IO uint16_t FCD1 : 1; - __IO uint16_t FCD2 : 1; -} stc_crg_csv_ctl_field_t; - -typedef struct stc_crg_csv_str_field -{ - __IO uint8_t MCMF : 1; - __IO uint8_t SCMF : 1; -} stc_crg_csv_str_field_t; - -typedef struct stc_crg_dbwdt_ctl_field -{ - uint8_t RESERVED1 : 5; - __IO uint8_t DPSWBE : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t DPHWBE : 1; -} stc_crg_dbwdt_ctl_field_t; - -typedef struct stc_crg_int_enr_field -{ - __IO uint8_t MCSE : 1; - __IO uint8_t SCSE : 1; - __IO uint8_t PCSE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSE : 1; -} stc_crg_int_enr_field_t; - -typedef struct stc_crg_int_str_field -{ - __IO uint8_t MCSI : 1; - __IO uint8_t SCSI : 1; - __IO uint8_t PCSI : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSI : 1; -} stc_crg_int_str_field_t; - -typedef struct stc_crg_int_clr_field -{ - __IO uint8_t MCSC : 1; - __IO uint8_t SCSC : 1; - __IO uint8_t PCSC : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t FCSC : 1; -} stc_crg_int_clr_field_t; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* HWWDT_MODULE register bit fields */ -typedef struct stc_hwwdt_wdg_ctl_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_hwwdt_wdg_ctl_field_t; - -typedef struct stc_hwwdt_wdg_ris_field -{ - __IO uint8_t RIS : 1; -} stc_hwwdt_wdg_ris_field_t; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* SWWDT_MODULE register bit fields */ -typedef struct stc_swwdt_wdogcontrol_field -{ - __IO uint8_t INTEN : 1; - __IO uint8_t RESEN : 1; -} stc_swwdt_wdogcontrol_field_t; - -typedef struct stc_swwdt_wdogris_field -{ - __IO uint8_t RIS : 1; -} stc_swwdt_wdogris_field_t; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* DTIM_MODULE register bit fields */ -typedef struct stc_dtim_timer1control_field -{ - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; -} stc_dtim_timer1control_field_t; - -typedef struct stc_dtim_timer1ris_field -{ - __IO uint32_t TIMER1RIS : 1; -} stc_dtim_timer1ris_field_t; - -typedef struct stc_dtim_timer1mis_field -{ - __IO uint32_t TIMER1MIS : 1; -} stc_dtim_timer1mis_field_t; - -typedef struct stc_dtim_timer2control_field -{ - __IO uint32_t ONESHOT : 1; - __IO uint32_t TIMERSIZE : 1; - __IO uint32_t TIMERPRE0 : 1; - __IO uint32_t TIMERPRE1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t INTENABLE : 1; - __IO uint32_t TIMERMODE : 1; - __IO uint32_t TIMEREN : 1; -} stc_dtim_timer2control_field_t; - -typedef struct stc_dtim_timer2ris_field -{ - __IO uint32_t TIMER2RIS : 1; -} stc_dtim_timer2ris_field_t; - -typedef struct stc_dtim_timer2mis_field -{ - __IO uint32_t TIMER2MIS : 1; -} stc_dtim_timer2mis_field_t; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* MFT_FRT_MODULE register bit fields */ -typedef struct stc_mft_frt_tcsa0_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa0_field_t; - -typedef struct stc_mft_frt_tcsb0_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb0_field_t; - -typedef struct stc_mft_frt_tcsa1_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa1_field_t; - -typedef struct stc_mft_frt_tcsb1_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb1_field_t; - -typedef struct stc_mft_frt_tcsa2_field -{ - __IO uint16_t CLK0 : 1; - __IO uint16_t CLK1 : 1; - __IO uint16_t CLK2 : 1; - __IO uint16_t CLK3 : 1; - __IO uint16_t SCLR : 1; - __IO uint16_t MODE : 1; - __IO uint16_t STOP : 1; - __IO uint16_t BFE : 1; - __IO uint16_t ICRE : 1; - __IO uint16_t ICLR : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t IRQZE : 1; - __IO uint16_t IRQZF : 1; - __IO uint16_t ECKE : 1; -} stc_mft_frt_tcsa2_field_t; - -typedef struct stc_mft_frt_tcsb2_field -{ - __IO uint16_t AD0E : 1; - __IO uint16_t AD1E : 1; - __IO uint16_t AD2E : 1; -} stc_mft_frt_tcsb2_field_t; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* MFT_OCU_MODULE register bit fields */ -typedef struct stc_mft_ocu_ocsa10_field -{ - __IO uint8_t CST0 : 1; - __IO uint8_t CST1 : 1; - __IO uint8_t BDIS0 : 1; - __IO uint8_t BDIS1 : 1; - __IO uint8_t IOE0 : 1; - __IO uint8_t IOE1 : 1; - __IO uint8_t IOP0 : 1; - __IO uint8_t IOP1 : 1; -} stc_mft_ocu_ocsa10_field_t; - -typedef struct stc_mft_ocu_ocsb10_field -{ - __IO uint8_t OTD0 : 1; - __IO uint8_t OTD1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS0 : 1; - __IO uint8_t BTS1 : 1; -} stc_mft_ocu_ocsb10_field_t; - -typedef struct stc_mft_ocu_ocsa32_field -{ - __IO uint8_t CST2 : 1; - __IO uint8_t CST3 : 1; - __IO uint8_t BDIS2 : 1; - __IO uint8_t BDIS3 : 1; - __IO uint8_t IOE2 : 1; - __IO uint8_t IOE3 : 1; - __IO uint8_t IOP2 : 1; - __IO uint8_t IOP3 : 1; -} stc_mft_ocu_ocsa32_field_t; - -typedef struct stc_mft_ocu_ocsb32_field -{ - __IO uint8_t OTD2 : 1; - __IO uint8_t OTD3 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS2 : 1; - __IO uint8_t BTS3 : 1; -} stc_mft_ocu_ocsb32_field_t; - -typedef struct stc_mft_ocu_ocsa54_field -{ - __IO uint8_t CST4 : 1; - __IO uint8_t CST5 : 1; - __IO uint8_t BDIS4 : 1; - __IO uint8_t BDIS5 : 1; - __IO uint8_t IOE4 : 1; - __IO uint8_t IOE5 : 1; - __IO uint8_t IOP4 : 1; - __IO uint8_t IOP5 : 1; -} stc_mft_ocu_ocsa54_field_t; - -typedef struct stc_mft_ocu_ocsb54_field -{ - __IO uint8_t OTD4 : 1; - __IO uint8_t OTD5 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CMOD : 1; - __IO uint8_t BTS4 : 1; - __IO uint8_t BTS5 : 1; -} stc_mft_ocu_ocsb54_field_t; - -typedef struct stc_mft_ocu_ocsc_field -{ - __IO uint8_t MOD0 : 1; - __IO uint8_t MOD1 : 1; - __IO uint8_t MOD2 : 1; - __IO uint8_t MOD3 : 1; - __IO uint8_t MOD4 : 1; - __IO uint8_t MOD5 : 1; -} stc_mft_ocu_ocsc_field_t; - -typedef struct stc_mft_ocu_ocfs10_field -{ - __IO uint8_t FSO00 : 1; - __IO uint8_t FSO01 : 1; - __IO uint8_t FSO02 : 1; - __IO uint8_t FSO03 : 1; - __IO uint8_t FSO10 : 1; - __IO uint8_t FSO11 : 1; - __IO uint8_t FSO12 : 1; - __IO uint8_t FSO13 : 1; -} stc_mft_ocu_ocfs10_field_t; - -typedef struct stc_mft_ocu_ocfs32_field -{ - __IO uint8_t FSO20 : 1; - __IO uint8_t FSO21 : 1; - __IO uint8_t FSO22 : 1; - __IO uint8_t FSO23 : 1; - __IO uint8_t FSO30 : 1; - __IO uint8_t FSO31 : 1; - __IO uint8_t FSO32 : 1; - __IO uint8_t FSO33 : 1; -} stc_mft_ocu_ocfs32_field_t; - -typedef struct stc_mft_ocu_ocfs54_field -{ - __IO uint8_t FSO40 : 1; - __IO uint8_t FSO41 : 1; - __IO uint8_t FSO42 : 1; - __IO uint8_t FSO43 : 1; - __IO uint8_t FSO50 : 1; - __IO uint8_t FSO51 : 1; - __IO uint8_t FSO52 : 1; - __IO uint8_t FSO53 : 1; -} stc_mft_ocu_ocfs54_field_t; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* MFT_WFG_MODULE register bit fields */ -typedef struct stc_mft_wfg_wfsa10_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD : 3; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa10_field_t; - -typedef struct stc_mft_wfg_wfsa32_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD : 3; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa32_field_t; - -typedef struct stc_mft_wfg_wfsa54_field -{ - __IO uint16_t DCK0 : 1; - __IO uint16_t DCK1 : 1; - __IO uint16_t DCK2 : 1; - __IO uint16_t TMD : 3; - __IO uint16_t GTEN0 : 1; - __IO uint16_t GTEN1 : 1; - __IO uint16_t PSEL0 : 1; - __IO uint16_t PSEL1 : 1; - __IO uint16_t PGEN0 : 1; - __IO uint16_t PGEN1 : 1; - __IO uint16_t DMOD : 1; -} stc_mft_wfg_wfsa54_field_t; - -typedef struct stc_mft_wfg_wfir_field -{ - __IO uint16_t DTIF : 1; - __IO uint16_t DTIC : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t TMIF10 : 1; - __IO uint16_t TMIC10 : 1; - __IO uint16_t TMIE10 : 1; - __IO uint16_t TMIS10 : 1; - __IO uint16_t TMIF32 : 1; - __IO uint16_t TMIC32 : 1; - __IO uint16_t TMIE32 : 1; - __IO uint16_t TMIS32 : 1; - __IO uint16_t TMIF54 : 1; - __IO uint16_t TMIC54 : 1; - __IO uint16_t TMIE54 : 1; - __IO uint16_t TMIS54 : 1; -} stc_mft_wfg_wfir_field_t; - -typedef struct stc_mft_wfg_nzcl_field -{ - __IO uint16_t DTIE : 1; - __IO uint16_t NWS0 : 1; - __IO uint16_t NWS1 : 1; - __IO uint16_t NWS2 : 1; - __IO uint16_t SDTI : 1; -} stc_mft_wfg_nzcl_field_t; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* MFT_ICU_MODULE register bit fields */ -typedef struct stc_mft_icu_icfs10_field -{ - __IO uint8_t FSI00 : 1; - __IO uint8_t FSI01 : 1; - __IO uint8_t FSI02 : 1; - __IO uint8_t FSI03 : 1; - __IO uint8_t FSI10 : 1; - __IO uint8_t FSI11 : 1; - __IO uint8_t FSI12 : 1; - __IO uint8_t FSI13 : 1; -} stc_mft_icu_icfs10_field_t; - -typedef struct stc_mft_icu_icfs32_field -{ - __IO uint8_t FSI20 : 1; - __IO uint8_t FSI21 : 1; - __IO uint8_t FSI22 : 1; - __IO uint8_t FSI23 : 1; - __IO uint8_t FSI30 : 1; - __IO uint8_t FSI31 : 1; - __IO uint8_t FSI32 : 1; - __IO uint8_t FSI33 : 1; -} stc_mft_icu_icfs32_field_t; - -typedef struct stc_mft_icu_icsa10_field -{ - __IO uint8_t EG00 : 1; - __IO uint8_t EG01 : 1; - __IO uint8_t EG10 : 1; - __IO uint8_t EG11 : 1; - __IO uint8_t ICE0 : 1; - __IO uint8_t ICE1 : 1; - __IO uint8_t ICP0 : 1; - __IO uint8_t ICP1 : 1; -} stc_mft_icu_icsa10_field_t; - -typedef struct stc_mft_icu_icsb10_field -{ - __IO uint8_t IEI0 : 1; - __IO uint8_t IEI1 : 1; -} stc_mft_icu_icsb10_field_t; - -typedef struct stc_mft_icu_icsa32_field -{ - __IO uint8_t EG20 : 1; - __IO uint8_t EG21 : 1; - __IO uint8_t EG30 : 1; - __IO uint8_t EG31 : 1; - __IO uint8_t ICE2 : 1; - __IO uint8_t ICE3 : 1; - __IO uint8_t ICP2 : 1; - __IO uint8_t ICP3 : 1; -} stc_mft_icu_icsa32_field_t; - -typedef struct stc_mft_icu_icsb32_field -{ - __IO uint8_t IEI2 : 1; - __IO uint8_t IEI3 : 1; -} stc_mft_icu_icsb32_field_t; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* MFT_ADCMP_MODULE register bit fields */ -typedef struct stc_mft_adcmp_acsb_field -{ - __IO uint8_t BDIS0 : 1; - __IO uint8_t BDIS1 : 1; - __IO uint8_t BDIS2 : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BTS0 : 1; - __IO uint8_t BTS1 : 1; - __IO uint8_t BTS2 : 1; -} stc_mft_adcmp_acsb_field_t; - -typedef struct stc_mft_adcmp_acsa_field -{ - __IO uint16_t CE00 : 1; - __IO uint16_t CE01 : 1; - __IO uint16_t CE10 : 1; - __IO uint16_t CE11 : 1; - __IO uint16_t CE20 : 1; - __IO uint16_t CE21 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SEL00 : 1; - __IO uint16_t SEL01 : 1; - __IO uint16_t SEL10 : 1; - __IO uint16_t SEL11 : 1; - __IO uint16_t SEL20 : 1; - __IO uint16_t SEL21 : 1; -} stc_mft_adcmp_acsa_field_t; - -typedef struct stc_mft_adcmp_atsa_field -{ - __IO uint16_t AD0S0 : 1; - __IO uint16_t AD0S1 : 1; - __IO uint16_t AD1S0 : 1; - __IO uint16_t AD1S1 : 1; - __IO uint16_t AD2S0 : 1; - __IO uint16_t AD2S1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t AD0P0 : 1; - __IO uint16_t AD0P1 : 1; - __IO uint16_t AD1P0 : 1; - __IO uint16_t AD1P1 : 1; - __IO uint16_t AD2P0 : 1; - __IO uint16_t AD2P1 : 1; -} stc_mft_adcmp_atsa_field_t; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* MFT_PPG_MODULE register bit fields */ -typedef struct stc_mft_ppg_ttcr0_field -{ - __IO uint8_t STR0 : 1; - __IO uint8_t MONI0 : 1; - __IO uint8_t CS00 : 1; - __IO uint8_t CS01 : 1; - __IO uint8_t TRG0O : 1; - __IO uint8_t TRG2O : 1; - __IO uint8_t TRG4O : 1; - __IO uint8_t TRG6O : 1; -} stc_mft_ppg_ttcr0_field_t; - -typedef struct stc_mft_ppg_ttcr1_field -{ - __IO uint8_t STR1 : 1; - __IO uint8_t MONI1 : 1; - __IO uint8_t CS10 : 1; - __IO uint8_t CS11 : 1; - __IO uint8_t TRG1O : 1; - __IO uint8_t TRG3O : 1; - __IO uint8_t TRG5O : 1; - __IO uint8_t TRG7O : 1; -} stc_mft_ppg_ttcr1_field_t; - -typedef struct stc_mft_ppg_ttcr2_field -{ - __IO uint8_t STR2 : 1; - __IO uint8_t MONI2 : 1; - __IO uint8_t CS20 : 1; - __IO uint8_t CS21 : 1; - __IO uint8_t TRG16O : 1; - __IO uint8_t TRG18O : 1; - __IO uint8_t TRG20O : 1; - __IO uint8_t TRG22O : 1; -} stc_mft_ppg_ttcr2_field_t; - -typedef struct stc_mft_ppg_trg_field -{ - __IO uint16_t PEN00 : 1; - __IO uint16_t PEN01 : 1; - __IO uint16_t PEN02 : 1; - __IO uint16_t PEN03 : 1; - __IO uint16_t PEN04 : 1; - __IO uint16_t PEN05 : 1; - __IO uint16_t PEN06 : 1; - __IO uint16_t PEN07 : 1; - __IO uint16_t PEN08 : 1; - __IO uint16_t PEN09 : 1; - __IO uint16_t PEN10 : 1; - __IO uint16_t PEN11 : 1; - __IO uint16_t PEN12 : 1; - __IO uint16_t PEN13 : 1; - __IO uint16_t PEN14 : 1; - __IO uint16_t PEN15 : 1; -} stc_mft_ppg_trg_field_t; - -typedef struct stc_mft_ppg_trg1_field -{ - __IO uint16_t PEN16 : 1; - __IO uint16_t PEN17 : 1; - __IO uint16_t PEN18 : 1; - __IO uint16_t PEN19 : 1; - __IO uint16_t PEN20 : 1; - __IO uint16_t PEN21 : 1; - __IO uint16_t PEN22 : 1; - __IO uint16_t PEN23 : 1; -} stc_mft_ppg_trg1_field_t; - -typedef struct stc_mft_ppg_revc_field -{ - __IO uint16_t REV00 : 1; - __IO uint16_t REV01 : 1; - __IO uint16_t REV02 : 1; - __IO uint16_t REV03 : 1; - __IO uint16_t REV04 : 1; - __IO uint16_t REV05 : 1; - __IO uint16_t REV06 : 1; - __IO uint16_t REV07 : 1; - __IO uint16_t REV08 : 1; - __IO uint16_t REV09 : 1; - __IO uint16_t REV10 : 1; - __IO uint16_t REV11 : 1; - __IO uint16_t REV12 : 1; - __IO uint16_t REV13 : 1; - __IO uint16_t REV14 : 1; - __IO uint16_t REV15 : 1; -} stc_mft_ppg_revc_field_t; - -typedef struct stc_mft_ppg_revc1_field -{ - __IO uint16_t REV16 : 1; - __IO uint16_t REV17 : 1; - __IO uint16_t REV18 : 1; - __IO uint16_t REV19 : 1; - __IO uint16_t REV20 : 1; - __IO uint16_t REV21 : 1; - __IO uint16_t REV22 : 1; - __IO uint16_t REV23 : 1; -} stc_mft_ppg_revc1_field_t; - -typedef struct stc_mft_ppg_ppgc1_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc1_field_t; - -typedef struct stc_mft_ppg_ppgc0_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc0_field_t; - -typedef struct stc_mft_ppg_ppgc3_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc3_field_t; - -typedef struct stc_mft_ppg_ppgc2_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc2_field_t; - -typedef struct stc_mft_ppg_gatec0_field -{ - __IO uint8_t EDGE0 : 1; - __IO uint8_t STRG0 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE2 : 1; - __IO uint8_t STRG2 : 1; -} stc_mft_ppg_gatec0_field_t; - -typedef struct stc_mft_ppg_ppgc5_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc5_field_t; - -typedef struct stc_mft_ppg_ppgc4_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc4_field_t; - -typedef struct stc_mft_ppg_ppgc7_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc7_field_t; - -typedef struct stc_mft_ppg_ppgc6_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc6_field_t; - -typedef struct stc_mft_ppg_gatec4_field -{ - __IO uint8_t EDGE4 : 1; - __IO uint8_t STRG4 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE6 : 1; - __IO uint8_t STRG6 : 1; -} stc_mft_ppg_gatec4_field_t; - -typedef struct stc_mft_ppg_ppgc9_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc9_field_t; - -typedef struct stc_mft_ppg_ppgc8_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc8_field_t; - -typedef struct stc_mft_ppg_ppgc11_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc11_field_t; - -typedef struct stc_mft_ppg_ppgc10_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc10_field_t; - -typedef struct stc_mft_ppg_gatec8_field -{ - __IO uint8_t EDGE8 : 1; - __IO uint8_t STRG8 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE10 : 1; - __IO uint8_t STRG10 : 1; -} stc_mft_ppg_gatec8_field_t; - -typedef struct stc_mft_ppg_ppgc13_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc13_field_t; - -typedef struct stc_mft_ppg_ppgc12_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc12_field_t; - -typedef struct stc_mft_ppg_ppgc15_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc15_field_t; - -typedef struct stc_mft_ppg_ppgc14_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc14_field_t; - -typedef struct stc_mft_ppg_gatec12_field -{ - __IO uint8_t EDGE12 : 1; - __IO uint8_t STRG12 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE14 : 1; - __IO uint8_t STRG14 : 1; -} stc_mft_ppg_gatec12_field_t; - -typedef struct stc_mft_ppg_ppgc17_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc17_field_t; - -typedef struct stc_mft_ppg_ppgc16_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc16_field_t; - -typedef struct stc_mft_ppg_ppgc19_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc19_field_t; - -typedef struct stc_mft_ppg_ppgc18_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc18_field_t; - -typedef struct stc_mft_ppg_gatec16_field -{ - __IO uint8_t EDGE16 : 1; - __IO uint8_t STRG16 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE18 : 1; - __IO uint8_t STRG18 : 1; -} stc_mft_ppg_gatec16_field_t; - -typedef struct stc_mft_ppg_ppgc21_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc21_field_t; - -typedef struct stc_mft_ppg_ppgc20_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc20_field_t; - -typedef struct stc_mft_ppg_ppgc23_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc23_field_t; - -typedef struct stc_mft_ppg_ppgc22_field -{ - __IO uint8_t TTRG : 1; - __IO uint8_t MD : 2; - __IO uint8_t PCS0 : 1; - __IO uint8_t PCS1 : 1; - __IO uint8_t INTM : 1; - __IO uint8_t PUF : 1; - __IO uint8_t PIE : 1; -} stc_mft_ppg_ppgc22_field_t; - -typedef struct stc_mft_ppg_gatec20_field -{ - __IO uint8_t EDGE20 : 1; - __IO uint8_t STRG20 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t EDGE22 : 1; - __IO uint8_t STRG22 : 1; -} stc_mft_ppg_gatec20_field_t; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* BT_PPG_MODULE register bit fields */ -typedef struct stc_bt_ppg_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD : 3; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_ppg_tmcr_field_t; - -typedef struct stc_bt_ppg_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_ppg_stc_field_t; - -typedef struct stc_bt_ppg_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_ppg_tmcr2_field_t; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* BT_PWM_MODULE register bit fields */ -typedef struct stc_bt_pwm_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD : 3; - uint16_t RESERVED1 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t PMSK : 1; - __IO uint16_t RTGEN : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwm_tmcr_field_t; - -typedef struct stc_bt_pwm_stc_field -{ - __IO uint8_t UDIR : 1; - __IO uint8_t DTIR : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t UDIE : 1; - __IO uint8_t DTIE : 1; - __IO uint8_t TGIE : 1; -} stc_bt_pwm_stc_field_t; - -typedef struct stc_bt_pwm_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwm_tmcr2_field_t; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* BT_RT_MODULE register bit fields */ -typedef struct stc_bt_rt_tmcr_field -{ - __IO uint16_t STRG : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - __IO uint16_t OSEL : 1; - __IO uint16_t FMD : 3; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_rt_tmcr_field_t; - -typedef struct stc_bt_rt_stc_field -{ - __IO uint8_t UDIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TGIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t UDIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t TGIE : 1; -} stc_bt_rt_stc_field_t; - -typedef struct stc_bt_rt_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_rt_tmcr2_field_t; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* BT_PWC_MODULE register bit fields */ -typedef struct stc_bt_pwc_tmcr_field -{ - uint16_t RESERVED1 : 1; - __IO uint16_t CTEN : 1; - __IO uint16_t MDSE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FMD : 3; - __IO uint16_t T32 : 1; - __IO uint16_t EGS0 : 1; - __IO uint16_t EGS1 : 1; - __IO uint16_t EGS2 : 1; - uint16_t RESERVED3 : 1; - __IO uint16_t CKS0 : 1; - __IO uint16_t CKS1 : 1; - __IO uint16_t CKS2 : 1; -} stc_bt_pwc_tmcr_field_t; - -typedef struct stc_bt_pwc_stc_field -{ - __IO uint8_t OVIR : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t EDIR : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t OVIE : 1; - uint8_t RESERVED3 : 1; - __IO uint8_t EDIE : 1; - __IO uint8_t ERR : 1; -} stc_bt_pwc_stc_field_t; - -typedef struct stc_bt_pwc_tmcr2_field -{ - __IO uint8_t CKS3 : 1; -} stc_bt_pwc_tmcr2_field_t; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* BTIOSEL03_MODULE register bit fields */ -typedef struct stc_btiosel03_btsel0123_field -{ - __IO uint8_t SEL01_0 : 1; - __IO uint8_t SEL01_1 : 1; - __IO uint8_t SEL01_2 : 1; - __IO uint8_t SEL01_3 : 1; - __IO uint8_t SEL23_0 : 1; - __IO uint8_t SEL23_1 : 1; - __IO uint8_t SEL23_2 : 1; - __IO uint8_t SEL23_3 : 1; -} stc_btiosel03_btsel0123_field_t; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* BTIOSEL47_MODULE register bit fields */ -typedef struct stc_btiosel47_btsel4567_field -{ - __IO uint8_t SEL45_0 : 1; - __IO uint8_t SEL45_1 : 1; - __IO uint8_t SEL45_2 : 1; - __IO uint8_t SEL45_3 : 1; - __IO uint8_t SEL67_0 : 1; - __IO uint8_t SEL67_1 : 1; - __IO uint8_t SEL67_2 : 1; - __IO uint8_t SEL67_3 : 1; -} stc_btiosel47_btsel4567_field_t; - -/****************************************************************************** - * BTIOSEL811_MODULE - ******************************************************************************/ -/* BTIOSEL811_MODULE register bit fields */ -typedef struct stc_btiosel8b_btsel89ab_field -{ - __IO uint8_t SEL89_0 : 1; - __IO uint8_t SEL89_1 : 1; - __IO uint8_t SEL89_2 : 1; - __IO uint8_t SEL89_3 : 1; - __IO uint8_t SELAB_0 : 1; - __IO uint8_t SELAB_1 : 1; - __IO uint8_t SELAB_2 : 1; - __IO uint8_t SELAB_3 : 1; -} stc_btiosel8b_btsel89ab_field_t; - -/****************************************************************************** - * BTIOSEL1215_MODULE - ******************************************************************************/ -/* BTIOSEL1215_MODULE register bit fields */ -typedef struct stc_btioselcf_btselcdef_field -{ - __IO uint8_t SELCD_0 : 1; - __IO uint8_t SELCD_1 : 1; - __IO uint8_t SELCD_2 : 1; - __IO uint8_t SELCD_3 : 1; - __IO uint8_t SELEF_0 : 1; - __IO uint8_t SELEF_1 : 1; - __IO uint8_t SELEF_2 : 1; - __IO uint8_t SELEF_3 : 1; -} stc_btioselcf_btselcdef_field_t; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* SBSSR_MODULE register bit fields */ -typedef struct stc_sbssr_btsssr_field -{ - __IO uint16_t SSR0 : 1; - __IO uint16_t SSR1 : 1; - __IO uint16_t SSR2 : 1; - __IO uint16_t SSR3 : 1; - __IO uint16_t SSR4 : 1; - __IO uint16_t SSR5 : 1; - __IO uint16_t SSR6 : 1; - __IO uint16_t SSR7 : 1; - __IO uint16_t SSR8 : 1; - __IO uint16_t SSR9 : 1; - __IO uint16_t SSR10 : 1; - __IO uint16_t SSR11 : 1; - __IO uint16_t SSR12 : 1; - __IO uint16_t SSR13 : 1; - __IO uint16_t SSR14 : 1; - __IO uint16_t SSR15 : 1; -} stc_sbssr_btsssr_field_t; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* QPRC_MODULE register bit fields */ -typedef struct stc_qprc_qicr_field -{ - __IO uint16_t QPCMIE : 1; - __IO uint16_t QPCMF : 1; - __IO uint16_t QPRCMIE : 1; - __IO uint16_t QPRCMF : 1; - __IO uint16_t OUZIE : 1; - __IO uint16_t UFDF : 1; - __IO uint16_t OFDF : 1; - __IO uint16_t ZIIF : 1; - __IO uint16_t CDCIE : 1; - __IO uint16_t CDCF : 1; - __IO uint16_t DIRPC : 1; - __IO uint16_t DIROU : 1; - __IO uint16_t QPCNRCMIE : 1; - __IO uint16_t QPCNRCMF : 1; -} stc_qprc_qicr_field_t; - -typedef struct stc_qprc_qicrl_field -{ - __IO uint8_t QPCMIE : 1; - __IO uint8_t QPCMF : 1; - __IO uint8_t QPRCMIE : 1; - __IO uint8_t QPRCMF : 1; - __IO uint8_t OUZIE : 1; - __IO uint8_t UFDF : 1; - __IO uint8_t OFDF : 1; - __IO uint8_t ZIIF : 1; -} stc_qprc_qicrl_field_t; - -typedef struct stc_qprc_qicrh_field -{ - __IO uint8_t CDCIE : 1; - __IO uint8_t CDCF : 1; - __IO uint8_t DIRPC : 1; - __IO uint8_t DIROU : 1; - __IO uint8_t QPCNRCMIE : 1; - __IO uint8_t QPCNRCMF : 1; -} stc_qprc_qicrh_field_t; - -typedef struct stc_qprc_qcr_field -{ - __IO uint16_t PCM0 : 1; - __IO uint16_t PCM1 : 1; - __IO uint16_t RCM0 : 1; - __IO uint16_t RCM1 : 1; - __IO uint16_t PSTP : 1; - __IO uint16_t CGSC : 1; - __IO uint16_t RSEL : 1; - __IO uint16_t SWAP : 1; - __IO uint16_t PCRM0 : 1; - __IO uint16_t PCRM1 : 1; - __IO uint16_t AES0 : 1; - __IO uint16_t AES1 : 1; - __IO uint16_t BES0 : 1; - __IO uint16_t BES1 : 1; - __IO uint16_t CGE0 : 1; - __IO uint16_t CGE1 : 1; -} stc_qprc_qcr_field_t; - -typedef struct stc_qprc_qcrl_field -{ - __IO uint8_t PCM0 : 1; - __IO uint8_t PCM1 : 1; - __IO uint8_t RCM0 : 1; - __IO uint8_t RCM1 : 1; - __IO uint8_t PSTP : 1; - __IO uint8_t CGSC : 1; - __IO uint8_t RSEL : 1; - __IO uint8_t SWAP : 1; -} stc_qprc_qcrl_field_t; - -typedef struct stc_qprc_qcrh_field -{ - __IO uint8_t PCRM0 : 1; - __IO uint8_t PCRM1 : 1; - __IO uint8_t AES0 : 1; - __IO uint8_t AES1 : 1; - __IO uint8_t BES0 : 1; - __IO uint8_t BES1 : 1; - __IO uint8_t CGE0 : 1; - __IO uint8_t CGE1 : 1; -} stc_qprc_qcrh_field_t; - -typedef struct stc_qprc_qecr_field -{ - __IO uint16_t ORNGMD : 1; - __IO uint16_t ORNGF : 1; - __IO uint16_t ORNGIE : 1; -} stc_qprc_qecr_field_t; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* ADC12_MODULE register bit fields */ -typedef struct stc_adc_adsr_field -{ - __IO uint8_t SCS : 1; - __IO uint8_t PCS : 1; - __IO uint8_t PCNS : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t FDAS : 1; - __IO uint8_t ADSTP : 1; -} stc_adc_adsr_field_t; - -typedef struct stc_adc_adcr_field -{ - __IO uint8_t OVRIE : 1; - __IO uint8_t CMPIE : 1; - __IO uint8_t PCIE : 1; - __IO uint8_t SCIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t CMPIF : 1; - __IO uint8_t PCIF : 1; - __IO uint8_t SCIF : 1; -} stc_adc_adcr_field_t; - -typedef struct stc_adc_sfns_field -{ - __IO uint8_t SFS0 : 1; - __IO uint8_t SFS1 : 1; - __IO uint8_t SFS2 : 1; - __IO uint8_t SFS3 : 1; -} stc_adc_sfns_field_t; - -typedef struct stc_adc_sccr_field -{ - __IO uint8_t SSTR : 1; - __IO uint8_t SHEN : 1; - __IO uint8_t RPT : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t SFCLR : 1; - __IO uint8_t SOVR : 1; - __IO uint8_t SFUL : 1; - __IO uint8_t SEMP : 1; -} stc_adc_sccr_field_t; - -typedef struct stc_adc_scfd_field -{ - __IO uint32_t SC0 : 1; - __IO uint32_t SC1 : 1; - __IO uint32_t SC2 : 1; - __IO uint32_t SC3 : 1; - __IO uint32_t SC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t SD0 : 1; - __IO uint32_t SD1 : 1; - __IO uint32_t SD2 : 1; - __IO uint32_t SD3 : 1; - __IO uint32_t SD4 : 1; - __IO uint32_t SD5 : 1; - __IO uint32_t SD6 : 1; - __IO uint32_t SD7 : 1; - __IO uint32_t SD8 : 1; - __IO uint32_t SD9 : 1; - __IO uint32_t SD10 : 1; - __IO uint32_t SD11 : 1; -} stc_adc_scfd_field_t; - -typedef struct stc_adc_scfdl_field -{ - __IO uint16_t SC0 : 1; - __IO uint16_t SC1 : 1; - __IO uint16_t SC2 : 1; - __IO uint16_t SC3 : 1; - __IO uint16_t SC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t INVL : 1; -} stc_adc_scfdl_field_t; - -typedef struct stc_adc_scfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t SD0 : 1; - __IO uint16_t SD1 : 1; - __IO uint16_t SD2 : 1; - __IO uint16_t SD3 : 1; - __IO uint16_t SD4 : 1; - __IO uint16_t SD5 : 1; - __IO uint16_t SD6 : 1; - __IO uint16_t SD7 : 1; - __IO uint16_t SD8 : 1; - __IO uint16_t SD9 : 1; - __IO uint16_t SD10 : 1; - __IO uint16_t SD11 : 1; -} stc_adc_scfdh_field_t; - -typedef struct stc_adc_scis23_field -{ - __IO uint16_t AN16 : 1; - __IO uint16_t AN17 : 1; - __IO uint16_t AN18 : 1; - __IO uint16_t AN19 : 1; - __IO uint16_t AN20 : 1; - __IO uint16_t AN21 : 1; - __IO uint16_t AN22 : 1; - __IO uint16_t AN23 : 1; - __IO uint16_t AN24 : 1; - __IO uint16_t AN25 : 1; - __IO uint16_t AN26 : 1; - __IO uint16_t AN27 : 1; - __IO uint16_t AN28 : 1; - __IO uint16_t AN29 : 1; - __IO uint16_t AN30 : 1; - __IO uint16_t AN31 : 1; -} stc_adc_scis23_field_t; - -typedef struct stc_adc_scis2_field -{ - __IO uint8_t AN16 : 1; - __IO uint8_t AN17 : 1; - __IO uint8_t AN18 : 1; - __IO uint8_t AN19 : 1; - __IO uint8_t AN20 : 1; - __IO uint8_t AN21 : 1; - __IO uint8_t AN22 : 1; - __IO uint8_t AN23 : 1; -} stc_adc_scis2_field_t; - -typedef struct stc_adc_scis3_field -{ - __IO uint8_t AN24 : 1; - __IO uint8_t AN25 : 1; - __IO uint8_t AN26 : 1; - __IO uint8_t AN27 : 1; - __IO uint8_t AN28 : 1; - __IO uint8_t AN29 : 1; - __IO uint8_t AN30 : 1; - __IO uint8_t AN31 : 1; -} stc_adc_scis3_field_t; - -typedef struct stc_adc_scis01_field -{ - __IO uint16_t AN0 : 1; - __IO uint16_t AN1 : 1; - __IO uint16_t AN2 : 1; - __IO uint16_t AN3 : 1; - __IO uint16_t AN4 : 1; - __IO uint16_t AN5 : 1; - __IO uint16_t AN6 : 1; - __IO uint16_t AN7 : 1; - __IO uint16_t AN8 : 1; - __IO uint16_t AN9 : 1; - __IO uint16_t AN10 : 1; - __IO uint16_t AN11 : 1; - __IO uint16_t AN12 : 1; - __IO uint16_t AN13 : 1; - __IO uint16_t AN14 : 1; - __IO uint16_t AN15 : 1; -} stc_adc_scis01_field_t; - -typedef struct stc_adc_scis0_field -{ - __IO uint8_t AN0 : 1; - __IO uint8_t AN1 : 1; - __IO uint8_t AN2 : 1; - __IO uint8_t AN3 : 1; - __IO uint8_t AN4 : 1; - __IO uint8_t AN5 : 1; - __IO uint8_t AN6 : 1; - __IO uint8_t AN7 : 1; -} stc_adc_scis0_field_t; - -typedef struct stc_adc_scis1_field -{ - __IO uint8_t AN8 : 1; - __IO uint8_t AN9 : 1; - __IO uint8_t AN10 : 1; - __IO uint8_t AN11 : 1; - __IO uint8_t AN12 : 1; - __IO uint8_t AN13 : 1; - __IO uint8_t AN14 : 1; - __IO uint8_t AN15 : 1; -} stc_adc_scis1_field_t; - -typedef struct stc_adc_pfns_field -{ - __IO uint8_t PFS0 : 1; - __IO uint8_t PFS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t TEST0 : 1; - __IO uint8_t TEST1 : 1; -} stc_adc_pfns_field_t; - -typedef struct stc_adc_pccr_field -{ - __IO uint8_t PSTR : 1; - __IO uint8_t PHEN : 1; - __IO uint8_t PEEN : 1; - __IO uint8_t ESCE : 1; - __IO uint8_t PFCLR : 1; - __IO uint8_t POVR : 1; - __IO uint8_t PFUL : 1; - __IO uint8_t PEMP : 1; -} stc_adc_pccr_field_t; - -typedef struct stc_adc_pcfd_field -{ - __IO uint32_t PC0 : 1; - __IO uint32_t PC1 : 1; - __IO uint32_t PC2 : 1; - __IO uint32_t PC3 : 1; - __IO uint32_t PC4 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - __IO uint32_t RS2 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t INVL : 1; - uint32_t RESERVED3 : 7; - __IO uint32_t PD0 : 1; - __IO uint32_t PD1 : 1; - __IO uint32_t PD2 : 1; - __IO uint32_t PD3 : 1; - __IO uint32_t PD4 : 1; - __IO uint32_t PD5 : 1; - __IO uint32_t PD6 : 1; - __IO uint32_t PD7 : 1; - __IO uint32_t PD8 : 1; - __IO uint32_t PD9 : 1; - __IO uint32_t PD10 : 1; - __IO uint32_t PD11 : 1; -} stc_adc_pcfd_field_t; - -typedef struct stc_adc_pcfdl_field -{ - __IO uint16_t PC0 : 1; - __IO uint16_t PC1 : 1; - __IO uint16_t PC2 : 1; - __IO uint16_t PC3 : 1; - __IO uint16_t PC4 : 1; - uint16_t RESERVED1 : 3; - __IO uint16_t RS0 : 1; - __IO uint16_t RS1 : 1; - __IO uint16_t RS2 : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t INVL : 1; -} stc_adc_pcfdl_field_t; - -typedef struct stc_adc_pcfdh_field -{ - uint16_t RESERVED1 : 4; - __IO uint16_t PD0 : 1; - __IO uint16_t PD1 : 1; - __IO uint16_t PD2 : 1; - __IO uint16_t PD3 : 1; - __IO uint16_t PD4 : 1; - __IO uint16_t PD5 : 1; - __IO uint16_t PD6 : 1; - __IO uint16_t PD7 : 1; - __IO uint16_t PD8 : 1; - __IO uint16_t PD9 : 1; - __IO uint16_t PD10 : 1; - __IO uint16_t PD11 : 1; -} stc_adc_pcfdh_field_t; - -typedef struct stc_adc_pcis_field -{ - __IO uint8_t P1A0 : 1; - __IO uint8_t P1A1 : 1; - __IO uint8_t P1A2 : 1; - __IO uint8_t P2A0 : 1; - __IO uint8_t P2A1 : 1; - __IO uint8_t P2A2 : 1; - __IO uint8_t P2A3 : 1; - __IO uint8_t P2A4 : 1; -} stc_adc_pcis_field_t; - -typedef struct stc_adc_cmpcr_field -{ - __IO uint8_t CCH0 : 1; - __IO uint8_t CCH1 : 1; - __IO uint8_t CCH2 : 1; - __IO uint8_t CCH3 : 1; - __IO uint8_t CCH4 : 1; - __IO uint8_t CMD0 : 1; - __IO uint8_t CMD1 : 1; - __IO uint8_t CMPEN : 1; -} stc_adc_cmpcr_field_t; - -typedef struct stc_adc_cmpd_field -{ - uint16_t RESERVED1 : 6; - __IO uint16_t CMAD2 : 1; - __IO uint16_t CMAD3 : 1; - __IO uint16_t CMAD4 : 1; - __IO uint16_t CMAD5 : 1; - __IO uint16_t CMAD6 : 1; - __IO uint16_t CMAD7 : 1; - __IO uint16_t CMAD8 : 1; - __IO uint16_t CMAD9 : 1; - __IO uint16_t CMAD10 : 1; - __IO uint16_t CMAD11 : 1; -} stc_adc_cmpd_field_t; - -typedef struct stc_adc_adss23_field -{ - __IO uint16_t TS16 : 1; - __IO uint16_t TS17 : 1; - __IO uint16_t TS18 : 1; - __IO uint16_t TS19 : 1; - __IO uint16_t TS20 : 1; - __IO uint16_t TS21 : 1; - __IO uint16_t TS22 : 1; - __IO uint16_t TS23 : 1; - __IO uint16_t TS24 : 1; - __IO uint16_t TS25 : 1; - __IO uint16_t TS26 : 1; - __IO uint16_t TS27 : 1; - __IO uint16_t TS28 : 1; - __IO uint16_t TS29 : 1; - __IO uint16_t TS30 : 1; - __IO uint16_t TS31 : 1; -} stc_adc_adss23_field_t; - -typedef struct stc_adc_adss2_field -{ - __IO uint8_t TS16 : 1; - __IO uint8_t TS17 : 1; - __IO uint8_t TS18 : 1; - __IO uint8_t TS19 : 1; - __IO uint8_t TS20 : 1; - __IO uint8_t TS21 : 1; - __IO uint8_t TS22 : 1; - __IO uint8_t TS23 : 1; -} stc_adc_adss2_field_t; - -typedef struct stc_adc_adss3_field -{ - __IO uint8_t TS24 : 1; - __IO uint8_t TS25 : 1; - __IO uint8_t TS26 : 1; - __IO uint8_t TS27 : 1; - __IO uint8_t TS28 : 1; - __IO uint8_t TS29 : 1; - __IO uint8_t TS30 : 1; - __IO uint8_t TS31 : 1; -} stc_adc_adss3_field_t; - -typedef struct stc_adc_adss01_field -{ - __IO uint16_t TS0 : 1; - __IO uint16_t TS1 : 1; - __IO uint16_t TS2 : 1; - __IO uint16_t TS3 : 1; - __IO uint16_t TS4 : 1; - __IO uint16_t TS5 : 1; - __IO uint16_t TS6 : 1; - __IO uint16_t TS7 : 1; - __IO uint16_t TS8 : 1; - __IO uint16_t TS9 : 1; - __IO uint16_t TS10 : 1; - __IO uint16_t TS11 : 1; - __IO uint16_t TS12 : 1; - __IO uint16_t TS13 : 1; - __IO uint16_t TS14 : 1; - __IO uint16_t TS15 : 1; -} stc_adc_adss01_field_t; - -typedef struct stc_adc_adss0_field -{ - __IO uint8_t TS0 : 1; - __IO uint8_t TS1 : 1; - __IO uint8_t TS2 : 1; - __IO uint8_t TS3 : 1; - __IO uint8_t TS4 : 1; - __IO uint8_t TS5 : 1; - __IO uint8_t TS6 : 1; - __IO uint8_t TS7 : 1; -} stc_adc_adss0_field_t; - -typedef struct stc_adc_adss1_field -{ - __IO uint8_t TS8 : 1; - __IO uint8_t TS9 : 1; - __IO uint8_t TS10 : 1; - __IO uint8_t TS11 : 1; - __IO uint8_t TS12 : 1; - __IO uint8_t TS13 : 1; - __IO uint8_t TS14 : 1; - __IO uint8_t TS15 : 1; -} stc_adc_adss1_field_t; - -typedef struct stc_adc_adst01_field -{ - __IO uint16_t ST10 : 1; - __IO uint16_t ST11 : 1; - __IO uint16_t ST12 : 1; - __IO uint16_t ST13 : 1; - __IO uint16_t ST14 : 1; - __IO uint16_t STX10 : 1; - __IO uint16_t STX11 : 1; - __IO uint16_t STX12 : 1; - __IO uint16_t ST00 : 1; - __IO uint16_t ST01 : 1; - __IO uint16_t ST02 : 1; - __IO uint16_t ST03 : 1; - __IO uint16_t ST04 : 1; - __IO uint16_t STX00 : 1; - __IO uint16_t STX01 : 1; - __IO uint16_t STX02 : 1; -} stc_adc_adst01_field_t; - -typedef struct stc_adc_adst1_field -{ - __IO uint8_t ST10 : 1; - __IO uint8_t ST11 : 1; - __IO uint8_t ST12 : 1; - __IO uint8_t ST13 : 1; - __IO uint8_t ST14 : 1; - __IO uint8_t STX10 : 1; - __IO uint8_t STX11 : 1; - __IO uint8_t STX12 : 1; -} stc_adc_adst1_field_t; - -typedef struct stc_adc_adst0_field -{ - __IO uint8_t ST00 : 1; - __IO uint8_t ST01 : 1; - __IO uint8_t ST02 : 1; - __IO uint8_t ST03 : 1; - __IO uint8_t ST04 : 1; - __IO uint8_t STX00 : 1; - __IO uint8_t STX01 : 1; - __IO uint8_t STX02 : 1; -} stc_adc_adst0_field_t; - -typedef struct stc_adc_adct_field -{ - __IO uint8_t CT0 : 1; - __IO uint8_t CT1 : 1; - __IO uint8_t CT2 : 1; - __IO uint8_t CT3 : 1; - __IO uint8_t CT4 : 1; - __IO uint8_t CT5 : 1; - __IO uint8_t CT6 : 1; - __IO uint8_t CT7 : 1; -} stc_adc_adct_field_t; - -typedef struct stc_adc_prtsl_field -{ - __IO uint8_t PRTSL0 : 1; - __IO uint8_t PRTSL1 : 1; - __IO uint8_t PRTSL2 : 1; - __IO uint8_t PRTSL3 : 1; -} stc_adc_prtsl_field_t; - -typedef struct stc_adc_sctsl_field -{ - __IO uint8_t SCTSL0 : 1; - __IO uint8_t SCTSL1 : 1; - __IO uint8_t SCTSL2 : 1; - __IO uint8_t SCTSL3 : 1; -} stc_adc_sctsl_field_t; - -typedef struct stc_adc_adcen_field -{ - __IO uint8_t ENBL : 1; - __IO uint8_t READY : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t CYCLSL0 : 1; - __IO uint8_t CYCLSL1 : 1; -} stc_adc_adcen_field_t; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CRTRIM_MODULE register bit fields */ -typedef struct stc_crtrim_mcr_psr_field -{ - __IO uint8_t CSR0 : 1; - __IO uint8_t CSR1 : 1; -} stc_crtrim_mcr_psr_field_t; - -typedef struct stc_crtrim_mcr_ftrm_field -{ - __IO uint16_t TRD0 : 1; - __IO uint16_t TRD1 : 1; - __IO uint16_t TRD2 : 1; - __IO uint16_t TRD3 : 1; - __IO uint16_t TRD4 : 1; - __IO uint16_t TRD5 : 1; - __IO uint16_t TRD6 : 1; - __IO uint16_t TRD7 : 1; -} stc_crtrim_mcr_ftrm_field_t; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* EXTI_MODULE registEN bit fields */ -typedef struct stc_exti_enir_field -{ - __IO uint16_t EN0 : 1; - __IO uint16_t EN1 : 1; - __IO uint16_t EN2 : 1; - __IO uint16_t EN3 : 1; - __IO uint16_t EN4 : 1; - __IO uint16_t EN5 : 1; - __IO uint16_t EN6 : 1; - __IO uint16_t EN7 : 1; - __IO uint16_t EN8 : 1; - __IO uint16_t EN9 : 1; - __IO uint16_t EN10 : 1; - __IO uint16_t EN11 : 1; - __IO uint16_t EN12 : 1; - __IO uint16_t EN13 : 1; - __IO uint16_t EN14 : 1; - __IO uint16_t EN15 : 1; - __IO uint16_t EN16 : 1; - __IO uint16_t EN17 : 1; - __IO uint16_t EN18 : 1; - __IO uint16_t EN19 : 1; - __IO uint16_t EN20 : 1; - __IO uint16_t EN21 : 1; - __IO uint16_t EN22 : 1; - __IO uint16_t EN23 : 1; - __IO uint16_t EN24 : 1; - __IO uint16_t EN25 : 1; - __IO uint16_t EN26 : 1; - __IO uint16_t EN27 : 1; - __IO uint16_t EN28 : 1; - __IO uint16_t EN29 : 1; - __IO uint16_t EN30 : 1; - __IO uint16_t EN31 : 1; -} stc_exti_enir_field_t; - -typedef struct stc_exti_eirr_field -{ - __IO uint16_t ER0 : 1; - __IO uint16_t ER1 : 1; - __IO uint16_t ER2 : 1; - __IO uint16_t ER3 : 1; - __IO uint16_t ER4 : 1; - __IO uint16_t ER5 : 1; - __IO uint16_t ER6 : 1; - __IO uint16_t ER7 : 1; - __IO uint16_t ER8 : 1; - __IO uint16_t ER9 : 1; - __IO uint16_t ER10 : 1; - __IO uint16_t ER11 : 1; - __IO uint16_t ER12 : 1; - __IO uint16_t ER13 : 1; - __IO uint16_t ER14 : 1; - __IO uint16_t ER15 : 1; - __IO uint16_t ER16 : 1; - __IO uint16_t ER17 : 1; - __IO uint16_t ER18 : 1; - __IO uint16_t ER19 : 1; - __IO uint16_t ER20 : 1; - __IO uint16_t ER21 : 1; - __IO uint16_t ER22 : 1; - __IO uint16_t ER23 : 1; - __IO uint16_t ER24 : 1; - __IO uint16_t ER25 : 1; - __IO uint16_t ER26 : 1; - __IO uint16_t ER27 : 1; - __IO uint16_t ER28 : 1; - __IO uint16_t ER29 : 1; - __IO uint16_t ER30 : 1; - __IO uint16_t ER31 : 1; -} stc_exti_eirr_field_t; - -typedef struct stc_exti_eicl_field -{ - __IO uint16_t ECL0 : 1; - __IO uint16_t ECL1 : 1; - __IO uint16_t ECL2 : 1; - __IO uint16_t ECL3 : 1; - __IO uint16_t ECL4 : 1; - __IO uint16_t ECL5 : 1; - __IO uint16_t ECL6 : 1; - __IO uint16_t ECL7 : 1; - __IO uint16_t ECL8 : 1; - __IO uint16_t ECL9 : 1; - __IO uint16_t ECL10 : 1; - __IO uint16_t ECL11 : 1; - __IO uint16_t ECL12 : 1; - __IO uint16_t ECL13 : 1; - __IO uint16_t ECL14 : 1; - __IO uint16_t ECL15 : 1; - __IO uint16_t ECL16 : 1; - __IO uint16_t ECL17 : 1; - __IO uint16_t ECL18 : 1; - __IO uint16_t ECL19 : 1; - __IO uint16_t ECL20 : 1; - __IO uint16_t ECL21 : 1; - __IO uint16_t ECL22 : 1; - __IO uint16_t ECL23 : 1; - __IO uint16_t ECL24 : 1; - __IO uint16_t ECL25 : 1; - __IO uint16_t ECL26 : 1; - __IO uint16_t ECL27 : 1; - __IO uint16_t ECL28 : 1; - __IO uint16_t ECL29 : 1; - __IO uint16_t ECL30 : 1; - __IO uint16_t ECL31 : 1; -} stc_exti_eicl_field_t; - -typedef struct stc_exti_elvr_field -{ - __IO uint32_t LA0 : 1; - __IO uint32_t LB0 : 1; - __IO uint32_t LA1 : 1; - __IO uint32_t LB1 : 1; - __IO uint32_t LA2 : 1; - __IO uint32_t LB2 : 1; - __IO uint32_t LA3 : 1; - __IO uint32_t LB3 : 1; - __IO uint32_t LA4 : 1; - __IO uint32_t LB4 : 1; - __IO uint32_t LA5 : 1; - __IO uint32_t LB5 : 1; - __IO uint32_t LA6 : 1; - __IO uint32_t LB6 : 1; - __IO uint32_t LA7 : 1; - __IO uint32_t LB7 : 1; - __IO uint32_t LA8 : 1; - __IO uint32_t LB8 : 1; - __IO uint32_t LA9 : 1; - __IO uint32_t LB9 : 1; - __IO uint32_t LA10 : 1; - __IO uint32_t LB10 : 1; - __IO uint32_t LA11 : 1; - __IO uint32_t LB11 : 1; - __IO uint32_t LA12 : 1; - __IO uint32_t LB12 : 1; - __IO uint32_t LA13 : 1; - __IO uint32_t LB13 : 1; - __IO uint32_t LA14 : 1; - __IO uint32_t LB14 : 1; - __IO uint32_t LA15 : 1; - __IO uint32_t LB15 : 1; -} stc_exti_elvr_field_t; - -typedef struct stc_exti_elvr1_field -{ - __IO uint32_t LA16 : 1; - __IO uint32_t LB16 : 1; - __IO uint32_t LA17 : 1; - __IO uint32_t LB17 : 1; - __IO uint32_t LA18 : 1; - __IO uint32_t LB18 : 1; - __IO uint32_t LA19 : 1; - __IO uint32_t LB19 : 1; - __IO uint32_t LA20 : 1; - __IO uint32_t LB20 : 1; - __IO uint32_t LA21 : 1; - __IO uint32_t LB21 : 1; - __IO uint32_t LA22 : 1; - __IO uint32_t LB22 : 1; - __IO uint32_t LA23 : 1; - __IO uint32_t LB23 : 1; - __IO uint32_t LA24 : 1; - __IO uint32_t LB24 : 1; - __IO uint32_t LA25 : 1; - __IO uint32_t LB25 : 1; - __IO uint32_t LA26 : 1; - __IO uint32_t LB26 : 1; - __IO uint32_t LA27 : 1; - __IO uint32_t LB27 : 1; - __IO uint32_t LA28 : 1; - __IO uint32_t LB28 : 1; - __IO uint32_t LA29 : 1; - __IO uint32_t LB29 : 1; - __IO uint32_t LA30 : 1; - __IO uint32_t LB30 : 1; - __IO uint32_t LA31 : 1; - __IO uint32_t LB31 : 1; -} stc_exti_elvr1_field_t; - -typedef struct stc_exti_nmirr_field -{ - __IO uint8_t NR0 : 1; -} stc_exti_nmirr_field_t; - -typedef struct stc_exti_nmicl_field -{ - __IO uint8_t NCL0 : 1; -} stc_exti_nmicl_field_t; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* INTREQ_MODULE register bit fields */ -typedef struct stc_intreq_drqsel_field -{ - __IO uint32_t DRQSEL0 : 1; - __IO uint32_t DRQSEL1 : 1; - __IO uint32_t DRQSEL2 : 1; - __IO uint32_t DRQSEL3 : 1; - __IO uint32_t DRQSEL4 : 1; - __IO uint32_t DRQSEL5 : 1; - __IO uint32_t DRQSEL6 : 1; - __IO uint32_t DRQSEL7 : 1; - __IO uint32_t DRQSEL8 : 1; - __IO uint32_t DRQSEL9 : 1; - __IO uint32_t DRQSEL10 : 1; - __IO uint32_t DRQSEL11 : 1; - __IO uint32_t DRQSEL12 : 1; - __IO uint32_t DRQSEL13 : 1; - __IO uint32_t DRQSEL14 : 1; - __IO uint32_t DRQSEL15 : 1; - __IO uint32_t DRQSEL16 : 1; - __IO uint32_t DRQSEL17 : 1; - __IO uint32_t DRQSEL18 : 1; - __IO uint32_t DRQSEL19 : 1; - __IO uint32_t DRQSEL20 : 1; - __IO uint32_t DRQSEL21 : 1; - __IO uint32_t DRQSEL22 : 1; - __IO uint32_t DRQSEL23 : 1; - __IO uint32_t DRQSEL24 : 1; - __IO uint32_t DRQSEL25 : 1; - __IO uint32_t DRQSEL26 : 1; - __IO uint32_t DRQSEL27 : 1; - __IO uint32_t DRQSEL28 : 1; - __IO uint32_t DRQSEL29 : 1; - __IO uint32_t DRQSEL30 : 1; - __IO uint32_t DRQSEL31 : 1; -} stc_intreq_drqsel_field_t; - -typedef struct stc_intreq_oddpks_field -{ - __IO uint8_t ODDPKS0 : 1; - __IO uint8_t ODDPKS1 : 1; - __IO uint8_t ODDPKS2 : 1; - __IO uint8_t ODDPKS3 : 1; - __IO uint8_t ODDPKS4 : 1; -} stc_intreq_oddpks_field_t; - -typedef struct stc_intreq_exc02mon_field -{ - __IO uint32_t NMI : 1; - __IO uint32_t HWINT : 1; -} stc_intreq_exc02mon_field_t; - -typedef struct stc_intreq_irq00mon_field -{ - __IO uint32_t FCSINT : 1; -} stc_intreq_irq00mon_field_t; - -typedef struct stc_intreq_irq01mon_field -{ - __IO uint32_t SWWDTINT : 1; -} stc_intreq_irq01mon_field_t; - -typedef struct stc_intreq_irq02mon_field -{ - __IO uint32_t LVDINT : 1; -} stc_intreq_irq02mon_field_t; - -typedef struct stc_intreq_irq03mon_field -{ - __IO uint32_t WAVE0INT0 : 1; - __IO uint32_t WAVE0INT1 : 1; - __IO uint32_t WAVE0INT2 : 1; - __IO uint32_t WAVE0INT3 : 1; - __IO uint32_t WAVE1INT0 : 1; - __IO uint32_t WAVE1INT1 : 1; - __IO uint32_t WAVE1INT2 : 1; - __IO uint32_t WAVE1INT3 : 1; - __IO uint32_t WAVE2INT0 : 1; - __IO uint32_t WAVE2INT1 : 1; - __IO uint32_t WAVE2INT2 : 1; - __IO uint32_t WAVE2INT3 : 1; -} stc_intreq_irq03mon_field_t; - -typedef struct stc_intreq_irq04mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; - __IO uint32_t EXTINT4 : 1; - __IO uint32_t EXTINT5 : 1; - __IO uint32_t EXTINT6 : 1; - __IO uint32_t EXTINT7 : 1; -} stc_intreq_irq04mon_field_t; - -typedef struct stc_intreq_irq05mon_field -{ - __IO uint32_t EXTINT0 : 1; - __IO uint32_t EXTINT1 : 1; - __IO uint32_t EXTINT2 : 1; - __IO uint32_t EXTINT3 : 1; - __IO uint32_t EXTINT4 : 1; - __IO uint32_t EXTINT5 : 1; - __IO uint32_t EXTINT6 : 1; - __IO uint32_t EXTINT7 : 1; - __IO uint32_t EXTINT8 : 1; - __IO uint32_t EXTINT9 : 1; - __IO uint32_t EXTINT10 : 1; - __IO uint32_t EXTINT11 : 1; - __IO uint32_t EXTINT12 : 1; - __IO uint32_t EXTINT13 : 1; - __IO uint32_t EXTINT14 : 1; - __IO uint32_t EXTINT15 : 1; - __IO uint32_t EXTINT16 : 1; - __IO uint32_t EXTINT17 : 1; - __IO uint32_t EXTINT18 : 1; - __IO uint32_t EXTINT19 : 1; - __IO uint32_t EXTINT20 : 1; - __IO uint32_t EXTINT21 : 1; - __IO uint32_t EXTINT22 : 1; - __IO uint32_t EXTINT23 : 1; -} stc_intreq_irq05mon_field_t; - -typedef struct stc_intreq_irq06mon_field -{ - __IO uint32_t TIMINT1 : 1; - __IO uint32_t TIMINT2 : 1; - __IO uint32_t QUD0INT0 : 1; - __IO uint32_t QUD0INT1 : 1; - __IO uint32_t QUD0INT2 : 1; - __IO uint32_t QUD0INT3 : 1; - __IO uint32_t QUD0INT4 : 1; - __IO uint32_t QUD0INT5 : 1; - __IO uint32_t QUD1INT0 : 1; - __IO uint32_t QUD1INT1 : 1; - __IO uint32_t QUD1INT2 : 1; - __IO uint32_t QUD1INT3 : 1; - __IO uint32_t QUD1INT4 : 1; - __IO uint32_t QUD1INT5 : 1; - __IO uint32_t QUD2INT0 : 1; - __IO uint32_t QUD2INT1 : 1; - __IO uint32_t QUD2INT2 : 1; - __IO uint32_t QUD2INT3 : 1; - __IO uint32_t QUD2INT4 : 1; - __IO uint32_t QUD2INT5 : 1; -} stc_intreq_irq06mon_field_t; - -typedef struct stc_intreq_irq07mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq07mon_field_t; - -typedef struct stc_intreq_irq08mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq08mon_field_t; - -typedef struct stc_intreq_irq09mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq09mon_field_t; - -typedef struct stc_intreq_irq10mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq10mon_field_t; - -typedef struct stc_intreq_irq11mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq11mon_field_t; - -typedef struct stc_intreq_irq12mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq12mon_field_t; - -typedef struct stc_intreq_irq13mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq13mon_field_t; - -typedef struct stc_intreq_irq14mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq14mon_field_t; - -typedef struct stc_intreq_irq15mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq15mon_field_t; - -typedef struct stc_intreq_irq16mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq16mon_field_t; - -typedef struct stc_intreq_irq17mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq17mon_field_t; - -typedef struct stc_intreq_irq18mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq18mon_field_t; - -typedef struct stc_intreq_irq19mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq19mon_field_t; - -typedef struct stc_intreq_irq20mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq20mon_field_t; - -typedef struct stc_intreq_irq21mon_field -{ - __IO uint32_t FMSINT : 1; -} stc_intreq_irq21mon_field_t; - -typedef struct stc_intreq_irq22mon_field -{ - __IO uint32_t MFSINT0 : 1; - __IO uint32_t MFSINT1 : 1; -} stc_intreq_irq22mon_field_t; - -typedef struct stc_intreq_irq23mon_field -{ - __IO uint32_t PPGINT0 : 1; - __IO uint32_t PPGINT1 : 1; - __IO uint32_t PPGINT2 : 1; - __IO uint32_t PPGINT3 : 1; - __IO uint32_t PPGINT4 : 1; - __IO uint32_t PPGINT5 : 1; - __IO uint32_t PPGINT6 : 1; - __IO uint32_t PPGINT7 : 1; - __IO uint32_t PPGINT8 : 1; -} stc_intreq_irq23mon_field_t; - -typedef struct stc_intreq_irq24mon_field -{ - __IO uint32_t MOSCINT : 1; - __IO uint32_t SOSCINT : 1; - __IO uint32_t MPLLINT : 1; - __IO uint32_t UPLLINT : 1; - __IO uint32_t WCINT : 1; -} stc_intreq_irq24mon_field_t; - -typedef struct stc_intreq_irq25mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq25mon_field_t; - -typedef struct stc_intreq_irq26mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq26mon_field_t; - -typedef struct stc_intreq_irq27mon_field -{ - __IO uint32_t ADCINT0 : 1; - __IO uint32_t ADCINT1 : 1; - __IO uint32_t ADCINT2 : 1; - __IO uint32_t ADCINT3 : 1; -} stc_intreq_irq27mon_field_t; - -typedef struct stc_intreq_irq28mon_field -{ - __IO uint32_t FRT0INT0 : 1; - __IO uint32_t FRT0INT1 : 1; - __IO uint32_t FRT0INT2 : 1; - __IO uint32_t FRT0INT3 : 1; - __IO uint32_t FRT0INT4 : 1; - __IO uint32_t FRT0INT5 : 1; - __IO uint32_t FRT1INT0 : 1; - __IO uint32_t FRT1INT1 : 1; - __IO uint32_t FRT1INT2 : 1; - __IO uint32_t FRT1INT3 : 1; - __IO uint32_t FRT1INT4 : 1; - __IO uint32_t FRT1INT5 : 1; - __IO uint32_t FRT2INT0 : 1; - __IO uint32_t FRT2INT1 : 1; - __IO uint32_t FRT2INT2 : 1; - __IO uint32_t FRT2INT3 : 1; - __IO uint32_t FRT2INT4 : 1; - __IO uint32_t FRT2INT5 : 1; -} stc_intreq_irq28mon_field_t; - -typedef struct stc_intreq_irq29mon_field -{ - __IO uint32_t ICU0INT0 : 1; - __IO uint32_t ICU0INT1 : 1; - __IO uint32_t ICU0INT2 : 1; - __IO uint32_t ICU0INT3 : 1; - __IO uint32_t ICU1INT0 : 1; - __IO uint32_t ICU1INT1 : 1; - __IO uint32_t ICU1INT2 : 1; - __IO uint32_t ICU1INT3 : 1; - __IO uint32_t ICU2INT0 : 1; - __IO uint32_t ICU2INT1 : 1; - __IO uint32_t ICU2INT2 : 1; - __IO uint32_t ICU2INT3 : 1; -} stc_intreq_irq29mon_field_t; - -typedef struct stc_intreq_irq30mon_field -{ - __IO uint32_t OCU0INT0 : 1; - __IO uint32_t OCU0INT1 : 1; - __IO uint32_t OCU0INT2 : 1; - __IO uint32_t OCU0INT3 : 1; - __IO uint32_t OCU0INT4 : 1; - __IO uint32_t OCU0INT5 : 1; - __IO uint32_t OCU1INT0 : 1; - __IO uint32_t OCU1INT1 : 1; - __IO uint32_t OCU1INT2 : 1; - __IO uint32_t OCU1INT3 : 1; - __IO uint32_t OCU1INT4 : 1; - __IO uint32_t OCU1INT5 : 1; - __IO uint32_t OCU2INT0 : 1; - __IO uint32_t OCU2INT1 : 1; - __IO uint32_t OCU2INT2 : 1; - __IO uint32_t OCU2INT3 : 1; - __IO uint32_t OCU2INT4 : 1; - __IO uint32_t OCU2INT5 : 1; -} stc_intreq_irq30mon_field_t; - -typedef struct stc_intreq_irq31mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; - __IO uint32_t BTINT2 : 1; - __IO uint32_t BTINT3 : 1; - __IO uint32_t BTINT4 : 1; - __IO uint32_t BTINT5 : 1; - __IO uint32_t BTINT6 : 1; - __IO uint32_t BTINT7 : 1; - __IO uint32_t BTINT8 : 1; - __IO uint32_t BTINT9 : 1; - __IO uint32_t BTINT10 : 1; - __IO uint32_t BTINT11 : 1; - __IO uint32_t BTINT12 : 1; - __IO uint32_t BTINT13 : 1; - __IO uint32_t BTINT14 : 1; - __IO uint32_t BTINT15 : 1; -} stc_intreq_irq31mon_field_t; - -typedef struct stc_intreq_irq32mon_field -{ - uint32_t RESERVED1 : 1; - __IO uint32_t MAC0SBD : 1; - __IO uint32_t MAC0PMI : 1; - __IO uint32_t MAC0LPI : 1; -} stc_intreq_irq32mon_field_t; - -typedef struct stc_intreq_irq33mon_field -{ - uint32_t RESERVED1 : 1; - __IO uint32_t MAC1SBD : 1; - __IO uint32_t MAC1PMI : 1; -} stc_intreq_irq33mon_field_t; - -typedef struct stc_intreq_irq34mon_field -{ - __IO uint32_t USB0INT0 : 1; - __IO uint32_t USB0INT1 : 1; - __IO uint32_t USB0INT2 : 1; - __IO uint32_t USB0INT3 : 1; - __IO uint32_t USB0INT4 : 1; -} stc_intreq_irq34mon_field_t; - -typedef struct stc_intreq_irq35mon_field -{ - __IO uint32_t USB0INT0 : 1; - __IO uint32_t USB0INT1 : 1; - __IO uint32_t USB0INT2 : 1; - __IO uint32_t USB0INT3 : 1; - __IO uint32_t USB0INT4 : 1; - __IO uint32_t USB0INT5 : 1; -} stc_intreq_irq35mon_field_t; - -typedef struct stc_intreq_irq36mon_field -{ - __IO uint32_t USB1INT0 : 1; - __IO uint32_t USB1INT1 : 1; - __IO uint32_t USB1INT2 : 1; - __IO uint32_t USB1INT3 : 1; - __IO uint32_t USB1INT4 : 1; -} stc_intreq_irq36mon_field_t; - -typedef struct stc_intreq_irq37mon_field -{ - __IO uint32_t USB1INT0 : 1; - __IO uint32_t USB1INT1 : 1; - __IO uint32_t USB1INT2 : 1; - __IO uint32_t USB1INT3 : 1; - __IO uint32_t USB1INT4 : 1; - __IO uint32_t USB1INT5 : 1; -} stc_intreq_irq37mon_field_t; - -typedef struct stc_intreq_irq38mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq38mon_field_t; - -typedef struct stc_intreq_irq39mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq39mon_field_t; - -typedef struct stc_intreq_irq40mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq40mon_field_t; - -typedef struct stc_intreq_irq41mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq41mon_field_t; - -typedef struct stc_intreq_irq42mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq42mon_field_t; - -typedef struct stc_intreq_irq43mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq43mon_field_t; - -typedef struct stc_intreq_irq44mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq44mon_field_t; - -typedef struct stc_intreq_irq45mon_field -{ - __IO uint32_t DMAINT : 1; -} stc_intreq_irq45mon_field_t; - -typedef struct stc_intreq_irq46mon_field -{ - __IO uint32_t BTINT0 : 1; - __IO uint32_t BTINT1 : 1; - __IO uint32_t BTINT2 : 1; - __IO uint32_t BTINT3 : 1; - __IO uint32_t BTINT4 : 1; - __IO uint32_t BTINT5 : 1; - __IO uint32_t BTINT6 : 1; - __IO uint32_t BTINT7 : 1; - __IO uint32_t BTINT8 : 1; - __IO uint32_t BTINT9 : 1; - __IO uint32_t BTINT10 : 1; - __IO uint32_t BTINT11 : 1; - __IO uint32_t BTINT12 : 1; - __IO uint32_t BTINT13 : 1; - __IO uint32_t BTINT14 : 1; - __IO uint32_t BTINT15 : 1; -} stc_intreq_irq46mon_field_t; - -typedef struct stc_intreq_drqsel1_field -{ - __IO uint32_t DRQSEL10 : 1; - __IO uint32_t DRQSEL11 : 1; - __IO uint32_t DRQSEL12 : 1; - __IO uint32_t DRQSEL13 : 1; - __IO uint32_t DRQSEL14 : 1; -} stc_intreq_drqsel1_field_t; - -typedef struct stc_intreq_dqesel_field -{ - __IO uint32_t ESEL100 : 1; - __IO uint32_t ESEL101 : 1; - __IO uint32_t ESEL102 : 1; - __IO uint32_t ESEL103 : 1; - __IO uint32_t ESEL110 : 1; - __IO uint32_t ESEL111 : 1; - __IO uint32_t ESEL112 : 1; - __IO uint32_t ESEL113 : 1; - __IO uint32_t ESEL240 : 1; - __IO uint32_t ESEL241 : 1; - __IO uint32_t ESEL242 : 1; - __IO uint32_t ESEL243 : 1; - __IO uint32_t ESEL250 : 1; - __IO uint32_t ESEL251 : 1; - __IO uint32_t ESEL252 : 1; - __IO uint32_t ESEL253 : 1; - __IO uint32_t ESEL260 : 1; - __IO uint32_t ESEL261 : 1; - __IO uint32_t ESEL262 : 1; - __IO uint32_t ESEL263 : 1; - __IO uint32_t ESEL270 : 1; - __IO uint32_t ESEL271 : 1; - __IO uint32_t ESEL272 : 1; - __IO uint32_t ESEL273 : 1; - __IO uint32_t ESEL300 : 1; - __IO uint32_t ESEL301 : 1; - __IO uint32_t ESEL302 : 1; - __IO uint32_t ESEL303 : 1; - __IO uint32_t ESEL310 : 1; - __IO uint32_t ESEL311 : 1; - __IO uint32_t ESEL312 : 1; - __IO uint32_t ESEL313 : 1; -} stc_intreq_dqesel_field_t; - -typedef struct stc_intreq_oddpks1_field -{ - __IO uint8_t ODDPKS10 : 1; - __IO uint8_t ODDPKS11 : 1; - __IO uint8_t ODDPKS12 : 1; - __IO uint8_t ODDPKS13 : 1; - __IO uint8_t ODDPKS14 : 1; -} stc_intreq_oddpks1_field_t; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* GPIO_MODULE register bit fields */ -typedef struct stc_gpio_pfr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pfr0_field_t; - -typedef struct stc_gpio_pfr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr1_field_t; - -typedef struct stc_gpio_pfr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pfr2_field_t; - -typedef struct stc_gpio_pfr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr3_field_t; - -typedef struct stc_gpio_pfr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pfr4_field_t; - -typedef struct stc_gpio_pfr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; -} stc_gpio_pfr5_field_t; - -typedef struct stc_gpio_pfr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pfr6_field_t; - -typedef struct stc_gpio_pfr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfr7_field_t; - -typedef struct stc_gpio_pfr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pfr8_field_t; - -typedef struct stc_gpio_pfr9_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pfr9_field_t; - -typedef struct stc_gpio_pfra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pfra_field_t; - -typedef struct stc_gpio_pfrb_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; -} stc_gpio_pfrb_field_t; - -typedef struct stc_gpio_pfrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pfrc_field_t; - -typedef struct stc_gpio_pfrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pfrd_field_t; - -typedef struct stc_gpio_pfre_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pfre_field_t; - -typedef struct stc_gpio_pfrf_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pfrf_field_t; - -typedef struct stc_gpio_pcr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pcr0_field_t; - -typedef struct stc_gpio_pcr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr1_field_t; - -typedef struct stc_gpio_pcr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pcr2_field_t; - -typedef struct stc_gpio_pcr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr3_field_t; - -typedef struct stc_gpio_pcr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pcr4_field_t; - -typedef struct stc_gpio_pcr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; -} stc_gpio_pcr5_field_t; - -typedef struct stc_gpio_pcr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pcr6_field_t; - -typedef struct stc_gpio_pcr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcr7_field_t; - -typedef struct stc_gpio_pcr9_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pcr9_field_t; - -typedef struct stc_gpio_pcra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pcra_field_t; - -typedef struct stc_gpio_pcrb_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; -} stc_gpio_pcrb_field_t; - -typedef struct stc_gpio_pcrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pcrc_field_t; - -typedef struct stc_gpio_pcrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pcrd_field_t; - -typedef struct stc_gpio_pcre_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pcre_field_t; - -typedef struct stc_gpio_ddr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_ddr0_field_t; - -typedef struct stc_gpio_ddr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr1_field_t; - -typedef struct stc_gpio_ddr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_ddr2_field_t; - -typedef struct stc_gpio_ddr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr3_field_t; - -typedef struct stc_gpio_ddr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_ddr4_field_t; - -typedef struct stc_gpio_ddr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; -} stc_gpio_ddr5_field_t; - -typedef struct stc_gpio_ddr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_ddr6_field_t; - -typedef struct stc_gpio_ddr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddr7_field_t; - -typedef struct stc_gpio_ddr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_ddr8_field_t; - -typedef struct stc_gpio_ddr9_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_ddr9_field_t; - -typedef struct stc_gpio_ddra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_ddra_field_t; - -typedef struct stc_gpio_ddrb_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; -} stc_gpio_ddrb_field_t; - -typedef struct stc_gpio_ddrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_ddrc_field_t; - -typedef struct stc_gpio_ddrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_ddrd_field_t; - -typedef struct stc_gpio_ddre_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_ddre_field_t; - -typedef struct stc_gpio_ddrf_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_ddrf_field_t; - -typedef struct stc_gpio_pdir0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdir0_field_t; - -typedef struct stc_gpio_pdir1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir1_field_t; - -typedef struct stc_gpio_pdir2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdir2_field_t; - -typedef struct stc_gpio_pdir3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir3_field_t; - -typedef struct stc_gpio_pdir4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pdir4_field_t; - -typedef struct stc_gpio_pdir5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; -} stc_gpio_pdir5_field_t; - -typedef struct stc_gpio_pdir6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pdir6_field_t; - -typedef struct stc_gpio_pdir7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdir7_field_t; - -typedef struct stc_gpio_pdir8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdir8_field_t; - -typedef struct stc_gpio_pdir9_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pdir9_field_t; - -typedef struct stc_gpio_pdira_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pdira_field_t; - -typedef struct stc_gpio_pdirb_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; -} stc_gpio_pdirb_field_t; - -typedef struct stc_gpio_pdirc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdirc_field_t; - -typedef struct stc_gpio_pdird_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdird_field_t; - -typedef struct stc_gpio_pdire_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdire_field_t; - -typedef struct stc_gpio_pdirf_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pdirf_field_t; - -typedef struct stc_gpio_pdor0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdor0_field_t; - -typedef struct stc_gpio_pdor1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor1_field_t; - -typedef struct stc_gpio_pdor2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pdor2_field_t; - -typedef struct stc_gpio_pdor3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor3_field_t; - -typedef struct stc_gpio_pdor4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pdor4_field_t; - -typedef struct stc_gpio_pdor5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; -} stc_gpio_pdor5_field_t; - -typedef struct stc_gpio_pdor6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pdor6_field_t; - -typedef struct stc_gpio_pdor7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdor7_field_t; - -typedef struct stc_gpio_pdor8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdor8_field_t; - -typedef struct stc_gpio_pdor9_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pdor9_field_t; - -typedef struct stc_gpio_pdora_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pdora_field_t; - -typedef struct stc_gpio_pdorb_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; -} stc_gpio_pdorb_field_t; - -typedef struct stc_gpio_pdorc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pdorc_field_t; - -typedef struct stc_gpio_pdord_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdord_field_t; - -typedef struct stc_gpio_pdore_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pdore_field_t; - -typedef struct stc_gpio_pdorf_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pdorf_field_t; - -typedef struct stc_gpio_ade_field -{ - __IO uint32_t AN0 : 1; - __IO uint32_t AN1 : 1; - __IO uint32_t AN2 : 1; - __IO uint32_t AN3 : 1; - __IO uint32_t AN4 : 1; - __IO uint32_t AN5 : 1; - __IO uint32_t AN6 : 1; - __IO uint32_t AN7 : 1; - __IO uint32_t AN8 : 1; - __IO uint32_t AN9 : 1; - __IO uint32_t AN10 : 1; - __IO uint32_t AN11 : 1; - __IO uint32_t AN12 : 1; - __IO uint32_t AN13 : 1; - __IO uint32_t AN14 : 1; - __IO uint32_t AN15 : 1; - __IO uint32_t AN16 : 1; - __IO uint32_t AN17 : 1; - __IO uint32_t AN18 : 1; - __IO uint32_t AN19 : 1; - __IO uint32_t AN20 : 1; - __IO uint32_t AN21 : 1; - __IO uint32_t AN22 : 1; - __IO uint32_t AN23 : 1; - __IO uint32_t AN24 : 1; - __IO uint32_t AN25 : 1; - __IO uint32_t AN26 : 1; - __IO uint32_t AN27 : 1; - __IO uint32_t AN28 : 1; - __IO uint32_t AN29 : 1; - __IO uint32_t AN30 : 1; - __IO uint32_t AN31 : 1; -} stc_gpio_ade_field_t; - -typedef struct stc_gpio_spsr_field -{ - __IO uint32_t SUBXC : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MAINXC : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t USB0C : 1; - __IO uint32_t USB1C : 1; -} stc_gpio_spsr_field_t; - -typedef struct stc_gpio_epfr00_field -{ - __IO uint32_t NMIS : 1; - __IO uint32_t CROUTE0 : 1; - __IO uint32_t CROUTE1 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t SUBOUTE0 : 1; - __IO uint32_t SUBOUTE1 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t USBP0E : 1; - uint32_t RESERVED3 : 3; - __IO uint32_t USBP1E : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t JTAGEN0B : 1; - __IO uint32_t JTAGEN1S : 1; - uint32_t RESERVED5 : 6; - __IO uint32_t TRC0E : 1; - __IO uint32_t TRC1E : 1; -} stc_gpio_epfr00_field_t; - -typedef struct stc_gpio_epfr01_field -{ - __IO uint32_t RTO00E0 : 1; - __IO uint32_t RTO00E1 : 1; - __IO uint32_t RTO01E0 : 1; - __IO uint32_t RTO01E1 : 1; - __IO uint32_t RTO02E0 : 1; - __IO uint32_t RTO02E1 : 1; - __IO uint32_t RTO03E0 : 1; - __IO uint32_t RTO03E1 : 1; - __IO uint32_t RTO04E0 : 1; - __IO uint32_t RTO04E1 : 1; - __IO uint32_t RTO05E0 : 1; - __IO uint32_t RTO05E1 : 1; - __IO uint32_t DTTI0C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI0S0 : 1; - __IO uint32_t DTTI0S1 : 1; - __IO uint32_t FRCK0S0 : 1; - __IO uint32_t FRCK0S1 : 1; - __IO uint32_t IC00S0 : 1; - __IO uint32_t IC00S1 : 1; - __IO uint32_t IC00S2 : 1; - __IO uint32_t IC01S0 : 1; - __IO uint32_t IC01S1 : 1; - __IO uint32_t IC01S2 : 1; - __IO uint32_t IC02S0 : 1; - __IO uint32_t IC02S1 : 1; - __IO uint32_t IC02S2 : 1; - __IO uint32_t IC03S0 : 1; - __IO uint32_t IC03S1 : 1; - __IO uint32_t IC03S2 : 1; -} stc_gpio_epfr01_field_t; - -typedef struct stc_gpio_epfr02_field -{ - __IO uint32_t RTO10E0 : 1; - __IO uint32_t RTO10E1 : 1; - __IO uint32_t RTO11E0 : 1; - __IO uint32_t RTO11E1 : 1; - __IO uint32_t RTO12E0 : 1; - __IO uint32_t RTO12E1 : 1; - __IO uint32_t RTO13E0 : 1; - __IO uint32_t RTO13E1 : 1; - __IO uint32_t RTO14E0 : 1; - __IO uint32_t RTO14E1 : 1; - __IO uint32_t RTO15E0 : 1; - __IO uint32_t RTO15E1 : 1; - __IO uint32_t DTTI1C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI1S0 : 1; - __IO uint32_t DTTI1S1 : 1; - __IO uint32_t FRCK1S0 : 1; - __IO uint32_t FRCK1S1 : 1; - __IO uint32_t IC10S0 : 1; - __IO uint32_t IC10S1 : 1; - __IO uint32_t IC10S2 : 1; - __IO uint32_t IC11S0 : 1; - __IO uint32_t IC11S1 : 1; - __IO uint32_t IC11S2 : 1; - __IO uint32_t IC12S0 : 1; - __IO uint32_t IC12S1 : 1; - __IO uint32_t IC12S2 : 1; - __IO uint32_t IC13S0 : 1; - __IO uint32_t IC13S1 : 1; - __IO uint32_t IC13S2 : 1; -} stc_gpio_epfr02_field_t; - -typedef struct stc_gpio_epfr03_field -{ - __IO uint32_t RTO20E0 : 1; - __IO uint32_t RTO20E1 : 1; - __IO uint32_t RTO21E0 : 1; - __IO uint32_t RTO21E1 : 1; - __IO uint32_t RTO22E0 : 1; - __IO uint32_t RTO22E1 : 1; - __IO uint32_t RTO23E0 : 1; - __IO uint32_t RTO23E1 : 1; - __IO uint32_t RTO24E0 : 1; - __IO uint32_t RTO24E1 : 1; - __IO uint32_t RTO25E0 : 1; - __IO uint32_t RTO25E1 : 1; - __IO uint32_t DTTI2C : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t DTTI2S0 : 1; - __IO uint32_t DTTI2S1 : 1; - __IO uint32_t FRCK2S0 : 1; - __IO uint32_t FRCK2S1 : 1; - __IO uint32_t IC20S0 : 1; - __IO uint32_t IC20S1 : 1; - __IO uint32_t IC20S2 : 1; - __IO uint32_t IC21S0 : 1; - __IO uint32_t IC21S1 : 1; - __IO uint32_t IC21S2 : 1; - __IO uint32_t IC22S0 : 1; - __IO uint32_t IC22S1 : 1; - __IO uint32_t IC22S2 : 1; - __IO uint32_t IC23S0 : 1; - __IO uint32_t IC23S1 : 1; - __IO uint32_t IC23S2 : 1; -} stc_gpio_epfr03_field_t; - -typedef struct stc_gpio_epfr04_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA0E0 : 1; - __IO uint32_t TIOA0E1 : 1; - __IO uint32_t TIOB0S0 : 1; - __IO uint32_t TIOB0S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA1S0 : 1; - __IO uint32_t TIOA1S1 : 1; - __IO uint32_t TIOA1E0 : 1; - __IO uint32_t TIOA1E1 : 1; - __IO uint32_t TIOB1S0 : 1; - __IO uint32_t TIOB1S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA2E0 : 1; - __IO uint32_t TIOA2E1 : 1; - __IO uint32_t TIOB2S0 : 1; - __IO uint32_t TIOB2S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA3S0 : 1; - __IO uint32_t TIOA3S1 : 1; - __IO uint32_t TIOA3E0 : 1; - __IO uint32_t TIOA3E1 : 1; - __IO uint32_t TIOB3S0 : 1; - __IO uint32_t TIOB3S1 : 1; -} stc_gpio_epfr04_field_t; - -typedef struct stc_gpio_epfr05_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA4E0 : 1; - __IO uint32_t TIOA4E1 : 1; - __IO uint32_t TIOB4S0 : 1; - __IO uint32_t TIOB4S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA5S0 : 1; - __IO uint32_t TIOA5S1 : 1; - __IO uint32_t TIOA5E0 : 1; - __IO uint32_t TIOA5E1 : 1; - __IO uint32_t TIOB5S0 : 1; - __IO uint32_t TIOB5S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA6E0 : 1; - __IO uint32_t TIOA6E1 : 1; - __IO uint32_t TIOB6S0 : 1; - __IO uint32_t TIOB6S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA7S0 : 1; - __IO uint32_t TIOA7S1 : 1; - __IO uint32_t TIOA7E0 : 1; - __IO uint32_t TIOA7E1 : 1; - __IO uint32_t TIOB7S0 : 1; - __IO uint32_t TIOB7S1 : 1; -} stc_gpio_epfr05_field_t; - -typedef struct stc_gpio_epfr06_field -{ - __IO uint32_t EINT00S0 : 1; - __IO uint32_t EINT00S1 : 1; - __IO uint32_t EINT01S0 : 1; - __IO uint32_t EINT01S1 : 1; - __IO uint32_t EINT02S0 : 1; - __IO uint32_t EINT02S1 : 1; - __IO uint32_t EINT03S0 : 1; - __IO uint32_t EINT03S1 : 1; - __IO uint32_t EINT04S0 : 1; - __IO uint32_t EINT04S1 : 1; - __IO uint32_t EINT05S0 : 1; - __IO uint32_t EINT05S1 : 1; - __IO uint32_t EINT06S0 : 1; - __IO uint32_t EINT06S1 : 1; - __IO uint32_t EINT07S0 : 1; - __IO uint32_t EINT07S1 : 1; - __IO uint32_t EINT08S0 : 1; - __IO uint32_t EINT08S1 : 1; - __IO uint32_t EINT09S0 : 1; - __IO uint32_t EINT09S1 : 1; - __IO uint32_t EINT10S0 : 1; - __IO uint32_t EINT10S1 : 1; - __IO uint32_t EINT11S0 : 1; - __IO uint32_t EINT11S1 : 1; - __IO uint32_t EINT12S0 : 1; - __IO uint32_t EINT12S1 : 1; - __IO uint32_t EINT13S0 : 1; - __IO uint32_t EINT13S1 : 1; - __IO uint32_t EINT14S0 : 1; - __IO uint32_t EINT14S1 : 1; - __IO uint32_t EINT15S0 : 1; - __IO uint32_t EINT15S1 : 1; -} stc_gpio_epfr06_field_t; - -typedef struct stc_gpio_epfr07_field -{ - uint32_t RESERVED1 : 4; - __IO uint32_t SIN0S0 : 1; - __IO uint32_t SIN0S1 : 1; - __IO uint32_t SOT0B0 : 1; - __IO uint32_t SOT0B1 : 1; - __IO uint32_t SCK0B0 : 1; - __IO uint32_t SCK0B1 : 1; - __IO uint32_t SIN1S0 : 1; - __IO uint32_t SIN1S1 : 1; - __IO uint32_t SOT1B0 : 1; - __IO uint32_t SOT1B1 : 1; - __IO uint32_t SCK1B0 : 1; - __IO uint32_t SCK1B1 : 1; - __IO uint32_t SIN2S0 : 1; - __IO uint32_t SIN2S1 : 1; - __IO uint32_t SOT2B0 : 1; - __IO uint32_t SOT2B1 : 1; - __IO uint32_t SCK2B0 : 1; - __IO uint32_t SCK2B1 : 1; - __IO uint32_t SIN3S0 : 1; - __IO uint32_t SIN3S1 : 1; - __IO uint32_t SOT3B0 : 1; - __IO uint32_t SOT3B1 : 1; - __IO uint32_t SCK3B0 : 1; - __IO uint32_t SCK3B1 : 1; -} stc_gpio_epfr07_field_t; - -typedef struct stc_gpio_epfr08_field -{ - __IO uint32_t RTS4E0 : 1; - __IO uint32_t RTS4E1 : 1; - __IO uint32_t CTS4S0 : 1; - __IO uint32_t CTS4S1 : 1; - __IO uint32_t SIN4S0 : 1; - __IO uint32_t SIN4S1 : 1; - __IO uint32_t SOT4B0 : 1; - __IO uint32_t SOT4B1 : 1; - __IO uint32_t SCK4B0 : 1; - __IO uint32_t SCK4B1 : 1; - __IO uint32_t SIN5S0 : 1; - __IO uint32_t SIN5S1 : 1; - __IO uint32_t SOT5B0 : 1; - __IO uint32_t SOT5B1 : 1; - __IO uint32_t SCK5B0 : 1; - __IO uint32_t SCK5B1 : 1; - __IO uint32_t SIN6S0 : 1; - __IO uint32_t SIN6S1 : 1; - __IO uint32_t SOT6B0 : 1; - __IO uint32_t SOT6B1 : 1; - __IO uint32_t SCK6B0 : 1; - __IO uint32_t SCK6B1 : 1; - __IO uint32_t SIN7S0 : 1; - __IO uint32_t SIN7S1 : 1; - __IO uint32_t SOT7B0 : 1; - __IO uint32_t SOT7B1 : 1; - __IO uint32_t SCK7B0 : 1; - __IO uint32_t SCK7B1 : 1; -} stc_gpio_epfr08_field_t; - -typedef struct stc_gpio_epfr09_field -{ - __IO uint32_t QAIN0S0 : 1; - __IO uint32_t QAIN0S1 : 1; - __IO uint32_t QBIN0S0 : 1; - __IO uint32_t QBIN0S1 : 1; - __IO uint32_t QZIN0S0 : 1; - __IO uint32_t QZIN0S1 : 1; - __IO uint32_t QAIN1S0 : 1; - __IO uint32_t QAIN1S1 : 1; - __IO uint32_t QBIN1S0 : 1; - __IO uint32_t QBIN1S1 : 1; - __IO uint32_t QZIN1S0 : 1; - __IO uint32_t QZIN1S1 : 1; - __IO uint32_t ADTRG0S0 : 1; - __IO uint32_t ADTRG0S1 : 1; - __IO uint32_t ADTRG0S2 : 1; - __IO uint32_t ADTRG0S3 : 1; - __IO uint32_t ADTRG1S0 : 1; - __IO uint32_t ADTRG1S1 : 1; - __IO uint32_t ADTRG1S2 : 1; - __IO uint32_t ADTRG1S3 : 1; - __IO uint32_t ADTRG2S0 : 1; - __IO uint32_t ADTRG2S1 : 1; - __IO uint32_t ADTRG2S2 : 1; - __IO uint32_t ADTRG2S3 : 1; -} stc_gpio_epfr09_field_t; - -typedef struct stc_gpio_epfr10_field -{ - __IO uint32_t UEDEFB : 1; - __IO uint32_t UEDTHB : 1; - __IO uint32_t UECLKE : 1; - __IO uint32_t UEWEXE : 1; - __IO uint32_t UEDQME : 1; - __IO uint32_t UEOEXE : 1; - __IO uint32_t UEFLSE : 1; - __IO uint32_t UECS1E : 1; - __IO uint32_t UECS2E : 1; - __IO uint32_t UECS3E : 1; - __IO uint32_t UECS4E : 1; - __IO uint32_t UECS5E : 1; - __IO uint32_t UECS6E : 1; - __IO uint32_t UECS7E : 1; - __IO uint32_t UEAOOE : 1; - __IO uint32_t UEA08E : 1; - __IO uint32_t UEA09E : 1; - __IO uint32_t UEA10E : 1; - __IO uint32_t UEA11E : 1; - __IO uint32_t UEA12E : 1; - __IO uint32_t UEA13E : 1; - __IO uint32_t UEA14E : 1; - __IO uint32_t UEA15E : 1; - __IO uint32_t UEA16E : 1; - __IO uint32_t UEA17E : 1; - __IO uint32_t UEA18E : 1; - __IO uint32_t UEA19E : 1; - __IO uint32_t UEA20E : 1; - __IO uint32_t UEA21E : 1; - __IO uint32_t UEA22E : 1; - __IO uint32_t UEA23E : 1; - __IO uint32_t UEA24E : 1; -} stc_gpio_epfr10_field_t; - -typedef struct stc_gpio_epfr11_field -{ - __IO uint32_t UEALEE : 1; - __IO uint32_t UECS0E : 1; - __IO uint32_t UEA01E : 1; - __IO uint32_t UEA02E : 1; - __IO uint32_t UEA03E : 1; - __IO uint32_t UEA04E : 1; - __IO uint32_t UEA05E : 1; - __IO uint32_t UEA06E : 1; - __IO uint32_t UEA07E : 1; - __IO uint32_t UED00B : 1; - __IO uint32_t UED01B : 1; - __IO uint32_t UED02B : 1; - __IO uint32_t UED03B : 1; - __IO uint32_t UED04B : 1; - __IO uint32_t UED05B : 1; - __IO uint32_t UED06B : 1; - __IO uint32_t UED07B : 1; - __IO uint32_t UED08B : 1; - __IO uint32_t UED09B : 1; - __IO uint32_t UED10B : 1; - __IO uint32_t UED11B : 1; - __IO uint32_t UED12B : 1; - __IO uint32_t UED13B : 1; - __IO uint32_t UED14B : 1; - __IO uint32_t UED15B : 1; - __IO uint32_t UERLC : 1; -} stc_gpio_epfr11_field_t; - -typedef struct stc_gpio_epfr12_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA8E0 : 1; - __IO uint32_t TIOA8E1 : 1; - __IO uint32_t TIOB8S0 : 1; - __IO uint32_t TIOB8S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA9S0 : 1; - __IO uint32_t TIOA9S1 : 1; - __IO uint32_t TIOA9E0 : 1; - __IO uint32_t TIOA9E1 : 1; - __IO uint32_t TIOB9S0 : 1; - __IO uint32_t TIOB9S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA10E0 : 1; - __IO uint32_t TIOA10E1 : 1; - __IO uint32_t TIOB10S0 : 1; - __IO uint32_t TIOB10S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA11S0 : 1; - __IO uint32_t TIOA11S1 : 1; - __IO uint32_t TIOA11E0 : 1; - __IO uint32_t TIOA11E1 : 1; - __IO uint32_t TIOB11S0 : 1; - __IO uint32_t TIOB11S1 : 1; -} stc_gpio_epfr12_field_t; - -typedef struct stc_gpio_epfr13_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t TIOA12E0 : 1; - __IO uint32_t TIOA12E1 : 1; - __IO uint32_t TIOB12S0 : 1; - __IO uint32_t TIOB12S1 : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t TIOA13S0 : 1; - __IO uint32_t TIOA13S1 : 1; - __IO uint32_t TIOA13E0 : 1; - __IO uint32_t TIOA13E1 : 1; - __IO uint32_t TIOB13S0 : 1; - __IO uint32_t TIOB13S1 : 1; - uint32_t RESERVED3 : 4; - __IO uint32_t TIOA14E0 : 1; - __IO uint32_t TIOA14E1 : 1; - __IO uint32_t TIOB14S0 : 1; - __IO uint32_t TIOB14S1 : 1; - uint32_t RESERVED4 : 2; - __IO uint32_t TIOA15S0 : 1; - __IO uint32_t TIOA15S1 : 1; - __IO uint32_t TIOA15E0 : 1; - __IO uint32_t TIOA15E1 : 1; - __IO uint32_t TIOB15S0 : 1; - __IO uint32_t TIOB15S1 : 1; -} stc_gpio_epfr13_field_t; - -typedef struct stc_gpio_epfr14_field -{ - __IO uint32_t QAIN2S0 : 1; - __IO uint32_t QAIN2S1 : 1; - __IO uint32_t QBIN2S0 : 1; - __IO uint32_t QBIN2S1 : 1; - __IO uint32_t QZIN2S0 : 1; - __IO uint32_t QZIN2S1 : 1; - uint32_t RESERVED1 : 12; - __IO uint32_t E_TD0E : 1; - __IO uint32_t E_TD1E : 1; - __IO uint32_t E_TE0E : 1; - __IO uint32_t E_TE1E : 1; - __IO uint32_t E_MC0E : 1; - __IO uint32_t E_MC1B : 1; - __IO uint32_t E_MD0B : 1; - __IO uint32_t E_MD1B : 1; - __IO uint32_t E_CKE : 1; - __IO uint32_t E_PSE : 1; - __IO uint32_t E_SPLC0 : 1; - __IO uint32_t E_SPLC1 : 1; -} stc_gpio_epfr14_field_t; - -typedef struct stc_gpio_epfr15_field -{ - __IO uint32_t EINT16S0 : 1; - __IO uint32_t EINT16S1 : 1; - __IO uint32_t EINT17S0 : 1; - __IO uint32_t EINT17S1 : 1; - __IO uint32_t EINT18S0 : 1; - __IO uint32_t EINT18S1 : 1; - __IO uint32_t EINT19S0 : 1; - __IO uint32_t EINT19S1 : 1; - __IO uint32_t EINT20S0 : 1; - __IO uint32_t EINT20S1 : 1; - __IO uint32_t EINT21S0 : 1; - __IO uint32_t EINT21S1 : 1; - __IO uint32_t EINT22S0 : 1; - __IO uint32_t EINT22S1 : 1; - __IO uint32_t EINT23S0 : 1; - __IO uint32_t EINT23S1 : 1; - __IO uint32_t EINT24S0 : 1; - __IO uint32_t EINT24S1 : 1; - __IO uint32_t EINT25S0 : 1; - __IO uint32_t EINT25S1 : 1; - __IO uint32_t EINT26S0 : 1; - __IO uint32_t EINT26S1 : 1; - __IO uint32_t EINT27S0 : 1; - __IO uint32_t EINT27S1 : 1; - __IO uint32_t EINT28S0 : 1; - __IO uint32_t EINT28S1 : 1; - __IO uint32_t EINT29S0 : 1; - __IO uint32_t EINT29S1 : 1; - __IO uint32_t EINT30S0 : 1; - __IO uint32_t EINT30S1 : 1; - __IO uint32_t EINT31S0 : 1; - __IO uint32_t EINT31S1 : 1; -} stc_gpio_epfr15_field_t; - -typedef struct stc_gpio_pzr0_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pzr0_field_t; - -typedef struct stc_gpio_pzr1_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzr1_field_t; - -typedef struct stc_gpio_pzr2_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; -} stc_gpio_pzr2_field_t; - -typedef struct stc_gpio_pzr3_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzr3_field_t; - -typedef struct stc_gpio_pzr4_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; -} stc_gpio_pzr4_field_t; - -typedef struct stc_gpio_pzr5_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; -} stc_gpio_pzr5_field_t; - -typedef struct stc_gpio_pzr6_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; -} stc_gpio_pzr6_field_t; - -typedef struct stc_gpio_pzr7_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzr7_field_t; - -typedef struct stc_gpio_pzr8_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pzr8_field_t; - -typedef struct stc_gpio_pzr9_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pzr9_field_t; - -typedef struct stc_gpio_pzra_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; -} stc_gpio_pzra_field_t; - -typedef struct stc_gpio_pzrb_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; -} stc_gpio_pzrb_field_t; - -typedef struct stc_gpio_pzrc_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; - __IO uint32_t P7 : 1; - __IO uint32_t P8 : 1; - __IO uint32_t P9 : 1; - __IO uint32_t PA : 1; - __IO uint32_t PB : 1; - __IO uint32_t PC : 1; - __IO uint32_t PD : 1; - __IO uint32_t PE : 1; - __IO uint32_t PF : 1; -} stc_gpio_pzrc_field_t; - -typedef struct stc_gpio_pzrd_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pzrd_field_t; - -typedef struct stc_gpio_pzre_field -{ - __IO uint32_t P0 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; -} stc_gpio_pzre_field_t; - -typedef struct stc_gpio_pzrf_field -{ - __IO uint32_t P0 : 1; - __IO uint32_t P1 : 1; - __IO uint32_t P2 : 1; - __IO uint32_t P3 : 1; - __IO uint32_t P4 : 1; - __IO uint32_t P5 : 1; - __IO uint32_t P6 : 1; -} stc_gpio_pzrf_field_t; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* LVD_MODULE register bit fields */ -typedef struct stc_lvd_lvd_ctl_field -{ - uint8_t RESERVED1 : 2; - __IO uint8_t SVHI0 : 1; - __IO uint8_t SVHI1 : 1; - __IO uint8_t SVHI2 : 1; - __IO uint8_t SVHI3 : 1; - uint8_t RESERVED2 : 1; - __IO uint8_t LVDIE : 1; -} stc_lvd_lvd_ctl_field_t; - -typedef struct stc_lvd_lvd_str_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIR : 1; -} stc_lvd_lvd_str_field_t; - -typedef struct stc_lvd_lvd_clr_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDCL : 1; -} stc_lvd_lvd_clr_field_t; - -typedef struct stc_lvd_lvd_str2_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t LVDIRDY : 1; -} stc_lvd_lvd_str2_field_t; - -/****************************************************************************** - * USB Ethernet CLK - ******************************************************************************/ -/* USB ETHERNET CLK register bit fields */ -typedef struct stc_usbethernetclk_uccr_field -{ - __IO uint8_t UCEN0 : 1; - __IO uint8_t UCSEL0 : 1; - __IO uint8_t UCSEL1 : 1; - __IO uint8_t UCEN1 : 1; - __IO uint8_t ECEN : 1; - __IO uint8_t ECSEL0 : 1; - __IO uint8_t ECSEL1 : 1; -} stc_usbethernetclk_uccr_field_t; - -typedef struct stc_usbethernetclk_upcr1_field -{ - __IO uint8_t UPLLEN : 1; - __IO uint8_t UPINC : 1; -} stc_usbethernetclk_upcr1_field_t; - -typedef struct stc_usbethernetclk_upcr2_field -{ - __IO uint8_t UPOWT0 : 1; - __IO uint8_t UPOWT1 : 1; - __IO uint8_t UPOWT2 : 1; -} stc_usbethernetclk_upcr2_field_t; - -typedef struct stc_usbethernetclk_upcr3_field -{ - __IO uint8_t UPLLK0 : 1; - __IO uint8_t UPLLK1 : 1; - __IO uint8_t UPLLK2 : 1; - __IO uint8_t UPLLK3 : 1; - __IO uint8_t UPLLK4 : 1; -} stc_usbethernetclk_upcr3_field_t; - -typedef struct stc_usbethernetclk_upcr4_field -{ - __IO uint8_t UPLLN0 : 1; - __IO uint8_t UPLLN1 : 1; - __IO uint8_t UPLLN2 : 1; - __IO uint8_t UPLLN3 : 1; - __IO uint8_t UPLLN4 : 1; - __IO uint8_t UPLLN5 : 1; - __IO uint8_t UPLLN6 : 1; -} stc_usbethernetclk_upcr4_field_t; - -typedef struct stc_usbethernetclk_up_str_field -{ - __IO uint8_t UPRDY : 1; -} stc_usbethernetclk_up_str_field_t; - -typedef struct stc_usbethernetclk_upint_enr_field -{ - __IO uint8_t UPCSE : 1; -} stc_usbethernetclk_upint_enr_field_t; - -typedef struct stc_usbethernetclk_upint_clr_field -{ - __IO uint8_t UPCSC : 1; -} stc_usbethernetclk_upint_clr_field_t; - -typedef struct stc_usbethernetclk_upint_str_field -{ - __IO uint8_t UPCSI : 1; -} stc_usbethernetclk_upint_str_field_t; - -typedef struct stc_usbethernetclk_upcr5_field -{ - __IO uint8_t UPLLM0 : 1; - __IO uint8_t UPLLM1 : 1; - __IO uint8_t UPLLM2 : 1; - __IO uint8_t UPLLM3 : 1; -} stc_usbethernetclk_upcr5_field_t; - -typedef struct stc_usbethernetclk_upcr6_field -{ - __IO uint8_t UBSR0 : 1; - __IO uint8_t UBSR1 : 1; - __IO uint8_t UBSR2 : 1; - __IO uint8_t UBSR3 : 1; -} stc_usbethernetclk_upcr6_field_t; - -typedef struct stc_usbethernetclk_upcr7_field -{ - __IO uint8_t EPLLEN : 1; -} stc_usbethernetclk_upcr7_field_t; - -typedef struct stc_usbethernetclk_usben0_field -{ - __IO uint8_t USBEN0 : 1; -} stc_usbethernetclk_usben0_field_t; - -typedef struct stc_usbethernetclk_usben1_field -{ - __IO uint8_t USBEN1 : 1; -} stc_usbethernetclk_usben1_field_t; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* MFS03_UART_MODULE register bit fields */ -typedef struct stc_mfs03_uart_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs03_uart_smr_field_t; - -typedef struct stc_mfs03_uart_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; -} stc_mfs03_uart_scr_field_t; - -typedef struct stc_mfs03_uart_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t P : 1; - __IO uint8_t PEN : 1; - __IO uint8_t INV : 1; - __IO uint8_t ESBL : 1; - __IO uint8_t FLWEN : 1; -} stc_mfs03_uart_escr_field_t; - -typedef struct stc_mfs03_uart_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t PE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs03_uart_ssr_field_t; - -typedef struct stc_mfs03_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs03_uart_rdr_field_t; - -typedef struct stc_mfs03_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs03_uart_tdr_field_t; - -typedef struct stc_mfs03_uart_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs03_uart_bgr_field_t; - -typedef struct stc_mfs03_uart_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs03_uart_bgr1_field_t; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* MFS03_CSIO_MODULE register bit fields */ -typedef struct stc_mfs03_csio_smr_field -{ - __IO uint8_t SOE : 1; - __IO uint8_t SCKE : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SCINV : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs03_csio_smr_field_t; - -typedef struct stc_mfs03_csio_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t SPI : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs03_csio_scr_field_t; - -typedef struct stc_mfs03_csio_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t WT0 : 1; - __IO uint8_t WT1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SOP : 1; -} stc_mfs03_csio_escr_field_t; - -typedef struct stc_mfs03_csio_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t REC : 1; -} stc_mfs03_csio_ssr_field_t; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* MFS03_LIN_MODULE register bit fields */ -typedef struct stc_mfs03_lin_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs03_lin_smr_field_t; - -typedef struct stc_mfs03_lin_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t LBR : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs03_lin_scr_field_t; - -typedef struct stc_mfs03_lin_escr_field -{ - __IO uint8_t DEL0 : 1; - __IO uint8_t DEL1 : 1; - __IO uint8_t LBL0 : 1; - __IO uint8_t LBL1 : 1; - __IO uint8_t LBIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t ESBL : 1; -} stc_mfs03_lin_escr_field_t; - -typedef struct stc_mfs03_lin_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t LBD : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs03_lin_ssr_field_t; - -typedef struct stc_mfs03_lin_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs03_lin_bgr_field_t; - -typedef struct stc_mfs03_lin_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs03_lin_bgr1_field_t; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* MFS03_I2C_MODULE register bit fields */ -typedef struct stc_mfs03_i2c_smr_field -{ - uint8_t RESERVED1 : 2; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs03_i2c_smr_field_t; - -typedef struct stc_mfs03_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs03_i2c_ibcr_field_t; - -typedef struct stc_mfs03_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs03_i2c_ibsr_field_t; - -typedef struct stc_mfs03_i2c_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t DMA : 1; - __IO uint8_t TSET : 1; - __IO uint8_t REC : 1; -} stc_mfs03_i2c_ssr_field_t; - -typedef struct stc_mfs03_i2c_isba_field -{ - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - __IO uint8_t SAEN : 1; -} stc_mfs03_i2c_isba_field_t; - -typedef struct stc_mfs03_i2c_ismk_field -{ - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - __IO uint8_t EN : 1; -} stc_mfs03_i2c_ismk_field_t; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* MFS47_UART_MODULE register bit fields */ -typedef struct stc_mfs47_uart_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs47_uart_smr_field_t; - -typedef struct stc_mfs47_uart_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t UPCL : 1; -} stc_mfs47_uart_scr_field_t; - -typedef struct stc_mfs47_uart_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t P : 1; - __IO uint8_t PEN : 1; - __IO uint8_t INV : 1; - __IO uint8_t ESBL : 1; - __IO uint8_t FLWEN : 1; -} stc_mfs47_uart_escr_field_t; - -typedef struct stc_mfs47_uart_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t PE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs47_uart_ssr_field_t; - -typedef struct stc_mfs47_uart_rdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs47_uart_rdr_field_t; - -typedef struct stc_mfs47_uart_tdr_field -{ - uint16_t RESERVED1 : 8; - __IO uint16_t AD : 1; -} stc_mfs47_uart_tdr_field_t; - -typedef struct stc_mfs47_uart_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs47_uart_bgr_field_t; - -typedef struct stc_mfs47_uart_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs47_uart_bgr1_field_t; - -typedef struct stc_mfs47_uart_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_uart_fcr_field_t; - -typedef struct stc_mfs47_uart_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_uart_fcr0_field_t; - -typedef struct stc_mfs47_uart_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_uart_fcr1_field_t; - -typedef struct stc_mfs47_uart_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_uart_fbyte_field_t; - -typedef struct stc_mfs47_uart_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_uart_fbyte1_field_t; - -typedef struct stc_mfs47_uart_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_uart_fbyte2_field_t; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* MFS47_CSIO_MODULE register bit fields */ -typedef struct stc_mfs47_csio_smr_field -{ - __IO uint8_t SOE : 1; - __IO uint8_t SCKE : 1; - __IO uint8_t BDS : 1; - __IO uint8_t SCINV : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs47_csio_smr_field_t; - -typedef struct stc_mfs47_csio_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t SPI : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs47_csio_scr_field_t; - -typedef struct stc_mfs47_csio_escr_field -{ - __IO uint8_t L0 : 1; - __IO uint8_t L1 : 1; - __IO uint8_t L2 : 1; - __IO uint8_t WT0 : 1; - __IO uint8_t WT1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SOP : 1; -} stc_mfs47_csio_escr_field_t; - -typedef struct stc_mfs47_csio_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - uint8_t RESERVED1 : 3; - __IO uint8_t REC : 1; -} stc_mfs47_csio_ssr_field_t; - -typedef struct stc_mfs47_csio_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_csio_fcr_field_t; - -typedef struct stc_mfs47_csio_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_csio_fcr0_field_t; - -typedef struct stc_mfs47_csio_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_csio_fcr1_field_t; - -typedef struct stc_mfs47_csio_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_csio_fbyte_field_t; - -typedef struct stc_mfs47_csio_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_csio_fbyte1_field_t; - -typedef struct stc_mfs47_csio_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_csio_fbyte2_field_t; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* MFS47_LIN_MODULE register bit fields */ -typedef struct stc_mfs47_lin_smr_field -{ - __IO uint8_t SOE : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t SBL : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs47_lin_smr_field_t; - -typedef struct stc_mfs47_lin_scr_field -{ - __IO uint8_t TXE : 1; - __IO uint8_t RXE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t LBR : 1; - __IO uint8_t MS : 1; - __IO uint8_t UPCL : 1; -} stc_mfs47_lin_scr_field_t; - -typedef struct stc_mfs47_lin_escr_field -{ - __IO uint8_t DEL0 : 1; - __IO uint8_t DEL1 : 1; - __IO uint8_t LBL0 : 1; - __IO uint8_t LBL1 : 1; - __IO uint8_t LBIE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t ESBL : 1; -} stc_mfs47_lin_escr_field_t; - -typedef struct stc_mfs47_lin_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t FRE : 1; - __IO uint8_t LBD : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t REC : 1; -} stc_mfs47_lin_ssr_field_t; - -typedef struct stc_mfs47_lin_bgr_field -{ - uint16_t RESERVED1 : 15; - __IO uint16_t EXT : 1; -} stc_mfs47_lin_bgr_field_t; - -typedef struct stc_mfs47_lin_bgr1_field -{ - uint8_t RESERVED1 : 7; - __IO uint8_t EXT : 1; -} stc_mfs47_lin_bgr1_field_t; - -typedef struct stc_mfs47_lin_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_lin_fcr_field_t; - -typedef struct stc_mfs47_lin_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_lin_fcr0_field_t; - -typedef struct stc_mfs47_lin_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_lin_fcr1_field_t; - -typedef struct stc_mfs47_lin_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_lin_fbyte_field_t; - -typedef struct stc_mfs47_lin_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_lin_fbyte1_field_t; - -typedef struct stc_mfs47_lin_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_lin_fbyte2_field_t; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* MFS47_I2C_MODULE register bit fields */ -typedef struct stc_mfs47_i2c_smr_field -{ - uint8_t RESERVED1 : 2; - __IO uint8_t TIE : 1; - __IO uint8_t RIE : 1; - __IO uint8_t WUCR : 1; - __IO uint8_t MD : 3; -} stc_mfs47_i2c_smr_field_t; - -typedef struct stc_mfs47_i2c_ibcr_field -{ - __IO uint8_t INT : 1; - __IO uint8_t BER : 1; - __IO uint8_t INTE : 1; - __IO uint8_t CNDE : 1; - __IO uint8_t WSEL : 1; - __IO uint8_t ACKE : 1; - __IO uint8_t SCC : 1; - __IO uint8_t MSS : 1; -} stc_mfs47_i2c_ibcr_field_t; - -typedef struct stc_mfs47_i2c_ibsr_field -{ - __IO uint8_t BB : 1; - __IO uint8_t SPC : 1; - __IO uint8_t RSC : 1; - __IO uint8_t AL : 1; - __IO uint8_t TRX : 1; - __IO uint8_t RSA : 1; - __IO uint8_t RACK : 1; - __IO uint8_t FBT : 1; -} stc_mfs47_i2c_ibsr_field_t; - -typedef struct stc_mfs47_i2c_ssr_field -{ - __IO uint8_t TBI : 1; - __IO uint8_t TDRE : 1; - __IO uint8_t RDRF : 1; - __IO uint8_t ORE : 1; - __IO uint8_t TBIE : 1; - __IO uint8_t DMA : 1; - __IO uint8_t TSET : 1; - __IO uint8_t REC : 1; -} stc_mfs47_i2c_ssr_field_t; - -typedef struct stc_mfs47_i2c_isba_field -{ - __IO uint8_t SA0 : 1; - __IO uint8_t SA1 : 1; - __IO uint8_t SA2 : 1; - __IO uint8_t SA3 : 1; - __IO uint8_t SA4 : 1; - __IO uint8_t SA5 : 1; - __IO uint8_t SA6 : 1; - __IO uint8_t SAEN : 1; -} stc_mfs47_i2c_isba_field_t; - -typedef struct stc_mfs47_i2c_ismk_field -{ - __IO uint8_t SM0 : 1; - __IO uint8_t SM1 : 1; - __IO uint8_t SM2 : 1; - __IO uint8_t SM3 : 1; - __IO uint8_t SM4 : 1; - __IO uint8_t SM5 : 1; - __IO uint8_t SM6 : 1; - __IO uint8_t EN : 1; -} stc_mfs47_i2c_ismk_field_t; - -typedef struct stc_mfs47_i2c_fcr_field -{ - __IO uint16_t FE1 : 1; - __IO uint16_t FE2 : 1; - __IO uint16_t FCL1 : 1; - __IO uint16_t FCL2 : 1; - __IO uint16_t FSET : 1; - __IO uint16_t FLD : 1; - __IO uint16_t FLST : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t FSEL : 1; - __IO uint16_t FTIE : 1; - __IO uint16_t FDRQ : 1; - __IO uint16_t FRIE : 1; - __IO uint16_t FLSTE : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t FTST0 : 1; - __IO uint16_t FTST1 : 1; -} stc_mfs47_i2c_fcr_field_t; - -typedef struct stc_mfs47_i2c_fcr0_field -{ - __IO uint8_t FE1 : 1; - __IO uint8_t FE2 : 1; - __IO uint8_t FCL1 : 1; - __IO uint8_t FCL2 : 1; - __IO uint8_t FSET : 1; - __IO uint8_t FLD : 1; - __IO uint8_t FLST : 1; -} stc_mfs47_i2c_fcr0_field_t; - -typedef struct stc_mfs47_i2c_fcr1_field -{ - __IO uint8_t FSEL : 1; - __IO uint8_t FTIE : 1; - __IO uint8_t FDRQ : 1; - __IO uint8_t FRIE : 1; - __IO uint8_t FLSTE : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t FTST0 : 1; - __IO uint8_t FTST1 : 1; -} stc_mfs47_i2c_fcr1_field_t; - -typedef struct stc_mfs47_i2c_fbyte_field -{ - __IO uint16_t FD0 : 1; - __IO uint16_t FD1 : 1; - __IO uint16_t FD2 : 1; - __IO uint16_t FD3 : 1; - __IO uint16_t FD4 : 1; - __IO uint16_t FD5 : 1; - __IO uint16_t FD6 : 1; - __IO uint16_t FD7 : 1; - __IO uint16_t FD8 : 1; - __IO uint16_t FD9 : 1; - __IO uint16_t FD10 : 1; - __IO uint16_t FD11 : 1; - __IO uint16_t FD12 : 1; - __IO uint16_t FD13 : 1; - __IO uint16_t FD14 : 1; - __IO uint16_t FD15 : 1; -} stc_mfs47_i2c_fbyte_field_t; - -typedef struct stc_mfs47_i2c_fbyte1_field -{ - __IO uint8_t FD0 : 1; - __IO uint8_t FD1 : 1; - __IO uint8_t FD2 : 1; - __IO uint8_t FD3 : 1; - __IO uint8_t FD4 : 1; - __IO uint8_t FD5 : 1; - __IO uint8_t FD6 : 1; - __IO uint8_t FD7 : 1; -} stc_mfs47_i2c_fbyte1_field_t; - -typedef struct stc_mfs47_i2c_fbyte2_field -{ - __IO uint8_t FD8 : 1; - __IO uint8_t FD9 : 1; - __IO uint8_t FD10 : 1; - __IO uint8_t FD11 : 1; - __IO uint8_t FD12 : 1; - __IO uint8_t FD13 : 1; - __IO uint8_t FD14 : 1; - __IO uint8_t FD15 : 1; -} stc_mfs47_i2c_fbyte2_field_t; - -/****************************************************************************** - * MFS_NFC_MODULE - ******************************************************************************/ -/* MFS_NFC_MODULE register bit fields */ -typedef struct stc_mfs_nfc_i2cdnf_field -{ - __IO uint16_t I2CDNF00 : 1; - __IO uint16_t I2CDNF01 : 1; - __IO uint16_t I2CDNF10 : 1; - __IO uint16_t I2CDNF11 : 1; - __IO uint16_t I2CDNF20 : 1; - __IO uint16_t I2CDNF21 : 1; - __IO uint16_t I2CDNF30 : 1; - __IO uint16_t I2CDNF31 : 1; - __IO uint16_t I2CDNF40 : 1; - __IO uint16_t I2CDNF41 : 1; - __IO uint16_t I2CDNF50 : 1; - __IO uint16_t I2CDNF51 : 1; - __IO uint16_t I2CDNF60 : 1; - __IO uint16_t I2CDNF61 : 1; - __IO uint16_t I2CDNF70 : 1; - __IO uint16_t I2CDNF71 : 1; -} stc_mfs_nfc_i2cdnf_field_t; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC_MODULE register bit fields */ -typedef struct stc_crc_crccr_field -{ - __IO uint8_t INIT : 1; - __IO uint8_t CRC32 : 1; - __IO uint8_t LTLEND : 1; - __IO uint8_t LSBFST : 1; - __IO uint8_t CRCLTE : 1; - __IO uint8_t CRCLSF : 1; - __IO uint8_t FXOR : 1; -} stc_crc_crccr_field_t; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* WC_MODULE register bit fields */ -typedef struct stc_wc_wcrd_field -{ - __IO uint8_t CTR0 : 1; - __IO uint8_t CTR1 : 1; - __IO uint8_t CTR2 : 1; - __IO uint8_t CTR3 : 1; - __IO uint8_t CTR4 : 1; - __IO uint8_t CTR5 : 1; -} stc_wc_wcrd_field_t; - -typedef struct stc_wc_wcrl_field -{ - __IO uint8_t RLC0 : 1; - __IO uint8_t RLC1 : 1; - __IO uint8_t RLC2 : 1; - __IO uint8_t RLC3 : 1; - __IO uint8_t RLC4 : 1; - __IO uint8_t RLC5 : 1; -} stc_wc_wcrl_field_t; - -typedef struct stc_wc_wccr_field -{ - __IO uint8_t WCIF : 1; - __IO uint8_t WCIE : 1; - __IO uint8_t CS0 : 1; - __IO uint8_t CS1 : 1; - uint8_t RESERVED1 : 2; - __IO uint8_t WCOP : 1; - __IO uint8_t WCEN : 1; -} stc_wc_wccr_field_t; - -typedef struct stc_wc_clk_sel_field -{ - __IO uint16_t SEL_IN : 1; - uint16_t RESERVED1 : 7; - __IO uint16_t SEL_OUT : 1; -} stc_wc_clk_sel_field_t; - -typedef struct stc_wc_clk_en_field -{ - __IO uint8_t CLK_EN : 1; - __IO uint8_t CLK_EN_R : 1; -} stc_wc_clk_en_field_t; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* EXBUS_MODULE register bit fields */ -typedef struct stc_exbus_mode0_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode0_field_t; - -typedef struct stc_exbus_mode1_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode1_field_t; - -typedef struct stc_exbus_mode2_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode2_field_t; - -typedef struct stc_exbus_mode3_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode3_field_t; - -typedef struct stc_exbus_mode4_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode4_field_t; - -typedef struct stc_exbus_mode5_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode5_field_t; - -typedef struct stc_exbus_mode6_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode6_field_t; - -typedef struct stc_exbus_mode7_field -{ - __IO uint32_t WDTH0 : 1; - __IO uint32_t WDTH1 : 1; - __IO uint32_t RBMON : 1; - __IO uint32_t WEOFF : 1; - __IO uint32_t NAND : 1; - __IO uint32_t PAGE : 1; - __IO uint32_t RDY : 1; - __IO uint32_t SHRTDOUT : 1; - __IO uint32_t MPXMODE : 1; - __IO uint32_t ALEINV : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t MPXDOFF : 1; - __IO uint32_t MPXCSOF : 1; - __IO uint32_t MOEXEUP : 1; -} stc_exbus_mode7_field_t; - -typedef struct stc_exbus_tim0_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim0_field_t; - -typedef struct stc_exbus_tim1_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim1_field_t; - -typedef struct stc_exbus_tim2_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim2_field_t; - -typedef struct stc_exbus_tim3_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim3_field_t; - -typedef struct stc_exbus_tim4_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim4_field_t; - -typedef struct stc_exbus_tim5_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim5_field_t; - -typedef struct stc_exbus_tim6_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim6_field_t; - -typedef struct stc_exbus_tim7_field -{ - __IO uint32_t RACC0 : 1; - __IO uint32_t RACC1 : 1; - __IO uint32_t RACC2 : 1; - __IO uint32_t RACC3 : 1; - __IO uint32_t RADC0 : 1; - __IO uint32_t RADC1 : 1; - __IO uint32_t RADC2 : 1; - __IO uint32_t RADC3 : 1; - __IO uint32_t FRADC0 : 1; - __IO uint32_t FRADC1 : 1; - __IO uint32_t FRADC2 : 1; - __IO uint32_t FRADC3 : 1; - __IO uint32_t RIDLC0 : 1; - __IO uint32_t RIDLC1 : 1; - __IO uint32_t RIDLC2 : 1; - __IO uint32_t RIDLC3 : 1; - __IO uint32_t WACC0 : 1; - __IO uint32_t WACC1 : 1; - __IO uint32_t WACC2 : 1; - __IO uint32_t WACC3 : 1; - __IO uint32_t WADC0 : 1; - __IO uint32_t WADC1 : 1; - __IO uint32_t WADC2 : 1; - __IO uint32_t WADC3 : 1; - __IO uint32_t WWEC0 : 1; - __IO uint32_t WWEC1 : 1; - __IO uint32_t WWEC2 : 1; - __IO uint32_t WWEC3 : 1; - __IO uint32_t WIDLC0 : 1; - __IO uint32_t WIDLC1 : 1; - __IO uint32_t WIDLC2 : 1; - __IO uint32_t WIDLC3 : 1; -} stc_exbus_tim7_field_t; - -typedef struct stc_exbus_area0_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area0_field_t; - -typedef struct stc_exbus_area1_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area1_field_t; - -typedef struct stc_exbus_area2_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area2_field_t; - -typedef struct stc_exbus_area3_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area3_field_t; - -typedef struct stc_exbus_area4_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area4_field_t; - -typedef struct stc_exbus_area5_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area5_field_t; - -typedef struct stc_exbus_area6_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area6_field_t; - -typedef struct stc_exbus_area7_field -{ - __IO uint32_t ADDR0 : 1; - __IO uint32_t ADDR1 : 1; - __IO uint32_t ADDR2 : 1; - __IO uint32_t ADDR3 : 1; - __IO uint32_t ADDR4 : 1; - __IO uint32_t ADDR5 : 1; - __IO uint32_t ADDR6 : 1; - __IO uint32_t ADDR7 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MASK0 : 1; - __IO uint32_t MASK1 : 1; - __IO uint32_t MASK2 : 1; - __IO uint32_t MASK3 : 1; - __IO uint32_t MASK4 : 1; - __IO uint32_t MASK5 : 1; - __IO uint32_t MASK6 : 1; -} stc_exbus_area7_field_t; - -typedef struct stc_exbus_atim0_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim0_field_t; - -typedef struct stc_exbus_atim1_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim1_field_t; - -typedef struct stc_exbus_atim2_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim2_field_t; - -typedef struct stc_exbus_atim3_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim3_field_t; - -typedef struct stc_exbus_atim4_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim4_field_t; - -typedef struct stc_exbus_atim5_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim5_field_t; - -typedef struct stc_exbus_atim6_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim6_field_t; - -typedef struct stc_exbus_atim7_field -{ - __IO uint16_t ALC0 : 1; - __IO uint16_t ALC1 : 1; - __IO uint16_t ALC2 : 1; - __IO uint16_t ALC3 : 1; - __IO uint16_t ALES0 : 1; - __IO uint16_t ALES1 : 1; - __IO uint16_t ALES2 : 1; - __IO uint16_t ALES3 : 1; - __IO uint16_t ALEW0 : 1; - __IO uint16_t ALEW1 : 1; - __IO uint16_t ALEW2 : 1; - __IO uint16_t ALEW3 : 1; -} stc_exbus_atim7_field_t; - -typedef struct stc_exbus_dclkr_field -{ - __IO uint8_t MDIV0 : 1; - __IO uint8_t MDIV1 : 1; - __IO uint8_t MDIV2 : 1; - __IO uint8_t MDIV3 : 1; - __IO uint8_t MCLKON : 1; -} stc_exbus_dclkr_field_t; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB_MODULE register bit fields */ -typedef struct stc_usb_hcnt_field -{ - __IO uint16_t HOST : 1; - __IO uint16_t URST : 1; - __IO uint16_t SOFIRE : 1; - __IO uint16_t DIRE : 1; - __IO uint16_t CNNIRE : 1; - __IO uint16_t CMPIRE : 1; - __IO uint16_t URIRE : 1; - __IO uint16_t RWKIRE : 1; - __IO uint16_t RETRY : 1; - __IO uint16_t CANCEL : 1; - __IO uint16_t SOFSTEP : 1; -} stc_usb_hcnt_field_t; - -typedef struct stc_usb_hcnt0_field -{ - __IO uint8_t HOST : 1; - __IO uint8_t URST : 1; - __IO uint8_t SOFIRE : 1; - __IO uint8_t DIRE : 1; - __IO uint8_t CNNIRE : 1; - __IO uint8_t CMPIRE : 1; - __IO uint8_t URIRE : 1; - __IO uint8_t RWKIRE : 1; -} stc_usb_hcnt0_field_t; - -typedef struct stc_usb_hcnt1_field -{ - __IO uint8_t RETRY : 1; - __IO uint8_t CANCEL : 1; - __IO uint8_t SOFSTEP : 1; -} stc_usb_hcnt1_field_t; - -typedef struct stc_usb_hirq_field -{ - __IO uint8_t SOFIRQ : 1; - __IO uint8_t DIRQ : 1; - __IO uint8_t CNNIRQ : 1; - __IO uint8_t CMPIRQ : 1; - __IO uint8_t URIRQ : 1; - __IO uint8_t RWKIRQ : 1; - uint8_t RESERVED1 : 1; - __IO uint8_t TCAN : 1; -} stc_usb_hirq_field_t; - -typedef struct stc_usb_herr_field -{ - __IO uint8_t HS0 : 1; - __IO uint8_t HS1 : 1; - __IO uint8_t STUFF : 1; - __IO uint8_t TGERR : 1; - __IO uint8_t CRC : 1; - __IO uint8_t TOUT : 1; - __IO uint8_t RERR : 1; - __IO uint8_t LSTOF : 1; -} stc_usb_herr_field_t; - -typedef struct stc_usb_hstate_field -{ - __IO uint8_t CSTAT : 1; - __IO uint8_t TMODE : 1; - __IO uint8_t SUSP : 1; - __IO uint8_t SOFBUSY : 1; - __IO uint8_t CLKSEL : 1; - __IO uint8_t ALIVE : 1; -} stc_usb_hstate_field_t; - -typedef struct stc_usb_hfcomp_field -{ - __IO uint8_t FRAMECOMP0 : 1; - __IO uint8_t FRAMECOMP1 : 1; - __IO uint8_t FRAMECOMP2 : 1; - __IO uint8_t FRAMECOMP3 : 1; - __IO uint8_t FRAMECOMP4 : 1; - __IO uint8_t FRAMECOMP5 : 1; - __IO uint8_t FRAMECOMP6 : 1; - __IO uint8_t FRAMECOMP7 : 1; -} stc_usb_hfcomp_field_t; - -typedef struct stc_usb_hrtimer_field -{ - __IO uint16_t RTIMER0 : 1; - __IO uint16_t RTIMER1 : 1; - __IO uint16_t RTIMER2 : 1; - __IO uint16_t RTIMER3 : 1; - __IO uint16_t RTIMER4 : 1; - __IO uint16_t RTIMER5 : 1; - __IO uint16_t RTIMER6 : 1; - __IO uint16_t RTIMER7 : 1; - __IO uint16_t RTIMER8 : 1; - __IO uint16_t RTIMER9 : 1; - __IO uint16_t RTIMER10 : 1; - __IO uint16_t RTIMER11 : 1; - __IO uint16_t RTIMER12 : 1; - __IO uint16_t RTIMER13 : 1; - __IO uint16_t RTIMER14 : 1; - __IO uint16_t RTIMER15 : 1; -} stc_usb_hrtimer_field_t; - -typedef struct stc_usb_hrtimer0_field -{ - __IO uint8_t RTIMER00 : 1; - __IO uint8_t RTIMER01 : 1; - __IO uint8_t RTIMER02 : 1; - __IO uint8_t RTIMER03 : 1; - __IO uint8_t RTIMER04 : 1; - __IO uint8_t RTIMER05 : 1; - __IO uint8_t RTIMER06 : 1; - __IO uint8_t RTIMER07 : 1; -} stc_usb_hrtimer0_field_t; - -typedef struct stc_usb_hrtimer1_field -{ - __IO uint8_t RTIMER10 : 1; - __IO uint8_t RTIMER11 : 1; - __IO uint8_t RTIMER12 : 1; - __IO uint8_t RTIMER13 : 1; - __IO uint8_t RTIMER14 : 1; - __IO uint8_t RTIMER15 : 1; - __IO uint8_t RTIMER16 : 1; - __IO uint8_t RTIMER17 : 1; -} stc_usb_hrtimer1_field_t; - -typedef struct stc_usb_hrtimer2_field -{ - __IO uint8_t RTIMER20 : 1; - __IO uint8_t RTIMER21 : 1; - __IO uint8_t RTIMER22 : 1; -} stc_usb_hrtimer2_field_t; - -typedef struct stc_usb_hadr_field -{ - __IO uint8_t ADDRESS0 : 1; - __IO uint8_t ADDRESS1 : 1; - __IO uint8_t ADDRESS2 : 1; - __IO uint8_t ADDRESS3 : 1; - __IO uint8_t ADDRESS4 : 1; - __IO uint8_t ADDRESS5 : 1; - __IO uint8_t ADDRESS6 : 1; -} stc_usb_hadr_field_t; - -typedef struct stc_usb_heof_field -{ - __IO uint16_t EOF0 : 1; - __IO uint16_t EOF1 : 1; - __IO uint16_t EOF2 : 1; - __IO uint16_t EOF3 : 1; - __IO uint16_t EOF4 : 1; - __IO uint16_t EOF5 : 1; - __IO uint16_t EOF6 : 1; - __IO uint16_t EOF7 : 1; - __IO uint16_t EOF8 : 1; - __IO uint16_t EOF9 : 1; - __IO uint16_t EOF10 : 1; - __IO uint16_t EOF11 : 1; - __IO uint16_t EOF12 : 1; - __IO uint16_t EOF13 : 1; - __IO uint16_t EOF14 : 1; - __IO uint16_t EOF15 : 1; -} stc_usb_heof_field_t; - -typedef struct stc_usb_heof0_field -{ - __IO uint8_t EOF00 : 1; - __IO uint8_t EOF01 : 1; - __IO uint8_t EOF02 : 1; - __IO uint8_t EOF03 : 1; - __IO uint8_t EOF04 : 1; - __IO uint8_t EOF05 : 1; - __IO uint8_t EOF06 : 1; - __IO uint8_t EOF07 : 1; -} stc_usb_heof0_field_t; - -typedef struct stc_usb_heof1_field -{ - __IO uint8_t EOF10 : 1; - __IO uint8_t EOF11 : 1; - __IO uint8_t EOF12 : 1; - __IO uint8_t EOF13 : 1; - __IO uint8_t EOF14 : 1; - __IO uint8_t EOF15 : 1; -} stc_usb_heof1_field_t; - -typedef struct stc_usb_hframe_field -{ - __IO uint16_t FRAME0 : 1; - __IO uint16_t FRAME1 : 1; - __IO uint16_t FRAME2 : 1; - __IO uint16_t FRAME3 : 1; - __IO uint16_t FRAME4 : 1; - __IO uint16_t FRAME5 : 1; - __IO uint16_t FRAME6 : 1; - __IO uint16_t FRAME7 : 1; - __IO uint16_t FRAME8 : 1; - __IO uint16_t FRAME9 : 1; - __IO uint16_t FRAME10 : 1; -} stc_usb_hframe_field_t; - -typedef struct stc_usb_hframe0_field -{ - __IO uint8_t FRAME00 : 1; - __IO uint8_t FRAME01 : 1; - __IO uint8_t FRAME02 : 1; - __IO uint8_t FRAME03 : 1; - __IO uint8_t FRAME04 : 1; - __IO uint8_t FRAME05 : 1; - __IO uint8_t FRAME06 : 1; - __IO uint8_t FRAME07 : 1; -} stc_usb_hframe0_field_t; - -typedef struct stc_usb_hframe1_field -{ - __IO uint8_t FRAME10 : 1; - __IO uint8_t FRAME11 : 1; - __IO uint8_t FRAME12 : 1; - __IO uint8_t FRAME13 : 1; -} stc_usb_hframe1_field_t; - -typedef struct stc_usb_htoken_field -{ - __IO uint8_t ENDPT0 : 1; - __IO uint8_t ENDPT1 : 1; - __IO uint8_t ENDPT2 : 1; - __IO uint8_t ENDPT3 : 1; - __IO uint8_t TKNEN0 : 1; - __IO uint8_t TKNEN1 : 1; - __IO uint8_t TKNEN2 : 1; - __IO uint8_t TGGL : 1; -} stc_usb_htoken_field_t; - -typedef struct stc_usb_udcc_field -{ - __IO uint16_t PWC : 1; - __IO uint16_t RFBK : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t STALCLREN : 1; - __IO uint16_t USTP : 1; - __IO uint16_t HCONX : 1; - __IO uint16_t RESUM : 1; - __IO uint16_t RST : 1; -} stc_usb_udcc_field_t; - -typedef struct stc_usb_ep0c_field -{ - __IO uint16_t PKS00 : 1; - __IO uint16_t PKS01 : 1; - __IO uint16_t PKS02 : 1; - __IO uint16_t PKS03 : 1; - __IO uint16_t PKS04 : 1; - __IO uint16_t PKS05 : 1; - __IO uint16_t PKS06 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; -} stc_usb_ep0c_field_t; - -typedef struct stc_usb_ep1c_field -{ - __IO uint16_t PKS10 : 1; - __IO uint16_t PKS11 : 1; - __IO uint16_t PKS12 : 1; - __IO uint16_t PKS13 : 1; - __IO uint16_t PKS14 : 1; - __IO uint16_t PKS15 : 1; - __IO uint16_t PKS16 : 1; - __IO uint16_t PKS17 : 1; - __IO uint16_t PKS18 : 1; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep1c_field_t; - -typedef struct stc_usb_ep2c_field -{ - __IO uint16_t PKS20 : 1; - __IO uint16_t PKS21 : 1; - __IO uint16_t PKS22 : 1; - __IO uint16_t PKS23 : 1; - __IO uint16_t PKS24 : 1; - __IO uint16_t PKS25 : 1; - __IO uint16_t PKS26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep2c_field_t; - -typedef struct stc_usb_ep3c_field -{ - __IO uint16_t PKS30 : 1; - __IO uint16_t PKS31 : 1; - __IO uint16_t PKS32 : 1; - __IO uint16_t PKS33 : 1; - __IO uint16_t PKS34 : 1; - __IO uint16_t PKS35 : 1; - __IO uint16_t PKS36 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep3c_field_t; - -typedef struct stc_usb_ep4c_field -{ - __IO uint16_t PKS40 : 1; - __IO uint16_t PKS41 : 1; - __IO uint16_t PKS42 : 1; - __IO uint16_t PKS43 : 1; - __IO uint16_t PKS44 : 1; - __IO uint16_t PKS45 : 1; - __IO uint16_t PKS46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep4c_field_t; - -typedef struct stc_usb_ep5c_field -{ - __IO uint16_t PKS50 : 1; - __IO uint16_t PKS51 : 1; - __IO uint16_t PKS52 : 1; - __IO uint16_t PKS53 : 1; - __IO uint16_t PKS54 : 1; - __IO uint16_t PKS55 : 1; - __IO uint16_t PKS56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t STAL : 1; - __IO uint16_t NULE : 1; - __IO uint16_t DMAE : 1; - __IO uint16_t DIR : 1; - __IO uint16_t TYPE0 : 1; - __IO uint16_t TYPE1 : 1; - __IO uint16_t EPEN : 1; -} stc_usb_ep5c_field_t; - -typedef struct stc_usb_tmsp_field -{ - __IO uint16_t TMSP0 : 1; - __IO uint16_t TMSP1 : 1; - __IO uint16_t TMSP2 : 1; - __IO uint16_t TMSP3 : 1; - __IO uint16_t TMSP4 : 1; - __IO uint16_t TMSP5 : 1; - __IO uint16_t TMSP6 : 1; - __IO uint16_t TMSP7 : 1; - __IO uint16_t TMSP8 : 1; - __IO uint16_t TMSP9 : 1; - __IO uint16_t TMSP10 : 1; -} stc_usb_tmsp_field_t; - -typedef struct stc_usb_udcs_field -{ - __IO uint8_t CONF : 1; - __IO uint8_t SETP : 1; - __IO uint8_t WKUP : 1; - __IO uint8_t BRST : 1; - __IO uint8_t SOF : 1; - __IO uint8_t SUSP : 1; -} stc_usb_udcs_field_t; - -typedef struct stc_usb_udcie_field -{ - __IO uint8_t CONFIE : 1; - __IO uint8_t CONFN : 1; - __IO uint8_t WKUPIE : 1; - __IO uint8_t BRSTIE : 1; - __IO uint8_t SOFIE : 1; - __IO uint8_t SUSPIE : 1; -} stc_usb_udcie_field_t; - -typedef struct stc_usb_ep0is_field -{ - uint16_t RESERVED1 : 10; - __IO uint16_t DRQI : 1; - uint16_t RESERVED2 : 3; - __IO uint16_t DRQIIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0is_field_t; - -typedef struct stc_usb_ep0os_field -{ - __IO uint16_t SIZE0 : 1; - __IO uint16_t SIZE1 : 1; - __IO uint16_t SIZE2 : 1; - __IO uint16_t SIZE3 : 1; - __IO uint16_t SIZE4 : 1; - __IO uint16_t SIZE5 : 1; - __IO uint16_t SIZE6 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQO : 1; - uint16_t RESERVED2 : 2; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQOIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep0os_field_t; - -typedef struct stc_usb_ep1s_field -{ - __IO uint16_t SIZE10 : 1; - __IO uint16_t SIZE11 : 1; - __IO uint16_t SIZE12 : 1; - __IO uint16_t SIZE13 : 1; - __IO uint16_t SIZE14 : 1; - __IO uint16_t SIZE15 : 1; - __IO uint16_t SIZE16 : 1; - __IO uint16_t SIZE17 : 1; - __IO uint16_t SIZE18 : 1; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED1 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep1s_field_t; - -typedef struct stc_usb_ep2s_field -{ - __IO uint16_t SIZE20 : 1; - __IO uint16_t SIZE21 : 1; - __IO uint16_t SIZE22 : 1; - __IO uint16_t SIZE23 : 1; - __IO uint16_t SIZE24 : 1; - __IO uint16_t SIZE25 : 1; - __IO uint16_t SIZE26 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep2s_field_t; - -typedef struct stc_usb_ep4s_field -{ - __IO uint16_t SIZE40 : 1; - __IO uint16_t SIZE41 : 1; - __IO uint16_t SIZE42 : 1; - __IO uint16_t SIZE43 : 1; - __IO uint16_t SIZE44 : 1; - __IO uint16_t SIZE45 : 1; - __IO uint16_t SIZE46 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep4s_field_t; - -typedef struct stc_usb_ep5s_field -{ - __IO uint16_t SIZE50 : 1; - __IO uint16_t SIZE51 : 1; - __IO uint16_t SIZE52 : 1; - __IO uint16_t SIZE53 : 1; - __IO uint16_t SIZE54 : 1; - __IO uint16_t SIZE55 : 1; - __IO uint16_t SIZE56 : 1; - uint16_t RESERVED1 : 2; - __IO uint16_t SPK : 1; - __IO uint16_t DRQ : 1; - __IO uint16_t BUSY : 1; - uint16_t RESERVED2 : 1; - __IO uint16_t SPKIE : 1; - __IO uint16_t DRQIE : 1; - __IO uint16_t BFINI : 1; -} stc_usb_ep5s_field_t; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMAC_MODULE register bit fields */ -typedef struct stc_dmac_dmacr_field -{ - uint32_t RESERVED1 : 24; - __IO uint32_t DH0 : 1; - __IO uint32_t DH1 : 1; - __IO uint32_t DH2 : 1; - __IO uint32_t DH3 : 1; - __IO uint32_t PR : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t DS : 1; - __IO uint32_t DE : 1; -} stc_dmac_dmacr_field_t; - -typedef struct stc_dmac_dmaca0_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca0_field_t; - -typedef struct stc_dmac_dmacb0_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb0_field_t; - -typedef struct stc_dmac_dmaca1_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca1_field_t; - -typedef struct stc_dmac_dmacb1_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb1_field_t; - -typedef struct stc_dmac_dmaca2_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca2_field_t; - -typedef struct stc_dmac_dmacb2_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb2_field_t; - -typedef struct stc_dmac_dmaca3_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca3_field_t; - -typedef struct stc_dmac_dmacb3_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb3_field_t; - -typedef struct stc_dmac_dmaca4_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca4_field_t; - -typedef struct stc_dmac_dmacb4_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb4_field_t; - -typedef struct stc_dmac_dmaca5_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca5_field_t; - -typedef struct stc_dmac_dmacb5_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb5_field_t; - -typedef struct stc_dmac_dmaca6_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca6_field_t; - -typedef struct stc_dmac_dmacb6_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb6_field_t; - -typedef struct stc_dmac_dmaca7_field -{ - __IO uint32_t TC0 : 1; - __IO uint32_t TC1 : 1; - __IO uint32_t TC2 : 1; - __IO uint32_t TC3 : 1; - __IO uint32_t TC4 : 1; - __IO uint32_t TC5 : 1; - __IO uint32_t TC6 : 1; - __IO uint32_t TC7 : 1; - __IO uint32_t TC8 : 1; - __IO uint32_t TC9 : 1; - __IO uint32_t TC10 : 1; - __IO uint32_t TC11 : 1; - __IO uint32_t TC12 : 1; - __IO uint32_t TC13 : 1; - __IO uint32_t TC14 : 1; - __IO uint32_t TC15 : 1; - __IO uint32_t BC0 : 1; - __IO uint32_t BC1 : 1; - __IO uint32_t BC2 : 1; - __IO uint32_t BC3 : 1; - uint32_t RESERVED1 : 3; - __IO uint32_t IS0 : 1; - __IO uint32_t IS1 : 1; - __IO uint32_t IS2 : 1; - __IO uint32_t IS3 : 1; - __IO uint32_t IS4 : 1; - __IO uint32_t IS5 : 1; - __IO uint32_t ST : 1; - __IO uint32_t PB : 1; - __IO uint32_t EB : 1; -} stc_dmac_dmaca7_field_t; - -typedef struct stc_dmac_dmacb7_field -{ - __IO uint32_t EM : 1; - uint32_t RESERVED1 : 15; - __IO uint32_t SS0 : 1; - __IO uint32_t SS1 : 1; - __IO uint32_t SS2 : 1; - __IO uint32_t CI : 1; - __IO uint32_t EI : 1; - __IO uint32_t RD : 1; - __IO uint32_t RS : 1; - __IO uint32_t RC : 1; - __IO uint32_t FD : 1; - __IO uint32_t FS : 1; - __IO uint32_t TW0 : 1; - __IO uint32_t TW1 : 1; - __IO uint32_t MS0 : 1; - __IO uint32_t MS1 : 1; -} stc_dmac_dmacb7_field_t; - -/****************************************************************************** - * ETHERNET_MAC_MODULE - ******************************************************************************/ -/* ETHERNET_MAC_MODULE register bit fields */ -typedef struct stc_ethernet_mac_mcr_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t RE : 1; - __IO uint32_t TE : 1; - __IO uint32_t DC : 1; - __IO uint32_t BL0 : 1; - __IO uint32_t BL1 : 1; - __IO uint32_t ACS : 1; - __IO uint32_t LUD : 1; - __IO uint32_t DR : 1; - __IO uint32_t IPC : 1; - __IO uint32_t DM : 1; - __IO uint32_t LM : 1; - __IO uint32_t DO : 1; - __IO uint32_t FES : 1; - __IO uint32_t PS : 1; - __IO uint32_t DCRS : 1; - __IO uint32_t IFG0 : 1; - __IO uint32_t IFG1 : 1; - __IO uint32_t IFG2 : 1; - __IO uint32_t JE : 1; - __IO uint32_t BE : 1; - __IO uint32_t JD : 1; - __IO uint32_t WD : 1; - __IO uint32_t TC : 1; - __IO uint32_t CST : 1; -} stc_ethernet_mac_mcr_field_t; - -typedef struct stc_ethernet_mac_mffr_field -{ - __IO uint32_t PR : 1; - __IO uint32_t HUC : 1; - __IO uint32_t HMC : 1; - __IO uint32_t DAIF : 1; - __IO uint32_t PM : 1; - __IO uint32_t DB : 1; - __IO uint32_t PCF0 : 1; - __IO uint32_t PCF1 : 1; - __IO uint32_t SAIF : 1; - __IO uint32_t SAF : 1; - __IO uint32_t HPF : 1; - uint32_t RESERVED1 :20; - __IO uint32_t RA : 1; -} stc_ethernet_mac_mffr_field_t; - -typedef struct stc_ethernet_mac_mhtrh_field -{ - __IO uint32_t HTH0 : 1; - __IO uint32_t HTH1 : 1; - __IO uint32_t HTH2 : 1; - __IO uint32_t HTH3 : 1; - __IO uint32_t HTH4 : 1; - __IO uint32_t HTH5 : 1; - __IO uint32_t HTH6 : 1; - __IO uint32_t HTH7 : 1; - __IO uint32_t HTH8 : 1; - __IO uint32_t HTH9 : 1; - __IO uint32_t HTH10 : 1; - __IO uint32_t HTH11 : 1; - __IO uint32_t HTH12 : 1; - __IO uint32_t HTH13 : 1; - __IO uint32_t HTH14 : 1; - __IO uint32_t HTH15 : 1; - __IO uint32_t HTH16 : 1; - __IO uint32_t HTH17 : 1; - __IO uint32_t HTH18 : 1; - __IO uint32_t HTH19 : 1; - __IO uint32_t HTH20 : 1; - __IO uint32_t HTH21 : 1; - __IO uint32_t HTH22 : 1; - __IO uint32_t HTH23 : 1; - __IO uint32_t HTH24 : 1; - __IO uint32_t HTH25 : 1; - __IO uint32_t HTH26 : 1; - __IO uint32_t HTH27 : 1; - __IO uint32_t HTH28 : 1; - __IO uint32_t HTH29 : 1; - __IO uint32_t HTH30 : 1; - __IO uint32_t HTH31 : 1; -} stc_ethernet_mac_mhtrh_field_t; - -typedef struct stc_ethernet_mac_mhtrl_field -{ - __IO uint32_t HTL0 : 1; - __IO uint32_t HTL1 : 1; - __IO uint32_t HTL2 : 1; - __IO uint32_t HTL3 : 1; - __IO uint32_t HTL4 : 1; - __IO uint32_t HTL5 : 1; - __IO uint32_t HTL6 : 1; - __IO uint32_t HTL7 : 1; - __IO uint32_t HTL8 : 1; - __IO uint32_t HTL9 : 1; - __IO uint32_t HTL10 : 1; - __IO uint32_t HTL11 : 1; - __IO uint32_t HTL12 : 1; - __IO uint32_t HTL13 : 1; - __IO uint32_t HTL14 : 1; - __IO uint32_t HTL15 : 1; - __IO uint32_t HTL16 : 1; - __IO uint32_t HTL17 : 1; - __IO uint32_t HTL18 : 1; - __IO uint32_t HTL19 : 1; - __IO uint32_t HTL20 : 1; - __IO uint32_t HTL21 : 1; - __IO uint32_t HTL22 : 1; - __IO uint32_t HTL23 : 1; - __IO uint32_t HTL24 : 1; - __IO uint32_t HTL25 : 1; - __IO uint32_t HTL26 : 1; - __IO uint32_t HTL27 : 1; - __IO uint32_t HTL28 : 1; - __IO uint32_t HTL29 : 1; - __IO uint32_t HTL30 : 1; - __IO uint32_t HTL31 : 1; -} stc_ethernet_mac_mhtrl_field_t; - -typedef struct stc_ethernet_mac_gar_field -{ - __IO uint32_t GB : 1; - __IO uint32_t GW : 1; - __IO uint32_t CR0 : 1; - __IO uint32_t CR1 : 1; - __IO uint32_t CR2 : 1; - __IO uint32_t CR3 : 1; - __IO uint32_t GR0 : 1; - __IO uint32_t GR1 : 1; - __IO uint32_t GR2 : 1; - __IO uint32_t GR3 : 1; - __IO uint32_t GR4 : 1; - __IO uint32_t PA0 : 1; - __IO uint32_t PA1 : 1; - __IO uint32_t PA2 : 1; - __IO uint32_t PA3 : 1; - __IO uint32_t PA4 : 1; -} stc_ethernet_mac_gar_field_t; - -typedef struct stc_ethernet_mac_gdr_field -{ - __IO uint32_t GD0 : 1; - __IO uint32_t GD1 : 1; - __IO uint32_t GD2 : 1; - __IO uint32_t GD3 : 1; - __IO uint32_t GD4 : 1; - __IO uint32_t GD5 : 1; - __IO uint32_t GD6 : 1; - __IO uint32_t GD7 : 1; - __IO uint32_t GD8 : 1; - __IO uint32_t GD9 : 1; - __IO uint32_t GD10 : 1; - __IO uint32_t GD11 : 1; - __IO uint32_t GD12 : 1; - __IO uint32_t GD13 : 1; - __IO uint32_t GD14 : 1; - __IO uint32_t GD15 : 1; -} stc_ethernet_mac_gdr_field_t; - -typedef struct stc_ethernet_mac_fcr_field -{ - __IO uint32_t FCB_BPA : 1; - __IO uint32_t TFE : 1; - __IO uint32_t RFE : 1; - __IO uint32_t UP : 1; - __IO uint32_t PLT0 : 1; - __IO uint32_t PLT1 : 1; - uint32_t RESERVED1 : 1; - __IO uint32_t DZPQ : 1; - uint32_t RESERVED2 : 8; - __IO uint32_t PT0 : 1; - __IO uint32_t PT1 : 1; - __IO uint32_t PT2 : 1; - __IO uint32_t PT3 : 1; - __IO uint32_t PT4 : 1; - __IO uint32_t PT5 : 1; - __IO uint32_t PT6 : 1; - __IO uint32_t PT7 : 1; - __IO uint32_t PT8 : 1; - __IO uint32_t PT9 : 1; - __IO uint32_t PT10 : 1; - __IO uint32_t PT11 : 1; - __IO uint32_t PT12 : 1; - __IO uint32_t PT13 : 1; - __IO uint32_t PT14 : 1; - __IO uint32_t PT15 : 1; -} stc_ethernet_mac_fcr_field_t; - -typedef struct stc_ethernet_mac_vtr_field -{ - __IO uint32_t VL0 : 1; - __IO uint32_t VL1 : 1; - __IO uint32_t VL2 : 1; - __IO uint32_t VL3 : 1; - __IO uint32_t VL4 : 1; - __IO uint32_t VL5 : 1; - __IO uint32_t VL6 : 1; - __IO uint32_t VL7 : 1; - __IO uint32_t VL8 : 1; - __IO uint32_t VL9 : 1; - __IO uint32_t VL10 : 1; - __IO uint32_t VL11 : 1; - __IO uint32_t VL12 : 1; - __IO uint32_t VL13 : 1; - __IO uint32_t VL14 : 1; - __IO uint32_t VL15 : 1; - __IO uint32_t ETV : 1; -} stc_ethernet_mac_vtr_field_t; - -typedef struct stc_ethernet_mac_rwffr_field -{ - __IO uint32_t RWFFR0 : 1; - __IO uint32_t RWFFR1 : 1; - __IO uint32_t RWFFR2 : 1; - __IO uint32_t RWFFR3 : 1; - __IO uint32_t RWFFR4 : 1; - __IO uint32_t RWFFR5 : 1; - __IO uint32_t RWFFR6 : 1; - __IO uint32_t RWFFR7 : 1; - __IO uint32_t RWFFR8 : 1; - __IO uint32_t RWFFR9 : 1; - __IO uint32_t RWFFR10 : 1; - __IO uint32_t RWFFR11 : 1; - __IO uint32_t RWFFR12 : 1; - __IO uint32_t RWFFR13 : 1; - __IO uint32_t RWFFR14 : 1; - __IO uint32_t RWFFR15 : 1; - __IO uint32_t RWFFR16 : 1; - __IO uint32_t RWFFR17 : 1; - __IO uint32_t RWFFR18 : 1; - __IO uint32_t RWFFR19 : 1; - __IO uint32_t RWFFR20 : 1; - __IO uint32_t RWFFR21 : 1; - __IO uint32_t RWFFR22 : 1; - __IO uint32_t RWFFR23 : 1; - __IO uint32_t RWFFR24 : 1; - __IO uint32_t RWFFR25 : 1; - __IO uint32_t RWFFR26 : 1; - __IO uint32_t RWFFR27 : 1; - __IO uint32_t RWFFR28 : 1; - __IO uint32_t RWFFR29 : 1; - __IO uint32_t RWFFR30 : 1; - __IO uint32_t RWFFR31 : 1; -} stc_ethernet_mac_rwffr_field_t; - -typedef struct stc_ethernet_mac_pmtr_field -{ - __IO uint32_t PD : 1; - __IO uint32_t MPE : 1; - __IO uint32_t WFE : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t MPR : 1; - __IO uint32_t WPR : 1; - uint32_t RESERVED2 : 2; - __IO uint32_t GU : 1; - uint32_t RESERVED3 :21; - __IO uint32_t RWFFRPR : 1; -} stc_ethernet_mac_pmtr_field_t; - -typedef struct stc_ethernet_mac_lpicsr_field -{ - __IO uint32_t TLPIEN : 1; - __IO uint32_t TLPIEX : 1; - __IO uint32_t RLPIEN : 1; - __IO uint32_t RLPIEX : 1; - uint32_t RESERVED1 : 4; - __IO uint32_t TLPIST : 1; - __IO uint32_t RLPIST : 1; - uint32_t RESERVED2 : 6; - __IO uint32_t LPIEN : 1; - __IO uint32_t PLS : 1; - __IO uint32_t PLSEN : 1; - __IO uint32_t LPITXA : 1; -} stc_ethernet_mac_lpicsr_field_t; - -typedef struct stc_ethernet_mac_lpitcr_field -{ - __IO uint32_t TWT0 : 1; - __IO uint32_t TWT1 : 1; - __IO uint32_t TWT2 : 1; - __IO uint32_t TWT3 : 1; - __IO uint32_t TWT4 : 1; - __IO uint32_t TWT5 : 1; - __IO uint32_t TWT6 : 1; - __IO uint32_t TWT7 : 1; - __IO uint32_t TWT8 : 1; - __IO uint32_t TWT9 : 1; - __IO uint32_t TWT10 : 1; - __IO uint32_t TWT11 : 1; - __IO uint32_t TWT12 : 1; - __IO uint32_t TWT13 : 1; - __IO uint32_t TWT14 : 1; - __IO uint32_t TWT15 : 1; - __IO uint32_t LIT0 : 1; - __IO uint32_t LIT1 : 1; - __IO uint32_t LIT2 : 1; - __IO uint32_t LIT3 : 1; - __IO uint32_t LIT4 : 1; - __IO uint32_t LIT5 : 1; - __IO uint32_t LIT6 : 1; - __IO uint32_t LIT7 : 1; - __IO uint32_t LIT8 : 1; - __IO uint32_t LIT9 : 1; -} stc_ethernet_mac_lpitcr_field_t; - -typedef struct stc_ethernet_mac_isr_field -{ - __IO uint32_t RGIS : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t PIS : 1; - __IO uint32_t MIS : 1; - __IO uint32_t RIS : 1; - __IO uint32_t TIS : 1; - __IO uint32_t COIS : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t TSIS : 1; - __IO uint32_t LPIIS : 1; -} stc_ethernet_mac_isr_field_t; - -typedef struct stc_ethernet_mac_imr_field -{ - __IO uint32_t RGIM : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t PIM : 1; - uint32_t RESERVED2 : 5; - __IO uint32_t TSIM : 1; - __IO uint32_t LPIIM : 1; -} stc_ethernet_mac_imr_field_t; - -typedef struct stc_ethernet_mac_mar0h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 :15; - __IO uint32_t MO : 1; -} stc_ethernet_mac_mar0h_field_t; - -typedef struct stc_ethernet_mac_mar0l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar0l_field_t; - -typedef struct stc_ethernet_mac_mar1h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar1h_field_t; - -typedef struct stc_ethernet_mac_mar1l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar1l_field_t; - -typedef struct stc_ethernet_mac_mar2h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar2h_field_t; - -typedef struct stc_ethernet_mac_mar2l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar2l_field_t; - -typedef struct stc_ethernet_mac_mar3h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar3h_field_t; - -typedef struct stc_ethernet_mac_mar3l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar3l_field_t; - -typedef struct stc_ethernet_mac_mar4h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar4h_field_t; - -typedef struct stc_ethernet_mac_mar4l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar4l_field_t; - -typedef struct stc_ethernet_mac_mar5h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar5h_field_t; - -typedef struct stc_ethernet_mac_mar5l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar5l_field_t; - -typedef struct stc_ethernet_mac_mar6h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar6h_field_t; - -typedef struct stc_ethernet_mac_mar6l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar6l_field_t; - -typedef struct stc_ethernet_mac_mar7h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar7h_field_t; - -typedef struct stc_ethernet_mac_mar7l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar7l_field_t; - -typedef struct stc_ethernet_mac_mar8h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar8h_field_t; - -typedef struct stc_ethernet_mac_mar8l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar8l_field_t; - -typedef struct stc_ethernet_mac_mar9h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar9h_field_t; - -typedef struct stc_ethernet_mac_mar9l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar9l_field_t; - -typedef struct stc_ethernet_mac_mar10h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar10h_field_t; - -typedef struct stc_ethernet_mac_mar10l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar10l_field_t; - -typedef struct stc_ethernet_mac_mar11h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar11h_field_t; - -typedef struct stc_ethernet_mac_mar11l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar11l_field_t; - -typedef struct stc_ethernet_mac_mar12h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar12h_field_t; - -typedef struct stc_ethernet_mac_mar12l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar12l_field_t; - -typedef struct stc_ethernet_mac_mar13h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar13h_field_t; - -typedef struct stc_ethernet_mac_mar13l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar13l_field_t; - -typedef struct stc_ethernet_mac_mar14h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar14h_field_t; - -typedef struct stc_ethernet_mac_mar14l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar14l_field_t; - -typedef struct stc_ethernet_mac_mar15h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar15h_field_t; - -typedef struct stc_ethernet_mac_mar15l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar15l_field_t; - -typedef struct stc_ethernet_mac_rgsr_field -{ - __IO uint32_t LM : 1; - __IO uint32_t LSP0 : 1; - __IO uint32_t LSP1 : 1; - __IO uint32_t LS : 1; -} stc_ethernet_mac_rgsr_field_t; - -typedef struct stc_ethernet_mac_tscr_field -{ - __IO uint32_t TSE : 1; - __IO uint32_t TFCU : 1; - __IO uint32_t TSI : 1; - __IO uint32_t TSU : 1; - __IO uint32_t TITE : 1; - __IO uint32_t TARU : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t TSEA : 1; - __IO uint32_t TSDB : 1; - __IO uint32_t TSV2E : 1; - __IO uint32_t TETSP : 1; - __IO uint32_t TSIP6E : 1; - __IO uint32_t TSIP4E : 1; - __IO uint32_t TETSEM : 1; - __IO uint32_t TSMRM : 1; - __IO uint32_t TSPS0 : 1; - __IO uint32_t TSPS1 : 1; - __IO uint32_t TSENMF : 1; - uint32_t RESERVED2 : 5; - __IO uint32_t ATSFC : 1; -} stc_ethernet_mac_tscr_field_t; - -typedef struct stc_ethernet_mac_ssir_field -{ - __IO uint32_t SSINC0 : 1; - __IO uint32_t SSINC1 : 1; - __IO uint32_t SSINC2 : 1; - __IO uint32_t SSINC3 : 1; - __IO uint32_t SSINC4 : 1; - __IO uint32_t SSINC5 : 1; - __IO uint32_t SSINC6 : 1; - __IO uint32_t SSINC7 : 1; -} stc_ethernet_mac_ssir_field_t; - -typedef struct stc_ethernet_mac_stsr_field -{ - __IO uint32_t TSS0 : 1; - __IO uint32_t TSS1 : 1; - __IO uint32_t TSS2 : 1; - __IO uint32_t TSS3 : 1; - __IO uint32_t TSS4 : 1; - __IO uint32_t TSS5 : 1; - __IO uint32_t TSS6 : 1; - __IO uint32_t TSS7 : 1; - __IO uint32_t TSS8 : 1; - __IO uint32_t TSS9 : 1; - __IO uint32_t TSS10 : 1; - __IO uint32_t TSS11 : 1; - __IO uint32_t TSS12 : 1; - __IO uint32_t TSS13 : 1; - __IO uint32_t TSS14 : 1; - __IO uint32_t TSS15 : 1; - __IO uint32_t TSS16 : 1; - __IO uint32_t TSS17 : 1; - __IO uint32_t TSS18 : 1; - __IO uint32_t TSS19 : 1; - __IO uint32_t TSS20 : 1; - __IO uint32_t TSS21 : 1; - __IO uint32_t TSS22 : 1; - __IO uint32_t TSS23 : 1; - __IO uint32_t TSS24 : 1; - __IO uint32_t TSS25 : 1; - __IO uint32_t TSS26 : 1; - __IO uint32_t TSS27 : 1; - __IO uint32_t TSS28 : 1; - __IO uint32_t TSS29 : 1; - __IO uint32_t TSS30 : 1; - __IO uint32_t TSS31 : 1; -} stc_ethernet_mac_stsr_field_t; - -typedef struct stc_ethernet_mac_stnr_field -{ - __IO uint32_t TSSS0 : 1; - __IO uint32_t TSSS1 : 1; - __IO uint32_t TSSS2 : 1; - __IO uint32_t TSSS3 : 1; - __IO uint32_t TSSS4 : 1; - __IO uint32_t TSSS5 : 1; - __IO uint32_t TSSS6 : 1; - __IO uint32_t TSSS7 : 1; - __IO uint32_t TSSS8 : 1; - __IO uint32_t TSSS9 : 1; - __IO uint32_t TSSS10 : 1; - __IO uint32_t TSSS11 : 1; - __IO uint32_t TSSS12 : 1; - __IO uint32_t TSSS13 : 1; - __IO uint32_t TSSS14 : 1; - __IO uint32_t TSSS15 : 1; - __IO uint32_t TSSS16 : 1; - __IO uint32_t TSSS17 : 1; - __IO uint32_t TSSS18 : 1; - __IO uint32_t TSSS19 : 1; - __IO uint32_t TSSS20 : 1; - __IO uint32_t TSSS21 : 1; - __IO uint32_t TSSS22 : 1; - __IO uint32_t TSSS23 : 1; - __IO uint32_t TSSS24 : 1; - __IO uint32_t TSSS25 : 1; - __IO uint32_t TSSS26 : 1; - __IO uint32_t TSSS27 : 1; - __IO uint32_t TSSS28 : 1; - __IO uint32_t TSSS29 : 1; - __IO uint32_t TSSS30 : 1; -} stc_ethernet_mac_stnr_field_t; - -typedef struct stc_ethernet_mac_stsur_field -{ - __IO uint32_t TSS0 : 1; - __IO uint32_t TSS1 : 1; - __IO uint32_t TSS2 : 1; - __IO uint32_t TSS3 : 1; - __IO uint32_t TSS4 : 1; - __IO uint32_t TSS5 : 1; - __IO uint32_t TSS6 : 1; - __IO uint32_t TSS7 : 1; - __IO uint32_t TSS8 : 1; - __IO uint32_t TSS9 : 1; - __IO uint32_t TSS10 : 1; - __IO uint32_t TSS11 : 1; - __IO uint32_t TSS12 : 1; - __IO uint32_t TSS13 : 1; - __IO uint32_t TSS14 : 1; - __IO uint32_t TSS15 : 1; - __IO uint32_t TSS16 : 1; - __IO uint32_t TSS17 : 1; - __IO uint32_t TSS18 : 1; - __IO uint32_t TSS19 : 1; - __IO uint32_t TSS20 : 1; - __IO uint32_t TSS21 : 1; - __IO uint32_t TSS22 : 1; - __IO uint32_t TSS23 : 1; - __IO uint32_t TSS24 : 1; - __IO uint32_t TSS25 : 1; - __IO uint32_t TSS26 : 1; - __IO uint32_t TSS27 : 1; - __IO uint32_t TSS28 : 1; - __IO uint32_t TSS29 : 1; - __IO uint32_t TSS30 : 1; - __IO uint32_t TSS31 : 1; -} stc_ethernet_mac_stsur_field_t; - -typedef struct stc_ethernet_mac_stnur_field -{ - __IO uint32_t TSSS0 : 1; - __IO uint32_t TSSS1 : 1; - __IO uint32_t TSSS2 : 1; - __IO uint32_t TSSS3 : 1; - __IO uint32_t TSSS4 : 1; - __IO uint32_t TSSS5 : 1; - __IO uint32_t TSSS6 : 1; - __IO uint32_t TSSS7 : 1; - __IO uint32_t TSSS8 : 1; - __IO uint32_t TSSS9 : 1; - __IO uint32_t TSSS10 : 1; - __IO uint32_t TSSS11 : 1; - __IO uint32_t TSSS12 : 1; - __IO uint32_t TSSS13 : 1; - __IO uint32_t TSSS14 : 1; - __IO uint32_t TSSS15 : 1; - __IO uint32_t TSSS16 : 1; - __IO uint32_t TSSS17 : 1; - __IO uint32_t TSSS18 : 1; - __IO uint32_t TSSS19 : 1; - __IO uint32_t TSSS20 : 1; - __IO uint32_t TSSS21 : 1; - __IO uint32_t TSSS22 : 1; - __IO uint32_t TSSS23 : 1; - __IO uint32_t TSSS24 : 1; - __IO uint32_t TSSS25 : 1; - __IO uint32_t TSSS26 : 1; - __IO uint32_t TSSS27 : 1; - __IO uint32_t TSSS28 : 1; - __IO uint32_t TSSS29 : 1; - __IO uint32_t TSSS30 : 1; - __IO uint32_t ADDSUB : 1; -} stc_ethernet_mac_stnur_field_t; - -typedef struct stc_ethernet_mac_tsar_field -{ - __IO uint32_t TSAR0 : 1; - __IO uint32_t TSAR1 : 1; - __IO uint32_t TSAR2 : 1; - __IO uint32_t TSAR3 : 1; - __IO uint32_t TSAR4 : 1; - __IO uint32_t TSAR5 : 1; - __IO uint32_t TSAR6 : 1; - __IO uint32_t TSAR7 : 1; - __IO uint32_t TSAR8 : 1; - __IO uint32_t TSAR9 : 1; - __IO uint32_t TSAR10 : 1; - __IO uint32_t TSAR11 : 1; - __IO uint32_t TSAR12 : 1; - __IO uint32_t TSAR13 : 1; - __IO uint32_t TSAR14 : 1; - __IO uint32_t TSAR15 : 1; - __IO uint32_t TSAR16 : 1; - __IO uint32_t TSAR17 : 1; - __IO uint32_t TSAR18 : 1; - __IO uint32_t TSAR19 : 1; - __IO uint32_t TSAR20 : 1; - __IO uint32_t TSAR21 : 1; - __IO uint32_t TSAR22 : 1; - __IO uint32_t TSAR23 : 1; - __IO uint32_t TSAR24 : 1; - __IO uint32_t TSAR25 : 1; - __IO uint32_t TSAR26 : 1; - __IO uint32_t TSAR27 : 1; - __IO uint32_t TSAR28 : 1; - __IO uint32_t TSAR29 : 1; - __IO uint32_t TSAR30 : 1; - __IO uint32_t TSAR31 : 1; -} stc_ethernet_mac_tsar_field_t; - -typedef struct stc_ethernet_mac_ttsr_field -{ - __IO uint32_t TSTR0 : 1; - __IO uint32_t TSTR1 : 1; - __IO uint32_t TSTR2 : 1; - __IO uint32_t TSTR3 : 1; - __IO uint32_t TSTR4 : 1; - __IO uint32_t TSTR5 : 1; - __IO uint32_t TSTR6 : 1; - __IO uint32_t TSTR7 : 1; - __IO uint32_t TSTR8 : 1; - __IO uint32_t TSTR9 : 1; - __IO uint32_t TSTR10 : 1; - __IO uint32_t TSTR11 : 1; - __IO uint32_t TSTR12 : 1; - __IO uint32_t TSTR13 : 1; - __IO uint32_t TSTR14 : 1; - __IO uint32_t TSTR15 : 1; - __IO uint32_t TSTR16 : 1; - __IO uint32_t TSTR17 : 1; - __IO uint32_t TSTR18 : 1; - __IO uint32_t TSTR19 : 1; - __IO uint32_t TSTR20 : 1; - __IO uint32_t TSTR21 : 1; - __IO uint32_t TSTR22 : 1; - __IO uint32_t TSTR23 : 1; - __IO uint32_t TSTR24 : 1; - __IO uint32_t TSTR25 : 1; - __IO uint32_t TSTR26 : 1; - __IO uint32_t TSTR27 : 1; - __IO uint32_t TSTR28 : 1; - __IO uint32_t TSTR29 : 1; - __IO uint32_t TSTR30 : 1; - __IO uint32_t TSTR31 : 1; -} stc_ethernet_mac_ttsr_field_t; - -typedef struct stc_ethernet_mac_ttnr_field -{ - __IO uint32_t TSTR0 : 1; - __IO uint32_t TSTR1 : 1; - __IO uint32_t TSTR2 : 1; - __IO uint32_t TSTR3 : 1; - __IO uint32_t TSTR4 : 1; - __IO uint32_t TSTR5 : 1; - __IO uint32_t TSTR6 : 1; - __IO uint32_t TSTR7 : 1; - __IO uint32_t TSTR8 : 1; - __IO uint32_t TSTR9 : 1; - __IO uint32_t TSTR10 : 1; - __IO uint32_t TSTR11 : 1; - __IO uint32_t TSTR12 : 1; - __IO uint32_t TSTR13 : 1; - __IO uint32_t TSTR14 : 1; - __IO uint32_t TSTR15 : 1; - __IO uint32_t TSTR16 : 1; - __IO uint32_t TSTR17 : 1; - __IO uint32_t TSTR18 : 1; - __IO uint32_t TSTR19 : 1; - __IO uint32_t TSTR20 : 1; - __IO uint32_t TSTR21 : 1; - __IO uint32_t TSTR22 : 1; - __IO uint32_t TSTR23 : 1; - __IO uint32_t TSTR24 : 1; - __IO uint32_t TSTR25 : 1; - __IO uint32_t TSTR26 : 1; - __IO uint32_t TSTR27 : 1; - __IO uint32_t TSTR28 : 1; - __IO uint32_t TSTR29 : 1; - __IO uint32_t TSTR30 : 1; -} stc_ethernet_mac_ttnr_field_t; - -typedef struct stc_ethernet_mac_sthwsr_field -{ - __IO uint32_t TSHWR0 : 1; - __IO uint32_t TSHWR1 : 1; - __IO uint32_t TSHWR2 : 1; - __IO uint32_t TSHWR3 : 1; - __IO uint32_t TSHWR4 : 1; - __IO uint32_t TSHWR5 : 1; - __IO uint32_t TSHWR6 : 1; - __IO uint32_t TSHWR7 : 1; - __IO uint32_t TSHWR8 : 1; - __IO uint32_t TSHWR9 : 1; - __IO uint32_t TSHWR10 : 1; - __IO uint32_t TSHWR11 : 1; - __IO uint32_t TSHWR12 : 1; - __IO uint32_t TSHWR13 : 1; - __IO uint32_t TSHWR14 : 1; - __IO uint32_t TSHWR15 : 1; -} stc_ethernet_mac_sthwsr_field_t; - -typedef struct stc_ethernet_mac_tsr_field -{ - __IO uint32_t TSSOVF : 1; - __IO uint32_t TSTART : 1; - __IO uint32_t ATSTS : 1; - __IO uint32_t TRGTER : 1; - uint32_t RESERVED1 :20; - __IO uint32_t ATSSTM : 1; - __IO uint32_t ATSNS0 : 1; - __IO uint32_t ATSNS1 : 1; - __IO uint32_t ATSNS2 : 1; -} stc_ethernet_mac_tsr_field_t; - -typedef struct stc_ethernet_mac_ppscr_field -{ - __IO uint32_t PPSCTRL0 : 1; - __IO uint32_t PPSCTRL1 : 1; - __IO uint32_t PPSCTRL2 : 1; - __IO uint32_t PPSCTRL3 : 1; -} stc_ethernet_mac_ppscr_field_t; - -typedef struct stc_ethernet_mac_atnr_field -{ - __IO uint32_t ATN0 : 1; - __IO uint32_t ATN1 : 1; - __IO uint32_t ATN2 : 1; - __IO uint32_t ATN3 : 1; - __IO uint32_t ATN4 : 1; - __IO uint32_t ATN5 : 1; - __IO uint32_t ATN6 : 1; - __IO uint32_t ATN7 : 1; - __IO uint32_t ATN8 : 1; - __IO uint32_t ATN9 : 1; - __IO uint32_t ATN10 : 1; - __IO uint32_t ATN11 : 1; - __IO uint32_t ATN12 : 1; - __IO uint32_t ATN13 : 1; - __IO uint32_t ATN14 : 1; - __IO uint32_t ATN15 : 1; - __IO uint32_t ATN16 : 1; - __IO uint32_t ATN17 : 1; - __IO uint32_t ATN18 : 1; - __IO uint32_t ATN19 : 1; - __IO uint32_t ATN20 : 1; - __IO uint32_t ATN21 : 1; - __IO uint32_t ATN22 : 1; - __IO uint32_t ATN23 : 1; - __IO uint32_t ATN24 : 1; - __IO uint32_t ATN25 : 1; - __IO uint32_t ATN26 : 1; - __IO uint32_t ATN27 : 1; - __IO uint32_t ATN28 : 1; - __IO uint32_t ATN29 : 1; - __IO uint32_t ATN30 : 1; -} stc_ethernet_mac_atnr_field_t; - -typedef struct stc_ethernet_mac_atsr_field -{ - __IO uint32_t ATS0 : 1; - __IO uint32_t ATS1 : 1; - __IO uint32_t ATS2 : 1; - __IO uint32_t ATS3 : 1; - __IO uint32_t ATS4 : 1; - __IO uint32_t ATS5 : 1; - __IO uint32_t ATS6 : 1; - __IO uint32_t ATS7 : 1; - __IO uint32_t ATS8 : 1; - __IO uint32_t ATS9 : 1; - __IO uint32_t ATS10 : 1; - __IO uint32_t ATS11 : 1; - __IO uint32_t ATS12 : 1; - __IO uint32_t ATS13 : 1; - __IO uint32_t ATS14 : 1; - __IO uint32_t ATS15 : 1; - __IO uint32_t ATS16 : 1; - __IO uint32_t ATS17 : 1; - __IO uint32_t ATS18 : 1; - __IO uint32_t ATS19 : 1; - __IO uint32_t ATS20 : 1; - __IO uint32_t ATS21 : 1; - __IO uint32_t ATS22 : 1; - __IO uint32_t ATS23 : 1; - __IO uint32_t ATS24 : 1; - __IO uint32_t ATS25 : 1; - __IO uint32_t ATS26 : 1; - __IO uint32_t ATS27 : 1; - __IO uint32_t ATS28 : 1; - __IO uint32_t ATS29 : 1; - __IO uint32_t ATS30 : 1; - __IO uint32_t ATS31 : 1; -} stc_ethernet_mac_atsr_field_t; - -typedef struct stc_ethernet_mac_mar16h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar16h_field_t; - -typedef struct stc_ethernet_mac_mar16l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar16l_field_t; - -typedef struct stc_ethernet_mac_mar17h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar17h_field_t; - -typedef struct stc_ethernet_mac_mar17l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar17l_field_t; - -typedef struct stc_ethernet_mac_mar18h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar18h_field_t; - -typedef struct stc_ethernet_mac_mar18l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar18l_field_t; - -typedef struct stc_ethernet_mac_mar19h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar19h_field_t; - -typedef struct stc_ethernet_mac_mar19l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar19l_field_t; - -typedef struct stc_ethernet_mac_mar20h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar20h_field_t; - -typedef struct stc_ethernet_mac_mar20l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar20l_field_t; - -typedef struct stc_ethernet_mac_mar21h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar21h_field_t; - -typedef struct stc_ethernet_mac_mar21l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar21l_field_t; - -typedef struct stc_ethernet_mac_mar22h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar22h_field_t; - -typedef struct stc_ethernet_mac_mar22l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar22l_field_t; - -typedef struct stc_ethernet_mac_mar23h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar23h_field_t; - -typedef struct stc_ethernet_mac_mar23l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar23l_field_t; - -typedef struct stc_ethernet_mac_mar24h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar24h_field_t; - -typedef struct stc_ethernet_mac_mar24l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar24l_field_t; - -typedef struct stc_ethernet_mac_mar25h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar25h_field_t; - -typedef struct stc_ethernet_mac_mar25l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar25l_field_t; - -typedef struct stc_ethernet_mac_mar26h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar26h_field_t; - -typedef struct stc_ethernet_mac_mar26l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar26l_field_t; - -typedef struct stc_ethernet_mac_mar27h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar27h_field_t; - -typedef struct stc_ethernet_mac_mar27l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar27l_field_t; - -typedef struct stc_ethernet_mac_mar28h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar28h_field_t; - -typedef struct stc_ethernet_mac_mar28l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar28l_field_t; - -typedef struct stc_ethernet_mac_mar29h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar29h_field_t; - -typedef struct stc_ethernet_mac_mar29l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar29l_field_t; - -typedef struct stc_ethernet_mac_mar30h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar30h_field_t; - -typedef struct stc_ethernet_mac_mar30l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar30l_field_t; - -typedef struct stc_ethernet_mac_mar31h_field -{ - __IO uint32_t A32 : 1; - __IO uint32_t A33 : 1; - __IO uint32_t A34 : 1; - __IO uint32_t A35 : 1; - __IO uint32_t A36 : 1; - __IO uint32_t A37 : 1; - __IO uint32_t A38 : 1; - __IO uint32_t A39 : 1; - __IO uint32_t A40 : 1; - __IO uint32_t A41 : 1; - __IO uint32_t A42 : 1; - __IO uint32_t A43 : 1; - __IO uint32_t A44 : 1; - __IO uint32_t A45 : 1; - __IO uint32_t A46 : 1; - __IO uint32_t A47 : 1; - uint32_t RESERVED1 : 8; - __IO uint32_t MBC0 : 1; - __IO uint32_t MBC1 : 1; - __IO uint32_t MBC2 : 1; - __IO uint32_t MBC3 : 1; - __IO uint32_t MBC4 : 1; - __IO uint32_t MBC5 : 1; - __IO uint32_t SA : 1; - __IO uint32_t AE : 1; -} stc_ethernet_mac_mar31h_field_t; - -typedef struct stc_ethernet_mac_mar31l_field -{ - __IO uint32_t A0 : 1; - __IO uint32_t A1 : 1; - __IO uint32_t A2 : 1; - __IO uint32_t A3 : 1; - __IO uint32_t A4 : 1; - __IO uint32_t A5 : 1; - __IO uint32_t A6 : 1; - __IO uint32_t A7 : 1; - __IO uint32_t A8 : 1; - __IO uint32_t A9 : 1; - __IO uint32_t A10 : 1; - __IO uint32_t A11 : 1; - __IO uint32_t A12 : 1; - __IO uint32_t A13 : 1; - __IO uint32_t A14 : 1; - __IO uint32_t A15 : 1; - __IO uint32_t A16 : 1; - __IO uint32_t A17 : 1; - __IO uint32_t A18 : 1; - __IO uint32_t A19 : 1; - __IO uint32_t A20 : 1; - __IO uint32_t A21 : 1; - __IO uint32_t A22 : 1; - __IO uint32_t A23 : 1; - __IO uint32_t A24 : 1; - __IO uint32_t A25 : 1; - __IO uint32_t A26 : 1; - __IO uint32_t A27 : 1; - __IO uint32_t A28 : 1; - __IO uint32_t A29 : 1; - __IO uint32_t A30 : 1; - __IO uint32_t A31 : 1; -} stc_ethernet_mac_mar31l_field_t; - -typedef struct stc_ethernet_mac_bmr_field -{ - __IO uint32_t SWR : 1; - __IO uint32_t DA : 1; - __IO uint32_t DSL0 : 1; - __IO uint32_t DSL1 : 1; - __IO uint32_t DSL2 : 1; - __IO uint32_t DSL3 : 1; - __IO uint32_t DSL4 : 1; - __IO uint32_t ATDS : 1; - __IO uint32_t PBL0 : 1; - __IO uint32_t PBL1 : 1; - __IO uint32_t PBL2 : 1; - __IO uint32_t PBL3 : 1; - __IO uint32_t PBL4 : 1; - __IO uint32_t PBL5 : 1; - __IO uint32_t PR0 : 1; - __IO uint32_t PR1 : 1; - __IO uint32_t FB : 1; - __IO uint32_t RPBL0 : 1; - __IO uint32_t RPBL1 : 1; - __IO uint32_t RPBL2 : 1; - __IO uint32_t RPBL3 : 1; - __IO uint32_t RPBL4 : 1; - __IO uint32_t RPBL5 : 1; - __IO uint32_t USP : 1; - __IO uint32_t _8XPBL : 1; - __IO uint32_t AAL : 1; - __IO uint32_t MB : 1; - __IO uint32_t TXPR : 1; -} stc_ethernet_mac_bmr_field_t; - -typedef struct stc_ethernet_mac_tpdr_field -{ - __IO uint32_t TPD0 : 1; - __IO uint32_t TPD1 : 1; - __IO uint32_t TPD2 : 1; - __IO uint32_t TPD3 : 1; - __IO uint32_t TPD4 : 1; - __IO uint32_t TPD5 : 1; - __IO uint32_t TPD6 : 1; - __IO uint32_t TPD7 : 1; - __IO uint32_t TPD8 : 1; - __IO uint32_t TPD9 : 1; - __IO uint32_t TPD10 : 1; - __IO uint32_t TPD11 : 1; - __IO uint32_t TPD12 : 1; - __IO uint32_t TPD13 : 1; - __IO uint32_t TPD14 : 1; - __IO uint32_t TPD15 : 1; - __IO uint32_t TPD16 : 1; - __IO uint32_t TPD17 : 1; - __IO uint32_t TPD18 : 1; - __IO uint32_t TPD19 : 1; - __IO uint32_t TPD20 : 1; - __IO uint32_t TPD21 : 1; - __IO uint32_t TPD22 : 1; - __IO uint32_t TPD23 : 1; - __IO uint32_t TPD24 : 1; - __IO uint32_t TPD25 : 1; - __IO uint32_t TPD26 : 1; - __IO uint32_t TPD27 : 1; - __IO uint32_t TPD28 : 1; - __IO uint32_t TPD29 : 1; - __IO uint32_t TPD30 : 1; - __IO uint32_t TPD31 : 1; -} stc_ethernet_mac_tpdr_field_t; - -typedef struct stc_ethernet_mac_rpdr_field -{ - __IO uint32_t RPD0 : 1; - __IO uint32_t RPD1 : 1; - __IO uint32_t RPD2 : 1; - __IO uint32_t RPD3 : 1; - __IO uint32_t RPD4 : 1; - __IO uint32_t RPD5 : 1; - __IO uint32_t RPD6 : 1; - __IO uint32_t RPD7 : 1; - __IO uint32_t RPD8 : 1; - __IO uint32_t RPD9 : 1; - __IO uint32_t RPD10 : 1; - __IO uint32_t RPD11 : 1; - __IO uint32_t RPD12 : 1; - __IO uint32_t RPD13 : 1; - __IO uint32_t RPD14 : 1; - __IO uint32_t RPD15 : 1; - __IO uint32_t RPD16 : 1; - __IO uint32_t RPD17 : 1; - __IO uint32_t RPD18 : 1; - __IO uint32_t RPD19 : 1; - __IO uint32_t RPD20 : 1; - __IO uint32_t RPD21 : 1; - __IO uint32_t RPD22 : 1; - __IO uint32_t RPD23 : 1; - __IO uint32_t RPD24 : 1; - __IO uint32_t RPD25 : 1; - __IO uint32_t RPD26 : 1; - __IO uint32_t RPD27 : 1; - __IO uint32_t RPD28 : 1; - __IO uint32_t RPD29 : 1; - __IO uint32_t RPD30 : 1; - __IO uint32_t RPD31 : 1; -} stc_ethernet_mac_rpdr_field_t; - -typedef struct stc_ethernet_mac_rdlar_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t SRL2 : 1; - __IO uint32_t SRL3 : 1; - __IO uint32_t SRL4 : 1; - __IO uint32_t SRL5 : 1; - __IO uint32_t SRL6 : 1; - __IO uint32_t SRL7 : 1; - __IO uint32_t SRL8 : 1; - __IO uint32_t SRL9 : 1; - __IO uint32_t SRL10 : 1; - __IO uint32_t SRL11 : 1; - __IO uint32_t SRL12 : 1; - __IO uint32_t SRL13 : 1; - __IO uint32_t SRL14 : 1; - __IO uint32_t SRL15 : 1; - __IO uint32_t SRL16 : 1; - __IO uint32_t SRL17 : 1; - __IO uint32_t SRL18 : 1; - __IO uint32_t SRL19 : 1; - __IO uint32_t SRL20 : 1; - __IO uint32_t SRL21 : 1; - __IO uint32_t SRL22 : 1; - __IO uint32_t SRL23 : 1; - __IO uint32_t SRL24 : 1; - __IO uint32_t SRL25 : 1; - __IO uint32_t SRL26 : 1; - __IO uint32_t SRL27 : 1; - __IO uint32_t SRL28 : 1; - __IO uint32_t SRL29 : 1; - __IO uint32_t SRL30 : 1; - __IO uint32_t SRL31 : 1; -} stc_ethernet_mac_rdlar_field_t; - -typedef struct stc_ethernet_mac_tdlar_field -{ - uint32_t RESERVED1 : 2; - __IO uint32_t STL2 : 1; - __IO uint32_t STL3 : 1; - __IO uint32_t STL4 : 1; - __IO uint32_t STL5 : 1; - __IO uint32_t STL6 : 1; - __IO uint32_t STL7 : 1; - __IO uint32_t STL8 : 1; - __IO uint32_t STL9 : 1; - __IO uint32_t STL10 : 1; - __IO uint32_t STL11 : 1; - __IO uint32_t STL12 : 1; - __IO uint32_t STL13 : 1; - __IO uint32_t STL14 : 1; - __IO uint32_t STL15 : 1; - __IO uint32_t STL16 : 1; - __IO uint32_t STL17 : 1; - __IO uint32_t STL18 : 1; - __IO uint32_t STL19 : 1; - __IO uint32_t STL20 : 1; - __IO uint32_t STL21 : 1; - __IO uint32_t STL22 : 1; - __IO uint32_t STL23 : 1; - __IO uint32_t STL24 : 1; - __IO uint32_t STL25 : 1; - __IO uint32_t STL26 : 1; - __IO uint32_t STL27 : 1; - __IO uint32_t STL28 : 1; - __IO uint32_t STL29 : 1; - __IO uint32_t STL30 : 1; - __IO uint32_t STL31 : 1; -} stc_ethernet_mac_tdlar_field_t; - -typedef struct stc_ethernet_mac_sr_field -{ - __IO uint32_t TI : 1; - __IO uint32_t TPS : 1; - __IO uint32_t TU : 1; - __IO uint32_t TJT : 1; - __IO uint32_t OVF : 1; - __IO uint32_t UNF : 1; - __IO uint32_t RI : 1; - __IO uint32_t RU : 1; - __IO uint32_t RPS : 1; - __IO uint32_t RWT : 1; - __IO uint32_t ETI : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t FBI : 1; - __IO uint32_t ERI : 1; - __IO uint32_t AIS : 1; - __IO uint32_t NIS : 1; - __IO uint32_t RS0 : 1; - __IO uint32_t RS1 : 1; - __IO uint32_t RS2 : 1; - __IO uint32_t TS0 : 1; - __IO uint32_t TS1 : 1; - __IO uint32_t TS2 : 1; - __IO uint32_t EB0 : 1; - __IO uint32_t EB1 : 1; - __IO uint32_t EB2 : 1; - __IO uint32_t GLI : 1; - __IO uint32_t GMI : 1; - __IO uint32_t GPI : 1; - __IO uint32_t TTI : 1; - __IO uint32_t GLPII : 1; -} stc_ethernet_mac_sr_field_t; - -typedef struct stc_ethernet_mac_omr_field -{ - uint32_t RESERVED1 : 1; - __IO uint32_t SR : 1; - __IO uint32_t OSF : 1; - __IO uint32_t RTC0 : 1; - __IO uint32_t RTC1 : 1; - uint32_t RESERVED2 : 1; - __IO uint32_t FUF : 1; - __IO uint32_t FEF : 1; - uint32_t RESERVED3 : 5; - __IO uint32_t ST : 1; - __IO uint32_t TTC0 : 1; - __IO uint32_t TTC1 : 1; - __IO uint32_t TTC2 : 1; - uint32_t RESERVED4 : 3; - __IO uint32_t FTF : 1; - __IO uint32_t TSF : 1; - uint32_t RESERVED5 : 2; - __IO uint32_t DFF : 1; - __IO uint32_t RSF : 1; - __IO uint32_t DT : 1; -} stc_ethernet_mac_omr_field_t; - -typedef struct stc_ethernet_mac_ier_field -{ - __IO uint32_t TIE : 1; - __IO uint32_t TSE : 1; - __IO uint32_t TUE : 1; - __IO uint32_t TJE : 1; - __IO uint32_t OVE : 1; - __IO uint32_t UNE : 1; - __IO uint32_t RIE : 1; - __IO uint32_t RUE : 1; - __IO uint32_t RSE : 1; - __IO uint32_t RWE : 1; - __IO uint32_t ETE : 1; - uint32_t RESERVED1 : 2; - __IO uint32_t FBE : 1; - __IO uint32_t ERE : 1; - __IO uint32_t AIE : 1; - __IO uint32_t NIE : 1; -} stc_ethernet_mac_ier_field_t; - -typedef struct stc_ethernet_mac_mfbocr_field -{ - __IO uint32_t NMFH0 : 1; - __IO uint32_t NMFH1 : 1; - __IO uint32_t NMFH2 : 1; - __IO uint32_t NMFH3 : 1; - __IO uint32_t NMFH4 : 1; - __IO uint32_t NMFH5 : 1; - __IO uint32_t NMFH6 : 1; - __IO uint32_t NMFH7 : 1; - __IO uint32_t NMFH8 : 1; - __IO uint32_t NMFH9 : 1; - __IO uint32_t NMFH10 : 1; - __IO uint32_t NMFH11 : 1; - __IO uint32_t NMFH12 : 1; - __IO uint32_t NMFH13 : 1; - __IO uint32_t NMFH14 : 1; - __IO uint32_t NMFH15 : 1; - __IO uint32_t ONMFH : 1; - __IO uint32_t NMFF0 : 1; - __IO uint32_t NMFF1 : 1; - __IO uint32_t NMFF2 : 1; - __IO uint32_t NMFF3 : 1; - __IO uint32_t NMFF4 : 1; - __IO uint32_t NMFF5 : 1; - __IO uint32_t NMFF6 : 1; - __IO uint32_t NMFF7 : 1; - __IO uint32_t NMFF8 : 1; - __IO uint32_t NMFF9 : 1; - __IO uint32_t NMFF10 : 1; - __IO uint32_t ONMFF : 1; -} stc_ethernet_mac_mfbocr_field_t; - -typedef struct stc_ethernet_mac_riwtr_field -{ - __IO uint32_t RIWT0 : 1; - __IO uint32_t RIWT1 : 1; - __IO uint32_t RIWT2 : 1; - __IO uint32_t RIWT3 : 1; - __IO uint32_t RIWT4 : 1; - __IO uint32_t RIWT5 : 1; - __IO uint32_t RIWT6 : 1; - __IO uint32_t RIWT7 : 1; -} stc_ethernet_mac_riwtr_field_t; - -typedef struct stc_ethernet_mac_ahbsr_field -{ - __IO uint32_t AHBS : 1; -} stc_ethernet_mac_ahbsr_field_t; - -typedef struct stc_ethernet_mac_chtdr_field -{ - __IO uint32_t HTDAP0 : 1; - __IO uint32_t HTDAP1 : 1; - __IO uint32_t HTDAP2 : 1; - __IO uint32_t HTDAP3 : 1; - __IO uint32_t HTDAP4 : 1; - __IO uint32_t HTDAP5 : 1; - __IO uint32_t HTDAP6 : 1; - __IO uint32_t HTDAP7 : 1; - __IO uint32_t HTDAP8 : 1; - __IO uint32_t HTDAP9 : 1; - __IO uint32_t HTDAP10 : 1; - __IO uint32_t HTDAP11 : 1; - __IO uint32_t HTDAP12 : 1; - __IO uint32_t HTDAP13 : 1; - __IO uint32_t HTDAP14 : 1; - __IO uint32_t HTDAP15 : 1; - __IO uint32_t HTDAP16 : 1; - __IO uint32_t HTDAP17 : 1; - __IO uint32_t HTDAP18 : 1; - __IO uint32_t HTDAP19 : 1; - __IO uint32_t HTDAP20 : 1; - __IO uint32_t HTDAP21 : 1; - __IO uint32_t HTDAP22 : 1; - __IO uint32_t HTDAP23 : 1; - __IO uint32_t HTDAP24 : 1; - __IO uint32_t HTDAP25 : 1; - __IO uint32_t HTDAP26 : 1; - __IO uint32_t HTDAP27 : 1; - __IO uint32_t HTDAP28 : 1; - __IO uint32_t HTDAP29 : 1; - __IO uint32_t HTDAP30 : 1; - __IO uint32_t HTDAP31 : 1; -} stc_ethernet_mac_chtdr_field_t; - -typedef struct stc_ethernet_mac_chrdr_field -{ - __IO uint32_t HRDAP0 : 1; - __IO uint32_t HRDAP1 : 1; - __IO uint32_t HRDAP2 : 1; - __IO uint32_t HRDAP3 : 1; - __IO uint32_t HRDAP4 : 1; - __IO uint32_t HRDAP5 : 1; - __IO uint32_t HRDAP6 : 1; - __IO uint32_t HRDAP7 : 1; - __IO uint32_t HRDAP8 : 1; - __IO uint32_t HRDAP9 : 1; - __IO uint32_t HRDAP10 : 1; - __IO uint32_t HRDAP11 : 1; - __IO uint32_t HRDAP12 : 1; - __IO uint32_t HRDAP13 : 1; - __IO uint32_t HRDAP14 : 1; - __IO uint32_t HRDAP15 : 1; - __IO uint32_t HRDAP16 : 1; - __IO uint32_t HRDAP17 : 1; - __IO uint32_t HRDAP18 : 1; - __IO uint32_t HRDAP19 : 1; - __IO uint32_t HRDAP20 : 1; - __IO uint32_t HRDAP21 : 1; - __IO uint32_t HRDAP22 : 1; - __IO uint32_t HRDAP23 : 1; - __IO uint32_t HRDAP24 : 1; - __IO uint32_t HRDAP25 : 1; - __IO uint32_t HRDAP26 : 1; - __IO uint32_t HRDAP27 : 1; - __IO uint32_t HRDAP28 : 1; - __IO uint32_t HRDAP29 : 1; - __IO uint32_t HRDAP30 : 1; - __IO uint32_t HRDAP31 : 1; -} stc_ethernet_mac_chrdr_field_t; - -typedef struct stc_ethernet_mac_chtbar_field -{ - __IO uint32_t HTBAR0 : 1; - __IO uint32_t HTBAR1 : 1; - __IO uint32_t HTBAR2 : 1; - __IO uint32_t HTBAR3 : 1; - __IO uint32_t HTBAR4 : 1; - __IO uint32_t HTBAR5 : 1; - __IO uint32_t HTBAR6 : 1; - __IO uint32_t HTBAR7 : 1; - __IO uint32_t HTBAR8 : 1; - __IO uint32_t HTBAR9 : 1; - __IO uint32_t HTBAR10 : 1; - __IO uint32_t HTBAR11 : 1; - __IO uint32_t HTBAR12 : 1; - __IO uint32_t HTBAR13 : 1; - __IO uint32_t HTBAR14 : 1; - __IO uint32_t HTBAR15 : 1; - __IO uint32_t HTBAR16 : 1; - __IO uint32_t HTBAR17 : 1; - __IO uint32_t HTBAR18 : 1; - __IO uint32_t HTBAR19 : 1; - __IO uint32_t HTBAR20 : 1; - __IO uint32_t HTBAR21 : 1; - __IO uint32_t HTBAR22 : 1; - __IO uint32_t HTBAR23 : 1; - __IO uint32_t HTBAR24 : 1; - __IO uint32_t HTBAR25 : 1; - __IO uint32_t HTBAR26 : 1; - __IO uint32_t HTBAR27 : 1; - __IO uint32_t HTBAR28 : 1; - __IO uint32_t HTBAR29 : 1; - __IO uint32_t HTBAR30 : 1; - __IO uint32_t HTBAR31 : 1; -} stc_ethernet_mac_chtbar_field_t; - -typedef struct stc_ethernet_mac_chrbar_field -{ - __IO uint32_t HRBAR0 : 1; - __IO uint32_t HRBAR1 : 1; - __IO uint32_t HRBAR2 : 1; - __IO uint32_t HRBAR3 : 1; - __IO uint32_t HRBAR4 : 1; - __IO uint32_t HRBAR5 : 1; - __IO uint32_t HRBAR6 : 1; - __IO uint32_t HRBAR7 : 1; - __IO uint32_t HRBAR8 : 1; - __IO uint32_t HRBAR9 : 1; - __IO uint32_t HRBAR10 : 1; - __IO uint32_t HRBAR11 : 1; - __IO uint32_t HRBAR12 : 1; - __IO uint32_t HRBAR13 : 1; - __IO uint32_t HRBAR14 : 1; - __IO uint32_t HRBAR15 : 1; - __IO uint32_t HRBAR16 : 1; - __IO uint32_t HRBAR17 : 1; - __IO uint32_t HRBAR18 : 1; - __IO uint32_t HRBAR19 : 1; - __IO uint32_t HRBAR20 : 1; - __IO uint32_t HRBAR21 : 1; - __IO uint32_t HRBAR22 : 1; - __IO uint32_t HRBAR23 : 1; - __IO uint32_t HRBAR24 : 1; - __IO uint32_t HRBAR25 : 1; - __IO uint32_t HRBAR26 : 1; - __IO uint32_t HRBAR27 : 1; - __IO uint32_t HRBAR28 : 1; - __IO uint32_t HRBAR29 : 1; - __IO uint32_t HRBAR30 : 1; - __IO uint32_t HRBAR31 : 1; -} stc_ethernet_mac_chrbar_field_t; - -/* ETHERNET_CONTROL_MODULE register bit fields */ -typedef struct stc_ethernet_control_eth_mode_field -{ - __IO uint32_t IFMODE : 1; - uint32_t RESERVED1 : 7; - __IO uint32_t RST0 : 1; - __IO uint32_t RST1 : 1; - uint32_t RESERVED2 :18; - __IO uint32_t ASZPPSSEL : 1; -} stc_ethernet_control_eth_mode_field_t; - -typedef struct stc_ethernet_control_eth_clkg_field -{ - __IO uint32_t MACEN0 : 1; - __IO uint32_t MACEN1 : 1; -} stc_ethernet_control_eth_clkg_field_t; - -/****************************************************************************** - * Peripheral register structures - ******************************************************************************/ - -/****************************************************************************** - * Flash_IF_MODULE - ******************************************************************************/ -/* Flash interface registers */ -typedef struct -{ - union { - __IO uint32_t FASZR; - stc_flash_if_faszr_field_t FASZR_f; - }; - union { - __IO uint32_t FRWTR; - stc_flash_if_frwtr_field_t FRWTR_f; - }; - union { - __IO uint32_t FSTR; - stc_flash_if_fstr_field_t FSTR_f; - }; - uint8_t RESERVED0[4]; - union { - __IO uint32_t FSYNDN; - stc_flash_if_fsyndn_field_t FSYNDN_f; - }; - union { - __IO uint32_t FBFCR; - stc_flash_if_fbfcr_field_t FBFCR_f; - }; - uint8_t RESERVED1[232]; - union { - __IO uint32_t CRTRMM; - stc_flash_if_crtrmm_field_t CRTRMM_f; - }; -}FM3_FLASH_IF_TypeDef; - -/****************************************************************************** - * Clock_Reset_MODULE - ******************************************************************************/ -/* Clock and reset registers */ -typedef struct -{ - union { - __IO uint8_t SCM_CTL; - stc_crg_scm_ctl_field_t SCM_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t SCM_STR; - stc_crg_scm_str_field_t SCM_STR_f; - }; - uint8_t RESERVED1[3]; - __IO uint32_t STB_CTL; - union { - __IO uint16_t RST_STR; - stc_crg_rst_str_field_t RST_STR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t BSC_PSR; - stc_crg_bsc_psr_field_t BSC_PSR_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t APBC0_PSR; - stc_crg_apbc0_psr_field_t APBC0_PSR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t APBC1_PSR; - stc_crg_apbc1_psr_field_t APBC1_PSR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t APBC2_PSR; - stc_crg_apbc2_psr_field_t APBC2_PSR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t SWC_PSR; - stc_crg_swc_psr_field_t SWC_PSR_f; - }; - uint8_t RESERVED7[7]; - union { - __IO uint8_t TTC_PSR; - stc_crg_ttc_psr_field_t TTC_PSR_f; - }; - uint8_t RESERVED8[7]; - union { - __IO uint8_t CSW_TMR; - stc_crg_csw_tmr_field_t CSW_TMR_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t PSW_TMR; - stc_crg_psw_tmr_field_t PSW_TMR_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PLL_CTL1; - stc_crg_pll_ctl1_field_t PLL_CTL1_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t PLL_CTL2; - stc_crg_pll_ctl2_field_t PLL_CTL2_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint16_t CSV_CTL; - stc_crg_csv_ctl_field_t CSV_CTL_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint8_t CSV_STR; - stc_crg_csv_str_field_t CSV_STR_f; - }; - uint8_t RESERVED14[3]; - __IO uint16_t FCSWH_CTL; - uint8_t RESERVED15[2]; - __IO uint16_t FCSWL_CTL; - uint8_t RESERVED16[2]; - __IO uint16_t FCSWD_CTL; - uint8_t RESERVED17[2]; - union { - __IO uint8_t DBWDT_CTL; - stc_crg_dbwdt_ctl_field_t DBWDT_CTL_f; - }; - uint8_t RESERVED18[11]; - union { - __IO uint8_t INT_ENR; - stc_crg_int_enr_field_t INT_ENR_f; - }; - uint8_t RESERVED19[3]; - union { - __IO uint8_t INT_STR; - stc_crg_int_str_field_t INT_STR_f; - }; - uint8_t RESERVED20[3]; - union { - __IO uint8_t INT_CLR; - stc_crg_int_clr_field_t INT_CLR_f; - }; -}FM3_CRG_TypeDef; - -/****************************************************************************** - * HWWDT_MODULE - ******************************************************************************/ -/* Hardware watchdog registers */ -typedef struct -{ - __IO uint32_t WDG_LDR; - __IO uint32_t WDG_VLR; - union { - __IO uint8_t WDG_CTL; - stc_hwwdt_wdg_ctl_field_t WDG_CTL_f; - }; - uint8_t RESERVED0[3]; - __IO uint8_t WDG_ICL; - uint8_t RESERVED1[3]; - union { - __IO uint8_t WDG_RIS; - stc_hwwdt_wdg_ris_field_t WDG_RIS_f; - }; - uint8_t RESERVED2[3055]; - __IO uint32_t WDG_LCK; -}FM3_HWWDT_TypeDef; - -/****************************************************************************** - * SWWDT_MODULE - ******************************************************************************/ -/* Software watchdog registers */ -typedef struct -{ - __IO uint32_t WDOGLOAD; - __IO uint32_t WDOGVALUE; - union { - __IO uint8_t WDOGCONTROL; - stc_swwdt_wdogcontrol_field_t WDOGCONTROL_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t WDOGINTCLR; - union { - __IO uint8_t WDOGRIS; - stc_swwdt_wdogris_field_t WDOGRIS_f; - }; - uint8_t RESERVED1[3055]; - __IO uint32_t WDOGLOCK; -}FM3_SWWDT_TypeDef; - -/****************************************************************************** - * DTIM_MODULE - ******************************************************************************/ -/* Dual timer 1/2 registers */ -typedef struct -{ - __IO uint32_t TIMER1LOAD; - __IO uint32_t TIMER1VALUE; - union { - __IO uint32_t TIMER1CONTROL; - stc_dtim_timer1control_field_t TIMER1CONTROL_f; - }; - __IO uint32_t TIMER1INTCLR; - union { - __IO uint32_t TIMER1RIS; - stc_dtim_timer1ris_field_t TIMER1RIS_f; - }; - union { - __IO uint32_t TIMER1MIS; - stc_dtim_timer1mis_field_t TIMER1MIS_f; - }; - __IO uint32_t TIMER1BGLOAD; - uint8_t RESERVED0[4]; - __IO uint32_t TIMER2LOAD; - __IO uint32_t TIMER2VALUE; - union { - __IO uint32_t TIMER2CONTROL; - stc_dtim_timer2control_field_t TIMER2CONTROL_f; - }; - __IO uint32_t TIMER2INTCLR; - union { - __IO uint32_t TIMER2RIS; - stc_dtim_timer2ris_field_t TIMER2RIS_f; - }; - union { - __IO uint32_t TIMER2MIS; - stc_dtim_timer2mis_field_t TIMER2MIS_f; - }; - __IO uint32_t TIMER2BGLOAD; -}FM3_DTIM_TypeDef; - -/****************************************************************************** - * MFT_FRT_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Free Running Timer registers */ -typedef struct -{ - uint8_t RESERVED0[40]; - __IO uint16_t TCCP0; - uint8_t RESERVED1[2]; - __IO uint16_t TCDT0; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TCSA0; - stc_mft_frt_tcsa0_field_t TCSA0_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t TCSB0; - stc_mft_frt_tcsb0_field_t TCSB0_f; - }; - uint8_t RESERVED4[2]; - __IO uint16_t TCCP1; - uint8_t RESERVED5[2]; - __IO uint16_t TCDT1; - uint8_t RESERVED6[2]; - union { - __IO uint16_t TCSA1; - stc_mft_frt_tcsa1_field_t TCSA1_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t TCSB1; - stc_mft_frt_tcsb1_field_t TCSB1_f; - }; - uint8_t RESERVED8[2]; - __IO uint16_t TCCP2; - uint8_t RESERVED9[2]; - __IO uint16_t TCDT2; - uint8_t RESERVED10[2]; - union { - __IO uint16_t TCSA2; - stc_mft_frt_tcsa2_field_t TCSA2_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t TCSB2; - stc_mft_frt_tcsb2_field_t TCSB2_f; - }; -}FM3_MFT_FRT_TypeDef; - -/****************************************************************************** - * MFT_OCU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Output Compare Unit registers */ -typedef struct -{ - __IO uint16_t OCCP0; - uint8_t RESERVED0[2]; - __IO uint16_t OCCP1; - uint8_t RESERVED1[2]; - __IO uint16_t OCCP2; - uint8_t RESERVED2[2]; - __IO uint16_t OCCP3; - uint8_t RESERVED3[2]; - __IO uint16_t OCCP4; - uint8_t RESERVED4[2]; - __IO uint16_t OCCP5; - uint8_t RESERVED5[2]; - union { - __IO uint8_t OCSA10; - stc_mft_ocu_ocsa10_field_t OCSA10_f; - }; - union { - __IO uint8_t OCSB10; - stc_mft_ocu_ocsb10_field_t OCSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t OCSA32; - stc_mft_ocu_ocsa32_field_t OCSA32_f; - }; - union { - __IO uint8_t OCSB32; - stc_mft_ocu_ocsb32_field_t OCSB32_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint8_t OCSA54; - stc_mft_ocu_ocsa54_field_t OCSA54_f; - }; - union { - __IO uint8_t OCSB54; - stc_mft_ocu_ocsb54_field_t OCSB54_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t OCSC; - stc_mft_ocu_ocsc_field_t OCSC_f; - }; - uint8_t RESERVED9[50]; - union { - __IO uint8_t OCFS10; - stc_mft_ocu_ocfs10_field_t OCFS10_f; - }; - union { - __IO uint8_t OCFS32; - stc_mft_ocu_ocfs32_field_t OCFS32_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint8_t OCFS54; - stc_mft_ocu_ocfs54_field_t OCFS54_f; - }; -}FM3_MFT_OCU_TypeDef; - -/****************************************************************************** - * MFT_WFG_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -typedef struct -{ - uint8_t RESERVED0[128]; - __IO uint16_t WFTM10; - uint8_t RESERVED1[2]; - __IO uint16_t WFTM32; - uint8_t RESERVED2[2]; - __IO uint16_t WFTM54; - uint8_t RESERVED3[2]; - union { - __IO uint16_t WFSA10; - stc_mft_wfg_wfsa10_field_t WFSA10_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t WFSA32; - stc_mft_wfg_wfsa32_field_t WFSA32_f; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t WFSA54; - stc_mft_wfg_wfsa54_field_t WFSA54_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t WFIR; - stc_mft_wfg_wfir_field_t WFIR_f; - }; - uint8_t RESERVED7[2]; - union { - __IO uint16_t NZCL; - stc_mft_wfg_nzcl_field_t NZCL_f; - }; -}FM3_MFT_WFG_TypeDef; - -/****************************************************************************** - * MFT_ICU_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 Input Capture Unit registers */ -typedef struct -{ - uint8_t RESERVED0[96]; - union { - __IO uint8_t ICFS10; - stc_mft_icu_icfs10_field_t ICFS10_f; - }; - union { - __IO uint8_t ICFS32; - stc_mft_icu_icfs32_field_t ICFS32_f; - }; - uint8_t RESERVED1[6]; - __IO uint16_t ICCP0; - uint8_t RESERVED2[2]; - __IO uint16_t ICCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ICCP2; - uint8_t RESERVED4[2]; - __IO uint16_t ICCP3; - uint8_t RESERVED5[2]; - union { - __IO uint8_t ICSA10; - stc_mft_icu_icsa10_field_t ICSA10_f; - }; - union { - __IO uint8_t ICSB10; - stc_mft_icu_icsb10_field_t ICSB10_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ICSA32; - stc_mft_icu_icsa32_field_t ICSA32_f; - }; - union { - __IO uint8_t ICSB32; - stc_mft_icu_icsb32_field_t ICSB32_f; - }; -}FM3_MFT_ICU_TypeDef; - -/****************************************************************************** - * MFT_ADCMP_MODULE - ******************************************************************************/ -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -typedef struct -{ - uint8_t RESERVED0[160]; - __IO uint16_t ACCP0; - uint8_t RESERVED1[2]; - __IO uint16_t ACCPDN0; - uint8_t RESERVED2[2]; - __IO uint16_t ACCP1; - uint8_t RESERVED3[2]; - __IO uint16_t ACCPDN1; - uint8_t RESERVED4[2]; - __IO uint16_t ACCP2; - uint8_t RESERVED5[2]; - __IO uint16_t ACCPDN2; - uint8_t RESERVED6[2]; - union { - __IO uint8_t ACSB; - stc_mft_adcmp_acsb_field_t ACSB_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t ACSA; - stc_mft_adcmp_acsa_field_t ACSA_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t ATSA; - stc_mft_adcmp_atsa_field_t ATSA_f; - }; -}FM3_MFT_ADCMP_TypeDef; - -/****************************************************************************** - * MFT_PPG_MODULE - ******************************************************************************/ -/* Multifunction Timer PPG registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t TTCR0; - stc_mft_ppg_ttcr0_field_t TTCR0_f; - }; - uint8_t RESERVED1[7]; - __IO uint8_t COMP0; - uint8_t RESERVED2[2]; - __IO uint8_t COMP2; - uint8_t RESERVED3[4]; - __IO uint8_t COMP4; - uint8_t RESERVED4[2]; - __IO uint8_t COMP6; - uint8_t RESERVED5[12]; - union { - __IO uint8_t TTCR1; - stc_mft_ppg_ttcr1_field_t TTCR1_f; - }; - uint8_t RESERVED6[7]; - __IO uint8_t COMP1; - uint8_t RESERVED7[2]; - __IO uint8_t COMP3; - uint8_t RESERVED8[4]; - __IO uint8_t COMP5; - uint8_t RESERVED9[2]; - __IO uint8_t COMP7; - uint8_t RESERVED10[12]; - union { - __IO uint8_t TTCR2; - stc_mft_ppg_ttcr2_field_t TTCR2_f; - }; - uint8_t RESERVED11[7]; - __IO uint8_t COMP8; - uint8_t RESERVED12[2]; - __IO uint8_t COMP10; - uint8_t RESERVED13[4]; - __IO uint8_t COMP12; - uint8_t RESERVED14[2]; - __IO uint8_t COMP14; - uint8_t RESERVED15[171]; - union { - __IO uint16_t TRG; - stc_mft_ppg_trg_field_t TRG_f; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t REVC; - stc_mft_ppg_revc_field_t REVC_f; - }; - uint8_t RESERVED17[58]; - union { - __IO uint16_t TRG1; - stc_mft_ppg_trg1_field_t TRG1_f; - }; - uint8_t RESERVED18[2]; - union { - __IO uint16_t REVC1; - stc_mft_ppg_revc1_field_t REVC1_f; - }; - uint8_t RESERVED19[186]; - union { - __IO uint8_t PPGC1; - stc_mft_ppg_ppgc1_field_t PPGC1_f; - }; - union { - __IO uint8_t PPGC0; - stc_mft_ppg_ppgc0_field_t PPGC0_f; - }; - uint8_t RESERVED20[2]; - union { - __IO uint8_t PPGC3; - stc_mft_ppg_ppgc3_field_t PPGC3_f; - }; - union { - __IO uint8_t PPGC2; - stc_mft_ppg_ppgc2_field_t PPGC2_f; - }; - uint8_t RESERVED21[2]; - union { - __IO uint16_t PRL0; - struct { - __IO uint8_t PRLL0; - __IO uint8_t PRLH0; - }; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t PRL1; - struct { - __IO uint8_t PRLL1; - __IO uint8_t PRLH1; - }; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t PRL2; - struct { - __IO uint8_t PRLL2; - __IO uint8_t PRLH2; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t PRL3; - struct { - __IO uint8_t PRLL3; - __IO uint8_t PRLH3; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint8_t GATEC0; - stc_mft_ppg_gatec0_field_t GATEC0_f; - }; - uint8_t RESERVED26[39]; - union { - __IO uint8_t PPGC5; - stc_mft_ppg_ppgc5_field_t PPGC5_f; - }; - union { - __IO uint8_t PPGC4; - stc_mft_ppg_ppgc4_field_t PPGC4_f; - }; - uint8_t RESERVED27[2]; - union { - __IO uint8_t PPGC7; - stc_mft_ppg_ppgc7_field_t PPGC7_f; - }; - union { - __IO uint8_t PPGC6; - stc_mft_ppg_ppgc6_field_t PPGC6_f; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t PRL4; - struct { - __IO uint8_t PRLL4; - __IO uint8_t PRLH4; - }; - }; - uint8_t RESERVED29[2]; - union { - __IO uint16_t PRL5; - struct { - __IO uint8_t PRLL5; - __IO uint8_t PRLH5; - }; - }; - uint8_t RESERVED30[2]; - union { - __IO uint16_t PRL6; - struct { - __IO uint8_t PRLL6; - __IO uint8_t PRLH6; - }; - }; - uint8_t RESERVED31[2]; - union { - __IO uint16_t PRL7; - struct { - __IO uint8_t PRLL7; - __IO uint8_t PRLH7; - }; - }; - uint8_t RESERVED32[2]; - union { - __IO uint8_t GATEC4; - stc_mft_ppg_gatec4_field_t GATEC4_f; - }; - uint8_t RESERVED33[39]; - union { - __IO uint8_t PPGC9; - stc_mft_ppg_ppgc9_field_t PPGC9_f; - }; - union { - __IO uint8_t PPGC8; - stc_mft_ppg_ppgc8_field_t PPGC8_f; - }; - uint8_t RESERVED34[2]; - union { - __IO uint8_t PPGC11; - stc_mft_ppg_ppgc11_field_t PPGC11_f; - }; - union { - __IO uint8_t PPGC10; - stc_mft_ppg_ppgc10_field_t PPGC10_f; - }; - uint8_t RESERVED35[2]; - union { - __IO uint16_t PRL8; - struct { - __IO uint8_t PRLL8; - __IO uint8_t PRLH8; - }; - }; - uint8_t RESERVED36[2]; - union { - __IO uint16_t PRL9; - struct { - __IO uint8_t PRLL9; - __IO uint8_t PRLH9; - }; - }; - uint8_t RESERVED37[2]; - union { - __IO uint16_t PRL10; - struct { - __IO uint8_t PRLL10; - __IO uint8_t PRLH10; - }; - }; - uint8_t RESERVED38[2]; - union { - __IO uint16_t PRL11; - struct { - __IO uint8_t PRLL11; - __IO uint8_t PRLH11; - }; - }; - uint8_t RESERVED39[2]; - union { - __IO uint8_t GATEC8; - stc_mft_ppg_gatec8_field_t GATEC8_f; - }; - uint8_t RESERVED40[39]; - union { - __IO uint8_t PPGC13; - stc_mft_ppg_ppgc13_field_t PPGC13_f; - }; - union { - __IO uint8_t PPGC12; - stc_mft_ppg_ppgc12_field_t PPGC12_f; - }; - uint8_t RESERVED41[2]; - union { - __IO uint8_t PPGC15; - stc_mft_ppg_ppgc15_field_t PPGC15_f; - }; - union { - __IO uint8_t PPGC14; - stc_mft_ppg_ppgc14_field_t PPGC14_f; - }; - uint8_t RESERVED42[2]; - union { - __IO uint16_t PRL12; - struct { - __IO uint8_t PRLL12; - __IO uint8_t PRLH12; - }; - }; - uint8_t RESERVED43[2]; - union { - __IO uint16_t PRL13; - struct { - __IO uint8_t PRLL13; - __IO uint8_t PRLH13; - }; - }; - uint8_t RESERVED44[2]; - union { - __IO uint16_t PRL14; - struct { - __IO uint8_t PRLL14; - __IO uint8_t PRLH14; - }; - }; - uint8_t RESERVED45[2]; - union { - __IO uint16_t PRL15; - struct { - __IO uint8_t PRLL15; - __IO uint8_t PRLH15; - }; - }; - uint8_t RESERVED46[2]; - union { - __IO uint8_t GATEC12; - stc_mft_ppg_gatec12_field_t GATEC12_f; - }; - uint8_t RESERVED47[39]; - union { - __IO uint8_t PPGC17; - stc_mft_ppg_ppgc17_field_t PPGC17_f; - }; - union { - __IO uint8_t PPGC16; - stc_mft_ppg_ppgc16_field_t PPGC16_f; - }; - uint8_t RESERVED48[2]; - union { - __IO uint8_t PPGC19; - stc_mft_ppg_ppgc19_field_t PPGC19_f; - }; - union { - __IO uint8_t PPGC18; - stc_mft_ppg_ppgc18_field_t PPGC18_f; - }; - uint8_t RESERVED49[2]; - union { - __IO uint16_t PRL16; - struct { - __IO uint8_t PRLL16; - __IO uint8_t PRLH16; - }; - }; - uint8_t RESERVED50[2]; - union { - __IO uint16_t PRL17; - struct { - __IO uint8_t PRLL17; - __IO uint8_t PRLH17; - }; - }; - uint8_t RESERVED51[2]; - union { - __IO uint16_t PRL18; - struct { - __IO uint8_t PRLL18; - __IO uint8_t PRLH18; - }; - }; - uint8_t RESERVED52[2]; - union { - __IO uint16_t PRL19; - struct { - __IO uint8_t PRLL19; - __IO uint8_t PRLH19; - }; - }; - uint8_t RESERVED53[2]; - union { - __IO uint8_t GATEC16; - stc_mft_ppg_gatec16_field_t GATEC16_f; - }; - uint8_t RESERVED54[39]; - union { - __IO uint8_t PPGC21; - stc_mft_ppg_ppgc21_field_t PPGC21_f; - }; - union { - __IO uint8_t PPGC20; - stc_mft_ppg_ppgc20_field_t PPGC20_f; - }; - uint8_t RESERVED55[2]; - union { - __IO uint8_t PPGC23; - stc_mft_ppg_ppgc23_field_t PPGC23_f; - }; - union { - __IO uint8_t PPGC22; - stc_mft_ppg_ppgc22_field_t PPGC22_f; - }; - uint8_t RESERVED56[2]; - union { - __IO uint16_t PRL20; - struct { - __IO uint8_t PRLL20; - __IO uint8_t PRLH20; - }; - }; - uint8_t RESERVED57[2]; - union { - __IO uint16_t PRL21; - struct { - __IO uint8_t PRLL21; - __IO uint8_t PRLH21; - }; - }; - uint8_t RESERVED58[2]; - union { - __IO uint16_t PRL22; - struct { - __IO uint8_t PRLL22; - __IO uint8_t PRLH22; - }; - }; - uint8_t RESERVED59[2]; - union { - __IO uint16_t PRL23; - struct { - __IO uint8_t PRLL23; - __IO uint8_t PRLH23; - }; - }; - uint8_t RESERVED60[2]; - union { - __IO uint8_t GATEC20; - stc_mft_ppg_gatec20_field_t GATEC20_f; - }; -}FM3_MFT_PPG_TypeDef; - -/****************************************************************************** - * BT_PPG_MODULE - ******************************************************************************/ -/* Base Timer 0 PPG registers */ -typedef struct -{ - __IO uint16_t PRLL; - uint8_t RESERVED0[2]; - __IO uint16_t PRLH; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_ppg_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_ppg_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_ppg_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PPG_TypeDef; - -/****************************************************************************** - * BT_PWM_MODULE - ******************************************************************************/ -/* Base Timer 0 PWM registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[2]; - __IO uint16_t PDUT; - uint8_t RESERVED1[2]; - __IO uint16_t TMR; - uint8_t RESERVED2[2]; - union { - __IO uint16_t TMCR; - stc_bt_pwm_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t STC; - stc_bt_pwm_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwm_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PWM_TypeDef; - -/****************************************************************************** - * BT_RT_MODULE - ******************************************************************************/ -/* Base Timer 0 RT registers */ -typedef struct -{ - __IO uint16_t PCSR; - uint8_t RESERVED0[6]; - __IO uint16_t TMR; - uint8_t RESERVED1[2]; - union { - __IO uint16_t TMCR; - stc_bt_rt_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_rt_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_rt_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_RT_TypeDef; - -/****************************************************************************** - * BT_PWC_MODULE - ******************************************************************************/ -/* Base Timer 0 PWC registers */ -typedef struct -{ - uint8_t RESERVED0[4]; - __IO uint16_t DTBF; - uint8_t RESERVED1[6]; - union { - __IO uint16_t TMCR; - stc_bt_pwc_tmcr_field_t TMCR_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint8_t STC; - stc_bt_pwc_stc_field_t STC_f; - }; - union { - __IO uint8_t TMCR2; - stc_bt_pwc_tmcr2_field_t TMCR2_f; - }; -}FM3_BT_PWC_TypeDef; - -/****************************************************************************** - * BTIOSEL03_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 0 - channel 3 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL0123; - stc_btiosel03_btsel0123_field_t BTSEL0123_f; - }; -}FM3_BTIOSEL03_TypeDef; - -/****************************************************************************** - * BTIOSEL47_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 4 - channel 7 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL4567; - stc_btiosel47_btsel4567_field_t BTSEL4567_f; - }; -}FM3_BTIOSEL47_TypeDef; - -/****************************************************************************** - * BTIOSEL8B_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 8 - channel 11 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSEL89AB; - stc_btiosel8b_btsel89ab_field_t BTSEL89AB_f; - }; -}FM3_BTIOSEL8B_TypeDef; - -/****************************************************************************** - * BTIOSELCF_MODULE - ******************************************************************************/ -/* Base Timer I/O selector channel 12 - channel 15 registers */ -typedef struct -{ - uint8_t RESERVED0; - union { - __IO uint8_t BTSELCDEF; - stc_btioselcf_btselcdef_field_t BTSELCDEF_f; - }; -}FM3_BTIOSELCF_TypeDef; - -/****************************************************************************** - * SBSSR_MODULE - ******************************************************************************/ -/* Software based Simulation Startup (Base Timer) register */ -typedef struct -{ - union { - __IO uint16_t BTSSSR; - stc_sbssr_btsssr_field_t BTSSSR_f; - }; -}FM3_SBSSR_TypeDef; - -/****************************************************************************** - * QPRC_MODULE - ******************************************************************************/ -/* Quad position and revolution counter channel 0 registers */ -typedef struct -{ - __IO uint16_t QPCR; - uint8_t RESERVED0[2]; - __IO uint16_t QRCR; - uint8_t RESERVED1[2]; - __IO uint16_t QPCCR; - uint8_t RESERVED2[2]; - __IO uint16_t QPRCR; - uint8_t RESERVED3[2]; - __IO uint16_t QMPR; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t QICR; - stc_qprc_qicr_field_t QICR_f; - }; - struct { - union { - __IO uint8_t QICRL; - stc_qprc_qicrl_field_t QICRL_f; - }; - union { - __IO uint8_t QICRH; - stc_qprc_qicrh_field_t QICRH_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t QCR; - stc_qprc_qcr_field_t QCR_f; - }; - struct { - union { - __IO uint8_t QCRL; - stc_qprc_qcrl_field_t QCRL_f; - }; - union { - __IO uint8_t QCRH; - stc_qprc_qcrh_field_t QCRH_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t QECR; - stc_qprc_qecr_field_t QECR_f; - }; - uint8_t RESERVED7[30]; - __IO uint16_t QRCRR; - __IO uint16_t QPCRR; -}FM3_QPRC_TypeDef; - -/****************************************************************************** - * ADC12_MODULE - ******************************************************************************/ -/* 12-bit ADC unit 0 registers */ -typedef struct -{ - union { - __IO uint8_t ADSR; - stc_adc_adsr_field_t ADSR_f; - }; - union { - __IO uint8_t ADCR; - stc_adc_adcr_field_t ADCR_f; - }; - uint8_t RESERVED0[6]; - union { - __IO uint8_t SFNS; - stc_adc_sfns_field_t SFNS_f; - }; - union { - __IO uint8_t SCCR; - stc_adc_sccr_field_t SCCR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint32_t SCFD; - stc_adc_scfd_field_t SCFD_f; - }; - struct { - union { - __IO uint16_t SCFDL; - stc_adc_scfdl_field_t SCFDL_f; - }; - union { - __IO uint16_t SCFDH; - stc_adc_scfdh_field_t SCFDH_f; - }; - }; - }; - union { - union { - __IO uint16_t SCIS23; - stc_adc_scis23_field_t SCIS23_f; - }; - struct { - union { - __IO uint8_t SCIS2; - stc_adc_scis2_field_t SCIS2_f; - }; - union { - __IO uint8_t SCIS3; - stc_adc_scis3_field_t SCIS3_f; - }; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t SCIS01; - stc_adc_scis01_field_t SCIS01_f; - }; - struct { - union { - __IO uint8_t SCIS0; - stc_adc_scis0_field_t SCIS0_f; - }; - union { - __IO uint8_t SCIS1; - stc_adc_scis1_field_t SCIS1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t PFNS; - stc_adc_pfns_field_t PFNS_f; - }; - union { - __IO uint8_t PCCR; - stc_adc_pccr_field_t PCCR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint32_t PCFD; - stc_adc_pcfd_field_t PCFD_f; - }; - struct { - union { - __IO uint16_t PCFDL; - stc_adc_pcfdl_field_t PCFDL_f; - }; - union { - __IO uint16_t PCFDH; - stc_adc_pcfdh_field_t PCFDH_f; - }; - }; - }; - union { - __IO uint8_t PCIS; - stc_adc_pcis_field_t PCIS_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t CMPCR; - stc_adc_cmpcr_field_t CMPCR_f; - }; - uint8_t RESERVED6; - union { - __IO uint16_t CMPD; - stc_adc_cmpd_field_t CMPD_f; - }; - union { - union { - __IO uint16_t ADSS23; - stc_adc_adss23_field_t ADSS23_f; - }; - struct { - union { - __IO uint8_t ADSS2; - stc_adc_adss2_field_t ADSS2_f; - }; - union { - __IO uint8_t ADSS3; - stc_adc_adss3_field_t ADSS3_f; - }; - }; - }; - uint8_t RESERVED7[2]; - union { - union { - __IO uint16_t ADSS01; - stc_adc_adss01_field_t ADSS01_f; - }; - struct { - union { - __IO uint8_t ADSS0; - stc_adc_adss0_field_t ADSS0_f; - }; - union { - __IO uint8_t ADSS1; - stc_adc_adss1_field_t ADSS1_f; - }; - }; - }; - uint8_t RESERVED8[2]; - union { - union { - __IO uint16_t ADST01; - stc_adc_adst01_field_t ADST01_f; - }; - struct { - union { - __IO uint8_t ADST1; - stc_adc_adst1_field_t ADST1_f; - }; - union { - __IO uint8_t ADST0; - stc_adc_adst0_field_t ADST0_f; - }; - }; - }; - uint8_t RESERVED9[2]; - union { - __IO uint8_t ADCT; - stc_adc_adct_field_t ADCT_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t PRTSL; - stc_adc_prtsl_field_t PRTSL_f; - }; - union { - __IO uint8_t SCTSL; - stc_adc_sctsl_field_t SCTSL_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint8_t ADCEN; - stc_adc_adcen_field_t ADCEN_f; - }; -}FM3_ADC_TypeDef; - -/****************************************************************************** - * CRTRIM_MODULE - ******************************************************************************/ -/* CR trimming registers */ -typedef struct -{ - union { - __IO uint8_t MCR_PSR; - stc_crtrim_mcr_psr_field_t MCR_PSR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint16_t MCR_FTRM; - stc_crtrim_mcr_ftrm_field_t MCR_FTRM_f; - }; - uint8_t RESERVED1[6]; - __IO uint32_t MCR_RLR; -}FM3_CRTRIM_TypeDef; - -/****************************************************************************** - * EXTI_MODULE - ******************************************************************************/ -/* External interrupt registers */ -typedef struct -{ - union { - __IO uint32_t ENIR; - stc_exti_enir_field_t ENIR_f; - }; - union { - __IO uint32_t EIRR; - stc_exti_eirr_field_t EIRR_f; - }; - union { - __IO uint32_t EICL; - stc_exti_eicl_field_t EICL_f; - }; - union { - __IO uint32_t ELVR; - stc_exti_elvr_field_t ELVR_f; - }; - union { - __IO uint32_t ELVR1; - stc_exti_elvr1_field_t ELVR1_f; - }; - union { - __IO uint8_t NMIRR; - stc_exti_nmirr_field_t NMIRR_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t NMICL; - stc_exti_nmicl_field_t NMICL_f; - }; -}FM3_EXTI_TypeDef; - -/****************************************************************************** - * INTREQ_MODULE - ******************************************************************************/ -/* Interrupt request read registers */ -typedef struct -{ - union { - __IO uint32_t DRQSEL; - stc_intreq_drqsel_field_t DRQSEL_f; - }; - uint8_t RESERVED0[7]; - union { - __IO uint8_t ODDPKS; - stc_intreq_oddpks_field_t ODDPKS_f; - }; - uint8_t RESERVED1[4]; - union { - __IO uint32_t EXC02MON; - stc_intreq_exc02mon_field_t EXC02MON_f; - }; - union { - __IO uint32_t IRQ00MON; - stc_intreq_irq00mon_field_t IRQ00MON_f; - }; - union { - __IO uint32_t IRQ01MON; - stc_intreq_irq01mon_field_t IRQ01MON_f; - }; - union { - __IO uint32_t IRQ02MON; - stc_intreq_irq02mon_field_t IRQ02MON_f; - }; - union { - __IO uint32_t IRQ03MON; - stc_intreq_irq03mon_field_t IRQ03MON_f; - }; - union { - __IO uint32_t IRQ04MON; - stc_intreq_irq04mon_field_t IRQ04MON_f; - }; - union { - __IO uint32_t IRQ05MON; - stc_intreq_irq05mon_field_t IRQ05MON_f; - }; - union { - __IO uint32_t IRQ06MON; - stc_intreq_irq06mon_field_t IRQ06MON_f; - }; - union { - __IO uint32_t IRQ07MON; - stc_intreq_irq07mon_field_t IRQ07MON_f; - }; - union { - __IO uint32_t IRQ08MON; - stc_intreq_irq08mon_field_t IRQ08MON_f; - }; - union { - __IO uint32_t IRQ09MON; - stc_intreq_irq09mon_field_t IRQ09MON_f; - }; - union { - __IO uint32_t IRQ10MON; - stc_intreq_irq10mon_field_t IRQ10MON_f; - }; - union { - __IO uint32_t IRQ11MON; - stc_intreq_irq11mon_field_t IRQ11MON_f; - }; - union { - __IO uint32_t IRQ12MON; - stc_intreq_irq12mon_field_t IRQ12MON_f; - }; - union { - __IO uint32_t IRQ13MON; - stc_intreq_irq13mon_field_t IRQ13MON_f; - }; - union { - __IO uint32_t IRQ14MON; - stc_intreq_irq14mon_field_t IRQ14MON_f; - }; - union { - __IO uint32_t IRQ15MON; - stc_intreq_irq15mon_field_t IRQ15MON_f; - }; - union { - __IO uint32_t IRQ16MON; - stc_intreq_irq16mon_field_t IRQ16MON_f; - }; - union { - __IO uint32_t IRQ17MON; - stc_intreq_irq17mon_field_t IRQ17MON_f; - }; - union { - __IO uint32_t IRQ18MON; - stc_intreq_irq18mon_field_t IRQ18MON_f; - }; - union { - __IO uint32_t IRQ19MON; - stc_intreq_irq19mon_field_t IRQ19MON_f; - }; - union { - __IO uint32_t IRQ20MON; - stc_intreq_irq20mon_field_t IRQ20MON_f; - }; - union { - __IO uint32_t IRQ21MON; - stc_intreq_irq21mon_field_t IRQ21MON_f; - }; - union { - __IO uint32_t IRQ22MON; - stc_intreq_irq22mon_field_t IRQ22MON_f; - }; - union { - __IO uint32_t IRQ23MON; - stc_intreq_irq23mon_field_t IRQ23MON_f; - }; - union { - __IO uint32_t IRQ24MON; - stc_intreq_irq24mon_field_t IRQ24MON_f; - }; - union { - __IO uint32_t IRQ25MON; - stc_intreq_irq25mon_field_t IRQ25MON_f; - }; - union { - __IO uint32_t IRQ26MON; - stc_intreq_irq26mon_field_t IRQ26MON_f; - }; - union { - __IO uint32_t IRQ27MON; - stc_intreq_irq27mon_field_t IRQ27MON_f; - }; - union { - __IO uint32_t IRQ28MON; - stc_intreq_irq28mon_field_t IRQ28MON_f; - }; - union { - __IO uint32_t IRQ29MON; - stc_intreq_irq29mon_field_t IRQ29MON_f; - }; - union { - __IO uint32_t IRQ30MON; - stc_intreq_irq30mon_field_t IRQ30MON_f; - }; - union { - __IO uint32_t IRQ31MON; - stc_intreq_irq31mon_field_t IRQ31MON_f; - }; - union { - __IO uint32_t IRQ32MON; - stc_intreq_irq32mon_field_t IRQ32MON_f; - }; - union { - __IO uint32_t IRQ33MON; - stc_intreq_irq33mon_field_t IRQ33MON_f; - }; - union { - __IO uint32_t IRQ34MON; - stc_intreq_irq34mon_field_t IRQ34MON_f; - }; - union { - __IO uint32_t IRQ35MON; - stc_intreq_irq35mon_field_t IRQ35MON_f; - }; - union { - __IO uint32_t IRQ36MON; - stc_intreq_irq36mon_field_t IRQ36MON_f; - }; - union { - __IO uint32_t IRQ37MON; - stc_intreq_irq37mon_field_t IRQ37MON_f; - }; - union { - __IO uint32_t IRQ38MON; - stc_intreq_irq38mon_field_t IRQ38MON_f; - }; - union { - __IO uint32_t IRQ39MON; - stc_intreq_irq39mon_field_t IRQ39MON_f; - }; - union { - __IO uint32_t IRQ40MON; - stc_intreq_irq40mon_field_t IRQ40MON_f; - }; - union { - __IO uint32_t IRQ41MON; - stc_intreq_irq41mon_field_t IRQ41MON_f; - }; - union { - __IO uint32_t IRQ42MON; - stc_intreq_irq42mon_field_t IRQ42MON_f; - }; - union { - __IO uint32_t IRQ43MON; - stc_intreq_irq43mon_field_t IRQ43MON_f; - }; - union { - __IO uint32_t IRQ44MON; - stc_intreq_irq44mon_field_t IRQ44MON_f; - }; - union { - __IO uint32_t IRQ45MON; - stc_intreq_irq45mon_field_t IRQ45MON_f; - }; - union { - __IO uint32_t IRQ46MON; - stc_intreq_irq46mon_field_t IRQ46MON_f; - }; - __IO uint32_t IRQ47MON; - uint8_t RESERVED2[300]; - union { - __IO uint32_t DRQSEL1; - stc_intreq_drqsel1_field_t DRQSEL1_f; - }; - union { - __IO uint32_t DQESEL; - stc_intreq_dqesel_field_t DQESEL_f; - }; - uint8_t RESERVED3[7]; - union { - __IO uint8_t ODDPKS1; - stc_intreq_oddpks1_field_t ODDPKS1_f; - }; -}FM3_INTREQ_TypeDef; - -/****************************************************************************** - * GPIO_MODULE - ******************************************************************************/ -/* General purpose I/O registers */ -typedef struct -{ - union { - __IO uint32_t PFR0; - stc_gpio_pfr0_field_t PFR0_f; - }; - union { - __IO uint32_t PFR1; - stc_gpio_pfr1_field_t PFR1_f; - }; - union { - __IO uint32_t PFR2; - stc_gpio_pfr2_field_t PFR2_f; - }; - union { - __IO uint32_t PFR3; - stc_gpio_pfr3_field_t PFR3_f; - }; - union { - __IO uint32_t PFR4; - stc_gpio_pfr4_field_t PFR4_f; - }; - union { - __IO uint32_t PFR5; - stc_gpio_pfr5_field_t PFR5_f; - }; - union { - __IO uint32_t PFR6; - stc_gpio_pfr6_field_t PFR6_f; - }; - union { - __IO uint32_t PFR7; - stc_gpio_pfr7_field_t PFR7_f; - }; - union { - __IO uint32_t PFR8; - stc_gpio_pfr8_field_t PFR8_f; - }; - union { - __IO uint32_t PFR9; - stc_gpio_pfr9_field_t PFR9_f; - }; - union { - __IO uint32_t PFRA; - stc_gpio_pfra_field_t PFRA_f; - }; - union { - __IO uint32_t PFRB; - stc_gpio_pfrb_field_t PFRB_f; - }; - union { - __IO uint32_t PFRC; - stc_gpio_pfrc_field_t PFRC_f; - }; - union { - __IO uint32_t PFRD; - stc_gpio_pfrd_field_t PFRD_f; - }; - union { - __IO uint32_t PFRE; - stc_gpio_pfre_field_t PFRE_f; - }; - union { - __IO uint32_t PFRF; - stc_gpio_pfrf_field_t PFRF_f; - }; - uint8_t RESERVED0[192]; - union { - __IO uint32_t PCR0; - stc_gpio_pcr0_field_t PCR0_f; - }; - union { - __IO uint32_t PCR1; - stc_gpio_pcr1_field_t PCR1_f; - }; - union { - __IO uint32_t PCR2; - stc_gpio_pcr2_field_t PCR2_f; - }; - union { - __IO uint32_t PCR3; - stc_gpio_pcr3_field_t PCR3_f; - }; - union { - __IO uint32_t PCR4; - stc_gpio_pcr4_field_t PCR4_f; - }; - union { - __IO uint32_t PCR5; - stc_gpio_pcr5_field_t PCR5_f; - }; - union { - __IO uint32_t PCR6; - stc_gpio_pcr6_field_t PCR6_f; - }; - union { - __IO uint32_t PCR7; - stc_gpio_pcr7_field_t PCR7_f; - }; - __IO uint32_t PCR8; - union { - __IO uint32_t PCR9; - stc_gpio_pcr9_field_t PCR9_f; - }; - union { - __IO uint32_t PCRA; - stc_gpio_pcra_field_t PCRA_f; - }; - union { - __IO uint32_t PCRB; - stc_gpio_pcrb_field_t PCRB_f; - }; - union { - __IO uint32_t PCRC; - stc_gpio_pcrc_field_t PCRC_f; - }; - union { - __IO uint32_t PCRD; - stc_gpio_pcrd_field_t PCRD_f; - }; - union { - __IO uint32_t PCRE; - stc_gpio_pcre_field_t PCRE_f; - }; - __IO uint32_t PCRF; - uint8_t RESERVED1[192]; - union { - __IO uint32_t DDR0; - stc_gpio_ddr0_field_t DDR0_f; - }; - union { - __IO uint32_t DDR1; - stc_gpio_ddr1_field_t DDR1_f; - }; - union { - __IO uint32_t DDR2; - stc_gpio_ddr2_field_t DDR2_f; - }; - union { - __IO uint32_t DDR3; - stc_gpio_ddr3_field_t DDR3_f; - }; - union { - __IO uint32_t DDR4; - stc_gpio_ddr4_field_t DDR4_f; - }; - union { - __IO uint32_t DDR5; - stc_gpio_ddr5_field_t DDR5_f; - }; - union { - __IO uint32_t DDR6; - stc_gpio_ddr6_field_t DDR6_f; - }; - union { - __IO uint32_t DDR7; - stc_gpio_ddr7_field_t DDR7_f; - }; - union { - __IO uint32_t DDR8; - stc_gpio_ddr8_field_t DDR8_f; - }; - union { - __IO uint32_t DDR9; - stc_gpio_ddr9_field_t DDR9_f; - }; - union { - __IO uint32_t DDRA; - stc_gpio_ddra_field_t DDRA_f; - }; - union { - __IO uint32_t DDRB; - stc_gpio_ddrb_field_t DDRB_f; - }; - union { - __IO uint32_t DDRC; - stc_gpio_ddrc_field_t DDRC_f; - }; - union { - __IO uint32_t DDRD; - stc_gpio_ddrd_field_t DDRD_f; - }; - union { - __IO uint32_t DDRE; - stc_gpio_ddre_field_t DDRE_f; - }; - union { - __IO uint32_t DDRF; - stc_gpio_ddrf_field_t DDRF_f; - }; - uint8_t RESERVED2[192]; - union { - __IO uint32_t PDIR0; - stc_gpio_pdir0_field_t PDIR0_f; - }; - union { - __IO uint32_t PDIR1; - stc_gpio_pdir1_field_t PDIR1_f; - }; - union { - __IO uint32_t PDIR2; - stc_gpio_pdir2_field_t PDIR2_f; - }; - union { - __IO uint32_t PDIR3; - stc_gpio_pdir3_field_t PDIR3_f; - }; - union { - __IO uint32_t PDIR4; - stc_gpio_pdir4_field_t PDIR4_f; - }; - union { - __IO uint32_t PDIR5; - stc_gpio_pdir5_field_t PDIR5_f; - }; - union { - __IO uint32_t PDIR6; - stc_gpio_pdir6_field_t PDIR6_f; - }; - union { - __IO uint32_t PDIR7; - stc_gpio_pdir7_field_t PDIR7_f; - }; - union { - __IO uint32_t PDIR8; - stc_gpio_pdir8_field_t PDIR8_f; - }; - union { - __IO uint32_t PDIR9; - stc_gpio_pdir9_field_t PDIR9_f; - }; - union { - __IO uint32_t PDIRA; - stc_gpio_pdira_field_t PDIRA_f; - }; - union { - __IO uint32_t PDIRB; - stc_gpio_pdirb_field_t PDIRB_f; - }; - union { - __IO uint32_t PDIRC; - stc_gpio_pdirc_field_t PDIRC_f; - }; - union { - __IO uint32_t PDIRD; - stc_gpio_pdird_field_t PDIRD_f; - }; - union { - __IO uint32_t PDIRE; - stc_gpio_pdire_field_t PDIRE_f; - }; - union { - __IO uint32_t PDIRF; - stc_gpio_pdirf_field_t PDIRF_f; - }; - uint8_t RESERVED3[192]; - union { - __IO uint32_t PDOR0; - stc_gpio_pdor0_field_t PDOR0_f; - }; - union { - __IO uint32_t PDOR1; - stc_gpio_pdor1_field_t PDOR1_f; - }; - union { - __IO uint32_t PDOR2; - stc_gpio_pdor2_field_t PDOR2_f; - }; - union { - __IO uint32_t PDOR3; - stc_gpio_pdor3_field_t PDOR3_f; - }; - union { - __IO uint32_t PDOR4; - stc_gpio_pdor4_field_t PDOR4_f; - }; - union { - __IO uint32_t PDOR5; - stc_gpio_pdor5_field_t PDOR5_f; - }; - union { - __IO uint32_t PDOR6; - stc_gpio_pdor6_field_t PDOR6_f; - }; - union { - __IO uint32_t PDOR7; - stc_gpio_pdor7_field_t PDOR7_f; - }; - union { - __IO uint32_t PDOR8; - stc_gpio_pdor8_field_t PDOR8_f; - }; - union { - __IO uint32_t PDOR9; - stc_gpio_pdor9_field_t PDOR9_f; - }; - union { - __IO uint32_t PDORA; - stc_gpio_pdora_field_t PDORA_f; - }; - union { - __IO uint32_t PDORB; - stc_gpio_pdorb_field_t PDORB_f; - }; - union { - __IO uint32_t PDORC; - stc_gpio_pdorc_field_t PDORC_f; - }; - union { - __IO uint32_t PDORD; - stc_gpio_pdord_field_t PDORD_f; - }; - union { - __IO uint32_t PDORE; - stc_gpio_pdore_field_t PDORE_f; - }; - union { - __IO uint32_t PDORF; - stc_gpio_pdorf_field_t PDORF_f; - }; - uint8_t RESERVED4[192]; - union { - __IO uint32_t ADE; - stc_gpio_ade_field_t ADE_f; - }; - uint8_t RESERVED5[124]; - union { - __IO uint32_t SPSR; - stc_gpio_spsr_field_t SPSR_f; - }; - uint8_t RESERVED6[124]; - union { - __IO uint32_t EPFR00; - stc_gpio_epfr00_field_t EPFR00_f; - }; - union { - __IO uint32_t EPFR01; - stc_gpio_epfr01_field_t EPFR01_f; - }; - union { - __IO uint32_t EPFR02; - stc_gpio_epfr02_field_t EPFR02_f; - }; - union { - __IO uint32_t EPFR03; - stc_gpio_epfr03_field_t EPFR03_f; - }; - union { - __IO uint32_t EPFR04; - stc_gpio_epfr04_field_t EPFR04_f; - }; - union { - __IO uint32_t EPFR05; - stc_gpio_epfr05_field_t EPFR05_f; - }; - union { - __IO uint32_t EPFR06; - stc_gpio_epfr06_field_t EPFR06_f; - }; - union { - __IO uint32_t EPFR07; - stc_gpio_epfr07_field_t EPFR07_f; - }; - union { - __IO uint32_t EPFR08; - stc_gpio_epfr08_field_t EPFR08_f; - }; - union { - __IO uint32_t EPFR09; - stc_gpio_epfr09_field_t EPFR09_f; - }; - union { - __IO uint32_t EPFR10; - stc_gpio_epfr10_field_t EPFR10_f; - }; - union { - __IO uint32_t EPFR11; - stc_gpio_epfr11_field_t EPFR11_f; - }; - union { - __IO uint32_t EPFR12; - stc_gpio_epfr12_field_t EPFR12_f; - }; - union { - __IO uint32_t EPFR13; - stc_gpio_epfr13_field_t EPFR13_f; - }; - union { - __IO uint32_t EPFR14; - stc_gpio_epfr14_field_t EPFR14_f; - }; - union { - __IO uint32_t EPFR15; - stc_gpio_epfr15_field_t EPFR15_f; - }; - uint8_t RESERVED7[192]; - union { - __IO uint32_t PZR0; - stc_gpio_pzr0_field_t PZR0_f; - }; - union { - __IO uint32_t PZR1; - stc_gpio_pzr1_field_t PZR1_f; - }; - union { - __IO uint32_t PZR2; - stc_gpio_pzr2_field_t PZR2_f; - }; - union { - __IO uint32_t PZR3; - stc_gpio_pzr3_field_t PZR3_f; - }; - union { - __IO uint32_t PZR4; - stc_gpio_pzr4_field_t PZR4_f; - }; - union { - __IO uint32_t PZR5; - stc_gpio_pzr5_field_t PZR5_f; - }; - union { - __IO uint32_t PZR6; - stc_gpio_pzr6_field_t PZR6_f; - }; - union { - __IO uint32_t PZR7; - stc_gpio_pzr7_field_t PZR7_f; - }; - union { - __IO uint32_t PZR8; - stc_gpio_pzr8_field_t PZR8_f; - }; - union { - __IO uint32_t PZR9; - stc_gpio_pzr9_field_t PZR9_f; - }; - union { - __IO uint32_t PZRA; - stc_gpio_pzra_field_t PZRA_f; - }; - union { - __IO uint32_t PZRB; - stc_gpio_pzrb_field_t PZRB_f; - }; - union { - __IO uint32_t PZRC; - stc_gpio_pzrc_field_t PZRC_f; - }; - union { - __IO uint32_t PZRD; - stc_gpio_pzrd_field_t PZRD_f; - }; - union { - __IO uint32_t PZRE; - stc_gpio_pzre_field_t PZRE_f; - }; - union { - __IO uint32_t PZRF; - stc_gpio_pzrf_field_t PZRF_f; - }; -}FM3_GPIO_TypeDef; - -/****************************************************************************** - * LVD_MODULE - ******************************************************************************/ -/* Low voltage detection registers */ -typedef struct -{ - union { - __IO uint8_t LVD_CTL; - stc_lvd_lvd_ctl_field_t LVD_CTL_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t LVD_STR; - stc_lvd_lvd_str_field_t LVD_STR_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t LVD_CLR; - stc_lvd_lvd_clr_field_t LVD_CLR_f; - }; - uint8_t RESERVED2[3]; - __IO uint32_t LVD_RLR; - union { - __IO uint8_t LVD_STR2; - stc_lvd_lvd_str2_field_t LVD_STR2_f; - }; -}FM3_LVD_TypeDef; - -/****************************************************************************** - * USBETHERNETCLK - ******************************************************************************/ -/* USB Ethernet clock registers */ -typedef struct -{ - union { - __IO uint8_t UCCR; - stc_usbethernetclk_uccr_field_t UCCR_f; - }; - uint8_t RESERVED0[3]; - union { - __IO uint8_t UPCR1; - stc_usbethernetclk_upcr1_field_t UPCR1_f; - }; - uint8_t RESERVED1[3]; - union { - __IO uint8_t UPCR2; - stc_usbethernetclk_upcr2_field_t UPCR2_f; - }; - uint8_t RESERVED2[3]; - union { - __IO uint8_t UPCR3; - stc_usbethernetclk_upcr3_field_t UPCR3_f; - }; - uint8_t RESERVED3[3]; - union { - __IO uint8_t UPCR4; - stc_usbethernetclk_upcr4_field_t UPCR4_f; - }; - uint8_t RESERVED4[3]; - union { - __IO uint8_t UP_STR; - stc_usbethernetclk_up_str_field_t UP_STR_f; - }; - uint8_t RESERVED5[3]; - union { - __IO uint8_t UPINT_ENR; - stc_usbethernetclk_upint_enr_field_t UPINT_ENR_f; - }; - uint8_t RESERVED6[3]; - union { - __IO uint8_t UPINT_CLR; - stc_usbethernetclk_upint_clr_field_t UPINT_CLR_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint8_t UPINT_STR; - stc_usbethernetclk_upint_str_field_t UPINT_STR_f; - }; - uint8_t RESERVED8[3]; - union { - __IO uint8_t UPCR5; - stc_usbethernetclk_upcr5_field_t UPCR5_f; - }; - uint8_t RESERVED9[3]; - union { - __IO uint8_t UPCR6; - stc_usbethernetclk_upcr6_field_t UPCR6_f; - }; - uint8_t RESERVED10[3]; - union { - __IO uint8_t UPCR7; - stc_usbethernetclk_upcr7_field_t UPCR7_f; - }; - uint8_t RESERVED11[3]; - union { - __IO uint8_t USBEN0; - stc_usbethernetclk_usben0_field_t USBEN0_f; - }; - uint8_t RESERVED12[3]; - union { - __IO uint8_t USBEN1; - stc_usbethernetclk_usben1_field_t USBEN1_f; - }; -}FM3_USBETHERNETCLK_TypeDef; - -/****************************************************************************** - * MFS03_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_uart_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_uart_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_uart_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_uart_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint16_t RDR; - stc_mfs03_uart_rdr_field_t RDR_f; - }; - union { - __IO uint16_t TDR; - stc_mfs03_uart_tdr_field_t TDR_f; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs03_uart_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs03_uart_bgr1_field_t BGR1_f; - }; - }; - }; -}FM3_MFS03_UART_TypeDef; - -/****************************************************************************** - * MFS03_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_csio_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_csio_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_csio_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_csio_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; -}FM3_MFS03_CSIO_TypeDef; - -/****************************************************************************** - * MFS03_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_lin_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs03_lin_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs03_lin_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_lin_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs03_lin_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs03_lin_bgr1_field_t BGR1_f; - }; - }; - }; -}FM3_MFS03_LIN_TypeDef; - -/****************************************************************************** - * MFS03_I2C_MODULE - ******************************************************************************/ -/* I2C channel 0 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs03_i2c_smr_field_t SMR_f; - }; - union { - __IO uint8_t IBCR; - stc_mfs03_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t IBSR; - stc_mfs03_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs03_i2c_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t ISBA; - stc_mfs03_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs03_i2c_ismk_field_t ISMK_f; - }; -}FM3_MFS03_I2C_TypeDef; - -/****************************************************************************** - * MFS47_UART_MODULE - ******************************************************************************/ -/* UART asynchronous channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_uart_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_uart_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_uart_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_uart_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - union { - __IO uint16_t RDR; - stc_mfs47_uart_rdr_field_t RDR_f; - }; - union { - __IO uint16_t TDR; - stc_mfs47_uart_tdr_field_t TDR_f; - }; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs47_uart_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs47_uart_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_uart_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_uart_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_uart_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_uart_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_uart_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_uart_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_UART_TypeDef; - -/****************************************************************************** - * MFS47_CSIO_MODULE - ******************************************************************************/ -/* UART synchronous channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_csio_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_csio_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_csio_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_csio_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_csio_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_csio_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_csio_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_csio_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_csio_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_csio_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_CSIO_TypeDef; - -/****************************************************************************** - * MFS47_LIN_MODULE - ******************************************************************************/ -/* UART LIN channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_lin_smr_field_t SMR_f; - }; - union { - __IO uint8_t SCR; - stc_mfs47_lin_scr_field_t SCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t ESCR; - stc_mfs47_lin_escr_field_t ESCR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_lin_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t BGR; - stc_mfs47_lin_bgr_field_t BGR_f; - }; - struct { - __IO uint8_t BGR0; - union { - __IO uint8_t BGR1; - stc_mfs47_lin_bgr1_field_t BGR1_f; - }; - }; - }; - uint8_t RESERVED3[6]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_lin_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_lin_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_lin_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_lin_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_lin_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_lin_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_LIN_TypeDef; - -/****************************************************************************** - * MFS47_I2C_MODULE - ******************************************************************************/ -/* I2C channel 4 registers */ -typedef struct -{ - union { - __IO uint8_t SMR; - stc_mfs47_i2c_smr_field_t SMR_f; - }; - union { - __IO uint8_t IBCR; - stc_mfs47_i2c_ibcr_field_t IBCR_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t IBSR; - stc_mfs47_i2c_ibsr_field_t IBSR_f; - }; - union { - __IO uint8_t SSR; - stc_mfs47_i2c_ssr_field_t SSR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t RDR; - __IO uint16_t TDR; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t BGR; - struct { - __IO uint8_t BGR0; - __IO uint8_t BGR1; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t ISBA; - stc_mfs47_i2c_isba_field_t ISBA_f; - }; - union { - __IO uint8_t ISMK; - stc_mfs47_i2c_ismk_field_t ISMK_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t FCR; - stc_mfs47_i2c_fcr_field_t FCR_f; - }; - struct { - union { - __IO uint8_t FCR0; - stc_mfs47_i2c_fcr0_field_t FCR0_f; - }; - union { - __IO uint8_t FCR1; - stc_mfs47_i2c_fcr1_field_t FCR1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t FBYTE; - stc_mfs47_i2c_fbyte_field_t FBYTE_f; - }; - struct { - union { - __IO uint8_t FBYTE1; - stc_mfs47_i2c_fbyte1_field_t FBYTE1_f; - }; - union { - __IO uint8_t FBYTE2; - stc_mfs47_i2c_fbyte2_field_t FBYTE2_f; - }; - }; - }; -}FM3_MFS47_I2C_TypeDef; - -/****************************************************************************** - * MFS_NFC_MODULE - ******************************************************************************/ -/* MFS_NFC_MODULE register bit fields */ -typedef struct -{ - union { - __IO uint16_t I2CDNF; - stc_mfs_nfc_i2cdnf_field_t I2CDNF_f; - }; -}FM3_MFS_NFC_TypeDef; - -/****************************************************************************** - * CRC_MODULE - ******************************************************************************/ -/* CRC registers */ -typedef struct -{ - union { - __IO uint8_t CRCCR; - stc_crc_crccr_field_t CRCCR_f; - }; - uint8_t RESERVED0[3]; - __IO uint32_t CRCINIT; - union { - __IO uint32_t CRCIN; - struct { - union { - __IO uint16_t CRCINL; - struct { - __IO uint8_t CRCINLL; - __IO uint8_t CRCINLH; - }; - }; - union { - __IO uint16_t CRCINH; - struct { - __IO uint8_t CRCINHL; - __IO uint8_t CRCINHH; - }; - }; - }; - }; - __IO uint32_t CRCR; -}FM3_CRC_TypeDef; - -/****************************************************************************** - * WC_MODULE - ******************************************************************************/ -/* Watch counter registers */ -typedef struct -{ - union { - __IO uint8_t WCRD; - stc_wc_wcrd_field_t WCRD_f; - }; - union { - __IO uint8_t WCRL; - stc_wc_wcrl_field_t WCRL_f; - }; - union { - __IO uint8_t WCCR; - stc_wc_wccr_field_t WCCR_f; - }; - uint8_t RESERVED0[13]; - union { - __IO uint16_t CLK_SEL; - stc_wc_clk_sel_field_t CLK_SEL_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t CLK_EN; - stc_wc_clk_en_field_t CLK_EN_f; - }; -}FM3_WC_TypeDef; - -/****************************************************************************** - * EXBUS_MODULE - ******************************************************************************/ -/* External bus interface registers */ -typedef struct -{ - union { - __IO uint32_t MODE0; - stc_exbus_mode0_field_t MODE0_f; - }; - union { - __IO uint32_t MODE1; - stc_exbus_mode1_field_t MODE1_f; - }; - union { - __IO uint32_t MODE2; - stc_exbus_mode2_field_t MODE2_f; - }; - union { - __IO uint32_t MODE3; - stc_exbus_mode3_field_t MODE3_f; - }; - union { - __IO uint32_t MODE4; - stc_exbus_mode4_field_t MODE4_f; - }; - union { - __IO uint32_t MODE5; - stc_exbus_mode5_field_t MODE5_f; - }; - union { - __IO uint32_t MODE6; - stc_exbus_mode6_field_t MODE6_f; - }; - union { - __IO uint32_t MODE7; - stc_exbus_mode7_field_t MODE7_f; - }; - union { - __IO uint32_t TIM0; - stc_exbus_tim0_field_t TIM0_f; - }; - union { - __IO uint32_t TIM1; - stc_exbus_tim1_field_t TIM1_f; - }; - union { - __IO uint32_t TIM2; - stc_exbus_tim2_field_t TIM2_f; - }; - union { - __IO uint32_t TIM3; - stc_exbus_tim3_field_t TIM3_f; - }; - union { - __IO uint32_t TIM4; - stc_exbus_tim4_field_t TIM4_f; - }; - union { - __IO uint32_t TIM5; - stc_exbus_tim5_field_t TIM5_f; - }; - union { - __IO uint32_t TIM6; - stc_exbus_tim6_field_t TIM6_f; - }; - union { - __IO uint32_t TIM7; - stc_exbus_tim7_field_t TIM7_f; - }; - union { - __IO uint32_t AREA0; - stc_exbus_area0_field_t AREA0_f; - }; - union { - __IO uint32_t AREA1; - stc_exbus_area1_field_t AREA1_f; - }; - union { - __IO uint32_t AREA2; - stc_exbus_area2_field_t AREA2_f; - }; - union { - __IO uint32_t AREA3; - stc_exbus_area3_field_t AREA3_f; - }; - union { - __IO uint32_t AREA4; - stc_exbus_area4_field_t AREA4_f; - }; - union { - __IO uint32_t AREA5; - stc_exbus_area5_field_t AREA5_f; - }; - union { - __IO uint32_t AREA6; - stc_exbus_area6_field_t AREA6_f; - }; - union { - __IO uint32_t AREA7; - stc_exbus_area7_field_t AREA7_f; - }; - union { - __IO uint16_t ATIM0; - stc_exbus_atim0_field_t ATIM0_f; - }; - uint8_t RESERVED0[2]; - union { - __IO uint16_t ATIM1; - stc_exbus_atim1_field_t ATIM1_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint16_t ATIM2; - stc_exbus_atim2_field_t ATIM2_f; - }; - uint8_t RESERVED2[2]; - union { - __IO uint16_t ATIM3; - stc_exbus_atim3_field_t ATIM3_f; - }; - uint8_t RESERVED3[2]; - union { - __IO uint16_t ATIM4; - stc_exbus_atim4_field_t ATIM4_f; - }; - uint8_t RESERVED4[2]; - union { - __IO uint16_t ATIM5; - stc_exbus_atim5_field_t ATIM5_f; - }; - uint8_t RESERVED5[2]; - union { - __IO uint16_t ATIM6; - stc_exbus_atim6_field_t ATIM6_f; - }; - uint8_t RESERVED6[2]; - union { - __IO uint16_t ATIM7; - stc_exbus_atim7_field_t ATIM7_f; - }; - uint8_t RESERVED7[642]; - union { - __IO uint8_t DCLKR; - stc_exbus_dclkr_field_t DCLKR_f; - }; -}FM3_EXBUS_TypeDef; - -/****************************************************************************** - * USB_MODULE - ******************************************************************************/ -/* USB channel 0 registers */ -typedef struct -{ - union { - union { - __IO uint16_t HCNT; - stc_usb_hcnt_field_t HCNT_f; - }; - struct { - union { - __IO uint8_t HCNT0; - stc_usb_hcnt0_field_t HCNT0_f; - }; - union { - __IO uint8_t HCNT1; - stc_usb_hcnt1_field_t HCNT1_f; - }; - }; - }; - uint8_t RESERVED0[2]; - union { - __IO uint8_t HIRQ; - stc_usb_hirq_field_t HIRQ_f; - }; - union { - __IO uint8_t HERR; - stc_usb_herr_field_t HERR_f; - }; - uint8_t RESERVED1[2]; - union { - __IO uint8_t HSTATE; - stc_usb_hstate_field_t HSTATE_f; - }; - union { - __IO uint8_t HFCOMP; - stc_usb_hfcomp_field_t HFCOMP_f; - }; - uint8_t RESERVED2[2]; - union { - union { - __IO uint16_t HRTIMER; - stc_usb_hrtimer_field_t HRTIMER_f; - }; - struct { - union { - __IO uint8_t HRTIMER0; - stc_usb_hrtimer0_field_t HRTIMER0_f; - }; - union { - __IO uint8_t HRTIMER1; - stc_usb_hrtimer1_field_t HRTIMER1_f; - }; - }; - }; - uint8_t RESERVED3[2]; - union { - __IO uint8_t HRTIMER2; - stc_usb_hrtimer2_field_t HRTIMER2_f; - }; - union { - __IO uint8_t HADR; - stc_usb_hadr_field_t HADR_f; - }; - uint8_t RESERVED4[2]; - union { - union { - __IO uint16_t HEOF; - stc_usb_heof_field_t HEOF_f; - }; - struct { - union { - __IO uint8_t HEOF0; - stc_usb_heof0_field_t HEOF0_f; - }; - union { - __IO uint8_t HEOF1; - stc_usb_heof1_field_t HEOF1_f; - }; - }; - }; - uint8_t RESERVED5[2]; - union { - union { - __IO uint16_t HFRAME; - stc_usb_hframe_field_t HFRAME_f; - }; - struct { - union { - __IO uint8_t HFRAME0; - stc_usb_hframe0_field_t HFRAME0_f; - }; - union { - __IO uint8_t HFRAME1; - stc_usb_hframe1_field_t HFRAME1_f; - }; - }; - }; - uint8_t RESERVED6[2]; - union { - __IO uint8_t HTOKEN; - stc_usb_htoken_field_t HTOKEN_f; - }; - uint8_t RESERVED7[3]; - union { - __IO uint16_t UDCC; - stc_usb_udcc_field_t UDCC_f; - }; - uint8_t RESERVED8[2]; - union { - __IO uint16_t EP0C; - stc_usb_ep0c_field_t EP0C_f; - }; - uint8_t RESERVED9[2]; - union { - __IO uint16_t EP1C; - stc_usb_ep1c_field_t EP1C_f; - }; - uint8_t RESERVED10[2]; - union { - __IO uint16_t EP2C; - stc_usb_ep2c_field_t EP2C_f; - }; - uint8_t RESERVED11[2]; - union { - __IO uint16_t EP3C; - stc_usb_ep3c_field_t EP3C_f; - }; - uint8_t RESERVED12[2]; - union { - __IO uint16_t EP4C; - stc_usb_ep4c_field_t EP4C_f; - }; - uint8_t RESERVED13[2]; - union { - __IO uint16_t EP5C; - stc_usb_ep5c_field_t EP5C_f; - }; - uint8_t RESERVED14[2]; - union { - __IO uint16_t TMSP; - stc_usb_tmsp_field_t TMSP_f; - }; - uint8_t RESERVED15[2]; - union { - __IO uint8_t UDCS; - stc_usb_udcs_field_t UDCS_f; - }; - union { - __IO uint8_t UDCIE; - stc_usb_udcie_field_t UDCIE_f; - }; - uint8_t RESERVED16[2]; - union { - __IO uint16_t EP0IS; - stc_usb_ep0is_field_t EP0IS_f; - }; - uint8_t RESERVED17[2]; - union { - __IO uint16_t EP0OS; - stc_usb_ep0os_field_t EP0OS_f; - }; - uint8_t RESERVED18[2]; - union { - __IO uint16_t EP1S; - stc_usb_ep1s_field_t EP1S_f; - }; - uint8_t RESERVED19[2]; - union { - __IO uint16_t EP2S; - stc_usb_ep2s_field_t EP2S_f; - }; - uint8_t RESERVED20[2]; - __IO uint16_t EP3S; - uint8_t RESERVED21[2]; - union { - __IO uint16_t EP4S; - stc_usb_ep4s_field_t EP4S_f; - }; - uint8_t RESERVED22[2]; - union { - __IO uint16_t EP5S; - stc_usb_ep5s_field_t EP5S_f; - }; - uint8_t RESERVED23[2]; - union { - __IO uint16_t EP0DT; - struct { - __IO uint8_t EP0DTL; - __IO uint8_t EP0DTH; - }; - }; - uint8_t RESERVED24[2]; - union { - __IO uint16_t EP1DT; - struct { - __IO uint8_t EP1DTL; - __IO uint8_t EP1DTH; - }; - }; - uint8_t RESERVED25[2]; - union { - __IO uint16_t EP2DT; - struct { - __IO uint8_t EP2DTL; - __IO uint8_t EP2DTH; - }; - }; - uint8_t RESERVED26[2]; - union { - __IO uint16_t EP3DT; - struct { - __IO uint8_t EP3DTL; - __IO uint8_t EP3DTH; - }; - }; - uint8_t RESERVED27[2]; - union { - __IO uint16_t EP4DT; - struct { - __IO uint8_t EP4DTL; - __IO uint8_t EP4DTH; - }; - }; - uint8_t RESERVED28[2]; - union { - __IO uint16_t EP5DT; - struct { - __IO uint8_t EP5DTL; - __IO uint8_t EP5DTH; - }; - }; -}FM3_USB_TypeDef; - -/****************************************************************************** - * DMAC_MODULE - ******************************************************************************/ -/* DMA controller */ -typedef struct -{ - union { - __IO uint32_t DMACR; - stc_dmac_dmacr_field_t DMACR_f; - }; - uint8_t RESERVED0[12]; - union { - __IO uint32_t DMACA0; - stc_dmac_dmaca0_field_t DMACA0_f; - }; - union { - __IO uint32_t DMACB0; - stc_dmac_dmacb0_field_t DMACB0_f; - }; - __IO uint32_t DMACSA0; - __IO uint32_t DMACDA0; - union { - __IO uint32_t DMACA1; - stc_dmac_dmaca1_field_t DMACA1_f; - }; - union { - __IO uint32_t DMACB1; - stc_dmac_dmacb1_field_t DMACB1_f; - }; - __IO uint32_t DMACSA1; - __IO uint32_t DMACDA1; - union { - __IO uint32_t DMACA2; - stc_dmac_dmaca2_field_t DMACA2_f; - }; - union { - __IO uint32_t DMACB2; - stc_dmac_dmacb2_field_t DMACB2_f; - }; - __IO uint32_t DMACSA2; - __IO uint32_t DMACDA2; - union { - __IO uint32_t DMACA3; - stc_dmac_dmaca3_field_t DMACA3_f; - }; - union { - __IO uint32_t DMACB3; - stc_dmac_dmacb3_field_t DMACB3_f; - }; - __IO uint32_t DMACSA3; - __IO uint32_t DMACDA3; - union { - __IO uint32_t DMACA4; - stc_dmac_dmaca4_field_t DMACA4_f; - }; - union { - __IO uint32_t DMACB4; - stc_dmac_dmacb4_field_t DMACB4_f; - }; - __IO uint32_t DMACSA4; - __IO uint32_t DMACDA4; - union { - __IO uint32_t DMACA5; - stc_dmac_dmaca5_field_t DMACA5_f; - }; - union { - __IO uint32_t DMACB5; - stc_dmac_dmacb5_field_t DMACB5_f; - }; - __IO uint32_t DMACSA5; - __IO uint32_t DMACDA5; - union { - __IO uint32_t DMACA6; - stc_dmac_dmaca6_field_t DMACA6_f; - }; - union { - __IO uint32_t DMACB6; - stc_dmac_dmacb6_field_t DMACB6_f; - }; - __IO uint32_t DMACSA6; - __IO uint32_t DMACDA6; - union { - __IO uint32_t DMACA7; - stc_dmac_dmaca7_field_t DMACA7_f; - }; - union { - __IO uint32_t DMACB7; - stc_dmac_dmacb7_field_t DMACB7_f; - }; - __IO uint32_t DMACSA7; - __IO uint32_t DMACDA7; -}FM3_DMAC_TypeDef; - -/****************************************************************************** - * ETHERNET_MAC_MODULE - ******************************************************************************/ -/* ETHERNET-MAC registers */ -typedef struct -{ - union { - __IO uint32_t MCR; - stc_ethernet_mac_mcr_field_t MCR_f; - }; - union { - __IO uint32_t MFFR; - stc_ethernet_mac_mffr_field_t MFFR_f; - }; - union { - __IO uint32_t MHTRH; - stc_ethernet_mac_mhtrh_field_t MHTRH_f; - }; - union { - __IO uint32_t MHTRL; - stc_ethernet_mac_mhtrl_field_t MHTRL_f; - }; - union { - __IO uint32_t GAR; - stc_ethernet_mac_gar_field_t GAR_f; - }; - union { - __IO uint32_t GDR; - stc_ethernet_mac_gdr_field_t GDR_f; - }; - union { - __IO uint32_t FCR; - stc_ethernet_mac_fcr_field_t FCR_f; - }; - union { - __IO uint32_t VTR; - stc_ethernet_mac_vtr_field_t VTR_f; - }; - uint8_t RESERVED0[8]; - union { - __IO uint32_t RWFFR; - stc_ethernet_mac_rwffr_field_t RWFFR_f; - }; - union { - __IO uint32_t PMTR; - stc_ethernet_mac_pmtr_field_t PMTR_f; - }; - union { - __IO uint32_t LPICSR; - stc_ethernet_mac_lpicsr_field_t LPICSR_f; - }; - union { - __IO uint32_t LPITCR; - stc_ethernet_mac_lpitcr_field_t LPITCR_f; - }; - union { - __IO uint32_t ISR; - stc_ethernet_mac_isr_field_t ISR_f; - }; - union { - __IO uint32_t IMR; - stc_ethernet_mac_imr_field_t IMR_f; - }; - union { - __IO uint32_t MAR0H; - stc_ethernet_mac_mar0h_field_t MAR0H_f; - }; - union { - __IO uint32_t MAR0L; - stc_ethernet_mac_mar0l_field_t MAR0L_f; - }; - union { - __IO uint32_t MAR1H; - stc_ethernet_mac_mar1h_field_t MAR1H_f; - }; - union { - __IO uint32_t MAR1L; - stc_ethernet_mac_mar1l_field_t MAR1L_f; - }; - union { - __IO uint32_t MAR2H; - stc_ethernet_mac_mar2h_field_t MAR2H_f; - }; - union { - __IO uint32_t MAR2L; - stc_ethernet_mac_mar2l_field_t MAR2L_f; - }; - union { - __IO uint32_t MAR3H; - stc_ethernet_mac_mar3h_field_t MAR3H_f; - }; - union { - __IO uint32_t MAR3L; - stc_ethernet_mac_mar3l_field_t MAR3L_f; - }; - union { - __IO uint32_t MAR4H; - stc_ethernet_mac_mar4h_field_t MAR4H_f; - }; - union { - __IO uint32_t MAR4L; - stc_ethernet_mac_mar4l_field_t MAR4L_f; - }; - union { - __IO uint32_t MAR5H; - stc_ethernet_mac_mar5h_field_t MAR5H_f; - }; - union { - __IO uint32_t MAR5L; - stc_ethernet_mac_mar5l_field_t MAR5L_f; - }; - union { - __IO uint32_t MAR6H; - stc_ethernet_mac_mar6h_field_t MAR6H_f; - }; - union { - __IO uint32_t MAR6L; - stc_ethernet_mac_mar6l_field_t MAR6L_f; - }; - union { - __IO uint32_t MAR7H; - stc_ethernet_mac_mar7h_field_t MAR7H_f; - }; - union { - __IO uint32_t MAR7L; - stc_ethernet_mac_mar7l_field_t MAR7L_f; - }; - union { - __IO uint32_t MAR8H; - stc_ethernet_mac_mar8h_field_t MAR8H_f; - }; - union { - __IO uint32_t MAR8L; - stc_ethernet_mac_mar8l_field_t MAR8L_f; - }; - union { - __IO uint32_t MAR9H; - stc_ethernet_mac_mar9h_field_t MAR9H_f; - }; - union { - __IO uint32_t MAR9L; - stc_ethernet_mac_mar9l_field_t MAR9L_f; - }; - union { - __IO uint32_t MAR10H; - stc_ethernet_mac_mar10h_field_t MAR10H_f; - }; - union { - __IO uint32_t MAR10L; - stc_ethernet_mac_mar10l_field_t MAR10L_f; - }; - union { - __IO uint32_t MAR11H; - stc_ethernet_mac_mar11h_field_t MAR11H_f; - }; - union { - __IO uint32_t MAR11L; - stc_ethernet_mac_mar11l_field_t MAR11L_f; - }; - union { - __IO uint32_t MAR12H; - stc_ethernet_mac_mar12h_field_t MAR12H_f; - }; - union { - __IO uint32_t MAR12L; - stc_ethernet_mac_mar12l_field_t MAR12L_f; - }; - union { - __IO uint32_t MAR13H; - stc_ethernet_mac_mar13h_field_t MAR13H_f; - }; - union { - __IO uint32_t MAR13L; - stc_ethernet_mac_mar13l_field_t MAR13L_f; - }; - union { - __IO uint32_t MAR14H; - stc_ethernet_mac_mar14h_field_t MAR14H_f; - }; - union { - __IO uint32_t MAR14L; - stc_ethernet_mac_mar14l_field_t MAR14L_f; - }; - union { - __IO uint32_t MAR15H; - stc_ethernet_mac_mar15h_field_t MAR15H_f; - }; - union { - __IO uint32_t MAR15L; - stc_ethernet_mac_mar15l_field_t MAR15L_f; - }; - uint8_t RESERVED1[24]; - union { - __IO uint32_t RGSR; - stc_ethernet_mac_rgsr_field_t RGSR_f; - }; - uint8_t RESERVED2[36]; - __IO uint32_t mmc_cntl; - __IO uint32_t mmc_intr_rx; - __IO uint32_t mmc_intr_tx; - __IO uint32_t mmc_intr_mask_rx; - __IO uint32_t mmc_intr_mask_tx; - __IO uint32_t txoctetcount_gb; - __IO uint32_t txframecount_gb; - __IO uint32_t txbroadcastframes_g; - __IO uint32_t txmulticastframes_g; - __IO uint32_t tx64octets_gb; - __IO uint32_t tx65to127octets_gb; - __IO uint32_t tx128to255octets_gb; - __IO uint32_t tx256to511octets_gb; - __IO uint32_t tx512to1023octets_gb; - __IO uint32_t tx1024tomaxoctets_gb; - __IO uint32_t txunicastframes_gb; - __IO uint32_t txmulticastframes_gb; - __IO uint32_t txbroadcastframes_gb; - __IO uint32_t txunderflowerror; - __IO uint32_t txsinglecol_g; - __IO uint32_t txmulticol_g; - __IO uint32_t txdeferred; - __IO uint32_t txlatecol; - __IO uint32_t txexesscol; - __IO uint32_t txcarriererror; - __IO uint32_t txoctetcount_g; - __IO uint32_t txframecount_g; - __IO uint32_t txexecessdef_g; - __IO uint32_t txpauseframes; - __IO uint32_t txvlanframes_g; - uint8_t RESERVED3[8]; - __IO uint32_t rxframecount_gb; - __IO uint32_t rxoctetcount_gb; - __IO uint32_t rxoctetcount_g; - __IO uint32_t rxbroadcastframes_g; - __IO uint32_t rxmulticastframes_g; - __IO uint32_t rxcrcerror; - __IO uint32_t rxallignmenterror; - __IO uint32_t rxrunterror; - __IO uint32_t rxjabbererror; - __IO uint32_t rxundersize_g; - __IO uint32_t rxoversize_g; - __IO uint32_t rx64octets_gb; - __IO uint32_t rx65to127octets_gb; - __IO uint32_t rx128to255octets_gb; - __IO uint32_t rx256to511octets_gb; - __IO uint32_t rx512to1023octets_gb; - __IO uint32_t rx1024tomaxoctets_gb; - __IO uint32_t rxunicastframes_g; - __IO uint32_t rxlengtherror; - __IO uint32_t rxoutofrangetype; - __IO uint32_t rxpauseframes; - __IO uint32_t rxfifooverflow; - __IO uint32_t rxvlanframes_gb; - __IO uint32_t rxwatchdogerror; - uint8_t RESERVED4[32]; - __IO uint32_t mmc_ipc_intr_mask_rx; - uint8_t RESERVED5[4]; - __IO uint32_t mmc_ipc_intr_rx; - uint8_t RESERVED6[4]; - __IO uint32_t rxipv4_gd_frms; - __IO uint32_t rxipv4_hdrerr_frms; - __IO uint32_t rxipv4_nopay_frms; - __IO uint32_t rxipv4_frag_frms; - __IO uint32_t rxipv4_udsbl_frms; - __IO uint32_t rxipv6_gd_frms; - __IO uint32_t rxipv6_hdrerr_frms; - __IO uint32_t rxipv6_nopay_frms; - __IO uint32_t rxudp_gd_frms; - __IO uint32_t rxudp_err_frms; - __IO uint32_t rxtcp_gd_frms; - __IO uint32_t rxtcp_err_frms; - __IO uint32_t rxicmp_gd_frms; - __IO uint32_t rxicmp_err_frms; - uint8_t RESERVED7[8]; - __IO uint32_t rxipv4_gd_octets; - __IO uint32_t rxipv4_hdrerr_octets; - __IO uint32_t rxipv4_nopay_octets; - __IO uint32_t rxipv4_frag_octets; - __IO uint32_t rxipv4_udsbl_octets; - __IO uint32_t rxipv6_gd_octets; - __IO uint32_t rxipv6_hdrerr_octets; - __IO uint32_t rxipv6_nopay_octets; - __IO uint32_t rxudp_gd_octets; - __IO uint32_t rxudp_err_octets; - __IO uint32_t rxtcp_gd_octets; - __IO uint32_t rxtcp_err_octets; - __IO uint32_t rxicmp_gd_octets; - __IO uint32_t rxicmp_err_octets; - uint8_t RESERVED8[1144]; - union { - __IO uint32_t TSCR; - stc_ethernet_mac_tscr_field_t TSCR_f; - }; - union { - __IO uint32_t SSIR; - stc_ethernet_mac_ssir_field_t SSIR_f; - }; - union { - __IO uint32_t STSR; - stc_ethernet_mac_stsr_field_t STSR_f; - }; - union { - __IO uint32_t STNR; - stc_ethernet_mac_stnr_field_t STNR_f; - }; - union { - __IO uint32_t STSUR; - stc_ethernet_mac_stsur_field_t STSUR_f; - }; - union { - __IO uint32_t STNUR; - stc_ethernet_mac_stnur_field_t STNUR_f; - }; - union { - __IO uint32_t TSAR; - stc_ethernet_mac_tsar_field_t TSAR_f; - }; - union { - __IO uint32_t TTSR; - stc_ethernet_mac_ttsr_field_t TTSR_f; - }; - union { - __IO uint32_t TTNR; - stc_ethernet_mac_ttnr_field_t TTNR_f; - }; - union { - __IO uint32_t STHWSR; - stc_ethernet_mac_sthwsr_field_t STHWSR_f; - }; - union { - __IO uint32_t TSR; - stc_ethernet_mac_tsr_field_t TSR_f; - }; - union { - __IO uint32_t PPSCR; - stc_ethernet_mac_ppscr_field_t PPSCR_f; - }; - union { - __IO uint32_t ATNR; - stc_ethernet_mac_atnr_field_t ATNR_f; - }; - union { - __IO uint32_t ATSR; - stc_ethernet_mac_atsr_field_t ATSR_f; - }; - uint8_t RESERVED9[200]; - union { - __IO uint32_t MAR16H; - stc_ethernet_mac_mar16h_field_t MAR16H_f; - }; - union { - __IO uint32_t MAR16L; - stc_ethernet_mac_mar16l_field_t MAR16L_f; - }; - union { - __IO uint32_t MAR17H; - stc_ethernet_mac_mar17h_field_t MAR17H_f; - }; - union { - __IO uint32_t MAR17L; - stc_ethernet_mac_mar17l_field_t MAR17L_f; - }; - union { - __IO uint32_t MAR18H; - stc_ethernet_mac_mar18h_field_t MAR18H_f; - }; - union { - __IO uint32_t MAR18L; - stc_ethernet_mac_mar18l_field_t MAR18L_f; - }; - union { - __IO uint32_t MAR19H; - stc_ethernet_mac_mar19h_field_t MAR19H_f; - }; - union { - __IO uint32_t MAR19L; - stc_ethernet_mac_mar19l_field_t MAR19L_f; - }; - union { - __IO uint32_t MAR20H; - stc_ethernet_mac_mar20h_field_t MAR20H_f; - }; - union { - __IO uint32_t MAR20L; - stc_ethernet_mac_mar20l_field_t MAR20L_f; - }; - union { - __IO uint32_t MAR21H; - stc_ethernet_mac_mar21h_field_t MAR21H_f; - }; - union { - __IO uint32_t MAR21L; - stc_ethernet_mac_mar21l_field_t MAR21L_f; - }; - union { - __IO uint32_t MAR22H; - stc_ethernet_mac_mar22h_field_t MAR22H_f; - }; - union { - __IO uint32_t MAR22L; - stc_ethernet_mac_mar22l_field_t MAR22L_f; - }; - union { - __IO uint32_t MAR23H; - stc_ethernet_mac_mar23h_field_t MAR23H_f; - }; - union { - __IO uint32_t MAR23L; - stc_ethernet_mac_mar23l_field_t MAR23L_f; - }; - union { - __IO uint32_t MAR24H; - stc_ethernet_mac_mar24h_field_t MAR24H_f; - }; - union { - __IO uint32_t MAR24L; - stc_ethernet_mac_mar24l_field_t MAR24L_f; - }; - union { - __IO uint32_t MAR25H; - stc_ethernet_mac_mar25h_field_t MAR25H_f; - }; - union { - __IO uint32_t MAR25L; - stc_ethernet_mac_mar25l_field_t MAR25L_f; - }; - union { - __IO uint32_t MAR26H; - stc_ethernet_mac_mar26h_field_t MAR26H_f; - }; - union { - __IO uint32_t MAR26L; - stc_ethernet_mac_mar26l_field_t MAR26L_f; - }; - union { - __IO uint32_t MAR27H; - stc_ethernet_mac_mar27h_field_t MAR27H_f; - }; - union { - __IO uint32_t MAR27L; - stc_ethernet_mac_mar27l_field_t MAR27L_f; - }; - union { - __IO uint32_t MAR28H; - stc_ethernet_mac_mar28h_field_t MAR28H_f; - }; - union { - __IO uint32_t MAR28L; - stc_ethernet_mac_mar28l_field_t MAR28L_f; - }; - union { - __IO uint32_t MAR29H; - stc_ethernet_mac_mar29h_field_t MAR29H_f; - }; - union { - __IO uint32_t MAR29L; - stc_ethernet_mac_mar29l_field_t MAR29L_f; - }; - union { - __IO uint32_t MAR30H; - stc_ethernet_mac_mar30h_field_t MAR30H_f; - }; - union { - __IO uint32_t MAR30L; - stc_ethernet_mac_mar30l_field_t MAR30L_f; - }; - union { - __IO uint32_t MAR31H; - stc_ethernet_mac_mar31h_field_t MAR31H_f; - }; - union { - __IO uint32_t MAR31L; - stc_ethernet_mac_mar31l_field_t MAR31L_f; - }; - uint8_t RESERVED10[1920]; - union { - __IO uint32_t BMR; - stc_ethernet_mac_bmr_field_t BMR_f; - }; - union { - __IO uint32_t TPDR; - stc_ethernet_mac_tpdr_field_t TPDR_f; - }; - union { - __IO uint32_t RPDR; - stc_ethernet_mac_rpdr_field_t RPDR_f; - }; - union { - __IO uint32_t RDLAR; - stc_ethernet_mac_rdlar_field_t RDLAR_f; - }; - union { - __IO uint32_t TDLAR; - stc_ethernet_mac_tdlar_field_t TDLAR_f; - }; - union { - __IO uint32_t SR; - stc_ethernet_mac_sr_field_t SR_f; - }; - union { - __IO uint32_t OMR; - stc_ethernet_mac_omr_field_t OMR_f; - }; - union { - __IO uint32_t IER; - stc_ethernet_mac_ier_field_t IER_f; - }; - union { - __IO uint32_t MFBOCR; - stc_ethernet_mac_mfbocr_field_t MFBOCR_f; - }; - union { - __IO uint32_t RIWTR; - stc_ethernet_mac_riwtr_field_t RIWTR_f; - }; - uint8_t RESERVED11[4]; - union { - __IO uint32_t AHBSR; - stc_ethernet_mac_ahbsr_field_t AHBSR_f; - }; - uint8_t RESERVED12[24]; - union { - __IO uint32_t CHTDR; - stc_ethernet_mac_chtdr_field_t CHTDR_f; - }; - union { - __IO uint32_t CHRDR; - stc_ethernet_mac_chrdr_field_t CHRDR_f; - }; - union { - __IO uint32_t CHTBAR; - stc_ethernet_mac_chtbar_field_t CHTBAR_f; - }; - union { - __IO uint32_t CHRBAR; - stc_ethernet_mac_chrbar_field_t CHRBAR_f; - }; -}FM3_ETHERNET_MAC_TypeDef; - -/* ETHERNET-CONTROL registers */ -typedef struct -{ - union { - __IO uint32_t ETH_MODE; - stc_ethernet_control_eth_mode_field_t ETH_MODE_f; - }; - uint8_t RESERVED1[4]; - union { - __IO uint32_t ETH_CLKG; - stc_ethernet_control_eth_clkg_field_t ETH_CLKG_f; - }; -}FM3_ETHERNET_CONTROL_TypeDef; - -/****************************************************************************** - * Peripheral memory map - ******************************************************************************/ -#define FM3_FLASH_BASE (0x00000000UL) /* Flash Base */ -#define FM3_PERIPH_BASE (0x40000000UL) /* Peripheral Base */ -#define FM3_CM3_BASE (0xE0100000UL) /* CM3 Private */ - -#define FM3_FLASH_IF_BASE (FM3_PERIPH_BASE + 0x00000UL) /* Flash interface registers */ -#define FM3_CRG_BASE (FM3_PERIPH_BASE + 0x10000UL) /* Clock and reset registers */ -#define FM3_HWWDT_BASE (FM3_PERIPH_BASE + 0x11000UL) /* Hardware watchdog registers */ -#define FM3_SWWDT_BASE (FM3_PERIPH_BASE + 0x12000UL) /* Software watchdog registers */ -#define FM3_DTIM_BASE (FM3_PERIPH_BASE + 0x15000UL) /* Dual timer 1/2 registers */ -#define FM3_MFT0_FRT_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Free Running Timer registers */ -#define FM3_MFT0_OCU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Output Compare Unit registers */ -#define FM3_MFT0_WFG_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT0_ICU_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 Input Capture Unit registers */ -#define FM3_MFT0_ADCMP_BASE (FM3_PERIPH_BASE + 0x20000UL) /* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define FM3_MFT1_FRT_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Free Running Timer registers */ -#define FM3_MFT1_OCU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Output Compare Unit registers */ -#define FM3_MFT1_WFG_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT1_ICU_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 Input Capture Unit registers */ -#define FM3_MFT1_ADCMP_BASE (FM3_PERIPH_BASE + 0x21000UL) /* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define FM3_MFT2_FRT_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Free Running Timer registers */ -#define FM3_MFT2_OCU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Output Compare Unit registers */ -#define FM3_MFT2_WFG_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ -#define FM3_MFT2_ICU_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 Input Capture Unit registers */ -#define FM3_MFT2_ADCMP_BASE (FM3_PERIPH_BASE + 0x22000UL) /* Multifunction Timer unit 2 ADC Start Compare Unit registers */ -#define FM3_MFT_PPG_BASE (FM3_PERIPH_BASE + 0x24000UL) /* Multifunction Timer PPG registers */ -#define FM3_BT0_PPG_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PPG registers */ -#define FM3_BT0_PWM_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWM registers */ -#define FM3_BT0_RT_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 RT registers */ -#define FM3_BT0_PWC_BASE (FM3_PERIPH_BASE + 0x25000UL) /* Base Timer 0 PWC registers */ -#define FM3_BT1_PPG_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PPG registers */ -#define FM3_BT1_PWM_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWM registers */ -#define FM3_BT1_RT_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 RT registers */ -#define FM3_BT1_PWC_BASE (FM3_PERIPH_BASE + 0x25040UL) /* Base Timer 1 PWC registers */ -#define FM3_BT2_PPG_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PPG registers */ -#define FM3_BT2_PWM_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWM registers */ -#define FM3_BT2_RT_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 RT registers */ -#define FM3_BT2_PWC_BASE (FM3_PERIPH_BASE + 0x25080UL) /* Base Timer 2 PWC registers */ -#define FM3_BT3_PPG_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PPG registers */ -#define FM3_BT3_PWM_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWM registers */ -#define FM3_BT3_RT_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 RT registers */ -#define FM3_BT3_PWC_BASE (FM3_PERIPH_BASE + 0x250C0UL) /* Base Timer 3 PWC registers */ -#define FM3_BT4_PPG_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PPG registers */ -#define FM3_BT4_PWM_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWM registers */ -#define FM3_BT4_RT_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 RT registers */ -#define FM3_BT4_PWC_BASE (FM3_PERIPH_BASE + 0x25200UL) /* Base Timer 4 PWC registers */ -#define FM3_BT5_PPG_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PPG registers */ -#define FM3_BT5_PWM_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWM registers */ -#define FM3_BT5_RT_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 RT registers */ -#define FM3_BT5_PWC_BASE (FM3_PERIPH_BASE + 0x25240UL) /* Base Timer 5 PWC registers */ -#define FM3_BT6_PPG_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PPG registers */ -#define FM3_BT6_PWM_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWM registers */ -#define FM3_BT6_RT_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 RT registers */ -#define FM3_BT6_PWC_BASE (FM3_PERIPH_BASE + 0x25280UL) /* Base Timer 6 PWC registers */ -#define FM3_BT7_PPG_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PPG registers */ -#define FM3_BT7_PWM_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWM registers */ -#define FM3_BT7_RT_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 RT registers */ -#define FM3_BT7_PWC_BASE (FM3_PERIPH_BASE + 0x252C0UL) /* Base Timer 7 PWC registers */ -#define FM3_BTIOSEL03_BASE (FM3_PERIPH_BASE + 0x25100UL) /* Base Timer I/O selector channel 0 - channel 3 registers */ -#define FM3_BTIOSEL47_BASE (FM3_PERIPH_BASE + 0x25300UL) /* Base Timer I/O selector channel 4 - channel 7 registers */ -#define FM3_BT8_PPG_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PPG registers */ -#define FM3_BT8_PWM_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWM registers */ -#define FM3_BT8_RT_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 RT registers */ -#define FM3_BT8_PWC_BASE (FM3_PERIPH_BASE + 0x25400UL) /* Base Timer 8 PWC registers */ -#define FM3_BT9_PPG_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PPG registers */ -#define FM3_BT9_PWM_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWM registers */ -#define FM3_BT9_RT_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 RT registers */ -#define FM3_BT9_PWC_BASE (FM3_PERIPH_BASE + 0x25440UL) /* Base Timer 9 PWC registers */ -#define FM3_BT10_PPG_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PPG registers */ -#define FM3_BT10_PWM_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWM registers */ -#define FM3_BT10_RT_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 RT registers */ -#define FM3_BT10_PWC_BASE (FM3_PERIPH_BASE + 0x25480UL) /* Base Timer 10 PWC registers */ -#define FM3_BT11_PPG_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PPG registers */ -#define FM3_BT11_PWM_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWM registers */ -#define FM3_BT11_RT_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 RT registers */ -#define FM3_BT11_PWC_BASE (FM3_PERIPH_BASE + 0x254C0UL) /* Base Timer 11 PWC registers */ -#define FM3_BT12_PPG_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PPG registers */ -#define FM3_BT12_PWM_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWM registers */ -#define FM3_BT12_RT_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 RT registers */ -#define FM3_BT12_PWC_BASE (FM3_PERIPH_BASE + 0x25600UL) /* Base Timer 8 PWC registers */ -#define FM3_BT13_PPG_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PPG registers */ -#define FM3_BT13_PWM_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWM registers */ -#define FM3_BT13_RT_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 RT registers */ -#define FM3_BT13_PWC_BASE (FM3_PERIPH_BASE + 0x25640UL) /* Base Timer 9 PWC registers */ -#define FM3_BT14_PPG_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PPG registers */ -#define FM3_BT14_PWM_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWM registers */ -#define FM3_BT14_RT_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 RT registers */ -#define FM3_BT14_PWC_BASE (FM3_PERIPH_BASE + 0x25680UL) /* Base Timer 10 PWC registers */ -#define FM3_BT15_PPG_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PPG registers */ -#define FM3_BT15_PWM_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWM registers */ -#define FM3_BT15_RT_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 RT registers */ -#define FM3_BT15_PWC_BASE (FM3_PERIPH_BASE + 0x256C0UL) /* Base Timer 11 PWC registers */ -#define FM3_BTIOSEL8B_BASE (FM3_PERIPH_BASE + 0x25500UL) /* Base Timer I/O selector channel 8 - channel 11 registers */ -#define FM3_BTIOSELCF_BASE (FM3_PERIPH_BASE + 0x25700UL) /* Base Timer I/O selector channel 12 - channel 15 registers */ -#define FM3_SBSSR_BASE (FM3_PERIPH_BASE + 0x25FFCUL) /* Software based Simulation Startup (Base Timer) register */ -#define FM3_QPRC0_BASE (FM3_PERIPH_BASE + 0x26000UL) /* Quad position and revolution counter channel 0 registers */ -#define FM3_QPRC1_BASE (FM3_PERIPH_BASE + 0x26040UL) /* Quad position and revolution counter channel 1 registers */ -#define FM3_QPRC2_BASE (FM3_PERIPH_BASE + 0x26080UL) /* Quad position and revolution counter channel 2 registers */ -#define FM3_ADC0_BASE (FM3_PERIPH_BASE + 0x27000UL) /* 12-bit ADC unit 0 registers */ -#define FM3_ADC1_BASE (FM3_PERIPH_BASE + 0x27100UL) /* 12-bit ADC unit 1 registers */ -#define FM3_ADC2_BASE (FM3_PERIPH_BASE + 0x27200UL) /* 12-bit ADC unit 2 registers */ -#define FM3_CRTRIM_BASE (FM3_PERIPH_BASE + 0x2E000UL) /* CR trimming registers */ -#define FM3_EXTI_BASE (FM3_PERIPH_BASE + 0x30000UL) /* External interrupt registers */ -#define FM3_INTREQ_BASE (FM3_PERIPH_BASE + 0x31000UL) /* Interrupt request read registers */ -#define FM3_GPIO_BASE (FM3_PERIPH_BASE + 0x33000UL) /* General purpose I/O registers */ -#define FM3_LVD_BASE (FM3_PERIPH_BASE + 0x35000UL) /* Low voltage detection registers */ -#define FM3_USBETHERNETCLK_BASE (FM3_PERIPH_BASE + 0x36000UL) /* USB clock registers */ -#define FM3_MFS0_UART_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART asynchronous channel 0 registers */ -#define FM3_MFS0_CSIO_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART synchronous channel 0 registers */ -#define FM3_MFS0_LIN_BASE (FM3_PERIPH_BASE + 0x38000UL) /* UART LIN channel 0 registers */ -#define FM3_MFS0_I2C_BASE (FM3_PERIPH_BASE + 0x38000UL) /* I2C channel 0 registers */ -#define FM3_MFS1_UART_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART asynchronous channel 1 registers */ -#define FM3_MFS1_CSIO_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART synchronous channel 1 registers */ -#define FM3_MFS1_LIN_BASE (FM3_PERIPH_BASE + 0x38100UL) /* UART LIN channel 1 registers */ -#define FM3_MFS1_I2C_BASE (FM3_PERIPH_BASE + 0x38100UL) /* I2C channel 1 registers */ -#define FM3_MFS2_UART_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART asynchronous channel 2 registers */ -#define FM3_MFS2_CSIO_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART synchronous channel 2 registers */ -#define FM3_MFS2_LIN_BASE (FM3_PERIPH_BASE + 0x38200UL) /* UART LIN channel 2 registers */ -#define FM3_MFS2_I2C_BASE (FM3_PERIPH_BASE + 0x38200UL) /* I2C channel 2 registers */ -#define FM3_MFS3_UART_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART asynchronous channel 3 registers */ -#define FM3_MFS3_CSIO_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART synchronous channel 3 registers */ -#define FM3_MFS3_LIN_BASE (FM3_PERIPH_BASE + 0x38300UL) /* UART LIN channel 3 registers */ -#define FM3_MFS3_I2C_BASE (FM3_PERIPH_BASE + 0x38300UL) /* I2C channel 3 registers */ -#define FM3_MFS4_UART_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART asynchronous channel 4 registers */ -#define FM3_MFS4_CSIO_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART synchronous channel 4 registers */ -#define FM3_MFS4_LIN_BASE (FM3_PERIPH_BASE + 0x38400UL) /* UART LIN channel 4 registers */ -#define FM3_MFS4_I2C_BASE (FM3_PERIPH_BASE + 0x38400UL) /* I2C channel 4 registers */ -#define FM3_MFS5_UART_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART asynchronous channel 5 registers */ -#define FM3_MFS5_CSIO_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART synchronous channel 5 registers */ -#define FM3_MFS5_LIN_BASE (FM3_PERIPH_BASE + 0x38500UL) /* UART LIN channel 5 registers */ -#define FM3_MFS5_I2C_BASE (FM3_PERIPH_BASE + 0x38500UL) /* I2C channel 5 registers */ -#define FM3_MFS6_UART_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART asynchronous channel 6 registers */ -#define FM3_MFS6_CSIO_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART synchronous channel 6 registers */ -#define FM3_MFS6_LIN_BASE (FM3_PERIPH_BASE + 0x38600UL) /* UART LIN channel 6 registers */ -#define FM3_MFS6_I2C_BASE (FM3_PERIPH_BASE + 0x38600UL) /* I2C channel 6 registers */ -#define FM3_MFS7_UART_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART asynchronous channel 7 registers */ -#define FM3_MFS7_CSIO_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART synchronous channel 7 registers */ -#define FM3_MFS7_LIN_BASE (FM3_PERIPH_BASE + 0x38700UL) /* UART LIN channel 7 registers */ -#define FM3_MFS7_I2C_BASE (FM3_PERIPH_BASE + 0x38700UL) /* I2C channel 7 registers */ -#define FM3_MFS_NFC_BASE (FM3_PERIPH_BASE + 0x38800UL) /* MFS Noise Filter Control register */ -#define FM3_CRC_BASE (FM3_PERIPH_BASE + 0x39000UL) /* CRC registers */ -#define FM3_WC_BASE (FM3_PERIPH_BASE + 0x3A000UL) /* Watch counter registers */ -#define FM3_EXBUS_BASE (FM3_PERIPH_BASE + 0x3F000UL) /* External bus interface registers */ -#define FM3_USB0_BASE (FM3_PERIPH_BASE + 0x42100UL) /* USB channel 0 registers */ -#define FM3_USB1_BASE (FM3_PERIPH_BASE + 0x52100UL) /* USB channel 1 registers */ -#define FM3_DMAC_BASE (FM3_PERIPH_BASE + 0x60000UL) /* DMA controller */ -#define FM3_ETHERNET_MAC0_BASE (FM3_PERIPH_BASE + 0x64000UL) /* Ethernet MAC 0 registers */ -#define FM3_ETHERNET_CONTROL_BASE (FM3_PERIPH_BASE + 0x66000UL) /* Ethernet MAC control registers */ -#define FM3_ETHERNET_MAC1_BASE (FM3_PERIPH_BASE + 0x67000UL) /* Ethernet MAC 1 registers */ - -/****************************************************************************** - * Peripheral declaration - ******************************************************************************/ -#define FM3_FLASH_IF ((FM3_FLASH_IF_TypeDef *)FM3_FLASH_IF_BASE) -#define FM3_CRG ((FM3_CRG_TypeDef *)FM3_CRG_BASE) -#define FM3_HWWDT ((FM3_HWWDT_TypeDef *)FM3_HWWDT_BASE) -#define FM3_SWWDT ((FM3_SWWDT_TypeDef *)FM3_SWWDT_BASE) -#define FM3_DTIM ((FM3_DTIM_TypeDef *)FM3_DTIM_BASE) -#define FM3_MFT0_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT0_FRT_BASE) -#define FM3_MFT0_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT0_OCU_BASE) -#define FM3_MFT0_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT0_WFG_BASE) -#define FM3_MFT0_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT0_ICU_BASE) -#define FM3_MFT0_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT0_ADCMP_BASE) -#define FM3_MFT1_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT1_FRT_BASE) -#define FM3_MFT1_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT1_OCU_BASE) -#define FM3_MFT1_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT1_WFG_BASE) -#define FM3_MFT1_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT1_ICU_BASE) -#define FM3_MFT1_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT1_ADCMP_BASE) -#define FM3_MFT2_FRT ((FM3_MFT_FRT_TypeDef *)FM3_MFT2_FRT_BASE) -#define FM3_MFT2_OCU ((FM3_MFT_OCU_TypeDef *)FM3_MFT2_OCU_BASE) -#define FM3_MFT2_WFG ((FM3_MFT_WFG_TypeDef *)FM3_MFT2_WFG_BASE) -#define FM3_MFT2_ICU ((FM3_MFT_ICU_TypeDef *)FM3_MFT2_ICU_BASE) -#define FM3_MFT2_ADCMP ((FM3_MFT_ADCMP_TypeDef *)FM3_MFT2_ADCMP_BASE) -#define FM3_MFT_PPG ((FM3_MFT_PPG_TypeDef *)FM3_MFT_PPG_BASE) -#define FM3_BT0_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT0_PPG_BASE) -#define FM3_BT0_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT0_PWM_BASE) -#define FM3_BT0_RT ((FM3_BT_RT_TypeDef *)FM3_BT0_RT_BASE) -#define FM3_BT0_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT0_PWC_BASE) -#define FM3_BT1_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT1_PPG_BASE) -#define FM3_BT1_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT1_PWM_BASE) -#define FM3_BT1_RT ((FM3_BT_RT_TypeDef *)FM3_BT1_RT_BASE) -#define FM3_BT1_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT1_PWC_BASE) -#define FM3_BT2_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT2_PPG_BASE) -#define FM3_BT2_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT2_PWM_BASE) -#define FM3_BT2_RT ((FM3_BT_RT_TypeDef *)FM3_BT2_RT_BASE) -#define FM3_BT2_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT2_PWC_BASE) -#define FM3_BT3_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT3_PPG_BASE) -#define FM3_BT3_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT3_PWM_BASE) -#define FM3_BT3_RT ((FM3_BT_RT_TypeDef *)FM3_BT3_RT_BASE) -#define FM3_BT3_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT3_PWC_BASE) -#define FM3_BT4_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT4_PPG_BASE) -#define FM3_BT4_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT4_PWM_BASE) -#define FM3_BT4_RT ((FM3_BT_RT_TypeDef *)FM3_BT4_RT_BASE) -#define FM3_BT4_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT4_PWC_BASE) -#define FM3_BT5_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT5_PPG_BASE) -#define FM3_BT5_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT5_PWM_BASE) -#define FM3_BT5_RT ((FM3_BT_RT_TypeDef *)FM3_BT5_RT_BASE) -#define FM3_BT5_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT5_PWC_BASE) -#define FM3_BT6_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT6_PPG_BASE) -#define FM3_BT6_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT6_PWM_BASE) -#define FM3_BT6_RT ((FM3_BT_RT_TypeDef *)FM3_BT6_RT_BASE) -#define FM3_BT6_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT6_PWC_BASE) -#define FM3_BT7_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT7_PPG_BASE) -#define FM3_BT7_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT7_PWM_BASE) -#define FM3_BT7_RT ((FM3_BT_RT_TypeDef *)FM3_BT7_RT_BASE) -#define FM3_BT7_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT7_PWC_BASE) -#define FM3_BTIOSEL03 ((FM3_BTIOSEL03_TypeDef *)FM3_BTIOSEL03_BASE) -#define FM3_BTIOSEL47 ((FM3_BTIOSEL47_TypeDef *)FM3_BTIOSEL47_BASE) -#define FM3_BT8_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT8_PPG_BASE) -#define FM3_BT8_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT8_PWM_BASE) -#define FM3_BT8_RT ((FM3_BT_RT_TypeDef *)FM3_BT8_RT_BASE) -#define FM3_BT8_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT8_PWC_BASE) -#define FM3_BT9_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT9_PPG_BASE) -#define FM3_BT9_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT9_PWM_BASE) -#define FM3_BT9_RT ((FM3_BT_RT_TypeDef *)FM3_BT9_RT_BASE) -#define FM3_BT9_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT9_PWC_BASE) -#define FM3_BT10_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT10_PPG_BASE) -#define FM3_BT10_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT10_PWM_BASE) -#define FM3_BT10_RT ((FM3_BT_RT_TypeDef *)FM3_BT10_RT_BASE) -#define FM3_BT10_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT10_PWC_BASE) -#define FM3_BT11_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT11_PPG_BASE) -#define FM3_BT11_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT11_PWM_BASE) -#define FM3_BT11_RT ((FM3_BT_RT_TypeDef *)FM3_BT11_RT_BASE) -#define FM3_BT11_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT11_PWC_BASE) -#define FM3_BT12_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT12_PPG_BASE) -#define FM3_BT12_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT12_PWM_BASE) -#define FM3_BT12_RT ((FM3_BT_RT_TypeDef *)FM3_BT12_RT_BASE) -#define FM3_BT12_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT12_PWC_BASE) -#define FM3_BT13_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT13_PPG_BASE) -#define FM3_BT13_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT13_PWM_BASE) -#define FM3_BT13_RT ((FM3_BT_RT_TypeDef *)FM3_BT13_RT_BASE) -#define FM3_BT13_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT13_PWC_BASE) -#define FM3_BT14_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT14_PPG_BASE) -#define FM3_BT14_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT14_PWM_BASE) -#define FM3_BT14_RT ((FM3_BT_RT_TypeDef *)FM3_BT14_RT_BASE) -#define FM3_BT14_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT14_PWC_BASE) -#define FM3_BT15_PPG ((FM3_BT_PPG_TypeDef *)FM3_BT15_PPG_BASE) -#define FM3_BT15_PWM ((FM3_BT_PWM_TypeDef *)FM3_BT15_PWM_BASE) -#define FM3_BT15_RT ((FM3_BT_RT_TypeDef *)FM3_BT15_RT_BASE) -#define FM3_BT15_PWC ((FM3_BT_PWC_TypeDef *)FM3_BT15_PWC_BASE) -#define FM3_BTIOSEL8B ((FM3_BTIOSEL8B_TypeDef *)FM3_BTIOSEL8B_BASE) -#define FM3_BTIOSELCF ((FM3_BTIOSELCF_TypeDef *)FM3_BTIOSELCF_BASE) -#define FM3_SBSSR ((FM3_SBSSR_TypeDef *)FM3_SBSSR_BASE) -#define FM3_QPRC0 ((FM3_QPRC_TypeDef *)FM3_QPRC0_BASE) -#define FM3_QPRC1 ((FM3_QPRC_TypeDef *)FM3_QPRC1_BASE) -#define FM3_QPRC2 ((FM3_QPRC_TypeDef *)FM3_QPRC2_BASE) -#define FM3_ADC0 ((FM3_ADC_TypeDef *)FM3_ADC0_BASE) -#define FM3_ADC1 ((FM3_ADC_TypeDef *)FM3_ADC1_BASE) -#define FM3_ADC2 ((FM3_ADC_TypeDef *)FM3_ADC2_BASE) -#define FM3_CRTRIM ((FM3_CRTRIM_TypeDef *)FM3_CRTRIM_BASE) -#define FM3_EXTI ((FM3_EXTI_TypeDef *)FM3_EXTI_BASE) -#define FM3_INTREQ ((FM3_INTREQ_TypeDef *)FM3_INTREQ_BASE) -#define FM3_GPIO ((FM3_GPIO_TypeDef *)FM3_GPIO_BASE) -#define FM3_LVD ((FM3_LVD_TypeDef *)FM3_LVD_BASE) -#define FM3_USBETHERNETCLK ((FM3_USBETHERNETCLK_TypeDef *)FM3_USBETHERNETCLK_BASE) -#define FM3_MFS0_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS0_UART_BASE) -#define FM3_MFS0_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS0_CSIO_BASE) -#define FM3_MFS0_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS0_LIN_BASE) -#define FM3_MFS0_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS0_I2C_BASE) -#define FM3_MFS1_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS1_UART_BASE) -#define FM3_MFS1_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS1_CSIO_BASE) -#define FM3_MFS1_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS1_LIN_BASE) -#define FM3_MFS1_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS1_I2C_BASE) -#define FM3_MFS2_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS2_UART_BASE) -#define FM3_MFS2_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS2_CSIO_BASE) -#define FM3_MFS2_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS2_LIN_BASE) -#define FM3_MFS2_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS2_I2C_BASE) -#define FM3_MFS3_UART ((FM3_MFS03_UART_TypeDef *)FM3_MFS3_UART_BASE) -#define FM3_MFS3_CSIO ((FM3_MFS03_CSIO_TypeDef *)FM3_MFS3_CSIO_BASE) -#define FM3_MFS3_LIN ((FM3_MFS03_LIN_TypeDef *)FM3_MFS3_LIN_BASE) -#define FM3_MFS3_I2C ((FM3_MFS03_I2C_TypeDef *)FM3_MFS3_I2C_BASE) -#define FM3_MFS4_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS4_UART_BASE) -#define FM3_MFS4_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS4_CSIO_BASE) -#define FM3_MFS4_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS4_LIN_BASE) -#define FM3_MFS4_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS4_I2C_BASE) -#define FM3_MFS5_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS5_UART_BASE) -#define FM3_MFS5_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS5_CSIO_BASE) -#define FM3_MFS5_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS5_LIN_BASE) -#define FM3_MFS5_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS5_I2C_BASE) -#define FM3_MFS6_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS6_UART_BASE) -#define FM3_MFS6_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS6_CSIO_BASE) -#define FM3_MFS6_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS6_LIN_BASE) -#define FM3_MFS6_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS6_I2C_BASE) -#define FM3_MFS7_UART ((FM3_MFS47_UART_TypeDef *)FM3_MFS7_UART_BASE) -#define FM3_MFS7_CSIO ((FM3_MFS47_CSIO_TypeDef *)FM3_MFS7_CSIO_BASE) -#define FM3_MFS7_LIN ((FM3_MFS47_LIN_TypeDef *)FM3_MFS7_LIN_BASE) -#define FM3_MFS7_I2C ((FM3_MFS47_I2C_TypeDef *)FM3_MFS7_I2C_BASE) -#define FM3_MFS_NFC ((FM3_MFS_NFC_TypeDef *)FM3_MFS_NFC_BASE) -#define FM3_CRC ((FM3_CRC_TypeDef *)FM3_CRC_BASE) -#define FM3_WC ((FM3_WC_TypeDef *)FM3_WC_BASE) -#define FM3_EXBUS ((FM3_EXBUS_TypeDef *)FM3_EXBUS_BASE) -#define FM3_USB0 ((FM3_USB_TypeDef *)FM3_USB0_BASE) -#define FM3_USB1 ((FM3_USB_TypeDef *)FM3_USB1_BASE) -#define FM3_DMAC ((FM3_DMAC_TypeDef *)FM3_DMAC_BASE) -#define FM3_ETHERNET_MAC0 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC0_BASE) -#define FM3_ETHERNET_CONTROL ((FM3_ETHERNET_SET_TypeDef *)FM3_ETHERNET_SET_BASE) -#define FM3_ETHERNET_MAC1 ((FM3_ETHERNET_MAC_TypeDef *)FM3_ETHERNET_MAC1_BASE) - -/****************************************************************************** - * Peripheral Bit Band Alias declaration - ******************************************************************************/ - -/* Flash interface registers */ -#define bFM3_FLASH_IF_FASZR_ASZ0 *((volatile unsigned int*)(0x42000000UL)) -#define bFM3_FLASH_IF_FASZR_ASZ1 *((volatile unsigned int*)(0x42000004UL)) -#define bFM3_FLASH_IF_FRWTR_RWT0 *((volatile unsigned int*)(0x42000080UL)) -#define bFM3_FLASH_IF_FRWTR_RWT1 *((volatile unsigned int*)(0x42000084UL)) -#define bFM3_FLASH_IF_FSTR_RDY *((volatile unsigned int*)(0x42000100UL)) -#define bFM3_FLASH_IF_FSTR_HNG *((volatile unsigned int*)(0x42000104UL)) -#define bFM3_FLASH_IF_FSTR_EER *((volatile unsigned int*)(0x42000108UL)) -#define bFM3_FLASH_IF_FSYNDN_SD0 *((volatile unsigned int*)(0x42000200UL)) -#define bFM3_FLASH_IF_FSYNDN_SD1 *((volatile unsigned int*)(0x42000204UL)) -#define bFM3_FLASH_IF_FSYNDN_SD2 *((volatile unsigned int*)(0x42000208UL)) -#define bFM3_FLASH_IF_FBFCR_BE *((volatile unsigned int*)(0x42000280UL)) -#define bFM3_FLASH_IF_FBFCR_BS *((volatile unsigned int*)(0x42000284UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM0 *((volatile unsigned int*)(0x42002000UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM1 *((volatile unsigned int*)(0x42002004UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM2 *((volatile unsigned int*)(0x42002008UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM3 *((volatile unsigned int*)(0x4200200CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM4 *((volatile unsigned int*)(0x42002010UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM5 *((volatile unsigned int*)(0x42002014UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM6 *((volatile unsigned int*)(0x42002018UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM7 *((volatile unsigned int*)(0x4200201CUL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM8 *((volatile unsigned int*)(0x42002020UL)) -#define bFM3_FLASH_IF_CRTRMM_TRMM9 *((volatile unsigned int*)(0x42002024UL)) - -/* Clock and reset registers */ -#define bFM3_CRG_SCM_CTL_MOSCE *((volatile unsigned int*)(0x42200004UL)) -#define bFM3_CRG_SCM_CTL_SOSCE *((volatile unsigned int*)(0x4220000CUL)) -#define bFM3_CRG_SCM_CTL_PLLE *((volatile unsigned int*)(0x42200010UL)) -#define bFM3_CRG_SCM_CTL_RCS0 *((volatile unsigned int*)(0x42200014UL)) -#define bFM3_CRG_SCM_CTL_RCS1 *((volatile unsigned int*)(0x42200018UL)) -#define bFM3_CRG_SCM_CTL_RCS2 *((volatile unsigned int*)(0x4220001CUL)) -#define bFM3_CRG_SCM_STR_MORDY *((volatile unsigned int*)(0x42200084UL)) -#define bFM3_CRG_SCM_STR_SORDY *((volatile unsigned int*)(0x4220008CUL)) -#define bFM3_CRG_SCM_STR_PLRDY *((volatile unsigned int*)(0x42200090UL)) -#define bFM3_CRG_SCM_STR_RCM0 *((volatile unsigned int*)(0x42200094UL)) -#define bFM3_CRG_SCM_STR_RCM1 *((volatile unsigned int*)(0x42200098UL)) -#define bFM3_CRG_SCM_STR_RCM2 *((volatile unsigned int*)(0x4220009CUL)) -#define bFM3_CRG_RST_STR_PONR *((volatile unsigned int*)(0x42200180UL)) -#define bFM3_CRG_RST_STR_INITX *((volatile unsigned int*)(0x42200184UL)) -#define bFM3_CRG_RST_STR_SWDT *((volatile unsigned int*)(0x42200190UL)) -#define bFM3_CRG_RST_STR_HWDT *((volatile unsigned int*)(0x42200194UL)) -#define bFM3_CRG_RST_STR_CSVR *((volatile unsigned int*)(0x42200198UL)) -#define bFM3_CRG_RST_STR_FCSR *((volatile unsigned int*)(0x4220019CUL)) -#define bFM3_CRG_RST_STR_SRST *((volatile unsigned int*)(0x422001A0UL)) -#define bFM3_CRG_BSC_PSR_BSR0 *((volatile unsigned int*)(0x42200200UL)) -#define bFM3_CRG_BSC_PSR_BSR1 *((volatile unsigned int*)(0x42200204UL)) -#define bFM3_CRG_BSC_PSR_BSR2 *((volatile unsigned int*)(0x42200208UL)) -#define bFM3_CRG_APBC0_PSR_APBC00 *((volatile unsigned int*)(0x42200280UL)) -#define bFM3_CRG_APBC0_PSR_APBC01 *((volatile unsigned int*)(0x42200284UL)) -#define bFM3_CRG_APBC1_PSR_APBC10 *((volatile unsigned int*)(0x42200300UL)) -#define bFM3_CRG_APBC1_PSR_APBC11 *((volatile unsigned int*)(0x42200304UL)) -#define bFM3_CRG_APBC1_PSR_APBC1RST *((volatile unsigned int*)(0x42200310UL)) -#define bFM3_CRG_APBC1_PSR_APBC1EN *((volatile unsigned int*)(0x4220031CUL)) -#define bFM3_CRG_APBC2_PSR_APBC20 *((volatile unsigned int*)(0x42200380UL)) -#define bFM3_CRG_APBC2_PSR_APBC21 *((volatile unsigned int*)(0x42200384UL)) -#define bFM3_CRG_APBC2_PSR_APBC2RST *((volatile unsigned int*)(0x42200390UL)) -#define bFM3_CRG_APBC2_PSR_APBC2EN *((volatile unsigned int*)(0x4220039CUL)) -#define bFM3_CRG_SWC_PSR_SWDS0 *((volatile unsigned int*)(0x42200400UL)) -#define bFM3_CRG_SWC_PSR_SWDS1 *((volatile unsigned int*)(0x42200404UL)) -#define bFM3_CRG_SWC_PSR_TESTB *((volatile unsigned int*)(0x4220041CUL)) -#define bFM3_CRG_TTC_PSR_TTC0 *((volatile unsigned int*)(0x42200500UL)) -#define bFM3_CRG_TTC_PSR_TTC1 *((volatile unsigned int*)(0x42200504UL)) -#define bFM3_CRG_CSW_TMR_MOWT0 *((volatile unsigned int*)(0x42200600UL)) -#define bFM3_CRG_CSW_TMR_MOWT1 *((volatile unsigned int*)(0x42200604UL)) -#define bFM3_CRG_CSW_TMR_MOWT2 *((volatile unsigned int*)(0x42200608UL)) -#define bFM3_CRG_CSW_TMR_MOWT3 *((volatile unsigned int*)(0x4220060CUL)) -#define bFM3_CRG_CSW_TMR_SOWT0 *((volatile unsigned int*)(0x42200610UL)) -#define bFM3_CRG_CSW_TMR_SOWT1 *((volatile unsigned int*)(0x42200614UL)) -#define bFM3_CRG_CSW_TMR_SOWT2 *((volatile unsigned int*)(0x42200618UL)) -#define bFM3_CRG_PSW_TMR_POWT0 *((volatile unsigned int*)(0x42200680UL)) -#define bFM3_CRG_PSW_TMR_POWT1 *((volatile unsigned int*)(0x42200684UL)) -#define bFM3_CRG_PSW_TMR_POWT2 *((volatile unsigned int*)(0x42200688UL)) -#define bFM3_CRG_PSW_TMR_PINC *((volatile unsigned int*)(0x42200690UL)) -#define bFM3_CRG_PLL_CTL1_PLLM0 *((volatile unsigned int*)(0x42200700UL)) -#define bFM3_CRG_PLL_CTL1_PLLM1 *((volatile unsigned int*)(0x42200704UL)) -#define bFM3_CRG_PLL_CTL1_PLLM2 *((volatile unsigned int*)(0x42200708UL)) -#define bFM3_CRG_PLL_CTL1_PLLM3 *((volatile unsigned int*)(0x4220070CUL)) -#define bFM3_CRG_PLL_CTL1_PLLK0 *((volatile unsigned int*)(0x42200710UL)) -#define bFM3_CRG_PLL_CTL1_PLLK1 *((volatile unsigned int*)(0x42200714UL)) -#define bFM3_CRG_PLL_CTL1_PLLK2 *((volatile unsigned int*)(0x42200718UL)) -#define bFM3_CRG_PLL_CTL1_PLLK3 *((volatile unsigned int*)(0x4220071CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN0 *((volatile unsigned int*)(0x42200780UL)) -#define bFM3_CRG_PLL_CTL2_PLLN1 *((volatile unsigned int*)(0x42200784UL)) -#define bFM3_CRG_PLL_CTL2_PLLN2 *((volatile unsigned int*)(0x42200788UL)) -#define bFM3_CRG_PLL_CTL2_PLLN3 *((volatile unsigned int*)(0x4220078CUL)) -#define bFM3_CRG_PLL_CTL2_PLLN4 *((volatile unsigned int*)(0x42200790UL)) -#define bFM3_CRG_PLL_CTL2_PLLN5 *((volatile unsigned int*)(0x42200794UL)) -#define bFM3_CRG_CSV_CTL_MCSVE *((volatile unsigned int*)(0x42200800UL)) -#define bFM3_CRG_CSV_CTL_SCSVE *((volatile unsigned int*)(0x42200804UL)) -#define bFM3_CRG_CSV_CTL_FCSDE *((volatile unsigned int*)(0x42200820UL)) -#define bFM3_CRG_CSV_CTL_FCSRE *((volatile unsigned int*)(0x42200824UL)) -#define bFM3_CRG_CSV_CTL_FCD0 *((volatile unsigned int*)(0x42200830UL)) -#define bFM3_CRG_CSV_CTL_FCD1 *((volatile unsigned int*)(0x42200834UL)) -#define bFM3_CRG_CSV_CTL_FCD2 *((volatile unsigned int*)(0x42200838UL)) -#define bFM3_CRG_CSV_STR_MCMF *((volatile unsigned int*)(0x42200880UL)) -#define bFM3_CRG_CSV_STR_SCMF *((volatile unsigned int*)(0x42200884UL)) -#define bFM3_CRG_DBWDT_CTL_DPSWBE *((volatile unsigned int*)(0x42200A94UL)) -#define bFM3_CRG_DBWDT_CTL_DPHWBE *((volatile unsigned int*)(0x42200A9CUL)) -#define bFM3_CRG_INT_ENR_MCSE *((volatile unsigned int*)(0x42200C00UL)) -#define bFM3_CRG_INT_ENR_SCSE *((volatile unsigned int*)(0x42200C04UL)) -#define bFM3_CRG_INT_ENR_PCSE *((volatile unsigned int*)(0x42200C08UL)) -#define bFM3_CRG_INT_ENR_FCSE *((volatile unsigned int*)(0x42200C14UL)) -#define bFM3_CRG_INT_STR_MCSI *((volatile unsigned int*)(0x42200C80UL)) -#define bFM3_CRG_INT_STR_SCSI *((volatile unsigned int*)(0x42200C84UL)) -#define bFM3_CRG_INT_STR_PCSI *((volatile unsigned int*)(0x42200C88UL)) -#define bFM3_CRG_INT_STR_FCSI *((volatile unsigned int*)(0x42200C94UL)) -#define bFM3_CRG_INT_CLR_MCSC *((volatile unsigned int*)(0x42200D00UL)) -#define bFM3_CRG_INT_CLR_SCSC *((volatile unsigned int*)(0x42200D04UL)) -#define bFM3_CRG_INT_CLR_PCSC *((volatile unsigned int*)(0x42200D08UL)) -#define bFM3_CRG_INT_CLR_FCSC *((volatile unsigned int*)(0x42200D14UL)) - -/* Hardware watchdog registers */ -#define bFM3_HWWDT_WDG_CTL_INTEN *((volatile unsigned int*)(0x42220100UL)) -#define bFM3_HWWDT_WDG_CTL_RESEN *((volatile unsigned int*)(0x42220104UL)) -#define bFM3_HWWDT_WDG_RIS_RIS *((volatile unsigned int*)(0x42220200UL)) - -/* Software watchdog registers */ -#define bFM3_SWWDT_WDOGCONTROL_INTEN *((volatile unsigned int*)(0x42240100UL)) -#define bFM3_SWWDT_WDOGCONTROL_RESEN *((volatile unsigned int*)(0x42240104UL)) -#define bFM3_SWWDT_WDOGRIS_RIS *((volatile unsigned int*)(0x42240200UL)) - -/* Dual timer 1/2 registers */ -#define bFM3_DTIM_TIMER1CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0100UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0104UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0108UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A010CUL)) -#define bFM3_DTIM_TIMER1CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0114UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0118UL)) -#define bFM3_DTIM_TIMER1CONTROL_TIMEREN *((volatile unsigned int*)(0x422A011CUL)) -#define bFM3_DTIM_TIMER1RIS_TIMER1RIS *((volatile unsigned int*)(0x422A0200UL)) -#define bFM3_DTIM_TIMER1MIS_TIMER1MIS *((volatile unsigned int*)(0x422A0280UL)) -#define bFM3_DTIM_TIMER2CONTROL_ONESHOT *((volatile unsigned int*)(0x422A0500UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERSIZE *((volatile unsigned int*)(0x422A0504UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE0 *((volatile unsigned int*)(0x422A0508UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERPRE1 *((volatile unsigned int*)(0x422A050CUL)) -#define bFM3_DTIM_TIMER2CONTROL_INTENABLE *((volatile unsigned int*)(0x422A0514UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMERMODE *((volatile unsigned int*)(0x422A0518UL)) -#define bFM3_DTIM_TIMER2CONTROL_TIMEREN *((volatile unsigned int*)(0x422A051CUL)) -#define bFM3_DTIM_TIMER2RIS_TIMER2RIS *((volatile unsigned int*)(0x422A0600UL)) -#define bFM3_DTIM_TIMER2MIS_TIMER2MIS *((volatile unsigned int*)(0x422A0680UL)) - -/* Multifunction Timer unit 0 Free Running Timer registers */ -#define bFM3_MFT0_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42400600UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42400604UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42400608UL)) -#define bFM3_MFT0_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4240060CUL)) -#define bFM3_MFT0_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42400610UL)) -#define bFM3_MFT0_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42400614UL)) -#define bFM3_MFT0_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42400618UL)) -#define bFM3_MFT0_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4240061CUL)) -#define bFM3_MFT0_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42400620UL)) -#define bFM3_MFT0_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42400624UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42400634UL)) -#define bFM3_MFT0_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42400638UL)) -#define bFM3_MFT0_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4240063CUL)) -#define bFM3_MFT0_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42400680UL)) -#define bFM3_MFT0_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42400684UL)) -#define bFM3_MFT0_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42400688UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42400800UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42400804UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42400808UL)) -#define bFM3_MFT0_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4240080CUL)) -#define bFM3_MFT0_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42400810UL)) -#define bFM3_MFT0_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42400814UL)) -#define bFM3_MFT0_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42400818UL)) -#define bFM3_MFT0_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4240081CUL)) -#define bFM3_MFT0_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42400820UL)) -#define bFM3_MFT0_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42400824UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42400834UL)) -#define bFM3_MFT0_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42400838UL)) -#define bFM3_MFT0_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4240083CUL)) -#define bFM3_MFT0_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42400880UL)) -#define bFM3_MFT0_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42400884UL)) -#define bFM3_MFT0_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42400888UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42400A00UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42400A04UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42400A08UL)) -#define bFM3_MFT0_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42400A0CUL)) -#define bFM3_MFT0_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42400A10UL)) -#define bFM3_MFT0_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42400A14UL)) -#define bFM3_MFT0_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42400A18UL)) -#define bFM3_MFT0_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42400A1CUL)) -#define bFM3_MFT0_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42400A20UL)) -#define bFM3_MFT0_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42400A24UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42400A34UL)) -#define bFM3_MFT0_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42400A38UL)) -#define bFM3_MFT0_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42400A3CUL)) -#define bFM3_MFT0_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42400A80UL)) -#define bFM3_MFT0_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42400A84UL)) -#define bFM3_MFT0_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42400A88UL)) - -/* Multifunction Timer unit 0 Output Compare Unit registers */ -#define bFM3_MFT0_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42400300UL)) -#define bFM3_MFT0_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42400304UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42400308UL)) -#define bFM3_MFT0_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4240030CUL)) -#define bFM3_MFT0_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42400310UL)) -#define bFM3_MFT0_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42400314UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42400318UL)) -#define bFM3_MFT0_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4240031CUL)) -#define bFM3_MFT0_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42400320UL)) -#define bFM3_MFT0_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42400324UL)) -#define bFM3_MFT0_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42400330UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42400334UL)) -#define bFM3_MFT0_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42400338UL)) -#define bFM3_MFT0_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42400380UL)) -#define bFM3_MFT0_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42400384UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42400388UL)) -#define bFM3_MFT0_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4240038CUL)) -#define bFM3_MFT0_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42400390UL)) -#define bFM3_MFT0_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42400394UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42400398UL)) -#define bFM3_MFT0_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4240039CUL)) -#define bFM3_MFT0_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424003A0UL)) -#define bFM3_MFT0_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424003A4UL)) -#define bFM3_MFT0_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424003B0UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424003B4UL)) -#define bFM3_MFT0_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424003B8UL)) -#define bFM3_MFT0_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42400400UL)) -#define bFM3_MFT0_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42400404UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42400408UL)) -#define bFM3_MFT0_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4240040CUL)) -#define bFM3_MFT0_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42400410UL)) -#define bFM3_MFT0_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42400414UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42400418UL)) -#define bFM3_MFT0_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4240041CUL)) -#define bFM3_MFT0_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42400420UL)) -#define bFM3_MFT0_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42400424UL)) -#define bFM3_MFT0_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42400430UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42400434UL)) -#define bFM3_MFT0_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42400438UL)) -#define bFM3_MFT0_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424004A0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424004A4UL)) -#define bFM3_MFT0_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424004A8UL)) -#define bFM3_MFT0_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424004ACUL)) -#define bFM3_MFT0_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424004B0UL)) -#define bFM3_MFT0_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424004B4UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42400B00UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42400B04UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42400B08UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42400B0CUL)) -#define bFM3_MFT0_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42400B10UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42400B14UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42400B18UL)) -#define bFM3_MFT0_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42400B1CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42400B20UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42400B24UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42400B28UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42400B2CUL)) -#define bFM3_MFT0_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42400B30UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42400B34UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42400B38UL)) -#define bFM3_MFT0_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42400B3CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42400B80UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42400B84UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42400B88UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42400B8CUL)) -#define bFM3_MFT0_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42400B90UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42400B94UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42400B98UL)) -#define bFM3_MFT0_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42400B9CUL)) - -/* Multifunction Timer unit 0 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT0_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42401180UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42401184UL)) -#define bFM3_MFT0_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42401188UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42401198UL)) -#define bFM3_MFT0_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4240119CUL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424011A0UL)) -#define bFM3_MFT0_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424011A4UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424011A8UL)) -#define bFM3_MFT0_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424011ACUL)) -#define bFM3_MFT0_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424011B0UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42401200UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42401204UL)) -#define bFM3_MFT0_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42401208UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42401218UL)) -#define bFM3_MFT0_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4240121CUL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42401220UL)) -#define bFM3_MFT0_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42401224UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42401228UL)) -#define bFM3_MFT0_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4240122CUL)) -#define bFM3_MFT0_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42401230UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42401280UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42401284UL)) -#define bFM3_MFT0_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42401288UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42401298UL)) -#define bFM3_MFT0_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4240129CUL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424012A0UL)) -#define bFM3_MFT0_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424012A4UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424012A8UL)) -#define bFM3_MFT0_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424012ACUL)) -#define bFM3_MFT0_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424012B0UL)) -#define bFM3_MFT0_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42401300UL)) -#define bFM3_MFT0_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42401304UL)) -#define bFM3_MFT0_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42401310UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42401314UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42401318UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4240131CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42401320UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42401324UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42401328UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4240132CUL)) -#define bFM3_MFT0_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42401330UL)) -#define bFM3_MFT0_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42401334UL)) -#define bFM3_MFT0_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42401338UL)) -#define bFM3_MFT0_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4240133CUL)) -#define bFM3_MFT0_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42401380UL)) -#define bFM3_MFT0_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42401384UL)) -#define bFM3_MFT0_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42401388UL)) -#define bFM3_MFT0_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4240138CUL)) -#define bFM3_MFT0_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42401390UL)) - -/* Multifunction Timer unit 0 Input Capture Unit registers */ -#define bFM3_MFT0_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42400C00UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42400C04UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42400C08UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42400C0CUL)) -#define bFM3_MFT0_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42400C10UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42400C14UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42400C18UL)) -#define bFM3_MFT0_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42400C1CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42400C20UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42400C24UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42400C28UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42400C2CUL)) -#define bFM3_MFT0_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42400C30UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42400C34UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42400C38UL)) -#define bFM3_MFT0_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42400C3CUL)) -#define bFM3_MFT0_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42400F00UL)) -#define bFM3_MFT0_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42400F04UL)) -#define bFM3_MFT0_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42400F08UL)) -#define bFM3_MFT0_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42400F0CUL)) -#define bFM3_MFT0_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42400F10UL)) -#define bFM3_MFT0_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42400F14UL)) -#define bFM3_MFT0_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42400F18UL)) -#define bFM3_MFT0_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42400F1CUL)) -#define bFM3_MFT0_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42400F20UL)) -#define bFM3_MFT0_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42400F24UL)) -#define bFM3_MFT0_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42400F80UL)) -#define bFM3_MFT0_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42400F84UL)) -#define bFM3_MFT0_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42400F88UL)) -#define bFM3_MFT0_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42400F8CUL)) -#define bFM3_MFT0_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42400F90UL)) -#define bFM3_MFT0_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42400F94UL)) -#define bFM3_MFT0_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42400F98UL)) -#define bFM3_MFT0_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42400F9CUL)) -#define bFM3_MFT0_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42400FA0UL)) -#define bFM3_MFT0_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42400FA4UL)) - -/* Multifunction Timer unit 0 ADC Start Compare Unit registers */ -#define bFM3_MFT0_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42401700UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42401704UL)) -#define bFM3_MFT0_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42401708UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42401710UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42401714UL)) -#define bFM3_MFT0_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42401718UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42401780UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42401784UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42401788UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4240178CUL)) -#define bFM3_MFT0_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42401790UL)) -#define bFM3_MFT0_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42401794UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424017A0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424017A4UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424017A8UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424017ACUL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424017B0UL)) -#define bFM3_MFT0_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424017B4UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42401800UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42401804UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42401808UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4240180CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42401810UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42401814UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42401820UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42401824UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42401828UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4240182CUL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42401830UL)) -#define bFM3_MFT0_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42401834UL)) - -/* Multifunction Timer unit 1 Free Running Timer registers */ -#define bFM3_MFT1_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42420600UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42420604UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42420608UL)) -#define bFM3_MFT1_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4242060CUL)) -#define bFM3_MFT1_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42420610UL)) -#define bFM3_MFT1_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42420614UL)) -#define bFM3_MFT1_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42420618UL)) -#define bFM3_MFT1_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4242061CUL)) -#define bFM3_MFT1_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42420620UL)) -#define bFM3_MFT1_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42420624UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42420634UL)) -#define bFM3_MFT1_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42420638UL)) -#define bFM3_MFT1_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4242063CUL)) -#define bFM3_MFT1_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42420680UL)) -#define bFM3_MFT1_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42420684UL)) -#define bFM3_MFT1_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42420688UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42420800UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42420804UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42420808UL)) -#define bFM3_MFT1_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4242080CUL)) -#define bFM3_MFT1_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42420810UL)) -#define bFM3_MFT1_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42420814UL)) -#define bFM3_MFT1_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42420818UL)) -#define bFM3_MFT1_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4242081CUL)) -#define bFM3_MFT1_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42420820UL)) -#define bFM3_MFT1_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42420824UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42420834UL)) -#define bFM3_MFT1_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42420838UL)) -#define bFM3_MFT1_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4242083CUL)) -#define bFM3_MFT1_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42420880UL)) -#define bFM3_MFT1_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42420884UL)) -#define bFM3_MFT1_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42420888UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42420A00UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42420A04UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42420A08UL)) -#define bFM3_MFT1_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42420A0CUL)) -#define bFM3_MFT1_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42420A10UL)) -#define bFM3_MFT1_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42420A14UL)) -#define bFM3_MFT1_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42420A18UL)) -#define bFM3_MFT1_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42420A1CUL)) -#define bFM3_MFT1_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42420A20UL)) -#define bFM3_MFT1_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42420A24UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42420A34UL)) -#define bFM3_MFT1_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42420A38UL)) -#define bFM3_MFT1_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42420A3CUL)) -#define bFM3_MFT1_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42420A80UL)) -#define bFM3_MFT1_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42420A84UL)) -#define bFM3_MFT1_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42420A88UL)) - -/* Multifunction Timer unit 1 Output Compare Unit registers */ -#define bFM3_MFT1_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42420300UL)) -#define bFM3_MFT1_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42420304UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42420308UL)) -#define bFM3_MFT1_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4242030CUL)) -#define bFM3_MFT1_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42420310UL)) -#define bFM3_MFT1_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42420314UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42420318UL)) -#define bFM3_MFT1_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4242031CUL)) -#define bFM3_MFT1_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42420320UL)) -#define bFM3_MFT1_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42420324UL)) -#define bFM3_MFT1_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42420330UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42420334UL)) -#define bFM3_MFT1_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42420338UL)) -#define bFM3_MFT1_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42420380UL)) -#define bFM3_MFT1_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42420384UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42420388UL)) -#define bFM3_MFT1_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4242038CUL)) -#define bFM3_MFT1_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42420390UL)) -#define bFM3_MFT1_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42420394UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42420398UL)) -#define bFM3_MFT1_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4242039CUL)) -#define bFM3_MFT1_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424203A0UL)) -#define bFM3_MFT1_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424203A4UL)) -#define bFM3_MFT1_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424203B0UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424203B4UL)) -#define bFM3_MFT1_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424203B8UL)) -#define bFM3_MFT1_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42420400UL)) -#define bFM3_MFT1_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42420404UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42420408UL)) -#define bFM3_MFT1_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4242040CUL)) -#define bFM3_MFT1_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42420410UL)) -#define bFM3_MFT1_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42420414UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42420418UL)) -#define bFM3_MFT1_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4242041CUL)) -#define bFM3_MFT1_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42420420UL)) -#define bFM3_MFT1_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42420424UL)) -#define bFM3_MFT1_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42420430UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42420434UL)) -#define bFM3_MFT1_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42420438UL)) -#define bFM3_MFT1_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424204A0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424204A4UL)) -#define bFM3_MFT1_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424204A8UL)) -#define bFM3_MFT1_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424204ACUL)) -#define bFM3_MFT1_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424204B0UL)) -#define bFM3_MFT1_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424204B4UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42420B00UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42420B04UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42420B08UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42420B0CUL)) -#define bFM3_MFT1_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42420B10UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42420B14UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42420B18UL)) -#define bFM3_MFT1_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42420B1CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42420B20UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42420B24UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42420B28UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42420B2CUL)) -#define bFM3_MFT1_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42420B30UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42420B34UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42420B38UL)) -#define bFM3_MFT1_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42420B3CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42420B80UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42420B84UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42420B88UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42420B8CUL)) -#define bFM3_MFT1_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42420B90UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42420B94UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42420B98UL)) -#define bFM3_MFT1_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42420B9CUL)) - -/* Multifunction Timer unit 1 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT1_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42421180UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42421184UL)) -#define bFM3_MFT1_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42421188UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42421198UL)) -#define bFM3_MFT1_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4242119CUL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424211A0UL)) -#define bFM3_MFT1_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424211A4UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424211A8UL)) -#define bFM3_MFT1_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424211ACUL)) -#define bFM3_MFT1_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424211B0UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42421200UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42421204UL)) -#define bFM3_MFT1_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42421208UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42421218UL)) -#define bFM3_MFT1_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4242121CUL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42421220UL)) -#define bFM3_MFT1_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42421224UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42421228UL)) -#define bFM3_MFT1_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4242122CUL)) -#define bFM3_MFT1_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42421230UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42421280UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42421284UL)) -#define bFM3_MFT1_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42421288UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42421298UL)) -#define bFM3_MFT1_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4242129CUL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424212A0UL)) -#define bFM3_MFT1_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424212A4UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424212A8UL)) -#define bFM3_MFT1_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424212ACUL)) -#define bFM3_MFT1_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424212B0UL)) -#define bFM3_MFT1_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42421300UL)) -#define bFM3_MFT1_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42421304UL)) -#define bFM3_MFT1_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42421310UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42421314UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42421318UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4242131CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42421320UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42421324UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42421328UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4242132CUL)) -#define bFM3_MFT1_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42421330UL)) -#define bFM3_MFT1_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42421334UL)) -#define bFM3_MFT1_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42421338UL)) -#define bFM3_MFT1_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4242133CUL)) -#define bFM3_MFT1_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42421380UL)) -#define bFM3_MFT1_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42421384UL)) -#define bFM3_MFT1_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42421388UL)) -#define bFM3_MFT1_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4242138CUL)) -#define bFM3_MFT1_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42421390UL)) - -/* Multifunction Timer unit 1 Input Capture Unit registers */ -#define bFM3_MFT1_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42420C00UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42420C04UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42420C08UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42420C0CUL)) -#define bFM3_MFT1_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42420C10UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42420C14UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42420C18UL)) -#define bFM3_MFT1_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42420C1CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42420C20UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42420C24UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42420C28UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42420C2CUL)) -#define bFM3_MFT1_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42420C30UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42420C34UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42420C38UL)) -#define bFM3_MFT1_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42420C3CUL)) -#define bFM3_MFT1_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42420F00UL)) -#define bFM3_MFT1_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42420F04UL)) -#define bFM3_MFT1_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42420F08UL)) -#define bFM3_MFT1_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42420F0CUL)) -#define bFM3_MFT1_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42420F10UL)) -#define bFM3_MFT1_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42420F14UL)) -#define bFM3_MFT1_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42420F18UL)) -#define bFM3_MFT1_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42420F1CUL)) -#define bFM3_MFT1_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42420F20UL)) -#define bFM3_MFT1_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42420F24UL)) -#define bFM3_MFT1_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42420F80UL)) -#define bFM3_MFT1_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42420F84UL)) -#define bFM3_MFT1_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42420F88UL)) -#define bFM3_MFT1_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42420F8CUL)) -#define bFM3_MFT1_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42420F90UL)) -#define bFM3_MFT1_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42420F94UL)) -#define bFM3_MFT1_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42420F98UL)) -#define bFM3_MFT1_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42420F9CUL)) -#define bFM3_MFT1_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42420FA0UL)) -#define bFM3_MFT1_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42420FA4UL)) - -/* Multifunction Timer unit 1 ADC Start Compare Unit registers */ -#define bFM3_MFT1_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42421700UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42421704UL)) -#define bFM3_MFT1_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42421708UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42421710UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42421714UL)) -#define bFM3_MFT1_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42421718UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42421780UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42421784UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42421788UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4242178CUL)) -#define bFM3_MFT1_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42421790UL)) -#define bFM3_MFT1_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42421794UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424217A0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424217A4UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424217A8UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424217ACUL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424217B0UL)) -#define bFM3_MFT1_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424217B4UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42421800UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42421804UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42421808UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4242180CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42421810UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42421814UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42421820UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42421824UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42421828UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4242182CUL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42421830UL)) -#define bFM3_MFT1_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42421834UL)) - -/* Multifunction Timer unit 2 Free Running Timer registers */ -#define bFM3_MFT2_FRT_TCSA0_CLK0 *((volatile unsigned int*)(0x42440600UL)) -#define bFM3_MFT2_FRT_TCSA0_CLK1 *((volatile unsigned int*)(0x42440604UL)) -#define bFM3_MFT2_FRT_TCSA0_CLK2 *((volatile unsigned int*)(0x42440608UL)) -#define bFM3_MFT2_FRT_TCSA0_CLK3 *((volatile unsigned int*)(0x4244060CUL)) -#define bFM3_MFT2_FRT_TCSA0_SCLR *((volatile unsigned int*)(0x42440610UL)) -#define bFM3_MFT2_FRT_TCSA0_MODE *((volatile unsigned int*)(0x42440614UL)) -#define bFM3_MFT2_FRT_TCSA0_STOP *((volatile unsigned int*)(0x42440618UL)) -#define bFM3_MFT2_FRT_TCSA0_BFE *((volatile unsigned int*)(0x4244061CUL)) -#define bFM3_MFT2_FRT_TCSA0_ICRE *((volatile unsigned int*)(0x42440620UL)) -#define bFM3_MFT2_FRT_TCSA0_ICLR *((volatile unsigned int*)(0x42440624UL)) -#define bFM3_MFT2_FRT_TCSA0_IRQZE *((volatile unsigned int*)(0x42440634UL)) -#define bFM3_MFT2_FRT_TCSA0_IRQZF *((volatile unsigned int*)(0x42440638UL)) -#define bFM3_MFT2_FRT_TCSA0_ECKE *((volatile unsigned int*)(0x4244063CUL)) -#define bFM3_MFT2_FRT_TCSB0_AD0E *((volatile unsigned int*)(0x42440680UL)) -#define bFM3_MFT2_FRT_TCSB0_AD1E *((volatile unsigned int*)(0x42440684UL)) -#define bFM3_MFT2_FRT_TCSB0_AD2E *((volatile unsigned int*)(0x42440688UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK0 *((volatile unsigned int*)(0x42440800UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK1 *((volatile unsigned int*)(0x42440804UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK2 *((volatile unsigned int*)(0x42440808UL)) -#define bFM3_MFT2_FRT_TCSA1_CLK3 *((volatile unsigned int*)(0x4244080CUL)) -#define bFM3_MFT2_FRT_TCSA1_SCLR *((volatile unsigned int*)(0x42440810UL)) -#define bFM3_MFT2_FRT_TCSA1_MODE *((volatile unsigned int*)(0x42440814UL)) -#define bFM3_MFT2_FRT_TCSA1_STOP *((volatile unsigned int*)(0x42440818UL)) -#define bFM3_MFT2_FRT_TCSA1_BFE *((volatile unsigned int*)(0x4244081CUL)) -#define bFM3_MFT2_FRT_TCSA1_ICRE *((volatile unsigned int*)(0x42440820UL)) -#define bFM3_MFT2_FRT_TCSA1_ICLR *((volatile unsigned int*)(0x42440824UL)) -#define bFM3_MFT2_FRT_TCSA1_IRQZE *((volatile unsigned int*)(0x42440834UL)) -#define bFM3_MFT2_FRT_TCSA1_IRQZF *((volatile unsigned int*)(0x42440838UL)) -#define bFM3_MFT2_FRT_TCSA1_ECKE *((volatile unsigned int*)(0x4244083CUL)) -#define bFM3_MFT2_FRT_TCSB1_AD0E *((volatile unsigned int*)(0x42440880UL)) -#define bFM3_MFT2_FRT_TCSB1_AD1E *((volatile unsigned int*)(0x42440884UL)) -#define bFM3_MFT2_FRT_TCSB1_AD2E *((volatile unsigned int*)(0x42440888UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK0 *((volatile unsigned int*)(0x42440A00UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK1 *((volatile unsigned int*)(0x42440A04UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK2 *((volatile unsigned int*)(0x42440A08UL)) -#define bFM3_MFT2_FRT_TCSA2_CLK3 *((volatile unsigned int*)(0x42440A0CUL)) -#define bFM3_MFT2_FRT_TCSA2_SCLR *((volatile unsigned int*)(0x42440A10UL)) -#define bFM3_MFT2_FRT_TCSA2_MODE *((volatile unsigned int*)(0x42440A14UL)) -#define bFM3_MFT2_FRT_TCSA2_STOP *((volatile unsigned int*)(0x42440A18UL)) -#define bFM3_MFT2_FRT_TCSA2_BFE *((volatile unsigned int*)(0x42440A1CUL)) -#define bFM3_MFT2_FRT_TCSA2_ICRE *((volatile unsigned int*)(0x42440A20UL)) -#define bFM3_MFT2_FRT_TCSA2_ICLR *((volatile unsigned int*)(0x42440A24UL)) -#define bFM3_MFT2_FRT_TCSA2_IRQZE *((volatile unsigned int*)(0x42440A34UL)) -#define bFM3_MFT2_FRT_TCSA2_IRQZF *((volatile unsigned int*)(0x42440A38UL)) -#define bFM3_MFT2_FRT_TCSA2_ECKE *((volatile unsigned int*)(0x42440A3CUL)) -#define bFM3_MFT2_FRT_TCSB2_AD0E *((volatile unsigned int*)(0x42440A80UL)) -#define bFM3_MFT2_FRT_TCSB2_AD1E *((volatile unsigned int*)(0x42440A84UL)) -#define bFM3_MFT2_FRT_TCSB2_AD2E *((volatile unsigned int*)(0x42440A88UL)) - -/* Multifunction Timer unit 2 Output Compare Unit registers */ -#define bFM3_MFT2_OCU_OCSA10_CST0 *((volatile unsigned int*)(0x42440300UL)) -#define bFM3_MFT2_OCU_OCSA10_CST1 *((volatile unsigned int*)(0x42440304UL)) -#define bFM3_MFT2_OCU_OCSA10_BDIS0 *((volatile unsigned int*)(0x42440308UL)) -#define bFM3_MFT2_OCU_OCSA10_BDIS1 *((volatile unsigned int*)(0x4244030CUL)) -#define bFM3_MFT2_OCU_OCSA10_IOE0 *((volatile unsigned int*)(0x42440310UL)) -#define bFM3_MFT2_OCU_OCSA10_IOE1 *((volatile unsigned int*)(0x42440314UL)) -#define bFM3_MFT2_OCU_OCSA10_IOP0 *((volatile unsigned int*)(0x42440318UL)) -#define bFM3_MFT2_OCU_OCSA10_IOP1 *((volatile unsigned int*)(0x4244031CUL)) -#define bFM3_MFT2_OCU_OCSB10_OTD0 *((volatile unsigned int*)(0x42440320UL)) -#define bFM3_MFT2_OCU_OCSB10_OTD1 *((volatile unsigned int*)(0x42440324UL)) -#define bFM3_MFT2_OCU_OCSB10_CMOD *((volatile unsigned int*)(0x42440330UL)) -#define bFM3_MFT2_OCU_OCSB10_BTS0 *((volatile unsigned int*)(0x42440334UL)) -#define bFM3_MFT2_OCU_OCSB10_BTS1 *((volatile unsigned int*)(0x42440338UL)) -#define bFM3_MFT2_OCU_OCSA32_CST2 *((volatile unsigned int*)(0x42440380UL)) -#define bFM3_MFT2_OCU_OCSA32_CST3 *((volatile unsigned int*)(0x42440384UL)) -#define bFM3_MFT2_OCU_OCSA32_BDIS2 *((volatile unsigned int*)(0x42440388UL)) -#define bFM3_MFT2_OCU_OCSA32_BDIS3 *((volatile unsigned int*)(0x4244038CUL)) -#define bFM3_MFT2_OCU_OCSA32_IOE2 *((volatile unsigned int*)(0x42440390UL)) -#define bFM3_MFT2_OCU_OCSA32_IOE3 *((volatile unsigned int*)(0x42440394UL)) -#define bFM3_MFT2_OCU_OCSA32_IOP2 *((volatile unsigned int*)(0x42440398UL)) -#define bFM3_MFT2_OCU_OCSA32_IOP3 *((volatile unsigned int*)(0x4244039CUL)) -#define bFM3_MFT2_OCU_OCSB32_OTD2 *((volatile unsigned int*)(0x424403A0UL)) -#define bFM3_MFT2_OCU_OCSB32_OTD3 *((volatile unsigned int*)(0x424403A4UL)) -#define bFM3_MFT2_OCU_OCSB32_CMOD *((volatile unsigned int*)(0x424403B0UL)) -#define bFM3_MFT2_OCU_OCSB32_BTS2 *((volatile unsigned int*)(0x424403B4UL)) -#define bFM3_MFT2_OCU_OCSB32_BTS3 *((volatile unsigned int*)(0x424403B8UL)) -#define bFM3_MFT2_OCU_OCSA54_CST4 *((volatile unsigned int*)(0x42440400UL)) -#define bFM3_MFT2_OCU_OCSA54_CST5 *((volatile unsigned int*)(0x42440404UL)) -#define bFM3_MFT2_OCU_OCSA54_BDIS4 *((volatile unsigned int*)(0x42440408UL)) -#define bFM3_MFT2_OCU_OCSA54_BDIS5 *((volatile unsigned int*)(0x4244040CUL)) -#define bFM3_MFT2_OCU_OCSA54_IOE4 *((volatile unsigned int*)(0x42440410UL)) -#define bFM3_MFT2_OCU_OCSA54_IOE5 *((volatile unsigned int*)(0x42440414UL)) -#define bFM3_MFT2_OCU_OCSA54_IOP4 *((volatile unsigned int*)(0x42440418UL)) -#define bFM3_MFT2_OCU_OCSA54_IOP5 *((volatile unsigned int*)(0x4244041CUL)) -#define bFM3_MFT2_OCU_OCSB54_OTD4 *((volatile unsigned int*)(0x42440420UL)) -#define bFM3_MFT2_OCU_OCSB54_OTD5 *((volatile unsigned int*)(0x42440424UL)) -#define bFM3_MFT2_OCU_OCSB54_CMOD *((volatile unsigned int*)(0x42440430UL)) -#define bFM3_MFT2_OCU_OCSB54_BTS4 *((volatile unsigned int*)(0x42440434UL)) -#define bFM3_MFT2_OCU_OCSB54_BTS5 *((volatile unsigned int*)(0x42440438UL)) -#define bFM3_MFT2_OCU_OCSC_MOD0 *((volatile unsigned int*)(0x424404A0UL)) -#define bFM3_MFT2_OCU_OCSC_MOD1 *((volatile unsigned int*)(0x424404A4UL)) -#define bFM3_MFT2_OCU_OCSC_MOD2 *((volatile unsigned int*)(0x424404A8UL)) -#define bFM3_MFT2_OCU_OCSC_MOD3 *((volatile unsigned int*)(0x424404ACUL)) -#define bFM3_MFT2_OCU_OCSC_MOD4 *((volatile unsigned int*)(0x424404B0UL)) -#define bFM3_MFT2_OCU_OCSC_MOD5 *((volatile unsigned int*)(0x424404B4UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO00 *((volatile unsigned int*)(0x42440B00UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO01 *((volatile unsigned int*)(0x42440B04UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO02 *((volatile unsigned int*)(0x42440B08UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO03 *((volatile unsigned int*)(0x42440B0CUL)) -#define bFM3_MFT2_OCU_OCFS10_FSO10 *((volatile unsigned int*)(0x42440B10UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO11 *((volatile unsigned int*)(0x42440B14UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO12 *((volatile unsigned int*)(0x42440B18UL)) -#define bFM3_MFT2_OCU_OCFS10_FSO13 *((volatile unsigned int*)(0x42440B1CUL)) -#define bFM3_MFT2_OCU_OCFS32_FSO20 *((volatile unsigned int*)(0x42440B20UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO21 *((volatile unsigned int*)(0x42440B24UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO22 *((volatile unsigned int*)(0x42440B28UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO23 *((volatile unsigned int*)(0x42440B2CUL)) -#define bFM3_MFT2_OCU_OCFS32_FSO30 *((volatile unsigned int*)(0x42440B30UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO31 *((volatile unsigned int*)(0x42440B34UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO32 *((volatile unsigned int*)(0x42440B38UL)) -#define bFM3_MFT2_OCU_OCFS32_FSO33 *((volatile unsigned int*)(0x42440B3CUL)) -#define bFM3_MFT2_OCU_OCFS54_FSO40 *((volatile unsigned int*)(0x42440B80UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO41 *((volatile unsigned int*)(0x42440B84UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO42 *((volatile unsigned int*)(0x42440B88UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO43 *((volatile unsigned int*)(0x42440B8CUL)) -#define bFM3_MFT2_OCU_OCFS54_FSO50 *((volatile unsigned int*)(0x42440B90UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO51 *((volatile unsigned int*)(0x42440B94UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO52 *((volatile unsigned int*)(0x42440B98UL)) -#define bFM3_MFT2_OCU_OCFS54_FSO53 *((volatile unsigned int*)(0x42440B9CUL)) - -/* Multifunction Timer unit 2 Waveform Generator and Noise Canceler registers */ -#define bFM3_MFT2_WFG_WFSA10_DCK0 *((volatile unsigned int*)(0x42441180UL)) -#define bFM3_MFT2_WFG_WFSA10_DCK1 *((volatile unsigned int*)(0x42441184UL)) -#define bFM3_MFT2_WFG_WFSA10_DCK2 *((volatile unsigned int*)(0x42441188UL)) -#define bFM3_MFT2_WFG_WFSA10_GTEN0 *((volatile unsigned int*)(0x42441198UL)) -#define bFM3_MFT2_WFG_WFSA10_GTEN1 *((volatile unsigned int*)(0x4244119CUL)) -#define bFM3_MFT2_WFG_WFSA10_PSEL0 *((volatile unsigned int*)(0x424411A0UL)) -#define bFM3_MFT2_WFG_WFSA10_PSEL1 *((volatile unsigned int*)(0x424411A4UL)) -#define bFM3_MFT2_WFG_WFSA10_PGEN0 *((volatile unsigned int*)(0x424411A8UL)) -#define bFM3_MFT2_WFG_WFSA10_PGEN1 *((volatile unsigned int*)(0x424411ACUL)) -#define bFM3_MFT2_WFG_WFSA10_DMOD *((volatile unsigned int*)(0x424411B0UL)) -#define bFM3_MFT2_WFG_WFSA32_DCK0 *((volatile unsigned int*)(0x42441200UL)) -#define bFM3_MFT2_WFG_WFSA32_DCK1 *((volatile unsigned int*)(0x42441204UL)) -#define bFM3_MFT2_WFG_WFSA32_DCK2 *((volatile unsigned int*)(0x42441208UL)) -#define bFM3_MFT2_WFG_WFSA32_GTEN0 *((volatile unsigned int*)(0x42441218UL)) -#define bFM3_MFT2_WFG_WFSA32_GTEN1 *((volatile unsigned int*)(0x4244121CUL)) -#define bFM3_MFT2_WFG_WFSA32_PSEL0 *((volatile unsigned int*)(0x42441220UL)) -#define bFM3_MFT2_WFG_WFSA32_PSEL1 *((volatile unsigned int*)(0x42441224UL)) -#define bFM3_MFT2_WFG_WFSA32_PGEN0 *((volatile unsigned int*)(0x42441228UL)) -#define bFM3_MFT2_WFG_WFSA32_PGEN1 *((volatile unsigned int*)(0x4244122CUL)) -#define bFM3_MFT2_WFG_WFSA32_DMOD *((volatile unsigned int*)(0x42441230UL)) -#define bFM3_MFT2_WFG_WFSA54_DCK0 *((volatile unsigned int*)(0x42441280UL)) -#define bFM3_MFT2_WFG_WFSA54_DCK1 *((volatile unsigned int*)(0x42441284UL)) -#define bFM3_MFT2_WFG_WFSA54_DCK2 *((volatile unsigned int*)(0x42441288UL)) -#define bFM3_MFT2_WFG_WFSA54_GTEN0 *((volatile unsigned int*)(0x42441298UL)) -#define bFM3_MFT2_WFG_WFSA54_GTEN1 *((volatile unsigned int*)(0x4244129CUL)) -#define bFM3_MFT2_WFG_WFSA54_PSEL0 *((volatile unsigned int*)(0x424412A0UL)) -#define bFM3_MFT2_WFG_WFSA54_PSEL1 *((volatile unsigned int*)(0x424412A4UL)) -#define bFM3_MFT2_WFG_WFSA54_PGEN0 *((volatile unsigned int*)(0x424412A8UL)) -#define bFM3_MFT2_WFG_WFSA54_PGEN1 *((volatile unsigned int*)(0x424412ACUL)) -#define bFM3_MFT2_WFG_WFSA54_DMOD *((volatile unsigned int*)(0x424412B0UL)) -#define bFM3_MFT2_WFG_WFIR_DTIF *((volatile unsigned int*)(0x42441300UL)) -#define bFM3_MFT2_WFG_WFIR_DTIC *((volatile unsigned int*)(0x42441304UL)) -#define bFM3_MFT2_WFG_WFIR_TMIF10 *((volatile unsigned int*)(0x42441310UL)) -#define bFM3_MFT2_WFG_WFIR_TMIC10 *((volatile unsigned int*)(0x42441314UL)) -#define bFM3_MFT2_WFG_WFIR_TMIE10 *((volatile unsigned int*)(0x42441318UL)) -#define bFM3_MFT2_WFG_WFIR_TMIS10 *((volatile unsigned int*)(0x4244131CUL)) -#define bFM3_MFT2_WFG_WFIR_TMIF32 *((volatile unsigned int*)(0x42441320UL)) -#define bFM3_MFT2_WFG_WFIR_TMIC32 *((volatile unsigned int*)(0x42441324UL)) -#define bFM3_MFT2_WFG_WFIR_TMIE32 *((volatile unsigned int*)(0x42441328UL)) -#define bFM3_MFT2_WFG_WFIR_TMIS32 *((volatile unsigned int*)(0x4244132CUL)) -#define bFM3_MFT2_WFG_WFIR_TMIF54 *((volatile unsigned int*)(0x42441330UL)) -#define bFM3_MFT2_WFG_WFIR_TMIC54 *((volatile unsigned int*)(0x42441334UL)) -#define bFM3_MFT2_WFG_WFIR_TMIE54 *((volatile unsigned int*)(0x42441338UL)) -#define bFM3_MFT2_WFG_WFIR_TMIS54 *((volatile unsigned int*)(0x4244133CUL)) -#define bFM3_MFT2_WFG_NZCL_DTIE *((volatile unsigned int*)(0x42441380UL)) -#define bFM3_MFT2_WFG_NZCL_NWS0 *((volatile unsigned int*)(0x42441384UL)) -#define bFM3_MFT2_WFG_NZCL_NWS1 *((volatile unsigned int*)(0x42441388UL)) -#define bFM3_MFT2_WFG_NZCL_NWS2 *((volatile unsigned int*)(0x4244138CUL)) -#define bFM3_MFT2_WFG_NZCL_SDTI *((volatile unsigned int*)(0x42441390UL)) - -/* Multifunction Timer unit 2 Input Capture Unit registers */ -#define bFM3_MFT2_ICU_ICFS10_FSI00 *((volatile unsigned int*)(0x42440C00UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI01 *((volatile unsigned int*)(0x42440C04UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI02 *((volatile unsigned int*)(0x42440C08UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI03 *((volatile unsigned int*)(0x42440C0CUL)) -#define bFM3_MFT2_ICU_ICFS10_FSI10 *((volatile unsigned int*)(0x42440C10UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI11 *((volatile unsigned int*)(0x42440C14UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI12 *((volatile unsigned int*)(0x42440C18UL)) -#define bFM3_MFT2_ICU_ICFS10_FSI13 *((volatile unsigned int*)(0x42440C1CUL)) -#define bFM3_MFT2_ICU_ICFS32_FSI20 *((volatile unsigned int*)(0x42440C20UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI21 *((volatile unsigned int*)(0x42440C24UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI22 *((volatile unsigned int*)(0x42440C28UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI23 *((volatile unsigned int*)(0x42440C2CUL)) -#define bFM3_MFT2_ICU_ICFS32_FSI30 *((volatile unsigned int*)(0x42440C30UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI31 *((volatile unsigned int*)(0x42440C34UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI32 *((volatile unsigned int*)(0x42440C38UL)) -#define bFM3_MFT2_ICU_ICFS32_FSI33 *((volatile unsigned int*)(0x42440C3CUL)) -#define bFM3_MFT2_ICU_ICSA10_EG00 *((volatile unsigned int*)(0x42440F00UL)) -#define bFM3_MFT2_ICU_ICSA10_EG01 *((volatile unsigned int*)(0x42440F04UL)) -#define bFM3_MFT2_ICU_ICSA10_EG10 *((volatile unsigned int*)(0x42440F08UL)) -#define bFM3_MFT2_ICU_ICSA10_EG11 *((volatile unsigned int*)(0x42440F0CUL)) -#define bFM3_MFT2_ICU_ICSA10_ICE0 *((volatile unsigned int*)(0x42440F10UL)) -#define bFM3_MFT2_ICU_ICSA10_ICE1 *((volatile unsigned int*)(0x42440F14UL)) -#define bFM3_MFT2_ICU_ICSA10_ICP0 *((volatile unsigned int*)(0x42440F18UL)) -#define bFM3_MFT2_ICU_ICSA10_ICP1 *((volatile unsigned int*)(0x42440F1CUL)) -#define bFM3_MFT2_ICU_ICSB10_IEI0 *((volatile unsigned int*)(0x42440F20UL)) -#define bFM3_MFT2_ICU_ICSB10_IEI1 *((volatile unsigned int*)(0x42440F24UL)) -#define bFM3_MFT2_ICU_ICSA32_EG20 *((volatile unsigned int*)(0x42440F80UL)) -#define bFM3_MFT2_ICU_ICSA32_EG21 *((volatile unsigned int*)(0x42440F84UL)) -#define bFM3_MFT2_ICU_ICSA32_EG30 *((volatile unsigned int*)(0x42440F88UL)) -#define bFM3_MFT2_ICU_ICSA32_EG31 *((volatile unsigned int*)(0x42440F8CUL)) -#define bFM3_MFT2_ICU_ICSA32_ICE2 *((volatile unsigned int*)(0x42440F90UL)) -#define bFM3_MFT2_ICU_ICSA32_ICE3 *((volatile unsigned int*)(0x42440F94UL)) -#define bFM3_MFT2_ICU_ICSA32_ICP2 *((volatile unsigned int*)(0x42440F98UL)) -#define bFM3_MFT2_ICU_ICSA32_ICP3 *((volatile unsigned int*)(0x42440F9CUL)) -#define bFM3_MFT2_ICU_ICSB32_IEI2 *((volatile unsigned int*)(0x42440FA0UL)) -#define bFM3_MFT2_ICU_ICSB32_IEI3 *((volatile unsigned int*)(0x42440FA4UL)) - -/* Multifunction Timer unit 2 ADC Start Compare Unit registers */ -#define bFM3_MFT2_ADCMP_ACSB_BDIS0 *((volatile unsigned int*)(0x42441700UL)) -#define bFM3_MFT2_ADCMP_ACSB_BDIS1 *((volatile unsigned int*)(0x42441704UL)) -#define bFM3_MFT2_ADCMP_ACSB_BDIS2 *((volatile unsigned int*)(0x42441708UL)) -#define bFM3_MFT2_ADCMP_ACSB_BTS0 *((volatile unsigned int*)(0x42441710UL)) -#define bFM3_MFT2_ADCMP_ACSB_BTS1 *((volatile unsigned int*)(0x42441714UL)) -#define bFM3_MFT2_ADCMP_ACSB_BTS2 *((volatile unsigned int*)(0x42441718UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE00 *((volatile unsigned int*)(0x42441780UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE01 *((volatile unsigned int*)(0x42441784UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE10 *((volatile unsigned int*)(0x42441788UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE11 *((volatile unsigned int*)(0x4244178CUL)) -#define bFM3_MFT2_ADCMP_ACSA_CE20 *((volatile unsigned int*)(0x42441790UL)) -#define bFM3_MFT2_ADCMP_ACSA_CE21 *((volatile unsigned int*)(0x42441794UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL00 *((volatile unsigned int*)(0x424417A0UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL01 *((volatile unsigned int*)(0x424417A4UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL10 *((volatile unsigned int*)(0x424417A8UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL11 *((volatile unsigned int*)(0x424417ACUL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL20 *((volatile unsigned int*)(0x424417B0UL)) -#define bFM3_MFT2_ADCMP_ACSA_SEL21 *((volatile unsigned int*)(0x424417B4UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0S0 *((volatile unsigned int*)(0x42441800UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0S1 *((volatile unsigned int*)(0x42441804UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1S0 *((volatile unsigned int*)(0x42441808UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1S1 *((volatile unsigned int*)(0x4244180CUL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2S0 *((volatile unsigned int*)(0x42441810UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2S1 *((volatile unsigned int*)(0x42441814UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0P0 *((volatile unsigned int*)(0x42441820UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD0P1 *((volatile unsigned int*)(0x42441824UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1P0 *((volatile unsigned int*)(0x42441828UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD1P1 *((volatile unsigned int*)(0x4244182CUL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2P0 *((volatile unsigned int*)(0x42441830UL)) -#define bFM3_MFT2_ADCMP_ATSA_AD2P1 *((volatile unsigned int*)(0x42441834UL)) - -/* Multifunction Timer PPG registers */ -#define bFM3_MFT_PPG_TTCR0_STR0 *((volatile unsigned int*)(0x42480020UL)) -#define bFM3_MFT_PPG_TTCR0_MONI0 *((volatile unsigned int*)(0x42480024UL)) -#define bFM3_MFT_PPG_TTCR0_CS00 *((volatile unsigned int*)(0x42480028UL)) -#define bFM3_MFT_PPG_TTCR0_CS01 *((volatile unsigned int*)(0x4248002CUL)) -#define bFM3_MFT_PPG_TTCR0_TRG0O *((volatile unsigned int*)(0x42480030UL)) -#define bFM3_MFT_PPG_TTCR0_TRG2O *((volatile unsigned int*)(0x42480034UL)) -#define bFM3_MFT_PPG_TTCR0_TRG4O *((volatile unsigned int*)(0x42480038UL)) -#define bFM3_MFT_PPG_TTCR0_TRG6O *((volatile unsigned int*)(0x4248003CUL)) -#define bFM3_MFT_PPG_TTCR1_STR1 *((volatile unsigned int*)(0x42480420UL)) -#define bFM3_MFT_PPG_TTCR1_MONI1 *((volatile unsigned int*)(0x42480424UL)) -#define bFM3_MFT_PPG_TTCR1_CS10 *((volatile unsigned int*)(0x42480428UL)) -#define bFM3_MFT_PPG_TTCR1_CS11 *((volatile unsigned int*)(0x4248042CUL)) -#define bFM3_MFT_PPG_TTCR1_TRG1O *((volatile unsigned int*)(0x42480430UL)) -#define bFM3_MFT_PPG_TTCR1_TRG3O *((volatile unsigned int*)(0x42480434UL)) -#define bFM3_MFT_PPG_TTCR1_TRG5O *((volatile unsigned int*)(0x42480438UL)) -#define bFM3_MFT_PPG_TTCR1_TRG7O *((volatile unsigned int*)(0x4248043CUL)) -#define bFM3_MFT_PPG_TTCR2_STR2 *((volatile unsigned int*)(0x42480820UL)) -#define bFM3_MFT_PPG_TTCR2_MONI2 *((volatile unsigned int*)(0x42480824UL)) -#define bFM3_MFT_PPG_TTCR2_CS20 *((volatile unsigned int*)(0x42480828UL)) -#define bFM3_MFT_PPG_TTCR2_CS21 *((volatile unsigned int*)(0x4248082CUL)) -#define bFM3_MFT_PPG_TTCR2_TRG16O *((volatile unsigned int*)(0x42480830UL)) -#define bFM3_MFT_PPG_TTCR2_TRG18O *((volatile unsigned int*)(0x42480834UL)) -#define bFM3_MFT_PPG_TTCR2_TRG20O *((volatile unsigned int*)(0x42480838UL)) -#define bFM3_MFT_PPG_TTCR2_TRG22O *((volatile unsigned int*)(0x4248083CUL)) -#define bFM3_MFT_PPG_TRG_PEN00 *((volatile unsigned int*)(0x42482000UL)) -#define bFM3_MFT_PPG_TRG_PEN01 *((volatile unsigned int*)(0x42482004UL)) -#define bFM3_MFT_PPG_TRG_PEN02 *((volatile unsigned int*)(0x42482008UL)) -#define bFM3_MFT_PPG_TRG_PEN03 *((volatile unsigned int*)(0x4248200CUL)) -#define bFM3_MFT_PPG_TRG_PEN04 *((volatile unsigned int*)(0x42482010UL)) -#define bFM3_MFT_PPG_TRG_PEN05 *((volatile unsigned int*)(0x42482014UL)) -#define bFM3_MFT_PPG_TRG_PEN06 *((volatile unsigned int*)(0x42482018UL)) -#define bFM3_MFT_PPG_TRG_PEN07 *((volatile unsigned int*)(0x4248201CUL)) -#define bFM3_MFT_PPG_TRG_PEN08 *((volatile unsigned int*)(0x42482020UL)) -#define bFM3_MFT_PPG_TRG_PEN09 *((volatile unsigned int*)(0x42482024UL)) -#define bFM3_MFT_PPG_TRG_PEN10 *((volatile unsigned int*)(0x42482028UL)) -#define bFM3_MFT_PPG_TRG_PEN11 *((volatile unsigned int*)(0x4248202CUL)) -#define bFM3_MFT_PPG_TRG_PEN12 *((volatile unsigned int*)(0x42482030UL)) -#define bFM3_MFT_PPG_TRG_PEN13 *((volatile unsigned int*)(0x42482034UL)) -#define bFM3_MFT_PPG_TRG_PEN14 *((volatile unsigned int*)(0x42482038UL)) -#define bFM3_MFT_PPG_TRG_PEN15 *((volatile unsigned int*)(0x4248203CUL)) -#define bFM3_MFT_PPG_REVC_REV00 *((volatile unsigned int*)(0x42482080UL)) -#define bFM3_MFT_PPG_REVC_REV01 *((volatile unsigned int*)(0x42482084UL)) -#define bFM3_MFT_PPG_REVC_REV02 *((volatile unsigned int*)(0x42482088UL)) -#define bFM3_MFT_PPG_REVC_REV03 *((volatile unsigned int*)(0x4248208CUL)) -#define bFM3_MFT_PPG_REVC_REV04 *((volatile unsigned int*)(0x42482090UL)) -#define bFM3_MFT_PPG_REVC_REV05 *((volatile unsigned int*)(0x42482094UL)) -#define bFM3_MFT_PPG_REVC_REV06 *((volatile unsigned int*)(0x42482098UL)) -#define bFM3_MFT_PPG_REVC_REV07 *((volatile unsigned int*)(0x4248209CUL)) -#define bFM3_MFT_PPG_REVC_REV08 *((volatile unsigned int*)(0x424820A0UL)) -#define bFM3_MFT_PPG_REVC_REV09 *((volatile unsigned int*)(0x424820A4UL)) -#define bFM3_MFT_PPG_REVC_REV10 *((volatile unsigned int*)(0x424820A8UL)) -#define bFM3_MFT_PPG_REVC_REV11 *((volatile unsigned int*)(0x424820ACUL)) -#define bFM3_MFT_PPG_REVC_REV12 *((volatile unsigned int*)(0x424820B0UL)) -#define bFM3_MFT_PPG_REVC_REV13 *((volatile unsigned int*)(0x424820B4UL)) -#define bFM3_MFT_PPG_REVC_REV14 *((volatile unsigned int*)(0x424820B8UL)) -#define bFM3_MFT_PPG_REVC_REV15 *((volatile unsigned int*)(0x424820BCUL)) -#define bFM3_MFT_PPG_TRG1_PEN16 *((volatile unsigned int*)(0x42482800UL)) -#define bFM3_MFT_PPG_TRG1_PEN17 *((volatile unsigned int*)(0x42482804UL)) -#define bFM3_MFT_PPG_TRG1_PEN18 *((volatile unsigned int*)(0x42482808UL)) -#define bFM3_MFT_PPG_TRG1_PEN19 *((volatile unsigned int*)(0x4248280CUL)) -#define bFM3_MFT_PPG_TRG1_PEN20 *((volatile unsigned int*)(0x42482810UL)) -#define bFM3_MFT_PPG_TRG1_PEN21 *((volatile unsigned int*)(0x42482814UL)) -#define bFM3_MFT_PPG_TRG1_PEN22 *((volatile unsigned int*)(0x42482818UL)) -#define bFM3_MFT_PPG_TRG1_PEN23 *((volatile unsigned int*)(0x4248281CUL)) -#define bFM3_MFT_PPG_REVC1_REV16 *((volatile unsigned int*)(0x42482880UL)) -#define bFM3_MFT_PPG_REVC1_REV17 *((volatile unsigned int*)(0x42482884UL)) -#define bFM3_MFT_PPG_REVC1_REV18 *((volatile unsigned int*)(0x42482888UL)) -#define bFM3_MFT_PPG_REVC1_REV19 *((volatile unsigned int*)(0x4248288CUL)) -#define bFM3_MFT_PPG_REVC1_REV20 *((volatile unsigned int*)(0x42482890UL)) -#define bFM3_MFT_PPG_REVC1_REV21 *((volatile unsigned int*)(0x42482894UL)) -#define bFM3_MFT_PPG_REVC1_REV22 *((volatile unsigned int*)(0x42482898UL)) -#define bFM3_MFT_PPG_REVC1_REV23 *((volatile unsigned int*)(0x4248289CUL)) -#define bFM3_MFT_PPG_PPGC1_TTRG *((volatile unsigned int*)(0x42484000UL)) -#define bFM3_MFT_PPG_PPGC1_PCS0 *((volatile unsigned int*)(0x4248400CUL)) -#define bFM3_MFT_PPG_PPGC1_PCS1 *((volatile unsigned int*)(0x42484010UL)) -#define bFM3_MFT_PPG_PPGC1_INTM *((volatile unsigned int*)(0x42484014UL)) -#define bFM3_MFT_PPG_PPGC1_PUF *((volatile unsigned int*)(0x42484018UL)) -#define bFM3_MFT_PPG_PPGC1_PIE *((volatile unsigned int*)(0x4248401CUL)) -#define bFM3_MFT_PPG_PPGC0_TTRG *((volatile unsigned int*)(0x42484020UL)) -#define bFM3_MFT_PPG_PPGC0_PCS0 *((volatile unsigned int*)(0x4248402CUL)) -#define bFM3_MFT_PPG_PPGC0_PCS1 *((volatile unsigned int*)(0x42484030UL)) -#define bFM3_MFT_PPG_PPGC0_INTM *((volatile unsigned int*)(0x42484034UL)) -#define bFM3_MFT_PPG_PPGC0_PUF *((volatile unsigned int*)(0x42484038UL)) -#define bFM3_MFT_PPG_PPGC0_PIE *((volatile unsigned int*)(0x4248403CUL)) -#define bFM3_MFT_PPG_PPGC3_TTRG *((volatile unsigned int*)(0x42484080UL)) -#define bFM3_MFT_PPG_PPGC3_PCS0 *((volatile unsigned int*)(0x4248408CUL)) -#define bFM3_MFT_PPG_PPGC3_PCS1 *((volatile unsigned int*)(0x42484090UL)) -#define bFM3_MFT_PPG_PPGC3_INTM *((volatile unsigned int*)(0x42484094UL)) -#define bFM3_MFT_PPG_PPGC3_PUF *((volatile unsigned int*)(0x42484098UL)) -#define bFM3_MFT_PPG_PPGC3_PIE *((volatile unsigned int*)(0x4248409CUL)) -#define bFM3_MFT_PPG_PPGC2_TTRG *((volatile unsigned int*)(0x424840A0UL)) -#define bFM3_MFT_PPG_PPGC2_PCS0 *((volatile unsigned int*)(0x424840ACUL)) -#define bFM3_MFT_PPG_PPGC2_PCS1 *((volatile unsigned int*)(0x424840B0UL)) -#define bFM3_MFT_PPG_PPGC2_INTM *((volatile unsigned int*)(0x424840B4UL)) -#define bFM3_MFT_PPG_PPGC2_PUF *((volatile unsigned int*)(0x424840B8UL)) -#define bFM3_MFT_PPG_PPGC2_PIE *((volatile unsigned int*)(0x424840BCUL)) -#define bFM3_MFT_PPG_GATEC0_EDGE0 *((volatile unsigned int*)(0x42484300UL)) -#define bFM3_MFT_PPG_GATEC0_STRG0 *((volatile unsigned int*)(0x42484304UL)) -#define bFM3_MFT_PPG_GATEC0_EDGE2 *((volatile unsigned int*)(0x42484310UL)) -#define bFM3_MFT_PPG_GATEC0_STRG2 *((volatile unsigned int*)(0x42484314UL)) -#define bFM3_MFT_PPG_PPGC5_TTRG *((volatile unsigned int*)(0x42484800UL)) -#define bFM3_MFT_PPG_PPGC5_PCS0 *((volatile unsigned int*)(0x4248480CUL)) -#define bFM3_MFT_PPG_PPGC5_PCS1 *((volatile unsigned int*)(0x42484810UL)) -#define bFM3_MFT_PPG_PPGC5_INTM *((volatile unsigned int*)(0x42484814UL)) -#define bFM3_MFT_PPG_PPGC5_PUF *((volatile unsigned int*)(0x42484818UL)) -#define bFM3_MFT_PPG_PPGC5_PIE *((volatile unsigned int*)(0x4248481CUL)) -#define bFM3_MFT_PPG_PPGC4_TTRG *((volatile unsigned int*)(0x42484820UL)) -#define bFM3_MFT_PPG_PPGC4_PCS0 *((volatile unsigned int*)(0x4248482CUL)) -#define bFM3_MFT_PPG_PPGC4_PCS1 *((volatile unsigned int*)(0x42484830UL)) -#define bFM3_MFT_PPG_PPGC4_INTM *((volatile unsigned int*)(0x42484834UL)) -#define bFM3_MFT_PPG_PPGC4_PUF *((volatile unsigned int*)(0x42484838UL)) -#define bFM3_MFT_PPG_PPGC4_PIE *((volatile unsigned int*)(0x4248483CUL)) -#define bFM3_MFT_PPG_PPGC7_TTRG *((volatile unsigned int*)(0x42484880UL)) -#define bFM3_MFT_PPG_PPGC7_PCS0 *((volatile unsigned int*)(0x4248488CUL)) -#define bFM3_MFT_PPG_PPGC7_PCS1 *((volatile unsigned int*)(0x42484890UL)) -#define bFM3_MFT_PPG_PPGC7_INTM *((volatile unsigned int*)(0x42484894UL)) -#define bFM3_MFT_PPG_PPGC7_PUF *((volatile unsigned int*)(0x42484898UL)) -#define bFM3_MFT_PPG_PPGC7_PIE *((volatile unsigned int*)(0x4248489CUL)) -#define bFM3_MFT_PPG_PPGC6_TTRG *((volatile unsigned int*)(0x424848A0UL)) -#define bFM3_MFT_PPG_PPGC6_PCS0 *((volatile unsigned int*)(0x424848ACUL)) -#define bFM3_MFT_PPG_PPGC6_PCS1 *((volatile unsigned int*)(0x424848B0UL)) -#define bFM3_MFT_PPG_PPGC6_INTM *((volatile unsigned int*)(0x424848B4UL)) -#define bFM3_MFT_PPG_PPGC6_PUF *((volatile unsigned int*)(0x424848B8UL)) -#define bFM3_MFT_PPG_PPGC6_PIE *((volatile unsigned int*)(0x424848BCUL)) -#define bFM3_MFT_PPG_GATEC4_EDGE4 *((volatile unsigned int*)(0x42484B00UL)) -#define bFM3_MFT_PPG_GATEC4_STRG4 *((volatile unsigned int*)(0x42484B04UL)) -#define bFM3_MFT_PPG_GATEC4_EDGE6 *((volatile unsigned int*)(0x42484B10UL)) -#define bFM3_MFT_PPG_GATEC4_STRG6 *((volatile unsigned int*)(0x42484B14UL)) -#define bFM3_MFT_PPG_PPGC9_TTRG *((volatile unsigned int*)(0x42485000UL)) -#define bFM3_MFT_PPG_PPGC9_PCS0 *((volatile unsigned int*)(0x4248500CUL)) -#define bFM3_MFT_PPG_PPGC9_PCS1 *((volatile unsigned int*)(0x42485010UL)) -#define bFM3_MFT_PPG_PPGC9_INTM *((volatile unsigned int*)(0x42485014UL)) -#define bFM3_MFT_PPG_PPGC9_PUF *((volatile unsigned int*)(0x42485018UL)) -#define bFM3_MFT_PPG_PPGC9_PIE *((volatile unsigned int*)(0x4248501CUL)) -#define bFM3_MFT_PPG_PPGC8_TTRG *((volatile unsigned int*)(0x42485020UL)) -#define bFM3_MFT_PPG_PPGC8_PCS0 *((volatile unsigned int*)(0x4248502CUL)) -#define bFM3_MFT_PPG_PPGC8_PCS1 *((volatile unsigned int*)(0x42485030UL)) -#define bFM3_MFT_PPG_PPGC8_INTM *((volatile unsigned int*)(0x42485034UL)) -#define bFM3_MFT_PPG_PPGC8_PUF *((volatile unsigned int*)(0x42485038UL)) -#define bFM3_MFT_PPG_PPGC8_PIE *((volatile unsigned int*)(0x4248503CUL)) -#define bFM3_MFT_PPG_PPGC11_TTRG *((volatile unsigned int*)(0x42485080UL)) -#define bFM3_MFT_PPG_PPGC11_PCS0 *((volatile unsigned int*)(0x4248508CUL)) -#define bFM3_MFT_PPG_PPGC11_PCS1 *((volatile unsigned int*)(0x42485090UL)) -#define bFM3_MFT_PPG_PPGC11_INTM *((volatile unsigned int*)(0x42485094UL)) -#define bFM3_MFT_PPG_PPGC11_PUF *((volatile unsigned int*)(0x42485098UL)) -#define bFM3_MFT_PPG_PPGC11_PIE *((volatile unsigned int*)(0x4248509CUL)) -#define bFM3_MFT_PPG_PPGC10_TTRG *((volatile unsigned int*)(0x424850A0UL)) -#define bFM3_MFT_PPG_PPGC10_PCS0 *((volatile unsigned int*)(0x424850ACUL)) -#define bFM3_MFT_PPG_PPGC10_PCS1 *((volatile unsigned int*)(0x424850B0UL)) -#define bFM3_MFT_PPG_PPGC10_INTM *((volatile unsigned int*)(0x424850B4UL)) -#define bFM3_MFT_PPG_PPGC10_PUF *((volatile unsigned int*)(0x424850B8UL)) -#define bFM3_MFT_PPG_PPGC10_PIE *((volatile unsigned int*)(0x424850BCUL)) -#define bFM3_MFT_PPG_GATEC8_EDGE8 *((volatile unsigned int*)(0x42485300UL)) -#define bFM3_MFT_PPG_GATEC8_STRG8 *((volatile unsigned int*)(0x42485304UL)) -#define bFM3_MFT_PPG_GATEC8_EDGE10 *((volatile unsigned int*)(0x42485310UL)) -#define bFM3_MFT_PPG_GATEC8_STRG10 *((volatile unsigned int*)(0x42485314UL)) -#define bFM3_MFT_PPG_PPGC13_TTRG *((volatile unsigned int*)(0x42485800UL)) -#define bFM3_MFT_PPG_PPGC13_PCS0 *((volatile unsigned int*)(0x4248580CUL)) -#define bFM3_MFT_PPG_PPGC13_PCS1 *((volatile unsigned int*)(0x42485810UL)) -#define bFM3_MFT_PPG_PPGC13_INTM *((volatile unsigned int*)(0x42485814UL)) -#define bFM3_MFT_PPG_PPGC13_PUF *((volatile unsigned int*)(0x42485818UL)) -#define bFM3_MFT_PPG_PPGC13_PIE *((volatile unsigned int*)(0x4248581CUL)) -#define bFM3_MFT_PPG_PPGC12_TTRG *((volatile unsigned int*)(0x42485820UL)) -#define bFM3_MFT_PPG_PPGC12_PCS0 *((volatile unsigned int*)(0x4248582CUL)) -#define bFM3_MFT_PPG_PPGC12_PCS1 *((volatile unsigned int*)(0x42485830UL)) -#define bFM3_MFT_PPG_PPGC12_INTM *((volatile unsigned int*)(0x42485834UL)) -#define bFM3_MFT_PPG_PPGC12_PUF *((volatile unsigned int*)(0x42485838UL)) -#define bFM3_MFT_PPG_PPGC12_PIE *((volatile unsigned int*)(0x4248583CUL)) -#define bFM3_MFT_PPG_PPGC15_TTRG *((volatile unsigned int*)(0x42485880UL)) -#define bFM3_MFT_PPG_PPGC15_PCS0 *((volatile unsigned int*)(0x4248588CUL)) -#define bFM3_MFT_PPG_PPGC15_PCS1 *((volatile unsigned int*)(0x42485890UL)) -#define bFM3_MFT_PPG_PPGC15_INTM *((volatile unsigned int*)(0x42485894UL)) -#define bFM3_MFT_PPG_PPGC15_PUF *((volatile unsigned int*)(0x42485898UL)) -#define bFM3_MFT_PPG_PPGC15_PIE *((volatile unsigned int*)(0x4248589CUL)) -#define bFM3_MFT_PPG_PPGC14_TTRG *((volatile unsigned int*)(0x424858A0UL)) -#define bFM3_MFT_PPG_PPGC14_PCS0 *((volatile unsigned int*)(0x424858ACUL)) -#define bFM3_MFT_PPG_PPGC14_PCS1 *((volatile unsigned int*)(0x424858B0UL)) -#define bFM3_MFT_PPG_PPGC14_INTM *((volatile unsigned int*)(0x424858B4UL)) -#define bFM3_MFT_PPG_PPGC14_PUF *((volatile unsigned int*)(0x424858B8UL)) -#define bFM3_MFT_PPG_PPGC14_PIE *((volatile unsigned int*)(0x424858BCUL)) -#define bFM3_MFT_PPG_GATEC12_EDGE12 *((volatile unsigned int*)(0x42485B00UL)) -#define bFM3_MFT_PPG_GATEC12_STRG12 *((volatile unsigned int*)(0x42485B04UL)) -#define bFM3_MFT_PPG_GATEC12_EDGE14 *((volatile unsigned int*)(0x42485B10UL)) -#define bFM3_MFT_PPG_GATEC12_STRG14 *((volatile unsigned int*)(0x42485B14UL)) -#define bFM3_MFT_PPG_PPGC17_TTRG *((volatile unsigned int*)(0x42486000UL)) -#define bFM3_MFT_PPG_PPGC17_PCS0 *((volatile unsigned int*)(0x4248600CUL)) -#define bFM3_MFT_PPG_PPGC17_PCS1 *((volatile unsigned int*)(0x42486010UL)) -#define bFM3_MFT_PPG_PPGC17_INTM *((volatile unsigned int*)(0x42486014UL)) -#define bFM3_MFT_PPG_PPGC17_PUF *((volatile unsigned int*)(0x42486018UL)) -#define bFM3_MFT_PPG_PPGC17_PIE *((volatile unsigned int*)(0x4248601CUL)) -#define bFM3_MFT_PPG_PPGC16_TTRG *((volatile unsigned int*)(0x42486020UL)) -#define bFM3_MFT_PPG_PPGC16_PCS0 *((volatile unsigned int*)(0x4248602CUL)) -#define bFM3_MFT_PPG_PPGC16_PCS1 *((volatile unsigned int*)(0x42486030UL)) -#define bFM3_MFT_PPG_PPGC16_INTM *((volatile unsigned int*)(0x42486034UL)) -#define bFM3_MFT_PPG_PPGC16_PUF *((volatile unsigned int*)(0x42486038UL)) -#define bFM3_MFT_PPG_PPGC16_PIE *((volatile unsigned int*)(0x4248603CUL)) -#define bFM3_MFT_PPG_PPGC19_TTRG *((volatile unsigned int*)(0x42486080UL)) -#define bFM3_MFT_PPG_PPGC19_PCS0 *((volatile unsigned int*)(0x4248608CUL)) -#define bFM3_MFT_PPG_PPGC19_PCS1 *((volatile unsigned int*)(0x42486090UL)) -#define bFM3_MFT_PPG_PPGC19_INTM *((volatile unsigned int*)(0x42486094UL)) -#define bFM3_MFT_PPG_PPGC19_PUF *((volatile unsigned int*)(0x42486098UL)) -#define bFM3_MFT_PPG_PPGC19_PIE *((volatile unsigned int*)(0x4248609CUL)) -#define bFM3_MFT_PPG_PPGC18_TTRG *((volatile unsigned int*)(0x424860A0UL)) -#define bFM3_MFT_PPG_PPGC18_PCS0 *((volatile unsigned int*)(0x424860ACUL)) -#define bFM3_MFT_PPG_PPGC18_PCS1 *((volatile unsigned int*)(0x424860B0UL)) -#define bFM3_MFT_PPG_PPGC18_INTM *((volatile unsigned int*)(0x424860B4UL)) -#define bFM3_MFT_PPG_PPGC18_PUF *((volatile unsigned int*)(0x424860B8UL)) -#define bFM3_MFT_PPG_PPGC18_PIE *((volatile unsigned int*)(0x424860BCUL)) -#define bFM3_MFT_PPG_GATEC16_EDGE16 *((volatile unsigned int*)(0x42486300UL)) -#define bFM3_MFT_PPG_GATEC16_STRG16 *((volatile unsigned int*)(0x42486304UL)) -#define bFM3_MFT_PPG_GATEC16_EDGE18 *((volatile unsigned int*)(0x42486310UL)) -#define bFM3_MFT_PPG_GATEC16_STRG18 *((volatile unsigned int*)(0x42486314UL)) -#define bFM3_MFT_PPG_PPGC21_TTRG *((volatile unsigned int*)(0x42486800UL)) -#define bFM3_MFT_PPG_PPGC21_PCS0 *((volatile unsigned int*)(0x4248680CUL)) -#define bFM3_MFT_PPG_PPGC21_PCS1 *((volatile unsigned int*)(0x42486810UL)) -#define bFM3_MFT_PPG_PPGC21_INTM *((volatile unsigned int*)(0x42486814UL)) -#define bFM3_MFT_PPG_PPGC21_PUF *((volatile unsigned int*)(0x42486818UL)) -#define bFM3_MFT_PPG_PPGC21_PIE *((volatile unsigned int*)(0x4248681CUL)) -#define bFM3_MFT_PPG_PPGC20_TTRG *((volatile unsigned int*)(0x42486820UL)) -#define bFM3_MFT_PPG_PPGC20_PCS0 *((volatile unsigned int*)(0x4248682CUL)) -#define bFM3_MFT_PPG_PPGC20_PCS1 *((volatile unsigned int*)(0x42486830UL)) -#define bFM3_MFT_PPG_PPGC20_INTM *((volatile unsigned int*)(0x42486834UL)) -#define bFM3_MFT_PPG_PPGC20_PUF *((volatile unsigned int*)(0x42486838UL)) -#define bFM3_MFT_PPG_PPGC20_PIE *((volatile unsigned int*)(0x4248683CUL)) -#define bFM3_MFT_PPG_PPGC23_TTRG *((volatile unsigned int*)(0x42486880UL)) -#define bFM3_MFT_PPG_PPGC23_PCS0 *((volatile unsigned int*)(0x4248688CUL)) -#define bFM3_MFT_PPG_PPGC23_PCS1 *((volatile unsigned int*)(0x42486890UL)) -#define bFM3_MFT_PPG_PPGC23_INTM *((volatile unsigned int*)(0x42486894UL)) -#define bFM3_MFT_PPG_PPGC23_PUF *((volatile unsigned int*)(0x42486898UL)) -#define bFM3_MFT_PPG_PPGC23_PIE *((volatile unsigned int*)(0x4248689CUL)) -#define bFM3_MFT_PPG_PPGC22_TTRG *((volatile unsigned int*)(0x424868A0UL)) -#define bFM3_MFT_PPG_PPGC22_PCS0 *((volatile unsigned int*)(0x424868ACUL)) -#define bFM3_MFT_PPG_PPGC22_PCS1 *((volatile unsigned int*)(0x424868B0UL)) -#define bFM3_MFT_PPG_PPGC22_INTM *((volatile unsigned int*)(0x424868B4UL)) -#define bFM3_MFT_PPG_PPGC22_PUF *((volatile unsigned int*)(0x424868B8UL)) -#define bFM3_MFT_PPG_PPGC22_PIE *((volatile unsigned int*)(0x424868BCUL)) -#define bFM3_MFT_PPG_GATEC20_EDGE20 *((volatile unsigned int*)(0x42486B00UL)) -#define bFM3_MFT_PPG_GATEC20_STRG20 *((volatile unsigned int*)(0x42486B04UL)) -#define bFM3_MFT_PPG_GATEC20_EDGE22 *((volatile unsigned int*)(0x42486B10UL)) -#define bFM3_MFT_PPG_GATEC20_STRG22 *((volatile unsigned int*)(0x42486B14UL)) - -/* Base Timer 0 PPG registers */ -#define bFM3_BT0_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWM registers */ -#define bFM3_BT0_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A01ACUL)) -#define bFM3_BT0_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0204UL)) -#define bFM3_BT0_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0214UL)) -#define bFM3_BT0_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 RT registers */ -#define bFM3_BT0_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0180UL)) -#define bFM3_BT0_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A018CUL)) -#define bFM3_BT0_RT_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_RT_STC_UDIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_RT_STC_TGIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_RT_STC_UDIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_RT_STC_TGIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 0 PWC registers */ -#define bFM3_BT0_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0184UL)) -#define bFM3_BT0_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0188UL)) -#define bFM3_BT0_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A019CUL)) -#define bFM3_BT0_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A01A0UL)) -#define bFM3_BT0_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A01A4UL)) -#define bFM3_BT0_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A01A8UL)) -#define bFM3_BT0_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A01B0UL)) -#define bFM3_BT0_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A01B4UL)) -#define bFM3_BT0_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A01B8UL)) -#define bFM3_BT0_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0200UL)) -#define bFM3_BT0_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0208UL)) -#define bFM3_BT0_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0210UL)) -#define bFM3_BT0_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0218UL)) -#define bFM3_BT0_PWC_STC_ERR *((volatile unsigned int*)(0x424A021CUL)) -#define bFM3_BT0_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0220UL)) - -/* Base Timer 1 PPG registers */ -#define bFM3_BT1_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PPG_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PPG_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PPG_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PPG_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWM registers */ -#define bFM3_BT1_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A09ACUL)) -#define bFM3_BT1_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWM_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWM_STC_DTIR *((volatile unsigned int*)(0x424A0A04UL)) -#define bFM3_BT1_PWM_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWM_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWM_STC_DTIE *((volatile unsigned int*)(0x424A0A14UL)) -#define bFM3_BT1_PWM_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 RT registers */ -#define bFM3_BT1_RT_TMCR_STRG *((volatile unsigned int*)(0x424A0980UL)) -#define bFM3_BT1_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A098CUL)) -#define bFM3_BT1_RT_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_RT_STC_UDIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_RT_STC_TGIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_RT_STC_UDIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_RT_STC_TGIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 1 PWC registers */ -#define bFM3_BT1_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A0984UL)) -#define bFM3_BT1_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A0988UL)) -#define bFM3_BT1_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A099CUL)) -#define bFM3_BT1_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A09A0UL)) -#define bFM3_BT1_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A09A4UL)) -#define bFM3_BT1_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A09A8UL)) -#define bFM3_BT1_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A09B0UL)) -#define bFM3_BT1_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A09B4UL)) -#define bFM3_BT1_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A09B8UL)) -#define bFM3_BT1_PWC_STC_OVIR *((volatile unsigned int*)(0x424A0A00UL)) -#define bFM3_BT1_PWC_STC_EDIR *((volatile unsigned int*)(0x424A0A08UL)) -#define bFM3_BT1_PWC_STC_OVIE *((volatile unsigned int*)(0x424A0A10UL)) -#define bFM3_BT1_PWC_STC_EDIE *((volatile unsigned int*)(0x424A0A18UL)) -#define bFM3_BT1_PWC_STC_ERR *((volatile unsigned int*)(0x424A0A1CUL)) -#define bFM3_BT1_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A0A20UL)) - -/* Base Timer 2 PPG registers */ -#define bFM3_BT2_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWM registers */ -#define bFM3_BT2_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A11ACUL)) -#define bFM3_BT2_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1204UL)) -#define bFM3_BT2_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1214UL)) -#define bFM3_BT2_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 RT registers */ -#define bFM3_BT2_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1180UL)) -#define bFM3_BT2_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A118CUL)) -#define bFM3_BT2_RT_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_RT_STC_UDIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_RT_STC_TGIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_RT_STC_UDIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_RT_STC_TGIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 2 PWC registers */ -#define bFM3_BT2_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1184UL)) -#define bFM3_BT2_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1188UL)) -#define bFM3_BT2_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A119CUL)) -#define bFM3_BT2_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A11A0UL)) -#define bFM3_BT2_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A11A4UL)) -#define bFM3_BT2_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A11A8UL)) -#define bFM3_BT2_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A11B0UL)) -#define bFM3_BT2_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A11B4UL)) -#define bFM3_BT2_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A11B8UL)) -#define bFM3_BT2_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1200UL)) -#define bFM3_BT2_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1208UL)) -#define bFM3_BT2_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1210UL)) -#define bFM3_BT2_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1218UL)) -#define bFM3_BT2_PWC_STC_ERR *((volatile unsigned int*)(0x424A121CUL)) -#define bFM3_BT2_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1220UL)) - -/* Base Timer 3 PPG registers */ -#define bFM3_BT3_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PPG_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PPG_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PPG_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PPG_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWM registers */ -#define bFM3_BT3_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A19ACUL)) -#define bFM3_BT3_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWM_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWM_STC_DTIR *((volatile unsigned int*)(0x424A1A04UL)) -#define bFM3_BT3_PWM_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWM_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWM_STC_DTIE *((volatile unsigned int*)(0x424A1A14UL)) -#define bFM3_BT3_PWM_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 RT registers */ -#define bFM3_BT3_RT_TMCR_STRG *((volatile unsigned int*)(0x424A1980UL)) -#define bFM3_BT3_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A198CUL)) -#define bFM3_BT3_RT_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_RT_STC_UDIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_RT_STC_TGIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_RT_STC_UDIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_RT_STC_TGIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 3 PWC registers */ -#define bFM3_BT3_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A1984UL)) -#define bFM3_BT3_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A1988UL)) -#define bFM3_BT3_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A199CUL)) -#define bFM3_BT3_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A19A0UL)) -#define bFM3_BT3_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A19A4UL)) -#define bFM3_BT3_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A19A8UL)) -#define bFM3_BT3_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A19B0UL)) -#define bFM3_BT3_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A19B4UL)) -#define bFM3_BT3_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A19B8UL)) -#define bFM3_BT3_PWC_STC_OVIR *((volatile unsigned int*)(0x424A1A00UL)) -#define bFM3_BT3_PWC_STC_EDIR *((volatile unsigned int*)(0x424A1A08UL)) -#define bFM3_BT3_PWC_STC_OVIE *((volatile unsigned int*)(0x424A1A10UL)) -#define bFM3_BT3_PWC_STC_EDIE *((volatile unsigned int*)(0x424A1A18UL)) -#define bFM3_BT3_PWC_STC_ERR *((volatile unsigned int*)(0x424A1A1CUL)) -#define bFM3_BT3_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A1A20UL)) - -/* Base Timer 4 PPG registers */ -#define bFM3_BT4_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWM registers */ -#define bFM3_BT4_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A41ACUL)) -#define bFM3_BT4_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4204UL)) -#define bFM3_BT4_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4214UL)) -#define bFM3_BT4_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 RT registers */ -#define bFM3_BT4_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4180UL)) -#define bFM3_BT4_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A418CUL)) -#define bFM3_BT4_RT_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_RT_STC_UDIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_RT_STC_TGIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_RT_STC_UDIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_RT_STC_TGIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 4 PWC registers */ -#define bFM3_BT4_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4184UL)) -#define bFM3_BT4_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4188UL)) -#define bFM3_BT4_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A419CUL)) -#define bFM3_BT4_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A41A0UL)) -#define bFM3_BT4_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A41A4UL)) -#define bFM3_BT4_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A41A8UL)) -#define bFM3_BT4_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A41B0UL)) -#define bFM3_BT4_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A41B4UL)) -#define bFM3_BT4_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A41B8UL)) -#define bFM3_BT4_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4200UL)) -#define bFM3_BT4_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4208UL)) -#define bFM3_BT4_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4210UL)) -#define bFM3_BT4_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4218UL)) -#define bFM3_BT4_PWC_STC_ERR *((volatile unsigned int*)(0x424A421CUL)) -#define bFM3_BT4_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4220UL)) - -/* Base Timer 5 PPG registers */ -#define bFM3_BT5_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PPG_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PPG_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PPG_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PPG_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWM registers */ -#define bFM3_BT5_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A49ACUL)) -#define bFM3_BT5_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWM_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWM_STC_DTIR *((volatile unsigned int*)(0x424A4A04UL)) -#define bFM3_BT5_PWM_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWM_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWM_STC_DTIE *((volatile unsigned int*)(0x424A4A14UL)) -#define bFM3_BT5_PWM_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 RT registers */ -#define bFM3_BT5_RT_TMCR_STRG *((volatile unsigned int*)(0x424A4980UL)) -#define bFM3_BT5_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A498CUL)) -#define bFM3_BT5_RT_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_RT_STC_UDIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_RT_STC_TGIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_RT_STC_UDIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_RT_STC_TGIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 5 PWC registers */ -#define bFM3_BT5_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A4984UL)) -#define bFM3_BT5_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A4988UL)) -#define bFM3_BT5_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A499CUL)) -#define bFM3_BT5_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A49A0UL)) -#define bFM3_BT5_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A49A4UL)) -#define bFM3_BT5_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A49A8UL)) -#define bFM3_BT5_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A49B0UL)) -#define bFM3_BT5_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A49B4UL)) -#define bFM3_BT5_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A49B8UL)) -#define bFM3_BT5_PWC_STC_OVIR *((volatile unsigned int*)(0x424A4A00UL)) -#define bFM3_BT5_PWC_STC_EDIR *((volatile unsigned int*)(0x424A4A08UL)) -#define bFM3_BT5_PWC_STC_OVIE *((volatile unsigned int*)(0x424A4A10UL)) -#define bFM3_BT5_PWC_STC_EDIE *((volatile unsigned int*)(0x424A4A18UL)) -#define bFM3_BT5_PWC_STC_ERR *((volatile unsigned int*)(0x424A4A1CUL)) -#define bFM3_BT5_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A4A20UL)) - -/* Base Timer 6 PPG registers */ -#define bFM3_BT6_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWM registers */ -#define bFM3_BT6_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A51ACUL)) -#define bFM3_BT6_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5204UL)) -#define bFM3_BT6_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5214UL)) -#define bFM3_BT6_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 RT registers */ -#define bFM3_BT6_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5180UL)) -#define bFM3_BT6_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A518CUL)) -#define bFM3_BT6_RT_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_RT_STC_UDIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_RT_STC_TGIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_RT_STC_UDIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_RT_STC_TGIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 6 PWC registers */ -#define bFM3_BT6_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5184UL)) -#define bFM3_BT6_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5188UL)) -#define bFM3_BT6_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A519CUL)) -#define bFM3_BT6_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A51A0UL)) -#define bFM3_BT6_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A51A4UL)) -#define bFM3_BT6_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A51A8UL)) -#define bFM3_BT6_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A51B0UL)) -#define bFM3_BT6_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A51B4UL)) -#define bFM3_BT6_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A51B8UL)) -#define bFM3_BT6_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5200UL)) -#define bFM3_BT6_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5208UL)) -#define bFM3_BT6_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5210UL)) -#define bFM3_BT6_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5218UL)) -#define bFM3_BT6_PWC_STC_ERR *((volatile unsigned int*)(0x424A521CUL)) -#define bFM3_BT6_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5220UL)) - -/* Base Timer 7 PPG registers */ -#define bFM3_BT7_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PPG_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PPG_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PPG_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PPG_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWM registers */ -#define bFM3_BT7_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A59ACUL)) -#define bFM3_BT7_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWM_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWM_STC_DTIR *((volatile unsigned int*)(0x424A5A04UL)) -#define bFM3_BT7_PWM_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWM_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWM_STC_DTIE *((volatile unsigned int*)(0x424A5A14UL)) -#define bFM3_BT7_PWM_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 RT registers */ -#define bFM3_BT7_RT_TMCR_STRG *((volatile unsigned int*)(0x424A5980UL)) -#define bFM3_BT7_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A598CUL)) -#define bFM3_BT7_RT_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_RT_STC_UDIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_RT_STC_TGIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_RT_STC_UDIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_RT_STC_TGIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer 7 PWC registers */ -#define bFM3_BT7_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A5984UL)) -#define bFM3_BT7_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A5988UL)) -#define bFM3_BT7_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A599CUL)) -#define bFM3_BT7_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A59A0UL)) -#define bFM3_BT7_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A59A4UL)) -#define bFM3_BT7_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A59A8UL)) -#define bFM3_BT7_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A59B0UL)) -#define bFM3_BT7_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A59B4UL)) -#define bFM3_BT7_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A59B8UL)) -#define bFM3_BT7_PWC_STC_OVIR *((volatile unsigned int*)(0x424A5A00UL)) -#define bFM3_BT7_PWC_STC_EDIR *((volatile unsigned int*)(0x424A5A08UL)) -#define bFM3_BT7_PWC_STC_OVIE *((volatile unsigned int*)(0x424A5A10UL)) -#define bFM3_BT7_PWC_STC_EDIE *((volatile unsigned int*)(0x424A5A18UL)) -#define bFM3_BT7_PWC_STC_ERR *((volatile unsigned int*)(0x424A5A1CUL)) -#define bFM3_BT7_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A5A20UL)) - -/* Base Timer I/O selector channel 0 - channel 3 registers */ -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_0 *((volatile unsigned int*)(0x424A2020UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_1 *((volatile unsigned int*)(0x424A2024UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_2 *((volatile unsigned int*)(0x424A2028UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL01_3 *((volatile unsigned int*)(0x424A202CUL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_0 *((volatile unsigned int*)(0x424A2030UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_1 *((volatile unsigned int*)(0x424A2034UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_2 *((volatile unsigned int*)(0x424A2038UL)) -#define bFM3_BTIOSEL03_BTSEL0123_SEL23_3 *((volatile unsigned int*)(0x424A203CUL)) - -/* Base Timer I/O selector channel 4 - channel 7 registers */ -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_0 *((volatile unsigned int*)(0x424A6020UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_1 *((volatile unsigned int*)(0x424A6024UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_2 *((volatile unsigned int*)(0x424A6028UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL45_3 *((volatile unsigned int*)(0x424A602CUL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_0 *((volatile unsigned int*)(0x424A6030UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_1 *((volatile unsigned int*)(0x424A6034UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_2 *((volatile unsigned int*)(0x424A6038UL)) -#define bFM3_BTIOSEL47_BTSEL4567_SEL67_3 *((volatile unsigned int*)(0x424A603CUL)) - -/* Base Timer 8 PPG registers */ -#define bFM3_BT8_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM3_BT8_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM3_BT8_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM3_BT8_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) -#define bFM3_BT8_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 PWM registers */ -#define bFM3_BT8_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM3_BT8_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM3_BT8_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM3_BT8_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A81ACUL)) -#define bFM3_BT8_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8204UL)) -#define bFM3_BT8_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8214UL)) -#define bFM3_BT8_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 RT registers */ -#define bFM3_BT8_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8180UL)) -#define bFM3_BT8_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A818CUL)) -#define bFM3_BT8_RT_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) -#define bFM3_BT8_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_RT_STC_UDIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_RT_STC_TGIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_RT_STC_UDIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_RT_STC_TGIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 8 PWC registers */ -#define bFM3_BT8_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8184UL)) -#define bFM3_BT8_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8188UL)) -#define bFM3_BT8_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A819CUL)) -#define bFM3_BT8_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A81A0UL)) -#define bFM3_BT8_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A81A4UL)) -#define bFM3_BT8_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A81A8UL)) -#define bFM3_BT8_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A81B0UL)) -#define bFM3_BT8_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A81B4UL)) -#define bFM3_BT8_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A81B8UL)) -#define bFM3_BT8_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8200UL)) -#define bFM3_BT8_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8208UL)) -#define bFM3_BT8_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8210UL)) -#define bFM3_BT8_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8218UL)) -#define bFM3_BT8_PWC_STC_ERR *((volatile unsigned int*)(0x424A821CUL)) -#define bFM3_BT8_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8220UL)) - -/* Base Timer 9 PPG registers */ -#define bFM3_BT9_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM3_BT9_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM3_BT9_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM3_BT9_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) -#define bFM3_BT9_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_PPG_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_PPG_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_PPG_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_PPG_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 PWM registers */ -#define bFM3_BT9_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM3_BT9_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM3_BT9_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM3_BT9_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A89ACUL)) -#define bFM3_BT9_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_PWM_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_PWM_STC_DTIR *((volatile unsigned int*)(0x424A8A04UL)) -#define bFM3_BT9_PWM_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_PWM_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_PWM_STC_DTIE *((volatile unsigned int*)(0x424A8A14UL)) -#define bFM3_BT9_PWM_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 RT registers */ -#define bFM3_BT9_RT_TMCR_STRG *((volatile unsigned int*)(0x424A8980UL)) -#define bFM3_BT9_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A898CUL)) -#define bFM3_BT9_RT_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) -#define bFM3_BT9_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_RT_STC_UDIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_RT_STC_TGIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_RT_STC_UDIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_RT_STC_TGIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 9 PWC registers */ -#define bFM3_BT9_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A8984UL)) -#define bFM3_BT9_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A8988UL)) -#define bFM3_BT9_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A899CUL)) -#define bFM3_BT9_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A89A0UL)) -#define bFM3_BT9_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A89A4UL)) -#define bFM3_BT9_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A89A8UL)) -#define bFM3_BT9_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A89B0UL)) -#define bFM3_BT9_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A89B4UL)) -#define bFM3_BT9_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A89B8UL)) -#define bFM3_BT9_PWC_STC_OVIR *((volatile unsigned int*)(0x424A8A00UL)) -#define bFM3_BT9_PWC_STC_EDIR *((volatile unsigned int*)(0x424A8A08UL)) -#define bFM3_BT9_PWC_STC_OVIE *((volatile unsigned int*)(0x424A8A10UL)) -#define bFM3_BT9_PWC_STC_EDIE *((volatile unsigned int*)(0x424A8A18UL)) -#define bFM3_BT9_PWC_STC_ERR *((volatile unsigned int*)(0x424A8A1CUL)) -#define bFM3_BT9_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A8A20UL)) - -/* Base Timer 10 PPG registers */ -#define bFM3_BT10_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM3_BT10_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM3_BT10_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM3_BT10_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) -#define bFM3_BT10_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 PWM registers */ -#define bFM3_BT10_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM3_BT10_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM3_BT10_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM3_BT10_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A91ACUL)) -#define bFM3_BT10_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9204UL)) -#define bFM3_BT10_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9214UL)) -#define bFM3_BT10_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 RT registers */ -#define bFM3_BT10_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9180UL)) -#define bFM3_BT10_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A918CUL)) -#define bFM3_BT10_RT_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) -#define bFM3_BT10_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_RT_STC_UDIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_RT_STC_TGIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_RT_STC_UDIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_RT_STC_TGIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 10 PWC registers */ -#define bFM3_BT10_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9184UL)) -#define bFM3_BT10_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9188UL)) -#define bFM3_BT10_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A919CUL)) -#define bFM3_BT10_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A91A0UL)) -#define bFM3_BT10_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A91A4UL)) -#define bFM3_BT10_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A91A8UL)) -#define bFM3_BT10_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A91B0UL)) -#define bFM3_BT10_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A91B4UL)) -#define bFM3_BT10_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A91B8UL)) -#define bFM3_BT10_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9200UL)) -#define bFM3_BT10_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9208UL)) -#define bFM3_BT10_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9210UL)) -#define bFM3_BT10_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9218UL)) -#define bFM3_BT10_PWC_STC_ERR *((volatile unsigned int*)(0x424A921CUL)) -#define bFM3_BT10_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9220UL)) - -/* Base Timer 11 PPG registers */ -#define bFM3_BT11_PPG_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM3_BT11_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM3_BT11_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM3_BT11_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) -#define bFM3_BT11_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_PPG_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_PPG_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_PPG_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_PPG_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 PWM registers */ -#define bFM3_BT11_PWM_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM3_BT11_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM3_BT11_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM3_BT11_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424A99ACUL)) -#define bFM3_BT11_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_PWM_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_PWM_STC_DTIR *((volatile unsigned int*)(0x424A9A04UL)) -#define bFM3_BT11_PWM_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_PWM_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_PWM_STC_DTIE *((volatile unsigned int*)(0x424A9A14UL)) -#define bFM3_BT11_PWM_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 RT registers */ -#define bFM3_BT11_RT_TMCR_STRG *((volatile unsigned int*)(0x424A9980UL)) -#define bFM3_BT11_RT_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_RT_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_RT_TMCR_OSEL *((volatile unsigned int*)(0x424A998CUL)) -#define bFM3_BT11_RT_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) -#define bFM3_BT11_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_RT_STC_UDIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_RT_STC_TGIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_RT_STC_UDIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_RT_STC_TGIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 11 PWC registers */ -#define bFM3_BT11_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424A9984UL)) -#define bFM3_BT11_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424A9988UL)) -#define bFM3_BT11_PWC_TMCR_T32 *((volatile unsigned int*)(0x424A999CUL)) -#define bFM3_BT11_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424A99A0UL)) -#define bFM3_BT11_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424A99A4UL)) -#define bFM3_BT11_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424A99A8UL)) -#define bFM3_BT11_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424A99B0UL)) -#define bFM3_BT11_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424A99B4UL)) -#define bFM3_BT11_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424A99B8UL)) -#define bFM3_BT11_PWC_STC_OVIR *((volatile unsigned int*)(0x424A9A00UL)) -#define bFM3_BT11_PWC_STC_EDIR *((volatile unsigned int*)(0x424A9A08UL)) -#define bFM3_BT11_PWC_STC_OVIE *((volatile unsigned int*)(0x424A9A10UL)) -#define bFM3_BT11_PWC_STC_EDIE *((volatile unsigned int*)(0x424A9A18UL)) -#define bFM3_BT11_PWC_STC_ERR *((volatile unsigned int*)(0x424A9A1CUL)) -#define bFM3_BT11_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424A9A20UL)) - -/* Base Timer 12 PPG registers */ -#define bFM3_BT12_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM3_BT12_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM3_BT12_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM3_BT12_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) -#define bFM3_BT12_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_PPG_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_PPG_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_PPG_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_PPG_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 PWM registers */ -#define bFM3_BT12_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM3_BT12_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM3_BT12_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM3_BT12_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC1ACUL)) -#define bFM3_BT12_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_PWM_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_PWM_STC_DTIR *((volatile unsigned int*)(0x424AC204UL)) -#define bFM3_BT12_PWM_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_PWM_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_PWM_STC_DTIE *((volatile unsigned int*)(0x424AC214UL)) -#define bFM3_BT12_PWM_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 RT registers */ -#define bFM3_BT12_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC180UL)) -#define bFM3_BT12_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC18CUL)) -#define bFM3_BT12_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) -#define bFM3_BT12_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_RT_STC_UDIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_RT_STC_TGIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_RT_STC_UDIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_RT_STC_TGIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 12 PWC registers */ -#define bFM3_BT12_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC184UL)) -#define bFM3_BT12_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC188UL)) -#define bFM3_BT12_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC19CUL)) -#define bFM3_BT12_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC1A0UL)) -#define bFM3_BT12_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC1A4UL)) -#define bFM3_BT12_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC1A8UL)) -#define bFM3_BT12_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC1B0UL)) -#define bFM3_BT12_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC1B4UL)) -#define bFM3_BT12_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC1B8UL)) -#define bFM3_BT12_PWC_STC_OVIR *((volatile unsigned int*)(0x424AC200UL)) -#define bFM3_BT12_PWC_STC_EDIR *((volatile unsigned int*)(0x424AC208UL)) -#define bFM3_BT12_PWC_STC_OVIE *((volatile unsigned int*)(0x424AC210UL)) -#define bFM3_BT12_PWC_STC_EDIE *((volatile unsigned int*)(0x424AC218UL)) -#define bFM3_BT12_PWC_STC_ERR *((volatile unsigned int*)(0x424AC21CUL)) -#define bFM3_BT12_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AC220UL)) - -/* Base Timer 13 PPG registers */ -#define bFM3_BT13_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM3_BT13_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM3_BT13_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM3_BT13_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) -#define bFM3_BT13_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_PPG_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_PPG_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_PPG_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_PPG_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 PWM registers */ -#define bFM3_BT13_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM3_BT13_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM3_BT13_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM3_BT13_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AC9ACUL)) -#define bFM3_BT13_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_PWM_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_PWM_STC_DTIR *((volatile unsigned int*)(0x424ACA04UL)) -#define bFM3_BT13_PWM_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_PWM_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_PWM_STC_DTIE *((volatile unsigned int*)(0x424ACA14UL)) -#define bFM3_BT13_PWM_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 RT registers */ -#define bFM3_BT13_RT_TMCR_STRG *((volatile unsigned int*)(0x424AC980UL)) -#define bFM3_BT13_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AC98CUL)) -#define bFM3_BT13_RT_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) -#define bFM3_BT13_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_RT_STC_UDIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_RT_STC_TGIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_RT_STC_UDIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_RT_STC_TGIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 13 PWC registers */ -#define bFM3_BT13_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AC984UL)) -#define bFM3_BT13_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AC988UL)) -#define bFM3_BT13_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AC99CUL)) -#define bFM3_BT13_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AC9A0UL)) -#define bFM3_BT13_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AC9A4UL)) -#define bFM3_BT13_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AC9A8UL)) -#define bFM3_BT13_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AC9B0UL)) -#define bFM3_BT13_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AC9B4UL)) -#define bFM3_BT13_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AC9B8UL)) -#define bFM3_BT13_PWC_STC_OVIR *((volatile unsigned int*)(0x424ACA00UL)) -#define bFM3_BT13_PWC_STC_EDIR *((volatile unsigned int*)(0x424ACA08UL)) -#define bFM3_BT13_PWC_STC_OVIE *((volatile unsigned int*)(0x424ACA10UL)) -#define bFM3_BT13_PWC_STC_EDIE *((volatile unsigned int*)(0x424ACA18UL)) -#define bFM3_BT13_PWC_STC_ERR *((volatile unsigned int*)(0x424ACA1CUL)) -#define bFM3_BT13_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ACA20UL)) - -/* Base Timer 14 PPG registers */ -#define bFM3_BT14_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM3_BT14_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM3_BT14_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM3_BT14_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) -#define bFM3_BT14_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_PPG_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_PPG_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_PPG_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_PPG_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 PWM registers */ -#define bFM3_BT14_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM3_BT14_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM3_BT14_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM3_BT14_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD1ACUL)) -#define bFM3_BT14_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_PWM_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_PWM_STC_DTIR *((volatile unsigned int*)(0x424AD204UL)) -#define bFM3_BT14_PWM_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_PWM_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_PWM_STC_DTIE *((volatile unsigned int*)(0x424AD214UL)) -#define bFM3_BT14_PWM_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 RT registers */ -#define bFM3_BT14_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD180UL)) -#define bFM3_BT14_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD18CUL)) -#define bFM3_BT14_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) -#define bFM3_BT14_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_RT_STC_UDIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_RT_STC_TGIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_RT_STC_UDIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_RT_STC_TGIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 14 PWC registers */ -#define bFM3_BT14_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD184UL)) -#define bFM3_BT14_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD188UL)) -#define bFM3_BT14_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD19CUL)) -#define bFM3_BT14_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD1A0UL)) -#define bFM3_BT14_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD1A4UL)) -#define bFM3_BT14_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD1A8UL)) -#define bFM3_BT14_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD1B0UL)) -#define bFM3_BT14_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD1B4UL)) -#define bFM3_BT14_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD1B8UL)) -#define bFM3_BT14_PWC_STC_OVIR *((volatile unsigned int*)(0x424AD200UL)) -#define bFM3_BT14_PWC_STC_EDIR *((volatile unsigned int*)(0x424AD208UL)) -#define bFM3_BT14_PWC_STC_OVIE *((volatile unsigned int*)(0x424AD210UL)) -#define bFM3_BT14_PWC_STC_EDIE *((volatile unsigned int*)(0x424AD218UL)) -#define bFM3_BT14_PWC_STC_ERR *((volatile unsigned int*)(0x424AD21CUL)) -#define bFM3_BT14_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424AD220UL)) - -/* Base Timer 15 PPG registers */ -#define bFM3_BT15_PPG_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM3_BT15_PPG_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_PPG_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_PPG_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM3_BT15_PPG_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_PPG_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_PPG_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM3_BT15_PPG_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) -#define bFM3_BT15_PPG_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_PPG_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_PPG_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_PPG_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_PPG_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_PPG_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_PPG_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_PPG_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 PWM registers */ -#define bFM3_BT15_PWM_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM3_BT15_PWM_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_PWM_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_PWM_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM3_BT15_PWM_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_PWM_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_PWM_TMCR_PMSK *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM3_BT15_PWM_TMCR_RTGEN *((volatile unsigned int*)(0x424AD9ACUL)) -#define bFM3_BT15_PWM_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_PWM_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_PWM_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_PWM_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_PWM_STC_DTIR *((volatile unsigned int*)(0x424ADA04UL)) -#define bFM3_BT15_PWM_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_PWM_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_PWM_STC_DTIE *((volatile unsigned int*)(0x424ADA14UL)) -#define bFM3_BT15_PWM_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_PWM_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 RT registers */ -#define bFM3_BT15_RT_TMCR_STRG *((volatile unsigned int*)(0x424AD980UL)) -#define bFM3_BT15_RT_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_RT_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_RT_TMCR_OSEL *((volatile unsigned int*)(0x424AD98CUL)) -#define bFM3_BT15_RT_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) -#define bFM3_BT15_RT_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_RT_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_RT_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_RT_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_RT_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_RT_STC_UDIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_RT_STC_TGIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_RT_STC_UDIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_RT_STC_TGIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_RT_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer 15 PWC registers */ -#define bFM3_BT15_PWC_TMCR_CTEN *((volatile unsigned int*)(0x424AD984UL)) -#define bFM3_BT15_PWC_TMCR_MDSE *((volatile unsigned int*)(0x424AD988UL)) -#define bFM3_BT15_PWC_TMCR_T32 *((volatile unsigned int*)(0x424AD99CUL)) -#define bFM3_BT15_PWC_TMCR_EGS0 *((volatile unsigned int*)(0x424AD9A0UL)) -#define bFM3_BT15_PWC_TMCR_EGS1 *((volatile unsigned int*)(0x424AD9A4UL)) -#define bFM3_BT15_PWC_TMCR_EGS2 *((volatile unsigned int*)(0x424AD9A8UL)) -#define bFM3_BT15_PWC_TMCR_CKS0 *((volatile unsigned int*)(0x424AD9B0UL)) -#define bFM3_BT15_PWC_TMCR_CKS1 *((volatile unsigned int*)(0x424AD9B4UL)) -#define bFM3_BT15_PWC_TMCR_CKS2 *((volatile unsigned int*)(0x424AD9B8UL)) -#define bFM3_BT15_PWC_STC_OVIR *((volatile unsigned int*)(0x424ADA00UL)) -#define bFM3_BT15_PWC_STC_EDIR *((volatile unsigned int*)(0x424ADA08UL)) -#define bFM3_BT15_PWC_STC_OVIE *((volatile unsigned int*)(0x424ADA10UL)) -#define bFM3_BT15_PWC_STC_EDIE *((volatile unsigned int*)(0x424ADA18UL)) -#define bFM3_BT15_PWC_STC_ERR *((volatile unsigned int*)(0x424ADA1CUL)) -#define bFM3_BT15_PWC_TMCR2_CKS3 *((volatile unsigned int*)(0x424ADA20UL)) - -/* Base Timer I/O selector channel 8 - channel 11 registers */ -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_0 *((volatile unsigned int*)(0x424AA020UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_1 *((volatile unsigned int*)(0x424AA024UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_2 *((volatile unsigned int*)(0x424AA028UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SEL89_3 *((volatile unsigned int*)(0x424AA02CUL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_0 *((volatile unsigned int*)(0x424AA030UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_1 *((volatile unsigned int*)(0x424AA034UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_2 *((volatile unsigned int*)(0x424AA038UL)) -#define bFM3_BTIOSEL8B_BTSEL89AB_SELAB_3 *((volatile unsigned int*)(0x424AA03CUL)) - -/* Base Timer I/O selector channel 12 - channel 15 registers */ -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_0 *((volatile unsigned int*)(0x424AE020UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_1 *((volatile unsigned int*)(0x424AE024UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_2 *((volatile unsigned int*)(0x424AE028UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELCD_3 *((volatile unsigned int*)(0x424AE02CUL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_0 *((volatile unsigned int*)(0x424AE030UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_1 *((volatile unsigned int*)(0x424AE034UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_2 *((volatile unsigned int*)(0x424AE038UL)) -#define bFM3_BTIOSELCF_BTSELCDEF_SELEF_3 *((volatile unsigned int*)(0x424AE03CUL)) - -/* Software based Simulation Startup (Base Timer) register */ -#define bFM3_SBSSR_BTSSSR_SSR0 *((volatile unsigned int*)(0x424BFF80UL)) -#define bFM3_SBSSR_BTSSSR_SSR1 *((volatile unsigned int*)(0x424BFF84UL)) -#define bFM3_SBSSR_BTSSSR_SSR2 *((volatile unsigned int*)(0x424BFF88UL)) -#define bFM3_SBSSR_BTSSSR_SSR3 *((volatile unsigned int*)(0x424BFF8CUL)) -#define bFM3_SBSSR_BTSSSR_SSR4 *((volatile unsigned int*)(0x424BFF90UL)) -#define bFM3_SBSSR_BTSSSR_SSR5 *((volatile unsigned int*)(0x424BFF94UL)) -#define bFM3_SBSSR_BTSSSR_SSR6 *((volatile unsigned int*)(0x424BFF98UL)) -#define bFM3_SBSSR_BTSSSR_SSR7 *((volatile unsigned int*)(0x424BFF9CUL)) -#define bFM3_SBSSR_BTSSSR_SSR8 *((volatile unsigned int*)(0x424BFFA0UL)) -#define bFM3_SBSSR_BTSSSR_SSR9 *((volatile unsigned int*)(0x424BFFA4UL)) -#define bFM3_SBSSR_BTSSSR_SSR10 *((volatile unsigned int*)(0x424BFFA8UL)) -#define bFM3_SBSSR_BTSSSR_SSR11 *((volatile unsigned int*)(0x424BFFACUL)) -#define bFM3_SBSSR_BTSSSR_SSR12 *((volatile unsigned int*)(0x424BFFB0UL)) -#define bFM3_SBSSR_BTSSSR_SSR13 *((volatile unsigned int*)(0x424BFFB4UL)) -#define bFM3_SBSSR_BTSSSR_SSR14 *((volatile unsigned int*)(0x424BFFB8UL)) -#define bFM3_SBSSR_BTSSSR_SSR15 *((volatile unsigned int*)(0x424BFFBCUL)) - -/* Quad position and revolution counter channel 0 registers */ -#define bFM3_QPRC0_QICR_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICR_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICR_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICR_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICR_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICR_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICR_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICR_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICR_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICR_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICR_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0280UL)) -#define bFM3_QPRC0_QICRL_QPCMF *((volatile unsigned int*)(0x424C0284UL)) -#define bFM3_QPRC0_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0288UL)) -#define bFM3_QPRC0_QICRL_QPRCMF *((volatile unsigned int*)(0x424C028CUL)) -#define bFM3_QPRC0_QICRL_OUZIE *((volatile unsigned int*)(0x424C0290UL)) -#define bFM3_QPRC0_QICRL_UFDF *((volatile unsigned int*)(0x424C0294UL)) -#define bFM3_QPRC0_QICRL_OFDF *((volatile unsigned int*)(0x424C0298UL)) -#define bFM3_QPRC0_QICRL_ZIIF *((volatile unsigned int*)(0x424C029CUL)) -#define bFM3_QPRC0_QICRH_CDCIE *((volatile unsigned int*)(0x424C02A0UL)) -#define bFM3_QPRC0_QICRH_CDCF *((volatile unsigned int*)(0x424C02A4UL)) -#define bFM3_QPRC0_QICRH_DIRPC *((volatile unsigned int*)(0x424C02A8UL)) -#define bFM3_QPRC0_QICRH_DIROU *((volatile unsigned int*)(0x424C02ACUL)) -#define bFM3_QPRC0_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C02B0UL)) -#define bFM3_QPRC0_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C02B4UL)) -#define bFM3_QPRC0_QCR_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCR_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCR_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCR_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCR_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCR_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCR_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCR_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCR_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCR_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCR_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCR_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCR_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCR_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCR_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCR_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QCRL_PCM0 *((volatile unsigned int*)(0x424C0300UL)) -#define bFM3_QPRC0_QCRL_PCM1 *((volatile unsigned int*)(0x424C0304UL)) -#define bFM3_QPRC0_QCRL_RCM0 *((volatile unsigned int*)(0x424C0308UL)) -#define bFM3_QPRC0_QCRL_RCM1 *((volatile unsigned int*)(0x424C030CUL)) -#define bFM3_QPRC0_QCRL_PSTP *((volatile unsigned int*)(0x424C0310UL)) -#define bFM3_QPRC0_QCRL_CGSC *((volatile unsigned int*)(0x424C0314UL)) -#define bFM3_QPRC0_QCRL_RSEL *((volatile unsigned int*)(0x424C0318UL)) -#define bFM3_QPRC0_QCRL_SWAP *((volatile unsigned int*)(0x424C031CUL)) -#define bFM3_QPRC0_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0320UL)) -#define bFM3_QPRC0_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0324UL)) -#define bFM3_QPRC0_QCRH_AES0 *((volatile unsigned int*)(0x424C0328UL)) -#define bFM3_QPRC0_QCRH_AES1 *((volatile unsigned int*)(0x424C032CUL)) -#define bFM3_QPRC0_QCRH_BES0 *((volatile unsigned int*)(0x424C0330UL)) -#define bFM3_QPRC0_QCRH_BES1 *((volatile unsigned int*)(0x424C0334UL)) -#define bFM3_QPRC0_QCRH_CGE0 *((volatile unsigned int*)(0x424C0338UL)) -#define bFM3_QPRC0_QCRH_CGE1 *((volatile unsigned int*)(0x424C033CUL)) -#define bFM3_QPRC0_QECR_ORNGMD *((volatile unsigned int*)(0x424C0380UL)) -#define bFM3_QPRC0_QECR_ORNGF *((volatile unsigned int*)(0x424C0384UL)) -#define bFM3_QPRC0_QECR_ORNGIE *((volatile unsigned int*)(0x424C0388UL)) - -/* Quad position and revolution counter channel 1 registers */ -#define bFM3_QPRC1_QICR_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICR_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICR_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICR_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICR_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICR_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICR_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICR_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICR_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICR_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICR_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICR_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QICRL_QPCMIE *((volatile unsigned int*)(0x424C0A80UL)) -#define bFM3_QPRC1_QICRL_QPCMF *((volatile unsigned int*)(0x424C0A84UL)) -#define bFM3_QPRC1_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C0A88UL)) -#define bFM3_QPRC1_QICRL_QPRCMF *((volatile unsigned int*)(0x424C0A8CUL)) -#define bFM3_QPRC1_QICRL_OUZIE *((volatile unsigned int*)(0x424C0A90UL)) -#define bFM3_QPRC1_QICRL_UFDF *((volatile unsigned int*)(0x424C0A94UL)) -#define bFM3_QPRC1_QICRL_OFDF *((volatile unsigned int*)(0x424C0A98UL)) -#define bFM3_QPRC1_QICRL_ZIIF *((volatile unsigned int*)(0x424C0A9CUL)) -#define bFM3_QPRC1_QICRH_CDCIE *((volatile unsigned int*)(0x424C0AA0UL)) -#define bFM3_QPRC1_QICRH_CDCF *((volatile unsigned int*)(0x424C0AA4UL)) -#define bFM3_QPRC1_QICRH_DIRPC *((volatile unsigned int*)(0x424C0AA8UL)) -#define bFM3_QPRC1_QICRH_DIROU *((volatile unsigned int*)(0x424C0AACUL)) -#define bFM3_QPRC1_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C0AB0UL)) -#define bFM3_QPRC1_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C0AB4UL)) -#define bFM3_QPRC1_QCR_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCR_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCR_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCR_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCR_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCR_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCR_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCR_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCR_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCR_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCR_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCR_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCR_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCR_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCR_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCR_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QCRL_PCM0 *((volatile unsigned int*)(0x424C0B00UL)) -#define bFM3_QPRC1_QCRL_PCM1 *((volatile unsigned int*)(0x424C0B04UL)) -#define bFM3_QPRC1_QCRL_RCM0 *((volatile unsigned int*)(0x424C0B08UL)) -#define bFM3_QPRC1_QCRL_RCM1 *((volatile unsigned int*)(0x424C0B0CUL)) -#define bFM3_QPRC1_QCRL_PSTP *((volatile unsigned int*)(0x424C0B10UL)) -#define bFM3_QPRC1_QCRL_CGSC *((volatile unsigned int*)(0x424C0B14UL)) -#define bFM3_QPRC1_QCRL_RSEL *((volatile unsigned int*)(0x424C0B18UL)) -#define bFM3_QPRC1_QCRL_SWAP *((volatile unsigned int*)(0x424C0B1CUL)) -#define bFM3_QPRC1_QCRH_PCRM0 *((volatile unsigned int*)(0x424C0B20UL)) -#define bFM3_QPRC1_QCRH_PCRM1 *((volatile unsigned int*)(0x424C0B24UL)) -#define bFM3_QPRC1_QCRH_AES0 *((volatile unsigned int*)(0x424C0B28UL)) -#define bFM3_QPRC1_QCRH_AES1 *((volatile unsigned int*)(0x424C0B2CUL)) -#define bFM3_QPRC1_QCRH_BES0 *((volatile unsigned int*)(0x424C0B30UL)) -#define bFM3_QPRC1_QCRH_BES1 *((volatile unsigned int*)(0x424C0B34UL)) -#define bFM3_QPRC1_QCRH_CGE0 *((volatile unsigned int*)(0x424C0B38UL)) -#define bFM3_QPRC1_QCRH_CGE1 *((volatile unsigned int*)(0x424C0B3CUL)) -#define bFM3_QPRC1_QECR_ORNGMD *((volatile unsigned int*)(0x424C0B80UL)) -#define bFM3_QPRC1_QECR_ORNGF *((volatile unsigned int*)(0x424C0B84UL)) -#define bFM3_QPRC1_QECR_ORNGIE *((volatile unsigned int*)(0x424C0B88UL)) - -/* Quad position and revolution counter channel 2 registers */ -#define bFM3_QPRC2_QICR_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) -#define bFM3_QPRC2_QICR_QPCMF *((volatile unsigned int*)(0x424C1284UL)) -#define bFM3_QPRC2_QICR_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) -#define bFM3_QPRC2_QICR_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) -#define bFM3_QPRC2_QICR_OUZIE *((volatile unsigned int*)(0x424C1290UL)) -#define bFM3_QPRC2_QICR_UFDF *((volatile unsigned int*)(0x424C1294UL)) -#define bFM3_QPRC2_QICR_OFDF *((volatile unsigned int*)(0x424C1298UL)) -#define bFM3_QPRC2_QICR_ZIIF *((volatile unsigned int*)(0x424C129CUL)) -#define bFM3_QPRC2_QICR_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) -#define bFM3_QPRC2_QICR_CDCF *((volatile unsigned int*)(0x424C12A4UL)) -#define bFM3_QPRC2_QICR_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) -#define bFM3_QPRC2_QICR_DIROU *((volatile unsigned int*)(0x424C12ACUL)) -#define bFM3_QPRC2_QICR_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) -#define bFM3_QPRC2_QICR_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) -#define bFM3_QPRC2_QICRL_QPCMIE *((volatile unsigned int*)(0x424C1280UL)) -#define bFM3_QPRC2_QICRL_QPCMF *((volatile unsigned int*)(0x424C1284UL)) -#define bFM3_QPRC2_QICRL_QPRCMIE *((volatile unsigned int*)(0x424C1288UL)) -#define bFM3_QPRC2_QICRL_QPRCMF *((volatile unsigned int*)(0x424C128CUL)) -#define bFM3_QPRC2_QICRL_OUZIE *((volatile unsigned int*)(0x424C1290UL)) -#define bFM3_QPRC2_QICRL_UFDF *((volatile unsigned int*)(0x424C1294UL)) -#define bFM3_QPRC2_QICRL_OFDF *((volatile unsigned int*)(0x424C1298UL)) -#define bFM3_QPRC2_QICRL_ZIIF *((volatile unsigned int*)(0x424C129CUL)) -#define bFM3_QPRC2_QICRH_CDCIE *((volatile unsigned int*)(0x424C12A0UL)) -#define bFM3_QPRC2_QICRH_CDCF *((volatile unsigned int*)(0x424C12A4UL)) -#define bFM3_QPRC2_QICRH_DIRPC *((volatile unsigned int*)(0x424C12A8UL)) -#define bFM3_QPRC2_QICRH_DIROU *((volatile unsigned int*)(0x424C12ACUL)) -#define bFM3_QPRC2_QICRH_QPCNRCMIE *((volatile unsigned int*)(0x424C12B0UL)) -#define bFM3_QPRC2_QICRH_QPCNRCMF *((volatile unsigned int*)(0x424C12B4UL)) -#define bFM3_QPRC2_QCR_PCM0 *((volatile unsigned int*)(0x424C1300UL)) -#define bFM3_QPRC2_QCR_PCM1 *((volatile unsigned int*)(0x424C1304UL)) -#define bFM3_QPRC2_QCR_RCM0 *((volatile unsigned int*)(0x424C1308UL)) -#define bFM3_QPRC2_QCR_RCM1 *((volatile unsigned int*)(0x424C130CUL)) -#define bFM3_QPRC2_QCR_PSTP *((volatile unsigned int*)(0x424C1310UL)) -#define bFM3_QPRC2_QCR_CGSC *((volatile unsigned int*)(0x424C1314UL)) -#define bFM3_QPRC2_QCR_RSEL *((volatile unsigned int*)(0x424C1318UL)) -#define bFM3_QPRC2_QCR_SWAP *((volatile unsigned int*)(0x424C131CUL)) -#define bFM3_QPRC2_QCR_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) -#define bFM3_QPRC2_QCR_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) -#define bFM3_QPRC2_QCR_AES0 *((volatile unsigned int*)(0x424C1328UL)) -#define bFM3_QPRC2_QCR_AES1 *((volatile unsigned int*)(0x424C132CUL)) -#define bFM3_QPRC2_QCR_BES0 *((volatile unsigned int*)(0x424C1330UL)) -#define bFM3_QPRC2_QCR_BES1 *((volatile unsigned int*)(0x424C1334UL)) -#define bFM3_QPRC2_QCR_CGE0 *((volatile unsigned int*)(0x424C1338UL)) -#define bFM3_QPRC2_QCR_CGE1 *((volatile unsigned int*)(0x424C133CUL)) -#define bFM3_QPRC2_QCRL_PCM0 *((volatile unsigned int*)(0x424C1300UL)) -#define bFM3_QPRC2_QCRL_PCM1 *((volatile unsigned int*)(0x424C1304UL)) -#define bFM3_QPRC2_QCRL_RCM0 *((volatile unsigned int*)(0x424C1308UL)) -#define bFM3_QPRC2_QCRL_RCM1 *((volatile unsigned int*)(0x424C130CUL)) -#define bFM3_QPRC2_QCRL_PSTP *((volatile unsigned int*)(0x424C1310UL)) -#define bFM3_QPRC2_QCRL_CGSC *((volatile unsigned int*)(0x424C1314UL)) -#define bFM3_QPRC2_QCRL_RSEL *((volatile unsigned int*)(0x424C1318UL)) -#define bFM3_QPRC2_QCRL_SWAP *((volatile unsigned int*)(0x424C131CUL)) -#define bFM3_QPRC2_QCRH_PCRM0 *((volatile unsigned int*)(0x424C1320UL)) -#define bFM3_QPRC2_QCRH_PCRM1 *((volatile unsigned int*)(0x424C1324UL)) -#define bFM3_QPRC2_QCRH_AES0 *((volatile unsigned int*)(0x424C1328UL)) -#define bFM3_QPRC2_QCRH_AES1 *((volatile unsigned int*)(0x424C132CUL)) -#define bFM3_QPRC2_QCRH_BES0 *((volatile unsigned int*)(0x424C1330UL)) -#define bFM3_QPRC2_QCRH_BES1 *((volatile unsigned int*)(0x424C1334UL)) -#define bFM3_QPRC2_QCRH_CGE0 *((volatile unsigned int*)(0x424C1338UL)) -#define bFM3_QPRC2_QCRH_CGE1 *((volatile unsigned int*)(0x424C133CUL)) -#define bFM3_QPRC2_QECR_ORNGMD *((volatile unsigned int*)(0x424C1380UL)) -#define bFM3_QPRC2_QECR_ORNGF *((volatile unsigned int*)(0x424C1384UL)) -#define bFM3_QPRC2_QECR_ORNGIE *((volatile unsigned int*)(0x424C1388UL)) - -/* 12-bit ADC unit 0 registers */ -#define bFM3_ADC0_ADSR_SCS *((volatile unsigned int*)(0x424E0000UL)) -#define bFM3_ADC0_ADSR_PCS *((volatile unsigned int*)(0x424E0004UL)) -#define bFM3_ADC0_ADSR_PCNS *((volatile unsigned int*)(0x424E0008UL)) -#define bFM3_ADC0_ADSR_FDAS *((volatile unsigned int*)(0x424E0018UL)) -#define bFM3_ADC0_ADSR_ADSTP *((volatile unsigned int*)(0x424E001CUL)) -#define bFM3_ADC0_ADCR_OVRIE *((volatile unsigned int*)(0x424E0020UL)) -#define bFM3_ADC0_ADCR_CMPIE *((volatile unsigned int*)(0x424E0024UL)) -#define bFM3_ADC0_ADCR_PCIE *((volatile unsigned int*)(0x424E0028UL)) -#define bFM3_ADC0_ADCR_SCIE *((volatile unsigned int*)(0x424E002CUL)) -#define bFM3_ADC0_ADCR_CMPIF *((volatile unsigned int*)(0x424E0034UL)) -#define bFM3_ADC0_ADCR_PCIF *((volatile unsigned int*)(0x424E0038UL)) -#define bFM3_ADC0_ADCR_SCIF *((volatile unsigned int*)(0x424E003CUL)) -#define bFM3_ADC0_SFNS_SFS0 *((volatile unsigned int*)(0x424E0100UL)) -#define bFM3_ADC0_SFNS_SFS1 *((volatile unsigned int*)(0x424E0104UL)) -#define bFM3_ADC0_SFNS_SFS2 *((volatile unsigned int*)(0x424E0108UL)) -#define bFM3_ADC0_SFNS_SFS3 *((volatile unsigned int*)(0x424E010CUL)) -#define bFM3_ADC0_SCCR_SSTR *((volatile unsigned int*)(0x424E0120UL)) -#define bFM3_ADC0_SCCR_SHEN *((volatile unsigned int*)(0x424E0124UL)) -#define bFM3_ADC0_SCCR_RPT *((volatile unsigned int*)(0x424E0128UL)) -#define bFM3_ADC0_SCCR_SFCLR *((volatile unsigned int*)(0x424E0130UL)) -#define bFM3_ADC0_SCCR_SOVR *((volatile unsigned int*)(0x424E0134UL)) -#define bFM3_ADC0_SCCR_SFUL *((volatile unsigned int*)(0x424E0138UL)) -#define bFM3_ADC0_SCCR_SEMP *((volatile unsigned int*)(0x424E013CUL)) -#define bFM3_ADC0_SCFD_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFD_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFD_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFD_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFD_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFD_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFD_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFD_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFD_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFD_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFD_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFD_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFD_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFD_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFD_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFD_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFD_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFD_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFD_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFD_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCFDL_SC0 *((volatile unsigned int*)(0x424E0180UL)) -#define bFM3_ADC0_SCFDL_SC1 *((volatile unsigned int*)(0x424E0184UL)) -#define bFM3_ADC0_SCFDL_SC2 *((volatile unsigned int*)(0x424E0188UL)) -#define bFM3_ADC0_SCFDL_SC3 *((volatile unsigned int*)(0x424E018CUL)) -#define bFM3_ADC0_SCFDL_SC4 *((volatile unsigned int*)(0x424E0190UL)) -#define bFM3_ADC0_SCFDL_RS0 *((volatile unsigned int*)(0x424E01A0UL)) -#define bFM3_ADC0_SCFDL_RS1 *((volatile unsigned int*)(0x424E01A4UL)) -#define bFM3_ADC0_SCFDL_INVL *((volatile unsigned int*)(0x424E01B0UL)) -#define bFM3_ADC0_SCFDH_SD0 *((volatile unsigned int*)(0x424E01D0UL)) -#define bFM3_ADC0_SCFDH_SD1 *((volatile unsigned int*)(0x424E01D4UL)) -#define bFM3_ADC0_SCFDH_SD2 *((volatile unsigned int*)(0x424E01D8UL)) -#define bFM3_ADC0_SCFDH_SD3 *((volatile unsigned int*)(0x424E01DCUL)) -#define bFM3_ADC0_SCFDH_SD4 *((volatile unsigned int*)(0x424E01E0UL)) -#define bFM3_ADC0_SCFDH_SD5 *((volatile unsigned int*)(0x424E01E4UL)) -#define bFM3_ADC0_SCFDH_SD6 *((volatile unsigned int*)(0x424E01E8UL)) -#define bFM3_ADC0_SCFDH_SD7 *((volatile unsigned int*)(0x424E01ECUL)) -#define bFM3_ADC0_SCFDH_SD8 *((volatile unsigned int*)(0x424E01F0UL)) -#define bFM3_ADC0_SCFDH_SD9 *((volatile unsigned int*)(0x424E01F4UL)) -#define bFM3_ADC0_SCFDH_SD10 *((volatile unsigned int*)(0x424E01F8UL)) -#define bFM3_ADC0_SCFDH_SD11 *((volatile unsigned int*)(0x424E01FCUL)) -#define bFM3_ADC0_SCIS23_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS23_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS23_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS23_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS23_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS23_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS23_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS23_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS23_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS23_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS23_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS23_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS23_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS23_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS23_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS23_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS2_AN16 *((volatile unsigned int*)(0x424E0200UL)) -#define bFM3_ADC0_SCIS2_AN17 *((volatile unsigned int*)(0x424E0204UL)) -#define bFM3_ADC0_SCIS2_AN18 *((volatile unsigned int*)(0x424E0208UL)) -#define bFM3_ADC0_SCIS2_AN19 *((volatile unsigned int*)(0x424E020CUL)) -#define bFM3_ADC0_SCIS2_AN20 *((volatile unsigned int*)(0x424E0210UL)) -#define bFM3_ADC0_SCIS2_AN21 *((volatile unsigned int*)(0x424E0214UL)) -#define bFM3_ADC0_SCIS2_AN22 *((volatile unsigned int*)(0x424E0218UL)) -#define bFM3_ADC0_SCIS2_AN23 *((volatile unsigned int*)(0x424E021CUL)) -#define bFM3_ADC0_SCIS3_AN24 *((volatile unsigned int*)(0x424E0220UL)) -#define bFM3_ADC0_SCIS3_AN25 *((volatile unsigned int*)(0x424E0224UL)) -#define bFM3_ADC0_SCIS3_AN26 *((volatile unsigned int*)(0x424E0228UL)) -#define bFM3_ADC0_SCIS3_AN27 *((volatile unsigned int*)(0x424E022CUL)) -#define bFM3_ADC0_SCIS3_AN28 *((volatile unsigned int*)(0x424E0230UL)) -#define bFM3_ADC0_SCIS3_AN29 *((volatile unsigned int*)(0x424E0234UL)) -#define bFM3_ADC0_SCIS3_AN30 *((volatile unsigned int*)(0x424E0238UL)) -#define bFM3_ADC0_SCIS3_AN31 *((volatile unsigned int*)(0x424E023CUL)) -#define bFM3_ADC0_SCIS01_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS01_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS01_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS01_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS01_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS01_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS01_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS01_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS01_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS01_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS01_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS01_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS01_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS01_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS01_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS01_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_SCIS0_AN0 *((volatile unsigned int*)(0x424E0280UL)) -#define bFM3_ADC0_SCIS0_AN1 *((volatile unsigned int*)(0x424E0284UL)) -#define bFM3_ADC0_SCIS0_AN2 *((volatile unsigned int*)(0x424E0288UL)) -#define bFM3_ADC0_SCIS0_AN3 *((volatile unsigned int*)(0x424E028CUL)) -#define bFM3_ADC0_SCIS0_AN4 *((volatile unsigned int*)(0x424E0290UL)) -#define bFM3_ADC0_SCIS0_AN5 *((volatile unsigned int*)(0x424E0294UL)) -#define bFM3_ADC0_SCIS0_AN6 *((volatile unsigned int*)(0x424E0298UL)) -#define bFM3_ADC0_SCIS0_AN7 *((volatile unsigned int*)(0x424E029CUL)) -#define bFM3_ADC0_SCIS1_AN8 *((volatile unsigned int*)(0x424E02A0UL)) -#define bFM3_ADC0_SCIS1_AN9 *((volatile unsigned int*)(0x424E02A4UL)) -#define bFM3_ADC0_SCIS1_AN10 *((volatile unsigned int*)(0x424E02A8UL)) -#define bFM3_ADC0_SCIS1_AN11 *((volatile unsigned int*)(0x424E02ACUL)) -#define bFM3_ADC0_SCIS1_AN12 *((volatile unsigned int*)(0x424E02B0UL)) -#define bFM3_ADC0_SCIS1_AN13 *((volatile unsigned int*)(0x424E02B4UL)) -#define bFM3_ADC0_SCIS1_AN14 *((volatile unsigned int*)(0x424E02B8UL)) -#define bFM3_ADC0_SCIS1_AN15 *((volatile unsigned int*)(0x424E02BCUL)) -#define bFM3_ADC0_PFNS_PFS0 *((volatile unsigned int*)(0x424E0300UL)) -#define bFM3_ADC0_PFNS_PFS1 *((volatile unsigned int*)(0x424E0304UL)) -#define bFM3_ADC0_PFNS_TEST0 *((volatile unsigned int*)(0x424E0310UL)) -#define bFM3_ADC0_PFNS_TEST1 *((volatile unsigned int*)(0x424E0314UL)) -#define bFM3_ADC0_PCCR_PSTR *((volatile unsigned int*)(0x424E0320UL)) -#define bFM3_ADC0_PCCR_PHEN *((volatile unsigned int*)(0x424E0324UL)) -#define bFM3_ADC0_PCCR_PEEN *((volatile unsigned int*)(0x424E0328UL)) -#define bFM3_ADC0_PCCR_ESCE *((volatile unsigned int*)(0x424E032CUL)) -#define bFM3_ADC0_PCCR_PFCLR *((volatile unsigned int*)(0x424E0330UL)) -#define bFM3_ADC0_PCCR_POVR *((volatile unsigned int*)(0x424E0334UL)) -#define bFM3_ADC0_PCCR_PFUL *((volatile unsigned int*)(0x424E0338UL)) -#define bFM3_ADC0_PCCR_PEMP *((volatile unsigned int*)(0x424E033CUL)) -#define bFM3_ADC0_PCFD_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFD_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFD_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFD_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFD_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFD_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFD_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFD_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFD_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFD_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFD_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFD_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFD_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFD_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFD_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFD_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFD_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFD_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFD_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFD_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFD_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCFDL_PC0 *((volatile unsigned int*)(0x424E0380UL)) -#define bFM3_ADC0_PCFDL_PC1 *((volatile unsigned int*)(0x424E0384UL)) -#define bFM3_ADC0_PCFDL_PC2 *((volatile unsigned int*)(0x424E0388UL)) -#define bFM3_ADC0_PCFDL_PC3 *((volatile unsigned int*)(0x424E038CUL)) -#define bFM3_ADC0_PCFDL_PC4 *((volatile unsigned int*)(0x424E0390UL)) -#define bFM3_ADC0_PCFDL_RS0 *((volatile unsigned int*)(0x424E03A0UL)) -#define bFM3_ADC0_PCFDL_RS1 *((volatile unsigned int*)(0x424E03A4UL)) -#define bFM3_ADC0_PCFDL_RS2 *((volatile unsigned int*)(0x424E03A8UL)) -#define bFM3_ADC0_PCFDL_INVL *((volatile unsigned int*)(0x424E03B0UL)) -#define bFM3_ADC0_PCFDH_PD0 *((volatile unsigned int*)(0x424E03D0UL)) -#define bFM3_ADC0_PCFDH_PD1 *((volatile unsigned int*)(0x424E03D4UL)) -#define bFM3_ADC0_PCFDH_PD2 *((volatile unsigned int*)(0x424E03D8UL)) -#define bFM3_ADC0_PCFDH_PD3 *((volatile unsigned int*)(0x424E03DCUL)) -#define bFM3_ADC0_PCFDH_PD4 *((volatile unsigned int*)(0x424E03E0UL)) -#define bFM3_ADC0_PCFDH_PD5 *((volatile unsigned int*)(0x424E03E4UL)) -#define bFM3_ADC0_PCFDH_PD6 *((volatile unsigned int*)(0x424E03E8UL)) -#define bFM3_ADC0_PCFDH_PD7 *((volatile unsigned int*)(0x424E03ECUL)) -#define bFM3_ADC0_PCFDH_PD8 *((volatile unsigned int*)(0x424E03F0UL)) -#define bFM3_ADC0_PCFDH_PD9 *((volatile unsigned int*)(0x424E03F4UL)) -#define bFM3_ADC0_PCFDH_PD10 *((volatile unsigned int*)(0x424E03F8UL)) -#define bFM3_ADC0_PCFDH_PD11 *((volatile unsigned int*)(0x424E03FCUL)) -#define bFM3_ADC0_PCIS_P1A0 *((volatile unsigned int*)(0x424E0400UL)) -#define bFM3_ADC0_PCIS_P1A1 *((volatile unsigned int*)(0x424E0404UL)) -#define bFM3_ADC0_PCIS_P1A2 *((volatile unsigned int*)(0x424E0408UL)) -#define bFM3_ADC0_PCIS_P2A0 *((volatile unsigned int*)(0x424E040CUL)) -#define bFM3_ADC0_PCIS_P2A1 *((volatile unsigned int*)(0x424E0410UL)) -#define bFM3_ADC0_PCIS_P2A2 *((volatile unsigned int*)(0x424E0414UL)) -#define bFM3_ADC0_PCIS_P2A3 *((volatile unsigned int*)(0x424E0418UL)) -#define bFM3_ADC0_PCIS_P2A4 *((volatile unsigned int*)(0x424E041CUL)) -#define bFM3_ADC0_CMPCR_CCH0 *((volatile unsigned int*)(0x424E0480UL)) -#define bFM3_ADC0_CMPCR_CCH1 *((volatile unsigned int*)(0x424E0484UL)) -#define bFM3_ADC0_CMPCR_CCH2 *((volatile unsigned int*)(0x424E0488UL)) -#define bFM3_ADC0_CMPCR_CCH3 *((volatile unsigned int*)(0x424E048CUL)) -#define bFM3_ADC0_CMPCR_CCH4 *((volatile unsigned int*)(0x424E0490UL)) -#define bFM3_ADC0_CMPCR_CMD0 *((volatile unsigned int*)(0x424E0494UL)) -#define bFM3_ADC0_CMPCR_CMD1 *((volatile unsigned int*)(0x424E0498UL)) -#define bFM3_ADC0_CMPCR_CMPEN *((volatile unsigned int*)(0x424E049CUL)) -#define bFM3_ADC0_CMPD_CMAD2 *((volatile unsigned int*)(0x424E04D8UL)) -#define bFM3_ADC0_CMPD_CMAD3 *((volatile unsigned int*)(0x424E04DCUL)) -#define bFM3_ADC0_CMPD_CMAD4 *((volatile unsigned int*)(0x424E04E0UL)) -#define bFM3_ADC0_CMPD_CMAD5 *((volatile unsigned int*)(0x424E04E4UL)) -#define bFM3_ADC0_CMPD_CMAD6 *((volatile unsigned int*)(0x424E04E8UL)) -#define bFM3_ADC0_CMPD_CMAD7 *((volatile unsigned int*)(0x424E04ECUL)) -#define bFM3_ADC0_CMPD_CMAD8 *((volatile unsigned int*)(0x424E04F0UL)) -#define bFM3_ADC0_CMPD_CMAD9 *((volatile unsigned int*)(0x424E04F4UL)) -#define bFM3_ADC0_CMPD_CMAD10 *((volatile unsigned int*)(0x424E04F8UL)) -#define bFM3_ADC0_CMPD_CMAD11 *((volatile unsigned int*)(0x424E04FCUL)) -#define bFM3_ADC0_ADSS23_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS23_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS23_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS23_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS23_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS23_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS23_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS23_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS23_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS23_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS23_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS23_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS23_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS23_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS23_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS23_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS2_TS16 *((volatile unsigned int*)(0x424E0500UL)) -#define bFM3_ADC0_ADSS2_TS17 *((volatile unsigned int*)(0x424E0504UL)) -#define bFM3_ADC0_ADSS2_TS18 *((volatile unsigned int*)(0x424E0508UL)) -#define bFM3_ADC0_ADSS2_TS19 *((volatile unsigned int*)(0x424E050CUL)) -#define bFM3_ADC0_ADSS2_TS20 *((volatile unsigned int*)(0x424E0510UL)) -#define bFM3_ADC0_ADSS2_TS21 *((volatile unsigned int*)(0x424E0514UL)) -#define bFM3_ADC0_ADSS2_TS22 *((volatile unsigned int*)(0x424E0518UL)) -#define bFM3_ADC0_ADSS2_TS23 *((volatile unsigned int*)(0x424E051CUL)) -#define bFM3_ADC0_ADSS3_TS24 *((volatile unsigned int*)(0x424E0520UL)) -#define bFM3_ADC0_ADSS3_TS25 *((volatile unsigned int*)(0x424E0524UL)) -#define bFM3_ADC0_ADSS3_TS26 *((volatile unsigned int*)(0x424E0528UL)) -#define bFM3_ADC0_ADSS3_TS27 *((volatile unsigned int*)(0x424E052CUL)) -#define bFM3_ADC0_ADSS3_TS28 *((volatile unsigned int*)(0x424E0530UL)) -#define bFM3_ADC0_ADSS3_TS29 *((volatile unsigned int*)(0x424E0534UL)) -#define bFM3_ADC0_ADSS3_TS30 *((volatile unsigned int*)(0x424E0538UL)) -#define bFM3_ADC0_ADSS3_TS31 *((volatile unsigned int*)(0x424E053CUL)) -#define bFM3_ADC0_ADSS01_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS01_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS01_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS01_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS01_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS01_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS01_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS01_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS01_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS01_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS01_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS01_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS01_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS01_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS01_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS01_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADSS0_TS0 *((volatile unsigned int*)(0x424E0580UL)) -#define bFM3_ADC0_ADSS0_TS1 *((volatile unsigned int*)(0x424E0584UL)) -#define bFM3_ADC0_ADSS0_TS2 *((volatile unsigned int*)(0x424E0588UL)) -#define bFM3_ADC0_ADSS0_TS3 *((volatile unsigned int*)(0x424E058CUL)) -#define bFM3_ADC0_ADSS0_TS4 *((volatile unsigned int*)(0x424E0590UL)) -#define bFM3_ADC0_ADSS0_TS5 *((volatile unsigned int*)(0x424E0594UL)) -#define bFM3_ADC0_ADSS0_TS6 *((volatile unsigned int*)(0x424E0598UL)) -#define bFM3_ADC0_ADSS0_TS7 *((volatile unsigned int*)(0x424E059CUL)) -#define bFM3_ADC0_ADSS1_TS8 *((volatile unsigned int*)(0x424E05A0UL)) -#define bFM3_ADC0_ADSS1_TS9 *((volatile unsigned int*)(0x424E05A4UL)) -#define bFM3_ADC0_ADSS1_TS10 *((volatile unsigned int*)(0x424E05A8UL)) -#define bFM3_ADC0_ADSS1_TS11 *((volatile unsigned int*)(0x424E05ACUL)) -#define bFM3_ADC0_ADSS1_TS12 *((volatile unsigned int*)(0x424E05B0UL)) -#define bFM3_ADC0_ADSS1_TS13 *((volatile unsigned int*)(0x424E05B4UL)) -#define bFM3_ADC0_ADSS1_TS14 *((volatile unsigned int*)(0x424E05B8UL)) -#define bFM3_ADC0_ADSS1_TS15 *((volatile unsigned int*)(0x424E05BCUL)) -#define bFM3_ADC0_ADST01_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST01_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST01_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST01_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST01_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST01_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST01_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST01_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST01_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST01_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST01_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST01_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST01_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST01_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST01_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST01_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADST1_ST10 *((volatile unsigned int*)(0x424E0600UL)) -#define bFM3_ADC0_ADST1_ST11 *((volatile unsigned int*)(0x424E0604UL)) -#define bFM3_ADC0_ADST1_ST12 *((volatile unsigned int*)(0x424E0608UL)) -#define bFM3_ADC0_ADST1_ST13 *((volatile unsigned int*)(0x424E060CUL)) -#define bFM3_ADC0_ADST1_ST14 *((volatile unsigned int*)(0x424E0610UL)) -#define bFM3_ADC0_ADST1_STX10 *((volatile unsigned int*)(0x424E0614UL)) -#define bFM3_ADC0_ADST1_STX11 *((volatile unsigned int*)(0x424E0618UL)) -#define bFM3_ADC0_ADST1_STX12 *((volatile unsigned int*)(0x424E061CUL)) -#define bFM3_ADC0_ADST0_ST00 *((volatile unsigned int*)(0x424E0620UL)) -#define bFM3_ADC0_ADST0_ST01 *((volatile unsigned int*)(0x424E0624UL)) -#define bFM3_ADC0_ADST0_ST02 *((volatile unsigned int*)(0x424E0628UL)) -#define bFM3_ADC0_ADST0_ST03 *((volatile unsigned int*)(0x424E062CUL)) -#define bFM3_ADC0_ADST0_ST04 *((volatile unsigned int*)(0x424E0630UL)) -#define bFM3_ADC0_ADST0_STX00 *((volatile unsigned int*)(0x424E0634UL)) -#define bFM3_ADC0_ADST0_STX01 *((volatile unsigned int*)(0x424E0638UL)) -#define bFM3_ADC0_ADST0_STX02 *((volatile unsigned int*)(0x424E063CUL)) -#define bFM3_ADC0_ADCT_CT0 *((volatile unsigned int*)(0x424E0680UL)) -#define bFM3_ADC0_ADCT_CT1 *((volatile unsigned int*)(0x424E0684UL)) -#define bFM3_ADC0_ADCT_CT2 *((volatile unsigned int*)(0x424E0688UL)) -#define bFM3_ADC0_ADCT_CT3 *((volatile unsigned int*)(0x424E068CUL)) -#define bFM3_ADC0_ADCT_CT4 *((volatile unsigned int*)(0x424E0690UL)) -#define bFM3_ADC0_ADCT_CT5 *((volatile unsigned int*)(0x424E0694UL)) -#define bFM3_ADC0_ADCT_CT6 *((volatile unsigned int*)(0x424E0698UL)) -#define bFM3_ADC0_ADCT_CT7 *((volatile unsigned int*)(0x424E069CUL)) -#define bFM3_ADC0_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E0700UL)) -#define bFM3_ADC0_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E0704UL)) -#define bFM3_ADC0_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E0708UL)) -#define bFM3_ADC0_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E070CUL)) -#define bFM3_ADC0_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E0720UL)) -#define bFM3_ADC0_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E0724UL)) -#define bFM3_ADC0_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E0728UL)) -#define bFM3_ADC0_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E072CUL)) -#define bFM3_ADC0_ADCEN_ENBL *((volatile unsigned int*)(0x424E0780UL)) -#define bFM3_ADC0_ADCEN_READY *((volatile unsigned int*)(0x424E0784UL)) -#define bFM3_ADC0_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E0790UL)) -#define bFM3_ADC0_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E0794UL)) - -/* 12-bit ADC unit 1 registers */ -#define bFM3_ADC1_ADSR_SCS *((volatile unsigned int*)(0x424E2000UL)) -#define bFM3_ADC1_ADSR_PCS *((volatile unsigned int*)(0x424E2004UL)) -#define bFM3_ADC1_ADSR_PCNS *((volatile unsigned int*)(0x424E2008UL)) -#define bFM3_ADC1_ADSR_FDAS *((volatile unsigned int*)(0x424E2018UL)) -#define bFM3_ADC1_ADSR_ADSTP *((volatile unsigned int*)(0x424E201CUL)) -#define bFM3_ADC1_ADCR_OVRIE *((volatile unsigned int*)(0x424E2020UL)) -#define bFM3_ADC1_ADCR_CMPIE *((volatile unsigned int*)(0x424E2024UL)) -#define bFM3_ADC1_ADCR_PCIE *((volatile unsigned int*)(0x424E2028UL)) -#define bFM3_ADC1_ADCR_SCIE *((volatile unsigned int*)(0x424E202CUL)) -#define bFM3_ADC1_ADCR_CMPIF *((volatile unsigned int*)(0x424E2034UL)) -#define bFM3_ADC1_ADCR_PCIF *((volatile unsigned int*)(0x424E2038UL)) -#define bFM3_ADC1_ADCR_SCIF *((volatile unsigned int*)(0x424E203CUL)) -#define bFM3_ADC1_SFNS_SFS0 *((volatile unsigned int*)(0x424E2100UL)) -#define bFM3_ADC1_SFNS_SFS1 *((volatile unsigned int*)(0x424E2104UL)) -#define bFM3_ADC1_SFNS_SFS2 *((volatile unsigned int*)(0x424E2108UL)) -#define bFM3_ADC1_SFNS_SFS3 *((volatile unsigned int*)(0x424E210CUL)) -#define bFM3_ADC1_SCCR_SSTR *((volatile unsigned int*)(0x424E2120UL)) -#define bFM3_ADC1_SCCR_SHEN *((volatile unsigned int*)(0x424E2124UL)) -#define bFM3_ADC1_SCCR_RPT *((volatile unsigned int*)(0x424E2128UL)) -#define bFM3_ADC1_SCCR_SFCLR *((volatile unsigned int*)(0x424E2130UL)) -#define bFM3_ADC1_SCCR_SOVR *((volatile unsigned int*)(0x424E2134UL)) -#define bFM3_ADC1_SCCR_SFUL *((volatile unsigned int*)(0x424E2138UL)) -#define bFM3_ADC1_SCCR_SEMP *((volatile unsigned int*)(0x424E213CUL)) -#define bFM3_ADC1_SCFD_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFD_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFD_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFD_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFD_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFD_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFD_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFD_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFD_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFD_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFD_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFD_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFD_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFD_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFD_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFD_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFD_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFD_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFD_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFD_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCFDL_SC0 *((volatile unsigned int*)(0x424E2180UL)) -#define bFM3_ADC1_SCFDL_SC1 *((volatile unsigned int*)(0x424E2184UL)) -#define bFM3_ADC1_SCFDL_SC2 *((volatile unsigned int*)(0x424E2188UL)) -#define bFM3_ADC1_SCFDL_SC3 *((volatile unsigned int*)(0x424E218CUL)) -#define bFM3_ADC1_SCFDL_SC4 *((volatile unsigned int*)(0x424E2190UL)) -#define bFM3_ADC1_SCFDL_RS0 *((volatile unsigned int*)(0x424E21A0UL)) -#define bFM3_ADC1_SCFDL_RS1 *((volatile unsigned int*)(0x424E21A4UL)) -#define bFM3_ADC1_SCFDL_INVL *((volatile unsigned int*)(0x424E21B0UL)) -#define bFM3_ADC1_SCFDH_SD0 *((volatile unsigned int*)(0x424E21D0UL)) -#define bFM3_ADC1_SCFDH_SD1 *((volatile unsigned int*)(0x424E21D4UL)) -#define bFM3_ADC1_SCFDH_SD2 *((volatile unsigned int*)(0x424E21D8UL)) -#define bFM3_ADC1_SCFDH_SD3 *((volatile unsigned int*)(0x424E21DCUL)) -#define bFM3_ADC1_SCFDH_SD4 *((volatile unsigned int*)(0x424E21E0UL)) -#define bFM3_ADC1_SCFDH_SD5 *((volatile unsigned int*)(0x424E21E4UL)) -#define bFM3_ADC1_SCFDH_SD6 *((volatile unsigned int*)(0x424E21E8UL)) -#define bFM3_ADC1_SCFDH_SD7 *((volatile unsigned int*)(0x424E21ECUL)) -#define bFM3_ADC1_SCFDH_SD8 *((volatile unsigned int*)(0x424E21F0UL)) -#define bFM3_ADC1_SCFDH_SD9 *((volatile unsigned int*)(0x424E21F4UL)) -#define bFM3_ADC1_SCFDH_SD10 *((volatile unsigned int*)(0x424E21F8UL)) -#define bFM3_ADC1_SCFDH_SD11 *((volatile unsigned int*)(0x424E21FCUL)) -#define bFM3_ADC1_SCIS23_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS23_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS23_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS23_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS23_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS23_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS23_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS23_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS23_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS23_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS23_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS23_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS23_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS23_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS23_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS23_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS2_AN16 *((volatile unsigned int*)(0x424E2200UL)) -#define bFM3_ADC1_SCIS2_AN17 *((volatile unsigned int*)(0x424E2204UL)) -#define bFM3_ADC1_SCIS2_AN18 *((volatile unsigned int*)(0x424E2208UL)) -#define bFM3_ADC1_SCIS2_AN19 *((volatile unsigned int*)(0x424E220CUL)) -#define bFM3_ADC1_SCIS2_AN20 *((volatile unsigned int*)(0x424E2210UL)) -#define bFM3_ADC1_SCIS2_AN21 *((volatile unsigned int*)(0x424E2214UL)) -#define bFM3_ADC1_SCIS2_AN22 *((volatile unsigned int*)(0x424E2218UL)) -#define bFM3_ADC1_SCIS2_AN23 *((volatile unsigned int*)(0x424E221CUL)) -#define bFM3_ADC1_SCIS3_AN24 *((volatile unsigned int*)(0x424E2220UL)) -#define bFM3_ADC1_SCIS3_AN25 *((volatile unsigned int*)(0x424E2224UL)) -#define bFM3_ADC1_SCIS3_AN26 *((volatile unsigned int*)(0x424E2228UL)) -#define bFM3_ADC1_SCIS3_AN27 *((volatile unsigned int*)(0x424E222CUL)) -#define bFM3_ADC1_SCIS3_AN28 *((volatile unsigned int*)(0x424E2230UL)) -#define bFM3_ADC1_SCIS3_AN29 *((volatile unsigned int*)(0x424E2234UL)) -#define bFM3_ADC1_SCIS3_AN30 *((volatile unsigned int*)(0x424E2238UL)) -#define bFM3_ADC1_SCIS3_AN31 *((volatile unsigned int*)(0x424E223CUL)) -#define bFM3_ADC1_SCIS01_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS01_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS01_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS01_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS01_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS01_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS01_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS01_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS01_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS01_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS01_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS01_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS01_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS01_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS01_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS01_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_SCIS0_AN0 *((volatile unsigned int*)(0x424E2280UL)) -#define bFM3_ADC1_SCIS0_AN1 *((volatile unsigned int*)(0x424E2284UL)) -#define bFM3_ADC1_SCIS0_AN2 *((volatile unsigned int*)(0x424E2288UL)) -#define bFM3_ADC1_SCIS0_AN3 *((volatile unsigned int*)(0x424E228CUL)) -#define bFM3_ADC1_SCIS0_AN4 *((volatile unsigned int*)(0x424E2290UL)) -#define bFM3_ADC1_SCIS0_AN5 *((volatile unsigned int*)(0x424E2294UL)) -#define bFM3_ADC1_SCIS0_AN6 *((volatile unsigned int*)(0x424E2298UL)) -#define bFM3_ADC1_SCIS0_AN7 *((volatile unsigned int*)(0x424E229CUL)) -#define bFM3_ADC1_SCIS1_AN8 *((volatile unsigned int*)(0x424E22A0UL)) -#define bFM3_ADC1_SCIS1_AN9 *((volatile unsigned int*)(0x424E22A4UL)) -#define bFM3_ADC1_SCIS1_AN10 *((volatile unsigned int*)(0x424E22A8UL)) -#define bFM3_ADC1_SCIS1_AN11 *((volatile unsigned int*)(0x424E22ACUL)) -#define bFM3_ADC1_SCIS1_AN12 *((volatile unsigned int*)(0x424E22B0UL)) -#define bFM3_ADC1_SCIS1_AN13 *((volatile unsigned int*)(0x424E22B4UL)) -#define bFM3_ADC1_SCIS1_AN14 *((volatile unsigned int*)(0x424E22B8UL)) -#define bFM3_ADC1_SCIS1_AN15 *((volatile unsigned int*)(0x424E22BCUL)) -#define bFM3_ADC1_PFNS_PFS0 *((volatile unsigned int*)(0x424E2300UL)) -#define bFM3_ADC1_PFNS_PFS1 *((volatile unsigned int*)(0x424E2304UL)) -#define bFM3_ADC1_PFNS_TEST0 *((volatile unsigned int*)(0x424E2310UL)) -#define bFM3_ADC1_PFNS_TEST1 *((volatile unsigned int*)(0x424E2314UL)) -#define bFM3_ADC1_PCCR_PSTR *((volatile unsigned int*)(0x424E2320UL)) -#define bFM3_ADC1_PCCR_PHEN *((volatile unsigned int*)(0x424E2324UL)) -#define bFM3_ADC1_PCCR_PEEN *((volatile unsigned int*)(0x424E2328UL)) -#define bFM3_ADC1_PCCR_ESCE *((volatile unsigned int*)(0x424E232CUL)) -#define bFM3_ADC1_PCCR_PFCLR *((volatile unsigned int*)(0x424E2330UL)) -#define bFM3_ADC1_PCCR_POVR *((volatile unsigned int*)(0x424E2334UL)) -#define bFM3_ADC1_PCCR_PFUL *((volatile unsigned int*)(0x424E2338UL)) -#define bFM3_ADC1_PCCR_PEMP *((volatile unsigned int*)(0x424E233CUL)) -#define bFM3_ADC1_PCFD_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFD_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFD_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFD_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFD_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFD_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFD_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFD_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFD_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFD_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFD_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFD_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFD_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFD_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFD_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFD_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFD_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFD_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFD_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFD_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFD_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCFDL_PC0 *((volatile unsigned int*)(0x424E2380UL)) -#define bFM3_ADC1_PCFDL_PC1 *((volatile unsigned int*)(0x424E2384UL)) -#define bFM3_ADC1_PCFDL_PC2 *((volatile unsigned int*)(0x424E2388UL)) -#define bFM3_ADC1_PCFDL_PC3 *((volatile unsigned int*)(0x424E238CUL)) -#define bFM3_ADC1_PCFDL_PC4 *((volatile unsigned int*)(0x424E2390UL)) -#define bFM3_ADC1_PCFDL_RS0 *((volatile unsigned int*)(0x424E23A0UL)) -#define bFM3_ADC1_PCFDL_RS1 *((volatile unsigned int*)(0x424E23A4UL)) -#define bFM3_ADC1_PCFDL_RS2 *((volatile unsigned int*)(0x424E23A8UL)) -#define bFM3_ADC1_PCFDL_INVL *((volatile unsigned int*)(0x424E23B0UL)) -#define bFM3_ADC1_PCFDH_PD0 *((volatile unsigned int*)(0x424E23D0UL)) -#define bFM3_ADC1_PCFDH_PD1 *((volatile unsigned int*)(0x424E23D4UL)) -#define bFM3_ADC1_PCFDH_PD2 *((volatile unsigned int*)(0x424E23D8UL)) -#define bFM3_ADC1_PCFDH_PD3 *((volatile unsigned int*)(0x424E23DCUL)) -#define bFM3_ADC1_PCFDH_PD4 *((volatile unsigned int*)(0x424E23E0UL)) -#define bFM3_ADC1_PCFDH_PD5 *((volatile unsigned int*)(0x424E23E4UL)) -#define bFM3_ADC1_PCFDH_PD6 *((volatile unsigned int*)(0x424E23E8UL)) -#define bFM3_ADC1_PCFDH_PD7 *((volatile unsigned int*)(0x424E23ECUL)) -#define bFM3_ADC1_PCFDH_PD8 *((volatile unsigned int*)(0x424E23F0UL)) -#define bFM3_ADC1_PCFDH_PD9 *((volatile unsigned int*)(0x424E23F4UL)) -#define bFM3_ADC1_PCFDH_PD10 *((volatile unsigned int*)(0x424E23F8UL)) -#define bFM3_ADC1_PCFDH_PD11 *((volatile unsigned int*)(0x424E23FCUL)) -#define bFM3_ADC1_PCIS_P1A0 *((volatile unsigned int*)(0x424E2400UL)) -#define bFM3_ADC1_PCIS_P1A1 *((volatile unsigned int*)(0x424E2404UL)) -#define bFM3_ADC1_PCIS_P1A2 *((volatile unsigned int*)(0x424E2408UL)) -#define bFM3_ADC1_PCIS_P2A0 *((volatile unsigned int*)(0x424E240CUL)) -#define bFM3_ADC1_PCIS_P2A1 *((volatile unsigned int*)(0x424E2410UL)) -#define bFM3_ADC1_PCIS_P2A2 *((volatile unsigned int*)(0x424E2414UL)) -#define bFM3_ADC1_PCIS_P2A3 *((volatile unsigned int*)(0x424E2418UL)) -#define bFM3_ADC1_PCIS_P2A4 *((volatile unsigned int*)(0x424E241CUL)) -#define bFM3_ADC1_CMPCR_CCH0 *((volatile unsigned int*)(0x424E2480UL)) -#define bFM3_ADC1_CMPCR_CCH1 *((volatile unsigned int*)(0x424E2484UL)) -#define bFM3_ADC1_CMPCR_CCH2 *((volatile unsigned int*)(0x424E2488UL)) -#define bFM3_ADC1_CMPCR_CCH3 *((volatile unsigned int*)(0x424E248CUL)) -#define bFM3_ADC1_CMPCR_CCH4 *((volatile unsigned int*)(0x424E2490UL)) -#define bFM3_ADC1_CMPCR_CMD0 *((volatile unsigned int*)(0x424E2494UL)) -#define bFM3_ADC1_CMPCR_CMD1 *((volatile unsigned int*)(0x424E2498UL)) -#define bFM3_ADC1_CMPCR_CMPEN *((volatile unsigned int*)(0x424E249CUL)) -#define bFM3_ADC1_CMPD_CMAD2 *((volatile unsigned int*)(0x424E24D8UL)) -#define bFM3_ADC1_CMPD_CMAD3 *((volatile unsigned int*)(0x424E24DCUL)) -#define bFM3_ADC1_CMPD_CMAD4 *((volatile unsigned int*)(0x424E24E0UL)) -#define bFM3_ADC1_CMPD_CMAD5 *((volatile unsigned int*)(0x424E24E4UL)) -#define bFM3_ADC1_CMPD_CMAD6 *((volatile unsigned int*)(0x424E24E8UL)) -#define bFM3_ADC1_CMPD_CMAD7 *((volatile unsigned int*)(0x424E24ECUL)) -#define bFM3_ADC1_CMPD_CMAD8 *((volatile unsigned int*)(0x424E24F0UL)) -#define bFM3_ADC1_CMPD_CMAD9 *((volatile unsigned int*)(0x424E24F4UL)) -#define bFM3_ADC1_CMPD_CMAD10 *((volatile unsigned int*)(0x424E24F8UL)) -#define bFM3_ADC1_CMPD_CMAD11 *((volatile unsigned int*)(0x424E24FCUL)) -#define bFM3_ADC1_ADSS23_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS23_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS23_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS23_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS23_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS23_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS23_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS23_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS23_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS23_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS23_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS23_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS23_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS23_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS23_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS23_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS2_TS16 *((volatile unsigned int*)(0x424E2500UL)) -#define bFM3_ADC1_ADSS2_TS17 *((volatile unsigned int*)(0x424E2504UL)) -#define bFM3_ADC1_ADSS2_TS18 *((volatile unsigned int*)(0x424E2508UL)) -#define bFM3_ADC1_ADSS2_TS19 *((volatile unsigned int*)(0x424E250CUL)) -#define bFM3_ADC1_ADSS2_TS20 *((volatile unsigned int*)(0x424E2510UL)) -#define bFM3_ADC1_ADSS2_TS21 *((volatile unsigned int*)(0x424E2514UL)) -#define bFM3_ADC1_ADSS2_TS22 *((volatile unsigned int*)(0x424E2518UL)) -#define bFM3_ADC1_ADSS2_TS23 *((volatile unsigned int*)(0x424E251CUL)) -#define bFM3_ADC1_ADSS3_TS24 *((volatile unsigned int*)(0x424E2520UL)) -#define bFM3_ADC1_ADSS3_TS25 *((volatile unsigned int*)(0x424E2524UL)) -#define bFM3_ADC1_ADSS3_TS26 *((volatile unsigned int*)(0x424E2528UL)) -#define bFM3_ADC1_ADSS3_TS27 *((volatile unsigned int*)(0x424E252CUL)) -#define bFM3_ADC1_ADSS3_TS28 *((volatile unsigned int*)(0x424E2530UL)) -#define bFM3_ADC1_ADSS3_TS29 *((volatile unsigned int*)(0x424E2534UL)) -#define bFM3_ADC1_ADSS3_TS30 *((volatile unsigned int*)(0x424E2538UL)) -#define bFM3_ADC1_ADSS3_TS31 *((volatile unsigned int*)(0x424E253CUL)) -#define bFM3_ADC1_ADSS01_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS01_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS01_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS01_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS01_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS01_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS01_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS01_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS01_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS01_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS01_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS01_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS01_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS01_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS01_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS01_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADSS0_TS0 *((volatile unsigned int*)(0x424E2580UL)) -#define bFM3_ADC1_ADSS0_TS1 *((volatile unsigned int*)(0x424E2584UL)) -#define bFM3_ADC1_ADSS0_TS2 *((volatile unsigned int*)(0x424E2588UL)) -#define bFM3_ADC1_ADSS0_TS3 *((volatile unsigned int*)(0x424E258CUL)) -#define bFM3_ADC1_ADSS0_TS4 *((volatile unsigned int*)(0x424E2590UL)) -#define bFM3_ADC1_ADSS0_TS5 *((volatile unsigned int*)(0x424E2594UL)) -#define bFM3_ADC1_ADSS0_TS6 *((volatile unsigned int*)(0x424E2598UL)) -#define bFM3_ADC1_ADSS0_TS7 *((volatile unsigned int*)(0x424E259CUL)) -#define bFM3_ADC1_ADSS1_TS8 *((volatile unsigned int*)(0x424E25A0UL)) -#define bFM3_ADC1_ADSS1_TS9 *((volatile unsigned int*)(0x424E25A4UL)) -#define bFM3_ADC1_ADSS1_TS10 *((volatile unsigned int*)(0x424E25A8UL)) -#define bFM3_ADC1_ADSS1_TS11 *((volatile unsigned int*)(0x424E25ACUL)) -#define bFM3_ADC1_ADSS1_TS12 *((volatile unsigned int*)(0x424E25B0UL)) -#define bFM3_ADC1_ADSS1_TS13 *((volatile unsigned int*)(0x424E25B4UL)) -#define bFM3_ADC1_ADSS1_TS14 *((volatile unsigned int*)(0x424E25B8UL)) -#define bFM3_ADC1_ADSS1_TS15 *((volatile unsigned int*)(0x424E25BCUL)) -#define bFM3_ADC1_ADST01_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST01_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST01_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST01_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST01_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST01_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST01_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST01_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST01_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST01_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST01_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST01_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST01_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST01_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST01_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST01_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADST1_ST10 *((volatile unsigned int*)(0x424E2600UL)) -#define bFM3_ADC1_ADST1_ST11 *((volatile unsigned int*)(0x424E2604UL)) -#define bFM3_ADC1_ADST1_ST12 *((volatile unsigned int*)(0x424E2608UL)) -#define bFM3_ADC1_ADST1_ST13 *((volatile unsigned int*)(0x424E260CUL)) -#define bFM3_ADC1_ADST1_ST14 *((volatile unsigned int*)(0x424E2610UL)) -#define bFM3_ADC1_ADST1_STX10 *((volatile unsigned int*)(0x424E2614UL)) -#define bFM3_ADC1_ADST1_STX11 *((volatile unsigned int*)(0x424E2618UL)) -#define bFM3_ADC1_ADST1_STX12 *((volatile unsigned int*)(0x424E261CUL)) -#define bFM3_ADC1_ADST0_ST00 *((volatile unsigned int*)(0x424E2620UL)) -#define bFM3_ADC1_ADST0_ST01 *((volatile unsigned int*)(0x424E2624UL)) -#define bFM3_ADC1_ADST0_ST02 *((volatile unsigned int*)(0x424E2628UL)) -#define bFM3_ADC1_ADST0_ST03 *((volatile unsigned int*)(0x424E262CUL)) -#define bFM3_ADC1_ADST0_ST04 *((volatile unsigned int*)(0x424E2630UL)) -#define bFM3_ADC1_ADST0_STX00 *((volatile unsigned int*)(0x424E2634UL)) -#define bFM3_ADC1_ADST0_STX01 *((volatile unsigned int*)(0x424E2638UL)) -#define bFM3_ADC1_ADST0_STX02 *((volatile unsigned int*)(0x424E263CUL)) -#define bFM3_ADC1_ADCT_CT0 *((volatile unsigned int*)(0x424E2680UL)) -#define bFM3_ADC1_ADCT_CT1 *((volatile unsigned int*)(0x424E2684UL)) -#define bFM3_ADC1_ADCT_CT2 *((volatile unsigned int*)(0x424E2688UL)) -#define bFM3_ADC1_ADCT_CT3 *((volatile unsigned int*)(0x424E268CUL)) -#define bFM3_ADC1_ADCT_CT4 *((volatile unsigned int*)(0x424E2690UL)) -#define bFM3_ADC1_ADCT_CT5 *((volatile unsigned int*)(0x424E2694UL)) -#define bFM3_ADC1_ADCT_CT6 *((volatile unsigned int*)(0x424E2698UL)) -#define bFM3_ADC1_ADCT_CT7 *((volatile unsigned int*)(0x424E269CUL)) -#define bFM3_ADC1_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E2700UL)) -#define bFM3_ADC1_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E2704UL)) -#define bFM3_ADC1_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E2708UL)) -#define bFM3_ADC1_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E270CUL)) -#define bFM3_ADC1_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E2720UL)) -#define bFM3_ADC1_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E2724UL)) -#define bFM3_ADC1_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E2728UL)) -#define bFM3_ADC1_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E272CUL)) -#define bFM3_ADC1_ADCEN_ENBL *((volatile unsigned int*)(0x424E2780UL)) -#define bFM3_ADC1_ADCEN_READY *((volatile unsigned int*)(0x424E2784UL)) -#define bFM3_ADC1_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E2790UL)) -#define bFM3_ADC1_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E2794UL)) - -/* 12-bit ADC unit 2 registers */ -#define bFM3_ADC2_ADSR_SCS *((volatile unsigned int*)(0x424E4000UL)) -#define bFM3_ADC2_ADSR_PCS *((volatile unsigned int*)(0x424E4004UL)) -#define bFM3_ADC2_ADSR_PCNS *((volatile unsigned int*)(0x424E4008UL)) -#define bFM3_ADC2_ADSR_FDAS *((volatile unsigned int*)(0x424E4018UL)) -#define bFM3_ADC2_ADSR_ADSTP *((volatile unsigned int*)(0x424E401CUL)) -#define bFM3_ADC2_ADCR_OVRIE *((volatile unsigned int*)(0x424E4020UL)) -#define bFM3_ADC2_ADCR_CMPIE *((volatile unsigned int*)(0x424E4024UL)) -#define bFM3_ADC2_ADCR_PCIE *((volatile unsigned int*)(0x424E4028UL)) -#define bFM3_ADC2_ADCR_SCIE *((volatile unsigned int*)(0x424E402CUL)) -#define bFM3_ADC2_ADCR_CMPIF *((volatile unsigned int*)(0x424E4034UL)) -#define bFM3_ADC2_ADCR_PCIF *((volatile unsigned int*)(0x424E4038UL)) -#define bFM3_ADC2_ADCR_SCIF *((volatile unsigned int*)(0x424E403CUL)) -#define bFM3_ADC2_SFNS_SFS0 *((volatile unsigned int*)(0x424E4100UL)) -#define bFM3_ADC2_SFNS_SFS1 *((volatile unsigned int*)(0x424E4104UL)) -#define bFM3_ADC2_SFNS_SFS2 *((volatile unsigned int*)(0x424E4108UL)) -#define bFM3_ADC2_SFNS_SFS3 *((volatile unsigned int*)(0x424E410CUL)) -#define bFM3_ADC2_SCCR_SSTR *((volatile unsigned int*)(0x424E4120UL)) -#define bFM3_ADC2_SCCR_SHEN *((volatile unsigned int*)(0x424E4124UL)) -#define bFM3_ADC2_SCCR_RPT *((volatile unsigned int*)(0x424E4128UL)) -#define bFM3_ADC2_SCCR_SFCLR *((volatile unsigned int*)(0x424E4130UL)) -#define bFM3_ADC2_SCCR_SOVR *((volatile unsigned int*)(0x424E4134UL)) -#define bFM3_ADC2_SCCR_SFUL *((volatile unsigned int*)(0x424E4138UL)) -#define bFM3_ADC2_SCCR_SEMP *((volatile unsigned int*)(0x424E413CUL)) -#define bFM3_ADC2_SCFD_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFD_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFD_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFD_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFD_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFD_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFD_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFD_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFD_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFD_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFD_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFD_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFD_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFD_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFD_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFD_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFD_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFD_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFD_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFD_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCFDL_SC0 *((volatile unsigned int*)(0x424E4180UL)) -#define bFM3_ADC2_SCFDL_SC1 *((volatile unsigned int*)(0x424E4184UL)) -#define bFM3_ADC2_SCFDL_SC2 *((volatile unsigned int*)(0x424E4188UL)) -#define bFM3_ADC2_SCFDL_SC3 *((volatile unsigned int*)(0x424E418CUL)) -#define bFM3_ADC2_SCFDL_SC4 *((volatile unsigned int*)(0x424E4190UL)) -#define bFM3_ADC2_SCFDL_RS0 *((volatile unsigned int*)(0x424E41A0UL)) -#define bFM3_ADC2_SCFDL_RS1 *((volatile unsigned int*)(0x424E41A4UL)) -#define bFM3_ADC2_SCFDL_INVL *((volatile unsigned int*)(0x424E41B0UL)) -#define bFM3_ADC2_SCFDH_SD0 *((volatile unsigned int*)(0x424E41D0UL)) -#define bFM3_ADC2_SCFDH_SD1 *((volatile unsigned int*)(0x424E41D4UL)) -#define bFM3_ADC2_SCFDH_SD2 *((volatile unsigned int*)(0x424E41D8UL)) -#define bFM3_ADC2_SCFDH_SD3 *((volatile unsigned int*)(0x424E41DCUL)) -#define bFM3_ADC2_SCFDH_SD4 *((volatile unsigned int*)(0x424E41E0UL)) -#define bFM3_ADC2_SCFDH_SD5 *((volatile unsigned int*)(0x424E41E4UL)) -#define bFM3_ADC2_SCFDH_SD6 *((volatile unsigned int*)(0x424E41E8UL)) -#define bFM3_ADC2_SCFDH_SD7 *((volatile unsigned int*)(0x424E41ECUL)) -#define bFM3_ADC2_SCFDH_SD8 *((volatile unsigned int*)(0x424E41F0UL)) -#define bFM3_ADC2_SCFDH_SD9 *((volatile unsigned int*)(0x424E41F4UL)) -#define bFM3_ADC2_SCFDH_SD10 *((volatile unsigned int*)(0x424E41F8UL)) -#define bFM3_ADC2_SCFDH_SD11 *((volatile unsigned int*)(0x424E41FCUL)) -#define bFM3_ADC2_SCIS23_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS23_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS23_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS23_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS23_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS23_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS23_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS23_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS23_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS23_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS23_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS23_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS23_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS23_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS23_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS23_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS2_AN16 *((volatile unsigned int*)(0x424E4200UL)) -#define bFM3_ADC2_SCIS2_AN17 *((volatile unsigned int*)(0x424E4204UL)) -#define bFM3_ADC2_SCIS2_AN18 *((volatile unsigned int*)(0x424E4208UL)) -#define bFM3_ADC2_SCIS2_AN19 *((volatile unsigned int*)(0x424E420CUL)) -#define bFM3_ADC2_SCIS2_AN20 *((volatile unsigned int*)(0x424E4210UL)) -#define bFM3_ADC2_SCIS2_AN21 *((volatile unsigned int*)(0x424E4214UL)) -#define bFM3_ADC2_SCIS2_AN22 *((volatile unsigned int*)(0x424E4218UL)) -#define bFM3_ADC2_SCIS2_AN23 *((volatile unsigned int*)(0x424E421CUL)) -#define bFM3_ADC2_SCIS3_AN24 *((volatile unsigned int*)(0x424E4220UL)) -#define bFM3_ADC2_SCIS3_AN25 *((volatile unsigned int*)(0x424E4224UL)) -#define bFM3_ADC2_SCIS3_AN26 *((volatile unsigned int*)(0x424E4228UL)) -#define bFM3_ADC2_SCIS3_AN27 *((volatile unsigned int*)(0x424E422CUL)) -#define bFM3_ADC2_SCIS3_AN28 *((volatile unsigned int*)(0x424E4230UL)) -#define bFM3_ADC2_SCIS3_AN29 *((volatile unsigned int*)(0x424E4234UL)) -#define bFM3_ADC2_SCIS3_AN30 *((volatile unsigned int*)(0x424E4238UL)) -#define bFM3_ADC2_SCIS3_AN31 *((volatile unsigned int*)(0x424E423CUL)) -#define bFM3_ADC2_SCIS01_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS01_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS01_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS01_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS01_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS01_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS01_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS01_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS01_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS01_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS01_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS01_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS01_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS01_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS01_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS01_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_SCIS0_AN0 *((volatile unsigned int*)(0x424E4280UL)) -#define bFM3_ADC2_SCIS0_AN1 *((volatile unsigned int*)(0x424E4284UL)) -#define bFM3_ADC2_SCIS0_AN2 *((volatile unsigned int*)(0x424E4288UL)) -#define bFM3_ADC2_SCIS0_AN3 *((volatile unsigned int*)(0x424E428CUL)) -#define bFM3_ADC2_SCIS0_AN4 *((volatile unsigned int*)(0x424E4290UL)) -#define bFM3_ADC2_SCIS0_AN5 *((volatile unsigned int*)(0x424E4294UL)) -#define bFM3_ADC2_SCIS0_AN6 *((volatile unsigned int*)(0x424E4298UL)) -#define bFM3_ADC2_SCIS0_AN7 *((volatile unsigned int*)(0x424E429CUL)) -#define bFM3_ADC2_SCIS1_AN8 *((volatile unsigned int*)(0x424E42A0UL)) -#define bFM3_ADC2_SCIS1_AN9 *((volatile unsigned int*)(0x424E42A4UL)) -#define bFM3_ADC2_SCIS1_AN10 *((volatile unsigned int*)(0x424E42A8UL)) -#define bFM3_ADC2_SCIS1_AN11 *((volatile unsigned int*)(0x424E42ACUL)) -#define bFM3_ADC2_SCIS1_AN12 *((volatile unsigned int*)(0x424E42B0UL)) -#define bFM3_ADC2_SCIS1_AN13 *((volatile unsigned int*)(0x424E42B4UL)) -#define bFM3_ADC2_SCIS1_AN14 *((volatile unsigned int*)(0x424E42B8UL)) -#define bFM3_ADC2_SCIS1_AN15 *((volatile unsigned int*)(0x424E42BCUL)) -#define bFM3_ADC2_PFNS_PFS0 *((volatile unsigned int*)(0x424E4300UL)) -#define bFM3_ADC2_PFNS_PFS1 *((volatile unsigned int*)(0x424E4304UL)) -#define bFM3_ADC2_PFNS_TEST0 *((volatile unsigned int*)(0x424E4310UL)) -#define bFM3_ADC2_PFNS_TEST1 *((volatile unsigned int*)(0x424E4314UL)) -#define bFM3_ADC2_PCCR_PSTR *((volatile unsigned int*)(0x424E4320UL)) -#define bFM3_ADC2_PCCR_PHEN *((volatile unsigned int*)(0x424E4324UL)) -#define bFM3_ADC2_PCCR_PEEN *((volatile unsigned int*)(0x424E4328UL)) -#define bFM3_ADC2_PCCR_ESCE *((volatile unsigned int*)(0x424E432CUL)) -#define bFM3_ADC2_PCCR_PFCLR *((volatile unsigned int*)(0x424E4330UL)) -#define bFM3_ADC2_PCCR_POVR *((volatile unsigned int*)(0x424E4334UL)) -#define bFM3_ADC2_PCCR_PFUL *((volatile unsigned int*)(0x424E4338UL)) -#define bFM3_ADC2_PCCR_PEMP *((volatile unsigned int*)(0x424E433CUL)) -#define bFM3_ADC2_PCFD_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFD_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFD_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFD_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFD_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFD_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFD_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFD_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFD_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFD_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFD_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFD_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFD_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFD_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFD_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFD_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFD_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFD_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFD_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFD_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFD_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCFDL_PC0 *((volatile unsigned int*)(0x424E4380UL)) -#define bFM3_ADC2_PCFDL_PC1 *((volatile unsigned int*)(0x424E4384UL)) -#define bFM3_ADC2_PCFDL_PC2 *((volatile unsigned int*)(0x424E4388UL)) -#define bFM3_ADC2_PCFDL_PC3 *((volatile unsigned int*)(0x424E438CUL)) -#define bFM3_ADC2_PCFDL_PC4 *((volatile unsigned int*)(0x424E4390UL)) -#define bFM3_ADC2_PCFDL_RS0 *((volatile unsigned int*)(0x424E43A0UL)) -#define bFM3_ADC2_PCFDL_RS1 *((volatile unsigned int*)(0x424E43A4UL)) -#define bFM3_ADC2_PCFDL_RS2 *((volatile unsigned int*)(0x424E43A8UL)) -#define bFM3_ADC2_PCFDL_INVL *((volatile unsigned int*)(0x424E43B0UL)) -#define bFM3_ADC2_PCFDH_PD0 *((volatile unsigned int*)(0x424E43D0UL)) -#define bFM3_ADC2_PCFDH_PD1 *((volatile unsigned int*)(0x424E43D4UL)) -#define bFM3_ADC2_PCFDH_PD2 *((volatile unsigned int*)(0x424E43D8UL)) -#define bFM3_ADC2_PCFDH_PD3 *((volatile unsigned int*)(0x424E43DCUL)) -#define bFM3_ADC2_PCFDH_PD4 *((volatile unsigned int*)(0x424E43E0UL)) -#define bFM3_ADC2_PCFDH_PD5 *((volatile unsigned int*)(0x424E43E4UL)) -#define bFM3_ADC2_PCFDH_PD6 *((volatile unsigned int*)(0x424E43E8UL)) -#define bFM3_ADC2_PCFDH_PD7 *((volatile unsigned int*)(0x424E43ECUL)) -#define bFM3_ADC2_PCFDH_PD8 *((volatile unsigned int*)(0x424E43F0UL)) -#define bFM3_ADC2_PCFDH_PD9 *((volatile unsigned int*)(0x424E43F4UL)) -#define bFM3_ADC2_PCFDH_PD10 *((volatile unsigned int*)(0x424E43F8UL)) -#define bFM3_ADC2_PCFDH_PD11 *((volatile unsigned int*)(0x424E43FCUL)) -#define bFM3_ADC2_PCIS_P1A0 *((volatile unsigned int*)(0x424E4400UL)) -#define bFM3_ADC2_PCIS_P1A1 *((volatile unsigned int*)(0x424E4404UL)) -#define bFM3_ADC2_PCIS_P1A2 *((volatile unsigned int*)(0x424E4408UL)) -#define bFM3_ADC2_PCIS_P2A0 *((volatile unsigned int*)(0x424E440CUL)) -#define bFM3_ADC2_PCIS_P2A1 *((volatile unsigned int*)(0x424E4410UL)) -#define bFM3_ADC2_PCIS_P2A2 *((volatile unsigned int*)(0x424E4414UL)) -#define bFM3_ADC2_PCIS_P2A3 *((volatile unsigned int*)(0x424E4418UL)) -#define bFM3_ADC2_PCIS_P2A4 *((volatile unsigned int*)(0x424E441CUL)) -#define bFM3_ADC2_CMPCR_CCH0 *((volatile unsigned int*)(0x424E4480UL)) -#define bFM3_ADC2_CMPCR_CCH1 *((volatile unsigned int*)(0x424E4484UL)) -#define bFM3_ADC2_CMPCR_CCH2 *((volatile unsigned int*)(0x424E4488UL)) -#define bFM3_ADC2_CMPCR_CCH3 *((volatile unsigned int*)(0x424E448CUL)) -#define bFM3_ADC2_CMPCR_CCH4 *((volatile unsigned int*)(0x424E4490UL)) -#define bFM3_ADC2_CMPCR_CMD0 *((volatile unsigned int*)(0x424E4494UL)) -#define bFM3_ADC2_CMPCR_CMD1 *((volatile unsigned int*)(0x424E4498UL)) -#define bFM3_ADC2_CMPCR_CMPEN *((volatile unsigned int*)(0x424E449CUL)) -#define bFM3_ADC2_CMPD_CMAD2 *((volatile unsigned int*)(0x424E44D8UL)) -#define bFM3_ADC2_CMPD_CMAD3 *((volatile unsigned int*)(0x424E44DCUL)) -#define bFM3_ADC2_CMPD_CMAD4 *((volatile unsigned int*)(0x424E44E0UL)) -#define bFM3_ADC2_CMPD_CMAD5 *((volatile unsigned int*)(0x424E44E4UL)) -#define bFM3_ADC2_CMPD_CMAD6 *((volatile unsigned int*)(0x424E44E8UL)) -#define bFM3_ADC2_CMPD_CMAD7 *((volatile unsigned int*)(0x424E44ECUL)) -#define bFM3_ADC2_CMPD_CMAD8 *((volatile unsigned int*)(0x424E44F0UL)) -#define bFM3_ADC2_CMPD_CMAD9 *((volatile unsigned int*)(0x424E44F4UL)) -#define bFM3_ADC2_CMPD_CMAD10 *((volatile unsigned int*)(0x424E44F8UL)) -#define bFM3_ADC2_CMPD_CMAD11 *((volatile unsigned int*)(0x424E44FCUL)) -#define bFM3_ADC2_ADSS23_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS23_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS23_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS23_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS23_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS23_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS23_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS23_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS23_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS23_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS23_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS23_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS23_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS23_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS23_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS23_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS2_TS16 *((volatile unsigned int*)(0x424E4500UL)) -#define bFM3_ADC2_ADSS2_TS17 *((volatile unsigned int*)(0x424E4504UL)) -#define bFM3_ADC2_ADSS2_TS18 *((volatile unsigned int*)(0x424E4508UL)) -#define bFM3_ADC2_ADSS2_TS19 *((volatile unsigned int*)(0x424E450CUL)) -#define bFM3_ADC2_ADSS2_TS20 *((volatile unsigned int*)(0x424E4510UL)) -#define bFM3_ADC2_ADSS2_TS21 *((volatile unsigned int*)(0x424E4514UL)) -#define bFM3_ADC2_ADSS2_TS22 *((volatile unsigned int*)(0x424E4518UL)) -#define bFM3_ADC2_ADSS2_TS23 *((volatile unsigned int*)(0x424E451CUL)) -#define bFM3_ADC2_ADSS3_TS24 *((volatile unsigned int*)(0x424E4520UL)) -#define bFM3_ADC2_ADSS3_TS25 *((volatile unsigned int*)(0x424E4524UL)) -#define bFM3_ADC2_ADSS3_TS26 *((volatile unsigned int*)(0x424E4528UL)) -#define bFM3_ADC2_ADSS3_TS27 *((volatile unsigned int*)(0x424E452CUL)) -#define bFM3_ADC2_ADSS3_TS28 *((volatile unsigned int*)(0x424E4530UL)) -#define bFM3_ADC2_ADSS3_TS29 *((volatile unsigned int*)(0x424E4534UL)) -#define bFM3_ADC2_ADSS3_TS30 *((volatile unsigned int*)(0x424E4538UL)) -#define bFM3_ADC2_ADSS3_TS31 *((volatile unsigned int*)(0x424E453CUL)) -#define bFM3_ADC2_ADSS01_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS01_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS01_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS01_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS01_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS01_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS01_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS01_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS01_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS01_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS01_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS01_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS01_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS01_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS01_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS01_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADSS0_TS0 *((volatile unsigned int*)(0x424E4580UL)) -#define bFM3_ADC2_ADSS0_TS1 *((volatile unsigned int*)(0x424E4584UL)) -#define bFM3_ADC2_ADSS0_TS2 *((volatile unsigned int*)(0x424E4588UL)) -#define bFM3_ADC2_ADSS0_TS3 *((volatile unsigned int*)(0x424E458CUL)) -#define bFM3_ADC2_ADSS0_TS4 *((volatile unsigned int*)(0x424E4590UL)) -#define bFM3_ADC2_ADSS0_TS5 *((volatile unsigned int*)(0x424E4594UL)) -#define bFM3_ADC2_ADSS0_TS6 *((volatile unsigned int*)(0x424E4598UL)) -#define bFM3_ADC2_ADSS0_TS7 *((volatile unsigned int*)(0x424E459CUL)) -#define bFM3_ADC2_ADSS1_TS8 *((volatile unsigned int*)(0x424E45A0UL)) -#define bFM3_ADC2_ADSS1_TS9 *((volatile unsigned int*)(0x424E45A4UL)) -#define bFM3_ADC2_ADSS1_TS10 *((volatile unsigned int*)(0x424E45A8UL)) -#define bFM3_ADC2_ADSS1_TS11 *((volatile unsigned int*)(0x424E45ACUL)) -#define bFM3_ADC2_ADSS1_TS12 *((volatile unsigned int*)(0x424E45B0UL)) -#define bFM3_ADC2_ADSS1_TS13 *((volatile unsigned int*)(0x424E45B4UL)) -#define bFM3_ADC2_ADSS1_TS14 *((volatile unsigned int*)(0x424E45B8UL)) -#define bFM3_ADC2_ADSS1_TS15 *((volatile unsigned int*)(0x424E45BCUL)) -#define bFM3_ADC2_ADST01_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST01_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST01_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST01_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST01_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST01_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST01_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST01_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST01_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST01_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST01_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST01_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST01_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST01_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST01_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST01_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADST1_ST10 *((volatile unsigned int*)(0x424E4600UL)) -#define bFM3_ADC2_ADST1_ST11 *((volatile unsigned int*)(0x424E4604UL)) -#define bFM3_ADC2_ADST1_ST12 *((volatile unsigned int*)(0x424E4608UL)) -#define bFM3_ADC2_ADST1_ST13 *((volatile unsigned int*)(0x424E460CUL)) -#define bFM3_ADC2_ADST1_ST14 *((volatile unsigned int*)(0x424E4610UL)) -#define bFM3_ADC2_ADST1_STX10 *((volatile unsigned int*)(0x424E4614UL)) -#define bFM3_ADC2_ADST1_STX11 *((volatile unsigned int*)(0x424E4618UL)) -#define bFM3_ADC2_ADST1_STX12 *((volatile unsigned int*)(0x424E461CUL)) -#define bFM3_ADC2_ADST0_ST00 *((volatile unsigned int*)(0x424E4620UL)) -#define bFM3_ADC2_ADST0_ST01 *((volatile unsigned int*)(0x424E4624UL)) -#define bFM3_ADC2_ADST0_ST02 *((volatile unsigned int*)(0x424E4628UL)) -#define bFM3_ADC2_ADST0_ST03 *((volatile unsigned int*)(0x424E462CUL)) -#define bFM3_ADC2_ADST0_ST04 *((volatile unsigned int*)(0x424E4630UL)) -#define bFM3_ADC2_ADST0_STX00 *((volatile unsigned int*)(0x424E4634UL)) -#define bFM3_ADC2_ADST0_STX01 *((volatile unsigned int*)(0x424E4638UL)) -#define bFM3_ADC2_ADST0_STX02 *((volatile unsigned int*)(0x424E463CUL)) -#define bFM3_ADC2_ADCT_CT0 *((volatile unsigned int*)(0x424E4680UL)) -#define bFM3_ADC2_ADCT_CT1 *((volatile unsigned int*)(0x424E4684UL)) -#define bFM3_ADC2_ADCT_CT2 *((volatile unsigned int*)(0x424E4688UL)) -#define bFM3_ADC2_ADCT_CT3 *((volatile unsigned int*)(0x424E468CUL)) -#define bFM3_ADC2_ADCT_CT4 *((volatile unsigned int*)(0x424E4690UL)) -#define bFM3_ADC2_ADCT_CT5 *((volatile unsigned int*)(0x424E4694UL)) -#define bFM3_ADC2_ADCT_CT6 *((volatile unsigned int*)(0x424E4698UL)) -#define bFM3_ADC2_ADCT_CT7 *((volatile unsigned int*)(0x424E469CUL)) -#define bFM3_ADC2_PRTSL_PRTSL0 *((volatile unsigned int*)(0x424E4700UL)) -#define bFM3_ADC2_PRTSL_PRTSL1 *((volatile unsigned int*)(0x424E4704UL)) -#define bFM3_ADC2_PRTSL_PRTSL2 *((volatile unsigned int*)(0x424E4708UL)) -#define bFM3_ADC2_PRTSL_PRTSL3 *((volatile unsigned int*)(0x424E470CUL)) -#define bFM3_ADC2_SCTSL_SCTSL0 *((volatile unsigned int*)(0x424E4720UL)) -#define bFM3_ADC2_SCTSL_SCTSL1 *((volatile unsigned int*)(0x424E4724UL)) -#define bFM3_ADC2_SCTSL_SCTSL2 *((volatile unsigned int*)(0x424E4728UL)) -#define bFM3_ADC2_SCTSL_SCTSL3 *((volatile unsigned int*)(0x424E472CUL)) -#define bFM3_ADC2_ADCEN_ENBL *((volatile unsigned int*)(0x424E4780UL)) -#define bFM3_ADC2_ADCEN_READY *((volatile unsigned int*)(0x424E4784UL)) -#define bFM3_ADC2_ADCEN_CYCLSL0 *((volatile unsigned int*)(0x424E4790UL)) -#define bFM3_ADC2_ADCEN_CYCLSL1 *((volatile unsigned int*)(0x424E4794UL)) - -/* CR trimming registers */ -#define bFM3_CRTRIM_MCR_PSR_CSR0 *((volatile unsigned int*)(0x425C0000UL)) -#define bFM3_CRTRIM_MCR_PSR_CSR1 *((volatile unsigned int*)(0x425C0004UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD0 *((volatile unsigned int*)(0x425C0080UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD1 *((volatile unsigned int*)(0x425C0084UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD2 *((volatile unsigned int*)(0x425C0088UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD3 *((volatile unsigned int*)(0x425C008CUL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD4 *((volatile unsigned int*)(0x425C0090UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD5 *((volatile unsigned int*)(0x425C0094UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD6 *((volatile unsigned int*)(0x425C0098UL)) -#define bFM3_CRTRIM_MCR_FTRM_TRD7 *((volatile unsigned int*)(0x425C009CUL)) - -/* External interrupt registers */ -#define bFM3_EXTI_ENIR_EN0 *((volatile unsigned int*)(0x42600000UL)) -#define bFM3_EXTI_ENIR_EN1 *((volatile unsigned int*)(0x42600004UL)) -#define bFM3_EXTI_ENIR_EN2 *((volatile unsigned int*)(0x42600008UL)) -#define bFM3_EXTI_ENIR_EN3 *((volatile unsigned int*)(0x4260000CUL)) -#define bFM3_EXTI_ENIR_EN4 *((volatile unsigned int*)(0x42600010UL)) -#define bFM3_EXTI_ENIR_EN5 *((volatile unsigned int*)(0x42600014UL)) -#define bFM3_EXTI_ENIR_EN6 *((volatile unsigned int*)(0x42600018UL)) -#define bFM3_EXTI_ENIR_EN7 *((volatile unsigned int*)(0x4260001CUL)) -#define bFM3_EXTI_ENIR_EN8 *((volatile unsigned int*)(0x42600020UL)) -#define bFM3_EXTI_ENIR_EN9 *((volatile unsigned int*)(0x42600024UL)) -#define bFM3_EXTI_ENIR_EN10 *((volatile unsigned int*)(0x42600028UL)) -#define bFM3_EXTI_ENIR_EN11 *((volatile unsigned int*)(0x4260002CUL)) -#define bFM3_EXTI_ENIR_EN12 *((volatile unsigned int*)(0x42600030UL)) -#define bFM3_EXTI_ENIR_EN13 *((volatile unsigned int*)(0x42600034UL)) -#define bFM3_EXTI_ENIR_EN14 *((volatile unsigned int*)(0x42600038UL)) -#define bFM3_EXTI_ENIR_EN15 *((volatile unsigned int*)(0x4260003CUL)) -#define bFM3_EXTI_ENIR_EN16 *((volatile unsigned int*)(0x42600040UL)) -#define bFM3_EXTI_ENIR_EN17 *((volatile unsigned int*)(0x42600044UL)) -#define bFM3_EXTI_ENIR_EN18 *((volatile unsigned int*)(0x42600048UL)) -#define bFM3_EXTI_ENIR_EN19 *((volatile unsigned int*)(0x4260004CUL)) -#define bFM3_EXTI_ENIR_EN20 *((volatile unsigned int*)(0x42600050UL)) -#define bFM3_EXTI_ENIR_EN21 *((volatile unsigned int*)(0x42600054UL)) -#define bFM3_EXTI_ENIR_EN22 *((volatile unsigned int*)(0x42600058UL)) -#define bFM3_EXTI_ENIR_EN23 *((volatile unsigned int*)(0x4260005CUL)) -#define bFM3_EXTI_ENIR_EN24 *((volatile unsigned int*)(0x42600060UL)) -#define bFM3_EXTI_ENIR_EN25 *((volatile unsigned int*)(0x42600064UL)) -#define bFM3_EXTI_ENIR_EN26 *((volatile unsigned int*)(0x42600068UL)) -#define bFM3_EXTI_ENIR_EN27 *((volatile unsigned int*)(0x4260006CUL)) -#define bFM3_EXTI_ENIR_EN28 *((volatile unsigned int*)(0x42600070UL)) -#define bFM3_EXTI_ENIR_EN29 *((volatile unsigned int*)(0x42600074UL)) -#define bFM3_EXTI_ENIR_EN30 *((volatile unsigned int*)(0x42600078UL)) -#define bFM3_EXTI_ENIR_EN31 *((volatile unsigned int*)(0x4260007CUL)) -#define bFM3_EXTI_EIRR_ER0 *((volatile unsigned int*)(0x42600080UL)) -#define bFM3_EXTI_EIRR_ER1 *((volatile unsigned int*)(0x42600084UL)) -#define bFM3_EXTI_EIRR_ER2 *((volatile unsigned int*)(0x42600088UL)) -#define bFM3_EXTI_EIRR_ER3 *((volatile unsigned int*)(0x4260008CUL)) -#define bFM3_EXTI_EIRR_ER4 *((volatile unsigned int*)(0x42600090UL)) -#define bFM3_EXTI_EIRR_ER5 *((volatile unsigned int*)(0x42600094UL)) -#define bFM3_EXTI_EIRR_ER6 *((volatile unsigned int*)(0x42600098UL)) -#define bFM3_EXTI_EIRR_ER7 *((volatile unsigned int*)(0x4260009CUL)) -#define bFM3_EXTI_EIRR_ER8 *((volatile unsigned int*)(0x426000A0UL)) -#define bFM3_EXTI_EIRR_ER9 *((volatile unsigned int*)(0x426000A4UL)) -#define bFM3_EXTI_EIRR_ER10 *((volatile unsigned int*)(0x426000A8UL)) -#define bFM3_EXTI_EIRR_ER11 *((volatile unsigned int*)(0x426000ACUL)) -#define bFM3_EXTI_EIRR_ER12 *((volatile unsigned int*)(0x426000B0UL)) -#define bFM3_EXTI_EIRR_ER13 *((volatile unsigned int*)(0x426000B4UL)) -#define bFM3_EXTI_EIRR_ER14 *((volatile unsigned int*)(0x426000B8UL)) -#define bFM3_EXTI_EIRR_ER15 *((volatile unsigned int*)(0x426000BCUL)) -#define bFM3_EXTI_EIRR_ER16 *((volatile unsigned int*)(0x426000C0UL)) -#define bFM3_EXTI_EIRR_ER17 *((volatile unsigned int*)(0x426000C4UL)) -#define bFM3_EXTI_EIRR_ER18 *((volatile unsigned int*)(0x426000C8UL)) -#define bFM3_EXTI_EIRR_ER19 *((volatile unsigned int*)(0x426000CCUL)) -#define bFM3_EXTI_EIRR_ER20 *((volatile unsigned int*)(0x426000D0UL)) -#define bFM3_EXTI_EIRR_ER21 *((volatile unsigned int*)(0x426000D4UL)) -#define bFM3_EXTI_EIRR_ER22 *((volatile unsigned int*)(0x426000D8UL)) -#define bFM3_EXTI_EIRR_ER23 *((volatile unsigned int*)(0x426000DCUL)) -#define bFM3_EXTI_EIRR_ER24 *((volatile unsigned int*)(0x426000E0UL)) -#define bFM3_EXTI_EIRR_ER25 *((volatile unsigned int*)(0x426000E4UL)) -#define bFM3_EXTI_EIRR_ER26 *((volatile unsigned int*)(0x426000E8UL)) -#define bFM3_EXTI_EIRR_ER27 *((volatile unsigned int*)(0x426000ECUL)) -#define bFM3_EXTI_EIRR_ER28 *((volatile unsigned int*)(0x426000F0UL)) -#define bFM3_EXTI_EIRR_ER29 *((volatile unsigned int*)(0x426000F4UL)) -#define bFM3_EXTI_EIRR_ER30 *((volatile unsigned int*)(0x426000F8UL)) -#define bFM3_EXTI_EIRR_ER31 *((volatile unsigned int*)(0x426000FCUL)) -#define bFM3_EXTI_EICL_ECL0 *((volatile unsigned int*)(0x42600100UL)) -#define bFM3_EXTI_EICL_ECL1 *((volatile unsigned int*)(0x42600104UL)) -#define bFM3_EXTI_EICL_ECL2 *((volatile unsigned int*)(0x42600108UL)) -#define bFM3_EXTI_EICL_ECL3 *((volatile unsigned int*)(0x4260010CUL)) -#define bFM3_EXTI_EICL_ECL4 *((volatile unsigned int*)(0x42600110UL)) -#define bFM3_EXTI_EICL_ECL5 *((volatile unsigned int*)(0x42600114UL)) -#define bFM3_EXTI_EICL_ECL6 *((volatile unsigned int*)(0x42600118UL)) -#define bFM3_EXTI_EICL_ECL7 *((volatile unsigned int*)(0x4260011CUL)) -#define bFM3_EXTI_EICL_ECL8 *((volatile unsigned int*)(0x42600120UL)) -#define bFM3_EXTI_EICL_ECL9 *((volatile unsigned int*)(0x42600124UL)) -#define bFM3_EXTI_EICL_ECL10 *((volatile unsigned int*)(0x42600128UL)) -#define bFM3_EXTI_EICL_ECL11 *((volatile unsigned int*)(0x4260012CUL)) -#define bFM3_EXTI_EICL_ECL12 *((volatile unsigned int*)(0x42600130UL)) -#define bFM3_EXTI_EICL_ECL13 *((volatile unsigned int*)(0x42600134UL)) -#define bFM3_EXTI_EICL_ECL14 *((volatile unsigned int*)(0x42600138UL)) -#define bFM3_EXTI_EICL_ECL15 *((volatile unsigned int*)(0x4260013CUL)) -#define bFM3_EXTI_EICL_ECL16 *((volatile unsigned int*)(0x42600140UL)) -#define bFM3_EXTI_EICL_ECL17 *((volatile unsigned int*)(0x42600144UL)) -#define bFM3_EXTI_EICL_ECL18 *((volatile unsigned int*)(0x42600148UL)) -#define bFM3_EXTI_EICL_ECL19 *((volatile unsigned int*)(0x4260014CUL)) -#define bFM3_EXTI_EICL_ECL20 *((volatile unsigned int*)(0x42600150UL)) -#define bFM3_EXTI_EICL_ECL21 *((volatile unsigned int*)(0x42600154UL)) -#define bFM3_EXTI_EICL_ECL22 *((volatile unsigned int*)(0x42600158UL)) -#define bFM3_EXTI_EICL_ECL23 *((volatile unsigned int*)(0x4260015CUL)) -#define bFM3_EXTI_EICL_ECL24 *((volatile unsigned int*)(0x42600160UL)) -#define bFM3_EXTI_EICL_ECL25 *((volatile unsigned int*)(0x42600164UL)) -#define bFM3_EXTI_EICL_ECL26 *((volatile unsigned int*)(0x42600168UL)) -#define bFM3_EXTI_EICL_ECL27 *((volatile unsigned int*)(0x4260016CUL)) -#define bFM3_EXTI_EICL_ECL28 *((volatile unsigned int*)(0x42600170UL)) -#define bFM3_EXTI_EICL_ECL29 *((volatile unsigned int*)(0x42600174UL)) -#define bFM3_EXTI_EICL_ECL30 *((volatile unsigned int*)(0x42600178UL)) -#define bFM3_EXTI_EICL_ECL31 *((volatile unsigned int*)(0x4260017CUL)) -#define bFM3_EXTI_ELVR_LA0 *((volatile unsigned int*)(0x42600180UL)) -#define bFM3_EXTI_ELVR_LB0 *((volatile unsigned int*)(0x42600184UL)) -#define bFM3_EXTI_ELVR_LA1 *((volatile unsigned int*)(0x42600188UL)) -#define bFM3_EXTI_ELVR_LB1 *((volatile unsigned int*)(0x4260018CUL)) -#define bFM3_EXTI_ELVR_LA2 *((volatile unsigned int*)(0x42600190UL)) -#define bFM3_EXTI_ELVR_LB2 *((volatile unsigned int*)(0x42600194UL)) -#define bFM3_EXTI_ELVR_LA3 *((volatile unsigned int*)(0x42600198UL)) -#define bFM3_EXTI_ELVR_LB3 *((volatile unsigned int*)(0x4260019CUL)) -#define bFM3_EXTI_ELVR_LA4 *((volatile unsigned int*)(0x426001A0UL)) -#define bFM3_EXTI_ELVR_LB4 *((volatile unsigned int*)(0x426001A4UL)) -#define bFM3_EXTI_ELVR_LA5 *((volatile unsigned int*)(0x426001A8UL)) -#define bFM3_EXTI_ELVR_LB5 *((volatile unsigned int*)(0x426001ACUL)) -#define bFM3_EXTI_ELVR_LA6 *((volatile unsigned int*)(0x426001B0UL)) -#define bFM3_EXTI_ELVR_LB6 *((volatile unsigned int*)(0x426001B4UL)) -#define bFM3_EXTI_ELVR_LA7 *((volatile unsigned int*)(0x426001B8UL)) -#define bFM3_EXTI_ELVR_LB7 *((volatile unsigned int*)(0x426001BCUL)) -#define bFM3_EXTI_ELVR_LA8 *((volatile unsigned int*)(0x426001C0UL)) -#define bFM3_EXTI_ELVR_LB8 *((volatile unsigned int*)(0x426001C4UL)) -#define bFM3_EXTI_ELVR_LA9 *((volatile unsigned int*)(0x426001C8UL)) -#define bFM3_EXTI_ELVR_LB9 *((volatile unsigned int*)(0x426001CCUL)) -#define bFM3_EXTI_ELVR_LA10 *((volatile unsigned int*)(0x426001D0UL)) -#define bFM3_EXTI_ELVR_LB10 *((volatile unsigned int*)(0x426001D4UL)) -#define bFM3_EXTI_ELVR_LA11 *((volatile unsigned int*)(0x426001D8UL)) -#define bFM3_EXTI_ELVR_LB11 *((volatile unsigned int*)(0x426001DCUL)) -#define bFM3_EXTI_ELVR_LA12 *((volatile unsigned int*)(0x426001E0UL)) -#define bFM3_EXTI_ELVR_LB12 *((volatile unsigned int*)(0x426001E4UL)) -#define bFM3_EXTI_ELVR_LA13 *((volatile unsigned int*)(0x426001E8UL)) -#define bFM3_EXTI_ELVR_LB13 *((volatile unsigned int*)(0x426001ECUL)) -#define bFM3_EXTI_ELVR_LA14 *((volatile unsigned int*)(0x426001F0UL)) -#define bFM3_EXTI_ELVR_LB14 *((volatile unsigned int*)(0x426001F4UL)) -#define bFM3_EXTI_ELVR_LA15 *((volatile unsigned int*)(0x426001F8UL)) -#define bFM3_EXTI_ELVR_LB15 *((volatile unsigned int*)(0x426001FCUL)) -#define bFM3_EXTI_ELVR_LA16 *((volatile unsigned int*)(0x42600200UL)) -#define bFM3_EXTI_ELVR_LB16 *((volatile unsigned int*)(0x42600204UL)) -#define bFM3_EXTI_ELVR_LA17 *((volatile unsigned int*)(0x42600208UL)) -#define bFM3_EXTI_ELVR_LB17 *((volatile unsigned int*)(0x4260020CUL)) -#define bFM3_EXTI_ELVR_LA18 *((volatile unsigned int*)(0x42600210UL)) -#define bFM3_EXTI_ELVR_LB18 *((volatile unsigned int*)(0x42600214UL)) -#define bFM3_EXTI_ELVR_LA19 *((volatile unsigned int*)(0x42600218UL)) -#define bFM3_EXTI_ELVR_LB19 *((volatile unsigned int*)(0x4260021CUL)) -#define bFM3_EXTI_ELVR_LA20 *((volatile unsigned int*)(0x42600220UL)) -#define bFM3_EXTI_ELVR_LB20 *((volatile unsigned int*)(0x42600224UL)) -#define bFM3_EXTI_ELVR_LA21 *((volatile unsigned int*)(0x42600228UL)) -#define bFM3_EXTI_ELVR_LB21 *((volatile unsigned int*)(0x4260022CUL)) -#define bFM3_EXTI_ELVR_LA22 *((volatile unsigned int*)(0x42600230UL)) -#define bFM3_EXTI_ELVR_LB22 *((volatile unsigned int*)(0x42600234UL)) -#define bFM3_EXTI_ELVR_LA23 *((volatile unsigned int*)(0x42600238UL)) -#define bFM3_EXTI_ELVR_LB23 *((volatile unsigned int*)(0x4260023CUL)) -#define bFM3_EXTI_ELVR_LA24 *((volatile unsigned int*)(0x42600240UL)) -#define bFM3_EXTI_ELVR_LB24 *((volatile unsigned int*)(0x42600244UL)) -#define bFM3_EXTI_ELVR_LA25 *((volatile unsigned int*)(0x42600248UL)) -#define bFM3_EXTI_ELVR_LB25 *((volatile unsigned int*)(0x4260024CUL)) -#define bFM3_EXTI_ELVR_LA26 *((volatile unsigned int*)(0x42600250UL)) -#define bFM3_EXTI_ELVR_LB26 *((volatile unsigned int*)(0x42600254UL)) -#define bFM3_EXTI_ELVR_LA27 *((volatile unsigned int*)(0x42600258UL)) -#define bFM3_EXTI_ELVR_LB27 *((volatile unsigned int*)(0x4260025CUL)) -#define bFM3_EXTI_ELVR_LA28 *((volatile unsigned int*)(0x42600260UL)) -#define bFM3_EXTI_ELVR_LB28 *((volatile unsigned int*)(0x42600264UL)) -#define bFM3_EXTI_ELVR_LA29 *((volatile unsigned int*)(0x42600268UL)) -#define bFM3_EXTI_ELVR_LB29 *((volatile unsigned int*)(0x4260026CUL)) -#define bFM3_EXTI_ELVR_LA30 *((volatile unsigned int*)(0x42600270UL)) -#define bFM3_EXTI_ELVR_LB30 *((volatile unsigned int*)(0x42600274UL)) -#define bFM3_EXTI_ELVR_LA31 *((volatile unsigned int*)(0x42600278UL)) -#define bFM3_EXTI_ELVR_LB31 *((volatile unsigned int*)(0x4260027CUL)) -#define bFM3_EXTI_NMIRR_NR0 *((volatile unsigned int*)(0x42600280UL)) -#define bFM3_EXTI_NMICL_NCL0 *((volatile unsigned int*)(0x42600300UL)) - -/* Interrupt request read registers */ -#define bFM3_INTREQ_DRQSEL_DRQSEL0 *((volatile unsigned int*)(0x42620000UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL1 *((volatile unsigned int*)(0x42620004UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL2 *((volatile unsigned int*)(0x42620008UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL3 *((volatile unsigned int*)(0x4262000CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL4 *((volatile unsigned int*)(0x42620010UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL5 *((volatile unsigned int*)(0x42620014UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL6 *((volatile unsigned int*)(0x42620018UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL7 *((volatile unsigned int*)(0x4262001CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL8 *((volatile unsigned int*)(0x42620020UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL9 *((volatile unsigned int*)(0x42620024UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL10 *((volatile unsigned int*)(0x42620028UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL11 *((volatile unsigned int*)(0x4262002CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL12 *((volatile unsigned int*)(0x42620030UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL13 *((volatile unsigned int*)(0x42620034UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL14 *((volatile unsigned int*)(0x42620038UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL15 *((volatile unsigned int*)(0x4262003CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL16 *((volatile unsigned int*)(0x42620040UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL17 *((volatile unsigned int*)(0x42620044UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL18 *((volatile unsigned int*)(0x42620048UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL19 *((volatile unsigned int*)(0x4262004CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL20 *((volatile unsigned int*)(0x42620050UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL21 *((volatile unsigned int*)(0x42620054UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL22 *((volatile unsigned int*)(0x42620058UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL23 *((volatile unsigned int*)(0x4262005CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL24 *((volatile unsigned int*)(0x42620060UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL25 *((volatile unsigned int*)(0x42620064UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL26 *((volatile unsigned int*)(0x42620068UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL27 *((volatile unsigned int*)(0x4262006CUL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL28 *((volatile unsigned int*)(0x42620070UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL29 *((volatile unsigned int*)(0x42620074UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL30 *((volatile unsigned int*)(0x42620078UL)) -#define bFM3_INTREQ_DRQSEL_DRQSEL31 *((volatile unsigned int*)(0x4262007CUL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS0 *((volatile unsigned char*)(0x42620160UL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS1 *((volatile unsigned char*)(0x42620164UL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS2 *((volatile unsigned char*)(0x42620168UL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS3 *((volatile unsigned char*)(0x4262016CUL)) -#define bFM3_INTREQ_ODDPKS_ODDPKS4 *((volatile unsigned char*)(0x42620170UL)) -#define bFM3_INTREQ_EXC02MON_NMI *((volatile unsigned int*)(0x42620200UL)) -#define bFM3_INTREQ_EXC02MON_HWINT *((volatile unsigned int*)(0x42620204UL)) -#define bFM3_INTREQ_IRQ00MON_FCSINT *((volatile unsigned int*)(0x42620280UL)) -#define bFM3_INTREQ_IRQ01MON_SWWDTINT *((volatile unsigned int*)(0x42620300UL)) -#define bFM3_INTREQ_IRQ02MON_LVDINT *((volatile unsigned int*)(0x42620380UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT0 *((volatile unsigned int*)(0x42620400UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT1 *((volatile unsigned int*)(0x42620404UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT2 *((volatile unsigned int*)(0x42620408UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE0INT3 *((volatile unsigned int*)(0x4262040CUL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT0 *((volatile unsigned int*)(0x42620410UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT1 *((volatile unsigned int*)(0x42620414UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT2 *((volatile unsigned int*)(0x42620418UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE1INT3 *((volatile unsigned int*)(0x4262041CUL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT0 *((volatile unsigned int*)(0x42620420UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT1 *((volatile unsigned int*)(0x42620424UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT2 *((volatile unsigned int*)(0x42620428UL)) -#define bFM3_INTREQ_IRQ03MON_WAVE2INT3 *((volatile unsigned int*)(0x4262042CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT0 *((volatile unsigned int*)(0x42620480UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT1 *((volatile unsigned int*)(0x42620484UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT2 *((volatile unsigned int*)(0x42620488UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT3 *((volatile unsigned int*)(0x4262048CUL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT4 *((volatile unsigned int*)(0x42620490UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT5 *((volatile unsigned int*)(0x42620494UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT6 *((volatile unsigned int*)(0x42620498UL)) -#define bFM3_INTREQ_IRQ04MON_EXTINT7 *((volatile unsigned int*)(0x4262049CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT0 *((volatile unsigned int*)(0x42620500UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT1 *((volatile unsigned int*)(0x42620504UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT2 *((volatile unsigned int*)(0x42620508UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT3 *((volatile unsigned int*)(0x4262050CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT4 *((volatile unsigned int*)(0x42620510UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT5 *((volatile unsigned int*)(0x42620514UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT6 *((volatile unsigned int*)(0x42620518UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT7 *((volatile unsigned int*)(0x4262051CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT8 *((volatile unsigned int*)(0x42620520UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT9 *((volatile unsigned int*)(0x42620524UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT10 *((volatile unsigned int*)(0x42620528UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT11 *((volatile unsigned int*)(0x4262052CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT12 *((volatile unsigned int*)(0x42620530UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT13 *((volatile unsigned int*)(0x42620534UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT14 *((volatile unsigned int*)(0x42620538UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT15 *((volatile unsigned int*)(0x4262053CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT16 *((volatile unsigned int*)(0x42620540UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT17 *((volatile unsigned int*)(0x42620544UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT18 *((volatile unsigned int*)(0x42620548UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT19 *((volatile unsigned int*)(0x4262054CUL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT20 *((volatile unsigned int*)(0x42620550UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT21 *((volatile unsigned int*)(0x42620554UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT22 *((volatile unsigned int*)(0x42620558UL)) -#define bFM3_INTREQ_IRQ05MON_EXTINT23 *((volatile unsigned int*)(0x4262055CUL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT1 *((volatile unsigned int*)(0x42620580UL)) -#define bFM3_INTREQ_IRQ06MON_TIMINT2 *((volatile unsigned int*)(0x42620584UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT0 *((volatile unsigned int*)(0x42620588UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT1 *((volatile unsigned int*)(0x4262058CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT2 *((volatile unsigned int*)(0x42620590UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT3 *((volatile unsigned int*)(0x42620594UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT4 *((volatile unsigned int*)(0x42620598UL)) -#define bFM3_INTREQ_IRQ06MON_QUD0INT5 *((volatile unsigned int*)(0x4262059CUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT0 *((volatile unsigned int*)(0x426205A0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT1 *((volatile unsigned int*)(0x426205A4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT2 *((volatile unsigned int*)(0x426205A8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT3 *((volatile unsigned int*)(0x426205ACUL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT4 *((volatile unsigned int*)(0x426205B0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD1INT5 *((volatile unsigned int*)(0x426205B4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT0 *((volatile unsigned int*)(0x426205B8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT1 *((volatile unsigned int*)(0x426205BCUL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT2 *((volatile unsigned int*)(0x426205C0UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT3 *((volatile unsigned int*)(0x426205C4UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT4 *((volatile unsigned int*)(0x426205C8UL)) -#define bFM3_INTREQ_IRQ06MON_QUD2INT5 *((volatile unsigned int*)(0x426205CCUL)) -#define bFM3_INTREQ_IRQ07MON_FMSINT *((volatile unsigned int*)(0x42620600UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT0 *((volatile unsigned int*)(0x42620680UL)) -#define bFM3_INTREQ_IRQ08MON_MFSINT1 *((volatile unsigned int*)(0x42620684UL)) -#define bFM3_INTREQ_IRQ09MON_FMSINT *((volatile unsigned int*)(0x42620700UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT0 *((volatile unsigned int*)(0x42620780UL)) -#define bFM3_INTREQ_IRQ10MON_MFSINT1 *((volatile unsigned int*)(0x42620784UL)) -#define bFM3_INTREQ_IRQ11MON_FMSINT *((volatile unsigned int*)(0x42620800UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT0 *((volatile unsigned int*)(0x42620880UL)) -#define bFM3_INTREQ_IRQ12MON_MFSINT1 *((volatile unsigned int*)(0x42620884UL)) -#define bFM3_INTREQ_IRQ13MON_FMSINT *((volatile unsigned int*)(0x42620900UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT0 *((volatile unsigned int*)(0x42620980UL)) -#define bFM3_INTREQ_IRQ14MON_MFSINT1 *((volatile unsigned int*)(0x42620984UL)) -#define bFM3_INTREQ_IRQ15MON_FMSINT *((volatile unsigned int*)(0x42620A00UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT0 *((volatile unsigned int*)(0x42620A80UL)) -#define bFM3_INTREQ_IRQ16MON_MFSINT1 *((volatile unsigned int*)(0x42620A84UL)) -#define bFM3_INTREQ_IRQ17MON_FMSINT *((volatile unsigned int*)(0x42620B00UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT0 *((volatile unsigned int*)(0x42620B80UL)) -#define bFM3_INTREQ_IRQ18MON_MFSINT1 *((volatile unsigned int*)(0x42620B84UL)) -#define bFM3_INTREQ_IRQ19MON_FMSINT *((volatile unsigned int*)(0x42620C00UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT0 *((volatile unsigned int*)(0x42620C80UL)) -#define bFM3_INTREQ_IRQ20MON_MFSINT1 *((volatile unsigned int*)(0x42620C84UL)) -#define bFM3_INTREQ_IRQ21MON_FMSINT *((volatile unsigned int*)(0x42620D00UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT0 *((volatile unsigned int*)(0x42620D80UL)) -#define bFM3_INTREQ_IRQ22MON_MFSINT1 *((volatile unsigned int*)(0x42620D84UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT0 *((volatile unsigned int*)(0x42620E00UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT1 *((volatile unsigned int*)(0x42620E04UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT2 *((volatile unsigned int*)(0x42620E08UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT3 *((volatile unsigned int*)(0x42620E0CUL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT4 *((volatile unsigned int*)(0x42620E10UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT5 *((volatile unsigned int*)(0x42620E14UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT6 *((volatile unsigned int*)(0x42620E18UL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT7 *((volatile unsigned int*)(0x42620E1CUL)) -#define bFM3_INTREQ_IRQ23MON_PPGINT8 *((volatile unsigned int*)(0x42620E20UL)) -#define bFM3_INTREQ_IRQ24MON_MOSCINT *((volatile unsigned int*)(0x42620E80UL)) -#define bFM3_INTREQ_IRQ24MON_SOSCINT *((volatile unsigned int*)(0x42620E84UL)) -#define bFM3_INTREQ_IRQ24MON_MPLLINT *((volatile unsigned int*)(0x42620E88UL)) -#define bFM3_INTREQ_IRQ24MON_UPLLINT *((volatile unsigned int*)(0x42620E8CUL)) -#define bFM3_INTREQ_IRQ24MON_WCINT *((volatile unsigned int*)(0x42620E90UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT0 *((volatile unsigned int*)(0x42620F00UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT1 *((volatile unsigned int*)(0x42620F04UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT2 *((volatile unsigned int*)(0x42620F08UL)) -#define bFM3_INTREQ_IRQ25MON_ADCINT3 *((volatile unsigned int*)(0x42620F0CUL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT0 *((volatile unsigned int*)(0x42620F80UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT1 *((volatile unsigned int*)(0x42620F84UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT2 *((volatile unsigned int*)(0x42620F88UL)) -#define bFM3_INTREQ_IRQ26MON_ADCINT3 *((volatile unsigned int*)(0x42620F8CUL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT0 *((volatile unsigned int*)(0x42621000UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT1 *((volatile unsigned int*)(0x42621004UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT2 *((volatile unsigned int*)(0x42621008UL)) -#define bFM3_INTREQ_IRQ27MON_ADCINT3 *((volatile unsigned int*)(0x4262100CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT0 *((volatile unsigned int*)(0x42621080UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT1 *((volatile unsigned int*)(0x42621084UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT2 *((volatile unsigned int*)(0x42621088UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT3 *((volatile unsigned int*)(0x4262108CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT4 *((volatile unsigned int*)(0x42621090UL)) -#define bFM3_INTREQ_IRQ28MON_FRT0INT5 *((volatile unsigned int*)(0x42621094UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT0 *((volatile unsigned int*)(0x42621098UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT1 *((volatile unsigned int*)(0x4262109CUL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT2 *((volatile unsigned int*)(0x426210A0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT3 *((volatile unsigned int*)(0x426210A4UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT4 *((volatile unsigned int*)(0x426210A8UL)) -#define bFM3_INTREQ_IRQ28MON_FRT1INT5 *((volatile unsigned int*)(0x426210ACUL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT0 *((volatile unsigned int*)(0x426210B0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT1 *((volatile unsigned int*)(0x426210B4UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT2 *((volatile unsigned int*)(0x426210B8UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT3 *((volatile unsigned int*)(0x426210BCUL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT4 *((volatile unsigned int*)(0x426210C0UL)) -#define bFM3_INTREQ_IRQ28MON_FRT2INT5 *((volatile unsigned int*)(0x426210C4UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT0 *((volatile unsigned int*)(0x42621100UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT1 *((volatile unsigned int*)(0x42621104UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT2 *((volatile unsigned int*)(0x42621108UL)) -#define bFM3_INTREQ_IRQ29MON_ICU0INT3 *((volatile unsigned int*)(0x4262110CUL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT0 *((volatile unsigned int*)(0x42621110UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT1 *((volatile unsigned int*)(0x42621114UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT2 *((volatile unsigned int*)(0x42621118UL)) -#define bFM3_INTREQ_IRQ29MON_ICU1INT3 *((volatile unsigned int*)(0x4262111CUL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT0 *((volatile unsigned int*)(0x42621120UL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT1 *((volatile unsigned int*)(0x42621124UL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT2 *((volatile unsigned int*)(0x42621128UL)) -#define bFM3_INTREQ_IRQ29MON_ICU2INT3 *((volatile unsigned int*)(0x4262112CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT0 *((volatile unsigned int*)(0x42621180UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT1 *((volatile unsigned int*)(0x42621184UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT2 *((volatile unsigned int*)(0x42621188UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT3 *((volatile unsigned int*)(0x4262118CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT4 *((volatile unsigned int*)(0x42621190UL)) -#define bFM3_INTREQ_IRQ30MON_OCU0INT5 *((volatile unsigned int*)(0x42621194UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT0 *((volatile unsigned int*)(0x42621198UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT1 *((volatile unsigned int*)(0x4262119CUL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT2 *((volatile unsigned int*)(0x426211A0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT3 *((volatile unsigned int*)(0x426211A4UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT4 *((volatile unsigned int*)(0x426211A8UL)) -#define bFM3_INTREQ_IRQ30MON_OCU1INT5 *((volatile unsigned int*)(0x426211ACUL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT0 *((volatile unsigned int*)(0x426211B0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT1 *((volatile unsigned int*)(0x426211B4UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT2 *((volatile unsigned int*)(0x426211B8UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT3 *((volatile unsigned int*)(0x426211BCUL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT4 *((volatile unsigned int*)(0x426211C0UL)) -#define bFM3_INTREQ_IRQ30MON_OCU2INT5 *((volatile unsigned int*)(0x426211C4UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT0 *((volatile unsigned int*)(0x42621200UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT1 *((volatile unsigned int*)(0x42621204UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT2 *((volatile unsigned int*)(0x42621208UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT3 *((volatile unsigned int*)(0x4262120CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT4 *((volatile unsigned int*)(0x42621210UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT5 *((volatile unsigned int*)(0x42621214UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT6 *((volatile unsigned int*)(0x42621218UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT7 *((volatile unsigned int*)(0x4262121CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT8 *((volatile unsigned int*)(0x42621220UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT9 *((volatile unsigned int*)(0x42621224UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT10 *((volatile unsigned int*)(0x42621228UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT11 *((volatile unsigned int*)(0x4262122CUL)) -#define bFM3_INTREQ_IRQ31MON_BTINT12 *((volatile unsigned int*)(0x42621230UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT13 *((volatile unsigned int*)(0x42621234UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT14 *((volatile unsigned int*)(0x42621238UL)) -#define bFM3_INTREQ_IRQ31MON_BTINT15 *((volatile unsigned int*)(0x4262123CUL)) -#define bFM3_INTREQ_IRQ32MON_MAC0SBD *((volatile unsigned int*)(0x42621284UL)) -#define bFM3_INTREQ_IRQ32MON_MAC0PMI *((volatile unsigned int*)(0x42621288UL)) -#define bFM3_INTREQ_IRQ32MON_MAC0LPI *((volatile unsigned int*)(0x4262128CUL)) -#define bFM3_INTREQ_IRQ33MON_MAC1SBD *((volatile unsigned int*)(0x42621304UL)) -#define bFM3_INTREQ_IRQ33MON_MAC1PMI *((volatile unsigned int*)(0x42621308UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT0 *((volatile unsigned int*)(0x42621380UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT1 *((volatile unsigned int*)(0x42621384UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT2 *((volatile unsigned int*)(0x42621388UL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT3 *((volatile unsigned int*)(0x4262138CUL)) -#define bFM3_INTREQ_IRQ34MON_USB0INT4 *((volatile unsigned int*)(0x42621390UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT0 *((volatile unsigned int*)(0x42621400UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT1 *((volatile unsigned int*)(0x42621404UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT2 *((volatile unsigned int*)(0x42621408UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT3 *((volatile unsigned int*)(0x4262140CUL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT4 *((volatile unsigned int*)(0x42621410UL)) -#define bFM3_INTREQ_IRQ35MON_USB0INT5 *((volatile unsigned int*)(0x42621414UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT0 *((volatile unsigned int*)(0x42621480UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT1 *((volatile unsigned int*)(0x42621484UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT2 *((volatile unsigned int*)(0x42621488UL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT3 *((volatile unsigned int*)(0x4262148CUL)) -#define bFM3_INTREQ_IRQ36MON_USB1INT4 *((volatile unsigned int*)(0x42621490UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT0 *((volatile unsigned int*)(0x42621500UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT1 *((volatile unsigned int*)(0x42621504UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT2 *((volatile unsigned int*)(0x42621508UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT3 *((volatile unsigned int*)(0x4262150CUL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT4 *((volatile unsigned int*)(0x42621510UL)) -#define bFM3_INTREQ_IRQ37MON_USB1INT5 *((volatile unsigned int*)(0x42621514UL)) -#define bFM3_INTREQ_IRQ38MON_DMAINT *((volatile unsigned int*)(0x42621580UL)) -#define bFM3_INTREQ_IRQ39MON_DMAINT *((volatile unsigned int*)(0x42621600UL)) -#define bFM3_INTREQ_IRQ40MON_DMAINT *((volatile unsigned int*)(0x42621680UL)) -#define bFM3_INTREQ_IRQ41MON_DMAINT *((volatile unsigned int*)(0x42621700UL)) -#define bFM3_INTREQ_IRQ42MON_DMAINT *((volatile unsigned int*)(0x42621780UL)) -#define bFM3_INTREQ_IRQ43MON_DMAINT *((volatile unsigned int*)(0x42621800UL)) -#define bFM3_INTREQ_IRQ44MON_DMAINT *((volatile unsigned int*)(0x42621880UL)) -#define bFM3_INTREQ_IRQ45MON_DMAINT *((volatile unsigned int*)(0x42621900UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT0 *((volatile unsigned int*)(0x42621980UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT1 *((volatile unsigned int*)(0x42621984UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT2 *((volatile unsigned int*)(0x42621988UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT3 *((volatile unsigned int*)(0x4262198CUL)) -#define bFM3_INTREQ_IRQ46MON_BTINT4 *((volatile unsigned int*)(0x42621990UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT5 *((volatile unsigned int*)(0x42621994UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT6 *((volatile unsigned int*)(0x42621998UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT7 *((volatile unsigned int*)(0x4262199CUL)) -#define bFM3_INTREQ_IRQ46MON_BTINT8 *((volatile unsigned int*)(0x426219A0UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT9 *((volatile unsigned int*)(0x426219A4UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT10 *((volatile unsigned int*)(0x426219A8UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT11 *((volatile unsigned int*)(0x426219ACUL)) -#define bFM3_INTREQ_IRQ46MON_BTINT12 *((volatile unsigned int*)(0x426219B0UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT13 *((volatile unsigned int*)(0x426219B4UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT14 *((volatile unsigned int*)(0x426219B8UL)) -#define bFM3_INTREQ_IRQ46MON_BTINT15 *((volatile unsigned int*)(0x426219BCUL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL10 *((volatile unsigned int*)(0x42624000UL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL11 *((volatile unsigned int*)(0x42624004UL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL12 *((volatile unsigned int*)(0x42624008UL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL13 *((volatile unsigned int*)(0x4262400CUL)) -#define bFM3_INTREQ_DRQSEL1_DRQSEL14 *((volatile unsigned int*)(0x42624010UL)) -#define bFM3_INTREQ_DQESEL_ESEL100 *((volatile unsigned int*)(0x42624080UL)) -#define bFM3_INTREQ_DQESEL_ESEL101 *((volatile unsigned int*)(0x42624084UL)) -#define bFM3_INTREQ_DQESEL_ESEL102 *((volatile unsigned int*)(0x42624088UL)) -#define bFM3_INTREQ_DQESEL_ESEL103 *((volatile unsigned int*)(0x4262408CUL)) -#define bFM3_INTREQ_DQESEL_ESEL110 *((volatile unsigned int*)(0x42624090UL)) -#define bFM3_INTREQ_DQESEL_ESEL111 *((volatile unsigned int*)(0x42624094UL)) -#define bFM3_INTREQ_DQESEL_ESEL112 *((volatile unsigned int*)(0x42624098UL)) -#define bFM3_INTREQ_DQESEL_ESEL113 *((volatile unsigned int*)(0x4262409CUL)) -#define bFM3_INTREQ_DQESEL_ESEL240 *((volatile unsigned int*)(0x426240A0UL)) -#define bFM3_INTREQ_DQESEL_ESEL241 *((volatile unsigned int*)(0x426240A4UL)) -#define bFM3_INTREQ_DQESEL_ESEL242 *((volatile unsigned int*)(0x426240A8UL)) -#define bFM3_INTREQ_DQESEL_ESEL243 *((volatile unsigned int*)(0x426240ACUL)) -#define bFM3_INTREQ_DQESEL_ESEL250 *((volatile unsigned int*)(0x426240B0UL)) -#define bFM3_INTREQ_DQESEL_ESEL251 *((volatile unsigned int*)(0x426240B4UL)) -#define bFM3_INTREQ_DQESEL_ESEL252 *((volatile unsigned int*)(0x426240B8UL)) -#define bFM3_INTREQ_DQESEL_ESEL253 *((volatile unsigned int*)(0x426240BCUL)) -#define bFM3_INTREQ_DQESEL_ESEL260 *((volatile unsigned int*)(0x426240C0UL)) -#define bFM3_INTREQ_DQESEL_ESEL261 *((volatile unsigned int*)(0x426240C4UL)) -#define bFM3_INTREQ_DQESEL_ESEL262 *((volatile unsigned int*)(0x426240C8UL)) -#define bFM3_INTREQ_DQESEL_ESEL263 *((volatile unsigned int*)(0x426240CCUL)) -#define bFM3_INTREQ_DQESEL_ESEL270 *((volatile unsigned int*)(0x426240D0UL)) -#define bFM3_INTREQ_DQESEL_ESEL271 *((volatile unsigned int*)(0x426240D4UL)) -#define bFM3_INTREQ_DQESEL_ESEL272 *((volatile unsigned int*)(0x426240D8UL)) -#define bFM3_INTREQ_DQESEL_ESEL273 *((volatile unsigned int*)(0x426240DCUL)) -#define bFM3_INTREQ_DQESEL_ESEL300 *((volatile unsigned int*)(0x426240E0UL)) -#define bFM3_INTREQ_DQESEL_ESEL301 *((volatile unsigned int*)(0x426240E4UL)) -#define bFM3_INTREQ_DQESEL_ESEL302 *((volatile unsigned int*)(0x426240E8UL)) -#define bFM3_INTREQ_DQESEL_ESEL303 *((volatile unsigned int*)(0x426240ECUL)) -#define bFM3_INTREQ_DQESEL_ESEL310 *((volatile unsigned int*)(0x426240F0UL)) -#define bFM3_INTREQ_DQESEL_ESEL311 *((volatile unsigned int*)(0x426240F4UL)) -#define bFM3_INTREQ_DQESEL_ESEL312 *((volatile unsigned int*)(0x426240F8UL)) -#define bFM3_INTREQ_DQESEL_ESEL313 *((volatile unsigned int*)(0x426240FCUL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS10 *((volatile unsigned char*)(0x426241E0UL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS11 *((volatile unsigned char*)(0x426241E4UL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS12 *((volatile unsigned char*)(0x426241E8UL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS13 *((volatile unsigned char*)(0x426241ECUL)) -#define bFM3_INTREQ_ODDPKS1_ODDPKS14 *((volatile unsigned char*)(0x426241F0UL)) - -/* General purpose I/O registers */ -#define bFM3_GPIO_PFR0_P0 *((volatile unsigned int*)(0x42660000UL)) -#define bFM3_GPIO_PFR0_P1 *((volatile unsigned int*)(0x42660004UL)) -#define bFM3_GPIO_PFR0_P2 *((volatile unsigned int*)(0x42660008UL)) -#define bFM3_GPIO_PFR0_P3 *((volatile unsigned int*)(0x4266000CUL)) -#define bFM3_GPIO_PFR0_P4 *((volatile unsigned int*)(0x42660010UL)) -#define bFM3_GPIO_PFR0_P5 *((volatile unsigned int*)(0x42660014UL)) -#define bFM3_GPIO_PFR0_P6 *((volatile unsigned int*)(0x42660018UL)) -#define bFM3_GPIO_PFR0_P7 *((volatile unsigned int*)(0x4266001CUL)) -#define bFM3_GPIO_PFR0_P8 *((volatile unsigned int*)(0x42660020UL)) -#define bFM3_GPIO_PFR0_P9 *((volatile unsigned int*)(0x42660024UL)) -#define bFM3_GPIO_PFR1_P0 *((volatile unsigned int*)(0x42660080UL)) -#define bFM3_GPIO_PFR1_P1 *((volatile unsigned int*)(0x42660084UL)) -#define bFM3_GPIO_PFR1_P2 *((volatile unsigned int*)(0x42660088UL)) -#define bFM3_GPIO_PFR1_P3 *((volatile unsigned int*)(0x4266008CUL)) -#define bFM3_GPIO_PFR1_P4 *((volatile unsigned int*)(0x42660090UL)) -#define bFM3_GPIO_PFR1_P5 *((volatile unsigned int*)(0x42660094UL)) -#define bFM3_GPIO_PFR1_P6 *((volatile unsigned int*)(0x42660098UL)) -#define bFM3_GPIO_PFR1_P7 *((volatile unsigned int*)(0x4266009CUL)) -#define bFM3_GPIO_PFR1_P8 *((volatile unsigned int*)(0x426600A0UL)) -#define bFM3_GPIO_PFR1_P9 *((volatile unsigned int*)(0x426600A4UL)) -#define bFM3_GPIO_PFR1_PA *((volatile unsigned int*)(0x426600A8UL)) -#define bFM3_GPIO_PFR1_PB *((volatile unsigned int*)(0x426600ACUL)) -#define bFM3_GPIO_PFR1_PC *((volatile unsigned int*)(0x426600B0UL)) -#define bFM3_GPIO_PFR1_PD *((volatile unsigned int*)(0x426600B4UL)) -#define bFM3_GPIO_PFR1_PE *((volatile unsigned int*)(0x426600B8UL)) -#define bFM3_GPIO_PFR1_PF *((volatile unsigned int*)(0x426600BCUL)) -#define bFM3_GPIO_PFR2_P0 *((volatile unsigned int*)(0x42660100UL)) -#define bFM3_GPIO_PFR2_P1 *((volatile unsigned int*)(0x42660104UL)) -#define bFM3_GPIO_PFR2_P2 *((volatile unsigned int*)(0x42660108UL)) -#define bFM3_GPIO_PFR2_P3 *((volatile unsigned int*)(0x4266010CUL)) -#define bFM3_GPIO_PFR2_P4 *((volatile unsigned int*)(0x42660110UL)) -#define bFM3_GPIO_PFR2_P5 *((volatile unsigned int*)(0x42660114UL)) -#define bFM3_GPIO_PFR2_P6 *((volatile unsigned int*)(0x42660118UL)) -#define bFM3_GPIO_PFR2_P7 *((volatile unsigned int*)(0x4266011CUL)) -#define bFM3_GPIO_PFR2_P8 *((volatile unsigned int*)(0x42660120UL)) -#define bFM3_GPIO_PFR2_P9 *((volatile unsigned int*)(0x42660124UL)) -#define bFM3_GPIO_PFR3_P0 *((volatile unsigned int*)(0x42660180UL)) -#define bFM3_GPIO_PFR3_P1 *((volatile unsigned int*)(0x42660184UL)) -#define bFM3_GPIO_PFR3_P2 *((volatile unsigned int*)(0x42660188UL)) -#define bFM3_GPIO_PFR3_P3 *((volatile unsigned int*)(0x4266018CUL)) -#define bFM3_GPIO_PFR3_P4 *((volatile unsigned int*)(0x42660190UL)) -#define bFM3_GPIO_PFR3_P5 *((volatile unsigned int*)(0x42660194UL)) -#define bFM3_GPIO_PFR3_P6 *((volatile unsigned int*)(0x42660198UL)) -#define bFM3_GPIO_PFR3_P7 *((volatile unsigned int*)(0x4266019CUL)) -#define bFM3_GPIO_PFR3_P8 *((volatile unsigned int*)(0x426601A0UL)) -#define bFM3_GPIO_PFR3_P9 *((volatile unsigned int*)(0x426601A4UL)) -#define bFM3_GPIO_PFR3_PA *((volatile unsigned int*)(0x426601A8UL)) -#define bFM3_GPIO_PFR3_PB *((volatile unsigned int*)(0x426601ACUL)) -#define bFM3_GPIO_PFR3_PC *((volatile unsigned int*)(0x426601B0UL)) -#define bFM3_GPIO_PFR3_PD *((volatile unsigned int*)(0x426601B4UL)) -#define bFM3_GPIO_PFR3_PE *((volatile unsigned int*)(0x426601B8UL)) -#define bFM3_GPIO_PFR3_PF *((volatile unsigned int*)(0x426601BCUL)) -#define bFM3_GPIO_PFR4_P0 *((volatile unsigned int*)(0x42660200UL)) -#define bFM3_GPIO_PFR4_P1 *((volatile unsigned int*)(0x42660204UL)) -#define bFM3_GPIO_PFR4_P2 *((volatile unsigned int*)(0x42660208UL)) -#define bFM3_GPIO_PFR4_P3 *((volatile unsigned int*)(0x4266020CUL)) -#define bFM3_GPIO_PFR4_P4 *((volatile unsigned int*)(0x42660210UL)) -#define bFM3_GPIO_PFR4_P5 *((volatile unsigned int*)(0x42660214UL)) -#define bFM3_GPIO_PFR4_P6 *((volatile unsigned int*)(0x42660218UL)) -#define bFM3_GPIO_PFR4_P7 *((volatile unsigned int*)(0x4266021CUL)) -#define bFM3_GPIO_PFR4_P8 *((volatile unsigned int*)(0x42660220UL)) -#define bFM3_GPIO_PFR4_P9 *((volatile unsigned int*)(0x42660224UL)) -#define bFM3_GPIO_PFR4_PA *((volatile unsigned int*)(0x42660228UL)) -#define bFM3_GPIO_PFR4_PB *((volatile unsigned int*)(0x4266022CUL)) -#define bFM3_GPIO_PFR4_PC *((volatile unsigned int*)(0x42660230UL)) -#define bFM3_GPIO_PFR4_PD *((volatile unsigned int*)(0x42660234UL)) -#define bFM3_GPIO_PFR4_PE *((volatile unsigned int*)(0x42660238UL)) -#define bFM3_GPIO_PFR5_P0 *((volatile unsigned int*)(0x42660280UL)) -#define bFM3_GPIO_PFR5_P1 *((volatile unsigned int*)(0x42660284UL)) -#define bFM3_GPIO_PFR5_P2 *((volatile unsigned int*)(0x42660288UL)) -#define bFM3_GPIO_PFR5_P3 *((volatile unsigned int*)(0x4266028CUL)) -#define bFM3_GPIO_PFR5_P4 *((volatile unsigned int*)(0x42660290UL)) -#define bFM3_GPIO_PFR5_P5 *((volatile unsigned int*)(0x42660294UL)) -#define bFM3_GPIO_PFR5_P6 *((volatile unsigned int*)(0x42660298UL)) -#define bFM3_GPIO_PFR5_P7 *((volatile unsigned int*)(0x4266029CUL)) -#define bFM3_GPIO_PFR5_P8 *((volatile unsigned int*)(0x426602A0UL)) -#define bFM3_GPIO_PFR5_P9 *((volatile unsigned int*)(0x426602A4UL)) -#define bFM3_GPIO_PFR5_PA *((volatile unsigned int*)(0x426602A8UL)) -#define bFM3_GPIO_PFR5_PB *((volatile unsigned int*)(0x426602ACUL)) -#define bFM3_GPIO_PFR5_PC *((volatile unsigned int*)(0x426602B0UL)) -#define bFM3_GPIO_PFR5_PD *((volatile unsigned int*)(0x426602B4UL)) -#define bFM3_GPIO_PFR6_P0 *((volatile unsigned int*)(0x42660300UL)) -#define bFM3_GPIO_PFR6_P1 *((volatile unsigned int*)(0x42660304UL)) -#define bFM3_GPIO_PFR6_P2 *((volatile unsigned int*)(0x42660308UL)) -#define bFM3_GPIO_PFR7_P0 *((volatile unsigned int*)(0x42660380UL)) -#define bFM3_GPIO_PFR7_P1 *((volatile unsigned int*)(0x42660384UL)) -#define bFM3_GPIO_PFR7_P2 *((volatile unsigned int*)(0x42660388UL)) -#define bFM3_GPIO_PFR7_P3 *((volatile unsigned int*)(0x4266038CUL)) -#define bFM3_GPIO_PFR7_P4 *((volatile unsigned int*)(0x42660390UL)) -#define bFM3_GPIO_PFR7_P5 *((volatile unsigned int*)(0x42660394UL)) -#define bFM3_GPIO_PFR7_P6 *((volatile unsigned int*)(0x42660398UL)) -#define bFM3_GPIO_PFR7_P7 *((volatile unsigned int*)(0x4266039CUL)) -#define bFM3_GPIO_PFR7_P8 *((volatile unsigned int*)(0x426603A0UL)) -#define bFM3_GPIO_PFR7_P9 *((volatile unsigned int*)(0x426603A4UL)) -#define bFM3_GPIO_PFR7_PA *((volatile unsigned int*)(0x426603A8UL)) -#define bFM3_GPIO_PFR7_PB *((volatile unsigned int*)(0x426603ACUL)) -#define bFM3_GPIO_PFR7_PC *((volatile unsigned int*)(0x426603B0UL)) -#define bFM3_GPIO_PFR7_PD *((volatile unsigned int*)(0x426603B4UL)) -#define bFM3_GPIO_PFR7_PE *((volatile unsigned int*)(0x426603B8UL)) -#define bFM3_GPIO_PFR7_PF *((volatile unsigned int*)(0x426603BCUL)) -#define bFM3_GPIO_PFR8_P0 *((volatile unsigned int*)(0x42660400UL)) -#define bFM3_GPIO_PFR8_P1 *((volatile unsigned int*)(0x42660404UL)) -#define bFM3_GPIO_PFR8_P2 *((volatile unsigned int*)(0x42660408UL)) -#define bFM3_GPIO_PFR8_P3 *((volatile unsigned int*)(0x4266040CUL)) -#define bFM3_GPIO_PFR9_P0 *((volatile unsigned int*)(0x42660480UL)) -#define bFM3_GPIO_PFR9_P1 *((volatile unsigned int*)(0x42660484UL)) -#define bFM3_GPIO_PFR9_P2 *((volatile unsigned int*)(0x42660488UL)) -#define bFM3_GPIO_PFR9_P3 *((volatile unsigned int*)(0x4266048CUL)) -#define bFM3_GPIO_PFR9_P4 *((volatile unsigned int*)(0x42660490UL)) -#define bFM3_GPIO_PFR9_P5 *((volatile unsigned int*)(0x42660494UL)) -#define bFM3_GPIO_PFRA_P0 *((volatile unsigned int*)(0x42660500UL)) -#define bFM3_GPIO_PFRA_P1 *((volatile unsigned int*)(0x42660504UL)) -#define bFM3_GPIO_PFRA_P2 *((volatile unsigned int*)(0x42660508UL)) -#define bFM3_GPIO_PFRA_P3 *((volatile unsigned int*)(0x4266050CUL)) -#define bFM3_GPIO_PFRA_P4 *((volatile unsigned int*)(0x42660510UL)) -#define bFM3_GPIO_PFRA_P5 *((volatile unsigned int*)(0x42660514UL)) -#define bFM3_GPIO_PFRB_P0 *((volatile unsigned int*)(0x42660580UL)) -#define bFM3_GPIO_PFRB_P1 *((volatile unsigned int*)(0x42660584UL)) -#define bFM3_GPIO_PFRB_P2 *((volatile unsigned int*)(0x42660588UL)) -#define bFM3_GPIO_PFRB_P3 *((volatile unsigned int*)(0x4266058CUL)) -#define bFM3_GPIO_PFRB_P4 *((volatile unsigned int*)(0x42660590UL)) -#define bFM3_GPIO_PFRB_P5 *((volatile unsigned int*)(0x42660594UL)) -#define bFM3_GPIO_PFRB_P6 *((volatile unsigned int*)(0x42660598UL)) -#define bFM3_GPIO_PFRB_P7 *((volatile unsigned int*)(0x4266059CUL)) -#define bFM3_GPIO_PFRC_P0 *((volatile unsigned int*)(0x42660600UL)) -#define bFM3_GPIO_PFRC_P1 *((volatile unsigned int*)(0x42660604UL)) -#define bFM3_GPIO_PFRC_P2 *((volatile unsigned int*)(0x42660608UL)) -#define bFM3_GPIO_PFRC_P3 *((volatile unsigned int*)(0x4266060CUL)) -#define bFM3_GPIO_PFRC_P4 *((volatile unsigned int*)(0x42660610UL)) -#define bFM3_GPIO_PFRC_P5 *((volatile unsigned int*)(0x42660614UL)) -#define bFM3_GPIO_PFRC_P6 *((volatile unsigned int*)(0x42660618UL)) -#define bFM3_GPIO_PFRC_P7 *((volatile unsigned int*)(0x4266061CUL)) -#define bFM3_GPIO_PFRC_P8 *((volatile unsigned int*)(0x42660620UL)) -#define bFM3_GPIO_PFRC_P9 *((volatile unsigned int*)(0x42660624UL)) -#define bFM3_GPIO_PFRC_PA *((volatile unsigned int*)(0x42660628UL)) -#define bFM3_GPIO_PFRC_PB *((volatile unsigned int*)(0x4266062CUL)) -#define bFM3_GPIO_PFRC_PC *((volatile unsigned int*)(0x42660630UL)) -#define bFM3_GPIO_PFRC_PD *((volatile unsigned int*)(0x42660634UL)) -#define bFM3_GPIO_PFRC_PE *((volatile unsigned int*)(0x42660638UL)) -#define bFM3_GPIO_PFRC_PF *((volatile unsigned int*)(0x4266063CUL)) -#define bFM3_GPIO_PFRD_P0 *((volatile unsigned int*)(0x42660680UL)) -#define bFM3_GPIO_PFRD_P1 *((volatile unsigned int*)(0x42660684UL)) -#define bFM3_GPIO_PFRD_P2 *((volatile unsigned int*)(0x42660688UL)) -#define bFM3_GPIO_PFRD_P3 *((volatile unsigned int*)(0x4266068CUL)) -#define bFM3_GPIO_PFRE_P0 *((volatile unsigned int*)(0x42660700UL)) -#define bFM3_GPIO_PFRE_P2 *((volatile unsigned int*)(0x42660708UL)) -#define bFM3_GPIO_PFRE_P3 *((volatile unsigned int*)(0x4266070CUL)) -#define bFM3_GPIO_PFRF_P0 *((volatile unsigned int*)(0x42660780UL)) -#define bFM3_GPIO_PFRF_P1 *((volatile unsigned int*)(0x42660784UL)) -#define bFM3_GPIO_PFRF_P2 *((volatile unsigned int*)(0x42660788UL)) -#define bFM3_GPIO_PFRF_P3 *((volatile unsigned int*)(0x4266078CUL)) -#define bFM3_GPIO_PFRF_P4 *((volatile unsigned int*)(0x42660790UL)) -#define bFM3_GPIO_PFRF_P5 *((volatile unsigned int*)(0x42660794UL)) -#define bFM3_GPIO_PFRF_P6 *((volatile unsigned int*)(0x42660798UL)) -#define bFM3_GPIO_PCR0_P0 *((volatile unsigned int*)(0x42662000UL)) -#define bFM3_GPIO_PCR0_P1 *((volatile unsigned int*)(0x42662004UL)) -#define bFM3_GPIO_PCR0_P2 *((volatile unsigned int*)(0x42662008UL)) -#define bFM3_GPIO_PCR0_P3 *((volatile unsigned int*)(0x4266200CUL)) -#define bFM3_GPIO_PCR0_P4 *((volatile unsigned int*)(0x42662010UL)) -#define bFM3_GPIO_PCR0_P5 *((volatile unsigned int*)(0x42662014UL)) -#define bFM3_GPIO_PCR0_P6 *((volatile unsigned int*)(0x42662018UL)) -#define bFM3_GPIO_PCR0_P7 *((volatile unsigned int*)(0x4266201CUL)) -#define bFM3_GPIO_PCR0_P8 *((volatile unsigned int*)(0x42662020UL)) -#define bFM3_GPIO_PCR0_P9 *((volatile unsigned int*)(0x42662024UL)) -#define bFM3_GPIO_PCR1_P0 *((volatile unsigned int*)(0x42662080UL)) -#define bFM3_GPIO_PCR1_P1 *((volatile unsigned int*)(0x42662084UL)) -#define bFM3_GPIO_PCR1_P2 *((volatile unsigned int*)(0x42662088UL)) -#define bFM3_GPIO_PCR1_P3 *((volatile unsigned int*)(0x4266208CUL)) -#define bFM3_GPIO_PCR1_P4 *((volatile unsigned int*)(0x42662090UL)) -#define bFM3_GPIO_PCR1_P5 *((volatile unsigned int*)(0x42662094UL)) -#define bFM3_GPIO_PCR1_P6 *((volatile unsigned int*)(0x42662098UL)) -#define bFM3_GPIO_PCR1_P7 *((volatile unsigned int*)(0x4266209CUL)) -#define bFM3_GPIO_PCR1_P8 *((volatile unsigned int*)(0x426620A0UL)) -#define bFM3_GPIO_PCR1_P9 *((volatile unsigned int*)(0x426620A4UL)) -#define bFM3_GPIO_PCR1_PA *((volatile unsigned int*)(0x426620A8UL)) -#define bFM3_GPIO_PCR1_PB *((volatile unsigned int*)(0x426620ACUL)) -#define bFM3_GPIO_PCR1_PC *((volatile unsigned int*)(0x426620B0UL)) -#define bFM3_GPIO_PCR1_PD *((volatile unsigned int*)(0x426620B4UL)) -#define bFM3_GPIO_PCR1_PE *((volatile unsigned int*)(0x426620B8UL)) -#define bFM3_GPIO_PCR1_PF *((volatile unsigned int*)(0x426620BCUL)) -#define bFM3_GPIO_PCR2_P0 *((volatile unsigned int*)(0x42662100UL)) -#define bFM3_GPIO_PCR2_P1 *((volatile unsigned int*)(0x42662104UL)) -#define bFM3_GPIO_PCR2_P2 *((volatile unsigned int*)(0x42662108UL)) -#define bFM3_GPIO_PCR2_P3 *((volatile unsigned int*)(0x4266210CUL)) -#define bFM3_GPIO_PCR2_P4 *((volatile unsigned int*)(0x42662110UL)) -#define bFM3_GPIO_PCR2_P5 *((volatile unsigned int*)(0x42662114UL)) -#define bFM3_GPIO_PCR2_P6 *((volatile unsigned int*)(0x42662118UL)) -#define bFM3_GPIO_PCR2_P7 *((volatile unsigned int*)(0x4266211CUL)) -#define bFM3_GPIO_PCR2_P8 *((volatile unsigned int*)(0x42662120UL)) -#define bFM3_GPIO_PCR2_P9 *((volatile unsigned int*)(0x42662124UL)) -#define bFM3_GPIO_PCR3_P0 *((volatile unsigned int*)(0x42662180UL)) -#define bFM3_GPIO_PCR3_P1 *((volatile unsigned int*)(0x42662184UL)) -#define bFM3_GPIO_PCR3_P2 *((volatile unsigned int*)(0x42662188UL)) -#define bFM3_GPIO_PCR3_P3 *((volatile unsigned int*)(0x4266218CUL)) -#define bFM3_GPIO_PCR3_P4 *((volatile unsigned int*)(0x42662190UL)) -#define bFM3_GPIO_PCR3_P5 *((volatile unsigned int*)(0x42662194UL)) -#define bFM3_GPIO_PCR3_P6 *((volatile unsigned int*)(0x42662198UL)) -#define bFM3_GPIO_PCR3_P7 *((volatile unsigned int*)(0x4266219CUL)) -#define bFM3_GPIO_PCR3_P8 *((volatile unsigned int*)(0x426621A0UL)) -#define bFM3_GPIO_PCR3_P9 *((volatile unsigned int*)(0x426621A4UL)) -#define bFM3_GPIO_PCR3_PA *((volatile unsigned int*)(0x426621A8UL)) -#define bFM3_GPIO_PCR3_PB *((volatile unsigned int*)(0x426621ACUL)) -#define bFM3_GPIO_PCR3_PC *((volatile unsigned int*)(0x426621B0UL)) -#define bFM3_GPIO_PCR3_PD *((volatile unsigned int*)(0x426621B4UL)) -#define bFM3_GPIO_PCR3_PE *((volatile unsigned int*)(0x426621B8UL)) -#define bFM3_GPIO_PCR3_PF *((volatile unsigned int*)(0x426621BCUL)) -#define bFM3_GPIO_PCR4_P0 *((volatile unsigned int*)(0x42662200UL)) -#define bFM3_GPIO_PCR4_P1 *((volatile unsigned int*)(0x42662204UL)) -#define bFM3_GPIO_PCR4_P2 *((volatile unsigned int*)(0x42662208UL)) -#define bFM3_GPIO_PCR4_P3 *((volatile unsigned int*)(0x4266220CUL)) -#define bFM3_GPIO_PCR4_P4 *((volatile unsigned int*)(0x42662210UL)) -#define bFM3_GPIO_PCR4_P5 *((volatile unsigned int*)(0x42662214UL)) -#define bFM3_GPIO_PCR4_P6 *((volatile unsigned int*)(0x42662218UL)) -#define bFM3_GPIO_PCR4_P7 *((volatile unsigned int*)(0x4266221CUL)) -#define bFM3_GPIO_PCR4_P8 *((volatile unsigned int*)(0x42662220UL)) -#define bFM3_GPIO_PCR4_P9 *((volatile unsigned int*)(0x42662224UL)) -#define bFM3_GPIO_PCR4_PA *((volatile unsigned int*)(0x42662228UL)) -#define bFM3_GPIO_PCR4_PB *((volatile unsigned int*)(0x4266222CUL)) -#define bFM3_GPIO_PCR4_PC *((volatile unsigned int*)(0x42662230UL)) -#define bFM3_GPIO_PCR4_PD *((volatile unsigned int*)(0x42662234UL)) -#define bFM3_GPIO_PCR4_PE *((volatile unsigned int*)(0x42662238UL)) -#define bFM3_GPIO_PCR5_P0 *((volatile unsigned int*)(0x42662280UL)) -#define bFM3_GPIO_PCR5_P1 *((volatile unsigned int*)(0x42662284UL)) -#define bFM3_GPIO_PCR5_P2 *((volatile unsigned int*)(0x42662288UL)) -#define bFM3_GPIO_PCR5_P3 *((volatile unsigned int*)(0x4266228CUL)) -#define bFM3_GPIO_PCR5_P4 *((volatile unsigned int*)(0x42662290UL)) -#define bFM3_GPIO_PCR5_P5 *((volatile unsigned int*)(0x42662294UL)) -#define bFM3_GPIO_PCR5_P6 *((volatile unsigned int*)(0x42662298UL)) -#define bFM3_GPIO_PCR5_P7 *((volatile unsigned int*)(0x4266229CUL)) -#define bFM3_GPIO_PCR5_P8 *((volatile unsigned int*)(0x426622A0UL)) -#define bFM3_GPIO_PCR5_P9 *((volatile unsigned int*)(0x426622A4UL)) -#define bFM3_GPIO_PCR5_PA *((volatile unsigned int*)(0x426622A8UL)) -#define bFM3_GPIO_PCR5_PB *((volatile unsigned int*)(0x426622ACUL)) -#define bFM3_GPIO_PCR5_PC *((volatile unsigned int*)(0x426622B0UL)) -#define bFM3_GPIO_PCR5_PD *((volatile unsigned int*)(0x426622B4UL)) -#define bFM3_GPIO_PCR6_P0 *((volatile unsigned int*)(0x42662300UL)) -#define bFM3_GPIO_PCR6_P1 *((volatile unsigned int*)(0x42662304UL)) -#define bFM3_GPIO_PCR6_P2 *((volatile unsigned int*)(0x42662308UL)) -#define bFM3_GPIO_PCR7_P0 *((volatile unsigned int*)(0x42662380UL)) -#define bFM3_GPIO_PCR7_P1 *((volatile unsigned int*)(0x42662384UL)) -#define bFM3_GPIO_PCR7_P2 *((volatile unsigned int*)(0x42662388UL)) -#define bFM3_GPIO_PCR7_P3 *((volatile unsigned int*)(0x4266238CUL)) -#define bFM3_GPIO_PCR7_P4 *((volatile unsigned int*)(0x42662390UL)) -#define bFM3_GPIO_PCR7_P5 *((volatile unsigned int*)(0x42662394UL)) -#define bFM3_GPIO_PCR7_P6 *((volatile unsigned int*)(0x42662398UL)) -#define bFM3_GPIO_PCR7_P7 *((volatile unsigned int*)(0x4266239CUL)) -#define bFM3_GPIO_PCR7_P8 *((volatile unsigned int*)(0x426623A0UL)) -#define bFM3_GPIO_PCR7_P9 *((volatile unsigned int*)(0x426623A4UL)) -#define bFM3_GPIO_PCR7_PA *((volatile unsigned int*)(0x426623A8UL)) -#define bFM3_GPIO_PCR7_PB *((volatile unsigned int*)(0x426623ACUL)) -#define bFM3_GPIO_PCR7_PC *((volatile unsigned int*)(0x426623B0UL)) -#define bFM3_GPIO_PCR7_PD *((volatile unsigned int*)(0x426623B4UL)) -#define bFM3_GPIO_PCR7_PE *((volatile unsigned int*)(0x426623B8UL)) -#define bFM3_GPIO_PCR7_PF *((volatile unsigned int*)(0x426623BCUL)) -#define bFM3_GPIO_PCR9_P0 *((volatile unsigned int*)(0x42662480UL)) -#define bFM3_GPIO_PCR9_P1 *((volatile unsigned int*)(0x42662484UL)) -#define bFM3_GPIO_PCR9_P2 *((volatile unsigned int*)(0x42662488UL)) -#define bFM3_GPIO_PCR9_P3 *((volatile unsigned int*)(0x4266248CUL)) -#define bFM3_GPIO_PCR9_P4 *((volatile unsigned int*)(0x42662490UL)) -#define bFM3_GPIO_PCR9_P5 *((volatile unsigned int*)(0x42662494UL)) -#define bFM3_GPIO_PCRA_P0 *((volatile unsigned int*)(0x42662500UL)) -#define bFM3_GPIO_PCRA_P1 *((volatile unsigned int*)(0x42662504UL)) -#define bFM3_GPIO_PCRA_P2 *((volatile unsigned int*)(0x42662508UL)) -#define bFM3_GPIO_PCRA_P3 *((volatile unsigned int*)(0x4266250CUL)) -#define bFM3_GPIO_PCRA_P4 *((volatile unsigned int*)(0x42662510UL)) -#define bFM3_GPIO_PCRA_P5 *((volatile unsigned int*)(0x42662514UL)) -#define bFM3_GPIO_PCRB_P0 *((volatile unsigned int*)(0x42662580UL)) -#define bFM3_GPIO_PCRB_P1 *((volatile unsigned int*)(0x42662584UL)) -#define bFM3_GPIO_PCRB_P2 *((volatile unsigned int*)(0x42662588UL)) -#define bFM3_GPIO_PCRB_P3 *((volatile unsigned int*)(0x4266258CUL)) -#define bFM3_GPIO_PCRB_P4 *((volatile unsigned int*)(0x42662590UL)) -#define bFM3_GPIO_PCRB_P5 *((volatile unsigned int*)(0x42662594UL)) -#define bFM3_GPIO_PCRB_P6 *((volatile unsigned int*)(0x42662598UL)) -#define bFM3_GPIO_PCRB_P7 *((volatile unsigned int*)(0x4266259CUL)) -#define bFM3_GPIO_PCRC_P0 *((volatile unsigned int*)(0x42662600UL)) -#define bFM3_GPIO_PCRC_P1 *((volatile unsigned int*)(0x42662604UL)) -#define bFM3_GPIO_PCRC_P2 *((volatile unsigned int*)(0x42662608UL)) -#define bFM3_GPIO_PCRC_P3 *((volatile unsigned int*)(0x4266260CUL)) -#define bFM3_GPIO_PCRC_P4 *((volatile unsigned int*)(0x42662610UL)) -#define bFM3_GPIO_PCRC_P5 *((volatile unsigned int*)(0x42662614UL)) -#define bFM3_GPIO_PCRC_P6 *((volatile unsigned int*)(0x42662618UL)) -#define bFM3_GPIO_PCRC_P7 *((volatile unsigned int*)(0x4266261CUL)) -#define bFM3_GPIO_PCRC_P8 *((volatile unsigned int*)(0x42662620UL)) -#define bFM3_GPIO_PCRC_P9 *((volatile unsigned int*)(0x42662624UL)) -#define bFM3_GPIO_PCRC_PA *((volatile unsigned int*)(0x42662628UL)) -#define bFM3_GPIO_PCRC_PB *((volatile unsigned int*)(0x4266262CUL)) -#define bFM3_GPIO_PCRC_PC *((volatile unsigned int*)(0x42662630UL)) -#define bFM3_GPIO_PCRC_PD *((volatile unsigned int*)(0x42662634UL)) -#define bFM3_GPIO_PCRC_PE *((volatile unsigned int*)(0x42662638UL)) -#define bFM3_GPIO_PCRC_PF *((volatile unsigned int*)(0x4266263CUL)) -#define bFM3_GPIO_PCRD_P0 *((volatile unsigned int*)(0x42662680UL)) -#define bFM3_GPIO_PCRD_P1 *((volatile unsigned int*)(0x42662684UL)) -#define bFM3_GPIO_PCRD_P2 *((volatile unsigned int*)(0x42662688UL)) -#define bFM3_GPIO_PCRD_P3 *((volatile unsigned int*)(0x4266268CUL)) -#define bFM3_GPIO_PCRE_P2 *((volatile unsigned int*)(0x42662708UL)) -#define bFM3_GPIO_PCRE_P3 *((volatile unsigned int*)(0x4266270CUL)) -#define bFM3_GPIO_DDR0_P0 *((volatile unsigned int*)(0x42664000UL)) -#define bFM3_GPIO_DDR0_P1 *((volatile unsigned int*)(0x42664004UL)) -#define bFM3_GPIO_DDR0_P2 *((volatile unsigned int*)(0x42664008UL)) -#define bFM3_GPIO_DDR0_P3 *((volatile unsigned int*)(0x4266400CUL)) -#define bFM3_GPIO_DDR0_P4 *((volatile unsigned int*)(0x42664010UL)) -#define bFM3_GPIO_DDR0_P5 *((volatile unsigned int*)(0x42664014UL)) -#define bFM3_GPIO_DDR0_P6 *((volatile unsigned int*)(0x42664018UL)) -#define bFM3_GPIO_DDR0_P7 *((volatile unsigned int*)(0x4266401CUL)) -#define bFM3_GPIO_DDR0_P8 *((volatile unsigned int*)(0x42664020UL)) -#define bFM3_GPIO_DDR0_P9 *((volatile unsigned int*)(0x42664024UL)) -#define bFM3_GPIO_DDR1_P0 *((volatile unsigned int*)(0x42664080UL)) -#define bFM3_GPIO_DDR1_P1 *((volatile unsigned int*)(0x42664084UL)) -#define bFM3_GPIO_DDR1_P2 *((volatile unsigned int*)(0x42664088UL)) -#define bFM3_GPIO_DDR1_P3 *((volatile unsigned int*)(0x4266408CUL)) -#define bFM3_GPIO_DDR1_P4 *((volatile unsigned int*)(0x42664090UL)) -#define bFM3_GPIO_DDR1_P5 *((volatile unsigned int*)(0x42664094UL)) -#define bFM3_GPIO_DDR1_P6 *((volatile unsigned int*)(0x42664098UL)) -#define bFM3_GPIO_DDR1_P7 *((volatile unsigned int*)(0x4266409CUL)) -#define bFM3_GPIO_DDR1_P8 *((volatile unsigned int*)(0x426640A0UL)) -#define bFM3_GPIO_DDR1_P9 *((volatile unsigned int*)(0x426640A4UL)) -#define bFM3_GPIO_DDR1_PA *((volatile unsigned int*)(0x426640A8UL)) -#define bFM3_GPIO_DDR1_PB *((volatile unsigned int*)(0x426640ACUL)) -#define bFM3_GPIO_DDR1_PC *((volatile unsigned int*)(0x426640B0UL)) -#define bFM3_GPIO_DDR1_PD *((volatile unsigned int*)(0x426640B4UL)) -#define bFM3_GPIO_DDR1_PE *((volatile unsigned int*)(0x426640B8UL)) -#define bFM3_GPIO_DDR1_PF *((volatile unsigned int*)(0x426640BCUL)) -#define bFM3_GPIO_DDR2_P0 *((volatile unsigned int*)(0x42664100UL)) -#define bFM3_GPIO_DDR2_P1 *((volatile unsigned int*)(0x42664104UL)) -#define bFM3_GPIO_DDR2_P2 *((volatile unsigned int*)(0x42664108UL)) -#define bFM3_GPIO_DDR2_P3 *((volatile unsigned int*)(0x4266410CUL)) -#define bFM3_GPIO_DDR2_P4 *((volatile unsigned int*)(0x42664110UL)) -#define bFM3_GPIO_DDR2_P5 *((volatile unsigned int*)(0x42664114UL)) -#define bFM3_GPIO_DDR2_P6 *((volatile unsigned int*)(0x42664118UL)) -#define bFM3_GPIO_DDR2_P7 *((volatile unsigned int*)(0x4266411CUL)) -#define bFM3_GPIO_DDR2_P8 *((volatile unsigned int*)(0x42664120UL)) -#define bFM3_GPIO_DDR2_P9 *((volatile unsigned int*)(0x42664124UL)) -#define bFM3_GPIO_DDR3_P0 *((volatile unsigned int*)(0x42664180UL)) -#define bFM3_GPIO_DDR3_P1 *((volatile unsigned int*)(0x42664184UL)) -#define bFM3_GPIO_DDR3_P2 *((volatile unsigned int*)(0x42664188UL)) -#define bFM3_GPIO_DDR3_P3 *((volatile unsigned int*)(0x4266418CUL)) -#define bFM3_GPIO_DDR3_P4 *((volatile unsigned int*)(0x42664190UL)) -#define bFM3_GPIO_DDR3_P5 *((volatile unsigned int*)(0x42664194UL)) -#define bFM3_GPIO_DDR3_P6 *((volatile unsigned int*)(0x42664198UL)) -#define bFM3_GPIO_DDR3_P7 *((volatile unsigned int*)(0x4266419CUL)) -#define bFM3_GPIO_DDR3_P8 *((volatile unsigned int*)(0x426641A0UL)) -#define bFM3_GPIO_DDR3_P9 *((volatile unsigned int*)(0x426641A4UL)) -#define bFM3_GPIO_DDR3_PA *((volatile unsigned int*)(0x426641A8UL)) -#define bFM3_GPIO_DDR3_PB *((volatile unsigned int*)(0x426641ACUL)) -#define bFM3_GPIO_DDR3_PC *((volatile unsigned int*)(0x426641B0UL)) -#define bFM3_GPIO_DDR3_PD *((volatile unsigned int*)(0x426641B4UL)) -#define bFM3_GPIO_DDR3_PE *((volatile unsigned int*)(0x426641B8UL)) -#define bFM3_GPIO_DDR3_PF *((volatile unsigned int*)(0x426641BCUL)) -#define bFM3_GPIO_DDR4_P0 *((volatile unsigned int*)(0x42664200UL)) -#define bFM3_GPIO_DDR4_P1 *((volatile unsigned int*)(0x42664204UL)) -#define bFM3_GPIO_DDR4_P2 *((volatile unsigned int*)(0x42664208UL)) -#define bFM3_GPIO_DDR4_P3 *((volatile unsigned int*)(0x4266420CUL)) -#define bFM3_GPIO_DDR4_P4 *((volatile unsigned int*)(0x42664210UL)) -#define bFM3_GPIO_DDR4_P5 *((volatile unsigned int*)(0x42664214UL)) -#define bFM3_GPIO_DDR4_P6 *((volatile unsigned int*)(0x42664218UL)) -#define bFM3_GPIO_DDR4_P7 *((volatile unsigned int*)(0x4266421CUL)) -#define bFM3_GPIO_DDR4_P8 *((volatile unsigned int*)(0x42664220UL)) -#define bFM3_GPIO_DDR4_P9 *((volatile unsigned int*)(0x42664224UL)) -#define bFM3_GPIO_DDR4_PA *((volatile unsigned int*)(0x42664228UL)) -#define bFM3_GPIO_DDR4_PB *((volatile unsigned int*)(0x4266422CUL)) -#define bFM3_GPIO_DDR4_PC *((volatile unsigned int*)(0x42664230UL)) -#define bFM3_GPIO_DDR4_PD *((volatile unsigned int*)(0x42664234UL)) -#define bFM3_GPIO_DDR4_PE *((volatile unsigned int*)(0x42664238UL)) -#define bFM3_GPIO_DDR5_P0 *((volatile unsigned int*)(0x42664280UL)) -#define bFM3_GPIO_DDR5_P1 *((volatile unsigned int*)(0x42664284UL)) -#define bFM3_GPIO_DDR5_P2 *((volatile unsigned int*)(0x42664288UL)) -#define bFM3_GPIO_DDR5_P3 *((volatile unsigned int*)(0x4266428CUL)) -#define bFM3_GPIO_DDR5_P4 *((volatile unsigned int*)(0x42664290UL)) -#define bFM3_GPIO_DDR5_P5 *((volatile unsigned int*)(0x42664294UL)) -#define bFM3_GPIO_DDR5_P6 *((volatile unsigned int*)(0x42664298UL)) -#define bFM3_GPIO_DDR5_P7 *((volatile unsigned int*)(0x4266429CUL)) -#define bFM3_GPIO_DDR5_P8 *((volatile unsigned int*)(0x426642A0UL)) -#define bFM3_GPIO_DDR5_P9 *((volatile unsigned int*)(0x426642A4UL)) -#define bFM3_GPIO_DDR5_PA *((volatile unsigned int*)(0x426642A8UL)) -#define bFM3_GPIO_DDR5_PB *((volatile unsigned int*)(0x426642ACUL)) -#define bFM3_GPIO_DDR5_PC *((volatile unsigned int*)(0x426642B0UL)) -#define bFM3_GPIO_DDR5_PD *((volatile unsigned int*)(0x426642B4UL)) -#define bFM3_GPIO_DDR6_P0 *((volatile unsigned int*)(0x42664300UL)) -#define bFM3_GPIO_DDR6_P1 *((volatile unsigned int*)(0x42664304UL)) -#define bFM3_GPIO_DDR6_P2 *((volatile unsigned int*)(0x42664308UL)) -#define bFM3_GPIO_DDR7_P0 *((volatile unsigned int*)(0x42664380UL)) -#define bFM3_GPIO_DDR7_P1 *((volatile unsigned int*)(0x42664384UL)) -#define bFM3_GPIO_DDR7_P2 *((volatile unsigned int*)(0x42664388UL)) -#define bFM3_GPIO_DDR7_P3 *((volatile unsigned int*)(0x4266438CUL)) -#define bFM3_GPIO_DDR7_P4 *((volatile unsigned int*)(0x42664390UL)) -#define bFM3_GPIO_DDR7_P5 *((volatile unsigned int*)(0x42664394UL)) -#define bFM3_GPIO_DDR7_P6 *((volatile unsigned int*)(0x42664398UL)) -#define bFM3_GPIO_DDR7_P7 *((volatile unsigned int*)(0x4266439CUL)) -#define bFM3_GPIO_DDR7_P8 *((volatile unsigned int*)(0x426643A0UL)) -#define bFM3_GPIO_DDR7_P9 *((volatile unsigned int*)(0x426643A4UL)) -#define bFM3_GPIO_DDR7_PA *((volatile unsigned int*)(0x426643A8UL)) -#define bFM3_GPIO_DDR7_PB *((volatile unsigned int*)(0x426643ACUL)) -#define bFM3_GPIO_DDR7_PC *((volatile unsigned int*)(0x426643B0UL)) -#define bFM3_GPIO_DDR7_PD *((volatile unsigned int*)(0x426643B4UL)) -#define bFM3_GPIO_DDR7_PE *((volatile unsigned int*)(0x426643B8UL)) -#define bFM3_GPIO_DDR7_PF *((volatile unsigned int*)(0x426643BCUL)) -#define bFM3_GPIO_DDR8_P0 *((volatile unsigned int*)(0x42664400UL)) -#define bFM3_GPIO_DDR8_P1 *((volatile unsigned int*)(0x42664404UL)) -#define bFM3_GPIO_DDR8_P2 *((volatile unsigned int*)(0x42664408UL)) -#define bFM3_GPIO_DDR8_P3 *((volatile unsigned int*)(0x4266440CUL)) -#define bFM3_GPIO_DDR9_P0 *((volatile unsigned int*)(0x42664480UL)) -#define bFM3_GPIO_DDR9_P1 *((volatile unsigned int*)(0x42664484UL)) -#define bFM3_GPIO_DDR9_P2 *((volatile unsigned int*)(0x42664488UL)) -#define bFM3_GPIO_DDR9_P3 *((volatile unsigned int*)(0x4266448CUL)) -#define bFM3_GPIO_DDR9_P4 *((volatile unsigned int*)(0x42664490UL)) -#define bFM3_GPIO_DDR9_P5 *((volatile unsigned int*)(0x42664494UL)) -#define bFM3_GPIO_DDRA_P0 *((volatile unsigned int*)(0x42664500UL)) -#define bFM3_GPIO_DDRA_P1 *((volatile unsigned int*)(0x42664504UL)) -#define bFM3_GPIO_DDRA_P2 *((volatile unsigned int*)(0x42664508UL)) -#define bFM3_GPIO_DDRA_P3 *((volatile unsigned int*)(0x4266450CUL)) -#define bFM3_GPIO_DDRA_P4 *((volatile unsigned int*)(0x42664510UL)) -#define bFM3_GPIO_DDRA_P5 *((volatile unsigned int*)(0x42664514UL)) -#define bFM3_GPIO_DDRB_P0 *((volatile unsigned int*)(0x42664580UL)) -#define bFM3_GPIO_DDRB_P1 *((volatile unsigned int*)(0x42664584UL)) -#define bFM3_GPIO_DDRB_P2 *((volatile unsigned int*)(0x42664588UL)) -#define bFM3_GPIO_DDRB_P3 *((volatile unsigned int*)(0x4266458CUL)) -#define bFM3_GPIO_DDRB_P4 *((volatile unsigned int*)(0x42664590UL)) -#define bFM3_GPIO_DDRB_P5 *((volatile unsigned int*)(0x42664594UL)) -#define bFM3_GPIO_DDRB_P6 *((volatile unsigned int*)(0x42664598UL)) -#define bFM3_GPIO_DDRB_P7 *((volatile unsigned int*)(0x4266459CUL)) -#define bFM3_GPIO_DDRC_P0 *((volatile unsigned int*)(0x42664600UL)) -#define bFM3_GPIO_DDRC_P1 *((volatile unsigned int*)(0x42664604UL)) -#define bFM3_GPIO_DDRC_P2 *((volatile unsigned int*)(0x42664608UL)) -#define bFM3_GPIO_DDRC_P3 *((volatile unsigned int*)(0x4266460CUL)) -#define bFM3_GPIO_DDRC_P4 *((volatile unsigned int*)(0x42664610UL)) -#define bFM3_GPIO_DDRC_P5 *((volatile unsigned int*)(0x42664614UL)) -#define bFM3_GPIO_DDRC_P6 *((volatile unsigned int*)(0x42664618UL)) -#define bFM3_GPIO_DDRC_P7 *((volatile unsigned int*)(0x4266461CUL)) -#define bFM3_GPIO_DDRC_P8 *((volatile unsigned int*)(0x42664620UL)) -#define bFM3_GPIO_DDRC_P9 *((volatile unsigned int*)(0x42664624UL)) -#define bFM3_GPIO_DDRC_PA *((volatile unsigned int*)(0x42664628UL)) -#define bFM3_GPIO_DDRC_PB *((volatile unsigned int*)(0x4266462CUL)) -#define bFM3_GPIO_DDRC_PC *((volatile unsigned int*)(0x42664630UL)) -#define bFM3_GPIO_DDRC_PD *((volatile unsigned int*)(0x42664634UL)) -#define bFM3_GPIO_DDRC_PE *((volatile unsigned int*)(0x42664638UL)) -#define bFM3_GPIO_DDRC_PF *((volatile unsigned int*)(0x4266463CUL)) -#define bFM3_GPIO_DDRD_P0 *((volatile unsigned int*)(0x42664680UL)) -#define bFM3_GPIO_DDRD_P1 *((volatile unsigned int*)(0x42664684UL)) -#define bFM3_GPIO_DDRD_P2 *((volatile unsigned int*)(0x42664688UL)) -#define bFM3_GPIO_DDRD_P3 *((volatile unsigned int*)(0x4266468CUL)) -#define bFM3_GPIO_DDRE_P0 *((volatile unsigned int*)(0x42664700UL)) -#define bFM3_GPIO_DDRE_P2 *((volatile unsigned int*)(0x42664708UL)) -#define bFM3_GPIO_DDRE_P3 *((volatile unsigned int*)(0x4266470CUL)) -#define bFM3_GPIO_DDRF_P0 *((volatile unsigned int*)(0x42664780UL)) -#define bFM3_GPIO_DDRF_P1 *((volatile unsigned int*)(0x42664784UL)) -#define bFM3_GPIO_DDRF_P2 *((volatile unsigned int*)(0x42664788UL)) -#define bFM3_GPIO_DDRF_P3 *((volatile unsigned int*)(0x4266478CUL)) -#define bFM3_GPIO_DDRF_P4 *((volatile unsigned int*)(0x42664790UL)) -#define bFM3_GPIO_DDRF_P5 *((volatile unsigned int*)(0x42664794UL)) -#define bFM3_GPIO_DDRF_P6 *((volatile unsigned int*)(0x42664798UL)) -#define bFM3_GPIO_PDIR0_P0 *((volatile unsigned int*)(0x42666000UL)) -#define bFM3_GPIO_PDIR0_P1 *((volatile unsigned int*)(0x42666004UL)) -#define bFM3_GPIO_PDIR0_P2 *((volatile unsigned int*)(0x42666008UL)) -#define bFM3_GPIO_PDIR0_P3 *((volatile unsigned int*)(0x4266600CUL)) -#define bFM3_GPIO_PDIR0_P4 *((volatile unsigned int*)(0x42666010UL)) -#define bFM3_GPIO_PDIR0_P5 *((volatile unsigned int*)(0x42666014UL)) -#define bFM3_GPIO_PDIR0_P6 *((volatile unsigned int*)(0x42666018UL)) -#define bFM3_GPIO_PDIR0_P7 *((volatile unsigned int*)(0x4266601CUL)) -#define bFM3_GPIO_PDIR0_P8 *((volatile unsigned int*)(0x42666020UL)) -#define bFM3_GPIO_PDIR0_P9 *((volatile unsigned int*)(0x42666024UL)) -#define bFM3_GPIO_PDIR1_P0 *((volatile unsigned int*)(0x42666080UL)) -#define bFM3_GPIO_PDIR1_P1 *((volatile unsigned int*)(0x42666084UL)) -#define bFM3_GPIO_PDIR1_P2 *((volatile unsigned int*)(0x42666088UL)) -#define bFM3_GPIO_PDIR1_P3 *((volatile unsigned int*)(0x4266608CUL)) -#define bFM3_GPIO_PDIR1_P4 *((volatile unsigned int*)(0x42666090UL)) -#define bFM3_GPIO_PDIR1_P5 *((volatile unsigned int*)(0x42666094UL)) -#define bFM3_GPIO_PDIR1_P6 *((volatile unsigned int*)(0x42666098UL)) -#define bFM3_GPIO_PDIR1_P7 *((volatile unsigned int*)(0x4266609CUL)) -#define bFM3_GPIO_PDIR1_P8 *((volatile unsigned int*)(0x426660A0UL)) -#define bFM3_GPIO_PDIR1_P9 *((volatile unsigned int*)(0x426660A4UL)) -#define bFM3_GPIO_PDIR1_PA *((volatile unsigned int*)(0x426660A8UL)) -#define bFM3_GPIO_PDIR1_PB *((volatile unsigned int*)(0x426660ACUL)) -#define bFM3_GPIO_PDIR1_PC *((volatile unsigned int*)(0x426660B0UL)) -#define bFM3_GPIO_PDIR1_PD *((volatile unsigned int*)(0x426660B4UL)) -#define bFM3_GPIO_PDIR1_PE *((volatile unsigned int*)(0x426660B8UL)) -#define bFM3_GPIO_PDIR1_PF *((volatile unsigned int*)(0x426660BCUL)) -#define bFM3_GPIO_PDIR2_P0 *((volatile unsigned int*)(0x42666100UL)) -#define bFM3_GPIO_PDIR2_P1 *((volatile unsigned int*)(0x42666104UL)) -#define bFM3_GPIO_PDIR2_P2 *((volatile unsigned int*)(0x42666108UL)) -#define bFM3_GPIO_PDIR2_P3 *((volatile unsigned int*)(0x4266610CUL)) -#define bFM3_GPIO_PDIR2_P4 *((volatile unsigned int*)(0x42666110UL)) -#define bFM3_GPIO_PDIR2_P5 *((volatile unsigned int*)(0x42666114UL)) -#define bFM3_GPIO_PDIR2_P6 *((volatile unsigned int*)(0x42666118UL)) -#define bFM3_GPIO_PDIR2_P7 *((volatile unsigned int*)(0x4266611CUL)) -#define bFM3_GPIO_PDIR2_P8 *((volatile unsigned int*)(0x42666120UL)) -#define bFM3_GPIO_PDIR2_P9 *((volatile unsigned int*)(0x42666124UL)) -#define bFM3_GPIO_PDIR3_P0 *((volatile unsigned int*)(0x42666180UL)) -#define bFM3_GPIO_PDIR3_P1 *((volatile unsigned int*)(0x42666184UL)) -#define bFM3_GPIO_PDIR3_P2 *((volatile unsigned int*)(0x42666188UL)) -#define bFM3_GPIO_PDIR3_P3 *((volatile unsigned int*)(0x4266618CUL)) -#define bFM3_GPIO_PDIR3_P4 *((volatile unsigned int*)(0x42666190UL)) -#define bFM3_GPIO_PDIR3_P5 *((volatile unsigned int*)(0x42666194UL)) -#define bFM3_GPIO_PDIR3_P6 *((volatile unsigned int*)(0x42666198UL)) -#define bFM3_GPIO_PDIR3_P7 *((volatile unsigned int*)(0x4266619CUL)) -#define bFM3_GPIO_PDIR3_P8 *((volatile unsigned int*)(0x426661A0UL)) -#define bFM3_GPIO_PDIR3_P9 *((volatile unsigned int*)(0x426661A4UL)) -#define bFM3_GPIO_PDIR3_PA *((volatile unsigned int*)(0x426661A8UL)) -#define bFM3_GPIO_PDIR3_PB *((volatile unsigned int*)(0x426661ACUL)) -#define bFM3_GPIO_PDIR3_PC *((volatile unsigned int*)(0x426661B0UL)) -#define bFM3_GPIO_PDIR3_PD *((volatile unsigned int*)(0x426661B4UL)) -#define bFM3_GPIO_PDIR3_PE *((volatile unsigned int*)(0x426661B8UL)) -#define bFM3_GPIO_PDIR3_PF *((volatile unsigned int*)(0x426661BCUL)) -#define bFM3_GPIO_PDIR4_P0 *((volatile unsigned int*)(0x42666200UL)) -#define bFM3_GPIO_PDIR4_P1 *((volatile unsigned int*)(0x42666204UL)) -#define bFM3_GPIO_PDIR4_P2 *((volatile unsigned int*)(0x42666208UL)) -#define bFM3_GPIO_PDIR4_P3 *((volatile unsigned int*)(0x4266620CUL)) -#define bFM3_GPIO_PDIR4_P4 *((volatile unsigned int*)(0x42666210UL)) -#define bFM3_GPIO_PDIR4_P5 *((volatile unsigned int*)(0x42666214UL)) -#define bFM3_GPIO_PDIR4_P6 *((volatile unsigned int*)(0x42666218UL)) -#define bFM3_GPIO_PDIR4_P7 *((volatile unsigned int*)(0x4266621CUL)) -#define bFM3_GPIO_PDIR4_P8 *((volatile unsigned int*)(0x42666220UL)) -#define bFM3_GPIO_PDIR4_P9 *((volatile unsigned int*)(0x42666224UL)) -#define bFM3_GPIO_PDIR4_PA *((volatile unsigned int*)(0x42666228UL)) -#define bFM3_GPIO_PDIR4_PB *((volatile unsigned int*)(0x4266622CUL)) -#define bFM3_GPIO_PDIR4_PC *((volatile unsigned int*)(0x42666230UL)) -#define bFM3_GPIO_PDIR4_PD *((volatile unsigned int*)(0x42666234UL)) -#define bFM3_GPIO_PDIR4_PE *((volatile unsigned int*)(0x42666238UL)) -#define bFM3_GPIO_PDIR5_P0 *((volatile unsigned int*)(0x42666280UL)) -#define bFM3_GPIO_PDIR5_P1 *((volatile unsigned int*)(0x42666284UL)) -#define bFM3_GPIO_PDIR5_P2 *((volatile unsigned int*)(0x42666288UL)) -#define bFM3_GPIO_PDIR5_P3 *((volatile unsigned int*)(0x4266628CUL)) -#define bFM3_GPIO_PDIR5_P4 *((volatile unsigned int*)(0x42666290UL)) -#define bFM3_GPIO_PDIR5_P5 *((volatile unsigned int*)(0x42666294UL)) -#define bFM3_GPIO_PDIR5_P6 *((volatile unsigned int*)(0x42666298UL)) -#define bFM3_GPIO_PDIR5_P7 *((volatile unsigned int*)(0x4266629CUL)) -#define bFM3_GPIO_PDIR5_P8 *((volatile unsigned int*)(0x426662A0UL)) -#define bFM3_GPIO_PDIR5_P9 *((volatile unsigned int*)(0x426662A4UL)) -#define bFM3_GPIO_PDIR5_PA *((volatile unsigned int*)(0x426662A8UL)) -#define bFM3_GPIO_PDIR5_PB *((volatile unsigned int*)(0x426662ACUL)) -#define bFM3_GPIO_PDIR5_PC *((volatile unsigned int*)(0x426662B0UL)) -#define bFM3_GPIO_PDIR5_PD *((volatile unsigned int*)(0x426662B4UL)) -#define bFM3_GPIO_PDIR6_P0 *((volatile unsigned int*)(0x42666300UL)) -#define bFM3_GPIO_PDIR6_P1 *((volatile unsigned int*)(0x42666304UL)) -#define bFM3_GPIO_PDIR6_P2 *((volatile unsigned int*)(0x42666308UL)) -#define bFM3_GPIO_PDIR7_P0 *((volatile unsigned int*)(0x42666380UL)) -#define bFM3_GPIO_PDIR7_P1 *((volatile unsigned int*)(0x42666384UL)) -#define bFM3_GPIO_PDIR7_P2 *((volatile unsigned int*)(0x42666388UL)) -#define bFM3_GPIO_PDIR7_P3 *((volatile unsigned int*)(0x4266638CUL)) -#define bFM3_GPIO_PDIR7_P4 *((volatile unsigned int*)(0x42666390UL)) -#define bFM3_GPIO_PDIR7_P5 *((volatile unsigned int*)(0x42666394UL)) -#define bFM3_GPIO_PDIR7_P6 *((volatile unsigned int*)(0x42666398UL)) -#define bFM3_GPIO_PDIR7_P7 *((volatile unsigned int*)(0x4266639CUL)) -#define bFM3_GPIO_PDIR7_P8 *((volatile unsigned int*)(0x426663A0UL)) -#define bFM3_GPIO_PDIR7_P9 *((volatile unsigned int*)(0x426663A4UL)) -#define bFM3_GPIO_PDIR7_PA *((volatile unsigned int*)(0x426663A8UL)) -#define bFM3_GPIO_PDIR7_PB *((volatile unsigned int*)(0x426663ACUL)) -#define bFM3_GPIO_PDIR7_PC *((volatile unsigned int*)(0x426663B0UL)) -#define bFM3_GPIO_PDIR7_PD *((volatile unsigned int*)(0x426663B4UL)) -#define bFM3_GPIO_PDIR7_PE *((volatile unsigned int*)(0x426663B8UL)) -#define bFM3_GPIO_PDIR7_PF *((volatile unsigned int*)(0x426663BCUL)) -#define bFM3_GPIO_PDIR8_P0 *((volatile unsigned int*)(0x42666400UL)) -#define bFM3_GPIO_PDIR8_P1 *((volatile unsigned int*)(0x42666404UL)) -#define bFM3_GPIO_PDIR8_P2 *((volatile unsigned int*)(0x42666408UL)) -#define bFM3_GPIO_PDIR8_P3 *((volatile unsigned int*)(0x4266640CUL)) -#define bFM3_GPIO_PDIR9_P0 *((volatile unsigned int*)(0x42666480UL)) -#define bFM3_GPIO_PDIR9_P1 *((volatile unsigned int*)(0x42666484UL)) -#define bFM3_GPIO_PDIR9_P2 *((volatile unsigned int*)(0x42666488UL)) -#define bFM3_GPIO_PDIR9_P3 *((volatile unsigned int*)(0x4266648CUL)) -#define bFM3_GPIO_PDIR9_P4 *((volatile unsigned int*)(0x42666490UL)) -#define bFM3_GPIO_PDIR9_P5 *((volatile unsigned int*)(0x42666494UL)) -#define bFM3_GPIO_PDIRA_P0 *((volatile unsigned int*)(0x42666500UL)) -#define bFM3_GPIO_PDIRA_P1 *((volatile unsigned int*)(0x42666504UL)) -#define bFM3_GPIO_PDIRA_P2 *((volatile unsigned int*)(0x42666508UL)) -#define bFM3_GPIO_PDIRA_P3 *((volatile unsigned int*)(0x4266650CUL)) -#define bFM3_GPIO_PDIRA_P4 *((volatile unsigned int*)(0x42666510UL)) -#define bFM3_GPIO_PDIRA_P5 *((volatile unsigned int*)(0x42666514UL)) -#define bFM3_GPIO_PDIRB_P0 *((volatile unsigned int*)(0x42666580UL)) -#define bFM3_GPIO_PDIRB_P1 *((volatile unsigned int*)(0x42666584UL)) -#define bFM3_GPIO_PDIRB_P2 *((volatile unsigned int*)(0x42666588UL)) -#define bFM3_GPIO_PDIRB_P3 *((volatile unsigned int*)(0x4266658CUL)) -#define bFM3_GPIO_PDIRB_P4 *((volatile unsigned int*)(0x42666590UL)) -#define bFM3_GPIO_PDIRB_P5 *((volatile unsigned int*)(0x42666594UL)) -#define bFM3_GPIO_PDIRB_P6 *((volatile unsigned int*)(0x42666598UL)) -#define bFM3_GPIO_PDIRB_P7 *((volatile unsigned int*)(0x4266659CUL)) -#define bFM3_GPIO_PDIRC_P0 *((volatile unsigned int*)(0x42666600UL)) -#define bFM3_GPIO_PDIRC_P1 *((volatile unsigned int*)(0x42666604UL)) -#define bFM3_GPIO_PDIRC_P2 *((volatile unsigned int*)(0x42666608UL)) -#define bFM3_GPIO_PDIRC_P3 *((volatile unsigned int*)(0x4266660CUL)) -#define bFM3_GPIO_PDIRC_P4 *((volatile unsigned int*)(0x42666610UL)) -#define bFM3_GPIO_PDIRC_P5 *((volatile unsigned int*)(0x42666614UL)) -#define bFM3_GPIO_PDIRC_P6 *((volatile unsigned int*)(0x42666618UL)) -#define bFM3_GPIO_PDIRC_P7 *((volatile unsigned int*)(0x4266661CUL)) -#define bFM3_GPIO_PDIRC_P8 *((volatile unsigned int*)(0x42666620UL)) -#define bFM3_GPIO_PDIRC_P9 *((volatile unsigned int*)(0x42666624UL)) -#define bFM3_GPIO_PDIRC_PA *((volatile unsigned int*)(0x42666628UL)) -#define bFM3_GPIO_PDIRC_PB *((volatile unsigned int*)(0x4266662CUL)) -#define bFM3_GPIO_PDIRC_PC *((volatile unsigned int*)(0x42666630UL)) -#define bFM3_GPIO_PDIRC_PD *((volatile unsigned int*)(0x42666634UL)) -#define bFM3_GPIO_PDIRC_PE *((volatile unsigned int*)(0x42666638UL)) -#define bFM3_GPIO_PDIRC_PF *((volatile unsigned int*)(0x4266663CUL)) -#define bFM3_GPIO_PDIRD_P0 *((volatile unsigned int*)(0x42666680UL)) -#define bFM3_GPIO_PDIRD_P1 *((volatile unsigned int*)(0x42666684UL)) -#define bFM3_GPIO_PDIRD_P2 *((volatile unsigned int*)(0x42666688UL)) -#define bFM3_GPIO_PDIRD_P3 *((volatile unsigned int*)(0x4266668CUL)) -#define bFM3_GPIO_PDIRE_P0 *((volatile unsigned int*)(0x42666700UL)) -#define bFM3_GPIO_PDIRE_P2 *((volatile unsigned int*)(0x42666708UL)) -#define bFM3_GPIO_PDIRE_P3 *((volatile unsigned int*)(0x4266670CUL)) -#define bFM3_GPIO_PDIRF_P0 *((volatile unsigned int*)(0x42666780UL)) -#define bFM3_GPIO_PDIRF_P1 *((volatile unsigned int*)(0x42666784UL)) -#define bFM3_GPIO_PDIRF_P2 *((volatile unsigned int*)(0x42666788UL)) -#define bFM3_GPIO_PDIRF_P3 *((volatile unsigned int*)(0x4266678CUL)) -#define bFM3_GPIO_PDIRF_P4 *((volatile unsigned int*)(0x42666790UL)) -#define bFM3_GPIO_PDIRF_P5 *((volatile unsigned int*)(0x42666794UL)) -#define bFM3_GPIO_PDIRF_P6 *((volatile unsigned int*)(0x42666798UL)) -#define bFM3_GPIO_PDOR0_P0 *((volatile unsigned int*)(0x42668000UL)) -#define bFM3_GPIO_PDOR0_P1 *((volatile unsigned int*)(0x42668004UL)) -#define bFM3_GPIO_PDOR0_P2 *((volatile unsigned int*)(0x42668008UL)) -#define bFM3_GPIO_PDOR0_P3 *((volatile unsigned int*)(0x4266800CUL)) -#define bFM3_GPIO_PDOR0_P4 *((volatile unsigned int*)(0x42668010UL)) -#define bFM3_GPIO_PDOR0_P5 *((volatile unsigned int*)(0x42668014UL)) -#define bFM3_GPIO_PDOR0_P6 *((volatile unsigned int*)(0x42668018UL)) -#define bFM3_GPIO_PDOR0_P7 *((volatile unsigned int*)(0x4266801CUL)) -#define bFM3_GPIO_PDOR0_P8 *((volatile unsigned int*)(0x42668020UL)) -#define bFM3_GPIO_PDOR0_P9 *((volatile unsigned int*)(0x42668024UL)) -#define bFM3_GPIO_PDOR1_P0 *((volatile unsigned int*)(0x42668080UL)) -#define bFM3_GPIO_PDOR1_P1 *((volatile unsigned int*)(0x42668084UL)) -#define bFM3_GPIO_PDOR1_P2 *((volatile unsigned int*)(0x42668088UL)) -#define bFM3_GPIO_PDOR1_P3 *((volatile unsigned int*)(0x4266808CUL)) -#define bFM3_GPIO_PDOR1_P4 *((volatile unsigned int*)(0x42668090UL)) -#define bFM3_GPIO_PDOR1_P5 *((volatile unsigned int*)(0x42668094UL)) -#define bFM3_GPIO_PDOR1_P6 *((volatile unsigned int*)(0x42668098UL)) -#define bFM3_GPIO_PDOR1_P7 *((volatile unsigned int*)(0x4266809CUL)) -#define bFM3_GPIO_PDOR1_P8 *((volatile unsigned int*)(0x426680A0UL)) -#define bFM3_GPIO_PDOR1_P9 *((volatile unsigned int*)(0x426680A4UL)) -#define bFM3_GPIO_PDOR1_PA *((volatile unsigned int*)(0x426680A8UL)) -#define bFM3_GPIO_PDOR1_PB *((volatile unsigned int*)(0x426680ACUL)) -#define bFM3_GPIO_PDOR1_PC *((volatile unsigned int*)(0x426680B0UL)) -#define bFM3_GPIO_PDOR1_PD *((volatile unsigned int*)(0x426680B4UL)) -#define bFM3_GPIO_PDOR1_PE *((volatile unsigned int*)(0x426680B8UL)) -#define bFM3_GPIO_PDOR1_PF *((volatile unsigned int*)(0x426680BCUL)) -#define bFM3_GPIO_PDOR2_P0 *((volatile unsigned int*)(0x42668100UL)) -#define bFM3_GPIO_PDOR2_P1 *((volatile unsigned int*)(0x42668104UL)) -#define bFM3_GPIO_PDOR2_P2 *((volatile unsigned int*)(0x42668108UL)) -#define bFM3_GPIO_PDOR2_P3 *((volatile unsigned int*)(0x4266810CUL)) -#define bFM3_GPIO_PDOR2_P4 *((volatile unsigned int*)(0x42668110UL)) -#define bFM3_GPIO_PDOR2_P5 *((volatile unsigned int*)(0x42668114UL)) -#define bFM3_GPIO_PDOR2_P6 *((volatile unsigned int*)(0x42668118UL)) -#define bFM3_GPIO_PDOR2_P7 *((volatile unsigned int*)(0x4266811CUL)) -#define bFM3_GPIO_PDOR2_P8 *((volatile unsigned int*)(0x42668120UL)) -#define bFM3_GPIO_PDOR2_P9 *((volatile unsigned int*)(0x42668124UL)) -#define bFM3_GPIO_PDOR3_P0 *((volatile unsigned int*)(0x42668180UL)) -#define bFM3_GPIO_PDOR3_P1 *((volatile unsigned int*)(0x42668184UL)) -#define bFM3_GPIO_PDOR3_P2 *((volatile unsigned int*)(0x42668188UL)) -#define bFM3_GPIO_PDOR3_P3 *((volatile unsigned int*)(0x4266818CUL)) -#define bFM3_GPIO_PDOR3_P4 *((volatile unsigned int*)(0x42668190UL)) -#define bFM3_GPIO_PDOR3_P5 *((volatile unsigned int*)(0x42668194UL)) -#define bFM3_GPIO_PDOR3_P6 *((volatile unsigned int*)(0x42668198UL)) -#define bFM3_GPIO_PDOR3_P7 *((volatile unsigned int*)(0x4266819CUL)) -#define bFM3_GPIO_PDOR3_P8 *((volatile unsigned int*)(0x426681A0UL)) -#define bFM3_GPIO_PDOR3_P9 *((volatile unsigned int*)(0x426681A4UL)) -#define bFM3_GPIO_PDOR3_PA *((volatile unsigned int*)(0x426681A8UL)) -#define bFM3_GPIO_PDOR3_PB *((volatile unsigned int*)(0x426681ACUL)) -#define bFM3_GPIO_PDOR3_PC *((volatile unsigned int*)(0x426681B0UL)) -#define bFM3_GPIO_PDOR3_PD *((volatile unsigned int*)(0x426681B4UL)) -#define bFM3_GPIO_PDOR3_PE *((volatile unsigned int*)(0x426681B8UL)) -#define bFM3_GPIO_PDOR3_PF *((volatile unsigned int*)(0x426681BCUL)) -#define bFM3_GPIO_PDOR4_P0 *((volatile unsigned int*)(0x42668200UL)) -#define bFM3_GPIO_PDOR4_P1 *((volatile unsigned int*)(0x42668204UL)) -#define bFM3_GPIO_PDOR4_P2 *((volatile unsigned int*)(0x42668208UL)) -#define bFM3_GPIO_PDOR4_P3 *((volatile unsigned int*)(0x4266820CUL)) -#define bFM3_GPIO_PDOR4_P4 *((volatile unsigned int*)(0x42668210UL)) -#define bFM3_GPIO_PDOR4_P5 *((volatile unsigned int*)(0x42668214UL)) -#define bFM3_GPIO_PDOR4_P6 *((volatile unsigned int*)(0x42668218UL)) -#define bFM3_GPIO_PDOR4_P7 *((volatile unsigned int*)(0x4266821CUL)) -#define bFM3_GPIO_PDOR4_P8 *((volatile unsigned int*)(0x42668220UL)) -#define bFM3_GPIO_PDOR4_P9 *((volatile unsigned int*)(0x42668224UL)) -#define bFM3_GPIO_PDOR4_PA *((volatile unsigned int*)(0x42668228UL)) -#define bFM3_GPIO_PDOR4_PB *((volatile unsigned int*)(0x4266822CUL)) -#define bFM3_GPIO_PDOR4_PC *((volatile unsigned int*)(0x42668230UL)) -#define bFM3_GPIO_PDOR4_PD *((volatile unsigned int*)(0x42668234UL)) -#define bFM3_GPIO_PDOR4_PE *((volatile unsigned int*)(0x42668238UL)) -#define bFM3_GPIO_PDOR5_P0 *((volatile unsigned int*)(0x42668280UL)) -#define bFM3_GPIO_PDOR5_P1 *((volatile unsigned int*)(0x42668284UL)) -#define bFM3_GPIO_PDOR5_P2 *((volatile unsigned int*)(0x42668288UL)) -#define bFM3_GPIO_PDOR5_P3 *((volatile unsigned int*)(0x4266828CUL)) -#define bFM3_GPIO_PDOR5_P4 *((volatile unsigned int*)(0x42668290UL)) -#define bFM3_GPIO_PDOR5_P5 *((volatile unsigned int*)(0x42668294UL)) -#define bFM3_GPIO_PDOR5_P6 *((volatile unsigned int*)(0x42668298UL)) -#define bFM3_GPIO_PDOR5_P7 *((volatile unsigned int*)(0x4266829CUL)) -#define bFM3_GPIO_PDOR5_P8 *((volatile unsigned int*)(0x426682A0UL)) -#define bFM3_GPIO_PDOR5_P9 *((volatile unsigned int*)(0x426682A4UL)) -#define bFM3_GPIO_PDOR5_PA *((volatile unsigned int*)(0x426682A8UL)) -#define bFM3_GPIO_PDOR5_PB *((volatile unsigned int*)(0x426682ACUL)) -#define bFM3_GPIO_PDOR5_PC *((volatile unsigned int*)(0x426682B0UL)) -#define bFM3_GPIO_PDOR5_PD *((volatile unsigned int*)(0x426682B4UL)) -#define bFM3_GPIO_PDOR6_P0 *((volatile unsigned int*)(0x42668300UL)) -#define bFM3_GPIO_PDOR6_P1 *((volatile unsigned int*)(0x42668304UL)) -#define bFM3_GPIO_PDOR6_P2 *((volatile unsigned int*)(0x42668308UL)) -#define bFM3_GPIO_PDOR7_P0 *((volatile unsigned int*)(0x42668380UL)) -#define bFM3_GPIO_PDOR7_P1 *((volatile unsigned int*)(0x42668384UL)) -#define bFM3_GPIO_PDOR7_P2 *((volatile unsigned int*)(0x42668388UL)) -#define bFM3_GPIO_PDOR7_P3 *((volatile unsigned int*)(0x4266838CUL)) -#define bFM3_GPIO_PDOR7_P4 *((volatile unsigned int*)(0x42668390UL)) -#define bFM3_GPIO_PDOR7_P5 *((volatile unsigned int*)(0x42668394UL)) -#define bFM3_GPIO_PDOR7_P6 *((volatile unsigned int*)(0x42668398UL)) -#define bFM3_GPIO_PDOR7_P7 *((volatile unsigned int*)(0x4266839CUL)) -#define bFM3_GPIO_PDOR7_P8 *((volatile unsigned int*)(0x426683A0UL)) -#define bFM3_GPIO_PDOR7_P9 *((volatile unsigned int*)(0x426683A4UL)) -#define bFM3_GPIO_PDOR7_PA *((volatile unsigned int*)(0x426683A8UL)) -#define bFM3_GPIO_PDOR7_PB *((volatile unsigned int*)(0x426683ACUL)) -#define bFM3_GPIO_PDOR7_PC *((volatile unsigned int*)(0x426683B0UL)) -#define bFM3_GPIO_PDOR7_PD *((volatile unsigned int*)(0x426683B4UL)) -#define bFM3_GPIO_PDOR7_PE *((volatile unsigned int*)(0x426683B8UL)) -#define bFM3_GPIO_PDOR7_PF *((volatile unsigned int*)(0x426683BCUL)) -#define bFM3_GPIO_PDOR8_P0 *((volatile unsigned int*)(0x42668400UL)) -#define bFM3_GPIO_PDOR8_P1 *((volatile unsigned int*)(0x42668404UL)) -#define bFM3_GPIO_PDOR8_P2 *((volatile unsigned int*)(0x42668408UL)) -#define bFM3_GPIO_PDOR8_P3 *((volatile unsigned int*)(0x4266840CUL)) -#define bFM3_GPIO_PDOR9_P0 *((volatile unsigned int*)(0x42668480UL)) -#define bFM3_GPIO_PDOR9_P1 *((volatile unsigned int*)(0x42668484UL)) -#define bFM3_GPIO_PDOR9_P2 *((volatile unsigned int*)(0x42668488UL)) -#define bFM3_GPIO_PDOR9_P3 *((volatile unsigned int*)(0x4266848CUL)) -#define bFM3_GPIO_PDOR9_P4 *((volatile unsigned int*)(0x42668490UL)) -#define bFM3_GPIO_PDOR9_P5 *((volatile unsigned int*)(0x42668494UL)) -#define bFM3_GPIO_PDORA_P0 *((volatile unsigned int*)(0x42668500UL)) -#define bFM3_GPIO_PDORA_P1 *((volatile unsigned int*)(0x42668504UL)) -#define bFM3_GPIO_PDORA_P2 *((volatile unsigned int*)(0x42668508UL)) -#define bFM3_GPIO_PDORA_P3 *((volatile unsigned int*)(0x4266850CUL)) -#define bFM3_GPIO_PDORA_P4 *((volatile unsigned int*)(0x42668510UL)) -#define bFM3_GPIO_PDORA_P5 *((volatile unsigned int*)(0x42668514UL)) -#define bFM3_GPIO_PDORB_P0 *((volatile unsigned int*)(0x42668580UL)) -#define bFM3_GPIO_PDORB_P1 *((volatile unsigned int*)(0x42668584UL)) -#define bFM3_GPIO_PDORB_P2 *((volatile unsigned int*)(0x42668588UL)) -#define bFM3_GPIO_PDORB_P3 *((volatile unsigned int*)(0x4266858CUL)) -#define bFM3_GPIO_PDORB_P4 *((volatile unsigned int*)(0x42668590UL)) -#define bFM3_GPIO_PDORB_P5 *((volatile unsigned int*)(0x42668594UL)) -#define bFM3_GPIO_PDORB_P6 *((volatile unsigned int*)(0x42668598UL)) -#define bFM3_GPIO_PDORB_P7 *((volatile unsigned int*)(0x4266859CUL)) -#define bFM3_GPIO_PDORC_P0 *((volatile unsigned int*)(0x42668600UL)) -#define bFM3_GPIO_PDORC_P1 *((volatile unsigned int*)(0x42668604UL)) -#define bFM3_GPIO_PDORC_P2 *((volatile unsigned int*)(0x42668608UL)) -#define bFM3_GPIO_PDORC_P3 *((volatile unsigned int*)(0x4266860CUL)) -#define bFM3_GPIO_PDORC_P4 *((volatile unsigned int*)(0x42668610UL)) -#define bFM3_GPIO_PDORC_P5 *((volatile unsigned int*)(0x42668614UL)) -#define bFM3_GPIO_PDORC_P6 *((volatile unsigned int*)(0x42668618UL)) -#define bFM3_GPIO_PDORC_P7 *((volatile unsigned int*)(0x4266861CUL)) -#define bFM3_GPIO_PDORC_P8 *((volatile unsigned int*)(0x42668620UL)) -#define bFM3_GPIO_PDORC_P9 *((volatile unsigned int*)(0x42668624UL)) -#define bFM3_GPIO_PDORC_PA *((volatile unsigned int*)(0x42668628UL)) -#define bFM3_GPIO_PDORC_PB *((volatile unsigned int*)(0x4266862CUL)) -#define bFM3_GPIO_PDORC_PC *((volatile unsigned int*)(0x42668630UL)) -#define bFM3_GPIO_PDORC_PD *((volatile unsigned int*)(0x42668634UL)) -#define bFM3_GPIO_PDORC_PE *((volatile unsigned int*)(0x42668638UL)) -#define bFM3_GPIO_PDORC_PF *((volatile unsigned int*)(0x4266863CUL)) -#define bFM3_GPIO_PDORD_P0 *((volatile unsigned int*)(0x42668680UL)) -#define bFM3_GPIO_PDORD_P1 *((volatile unsigned int*)(0x42668684UL)) -#define bFM3_GPIO_PDORD_P2 *((volatile unsigned int*)(0x42668688UL)) -#define bFM3_GPIO_PDORD_P3 *((volatile unsigned int*)(0x4266868CUL)) -#define bFM3_GPIO_PDORE_P0 *((volatile unsigned int*)(0x42668700UL)) -#define bFM3_GPIO_PDORE_P2 *((volatile unsigned int*)(0x42668708UL)) -#define bFM3_GPIO_PDORE_P3 *((volatile unsigned int*)(0x4266870CUL)) -#define bFM3_GPIO_PDORF_P0 *((volatile unsigned int*)(0x42668780UL)) -#define bFM3_GPIO_PDORF_P1 *((volatile unsigned int*)(0x42668784UL)) -#define bFM3_GPIO_PDORF_P2 *((volatile unsigned int*)(0x42668788UL)) -#define bFM3_GPIO_PDORF_P3 *((volatile unsigned int*)(0x4266878CUL)) -#define bFM3_GPIO_PDORF_P4 *((volatile unsigned int*)(0x42668790UL)) -#define bFM3_GPIO_PDORF_P5 *((volatile unsigned int*)(0x42668794UL)) -#define bFM3_GPIO_PDORF_P6 *((volatile unsigned int*)(0x42668798UL)) -#define bFM3_GPIO_ADE_AN0 *((volatile unsigned int*)(0x4266A000UL)) -#define bFM3_GPIO_ADE_AN1 *((volatile unsigned int*)(0x4266A004UL)) -#define bFM3_GPIO_ADE_AN2 *((volatile unsigned int*)(0x4266A008UL)) -#define bFM3_GPIO_ADE_AN3 *((volatile unsigned int*)(0x4266A00CUL)) -#define bFM3_GPIO_ADE_AN4 *((volatile unsigned int*)(0x4266A010UL)) -#define bFM3_GPIO_ADE_AN5 *((volatile unsigned int*)(0x4266A014UL)) -#define bFM3_GPIO_ADE_AN6 *((volatile unsigned int*)(0x4266A018UL)) -#define bFM3_GPIO_ADE_AN7 *((volatile unsigned int*)(0x4266A01CUL)) -#define bFM3_GPIO_ADE_AN8 *((volatile unsigned int*)(0x4266A020UL)) -#define bFM3_GPIO_ADE_AN9 *((volatile unsigned int*)(0x4266A024UL)) -#define bFM3_GPIO_ADE_AN10 *((volatile unsigned int*)(0x4266A028UL)) -#define bFM3_GPIO_ADE_AN11 *((volatile unsigned int*)(0x4266A02CUL)) -#define bFM3_GPIO_ADE_AN12 *((volatile unsigned int*)(0x4266A030UL)) -#define bFM3_GPIO_ADE_AN13 *((volatile unsigned int*)(0x4266A034UL)) -#define bFM3_GPIO_ADE_AN14 *((volatile unsigned int*)(0x4266A038UL)) -#define bFM3_GPIO_ADE_AN15 *((volatile unsigned int*)(0x4266A03CUL)) -#define bFM3_GPIO_ADE_AN16 *((volatile unsigned int*)(0x4266A040UL)) -#define bFM3_GPIO_ADE_AN17 *((volatile unsigned int*)(0x4266A044UL)) -#define bFM3_GPIO_ADE_AN18 *((volatile unsigned int*)(0x4266A048UL)) -#define bFM3_GPIO_ADE_AN19 *((volatile unsigned int*)(0x4266A04CUL)) -#define bFM3_GPIO_ADE_AN20 *((volatile unsigned int*)(0x4266A050UL)) -#define bFM3_GPIO_ADE_AN21 *((volatile unsigned int*)(0x4266A054UL)) -#define bFM3_GPIO_ADE_AN22 *((volatile unsigned int*)(0x4266A058UL)) -#define bFM3_GPIO_ADE_AN23 *((volatile unsigned int*)(0x4266A05CUL)) -#define bFM3_GPIO_ADE_AN24 *((volatile unsigned int*)(0x4266A060UL)) -#define bFM3_GPIO_ADE_AN25 *((volatile unsigned int*)(0x4266A064UL)) -#define bFM3_GPIO_ADE_AN26 *((volatile unsigned int*)(0x4266A068UL)) -#define bFM3_GPIO_ADE_AN27 *((volatile unsigned int*)(0x4266A06CUL)) -#define bFM3_GPIO_ADE_AN28 *((volatile unsigned int*)(0x4266A070UL)) -#define bFM3_GPIO_ADE_AN29 *((volatile unsigned int*)(0x4266A074UL)) -#define bFM3_GPIO_ADE_AN30 *((volatile unsigned int*)(0x4266A078UL)) -#define bFM3_GPIO_ADE_AN31 *((volatile unsigned int*)(0x4266A07CUL)) -#define bFM3_GPIO_SPSR_SUBXC *((volatile unsigned int*)(0x4266B000UL)) -#define bFM3_GPIO_SPSR_MAINXC *((volatile unsigned int*)(0x4266B008UL)) -#define bFM3_GPIO_SPSR_USB0C *((volatile unsigned int*)(0x4266B010UL)) -#define bFM3_GPIO_SPSR_USB1C *((volatile unsigned int*)(0x4266B014UL)) -#define bFM3_GPIO_EPFR00_NMIS *((volatile unsigned int*)(0x4266C000UL)) -#define bFM3_GPIO_EPFR00_CROUTE0 *((volatile unsigned int*)(0x4266C004UL)) -#define bFM3_GPIO_EPFR00_CROUTE1 *((volatile unsigned int*)(0x4266C008UL)) -#define bFM3_GPIO_EPFR00_SUBOUTE0 *((volatile unsigned int*)(0x4266C018UL)) -#define bFM3_GPIO_EPFR00_SUBOUTE1 *((volatile unsigned int*)(0x4266C01CUL)) -#define bFM3_GPIO_EPFR00_USBP0E *((volatile unsigned int*)(0x4266C024UL)) -#define bFM3_GPIO_EPFR00_USBP1E *((volatile unsigned int*)(0x4266C034UL)) -#define bFM3_GPIO_EPFR00_JTAGEN0B *((volatile unsigned int*)(0x4266C040UL)) -#define bFM3_GPIO_EPFR00_JTAGEN1S *((volatile unsigned int*)(0x4266C044UL)) -#define bFM3_GPIO_EPFR00_TRC0E *((volatile unsigned int*)(0x4266C060UL)) -#define bFM3_GPIO_EPFR00_TRC1E *((volatile unsigned int*)(0x4266C064UL)) -#define bFM3_GPIO_EPFR01_RTO00E0 *((volatile unsigned int*)(0x4266C080UL)) -#define bFM3_GPIO_EPFR01_RTO00E1 *((volatile unsigned int*)(0x4266C084UL)) -#define bFM3_GPIO_EPFR01_RTO01E0 *((volatile unsigned int*)(0x4266C088UL)) -#define bFM3_GPIO_EPFR01_RTO01E1 *((volatile unsigned int*)(0x4266C08CUL)) -#define bFM3_GPIO_EPFR01_RTO02E0 *((volatile unsigned int*)(0x4266C090UL)) -#define bFM3_GPIO_EPFR01_RTO02E1 *((volatile unsigned int*)(0x4266C094UL)) -#define bFM3_GPIO_EPFR01_RTO03E0 *((volatile unsigned int*)(0x4266C098UL)) -#define bFM3_GPIO_EPFR01_RTO03E1 *((volatile unsigned int*)(0x4266C09CUL)) -#define bFM3_GPIO_EPFR01_RTO04E0 *((volatile unsigned int*)(0x4266C0A0UL)) -#define bFM3_GPIO_EPFR01_RTO04E1 *((volatile unsigned int*)(0x4266C0A4UL)) -#define bFM3_GPIO_EPFR01_RTO05E0 *((volatile unsigned int*)(0x4266C0A8UL)) -#define bFM3_GPIO_EPFR01_RTO05E1 *((volatile unsigned int*)(0x4266C0ACUL)) -#define bFM3_GPIO_EPFR01_DTTI0C *((volatile unsigned int*)(0x4266C0B0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S0 *((volatile unsigned int*)(0x4266C0C0UL)) -#define bFM3_GPIO_EPFR01_DTTI0S1 *((volatile unsigned int*)(0x4266C0C4UL)) -#define bFM3_GPIO_EPFR01_FRCK0S0 *((volatile unsigned int*)(0x4266C0C8UL)) -#define bFM3_GPIO_EPFR01_FRCK0S1 *((volatile unsigned int*)(0x4266C0CCUL)) -#define bFM3_GPIO_EPFR01_IC00S0 *((volatile unsigned int*)(0x4266C0D0UL)) -#define bFM3_GPIO_EPFR01_IC00S1 *((volatile unsigned int*)(0x4266C0D4UL)) -#define bFM3_GPIO_EPFR01_IC00S2 *((volatile unsigned int*)(0x4266C0D8UL)) -#define bFM3_GPIO_EPFR01_IC01S0 *((volatile unsigned int*)(0x4266C0DCUL)) -#define bFM3_GPIO_EPFR01_IC01S1 *((volatile unsigned int*)(0x4266C0E0UL)) -#define bFM3_GPIO_EPFR01_IC01S2 *((volatile unsigned int*)(0x4266C0E4UL)) -#define bFM3_GPIO_EPFR01_IC02S0 *((volatile unsigned int*)(0x4266C0E8UL)) -#define bFM3_GPIO_EPFR01_IC02S1 *((volatile unsigned int*)(0x4266C0ECUL)) -#define bFM3_GPIO_EPFR01_IC02S2 *((volatile unsigned int*)(0x4266C0F0UL)) -#define bFM3_GPIO_EPFR01_IC03S0 *((volatile unsigned int*)(0x4266C0F4UL)) -#define bFM3_GPIO_EPFR01_IC03S1 *((volatile unsigned int*)(0x4266C0F8UL)) -#define bFM3_GPIO_EPFR01_IC03S2 *((volatile unsigned int*)(0x4266C0FCUL)) -#define bFM3_GPIO_EPFR02_RTO10E0 *((volatile unsigned int*)(0x4266C100UL)) -#define bFM3_GPIO_EPFR02_RTO10E1 *((volatile unsigned int*)(0x4266C104UL)) -#define bFM3_GPIO_EPFR02_RTO11E0 *((volatile unsigned int*)(0x4266C108UL)) -#define bFM3_GPIO_EPFR02_RTO11E1 *((volatile unsigned int*)(0x4266C10CUL)) -#define bFM3_GPIO_EPFR02_RTO12E0 *((volatile unsigned int*)(0x4266C110UL)) -#define bFM3_GPIO_EPFR02_RTO12E1 *((volatile unsigned int*)(0x4266C114UL)) -#define bFM3_GPIO_EPFR02_RTO13E0 *((volatile unsigned int*)(0x4266C118UL)) -#define bFM3_GPIO_EPFR02_RTO13E1 *((volatile unsigned int*)(0x4266C11CUL)) -#define bFM3_GPIO_EPFR02_RTO14E0 *((volatile unsigned int*)(0x4266C120UL)) -#define bFM3_GPIO_EPFR02_RTO14E1 *((volatile unsigned int*)(0x4266C124UL)) -#define bFM3_GPIO_EPFR02_RTO15E0 *((volatile unsigned int*)(0x4266C128UL)) -#define bFM3_GPIO_EPFR02_RTO15E1 *((volatile unsigned int*)(0x4266C12CUL)) -#define bFM3_GPIO_EPFR02_DTTI1C *((volatile unsigned int*)(0x4266C130UL)) -#define bFM3_GPIO_EPFR02_DTTI1S0 *((volatile unsigned int*)(0x4266C140UL)) -#define bFM3_GPIO_EPFR02_DTTI1S1 *((volatile unsigned int*)(0x4266C144UL)) -#define bFM3_GPIO_EPFR02_FRCK1S0 *((volatile unsigned int*)(0x4266C148UL)) -#define bFM3_GPIO_EPFR02_FRCK1S1 *((volatile unsigned int*)(0x4266C14CUL)) -#define bFM3_GPIO_EPFR02_IC10S0 *((volatile unsigned int*)(0x4266C150UL)) -#define bFM3_GPIO_EPFR02_IC10S1 *((volatile unsigned int*)(0x4266C154UL)) -#define bFM3_GPIO_EPFR02_IC10S2 *((volatile unsigned int*)(0x4266C158UL)) -#define bFM3_GPIO_EPFR02_IC11S0 *((volatile unsigned int*)(0x4266C15CUL)) -#define bFM3_GPIO_EPFR02_IC11S1 *((volatile unsigned int*)(0x4266C160UL)) -#define bFM3_GPIO_EPFR02_IC11S2 *((volatile unsigned int*)(0x4266C164UL)) -#define bFM3_GPIO_EPFR02_IC12S0 *((volatile unsigned int*)(0x4266C168UL)) -#define bFM3_GPIO_EPFR02_IC12S1 *((volatile unsigned int*)(0x4266C16CUL)) -#define bFM3_GPIO_EPFR02_IC12S2 *((volatile unsigned int*)(0x4266C170UL)) -#define bFM3_GPIO_EPFR02_IC13S0 *((volatile unsigned int*)(0x4266C174UL)) -#define bFM3_GPIO_EPFR02_IC13S1 *((volatile unsigned int*)(0x4266C178UL)) -#define bFM3_GPIO_EPFR02_IC13S2 *((volatile unsigned int*)(0x4266C17CUL)) -#define bFM3_GPIO_EPFR03_RTO20E0 *((volatile unsigned int*)(0x4266C180UL)) -#define bFM3_GPIO_EPFR03_RTO20E1 *((volatile unsigned int*)(0x4266C184UL)) -#define bFM3_GPIO_EPFR03_RTO21E0 *((volatile unsigned int*)(0x4266C188UL)) -#define bFM3_GPIO_EPFR03_RTO21E1 *((volatile unsigned int*)(0x4266C18CUL)) -#define bFM3_GPIO_EPFR03_RTO22E0 *((volatile unsigned int*)(0x4266C190UL)) -#define bFM3_GPIO_EPFR03_RTO22E1 *((volatile unsigned int*)(0x4266C194UL)) -#define bFM3_GPIO_EPFR03_RTO23E0 *((volatile unsigned int*)(0x4266C198UL)) -#define bFM3_GPIO_EPFR03_RTO23E1 *((volatile unsigned int*)(0x4266C19CUL)) -#define bFM3_GPIO_EPFR03_RTO24E0 *((volatile unsigned int*)(0x4266C1A0UL)) -#define bFM3_GPIO_EPFR03_RTO24E1 *((volatile unsigned int*)(0x4266C1A4UL)) -#define bFM3_GPIO_EPFR03_RTO25E0 *((volatile unsigned int*)(0x4266C1A8UL)) -#define bFM3_GPIO_EPFR03_RTO25E1 *((volatile unsigned int*)(0x4266C1ACUL)) -#define bFM3_GPIO_EPFR03_DTTI2C *((volatile unsigned int*)(0x4266C1B0UL)) -#define bFM3_GPIO_EPFR03_DTTI2S0 *((volatile unsigned int*)(0x4266C1C0UL)) -#define bFM3_GPIO_EPFR03_DTTI2S1 *((volatile unsigned int*)(0x4266C1C4UL)) -#define bFM3_GPIO_EPFR03_FRCK2S0 *((volatile unsigned int*)(0x4266C1C8UL)) -#define bFM3_GPIO_EPFR03_FRCK2S1 *((volatile unsigned int*)(0x4266C1CCUL)) -#define bFM3_GPIO_EPFR03_IC20S0 *((volatile unsigned int*)(0x4266C1D0UL)) -#define bFM3_GPIO_EPFR03_IC20S1 *((volatile unsigned int*)(0x4266C1D4UL)) -#define bFM3_GPIO_EPFR03_IC20S2 *((volatile unsigned int*)(0x4266C1D8UL)) -#define bFM3_GPIO_EPFR03_IC21S0 *((volatile unsigned int*)(0x4266C1DCUL)) -#define bFM3_GPIO_EPFR03_IC21S1 *((volatile unsigned int*)(0x4266C1E0UL)) -#define bFM3_GPIO_EPFR03_IC21S2 *((volatile unsigned int*)(0x4266C1E4UL)) -#define bFM3_GPIO_EPFR03_IC22S0 *((volatile unsigned int*)(0x4266C1E8UL)) -#define bFM3_GPIO_EPFR03_IC22S1 *((volatile unsigned int*)(0x4266C1ECUL)) -#define bFM3_GPIO_EPFR03_IC22S2 *((volatile unsigned int*)(0x4266C1F0UL)) -#define bFM3_GPIO_EPFR03_IC23S0 *((volatile unsigned int*)(0x4266C1F4UL)) -#define bFM3_GPIO_EPFR03_IC23S1 *((volatile unsigned int*)(0x4266C1F8UL)) -#define bFM3_GPIO_EPFR03_IC23S2 *((volatile unsigned int*)(0x4266C1FCUL)) -#define bFM3_GPIO_EPFR04_TIOA0E0 *((volatile unsigned int*)(0x4266C208UL)) -#define bFM3_GPIO_EPFR04_TIOA0E1 *((volatile unsigned int*)(0x4266C20CUL)) -#define bFM3_GPIO_EPFR04_TIOB0S0 *((volatile unsigned int*)(0x4266C210UL)) -#define bFM3_GPIO_EPFR04_TIOB0S1 *((volatile unsigned int*)(0x4266C214UL)) -#define bFM3_GPIO_EPFR04_TIOA1S0 *((volatile unsigned int*)(0x4266C220UL)) -#define bFM3_GPIO_EPFR04_TIOA1S1 *((volatile unsigned int*)(0x4266C224UL)) -#define bFM3_GPIO_EPFR04_TIOA1E0 *((volatile unsigned int*)(0x4266C228UL)) -#define bFM3_GPIO_EPFR04_TIOA1E1 *((volatile unsigned int*)(0x4266C22CUL)) -#define bFM3_GPIO_EPFR04_TIOB1S0 *((volatile unsigned int*)(0x4266C230UL)) -#define bFM3_GPIO_EPFR04_TIOB1S1 *((volatile unsigned int*)(0x4266C234UL)) -#define bFM3_GPIO_EPFR04_TIOA2E0 *((volatile unsigned int*)(0x4266C248UL)) -#define bFM3_GPIO_EPFR04_TIOA2E1 *((volatile unsigned int*)(0x4266C24CUL)) -#define bFM3_GPIO_EPFR04_TIOB2S0 *((volatile unsigned int*)(0x4266C250UL)) -#define bFM3_GPIO_EPFR04_TIOB2S1 *((volatile unsigned int*)(0x4266C254UL)) -#define bFM3_GPIO_EPFR04_TIOA3S0 *((volatile unsigned int*)(0x4266C260UL)) -#define bFM3_GPIO_EPFR04_TIOA3S1 *((volatile unsigned int*)(0x4266C264UL)) -#define bFM3_GPIO_EPFR04_TIOA3E0 *((volatile unsigned int*)(0x4266C268UL)) -#define bFM3_GPIO_EPFR04_TIOA3E1 *((volatile unsigned int*)(0x4266C26CUL)) -#define bFM3_GPIO_EPFR04_TIOB3S0 *((volatile unsigned int*)(0x4266C270UL)) -#define bFM3_GPIO_EPFR04_TIOB3S1 *((volatile unsigned int*)(0x4266C274UL)) -#define bFM3_GPIO_EPFR05_TIOA4E0 *((volatile unsigned int*)(0x4266C288UL)) -#define bFM3_GPIO_EPFR05_TIOA4E1 *((volatile unsigned int*)(0x4266C28CUL)) -#define bFM3_GPIO_EPFR05_TIOB4S0 *((volatile unsigned int*)(0x4266C290UL)) -#define bFM3_GPIO_EPFR05_TIOB4S1 *((volatile unsigned int*)(0x4266C294UL)) -#define bFM3_GPIO_EPFR05_TIOA5S0 *((volatile unsigned int*)(0x4266C2A0UL)) -#define bFM3_GPIO_EPFR05_TIOA5S1 *((volatile unsigned int*)(0x4266C2A4UL)) -#define bFM3_GPIO_EPFR05_TIOA5E0 *((volatile unsigned int*)(0x4266C2A8UL)) -#define bFM3_GPIO_EPFR05_TIOA5E1 *((volatile unsigned int*)(0x4266C2ACUL)) -#define bFM3_GPIO_EPFR05_TIOB5S0 *((volatile unsigned int*)(0x4266C2B0UL)) -#define bFM3_GPIO_EPFR05_TIOB5S1 *((volatile unsigned int*)(0x4266C2B4UL)) -#define bFM3_GPIO_EPFR05_TIOA6E0 *((volatile unsigned int*)(0x4266C2C8UL)) -#define bFM3_GPIO_EPFR05_TIOA6E1 *((volatile unsigned int*)(0x4266C2CCUL)) -#define bFM3_GPIO_EPFR05_TIOB6S0 *((volatile unsigned int*)(0x4266C2D0UL)) -#define bFM3_GPIO_EPFR05_TIOB6S1 *((volatile unsigned int*)(0x4266C2D4UL)) -#define bFM3_GPIO_EPFR05_TIOA7S0 *((volatile unsigned int*)(0x4266C2E0UL)) -#define bFM3_GPIO_EPFR05_TIOA7S1 *((volatile unsigned int*)(0x4266C2E4UL)) -#define bFM3_GPIO_EPFR05_TIOA7E0 *((volatile unsigned int*)(0x4266C2E8UL)) -#define bFM3_GPIO_EPFR05_TIOA7E1 *((volatile unsigned int*)(0x4266C2ECUL)) -#define bFM3_GPIO_EPFR05_TIOB7S0 *((volatile unsigned int*)(0x4266C2F0UL)) -#define bFM3_GPIO_EPFR05_TIOB7S1 *((volatile unsigned int*)(0x4266C2F4UL)) -#define bFM3_GPIO_EPFR06_EINT00S0 *((volatile unsigned int*)(0x4266C300UL)) -#define bFM3_GPIO_EPFR06_EINT00S1 *((volatile unsigned int*)(0x4266C304UL)) -#define bFM3_GPIO_EPFR06_EINT01S0 *((volatile unsigned int*)(0x4266C308UL)) -#define bFM3_GPIO_EPFR06_EINT01S1 *((volatile unsigned int*)(0x4266C30CUL)) -#define bFM3_GPIO_EPFR06_EINT02S0 *((volatile unsigned int*)(0x4266C310UL)) -#define bFM3_GPIO_EPFR06_EINT02S1 *((volatile unsigned int*)(0x4266C314UL)) -#define bFM3_GPIO_EPFR06_EINT03S0 *((volatile unsigned int*)(0x4266C318UL)) -#define bFM3_GPIO_EPFR06_EINT03S1 *((volatile unsigned int*)(0x4266C31CUL)) -#define bFM3_GPIO_EPFR06_EINT04S0 *((volatile unsigned int*)(0x4266C320UL)) -#define bFM3_GPIO_EPFR06_EINT04S1 *((volatile unsigned int*)(0x4266C324UL)) -#define bFM3_GPIO_EPFR06_EINT05S0 *((volatile unsigned int*)(0x4266C328UL)) -#define bFM3_GPIO_EPFR06_EINT05S1 *((volatile unsigned int*)(0x4266C32CUL)) -#define bFM3_GPIO_EPFR06_EINT06S0 *((volatile unsigned int*)(0x4266C330UL)) -#define bFM3_GPIO_EPFR06_EINT06S1 *((volatile unsigned int*)(0x4266C334UL)) -#define bFM3_GPIO_EPFR06_EINT07S0 *((volatile unsigned int*)(0x4266C338UL)) -#define bFM3_GPIO_EPFR06_EINT07S1 *((volatile unsigned int*)(0x4266C33CUL)) -#define bFM3_GPIO_EPFR06_EINT08S0 *((volatile unsigned int*)(0x4266C340UL)) -#define bFM3_GPIO_EPFR06_EINT08S1 *((volatile unsigned int*)(0x4266C344UL)) -#define bFM3_GPIO_EPFR06_EINT09S0 *((volatile unsigned int*)(0x4266C348UL)) -#define bFM3_GPIO_EPFR06_EINT09S1 *((volatile unsigned int*)(0x4266C34CUL)) -#define bFM3_GPIO_EPFR06_EINT10S0 *((volatile unsigned int*)(0x4266C350UL)) -#define bFM3_GPIO_EPFR06_EINT10S1 *((volatile unsigned int*)(0x4266C354UL)) -#define bFM3_GPIO_EPFR06_EINT11S0 *((volatile unsigned int*)(0x4266C358UL)) -#define bFM3_GPIO_EPFR06_EINT11S1 *((volatile unsigned int*)(0x4266C35CUL)) -#define bFM3_GPIO_EPFR06_EINT12S0 *((volatile unsigned int*)(0x4266C360UL)) -#define bFM3_GPIO_EPFR06_EINT12S1 *((volatile unsigned int*)(0x4266C364UL)) -#define bFM3_GPIO_EPFR06_EINT13S0 *((volatile unsigned int*)(0x4266C368UL)) -#define bFM3_GPIO_EPFR06_EINT13S1 *((volatile unsigned int*)(0x4266C36CUL)) -#define bFM3_GPIO_EPFR06_EINT14S0 *((volatile unsigned int*)(0x4266C370UL)) -#define bFM3_GPIO_EPFR06_EINT14S1 *((volatile unsigned int*)(0x4266C374UL)) -#define bFM3_GPIO_EPFR06_EINT15S0 *((volatile unsigned int*)(0x4266C378UL)) -#define bFM3_GPIO_EPFR06_EINT15S1 *((volatile unsigned int*)(0x4266C37CUL)) -#define bFM3_GPIO_EPFR07_SIN0S0 *((volatile unsigned int*)(0x4266C390UL)) -#define bFM3_GPIO_EPFR07_SIN0S1 *((volatile unsigned int*)(0x4266C394UL)) -#define bFM3_GPIO_EPFR07_SOT0B0 *((volatile unsigned int*)(0x4266C398UL)) -#define bFM3_GPIO_EPFR07_SOT0B1 *((volatile unsigned int*)(0x4266C39CUL)) -#define bFM3_GPIO_EPFR07_SCK0B0 *((volatile unsigned int*)(0x4266C3A0UL)) -#define bFM3_GPIO_EPFR07_SCK0B1 *((volatile unsigned int*)(0x4266C3A4UL)) -#define bFM3_GPIO_EPFR07_SIN1S0 *((volatile unsigned int*)(0x4266C3A8UL)) -#define bFM3_GPIO_EPFR07_SIN1S1 *((volatile unsigned int*)(0x4266C3ACUL)) -#define bFM3_GPIO_EPFR07_SOT1B0 *((volatile unsigned int*)(0x4266C3B0UL)) -#define bFM3_GPIO_EPFR07_SOT1B1 *((volatile unsigned int*)(0x4266C3B4UL)) -#define bFM3_GPIO_EPFR07_SCK1B0 *((volatile unsigned int*)(0x4266C3B8UL)) -#define bFM3_GPIO_EPFR07_SCK1B1 *((volatile unsigned int*)(0x4266C3BCUL)) -#define bFM3_GPIO_EPFR07_SIN2S0 *((volatile unsigned int*)(0x4266C3C0UL)) -#define bFM3_GPIO_EPFR07_SIN2S1 *((volatile unsigned int*)(0x4266C3C4UL)) -#define bFM3_GPIO_EPFR07_SOT2B0 *((volatile unsigned int*)(0x4266C3C8UL)) -#define bFM3_GPIO_EPFR07_SOT2B1 *((volatile unsigned int*)(0x4266C3CCUL)) -#define bFM3_GPIO_EPFR07_SCK2B0 *((volatile unsigned int*)(0x4266C3D0UL)) -#define bFM3_GPIO_EPFR07_SCK2B1 *((volatile unsigned int*)(0x4266C3D4UL)) -#define bFM3_GPIO_EPFR07_SIN3S0 *((volatile unsigned int*)(0x4266C3D8UL)) -#define bFM3_GPIO_EPFR07_SIN3S1 *((volatile unsigned int*)(0x4266C3DCUL)) -#define bFM3_GPIO_EPFR07_SOT3B0 *((volatile unsigned int*)(0x4266C3E0UL)) -#define bFM3_GPIO_EPFR07_SOT3B1 *((volatile unsigned int*)(0x4266C3E4UL)) -#define bFM3_GPIO_EPFR07_SCK3B0 *((volatile unsigned int*)(0x4266C3E8UL)) -#define bFM3_GPIO_EPFR07_SCK3B1 *((volatile unsigned int*)(0x4266C3ECUL)) -#define bFM3_GPIO_EPFR08_RTS4E0 *((volatile unsigned int*)(0x4266C400UL)) -#define bFM3_GPIO_EPFR08_RTS4E1 *((volatile unsigned int*)(0x4266C404UL)) -#define bFM3_GPIO_EPFR08_CTS4S0 *((volatile unsigned int*)(0x4266C408UL)) -#define bFM3_GPIO_EPFR08_CTS4S1 *((volatile unsigned int*)(0x4266C40CUL)) -#define bFM3_GPIO_EPFR08_SIN4S0 *((volatile unsigned int*)(0x4266C410UL)) -#define bFM3_GPIO_EPFR08_SIN4S1 *((volatile unsigned int*)(0x4266C414UL)) -#define bFM3_GPIO_EPFR08_SOT4B0 *((volatile unsigned int*)(0x4266C418UL)) -#define bFM3_GPIO_EPFR08_SOT4B1 *((volatile unsigned int*)(0x4266C41CUL)) -#define bFM3_GPIO_EPFR08_SCK4B0 *((volatile unsigned int*)(0x4266C420UL)) -#define bFM3_GPIO_EPFR08_SCK4B1 *((volatile unsigned int*)(0x4266C424UL)) -#define bFM3_GPIO_EPFR08_SIN5S0 *((volatile unsigned int*)(0x4266C428UL)) -#define bFM3_GPIO_EPFR08_SIN5S1 *((volatile unsigned int*)(0x4266C42CUL)) -#define bFM3_GPIO_EPFR08_SOT5B0 *((volatile unsigned int*)(0x4266C430UL)) -#define bFM3_GPIO_EPFR08_SOT5B1 *((volatile unsigned int*)(0x4266C434UL)) -#define bFM3_GPIO_EPFR08_SCK5B0 *((volatile unsigned int*)(0x4266C438UL)) -#define bFM3_GPIO_EPFR08_SCK5B1 *((volatile unsigned int*)(0x4266C43CUL)) -#define bFM3_GPIO_EPFR08_SIN6S0 *((volatile unsigned int*)(0x4266C440UL)) -#define bFM3_GPIO_EPFR08_SIN6S1 *((volatile unsigned int*)(0x4266C444UL)) -#define bFM3_GPIO_EPFR08_SOT6B0 *((volatile unsigned int*)(0x4266C448UL)) -#define bFM3_GPIO_EPFR08_SOT6B1 *((volatile unsigned int*)(0x4266C44CUL)) -#define bFM3_GPIO_EPFR08_SCK6B0 *((volatile unsigned int*)(0x4266C450UL)) -#define bFM3_GPIO_EPFR08_SCK6B1 *((volatile unsigned int*)(0x4266C454UL)) -#define bFM3_GPIO_EPFR08_SIN7S0 *((volatile unsigned int*)(0x4266C458UL)) -#define bFM3_GPIO_EPFR08_SIN7S1 *((volatile unsigned int*)(0x4266C45CUL)) -#define bFM3_GPIO_EPFR08_SOT7B0 *((volatile unsigned int*)(0x4266C460UL)) -#define bFM3_GPIO_EPFR08_SOT7B1 *((volatile unsigned int*)(0x4266C464UL)) -#define bFM3_GPIO_EPFR08_SCK7B0 *((volatile unsigned int*)(0x4266C468UL)) -#define bFM3_GPIO_EPFR08_SCK7B1 *((volatile unsigned int*)(0x4266C46CUL)) -#define bFM3_GPIO_EPFR09_QAIN0S0 *((volatile unsigned int*)(0x4266C480UL)) -#define bFM3_GPIO_EPFR09_QAIN0S1 *((volatile unsigned int*)(0x4266C484UL)) -#define bFM3_GPIO_EPFR09_QBIN0S0 *((volatile unsigned int*)(0x4266C488UL)) -#define bFM3_GPIO_EPFR09_QBIN0S1 *((volatile unsigned int*)(0x4266C48CUL)) -#define bFM3_GPIO_EPFR09_QZIN0S0 *((volatile unsigned int*)(0x4266C490UL)) -#define bFM3_GPIO_EPFR09_QZIN0S1 *((volatile unsigned int*)(0x4266C494UL)) -#define bFM3_GPIO_EPFR09_QAIN1S0 *((volatile unsigned int*)(0x4266C498UL)) -#define bFM3_GPIO_EPFR09_QAIN1S1 *((volatile unsigned int*)(0x4266C49CUL)) -#define bFM3_GPIO_EPFR09_QBIN1S0 *((volatile unsigned int*)(0x4266C4A0UL)) -#define bFM3_GPIO_EPFR09_QBIN1S1 *((volatile unsigned int*)(0x4266C4A4UL)) -#define bFM3_GPIO_EPFR09_QZIN1S0 *((volatile unsigned int*)(0x4266C4A8UL)) -#define bFM3_GPIO_EPFR09_QZIN1S1 *((volatile unsigned int*)(0x4266C4ACUL)) -#define bFM3_GPIO_EPFR09_ADTRG0S0 *((volatile unsigned int*)(0x4266C4B0UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S1 *((volatile unsigned int*)(0x4266C4B4UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S2 *((volatile unsigned int*)(0x4266C4B8UL)) -#define bFM3_GPIO_EPFR09_ADTRG0S3 *((volatile unsigned int*)(0x4266C4BCUL)) -#define bFM3_GPIO_EPFR09_ADTRG1S0 *((volatile unsigned int*)(0x4266C4C0UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S1 *((volatile unsigned int*)(0x4266C4C4UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S2 *((volatile unsigned int*)(0x4266C4C8UL)) -#define bFM3_GPIO_EPFR09_ADTRG1S3 *((volatile unsigned int*)(0x4266C4CCUL)) -#define bFM3_GPIO_EPFR09_ADTRG2S0 *((volatile unsigned int*)(0x4266C4D0UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S1 *((volatile unsigned int*)(0x4266C4D4UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S2 *((volatile unsigned int*)(0x4266C4D8UL)) -#define bFM3_GPIO_EPFR09_ADTRG2S3 *((volatile unsigned int*)(0x4266C4DCUL)) -#define bFM3_GPIO_EPFR10_UEDEFB *((volatile unsigned int*)(0x4266C500UL)) -#define bFM3_GPIO_EPFR10_UEDTHB *((volatile unsigned int*)(0x4266C504UL)) -#define bFM3_GPIO_EPFR10_UECLKE *((volatile unsigned int*)(0x4266C508UL)) -#define bFM3_GPIO_EPFR10_UEWEXE *((volatile unsigned int*)(0x4266C50CUL)) -#define bFM3_GPIO_EPFR10_UEDQME *((volatile unsigned int*)(0x4266C510UL)) -#define bFM3_GPIO_EPFR10_UEOEXE *((volatile unsigned int*)(0x4266C514UL)) -#define bFM3_GPIO_EPFR10_UEFLSE *((volatile unsigned int*)(0x4266C518UL)) -#define bFM3_GPIO_EPFR10_UECS1E *((volatile unsigned int*)(0x4266C51CUL)) -#define bFM3_GPIO_EPFR10_UECS2E *((volatile unsigned int*)(0x4266C520UL)) -#define bFM3_GPIO_EPFR10_UECS3E *((volatile unsigned int*)(0x4266C524UL)) -#define bFM3_GPIO_EPFR10_UECS4E *((volatile unsigned int*)(0x4266C528UL)) -#define bFM3_GPIO_EPFR10_UECS5E *((volatile unsigned int*)(0x4266C52CUL)) -#define bFM3_GPIO_EPFR10_UECS6E *((volatile unsigned int*)(0x4266C530UL)) -#define bFM3_GPIO_EPFR10_UECS7E *((volatile unsigned int*)(0x4266C534UL)) -#define bFM3_GPIO_EPFR10_UEAOOE *((volatile unsigned int*)(0x4266C538UL)) -#define bFM3_GPIO_EPFR10_UEA08E *((volatile unsigned int*)(0x4266C53CUL)) -#define bFM3_GPIO_EPFR10_UEA09E *((volatile unsigned int*)(0x4266C540UL)) -#define bFM3_GPIO_EPFR10_UEA10E *((volatile unsigned int*)(0x4266C544UL)) -#define bFM3_GPIO_EPFR10_UEA11E *((volatile unsigned int*)(0x4266C548UL)) -#define bFM3_GPIO_EPFR10_UEA12E *((volatile unsigned int*)(0x4266C54CUL)) -#define bFM3_GPIO_EPFR10_UEA13E *((volatile unsigned int*)(0x4266C550UL)) -#define bFM3_GPIO_EPFR10_UEA14E *((volatile unsigned int*)(0x4266C554UL)) -#define bFM3_GPIO_EPFR10_UEA15E *((volatile unsigned int*)(0x4266C558UL)) -#define bFM3_GPIO_EPFR10_UEA16E *((volatile unsigned int*)(0x4266C55CUL)) -#define bFM3_GPIO_EPFR10_UEA17E *((volatile unsigned int*)(0x4266C560UL)) -#define bFM3_GPIO_EPFR10_UEA18E *((volatile unsigned int*)(0x4266C564UL)) -#define bFM3_GPIO_EPFR10_UEA19E *((volatile unsigned int*)(0x4266C568UL)) -#define bFM3_GPIO_EPFR10_UEA20E *((volatile unsigned int*)(0x4266C56CUL)) -#define bFM3_GPIO_EPFR10_UEA21E *((volatile unsigned int*)(0x4266C570UL)) -#define bFM3_GPIO_EPFR10_UEA22E *((volatile unsigned int*)(0x4266C574UL)) -#define bFM3_GPIO_EPFR10_UEA23E *((volatile unsigned int*)(0x4266C578UL)) -#define bFM3_GPIO_EPFR10_UEA24E *((volatile unsigned int*)(0x4266C57CUL)) -#define bFM3_GPIO_EPFR11_UEALEE *((volatile unsigned int*)(0x4266C580UL)) -#define bFM3_GPIO_EPFR11_UECS0E *((volatile unsigned int*)(0x4266C584UL)) -#define bFM3_GPIO_EPFR11_UEA01E *((volatile unsigned int*)(0x4266C588UL)) -#define bFM3_GPIO_EPFR11_UEA02E *((volatile unsigned int*)(0x4266C58CUL)) -#define bFM3_GPIO_EPFR11_UEA03E *((volatile unsigned int*)(0x4266C590UL)) -#define bFM3_GPIO_EPFR11_UEA04E *((volatile unsigned int*)(0x4266C594UL)) -#define bFM3_GPIO_EPFR11_UEA05E *((volatile unsigned int*)(0x4266C598UL)) -#define bFM3_GPIO_EPFR11_UEA06E *((volatile unsigned int*)(0x4266C59CUL)) -#define bFM3_GPIO_EPFR11_UEA07E *((volatile unsigned int*)(0x4266C5A0UL)) -#define bFM3_GPIO_EPFR11_UED00B *((volatile unsigned int*)(0x4266C5A4UL)) -#define bFM3_GPIO_EPFR11_UED01B *((volatile unsigned int*)(0x4266C5A8UL)) -#define bFM3_GPIO_EPFR11_UED02B *((volatile unsigned int*)(0x4266C5ACUL)) -#define bFM3_GPIO_EPFR11_UED03B *((volatile unsigned int*)(0x4266C5B0UL)) -#define bFM3_GPIO_EPFR11_UED04B *((volatile unsigned int*)(0x4266C5B4UL)) -#define bFM3_GPIO_EPFR11_UED05B *((volatile unsigned int*)(0x4266C5B8UL)) -#define bFM3_GPIO_EPFR11_UED06B *((volatile unsigned int*)(0x4266C5BCUL)) -#define bFM3_GPIO_EPFR11_UED07B *((volatile unsigned int*)(0x4266C5C0UL)) -#define bFM3_GPIO_EPFR11_UED08B *((volatile unsigned int*)(0x4266C5C4UL)) -#define bFM3_GPIO_EPFR11_UED09B *((volatile unsigned int*)(0x4266C5C8UL)) -#define bFM3_GPIO_EPFR11_UED10B *((volatile unsigned int*)(0x4266C5CCUL)) -#define bFM3_GPIO_EPFR11_UED11B *((volatile unsigned int*)(0x4266C5D0UL)) -#define bFM3_GPIO_EPFR11_UED12B *((volatile unsigned int*)(0x4266C5D4UL)) -#define bFM3_GPIO_EPFR11_UED13B *((volatile unsigned int*)(0x4266C5D8UL)) -#define bFM3_GPIO_EPFR11_UED14B *((volatile unsigned int*)(0x4266C5DCUL)) -#define bFM3_GPIO_EPFR11_UED15B *((volatile unsigned int*)(0x4266C5E0UL)) -#define bFM3_GPIO_EPFR11_UERLC *((volatile unsigned int*)(0x4266C5E4UL)) -#define bFM3_GPIO_EPFR12_TIOA8E0 *((volatile unsigned int*)(0x4266C608UL)) -#define bFM3_GPIO_EPFR12_TIOA8E1 *((volatile unsigned int*)(0x4266C60CUL)) -#define bFM3_GPIO_EPFR12_TIOB8S0 *((volatile unsigned int*)(0x4266C610UL)) -#define bFM3_GPIO_EPFR12_TIOB8S1 *((volatile unsigned int*)(0x4266C614UL)) -#define bFM3_GPIO_EPFR12_TIOA9S0 *((volatile unsigned int*)(0x4266C620UL)) -#define bFM3_GPIO_EPFR12_TIOA9S1 *((volatile unsigned int*)(0x4266C624UL)) -#define bFM3_GPIO_EPFR12_TIOA9E0 *((volatile unsigned int*)(0x4266C628UL)) -#define bFM3_GPIO_EPFR12_TIOA9E1 *((volatile unsigned int*)(0x4266C62CUL)) -#define bFM3_GPIO_EPFR12_TIOB9S0 *((volatile unsigned int*)(0x4266C630UL)) -#define bFM3_GPIO_EPFR12_TIOB9S1 *((volatile unsigned int*)(0x4266C634UL)) -#define bFM3_GPIO_EPFR12_TIOA10E0 *((volatile unsigned int*)(0x4266C648UL)) -#define bFM3_GPIO_EPFR12_TIOA10E1 *((volatile unsigned int*)(0x4266C64CUL)) -#define bFM3_GPIO_EPFR12_TIOB10S0 *((volatile unsigned int*)(0x4266C650UL)) -#define bFM3_GPIO_EPFR12_TIOB10S1 *((volatile unsigned int*)(0x4266C654UL)) -#define bFM3_GPIO_EPFR12_TIOA11S0 *((volatile unsigned int*)(0x4266C660UL)) -#define bFM3_GPIO_EPFR12_TIOA11S1 *((volatile unsigned int*)(0x4266C664UL)) -#define bFM3_GPIO_EPFR12_TIOA11E0 *((volatile unsigned int*)(0x4266C668UL)) -#define bFM3_GPIO_EPFR12_TIOA11E1 *((volatile unsigned int*)(0x4266C66CUL)) -#define bFM3_GPIO_EPFR12_TIOB11S0 *((volatile unsigned int*)(0x4266C670UL)) -#define bFM3_GPIO_EPFR12_TIOB11S1 *((volatile unsigned int*)(0x4266C674UL)) -#define bFM3_GPIO_EPFR13_TIOA12E0 *((volatile unsigned int*)(0x4266C688UL)) -#define bFM3_GPIO_EPFR13_TIOA12E1 *((volatile unsigned int*)(0x4266C68CUL)) -#define bFM3_GPIO_EPFR13_TIOB12S0 *((volatile unsigned int*)(0x4266C690UL)) -#define bFM3_GPIO_EPFR13_TIOB12S1 *((volatile unsigned int*)(0x4266C694UL)) -#define bFM3_GPIO_EPFR13_TIOA13S0 *((volatile unsigned int*)(0x4266C6A0UL)) -#define bFM3_GPIO_EPFR13_TIOA13S1 *((volatile unsigned int*)(0x4266C6A4UL)) -#define bFM3_GPIO_EPFR13_TIOA13E0 *((volatile unsigned int*)(0x4266C6A8UL)) -#define bFM3_GPIO_EPFR13_TIOA13E1 *((volatile unsigned int*)(0x4266C6ACUL)) -#define bFM3_GPIO_EPFR13_TIOB13S0 *((volatile unsigned int*)(0x4266C6B0UL)) -#define bFM3_GPIO_EPFR13_TIOB13S1 *((volatile unsigned int*)(0x4266C6B4UL)) -#define bFM3_GPIO_EPFR13_TIOA14E0 *((volatile unsigned int*)(0x4266C6C8UL)) -#define bFM3_GPIO_EPFR13_TIOA14E1 *((volatile unsigned int*)(0x4266C6CCUL)) -#define bFM3_GPIO_EPFR13_TIOB14S0 *((volatile unsigned int*)(0x4266C6D0UL)) -#define bFM3_GPIO_EPFR13_TIOB14S1 *((volatile unsigned int*)(0x4266C6D4UL)) -#define bFM3_GPIO_EPFR13_TIOA15S0 *((volatile unsigned int*)(0x4266C6E0UL)) -#define bFM3_GPIO_EPFR13_TIOA15S1 *((volatile unsigned int*)(0x4266C6E4UL)) -#define bFM3_GPIO_EPFR13_TIOA15E0 *((volatile unsigned int*)(0x4266C6E8UL)) -#define bFM3_GPIO_EPFR13_TIOA15E1 *((volatile unsigned int*)(0x4266C6ECUL)) -#define bFM3_GPIO_EPFR13_TIOB15S0 *((volatile unsigned int*)(0x4266C6F0UL)) -#define bFM3_GPIO_EPFR13_TIOB15S1 *((volatile unsigned int*)(0x4266C6F4UL)) -#define bFM3_GPIO_EPFR14_QAIN2S0 *((volatile unsigned int*)(0x4266C700UL)) -#define bFM3_GPIO_EPFR14_QAIN2S1 *((volatile unsigned int*)(0x4266C704UL)) -#define bFM3_GPIO_EPFR14_QBIN2S0 *((volatile unsigned int*)(0x4266C708UL)) -#define bFM3_GPIO_EPFR14_QBIN2S1 *((volatile unsigned int*)(0x4266C70CUL)) -#define bFM3_GPIO_EPFR14_QZIN2S0 *((volatile unsigned int*)(0x4266C710UL)) -#define bFM3_GPIO_EPFR14_QZIN2S1 *((volatile unsigned int*)(0x4266C714UL)) -#define bFM3_GPIO_EPFR14_E_TD0E *((volatile unsigned int*)(0x4266C748UL)) -#define bFM3_GPIO_EPFR14_E_TD1E *((volatile unsigned int*)(0x4266C74CUL)) -#define bFM3_GPIO_EPFR14_E_TE0E *((volatile unsigned int*)(0x4266C750UL)) -#define bFM3_GPIO_EPFR14_E_TE1E *((volatile unsigned int*)(0x4266C754UL)) -#define bFM3_GPIO_EPFR14_E_MC0E *((volatile unsigned int*)(0x4266C758UL)) -#define bFM3_GPIO_EPFR14_E_MC1B *((volatile unsigned int*)(0x4266C75CUL)) -#define bFM3_GPIO_EPFR14_E_MD0B *((volatile unsigned int*)(0x4266C760UL)) -#define bFM3_GPIO_EPFR14_E_MD1B *((volatile unsigned int*)(0x4266C764UL)) -#define bFM3_GPIO_EPFR14_E_CKE *((volatile unsigned int*)(0x4266C768UL)) -#define bFM3_GPIO_EPFR14_E_PSE *((volatile unsigned int*)(0x4266C76CUL)) -#define bFM3_GPIO_EPFR14_E_SPLC0 *((volatile unsigned int*)(0x4266C770UL)) -#define bFM3_GPIO_EPFR14_E_SPLC1 *((volatile unsigned int*)(0x4266C774UL)) -#define bFM3_GPIO_EPFR15_EINT16S0 *((volatile unsigned int*)(0x4266C780UL)) -#define bFM3_GPIO_EPFR15_EINT16S1 *((volatile unsigned int*)(0x4266C784UL)) -#define bFM3_GPIO_EPFR15_EINT17S0 *((volatile unsigned int*)(0x4266C788UL)) -#define bFM3_GPIO_EPFR15_EINT17S1 *((volatile unsigned int*)(0x4266C78CUL)) -#define bFM3_GPIO_EPFR15_EINT18S0 *((volatile unsigned int*)(0x4266C790UL)) -#define bFM3_GPIO_EPFR15_EINT18S1 *((volatile unsigned int*)(0x4266C794UL)) -#define bFM3_GPIO_EPFR15_EINT19S0 *((volatile unsigned int*)(0x4266C798UL)) -#define bFM3_GPIO_EPFR15_EINT19S1 *((volatile unsigned int*)(0x4266C79CUL)) -#define bFM3_GPIO_EPFR15_EINT20S0 *((volatile unsigned int*)(0x4266C7A0UL)) -#define bFM3_GPIO_EPFR15_EINT20S1 *((volatile unsigned int*)(0x4266C7A4UL)) -#define bFM3_GPIO_EPFR15_EINT21S0 *((volatile unsigned int*)(0x4266C7A8UL)) -#define bFM3_GPIO_EPFR15_EINT21S1 *((volatile unsigned int*)(0x4266C7ACUL)) -#define bFM3_GPIO_EPFR15_EINT22S0 *((volatile unsigned int*)(0x4266C7B0UL)) -#define bFM3_GPIO_EPFR15_EINT22S1 *((volatile unsigned int*)(0x4266C7B4UL)) -#define bFM3_GPIO_EPFR15_EINT23S0 *((volatile unsigned int*)(0x4266C7B8UL)) -#define bFM3_GPIO_EPFR15_EINT23S1 *((volatile unsigned int*)(0x4266C7BCUL)) -#define bFM3_GPIO_EPFR15_EINT24S0 *((volatile unsigned int*)(0x4266C7C0UL)) -#define bFM3_GPIO_EPFR15_EINT24S1 *((volatile unsigned int*)(0x4266C7C4UL)) -#define bFM3_GPIO_EPFR15_EINT25S0 *((volatile unsigned int*)(0x4266C7C8UL)) -#define bFM3_GPIO_EPFR15_EINT25S1 *((volatile unsigned int*)(0x4266C7CCUL)) -#define bFM3_GPIO_EPFR15_EINT26S0 *((volatile unsigned int*)(0x4266C7D0UL)) -#define bFM3_GPIO_EPFR15_EINT26S1 *((volatile unsigned int*)(0x4266C7D4UL)) -#define bFM3_GPIO_EPFR15_EINT27S0 *((volatile unsigned int*)(0x4266C7D8UL)) -#define bFM3_GPIO_EPFR15_EINT27S1 *((volatile unsigned int*)(0x4266C7DCUL)) -#define bFM3_GPIO_EPFR15_EINT28S0 *((volatile unsigned int*)(0x4266C7E0UL)) -#define bFM3_GPIO_EPFR15_EINT28S1 *((volatile unsigned int*)(0x4266C7E4UL)) -#define bFM3_GPIO_EPFR15_EINT29S0 *((volatile unsigned int*)(0x4266C7E8UL)) -#define bFM3_GPIO_EPFR15_EINT29S1 *((volatile unsigned int*)(0x4266C7ECUL)) -#define bFM3_GPIO_EPFR15_EINT30S0 *((volatile unsigned int*)(0x4266C7F0UL)) -#define bFM3_GPIO_EPFR15_EINT30S1 *((volatile unsigned int*)(0x4266C7F4UL)) -#define bFM3_GPIO_EPFR15_EINT31S0 *((volatile unsigned int*)(0x4266C7F8UL)) -#define bFM3_GPIO_EPFR15_EINT31S1 *((volatile unsigned int*)(0x4266C7FCUL)) -#define bFM3_GPIO_PZR0_P0 *((volatile unsigned int*)(0x4266E000UL)) -#define bFM3_GPIO_PZR0_P1 *((volatile unsigned int*)(0x4266E004UL)) -#define bFM3_GPIO_PZR0_P2 *((volatile unsigned int*)(0x4266E008UL)) -#define bFM3_GPIO_PZR0_P3 *((volatile unsigned int*)(0x4266E00CUL)) -#define bFM3_GPIO_PZR0_P4 *((volatile unsigned int*)(0x4266E010UL)) -#define bFM3_GPIO_PZR0_P5 *((volatile unsigned int*)(0x4266E014UL)) -#define bFM3_GPIO_PZR0_P6 *((volatile unsigned int*)(0x4266E018UL)) -#define bFM3_GPIO_PZR0_P7 *((volatile unsigned int*)(0x4266E01CUL)) -#define bFM3_GPIO_PZR0_P8 *((volatile unsigned int*)(0x4266E020UL)) -#define bFM3_GPIO_PZR0_P9 *((volatile unsigned int*)(0x4266E024UL)) -#define bFM3_GPIO_PZR1_P0 *((volatile unsigned int*)(0x4266E080UL)) -#define bFM3_GPIO_PZR1_P1 *((volatile unsigned int*)(0x4266E084UL)) -#define bFM3_GPIO_PZR1_P2 *((volatile unsigned int*)(0x4266E088UL)) -#define bFM3_GPIO_PZR1_P3 *((volatile unsigned int*)(0x4266E08CUL)) -#define bFM3_GPIO_PZR1_P4 *((volatile unsigned int*)(0x4266E090UL)) -#define bFM3_GPIO_PZR1_P5 *((volatile unsigned int*)(0x4266E094UL)) -#define bFM3_GPIO_PZR1_P6 *((volatile unsigned int*)(0x4266E098UL)) -#define bFM3_GPIO_PZR1_P7 *((volatile unsigned int*)(0x4266E09CUL)) -#define bFM3_GPIO_PZR1_P8 *((volatile unsigned int*)(0x4266E0A0UL)) -#define bFM3_GPIO_PZR1_P9 *((volatile unsigned int*)(0x4266E0A4UL)) -#define bFM3_GPIO_PZR1_PA *((volatile unsigned int*)(0x4266E0A8UL)) -#define bFM3_GPIO_PZR1_PB *((volatile unsigned int*)(0x4266E0ACUL)) -#define bFM3_GPIO_PZR1_PC *((volatile unsigned int*)(0x4266E0B0UL)) -#define bFM3_GPIO_PZR1_PD *((volatile unsigned int*)(0x4266E0B4UL)) -#define bFM3_GPIO_PZR1_PE *((volatile unsigned int*)(0x4266E0B8UL)) -#define bFM3_GPIO_PZR1_PF *((volatile unsigned int*)(0x4266E0BCUL)) -#define bFM3_GPIO_PZR2_P0 *((volatile unsigned int*)(0x4266E100UL)) -#define bFM3_GPIO_PZR2_P1 *((volatile unsigned int*)(0x4266E104UL)) -#define bFM3_GPIO_PZR2_P2 *((volatile unsigned int*)(0x4266E108UL)) -#define bFM3_GPIO_PZR2_P3 *((volatile unsigned int*)(0x4266E10CUL)) -#define bFM3_GPIO_PZR2_P4 *((volatile unsigned int*)(0x4266E110UL)) -#define bFM3_GPIO_PZR2_P5 *((volatile unsigned int*)(0x4266E114UL)) -#define bFM3_GPIO_PZR2_P6 *((volatile unsigned int*)(0x4266E118UL)) -#define bFM3_GPIO_PZR2_P7 *((volatile unsigned int*)(0x4266E11CUL)) -#define bFM3_GPIO_PZR2_P8 *((volatile unsigned int*)(0x4266E120UL)) -#define bFM3_GPIO_PZR2_P9 *((volatile unsigned int*)(0x4266E124UL)) -#define bFM3_GPIO_PZR3_P0 *((volatile unsigned int*)(0x4266E180UL)) -#define bFM3_GPIO_PZR3_P1 *((volatile unsigned int*)(0x4266E184UL)) -#define bFM3_GPIO_PZR3_P2 *((volatile unsigned int*)(0x4266E188UL)) -#define bFM3_GPIO_PZR3_P3 *((volatile unsigned int*)(0x4266E18CUL)) -#define bFM3_GPIO_PZR3_P4 *((volatile unsigned int*)(0x4266E190UL)) -#define bFM3_GPIO_PZR3_P5 *((volatile unsigned int*)(0x4266E194UL)) -#define bFM3_GPIO_PZR3_P6 *((volatile unsigned int*)(0x4266E198UL)) -#define bFM3_GPIO_PZR3_P7 *((volatile unsigned int*)(0x4266E19CUL)) -#define bFM3_GPIO_PZR3_P8 *((volatile unsigned int*)(0x4266E1A0UL)) -#define bFM3_GPIO_PZR3_P9 *((volatile unsigned int*)(0x4266E1A4UL)) -#define bFM3_GPIO_PZR3_PA *((volatile unsigned int*)(0x4266E1A8UL)) -#define bFM3_GPIO_PZR3_PB *((volatile unsigned int*)(0x4266E1ACUL)) -#define bFM3_GPIO_PZR3_PC *((volatile unsigned int*)(0x4266E1B0UL)) -#define bFM3_GPIO_PZR3_PD *((volatile unsigned int*)(0x4266E1B4UL)) -#define bFM3_GPIO_PZR3_PE *((volatile unsigned int*)(0x4266E1B8UL)) -#define bFM3_GPIO_PZR3_PF *((volatile unsigned int*)(0x4266E1BCUL)) -#define bFM3_GPIO_PZR4_P0 *((volatile unsigned int*)(0x4266E200UL)) -#define bFM3_GPIO_PZR4_P1 *((volatile unsigned int*)(0x4266E204UL)) -#define bFM3_GPIO_PZR4_P2 *((volatile unsigned int*)(0x4266E208UL)) -#define bFM3_GPIO_PZR4_P3 *((volatile unsigned int*)(0x4266E20CUL)) -#define bFM3_GPIO_PZR4_P4 *((volatile unsigned int*)(0x4266E210UL)) -#define bFM3_GPIO_PZR4_P5 *((volatile unsigned int*)(0x4266E214UL)) -#define bFM3_GPIO_PZR4_P6 *((volatile unsigned int*)(0x4266E218UL)) -#define bFM3_GPIO_PZR4_P7 *((volatile unsigned int*)(0x4266E21CUL)) -#define bFM3_GPIO_PZR4_P8 *((volatile unsigned int*)(0x4266E220UL)) -#define bFM3_GPIO_PZR4_P9 *((volatile unsigned int*)(0x4266E224UL)) -#define bFM3_GPIO_PZR4_PA *((volatile unsigned int*)(0x4266E228UL)) -#define bFM3_GPIO_PZR4_PB *((volatile unsigned int*)(0x4266E22CUL)) -#define bFM3_GPIO_PZR4_PC *((volatile unsigned int*)(0x4266E230UL)) -#define bFM3_GPIO_PZR4_PD *((volatile unsigned int*)(0x4266E234UL)) -#define bFM3_GPIO_PZR4_PE *((volatile unsigned int*)(0x4266E238UL)) -#define bFM3_GPIO_PZR5_P0 *((volatile unsigned int*)(0x4266E280UL)) -#define bFM3_GPIO_PZR5_P1 *((volatile unsigned int*)(0x4266E284UL)) -#define bFM3_GPIO_PZR5_P2 *((volatile unsigned int*)(0x4266E288UL)) -#define bFM3_GPIO_PZR5_P3 *((volatile unsigned int*)(0x4266E28CUL)) -#define bFM3_GPIO_PZR5_P4 *((volatile unsigned int*)(0x4266E290UL)) -#define bFM3_GPIO_PZR5_P5 *((volatile unsigned int*)(0x4266E294UL)) -#define bFM3_GPIO_PZR5_P6 *((volatile unsigned int*)(0x4266E298UL)) -#define bFM3_GPIO_PZR5_P7 *((volatile unsigned int*)(0x4266E29CUL)) -#define bFM3_GPIO_PZR5_P8 *((volatile unsigned int*)(0x4266E2A0UL)) -#define bFM3_GPIO_PZR5_P9 *((volatile unsigned int*)(0x4266E2A4UL)) -#define bFM3_GPIO_PZR5_PA *((volatile unsigned int*)(0x4266E2A8UL)) -#define bFM3_GPIO_PZR5_PB *((volatile unsigned int*)(0x4266E2ACUL)) -#define bFM3_GPIO_PZR5_PC *((volatile unsigned int*)(0x4266E2B0UL)) -#define bFM3_GPIO_PZR5_PD *((volatile unsigned int*)(0x4266E2B4UL)) -#define bFM3_GPIO_PZR6_P0 *((volatile unsigned int*)(0x4266E300UL)) -#define bFM3_GPIO_PZR6_P1 *((volatile unsigned int*)(0x4266E304UL)) -#define bFM3_GPIO_PZR6_P2 *((volatile unsigned int*)(0x4266E308UL)) -#define bFM3_GPIO_PZR7_P0 *((volatile unsigned int*)(0x4266E380UL)) -#define bFM3_GPIO_PZR7_P1 *((volatile unsigned int*)(0x4266E384UL)) -#define bFM3_GPIO_PZR7_P2 *((volatile unsigned int*)(0x4266E388UL)) -#define bFM3_GPIO_PZR7_P3 *((volatile unsigned int*)(0x4266E38CUL)) -#define bFM3_GPIO_PZR7_P4 *((volatile unsigned int*)(0x4266E390UL)) -#define bFM3_GPIO_PZR7_P5 *((volatile unsigned int*)(0x4266E394UL)) -#define bFM3_GPIO_PZR7_P6 *((volatile unsigned int*)(0x4266E398UL)) -#define bFM3_GPIO_PZR7_P7 *((volatile unsigned int*)(0x4266E39CUL)) -#define bFM3_GPIO_PZR7_P8 *((volatile unsigned int*)(0x4266E3A0UL)) -#define bFM3_GPIO_PZR7_P9 *((volatile unsigned int*)(0x4266E3A4UL)) -#define bFM3_GPIO_PZR7_PA *((volatile unsigned int*)(0x4266E3A8UL)) -#define bFM3_GPIO_PZR7_PB *((volatile unsigned int*)(0x4266E3ACUL)) -#define bFM3_GPIO_PZR7_PC *((volatile unsigned int*)(0x4266E3B0UL)) -#define bFM3_GPIO_PZR7_PD *((volatile unsigned int*)(0x4266E3B4UL)) -#define bFM3_GPIO_PZR7_PE *((volatile unsigned int*)(0x4266E3B8UL)) -#define bFM3_GPIO_PZR7_PF *((volatile unsigned int*)(0x4266E3BCUL)) -#define bFM3_GPIO_PZR8_P0 *((volatile unsigned int*)(0x4266E400UL)) -#define bFM3_GPIO_PZR8_P1 *((volatile unsigned int*)(0x4266E404UL)) -#define bFM3_GPIO_PZR8_P2 *((volatile unsigned int*)(0x4266E408UL)) -#define bFM3_GPIO_PZR8_P3 *((volatile unsigned int*)(0x4266E40CUL)) -#define bFM3_GPIO_PZR9_P0 *((volatile unsigned int*)(0x4266E480UL)) -#define bFM3_GPIO_PZR9_P1 *((volatile unsigned int*)(0x4266E484UL)) -#define bFM3_GPIO_PZR9_P2 *((volatile unsigned int*)(0x4266E488UL)) -#define bFM3_GPIO_PZR9_P3 *((volatile unsigned int*)(0x4266E48CUL)) -#define bFM3_GPIO_PZR9_P4 *((volatile unsigned int*)(0x4266E490UL)) -#define bFM3_GPIO_PZR9_P5 *((volatile unsigned int*)(0x4266E494UL)) -#define bFM3_GPIO_PZRA_P0 *((volatile unsigned int*)(0x4266E500UL)) -#define bFM3_GPIO_PZRA_P1 *((volatile unsigned int*)(0x4266E504UL)) -#define bFM3_GPIO_PZRA_P2 *((volatile unsigned int*)(0x4266E508UL)) -#define bFM3_GPIO_PZRA_P3 *((volatile unsigned int*)(0x4266E50CUL)) -#define bFM3_GPIO_PZRA_P4 *((volatile unsigned int*)(0x4266E510UL)) -#define bFM3_GPIO_PZRA_P5 *((volatile unsigned int*)(0x4266E514UL)) -#define bFM3_GPIO_PZRB_P0 *((volatile unsigned int*)(0x4266E580UL)) -#define bFM3_GPIO_PZRB_P1 *((volatile unsigned int*)(0x4266E584UL)) -#define bFM3_GPIO_PZRB_P2 *((volatile unsigned int*)(0x4266E588UL)) -#define bFM3_GPIO_PZRB_P3 *((volatile unsigned int*)(0x4266E58CUL)) -#define bFM3_GPIO_PZRB_P4 *((volatile unsigned int*)(0x4266E590UL)) -#define bFM3_GPIO_PZRB_P5 *((volatile unsigned int*)(0x4266E594UL)) -#define bFM3_GPIO_PZRB_P6 *((volatile unsigned int*)(0x4266E598UL)) -#define bFM3_GPIO_PZRB_P7 *((volatile unsigned int*)(0x4266E59CUL)) -#define bFM3_GPIO_PZRC_P0 *((volatile unsigned int*)(0x4266E600UL)) -#define bFM3_GPIO_PZRC_P1 *((volatile unsigned int*)(0x4266E604UL)) -#define bFM3_GPIO_PZRC_P2 *((volatile unsigned int*)(0x4266E608UL)) -#define bFM3_GPIO_PZRC_P3 *((volatile unsigned int*)(0x4266E60CUL)) -#define bFM3_GPIO_PZRC_P4 *((volatile unsigned int*)(0x4266E610UL)) -#define bFM3_GPIO_PZRC_P5 *((volatile unsigned int*)(0x4266E614UL)) -#define bFM3_GPIO_PZRC_P6 *((volatile unsigned int*)(0x4266E618UL)) -#define bFM3_GPIO_PZRC_P7 *((volatile unsigned int*)(0x4266E61CUL)) -#define bFM3_GPIO_PZRC_P8 *((volatile unsigned int*)(0x4266E620UL)) -#define bFM3_GPIO_PZRC_P9 *((volatile unsigned int*)(0x4266E624UL)) -#define bFM3_GPIO_PZRC_PA *((volatile unsigned int*)(0x4266E628UL)) -#define bFM3_GPIO_PZRC_PB *((volatile unsigned int*)(0x4266E62CUL)) -#define bFM3_GPIO_PZRC_PC *((volatile unsigned int*)(0x4266E630UL)) -#define bFM3_GPIO_PZRC_PD *((volatile unsigned int*)(0x4266E634UL)) -#define bFM3_GPIO_PZRC_PE *((volatile unsigned int*)(0x4266E638UL)) -#define bFM3_GPIO_PZRC_PF *((volatile unsigned int*)(0x4266E63CUL)) -#define bFM3_GPIO_PZRD_P0 *((volatile unsigned int*)(0x4266E680UL)) -#define bFM3_GPIO_PZRD_P1 *((volatile unsigned int*)(0x4266E684UL)) -#define bFM3_GPIO_PZRD_P2 *((volatile unsigned int*)(0x4266E688UL)) -#define bFM3_GPIO_PZRD_P3 *((volatile unsigned int*)(0x4266E68CUL)) -#define bFM3_GPIO_PZRE_P0 *((volatile unsigned int*)(0x4266E700UL)) -#define bFM3_GPIO_PZRE_P2 *((volatile unsigned int*)(0x4266E708UL)) -#define bFM3_GPIO_PZRE_P3 *((volatile unsigned int*)(0x4266E70CUL)) -#define bFM3_GPIO_PZRF_P0 *((volatile unsigned int*)(0x4266E780UL)) -#define bFM3_GPIO_PZRF_P1 *((volatile unsigned int*)(0x4266E784UL)) -#define bFM3_GPIO_PZRF_P2 *((volatile unsigned int*)(0x4266E788UL)) -#define bFM3_GPIO_PZRF_P3 *((volatile unsigned int*)(0x4266E78CUL)) -#define bFM3_GPIO_PZRF_P4 *((volatile unsigned int*)(0x4266E790UL)) -#define bFM3_GPIO_PZRF_P5 *((volatile unsigned int*)(0x4266E794UL)) -#define bFM3_GPIO_PZRF_P6 *((volatile unsigned int*)(0x4266E798UL)) - -/* Low voltage detection registers */ -#define bFM3_LVD_LVD_CTL_SVHI0 *((volatile unsigned int*)(0x426A0008UL)) -#define bFM3_LVD_LVD_CTL_SVHI1 *((volatile unsigned int*)(0x426A000CUL)) -#define bFM3_LVD_LVD_CTL_SVHI2 *((volatile unsigned int*)(0x426A0010UL)) -#define bFM3_LVD_LVD_CTL_SVHI3 *((volatile unsigned int*)(0x426A0014UL)) -#define bFM3_LVD_LVD_CTL_LVDIE *((volatile unsigned int*)(0x426A001CUL)) -#define bFM3_LVD_LVD_STR_LVDIR *((volatile unsigned int*)(0x426A009CUL)) -#define bFM3_LVD_LVD_CLR_LVDCL *((volatile unsigned int*)(0x426A011CUL)) -#define bFM3_LVD_LVD_STR2_LVDIRDY *((volatile unsigned int*)(0x426A021CUL)) - -/* USB clock registers */ -#define bFM3_USBETHERNETCLK_UCCR_UCEN0 *((volatile unsigned int*)(0x426C0000UL)) -#define bFM3_USBETHERNETCLK_UCCR_UCSEL0 *((volatile unsigned int*)(0x426C0004UL)) -#define bFM3_USBETHERNETCLK_UCCR_UCSEL1 *((volatile unsigned int*)(0x426C0008UL)) -#define bFM3_USBETHERNETCLK_UCCR_UCEN1 *((volatile unsigned int*)(0x426C000CUL)) -#define bFM3_USBETHERNETCLK_UCCR_ECEN *((volatile unsigned int*)(0x426C0010UL)) -#define bFM3_USBETHERNETCLK_UCCR_ECSEL0 *((volatile unsigned int*)(0x426C0014UL)) -#define bFM3_USBETHERNETCLK_UCCR_ECSEL1 *((volatile unsigned int*)(0x426C0018UL)) -#define bFM3_USBETHERNETCLK_UPCR1_UPLLEN *((volatile unsigned int*)(0x426C0080UL)) -#define bFM3_USBETHERNETCLK_UPCR1_UPINC *((volatile unsigned int*)(0x426C0084UL)) -#define bFM3_USBETHERNETCLK_UPCR2_UPOWT0 *((volatile unsigned int*)(0x426C0100UL)) -#define bFM3_USBETHERNETCLK_UPCR2_UPOWT1 *((volatile unsigned int*)(0x426C0104UL)) -#define bFM3_USBETHERNETCLK_UPCR2_UPOWT2 *((volatile unsigned int*)(0x426C0108UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK0 *((volatile unsigned int*)(0x426C0180UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK1 *((volatile unsigned int*)(0x426C0184UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK2 *((volatile unsigned int*)(0x426C0188UL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK3 *((volatile unsigned int*)(0x426C018CUL)) -#define bFM3_USBETHERNETCLK_UPCR3_UPLLK4 *((volatile unsigned int*)(0x426C0190UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN0 *((volatile unsigned int*)(0x426C0200UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN1 *((volatile unsigned int*)(0x426C0204UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN2 *((volatile unsigned int*)(0x426C0208UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN3 *((volatile unsigned int*)(0x426C020CUL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN4 *((volatile unsigned int*)(0x426C0210UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN5 *((volatile unsigned int*)(0x426C0214UL)) -#define bFM3_USBETHERNETCLK_UPCR4_UPLLN6 *((volatile unsigned int*)(0x426C0218UL)) -#define bFM3_USBETHERNETCLK_UP_STR_UPRDY *((volatile unsigned int*)(0x426C0280UL)) -#define bFM3_USBETHERNETCLK_UPINT_ENR_UPCSE *((volatile unsigned int*)(0x426C0300UL)) -#define bFM3_USBETHERNETCLK_UPINT_CLR_UPCSC *((volatile unsigned int*)(0x426C0380UL)) -#define bFM3_USBETHERNETCLK_UPINT_STR_UPCSI *((volatile unsigned int*)(0x426C0400UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM0 *((volatile unsigned int*)(0x426C0480UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM1 *((volatile unsigned int*)(0x426C0484UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM2 *((volatile unsigned int*)(0x426C0488UL)) -#define bFM3_USBETHERNETCLK_UPCR5_UPLLM3 *((volatile unsigned int*)(0x426C048CUL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR0 *((volatile unsigned int*)(0x426C0500UL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR1 *((volatile unsigned int*)(0x426C0504UL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR2 *((volatile unsigned int*)(0x426C0508UL)) -#define bFM3_USBETHERNETCLK_UPCR6_UBSR3 *((volatile unsigned int*)(0x426C050CUL)) -#define bFM3_USBETHERNETCLK_UPCR7_EPLLEN *((volatile unsigned int*)(0x426C0580UL)) -#define bFM3_USBETHERNETCLK_USBEN0_USBEN0 *((volatile unsigned int*)(0x426C0600UL)) -#define bFM3_USBETHERNETCLK_USBEN1_USBEN1 *((volatile unsigned int*)(0x426C0680UL)) - -/* UART asynchronous channel 0 registers */ -#define bFM3_MFS0_UART_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_UART_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_UART_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_UART_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_UART_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_UART_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_UART_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_UART_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_UART_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_UART_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_UART_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_UART_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_UART_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_UART_ESCR_P *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_UART_ESCR_PEN *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_UART_ESCR_INV *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_UART_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_UART_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_UART_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_UART_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_UART_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_UART_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_UART_SSR_PE *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_UART_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_UART_RDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_TDR_AD *((volatile unsigned int*)(0x42700120UL)) -#define bFM3_MFS0_UART_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_UART_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* UART synchronous channel 0 registers */ -#define bFM3_MFS0_CSIO_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42700004UL)) -#define bFM3_MFS0_CSIO_SMR_BDS *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_CSIO_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_CSIO_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_CSIO_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_CSIO_SCR_SPI *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_CSIO_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_CSIO_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_CSIO_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_CSIO_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) - -/* UART LIN channel 0 registers */ -#define bFM3_MFS0_LIN_SMR_SOE *((volatile unsigned int*)(0x42700000UL)) -#define bFM3_MFS0_LIN_SMR_SBL *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_LIN_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_LIN_SCR_TXE *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_LIN_SCR_RXE *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_LIN_SCR_TBIE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_LIN_SCR_TIE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_LIN_SCR_RIE *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_LIN_SCR_LBR *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_LIN_SCR_MS *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_LIN_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_LIN_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_LIN_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_LIN_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_LIN_SSR_FRE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_LIN_SSR_LBD *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_LIN_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_LIN_BGR_EXT *((volatile unsigned int*)(0x427001BCUL)) -#define bFM3_MFS0_LIN_BGR1_EXT *((volatile unsigned int*)(0x427001BCUL)) - -/* I2C channel 0 registers */ -#define bFM3_MFS0_I2C_SMR_TIE *((volatile unsigned int*)(0x42700008UL)) -#define bFM3_MFS0_I2C_SMR_RIE *((volatile unsigned int*)(0x4270000CUL)) -#define bFM3_MFS0_I2C_SMR_WUCR *((volatile unsigned int*)(0x42700010UL)) -#define bFM3_MFS0_I2C_IBCR_INT *((volatile unsigned int*)(0x42700020UL)) -#define bFM3_MFS0_I2C_IBCR_BER *((volatile unsigned int*)(0x42700024UL)) -#define bFM3_MFS0_I2C_IBCR_INTE *((volatile unsigned int*)(0x42700028UL)) -#define bFM3_MFS0_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270002CUL)) -#define bFM3_MFS0_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42700030UL)) -#define bFM3_MFS0_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42700034UL)) -#define bFM3_MFS0_I2C_IBCR_ACT *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_SCC *((volatile unsigned int*)(0x42700038UL)) -#define bFM3_MFS0_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270003CUL)) -#define bFM3_MFS0_I2C_IBSR_BB *((volatile unsigned int*)(0x42700080UL)) -#define bFM3_MFS0_I2C_IBSR_SPC *((volatile unsigned int*)(0x42700084UL)) -#define bFM3_MFS0_I2C_IBSR_RSC *((volatile unsigned int*)(0x42700088UL)) -#define bFM3_MFS0_I2C_IBSR_AL *((volatile unsigned int*)(0x4270008CUL)) -#define bFM3_MFS0_I2C_IBSR_TRX *((volatile unsigned int*)(0x42700090UL)) -#define bFM3_MFS0_I2C_IBSR_RSA *((volatile unsigned int*)(0x42700094UL)) -#define bFM3_MFS0_I2C_IBSR_RACK *((volatile unsigned int*)(0x42700098UL)) -#define bFM3_MFS0_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270009CUL)) -#define bFM3_MFS0_I2C_SSR_TBI *((volatile unsigned int*)(0x427000A0UL)) -#define bFM3_MFS0_I2C_SSR_TDRE *((volatile unsigned int*)(0x427000A4UL)) -#define bFM3_MFS0_I2C_SSR_RDRF *((volatile unsigned int*)(0x427000A8UL)) -#define bFM3_MFS0_I2C_SSR_ORE *((volatile unsigned int*)(0x427000ACUL)) -#define bFM3_MFS0_I2C_SSR_TBIE *((volatile unsigned int*)(0x427000B0UL)) -#define bFM3_MFS0_I2C_SSR_DMA *((volatile unsigned int*)(0x427000B4UL)) -#define bFM3_MFS0_I2C_SSR_TSET *((volatile unsigned int*)(0x427000B8UL)) -#define bFM3_MFS0_I2C_SSR_REC *((volatile unsigned int*)(0x427000BCUL)) -#define bFM3_MFS0_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42700200UL)) -#define bFM3_MFS0_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42700204UL)) -#define bFM3_MFS0_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42700208UL)) -#define bFM3_MFS0_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270020CUL)) -#define bFM3_MFS0_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42700210UL)) -#define bFM3_MFS0_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42700214UL)) -#define bFM3_MFS0_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42700218UL)) -#define bFM3_MFS0_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270021CUL)) -#define bFM3_MFS0_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42700220UL)) -#define bFM3_MFS0_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42700224UL)) -#define bFM3_MFS0_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42700228UL)) -#define bFM3_MFS0_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270022CUL)) -#define bFM3_MFS0_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42700230UL)) -#define bFM3_MFS0_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42700234UL)) -#define bFM3_MFS0_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42700238UL)) -#define bFM3_MFS0_I2C_ISMK_EN *((volatile unsigned int*)(0x4270023CUL)) - -/* UART asynchronous channel 1 registers */ -#define bFM3_MFS1_UART_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_UART_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_UART_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_UART_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_UART_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_UART_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_UART_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_UART_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_UART_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_UART_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_UART_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_UART_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_UART_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_UART_ESCR_P *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_UART_ESCR_PEN *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_UART_ESCR_INV *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_UART_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_UART_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_UART_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_UART_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_UART_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_UART_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_UART_SSR_PE *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_UART_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_UART_RDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_TDR_AD *((volatile unsigned int*)(0x42702120UL)) -#define bFM3_MFS1_UART_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_UART_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* UART synchronous channel 1 registers */ -#define bFM3_MFS1_CSIO_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42702004UL)) -#define bFM3_MFS1_CSIO_SMR_BDS *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_CSIO_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_CSIO_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_CSIO_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_CSIO_SCR_SPI *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_CSIO_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_CSIO_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_CSIO_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_CSIO_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) - -/* UART LIN channel 1 registers */ -#define bFM3_MFS1_LIN_SMR_SOE *((volatile unsigned int*)(0x42702000UL)) -#define bFM3_MFS1_LIN_SMR_SBL *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_LIN_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_LIN_SCR_TXE *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_LIN_SCR_RXE *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_LIN_SCR_TBIE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_LIN_SCR_TIE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_LIN_SCR_RIE *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_LIN_SCR_LBR *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_LIN_SCR_MS *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_LIN_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_LIN_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_LIN_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_LIN_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_LIN_SSR_FRE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_LIN_SSR_LBD *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_LIN_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_LIN_BGR_EXT *((volatile unsigned int*)(0x427021BCUL)) -#define bFM3_MFS1_LIN_BGR1_EXT *((volatile unsigned int*)(0x427021BCUL)) - -/* I2C channel 1 registers */ -#define bFM3_MFS1_I2C_SMR_TIE *((volatile unsigned int*)(0x42702008UL)) -#define bFM3_MFS1_I2C_SMR_RIE *((volatile unsigned int*)(0x4270200CUL)) -#define bFM3_MFS1_I2C_SMR_WUCR *((volatile unsigned int*)(0x42702010UL)) -#define bFM3_MFS1_I2C_IBCR_INT *((volatile unsigned int*)(0x42702020UL)) -#define bFM3_MFS1_I2C_IBCR_BER *((volatile unsigned int*)(0x42702024UL)) -#define bFM3_MFS1_I2C_IBCR_INTE *((volatile unsigned int*)(0x42702028UL)) -#define bFM3_MFS1_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270202CUL)) -#define bFM3_MFS1_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42702030UL)) -#define bFM3_MFS1_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42702034UL)) -#define bFM3_MFS1_I2C_IBCR_ACT *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_SCC *((volatile unsigned int*)(0x42702038UL)) -#define bFM3_MFS1_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270203CUL)) -#define bFM3_MFS1_I2C_IBSR_BB *((volatile unsigned int*)(0x42702080UL)) -#define bFM3_MFS1_I2C_IBSR_SPC *((volatile unsigned int*)(0x42702084UL)) -#define bFM3_MFS1_I2C_IBSR_RSC *((volatile unsigned int*)(0x42702088UL)) -#define bFM3_MFS1_I2C_IBSR_AL *((volatile unsigned int*)(0x4270208CUL)) -#define bFM3_MFS1_I2C_IBSR_TRX *((volatile unsigned int*)(0x42702090UL)) -#define bFM3_MFS1_I2C_IBSR_RSA *((volatile unsigned int*)(0x42702094UL)) -#define bFM3_MFS1_I2C_IBSR_RACK *((volatile unsigned int*)(0x42702098UL)) -#define bFM3_MFS1_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270209CUL)) -#define bFM3_MFS1_I2C_SSR_TBI *((volatile unsigned int*)(0x427020A0UL)) -#define bFM3_MFS1_I2C_SSR_TDRE *((volatile unsigned int*)(0x427020A4UL)) -#define bFM3_MFS1_I2C_SSR_RDRF *((volatile unsigned int*)(0x427020A8UL)) -#define bFM3_MFS1_I2C_SSR_ORE *((volatile unsigned int*)(0x427020ACUL)) -#define bFM3_MFS1_I2C_SSR_TBIE *((volatile unsigned int*)(0x427020B0UL)) -#define bFM3_MFS1_I2C_SSR_DMA *((volatile unsigned int*)(0x427020B4UL)) -#define bFM3_MFS1_I2C_SSR_TSET *((volatile unsigned int*)(0x427020B8UL)) -#define bFM3_MFS1_I2C_SSR_REC *((volatile unsigned int*)(0x427020BCUL)) -#define bFM3_MFS1_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42702200UL)) -#define bFM3_MFS1_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42702204UL)) -#define bFM3_MFS1_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42702208UL)) -#define bFM3_MFS1_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270220CUL)) -#define bFM3_MFS1_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42702210UL)) -#define bFM3_MFS1_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42702214UL)) -#define bFM3_MFS1_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42702218UL)) -#define bFM3_MFS1_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270221CUL)) -#define bFM3_MFS1_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42702220UL)) -#define bFM3_MFS1_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42702224UL)) -#define bFM3_MFS1_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42702228UL)) -#define bFM3_MFS1_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270222CUL)) -#define bFM3_MFS1_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42702230UL)) -#define bFM3_MFS1_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42702234UL)) -#define bFM3_MFS1_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42702238UL)) -#define bFM3_MFS1_I2C_ISMK_EN *((volatile unsigned int*)(0x4270223CUL)) - -/* UART asynchronous channel 2 registers */ -#define bFM3_MFS2_UART_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_UART_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_UART_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_UART_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_UART_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_UART_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_UART_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_UART_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_UART_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_UART_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_UART_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_UART_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_UART_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_UART_ESCR_P *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_UART_ESCR_PEN *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_UART_ESCR_INV *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_UART_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_UART_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_UART_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_UART_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_UART_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_UART_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_UART_SSR_PE *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_UART_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_UART_RDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_TDR_AD *((volatile unsigned int*)(0x42704120UL)) -#define bFM3_MFS2_UART_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_UART_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* UART synchronous channel 2 registers */ -#define bFM3_MFS2_CSIO_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42704004UL)) -#define bFM3_MFS2_CSIO_SMR_BDS *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_CSIO_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_CSIO_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_CSIO_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_CSIO_SCR_SPI *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_CSIO_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_CSIO_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_CSIO_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_CSIO_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) - -/* UART LIN channel 2 registers */ -#define bFM3_MFS2_LIN_SMR_SOE *((volatile unsigned int*)(0x42704000UL)) -#define bFM3_MFS2_LIN_SMR_SBL *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_LIN_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_LIN_SCR_TXE *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_LIN_SCR_RXE *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_LIN_SCR_TBIE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_LIN_SCR_TIE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_LIN_SCR_RIE *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_LIN_SCR_LBR *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_LIN_SCR_MS *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_LIN_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_LIN_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_LIN_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_LIN_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_LIN_SSR_FRE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_LIN_SSR_LBD *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_LIN_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_LIN_BGR_EXT *((volatile unsigned int*)(0x427041BCUL)) -#define bFM3_MFS2_LIN_BGR1_EXT *((volatile unsigned int*)(0x427041BCUL)) - -/* I2C channel 2 registers */ -#define bFM3_MFS2_I2C_SMR_TIE *((volatile unsigned int*)(0x42704008UL)) -#define bFM3_MFS2_I2C_SMR_RIE *((volatile unsigned int*)(0x4270400CUL)) -#define bFM3_MFS2_I2C_SMR_WUCR *((volatile unsigned int*)(0x42704010UL)) -#define bFM3_MFS2_I2C_IBCR_INT *((volatile unsigned int*)(0x42704020UL)) -#define bFM3_MFS2_I2C_IBCR_BER *((volatile unsigned int*)(0x42704024UL)) -#define bFM3_MFS2_I2C_IBCR_INTE *((volatile unsigned int*)(0x42704028UL)) -#define bFM3_MFS2_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270402CUL)) -#define bFM3_MFS2_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42704030UL)) -#define bFM3_MFS2_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42704034UL)) -#define bFM3_MFS2_I2C_IBCR_ACT *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_SCC *((volatile unsigned int*)(0x42704038UL)) -#define bFM3_MFS2_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270403CUL)) -#define bFM3_MFS2_I2C_IBSR_BB *((volatile unsigned int*)(0x42704080UL)) -#define bFM3_MFS2_I2C_IBSR_SPC *((volatile unsigned int*)(0x42704084UL)) -#define bFM3_MFS2_I2C_IBSR_RSC *((volatile unsigned int*)(0x42704088UL)) -#define bFM3_MFS2_I2C_IBSR_AL *((volatile unsigned int*)(0x4270408CUL)) -#define bFM3_MFS2_I2C_IBSR_TRX *((volatile unsigned int*)(0x42704090UL)) -#define bFM3_MFS2_I2C_IBSR_RSA *((volatile unsigned int*)(0x42704094UL)) -#define bFM3_MFS2_I2C_IBSR_RACK *((volatile unsigned int*)(0x42704098UL)) -#define bFM3_MFS2_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270409CUL)) -#define bFM3_MFS2_I2C_SSR_TBI *((volatile unsigned int*)(0x427040A0UL)) -#define bFM3_MFS2_I2C_SSR_TDRE *((volatile unsigned int*)(0x427040A4UL)) -#define bFM3_MFS2_I2C_SSR_RDRF *((volatile unsigned int*)(0x427040A8UL)) -#define bFM3_MFS2_I2C_SSR_ORE *((volatile unsigned int*)(0x427040ACUL)) -#define bFM3_MFS2_I2C_SSR_TBIE *((volatile unsigned int*)(0x427040B0UL)) -#define bFM3_MFS2_I2C_SSR_DMA *((volatile unsigned int*)(0x427040B4UL)) -#define bFM3_MFS2_I2C_SSR_TSET *((volatile unsigned int*)(0x427040B8UL)) -#define bFM3_MFS2_I2C_SSR_REC *((volatile unsigned int*)(0x427040BCUL)) -#define bFM3_MFS2_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42704200UL)) -#define bFM3_MFS2_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42704204UL)) -#define bFM3_MFS2_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42704208UL)) -#define bFM3_MFS2_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270420CUL)) -#define bFM3_MFS2_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42704210UL)) -#define bFM3_MFS2_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42704214UL)) -#define bFM3_MFS2_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42704218UL)) -#define bFM3_MFS2_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270421CUL)) -#define bFM3_MFS2_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42704220UL)) -#define bFM3_MFS2_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42704224UL)) -#define bFM3_MFS2_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42704228UL)) -#define bFM3_MFS2_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270422CUL)) -#define bFM3_MFS2_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42704230UL)) -#define bFM3_MFS2_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42704234UL)) -#define bFM3_MFS2_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42704238UL)) -#define bFM3_MFS2_I2C_ISMK_EN *((volatile unsigned int*)(0x4270423CUL)) - -/* UART asynchronous channel 3 registers */ -#define bFM3_MFS3_UART_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_UART_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_UART_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_UART_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_UART_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_UART_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_UART_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_UART_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_UART_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_UART_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_UART_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_UART_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_UART_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_UART_ESCR_P *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_UART_ESCR_PEN *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_UART_ESCR_INV *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_UART_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_UART_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_UART_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_UART_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_UART_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_UART_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_UART_SSR_PE *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_UART_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_UART_RDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_TDR_AD *((volatile unsigned int*)(0x42706120UL)) -#define bFM3_MFS3_UART_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_UART_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* UART synchronous channel 3 registers */ -#define bFM3_MFS3_CSIO_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42706004UL)) -#define bFM3_MFS3_CSIO_SMR_BDS *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_CSIO_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_CSIO_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_CSIO_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_CSIO_SCR_SPI *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_CSIO_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_CSIO_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_CSIO_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_CSIO_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) - -/* UART LIN channel 3 registers */ -#define bFM3_MFS3_LIN_SMR_SOE *((volatile unsigned int*)(0x42706000UL)) -#define bFM3_MFS3_LIN_SMR_SBL *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_LIN_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_LIN_SCR_TXE *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_LIN_SCR_RXE *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_LIN_SCR_TBIE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_LIN_SCR_TIE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_LIN_SCR_RIE *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_LIN_SCR_LBR *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_LIN_SCR_MS *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_LIN_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_LIN_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_LIN_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_LIN_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_LIN_SSR_FRE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_LIN_SSR_LBD *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_LIN_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_LIN_BGR_EXT *((volatile unsigned int*)(0x427061BCUL)) -#define bFM3_MFS3_LIN_BGR1_EXT *((volatile unsigned int*)(0x427061BCUL)) - -/* I2C channel 3 registers */ -#define bFM3_MFS3_I2C_SMR_TIE *((volatile unsigned int*)(0x42706008UL)) -#define bFM3_MFS3_I2C_SMR_RIE *((volatile unsigned int*)(0x4270600CUL)) -#define bFM3_MFS3_I2C_SMR_WUCR *((volatile unsigned int*)(0x42706010UL)) -#define bFM3_MFS3_I2C_IBCR_INT *((volatile unsigned int*)(0x42706020UL)) -#define bFM3_MFS3_I2C_IBCR_BER *((volatile unsigned int*)(0x42706024UL)) -#define bFM3_MFS3_I2C_IBCR_INTE *((volatile unsigned int*)(0x42706028UL)) -#define bFM3_MFS3_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270602CUL)) -#define bFM3_MFS3_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42706030UL)) -#define bFM3_MFS3_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42706034UL)) -#define bFM3_MFS3_I2C_IBCR_ACT *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_SCC *((volatile unsigned int*)(0x42706038UL)) -#define bFM3_MFS3_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270603CUL)) -#define bFM3_MFS3_I2C_IBSR_BB *((volatile unsigned int*)(0x42706080UL)) -#define bFM3_MFS3_I2C_IBSR_SPC *((volatile unsigned int*)(0x42706084UL)) -#define bFM3_MFS3_I2C_IBSR_RSC *((volatile unsigned int*)(0x42706088UL)) -#define bFM3_MFS3_I2C_IBSR_AL *((volatile unsigned int*)(0x4270608CUL)) -#define bFM3_MFS3_I2C_IBSR_TRX *((volatile unsigned int*)(0x42706090UL)) -#define bFM3_MFS3_I2C_IBSR_RSA *((volatile unsigned int*)(0x42706094UL)) -#define bFM3_MFS3_I2C_IBSR_RACK *((volatile unsigned int*)(0x42706098UL)) -#define bFM3_MFS3_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270609CUL)) -#define bFM3_MFS3_I2C_SSR_TBI *((volatile unsigned int*)(0x427060A0UL)) -#define bFM3_MFS3_I2C_SSR_TDRE *((volatile unsigned int*)(0x427060A4UL)) -#define bFM3_MFS3_I2C_SSR_RDRF *((volatile unsigned int*)(0x427060A8UL)) -#define bFM3_MFS3_I2C_SSR_ORE *((volatile unsigned int*)(0x427060ACUL)) -#define bFM3_MFS3_I2C_SSR_TBIE *((volatile unsigned int*)(0x427060B0UL)) -#define bFM3_MFS3_I2C_SSR_DMA *((volatile unsigned int*)(0x427060B4UL)) -#define bFM3_MFS3_I2C_SSR_TSET *((volatile unsigned int*)(0x427060B8UL)) -#define bFM3_MFS3_I2C_SSR_REC *((volatile unsigned int*)(0x427060BCUL)) -#define bFM3_MFS3_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42706200UL)) -#define bFM3_MFS3_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42706204UL)) -#define bFM3_MFS3_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42706208UL)) -#define bFM3_MFS3_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270620CUL)) -#define bFM3_MFS3_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42706210UL)) -#define bFM3_MFS3_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42706214UL)) -#define bFM3_MFS3_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42706218UL)) -#define bFM3_MFS3_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270621CUL)) -#define bFM3_MFS3_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42706220UL)) -#define bFM3_MFS3_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42706224UL)) -#define bFM3_MFS3_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42706228UL)) -#define bFM3_MFS3_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270622CUL)) -#define bFM3_MFS3_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42706230UL)) -#define bFM3_MFS3_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42706234UL)) -#define bFM3_MFS3_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42706238UL)) -#define bFM3_MFS3_I2C_ISMK_EN *((volatile unsigned int*)(0x4270623CUL)) - -/* UART asynchronous channel 4 registers */ -#define bFM3_MFS4_UART_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_UART_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_UART_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_UART_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_UART_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_UART_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_UART_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_UART_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_UART_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_UART_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_UART_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_UART_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_UART_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_UART_ESCR_P *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_UART_ESCR_PEN *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_UART_ESCR_INV *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_UART_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_UART_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_UART_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_UART_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_UART_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_UART_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_UART_SSR_PE *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_UART_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_UART_RDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_TDR_AD *((volatile unsigned int*)(0x42708120UL)) -#define bFM3_MFS4_UART_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_UART_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_UART_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_UART_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_UART_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_UART_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_UART_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_UART_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_UART_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_UART_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_UART_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_UART_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_UART_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_UART_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_UART_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART synchronous channel 4 registers */ -#define bFM3_MFS4_CSIO_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_CSIO_SMR_SCKE *((volatile unsigned int*)(0x42708004UL)) -#define bFM3_MFS4_CSIO_SMR_BDS *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_CSIO_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_CSIO_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_CSIO_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_CSIO_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_CSIO_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_CSIO_SCR_SPI *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_CSIO_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_CSIO_ESCR_L0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_CSIO_ESCR_L1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_CSIO_ESCR_L2 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_CSIO_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_CSIO_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_CSIO_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_CSIO_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_CSIO_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_CSIO_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_CSIO_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_CSIO_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_CSIO_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART LIN channel 4 registers */ -#define bFM3_MFS4_LIN_SMR_SOE *((volatile unsigned int*)(0x42708000UL)) -#define bFM3_MFS4_LIN_SMR_SBL *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_LIN_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_LIN_SCR_TXE *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_LIN_SCR_RXE *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_LIN_SCR_TBIE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_LIN_SCR_TIE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_LIN_SCR_RIE *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_LIN_SCR_LBR *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_LIN_SCR_MS *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_LIN_ESCR_LBIE *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_LIN_ESCR_ESBL *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_LIN_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_LIN_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_LIN_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_LIN_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_LIN_SSR_FRE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_LIN_SSR_LBD *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_LIN_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_LIN_BGR_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_BGR1_EXT *((volatile unsigned int*)(0x427081BCUL)) -#define bFM3_MFS4_LIN_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_LIN_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_LIN_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_LIN_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_LIN_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_LIN_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_LIN_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_LIN_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* I2C channel 4 registers */ -#define bFM3_MFS4_I2C_SMR_TIE *((volatile unsigned int*)(0x42708008UL)) -#define bFM3_MFS4_I2C_SMR_RIE *((volatile unsigned int*)(0x4270800CUL)) -#define bFM3_MFS4_I2C_SMR_WUCR *((volatile unsigned int*)(0x42708010UL)) -#define bFM3_MFS4_I2C_IBCR_INT *((volatile unsigned int*)(0x42708020UL)) -#define bFM3_MFS4_I2C_IBCR_BER *((volatile unsigned int*)(0x42708024UL)) -#define bFM3_MFS4_I2C_IBCR_INTE *((volatile unsigned int*)(0x42708028UL)) -#define bFM3_MFS4_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270802CUL)) -#define bFM3_MFS4_I2C_IBCR_WSEL *((volatile unsigned int*)(0x42708030UL)) -#define bFM3_MFS4_I2C_IBCR_ACKE *((volatile unsigned int*)(0x42708034UL)) -#define bFM3_MFS4_I2C_IBCR_ACT *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_SCC *((volatile unsigned int*)(0x42708038UL)) -#define bFM3_MFS4_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270803CUL)) -#define bFM3_MFS4_I2C_IBSR_BB *((volatile unsigned int*)(0x42708080UL)) -#define bFM3_MFS4_I2C_IBSR_SPC *((volatile unsigned int*)(0x42708084UL)) -#define bFM3_MFS4_I2C_IBSR_RSC *((volatile unsigned int*)(0x42708088UL)) -#define bFM3_MFS4_I2C_IBSR_AL *((volatile unsigned int*)(0x4270808CUL)) -#define bFM3_MFS4_I2C_IBSR_TRX *((volatile unsigned int*)(0x42708090UL)) -#define bFM3_MFS4_I2C_IBSR_RSA *((volatile unsigned int*)(0x42708094UL)) -#define bFM3_MFS4_I2C_IBSR_RACK *((volatile unsigned int*)(0x42708098UL)) -#define bFM3_MFS4_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270809CUL)) -#define bFM3_MFS4_I2C_SSR_TBI *((volatile unsigned int*)(0x427080A0UL)) -#define bFM3_MFS4_I2C_SSR_TDRE *((volatile unsigned int*)(0x427080A4UL)) -#define bFM3_MFS4_I2C_SSR_RDRF *((volatile unsigned int*)(0x427080A8UL)) -#define bFM3_MFS4_I2C_SSR_ORE *((volatile unsigned int*)(0x427080ACUL)) -#define bFM3_MFS4_I2C_SSR_TBIE *((volatile unsigned int*)(0x427080B0UL)) -#define bFM3_MFS4_I2C_SSR_DMA *((volatile unsigned int*)(0x427080B4UL)) -#define bFM3_MFS4_I2C_SSR_TSET *((volatile unsigned int*)(0x427080B8UL)) -#define bFM3_MFS4_I2C_SSR_REC *((volatile unsigned int*)(0x427080BCUL)) -#define bFM3_MFS4_I2C_ISBA_SA0 *((volatile unsigned int*)(0x42708200UL)) -#define bFM3_MFS4_I2C_ISBA_SA1 *((volatile unsigned int*)(0x42708204UL)) -#define bFM3_MFS4_I2C_ISBA_SA2 *((volatile unsigned int*)(0x42708208UL)) -#define bFM3_MFS4_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270820CUL)) -#define bFM3_MFS4_I2C_ISBA_SA4 *((volatile unsigned int*)(0x42708210UL)) -#define bFM3_MFS4_I2C_ISBA_SA5 *((volatile unsigned int*)(0x42708214UL)) -#define bFM3_MFS4_I2C_ISBA_SA6 *((volatile unsigned int*)(0x42708218UL)) -#define bFM3_MFS4_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270821CUL)) -#define bFM3_MFS4_I2C_ISMK_SM0 *((volatile unsigned int*)(0x42708220UL)) -#define bFM3_MFS4_I2C_ISMK_SM1 *((volatile unsigned int*)(0x42708224UL)) -#define bFM3_MFS4_I2C_ISMK_SM2 *((volatile unsigned int*)(0x42708228UL)) -#define bFM3_MFS4_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270822CUL)) -#define bFM3_MFS4_I2C_ISMK_SM4 *((volatile unsigned int*)(0x42708230UL)) -#define bFM3_MFS4_I2C_ISMK_SM5 *((volatile unsigned int*)(0x42708234UL)) -#define bFM3_MFS4_I2C_ISMK_SM6 *((volatile unsigned int*)(0x42708238UL)) -#define bFM3_MFS4_I2C_ISMK_EN *((volatile unsigned int*)(0x4270823CUL)) -#define bFM3_MFS4_I2C_FCR_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FCR0_FE1 *((volatile unsigned int*)(0x42708280UL)) -#define bFM3_MFS4_I2C_FCR0_FE2 *((volatile unsigned int*)(0x42708284UL)) -#define bFM3_MFS4_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x42708288UL)) -#define bFM3_MFS4_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270828CUL)) -#define bFM3_MFS4_I2C_FCR0_FSET *((volatile unsigned int*)(0x42708290UL)) -#define bFM3_MFS4_I2C_FCR0_FLD *((volatile unsigned int*)(0x42708294UL)) -#define bFM3_MFS4_I2C_FCR0_FLST *((volatile unsigned int*)(0x42708298UL)) -#define bFM3_MFS4_I2C_FCR1_FSEL *((volatile unsigned int*)(0x427082A0UL)) -#define bFM3_MFS4_I2C_FCR1_FTIE *((volatile unsigned int*)(0x427082A4UL)) -#define bFM3_MFS4_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x427082A8UL)) -#define bFM3_MFS4_I2C_FCR1_FRIE *((volatile unsigned int*)(0x427082ACUL)) -#define bFM3_MFS4_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x427082B0UL)) -#define bFM3_MFS4_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x427082B8UL)) -#define bFM3_MFS4_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x427082BCUL)) -#define bFM3_MFS4_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270833CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x42708300UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x42708304UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x42708308UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270830CUL)) -#define bFM3_MFS4_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x42708310UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x42708314UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x42708318UL)) -#define bFM3_MFS4_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270831CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x42708320UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x42708324UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x42708328UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270832CUL)) -#define bFM3_MFS4_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x42708330UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x42708334UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x42708338UL)) -#define bFM3_MFS4_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270833CUL)) - -/* UART asynchronous channel 5 registers */ -#define bFM3_MFS5_UART_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_UART_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_UART_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_UART_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_UART_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_UART_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_UART_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_UART_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_UART_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_UART_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_UART_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_UART_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_UART_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_UART_ESCR_P *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_UART_ESCR_PEN *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_UART_ESCR_INV *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_UART_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_UART_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_UART_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_UART_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_UART_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_UART_SSR_PE *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_UART_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_UART_RDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_TDR_AD *((volatile unsigned int*)(0x4270A120UL)) -#define bFM3_MFS5_UART_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_UART_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_UART_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_UART_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_UART_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART synchronous channel 5 registers */ -#define bFM3_MFS5_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270A004UL)) -#define bFM3_MFS5_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_CSIO_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_CSIO_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART LIN channel 5 registers */ -#define bFM3_MFS5_LIN_SMR_SOE *((volatile unsigned int*)(0x4270A000UL)) -#define bFM3_MFS5_LIN_SMR_SBL *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_LIN_SCR_TXE *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_LIN_SCR_RXE *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_LIN_SCR_TIE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_LIN_SCR_RIE *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_LIN_SCR_LBR *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_LIN_SCR_MS *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_LIN_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_LIN_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_LIN_SSR_FRE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_LIN_SSR_LBD *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_LIN_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_LIN_BGR_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270A1BCUL)) -#define bFM3_MFS5_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* I2C channel 5 registers */ -#define bFM3_MFS5_I2C_SMR_TIE *((volatile unsigned int*)(0x4270A008UL)) -#define bFM3_MFS5_I2C_SMR_RIE *((volatile unsigned int*)(0x4270A00CUL)) -#define bFM3_MFS5_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270A010UL)) -#define bFM3_MFS5_I2C_IBCR_INT *((volatile unsigned int*)(0x4270A020UL)) -#define bFM3_MFS5_I2C_IBCR_BER *((volatile unsigned int*)(0x4270A024UL)) -#define bFM3_MFS5_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270A028UL)) -#define bFM3_MFS5_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270A02CUL)) -#define bFM3_MFS5_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270A030UL)) -#define bFM3_MFS5_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270A034UL)) -#define bFM3_MFS5_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270A038UL)) -#define bFM3_MFS5_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270A03CUL)) -#define bFM3_MFS5_I2C_IBSR_BB *((volatile unsigned int*)(0x4270A080UL)) -#define bFM3_MFS5_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270A084UL)) -#define bFM3_MFS5_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270A088UL)) -#define bFM3_MFS5_I2C_IBSR_AL *((volatile unsigned int*)(0x4270A08CUL)) -#define bFM3_MFS5_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270A090UL)) -#define bFM3_MFS5_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270A094UL)) -#define bFM3_MFS5_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270A098UL)) -#define bFM3_MFS5_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270A09CUL)) -#define bFM3_MFS5_I2C_SSR_TBI *((volatile unsigned int*)(0x4270A0A0UL)) -#define bFM3_MFS5_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270A0A4UL)) -#define bFM3_MFS5_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270A0A8UL)) -#define bFM3_MFS5_I2C_SSR_ORE *((volatile unsigned int*)(0x4270A0ACUL)) -#define bFM3_MFS5_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270A0B0UL)) -#define bFM3_MFS5_I2C_SSR_DMA *((volatile unsigned int*)(0x4270A0B4UL)) -#define bFM3_MFS5_I2C_SSR_TSET *((volatile unsigned int*)(0x4270A0B8UL)) -#define bFM3_MFS5_I2C_SSR_REC *((volatile unsigned int*)(0x4270A0BCUL)) -#define bFM3_MFS5_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270A200UL)) -#define bFM3_MFS5_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270A204UL)) -#define bFM3_MFS5_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270A208UL)) -#define bFM3_MFS5_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270A20CUL)) -#define bFM3_MFS5_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270A210UL)) -#define bFM3_MFS5_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270A214UL)) -#define bFM3_MFS5_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270A218UL)) -#define bFM3_MFS5_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270A21CUL)) -#define bFM3_MFS5_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270A220UL)) -#define bFM3_MFS5_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270A224UL)) -#define bFM3_MFS5_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270A228UL)) -#define bFM3_MFS5_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270A22CUL)) -#define bFM3_MFS5_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270A230UL)) -#define bFM3_MFS5_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270A234UL)) -#define bFM3_MFS5_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270A238UL)) -#define bFM3_MFS5_I2C_ISMK_EN *((volatile unsigned int*)(0x4270A23CUL)) -#define bFM3_MFS5_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270A280UL)) -#define bFM3_MFS5_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270A284UL)) -#define bFM3_MFS5_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270A288UL)) -#define bFM3_MFS5_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270A28CUL)) -#define bFM3_MFS5_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270A290UL)) -#define bFM3_MFS5_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270A294UL)) -#define bFM3_MFS5_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270A298UL)) -#define bFM3_MFS5_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270A2A0UL)) -#define bFM3_MFS5_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270A2A4UL)) -#define bFM3_MFS5_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270A2A8UL)) -#define bFM3_MFS5_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270A2ACUL)) -#define bFM3_MFS5_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270A2B0UL)) -#define bFM3_MFS5_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270A2B8UL)) -#define bFM3_MFS5_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270A2BCUL)) -#define bFM3_MFS5_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270A33CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270A300UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270A304UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270A308UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270A30CUL)) -#define bFM3_MFS5_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270A310UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270A314UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270A318UL)) -#define bFM3_MFS5_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270A31CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270A320UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270A324UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270A328UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270A32CUL)) -#define bFM3_MFS5_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270A330UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270A334UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270A338UL)) -#define bFM3_MFS5_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270A33CUL)) - -/* UART asynchronous channel 6 registers */ -#define bFM3_MFS6_UART_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_UART_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_UART_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_UART_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_UART_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_UART_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_UART_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_UART_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_UART_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_UART_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_UART_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_UART_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_UART_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_UART_ESCR_P *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_UART_ESCR_PEN *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_UART_ESCR_INV *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_UART_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_UART_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_UART_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_UART_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_UART_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_UART_SSR_PE *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_UART_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_UART_RDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_TDR_AD *((volatile unsigned int*)(0x4270C120UL)) -#define bFM3_MFS6_UART_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_UART_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_UART_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_UART_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_UART_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART synchronous channel 6 registers */ -#define bFM3_MFS6_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270C004UL)) -#define bFM3_MFS6_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_CSIO_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_CSIO_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART LIN channel 6 registers */ -#define bFM3_MFS6_LIN_SMR_SOE *((volatile unsigned int*)(0x4270C000UL)) -#define bFM3_MFS6_LIN_SMR_SBL *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_LIN_SCR_TXE *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_LIN_SCR_RXE *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_LIN_SCR_TIE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_LIN_SCR_RIE *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_LIN_SCR_LBR *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_LIN_SCR_MS *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_LIN_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_LIN_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_LIN_SSR_FRE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_LIN_SSR_LBD *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_LIN_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_LIN_BGR_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270C1BCUL)) -#define bFM3_MFS6_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* I2C channel 6 registers */ -#define bFM3_MFS6_I2C_SMR_TIE *((volatile unsigned int*)(0x4270C008UL)) -#define bFM3_MFS6_I2C_SMR_RIE *((volatile unsigned int*)(0x4270C00CUL)) -#define bFM3_MFS6_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270C010UL)) -#define bFM3_MFS6_I2C_IBCR_INT *((volatile unsigned int*)(0x4270C020UL)) -#define bFM3_MFS6_I2C_IBCR_BER *((volatile unsigned int*)(0x4270C024UL)) -#define bFM3_MFS6_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270C028UL)) -#define bFM3_MFS6_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270C02CUL)) -#define bFM3_MFS6_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270C030UL)) -#define bFM3_MFS6_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270C034UL)) -#define bFM3_MFS6_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270C038UL)) -#define bFM3_MFS6_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270C03CUL)) -#define bFM3_MFS6_I2C_IBSR_BB *((volatile unsigned int*)(0x4270C080UL)) -#define bFM3_MFS6_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270C084UL)) -#define bFM3_MFS6_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270C088UL)) -#define bFM3_MFS6_I2C_IBSR_AL *((volatile unsigned int*)(0x4270C08CUL)) -#define bFM3_MFS6_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270C090UL)) -#define bFM3_MFS6_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270C094UL)) -#define bFM3_MFS6_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270C098UL)) -#define bFM3_MFS6_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270C09CUL)) -#define bFM3_MFS6_I2C_SSR_TBI *((volatile unsigned int*)(0x4270C0A0UL)) -#define bFM3_MFS6_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270C0A4UL)) -#define bFM3_MFS6_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270C0A8UL)) -#define bFM3_MFS6_I2C_SSR_ORE *((volatile unsigned int*)(0x4270C0ACUL)) -#define bFM3_MFS6_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270C0B0UL)) -#define bFM3_MFS6_I2C_SSR_DMA *((volatile unsigned int*)(0x4270C0B4UL)) -#define bFM3_MFS6_I2C_SSR_TSET *((volatile unsigned int*)(0x4270C0B8UL)) -#define bFM3_MFS6_I2C_SSR_REC *((volatile unsigned int*)(0x4270C0BCUL)) -#define bFM3_MFS6_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270C200UL)) -#define bFM3_MFS6_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270C204UL)) -#define bFM3_MFS6_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270C208UL)) -#define bFM3_MFS6_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270C20CUL)) -#define bFM3_MFS6_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270C210UL)) -#define bFM3_MFS6_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270C214UL)) -#define bFM3_MFS6_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270C218UL)) -#define bFM3_MFS6_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270C21CUL)) -#define bFM3_MFS6_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270C220UL)) -#define bFM3_MFS6_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270C224UL)) -#define bFM3_MFS6_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270C228UL)) -#define bFM3_MFS6_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270C22CUL)) -#define bFM3_MFS6_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270C230UL)) -#define bFM3_MFS6_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270C234UL)) -#define bFM3_MFS6_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270C238UL)) -#define bFM3_MFS6_I2C_ISMK_EN *((volatile unsigned int*)(0x4270C23CUL)) -#define bFM3_MFS6_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270C280UL)) -#define bFM3_MFS6_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270C284UL)) -#define bFM3_MFS6_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270C288UL)) -#define bFM3_MFS6_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270C28CUL)) -#define bFM3_MFS6_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270C290UL)) -#define bFM3_MFS6_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270C294UL)) -#define bFM3_MFS6_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270C298UL)) -#define bFM3_MFS6_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270C2A0UL)) -#define bFM3_MFS6_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270C2A4UL)) -#define bFM3_MFS6_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270C2A8UL)) -#define bFM3_MFS6_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270C2ACUL)) -#define bFM3_MFS6_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270C2B0UL)) -#define bFM3_MFS6_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270C2B8UL)) -#define bFM3_MFS6_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270C2BCUL)) -#define bFM3_MFS6_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270C33CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270C300UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270C304UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270C308UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270C30CUL)) -#define bFM3_MFS6_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270C310UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270C314UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270C318UL)) -#define bFM3_MFS6_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270C31CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270C320UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270C324UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270C328UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270C32CUL)) -#define bFM3_MFS6_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270C330UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270C334UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270C338UL)) -#define bFM3_MFS6_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270C33CUL)) - -/* UART asynchronous channel 7 registers */ -#define bFM3_MFS7_UART_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_UART_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_UART_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_UART_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_UART_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_UART_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_UART_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_UART_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_UART_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_UART_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_UART_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_UART_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_UART_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_UART_ESCR_P *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_UART_ESCR_PEN *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_UART_ESCR_INV *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_UART_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_UART_ESCR_FLWEN *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_UART_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_UART_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_UART_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_UART_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_UART_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_UART_SSR_PE *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_UART_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_UART_RDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_TDR_AD *((volatile unsigned int*)(0x4270E120UL)) -#define bFM3_MFS7_UART_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_UART_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_UART_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_UART_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_UART_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_UART_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_UART_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_UART_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_UART_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_UART_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_UART_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_UART_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_UART_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_UART_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_UART_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_UART_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_UART_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_UART_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_UART_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_UART_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_UART_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_UART_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_UART_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_UART_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_UART_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_UART_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_UART_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_UART_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_UART_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_UART_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART synchronous channel 7 registers */ -#define bFM3_MFS7_CSIO_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_CSIO_SMR_SCKE *((volatile unsigned int*)(0x4270E004UL)) -#define bFM3_MFS7_CSIO_SMR_BDS *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_CSIO_SMR_SCINV *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_CSIO_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_CSIO_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_CSIO_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_CSIO_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_CSIO_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_CSIO_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_CSIO_SCR_SPI *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_CSIO_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_CSIO_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_CSIO_ESCR_L0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_CSIO_ESCR_L1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_CSIO_ESCR_L2 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_CSIO_ESCR_WT0 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_CSIO_ESCR_WT1 *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_CSIO_ESCR_SOP *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_CSIO_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_CSIO_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_CSIO_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_CSIO_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_CSIO_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_CSIO_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_CSIO_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_CSIO_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_CSIO_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_CSIO_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_CSIO_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_CSIO_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_CSIO_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_CSIO_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_CSIO_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_CSIO_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_CSIO_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_CSIO_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* UART LIN channel 7 registers */ -#define bFM3_MFS7_LIN_SMR_SOE *((volatile unsigned int*)(0x4270E000UL)) -#define bFM3_MFS7_LIN_SMR_SBL *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_LIN_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_LIN_SCR_TXE *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_LIN_SCR_RXE *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_LIN_SCR_TBIE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_LIN_SCR_TIE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_LIN_SCR_RIE *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_LIN_SCR_LBR *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_LIN_SCR_MS *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_LIN_SCR_UPCL *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_LIN_ESCR_DEL0 *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_LIN_ESCR_DEL1 *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_LIN_ESCR_LBL0 *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_LIN_ESCR_LBL1 *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_LIN_ESCR_LBIE *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_LIN_ESCR_ESBL *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_LIN_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_LIN_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_LIN_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_LIN_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_LIN_SSR_FRE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_LIN_SSR_LBD *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_LIN_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_LIN_BGR_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_BGR1_EXT *((volatile unsigned int*)(0x4270E1BCUL)) -#define bFM3_MFS7_LIN_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_LIN_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_LIN_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_LIN_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_LIN_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_LIN_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_LIN_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_LIN_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_LIN_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_LIN_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_LIN_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_LIN_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_LIN_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_LIN_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_LIN_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_LIN_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_LIN_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_LIN_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_LIN_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* I2C channel 7 registers */ -#define bFM3_MFS7_I2C_SMR_TIE *((volatile unsigned int*)(0x4270E008UL)) -#define bFM3_MFS7_I2C_SMR_RIE *((volatile unsigned int*)(0x4270E00CUL)) -#define bFM3_MFS7_I2C_SMR_WUCR *((volatile unsigned int*)(0x4270E010UL)) -#define bFM3_MFS7_I2C_IBCR_INT *((volatile unsigned int*)(0x4270E020UL)) -#define bFM3_MFS7_I2C_IBCR_BER *((volatile unsigned int*)(0x4270E024UL)) -#define bFM3_MFS7_I2C_IBCR_INTE *((volatile unsigned int*)(0x4270E028UL)) -#define bFM3_MFS7_I2C_IBCR_CNDE *((volatile unsigned int*)(0x4270E02CUL)) -#define bFM3_MFS7_I2C_IBCR_WSEL *((volatile unsigned int*)(0x4270E030UL)) -#define bFM3_MFS7_I2C_IBCR_ACKE *((volatile unsigned int*)(0x4270E034UL)) -#define bFM3_MFS7_I2C_IBCR_ACT *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_SCC *((volatile unsigned int*)(0x4270E038UL)) -#define bFM3_MFS7_I2C_IBCR_MSS *((volatile unsigned int*)(0x4270E03CUL)) -#define bFM3_MFS7_I2C_IBSR_BB *((volatile unsigned int*)(0x4270E080UL)) -#define bFM3_MFS7_I2C_IBSR_SPC *((volatile unsigned int*)(0x4270E084UL)) -#define bFM3_MFS7_I2C_IBSR_RSC *((volatile unsigned int*)(0x4270E088UL)) -#define bFM3_MFS7_I2C_IBSR_AL *((volatile unsigned int*)(0x4270E08CUL)) -#define bFM3_MFS7_I2C_IBSR_TRX *((volatile unsigned int*)(0x4270E090UL)) -#define bFM3_MFS7_I2C_IBSR_RSA *((volatile unsigned int*)(0x4270E094UL)) -#define bFM3_MFS7_I2C_IBSR_RACK *((volatile unsigned int*)(0x4270E098UL)) -#define bFM3_MFS7_I2C_IBSR_FBT *((volatile unsigned int*)(0x4270E09CUL)) -#define bFM3_MFS7_I2C_SSR_TBI *((volatile unsigned int*)(0x4270E0A0UL)) -#define bFM3_MFS7_I2C_SSR_TDRE *((volatile unsigned int*)(0x4270E0A4UL)) -#define bFM3_MFS7_I2C_SSR_RDRF *((volatile unsigned int*)(0x4270E0A8UL)) -#define bFM3_MFS7_I2C_SSR_ORE *((volatile unsigned int*)(0x4270E0ACUL)) -#define bFM3_MFS7_I2C_SSR_TBIE *((volatile unsigned int*)(0x4270E0B0UL)) -#define bFM3_MFS7_I2C_SSR_DMA *((volatile unsigned int*)(0x4270E0B4UL)) -#define bFM3_MFS7_I2C_SSR_TSET *((volatile unsigned int*)(0x4270E0B8UL)) -#define bFM3_MFS7_I2C_SSR_REC *((volatile unsigned int*)(0x4270E0BCUL)) -#define bFM3_MFS7_I2C_ISBA_SA0 *((volatile unsigned int*)(0x4270E200UL)) -#define bFM3_MFS7_I2C_ISBA_SA1 *((volatile unsigned int*)(0x4270E204UL)) -#define bFM3_MFS7_I2C_ISBA_SA2 *((volatile unsigned int*)(0x4270E208UL)) -#define bFM3_MFS7_I2C_ISBA_SA3 *((volatile unsigned int*)(0x4270E20CUL)) -#define bFM3_MFS7_I2C_ISBA_SA4 *((volatile unsigned int*)(0x4270E210UL)) -#define bFM3_MFS7_I2C_ISBA_SA5 *((volatile unsigned int*)(0x4270E214UL)) -#define bFM3_MFS7_I2C_ISBA_SA6 *((volatile unsigned int*)(0x4270E218UL)) -#define bFM3_MFS7_I2C_ISBA_SAEN *((volatile unsigned int*)(0x4270E21CUL)) -#define bFM3_MFS7_I2C_ISMK_SM0 *((volatile unsigned int*)(0x4270E220UL)) -#define bFM3_MFS7_I2C_ISMK_SM1 *((volatile unsigned int*)(0x4270E224UL)) -#define bFM3_MFS7_I2C_ISMK_SM2 *((volatile unsigned int*)(0x4270E228UL)) -#define bFM3_MFS7_I2C_ISMK_SM3 *((volatile unsigned int*)(0x4270E22CUL)) -#define bFM3_MFS7_I2C_ISMK_SM4 *((volatile unsigned int*)(0x4270E230UL)) -#define bFM3_MFS7_I2C_ISMK_SM5 *((volatile unsigned int*)(0x4270E234UL)) -#define bFM3_MFS7_I2C_ISMK_SM6 *((volatile unsigned int*)(0x4270E238UL)) -#define bFM3_MFS7_I2C_ISMK_EN *((volatile unsigned int*)(0x4270E23CUL)) -#define bFM3_MFS7_I2C_FCR_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FCR0_FE1 *((volatile unsigned int*)(0x4270E280UL)) -#define bFM3_MFS7_I2C_FCR0_FE2 *((volatile unsigned int*)(0x4270E284UL)) -#define bFM3_MFS7_I2C_FCR0_FCL1 *((volatile unsigned int*)(0x4270E288UL)) -#define bFM3_MFS7_I2C_FCR0_FCL2 *((volatile unsigned int*)(0x4270E28CUL)) -#define bFM3_MFS7_I2C_FCR0_FSET *((volatile unsigned int*)(0x4270E290UL)) -#define bFM3_MFS7_I2C_FCR0_FLD *((volatile unsigned int*)(0x4270E294UL)) -#define bFM3_MFS7_I2C_FCR0_FLST *((volatile unsigned int*)(0x4270E298UL)) -#define bFM3_MFS7_I2C_FCR1_FSEL *((volatile unsigned int*)(0x4270E2A0UL)) -#define bFM3_MFS7_I2C_FCR1_FTIE *((volatile unsigned int*)(0x4270E2A4UL)) -#define bFM3_MFS7_I2C_FCR1_FDRQ *((volatile unsigned int*)(0x4270E2A8UL)) -#define bFM3_MFS7_I2C_FCR1_FRIE *((volatile unsigned int*)(0x4270E2ACUL)) -#define bFM3_MFS7_I2C_FCR1_FLSTE *((volatile unsigned int*)(0x4270E2B0UL)) -#define bFM3_MFS7_I2C_FCR1_FTST0 *((volatile unsigned int*)(0x4270E2B8UL)) -#define bFM3_MFS7_I2C_FCR1_FTST1 *((volatile unsigned int*)(0x4270E2BCUL)) -#define bFM3_MFS7_I2C_FBYTE_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE_FD15 *((volatile unsigned int*)(0x4270E33CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD0 *((volatile unsigned int*)(0x4270E300UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD1 *((volatile unsigned int*)(0x4270E304UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD2 *((volatile unsigned int*)(0x4270E308UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD3 *((volatile unsigned int*)(0x4270E30CUL)) -#define bFM3_MFS7_I2C_FBYTE1_FD4 *((volatile unsigned int*)(0x4270E310UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD5 *((volatile unsigned int*)(0x4270E314UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD6 *((volatile unsigned int*)(0x4270E318UL)) -#define bFM3_MFS7_I2C_FBYTE1_FD7 *((volatile unsigned int*)(0x4270E31CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD8 *((volatile unsigned int*)(0x4270E320UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD9 *((volatile unsigned int*)(0x4270E324UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD10 *((volatile unsigned int*)(0x4270E328UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD11 *((volatile unsigned int*)(0x4270E32CUL)) -#define bFM3_MFS7_I2C_FBYTE2_FD12 *((volatile unsigned int*)(0x4270E330UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD13 *((volatile unsigned int*)(0x4270E334UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD14 *((volatile unsigned int*)(0x4270E338UL)) -#define bFM3_MFS7_I2C_FBYTE2_FD15 *((volatile unsigned int*)(0x4270E33CUL)) - -/* MFS Noise Filter Control registers */ -#define bFM3_MFS_NFC_I2CDNF_I2CDNF00 *((volatile unsigned int*)(0x42710000UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF01 *((volatile unsigned int*)(0x42710004UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF10 *((volatile unsigned int*)(0x42710008UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF11 *((volatile unsigned int*)(0x4271000CUL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF20 *((volatile unsigned int*)(0x42710010UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF21 *((volatile unsigned int*)(0x42710014UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF30 *((volatile unsigned int*)(0x42710018UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF31 *((volatile unsigned int*)(0x4271001CUL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF40 *((volatile unsigned int*)(0x42710020UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF41 *((volatile unsigned int*)(0x42710024UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF50 *((volatile unsigned int*)(0x42710028UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF51 *((volatile unsigned int*)(0x4271002CUL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF60 *((volatile unsigned int*)(0x42710030UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF61 *((volatile unsigned int*)(0x42710034UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF70 *((volatile unsigned int*)(0x42710038UL)) -#define bFM3_MFS_NFC_I2CDNF_I2CDNF71 *((volatile unsigned int*)(0x4271003CUL)) - -/* CRC registers */ -#define bFM3_CRC_CRCCR_INIT *((volatile unsigned int*)(0x42720000UL)) -#define bFM3_CRC_CRCCR_CRC32 *((volatile unsigned int*)(0x42720004UL)) -#define bFM3_CRC_CRCCR_LTLEND *((volatile unsigned int*)(0x42720008UL)) -#define bFM3_CRC_CRCCR_LSBFST *((volatile unsigned int*)(0x4272000CUL)) -#define bFM3_CRC_CRCCR_CRCLTE *((volatile unsigned int*)(0x42720010UL)) -#define bFM3_CRC_CRCCR_CRCLSF *((volatile unsigned int*)(0x42720014UL)) -#define bFM3_CRC_CRCCR_FXOR *((volatile unsigned int*)(0x42720018UL)) - -/* Watch counter registers */ -#define bFM3_WC_WCRD_CTR0 *((volatile unsigned int*)(0x42740000UL)) -#define bFM3_WC_WCRD_CTR1 *((volatile unsigned int*)(0x42740004UL)) -#define bFM3_WC_WCRD_CTR2 *((volatile unsigned int*)(0x42740008UL)) -#define bFM3_WC_WCRD_CTR3 *((volatile unsigned int*)(0x4274000CUL)) -#define bFM3_WC_WCRD_CTR4 *((volatile unsigned int*)(0x42740010UL)) -#define bFM3_WC_WCRD_CTR5 *((volatile unsigned int*)(0x42740014UL)) -#define bFM3_WC_WCRL_RLC0 *((volatile unsigned int*)(0x42740020UL)) -#define bFM3_WC_WCRL_RLC1 *((volatile unsigned int*)(0x42740024UL)) -#define bFM3_WC_WCRL_RLC2 *((volatile unsigned int*)(0x42740028UL)) -#define bFM3_WC_WCRL_RLC3 *((volatile unsigned int*)(0x4274002CUL)) -#define bFM3_WC_WCRL_RLC4 *((volatile unsigned int*)(0x42740030UL)) -#define bFM3_WC_WCRL_RLC5 *((volatile unsigned int*)(0x42740034UL)) -#define bFM3_WC_WCCR_WCIF *((volatile unsigned int*)(0x42740040UL)) -#define bFM3_WC_WCCR_WCIE *((volatile unsigned int*)(0x42740044UL)) -#define bFM3_WC_WCCR_CS0 *((volatile unsigned int*)(0x42740048UL)) -#define bFM3_WC_WCCR_CS1 *((volatile unsigned int*)(0x4274004CUL)) -#define bFM3_WC_WCCR_WCOP *((volatile unsigned int*)(0x42740058UL)) -#define bFM3_WC_WCCR_WCEN *((volatile unsigned int*)(0x4274005CUL)) -#define bFM3_WC_CLK_SEL_SEL_IN *((volatile unsigned int*)(0x42740200UL)) -#define bFM3_WC_CLK_SEL_SEL_OUT *((volatile unsigned int*)(0x42740220UL)) -#define bFM3_WC_CLK_EN_CLK_EN *((volatile unsigned int*)(0x42740280UL)) -#define bFM3_WC_CLK_EN_CLK_EN_R *((volatile unsigned int*)(0x42740284UL)) - -/* External bus interface registers */ -#define bFM3_EXBUS_MODE0_WDTH0 *((volatile unsigned int*)(0x427E0000UL)) -#define bFM3_EXBUS_MODE0_WDTH1 *((volatile unsigned int*)(0x427E0004UL)) -#define bFM3_EXBUS_MODE0_RBMON *((volatile unsigned int*)(0x427E0008UL)) -#define bFM3_EXBUS_MODE0_WEOFF *((volatile unsigned int*)(0x427E000CUL)) -#define bFM3_EXBUS_MODE0_NAND *((volatile unsigned int*)(0x427E0210UL)) -#define bFM3_EXBUS_MODE0_PAGE *((volatile unsigned int*)(0x427E0014UL)) -#define bFM3_EXBUS_MODE0_RDY *((volatile unsigned int*)(0x427E0018UL)) -#define bFM3_EXBUS_MODE0_SHRTDOUT *((volatile unsigned int*)(0x427E001CUL)) -#define bFM3_EXBUS_MODE0_MPXMODE *((volatile unsigned int*)(0x427E0020UL)) -#define bFM3_EXBUS_MODE0_ALEINV *((volatile unsigned int*)(0x427E0024UL)) -#define bFM3_EXBUS_MODE0_MPXDOFF *((volatile unsigned int*)(0x427E002CUL)) -#define bFM3_EXBUS_MODE0_MPXCSOF *((volatile unsigned int*)(0x427E0030UL)) -#define bFM3_EXBUS_MODE0_MOEXEUP *((volatile unsigned int*)(0x427E0034UL)) -#define bFM3_EXBUS_MODE1_WDTH0 *((volatile unsigned int*)(0x427E0080UL)) -#define bFM3_EXBUS_MODE1_WDTH1 *((volatile unsigned int*)(0x427E0084UL)) -#define bFM3_EXBUS_MODE1_RBMON *((volatile unsigned int*)(0x427E0088UL)) -#define bFM3_EXBUS_MODE1_WEOFF *((volatile unsigned int*)(0x427E008CUL)) -#define bFM3_EXBUS_MODE1_NAND *((volatile unsigned int*)(0x427E0090UL)) -#define bFM3_EXBUS_MODE1_PAGE *((volatile unsigned int*)(0x427E0094UL)) -#define bFM3_EXBUS_MODE1_RDY *((volatile unsigned int*)(0x427E0098UL)) -#define bFM3_EXBUS_MODE1_SHRTDOUT *((volatile unsigned int*)(0x427E009CUL)) -#define bFM3_EXBUS_MODE1_MPXMODE *((volatile unsigned int*)(0x427E00A0UL)) -#define bFM3_EXBUS_MODE1_ALEINV *((volatile unsigned int*)(0x427E00A4UL)) -#define bFM3_EXBUS_MODE1_MPXDOFF *((volatile unsigned int*)(0x427E00ACUL)) -#define bFM3_EXBUS_MODE1_MPXCSOF *((volatile unsigned int*)(0x427E00B0UL)) -#define bFM3_EXBUS_MODE1_MOEXEUP *((volatile unsigned int*)(0x427E00B4UL)) -#define bFM3_EXBUS_MODE2_WDTH0 *((volatile unsigned int*)(0x427E0100UL)) -#define bFM3_EXBUS_MODE2_WDTH1 *((volatile unsigned int*)(0x427E0104UL)) -#define bFM3_EXBUS_MODE2_RBMON *((volatile unsigned int*)(0x427E0108UL)) -#define bFM3_EXBUS_MODE2_WEOFF *((volatile unsigned int*)(0x427E010CUL)) -#define bFM3_EXBUS_MODE2_NAND *((volatile unsigned int*)(0x427E0110UL)) -#define bFM3_EXBUS_MODE2_PAGE *((volatile unsigned int*)(0x427E0114UL)) -#define bFM3_EXBUS_MODE2_RDY *((volatile unsigned int*)(0x427E0118UL)) -#define bFM3_EXBUS_MODE2_SHRTDOUT *((volatile unsigned int*)(0x427E011CUL)) -#define bFM3_EXBUS_MODE2_MPXMODE *((volatile unsigned int*)(0x427E0120UL)) -#define bFM3_EXBUS_MODE2_ALEINV *((volatile unsigned int*)(0x427E0124UL)) -#define bFM3_EXBUS_MODE2_MPXDOFF *((volatile unsigned int*)(0x427E012CUL)) -#define bFM3_EXBUS_MODE2_MPXCSOF *((volatile unsigned int*)(0x427E0130UL)) -#define bFM3_EXBUS_MODE2_MOEXEUP *((volatile unsigned int*)(0x427E0134UL)) -#define bFM3_EXBUS_MODE3_WDTH0 *((volatile unsigned int*)(0x427E0180UL)) -#define bFM3_EXBUS_MODE3_WDTH1 *((volatile unsigned int*)(0x427E0184UL)) -#define bFM3_EXBUS_MODE3_RBMON *((volatile unsigned int*)(0x427E0188UL)) -#define bFM3_EXBUS_MODE3_WEOFF *((volatile unsigned int*)(0x427E018CUL)) -#define bFM3_EXBUS_MODE3_NAND *((volatile unsigned int*)(0x427E0190UL)) -#define bFM3_EXBUS_MODE3_PAGE *((volatile unsigned int*)(0x427E0194UL)) -#define bFM3_EXBUS_MODE3_RDY *((volatile unsigned int*)(0x427E0198UL)) -#define bFM3_EXBUS_MODE3_SHRTDOUT *((volatile unsigned int*)(0x427E019CUL)) -#define bFM3_EXBUS_MODE3_MPXMODE *((volatile unsigned int*)(0x427E01A0UL)) -#define bFM3_EXBUS_MODE3_ALEINV *((volatile unsigned int*)(0x427E01A4UL)) -#define bFM3_EXBUS_MODE3_MPXDOFF *((volatile unsigned int*)(0x427E01ACUL)) -#define bFM3_EXBUS_MODE3_MPXCSOF *((volatile unsigned int*)(0x427E01B0UL)) -#define bFM3_EXBUS_MODE3_MOEXEUP *((volatile unsigned int*)(0x427E01B4UL)) -#define bFM3_EXBUS_MODE4_WDTH0 *((volatile unsigned int*)(0x427E0200UL)) -#define bFM3_EXBUS_MODE4_WDTH1 *((volatile unsigned int*)(0x427E0204UL)) -#define bFM3_EXBUS_MODE4_RBMON *((volatile unsigned int*)(0x427E0208UL)) -#define bFM3_EXBUS_MODE4_WEOFF *((volatile unsigned int*)(0x427E020CUL)) -#define bFM3_EXBUS_MODE4_NAND *((volatile unsigned int*)(0x427E0210UL)) -#define bFM3_EXBUS_MODE4_PAGE *((volatile unsigned int*)(0x427E0214UL)) -#define bFM3_EXBUS_MODE4_RDY *((volatile unsigned int*)(0x427E0218UL)) -#define bFM3_EXBUS_MODE4_SHRTDOUT *((volatile unsigned int*)(0x427E021CUL)) -#define bFM3_EXBUS_MODE4_MPXMODE *((volatile unsigned int*)(0x427E0220UL)) -#define bFM3_EXBUS_MODE4_ALEINV *((volatile unsigned int*)(0x427E0224UL)) -#define bFM3_EXBUS_MODE4_MPXDOFF *((volatile unsigned int*)(0x427E022CUL)) -#define bFM3_EXBUS_MODE4_MPXCSOF *((volatile unsigned int*)(0x427E0230UL)) -#define bFM3_EXBUS_MODE4_MOEXEUP *((volatile unsigned int*)(0x427E0234UL)) -#define bFM3_EXBUS_MODE5_WDTH0 *((volatile unsigned int*)(0x427E0280UL)) -#define bFM3_EXBUS_MODE5_WDTH1 *((volatile unsigned int*)(0x427E0284UL)) -#define bFM3_EXBUS_MODE5_RBMON *((volatile unsigned int*)(0x427E0288UL)) -#define bFM3_EXBUS_MODE5_WEOFF *((volatile unsigned int*)(0x427E028CUL)) -#define bFM3_EXBUS_MODE5_NAND *((volatile unsigned int*)(0x427E0290UL)) -#define bFM3_EXBUS_MODE5_PAGE *((volatile unsigned int*)(0x427E0294UL)) -#define bFM3_EXBUS_MODE5_RDY *((volatile unsigned int*)(0x427E0298UL)) -#define bFM3_EXBUS_MODE5_SHRTDOUT *((volatile unsigned int*)(0x427E029CUL)) -#define bFM3_EXBUS_MODE5_MPXMODE *((volatile unsigned int*)(0x427E02A0UL)) -#define bFM3_EXBUS_MODE5_ALEINV *((volatile unsigned int*)(0x427E02A4UL)) -#define bFM3_EXBUS_MODE5_MPXDOFF *((volatile unsigned int*)(0x427E02ACUL)) -#define bFM3_EXBUS_MODE5_MPXCSOF *((volatile unsigned int*)(0x427E02B0UL)) -#define bFM3_EXBUS_MODE5_MOEXEUP *((volatile unsigned int*)(0x427E02B4UL)) -#define bFM3_EXBUS_MODE6_WDTH0 *((volatile unsigned int*)(0x427E0300UL)) -#define bFM3_EXBUS_MODE6_WDTH1 *((volatile unsigned int*)(0x427E0304UL)) -#define bFM3_EXBUS_MODE6_RBMON *((volatile unsigned int*)(0x427E0308UL)) -#define bFM3_EXBUS_MODE6_WEOFF *((volatile unsigned int*)(0x427E030CUL)) -#define bFM3_EXBUS_MODE6_NAND *((volatile unsigned int*)(0x427E0310UL)) -#define bFM3_EXBUS_MODE6_PAGE *((volatile unsigned int*)(0x427E0314UL)) -#define bFM3_EXBUS_MODE6_RDY *((volatile unsigned int*)(0x427E0318UL)) -#define bFM3_EXBUS_MODE6_SHRTDOUT *((volatile unsigned int*)(0x427E031CUL)) -#define bFM3_EXBUS_MODE6_MPXMODE *((volatile unsigned int*)(0x427E0320UL)) -#define bFM3_EXBUS_MODE6_ALEINV *((volatile unsigned int*)(0x427E0324UL)) -#define bFM3_EXBUS_MODE6_MPXDOFF *((volatile unsigned int*)(0x427E032CUL)) -#define bFM3_EXBUS_MODE6_MPXCSOF *((volatile unsigned int*)(0x427E0330UL)) -#define bFM3_EXBUS_MODE6_MOEXEUP *((volatile unsigned int*)(0x427E0334UL)) -#define bFM3_EXBUS_MODE7_WDTH0 *((volatile unsigned int*)(0x427E0380UL)) -#define bFM3_EXBUS_MODE7_WDTH1 *((volatile unsigned int*)(0x427E0384UL)) -#define bFM3_EXBUS_MODE7_RBMON *((volatile unsigned int*)(0x427E0388UL)) -#define bFM3_EXBUS_MODE7_WEOFF *((volatile unsigned int*)(0x427E038CUL)) -#define bFM3_EXBUS_MODE7_NAND *((volatile unsigned int*)(0x427E0390UL)) -#define bFM3_EXBUS_MODE7_PAGE *((volatile unsigned int*)(0x427E0394UL)) -#define bFM3_EXBUS_MODE7_RDY *((volatile unsigned int*)(0x427E0398UL)) -#define bFM3_EXBUS_MODE7_SHRTDOUT *((volatile unsigned int*)(0x427E039CUL)) -#define bFM3_EXBUS_MODE7_MPXMODE *((volatile unsigned int*)(0x427E03A0UL)) -#define bFM3_EXBUS_MODE7_ALEINV *((volatile unsigned int*)(0x427E03A4UL)) -#define bFM3_EXBUS_MODE7_MPXDOFF *((volatile unsigned int*)(0x427E03ACUL)) -#define bFM3_EXBUS_MODE7_MPXCSOF *((volatile unsigned int*)(0x427E03B0UL)) -#define bFM3_EXBUS_MODE7_MOEXEUP *((volatile unsigned int*)(0x427E03B4UL)) -#define bFM3_EXBUS_TIM0_RACC0 *((volatile unsigned int*)(0x427E0400UL)) -#define bFM3_EXBUS_TIM0_RACC1 *((volatile unsigned int*)(0x427E0404UL)) -#define bFM3_EXBUS_TIM0_RACC2 *((volatile unsigned int*)(0x427E0408UL)) -#define bFM3_EXBUS_TIM0_RACC3 *((volatile unsigned int*)(0x427E040CUL)) -#define bFM3_EXBUS_TIM0_RADC0 *((volatile unsigned int*)(0x427E0410UL)) -#define bFM3_EXBUS_TIM0_RADC1 *((volatile unsigned int*)(0x427E0414UL)) -#define bFM3_EXBUS_TIM0_RADC2 *((volatile unsigned int*)(0x427E0418UL)) -#define bFM3_EXBUS_TIM0_RADC3 *((volatile unsigned int*)(0x427E041CUL)) -#define bFM3_EXBUS_TIM0_FRADC0 *((volatile unsigned int*)(0x427E0420UL)) -#define bFM3_EXBUS_TIM0_FRADC1 *((volatile unsigned int*)(0x427E0424UL)) -#define bFM3_EXBUS_TIM0_FRADC2 *((volatile unsigned int*)(0x427E0428UL)) -#define bFM3_EXBUS_TIM0_FRADC3 *((volatile unsigned int*)(0x427E042CUL)) -#define bFM3_EXBUS_TIM0_RIDLC0 *((volatile unsigned int*)(0x427E0430UL)) -#define bFM3_EXBUS_TIM0_RIDLC1 *((volatile unsigned int*)(0x427E0434UL)) -#define bFM3_EXBUS_TIM0_RIDLC2 *((volatile unsigned int*)(0x427E0438UL)) -#define bFM3_EXBUS_TIM0_RIDLC3 *((volatile unsigned int*)(0x427E043CUL)) -#define bFM3_EXBUS_TIM0_WACC0 *((volatile unsigned int*)(0x427E0440UL)) -#define bFM3_EXBUS_TIM0_WACC1 *((volatile unsigned int*)(0x427E0444UL)) -#define bFM3_EXBUS_TIM0_WACC2 *((volatile unsigned int*)(0x427E0448UL)) -#define bFM3_EXBUS_TIM0_WACC3 *((volatile unsigned int*)(0x427E044CUL)) -#define bFM3_EXBUS_TIM0_WADC0 *((volatile unsigned int*)(0x427E0450UL)) -#define bFM3_EXBUS_TIM0_WADC1 *((volatile unsigned int*)(0x427E0454UL)) -#define bFM3_EXBUS_TIM0_WADC2 *((volatile unsigned int*)(0x427E0458UL)) -#define bFM3_EXBUS_TIM0_WADC3 *((volatile unsigned int*)(0x427E045CUL)) -#define bFM3_EXBUS_TIM0_WWEC0 *((volatile unsigned int*)(0x427E0460UL)) -#define bFM3_EXBUS_TIM0_WWEC1 *((volatile unsigned int*)(0x427E0464UL)) -#define bFM3_EXBUS_TIM0_WWEC2 *((volatile unsigned int*)(0x427E0468UL)) -#define bFM3_EXBUS_TIM0_WWEC3 *((volatile unsigned int*)(0x427E046CUL)) -#define bFM3_EXBUS_TIM0_WIDLC0 *((volatile unsigned int*)(0x427E0470UL)) -#define bFM3_EXBUS_TIM0_WIDLC1 *((volatile unsigned int*)(0x427E0474UL)) -#define bFM3_EXBUS_TIM0_WIDLC2 *((volatile unsigned int*)(0x427E0478UL)) -#define bFM3_EXBUS_TIM0_WIDLC3 *((volatile unsigned int*)(0x427E047CUL)) -#define bFM3_EXBUS_TIM1_RACC0 *((volatile unsigned int*)(0x427E0480UL)) -#define bFM3_EXBUS_TIM1_RACC1 *((volatile unsigned int*)(0x427E0484UL)) -#define bFM3_EXBUS_TIM1_RACC2 *((volatile unsigned int*)(0x427E0488UL)) -#define bFM3_EXBUS_TIM1_RACC3 *((volatile unsigned int*)(0x427E048CUL)) -#define bFM3_EXBUS_TIM1_RADC0 *((volatile unsigned int*)(0x427E0490UL)) -#define bFM3_EXBUS_TIM1_RADC1 *((volatile unsigned int*)(0x427E0494UL)) -#define bFM3_EXBUS_TIM1_RADC2 *((volatile unsigned int*)(0x427E0498UL)) -#define bFM3_EXBUS_TIM1_RADC3 *((volatile unsigned int*)(0x427E049CUL)) -#define bFM3_EXBUS_TIM1_FRADC0 *((volatile unsigned int*)(0x427E04A0UL)) -#define bFM3_EXBUS_TIM1_FRADC1 *((volatile unsigned int*)(0x427E04A4UL)) -#define bFM3_EXBUS_TIM1_FRADC2 *((volatile unsigned int*)(0x427E04A8UL)) -#define bFM3_EXBUS_TIM1_FRADC3 *((volatile unsigned int*)(0x427E04ACUL)) -#define bFM3_EXBUS_TIM1_RIDLC0 *((volatile unsigned int*)(0x427E04B0UL)) -#define bFM3_EXBUS_TIM1_RIDLC1 *((volatile unsigned int*)(0x427E04B4UL)) -#define bFM3_EXBUS_TIM1_RIDLC2 *((volatile unsigned int*)(0x427E04B8UL)) -#define bFM3_EXBUS_TIM1_RIDLC3 *((volatile unsigned int*)(0x427E04BCUL)) -#define bFM3_EXBUS_TIM1_WACC0 *((volatile unsigned int*)(0x427E04C0UL)) -#define bFM3_EXBUS_TIM1_WACC1 *((volatile unsigned int*)(0x427E04C4UL)) -#define bFM3_EXBUS_TIM1_WACC2 *((volatile unsigned int*)(0x427E04C8UL)) -#define bFM3_EXBUS_TIM1_WACC3 *((volatile unsigned int*)(0x427E04CCUL)) -#define bFM3_EXBUS_TIM1_WADC0 *((volatile unsigned int*)(0x427E04D0UL)) -#define bFM3_EXBUS_TIM1_WADC1 *((volatile unsigned int*)(0x427E04D4UL)) -#define bFM3_EXBUS_TIM1_WADC2 *((volatile unsigned int*)(0x427E04D8UL)) -#define bFM3_EXBUS_TIM1_WADC3 *((volatile unsigned int*)(0x427E04DCUL)) -#define bFM3_EXBUS_TIM1_WWEC0 *((volatile unsigned int*)(0x427E04E0UL)) -#define bFM3_EXBUS_TIM1_WWEC1 *((volatile unsigned int*)(0x427E04E4UL)) -#define bFM3_EXBUS_TIM1_WWEC2 *((volatile unsigned int*)(0x427E04E8UL)) -#define bFM3_EXBUS_TIM1_WWEC3 *((volatile unsigned int*)(0x427E04ECUL)) -#define bFM3_EXBUS_TIM1_WIDLC0 *((volatile unsigned int*)(0x427E04F0UL)) -#define bFM3_EXBUS_TIM1_WIDLC1 *((volatile unsigned int*)(0x427E04F4UL)) -#define bFM3_EXBUS_TIM1_WIDLC2 *((volatile unsigned int*)(0x427E04F8UL)) -#define bFM3_EXBUS_TIM1_WIDLC3 *((volatile unsigned int*)(0x427E04FCUL)) -#define bFM3_EXBUS_TIM2_RACC0 *((volatile unsigned int*)(0x427E0500UL)) -#define bFM3_EXBUS_TIM2_RACC1 *((volatile unsigned int*)(0x427E0504UL)) -#define bFM3_EXBUS_TIM2_RACC2 *((volatile unsigned int*)(0x427E0508UL)) -#define bFM3_EXBUS_TIM2_RACC3 *((volatile unsigned int*)(0x427E050CUL)) -#define bFM3_EXBUS_TIM2_RADC0 *((volatile unsigned int*)(0x427E0510UL)) -#define bFM3_EXBUS_TIM2_RADC1 *((volatile unsigned int*)(0x427E0514UL)) -#define bFM3_EXBUS_TIM2_RADC2 *((volatile unsigned int*)(0x427E0518UL)) -#define bFM3_EXBUS_TIM2_RADC3 *((volatile unsigned int*)(0x427E051CUL)) -#define bFM3_EXBUS_TIM2_FRADC0 *((volatile unsigned int*)(0x427E0520UL)) -#define bFM3_EXBUS_TIM2_FRADC1 *((volatile unsigned int*)(0x427E0524UL)) -#define bFM3_EXBUS_TIM2_FRADC2 *((volatile unsigned int*)(0x427E0528UL)) -#define bFM3_EXBUS_TIM2_FRADC3 *((volatile unsigned int*)(0x427E052CUL)) -#define bFM3_EXBUS_TIM2_RIDLC0 *((volatile unsigned int*)(0x427E0530UL)) -#define bFM3_EXBUS_TIM2_RIDLC1 *((volatile unsigned int*)(0x427E0534UL)) -#define bFM3_EXBUS_TIM2_RIDLC2 *((volatile unsigned int*)(0x427E0538UL)) -#define bFM3_EXBUS_TIM2_RIDLC3 *((volatile unsigned int*)(0x427E053CUL)) -#define bFM3_EXBUS_TIM2_WACC0 *((volatile unsigned int*)(0x427E0540UL)) -#define bFM3_EXBUS_TIM2_WACC1 *((volatile unsigned int*)(0x427E0544UL)) -#define bFM3_EXBUS_TIM2_WACC2 *((volatile unsigned int*)(0x427E0548UL)) -#define bFM3_EXBUS_TIM2_WACC3 *((volatile unsigned int*)(0x427E054CUL)) -#define bFM3_EXBUS_TIM2_WADC0 *((volatile unsigned int*)(0x427E0550UL)) -#define bFM3_EXBUS_TIM2_WADC1 *((volatile unsigned int*)(0x427E0554UL)) -#define bFM3_EXBUS_TIM2_WADC2 *((volatile unsigned int*)(0x427E0558UL)) -#define bFM3_EXBUS_TIM2_WADC3 *((volatile unsigned int*)(0x427E055CUL)) -#define bFM3_EXBUS_TIM2_WWEC0 *((volatile unsigned int*)(0x427E0560UL)) -#define bFM3_EXBUS_TIM2_WWEC1 *((volatile unsigned int*)(0x427E0564UL)) -#define bFM3_EXBUS_TIM2_WWEC2 *((volatile unsigned int*)(0x427E0568UL)) -#define bFM3_EXBUS_TIM2_WWEC3 *((volatile unsigned int*)(0x427E056CUL)) -#define bFM3_EXBUS_TIM2_WIDLC0 *((volatile unsigned int*)(0x427E0570UL)) -#define bFM3_EXBUS_TIM2_WIDLC1 *((volatile unsigned int*)(0x427E0574UL)) -#define bFM3_EXBUS_TIM2_WIDLC2 *((volatile unsigned int*)(0x427E0578UL)) -#define bFM3_EXBUS_TIM2_WIDLC3 *((volatile unsigned int*)(0x427E057CUL)) -#define bFM3_EXBUS_TIM3_RACC0 *((volatile unsigned int*)(0x427E0580UL)) -#define bFM3_EXBUS_TIM3_RACC1 *((volatile unsigned int*)(0x427E0584UL)) -#define bFM3_EXBUS_TIM3_RACC2 *((volatile unsigned int*)(0x427E0588UL)) -#define bFM3_EXBUS_TIM3_RACC3 *((volatile unsigned int*)(0x427E058CUL)) -#define bFM3_EXBUS_TIM3_RADC0 *((volatile unsigned int*)(0x427E0590UL)) -#define bFM3_EXBUS_TIM3_RADC1 *((volatile unsigned int*)(0x427E0594UL)) -#define bFM3_EXBUS_TIM3_RADC2 *((volatile unsigned int*)(0x427E0598UL)) -#define bFM3_EXBUS_TIM3_RADC3 *((volatile unsigned int*)(0x427E059CUL)) -#define bFM3_EXBUS_TIM3_FRADC0 *((volatile unsigned int*)(0x427E05A0UL)) -#define bFM3_EXBUS_TIM3_FRADC1 *((volatile unsigned int*)(0x427E05A4UL)) -#define bFM3_EXBUS_TIM3_FRADC2 *((volatile unsigned int*)(0x427E05A8UL)) -#define bFM3_EXBUS_TIM3_FRADC3 *((volatile unsigned int*)(0x427E05ACUL)) -#define bFM3_EXBUS_TIM3_RIDLC0 *((volatile unsigned int*)(0x427E05B0UL)) -#define bFM3_EXBUS_TIM3_RIDLC1 *((volatile unsigned int*)(0x427E05B4UL)) -#define bFM3_EXBUS_TIM3_RIDLC2 *((volatile unsigned int*)(0x427E05B8UL)) -#define bFM3_EXBUS_TIM3_RIDLC3 *((volatile unsigned int*)(0x427E05BCUL)) -#define bFM3_EXBUS_TIM3_WACC0 *((volatile unsigned int*)(0x427E05C0UL)) -#define bFM3_EXBUS_TIM3_WACC1 *((volatile unsigned int*)(0x427E05C4UL)) -#define bFM3_EXBUS_TIM3_WACC2 *((volatile unsigned int*)(0x427E05C8UL)) -#define bFM3_EXBUS_TIM3_WACC3 *((volatile unsigned int*)(0x427E05CCUL)) -#define bFM3_EXBUS_TIM3_WADC0 *((volatile unsigned int*)(0x427E05D0UL)) -#define bFM3_EXBUS_TIM3_WADC1 *((volatile unsigned int*)(0x427E05D4UL)) -#define bFM3_EXBUS_TIM3_WADC2 *((volatile unsigned int*)(0x427E05D8UL)) -#define bFM3_EXBUS_TIM3_WADC3 *((volatile unsigned int*)(0x427E05DCUL)) -#define bFM3_EXBUS_TIM3_WWEC0 *((volatile unsigned int*)(0x427E05E0UL)) -#define bFM3_EXBUS_TIM3_WWEC1 *((volatile unsigned int*)(0x427E05E4UL)) -#define bFM3_EXBUS_TIM3_WWEC2 *((volatile unsigned int*)(0x427E05E8UL)) -#define bFM3_EXBUS_TIM3_WWEC3 *((volatile unsigned int*)(0x427E05ECUL)) -#define bFM3_EXBUS_TIM3_WIDLC0 *((volatile unsigned int*)(0x427E05F0UL)) -#define bFM3_EXBUS_TIM3_WIDLC1 *((volatile unsigned int*)(0x427E05F4UL)) -#define bFM3_EXBUS_TIM3_WIDLC2 *((volatile unsigned int*)(0x427E05F8UL)) -#define bFM3_EXBUS_TIM3_WIDLC3 *((volatile unsigned int*)(0x427E05FCUL)) -#define bFM3_EXBUS_TIM4_RACC0 *((volatile unsigned int*)(0x427E0600UL)) -#define bFM3_EXBUS_TIM4_RACC1 *((volatile unsigned int*)(0x427E0604UL)) -#define bFM3_EXBUS_TIM4_RACC2 *((volatile unsigned int*)(0x427E0608UL)) -#define bFM3_EXBUS_TIM4_RACC3 *((volatile unsigned int*)(0x427E060CUL)) -#define bFM3_EXBUS_TIM4_RADC0 *((volatile unsigned int*)(0x427E0610UL)) -#define bFM3_EXBUS_TIM4_RADC1 *((volatile unsigned int*)(0x427E0614UL)) -#define bFM3_EXBUS_TIM4_RADC2 *((volatile unsigned int*)(0x427E0618UL)) -#define bFM3_EXBUS_TIM4_RADC3 *((volatile unsigned int*)(0x427E061CUL)) -#define bFM3_EXBUS_TIM4_FRADC0 *((volatile unsigned int*)(0x427E0620UL)) -#define bFM3_EXBUS_TIM4_FRADC1 *((volatile unsigned int*)(0x427E0624UL)) -#define bFM3_EXBUS_TIM4_FRADC2 *((volatile unsigned int*)(0x427E0628UL)) -#define bFM3_EXBUS_TIM4_FRADC3 *((volatile unsigned int*)(0x427E062CUL)) -#define bFM3_EXBUS_TIM4_RIDLC0 *((volatile unsigned int*)(0x427E0630UL)) -#define bFM3_EXBUS_TIM4_RIDLC1 *((volatile unsigned int*)(0x427E0634UL)) -#define bFM3_EXBUS_TIM4_RIDLC2 *((volatile unsigned int*)(0x427E0638UL)) -#define bFM3_EXBUS_TIM4_RIDLC3 *((volatile unsigned int*)(0x427E063CUL)) -#define bFM3_EXBUS_TIM4_WACC0 *((volatile unsigned int*)(0x427E0640UL)) -#define bFM3_EXBUS_TIM4_WACC1 *((volatile unsigned int*)(0x427E0644UL)) -#define bFM3_EXBUS_TIM4_WACC2 *((volatile unsigned int*)(0x427E0648UL)) -#define bFM3_EXBUS_TIM4_WACC3 *((volatile unsigned int*)(0x427E064CUL)) -#define bFM3_EXBUS_TIM4_WADC0 *((volatile unsigned int*)(0x427E0650UL)) -#define bFM3_EXBUS_TIM4_WADC1 *((volatile unsigned int*)(0x427E0654UL)) -#define bFM3_EXBUS_TIM4_WADC2 *((volatile unsigned int*)(0x427E0658UL)) -#define bFM3_EXBUS_TIM4_WADC3 *((volatile unsigned int*)(0x427E065CUL)) -#define bFM3_EXBUS_TIM4_WWEC0 *((volatile unsigned int*)(0x427E0660UL)) -#define bFM3_EXBUS_TIM4_WWEC1 *((volatile unsigned int*)(0x427E0664UL)) -#define bFM3_EXBUS_TIM4_WWEC2 *((volatile unsigned int*)(0x427E0668UL)) -#define bFM3_EXBUS_TIM4_WWEC3 *((volatile unsigned int*)(0x427E066CUL)) -#define bFM3_EXBUS_TIM4_WIDLC0 *((volatile unsigned int*)(0x427E0670UL)) -#define bFM3_EXBUS_TIM4_WIDLC1 *((volatile unsigned int*)(0x427E0674UL)) -#define bFM3_EXBUS_TIM4_WIDLC2 *((volatile unsigned int*)(0x427E0678UL)) -#define bFM3_EXBUS_TIM4_WIDLC3 *((volatile unsigned int*)(0x427E067CUL)) -#define bFM3_EXBUS_TIM5_RACC0 *((volatile unsigned int*)(0x427E0680UL)) -#define bFM3_EXBUS_TIM5_RACC1 *((volatile unsigned int*)(0x427E0684UL)) -#define bFM3_EXBUS_TIM5_RACC2 *((volatile unsigned int*)(0x427E0688UL)) -#define bFM3_EXBUS_TIM5_RACC3 *((volatile unsigned int*)(0x427E068CUL)) -#define bFM3_EXBUS_TIM5_RADC0 *((volatile unsigned int*)(0x427E0690UL)) -#define bFM3_EXBUS_TIM5_RADC1 *((volatile unsigned int*)(0x427E0694UL)) -#define bFM3_EXBUS_TIM5_RADC2 *((volatile unsigned int*)(0x427E0698UL)) -#define bFM3_EXBUS_TIM5_RADC3 *((volatile unsigned int*)(0x427E069CUL)) -#define bFM3_EXBUS_TIM5_FRADC0 *((volatile unsigned int*)(0x427E06A0UL)) -#define bFM3_EXBUS_TIM5_FRADC1 *((volatile unsigned int*)(0x427E06A4UL)) -#define bFM3_EXBUS_TIM5_FRADC2 *((volatile unsigned int*)(0x427E06A8UL)) -#define bFM3_EXBUS_TIM5_FRADC3 *((volatile unsigned int*)(0x427E06ACUL)) -#define bFM3_EXBUS_TIM5_RIDLC0 *((volatile unsigned int*)(0x427E06B0UL)) -#define bFM3_EXBUS_TIM5_RIDLC1 *((volatile unsigned int*)(0x427E06B4UL)) -#define bFM3_EXBUS_TIM5_RIDLC2 *((volatile unsigned int*)(0x427E06B8UL)) -#define bFM3_EXBUS_TIM5_RIDLC3 *((volatile unsigned int*)(0x427E06BCUL)) -#define bFM3_EXBUS_TIM5_WACC0 *((volatile unsigned int*)(0x427E06C0UL)) -#define bFM3_EXBUS_TIM5_WACC1 *((volatile unsigned int*)(0x427E06C4UL)) -#define bFM3_EXBUS_TIM5_WACC2 *((volatile unsigned int*)(0x427E06C8UL)) -#define bFM3_EXBUS_TIM5_WACC3 *((volatile unsigned int*)(0x427E06CCUL)) -#define bFM3_EXBUS_TIM5_WADC0 *((volatile unsigned int*)(0x427E06D0UL)) -#define bFM3_EXBUS_TIM5_WADC1 *((volatile unsigned int*)(0x427E06D4UL)) -#define bFM3_EXBUS_TIM5_WADC2 *((volatile unsigned int*)(0x427E06D8UL)) -#define bFM3_EXBUS_TIM5_WADC3 *((volatile unsigned int*)(0x427E06DCUL)) -#define bFM3_EXBUS_TIM5_WWEC0 *((volatile unsigned int*)(0x427E06E0UL)) -#define bFM3_EXBUS_TIM5_WWEC1 *((volatile unsigned int*)(0x427E06E4UL)) -#define bFM3_EXBUS_TIM5_WWEC2 *((volatile unsigned int*)(0x427E06E8UL)) -#define bFM3_EXBUS_TIM5_WWEC3 *((volatile unsigned int*)(0x427E06ECUL)) -#define bFM3_EXBUS_TIM5_WIDLC0 *((volatile unsigned int*)(0x427E06F0UL)) -#define bFM3_EXBUS_TIM5_WIDLC1 *((volatile unsigned int*)(0x427E06F4UL)) -#define bFM3_EXBUS_TIM5_WIDLC2 *((volatile unsigned int*)(0x427E06F8UL)) -#define bFM3_EXBUS_TIM5_WIDLC3 *((volatile unsigned int*)(0x427E06FCUL)) -#define bFM3_EXBUS_TIM6_RACC0 *((volatile unsigned int*)(0x427E0700UL)) -#define bFM3_EXBUS_TIM6_RACC1 *((volatile unsigned int*)(0x427E0704UL)) -#define bFM3_EXBUS_TIM6_RACC2 *((volatile unsigned int*)(0x427E0708UL)) -#define bFM3_EXBUS_TIM6_RACC3 *((volatile unsigned int*)(0x427E070CUL)) -#define bFM3_EXBUS_TIM6_RADC0 *((volatile unsigned int*)(0x427E0710UL)) -#define bFM3_EXBUS_TIM6_RADC1 *((volatile unsigned int*)(0x427E0714UL)) -#define bFM3_EXBUS_TIM6_RADC2 *((volatile unsigned int*)(0x427E0718UL)) -#define bFM3_EXBUS_TIM6_RADC3 *((volatile unsigned int*)(0x427E071CUL)) -#define bFM3_EXBUS_TIM6_FRADC0 *((volatile unsigned int*)(0x427E0720UL)) -#define bFM3_EXBUS_TIM6_FRADC1 *((volatile unsigned int*)(0x427E0724UL)) -#define bFM3_EXBUS_TIM6_FRADC2 *((volatile unsigned int*)(0x427E0728UL)) -#define bFM3_EXBUS_TIM6_FRADC3 *((volatile unsigned int*)(0x427E072CUL)) -#define bFM3_EXBUS_TIM6_RIDLC0 *((volatile unsigned int*)(0x427E0730UL)) -#define bFM3_EXBUS_TIM6_RIDLC1 *((volatile unsigned int*)(0x427E0734UL)) -#define bFM3_EXBUS_TIM6_RIDLC2 *((volatile unsigned int*)(0x427E0738UL)) -#define bFM3_EXBUS_TIM6_RIDLC3 *((volatile unsigned int*)(0x427E073CUL)) -#define bFM3_EXBUS_TIM6_WACC0 *((volatile unsigned int*)(0x427E0740UL)) -#define bFM3_EXBUS_TIM6_WACC1 *((volatile unsigned int*)(0x427E0744UL)) -#define bFM3_EXBUS_TIM6_WACC2 *((volatile unsigned int*)(0x427E0748UL)) -#define bFM3_EXBUS_TIM6_WACC3 *((volatile unsigned int*)(0x427E074CUL)) -#define bFM3_EXBUS_TIM6_WADC0 *((volatile unsigned int*)(0x427E0750UL)) -#define bFM3_EXBUS_TIM6_WADC1 *((volatile unsigned int*)(0x427E0754UL)) -#define bFM3_EXBUS_TIM6_WADC2 *((volatile unsigned int*)(0x427E0758UL)) -#define bFM3_EXBUS_TIM6_WADC3 *((volatile unsigned int*)(0x427E075CUL)) -#define bFM3_EXBUS_TIM6_WWEC0 *((volatile unsigned int*)(0x427E0760UL)) -#define bFM3_EXBUS_TIM6_WWEC1 *((volatile unsigned int*)(0x427E0764UL)) -#define bFM3_EXBUS_TIM6_WWEC2 *((volatile unsigned int*)(0x427E0768UL)) -#define bFM3_EXBUS_TIM6_WWEC3 *((volatile unsigned int*)(0x427E076CUL)) -#define bFM3_EXBUS_TIM6_WIDLC0 *((volatile unsigned int*)(0x427E0770UL)) -#define bFM3_EXBUS_TIM6_WIDLC1 *((volatile unsigned int*)(0x427E0774UL)) -#define bFM3_EXBUS_TIM6_WIDLC2 *((volatile unsigned int*)(0x427E0778UL)) -#define bFM3_EXBUS_TIM6_WIDLC3 *((volatile unsigned int*)(0x427E077CUL)) -#define bFM3_EXBUS_TIM7_RACC0 *((volatile unsigned int*)(0x427E0780UL)) -#define bFM3_EXBUS_TIM7_RACC1 *((volatile unsigned int*)(0x427E0784UL)) -#define bFM3_EXBUS_TIM7_RACC2 *((volatile unsigned int*)(0x427E0788UL)) -#define bFM3_EXBUS_TIM7_RACC3 *((volatile unsigned int*)(0x427E078CUL)) -#define bFM3_EXBUS_TIM7_RADC0 *((volatile unsigned int*)(0x427E0790UL)) -#define bFM3_EXBUS_TIM7_RADC1 *((volatile unsigned int*)(0x427E0794UL)) -#define bFM3_EXBUS_TIM7_RADC2 *((volatile unsigned int*)(0x427E0798UL)) -#define bFM3_EXBUS_TIM7_RADC3 *((volatile unsigned int*)(0x427E079CUL)) -#define bFM3_EXBUS_TIM7_FRADC0 *((volatile unsigned int*)(0x427E07A0UL)) -#define bFM3_EXBUS_TIM7_FRADC1 *((volatile unsigned int*)(0x427E07A4UL)) -#define bFM3_EXBUS_TIM7_FRADC2 *((volatile unsigned int*)(0x427E07A8UL)) -#define bFM3_EXBUS_TIM7_FRADC3 *((volatile unsigned int*)(0x427E07ACUL)) -#define bFM3_EXBUS_TIM7_RIDLC0 *((volatile unsigned int*)(0x427E07B0UL)) -#define bFM3_EXBUS_TIM7_RIDLC1 *((volatile unsigned int*)(0x427E07B4UL)) -#define bFM3_EXBUS_TIM7_RIDLC2 *((volatile unsigned int*)(0x427E07B8UL)) -#define bFM3_EXBUS_TIM7_RIDLC3 *((volatile unsigned int*)(0x427E07BCUL)) -#define bFM3_EXBUS_TIM7_WACC0 *((volatile unsigned int*)(0x427E07C0UL)) -#define bFM3_EXBUS_TIM7_WACC1 *((volatile unsigned int*)(0x427E07C4UL)) -#define bFM3_EXBUS_TIM7_WACC2 *((volatile unsigned int*)(0x427E07C8UL)) -#define bFM3_EXBUS_TIM7_WACC3 *((volatile unsigned int*)(0x427E07CCUL)) -#define bFM3_EXBUS_TIM7_WADC0 *((volatile unsigned int*)(0x427E07D0UL)) -#define bFM3_EXBUS_TIM7_WADC1 *((volatile unsigned int*)(0x427E07D4UL)) -#define bFM3_EXBUS_TIM7_WADC2 *((volatile unsigned int*)(0x427E07D8UL)) -#define bFM3_EXBUS_TIM7_WADC3 *((volatile unsigned int*)(0x427E07DCUL)) -#define bFM3_EXBUS_TIM7_WWEC0 *((volatile unsigned int*)(0x427E07E0UL)) -#define bFM3_EXBUS_TIM7_WWEC1 *((volatile unsigned int*)(0x427E07E4UL)) -#define bFM3_EXBUS_TIM7_WWEC2 *((volatile unsigned int*)(0x427E07E8UL)) -#define bFM3_EXBUS_TIM7_WWEC3 *((volatile unsigned int*)(0x427E07ECUL)) -#define bFM3_EXBUS_TIM7_WIDLC0 *((volatile unsigned int*)(0x427E07F0UL)) -#define bFM3_EXBUS_TIM7_WIDLC1 *((volatile unsigned int*)(0x427E07F4UL)) -#define bFM3_EXBUS_TIM7_WIDLC2 *((volatile unsigned int*)(0x427E07F8UL)) -#define bFM3_EXBUS_TIM7_WIDLC3 *((volatile unsigned int*)(0x427E07FCUL)) -#define bFM3_EXBUS_AREA0_ADDR0 *((volatile unsigned int*)(0x427E0800UL)) -#define bFM3_EXBUS_AREA0_ADDR1 *((volatile unsigned int*)(0x427E0804UL)) -#define bFM3_EXBUS_AREA0_ADDR2 *((volatile unsigned int*)(0x427E0808UL)) -#define bFM3_EXBUS_AREA0_ADDR3 *((volatile unsigned int*)(0x427E080CUL)) -#define bFM3_EXBUS_AREA0_ADDR4 *((volatile unsigned int*)(0x427E0810UL)) -#define bFM3_EXBUS_AREA0_ADDR5 *((volatile unsigned int*)(0x427E0814UL)) -#define bFM3_EXBUS_AREA0_ADDR6 *((volatile unsigned int*)(0x427E0818UL)) -#define bFM3_EXBUS_AREA0_ADDR7 *((volatile unsigned int*)(0x427E081CUL)) -#define bFM3_EXBUS_AREA0_MASK0 *((volatile unsigned int*)(0x427E0840UL)) -#define bFM3_EXBUS_AREA0_MASK1 *((volatile unsigned int*)(0x427E0844UL)) -#define bFM3_EXBUS_AREA0_MASK2 *((volatile unsigned int*)(0x427E0848UL)) -#define bFM3_EXBUS_AREA0_MASK3 *((volatile unsigned int*)(0x427E084CUL)) -#define bFM3_EXBUS_AREA0_MASK4 *((volatile unsigned int*)(0x427E0850UL)) -#define bFM3_EXBUS_AREA0_MASK5 *((volatile unsigned int*)(0x427E0854UL)) -#define bFM3_EXBUS_AREA0_MASK6 *((volatile unsigned int*)(0x427E0858UL)) -#define bFM3_EXBUS_AREA1_ADDR0 *((volatile unsigned int*)(0x427E0880UL)) -#define bFM3_EXBUS_AREA1_ADDR1 *((volatile unsigned int*)(0x427E0884UL)) -#define bFM3_EXBUS_AREA1_ADDR2 *((volatile unsigned int*)(0x427E0888UL)) -#define bFM3_EXBUS_AREA1_ADDR3 *((volatile unsigned int*)(0x427E088CUL)) -#define bFM3_EXBUS_AREA1_ADDR4 *((volatile unsigned int*)(0x427E0890UL)) -#define bFM3_EXBUS_AREA1_ADDR5 *((volatile unsigned int*)(0x427E0894UL)) -#define bFM3_EXBUS_AREA1_ADDR6 *((volatile unsigned int*)(0x427E0898UL)) -#define bFM3_EXBUS_AREA1_ADDR7 *((volatile unsigned int*)(0x427E089CUL)) -#define bFM3_EXBUS_AREA1_MASK0 *((volatile unsigned int*)(0x427E08C0UL)) -#define bFM3_EXBUS_AREA1_MASK1 *((volatile unsigned int*)(0x427E08C4UL)) -#define bFM3_EXBUS_AREA1_MASK2 *((volatile unsigned int*)(0x427E08C8UL)) -#define bFM3_EXBUS_AREA1_MASK3 *((volatile unsigned int*)(0x427E08CCUL)) -#define bFM3_EXBUS_AREA1_MASK4 *((volatile unsigned int*)(0x427E08D0UL)) -#define bFM3_EXBUS_AREA1_MASK5 *((volatile unsigned int*)(0x427E08D4UL)) -#define bFM3_EXBUS_AREA1_MASK6 *((volatile unsigned int*)(0x427E08D8UL)) -#define bFM3_EXBUS_AREA2_ADDR0 *((volatile unsigned int*)(0x427E0900UL)) -#define bFM3_EXBUS_AREA2_ADDR1 *((volatile unsigned int*)(0x427E0904UL)) -#define bFM3_EXBUS_AREA2_ADDR2 *((volatile unsigned int*)(0x427E0908UL)) -#define bFM3_EXBUS_AREA2_ADDR3 *((volatile unsigned int*)(0x427E090CUL)) -#define bFM3_EXBUS_AREA2_ADDR4 *((volatile unsigned int*)(0x427E0910UL)) -#define bFM3_EXBUS_AREA2_ADDR5 *((volatile unsigned int*)(0x427E0914UL)) -#define bFM3_EXBUS_AREA2_ADDR6 *((volatile unsigned int*)(0x427E0918UL)) -#define bFM3_EXBUS_AREA2_ADDR7 *((volatile unsigned int*)(0x427E091CUL)) -#define bFM3_EXBUS_AREA2_MASK0 *((volatile unsigned int*)(0x427E0940UL)) -#define bFM3_EXBUS_AREA2_MASK1 *((volatile unsigned int*)(0x427E0944UL)) -#define bFM3_EXBUS_AREA2_MASK2 *((volatile unsigned int*)(0x427E0948UL)) -#define bFM3_EXBUS_AREA2_MASK3 *((volatile unsigned int*)(0x427E094CUL)) -#define bFM3_EXBUS_AREA2_MASK4 *((volatile unsigned int*)(0x427E0950UL)) -#define bFM3_EXBUS_AREA2_MASK5 *((volatile unsigned int*)(0x427E0954UL)) -#define bFM3_EXBUS_AREA2_MASK6 *((volatile unsigned int*)(0x427E0958UL)) -#define bFM3_EXBUS_AREA3_ADDR0 *((volatile unsigned int*)(0x427E0980UL)) -#define bFM3_EXBUS_AREA3_ADDR1 *((volatile unsigned int*)(0x427E0984UL)) -#define bFM3_EXBUS_AREA3_ADDR2 *((volatile unsigned int*)(0x427E0988UL)) -#define bFM3_EXBUS_AREA3_ADDR3 *((volatile unsigned int*)(0x427E098CUL)) -#define bFM3_EXBUS_AREA3_ADDR4 *((volatile unsigned int*)(0x427E0990UL)) -#define bFM3_EXBUS_AREA3_ADDR5 *((volatile unsigned int*)(0x427E0994UL)) -#define bFM3_EXBUS_AREA3_ADDR6 *((volatile unsigned int*)(0x427E0998UL)) -#define bFM3_EXBUS_AREA3_ADDR7 *((volatile unsigned int*)(0x427E099CUL)) -#define bFM3_EXBUS_AREA3_MASK0 *((volatile unsigned int*)(0x427E09C0UL)) -#define bFM3_EXBUS_AREA3_MASK1 *((volatile unsigned int*)(0x427E09C4UL)) -#define bFM3_EXBUS_AREA3_MASK2 *((volatile unsigned int*)(0x427E09C8UL)) -#define bFM3_EXBUS_AREA3_MASK3 *((volatile unsigned int*)(0x427E09CCUL)) -#define bFM3_EXBUS_AREA3_MASK4 *((volatile unsigned int*)(0x427E09D0UL)) -#define bFM3_EXBUS_AREA3_MASK5 *((volatile unsigned int*)(0x427E09D4UL)) -#define bFM3_EXBUS_AREA3_MASK6 *((volatile unsigned int*)(0x427E09D8UL)) -#define bFM3_EXBUS_AREA4_ADDR0 *((volatile unsigned int*)(0x427E0A00UL)) -#define bFM3_EXBUS_AREA4_ADDR1 *((volatile unsigned int*)(0x427E0A04UL)) -#define bFM3_EXBUS_AREA4_ADDR2 *((volatile unsigned int*)(0x427E0A08UL)) -#define bFM3_EXBUS_AREA4_ADDR3 *((volatile unsigned int*)(0x427E0A0CUL)) -#define bFM3_EXBUS_AREA4_ADDR4 *((volatile unsigned int*)(0x427E0A10UL)) -#define bFM3_EXBUS_AREA4_ADDR5 *((volatile unsigned int*)(0x427E0A14UL)) -#define bFM3_EXBUS_AREA4_ADDR6 *((volatile unsigned int*)(0x427E0A18UL)) -#define bFM3_EXBUS_AREA4_ADDR7 *((volatile unsigned int*)(0x427E0A1CUL)) -#define bFM3_EXBUS_AREA4_MASK0 *((volatile unsigned int*)(0x427E0A40UL)) -#define bFM3_EXBUS_AREA4_MASK1 *((volatile unsigned int*)(0x427E0A44UL)) -#define bFM3_EXBUS_AREA4_MASK2 *((volatile unsigned int*)(0x427E0A48UL)) -#define bFM3_EXBUS_AREA4_MASK3 *((volatile unsigned int*)(0x427E0A4CUL)) -#define bFM3_EXBUS_AREA4_MASK4 *((volatile unsigned int*)(0x427E0A50UL)) -#define bFM3_EXBUS_AREA4_MASK5 *((volatile unsigned int*)(0x427E0A54UL)) -#define bFM3_EXBUS_AREA4_MASK6 *((volatile unsigned int*)(0x427E0A58UL)) -#define bFM3_EXBUS_AREA5_ADDR0 *((volatile unsigned int*)(0x427E0A80UL)) -#define bFM3_EXBUS_AREA5_ADDR1 *((volatile unsigned int*)(0x427E0A84UL)) -#define bFM3_EXBUS_AREA5_ADDR2 *((volatile unsigned int*)(0x427E0A88UL)) -#define bFM3_EXBUS_AREA5_ADDR3 *((volatile unsigned int*)(0x427E0A8CUL)) -#define bFM3_EXBUS_AREA5_ADDR4 *((volatile unsigned int*)(0x427E0A90UL)) -#define bFM3_EXBUS_AREA5_ADDR5 *((volatile unsigned int*)(0x427E0A94UL)) -#define bFM3_EXBUS_AREA5_ADDR6 *((volatile unsigned int*)(0x427E0A98UL)) -#define bFM3_EXBUS_AREA5_ADDR7 *((volatile unsigned int*)(0x427E0A9CUL)) -#define bFM3_EXBUS_AREA5_MASK0 *((volatile unsigned int*)(0x427E0AC0UL)) -#define bFM3_EXBUS_AREA5_MASK1 *((volatile unsigned int*)(0x427E0AC4UL)) -#define bFM3_EXBUS_AREA5_MASK2 *((volatile unsigned int*)(0x427E0AC8UL)) -#define bFM3_EXBUS_AREA5_MASK3 *((volatile unsigned int*)(0x427E0ACCUL)) -#define bFM3_EXBUS_AREA5_MASK4 *((volatile unsigned int*)(0x427E0AD0UL)) -#define bFM3_EXBUS_AREA5_MASK5 *((volatile unsigned int*)(0x427E0AD4UL)) -#define bFM3_EXBUS_AREA5_MASK6 *((volatile unsigned int*)(0x427E0AD8UL)) -#define bFM3_EXBUS_AREA6_ADDR0 *((volatile unsigned int*)(0x427E0B00UL)) -#define bFM3_EXBUS_AREA6_ADDR1 *((volatile unsigned int*)(0x427E0B04UL)) -#define bFM3_EXBUS_AREA6_ADDR2 *((volatile unsigned int*)(0x427E0B08UL)) -#define bFM3_EXBUS_AREA6_ADDR3 *((volatile unsigned int*)(0x427E0B0CUL)) -#define bFM3_EXBUS_AREA6_ADDR4 *((volatile unsigned int*)(0x427E0B10UL)) -#define bFM3_EXBUS_AREA6_ADDR5 *((volatile unsigned int*)(0x427E0B14UL)) -#define bFM3_EXBUS_AREA6_ADDR6 *((volatile unsigned int*)(0x427E0B18UL)) -#define bFM3_EXBUS_AREA6_ADDR7 *((volatile unsigned int*)(0x427E0B1CUL)) -#define bFM3_EXBUS_AREA6_MASK0 *((volatile unsigned int*)(0x427E0B40UL)) -#define bFM3_EXBUS_AREA6_MASK1 *((volatile unsigned int*)(0x427E0B44UL)) -#define bFM3_EXBUS_AREA6_MASK2 *((volatile unsigned int*)(0x427E0B48UL)) -#define bFM3_EXBUS_AREA6_MASK3 *((volatile unsigned int*)(0x427E0B4CUL)) -#define bFM3_EXBUS_AREA6_MASK4 *((volatile unsigned int*)(0x427E0B50UL)) -#define bFM3_EXBUS_AREA6_MASK5 *((volatile unsigned int*)(0x427E0B54UL)) -#define bFM3_EXBUS_AREA6_MASK6 *((volatile unsigned int*)(0x427E0B58UL)) -#define bFM3_EXBUS_AREA7_ADDR0 *((volatile unsigned int*)(0x427E0B80UL)) -#define bFM3_EXBUS_AREA7_ADDR1 *((volatile unsigned int*)(0x427E0B84UL)) -#define bFM3_EXBUS_AREA7_ADDR2 *((volatile unsigned int*)(0x427E0B88UL)) -#define bFM3_EXBUS_AREA7_ADDR3 *((volatile unsigned int*)(0x427E0B8CUL)) -#define bFM3_EXBUS_AREA7_ADDR4 *((volatile unsigned int*)(0x427E0B90UL)) -#define bFM3_EXBUS_AREA7_ADDR5 *((volatile unsigned int*)(0x427E0B94UL)) -#define bFM3_EXBUS_AREA7_ADDR6 *((volatile unsigned int*)(0x427E0B98UL)) -#define bFM3_EXBUS_AREA7_ADDR7 *((volatile unsigned int*)(0x427E0B9CUL)) -#define bFM3_EXBUS_AREA7_MASK0 *((volatile unsigned int*)(0x427E0BC0UL)) -#define bFM3_EXBUS_AREA7_MASK1 *((volatile unsigned int*)(0x427E0BC4UL)) -#define bFM3_EXBUS_AREA7_MASK2 *((volatile unsigned int*)(0x427E0BC8UL)) -#define bFM3_EXBUS_AREA7_MASK3 *((volatile unsigned int*)(0x427E0BCCUL)) -#define bFM3_EXBUS_AREA7_MASK4 *((volatile unsigned int*)(0x427E0BD0UL)) -#define bFM3_EXBUS_AREA7_MASK5 *((volatile unsigned int*)(0x427E0BD4UL)) -#define bFM3_EXBUS_AREA7_MASK6 *((volatile unsigned int*)(0x427E0BD8UL)) -#define bFM3_EXBUS_ATIM0_ALC0 *((volatile unsigned int*)(0x427E0C00UL)) -#define bFM3_EXBUS_ATIM0_ALC1 *((volatile unsigned int*)(0x427E0C04UL)) -#define bFM3_EXBUS_ATIM0_ALC2 *((volatile unsigned int*)(0x427E0C08UL)) -#define bFM3_EXBUS_ATIM0_ALC3 *((volatile unsigned int*)(0x427E0C0CUL)) -#define bFM3_EXBUS_ATIM0_ALES0 *((volatile unsigned int*)(0x427E0C10UL)) -#define bFM3_EXBUS_ATIM0_ALES1 *((volatile unsigned int*)(0x427E0C14UL)) -#define bFM3_EXBUS_ATIM0_ALES2 *((volatile unsigned int*)(0x427E0C18UL)) -#define bFM3_EXBUS_ATIM0_ALES3 *((volatile unsigned int*)(0x427E0C1CUL)) -#define bFM3_EXBUS_ATIM0_ALEW0 *((volatile unsigned int*)(0x427E0C20UL)) -#define bFM3_EXBUS_ATIM0_ALEW1 *((volatile unsigned int*)(0x427E0C24UL)) -#define bFM3_EXBUS_ATIM0_ALEW2 *((volatile unsigned int*)(0x427E0C28UL)) -#define bFM3_EXBUS_ATIM0_ALEW3 *((volatile unsigned int*)(0x427E0C2CUL)) -#define bFM3_EXBUS_ATIM1_ALC0 *((volatile unsigned int*)(0x427E0C80UL)) -#define bFM3_EXBUS_ATIM1_ALC1 *((volatile unsigned int*)(0x427E0C84UL)) -#define bFM3_EXBUS_ATIM1_ALC2 *((volatile unsigned int*)(0x427E0C88UL)) -#define bFM3_EXBUS_ATIM1_ALC3 *((volatile unsigned int*)(0x427E0C8CUL)) -#define bFM3_EXBUS_ATIM1_ALES0 *((volatile unsigned int*)(0x427E0C90UL)) -#define bFM3_EXBUS_ATIM1_ALES1 *((volatile unsigned int*)(0x427E0C94UL)) -#define bFM3_EXBUS_ATIM1_ALES2 *((volatile unsigned int*)(0x427E0C98UL)) -#define bFM3_EXBUS_ATIM1_ALES3 *((volatile unsigned int*)(0x427E0C9CUL)) -#define bFM3_EXBUS_ATIM1_ALEW0 *((volatile unsigned int*)(0x427E0CA0UL)) -#define bFM3_EXBUS_ATIM1_ALEW1 *((volatile unsigned int*)(0x427E0CA4UL)) -#define bFM3_EXBUS_ATIM1_ALEW2 *((volatile unsigned int*)(0x427E0CA8UL)) -#define bFM3_EXBUS_ATIM1_ALEW3 *((volatile unsigned int*)(0x427E0CACUL)) -#define bFM3_EXBUS_ATIM2_ALC0 *((volatile unsigned int*)(0x427E0D00UL)) -#define bFM3_EXBUS_ATIM2_ALC1 *((volatile unsigned int*)(0x427E0D04UL)) -#define bFM3_EXBUS_ATIM2_ALC2 *((volatile unsigned int*)(0x427E0D08UL)) -#define bFM3_EXBUS_ATIM2_ALC3 *((volatile unsigned int*)(0x427E0D0CUL)) -#define bFM3_EXBUS_ATIM2_ALES0 *((volatile unsigned int*)(0x427E0D10UL)) -#define bFM3_EXBUS_ATIM2_ALES1 *((volatile unsigned int*)(0x427E0D14UL)) -#define bFM3_EXBUS_ATIM2_ALES2 *((volatile unsigned int*)(0x427E0D18UL)) -#define bFM3_EXBUS_ATIM2_ALES3 *((volatile unsigned int*)(0x427E0D1CUL)) -#define bFM3_EXBUS_ATIM2_ALEW0 *((volatile unsigned int*)(0x427E0D20UL)) -#define bFM3_EXBUS_ATIM2_ALEW1 *((volatile unsigned int*)(0x427E0D24UL)) -#define bFM3_EXBUS_ATIM2_ALEW2 *((volatile unsigned int*)(0x427E0D28UL)) -#define bFM3_EXBUS_ATIM2_ALEW3 *((volatile unsigned int*)(0x427E0D2CUL)) -#define bFM3_EXBUS_ATIM3_ALC0 *((volatile unsigned int*)(0x427E0D80UL)) -#define bFM3_EXBUS_ATIM3_ALC1 *((volatile unsigned int*)(0x427E0D84UL)) -#define bFM3_EXBUS_ATIM3_ALC2 *((volatile unsigned int*)(0x427E0D88UL)) -#define bFM3_EXBUS_ATIM3_ALC3 *((volatile unsigned int*)(0x427E0D8CUL)) -#define bFM3_EXBUS_ATIM3_ALES0 *((volatile unsigned int*)(0x427E0D90UL)) -#define bFM3_EXBUS_ATIM3_ALES1 *((volatile unsigned int*)(0x427E0D94UL)) -#define bFM3_EXBUS_ATIM3_ALES2 *((volatile unsigned int*)(0x427E0D98UL)) -#define bFM3_EXBUS_ATIM3_ALES3 *((volatile unsigned int*)(0x427E0D9CUL)) -#define bFM3_EXBUS_ATIM3_ALEW0 *((volatile unsigned int*)(0x427E0DA0UL)) -#define bFM3_EXBUS_ATIM3_ALEW1 *((volatile unsigned int*)(0x427E0DA4UL)) -#define bFM3_EXBUS_ATIM3_ALEW2 *((volatile unsigned int*)(0x427E0DA8UL)) -#define bFM3_EXBUS_ATIM3_ALEW3 *((volatile unsigned int*)(0x427E0DACUL)) -#define bFM3_EXBUS_ATIM4_ALC0 *((volatile unsigned int*)(0x427E0E00UL)) -#define bFM3_EXBUS_ATIM4_ALC1 *((volatile unsigned int*)(0x427E0E04UL)) -#define bFM3_EXBUS_ATIM4_ALC2 *((volatile unsigned int*)(0x427E0E08UL)) -#define bFM3_EXBUS_ATIM4_ALC3 *((volatile unsigned int*)(0x427E0E0CUL)) -#define bFM3_EXBUS_ATIM4_ALES0 *((volatile unsigned int*)(0x427E0E10UL)) -#define bFM3_EXBUS_ATIM4_ALES1 *((volatile unsigned int*)(0x427E0E14UL)) -#define bFM3_EXBUS_ATIM4_ALES2 *((volatile unsigned int*)(0x427E0E18UL)) -#define bFM3_EXBUS_ATIM4_ALES3 *((volatile unsigned int*)(0x427E0E1CUL)) -#define bFM3_EXBUS_ATIM4_ALEW0 *((volatile unsigned int*)(0x427E0E20UL)) -#define bFM3_EXBUS_ATIM4_ALEW1 *((volatile unsigned int*)(0x427E0E24UL)) -#define bFM3_EXBUS_ATIM4_ALEW2 *((volatile unsigned int*)(0x427E0E28UL)) -#define bFM3_EXBUS_ATIM4_ALEW3 *((volatile unsigned int*)(0x427E0E2CUL)) -#define bFM3_EXBUS_ATIM5_ALC0 *((volatile unsigned int*)(0x427E0E80UL)) -#define bFM3_EXBUS_ATIM5_ALC1 *((volatile unsigned int*)(0x427E0E84UL)) -#define bFM3_EXBUS_ATIM5_ALC2 *((volatile unsigned int*)(0x427E0E88UL)) -#define bFM3_EXBUS_ATIM5_ALC3 *((volatile unsigned int*)(0x427E0E8CUL)) -#define bFM3_EXBUS_ATIM5_ALES0 *((volatile unsigned int*)(0x427E0E90UL)) -#define bFM3_EXBUS_ATIM5_ALES1 *((volatile unsigned int*)(0x427E0E94UL)) -#define bFM3_EXBUS_ATIM5_ALES2 *((volatile unsigned int*)(0x427E0E98UL)) -#define bFM3_EXBUS_ATIM5_ALES3 *((volatile unsigned int*)(0x427E0E9CUL)) -#define bFM3_EXBUS_ATIM5_ALEW0 *((volatile unsigned int*)(0x427E0EA0UL)) -#define bFM3_EXBUS_ATIM5_ALEW1 *((volatile unsigned int*)(0x427E0EA4UL)) -#define bFM3_EXBUS_ATIM5_ALEW2 *((volatile unsigned int*)(0x427E0EA8UL)) -#define bFM3_EXBUS_ATIM5_ALEW3 *((volatile unsigned int*)(0x427E0EACUL)) -#define bFM3_EXBUS_ATIM6_ALC0 *((volatile unsigned int*)(0x427E0F00UL)) -#define bFM3_EXBUS_ATIM6_ALC1 *((volatile unsigned int*)(0x427E0F04UL)) -#define bFM3_EXBUS_ATIM6_ALC2 *((volatile unsigned int*)(0x427E0F08UL)) -#define bFM3_EXBUS_ATIM6_ALC3 *((volatile unsigned int*)(0x427E0F0CUL)) -#define bFM3_EXBUS_ATIM6_ALES0 *((volatile unsigned int*)(0x427E0F10UL)) -#define bFM3_EXBUS_ATIM6_ALES1 *((volatile unsigned int*)(0x427E0F14UL)) -#define bFM3_EXBUS_ATIM6_ALES2 *((volatile unsigned int*)(0x427E0F18UL)) -#define bFM3_EXBUS_ATIM6_ALES3 *((volatile unsigned int*)(0x427E0F1CUL)) -#define bFM3_EXBUS_ATIM6_ALEW0 *((volatile unsigned int*)(0x427E0F20UL)) -#define bFM3_EXBUS_ATIM6_ALEW1 *((volatile unsigned int*)(0x427E0F24UL)) -#define bFM3_EXBUS_ATIM6_ALEW2 *((volatile unsigned int*)(0x427E0F28UL)) -#define bFM3_EXBUS_ATIM6_ALEW3 *((volatile unsigned int*)(0x427E0F2CUL)) -#define bFM3_EXBUS_ATIM7_ALC0 *((volatile unsigned int*)(0x427E0F80UL)) -#define bFM3_EXBUS_ATIM7_ALC1 *((volatile unsigned int*)(0x427E0F84UL)) -#define bFM3_EXBUS_ATIM7_ALC2 *((volatile unsigned int*)(0x427E0F88UL)) -#define bFM3_EXBUS_ATIM7_ALC3 *((volatile unsigned int*)(0x427E0F8CUL)) -#define bFM3_EXBUS_ATIM7_ALES0 *((volatile unsigned int*)(0x427E0F90UL)) -#define bFM3_EXBUS_ATIM7_ALES1 *((volatile unsigned int*)(0x427E0F94UL)) -#define bFM3_EXBUS_ATIM7_ALES2 *((volatile unsigned int*)(0x427E0F98UL)) -#define bFM3_EXBUS_ATIM7_ALES3 *((volatile unsigned int*)(0x427E0F9CUL)) -#define bFM3_EXBUS_ATIM7_ALEW0 *((volatile unsigned int*)(0x427E0FA0UL)) -#define bFM3_EXBUS_ATIM7_ALEW1 *((volatile unsigned int*)(0x427E0FA4UL)) -#define bFM3_EXBUS_ATIM7_ALEW2 *((volatile unsigned int*)(0x427E0FA8UL)) -#define bFM3_EXBUS_ATIM7_ALEW3 *((volatile unsigned int*)(0x427E0FACUL)) -#define bFM3_EXBUS_DCLKR_MDIV0 *((volatile unsigned int*)(0x427E6000UL)) -#define bFM3_EXBUS_DCLKR_MDIV1 *((volatile unsigned int*)(0x427E6004UL)) -#define bFM3_EXBUS_DCLKR_MDIV2 *((volatile unsigned int*)(0x427E6008UL)) -#define bFM3_EXBUS_DCLKR_MDIV3 *((volatile unsigned int*)(0x427E600CUL)) -#define bFM3_EXBUS_DCLKR_MCLKON *((volatile unsigned int*)(0x427E6010UL)) - -/* USB channel 0 registers */ -#define bFM3_USB0_HCNT_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HCNT0_HOST *((volatile unsigned int*)(0x42842000UL)) -#define bFM3_USB0_HCNT0_URST *((volatile unsigned int*)(0x42842004UL)) -#define bFM3_USB0_HCNT0_SOFIRE *((volatile unsigned int*)(0x42842008UL)) -#define bFM3_USB0_HCNT0_DIRE *((volatile unsigned int*)(0x4284200CUL)) -#define bFM3_USB0_HCNT0_CNNIRE *((volatile unsigned int*)(0x42842010UL)) -#define bFM3_USB0_HCNT0_CMPIRE *((volatile unsigned int*)(0x42842014UL)) -#define bFM3_USB0_HCNT0_URIRE *((volatile unsigned int*)(0x42842018UL)) -#define bFM3_USB0_HCNT0_RWKIRE *((volatile unsigned int*)(0x4284201CUL)) -#define bFM3_USB0_HCNT1_RETRY *((volatile unsigned int*)(0x42842020UL)) -#define bFM3_USB0_HCNT1_CANCEL *((volatile unsigned int*)(0x42842024UL)) -#define bFM3_USB0_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42842028UL)) -#define bFM3_USB0_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42842080UL)) -#define bFM3_USB0_HIRQ_DIRQ *((volatile unsigned int*)(0x42842084UL)) -#define bFM3_USB0_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42842088UL)) -#define bFM3_USB0_HIRQ_CMPIRQ *((volatile unsigned int*)(0x4284208CUL)) -#define bFM3_USB0_HIRQ_URIRQ *((volatile unsigned int*)(0x42842090UL)) -#define bFM3_USB0_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42842094UL)) -#define bFM3_USB0_HIRQ_TCAN *((volatile unsigned int*)(0x4284209CUL)) -#define bFM3_USB0_HERR_HS0 *((volatile unsigned int*)(0x428420A0UL)) -#define bFM3_USB0_HERR_HS1 *((volatile unsigned int*)(0x428420A4UL)) -#define bFM3_USB0_HERR_STUFF *((volatile unsigned int*)(0x428420A8UL)) -#define bFM3_USB0_HERR_TGERR *((volatile unsigned int*)(0x428420ACUL)) -#define bFM3_USB0_HERR_CRC *((volatile unsigned int*)(0x428420B0UL)) -#define bFM3_USB0_HERR_TOUT *((volatile unsigned int*)(0x428420B4UL)) -#define bFM3_USB0_HERR_RERR *((volatile unsigned int*)(0x428420B8UL)) -#define bFM3_USB0_HERR_LSTOF *((volatile unsigned int*)(0x428420BCUL)) -#define bFM3_USB0_HSTATE_CSTAT *((volatile unsigned int*)(0x42842100UL)) -#define bFM3_USB0_HSTATE_TMODE *((volatile unsigned int*)(0x42842104UL)) -#define bFM3_USB0_HSTATE_SUSP *((volatile unsigned int*)(0x42842108UL)) -#define bFM3_USB0_HSTATE_SOFBUSY *((volatile unsigned int*)(0x4284210CUL)) -#define bFM3_USB0_HSTATE_CLKSEL *((volatile unsigned int*)(0x42842110UL)) -#define bFM3_USB0_HSTATE_ALIVE *((volatile unsigned int*)(0x42842114UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42842120UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42842124UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42842128UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x4284212CUL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42842130UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42842134UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42842138UL)) -#define bFM3_USB0_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x4284213CUL)) -#define bFM3_USB0_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42842180UL)) -#define bFM3_USB0_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42842184UL)) -#define bFM3_USB0_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42842188UL)) -#define bFM3_USB0_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x4284218CUL)) -#define bFM3_USB0_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42842190UL)) -#define bFM3_USB0_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42842194UL)) -#define bFM3_USB0_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42842198UL)) -#define bFM3_USB0_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x4284219CUL)) -#define bFM3_USB0_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x428421A0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x428421A4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x428421A8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x428421ACUL)) -#define bFM3_USB0_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x428421B0UL)) -#define bFM3_USB0_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x428421B4UL)) -#define bFM3_USB0_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x428421B8UL)) -#define bFM3_USB0_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x428421BCUL)) -#define bFM3_USB0_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42842200UL)) -#define bFM3_USB0_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42842204UL)) -#define bFM3_USB0_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42842208UL)) -#define bFM3_USB0_HADR_ADDRESS0 *((volatile unsigned int*)(0x42842220UL)) -#define bFM3_USB0_HADR_ADDRESS1 *((volatile unsigned int*)(0x42842224UL)) -#define bFM3_USB0_HADR_ADDRESS2 *((volatile unsigned int*)(0x42842228UL)) -#define bFM3_USB0_HADR_ADDRESS3 *((volatile unsigned int*)(0x4284222CUL)) -#define bFM3_USB0_HADR_ADDRESS4 *((volatile unsigned int*)(0x42842230UL)) -#define bFM3_USB0_HADR_ADDRESS5 *((volatile unsigned int*)(0x42842234UL)) -#define bFM3_USB0_HADR_ADDRESS6 *((volatile unsigned int*)(0x42842238UL)) -#define bFM3_USB0_HEOF_EOF0 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF_EOF1 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF_EOF2 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF_EOF3 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF_EOF4 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF_EOF5 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF_EOF6 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF_EOF7 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF_EOF8 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF_EOF9 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF_EOF10 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF_EOF11 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF_EOF12 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF_EOF13 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HEOF_EOF14 *((volatile unsigned int*)(0x428422B8UL)) -#define bFM3_USB0_HEOF_EOF15 *((volatile unsigned int*)(0x428422BCUL)) -#define bFM3_USB0_HEOF0_EOF00 *((volatile unsigned int*)(0x42842280UL)) -#define bFM3_USB0_HEOF0_EOF01 *((volatile unsigned int*)(0x42842284UL)) -#define bFM3_USB0_HEOF0_EOF02 *((volatile unsigned int*)(0x42842288UL)) -#define bFM3_USB0_HEOF0_EOF03 *((volatile unsigned int*)(0x4284228CUL)) -#define bFM3_USB0_HEOF0_EOF04 *((volatile unsigned int*)(0x42842290UL)) -#define bFM3_USB0_HEOF0_EOF05 *((volatile unsigned int*)(0x42842294UL)) -#define bFM3_USB0_HEOF0_EOF06 *((volatile unsigned int*)(0x42842298UL)) -#define bFM3_USB0_HEOF0_EOF07 *((volatile unsigned int*)(0x4284229CUL)) -#define bFM3_USB0_HEOF1_EOF10 *((volatile unsigned int*)(0x428422A0UL)) -#define bFM3_USB0_HEOF1_EOF11 *((volatile unsigned int*)(0x428422A4UL)) -#define bFM3_USB0_HEOF1_EOF12 *((volatile unsigned int*)(0x428422A8UL)) -#define bFM3_USB0_HEOF1_EOF13 *((volatile unsigned int*)(0x428422ACUL)) -#define bFM3_USB0_HEOF1_EOF14 *((volatile unsigned int*)(0x428422B0UL)) -#define bFM3_USB0_HEOF1_EOF15 *((volatile unsigned int*)(0x428422B4UL)) -#define bFM3_USB0_HFRAME_FRAME0 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME_FRAME1 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME_FRAME2 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME_FRAME3 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME_FRAME4 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME_FRAME5 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME_FRAME6 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME_FRAME7 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME_FRAME8 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME_FRAME9 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME_FRAME10 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42842300UL)) -#define bFM3_USB0_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42842304UL)) -#define bFM3_USB0_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42842308UL)) -#define bFM3_USB0_HFRAME0_FRAME03 *((volatile unsigned int*)(0x4284230CUL)) -#define bFM3_USB0_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42842310UL)) -#define bFM3_USB0_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42842314UL)) -#define bFM3_USB0_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42842318UL)) -#define bFM3_USB0_HFRAME0_FRAME07 *((volatile unsigned int*)(0x4284231CUL)) -#define bFM3_USB0_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42842320UL)) -#define bFM3_USB0_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42842324UL)) -#define bFM3_USB0_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42842328UL)) -#define bFM3_USB0_HFRAME1_FRAME13 *((volatile unsigned int*)(0x4284232CUL)) -#define bFM3_USB0_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42842380UL)) -#define bFM3_USB0_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42842384UL)) -#define bFM3_USB0_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42842388UL)) -#define bFM3_USB0_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x4284238CUL)) -#define bFM3_USB0_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42842390UL)) -#define bFM3_USB0_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42842394UL)) -#define bFM3_USB0_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42842398UL)) -#define bFM3_USB0_HTOKEN_TGGL *((volatile unsigned int*)(0x4284239CUL)) -#define bFM3_USB0_UDCC_PWC *((volatile unsigned int*)(0x42842400UL)) -#define bFM3_USB0_UDCC_RFBK *((volatile unsigned int*)(0x42842404UL)) -#define bFM3_USB0_UDCC_STALCLREN *((volatile unsigned int*)(0x4284240CUL)) -#define bFM3_USB0_UDCC_USTP *((volatile unsigned int*)(0x42842410UL)) -#define bFM3_USB0_UDCC_HCONX *((volatile unsigned int*)(0x42842414UL)) -#define bFM3_USB0_UDCC_RESUM *((volatile unsigned int*)(0x42842418UL)) -#define bFM3_USB0_UDCC_RST *((volatile unsigned int*)(0x4284241CUL)) -#define bFM3_USB0_EP0C_PKS00 *((volatile unsigned int*)(0x42842480UL)) -#define bFM3_USB0_EP0C_PKS01 *((volatile unsigned int*)(0x42842484UL)) -#define bFM3_USB0_EP0C_PKS02 *((volatile unsigned int*)(0x42842488UL)) -#define bFM3_USB0_EP0C_PKS03 *((volatile unsigned int*)(0x4284248CUL)) -#define bFM3_USB0_EP0C_PKS04 *((volatile unsigned int*)(0x42842490UL)) -#define bFM3_USB0_EP0C_PKS05 *((volatile unsigned int*)(0x42842494UL)) -#define bFM3_USB0_EP0C_PKS06 *((volatile unsigned int*)(0x42842498UL)) -#define bFM3_USB0_EP0C_STAL *((volatile unsigned int*)(0x428424A4UL)) -#define bFM3_USB0_EP1C_PKS10 *((volatile unsigned int*)(0x42842500UL)) -#define bFM3_USB0_EP1C_PKS11 *((volatile unsigned int*)(0x42842504UL)) -#define bFM3_USB0_EP1C_PKS12 *((volatile unsigned int*)(0x42842508UL)) -#define bFM3_USB0_EP1C_PKS13 *((volatile unsigned int*)(0x4284250CUL)) -#define bFM3_USB0_EP1C_PKS14 *((volatile unsigned int*)(0x42842510UL)) -#define bFM3_USB0_EP1C_PKS15 *((volatile unsigned int*)(0x42842514UL)) -#define bFM3_USB0_EP1C_PKS16 *((volatile unsigned int*)(0x42842518UL)) -#define bFM3_USB0_EP1C_PKS17 *((volatile unsigned int*)(0x4284251CUL)) -#define bFM3_USB0_EP1C_PKS18 *((volatile unsigned int*)(0x42842520UL)) -#define bFM3_USB0_EP1C_STAL *((volatile unsigned int*)(0x42842524UL)) -#define bFM3_USB0_EP1C_NULE *((volatile unsigned int*)(0x42842528UL)) -#define bFM3_USB0_EP1C_DMAE *((volatile unsigned int*)(0x4284252CUL)) -#define bFM3_USB0_EP1C_DIR *((volatile unsigned int*)(0x42842530UL)) -#define bFM3_USB0_EP1C_TYPE0 *((volatile unsigned int*)(0x42842534UL)) -#define bFM3_USB0_EP1C_TYPE1 *((volatile unsigned int*)(0x42842538UL)) -#define bFM3_USB0_EP1C_EPEN *((volatile unsigned int*)(0x4284253CUL)) -#define bFM3_USB0_EP2C_PKS20 *((volatile unsigned int*)(0x42842580UL)) -#define bFM3_USB0_EP2C_PKS21 *((volatile unsigned int*)(0x42842584UL)) -#define bFM3_USB0_EP2C_PKS22 *((volatile unsigned int*)(0x42842588UL)) -#define bFM3_USB0_EP2C_PKS23 *((volatile unsigned int*)(0x4284258CUL)) -#define bFM3_USB0_EP2C_PKS24 *((volatile unsigned int*)(0x42842590UL)) -#define bFM3_USB0_EP2C_PKS25 *((volatile unsigned int*)(0x42842594UL)) -#define bFM3_USB0_EP2C_PKS26 *((volatile unsigned int*)(0x42842598UL)) -#define bFM3_USB0_EP2C_STAL *((volatile unsigned int*)(0x428425A4UL)) -#define bFM3_USB0_EP2C_NULE *((volatile unsigned int*)(0x428425A8UL)) -#define bFM3_USB0_EP2C_DMAE *((volatile unsigned int*)(0x428425ACUL)) -#define bFM3_USB0_EP2C_DIR *((volatile unsigned int*)(0x428425B0UL)) -#define bFM3_USB0_EP2C_TYPE0 *((volatile unsigned int*)(0x428425B4UL)) -#define bFM3_USB0_EP2C_TYPE1 *((volatile unsigned int*)(0x428425B8UL)) -#define bFM3_USB0_EP2C_EPEN *((volatile unsigned int*)(0x428425BCUL)) -#define bFM3_USB0_EP3C_PKS30 *((volatile unsigned int*)(0x42842600UL)) -#define bFM3_USB0_EP3C_PKS31 *((volatile unsigned int*)(0x42842604UL)) -#define bFM3_USB0_EP3C_PKS32 *((volatile unsigned int*)(0x42842608UL)) -#define bFM3_USB0_EP3C_PKS33 *((volatile unsigned int*)(0x4284260CUL)) -#define bFM3_USB0_EP3C_PKS34 *((volatile unsigned int*)(0x42842610UL)) -#define bFM3_USB0_EP3C_PKS35 *((volatile unsigned int*)(0x42842614UL)) -#define bFM3_USB0_EP3C_PKS36 *((volatile unsigned int*)(0x42842618UL)) -#define bFM3_USB0_EP3C_STAL *((volatile unsigned int*)(0x42842624UL)) -#define bFM3_USB0_EP3C_NULE *((volatile unsigned int*)(0x42842628UL)) -#define bFM3_USB0_EP3C_DMAE *((volatile unsigned int*)(0x4284262CUL)) -#define bFM3_USB0_EP3C_DIR *((volatile unsigned int*)(0x42842630UL)) -#define bFM3_USB0_EP3C_TYPE0 *((volatile unsigned int*)(0x42842634UL)) -#define bFM3_USB0_EP3C_TYPE1 *((volatile unsigned int*)(0x42842638UL)) -#define bFM3_USB0_EP3C_EPEN *((volatile unsigned int*)(0x4284263CUL)) -#define bFM3_USB0_EP4C_PKS40 *((volatile unsigned int*)(0x42842680UL)) -#define bFM3_USB0_EP4C_PKS41 *((volatile unsigned int*)(0x42842684UL)) -#define bFM3_USB0_EP4C_PKS42 *((volatile unsigned int*)(0x42842688UL)) -#define bFM3_USB0_EP4C_PKS43 *((volatile unsigned int*)(0x4284268CUL)) -#define bFM3_USB0_EP4C_PKS44 *((volatile unsigned int*)(0x42842690UL)) -#define bFM3_USB0_EP4C_PKS45 *((volatile unsigned int*)(0x42842694UL)) -#define bFM3_USB0_EP4C_PKS46 *((volatile unsigned int*)(0x42842698UL)) -#define bFM3_USB0_EP4C_STAL *((volatile unsigned int*)(0x428426A4UL)) -#define bFM3_USB0_EP4C_NULE *((volatile unsigned int*)(0x428426A8UL)) -#define bFM3_USB0_EP4C_DMAE *((volatile unsigned int*)(0x428426ACUL)) -#define bFM3_USB0_EP4C_DIR *((volatile unsigned int*)(0x428426B0UL)) -#define bFM3_USB0_EP4C_TYPE0 *((volatile unsigned int*)(0x428426B4UL)) -#define bFM3_USB0_EP4C_TYPE1 *((volatile unsigned int*)(0x428426B8UL)) -#define bFM3_USB0_EP4C_EPEN *((volatile unsigned int*)(0x428426BCUL)) -#define bFM3_USB0_EP5C_PKS50 *((volatile unsigned int*)(0x42842700UL)) -#define bFM3_USB0_EP5C_PKS51 *((volatile unsigned int*)(0x42842704UL)) -#define bFM3_USB0_EP5C_PKS52 *((volatile unsigned int*)(0x42842708UL)) -#define bFM3_USB0_EP5C_PKS53 *((volatile unsigned int*)(0x4284270CUL)) -#define bFM3_USB0_EP5C_PKS54 *((volatile unsigned int*)(0x42842710UL)) -#define bFM3_USB0_EP5C_PKS55 *((volatile unsigned int*)(0x42842714UL)) -#define bFM3_USB0_EP5C_PKS56 *((volatile unsigned int*)(0x42842718UL)) -#define bFM3_USB0_EP5C_STAL *((volatile unsigned int*)(0x42842724UL)) -#define bFM3_USB0_EP5C_NULE *((volatile unsigned int*)(0x42842728UL)) -#define bFM3_USB0_EP5C_DMAE *((volatile unsigned int*)(0x4284272CUL)) -#define bFM3_USB0_EP5C_DIR *((volatile unsigned int*)(0x42842730UL)) -#define bFM3_USB0_EP5C_TYPE0 *((volatile unsigned int*)(0x42842734UL)) -#define bFM3_USB0_EP5C_TYPE1 *((volatile unsigned int*)(0x42842738UL)) -#define bFM3_USB0_EP5C_EPEN *((volatile unsigned int*)(0x4284273CUL)) -#define bFM3_USB0_TMSP_TMSP0 *((volatile unsigned int*)(0x42842780UL)) -#define bFM3_USB0_TMSP_TMSP1 *((volatile unsigned int*)(0x42842784UL)) -#define bFM3_USB0_TMSP_TMSP2 *((volatile unsigned int*)(0x42842788UL)) -#define bFM3_USB0_TMSP_TMSP3 *((volatile unsigned int*)(0x4284278CUL)) -#define bFM3_USB0_TMSP_TMSP4 *((volatile unsigned int*)(0x42842790UL)) -#define bFM3_USB0_TMSP_TMSP5 *((volatile unsigned int*)(0x42842794UL)) -#define bFM3_USB0_TMSP_TMSP6 *((volatile unsigned int*)(0x42842798UL)) -#define bFM3_USB0_TMSP_TMSP7 *((volatile unsigned int*)(0x4284279CUL)) -#define bFM3_USB0_TMSP_TMSP8 *((volatile unsigned int*)(0x428427A0UL)) -#define bFM3_USB0_TMSP_TMSP9 *((volatile unsigned int*)(0x428427A4UL)) -#define bFM3_USB0_TMSP_TMSP10 *((volatile unsigned int*)(0x428427A8UL)) -#define bFM3_USB0_UDCS_CONF *((volatile unsigned int*)(0x42842800UL)) -#define bFM3_USB0_UDCS_SETP *((volatile unsigned int*)(0x42842804UL)) -#define bFM3_USB0_UDCS_WKUP *((volatile unsigned int*)(0x42842808UL)) -#define bFM3_USB0_UDCS_BRST *((volatile unsigned int*)(0x4284280CUL)) -#define bFM3_USB0_UDCS_SOF *((volatile unsigned int*)(0x42842810UL)) -#define bFM3_USB0_UDCS_SUSP *((volatile unsigned int*)(0x42842814UL)) -#define bFM3_USB0_UDCIE_CONFIE *((volatile unsigned int*)(0x42842820UL)) -#define bFM3_USB0_UDCIE_CONFN *((volatile unsigned int*)(0x42842824UL)) -#define bFM3_USB0_UDCIE_WKUPIE *((volatile unsigned int*)(0x42842828UL)) -#define bFM3_USB0_UDCIE_BRSTIE *((volatile unsigned int*)(0x4284282CUL)) -#define bFM3_USB0_UDCIE_SOFIE *((volatile unsigned int*)(0x42842830UL)) -#define bFM3_USB0_UDCIE_SUSPIE *((volatile unsigned int*)(0x42842834UL)) -#define bFM3_USB0_EP0IS_DRQI *((volatile unsigned int*)(0x428428A8UL)) -#define bFM3_USB0_EP0IS_DRQIIE *((volatile unsigned int*)(0x428428B8UL)) -#define bFM3_USB0_EP0IS_BFINI *((volatile unsigned int*)(0x428428BCUL)) -#define bFM3_USB0_EP0OS_SIZE0 *((volatile unsigned int*)(0x42842900UL)) -#define bFM3_USB0_EP0OS_SIZE1 *((volatile unsigned int*)(0x42842904UL)) -#define bFM3_USB0_EP0OS_SIZE2 *((volatile unsigned int*)(0x42842908UL)) -#define bFM3_USB0_EP0OS_SIZE3 *((volatile unsigned int*)(0x4284290CUL)) -#define bFM3_USB0_EP0OS_SIZE4 *((volatile unsigned int*)(0x42842910UL)) -#define bFM3_USB0_EP0OS_SIZE5 *((volatile unsigned int*)(0x42842914UL)) -#define bFM3_USB0_EP0OS_SIZE6 *((volatile unsigned int*)(0x42842918UL)) -#define bFM3_USB0_EP0OS_SPK *((volatile unsigned int*)(0x42842924UL)) -#define bFM3_USB0_EP0OS_DRQO *((volatile unsigned int*)(0x42842928UL)) -#define bFM3_USB0_EP0OS_SPKIE *((volatile unsigned int*)(0x42842934UL)) -#define bFM3_USB0_EP0OS_DRQOIE *((volatile unsigned int*)(0x42842938UL)) -#define bFM3_USB0_EP0OS_BFINI *((volatile unsigned int*)(0x4284293CUL)) -#define bFM3_USB0_EP1S_SIZE10 *((volatile unsigned int*)(0x42842980UL)) -#define bFM3_USB0_EP1S_SIZE11 *((volatile unsigned int*)(0x42842984UL)) -#define bFM3_USB0_EP1S_SIZE12 *((volatile unsigned int*)(0x42842988UL)) -#define bFM3_USB0_EP1S_SIZE13 *((volatile unsigned int*)(0x4284298CUL)) -#define bFM3_USB0_EP1S_SIZE14 *((volatile unsigned int*)(0x42842990UL)) -#define bFM3_USB0_EP1S_SIZE15 *((volatile unsigned int*)(0x42842994UL)) -#define bFM3_USB0_EP1S_SIZE16 *((volatile unsigned int*)(0x42842998UL)) -#define bFM3_USB0_EP1S_SIZE17 *((volatile unsigned int*)(0x4284299CUL)) -#define bFM3_USB0_EP1S_SIZE18 *((volatile unsigned int*)(0x428429A0UL)) -#define bFM3_USB0_EP1S_SPK *((volatile unsigned int*)(0x428429A4UL)) -#define bFM3_USB0_EP1S_DRQ *((volatile unsigned int*)(0x428429A8UL)) -#define bFM3_USB0_EP1S_BUSY *((volatile unsigned int*)(0x428429ACUL)) -#define bFM3_USB0_EP1S_SPKIE *((volatile unsigned int*)(0x428429B4UL)) -#define bFM3_USB0_EP1S_DRQIE *((volatile unsigned int*)(0x428429B8UL)) -#define bFM3_USB0_EP1S_BFINI *((volatile unsigned int*)(0x428429BCUL)) -#define bFM3_USB0_EP2S_SIZE20 *((volatile unsigned int*)(0x42842A00UL)) -#define bFM3_USB0_EP2S_SIZE21 *((volatile unsigned int*)(0x42842A04UL)) -#define bFM3_USB0_EP2S_SIZE22 *((volatile unsigned int*)(0x42842A08UL)) -#define bFM3_USB0_EP2S_SIZE23 *((volatile unsigned int*)(0x42842A0CUL)) -#define bFM3_USB0_EP2S_SIZE24 *((volatile unsigned int*)(0x42842A10UL)) -#define bFM3_USB0_EP2S_SIZE25 *((volatile unsigned int*)(0x42842A14UL)) -#define bFM3_USB0_EP2S_SIZE26 *((volatile unsigned int*)(0x42842A18UL)) -#define bFM3_USB0_EP2S_SPK *((volatile unsigned int*)(0x42842A24UL)) -#define bFM3_USB0_EP2S_DRQ *((volatile unsigned int*)(0x42842A28UL)) -#define bFM3_USB0_EP2S_BUSY *((volatile unsigned int*)(0x42842A2CUL)) -#define bFM3_USB0_EP2S_SPKIE *((volatile unsigned int*)(0x42842A34UL)) -#define bFM3_USB0_EP2S_DRQIE *((volatile unsigned int*)(0x42842A38UL)) -#define bFM3_USB0_EP2S_BFINI *((volatile unsigned int*)(0x42842A3CUL)) -#define bFM3_USB0_EP3S_SIZE30 *((volatile unsigned int*)(0x42842A80UL)) -#define bFM3_USB0_EP3S_SIZE31 *((volatile unsigned int*)(0x42842A84UL)) -#define bFM3_USB0_EP3S_SIZE32 *((volatile unsigned int*)(0x42842A88UL)) -#define bFM3_USB0_EP3S_SIZE33 *((volatile unsigned int*)(0x42842A8CUL)) -#define bFM3_USB0_EP3S_SIZE34 *((volatile unsigned int*)(0x42842A90UL)) -#define bFM3_USB0_EP3S_SIZE35 *((volatile unsigned int*)(0x42842A94UL)) -#define bFM3_USB0_EP3S_SIZE36 *((volatile unsigned int*)(0x42842A98UL)) -#define bFM3_USB0_EP3S_SPK *((volatile unsigned int*)(0x42842AA4UL)) -#define bFM3_USB0_EP3S_DRQ *((volatile unsigned int*)(0x42842AA8UL)) -#define bFM3_USB0_EP3S_BUSY *((volatile unsigned int*)(0x42842AACUL)) -#define bFM3_USB0_EP3S_SPKIE *((volatile unsigned int*)(0x42842AB4UL)) -#define bFM3_USB0_EP3S_DRQIE *((volatile unsigned int*)(0x42842AB8UL)) -#define bFM3_USB0_EP3S_BFINI *((volatile unsigned int*)(0x42842ABCUL)) -#define bFM3_USB0_EP4S_SIZE40 *((volatile unsigned int*)(0x42842B00UL)) -#define bFM3_USB0_EP4S_SIZE41 *((volatile unsigned int*)(0x42842B04UL)) -#define bFM3_USB0_EP4S_SIZE42 *((volatile unsigned int*)(0x42842B08UL)) -#define bFM3_USB0_EP4S_SIZE43 *((volatile unsigned int*)(0x42842B0CUL)) -#define bFM3_USB0_EP4S_SIZE44 *((volatile unsigned int*)(0x42842B10UL)) -#define bFM3_USB0_EP4S_SIZE45 *((volatile unsigned int*)(0x42842B14UL)) -#define bFM3_USB0_EP4S_SIZE46 *((volatile unsigned int*)(0x42842B18UL)) -#define bFM3_USB0_EP4S_SPK *((volatile unsigned int*)(0x42842B24UL)) -#define bFM3_USB0_EP4S_DRQ *((volatile unsigned int*)(0x42842B28UL)) -#define bFM3_USB0_EP4S_BUSY *((volatile unsigned int*)(0x42842B2CUL)) -#define bFM3_USB0_EP4S_SPKIE *((volatile unsigned int*)(0x42842B34UL)) -#define bFM3_USB0_EP4S_DRQIE *((volatile unsigned int*)(0x42842B38UL)) -#define bFM3_USB0_EP4S_BFINI *((volatile unsigned int*)(0x42842B3CUL)) -#define bFM3_USB0_EP5S_SIZE50 *((volatile unsigned int*)(0x42842B80UL)) -#define bFM3_USB0_EP5S_SIZE51 *((volatile unsigned int*)(0x42842B84UL)) -#define bFM3_USB0_EP5S_SIZE52 *((volatile unsigned int*)(0x42842B88UL)) -#define bFM3_USB0_EP5S_SIZE53 *((volatile unsigned int*)(0x42842B8CUL)) -#define bFM3_USB0_EP5S_SIZE54 *((volatile unsigned int*)(0x42842B90UL)) -#define bFM3_USB0_EP5S_SIZE55 *((volatile unsigned int*)(0x42842B94UL)) -#define bFM3_USB0_EP5S_SIZE56 *((volatile unsigned int*)(0x42842B98UL)) -#define bFM3_USB0_EP5S_SPK *((volatile unsigned int*)(0x42842BA4UL)) -#define bFM3_USB0_EP5S_DRQ *((volatile unsigned int*)(0x42842BA8UL)) -#define bFM3_USB0_EP5S_BUSY *((volatile unsigned int*)(0x42842BACUL)) -#define bFM3_USB0_EP5S_SPKIE *((volatile unsigned int*)(0x42842BB4UL)) -#define bFM3_USB0_EP5S_DRQIE *((volatile unsigned int*)(0x42842BB8UL)) -#define bFM3_USB0_EP5S_BFINI *((volatile unsigned int*)(0x42842BBCUL)) - -/* USB channel 1 registers */ -#define bFM3_USB1_HCNT_HOST *((volatile unsigned int*)(0x42A42000UL)) -#define bFM3_USB1_HCNT_URST *((volatile unsigned int*)(0x42A42004UL)) -#define bFM3_USB1_HCNT_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) -#define bFM3_USB1_HCNT_DIRE *((volatile unsigned int*)(0x42A4200CUL)) -#define bFM3_USB1_HCNT_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) -#define bFM3_USB1_HCNT_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) -#define bFM3_USB1_HCNT_URIRE *((volatile unsigned int*)(0x42A42018UL)) -#define bFM3_USB1_HCNT_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) -#define bFM3_USB1_HCNT_RETRY *((volatile unsigned int*)(0x42A42020UL)) -#define bFM3_USB1_HCNT_CANCEL *((volatile unsigned int*)(0x42A42024UL)) -#define bFM3_USB1_HCNT_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) -#define bFM3_USB1_HCNT0_HOST *((volatile unsigned int*)(0x42A42000UL)) -#define bFM3_USB1_HCNT0_URST *((volatile unsigned int*)(0x42A42004UL)) -#define bFM3_USB1_HCNT0_SOFIRE *((volatile unsigned int*)(0x42A42008UL)) -#define bFM3_USB1_HCNT0_DIRE *((volatile unsigned int*)(0x42A4200CUL)) -#define bFM3_USB1_HCNT0_CNNIRE *((volatile unsigned int*)(0x42A42010UL)) -#define bFM3_USB1_HCNT0_CMPIRE *((volatile unsigned int*)(0x42A42014UL)) -#define bFM3_USB1_HCNT0_URIRE *((volatile unsigned int*)(0x42A42018UL)) -#define bFM3_USB1_HCNT0_RWKIRE *((volatile unsigned int*)(0x42A4201CUL)) -#define bFM3_USB1_HCNT1_RETRY *((volatile unsigned int*)(0x42A42020UL)) -#define bFM3_USB1_HCNT1_CANCEL *((volatile unsigned int*)(0x42A42024UL)) -#define bFM3_USB1_HCNT1_SOFSTEP *((volatile unsigned int*)(0x42A42028UL)) -#define bFM3_USB1_HIRQ_SOFIRQ *((volatile unsigned int*)(0x42A42080UL)) -#define bFM3_USB1_HIRQ_DIRQ *((volatile unsigned int*)(0x42A42084UL)) -#define bFM3_USB1_HIRQ_CNNIRQ *((volatile unsigned int*)(0x42A42088UL)) -#define bFM3_USB1_HIRQ_CMPIRQ *((volatile unsigned int*)(0x42A4208CUL)) -#define bFM3_USB1_HIRQ_URIRQ *((volatile unsigned int*)(0x42A42090UL)) -#define bFM3_USB1_HIRQ_RWKIRQ *((volatile unsigned int*)(0x42A42094UL)) -#define bFM3_USB1_HIRQ_TCAN *((volatile unsigned int*)(0x42A4209CUL)) -#define bFM3_USB1_HERR_HS0 *((volatile unsigned int*)(0x42A420A0UL)) -#define bFM3_USB1_HERR_HS1 *((volatile unsigned int*)(0x42A420A4UL)) -#define bFM3_USB1_HERR_STUFF *((volatile unsigned int*)(0x42A420A8UL)) -#define bFM3_USB1_HERR_TGERR *((volatile unsigned int*)(0x42A420ACUL)) -#define bFM3_USB1_HERR_CRC *((volatile unsigned int*)(0x42A420B0UL)) -#define bFM3_USB1_HERR_TOUT *((volatile unsigned int*)(0x42A420B4UL)) -#define bFM3_USB1_HERR_RERR *((volatile unsigned int*)(0x42A420B8UL)) -#define bFM3_USB1_HERR_LSTOF *((volatile unsigned int*)(0x42A420BCUL)) -#define bFM3_USB1_HSTATE_CSTAT *((volatile unsigned int*)(0x42A42100UL)) -#define bFM3_USB1_HSTATE_TMODE *((volatile unsigned int*)(0x42A42104UL)) -#define bFM3_USB1_HSTATE_SUSP *((volatile unsigned int*)(0x42A42108UL)) -#define bFM3_USB1_HSTATE_SOFBUSY *((volatile unsigned int*)(0x42A4210CUL)) -#define bFM3_USB1_HSTATE_CLKSEL *((volatile unsigned int*)(0x42A42110UL)) -#define bFM3_USB1_HSTATE_ALIVE *((volatile unsigned int*)(0x42A42114UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP0 *((volatile unsigned int*)(0x42A42120UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP1 *((volatile unsigned int*)(0x42A42124UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP2 *((volatile unsigned int*)(0x42A42128UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP3 *((volatile unsigned int*)(0x42A4212CUL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP4 *((volatile unsigned int*)(0x42A42130UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP5 *((volatile unsigned int*)(0x42A42134UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP6 *((volatile unsigned int*)(0x42A42138UL)) -#define bFM3_USB1_HFCOMP_FRAMECOMP7 *((volatile unsigned int*)(0x42A4213CUL)) -#define bFM3_USB1_HRTIMER_RTIMER0 *((volatile unsigned int*)(0x42A42180UL)) -#define bFM3_USB1_HRTIMER_RTIMER1 *((volatile unsigned int*)(0x42A42184UL)) -#define bFM3_USB1_HRTIMER_RTIMER2 *((volatile unsigned int*)(0x42A42188UL)) -#define bFM3_USB1_HRTIMER_RTIMER3 *((volatile unsigned int*)(0x42A4218CUL)) -#define bFM3_USB1_HRTIMER_RTIMER4 *((volatile unsigned int*)(0x42A42190UL)) -#define bFM3_USB1_HRTIMER_RTIMER5 *((volatile unsigned int*)(0x42A42194UL)) -#define bFM3_USB1_HRTIMER_RTIMER6 *((volatile unsigned int*)(0x42A42198UL)) -#define bFM3_USB1_HRTIMER_RTIMER7 *((volatile unsigned int*)(0x42A4219CUL)) -#define bFM3_USB1_HRTIMER_RTIMER8 *((volatile unsigned int*)(0x42A421A0UL)) -#define bFM3_USB1_HRTIMER_RTIMER9 *((volatile unsigned int*)(0x42A421A4UL)) -#define bFM3_USB1_HRTIMER_RTIMER10 *((volatile unsigned int*)(0x42A421A8UL)) -#define bFM3_USB1_HRTIMER_RTIMER11 *((volatile unsigned int*)(0x42A421ACUL)) -#define bFM3_USB1_HRTIMER_RTIMER12 *((volatile unsigned int*)(0x42A421B0UL)) -#define bFM3_USB1_HRTIMER_RTIMER13 *((volatile unsigned int*)(0x42A421B4UL)) -#define bFM3_USB1_HRTIMER_RTIMER14 *((volatile unsigned int*)(0x42A421B8UL)) -#define bFM3_USB1_HRTIMER_RTIMER15 *((volatile unsigned int*)(0x42A421BCUL)) -#define bFM3_USB1_HRTIMER0_RTIMER00 *((volatile unsigned int*)(0x42A42180UL)) -#define bFM3_USB1_HRTIMER0_RTIMER01 *((volatile unsigned int*)(0x42A42184UL)) -#define bFM3_USB1_HRTIMER0_RTIMER02 *((volatile unsigned int*)(0x42A42188UL)) -#define bFM3_USB1_HRTIMER0_RTIMER03 *((volatile unsigned int*)(0x42A4218CUL)) -#define bFM3_USB1_HRTIMER0_RTIMER04 *((volatile unsigned int*)(0x42A42190UL)) -#define bFM3_USB1_HRTIMER0_RTIMER05 *((volatile unsigned int*)(0x42A42194UL)) -#define bFM3_USB1_HRTIMER0_RTIMER06 *((volatile unsigned int*)(0x42A42198UL)) -#define bFM3_USB1_HRTIMER0_RTIMER07 *((volatile unsigned int*)(0x42A4219CUL)) -#define bFM3_USB1_HRTIMER1_RTIMER10 *((volatile unsigned int*)(0x42A421A0UL)) -#define bFM3_USB1_HRTIMER1_RTIMER11 *((volatile unsigned int*)(0x42A421A4UL)) -#define bFM3_USB1_HRTIMER1_RTIMER12 *((volatile unsigned int*)(0x42A421A8UL)) -#define bFM3_USB1_HRTIMER1_RTIMER13 *((volatile unsigned int*)(0x42A421ACUL)) -#define bFM3_USB1_HRTIMER1_RTIMER14 *((volatile unsigned int*)(0x42A421B0UL)) -#define bFM3_USB1_HRTIMER1_RTIMER15 *((volatile unsigned int*)(0x42A421B4UL)) -#define bFM3_USB1_HRTIMER1_RTIMER16 *((volatile unsigned int*)(0x42A421B8UL)) -#define bFM3_USB1_HRTIMER1_RTIMER17 *((volatile unsigned int*)(0x42A421BCUL)) -#define bFM3_USB1_HRTIMER2_RTIMER20 *((volatile unsigned int*)(0x42A42200UL)) -#define bFM3_USB1_HRTIMER2_RTIMER21 *((volatile unsigned int*)(0x42A42204UL)) -#define bFM3_USB1_HRTIMER2_RTIMER22 *((volatile unsigned int*)(0x42A42208UL)) -#define bFM3_USB1_HADR_ADDRESS0 *((volatile unsigned int*)(0x42A42220UL)) -#define bFM3_USB1_HADR_ADDRESS1 *((volatile unsigned int*)(0x42A42224UL)) -#define bFM3_USB1_HADR_ADDRESS2 *((volatile unsigned int*)(0x42A42228UL)) -#define bFM3_USB1_HADR_ADDRESS3 *((volatile unsigned int*)(0x42A4222CUL)) -#define bFM3_USB1_HADR_ADDRESS4 *((volatile unsigned int*)(0x42A42230UL)) -#define bFM3_USB1_HADR_ADDRESS5 *((volatile unsigned int*)(0x42A42234UL)) -#define bFM3_USB1_HADR_ADDRESS6 *((volatile unsigned int*)(0x42A42238UL)) -#define bFM3_USB1_HEOF_EOF0 *((volatile unsigned int*)(0x42A42280UL)) -#define bFM3_USB1_HEOF_EOF1 *((volatile unsigned int*)(0x42A42284UL)) -#define bFM3_USB1_HEOF_EOF2 *((volatile unsigned int*)(0x42A42288UL)) -#define bFM3_USB1_HEOF_EOF3 *((volatile unsigned int*)(0x42A4228CUL)) -#define bFM3_USB1_HEOF_EOF4 *((volatile unsigned int*)(0x42A42290UL)) -#define bFM3_USB1_HEOF_EOF5 *((volatile unsigned int*)(0x42A42294UL)) -#define bFM3_USB1_HEOF_EOF6 *((volatile unsigned int*)(0x42A42298UL)) -#define bFM3_USB1_HEOF_EOF7 *((volatile unsigned int*)(0x42A4229CUL)) -#define bFM3_USB1_HEOF_EOF8 *((volatile unsigned int*)(0x42A422A0UL)) -#define bFM3_USB1_HEOF_EOF9 *((volatile unsigned int*)(0x42A422A4UL)) -#define bFM3_USB1_HEOF_EOF10 *((volatile unsigned int*)(0x42A422A8UL)) -#define bFM3_USB1_HEOF_EOF11 *((volatile unsigned int*)(0x42A422ACUL)) -#define bFM3_USB1_HEOF_EOF12 *((volatile unsigned int*)(0x42A422B0UL)) -#define bFM3_USB1_HEOF_EOF13 *((volatile unsigned int*)(0x42A422B4UL)) -#define bFM3_USB1_HEOF_EOF14 *((volatile unsigned int*)(0x42A422B8UL)) -#define bFM3_USB1_HEOF_EOF15 *((volatile unsigned int*)(0x42A422BCUL)) -#define bFM3_USB1_HEOF0_EOF00 *((volatile unsigned int*)(0x42A42280UL)) -#define bFM3_USB1_HEOF0_EOF01 *((volatile unsigned int*)(0x42A42284UL)) -#define bFM3_USB1_HEOF0_EOF02 *((volatile unsigned int*)(0x42A42288UL)) -#define bFM3_USB1_HEOF0_EOF03 *((volatile unsigned int*)(0x42A4228CUL)) -#define bFM3_USB1_HEOF0_EOF04 *((volatile unsigned int*)(0x42A42290UL)) -#define bFM3_USB1_HEOF0_EOF05 *((volatile unsigned int*)(0x42A42294UL)) -#define bFM3_USB1_HEOF0_EOF06 *((volatile unsigned int*)(0x42A42298UL)) -#define bFM3_USB1_HEOF0_EOF07 *((volatile unsigned int*)(0x42A4229CUL)) -#define bFM3_USB1_HEOF1_EOF10 *((volatile unsigned int*)(0x42A422A0UL)) -#define bFM3_USB1_HEOF1_EOF11 *((volatile unsigned int*)(0x42A422A4UL)) -#define bFM3_USB1_HEOF1_EOF12 *((volatile unsigned int*)(0x42A422A8UL)) -#define bFM3_USB1_HEOF1_EOF13 *((volatile unsigned int*)(0x42A422ACUL)) -#define bFM3_USB1_HEOF1_EOF14 *((volatile unsigned int*)(0x42A422B0UL)) -#define bFM3_USB1_HEOF1_EOF15 *((volatile unsigned int*)(0x42A422B4UL)) -#define bFM3_USB1_HFRAME_FRAME0 *((volatile unsigned int*)(0x42A42300UL)) -#define bFM3_USB1_HFRAME_FRAME1 *((volatile unsigned int*)(0x42A42304UL)) -#define bFM3_USB1_HFRAME_FRAME2 *((volatile unsigned int*)(0x42A42308UL)) -#define bFM3_USB1_HFRAME_FRAME3 *((volatile unsigned int*)(0x42A4230CUL)) -#define bFM3_USB1_HFRAME_FRAME4 *((volatile unsigned int*)(0x42A42310UL)) -#define bFM3_USB1_HFRAME_FRAME5 *((volatile unsigned int*)(0x42A42314UL)) -#define bFM3_USB1_HFRAME_FRAME6 *((volatile unsigned int*)(0x42A42318UL)) -#define bFM3_USB1_HFRAME_FRAME7 *((volatile unsigned int*)(0x42A4231CUL)) -#define bFM3_USB1_HFRAME_FRAME8 *((volatile unsigned int*)(0x42A42320UL)) -#define bFM3_USB1_HFRAME_FRAME9 *((volatile unsigned int*)(0x42A42324UL)) -#define bFM3_USB1_HFRAME_FRAME10 *((volatile unsigned int*)(0x42A42328UL)) -#define bFM3_USB1_HFRAME0_FRAME00 *((volatile unsigned int*)(0x42A42300UL)) -#define bFM3_USB1_HFRAME0_FRAME01 *((volatile unsigned int*)(0x42A42304UL)) -#define bFM3_USB1_HFRAME0_FRAME02 *((volatile unsigned int*)(0x42A42308UL)) -#define bFM3_USB1_HFRAME0_FRAME03 *((volatile unsigned int*)(0x42A4230CUL)) -#define bFM3_USB1_HFRAME0_FRAME04 *((volatile unsigned int*)(0x42A42310UL)) -#define bFM3_USB1_HFRAME0_FRAME05 *((volatile unsigned int*)(0x42A42314UL)) -#define bFM3_USB1_HFRAME0_FRAME06 *((volatile unsigned int*)(0x42A42318UL)) -#define bFM3_USB1_HFRAME0_FRAME07 *((volatile unsigned int*)(0x42A4231CUL)) -#define bFM3_USB1_HFRAME1_FRAME10 *((volatile unsigned int*)(0x42A42320UL)) -#define bFM3_USB1_HFRAME1_FRAME11 *((volatile unsigned int*)(0x42A42324UL)) -#define bFM3_USB1_HFRAME1_FRAME12 *((volatile unsigned int*)(0x42A42328UL)) -#define bFM3_USB1_HFRAME1_FRAME13 *((volatile unsigned int*)(0x42A4232CUL)) -#define bFM3_USB1_HTOKEN_ENDPT0 *((volatile unsigned int*)(0x42A42380UL)) -#define bFM3_USB1_HTOKEN_ENDPT1 *((volatile unsigned int*)(0x42A42384UL)) -#define bFM3_USB1_HTOKEN_ENDPT2 *((volatile unsigned int*)(0x42A42388UL)) -#define bFM3_USB1_HTOKEN_ENDPT3 *((volatile unsigned int*)(0x42A4238CUL)) -#define bFM3_USB1_HTOKEN_TKNEN0 *((volatile unsigned int*)(0x42A42390UL)) -#define bFM3_USB1_HTOKEN_TKNEN1 *((volatile unsigned int*)(0x42A42394UL)) -#define bFM3_USB1_HTOKEN_TKNEN2 *((volatile unsigned int*)(0x42A42398UL)) -#define bFM3_USB1_HTOKEN_TGGL *((volatile unsigned int*)(0x42A4239CUL)) -#define bFM3_USB1_UDCC_PWC *((volatile unsigned int*)(0x42A42400UL)) -#define bFM3_USB1_UDCC_RFBK *((volatile unsigned int*)(0x42A42404UL)) -#define bFM3_USB1_UDCC_STALCLREN *((volatile unsigned int*)(0x42A4240CUL)) -#define bFM3_USB1_UDCC_USTP *((volatile unsigned int*)(0x42A42410UL)) -#define bFM3_USB1_UDCC_HCONX *((volatile unsigned int*)(0x42A42414UL)) -#define bFM3_USB1_UDCC_RESUM *((volatile unsigned int*)(0x42A42418UL)) -#define bFM3_USB1_UDCC_RST *((volatile unsigned int*)(0x42A4241CUL)) -#define bFM3_USB1_EP0C_PKS00 *((volatile unsigned int*)(0x42A42480UL)) -#define bFM3_USB1_EP0C_PKS01 *((volatile unsigned int*)(0x42A42484UL)) -#define bFM3_USB1_EP0C_PKS02 *((volatile unsigned int*)(0x42A42488UL)) -#define bFM3_USB1_EP0C_PKS03 *((volatile unsigned int*)(0x42A4248CUL)) -#define bFM3_USB1_EP0C_PKS04 *((volatile unsigned int*)(0x42A42490UL)) -#define bFM3_USB1_EP0C_PKS05 *((volatile unsigned int*)(0x42A42494UL)) -#define bFM3_USB1_EP0C_PKS06 *((volatile unsigned int*)(0x42A42498UL)) -#define bFM3_USB1_EP0C_STAL *((volatile unsigned int*)(0x42A424A4UL)) -#define bFM3_USB1_EP1C_PKS10 *((volatile unsigned int*)(0x42A42500UL)) -#define bFM3_USB1_EP1C_PKS11 *((volatile unsigned int*)(0x42A42504UL)) -#define bFM3_USB1_EP1C_PKS12 *((volatile unsigned int*)(0x42A42508UL)) -#define bFM3_USB1_EP1C_PKS13 *((volatile unsigned int*)(0x42A4250CUL)) -#define bFM3_USB1_EP1C_PKS14 *((volatile unsigned int*)(0x42A42510UL)) -#define bFM3_USB1_EP1C_PKS15 *((volatile unsigned int*)(0x42A42514UL)) -#define bFM3_USB1_EP1C_PKS16 *((volatile unsigned int*)(0x42A42518UL)) -#define bFM3_USB1_EP1C_PKS17 *((volatile unsigned int*)(0x42A4251CUL)) -#define bFM3_USB1_EP1C_PKS18 *((volatile unsigned int*)(0x42A42520UL)) -#define bFM3_USB1_EP1C_STAL *((volatile unsigned int*)(0x42A42524UL)) -#define bFM3_USB1_EP1C_NULE *((volatile unsigned int*)(0x42A42528UL)) -#define bFM3_USB1_EP1C_DMAE *((volatile unsigned int*)(0x42A4252CUL)) -#define bFM3_USB1_EP1C_DIR *((volatile unsigned int*)(0x42A42530UL)) -#define bFM3_USB1_EP1C_TYPE0 *((volatile unsigned int*)(0x42A42534UL)) -#define bFM3_USB1_EP1C_TYPE1 *((volatile unsigned int*)(0x42A42538UL)) -#define bFM3_USB1_EP1C_EPEN *((volatile unsigned int*)(0x42A4253CUL)) -#define bFM3_USB1_EP2C_PKS20 *((volatile unsigned int*)(0x42A42580UL)) -#define bFM3_USB1_EP2C_PKS21 *((volatile unsigned int*)(0x42A42584UL)) -#define bFM3_USB1_EP2C_PKS22 *((volatile unsigned int*)(0x42A42588UL)) -#define bFM3_USB1_EP2C_PKS23 *((volatile unsigned int*)(0x42A4258CUL)) -#define bFM3_USB1_EP2C_PKS24 *((volatile unsigned int*)(0x42A42590UL)) -#define bFM3_USB1_EP2C_PKS25 *((volatile unsigned int*)(0x42A42594UL)) -#define bFM3_USB1_EP2C_PKS26 *((volatile unsigned int*)(0x42A42598UL)) -#define bFM3_USB1_EP2C_STAL *((volatile unsigned int*)(0x42A425A4UL)) -#define bFM3_USB1_EP2C_NULE *((volatile unsigned int*)(0x42A425A8UL)) -#define bFM3_USB1_EP2C_DMAE *((volatile unsigned int*)(0x42A425ACUL)) -#define bFM3_USB1_EP2C_DIR *((volatile unsigned int*)(0x42A425B0UL)) -#define bFM3_USB1_EP2C_TYPE0 *((volatile unsigned int*)(0x42A425B4UL)) -#define bFM3_USB1_EP2C_TYPE1 *((volatile unsigned int*)(0x42A425B8UL)) -#define bFM3_USB1_EP2C_EPEN *((volatile unsigned int*)(0x42A425BCUL)) -#define bFM3_USB1_EP3C_PKS30 *((volatile unsigned int*)(0x42A42600UL)) -#define bFM3_USB1_EP3C_PKS31 *((volatile unsigned int*)(0x42A42604UL)) -#define bFM3_USB1_EP3C_PKS32 *((volatile unsigned int*)(0x42A42608UL)) -#define bFM3_USB1_EP3C_PKS33 *((volatile unsigned int*)(0x42A4260CUL)) -#define bFM3_USB1_EP3C_PKS34 *((volatile unsigned int*)(0x42A42610UL)) -#define bFM3_USB1_EP3C_PKS35 *((volatile unsigned int*)(0x42A42614UL)) -#define bFM3_USB1_EP3C_PKS36 *((volatile unsigned int*)(0x42A42618UL)) -#define bFM3_USB1_EP3C_STAL *((volatile unsigned int*)(0x42A42624UL)) -#define bFM3_USB1_EP3C_NULE *((volatile unsigned int*)(0x42A42628UL)) -#define bFM3_USB1_EP3C_DMAE *((volatile unsigned int*)(0x42A4262CUL)) -#define bFM3_USB1_EP3C_DIR *((volatile unsigned int*)(0x42A42630UL)) -#define bFM3_USB1_EP3C_TYPE0 *((volatile unsigned int*)(0x42A42634UL)) -#define bFM3_USB1_EP3C_TYPE1 *((volatile unsigned int*)(0x42A42638UL)) -#define bFM3_USB1_EP3C_EPEN *((volatile unsigned int*)(0x42A4263CUL)) -#define bFM3_USB1_EP4C_PKS40 *((volatile unsigned int*)(0x42A42680UL)) -#define bFM3_USB1_EP4C_PKS41 *((volatile unsigned int*)(0x42A42684UL)) -#define bFM3_USB1_EP4C_PKS42 *((volatile unsigned int*)(0x42A42688UL)) -#define bFM3_USB1_EP4C_PKS43 *((volatile unsigned int*)(0x42A4268CUL)) -#define bFM3_USB1_EP4C_PKS44 *((volatile unsigned int*)(0x42A42690UL)) -#define bFM3_USB1_EP4C_PKS45 *((volatile unsigned int*)(0x42A42694UL)) -#define bFM3_USB1_EP4C_PKS46 *((volatile unsigned int*)(0x42A42698UL)) -#define bFM3_USB1_EP4C_STAL *((volatile unsigned int*)(0x42A426A4UL)) -#define bFM3_USB1_EP4C_NULE *((volatile unsigned int*)(0x42A426A8UL)) -#define bFM3_USB1_EP4C_DMAE *((volatile unsigned int*)(0x42A426ACUL)) -#define bFM3_USB1_EP4C_DIR *((volatile unsigned int*)(0x42A426B0UL)) -#define bFM3_USB1_EP4C_TYPE0 *((volatile unsigned int*)(0x42A426B4UL)) -#define bFM3_USB1_EP4C_TYPE1 *((volatile unsigned int*)(0x42A426B8UL)) -#define bFM3_USB1_EP4C_EPEN *((volatile unsigned int*)(0x42A426BCUL)) -#define bFM3_USB1_EP5C_PKS50 *((volatile unsigned int*)(0x42A42700UL)) -#define bFM3_USB1_EP5C_PKS51 *((volatile unsigned int*)(0x42A42704UL)) -#define bFM3_USB1_EP5C_PKS52 *((volatile unsigned int*)(0x42A42708UL)) -#define bFM3_USB1_EP5C_PKS53 *((volatile unsigned int*)(0x42A4270CUL)) -#define bFM3_USB1_EP5C_PKS54 *((volatile unsigned int*)(0x42A42710UL)) -#define bFM3_USB1_EP5C_PKS55 *((volatile unsigned int*)(0x42A42714UL)) -#define bFM3_USB1_EP5C_PKS56 *((volatile unsigned int*)(0x42A42718UL)) -#define bFM3_USB1_EP5C_STAL *((volatile unsigned int*)(0x42A42724UL)) -#define bFM3_USB1_EP5C_NULE *((volatile unsigned int*)(0x42A42728UL)) -#define bFM3_USB1_EP5C_DMAE *((volatile unsigned int*)(0x42A4272CUL)) -#define bFM3_USB1_EP5C_DIR *((volatile unsigned int*)(0x42A42730UL)) -#define bFM3_USB1_EP5C_TYPE0 *((volatile unsigned int*)(0x42A42734UL)) -#define bFM3_USB1_EP5C_TYPE1 *((volatile unsigned int*)(0x42A42738UL)) -#define bFM3_USB1_EP5C_EPEN *((volatile unsigned int*)(0x42A4273CUL)) -#define bFM3_USB1_TMSP_TMSP0 *((volatile unsigned int*)(0x42A42780UL)) -#define bFM3_USB1_TMSP_TMSP1 *((volatile unsigned int*)(0x42A42784UL)) -#define bFM3_USB1_TMSP_TMSP2 *((volatile unsigned int*)(0x42A42788UL)) -#define bFM3_USB1_TMSP_TMSP3 *((volatile unsigned int*)(0x42A4278CUL)) -#define bFM3_USB1_TMSP_TMSP4 *((volatile unsigned int*)(0x42A42790UL)) -#define bFM3_USB1_TMSP_TMSP5 *((volatile unsigned int*)(0x42A42794UL)) -#define bFM3_USB1_TMSP_TMSP6 *((volatile unsigned int*)(0x42A42798UL)) -#define bFM3_USB1_TMSP_TMSP7 *((volatile unsigned int*)(0x42A4279CUL)) -#define bFM3_USB1_TMSP_TMSP8 *((volatile unsigned int*)(0x42A427A0UL)) -#define bFM3_USB1_TMSP_TMSP9 *((volatile unsigned int*)(0x42A427A4UL)) -#define bFM3_USB1_TMSP_TMSP10 *((volatile unsigned int*)(0x42A427A8UL)) -#define bFM3_USB1_UDCS_CONF *((volatile unsigned int*)(0x42A42800UL)) -#define bFM3_USB1_UDCS_SETP *((volatile unsigned int*)(0x42A42804UL)) -#define bFM3_USB1_UDCS_WKUP *((volatile unsigned int*)(0x42A42808UL)) -#define bFM3_USB1_UDCS_BRST *((volatile unsigned int*)(0x42A4280CUL)) -#define bFM3_USB1_UDCS_SOF *((volatile unsigned int*)(0x42A42810UL)) -#define bFM3_USB1_UDCS_SUSP *((volatile unsigned int*)(0x42A42814UL)) -#define bFM3_USB1_UDCIE_CONFIE *((volatile unsigned int*)(0x42A42820UL)) -#define bFM3_USB1_UDCIE_CONFN *((volatile unsigned int*)(0x42A42824UL)) -#define bFM3_USB1_UDCIE_WKUPIE *((volatile unsigned int*)(0x42A42828UL)) -#define bFM3_USB1_UDCIE_BRSTIE *((volatile unsigned int*)(0x42A4282CUL)) -#define bFM3_USB1_UDCIE_SOFIE *((volatile unsigned int*)(0x42A42830UL)) -#define bFM3_USB1_UDCIE_SUSPIE *((volatile unsigned int*)(0x42A42834UL)) -#define bFM3_USB1_EP0IS_DRQI *((volatile unsigned int*)(0x42A428A8UL)) -#define bFM3_USB1_EP0IS_DRQIIE *((volatile unsigned int*)(0x42A428B8UL)) -#define bFM3_USB1_EP0IS_BFINI *((volatile unsigned int*)(0x42A428BCUL)) -#define bFM3_USB1_EP0OS_SIZE0 *((volatile unsigned int*)(0x42A42900UL)) -#define bFM3_USB1_EP0OS_SIZE1 *((volatile unsigned int*)(0x42A42904UL)) -#define bFM3_USB1_EP0OS_SIZE2 *((volatile unsigned int*)(0x42A42908UL)) -#define bFM3_USB1_EP0OS_SIZE3 *((volatile unsigned int*)(0x42A4290CUL)) -#define bFM3_USB1_EP0OS_SIZE4 *((volatile unsigned int*)(0x42A42910UL)) -#define bFM3_USB1_EP0OS_SIZE5 *((volatile unsigned int*)(0x42A42914UL)) -#define bFM3_USB1_EP0OS_SIZE6 *((volatile unsigned int*)(0x42A42918UL)) -#define bFM3_USB1_EP0OS_SPK *((volatile unsigned int*)(0x42A42924UL)) -#define bFM3_USB1_EP0OS_DRQO *((volatile unsigned int*)(0x42A42928UL)) -#define bFM3_USB1_EP0OS_SPKIE *((volatile unsigned int*)(0x42A42934UL)) -#define bFM3_USB1_EP0OS_DRQOIE *((volatile unsigned int*)(0x42A42938UL)) -#define bFM3_USB1_EP0OS_BFINI *((volatile unsigned int*)(0x42A4293CUL)) -#define bFM3_USB1_EP1S_SIZE10 *((volatile unsigned int*)(0x42A42980UL)) -#define bFM3_USB1_EP1S_SIZE11 *((volatile unsigned int*)(0x42A42984UL)) -#define bFM3_USB1_EP1S_SIZE12 *((volatile unsigned int*)(0x42A42988UL)) -#define bFM3_USB1_EP1S_SIZE13 *((volatile unsigned int*)(0x42A4298CUL)) -#define bFM3_USB1_EP1S_SIZE14 *((volatile unsigned int*)(0x42A42990UL)) -#define bFM3_USB1_EP1S_SIZE15 *((volatile unsigned int*)(0x42A42994UL)) -#define bFM3_USB1_EP1S_SIZE16 *((volatile unsigned int*)(0x42A42998UL)) -#define bFM3_USB1_EP1S_SIZE17 *((volatile unsigned int*)(0x42A4299CUL)) -#define bFM3_USB1_EP1S_SIZE18 *((volatile unsigned int*)(0x42A429A0UL)) -#define bFM3_USB1_EP1S_SPK *((volatile unsigned int*)(0x42A429A4UL)) -#define bFM3_USB1_EP1S_DRQ *((volatile unsigned int*)(0x42A429A8UL)) -#define bFM3_USB1_EP1S_BUSY *((volatile unsigned int*)(0x42A429ACUL)) -#define bFM3_USB1_EP1S_SPKIE *((volatile unsigned int*)(0x42A429B4UL)) -#define bFM3_USB1_EP1S_DRQIE *((volatile unsigned int*)(0x42A429B8UL)) -#define bFM3_USB1_EP1S_BFINI *((volatile unsigned int*)(0x42A429BCUL)) -#define bFM3_USB1_EP2S_SIZE20 *((volatile unsigned int*)(0x42A42A00UL)) -#define bFM3_USB1_EP2S_SIZE21 *((volatile unsigned int*)(0x42A42A04UL)) -#define bFM3_USB1_EP2S_SIZE22 *((volatile unsigned int*)(0x42A42A08UL)) -#define bFM3_USB1_EP2S_SIZE23 *((volatile unsigned int*)(0x42A42A0CUL)) -#define bFM3_USB1_EP2S_SIZE24 *((volatile unsigned int*)(0x42A42A10UL)) -#define bFM3_USB1_EP2S_SIZE25 *((volatile unsigned int*)(0x42A42A14UL)) -#define bFM3_USB1_EP2S_SIZE26 *((volatile unsigned int*)(0x42A42A18UL)) -#define bFM3_USB1_EP2S_SPK *((volatile unsigned int*)(0x42A42A24UL)) -#define bFM3_USB1_EP2S_DRQ *((volatile unsigned int*)(0x42A42A28UL)) -#define bFM3_USB1_EP2S_BUSY *((volatile unsigned int*)(0x42A42A2CUL)) -#define bFM3_USB1_EP2S_SPKIE *((volatile unsigned int*)(0x42A42A34UL)) -#define bFM3_USB1_EP2S_DRQIE *((volatile unsigned int*)(0x42A42A38UL)) -#define bFM3_USB1_EP2S_BFINI *((volatile unsigned int*)(0x42A42A3CUL)) -#define bFM3_USB1_EP3S_SIZE30 *((volatile unsigned int*)(0x42A42A80UL)) -#define bFM3_USB1_EP3S_SIZE31 *((volatile unsigned int*)(0x42A42A84UL)) -#define bFM3_USB1_EP3S_SIZE32 *((volatile unsigned int*)(0x42A42A88UL)) -#define bFM3_USB1_EP3S_SIZE33 *((volatile unsigned int*)(0x42A42A8CUL)) -#define bFM3_USB1_EP3S_SIZE34 *((volatile unsigned int*)(0x42A42A90UL)) -#define bFM3_USB1_EP3S_SIZE35 *((volatile unsigned int*)(0x42A42A94UL)) -#define bFM3_USB1_EP3S_SIZE36 *((volatile unsigned int*)(0x42A42A98UL)) -#define bFM3_USB1_EP3S_SPK *((volatile unsigned int*)(0x42A42AA4UL)) -#define bFM3_USB1_EP3S_DRQ *((volatile unsigned int*)(0x42A42AA8UL)) -#define bFM3_USB1_EP3S_BUSY *((volatile unsigned int*)(0x42A42AACUL)) -#define bFM3_USB1_EP3S_SPKIE *((volatile unsigned int*)(0x42A42AB4UL)) -#define bFM3_USB1_EP3S_DRQIE *((volatile unsigned int*)(0x42A42AB8UL)) -#define bFM3_USB1_EP3S_BFINI *((volatile unsigned int*)(0x42A42ABCUL)) -#define bFM3_USB1_EP4S_SIZE40 *((volatile unsigned int*)(0x42A42B00UL)) -#define bFM3_USB1_EP4S_SIZE41 *((volatile unsigned int*)(0x42A42B04UL)) -#define bFM3_USB1_EP4S_SIZE42 *((volatile unsigned int*)(0x42A42B08UL)) -#define bFM3_USB1_EP4S_SIZE43 *((volatile unsigned int*)(0x42A42B0CUL)) -#define bFM3_USB1_EP4S_SIZE44 *((volatile unsigned int*)(0x42A42B10UL)) -#define bFM3_USB1_EP4S_SIZE45 *((volatile unsigned int*)(0x42A42B14UL)) -#define bFM3_USB1_EP4S_SIZE46 *((volatile unsigned int*)(0x42A42B18UL)) -#define bFM3_USB1_EP4S_SPK *((volatile unsigned int*)(0x42A42B24UL)) -#define bFM3_USB1_EP4S_DRQ *((volatile unsigned int*)(0x42A42B28UL)) -#define bFM3_USB1_EP4S_BUSY *((volatile unsigned int*)(0x42A42B2CUL)) -#define bFM3_USB1_EP4S_SPKIE *((volatile unsigned int*)(0x42A42B34UL)) -#define bFM3_USB1_EP4S_DRQIE *((volatile unsigned int*)(0x42A42B38UL)) -#define bFM3_USB1_EP4S_BFINI *((volatile unsigned int*)(0x42A42B3CUL)) -#define bFM3_USB1_EP5S_SIZE50 *((volatile unsigned int*)(0x42A42B80UL)) -#define bFM3_USB1_EP5S_SIZE51 *((volatile unsigned int*)(0x42A42B84UL)) -#define bFM3_USB1_EP5S_SIZE52 *((volatile unsigned int*)(0x42A42B88UL)) -#define bFM3_USB1_EP5S_SIZE53 *((volatile unsigned int*)(0x42A42B8CUL)) -#define bFM3_USB1_EP5S_SIZE54 *((volatile unsigned int*)(0x42A42B90UL)) -#define bFM3_USB1_EP5S_SIZE55 *((volatile unsigned int*)(0x42A42B94UL)) -#define bFM3_USB1_EP5S_SIZE56 *((volatile unsigned int*)(0x42A42B98UL)) -#define bFM3_USB1_EP5S_SPK *((volatile unsigned int*)(0x42A42BA4UL)) -#define bFM3_USB1_EP5S_DRQ *((volatile unsigned int*)(0x42A42BA8UL)) -#define bFM3_USB1_EP5S_BUSY *((volatile unsigned int*)(0x42A42BACUL)) -#define bFM3_USB1_EP5S_SPKIE *((volatile unsigned int*)(0x42A42BB4UL)) -#define bFM3_USB1_EP5S_DRQIE *((volatile unsigned int*)(0x42A42BB8UL)) -#define bFM3_USB1_EP5S_BFINI *((volatile unsigned int*)(0x42A42BBCUL)) - -/* DMA controller */ -#define bFM3_DMAC_DMACR_DH0 *((volatile unsigned int*)(0x42C00060UL)) -#define bFM3_DMAC_DMACR_DH1 *((volatile unsigned int*)(0x42C00064UL)) -#define bFM3_DMAC_DMACR_DH2 *((volatile unsigned int*)(0x42C00068UL)) -#define bFM3_DMAC_DMACR_DH3 *((volatile unsigned int*)(0x42C0006CUL)) -#define bFM3_DMAC_DMACR_PR *((volatile unsigned int*)(0x42C00070UL)) -#define bFM3_DMAC_DMACR_DS *((volatile unsigned int*)(0x42C00078UL)) -#define bFM3_DMAC_DMACR_DE *((volatile unsigned int*)(0x42C0007CUL)) -#define bFM3_DMAC_DMACA0_TC0 *((volatile unsigned int*)(0x42C00200UL)) -#define bFM3_DMAC_DMACA0_TC1 *((volatile unsigned int*)(0x42C00204UL)) -#define bFM3_DMAC_DMACA0_TC2 *((volatile unsigned int*)(0x42C00208UL)) -#define bFM3_DMAC_DMACA0_TC3 *((volatile unsigned int*)(0x42C0020CUL)) -#define bFM3_DMAC_DMACA0_TC4 *((volatile unsigned int*)(0x42C00210UL)) -#define bFM3_DMAC_DMACA0_TC5 *((volatile unsigned int*)(0x42C00214UL)) -#define bFM3_DMAC_DMACA0_TC6 *((volatile unsigned int*)(0x42C00218UL)) -#define bFM3_DMAC_DMACA0_TC7 *((volatile unsigned int*)(0x42C0021CUL)) -#define bFM3_DMAC_DMACA0_TC8 *((volatile unsigned int*)(0x42C00220UL)) -#define bFM3_DMAC_DMACA0_TC9 *((volatile unsigned int*)(0x42C00224UL)) -#define bFM3_DMAC_DMACA0_TC10 *((volatile unsigned int*)(0x42C00228UL)) -#define bFM3_DMAC_DMACA0_TC11 *((volatile unsigned int*)(0x42C0022CUL)) -#define bFM3_DMAC_DMACA0_TC12 *((volatile unsigned int*)(0x42C00230UL)) -#define bFM3_DMAC_DMACA0_TC13 *((volatile unsigned int*)(0x42C00234UL)) -#define bFM3_DMAC_DMACA0_TC14 *((volatile unsigned int*)(0x42C00238UL)) -#define bFM3_DMAC_DMACA0_TC15 *((volatile unsigned int*)(0x42C0023CUL)) -#define bFM3_DMAC_DMACA0_BC0 *((volatile unsigned int*)(0x42C00240UL)) -#define bFM3_DMAC_DMACA0_BC1 *((volatile unsigned int*)(0x42C00244UL)) -#define bFM3_DMAC_DMACA0_BC2 *((volatile unsigned int*)(0x42C00248UL)) -#define bFM3_DMAC_DMACA0_BC3 *((volatile unsigned int*)(0x42C0024CUL)) -#define bFM3_DMAC_DMACA0_IS0 *((volatile unsigned int*)(0x42C0025CUL)) -#define bFM3_DMAC_DMACA0_IS1 *((volatile unsigned int*)(0x42C00260UL)) -#define bFM3_DMAC_DMACA0_IS2 *((volatile unsigned int*)(0x42C00264UL)) -#define bFM3_DMAC_DMACA0_IS3 *((volatile unsigned int*)(0x42C00268UL)) -#define bFM3_DMAC_DMACA0_IS4 *((volatile unsigned int*)(0x42C0026CUL)) -#define bFM3_DMAC_DMACA0_IS5 *((volatile unsigned int*)(0x42C00270UL)) -#define bFM3_DMAC_DMACA0_ST *((volatile unsigned int*)(0x42C00274UL)) -#define bFM3_DMAC_DMACA0_PB *((volatile unsigned int*)(0x42C00278UL)) -#define bFM3_DMAC_DMACA0_EB *((volatile unsigned int*)(0x42C0027CUL)) -#define bFM3_DMAC_DMACB0_EM *((volatile unsigned int*)(0x42C00280UL)) -#define bFM3_DMAC_DMACB0_SS0 *((volatile unsigned int*)(0x42C002C0UL)) -#define bFM3_DMAC_DMACB0_SS1 *((volatile unsigned int*)(0x42C002C4UL)) -#define bFM3_DMAC_DMACB0_SS2 *((volatile unsigned int*)(0x42C002C8UL)) -#define bFM3_DMAC_DMACB0_CI *((volatile unsigned int*)(0x42C002CCUL)) -#define bFM3_DMAC_DMACB0_EI *((volatile unsigned int*)(0x42C002D0UL)) -#define bFM3_DMAC_DMACB0_RD *((volatile unsigned int*)(0x42C002D4UL)) -#define bFM3_DMAC_DMACB0_RS *((volatile unsigned int*)(0x42C002D8UL)) -#define bFM3_DMAC_DMACB0_RC *((volatile unsigned int*)(0x42C002DCUL)) -#define bFM3_DMAC_DMACB0_FD *((volatile unsigned int*)(0x42C002E0UL)) -#define bFM3_DMAC_DMACB0_FS *((volatile unsigned int*)(0x42C002E4UL)) -#define bFM3_DMAC_DMACB0_TW0 *((volatile unsigned int*)(0x42C002E8UL)) -#define bFM3_DMAC_DMACB0_TW1 *((volatile unsigned int*)(0x42C002ECUL)) -#define bFM3_DMAC_DMACB0_MS0 *((volatile unsigned int*)(0x42C002F0UL)) -#define bFM3_DMAC_DMACB0_MS1 *((volatile unsigned int*)(0x42C002F4UL)) -#define bFM3_DMAC_DMACA1_TC0 *((volatile unsigned int*)(0x42C00400UL)) -#define bFM3_DMAC_DMACA1_TC1 *((volatile unsigned int*)(0x42C00404UL)) -#define bFM3_DMAC_DMACA1_TC2 *((volatile unsigned int*)(0x42C00408UL)) -#define bFM3_DMAC_DMACA1_TC3 *((volatile unsigned int*)(0x42C0040CUL)) -#define bFM3_DMAC_DMACA1_TC4 *((volatile unsigned int*)(0x42C00410UL)) -#define bFM3_DMAC_DMACA1_TC5 *((volatile unsigned int*)(0x42C00414UL)) -#define bFM3_DMAC_DMACA1_TC6 *((volatile unsigned int*)(0x42C00418UL)) -#define bFM3_DMAC_DMACA1_TC7 *((volatile unsigned int*)(0x42C0041CUL)) -#define bFM3_DMAC_DMACA1_TC8 *((volatile unsigned int*)(0x42C00420UL)) -#define bFM3_DMAC_DMACA1_TC9 *((volatile unsigned int*)(0x42C00424UL)) -#define bFM3_DMAC_DMACA1_TC10 *((volatile unsigned int*)(0x42C00428UL)) -#define bFM3_DMAC_DMACA1_TC11 *((volatile unsigned int*)(0x42C0042CUL)) -#define bFM3_DMAC_DMACA1_TC12 *((volatile unsigned int*)(0x42C00430UL)) -#define bFM3_DMAC_DMACA1_TC13 *((volatile unsigned int*)(0x42C00434UL)) -#define bFM3_DMAC_DMACA1_TC14 *((volatile unsigned int*)(0x42C00438UL)) -#define bFM3_DMAC_DMACA1_TC15 *((volatile unsigned int*)(0x42C0043CUL)) -#define bFM3_DMAC_DMACA1_BC0 *((volatile unsigned int*)(0x42C00440UL)) -#define bFM3_DMAC_DMACA1_BC1 *((volatile unsigned int*)(0x42C00444UL)) -#define bFM3_DMAC_DMACA1_BC2 *((volatile unsigned int*)(0x42C00448UL)) -#define bFM3_DMAC_DMACA1_BC3 *((volatile unsigned int*)(0x42C0044CUL)) -#define bFM3_DMAC_DMACA1_IS0 *((volatile unsigned int*)(0x42C0045CUL)) -#define bFM3_DMAC_DMACA1_IS1 *((volatile unsigned int*)(0x42C00460UL)) -#define bFM3_DMAC_DMACA1_IS2 *((volatile unsigned int*)(0x42C00464UL)) -#define bFM3_DMAC_DMACA1_IS3 *((volatile unsigned int*)(0x42C00468UL)) -#define bFM3_DMAC_DMACA1_IS4 *((volatile unsigned int*)(0x42C0046CUL)) -#define bFM3_DMAC_DMACA1_IS5 *((volatile unsigned int*)(0x42C00470UL)) -#define bFM3_DMAC_DMACA1_ST *((volatile unsigned int*)(0x42C00474UL)) -#define bFM3_DMAC_DMACA1_PB *((volatile unsigned int*)(0x42C00478UL)) -#define bFM3_DMAC_DMACA1_EB *((volatile unsigned int*)(0x42C0047CUL)) -#define bFM3_DMAC_DMACB1_EM *((volatile unsigned int*)(0x42C00480UL)) -#define bFM3_DMAC_DMACB1_SS0 *((volatile unsigned int*)(0x42C004C0UL)) -#define bFM3_DMAC_DMACB1_SS1 *((volatile unsigned int*)(0x42C004C4UL)) -#define bFM3_DMAC_DMACB1_SS2 *((volatile unsigned int*)(0x42C004C8UL)) -#define bFM3_DMAC_DMACB1_CI *((volatile unsigned int*)(0x42C004CCUL)) -#define bFM3_DMAC_DMACB1_EI *((volatile unsigned int*)(0x42C004D0UL)) -#define bFM3_DMAC_DMACB1_RD *((volatile unsigned int*)(0x42C004D4UL)) -#define bFM3_DMAC_DMACB1_RS *((volatile unsigned int*)(0x42C004D8UL)) -#define bFM3_DMAC_DMACB1_RC *((volatile unsigned int*)(0x42C004DCUL)) -#define bFM3_DMAC_DMACB1_FD *((volatile unsigned int*)(0x42C004E0UL)) -#define bFM3_DMAC_DMACB1_FS *((volatile unsigned int*)(0x42C004E4UL)) -#define bFM3_DMAC_DMACB1_TW0 *((volatile unsigned int*)(0x42C004E8UL)) -#define bFM3_DMAC_DMACB1_TW1 *((volatile unsigned int*)(0x42C004ECUL)) -#define bFM3_DMAC_DMACB1_MS0 *((volatile unsigned int*)(0x42C004F0UL)) -#define bFM3_DMAC_DMACB1_MS1 *((volatile unsigned int*)(0x42C004F4UL)) -#define bFM3_DMAC_DMACA2_TC0 *((volatile unsigned int*)(0x42C00600UL)) -#define bFM3_DMAC_DMACA2_TC1 *((volatile unsigned int*)(0x42C00604UL)) -#define bFM3_DMAC_DMACA2_TC2 *((volatile unsigned int*)(0x42C00608UL)) -#define bFM3_DMAC_DMACA2_TC3 *((volatile unsigned int*)(0x42C0060CUL)) -#define bFM3_DMAC_DMACA2_TC4 *((volatile unsigned int*)(0x42C00610UL)) -#define bFM3_DMAC_DMACA2_TC5 *((volatile unsigned int*)(0x42C00614UL)) -#define bFM3_DMAC_DMACA2_TC6 *((volatile unsigned int*)(0x42C00618UL)) -#define bFM3_DMAC_DMACA2_TC7 *((volatile unsigned int*)(0x42C0061CUL)) -#define bFM3_DMAC_DMACA2_TC8 *((volatile unsigned int*)(0x42C00620UL)) -#define bFM3_DMAC_DMACA2_TC9 *((volatile unsigned int*)(0x42C00624UL)) -#define bFM3_DMAC_DMACA2_TC10 *((volatile unsigned int*)(0x42C00628UL)) -#define bFM3_DMAC_DMACA2_TC11 *((volatile unsigned int*)(0x42C0062CUL)) -#define bFM3_DMAC_DMACA2_TC12 *((volatile unsigned int*)(0x42C00630UL)) -#define bFM3_DMAC_DMACA2_TC13 *((volatile unsigned int*)(0x42C00634UL)) -#define bFM3_DMAC_DMACA2_TC14 *((volatile unsigned int*)(0x42C00638UL)) -#define bFM3_DMAC_DMACA2_TC15 *((volatile unsigned int*)(0x42C0063CUL)) -#define bFM3_DMAC_DMACA2_BC0 *((volatile unsigned int*)(0x42C00640UL)) -#define bFM3_DMAC_DMACA2_BC1 *((volatile unsigned int*)(0x42C00644UL)) -#define bFM3_DMAC_DMACA2_BC2 *((volatile unsigned int*)(0x42C00648UL)) -#define bFM3_DMAC_DMACA2_BC3 *((volatile unsigned int*)(0x42C0064CUL)) -#define bFM3_DMAC_DMACA2_IS0 *((volatile unsigned int*)(0x42C0065CUL)) -#define bFM3_DMAC_DMACA2_IS1 *((volatile unsigned int*)(0x42C00660UL)) -#define bFM3_DMAC_DMACA2_IS2 *((volatile unsigned int*)(0x42C00664UL)) -#define bFM3_DMAC_DMACA2_IS3 *((volatile unsigned int*)(0x42C00668UL)) -#define bFM3_DMAC_DMACA2_IS4 *((volatile unsigned int*)(0x42C0066CUL)) -#define bFM3_DMAC_DMACA2_IS5 *((volatile unsigned int*)(0x42C00670UL)) -#define bFM3_DMAC_DMACA2_ST *((volatile unsigned int*)(0x42C00674UL)) -#define bFM3_DMAC_DMACA2_PB *((volatile unsigned int*)(0x42C00678UL)) -#define bFM3_DMAC_DMACA2_EB *((volatile unsigned int*)(0x42C0067CUL)) -#define bFM3_DMAC_DMACB2_EM *((volatile unsigned int*)(0x42C00680UL)) -#define bFM3_DMAC_DMACB2_SS0 *((volatile unsigned int*)(0x42C006C0UL)) -#define bFM3_DMAC_DMACB2_SS1 *((volatile unsigned int*)(0x42C006C4UL)) -#define bFM3_DMAC_DMACB2_SS2 *((volatile unsigned int*)(0x42C006C8UL)) -#define bFM3_DMAC_DMACB2_CI *((volatile unsigned int*)(0x42C006CCUL)) -#define bFM3_DMAC_DMACB2_EI *((volatile unsigned int*)(0x42C006D0UL)) -#define bFM3_DMAC_DMACB2_RD *((volatile unsigned int*)(0x42C006D4UL)) -#define bFM3_DMAC_DMACB2_RS *((volatile unsigned int*)(0x42C006D8UL)) -#define bFM3_DMAC_DMACB2_RC *((volatile unsigned int*)(0x42C006DCUL)) -#define bFM3_DMAC_DMACB2_FD *((volatile unsigned int*)(0x42C006E0UL)) -#define bFM3_DMAC_DMACB2_FS *((volatile unsigned int*)(0x42C006E4UL)) -#define bFM3_DMAC_DMACB2_TW0 *((volatile unsigned int*)(0x42C006E8UL)) -#define bFM3_DMAC_DMACB2_TW1 *((volatile unsigned int*)(0x42C006ECUL)) -#define bFM3_DMAC_DMACB2_MS0 *((volatile unsigned int*)(0x42C006F0UL)) -#define bFM3_DMAC_DMACB2_MS1 *((volatile unsigned int*)(0x42C006F4UL)) -#define bFM3_DMAC_DMACA3_TC0 *((volatile unsigned int*)(0x42C00800UL)) -#define bFM3_DMAC_DMACA3_TC1 *((volatile unsigned int*)(0x42C00804UL)) -#define bFM3_DMAC_DMACA3_TC2 *((volatile unsigned int*)(0x42C00808UL)) -#define bFM3_DMAC_DMACA3_TC3 *((volatile unsigned int*)(0x42C0080CUL)) -#define bFM3_DMAC_DMACA3_TC4 *((volatile unsigned int*)(0x42C00810UL)) -#define bFM3_DMAC_DMACA3_TC5 *((volatile unsigned int*)(0x42C00814UL)) -#define bFM3_DMAC_DMACA3_TC6 *((volatile unsigned int*)(0x42C00818UL)) -#define bFM3_DMAC_DMACA3_TC7 *((volatile unsigned int*)(0x42C0081CUL)) -#define bFM3_DMAC_DMACA3_TC8 *((volatile unsigned int*)(0x42C00820UL)) -#define bFM3_DMAC_DMACA3_TC9 *((volatile unsigned int*)(0x42C00824UL)) -#define bFM3_DMAC_DMACA3_TC10 *((volatile unsigned int*)(0x42C00828UL)) -#define bFM3_DMAC_DMACA3_TC11 *((volatile unsigned int*)(0x42C0082CUL)) -#define bFM3_DMAC_DMACA3_TC12 *((volatile unsigned int*)(0x42C00830UL)) -#define bFM3_DMAC_DMACA3_TC13 *((volatile unsigned int*)(0x42C00834UL)) -#define bFM3_DMAC_DMACA3_TC14 *((volatile unsigned int*)(0x42C00838UL)) -#define bFM3_DMAC_DMACA3_TC15 *((volatile unsigned int*)(0x42C0083CUL)) -#define bFM3_DMAC_DMACA3_BC0 *((volatile unsigned int*)(0x42C00840UL)) -#define bFM3_DMAC_DMACA3_BC1 *((volatile unsigned int*)(0x42C00844UL)) -#define bFM3_DMAC_DMACA3_BC2 *((volatile unsigned int*)(0x42C00848UL)) -#define bFM3_DMAC_DMACA3_BC3 *((volatile unsigned int*)(0x42C0084CUL)) -#define bFM3_DMAC_DMACA3_IS0 *((volatile unsigned int*)(0x42C0085CUL)) -#define bFM3_DMAC_DMACA3_IS1 *((volatile unsigned int*)(0x42C00860UL)) -#define bFM3_DMAC_DMACA3_IS2 *((volatile unsigned int*)(0x42C00864UL)) -#define bFM3_DMAC_DMACA3_IS3 *((volatile unsigned int*)(0x42C00868UL)) -#define bFM3_DMAC_DMACA3_IS4 *((volatile unsigned int*)(0x42C0086CUL)) -#define bFM3_DMAC_DMACA3_IS5 *((volatile unsigned int*)(0x42C00870UL)) -#define bFM3_DMAC_DMACA3_ST *((volatile unsigned int*)(0x42C00874UL)) -#define bFM3_DMAC_DMACA3_PB *((volatile unsigned int*)(0x42C00878UL)) -#define bFM3_DMAC_DMACA3_EB *((volatile unsigned int*)(0x42C0087CUL)) -#define bFM3_DMAC_DMACB3_EM *((volatile unsigned int*)(0x42C00880UL)) -#define bFM3_DMAC_DMACB3_SS0 *((volatile unsigned int*)(0x42C008C0UL)) -#define bFM3_DMAC_DMACB3_SS1 *((volatile unsigned int*)(0x42C008C4UL)) -#define bFM3_DMAC_DMACB3_SS2 *((volatile unsigned int*)(0x42C008C8UL)) -#define bFM3_DMAC_DMACB3_CI *((volatile unsigned int*)(0x42C008CCUL)) -#define bFM3_DMAC_DMACB3_EI *((volatile unsigned int*)(0x42C008D0UL)) -#define bFM3_DMAC_DMACB3_RD *((volatile unsigned int*)(0x42C008D4UL)) -#define bFM3_DMAC_DMACB3_RS *((volatile unsigned int*)(0x42C008D8UL)) -#define bFM3_DMAC_DMACB3_RC *((volatile unsigned int*)(0x42C008DCUL)) -#define bFM3_DMAC_DMACB3_FD *((volatile unsigned int*)(0x42C008E0UL)) -#define bFM3_DMAC_DMACB3_FS *((volatile unsigned int*)(0x42C008E4UL)) -#define bFM3_DMAC_DMACB3_TW0 *((volatile unsigned int*)(0x42C008E8UL)) -#define bFM3_DMAC_DMACB3_TW1 *((volatile unsigned int*)(0x42C008ECUL)) -#define bFM3_DMAC_DMACB3_MS0 *((volatile unsigned int*)(0x42C008F0UL)) -#define bFM3_DMAC_DMACB3_MS1 *((volatile unsigned int*)(0x42C008F4UL)) -#define bFM3_DMAC_DMACA4_TC0 *((volatile unsigned int*)(0x42C00A00UL)) -#define bFM3_DMAC_DMACA4_TC1 *((volatile unsigned int*)(0x42C00A04UL)) -#define bFM3_DMAC_DMACA4_TC2 *((volatile unsigned int*)(0x42C00A08UL)) -#define bFM3_DMAC_DMACA4_TC3 *((volatile unsigned int*)(0x42C00A0CUL)) -#define bFM3_DMAC_DMACA4_TC4 *((volatile unsigned int*)(0x42C00A10UL)) -#define bFM3_DMAC_DMACA4_TC5 *((volatile unsigned int*)(0x42C00A14UL)) -#define bFM3_DMAC_DMACA4_TC6 *((volatile unsigned int*)(0x42C00A18UL)) -#define bFM3_DMAC_DMACA4_TC7 *((volatile unsigned int*)(0x42C00A1CUL)) -#define bFM3_DMAC_DMACA4_TC8 *((volatile unsigned int*)(0x42C00A20UL)) -#define bFM3_DMAC_DMACA4_TC9 *((volatile unsigned int*)(0x42C00A24UL)) -#define bFM3_DMAC_DMACA4_TC10 *((volatile unsigned int*)(0x42C00A28UL)) -#define bFM3_DMAC_DMACA4_TC11 *((volatile unsigned int*)(0x42C00A2CUL)) -#define bFM3_DMAC_DMACA4_TC12 *((volatile unsigned int*)(0x42C00A30UL)) -#define bFM3_DMAC_DMACA4_TC13 *((volatile unsigned int*)(0x42C00A34UL)) -#define bFM3_DMAC_DMACA4_TC14 *((volatile unsigned int*)(0x42C00A38UL)) -#define bFM3_DMAC_DMACA4_TC15 *((volatile unsigned int*)(0x42C00A3CUL)) -#define bFM3_DMAC_DMACA4_BC0 *((volatile unsigned int*)(0x42C00A40UL)) -#define bFM3_DMAC_DMACA4_BC1 *((volatile unsigned int*)(0x42C00A44UL)) -#define bFM3_DMAC_DMACA4_BC2 *((volatile unsigned int*)(0x42C00A48UL)) -#define bFM3_DMAC_DMACA4_BC3 *((volatile unsigned int*)(0x42C00A4CUL)) -#define bFM3_DMAC_DMACA4_IS0 *((volatile unsigned int*)(0x42C00A5CUL)) -#define bFM3_DMAC_DMACA4_IS1 *((volatile unsigned int*)(0x42C00A60UL)) -#define bFM3_DMAC_DMACA4_IS2 *((volatile unsigned int*)(0x42C00A64UL)) -#define bFM3_DMAC_DMACA4_IS3 *((volatile unsigned int*)(0x42C00A68UL)) -#define bFM3_DMAC_DMACA4_IS4 *((volatile unsigned int*)(0x42C00A6CUL)) -#define bFM3_DMAC_DMACA4_IS5 *((volatile unsigned int*)(0x42C00A70UL)) -#define bFM3_DMAC_DMACA4_ST *((volatile unsigned int*)(0x42C00A74UL)) -#define bFM3_DMAC_DMACA4_PB *((volatile unsigned int*)(0x42C00A78UL)) -#define bFM3_DMAC_DMACA4_EB *((volatile unsigned int*)(0x42C00A7CUL)) -#define bFM3_DMAC_DMACB4_EM *((volatile unsigned int*)(0x42C00A80UL)) -#define bFM3_DMAC_DMACB4_SS0 *((volatile unsigned int*)(0x42C00AC0UL)) -#define bFM3_DMAC_DMACB4_SS1 *((volatile unsigned int*)(0x42C00AC4UL)) -#define bFM3_DMAC_DMACB4_SS2 *((volatile unsigned int*)(0x42C00AC8UL)) -#define bFM3_DMAC_DMACB4_CI *((volatile unsigned int*)(0x42C00ACCUL)) -#define bFM3_DMAC_DMACB4_EI *((volatile unsigned int*)(0x42C00AD0UL)) -#define bFM3_DMAC_DMACB4_RD *((volatile unsigned int*)(0x42C00AD4UL)) -#define bFM3_DMAC_DMACB4_RS *((volatile unsigned int*)(0x42C00AD8UL)) -#define bFM3_DMAC_DMACB4_RC *((volatile unsigned int*)(0x42C00ADCUL)) -#define bFM3_DMAC_DMACB4_FD *((volatile unsigned int*)(0x42C00AE0UL)) -#define bFM3_DMAC_DMACB4_FS *((volatile unsigned int*)(0x42C00AE4UL)) -#define bFM3_DMAC_DMACB4_TW0 *((volatile unsigned int*)(0x42C00AE8UL)) -#define bFM3_DMAC_DMACB4_TW1 *((volatile unsigned int*)(0x42C00AECUL)) -#define bFM3_DMAC_DMACB4_MS0 *((volatile unsigned int*)(0x42C00AF0UL)) -#define bFM3_DMAC_DMACB4_MS1 *((volatile unsigned int*)(0x42C00AF4UL)) -#define bFM3_DMAC_DMACA5_TC0 *((volatile unsigned int*)(0x42C00C00UL)) -#define bFM3_DMAC_DMACA5_TC1 *((volatile unsigned int*)(0x42C00C04UL)) -#define bFM3_DMAC_DMACA5_TC2 *((volatile unsigned int*)(0x42C00C08UL)) -#define bFM3_DMAC_DMACA5_TC3 *((volatile unsigned int*)(0x42C00C0CUL)) -#define bFM3_DMAC_DMACA5_TC4 *((volatile unsigned int*)(0x42C00C10UL)) -#define bFM3_DMAC_DMACA5_TC5 *((volatile unsigned int*)(0x42C00C14UL)) -#define bFM3_DMAC_DMACA5_TC6 *((volatile unsigned int*)(0x42C00C18UL)) -#define bFM3_DMAC_DMACA5_TC7 *((volatile unsigned int*)(0x42C00C1CUL)) -#define bFM3_DMAC_DMACA5_TC8 *((volatile unsigned int*)(0x42C00C20UL)) -#define bFM3_DMAC_DMACA5_TC9 *((volatile unsigned int*)(0x42C00C24UL)) -#define bFM3_DMAC_DMACA5_TC10 *((volatile unsigned int*)(0x42C00C28UL)) -#define bFM3_DMAC_DMACA5_TC11 *((volatile unsigned int*)(0x42C00C2CUL)) -#define bFM3_DMAC_DMACA5_TC12 *((volatile unsigned int*)(0x42C00C30UL)) -#define bFM3_DMAC_DMACA5_TC13 *((volatile unsigned int*)(0x42C00C34UL)) -#define bFM3_DMAC_DMACA5_TC14 *((volatile unsigned int*)(0x42C00C38UL)) -#define bFM3_DMAC_DMACA5_TC15 *((volatile unsigned int*)(0x42C00C3CUL)) -#define bFM3_DMAC_DMACA5_BC0 *((volatile unsigned int*)(0x42C00C40UL)) -#define bFM3_DMAC_DMACA5_BC1 *((volatile unsigned int*)(0x42C00C44UL)) -#define bFM3_DMAC_DMACA5_BC2 *((volatile unsigned int*)(0x42C00C48UL)) -#define bFM3_DMAC_DMACA5_BC3 *((volatile unsigned int*)(0x42C00C4CUL)) -#define bFM3_DMAC_DMACA5_IS0 *((volatile unsigned int*)(0x42C00C5CUL)) -#define bFM3_DMAC_DMACA5_IS1 *((volatile unsigned int*)(0x42C00C60UL)) -#define bFM3_DMAC_DMACA5_IS2 *((volatile unsigned int*)(0x42C00C64UL)) -#define bFM3_DMAC_DMACA5_IS3 *((volatile unsigned int*)(0x42C00C68UL)) -#define bFM3_DMAC_DMACA5_IS4 *((volatile unsigned int*)(0x42C00C6CUL)) -#define bFM3_DMAC_DMACA5_IS5 *((volatile unsigned int*)(0x42C00C70UL)) -#define bFM3_DMAC_DMACA5_ST *((volatile unsigned int*)(0x42C00C74UL)) -#define bFM3_DMAC_DMACA5_PB *((volatile unsigned int*)(0x42C00C78UL)) -#define bFM3_DMAC_DMACA5_EB *((volatile unsigned int*)(0x42C00C7CUL)) -#define bFM3_DMAC_DMACB5_EM *((volatile unsigned int*)(0x42C00C80UL)) -#define bFM3_DMAC_DMACB5_SS0 *((volatile unsigned int*)(0x42C00CC0UL)) -#define bFM3_DMAC_DMACB5_SS1 *((volatile unsigned int*)(0x42C00CC4UL)) -#define bFM3_DMAC_DMACB5_SS2 *((volatile unsigned int*)(0x42C00CC8UL)) -#define bFM3_DMAC_DMACB5_CI *((volatile unsigned int*)(0x42C00CCCUL)) -#define bFM3_DMAC_DMACB5_EI *((volatile unsigned int*)(0x42C00CD0UL)) -#define bFM3_DMAC_DMACB5_RD *((volatile unsigned int*)(0x42C00CD4UL)) -#define bFM3_DMAC_DMACB5_RS *((volatile unsigned int*)(0x42C00CD8UL)) -#define bFM3_DMAC_DMACB5_RC *((volatile unsigned int*)(0x42C00CDCUL)) -#define bFM3_DMAC_DMACB5_FD *((volatile unsigned int*)(0x42C00CE0UL)) -#define bFM3_DMAC_DMACB5_FS *((volatile unsigned int*)(0x42C00CE4UL)) -#define bFM3_DMAC_DMACB5_TW0 *((volatile unsigned int*)(0x42C00CE8UL)) -#define bFM3_DMAC_DMACB5_TW1 *((volatile unsigned int*)(0x42C00CECUL)) -#define bFM3_DMAC_DMACB5_MS0 *((volatile unsigned int*)(0x42C00CF0UL)) -#define bFM3_DMAC_DMACB5_MS1 *((volatile unsigned int*)(0x42C00CF4UL)) -#define bFM3_DMAC_DMACA6_TC0 *((volatile unsigned int*)(0x42C00E00UL)) -#define bFM3_DMAC_DMACA6_TC1 *((volatile unsigned int*)(0x42C00E04UL)) -#define bFM3_DMAC_DMACA6_TC2 *((volatile unsigned int*)(0x42C00E08UL)) -#define bFM3_DMAC_DMACA6_TC3 *((volatile unsigned int*)(0x42C00E0CUL)) -#define bFM3_DMAC_DMACA6_TC4 *((volatile unsigned int*)(0x42C00E10UL)) -#define bFM3_DMAC_DMACA6_TC5 *((volatile unsigned int*)(0x42C00E14UL)) -#define bFM3_DMAC_DMACA6_TC6 *((volatile unsigned int*)(0x42C00E18UL)) -#define bFM3_DMAC_DMACA6_TC7 *((volatile unsigned int*)(0x42C00E1CUL)) -#define bFM3_DMAC_DMACA6_TC8 *((volatile unsigned int*)(0x42C00E20UL)) -#define bFM3_DMAC_DMACA6_TC9 *((volatile unsigned int*)(0x42C00E24UL)) -#define bFM3_DMAC_DMACA6_TC10 *((volatile unsigned int*)(0x42C00E28UL)) -#define bFM3_DMAC_DMACA6_TC11 *((volatile unsigned int*)(0x42C00E2CUL)) -#define bFM3_DMAC_DMACA6_TC12 *((volatile unsigned int*)(0x42C00E30UL)) -#define bFM3_DMAC_DMACA6_TC13 *((volatile unsigned int*)(0x42C00E34UL)) -#define bFM3_DMAC_DMACA6_TC14 *((volatile unsigned int*)(0x42C00E38UL)) -#define bFM3_DMAC_DMACA6_TC15 *((volatile unsigned int*)(0x42C00E3CUL)) -#define bFM3_DMAC_DMACA6_BC0 *((volatile unsigned int*)(0x42C00E40UL)) -#define bFM3_DMAC_DMACA6_BC1 *((volatile unsigned int*)(0x42C00E44UL)) -#define bFM3_DMAC_DMACA6_BC2 *((volatile unsigned int*)(0x42C00E48UL)) -#define bFM3_DMAC_DMACA6_BC3 *((volatile unsigned int*)(0x42C00E4CUL)) -#define bFM3_DMAC_DMACA6_IS0 *((volatile unsigned int*)(0x42C00E5CUL)) -#define bFM3_DMAC_DMACA6_IS1 *((volatile unsigned int*)(0x42C00E60UL)) -#define bFM3_DMAC_DMACA6_IS2 *((volatile unsigned int*)(0x42C00E64UL)) -#define bFM3_DMAC_DMACA6_IS3 *((volatile unsigned int*)(0x42C00E68UL)) -#define bFM3_DMAC_DMACA6_IS4 *((volatile unsigned int*)(0x42C00E6CUL)) -#define bFM3_DMAC_DMACA6_IS5 *((volatile unsigned int*)(0x42C00E70UL)) -#define bFM3_DMAC_DMACA6_ST *((volatile unsigned int*)(0x42C00E74UL)) -#define bFM3_DMAC_DMACA6_PB *((volatile unsigned int*)(0x42C00E78UL)) -#define bFM3_DMAC_DMACA6_EB *((volatile unsigned int*)(0x42C00E7CUL)) -#define bFM3_DMAC_DMACB6_EM *((volatile unsigned int*)(0x42C00E80UL)) -#define bFM3_DMAC_DMACB6_SS0 *((volatile unsigned int*)(0x42C00EC0UL)) -#define bFM3_DMAC_DMACB6_SS1 *((volatile unsigned int*)(0x42C00EC4UL)) -#define bFM3_DMAC_DMACB6_SS2 *((volatile unsigned int*)(0x42C00EC8UL)) -#define bFM3_DMAC_DMACB6_CI *((volatile unsigned int*)(0x42C00ECCUL)) -#define bFM3_DMAC_DMACB6_EI *((volatile unsigned int*)(0x42C00ED0UL)) -#define bFM3_DMAC_DMACB6_RD *((volatile unsigned int*)(0x42C00ED4UL)) -#define bFM3_DMAC_DMACB6_RS *((volatile unsigned int*)(0x42C00ED8UL)) -#define bFM3_DMAC_DMACB6_RC *((volatile unsigned int*)(0x42C00EDCUL)) -#define bFM3_DMAC_DMACB6_FD *((volatile unsigned int*)(0x42C00EE0UL)) -#define bFM3_DMAC_DMACB6_FS *((volatile unsigned int*)(0x42C00EE4UL)) -#define bFM3_DMAC_DMACB6_TW0 *((volatile unsigned int*)(0x42C00EE8UL)) -#define bFM3_DMAC_DMACB6_TW1 *((volatile unsigned int*)(0x42C00EECUL)) -#define bFM3_DMAC_DMACB6_MS0 *((volatile unsigned int*)(0x42C00EF0UL)) -#define bFM3_DMAC_DMACB6_MS1 *((volatile unsigned int*)(0x42C00EF4UL)) -#define bFM3_DMAC_DMACA7_TC0 *((volatile unsigned int*)(0x42C01000UL)) -#define bFM3_DMAC_DMACA7_TC1 *((volatile unsigned int*)(0x42C01004UL)) -#define bFM3_DMAC_DMACA7_TC2 *((volatile unsigned int*)(0x42C01008UL)) -#define bFM3_DMAC_DMACA7_TC3 *((volatile unsigned int*)(0x42C0100CUL)) -#define bFM3_DMAC_DMACA7_TC4 *((volatile unsigned int*)(0x42C01010UL)) -#define bFM3_DMAC_DMACA7_TC5 *((volatile unsigned int*)(0x42C01014UL)) -#define bFM3_DMAC_DMACA7_TC6 *((volatile unsigned int*)(0x42C01018UL)) -#define bFM3_DMAC_DMACA7_TC7 *((volatile unsigned int*)(0x42C0101CUL)) -#define bFM3_DMAC_DMACA7_TC8 *((volatile unsigned int*)(0x42C01020UL)) -#define bFM3_DMAC_DMACA7_TC9 *((volatile unsigned int*)(0x42C01024UL)) -#define bFM3_DMAC_DMACA7_TC10 *((volatile unsigned int*)(0x42C01028UL)) -#define bFM3_DMAC_DMACA7_TC11 *((volatile unsigned int*)(0x42C0102CUL)) -#define bFM3_DMAC_DMACA7_TC12 *((volatile unsigned int*)(0x42C01030UL)) -#define bFM3_DMAC_DMACA7_TC13 *((volatile unsigned int*)(0x42C01034UL)) -#define bFM3_DMAC_DMACA7_TC14 *((volatile unsigned int*)(0x42C01038UL)) -#define bFM3_DMAC_DMACA7_TC15 *((volatile unsigned int*)(0x42C0103CUL)) -#define bFM3_DMAC_DMACA7_BC0 *((volatile unsigned int*)(0x42C01040UL)) -#define bFM3_DMAC_DMACA7_BC1 *((volatile unsigned int*)(0x42C01044UL)) -#define bFM3_DMAC_DMACA7_BC2 *((volatile unsigned int*)(0x42C01048UL)) -#define bFM3_DMAC_DMACA7_BC3 *((volatile unsigned int*)(0x42C0104CUL)) -#define bFM3_DMAC_DMACA7_IS0 *((volatile unsigned int*)(0x42C0105CUL)) -#define bFM3_DMAC_DMACA7_IS1 *((volatile unsigned int*)(0x42C01060UL)) -#define bFM3_DMAC_DMACA7_IS2 *((volatile unsigned int*)(0x42C01064UL)) -#define bFM3_DMAC_DMACA7_IS3 *((volatile unsigned int*)(0x42C01068UL)) -#define bFM3_DMAC_DMACA7_IS4 *((volatile unsigned int*)(0x42C0106CUL)) -#define bFM3_DMAC_DMACA7_IS5 *((volatile unsigned int*)(0x42C01070UL)) -#define bFM3_DMAC_DMACA7_ST *((volatile unsigned int*)(0x42C01074UL)) -#define bFM3_DMAC_DMACA7_PB *((volatile unsigned int*)(0x42C01078UL)) -#define bFM3_DMAC_DMACA7_EB *((volatile unsigned int*)(0x42C0107CUL)) -#define bFM3_DMAC_DMACB7_EM *((volatile unsigned int*)(0x42C01080UL)) -#define bFM3_DMAC_DMACB7_SS0 *((volatile unsigned int*)(0x42C010C0UL)) -#define bFM3_DMAC_DMACB7_SS1 *((volatile unsigned int*)(0x42C010C4UL)) -#define bFM3_DMAC_DMACB7_SS2 *((volatile unsigned int*)(0x42C010C8UL)) -#define bFM3_DMAC_DMACB7_CI *((volatile unsigned int*)(0x42C010CCUL)) -#define bFM3_DMAC_DMACB7_EI *((volatile unsigned int*)(0x42C010D0UL)) -#define bFM3_DMAC_DMACB7_RD *((volatile unsigned int*)(0x42C010D4UL)) -#define bFM3_DMAC_DMACB7_RS *((volatile unsigned int*)(0x42C010D8UL)) -#define bFM3_DMAC_DMACB7_RC *((volatile unsigned int*)(0x42C010DCUL)) -#define bFM3_DMAC_DMACB7_FD *((volatile unsigned int*)(0x42C010E0UL)) -#define bFM3_DMAC_DMACB7_FS *((volatile unsigned int*)(0x42C010E4UL)) -#define bFM3_DMAC_DMACB7_TW0 *((volatile unsigned int*)(0x42C010E8UL)) -#define bFM3_DMAC_DMACB7_TW1 *((volatile unsigned int*)(0x42C010ECUL)) -#define bFM3_DMAC_DMACB7_MS0 *((volatile unsigned int*)(0x42C010F0UL)) -#define bFM3_DMAC_DMACB7_MS1 *((volatile unsigned int*)(0x42C010F4UL)) - -/* ETHERNET-MAC0 registers*/ -#define bFM3_ETHERNET_MAC0_MCR_RE *((volatile unsigned int*)(0x42C80008UL)) -#define bFM3_ETHERNET_MAC0_MCR_TE *((volatile unsigned int*)(0x42C8000CUL)) -#define bFM3_ETHERNET_MAC0_MCR_DC *((volatile unsigned int*)(0x42C80010UL)) -#define bFM3_ETHERNET_MAC0_MCR_BL0 *((volatile unsigned int*)(0x42C80014UL)) -#define bFM3_ETHERNET_MAC0_MCR_BL1 *((volatile unsigned int*)(0x42C80018UL)) -#define bFM3_ETHERNET_MAC0_MCR_ACS *((volatile unsigned int*)(0x42C8001CUL)) -#define bFM3_ETHERNET_MAC0_MCR_LUD *((volatile unsigned int*)(0x42C80020UL)) -#define bFM3_ETHERNET_MAC0_MCR_DR *((volatile unsigned int*)(0x42C80024UL)) -#define bFM3_ETHERNET_MAC0_MCR_IPC *((volatile unsigned int*)(0x42C80028UL)) -#define bFM3_ETHERNET_MAC0_MCR_DM *((volatile unsigned int*)(0x42C8002CUL)) -#define bFM3_ETHERNET_MAC0_MCR_LM *((volatile unsigned int*)(0x42C80030UL)) -#define bFM3_ETHERNET_MAC0_MCR_DO *((volatile unsigned int*)(0x42C80034UL)) -#define bFM3_ETHERNET_MAC0_MCR_FES *((volatile unsigned int*)(0x42C80038UL)) -#define bFM3_ETHERNET_MAC0_MCR_PS *((volatile unsigned int*)(0x42C8003CUL)) -#define bFM3_ETHERNET_MAC0_MCR_DCRS *((volatile unsigned int*)(0x42C80040UL)) -#define bFM3_ETHERNET_MAC0_MCR_IFG0 *((volatile unsigned int*)(0x42C80044UL)) -#define bFM3_ETHERNET_MAC0_MCR_IFG1 *((volatile unsigned int*)(0x42C80048UL)) -#define bFM3_ETHERNET_MAC0_MCR_IFG2 *((volatile unsigned int*)(0x42C8004CUL)) -#define bFM3_ETHERNET_MAC0_MCR_JE *((volatile unsigned int*)(0x42C80050UL)) -#define bFM3_ETHERNET_MAC0_MCR_BE *((volatile unsigned int*)(0x42C80054UL)) -#define bFM3_ETHERNET_MAC0_MCR_JD *((volatile unsigned int*)(0x42C80058UL)) -#define bFM3_ETHERNET_MAC0_MCR_WD *((volatile unsigned int*)(0x42C8005CUL)) -#define bFM3_ETHERNET_MAC0_MCR_TC *((volatile unsigned int*)(0x42C80060UL)) -#define bFM3_ETHERNET_MAC0_MCR_CST *((volatile unsigned int*)(0x42C80064UL)) -#define bFM3_ETHERNET_MAC0_MFFR_PR *((volatile unsigned int*)(0x42C80080UL)) -#define bFM3_ETHERNET_MAC0_MFFR_HUC *((volatile unsigned int*)(0x42C80084UL)) -#define bFM3_ETHERNET_MAC0_MFFR_HMC *((volatile unsigned int*)(0x42C80088UL)) -#define bFM3_ETHERNET_MAC0_MFFR_DAIF *((volatile unsigned int*)(0x42C8008CUL)) -#define bFM3_ETHERNET_MAC0_MFFR_PM *((volatile unsigned int*)(0x42C80090UL)) -#define bFM3_ETHERNET_MAC0_MFFR_DB *((volatile unsigned int*)(0x42C80094UL)) -#define bFM3_ETHERNET_MAC0_MFFR_PCF0 *((volatile unsigned int*)(0x42C80098UL)) -#define bFM3_ETHERNET_MAC0_MFFR_PCF1 *((volatile unsigned int*)(0x42C8009CUL)) -#define bFM3_ETHERNET_MAC0_MFFR_SAIF *((volatile unsigned int*)(0x42C800A0UL)) -#define bFM3_ETHERNET_MAC0_MFFR_SAF *((volatile unsigned int*)(0x42C800A4UL)) -#define bFM3_ETHERNET_MAC0_MFFR_HPF *((volatile unsigned int*)(0x42C800A8UL)) -#define bFM3_ETHERNET_MAC0_MFFR_RA *((volatile unsigned int*)(0x42C800FCUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH0 *((volatile unsigned int*)(0x42C80100UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH1 *((volatile unsigned int*)(0x42C80104UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH2 *((volatile unsigned int*)(0x42C80108UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH3 *((volatile unsigned int*)(0x42C8010CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH4 *((volatile unsigned int*)(0x42C80110UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH5 *((volatile unsigned int*)(0x42C80114UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH6 *((volatile unsigned int*)(0x42C80118UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH7 *((volatile unsigned int*)(0x42C8011CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH8 *((volatile unsigned int*)(0x42C80120UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH9 *((volatile unsigned int*)(0x42C80124UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH10 *((volatile unsigned int*)(0x42C80128UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH11 *((volatile unsigned int*)(0x42C8012CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH12 *((volatile unsigned int*)(0x42C80130UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH13 *((volatile unsigned int*)(0x42C80134UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH14 *((volatile unsigned int*)(0x42C80138UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH15 *((volatile unsigned int*)(0x42C8013CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH16 *((volatile unsigned int*)(0x42C80140UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH17 *((volatile unsigned int*)(0x42C80144UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH18 *((volatile unsigned int*)(0x42C80148UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH19 *((volatile unsigned int*)(0x42C8014CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH20 *((volatile unsigned int*)(0x42C80150UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH21 *((volatile unsigned int*)(0x42C80154UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH22 *((volatile unsigned int*)(0x42C80158UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH23 *((volatile unsigned int*)(0x42C8015CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH24 *((volatile unsigned int*)(0x42C80160UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH25 *((volatile unsigned int*)(0x42C80164UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH26 *((volatile unsigned int*)(0x42C80168UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH27 *((volatile unsigned int*)(0x42C8016CUL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH28 *((volatile unsigned int*)(0x42C80170UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH29 *((volatile unsigned int*)(0x42C80174UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH30 *((volatile unsigned int*)(0x42C80178UL)) -#define bFM3_ETHERNET_MAC0_MHTRH_HTH31 *((volatile unsigned int*)(0x42C8017CUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL0 *((volatile unsigned int*)(0x42C80180UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL1 *((volatile unsigned int*)(0x42C80184UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL2 *((volatile unsigned int*)(0x42C80188UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL3 *((volatile unsigned int*)(0x42C8018CUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL4 *((volatile unsigned int*)(0x42C80190UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL5 *((volatile unsigned int*)(0x42C80194UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL6 *((volatile unsigned int*)(0x42C80198UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL7 *((volatile unsigned int*)(0x42C8019CUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL8 *((volatile unsigned int*)(0x42C801A0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL9 *((volatile unsigned int*)(0x42C801A4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL10 *((volatile unsigned int*)(0x42C801A8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL11 *((volatile unsigned int*)(0x42C801ACUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL12 *((volatile unsigned int*)(0x42C801B0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL13 *((volatile unsigned int*)(0x42C801B4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL14 *((volatile unsigned int*)(0x42C801B8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL15 *((volatile unsigned int*)(0x42C801BCUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL16 *((volatile unsigned int*)(0x42C801C0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL17 *((volatile unsigned int*)(0x42C801C4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL18 *((volatile unsigned int*)(0x42C801C8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL19 *((volatile unsigned int*)(0x42C801CCUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL20 *((volatile unsigned int*)(0x42C801D0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL21 *((volatile unsigned int*)(0x42C801D4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL22 *((volatile unsigned int*)(0x42C801D8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL23 *((volatile unsigned int*)(0x42C801DCUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL24 *((volatile unsigned int*)(0x42C801E0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL25 *((volatile unsigned int*)(0x42C801E4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL26 *((volatile unsigned int*)(0x42C801E8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL27 *((volatile unsigned int*)(0x42C801ECUL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL28 *((volatile unsigned int*)(0x42C801F0UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL29 *((volatile unsigned int*)(0x42C801F4UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL30 *((volatile unsigned int*)(0x42C801F8UL)) -#define bFM3_ETHERNET_MAC0_MHTRL_HTL31 *((volatile unsigned int*)(0x42C801FCUL)) -#define bFM3_ETHERNET_MAC0_GAR_GB *((volatile unsigned int*)(0x42C80200UL)) -#define bFM3_ETHERNET_MAC0_GAR_GW *((volatile unsigned int*)(0x42C80204UL)) -#define bFM3_ETHERNET_MAC0_GAR_CR0 *((volatile unsigned int*)(0x42C80208UL)) -#define bFM3_ETHERNET_MAC0_GAR_CR1 *((volatile unsigned int*)(0x42C8020CUL)) -#define bFM3_ETHERNET_MAC0_GAR_CR2 *((volatile unsigned int*)(0x42C80210UL)) -#define bFM3_ETHERNET_MAC0_GAR_CR3 *((volatile unsigned int*)(0x42C80214UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR0 *((volatile unsigned int*)(0x42C80218UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR1 *((volatile unsigned int*)(0x42C8021CUL)) -#define bFM3_ETHERNET_MAC0_GAR_GR2 *((volatile unsigned int*)(0x42C80220UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR3 *((volatile unsigned int*)(0x42C80224UL)) -#define bFM3_ETHERNET_MAC0_GAR_GR4 *((volatile unsigned int*)(0x42C80228UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA0 *((volatile unsigned int*)(0x42C8022CUL)) -#define bFM3_ETHERNET_MAC0_GAR_PA1 *((volatile unsigned int*)(0x42C80230UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA2 *((volatile unsigned int*)(0x42C80234UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA3 *((volatile unsigned int*)(0x42C80238UL)) -#define bFM3_ETHERNET_MAC0_GAR_PA4 *((volatile unsigned int*)(0x42C8023CUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD0 *((volatile unsigned int*)(0x42C80280UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD1 *((volatile unsigned int*)(0x42C80284UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD2 *((volatile unsigned int*)(0x42C80288UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD3 *((volatile unsigned int*)(0x42C8028CUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD4 *((volatile unsigned int*)(0x42C80290UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD5 *((volatile unsigned int*)(0x42C80294UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD6 *((volatile unsigned int*)(0x42C80298UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD7 *((volatile unsigned int*)(0x42C8029CUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD8 *((volatile unsigned int*)(0x42C802A0UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD9 *((volatile unsigned int*)(0x42C802A4UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD10 *((volatile unsigned int*)(0x42C802A8UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD11 *((volatile unsigned int*)(0x42C802ACUL)) -#define bFM3_ETHERNET_MAC0_GDR_GD12 *((volatile unsigned int*)(0x42C802B0UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD13 *((volatile unsigned int*)(0x42C802B4UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD14 *((volatile unsigned int*)(0x42C802B8UL)) -#define bFM3_ETHERNET_MAC0_GDR_GD15 *((volatile unsigned int*)(0x42C802BCUL)) -#define bFM3_ETHERNET_MAC0_FCR_FCB_BPA *((volatile unsigned int*)(0x42C80300UL)) -#define bFM3_ETHERNET_MAC0_FCR_TFE *((volatile unsigned int*)(0x42C80304UL)) -#define bFM3_ETHERNET_MAC0_FCR_RFE *((volatile unsigned int*)(0x42C80308UL)) -#define bFM3_ETHERNET_MAC0_FCR_UP *((volatile unsigned int*)(0x42C8030CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PLT0 *((volatile unsigned int*)(0x42C80310UL)) -#define bFM3_ETHERNET_MAC0_FCR_PLT1 *((volatile unsigned int*)(0x42C80314UL)) -#define bFM3_ETHERNET_MAC0_FCR_DZPQ *((volatile unsigned int*)(0x42C8031CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT0 *((volatile unsigned int*)(0x42C80340UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT1 *((volatile unsigned int*)(0x42C80344UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT2 *((volatile unsigned int*)(0x42C80348UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT3 *((volatile unsigned int*)(0x42C8034CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT4 *((volatile unsigned int*)(0x42C80350UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT5 *((volatile unsigned int*)(0x42C80354UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT6 *((volatile unsigned int*)(0x42C80358UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT7 *((volatile unsigned int*)(0x42C8035CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT8 *((volatile unsigned int*)(0x42C80360UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT9 *((volatile unsigned int*)(0x42C80364UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT10 *((volatile unsigned int*)(0x42C80368UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT11 *((volatile unsigned int*)(0x42C8036CUL)) -#define bFM3_ETHERNET_MAC0_FCR_PT12 *((volatile unsigned int*)(0x42C80370UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT13 *((volatile unsigned int*)(0x42C80374UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT14 *((volatile unsigned int*)(0x42C80378UL)) -#define bFM3_ETHERNET_MAC0_FCR_PT15 *((volatile unsigned int*)(0x42C8037CUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL0 *((volatile unsigned int*)(0x42C80380UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL1 *((volatile unsigned int*)(0x42C80384UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL2 *((volatile unsigned int*)(0x42C80388UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL3 *((volatile unsigned int*)(0x42C8038CUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL4 *((volatile unsigned int*)(0x42C80390UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL5 *((volatile unsigned int*)(0x42C80394UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL6 *((volatile unsigned int*)(0x42C80398UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL7 *((volatile unsigned int*)(0x42C8039CUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL8 *((volatile unsigned int*)(0x42C803A0UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL9 *((volatile unsigned int*)(0x42C803A4UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL10 *((volatile unsigned int*)(0x42C803A8UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL11 *((volatile unsigned int*)(0x42C803ACUL)) -#define bFM3_ETHERNET_MAC0_VTR_VL12 *((volatile unsigned int*)(0x42C803B0UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL13 *((volatile unsigned int*)(0x42C803B4UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL14 *((volatile unsigned int*)(0x42C803B8UL)) -#define bFM3_ETHERNET_MAC0_VTR_VL15 *((volatile unsigned int*)(0x42C803BCUL)) -#define bFM3_ETHERNET_MAC0_VTR_ETV *((volatile unsigned int*)(0x42C803C0UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42C80500UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42C80504UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42C80508UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42C8050CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42C80510UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42C80514UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42C80518UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42C8051CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42C80520UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42C80524UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42C80528UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42C8052CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42C80530UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42C80534UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42C80538UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42C8053CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42C80540UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42C80544UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42C80548UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42C8054CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42C80550UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42C80554UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42C80558UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42C8055CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42C80560UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42C80564UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42C80568UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42C8056CUL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42C80570UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42C80574UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42C80578UL)) -#define bFM3_ETHERNET_MAC0_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42C8057CUL)) -#define bFM3_ETHERNET_MAC0_PMTR_PD *((volatile unsigned int*)(0x42C80580UL)) -#define bFM3_ETHERNET_MAC0_PMTR_MPE *((volatile unsigned int*)(0x42C80584UL)) -#define bFM3_ETHERNET_MAC0_PMTR_WFE *((volatile unsigned int*)(0x42C80588UL)) -#define bFM3_ETHERNET_MAC0_PMTR_MPR *((volatile unsigned int*)(0x42C80594UL)) -#define bFM3_ETHERNET_MAC0_PMTR_WPR *((volatile unsigned int*)(0x42C80598UL)) -#define bFM3_ETHERNET_MAC0_PMTR_GU *((volatile unsigned int*)(0x42C805A4UL)) -#define bFM3_ETHERNET_MAC0_PMTR_RWFFRPR *((volatile unsigned int*)(0x42C805FCUL)) -#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEN *((volatile unsigned int*)(0x42C80600UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_TLPIEX *((volatile unsigned int*)(0x42C80604UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEN *((volatile unsigned int*)(0x42C80608UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_RLPIEX *((volatile unsigned int*)(0x42C8060CUL)) -#define bFM3_ETHERNET_MAC0_LPICSR_TLPIST *((volatile unsigned int*)(0x42C80620UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_RLPIST *((volatile unsigned int*)(0x42C80624UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_LPIEN *((volatile unsigned int*)(0x42C80640UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_PLS *((volatile unsigned int*)(0x42C80644UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_PLSEN *((volatile unsigned int*)(0x42C80648UL)) -#define bFM3_ETHERNET_MAC0_LPICSR_LPITXA *((volatile unsigned int*)(0x42C8064CUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT0 *((volatile unsigned int*)(0x42C80680UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT1 *((volatile unsigned int*)(0x42C80684UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT2 *((volatile unsigned int*)(0x42C80688UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT3 *((volatile unsigned int*)(0x42C8068CUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT4 *((volatile unsigned int*)(0x42C80690UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT5 *((volatile unsigned int*)(0x42C80694UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT6 *((volatile unsigned int*)(0x42C80698UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT7 *((volatile unsigned int*)(0x42C8069CUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT8 *((volatile unsigned int*)(0x42C806A0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT9 *((volatile unsigned int*)(0x42C806A4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT10 *((volatile unsigned int*)(0x42C806A8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT11 *((volatile unsigned int*)(0x42C806ACUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT12 *((volatile unsigned int*)(0x42C806B0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT13 *((volatile unsigned int*)(0x42C806B4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT14 *((volatile unsigned int*)(0x42C806B8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_TWT15 *((volatile unsigned int*)(0x42C806BCUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT0 *((volatile unsigned int*)(0x42C806C0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT1 *((volatile unsigned int*)(0x42C806C4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT2 *((volatile unsigned int*)(0x42C806C8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT3 *((volatile unsigned int*)(0x42C806CCUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT4 *((volatile unsigned int*)(0x42C806D0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT5 *((volatile unsigned int*)(0x42C806D4UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT6 *((volatile unsigned int*)(0x42C806D8UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT7 *((volatile unsigned int*)(0x42C806DCUL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT8 *((volatile unsigned int*)(0x42C806E0UL)) -#define bFM3_ETHERNET_MAC0_LPITCR_LIT9 *((volatile unsigned int*)(0x42C806E4UL)) -#define bFM3_ETHERNET_MAC0_ISR_RGIS *((volatile unsigned int*)(0x42C80700UL)) -#define bFM3_ETHERNET_MAC0_ISR_PIS *((volatile unsigned int*)(0x42C8070CUL)) -#define bFM3_ETHERNET_MAC0_ISR_MIS *((volatile unsigned int*)(0x42C80710UL)) -#define bFM3_ETHERNET_MAC0_ISR_RIS *((volatile unsigned int*)(0x42C80714UL)) -#define bFM3_ETHERNET_MAC0_ISR_TIS *((volatile unsigned int*)(0x42C80718UL)) -#define bFM3_ETHERNET_MAC0_ISR_COIS *((volatile unsigned int*)(0x42C8071CUL)) -#define bFM3_ETHERNET_MAC0_ISR_TSIS *((volatile unsigned int*)(0x42C80724UL)) -#define bFM3_ETHERNET_MAC0_ISR_LPIIS *((volatile unsigned int*)(0x42C80728UL)) -#define bFM3_ETHERNET_MAC0_IMR_RGIM *((volatile unsigned int*)(0x42C80780UL)) -#define bFM3_ETHERNET_MAC0_IMR_PIM *((volatile unsigned int*)(0x42C8078CUL)) -#define bFM3_ETHERNET_MAC0_IMR_TSIM *((volatile unsigned int*)(0x42C80794UL)) -#define bFM3_ETHERNET_MAC0_IMR_LPIIM *((volatile unsigned int*)(0x42C80798UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A32 *((volatile unsigned int*)(0x42C80800UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A33 *((volatile unsigned int*)(0x42C80804UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A34 *((volatile unsigned int*)(0x42C80808UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A35 *((volatile unsigned int*)(0x42C8080CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A36 *((volatile unsigned int*)(0x42C80810UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A37 *((volatile unsigned int*)(0x42C80814UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A38 *((volatile unsigned int*)(0x42C80818UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A39 *((volatile unsigned int*)(0x42C8081CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A40 *((volatile unsigned int*)(0x42C80820UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A41 *((volatile unsigned int*)(0x42C80824UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A42 *((volatile unsigned int*)(0x42C80828UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A43 *((volatile unsigned int*)(0x42C8082CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A44 *((volatile unsigned int*)(0x42C80830UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A45 *((volatile unsigned int*)(0x42C80834UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A46 *((volatile unsigned int*)(0x42C80838UL)) -#define bFM3_ETHERNET_MAC0_MAR0H_A47 *((volatile unsigned int*)(0x42C8083CUL)) -#define bFM3_ETHERNET_MAC0_MAR0H_MO *((volatile unsigned int*)(0x42C8087CUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A0 *((volatile unsigned int*)(0x42C80880UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A1 *((volatile unsigned int*)(0x42C80884UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A2 *((volatile unsigned int*)(0x42C80888UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A3 *((volatile unsigned int*)(0x42C8088CUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A4 *((volatile unsigned int*)(0x42C80890UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A5 *((volatile unsigned int*)(0x42C80894UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A6 *((volatile unsigned int*)(0x42C80898UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A7 *((volatile unsigned int*)(0x42C8089CUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A8 *((volatile unsigned int*)(0x42C808A0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A9 *((volatile unsigned int*)(0x42C808A4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A10 *((volatile unsigned int*)(0x42C808A8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A11 *((volatile unsigned int*)(0x42C808ACUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A12 *((volatile unsigned int*)(0x42C808B0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A13 *((volatile unsigned int*)(0x42C808B4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A14 *((volatile unsigned int*)(0x42C808B8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A15 *((volatile unsigned int*)(0x42C808BCUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A16 *((volatile unsigned int*)(0x42C808C0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A17 *((volatile unsigned int*)(0x42C808C4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A18 *((volatile unsigned int*)(0x42C808C8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A19 *((volatile unsigned int*)(0x42C808CCUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A20 *((volatile unsigned int*)(0x42C808D0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A21 *((volatile unsigned int*)(0x42C808D4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A22 *((volatile unsigned int*)(0x42C808D8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A23 *((volatile unsigned int*)(0x42C808DCUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A24 *((volatile unsigned int*)(0x42C808E0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A25 *((volatile unsigned int*)(0x42C808E4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A26 *((volatile unsigned int*)(0x42C808E8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A27 *((volatile unsigned int*)(0x42C808ECUL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A28 *((volatile unsigned int*)(0x42C808F0UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A29 *((volatile unsigned int*)(0x42C808F4UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A30 *((volatile unsigned int*)(0x42C808F8UL)) -#define bFM3_ETHERNET_MAC0_MAR0L_A31 *((volatile unsigned int*)(0x42C808FCUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A32 *((volatile unsigned int*)(0x42C80900UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A33 *((volatile unsigned int*)(0x42C80904UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A34 *((volatile unsigned int*)(0x42C80908UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A35 *((volatile unsigned int*)(0x42C8090CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A36 *((volatile unsigned int*)(0x42C80910UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A37 *((volatile unsigned int*)(0x42C80914UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A38 *((volatile unsigned int*)(0x42C80918UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A39 *((volatile unsigned int*)(0x42C8091CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A40 *((volatile unsigned int*)(0x42C80920UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A41 *((volatile unsigned int*)(0x42C80924UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A42 *((volatile unsigned int*)(0x42C80928UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A43 *((volatile unsigned int*)(0x42C8092CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A44 *((volatile unsigned int*)(0x42C80930UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A45 *((volatile unsigned int*)(0x42C80934UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A46 *((volatile unsigned int*)(0x42C80938UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_A47 *((volatile unsigned int*)(0x42C8093CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC0 *((volatile unsigned int*)(0x42C80960UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC1 *((volatile unsigned int*)(0x42C80964UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC2 *((volatile unsigned int*)(0x42C80968UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC3 *((volatile unsigned int*)(0x42C8096CUL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC4 *((volatile unsigned int*)(0x42C80970UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_MBC5 *((volatile unsigned int*)(0x42C80974UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_SA *((volatile unsigned int*)(0x42C80978UL)) -#define bFM3_ETHERNET_MAC0_MAR1H_AE *((volatile unsigned int*)(0x42C8097CUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A0 *((volatile unsigned int*)(0x42C80980UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A1 *((volatile unsigned int*)(0x42C80984UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A2 *((volatile unsigned int*)(0x42C80988UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A3 *((volatile unsigned int*)(0x42C8098CUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A4 *((volatile unsigned int*)(0x42C80990UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A5 *((volatile unsigned int*)(0x42C80994UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A6 *((volatile unsigned int*)(0x42C80998UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A7 *((volatile unsigned int*)(0x42C8099CUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A8 *((volatile unsigned int*)(0x42C809A0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A9 *((volatile unsigned int*)(0x42C809A4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A10 *((volatile unsigned int*)(0x42C809A8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A11 *((volatile unsigned int*)(0x42C809ACUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A12 *((volatile unsigned int*)(0x42C809B0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A13 *((volatile unsigned int*)(0x42C809B4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A14 *((volatile unsigned int*)(0x42C809B8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A15 *((volatile unsigned int*)(0x42C809BCUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A16 *((volatile unsigned int*)(0x42C809C0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A17 *((volatile unsigned int*)(0x42C809C4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A18 *((volatile unsigned int*)(0x42C809C8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A19 *((volatile unsigned int*)(0x42C809CCUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A20 *((volatile unsigned int*)(0x42C809D0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A21 *((volatile unsigned int*)(0x42C809D4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A22 *((volatile unsigned int*)(0x42C809D8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A23 *((volatile unsigned int*)(0x42C809DCUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A24 *((volatile unsigned int*)(0x42C809E0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A25 *((volatile unsigned int*)(0x42C809E4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A26 *((volatile unsigned int*)(0x42C809E8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A27 *((volatile unsigned int*)(0x42C809ECUL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A28 *((volatile unsigned int*)(0x42C809F0UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A29 *((volatile unsigned int*)(0x42C809F4UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A30 *((volatile unsigned int*)(0x42C809F8UL)) -#define bFM3_ETHERNET_MAC0_MAR1L_A31 *((volatile unsigned int*)(0x42C809FCUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A32 *((volatile unsigned int*)(0x42C80A00UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A33 *((volatile unsigned int*)(0x42C80A04UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A34 *((volatile unsigned int*)(0x42C80A08UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A35 *((volatile unsigned int*)(0x42C80A0CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A36 *((volatile unsigned int*)(0x42C80A10UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A37 *((volatile unsigned int*)(0x42C80A14UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A38 *((volatile unsigned int*)(0x42C80A18UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A39 *((volatile unsigned int*)(0x42C80A1CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A40 *((volatile unsigned int*)(0x42C80A20UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A41 *((volatile unsigned int*)(0x42C80A24UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A42 *((volatile unsigned int*)(0x42C80A28UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A43 *((volatile unsigned int*)(0x42C80A2CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A44 *((volatile unsigned int*)(0x42C80A30UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A45 *((volatile unsigned int*)(0x42C80A34UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A46 *((volatile unsigned int*)(0x42C80A38UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_A47 *((volatile unsigned int*)(0x42C80A3CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC0 *((volatile unsigned int*)(0x42C80A60UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC1 *((volatile unsigned int*)(0x42C80A64UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC2 *((volatile unsigned int*)(0x42C80A68UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC3 *((volatile unsigned int*)(0x42C80A6CUL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC4 *((volatile unsigned int*)(0x42C80A70UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_MBC5 *((volatile unsigned int*)(0x42C80A74UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_SA *((volatile unsigned int*)(0x42C80A78UL)) -#define bFM3_ETHERNET_MAC0_MAR2H_AE *((volatile unsigned int*)(0x42C80A7CUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A0 *((volatile unsigned int*)(0x42C80A80UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A1 *((volatile unsigned int*)(0x42C80A84UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A2 *((volatile unsigned int*)(0x42C80A88UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A3 *((volatile unsigned int*)(0x42C80A8CUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A4 *((volatile unsigned int*)(0x42C80A90UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A5 *((volatile unsigned int*)(0x42C80A94UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A6 *((volatile unsigned int*)(0x42C80A98UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A7 *((volatile unsigned int*)(0x42C80A9CUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A8 *((volatile unsigned int*)(0x42C80AA0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A9 *((volatile unsigned int*)(0x42C80AA4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A10 *((volatile unsigned int*)(0x42C80AA8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A11 *((volatile unsigned int*)(0x42C80AACUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A12 *((volatile unsigned int*)(0x42C80AB0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A13 *((volatile unsigned int*)(0x42C80AB4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A14 *((volatile unsigned int*)(0x42C80AB8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A15 *((volatile unsigned int*)(0x42C80ABCUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A16 *((volatile unsigned int*)(0x42C80AC0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A17 *((volatile unsigned int*)(0x42C80AC4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A18 *((volatile unsigned int*)(0x42C80AC8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A19 *((volatile unsigned int*)(0x42C80ACCUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A20 *((volatile unsigned int*)(0x42C80AD0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A21 *((volatile unsigned int*)(0x42C80AD4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A22 *((volatile unsigned int*)(0x42C80AD8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A23 *((volatile unsigned int*)(0x42C80ADCUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A24 *((volatile unsigned int*)(0x42C80AE0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A25 *((volatile unsigned int*)(0x42C80AE4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A26 *((volatile unsigned int*)(0x42C80AE8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A27 *((volatile unsigned int*)(0x42C80AECUL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A28 *((volatile unsigned int*)(0x42C80AF0UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A29 *((volatile unsigned int*)(0x42C80AF4UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A30 *((volatile unsigned int*)(0x42C80AF8UL)) -#define bFM3_ETHERNET_MAC0_MAR2L_A31 *((volatile unsigned int*)(0x42C80AFCUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A32 *((volatile unsigned int*)(0x42C80B00UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A33 *((volatile unsigned int*)(0x42C80B04UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A34 *((volatile unsigned int*)(0x42C80B08UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A35 *((volatile unsigned int*)(0x42C80B0CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A36 *((volatile unsigned int*)(0x42C80B10UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A37 *((volatile unsigned int*)(0x42C80B14UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A38 *((volatile unsigned int*)(0x42C80B18UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A39 *((volatile unsigned int*)(0x42C80B1CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A40 *((volatile unsigned int*)(0x42C80B20UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A41 *((volatile unsigned int*)(0x42C80B24UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A42 *((volatile unsigned int*)(0x42C80B28UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A43 *((volatile unsigned int*)(0x42C80B2CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A44 *((volatile unsigned int*)(0x42C80B30UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A45 *((volatile unsigned int*)(0x42C80B34UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A46 *((volatile unsigned int*)(0x42C80B38UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_A47 *((volatile unsigned int*)(0x42C80B3CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC0 *((volatile unsigned int*)(0x42C80B60UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC1 *((volatile unsigned int*)(0x42C80B64UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC2 *((volatile unsigned int*)(0x42C80B68UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC3 *((volatile unsigned int*)(0x42C80B6CUL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC4 *((volatile unsigned int*)(0x42C80B70UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_MBC5 *((volatile unsigned int*)(0x42C80B74UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_SA *((volatile unsigned int*)(0x42C80B78UL)) -#define bFM3_ETHERNET_MAC0_MAR3H_AE *((volatile unsigned int*)(0x42C80B7CUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A0 *((volatile unsigned int*)(0x42C80B80UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A1 *((volatile unsigned int*)(0x42C80B84UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A2 *((volatile unsigned int*)(0x42C80B88UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A3 *((volatile unsigned int*)(0x42C80B8CUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A4 *((volatile unsigned int*)(0x42C80B90UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A5 *((volatile unsigned int*)(0x42C80B94UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A6 *((volatile unsigned int*)(0x42C80B98UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A7 *((volatile unsigned int*)(0x42C80B9CUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A8 *((volatile unsigned int*)(0x42C80BA0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A9 *((volatile unsigned int*)(0x42C80BA4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A10 *((volatile unsigned int*)(0x42C80BA8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A11 *((volatile unsigned int*)(0x42C80BACUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A12 *((volatile unsigned int*)(0x42C80BB0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A13 *((volatile unsigned int*)(0x42C80BB4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A14 *((volatile unsigned int*)(0x42C80BB8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A15 *((volatile unsigned int*)(0x42C80BBCUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A16 *((volatile unsigned int*)(0x42C80BC0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A17 *((volatile unsigned int*)(0x42C80BC4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A18 *((volatile unsigned int*)(0x42C80BC8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A19 *((volatile unsigned int*)(0x42C80BCCUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A20 *((volatile unsigned int*)(0x42C80BD0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A21 *((volatile unsigned int*)(0x42C80BD4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A22 *((volatile unsigned int*)(0x42C80BD8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A23 *((volatile unsigned int*)(0x42C80BDCUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A24 *((volatile unsigned int*)(0x42C80BE0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A25 *((volatile unsigned int*)(0x42C80BE4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A26 *((volatile unsigned int*)(0x42C80BE8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A27 *((volatile unsigned int*)(0x42C80BECUL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A28 *((volatile unsigned int*)(0x42C80BF0UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A29 *((volatile unsigned int*)(0x42C80BF4UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A30 *((volatile unsigned int*)(0x42C80BF8UL)) -#define bFM3_ETHERNET_MAC0_MAR3L_A31 *((volatile unsigned int*)(0x42C80BFCUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A32 *((volatile unsigned int*)(0x42C80C00UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A33 *((volatile unsigned int*)(0x42C80C04UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A34 *((volatile unsigned int*)(0x42C80C08UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A35 *((volatile unsigned int*)(0x42C80C0CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A36 *((volatile unsigned int*)(0x42C80C10UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A37 *((volatile unsigned int*)(0x42C80C14UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A38 *((volatile unsigned int*)(0x42C80C18UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A39 *((volatile unsigned int*)(0x42C80C1CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A40 *((volatile unsigned int*)(0x42C80C20UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A41 *((volatile unsigned int*)(0x42C80C24UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A42 *((volatile unsigned int*)(0x42C80C28UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A43 *((volatile unsigned int*)(0x42C80C2CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A44 *((volatile unsigned int*)(0x42C80C30UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A45 *((volatile unsigned int*)(0x42C80C34UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A46 *((volatile unsigned int*)(0x42C80C38UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_A47 *((volatile unsigned int*)(0x42C80C3CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC0 *((volatile unsigned int*)(0x42C80C60UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC1 *((volatile unsigned int*)(0x42C80C64UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC2 *((volatile unsigned int*)(0x42C80C68UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC3 *((volatile unsigned int*)(0x42C80C6CUL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC4 *((volatile unsigned int*)(0x42C80C70UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_MBC5 *((volatile unsigned int*)(0x42C80C74UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_SA *((volatile unsigned int*)(0x42C80C78UL)) -#define bFM3_ETHERNET_MAC0_MAR4H_AE *((volatile unsigned int*)(0x42C80C7CUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A0 *((volatile unsigned int*)(0x42C80C80UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A1 *((volatile unsigned int*)(0x42C80C84UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A2 *((volatile unsigned int*)(0x42C80C88UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A3 *((volatile unsigned int*)(0x42C80C8CUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A4 *((volatile unsigned int*)(0x42C80C90UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A5 *((volatile unsigned int*)(0x42C80C94UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A6 *((volatile unsigned int*)(0x42C80C98UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A7 *((volatile unsigned int*)(0x42C80C9CUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A8 *((volatile unsigned int*)(0x42C80CA0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A9 *((volatile unsigned int*)(0x42C80CA4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A10 *((volatile unsigned int*)(0x42C80CA8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A11 *((volatile unsigned int*)(0x42C80CACUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A12 *((volatile unsigned int*)(0x42C80CB0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A13 *((volatile unsigned int*)(0x42C80CB4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A14 *((volatile unsigned int*)(0x42C80CB8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A15 *((volatile unsigned int*)(0x42C80CBCUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A16 *((volatile unsigned int*)(0x42C80CC0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A17 *((volatile unsigned int*)(0x42C80CC4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A18 *((volatile unsigned int*)(0x42C80CC8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A19 *((volatile unsigned int*)(0x42C80CCCUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A20 *((volatile unsigned int*)(0x42C80CD0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A21 *((volatile unsigned int*)(0x42C80CD4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A22 *((volatile unsigned int*)(0x42C80CD8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A23 *((volatile unsigned int*)(0x42C80CDCUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A24 *((volatile unsigned int*)(0x42C80CE0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A25 *((volatile unsigned int*)(0x42C80CE4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A26 *((volatile unsigned int*)(0x42C80CE8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A27 *((volatile unsigned int*)(0x42C80CECUL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A28 *((volatile unsigned int*)(0x42C80CF0UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A29 *((volatile unsigned int*)(0x42C80CF4UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A30 *((volatile unsigned int*)(0x42C80CF8UL)) -#define bFM3_ETHERNET_MAC0_MAR4L_A31 *((volatile unsigned int*)(0x42C80CFCUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A32 *((volatile unsigned int*)(0x42C80D00UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A33 *((volatile unsigned int*)(0x42C80D04UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A34 *((volatile unsigned int*)(0x42C80D08UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A35 *((volatile unsigned int*)(0x42C80D0CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A36 *((volatile unsigned int*)(0x42C80D10UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A37 *((volatile unsigned int*)(0x42C80D14UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A38 *((volatile unsigned int*)(0x42C80D18UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A39 *((volatile unsigned int*)(0x42C80D1CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A40 *((volatile unsigned int*)(0x42C80D20UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A41 *((volatile unsigned int*)(0x42C80D24UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A42 *((volatile unsigned int*)(0x42C80D28UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A43 *((volatile unsigned int*)(0x42C80D2CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A44 *((volatile unsigned int*)(0x42C80D30UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A45 *((volatile unsigned int*)(0x42C80D34UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A46 *((volatile unsigned int*)(0x42C80D38UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_A47 *((volatile unsigned int*)(0x42C80D3CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC0 *((volatile unsigned int*)(0x42C80D60UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC1 *((volatile unsigned int*)(0x42C80D64UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC2 *((volatile unsigned int*)(0x42C80D68UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC3 *((volatile unsigned int*)(0x42C80D6CUL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC4 *((volatile unsigned int*)(0x42C80D70UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_MBC5 *((volatile unsigned int*)(0x42C80D74UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_SA *((volatile unsigned int*)(0x42C80D78UL)) -#define bFM3_ETHERNET_MAC0_MAR5H_AE *((volatile unsigned int*)(0x42C80D7CUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A0 *((volatile unsigned int*)(0x42C80D80UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A1 *((volatile unsigned int*)(0x42C80D84UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A2 *((volatile unsigned int*)(0x42C80D88UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A3 *((volatile unsigned int*)(0x42C80D8CUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A4 *((volatile unsigned int*)(0x42C80D90UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A5 *((volatile unsigned int*)(0x42C80D94UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A6 *((volatile unsigned int*)(0x42C80D98UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A7 *((volatile unsigned int*)(0x42C80D9CUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A8 *((volatile unsigned int*)(0x42C80DA0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A9 *((volatile unsigned int*)(0x42C80DA4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A10 *((volatile unsigned int*)(0x42C80DA8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A11 *((volatile unsigned int*)(0x42C80DACUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A12 *((volatile unsigned int*)(0x42C80DB0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A13 *((volatile unsigned int*)(0x42C80DB4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A14 *((volatile unsigned int*)(0x42C80DB8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A15 *((volatile unsigned int*)(0x42C80DBCUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A16 *((volatile unsigned int*)(0x42C80DC0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A17 *((volatile unsigned int*)(0x42C80DC4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A18 *((volatile unsigned int*)(0x42C80DC8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A19 *((volatile unsigned int*)(0x42C80DCCUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A20 *((volatile unsigned int*)(0x42C80DD0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A21 *((volatile unsigned int*)(0x42C80DD4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A22 *((volatile unsigned int*)(0x42C80DD8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A23 *((volatile unsigned int*)(0x42C80DDCUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A24 *((volatile unsigned int*)(0x42C80DE0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A25 *((volatile unsigned int*)(0x42C80DE4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A26 *((volatile unsigned int*)(0x42C80DE8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A27 *((volatile unsigned int*)(0x42C80DECUL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A28 *((volatile unsigned int*)(0x42C80DF0UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A29 *((volatile unsigned int*)(0x42C80DF4UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A30 *((volatile unsigned int*)(0x42C80DF8UL)) -#define bFM3_ETHERNET_MAC0_MAR5L_A31 *((volatile unsigned int*)(0x42C80DFCUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A32 *((volatile unsigned int*)(0x42C80E00UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A33 *((volatile unsigned int*)(0x42C80E04UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A34 *((volatile unsigned int*)(0x42C80E08UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A35 *((volatile unsigned int*)(0x42C80E0CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A36 *((volatile unsigned int*)(0x42C80E10UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A37 *((volatile unsigned int*)(0x42C80E14UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A38 *((volatile unsigned int*)(0x42C80E18UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A39 *((volatile unsigned int*)(0x42C80E1CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A40 *((volatile unsigned int*)(0x42C80E20UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A41 *((volatile unsigned int*)(0x42C80E24UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A42 *((volatile unsigned int*)(0x42C80E28UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A43 *((volatile unsigned int*)(0x42C80E2CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A44 *((volatile unsigned int*)(0x42C80E30UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A45 *((volatile unsigned int*)(0x42C80E34UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A46 *((volatile unsigned int*)(0x42C80E38UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_A47 *((volatile unsigned int*)(0x42C80E3CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC0 *((volatile unsigned int*)(0x42C80E60UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC1 *((volatile unsigned int*)(0x42C80E64UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC2 *((volatile unsigned int*)(0x42C80E68UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC3 *((volatile unsigned int*)(0x42C80E6CUL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC4 *((volatile unsigned int*)(0x42C80E70UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_MBC5 *((volatile unsigned int*)(0x42C80E74UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_SA *((volatile unsigned int*)(0x42C80E78UL)) -#define bFM3_ETHERNET_MAC0_MAR6H_AE *((volatile unsigned int*)(0x42C80E7CUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A0 *((volatile unsigned int*)(0x42C80E80UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A1 *((volatile unsigned int*)(0x42C80E84UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A2 *((volatile unsigned int*)(0x42C80E88UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A3 *((volatile unsigned int*)(0x42C80E8CUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A4 *((volatile unsigned int*)(0x42C80E90UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A5 *((volatile unsigned int*)(0x42C80E94UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A6 *((volatile unsigned int*)(0x42C80E98UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A7 *((volatile unsigned int*)(0x42C80E9CUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A8 *((volatile unsigned int*)(0x42C80EA0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A9 *((volatile unsigned int*)(0x42C80EA4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A10 *((volatile unsigned int*)(0x42C80EA8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A11 *((volatile unsigned int*)(0x42C80EACUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A12 *((volatile unsigned int*)(0x42C80EB0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A13 *((volatile unsigned int*)(0x42C80EB4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A14 *((volatile unsigned int*)(0x42C80EB8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A15 *((volatile unsigned int*)(0x42C80EBCUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A16 *((volatile unsigned int*)(0x42C80EC0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A17 *((volatile unsigned int*)(0x42C80EC4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A18 *((volatile unsigned int*)(0x42C80EC8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A19 *((volatile unsigned int*)(0x42C80ECCUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A20 *((volatile unsigned int*)(0x42C80ED0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A21 *((volatile unsigned int*)(0x42C80ED4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A22 *((volatile unsigned int*)(0x42C80ED8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A23 *((volatile unsigned int*)(0x42C80EDCUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A24 *((volatile unsigned int*)(0x42C80EE0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A25 *((volatile unsigned int*)(0x42C80EE4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A26 *((volatile unsigned int*)(0x42C80EE8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A27 *((volatile unsigned int*)(0x42C80EECUL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A28 *((volatile unsigned int*)(0x42C80EF0UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A29 *((volatile unsigned int*)(0x42C80EF4UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A30 *((volatile unsigned int*)(0x42C80EF8UL)) -#define bFM3_ETHERNET_MAC0_MAR6L_A31 *((volatile unsigned int*)(0x42C80EFCUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A32 *((volatile unsigned int*)(0x42C80F00UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A33 *((volatile unsigned int*)(0x42C80F04UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A34 *((volatile unsigned int*)(0x42C80F08UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A35 *((volatile unsigned int*)(0x42C80F0CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A36 *((volatile unsigned int*)(0x42C80F10UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A37 *((volatile unsigned int*)(0x42C80F14UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A38 *((volatile unsigned int*)(0x42C80F18UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A39 *((volatile unsigned int*)(0x42C80F1CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A40 *((volatile unsigned int*)(0x42C80F20UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A41 *((volatile unsigned int*)(0x42C80F24UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A42 *((volatile unsigned int*)(0x42C80F28UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A43 *((volatile unsigned int*)(0x42C80F2CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A44 *((volatile unsigned int*)(0x42C80F30UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A45 *((volatile unsigned int*)(0x42C80F34UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A46 *((volatile unsigned int*)(0x42C80F38UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_A47 *((volatile unsigned int*)(0x42C80F3CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC0 *((volatile unsigned int*)(0x42C80F60UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC1 *((volatile unsigned int*)(0x42C80F64UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC2 *((volatile unsigned int*)(0x42C80F68UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC3 *((volatile unsigned int*)(0x42C80F6CUL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC4 *((volatile unsigned int*)(0x42C80F70UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_MBC5 *((volatile unsigned int*)(0x42C80F74UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_SA *((volatile unsigned int*)(0x42C80F78UL)) -#define bFM3_ETHERNET_MAC0_MAR7H_AE *((volatile unsigned int*)(0x42C80F7CUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A0 *((volatile unsigned int*)(0x42C80F80UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A1 *((volatile unsigned int*)(0x42C80F84UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A2 *((volatile unsigned int*)(0x42C80F88UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A3 *((volatile unsigned int*)(0x42C80F8CUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A4 *((volatile unsigned int*)(0x42C80F90UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A5 *((volatile unsigned int*)(0x42C80F94UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A6 *((volatile unsigned int*)(0x42C80F98UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A7 *((volatile unsigned int*)(0x42C80F9CUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A8 *((volatile unsigned int*)(0x42C80FA0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A9 *((volatile unsigned int*)(0x42C80FA4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A10 *((volatile unsigned int*)(0x42C80FA8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A11 *((volatile unsigned int*)(0x42C80FACUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A12 *((volatile unsigned int*)(0x42C80FB0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A13 *((volatile unsigned int*)(0x42C80FB4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A14 *((volatile unsigned int*)(0x42C80FB8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A15 *((volatile unsigned int*)(0x42C80FBCUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A16 *((volatile unsigned int*)(0x42C80FC0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A17 *((volatile unsigned int*)(0x42C80FC4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A18 *((volatile unsigned int*)(0x42C80FC8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A19 *((volatile unsigned int*)(0x42C80FCCUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A20 *((volatile unsigned int*)(0x42C80FD0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A21 *((volatile unsigned int*)(0x42C80FD4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A22 *((volatile unsigned int*)(0x42C80FD8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A23 *((volatile unsigned int*)(0x42C80FDCUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A24 *((volatile unsigned int*)(0x42C80FE0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A25 *((volatile unsigned int*)(0x42C80FE4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A26 *((volatile unsigned int*)(0x42C80FE8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A27 *((volatile unsigned int*)(0x42C80FECUL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A28 *((volatile unsigned int*)(0x42C80FF0UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A29 *((volatile unsigned int*)(0x42C80FF4UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A30 *((volatile unsigned int*)(0x42C80FF8UL)) -#define bFM3_ETHERNET_MAC0_MAR7L_A31 *((volatile unsigned int*)(0x42C80FFCUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A32 *((volatile unsigned int*)(0x42C81000UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A33 *((volatile unsigned int*)(0x42C81004UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A34 *((volatile unsigned int*)(0x42C81008UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A35 *((volatile unsigned int*)(0x42C8100CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A36 *((volatile unsigned int*)(0x42C81010UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A37 *((volatile unsigned int*)(0x42C81014UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A38 *((volatile unsigned int*)(0x42C81018UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A39 *((volatile unsigned int*)(0x42C8101CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A40 *((volatile unsigned int*)(0x42C81020UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A41 *((volatile unsigned int*)(0x42C81024UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A42 *((volatile unsigned int*)(0x42C81028UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A43 *((volatile unsigned int*)(0x42C8102CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A44 *((volatile unsigned int*)(0x42C81030UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A45 *((volatile unsigned int*)(0x42C81034UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A46 *((volatile unsigned int*)(0x42C81038UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_A47 *((volatile unsigned int*)(0x42C8103CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC0 *((volatile unsigned int*)(0x42C81060UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC1 *((volatile unsigned int*)(0x42C81064UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC2 *((volatile unsigned int*)(0x42C81068UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC3 *((volatile unsigned int*)(0x42C8106CUL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC4 *((volatile unsigned int*)(0x42C81070UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_MBC5 *((volatile unsigned int*)(0x42C81074UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_SA *((volatile unsigned int*)(0x42C81078UL)) -#define bFM3_ETHERNET_MAC0_MAR8H_AE *((volatile unsigned int*)(0x42C8107CUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A0 *((volatile unsigned int*)(0x42C81080UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A1 *((volatile unsigned int*)(0x42C81084UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A2 *((volatile unsigned int*)(0x42C81088UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A3 *((volatile unsigned int*)(0x42C8108CUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A4 *((volatile unsigned int*)(0x42C81090UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A5 *((volatile unsigned int*)(0x42C81094UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A6 *((volatile unsigned int*)(0x42C81098UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A7 *((volatile unsigned int*)(0x42C8109CUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A8 *((volatile unsigned int*)(0x42C810A0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A9 *((volatile unsigned int*)(0x42C810A4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A10 *((volatile unsigned int*)(0x42C810A8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A11 *((volatile unsigned int*)(0x42C810ACUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A12 *((volatile unsigned int*)(0x42C810B0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A13 *((volatile unsigned int*)(0x42C810B4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A14 *((volatile unsigned int*)(0x42C810B8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A15 *((volatile unsigned int*)(0x42C810BCUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A16 *((volatile unsigned int*)(0x42C810C0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A17 *((volatile unsigned int*)(0x42C810C4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A18 *((volatile unsigned int*)(0x42C810C8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A19 *((volatile unsigned int*)(0x42C810CCUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A20 *((volatile unsigned int*)(0x42C810D0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A21 *((volatile unsigned int*)(0x42C810D4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A22 *((volatile unsigned int*)(0x42C810D8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A23 *((volatile unsigned int*)(0x42C810DCUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A24 *((volatile unsigned int*)(0x42C810E0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A25 *((volatile unsigned int*)(0x42C810E4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A26 *((volatile unsigned int*)(0x42C810E8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A27 *((volatile unsigned int*)(0x42C810ECUL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A28 *((volatile unsigned int*)(0x42C810F0UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A29 *((volatile unsigned int*)(0x42C810F4UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A30 *((volatile unsigned int*)(0x42C810F8UL)) -#define bFM3_ETHERNET_MAC0_MAR8L_A31 *((volatile unsigned int*)(0x42C810FCUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A32 *((volatile unsigned int*)(0x42C81100UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A33 *((volatile unsigned int*)(0x42C81104UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A34 *((volatile unsigned int*)(0x42C81108UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A35 *((volatile unsigned int*)(0x42C8110CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A36 *((volatile unsigned int*)(0x42C81110UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A37 *((volatile unsigned int*)(0x42C81114UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A38 *((volatile unsigned int*)(0x42C81118UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A39 *((volatile unsigned int*)(0x42C8111CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A40 *((volatile unsigned int*)(0x42C81120UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A41 *((volatile unsigned int*)(0x42C81124UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A42 *((volatile unsigned int*)(0x42C81128UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A43 *((volatile unsigned int*)(0x42C8112CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A44 *((volatile unsigned int*)(0x42C81130UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A45 *((volatile unsigned int*)(0x42C81134UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A46 *((volatile unsigned int*)(0x42C81138UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_A47 *((volatile unsigned int*)(0x42C8113CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC0 *((volatile unsigned int*)(0x42C81160UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC1 *((volatile unsigned int*)(0x42C81164UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC2 *((volatile unsigned int*)(0x42C81168UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC3 *((volatile unsigned int*)(0x42C8116CUL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC4 *((volatile unsigned int*)(0x42C81170UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_MBC5 *((volatile unsigned int*)(0x42C81174UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_SA *((volatile unsigned int*)(0x42C81178UL)) -#define bFM3_ETHERNET_MAC0_MAR9H_AE *((volatile unsigned int*)(0x42C8117CUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A0 *((volatile unsigned int*)(0x42C81180UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A1 *((volatile unsigned int*)(0x42C81184UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A2 *((volatile unsigned int*)(0x42C81188UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A3 *((volatile unsigned int*)(0x42C8118CUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A4 *((volatile unsigned int*)(0x42C81190UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A5 *((volatile unsigned int*)(0x42C81194UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A6 *((volatile unsigned int*)(0x42C81198UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A7 *((volatile unsigned int*)(0x42C8119CUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A8 *((volatile unsigned int*)(0x42C811A0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A9 *((volatile unsigned int*)(0x42C811A4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A10 *((volatile unsigned int*)(0x42C811A8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A11 *((volatile unsigned int*)(0x42C811ACUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A12 *((volatile unsigned int*)(0x42C811B0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A13 *((volatile unsigned int*)(0x42C811B4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A14 *((volatile unsigned int*)(0x42C811B8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A15 *((volatile unsigned int*)(0x42C811BCUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A16 *((volatile unsigned int*)(0x42C811C0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A17 *((volatile unsigned int*)(0x42C811C4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A18 *((volatile unsigned int*)(0x42C811C8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A19 *((volatile unsigned int*)(0x42C811CCUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A20 *((volatile unsigned int*)(0x42C811D0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A21 *((volatile unsigned int*)(0x42C811D4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A22 *((volatile unsigned int*)(0x42C811D8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A23 *((volatile unsigned int*)(0x42C811DCUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A24 *((volatile unsigned int*)(0x42C811E0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A25 *((volatile unsigned int*)(0x42C811E4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A26 *((volatile unsigned int*)(0x42C811E8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A27 *((volatile unsigned int*)(0x42C811ECUL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A28 *((volatile unsigned int*)(0x42C811F0UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A29 *((volatile unsigned int*)(0x42C811F4UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A30 *((volatile unsigned int*)(0x42C811F8UL)) -#define bFM3_ETHERNET_MAC0_MAR9L_A31 *((volatile unsigned int*)(0x42C811FCUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A32 *((volatile unsigned int*)(0x42C81200UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A33 *((volatile unsigned int*)(0x42C81204UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A34 *((volatile unsigned int*)(0x42C81208UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A35 *((volatile unsigned int*)(0x42C8120CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A36 *((volatile unsigned int*)(0x42C81210UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A37 *((volatile unsigned int*)(0x42C81214UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A38 *((volatile unsigned int*)(0x42C81218UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A39 *((volatile unsigned int*)(0x42C8121CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A40 *((volatile unsigned int*)(0x42C81220UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A41 *((volatile unsigned int*)(0x42C81224UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A42 *((volatile unsigned int*)(0x42C81228UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A43 *((volatile unsigned int*)(0x42C8122CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A44 *((volatile unsigned int*)(0x42C81230UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A45 *((volatile unsigned int*)(0x42C81234UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A46 *((volatile unsigned int*)(0x42C81238UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_A47 *((volatile unsigned int*)(0x42C8123CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC0 *((volatile unsigned int*)(0x42C81260UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC1 *((volatile unsigned int*)(0x42C81264UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC2 *((volatile unsigned int*)(0x42C81268UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC3 *((volatile unsigned int*)(0x42C8126CUL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC4 *((volatile unsigned int*)(0x42C81270UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_MBC5 *((volatile unsigned int*)(0x42C81274UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_SA *((volatile unsigned int*)(0x42C81278UL)) -#define bFM3_ETHERNET_MAC0_MAR10H_AE *((volatile unsigned int*)(0x42C8127CUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A0 *((volatile unsigned int*)(0x42C81280UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A1 *((volatile unsigned int*)(0x42C81284UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A2 *((volatile unsigned int*)(0x42C81288UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A3 *((volatile unsigned int*)(0x42C8128CUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A4 *((volatile unsigned int*)(0x42C81290UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A5 *((volatile unsigned int*)(0x42C81294UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A6 *((volatile unsigned int*)(0x42C81298UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A7 *((volatile unsigned int*)(0x42C8129CUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A8 *((volatile unsigned int*)(0x42C812A0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A9 *((volatile unsigned int*)(0x42C812A4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A10 *((volatile unsigned int*)(0x42C812A8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A11 *((volatile unsigned int*)(0x42C812ACUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A12 *((volatile unsigned int*)(0x42C812B0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A13 *((volatile unsigned int*)(0x42C812B4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A14 *((volatile unsigned int*)(0x42C812B8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A15 *((volatile unsigned int*)(0x42C812BCUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A16 *((volatile unsigned int*)(0x42C812C0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A17 *((volatile unsigned int*)(0x42C812C4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A18 *((volatile unsigned int*)(0x42C812C8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A19 *((volatile unsigned int*)(0x42C812CCUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A20 *((volatile unsigned int*)(0x42C812D0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A21 *((volatile unsigned int*)(0x42C812D4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A22 *((volatile unsigned int*)(0x42C812D8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A23 *((volatile unsigned int*)(0x42C812DCUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A24 *((volatile unsigned int*)(0x42C812E0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A25 *((volatile unsigned int*)(0x42C812E4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A26 *((volatile unsigned int*)(0x42C812E8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A27 *((volatile unsigned int*)(0x42C812ECUL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A28 *((volatile unsigned int*)(0x42C812F0UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A29 *((volatile unsigned int*)(0x42C812F4UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A30 *((volatile unsigned int*)(0x42C812F8UL)) -#define bFM3_ETHERNET_MAC0_MAR10L_A31 *((volatile unsigned int*)(0x42C812FCUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A32 *((volatile unsigned int*)(0x42C81300UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A33 *((volatile unsigned int*)(0x42C81304UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A34 *((volatile unsigned int*)(0x42C81308UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A35 *((volatile unsigned int*)(0x42C8130CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A36 *((volatile unsigned int*)(0x42C81310UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A37 *((volatile unsigned int*)(0x42C81314UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A38 *((volatile unsigned int*)(0x42C81318UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A39 *((volatile unsigned int*)(0x42C8131CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A40 *((volatile unsigned int*)(0x42C81320UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A41 *((volatile unsigned int*)(0x42C81324UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A42 *((volatile unsigned int*)(0x42C81328UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A43 *((volatile unsigned int*)(0x42C8132CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A44 *((volatile unsigned int*)(0x42C81330UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A45 *((volatile unsigned int*)(0x42C81334UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A46 *((volatile unsigned int*)(0x42C81338UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_A47 *((volatile unsigned int*)(0x42C8133CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC0 *((volatile unsigned int*)(0x42C81360UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC1 *((volatile unsigned int*)(0x42C81364UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC2 *((volatile unsigned int*)(0x42C81368UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC3 *((volatile unsigned int*)(0x42C8136CUL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC4 *((volatile unsigned int*)(0x42C81370UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_MBC5 *((volatile unsigned int*)(0x42C81374UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_SA *((volatile unsigned int*)(0x42C81378UL)) -#define bFM3_ETHERNET_MAC0_MAR11H_AE *((volatile unsigned int*)(0x42C8137CUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A0 *((volatile unsigned int*)(0x42C81380UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A1 *((volatile unsigned int*)(0x42C81384UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A2 *((volatile unsigned int*)(0x42C81388UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A3 *((volatile unsigned int*)(0x42C8138CUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A4 *((volatile unsigned int*)(0x42C81390UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A5 *((volatile unsigned int*)(0x42C81394UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A6 *((volatile unsigned int*)(0x42C81398UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A7 *((volatile unsigned int*)(0x42C8139CUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A8 *((volatile unsigned int*)(0x42C813A0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A9 *((volatile unsigned int*)(0x42C813A4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A10 *((volatile unsigned int*)(0x42C813A8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A11 *((volatile unsigned int*)(0x42C813ACUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A12 *((volatile unsigned int*)(0x42C813B0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A13 *((volatile unsigned int*)(0x42C813B4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A14 *((volatile unsigned int*)(0x42C813B8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A15 *((volatile unsigned int*)(0x42C813BCUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A16 *((volatile unsigned int*)(0x42C813C0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A17 *((volatile unsigned int*)(0x42C813C4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A18 *((volatile unsigned int*)(0x42C813C8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A19 *((volatile unsigned int*)(0x42C813CCUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A20 *((volatile unsigned int*)(0x42C813D0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A21 *((volatile unsigned int*)(0x42C813D4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A22 *((volatile unsigned int*)(0x42C813D8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A23 *((volatile unsigned int*)(0x42C813DCUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A24 *((volatile unsigned int*)(0x42C813E0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A25 *((volatile unsigned int*)(0x42C813E4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A26 *((volatile unsigned int*)(0x42C813E8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A27 *((volatile unsigned int*)(0x42C813ECUL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A28 *((volatile unsigned int*)(0x42C813F0UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A29 *((volatile unsigned int*)(0x42C813F4UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A30 *((volatile unsigned int*)(0x42C813F8UL)) -#define bFM3_ETHERNET_MAC0_MAR11L_A31 *((volatile unsigned int*)(0x42C813FCUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A32 *((volatile unsigned int*)(0x42C81400UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A33 *((volatile unsigned int*)(0x42C81404UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A34 *((volatile unsigned int*)(0x42C81408UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A35 *((volatile unsigned int*)(0x42C8140CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A36 *((volatile unsigned int*)(0x42C81410UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A37 *((volatile unsigned int*)(0x42C81414UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A38 *((volatile unsigned int*)(0x42C81418UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A39 *((volatile unsigned int*)(0x42C8141CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A40 *((volatile unsigned int*)(0x42C81420UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A41 *((volatile unsigned int*)(0x42C81424UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A42 *((volatile unsigned int*)(0x42C81428UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A43 *((volatile unsigned int*)(0x42C8142CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A44 *((volatile unsigned int*)(0x42C81430UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A45 *((volatile unsigned int*)(0x42C81434UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A46 *((volatile unsigned int*)(0x42C81438UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_A47 *((volatile unsigned int*)(0x42C8143CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC0 *((volatile unsigned int*)(0x42C81460UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC1 *((volatile unsigned int*)(0x42C81464UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC2 *((volatile unsigned int*)(0x42C81468UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC3 *((volatile unsigned int*)(0x42C8146CUL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC4 *((volatile unsigned int*)(0x42C81470UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_MBC5 *((volatile unsigned int*)(0x42C81474UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_SA *((volatile unsigned int*)(0x42C81478UL)) -#define bFM3_ETHERNET_MAC0_MAR12H_AE *((volatile unsigned int*)(0x42C8147CUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A0 *((volatile unsigned int*)(0x42C81480UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A1 *((volatile unsigned int*)(0x42C81484UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A2 *((volatile unsigned int*)(0x42C81488UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A3 *((volatile unsigned int*)(0x42C8148CUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A4 *((volatile unsigned int*)(0x42C81490UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A5 *((volatile unsigned int*)(0x42C81494UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A6 *((volatile unsigned int*)(0x42C81498UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A7 *((volatile unsigned int*)(0x42C8149CUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A8 *((volatile unsigned int*)(0x42C814A0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A9 *((volatile unsigned int*)(0x42C814A4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A10 *((volatile unsigned int*)(0x42C814A8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A11 *((volatile unsigned int*)(0x42C814ACUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A12 *((volatile unsigned int*)(0x42C814B0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A13 *((volatile unsigned int*)(0x42C814B4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A14 *((volatile unsigned int*)(0x42C814B8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A15 *((volatile unsigned int*)(0x42C814BCUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A16 *((volatile unsigned int*)(0x42C814C0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A17 *((volatile unsigned int*)(0x42C814C4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A18 *((volatile unsigned int*)(0x42C814C8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A19 *((volatile unsigned int*)(0x42C814CCUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A20 *((volatile unsigned int*)(0x42C814D0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A21 *((volatile unsigned int*)(0x42C814D4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A22 *((volatile unsigned int*)(0x42C814D8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A23 *((volatile unsigned int*)(0x42C814DCUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A24 *((volatile unsigned int*)(0x42C814E0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A25 *((volatile unsigned int*)(0x42C814E4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A26 *((volatile unsigned int*)(0x42C814E8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A27 *((volatile unsigned int*)(0x42C814ECUL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A28 *((volatile unsigned int*)(0x42C814F0UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A29 *((volatile unsigned int*)(0x42C814F4UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A30 *((volatile unsigned int*)(0x42C814F8UL)) -#define bFM3_ETHERNET_MAC0_MAR12L_A31 *((volatile unsigned int*)(0x42C814FCUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A32 *((volatile unsigned int*)(0x42C81500UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A33 *((volatile unsigned int*)(0x42C81504UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A34 *((volatile unsigned int*)(0x42C81508UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A35 *((volatile unsigned int*)(0x42C8150CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A36 *((volatile unsigned int*)(0x42C81510UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A37 *((volatile unsigned int*)(0x42C81514UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A38 *((volatile unsigned int*)(0x42C81518UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A39 *((volatile unsigned int*)(0x42C8151CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A40 *((volatile unsigned int*)(0x42C81520UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A41 *((volatile unsigned int*)(0x42C81524UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A42 *((volatile unsigned int*)(0x42C81528UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A43 *((volatile unsigned int*)(0x42C8152CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A44 *((volatile unsigned int*)(0x42C81530UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A45 *((volatile unsigned int*)(0x42C81534UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A46 *((volatile unsigned int*)(0x42C81538UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_A47 *((volatile unsigned int*)(0x42C8153CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC0 *((volatile unsigned int*)(0x42C81560UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC1 *((volatile unsigned int*)(0x42C81564UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC2 *((volatile unsigned int*)(0x42C81568UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC3 *((volatile unsigned int*)(0x42C8156CUL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC4 *((volatile unsigned int*)(0x42C81570UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_MBC5 *((volatile unsigned int*)(0x42C81574UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_SA *((volatile unsigned int*)(0x42C81578UL)) -#define bFM3_ETHERNET_MAC0_MAR13H_AE *((volatile unsigned int*)(0x42C8157CUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A0 *((volatile unsigned int*)(0x42C81580UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A1 *((volatile unsigned int*)(0x42C81584UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A2 *((volatile unsigned int*)(0x42C81588UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A3 *((volatile unsigned int*)(0x42C8158CUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A4 *((volatile unsigned int*)(0x42C81590UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A5 *((volatile unsigned int*)(0x42C81594UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A6 *((volatile unsigned int*)(0x42C81598UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A7 *((volatile unsigned int*)(0x42C8159CUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A8 *((volatile unsigned int*)(0x42C815A0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A9 *((volatile unsigned int*)(0x42C815A4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A10 *((volatile unsigned int*)(0x42C815A8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A11 *((volatile unsigned int*)(0x42C815ACUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A12 *((volatile unsigned int*)(0x42C815B0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A13 *((volatile unsigned int*)(0x42C815B4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A14 *((volatile unsigned int*)(0x42C815B8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A15 *((volatile unsigned int*)(0x42C815BCUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A16 *((volatile unsigned int*)(0x42C815C0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A17 *((volatile unsigned int*)(0x42C815C4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A18 *((volatile unsigned int*)(0x42C815C8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A19 *((volatile unsigned int*)(0x42C815CCUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A20 *((volatile unsigned int*)(0x42C815D0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A21 *((volatile unsigned int*)(0x42C815D4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A22 *((volatile unsigned int*)(0x42C815D8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A23 *((volatile unsigned int*)(0x42C815DCUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A24 *((volatile unsigned int*)(0x42C815E0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A25 *((volatile unsigned int*)(0x42C815E4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A26 *((volatile unsigned int*)(0x42C815E8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A27 *((volatile unsigned int*)(0x42C815ECUL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A28 *((volatile unsigned int*)(0x42C815F0UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A29 *((volatile unsigned int*)(0x42C815F4UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A30 *((volatile unsigned int*)(0x42C815F8UL)) -#define bFM3_ETHERNET_MAC0_MAR13L_A31 *((volatile unsigned int*)(0x42C815FCUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A32 *((volatile unsigned int*)(0x42C81600UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A33 *((volatile unsigned int*)(0x42C81604UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A34 *((volatile unsigned int*)(0x42C81608UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A35 *((volatile unsigned int*)(0x42C8160CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A36 *((volatile unsigned int*)(0x42C81610UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A37 *((volatile unsigned int*)(0x42C81614UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A38 *((volatile unsigned int*)(0x42C81618UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A39 *((volatile unsigned int*)(0x42C8161CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A40 *((volatile unsigned int*)(0x42C81620UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A41 *((volatile unsigned int*)(0x42C81624UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A42 *((volatile unsigned int*)(0x42C81628UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A43 *((volatile unsigned int*)(0x42C8162CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A44 *((volatile unsigned int*)(0x42C81630UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A45 *((volatile unsigned int*)(0x42C81634UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A46 *((volatile unsigned int*)(0x42C81638UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_A47 *((volatile unsigned int*)(0x42C8163CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC0 *((volatile unsigned int*)(0x42C81660UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC1 *((volatile unsigned int*)(0x42C81664UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC2 *((volatile unsigned int*)(0x42C81668UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC3 *((volatile unsigned int*)(0x42C8166CUL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC4 *((volatile unsigned int*)(0x42C81670UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_MBC5 *((volatile unsigned int*)(0x42C81674UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_SA *((volatile unsigned int*)(0x42C81678UL)) -#define bFM3_ETHERNET_MAC0_MAR14H_AE *((volatile unsigned int*)(0x42C8167CUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A0 *((volatile unsigned int*)(0x42C81680UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A1 *((volatile unsigned int*)(0x42C81684UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A2 *((volatile unsigned int*)(0x42C81688UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A3 *((volatile unsigned int*)(0x42C8168CUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A4 *((volatile unsigned int*)(0x42C81690UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A5 *((volatile unsigned int*)(0x42C81694UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A6 *((volatile unsigned int*)(0x42C81698UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A7 *((volatile unsigned int*)(0x42C8169CUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A8 *((volatile unsigned int*)(0x42C816A0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A9 *((volatile unsigned int*)(0x42C816A4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A10 *((volatile unsigned int*)(0x42C816A8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A11 *((volatile unsigned int*)(0x42C816ACUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A12 *((volatile unsigned int*)(0x42C816B0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A13 *((volatile unsigned int*)(0x42C816B4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A14 *((volatile unsigned int*)(0x42C816B8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A15 *((volatile unsigned int*)(0x42C816BCUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A16 *((volatile unsigned int*)(0x42C816C0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A17 *((volatile unsigned int*)(0x42C816C4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A18 *((volatile unsigned int*)(0x42C816C8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A19 *((volatile unsigned int*)(0x42C816CCUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A20 *((volatile unsigned int*)(0x42C816D0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A21 *((volatile unsigned int*)(0x42C816D4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A22 *((volatile unsigned int*)(0x42C816D8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A23 *((volatile unsigned int*)(0x42C816DCUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A24 *((volatile unsigned int*)(0x42C816E0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A25 *((volatile unsigned int*)(0x42C816E4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A26 *((volatile unsigned int*)(0x42C816E8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A27 *((volatile unsigned int*)(0x42C816ECUL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A28 *((volatile unsigned int*)(0x42C816F0UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A29 *((volatile unsigned int*)(0x42C816F4UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A30 *((volatile unsigned int*)(0x42C816F8UL)) -#define bFM3_ETHERNET_MAC0_MAR14L_A31 *((volatile unsigned int*)(0x42C816FCUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A32 *((volatile unsigned int*)(0x42C81700UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A33 *((volatile unsigned int*)(0x42C81704UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A34 *((volatile unsigned int*)(0x42C81708UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A35 *((volatile unsigned int*)(0x42C8170CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A36 *((volatile unsigned int*)(0x42C81710UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A37 *((volatile unsigned int*)(0x42C81714UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A38 *((volatile unsigned int*)(0x42C81718UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A39 *((volatile unsigned int*)(0x42C8171CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A40 *((volatile unsigned int*)(0x42C81720UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A41 *((volatile unsigned int*)(0x42C81724UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A42 *((volatile unsigned int*)(0x42C81728UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A43 *((volatile unsigned int*)(0x42C8172CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A44 *((volatile unsigned int*)(0x42C81730UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A45 *((volatile unsigned int*)(0x42C81734UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A46 *((volatile unsigned int*)(0x42C81738UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_A47 *((volatile unsigned int*)(0x42C8173CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC0 *((volatile unsigned int*)(0x42C81760UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC1 *((volatile unsigned int*)(0x42C81764UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC2 *((volatile unsigned int*)(0x42C81768UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC3 *((volatile unsigned int*)(0x42C8176CUL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC4 *((volatile unsigned int*)(0x42C81770UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_MBC5 *((volatile unsigned int*)(0x42C81774UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_SA *((volatile unsigned int*)(0x42C81778UL)) -#define bFM3_ETHERNET_MAC0_MAR15H_AE *((volatile unsigned int*)(0x42C8177CUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A0 *((volatile unsigned int*)(0x42C81780UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A1 *((volatile unsigned int*)(0x42C81784UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A2 *((volatile unsigned int*)(0x42C81788UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A3 *((volatile unsigned int*)(0x42C8178CUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A4 *((volatile unsigned int*)(0x42C81790UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A5 *((volatile unsigned int*)(0x42C81794UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A6 *((volatile unsigned int*)(0x42C81798UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A7 *((volatile unsigned int*)(0x42C8179CUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A8 *((volatile unsigned int*)(0x42C817A0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A9 *((volatile unsigned int*)(0x42C817A4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A10 *((volatile unsigned int*)(0x42C817A8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A11 *((volatile unsigned int*)(0x42C817ACUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A12 *((volatile unsigned int*)(0x42C817B0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A13 *((volatile unsigned int*)(0x42C817B4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A14 *((volatile unsigned int*)(0x42C817B8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A15 *((volatile unsigned int*)(0x42C817BCUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A16 *((volatile unsigned int*)(0x42C817C0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A17 *((volatile unsigned int*)(0x42C817C4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A18 *((volatile unsigned int*)(0x42C817C8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A19 *((volatile unsigned int*)(0x42C817CCUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A20 *((volatile unsigned int*)(0x42C817D0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A21 *((volatile unsigned int*)(0x42C817D4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A22 *((volatile unsigned int*)(0x42C817D8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A23 *((volatile unsigned int*)(0x42C817DCUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A24 *((volatile unsigned int*)(0x42C817E0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A25 *((volatile unsigned int*)(0x42C817E4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A26 *((volatile unsigned int*)(0x42C817E8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A27 *((volatile unsigned int*)(0x42C817ECUL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A28 *((volatile unsigned int*)(0x42C817F0UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A29 *((volatile unsigned int*)(0x42C817F4UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A30 *((volatile unsigned int*)(0x42C817F8UL)) -#define bFM3_ETHERNET_MAC0_MAR15L_A31 *((volatile unsigned int*)(0x42C817FCUL)) -#define bFM3_ETHERNET_MAC0_RGSR_LM *((volatile unsigned int*)(0x42C81B00UL)) -#define bFM3_ETHERNET_MAC0_RGSR_LSP0 *((volatile unsigned int*)(0x42C81B04UL)) -#define bFM3_ETHERNET_MAC0_RGSR_LSP1 *((volatile unsigned int*)(0x42C81B08UL)) -#define bFM3_ETHERNET_MAC0_RGSR_LS *((volatile unsigned int*)(0x42C81B0CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSE *((volatile unsigned int*)(0x42C8E000UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TFCU *((volatile unsigned int*)(0x42C8E004UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSI *((volatile unsigned int*)(0x42C8E008UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSU *((volatile unsigned int*)(0x42C8E00CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TITE *((volatile unsigned int*)(0x42C8E010UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TARU *((volatile unsigned int*)(0x42C8E014UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSEA *((volatile unsigned int*)(0x42C8E020UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSDB *((volatile unsigned int*)(0x42C8E024UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSV2E *((volatile unsigned int*)(0x42C8E028UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TETSP *((volatile unsigned int*)(0x42C8E02CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSIP6E *((volatile unsigned int*)(0x42C8E030UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSIP4E *((volatile unsigned int*)(0x42C8E034UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TETSEM *((volatile unsigned int*)(0x42C8E038UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSMRM *((volatile unsigned int*)(0x42C8E03CUL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSPS0 *((volatile unsigned int*)(0x42C8E040UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSPS1 *((volatile unsigned int*)(0x42C8E044UL)) -#define bFM3_ETHERNET_MAC0_TSCR_TSENMF *((volatile unsigned int*)(0x42C8E048UL)) -#define bFM3_ETHERNET_MAC0_TSCR_ATSFC *((volatile unsigned int*)(0x42C8E060UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC0 *((volatile unsigned int*)(0x42C8E080UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC1 *((volatile unsigned int*)(0x42C8E084UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC2 *((volatile unsigned int*)(0x42C8E088UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC3 *((volatile unsigned int*)(0x42C8E08CUL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC4 *((volatile unsigned int*)(0x42C8E090UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC5 *((volatile unsigned int*)(0x42C8E094UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC6 *((volatile unsigned int*)(0x42C8E098UL)) -#define bFM3_ETHERNET_MAC0_SSIR_SSINC7 *((volatile unsigned int*)(0x42C8E09CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS0 *((volatile unsigned int*)(0x42C8E100UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS1 *((volatile unsigned int*)(0x42C8E104UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS2 *((volatile unsigned int*)(0x42C8E108UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS3 *((volatile unsigned int*)(0x42C8E10CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS4 *((volatile unsigned int*)(0x42C8E110UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS5 *((volatile unsigned int*)(0x42C8E114UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS6 *((volatile unsigned int*)(0x42C8E118UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS7 *((volatile unsigned int*)(0x42C8E11CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS8 *((volatile unsigned int*)(0x42C8E120UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS9 *((volatile unsigned int*)(0x42C8E124UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS10 *((volatile unsigned int*)(0x42C8E128UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS11 *((volatile unsigned int*)(0x42C8E12CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS12 *((volatile unsigned int*)(0x42C8E130UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS13 *((volatile unsigned int*)(0x42C8E134UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS14 *((volatile unsigned int*)(0x42C8E138UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS15 *((volatile unsigned int*)(0x42C8E13CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS16 *((volatile unsigned int*)(0x42C8E140UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS17 *((volatile unsigned int*)(0x42C8E144UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS18 *((volatile unsigned int*)(0x42C8E148UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS19 *((volatile unsigned int*)(0x42C8E14CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS20 *((volatile unsigned int*)(0x42C8E150UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS21 *((volatile unsigned int*)(0x42C8E154UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS22 *((volatile unsigned int*)(0x42C8E158UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS23 *((volatile unsigned int*)(0x42C8E15CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS24 *((volatile unsigned int*)(0x42C8E160UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS25 *((volatile unsigned int*)(0x42C8E164UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS26 *((volatile unsigned int*)(0x42C8E168UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS27 *((volatile unsigned int*)(0x42C8E16CUL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS28 *((volatile unsigned int*)(0x42C8E170UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS29 *((volatile unsigned int*)(0x42C8E174UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS30 *((volatile unsigned int*)(0x42C8E178UL)) -#define bFM3_ETHERNET_MAC0_STSR_TSS31 *((volatile unsigned int*)(0x42C8E17CUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS0 *((volatile unsigned int*)(0x42C8E080UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS1 *((volatile unsigned int*)(0x42C8E084UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS2 *((volatile unsigned int*)(0x42C8E088UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS3 *((volatile unsigned int*)(0x42C8E08CUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS4 *((volatile unsigned int*)(0x42C8E090UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS5 *((volatile unsigned int*)(0x42C8E094UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS6 *((volatile unsigned int*)(0x42C8E098UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS7 *((volatile unsigned int*)(0x42C8E09CUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS8 *((volatile unsigned int*)(0x42C8E0A0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS9 *((volatile unsigned int*)(0x42C8E0A4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS10 *((volatile unsigned int*)(0x42C8E0A8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS11 *((volatile unsigned int*)(0x42C8E0ACUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS12 *((volatile unsigned int*)(0x42C8E0B0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS13 *((volatile unsigned int*)(0x42C8E0B4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS14 *((volatile unsigned int*)(0x42C8E0B8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS15 *((volatile unsigned int*)(0x42C8E0BCUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS16 *((volatile unsigned int*)(0x42C8E0C0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS17 *((volatile unsigned int*)(0x42C8E0C4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS18 *((volatile unsigned int*)(0x42C8E0C8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS19 *((volatile unsigned int*)(0x42C8E0CCUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS20 *((volatile unsigned int*)(0x42C8E0D0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS21 *((volatile unsigned int*)(0x42C8E0D4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS22 *((volatile unsigned int*)(0x42C8E0D8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS23 *((volatile unsigned int*)(0x42C8E0DCUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS24 *((volatile unsigned int*)(0x42C8E0E0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS25 *((volatile unsigned int*)(0x42C8E0E4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS26 *((volatile unsigned int*)(0x42C8E0E8UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS27 *((volatile unsigned int*)(0x42C8E0ECUL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS28 *((volatile unsigned int*)(0x42C8E0F0UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS29 *((volatile unsigned int*)(0x42C8E0F4UL)) -#define bFM3_ETHERNET_MAC0_STNR_TSSS30 *((volatile unsigned int*)(0x42C8E0F8UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS0 *((volatile unsigned int*)(0x42C8E200UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS1 *((volatile unsigned int*)(0x42C8E204UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS2 *((volatile unsigned int*)(0x42C8E208UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS3 *((volatile unsigned int*)(0x42C8E20CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS4 *((volatile unsigned int*)(0x42C8E210UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS5 *((volatile unsigned int*)(0x42C8E214UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS6 *((volatile unsigned int*)(0x42C8E218UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS7 *((volatile unsigned int*)(0x42C8E21CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS8 *((volatile unsigned int*)(0x42C8E220UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS9 *((volatile unsigned int*)(0x42C8E224UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS10 *((volatile unsigned int*)(0x42C8E228UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS11 *((volatile unsigned int*)(0x42C8E22CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS12 *((volatile unsigned int*)(0x42C8E230UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS13 *((volatile unsigned int*)(0x42C8E234UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS14 *((volatile unsigned int*)(0x42C8E238UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS15 *((volatile unsigned int*)(0x42C8E23CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS16 *((volatile unsigned int*)(0x42C8E240UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS17 *((volatile unsigned int*)(0x42C8E244UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS18 *((volatile unsigned int*)(0x42C8E248UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS19 *((volatile unsigned int*)(0x42C8E24CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS20 *((volatile unsigned int*)(0x42C8E250UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS21 *((volatile unsigned int*)(0x42C8E254UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS22 *((volatile unsigned int*)(0x42C8E258UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS23 *((volatile unsigned int*)(0x42C8E25CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS24 *((volatile unsigned int*)(0x42C8E260UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS25 *((volatile unsigned int*)(0x42C8E264UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS26 *((volatile unsigned int*)(0x42C8E268UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS27 *((volatile unsigned int*)(0x42C8E26CUL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS28 *((volatile unsigned int*)(0x42C8E270UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS29 *((volatile unsigned int*)(0x42C8E274UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS30 *((volatile unsigned int*)(0x42C8E278UL)) -#define bFM3_ETHERNET_MAC0_STSUR_TSS31 *((volatile unsigned int*)(0x42C8E27CUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS0 *((volatile unsigned int*)(0x42C8E280UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS1 *((volatile unsigned int*)(0x42C8E284UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS2 *((volatile unsigned int*)(0x42C8E288UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS3 *((volatile unsigned int*)(0x42C8E28CUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS4 *((volatile unsigned int*)(0x42C8E290UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS5 *((volatile unsigned int*)(0x42C8E294UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS6 *((volatile unsigned int*)(0x42C8E298UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS7 *((volatile unsigned int*)(0x42C8E29CUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS8 *((volatile unsigned int*)(0x42C8E2A0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS9 *((volatile unsigned int*)(0x42C8E2A4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS10 *((volatile unsigned int*)(0x42C8E2A8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS11 *((volatile unsigned int*)(0x42C8E2ACUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS12 *((volatile unsigned int*)(0x42C8E2B0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS13 *((volatile unsigned int*)(0x42C8E2B4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS14 *((volatile unsigned int*)(0x42C8E2B8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS15 *((volatile unsigned int*)(0x42C8E2BCUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS16 *((volatile unsigned int*)(0x42C8E2C0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS17 *((volatile unsigned int*)(0x42C8E2C4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS18 *((volatile unsigned int*)(0x42C8E2C8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS19 *((volatile unsigned int*)(0x42C8E2CCUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS20 *((volatile unsigned int*)(0x42C8E2D0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS21 *((volatile unsigned int*)(0x42C8E2D4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS22 *((volatile unsigned int*)(0x42C8E2D8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS23 *((volatile unsigned int*)(0x42C8E2DCUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS24 *((volatile unsigned int*)(0x42C8E2E0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS25 *((volatile unsigned int*)(0x42C8E2E4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS26 *((volatile unsigned int*)(0x42C8E2E8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS27 *((volatile unsigned int*)(0x42C8E2ECUL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS28 *((volatile unsigned int*)(0x42C8E2F0UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS29 *((volatile unsigned int*)(0x42C8E2F4UL)) -#define bFM3_ETHERNET_MAC0_STNUR_TSSS30 *((volatile unsigned int*)(0x42C8E2F8UL)) -#define bFM3_ETHERNET_MAC0_STNUR_ADDSUB *((volatile unsigned int*)(0x42C8E2FCUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR0 *((volatile unsigned int*)(0x42C8E300UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR1 *((volatile unsigned int*)(0x42C8E304UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR2 *((volatile unsigned int*)(0x42C8E308UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR3 *((volatile unsigned int*)(0x42C8E30CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR4 *((volatile unsigned int*)(0x42C8E310UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR5 *((volatile unsigned int*)(0x42C8E314UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR6 *((volatile unsigned int*)(0x42C8E318UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR7 *((volatile unsigned int*)(0x42C8E31CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR8 *((volatile unsigned int*)(0x42C8E320UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR9 *((volatile unsigned int*)(0x42C8E324UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR10 *((volatile unsigned int*)(0x42C8E328UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR11 *((volatile unsigned int*)(0x42C8E32CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR12 *((volatile unsigned int*)(0x42C8E330UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR13 *((volatile unsigned int*)(0x42C8E334UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR14 *((volatile unsigned int*)(0x42C8E338UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR15 *((volatile unsigned int*)(0x42C8E33CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR16 *((volatile unsigned int*)(0x42C8E340UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR17 *((volatile unsigned int*)(0x42C8E344UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR18 *((volatile unsigned int*)(0x42C8E348UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR19 *((volatile unsigned int*)(0x42C8E34CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR20 *((volatile unsigned int*)(0x42C8E350UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR21 *((volatile unsigned int*)(0x42C8E354UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR22 *((volatile unsigned int*)(0x42C8E358UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR23 *((volatile unsigned int*)(0x42C8E35CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR24 *((volatile unsigned int*)(0x42C8E360UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR25 *((volatile unsigned int*)(0x42C8E364UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR26 *((volatile unsigned int*)(0x42C8E368UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR27 *((volatile unsigned int*)(0x42C8E36CUL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR28 *((volatile unsigned int*)(0x42C8E370UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR29 *((volatile unsigned int*)(0x42C8E374UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR30 *((volatile unsigned int*)(0x42C8E378UL)) -#define bFM3_ETHERNET_MAC0_TSAR_TSAR31 *((volatile unsigned int*)(0x42C8E37CUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR0 *((volatile unsigned int*)(0x42C8E380UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR1 *((volatile unsigned int*)(0x42C8E384UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR2 *((volatile unsigned int*)(0x42C8E388UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR3 *((volatile unsigned int*)(0x42C8E38CUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR4 *((volatile unsigned int*)(0x42C8E390UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR5 *((volatile unsigned int*)(0x42C8E394UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR6 *((volatile unsigned int*)(0x42C8E398UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR7 *((volatile unsigned int*)(0x42C8E39CUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR8 *((volatile unsigned int*)(0x42C8E3A0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR9 *((volatile unsigned int*)(0x42C8E3A4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR10 *((volatile unsigned int*)(0x42C8E3A8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR11 *((volatile unsigned int*)(0x42C8E3ACUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR12 *((volatile unsigned int*)(0x42C8E3B0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR13 *((volatile unsigned int*)(0x42C8E3B4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR14 *((volatile unsigned int*)(0x42C8E3B8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR15 *((volatile unsigned int*)(0x42C8E3BCUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR16 *((volatile unsigned int*)(0x42C8E3C0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR17 *((volatile unsigned int*)(0x42C8E3C4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR18 *((volatile unsigned int*)(0x42C8E3C8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR19 *((volatile unsigned int*)(0x42C8E3CCUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR20 *((volatile unsigned int*)(0x42C8E3D0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR21 *((volatile unsigned int*)(0x42C8E3D4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR22 *((volatile unsigned int*)(0x42C8E3D8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR23 *((volatile unsigned int*)(0x42C8E3DCUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR24 *((volatile unsigned int*)(0x42C8E3E0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR25 *((volatile unsigned int*)(0x42C8E3E4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR26 *((volatile unsigned int*)(0x42C8E3E8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR27 *((volatile unsigned int*)(0x42C8E3ECUL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR28 *((volatile unsigned int*)(0x42C8E3F0UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR29 *((volatile unsigned int*)(0x42C8E3F4UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR30 *((volatile unsigned int*)(0x42C8E3F8UL)) -#define bFM3_ETHERNET_MAC0_TTSR_TSTR31 *((volatile unsigned int*)(0x42C8E3FCUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR0 *((volatile unsigned int*)(0x42C8E400UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR1 *((volatile unsigned int*)(0x42C8E404UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR2 *((volatile unsigned int*)(0x42C8E408UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR3 *((volatile unsigned int*)(0x42C8E40CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR4 *((volatile unsigned int*)(0x42C8E410UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR5 *((volatile unsigned int*)(0x42C8E414UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR6 *((volatile unsigned int*)(0x42C8E418UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR7 *((volatile unsigned int*)(0x42C8E41CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR8 *((volatile unsigned int*)(0x42C8E420UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR9 *((volatile unsigned int*)(0x42C8E424UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR10 *((volatile unsigned int*)(0x42C8E428UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR11 *((volatile unsigned int*)(0x42C8E42CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR12 *((volatile unsigned int*)(0x42C8E430UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR13 *((volatile unsigned int*)(0x42C8E434UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR14 *((volatile unsigned int*)(0x42C8E438UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR15 *((volatile unsigned int*)(0x42C8E43CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR16 *((volatile unsigned int*)(0x42C8E440UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR17 *((volatile unsigned int*)(0x42C8E444UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR18 *((volatile unsigned int*)(0x42C8E448UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR19 *((volatile unsigned int*)(0x42C8E44CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR20 *((volatile unsigned int*)(0x42C8E450UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR21 *((volatile unsigned int*)(0x42C8E454UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR22 *((volatile unsigned int*)(0x42C8E458UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR23 *((volatile unsigned int*)(0x42C8E45CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR24 *((volatile unsigned int*)(0x42C8E460UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR25 *((volatile unsigned int*)(0x42C8E464UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR26 *((volatile unsigned int*)(0x42C8E468UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR27 *((volatile unsigned int*)(0x42C8E46CUL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR28 *((volatile unsigned int*)(0x42C8E470UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR29 *((volatile unsigned int*)(0x42C8E474UL)) -#define bFM3_ETHERNET_MAC0_TTNR_TSTR30 *((volatile unsigned int*)(0x42C8E478UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42C8E480UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42C8E484UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42C8E488UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42C8E48CUL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42C8E490UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42C8E494UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42C8E498UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42C8E49CUL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42C8E4A0UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42C8E4A4UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42C8E4A8UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42C8E4ACUL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42C8E4B0UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42C8E4B4UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42C8E4B8UL)) -#define bFM3_ETHERNET_MAC0_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42C8E4BCUL)) -#define bFM3_ETHERNET_MAC0_TSR_TSSOVF *((volatile unsigned int*)(0x42C8E500UL)) -#define bFM3_ETHERNET_MAC0_TSR_TSTART *((volatile unsigned int*)(0x42C8E504UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSTS *((volatile unsigned int*)(0x42C8E508UL)) -#define bFM3_ETHERNET_MAC0_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSSTM *((volatile unsigned int*)(0x42C8E560UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSNS0 *((volatile unsigned int*)(0x42C8E564UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSNS1 *((volatile unsigned int*)(0x42C8E568UL)) -#define bFM3_ETHERNET_MAC0_TSR_ATSNS2 *((volatile unsigned int*)(0x42C8E56CUL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42C8E580UL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42C8E584UL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42C8E588UL)) -#define bFM3_ETHERNET_MAC0_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42C8E58CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN0 *((volatile unsigned int*)(0x42C8E600UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN1 *((volatile unsigned int*)(0x42C8E604UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN2 *((volatile unsigned int*)(0x42C8E608UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN3 *((volatile unsigned int*)(0x42C8E60CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN4 *((volatile unsigned int*)(0x42C8E610UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN5 *((volatile unsigned int*)(0x42C8E614UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN6 *((volatile unsigned int*)(0x42C8E618UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN7 *((volatile unsigned int*)(0x42C8E61CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN8 *((volatile unsigned int*)(0x42C8E620UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN9 *((volatile unsigned int*)(0x42C8E624UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN10 *((volatile unsigned int*)(0x42C8E628UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN11 *((volatile unsigned int*)(0x42C8E62CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN12 *((volatile unsigned int*)(0x42C8E630UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN13 *((volatile unsigned int*)(0x42C8E634UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN14 *((volatile unsigned int*)(0x42C8E638UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN15 *((volatile unsigned int*)(0x42C8E63CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN16 *((volatile unsigned int*)(0x42C8E640UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN17 *((volatile unsigned int*)(0x42C8E644UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN18 *((volatile unsigned int*)(0x42C8E648UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN19 *((volatile unsigned int*)(0x42C8E64CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN20 *((volatile unsigned int*)(0x42C8E650UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN21 *((volatile unsigned int*)(0x42C8E654UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN22 *((volatile unsigned int*)(0x42C8E658UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN23 *((volatile unsigned int*)(0x42C8E65CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN24 *((volatile unsigned int*)(0x42C8E660UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN25 *((volatile unsigned int*)(0x42C8E664UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN26 *((volatile unsigned int*)(0x42C8E668UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN27 *((volatile unsigned int*)(0x42C8E66CUL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN28 *((volatile unsigned int*)(0x42C8E670UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN29 *((volatile unsigned int*)(0x42C8E674UL)) -#define bFM3_ETHERNET_MAC0_ATNR_ATN30 *((volatile unsigned int*)(0x42C8E678UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS0 *((volatile unsigned int*)(0x42C8E680UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS1 *((volatile unsigned int*)(0x42C8E684UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS2 *((volatile unsigned int*)(0x42C8E688UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS3 *((volatile unsigned int*)(0x42C8E68CUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS4 *((volatile unsigned int*)(0x42C8E690UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS5 *((volatile unsigned int*)(0x42C8E694UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS6 *((volatile unsigned int*)(0x42C8E698UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS7 *((volatile unsigned int*)(0x42C8E69CUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS8 *((volatile unsigned int*)(0x42C8E6A0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS9 *((volatile unsigned int*)(0x42C8E6A4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS10 *((volatile unsigned int*)(0x42C8E6A8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS11 *((volatile unsigned int*)(0x42C8E6ACUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS12 *((volatile unsigned int*)(0x42C8E6B0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS13 *((volatile unsigned int*)(0x42C8E6B4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS14 *((volatile unsigned int*)(0x42C8E6B8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS15 *((volatile unsigned int*)(0x42C8E6BCUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS16 *((volatile unsigned int*)(0x42C8E6C0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS17 *((volatile unsigned int*)(0x42C8E6C4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS18 *((volatile unsigned int*)(0x42C8E6C8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS19 *((volatile unsigned int*)(0x42C8E6CCUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS20 *((volatile unsigned int*)(0x42C8E6D0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS21 *((volatile unsigned int*)(0x42C8E6D4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS22 *((volatile unsigned int*)(0x42C8E6D8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS23 *((volatile unsigned int*)(0x42C8E6DCUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS24 *((volatile unsigned int*)(0x42C8E6E0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS25 *((volatile unsigned int*)(0x42C8E6E4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS26 *((volatile unsigned int*)(0x42C8E6E8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS27 *((volatile unsigned int*)(0x42C8E6ECUL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS28 *((volatile unsigned int*)(0x42C8E6F0UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS29 *((volatile unsigned int*)(0x42C8E6F4UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS30 *((volatile unsigned int*)(0x42C8E6F8UL)) -#define bFM3_ETHERNET_MAC0_ATSR_ATS31 *((volatile unsigned int*)(0x42C8E6FCUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A32 *((volatile unsigned int*)(0x42C90000UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A33 *((volatile unsigned int*)(0x42C90004UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A34 *((volatile unsigned int*)(0x42C90008UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A35 *((volatile unsigned int*)(0x42C9000CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A36 *((volatile unsigned int*)(0x42C90010UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A37 *((volatile unsigned int*)(0x42C90014UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A38 *((volatile unsigned int*)(0x42C90018UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A39 *((volatile unsigned int*)(0x42C9001CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A40 *((volatile unsigned int*)(0x42C90020UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A41 *((volatile unsigned int*)(0x42C90024UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A42 *((volatile unsigned int*)(0x42C90028UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A43 *((volatile unsigned int*)(0x42C9002CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A44 *((volatile unsigned int*)(0x42C90030UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A45 *((volatile unsigned int*)(0x42C90034UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A46 *((volatile unsigned int*)(0x42C90038UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_A47 *((volatile unsigned int*)(0x42C9003CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC0 *((volatile unsigned int*)(0x42C90060UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC1 *((volatile unsigned int*)(0x42C90064UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC2 *((volatile unsigned int*)(0x42C90068UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC3 *((volatile unsigned int*)(0x42C9006CUL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC4 *((volatile unsigned int*)(0x42C90070UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_MBC5 *((volatile unsigned int*)(0x42C90074UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_SA *((volatile unsigned int*)(0x42C90078UL)) -#define bFM3_ETHERNET_MAC0_MAR16H_AE *((volatile unsigned int*)(0x42C9007CUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A0 *((volatile unsigned int*)(0x42C90080UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A1 *((volatile unsigned int*)(0x42C90084UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A2 *((volatile unsigned int*)(0x42C90088UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A3 *((volatile unsigned int*)(0x42C9008CUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A4 *((volatile unsigned int*)(0x42C90090UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A5 *((volatile unsigned int*)(0x42C90094UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A6 *((volatile unsigned int*)(0x42C90098UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A7 *((volatile unsigned int*)(0x42C9009CUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A8 *((volatile unsigned int*)(0x42C900A0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A9 *((volatile unsigned int*)(0x42C900A4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A10 *((volatile unsigned int*)(0x42C900A8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A11 *((volatile unsigned int*)(0x42C900ACUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A12 *((volatile unsigned int*)(0x42C900B0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A13 *((volatile unsigned int*)(0x42C900B4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A14 *((volatile unsigned int*)(0x42C900B8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A15 *((volatile unsigned int*)(0x42C900BCUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A16 *((volatile unsigned int*)(0x42C900C0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A17 *((volatile unsigned int*)(0x42C900C4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A18 *((volatile unsigned int*)(0x42C900C8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A19 *((volatile unsigned int*)(0x42C900CCUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A20 *((volatile unsigned int*)(0x42C900D0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A21 *((volatile unsigned int*)(0x42C900D4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A22 *((volatile unsigned int*)(0x42C900D8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A23 *((volatile unsigned int*)(0x42C900DCUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A24 *((volatile unsigned int*)(0x42C900E0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A25 *((volatile unsigned int*)(0x42C900E4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A26 *((volatile unsigned int*)(0x42C900E8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A27 *((volatile unsigned int*)(0x42C900ECUL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A28 *((volatile unsigned int*)(0x42C900F0UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A29 *((volatile unsigned int*)(0x42C900F4UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A30 *((volatile unsigned int*)(0x42C900F8UL)) -#define bFM3_ETHERNET_MAC0_MAR16L_A31 *((volatile unsigned int*)(0x42C900FCUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A32 *((volatile unsigned int*)(0x42C90100UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A33 *((volatile unsigned int*)(0x42C90104UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A34 *((volatile unsigned int*)(0x42C90108UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A35 *((volatile unsigned int*)(0x42C9010CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A36 *((volatile unsigned int*)(0x42C90110UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A37 *((volatile unsigned int*)(0x42C90114UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A38 *((volatile unsigned int*)(0x42C90118UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A39 *((volatile unsigned int*)(0x42C9011CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A40 *((volatile unsigned int*)(0x42C90120UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A41 *((volatile unsigned int*)(0x42C90124UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A42 *((volatile unsigned int*)(0x42C90128UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A43 *((volatile unsigned int*)(0x42C9012CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A44 *((volatile unsigned int*)(0x42C90130UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A45 *((volatile unsigned int*)(0x42C90134UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A46 *((volatile unsigned int*)(0x42C90138UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_A47 *((volatile unsigned int*)(0x42C9013CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC0 *((volatile unsigned int*)(0x42C90160UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC1 *((volatile unsigned int*)(0x42C90164UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC2 *((volatile unsigned int*)(0x42C90168UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC3 *((volatile unsigned int*)(0x42C9016CUL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC4 *((volatile unsigned int*)(0x42C90170UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_MBC5 *((volatile unsigned int*)(0x42C90174UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_SA *((volatile unsigned int*)(0x42C90178UL)) -#define bFM3_ETHERNET_MAC0_MAR17H_AE *((volatile unsigned int*)(0x42C9017CUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A0 *((volatile unsigned int*)(0x42C90180UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A1 *((volatile unsigned int*)(0x42C90184UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A2 *((volatile unsigned int*)(0x42C90188UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A3 *((volatile unsigned int*)(0x42C9018CUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A4 *((volatile unsigned int*)(0x42C90190UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A5 *((volatile unsigned int*)(0x42C90194UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A6 *((volatile unsigned int*)(0x42C90198UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A7 *((volatile unsigned int*)(0x42C9019CUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A8 *((volatile unsigned int*)(0x42C901A0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A9 *((volatile unsigned int*)(0x42C901A4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A10 *((volatile unsigned int*)(0x42C901A8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A11 *((volatile unsigned int*)(0x42C901ACUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A12 *((volatile unsigned int*)(0x42C901B0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A13 *((volatile unsigned int*)(0x42C901B4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A14 *((volatile unsigned int*)(0x42C901B8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A15 *((volatile unsigned int*)(0x42C901BCUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A16 *((volatile unsigned int*)(0x42C901C0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A17 *((volatile unsigned int*)(0x42C901C4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A18 *((volatile unsigned int*)(0x42C901C8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A19 *((volatile unsigned int*)(0x42C901CCUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A20 *((volatile unsigned int*)(0x42C901D0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A21 *((volatile unsigned int*)(0x42C901D4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A22 *((volatile unsigned int*)(0x42C901D8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A23 *((volatile unsigned int*)(0x42C901DCUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A24 *((volatile unsigned int*)(0x42C901E0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A25 *((volatile unsigned int*)(0x42C901E4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A26 *((volatile unsigned int*)(0x42C901E8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A27 *((volatile unsigned int*)(0x42C901ECUL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A28 *((volatile unsigned int*)(0x42C901F0UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A29 *((volatile unsigned int*)(0x42C901F4UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A30 *((volatile unsigned int*)(0x42C901F8UL)) -#define bFM3_ETHERNET_MAC0_MAR17L_A31 *((volatile unsigned int*)(0x42C901FCUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A32 *((volatile unsigned int*)(0x42C90200UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A33 *((volatile unsigned int*)(0x42C90204UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A34 *((volatile unsigned int*)(0x42C90208UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A35 *((volatile unsigned int*)(0x42C9020CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A36 *((volatile unsigned int*)(0x42C90210UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A37 *((volatile unsigned int*)(0x42C90214UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A38 *((volatile unsigned int*)(0x42C90218UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A39 *((volatile unsigned int*)(0x42C9021CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A40 *((volatile unsigned int*)(0x42C90220UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A41 *((volatile unsigned int*)(0x42C90224UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A42 *((volatile unsigned int*)(0x42C90228UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A43 *((volatile unsigned int*)(0x42C9022CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A44 *((volatile unsigned int*)(0x42C90230UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A45 *((volatile unsigned int*)(0x42C90234UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A46 *((volatile unsigned int*)(0x42C90238UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_A47 *((volatile unsigned int*)(0x42C9023CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC0 *((volatile unsigned int*)(0x42C90260UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC1 *((volatile unsigned int*)(0x42C90264UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC2 *((volatile unsigned int*)(0x42C90268UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC3 *((volatile unsigned int*)(0x42C9026CUL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC4 *((volatile unsigned int*)(0x42C90270UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_MBC5 *((volatile unsigned int*)(0x42C90274UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_SA *((volatile unsigned int*)(0x42C90278UL)) -#define bFM3_ETHERNET_MAC0_MAR18H_AE *((volatile unsigned int*)(0x42C9027CUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A0 *((volatile unsigned int*)(0x42C90280UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A1 *((volatile unsigned int*)(0x42C90284UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A2 *((volatile unsigned int*)(0x42C90288UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A3 *((volatile unsigned int*)(0x42C9028CUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A4 *((volatile unsigned int*)(0x42C90290UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A5 *((volatile unsigned int*)(0x42C90294UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A6 *((volatile unsigned int*)(0x42C90298UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A7 *((volatile unsigned int*)(0x42C9029CUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A8 *((volatile unsigned int*)(0x42C902A0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A9 *((volatile unsigned int*)(0x42C902A4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A10 *((volatile unsigned int*)(0x42C902A8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A11 *((volatile unsigned int*)(0x42C902ACUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A12 *((volatile unsigned int*)(0x42C902B0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A13 *((volatile unsigned int*)(0x42C902B4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A14 *((volatile unsigned int*)(0x42C902B8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A15 *((volatile unsigned int*)(0x42C902BCUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A16 *((volatile unsigned int*)(0x42C902C0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A17 *((volatile unsigned int*)(0x42C902C4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A18 *((volatile unsigned int*)(0x42C902C8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A19 *((volatile unsigned int*)(0x42C902CCUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A20 *((volatile unsigned int*)(0x42C902D0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A21 *((volatile unsigned int*)(0x42C902D4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A22 *((volatile unsigned int*)(0x42C902D8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A23 *((volatile unsigned int*)(0x42C902DCUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A24 *((volatile unsigned int*)(0x42C902E0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A25 *((volatile unsigned int*)(0x42C902E4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A26 *((volatile unsigned int*)(0x42C902E8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A27 *((volatile unsigned int*)(0x42C902ECUL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A28 *((volatile unsigned int*)(0x42C902F0UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A29 *((volatile unsigned int*)(0x42C902F4UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A30 *((volatile unsigned int*)(0x42C902F8UL)) -#define bFM3_ETHERNET_MAC0_MAR18L_A31 *((volatile unsigned int*)(0x42C902FCUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A32 *((volatile unsigned int*)(0x42C90300UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A33 *((volatile unsigned int*)(0x42C90304UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A34 *((volatile unsigned int*)(0x42C90308UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A35 *((volatile unsigned int*)(0x42C9030CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A36 *((volatile unsigned int*)(0x42C90310UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A37 *((volatile unsigned int*)(0x42C90314UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A38 *((volatile unsigned int*)(0x42C90318UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A39 *((volatile unsigned int*)(0x42C9031CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A40 *((volatile unsigned int*)(0x42C90320UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A41 *((volatile unsigned int*)(0x42C90324UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A42 *((volatile unsigned int*)(0x42C90328UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A43 *((volatile unsigned int*)(0x42C9032CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A44 *((volatile unsigned int*)(0x42C90330UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A45 *((volatile unsigned int*)(0x42C90334UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A46 *((volatile unsigned int*)(0x42C90338UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_A47 *((volatile unsigned int*)(0x42C9033CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC0 *((volatile unsigned int*)(0x42C90360UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC1 *((volatile unsigned int*)(0x42C90364UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC2 *((volatile unsigned int*)(0x42C90368UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC3 *((volatile unsigned int*)(0x42C9036CUL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC4 *((volatile unsigned int*)(0x42C90370UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_MBC5 *((volatile unsigned int*)(0x42C90374UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_SA *((volatile unsigned int*)(0x42C90378UL)) -#define bFM3_ETHERNET_MAC0_MAR19H_AE *((volatile unsigned int*)(0x42C9037CUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A0 *((volatile unsigned int*)(0x42C90380UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A1 *((volatile unsigned int*)(0x42C90384UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A2 *((volatile unsigned int*)(0x42C90388UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A3 *((volatile unsigned int*)(0x42C9038CUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A4 *((volatile unsigned int*)(0x42C90390UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A5 *((volatile unsigned int*)(0x42C90394UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A6 *((volatile unsigned int*)(0x42C90398UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A7 *((volatile unsigned int*)(0x42C9039CUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A8 *((volatile unsigned int*)(0x42C903A0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A9 *((volatile unsigned int*)(0x42C903A4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A10 *((volatile unsigned int*)(0x42C903A8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A11 *((volatile unsigned int*)(0x42C903ACUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A12 *((volatile unsigned int*)(0x42C903B0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A13 *((volatile unsigned int*)(0x42C903B4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A14 *((volatile unsigned int*)(0x42C903B8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A15 *((volatile unsigned int*)(0x42C903BCUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A16 *((volatile unsigned int*)(0x42C903C0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A17 *((volatile unsigned int*)(0x42C903C4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A18 *((volatile unsigned int*)(0x42C903C8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A19 *((volatile unsigned int*)(0x42C903CCUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A20 *((volatile unsigned int*)(0x42C903D0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A21 *((volatile unsigned int*)(0x42C903D4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A22 *((volatile unsigned int*)(0x42C903D8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A23 *((volatile unsigned int*)(0x42C903DCUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A24 *((volatile unsigned int*)(0x42C903E0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A25 *((volatile unsigned int*)(0x42C903E4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A26 *((volatile unsigned int*)(0x42C903E8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A27 *((volatile unsigned int*)(0x42C903ECUL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A28 *((volatile unsigned int*)(0x42C903F0UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A29 *((volatile unsigned int*)(0x42C903F4UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A30 *((volatile unsigned int*)(0x42C903F8UL)) -#define bFM3_ETHERNET_MAC0_MAR19L_A31 *((volatile unsigned int*)(0x42C903FCUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A32 *((volatile unsigned int*)(0x42C90400UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A33 *((volatile unsigned int*)(0x42C90404UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A34 *((volatile unsigned int*)(0x42C90408UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A35 *((volatile unsigned int*)(0x42C9040CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A36 *((volatile unsigned int*)(0x42C90410UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A37 *((volatile unsigned int*)(0x42C90414UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A38 *((volatile unsigned int*)(0x42C90418UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A39 *((volatile unsigned int*)(0x42C9041CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A40 *((volatile unsigned int*)(0x42C90420UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A41 *((volatile unsigned int*)(0x42C90424UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A42 *((volatile unsigned int*)(0x42C90428UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A43 *((volatile unsigned int*)(0x42C9042CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A44 *((volatile unsigned int*)(0x42C90430UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A45 *((volatile unsigned int*)(0x42C90434UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A46 *((volatile unsigned int*)(0x42C90438UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_A47 *((volatile unsigned int*)(0x42C9043CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC0 *((volatile unsigned int*)(0x42C90460UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC1 *((volatile unsigned int*)(0x42C90464UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC2 *((volatile unsigned int*)(0x42C90468UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC3 *((volatile unsigned int*)(0x42C9046CUL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC4 *((volatile unsigned int*)(0x42C90470UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_MBC5 *((volatile unsigned int*)(0x42C90474UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_SA *((volatile unsigned int*)(0x42C90478UL)) -#define bFM3_ETHERNET_MAC0_MAR20H_AE *((volatile unsigned int*)(0x42C9047CUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A0 *((volatile unsigned int*)(0x42C90480UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A1 *((volatile unsigned int*)(0x42C90484UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A2 *((volatile unsigned int*)(0x42C90488UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A3 *((volatile unsigned int*)(0x42C9048CUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A4 *((volatile unsigned int*)(0x42C90490UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A5 *((volatile unsigned int*)(0x42C90494UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A6 *((volatile unsigned int*)(0x42C90498UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A7 *((volatile unsigned int*)(0x42C9049CUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A8 *((volatile unsigned int*)(0x42C904A0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A9 *((volatile unsigned int*)(0x42C904A4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A10 *((volatile unsigned int*)(0x42C904A8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A11 *((volatile unsigned int*)(0x42C904ACUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A12 *((volatile unsigned int*)(0x42C904B0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A13 *((volatile unsigned int*)(0x42C904B4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A14 *((volatile unsigned int*)(0x42C904B8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A15 *((volatile unsigned int*)(0x42C904BCUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A16 *((volatile unsigned int*)(0x42C904C0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A17 *((volatile unsigned int*)(0x42C904C4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A18 *((volatile unsigned int*)(0x42C904C8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A19 *((volatile unsigned int*)(0x42C904CCUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A20 *((volatile unsigned int*)(0x42C904D0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A21 *((volatile unsigned int*)(0x42C904D4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A22 *((volatile unsigned int*)(0x42C904D8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A23 *((volatile unsigned int*)(0x42C904DCUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A24 *((volatile unsigned int*)(0x42C904E0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A25 *((volatile unsigned int*)(0x42C904E4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A26 *((volatile unsigned int*)(0x42C904E8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A27 *((volatile unsigned int*)(0x42C904ECUL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A28 *((volatile unsigned int*)(0x42C904F0UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A29 *((volatile unsigned int*)(0x42C904F4UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A30 *((volatile unsigned int*)(0x42C904F8UL)) -#define bFM3_ETHERNET_MAC0_MAR20L_A31 *((volatile unsigned int*)(0x42C904FCUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A32 *((volatile unsigned int*)(0x42C90500UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A33 *((volatile unsigned int*)(0x42C90504UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A34 *((volatile unsigned int*)(0x42C90508UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A35 *((volatile unsigned int*)(0x42C9050CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A36 *((volatile unsigned int*)(0x42C90510UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A37 *((volatile unsigned int*)(0x42C90514UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A38 *((volatile unsigned int*)(0x42C90518UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A39 *((volatile unsigned int*)(0x42C9051CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A40 *((volatile unsigned int*)(0x42C90520UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A41 *((volatile unsigned int*)(0x42C90524UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A42 *((volatile unsigned int*)(0x42C90528UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A43 *((volatile unsigned int*)(0x42C9052CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A44 *((volatile unsigned int*)(0x42C90530UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A45 *((volatile unsigned int*)(0x42C90534UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A46 *((volatile unsigned int*)(0x42C90538UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_A47 *((volatile unsigned int*)(0x42C9053CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC0 *((volatile unsigned int*)(0x42C90560UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC1 *((volatile unsigned int*)(0x42C90564UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC2 *((volatile unsigned int*)(0x42C90568UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC3 *((volatile unsigned int*)(0x42C9056CUL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC4 *((volatile unsigned int*)(0x42C90570UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_MBC5 *((volatile unsigned int*)(0x42C90574UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_SA *((volatile unsigned int*)(0x42C90578UL)) -#define bFM3_ETHERNET_MAC0_MAR21H_AE *((volatile unsigned int*)(0x42C9057CUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A0 *((volatile unsigned int*)(0x42C90580UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A1 *((volatile unsigned int*)(0x42C90584UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A2 *((volatile unsigned int*)(0x42C90588UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A3 *((volatile unsigned int*)(0x42C9058CUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A4 *((volatile unsigned int*)(0x42C90590UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A5 *((volatile unsigned int*)(0x42C90594UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A6 *((volatile unsigned int*)(0x42C90598UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A7 *((volatile unsigned int*)(0x42C9059CUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A8 *((volatile unsigned int*)(0x42C905A0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A9 *((volatile unsigned int*)(0x42C905A4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A10 *((volatile unsigned int*)(0x42C905A8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A11 *((volatile unsigned int*)(0x42C905ACUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A12 *((volatile unsigned int*)(0x42C905B0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A13 *((volatile unsigned int*)(0x42C905B4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A14 *((volatile unsigned int*)(0x42C905B8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A15 *((volatile unsigned int*)(0x42C905BCUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A16 *((volatile unsigned int*)(0x42C905C0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A17 *((volatile unsigned int*)(0x42C905C4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A18 *((volatile unsigned int*)(0x42C905C8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A19 *((volatile unsigned int*)(0x42C905CCUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A20 *((volatile unsigned int*)(0x42C905D0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A21 *((volatile unsigned int*)(0x42C905D4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A22 *((volatile unsigned int*)(0x42C905D8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A23 *((volatile unsigned int*)(0x42C905DCUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A24 *((volatile unsigned int*)(0x42C905E0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A25 *((volatile unsigned int*)(0x42C905E4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A26 *((volatile unsigned int*)(0x42C905E8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A27 *((volatile unsigned int*)(0x42C905ECUL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A28 *((volatile unsigned int*)(0x42C905F0UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A29 *((volatile unsigned int*)(0x42C905F4UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A30 *((volatile unsigned int*)(0x42C905F8UL)) -#define bFM3_ETHERNET_MAC0_MAR21L_A31 *((volatile unsigned int*)(0x42C905FCUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A32 *((volatile unsigned int*)(0x42C90600UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A33 *((volatile unsigned int*)(0x42C90604UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A34 *((volatile unsigned int*)(0x42C90608UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A35 *((volatile unsigned int*)(0x42C9060CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A36 *((volatile unsigned int*)(0x42C90610UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A37 *((volatile unsigned int*)(0x42C90614UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A38 *((volatile unsigned int*)(0x42C90618UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A39 *((volatile unsigned int*)(0x42C9061CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A40 *((volatile unsigned int*)(0x42C90620UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A41 *((volatile unsigned int*)(0x42C90624UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A42 *((volatile unsigned int*)(0x42C90628UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A43 *((volatile unsigned int*)(0x42C9062CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A44 *((volatile unsigned int*)(0x42C90630UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A45 *((volatile unsigned int*)(0x42C90634UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A46 *((volatile unsigned int*)(0x42C90638UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_A47 *((volatile unsigned int*)(0x42C9063CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC0 *((volatile unsigned int*)(0x42C90660UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC1 *((volatile unsigned int*)(0x42C90664UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC2 *((volatile unsigned int*)(0x42C90668UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC3 *((volatile unsigned int*)(0x42C9066CUL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC4 *((volatile unsigned int*)(0x42C90670UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_MBC5 *((volatile unsigned int*)(0x42C90674UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_SA *((volatile unsigned int*)(0x42C90678UL)) -#define bFM3_ETHERNET_MAC0_MAR22H_AE *((volatile unsigned int*)(0x42C9067CUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A0 *((volatile unsigned int*)(0x42C90680UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A1 *((volatile unsigned int*)(0x42C90684UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A2 *((volatile unsigned int*)(0x42C90688UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A3 *((volatile unsigned int*)(0x42C9068CUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A4 *((volatile unsigned int*)(0x42C90690UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A5 *((volatile unsigned int*)(0x42C90694UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A6 *((volatile unsigned int*)(0x42C90698UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A7 *((volatile unsigned int*)(0x42C9069CUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A8 *((volatile unsigned int*)(0x42C906A0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A9 *((volatile unsigned int*)(0x42C906A4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A10 *((volatile unsigned int*)(0x42C906A8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A11 *((volatile unsigned int*)(0x42C906ACUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A12 *((volatile unsigned int*)(0x42C906B0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A13 *((volatile unsigned int*)(0x42C906B4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A14 *((volatile unsigned int*)(0x42C906B8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A15 *((volatile unsigned int*)(0x42C906BCUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A16 *((volatile unsigned int*)(0x42C906C0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A17 *((volatile unsigned int*)(0x42C906C4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A18 *((volatile unsigned int*)(0x42C906C8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A19 *((volatile unsigned int*)(0x42C906CCUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A20 *((volatile unsigned int*)(0x42C906D0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A21 *((volatile unsigned int*)(0x42C906D4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A22 *((volatile unsigned int*)(0x42C906D8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A23 *((volatile unsigned int*)(0x42C906DCUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A24 *((volatile unsigned int*)(0x42C906E0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A25 *((volatile unsigned int*)(0x42C906E4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A26 *((volatile unsigned int*)(0x42C906E8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A27 *((volatile unsigned int*)(0x42C906ECUL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A28 *((volatile unsigned int*)(0x42C906F0UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A29 *((volatile unsigned int*)(0x42C906F4UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A30 *((volatile unsigned int*)(0x42C906F8UL)) -#define bFM3_ETHERNET_MAC0_MAR22L_A31 *((volatile unsigned int*)(0x42C906FCUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A32 *((volatile unsigned int*)(0x42C90700UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A33 *((volatile unsigned int*)(0x42C90704UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A34 *((volatile unsigned int*)(0x42C90708UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A35 *((volatile unsigned int*)(0x42C9070CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A36 *((volatile unsigned int*)(0x42C90710UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A37 *((volatile unsigned int*)(0x42C90714UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A38 *((volatile unsigned int*)(0x42C90718UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A39 *((volatile unsigned int*)(0x42C9071CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A40 *((volatile unsigned int*)(0x42C90720UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A41 *((volatile unsigned int*)(0x42C90724UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A42 *((volatile unsigned int*)(0x42C90728UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A43 *((volatile unsigned int*)(0x42C9072CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A44 *((volatile unsigned int*)(0x42C90730UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A45 *((volatile unsigned int*)(0x42C90734UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A46 *((volatile unsigned int*)(0x42C90738UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_A47 *((volatile unsigned int*)(0x42C9073CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC0 *((volatile unsigned int*)(0x42C90760UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC1 *((volatile unsigned int*)(0x42C90764UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC2 *((volatile unsigned int*)(0x42C90768UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC3 *((volatile unsigned int*)(0x42C9076CUL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC4 *((volatile unsigned int*)(0x42C90770UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_MBC5 *((volatile unsigned int*)(0x42C90774UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_SA *((volatile unsigned int*)(0x42C90778UL)) -#define bFM3_ETHERNET_MAC0_MAR23H_AE *((volatile unsigned int*)(0x42C9077CUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A0 *((volatile unsigned int*)(0x42C90780UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A1 *((volatile unsigned int*)(0x42C90784UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A2 *((volatile unsigned int*)(0x42C90788UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A3 *((volatile unsigned int*)(0x42C9078CUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A4 *((volatile unsigned int*)(0x42C90790UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A5 *((volatile unsigned int*)(0x42C90794UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A6 *((volatile unsigned int*)(0x42C90798UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A7 *((volatile unsigned int*)(0x42C9079CUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A8 *((volatile unsigned int*)(0x42C907A0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A9 *((volatile unsigned int*)(0x42C907A4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A10 *((volatile unsigned int*)(0x42C907A8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A11 *((volatile unsigned int*)(0x42C907ACUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A12 *((volatile unsigned int*)(0x42C907B0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A13 *((volatile unsigned int*)(0x42C907B4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A14 *((volatile unsigned int*)(0x42C907B8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A15 *((volatile unsigned int*)(0x42C907BCUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A16 *((volatile unsigned int*)(0x42C907C0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A17 *((volatile unsigned int*)(0x42C907C4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A18 *((volatile unsigned int*)(0x42C907C8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A19 *((volatile unsigned int*)(0x42C907CCUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A20 *((volatile unsigned int*)(0x42C907D0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A21 *((volatile unsigned int*)(0x42C907D4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A22 *((volatile unsigned int*)(0x42C907D8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A23 *((volatile unsigned int*)(0x42C907DCUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A24 *((volatile unsigned int*)(0x42C907E0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A25 *((volatile unsigned int*)(0x42C907E4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A26 *((volatile unsigned int*)(0x42C907E8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A27 *((volatile unsigned int*)(0x42C907ECUL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A28 *((volatile unsigned int*)(0x42C907F0UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A29 *((volatile unsigned int*)(0x42C907F4UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A30 *((volatile unsigned int*)(0x42C907F8UL)) -#define bFM3_ETHERNET_MAC0_MAR23L_A31 *((volatile unsigned int*)(0x42C907FCUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A32 *((volatile unsigned int*)(0x42C90800UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A33 *((volatile unsigned int*)(0x42C90804UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A34 *((volatile unsigned int*)(0x42C90808UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A35 *((volatile unsigned int*)(0x42C9080CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A36 *((volatile unsigned int*)(0x42C90810UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A37 *((volatile unsigned int*)(0x42C90814UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A38 *((volatile unsigned int*)(0x42C90818UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A39 *((volatile unsigned int*)(0x42C9081CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A40 *((volatile unsigned int*)(0x42C90820UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A41 *((volatile unsigned int*)(0x42C90824UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A42 *((volatile unsigned int*)(0x42C90828UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A43 *((volatile unsigned int*)(0x42C9082CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A44 *((volatile unsigned int*)(0x42C90830UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A45 *((volatile unsigned int*)(0x42C90834UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A46 *((volatile unsigned int*)(0x42C90838UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_A47 *((volatile unsigned int*)(0x42C9083CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC0 *((volatile unsigned int*)(0x42C90860UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC1 *((volatile unsigned int*)(0x42C90864UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC2 *((volatile unsigned int*)(0x42C90868UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC3 *((volatile unsigned int*)(0x42C9086CUL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC4 *((volatile unsigned int*)(0x42C90870UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_MBC5 *((volatile unsigned int*)(0x42C90874UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_SA *((volatile unsigned int*)(0x42C90878UL)) -#define bFM3_ETHERNET_MAC0_MAR24H_AE *((volatile unsigned int*)(0x42C9087CUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A0 *((volatile unsigned int*)(0x42C90880UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A1 *((volatile unsigned int*)(0x42C90884UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A2 *((volatile unsigned int*)(0x42C90888UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A3 *((volatile unsigned int*)(0x42C9088CUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A4 *((volatile unsigned int*)(0x42C90890UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A5 *((volatile unsigned int*)(0x42C90894UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A6 *((volatile unsigned int*)(0x42C90898UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A7 *((volatile unsigned int*)(0x42C9089CUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A8 *((volatile unsigned int*)(0x42C908A0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A9 *((volatile unsigned int*)(0x42C908A4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A10 *((volatile unsigned int*)(0x42C908A8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A11 *((volatile unsigned int*)(0x42C908ACUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A12 *((volatile unsigned int*)(0x42C908B0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A13 *((volatile unsigned int*)(0x42C908B4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A14 *((volatile unsigned int*)(0x42C908B8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A15 *((volatile unsigned int*)(0x42C908BCUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A16 *((volatile unsigned int*)(0x42C908C0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A17 *((volatile unsigned int*)(0x42C908C4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A18 *((volatile unsigned int*)(0x42C908C8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A19 *((volatile unsigned int*)(0x42C908CCUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A20 *((volatile unsigned int*)(0x42C908D0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A21 *((volatile unsigned int*)(0x42C908D4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A22 *((volatile unsigned int*)(0x42C908D8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A23 *((volatile unsigned int*)(0x42C908DCUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A24 *((volatile unsigned int*)(0x42C908E0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A25 *((volatile unsigned int*)(0x42C908E4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A26 *((volatile unsigned int*)(0x42C908E8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A27 *((volatile unsigned int*)(0x42C908ECUL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A28 *((volatile unsigned int*)(0x42C908F0UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A29 *((volatile unsigned int*)(0x42C908F4UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A30 *((volatile unsigned int*)(0x42C908F8UL)) -#define bFM3_ETHERNET_MAC0_MAR24L_A31 *((volatile unsigned int*)(0x42C908FCUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A32 *((volatile unsigned int*)(0x42C90900UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A33 *((volatile unsigned int*)(0x42C90904UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A34 *((volatile unsigned int*)(0x42C90908UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A35 *((volatile unsigned int*)(0x42C9090CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A36 *((volatile unsigned int*)(0x42C90910UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A37 *((volatile unsigned int*)(0x42C90914UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A38 *((volatile unsigned int*)(0x42C90918UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A39 *((volatile unsigned int*)(0x42C9091CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A40 *((volatile unsigned int*)(0x42C90920UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A41 *((volatile unsigned int*)(0x42C90924UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A42 *((volatile unsigned int*)(0x42C90928UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A43 *((volatile unsigned int*)(0x42C9092CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A44 *((volatile unsigned int*)(0x42C90930UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A45 *((volatile unsigned int*)(0x42C90934UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A46 *((volatile unsigned int*)(0x42C90938UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_A47 *((volatile unsigned int*)(0x42C9093CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC0 *((volatile unsigned int*)(0x42C90960UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC1 *((volatile unsigned int*)(0x42C90964UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC2 *((volatile unsigned int*)(0x42C90968UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC3 *((volatile unsigned int*)(0x42C9096CUL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC4 *((volatile unsigned int*)(0x42C90970UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_MBC5 *((volatile unsigned int*)(0x42C90974UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_SA *((volatile unsigned int*)(0x42C90978UL)) -#define bFM3_ETHERNET_MAC0_MAR25H_AE *((volatile unsigned int*)(0x42C9097CUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A0 *((volatile unsigned int*)(0x42C90980UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A1 *((volatile unsigned int*)(0x42C90984UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A2 *((volatile unsigned int*)(0x42C90988UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A3 *((volatile unsigned int*)(0x42C9098CUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A4 *((volatile unsigned int*)(0x42C90990UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A5 *((volatile unsigned int*)(0x42C90994UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A6 *((volatile unsigned int*)(0x42C90998UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A7 *((volatile unsigned int*)(0x42C9099CUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A8 *((volatile unsigned int*)(0x42C909A0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A9 *((volatile unsigned int*)(0x42C909A4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A10 *((volatile unsigned int*)(0x42C909A8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A11 *((volatile unsigned int*)(0x42C909ACUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A12 *((volatile unsigned int*)(0x42C909B0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A13 *((volatile unsigned int*)(0x42C909B4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A14 *((volatile unsigned int*)(0x42C909B8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A15 *((volatile unsigned int*)(0x42C909BCUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A16 *((volatile unsigned int*)(0x42C909C0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A17 *((volatile unsigned int*)(0x42C909C4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A18 *((volatile unsigned int*)(0x42C909C8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A19 *((volatile unsigned int*)(0x42C909CCUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A20 *((volatile unsigned int*)(0x42C909D0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A21 *((volatile unsigned int*)(0x42C909D4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A22 *((volatile unsigned int*)(0x42C909D8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A23 *((volatile unsigned int*)(0x42C909DCUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A24 *((volatile unsigned int*)(0x42C909E0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A25 *((volatile unsigned int*)(0x42C909E4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A26 *((volatile unsigned int*)(0x42C909E8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A27 *((volatile unsigned int*)(0x42C909ECUL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A28 *((volatile unsigned int*)(0x42C909F0UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A29 *((volatile unsigned int*)(0x42C909F4UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A30 *((volatile unsigned int*)(0x42C909F8UL)) -#define bFM3_ETHERNET_MAC0_MAR25L_A31 *((volatile unsigned int*)(0x42C909FCUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A32 *((volatile unsigned int*)(0x42C90A00UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A33 *((volatile unsigned int*)(0x42C90A04UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A34 *((volatile unsigned int*)(0x42C90A08UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A35 *((volatile unsigned int*)(0x42C90A0CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A36 *((volatile unsigned int*)(0x42C90A10UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A37 *((volatile unsigned int*)(0x42C90A14UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A38 *((volatile unsigned int*)(0x42C90A18UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A39 *((volatile unsigned int*)(0x42C90A1CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A40 *((volatile unsigned int*)(0x42C90A20UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A41 *((volatile unsigned int*)(0x42C90A24UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A42 *((volatile unsigned int*)(0x42C90A28UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A43 *((volatile unsigned int*)(0x42C90A2CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A44 *((volatile unsigned int*)(0x42C90A30UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A45 *((volatile unsigned int*)(0x42C90A34UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A46 *((volatile unsigned int*)(0x42C90A38UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_A47 *((volatile unsigned int*)(0x42C90A3CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC0 *((volatile unsigned int*)(0x42C90A60UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC1 *((volatile unsigned int*)(0x42C90A64UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC2 *((volatile unsigned int*)(0x42C90A68UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC3 *((volatile unsigned int*)(0x42C90A6CUL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC4 *((volatile unsigned int*)(0x42C90A70UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_MBC5 *((volatile unsigned int*)(0x42C90A74UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_SA *((volatile unsigned int*)(0x42C90A78UL)) -#define bFM3_ETHERNET_MAC0_MAR26H_AE *((volatile unsigned int*)(0x42C90A7CUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A0 *((volatile unsigned int*)(0x42C90A80UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A1 *((volatile unsigned int*)(0x42C90A84UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A2 *((volatile unsigned int*)(0x42C90A88UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A3 *((volatile unsigned int*)(0x42C90A8CUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A4 *((volatile unsigned int*)(0x42C90A90UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A5 *((volatile unsigned int*)(0x42C90A94UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A6 *((volatile unsigned int*)(0x42C90A98UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A7 *((volatile unsigned int*)(0x42C90A9CUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A8 *((volatile unsigned int*)(0x42C90AA0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A9 *((volatile unsigned int*)(0x42C90AA4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A10 *((volatile unsigned int*)(0x42C90AA8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A11 *((volatile unsigned int*)(0x42C90AACUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A12 *((volatile unsigned int*)(0x42C90AB0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A13 *((volatile unsigned int*)(0x42C90AB4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A14 *((volatile unsigned int*)(0x42C90AB8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A15 *((volatile unsigned int*)(0x42C90ABCUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A16 *((volatile unsigned int*)(0x42C90AC0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A17 *((volatile unsigned int*)(0x42C90AC4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A18 *((volatile unsigned int*)(0x42C90AC8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A19 *((volatile unsigned int*)(0x42C90ACCUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A20 *((volatile unsigned int*)(0x42C90AD0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A21 *((volatile unsigned int*)(0x42C90AD4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A22 *((volatile unsigned int*)(0x42C90AD8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A23 *((volatile unsigned int*)(0x42C90ADCUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A24 *((volatile unsigned int*)(0x42C90AE0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A25 *((volatile unsigned int*)(0x42C90AE4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A26 *((volatile unsigned int*)(0x42C90AE8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A27 *((volatile unsigned int*)(0x42C90AECUL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A28 *((volatile unsigned int*)(0x42C90AF0UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A29 *((volatile unsigned int*)(0x42C90AF4UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A30 *((volatile unsigned int*)(0x42C90AF8UL)) -#define bFM3_ETHERNET_MAC0_MAR26L_A31 *((volatile unsigned int*)(0x42C90AFCUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A32 *((volatile unsigned int*)(0x42C90B00UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A33 *((volatile unsigned int*)(0x42C90B04UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A34 *((volatile unsigned int*)(0x42C90B08UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A35 *((volatile unsigned int*)(0x42C90B0CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A36 *((volatile unsigned int*)(0x42C90B10UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A37 *((volatile unsigned int*)(0x42C90B14UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A38 *((volatile unsigned int*)(0x42C90B18UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A39 *((volatile unsigned int*)(0x42C90B1CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A40 *((volatile unsigned int*)(0x42C90B20UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A41 *((volatile unsigned int*)(0x42C90B24UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A42 *((volatile unsigned int*)(0x42C90B28UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A43 *((volatile unsigned int*)(0x42C90B2CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A44 *((volatile unsigned int*)(0x42C90B30UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A45 *((volatile unsigned int*)(0x42C90B34UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A46 *((volatile unsigned int*)(0x42C90B38UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_A47 *((volatile unsigned int*)(0x42C90B3CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC0 *((volatile unsigned int*)(0x42C90B60UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC1 *((volatile unsigned int*)(0x42C90B64UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC2 *((volatile unsigned int*)(0x42C90B68UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC3 *((volatile unsigned int*)(0x42C90B6CUL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC4 *((volatile unsigned int*)(0x42C90B70UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_MBC5 *((volatile unsigned int*)(0x42C90B74UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_SA *((volatile unsigned int*)(0x42C90B78UL)) -#define bFM3_ETHERNET_MAC0_MAR27H_AE *((volatile unsigned int*)(0x42C90B7CUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A0 *((volatile unsigned int*)(0x42C90B80UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A1 *((volatile unsigned int*)(0x42C90B84UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A2 *((volatile unsigned int*)(0x42C90B88UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A3 *((volatile unsigned int*)(0x42C90B8CUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A4 *((volatile unsigned int*)(0x42C90B90UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A5 *((volatile unsigned int*)(0x42C90B94UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A6 *((volatile unsigned int*)(0x42C90B98UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A7 *((volatile unsigned int*)(0x42C90B9CUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A8 *((volatile unsigned int*)(0x42C90BA0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A9 *((volatile unsigned int*)(0x42C90BA4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A10 *((volatile unsigned int*)(0x42C90BA8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A11 *((volatile unsigned int*)(0x42C90BACUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A12 *((volatile unsigned int*)(0x42C90BB0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A13 *((volatile unsigned int*)(0x42C90BB4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A14 *((volatile unsigned int*)(0x42C90BB8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A15 *((volatile unsigned int*)(0x42C90BBCUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A16 *((volatile unsigned int*)(0x42C90BC0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A17 *((volatile unsigned int*)(0x42C90BC4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A18 *((volatile unsigned int*)(0x42C90BC8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A19 *((volatile unsigned int*)(0x42C90BCCUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A20 *((volatile unsigned int*)(0x42C90BD0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A21 *((volatile unsigned int*)(0x42C90BD4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A22 *((volatile unsigned int*)(0x42C90BD8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A23 *((volatile unsigned int*)(0x42C90BDCUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A24 *((volatile unsigned int*)(0x42C90BE0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A25 *((volatile unsigned int*)(0x42C90BE4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A26 *((volatile unsigned int*)(0x42C90BE8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A27 *((volatile unsigned int*)(0x42C90BECUL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A28 *((volatile unsigned int*)(0x42C90BF0UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A29 *((volatile unsigned int*)(0x42C90BF4UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A30 *((volatile unsigned int*)(0x42C90BF8UL)) -#define bFM3_ETHERNET_MAC0_MAR27L_A31 *((volatile unsigned int*)(0x42C90BFCUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A32 *((volatile unsigned int*)(0x42C90C00UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A33 *((volatile unsigned int*)(0x42C90C04UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A34 *((volatile unsigned int*)(0x42C90C08UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A35 *((volatile unsigned int*)(0x42C90C0CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A36 *((volatile unsigned int*)(0x42C90C10UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A37 *((volatile unsigned int*)(0x42C90C14UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A38 *((volatile unsigned int*)(0x42C90C18UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A39 *((volatile unsigned int*)(0x42C90C1CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A40 *((volatile unsigned int*)(0x42C90C20UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A41 *((volatile unsigned int*)(0x42C90C24UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A42 *((volatile unsigned int*)(0x42C90C28UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A43 *((volatile unsigned int*)(0x42C90C2CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A44 *((volatile unsigned int*)(0x42C90C30UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A45 *((volatile unsigned int*)(0x42C90C34UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A46 *((volatile unsigned int*)(0x42C90C38UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_A47 *((volatile unsigned int*)(0x42C90C3CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC0 *((volatile unsigned int*)(0x42C90C60UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC1 *((volatile unsigned int*)(0x42C90C64UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC2 *((volatile unsigned int*)(0x42C90C68UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC3 *((volatile unsigned int*)(0x42C90C6CUL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC4 *((volatile unsigned int*)(0x42C90C70UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_MBC5 *((volatile unsigned int*)(0x42C90C74UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_SA *((volatile unsigned int*)(0x42C90C78UL)) -#define bFM3_ETHERNET_MAC0_MAR28H_AE *((volatile unsigned int*)(0x42C90C7CUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A0 *((volatile unsigned int*)(0x42C90C80UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A1 *((volatile unsigned int*)(0x42C90C84UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A2 *((volatile unsigned int*)(0x42C90C88UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A3 *((volatile unsigned int*)(0x42C90C8CUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A4 *((volatile unsigned int*)(0x42C90C90UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A5 *((volatile unsigned int*)(0x42C90C94UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A6 *((volatile unsigned int*)(0x42C90C98UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A7 *((volatile unsigned int*)(0x42C90C9CUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A8 *((volatile unsigned int*)(0x42C90CA0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A9 *((volatile unsigned int*)(0x42C90CA4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A10 *((volatile unsigned int*)(0x42C90CA8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A11 *((volatile unsigned int*)(0x42C90CACUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A12 *((volatile unsigned int*)(0x42C90CB0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A13 *((volatile unsigned int*)(0x42C90CB4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A14 *((volatile unsigned int*)(0x42C90CB8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A15 *((volatile unsigned int*)(0x42C90CBCUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A16 *((volatile unsigned int*)(0x42C90CC0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A17 *((volatile unsigned int*)(0x42C90CC4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A18 *((volatile unsigned int*)(0x42C90CC8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A19 *((volatile unsigned int*)(0x42C90CCCUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A20 *((volatile unsigned int*)(0x42C90CD0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A21 *((volatile unsigned int*)(0x42C90CD4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A22 *((volatile unsigned int*)(0x42C90CD8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A23 *((volatile unsigned int*)(0x42C90CDCUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A24 *((volatile unsigned int*)(0x42C90CE0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A25 *((volatile unsigned int*)(0x42C90CE4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A26 *((volatile unsigned int*)(0x42C90CE8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A27 *((volatile unsigned int*)(0x42C90CECUL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A28 *((volatile unsigned int*)(0x42C90CF0UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A29 *((volatile unsigned int*)(0x42C90CF4UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A30 *((volatile unsigned int*)(0x42C90CF8UL)) -#define bFM3_ETHERNET_MAC0_MAR28L_A31 *((volatile unsigned int*)(0x42C90CFCUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A32 *((volatile unsigned int*)(0x42C90D00UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A33 *((volatile unsigned int*)(0x42C90D04UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A34 *((volatile unsigned int*)(0x42C90D08UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A35 *((volatile unsigned int*)(0x42C90D0CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A36 *((volatile unsigned int*)(0x42C90D10UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A37 *((volatile unsigned int*)(0x42C90D14UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A38 *((volatile unsigned int*)(0x42C90D18UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A39 *((volatile unsigned int*)(0x42C90D1CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A40 *((volatile unsigned int*)(0x42C90D20UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A41 *((volatile unsigned int*)(0x42C90D24UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A42 *((volatile unsigned int*)(0x42C90D28UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A43 *((volatile unsigned int*)(0x42C90D2CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A44 *((volatile unsigned int*)(0x42C90D30UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A45 *((volatile unsigned int*)(0x42C90D34UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A46 *((volatile unsigned int*)(0x42C90D38UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_A47 *((volatile unsigned int*)(0x42C90D3CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC0 *((volatile unsigned int*)(0x42C90D60UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC1 *((volatile unsigned int*)(0x42C90D64UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC2 *((volatile unsigned int*)(0x42C90D68UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC3 *((volatile unsigned int*)(0x42C90D6CUL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC4 *((volatile unsigned int*)(0x42C90D70UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_MBC5 *((volatile unsigned int*)(0x42C90D74UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_SA *((volatile unsigned int*)(0x42C90D78UL)) -#define bFM3_ETHERNET_MAC0_MAR29H_AE *((volatile unsigned int*)(0x42C90D7CUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A0 *((volatile unsigned int*)(0x42C90D80UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A1 *((volatile unsigned int*)(0x42C90D84UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A2 *((volatile unsigned int*)(0x42C90D88UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A3 *((volatile unsigned int*)(0x42C90D8CUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A4 *((volatile unsigned int*)(0x42C90D90UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A5 *((volatile unsigned int*)(0x42C90D94UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A6 *((volatile unsigned int*)(0x42C90D98UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A7 *((volatile unsigned int*)(0x42C90D9CUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A8 *((volatile unsigned int*)(0x42C90DA0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A9 *((volatile unsigned int*)(0x42C90DA4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A10 *((volatile unsigned int*)(0x42C90DA8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A11 *((volatile unsigned int*)(0x42C90DACUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A12 *((volatile unsigned int*)(0x42C90DB0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A13 *((volatile unsigned int*)(0x42C90DB4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A14 *((volatile unsigned int*)(0x42C90DB8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A15 *((volatile unsigned int*)(0x42C90DBCUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A16 *((volatile unsigned int*)(0x42C90DC0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A17 *((volatile unsigned int*)(0x42C90DC4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A18 *((volatile unsigned int*)(0x42C90DC8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A19 *((volatile unsigned int*)(0x42C90DCCUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A20 *((volatile unsigned int*)(0x42C90DD0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A21 *((volatile unsigned int*)(0x42C90DD4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A22 *((volatile unsigned int*)(0x42C90DD8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A23 *((volatile unsigned int*)(0x42C90DDCUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A24 *((volatile unsigned int*)(0x42C90DE0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A25 *((volatile unsigned int*)(0x42C90DE4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A26 *((volatile unsigned int*)(0x42C90DE8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A27 *((volatile unsigned int*)(0x42C90DECUL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A28 *((volatile unsigned int*)(0x42C90DF0UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A29 *((volatile unsigned int*)(0x42C90DF4UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A30 *((volatile unsigned int*)(0x42C90DF8UL)) -#define bFM3_ETHERNET_MAC0_MAR29L_A31 *((volatile unsigned int*)(0x42C90DFCUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A32 *((volatile unsigned int*)(0x42C90E00UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A33 *((volatile unsigned int*)(0x42C90E04UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A34 *((volatile unsigned int*)(0x42C90E08UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A35 *((volatile unsigned int*)(0x42C90E0CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A36 *((volatile unsigned int*)(0x42C90E10UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A37 *((volatile unsigned int*)(0x42C90E14UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A38 *((volatile unsigned int*)(0x42C90E18UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A39 *((volatile unsigned int*)(0x42C90E1CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A40 *((volatile unsigned int*)(0x42C90E20UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A41 *((volatile unsigned int*)(0x42C90E24UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A42 *((volatile unsigned int*)(0x42C90E28UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A43 *((volatile unsigned int*)(0x42C90E2CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A44 *((volatile unsigned int*)(0x42C90E30UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A45 *((volatile unsigned int*)(0x42C90E34UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A46 *((volatile unsigned int*)(0x42C90E38UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_A47 *((volatile unsigned int*)(0x42C90E3CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC0 *((volatile unsigned int*)(0x42C90E60UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC1 *((volatile unsigned int*)(0x42C90E64UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC2 *((volatile unsigned int*)(0x42C90E68UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC3 *((volatile unsigned int*)(0x42C90E6CUL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC4 *((volatile unsigned int*)(0x42C90E70UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_MBC5 *((volatile unsigned int*)(0x42C90E74UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_SA *((volatile unsigned int*)(0x42C90E78UL)) -#define bFM3_ETHERNET_MAC0_MAR30H_AE *((volatile unsigned int*)(0x42C90E7CUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A0 *((volatile unsigned int*)(0x42C90E80UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A1 *((volatile unsigned int*)(0x42C90E84UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A2 *((volatile unsigned int*)(0x42C90E88UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A3 *((volatile unsigned int*)(0x42C90E8CUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A4 *((volatile unsigned int*)(0x42C90E90UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A5 *((volatile unsigned int*)(0x42C90E94UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A6 *((volatile unsigned int*)(0x42C90E98UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A7 *((volatile unsigned int*)(0x42C90E9CUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A8 *((volatile unsigned int*)(0x42C90EA0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A9 *((volatile unsigned int*)(0x42C90EA4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A10 *((volatile unsigned int*)(0x42C90EA8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A11 *((volatile unsigned int*)(0x42C90EACUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A12 *((volatile unsigned int*)(0x42C90EB0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A13 *((volatile unsigned int*)(0x42C90EB4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A14 *((volatile unsigned int*)(0x42C90EB8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A15 *((volatile unsigned int*)(0x42C90EBCUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A16 *((volatile unsigned int*)(0x42C90EC0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A17 *((volatile unsigned int*)(0x42C90EC4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A18 *((volatile unsigned int*)(0x42C90EC8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A19 *((volatile unsigned int*)(0x42C90ECCUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A20 *((volatile unsigned int*)(0x42C90ED0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A21 *((volatile unsigned int*)(0x42C90ED4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A22 *((volatile unsigned int*)(0x42C90ED8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A23 *((volatile unsigned int*)(0x42C90EDCUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A24 *((volatile unsigned int*)(0x42C90EE0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A25 *((volatile unsigned int*)(0x42C90EE4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A26 *((volatile unsigned int*)(0x42C90EE8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A27 *((volatile unsigned int*)(0x42C90EECUL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A28 *((volatile unsigned int*)(0x42C90EF0UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A29 *((volatile unsigned int*)(0x42C90EF4UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A30 *((volatile unsigned int*)(0x42C90EF8UL)) -#define bFM3_ETHERNET_MAC0_MAR30L_A31 *((volatile unsigned int*)(0x42C90EFCUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A32 *((volatile unsigned int*)(0x42C90F00UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A33 *((volatile unsigned int*)(0x42C90F04UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A34 *((volatile unsigned int*)(0x42C90F08UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A35 *((volatile unsigned int*)(0x42C90F0CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A36 *((volatile unsigned int*)(0x42C90F10UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A37 *((volatile unsigned int*)(0x42C90F14UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A38 *((volatile unsigned int*)(0x42C90F18UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A39 *((volatile unsigned int*)(0x42C90F1CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A40 *((volatile unsigned int*)(0x42C90F20UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A41 *((volatile unsigned int*)(0x42C90F24UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A42 *((volatile unsigned int*)(0x42C90F28UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A43 *((volatile unsigned int*)(0x42C90F2CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A44 *((volatile unsigned int*)(0x42C90F30UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A45 *((volatile unsigned int*)(0x42C90F34UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A46 *((volatile unsigned int*)(0x42C90F38UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_A47 *((volatile unsigned int*)(0x42C90F3CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC0 *((volatile unsigned int*)(0x42C90F60UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC1 *((volatile unsigned int*)(0x42C90F64UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC2 *((volatile unsigned int*)(0x42C90F68UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC3 *((volatile unsigned int*)(0x42C90F6CUL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC4 *((volatile unsigned int*)(0x42C90F70UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_MBC5 *((volatile unsigned int*)(0x42C90F74UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_SA *((volatile unsigned int*)(0x42C90F78UL)) -#define bFM3_ETHERNET_MAC0_MAR31H_AE *((volatile unsigned int*)(0x42C90F7CUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A0 *((volatile unsigned int*)(0x42C90F80UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A1 *((volatile unsigned int*)(0x42C90F84UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A2 *((volatile unsigned int*)(0x42C90F88UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A3 *((volatile unsigned int*)(0x42C90F8CUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A4 *((volatile unsigned int*)(0x42C90F90UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A5 *((volatile unsigned int*)(0x42C90F94UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A6 *((volatile unsigned int*)(0x42C90F98UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A7 *((volatile unsigned int*)(0x42C90F9CUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A8 *((volatile unsigned int*)(0x42C90FA0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A9 *((volatile unsigned int*)(0x42C90FA4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A10 *((volatile unsigned int*)(0x42C90FA8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A11 *((volatile unsigned int*)(0x42C90FACUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A12 *((volatile unsigned int*)(0x42C90FB0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A13 *((volatile unsigned int*)(0x42C90FB4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A14 *((volatile unsigned int*)(0x42C90FB8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A15 *((volatile unsigned int*)(0x42C90FBCUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A16 *((volatile unsigned int*)(0x42C90FC0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A17 *((volatile unsigned int*)(0x42C90FC4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A18 *((volatile unsigned int*)(0x42C90FC8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A19 *((volatile unsigned int*)(0x42C90FCCUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A20 *((volatile unsigned int*)(0x42C90FD0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A21 *((volatile unsigned int*)(0x42C90FD4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A22 *((volatile unsigned int*)(0x42C90FD8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A23 *((volatile unsigned int*)(0x42C90FDCUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A24 *((volatile unsigned int*)(0x42C90FE0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A25 *((volatile unsigned int*)(0x42C90FE4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A26 *((volatile unsigned int*)(0x42C90FE8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A27 *((volatile unsigned int*)(0x42C90FECUL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A28 *((volatile unsigned int*)(0x42C90FF0UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A29 *((volatile unsigned int*)(0x42C90FF4UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A30 *((volatile unsigned int*)(0x42C90FF8UL)) -#define bFM3_ETHERNET_MAC0_MAR31L_A31 *((volatile unsigned int*)(0x42C90FFCUL)) -#define bFM3_ETHERNET_MAC0_BMR_SWR *((volatile unsigned int*)(0x42CA0000UL)) -#define bFM3_ETHERNET_MAC0_BMR_DA *((volatile unsigned int*)(0x42CA0004UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL0 *((volatile unsigned int*)(0x42CA0008UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL1 *((volatile unsigned int*)(0x42CA000CUL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL2 *((volatile unsigned int*)(0x42CA0010UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL3 *((volatile unsigned int*)(0x42CA0014UL)) -#define bFM3_ETHERNET_MAC0_BMR_DSL4 *((volatile unsigned int*)(0x42CA0018UL)) -#define bFM3_ETHERNET_MAC0_BMR_ATDS *((volatile unsigned int*)(0x42CA001CUL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL0 *((volatile unsigned int*)(0x42CA0020UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL1 *((volatile unsigned int*)(0x42CA0024UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL2 *((volatile unsigned int*)(0x42CA0028UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL3 *((volatile unsigned int*)(0x42CA002CUL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL4 *((volatile unsigned int*)(0x42CA0030UL)) -#define bFM3_ETHERNET_MAC0_BMR_PBL5 *((volatile unsigned int*)(0x42CA0034UL)) -#define bFM3_ETHERNET_MAC0_BMR_PR0 *((volatile unsigned int*)(0x42CA0038UL)) -#define bFM3_ETHERNET_MAC0_BMR_PR1 *((volatile unsigned int*)(0x42CA003CUL)) -#define bFM3_ETHERNET_MAC0_BMR_FB *((volatile unsigned int*)(0x42CA0040UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL0 *((volatile unsigned int*)(0x42CA0044UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL1 *((volatile unsigned int*)(0x42CA0048UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL2 *((volatile unsigned int*)(0x42CA004CUL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL3 *((volatile unsigned int*)(0x42CA0050UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL4 *((volatile unsigned int*)(0x42CA0054UL)) -#define bFM3_ETHERNET_MAC0_BMR_RPBL5 *((volatile unsigned int*)(0x42CA0058UL)) -#define bFM3_ETHERNET_MAC0_BMR_USP *((volatile unsigned int*)(0x42CA005CUL)) -#define bFM3_ETHERNET_MAC0_BMR_8XPBL *((volatile unsigned int*)(0x42CA0060UL)) -#define bFM3_ETHERNET_MAC0_BMR_AAL *((volatile unsigned int*)(0x42CA0064UL)) -#define bFM3_ETHERNET_MAC0_BMR_MB *((volatile unsigned int*)(0x42CA0068UL)) -#define bFM3_ETHERNET_MAC0_BMR_TXPR *((volatile unsigned int*)(0x42CA006CUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD0 *((volatile unsigned int*)(0x42CA0080UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD1 *((volatile unsigned int*)(0x42CA0084UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD2 *((volatile unsigned int*)(0x42CA0088UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD3 *((volatile unsigned int*)(0x42CA008CUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD4 *((volatile unsigned int*)(0x42CA0090UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD5 *((volatile unsigned int*)(0x42CA0094UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD6 *((volatile unsigned int*)(0x42CA0098UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD7 *((volatile unsigned int*)(0x42CA009CUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD8 *((volatile unsigned int*)(0x42CA00A0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD9 *((volatile unsigned int*)(0x42CA00A4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD10 *((volatile unsigned int*)(0x42CA00A8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD11 *((volatile unsigned int*)(0x42CA00ACUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD12 *((volatile unsigned int*)(0x42CA00B0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD13 *((volatile unsigned int*)(0x42CA00B4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD14 *((volatile unsigned int*)(0x42CA00B8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD15 *((volatile unsigned int*)(0x42CA00BCUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD16 *((volatile unsigned int*)(0x42CA00C0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD17 *((volatile unsigned int*)(0x42CA00C4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD18 *((volatile unsigned int*)(0x42CA00C8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD19 *((volatile unsigned int*)(0x42CA00CCUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD20 *((volatile unsigned int*)(0x42CA00D0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD21 *((volatile unsigned int*)(0x42CA00D4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD22 *((volatile unsigned int*)(0x42CA00D8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD23 *((volatile unsigned int*)(0x42CA00DCUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD24 *((volatile unsigned int*)(0x42CA00E0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD25 *((volatile unsigned int*)(0x42CA00E4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD26 *((volatile unsigned int*)(0x42CA00E8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD27 *((volatile unsigned int*)(0x42CA00ECUL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD28 *((volatile unsigned int*)(0x42CA00F0UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD29 *((volatile unsigned int*)(0x42CA00F4UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD30 *((volatile unsigned int*)(0x42CA00F8UL)) -#define bFM3_ETHERNET_MAC0_TPDR_TPD31 *((volatile unsigned int*)(0x42CA00FCUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD0 *((volatile unsigned int*)(0x42CA0100UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD1 *((volatile unsigned int*)(0x42CA0104UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD2 *((volatile unsigned int*)(0x42CA0108UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD3 *((volatile unsigned int*)(0x42CA010CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD4 *((volatile unsigned int*)(0x42CA0110UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD5 *((volatile unsigned int*)(0x42CA0114UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD6 *((volatile unsigned int*)(0x42CA0118UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD7 *((volatile unsigned int*)(0x42CA011CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD8 *((volatile unsigned int*)(0x42CA0120UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD9 *((volatile unsigned int*)(0x42CA0124UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD10 *((volatile unsigned int*)(0x42CA0128UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD11 *((volatile unsigned int*)(0x42CA012CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD12 *((volatile unsigned int*)(0x42CA0130UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD13 *((volatile unsigned int*)(0x42CA0134UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD14 *((volatile unsigned int*)(0x42CA0138UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD15 *((volatile unsigned int*)(0x42CA013CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD16 *((volatile unsigned int*)(0x42CA0140UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD17 *((volatile unsigned int*)(0x42CA0144UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD18 *((volatile unsigned int*)(0x42CA0148UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD19 *((volatile unsigned int*)(0x42CA014CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD20 *((volatile unsigned int*)(0x42CA0150UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD21 *((volatile unsigned int*)(0x42CA0154UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD22 *((volatile unsigned int*)(0x42CA0158UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD23 *((volatile unsigned int*)(0x42CA015CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD24 *((volatile unsigned int*)(0x42CA0160UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD25 *((volatile unsigned int*)(0x42CA0164UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD26 *((volatile unsigned int*)(0x42CA0168UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD27 *((volatile unsigned int*)(0x42CA016CUL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD28 *((volatile unsigned int*)(0x42CA0170UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD29 *((volatile unsigned int*)(0x42CA0174UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD30 *((volatile unsigned int*)(0x42CA0178UL)) -#define bFM3_ETHERNET_MAC0_RPDR_RPD31 *((volatile unsigned int*)(0x42CA017CUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL2 *((volatile unsigned int*)(0x42CA0188UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL3 *((volatile unsigned int*)(0x42CA018CUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL4 *((volatile unsigned int*)(0x42CA0190UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL5 *((volatile unsigned int*)(0x42CA0194UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL6 *((volatile unsigned int*)(0x42CA0198UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL7 *((volatile unsigned int*)(0x42CA019CUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL8 *((volatile unsigned int*)(0x42CA01A0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL9 *((volatile unsigned int*)(0x42CA01A4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL10 *((volatile unsigned int*)(0x42CA01A8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL11 *((volatile unsigned int*)(0x42CA01ACUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL12 *((volatile unsigned int*)(0x42CA01B0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL13 *((volatile unsigned int*)(0x42CA01B4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL14 *((volatile unsigned int*)(0x42CA01B8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL15 *((volatile unsigned int*)(0x42CA01BCUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL16 *((volatile unsigned int*)(0x42CA01C0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL17 *((volatile unsigned int*)(0x42CA01C4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL18 *((volatile unsigned int*)(0x42CA01C8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL19 *((volatile unsigned int*)(0x42CA01CCUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL20 *((volatile unsigned int*)(0x42CA01D0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL21 *((volatile unsigned int*)(0x42CA01D4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL22 *((volatile unsigned int*)(0x42CA01D8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL23 *((volatile unsigned int*)(0x42CA01DCUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL24 *((volatile unsigned int*)(0x42CA01E0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL25 *((volatile unsigned int*)(0x42CA01E4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL26 *((volatile unsigned int*)(0x42CA01E8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL27 *((volatile unsigned int*)(0x42CA01ECUL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL28 *((volatile unsigned int*)(0x42CA01F0UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL29 *((volatile unsigned int*)(0x42CA01F4UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL30 *((volatile unsigned int*)(0x42CA01F8UL)) -#define bFM3_ETHERNET_MAC0_RDLAR_SRL31 *((volatile unsigned int*)(0x42CA01FCUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL2 *((volatile unsigned int*)(0x42CA0208UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL3 *((volatile unsigned int*)(0x42CA020CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL4 *((volatile unsigned int*)(0x42CA0210UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL5 *((volatile unsigned int*)(0x42CA0214UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL6 *((volatile unsigned int*)(0x42CA0218UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL7 *((volatile unsigned int*)(0x42CA021CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL8 *((volatile unsigned int*)(0x42CA0220UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL9 *((volatile unsigned int*)(0x42CA0224UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL10 *((volatile unsigned int*)(0x42CA0228UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL11 *((volatile unsigned int*)(0x42CA022CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL12 *((volatile unsigned int*)(0x42CA0230UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL13 *((volatile unsigned int*)(0x42CA0234UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL14 *((volatile unsigned int*)(0x42CA0238UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL15 *((volatile unsigned int*)(0x42CA023CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL16 *((volatile unsigned int*)(0x42CA0240UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL17 *((volatile unsigned int*)(0x42CA0244UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL18 *((volatile unsigned int*)(0x42CA0248UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL19 *((volatile unsigned int*)(0x42CA024CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL20 *((volatile unsigned int*)(0x42CA0250UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL21 *((volatile unsigned int*)(0x42CA0254UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL22 *((volatile unsigned int*)(0x42CA0258UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL23 *((volatile unsigned int*)(0x42CA025CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL24 *((volatile unsigned int*)(0x42CA0260UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL25 *((volatile unsigned int*)(0x42CA0264UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL26 *((volatile unsigned int*)(0x42CA0268UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL27 *((volatile unsigned int*)(0x42CA026CUL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL28 *((volatile unsigned int*)(0x42CA0270UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL29 *((volatile unsigned int*)(0x42CA0274UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL30 *((volatile unsigned int*)(0x42CA0278UL)) -#define bFM3_ETHERNET_MAC0_TDLAR_STL31 *((volatile unsigned int*)(0x42CA027CUL)) -#define bFM3_ETHERNET_MAC0_SR_TI *((volatile unsigned int*)(0x42CA0280UL)) -#define bFM3_ETHERNET_MAC0_SR_TPS *((volatile unsigned int*)(0x42CA0284UL)) -#define bFM3_ETHERNET_MAC0_SR_TU *((volatile unsigned int*)(0x42CA0288UL)) -#define bFM3_ETHERNET_MAC0_SR_TJT *((volatile unsigned int*)(0x42CA028CUL)) -#define bFM3_ETHERNET_MAC0_SR_OVF *((volatile unsigned int*)(0x42CA0290UL)) -#define bFM3_ETHERNET_MAC0_SR_UNF *((volatile unsigned int*)(0x42CA0294UL)) -#define bFM3_ETHERNET_MAC0_SR_RI *((volatile unsigned int*)(0x42CA0298UL)) -#define bFM3_ETHERNET_MAC0_SR_RU *((volatile unsigned int*)(0x42CA029CUL)) -#define bFM3_ETHERNET_MAC0_SR_RPS *((volatile unsigned int*)(0x42CA02A0UL)) -#define bFM3_ETHERNET_MAC0_SR_RWT *((volatile unsigned int*)(0x42CA02A4UL)) -#define bFM3_ETHERNET_MAC0_SR_ETI *((volatile unsigned int*)(0x42CA02A8UL)) -#define bFM3_ETHERNET_MAC0_SR_FBI *((volatile unsigned int*)(0x42CA02B4UL)) -#define bFM3_ETHERNET_MAC0_SR_ERI *((volatile unsigned int*)(0x42CA02B8UL)) -#define bFM3_ETHERNET_MAC0_SR_AIS *((volatile unsigned int*)(0x42CA02BCUL)) -#define bFM3_ETHERNET_MAC0_SR_NIS *((volatile unsigned int*)(0x42CA02C0UL)) -#define bFM3_ETHERNET_MAC0_SR_RS0 *((volatile unsigned int*)(0x42CA02C4UL)) -#define bFM3_ETHERNET_MAC0_SR_RS1 *((volatile unsigned int*)(0x42CA02C8UL)) -#define bFM3_ETHERNET_MAC0_SR_RS2 *((volatile unsigned int*)(0x42CA02CCUL)) -#define bFM3_ETHERNET_MAC0_SR_TS0 *((volatile unsigned int*)(0x42CA02D0UL)) -#define bFM3_ETHERNET_MAC0_SR_TS1 *((volatile unsigned int*)(0x42CA02D4UL)) -#define bFM3_ETHERNET_MAC0_SR_TS2 *((volatile unsigned int*)(0x42CA02D8UL)) -#define bFM3_ETHERNET_MAC0_SR_EB0 *((volatile unsigned int*)(0x42CA02DCUL)) -#define bFM3_ETHERNET_MAC0_SR_EB1 *((volatile unsigned int*)(0x42CA02E0UL)) -#define bFM3_ETHERNET_MAC0_SR_EB2 *((volatile unsigned int*)(0x42CA02E4UL)) -#define bFM3_ETHERNET_MAC0_SR_GLI *((volatile unsigned int*)(0x42CA02E8UL)) -#define bFM3_ETHERNET_MAC0_SR_GMI *((volatile unsigned int*)(0x42CA02ECUL)) -#define bFM3_ETHERNET_MAC0_SR_GPI *((volatile unsigned int*)(0x42CA02F0UL)) -#define bFM3_ETHERNET_MAC0_SR_TTI *((volatile unsigned int*)(0x42CA02F4UL)) -#define bFM3_ETHERNET_MAC0_SR_GLPII *((volatile unsigned int*)(0x42CA02F8UL)) -#define bFM3_ETHERNET_MAC0_OMR_SR *((volatile unsigned int*)(0x42CA0304UL)) -#define bFM3_ETHERNET_MAC0_OMR_OSF *((volatile unsigned int*)(0x42CA0308UL)) -#define bFM3_ETHERNET_MAC0_OMR_RTC0 *((volatile unsigned int*)(0x42CA030CUL)) -#define bFM3_ETHERNET_MAC0_OMR_RTC1 *((volatile unsigned int*)(0x42CA0310UL)) -#define bFM3_ETHERNET_MAC0_OMR_FUF *((volatile unsigned int*)(0x42CA0318UL)) -#define bFM3_ETHERNET_MAC0_OMR_FEF *((volatile unsigned int*)(0x42CA031CUL)) -#define bFM3_ETHERNET_MAC0_OMR_ST *((volatile unsigned int*)(0x42CA0334UL)) -#define bFM3_ETHERNET_MAC0_OMR_TTC0 *((volatile unsigned int*)(0x42CA0338UL)) -#define bFM3_ETHERNET_MAC0_OMR_TTC1 *((volatile unsigned int*)(0x42CA033CUL)) -#define bFM3_ETHERNET_MAC0_OMR_TTC2 *((volatile unsigned int*)(0x42CA0340UL)) -#define bFM3_ETHERNET_MAC0_OMR_FTF *((volatile unsigned int*)(0x42CA0350UL)) -#define bFM3_ETHERNET_MAC0_OMR_TSF *((volatile unsigned int*)(0x42CA0354UL)) -#define bFM3_ETHERNET_MAC0_OMR_DFF *((volatile unsigned int*)(0x42CA0360UL)) -#define bFM3_ETHERNET_MAC0_OMR_RSF *((volatile unsigned int*)(0x42CA0364UL)) -#define bFM3_ETHERNET_MAC0_OMR_DT *((volatile unsigned int*)(0x42CA0368UL)) -#define bFM3_ETHERNET_MAC0_IER_TIE *((volatile unsigned int*)(0x42CA0380UL)) -#define bFM3_ETHERNET_MAC0_IER_TSE *((volatile unsigned int*)(0x42CA0384UL)) -#define bFM3_ETHERNET_MAC0_IER_TUE *((volatile unsigned int*)(0x42CA0388UL)) -#define bFM3_ETHERNET_MAC0_IER_TJE *((volatile unsigned int*)(0x42CA038CUL)) -#define bFM3_ETHERNET_MAC0_IER_OVE *((volatile unsigned int*)(0x42CA0390UL)) -#define bFM3_ETHERNET_MAC0_IER_UNE *((volatile unsigned int*)(0x42CA0394UL)) -#define bFM3_ETHERNET_MAC0_IER_RIE *((volatile unsigned int*)(0x42CA0398UL)) -#define bFM3_ETHERNET_MAC0_IER_RUE *((volatile unsigned int*)(0x42CA039CUL)) -#define bFM3_ETHERNET_MAC0_IER_RSE *((volatile unsigned int*)(0x42CA03A0UL)) -#define bFM3_ETHERNET_MAC0_IER_RWE *((volatile unsigned int*)(0x42CA03A4UL)) -#define bFM3_ETHERNET_MAC0_IER_ETE *((volatile unsigned int*)(0x42CA03A8UL)) -#define bFM3_ETHERNET_MAC0_IER_FBE *((volatile unsigned int*)(0x42CA03B4UL)) -#define bFM3_ETHERNET_MAC0_IER_ERE *((volatile unsigned int*)(0x42CA03B8UL)) -#define bFM3_ETHERNET_MAC0_IER_AIE *((volatile unsigned int*)(0x42CA03BCUL)) -#define bFM3_ETHERNET_MAC0_IER_NIE *((volatile unsigned int*)(0x42CA03C0UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42CA0400UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42CA0404UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42CA0408UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42CA040CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42CA0410UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42CA0414UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42CA0418UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42CA041CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42CA0420UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42CA0424UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42CA0428UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42CA042CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42CA0430UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42CA0434UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42CA0438UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42CA043CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFH *((volatile unsigned int*)(0x42CA0440UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42CA0444UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42CA0448UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42CA044CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42CA0450UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42CA0454UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42CA0458UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42CA045CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42CA0460UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42CA0464UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42CA0468UL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42CA046CUL)) -#define bFM3_ETHERNET_MAC0_MFBOCR_ONMFF *((volatile unsigned int*)(0x42CA0470UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT0 *((volatile unsigned int*)(0x42CA0480UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT1 *((volatile unsigned int*)(0x42CA0484UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT2 *((volatile unsigned int*)(0x42CA0488UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT3 *((volatile unsigned int*)(0x42CA048CUL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT4 *((volatile unsigned int*)(0x42CA0490UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT5 *((volatile unsigned int*)(0x42CA0494UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT6 *((volatile unsigned int*)(0x42CA0498UL)) -#define bFM3_ETHERNET_MAC0_RIWTR_RIWT7 *((volatile unsigned int*)(0x42CA049CUL)) -#define bFM3_ETHERNET_MAC0_AHBSR_AHBS *((volatile unsigned int*)(0x42CA0580UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42CA0900UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42CA0904UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42CA0908UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42CA090CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42CA0910UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42CA0914UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42CA0918UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42CA091CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42CA0920UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42CA0924UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42CA0928UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42CA092CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42CA0930UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42CA0934UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42CA0938UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42CA093CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42CA0940UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42CA0944UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42CA0948UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42CA094CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42CA0950UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42CA0954UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42CA0958UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42CA095CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42CA0960UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42CA0964UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42CA0968UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42CA096CUL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42CA0970UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42CA0974UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42CA0978UL)) -#define bFM3_ETHERNET_MAC0_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42CA097CUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42CA0980UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42CA0984UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42CA0988UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42CA098CUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42CA0990UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42CA0994UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42CA0998UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42CA099CUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42CA09A0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42CA09A4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42CA09A8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42CA09ACUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42CA09B0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42CA09B4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42CA09B8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42CA09BCUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42CA09C0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42CA09C4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42CA09C8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42CA09CCUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42CA09D0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42CA09D4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42CA09D8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42CA09DCUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42CA09E0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42CA09E4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42CA09E8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42CA09ECUL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42CA09F0UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42CA09F4UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42CA09F8UL)) -#define bFM3_ETHERNET_MAC0_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42CA09FCUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42CA0A00UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42CA0A04UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42CA0A08UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42CA0A0CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42CA0A10UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42CA0A14UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42CA0A18UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42CA0A1CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42CA0A20UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42CA0A24UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42CA0A28UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42CA0A2CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42CA0A30UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42CA0A34UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42CA0A38UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42CA0A3CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42CA0A40UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42CA0A44UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42CA0A48UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42CA0A4CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42CA0A50UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42CA0A54UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42CA0A58UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42CA0A5CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42CA0A60UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42CA0A64UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42CA0A68UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42CA0A6CUL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42CA0A70UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42CA0A74UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42CA0A78UL)) -#define bFM3_ETHERNET_MAC0_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42CA0A7CUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42CA0A80UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42CA0A84UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42CA0A88UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42CA0A8CUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42CA0A90UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42CA0A94UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42CA0A98UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42CA0A9CUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42CA0AA0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42CA0AA4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42CA0AA8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42CA0AACUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42CA0AB0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42CA0AB4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42CA0AB8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42CA0ABCUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42CA0AC0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42CA0AC4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42CA0AC8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42CA0ACCUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42CA0AD0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42CA0AD4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42CA0AD8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42CA0ADCUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42CA0AE0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42CA0AE4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42CA0AE8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42CA0AECUL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42CA0AF0UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42CA0AF4UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42CA0AF8UL)) -#define bFM3_ETHERNET_MAC0_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42CA0AFCUL)) - -/* ETHERNET-MAC-CONTROL registers */ -#define bFM3_ETHERNET_CONTROL_ETH_MODE_IFMODE *((volatile unsigned int*)(0x42CC0000UL)) -#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST0 *((volatile unsigned int*)(0x42CC0020UL)) -#define bFM3_ETHERNET_CONTROL_ETH_MODE_RST1 *((volatile unsigned int*)(0x42CC0024UL)) -#define bFM3_ETHERNET_CONTROL_ETH_MODE_PPSSEL *((volatile unsigned int*)(0x42CC0070UL)) -#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN0 *((volatile unsigned int*)(0x42CC0100UL)) -#define bFM3_ETHERNET_CONTROL_ETH_CLKG_MACEN1 *((volatile unsigned int*)(0x42CC0104UL)) - -/* ETHERNET-MAC1 registers*/ -#define bFM3_ETHERNET_MAC1_MCR_RE *((volatile unsigned int*)(0x42CE0008UL)) -#define bFM3_ETHERNET_MAC1_MCR_TE *((volatile unsigned int*)(0x42CE000CUL)) -#define bFM3_ETHERNET_MAC1_MCR_DC *((volatile unsigned int*)(0x42CE0010UL)) -#define bFM3_ETHERNET_MAC1_MCR_BL0 *((volatile unsigned int*)(0x42CE0014UL)) -#define bFM3_ETHERNET_MAC1_MCR_BL1 *((volatile unsigned int*)(0x42CE0018UL)) -#define bFM3_ETHERNET_MAC1_MCR_ACS *((volatile unsigned int*)(0x42CE001CUL)) -#define bFM3_ETHERNET_MAC1_MCR_LUD *((volatile unsigned int*)(0x42CE0020UL)) -#define bFM3_ETHERNET_MAC1_MCR_DR *((volatile unsigned int*)(0x42CE0024UL)) -#define bFM3_ETHERNET_MAC1_MCR_IPC *((volatile unsigned int*)(0x42CE0028UL)) -#define bFM3_ETHERNET_MAC1_MCR_DM *((volatile unsigned int*)(0x42CE002CUL)) -#define bFM3_ETHERNET_MAC1_MCR_LM *((volatile unsigned int*)(0x42CE0030UL)) -#define bFM3_ETHERNET_MAC1_MCR_DO *((volatile unsigned int*)(0x42CE0034UL)) -#define bFM3_ETHERNET_MAC1_MCR_FES *((volatile unsigned int*)(0x42CE0038UL)) -#define bFM3_ETHERNET_MAC1_MCR_PS *((volatile unsigned int*)(0x42CE003CUL)) -#define bFM3_ETHERNET_MAC1_MCR_DCRS *((volatile unsigned int*)(0x42CE0040UL)) -#define bFM3_ETHERNET_MAC1_MCR_IFG0 *((volatile unsigned int*)(0x42CE0044UL)) -#define bFM3_ETHERNET_MAC1_MCR_IFG1 *((volatile unsigned int*)(0x42CE0048UL)) -#define bFM3_ETHERNET_MAC1_MCR_IFG2 *((volatile unsigned int*)(0x42CE004CUL)) -#define bFM3_ETHERNET_MAC1_MCR_JE *((volatile unsigned int*)(0x42CE0050UL)) -#define bFM3_ETHERNET_MAC1_MCR_BE *((volatile unsigned int*)(0x42CE0054UL)) -#define bFM3_ETHERNET_MAC1_MCR_JD *((volatile unsigned int*)(0x42CE0058UL)) -#define bFM3_ETHERNET_MAC1_MCR_WD *((volatile unsigned int*)(0x42CE005CUL)) -#define bFM3_ETHERNET_MAC1_MCR_TC *((volatile unsigned int*)(0x42CE0060UL)) -#define bFM3_ETHERNET_MAC1_MCR_CST *((volatile unsigned int*)(0x42CE0064UL)) -#define bFM3_ETHERNET_MAC1_MFFR_PR *((volatile unsigned int*)(0x42CE0080UL)) -#define bFM3_ETHERNET_MAC1_MFFR_HUC *((volatile unsigned int*)(0x42CE0084UL)) -#define bFM3_ETHERNET_MAC1_MFFR_HMC *((volatile unsigned int*)(0x42CE0088UL)) -#define bFM3_ETHERNET_MAC1_MFFR_DAIF *((volatile unsigned int*)(0x42CE008CUL)) -#define bFM3_ETHERNET_MAC1_MFFR_PM *((volatile unsigned int*)(0x42CE0090UL)) -#define bFM3_ETHERNET_MAC1_MFFR_DB *((volatile unsigned int*)(0x42CE0094UL)) -#define bFM3_ETHERNET_MAC1_MFFR_PCF0 *((volatile unsigned int*)(0x42CE0098UL)) -#define bFM3_ETHERNET_MAC1_MFFR_PCF1 *((volatile unsigned int*)(0x42CE009CUL)) -#define bFM3_ETHERNET_MAC1_MFFR_SAIF *((volatile unsigned int*)(0x42CE00A0UL)) -#define bFM3_ETHERNET_MAC1_MFFR_SAF *((volatile unsigned int*)(0x42CE00A4UL)) -#define bFM3_ETHERNET_MAC1_MFFR_HPF *((volatile unsigned int*)(0x42CE00A8UL)) -#define bFM3_ETHERNET_MAC1_MFFR_RA *((volatile unsigned int*)(0x42CE00FCUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH0 *((volatile unsigned int*)(0x42CE0100UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH1 *((volatile unsigned int*)(0x42CE0104UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH2 *((volatile unsigned int*)(0x42CE0108UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH3 *((volatile unsigned int*)(0x42CE010CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH4 *((volatile unsigned int*)(0x42CE0110UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH5 *((volatile unsigned int*)(0x42CE0114UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH6 *((volatile unsigned int*)(0x42CE0118UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH7 *((volatile unsigned int*)(0x42CE011CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH8 *((volatile unsigned int*)(0x42CE0120UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH9 *((volatile unsigned int*)(0x42CE0124UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH10 *((volatile unsigned int*)(0x42CE0128UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH11 *((volatile unsigned int*)(0x42CE012CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH12 *((volatile unsigned int*)(0x42CE0130UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH13 *((volatile unsigned int*)(0x42CE0134UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH14 *((volatile unsigned int*)(0x42CE0138UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH15 *((volatile unsigned int*)(0x42CE013CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH16 *((volatile unsigned int*)(0x42CE0140UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH17 *((volatile unsigned int*)(0x42CE0144UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH18 *((volatile unsigned int*)(0x42CE0148UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH19 *((volatile unsigned int*)(0x42CE014CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH20 *((volatile unsigned int*)(0x42CE0150UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH21 *((volatile unsigned int*)(0x42CE0154UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH22 *((volatile unsigned int*)(0x42CE0158UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH23 *((volatile unsigned int*)(0x42CE015CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH24 *((volatile unsigned int*)(0x42CE0160UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH25 *((volatile unsigned int*)(0x42CE0164UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH26 *((volatile unsigned int*)(0x42CE0168UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH27 *((volatile unsigned int*)(0x42CE016CUL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH28 *((volatile unsigned int*)(0x42CE0170UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH29 *((volatile unsigned int*)(0x42CE0174UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH30 *((volatile unsigned int*)(0x42CE0178UL)) -#define bFM3_ETHERNET_MAC1_MHTRH_HTH31 *((volatile unsigned int*)(0x42CE017CUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL0 *((volatile unsigned int*)(0x42CE0180UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL1 *((volatile unsigned int*)(0x42CE0184UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL2 *((volatile unsigned int*)(0x42CE0188UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL3 *((volatile unsigned int*)(0x42CE018CUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL4 *((volatile unsigned int*)(0x42CE0190UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL5 *((volatile unsigned int*)(0x42CE0194UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL6 *((volatile unsigned int*)(0x42CE0198UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL7 *((volatile unsigned int*)(0x42CE019CUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL8 *((volatile unsigned int*)(0x42CE01A0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL9 *((volatile unsigned int*)(0x42CE01A4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL10 *((volatile unsigned int*)(0x42CE01A8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL11 *((volatile unsigned int*)(0x42CE01ACUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL12 *((volatile unsigned int*)(0x42CE01B0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL13 *((volatile unsigned int*)(0x42CE01B4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL14 *((volatile unsigned int*)(0x42CE01B8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL15 *((volatile unsigned int*)(0x42CE01BCUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL16 *((volatile unsigned int*)(0x42CE01C0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL17 *((volatile unsigned int*)(0x42CE01C4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL18 *((volatile unsigned int*)(0x42CE01C8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL19 *((volatile unsigned int*)(0x42CE01CCUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL20 *((volatile unsigned int*)(0x42CE01D0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL21 *((volatile unsigned int*)(0x42CE01D4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL22 *((volatile unsigned int*)(0x42CE01D8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL23 *((volatile unsigned int*)(0x42CE01DCUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL24 *((volatile unsigned int*)(0x42CE01E0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL25 *((volatile unsigned int*)(0x42CE01E4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL26 *((volatile unsigned int*)(0x42CE01E8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL27 *((volatile unsigned int*)(0x42CE01ECUL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL28 *((volatile unsigned int*)(0x42CE01F0UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL29 *((volatile unsigned int*)(0x42CE01F4UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL30 *((volatile unsigned int*)(0x42CE01F8UL)) -#define bFM3_ETHERNET_MAC1_MHTRL_HTL31 *((volatile unsigned int*)(0x42CE01FCUL)) -#define bFM3_ETHERNET_MAC1_GAR_GB *((volatile unsigned int*)(0x42CE0200UL)) -#define bFM3_ETHERNET_MAC1_GAR_GW *((volatile unsigned int*)(0x42CE0204UL)) -#define bFM3_ETHERNET_MAC1_GAR_CR0 *((volatile unsigned int*)(0x42CE0208UL)) -#define bFM3_ETHERNET_MAC1_GAR_CR1 *((volatile unsigned int*)(0x42CE020CUL)) -#define bFM3_ETHERNET_MAC1_GAR_CR2 *((volatile unsigned int*)(0x42CE0210UL)) -#define bFM3_ETHERNET_MAC1_GAR_CR3 *((volatile unsigned int*)(0x42CE0214UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR0 *((volatile unsigned int*)(0x42CE0218UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR1 *((volatile unsigned int*)(0x42CE021CUL)) -#define bFM3_ETHERNET_MAC1_GAR_GR2 *((volatile unsigned int*)(0x42CE0220UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR3 *((volatile unsigned int*)(0x42CE0224UL)) -#define bFM3_ETHERNET_MAC1_GAR_GR4 *((volatile unsigned int*)(0x42CE0228UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA0 *((volatile unsigned int*)(0x42CE022CUL)) -#define bFM3_ETHERNET_MAC1_GAR_PA1 *((volatile unsigned int*)(0x42CE0230UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA2 *((volatile unsigned int*)(0x42CE0234UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA3 *((volatile unsigned int*)(0x42CE0238UL)) -#define bFM3_ETHERNET_MAC1_GAR_PA4 *((volatile unsigned int*)(0x42CE023CUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD0 *((volatile unsigned int*)(0x42CE0280UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD1 *((volatile unsigned int*)(0x42CE0284UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD2 *((volatile unsigned int*)(0x42CE0288UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD3 *((volatile unsigned int*)(0x42CE028CUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD4 *((volatile unsigned int*)(0x42CE0290UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD5 *((volatile unsigned int*)(0x42CE0294UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD6 *((volatile unsigned int*)(0x42CE0298UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD7 *((volatile unsigned int*)(0x42CE029CUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD8 *((volatile unsigned int*)(0x42CE02A0UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD9 *((volatile unsigned int*)(0x42CE02A4UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD10 *((volatile unsigned int*)(0x42CE02A8UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD11 *((volatile unsigned int*)(0x42CE02ACUL)) -#define bFM3_ETHERNET_MAC1_GDR_GD12 *((volatile unsigned int*)(0x42CE02B0UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD13 *((volatile unsigned int*)(0x42CE02B4UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD14 *((volatile unsigned int*)(0x42CE02B8UL)) -#define bFM3_ETHERNET_MAC1_GDR_GD15 *((volatile unsigned int*)(0x42CE02BCUL)) -#define bFM3_ETHERNET_MAC1_FCR_FCB_BPA *((volatile unsigned int*)(0x42CE0300UL)) -#define bFM3_ETHERNET_MAC1_FCR_TFE *((volatile unsigned int*)(0x42CE0304UL)) -#define bFM3_ETHERNET_MAC1_FCR_RFE *((volatile unsigned int*)(0x42CE0308UL)) -#define bFM3_ETHERNET_MAC1_FCR_UP *((volatile unsigned int*)(0x42CE030CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PLT0 *((volatile unsigned int*)(0x42CE0310UL)) -#define bFM3_ETHERNET_MAC1_FCR_PLT1 *((volatile unsigned int*)(0x42CE0314UL)) -#define bFM3_ETHERNET_MAC1_FCR_DZPQ *((volatile unsigned int*)(0x42CE031CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT0 *((volatile unsigned int*)(0x42CE0340UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT1 *((volatile unsigned int*)(0x42CE0344UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT2 *((volatile unsigned int*)(0x42CE0348UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT3 *((volatile unsigned int*)(0x42CE034CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT4 *((volatile unsigned int*)(0x42CE0350UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT5 *((volatile unsigned int*)(0x42CE0354UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT6 *((volatile unsigned int*)(0x42CE0358UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT7 *((volatile unsigned int*)(0x42CE035CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT8 *((volatile unsigned int*)(0x42CE0360UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT9 *((volatile unsigned int*)(0x42CE0364UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT10 *((volatile unsigned int*)(0x42CE0368UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT11 *((volatile unsigned int*)(0x42CE036CUL)) -#define bFM3_ETHERNET_MAC1_FCR_PT12 *((volatile unsigned int*)(0x42CE0370UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT13 *((volatile unsigned int*)(0x42CE0374UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT14 *((volatile unsigned int*)(0x42CE0378UL)) -#define bFM3_ETHERNET_MAC1_FCR_PT15 *((volatile unsigned int*)(0x42CE037CUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL0 *((volatile unsigned int*)(0x42CE0380UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL1 *((volatile unsigned int*)(0x42CE0384UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL2 *((volatile unsigned int*)(0x42CE0388UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL3 *((volatile unsigned int*)(0x42CE038CUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL4 *((volatile unsigned int*)(0x42CE0390UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL5 *((volatile unsigned int*)(0x42CE0394UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL6 *((volatile unsigned int*)(0x42CE0398UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL7 *((volatile unsigned int*)(0x42CE039CUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL8 *((volatile unsigned int*)(0x42CE03A0UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL9 *((volatile unsigned int*)(0x42CE03A4UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL10 *((volatile unsigned int*)(0x42CE03A8UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL11 *((volatile unsigned int*)(0x42CE03ACUL)) -#define bFM3_ETHERNET_MAC1_VTR_VL12 *((volatile unsigned int*)(0x42CE03B0UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL13 *((volatile unsigned int*)(0x42CE03B4UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL14 *((volatile unsigned int*)(0x42CE03B8UL)) -#define bFM3_ETHERNET_MAC1_VTR_VL15 *((volatile unsigned int*)(0x42CE03BCUL)) -#define bFM3_ETHERNET_MAC1_VTR_ETV *((volatile unsigned int*)(0x42CE03C0UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR0 *((volatile unsigned int*)(0x42CE0500UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR1 *((volatile unsigned int*)(0x42CE0504UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR2 *((volatile unsigned int*)(0x42CE0508UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR3 *((volatile unsigned int*)(0x42CE050CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR4 *((volatile unsigned int*)(0x42CE0510UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR5 *((volatile unsigned int*)(0x42CE0514UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR6 *((volatile unsigned int*)(0x42CE0518UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR7 *((volatile unsigned int*)(0x42CE051CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR8 *((volatile unsigned int*)(0x42CE0520UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR9 *((volatile unsigned int*)(0x42CE0524UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR10 *((volatile unsigned int*)(0x42CE0528UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR11 *((volatile unsigned int*)(0x42CE052CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR12 *((volatile unsigned int*)(0x42CE0530UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR13 *((volatile unsigned int*)(0x42CE0534UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR14 *((volatile unsigned int*)(0x42CE0538UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR15 *((volatile unsigned int*)(0x42CE053CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR16 *((volatile unsigned int*)(0x42CE0540UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR17 *((volatile unsigned int*)(0x42CE0544UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR18 *((volatile unsigned int*)(0x42CE0548UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR19 *((volatile unsigned int*)(0x42CE054CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR20 *((volatile unsigned int*)(0x42CE0550UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR21 *((volatile unsigned int*)(0x42CE0554UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR22 *((volatile unsigned int*)(0x42CE0558UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR23 *((volatile unsigned int*)(0x42CE055CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR24 *((volatile unsigned int*)(0x42CE0560UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR25 *((volatile unsigned int*)(0x42CE0564UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR26 *((volatile unsigned int*)(0x42CE0568UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR27 *((volatile unsigned int*)(0x42CE056CUL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR28 *((volatile unsigned int*)(0x42CE0570UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR29 *((volatile unsigned int*)(0x42CE0574UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR30 *((volatile unsigned int*)(0x42CE0578UL)) -#define bFM3_ETHERNET_MAC1_RWFFR_RWFFR31 *((volatile unsigned int*)(0x42CE057CUL)) -#define bFM3_ETHERNET_MAC1_PMTR_PD *((volatile unsigned int*)(0x42CE0580UL)) -#define bFM3_ETHERNET_MAC1_PMTR_MPE *((volatile unsigned int*)(0x42CE0584UL)) -#define bFM3_ETHERNET_MAC1_PMTR_WFE *((volatile unsigned int*)(0x42CE0588UL)) -#define bFM3_ETHERNET_MAC1_PMTR_MPR *((volatile unsigned int*)(0x42CE0594UL)) -#define bFM3_ETHERNET_MAC1_PMTR_WPR *((volatile unsigned int*)(0x42CE0598UL)) -#define bFM3_ETHERNET_MAC1_PMTR_GU *((volatile unsigned int*)(0x42CE05A4UL)) -#define bFM3_ETHERNET_MAC1_PMTR_RWFFRPR *((volatile unsigned int*)(0x42CE05FCUL)) -#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEN *((volatile unsigned int*)(0x42CE0600UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_TLPIEX *((volatile unsigned int*)(0x42CE0604UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEN *((volatile unsigned int*)(0x42CE0608UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_RLPIEX *((volatile unsigned int*)(0x42CE060CUL)) -#define bFM3_ETHERNET_MAC1_LPICSR_TLPIST *((volatile unsigned int*)(0x42CE0620UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_RLPIST *((volatile unsigned int*)(0x42CE0624UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_LPIEN *((volatile unsigned int*)(0x42CE0640UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_PLS *((volatile unsigned int*)(0x42CE0644UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_PLSEN *((volatile unsigned int*)(0x42CE0648UL)) -#define bFM3_ETHERNET_MAC1_LPICSR_LPITXA *((volatile unsigned int*)(0x42CE064CUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT0 *((volatile unsigned int*)(0x42CE0680UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT1 *((volatile unsigned int*)(0x42CE0684UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT2 *((volatile unsigned int*)(0x42CE0688UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT3 *((volatile unsigned int*)(0x42CE068CUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT4 *((volatile unsigned int*)(0x42CE0690UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT5 *((volatile unsigned int*)(0x42CE0694UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT6 *((volatile unsigned int*)(0x42CE0698UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT7 *((volatile unsigned int*)(0x42CE069CUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT8 *((volatile unsigned int*)(0x42CE06A0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT9 *((volatile unsigned int*)(0x42CE06A4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT10 *((volatile unsigned int*)(0x42CE06A8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT11 *((volatile unsigned int*)(0x42CE06ACUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT12 *((volatile unsigned int*)(0x42CE06B0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT13 *((volatile unsigned int*)(0x42CE06B4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT14 *((volatile unsigned int*)(0x42CE06B8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_TWT15 *((volatile unsigned int*)(0x42CE06BCUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT0 *((volatile unsigned int*)(0x42CE06C0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT1 *((volatile unsigned int*)(0x42CE06C4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT2 *((volatile unsigned int*)(0x42CE06C8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT3 *((volatile unsigned int*)(0x42CE06CCUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT4 *((volatile unsigned int*)(0x42CE06D0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT5 *((volatile unsigned int*)(0x42CE06D4UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT6 *((volatile unsigned int*)(0x42CE06D8UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT7 *((volatile unsigned int*)(0x42CE06DCUL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT8 *((volatile unsigned int*)(0x42CE06E0UL)) -#define bFM3_ETHERNET_MAC1_LPITCR_LIT9 *((volatile unsigned int*)(0x42CE06E4UL)) -#define bFM3_ETHERNET_MAC1_ISR_RGIS *((volatile unsigned int*)(0x42CE0700UL)) -#define bFM3_ETHERNET_MAC1_ISR_PIS *((volatile unsigned int*)(0x42CE070CUL)) -#define bFM3_ETHERNET_MAC1_ISR_MIS *((volatile unsigned int*)(0x42CE0710UL)) -#define bFM3_ETHERNET_MAC1_ISR_RIS *((volatile unsigned int*)(0x42CE0714UL)) -#define bFM3_ETHERNET_MAC1_ISR_TIS *((volatile unsigned int*)(0x42CE0718UL)) -#define bFM3_ETHERNET_MAC1_ISR_COIS *((volatile unsigned int*)(0x42CE071CUL)) -#define bFM3_ETHERNET_MAC1_ISR_TSIS *((volatile unsigned int*)(0x42CE0724UL)) -#define bFM3_ETHERNET_MAC1_ISR_LPIIS *((volatile unsigned int*)(0x42CE0728UL)) -#define bFM3_ETHERNET_MAC1_IMR_RGIM *((volatile unsigned int*)(0x42CE0780UL)) -#define bFM3_ETHERNET_MAC1_IMR_PIM *((volatile unsigned int*)(0x42CE078CUL)) -#define bFM3_ETHERNET_MAC1_IMR_TSIM *((volatile unsigned int*)(0x42CE0794UL)) -#define bFM3_ETHERNET_MAC1_IMR_LPIIM *((volatile unsigned int*)(0x42CE0798UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A32 *((volatile unsigned int*)(0x42CE0800UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A33 *((volatile unsigned int*)(0x42CE0804UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A34 *((volatile unsigned int*)(0x42CE0808UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A35 *((volatile unsigned int*)(0x42CE080CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A36 *((volatile unsigned int*)(0x42CE0810UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A37 *((volatile unsigned int*)(0x42CE0814UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A38 *((volatile unsigned int*)(0x42CE0818UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A39 *((volatile unsigned int*)(0x42CE081CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A40 *((volatile unsigned int*)(0x42CE0820UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A41 *((volatile unsigned int*)(0x42CE0824UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A42 *((volatile unsigned int*)(0x42CE0828UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A43 *((volatile unsigned int*)(0x42CE082CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A44 *((volatile unsigned int*)(0x42CE0830UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A45 *((volatile unsigned int*)(0x42CE0834UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A46 *((volatile unsigned int*)(0x42CE0838UL)) -#define bFM3_ETHERNET_MAC1_MAR0H_A47 *((volatile unsigned int*)(0x42CE083CUL)) -#define bFM3_ETHERNET_MAC1_MAR0H_MO *((volatile unsigned int*)(0x42CE087CUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A0 *((volatile unsigned int*)(0x42CE0880UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A1 *((volatile unsigned int*)(0x42CE0884UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A2 *((volatile unsigned int*)(0x42CE0888UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A3 *((volatile unsigned int*)(0x42CE088CUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A4 *((volatile unsigned int*)(0x42CE0890UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A5 *((volatile unsigned int*)(0x42CE0894UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A6 *((volatile unsigned int*)(0x42CE0898UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A7 *((volatile unsigned int*)(0x42CE089CUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A8 *((volatile unsigned int*)(0x42CE08A0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A9 *((volatile unsigned int*)(0x42CE08A4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A10 *((volatile unsigned int*)(0x42CE08A8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A11 *((volatile unsigned int*)(0x42CE08ACUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A12 *((volatile unsigned int*)(0x42CE08B0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A13 *((volatile unsigned int*)(0x42CE08B4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A14 *((volatile unsigned int*)(0x42CE08B8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A15 *((volatile unsigned int*)(0x42CE08BCUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A16 *((volatile unsigned int*)(0x42CE08C0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A17 *((volatile unsigned int*)(0x42CE08C4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A18 *((volatile unsigned int*)(0x42CE08C8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A19 *((volatile unsigned int*)(0x42CE08CCUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A20 *((volatile unsigned int*)(0x42CE08D0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A21 *((volatile unsigned int*)(0x42CE08D4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A22 *((volatile unsigned int*)(0x42CE08D8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A23 *((volatile unsigned int*)(0x42CE08DCUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A24 *((volatile unsigned int*)(0x42CE08E0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A25 *((volatile unsigned int*)(0x42CE08E4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A26 *((volatile unsigned int*)(0x42CE08E8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A27 *((volatile unsigned int*)(0x42CE08ECUL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A28 *((volatile unsigned int*)(0x42CE08F0UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A29 *((volatile unsigned int*)(0x42CE08F4UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A30 *((volatile unsigned int*)(0x42CE08F8UL)) -#define bFM3_ETHERNET_MAC1_MAR0L_A31 *((volatile unsigned int*)(0x42CE08FCUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A32 *((volatile unsigned int*)(0x42CE0900UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A33 *((volatile unsigned int*)(0x42CE0904UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A34 *((volatile unsigned int*)(0x42CE0908UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A35 *((volatile unsigned int*)(0x42CE090CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A36 *((volatile unsigned int*)(0x42CE0910UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A37 *((volatile unsigned int*)(0x42CE0914UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A38 *((volatile unsigned int*)(0x42CE0918UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A39 *((volatile unsigned int*)(0x42CE091CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A40 *((volatile unsigned int*)(0x42CE0920UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A41 *((volatile unsigned int*)(0x42CE0924UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A42 *((volatile unsigned int*)(0x42CE0928UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A43 *((volatile unsigned int*)(0x42CE092CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A44 *((volatile unsigned int*)(0x42CE0930UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A45 *((volatile unsigned int*)(0x42CE0934UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A46 *((volatile unsigned int*)(0x42CE0938UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_A47 *((volatile unsigned int*)(0x42CE093CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC0 *((volatile unsigned int*)(0x42CE0960UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC1 *((volatile unsigned int*)(0x42CE0964UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC2 *((volatile unsigned int*)(0x42CE0968UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC3 *((volatile unsigned int*)(0x42CE096CUL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC4 *((volatile unsigned int*)(0x42CE0970UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_MBC5 *((volatile unsigned int*)(0x42CE0974UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_SA *((volatile unsigned int*)(0x42CE0978UL)) -#define bFM3_ETHERNET_MAC1_MAR1H_AE *((volatile unsigned int*)(0x42CE097CUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A0 *((volatile unsigned int*)(0x42CE0980UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A1 *((volatile unsigned int*)(0x42CE0984UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A2 *((volatile unsigned int*)(0x42CE0988UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A3 *((volatile unsigned int*)(0x42CE098CUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A4 *((volatile unsigned int*)(0x42CE0990UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A5 *((volatile unsigned int*)(0x42CE0994UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A6 *((volatile unsigned int*)(0x42CE0998UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A7 *((volatile unsigned int*)(0x42CE099CUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A8 *((volatile unsigned int*)(0x42CE09A0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A9 *((volatile unsigned int*)(0x42CE09A4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A10 *((volatile unsigned int*)(0x42CE09A8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A11 *((volatile unsigned int*)(0x42CE09ACUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A12 *((volatile unsigned int*)(0x42CE09B0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A13 *((volatile unsigned int*)(0x42CE09B4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A14 *((volatile unsigned int*)(0x42CE09B8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A15 *((volatile unsigned int*)(0x42CE09BCUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A16 *((volatile unsigned int*)(0x42CE09C0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A17 *((volatile unsigned int*)(0x42CE09C4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A18 *((volatile unsigned int*)(0x42CE09C8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A19 *((volatile unsigned int*)(0x42CE09CCUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A20 *((volatile unsigned int*)(0x42CE09D0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A21 *((volatile unsigned int*)(0x42CE09D4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A22 *((volatile unsigned int*)(0x42CE09D8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A23 *((volatile unsigned int*)(0x42CE09DCUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A24 *((volatile unsigned int*)(0x42CE09E0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A25 *((volatile unsigned int*)(0x42CE09E4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A26 *((volatile unsigned int*)(0x42CE09E8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A27 *((volatile unsigned int*)(0x42CE09ECUL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A28 *((volatile unsigned int*)(0x42CE09F0UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A29 *((volatile unsigned int*)(0x42CE09F4UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A30 *((volatile unsigned int*)(0x42CE09F8UL)) -#define bFM3_ETHERNET_MAC1_MAR1L_A31 *((volatile unsigned int*)(0x42CE09FCUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A32 *((volatile unsigned int*)(0x42CE0A00UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A33 *((volatile unsigned int*)(0x42CE0A04UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A34 *((volatile unsigned int*)(0x42CE0A08UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A35 *((volatile unsigned int*)(0x42CE0A0CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A36 *((volatile unsigned int*)(0x42CE0A10UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A37 *((volatile unsigned int*)(0x42CE0A14UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A38 *((volatile unsigned int*)(0x42CE0A18UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A39 *((volatile unsigned int*)(0x42CE0A1CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A40 *((volatile unsigned int*)(0x42CE0A20UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A41 *((volatile unsigned int*)(0x42CE0A24UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A42 *((volatile unsigned int*)(0x42CE0A28UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A43 *((volatile unsigned int*)(0x42CE0A2CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A44 *((volatile unsigned int*)(0x42CE0A30UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A45 *((volatile unsigned int*)(0x42CE0A34UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A46 *((volatile unsigned int*)(0x42CE0A38UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_A47 *((volatile unsigned int*)(0x42CE0A3CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC0 *((volatile unsigned int*)(0x42CE0A60UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC1 *((volatile unsigned int*)(0x42CE0A64UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC2 *((volatile unsigned int*)(0x42CE0A68UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC3 *((volatile unsigned int*)(0x42CE0A6CUL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC4 *((volatile unsigned int*)(0x42CE0A70UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_MBC5 *((volatile unsigned int*)(0x42CE0A74UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_SA *((volatile unsigned int*)(0x42CE0A78UL)) -#define bFM3_ETHERNET_MAC1_MAR2H_AE *((volatile unsigned int*)(0x42CE0A7CUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A0 *((volatile unsigned int*)(0x42CE0A80UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A1 *((volatile unsigned int*)(0x42CE0A84UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A2 *((volatile unsigned int*)(0x42CE0A88UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A3 *((volatile unsigned int*)(0x42CE0A8CUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A4 *((volatile unsigned int*)(0x42CE0A90UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A5 *((volatile unsigned int*)(0x42CE0A94UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A6 *((volatile unsigned int*)(0x42CE0A98UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A7 *((volatile unsigned int*)(0x42CE0A9CUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A8 *((volatile unsigned int*)(0x42CE0AA0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A9 *((volatile unsigned int*)(0x42CE0AA4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A10 *((volatile unsigned int*)(0x42CE0AA8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A11 *((volatile unsigned int*)(0x42CE0AACUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A12 *((volatile unsigned int*)(0x42CE0AB0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A13 *((volatile unsigned int*)(0x42CE0AB4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A14 *((volatile unsigned int*)(0x42CE0AB8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A15 *((volatile unsigned int*)(0x42CE0ABCUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A16 *((volatile unsigned int*)(0x42CE0AC0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A17 *((volatile unsigned int*)(0x42CE0AC4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A18 *((volatile unsigned int*)(0x42CE0AC8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A19 *((volatile unsigned int*)(0x42CE0ACCUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A20 *((volatile unsigned int*)(0x42CE0AD0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A21 *((volatile unsigned int*)(0x42CE0AD4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A22 *((volatile unsigned int*)(0x42CE0AD8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A23 *((volatile unsigned int*)(0x42CE0ADCUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A24 *((volatile unsigned int*)(0x42CE0AE0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A25 *((volatile unsigned int*)(0x42CE0AE4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A26 *((volatile unsigned int*)(0x42CE0AE8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A27 *((volatile unsigned int*)(0x42CE0AECUL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A28 *((volatile unsigned int*)(0x42CE0AF0UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A29 *((volatile unsigned int*)(0x42CE0AF4UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A30 *((volatile unsigned int*)(0x42CE0AF8UL)) -#define bFM3_ETHERNET_MAC1_MAR2L_A31 *((volatile unsigned int*)(0x42CE0AFCUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A32 *((volatile unsigned int*)(0x42CE0B00UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A33 *((volatile unsigned int*)(0x42CE0B04UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A34 *((volatile unsigned int*)(0x42CE0B08UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A35 *((volatile unsigned int*)(0x42CE0B0CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A36 *((volatile unsigned int*)(0x42CE0B10UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A37 *((volatile unsigned int*)(0x42CE0B14UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A38 *((volatile unsigned int*)(0x42CE0B18UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A39 *((volatile unsigned int*)(0x42CE0B1CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A40 *((volatile unsigned int*)(0x42CE0B20UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A41 *((volatile unsigned int*)(0x42CE0B24UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A42 *((volatile unsigned int*)(0x42CE0B28UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A43 *((volatile unsigned int*)(0x42CE0B2CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A44 *((volatile unsigned int*)(0x42CE0B30UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A45 *((volatile unsigned int*)(0x42CE0B34UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A46 *((volatile unsigned int*)(0x42CE0B38UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_A47 *((volatile unsigned int*)(0x42CE0B3CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC0 *((volatile unsigned int*)(0x42CE0B60UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC1 *((volatile unsigned int*)(0x42CE0B64UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC2 *((volatile unsigned int*)(0x42CE0B68UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC3 *((volatile unsigned int*)(0x42CE0B6CUL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC4 *((volatile unsigned int*)(0x42CE0B70UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_MBC5 *((volatile unsigned int*)(0x42CE0B74UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_SA *((volatile unsigned int*)(0x42CE0B78UL)) -#define bFM3_ETHERNET_MAC1_MAR3H_AE *((volatile unsigned int*)(0x42CE0B7CUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A0 *((volatile unsigned int*)(0x42CE0B80UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A1 *((volatile unsigned int*)(0x42CE0B84UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A2 *((volatile unsigned int*)(0x42CE0B88UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A3 *((volatile unsigned int*)(0x42CE0B8CUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A4 *((volatile unsigned int*)(0x42CE0B90UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A5 *((volatile unsigned int*)(0x42CE0B94UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A6 *((volatile unsigned int*)(0x42CE0B98UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A7 *((volatile unsigned int*)(0x42CE0B9CUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A8 *((volatile unsigned int*)(0x42CE0BA0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A9 *((volatile unsigned int*)(0x42CE0BA4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A10 *((volatile unsigned int*)(0x42CE0BA8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A11 *((volatile unsigned int*)(0x42CE0BACUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A12 *((volatile unsigned int*)(0x42CE0BB0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A13 *((volatile unsigned int*)(0x42CE0BB4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A14 *((volatile unsigned int*)(0x42CE0BB8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A15 *((volatile unsigned int*)(0x42CE0BBCUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A16 *((volatile unsigned int*)(0x42CE0BC0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A17 *((volatile unsigned int*)(0x42CE0BC4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A18 *((volatile unsigned int*)(0x42CE0BC8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A19 *((volatile unsigned int*)(0x42CE0BCCUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A20 *((volatile unsigned int*)(0x42CE0BD0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A21 *((volatile unsigned int*)(0x42CE0BD4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A22 *((volatile unsigned int*)(0x42CE0BD8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A23 *((volatile unsigned int*)(0x42CE0BDCUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A24 *((volatile unsigned int*)(0x42CE0BE0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A25 *((volatile unsigned int*)(0x42CE0BE4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A26 *((volatile unsigned int*)(0x42CE0BE8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A27 *((volatile unsigned int*)(0x42CE0BECUL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A28 *((volatile unsigned int*)(0x42CE0BF0UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A29 *((volatile unsigned int*)(0x42CE0BF4UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A30 *((volatile unsigned int*)(0x42CE0BF8UL)) -#define bFM3_ETHERNET_MAC1_MAR3L_A31 *((volatile unsigned int*)(0x42CE0BFCUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A32 *((volatile unsigned int*)(0x42CE0C00UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A33 *((volatile unsigned int*)(0x42CE0C04UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A34 *((volatile unsigned int*)(0x42CE0C08UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A35 *((volatile unsigned int*)(0x42CE0C0CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A36 *((volatile unsigned int*)(0x42CE0C10UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A37 *((volatile unsigned int*)(0x42CE0C14UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A38 *((volatile unsigned int*)(0x42CE0C18UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A39 *((volatile unsigned int*)(0x42CE0C1CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A40 *((volatile unsigned int*)(0x42CE0C20UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A41 *((volatile unsigned int*)(0x42CE0C24UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A42 *((volatile unsigned int*)(0x42CE0C28UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A43 *((volatile unsigned int*)(0x42CE0C2CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A44 *((volatile unsigned int*)(0x42CE0C30UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A45 *((volatile unsigned int*)(0x42CE0C34UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A46 *((volatile unsigned int*)(0x42CE0C38UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_A47 *((volatile unsigned int*)(0x42CE0C3CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC0 *((volatile unsigned int*)(0x42CE0C60UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC1 *((volatile unsigned int*)(0x42CE0C64UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC2 *((volatile unsigned int*)(0x42CE0C68UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC3 *((volatile unsigned int*)(0x42CE0C6CUL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC4 *((volatile unsigned int*)(0x42CE0C70UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_MBC5 *((volatile unsigned int*)(0x42CE0C74UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_SA *((volatile unsigned int*)(0x42CE0C78UL)) -#define bFM3_ETHERNET_MAC1_MAR4H_AE *((volatile unsigned int*)(0x42CE0C7CUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A0 *((volatile unsigned int*)(0x42CE0C80UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A1 *((volatile unsigned int*)(0x42CE0C84UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A2 *((volatile unsigned int*)(0x42CE0C88UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A3 *((volatile unsigned int*)(0x42CE0C8CUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A4 *((volatile unsigned int*)(0x42CE0C90UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A5 *((volatile unsigned int*)(0x42CE0C94UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A6 *((volatile unsigned int*)(0x42CE0C98UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A7 *((volatile unsigned int*)(0x42CE0C9CUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A8 *((volatile unsigned int*)(0x42CE0CA0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A9 *((volatile unsigned int*)(0x42CE0CA4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A10 *((volatile unsigned int*)(0x42CE0CA8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A11 *((volatile unsigned int*)(0x42CE0CACUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A12 *((volatile unsigned int*)(0x42CE0CB0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A13 *((volatile unsigned int*)(0x42CE0CB4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A14 *((volatile unsigned int*)(0x42CE0CB8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A15 *((volatile unsigned int*)(0x42CE0CBCUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A16 *((volatile unsigned int*)(0x42CE0CC0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A17 *((volatile unsigned int*)(0x42CE0CC4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A18 *((volatile unsigned int*)(0x42CE0CC8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A19 *((volatile unsigned int*)(0x42CE0CCCUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A20 *((volatile unsigned int*)(0x42CE0CD0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A21 *((volatile unsigned int*)(0x42CE0CD4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A22 *((volatile unsigned int*)(0x42CE0CD8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A23 *((volatile unsigned int*)(0x42CE0CDCUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A24 *((volatile unsigned int*)(0x42CE0CE0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A25 *((volatile unsigned int*)(0x42CE0CE4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A26 *((volatile unsigned int*)(0x42CE0CE8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A27 *((volatile unsigned int*)(0x42CE0CECUL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A28 *((volatile unsigned int*)(0x42CE0CF0UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A29 *((volatile unsigned int*)(0x42CE0CF4UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A30 *((volatile unsigned int*)(0x42CE0CF8UL)) -#define bFM3_ETHERNET_MAC1_MAR4L_A31 *((volatile unsigned int*)(0x42CE0CFCUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A32 *((volatile unsigned int*)(0x42CE0D00UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A33 *((volatile unsigned int*)(0x42CE0D04UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A34 *((volatile unsigned int*)(0x42CE0D08UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A35 *((volatile unsigned int*)(0x42CE0D0CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A36 *((volatile unsigned int*)(0x42CE0D10UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A37 *((volatile unsigned int*)(0x42CE0D14UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A38 *((volatile unsigned int*)(0x42CE0D18UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A39 *((volatile unsigned int*)(0x42CE0D1CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A40 *((volatile unsigned int*)(0x42CE0D20UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A41 *((volatile unsigned int*)(0x42CE0D24UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A42 *((volatile unsigned int*)(0x42CE0D28UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A43 *((volatile unsigned int*)(0x42CE0D2CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A44 *((volatile unsigned int*)(0x42CE0D30UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A45 *((volatile unsigned int*)(0x42CE0D34UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A46 *((volatile unsigned int*)(0x42CE0D38UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_A47 *((volatile unsigned int*)(0x42CE0D3CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC0 *((volatile unsigned int*)(0x42CE0D60UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC1 *((volatile unsigned int*)(0x42CE0D64UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC2 *((volatile unsigned int*)(0x42CE0D68UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC3 *((volatile unsigned int*)(0x42CE0D6CUL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC4 *((volatile unsigned int*)(0x42CE0D70UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_MBC5 *((volatile unsigned int*)(0x42CE0D74UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_SA *((volatile unsigned int*)(0x42CE0D78UL)) -#define bFM3_ETHERNET_MAC1_MAR5H_AE *((volatile unsigned int*)(0x42CE0D7CUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A0 *((volatile unsigned int*)(0x42CE0D80UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A1 *((volatile unsigned int*)(0x42CE0D84UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A2 *((volatile unsigned int*)(0x42CE0D88UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A3 *((volatile unsigned int*)(0x42CE0D8CUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A4 *((volatile unsigned int*)(0x42CE0D90UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A5 *((volatile unsigned int*)(0x42CE0D94UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A6 *((volatile unsigned int*)(0x42CE0D98UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A7 *((volatile unsigned int*)(0x42CE0D9CUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A8 *((volatile unsigned int*)(0x42CE0DA0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A9 *((volatile unsigned int*)(0x42CE0DA4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A10 *((volatile unsigned int*)(0x42CE0DA8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A11 *((volatile unsigned int*)(0x42CE0DACUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A12 *((volatile unsigned int*)(0x42CE0DB0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A13 *((volatile unsigned int*)(0x42CE0DB4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A14 *((volatile unsigned int*)(0x42CE0DB8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A15 *((volatile unsigned int*)(0x42CE0DBCUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A16 *((volatile unsigned int*)(0x42CE0DC0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A17 *((volatile unsigned int*)(0x42CE0DC4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A18 *((volatile unsigned int*)(0x42CE0DC8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A19 *((volatile unsigned int*)(0x42CE0DCCUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A20 *((volatile unsigned int*)(0x42CE0DD0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A21 *((volatile unsigned int*)(0x42CE0DD4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A22 *((volatile unsigned int*)(0x42CE0DD8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A23 *((volatile unsigned int*)(0x42CE0DDCUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A24 *((volatile unsigned int*)(0x42CE0DE0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A25 *((volatile unsigned int*)(0x42CE0DE4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A26 *((volatile unsigned int*)(0x42CE0DE8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A27 *((volatile unsigned int*)(0x42CE0DECUL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A28 *((volatile unsigned int*)(0x42CE0DF0UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A29 *((volatile unsigned int*)(0x42CE0DF4UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A30 *((volatile unsigned int*)(0x42CE0DF8UL)) -#define bFM3_ETHERNET_MAC1_MAR5L_A31 *((volatile unsigned int*)(0x42CE0DFCUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A32 *((volatile unsigned int*)(0x42CE0E00UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A33 *((volatile unsigned int*)(0x42CE0E04UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A34 *((volatile unsigned int*)(0x42CE0E08UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A35 *((volatile unsigned int*)(0x42CE0E0CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A36 *((volatile unsigned int*)(0x42CE0E10UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A37 *((volatile unsigned int*)(0x42CE0E14UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A38 *((volatile unsigned int*)(0x42CE0E18UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A39 *((volatile unsigned int*)(0x42CE0E1CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A40 *((volatile unsigned int*)(0x42CE0E20UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A41 *((volatile unsigned int*)(0x42CE0E24UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A42 *((volatile unsigned int*)(0x42CE0E28UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A43 *((volatile unsigned int*)(0x42CE0E2CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A44 *((volatile unsigned int*)(0x42CE0E30UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A45 *((volatile unsigned int*)(0x42CE0E34UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A46 *((volatile unsigned int*)(0x42CE0E38UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_A47 *((volatile unsigned int*)(0x42CE0E3CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC0 *((volatile unsigned int*)(0x42CE0E60UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC1 *((volatile unsigned int*)(0x42CE0E64UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC2 *((volatile unsigned int*)(0x42CE0E68UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC3 *((volatile unsigned int*)(0x42CE0E6CUL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC4 *((volatile unsigned int*)(0x42CE0E70UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_MBC5 *((volatile unsigned int*)(0x42CE0E74UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_SA *((volatile unsigned int*)(0x42CE0E78UL)) -#define bFM3_ETHERNET_MAC1_MAR6H_AE *((volatile unsigned int*)(0x42CE0E7CUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A0 *((volatile unsigned int*)(0x42CE0E80UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A1 *((volatile unsigned int*)(0x42CE0E84UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A2 *((volatile unsigned int*)(0x42CE0E88UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A3 *((volatile unsigned int*)(0x42CE0E8CUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A4 *((volatile unsigned int*)(0x42CE0E90UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A5 *((volatile unsigned int*)(0x42CE0E94UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A6 *((volatile unsigned int*)(0x42CE0E98UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A7 *((volatile unsigned int*)(0x42CE0E9CUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A8 *((volatile unsigned int*)(0x42CE0EA0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A9 *((volatile unsigned int*)(0x42CE0EA4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A10 *((volatile unsigned int*)(0x42CE0EA8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A11 *((volatile unsigned int*)(0x42CE0EACUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A12 *((volatile unsigned int*)(0x42CE0EB0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A13 *((volatile unsigned int*)(0x42CE0EB4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A14 *((volatile unsigned int*)(0x42CE0EB8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A15 *((volatile unsigned int*)(0x42CE0EBCUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A16 *((volatile unsigned int*)(0x42CE0EC0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A17 *((volatile unsigned int*)(0x42CE0EC4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A18 *((volatile unsigned int*)(0x42CE0EC8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A19 *((volatile unsigned int*)(0x42CE0ECCUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A20 *((volatile unsigned int*)(0x42CE0ED0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A21 *((volatile unsigned int*)(0x42CE0ED4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A22 *((volatile unsigned int*)(0x42CE0ED8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A23 *((volatile unsigned int*)(0x42CE0EDCUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A24 *((volatile unsigned int*)(0x42CE0EE0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A25 *((volatile unsigned int*)(0x42CE0EE4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A26 *((volatile unsigned int*)(0x42CE0EE8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A27 *((volatile unsigned int*)(0x42CE0EECUL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A28 *((volatile unsigned int*)(0x42CE0EF0UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A29 *((volatile unsigned int*)(0x42CE0EF4UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A30 *((volatile unsigned int*)(0x42CE0EF8UL)) -#define bFM3_ETHERNET_MAC1_MAR6L_A31 *((volatile unsigned int*)(0x42CE0EFCUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A32 *((volatile unsigned int*)(0x42CE0F00UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A33 *((volatile unsigned int*)(0x42CE0F04UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A34 *((volatile unsigned int*)(0x42CE0F08UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A35 *((volatile unsigned int*)(0x42CE0F0CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A36 *((volatile unsigned int*)(0x42CE0F10UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A37 *((volatile unsigned int*)(0x42CE0F14UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A38 *((volatile unsigned int*)(0x42CE0F18UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A39 *((volatile unsigned int*)(0x42CE0F1CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A40 *((volatile unsigned int*)(0x42CE0F20UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A41 *((volatile unsigned int*)(0x42CE0F24UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A42 *((volatile unsigned int*)(0x42CE0F28UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A43 *((volatile unsigned int*)(0x42CE0F2CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A44 *((volatile unsigned int*)(0x42CE0F30UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A45 *((volatile unsigned int*)(0x42CE0F34UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A46 *((volatile unsigned int*)(0x42CE0F38UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_A47 *((volatile unsigned int*)(0x42CE0F3CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC0 *((volatile unsigned int*)(0x42CE0F60UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC1 *((volatile unsigned int*)(0x42CE0F64UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC2 *((volatile unsigned int*)(0x42CE0F68UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC3 *((volatile unsigned int*)(0x42CE0F6CUL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC4 *((volatile unsigned int*)(0x42CE0F70UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_MBC5 *((volatile unsigned int*)(0x42CE0F74UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_SA *((volatile unsigned int*)(0x42CE0F78UL)) -#define bFM3_ETHERNET_MAC1_MAR7H_AE *((volatile unsigned int*)(0x42CE0F7CUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A0 *((volatile unsigned int*)(0x42CE0F80UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A1 *((volatile unsigned int*)(0x42CE0F84UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A2 *((volatile unsigned int*)(0x42CE0F88UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A3 *((volatile unsigned int*)(0x42CE0F8CUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A4 *((volatile unsigned int*)(0x42CE0F90UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A5 *((volatile unsigned int*)(0x42CE0F94UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A6 *((volatile unsigned int*)(0x42CE0F98UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A7 *((volatile unsigned int*)(0x42CE0F9CUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A8 *((volatile unsigned int*)(0x42CE0FA0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A9 *((volatile unsigned int*)(0x42CE0FA4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A10 *((volatile unsigned int*)(0x42CE0FA8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A11 *((volatile unsigned int*)(0x42CE0FACUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A12 *((volatile unsigned int*)(0x42CE0FB0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A13 *((volatile unsigned int*)(0x42CE0FB4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A14 *((volatile unsigned int*)(0x42CE0FB8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A15 *((volatile unsigned int*)(0x42CE0FBCUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A16 *((volatile unsigned int*)(0x42CE0FC0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A17 *((volatile unsigned int*)(0x42CE0FC4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A18 *((volatile unsigned int*)(0x42CE0FC8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A19 *((volatile unsigned int*)(0x42CE0FCCUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A20 *((volatile unsigned int*)(0x42CE0FD0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A21 *((volatile unsigned int*)(0x42CE0FD4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A22 *((volatile unsigned int*)(0x42CE0FD8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A23 *((volatile unsigned int*)(0x42CE0FDCUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A24 *((volatile unsigned int*)(0x42CE0FE0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A25 *((volatile unsigned int*)(0x42CE0FE4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A26 *((volatile unsigned int*)(0x42CE0FE8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A27 *((volatile unsigned int*)(0x42CE0FECUL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A28 *((volatile unsigned int*)(0x42CE0FF0UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A29 *((volatile unsigned int*)(0x42CE0FF4UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A30 *((volatile unsigned int*)(0x42CE0FF8UL)) -#define bFM3_ETHERNET_MAC1_MAR7L_A31 *((volatile unsigned int*)(0x42CE0FFCUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A32 *((volatile unsigned int*)(0x42CE1000UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A33 *((volatile unsigned int*)(0x42CE1004UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A34 *((volatile unsigned int*)(0x42CE1008UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A35 *((volatile unsigned int*)(0x42CE100CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A36 *((volatile unsigned int*)(0x42CE1010UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A37 *((volatile unsigned int*)(0x42CE1014UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A38 *((volatile unsigned int*)(0x42CE1018UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A39 *((volatile unsigned int*)(0x42CE101CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A40 *((volatile unsigned int*)(0x42CE1020UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A41 *((volatile unsigned int*)(0x42CE1024UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A42 *((volatile unsigned int*)(0x42CE1028UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A43 *((volatile unsigned int*)(0x42CE102CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A44 *((volatile unsigned int*)(0x42CE1030UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A45 *((volatile unsigned int*)(0x42CE1034UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A46 *((volatile unsigned int*)(0x42CE1038UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_A47 *((volatile unsigned int*)(0x42CE103CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC0 *((volatile unsigned int*)(0x42CE1060UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC1 *((volatile unsigned int*)(0x42CE1064UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC2 *((volatile unsigned int*)(0x42CE1068UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC3 *((volatile unsigned int*)(0x42CE106CUL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC4 *((volatile unsigned int*)(0x42CE1070UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_MBC5 *((volatile unsigned int*)(0x42CE1074UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_SA *((volatile unsigned int*)(0x42CE1078UL)) -#define bFM3_ETHERNET_MAC1_MAR8H_AE *((volatile unsigned int*)(0x42CE107CUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A0 *((volatile unsigned int*)(0x42CE1080UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A1 *((volatile unsigned int*)(0x42CE1084UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A2 *((volatile unsigned int*)(0x42CE1088UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A3 *((volatile unsigned int*)(0x42CE108CUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A4 *((volatile unsigned int*)(0x42CE1090UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A5 *((volatile unsigned int*)(0x42CE1094UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A6 *((volatile unsigned int*)(0x42CE1098UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A7 *((volatile unsigned int*)(0x42CE109CUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A8 *((volatile unsigned int*)(0x42CE10A0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A9 *((volatile unsigned int*)(0x42CE10A4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A10 *((volatile unsigned int*)(0x42CE10A8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A11 *((volatile unsigned int*)(0x42CE10ACUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A12 *((volatile unsigned int*)(0x42CE10B0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A13 *((volatile unsigned int*)(0x42CE10B4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A14 *((volatile unsigned int*)(0x42CE10B8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A15 *((volatile unsigned int*)(0x42CE10BCUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A16 *((volatile unsigned int*)(0x42CE10C0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A17 *((volatile unsigned int*)(0x42CE10C4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A18 *((volatile unsigned int*)(0x42CE10C8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A19 *((volatile unsigned int*)(0x42CE10CCUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A20 *((volatile unsigned int*)(0x42CE10D0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A21 *((volatile unsigned int*)(0x42CE10D4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A22 *((volatile unsigned int*)(0x42CE10D8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A23 *((volatile unsigned int*)(0x42CE10DCUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A24 *((volatile unsigned int*)(0x42CE10E0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A25 *((volatile unsigned int*)(0x42CE10E4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A26 *((volatile unsigned int*)(0x42CE10E8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A27 *((volatile unsigned int*)(0x42CE10ECUL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A28 *((volatile unsigned int*)(0x42CE10F0UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A29 *((volatile unsigned int*)(0x42CE10F4UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A30 *((volatile unsigned int*)(0x42CE10F8UL)) -#define bFM3_ETHERNET_MAC1_MAR8L_A31 *((volatile unsigned int*)(0x42CE10FCUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A32 *((volatile unsigned int*)(0x42CE1100UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A33 *((volatile unsigned int*)(0x42CE1104UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A34 *((volatile unsigned int*)(0x42CE1108UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A35 *((volatile unsigned int*)(0x42CE110CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A36 *((volatile unsigned int*)(0x42CE1110UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A37 *((volatile unsigned int*)(0x42CE1114UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A38 *((volatile unsigned int*)(0x42CE1118UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A39 *((volatile unsigned int*)(0x42CE111CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A40 *((volatile unsigned int*)(0x42CE1120UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A41 *((volatile unsigned int*)(0x42CE1124UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A42 *((volatile unsigned int*)(0x42CE1128UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A43 *((volatile unsigned int*)(0x42CE112CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A44 *((volatile unsigned int*)(0x42CE1130UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A45 *((volatile unsigned int*)(0x42CE1134UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A46 *((volatile unsigned int*)(0x42CE1138UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_A47 *((volatile unsigned int*)(0x42CE113CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC0 *((volatile unsigned int*)(0x42CE1160UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC1 *((volatile unsigned int*)(0x42CE1164UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC2 *((volatile unsigned int*)(0x42CE1168UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC3 *((volatile unsigned int*)(0x42CE116CUL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC4 *((volatile unsigned int*)(0x42CE1170UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_MBC5 *((volatile unsigned int*)(0x42CE1174UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_SA *((volatile unsigned int*)(0x42CE1178UL)) -#define bFM3_ETHERNET_MAC1_MAR9H_AE *((volatile unsigned int*)(0x42CE117CUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A0 *((volatile unsigned int*)(0x42CE1180UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A1 *((volatile unsigned int*)(0x42CE1184UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A2 *((volatile unsigned int*)(0x42CE1188UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A3 *((volatile unsigned int*)(0x42CE118CUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A4 *((volatile unsigned int*)(0x42CE1190UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A5 *((volatile unsigned int*)(0x42CE1194UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A6 *((volatile unsigned int*)(0x42CE1198UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A7 *((volatile unsigned int*)(0x42CE119CUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A8 *((volatile unsigned int*)(0x42CE11A0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A9 *((volatile unsigned int*)(0x42CE11A4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A10 *((volatile unsigned int*)(0x42CE11A8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A11 *((volatile unsigned int*)(0x42CE11ACUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A12 *((volatile unsigned int*)(0x42CE11B0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A13 *((volatile unsigned int*)(0x42CE11B4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A14 *((volatile unsigned int*)(0x42CE11B8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A15 *((volatile unsigned int*)(0x42CE11BCUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A16 *((volatile unsigned int*)(0x42CE11C0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A17 *((volatile unsigned int*)(0x42CE11C4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A18 *((volatile unsigned int*)(0x42CE11C8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A19 *((volatile unsigned int*)(0x42CE11CCUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A20 *((volatile unsigned int*)(0x42CE11D0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A21 *((volatile unsigned int*)(0x42CE11D4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A22 *((volatile unsigned int*)(0x42CE11D8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A23 *((volatile unsigned int*)(0x42CE11DCUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A24 *((volatile unsigned int*)(0x42CE11E0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A25 *((volatile unsigned int*)(0x42CE11E4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A26 *((volatile unsigned int*)(0x42CE11E8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A27 *((volatile unsigned int*)(0x42CE11ECUL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A28 *((volatile unsigned int*)(0x42CE11F0UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A29 *((volatile unsigned int*)(0x42CE11F4UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A30 *((volatile unsigned int*)(0x42CE11F8UL)) -#define bFM3_ETHERNET_MAC1_MAR9L_A31 *((volatile unsigned int*)(0x42CE11FCUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A32 *((volatile unsigned int*)(0x42CE1200UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A33 *((volatile unsigned int*)(0x42CE1204UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A34 *((volatile unsigned int*)(0x42CE1208UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A35 *((volatile unsigned int*)(0x42CE120CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A36 *((volatile unsigned int*)(0x42CE1210UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A37 *((volatile unsigned int*)(0x42CE1214UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A38 *((volatile unsigned int*)(0x42CE1218UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A39 *((volatile unsigned int*)(0x42CE121CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A40 *((volatile unsigned int*)(0x42CE1220UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A41 *((volatile unsigned int*)(0x42CE1224UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A42 *((volatile unsigned int*)(0x42CE1228UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A43 *((volatile unsigned int*)(0x42CE122CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A44 *((volatile unsigned int*)(0x42CE1230UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A45 *((volatile unsigned int*)(0x42CE1234UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A46 *((volatile unsigned int*)(0x42CE1238UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_A47 *((volatile unsigned int*)(0x42CE123CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC0 *((volatile unsigned int*)(0x42CE1260UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC1 *((volatile unsigned int*)(0x42CE1264UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC2 *((volatile unsigned int*)(0x42CE1268UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC3 *((volatile unsigned int*)(0x42CE126CUL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC4 *((volatile unsigned int*)(0x42CE1270UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_MBC5 *((volatile unsigned int*)(0x42CE1274UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_SA *((volatile unsigned int*)(0x42CE1278UL)) -#define bFM3_ETHERNET_MAC1_MAR10H_AE *((volatile unsigned int*)(0x42CE127CUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A0 *((volatile unsigned int*)(0x42CE1280UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A1 *((volatile unsigned int*)(0x42CE1284UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A2 *((volatile unsigned int*)(0x42CE1288UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A3 *((volatile unsigned int*)(0x42CE128CUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A4 *((volatile unsigned int*)(0x42CE1290UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A5 *((volatile unsigned int*)(0x42CE1294UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A6 *((volatile unsigned int*)(0x42CE1298UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A7 *((volatile unsigned int*)(0x42CE129CUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A8 *((volatile unsigned int*)(0x42CE12A0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A9 *((volatile unsigned int*)(0x42CE12A4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A10 *((volatile unsigned int*)(0x42CE12A8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A11 *((volatile unsigned int*)(0x42CE12ACUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A12 *((volatile unsigned int*)(0x42CE12B0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A13 *((volatile unsigned int*)(0x42CE12B4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A14 *((volatile unsigned int*)(0x42CE12B8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A15 *((volatile unsigned int*)(0x42CE12BCUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A16 *((volatile unsigned int*)(0x42CE12C0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A17 *((volatile unsigned int*)(0x42CE12C4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A18 *((volatile unsigned int*)(0x42CE12C8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A19 *((volatile unsigned int*)(0x42CE12CCUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A20 *((volatile unsigned int*)(0x42CE12D0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A21 *((volatile unsigned int*)(0x42CE12D4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A22 *((volatile unsigned int*)(0x42CE12D8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A23 *((volatile unsigned int*)(0x42CE12DCUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A24 *((volatile unsigned int*)(0x42CE12E0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A25 *((volatile unsigned int*)(0x42CE12E4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A26 *((volatile unsigned int*)(0x42CE12E8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A27 *((volatile unsigned int*)(0x42CE12ECUL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A28 *((volatile unsigned int*)(0x42CE12F0UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A29 *((volatile unsigned int*)(0x42CE12F4UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A30 *((volatile unsigned int*)(0x42CE12F8UL)) -#define bFM3_ETHERNET_MAC1_MAR10L_A31 *((volatile unsigned int*)(0x42CE12FCUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A32 *((volatile unsigned int*)(0x42CE1300UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A33 *((volatile unsigned int*)(0x42CE1304UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A34 *((volatile unsigned int*)(0x42CE1308UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A35 *((volatile unsigned int*)(0x42CE130CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A36 *((volatile unsigned int*)(0x42CE1310UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A37 *((volatile unsigned int*)(0x42CE1314UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A38 *((volatile unsigned int*)(0x42CE1318UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A39 *((volatile unsigned int*)(0x42CE131CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A40 *((volatile unsigned int*)(0x42CE1320UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A41 *((volatile unsigned int*)(0x42CE1324UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A42 *((volatile unsigned int*)(0x42CE1328UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A43 *((volatile unsigned int*)(0x42CE132CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A44 *((volatile unsigned int*)(0x42CE1330UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A45 *((volatile unsigned int*)(0x42CE1334UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A46 *((volatile unsigned int*)(0x42CE1338UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_A47 *((volatile unsigned int*)(0x42CE133CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC0 *((volatile unsigned int*)(0x42CE1360UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC1 *((volatile unsigned int*)(0x42CE1364UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC2 *((volatile unsigned int*)(0x42CE1368UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC3 *((volatile unsigned int*)(0x42CE136CUL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC4 *((volatile unsigned int*)(0x42CE1370UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_MBC5 *((volatile unsigned int*)(0x42CE1374UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_SA *((volatile unsigned int*)(0x42CE1378UL)) -#define bFM3_ETHERNET_MAC1_MAR11H_AE *((volatile unsigned int*)(0x42CE137CUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A0 *((volatile unsigned int*)(0x42CE1380UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A1 *((volatile unsigned int*)(0x42CE1384UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A2 *((volatile unsigned int*)(0x42CE1388UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A3 *((volatile unsigned int*)(0x42CE138CUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A4 *((volatile unsigned int*)(0x42CE1390UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A5 *((volatile unsigned int*)(0x42CE1394UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A6 *((volatile unsigned int*)(0x42CE1398UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A7 *((volatile unsigned int*)(0x42CE139CUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A8 *((volatile unsigned int*)(0x42CE13A0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A9 *((volatile unsigned int*)(0x42CE13A4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A10 *((volatile unsigned int*)(0x42CE13A8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A11 *((volatile unsigned int*)(0x42CE13ACUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A12 *((volatile unsigned int*)(0x42CE13B0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A13 *((volatile unsigned int*)(0x42CE13B4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A14 *((volatile unsigned int*)(0x42CE13B8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A15 *((volatile unsigned int*)(0x42CE13BCUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A16 *((volatile unsigned int*)(0x42CE13C0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A17 *((volatile unsigned int*)(0x42CE13C4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A18 *((volatile unsigned int*)(0x42CE13C8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A19 *((volatile unsigned int*)(0x42CE13CCUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A20 *((volatile unsigned int*)(0x42CE13D0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A21 *((volatile unsigned int*)(0x42CE13D4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A22 *((volatile unsigned int*)(0x42CE13D8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A23 *((volatile unsigned int*)(0x42CE13DCUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A24 *((volatile unsigned int*)(0x42CE13E0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A25 *((volatile unsigned int*)(0x42CE13E4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A26 *((volatile unsigned int*)(0x42CE13E8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A27 *((volatile unsigned int*)(0x42CE13ECUL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A28 *((volatile unsigned int*)(0x42CE13F0UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A29 *((volatile unsigned int*)(0x42CE13F4UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A30 *((volatile unsigned int*)(0x42CE13F8UL)) -#define bFM3_ETHERNET_MAC1_MAR11L_A31 *((volatile unsigned int*)(0x42CE13FCUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A32 *((volatile unsigned int*)(0x42CE1400UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A33 *((volatile unsigned int*)(0x42CE1404UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A34 *((volatile unsigned int*)(0x42CE1408UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A35 *((volatile unsigned int*)(0x42CE140CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A36 *((volatile unsigned int*)(0x42CE1410UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A37 *((volatile unsigned int*)(0x42CE1414UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A38 *((volatile unsigned int*)(0x42CE1418UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A39 *((volatile unsigned int*)(0x42CE141CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A40 *((volatile unsigned int*)(0x42CE1420UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A41 *((volatile unsigned int*)(0x42CE1424UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A42 *((volatile unsigned int*)(0x42CE1428UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A43 *((volatile unsigned int*)(0x42CE142CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A44 *((volatile unsigned int*)(0x42CE1430UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A45 *((volatile unsigned int*)(0x42CE1434UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A46 *((volatile unsigned int*)(0x42CE1438UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_A47 *((volatile unsigned int*)(0x42CE143CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC0 *((volatile unsigned int*)(0x42CE1460UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC1 *((volatile unsigned int*)(0x42CE1464UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC2 *((volatile unsigned int*)(0x42CE1468UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC3 *((volatile unsigned int*)(0x42CE146CUL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC4 *((volatile unsigned int*)(0x42CE1470UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_MBC5 *((volatile unsigned int*)(0x42CE1474UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_SA *((volatile unsigned int*)(0x42CE1478UL)) -#define bFM3_ETHERNET_MAC1_MAR12H_AE *((volatile unsigned int*)(0x42CE147CUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A0 *((volatile unsigned int*)(0x42CE1480UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A1 *((volatile unsigned int*)(0x42CE1484UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A2 *((volatile unsigned int*)(0x42CE1488UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A3 *((volatile unsigned int*)(0x42CE148CUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A4 *((volatile unsigned int*)(0x42CE1490UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A5 *((volatile unsigned int*)(0x42CE1494UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A6 *((volatile unsigned int*)(0x42CE1498UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A7 *((volatile unsigned int*)(0x42CE149CUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A8 *((volatile unsigned int*)(0x42CE14A0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A9 *((volatile unsigned int*)(0x42CE14A4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A10 *((volatile unsigned int*)(0x42CE14A8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A11 *((volatile unsigned int*)(0x42CE14ACUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A12 *((volatile unsigned int*)(0x42CE14B0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A13 *((volatile unsigned int*)(0x42CE14B4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A14 *((volatile unsigned int*)(0x42CE14B8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A15 *((volatile unsigned int*)(0x42CE14BCUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A16 *((volatile unsigned int*)(0x42CE14C0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A17 *((volatile unsigned int*)(0x42CE14C4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A18 *((volatile unsigned int*)(0x42CE14C8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A19 *((volatile unsigned int*)(0x42CE14CCUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A20 *((volatile unsigned int*)(0x42CE14D0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A21 *((volatile unsigned int*)(0x42CE14D4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A22 *((volatile unsigned int*)(0x42CE14D8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A23 *((volatile unsigned int*)(0x42CE14DCUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A24 *((volatile unsigned int*)(0x42CE14E0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A25 *((volatile unsigned int*)(0x42CE14E4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A26 *((volatile unsigned int*)(0x42CE14E8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A27 *((volatile unsigned int*)(0x42CE14ECUL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A28 *((volatile unsigned int*)(0x42CE14F0UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A29 *((volatile unsigned int*)(0x42CE14F4UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A30 *((volatile unsigned int*)(0x42CE14F8UL)) -#define bFM3_ETHERNET_MAC1_MAR12L_A31 *((volatile unsigned int*)(0x42CE14FCUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A32 *((volatile unsigned int*)(0x42CE1500UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A33 *((volatile unsigned int*)(0x42CE1504UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A34 *((volatile unsigned int*)(0x42CE1508UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A35 *((volatile unsigned int*)(0x42CE150CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A36 *((volatile unsigned int*)(0x42CE1510UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A37 *((volatile unsigned int*)(0x42CE1514UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A38 *((volatile unsigned int*)(0x42CE1518UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A39 *((volatile unsigned int*)(0x42CE151CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A40 *((volatile unsigned int*)(0x42CE1520UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A41 *((volatile unsigned int*)(0x42CE1524UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A42 *((volatile unsigned int*)(0x42CE1528UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A43 *((volatile unsigned int*)(0x42CE152CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A44 *((volatile unsigned int*)(0x42CE1530UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A45 *((volatile unsigned int*)(0x42CE1534UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A46 *((volatile unsigned int*)(0x42CE1538UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_A47 *((volatile unsigned int*)(0x42CE153CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC0 *((volatile unsigned int*)(0x42CE1560UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC1 *((volatile unsigned int*)(0x42CE1564UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC2 *((volatile unsigned int*)(0x42CE1568UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC3 *((volatile unsigned int*)(0x42CE156CUL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC4 *((volatile unsigned int*)(0x42CE1570UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_MBC5 *((volatile unsigned int*)(0x42CE1574UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_SA *((volatile unsigned int*)(0x42CE1578UL)) -#define bFM3_ETHERNET_MAC1_MAR13H_AE *((volatile unsigned int*)(0x42CE157CUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A0 *((volatile unsigned int*)(0x42CE1580UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A1 *((volatile unsigned int*)(0x42CE1584UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A2 *((volatile unsigned int*)(0x42CE1588UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A3 *((volatile unsigned int*)(0x42CE158CUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A4 *((volatile unsigned int*)(0x42CE1590UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A5 *((volatile unsigned int*)(0x42CE1594UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A6 *((volatile unsigned int*)(0x42CE1598UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A7 *((volatile unsigned int*)(0x42CE159CUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A8 *((volatile unsigned int*)(0x42CE15A0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A9 *((volatile unsigned int*)(0x42CE15A4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A10 *((volatile unsigned int*)(0x42CE15A8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A11 *((volatile unsigned int*)(0x42CE15ACUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A12 *((volatile unsigned int*)(0x42CE15B0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A13 *((volatile unsigned int*)(0x42CE15B4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A14 *((volatile unsigned int*)(0x42CE15B8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A15 *((volatile unsigned int*)(0x42CE15BCUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A16 *((volatile unsigned int*)(0x42CE15C0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A17 *((volatile unsigned int*)(0x42CE15C4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A18 *((volatile unsigned int*)(0x42CE15C8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A19 *((volatile unsigned int*)(0x42CE15CCUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A20 *((volatile unsigned int*)(0x42CE15D0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A21 *((volatile unsigned int*)(0x42CE15D4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A22 *((volatile unsigned int*)(0x42CE15D8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A23 *((volatile unsigned int*)(0x42CE15DCUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A24 *((volatile unsigned int*)(0x42CE15E0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A25 *((volatile unsigned int*)(0x42CE15E4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A26 *((volatile unsigned int*)(0x42CE15E8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A27 *((volatile unsigned int*)(0x42CE15ECUL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A28 *((volatile unsigned int*)(0x42CE15F0UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A29 *((volatile unsigned int*)(0x42CE15F4UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A30 *((volatile unsigned int*)(0x42CE15F8UL)) -#define bFM3_ETHERNET_MAC1_MAR13L_A31 *((volatile unsigned int*)(0x42CE15FCUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A32 *((volatile unsigned int*)(0x42CE1600UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A33 *((volatile unsigned int*)(0x42CE1604UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A34 *((volatile unsigned int*)(0x42CE1608UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A35 *((volatile unsigned int*)(0x42CE160CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A36 *((volatile unsigned int*)(0x42CE1610UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A37 *((volatile unsigned int*)(0x42CE1614UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A38 *((volatile unsigned int*)(0x42CE1618UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A39 *((volatile unsigned int*)(0x42CE161CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A40 *((volatile unsigned int*)(0x42CE1620UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A41 *((volatile unsigned int*)(0x42CE1624UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A42 *((volatile unsigned int*)(0x42CE1628UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A43 *((volatile unsigned int*)(0x42CE162CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A44 *((volatile unsigned int*)(0x42CE1630UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A45 *((volatile unsigned int*)(0x42CE1634UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A46 *((volatile unsigned int*)(0x42CE1638UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_A47 *((volatile unsigned int*)(0x42CE163CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC0 *((volatile unsigned int*)(0x42CE1660UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC1 *((volatile unsigned int*)(0x42CE1664UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC2 *((volatile unsigned int*)(0x42CE1668UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC3 *((volatile unsigned int*)(0x42CE166CUL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC4 *((volatile unsigned int*)(0x42CE1670UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_MBC5 *((volatile unsigned int*)(0x42CE1674UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_SA *((volatile unsigned int*)(0x42CE1678UL)) -#define bFM3_ETHERNET_MAC1_MAR14H_AE *((volatile unsigned int*)(0x42CE167CUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A0 *((volatile unsigned int*)(0x42CE1680UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A1 *((volatile unsigned int*)(0x42CE1684UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A2 *((volatile unsigned int*)(0x42CE1688UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A3 *((volatile unsigned int*)(0x42CE168CUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A4 *((volatile unsigned int*)(0x42CE1690UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A5 *((volatile unsigned int*)(0x42CE1694UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A6 *((volatile unsigned int*)(0x42CE1698UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A7 *((volatile unsigned int*)(0x42CE169CUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A8 *((volatile unsigned int*)(0x42CE16A0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A9 *((volatile unsigned int*)(0x42CE16A4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A10 *((volatile unsigned int*)(0x42CE16A8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A11 *((volatile unsigned int*)(0x42CE16ACUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A12 *((volatile unsigned int*)(0x42CE16B0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A13 *((volatile unsigned int*)(0x42CE16B4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A14 *((volatile unsigned int*)(0x42CE16B8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A15 *((volatile unsigned int*)(0x42CE16BCUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A16 *((volatile unsigned int*)(0x42CE16C0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A17 *((volatile unsigned int*)(0x42CE16C4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A18 *((volatile unsigned int*)(0x42CE16C8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A19 *((volatile unsigned int*)(0x42CE16CCUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A20 *((volatile unsigned int*)(0x42CE16D0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A21 *((volatile unsigned int*)(0x42CE16D4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A22 *((volatile unsigned int*)(0x42CE16D8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A23 *((volatile unsigned int*)(0x42CE16DCUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A24 *((volatile unsigned int*)(0x42CE16E0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A25 *((volatile unsigned int*)(0x42CE16E4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A26 *((volatile unsigned int*)(0x42CE16E8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A27 *((volatile unsigned int*)(0x42CE16ECUL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A28 *((volatile unsigned int*)(0x42CE16F0UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A29 *((volatile unsigned int*)(0x42CE16F4UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A30 *((volatile unsigned int*)(0x42CE16F8UL)) -#define bFM3_ETHERNET_MAC1_MAR14L_A31 *((volatile unsigned int*)(0x42CE16FCUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A32 *((volatile unsigned int*)(0x42CE1700UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A33 *((volatile unsigned int*)(0x42CE1704UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A34 *((volatile unsigned int*)(0x42CE1708UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A35 *((volatile unsigned int*)(0x42CE170CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A36 *((volatile unsigned int*)(0x42CE1710UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A37 *((volatile unsigned int*)(0x42CE1714UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A38 *((volatile unsigned int*)(0x42CE1718UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A39 *((volatile unsigned int*)(0x42CE171CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A40 *((volatile unsigned int*)(0x42CE1720UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A41 *((volatile unsigned int*)(0x42CE1724UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A42 *((volatile unsigned int*)(0x42CE1728UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A43 *((volatile unsigned int*)(0x42CE172CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A44 *((volatile unsigned int*)(0x42CE1730UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A45 *((volatile unsigned int*)(0x42CE1734UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A46 *((volatile unsigned int*)(0x42CE1738UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_A47 *((volatile unsigned int*)(0x42CE173CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC0 *((volatile unsigned int*)(0x42CE1760UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC1 *((volatile unsigned int*)(0x42CE1764UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC2 *((volatile unsigned int*)(0x42CE1768UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC3 *((volatile unsigned int*)(0x42CE176CUL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC4 *((volatile unsigned int*)(0x42CE1770UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_MBC5 *((volatile unsigned int*)(0x42CE1774UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_SA *((volatile unsigned int*)(0x42CE1778UL)) -#define bFM3_ETHERNET_MAC1_MAR15H_AE *((volatile unsigned int*)(0x42CE177CUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A0 *((volatile unsigned int*)(0x42CE1780UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A1 *((volatile unsigned int*)(0x42CE1784UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A2 *((volatile unsigned int*)(0x42CE1788UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A3 *((volatile unsigned int*)(0x42CE178CUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A4 *((volatile unsigned int*)(0x42CE1790UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A5 *((volatile unsigned int*)(0x42CE1794UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A6 *((volatile unsigned int*)(0x42CE1798UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A7 *((volatile unsigned int*)(0x42CE179CUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A8 *((volatile unsigned int*)(0x42CE17A0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A9 *((volatile unsigned int*)(0x42CE17A4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A10 *((volatile unsigned int*)(0x42CE17A8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A11 *((volatile unsigned int*)(0x42CE17ACUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A12 *((volatile unsigned int*)(0x42CE17B0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A13 *((volatile unsigned int*)(0x42CE17B4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A14 *((volatile unsigned int*)(0x42CE17B8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A15 *((volatile unsigned int*)(0x42CE17BCUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A16 *((volatile unsigned int*)(0x42CE17C0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A17 *((volatile unsigned int*)(0x42CE17C4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A18 *((volatile unsigned int*)(0x42CE17C8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A19 *((volatile unsigned int*)(0x42CE17CCUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A20 *((volatile unsigned int*)(0x42CE17D0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A21 *((volatile unsigned int*)(0x42CE17D4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A22 *((volatile unsigned int*)(0x42CE17D8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A23 *((volatile unsigned int*)(0x42CE17DCUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A24 *((volatile unsigned int*)(0x42CE17E0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A25 *((volatile unsigned int*)(0x42CE17E4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A26 *((volatile unsigned int*)(0x42CE17E8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A27 *((volatile unsigned int*)(0x42CE17ECUL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A28 *((volatile unsigned int*)(0x42CE17F0UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A29 *((volatile unsigned int*)(0x42CE17F4UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A30 *((volatile unsigned int*)(0x42CE17F8UL)) -#define bFM3_ETHERNET_MAC1_MAR15L_A31 *((volatile unsigned int*)(0x42CE17FCUL)) -#define bFM3_ETHERNET_MAC1_RGSR_LM *((volatile unsigned int*)(0x42CE1B00UL)) -#define bFM3_ETHERNET_MAC1_RGSR_LSP0 *((volatile unsigned int*)(0x42CE1B04UL)) -#define bFM3_ETHERNET_MAC1_RGSR_LSP1 *((volatile unsigned int*)(0x42CE1B08UL)) -#define bFM3_ETHERNET_MAC1_RGSR_LS *((volatile unsigned int*)(0x42CE1B0CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSE *((volatile unsigned int*)(0x42CEE000UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TFCU *((volatile unsigned int*)(0x42CEE004UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSI *((volatile unsigned int*)(0x42CEE008UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSU *((volatile unsigned int*)(0x42CEE00CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TITE *((volatile unsigned int*)(0x42CEE010UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TARU *((volatile unsigned int*)(0x42CEE014UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSEA *((volatile unsigned int*)(0x42CEE020UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSDB *((volatile unsigned int*)(0x42CEE024UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSV2E *((volatile unsigned int*)(0x42CEE028UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TETSP *((volatile unsigned int*)(0x42CEE02CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSIP6E *((volatile unsigned int*)(0x42CEE030UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSIP4E *((volatile unsigned int*)(0x42CEE034UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TETSEM *((volatile unsigned int*)(0x42CEE038UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSMRM *((volatile unsigned int*)(0x42CEE03CUL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSPS0 *((volatile unsigned int*)(0x42CEE040UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSPS1 *((volatile unsigned int*)(0x42CEE044UL)) -#define bFM3_ETHERNET_MAC1_TSCR_TSENMF *((volatile unsigned int*)(0x42CEE048UL)) -#define bFM3_ETHERNET_MAC1_TSCR_ATSFC *((volatile unsigned int*)(0x42CEE060UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC0 *((volatile unsigned int*)(0x42CEE080UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC1 *((volatile unsigned int*)(0x42CEE084UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC2 *((volatile unsigned int*)(0x42CEE088UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC3 *((volatile unsigned int*)(0x42CEE08CUL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC4 *((volatile unsigned int*)(0x42CEE090UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC5 *((volatile unsigned int*)(0x42CEE094UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC6 *((volatile unsigned int*)(0x42CEE098UL)) -#define bFM3_ETHERNET_MAC1_SSIR_SSINC7 *((volatile unsigned int*)(0x42CEE09CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS0 *((volatile unsigned int*)(0x42CEE100UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS1 *((volatile unsigned int*)(0x42CEE104UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS2 *((volatile unsigned int*)(0x42CEE108UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS3 *((volatile unsigned int*)(0x42CEE10CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS4 *((volatile unsigned int*)(0x42CEE110UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS5 *((volatile unsigned int*)(0x42CEE114UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS6 *((volatile unsigned int*)(0x42CEE118UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS7 *((volatile unsigned int*)(0x42CEE11CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS8 *((volatile unsigned int*)(0x42CEE120UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS9 *((volatile unsigned int*)(0x42CEE124UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS10 *((volatile unsigned int*)(0x42CEE128UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS11 *((volatile unsigned int*)(0x42CEE12CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS12 *((volatile unsigned int*)(0x42CEE130UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS13 *((volatile unsigned int*)(0x42CEE134UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS14 *((volatile unsigned int*)(0x42CEE138UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS15 *((volatile unsigned int*)(0x42CEE13CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS16 *((volatile unsigned int*)(0x42CEE140UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS17 *((volatile unsigned int*)(0x42CEE144UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS18 *((volatile unsigned int*)(0x42CEE148UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS19 *((volatile unsigned int*)(0x42CEE14CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS20 *((volatile unsigned int*)(0x42CEE150UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS21 *((volatile unsigned int*)(0x42CEE154UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS22 *((volatile unsigned int*)(0x42CEE158UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS23 *((volatile unsigned int*)(0x42CEE15CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS24 *((volatile unsigned int*)(0x42CEE160UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS25 *((volatile unsigned int*)(0x42CEE164UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS26 *((volatile unsigned int*)(0x42CEE168UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS27 *((volatile unsigned int*)(0x42CEE16CUL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS28 *((volatile unsigned int*)(0x42CEE170UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS29 *((volatile unsigned int*)(0x42CEE174UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS30 *((volatile unsigned int*)(0x42CEE178UL)) -#define bFM3_ETHERNET_MAC1_STSR_TSS31 *((volatile unsigned int*)(0x42CEE17CUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS0 *((volatile unsigned int*)(0x42CEE080UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS1 *((volatile unsigned int*)(0x42CEE084UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS2 *((volatile unsigned int*)(0x42CEE088UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS3 *((volatile unsigned int*)(0x42CEE08CUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS4 *((volatile unsigned int*)(0x42CEE090UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS5 *((volatile unsigned int*)(0x42CEE094UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS6 *((volatile unsigned int*)(0x42CEE098UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS7 *((volatile unsigned int*)(0x42CEE09CUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS8 *((volatile unsigned int*)(0x42CEE0A0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS9 *((volatile unsigned int*)(0x42CEE0A4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS10 *((volatile unsigned int*)(0x42CEE0A8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS11 *((volatile unsigned int*)(0x42CEE0ACUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS12 *((volatile unsigned int*)(0x42CEE0B0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS13 *((volatile unsigned int*)(0x42CEE0B4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS14 *((volatile unsigned int*)(0x42CEE0B8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS15 *((volatile unsigned int*)(0x42CEE0BCUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS16 *((volatile unsigned int*)(0x42CEE0C0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS17 *((volatile unsigned int*)(0x42CEE0C4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS18 *((volatile unsigned int*)(0x42CEE0C8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS19 *((volatile unsigned int*)(0x42CEE0CCUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS20 *((volatile unsigned int*)(0x42CEE0D0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS21 *((volatile unsigned int*)(0x42CEE0D4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS22 *((volatile unsigned int*)(0x42CEE0D8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS23 *((volatile unsigned int*)(0x42CEE0DCUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS24 *((volatile unsigned int*)(0x42CEE0E0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS25 *((volatile unsigned int*)(0x42CEE0E4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS26 *((volatile unsigned int*)(0x42CEE0E8UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS27 *((volatile unsigned int*)(0x42CEE0ECUL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS28 *((volatile unsigned int*)(0x42CEE0F0UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS29 *((volatile unsigned int*)(0x42CEE0F4UL)) -#define bFM3_ETHERNET_MAC1_STNR_TSSS30 *((volatile unsigned int*)(0x42CEE0F8UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS0 *((volatile unsigned int*)(0x42CEE200UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS1 *((volatile unsigned int*)(0x42CEE204UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS2 *((volatile unsigned int*)(0x42CEE208UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS3 *((volatile unsigned int*)(0x42CEE20CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS4 *((volatile unsigned int*)(0x42CEE210UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS5 *((volatile unsigned int*)(0x42CEE214UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS6 *((volatile unsigned int*)(0x42CEE218UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS7 *((volatile unsigned int*)(0x42CEE21CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS8 *((volatile unsigned int*)(0x42CEE220UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS9 *((volatile unsigned int*)(0x42CEE224UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS10 *((volatile unsigned int*)(0x42CEE228UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS11 *((volatile unsigned int*)(0x42CEE22CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS12 *((volatile unsigned int*)(0x42CEE230UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS13 *((volatile unsigned int*)(0x42CEE234UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS14 *((volatile unsigned int*)(0x42CEE238UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS15 *((volatile unsigned int*)(0x42CEE23CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS16 *((volatile unsigned int*)(0x42CEE240UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS17 *((volatile unsigned int*)(0x42CEE244UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS18 *((volatile unsigned int*)(0x42CEE248UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS19 *((volatile unsigned int*)(0x42CEE24CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS20 *((volatile unsigned int*)(0x42CEE250UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS21 *((volatile unsigned int*)(0x42CEE254UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS22 *((volatile unsigned int*)(0x42CEE258UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS23 *((volatile unsigned int*)(0x42CEE25CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS24 *((volatile unsigned int*)(0x42CEE260UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS25 *((volatile unsigned int*)(0x42CEE264UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS26 *((volatile unsigned int*)(0x42CEE268UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS27 *((volatile unsigned int*)(0x42CEE26CUL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS28 *((volatile unsigned int*)(0x42CEE270UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS29 *((volatile unsigned int*)(0x42CEE274UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS30 *((volatile unsigned int*)(0x42CEE278UL)) -#define bFM3_ETHERNET_MAC1_STSUR_TSS31 *((volatile unsigned int*)(0x42CEE27CUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS0 *((volatile unsigned int*)(0x42CEE280UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS1 *((volatile unsigned int*)(0x42CEE284UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS2 *((volatile unsigned int*)(0x42CEE288UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS3 *((volatile unsigned int*)(0x42CEE28CUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS4 *((volatile unsigned int*)(0x42CEE290UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS5 *((volatile unsigned int*)(0x42CEE294UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS6 *((volatile unsigned int*)(0x42CEE298UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS7 *((volatile unsigned int*)(0x42CEE29CUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS8 *((volatile unsigned int*)(0x42CEE2A0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS9 *((volatile unsigned int*)(0x42CEE2A4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS10 *((volatile unsigned int*)(0x42CEE2A8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS11 *((volatile unsigned int*)(0x42CEE2ACUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS12 *((volatile unsigned int*)(0x42CEE2B0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS13 *((volatile unsigned int*)(0x42CEE2B4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS14 *((volatile unsigned int*)(0x42CEE2B8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS15 *((volatile unsigned int*)(0x42CEE2BCUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS16 *((volatile unsigned int*)(0x42CEE2C0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS17 *((volatile unsigned int*)(0x42CEE2C4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS18 *((volatile unsigned int*)(0x42CEE2C8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS19 *((volatile unsigned int*)(0x42CEE2CCUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS20 *((volatile unsigned int*)(0x42CEE2D0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS21 *((volatile unsigned int*)(0x42CEE2D4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS22 *((volatile unsigned int*)(0x42CEE2D8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS23 *((volatile unsigned int*)(0x42CEE2DCUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS24 *((volatile unsigned int*)(0x42CEE2E0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS25 *((volatile unsigned int*)(0x42CEE2E4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS26 *((volatile unsigned int*)(0x42CEE2E8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS27 *((volatile unsigned int*)(0x42CEE2ECUL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS28 *((volatile unsigned int*)(0x42CEE2F0UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS29 *((volatile unsigned int*)(0x42CEE2F4UL)) -#define bFM3_ETHERNET_MAC1_STNUR_TSSS30 *((volatile unsigned int*)(0x42CEE2F8UL)) -#define bFM3_ETHERNET_MAC1_STNUR_ADDSUB *((volatile unsigned int*)(0x42CEE2FCUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR0 *((volatile unsigned int*)(0x42CEE300UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR1 *((volatile unsigned int*)(0x42CEE304UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR2 *((volatile unsigned int*)(0x42CEE308UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR3 *((volatile unsigned int*)(0x42CEE30CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR4 *((volatile unsigned int*)(0x42CEE310UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR5 *((volatile unsigned int*)(0x42CEE314UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR6 *((volatile unsigned int*)(0x42CEE318UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR7 *((volatile unsigned int*)(0x42CEE31CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR8 *((volatile unsigned int*)(0x42CEE320UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR9 *((volatile unsigned int*)(0x42CEE324UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR10 *((volatile unsigned int*)(0x42CEE328UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR11 *((volatile unsigned int*)(0x42CEE32CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR12 *((volatile unsigned int*)(0x42CEE330UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR13 *((volatile unsigned int*)(0x42CEE334UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR14 *((volatile unsigned int*)(0x42CEE338UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR15 *((volatile unsigned int*)(0x42CEE33CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR16 *((volatile unsigned int*)(0x42CEE340UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR17 *((volatile unsigned int*)(0x42CEE344UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR18 *((volatile unsigned int*)(0x42CEE348UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR19 *((volatile unsigned int*)(0x42CEE34CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR20 *((volatile unsigned int*)(0x42CEE350UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR21 *((volatile unsigned int*)(0x42CEE354UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR22 *((volatile unsigned int*)(0x42CEE358UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR23 *((volatile unsigned int*)(0x42CEE35CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR24 *((volatile unsigned int*)(0x42CEE360UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR25 *((volatile unsigned int*)(0x42CEE364UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR26 *((volatile unsigned int*)(0x42CEE368UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR27 *((volatile unsigned int*)(0x42CEE36CUL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR28 *((volatile unsigned int*)(0x42CEE370UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR29 *((volatile unsigned int*)(0x42CEE374UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR30 *((volatile unsigned int*)(0x42CEE378UL)) -#define bFM3_ETHERNET_MAC1_TSAR_TSAR31 *((volatile unsigned int*)(0x42CEE37CUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR0 *((volatile unsigned int*)(0x42CEE380UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR1 *((volatile unsigned int*)(0x42CEE384UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR2 *((volatile unsigned int*)(0x42CEE388UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR3 *((volatile unsigned int*)(0x42CEE38CUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR4 *((volatile unsigned int*)(0x42CEE390UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR5 *((volatile unsigned int*)(0x42CEE394UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR6 *((volatile unsigned int*)(0x42CEE398UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR7 *((volatile unsigned int*)(0x42CEE39CUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR8 *((volatile unsigned int*)(0x42CEE3A0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR9 *((volatile unsigned int*)(0x42CEE3A4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR10 *((volatile unsigned int*)(0x42CEE3A8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR11 *((volatile unsigned int*)(0x42CEE3ACUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR12 *((volatile unsigned int*)(0x42CEE3B0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR13 *((volatile unsigned int*)(0x42CEE3B4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR14 *((volatile unsigned int*)(0x42CEE3B8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR15 *((volatile unsigned int*)(0x42CEE3BCUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR16 *((volatile unsigned int*)(0x42CEE3C0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR17 *((volatile unsigned int*)(0x42CEE3C4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR18 *((volatile unsigned int*)(0x42CEE3C8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR19 *((volatile unsigned int*)(0x42CEE3CCUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR20 *((volatile unsigned int*)(0x42CEE3D0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR21 *((volatile unsigned int*)(0x42CEE3D4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR22 *((volatile unsigned int*)(0x42CEE3D8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR23 *((volatile unsigned int*)(0x42CEE3DCUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR24 *((volatile unsigned int*)(0x42CEE3E0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR25 *((volatile unsigned int*)(0x42CEE3E4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR26 *((volatile unsigned int*)(0x42CEE3E8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR27 *((volatile unsigned int*)(0x42CEE3ECUL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR28 *((volatile unsigned int*)(0x42CEE3F0UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR29 *((volatile unsigned int*)(0x42CEE3F4UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR30 *((volatile unsigned int*)(0x42CEE3F8UL)) -#define bFM3_ETHERNET_MAC1_TTSR_TSTR31 *((volatile unsigned int*)(0x42CEE3FCUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR0 *((volatile unsigned int*)(0x42CEE400UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR1 *((volatile unsigned int*)(0x42CEE404UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR2 *((volatile unsigned int*)(0x42CEE408UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR3 *((volatile unsigned int*)(0x42CEE40CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR4 *((volatile unsigned int*)(0x42CEE410UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR5 *((volatile unsigned int*)(0x42CEE414UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR6 *((volatile unsigned int*)(0x42CEE418UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR7 *((volatile unsigned int*)(0x42CEE41CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR8 *((volatile unsigned int*)(0x42CEE420UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR9 *((volatile unsigned int*)(0x42CEE424UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR10 *((volatile unsigned int*)(0x42CEE428UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR11 *((volatile unsigned int*)(0x42CEE42CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR12 *((volatile unsigned int*)(0x42CEE430UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR13 *((volatile unsigned int*)(0x42CEE434UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR14 *((volatile unsigned int*)(0x42CEE438UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR15 *((volatile unsigned int*)(0x42CEE43CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR16 *((volatile unsigned int*)(0x42CEE440UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR17 *((volatile unsigned int*)(0x42CEE444UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR18 *((volatile unsigned int*)(0x42CEE448UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR19 *((volatile unsigned int*)(0x42CEE44CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR20 *((volatile unsigned int*)(0x42CEE450UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR21 *((volatile unsigned int*)(0x42CEE454UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR22 *((volatile unsigned int*)(0x42CEE458UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR23 *((volatile unsigned int*)(0x42CEE45CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR24 *((volatile unsigned int*)(0x42CEE460UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR25 *((volatile unsigned int*)(0x42CEE464UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR26 *((volatile unsigned int*)(0x42CEE468UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR27 *((volatile unsigned int*)(0x42CEE46CUL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR28 *((volatile unsigned int*)(0x42CEE470UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR29 *((volatile unsigned int*)(0x42CEE474UL)) -#define bFM3_ETHERNET_MAC1_TTNR_TSTR30 *((volatile unsigned int*)(0x42CEE478UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR0 *((volatile unsigned int*)(0x42CEE480UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR1 *((volatile unsigned int*)(0x42CEE484UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR2 *((volatile unsigned int*)(0x42CEE488UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR3 *((volatile unsigned int*)(0x42CEE48CUL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR4 *((volatile unsigned int*)(0x42CEE490UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR5 *((volatile unsigned int*)(0x42CEE494UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR6 *((volatile unsigned int*)(0x42CEE498UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR7 *((volatile unsigned int*)(0x42CEE49CUL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR8 *((volatile unsigned int*)(0x42CEE4A0UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR9 *((volatile unsigned int*)(0x42CEE4A4UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR10 *((volatile unsigned int*)(0x42CEE4A8UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR11 *((volatile unsigned int*)(0x42CEE4ACUL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR12 *((volatile unsigned int*)(0x42CEE4B0UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR13 *((volatile unsigned int*)(0x42CEE4B4UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR14 *((volatile unsigned int*)(0x42CEE4B8UL)) -#define bFM3_ETHERNET_MAC1_STHWSR_TSHWR15 *((volatile unsigned int*)(0x42CEE4BCUL)) -#define bFM3_ETHERNET_MAC1_TSR_TSSOVF *((volatile unsigned int*)(0x42CEE500UL)) -#define bFM3_ETHERNET_MAC1_TSR_TSTART *((volatile unsigned int*)(0x42CEE504UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSTS *((volatile unsigned int*)(0x42CEE508UL)) -#define bFM3_ETHERNET_MAC1_TSR_TRGTER *((volatile unsigned int*)(0x42C8E50CUL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSSTM *((volatile unsigned int*)(0x42CEE560UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSNS0 *((volatile unsigned int*)(0x42CEE564UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSNS1 *((volatile unsigned int*)(0x42CEE568UL)) -#define bFM3_ETHERNET_MAC1_TSR_ATSNS2 *((volatile unsigned int*)(0x42CEE56CUL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL0 *((volatile unsigned int*)(0x42CEE580UL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL1 *((volatile unsigned int*)(0x42CEE584UL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL2 *((volatile unsigned int*)(0x42CEE588UL)) -#define bFM3_ETHERNET_MAC1_PPSCR_PPSCTRL3 *((volatile unsigned int*)(0x42CEE58CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN0 *((volatile unsigned int*)(0x42CEE600UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN1 *((volatile unsigned int*)(0x42CEE604UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN2 *((volatile unsigned int*)(0x42CEE608UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN3 *((volatile unsigned int*)(0x42CEE60CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN4 *((volatile unsigned int*)(0x42CEE610UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN5 *((volatile unsigned int*)(0x42CEE614UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN6 *((volatile unsigned int*)(0x42CEE618UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN7 *((volatile unsigned int*)(0x42CEE61CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN8 *((volatile unsigned int*)(0x42CEE620UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN9 *((volatile unsigned int*)(0x42CEE624UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN10 *((volatile unsigned int*)(0x42CEE628UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN11 *((volatile unsigned int*)(0x42CEE62CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN12 *((volatile unsigned int*)(0x42CEE630UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN13 *((volatile unsigned int*)(0x42CEE634UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN14 *((volatile unsigned int*)(0x42CEE638UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN15 *((volatile unsigned int*)(0x42CEE63CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN16 *((volatile unsigned int*)(0x42CEE640UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN17 *((volatile unsigned int*)(0x42CEE644UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN18 *((volatile unsigned int*)(0x42CEE648UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN19 *((volatile unsigned int*)(0x42CEE64CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN20 *((volatile unsigned int*)(0x42CEE650UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN21 *((volatile unsigned int*)(0x42CEE654UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN22 *((volatile unsigned int*)(0x42CEE658UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN23 *((volatile unsigned int*)(0x42CEE65CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN24 *((volatile unsigned int*)(0x42CEE660UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN25 *((volatile unsigned int*)(0x42CEE664UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN26 *((volatile unsigned int*)(0x42CEE668UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN27 *((volatile unsigned int*)(0x42CEE66CUL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN28 *((volatile unsigned int*)(0x42CEE670UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN29 *((volatile unsigned int*)(0x42CEE674UL)) -#define bFM3_ETHERNET_MAC1_ATNR_ATN30 *((volatile unsigned int*)(0x42CEE678UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS0 *((volatile unsigned int*)(0x42CEE680UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS1 *((volatile unsigned int*)(0x42CEE684UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS2 *((volatile unsigned int*)(0x42CEE688UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS3 *((volatile unsigned int*)(0x42CEE68CUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS4 *((volatile unsigned int*)(0x42CEE690UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS5 *((volatile unsigned int*)(0x42CEE694UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS6 *((volatile unsigned int*)(0x42CEE698UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS7 *((volatile unsigned int*)(0x42CEE69CUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS8 *((volatile unsigned int*)(0x42CEE6A0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS9 *((volatile unsigned int*)(0x42CEE6A4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS10 *((volatile unsigned int*)(0x42CEE6A8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS11 *((volatile unsigned int*)(0x42CEE6ACUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS12 *((volatile unsigned int*)(0x42CEE6B0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS13 *((volatile unsigned int*)(0x42CEE6B4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS14 *((volatile unsigned int*)(0x42CEE6B8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS15 *((volatile unsigned int*)(0x42CEE6BCUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS16 *((volatile unsigned int*)(0x42CEE6C0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS17 *((volatile unsigned int*)(0x42CEE6C4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS18 *((volatile unsigned int*)(0x42CEE6C8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS19 *((volatile unsigned int*)(0x42CEE6CCUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS20 *((volatile unsigned int*)(0x42CEE6D0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS21 *((volatile unsigned int*)(0x42CEE6D4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS22 *((volatile unsigned int*)(0x42CEE6D8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS23 *((volatile unsigned int*)(0x42CEE6DCUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS24 *((volatile unsigned int*)(0x42CEE6E0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS25 *((volatile unsigned int*)(0x42CEE6E4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS26 *((volatile unsigned int*)(0x42CEE6E8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS27 *((volatile unsigned int*)(0x42CEE6ECUL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS28 *((volatile unsigned int*)(0x42CEE6F0UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS29 *((volatile unsigned int*)(0x42CEE6F4UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS30 *((volatile unsigned int*)(0x42CEE6F8UL)) -#define bFM3_ETHERNET_MAC1_ATSR_ATS31 *((volatile unsigned int*)(0x42CEE6FCUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A32 *((volatile unsigned int*)(0x42CF0000UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A33 *((volatile unsigned int*)(0x42CF0004UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A34 *((volatile unsigned int*)(0x42CF0008UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A35 *((volatile unsigned int*)(0x42CF000CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A36 *((volatile unsigned int*)(0x42CF0010UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A37 *((volatile unsigned int*)(0x42CF0014UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A38 *((volatile unsigned int*)(0x42CF0018UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A39 *((volatile unsigned int*)(0x42CF001CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A40 *((volatile unsigned int*)(0x42CF0020UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A41 *((volatile unsigned int*)(0x42CF0024UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A42 *((volatile unsigned int*)(0x42CF0028UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A43 *((volatile unsigned int*)(0x42CF002CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A44 *((volatile unsigned int*)(0x42CF0030UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A45 *((volatile unsigned int*)(0x42CF0034UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A46 *((volatile unsigned int*)(0x42CF0038UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_A47 *((volatile unsigned int*)(0x42CF003CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC0 *((volatile unsigned int*)(0x42CF0060UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC1 *((volatile unsigned int*)(0x42CF0064UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC2 *((volatile unsigned int*)(0x42CF0068UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC3 *((volatile unsigned int*)(0x42CF006CUL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC4 *((volatile unsigned int*)(0x42CF0070UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_MBC5 *((volatile unsigned int*)(0x42CF0074UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_SA *((volatile unsigned int*)(0x42CF0078UL)) -#define bFM3_ETHERNET_MAC1_MAR16H_AE *((volatile unsigned int*)(0x42CF007CUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A0 *((volatile unsigned int*)(0x42CF0080UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A1 *((volatile unsigned int*)(0x42CF0084UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A2 *((volatile unsigned int*)(0x42CF0088UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A3 *((volatile unsigned int*)(0x42CF008CUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A4 *((volatile unsigned int*)(0x42CF0090UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A5 *((volatile unsigned int*)(0x42CF0094UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A6 *((volatile unsigned int*)(0x42CF0098UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A7 *((volatile unsigned int*)(0x42CF009CUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A8 *((volatile unsigned int*)(0x42CF00A0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A9 *((volatile unsigned int*)(0x42CF00A4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A10 *((volatile unsigned int*)(0x42CF00A8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A11 *((volatile unsigned int*)(0x42CF00ACUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A12 *((volatile unsigned int*)(0x42CF00B0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A13 *((volatile unsigned int*)(0x42CF00B4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A14 *((volatile unsigned int*)(0x42CF00B8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A15 *((volatile unsigned int*)(0x42CF00BCUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A16 *((volatile unsigned int*)(0x42CF00C0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A17 *((volatile unsigned int*)(0x42CF00C4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A18 *((volatile unsigned int*)(0x42CF00C8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A19 *((volatile unsigned int*)(0x42CF00CCUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A20 *((volatile unsigned int*)(0x42CF00D0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A21 *((volatile unsigned int*)(0x42CF00D4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A22 *((volatile unsigned int*)(0x42CF00D8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A23 *((volatile unsigned int*)(0x42CF00DCUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A24 *((volatile unsigned int*)(0x42CF00E0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A25 *((volatile unsigned int*)(0x42CF00E4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A26 *((volatile unsigned int*)(0x42CF00E8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A27 *((volatile unsigned int*)(0x42CF00ECUL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A28 *((volatile unsigned int*)(0x42CF00F0UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A29 *((volatile unsigned int*)(0x42CF00F4UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A30 *((volatile unsigned int*)(0x42CF00F8UL)) -#define bFM3_ETHERNET_MAC1_MAR16L_A31 *((volatile unsigned int*)(0x42CF00FCUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A32 *((volatile unsigned int*)(0x42CF0100UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A33 *((volatile unsigned int*)(0x42CF0104UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A34 *((volatile unsigned int*)(0x42CF0108UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A35 *((volatile unsigned int*)(0x42CF010CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A36 *((volatile unsigned int*)(0x42CF0110UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A37 *((volatile unsigned int*)(0x42CF0114UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A38 *((volatile unsigned int*)(0x42CF0118UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A39 *((volatile unsigned int*)(0x42CF011CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A40 *((volatile unsigned int*)(0x42CF0120UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A41 *((volatile unsigned int*)(0x42CF0124UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A42 *((volatile unsigned int*)(0x42CF0128UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A43 *((volatile unsigned int*)(0x42CF012CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A44 *((volatile unsigned int*)(0x42CF0130UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A45 *((volatile unsigned int*)(0x42CF0134UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A46 *((volatile unsigned int*)(0x42CF0138UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_A47 *((volatile unsigned int*)(0x42CF013CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC0 *((volatile unsigned int*)(0x42CF0160UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC1 *((volatile unsigned int*)(0x42CF0164UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC2 *((volatile unsigned int*)(0x42CF0168UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC3 *((volatile unsigned int*)(0x42CF016CUL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC4 *((volatile unsigned int*)(0x42CF0170UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_MBC5 *((volatile unsigned int*)(0x42CF0174UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_SA *((volatile unsigned int*)(0x42CF0178UL)) -#define bFM3_ETHERNET_MAC1_MAR17H_AE *((volatile unsigned int*)(0x42CF017CUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A0 *((volatile unsigned int*)(0x42CF0180UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A1 *((volatile unsigned int*)(0x42CF0184UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A2 *((volatile unsigned int*)(0x42CF0188UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A3 *((volatile unsigned int*)(0x42CF018CUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A4 *((volatile unsigned int*)(0x42CF0190UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A5 *((volatile unsigned int*)(0x42CF0194UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A6 *((volatile unsigned int*)(0x42CF0198UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A7 *((volatile unsigned int*)(0x42CF019CUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A8 *((volatile unsigned int*)(0x42CF01A0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A9 *((volatile unsigned int*)(0x42CF01A4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A10 *((volatile unsigned int*)(0x42CF01A8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A11 *((volatile unsigned int*)(0x42CF01ACUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A12 *((volatile unsigned int*)(0x42CF01B0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A13 *((volatile unsigned int*)(0x42CF01B4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A14 *((volatile unsigned int*)(0x42CF01B8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A15 *((volatile unsigned int*)(0x42CF01BCUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A16 *((volatile unsigned int*)(0x42CF01C0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A17 *((volatile unsigned int*)(0x42CF01C4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A18 *((volatile unsigned int*)(0x42CF01C8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A19 *((volatile unsigned int*)(0x42CF01CCUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A20 *((volatile unsigned int*)(0x42CF01D0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A21 *((volatile unsigned int*)(0x42CF01D4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A22 *((volatile unsigned int*)(0x42CF01D8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A23 *((volatile unsigned int*)(0x42CF01DCUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A24 *((volatile unsigned int*)(0x42CF01E0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A25 *((volatile unsigned int*)(0x42CF01E4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A26 *((volatile unsigned int*)(0x42CF01E8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A27 *((volatile unsigned int*)(0x42CF01ECUL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A28 *((volatile unsigned int*)(0x42CF01F0UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A29 *((volatile unsigned int*)(0x42CF01F4UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A30 *((volatile unsigned int*)(0x42CF01F8UL)) -#define bFM3_ETHERNET_MAC1_MAR17L_A31 *((volatile unsigned int*)(0x42CF01FCUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A32 *((volatile unsigned int*)(0x42CF0200UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A33 *((volatile unsigned int*)(0x42CF0204UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A34 *((volatile unsigned int*)(0x42CF0208UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A35 *((volatile unsigned int*)(0x42CF020CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A36 *((volatile unsigned int*)(0x42CF0210UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A37 *((volatile unsigned int*)(0x42CF0214UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A38 *((volatile unsigned int*)(0x42CF0218UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A39 *((volatile unsigned int*)(0x42CF021CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A40 *((volatile unsigned int*)(0x42CF0220UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A41 *((volatile unsigned int*)(0x42CF0224UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A42 *((volatile unsigned int*)(0x42CF0228UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A43 *((volatile unsigned int*)(0x42CF022CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A44 *((volatile unsigned int*)(0x42CF0230UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A45 *((volatile unsigned int*)(0x42CF0234UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A46 *((volatile unsigned int*)(0x42CF0238UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_A47 *((volatile unsigned int*)(0x42CF023CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC0 *((volatile unsigned int*)(0x42CF0260UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC1 *((volatile unsigned int*)(0x42CF0264UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC2 *((volatile unsigned int*)(0x42CF0268UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC3 *((volatile unsigned int*)(0x42CF026CUL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC4 *((volatile unsigned int*)(0x42CF0270UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_MBC5 *((volatile unsigned int*)(0x42CF0274UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_SA *((volatile unsigned int*)(0x42CF0278UL)) -#define bFM3_ETHERNET_MAC1_MAR18H_AE *((volatile unsigned int*)(0x42CF027CUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A0 *((volatile unsigned int*)(0x42CF0280UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A1 *((volatile unsigned int*)(0x42CF0284UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A2 *((volatile unsigned int*)(0x42CF0288UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A3 *((volatile unsigned int*)(0x42CF028CUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A4 *((volatile unsigned int*)(0x42CF0290UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A5 *((volatile unsigned int*)(0x42CF0294UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A6 *((volatile unsigned int*)(0x42CF0298UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A7 *((volatile unsigned int*)(0x42CF029CUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A8 *((volatile unsigned int*)(0x42CF02A0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A9 *((volatile unsigned int*)(0x42CF02A4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A10 *((volatile unsigned int*)(0x42CF02A8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A11 *((volatile unsigned int*)(0x42CF02ACUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A12 *((volatile unsigned int*)(0x42CF02B0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A13 *((volatile unsigned int*)(0x42CF02B4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A14 *((volatile unsigned int*)(0x42CF02B8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A15 *((volatile unsigned int*)(0x42CF02BCUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A16 *((volatile unsigned int*)(0x42CF02C0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A17 *((volatile unsigned int*)(0x42CF02C4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A18 *((volatile unsigned int*)(0x42CF02C8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A19 *((volatile unsigned int*)(0x42CF02CCUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A20 *((volatile unsigned int*)(0x42CF02D0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A21 *((volatile unsigned int*)(0x42CF02D4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A22 *((volatile unsigned int*)(0x42CF02D8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A23 *((volatile unsigned int*)(0x42CF02DCUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A24 *((volatile unsigned int*)(0x42CF02E0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A25 *((volatile unsigned int*)(0x42CF02E4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A26 *((volatile unsigned int*)(0x42CF02E8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A27 *((volatile unsigned int*)(0x42CF02ECUL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A28 *((volatile unsigned int*)(0x42CF02F0UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A29 *((volatile unsigned int*)(0x42CF02F4UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A30 *((volatile unsigned int*)(0x42CF02F8UL)) -#define bFM3_ETHERNET_MAC1_MAR18L_A31 *((volatile unsigned int*)(0x42CF02FCUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A32 *((volatile unsigned int*)(0x42CF0300UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A33 *((volatile unsigned int*)(0x42CF0304UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A34 *((volatile unsigned int*)(0x42CF0308UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A35 *((volatile unsigned int*)(0x42CF030CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A36 *((volatile unsigned int*)(0x42CF0310UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A37 *((volatile unsigned int*)(0x42CF0314UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A38 *((volatile unsigned int*)(0x42CF0318UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A39 *((volatile unsigned int*)(0x42CF031CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A40 *((volatile unsigned int*)(0x42CF0320UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A41 *((volatile unsigned int*)(0x42CF0324UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A42 *((volatile unsigned int*)(0x42CF0328UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A43 *((volatile unsigned int*)(0x42CF032CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A44 *((volatile unsigned int*)(0x42CF0330UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A45 *((volatile unsigned int*)(0x42CF0334UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A46 *((volatile unsigned int*)(0x42CF0338UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_A47 *((volatile unsigned int*)(0x42CF033CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC0 *((volatile unsigned int*)(0x42CF0360UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC1 *((volatile unsigned int*)(0x42CF0364UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC2 *((volatile unsigned int*)(0x42CF0368UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC3 *((volatile unsigned int*)(0x42CF036CUL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC4 *((volatile unsigned int*)(0x42CF0370UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_MBC5 *((volatile unsigned int*)(0x42CF0374UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_SA *((volatile unsigned int*)(0x42CF0378UL)) -#define bFM3_ETHERNET_MAC1_MAR19H_AE *((volatile unsigned int*)(0x42CF037CUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A0 *((volatile unsigned int*)(0x42CF0380UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A1 *((volatile unsigned int*)(0x42CF0384UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A2 *((volatile unsigned int*)(0x42CF0388UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A3 *((volatile unsigned int*)(0x42CF038CUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A4 *((volatile unsigned int*)(0x42CF0390UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A5 *((volatile unsigned int*)(0x42CF0394UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A6 *((volatile unsigned int*)(0x42CF0398UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A7 *((volatile unsigned int*)(0x42CF039CUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A8 *((volatile unsigned int*)(0x42CF03A0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A9 *((volatile unsigned int*)(0x42CF03A4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A10 *((volatile unsigned int*)(0x42CF03A8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A11 *((volatile unsigned int*)(0x42CF03ACUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A12 *((volatile unsigned int*)(0x42CF03B0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A13 *((volatile unsigned int*)(0x42CF03B4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A14 *((volatile unsigned int*)(0x42CF03B8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A15 *((volatile unsigned int*)(0x42CF03BCUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A16 *((volatile unsigned int*)(0x42CF03C0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A17 *((volatile unsigned int*)(0x42CF03C4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A18 *((volatile unsigned int*)(0x42CF03C8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A19 *((volatile unsigned int*)(0x42CF03CCUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A20 *((volatile unsigned int*)(0x42CF03D0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A21 *((volatile unsigned int*)(0x42CF03D4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A22 *((volatile unsigned int*)(0x42CF03D8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A23 *((volatile unsigned int*)(0x42CF03DCUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A24 *((volatile unsigned int*)(0x42CF03E0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A25 *((volatile unsigned int*)(0x42CF03E4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A26 *((volatile unsigned int*)(0x42CF03E8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A27 *((volatile unsigned int*)(0x42CF03ECUL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A28 *((volatile unsigned int*)(0x42CF03F0UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A29 *((volatile unsigned int*)(0x42CF03F4UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A30 *((volatile unsigned int*)(0x42CF03F8UL)) -#define bFM3_ETHERNET_MAC1_MAR19L_A31 *((volatile unsigned int*)(0x42CF03FCUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A32 *((volatile unsigned int*)(0x42CF0400UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A33 *((volatile unsigned int*)(0x42CF0404UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A34 *((volatile unsigned int*)(0x42CF0408UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A35 *((volatile unsigned int*)(0x42CF040CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A36 *((volatile unsigned int*)(0x42CF0410UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A37 *((volatile unsigned int*)(0x42CF0414UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A38 *((volatile unsigned int*)(0x42CF0418UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A39 *((volatile unsigned int*)(0x42CF041CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A40 *((volatile unsigned int*)(0x42CF0420UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A41 *((volatile unsigned int*)(0x42CF0424UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A42 *((volatile unsigned int*)(0x42CF0428UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A43 *((volatile unsigned int*)(0x42CF042CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A44 *((volatile unsigned int*)(0x42CF0430UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A45 *((volatile unsigned int*)(0x42CF0434UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A46 *((volatile unsigned int*)(0x42CF0438UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_A47 *((volatile unsigned int*)(0x42CF043CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC0 *((volatile unsigned int*)(0x42CF0460UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC1 *((volatile unsigned int*)(0x42CF0464UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC2 *((volatile unsigned int*)(0x42CF0468UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC3 *((volatile unsigned int*)(0x42CF046CUL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC4 *((volatile unsigned int*)(0x42CF0470UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_MBC5 *((volatile unsigned int*)(0x42CF0474UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_SA *((volatile unsigned int*)(0x42CF0478UL)) -#define bFM3_ETHERNET_MAC1_MAR20H_AE *((volatile unsigned int*)(0x42CF047CUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A0 *((volatile unsigned int*)(0x42CF0480UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A1 *((volatile unsigned int*)(0x42CF0484UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A2 *((volatile unsigned int*)(0x42CF0488UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A3 *((volatile unsigned int*)(0x42CF048CUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A4 *((volatile unsigned int*)(0x42CF0490UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A5 *((volatile unsigned int*)(0x42CF0494UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A6 *((volatile unsigned int*)(0x42CF0498UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A7 *((volatile unsigned int*)(0x42CF049CUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A8 *((volatile unsigned int*)(0x42CF04A0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A9 *((volatile unsigned int*)(0x42CF04A4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A10 *((volatile unsigned int*)(0x42CF04A8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A11 *((volatile unsigned int*)(0x42CF04ACUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A12 *((volatile unsigned int*)(0x42CF04B0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A13 *((volatile unsigned int*)(0x42CF04B4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A14 *((volatile unsigned int*)(0x42CF04B8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A15 *((volatile unsigned int*)(0x42CF04BCUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A16 *((volatile unsigned int*)(0x42CF04C0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A17 *((volatile unsigned int*)(0x42CF04C4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A18 *((volatile unsigned int*)(0x42CF04C8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A19 *((volatile unsigned int*)(0x42CF04CCUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A20 *((volatile unsigned int*)(0x42CF04D0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A21 *((volatile unsigned int*)(0x42CF04D4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A22 *((volatile unsigned int*)(0x42CF04D8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A23 *((volatile unsigned int*)(0x42CF04DCUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A24 *((volatile unsigned int*)(0x42CF04E0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A25 *((volatile unsigned int*)(0x42CF04E4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A26 *((volatile unsigned int*)(0x42CF04E8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A27 *((volatile unsigned int*)(0x42CF04ECUL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A28 *((volatile unsigned int*)(0x42CF04F0UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A29 *((volatile unsigned int*)(0x42CF04F4UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A30 *((volatile unsigned int*)(0x42CF04F8UL)) -#define bFM3_ETHERNET_MAC1_MAR20L_A31 *((volatile unsigned int*)(0x42CF04FCUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A32 *((volatile unsigned int*)(0x42CF0500UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A33 *((volatile unsigned int*)(0x42CF0504UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A34 *((volatile unsigned int*)(0x42CF0508UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A35 *((volatile unsigned int*)(0x42CF050CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A36 *((volatile unsigned int*)(0x42CF0510UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A37 *((volatile unsigned int*)(0x42CF0514UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A38 *((volatile unsigned int*)(0x42CF0518UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A39 *((volatile unsigned int*)(0x42CF051CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A40 *((volatile unsigned int*)(0x42CF0520UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A41 *((volatile unsigned int*)(0x42CF0524UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A42 *((volatile unsigned int*)(0x42CF0528UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A43 *((volatile unsigned int*)(0x42CF052CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A44 *((volatile unsigned int*)(0x42CF0530UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A45 *((volatile unsigned int*)(0x42CF0534UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A46 *((volatile unsigned int*)(0x42CF0538UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_A47 *((volatile unsigned int*)(0x42CF053CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC0 *((volatile unsigned int*)(0x42CF0560UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC1 *((volatile unsigned int*)(0x42CF0564UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC2 *((volatile unsigned int*)(0x42CF0568UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC3 *((volatile unsigned int*)(0x42CF056CUL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC4 *((volatile unsigned int*)(0x42CF0570UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_MBC5 *((volatile unsigned int*)(0x42CF0574UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_SA *((volatile unsigned int*)(0x42CF0578UL)) -#define bFM3_ETHERNET_MAC1_MAR21H_AE *((volatile unsigned int*)(0x42CF057CUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A0 *((volatile unsigned int*)(0x42CF0580UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A1 *((volatile unsigned int*)(0x42CF0584UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A2 *((volatile unsigned int*)(0x42CF0588UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A3 *((volatile unsigned int*)(0x42CF058CUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A4 *((volatile unsigned int*)(0x42CF0590UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A5 *((volatile unsigned int*)(0x42CF0594UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A6 *((volatile unsigned int*)(0x42CF0598UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A7 *((volatile unsigned int*)(0x42CF059CUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A8 *((volatile unsigned int*)(0x42CF05A0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A9 *((volatile unsigned int*)(0x42CF05A4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A10 *((volatile unsigned int*)(0x42CF05A8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A11 *((volatile unsigned int*)(0x42CF05ACUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A12 *((volatile unsigned int*)(0x42CF05B0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A13 *((volatile unsigned int*)(0x42CF05B4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A14 *((volatile unsigned int*)(0x42CF05B8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A15 *((volatile unsigned int*)(0x42CF05BCUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A16 *((volatile unsigned int*)(0x42CF05C0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A17 *((volatile unsigned int*)(0x42CF05C4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A18 *((volatile unsigned int*)(0x42CF05C8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A19 *((volatile unsigned int*)(0x42CF05CCUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A20 *((volatile unsigned int*)(0x42CF05D0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A21 *((volatile unsigned int*)(0x42CF05D4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A22 *((volatile unsigned int*)(0x42CF05D8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A23 *((volatile unsigned int*)(0x42CF05DCUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A24 *((volatile unsigned int*)(0x42CF05E0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A25 *((volatile unsigned int*)(0x42CF05E4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A26 *((volatile unsigned int*)(0x42CF05E8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A27 *((volatile unsigned int*)(0x42CF05ECUL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A28 *((volatile unsigned int*)(0x42CF05F0UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A29 *((volatile unsigned int*)(0x42CF05F4UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A30 *((volatile unsigned int*)(0x42CF05F8UL)) -#define bFM3_ETHERNET_MAC1_MAR21L_A31 *((volatile unsigned int*)(0x42CF05FCUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A32 *((volatile unsigned int*)(0x42CF0600UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A33 *((volatile unsigned int*)(0x42CF0604UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A34 *((volatile unsigned int*)(0x42CF0608UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A35 *((volatile unsigned int*)(0x42CF060CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A36 *((volatile unsigned int*)(0x42CF0610UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A37 *((volatile unsigned int*)(0x42CF0614UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A38 *((volatile unsigned int*)(0x42CF0618UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A39 *((volatile unsigned int*)(0x42CF061CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A40 *((volatile unsigned int*)(0x42CF0620UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A41 *((volatile unsigned int*)(0x42CF0624UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A42 *((volatile unsigned int*)(0x42CF0628UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A43 *((volatile unsigned int*)(0x42CF062CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A44 *((volatile unsigned int*)(0x42CF0630UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A45 *((volatile unsigned int*)(0x42CF0634UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A46 *((volatile unsigned int*)(0x42CF0638UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_A47 *((volatile unsigned int*)(0x42CF063CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC0 *((volatile unsigned int*)(0x42CF0660UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC1 *((volatile unsigned int*)(0x42CF0664UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC2 *((volatile unsigned int*)(0x42CF0668UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC3 *((volatile unsigned int*)(0x42CF066CUL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC4 *((volatile unsigned int*)(0x42CF0670UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_MBC5 *((volatile unsigned int*)(0x42CF0674UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_SA *((volatile unsigned int*)(0x42CF0678UL)) -#define bFM3_ETHERNET_MAC1_MAR22H_AE *((volatile unsigned int*)(0x42CF067CUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A0 *((volatile unsigned int*)(0x42CF0680UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A1 *((volatile unsigned int*)(0x42CF0684UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A2 *((volatile unsigned int*)(0x42CF0688UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A3 *((volatile unsigned int*)(0x42CF068CUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A4 *((volatile unsigned int*)(0x42CF0690UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A5 *((volatile unsigned int*)(0x42CF0694UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A6 *((volatile unsigned int*)(0x42CF0698UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A7 *((volatile unsigned int*)(0x42CF069CUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A8 *((volatile unsigned int*)(0x42CF06A0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A9 *((volatile unsigned int*)(0x42CF06A4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A10 *((volatile unsigned int*)(0x42CF06A8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A11 *((volatile unsigned int*)(0x42CF06ACUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A12 *((volatile unsigned int*)(0x42CF06B0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A13 *((volatile unsigned int*)(0x42CF06B4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A14 *((volatile unsigned int*)(0x42CF06B8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A15 *((volatile unsigned int*)(0x42CF06BCUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A16 *((volatile unsigned int*)(0x42CF06C0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A17 *((volatile unsigned int*)(0x42CF06C4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A18 *((volatile unsigned int*)(0x42CF06C8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A19 *((volatile unsigned int*)(0x42CF06CCUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A20 *((volatile unsigned int*)(0x42CF06D0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A21 *((volatile unsigned int*)(0x42CF06D4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A22 *((volatile unsigned int*)(0x42CF06D8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A23 *((volatile unsigned int*)(0x42CF06DCUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A24 *((volatile unsigned int*)(0x42CF06E0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A25 *((volatile unsigned int*)(0x42CF06E4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A26 *((volatile unsigned int*)(0x42CF06E8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A27 *((volatile unsigned int*)(0x42CF06ECUL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A28 *((volatile unsigned int*)(0x42CF06F0UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A29 *((volatile unsigned int*)(0x42CF06F4UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A30 *((volatile unsigned int*)(0x42CF06F8UL)) -#define bFM3_ETHERNET_MAC1_MAR22L_A31 *((volatile unsigned int*)(0x42CF06FCUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A32 *((volatile unsigned int*)(0x42CF0700UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A33 *((volatile unsigned int*)(0x42CF0704UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A34 *((volatile unsigned int*)(0x42CF0708UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A35 *((volatile unsigned int*)(0x42CF070CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A36 *((volatile unsigned int*)(0x42CF0710UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A37 *((volatile unsigned int*)(0x42CF0714UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A38 *((volatile unsigned int*)(0x42CF0718UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A39 *((volatile unsigned int*)(0x42CF071CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A40 *((volatile unsigned int*)(0x42CF0720UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A41 *((volatile unsigned int*)(0x42CF0724UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A42 *((volatile unsigned int*)(0x42CF0728UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A43 *((volatile unsigned int*)(0x42CF072CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A44 *((volatile unsigned int*)(0x42CF0730UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A45 *((volatile unsigned int*)(0x42CF0734UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A46 *((volatile unsigned int*)(0x42CF0738UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_A47 *((volatile unsigned int*)(0x42CF073CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC0 *((volatile unsigned int*)(0x42CF0760UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC1 *((volatile unsigned int*)(0x42CF0764UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC2 *((volatile unsigned int*)(0x42CF0768UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC3 *((volatile unsigned int*)(0x42CF076CUL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC4 *((volatile unsigned int*)(0x42CF0770UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_MBC5 *((volatile unsigned int*)(0x42CF0774UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_SA *((volatile unsigned int*)(0x42CF0778UL)) -#define bFM3_ETHERNET_MAC1_MAR23H_AE *((volatile unsigned int*)(0x42CF077CUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A0 *((volatile unsigned int*)(0x42CF0780UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A1 *((volatile unsigned int*)(0x42CF0784UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A2 *((volatile unsigned int*)(0x42CF0788UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A3 *((volatile unsigned int*)(0x42CF078CUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A4 *((volatile unsigned int*)(0x42CF0790UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A5 *((volatile unsigned int*)(0x42CF0794UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A6 *((volatile unsigned int*)(0x42CF0798UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A7 *((volatile unsigned int*)(0x42CF079CUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A8 *((volatile unsigned int*)(0x42CF07A0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A9 *((volatile unsigned int*)(0x42CF07A4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A10 *((volatile unsigned int*)(0x42CF07A8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A11 *((volatile unsigned int*)(0x42CF07ACUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A12 *((volatile unsigned int*)(0x42CF07B0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A13 *((volatile unsigned int*)(0x42CF07B4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A14 *((volatile unsigned int*)(0x42CF07B8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A15 *((volatile unsigned int*)(0x42CF07BCUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A16 *((volatile unsigned int*)(0x42CF07C0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A17 *((volatile unsigned int*)(0x42CF07C4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A18 *((volatile unsigned int*)(0x42CF07C8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A19 *((volatile unsigned int*)(0x42CF07CCUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A20 *((volatile unsigned int*)(0x42CF07D0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A21 *((volatile unsigned int*)(0x42CF07D4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A22 *((volatile unsigned int*)(0x42CF07D8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A23 *((volatile unsigned int*)(0x42CF07DCUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A24 *((volatile unsigned int*)(0x42CF07E0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A25 *((volatile unsigned int*)(0x42CF07E4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A26 *((volatile unsigned int*)(0x42CF07E8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A27 *((volatile unsigned int*)(0x42CF07ECUL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A28 *((volatile unsigned int*)(0x42CF07F0UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A29 *((volatile unsigned int*)(0x42CF07F4UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A30 *((volatile unsigned int*)(0x42CF07F8UL)) -#define bFM3_ETHERNET_MAC1_MAR23L_A31 *((volatile unsigned int*)(0x42CF07FCUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A32 *((volatile unsigned int*)(0x42CF0800UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A33 *((volatile unsigned int*)(0x42CF0804UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A34 *((volatile unsigned int*)(0x42CF0808UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A35 *((volatile unsigned int*)(0x42CF080CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A36 *((volatile unsigned int*)(0x42CF0810UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A37 *((volatile unsigned int*)(0x42CF0814UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A38 *((volatile unsigned int*)(0x42CF0818UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A39 *((volatile unsigned int*)(0x42CF081CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A40 *((volatile unsigned int*)(0x42CF0820UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A41 *((volatile unsigned int*)(0x42CF0824UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A42 *((volatile unsigned int*)(0x42CF0828UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A43 *((volatile unsigned int*)(0x42CF082CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A44 *((volatile unsigned int*)(0x42CF0830UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A45 *((volatile unsigned int*)(0x42CF0834UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A46 *((volatile unsigned int*)(0x42CF0838UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_A47 *((volatile unsigned int*)(0x42CF083CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC0 *((volatile unsigned int*)(0x42CF0860UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC1 *((volatile unsigned int*)(0x42CF0864UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC2 *((volatile unsigned int*)(0x42CF0868UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC3 *((volatile unsigned int*)(0x42CF086CUL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC4 *((volatile unsigned int*)(0x42CF0870UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_MBC5 *((volatile unsigned int*)(0x42CF0874UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_SA *((volatile unsigned int*)(0x42CF0878UL)) -#define bFM3_ETHERNET_MAC1_MAR24H_AE *((volatile unsigned int*)(0x42CF087CUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A0 *((volatile unsigned int*)(0x42CF0880UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A1 *((volatile unsigned int*)(0x42CF0884UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A2 *((volatile unsigned int*)(0x42CF0888UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A3 *((volatile unsigned int*)(0x42CF088CUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A4 *((volatile unsigned int*)(0x42CF0890UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A5 *((volatile unsigned int*)(0x42CF0894UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A6 *((volatile unsigned int*)(0x42CF0898UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A7 *((volatile unsigned int*)(0x42CF089CUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A8 *((volatile unsigned int*)(0x42CF08A0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A9 *((volatile unsigned int*)(0x42CF08A4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A10 *((volatile unsigned int*)(0x42CF08A8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A11 *((volatile unsigned int*)(0x42CF08ACUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A12 *((volatile unsigned int*)(0x42CF08B0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A13 *((volatile unsigned int*)(0x42CF08B4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A14 *((volatile unsigned int*)(0x42CF08B8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A15 *((volatile unsigned int*)(0x42CF08BCUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A16 *((volatile unsigned int*)(0x42CF08C0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A17 *((volatile unsigned int*)(0x42CF08C4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A18 *((volatile unsigned int*)(0x42CF08C8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A19 *((volatile unsigned int*)(0x42CF08CCUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A20 *((volatile unsigned int*)(0x42CF08D0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A21 *((volatile unsigned int*)(0x42CF08D4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A22 *((volatile unsigned int*)(0x42CF08D8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A23 *((volatile unsigned int*)(0x42CF08DCUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A24 *((volatile unsigned int*)(0x42CF08E0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A25 *((volatile unsigned int*)(0x42CF08E4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A26 *((volatile unsigned int*)(0x42CF08E8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A27 *((volatile unsigned int*)(0x42CF08ECUL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A28 *((volatile unsigned int*)(0x42CF08F0UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A29 *((volatile unsigned int*)(0x42CF08F4UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A30 *((volatile unsigned int*)(0x42CF08F8UL)) -#define bFM3_ETHERNET_MAC1_MAR24L_A31 *((volatile unsigned int*)(0x42CF08FCUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A32 *((volatile unsigned int*)(0x42CF0900UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A33 *((volatile unsigned int*)(0x42CF0904UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A34 *((volatile unsigned int*)(0x42CF0908UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A35 *((volatile unsigned int*)(0x42CF090CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A36 *((volatile unsigned int*)(0x42CF0910UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A37 *((volatile unsigned int*)(0x42CF0914UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A38 *((volatile unsigned int*)(0x42CF0918UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A39 *((volatile unsigned int*)(0x42CF091CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A40 *((volatile unsigned int*)(0x42CF0920UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A41 *((volatile unsigned int*)(0x42CF0924UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A42 *((volatile unsigned int*)(0x42CF0928UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A43 *((volatile unsigned int*)(0x42CF092CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A44 *((volatile unsigned int*)(0x42CF0930UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A45 *((volatile unsigned int*)(0x42CF0934UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A46 *((volatile unsigned int*)(0x42CF0938UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_A47 *((volatile unsigned int*)(0x42CF093CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC0 *((volatile unsigned int*)(0x42CF0960UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC1 *((volatile unsigned int*)(0x42CF0964UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC2 *((volatile unsigned int*)(0x42CF0968UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC3 *((volatile unsigned int*)(0x42CF096CUL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC4 *((volatile unsigned int*)(0x42CF0970UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_MBC5 *((volatile unsigned int*)(0x42CF0974UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_SA *((volatile unsigned int*)(0x42CF0978UL)) -#define bFM3_ETHERNET_MAC1_MAR25H_AE *((volatile unsigned int*)(0x42CF097CUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A0 *((volatile unsigned int*)(0x42CF0980UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A1 *((volatile unsigned int*)(0x42CF0984UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A2 *((volatile unsigned int*)(0x42CF0988UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A3 *((volatile unsigned int*)(0x42CF098CUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A4 *((volatile unsigned int*)(0x42CF0990UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A5 *((volatile unsigned int*)(0x42CF0994UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A6 *((volatile unsigned int*)(0x42CF0998UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A7 *((volatile unsigned int*)(0x42CF099CUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A8 *((volatile unsigned int*)(0x42CF09A0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A9 *((volatile unsigned int*)(0x42CF09A4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A10 *((volatile unsigned int*)(0x42CF09A8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A11 *((volatile unsigned int*)(0x42CF09ACUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A12 *((volatile unsigned int*)(0x42CF09B0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A13 *((volatile unsigned int*)(0x42CF09B4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A14 *((volatile unsigned int*)(0x42CF09B8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A15 *((volatile unsigned int*)(0x42CF09BCUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A16 *((volatile unsigned int*)(0x42CF09C0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A17 *((volatile unsigned int*)(0x42CF09C4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A18 *((volatile unsigned int*)(0x42CF09C8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A19 *((volatile unsigned int*)(0x42CF09CCUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A20 *((volatile unsigned int*)(0x42CF09D0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A21 *((volatile unsigned int*)(0x42CF09D4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A22 *((volatile unsigned int*)(0x42CF09D8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A23 *((volatile unsigned int*)(0x42CF09DCUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A24 *((volatile unsigned int*)(0x42CF09E0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A25 *((volatile unsigned int*)(0x42CF09E4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A26 *((volatile unsigned int*)(0x42CF09E8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A27 *((volatile unsigned int*)(0x42CF09ECUL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A28 *((volatile unsigned int*)(0x42CF09F0UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A29 *((volatile unsigned int*)(0x42CF09F4UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A30 *((volatile unsigned int*)(0x42CF09F8UL)) -#define bFM3_ETHERNET_MAC1_MAR25L_A31 *((volatile unsigned int*)(0x42CF09FCUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A32 *((volatile unsigned int*)(0x42CF0A00UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A33 *((volatile unsigned int*)(0x42CF0A04UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A34 *((volatile unsigned int*)(0x42CF0A08UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A35 *((volatile unsigned int*)(0x42CF0A0CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A36 *((volatile unsigned int*)(0x42CF0A10UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A37 *((volatile unsigned int*)(0x42CF0A14UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A38 *((volatile unsigned int*)(0x42CF0A18UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A39 *((volatile unsigned int*)(0x42CF0A1CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A40 *((volatile unsigned int*)(0x42CF0A20UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A41 *((volatile unsigned int*)(0x42CF0A24UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A42 *((volatile unsigned int*)(0x42CF0A28UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A43 *((volatile unsigned int*)(0x42CF0A2CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A44 *((volatile unsigned int*)(0x42CF0A30UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A45 *((volatile unsigned int*)(0x42CF0A34UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A46 *((volatile unsigned int*)(0x42CF0A38UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_A47 *((volatile unsigned int*)(0x42CF0A3CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC0 *((volatile unsigned int*)(0x42CF0A60UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC1 *((volatile unsigned int*)(0x42CF0A64UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC2 *((volatile unsigned int*)(0x42CF0A68UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC3 *((volatile unsigned int*)(0x42CF0A6CUL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC4 *((volatile unsigned int*)(0x42CF0A70UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_MBC5 *((volatile unsigned int*)(0x42CF0A74UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_SA *((volatile unsigned int*)(0x42CF0A78UL)) -#define bFM3_ETHERNET_MAC1_MAR26H_AE *((volatile unsigned int*)(0x42CF0A7CUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A0 *((volatile unsigned int*)(0x42CF0A80UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A1 *((volatile unsigned int*)(0x42CF0A84UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A2 *((volatile unsigned int*)(0x42CF0A88UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A3 *((volatile unsigned int*)(0x42CF0A8CUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A4 *((volatile unsigned int*)(0x42CF0A90UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A5 *((volatile unsigned int*)(0x42CF0A94UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A6 *((volatile unsigned int*)(0x42CF0A98UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A7 *((volatile unsigned int*)(0x42CF0A9CUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A8 *((volatile unsigned int*)(0x42CF0AA0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A9 *((volatile unsigned int*)(0x42CF0AA4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A10 *((volatile unsigned int*)(0x42CF0AA8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A11 *((volatile unsigned int*)(0x42CF0AACUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A12 *((volatile unsigned int*)(0x42CF0AB0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A13 *((volatile unsigned int*)(0x42CF0AB4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A14 *((volatile unsigned int*)(0x42CF0AB8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A15 *((volatile unsigned int*)(0x42CF0ABCUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A16 *((volatile unsigned int*)(0x42CF0AC0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A17 *((volatile unsigned int*)(0x42CF0AC4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A18 *((volatile unsigned int*)(0x42CF0AC8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A19 *((volatile unsigned int*)(0x42CF0ACCUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A20 *((volatile unsigned int*)(0x42CF0AD0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A21 *((volatile unsigned int*)(0x42CF0AD4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A22 *((volatile unsigned int*)(0x42CF0AD8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A23 *((volatile unsigned int*)(0x42CF0ADCUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A24 *((volatile unsigned int*)(0x42CF0AE0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A25 *((volatile unsigned int*)(0x42CF0AE4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A26 *((volatile unsigned int*)(0x42CF0AE8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A27 *((volatile unsigned int*)(0x42CF0AECUL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A28 *((volatile unsigned int*)(0x42CF0AF0UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A29 *((volatile unsigned int*)(0x42CF0AF4UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A30 *((volatile unsigned int*)(0x42CF0AF8UL)) -#define bFM3_ETHERNET_MAC1_MAR26L_A31 *((volatile unsigned int*)(0x42CF0AFCUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A32 *((volatile unsigned int*)(0x42CF0B00UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A33 *((volatile unsigned int*)(0x42CF0B04UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A34 *((volatile unsigned int*)(0x42CF0B08UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A35 *((volatile unsigned int*)(0x42CF0B0CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A36 *((volatile unsigned int*)(0x42CF0B10UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A37 *((volatile unsigned int*)(0x42CF0B14UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A38 *((volatile unsigned int*)(0x42CF0B18UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A39 *((volatile unsigned int*)(0x42CF0B1CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A40 *((volatile unsigned int*)(0x42CF0B20UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A41 *((volatile unsigned int*)(0x42CF0B24UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A42 *((volatile unsigned int*)(0x42CF0B28UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A43 *((volatile unsigned int*)(0x42CF0B2CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A44 *((volatile unsigned int*)(0x42CF0B30UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A45 *((volatile unsigned int*)(0x42CF0B34UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A46 *((volatile unsigned int*)(0x42CF0B38UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_A47 *((volatile unsigned int*)(0x42CF0B3CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC0 *((volatile unsigned int*)(0x42CF0B60UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC1 *((volatile unsigned int*)(0x42CF0B64UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC2 *((volatile unsigned int*)(0x42CF0B68UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC3 *((volatile unsigned int*)(0x42CF0B6CUL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC4 *((volatile unsigned int*)(0x42CF0B70UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_MBC5 *((volatile unsigned int*)(0x42CF0B74UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_SA *((volatile unsigned int*)(0x42CF0B78UL)) -#define bFM3_ETHERNET_MAC1_MAR27H_AE *((volatile unsigned int*)(0x42CF0B7CUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A0 *((volatile unsigned int*)(0x42CF0B80UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A1 *((volatile unsigned int*)(0x42CF0B84UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A2 *((volatile unsigned int*)(0x42CF0B88UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A3 *((volatile unsigned int*)(0x42CF0B8CUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A4 *((volatile unsigned int*)(0x42CF0B90UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A5 *((volatile unsigned int*)(0x42CF0B94UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A6 *((volatile unsigned int*)(0x42CF0B98UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A7 *((volatile unsigned int*)(0x42CF0B9CUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A8 *((volatile unsigned int*)(0x42CF0BA0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A9 *((volatile unsigned int*)(0x42CF0BA4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A10 *((volatile unsigned int*)(0x42CF0BA8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A11 *((volatile unsigned int*)(0x42CF0BACUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A12 *((volatile unsigned int*)(0x42CF0BB0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A13 *((volatile unsigned int*)(0x42CF0BB4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A14 *((volatile unsigned int*)(0x42CF0BB8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A15 *((volatile unsigned int*)(0x42CF0BBCUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A16 *((volatile unsigned int*)(0x42CF0BC0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A17 *((volatile unsigned int*)(0x42CF0BC4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A18 *((volatile unsigned int*)(0x42CF0BC8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A19 *((volatile unsigned int*)(0x42CF0BCCUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A20 *((volatile unsigned int*)(0x42CF0BD0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A21 *((volatile unsigned int*)(0x42CF0BD4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A22 *((volatile unsigned int*)(0x42CF0BD8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A23 *((volatile unsigned int*)(0x42CF0BDCUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A24 *((volatile unsigned int*)(0x42CF0BE0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A25 *((volatile unsigned int*)(0x42CF0BE4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A26 *((volatile unsigned int*)(0x42CF0BE8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A27 *((volatile unsigned int*)(0x42CF0BECUL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A28 *((volatile unsigned int*)(0x42CF0BF0UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A29 *((volatile unsigned int*)(0x42CF0BF4UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A30 *((volatile unsigned int*)(0x42CF0BF8UL)) -#define bFM3_ETHERNET_MAC1_MAR27L_A31 *((volatile unsigned int*)(0x42CF0BFCUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A32 *((volatile unsigned int*)(0x42CF0C00UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A33 *((volatile unsigned int*)(0x42CF0C04UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A34 *((volatile unsigned int*)(0x42CF0C08UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A35 *((volatile unsigned int*)(0x42CF0C0CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A36 *((volatile unsigned int*)(0x42CF0C10UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A37 *((volatile unsigned int*)(0x42CF0C14UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A38 *((volatile unsigned int*)(0x42CF0C18UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A39 *((volatile unsigned int*)(0x42CF0C1CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A40 *((volatile unsigned int*)(0x42CF0C20UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A41 *((volatile unsigned int*)(0x42CF0C24UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A42 *((volatile unsigned int*)(0x42CF0C28UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A43 *((volatile unsigned int*)(0x42CF0C2CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A44 *((volatile unsigned int*)(0x42CF0C30UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A45 *((volatile unsigned int*)(0x42CF0C34UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A46 *((volatile unsigned int*)(0x42CF0C38UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_A47 *((volatile unsigned int*)(0x42CF0C3CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC0 *((volatile unsigned int*)(0x42CF0C60UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC1 *((volatile unsigned int*)(0x42CF0C64UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC2 *((volatile unsigned int*)(0x42CF0C68UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC3 *((volatile unsigned int*)(0x42CF0C6CUL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC4 *((volatile unsigned int*)(0x42CF0C70UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_MBC5 *((volatile unsigned int*)(0x42CF0C74UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_SA *((volatile unsigned int*)(0x42CF0C78UL)) -#define bFM3_ETHERNET_MAC1_MAR28H_AE *((volatile unsigned int*)(0x42CF0C7CUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A0 *((volatile unsigned int*)(0x42CF0C80UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A1 *((volatile unsigned int*)(0x42CF0C84UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A2 *((volatile unsigned int*)(0x42CF0C88UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A3 *((volatile unsigned int*)(0x42CF0C8CUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A4 *((volatile unsigned int*)(0x42CF0C90UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A5 *((volatile unsigned int*)(0x42CF0C94UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A6 *((volatile unsigned int*)(0x42CF0C98UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A7 *((volatile unsigned int*)(0x42CF0C9CUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A8 *((volatile unsigned int*)(0x42CF0CA0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A9 *((volatile unsigned int*)(0x42CF0CA4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A10 *((volatile unsigned int*)(0x42CF0CA8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A11 *((volatile unsigned int*)(0x42CF0CACUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A12 *((volatile unsigned int*)(0x42CF0CB0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A13 *((volatile unsigned int*)(0x42CF0CB4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A14 *((volatile unsigned int*)(0x42CF0CB8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A15 *((volatile unsigned int*)(0x42CF0CBCUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A16 *((volatile unsigned int*)(0x42CF0CC0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A17 *((volatile unsigned int*)(0x42CF0CC4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A18 *((volatile unsigned int*)(0x42CF0CC8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A19 *((volatile unsigned int*)(0x42CF0CCCUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A20 *((volatile unsigned int*)(0x42CF0CD0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A21 *((volatile unsigned int*)(0x42CF0CD4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A22 *((volatile unsigned int*)(0x42CF0CD8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A23 *((volatile unsigned int*)(0x42CF0CDCUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A24 *((volatile unsigned int*)(0x42CF0CE0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A25 *((volatile unsigned int*)(0x42CF0CE4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A26 *((volatile unsigned int*)(0x42CF0CE8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A27 *((volatile unsigned int*)(0x42CF0CECUL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A28 *((volatile unsigned int*)(0x42CF0CF0UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A29 *((volatile unsigned int*)(0x42CF0CF4UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A30 *((volatile unsigned int*)(0x42CF0CF8UL)) -#define bFM3_ETHERNET_MAC1_MAR28L_A31 *((volatile unsigned int*)(0x42CF0CFCUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A32 *((volatile unsigned int*)(0x42CF0D00UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A33 *((volatile unsigned int*)(0x42CF0D04UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A34 *((volatile unsigned int*)(0x42CF0D08UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A35 *((volatile unsigned int*)(0x42CF0D0CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A36 *((volatile unsigned int*)(0x42CF0D10UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A37 *((volatile unsigned int*)(0x42CF0D14UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A38 *((volatile unsigned int*)(0x42CF0D18UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A39 *((volatile unsigned int*)(0x42CF0D1CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A40 *((volatile unsigned int*)(0x42CF0D20UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A41 *((volatile unsigned int*)(0x42CF0D24UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A42 *((volatile unsigned int*)(0x42CF0D28UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A43 *((volatile unsigned int*)(0x42CF0D2CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A44 *((volatile unsigned int*)(0x42CF0D30UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A45 *((volatile unsigned int*)(0x42CF0D34UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A46 *((volatile unsigned int*)(0x42CF0D38UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_A47 *((volatile unsigned int*)(0x42CF0D3CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC0 *((volatile unsigned int*)(0x42CF0D60UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC1 *((volatile unsigned int*)(0x42CF0D64UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC2 *((volatile unsigned int*)(0x42CF0D68UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC3 *((volatile unsigned int*)(0x42CF0D6CUL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC4 *((volatile unsigned int*)(0x42CF0D70UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_MBC5 *((volatile unsigned int*)(0x42CF0D74UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_SA *((volatile unsigned int*)(0x42CF0D78UL)) -#define bFM3_ETHERNET_MAC1_MAR29H_AE *((volatile unsigned int*)(0x42CF0D7CUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A0 *((volatile unsigned int*)(0x42CF0D80UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A1 *((volatile unsigned int*)(0x42CF0D84UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A2 *((volatile unsigned int*)(0x42CF0D88UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A3 *((volatile unsigned int*)(0x42CF0D8CUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A4 *((volatile unsigned int*)(0x42CF0D90UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A5 *((volatile unsigned int*)(0x42CF0D94UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A6 *((volatile unsigned int*)(0x42CF0D98UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A7 *((volatile unsigned int*)(0x42CF0D9CUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A8 *((volatile unsigned int*)(0x42CF0DA0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A9 *((volatile unsigned int*)(0x42CF0DA4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A10 *((volatile unsigned int*)(0x42CF0DA8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A11 *((volatile unsigned int*)(0x42CF0DACUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A12 *((volatile unsigned int*)(0x42CF0DB0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A13 *((volatile unsigned int*)(0x42CF0DB4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A14 *((volatile unsigned int*)(0x42CF0DB8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A15 *((volatile unsigned int*)(0x42CF0DBCUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A16 *((volatile unsigned int*)(0x42CF0DC0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A17 *((volatile unsigned int*)(0x42CF0DC4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A18 *((volatile unsigned int*)(0x42CF0DC8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A19 *((volatile unsigned int*)(0x42CF0DCCUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A20 *((volatile unsigned int*)(0x42CF0DD0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A21 *((volatile unsigned int*)(0x42CF0DD4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A22 *((volatile unsigned int*)(0x42CF0DD8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A23 *((volatile unsigned int*)(0x42CF0DDCUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A24 *((volatile unsigned int*)(0x42CF0DE0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A25 *((volatile unsigned int*)(0x42CF0DE4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A26 *((volatile unsigned int*)(0x42CF0DE8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A27 *((volatile unsigned int*)(0x42CF0DECUL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A28 *((volatile unsigned int*)(0x42CF0DF0UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A29 *((volatile unsigned int*)(0x42CF0DF4UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A30 *((volatile unsigned int*)(0x42CF0DF8UL)) -#define bFM3_ETHERNET_MAC1_MAR29L_A31 *((volatile unsigned int*)(0x42CF0DFCUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A32 *((volatile unsigned int*)(0x42CF0E00UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A33 *((volatile unsigned int*)(0x42CF0E04UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A34 *((volatile unsigned int*)(0x42CF0E08UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A35 *((volatile unsigned int*)(0x42CF0E0CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A36 *((volatile unsigned int*)(0x42CF0E10UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A37 *((volatile unsigned int*)(0x42CF0E14UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A38 *((volatile unsigned int*)(0x42CF0E18UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A39 *((volatile unsigned int*)(0x42CF0E1CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A40 *((volatile unsigned int*)(0x42CF0E20UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A41 *((volatile unsigned int*)(0x42CF0E24UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A42 *((volatile unsigned int*)(0x42CF0E28UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A43 *((volatile unsigned int*)(0x42CF0E2CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A44 *((volatile unsigned int*)(0x42CF0E30UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A45 *((volatile unsigned int*)(0x42CF0E34UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A46 *((volatile unsigned int*)(0x42CF0E38UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_A47 *((volatile unsigned int*)(0x42CF0E3CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC0 *((volatile unsigned int*)(0x42CF0E60UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC1 *((volatile unsigned int*)(0x42CF0E64UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC2 *((volatile unsigned int*)(0x42CF0E68UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC3 *((volatile unsigned int*)(0x42CF0E6CUL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC4 *((volatile unsigned int*)(0x42CF0E70UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_MBC5 *((volatile unsigned int*)(0x42CF0E74UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_SA *((volatile unsigned int*)(0x42CF0E78UL)) -#define bFM3_ETHERNET_MAC1_MAR30H_AE *((volatile unsigned int*)(0x42CF0E7CUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A0 *((volatile unsigned int*)(0x42CF0E80UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A1 *((volatile unsigned int*)(0x42CF0E84UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A2 *((volatile unsigned int*)(0x42CF0E88UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A3 *((volatile unsigned int*)(0x42CF0E8CUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A4 *((volatile unsigned int*)(0x42CF0E90UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A5 *((volatile unsigned int*)(0x42CF0E94UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A6 *((volatile unsigned int*)(0x42CF0E98UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A7 *((volatile unsigned int*)(0x42CF0E9CUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A8 *((volatile unsigned int*)(0x42CF0EA0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A9 *((volatile unsigned int*)(0x42CF0EA4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A10 *((volatile unsigned int*)(0x42CF0EA8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A11 *((volatile unsigned int*)(0x42CF0EACUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A12 *((volatile unsigned int*)(0x42CF0EB0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A13 *((volatile unsigned int*)(0x42CF0EB4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A14 *((volatile unsigned int*)(0x42CF0EB8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A15 *((volatile unsigned int*)(0x42CF0EBCUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A16 *((volatile unsigned int*)(0x42CF0EC0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A17 *((volatile unsigned int*)(0x42CF0EC4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A18 *((volatile unsigned int*)(0x42CF0EC8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A19 *((volatile unsigned int*)(0x42CF0ECCUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A20 *((volatile unsigned int*)(0x42CF0ED0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A21 *((volatile unsigned int*)(0x42CF0ED4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A22 *((volatile unsigned int*)(0x42CF0ED8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A23 *((volatile unsigned int*)(0x42CF0EDCUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A24 *((volatile unsigned int*)(0x42CF0EE0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A25 *((volatile unsigned int*)(0x42CF0EE4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A26 *((volatile unsigned int*)(0x42CF0EE8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A27 *((volatile unsigned int*)(0x42CF0EECUL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A28 *((volatile unsigned int*)(0x42CF0EF0UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A29 *((volatile unsigned int*)(0x42CF0EF4UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A30 *((volatile unsigned int*)(0x42CF0EF8UL)) -#define bFM3_ETHERNET_MAC1_MAR30L_A31 *((volatile unsigned int*)(0x42CF0EFCUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A32 *((volatile unsigned int*)(0x42CF0F00UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A33 *((volatile unsigned int*)(0x42CF0F04UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A34 *((volatile unsigned int*)(0x42CF0F08UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A35 *((volatile unsigned int*)(0x42CF0F0CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A36 *((volatile unsigned int*)(0x42CF0F10UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A37 *((volatile unsigned int*)(0x42CF0F14UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A38 *((volatile unsigned int*)(0x42CF0F18UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A39 *((volatile unsigned int*)(0x42CF0F1CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A40 *((volatile unsigned int*)(0x42CF0F20UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A41 *((volatile unsigned int*)(0x42CF0F24UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A42 *((volatile unsigned int*)(0x42CF0F28UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A43 *((volatile unsigned int*)(0x42CF0F2CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A44 *((volatile unsigned int*)(0x42CF0F30UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A45 *((volatile unsigned int*)(0x42CF0F34UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A46 *((volatile unsigned int*)(0x42CF0F38UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_A47 *((volatile unsigned int*)(0x42CF0F3CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC0 *((volatile unsigned int*)(0x42CF0F60UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC1 *((volatile unsigned int*)(0x42CF0F64UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC2 *((volatile unsigned int*)(0x42CF0F68UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC3 *((volatile unsigned int*)(0x42CF0F6CUL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC4 *((volatile unsigned int*)(0x42CF0F70UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_MBC5 *((volatile unsigned int*)(0x42CF0F74UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_SA *((volatile unsigned int*)(0x42CF0F78UL)) -#define bFM3_ETHERNET_MAC1_MAR31H_AE *((volatile unsigned int*)(0x42CF0F7CUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A0 *((volatile unsigned int*)(0x42CF0F80UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A1 *((volatile unsigned int*)(0x42CF0F84UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A2 *((volatile unsigned int*)(0x42CF0F88UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A3 *((volatile unsigned int*)(0x42CF0F8CUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A4 *((volatile unsigned int*)(0x42CF0F90UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A5 *((volatile unsigned int*)(0x42CF0F94UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A6 *((volatile unsigned int*)(0x42CF0F98UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A7 *((volatile unsigned int*)(0x42CF0F9CUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A8 *((volatile unsigned int*)(0x42CF0FA0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A9 *((volatile unsigned int*)(0x42CF0FA4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A10 *((volatile unsigned int*)(0x42CF0FA8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A11 *((volatile unsigned int*)(0x42CF0FACUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A12 *((volatile unsigned int*)(0x42CF0FB0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A13 *((volatile unsigned int*)(0x42CF0FB4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A14 *((volatile unsigned int*)(0x42CF0FB8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A15 *((volatile unsigned int*)(0x42CF0FBCUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A16 *((volatile unsigned int*)(0x42CF0FC0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A17 *((volatile unsigned int*)(0x42CF0FC4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A18 *((volatile unsigned int*)(0x42CF0FC8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A19 *((volatile unsigned int*)(0x42CF0FCCUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A20 *((volatile unsigned int*)(0x42CF0FD0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A21 *((volatile unsigned int*)(0x42CF0FD4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A22 *((volatile unsigned int*)(0x42CF0FD8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A23 *((volatile unsigned int*)(0x42CF0FDCUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A24 *((volatile unsigned int*)(0x42CF0FE0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A25 *((volatile unsigned int*)(0x42CF0FE4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A26 *((volatile unsigned int*)(0x42CF0FE8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A27 *((volatile unsigned int*)(0x42CF0FECUL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A28 *((volatile unsigned int*)(0x42CF0FF0UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A29 *((volatile unsigned int*)(0x42CF0FF4UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A30 *((volatile unsigned int*)(0x42CF0FF8UL)) -#define bFM3_ETHERNET_MAC1_MAR31L_A31 *((volatile unsigned int*)(0x42CF0FFCUL)) -#define bFM3_ETHERNET_MAC1_BMR_SWR *((volatile unsigned int*)(0x42D00000UL)) -#define bFM3_ETHERNET_MAC1_BMR_DA *((volatile unsigned int*)(0x42D00004UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL0 *((volatile unsigned int*)(0x42D00008UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL1 *((volatile unsigned int*)(0x42D0000CUL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL2 *((volatile unsigned int*)(0x42D00010UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL3 *((volatile unsigned int*)(0x42D00014UL)) -#define bFM3_ETHERNET_MAC1_BMR_DSL4 *((volatile unsigned int*)(0x42D00018UL)) -#define bFM3_ETHERNET_MAC1_BMR_ATDS *((volatile unsigned int*)(0x42D0001CUL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL0 *((volatile unsigned int*)(0x42D00020UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL1 *((volatile unsigned int*)(0x42D00024UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL2 *((volatile unsigned int*)(0x42D00028UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL3 *((volatile unsigned int*)(0x42D0002CUL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL4 *((volatile unsigned int*)(0x42D00030UL)) -#define bFM3_ETHERNET_MAC1_BMR_PBL5 *((volatile unsigned int*)(0x42D00034UL)) -#define bFM3_ETHERNET_MAC1_BMR_PR0 *((volatile unsigned int*)(0x42D00038UL)) -#define bFM3_ETHERNET_MAC1_BMR_PR1 *((volatile unsigned int*)(0x42D0003CUL)) -#define bFM3_ETHERNET_MAC1_BMR_FB *((volatile unsigned int*)(0x42D00040UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL0 *((volatile unsigned int*)(0x42D00044UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL1 *((volatile unsigned int*)(0x42D00048UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL2 *((volatile unsigned int*)(0x42D0004CUL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL3 *((volatile unsigned int*)(0x42D00050UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL4 *((volatile unsigned int*)(0x42D00054UL)) -#define bFM3_ETHERNET_MAC1_BMR_RPBL5 *((volatile unsigned int*)(0x42D00058UL)) -#define bFM3_ETHERNET_MAC1_BMR_USP *((volatile unsigned int*)(0x42D0005CUL)) -#define bFM3_ETHERNET_MAC1_BMR_8XPBL *((volatile unsigned int*)(0x42D00060UL)) -#define bFM3_ETHERNET_MAC1_BMR_AAL *((volatile unsigned int*)(0x42D00064UL)) -#define bFM3_ETHERNET_MAC1_BMR_MB *((volatile unsigned int*)(0x42D00068UL)) -#define bFM3_ETHERNET_MAC1_BMR_TXPR *((volatile unsigned int*)(0x42D0006CUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD0 *((volatile unsigned int*)(0x42D00080UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD1 *((volatile unsigned int*)(0x42D00084UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD2 *((volatile unsigned int*)(0x42D00088UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD3 *((volatile unsigned int*)(0x42D0008CUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD4 *((volatile unsigned int*)(0x42D00090UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD5 *((volatile unsigned int*)(0x42D00094UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD6 *((volatile unsigned int*)(0x42D00098UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD7 *((volatile unsigned int*)(0x42D0009CUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD8 *((volatile unsigned int*)(0x42D000A0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD9 *((volatile unsigned int*)(0x42D000A4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD10 *((volatile unsigned int*)(0x42D000A8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD11 *((volatile unsigned int*)(0x42D000ACUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD12 *((volatile unsigned int*)(0x42D000B0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD13 *((volatile unsigned int*)(0x42D000B4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD14 *((volatile unsigned int*)(0x42D000B8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD15 *((volatile unsigned int*)(0x42D000BCUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD16 *((volatile unsigned int*)(0x42D000C0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD17 *((volatile unsigned int*)(0x42D000C4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD18 *((volatile unsigned int*)(0x42D000C8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD19 *((volatile unsigned int*)(0x42D000CCUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD20 *((volatile unsigned int*)(0x42D000D0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD21 *((volatile unsigned int*)(0x42D000D4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD22 *((volatile unsigned int*)(0x42D000D8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD23 *((volatile unsigned int*)(0x42D000DCUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD24 *((volatile unsigned int*)(0x42D000E0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD25 *((volatile unsigned int*)(0x42D000E4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD26 *((volatile unsigned int*)(0x42D000E8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD27 *((volatile unsigned int*)(0x42D000ECUL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD28 *((volatile unsigned int*)(0x42D000F0UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD29 *((volatile unsigned int*)(0x42D000F4UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD30 *((volatile unsigned int*)(0x42D000F8UL)) -#define bFM3_ETHERNET_MAC1_TPDR_TPD31 *((volatile unsigned int*)(0x42D000FCUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD0 *((volatile unsigned int*)(0x42D00100UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD1 *((volatile unsigned int*)(0x42D00104UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD2 *((volatile unsigned int*)(0x42D00108UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD3 *((volatile unsigned int*)(0x42D0010CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD4 *((volatile unsigned int*)(0x42D00110UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD5 *((volatile unsigned int*)(0x42D00114UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD6 *((volatile unsigned int*)(0x42D00118UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD7 *((volatile unsigned int*)(0x42D0011CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD8 *((volatile unsigned int*)(0x42D00120UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD9 *((volatile unsigned int*)(0x42D00124UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD10 *((volatile unsigned int*)(0x42D00128UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD11 *((volatile unsigned int*)(0x42D0012CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD12 *((volatile unsigned int*)(0x42D00130UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD13 *((volatile unsigned int*)(0x42D00134UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD14 *((volatile unsigned int*)(0x42D00138UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD15 *((volatile unsigned int*)(0x42D0013CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD16 *((volatile unsigned int*)(0x42D00140UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD17 *((volatile unsigned int*)(0x42D00144UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD18 *((volatile unsigned int*)(0x42D00148UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD19 *((volatile unsigned int*)(0x42D0014CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD20 *((volatile unsigned int*)(0x42D00150UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD21 *((volatile unsigned int*)(0x42D00154UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD22 *((volatile unsigned int*)(0x42D00158UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD23 *((volatile unsigned int*)(0x42D0015CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD24 *((volatile unsigned int*)(0x42D00160UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD25 *((volatile unsigned int*)(0x42D00164UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD26 *((volatile unsigned int*)(0x42D00168UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD27 *((volatile unsigned int*)(0x42D0016CUL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD28 *((volatile unsigned int*)(0x42D00170UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD29 *((volatile unsigned int*)(0x42D00174UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD30 *((volatile unsigned int*)(0x42D00178UL)) -#define bFM3_ETHERNET_MAC1_RPDR_RPD31 *((volatile unsigned int*)(0x42D0017CUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL2 *((volatile unsigned int*)(0x42D00188UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL3 *((volatile unsigned int*)(0x42D0018CUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL4 *((volatile unsigned int*)(0x42D00190UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL5 *((volatile unsigned int*)(0x42D00194UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL6 *((volatile unsigned int*)(0x42D00198UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL7 *((volatile unsigned int*)(0x42D0019CUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL8 *((volatile unsigned int*)(0x42D001A0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL9 *((volatile unsigned int*)(0x42D001A4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL10 *((volatile unsigned int*)(0x42D001A8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL11 *((volatile unsigned int*)(0x42D001ACUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL12 *((volatile unsigned int*)(0x42D001B0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL13 *((volatile unsigned int*)(0x42D001B4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL14 *((volatile unsigned int*)(0x42D001B8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL15 *((volatile unsigned int*)(0x42D001BCUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL16 *((volatile unsigned int*)(0x42D001C0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL17 *((volatile unsigned int*)(0x42D001C4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL18 *((volatile unsigned int*)(0x42D001C8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL19 *((volatile unsigned int*)(0x42D001CCUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL20 *((volatile unsigned int*)(0x42D001D0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL21 *((volatile unsigned int*)(0x42D001D4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL22 *((volatile unsigned int*)(0x42D001D8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL23 *((volatile unsigned int*)(0x42D001DCUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL24 *((volatile unsigned int*)(0x42D001E0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL25 *((volatile unsigned int*)(0x42D001E4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL26 *((volatile unsigned int*)(0x42D001E8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL27 *((volatile unsigned int*)(0x42D001ECUL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL28 *((volatile unsigned int*)(0x42D001F0UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL29 *((volatile unsigned int*)(0x42D001F4UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL30 *((volatile unsigned int*)(0x42D001F8UL)) -#define bFM3_ETHERNET_MAC1_RDLAR_SRL31 *((volatile unsigned int*)(0x42D001FCUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL2 *((volatile unsigned int*)(0x42D00208UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL3 *((volatile unsigned int*)(0x42D0020CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL4 *((volatile unsigned int*)(0x42D00210UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL5 *((volatile unsigned int*)(0x42D00214UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL6 *((volatile unsigned int*)(0x42D00218UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL7 *((volatile unsigned int*)(0x42D0021CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL8 *((volatile unsigned int*)(0x42D00220UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL9 *((volatile unsigned int*)(0x42D00224UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL10 *((volatile unsigned int*)(0x42D00228UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL11 *((volatile unsigned int*)(0x42D0022CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL12 *((volatile unsigned int*)(0x42D00230UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL13 *((volatile unsigned int*)(0x42D00234UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL14 *((volatile unsigned int*)(0x42D00238UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL15 *((volatile unsigned int*)(0x42D0023CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL16 *((volatile unsigned int*)(0x42D00240UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL17 *((volatile unsigned int*)(0x42D00244UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL18 *((volatile unsigned int*)(0x42D00248UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL19 *((volatile unsigned int*)(0x42D0024CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL20 *((volatile unsigned int*)(0x42D00250UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL21 *((volatile unsigned int*)(0x42D00254UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL22 *((volatile unsigned int*)(0x42D00258UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL23 *((volatile unsigned int*)(0x42D0025CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL24 *((volatile unsigned int*)(0x42D00260UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL25 *((volatile unsigned int*)(0x42D00264UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL26 *((volatile unsigned int*)(0x42D00268UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL27 *((volatile unsigned int*)(0x42D0026CUL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL28 *((volatile unsigned int*)(0x42D00270UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL29 *((volatile unsigned int*)(0x42D00274UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL30 *((volatile unsigned int*)(0x42D00278UL)) -#define bFM3_ETHERNET_MAC1_TDLAR_STL31 *((volatile unsigned int*)(0x42D0027CUL)) -#define bFM3_ETHERNET_MAC1_SR_TI *((volatile unsigned int*)(0x42D00280UL)) -#define bFM3_ETHERNET_MAC1_SR_TPS *((volatile unsigned int*)(0x42D00284UL)) -#define bFM3_ETHERNET_MAC1_SR_TU *((volatile unsigned int*)(0x42D00288UL)) -#define bFM3_ETHERNET_MAC1_SR_TJT *((volatile unsigned int*)(0x42D0028CUL)) -#define bFM3_ETHERNET_MAC1_SR_OVF *((volatile unsigned int*)(0x42D00290UL)) -#define bFM3_ETHERNET_MAC1_SR_UNF *((volatile unsigned int*)(0x42D00294UL)) -#define bFM3_ETHERNET_MAC1_SR_RI *((volatile unsigned int*)(0x42D00298UL)) -#define bFM3_ETHERNET_MAC1_SR_RU *((volatile unsigned int*)(0x42D0029CUL)) -#define bFM3_ETHERNET_MAC1_SR_RPS *((volatile unsigned int*)(0x42D002A0UL)) -#define bFM3_ETHERNET_MAC1_SR_RWT *((volatile unsigned int*)(0x42D002A4UL)) -#define bFM3_ETHERNET_MAC1_SR_ETI *((volatile unsigned int*)(0x42D002A8UL)) -#define bFM3_ETHERNET_MAC1_SR_FBI *((volatile unsigned int*)(0x42D002B4UL)) -#define bFM3_ETHERNET_MAC1_SR_ERI *((volatile unsigned int*)(0x42D002B8UL)) -#define bFM3_ETHERNET_MAC1_SR_AIS *((volatile unsigned int*)(0x42D002BCUL)) -#define bFM3_ETHERNET_MAC1_SR_NIS *((volatile unsigned int*)(0x42D002C0UL)) -#define bFM3_ETHERNET_MAC1_SR_RS0 *((volatile unsigned int*)(0x42D002C4UL)) -#define bFM3_ETHERNET_MAC1_SR_RS1 *((volatile unsigned int*)(0x42D002C8UL)) -#define bFM3_ETHERNET_MAC1_SR_RS2 *((volatile unsigned int*)(0x42D002CCUL)) -#define bFM3_ETHERNET_MAC1_SR_TS0 *((volatile unsigned int*)(0x42D002D0UL)) -#define bFM3_ETHERNET_MAC1_SR_TS1 *((volatile unsigned int*)(0x42D002D4UL)) -#define bFM3_ETHERNET_MAC1_SR_TS2 *((volatile unsigned int*)(0x42D002D8UL)) -#define bFM3_ETHERNET_MAC1_SR_EB0 *((volatile unsigned int*)(0x42D002DCUL)) -#define bFM3_ETHERNET_MAC1_SR_EB1 *((volatile unsigned int*)(0x42D002E0UL)) -#define bFM3_ETHERNET_MAC1_SR_EB2 *((volatile unsigned int*)(0x42D002E4UL)) -#define bFM3_ETHERNET_MAC1_SR_GLI *((volatile unsigned int*)(0x42D002E8UL)) -#define bFM3_ETHERNET_MAC1_SR_GMI *((volatile unsigned int*)(0x42D002ECUL)) -#define bFM3_ETHERNET_MAC1_SR_GPI *((volatile unsigned int*)(0x42D002F0UL)) -#define bFM3_ETHERNET_MAC1_SR_TTI *((volatile unsigned int*)(0x42D002F4UL)) -#define bFM3_ETHERNET_MAC1_SR_GLPII *((volatile unsigned int*)(0x42D002F8UL)) -#define bFM3_ETHERNET_MAC1_OMR_SR *((volatile unsigned int*)(0x42D00304UL)) -#define bFM3_ETHERNET_MAC1_OMR_OSF *((volatile unsigned int*)(0x42D00308UL)) -#define bFM3_ETHERNET_MAC1_OMR_RTC0 *((volatile unsigned int*)(0x42D0030CUL)) -#define bFM3_ETHERNET_MAC1_OMR_RTC1 *((volatile unsigned int*)(0x42D00310UL)) -#define bFM3_ETHERNET_MAC1_OMR_FUF *((volatile unsigned int*)(0x42D00318UL)) -#define bFM3_ETHERNET_MAC1_OMR_FEF *((volatile unsigned int*)(0x42D0031CUL)) -#define bFM3_ETHERNET_MAC1_OMR_ST *((volatile unsigned int*)(0x42D00334UL)) -#define bFM3_ETHERNET_MAC1_OMR_TTC0 *((volatile unsigned int*)(0x42D00338UL)) -#define bFM3_ETHERNET_MAC1_OMR_TTC1 *((volatile unsigned int*)(0x42D0033CUL)) -#define bFM3_ETHERNET_MAC1_OMR_TTC2 *((volatile unsigned int*)(0x42D00340UL)) -#define bFM3_ETHERNET_MAC1_OMR_FTF *((volatile unsigned int*)(0x42D00350UL)) -#define bFM3_ETHERNET_MAC1_OMR_TSF *((volatile unsigned int*)(0x42D00354UL)) -#define bFM3_ETHERNET_MAC1_OMR_DFF *((volatile unsigned int*)(0x42D00360UL)) -#define bFM3_ETHERNET_MAC1_OMR_RSF *((volatile unsigned int*)(0x42D00364UL)) -#define bFM3_ETHERNET_MAC1_OMR_DT *((volatile unsigned int*)(0x42D00368UL)) -#define bFM3_ETHERNET_MAC1_IER_TIE *((volatile unsigned int*)(0x42D00380UL)) -#define bFM3_ETHERNET_MAC1_IER_TSE *((volatile unsigned int*)(0x42D00384UL)) -#define bFM3_ETHERNET_MAC1_IER_TUE *((volatile unsigned int*)(0x42D00388UL)) -#define bFM3_ETHERNET_MAC1_IER_TJE *((volatile unsigned int*)(0x42D0038CUL)) -#define bFM3_ETHERNET_MAC1_IER_OVE *((volatile unsigned int*)(0x42D00390UL)) -#define bFM3_ETHERNET_MAC1_IER_UNE *((volatile unsigned int*)(0x42D00394UL)) -#define bFM3_ETHERNET_MAC1_IER_RIE *((volatile unsigned int*)(0x42D00398UL)) -#define bFM3_ETHERNET_MAC1_IER_RUE *((volatile unsigned int*)(0x42D0039CUL)) -#define bFM3_ETHERNET_MAC1_IER_RSE *((volatile unsigned int*)(0x42D003A0UL)) -#define bFM3_ETHERNET_MAC1_IER_RWE *((volatile unsigned int*)(0x42D003A4UL)) -#define bFM3_ETHERNET_MAC1_IER_ETE *((volatile unsigned int*)(0x42D003A8UL)) -#define bFM3_ETHERNET_MAC1_IER_FBE *((volatile unsigned int*)(0x42D003B4UL)) -#define bFM3_ETHERNET_MAC1_IER_ERE *((volatile unsigned int*)(0x42D003B8UL)) -#define bFM3_ETHERNET_MAC1_IER_AIE *((volatile unsigned int*)(0x42D003BCUL)) -#define bFM3_ETHERNET_MAC1_IER_NIE *((volatile unsigned int*)(0x42D003C0UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH0 *((volatile unsigned int*)(0x42D00400UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH1 *((volatile unsigned int*)(0x42D00404UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH2 *((volatile unsigned int*)(0x42D00408UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH3 *((volatile unsigned int*)(0x42D0040CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH4 *((volatile unsigned int*)(0x42D00410UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH5 *((volatile unsigned int*)(0x42D00414UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH6 *((volatile unsigned int*)(0x42D00418UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH7 *((volatile unsigned int*)(0x42D0041CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH8 *((volatile unsigned int*)(0x42D00420UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH9 *((volatile unsigned int*)(0x42D00424UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH10 *((volatile unsigned int*)(0x42D00428UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH11 *((volatile unsigned int*)(0x42D0042CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH12 *((volatile unsigned int*)(0x42D00430UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH13 *((volatile unsigned int*)(0x42D00434UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH14 *((volatile unsigned int*)(0x42D00438UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFH15 *((volatile unsigned int*)(0x42D0043CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFH *((volatile unsigned int*)(0x42D00440UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF0 *((volatile unsigned int*)(0x42D00444UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF1 *((volatile unsigned int*)(0x42D00448UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF2 *((volatile unsigned int*)(0x42D0044CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF3 *((volatile unsigned int*)(0x42D00450UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF4 *((volatile unsigned int*)(0x42D00454UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF5 *((volatile unsigned int*)(0x42D00458UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF6 *((volatile unsigned int*)(0x42D0045CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF7 *((volatile unsigned int*)(0x42D00460UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF8 *((volatile unsigned int*)(0x42D00464UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF9 *((volatile unsigned int*)(0x42D00468UL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_NMFF10 *((volatile unsigned int*)(0x42D0046CUL)) -#define bFM3_ETHERNET_MAC1_MFBOCR_ONMFF *((volatile unsigned int*)(0x42D00470UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT0 *((volatile unsigned int*)(0x42D00480UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT1 *((volatile unsigned int*)(0x42D00484UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT2 *((volatile unsigned int*)(0x42D00488UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT3 *((volatile unsigned int*)(0x42D0048CUL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT4 *((volatile unsigned int*)(0x42D00490UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT5 *((volatile unsigned int*)(0x42D00494UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT6 *((volatile unsigned int*)(0x42D00498UL)) -#define bFM3_ETHERNET_MAC1_RIWTR_RIWT7 *((volatile unsigned int*)(0x42D0049CUL)) -#define bFM3_ETHERNET_MAC1_AHBSR_AHBS *((volatile unsigned int*)(0x42D00580UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP0 *((volatile unsigned int*)(0x42D00900UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP1 *((volatile unsigned int*)(0x42D00904UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP2 *((volatile unsigned int*)(0x42D00908UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP3 *((volatile unsigned int*)(0x42D0090CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP4 *((volatile unsigned int*)(0x42D00910UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP5 *((volatile unsigned int*)(0x42D00914UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP6 *((volatile unsigned int*)(0x42D00918UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP7 *((volatile unsigned int*)(0x42D0091CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP8 *((volatile unsigned int*)(0x42D00920UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP9 *((volatile unsigned int*)(0x42D00924UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP10 *((volatile unsigned int*)(0x42D00928UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP11 *((volatile unsigned int*)(0x42D0092CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP12 *((volatile unsigned int*)(0x42D00930UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP13 *((volatile unsigned int*)(0x42D00934UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP14 *((volatile unsigned int*)(0x42D00938UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP15 *((volatile unsigned int*)(0x42D0093CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP16 *((volatile unsigned int*)(0x42D00940UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP17 *((volatile unsigned int*)(0x42D00944UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP18 *((volatile unsigned int*)(0x42D00948UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP19 *((volatile unsigned int*)(0x42D0094CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP20 *((volatile unsigned int*)(0x42D00950UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP21 *((volatile unsigned int*)(0x42D00954UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP22 *((volatile unsigned int*)(0x42D00958UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP23 *((volatile unsigned int*)(0x42D0095CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP24 *((volatile unsigned int*)(0x42D00960UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP25 *((volatile unsigned int*)(0x42D00964UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP26 *((volatile unsigned int*)(0x42D00968UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP27 *((volatile unsigned int*)(0x42D0096CUL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP28 *((volatile unsigned int*)(0x42D00970UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP29 *((volatile unsigned int*)(0x42D00974UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP30 *((volatile unsigned int*)(0x42D00978UL)) -#define bFM3_ETHERNET_MAC1_CHTDR_HTDAP31 *((volatile unsigned int*)(0x42D0097CUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP0 *((volatile unsigned int*)(0x42D00980UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP1 *((volatile unsigned int*)(0x42D00984UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP2 *((volatile unsigned int*)(0x42D00988UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP3 *((volatile unsigned int*)(0x42D0098CUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP4 *((volatile unsigned int*)(0x42D00990UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP5 *((volatile unsigned int*)(0x42D00994UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP6 *((volatile unsigned int*)(0x42D00998UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP7 *((volatile unsigned int*)(0x42D0099CUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP8 *((volatile unsigned int*)(0x42D009A0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP9 *((volatile unsigned int*)(0x42D009A4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP10 *((volatile unsigned int*)(0x42D009A8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP11 *((volatile unsigned int*)(0x42D009ACUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP12 *((volatile unsigned int*)(0x42D009B0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP13 *((volatile unsigned int*)(0x42D009B4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP14 *((volatile unsigned int*)(0x42D009B8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP15 *((volatile unsigned int*)(0x42D009BCUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP16 *((volatile unsigned int*)(0x42D009C0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP17 *((volatile unsigned int*)(0x42D009C4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP18 *((volatile unsigned int*)(0x42D009C8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP19 *((volatile unsigned int*)(0x42D009CCUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP20 *((volatile unsigned int*)(0x42D009D0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP21 *((volatile unsigned int*)(0x42D009D4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP22 *((volatile unsigned int*)(0x42D009D8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP23 *((volatile unsigned int*)(0x42D009DCUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP24 *((volatile unsigned int*)(0x42D009E0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP25 *((volatile unsigned int*)(0x42D009E4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP26 *((volatile unsigned int*)(0x42D009E8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP27 *((volatile unsigned int*)(0x42D009ECUL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP28 *((volatile unsigned int*)(0x42D009F0UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP29 *((volatile unsigned int*)(0x42D009F4UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP30 *((volatile unsigned int*)(0x42D009F8UL)) -#define bFM3_ETHERNET_MAC1_CHRDR_HRDAP31 *((volatile unsigned int*)(0x42D009FCUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR0 *((volatile unsigned int*)(0x42D00A00UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR1 *((volatile unsigned int*)(0x42D00A04UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR2 *((volatile unsigned int*)(0x42D00A08UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR3 *((volatile unsigned int*)(0x42D00A0CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR4 *((volatile unsigned int*)(0x42D00A10UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR5 *((volatile unsigned int*)(0x42D00A14UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR6 *((volatile unsigned int*)(0x42D00A18UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR7 *((volatile unsigned int*)(0x42D00A1CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR8 *((volatile unsigned int*)(0x42D00A20UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR9 *((volatile unsigned int*)(0x42D00A24UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR10 *((volatile unsigned int*)(0x42D00A28UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR11 *((volatile unsigned int*)(0x42D00A2CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR12 *((volatile unsigned int*)(0x42D00A30UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR13 *((volatile unsigned int*)(0x42D00A34UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR14 *((volatile unsigned int*)(0x42D00A38UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR15 *((volatile unsigned int*)(0x42D00A3CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR16 *((volatile unsigned int*)(0x42D00A40UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR17 *((volatile unsigned int*)(0x42D00A44UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR18 *((volatile unsigned int*)(0x42D00A48UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR19 *((volatile unsigned int*)(0x42D00A4CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR20 *((volatile unsigned int*)(0x42D00A50UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR21 *((volatile unsigned int*)(0x42D00A54UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR22 *((volatile unsigned int*)(0x42D00A58UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR23 *((volatile unsigned int*)(0x42D00A5CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR24 *((volatile unsigned int*)(0x42D00A60UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR25 *((volatile unsigned int*)(0x42D00A64UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR26 *((volatile unsigned int*)(0x42D00A68UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR27 *((volatile unsigned int*)(0x42D00A6CUL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR28 *((volatile unsigned int*)(0x42D00A70UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR29 *((volatile unsigned int*)(0x42D00A74UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR30 *((volatile unsigned int*)(0x42D00A78UL)) -#define bFM3_ETHERNET_MAC1_CHTBAR_HTBAR31 *((volatile unsigned int*)(0x42D00A7CUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR0 *((volatile unsigned int*)(0x42D00A80UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR1 *((volatile unsigned int*)(0x42D00A84UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR2 *((volatile unsigned int*)(0x42D00A88UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR3 *((volatile unsigned int*)(0x42D00A8CUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR4 *((volatile unsigned int*)(0x42D00A90UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR5 *((volatile unsigned int*)(0x42D00A94UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR6 *((volatile unsigned int*)(0x42D00A98UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR7 *((volatile unsigned int*)(0x42D00A9CUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR8 *((volatile unsigned int*)(0x42D00AA0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR9 *((volatile unsigned int*)(0x42D00AA4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR10 *((volatile unsigned int*)(0x42D00AA8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR11 *((volatile unsigned int*)(0x42D00AACUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR12 *((volatile unsigned int*)(0x42D00AB0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR13 *((volatile unsigned int*)(0x42D00AB4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR14 *((volatile unsigned int*)(0x42D00AB8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR15 *((volatile unsigned int*)(0x42D00ABCUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR16 *((volatile unsigned int*)(0x42D00AC0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR17 *((volatile unsigned int*)(0x42D00AC4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR18 *((volatile unsigned int*)(0x42D00AC8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR19 *((volatile unsigned int*)(0x42D00ACCUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR20 *((volatile unsigned int*)(0x42D00AD0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR21 *((volatile unsigned int*)(0x42D00AD4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR22 *((volatile unsigned int*)(0x42D00AD8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR23 *((volatile unsigned int*)(0x42D00ADCUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR24 *((volatile unsigned int*)(0x42D00AE0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR25 *((volatile unsigned int*)(0x42D00AE4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR26 *((volatile unsigned int*)(0x42D00AE8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR27 *((volatile unsigned int*)(0x42D00AECUL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR28 *((volatile unsigned int*)(0x42D00AF0UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR29 *((volatile unsigned int*)(0x42D00AF4UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR30 *((volatile unsigned int*)(0x42D00AF8UL)) -#define bFM3_ETHERNET_MAC1_CHRBAR_HRBAR31 *((volatile unsigned int*)(0x42D00AFCUL)) - -#ifdef __cplusplus -} -#endif - -#endif /* _MB9B610T_H_ */ - diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S deleted file mode 100644 index 85d59276e2..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S +++ /dev/null @@ -1,333 +0,0 @@ -;/************************************************************************/ -;/* (C) Fujitsu Semiconductor Europe GmbH */ -;/* */ -;/* The following software deliverable is intended for and must only be */ -;/* used for reference and in an evaluation laboratory environment. */ -;/* It is provided on an as-is basis without charge and is subject to */ -;/* alterations. */ -;/* It is the user’s obligation to fully test the software in its */ -;/* environment and to ensure proper functionality, qualification and */ -;/* compliance with component specifications. */ -;/* */ -;/* In the event the software deliverable includes the use of open */ -;/* source components, the provisions of the governing open source */ -;/* license agreement shall apply with respect to such software */ -;/* deliverable. */ -;/* FSEU does not warrant that the deliverables do not infringe any */ -;/* third party intellectual property right (IPR). In the event that */ -;/* the deliverables infringe a third party IPR it is the sole */ -;/* responsibility of the customer to obtain necessary licenses to */ -;/* continue the usage of the deliverable. */ -;/* */ -;/* To the maximum extent permitted by applicable law FSEU disclaims all */ -;/* warranties, whether express or implied, in particular, but not */ -;/* limited to, warranties of merchantability and fitness for a */ -;/* particular purpose for which the deliverable is not designated. */ -;/* */ -;/* To the maximum extent permitted by applicable law, FSEU's liability */ -;/* is restricted to intention and gross negligence. */ -;/* FSEU is not liable for consequential damages. */ -;/* */ -;/* (V1.4) */ -;/************************************************************************/ -;/* Startup for ARM */ -;/* Version V1.02 */ -;/* Date 2011-07-25 */ -;/* Target-mcu MB9B61x */ -;/************************************************************************/ - -; Stack Configuration -; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> - -Stack_Size EQU 0x00000400 - - AREA STACK, NOINIT, READWRITE, ALIGN=3 -Stack_Mem SPACE Stack_Size -__initial_sp - - -; Heap Configuration -; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> - -Heap_Size EQU 0x00000000 - - AREA HEAP, NOINIT, READWRITE, ALIGN=3 -__heap_base -Heap_Mem SPACE Heap_Size -__heap_limit - - - PRESERVE8 - THUMB - - -; Vector Table Mapped to Address 0 at Reset - - AREA RESET, DATA, READONLY - EXPORT __Vectors - EXPORT __Vectors_End - EXPORT __Vectors_Size - -__Vectors DCD __initial_sp ; Top of Stack - DCD Reset_Handler ; Reset Handler - DCD NMI_Handler ; NMI Handler - DCD HardFault_Handler ; Hard Fault Handler - DCD MemManage_Handler ; MPU Fault Handler - DCD BusFault_Handler ; Bus Fault Handler - DCD UsageFault_Handler ; Usage Fault Handler - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall Handler - DCD DebugMon_Handler ; Debug Monitor Handler - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV Handler - DCD SysTick_Handler ; SysTick Handler - - DCD CSV_Handler ; 0: Clock Super Visor - DCD SWDT_Handler ; 1: Software Watchdog Timer - DCD LVD_Handler ; 2: Low Voltage Detector - DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF - DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 - DCD INT8_31_Handler ; 5: External Interrupt Request ch.8 to ch.31 - DCD DT_Handler ; 6: Dual Timer / Quad Decoder - DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 - DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 - DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 - DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 - DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 - DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 - DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 - DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 - DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 - DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 - DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 - DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 - DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 - DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 - DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 - DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 - DCD PPG_Handler ; 23: PPG - DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter - DCD ADC0_IRQHandler ; 25: ADC0 - DCD ADC1_IRQHandler ; 26: ADC1 - DCD ADC2_IRQHandler ; 27: ADC2 - DCD MFT_FRT_IRQHandler ; 28: Free-run Timer - DCD MFT_IPC_IRQHandler ; 29: Input Capture - DCD MFT_OPC_IRQHandler ; 30: Output Compare - DCD BT0_7_IRQHandler ; 31: Base Timer ch.0 to ch.7 - DCD ETHER_MAC0_IRQHandler ; 32: Ethernet MAC ch.0 - DCD ETHER_MAC1_IRQHandler ; 33: Ethernet MAC ch.1 - DCD USB0F_Handler ; 34: USB0 Function - DCD USB0_Handler ; 35: USB0 Function / USB0 HOST - DCD USB1F_Handler ; 36: USB1 Function - DCD USB1_Handler ; 37: USB1 Function / USB1 HOST - DCD DMAC0_Handler ; 38: DMAC ch.0 - DCD DMAC1_Handler ; 39: DMAC ch.1 - DCD DMAC2_Handler ; 40: DMAC ch.2 - DCD DMAC3_Handler ; 41: DMAC ch.3 - DCD DMAC4_Handler ; 42: DMAC ch.4 - DCD DMAC5_Handler ; 43: DMAC ch.5 - DCD DMAC6_Handler ; 44: DMAC ch.6 - DCD DMAC7_Handler ; 45: DMAC ch.7 - DCD BT8_15_IRQHandler ; 46: Base Timer ch.8 to ch.15 - DCD DummyHandler ; 47: Reserved -__Vectors_End - -__Vectors_Size EQU __Vectors_End - __Vectors - - AREA |.text|, CODE, READONLY - - -; Reset Handler - -Reset_Handler PROC - EXPORT Reset_Handler [WEAK] - IMPORT SystemInit - IMPORT __main - LDR R0, =SystemInit - BLX R0 - LDR R0, =__main - BX R0 - ENDP - - -; Dummy Exception Handlers (infinite loops which can be modified) - -NMI_Handler PROC - EXPORT NMI_Handler [WEAK] - B . - ENDP -HardFault_Handler\ - PROC - EXPORT HardFault_Handler [WEAK] - B . - ENDP -MemManage_Handler\ - PROC - EXPORT MemManage_Handler [WEAK] - B . - ENDP -BusFault_Handler\ - PROC - EXPORT BusFault_Handler [WEAK] - B . - ENDP -UsageFault_Handler\ - PROC - EXPORT UsageFault_Handler [WEAK] - B . - ENDP -SVC_Handler PROC - EXPORT SVC_Handler [WEAK] - B . - ENDP -DebugMon_Handler\ - PROC - EXPORT DebugMon_Handler [WEAK] - B . - ENDP -PendSV_Handler PROC - EXPORT PendSV_Handler [WEAK] - B . - ENDP -SysTick_Handler PROC - EXPORT SysTick_Handler [WEAK] - B . - ENDP - -Default_Handler PROC - - EXPORT CSV_Handler [WEAK] - EXPORT SWDT_Handler [WEAK] - EXPORT LVD_Handler [WEAK] - EXPORT MFT_WG_IRQHandler [WEAK] - EXPORT INT0_7_Handler [WEAK] - EXPORT INT8_31_Handler [WEAK] - EXPORT DT_Handler [WEAK] - EXPORT MFS0RX_IRQHandler [WEAK] - EXPORT MFS0TX_IRQHandler [WEAK] - EXPORT MFS1RX_IRQHandler [WEAK] - EXPORT MFS1TX_IRQHandler [WEAK] - EXPORT MFS2RX_IRQHandler [WEAK] - EXPORT MFS2TX_IRQHandler [WEAK] - EXPORT MFS3RX_IRQHandler [WEAK] - EXPORT MFS3TX_IRQHandler [WEAK] - EXPORT MFS4RX_IRQHandler [WEAK] - EXPORT MFS4TX_IRQHandler [WEAK] - EXPORT MFS5RX_IRQHandler [WEAK] - EXPORT MFS5TX_IRQHandler [WEAK] - EXPORT MFS6RX_IRQHandler [WEAK] - EXPORT MFS6TX_IRQHandler [WEAK] - EXPORT MFS7RX_IRQHandler [WEAK] - EXPORT MFS7TX_IRQHandler [WEAK] - EXPORT PPG_Handler [WEAK] - EXPORT TIM_IRQHandler [WEAK] - EXPORT ADC0_IRQHandler [WEAK] - EXPORT ADC1_IRQHandler [WEAK] - EXPORT ADC2_IRQHandler [WEAK] - EXPORT MFT_FRT_IRQHandler [WEAK] - EXPORT MFT_IPC_IRQHandler [WEAK] - EXPORT MFT_OPC_IRQHandler [WEAK] - EXPORT BT0_7_IRQHandler [WEAK] - EXPORT ETHER_MAC0_IRQHandler [WEAK] - EXPORT ETHER_MAC1_IRQHandler [WEAK] - EXPORT USB0F_Handler [WEAK] - EXPORT USB0_Handler [WEAK] - EXPORT USB1F_Handler [WEAK] - EXPORT USB1_Handler [WEAK] - EXPORT DMAC0_Handler [WEAK] - EXPORT DMAC1_Handler [WEAK] - EXPORT DMAC2_Handler [WEAK] - EXPORT DMAC3_Handler [WEAK] - EXPORT DMAC4_Handler [WEAK] - EXPORT DMAC5_Handler [WEAK] - EXPORT DMAC6_Handler [WEAK] - EXPORT DMAC7_Handler [WEAK] - EXPORT BT8_15_IRQHandler [WEAK] - EXPORT DummyHandler [WEAK] - -CSV_Handler -SWDT_Handler -LVD_Handler -MFT_WG_IRQHandler -INT0_7_Handler -INT8_31_Handler -DT_Handler -MFS0RX_IRQHandler -MFS0TX_IRQHandler -MFS1RX_IRQHandler -MFS1TX_IRQHandler -MFS2RX_IRQHandler -MFS2TX_IRQHandler -MFS3RX_IRQHandler -MFS3TX_IRQHandler -MFS4RX_IRQHandler -MFS4TX_IRQHandler -MFS5RX_IRQHandler -MFS5TX_IRQHandler -MFS6RX_IRQHandler -MFS6TX_IRQHandler -MFS7RX_IRQHandler -MFS7TX_IRQHandler -PPG_Handler -TIM_IRQHandler -ADC0_IRQHandler -ADC1_IRQHandler -ADC2_IRQHandler -MFT_FRT_IRQHandler -MFT_IPC_IRQHandler -MFT_OPC_IRQHandler -BT0_7_IRQHandler -DMAC0_Handler -DMAC1_Handler -DMAC2_Handler -DMAC3_Handler -DMAC4_Handler -DMAC5_Handler -DMAC6_Handler -DMAC7_Handler -ETHER_MAC0_IRQHandler -ETHER_MAC1_IRQHandler -USB0F_Handler -USB0_Handler -USB1F_Handler -USB1_Handler -BT8_15_IRQHandler -DummyHandler - - B . - - ENDP - - - ALIGN - - -; User Initial Stack & Heap - - IF :DEF:__MICROLIB - - EXPORT __initial_sp - EXPORT __heap_base - EXPORT __heap_limit - - ELSE - - IMPORT __use_two_region_memory - EXPORT __user_initial_stackheap -__user_initial_stackheap - - LDR R0, = Heap_Mem - LDR R1, =(Stack_Mem + Stack_Size) - LDR R2, = (Heap_Mem + Heap_Size) - LDR R3, = Stack_Mem - BX LR - - ALIGN - - ENDIF - - - END diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c deleted file mode 100644 index ef641de1ef..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c +++ /dev/null @@ -1,244 +0,0 @@ -/* - **************************************************************************** -** -** File : startup_mb9bf61x.c -** -** Abstract : This file contains interrupt vector and startup code. -** -** Functions : Reset_Handler -** -** Target : Fujitsu FM3 microcontrollers -** -** Environment : Atollic TrueSTUDIO(R) -** -** Distribution: The file is distributed “as is,” without any warranty -** of any kind. -** -** (c)Copyright Atollic AB. -** You may use this file as-is or modify it according to the needs of your -** project. Distribution of this file (unmodified or modified) is not -** permitted. Atollic AB permit registered Atollic TrueSTUDIO(R) users the -** rights to distribute the assembled, compiled & linked contents of this -** file as part of an application binary file, provided that it is built -** using the Atollic TrueSTUDIO(R) toolchain. -** - **************************************************************************** -*/ - -/** -**=========================================================================== -** Revisions -**=========================================================================== -** Date Modification -** 2011-08-18 First issue. -**=========================================================================== -*/ - -/** -**=========================================================================== -** External declarations -**=========================================================================== -*/ -extern unsigned long _sdata, _edata, _sidata, _sbss, _ebss, _isr_vector; -extern unsigned long _estack; -extern void __libc_init_array(); -extern void SystemInit(); -extern void main(); - -/** -**=========================================================================== -** Default interrupt handler -**=========================================================================== -*/ -void Default_Handler() -{ - /* Hang here */ - while(1) - { - } -} - -/** -**=========================================================================== -** Reset handler -**=========================================================================== -*/ -__attribute__((naked)) void Reset_Handler() -{ - /* Data and BSS variables */ - unsigned long *srcdata, *dstdata, *sbss; - - /* Set up the stack pointer */ - asm("ldr sp,=_estack\n\t"); - - /* Set up vector table offset register */ - dstdata = (unsigned long *)0xe000ed08; - *dstdata = (unsigned long)&_isr_vector; - - srcdata = &_sidata; - dstdata = &_sdata; - sbss = &_sbss; - - /* Copy data */ - while(dstdata != &_edata) - { - *(dstdata++) = *(srcdata++); - } - - /* Clear BSS */ - while(sbss != &_ebss) - { - *(sbss++) = '\0'; - } - - /* Run static constructors */ - //__libc_init_array(); - - /* Call the clock system initialization function.*/ - SystemInit(); - - /* Jump to main */ - main(); - - /* In case main returns, use default handler */ - Default_Handler(); -} - -/** -**=========================================================================== -** Weak definitions of handlers point to Default_Handler if not implemented -**=========================================================================== -*/ -void NMI_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void HardFault_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void MemManage_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void BusFault_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void UsageFault_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void SVC_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DebugMonitor_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void PendSV_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void SysTick_Handler() __attribute__ ((weak, alias("Default_Handler"))); - -void CSV_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void SWDT_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void LVD_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void MFT_WG_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void INT0_7_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void INT8_31_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DT_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS0RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS0TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS1RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS1TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS2RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS2TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS3RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS3TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS4RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS4TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS5RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS5TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS6RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS6TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS7RX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFS7TX_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void PPG_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void TIM_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void ADC0_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void ADC1_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void ADC2_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFT_FRT_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFT_IPC_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void MFT_OPC_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void BT0_7_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void ETHER_MAC0_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void ETHER_MAC1_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); -void USB0F_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void USB0_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void USB1F_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void USB1_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC0_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC1_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC2_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC3_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC4_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC5_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC6_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void DMAC7_Handler() __attribute__ ((weak, alias("Default_Handler"))); -void BT8_15_IRQHandler() __attribute__ ((weak, alias("Default_Handler"))); - - -/** -**=========================================================================== -** Interrupt Vector Table -**=========================================================================== -*/ -void (* const InterruptVector[])() __attribute__ ((section(".isr_vector"))) = { - /* Processor exceptions */ - (void (*)(void))&_estack, /* 0 - Stack pointer */ - Reset_Handler, /* 1 - Reset */ - NMI_Handler, /* 2 - NMI */ - HardFault_Handler, /* 3 - Hard fault */ - MemManage_Handler, /* 4 - Memory management fault */ - BusFault_Handler, /* 5 - Bus fault */ - UsageFault_Handler, /* 6 - Usage fault */ - 0, /* 7 - Reserved */ - 0, /* 8 - Reserved */ - 0, /* 9 - Reserved */ - 0, /* 10 - Reserved */ - SVC_Handler, /* 11 - SVCall */ - DebugMonitor_Handler, /* 12 - Reserved for Debug */ - 0, /* 13 - Reserved */ - PendSV_Handler, /* 14 - PendSV */ - SysTick_Handler, /* 15 - Systick */ - - /* External Interrupts */ - CSV_Handler, /* 0: Clock Super Visor */ - SWDT_Handler, /* 1: Software Watchdog Timer */ - LVD_Handler, /* 2: Low Voltage Detector */ - MFT_WG_IRQHandler, /* 3: Wave Form Generator / DTIF */ - INT0_7_Handler, /* 4: External Interrupt Request ch.0 to ch.7 */ - INT8_31_Handler, /* 5: External Interrupt Request ch.8 to ch.31 */ - DT_Handler, /* 6: Dual Timer / Quad Decoder */ - MFS0RX_IRQHandler, /* 7: MultiFunction Serial ch.0 */ - MFS0TX_IRQHandler, /* 8: MultiFunction Serial ch.0 */ - MFS1RX_IRQHandler, /* 9: MultiFunction Serial ch.1 */ - MFS1TX_IRQHandler, /* 10: MultiFunction Serial ch.1 */ - MFS2RX_IRQHandler, /* 11: MultiFunction Serial ch.2 */ - MFS2TX_IRQHandler, /* 12: MultiFunction Serial ch.2 */ - MFS3RX_IRQHandler, /* 13: MultiFunction Serial ch.3 */ - MFS3TX_IRQHandler, /* 14: MultiFunction Serial ch.3 */ - MFS4RX_IRQHandler, /* 15: MultiFunction Serial ch.4 */ - MFS4TX_IRQHandler, /* 16: MultiFunction Serial ch.4 */ - MFS5RX_IRQHandler, /* 17: MultiFunction Serial ch.5 */ - MFS5TX_IRQHandler, /* 18: MultiFunction Serial ch.5 */ - MFS6RX_IRQHandler, /* 19: MultiFunction Serial ch.6 */ - MFS6TX_IRQHandler, /* 20: MultiFunction Serial ch.6 */ - MFS7RX_IRQHandler, /* 21: MultiFunction Serial ch.7 */ - MFS7TX_IRQHandler, /* 22: MultiFunction Serial ch.7 */ - PPG_Handler, /* 23: PPG */ - TIM_IRQHandler, /* 24: OSC / PLL / Watch Counter */ - ADC0_IRQHandler, /* 25: ADC0 */ - ADC1_IRQHandler, /* 26: ADC1 */ - ADC2_IRQHandler, /* 27: ADC2 */ - MFT_FRT_IRQHandler, /* 28: Free-run Timer */ - MFT_IPC_IRQHandler, /* 29: Input Capture */ - MFT_OPC_IRQHandler, /* 30: Output Compare */ - BT0_7_IRQHandler, /* 31: Base Timer ch.0 to ch.7 */ - ETHER_MAC0_IRQHandler, /* 32: Ethernet MAC ch.0 */ - ETHER_MAC1_IRQHandler, /* 33: Ethernet MAC ch.1 */ - USB0F_Handler, /* 34: USB0 Function */ - USB0_Handler, /* 35: USB0 Function / USB0 HOST */ - USB1F_Handler, /* 36: USB1 Function */ - USB1_Handler, /* 37: USB1 Function / USB1 HOST */ - DMAC0_Handler, /* 38: DMAC ch.0 */ - DMAC1_Handler, /* 39: DMAC ch.1 */ - DMAC2_Handler, /* 40: DMAC ch.2 */ - DMAC3_Handler, /* 41: DMAC ch.3 */ - DMAC4_Handler, /* 42: DMAC ch.4 */ - DMAC5_Handler, /* 43: DMAC ch.5 */ - DMAC6_Handler, /* 44: DMAC ch.6 */ - DMAC7_Handler, /* 45: DMAC ch.7 */ - BT8_15_IRQHandler, /* 46: Base Timer ch.8 to ch.15 */ - Default_Handler /* 47: Reserved */ -}; diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S deleted file mode 100644 index 7bc1acf0cd..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S +++ /dev/null @@ -1,417 +0,0 @@ -;/************************************************************************/ -;/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -;/* */ -;/* The following software deliverable is intended for and must only be */ -;/* used for reference and in an evaluation laboratory environment. */ -;/* It is provided on an as-is basis without charge and is subject to */ -;/* alterations. */ -;/* It is the user's obligation to fully test the software in its */ -;/* environment and to ensure proper functionality, qualification and */ -;/* compliance with component specifications. */ -;/* */ -;/* In the event the software deliverable includes the use of open */ -;/* source components, the provisions of the governing open source */ -;/* license agreement shall apply with respect to such software */ -;/* deliverable. */ -;/* FSEU does not warrant that the deliverables do not infringe any */ -;/* third party intellectual property right (IPR). In the event that */ -;/* the deliverables infringe a third party IPR it is the sole */ -;/* responsibility of the customer to obtain necessary licenses to */ -;/* continue the usage of the deliverable. */ -;/* */ -;/* To the maximum extent permitted by applicable law FSEU disclaims all */ -;/* warranties, whether express or implied, in particular, but not */ -;/* limited to, warranties of merchantability and fitness for a */ -;/* particular purpose for which the deliverable is not designated. */ -;/* */ -;/* To the maximum extent permitted by applicable law, FSEU's liability */ -;/* is restricted to intentional misconduct and gross negligence. */ -;/* FSEU is not liable for consequential damages. */ -;/* */ -;/* (V1.5) */ -;/************************************************************************/ -;/* Startup for IAR */ -;/* Version V1.00 */ -;/* Date 2011-07-25 */ -;/* Target-mcu MB9B610 */ -;/************************************************************************/ - - - MODULE ?cstartup - - ;; Forward declaration of sections. - SECTION CSTACK:DATA:NOROOT(3) - - SECTION .intvec:CODE:NOROOT(2) - - EXTERN __iar_program_start - EXTERN SystemInit - PUBLIC __vector_table - - DATA -__vector_table DCD sfe(CSTACK) ; Top of Stack - DCD Reset_Handler ; Reset - DCD NMI_Handler ; NMI - DCD HardFault_Handler ; Hard Fault - DCD MemManage_Handler ; MPU Fault - DCD BusFault_Handler ; Bus Fault - DCD UsageFault_Handler ; Usage Fault - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD 0 ; Reserved - DCD SVC_Handler ; SVCall - DCD DebugMon_Handler ; Debug Monitor - DCD 0 ; Reserved - DCD PendSV_Handler ; PendSV - DCD SysTick_Handler ; SysTick - - DCD CSV_Handler ; 0: Clock Super Visor - DCD SWDT_Handler ; 1: Software Watchdog Timer - DCD LVD_Handler ; 2: Low Voltage Detector - DCD MFT_WG_IRQHandler ; 3: Wave Form Generator / DTIF - DCD INT0_7_Handler ; 4: External Interrupt Request ch.0 to ch.7 - DCD INT8_31_Handler ; 5: External Interrupt Request ch.8 to ch.31 - DCD DT_Handler ; 6: Dual Timer / Quad Decoder - DCD MFS0RX_IRQHandler ; 7: MultiFunction Serial ch.0 - DCD MFS0TX_IRQHandler ; 8: MultiFunction Serial ch.0 - DCD MFS1RX_IRQHandler ; 9: MultiFunction Serial ch.1 - DCD MFS1TX_IRQHandler ; 10: MultiFunction Serial ch.1 - DCD MFS2RX_IRQHandler ; 11: MultiFunction Serial ch.2 - DCD MFS2TX_IRQHandler ; 12: MultiFunction Serial ch.2 - DCD MFS3RX_IRQHandler ; 13: MultiFunction Serial ch.3 - DCD MFS3TX_IRQHandler ; 14: MultiFunction Serial ch.3 - DCD MFS4RX_IRQHandler ; 15: MultiFunction Serial ch.4 - DCD MFS4TX_IRQHandler ; 16: MultiFunction Serial ch.4 - DCD MFS5RX_IRQHandler ; 17: MultiFunction Serial ch.5 - DCD MFS5TX_IRQHandler ; 18: MultiFunction Serial ch.5 - DCD MFS6RX_IRQHandler ; 19: MultiFunction Serial ch.6 - DCD MFS6TX_IRQHandler ; 20: MultiFunction Serial ch.6 - DCD MFS7RX_IRQHandler ; 21: MultiFunction Serial ch.7 - DCD MFS7TX_IRQHandler ; 22: MultiFunction Serial ch.7 - DCD PPG_Handler ; 23: PPG - DCD TIM_IRQHandler ; 24: OSC / PLL / Watch Counter - DCD ADC0_IRQHandler ; 25: ADC0 - DCD ADC1_IRQHandler ; 26: ADC1 - DCD ADC2_IRQHandler ; 27: ADC2 - DCD MFT_FRT_IRQHandler ; 28: Free-run Timer - DCD MFT_IPC_IRQHandler ; 29: Input Capture - DCD MFT_OPC_IRQHandler ; 30: Output Compare - DCD BT0_7_IRQHandler ; 31: Base Timer ch.0 to ch.7 - DCD ETHER_MAC0_IRQHandler ; 32: Ethernet MAC ch.0 - DCD ETHER_MAC1_IRQHandler ; 33: Ethernet MAC ch.1 - DCD USB0F_Handler ; 34: USB0 Function - DCD USB0_Handler ; 35: USB0 Function / USB0 HOST - DCD USB1F_Handler ; 36: USB1 Function - DCD USB1_Handler ; 37: USB1 Function / USB1 HOST - DCD DMAC0_Handler ; 38: DMAC ch.0 - DCD DMAC1_Handler ; 39: DMAC ch.1 - DCD DMAC2_Handler ; 40: DMAC ch.2 - DCD DMAC3_Handler ; 41: DMAC ch.3 - DCD DMAC4_Handler ; 42: DMAC ch.4 - DCD DMAC5_Handler ; 43: DMAC ch.5 - DCD DMAC6_Handler ; 44: DMAC ch.6 - DCD DMAC7_Handler ; 45: DMAC ch.7 - DCD BT8_15_IRQHandler ; 46: Base Timer ch.8 to ch.15 - DCD DummyHandler ; 47: Reserved - - THUMB -; Dummy Exception Handlers (infinite loops which can be modified) - - PUBWEAK Reset_Handler - SECTION .text:CODE:REORDER(2) -Reset_Handler - LDR R0, =SystemInit - BLX R0 - LDR R0, =__iar_program_start - BX R0 - - PUBWEAK NMI_Handler - SECTION .text:CODE:REORDER(1) -NMI_Handler - B NMI_Handler - - PUBWEAK HardFault_Handler - SECTION .text:CODE:REORDER(1) -HardFault_Handler - B HardFault_Handler - - PUBWEAK MemManage_Handler - SECTION .text:CODE:REORDER(1) -MemManage_Handler - B MemManage_Handler - - PUBWEAK BusFault_Handler - SECTION .text:CODE:REORDER(1) -BusFault_Handler - B BusFault_Handler - - PUBWEAK UsageFault_Handler - SECTION .text:CODE:REORDER(1) -UsageFault_Handler - B UsageFault_Handler - - PUBWEAK SVC_Handler - SECTION .text:CODE:REORDER(1) -SVC_Handler - B SVC_Handler - - PUBWEAK DebugMon_Handler - SECTION .text:CODE:REORDER(1) -DebugMon_Handler - B DebugMon_Handler - - PUBWEAK PendSV_Handler - SECTION .text:CODE:REORDER(1) -PendSV_Handler - B PendSV_Handler - - PUBWEAK SysTick_Handler - SECTION .text:CODE:REORDER(1) -SysTick_Handler - B SysTick_Handler - - - - PUBWEAK CSV_Handler - SECTION .text:CODE:REORDER(1) -CSV_Handler - B CSV_Handler - - PUBWEAK SWDT_Handler - SECTION .text:CODE:REORDER(1) -SWDT_Handler - B SWDT_Handler - - PUBWEAK LVD_Handler - SECTION .text:CODE:REORDER(1) -LVD_Handler - B LVD_Handler - - PUBWEAK MFT_WG_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_WG_IRQHandler - B MFT_WG_IRQHandler - - PUBWEAK INT0_7_Handler - SECTION .text:CODE:REORDER(1) -INT0_7_Handler - B INT0_7_Handler - - PUBWEAK INT8_31_Handler - SECTION .text:CODE:REORDER(1) -INT8_31_Handler - B INT8_31_Handler - - PUBWEAK DT_Handler - SECTION .text:CODE:REORDER(1) -DT_Handler - B DT_Handler - - PUBWEAK MFS0RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS0RX_IRQHandler - B MFS0RX_IRQHandler - - PUBWEAK MFS0TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS0TX_IRQHandler - B MFS0TX_IRQHandler - - PUBWEAK MFS1RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS1RX_IRQHandler - B MFS1RX_IRQHandler - - PUBWEAK MFS1TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS1TX_IRQHandler - B MFS1TX_IRQHandler - - PUBWEAK MFS2RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS2RX_IRQHandler - B MFS2RX_IRQHandler - - PUBWEAK MFS2TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS2TX_IRQHandler - B MFS2TX_IRQHandler - - PUBWEAK MFS3RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS3RX_IRQHandler - B MFS3RX_IRQHandler - - PUBWEAK MFS3TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS3TX_IRQHandler - B MFS3TX_IRQHandler - - PUBWEAK MFS4RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS4RX_IRQHandler - B MFS4RX_IRQHandler - - PUBWEAK MFS4TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS4TX_IRQHandler - B MFS4TX_IRQHandler - - PUBWEAK MFS5RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS5RX_IRQHandler - B MFS5RX_IRQHandler - - PUBWEAK MFS5TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS5TX_IRQHandler - B MFS5TX_IRQHandler - - PUBWEAK MFS6RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS6RX_IRQHandler - B MFS6RX_IRQHandler - - PUBWEAK MFS6TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS6TX_IRQHandler - B MFS6TX_IRQHandler - - PUBWEAK MFS7RX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS7RX_IRQHandler - B MFS7RX_IRQHandler - - PUBWEAK MFS7TX_IRQHandler - SECTION .text:CODE:REORDER(1) -MFS7TX_IRQHandler - B MFS7TX_IRQHandler - - PUBWEAK PPG_Handler - SECTION .text:CODE:REORDER(1) -PPG_Handler - B PPG_Handler - - PUBWEAK TIM_IRQHandler - SECTION .text:CODE:REORDER(1) -TIM_IRQHandler - B TIM_IRQHandler - - PUBWEAK ADC0_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC0_IRQHandler - B ADC0_IRQHandler - - PUBWEAK ADC1_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC1_IRQHandler - B ADC1_IRQHandler - - PUBWEAK ADC2_IRQHandler - SECTION .text:CODE:REORDER(1) -ADC2_IRQHandler - B ADC2_IRQHandler - - PUBWEAK MFT_FRT_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_FRT_IRQHandler - B MFT_FRT_IRQHandler - - PUBWEAK MFT_IPC_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_IPC_IRQHandler - B MFT_IPC_IRQHandler - - PUBWEAK MFT_OPC_IRQHandler - SECTION .text:CODE:REORDER(1) -MFT_OPC_IRQHandler - B MFT_OPC_IRQHandler - - PUBWEAK BT0_7_IRQHandler - SECTION .text:CODE:REORDER(1) -BT0_7_IRQHandler - B BT0_7_IRQHandler - - PUBWEAK ETHER_MAC0_IRQHandler - SECTION .text:CODE:REORDER(1) -ETHER_MAC0_IRQHandler - B ETHER_MAC0_IRQHandler - - PUBWEAK ETHER_MAC1_IRQHandler - SECTION .text:CODE:REORDER(1) -ETHER_MAC1_IRQHandler - B ETHER_MAC1_IRQHandler - - PUBWEAK USB0F_Handler - SECTION .text:CODE:REORDER(1) -USB0F_Handler - B USB0F_Handler - - PUBWEAK USB0_Handler - SECTION .text:CODE:REORDER(1) -USB0_Handler - B USB0_Handler - - PUBWEAK USB1F_Handler - SECTION .text:CODE:REORDER(1) -USB1F_Handler - B USB1F_Handler - - PUBWEAK USB1_Handler - SECTION .text:CODE:REORDER(1) -USB1_Handler - B USB1_Handler - - PUBWEAK DMAC0_Handler - SECTION .text:CODE:REORDER(1) -DMAC0_Handler - B DMAC0_Handler - - - PUBWEAK DMAC1_Handler - SECTION .text:CODE:REORDER(1) -DMAC1_Handler - B DMAC1_Handler - - PUBWEAK DMAC2_Handler - SECTION .text:CODE:REORDER(1) -DMAC2_Handler - B DMAC2_Handler - - PUBWEAK DMAC3_Handler - SECTION .text:CODE:REORDER(1) -DMAC3_Handler - B DMAC3_Handler - - PUBWEAK DMAC4_Handler - SECTION .text:CODE:REORDER(1) -DMAC4_Handler - B DMAC4_Handler - - PUBWEAK DMAC5_Handler - SECTION .text:CODE:REORDER(1) -DMAC5_Handler - B DMAC5_Handler - - PUBWEAK DMAC6_Handler - SECTION .text:CODE:REORDER(1) -DMAC6_Handler - B DMAC6_Handler - - PUBWEAK DMAC7_Handler - SECTION .text:CODE:REORDER(1) -DMAC7_Handler - B DMAC7_Handler - - PUBWEAK BT8_15_IRQHandler - SECTION .text:CODE:REORDER(1) -BT8_15_IRQHandler - B BT8_15_IRQHandler - - PUBWEAK DummyHandler - SECTION .text:CODE:REORDER(1) -DummyHandler - B DummyHandler - - END diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c deleted file mode 100644 index a039f02431..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.c +++ /dev/null @@ -1,206 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ - -#include "board.h" - -/** \file system_mb9bf61x.c - ** - ** FM3 system initialization functions - ** All adjustments can be done in belonging header file. - ** - ** History: - ** 2011-07-07 V1.0 MWi original version - ******************************************************************************/ - -/** - ****************************************************************************** - ** System Clock Frequency (Core Clock) Variable according CMSIS - ******************************************************************************/ -uint32_t SystemCoreClock = __HCLK; - -/** - ****************************************************************************** - ** \brief Update the System Core Clock with current core Clock retrieved from - ** cpu registers. - ** \param none - ** \return none - ******************************************************************************/ -void SystemCoreClockUpdate (void) { - uint32_t masterClk; - uint32_t u32RegisterRead; // Workaround variable for MISRA C rule conformance - - switch ((FM3_CRG->SCM_CTL >> 5) & 0x07) { - case 0: /* internal High-speed Cr osc. */ - masterClk = __CLKHC; - break; - - case 1: /* external main osc. */ - masterClk = __CLKMO; - break; - - case 2: /* PLL clock */ - // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) - // violation: - // "Unordered accesses to a volatile location" - u32RegisterRead = (__CLKMO * (((FM3_CRG->PLL_CTL2) & 0x1F) + 1)); - masterClk = (u32RegisterRead / (((FM3_CRG->PLL_CTL1 >> 4) & 0x0F) + 1)); - break; - - case 4: /* internal Low-speed CR osc. */ - masterClk = __CLKLC; - break; - - case 5: /* external Sub osc. */ - masterClk = __CLKSO; - break; - - default: - masterClk = 0Ul; - break; - } - - switch (FM3_CRG->BSC_PSR & 0x07) { - case 0: - SystemCoreClock = masterClk; - break; - - case 1: - SystemCoreClock = masterClk / 2; - break; - - case 2: - SystemCoreClock = masterClk / 3; - break; - - case 3: - SystemCoreClock = masterClk / 4; - break; - - case 4: - SystemCoreClock = masterClk / 6; - break; - - case 5: - SystemCoreClock = masterClk /8; - break; - - case 6: - SystemCoreClock = masterClk /16; - break; - - default: - SystemCoreClock = 0Ul; - break; - } - -} - -/** - ****************************************************************************** - ** \brief Setup the microcontroller system. Initialize the System and update - ** the SystemCoreClock variable. - ** - ** \param none - ** \return none - ******************************************************************************/ -void SystemInit (void) { - - static uint32_t u32IoRegisterRead; // Workaround variable for MISRA C rule conformance - -#if (HWWD_DISABLE) /* HW Watchdog Disable */ - FM3_HWWDT->WDG_LCK = 0x1ACCE551; /* HW Watchdog Unlock */ - FM3_HWWDT->WDG_LCK = 0xE5331AAE; - FM3_HWWDT->WDG_CTL = 0; /* HW Watchdog stop */ -#endif - -#if (CLOCK_SETUP) /* Clock Setup */ - FM3_CRG->BSC_PSR = BSC_PSR_Val; /* set System Clock presacaler */ - FM3_CRG->APBC0_PSR = APBC0_PSR_Val; /* set APB0 presacaler */ - FM3_CRG->APBC1_PSR = APBC1_PSR_Val; /* set APB1 presacaler */ - FM3_CRG->APBC2_PSR = APBC2_PSR_Val; /* set APB2 presacaler */ - FM3_CRG->SWC_PSR = SWC_PSR_Val | (1UL << 7); /* set SW Watchdog presacaler */ - FM3_CRG->TTC_PSR = TTC_PSR_Val; /* set Trace Clock presacaler */ - - FM3_CRG->CSW_TMR = CSW_TMR_Val; /* set oscillation stabilization wait time */ - - if (SCM_CTL_Val & (1UL << 1)) { /* Main clock oscillator enabled ? */ - FM3_CRG->SCM_CTL |= (1UL << 1); /* enable main oscillator */ - while (!(FM3_CRG->SCM_STR & (1UL << 1))); /* wait for Main clock oscillation stable */ - } - - if (SCM_CTL_Val & (1UL << 3)) { /* Sub clock oscillator enabled ? */ - FM3_CRG->SCM_CTL |= (1UL << 3); /* enable sub oscillator */ - while (!(FM3_CRG->SCM_STR & (1UL << 3))); /* wait for Sub clock oscillation stable */ - } - - FM3_CRG->PSW_TMR = PSW_TMR_Val; /* set PLL stabilization wait time */ - FM3_CRG->PLL_CTL1 = PLL_CTL1_Val; /* set PLLM and PLLK */ - FM3_CRG->PLL_CTL2 = PLL_CTL2_Val; /* set PLLN */ - - if (SCM_CTL_Val & (1UL << 4)) { /* PLL enabled ? */ - FM3_CRG->SCM_CTL |= (1UL << 4); /* enable PLL */ - while (!(FM3_CRG->SCM_STR & (1UL << 4))); /* wait for PLL stable */ - } - - FM3_CRG->SCM_CTL |= (SCM_CTL_Val & 0xE0); /* Set Master Clock switch */ - - { - volatile unsigned int i; - for(i=0;i<200000;i++); - } - // Workaround for preventing MISRA C:1998 Rule 46 (MISRA C:2004 Rule 12.2) - // violations: - // "Unordered reads and writes to or from same location" and - // "Unordered accesses to a volatile location" - do - { - u32IoRegisterRead = (FM3_CRG->SCM_CTL & 0xE0); - }while ((FM3_CRG->SCM_STR & 0xE0) != u32IoRegisterRead); -#endif // (CLOCK_SETUP) - -#if (CR_TRIM_SETUP) - /* CR Trimming Data */ - if( 0x000003FF != (FM3_FLASH_IF->CRTRMM & 0x000003FF) ) - { - /* UnLock (MCR_FTRM) */ - FM3_CRTRIM->MCR_RLR = 0x1ACCE554; - /* Set MCR_FTRM */ - FM3_CRTRIM->MCR_FTRM = FM3_FLASH_IF->CRTRMM; - /* Lock (MCR_FTRM) */ - FM3_CRTRIM->MCR_RLR = 0x00000000; - } -#endif // (CR_TRIM_SETUP) -} - - - diff --git a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h b/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h deleted file mode 100644 index 819f3646e9..0000000000 --- a/bsp/mb9bf618s/CMSIS/DeviceSupport/fujitsu/mb9bf61x/system_mb9bf61x.h +++ /dev/null @@ -1,678 +0,0 @@ -/************************************************************************/ -/* (C) Fujitsu Semiconductor Europe GmbH (FSEU) */ -/* */ -/* The following software deliverable is intended for and must only be */ -/* used for reference and in an evaluation laboratory environment. */ -/* It is provided on an as-is basis without charge and is subject to */ -/* alterations. */ -/* It is the user's obligation to fully test the software in its */ -/* environment and to ensure proper functionality, qualification and */ -/* compliance with component specifications. */ -/* */ -/* In the event the software deliverable includes the use of open */ -/* source components, the provisions of the governing open source */ -/* license agreement shall apply with respect to such software */ -/* deliverable. */ -/* FSEU does not warrant that the deliverables do not infringe any */ -/* third party intellectual property right (IPR). In the event that */ -/* the deliverables infringe a third party IPR it is the sole */ -/* responsibility of the customer to obtain necessary licenses to */ -/* continue the usage of the deliverable. */ -/* */ -/* To the maximum extent permitted by applicable law FSEU disclaims all */ -/* warranties, whether express or implied, in particular, but not */ -/* limited to, warranties of merchantability and fitness for a */ -/* particular purpose for which the deliverable is not designated. */ -/* */ -/* To the maximum extent permitted by applicable law, FSEU's liability */ -/* is restricted to intentional misconduct and gross negligence. */ -/* FSEU is not liable for consequential damages. */ -/* */ -/* (V1.5) */ -/************************************************************************/ -/** \file system_mb9bf61x.h - ** - ** Headerfile for FM3 system parameters - ** - ** User clock definitions can be done for the following clock settings: - ** - CLOCK_SETUP : Execute the clock settings form the settings below in - ** SystemInit() - ** - __CLKMO : External clock frequency for main oscillion - ** - __CLKSO : External clock frequency for sub oscillion - ** - SCM_CTL : System Clock Mode Control Register - ** - BSC_PSR : Base Clock Prescaler Register - ** - APBC0_PSR : APB0 Prescaler Register - ** - APBC1_PSR : APB1 Prescaler Register - ** - APBC2_PSR : APB2 Prescaler Register - ** - SWC_PSR : Software Watchdog Clock Prescaler Register - ** - TTC_PSR : Trace Clock Prescaler Register - ** - CSW_TMR : Clock Stabilization Wait Time Register - ** - PSW_TMR : PLL Clock Stabilization Wait Time Setup Register - ** - PLL_CTL1 : PLL Control Register 1 - ** - PLL_CTL2 : PLL Control Register 2 - ** - ** The register settings are check for correct values of reserved bits. - ** Otherwise a preprocessor error is output and stops the build process. - ** Furthermore the 'master clock' is retrieved from the register settings - ** and the system clock (HCLK) is calculated from the Base Clock Prescaler - ** Register (BSC_PSR). This value is used for the global CMSIS variable - ** #SystemCoreClock. Also the absolute external, PLL and HCL freqeuncy is - ** is checked. Note that not all possible wrong setting are checked! The - ** user has to take care to fulfill the settings stated in the according - ** device's data sheet! - ** - ** User definition for Hardware Watchdog: - ** - HWWD_DISABLE : Disables Hardware Watchdog in SystemInit() - ** - ** User definition for CR Trimming: - ** - CR_TRIM_SETUP : Enables CR trimming in SystemInit() - ** - ** History: - ** 2011-05-16 V1.0 MWi original version - *****************************************************************************/ - -#ifndef _SYSTEM_MB9BF61X_H_ -#define _SYSTEM_MB9BF61X_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -/******************************************************************************/ -/* Include files */ -/******************************************************************************/ - -#include - -/******************************************************************************/ -/* Global pre-processor symbols/macros ('define') */ -/******************************************************************************/ - -/******************************************************************************/ -/* */ -/* START OF USER SETTINGS HERE */ -/* =========================== */ -/* */ -/* All lines with '<<<' can be set by user. */ -/* */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Clock Setup Enable - ** (USER SETTING) - ** - ** - 0 = No clock setup done by system_mb9xfxxx.c - ** - 1 = Clock setup done by system_mb9xfxxx.c - ******************************************************************************/ -#define CLOCK_SETUP 1 // <<< Define clock setup here - -/** - ****************************************************************************** - ** \brief External Main Clock Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKMO ( 4000000UL) // <<< External 4MHz Crystal - -/** - ****************************************************************************** - ** \brief External Sub Clock Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKSO ( 32768UL) // <<< External 32KHz Crystal - -/** - ****************************************************************************** - ** \brief System Clock Mode Control Register value definition - ** (USER SETTING) - ** - ** SCM_CTL - ** - ** Bit#7-5 : RCS[2:0] - ** - 0 = Internal high-speed CR oscillation (default) - ** - 1 = Main oscillation clock - ** - 2 = PLL oscillation clock - ** - 3 = (not allowed) - ** - 4 = Internal low-speed CR oscillation - ** - 5 = Sub clock oscillation - ** - 6 = (not allowed) - ** - 7 = (not allowed) - ** - ** Bit#4 : PLLE - ** - 0 = Disable PLL (default) - ** - 1 = Enable PLL - ** - ** Bit#3 : SOSCE - ** - 0 = Disable sub oscillation (default) - ** - 1 = Enable sub oscillation - ** - ** Bit#2 : (reserved) - ** - ** Bit#1 : MOSCE - ** - 0 = Disable main oscillation (default) - ** - 1 = Enable main oscillation - ** - ** Bit#0 : (reserved) - ******************************************************************************/ -#define SCM_CTL_Val 0x00000052 // <<< Define SCM_CTL here - -/** - ****************************************************************************** - ** \brief Base Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** BSC_PSR - ** - ** Bit#7-3 : (reserved) - ** - ** Bit#2-0 : BSR[2:0] - ** - 0 = HCLK = Master Clock - ** - 1 = HCLK = Master Clock / 2 - ** - 2 = HCLK = Master Clock / 3 - ** - 3 = HCLK = Master Clock / 4 - ** - 4 = HCLK = Master Clock / 6 - ** - 5 = HCLK = Master Clock / 8 - ** - 6 = HCLK = Master Clock / 16 - ** - 7 = (reserved) - ******************************************************************************/ -#define BSC_PSR_Val 0x00000000 // <<< Define BSC_PSR here - -/** - ****************************************************************************** - ** \brief APB0 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC0_PSR - ** - ** Bit#7-2 : (reserved) - ** - ** Bit#1-0 : BSR[2:0] - ** - 0 = PCLK0 = HCLK - ** - 1 = PCLK0 = HCLK / 2 - ** - 2 = PCLK0 = HCLK / 4 - ** - 3 = PCLK0 = HCLK / 8 - ******************************************************************************/ -#define APBC0_PSR_Val 0x00000001 // <<< Define APBC0_PSR here - -/** - ****************************************************************************** - ** \brief APB1 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC1_PSR - ** - ** Bit#7 : APBC1EN - ** - 0 = Disable PCLK1 output - ** - 1 = Enables PCLK1 (default) - ** - ** Bit#6-5 : (reserved) - ** - ** Bit#4 : APBC1RST - ** - 0 = APB1 bus reset, inactive (default) - ** - 1 = APB1 bus reset, active - ** - ** Bit#3-2 : (reserved) - ** - ** Bit#1-0 : APBC1[2:0] - ** - 0 = PCLK1 = HCLK - ** - 1 = PCLK1 = HCLK / 2 - ** - 2 = PCLK1 = HCLK / 4 - ** - 3 = PCLK1 = HCLK / 8 - ******************************************************************************/ -#define APBC1_PSR_Val 0x00000081 // <<< Define APBC1_PSR here - -/** - ****************************************************************************** - ** \brief APB2 Prescaler Register value definition - ** (USER SETTING) - ** - ** APBC2_PSR - ** - ** Bit#7 : APBC2EN - ** - 0 = Disable PCLK2 output - ** - 1 = Enables PCLK2 (default) - ** - ** Bit#6-5 : (reserved) - ** - ** Bit#4 : APBC2RST - ** - 0 = APB2 bus reset, inactive (default) - ** - 1 = APB2 bus reset, active - ** - ** Bit#3-2 : (reserved) - ** - ** Bit#1-0 : APBC2[1:0] - ** - 0 = PCLK2 = HCLK - ** - 1 = PCLK2 = HCLK / 2 - ** - 2 = PCLK2 = HCLK / 4 - ** - 3 = PCLK2 = HCLK / 8 - ******************************************************************************/ -#define APBC2_PSR_Val 0x00000081 // <<< Define APBC2_PSR here - -/** - ****************************************************************************** - ** \brief Software Watchdog Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** SWC_PSR - ** - ** Bit#7 : TESTB - ** - 0 = (not allowed) - ** - 1 = (always write "1" to this bit) - ** - ** Bit#6-2 : (reserved) - ** - ** Bit#1-0 : SWDS[2:0] - ** - 0 = SWDGOGCLK = PCLK0 - ** - 1 = SWDGOGCLK = PCLK0 / 2 - ** - 2 = SWDGOGCLK = PCLK0 / 4 - ** - 3 = SWDGOGCLK = PCLK0 / 8 - ******************************************************************************/ -#define SWC_PSR_Val 0x00000003 // <<< Define SWC_PSR here - -/** - ****************************************************************************** - ** \brief Trace Clock Prescaler Register value definition - ** (USER SETTING) - ** - ** TTC_PSR - ** - ** Bit#7-1 : (reserved) - ** - ** Bit#0 : TTC - ** - 0 = TPIUCLK = HCLK - ** - 1 = TPIUCLK = HCLK / 2 - ******************************************************************************/ -#define TTC_PSR_Val 0x00000000 // <<< Define TTC_PSR here - -/** - ****************************************************************************** - ** \brief Clock Stabilization Wait Time Register value definition - ** (USER SETTING) - ** - ** CSW_TMR - ** - ** Bit#7 : (reserved) - ** - ** Bit#6-4 : SOWT[2:0] - ** - 0 = ~10.3 ms (default) - ** - 1 = ~20.5 ms - ** - 2 = ~41 ms - ** - 3 = ~82 ms - ** - 4 = ~164 ms - ** - 5 = ~327 ms - ** - 6 = ~655 ms - ** - 7 = ~1.31 s - ** - ** Bit#3-0 : MOWT[3:0] - ** - 0 = ~500 ns (default) - ** - 1 = ~8 us - ** - 2 = ~16 us - ** - 3 = ~32 us - ** - 4 = ~64 us - ** - 5 = ~128 us - ** - 6 = ~256 us - ** - 7 = ~512 us - ** - 8 = ~1.0 ms - ** - 9 = ~2.0 ms - ** - 10 = ~4.0 ms - ** - 11 = ~8.0 ms - ** - 12 = ~33.0 ms - ** - 13 = ~131 ms - ** - 14 = ~524 ms - ** - 15 = ~2.0 s - ******************************************************************************/ -#define CSW_TMR_Val 0x0000005C // <<< Define CSW_TMR here - -/** - ****************************************************************************** - ** \brief PLL Clock Stabilization Wait Time Setup Register value definition - ** (USER SETTING) - ** - ** PSW_TMR - ** - ** Bit#7-5 : (reserved) - ** - ** Bit#4 : PINC - ** - 0 = Selects CLKMO (main oscillation) (default) - ** - 1 = (setting diabled) - ** - ** Bit#3 : (reserved) - ** - ** Bit#2-0 : POWT[2:0] - ** - 0 = ~128 us (default) - ** - 1 = ~256 us - ** - 2 = ~512 us - ** - 3 = ~1.02 ms - ** - 4 = ~2.05 ms - ** - 5 = ~4.10 ms - ** - 6 = ~8.20 ms - ** - 7 = ~16.40 ms - ******************************************************************************/ -#define PSW_TMR_Val 0x00000000 // <<< Define PSW_TMR here - -/** - ****************************************************************************** - ** \brief PLL Control Register 1 value definition - ** (USER SETTING) - ** - ** PLL_CTL1 - ** - ** Bit#7-4 : PLLK[3:0] - ** - 0 = Division(PLLK) = 1/1 (default) - ** - 1 = Division(PLLK) = 1/2 - ** - 2 = Division(PLLK) = 1/3 - ** - . . . - ** - 15 = Division(PLLK) = 1/16 - ** - ** Bit#3-0 : PLLM[3:0] - ** - 0 = Division(PLLM) = 1/1 (default) - ** - 1 = Division(PLLM) = 1/2 - ** - 2 = Division(PLLM) = 1/3 - ** - . . . - ** - 15 = Division(PLLM) = 1/16 - ******************************************************************************/ -#define PLL_CTL1_Val 0x00000001 // <<< Define PLL_CTL1 here - -/** - ****************************************************************************** - ** \brief PLL Control Register 2 value definition - ** (USER SETTING) - ** - ** PLL_CTL2 - ** - ** Bit#7-6 : (reserved) - ** - ** Bit#5-0 : PLLN[5:0] - ** - 0 = Division(PLLN) = 1/1 (default) - ** - 1 = Division(PLLN) = 1/2 - ** - 2 = Division(PLLN) = 1/3 - ** - . . . - ** - 63 = Division(PLLN) = 1/64 - ******************************************************************************/ -#define PLL_CTL2_Val 0x00000023 // <<< Define PLL_CTL2 here - -/** - ****************************************************************************** - ** \brief Hardware Watchdog disable definition - ** (USER SETTING) - ** - ** - 0 = Hardware Watchdog enable - ** - 1 = Hardware Watchdog disable - ******************************************************************************/ -#define HWWD_DISABLE 1 // <<< Define HW Watach dog enable here - -/** - ****************************************************************************** - ** \brief Trimming CR - ** (USER SETTING) - ** - ** - 0 = CR is not trimmed at startup - ** - 1 = CR is trimmed at startup - ******************************************************************************/ -#define CR_TRIM_SETUP 1 // <<< Define CR trimming at startup enable here - - -/******************************************************************************/ -/* */ -/* END OF USER SETTINGS HERE */ -/* ========================= */ -/* */ -/******************************************************************************/ - -/******************************************************************************/ -/* Device dependent System Clock absolute maximum ranges */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Internal High-Speed CR Oscillator Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKHC ( 4000000UL) /* Internal 4MHz CR Oscillator */ - -/** - ****************************************************************************** - ** \brief Internal Low-Speed CR Oscillator Frequency (in Hz, [value]UL) - ** (USER SETTING) - ******************************************************************************/ -#define __CLKLC ( 100000UL) /* Internal 100KHz CR Oscillator */ - -/** - ****************************************************************************** - ** \brief Any case minimum Main Clock frequency (in Hz, [value]UL) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKMOMIN ( 4000000UL) - -/** - ****************************************************************************** - ** \brief Maximum Main Clock frequency using external clock - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKMOMAX ( 50000000UL) - -/** - ****************************************************************************** - ** \brief Any case minimum Sub Clock frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKSOMIN ( 32000UL) - -/** - ****************************************************************************** - ** \brief Maximum Sub Clock frequency using external clock - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __CLKSOMAX ( 100000UL) - -/** - ****************************************************************************** - ** \brief Absolute minimum PLL input frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKINMIN ( 4000000UL) - -/** - ****************************************************************************** - ** \brief Absolute maximum PLL input frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKINMAX ( 16000000UL) - -/** - ****************************************************************************** - ** \brief Absolute minimum PLL oscillation frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKMIN (200000000UL) - -/** - ****************************************************************************** - ** \brief Absolute maximum PLL oscillation frequency - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __PLLCLKMAX (300000000UL) - -/** - ****************************************************************************** - ** \brief Absolute maximum System Clock frequency (HCLK) - ** (DEVICE DEPENDENT SETTING) - ******************************************************************************/ -#define __HCLKMAX (144000000UL) - -/** - ****************************************************************************** - ** \brief Preprocessor macro for checking range (clock settings) - ******************************************************************************/ -#define CHECK_RANGE(val, min, max) ((val < min) || (val > max)) - -/** - ****************************************************************************** - ** \brief Preprocessor macro for checking bits with mask (clock settings) - ******************************************************************************/ -#define CHECK_RSVD(val, mask) (val & mask) - - -/******************************************************************************/ -/* Check register settings */ -/******************************************************************************/ -#if (CHECK_RSVD((SCM_CTL_Val), ~0x000000FA)) - #error "SCM_CTL: Invalid values of reserved bits!" -#endif - -#if ((SCM_CTL_Val & 0xE0) == 0x40) && ((SCM_CTL_Val & 0x10) != 0x10) - #error "SCM_CTL: CLKPLL is selected but PLL is not enabled!" -#endif - -#if (CHECK_RSVD((CSW_TMR_Val), ~0x0000007F)) - #error "CSW_TMR: Invalid values of reserved bits!" -#endif - -#if ((SCM_CTL_Val & 0x10)) /* if PLL is used */ - #if (CHECK_RSVD((PSW_TMR_val), ~0x00000007)) - #error "PSW_TMR: Invalid values of reserved bits!" - #endif - - #if (CHECK_RSVD((PLL_CTL1_Val), ~0x000000FF)) - #error "PLL_CTL1: Invalid values of reserved bits!" - #endif - - #if (CHECK_RSVD((PLL_CTL2_Val), ~0x0000003F)) - #error "PLL_CTL2: Invalid values of reserved bits!" - #endif -#endif - -#if (CHECK_RSVD((BSC_PSR_Val), ~0x00000007)) - #error "BSC_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC0_PSR_Val), ~0x00000003)) - #error "APBC0_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC1_PSR_Val), ~0x00000083)) - #error "APBC1_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((APBC2_PSR_Val), ~0x00000083)) - #error "APBC2_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((SWC_PSR_Val), ~0x00000003)) - #error "SWC_PSR: Invalid values of reserved bits!" -#endif - -#if (CHECK_RSVD((TTC_PSR_Val), ~0x00000001)) - #error "TTC_PSR: Invalid values of reserved bits!" -#endif - -/******************************************************************************/ -/* Define clocks with checking settings */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Calculate PLL K factor from settings - ******************************************************************************/ -#define __PLLK (((PLL_CTL1_Val >> 4) & 0x0F) + 1) - -/** - ****************************************************************************** - ** \brief Calculate PLL N factor from settings - ******************************************************************************/ -#define __PLLN (((PLL_CTL2_Val ) & 0x3F) + 1) - -/** - ****************************************************************************** - ** \brief Calculate PLL M factor from settings - ******************************************************************************/ -#define __PLLM (((PLL_CTL1_Val ) & 0x0F) + 1) - -/** - ****************************************************************************** - ** \brief Calculate PLL output frequency from settings - ******************************************************************************/ -#define __PLLCLK ((__CLKMO * __PLLN) / __PLLK) - -/******************************************************************************/ -/* Determine core clock frequency according to settings */ -/******************************************************************************/ - -/** - ****************************************************************************** - ** \brief Define Master Clock from settings - ******************************************************************************/ -#if (((SCM_CTL_Val >> 5) & 0x07) == 0) - #define __MASTERCLK (__CLKHC) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 1) - #define __MASTERCLK (__CLKMO) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 2) - #define __MASTERCLK (__PLLCLK) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 4) - #define __MASTERCLK (__CLKLC) -#elif (((SCM_CTL_Val >> 5) & 0x07) == 5) - #define __MASTERCLK (__CLKSO) -#else - #define __MASTERCLK (0UL) -#endif - -/** - ****************************************************************************** - ** \brief Define System Clock Frequency (Core Clock) from settings - ******************************************************************************/ -#if ((BSC_PSR_Val & 0x07) == 0) - #define __HCLK (__MASTERCLK / 1) -#elif ((BSC_PSR_Val & 0x07) == 1) - #define __HCLK (__MASTERCLK / 2) -#elif ((BSC_PSR_Val & 0x07) == 2) - #define __HCLK (__MASTERCLK / 3) -#elif ((BSC_PSR_Val & 0x07) == 3) - #define __HCLK (__MASTERCLK / 4) -#elif ((BSC_PSR_Val & 0x07) == 4) - #define __HCLK (__MASTERCLK / 6) -#elif ((BSC_PSR_Val & 0x07) == 5) - #define __HCLK (__MASTERCLK / 8) -#elif ((BSC_PSR_Val & 0x07) == 6) - #define __HCLK (__MASTERCLK /16) -#else - #define __HCLK (0UL) -#endif - -/******************************************************************************/ -/* HCLK range check */ -/******************************************************************************/ -#if (CHECK_RANGE(__CLKMO, __CLKMOMIN, __CLKMOMAX) != 0) - #error "Main Oscillator Clock (CLKMO) out of range!" -#endif - -#if (CHECK_RANGE(__CLKSO, __CLKSOMIN, __CLKSOMAX) != 0) - #error "Sub Oscillator Clock (CLKMO) out of range!" -#endif - -#if (CHECK_RANGE((__CLKMO / __PLLK), __PLLCLKINMIN, __PLLCLKINMAX) != 0) - #error "PLL input frequency out of range!" -#endif - -#if (CHECK_RANGE(((__CLKMO * __PLLN * __PLLM) / __PLLK), __PLLCLKMIN, __PLLCLKMAX) != 0) - #error "PLL oscillation frequency out of range!" -#endif - -#if (CHECK_RANGE(__HCLK, 0, __HCLKMAX) != 0) - #error "System Clock (HCLK) out of range!" -#endif - -/******************************************************************************/ -/* Global function prototypes ('extern', definition in C source) */ -/******************************************************************************/ - -extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock) - -extern void SystemInit (void); // Initialize the system - -extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable - -#ifdef __cplusplus -} -#endif - -#endif /* __SYSTEM_MB9BF61X_H */ diff --git a/bsp/mb9bf618s/CMSIS/Include/arm_common_tables.h b/bsp/mb9bf618s/CMSIS/Include/arm_common_tables.h deleted file mode 100644 index 7a59b5923e..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/arm_common_tables.h +++ /dev/null @@ -1,93 +0,0 @@ -/* ---------------------------------------------------------------------- -* Copyright (C) 2010-2013 ARM Limited. All rights reserved. -* -* $Date: 17. January 2013 -* $Revision: V1.4.1 -* -* Project: CMSIS DSP Library -* Title: arm_common_tables.h -* -* Description: This file has extern declaration for common tables like Bitreverse, reciprocal etc which are used across different functions -* -* Target Processor: Cortex-M4/Cortex-M3 -* -* 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 LIMITED 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 THE -* COPYRIGHT OWNER OR 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 _ARM_COMMON_TABLES_H -#define _ARM_COMMON_TABLES_H - -#include "arm_math.h" - -extern const uint16_t armBitRevTable[1024]; -extern const q15_t armRecipTableQ15[64]; -extern const q31_t armRecipTableQ31[64]; -extern const q31_t realCoefAQ31[1024]; -extern const q31_t realCoefBQ31[1024]; -extern const float32_t twiddleCoef_16[32]; -extern const float32_t twiddleCoef_32[64]; -extern const float32_t twiddleCoef_64[128]; -extern const float32_t twiddleCoef_128[256]; -extern const float32_t twiddleCoef_256[512]; -extern const float32_t twiddleCoef_512[1024]; -extern const float32_t twiddleCoef_1024[2048]; -extern const float32_t twiddleCoef_2048[4096]; -extern const float32_t twiddleCoef_4096[8192]; -#define twiddleCoef twiddleCoef_4096 -extern const q31_t twiddleCoefQ31[6144]; -extern const q15_t twiddleCoefQ15[6144]; -extern const float32_t twiddleCoef_rfft_32[32]; -extern const float32_t twiddleCoef_rfft_64[64]; -extern const float32_t twiddleCoef_rfft_128[128]; -extern const float32_t twiddleCoef_rfft_256[256]; -extern const float32_t twiddleCoef_rfft_512[512]; -extern const float32_t twiddleCoef_rfft_1024[1024]; -extern const float32_t twiddleCoef_rfft_2048[2048]; -extern const float32_t twiddleCoef_rfft_4096[4096]; - - -#define ARMBITREVINDEXTABLE__16_TABLE_LENGTH ((uint16_t)20 ) -#define ARMBITREVINDEXTABLE__32_TABLE_LENGTH ((uint16_t)48 ) -#define ARMBITREVINDEXTABLE__64_TABLE_LENGTH ((uint16_t)56 ) -#define ARMBITREVINDEXTABLE_128_TABLE_LENGTH ((uint16_t)208 ) -#define ARMBITREVINDEXTABLE_256_TABLE_LENGTH ((uint16_t)440 ) -#define ARMBITREVINDEXTABLE_512_TABLE_LENGTH ((uint16_t)448 ) -#define ARMBITREVINDEXTABLE1024_TABLE_LENGTH ((uint16_t)1800) -#define ARMBITREVINDEXTABLE2048_TABLE_LENGTH ((uint16_t)3808) -#define ARMBITREVINDEXTABLE4096_TABLE_LENGTH ((uint16_t)4032) - -extern const uint16_t armBitRevIndexTable16[ARMBITREVINDEXTABLE__16_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable32[ARMBITREVINDEXTABLE__32_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable64[ARMBITREVINDEXTABLE__64_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable128[ARMBITREVINDEXTABLE_128_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable256[ARMBITREVINDEXTABLE_256_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable512[ARMBITREVINDEXTABLE_512_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable1024[ARMBITREVINDEXTABLE1024_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable2048[ARMBITREVINDEXTABLE2048_TABLE_LENGTH]; -extern const uint16_t armBitRevIndexTable4096[ARMBITREVINDEXTABLE4096_TABLE_LENGTH]; - -#endif /* ARM_COMMON_TABLES_H */ diff --git a/bsp/mb9bf618s/CMSIS/Include/arm_const_structs.h b/bsp/mb9bf618s/CMSIS/Include/arm_const_structs.h deleted file mode 100644 index 8d7fac0f04..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/arm_const_structs.h +++ /dev/null @@ -1,85 +0,0 @@ -/* ---------------------------------------------------------------------- -* Copyright (C) 2010-2013 ARM Limited. All rights reserved. -* -* $Date: 17. January 2013 -* $Revision: V1.4.1 -* -* Project: CMSIS DSP Library -* Title: arm_const_structs.h -* -* Description: This file has constant structs that are initialized for -* user convenience. For example, some can be given as -* arguments to the arm_cfft_f32() function. -* -* Target Processor: Cortex-M4/Cortex-M3 -* -* 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 LIMITED 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 THE -* COPYRIGHT OWNER OR 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 _ARM_CONST_STRUCTS_H -#define _ARM_CONST_STRUCTS_H - -#include "arm_math.h" -#include "arm_common_tables.h" - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len16 = { - 16, twiddleCoef_16, armBitRevIndexTable16, ARMBITREVINDEXTABLE__16_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len32 = { - 32, twiddleCoef_32, armBitRevIndexTable32, ARMBITREVINDEXTABLE__32_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len64 = { - 64, twiddleCoef_64, armBitRevIndexTable64, ARMBITREVINDEXTABLE__64_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len128 = { - 128, twiddleCoef_128, armBitRevIndexTable128, ARMBITREVINDEXTABLE_128_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len256 = { - 256, twiddleCoef_256, armBitRevIndexTable256, ARMBITREVINDEXTABLE_256_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len512 = { - 512, twiddleCoef_512, armBitRevIndexTable512, ARMBITREVINDEXTABLE_512_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024 = { - 1024, twiddleCoef_1024, armBitRevIndexTable1024, ARMBITREVINDEXTABLE1024_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len2048 = { - 2048, twiddleCoef_2048, armBitRevIndexTable2048, ARMBITREVINDEXTABLE2048_TABLE_LENGTH - }; - - const arm_cfft_instance_f32 arm_cfft_sR_f32_len4096 = { - 4096, twiddleCoef_4096, armBitRevIndexTable4096, ARMBITREVINDEXTABLE4096_TABLE_LENGTH - }; - -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/arm_math.h b/bsp/mb9bf618s/CMSIS/Include/arm_math.h deleted file mode 100644 index 65304c127d..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/arm_math.h +++ /dev/null @@ -1,7306 +0,0 @@ -/* ---------------------------------------------------------------------- -* Copyright (C) 2010-2013 ARM Limited. All rights reserved. -* -* $Date: 17. January 2013 -* $Revision: V1.4.1 -* -* Project: CMSIS DSP Library -* Title: arm_math.h -* -* Description: Public header file for CMSIS DSP Library -* -* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0 -* -* 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 LIMITED 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 THE -* COPYRIGHT OWNER OR 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. - * -------------------------------------------------------------------- */ - -/** - \mainpage CMSIS DSP Software Library - * - * Introduction - * - * This user manual describes the CMSIS DSP software library, - * a suite of common signal processing functions for use on Cortex-M processor based devices. - * - * The library is divided into a number of functions each covering a specific category: - * - Basic math functions - * - Fast math functions - * - Complex math functions - * - Filters - * - Matrix functions - * - Transforms - * - Motor control functions - * - Statistical functions - * - Support functions - * - Interpolation functions - * - * The library has separate functions for operating on 8-bit integers, 16-bit integers, - * 32-bit integer and 32-bit floating-point values. - * - * Using the Library - * - * The library installer contains prebuilt versions of the libraries in the Lib folder. - * - arm_cortexM4lf_math.lib (Little endian and Floating Point Unit on Cortex-M4) - * - arm_cortexM4bf_math.lib (Big endian and Floating Point Unit on Cortex-M4) - * - arm_cortexM4l_math.lib (Little endian on Cortex-M4) - * - arm_cortexM4b_math.lib (Big endian on Cortex-M4) - * - arm_cortexM3l_math.lib (Little endian on Cortex-M3) - * - arm_cortexM3b_math.lib (Big endian on Cortex-M3) - * - arm_cortexM0l_math.lib (Little endian on Cortex-M0) - * - arm_cortexM0b_math.lib (Big endian on Cortex-M3) - * - * The library functions are declared in the public file arm_math.h which is placed in the Include folder. - * Simply include this file and link the appropriate library in the application and begin calling the library functions. The Library supports single - * public header file arm_math.h for Cortex-M4/M3/M0 with little endian and big endian. Same header file will be used for floating point unit(FPU) variants. - * Define the appropriate pre processor MACRO ARM_MATH_CM4 or ARM_MATH_CM3 or - * ARM_MATH_CM0 or ARM_MATH_CM0PLUS depending on the target processor in the application. - * - * Examples - * - * The library ships with a number of examples which demonstrate how to use the library functions. - * - * Toolchain Support - * - * The library has been developed and tested with MDK-ARM version 4.60. - * The library is being tested in GCC and IAR toolchains and updates on this activity will be made available shortly. - * - * Building the Library - * - * The library installer contains project files to re build libraries on MDK Tool chain in the CMSIS\\DSP_Lib\\Source\\ARM folder. - * - arm_cortexM0b_math.uvproj - * - arm_cortexM0l_math.uvproj - * - arm_cortexM3b_math.uvproj - * - arm_cortexM3l_math.uvproj - * - arm_cortexM4b_math.uvproj - * - arm_cortexM4l_math.uvproj - * - arm_cortexM4bf_math.uvproj - * - arm_cortexM4lf_math.uvproj - * - * - * The project can be built by opening the appropriate project in MDK-ARM 4.60 chain and defining the optional pre processor MACROs detailed above. - * - * Pre-processor Macros - * - * Each library project have differant pre-processor macros. - * - * - UNALIGNED_SUPPORT_DISABLE: - * - * Define macro UNALIGNED_SUPPORT_DISABLE, If the silicon does not support unaligned memory access - * - * - ARM_MATH_BIG_ENDIAN: - * - * Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets. - * - * - ARM_MATH_MATRIX_CHECK: - * - * Define macro ARM_MATH_MATRIX_CHECK for checking on the input and output sizes of matrices - * - * - ARM_MATH_ROUNDING: - * - * Define macro ARM_MATH_ROUNDING for rounding on support functions - * - * - ARM_MATH_CMx: - * - * Define macro ARM_MATH_CM4 for building the library on Cortex-M4 target, ARM_MATH_CM3 for building library on Cortex-M3 target - * and ARM_MATH_CM0 for building library on cortex-M0 target, ARM_MATH_CM0PLUS for building library on cortex-M0+ target. - * - * - __FPU_PRESENT: - * - * Initialize macro __FPU_PRESENT = 1 when building on FPU supported Targets. Enable this macro for M4bf and M4lf libraries - * - * Copyright Notice - * - * Copyright (C) 2010-2013 ARM Limited. All rights reserved. - */ - - -/** - * @defgroup groupMath Basic Math Functions - */ - -/** - * @defgroup groupFastMath Fast Math Functions - * This set of functions provides a fast approximation to sine, cosine, and square root. - * As compared to most of the other functions in the CMSIS math library, the fast math functions - * operate on individual values and not arrays. - * There are separate functions for Q15, Q31, and floating-point data. - * - */ - -/** - * @defgroup groupCmplxMath Complex Math Functions - * This set of functions operates on complex data vectors. - * The data in the complex arrays is stored in an interleaved fashion - * (real, imag, real, imag, ...). - * In the API functions, the number of samples in a complex array refers - * to the number of complex values; the array contains twice this number of - * real values. - */ - -/** - * @defgroup groupFilters Filtering Functions - */ - -/** - * @defgroup groupMatrix Matrix Functions - * - * This set of functions provides basic matrix math operations. - * The functions operate on matrix data structures. For example, - * the type - * definition for the floating-point matrix structure is shown - * below: - *
- *     typedef struct
- *     {
- *       uint16_t numRows;     // number of rows of the matrix.
- *       uint16_t numCols;     // number of columns of the matrix.
- *       float32_t *pData;     // points to the data of the matrix.
- *     } arm_matrix_instance_f32;
- * 
- * There are similar definitions for Q15 and Q31 data types. - * - * The structure specifies the size of the matrix and then points to - * an array of data. The array is of size numRows X numCols - * and the values are arranged in row order. That is, the - * matrix element (i, j) is stored at: - *
- *     pData[i*numCols + j]
- * 
- * - * \par Init Functions - * There is an associated initialization function for each type of matrix - * data structure. - * The initialization function sets the values of the internal structure fields. - * Refer to the function arm_mat_init_f32(), arm_mat_init_q31() - * and arm_mat_init_q15() for floating-point, Q31 and Q15 types, respectively. - * - * \par - * Use of the initialization function is optional. However, if initialization function is used - * then the instance structure cannot be placed into a const data section. - * To place the instance structure in a const data - * section, manually initialize the data structure. For example: - *
- * arm_matrix_instance_f32 S = {nRows, nColumns, pData};
- * arm_matrix_instance_q31 S = {nRows, nColumns, pData};
- * arm_matrix_instance_q15 S = {nRows, nColumns, pData};
- * 
- * where nRows specifies the number of rows, nColumns - * specifies the number of columns, and pData points to the - * data array. - * - * \par Size Checking - * By default all of the matrix functions perform size checking on the input and - * output matrices. For example, the matrix addition function verifies that the - * two input matrices and the output matrix all have the same number of rows and - * columns. If the size check fails the functions return: - *
- *     ARM_MATH_SIZE_MISMATCH
- * 
- * Otherwise the functions return - *
- *     ARM_MATH_SUCCESS
- * 
- * There is some overhead associated with this matrix size checking. - * The matrix size checking is enabled via the \#define - *
- *     ARM_MATH_MATRIX_CHECK
- * 
- * within the library project settings. By default this macro is defined - * and size checking is enabled. By changing the project settings and - * undefining this macro size checking is eliminated and the functions - * run a bit faster. With size checking disabled the functions always - * return ARM_MATH_SUCCESS. - */ - -/** - * @defgroup groupTransforms Transform Functions - */ - -/** - * @defgroup groupController Controller Functions - */ - -/** - * @defgroup groupStats Statistics Functions - */ -/** - * @defgroup groupSupport Support Functions - */ - -/** - * @defgroup groupInterpolation Interpolation Functions - * These functions perform 1- and 2-dimensional interpolation of data. - * Linear interpolation is used for 1-dimensional data and - * bilinear interpolation is used for 2-dimensional data. - */ - -/** - * @defgroup groupExamples Examples - */ -#ifndef _ARM_MATH_H -#define _ARM_MATH_H - -#define __CMSIS_GENERIC /* disable NVIC and Systick functions */ - -#if defined (ARM_MATH_CM4) -#include "core_cm4.h" -#elif defined (ARM_MATH_CM3) -#include "core_cm3.h" -#elif defined (ARM_MATH_CM0) -#include "core_cm0.h" -#define ARM_MATH_CM0_FAMILY -#elif defined (ARM_MATH_CM0PLUS) -#include "core_cm0plus.h" -#define ARM_MATH_CM0_FAMILY -#else -#include "ARMCM4.h" -#warning "Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4....." -#endif - -#undef __CMSIS_GENERIC /* enable NVIC and Systick functions */ -#include "string.h" -#include "math.h" -#ifdef __cplusplus -extern "C" -{ -#endif - - - /** - * @brief Macros required for reciprocal calculation in Normalized LMS - */ - -#define DELTA_Q31 (0x100) -#define DELTA_Q15 0x5 -#define INDEX_MASK 0x0000003F -#ifndef PI -#define PI 3.14159265358979f -#endif - - /** - * @brief Macros required for SINE and COSINE Fast math approximations - */ - -#define TABLE_SIZE 256 -#define TABLE_SPACING_Q31 0x800000 -#define TABLE_SPACING_Q15 0x80 - - /** - * @brief Macros required for SINE and COSINE Controller functions - */ - /* 1.31(q31) Fixed value of 2/360 */ - /* -1 to +1 is divided into 360 values so total spacing is (2/360) */ -#define INPUT_SPACING 0xB60B61 - - /** - * @brief Macro for Unaligned Support - */ -#ifndef UNALIGNED_SUPPORT_DISABLE - #define ALIGN4 -#else - #if defined (__GNUC__) - #define ALIGN4 __attribute__((aligned(4))) - #else - #define ALIGN4 __align(4) - #endif -#endif /* #ifndef UNALIGNED_SUPPORT_DISABLE */ - - /** - * @brief Error status returned by some functions in the library. - */ - - typedef enum - { - ARM_MATH_SUCCESS = 0, /**< No error */ - ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */ - ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */ - ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */ - ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */ - ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */ - ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */ - } arm_status; - - /** - * @brief 8-bit fractional data type in 1.7 format. - */ - typedef int8_t q7_t; - - /** - * @brief 16-bit fractional data type in 1.15 format. - */ - typedef int16_t q15_t; - - /** - * @brief 32-bit fractional data type in 1.31 format. - */ - typedef int32_t q31_t; - - /** - * @brief 64-bit fractional data type in 1.63 format. - */ - typedef int64_t q63_t; - - /** - * @brief 32-bit floating-point type definition. - */ - typedef float float32_t; - - /** - * @brief 64-bit floating-point type definition. - */ - typedef double float64_t; - - /** - * @brief definition to read/write two 16 bit values. - */ -#if defined __CC_ARM -#define __SIMD32_TYPE int32_t __packed -#define CMSIS_UNUSED __attribute__((unused)) -#elif defined __ICCARM__ -#define CMSIS_UNUSED -#define __SIMD32_TYPE int32_t __packed -#elif defined __GNUC__ -#define __SIMD32_TYPE int32_t -#define CMSIS_UNUSED __attribute__((unused)) -#else -#error Unknown compiler -#endif - -#define __SIMD32(addr) (*(__SIMD32_TYPE **) & (addr)) -#define __SIMD32_CONST(addr) ((__SIMD32_TYPE *)(addr)) - -#define _SIMD32_OFFSET(addr) (*(__SIMD32_TYPE *) (addr)) - -#define __SIMD64(addr) (*(int64_t **) & (addr)) - -#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0_FAMILY) - /** - * @brief definition to pack two 16 bit values. - */ -#define __PKHBT(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0x0000FFFF) | \ - (((int32_t)(ARG2) << ARG3) & (int32_t)0xFFFF0000) ) -#define __PKHTB(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0xFFFF0000) | \ - (((int32_t)(ARG2) >> ARG3) & (int32_t)0x0000FFFF) ) - -#endif - - - /** - * @brief definition to pack four 8 bit values. - */ -#ifndef ARM_MATH_BIG_ENDIAN - -#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v0) << 0) & (int32_t)0x000000FF) | \ - (((int32_t)(v1) << 8) & (int32_t)0x0000FF00) | \ - (((int32_t)(v2) << 16) & (int32_t)0x00FF0000) | \ - (((int32_t)(v3) << 24) & (int32_t)0xFF000000) ) -#else - -#define __PACKq7(v0,v1,v2,v3) ( (((int32_t)(v3) << 0) & (int32_t)0x000000FF) | \ - (((int32_t)(v2) << 8) & (int32_t)0x0000FF00) | \ - (((int32_t)(v1) << 16) & (int32_t)0x00FF0000) | \ - (((int32_t)(v0) << 24) & (int32_t)0xFF000000) ) - -#endif - - - /** - * @brief Clips Q63 to Q31 values. - */ - static __INLINE q31_t clip_q63_to_q31( - q63_t x) - { - return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? - ((0x7FFFFFFF ^ ((q31_t) (x >> 63)))) : (q31_t) x; - } - - /** - * @brief Clips Q63 to Q15 values. - */ - static __INLINE q15_t clip_q63_to_q15( - q63_t x) - { - return ((q31_t) (x >> 32) != ((q31_t) x >> 31)) ? - ((0x7FFF ^ ((q15_t) (x >> 63)))) : (q15_t) (x >> 15); - } - - /** - * @brief Clips Q31 to Q7 values. - */ - static __INLINE q7_t clip_q31_to_q7( - q31_t x) - { - return ((q31_t) (x >> 24) != ((q31_t) x >> 23)) ? - ((0x7F ^ ((q7_t) (x >> 31)))) : (q7_t) x; - } - - /** - * @brief Clips Q31 to Q15 values. - */ - static __INLINE q15_t clip_q31_to_q15( - q31_t x) - { - return ((q31_t) (x >> 16) != ((q31_t) x >> 15)) ? - ((0x7FFF ^ ((q15_t) (x >> 31)))) : (q15_t) x; - } - - /** - * @brief Multiplies 32 X 64 and returns 32 bit result in 2.30 format. - */ - - static __INLINE q63_t mult32x64( - q63_t x, - q31_t y) - { - return ((((q63_t) (x & 0x00000000FFFFFFFF) * y) >> 32) + - (((q63_t) (x >> 32) * y))); - } - - -#if defined (ARM_MATH_CM0_FAMILY) && defined ( __CC_ARM ) -#define __CLZ __clz -#endif - -#if defined (ARM_MATH_CM0_FAMILY) && ((defined (__ICCARM__)) ||(defined (__GNUC__)) || defined (__TASKING__) ) - - static __INLINE uint32_t __CLZ( - q31_t data); - - - static __INLINE uint32_t __CLZ( - q31_t data) - { - uint32_t count = 0; - uint32_t mask = 0x80000000; - - while((data & mask) == 0) - { - count += 1u; - mask = mask >> 1u; - } - - return (count); - - } - -#endif - - /** - * @brief Function to Calculates 1/in (reciprocal) value of Q31 Data type. - */ - - static __INLINE uint32_t arm_recip_q31( - q31_t in, - q31_t * dst, - q31_t * pRecipTable) - { - - uint32_t out, tempVal; - uint32_t index, i; - uint32_t signBits; - - if(in > 0) - { - signBits = __CLZ(in) - 1; - } - else - { - signBits = __CLZ(-in) - 1; - } - - /* Convert input sample to 1.31 format */ - in = in << signBits; - - /* calculation of index for initial approximated Val */ - index = (uint32_t) (in >> 24u); - index = (index & INDEX_MASK); - - /* 1.31 with exp 1 */ - out = pRecipTable[index]; - - /* calculation of reciprocal value */ - /* running approximation for two iterations */ - for (i = 0u; i < 2u; i++) - { - tempVal = (q31_t) (((q63_t) in * out) >> 31u); - tempVal = 0x7FFFFFFF - tempVal; - /* 1.31 with exp 1 */ - //out = (q31_t) (((q63_t) out * tempVal) >> 30u); - out = (q31_t) clip_q63_to_q31(((q63_t) out * tempVal) >> 30u); - } - - /* write output */ - *dst = out; - - /* return num of signbits of out = 1/in value */ - return (signBits + 1u); - - } - - /** - * @brief Function to Calculates 1/in (reciprocal) value of Q15 Data type. - */ - static __INLINE uint32_t arm_recip_q15( - q15_t in, - q15_t * dst, - q15_t * pRecipTable) - { - - uint32_t out = 0, tempVal = 0; - uint32_t index = 0, i = 0; - uint32_t signBits = 0; - - if(in > 0) - { - signBits = __CLZ(in) - 17; - } - else - { - signBits = __CLZ(-in) - 17; - } - - /* Convert input sample to 1.15 format */ - in = in << signBits; - - /* calculation of index for initial approximated Val */ - index = in >> 8; - index = (index & INDEX_MASK); - - /* 1.15 with exp 1 */ - out = pRecipTable[index]; - - /* calculation of reciprocal value */ - /* running approximation for two iterations */ - for (i = 0; i < 2; i++) - { - tempVal = (q15_t) (((q31_t) in * out) >> 15); - tempVal = 0x7FFF - tempVal; - /* 1.15 with exp 1 */ - out = (q15_t) (((q31_t) out * tempVal) >> 14); - } - - /* write output */ - *dst = out; - - /* return num of signbits of out = 1/in value */ - return (signBits + 1); - - } - - - /* - * @brief C custom defined intrinisic function for only M0 processors - */ -#if defined(ARM_MATH_CM0_FAMILY) - - static __INLINE q31_t __SSAT( - q31_t x, - uint32_t y) - { - int32_t posMax, negMin; - uint32_t i; - - posMax = 1; - for (i = 0; i < (y - 1); i++) - { - posMax = posMax * 2; - } - - if(x > 0) - { - posMax = (posMax - 1); - - if(x > posMax) - { - x = posMax; - } - } - else - { - negMin = -posMax; - - if(x < negMin) - { - x = negMin; - } - } - return (x); - - - } - -#endif /* end of ARM_MATH_CM0_FAMILY */ - - - - /* - * @brief C custom defined intrinsic function for M3 and M0 processors - */ -#if defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0_FAMILY) - - /* - * @brief C custom defined QADD8 for M3 and M0 processors - */ - static __INLINE q31_t __QADD8( - q31_t x, - q31_t y) - { - - q31_t sum; - q7_t r, s, t, u; - - r = (q7_t) x; - s = (q7_t) y; - - r = __SSAT((q31_t) (r + s), 8); - s = __SSAT(((q31_t) (((x << 16) >> 24) + ((y << 16) >> 24))), 8); - t = __SSAT(((q31_t) (((x << 8) >> 24) + ((y << 8) >> 24))), 8); - u = __SSAT(((q31_t) ((x >> 24) + (y >> 24))), 8); - - sum = - (((q31_t) u << 24) & 0xFF000000) | (((q31_t) t << 16) & 0x00FF0000) | - (((q31_t) s << 8) & 0x0000FF00) | (r & 0x000000FF); - - return sum; - - } - - /* - * @brief C custom defined QSUB8 for M3 and M0 processors - */ - static __INLINE q31_t __QSUB8( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s, t, u; - - r = (q7_t) x; - s = (q7_t) y; - - r = __SSAT((r - s), 8); - s = __SSAT(((q31_t) (((x << 16) >> 24) - ((y << 16) >> 24))), 8) << 8; - t = __SSAT(((q31_t) (((x << 8) >> 24) - ((y << 8) >> 24))), 8) << 16; - u = __SSAT(((q31_t) ((x >> 24) - (y >> 24))), 8) << 24; - - sum = - (u & 0xFF000000) | (t & 0x00FF0000) | (s & 0x0000FF00) | (r & - 0x000000FF); - - return sum; - } - - /* - * @brief C custom defined QADD16 for M3 and M0 processors - */ - - /* - * @brief C custom defined QADD16 for M3 and M0 processors - */ - static __INLINE q31_t __QADD16( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = __SSAT(r + s, 16); - s = __SSAT(((q31_t) ((x >> 16) + (y >> 16))), 16) << 16; - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - - } - - /* - * @brief C custom defined SHADD16 for M3 and M0 processors - */ - static __INLINE q31_t __SHADD16( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) + (s >> 1)); - s = ((q31_t) ((x >> 17) + (y >> 17))) << 16; - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - - } - - /* - * @brief C custom defined QSUB16 for M3 and M0 processors - */ - static __INLINE q31_t __QSUB16( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = __SSAT(r - s, 16); - s = __SSAT(((q31_t) ((x >> 16) - (y >> 16))), 16) << 16; - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - } - - /* - * @brief C custom defined SHSUB16 for M3 and M0 processors - */ - static __INLINE q31_t __SHSUB16( - q31_t x, - q31_t y) - { - - q31_t diff; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) - (s >> 1)); - s = (((x >> 17) - (y >> 17)) << 16); - - diff = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return diff; - } - - /* - * @brief C custom defined QASX for M3 and M0 processors - */ - static __INLINE q31_t __QASX( - q31_t x, - q31_t y) - { - - q31_t sum = 0; - - sum = - ((sum + - clip_q31_to_q15((q31_t) ((short) (x >> 16) + (short) y))) << 16) + - clip_q31_to_q15((q31_t) ((short) x - (short) (y >> 16))); - - return sum; - } - - /* - * @brief C custom defined SHASX for M3 and M0 processors - */ - static __INLINE q31_t __SHASX( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) - (y >> 17)); - s = (((x >> 17) + (s >> 1)) << 16); - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - } - - - /* - * @brief C custom defined QSAX for M3 and M0 processors - */ - static __INLINE q31_t __QSAX( - q31_t x, - q31_t y) - { - - q31_t sum = 0; - - sum = - ((sum + - clip_q31_to_q15((q31_t) ((short) (x >> 16) - (short) y))) << 16) + - clip_q31_to_q15((q31_t) ((short) x + (short) (y >> 16))); - - return sum; - } - - /* - * @brief C custom defined SHSAX for M3 and M0 processors - */ - static __INLINE q31_t __SHSAX( - q31_t x, - q31_t y) - { - - q31_t sum; - q31_t r, s; - - r = (short) x; - s = (short) y; - - r = ((r >> 1) + (y >> 17)); - s = (((x >> 17) - (s >> 1)) << 16); - - sum = (s & 0xFFFF0000) | (r & 0x0000FFFF); - - return sum; - } - - /* - * @brief C custom defined SMUSDX for M3 and M0 processors - */ - static __INLINE q31_t __SMUSDX( - q31_t x, - q31_t y) - { - - return ((q31_t) (((short) x * (short) (y >> 16)) - - ((short) (x >> 16) * (short) y))); - } - - /* - * @brief C custom defined SMUADX for M3 and M0 processors - */ - static __INLINE q31_t __SMUADX( - q31_t x, - q31_t y) - { - - return ((q31_t) (((short) x * (short) (y >> 16)) + - ((short) (x >> 16) * (short) y))); - } - - /* - * @brief C custom defined QADD for M3 and M0 processors - */ - static __INLINE q31_t __QADD( - q31_t x, - q31_t y) - { - return clip_q63_to_q31((q63_t) x + y); - } - - /* - * @brief C custom defined QSUB for M3 and M0 processors - */ - static __INLINE q31_t __QSUB( - q31_t x, - q31_t y) - { - return clip_q63_to_q31((q63_t) x - y); - } - - /* - * @brief C custom defined SMLAD for M3 and M0 processors - */ - static __INLINE q31_t __SMLAD( - q31_t x, - q31_t y, - q31_t sum) - { - - return (sum + ((short) (x >> 16) * (short) (y >> 16)) + - ((short) x * (short) y)); - } - - /* - * @brief C custom defined SMLADX for M3 and M0 processors - */ - static __INLINE q31_t __SMLADX( - q31_t x, - q31_t y, - q31_t sum) - { - - return (sum + ((short) (x >> 16) * (short) (y)) + - ((short) x * (short) (y >> 16))); - } - - /* - * @brief C custom defined SMLSDX for M3 and M0 processors - */ - static __INLINE q31_t __SMLSDX( - q31_t x, - q31_t y, - q31_t sum) - { - - return (sum - ((short) (x >> 16) * (short) (y)) + - ((short) x * (short) (y >> 16))); - } - - /* - * @brief C custom defined SMLALD for M3 and M0 processors - */ - static __INLINE q63_t __SMLALD( - q31_t x, - q31_t y, - q63_t sum) - { - - return (sum + ((short) (x >> 16) * (short) (y >> 16)) + - ((short) x * (short) y)); - } - - /* - * @brief C custom defined SMLALDX for M3 and M0 processors - */ - static __INLINE q63_t __SMLALDX( - q31_t x, - q31_t y, - q63_t sum) - { - - return (sum + ((short) (x >> 16) * (short) y)) + - ((short) x * (short) (y >> 16)); - } - - /* - * @brief C custom defined SMUAD for M3 and M0 processors - */ - static __INLINE q31_t __SMUAD( - q31_t x, - q31_t y) - { - - return (((x >> 16) * (y >> 16)) + - (((x << 16) >> 16) * ((y << 16) >> 16))); - } - - /* - * @brief C custom defined SMUSD for M3 and M0 processors - */ - static __INLINE q31_t __SMUSD( - q31_t x, - q31_t y) - { - - return (-((x >> 16) * (y >> 16)) + - (((x << 16) >> 16) * ((y << 16) >> 16))); - } - - - /* - * @brief C custom defined SXTB16 for M3 and M0 processors - */ - static __INLINE q31_t __SXTB16( - q31_t x) - { - - return ((((x << 24) >> 24) & 0x0000FFFF) | - (((x << 8) >> 8) & 0xFFFF0000)); - } - - -#endif /* defined (ARM_MATH_CM3) || defined (ARM_MATH_CM0_FAMILY) */ - - - /** - * @brief Instance structure for the Q7 FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - q7_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - } arm_fir_instance_q7; - - /** - * @brief Instance structure for the Q15 FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - } arm_fir_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - } arm_fir_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of filter coefficients in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - } arm_fir_instance_f32; - - - /** - * @brief Processing function for the Q7 FIR filter. - * @param[in] *S points to an instance of the Q7 FIR filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_q7( - const arm_fir_instance_q7 * S, - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q7 FIR filter. - * @param[in,out] *S points to an instance of the Q7 FIR structure. - * @param[in] numTaps Number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed. - * @return none - */ - void arm_fir_init_q7( - arm_fir_instance_q7 * S, - uint16_t numTaps, - q7_t * pCoeffs, - q7_t * pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q15 FIR filter. - * @param[in] *S points to an instance of the Q15 FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_q15( - const arm_fir_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the fast Q15 FIR filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q15 FIR filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_fast_q15( - const arm_fir_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q15 FIR filter. - * @param[in,out] *S points to an instance of the Q15 FIR filter structure. - * @param[in] numTaps Number of filter coefficients in the filter. Must be even and greater than or equal to 4. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed at a time. - * @return The function returns ARM_MATH_SUCCESS if initialization was successful or ARM_MATH_ARGUMENT_ERROR if - * numTaps is not a supported value. - */ - - arm_status arm_fir_init_q15( - arm_fir_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR filter. - * @param[in] *S points to an instance of the Q31 FIR filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_q31( - const arm_fir_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the fast Q31 FIR filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q31 FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_fast_q31( - const arm_fir_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 FIR filter. - * @param[in,out] *S points to an instance of the Q31 FIR structure. - * @param[in] numTaps Number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed at a time. - * @return none. - */ - void arm_fir_init_q31( - arm_fir_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the floating-point FIR filter. - * @param[in] *S points to an instance of the floating-point FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_f32( - const arm_fir_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point FIR filter. - * @param[in,out] *S points to an instance of the floating-point FIR filter structure. - * @param[in] numTaps Number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of samples that are processed at a time. - * @return none. - */ - void arm_fir_init_f32( - arm_fir_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q15 Biquad cascade filter. - */ - typedef struct - { - int8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - q15_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ - q15_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ - int8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ - - } arm_biquad_casd_df1_inst_q15; - - - /** - * @brief Instance structure for the Q31 Biquad cascade filter. - */ - typedef struct - { - uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - q31_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ - q31_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ - uint8_t postShift; /**< Additional shift, in bits, applied to each output sample. */ - - } arm_biquad_casd_df1_inst_q31; - - /** - * @brief Instance structure for the floating-point Biquad cascade filter. - */ - typedef struct - { - uint32_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - float32_t *pState; /**< Points to the array of state coefficients. The array is of length 4*numStages. */ - float32_t *pCoeffs; /**< Points to the array of coefficients. The array is of length 5*numStages. */ - - - } arm_biquad_casd_df1_inst_f32; - - - - /** - * @brief Processing function for the Q15 Biquad cascade filter. - * @param[in] *S points to an instance of the Q15 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_q15( - const arm_biquad_casd_df1_inst_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q15 Biquad cascade filter. - * @param[in,out] *S points to an instance of the Q15 Biquad cascade structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format - * @return none - */ - - void arm_biquad_cascade_df1_init_q15( - arm_biquad_casd_df1_inst_q15 * S, - uint8_t numStages, - q15_t * pCoeffs, - q15_t * pState, - int8_t postShift); - - - /** - * @brief Fast but less precise processing function for the Q15 Biquad cascade filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q15 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_fast_q15( - const arm_biquad_casd_df1_inst_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q31 Biquad cascade filter - * @param[in] *S points to an instance of the Q31 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_q31( - const arm_biquad_casd_df1_inst_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Fast but less precise processing function for the Q31 Biquad cascade filter for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q31 Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_fast_q31( - const arm_biquad_casd_df1_inst_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 Biquad cascade filter. - * @param[in,out] *S points to an instance of the Q31 Biquad cascade structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] postShift Shift to be applied to the output. Varies according to the coefficients format - * @return none - */ - - void arm_biquad_cascade_df1_init_q31( - arm_biquad_casd_df1_inst_q31 * S, - uint8_t numStages, - q31_t * pCoeffs, - q31_t * pState, - int8_t postShift); - - /** - * @brief Processing function for the floating-point Biquad cascade filter. - * @param[in] *S points to an instance of the floating-point Biquad cascade structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df1_f32( - const arm_biquad_casd_df1_inst_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point Biquad cascade filter. - * @param[in,out] *S points to an instance of the floating-point Biquad cascade structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @return none - */ - - void arm_biquad_cascade_df1_init_f32( - arm_biquad_casd_df1_inst_f32 * S, - uint8_t numStages, - float32_t * pCoeffs, - float32_t * pState); - - - /** - * @brief Instance structure for the floating-point matrix structure. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows of the matrix. */ - uint16_t numCols; /**< number of columns of the matrix. */ - float32_t *pData; /**< points to the data of the matrix. */ - } arm_matrix_instance_f32; - - /** - * @brief Instance structure for the Q15 matrix structure. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows of the matrix. */ - uint16_t numCols; /**< number of columns of the matrix. */ - q15_t *pData; /**< points to the data of the matrix. */ - - } arm_matrix_instance_q15; - - /** - * @brief Instance structure for the Q31 matrix structure. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows of the matrix. */ - uint16_t numCols; /**< number of columns of the matrix. */ - q31_t *pData; /**< points to the data of the matrix. */ - - } arm_matrix_instance_q31; - - - - /** - * @brief Floating-point matrix addition. - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_add_f32( - const arm_matrix_instance_f32 * pSrcA, - const arm_matrix_instance_f32 * pSrcB, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix addition. - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_add_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix addition. - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_add_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Floating-point matrix transpose. - * @param[in] *pSrc points to the input matrix - * @param[out] *pDst points to the output matrix - * @return The function returns either ARM_MATH_SIZE_MISMATCH - * or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_trans_f32( - const arm_matrix_instance_f32 * pSrc, - arm_matrix_instance_f32 * pDst); - - - /** - * @brief Q15 matrix transpose. - * @param[in] *pSrc points to the input matrix - * @param[out] *pDst points to the output matrix - * @return The function returns either ARM_MATH_SIZE_MISMATCH - * or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_trans_q15( - const arm_matrix_instance_q15 * pSrc, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix transpose. - * @param[in] *pSrc points to the input matrix - * @param[out] *pDst points to the output matrix - * @return The function returns either ARM_MATH_SIZE_MISMATCH - * or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_trans_q31( - const arm_matrix_instance_q31 * pSrc, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Floating-point matrix multiplication - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_f32( - const arm_matrix_instance_f32 * pSrcA, - const arm_matrix_instance_f32 * pSrcB, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix multiplication - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @param[in] *pState points to the array for storing intermediate results - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst, - q15_t * pState); - - /** - * @brief Q15 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @param[in] *pState points to the array for storing intermediate results - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_fast_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst, - q15_t * pState); - - /** - * @brief Q31 matrix multiplication - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - /** - * @brief Q31 matrix multiplication (fast variant) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_mult_fast_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Floating-point matrix subtraction - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_sub_f32( - const arm_matrix_instance_f32 * pSrcA, - const arm_matrix_instance_f32 * pSrcB, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix subtraction - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_sub_q15( - const arm_matrix_instance_q15 * pSrcA, - const arm_matrix_instance_q15 * pSrcB, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix subtraction - * @param[in] *pSrcA points to the first input matrix structure - * @param[in] *pSrcB points to the second input matrix structure - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_sub_q31( - const arm_matrix_instance_q31 * pSrcA, - const arm_matrix_instance_q31 * pSrcB, - arm_matrix_instance_q31 * pDst); - - /** - * @brief Floating-point matrix scaling. - * @param[in] *pSrc points to the input matrix - * @param[in] scale scale factor - * @param[out] *pDst points to the output matrix - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_scale_f32( - const arm_matrix_instance_f32 * pSrc, - float32_t scale, - arm_matrix_instance_f32 * pDst); - - /** - * @brief Q15 matrix scaling. - * @param[in] *pSrc points to input matrix - * @param[in] scaleFract fractional portion of the scale factor - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to output matrix - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_scale_q15( - const arm_matrix_instance_q15 * pSrc, - q15_t scaleFract, - int32_t shift, - arm_matrix_instance_q15 * pDst); - - /** - * @brief Q31 matrix scaling. - * @param[in] *pSrc points to input matrix - * @param[in] scaleFract fractional portion of the scale factor - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to output matrix structure - * @return The function returns either - * ARM_MATH_SIZE_MISMATCH or ARM_MATH_SUCCESS based on the outcome of size checking. - */ - - arm_status arm_mat_scale_q31( - const arm_matrix_instance_q31 * pSrc, - q31_t scaleFract, - int32_t shift, - arm_matrix_instance_q31 * pDst); - - - /** - * @brief Q31 matrix initialization. - * @param[in,out] *S points to an instance of the floating-point matrix structure. - * @param[in] nRows number of rows in the matrix. - * @param[in] nColumns number of columns in the matrix. - * @param[in] *pData points to the matrix data array. - * @return none - */ - - void arm_mat_init_q31( - arm_matrix_instance_q31 * S, - uint16_t nRows, - uint16_t nColumns, - q31_t * pData); - - /** - * @brief Q15 matrix initialization. - * @param[in,out] *S points to an instance of the floating-point matrix structure. - * @param[in] nRows number of rows in the matrix. - * @param[in] nColumns number of columns in the matrix. - * @param[in] *pData points to the matrix data array. - * @return none - */ - - void arm_mat_init_q15( - arm_matrix_instance_q15 * S, - uint16_t nRows, - uint16_t nColumns, - q15_t * pData); - - /** - * @brief Floating-point matrix initialization. - * @param[in,out] *S points to an instance of the floating-point matrix structure. - * @param[in] nRows number of rows in the matrix. - * @param[in] nColumns number of columns in the matrix. - * @param[in] *pData points to the matrix data array. - * @return none - */ - - void arm_mat_init_f32( - arm_matrix_instance_f32 * S, - uint16_t nRows, - uint16_t nColumns, - float32_t * pData); - - - - /** - * @brief Instance structure for the Q15 PID Control. - */ - typedef struct - { - q15_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ -#ifdef ARM_MATH_CM0_FAMILY - q15_t A1; - q15_t A2; -#else - q31_t A1; /**< The derived gain A1 = -Kp - 2Kd | Kd.*/ -#endif - q15_t state[3]; /**< The state array of length 3. */ - q15_t Kp; /**< The proportional gain. */ - q15_t Ki; /**< The integral gain. */ - q15_t Kd; /**< The derivative gain. */ - } arm_pid_instance_q15; - - /** - * @brief Instance structure for the Q31 PID Control. - */ - typedef struct - { - q31_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ - q31_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ - q31_t A2; /**< The derived gain, A2 = Kd . */ - q31_t state[3]; /**< The state array of length 3. */ - q31_t Kp; /**< The proportional gain. */ - q31_t Ki; /**< The integral gain. */ - q31_t Kd; /**< The derivative gain. */ - - } arm_pid_instance_q31; - - /** - * @brief Instance structure for the floating-point PID Control. - */ - typedef struct - { - float32_t A0; /**< The derived gain, A0 = Kp + Ki + Kd . */ - float32_t A1; /**< The derived gain, A1 = -Kp - 2Kd. */ - float32_t A2; /**< The derived gain, A2 = Kd . */ - float32_t state[3]; /**< The state array of length 3. */ - float32_t Kp; /**< The proportional gain. */ - float32_t Ki; /**< The integral gain. */ - float32_t Kd; /**< The derivative gain. */ - } arm_pid_instance_f32; - - - - /** - * @brief Initialization function for the floating-point PID Control. - * @param[in,out] *S points to an instance of the PID structure. - * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. - * @return none. - */ - void arm_pid_init_f32( - arm_pid_instance_f32 * S, - int32_t resetStateFlag); - - /** - * @brief Reset function for the floating-point PID Control. - * @param[in,out] *S is an instance of the floating-point PID Control structure - * @return none - */ - void arm_pid_reset_f32( - arm_pid_instance_f32 * S); - - - /** - * @brief Initialization function for the Q31 PID Control. - * @param[in,out] *S points to an instance of the Q15 PID structure. - * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. - * @return none. - */ - void arm_pid_init_q31( - arm_pid_instance_q31 * S, - int32_t resetStateFlag); - - - /** - * @brief Reset function for the Q31 PID Control. - * @param[in,out] *S points to an instance of the Q31 PID Control structure - * @return none - */ - - void arm_pid_reset_q31( - arm_pid_instance_q31 * S); - - /** - * @brief Initialization function for the Q15 PID Control. - * @param[in,out] *S points to an instance of the Q15 PID structure. - * @param[in] resetStateFlag flag to reset the state. 0 = no change in state 1 = reset the state. - * @return none. - */ - void arm_pid_init_q15( - arm_pid_instance_q15 * S, - int32_t resetStateFlag); - - /** - * @brief Reset function for the Q15 PID Control. - * @param[in,out] *S points to an instance of the q15 PID Control structure - * @return none - */ - void arm_pid_reset_q15( - arm_pid_instance_q15 * S); - - - /** - * @brief Instance structure for the floating-point Linear Interpolate function. - */ - typedef struct - { - uint32_t nValues; /**< nValues */ - float32_t x1; /**< x1 */ - float32_t xSpacing; /**< xSpacing */ - float32_t *pYData; /**< pointer to the table of Y values */ - } arm_linear_interp_instance_f32; - - /** - * @brief Instance structure for the floating-point bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - float32_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_f32; - - /** - * @brief Instance structure for the Q31 bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - q31_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_q31; - - /** - * @brief Instance structure for the Q15 bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - q15_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_q15; - - /** - * @brief Instance structure for the Q15 bilinear interpolation function. - */ - - typedef struct - { - uint16_t numRows; /**< number of rows in the data table. */ - uint16_t numCols; /**< number of columns in the data table. */ - q7_t *pData; /**< points to the data table. */ - } arm_bilinear_interp_instance_q7; - - - /** - * @brief Q7 vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_q7( - q7_t * pSrcA, - q7_t * pSrcB, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Floating-point vector multiplication. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_mult_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t blockSize); - - - - - - - /** - * @brief Instance structure for the Q15 CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - q15_t *pTwiddle; /**< points to the Sin twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - } arm_cfft_radix2_instance_q15; - - arm_status arm_cfft_radix2_init_q15( - arm_cfft_radix2_instance_q15 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - void arm_cfft_radix2_q15( - const arm_cfft_radix2_instance_q15 * S, - q15_t * pSrc); - - - - /** - * @brief Instance structure for the Q15 CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - q15_t *pTwiddle; /**< points to the twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - } arm_cfft_radix4_instance_q15; - - arm_status arm_cfft_radix4_init_q15( - arm_cfft_radix4_instance_q15 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - void arm_cfft_radix4_q15( - const arm_cfft_radix4_instance_q15 * S, - q15_t * pSrc); - - /** - * @brief Instance structure for the Radix-2 Q31 CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - q31_t *pTwiddle; /**< points to the Twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - } arm_cfft_radix2_instance_q31; - - arm_status arm_cfft_radix2_init_q31( - arm_cfft_radix2_instance_q31 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - void arm_cfft_radix2_q31( - const arm_cfft_radix2_instance_q31 * S, - q31_t * pSrc); - - /** - * @brief Instance structure for the Q31 CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - q31_t *pTwiddle; /**< points to the twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - } arm_cfft_radix4_instance_q31; - - - void arm_cfft_radix4_q31( - const arm_cfft_radix4_instance_q31 * S, - q31_t * pSrc); - - arm_status arm_cfft_radix4_init_q31( - arm_cfft_radix4_instance_q31 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - /** - * @brief Instance structure for the floating-point CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - float32_t *pTwiddle; /**< points to the Twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - float32_t onebyfftLen; /**< value of 1/fftLen. */ - } arm_cfft_radix2_instance_f32; - -/* Deprecated */ - arm_status arm_cfft_radix2_init_f32( - arm_cfft_radix2_instance_f32 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - -/* Deprecated */ - void arm_cfft_radix2_f32( - const arm_cfft_radix2_instance_f32 * S, - float32_t * pSrc); - - /** - * @brief Instance structure for the floating-point CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - uint8_t ifftFlag; /**< flag that selects forward (ifftFlag=0) or inverse (ifftFlag=1) transform. */ - uint8_t bitReverseFlag; /**< flag that enables (bitReverseFlag=1) or disables (bitReverseFlag=0) bit reversal of output. */ - float32_t *pTwiddle; /**< points to the Twiddle factor table. */ - uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t twidCoefModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - uint16_t bitRevFactor; /**< bit reversal modifier that supports different size FFTs with the same bit reversal table. */ - float32_t onebyfftLen; /**< value of 1/fftLen. */ - } arm_cfft_radix4_instance_f32; - -/* Deprecated */ - arm_status arm_cfft_radix4_init_f32( - arm_cfft_radix4_instance_f32 * S, - uint16_t fftLen, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - -/* Deprecated */ - void arm_cfft_radix4_f32( - const arm_cfft_radix4_instance_f32 * S, - float32_t * pSrc); - - /** - * @brief Instance structure for the floating-point CFFT/CIFFT function. - */ - - typedef struct - { - uint16_t fftLen; /**< length of the FFT. */ - const float32_t *pTwiddle; /**< points to the Twiddle factor table. */ - const uint16_t *pBitRevTable; /**< points to the bit reversal table. */ - uint16_t bitRevLength; /**< bit reversal table length. */ - } arm_cfft_instance_f32; - - void arm_cfft_f32( - const arm_cfft_instance_f32 * S, - float32_t * p1, - uint8_t ifftFlag, - uint8_t bitReverseFlag); - - /** - * @brief Instance structure for the Q15 RFFT/RIFFT function. - */ - - typedef struct - { - uint32_t fftLenReal; /**< length of the real FFT. */ - uint32_t fftLenBy2; /**< length of the complex FFT. */ - uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ - uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ - uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - q15_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ - q15_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ - arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ - } arm_rfft_instance_q15; - - arm_status arm_rfft_init_q15( - arm_rfft_instance_q15 * S, - arm_cfft_radix4_instance_q15 * S_CFFT, - uint32_t fftLenReal, - uint32_t ifftFlagR, - uint32_t bitReverseFlag); - - void arm_rfft_q15( - const arm_rfft_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst); - - /** - * @brief Instance structure for the Q31 RFFT/RIFFT function. - */ - - typedef struct - { - uint32_t fftLenReal; /**< length of the real FFT. */ - uint32_t fftLenBy2; /**< length of the complex FFT. */ - uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ - uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ - uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - q31_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ - q31_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ - arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ - } arm_rfft_instance_q31; - - arm_status arm_rfft_init_q31( - arm_rfft_instance_q31 * S, - arm_cfft_radix4_instance_q31 * S_CFFT, - uint32_t fftLenReal, - uint32_t ifftFlagR, - uint32_t bitReverseFlag); - - void arm_rfft_q31( - const arm_rfft_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst); - - /** - * @brief Instance structure for the floating-point RFFT/RIFFT function. - */ - - typedef struct - { - uint32_t fftLenReal; /**< length of the real FFT. */ - uint16_t fftLenBy2; /**< length of the complex FFT. */ - uint8_t ifftFlagR; /**< flag that selects forward (ifftFlagR=0) or inverse (ifftFlagR=1) transform. */ - uint8_t bitReverseFlagR; /**< flag that enables (bitReverseFlagR=1) or disables (bitReverseFlagR=0) bit reversal of output. */ - uint32_t twidCoefRModifier; /**< twiddle coefficient modifier that supports different size FFTs with the same twiddle factor table. */ - float32_t *pTwiddleAReal; /**< points to the real twiddle factor table. */ - float32_t *pTwiddleBReal; /**< points to the imag twiddle factor table. */ - arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ - } arm_rfft_instance_f32; - - arm_status arm_rfft_init_f32( - arm_rfft_instance_f32 * S, - arm_cfft_radix4_instance_f32 * S_CFFT, - uint32_t fftLenReal, - uint32_t ifftFlagR, - uint32_t bitReverseFlag); - - void arm_rfft_f32( - const arm_rfft_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst); - - /** - * @brief Instance structure for the floating-point RFFT/RIFFT function. - */ - -typedef struct - { - arm_cfft_instance_f32 Sint; /**< Internal CFFT structure. */ - uint16_t fftLenRFFT; /**< length of the real sequence */ - float32_t * pTwiddleRFFT; /**< Twiddle factors real stage */ - } arm_rfft_fast_instance_f32 ; - -arm_status arm_rfft_fast_init_f32 ( - arm_rfft_fast_instance_f32 * S, - uint16_t fftLen); - -void arm_rfft_fast_f32( - arm_rfft_fast_instance_f32 * S, - float32_t * p, float32_t * pOut, - uint8_t ifftFlag); - - /** - * @brief Instance structure for the floating-point DCT4/IDCT4 function. - */ - - typedef struct - { - uint16_t N; /**< length of the DCT4. */ - uint16_t Nby2; /**< half of the length of the DCT4. */ - float32_t normalize; /**< normalizing factor. */ - float32_t *pTwiddle; /**< points to the twiddle factor table. */ - float32_t *pCosFactor; /**< points to the cosFactor table. */ - arm_rfft_instance_f32 *pRfft; /**< points to the real FFT instance. */ - arm_cfft_radix4_instance_f32 *pCfft; /**< points to the complex FFT instance. */ - } arm_dct4_instance_f32; - - /** - * @brief Initialization function for the floating-point DCT4/IDCT4. - * @param[in,out] *S points to an instance of floating-point DCT4/IDCT4 structure. - * @param[in] *S_RFFT points to an instance of floating-point RFFT/RIFFT structure. - * @param[in] *S_CFFT points to an instance of floating-point CFFT/CIFFT structure. - * @param[in] N length of the DCT4. - * @param[in] Nby2 half of the length of the DCT4. - * @param[in] normalize normalizing factor. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if fftLenReal is not a supported transform length. - */ - - arm_status arm_dct4_init_f32( - arm_dct4_instance_f32 * S, - arm_rfft_instance_f32 * S_RFFT, - arm_cfft_radix4_instance_f32 * S_CFFT, - uint16_t N, - uint16_t Nby2, - float32_t normalize); - - /** - * @brief Processing function for the floating-point DCT4/IDCT4. - * @param[in] *S points to an instance of the floating-point DCT4/IDCT4 structure. - * @param[in] *pState points to state buffer. - * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. - * @return none. - */ - - void arm_dct4_f32( - const arm_dct4_instance_f32 * S, - float32_t * pState, - float32_t * pInlineBuffer); - - /** - * @brief Instance structure for the Q31 DCT4/IDCT4 function. - */ - - typedef struct - { - uint16_t N; /**< length of the DCT4. */ - uint16_t Nby2; /**< half of the length of the DCT4. */ - q31_t normalize; /**< normalizing factor. */ - q31_t *pTwiddle; /**< points to the twiddle factor table. */ - q31_t *pCosFactor; /**< points to the cosFactor table. */ - arm_rfft_instance_q31 *pRfft; /**< points to the real FFT instance. */ - arm_cfft_radix4_instance_q31 *pCfft; /**< points to the complex FFT instance. */ - } arm_dct4_instance_q31; - - /** - * @brief Initialization function for the Q31 DCT4/IDCT4. - * @param[in,out] *S points to an instance of Q31 DCT4/IDCT4 structure. - * @param[in] *S_RFFT points to an instance of Q31 RFFT/RIFFT structure - * @param[in] *S_CFFT points to an instance of Q31 CFFT/CIFFT structure - * @param[in] N length of the DCT4. - * @param[in] Nby2 half of the length of the DCT4. - * @param[in] normalize normalizing factor. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. - */ - - arm_status arm_dct4_init_q31( - arm_dct4_instance_q31 * S, - arm_rfft_instance_q31 * S_RFFT, - arm_cfft_radix4_instance_q31 * S_CFFT, - uint16_t N, - uint16_t Nby2, - q31_t normalize); - - /** - * @brief Processing function for the Q31 DCT4/IDCT4. - * @param[in] *S points to an instance of the Q31 DCT4 structure. - * @param[in] *pState points to state buffer. - * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. - * @return none. - */ - - void arm_dct4_q31( - const arm_dct4_instance_q31 * S, - q31_t * pState, - q31_t * pInlineBuffer); - - /** - * @brief Instance structure for the Q15 DCT4/IDCT4 function. - */ - - typedef struct - { - uint16_t N; /**< length of the DCT4. */ - uint16_t Nby2; /**< half of the length of the DCT4. */ - q15_t normalize; /**< normalizing factor. */ - q15_t *pTwiddle; /**< points to the twiddle factor table. */ - q15_t *pCosFactor; /**< points to the cosFactor table. */ - arm_rfft_instance_q15 *pRfft; /**< points to the real FFT instance. */ - arm_cfft_radix4_instance_q15 *pCfft; /**< points to the complex FFT instance. */ - } arm_dct4_instance_q15; - - /** - * @brief Initialization function for the Q15 DCT4/IDCT4. - * @param[in,out] *S points to an instance of Q15 DCT4/IDCT4 structure. - * @param[in] *S_RFFT points to an instance of Q15 RFFT/RIFFT structure. - * @param[in] *S_CFFT points to an instance of Q15 CFFT/CIFFT structure. - * @param[in] N length of the DCT4. - * @param[in] Nby2 half of the length of the DCT4. - * @param[in] normalize normalizing factor. - * @return arm_status function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_ARGUMENT_ERROR if N is not a supported transform length. - */ - - arm_status arm_dct4_init_q15( - arm_dct4_instance_q15 * S, - arm_rfft_instance_q15 * S_RFFT, - arm_cfft_radix4_instance_q15 * S_CFFT, - uint16_t N, - uint16_t Nby2, - q15_t normalize); - - /** - * @brief Processing function for the Q15 DCT4/IDCT4. - * @param[in] *S points to an instance of the Q15 DCT4 structure. - * @param[in] *pState points to state buffer. - * @param[in,out] *pInlineBuffer points to the in-place input and output buffer. - * @return none. - */ - - void arm_dct4_q15( - const arm_dct4_instance_q15 * S, - q15_t * pState, - q15_t * pInlineBuffer); - - /** - * @brief Floating-point vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Q7 vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_q7( - q7_t * pSrcA, - q7_t * pSrcB, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector addition. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_add_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Floating-point vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Q7 vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_q7( - q7_t * pSrcA, - q7_t * pSrcB, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector subtraction. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_sub_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a floating-point vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scale scale factor to be applied - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_f32( - float32_t * pSrc, - float32_t scale, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a Q7 vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scaleFract fractional portion of the scale value - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_q7( - q7_t * pSrc, - q7_t scaleFract, - int8_t shift, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a Q15 vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scaleFract fractional portion of the scale value - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_q15( - q15_t * pSrc, - q15_t scaleFract, - int8_t shift, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Multiplies a Q31 vector by a scalar. - * @param[in] *pSrc points to the input vector - * @param[in] scaleFract fractional portion of the scale value - * @param[in] shift number of bits to shift the result by - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_scale_q31( - q31_t * pSrc, - q31_t scaleFract, - int8_t shift, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Q7 vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_q7( - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Floating-point vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Q15 vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Q31 vector absolute value. - * @param[in] *pSrc points to the input buffer - * @param[out] *pDst points to the output buffer - * @param[in] blockSize number of samples in each vector - * @return none. - */ - - void arm_abs_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Dot product of floating-point vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_f32( - float32_t * pSrcA, - float32_t * pSrcB, - uint32_t blockSize, - float32_t * result); - - /** - * @brief Dot product of Q7 vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_q7( - q7_t * pSrcA, - q7_t * pSrcB, - uint32_t blockSize, - q31_t * result); - - /** - * @brief Dot product of Q15 vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_q15( - q15_t * pSrcA, - q15_t * pSrcB, - uint32_t blockSize, - q63_t * result); - - /** - * @brief Dot product of Q31 vectors. - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] blockSize number of samples in each vector - * @param[out] *result output result returned here - * @return none. - */ - - void arm_dot_prod_q31( - q31_t * pSrcA, - q31_t * pSrcB, - uint32_t blockSize, - q63_t * result); - - /** - * @brief Shifts the elements of a Q7 vector a specified number of bits. - * @param[in] *pSrc points to the input vector - * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_shift_q7( - q7_t * pSrc, - int8_t shiftBits, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Shifts the elements of a Q15 vector a specified number of bits. - * @param[in] *pSrc points to the input vector - * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_shift_q15( - q15_t * pSrc, - int8_t shiftBits, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Shifts the elements of a Q31 vector a specified number of bits. - * @param[in] *pSrc points to the input vector - * @param[in] shiftBits number of bits to shift. A positive value shifts left; a negative value shifts right. - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_shift_q31( - q31_t * pSrc, - int8_t shiftBits, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a floating-point vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_f32( - float32_t * pSrc, - float32_t offset, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a Q7 vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_q7( - q7_t * pSrc, - q7_t offset, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a Q15 vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_q15( - q15_t * pSrc, - q15_t offset, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Adds a constant offset to a Q31 vector. - * @param[in] *pSrc points to the input vector - * @param[in] offset is the offset to be added - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_offset_q31( - q31_t * pSrc, - q31_t offset, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a floating-point vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a Q7 vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_q7( - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a Q15 vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Negates the elements of a Q31 vector. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] blockSize number of samples in the vector - * @return none. - */ - - void arm_negate_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - /** - * @brief Copies the elements of a floating-point vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Copies the elements of a Q7 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_q7( - q7_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Copies the elements of a Q15 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Copies the elements of a Q31 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_copy_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - /** - * @brief Fills a constant value into a floating-point vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_f32( - float32_t value, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Fills a constant value into a Q7 vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_q7( - q7_t value, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Fills a constant value into a Q15 vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_q15( - q15_t value, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Fills a constant value into a Q31 vector. - * @param[in] value input value to be filled - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_fill_q31( - q31_t value, - q31_t * pDst, - uint32_t blockSize); - -/** - * @brief Convolution of floating-point sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_f32( - float32_t * pSrcA, - uint32_t srcALen, - float32_t * pSrcB, - uint32_t srcBLen, - float32_t * pDst); - - - /** - * @brief Convolution of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @param[in] *pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] *pScratch2 points to scratch buffer of size min(srcALen, srcBLen). - * @return none. - */ - - - void arm_conv_opt_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - q15_t * pScratch1, - q15_t * pScratch2); - - -/** - * @brief Convolution of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the location where the output result is written. Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_fast_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @param[in] *pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] *pScratch2 points to scratch buffer of size min(srcALen, srcBLen). - * @return none. - */ - - void arm_conv_fast_opt_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - q15_t * pScratch1, - q15_t * pScratch2); - - - - /** - * @brief Convolution of Q31 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - /** - * @brief Convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_fast_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - - /** - * @brief Convolution of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @param[in] *pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] *pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). - * @return none. - */ - - void arm_conv_opt_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst, - q15_t * pScratch1, - q15_t * pScratch2); - - - - /** - * @brief Convolution of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length srcALen+srcBLen-1. - * @return none. - */ - - void arm_conv_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst); - - - /** - * @brief Partial convolution of floating-point sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_f32( - float32_t * pSrcA, - uint32_t srcALen, - float32_t * pSrcB, - uint32_t srcBLen, - float32_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - /** - * @brief Partial convolution of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @param[in] * pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] * pScratch2 points to scratch buffer of size min(srcALen, srcBLen). - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_opt_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - uint32_t firstIndex, - uint32_t numPoints, - q15_t * pScratch1, - q15_t * pScratch2); - - -/** - * @brief Partial convolution of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - /** - * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_fast_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - - /** - * @brief Partial convolution of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @param[in] * pScratch1 points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] * pScratch2 points to scratch buffer of size min(srcALen, srcBLen). - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_fast_opt_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - uint32_t firstIndex, - uint32_t numPoints, - q15_t * pScratch1, - q15_t * pScratch2); - - - /** - * @brief Partial convolution of Q31 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - - /** - * @brief Partial convolution of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_fast_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - - /** - * @brief Partial convolution of Q7 sequences - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @param[in] *pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] *pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_opt_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst, - uint32_t firstIndex, - uint32_t numPoints, - q15_t * pScratch1, - q15_t * pScratch2); - - -/** - * @brief Partial convolution of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data - * @param[in] firstIndex is the first output sample to start with. - * @param[in] numPoints is the number of output points to be computed. - * @return Returns either ARM_MATH_SUCCESS if the function completed correctly or ARM_MATH_ARGUMENT_ERROR if the requested subset is not in the range [0 srcALen+srcBLen-2]. - */ - - arm_status arm_conv_partial_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst, - uint32_t firstIndex, - uint32_t numPoints); - - - - /** - * @brief Instance structure for the Q15 FIR decimator. - */ - - typedef struct - { - uint8_t M; /**< decimation factor. */ - uint16_t numTaps; /**< number of coefficients in the filter. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - } arm_fir_decimate_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR decimator. - */ - - typedef struct - { - uint8_t M; /**< decimation factor. */ - uint16_t numTaps; /**< number of coefficients in the filter. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - - } arm_fir_decimate_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR decimator. - */ - - typedef struct - { - uint8_t M; /**< decimation factor. */ - uint16_t numTaps; /**< number of coefficients in the filter. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - - } arm_fir_decimate_instance_f32; - - - - /** - * @brief Processing function for the floating-point FIR decimator. - * @param[in] *S points to an instance of the floating-point FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_f32( - const arm_fir_decimate_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the floating-point FIR decimator. - * @param[in,out] *S points to an instance of the floating-point FIR decimator structure. - * @param[in] numTaps number of coefficients in the filter. - * @param[in] M decimation factor. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * blockSize is not a multiple of M. - */ - - arm_status arm_fir_decimate_init_f32( - arm_fir_decimate_instance_f32 * S, - uint16_t numTaps, - uint8_t M, - float32_t * pCoeffs, - float32_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q15 FIR decimator. - * @param[in] *S points to an instance of the Q15 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_q15( - const arm_fir_decimate_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the Q15 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q15 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_fast_q15( - const arm_fir_decimate_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - - /** - * @brief Initialization function for the Q15 FIR decimator. - * @param[in,out] *S points to an instance of the Q15 FIR decimator structure. - * @param[in] numTaps number of coefficients in the filter. - * @param[in] M decimation factor. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * blockSize is not a multiple of M. - */ - - arm_status arm_fir_decimate_init_q15( - arm_fir_decimate_instance_q15 * S, - uint16_t numTaps, - uint8_t M, - q15_t * pCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR decimator. - * @param[in] *S points to an instance of the Q31 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_q31( - const arm_fir_decimate_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR decimator (fast variant) for Cortex-M3 and Cortex-M4. - * @param[in] *S points to an instance of the Q31 FIR decimator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of input samples to process per call. - * @return none - */ - - void arm_fir_decimate_fast_q31( - arm_fir_decimate_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q31 FIR decimator. - * @param[in,out] *S points to an instance of the Q31 FIR decimator structure. - * @param[in] numTaps number of coefficients in the filter. - * @param[in] M decimation factor. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * blockSize is not a multiple of M. - */ - - arm_status arm_fir_decimate_init_q31( - arm_fir_decimate_instance_q31 * S, - uint16_t numTaps, - uint8_t M, - q31_t * pCoeffs, - q31_t * pState, - uint32_t blockSize); - - - - /** - * @brief Instance structure for the Q15 FIR interpolator. - */ - - typedef struct - { - uint8_t L; /**< upsample factor. */ - uint16_t phaseLength; /**< length of each polyphase filter component. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ - q15_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ - } arm_fir_interpolate_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR interpolator. - */ - - typedef struct - { - uint8_t L; /**< upsample factor. */ - uint16_t phaseLength; /**< length of each polyphase filter component. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ - q31_t *pState; /**< points to the state variable array. The array is of length blockSize+phaseLength-1. */ - } arm_fir_interpolate_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR interpolator. - */ - - typedef struct - { - uint8_t L; /**< upsample factor. */ - uint16_t phaseLength; /**< length of each polyphase filter component. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length L*phaseLength. */ - float32_t *pState; /**< points to the state variable array. The array is of length phaseLength+numTaps-1. */ - } arm_fir_interpolate_instance_f32; - - - /** - * @brief Processing function for the Q15 FIR interpolator. - * @param[in] *S points to an instance of the Q15 FIR interpolator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_interpolate_q15( - const arm_fir_interpolate_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q15 FIR interpolator. - * @param[in,out] *S points to an instance of the Q15 FIR interpolator structure. - * @param[in] L upsample factor. - * @param[in] numTaps number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * the filter length numTaps is not a multiple of the interpolation factor L. - */ - - arm_status arm_fir_interpolate_init_q15( - arm_fir_interpolate_instance_q15 * S, - uint8_t L, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 FIR interpolator. - * @param[in] *S points to an instance of the Q15 FIR interpolator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_interpolate_q31( - const arm_fir_interpolate_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 FIR interpolator. - * @param[in,out] *S points to an instance of the Q31 FIR interpolator structure. - * @param[in] L upsample factor. - * @param[in] numTaps number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * the filter length numTaps is not a multiple of the interpolation factor L. - */ - - arm_status arm_fir_interpolate_init_q31( - arm_fir_interpolate_instance_q31 * S, - uint8_t L, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the floating-point FIR interpolator. - * @param[in] *S points to an instance of the floating-point FIR interpolator structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_interpolate_f32( - const arm_fir_interpolate_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point FIR interpolator. - * @param[in,out] *S points to an instance of the floating-point FIR interpolator structure. - * @param[in] L upsample factor. - * @param[in] numTaps number of filter coefficients in the filter. - * @param[in] *pCoeffs points to the filter coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] blockSize number of input samples to process per call. - * @return The function returns ARM_MATH_SUCCESS if initialization is successful or ARM_MATH_LENGTH_ERROR if - * the filter length numTaps is not a multiple of the interpolation factor L. - */ - - arm_status arm_fir_interpolate_init_f32( - arm_fir_interpolate_instance_f32 * S, - uint8_t L, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - uint32_t blockSize); - - /** - * @brief Instance structure for the high precision Q31 Biquad cascade filter. - */ - - typedef struct - { - uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - q63_t *pState; /**< points to the array of state coefficients. The array is of length 4*numStages. */ - q31_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ - uint8_t postShift; /**< additional shift, in bits, applied to each output sample. */ - - } arm_biquad_cas_df1_32x64_ins_q31; - - - /** - * @param[in] *S points to an instance of the high precision Q31 Biquad cascade filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cas_df1_32x64_q31( - const arm_biquad_cas_df1_32x64_ins_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @param[in,out] *S points to an instance of the high precision Q31 Biquad cascade filter structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] postShift shift to be applied to the output. Varies according to the coefficients format - * @return none - */ - - void arm_biquad_cas_df1_32x64_init_q31( - arm_biquad_cas_df1_32x64_ins_q31 * S, - uint8_t numStages, - q31_t * pCoeffs, - q63_t * pState, - uint8_t postShift); - - - - /** - * @brief Instance structure for the floating-point transposed direct form II Biquad cascade filter. - */ - - typedef struct - { - uint8_t numStages; /**< number of 2nd order stages in the filter. Overall order is 2*numStages. */ - float32_t *pState; /**< points to the array of state coefficients. The array is of length 2*numStages. */ - float32_t *pCoeffs; /**< points to the array of coefficients. The array is of length 5*numStages. */ - } arm_biquad_cascade_df2T_instance_f32; - - - /** - * @brief Processing function for the floating-point transposed direct form II Biquad cascade filter. - * @param[in] *S points to an instance of the filter data structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_biquad_cascade_df2T_f32( - const arm_biquad_cascade_df2T_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the floating-point transposed direct form II Biquad cascade filter. - * @param[in,out] *S points to an instance of the filter data structure. - * @param[in] numStages number of 2nd order stages in the filter. - * @param[in] *pCoeffs points to the filter coefficients. - * @param[in] *pState points to the state buffer. - * @return none - */ - - void arm_biquad_cascade_df2T_init_f32( - arm_biquad_cascade_df2T_instance_f32 * S, - uint8_t numStages, - float32_t * pCoeffs, - float32_t * pState); - - - - /** - * @brief Instance structure for the Q15 FIR lattice filter. - */ - - typedef struct - { - uint16_t numStages; /**< number of filter stages. */ - q15_t *pState; /**< points to the state variable array. The array is of length numStages. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ - } arm_fir_lattice_instance_q15; - - /** - * @brief Instance structure for the Q31 FIR lattice filter. - */ - - typedef struct - { - uint16_t numStages; /**< number of filter stages. */ - q31_t *pState; /**< points to the state variable array. The array is of length numStages. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ - } arm_fir_lattice_instance_q31; - - /** - * @brief Instance structure for the floating-point FIR lattice filter. - */ - - typedef struct - { - uint16_t numStages; /**< number of filter stages. */ - float32_t *pState; /**< points to the state variable array. The array is of length numStages. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numStages. */ - } arm_fir_lattice_instance_f32; - - /** - * @brief Initialization function for the Q15 FIR lattice filter. - * @param[in] *S points to an instance of the Q15 FIR lattice structure. - * @param[in] numStages number of filter stages. - * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. - * @param[in] *pState points to the state buffer. The array is of length numStages. - * @return none. - */ - - void arm_fir_lattice_init_q15( - arm_fir_lattice_instance_q15 * S, - uint16_t numStages, - q15_t * pCoeffs, - q15_t * pState); - - - /** - * @brief Processing function for the Q15 FIR lattice filter. - * @param[in] *S points to an instance of the Q15 FIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - void arm_fir_lattice_q15( - const arm_fir_lattice_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 FIR lattice filter. - * @param[in] *S points to an instance of the Q31 FIR lattice structure. - * @param[in] numStages number of filter stages. - * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. - * @param[in] *pState points to the state buffer. The array is of length numStages. - * @return none. - */ - - void arm_fir_lattice_init_q31( - arm_fir_lattice_instance_q31 * S, - uint16_t numStages, - q31_t * pCoeffs, - q31_t * pState); - - - /** - * @brief Processing function for the Q31 FIR lattice filter. - * @param[in] *S points to an instance of the Q31 FIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_fir_lattice_q31( - const arm_fir_lattice_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - -/** - * @brief Initialization function for the floating-point FIR lattice filter. - * @param[in] *S points to an instance of the floating-point FIR lattice structure. - * @param[in] numStages number of filter stages. - * @param[in] *pCoeffs points to the coefficient buffer. The array is of length numStages. - * @param[in] *pState points to the state buffer. The array is of length numStages. - * @return none. - */ - - void arm_fir_lattice_init_f32( - arm_fir_lattice_instance_f32 * S, - uint16_t numStages, - float32_t * pCoeffs, - float32_t * pState); - - /** - * @brief Processing function for the floating-point FIR lattice filter. - * @param[in] *S points to an instance of the floating-point FIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_fir_lattice_f32( - const arm_fir_lattice_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Instance structure for the Q15 IIR lattice filter. - */ - typedef struct - { - uint16_t numStages; /**< number of stages in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ - q15_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ - q15_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ - } arm_iir_lattice_instance_q15; - - /** - * @brief Instance structure for the Q31 IIR lattice filter. - */ - typedef struct - { - uint16_t numStages; /**< number of stages in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ - q31_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ - q31_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ - } arm_iir_lattice_instance_q31; - - /** - * @brief Instance structure for the floating-point IIR lattice filter. - */ - typedef struct - { - uint16_t numStages; /**< number of stages in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numStages+blockSize. */ - float32_t *pkCoeffs; /**< points to the reflection coefficient array. The array is of length numStages. */ - float32_t *pvCoeffs; /**< points to the ladder coefficient array. The array is of length numStages+1. */ - } arm_iir_lattice_instance_f32; - - /** - * @brief Processing function for the floating-point IIR lattice filter. - * @param[in] *S points to an instance of the floating-point IIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_f32( - const arm_iir_lattice_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point IIR lattice filter. - * @param[in] *S points to an instance of the floating-point IIR lattice structure. - * @param[in] numStages number of stages in the filter. - * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. - * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. - * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize-1. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_init_f32( - arm_iir_lattice_instance_f32 * S, - uint16_t numStages, - float32_t * pkCoeffs, - float32_t * pvCoeffs, - float32_t * pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q31 IIR lattice filter. - * @param[in] *S points to an instance of the Q31 IIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_q31( - const arm_iir_lattice_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q31 IIR lattice filter. - * @param[in] *S points to an instance of the Q31 IIR lattice structure. - * @param[in] numStages number of stages in the filter. - * @param[in] *pkCoeffs points to the reflection coefficient buffer. The array is of length numStages. - * @param[in] *pvCoeffs points to the ladder coefficient buffer. The array is of length numStages+1. - * @param[in] *pState points to the state buffer. The array is of length numStages+blockSize. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_init_q31( - arm_iir_lattice_instance_q31 * S, - uint16_t numStages, - q31_t * pkCoeffs, - q31_t * pvCoeffs, - q31_t * pState, - uint32_t blockSize); - - - /** - * @brief Processing function for the Q15 IIR lattice filter. - * @param[in] *S points to an instance of the Q15 IIR lattice structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_iir_lattice_q15( - const arm_iir_lattice_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - -/** - * @brief Initialization function for the Q15 IIR lattice filter. - * @param[in] *S points to an instance of the fixed-point Q15 IIR lattice structure. - * @param[in] numStages number of stages in the filter. - * @param[in] *pkCoeffs points to reflection coefficient buffer. The array is of length numStages. - * @param[in] *pvCoeffs points to ladder coefficient buffer. The array is of length numStages+1. - * @param[in] *pState points to state buffer. The array is of length numStages+blockSize. - * @param[in] blockSize number of samples to process per call. - * @return none. - */ - - void arm_iir_lattice_init_q15( - arm_iir_lattice_instance_q15 * S, - uint16_t numStages, - q15_t * pkCoeffs, - q15_t * pvCoeffs, - q15_t * pState, - uint32_t blockSize); - - /** - * @brief Instance structure for the floating-point LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - float32_t mu; /**< step size that controls filter coefficient updates. */ - } arm_lms_instance_f32; - - /** - * @brief Processing function for floating-point LMS filter. - * @param[in] *S points to an instance of the floating-point LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_f32( - const arm_lms_instance_f32 * S, - float32_t * pSrc, - float32_t * pRef, - float32_t * pOut, - float32_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for floating-point LMS filter. - * @param[in] *S points to an instance of the floating-point LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to the coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_init_f32( - arm_lms_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - float32_t mu, - uint32_t blockSize); - - /** - * @brief Instance structure for the Q15 LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q15_t mu; /**< step size that controls filter coefficient updates. */ - uint32_t postShift; /**< bit shift applied to coefficients. */ - } arm_lms_instance_q15; - - - /** - * @brief Initialization function for the Q15 LMS filter. - * @param[in] *S points to an instance of the Q15 LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to the coefficient buffer. - * @param[in] *pState points to the state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_init_q15( - arm_lms_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - q15_t mu, - uint32_t blockSize, - uint32_t postShift); - - /** - * @brief Processing function for Q15 LMS filter. - * @param[in] *S points to an instance of the Q15 LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_q15( - const arm_lms_instance_q15 * S, - q15_t * pSrc, - q15_t * pRef, - q15_t * pOut, - q15_t * pErr, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q31 LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q31_t mu; /**< step size that controls filter coefficient updates. */ - uint32_t postShift; /**< bit shift applied to coefficients. */ - - } arm_lms_instance_q31; - - /** - * @brief Processing function for Q31 LMS filter. - * @param[in] *S points to an instance of the Q15 LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_q31( - const arm_lms_instance_q31 * S, - q31_t * pSrc, - q31_t * pRef, - q31_t * pOut, - q31_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for Q31 LMS filter. - * @param[in] *S points to an instance of the Q31 LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_init_q31( - arm_lms_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - q31_t mu, - uint32_t blockSize, - uint32_t postShift); - - /** - * @brief Instance structure for the floating-point normalized LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - float32_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - float32_t mu; /**< step size that control filter coefficient updates. */ - float32_t energy; /**< saves previous frame energy. */ - float32_t x0; /**< saves previous input sample. */ - } arm_lms_norm_instance_f32; - - /** - * @brief Processing function for floating-point normalized LMS filter. - * @param[in] *S points to an instance of the floating-point normalized LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_f32( - arm_lms_norm_instance_f32 * S, - float32_t * pSrc, - float32_t * pRef, - float32_t * pOut, - float32_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for floating-point normalized LMS filter. - * @param[in] *S points to an instance of the floating-point LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_init_f32( - arm_lms_norm_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - float32_t mu, - uint32_t blockSize); - - - /** - * @brief Instance structure for the Q31 normalized LMS filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - q31_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q31_t mu; /**< step size that controls filter coefficient updates. */ - uint8_t postShift; /**< bit shift applied to coefficients. */ - q31_t *recipTable; /**< points to the reciprocal initial value table. */ - q31_t energy; /**< saves previous frame energy. */ - q31_t x0; /**< saves previous input sample. */ - } arm_lms_norm_instance_q31; - - /** - * @brief Processing function for Q31 normalized LMS filter. - * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_q31( - arm_lms_norm_instance_q31 * S, - q31_t * pSrc, - q31_t * pRef, - q31_t * pOut, - q31_t * pErr, - uint32_t blockSize); - - /** - * @brief Initialization function for Q31 normalized LMS filter. - * @param[in] *S points to an instance of the Q31 normalized LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_norm_init_q31( - arm_lms_norm_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - q31_t mu, - uint32_t blockSize, - uint8_t postShift); - - /** - * @brief Instance structure for the Q15 normalized LMS filter. - */ - - typedef struct - { - uint16_t numTaps; /**< Number of coefficients in the filter. */ - q15_t *pState; /**< points to the state variable array. The array is of length numTaps+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps. */ - q15_t mu; /**< step size that controls filter coefficient updates. */ - uint8_t postShift; /**< bit shift applied to coefficients. */ - q15_t *recipTable; /**< Points to the reciprocal initial value table. */ - q15_t energy; /**< saves previous frame energy. */ - q15_t x0; /**< saves previous input sample. */ - } arm_lms_norm_instance_q15; - - /** - * @brief Processing function for Q15 normalized LMS filter. - * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. - * @param[in] *pSrc points to the block of input data. - * @param[in] *pRef points to the block of reference data. - * @param[out] *pOut points to the block of output data. - * @param[out] *pErr points to the block of error data. - * @param[in] blockSize number of samples to process. - * @return none. - */ - - void arm_lms_norm_q15( - arm_lms_norm_instance_q15 * S, - q15_t * pSrc, - q15_t * pRef, - q15_t * pOut, - q15_t * pErr, - uint32_t blockSize); - - - /** - * @brief Initialization function for Q15 normalized LMS filter. - * @param[in] *S points to an instance of the Q15 normalized LMS filter structure. - * @param[in] numTaps number of filter coefficients. - * @param[in] *pCoeffs points to coefficient buffer. - * @param[in] *pState points to state buffer. - * @param[in] mu step size that controls filter coefficient updates. - * @param[in] blockSize number of samples to process. - * @param[in] postShift bit shift applied to coefficients. - * @return none. - */ - - void arm_lms_norm_init_q15( - arm_lms_norm_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - q15_t mu, - uint32_t blockSize, - uint8_t postShift); - - /** - * @brief Correlation of floating-point sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_f32( - float32_t * pSrcA, - uint32_t srcALen, - float32_t * pSrcB, - uint32_t srcBLen, - float32_t * pDst); - - - /** - * @brief Correlation of Q15 sequences - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @param[in] *pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @return none. - */ - void arm_correlate_opt_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - q15_t * pScratch); - - - /** - * @brief Correlation of Q15 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - /** - * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_fast_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst); - - - - /** - * @brief Correlation of Q15 sequences (fast version) for Cortex-M3 and Cortex-M4. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @param[in] *pScratch points to scratch buffer of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @return none. - */ - - void arm_correlate_fast_opt_q15( - q15_t * pSrcA, - uint32_t srcALen, - q15_t * pSrcB, - uint32_t srcBLen, - q15_t * pDst, - q15_t * pScratch); - - /** - * @brief Correlation of Q31 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - /** - * @brief Correlation of Q31 sequences (fast version) for Cortex-M3 and Cortex-M4 - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_fast_q31( - q31_t * pSrcA, - uint32_t srcALen, - q31_t * pSrcB, - uint32_t srcBLen, - q31_t * pDst); - - - - /** - * @brief Correlation of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @param[in] *pScratch1 points to scratch buffer(of type q15_t) of size max(srcALen, srcBLen) + 2*min(srcALen, srcBLen) - 2. - * @param[in] *pScratch2 points to scratch buffer (of type q15_t) of size min(srcALen, srcBLen). - * @return none. - */ - - void arm_correlate_opt_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst, - q15_t * pScratch1, - q15_t * pScratch2); - - - /** - * @brief Correlation of Q7 sequences. - * @param[in] *pSrcA points to the first input sequence. - * @param[in] srcALen length of the first input sequence. - * @param[in] *pSrcB points to the second input sequence. - * @param[in] srcBLen length of the second input sequence. - * @param[out] *pDst points to the block of output data Length 2 * max(srcALen, srcBLen) - 1. - * @return none. - */ - - void arm_correlate_q7( - q7_t * pSrcA, - uint32_t srcALen, - q7_t * pSrcB, - uint32_t srcBLen, - q7_t * pDst); - - - /** - * @brief Instance structure for the floating-point sparse FIR filter. - */ - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - float32_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - float32_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_f32; - - /** - * @brief Instance structure for the Q31 sparse FIR filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - q31_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - q31_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_q31; - - /** - * @brief Instance structure for the Q15 sparse FIR filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - q15_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - q15_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_q15; - - /** - * @brief Instance structure for the Q7 sparse FIR filter. - */ - - typedef struct - { - uint16_t numTaps; /**< number of coefficients in the filter. */ - uint16_t stateIndex; /**< state buffer index. Points to the oldest sample in the state buffer. */ - q7_t *pState; /**< points to the state buffer array. The array is of length maxDelay+blockSize-1. */ - q7_t *pCoeffs; /**< points to the coefficient array. The array is of length numTaps.*/ - uint16_t maxDelay; /**< maximum offset specified by the pTapDelay array. */ - int32_t *pTapDelay; /**< points to the array of delay values. The array is of length numTaps. */ - } arm_fir_sparse_instance_q7; - - /** - * @brief Processing function for the floating-point sparse FIR filter. - * @param[in] *S points to an instance of the floating-point sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_f32( - arm_fir_sparse_instance_f32 * S, - float32_t * pSrc, - float32_t * pDst, - float32_t * pScratchIn, - uint32_t blockSize); - - /** - * @brief Initialization function for the floating-point sparse FIR filter. - * @param[in,out] *S points to an instance of the floating-point sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_f32( - arm_fir_sparse_instance_f32 * S, - uint16_t numTaps, - float32_t * pCoeffs, - float32_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - /** - * @brief Processing function for the Q31 sparse FIR filter. - * @param[in] *S points to an instance of the Q31 sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_q31( - arm_fir_sparse_instance_q31 * S, - q31_t * pSrc, - q31_t * pDst, - q31_t * pScratchIn, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q31 sparse FIR filter. - * @param[in,out] *S points to an instance of the Q31 sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_q31( - arm_fir_sparse_instance_q31 * S, - uint16_t numTaps, - q31_t * pCoeffs, - q31_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - /** - * @brief Processing function for the Q15 sparse FIR filter. - * @param[in] *S points to an instance of the Q15 sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] *pScratchOut points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_q15( - arm_fir_sparse_instance_q15 * S, - q15_t * pSrc, - q15_t * pDst, - q15_t * pScratchIn, - q31_t * pScratchOut, - uint32_t blockSize); - - - /** - * @brief Initialization function for the Q15 sparse FIR filter. - * @param[in,out] *S points to an instance of the Q15 sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_q15( - arm_fir_sparse_instance_q15 * S, - uint16_t numTaps, - q15_t * pCoeffs, - q15_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - /** - * @brief Processing function for the Q7 sparse FIR filter. - * @param[in] *S points to an instance of the Q7 sparse FIR structure. - * @param[in] *pSrc points to the block of input data. - * @param[out] *pDst points to the block of output data - * @param[in] *pScratchIn points to a temporary buffer of size blockSize. - * @param[in] *pScratchOut points to a temporary buffer of size blockSize. - * @param[in] blockSize number of input samples to process per call. - * @return none. - */ - - void arm_fir_sparse_q7( - arm_fir_sparse_instance_q7 * S, - q7_t * pSrc, - q7_t * pDst, - q7_t * pScratchIn, - q31_t * pScratchOut, - uint32_t blockSize); - - /** - * @brief Initialization function for the Q7 sparse FIR filter. - * @param[in,out] *S points to an instance of the Q7 sparse FIR structure. - * @param[in] numTaps number of nonzero coefficients in the filter. - * @param[in] *pCoeffs points to the array of filter coefficients. - * @param[in] *pState points to the state buffer. - * @param[in] *pTapDelay points to the array of offset times. - * @param[in] maxDelay maximum offset time supported. - * @param[in] blockSize number of samples that will be processed per block. - * @return none - */ - - void arm_fir_sparse_init_q7( - arm_fir_sparse_instance_q7 * S, - uint16_t numTaps, - q7_t * pCoeffs, - q7_t * pState, - int32_t * pTapDelay, - uint16_t maxDelay, - uint32_t blockSize); - - - /* - * @brief Floating-point sin_cos function. - * @param[in] theta input value in degrees - * @param[out] *pSinVal points to the processed sine output. - * @param[out] *pCosVal points to the processed cos output. - * @return none. - */ - - void arm_sin_cos_f32( - float32_t theta, - float32_t * pSinVal, - float32_t * pCcosVal); - - /* - * @brief Q31 sin_cos function. - * @param[in] theta scaled input value in degrees - * @param[out] *pSinVal points to the processed sine output. - * @param[out] *pCosVal points to the processed cosine output. - * @return none. - */ - - void arm_sin_cos_q31( - q31_t theta, - q31_t * pSinVal, - q31_t * pCosVal); - - - /** - * @brief Floating-point complex conjugate. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_conj_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex conjugate. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_conj_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex conjugate. - * @param[in] *pSrc points to the input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_conj_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t numSamples); - - - - /** - * @brief Floating-point complex magnitude squared - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_squared_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex magnitude squared - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_squared_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex magnitude squared - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_squared_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t numSamples); - - - /** - * @ingroup groupController - */ - - /** - * @defgroup PID PID Motor Control - * - * A Proportional Integral Derivative (PID) controller is a generic feedback control - * loop mechanism widely used in industrial control systems. - * A PID controller is the most commonly used type of feedback controller. - * - * This set of functions implements (PID) controllers - * for Q15, Q31, and floating-point data types. The functions operate on a single sample - * of data and each call to the function returns a single processed value. - * S points to an instance of the PID control data structure. in - * is the input sample value. The functions return the output value. - * - * \par Algorithm: - *
-   *    y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2]
-   *    A0 = Kp + Ki + Kd
-   *    A1 = (-Kp ) - (2 * Kd )
-   *    A2 = Kd  
- * - * \par - * where \c Kp is proportional constant, \c Ki is Integral constant and \c Kd is Derivative constant - * - * \par - * \image html PID.gif "Proportional Integral Derivative Controller" - * - * \par - * The PID controller calculates an "error" value as the difference between - * the measured output and the reference input. - * The controller attempts to minimize the error by adjusting the process control inputs. - * The proportional value determines the reaction to the current error, - * the integral value determines the reaction based on the sum of recent errors, - * and the derivative value determines the reaction based on the rate at which the error has been changing. - * - * \par Instance Structure - * The Gains A0, A1, A2 and state variables for a PID controller are stored together in an instance data structure. - * A separate instance structure must be defined for each PID Controller. - * There are separate instance structure declarations for each of the 3 supported data types. - * - * \par Reset Functions - * There is also an associated reset function for each data type which clears the state array. - * - * \par Initialization Functions - * There is also an associated initialization function for each data type. - * The initialization function performs the following operations: - * - Initializes the Gains A0, A1, A2 from Kp,Ki, Kd gains. - * - Zeros out the values in the state buffer. - * - * \par - * Instance structure cannot be placed into a const data section and it is recommended to use the initialization function. - * - * \par Fixed-Point Behavior - * Care must be taken when using the fixed-point versions of the PID Controller functions. - * In particular, the overflow and saturation behavior of the accumulator used in each function must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup PID - * @{ - */ - - /** - * @brief Process function for the floating-point PID Control. - * @param[in,out] *S is an instance of the floating-point PID Control structure - * @param[in] in input sample to process - * @return out processed output sample. - */ - - - static __INLINE float32_t arm_pid_f32( - arm_pid_instance_f32 * S, - float32_t in) - { - float32_t out; - - /* y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2] */ - out = (S->A0 * in) + - (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); - - /* Update state */ - S->state[1] = S->state[0]; - S->state[0] = in; - S->state[2] = out; - - /* return to application */ - return (out); - - } - - /** - * @brief Process function for the Q31 PID Control. - * @param[in,out] *S points to an instance of the Q31 PID Control structure - * @param[in] in input sample to process - * @return out processed output sample. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 64-bit accumulator. - * The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit. - * Thus, if the accumulator result overflows it wraps around rather than clip. - * In order to avoid overflows completely the input signal must be scaled down by 2 bits as there are four additions. - * After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format. - */ - - static __INLINE q31_t arm_pid_q31( - arm_pid_instance_q31 * S, - q31_t in) - { - q63_t acc; - q31_t out; - - /* acc = A0 * x[n] */ - acc = (q63_t) S->A0 * in; - - /* acc += A1 * x[n-1] */ - acc += (q63_t) S->A1 * S->state[0]; - - /* acc += A2 * x[n-2] */ - acc += (q63_t) S->A2 * S->state[1]; - - /* convert output to 1.31 format to add y[n-1] */ - out = (q31_t) (acc >> 31u); - - /* out += y[n-1] */ - out += S->state[2]; - - /* Update state */ - S->state[1] = S->state[0]; - S->state[0] = in; - S->state[2] = out; - - /* return to application */ - return (out); - - } - - /** - * @brief Process function for the Q15 PID Control. - * @param[in,out] *S points to an instance of the Q15 PID Control structure - * @param[in] in input sample to process - * @return out processed output sample. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using a 64-bit internal accumulator. - * Both Gains and state variables are represented in 1.15 format and multiplications yield a 2.30 result. - * The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format. - * There is no risk of internal overflow with this approach and the full precision of intermediate multiplications is preserved. - * After all additions have been performed, the accumulator is truncated to 34.15 format by discarding low 15 bits. - * Lastly, the accumulator is saturated to yield a result in 1.15 format. - */ - - static __INLINE q15_t arm_pid_q15( - arm_pid_instance_q15 * S, - q15_t in) - { - q63_t acc; - q15_t out; - -#ifndef ARM_MATH_CM0_FAMILY - __SIMD32_TYPE *vstate; - - /* Implementation of PID controller */ - - /* acc = A0 * x[n] */ - acc = (q31_t) __SMUAD(S->A0, in); - - /* acc += A1 * x[n-1] + A2 * x[n-2] */ - vstate = __SIMD32_CONST(S->state); - acc = __SMLALD(S->A1, (q31_t) *vstate, acc); - -#else - /* acc = A0 * x[n] */ - acc = ((q31_t) S->A0) * in; - - /* acc += A1 * x[n-1] + A2 * x[n-2] */ - acc += (q31_t) S->A1 * S->state[0]; - acc += (q31_t) S->A2 * S->state[1]; - -#endif - - /* acc += y[n-1] */ - acc += (q31_t) S->state[2] << 15; - - /* saturate the output */ - out = (q15_t) (__SSAT((acc >> 15), 16)); - - /* Update state */ - S->state[1] = S->state[0]; - S->state[0] = in; - S->state[2] = out; - - /* return to application */ - return (out); - - } - - /** - * @} end of PID group - */ - - - /** - * @brief Floating-point matrix inverse. - * @param[in] *src points to the instance of the input floating-point matrix structure. - * @param[out] *dst points to the instance of the output floating-point matrix structure. - * @return The function returns ARM_MATH_SIZE_MISMATCH, if the dimensions do not match. - * If the input matrix is singular (does not have an inverse), then the algorithm terminates and returns error status ARM_MATH_SINGULAR. - */ - - arm_status arm_mat_inverse_f32( - const arm_matrix_instance_f32 * src, - arm_matrix_instance_f32 * dst); - - - - /** - * @ingroup groupController - */ - - - /** - * @defgroup clarke Vector Clarke Transform - * Forward Clarke transform converts the instantaneous stator phases into a two-coordinate time invariant vector. - * Generally the Clarke transform uses three-phase currents Ia, Ib and Ic to calculate currents - * in the two-phase orthogonal stator axis Ialpha and Ibeta. - * When Ialpha is superposed with Ia as shown in the figure below - * \image html clarke.gif Stator current space vector and its components in (a,b). - * and Ia + Ib + Ic = 0, in this condition Ialpha and Ibeta - * can be calculated using only Ia and Ib. - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html clarkeFormula.gif - * where Ia and Ib are the instantaneous stator phases and - * pIalpha and pIbeta are the two coordinates of time invariant vector. - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Clarke transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup clarke - * @{ - */ - - /** - * - * @brief Floating-point Clarke transform - * @param[in] Ia input three-phase coordinate a - * @param[in] Ib input three-phase coordinate b - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @return none. - */ - - static __INLINE void arm_clarke_f32( - float32_t Ia, - float32_t Ib, - float32_t * pIalpha, - float32_t * pIbeta) - { - /* Calculate pIalpha using the equation, pIalpha = Ia */ - *pIalpha = Ia; - - /* Calculate pIbeta using the equation, pIbeta = (1/sqrt(3)) * Ia + (2/sqrt(3)) * Ib */ - *pIbeta = - ((float32_t) 0.57735026919 * Ia + (float32_t) 1.15470053838 * Ib); - - } - - /** - * @brief Clarke transform for Q31 version - * @param[in] Ia input three-phase coordinate a - * @param[in] Ib input three-phase coordinate b - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the addition, hence there is no risk of overflow. - */ - - static __INLINE void arm_clarke_q31( - q31_t Ia, - q31_t Ib, - q31_t * pIalpha, - q31_t * pIbeta) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - - /* Calculating pIalpha from Ia by equation pIalpha = Ia */ - *pIalpha = Ia; - - /* Intermediate product is calculated by (1/(sqrt(3)) * Ia) */ - product1 = (q31_t) (((q63_t) Ia * 0x24F34E8B) >> 30); - - /* Intermediate product is calculated by (2/sqrt(3) * Ib) */ - product2 = (q31_t) (((q63_t) Ib * 0x49E69D16) >> 30); - - /* pIbeta is calculated by adding the intermediate products */ - *pIbeta = __QADD(product1, product2); - } - - /** - * @} end of clarke group - */ - - /** - * @brief Converts the elements of the Q7 vector to Q31 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_q7_to_q31( - q7_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - - - /** - * @ingroup groupController - */ - - /** - * @defgroup inv_clarke Vector Inverse Clarke Transform - * Inverse Clarke transform converts the two-coordinate time invariant vector into instantaneous stator phases. - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html clarkeInvFormula.gif - * where pIa and pIb are the instantaneous stator phases and - * Ialpha and Ibeta are the two coordinates of time invariant vector. - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Clarke transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup inv_clarke - * @{ - */ - - /** - * @brief Floating-point Inverse Clarke transform - * @param[in] Ialpha input two-phase orthogonal vector axis alpha - * @param[in] Ibeta input two-phase orthogonal vector axis beta - * @param[out] *pIa points to output three-phase coordinate a - * @param[out] *pIb points to output three-phase coordinate b - * @return none. - */ - - - static __INLINE void arm_inv_clarke_f32( - float32_t Ialpha, - float32_t Ibeta, - float32_t * pIa, - float32_t * pIb) - { - /* Calculating pIa from Ialpha by equation pIa = Ialpha */ - *pIa = Ialpha; - - /* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */ - *pIb = -0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta; - - } - - /** - * @brief Inverse Clarke transform for Q31 version - * @param[in] Ialpha input two-phase orthogonal vector axis alpha - * @param[in] Ibeta input two-phase orthogonal vector axis beta - * @param[out] *pIa points to output three-phase coordinate a - * @param[out] *pIb points to output three-phase coordinate b - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the subtraction, hence there is no risk of overflow. - */ - - static __INLINE void arm_inv_clarke_q31( - q31_t Ialpha, - q31_t Ibeta, - q31_t * pIa, - q31_t * pIb) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - - /* Calculating pIa from Ialpha by equation pIa = Ialpha */ - *pIa = Ialpha; - - /* Intermediate product is calculated by (1/(2*sqrt(3)) * Ia) */ - product1 = (q31_t) (((q63_t) (Ialpha) * (0x40000000)) >> 31); - - /* Intermediate product is calculated by (1/sqrt(3) * pIb) */ - product2 = (q31_t) (((q63_t) (Ibeta) * (0x6ED9EBA1)) >> 31); - - /* pIb is calculated by subtracting the products */ - *pIb = __QSUB(product2, product1); - - } - - /** - * @} end of inv_clarke group - */ - - /** - * @brief Converts the elements of the Q7 vector to Q15 vector. - * @param[in] *pSrc input pointer - * @param[out] *pDst output pointer - * @param[in] blockSize number of samples to process - * @return none. - */ - void arm_q7_to_q15( - q7_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - - - /** - * @ingroup groupController - */ - - /** - * @defgroup park Vector Park Transform - * - * Forward Park transform converts the input two-coordinate vector to flux and torque components. - * The Park transform can be used to realize the transformation of the Ialpha and the Ibeta currents - * from the stationary to the moving reference frame and control the spatial relationship between - * the stator vector current and rotor flux vector. - * If we consider the d axis aligned with the rotor flux, the diagram below shows the - * current vector and the relationship from the two reference frames: - * \image html park.gif "Stator current space vector and its component in (a,b) and in the d,q rotating reference frame" - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html parkFormula.gif - * where Ialpha and Ibeta are the stator vector components, - * pId and pIq are rotor vector components and cosVal and sinVal are the - * cosine and sine values of theta (rotor flux position). - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Park transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup park - * @{ - */ - - /** - * @brief Floating-point Park transform - * @param[in] Ialpha input two-phase vector coordinate alpha - * @param[in] Ibeta input two-phase vector coordinate beta - * @param[out] *pId points to output rotor reference frame d - * @param[out] *pIq points to output rotor reference frame q - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - * - * The function implements the forward Park transform. - * - */ - - static __INLINE void arm_park_f32( - float32_t Ialpha, - float32_t Ibeta, - float32_t * pId, - float32_t * pIq, - float32_t sinVal, - float32_t cosVal) - { - /* Calculate pId using the equation, pId = Ialpha * cosVal + Ibeta * sinVal */ - *pId = Ialpha * cosVal + Ibeta * sinVal; - - /* Calculate pIq using the equation, pIq = - Ialpha * sinVal + Ibeta * cosVal */ - *pIq = -Ialpha * sinVal + Ibeta * cosVal; - - } - - /** - * @brief Park transform for Q31 version - * @param[in] Ialpha input two-phase vector coordinate alpha - * @param[in] Ibeta input two-phase vector coordinate beta - * @param[out] *pId points to output rotor reference frame d - * @param[out] *pIq points to output rotor reference frame q - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the addition and subtraction, hence there is no risk of overflow. - */ - - - static __INLINE void arm_park_q31( - q31_t Ialpha, - q31_t Ibeta, - q31_t * pId, - q31_t * pIq, - q31_t sinVal, - q31_t cosVal) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - q31_t product3, product4; /* Temporary variables used to store intermediate results */ - - /* Intermediate product is calculated by (Ialpha * cosVal) */ - product1 = (q31_t) (((q63_t) (Ialpha) * (cosVal)) >> 31); - - /* Intermediate product is calculated by (Ibeta * sinVal) */ - product2 = (q31_t) (((q63_t) (Ibeta) * (sinVal)) >> 31); - - - /* Intermediate product is calculated by (Ialpha * sinVal) */ - product3 = (q31_t) (((q63_t) (Ialpha) * (sinVal)) >> 31); - - /* Intermediate product is calculated by (Ibeta * cosVal) */ - product4 = (q31_t) (((q63_t) (Ibeta) * (cosVal)) >> 31); - - /* Calculate pId by adding the two intermediate products 1 and 2 */ - *pId = __QADD(product1, product2); - - /* Calculate pIq by subtracting the two intermediate products 3 from 4 */ - *pIq = __QSUB(product4, product3); - } - - /** - * @} end of park group - */ - - /** - * @brief Converts the elements of the Q7 vector to floating-point vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q7_to_float( - q7_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @ingroup groupController - */ - - /** - * @defgroup inv_park Vector Inverse Park transform - * Inverse Park transform converts the input flux and torque components to two-coordinate vector. - * - * The function operates on a single sample of data and each call to the function returns the processed output. - * The library provides separate functions for Q31 and floating-point data types. - * \par Algorithm - * \image html parkInvFormula.gif - * where pIalpha and pIbeta are the stator vector components, - * Id and Iq are rotor vector components and cosVal and sinVal are the - * cosine and sine values of theta (rotor flux position). - * \par Fixed-Point Behavior - * Care must be taken when using the Q31 version of the Park transform. - * In particular, the overflow and saturation behavior of the accumulator used must be considered. - * Refer to the function specific documentation below for usage guidelines. - */ - - /** - * @addtogroup inv_park - * @{ - */ - - /** - * @brief Floating-point Inverse Park transform - * @param[in] Id input coordinate of rotor reference frame d - * @param[in] Iq input coordinate of rotor reference frame q - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - */ - - static __INLINE void arm_inv_park_f32( - float32_t Id, - float32_t Iq, - float32_t * pIalpha, - float32_t * pIbeta, - float32_t sinVal, - float32_t cosVal) - { - /* Calculate pIalpha using the equation, pIalpha = Id * cosVal - Iq * sinVal */ - *pIalpha = Id * cosVal - Iq * sinVal; - - /* Calculate pIbeta using the equation, pIbeta = Id * sinVal + Iq * cosVal */ - *pIbeta = Id * sinVal + Iq * cosVal; - - } - - - /** - * @brief Inverse Park transform for Q31 version - * @param[in] Id input coordinate of rotor reference frame d - * @param[in] Iq input coordinate of rotor reference frame q - * @param[out] *pIalpha points to output two-phase orthogonal vector axis alpha - * @param[out] *pIbeta points to output two-phase orthogonal vector axis beta - * @param[in] sinVal sine value of rotation angle theta - * @param[in] cosVal cosine value of rotation angle theta - * @return none. - * - * Scaling and Overflow Behavior: - * \par - * The function is implemented using an internal 32-bit accumulator. - * The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. - * There is saturation on the addition, hence there is no risk of overflow. - */ - - - static __INLINE void arm_inv_park_q31( - q31_t Id, - q31_t Iq, - q31_t * pIalpha, - q31_t * pIbeta, - q31_t sinVal, - q31_t cosVal) - { - q31_t product1, product2; /* Temporary variables used to store intermediate results */ - q31_t product3, product4; /* Temporary variables used to store intermediate results */ - - /* Intermediate product is calculated by (Id * cosVal) */ - product1 = (q31_t) (((q63_t) (Id) * (cosVal)) >> 31); - - /* Intermediate product is calculated by (Iq * sinVal) */ - product2 = (q31_t) (((q63_t) (Iq) * (sinVal)) >> 31); - - - /* Intermediate product is calculated by (Id * sinVal) */ - product3 = (q31_t) (((q63_t) (Id) * (sinVal)) >> 31); - - /* Intermediate product is calculated by (Iq * cosVal) */ - product4 = (q31_t) (((q63_t) (Iq) * (cosVal)) >> 31); - - /* Calculate pIalpha by using the two intermediate products 1 and 2 */ - *pIalpha = __QSUB(product1, product2); - - /* Calculate pIbeta by using the two intermediate products 3 and 4 */ - *pIbeta = __QADD(product4, product3); - - } - - /** - * @} end of Inverse park group - */ - - - /** - * @brief Converts the elements of the Q31 vector to floating-point vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q31_to_float( - q31_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - /** - * @ingroup groupInterpolation - */ - - /** - * @defgroup LinearInterpolate Linear Interpolation - * - * Linear interpolation is a method of curve fitting using linear polynomials. - * Linear interpolation works by effectively drawing a straight line between two neighboring samples and returning the appropriate point along that line - * - * \par - * \image html LinearInterp.gif "Linear interpolation" - * - * \par - * A Linear Interpolate function calculates an output value(y), for the input(x) - * using linear interpolation of the input values x0, x1( nearest input values) and the output values y0 and y1(nearest output values) - * - * \par Algorithm: - *
-   *       y = y0 + (x - x0) * ((y1 - y0)/(x1-x0))
-   *       where x0, x1 are nearest values of input x
-   *             y0, y1 are nearest values to output y
-   * 
- * - * \par - * This set of functions implements Linear interpolation process - * for Q7, Q15, Q31, and floating-point data types. The functions operate on a single - * sample of data and each call to the function returns a single processed value. - * S points to an instance of the Linear Interpolate function data structure. - * x is the input sample value. The functions returns the output value. - * - * \par - * if x is outside of the table boundary, Linear interpolation returns first value of the table - * if x is below input range and returns last value of table if x is above range. - */ - - /** - * @addtogroup LinearInterpolate - * @{ - */ - - /** - * @brief Process function for the floating-point Linear Interpolation Function. - * @param[in,out] *S is an instance of the floating-point Linear Interpolation structure - * @param[in] x input sample to process - * @return y processed output sample. - * - */ - - static __INLINE float32_t arm_linear_interp_f32( - arm_linear_interp_instance_f32 * S, - float32_t x) - { - - float32_t y; - float32_t x0, x1; /* Nearest input values */ - float32_t y0, y1; /* Nearest output values */ - float32_t xSpacing = S->xSpacing; /* spacing between input values */ - int32_t i; /* Index variable */ - float32_t *pYData = S->pYData; /* pointer to output table */ - - /* Calculation of index */ - i = (int32_t) ((x - S->x1) / xSpacing); - - if(i < 0) - { - /* Iniatilize output for below specified range as least output value of table */ - y = pYData[0]; - } - else if((uint32_t)i >= S->nValues) - { - /* Iniatilize output for above specified range as last output value of table */ - y = pYData[S->nValues - 1]; - } - else - { - /* Calculation of nearest input values */ - x0 = S->x1 + i * xSpacing; - x1 = S->x1 + (i + 1) * xSpacing; - - /* Read of nearest output values */ - y0 = pYData[i]; - y1 = pYData[i + 1]; - - /* Calculation of output */ - y = y0 + (x - x0) * ((y1 - y0) / (x1 - x0)); - - } - - /* returns output value */ - return (y); - } - - /** - * - * @brief Process function for the Q31 Linear Interpolation Function. - * @param[in] *pYData pointer to Q31 Linear Interpolation table - * @param[in] x input sample to process - * @param[in] nValues number of table values - * @return y processed output sample. - * - * \par - * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. - * This function can support maximum of table size 2^12. - * - */ - - - static __INLINE q31_t arm_linear_interp_q31( - q31_t * pYData, - q31_t x, - uint32_t nValues) - { - q31_t y; /* output */ - q31_t y0, y1; /* Nearest output values */ - q31_t fract; /* fractional part */ - int32_t index; /* Index to read nearest output values */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - index = ((x & 0xFFF00000) >> 20); - - if(index >= (int32_t)(nValues - 1)) - { - return (pYData[nValues - 1]); - } - else if(index < 0) - { - return (pYData[0]); - } - else - { - - /* 20 bits for the fractional part */ - /* shift left by 11 to keep fract in 1.31 format */ - fract = (x & 0x000FFFFF) << 11; - - /* Read two nearest output values from the index in 1.31(q31) format */ - y0 = pYData[index]; - y1 = pYData[index + 1u]; - - /* Calculation of y0 * (1-fract) and y is in 2.30 format */ - y = ((q31_t) ((q63_t) y0 * (0x7FFFFFFF - fract) >> 32)); - - /* Calculation of y0 * (1-fract) + y1 *fract and y is in 2.30 format */ - y += ((q31_t) (((q63_t) y1 * fract) >> 32)); - - /* Convert y to 1.31 format */ - return (y << 1u); - - } - - } - - /** - * - * @brief Process function for the Q15 Linear Interpolation Function. - * @param[in] *pYData pointer to Q15 Linear Interpolation table - * @param[in] x input sample to process - * @param[in] nValues number of table values - * @return y processed output sample. - * - * \par - * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. - * This function can support maximum of table size 2^12. - * - */ - - - static __INLINE q15_t arm_linear_interp_q15( - q15_t * pYData, - q31_t x, - uint32_t nValues) - { - q63_t y; /* output */ - q15_t y0, y1; /* Nearest output values */ - q31_t fract; /* fractional part */ - int32_t index; /* Index to read nearest output values */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - index = ((x & 0xFFF00000) >> 20u); - - if(index >= (int32_t)(nValues - 1)) - { - return (pYData[nValues - 1]); - } - else if(index < 0) - { - return (pYData[0]); - } - else - { - /* 20 bits for the fractional part */ - /* fract is in 12.20 format */ - fract = (x & 0x000FFFFF); - - /* Read two nearest output values from the index */ - y0 = pYData[index]; - y1 = pYData[index + 1u]; - - /* Calculation of y0 * (1-fract) and y is in 13.35 format */ - y = ((q63_t) y0 * (0xFFFFF - fract)); - - /* Calculation of (y0 * (1-fract) + y1 * fract) and y is in 13.35 format */ - y += ((q63_t) y1 * (fract)); - - /* convert y to 1.15 format */ - return (y >> 20); - } - - - } - - /** - * - * @brief Process function for the Q7 Linear Interpolation Function. - * @param[in] *pYData pointer to Q7 Linear Interpolation table - * @param[in] x input sample to process - * @param[in] nValues number of table values - * @return y processed output sample. - * - * \par - * Input sample x is in 12.20 format which contains 12 bits for table index and 20 bits for fractional part. - * This function can support maximum of table size 2^12. - */ - - - static __INLINE q7_t arm_linear_interp_q7( - q7_t * pYData, - q31_t x, - uint32_t nValues) - { - q31_t y; /* output */ - q7_t y0, y1; /* Nearest output values */ - q31_t fract; /* fractional part */ - uint32_t index; /* Index to read nearest output values */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - if (x < 0) - { - return (pYData[0]); - } - index = (x >> 20) & 0xfff; - - - if(index >= (nValues - 1)) - { - return (pYData[nValues - 1]); - } - else - { - - /* 20 bits for the fractional part */ - /* fract is in 12.20 format */ - fract = (x & 0x000FFFFF); - - /* Read two nearest output values from the index and are in 1.7(q7) format */ - y0 = pYData[index]; - y1 = pYData[index + 1u]; - - /* Calculation of y0 * (1-fract ) and y is in 13.27(q27) format */ - y = ((y0 * (0xFFFFF - fract))); - - /* Calculation of y1 * fract + y0 * (1-fract) and y is in 13.27(q27) format */ - y += (y1 * fract); - - /* convert y to 1.7(q7) format */ - return (y >> 20u); - - } - - } - /** - * @} end of LinearInterpolate group - */ - - /** - * @brief Fast approximation to the trigonometric sine function for floating-point data. - * @param[in] x input value in radians. - * @return sin(x). - */ - - float32_t arm_sin_f32( - float32_t x); - - /** - * @brief Fast approximation to the trigonometric sine function for Q31 data. - * @param[in] x Scaled input value in radians. - * @return sin(x). - */ - - q31_t arm_sin_q31( - q31_t x); - - /** - * @brief Fast approximation to the trigonometric sine function for Q15 data. - * @param[in] x Scaled input value in radians. - * @return sin(x). - */ - - q15_t arm_sin_q15( - q15_t x); - - /** - * @brief Fast approximation to the trigonometric cosine function for floating-point data. - * @param[in] x input value in radians. - * @return cos(x). - */ - - float32_t arm_cos_f32( - float32_t x); - - /** - * @brief Fast approximation to the trigonometric cosine function for Q31 data. - * @param[in] x Scaled input value in radians. - * @return cos(x). - */ - - q31_t arm_cos_q31( - q31_t x); - - /** - * @brief Fast approximation to the trigonometric cosine function for Q15 data. - * @param[in] x Scaled input value in radians. - * @return cos(x). - */ - - q15_t arm_cos_q15( - q15_t x); - - - /** - * @ingroup groupFastMath - */ - - - /** - * @defgroup SQRT Square Root - * - * Computes the square root of a number. - * There are separate functions for Q15, Q31, and floating-point data types. - * The square root function is computed using the Newton-Raphson algorithm. - * This is an iterative algorithm of the form: - *
-   *      x1 = x0 - f(x0)/f'(x0)
-   * 
- * where x1 is the current estimate, - * x0 is the previous estimate, and - * f'(x0) is the derivative of f() evaluated at x0. - * For the square root function, the algorithm reduces to: - *
-   *     x0 = in/2                         [initial guess]
-   *     x1 = 1/2 * ( x0 + in / x0)        [each iteration]
-   * 
- */ - - - /** - * @addtogroup SQRT - * @{ - */ - - /** - * @brief Floating-point square root function. - * @param[in] in input value. - * @param[out] *pOut square root of input value. - * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if - * in is negative value and returns zero output for negative values. - */ - - static __INLINE arm_status arm_sqrt_f32( - float32_t in, - float32_t * pOut) - { - if(in > 0) - { - -// #if __FPU_USED -#if (__FPU_USED == 1) && defined ( __CC_ARM ) - *pOut = __sqrtf(in); -#else - *pOut = sqrtf(in); -#endif - - return (ARM_MATH_SUCCESS); - } - else - { - *pOut = 0.0f; - return (ARM_MATH_ARGUMENT_ERROR); - } - - } - - - /** - * @brief Q31 square root function. - * @param[in] in input value. The range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. - * @param[out] *pOut square root of input value. - * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if - * in is negative value and returns zero output for negative values. - */ - arm_status arm_sqrt_q31( - q31_t in, - q31_t * pOut); - - /** - * @brief Q15 square root function. - * @param[in] in input value. The range of the input value is [0 +1) or 0x0000 to 0x7FFF. - * @param[out] *pOut square root of input value. - * @return The function returns ARM_MATH_SUCCESS if input value is positive value or ARM_MATH_ARGUMENT_ERROR if - * in is negative value and returns zero output for negative values. - */ - arm_status arm_sqrt_q15( - q15_t in, - q15_t * pOut); - - /** - * @} end of SQRT group - */ - - - - - - - /** - * @brief floating-point Circular write function. - */ - - static __INLINE void arm_circularWrite_f32( - int32_t * circBuffer, - int32_t L, - uint16_t * writeOffset, - int32_t bufferInc, - const int32_t * src, - int32_t srcInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t wOffset; - - /* Copy the value of Index pointer that points - * to the current location where the input samples to be copied */ - wOffset = *writeOffset; - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the input sample to the circular buffer */ - circBuffer[wOffset] = *src; - - /* Update the input pointer */ - src += srcInc; - - /* Circularly update wOffset. Watch out for positive and negative value */ - wOffset += bufferInc; - if(wOffset >= L) - wOffset -= L; - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *writeOffset = wOffset; - } - - - - /** - * @brief floating-point Circular Read function. - */ - static __INLINE void arm_circularRead_f32( - int32_t * circBuffer, - int32_t L, - int32_t * readOffset, - int32_t bufferInc, - int32_t * dst, - int32_t * dst_base, - int32_t dst_length, - int32_t dstInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t rOffset, dst_end; - - /* Copy the value of Index pointer that points - * to the current location from where the input samples to be read */ - rOffset = *readOffset; - dst_end = (int32_t) (dst_base + dst_length); - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the sample from the circular buffer to the destination buffer */ - *dst = circBuffer[rOffset]; - - /* Update the input pointer */ - dst += dstInc; - - if(dst == (int32_t *) dst_end) - { - dst = dst_base; - } - - /* Circularly update rOffset. Watch out for positive and negative value */ - rOffset += bufferInc; - - if(rOffset >= L) - { - rOffset -= L; - } - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *readOffset = rOffset; - } - - /** - * @brief Q15 Circular write function. - */ - - static __INLINE void arm_circularWrite_q15( - q15_t * circBuffer, - int32_t L, - uint16_t * writeOffset, - int32_t bufferInc, - const q15_t * src, - int32_t srcInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t wOffset; - - /* Copy the value of Index pointer that points - * to the current location where the input samples to be copied */ - wOffset = *writeOffset; - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the input sample to the circular buffer */ - circBuffer[wOffset] = *src; - - /* Update the input pointer */ - src += srcInc; - - /* Circularly update wOffset. Watch out for positive and negative value */ - wOffset += bufferInc; - if(wOffset >= L) - wOffset -= L; - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *writeOffset = wOffset; - } - - - - /** - * @brief Q15 Circular Read function. - */ - static __INLINE void arm_circularRead_q15( - q15_t * circBuffer, - int32_t L, - int32_t * readOffset, - int32_t bufferInc, - q15_t * dst, - q15_t * dst_base, - int32_t dst_length, - int32_t dstInc, - uint32_t blockSize) - { - uint32_t i = 0; - int32_t rOffset, dst_end; - - /* Copy the value of Index pointer that points - * to the current location from where the input samples to be read */ - rOffset = *readOffset; - - dst_end = (int32_t) (dst_base + dst_length); - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the sample from the circular buffer to the destination buffer */ - *dst = circBuffer[rOffset]; - - /* Update the input pointer */ - dst += dstInc; - - if(dst == (q15_t *) dst_end) - { - dst = dst_base; - } - - /* Circularly update wOffset. Watch out for positive and negative value */ - rOffset += bufferInc; - - if(rOffset >= L) - { - rOffset -= L; - } - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *readOffset = rOffset; - } - - - /** - * @brief Q7 Circular write function. - */ - - static __INLINE void arm_circularWrite_q7( - q7_t * circBuffer, - int32_t L, - uint16_t * writeOffset, - int32_t bufferInc, - const q7_t * src, - int32_t srcInc, - uint32_t blockSize) - { - uint32_t i = 0u; - int32_t wOffset; - - /* Copy the value of Index pointer that points - * to the current location where the input samples to be copied */ - wOffset = *writeOffset; - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the input sample to the circular buffer */ - circBuffer[wOffset] = *src; - - /* Update the input pointer */ - src += srcInc; - - /* Circularly update wOffset. Watch out for positive and negative value */ - wOffset += bufferInc; - if(wOffset >= L) - wOffset -= L; - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *writeOffset = wOffset; - } - - - - /** - * @brief Q7 Circular Read function. - */ - static __INLINE void arm_circularRead_q7( - q7_t * circBuffer, - int32_t L, - int32_t * readOffset, - int32_t bufferInc, - q7_t * dst, - q7_t * dst_base, - int32_t dst_length, - int32_t dstInc, - uint32_t blockSize) - { - uint32_t i = 0; - int32_t rOffset, dst_end; - - /* Copy the value of Index pointer that points - * to the current location from where the input samples to be read */ - rOffset = *readOffset; - - dst_end = (int32_t) (dst_base + dst_length); - - /* Loop over the blockSize */ - i = blockSize; - - while(i > 0u) - { - /* copy the sample from the circular buffer to the destination buffer */ - *dst = circBuffer[rOffset]; - - /* Update the input pointer */ - dst += dstInc; - - if(dst == (q7_t *) dst_end) - { - dst = dst_base; - } - - /* Circularly update rOffset. Watch out for positive and negative value */ - rOffset += bufferInc; - - if(rOffset >= L) - { - rOffset -= L; - } - - /* Decrement the loop counter */ - i--; - } - - /* Update the index pointer */ - *readOffset = rOffset; - } - - - /** - * @brief Sum of the squares of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_q31( - q31_t * pSrc, - uint32_t blockSize, - q63_t * pResult); - - /** - * @brief Sum of the squares of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Sum of the squares of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_q15( - q15_t * pSrc, - uint32_t blockSize, - q63_t * pResult); - - /** - * @brief Sum of the squares of the elements of a Q7 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_power_q7( - q7_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Mean value of a Q7 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_mean_q7( - q7_t * pSrc, - uint32_t blockSize, - q7_t * pResult); - - /** - * @brief Mean value of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - void arm_mean_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult); - - /** - * @brief Mean value of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - void arm_mean_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Mean value of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - void arm_mean_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Variance of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_var_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Variance of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_var_q31( - q31_t * pSrc, - uint32_t blockSize, - q63_t * pResult); - - /** - * @brief Variance of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_var_q15( - q15_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Root Mean Square of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_rms_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Root Mean Square of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_rms_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Root Mean Square of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_rms_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult); - - /** - * @brief Standard deviation of the elements of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_std_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult); - - /** - * @brief Standard deviation of the elements of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_std_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult); - - /** - * @brief Standard deviation of the elements of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output value. - * @return none. - */ - - void arm_std_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult); - - /** - * @brief Floating-point complex magnitude - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_f32( - float32_t * pSrc, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex magnitude - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_q31( - q31_t * pSrc, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex magnitude - * @param[in] *pSrc points to the complex input vector - * @param[out] *pDst points to the real output vector - * @param[in] numSamples number of complex samples in the input vector - * @return none. - */ - - void arm_cmplx_mag_q15( - q15_t * pSrc, - q15_t * pDst, - uint32_t numSamples); - - /** - * @brief Q15 complex dot product - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] numSamples number of complex samples in each vector - * @param[out] *realResult real part of the result returned here - * @param[out] *imagResult imaginary part of the result returned here - * @return none. - */ - - void arm_cmplx_dot_prod_q15( - q15_t * pSrcA, - q15_t * pSrcB, - uint32_t numSamples, - q31_t * realResult, - q31_t * imagResult); - - /** - * @brief Q31 complex dot product - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] numSamples number of complex samples in each vector - * @param[out] *realResult real part of the result returned here - * @param[out] *imagResult imaginary part of the result returned here - * @return none. - */ - - void arm_cmplx_dot_prod_q31( - q31_t * pSrcA, - q31_t * pSrcB, - uint32_t numSamples, - q63_t * realResult, - q63_t * imagResult); - - /** - * @brief Floating-point complex dot product - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[in] numSamples number of complex samples in each vector - * @param[out] *realResult real part of the result returned here - * @param[out] *imagResult imaginary part of the result returned here - * @return none. - */ - - void arm_cmplx_dot_prod_f32( - float32_t * pSrcA, - float32_t * pSrcB, - uint32_t numSamples, - float32_t * realResult, - float32_t * imagResult); - - /** - * @brief Q15 complex-by-real multiplication - * @param[in] *pSrcCmplx points to the complex input vector - * @param[in] *pSrcReal points to the real input vector - * @param[out] *pCmplxDst points to the complex output vector - * @param[in] numSamples number of samples in each vector - * @return none. - */ - - void arm_cmplx_mult_real_q15( - q15_t * pSrcCmplx, - q15_t * pSrcReal, - q15_t * pCmplxDst, - uint32_t numSamples); - - /** - * @brief Q31 complex-by-real multiplication - * @param[in] *pSrcCmplx points to the complex input vector - * @param[in] *pSrcReal points to the real input vector - * @param[out] *pCmplxDst points to the complex output vector - * @param[in] numSamples number of samples in each vector - * @return none. - */ - - void arm_cmplx_mult_real_q31( - q31_t * pSrcCmplx, - q31_t * pSrcReal, - q31_t * pCmplxDst, - uint32_t numSamples); - - /** - * @brief Floating-point complex-by-real multiplication - * @param[in] *pSrcCmplx points to the complex input vector - * @param[in] *pSrcReal points to the real input vector - * @param[out] *pCmplxDst points to the complex output vector - * @param[in] numSamples number of samples in each vector - * @return none. - */ - - void arm_cmplx_mult_real_f32( - float32_t * pSrcCmplx, - float32_t * pSrcReal, - float32_t * pCmplxDst, - uint32_t numSamples); - - /** - * @brief Minimum value of a Q7 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *result is output pointer - * @param[in] index is the array index of the minimum value in the input buffer. - * @return none. - */ - - void arm_min_q7( - q7_t * pSrc, - uint32_t blockSize, - q7_t * result, - uint32_t * index); - - /** - * @brief Minimum value of a Q15 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output pointer - * @param[in] *pIndex is the array index of the minimum value in the input buffer. - * @return none. - */ - - void arm_min_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult, - uint32_t * pIndex); - - /** - * @brief Minimum value of a Q31 vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output pointer - * @param[out] *pIndex is the array index of the minimum value in the input buffer. - * @return none. - */ - void arm_min_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult, - uint32_t * pIndex); - - /** - * @brief Minimum value of a floating-point vector. - * @param[in] *pSrc is input pointer - * @param[in] blockSize is the number of samples to process - * @param[out] *pResult is output pointer - * @param[out] *pIndex is the array index of the minimum value in the input buffer. - * @return none. - */ - - void arm_min_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a Q7 vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_q7( - q7_t * pSrc, - uint32_t blockSize, - q7_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a Q15 vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_q15( - q15_t * pSrc, - uint32_t blockSize, - q15_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a Q31 vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_q31( - q31_t * pSrc, - uint32_t blockSize, - q31_t * pResult, - uint32_t * pIndex); - -/** - * @brief Maximum value of a floating-point vector. - * @param[in] *pSrc points to the input buffer - * @param[in] blockSize length of the input vector - * @param[out] *pResult maximum value returned here - * @param[out] *pIndex index of maximum value returned here - * @return none. - */ - - void arm_max_f32( - float32_t * pSrc, - uint32_t blockSize, - float32_t * pResult, - uint32_t * pIndex); - - /** - * @brief Q15 complex-by-complex multiplication - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_mult_cmplx_q15( - q15_t * pSrcA, - q15_t * pSrcB, - q15_t * pDst, - uint32_t numSamples); - - /** - * @brief Q31 complex-by-complex multiplication - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_mult_cmplx_q31( - q31_t * pSrcA, - q31_t * pSrcB, - q31_t * pDst, - uint32_t numSamples); - - /** - * @brief Floating-point complex-by-complex multiplication - * @param[in] *pSrcA points to the first input vector - * @param[in] *pSrcB points to the second input vector - * @param[out] *pDst points to the output vector - * @param[in] numSamples number of complex samples in each vector - * @return none. - */ - - void arm_cmplx_mult_cmplx_f32( - float32_t * pSrcA, - float32_t * pSrcB, - float32_t * pDst, - uint32_t numSamples); - - /** - * @brief Converts the elements of the floating-point vector to Q31 vector. - * @param[in] *pSrc points to the floating-point input vector - * @param[out] *pDst points to the Q31 output vector - * @param[in] blockSize length of the input vector - * @return none. - */ - void arm_float_to_q31( - float32_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the floating-point vector to Q15 vector. - * @param[in] *pSrc points to the floating-point input vector - * @param[out] *pDst points to the Q15 output vector - * @param[in] blockSize length of the input vector - * @return none - */ - void arm_float_to_q15( - float32_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the floating-point vector to Q7 vector. - * @param[in] *pSrc points to the floating-point input vector - * @param[out] *pDst points to the Q7 output vector - * @param[in] blockSize length of the input vector - * @return none - */ - void arm_float_to_q7( - float32_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - - /** - * @brief Converts the elements of the Q31 vector to Q15 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q31_to_q15( - q31_t * pSrc, - q15_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the Q31 vector to Q7 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q31_to_q7( - q31_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - /** - * @brief Converts the elements of the Q15 vector to floating-point vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q15_to_float( - q15_t * pSrc, - float32_t * pDst, - uint32_t blockSize); - - - /** - * @brief Converts the elements of the Q15 vector to Q31 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q15_to_q31( - q15_t * pSrc, - q31_t * pDst, - uint32_t blockSize); - - - /** - * @brief Converts the elements of the Q15 vector to Q7 vector. - * @param[in] *pSrc is input pointer - * @param[out] *pDst is output pointer - * @param[in] blockSize is the number of samples to process - * @return none. - */ - void arm_q15_to_q7( - q15_t * pSrc, - q7_t * pDst, - uint32_t blockSize); - - - /** - * @ingroup groupInterpolation - */ - - /** - * @defgroup BilinearInterpolate Bilinear Interpolation - * - * Bilinear interpolation is an extension of linear interpolation applied to a two dimensional grid. - * The underlying function f(x, y) is sampled on a regular grid and the interpolation process - * determines values between the grid points. - * Bilinear interpolation is equivalent to two step linear interpolation, first in the x-dimension and then in the y-dimension. - * Bilinear interpolation is often used in image processing to rescale images. - * The CMSIS DSP library provides bilinear interpolation functions for Q7, Q15, Q31, and floating-point data types. - * - * Algorithm - * \par - * The instance structure used by the bilinear interpolation functions describes a two dimensional data table. - * For floating-point, the instance structure is defined as: - *
-   *   typedef struct
-   *   {
-   *     uint16_t numRows;
-   *     uint16_t numCols;
-   *     float32_t *pData;
-   * } arm_bilinear_interp_instance_f32;
-   * 
- * - * \par - * where numRows specifies the number of rows in the table; - * numCols specifies the number of columns in the table; - * and pData points to an array of size numRows*numCols values. - * The data table pTable is organized in row order and the supplied data values fall on integer indexes. - * That is, table element (x,y) is located at pTable[x + y*numCols] where x and y are integers. - * - * \par - * Let (x, y) specify the desired interpolation point. Then define: - *
-   *     XF = floor(x)
-   *     YF = floor(y)
-   * 
- * \par - * The interpolated output point is computed as: - *
-   *  f(x, y) = f(XF, YF) * (1-(x-XF)) * (1-(y-YF))
-   *           + f(XF+1, YF) * (x-XF)*(1-(y-YF))
-   *           + f(XF, YF+1) * (1-(x-XF))*(y-YF)
-   *           + f(XF+1, YF+1) * (x-XF)*(y-YF)
-   * 
- * Note that the coordinates (x, y) contain integer and fractional components. - * The integer components specify which portion of the table to use while the - * fractional components control the interpolation processor. - * - * \par - * if (x,y) are outside of the table boundary, Bilinear interpolation returns zero output. - */ - - /** - * @addtogroup BilinearInterpolate - * @{ - */ - - /** - * - * @brief Floating-point bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate. - * @param[in] Y interpolation coordinate. - * @return out interpolated value. - */ - - - static __INLINE float32_t arm_bilinear_interp_f32( - const arm_bilinear_interp_instance_f32 * S, - float32_t X, - float32_t Y) - { - float32_t out; - float32_t f00, f01, f10, f11; - float32_t *pData = S->pData; - int32_t xIndex, yIndex, index; - float32_t xdiff, ydiff; - float32_t b1, b2, b3, b4; - - xIndex = (int32_t) X; - yIndex = (int32_t) Y; - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(xIndex < 0 || xIndex > (S->numRows - 1) || yIndex < 0 - || yIndex > (S->numCols - 1)) - { - return (0); - } - - /* Calculation of index for two nearest points in X-direction */ - index = (xIndex - 1) + (yIndex - 1) * S->numCols; - - - /* Read two nearest points in X-direction */ - f00 = pData[index]; - f01 = pData[index + 1]; - - /* Calculation of index for two nearest points in Y-direction */ - index = (xIndex - 1) + (yIndex) * S->numCols; - - - /* Read two nearest points in Y-direction */ - f10 = pData[index]; - f11 = pData[index + 1]; - - /* Calculation of intermediate values */ - b1 = f00; - b2 = f01 - f00; - b3 = f10 - f00; - b4 = f00 - f01 - f10 + f11; - - /* Calculation of fractional part in X */ - xdiff = X - xIndex; - - /* Calculation of fractional part in Y */ - ydiff = Y - yIndex; - - /* Calculation of bi-linear interpolated output */ - out = b1 + b2 * xdiff + b3 * ydiff + b4 * xdiff * ydiff; - - /* return to application */ - return (out); - - } - - /** - * - * @brief Q31 bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate in 12.20 format. - * @param[in] Y interpolation coordinate in 12.20 format. - * @return out interpolated value. - */ - - static __INLINE q31_t arm_bilinear_interp_q31( - arm_bilinear_interp_instance_q31 * S, - q31_t X, - q31_t Y) - { - q31_t out; /* Temporary output */ - q31_t acc = 0; /* output */ - q31_t xfract, yfract; /* X, Y fractional parts */ - q31_t x1, x2, y1, y2; /* Nearest output values */ - int32_t rI, cI; /* Row and column indices */ - q31_t *pYData = S->pData; /* pointer to output table values */ - uint32_t nCols = S->numCols; /* num of rows */ - - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - rI = ((X & 0xFFF00000) >> 20u); - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - cI = ((Y & 0xFFF00000) >> 20u); - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) - { - return (0); - } - - /* 20 bits for the fractional part */ - /* shift left xfract by 11 to keep 1.31 format */ - xfract = (X & 0x000FFFFF) << 11u; - - /* Read two nearest output values from the index */ - x1 = pYData[(rI) + nCols * (cI)]; - x2 = pYData[(rI) + nCols * (cI) + 1u]; - - /* 20 bits for the fractional part */ - /* shift left yfract by 11 to keep 1.31 format */ - yfract = (Y & 0x000FFFFF) << 11u; - - /* Read two nearest output values from the index */ - y1 = pYData[(rI) + nCols * (cI + 1)]; - y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; - - /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 3.29(q29) format */ - out = ((q31_t) (((q63_t) x1 * (0x7FFFFFFF - xfract)) >> 32)); - acc = ((q31_t) (((q63_t) out * (0x7FFFFFFF - yfract)) >> 32)); - - /* x2 * (xfract) * (1-yfract) in 3.29(q29) and adding to acc */ - out = ((q31_t) ((q63_t) x2 * (0x7FFFFFFF - yfract) >> 32)); - acc += ((q31_t) ((q63_t) out * (xfract) >> 32)); - - /* y1 * (1 - xfract) * (yfract) in 3.29(q29) and adding to acc */ - out = ((q31_t) ((q63_t) y1 * (0x7FFFFFFF - xfract) >> 32)); - acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); - - /* y2 * (xfract) * (yfract) in 3.29(q29) and adding to acc */ - out = ((q31_t) ((q63_t) y2 * (xfract) >> 32)); - acc += ((q31_t) ((q63_t) out * (yfract) >> 32)); - - /* Convert acc to 1.31(q31) format */ - return (acc << 2u); - - } - - /** - * @brief Q15 bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate in 12.20 format. - * @param[in] Y interpolation coordinate in 12.20 format. - * @return out interpolated value. - */ - - static __INLINE q15_t arm_bilinear_interp_q15( - arm_bilinear_interp_instance_q15 * S, - q31_t X, - q31_t Y) - { - q63_t acc = 0; /* output */ - q31_t out; /* Temporary output */ - q15_t x1, x2, y1, y2; /* Nearest output values */ - q31_t xfract, yfract; /* X, Y fractional parts */ - int32_t rI, cI; /* Row and column indices */ - q15_t *pYData = S->pData; /* pointer to output table values */ - uint32_t nCols = S->numCols; /* num of rows */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - rI = ((X & 0xFFF00000) >> 20); - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - cI = ((Y & 0xFFF00000) >> 20); - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) - { - return (0); - } - - /* 20 bits for the fractional part */ - /* xfract should be in 12.20 format */ - xfract = (X & 0x000FFFFF); - - /* Read two nearest output values from the index */ - x1 = pYData[(rI) + nCols * (cI)]; - x2 = pYData[(rI) + nCols * (cI) + 1u]; - - - /* 20 bits for the fractional part */ - /* yfract should be in 12.20 format */ - yfract = (Y & 0x000FFFFF); - - /* Read two nearest output values from the index */ - y1 = pYData[(rI) + nCols * (cI + 1)]; - y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; - - /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 13.51 format */ - - /* x1 is in 1.15(q15), xfract in 12.20 format and out is in 13.35 format */ - /* convert 13.35 to 13.31 by right shifting and out is in 1.31 */ - out = (q31_t) (((q63_t) x1 * (0xFFFFF - xfract)) >> 4u); - acc = ((q63_t) out * (0xFFFFF - yfract)); - - /* x2 * (xfract) * (1-yfract) in 1.51 and adding to acc */ - out = (q31_t) (((q63_t) x2 * (0xFFFFF - yfract)) >> 4u); - acc += ((q63_t) out * (xfract)); - - /* y1 * (1 - xfract) * (yfract) in 1.51 and adding to acc */ - out = (q31_t) (((q63_t) y1 * (0xFFFFF - xfract)) >> 4u); - acc += ((q63_t) out * (yfract)); - - /* y2 * (xfract) * (yfract) in 1.51 and adding to acc */ - out = (q31_t) (((q63_t) y2 * (xfract)) >> 4u); - acc += ((q63_t) out * (yfract)); - - /* acc is in 13.51 format and down shift acc by 36 times */ - /* Convert out to 1.15 format */ - return (acc >> 36); - - } - - /** - * @brief Q7 bilinear interpolation. - * @param[in,out] *S points to an instance of the interpolation structure. - * @param[in] X interpolation coordinate in 12.20 format. - * @param[in] Y interpolation coordinate in 12.20 format. - * @return out interpolated value. - */ - - static __INLINE q7_t arm_bilinear_interp_q7( - arm_bilinear_interp_instance_q7 * S, - q31_t X, - q31_t Y) - { - q63_t acc = 0; /* output */ - q31_t out; /* Temporary output */ - q31_t xfract, yfract; /* X, Y fractional parts */ - q7_t x1, x2, y1, y2; /* Nearest output values */ - int32_t rI, cI; /* Row and column indices */ - q7_t *pYData = S->pData; /* pointer to output table values */ - uint32_t nCols = S->numCols; /* num of rows */ - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - rI = ((X & 0xFFF00000) >> 20); - - /* Input is in 12.20 format */ - /* 12 bits for the table index */ - /* Index value calculation */ - cI = ((Y & 0xFFF00000) >> 20); - - /* Care taken for table outside boundary */ - /* Returns zero output when values are outside table boundary */ - if(rI < 0 || rI > (S->numRows - 1) || cI < 0 || cI > (S->numCols - 1)) - { - return (0); - } - - /* 20 bits for the fractional part */ - /* xfract should be in 12.20 format */ - xfract = (X & 0x000FFFFF); - - /* Read two nearest output values from the index */ - x1 = pYData[(rI) + nCols * (cI)]; - x2 = pYData[(rI) + nCols * (cI) + 1u]; - - - /* 20 bits for the fractional part */ - /* yfract should be in 12.20 format */ - yfract = (Y & 0x000FFFFF); - - /* Read two nearest output values from the index */ - y1 = pYData[(rI) + nCols * (cI + 1)]; - y2 = pYData[(rI) + nCols * (cI + 1) + 1u]; - - /* Calculation of x1 * (1-xfract ) * (1-yfract) and acc is in 16.47 format */ - out = ((x1 * (0xFFFFF - xfract))); - acc = (((q63_t) out * (0xFFFFF - yfract))); - - /* x2 * (xfract) * (1-yfract) in 2.22 and adding to acc */ - out = ((x2 * (0xFFFFF - yfract))); - acc += (((q63_t) out * (xfract))); - - /* y1 * (1 - xfract) * (yfract) in 2.22 and adding to acc */ - out = ((y1 * (0xFFFFF - xfract))); - acc += (((q63_t) out * (yfract))); - - /* y2 * (xfract) * (yfract) in 2.22 and adding to acc */ - out = ((y2 * (yfract))); - acc += (((q63_t) out * (xfract))); - - /* acc in 16.47 format and down shift by 40 to convert to 1.7 format */ - return (acc >> 40); - - } - - /** - * @} end of BilinearInterpolate group - */ - - -#if defined ( __CC_ARM ) //Keil -//SMMLAR - #define multAcc_32x32_keep32_R(a, x, y) \ - a = (q31_t) (((((q63_t) a) << 32) + ((q63_t) x * y) + 0x80000000LL ) >> 32) - -//SMMLSR - #define multSub_32x32_keep32_R(a, x, y) \ - a = (q31_t) (((((q63_t) a) << 32) - ((q63_t) x * y) + 0x80000000LL ) >> 32) - -//SMMULR - #define mult_32x32_keep32_R(a, x, y) \ - a = (q31_t) (((q63_t) x * y + 0x80000000LL ) >> 32) - -//Enter low optimization region - place directly above function definition - #define LOW_OPTIMIZATION_ENTER \ - _Pragma ("push") \ - _Pragma ("O1") - -//Exit low optimization region - place directly after end of function definition - #define LOW_OPTIMIZATION_EXIT \ - _Pragma ("pop") - -//Enter low optimization region - place directly above function definition - #define IAR_ONLY_LOW_OPTIMIZATION_ENTER - -//Exit low optimization region - place directly after end of function definition - #define IAR_ONLY_LOW_OPTIMIZATION_EXIT - -#elif defined(__ICCARM__) //IAR - //SMMLA - #define multAcc_32x32_keep32_R(a, x, y) \ - a += (q31_t) (((q63_t) x * y) >> 32) - - //SMMLS - #define multSub_32x32_keep32_R(a, x, y) \ - a -= (q31_t) (((q63_t) x * y) >> 32) - -//SMMUL - #define mult_32x32_keep32_R(a, x, y) \ - a = (q31_t) (((q63_t) x * y ) >> 32) - -//Enter low optimization region - place directly above function definition - #define LOW_OPTIMIZATION_ENTER \ - _Pragma ("optimize=low") - -//Exit low optimization region - place directly after end of function definition - #define LOW_OPTIMIZATION_EXIT - -//Enter low optimization region - place directly above function definition - #define IAR_ONLY_LOW_OPTIMIZATION_ENTER \ - _Pragma ("optimize=low") - -//Exit low optimization region - place directly after end of function definition - #define IAR_ONLY_LOW_OPTIMIZATION_EXIT - -#elif defined(__GNUC__) - //SMMLA - #define multAcc_32x32_keep32_R(a, x, y) \ - a += (q31_t) (((q63_t) x * y) >> 32) - - //SMMLS - #define multSub_32x32_keep32_R(a, x, y) \ - a -= (q31_t) (((q63_t) x * y) >> 32) - -//SMMUL - #define mult_32x32_keep32_R(a, x, y) \ - a = (q31_t) (((q63_t) x * y ) >> 32) - - #define LOW_OPTIMIZATION_ENTER __attribute__(( optimize("-O1") )) - - #define LOW_OPTIMIZATION_EXIT - - #define IAR_ONLY_LOW_OPTIMIZATION_ENTER - - #define IAR_ONLY_LOW_OPTIMIZATION_EXIT - -#endif - - - - - -#ifdef __cplusplus -} -#endif - - -#endif /* _ARM_MATH_H */ - - -/** - * - * End of file. - */ diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cm0.h b/bsp/mb9bf618s/CMSIS/Include/core_cm0.h deleted file mode 100644 index ab31de0ee8..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cm0.h +++ /dev/null @@ -1,682 +0,0 @@ -/**************************************************************************//** - * @file core_cm0.h - * @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM0_H_GENERIC -#define __CORE_CM0_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup Cortex_M0 - @{ - */ - -/* CMSIS CM0 definitions */ -#define __CM0_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __CM0_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ -#define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN << 16) | \ - __CM0_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x00) /*!< Cortex-M Core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all -*/ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ - -#endif /* __CORE_CM0_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM0_H_DEPENDANT -#define __CORE_CM0_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM0_REV - #define __CM0_REV 0x0000 - #warning "__CM0_REV not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group Cortex_M0 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31]; - __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[31]; - __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31]; - __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31]; - uint32_t RESERVED4[64]; - __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - uint32_t RESERVED0; - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Cortex-M0 Core Debug Registers (DCB registers, SHCSR, and DFSR) - are only accessible over DAP and not via processor. Therefore - they are not covered by the Cortex-M0 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Cortex-M0 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/* Interrupt Priorities are WORD accessible only under ARMv6M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) -#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) -#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } - else { - NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ - else { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = ticks - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#endif /* __CORE_CM0_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cm0plus.h b/bsp/mb9bf618s/CMSIS/Include/core_cm0plus.h deleted file mode 100644 index 5cea74e9af..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cm0plus.h +++ /dev/null @@ -1,793 +0,0 @@ -/**************************************************************************//** - * @file core_cm0plus.h - * @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM0PLUS_H_GENERIC -#define __CORE_CM0PLUS_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup Cortex-M0+ - @{ - */ - -/* CMSIS CM0P definitions */ -#define __CM0PLUS_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __CM0PLUS_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ -#define __CM0PLUS_CMSIS_VERSION ((__CM0PLUS_CMSIS_VERSION_MAIN << 16) | \ - __CM0PLUS_CMSIS_VERSION_SUB) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x00) /*!< Cortex-M Core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all -*/ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ - -#endif /* __CORE_CM0PLUS_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM0PLUS_H_DEPENDANT -#define __CORE_CM0PLUS_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM0PLUS_REV - #define __CM0PLUS_REV 0x0000 - #warning "__CM0PLUS_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __VTOR_PRESENT - #define __VTOR_PRESENT 0 - #warning "__VTOR_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group Cortex-M0+ */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core MPU Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31]; - __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[31]; - __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31]; - __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31]; - uint32_t RESERVED4[64]; - __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ -#if (__VTOR_PRESENT == 1) - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ -#else - uint32_t RESERVED0; -#endif - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED1; - __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -#if (__VTOR_PRESENT == 1) -/* SCB Interrupt Control State Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 8 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0xFFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 8 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Cortex-M0+ Core Debug Registers (DCB registers, SHCSR, and DFSR) - are only accessible over DAP and not via processor. Therefore - they are not covered by the Cortex-M0 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Cortex-M0+ Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/* Interrupt Priorities are WORD accessible only under ARMv6M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) -#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) -#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } - else { - NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ - else { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = ticks - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#endif /* __CORE_CM0PLUS_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cm3.h b/bsp/mb9bf618s/CMSIS/Include/core_cm3.h deleted file mode 100644 index 122c9aa4a8..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cm3.h +++ /dev/null @@ -1,1627 +0,0 @@ -/**************************************************************************//** - * @file core_cm3.h - * @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM3_H_GENERIC -#define __CORE_CM3_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup Cortex_M3 - @{ - */ - -/* CMSIS CM3 definitions */ -#define __CM3_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __CM3_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ -#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN << 16) | \ - __CM3_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x03) /*!< Cortex-M Core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __TMS470__ ) - #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all -*/ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TMS470__ ) - #if defined __TI__VFP_SUPPORT____ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ - -#endif /* __CORE_CM3_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM3_H_DEPENDANT -#define __CORE_CM3_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM3_REV - #define __CM3_REV 0x0200 - #warning "__CM3_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group Cortex_M3 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5]; - __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#if (__CM3_REV < 0x0201) /* core r2p1 */ -#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ -#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ - -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#else -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ -#endif - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ -#if ((defined __CM3_REV) && (__CM3_REV >= 0x200)) - __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -#else - uint32_t RESERVED1[1]; -#endif -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[29]; - __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ - __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ - __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ - uint32_t RESERVED4[43]; - __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6]; - __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Integration Write Register Definitions */ -#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ -#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ - -/* ITM Integration Read Register Definitions */ -#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ -#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ - -/* ITM Integration Mode Control Register Definitions */ -#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ -#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1]; - __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1]; - __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1]; - __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2]; - __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55]; - __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131]; - __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759]; - __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ - __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1]; - __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39]; - __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8]; - __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ -#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ -#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Cortex-M3 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/** \brief Set Priority Grouping - - The function sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. - - \param [in] PriorityGroup Priority grouping field. - */ -__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** \brief Get Priority Grouping - - The function reads the priority grouping field from the NVIC Interrupt Controller. - - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Get Active Interrupt - - The function reads the active register in NVIC and returns the active bit. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - */ -__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief Encode Priority - - The function encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. - - \param [in] PriorityGroup Used priority group. - \param [in] PreemptPriority Preemptive priority value (starting from 0). - \param [in] SubPriority Subpriority value (starting from 0). - \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). - */ -__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** \brief Decode Priority - - The function decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = ticks - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** \brief ITM Send Character - - The function transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - - \param [in] ch Character to transmit. - - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** \brief ITM Receive Character - - The function inputs a character via the external variable \ref ITM_RxBuffer. - - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) { - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** \brief ITM Check Character - - The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - -#endif /* __CORE_CM3_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cm4.h b/bsp/mb9bf618s/CMSIS/Include/core_cm4.h deleted file mode 100644 index d65016c714..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cm4.h +++ /dev/null @@ -1,1772 +0,0 @@ -/**************************************************************************//** - * @file core_cm4.h - * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM4_H_GENERIC -#define __CORE_CM4_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup Cortex_M4 - @{ - */ - -/* CMSIS CM4 definitions */ -#define __CM4_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __CM4_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ -#define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN << 16) | \ - __CM4_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ - -#define __CORTEX_M (0x04) /*!< Cortex-M Core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __TMS470__ ) - #define __ASM __asm /*!< asm keyword for TI CCS Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions. -*/ -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __TMS470__ ) - #if defined __TI_VFP_SUPPORT__ - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #if (__FPU_PRESENT == 1) - #define __FPU_USED 1 - #else - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #define __FPU_USED 0 - #endif - #else - #define __FPU_USED 0 - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ -#include /* Compiler specific SIMD Intrinsics */ - -#endif /* __CORE_CM4_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_CM4_H_DEPENDANT -#define __CORE_CM4_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __CM4_REV - #define __CM4_REV 0x0000 - #warning "__CM4_REV not defined in device header file; using default!" - #endif - - #ifndef __FPU_PRESENT - #define __FPU_PRESENT 0 - #warning "__FPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group Cortex_M4 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - - Core FPU Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5]; - __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISOOFP_Pos 9 /*!< ACTLR: DISOOFP Position */ -#define SCnSCB_ACTLR_DISOOFP_Msk (1UL << SCnSCB_ACTLR_DISOOFP_Pos) /*!< ACTLR: DISOOFP Mask */ - -#define SCnSCB_ACTLR_DISFPCA_Pos 8 /*!< ACTLR: DISFPCA Position */ -#define SCnSCB_ACTLR_DISFPCA_Msk (1UL << SCnSCB_ACTLR_DISFPCA_Pos) /*!< ACTLR: DISFPCA Mask */ - -#define SCnSCB_ACTLR_DISFOLD_Pos 2 /*!< ACTLR: DISFOLD Position */ -#define SCnSCB_ACTLR_DISFOLD_Msk (1UL << SCnSCB_ACTLR_DISFOLD_Pos) /*!< ACTLR: DISFOLD Mask */ - -#define SCnSCB_ACTLR_DISDEFWBUF_Pos 1 /*!< ACTLR: DISDEFWBUF Position */ -#define SCnSCB_ACTLR_DISDEFWBUF_Msk (1UL << SCnSCB_ACTLR_DISDEFWBUF_Pos) /*!< ACTLR: DISDEFWBUF Mask */ - -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[29]; - __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ - __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ - __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ - uint32_t RESERVED4[43]; - __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6]; - __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Integration Write Register Definitions */ -#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ -#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ - -/* ITM Integration Read Register Definitions */ -#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ -#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ - -/* ITM Integration Mode Control Register Definitions */ -#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ -#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1]; - __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1]; - __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1]; - __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2]; - __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55]; - __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131]; - __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759]; - __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ - __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1]; - __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39]; - __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8]; - __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ -#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ -#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -#if (__FPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_FPU Floating Point Unit (FPU) - \brief Type definitions for the Floating Point Unit (FPU) - @{ - */ - -/** \brief Structure type to access the Floating Point Unit (FPU). - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __IO uint32_t FPCCR; /*!< Offset: 0x004 (R/W) Floating-Point Context Control Register */ - __IO uint32_t FPCAR; /*!< Offset: 0x008 (R/W) Floating-Point Context Address Register */ - __IO uint32_t FPDSCR; /*!< Offset: 0x00C (R/W) Floating-Point Default Status Control Register */ - __I uint32_t MVFR0; /*!< Offset: 0x010 (R/ ) Media and FP Feature Register 0 */ - __I uint32_t MVFR1; /*!< Offset: 0x014 (R/ ) Media and FP Feature Register 1 */ -} FPU_Type; - -/* Floating-Point Context Control Register */ -#define FPU_FPCCR_ASPEN_Pos 31 /*!< FPCCR: ASPEN bit Position */ -#define FPU_FPCCR_ASPEN_Msk (1UL << FPU_FPCCR_ASPEN_Pos) /*!< FPCCR: ASPEN bit Mask */ - -#define FPU_FPCCR_LSPEN_Pos 30 /*!< FPCCR: LSPEN Position */ -#define FPU_FPCCR_LSPEN_Msk (1UL << FPU_FPCCR_LSPEN_Pos) /*!< FPCCR: LSPEN bit Mask */ - -#define FPU_FPCCR_MONRDY_Pos 8 /*!< FPCCR: MONRDY Position */ -#define FPU_FPCCR_MONRDY_Msk (1UL << FPU_FPCCR_MONRDY_Pos) /*!< FPCCR: MONRDY bit Mask */ - -#define FPU_FPCCR_BFRDY_Pos 6 /*!< FPCCR: BFRDY Position */ -#define FPU_FPCCR_BFRDY_Msk (1UL << FPU_FPCCR_BFRDY_Pos) /*!< FPCCR: BFRDY bit Mask */ - -#define FPU_FPCCR_MMRDY_Pos 5 /*!< FPCCR: MMRDY Position */ -#define FPU_FPCCR_MMRDY_Msk (1UL << FPU_FPCCR_MMRDY_Pos) /*!< FPCCR: MMRDY bit Mask */ - -#define FPU_FPCCR_HFRDY_Pos 4 /*!< FPCCR: HFRDY Position */ -#define FPU_FPCCR_HFRDY_Msk (1UL << FPU_FPCCR_HFRDY_Pos) /*!< FPCCR: HFRDY bit Mask */ - -#define FPU_FPCCR_THREAD_Pos 3 /*!< FPCCR: processor mode bit Position */ -#define FPU_FPCCR_THREAD_Msk (1UL << FPU_FPCCR_THREAD_Pos) /*!< FPCCR: processor mode active bit Mask */ - -#define FPU_FPCCR_USER_Pos 1 /*!< FPCCR: privilege level bit Position */ -#define FPU_FPCCR_USER_Msk (1UL << FPU_FPCCR_USER_Pos) /*!< FPCCR: privilege level bit Mask */ - -#define FPU_FPCCR_LSPACT_Pos 0 /*!< FPCCR: Lazy state preservation active bit Position */ -#define FPU_FPCCR_LSPACT_Msk (1UL << FPU_FPCCR_LSPACT_Pos) /*!< FPCCR: Lazy state preservation active bit Mask */ - -/* Floating-Point Context Address Register */ -#define FPU_FPCAR_ADDRESS_Pos 3 /*!< FPCAR: ADDRESS bit Position */ -#define FPU_FPCAR_ADDRESS_Msk (0x1FFFFFFFUL << FPU_FPCAR_ADDRESS_Pos) /*!< FPCAR: ADDRESS bit Mask */ - -/* Floating-Point Default Status Control Register */ -#define FPU_FPDSCR_AHP_Pos 26 /*!< FPDSCR: AHP bit Position */ -#define FPU_FPDSCR_AHP_Msk (1UL << FPU_FPDSCR_AHP_Pos) /*!< FPDSCR: AHP bit Mask */ - -#define FPU_FPDSCR_DN_Pos 25 /*!< FPDSCR: DN bit Position */ -#define FPU_FPDSCR_DN_Msk (1UL << FPU_FPDSCR_DN_Pos) /*!< FPDSCR: DN bit Mask */ - -#define FPU_FPDSCR_FZ_Pos 24 /*!< FPDSCR: FZ bit Position */ -#define FPU_FPDSCR_FZ_Msk (1UL << FPU_FPDSCR_FZ_Pos) /*!< FPDSCR: FZ bit Mask */ - -#define FPU_FPDSCR_RMode_Pos 22 /*!< FPDSCR: RMode bit Position */ -#define FPU_FPDSCR_RMode_Msk (3UL << FPU_FPDSCR_RMode_Pos) /*!< FPDSCR: RMode bit Mask */ - -/* Media and FP Feature Register 0 */ -#define FPU_MVFR0_FP_rounding_modes_Pos 28 /*!< MVFR0: FP rounding modes bits Position */ -#define FPU_MVFR0_FP_rounding_modes_Msk (0xFUL << FPU_MVFR0_FP_rounding_modes_Pos) /*!< MVFR0: FP rounding modes bits Mask */ - -#define FPU_MVFR0_Short_vectors_Pos 24 /*!< MVFR0: Short vectors bits Position */ -#define FPU_MVFR0_Short_vectors_Msk (0xFUL << FPU_MVFR0_Short_vectors_Pos) /*!< MVFR0: Short vectors bits Mask */ - -#define FPU_MVFR0_Square_root_Pos 20 /*!< MVFR0: Square root bits Position */ -#define FPU_MVFR0_Square_root_Msk (0xFUL << FPU_MVFR0_Square_root_Pos) /*!< MVFR0: Square root bits Mask */ - -#define FPU_MVFR0_Divide_Pos 16 /*!< MVFR0: Divide bits Position */ -#define FPU_MVFR0_Divide_Msk (0xFUL << FPU_MVFR0_Divide_Pos) /*!< MVFR0: Divide bits Mask */ - -#define FPU_MVFR0_FP_excep_trapping_Pos 12 /*!< MVFR0: FP exception trapping bits Position */ -#define FPU_MVFR0_FP_excep_trapping_Msk (0xFUL << FPU_MVFR0_FP_excep_trapping_Pos) /*!< MVFR0: FP exception trapping bits Mask */ - -#define FPU_MVFR0_Double_precision_Pos 8 /*!< MVFR0: Double-precision bits Position */ -#define FPU_MVFR0_Double_precision_Msk (0xFUL << FPU_MVFR0_Double_precision_Pos) /*!< MVFR0: Double-precision bits Mask */ - -#define FPU_MVFR0_Single_precision_Pos 4 /*!< MVFR0: Single-precision bits Position */ -#define FPU_MVFR0_Single_precision_Msk (0xFUL << FPU_MVFR0_Single_precision_Pos) /*!< MVFR0: Single-precision bits Mask */ - -#define FPU_MVFR0_A_SIMD_registers_Pos 0 /*!< MVFR0: A_SIMD registers bits Position */ -#define FPU_MVFR0_A_SIMD_registers_Msk (0xFUL << FPU_MVFR0_A_SIMD_registers_Pos) /*!< MVFR0: A_SIMD registers bits Mask */ - -/* Media and FP Feature Register 1 */ -#define FPU_MVFR1_FP_fused_MAC_Pos 28 /*!< MVFR1: FP fused MAC bits Position */ -#define FPU_MVFR1_FP_fused_MAC_Msk (0xFUL << FPU_MVFR1_FP_fused_MAC_Pos) /*!< MVFR1: FP fused MAC bits Mask */ - -#define FPU_MVFR1_FP_HPFP_Pos 24 /*!< MVFR1: FP HPFP bits Position */ -#define FPU_MVFR1_FP_HPFP_Msk (0xFUL << FPU_MVFR1_FP_HPFP_Pos) /*!< MVFR1: FP HPFP bits Mask */ - -#define FPU_MVFR1_D_NaN_mode_Pos 4 /*!< MVFR1: D_NaN mode bits Position */ -#define FPU_MVFR1_D_NaN_mode_Msk (0xFUL << FPU_MVFR1_D_NaN_mode_Pos) /*!< MVFR1: D_NaN mode bits Mask */ - -#define FPU_MVFR1_FtZ_mode_Pos 0 /*!< MVFR1: FtZ mode bits Position */ -#define FPU_MVFR1_FtZ_mode_Msk (0xFUL << FPU_MVFR1_FtZ_mode_Pos) /*!< MVFR1: FtZ mode bits Mask */ - -/*@} end of group CMSIS_FPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Cortex-M4 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -#if (__FPU_PRESENT == 1) - #define FPU_BASE (SCS_BASE + 0x0F30UL) /*!< Floating Point Unit */ - #define FPU ((FPU_Type *) FPU_BASE ) /*!< Floating Point Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/** \brief Set Priority Grouping - - The function sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. - - \param [in] PriorityGroup Priority grouping field. - */ -__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** \brief Get Priority Grouping - - The function reads the priority grouping field from the NVIC Interrupt Controller. - - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ -/* NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); enable interrupt */ - NVIC->ISER[(uint32_t)((int32_t)IRQn) >> 5] = (uint32_t)(1 << ((uint32_t)((int32_t)IRQn) & (uint32_t)0x1F)); /* enable interrupt */ -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Get Active Interrupt - - The function reads the active register in NVIC and returns the active bit. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - */ -__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief Encode Priority - - The function encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. - - \param [in] PriorityGroup Used priority group. - \param [in] PreemptPriority Preemptive priority value (starting from 0). - \param [in] SubPriority Subpriority value (starting from 0). - \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). - */ -__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** \brief Decode Priority - - The function decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = ticks - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** \brief ITM Send Character - - The function transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - - \param [in] ch Character to transmit. - - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** \brief ITM Receive Character - - The function inputs a character via the external variable \ref ITM_RxBuffer. - - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) { - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** \brief ITM Check Character - - The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - -#endif /* __CORE_CM4_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cm4_simd.h b/bsp/mb9bf618s/CMSIS/Include/core_cm4_simd.h deleted file mode 100644 index 83db95b5f1..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cm4_simd.h +++ /dev/null @@ -1,673 +0,0 @@ -/**************************************************************************//** - * @file core_cm4_simd.h - * @brief CMSIS Cortex-M4 SIMD Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_CM4_SIMD_H -#define __CORE_CM4_SIMD_H - - -/******************************************************************************* - * Hardware Abstraction Layer - ******************************************************************************/ - - -/* ################### Compiler specific Intrinsics ########################### */ -/** \defgroup CMSIS_SIMD_intrinsics CMSIS SIMD Intrinsics - Access to dedicated SIMD instructions - @{ -*/ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -#define __SADD8 __sadd8 -#define __QADD8 __qadd8 -#define __SHADD8 __shadd8 -#define __UADD8 __uadd8 -#define __UQADD8 __uqadd8 -#define __UHADD8 __uhadd8 -#define __SSUB8 __ssub8 -#define __QSUB8 __qsub8 -#define __SHSUB8 __shsub8 -#define __USUB8 __usub8 -#define __UQSUB8 __uqsub8 -#define __UHSUB8 __uhsub8 -#define __SADD16 __sadd16 -#define __QADD16 __qadd16 -#define __SHADD16 __shadd16 -#define __UADD16 __uadd16 -#define __UQADD16 __uqadd16 -#define __UHADD16 __uhadd16 -#define __SSUB16 __ssub16 -#define __QSUB16 __qsub16 -#define __SHSUB16 __shsub16 -#define __USUB16 __usub16 -#define __UQSUB16 __uqsub16 -#define __UHSUB16 __uhsub16 -#define __SASX __sasx -#define __QASX __qasx -#define __SHASX __shasx -#define __UASX __uasx -#define __UQASX __uqasx -#define __UHASX __uhasx -#define __SSAX __ssax -#define __QSAX __qsax -#define __SHSAX __shsax -#define __USAX __usax -#define __UQSAX __uqsax -#define __UHSAX __uhsax -#define __USAD8 __usad8 -#define __USADA8 __usada8 -#define __SSAT16 __ssat16 -#define __USAT16 __usat16 -#define __UXTB16 __uxtb16 -#define __UXTAB16 __uxtab16 -#define __SXTB16 __sxtb16 -#define __SXTAB16 __sxtab16 -#define __SMUAD __smuad -#define __SMUADX __smuadx -#define __SMLAD __smlad -#define __SMLADX __smladx -#define __SMLALD __smlald -#define __SMLALDX __smlaldx -#define __SMUSD __smusd -#define __SMUSDX __smusdx -#define __SMLSD __smlsd -#define __SMLSDX __smlsdx -#define __SMLSLD __smlsld -#define __SMLSLDX __smlsldx -#define __SEL __sel -#define __QADD __qadd -#define __QSUB __qsub - -#define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ - ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) - -#define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ - ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) - -#define __SMMLA(ARG1,ARG2,ARG3) ( (int32_t)((((int64_t)(ARG1) * (ARG2)) + \ - ((int64_t)(ARG3) << 32) ) >> 32)) - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -#include - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ -/* TI CCS specific functions */ - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -#include - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHADD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHSUB8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHADD16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhadd16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHSUB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsub16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHASX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhasx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("ssax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("shsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UQSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uqsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UHSAX(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uhsax %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USAD8(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("usad8 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __USADA8(uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("usada8 %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SSAT16(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -#define __USAT16(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat16 %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("uxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __UXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("uxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SXTB16(uint32_t op1) -{ - uint32_t result; - - __ASM volatile ("sxtb16 %0, %1" : "=r" (result) : "r" (op1)); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SXTAB16(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sxtab16 %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUAD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuad %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUADX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smuadx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLAD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlad %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLADX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smladx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SMLALD(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlald %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -#define __SMLALDX(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((uint64_t)(ARG3) >> 32), __ARG3_L = (uint32_t)((uint64_t)(ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlaldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUSD (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMUSDX (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("smusdx %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLSD (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsd %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMLSDX (uint32_t op1, uint32_t op2, uint32_t op3) -{ - uint32_t result; - - __ASM volatile ("smlsdx %0, %1, %2, %3" : "=r" (result) : "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -#define __SMLSLD(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlsld %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -#define __SMLSLDX(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __ARG1 = (ARG1), __ARG2 = (ARG2), __ARG3_H = (uint32_t)((ARG3) >> 32), __ARG3_L = (uint32_t)((ARG3) & 0xFFFFFFFFUL); \ - __ASM volatile ("smlsldx %0, %1, %2, %3" : "=r" (__ARG3_L), "=r" (__ARG3_H) : "r" (__ARG1), "r" (__ARG2), "0" (__ARG3_L), "1" (__ARG3_H) ); \ - (uint64_t)(((uint64_t)__ARG3_H << 32) | __ARG3_L); \ - }) - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SEL (uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("sel %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qadd %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QSUB(uint32_t op1, uint32_t op2) -{ - uint32_t result; - - __ASM volatile ("qsub %0, %1, %2" : "=r" (result) : "r" (op1), "r" (op2) ); - return(result); -} - -#define __PKHBT(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ - __ASM ("pkhbt %0, %1, %2, lsl %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ - __RES; \ - }) - -#define __PKHTB(ARG1,ARG2,ARG3) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1), __ARG2 = (ARG2); \ - if (ARG3 == 0) \ - __ASM ("pkhtb %0, %1, %2" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2) ); \ - else \ - __ASM ("pkhtb %0, %1, %2, asr %3" : "=r" (__RES) : "r" (__ARG1), "r" (__ARG2), "I" (ARG3) ); \ - __RES; \ - }) - -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3) -{ - int32_t result; - - __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r" (op1), "r" (op2), "r" (op3) ); - return(result); -} - -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - - -/*------ CM4 SIMD Intrinsics -----------------------------------------------------*/ -/* not yet supported */ -/*-- End CM4 SIMD Intrinsics -----------------------------------------------------*/ - - -#endif - -/*@} end of group CMSIS_SIMD_intrinsics */ - - -#endif /* __CORE_CM4_SIMD_H */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cmFunc.h b/bsp/mb9bf618s/CMSIS/Include/core_cmFunc.h deleted file mode 100644 index 0a18fafc30..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cmFunc.h +++ /dev/null @@ -1,636 +0,0 @@ -/**************************************************************************//** - * @file core_cmFunc.h - * @brief CMSIS Cortex-M Core Function Access Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#ifndef __CORE_CMFUNC_H -#define __CORE_CMFUNC_H - - -/* ########################### Core Function Access ########################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions - @{ - */ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -#if (__ARMCC_VERSION < 400677) - #error "Please use ARM Compiler Toolchain V4.0.677 or later!" -#endif - -/* intrinsic void __enable_irq(); */ -/* intrinsic void __disable_irq(); */ - -/** \brief Get Control Register - - This function returns the content of the Control Register. - - \return Control Register value - */ -__STATIC_INLINE uint32_t __get_CONTROL(void) -{ - register uint32_t __regControl __ASM("control"); - return(__regControl); -} - - -/** \brief Set Control Register - - This function writes the given value to the Control Register. - - \param [in] control Control Register value to set - */ -__STATIC_INLINE void __set_CONTROL(uint32_t control) -{ - register uint32_t __regControl __ASM("control"); - __regControl = control; -} - - -/** \brief Get IPSR Register - - This function returns the content of the IPSR Register. - - \return IPSR Register value - */ -__STATIC_INLINE uint32_t __get_IPSR(void) -{ - register uint32_t __regIPSR __ASM("ipsr"); - return(__regIPSR); -} - - -/** \brief Get APSR Register - - This function returns the content of the APSR Register. - - \return APSR Register value - */ -__STATIC_INLINE uint32_t __get_APSR(void) -{ - register uint32_t __regAPSR __ASM("apsr"); - return(__regAPSR); -} - - -/** \brief Get xPSR Register - - This function returns the content of the xPSR Register. - - \return xPSR Register value - */ -__STATIC_INLINE uint32_t __get_xPSR(void) -{ - register uint32_t __regXPSR __ASM("xpsr"); - return(__regXPSR); -} - - -/** \brief Get Process Stack Pointer - - This function returns the current value of the Process Stack Pointer (PSP). - - \return PSP Register value - */ -__STATIC_INLINE uint32_t __get_PSP(void) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - return(__regProcessStackPointer); -} - - -/** \brief Set Process Stack Pointer - - This function assigns the given value to the Process Stack Pointer (PSP). - - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) -{ - register uint32_t __regProcessStackPointer __ASM("psp"); - __regProcessStackPointer = topOfProcStack; -} - - -/** \brief Get Main Stack Pointer - - This function returns the current value of the Main Stack Pointer (MSP). - - \return MSP Register value - */ -__STATIC_INLINE uint32_t __get_MSP(void) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - return(__regMainStackPointer); -} - - -/** \brief Set Main Stack Pointer - - This function assigns the given value to the Main Stack Pointer (MSP). - - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) -{ - register uint32_t __regMainStackPointer __ASM("msp"); - __regMainStackPointer = topOfMainStack; -} - - -/** \brief Get Priority Mask - - This function returns the current state of the priority mask bit from the Priority Mask Register. - - \return Priority Mask value - */ -__STATIC_INLINE uint32_t __get_PRIMASK(void) -{ - register uint32_t __regPriMask __ASM("primask"); - return(__regPriMask); -} - - -/** \brief Set Priority Mask - - This function assigns the given value to the Priority Mask Register. - - \param [in] priMask Priority Mask - */ -__STATIC_INLINE void __set_PRIMASK(uint32_t priMask) -{ - register uint32_t __regPriMask __ASM("primask"); - __regPriMask = (priMask); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Enable FIQ - - This function enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __enable_fault_irq __enable_fiq - - -/** \brief Disable FIQ - - This function disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -#define __disable_fault_irq __disable_fiq - - -/** \brief Get Base Priority - - This function returns the current value of the Base Priority register. - - \return Base Priority register value - */ -__STATIC_INLINE uint32_t __get_BASEPRI(void) -{ - register uint32_t __regBasePri __ASM("basepri"); - return(__regBasePri); -} - - -/** \brief Set Base Priority - - This function assigns the given value to the Base Priority register. - - \param [in] basePri Base Priority value to set - */ -__STATIC_INLINE void __set_BASEPRI(uint32_t basePri) -{ - register uint32_t __regBasePri __ASM("basepri"); - __regBasePri = (basePri & 0xff); -} - - -/** \brief Get Fault Mask - - This function returns the current value of the Fault Mask register. - - \return Fault Mask register value - */ -__STATIC_INLINE uint32_t __get_FAULTMASK(void) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - return(__regFaultMask); -} - - -/** \brief Set Fault Mask - - This function assigns the given value to the Fault Mask register. - - \param [in] faultMask Fault Mask value to set - */ -__STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - register uint32_t __regFaultMask __ASM("faultmask"); - __regFaultMask = (faultMask & (uint32_t)1); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** \brief Get FPSCR - - This function returns the current value of the Floating Point Status/Control register. - - \return Floating Point Status/Control register value - */ -__STATIC_INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - register uint32_t __regfpscr __ASM("fpscr"); - return(__regfpscr); -#else - return(0); -#endif -} - - -/** \brief Set FPSCR - - This function assigns the given value to the Floating Point Status/Control register. - - \param [in] fpscr Floating Point Status/Control value to set - */ -__STATIC_INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - register uint32_t __regfpscr __ASM("fpscr"); - __regfpscr = (fpscr); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - - -#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ -/* TI CCS specific functions */ - -#include - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/** \brief Enable IRQ Interrupts - - This function enables IRQ interrupts by clearing the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) -{ - __ASM volatile ("cpsie i" : : : "memory"); -} - - -/** \brief Disable IRQ Interrupts - - This function disables IRQ interrupts by setting the I-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void) -{ - __ASM volatile ("cpsid i" : : : "memory"); -} - - -/** \brief Get Control Register - - This function returns the content of the Control Register. - - \return Control Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_CONTROL(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, control" : "=r" (result) ); - return(result); -} - - -/** \brief Set Control Register - - This function writes the given value to the Control Register. - - \param [in] control Control Register value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_CONTROL(uint32_t control) -{ - __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); -} - - -/** \brief Get IPSR Register - - This function returns the content of the IPSR Register. - - \return IPSR Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_IPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get APSR Register - - This function returns the content of the APSR Register. - - \return APSR Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_APSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, apsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get xPSR Register - - This function returns the content of the xPSR Register. - - \return xPSR Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_xPSR(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); - return(result); -} - - -/** \brief Get Process Stack Pointer - - This function returns the current value of the Process Stack Pointer (PSP). - - \return PSP Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void) -{ - register uint32_t result; - - __ASM volatile ("MRS %0, psp\n" : "=r" (result) ); - return(result); -} - - -/** \brief Set Process Stack Pointer - - This function assigns the given value to the Process Stack Pointer (PSP). - - \param [in] topOfProcStack Process Stack Pointer value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack) -{ - __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp"); -} - - -/** \brief Get Main Stack Pointer - - This function returns the current value of the Main Stack Pointer (MSP). - - \return MSP Register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void) -{ - register uint32_t result; - - __ASM volatile ("MRS %0, msp\n" : "=r" (result) ); - return(result); -} - - -/** \brief Set Main Stack Pointer - - This function assigns the given value to the Main Stack Pointer (MSP). - - \param [in] topOfMainStack Main Stack Pointer value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); -} - - -/** \brief Get Priority Mask - - This function returns the current state of the priority mask bit from the Priority Mask Register. - - \return Priority Mask value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PRIMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, primask" : "=r" (result) ); - return(result); -} - - -/** \brief Set Priority Mask - - This function assigns the given value to the Priority Mask Register. - - \param [in] priMask Priority Mask - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PRIMASK(uint32_t priMask) -{ - __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); -} - - -#if (__CORTEX_M >= 0x03) - -/** \brief Enable FIQ - - This function enables FIQ interrupts by clearing the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_fault_irq(void) -{ - __ASM volatile ("cpsie f" : : : "memory"); -} - - -/** \brief Disable FIQ - - This function disables FIQ interrupts by setting the F-bit in the CPSR. - Can only be executed in Privileged modes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_fault_irq(void) -{ - __ASM volatile ("cpsid f" : : : "memory"); -} - - -/** \brief Get Base Priority - - This function returns the current value of the Base Priority register. - - \return Base Priority register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_BASEPRI(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, basepri_max" : "=r" (result) ); - return(result); -} - - -/** \brief Set Base Priority - - This function assigns the given value to the Base Priority register. - - \param [in] basePri Base Priority value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_BASEPRI(uint32_t value) -{ - __ASM volatile ("MSR basepri, %0" : : "r" (value) : "memory"); -} - - -/** \brief Get Fault Mask - - This function returns the current value of the Fault Mask register. - - \return Fault Mask register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FAULTMASK(void) -{ - uint32_t result; - - __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); - return(result); -} - - -/** \brief Set Fault Mask - - This function assigns the given value to the Fault Mask register. - - \param [in] faultMask Fault Mask value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask) -{ - __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - -#if (__CORTEX_M == 0x04) - -/** \brief Get FPSCR - - This function returns the current value of the Floating Point Status/Control register. - - \return Floating Point Status/Control register value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - uint32_t result; - - /* Empty asm statement works as a scheduling barrier */ - __ASM volatile (""); - __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); - __ASM volatile (""); - return(result); -#else - return(0); -#endif -} - - -/** \brief Set FPSCR - - This function assigns the given value to the Floating Point Status/Control register. - - \param [in] fpscr Floating Point Status/Control value to set - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr) -{ -#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) - /* Empty asm statement works as a scheduling barrier */ - __ASM volatile (""); - __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc"); - __ASM volatile (""); -#endif -} - -#endif /* (__CORTEX_M == 0x04) */ - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all instrinsics, - * Including the CMSIS ones. - */ - -#endif - -/*@} end of CMSIS_Core_RegAccFunctions */ - - -#endif /* __CORE_CMFUNC_H */ diff --git a/bsp/mb9bf618s/CMSIS/Include/core_cmInstr.h b/bsp/mb9bf618s/CMSIS/Include/core_cmInstr.h deleted file mode 100644 index d213f0eed7..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_cmInstr.h +++ /dev/null @@ -1,688 +0,0 @@ -/**************************************************************************//** - * @file core_cmInstr.h - * @brief CMSIS Cortex-M Core Instruction Access Header File - * @version V3.20 - * @date 05. March 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#ifndef __CORE_CMINSTR_H -#define __CORE_CMINSTR_H - - -/* ########################## Core Instruction Access ######################### */ -/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface - Access to dedicated instructions - @{ -*/ - -#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/ -/* ARM armcc specific functions */ - -#if (__ARMCC_VERSION < 400677) - #error "Please use ARM Compiler Toolchain V4.0.677 or later!" -#endif - - -/** \brief No Operation - - No Operation does nothing. This instruction can be used for code alignment purposes. - */ -#define __NOP __nop - - -/** \brief Wait For Interrupt - - Wait For Interrupt is a hint instruction that suspends execution - until one of a number of events occurs. - */ -#define __WFI __wfi - - -/** \brief Wait For Event - - Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -#define __WFE __wfe - - -/** \brief Send Event - - Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -#define __SEV __sev - - -/** \brief Instruction Synchronization Barrier - - Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or - memory, after the instruction has been completed. - */ -#define __ISB() __isb(0xF) - - -/** \brief Data Synchronization Barrier - - This function acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -#define __DSB() __dsb(0xF) - - -/** \brief Data Memory Barrier - - This function ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -#define __DMB() __dmb(0xF) - - -/** \brief Reverse byte order (32 bit) - - This function reverses the byte order in integer value. - - \param [in] value Value to reverse - \return Reversed value - */ -#define __REV __rev - - -/** \brief Reverse byte order (16 bit) - - This function reverses the byte order in two unsigned short values. - - \param [in] value Value to reverse - \return Reversed value - */ -#ifndef __NO_EMBEDDED_ASM -__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) -{ - rev16 r0, r0 - bx lr -} -#endif - -/** \brief Reverse byte order in signed short value - - This function reverses the byte order in a signed short value with sign extension to integer. - - \param [in] value Value to reverse - \return Reversed value - */ -#ifndef __NO_EMBEDDED_ASM -__attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) -{ - revsh r0, r0 - bx lr -} -#endif - - -/** \brief Rotate Right in unsigned value (32 bit) - - This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - - \param [in] value Value to rotate - \param [in] value Number of Bits to rotate - \return Rotated value - */ -#define __ROR __ror - - -/** \brief Breakpoint - - This function causes the processor to enter Debug state. - Debug tools can use this to investigate system state when the instruction at a particular address is reached. - - \param [in] value is ignored by the processor. - If required, a debugger can use it to store additional information about the breakpoint. - */ -#define __BKPT(value) __breakpoint(value) - - -#if (__CORTEX_M >= 0x03) - -/** \brief Reverse bit order of value - - This function reverses the bit order of the given value. - - \param [in] value Value to reverse - \return Reversed value - */ -#define __RBIT __rbit - - -/** \brief LDR Exclusive (8 bit) - - This function performs a exclusive LDR command for 8 bit value. - - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -#define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) - - -/** \brief LDR Exclusive (16 bit) - - This function performs a exclusive LDR command for 16 bit values. - - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -#define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) - - -/** \brief LDR Exclusive (32 bit) - - This function performs a exclusive LDR command for 32 bit values. - - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -#define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) - - -/** \brief STR Exclusive (8 bit) - - This function performs a exclusive STR command for 8 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXB(value, ptr) __strex(value, ptr) - - -/** \brief STR Exclusive (16 bit) - - This function performs a exclusive STR command for 16 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXH(value, ptr) __strex(value, ptr) - - -/** \brief STR Exclusive (32 bit) - - This function performs a exclusive STR command for 32 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -#define __STREXW(value, ptr) __strex(value, ptr) - - -/** \brief Remove the exclusive lock - - This function removes the exclusive lock which is created by LDREX. - - */ -#define __CLREX __clrex - - -/** \brief Signed Saturate - - This function saturates a signed value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT __ssat - - -/** \brief Unsigned Saturate - - This function saturates an unsigned value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT __usat - - -/** \brief Count leading zeros - - This function counts the number of leading zeros of a data value. - - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -#define __CLZ __clz - -#endif /* (__CORTEX_M >= 0x03) */ - - - -#elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/ -/* IAR iccarm specific functions */ - -#include - - -#elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/ -/* TI CCS specific functions */ - -#include - - -#elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/ -/* GNU gcc specific functions */ - -/* Define macros for porting to both thumb1 and thumb2. - * For thumb1, use low register (r0-r7), specified by constrant "l" - * Otherwise, use general registers, specified by constrant "r" */ -#if defined (__thumb__) && !defined (__thumb2__) -#define __CMSIS_GCC_OUT_REG(r) "=l" (r) -#define __CMSIS_GCC_USE_REG(r) "l" (r) -#else -#define __CMSIS_GCC_OUT_REG(r) "=r" (r) -#define __CMSIS_GCC_USE_REG(r) "r" (r) -#endif - -/** \brief No Operation - - No Operation does nothing. This instruction can be used for code alignment purposes. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void) -{ - __ASM volatile ("nop"); -} - - -/** \brief Wait For Interrupt - - Wait For Interrupt is a hint instruction that suspends execution - until one of a number of events occurs. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void) -{ - __ASM volatile ("wfi"); -} - - -/** \brief Wait For Event - - Wait For Event is a hint instruction that permits the processor to enter - a low-power state until one of a number of events occurs. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void) -{ - __ASM volatile ("wfe"); -} - - -/** \brief Send Event - - Send Event is a hint instruction. It causes an event to be signaled to the CPU. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void) -{ - __ASM volatile ("sev"); -} - - -/** \brief Instruction Synchronization Barrier - - Instruction Synchronization Barrier flushes the pipeline in the processor, - so that all instructions following the ISB are fetched from cache or - memory, after the instruction has been completed. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void) -{ - __ASM volatile ("isb"); -} - - -/** \brief Data Synchronization Barrier - - This function acts as a special kind of Data Memory Barrier. - It completes when all explicit memory accesses before this instruction complete. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void) -{ - __ASM volatile ("dsb"); -} - - -/** \brief Data Memory Barrier - - This function ensures the apparent order of the explicit memory operations before - and after the instruction, without ensuring their completion. - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void) -{ - __ASM volatile ("dmb"); -} - - -/** \brief Reverse byte order (32 bit) - - This function reverses the byte order in integer value. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) -{ -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) - return __builtin_bswap32(value); -#else - uint32_t result; - - __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return(result); -#endif -} - - -/** \brief Reverse byte order (16 bit) - - This function reverses the byte order in two unsigned short values. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return(result); -} - - -/** \brief Reverse byte order in signed short value - - This function reverses the byte order in a signed short value with sign extension to integer. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value) -{ -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - return (short)__builtin_bswap16(value); -#else - uint32_t result; - - __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); - return(result); -#endif -} - - -/** \brief Rotate Right in unsigned value (32 bit) - - This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits. - - \param [in] value Value to rotate - \param [in] value Number of Bits to rotate - \return Rotated value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) -{ - return (op1 >> op2) | (op1 << (32 - op2)); -} - - -/** \brief Breakpoint - - This function causes the processor to enter Debug state. - Debug tools can use this to investigate system state when the instruction at a particular address is reached. - - \param [in] value is ignored by the processor. - If required, a debugger can use it to store additional information about the breakpoint. - */ -#define __BKPT(value) __ASM volatile ("bkpt "#value) - - -#if (__CORTEX_M >= 0x03) - -/** \brief Reverse bit order of value - - This function reverses the bit order of the given value. - - \param [in] value Value to reverse - \return Reversed value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - - -/** \brief LDR Exclusive (8 bit) - - This function performs a exclusive LDR command for 8 bit value. - - \param [in] ptr Pointer to data - \return value of type uint8_t at (*ptr) - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) -{ - uint32_t result; - -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); -#else - /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not - accepted by assembler. So has to use following less efficient pattern. - */ - __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); -#endif - return(result); -} - - -/** \brief LDR Exclusive (16 bit) - - This function performs a exclusive LDR command for 16 bit values. - - \param [in] ptr Pointer to data - \return value of type uint16_t at (*ptr) - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) -{ - uint32_t result; - -#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) - __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); -#else - /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not - accepted by assembler. So has to use following less efficient pattern. - */ - __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); -#endif - return(result); -} - - -/** \brief LDR Exclusive (32 bit) - - This function performs a exclusive LDR command for 32 bit values. - - \param [in] ptr Pointer to data - \return value of type uint32_t at (*ptr) - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - return(result); -} - - -/** \brief STR Exclusive (8 bit) - - This function performs a exclusive STR command for 8 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - return(result); -} - - -/** \brief STR Exclusive (16 bit) - - This function performs a exclusive STR command for 16 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) -{ - uint32_t result; - - __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - return(result); -} - - -/** \brief STR Exclusive (32 bit) - - This function performs a exclusive STR command for 32 bit values. - - \param [in] value Value to store - \param [in] ptr Pointer to location - \return 0 Function succeeded - \return 1 Function failed - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) -{ - uint32_t result; - - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - return(result); -} - - -/** \brief Remove the exclusive lock - - This function removes the exclusive lock which is created by LDREX. - - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void) -{ - __ASM volatile ("clrex" ::: "memory"); -} - - -/** \brief Signed Saturate - - This function saturates a signed value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (1..32) - \return Saturated value - */ -#define __SSAT(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** \brief Unsigned Saturate - - This function saturates an unsigned value. - - \param [in] value Value to be saturated - \param [in] sat Bit position to saturate to (0..31) - \return Saturated value - */ -#define __USAT(ARG1,ARG2) \ -({ \ - uint32_t __RES, __ARG1 = (ARG1); \ - __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \ - __RES; \ - }) - - -/** \brief Count leading zeros - - This function counts the number of leading zeros of a data value. - - \param [in] value Value to count the leading zeros - \return number of leading zeros in value - */ -__attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value) -{ - uint32_t result; - - __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) ); - return(result); -} - -#endif /* (__CORTEX_M >= 0x03) */ - - - - -#elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/ -/* TASKING carm specific functions */ - -/* - * The CMSIS functions have been implemented as intrinsics in the compiler. - * Please use "carm -?i" to get an up to date list of all intrinsics, - * Including the CMSIS ones. - */ - -#endif - -/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ - -#endif /* __CORE_CMINSTR_H */ diff --git a/bsp/mb9bf618s/CMSIS/Include/core_sc000.h b/bsp/mb9bf618s/CMSIS/Include/core_sc000.h deleted file mode 100644 index 1a2a0f2e30..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_sc000.h +++ /dev/null @@ -1,813 +0,0 @@ -/**************************************************************************//** - * @file core_sc000.h - * @brief CMSIS SC000 Core Peripheral Access Layer Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_SC000_H_GENERIC -#define __CORE_SC000_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup SC000 - @{ - */ - -/* CMSIS SC000 definitions */ -#define __SC000_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __SC000_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ -#define __SC000_CMSIS_VERSION ((__SC000_CMSIS_VERSION_MAIN << 16) | \ - __SC000_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ - -#define __CORTEX_SC (0) /*!< Cortex secure core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all -*/ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ - -#endif /* __CORE_SC000_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_SC000_H_DEPENDANT -#define __CORE_SC000_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __SC000_REV - #define __SC000_REV 0x0000 - #warning "__SC000_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 2 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group SC000 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core MPU Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[31]; - __IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[31]; - __IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[31]; - __IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[31]; - uint32_t RESERVED4[64]; - __IO uint32_t IP[8]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register */ -} NVIC_Type; - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - uint32_t RESERVED0[1]; - __IO uint32_t SHP[2]; /*!< Offset: 0x01C (R/W) System Handlers Priority Registers. [0] is RESERVED */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - uint32_t RESERVED1[154]; - __IO uint32_t SFCR; /*!< Offset: 0x290 (R/W) Security Features Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x1FFFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -/* SCB Security Features Register Definitions */ -#define SCB_SFCR_UNIBRTIMING_Pos 0 /*!< SCB SFCR: UNIBRTIMING Position */ -#define SCB_SFCR_UNIBRTIMING_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SFCR: UNIBRTIMING Mask */ - -#define SCB_SFCR_SECKEY_Pos 16 /*!< SCB SFCR: SECKEY Position */ -#define SCB_SFCR_SECKEY_Msk (0xFFFFUL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SFCR: SECKEY Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[2]; - __IO uint32_t ACTLR; /*!< Offset: 0x008 (R/W) Auxiliary Control Register */ -} SCnSCB_Type; - -/* Auxiliary Control Register Definitions */ -#define SCnSCB_ACTLR_DISMCYCINT_Pos 0 /*!< ACTLR: DISMCYCINT Position */ -#define SCnSCB_ACTLR_DISMCYCINT_Msk (1UL << SCnSCB_ACTLR_DISMCYCINT_Pos) /*!< ACTLR: DISMCYCINT Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 8 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0xFFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief SC000 Core Debug Registers (DCB registers, SHCSR, and DFSR) - are only accessible over DAP and not via processor. Therefore - they are not covered by the Cortex-M0 header file. - @{ - */ -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of SC000 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/* Interrupt Priorities are WORD accessible only under ARMv6M */ -/* The following MACROS handle generation of the register offset and byte masks */ -#define _BIT_SHIFT(IRQn) ( (((uint32_t)(IRQn) ) & 0x03) * 8 ) -#define _SHP_IDX(IRQn) ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) ) -#define _IP_IDX(IRQn) ( ((uint32_t)(IRQn) >> 2) ) - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[0] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[0] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[_SHP_IDX(IRQn)] = (SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } - else { - NVIC->IP[_IP_IDX(IRQn)] = (NVIC->IP[_IP_IDX(IRQn)] & ~(0xFF << _BIT_SHIFT(IRQn))) | - (((priority << (8 - __NVIC_PRIO_BITS)) & 0xFF) << _BIT_SHIFT(IRQn)); } -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(((SCB->SHP[_SHP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M0 system interrupts */ - else { - return((uint32_t)(((NVIC->IP[ _IP_IDX(IRQn)] >> _BIT_SHIFT(IRQn) ) & 0xFF) >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - SCB_AIRCR_SYSRESETREQ_Msk); - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = ticks - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - - -#endif /* __CORE_SC000_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/Include/core_sc300.h b/bsp/mb9bf618s/CMSIS/Include/core_sc300.h deleted file mode 100644 index cc34d6fc0e..0000000000 --- a/bsp/mb9bf618s/CMSIS/Include/core_sc300.h +++ /dev/null @@ -1,1598 +0,0 @@ -/**************************************************************************//** - * @file core_sc300.h - * @brief CMSIS SC300 Core Peripheral Access Layer Header File - * @version V3.20 - * @date 25. February 2013 - * - * @note - * - ******************************************************************************/ -/* Copyright (c) 2009 - 2013 ARM LIMITED - - 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. - ---------------------------------------------------------------------------*/ - - -#if defined ( __ICCARM__ ) - #pragma system_include /* treat file as system include file for MISRA check */ -#endif - -#ifdef __cplusplus - extern "C" { -#endif - -#ifndef __CORE_SC300_H_GENERIC -#define __CORE_SC300_H_GENERIC - -/** \page CMSIS_MISRA_Exceptions MISRA-C:2004 Compliance Exceptions - CMSIS violates the following MISRA-C:2004 rules: - - \li Required Rule 8.5, object/function definition in header file.
- Function definitions in header files are used to allow 'inlining'. - - \li Required Rule 18.4, declaration of union type or object of union type: '{...}'.
- Unions are used for effective representation of core registers. - - \li Advisory Rule 19.7, Function-like macro defined.
- Function-like macros are used to allow more efficient code. - */ - - -/******************************************************************************* - * CMSIS definitions - ******************************************************************************/ -/** \ingroup SC3000 - @{ - */ - -/* CMSIS SC300 definitions */ -#define __SC300_CMSIS_VERSION_MAIN (0x03) /*!< [31:16] CMSIS HAL main version */ -#define __SC300_CMSIS_VERSION_SUB (0x20) /*!< [15:0] CMSIS HAL sub version */ -#define __SC300_CMSIS_VERSION ((__SC300_CMSIS_VERSION_MAIN << 16) | \ - __SC300_CMSIS_VERSION_SUB ) /*!< CMSIS HAL version number */ - -#define __CORTEX_SC (300) /*!< Cortex secure core */ - - -#if defined ( __CC_ARM ) - #define __ASM __asm /*!< asm keyword for ARM Compiler */ - #define __INLINE __inline /*!< inline keyword for ARM Compiler */ - #define __STATIC_INLINE static __inline - -#elif defined ( __ICCARM__ ) - #define __ASM __asm /*!< asm keyword for IAR Compiler */ - #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ - #define __STATIC_INLINE static inline - -#elif defined ( __GNUC__ ) - #define __ASM __asm /*!< asm keyword for GNU Compiler */ - #define __INLINE inline /*!< inline keyword for GNU Compiler */ - #define __STATIC_INLINE static inline - -#elif defined ( __TASKING__ ) - #define __ASM __asm /*!< asm keyword for TASKING Compiler */ - #define __INLINE inline /*!< inline keyword for TASKING Compiler */ - #define __STATIC_INLINE static inline - -#endif - -/** __FPU_USED indicates whether an FPU is used or not. This core does not support an FPU at all -*/ -#define __FPU_USED 0 - -#if defined ( __CC_ARM ) - #if defined __TARGET_FPU_VFP - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __ICCARM__ ) - #if defined __ARMVFP__ - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __GNUC__ ) - #if defined (__VFP_FP__) && !defined(__SOFTFP__) - #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif - -#elif defined ( __TASKING__ ) - #if defined __FPU_VFP__ - #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" - #endif -#endif - -#include /* standard types definitions */ -#include /* Core Instruction Access */ -#include /* Core Function Access */ - -#endif /* __CORE_SC300_H_GENERIC */ - -#ifndef __CMSIS_GENERIC - -#ifndef __CORE_SC300_H_DEPENDANT -#define __CORE_SC300_H_DEPENDANT - -/* check device defines and use defaults */ -#if defined __CHECK_DEVICE_DEFINES - #ifndef __SC300_REV - #define __SC300_REV 0x0000 - #warning "__SC300_REV not defined in device header file; using default!" - #endif - - #ifndef __MPU_PRESENT - #define __MPU_PRESENT 0 - #warning "__MPU_PRESENT not defined in device header file; using default!" - #endif - - #ifndef __NVIC_PRIO_BITS - #define __NVIC_PRIO_BITS 4 - #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" - #endif - - #ifndef __Vendor_SysTickConfig - #define __Vendor_SysTickConfig 0 - #warning "__Vendor_SysTickConfig not defined in device header file; using default!" - #endif -#endif - -/* IO definitions (access restrictions to peripheral registers) */ -/** - \defgroup CMSIS_glob_defs CMSIS Global Defines - - IO Type Qualifiers are used - \li to specify the access to peripheral variables. - \li for automatic generation of peripheral register debug information. -*/ -#ifdef __cplusplus - #define __I volatile /*!< Defines 'read only' permissions */ -#else - #define __I volatile const /*!< Defines 'read only' permissions */ -#endif -#define __O volatile /*!< Defines 'write only' permissions */ -#define __IO volatile /*!< Defines 'read / write' permissions */ - -/*@} end of group SC300 */ - - - -/******************************************************************************* - * Register Abstraction - Core Register contain: - - Core Register - - Core NVIC Register - - Core SCB Register - - Core SysTick Register - - Core Debug Register - - Core MPU Register - ******************************************************************************/ -/** \defgroup CMSIS_core_register Defines and Type Definitions - \brief Type definitions and defines for Cortex-M processor based devices. -*/ - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CORE Status and Control Registers - \brief Core Register type definitions. - @{ - */ - -/** \brief Union type to access the Application Program Status Register (APSR). - */ -typedef union -{ - struct - { -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ -#else - uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ -#endif - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} APSR_Type; - - -/** \brief Union type to access the Interrupt Program Status Register (IPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ - uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} IPSR_Type; - - -/** \brief Union type to access the Special-Purpose Program Status Registers (xPSR). - */ -typedef union -{ - struct - { - uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */ -#if (__CORTEX_M != 0x04) - uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */ -#else - uint32_t _reserved0:7; /*!< bit: 9..15 Reserved */ - uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ - uint32_t _reserved1:4; /*!< bit: 20..23 Reserved */ -#endif - uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */ - uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */ - uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ - uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ - uint32_t C:1; /*!< bit: 29 Carry condition code flag */ - uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ - uint32_t N:1; /*!< bit: 31 Negative condition code flag */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} xPSR_Type; - - -/** \brief Union type to access the Control Registers (CONTROL). - */ -typedef union -{ - struct - { - uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */ - uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */ - uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */ - uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */ - } b; /*!< Structure used for bit access */ - uint32_t w; /*!< Type used for word access */ -} CONTROL_Type; - -/*@} end of group CMSIS_CORE */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_NVIC Nested Vectored Interrupt Controller (NVIC) - \brief Type definitions for the NVIC Registers - @{ - */ - -/** \brief Structure type to access the Nested Vectored Interrupt Controller (NVIC). - */ -typedef struct -{ - __IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */ - uint32_t RESERVED0[24]; - __IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */ - uint32_t RSERVED1[24]; - __IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */ - uint32_t RESERVED2[24]; - __IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */ - uint32_t RESERVED3[24]; - __IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */ - uint32_t RESERVED4[56]; - __IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */ - uint32_t RESERVED5[644]; - __O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */ -} NVIC_Type; - -/* Software Triggered Interrupt Register Definitions */ -#define NVIC_STIR_INTID_Pos 0 /*!< STIR: INTLINESNUM Position */ -#define NVIC_STIR_INTID_Msk (0x1FFUL << NVIC_STIR_INTID_Pos) /*!< STIR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_NVIC */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCB System Control Block (SCB) - \brief Type definitions for the System Control Block Registers - @{ - */ - -/** \brief Structure type to access the System Control Block (SCB). - */ -typedef struct -{ - __I uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ - __IO uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ - __IO uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ - __IO uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ - __IO uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ - __IO uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ - __IO uint8_t SHP[12]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ - __IO uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ - __IO uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ - __IO uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ - __IO uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ - __IO uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ - __IO uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ - __IO uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ - __I uint32_t PFR[2]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ - __I uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ - __I uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ - __I uint32_t MMFR[4]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ - __I uint32_t ISAR[5]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ - uint32_t RESERVED0[5]; - __IO uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ -} SCB_Type; - -/* SCB CPUID Register Definitions */ -#define SCB_CPUID_IMPLEMENTER_Pos 24 /*!< SCB CPUID: IMPLEMENTER Position */ -#define SCB_CPUID_IMPLEMENTER_Msk (0xFFUL << SCB_CPUID_IMPLEMENTER_Pos) /*!< SCB CPUID: IMPLEMENTER Mask */ - -#define SCB_CPUID_VARIANT_Pos 20 /*!< SCB CPUID: VARIANT Position */ -#define SCB_CPUID_VARIANT_Msk (0xFUL << SCB_CPUID_VARIANT_Pos) /*!< SCB CPUID: VARIANT Mask */ - -#define SCB_CPUID_ARCHITECTURE_Pos 16 /*!< SCB CPUID: ARCHITECTURE Position */ -#define SCB_CPUID_ARCHITECTURE_Msk (0xFUL << SCB_CPUID_ARCHITECTURE_Pos) /*!< SCB CPUID: ARCHITECTURE Mask */ - -#define SCB_CPUID_PARTNO_Pos 4 /*!< SCB CPUID: PARTNO Position */ -#define SCB_CPUID_PARTNO_Msk (0xFFFUL << SCB_CPUID_PARTNO_Pos) /*!< SCB CPUID: PARTNO Mask */ - -#define SCB_CPUID_REVISION_Pos 0 /*!< SCB CPUID: REVISION Position */ -#define SCB_CPUID_REVISION_Msk (0xFUL << SCB_CPUID_REVISION_Pos) /*!< SCB CPUID: REVISION Mask */ - -/* SCB Interrupt Control State Register Definitions */ -#define SCB_ICSR_NMIPENDSET_Pos 31 /*!< SCB ICSR: NMIPENDSET Position */ -#define SCB_ICSR_NMIPENDSET_Msk (1UL << SCB_ICSR_NMIPENDSET_Pos) /*!< SCB ICSR: NMIPENDSET Mask */ - -#define SCB_ICSR_PENDSVSET_Pos 28 /*!< SCB ICSR: PENDSVSET Position */ -#define SCB_ICSR_PENDSVSET_Msk (1UL << SCB_ICSR_PENDSVSET_Pos) /*!< SCB ICSR: PENDSVSET Mask */ - -#define SCB_ICSR_PENDSVCLR_Pos 27 /*!< SCB ICSR: PENDSVCLR Position */ -#define SCB_ICSR_PENDSVCLR_Msk (1UL << SCB_ICSR_PENDSVCLR_Pos) /*!< SCB ICSR: PENDSVCLR Mask */ - -#define SCB_ICSR_PENDSTSET_Pos 26 /*!< SCB ICSR: PENDSTSET Position */ -#define SCB_ICSR_PENDSTSET_Msk (1UL << SCB_ICSR_PENDSTSET_Pos) /*!< SCB ICSR: PENDSTSET Mask */ - -#define SCB_ICSR_PENDSTCLR_Pos 25 /*!< SCB ICSR: PENDSTCLR Position */ -#define SCB_ICSR_PENDSTCLR_Msk (1UL << SCB_ICSR_PENDSTCLR_Pos) /*!< SCB ICSR: PENDSTCLR Mask */ - -#define SCB_ICSR_ISRPREEMPT_Pos 23 /*!< SCB ICSR: ISRPREEMPT Position */ -#define SCB_ICSR_ISRPREEMPT_Msk (1UL << SCB_ICSR_ISRPREEMPT_Pos) /*!< SCB ICSR: ISRPREEMPT Mask */ - -#define SCB_ICSR_ISRPENDING_Pos 22 /*!< SCB ICSR: ISRPENDING Position */ -#define SCB_ICSR_ISRPENDING_Msk (1UL << SCB_ICSR_ISRPENDING_Pos) /*!< SCB ICSR: ISRPENDING Mask */ - -#define SCB_ICSR_VECTPENDING_Pos 12 /*!< SCB ICSR: VECTPENDING Position */ -#define SCB_ICSR_VECTPENDING_Msk (0x1FFUL << SCB_ICSR_VECTPENDING_Pos) /*!< SCB ICSR: VECTPENDING Mask */ - -#define SCB_ICSR_RETTOBASE_Pos 11 /*!< SCB ICSR: RETTOBASE Position */ -#define SCB_ICSR_RETTOBASE_Msk (1UL << SCB_ICSR_RETTOBASE_Pos) /*!< SCB ICSR: RETTOBASE Mask */ - -#define SCB_ICSR_VECTACTIVE_Pos 0 /*!< SCB ICSR: VECTACTIVE Position */ -#define SCB_ICSR_VECTACTIVE_Msk (0x1FFUL << SCB_ICSR_VECTACTIVE_Pos) /*!< SCB ICSR: VECTACTIVE Mask */ - -/* SCB Vector Table Offset Register Definitions */ -#define SCB_VTOR_TBLBASE_Pos 29 /*!< SCB VTOR: TBLBASE Position */ -#define SCB_VTOR_TBLBASE_Msk (1UL << SCB_VTOR_TBLBASE_Pos) /*!< SCB VTOR: TBLBASE Mask */ - -#define SCB_VTOR_TBLOFF_Pos 7 /*!< SCB VTOR: TBLOFF Position */ -#define SCB_VTOR_TBLOFF_Msk (0x3FFFFFUL << SCB_VTOR_TBLOFF_Pos) /*!< SCB VTOR: TBLOFF Mask */ - -/* SCB Application Interrupt and Reset Control Register Definitions */ -#define SCB_AIRCR_VECTKEY_Pos 16 /*!< SCB AIRCR: VECTKEY Position */ -#define SCB_AIRCR_VECTKEY_Msk (0xFFFFUL << SCB_AIRCR_VECTKEY_Pos) /*!< SCB AIRCR: VECTKEY Mask */ - -#define SCB_AIRCR_VECTKEYSTAT_Pos 16 /*!< SCB AIRCR: VECTKEYSTAT Position */ -#define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFFUL << SCB_AIRCR_VECTKEYSTAT_Pos) /*!< SCB AIRCR: VECTKEYSTAT Mask */ - -#define SCB_AIRCR_ENDIANESS_Pos 15 /*!< SCB AIRCR: ENDIANESS Position */ -#define SCB_AIRCR_ENDIANESS_Msk (1UL << SCB_AIRCR_ENDIANESS_Pos) /*!< SCB AIRCR: ENDIANESS Mask */ - -#define SCB_AIRCR_PRIGROUP_Pos 8 /*!< SCB AIRCR: PRIGROUP Position */ -#define SCB_AIRCR_PRIGROUP_Msk (7UL << SCB_AIRCR_PRIGROUP_Pos) /*!< SCB AIRCR: PRIGROUP Mask */ - -#define SCB_AIRCR_SYSRESETREQ_Pos 2 /*!< SCB AIRCR: SYSRESETREQ Position */ -#define SCB_AIRCR_SYSRESETREQ_Msk (1UL << SCB_AIRCR_SYSRESETREQ_Pos) /*!< SCB AIRCR: SYSRESETREQ Mask */ - -#define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /*!< SCB AIRCR: VECTCLRACTIVE Position */ -#define SCB_AIRCR_VECTCLRACTIVE_Msk (1UL << SCB_AIRCR_VECTCLRACTIVE_Pos) /*!< SCB AIRCR: VECTCLRACTIVE Mask */ - -#define SCB_AIRCR_VECTRESET_Pos 0 /*!< SCB AIRCR: VECTRESET Position */ -#define SCB_AIRCR_VECTRESET_Msk (1UL << SCB_AIRCR_VECTRESET_Pos) /*!< SCB AIRCR: VECTRESET Mask */ - -/* SCB System Control Register Definitions */ -#define SCB_SCR_SEVONPEND_Pos 4 /*!< SCB SCR: SEVONPEND Position */ -#define SCB_SCR_SEVONPEND_Msk (1UL << SCB_SCR_SEVONPEND_Pos) /*!< SCB SCR: SEVONPEND Mask */ - -#define SCB_SCR_SLEEPDEEP_Pos 2 /*!< SCB SCR: SLEEPDEEP Position */ -#define SCB_SCR_SLEEPDEEP_Msk (1UL << SCB_SCR_SLEEPDEEP_Pos) /*!< SCB SCR: SLEEPDEEP Mask */ - -#define SCB_SCR_SLEEPONEXIT_Pos 1 /*!< SCB SCR: SLEEPONEXIT Position */ -#define SCB_SCR_SLEEPONEXIT_Msk (1UL << SCB_SCR_SLEEPONEXIT_Pos) /*!< SCB SCR: SLEEPONEXIT Mask */ - -/* SCB Configuration Control Register Definitions */ -#define SCB_CCR_STKALIGN_Pos 9 /*!< SCB CCR: STKALIGN Position */ -#define SCB_CCR_STKALIGN_Msk (1UL << SCB_CCR_STKALIGN_Pos) /*!< SCB CCR: STKALIGN Mask */ - -#define SCB_CCR_BFHFNMIGN_Pos 8 /*!< SCB CCR: BFHFNMIGN Position */ -#define SCB_CCR_BFHFNMIGN_Msk (1UL << SCB_CCR_BFHFNMIGN_Pos) /*!< SCB CCR: BFHFNMIGN Mask */ - -#define SCB_CCR_DIV_0_TRP_Pos 4 /*!< SCB CCR: DIV_0_TRP Position */ -#define SCB_CCR_DIV_0_TRP_Msk (1UL << SCB_CCR_DIV_0_TRP_Pos) /*!< SCB CCR: DIV_0_TRP Mask */ - -#define SCB_CCR_UNALIGN_TRP_Pos 3 /*!< SCB CCR: UNALIGN_TRP Position */ -#define SCB_CCR_UNALIGN_TRP_Msk (1UL << SCB_CCR_UNALIGN_TRP_Pos) /*!< SCB CCR: UNALIGN_TRP Mask */ - -#define SCB_CCR_USERSETMPEND_Pos 1 /*!< SCB CCR: USERSETMPEND Position */ -#define SCB_CCR_USERSETMPEND_Msk (1UL << SCB_CCR_USERSETMPEND_Pos) /*!< SCB CCR: USERSETMPEND Mask */ - -#define SCB_CCR_NONBASETHRDENA_Pos 0 /*!< SCB CCR: NONBASETHRDENA Position */ -#define SCB_CCR_NONBASETHRDENA_Msk (1UL << SCB_CCR_NONBASETHRDENA_Pos) /*!< SCB CCR: NONBASETHRDENA Mask */ - -/* SCB System Handler Control and State Register Definitions */ -#define SCB_SHCSR_USGFAULTENA_Pos 18 /*!< SCB SHCSR: USGFAULTENA Position */ -#define SCB_SHCSR_USGFAULTENA_Msk (1UL << SCB_SHCSR_USGFAULTENA_Pos) /*!< SCB SHCSR: USGFAULTENA Mask */ - -#define SCB_SHCSR_BUSFAULTENA_Pos 17 /*!< SCB SHCSR: BUSFAULTENA Position */ -#define SCB_SHCSR_BUSFAULTENA_Msk (1UL << SCB_SHCSR_BUSFAULTENA_Pos) /*!< SCB SHCSR: BUSFAULTENA Mask */ - -#define SCB_SHCSR_MEMFAULTENA_Pos 16 /*!< SCB SHCSR: MEMFAULTENA Position */ -#define SCB_SHCSR_MEMFAULTENA_Msk (1UL << SCB_SHCSR_MEMFAULTENA_Pos) /*!< SCB SHCSR: MEMFAULTENA Mask */ - -#define SCB_SHCSR_SVCALLPENDED_Pos 15 /*!< SCB SHCSR: SVCALLPENDED Position */ -#define SCB_SHCSR_SVCALLPENDED_Msk (1UL << SCB_SHCSR_SVCALLPENDED_Pos) /*!< SCB SHCSR: SVCALLPENDED Mask */ - -#define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /*!< SCB SHCSR: BUSFAULTPENDED Position */ -#define SCB_SHCSR_BUSFAULTPENDED_Msk (1UL << SCB_SHCSR_BUSFAULTPENDED_Pos) /*!< SCB SHCSR: BUSFAULTPENDED Mask */ - -#define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /*!< SCB SHCSR: MEMFAULTPENDED Position */ -#define SCB_SHCSR_MEMFAULTPENDED_Msk (1UL << SCB_SHCSR_MEMFAULTPENDED_Pos) /*!< SCB SHCSR: MEMFAULTPENDED Mask */ - -#define SCB_SHCSR_USGFAULTPENDED_Pos 12 /*!< SCB SHCSR: USGFAULTPENDED Position */ -#define SCB_SHCSR_USGFAULTPENDED_Msk (1UL << SCB_SHCSR_USGFAULTPENDED_Pos) /*!< SCB SHCSR: USGFAULTPENDED Mask */ - -#define SCB_SHCSR_SYSTICKACT_Pos 11 /*!< SCB SHCSR: SYSTICKACT Position */ -#define SCB_SHCSR_SYSTICKACT_Msk (1UL << SCB_SHCSR_SYSTICKACT_Pos) /*!< SCB SHCSR: SYSTICKACT Mask */ - -#define SCB_SHCSR_PENDSVACT_Pos 10 /*!< SCB SHCSR: PENDSVACT Position */ -#define SCB_SHCSR_PENDSVACT_Msk (1UL << SCB_SHCSR_PENDSVACT_Pos) /*!< SCB SHCSR: PENDSVACT Mask */ - -#define SCB_SHCSR_MONITORACT_Pos 8 /*!< SCB SHCSR: MONITORACT Position */ -#define SCB_SHCSR_MONITORACT_Msk (1UL << SCB_SHCSR_MONITORACT_Pos) /*!< SCB SHCSR: MONITORACT Mask */ - -#define SCB_SHCSR_SVCALLACT_Pos 7 /*!< SCB SHCSR: SVCALLACT Position */ -#define SCB_SHCSR_SVCALLACT_Msk (1UL << SCB_SHCSR_SVCALLACT_Pos) /*!< SCB SHCSR: SVCALLACT Mask */ - -#define SCB_SHCSR_USGFAULTACT_Pos 3 /*!< SCB SHCSR: USGFAULTACT Position */ -#define SCB_SHCSR_USGFAULTACT_Msk (1UL << SCB_SHCSR_USGFAULTACT_Pos) /*!< SCB SHCSR: USGFAULTACT Mask */ - -#define SCB_SHCSR_BUSFAULTACT_Pos 1 /*!< SCB SHCSR: BUSFAULTACT Position */ -#define SCB_SHCSR_BUSFAULTACT_Msk (1UL << SCB_SHCSR_BUSFAULTACT_Pos) /*!< SCB SHCSR: BUSFAULTACT Mask */ - -#define SCB_SHCSR_MEMFAULTACT_Pos 0 /*!< SCB SHCSR: MEMFAULTACT Position */ -#define SCB_SHCSR_MEMFAULTACT_Msk (1UL << SCB_SHCSR_MEMFAULTACT_Pos) /*!< SCB SHCSR: MEMFAULTACT Mask */ - -/* SCB Configurable Fault Status Registers Definitions */ -#define SCB_CFSR_USGFAULTSR_Pos 16 /*!< SCB CFSR: Usage Fault Status Register Position */ -#define SCB_CFSR_USGFAULTSR_Msk (0xFFFFUL << SCB_CFSR_USGFAULTSR_Pos) /*!< SCB CFSR: Usage Fault Status Register Mask */ - -#define SCB_CFSR_BUSFAULTSR_Pos 8 /*!< SCB CFSR: Bus Fault Status Register Position */ -#define SCB_CFSR_BUSFAULTSR_Msk (0xFFUL << SCB_CFSR_BUSFAULTSR_Pos) /*!< SCB CFSR: Bus Fault Status Register Mask */ - -#define SCB_CFSR_MEMFAULTSR_Pos 0 /*!< SCB CFSR: Memory Manage Fault Status Register Position */ -#define SCB_CFSR_MEMFAULTSR_Msk (0xFFUL << SCB_CFSR_MEMFAULTSR_Pos) /*!< SCB CFSR: Memory Manage Fault Status Register Mask */ - -/* SCB Hard Fault Status Registers Definitions */ -#define SCB_HFSR_DEBUGEVT_Pos 31 /*!< SCB HFSR: DEBUGEVT Position */ -#define SCB_HFSR_DEBUGEVT_Msk (1UL << SCB_HFSR_DEBUGEVT_Pos) /*!< SCB HFSR: DEBUGEVT Mask */ - -#define SCB_HFSR_FORCED_Pos 30 /*!< SCB HFSR: FORCED Position */ -#define SCB_HFSR_FORCED_Msk (1UL << SCB_HFSR_FORCED_Pos) /*!< SCB HFSR: FORCED Mask */ - -#define SCB_HFSR_VECTTBL_Pos 1 /*!< SCB HFSR: VECTTBL Position */ -#define SCB_HFSR_VECTTBL_Msk (1UL << SCB_HFSR_VECTTBL_Pos) /*!< SCB HFSR: VECTTBL Mask */ - -/* SCB Debug Fault Status Register Definitions */ -#define SCB_DFSR_EXTERNAL_Pos 4 /*!< SCB DFSR: EXTERNAL Position */ -#define SCB_DFSR_EXTERNAL_Msk (1UL << SCB_DFSR_EXTERNAL_Pos) /*!< SCB DFSR: EXTERNAL Mask */ - -#define SCB_DFSR_VCATCH_Pos 3 /*!< SCB DFSR: VCATCH Position */ -#define SCB_DFSR_VCATCH_Msk (1UL << SCB_DFSR_VCATCH_Pos) /*!< SCB DFSR: VCATCH Mask */ - -#define SCB_DFSR_DWTTRAP_Pos 2 /*!< SCB DFSR: DWTTRAP Position */ -#define SCB_DFSR_DWTTRAP_Msk (1UL << SCB_DFSR_DWTTRAP_Pos) /*!< SCB DFSR: DWTTRAP Mask */ - -#define SCB_DFSR_BKPT_Pos 1 /*!< SCB DFSR: BKPT Position */ -#define SCB_DFSR_BKPT_Msk (1UL << SCB_DFSR_BKPT_Pos) /*!< SCB DFSR: BKPT Mask */ - -#define SCB_DFSR_HALTED_Pos 0 /*!< SCB DFSR: HALTED Position */ -#define SCB_DFSR_HALTED_Msk (1UL << SCB_DFSR_HALTED_Pos) /*!< SCB DFSR: HALTED Mask */ - -/*@} end of group CMSIS_SCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SCnSCB System Controls not in SCB (SCnSCB) - \brief Type definitions for the System Control and ID Register not in the SCB - @{ - */ - -/** \brief Structure type to access the System Control and ID Register not in the SCB. - */ -typedef struct -{ - uint32_t RESERVED0[1]; - __I uint32_t ICTR; /*!< Offset: 0x004 (R/ ) Interrupt Controller Type Register */ - uint32_t RESERVED1[1]; -} SCnSCB_Type; - -/* Interrupt Controller Type Register Definitions */ -#define SCnSCB_ICTR_INTLINESNUM_Pos 0 /*!< ICTR: INTLINESNUM Position */ -#define SCnSCB_ICTR_INTLINESNUM_Msk (0xFUL << SCnSCB_ICTR_INTLINESNUM_Pos) /*!< ICTR: INTLINESNUM Mask */ - -/*@} end of group CMSIS_SCnotSCB */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_SysTick System Tick Timer (SysTick) - \brief Type definitions for the System Timer Registers. - @{ - */ - -/** \brief Structure type to access the System Timer (SysTick). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ - __IO uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ - __IO uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ - __I uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ -} SysTick_Type; - -/* SysTick Control / Status Register Definitions */ -#define SysTick_CTRL_COUNTFLAG_Pos 16 /*!< SysTick CTRL: COUNTFLAG Position */ -#define SysTick_CTRL_COUNTFLAG_Msk (1UL << SysTick_CTRL_COUNTFLAG_Pos) /*!< SysTick CTRL: COUNTFLAG Mask */ - -#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!< SysTick CTRL: CLKSOURCE Position */ -#define SysTick_CTRL_CLKSOURCE_Msk (1UL << SysTick_CTRL_CLKSOURCE_Pos) /*!< SysTick CTRL: CLKSOURCE Mask */ - -#define SysTick_CTRL_TICKINT_Pos 1 /*!< SysTick CTRL: TICKINT Position */ -#define SysTick_CTRL_TICKINT_Msk (1UL << SysTick_CTRL_TICKINT_Pos) /*!< SysTick CTRL: TICKINT Mask */ - -#define SysTick_CTRL_ENABLE_Pos 0 /*!< SysTick CTRL: ENABLE Position */ -#define SysTick_CTRL_ENABLE_Msk (1UL << SysTick_CTRL_ENABLE_Pos) /*!< SysTick CTRL: ENABLE Mask */ - -/* SysTick Reload Register Definitions */ -#define SysTick_LOAD_RELOAD_Pos 0 /*!< SysTick LOAD: RELOAD Position */ -#define SysTick_LOAD_RELOAD_Msk (0xFFFFFFUL << SysTick_LOAD_RELOAD_Pos) /*!< SysTick LOAD: RELOAD Mask */ - -/* SysTick Current Register Definitions */ -#define SysTick_VAL_CURRENT_Pos 0 /*!< SysTick VAL: CURRENT Position */ -#define SysTick_VAL_CURRENT_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick VAL: CURRENT Mask */ - -/* SysTick Calibration Register Definitions */ -#define SysTick_CALIB_NOREF_Pos 31 /*!< SysTick CALIB: NOREF Position */ -#define SysTick_CALIB_NOREF_Msk (1UL << SysTick_CALIB_NOREF_Pos) /*!< SysTick CALIB: NOREF Mask */ - -#define SysTick_CALIB_SKEW_Pos 30 /*!< SysTick CALIB: SKEW Position */ -#define SysTick_CALIB_SKEW_Msk (1UL << SysTick_CALIB_SKEW_Pos) /*!< SysTick CALIB: SKEW Mask */ - -#define SysTick_CALIB_TENMS_Pos 0 /*!< SysTick CALIB: TENMS Position */ -#define SysTick_CALIB_TENMS_Msk (0xFFFFFFUL << SysTick_VAL_CURRENT_Pos) /*!< SysTick CALIB: TENMS Mask */ - -/*@} end of group CMSIS_SysTick */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_ITM Instrumentation Trace Macrocell (ITM) - \brief Type definitions for the Instrumentation Trace Macrocell (ITM) - @{ - */ - -/** \brief Structure type to access the Instrumentation Trace Macrocell Register (ITM). - */ -typedef struct -{ - __O union - { - __O uint8_t u8; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 8-bit */ - __O uint16_t u16; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 16-bit */ - __O uint32_t u32; /*!< Offset: 0x000 ( /W) ITM Stimulus Port 32-bit */ - } PORT [32]; /*!< Offset: 0x000 ( /W) ITM Stimulus Port Registers */ - uint32_t RESERVED0[864]; - __IO uint32_t TER; /*!< Offset: 0xE00 (R/W) ITM Trace Enable Register */ - uint32_t RESERVED1[15]; - __IO uint32_t TPR; /*!< Offset: 0xE40 (R/W) ITM Trace Privilege Register */ - uint32_t RESERVED2[15]; - __IO uint32_t TCR; /*!< Offset: 0xE80 (R/W) ITM Trace Control Register */ - uint32_t RESERVED3[29]; - __O uint32_t IWR; /*!< Offset: 0xEF8 ( /W) ITM Integration Write Register */ - __I uint32_t IRR; /*!< Offset: 0xEFC (R/ ) ITM Integration Read Register */ - __IO uint32_t IMCR; /*!< Offset: 0xF00 (R/W) ITM Integration Mode Control Register */ - uint32_t RESERVED4[43]; - __O uint32_t LAR; /*!< Offset: 0xFB0 ( /W) ITM Lock Access Register */ - __I uint32_t LSR; /*!< Offset: 0xFB4 (R/ ) ITM Lock Status Register */ - uint32_t RESERVED5[6]; - __I uint32_t PID4; /*!< Offset: 0xFD0 (R/ ) ITM Peripheral Identification Register #4 */ - __I uint32_t PID5; /*!< Offset: 0xFD4 (R/ ) ITM Peripheral Identification Register #5 */ - __I uint32_t PID6; /*!< Offset: 0xFD8 (R/ ) ITM Peripheral Identification Register #6 */ - __I uint32_t PID7; /*!< Offset: 0xFDC (R/ ) ITM Peripheral Identification Register #7 */ - __I uint32_t PID0; /*!< Offset: 0xFE0 (R/ ) ITM Peripheral Identification Register #0 */ - __I uint32_t PID1; /*!< Offset: 0xFE4 (R/ ) ITM Peripheral Identification Register #1 */ - __I uint32_t PID2; /*!< Offset: 0xFE8 (R/ ) ITM Peripheral Identification Register #2 */ - __I uint32_t PID3; /*!< Offset: 0xFEC (R/ ) ITM Peripheral Identification Register #3 */ - __I uint32_t CID0; /*!< Offset: 0xFF0 (R/ ) ITM Component Identification Register #0 */ - __I uint32_t CID1; /*!< Offset: 0xFF4 (R/ ) ITM Component Identification Register #1 */ - __I uint32_t CID2; /*!< Offset: 0xFF8 (R/ ) ITM Component Identification Register #2 */ - __I uint32_t CID3; /*!< Offset: 0xFFC (R/ ) ITM Component Identification Register #3 */ -} ITM_Type; - -/* ITM Trace Privilege Register Definitions */ -#define ITM_TPR_PRIVMASK_Pos 0 /*!< ITM TPR: PRIVMASK Position */ -#define ITM_TPR_PRIVMASK_Msk (0xFUL << ITM_TPR_PRIVMASK_Pos) /*!< ITM TPR: PRIVMASK Mask */ - -/* ITM Trace Control Register Definitions */ -#define ITM_TCR_BUSY_Pos 23 /*!< ITM TCR: BUSY Position */ -#define ITM_TCR_BUSY_Msk (1UL << ITM_TCR_BUSY_Pos) /*!< ITM TCR: BUSY Mask */ - -#define ITM_TCR_TraceBusID_Pos 16 /*!< ITM TCR: ATBID Position */ -#define ITM_TCR_TraceBusID_Msk (0x7FUL << ITM_TCR_TraceBusID_Pos) /*!< ITM TCR: ATBID Mask */ - -#define ITM_TCR_GTSFREQ_Pos 10 /*!< ITM TCR: Global timestamp frequency Position */ -#define ITM_TCR_GTSFREQ_Msk (3UL << ITM_TCR_GTSFREQ_Pos) /*!< ITM TCR: Global timestamp frequency Mask */ - -#define ITM_TCR_TSPrescale_Pos 8 /*!< ITM TCR: TSPrescale Position */ -#define ITM_TCR_TSPrescale_Msk (3UL << ITM_TCR_TSPrescale_Pos) /*!< ITM TCR: TSPrescale Mask */ - -#define ITM_TCR_SWOENA_Pos 4 /*!< ITM TCR: SWOENA Position */ -#define ITM_TCR_SWOENA_Msk (1UL << ITM_TCR_SWOENA_Pos) /*!< ITM TCR: SWOENA Mask */ - -#define ITM_TCR_DWTENA_Pos 3 /*!< ITM TCR: DWTENA Position */ -#define ITM_TCR_DWTENA_Msk (1UL << ITM_TCR_DWTENA_Pos) /*!< ITM TCR: DWTENA Mask */ - -#define ITM_TCR_SYNCENA_Pos 2 /*!< ITM TCR: SYNCENA Position */ -#define ITM_TCR_SYNCENA_Msk (1UL << ITM_TCR_SYNCENA_Pos) /*!< ITM TCR: SYNCENA Mask */ - -#define ITM_TCR_TSENA_Pos 1 /*!< ITM TCR: TSENA Position */ -#define ITM_TCR_TSENA_Msk (1UL << ITM_TCR_TSENA_Pos) /*!< ITM TCR: TSENA Mask */ - -#define ITM_TCR_ITMENA_Pos 0 /*!< ITM TCR: ITM Enable bit Position */ -#define ITM_TCR_ITMENA_Msk (1UL << ITM_TCR_ITMENA_Pos) /*!< ITM TCR: ITM Enable bit Mask */ - -/* ITM Integration Write Register Definitions */ -#define ITM_IWR_ATVALIDM_Pos 0 /*!< ITM IWR: ATVALIDM Position */ -#define ITM_IWR_ATVALIDM_Msk (1UL << ITM_IWR_ATVALIDM_Pos) /*!< ITM IWR: ATVALIDM Mask */ - -/* ITM Integration Read Register Definitions */ -#define ITM_IRR_ATREADYM_Pos 0 /*!< ITM IRR: ATREADYM Position */ -#define ITM_IRR_ATREADYM_Msk (1UL << ITM_IRR_ATREADYM_Pos) /*!< ITM IRR: ATREADYM Mask */ - -/* ITM Integration Mode Control Register Definitions */ -#define ITM_IMCR_INTEGRATION_Pos 0 /*!< ITM IMCR: INTEGRATION Position */ -#define ITM_IMCR_INTEGRATION_Msk (1UL << ITM_IMCR_INTEGRATION_Pos) /*!< ITM IMCR: INTEGRATION Mask */ - -/* ITM Lock Status Register Definitions */ -#define ITM_LSR_ByteAcc_Pos 2 /*!< ITM LSR: ByteAcc Position */ -#define ITM_LSR_ByteAcc_Msk (1UL << ITM_LSR_ByteAcc_Pos) /*!< ITM LSR: ByteAcc Mask */ - -#define ITM_LSR_Access_Pos 1 /*!< ITM LSR: Access Position */ -#define ITM_LSR_Access_Msk (1UL << ITM_LSR_Access_Pos) /*!< ITM LSR: Access Mask */ - -#define ITM_LSR_Present_Pos 0 /*!< ITM LSR: Present Position */ -#define ITM_LSR_Present_Msk (1UL << ITM_LSR_Present_Pos) /*!< ITM LSR: Present Mask */ - -/*@}*/ /* end of group CMSIS_ITM */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_DWT Data Watchpoint and Trace (DWT) - \brief Type definitions for the Data Watchpoint and Trace (DWT) - @{ - */ - -/** \brief Structure type to access the Data Watchpoint and Trace Register (DWT). - */ -typedef struct -{ - __IO uint32_t CTRL; /*!< Offset: 0x000 (R/W) Control Register */ - __IO uint32_t CYCCNT; /*!< Offset: 0x004 (R/W) Cycle Count Register */ - __IO uint32_t CPICNT; /*!< Offset: 0x008 (R/W) CPI Count Register */ - __IO uint32_t EXCCNT; /*!< Offset: 0x00C (R/W) Exception Overhead Count Register */ - __IO uint32_t SLEEPCNT; /*!< Offset: 0x010 (R/W) Sleep Count Register */ - __IO uint32_t LSUCNT; /*!< Offset: 0x014 (R/W) LSU Count Register */ - __IO uint32_t FOLDCNT; /*!< Offset: 0x018 (R/W) Folded-instruction Count Register */ - __I uint32_t PCSR; /*!< Offset: 0x01C (R/ ) Program Counter Sample Register */ - __IO uint32_t COMP0; /*!< Offset: 0x020 (R/W) Comparator Register 0 */ - __IO uint32_t MASK0; /*!< Offset: 0x024 (R/W) Mask Register 0 */ - __IO uint32_t FUNCTION0; /*!< Offset: 0x028 (R/W) Function Register 0 */ - uint32_t RESERVED0[1]; - __IO uint32_t COMP1; /*!< Offset: 0x030 (R/W) Comparator Register 1 */ - __IO uint32_t MASK1; /*!< Offset: 0x034 (R/W) Mask Register 1 */ - __IO uint32_t FUNCTION1; /*!< Offset: 0x038 (R/W) Function Register 1 */ - uint32_t RESERVED1[1]; - __IO uint32_t COMP2; /*!< Offset: 0x040 (R/W) Comparator Register 2 */ - __IO uint32_t MASK2; /*!< Offset: 0x044 (R/W) Mask Register 2 */ - __IO uint32_t FUNCTION2; /*!< Offset: 0x048 (R/W) Function Register 2 */ - uint32_t RESERVED2[1]; - __IO uint32_t COMP3; /*!< Offset: 0x050 (R/W) Comparator Register 3 */ - __IO uint32_t MASK3; /*!< Offset: 0x054 (R/W) Mask Register 3 */ - __IO uint32_t FUNCTION3; /*!< Offset: 0x058 (R/W) Function Register 3 */ -} DWT_Type; - -/* DWT Control Register Definitions */ -#define DWT_CTRL_NUMCOMP_Pos 28 /*!< DWT CTRL: NUMCOMP Position */ -#define DWT_CTRL_NUMCOMP_Msk (0xFUL << DWT_CTRL_NUMCOMP_Pos) /*!< DWT CTRL: NUMCOMP Mask */ - -#define DWT_CTRL_NOTRCPKT_Pos 27 /*!< DWT CTRL: NOTRCPKT Position */ -#define DWT_CTRL_NOTRCPKT_Msk (0x1UL << DWT_CTRL_NOTRCPKT_Pos) /*!< DWT CTRL: NOTRCPKT Mask */ - -#define DWT_CTRL_NOEXTTRIG_Pos 26 /*!< DWT CTRL: NOEXTTRIG Position */ -#define DWT_CTRL_NOEXTTRIG_Msk (0x1UL << DWT_CTRL_NOEXTTRIG_Pos) /*!< DWT CTRL: NOEXTTRIG Mask */ - -#define DWT_CTRL_NOCYCCNT_Pos 25 /*!< DWT CTRL: NOCYCCNT Position */ -#define DWT_CTRL_NOCYCCNT_Msk (0x1UL << DWT_CTRL_NOCYCCNT_Pos) /*!< DWT CTRL: NOCYCCNT Mask */ - -#define DWT_CTRL_NOPRFCNT_Pos 24 /*!< DWT CTRL: NOPRFCNT Position */ -#define DWT_CTRL_NOPRFCNT_Msk (0x1UL << DWT_CTRL_NOPRFCNT_Pos) /*!< DWT CTRL: NOPRFCNT Mask */ - -#define DWT_CTRL_CYCEVTENA_Pos 22 /*!< DWT CTRL: CYCEVTENA Position */ -#define DWT_CTRL_CYCEVTENA_Msk (0x1UL << DWT_CTRL_CYCEVTENA_Pos) /*!< DWT CTRL: CYCEVTENA Mask */ - -#define DWT_CTRL_FOLDEVTENA_Pos 21 /*!< DWT CTRL: FOLDEVTENA Position */ -#define DWT_CTRL_FOLDEVTENA_Msk (0x1UL << DWT_CTRL_FOLDEVTENA_Pos) /*!< DWT CTRL: FOLDEVTENA Mask */ - -#define DWT_CTRL_LSUEVTENA_Pos 20 /*!< DWT CTRL: LSUEVTENA Position */ -#define DWT_CTRL_LSUEVTENA_Msk (0x1UL << DWT_CTRL_LSUEVTENA_Pos) /*!< DWT CTRL: LSUEVTENA Mask */ - -#define DWT_CTRL_SLEEPEVTENA_Pos 19 /*!< DWT CTRL: SLEEPEVTENA Position */ -#define DWT_CTRL_SLEEPEVTENA_Msk (0x1UL << DWT_CTRL_SLEEPEVTENA_Pos) /*!< DWT CTRL: SLEEPEVTENA Mask */ - -#define DWT_CTRL_EXCEVTENA_Pos 18 /*!< DWT CTRL: EXCEVTENA Position */ -#define DWT_CTRL_EXCEVTENA_Msk (0x1UL << DWT_CTRL_EXCEVTENA_Pos) /*!< DWT CTRL: EXCEVTENA Mask */ - -#define DWT_CTRL_CPIEVTENA_Pos 17 /*!< DWT CTRL: CPIEVTENA Position */ -#define DWT_CTRL_CPIEVTENA_Msk (0x1UL << DWT_CTRL_CPIEVTENA_Pos) /*!< DWT CTRL: CPIEVTENA Mask */ - -#define DWT_CTRL_EXCTRCENA_Pos 16 /*!< DWT CTRL: EXCTRCENA Position */ -#define DWT_CTRL_EXCTRCENA_Msk (0x1UL << DWT_CTRL_EXCTRCENA_Pos) /*!< DWT CTRL: EXCTRCENA Mask */ - -#define DWT_CTRL_PCSAMPLENA_Pos 12 /*!< DWT CTRL: PCSAMPLENA Position */ -#define DWT_CTRL_PCSAMPLENA_Msk (0x1UL << DWT_CTRL_PCSAMPLENA_Pos) /*!< DWT CTRL: PCSAMPLENA Mask */ - -#define DWT_CTRL_SYNCTAP_Pos 10 /*!< DWT CTRL: SYNCTAP Position */ -#define DWT_CTRL_SYNCTAP_Msk (0x3UL << DWT_CTRL_SYNCTAP_Pos) /*!< DWT CTRL: SYNCTAP Mask */ - -#define DWT_CTRL_CYCTAP_Pos 9 /*!< DWT CTRL: CYCTAP Position */ -#define DWT_CTRL_CYCTAP_Msk (0x1UL << DWT_CTRL_CYCTAP_Pos) /*!< DWT CTRL: CYCTAP Mask */ - -#define DWT_CTRL_POSTINIT_Pos 5 /*!< DWT CTRL: POSTINIT Position */ -#define DWT_CTRL_POSTINIT_Msk (0xFUL << DWT_CTRL_POSTINIT_Pos) /*!< DWT CTRL: POSTINIT Mask */ - -#define DWT_CTRL_POSTPRESET_Pos 1 /*!< DWT CTRL: POSTPRESET Position */ -#define DWT_CTRL_POSTPRESET_Msk (0xFUL << DWT_CTRL_POSTPRESET_Pos) /*!< DWT CTRL: POSTPRESET Mask */ - -#define DWT_CTRL_CYCCNTENA_Pos 0 /*!< DWT CTRL: CYCCNTENA Position */ -#define DWT_CTRL_CYCCNTENA_Msk (0x1UL << DWT_CTRL_CYCCNTENA_Pos) /*!< DWT CTRL: CYCCNTENA Mask */ - -/* DWT CPI Count Register Definitions */ -#define DWT_CPICNT_CPICNT_Pos 0 /*!< DWT CPICNT: CPICNT Position */ -#define DWT_CPICNT_CPICNT_Msk (0xFFUL << DWT_CPICNT_CPICNT_Pos) /*!< DWT CPICNT: CPICNT Mask */ - -/* DWT Exception Overhead Count Register Definitions */ -#define DWT_EXCCNT_EXCCNT_Pos 0 /*!< DWT EXCCNT: EXCCNT Position */ -#define DWT_EXCCNT_EXCCNT_Msk (0xFFUL << DWT_EXCCNT_EXCCNT_Pos) /*!< DWT EXCCNT: EXCCNT Mask */ - -/* DWT Sleep Count Register Definitions */ -#define DWT_SLEEPCNT_SLEEPCNT_Pos 0 /*!< DWT SLEEPCNT: SLEEPCNT Position */ -#define DWT_SLEEPCNT_SLEEPCNT_Msk (0xFFUL << DWT_SLEEPCNT_SLEEPCNT_Pos) /*!< DWT SLEEPCNT: SLEEPCNT Mask */ - -/* DWT LSU Count Register Definitions */ -#define DWT_LSUCNT_LSUCNT_Pos 0 /*!< DWT LSUCNT: LSUCNT Position */ -#define DWT_LSUCNT_LSUCNT_Msk (0xFFUL << DWT_LSUCNT_LSUCNT_Pos) /*!< DWT LSUCNT: LSUCNT Mask */ - -/* DWT Folded-instruction Count Register Definitions */ -#define DWT_FOLDCNT_FOLDCNT_Pos 0 /*!< DWT FOLDCNT: FOLDCNT Position */ -#define DWT_FOLDCNT_FOLDCNT_Msk (0xFFUL << DWT_FOLDCNT_FOLDCNT_Pos) /*!< DWT FOLDCNT: FOLDCNT Mask */ - -/* DWT Comparator Mask Register Definitions */ -#define DWT_MASK_MASK_Pos 0 /*!< DWT MASK: MASK Position */ -#define DWT_MASK_MASK_Msk (0x1FUL << DWT_MASK_MASK_Pos) /*!< DWT MASK: MASK Mask */ - -/* DWT Comparator Function Register Definitions */ -#define DWT_FUNCTION_MATCHED_Pos 24 /*!< DWT FUNCTION: MATCHED Position */ -#define DWT_FUNCTION_MATCHED_Msk (0x1UL << DWT_FUNCTION_MATCHED_Pos) /*!< DWT FUNCTION: MATCHED Mask */ - -#define DWT_FUNCTION_DATAVADDR1_Pos 16 /*!< DWT FUNCTION: DATAVADDR1 Position */ -#define DWT_FUNCTION_DATAVADDR1_Msk (0xFUL << DWT_FUNCTION_DATAVADDR1_Pos) /*!< DWT FUNCTION: DATAVADDR1 Mask */ - -#define DWT_FUNCTION_DATAVADDR0_Pos 12 /*!< DWT FUNCTION: DATAVADDR0 Position */ -#define DWT_FUNCTION_DATAVADDR0_Msk (0xFUL << DWT_FUNCTION_DATAVADDR0_Pos) /*!< DWT FUNCTION: DATAVADDR0 Mask */ - -#define DWT_FUNCTION_DATAVSIZE_Pos 10 /*!< DWT FUNCTION: DATAVSIZE Position */ -#define DWT_FUNCTION_DATAVSIZE_Msk (0x3UL << DWT_FUNCTION_DATAVSIZE_Pos) /*!< DWT FUNCTION: DATAVSIZE Mask */ - -#define DWT_FUNCTION_LNK1ENA_Pos 9 /*!< DWT FUNCTION: LNK1ENA Position */ -#define DWT_FUNCTION_LNK1ENA_Msk (0x1UL << DWT_FUNCTION_LNK1ENA_Pos) /*!< DWT FUNCTION: LNK1ENA Mask */ - -#define DWT_FUNCTION_DATAVMATCH_Pos 8 /*!< DWT FUNCTION: DATAVMATCH Position */ -#define DWT_FUNCTION_DATAVMATCH_Msk (0x1UL << DWT_FUNCTION_DATAVMATCH_Pos) /*!< DWT FUNCTION: DATAVMATCH Mask */ - -#define DWT_FUNCTION_CYCMATCH_Pos 7 /*!< DWT FUNCTION: CYCMATCH Position */ -#define DWT_FUNCTION_CYCMATCH_Msk (0x1UL << DWT_FUNCTION_CYCMATCH_Pos) /*!< DWT FUNCTION: CYCMATCH Mask */ - -#define DWT_FUNCTION_EMITRANGE_Pos 5 /*!< DWT FUNCTION: EMITRANGE Position */ -#define DWT_FUNCTION_EMITRANGE_Msk (0x1UL << DWT_FUNCTION_EMITRANGE_Pos) /*!< DWT FUNCTION: EMITRANGE Mask */ - -#define DWT_FUNCTION_FUNCTION_Pos 0 /*!< DWT FUNCTION: FUNCTION Position */ -#define DWT_FUNCTION_FUNCTION_Msk (0xFUL << DWT_FUNCTION_FUNCTION_Pos) /*!< DWT FUNCTION: FUNCTION Mask */ - -/*@}*/ /* end of group CMSIS_DWT */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_TPI Trace Port Interface (TPI) - \brief Type definitions for the Trace Port Interface (TPI) - @{ - */ - -/** \brief Structure type to access the Trace Port Interface Register (TPI). - */ -typedef struct -{ - __IO uint32_t SSPSR; /*!< Offset: 0x000 (R/ ) Supported Parallel Port Size Register */ - __IO uint32_t CSPSR; /*!< Offset: 0x004 (R/W) Current Parallel Port Size Register */ - uint32_t RESERVED0[2]; - __IO uint32_t ACPR; /*!< Offset: 0x010 (R/W) Asynchronous Clock Prescaler Register */ - uint32_t RESERVED1[55]; - __IO uint32_t SPPR; /*!< Offset: 0x0F0 (R/W) Selected Pin Protocol Register */ - uint32_t RESERVED2[131]; - __I uint32_t FFSR; /*!< Offset: 0x300 (R/ ) Formatter and Flush Status Register */ - __IO uint32_t FFCR; /*!< Offset: 0x304 (R/W) Formatter and Flush Control Register */ - __I uint32_t FSCR; /*!< Offset: 0x308 (R/ ) Formatter Synchronization Counter Register */ - uint32_t RESERVED3[759]; - __I uint32_t TRIGGER; /*!< Offset: 0xEE8 (R/ ) TRIGGER */ - __I uint32_t FIFO0; /*!< Offset: 0xEEC (R/ ) Integration ETM Data */ - __I uint32_t ITATBCTR2; /*!< Offset: 0xEF0 (R/ ) ITATBCTR2 */ - uint32_t RESERVED4[1]; - __I uint32_t ITATBCTR0; /*!< Offset: 0xEF8 (R/ ) ITATBCTR0 */ - __I uint32_t FIFO1; /*!< Offset: 0xEFC (R/ ) Integration ITM Data */ - __IO uint32_t ITCTRL; /*!< Offset: 0xF00 (R/W) Integration Mode Control */ - uint32_t RESERVED5[39]; - __IO uint32_t CLAIMSET; /*!< Offset: 0xFA0 (R/W) Claim tag set */ - __IO uint32_t CLAIMCLR; /*!< Offset: 0xFA4 (R/W) Claim tag clear */ - uint32_t RESERVED7[8]; - __I uint32_t DEVID; /*!< Offset: 0xFC8 (R/ ) TPIU_DEVID */ - __I uint32_t DEVTYPE; /*!< Offset: 0xFCC (R/ ) TPIU_DEVTYPE */ -} TPI_Type; - -/* TPI Asynchronous Clock Prescaler Register Definitions */ -#define TPI_ACPR_PRESCALER_Pos 0 /*!< TPI ACPR: PRESCALER Position */ -#define TPI_ACPR_PRESCALER_Msk (0x1FFFUL << TPI_ACPR_PRESCALER_Pos) /*!< TPI ACPR: PRESCALER Mask */ - -/* TPI Selected Pin Protocol Register Definitions */ -#define TPI_SPPR_TXMODE_Pos 0 /*!< TPI SPPR: TXMODE Position */ -#define TPI_SPPR_TXMODE_Msk (0x3UL << TPI_SPPR_TXMODE_Pos) /*!< TPI SPPR: TXMODE Mask */ - -/* TPI Formatter and Flush Status Register Definitions */ -#define TPI_FFSR_FtNonStop_Pos 3 /*!< TPI FFSR: FtNonStop Position */ -#define TPI_FFSR_FtNonStop_Msk (0x1UL << TPI_FFSR_FtNonStop_Pos) /*!< TPI FFSR: FtNonStop Mask */ - -#define TPI_FFSR_TCPresent_Pos 2 /*!< TPI FFSR: TCPresent Position */ -#define TPI_FFSR_TCPresent_Msk (0x1UL << TPI_FFSR_TCPresent_Pos) /*!< TPI FFSR: TCPresent Mask */ - -#define TPI_FFSR_FtStopped_Pos 1 /*!< TPI FFSR: FtStopped Position */ -#define TPI_FFSR_FtStopped_Msk (0x1UL << TPI_FFSR_FtStopped_Pos) /*!< TPI FFSR: FtStopped Mask */ - -#define TPI_FFSR_FlInProg_Pos 0 /*!< TPI FFSR: FlInProg Position */ -#define TPI_FFSR_FlInProg_Msk (0x1UL << TPI_FFSR_FlInProg_Pos) /*!< TPI FFSR: FlInProg Mask */ - -/* TPI Formatter and Flush Control Register Definitions */ -#define TPI_FFCR_TrigIn_Pos 8 /*!< TPI FFCR: TrigIn Position */ -#define TPI_FFCR_TrigIn_Msk (0x1UL << TPI_FFCR_TrigIn_Pos) /*!< TPI FFCR: TrigIn Mask */ - -#define TPI_FFCR_EnFCont_Pos 1 /*!< TPI FFCR: EnFCont Position */ -#define TPI_FFCR_EnFCont_Msk (0x1UL << TPI_FFCR_EnFCont_Pos) /*!< TPI FFCR: EnFCont Mask */ - -/* TPI TRIGGER Register Definitions */ -#define TPI_TRIGGER_TRIGGER_Pos 0 /*!< TPI TRIGGER: TRIGGER Position */ -#define TPI_TRIGGER_TRIGGER_Msk (0x1UL << TPI_TRIGGER_TRIGGER_Pos) /*!< TPI TRIGGER: TRIGGER Mask */ - -/* TPI Integration ETM Data Register Definitions (FIFO0) */ -#define TPI_FIFO0_ITM_ATVALID_Pos 29 /*!< TPI FIFO0: ITM_ATVALID Position */ -#define TPI_FIFO0_ITM_ATVALID_Msk (0x3UL << TPI_FIFO0_ITM_ATVALID_Pos) /*!< TPI FIFO0: ITM_ATVALID Mask */ - -#define TPI_FIFO0_ITM_bytecount_Pos 27 /*!< TPI FIFO0: ITM_bytecount Position */ -#define TPI_FIFO0_ITM_bytecount_Msk (0x3UL << TPI_FIFO0_ITM_bytecount_Pos) /*!< TPI FIFO0: ITM_bytecount Mask */ - -#define TPI_FIFO0_ETM_ATVALID_Pos 26 /*!< TPI FIFO0: ETM_ATVALID Position */ -#define TPI_FIFO0_ETM_ATVALID_Msk (0x3UL << TPI_FIFO0_ETM_ATVALID_Pos) /*!< TPI FIFO0: ETM_ATVALID Mask */ - -#define TPI_FIFO0_ETM_bytecount_Pos 24 /*!< TPI FIFO0: ETM_bytecount Position */ -#define TPI_FIFO0_ETM_bytecount_Msk (0x3UL << TPI_FIFO0_ETM_bytecount_Pos) /*!< TPI FIFO0: ETM_bytecount Mask */ - -#define TPI_FIFO0_ETM2_Pos 16 /*!< TPI FIFO0: ETM2 Position */ -#define TPI_FIFO0_ETM2_Msk (0xFFUL << TPI_FIFO0_ETM2_Pos) /*!< TPI FIFO0: ETM2 Mask */ - -#define TPI_FIFO0_ETM1_Pos 8 /*!< TPI FIFO0: ETM1 Position */ -#define TPI_FIFO0_ETM1_Msk (0xFFUL << TPI_FIFO0_ETM1_Pos) /*!< TPI FIFO0: ETM1 Mask */ - -#define TPI_FIFO0_ETM0_Pos 0 /*!< TPI FIFO0: ETM0 Position */ -#define TPI_FIFO0_ETM0_Msk (0xFFUL << TPI_FIFO0_ETM0_Pos) /*!< TPI FIFO0: ETM0 Mask */ - -/* TPI ITATBCTR2 Register Definitions */ -#define TPI_ITATBCTR2_ATREADY_Pos 0 /*!< TPI ITATBCTR2: ATREADY Position */ -#define TPI_ITATBCTR2_ATREADY_Msk (0x1UL << TPI_ITATBCTR2_ATREADY_Pos) /*!< TPI ITATBCTR2: ATREADY Mask */ - -/* TPI Integration ITM Data Register Definitions (FIFO1) */ -#define TPI_FIFO1_ITM_ATVALID_Pos 29 /*!< TPI FIFO1: ITM_ATVALID Position */ -#define TPI_FIFO1_ITM_ATVALID_Msk (0x3UL << TPI_FIFO1_ITM_ATVALID_Pos) /*!< TPI FIFO1: ITM_ATVALID Mask */ - -#define TPI_FIFO1_ITM_bytecount_Pos 27 /*!< TPI FIFO1: ITM_bytecount Position */ -#define TPI_FIFO1_ITM_bytecount_Msk (0x3UL << TPI_FIFO1_ITM_bytecount_Pos) /*!< TPI FIFO1: ITM_bytecount Mask */ - -#define TPI_FIFO1_ETM_ATVALID_Pos 26 /*!< TPI FIFO1: ETM_ATVALID Position */ -#define TPI_FIFO1_ETM_ATVALID_Msk (0x3UL << TPI_FIFO1_ETM_ATVALID_Pos) /*!< TPI FIFO1: ETM_ATVALID Mask */ - -#define TPI_FIFO1_ETM_bytecount_Pos 24 /*!< TPI FIFO1: ETM_bytecount Position */ -#define TPI_FIFO1_ETM_bytecount_Msk (0x3UL << TPI_FIFO1_ETM_bytecount_Pos) /*!< TPI FIFO1: ETM_bytecount Mask */ - -#define TPI_FIFO1_ITM2_Pos 16 /*!< TPI FIFO1: ITM2 Position */ -#define TPI_FIFO1_ITM2_Msk (0xFFUL << TPI_FIFO1_ITM2_Pos) /*!< TPI FIFO1: ITM2 Mask */ - -#define TPI_FIFO1_ITM1_Pos 8 /*!< TPI FIFO1: ITM1 Position */ -#define TPI_FIFO1_ITM1_Msk (0xFFUL << TPI_FIFO1_ITM1_Pos) /*!< TPI FIFO1: ITM1 Mask */ - -#define TPI_FIFO1_ITM0_Pos 0 /*!< TPI FIFO1: ITM0 Position */ -#define TPI_FIFO1_ITM0_Msk (0xFFUL << TPI_FIFO1_ITM0_Pos) /*!< TPI FIFO1: ITM0 Mask */ - -/* TPI ITATBCTR0 Register Definitions */ -#define TPI_ITATBCTR0_ATREADY_Pos 0 /*!< TPI ITATBCTR0: ATREADY Position */ -#define TPI_ITATBCTR0_ATREADY_Msk (0x1UL << TPI_ITATBCTR0_ATREADY_Pos) /*!< TPI ITATBCTR0: ATREADY Mask */ - -/* TPI Integration Mode Control Register Definitions */ -#define TPI_ITCTRL_Mode_Pos 0 /*!< TPI ITCTRL: Mode Position */ -#define TPI_ITCTRL_Mode_Msk (0x1UL << TPI_ITCTRL_Mode_Pos) /*!< TPI ITCTRL: Mode Mask */ - -/* TPI DEVID Register Definitions */ -#define TPI_DEVID_NRZVALID_Pos 11 /*!< TPI DEVID: NRZVALID Position */ -#define TPI_DEVID_NRZVALID_Msk (0x1UL << TPI_DEVID_NRZVALID_Pos) /*!< TPI DEVID: NRZVALID Mask */ - -#define TPI_DEVID_MANCVALID_Pos 10 /*!< TPI DEVID: MANCVALID Position */ -#define TPI_DEVID_MANCVALID_Msk (0x1UL << TPI_DEVID_MANCVALID_Pos) /*!< TPI DEVID: MANCVALID Mask */ - -#define TPI_DEVID_PTINVALID_Pos 9 /*!< TPI DEVID: PTINVALID Position */ -#define TPI_DEVID_PTINVALID_Msk (0x1UL << TPI_DEVID_PTINVALID_Pos) /*!< TPI DEVID: PTINVALID Mask */ - -#define TPI_DEVID_MinBufSz_Pos 6 /*!< TPI DEVID: MinBufSz Position */ -#define TPI_DEVID_MinBufSz_Msk (0x7UL << TPI_DEVID_MinBufSz_Pos) /*!< TPI DEVID: MinBufSz Mask */ - -#define TPI_DEVID_AsynClkIn_Pos 5 /*!< TPI DEVID: AsynClkIn Position */ -#define TPI_DEVID_AsynClkIn_Msk (0x1UL << TPI_DEVID_AsynClkIn_Pos) /*!< TPI DEVID: AsynClkIn Mask */ - -#define TPI_DEVID_NrTraceInput_Pos 0 /*!< TPI DEVID: NrTraceInput Position */ -#define TPI_DEVID_NrTraceInput_Msk (0x1FUL << TPI_DEVID_NrTraceInput_Pos) /*!< TPI DEVID: NrTraceInput Mask */ - -/* TPI DEVTYPE Register Definitions */ -#define TPI_DEVTYPE_SubType_Pos 0 /*!< TPI DEVTYPE: SubType Position */ -#define TPI_DEVTYPE_SubType_Msk (0xFUL << TPI_DEVTYPE_SubType_Pos) /*!< TPI DEVTYPE: SubType Mask */ - -#define TPI_DEVTYPE_MajorType_Pos 4 /*!< TPI DEVTYPE: MajorType Position */ -#define TPI_DEVTYPE_MajorType_Msk (0xFUL << TPI_DEVTYPE_MajorType_Pos) /*!< TPI DEVTYPE: MajorType Mask */ - -/*@}*/ /* end of group CMSIS_TPI */ - - -#if (__MPU_PRESENT == 1) -/** \ingroup CMSIS_core_register - \defgroup CMSIS_MPU Memory Protection Unit (MPU) - \brief Type definitions for the Memory Protection Unit (MPU) - @{ - */ - -/** \brief Structure type to access the Memory Protection Unit (MPU). - */ -typedef struct -{ - __I uint32_t TYPE; /*!< Offset: 0x000 (R/ ) MPU Type Register */ - __IO uint32_t CTRL; /*!< Offset: 0x004 (R/W) MPU Control Register */ - __IO uint32_t RNR; /*!< Offset: 0x008 (R/W) MPU Region RNRber Register */ - __IO uint32_t RBAR; /*!< Offset: 0x00C (R/W) MPU Region Base Address Register */ - __IO uint32_t RASR; /*!< Offset: 0x010 (R/W) MPU Region Attribute and Size Register */ - __IO uint32_t RBAR_A1; /*!< Offset: 0x014 (R/W) MPU Alias 1 Region Base Address Register */ - __IO uint32_t RASR_A1; /*!< Offset: 0x018 (R/W) MPU Alias 1 Region Attribute and Size Register */ - __IO uint32_t RBAR_A2; /*!< Offset: 0x01C (R/W) MPU Alias 2 Region Base Address Register */ - __IO uint32_t RASR_A2; /*!< Offset: 0x020 (R/W) MPU Alias 2 Region Attribute and Size Register */ - __IO uint32_t RBAR_A3; /*!< Offset: 0x024 (R/W) MPU Alias 3 Region Base Address Register */ - __IO uint32_t RASR_A3; /*!< Offset: 0x028 (R/W) MPU Alias 3 Region Attribute and Size Register */ -} MPU_Type; - -/* MPU Type Register */ -#define MPU_TYPE_IREGION_Pos 16 /*!< MPU TYPE: IREGION Position */ -#define MPU_TYPE_IREGION_Msk (0xFFUL << MPU_TYPE_IREGION_Pos) /*!< MPU TYPE: IREGION Mask */ - -#define MPU_TYPE_DREGION_Pos 8 /*!< MPU TYPE: DREGION Position */ -#define MPU_TYPE_DREGION_Msk (0xFFUL << MPU_TYPE_DREGION_Pos) /*!< MPU TYPE: DREGION Mask */ - -#define MPU_TYPE_SEPARATE_Pos 0 /*!< MPU TYPE: SEPARATE Position */ -#define MPU_TYPE_SEPARATE_Msk (1UL << MPU_TYPE_SEPARATE_Pos) /*!< MPU TYPE: SEPARATE Mask */ - -/* MPU Control Register */ -#define MPU_CTRL_PRIVDEFENA_Pos 2 /*!< MPU CTRL: PRIVDEFENA Position */ -#define MPU_CTRL_PRIVDEFENA_Msk (1UL << MPU_CTRL_PRIVDEFENA_Pos) /*!< MPU CTRL: PRIVDEFENA Mask */ - -#define MPU_CTRL_HFNMIENA_Pos 1 /*!< MPU CTRL: HFNMIENA Position */ -#define MPU_CTRL_HFNMIENA_Msk (1UL << MPU_CTRL_HFNMIENA_Pos) /*!< MPU CTRL: HFNMIENA Mask */ - -#define MPU_CTRL_ENABLE_Pos 0 /*!< MPU CTRL: ENABLE Position */ -#define MPU_CTRL_ENABLE_Msk (1UL << MPU_CTRL_ENABLE_Pos) /*!< MPU CTRL: ENABLE Mask */ - -/* MPU Region Number Register */ -#define MPU_RNR_REGION_Pos 0 /*!< MPU RNR: REGION Position */ -#define MPU_RNR_REGION_Msk (0xFFUL << MPU_RNR_REGION_Pos) /*!< MPU RNR: REGION Mask */ - -/* MPU Region Base Address Register */ -#define MPU_RBAR_ADDR_Pos 5 /*!< MPU RBAR: ADDR Position */ -#define MPU_RBAR_ADDR_Msk (0x7FFFFFFUL << MPU_RBAR_ADDR_Pos) /*!< MPU RBAR: ADDR Mask */ - -#define MPU_RBAR_VALID_Pos 4 /*!< MPU RBAR: VALID Position */ -#define MPU_RBAR_VALID_Msk (1UL << MPU_RBAR_VALID_Pos) /*!< MPU RBAR: VALID Mask */ - -#define MPU_RBAR_REGION_Pos 0 /*!< MPU RBAR: REGION Position */ -#define MPU_RBAR_REGION_Msk (0xFUL << MPU_RBAR_REGION_Pos) /*!< MPU RBAR: REGION Mask */ - -/* MPU Region Attribute and Size Register */ -#define MPU_RASR_ATTRS_Pos 16 /*!< MPU RASR: MPU Region Attribute field Position */ -#define MPU_RASR_ATTRS_Msk (0xFFFFUL << MPU_RASR_ATTRS_Pos) /*!< MPU RASR: MPU Region Attribute field Mask */ - -#define MPU_RASR_XN_Pos 28 /*!< MPU RASR: ATTRS.XN Position */ -#define MPU_RASR_XN_Msk (1UL << MPU_RASR_XN_Pos) /*!< MPU RASR: ATTRS.XN Mask */ - -#define MPU_RASR_AP_Pos 24 /*!< MPU RASR: ATTRS.AP Position */ -#define MPU_RASR_AP_Msk (0x7UL << MPU_RASR_AP_Pos) /*!< MPU RASR: ATTRS.AP Mask */ - -#define MPU_RASR_TEX_Pos 19 /*!< MPU RASR: ATTRS.TEX Position */ -#define MPU_RASR_TEX_Msk (0x7UL << MPU_RASR_TEX_Pos) /*!< MPU RASR: ATTRS.TEX Mask */ - -#define MPU_RASR_S_Pos 18 /*!< MPU RASR: ATTRS.S Position */ -#define MPU_RASR_S_Msk (1UL << MPU_RASR_S_Pos) /*!< MPU RASR: ATTRS.S Mask */ - -#define MPU_RASR_C_Pos 17 /*!< MPU RASR: ATTRS.C Position */ -#define MPU_RASR_C_Msk (1UL << MPU_RASR_C_Pos) /*!< MPU RASR: ATTRS.C Mask */ - -#define MPU_RASR_B_Pos 16 /*!< MPU RASR: ATTRS.B Position */ -#define MPU_RASR_B_Msk (1UL << MPU_RASR_B_Pos) /*!< MPU RASR: ATTRS.B Mask */ - -#define MPU_RASR_SRD_Pos 8 /*!< MPU RASR: Sub-Region Disable Position */ -#define MPU_RASR_SRD_Msk (0xFFUL << MPU_RASR_SRD_Pos) /*!< MPU RASR: Sub-Region Disable Mask */ - -#define MPU_RASR_SIZE_Pos 1 /*!< MPU RASR: Region Size Field Position */ -#define MPU_RASR_SIZE_Msk (0x1FUL << MPU_RASR_SIZE_Pos) /*!< MPU RASR: Region Size Field Mask */ - -#define MPU_RASR_ENABLE_Pos 0 /*!< MPU RASR: Region enable bit Position */ -#define MPU_RASR_ENABLE_Msk (1UL << MPU_RASR_ENABLE_Pos) /*!< MPU RASR: Region enable bit Disable Mask */ - -/*@} end of group CMSIS_MPU */ -#endif - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_CoreDebug Core Debug Registers (CoreDebug) - \brief Type definitions for the Core Debug Registers - @{ - */ - -/** \brief Structure type to access the Core Debug Register (CoreDebug). - */ -typedef struct -{ - __IO uint32_t DHCSR; /*!< Offset: 0x000 (R/W) Debug Halting Control and Status Register */ - __O uint32_t DCRSR; /*!< Offset: 0x004 ( /W) Debug Core Register Selector Register */ - __IO uint32_t DCRDR; /*!< Offset: 0x008 (R/W) Debug Core Register Data Register */ - __IO uint32_t DEMCR; /*!< Offset: 0x00C (R/W) Debug Exception and Monitor Control Register */ -} CoreDebug_Type; - -/* Debug Halting Control and Status Register */ -#define CoreDebug_DHCSR_DBGKEY_Pos 16 /*!< CoreDebug DHCSR: DBGKEY Position */ -#define CoreDebug_DHCSR_DBGKEY_Msk (0xFFFFUL << CoreDebug_DHCSR_DBGKEY_Pos) /*!< CoreDebug DHCSR: DBGKEY Mask */ - -#define CoreDebug_DHCSR_S_RESET_ST_Pos 25 /*!< CoreDebug DHCSR: S_RESET_ST Position */ -#define CoreDebug_DHCSR_S_RESET_ST_Msk (1UL << CoreDebug_DHCSR_S_RESET_ST_Pos) /*!< CoreDebug DHCSR: S_RESET_ST Mask */ - -#define CoreDebug_DHCSR_S_RETIRE_ST_Pos 24 /*!< CoreDebug DHCSR: S_RETIRE_ST Position */ -#define CoreDebug_DHCSR_S_RETIRE_ST_Msk (1UL << CoreDebug_DHCSR_S_RETIRE_ST_Pos) /*!< CoreDebug DHCSR: S_RETIRE_ST Mask */ - -#define CoreDebug_DHCSR_S_LOCKUP_Pos 19 /*!< CoreDebug DHCSR: S_LOCKUP Position */ -#define CoreDebug_DHCSR_S_LOCKUP_Msk (1UL << CoreDebug_DHCSR_S_LOCKUP_Pos) /*!< CoreDebug DHCSR: S_LOCKUP Mask */ - -#define CoreDebug_DHCSR_S_SLEEP_Pos 18 /*!< CoreDebug DHCSR: S_SLEEP Position */ -#define CoreDebug_DHCSR_S_SLEEP_Msk (1UL << CoreDebug_DHCSR_S_SLEEP_Pos) /*!< CoreDebug DHCSR: S_SLEEP Mask */ - -#define CoreDebug_DHCSR_S_HALT_Pos 17 /*!< CoreDebug DHCSR: S_HALT Position */ -#define CoreDebug_DHCSR_S_HALT_Msk (1UL << CoreDebug_DHCSR_S_HALT_Pos) /*!< CoreDebug DHCSR: S_HALT Mask */ - -#define CoreDebug_DHCSR_S_REGRDY_Pos 16 /*!< CoreDebug DHCSR: S_REGRDY Position */ -#define CoreDebug_DHCSR_S_REGRDY_Msk (1UL << CoreDebug_DHCSR_S_REGRDY_Pos) /*!< CoreDebug DHCSR: S_REGRDY Mask */ - -#define CoreDebug_DHCSR_C_SNAPSTALL_Pos 5 /*!< CoreDebug DHCSR: C_SNAPSTALL Position */ -#define CoreDebug_DHCSR_C_SNAPSTALL_Msk (1UL << CoreDebug_DHCSR_C_SNAPSTALL_Pos) /*!< CoreDebug DHCSR: C_SNAPSTALL Mask */ - -#define CoreDebug_DHCSR_C_MASKINTS_Pos 3 /*!< CoreDebug DHCSR: C_MASKINTS Position */ -#define CoreDebug_DHCSR_C_MASKINTS_Msk (1UL << CoreDebug_DHCSR_C_MASKINTS_Pos) /*!< CoreDebug DHCSR: C_MASKINTS Mask */ - -#define CoreDebug_DHCSR_C_STEP_Pos 2 /*!< CoreDebug DHCSR: C_STEP Position */ -#define CoreDebug_DHCSR_C_STEP_Msk (1UL << CoreDebug_DHCSR_C_STEP_Pos) /*!< CoreDebug DHCSR: C_STEP Mask */ - -#define CoreDebug_DHCSR_C_HALT_Pos 1 /*!< CoreDebug DHCSR: C_HALT Position */ -#define CoreDebug_DHCSR_C_HALT_Msk (1UL << CoreDebug_DHCSR_C_HALT_Pos) /*!< CoreDebug DHCSR: C_HALT Mask */ - -#define CoreDebug_DHCSR_C_DEBUGEN_Pos 0 /*!< CoreDebug DHCSR: C_DEBUGEN Position */ -#define CoreDebug_DHCSR_C_DEBUGEN_Msk (1UL << CoreDebug_DHCSR_C_DEBUGEN_Pos) /*!< CoreDebug DHCSR: C_DEBUGEN Mask */ - -/* Debug Core Register Selector Register */ -#define CoreDebug_DCRSR_REGWnR_Pos 16 /*!< CoreDebug DCRSR: REGWnR Position */ -#define CoreDebug_DCRSR_REGWnR_Msk (1UL << CoreDebug_DCRSR_REGWnR_Pos) /*!< CoreDebug DCRSR: REGWnR Mask */ - -#define CoreDebug_DCRSR_REGSEL_Pos 0 /*!< CoreDebug DCRSR: REGSEL Position */ -#define CoreDebug_DCRSR_REGSEL_Msk (0x1FUL << CoreDebug_DCRSR_REGSEL_Pos) /*!< CoreDebug DCRSR: REGSEL Mask */ - -/* Debug Exception and Monitor Control Register */ -#define CoreDebug_DEMCR_TRCENA_Pos 24 /*!< CoreDebug DEMCR: TRCENA Position */ -#define CoreDebug_DEMCR_TRCENA_Msk (1UL << CoreDebug_DEMCR_TRCENA_Pos) /*!< CoreDebug DEMCR: TRCENA Mask */ - -#define CoreDebug_DEMCR_MON_REQ_Pos 19 /*!< CoreDebug DEMCR: MON_REQ Position */ -#define CoreDebug_DEMCR_MON_REQ_Msk (1UL << CoreDebug_DEMCR_MON_REQ_Pos) /*!< CoreDebug DEMCR: MON_REQ Mask */ - -#define CoreDebug_DEMCR_MON_STEP_Pos 18 /*!< CoreDebug DEMCR: MON_STEP Position */ -#define CoreDebug_DEMCR_MON_STEP_Msk (1UL << CoreDebug_DEMCR_MON_STEP_Pos) /*!< CoreDebug DEMCR: MON_STEP Mask */ - -#define CoreDebug_DEMCR_MON_PEND_Pos 17 /*!< CoreDebug DEMCR: MON_PEND Position */ -#define CoreDebug_DEMCR_MON_PEND_Msk (1UL << CoreDebug_DEMCR_MON_PEND_Pos) /*!< CoreDebug DEMCR: MON_PEND Mask */ - -#define CoreDebug_DEMCR_MON_EN_Pos 16 /*!< CoreDebug DEMCR: MON_EN Position */ -#define CoreDebug_DEMCR_MON_EN_Msk (1UL << CoreDebug_DEMCR_MON_EN_Pos) /*!< CoreDebug DEMCR: MON_EN Mask */ - -#define CoreDebug_DEMCR_VC_HARDERR_Pos 10 /*!< CoreDebug DEMCR: VC_HARDERR Position */ -#define CoreDebug_DEMCR_VC_HARDERR_Msk (1UL << CoreDebug_DEMCR_VC_HARDERR_Pos) /*!< CoreDebug DEMCR: VC_HARDERR Mask */ - -#define CoreDebug_DEMCR_VC_INTERR_Pos 9 /*!< CoreDebug DEMCR: VC_INTERR Position */ -#define CoreDebug_DEMCR_VC_INTERR_Msk (1UL << CoreDebug_DEMCR_VC_INTERR_Pos) /*!< CoreDebug DEMCR: VC_INTERR Mask */ - -#define CoreDebug_DEMCR_VC_BUSERR_Pos 8 /*!< CoreDebug DEMCR: VC_BUSERR Position */ -#define CoreDebug_DEMCR_VC_BUSERR_Msk (1UL << CoreDebug_DEMCR_VC_BUSERR_Pos) /*!< CoreDebug DEMCR: VC_BUSERR Mask */ - -#define CoreDebug_DEMCR_VC_STATERR_Pos 7 /*!< CoreDebug DEMCR: VC_STATERR Position */ -#define CoreDebug_DEMCR_VC_STATERR_Msk (1UL << CoreDebug_DEMCR_VC_STATERR_Pos) /*!< CoreDebug DEMCR: VC_STATERR Mask */ - -#define CoreDebug_DEMCR_VC_CHKERR_Pos 6 /*!< CoreDebug DEMCR: VC_CHKERR Position */ -#define CoreDebug_DEMCR_VC_CHKERR_Msk (1UL << CoreDebug_DEMCR_VC_CHKERR_Pos) /*!< CoreDebug DEMCR: VC_CHKERR Mask */ - -#define CoreDebug_DEMCR_VC_NOCPERR_Pos 5 /*!< CoreDebug DEMCR: VC_NOCPERR Position */ -#define CoreDebug_DEMCR_VC_NOCPERR_Msk (1UL << CoreDebug_DEMCR_VC_NOCPERR_Pos) /*!< CoreDebug DEMCR: VC_NOCPERR Mask */ - -#define CoreDebug_DEMCR_VC_MMERR_Pos 4 /*!< CoreDebug DEMCR: VC_MMERR Position */ -#define CoreDebug_DEMCR_VC_MMERR_Msk (1UL << CoreDebug_DEMCR_VC_MMERR_Pos) /*!< CoreDebug DEMCR: VC_MMERR Mask */ - -#define CoreDebug_DEMCR_VC_CORERESET_Pos 0 /*!< CoreDebug DEMCR: VC_CORERESET Position */ -#define CoreDebug_DEMCR_VC_CORERESET_Msk (1UL << CoreDebug_DEMCR_VC_CORERESET_Pos) /*!< CoreDebug DEMCR: VC_CORERESET Mask */ - -/*@} end of group CMSIS_CoreDebug */ - - -/** \ingroup CMSIS_core_register - \defgroup CMSIS_core_base Core Definitions - \brief Definitions for base addresses, unions, and structures. - @{ - */ - -/* Memory mapping of Cortex-M3 Hardware */ -#define SCS_BASE (0xE000E000UL) /*!< System Control Space Base Address */ -#define ITM_BASE (0xE0000000UL) /*!< ITM Base Address */ -#define DWT_BASE (0xE0001000UL) /*!< DWT Base Address */ -#define TPI_BASE (0xE0040000UL) /*!< TPI Base Address */ -#define CoreDebug_BASE (0xE000EDF0UL) /*!< Core Debug Base Address */ -#define SysTick_BASE (SCS_BASE + 0x0010UL) /*!< SysTick Base Address */ -#define NVIC_BASE (SCS_BASE + 0x0100UL) /*!< NVIC Base Address */ -#define SCB_BASE (SCS_BASE + 0x0D00UL) /*!< System Control Block Base Address */ - -#define SCnSCB ((SCnSCB_Type *) SCS_BASE ) /*!< System control Register not in SCB */ -#define SCB ((SCB_Type *) SCB_BASE ) /*!< SCB configuration struct */ -#define SysTick ((SysTick_Type *) SysTick_BASE ) /*!< SysTick configuration struct */ -#define NVIC ((NVIC_Type *) NVIC_BASE ) /*!< NVIC configuration struct */ -#define ITM ((ITM_Type *) ITM_BASE ) /*!< ITM configuration struct */ -#define DWT ((DWT_Type *) DWT_BASE ) /*!< DWT configuration struct */ -#define TPI ((TPI_Type *) TPI_BASE ) /*!< TPI configuration struct */ -#define CoreDebug ((CoreDebug_Type *) CoreDebug_BASE) /*!< Core Debug configuration struct */ - -#if (__MPU_PRESENT == 1) - #define MPU_BASE (SCS_BASE + 0x0D90UL) /*!< Memory Protection Unit */ - #define MPU ((MPU_Type *) MPU_BASE ) /*!< Memory Protection Unit */ -#endif - -/*@} */ - - - -/******************************************************************************* - * Hardware Abstraction Layer - Core Function Interface contains: - - Core NVIC Functions - - Core SysTick Functions - - Core Debug Functions - - Core Register Access Functions - ******************************************************************************/ -/** \defgroup CMSIS_Core_FunctionInterface Functions and Instructions Reference -*/ - - - -/* ########################## NVIC functions #################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_NVICFunctions NVIC Functions - \brief Functions that manage interrupts and exceptions via the NVIC. - @{ - */ - -/** \brief Set Priority Grouping - - The function sets the priority grouping field using the required unlock sequence. - The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. - Only values from 0..7 are used. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. - - \param [in] PriorityGroup Priority grouping field. - */ -__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) -{ - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07); /* only values 0..7 are used */ - - reg_value = SCB->AIRCR; /* read old register configuration */ - reg_value &= ~(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk); /* clear bits to change */ - reg_value = (reg_value | - ((uint32_t)0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (PriorityGroupTmp << 8)); /* Insert write key and priorty group */ - SCB->AIRCR = reg_value; -} - - -/** \brief Get Priority Grouping - - The function reads the priority grouping field from the NVIC Interrupt Controller. - - \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). - */ -__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void) -{ - return ((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos); /* read priority grouping field */ -} - - -/** \brief Enable External Interrupt - - The function enables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn) -{ - NVIC->ISER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* enable interrupt */ -} - - -/** \brief Disable External Interrupt - - The function disables a device-specific interrupt in the NVIC interrupt controller. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn) -{ - NVIC->ICER[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* disable interrupt */ -} - - -/** \brief Get Pending Interrupt - - The function reads the pending register in the NVIC and returns the pending bit - for the specified interrupt. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not pending. - \return 1 Interrupt status is pending. - */ -__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn) -{ - return((uint32_t) ((NVIC->ISPR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if pending else 0 */ -} - - -/** \brief Set Pending Interrupt - - The function sets the pending bit of an external interrupt. - - \param [in] IRQn Interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_SetPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ISPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* set interrupt pending */ -} - - -/** \brief Clear Pending Interrupt - - The function clears the pending bit of an external interrupt. - - \param [in] IRQn External interrupt number. Value cannot be negative. - */ -__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn) -{ - NVIC->ICPR[((uint32_t)(IRQn) >> 5)] = (1 << ((uint32_t)(IRQn) & 0x1F)); /* Clear pending interrupt */ -} - - -/** \brief Get Active Interrupt - - The function reads the active register in NVIC and returns the active bit. - - \param [in] IRQn Interrupt number. - - \return 0 Interrupt status is not active. - \return 1 Interrupt status is active. - */ -__STATIC_INLINE uint32_t NVIC_GetActive(IRQn_Type IRQn) -{ - return((uint32_t)((NVIC->IABR[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F)))?1:0)); /* Return 1 if active else 0 */ -} - - -/** \brief Set Interrupt Priority - - The function sets the priority of an interrupt. - - \note The priority cannot be set for every core interrupt. - - \param [in] IRQn Interrupt number. - \param [in] priority Priority to set. - */ -__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) -{ - if(IRQn < 0) { - SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for Cortex-M System Interrupts */ - else { - NVIC->IP[(uint32_t)(IRQn)] = ((priority << (8 - __NVIC_PRIO_BITS)) & 0xff); } /* set Priority for device specific Interrupts */ -} - - -/** \brief Get Interrupt Priority - - The function reads the priority of an interrupt. The interrupt - number can be positive to specify an external (device specific) - interrupt, or negative to specify an internal (core) interrupt. - - - \param [in] IRQn Interrupt number. - \return Interrupt Priority. Value is aligned automatically to the implemented - priority bits of the microcontroller. - */ -__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn) -{ - - if(IRQn < 0) { - return((uint32_t)(SCB->SHP[((uint32_t)(IRQn) & 0xF)-4] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for Cortex-M system interrupts */ - else { - return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */ -} - - -/** \brief Encode Priority - - The function encodes the priority for an interrupt with the given priority group, - preemptive priority value, and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS), the samllest possible priority group is set. - - \param [in] PriorityGroup Used priority group. - \param [in] PreemptPriority Preemptive priority value (starting from 0). - \param [in] SubPriority Subpriority value (starting from 0). - \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). - */ -__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - return ( - ((PreemptPriority & ((1 << (PreemptPriorityBits)) - 1)) << SubPriorityBits) | - ((SubPriority & ((1 << (SubPriorityBits )) - 1))) - ); -} - - -/** \brief Decode Priority - - The function decodes an interrupt priority value with a given priority group to - preemptive priority value and subpriority value. - In case of a conflict between priority grouping and available - priority bits (__NVIC_PRIO_BITS) the samllest possible priority group is set. - - \param [in] Priority Priority value, which can be retrieved with the function \ref NVIC_GetPriority(). - \param [in] PriorityGroup Used priority group. - \param [out] pPreemptPriority Preemptive priority value (starting from 0). - \param [out] pSubPriority Subpriority value (starting from 0). - */ -__STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t* pPreemptPriority, uint32_t* pSubPriority) -{ - uint32_t PriorityGroupTmp = (PriorityGroup & 0x07); /* only values 0..7 are used */ - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; - - PreemptPriorityBits = ((7 - PriorityGroupTmp) > __NVIC_PRIO_BITS) ? __NVIC_PRIO_BITS : 7 - PriorityGroupTmp; - SubPriorityBits = ((PriorityGroupTmp + __NVIC_PRIO_BITS) < 7) ? 0 : PriorityGroupTmp - 7 + __NVIC_PRIO_BITS; - - *pPreemptPriority = (Priority >> SubPriorityBits) & ((1 << (PreemptPriorityBits)) - 1); - *pSubPriority = (Priority ) & ((1 << (SubPriorityBits )) - 1); -} - - -/** \brief System Reset - - The function initiates a system reset request to reset the MCU. - */ -__STATIC_INLINE void NVIC_SystemReset(void) -{ - __DSB(); /* Ensure all outstanding memory accesses included - buffered write are completed before reset */ - SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | - (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */ - __DSB(); /* Ensure completion of memory access */ - while(1); /* wait until reset */ -} - -/*@} end of CMSIS_Core_NVICFunctions */ - - - -/* ################################## SysTick function ############################################ */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_Core_SysTickFunctions SysTick Functions - \brief Functions that configure the System. - @{ - */ - -#if (__Vendor_SysTickConfig == 0) - -/** \brief System Tick Configuration - - The function initializes the System Timer and its interrupt, and starts the System Tick Timer. - Counter is in free running mode to generate periodic interrupts. - - \param [in] ticks Number of ticks between two interrupts. - - \return 0 Function succeeded. - \return 1 Function failed. - - \note When the variable __Vendor_SysTickConfig is set to 1, then the - function SysTick_Config is not included. In this case, the file device.h - must contain a vendor-specific implementation of this function. - - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - if ((ticks - 1) > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value impossible */ - - SysTick->LOAD = ticks - 1; /* set reload register */ - NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); /* set Priority for Systick Interrupt */ - SysTick->VAL = 0; /* Load the SysTick Counter Value */ - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0); /* Function successful */ -} - -#endif - -/*@} end of CMSIS_Core_SysTickFunctions */ - - - -/* ##################################### Debug In/Output function ########################################### */ -/** \ingroup CMSIS_Core_FunctionInterface - \defgroup CMSIS_core_DebugFunctions ITM Functions - \brief Functions that access the ITM debug interface. - @{ - */ - -extern volatile int32_t ITM_RxBuffer; /*!< External variable to receive characters. */ -#define ITM_RXBUFFER_EMPTY 0x5AA55AA5 /*!< Value identifying \ref ITM_RxBuffer is ready for next character. */ - - -/** \brief ITM Send Character - - The function transmits a character via the ITM channel 0, and - \li Just returns when no debugger is connected that has booked the output. - \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. - - \param [in] ch Character to transmit. - - \returns Character to transmit. - */ -__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) -{ - if ((ITM->TCR & ITM_TCR_ITMENA_Msk) && /* ITM enabled */ - (ITM->TER & (1UL << 0) ) ) /* ITM Port #0 enabled */ - { - while (ITM->PORT[0].u32 == 0); - ITM->PORT[0].u8 = (uint8_t) ch; - } - return (ch); -} - - -/** \brief ITM Receive Character - - The function inputs a character via the external variable \ref ITM_RxBuffer. - - \return Received character. - \return -1 No character pending. - */ -__STATIC_INLINE int32_t ITM_ReceiveChar (void) { - int32_t ch = -1; /* no character available */ - - if (ITM_RxBuffer != ITM_RXBUFFER_EMPTY) { - ch = ITM_RxBuffer; - ITM_RxBuffer = ITM_RXBUFFER_EMPTY; /* ready for next character */ - } - - return (ch); -} - - -/** \brief ITM Check Character - - The function checks whether a character is pending for reading in the variable \ref ITM_RxBuffer. - - \return 0 No character available. - \return 1 Character available. - */ -__STATIC_INLINE int32_t ITM_CheckChar (void) { - - if (ITM_RxBuffer == ITM_RXBUFFER_EMPTY) { - return (0); /* no character available */ - } else { - return (1); /* character available */ - } -} - -/*@} end of CMSIS_core_DebugFunctions */ - -#endif /* __CORE_SC300_H_DEPENDANT */ - -#endif /* __CMSIS_GENERIC */ - -#ifdef __cplusplus -} -#endif diff --git a/bsp/mb9bf618s/CMSIS/README.txt b/bsp/mb9bf618s/CMSIS/README.txt deleted file mode 100644 index 23717194f4..0000000000 --- a/bsp/mb9bf618s/CMSIS/README.txt +++ /dev/null @@ -1,37 +0,0 @@ -* ------------------------------------------------------------------- -* Copyright (C) 2011-2013 ARM Limited. All rights reserved. -* -* Date: 18 March 2013 -* Revision: V3.20 -* -* Project: Cortex Microcontroller Software Interface Standard (CMSIS) -* Title: Release Note for CMSIS -* -* ------------------------------------------------------------------- - - -NOTE - Open the index.html file to access CMSIS documentation - - -The Cortex Microcontroller Software Interface Standard (CMSIS) provides a single standard across all -Cortex-Mx processor series vendors. It enables code re-use and code sharing across software projects -and reduces time-to-market for new embedded applications. - -CMSIS is released under the terms of the end user license agreement ("CMSIS END USER LICENCE AGREEMENT.pdf"). -Any user of the software package is bound to the terms and conditions of the end user license agreement. - - -You will find the following sub-directories: - -Documentation - Contains CMSIS documentation. - -DSP_Lib - MDK project files, Examples and source files etc.. to build the - CMSIS DSP Software Library for Cortex-M0, Cortex-M3, Cortex-M4 processors. - -Include - CMSIS Core Support and CMSIS DSP Include Files. - -Lib - CMSIS DSP Libraries. - -RTOS - CMSIS RTOS API template header file. - -SVD - CMSIS SVD Schema files and Conversion Utility. diff --git a/bsp/mb9bf618s/CMSIS/SConscript b/bsp/mb9bf618s/CMSIS/SConscript deleted file mode 100644 index 64f6f21408..0000000000 --- a/bsp/mb9bf618s/CMSIS/SConscript +++ /dev/null @@ -1,21 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = GetCurrentDir() -src = Glob('DeviceSupport/fujitsu/mb9bf61x/*.c') - -CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/'] - -# add for startup script -if rtconfig.CROSS_TOOL == 'gcc': - src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c'] -elif rtconfig.CROSS_TOOL == 'keil': - src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S'] -elif rtconfig.CROSS_TOOL == 'iar': - src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S'] - -CPPDEFINES = [rtconfig.FM3_TYPE] -group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) - -Return('group') diff --git a/bsp/mb9bf618s/SConscript b/bsp/mb9bf618s/SConscript deleted file mode 100644 index fe0ae941ae..0000000000 --- a/bsp/mb9bf618s/SConscript +++ /dev/null @@ -1,14 +0,0 @@ -# for module compiling -import os -Import('RTT_ROOT') - -cwd = str(Dir('#')) -objs = [] -list = os.listdir(cwd) - -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) - -Return('objs') diff --git a/bsp/mb9bf618s/SConstruct b/bsp/mb9bf618s/SConstruct deleted file mode 100644 index 97f374e663..0000000000 --- a/bsp/mb9bf618s/SConstruct +++ /dev/null @@ -1,35 +0,0 @@ -import os -import sys -import rtconfig - -if os.getenv('RTT_ROOT'): - RTT_ROOT = os.getenv('RTT_ROOT') -else: - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') - -sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] -from building import * - -TARGET = 'rtthread.' + rtconfig.TARGET_EXT - -DefaultEnvironment(tools=[]) -env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) -env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - -if rtconfig.PLATFORM == 'iar': - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') - -Export('RTT_ROOT') -Export('rtconfig') - -# prepare building environment -objs = PrepareBuilding(env, RTT_ROOT) - -# make a building -DoBuilding(TARGET, objs) diff --git a/bsp/mb9bf618s/applications/SConscript b/bsp/mb9bf618s/applications/SConscript deleted file mode 100644 index 01eb940dfb..0000000000 --- a/bsp/mb9bf618s/applications/SConscript +++ /dev/null @@ -1,11 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') -CPPPATH = [cwd, str(Dir('#'))] - -group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf618s/applications/application.c b/bsp/mb9bf618s/applications/application.c deleted file mode 100644 index 737034fff6..0000000000 --- a/bsp/mb9bf618s/applications/application.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-05-24 Bernard the first version - */ - -/** - * @addtogroup FM3 - */ -/*@{*/ - -#include -#include "board.h" - -void rt_init_thread_entry(void *parameter) -{ -#ifdef RT_USING_COMPONENTS_INIT - /* initialization RT-Thread Components */ - rt_components_init(); -#endif - -#ifdef RT_USING_FINSH - (RT_CONSOLE_DEVICE_NAME); -#endif /* RT_USING_FINSH */ - - /**< init led device */ - { - extern void rt_led_hw_init(void); - rt_led_hw_init(); - } - -} - -int rt_application_init() -{ - rt_thread_t tid; - - tid = rt_thread_create("init", - rt_init_thread_entry, RT_NULL, - 2048, 8, 20); - if (tid != RT_NULL) rt_thread_startup(tid); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf618s/applications/startup.c b/bsp/mb9bf618s/applications/startup.c deleted file mode 100644 index 22d38bcf95..0000000000 --- a/bsp/mb9bf618s/applications/startup.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -extern int rt_application_init(void); - -#ifdef __CC_ARM -extern int Image$$RW_IRAM1$$ZI$$Limit; -#elif __ICCARM__ -#pragma section="HEAP" -#else -extern int __bss_end; -#endif - -/** - * This function will startup RT-Thread RTOS. - */ -void rtthread_startup(void) -{ - /* init board */ - rt_hw_board_init(); - - /* show version */ - rt_show_version(); - - /* init timer system */ - rt_system_timer_init(); - -#ifdef RT_USING_HEAP -#ifdef __CC_ARM - rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)FM3_SRAM_END); -#elif __ICCARM__ - rt_system_heap_init(__segment_end("HEAP"), (void*)FM3_SRAM_END); -#else - /* init memory system */ - rt_system_heap_init((void*)&__bss_end, (void*)FM3_SRAM_END); -#endif -#endif - - /* init scheduler system */ - rt_system_scheduler_init(); - - /* init timer thread */ - rt_system_timer_thread_init(); - - /* init application */ - rt_application_init(); - - /* init idle thread */ - rt_thread_idle_init(); - - /* start scheduler */ - rt_system_scheduler_start(); - - /* never reach here */ - return ; -} - -int main(void) -{ - /* disable interrupt first */ - rt_hw_interrupt_disable(); - - /* startup RT-Thread RTOS */ - rtthread_startup(); - - return 0; -} - -/*@}*/ diff --git a/bsp/mb9bf618s/drivers/SConscript b/bsp/mb9bf618s/drivers/SConscript deleted file mode 100644 index 5bbef48785..0000000000 --- a/bsp/mb9bf618s/drivers/SConscript +++ /dev/null @@ -1,11 +0,0 @@ -Import('RTT_ROOT') -Import('rtconfig') -from building import * - -cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') -CPPPATH = [cwd] - -group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/bsp/mb9bf618s/drivers/board.c b/bsp/mb9bf618s/drivers/board.c deleted file mode 100644 index 8490e7a060..0000000000 --- a/bsp/mb9bf618s/drivers/board.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2011-02-24 Bernard first implementation - */ - -#include -#include - -#include "board.h" - -#include "serial.h" - -/** - * @addtogroup FM3 - */ - -/*@{*/ - -/** - * This is the timer interrupt service routine. - * - */ -void SysTick_Handler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - - rt_tick_increase(); - - /* leave interrupt */ - rt_interrupt_leave(); -} - -/** - * This fucntion returns milliseconds since system passed - */ -rt_uint32_t rt_hw_tick_get_millisecond(void) -{ - rt_tick_t tick; - rt_uint32_t value; - -#define TICK_MS (1000/RT_TICK_PER_SECOND) - - tick = rt_tick_get(); - value = tick * TICK_MS + (SysTick->LOAD - SysTick->VAL) * TICK_MS / SysTick->LOAD; - - return value; -} - -/** - * This fucntion returns microseconds since system passed - */ -rt_uint32_t rt_hw_tick_get_microsecond(void) -{ - rt_tick_t tick; - rt_uint32_t value; - -#define TICK_US (1000000/RT_TICK_PER_SECOND) - - tick = rt_tick_get(); - value = tick * TICK_US + (SysTick->LOAD - SysTick->VAL) * TICK_US / SysTick->LOAD; - - return value; -} - -/** -* This function will initial FM3 Easy Kit board. - */ -void rt_hw_board_init(void) -{ - /* disable all analog input. */ - FM3_GPIO->ADE = 0; - - /* init systick */ - SysTick_Config(SystemCoreClock/RT_TICK_PER_SECOND); - - /* initialize UART device */ - rt_hw_serial_init(); - /* set console as UART device */ - rt_console_set_device(RT_CONSOLE_DEVICE_NAME); - -#ifdef RT_USING_COMPONENTS_INIT - rt_components_board_init(); -#endif -} - -/*@}*/ diff --git a/bsp/mb9bf618s/drivers/board.h b/bsp/mb9bf618s/drivers/board.h deleted file mode 100644 index c082b0b54c..0000000000 --- a/bsp/mb9bf618s/drivers/board.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2009-09-22 Bernard add board.h to this bsp - * 2011-03-04 lgnq add board.h to FM3 bsp - */ - -#ifndef __BOARD_H__ -#define __BOARD_H__ - -#if defined MB9B610S -# include -#elif defined MB9B610T -# include -#else -# warning "you must define CPU type. e.g: MB9B610S or MB9B610T" -# warning "define MB9B610S default" -# define MB9B610S /* default: MB9B610S */ -# include -#endif - -#include "serial.h" - -//Internal SRAM memory size[Kbytes] <8-64> -//product MB9BFx16S/T MB9BFx17S/T MB9BFx18S/T -//FLASH : 512 768 1024 -//SRAM0 : 32 48 64 -//SRAM1 : 32 48 64 -#define FM3_SRAM_SIZE 128 -#define FM3_SRAM_END (0x1FFF0000 + FM3_SRAM_SIZE * 1024) - -/* RT_USING_UART */ -#define RT_USING_UART0 -//#define RT_USING_UART2 -//#define RT_USING_UART4 -#define RT_UART_RX_BUFFER_SIZE 64 - -void rt_hw_board_init(void); -rt_uint32_t rt_hw_tick_get_millisecond(void); -rt_uint32_t rt_hw_tick_get_microsecond(void); - -#endif diff --git a/bsp/mb9bf618s/drivers/led.c b/bsp/mb9bf618s/drivers/led.c deleted file mode 100644 index bfad9947e7..0000000000 --- a/bsp/mb9bf618s/drivers/led.c +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ - -#include -#include "board.h" - -#define RT_DEVICE_CTRL_RTC_GET_COUNT 0x81 /**< get count */ - -#define LED_NUM 4 -struct fm3_gpio_ctrl -{ - uint32_t led_num; - volatile uint32_t * PDOR; - volatile uint32_t * PDIR; -}; - -struct fm3_led -{ - /* inherit from rt_device */ - struct rt_device parent; - - struct fm3_gpio_ctrl fm3_gpio_ctrl[LED_NUM]; -}; - -static struct fm3_led fm3_led; - -static rt_err_t rt_led_init (rt_device_t dev) -{ - uint32_t i; - - /* led0 : P54 */ - FM3_GPIO->PFR5 &= ~((1<<7) | (1<<6) | (1<<5) |(1<<4)); /* set P54 fuction is GPIO. */ - FM3_GPIO->DDR5 |= (1<<7) | (1<<6) | (1<<5) |(1<<4); /* set P54 output. */ - - /* LED0 */ - i = 0; - fm3_led.fm3_gpio_ctrl[i].led_num = 4; - fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; - fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; - - /* LED1 */ - i++; - fm3_led.fm3_gpio_ctrl[i].led_num = 5; - fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; - fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; - - /* LED2 */ - i++; - fm3_led.fm3_gpio_ctrl[i].led_num = 6; - fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; - fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; - - /* LED3 */ - i++; - fm3_led.fm3_gpio_ctrl[i].led_num = 7; - fm3_led.fm3_gpio_ctrl[i].PDOR = &FM3_GPIO->PDOR5; - fm3_led.fm3_gpio_ctrl[i].PDIR = &FM3_GPIO->PDIR5; - - return RT_EOK; -} - -static rt_err_t rt_led_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -static rt_err_t rt_led_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t rt_led_read (rt_device_t dev, rt_off_t pos, void* buffer, - rt_size_t size) -{ - rt_ubase_t index = 0; - rt_ubase_t nr = size; - rt_uint8_t * value = buffer; - - RT_ASSERT(dev == &fm3_led.parent); - RT_ASSERT((pos+size) <= LED_NUM ); - - for(index=0; index -void led(rt_uint32_t led, rt_uint32_t value) -{ - rt_uint8_t led_value = value; - rt_led_write(&fm3_led.parent, led, &led_value, 1); -} -FINSH_FUNCTION_EXPORT(led, e.g:led(0,100).) -#endif diff --git a/bsp/mb9bf618s/drivers/serial.c b/bsp/mb9bf618s/drivers/serial.c deleted file mode 100644 index 79279e79e5..0000000000 --- a/bsp/mb9bf618s/drivers/serial.c +++ /dev/null @@ -1,433 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2006-03-13 Bernard first version - * 2011-05-15 lgnq modified according bernard's implementaion. - */ - -#include - -#include "serial.h" - -/** - * @addtogroup FM3 MB9B610 - */ -/*@{*/ - -/* RT-Thread Device Interface */ -/** - * This function initializes serial - */ -static rt_err_t rt_serial_init (rt_device_t dev) -{ - struct serial_device* uart = (struct serial_device*) dev->user_data; - - if (!(dev->flag & RT_DEVICE_FLAG_ACTIVATED)) - { - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - rt_memset(uart->int_rx->rx_buffer, 0, - sizeof(uart->int_rx->rx_buffer)); - uart->int_rx->read_index = uart->int_rx->save_index = 0; - } - - if (dev->flag & RT_DEVICE_FLAG_INT_TX) - { - rt_memset(uart->int_tx->tx_buffer, 0, - sizeof(uart->int_tx->tx_buffer)); - uart->int_tx->write_index = uart->int_tx->save_index = 0; - } - - dev->flag |= RT_DEVICE_FLAG_ACTIVATED; - } - - return RT_EOK; -} - -/* save a char to serial buffer */ -static void rt_serial_savechar(struct serial_device* uart, char ch) -{ - rt_base_t level; - - /* disable interrupt */ - level = rt_hw_interrupt_disable(); - - uart->int_rx->rx_buffer[uart->int_rx->save_index] = ch; - uart->int_rx->save_index ++; - if (uart->int_rx->save_index >= UART_RX_BUFFER_SIZE) - uart->int_rx->save_index = 0; - - /* if the next position is read index, discard this 'read char' */ - if (uart->int_rx->save_index == uart->int_rx->read_index) - { - uart->int_rx->read_index ++; - if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) - uart->int_rx->read_index = 0; - } - - /* enable interrupt */ - rt_hw_interrupt_enable(level); -} - -static rt_err_t rt_serial_open(rt_device_t dev, rt_uint16_t oflag) -{ - struct serial_device* uart; - - RT_ASSERT(dev != RT_NULL); - uart = (struct serial_device*) dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - /* enable interrupt */ - UART_ENABLE_IRQ(uart->rx_irq); - } - - return RT_EOK; -} - -static rt_err_t rt_serial_close(rt_device_t dev) -{ - struct serial_device* uart; - - RT_ASSERT(dev != RT_NULL); - uart = (struct serial_device*) dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - /* disable interrupt */ - UART_DISABLE_IRQ(uart->rx_irq); - } - - return RT_EOK; -} - -static rt_size_t rt_serial_read (rt_device_t dev, rt_off_t pos, void* buffer, - rt_size_t size) -{ - rt_uint8_t* ptr; - rt_err_t err_code; - struct serial_device* uart; - - ptr = buffer; - err_code = RT_EOK; - uart = (struct serial_device*)dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_RX) - { - rt_base_t level; - - /* interrupt mode Rx */ - while (size) - { - if (uart->int_rx->read_index != uart->int_rx->save_index) - { - *ptr++ = uart->int_rx->rx_buffer[uart->int_rx->read_index]; - size --; - - /* disable interrupt */ - level = rt_hw_interrupt_disable(); - - uart->int_rx->read_index ++; - if (uart->int_rx->read_index >= UART_RX_BUFFER_SIZE) - uart->int_rx->read_index = 0; - - /* enable interrupt */ - rt_hw_interrupt_enable(level); - } - else - { - /* set error code */ - err_code = -RT_EEMPTY; - break; - } - } - } - else - { - /* polling mode */ - while ((rt_uint32_t)ptr - (rt_uint32_t)buffer < size) - { - while (uart->uart_device->SSR & SSR_RDRF) - { - *ptr = uart->uart_device->RDR & 0xff; - ptr ++; - } - } - } - - /* set error code */ - rt_set_errno(err_code); - return (rt_uint32_t)ptr - (rt_uint32_t)buffer; -} - -static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, - const void* buffer, rt_size_t size) -{ - rt_uint8_t* ptr; - rt_err_t err_code; - struct serial_device* uart; - - err_code = RT_EOK; - ptr = (rt_uint8_t*)buffer; - uart = (struct serial_device*)dev->user_data; - - if (dev->flag & RT_DEVICE_FLAG_INT_TX) - { - /* interrupt mode Tx */ - while (uart->int_tx->save_index != uart->int_tx->write_index) - { - /* save on tx buffer */ - uart->int_tx->tx_buffer[uart->int_tx->save_index] = *ptr++; - - -- size; - - /* move to next position */ - uart->int_tx->save_index ++; - - /* wrap save index */ - if (uart->int_tx->save_index >= UART_TX_BUFFER_SIZE) - uart->int_tx->save_index = 0; - } - - /* set error code */ - if (size > 0) - err_code = -RT_EFULL; - } - else - { - /* polling mode */ - while (size) - { - /* - * to be polite with serial console add a line feed - * to the carriage return character - */ - if (*ptr == '\n' && (dev->flag & RT_DEVICE_FLAG_STREAM)) - { - while (!(uart->uart_device->SSR & SSR_TDRE)); - uart->uart_device->TDR = '\r'; - } - - while (!(uart->uart_device->SSR & SSR_TDRE)); - uart->uart_device->TDR = (*ptr & 0x1FF); - - ++ptr; - --size; - } - } - - /* set error code */ - rt_set_errno(err_code); - - return (rt_uint32_t)ptr - (rt_uint32_t)buffer; -} - -static rt_err_t rt_serial_control (rt_device_t dev, int cmd, void *args) -{ - RT_ASSERT(dev != RT_NULL); - - switch (cmd) - { - case RT_DEVICE_CTRL_SUSPEND: - /* suspend device */ - dev->flag |= RT_DEVICE_FLAG_SUSPENDED; - break; - - case RT_DEVICE_CTRL_RESUME: - /* resume device */ - dev->flag &= ~RT_DEVICE_FLAG_SUSPENDED; - break; - } - - return RT_EOK; -} - -/* - * serial register - */ -rt_err_t rt_hw_serial_register(rt_device_t device, const char* name, - rt_uint32_t flag, struct serial_device *serial) -{ - RT_ASSERT(device != RT_NULL); - - device->type = RT_Device_Class_Char; - device->rx_indicate = RT_NULL; - device->tx_complete = RT_NULL; - device->init = rt_serial_init; - device->open = rt_serial_open; - device->close = rt_serial_close; - device->read = rt_serial_read; - device->write = rt_serial_write; - device->control = rt_serial_control; - device->user_data = serial; - - /* register a character device */ - return rt_device_register(device, name, RT_DEVICE_FLAG_RDWR | flag); -} - -/* ISR for serial interrupt */ -void rt_hw_serial_isr(rt_device_t device) -{ - struct serial_device* uart = (struct serial_device*) device->user_data; - - /* interrupt mode receive */ - RT_ASSERT(device->flag & RT_DEVICE_FLAG_INT_RX); - - /* save on rx buffer */ - while (uart->uart_device->SSR & SSR_RDRF) - { - rt_serial_savechar(uart, uart->uart_device->RDR & 0xff); - } - - /* invoke callback */ - if (device->rx_indicate != RT_NULL) - { - rt_size_t rx_length; - - /* get rx length */ - rx_length = uart->int_rx->read_index > uart->int_rx->save_index ? - UART_RX_BUFFER_SIZE - uart->int_rx->read_index + uart->int_rx->save_index : - uart->int_rx->save_index - uart->int_rx->read_index; - - device->rx_indicate(device, rx_length); - } -} - -#ifdef RT_USING_UART0 -/* UART0 device driver structure */ -#define UART0 FM3_MFS0_UART -struct serial_int_rx uart0_int_rx; -struct serial_device uart0 = -{ - UART0, - MFS0RX_IRQn, - MFS0TX_IRQn, - &uart0_int_rx, - RT_NULL -}; -struct rt_device uart0_device; - -void MFS0RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&uart0_device); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif /**< #ifdef RT_USING_UART0 */ - -#ifdef RT_USING_UART2 -/* UART2 device driver structure */ -#define UART2 FM3_MFS2_UART -struct serial_int_rx uart2_int_rx; -struct serial_device uart2 = -{ - UART2, - MFS2RX_IRQn, - MFS2TX_IRQn, - &uart2_int_rx, - RT_NULL -}; -struct rt_device uart2_device; - -void MFS2RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&uart2_device); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif /**< #ifdef RT_USING_UART2 */ - -#ifdef RT_USING_UART4 -/* UART4 device driver structure */ -#define UART4 FM3_MFS4_UART -struct serial_int_rx uart4_int_rx; -struct serial_device uart4 = -{ - (FM3_MFS03_UART_TypeDef*)UART4, - MFS4RX_IRQn, - MFS4TX_IRQn, - &uart4_int_rx, - RT_NULL -}; -struct rt_device uart4_device; - -void MFS4RX_IRQHandler(void) -{ - /* enter interrupt */ - rt_interrupt_enter(); - rt_hw_serial_isr(&uart4_device); - /* leave interrupt */ - rt_interrupt_leave(); -} -#endif /**< #ifdef RT_USING_UART4 */ - -void rt_hw_serial_init(void) -{ - uint32_t APB2_clock = (SystemCoreClock >> (APBC2_PSR_Val & 0x03)); - -#ifdef RT_USING_UART0 - /* initialize UART0 */ - /* Set Uart Ch0 Port, SIN0_0:P21, SOT0_0:P22 */ - FM3_GPIO->ADE &= ~(1UL<<31); /* disable P22 AN31 function */ - FM3_GPIO->PFR2 = FM3_GPIO->PFR2 | (1<<1) | (1<<2); - FM3_GPIO->EPFR07 = FM3_GPIO->EPFR07 & ~(3<<4 | 3<<6) | (1<<4) | (1<<6); - - uart0.uart_device->SMR = SMR_MD_UART | SMR_SOE;; - uart0.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ - uart0.uart_device->ESCR = ESCR_DATABITS_8; - uart0.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; - - /* register UART0 device */ - rt_hw_serial_register(&uart0_device, - "uart0", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart0); -#endif /**< #ifdef RT_USING_UART0 */ - -#ifdef RT_USING_UART2 - /* initialize UART2 */ - /* Set Uart Ch2 Port, SIN2_2:P17, SOT2_2:P18 */ - FM3_GPIO->ADE &= ~(1<<7 | 1<<8); /* disable P17 AN07 and P18 AN08 function */ - FM3_GPIO->PFR1 = FM3_GPIO->PFR1 | (1<<7) | (1<<8) ; - FM3_GPIO->EPFR07 = FM3_GPIO->EPFR07 | (3<<16) | (3<<18) ; - - uart2.uart_device->SMR = SMR_MD_UART | SMR_SOE;; - uart2.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ - uart2.uart_device->ESCR = ESCR_DATABITS_8; - uart2.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; - - /* register UART2 device */ - rt_hw_serial_register(&uart2_device, - "uart2", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart2); -#endif /**< #ifdef RT_USING_UART2 */ - -#ifdef RT_USING_UART4 - /* initialize UART4 */ - /* Set Uart Ch4 Port, SIN4_2:P05, SOT4_2:P06 */ - FM3_GPIO->PFR0 = FM3_GPIO->PFR0 | (1<<5) | (1<<6); - FM3_GPIO->EPFR08 = FM3_GPIO->EPFR08 | (3<<4) | (3<<6); - - uart4.uart_device->SMR = SMR_MD_UART | SMR_SOE;; - uart4.uart_device->BGR = (APB2_clock + (BPS/2))/BPS - 1; /* round */ - uart4.uart_device->ESCR = ESCR_DATABITS_8; - uart4.uart_device->SCR = SCR_RXE | SCR_TXE | SCR_RIE; - - /* register UART4 device */ - rt_hw_serial_register(&uart4_device, - "uart4", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, - &uart4); -#endif /**< #ifdef RT_USING_UART4 */ -} - -/*@}*/ diff --git a/bsp/mb9bf618s/drivers/serial.h b/bsp/mb9bf618s/drivers/serial.h deleted file mode 100644 index 388f9eef86..0000000000 --- a/bsp/mb9bf618s/drivers/serial.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2006-03-13 Bernard first version - * 2011-05-15 lgnq modified according bernard's implementaion. - */ - -#ifndef __RT_HW_SERIAL_H__ -#define __RT_HW_SERIAL_H__ - -#include -#include - -#include "board.h" - -#define SMR_SOE 0x01U -#define SMR_BDS 0x04U -#define SMR_SBL 0x08U -#define SMR_WUCR 0x10U -#define SMR_MD_UART 0x00U -#define SMR_MD_UART_MP 0x20U -#define SMR_MD_SIO 0x40U -#define SMR_MD_LIN 0x60U -#define SMR_MD_I2C 0x80U - -#define SCR_TXE 0x01U -#define SCR_RXE 0x02U -#define SCR_TBIE 0x04U -#define SCR_TIE 0x08U -#define SCR_RIE 0x10U -#define SCR_UPGL 0x80U - -#define SSR_TBI 0x01U -#define SSR_TDRE 0x02U -#define SSR_RDRF 0x04U -#define SSR_ORE 0x08U -#define SSR_FRE 0x10U -#define SSR_PE 0x20U -#define SSR_REC 0x80U - -#define ESCR_P 0x08U -#define ESCR_PEN 0x10U -#define ESCR_INV 0x20U -#define ESCR_ESBL 0x40U -#define ESCR_FLWEN 0x80U -#define ESCR_DATABITS_8 0x00U -#define ESCR_DATABITS_5 0x01U -#define ESCR_DATABITS_6 0x02U -#define ESCR_DATABITS_7 0x03U -#define ESCR_DATABITS_9 0x04U - -#define BPS 115200 /* serial baudrate */ - -#define UART_RX_BUFFER_SIZE 64 -#define UART_TX_BUFFER_SIZE 64 - -struct serial_int_rx -{ - rt_uint8_t rx_buffer[UART_RX_BUFFER_SIZE]; - rt_uint32_t read_index, save_index; -}; - -struct serial_int_tx -{ - rt_uint8_t tx_buffer[UART_TX_BUFFER_SIZE]; - rt_uint32_t write_index, save_index; -}; - -/* - * Enable/DISABLE Interrupt Controller - */ -/* deviation from MISRA-C:2004 Rule 19.7 */ -#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n)) -#define UART_DISABLE_IRQ(n) NVIC_DisableIRQ((n)) - -struct serial_device -{ - FM3_MFS03_UART_TypeDef* uart_device; - /* irq number */ - IRQn_Type rx_irq, tx_irq; - - /* rx structure */ - struct serial_int_rx* int_rx; - /* tx structure */ - struct serial_int_tx* int_tx; -}; - -void rt_hw_serial_isr(rt_device_t device); -void rt_hw_serial_init(void); - -#endif diff --git a/bsp/mb9bf618s/project.ewp b/bsp/mb9bf618s/project.ewp deleted file mode 100644 index 25f7f69663..0000000000 --- a/bsp/mb9bf618s/project.ewp +++ /dev/null @@ -1,2012 +0,0 @@ - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 21 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 28 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 15 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 21 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 28 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 15 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - Applications - - $PROJ_DIR$\applications\application.c - - - $PROJ_DIR$\applications\startup.c - - - - CMSIS - - $PROJ_DIR$\CMSIS\DeviceSupport\fujitsu\mb9bf61x\system_mb9bf61x.c - - - $PROJ_DIR$\CMSIS\DeviceSupport\fujitsu\mb9bf61x\startup\iar\startup_mb9bf61x.S - - - - Compiler - - $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c - - - $PROJ_DIR$\..\..\components\libc\compilers\common\time.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c - - - $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c - - - - CPU - - $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - - - $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - - - $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c - - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c - - - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S - - - - Drivers - - $PROJ_DIR$\drivers\led.c - - - $PROJ_DIR$\drivers\serial.c - - - $PROJ_DIR$\drivers\board.c - - - - Finsh - - $PROJ_DIR$\..\..\components\finsh\shell.c - - - $PROJ_DIR$\..\..\components\finsh\msh.c - - - - Kernel - - $PROJ_DIR$\..\..\src\kservice.c - - - $PROJ_DIR$\..\..\src\thread.c - - - $PROJ_DIR$\..\..\src\clock.c - - - $PROJ_DIR$\..\..\src\scheduler.c - - - $PROJ_DIR$\..\..\src\timer.c - - - $PROJ_DIR$\..\..\src\mem.c - - - $PROJ_DIR$\..\..\src\ipc.c - - - $PROJ_DIR$\..\..\src\device.c - - - $PROJ_DIR$\..\..\src\object.c - - - $PROJ_DIR$\..\..\src\mempool.c - - - $PROJ_DIR$\..\..\src\idle.c - - - $PROJ_DIR$\..\..\src\components.c - - - $PROJ_DIR$\..\..\src\irq.c - - - - POSIX - - - utestcases - - diff --git a/bsp/mb9bf618s/project.eww b/bsp/mb9bf618s/project.eww deleted file mode 100644 index c2cb02eb1e..0000000000 --- a/bsp/mb9bf618s/project.eww +++ /dev/null @@ -1,10 +0,0 @@ - - - - - $WS_DIR$\project.ewp - - - - - diff --git a/bsp/mb9bf618s/project.uvproj b/bsp/mb9bf618s/project.uvproj deleted file mode 100644 index c249d3fac1..0000000000 --- a/bsp/mb9bf618s/project.uvproj +++ /dev/null @@ -1,630 +0,0 @@ - - - 1.1 -
### uVision Project, (C) Keil Software
- - - rtthread - 0x4 - ARM-ADS - - - MB9BF618S - Fujitsu Semiconductors - IRAM(0x20000000-0x2000FFFF) IRAM2(0x1FFF0000-0x1FFFFFFF) IROM(0x00000000-0x000FFFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") - - "Startup\Fujitsu\MB9BF610\startup_mb9bf61x.s" ("Fujitsu MB9BF610 Startup Code") - UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx08_1024 -FS00 -FL0100000) - 6149 - mb9bf618s.h - - - - - - - - - - SFD\Fujitsu\MB9BF610\MB9BF618S.SFR - 0 - - - - Fujitsu\MB9BF610\ - Fujitsu\MB9BF610\ - - 0 - 0 - 0 - 0 - 1 - - .\build\ - rtthread-fm3 - 1 - 0 - 0 - 1 - 0 - .\build\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 1 - 0 - fromelf --bin !L --output rtthread.bin - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM3 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM3 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 0 - 1 - 1 - 1 - 0 - 1 - 0 - - 0 - 7 - - - - - - - - - - - - - - Segger\JL2CM3.dll - - - - - 1 - 0 - 0 - 1 - 1 - 4099 - - 0 - Segger\JL2CM3.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - "Cortex-M3" - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x10000 - - - 1 - 0x0 - 0x100000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x100000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x1fff0000 - 0x20000 - - - 0 - 0x0 - 0x0 - - - - - - 1 - 1 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - MB9B610S, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - applications;.;CMSIS\Include;CMSIS\DeviceSupport\fujitsu\mb9bf61x;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\extension;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\io\stdio;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 0 - 0 - 0 - 0 - 1 - 0 - 0x08000000 - 0x20000000 - rtthread-fm3.sct - - - - - - - - - - - Applications - - - startup.c - 1 - applications\startup.c - - - - - application.c - 1 - applications\application.c - - - - - CMSIS - - - system_mb9bf61x.c - 1 - CMSIS\DeviceSupport\fujitsu\mb9bf61x\system_mb9bf61x.c - - - - - startup_mb9bf61x.S - 2 - CMSIS\DeviceSupport\fujitsu\mb9bf61x\startup\arm\startup_mb9bf61x.S - - - - - Compiler - - - syscalls.c - 1 - ..\..\components\libc\compilers\armlibc\syscalls.c - - - - - syscall_mem.c - 1 - ..\..\components\libc\compilers\armlibc\syscall_mem.c - - - - - stdlib.c - 1 - ..\..\components\libc\compilers\common\stdlib.c - - - - - time.c - 1 - ..\..\components\libc\compilers\common\time.c - - - - - CPU - - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - - - - - backtrace.c - 1 - ..\..\libcpu\arm\common\backtrace.c - - - - - showmem.c - 1 - ..\..\libcpu\arm\common\showmem.c - - - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m3\context_rvds.S - - - - - cpuport.c - 1 - ..\..\libcpu\arm\cortex-m3\cpuport.c - - - - - Drivers - - - serial.c - 1 - drivers\serial.c - - - - - board.c - 1 - drivers\board.c - - - - - led.c - 1 - drivers\led.c - - - - - Finsh - - - shell.c - 1 - ..\..\components\finsh\shell.c - - - - - msh.c - 1 - ..\..\components\finsh\msh.c - - - - - Kernel - - - device.c - 1 - ..\..\src\device.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - mempool.c - 1 - ..\..\src\mempool.c - - - - - clock.c - 1 - ..\..\src\clock.c - - - - - timer.c - 1 - ..\..\src\timer.c - - - - - ipc.c - 1 - ..\..\src\ipc.c - - - - - components.c - 1 - ..\..\src\components.c - - - - - mem.c - 1 - ..\..\src\mem.c - - - - - object.c - 1 - ..\..\src\object.c - - - - - kservice.c - 1 - ..\..\src\kservice.c - - - - - irq.c - 1 - ..\..\src\irq.c - - - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - - - thread.c - 1 - ..\..\src\thread.c - - - - - - -
diff --git a/bsp/mb9bf618s/rtconfig.h b/bsp/mb9bf618s/rtconfig.h deleted file mode 100644 index d887692233..0000000000 --- a/bsp/mb9bf618s/rtconfig.h +++ /dev/null @@ -1,75 +0,0 @@ -/* RT-Thread config file */ -#ifndef __RTTHREAD_CFG_H__ -#define __RTTHREAD_CFG_H__ - -/* RT_NAME_MAX*/ -#define RT_NAME_MAX 8 - -/* RT_ALIGN_SIZE*/ -#define RT_ALIGN_SIZE 4 - -/* PRIORITY_MAX */ -#define RT_THREAD_PRIORITY_MAX 32 - -/* Tick per Second */ -#define RT_TICK_PER_SECOND 100 - -/* SECTION: RT_DEBUG */ -/* Thread Debug */ -#define RT_DEBUG -#define RT_DEBUG_COLOR -#define RT_USING_OVERFLOW_CHECK - -/* Using Hook */ -#define RT_USING_HOOK - -/* SECTION: IPC */ -/* Using Semaphore */ -#define RT_USING_SEMAPHORE - -/* Using Mutex */ -#define RT_USING_MUTEX - -/* Using Event */ -#define RT_USING_EVENT - -/* Using MailBox */ -#define RT_USING_MAILBOX - -/* Using Message Queue */ -#define RT_USING_MESSAGEQUEUE - -/* SECTION: Memory Management */ -/* Using Memory Pool Management*/ -#define RT_USING_MEMPOOL - -/* Using Dynamic Heap Management */ -#define RT_USING_HEAP - -/* Using Small MM */ -#define RT_USING_SMALL_MEM - -// -#define RT_USING_COMPONENTS_INIT - -/* SECTION: Device System */ -/* Using Device System */ -#define RT_USING_DEVICE - -/* SECTION: Console options */ -/* #define RT_TINY_SIZE */ -#define RT_USING_CONSOLE -/* the buffer size of console */ -#define RT_CONSOLEBUF_SIZE 128 -// -#define RT_CONSOLE_DEVICE_NAME "uart0" - -/* SECTION: finsh, a C-Express shell */ -/* Using FinSH as Shell*/ -#define RT_USING_FINSH -/* Using symbol table */ -#define FINSH_USING_SYMTAB -#define FINSH_USING_DESCRIPTION -#define FINSH_THREAD_STACK_SIZE 1024 - -#endif diff --git a/bsp/mb9bf618s/rtconfig.py b/bsp/mb9bf618s/rtconfig.py deleted file mode 100644 index 474ff3dd57..0000000000 --- a/bsp/mb9bf618s/rtconfig.py +++ /dev/null @@ -1,126 +0,0 @@ -import os - -# toolchains options -ARCH='arm' -CPU='cortex-m3' -CROSS_TOOL='keil' - -if os.getenv('RTT_CC'): - CROSS_TOOL = os.getenv('RTT_CC') - -#device options -# FM3_TYPE = -# 'MB9B610S','MB9B610T', -FM3_TYPE = 'MB9B610S' - -# cross_tool provides the cross compiler -# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR - -if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = r'F:\Program Files\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_EABI_2013.05.23\bin' -elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = r'E:/Keil' -elif CROSS_TOOL == 'iar': - PLATFORM = 'iar' - EXEC_PATH = r'C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation' - -if os.getenv('RTT_EXEC_PATH'): - EXEC_PATH = os.getenv('RTT_EXEC_PATH') - -BUILD = 'debug' - -if PLATFORM == 'gcc': - # toolchains - PREFIX = 'arm-none-eabi-' - CC = PREFIX + 'gcc' - AS = PREFIX + 'gcc' - AR = PREFIX + 'ar' - LINK = PREFIX + 'gcc' - TARGET_EXT = 'elf' - SIZE = PREFIX + 'size' - OBJDUMP = PREFIX + 'objdump' - OBJCPY = PREFIX + 'objcopy' - - DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' - CFLAGS = DEVICE - AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' - LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-fm3.map,-cref,-u,Reset_Handler -T rtthread-fm3.ld' - - CPATH = '' - LPATH = '' - - if BUILD == 'debug': - CFLAGS += ' -O0 -gdwarf-2' - AFLAGS += ' -gdwarf-2' - else: - CFLAGS += ' -O2' - - POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --device DARMSTM' - CFLAGS = DEVICE + ' --apcs=interwork' - AFLAGS = DEVICE - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter rtthread-fm3.sct' - - CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' - LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' - - EXEC_PATH += '/arm/bin40/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' - -elif PLATFORM == 'iar': - # toolchains - CC = 'iccarm' - AS = 'iasmarm' - AR = 'iarchive' - LINK = 'ilinkarm' - TARGET_EXT = 'out' - - CFLAGS = '' - CFLAGS += ' --diag_suppress Pa050' - CFLAGS += ' --no_cse' - CFLAGS += ' --no_unroll' - CFLAGS += ' --no_inline' - CFLAGS += ' --no_code_motion' - CFLAGS += ' --no_tbaa' - CFLAGS += ' --no_clustering' - CFLAGS += ' --no_scheduling' - CFLAGS += ' --debug' - CFLAGS += ' --endian=little' - CFLAGS += ' --cpu=Cortex-M3' - CFLAGS += ' -e' - CFLAGS += ' --fpu=None' - CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' - CFLAGS += ' -Ol' - CFLAGS += ' --use_c++_inline' - - AFLAGS = '' - AFLAGS += ' -s+' - AFLAGS += ' -w+' - AFLAGS += ' -r' - AFLAGS += ' --cpu Cortex-M3' - AFLAGS += ' --fpu None' - AFLAGS += ' -I"' + EXEC_PATH + '/arm/INC"' - - LFLAGS = ' --config rtthread-fm3.icf' - LFLAGS += ' --semihosting' - LFLAGS += ' --entry __iar_program_start' - - EXEC_PATH = EXEC_PATH + '/arm/bin/' - POST_ACTION = 'ielftool.exe --srec --verbose $TARGET rtthread.srec' diff --git a/bsp/mb9bf618s/rtthread-fm3.icf b/bsp/mb9bf618s/rtthread-fm3.icf deleted file mode 100644 index 7876fa0c81..0000000000 --- a/bsp/mb9bf618s/rtthread-fm3.icf +++ /dev/null @@ -1,34 +0,0 @@ -/*###ICF### Section handled by ICF editor, don't touch! ****/ -/*-Editor annotation file-*/ -/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ -/*-Specials-*/ -define symbol __ICFEDIT_intvec_start__ = 0x0; -/*-Memory Regions-*/ -define symbol __ICFEDIT_region_ROM_start__ = 0x0; -define symbol __ICFEDIT_region_ROM_end__ = 0x000FFFFF; -define symbol __ICFEDIT_region_RAM_start__ = 0x1FFF0000; -define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF; -/*-Sizes-*/ -define symbol __ICFEDIT_size_cstack__ = 0x400; -define symbol __ICFEDIT_size_heap__ = 0x000; -/**** End of ICF editor section. ###ICF###*/ - - -define memory mem with size = 4G; -define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; -define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; - -define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; -define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; -define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* }; - -initialize by copy { readwrite }; -do not initialize { section .noinit }; - -keep { section FSymTab }; -keep { section VSymTab }; -keep { section .rti_fn* }; -place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; - -place in ROM_region { readonly, block RTT_INIT_FUNC }; -place in RAM_region { readwrite, block CSTACK, last block HEAP }; diff --git a/bsp/mb9bf618s/rtthread-fm3.ld b/bsp/mb9bf618s/rtthread-fm3.ld deleted file mode 100644 index 6696a0b1c2..0000000000 --- a/bsp/mb9bf618s/rtthread-fm3.ld +++ /dev/null @@ -1,143 +0,0 @@ -/* - * linker script for Fujitsu with GNU ld - * aozima 2013-07-13 - */ - -/* Program Entry, set to mark it as "used" and avoid gc */ -MEMORY -{ - CODE (rx) : ORIGIN = 0x00000000, LENGTH = 1M /* 1MB flash */ - DATA (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128KB sram, 64KB SRAM0 + 64KB SRAM1 */ -} -ENTRY(Reset_Handler) -_system_stack_size = 0x400; - -SECTIONS -{ - .text : - { - . = ALIGN(4); - _isr_vector = .; /* define isr_vector start address */ - _stext = .; - KEEP(*(.isr_vector)) /* Startup code */ - . = ALIGN(4); - *(.text) /* remaining code */ - *(.text.*) /* remaining code */ - *(.rodata) /* read-only data (constants) */ - *(.rodata*) - *(.glue_7) - *(.glue_7t) - *(.gnu.linkonce.t*) - - /* section information for finsh shell */ - . = ALIGN(4); - __fsymtab_start = .; - KEEP(*(FSymTab)) - __fsymtab_end = .; - . = ALIGN(4); - __vsymtab_start = .; - KEEP(*(VSymTab)) - __vsymtab_end = .; - . = ALIGN(4); - - /* section information for initial. */ - . = ALIGN(4); - __rt_init_start = .; - KEEP(*(SORT(.rti_fn*))) - __rt_init_end = .; - . = ALIGN(4); - - . = ALIGN(4); - _etext = .; - } > CODE = 0 - - /* .ARM.exidx is sorted, so has to go in its own output section. */ - __exidx_start = .; - .ARM.exidx : - { - *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; - } > CODE - __exidx_end = .; - - /* .data section which is used for initialized data */ - - .data : AT (_sidata) - { - . = ALIGN(4); - /* This is used by the startup in order to initialize the .data secion */ - _sdata = . ; - - *(.data) - *(.data.*) - *(.gnu.linkonce.d*) - - . = ALIGN(4); - /* This is used by the startup in order to initialize the .data secion */ - _edata = . ; - } >DATA - - .stack : - { - . = . + _system_stack_size; - . = ALIGN(4); - _estack = .; - } >DATA - - __bss_start = .; - .bss : - { - . = ALIGN(4); - /* This is used by the startup in order to initialize the .bss secion */ - _sbss = .; - - *(.bss) - *(.bss.*) - *(COMMON) - - . = ALIGN(4); - /* This is used by the startup in order to initialize the .bss secion */ - _ebss = . ; - - *(.bss.init) - } > DATA - __bss_end = .; - - _end = .; - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the beginning - * of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } -} diff --git a/bsp/mb9bf618s/rtthread-fm3.sct b/bsp/mb9bf618s/rtthread-fm3.sct deleted file mode 100644 index 405f2ebb65..0000000000 --- a/bsp/mb9bf618s/rtthread-fm3.sct +++ /dev/null @@ -1,15 +0,0 @@ -; ************************************************************* -; *** Scatter-Loading Description File generated by uVision *** -; ************************************************************* - -LR_IROM1 0x00000000 0x00100000 { ; load region size_region - ER_IROM1 0x00000000 0x00100000 { ; load address = execution address - *.o (RESET, +First) - *(InRoot$$Sections) - .ANY (+RO) - } - RW_IRAM1 0x1FFF0000 0x00020000 { ; RW data - .ANY (+RW +ZI) - } -} - diff --git a/bsp/mb9bf618s/template.ewp b/bsp/mb9bf618s/template.ewp deleted file mode 100644 index 4883fc16e7..0000000000 --- a/bsp/mb9bf618s/template.ewp +++ /dev/null @@ -1,1839 +0,0 @@ - - - - 2 - - Debug - - ARM - - 1 - - General - 3 - - 21 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 28 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 1 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 15 - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 1 - - - - - - - BILINK - 0 - - - - - Release - - ARM - - 0 - - General - 3 - - 21 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ICCARM - 2 - - 28 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AARM - 2 - - 8 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OBJCOPY - 0 - - 1 - 1 - 0 - - - - - - - - - CUSTOM - 3 - - - - - - - BICOMP - 0 - - - - BUILDACTION - 1 - - - - - - - ILINK - 0 - - 15 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IARCHIVE - 0 - - 0 - 1 - 0 - - - - - - - BILINK - 0 - - - - - - diff --git a/bsp/mb9bf618s/template.uvproj b/bsp/mb9bf618s/template.uvproj deleted file mode 100644 index ec72dd0f7f..0000000000 --- a/bsp/mb9bf618s/template.uvproj +++ /dev/null @@ -1,394 +0,0 @@ - - - - 1.1 - -
### uVision Project, (C) Keil Software
- - - - rtthread - 0x4 - ARM-ADS - - - MB9BF618S - Fujitsu Semiconductors - IRAM(0x20000000-0x2000FFFF) IRAM2(0x1FFF0000-0x1FFFFFFF) IROM(0x00000000-0x000FFFFF) CLOCK(4000000) CPUTYPE("Cortex-M3") - - "Startup\Fujitsu\MB9BF610\startup_mb9bf61x.s" ("Fujitsu MB9BF610 Startup Code") - UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0MB9BFx08_1024 -FS00 -FL0100000) - 6149 - mb9bf618s.h - - - - - - - - - - SFD\Fujitsu\MB9BF610\MB9BF618S.SFR - 0 - - - - Fujitsu\MB9BF610\ - Fujitsu\MB9BF610\ - - 0 - 0 - 0 - 0 - 1 - - .\build\ - rtthread-fm3 - 1 - 0 - 0 - 1 - 0 - .\build\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 1 - 0 - fromelf --bin !L --output rtthread.bin - - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - - - SARMCM3.DLL - -MPU - DCM.DLL - -pCM3 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM3 - - - - 1 - 0 - 0 - 0 - 16 - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - 1 - 1 - 0 - 1 - 1 - 1 - 0 - 1 - 0 - - 0 - 7 - - - - - - - - - - - - - - Segger\JL2CM3.dll - - - - - 1 - 0 - 0 - 1 - 1 - 4099 - - 0 - Segger\JL2CM3.dll - "" () - - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - "Cortex-M3" - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x10000 - - - 1 - 0x0 - 0x100000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x100000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x1fff0000 - 0x20000 - - - 0 - 0x0 - 0x0 - - - - - - 1 - 1 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - - - - 0 - 0 - 0 - 0 - 1 - 0 - 0x08000000 - 0x20000000 - rtthread-fm3.sct - - - - - - - - - - - -
-- cgit v1.3.1 From d583a07ac4df6bec80f286ae03c9877e16dd202f Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Mon, 28 Mar 2022 21:47:36 -0400 Subject: Update action.yml --- .github/workflows/action.yml | 1 - 1 file changed, 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0a42aa1dbb..a1f6d6f51c 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -30,7 +30,6 @@ jobs: matrix: legs: - {RTT_BSP: "acm32/acm32f0x0-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} - - {RTT_BSP: "acm32/acm32f4xx-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "CME_M7", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "apm32/apm32f103xe-minibroard", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "apollo2", RTT_TOOL_CHAIN: "sourcery-arm"} -- cgit v1.3.1 From f587a55bc2006f4316383425d518b734e42bb4a2 Mon Sep 17 00:00:00 2001 From: GUI <39894654+GuEe-GUI@users.noreply.github.com> Date: Tue, 29 Mar 2022 11:08:25 +0800 Subject: [libcpu/aarch64] add gicv3 support and bsp/rockchip/rk3568 (#5722) * [libcpu/aarch64] add smp support * [libcpu/aarch64] rt_hw_trap_irq get irq instead of iar when using gicv2 * [libcpu/aarch64] disable irq/fiq when switch thread * [libcpu/aarch64] add gtimer frq set and stack align * [libcpu/aarch64] add gicv3 support and bsp/rockchip/rk3568 --- .github/workflows/action.yml | 1 + bsp/qemu-virt64-aarch64/.config | 62 +- bsp/qemu-virt64-aarch64/README.md | 10 +- bsp/qemu-virt64-aarch64/README_zh.md | 6 +- bsp/qemu-virt64-aarch64/driver/Kconfig | 18 +- bsp/qemu-virt64-aarch64/driver/board.c | 14 +- bsp/qemu-virt64-aarch64/driver/board.h | 58 +- bsp/qemu-virt64-aarch64/driver/drv_uart.c | 4 + bsp/qemu-virt64-aarch64/driver/drv_virtio.c | 62 ++ bsp/qemu-virt64-aarch64/driver/drv_virtio.h | 16 + bsp/qemu-virt64-aarch64/driver/virt.h | 81 ++ .../driver/virtio/drv_virtio_blk.c | 405 ---------- .../driver/virtio/drv_virtio_blk.h | 85 --- bsp/qemu-virt64-aarch64/driver/virtio/virtio.c | 274 +++++++ bsp/qemu-virt64-aarch64/driver/virtio/virtio.h | 132 +++- bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.c | 216 ++++++ bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.h | 61 ++ .../driver/virtio/virtio_mmio.c | 61 -- .../driver/virtio/virtio_mmio.h | 106 ++- .../driver/virtio/virtio_queue.h | 94 +++ bsp/qemu-virt64-aarch64/qemu.bat | 5 +- bsp/qemu-virt64-aarch64/qemu.sh | 5 +- bsp/qemu-virt64-aarch64/rtconfig.h | 35 +- bsp/raspberry-pi/raspi4-64/.config | 73 +- bsp/raspberry-pi/raspi4-64/driver/Kconfig | 4 + bsp/raspberry-pi/raspi4-64/driver/drv_wdt.c | 44 ++ bsp/raspberry-pi/raspi4-64/driver/mbox.c | 18 + bsp/raspberry-pi/raspi4-64/driver/mbox.h | 1 + bsp/raspberry-pi/raspi4-64/rtconfig.h | 32 +- bsp/rockchip/rk3568/.config | 653 ++++++++++++++++ bsp/rockchip/rk3568/Kconfig | 29 + bsp/rockchip/rk3568/README.md | 55 ++ bsp/rockchip/rk3568/README_zh.md | 56 ++ bsp/rockchip/rk3568/SConscript | 14 + bsp/rockchip/rk3568/SConstruct | 29 + bsp/rockchip/rk3568/applications/SConscript | 9 + bsp/rockchip/rk3568/applications/main.c | 18 + bsp/rockchip/rk3568/driver/Kconfig | 58 ++ bsp/rockchip/rk3568/driver/SConscript | 19 + bsp/rockchip/rk3568/driver/board.c | 124 +++ bsp/rockchip/rk3568/driver/board.h | 24 + bsp/rockchip/rk3568/driver/drv_uart.c | 358 +++++++++ bsp/rockchip/rk3568/driver/drv_uart.h | 16 + bsp/rockchip/rk3568/driver/rk3568.h | 116 +++ bsp/rockchip/rk3568/link.lds | 143 ++++ bsp/rockchip/rk3568/rtconfig.h | 188 +++++ bsp/rockchip/rk3568/rtconfig.py | 53 ++ include/rthw.h | 3 + libcpu/aarch64/common/SConscript | 4 - libcpu/aarch64/common/gic.c | 68 +- libcpu/aarch64/common/gic.h | 10 +- libcpu/aarch64/common/gicv3.c | 849 +++++++++++++++++++++ libcpu/aarch64/common/gicv3.h | 77 ++ libcpu/aarch64/common/interrupt.c | 11 +- libcpu/aarch64/common/psci.c | 14 +- libcpu/aarch64/common/psci.h | 5 +- libcpu/aarch64/cortex-a/entry_point.S | 41 +- 57 files changed, 4107 insertions(+), 920 deletions(-) create mode 100644 bsp/qemu-virt64-aarch64/driver/drv_virtio.c create mode 100644 bsp/qemu-virt64-aarch64/driver/drv_virtio.h create mode 100644 bsp/qemu-virt64-aarch64/driver/virt.h delete mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.c delete mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.h create mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/virtio.c create mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.c create mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.h delete mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.c create mode 100644 bsp/qemu-virt64-aarch64/driver/virtio/virtio_queue.h create mode 100644 bsp/rockchip/rk3568/.config create mode 100644 bsp/rockchip/rk3568/Kconfig create mode 100644 bsp/rockchip/rk3568/README.md create mode 100644 bsp/rockchip/rk3568/README_zh.md create mode 100644 bsp/rockchip/rk3568/SConscript create mode 100644 bsp/rockchip/rk3568/SConstruct create mode 100644 bsp/rockchip/rk3568/applications/SConscript create mode 100644 bsp/rockchip/rk3568/applications/main.c create mode 100644 bsp/rockchip/rk3568/driver/Kconfig create mode 100644 bsp/rockchip/rk3568/driver/SConscript create mode 100644 bsp/rockchip/rk3568/driver/board.c create mode 100644 bsp/rockchip/rk3568/driver/board.h create mode 100644 bsp/rockchip/rk3568/driver/drv_uart.c create mode 100644 bsp/rockchip/rk3568/driver/drv_uart.h create mode 100644 bsp/rockchip/rk3568/driver/rk3568.h create mode 100644 bsp/rockchip/rk3568/link.lds create mode 100644 bsp/rockchip/rk3568/rtconfig.h create mode 100644 bsp/rockchip/rk3568/rtconfig.py create mode 100644 libcpu/aarch64/common/gicv3.c create mode 100644 libcpu/aarch64/common/gicv3.h (limited to '.github/workflows') diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index a1f6d6f51c..5b6fed8a79 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -167,6 +167,7 @@ jobs: - {RTT_BSP: "qemu-virt64-aarch64", RTT_TOOL_CHAIN: "sourcery-aarch64"} - {RTT_BSP: "raspberry-pi/raspi3-64", RTT_TOOL_CHAIN: "sourcery-aarch64"} - {RTT_BSP: "raspberry-pi/raspi4-64", RTT_TOOL_CHAIN: "sourcery-aarch64"} + - {RTT_BSP: "rockchip/rk3568", RTT_TOOL_CHAIN: "sourcery-aarch64"} steps: - uses: actions/checkout@v2 - name: Set up Python diff --git a/bsp/qemu-virt64-aarch64/.config b/bsp/qemu-virt64-aarch64/.config index 2bd46d496d..76f4b53481 100644 --- a/bsp/qemu-virt64-aarch64/.config +++ b/bsp/qemu-virt64-aarch64/.config @@ -96,17 +96,8 @@ CONFIG_RT_USING_USER_MAIN=y CONFIG_RT_MAIN_THREAD_STACK_SIZE=8192 CONFIG_RT_MAIN_THREAD_PRIORITY=10 # CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -# CONFIG_RT_USING_CPLUSPLUS is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y CONFIG_RT_USING_MSH=y +CONFIG_RT_USING_FINSH=y CONFIG_FINSH_USING_MSH=y CONFIG_FINSH_THREAD_NAME="tshell" CONFIG_FINSH_THREAD_PRIORITY=20 @@ -120,10 +111,6 @@ CONFIG_FINSH_USING_DESCRIPTION=y # CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set # CONFIG_FINSH_USING_AUTH is not set CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# CONFIG_RT_USING_DFS=y CONFIG_DFS_USING_POSIX=y CONFIG_DFS_USING_WORKDIR=y @@ -157,12 +144,15 @@ CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000 CONFIG_RT_USING_DFS_DEVFS=y # CONFIG_RT_USING_DFS_ROMFS is not set # CONFIG_RT_USING_DFS_RAMFS is not set +# CONFIG_RT_USING_FAL is not set # # Device Drivers # CONFIG_RT_USING_DEVICE_IPC=y -# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set +CONFIG_RT_USING_SYSTEM_WORKQUEUE=y +CONFIG_RT_SYSTEM_WORKQUEUE_STACKSIZE=2048 +CONFIG_RT_SYSTEM_WORKQUEUE_PRIORITY=23 CONFIG_RT_USING_SERIAL=y CONFIG_RT_USING_SERIAL_V1=y # CONFIG_RT_USING_SERIAL_V2 is not set @@ -202,7 +192,7 @@ CONFIG_RT_USING_ALARM=y # CONFIG_RT_USING_USB_DEVICE is not set # -# POSIX layer and C standard library +# C/C++ and POSIX layer # CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 @@ -226,36 +216,16 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # Socket is in the 'Network' category # +# CONFIG_RT_USING_CPLUSPLUS is not set # # Network # - -# -# Socket abstraction layer -# # CONFIG_RT_USING_SAL is not set - -# -# Network interface device -# # CONFIG_RT_USING_NETDEV is not set - -# -# light weight TCP/IP stack -# # CONFIG_RT_USING_LWIP is not set - -# -# AT commands -# # CONFIG_RT_USING_AT is not set -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set - # # Utilities # @@ -264,6 +234,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_UTEST is not set # CONFIG_RT_USING_VAR_EXPORT is not set # CONFIG_RT_USING_RT_LINK is not set +# CONFIG_RT_USING_VBUS is not set # # RT-Thread Utestcases @@ -277,6 +248,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # IoT - internet of things # +# CONFIG_PKG_USING_LWIP is not set # CONFIG_PKG_USING_LORAWAN_DRIVER is not set # CONFIG_PKG_USING_PAHOMQTT is not set # CONFIG_PKG_USING_UMQTT is not set @@ -293,6 +265,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_FREEMODBUS is not set # CONFIG_PKG_USING_LJSON is not set # CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_SIMPLE_XML is not set # CONFIG_PKG_USING_NANOPB is not set # @@ -332,6 +305,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_JOYLINK is not set # CONFIG_PKG_USING_EZ_IOT_OS is not set # CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set # CONFIG_PKG_USING_OTA_DOWNLOADER is not set # CONFIG_PKG_USING_IPMSG is not set # CONFIG_PKG_USING_LSSDP is not set @@ -539,7 +513,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_ARM_2D is not set # CONFIG_PKG_USING_MCUBOOT is not set # CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set +# CONFIG_PKG_USING_CHERRYUSB is not set +# CONFIG_PKG_USING_KMULTI_RTIMER is not set # # peripheral libraries and drivers @@ -563,6 +538,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_WM_LIBRARIES is not set # CONFIG_PKG_USING_KENDRYTE_SDK is not set # CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_MULTI_INFRARED is not set # CONFIG_PKG_USING_AGILE_BUTTON is not set # CONFIG_PKG_USING_AGILE_LED is not set # CONFIG_PKG_USING_AT24CXX is not set @@ -619,6 +595,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SOFT_SERIAL is not set # CONFIG_PKG_USING_MB85RS16 is not set # CONFIG_PKG_USING_CW2015 is not set +# CONFIG_PKG_USING_RFM300 is not set # # AI packages @@ -637,6 +614,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # miscellaneous packages # +# +# project laboratory +# + # # samples: kernel and components samples # @@ -669,6 +650,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_CANFESTIVAL is not set # CONFIG_PKG_USING_ZLIB is not set # CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_HEATSHRINK is not set # CONFIG_PKG_USING_DSTR is not set # CONFIG_PKG_USING_TINYFRAME is not set # CONFIG_PKG_USING_KENDRYTE_DEMO is not set @@ -686,6 +668,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_DESIGN_PATTERN is not set # CONFIG_PKG_USING_CONTROLLER is not set # CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +# CONFIG_PKG_USING_MFBD is not set CONFIG_SOC_VIRT64_AARCH64=y # @@ -696,5 +679,6 @@ CONFIG_RT_USING_UART0=y CONFIG_BSP_USING_RTC=y CONFIG_BSP_USING_ALARM=y CONFIG_BSP_USING_VIRTIO_BLK=y -CONFIG_RT_USING_VIRTIO_BLK0=y CONFIG_BSP_USING_GIC=y +CONFIG_BSP_USING_GICV2=y +# CONFIG_BSP_USING_GICV3 is not set diff --git a/bsp/qemu-virt64-aarch64/README.md b/bsp/qemu-virt64-aarch64/README.md index 32616794a5..b0999e61d8 100644 --- a/bsp/qemu-virt64-aarch64/README.md +++ b/bsp/qemu-virt64-aarch64/README.md @@ -19,9 +19,9 @@ Enter directory `rt-thread/bsp/qemu-virt64-aarch64` and input: scons ``` -## 2. Execution +## 3. Execution -The project execution tool is `qemu-system-aarch64` +The project execution tool is `qemu-system-aarch64`, the project can be configured to `Cortex-A53/A57/A72`, GIC supports `V2/V3` version, and `V2` of GIC can use 8 processors max. Download Windows platform from website: ``` @@ -33,7 +33,7 @@ sudo apt update sudo apt install qemu-system-arm ``` -Run qemu.bat or qemu.sh in terminal: +Please fixup the exec scripts if modify the default configuration of the project. Run qemu.bat or qemu.sh in terminal: ``` heap: [0x40042aa0 - 0x40142aa0] @@ -45,10 +45,10 @@ Hi, this is RT-Thread!! msh /> ``` -## 3. Condition +## 4. Condition | Driver | Condition | Remark | | ------ | --------- | ------ | | UART | Support | UART0 | | RTC | Support | - | -| VIRTIO BLK | Support | VIRTIO BLK0 | \ No newline at end of file +| VIRTIO BLK | Support | - | \ No newline at end of file diff --git a/bsp/qemu-virt64-aarch64/README_zh.md b/bsp/qemu-virt64-aarch64/README_zh.md index f9b38c0108..e723e83ac1 100644 --- a/bsp/qemu-virt64-aarch64/README_zh.md +++ b/bsp/qemu-virt64-aarch64/README_zh.md @@ -22,7 +22,7 @@ scons ## 3. 执行 -本工程执行环境为`qemu-system-aarch64`模拟器 +本工程执行环境为`qemu-system-aarch64`模拟器,工程可配置为使用`Cortex-A53/A57/A72`等芯片,GIC支持`V2/V3`版本,其中`V2`最多可配置8个处理器。 Windows平台下,可以在此获取到QEMU: ``` @@ -34,7 +34,7 @@ sudo apt update sudo apt install qemu-system-arm ``` -在终端执行qemu.bat或qemu.sh可以看到程序运行: +工程默认配置修改后请注意修改运行脚本。在终端执行qemu.bat或qemu.sh可以看到程序运行: ``` heap: [0x40042aa0 - 0x40142aa0] @@ -52,4 +52,4 @@ msh /> | ------ | ---- | :------: | | UART | 支持 | UART0 | | RTC | 支持 | - | -| VIRTIO BLK | 支持 | VIRTIO BLK0 | \ No newline at end of file +| VIRTIO BLK | 支持 | - | \ No newline at end of file diff --git a/bsp/qemu-virt64-aarch64/driver/Kconfig b/bsp/qemu-virt64-aarch64/driver/Kconfig index acf9f082ea..5d617eb42a 100644 --- a/bsp/qemu-virt64-aarch64/driver/Kconfig +++ b/bsp/qemu-virt64-aarch64/driver/Kconfig @@ -28,13 +28,19 @@ menu "AARCH64 qemu virt64 configs" bool "Using VirtIO BLK" default y - if BSP_USING_VIRTIO_BLK - config RT_USING_VIRTIO_BLK0 - bool "Enabel VirtIO BLK 0" - default y - endif - config BSP_USING_GIC bool default y + + choice + prompt "GIC Version" + default BSP_USING_GICV2 + + config BSP_USING_GICV2 + bool "GICv2" + + config BSP_USING_GICV3 + bool "GICv3" + endchoice + endmenu diff --git a/bsp/qemu-virt64-aarch64/driver/board.c b/bsp/qemu-virt64-aarch64/driver/board.c index 12e2a85269..7547bd75aa 100644 --- a/bsp/qemu-virt64-aarch64/driver/board.c +++ b/bsp/qemu-virt64-aarch64/driver/board.c @@ -17,6 +17,7 @@ #include "board.h" #include #include +#include #include #include #include @@ -29,8 +30,14 @@ struct mem_desc platform_mem_desc[] = {0x40000000, 0x80000000, 0x40000000, NORMAL_MEM}, {PL031_RTC_BASE, PL031_RTC_BASE + 0x1000, PL031_RTC_BASE, DEVICE_MEM}, {PL011_UART0_BASE, PL011_UART0_BASE + 0x1000, PL011_UART0_BASE, DEVICE_MEM}, - {VIRTIO_MMIO_BLK0_BASE, VIRTIO_MMIO_BLK0_BASE + 0x1000, VIRTIO_MMIO_BLK0_BASE, DEVICE_MEM}, + {VIRTIO_MMIO_BASE, VIRTIO_MMIO_BASE + VIRTIO_MAX_NR * VIRTIO_MMIO_SIZE, VIRTIO_MMIO_BASE, DEVICE_MEM}, +#ifdef BSP_USING_GICV2 {GIC_PL390_DISTRIBUTOR_PPTR, GIC_PL390_DISTRIBUTOR_PPTR + 0x1000, GIC_PL390_DISTRIBUTOR_PPTR, DEVICE_MEM}, +#endif +#ifdef BSP_USING_GICV3 + {GIC_PL500_DISTRIBUTOR_PPTR, GIC_PL500_DISTRIBUTOR_PPTR + 0x1000, GIC_PL500_DISTRIBUTOR_PPTR, DEVICE_MEM}, + {GIC_PL500_REDISTRIBUTOR_PPTR, GIC_PL500_REDISTRIBUTOR_PPTR + 0xf60000, GIC_PL500_REDISTRIBUTOR_PPTR, DEVICE_MEM}, +#endif }; const rt_uint32_t platform_mem_desc_size = sizeof(platform_mem_desc)/sizeof(platform_mem_desc[0]); @@ -58,7 +65,7 @@ void rt_hw_board_init(void) rt_hw_gtimer_init(); rt_thread_idle_sethook(idle_wfi); - arm_psci_init(RT_NULL, RT_NULL); + arm_psci_init(PSCI_METHOD_HVC, RT_NULL, RT_NULL); #if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) /* set console device */ @@ -113,6 +120,9 @@ void secondary_cpu_c_start(void) rt_hw_spin_lock(&_cpus_lock); arm_gic_cpu_init(0, platform_get_gic_cpu_base()); +#ifdef BSP_USING_GICV3 + arm_gic_redist_init(0, platform_get_gic_redist_base()); +#endif rt_hw_vector_init(); rt_hw_gtimer_local_enable(); arm_gic_umask(0, IRQ_ARM_IPI_KICK); diff --git a/bsp/qemu-virt64-aarch64/driver/board.h b/bsp/qemu-virt64-aarch64/driver/board.h index 0bf37a575c..63d0d69f67 100644 --- a/bsp/qemu-virt64-aarch64/driver/board.h +++ b/bsp/qemu-virt64-aarch64/driver/board.h @@ -6,72 +6,18 @@ * Change Logs: * Date Author Notes * 2017-5-30 Bernard the first version - * 2021-07-31 GuEe-GUI add ARM GIC definitions - * 2021-09-11 GuEe-GUI rename right macros for gic */ #ifndef BOARD_H__ #define BOARD_H__ -#include -#include -#include +#include extern unsigned char __bss_start; extern unsigned char __bss_end; #define RT_HW_HEAP_BEGIN (void*)&__bss_end -#define RT_HW_HEAP_END (void*)(RT_HW_HEAP_BEGIN + 1 * 1024 * 1024) - -#define __REG32(x) (*((volatile unsigned int *)(x))) - -#define VIRTIO_SPI_IRQ_BASE 32 - -/* Virtio BLK */ -#define VIRTIO_MMIO_BLK0_BASE 0x0a000000 -#define VIRTIO_MMIO_BLK0_SIZE 0x00000200 -#define VIRTIO_MMIO_BLK0_IRQ (VIRTIO_SPI_IRQ_BASE + 0x10) - -/* UART */ -#define PL011_UARTDR 0x000 -#define PL011_UARTFR 0x018 -#define PL011_UARTFR_TXFF_BIT 5 -#define PL011_UART0_BASE 0x09000000 -#define PL011_UART0_SIZE 0x00001000 -#define PL011_UART0_IRQNUM (VIRTIO_SPI_IRQ_BASE + 1) - -/* RTC */ -#define PL031_RTC_BASE 0x9010000 -#define PL031_RTC_SIZE 0x00001000 -#define PL031_RTC_IRQNUM (VIRTIO_SPI_IRQ_BASE + 2) - -/* DIST and CPU */ -#define GIC_PL390_DISTRIBUTOR_PPTR 0x08000000 -#define GIC_PL390_CONTROLLER_PPTR 0x08010000 - -#define MAX_HANDLERS 96 -#define GIC_IRQ_START 0 -/* number of interrupts on board */ -#define ARM_GIC_NR_IRQS 96 -/* only one GIC available */ -#define ARM_GIC_MAX_NR 1 - -/* ipi interrupt number */ -#define IRQ_ARM_IPI_KICK 0 -#define IRQ_ARM_IPI_CALL 1 - -#define IRQ_ARM_VTIMER 27 - -/* the basic constants and interfaces needed by gic */ -rt_inline rt_uint32_t platform_get_gic_dist_base(void) -{ - return GIC_PL390_DISTRIBUTOR_PPTR; -} - -rt_inline rt_uint32_t platform_get_gic_cpu_base(void) -{ - return GIC_PL390_CONTROLLER_PPTR; -} +#define RT_HW_HEAP_END (void*)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024) void rt_hw_board_init(void); diff --git a/bsp/qemu-virt64-aarch64/driver/drv_uart.c b/bsp/qemu-virt64-aarch64/driver/drv_uart.c index 0d6cdaf15b..ac2a9f11ab 100644 --- a/bsp/qemu-virt64-aarch64/driver/drv_uart.c +++ b/bsp/qemu-virt64-aarch64/driver/drv_uart.c @@ -14,6 +14,10 @@ #include "board.h" +#define PL011_UARTDR 0x000 +#define PL011_UARTFR 0x018 +#define PL011_UARTFR_TXFF_BIT 5 + unsigned int readl(volatile void *addr) { return *(volatile unsigned int *)addr; diff --git a/bsp/qemu-virt64-aarch64/driver/drv_virtio.c b/bsp/qemu-virt64-aarch64/driver/drv_virtio.c new file mode 100644 index 0000000000..33f91ab725 --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/drv_virtio.c @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-11-11 GuEe-GUI the first version + */ + +#include + +#include +#ifdef BSP_USING_VIRTIO_BLK +#include +#endif + +#include + +static virtio_device_init_handler virtio_device_init_handlers[] = +{ +#ifdef BSP_USING_VIRTIO_BLK + [VIRTIO_DEVICE_ID_BLOCK] = rt_virtio_blk_init, +#endif +}; + +int rt_virtio_devices_init(void) +{ + int i; + rt_uint32_t irq = VIRTIO_IRQ_BASE; + rt_ubase_t mmio_base = VIRTIO_MMIO_BASE; + struct virtio_mmio_config *mmio_config; + virtio_device_init_handler init_handler; + + if (sizeof(virtio_device_init_handlers) == 0) + { + /* The compiler will optimize the codes after here. */ + return 0; + } + + for (i = 0; i < VIRTIO_MAX_NR; ++i, ++irq, mmio_base += VIRTIO_MMIO_SIZE) + { + mmio_config = (struct virtio_mmio_config *)mmio_base; + + if (mmio_config->magic != VIRTIO_MAGIC_VALUE || + mmio_config->version != RT_USING_VIRTIO_VERSION || + mmio_config->vendor_id != VIRTIO_VENDOR_ID) + { + continue; + } + + init_handler = virtio_device_init_handlers[mmio_config->device_id]; + + if (init_handler != RT_NULL) + { + init_handler((rt_ubase_t *)mmio_base, irq); + } + } + + return 0; +} +INIT_DEVICE_EXPORT(rt_virtio_devices_init); diff --git a/bsp/qemu-virt64-aarch64/driver/drv_virtio.h b/bsp/qemu-virt64-aarch64/driver/drv_virtio.h new file mode 100644 index 0000000000..954338a386 --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/drv_virtio.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-11-11 GuEe-GUI the first version + */ + +#ifndef __DRV_VIRTIO_H__ +#define __DRV_VIRTIO_H__ + +int rt_virtio_devices_init(void); + +#endif /* __DRV_VIRTIO_H__ */ diff --git a/bsp/qemu-virt64-aarch64/driver/virt.h b/bsp/qemu-virt64-aarch64/driver/virt.h new file mode 100644 index 0000000000..ed90db899d --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/virt.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-02-17 GuEe-GUI the first version + */ + +#ifndef VIRT_H__ +#define VIRT_H__ + +#include + +/* UART */ +#define PL011_UART0_BASE 0x09000000 +#define PL011_UART0_SIZE 0x00001000 +#define PL011_UART0_IRQNUM (32 + 1) + +/* RTC */ +#define PL031_RTC_BASE 0x9010000 +#define PL031_RTC_SIZE 0x00001000 +#define PL031_RTC_IRQNUM (32 + 2) + +/* VirtIO */ +#define VIRTIO_MMIO_BASE 0x0a000000 +#define VIRTIO_MMIO_SIZE 0x00000200 +#define VIRTIO_MAX_NR 32 +#define VIRTIO_IRQ_BASE (32 + 16) +#define VIRTIO_VENDOR_ID 0x554d4551 /* "QEMU" */ + +/* GIC */ +#define MAX_HANDLERS 96 +#define GIC_IRQ_START 0 +#define ARM_GIC_NR_IRQS 96 +#define ARM_GIC_MAX_NR 1 + +#define IRQ_ARM_IPI_KICK 0 +#define IRQ_ARM_IPI_CALL 1 + +/* GICv2 */ +#define GIC_PL390_DISTRIBUTOR_PPTR 0x08000000 +#define GIC_PL390_CONTROLLER_PPTR 0x08010000 + +/* GICv3 */ +#define GIC_PL500_DISTRIBUTOR_PPTR GIC_PL390_DISTRIBUTOR_PPTR +#define GIC_PL500_REDISTRIBUTOR_PPTR 0x080a0000 +#define GIC_PL500_CONTROLLER_PPTR GIC_PL390_CONTROLLER_PPTR +#define GIC_PL500_ITS_PPTR 0x08080000 + +/* the basic constants and interfaces needed by gic */ +rt_inline rt_uint32_t platform_get_gic_dist_base(void) +{ +#ifdef BSP_USING_GICV2 + return GIC_PL390_DISTRIBUTOR_PPTR; +#else + return GIC_PL500_DISTRIBUTOR_PPTR; +#endif +} + +rt_inline rt_uint32_t platform_get_gic_redist_base(void) +{ + return GIC_PL500_REDISTRIBUTOR_PPTR; +} + +rt_inline rt_uint32_t platform_get_gic_cpu_base(void) +{ +#ifdef BSP_USING_GICV2 + return GIC_PL390_CONTROLLER_PPTR; +#else + return GIC_PL500_CONTROLLER_PPTR; +#endif +} + +rt_inline rt_uint32_t platform_get_gic_its_base(void) +{ + return GIC_PL500_ITS_PPTR; +} + +#endif diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.c b/bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.c deleted file mode 100644 index 02e6b7986f..0000000000 --- a/bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.c +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2021-9-16 GuEe-GUI the first version - */ - -#include -#include -#include -#include -#include - -#include "virtio.h" -#include "virtio_mmio.h" -#include "drv_virtio_blk.h" - -#ifdef BSP_USING_VIRTIO_BLK - -#ifdef RT_USING_VIRTIO_BLK0 -static struct virtio_blk blk0; -static struct virtio_blk_device virtio_blk_dev0; -#endif /* RT_USING_VIRTIO_BLK0 */ - -static int alloc_desc(struct virtio_blk *blk) -{ - int i; - for(i = 0; i < QUEUE_SIZE; i++) - { - if (blk->free[i]) - { - blk->free[i] = 0; - return i; - } - } - return -RT_ERROR; -} - -static void free_desc(struct virtio_blk *blk, int i) -{ - if (i >= QUEUE_SIZE) - { - rt_kprintf("Out of queue number"); - RT_ASSERT(0); - } - if (blk0.free[i]) - { - rt_kprintf("Already freed"); - RT_ASSERT(0); - } - blk->desc[i].addr = 0; - blk->desc[i].len = 0; - blk->desc[i].flags = 0; - blk->desc[i].next = 0; - blk->free[i] = 1; -} - -static void free_chain(struct virtio_blk *blk, int i) -{ - int flag, nxt; - for (;;) - { - flag = blk->desc[i].flags; - nxt = blk->desc[i].next; - - free_desc(blk, i); - - if (flag & VRING_DESC_F_NEXT) - { - i = nxt; - } - else - { - break; - } - } -} - -static int alloc3_desc(struct virtio_blk *blk, int *idx) -{ - for (int i = 0; i < 3; ++i) - { - idx[i] = alloc_desc(blk); - if (idx[i] < 0) - { - for (int j = 0; j < i; ++j) - { - free_desc(blk, idx[j]); - } - return -RT_ERROR; - } - } - return 0; -} - -static int virtio_blk_device_init(struct virtio_blk_device *virtio_blk_dev) -{ - uint32_t status = 0; - uint32_t max; - uint64_t features; - int i; - -#ifdef RT_USING_SMP - rt_spin_lock_init(&virtio_blk_dev->spinlock); -#endif - - if (virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_MAGIC_VALUE) != VIRTIO_MMIO_MAGIC || - virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_VERSION) != 1 || - virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_DEVICE_ID) != 2 || - virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_VENDOR_ID) != VIRTIO_MMIO_VENDOR) - { - rt_kprintf("Could not find virtio disk"); - - return -RT_ERROR; - } - - status |= VIRTIO_STAT_ACKNOWLEDGE; - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_STATUS, status); - - status |= VIRTIO_STAT_DRIVER; - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_STATUS, status); - - /* negotiate features */ - features = virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_DEVICE_FEATURES); - features &= ~(1 << VIRTIO_BLK_F_RO); - features &= ~(1 << VIRTIO_BLK_F_SCSI); - features &= ~(1 << VIRTIO_BLK_F_CONFIG_WCE); - features &= ~(1 << VIRTIO_BLK_F_MQ); - features &= ~(1 << VIRTIO_F_ANY_LAYOUT); - features &= ~(1 << VIRTIO_RING_F_EVENT_IDX); - features &= ~(1 << VIRTIO_RING_F_INDIRECT_DESC); - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_DRIVER_FEATURES, features); - - /* tell device that feature negotiation is complete */ - status |= VIRTIO_STAT_FEATURES_OK; - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_STATUS, status); - - /* tell device we're completely ready */ - status |= VIRTIO_STAT_DRIVER_OK; - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_STATUS, status); - - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_GUEST_PAGE_SIZE, PAGE_SIZE); - - /* initialize queue 0 */ - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_QUEUE_SEL, 0); - - max = virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_QUEUE_NUM_MAX); - if (max == 0) - { - rt_kprintf("Virtio disk has no queue 0"); - RT_ASSERT(0); - } - if (max < QUEUE_SIZE) - { - rt_kprintf("Virtio disk max queue too short"); - RT_ASSERT(0); - } - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_QUEUE_NUM, QUEUE_SIZE); - - rt_memset(virtio_blk_dev->blk->pages, 0, sizeof(virtio_blk_dev->blk->pages)); - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_QUEUE_PFN, ((uint64_t)blk0.pages) >> PAGE_SHIFT); - - virtio_blk_dev->blk->desc = (struct virtq_desc *)virtio_blk_dev->blk->pages; - virtio_blk_dev->blk->avail = (struct virtq_avail *)(virtio_blk_dev->blk->pages + QUEUE_SIZE * sizeof(struct virtq_desc)); - virtio_blk_dev->blk->used = (struct virtq_used *)(virtio_blk_dev->blk->pages + PAGE_SIZE); - - /* all QUEUE_SIZE descriptors start out unused */ - for (i = 0; i < QUEUE_SIZE; ++i) - { - virtio_blk_dev->blk->free[i] = 1; - } - - return RT_EOK; -} - -static void virtio_blk_rw(struct virtio_blk_device *virtio_blk_dev, struct virtio_blk_buf *buf, int flag) -{ - struct virtio_blk *blk = virtio_blk_dev->blk; - uint64_t sector = buf->block_no * (VIRTIO_BLK_BUF_DATA_SIZE / 512); - int idx[3]; - struct virtio_blk_req *req; - -#ifdef RT_USING_SMP - rt_base_t level; - - level = rt_spin_lock_irqsave(&virtio_blk_dev->spinlock); -#endif - - /* allocate the three descriptors */ - for (;;) - { - if (alloc3_desc(blk, idx) == 0) - { - break; - } - } - - req = &(blk->ops[idx[0]]); - req->type = flag; - req->reserved = 0; - req->sector = sector; - - blk->desc[idx[0]].addr = (uint64_t)req; - blk->desc[idx[0]].len = sizeof(struct virtio_blk_req); - blk->desc[idx[0]].flags = VRING_DESC_F_NEXT; - blk->desc[idx[0]].next = idx[1]; - - blk->desc[idx[1]].addr = (uint64_t)buf->data; - blk->desc[idx[1]].len = VIRTIO_BLK_BUF_DATA_SIZE; - - blk->desc[idx[1]].flags = flag ? 0 : VRING_DESC_F_WRITE; - - blk->desc[idx[1]].flags |= VRING_DESC_F_NEXT; - blk->desc[idx[1]].next = idx[2]; - - /* device writes 0 on success */ - blk->info[idx[0]].status = 0xff; - blk->desc[idx[2]].addr = (uint64_t)&(blk->info[idx[0]].status); - blk->desc[idx[2]].len = 1; - /* device writes the status */ - blk->desc[idx[2]].flags = VRING_DESC_F_WRITE; - blk->desc[idx[2]].next = 0; - - /* record struct buf for virtio_blk_isr() */ - buf->valid = 1; - blk->info[idx[0]].buf = buf; - - /* tell the device the first index in our chain of descriptors */ - blk->avail->ring[blk->avail->idx % QUEUE_SIZE] = idx[0]; - - rt_hw_dsb(); - - /* tell the device another avail ring entry is available */ - blk->avail->idx += 1; - - rt_hw_dsb(); - - /* value is queue number */ - virtio_mmio_write32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_QUEUE_NOTIFY, 0); - - /* wait for virtio_blk_isr() to done */ - while (buf->valid == 1) - { -#ifdef RT_USING_SMP - rt_spin_unlock_irqrestore(&virtio_blk_dev->spinlock, level); -#endif - rt_thread_yield(); -#ifdef RT_USING_SMP - level = rt_spin_lock_irqsave(&virtio_blk_dev->spinlock); -#endif - } - - blk->info[idx[0]].buf = 0; - free_chain(blk, idx[0]); - -#ifdef RT_USING_SMP - rt_spin_unlock_irqrestore(&virtio_blk_dev->spinlock, level); -#endif -} - -static void virtio_blk_isr(int irqno, void *param) -{ - int id; - struct virtio_blk_device *virtio_blk_dev = (struct virtio_blk_device *)param; - struct virtio_blk *blk = virtio_blk_dev->blk; - struct virtio_blk_buf *buf_tmp; - -#ifdef RT_USING_SMP - rt_base_t level; - - level = rt_spin_lock_irqsave(&virtio_blk_dev->spinlock); -#endif - - virtio_mmio_write32( - virtio_blk_dev->mmio_base, - VIRTIO_MMIO_INTERRUPT_ACK, - virtio_mmio_read32(virtio_blk_dev->mmio_base, VIRTIO_MMIO_INTERRUPT_STATUS) & 0x3); - - rt_hw_dsb(); - - /* - * the device increments disk.used->idx - * when it adds an entry to the used ring - */ - while (blk->used_idx != blk->used->idx) - { - rt_hw_dsb(); - id = blk->used->ring[blk->used_idx % QUEUE_SIZE].id; - - if (blk->info[id].status != 0) - { - rt_kprintf("Virtio BLK Status"); - RT_ASSERT(0); - } - - buf_tmp = blk->info[id].buf; - - /* done with buf */ - buf_tmp->valid = 0; - rt_thread_yield(); - - blk->used_idx += 1; - } - -#ifdef RT_USING_SMP - rt_spin_unlock_irqrestore(&virtio_blk_dev->spinlock, level); -#endif -} - -static rt_err_t virtio_blk_init(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_err_t virtio_blk_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -static rt_err_t virtio_blk_close(rt_device_t dev) -{ - return RT_EOK; -} - -static rt_size_t virtio_blk_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) -{ - struct virtio_blk_device *virtio_blk_dev = (struct virtio_blk_device *)dev; - struct virtio_blk_buf buf = - { - .block_no = (uint32_t)pos, - .data = (uint8_t *)buffer - }; - - virtio_blk_rw(virtio_blk_dev, &buf, VIRTIO_BLK_T_IN); - - return size; -} - -static rt_size_t virtio_blk_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) -{ - struct virtio_blk_device *virtio_blk_dev = (struct virtio_blk_device *)dev; - struct virtio_blk_buf buf = - { - .block_no = (uint32_t)pos, - .data = (uint8_t *)buffer - }; - - virtio_blk_rw(virtio_blk_dev, &buf, VIRTIO_BLK_T_OUT); - - return size; -} - -static rt_err_t virtio_blk_control(rt_device_t dev, int cmd, void *args) -{ - if (cmd == RT_DEVICE_CTRL_BLK_GETGEOME) - { - struct rt_device_blk_geometry *geometry; - - geometry = (struct rt_device_blk_geometry *)args; - if (geometry == RT_NULL) - { - return -RT_ERROR; - } - - geometry->bytes_per_sector = VIRTIO_BLK_BYTES_PER_SECTOR; - geometry->block_size = VIRTIO_BLK_BLOCK_SIZE; - geometry->sector_count = VIRTIO_BLK_SECTOR_COUNT; - } - - return RT_EOK; -} - -const static struct rt_device_ops virtio_blk_ops = -{ - virtio_blk_init, - virtio_blk_open, - virtio_blk_close, - virtio_blk_read, - virtio_blk_write, - virtio_blk_control -}; - -int rt_virtio_blk_init(void) -{ - rt_err_t status = RT_EOK; - -#ifdef RT_USING_VIRTIO_BLK0 - virtio_blk_dev0.parent.type = RT_Device_Class_Block; - virtio_blk_dev0.parent.ops = &virtio_blk_ops; - virtio_blk_dev0.blk = &blk0; - virtio_blk_dev0.mmio_base = (uint32_t *)VIRTIO_MMIO_BLK0_BASE; - - status = virtio_blk_device_init(&virtio_blk_dev0); - rt_device_register((rt_device_t)&virtio_blk_dev0, "virtio-blk0", RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_REMOVABLE); - rt_hw_interrupt_install(VIRTIO_MMIO_BLK0_IRQ, virtio_blk_isr, &virtio_blk_dev0, "virtio-blk0"); - rt_hw_interrupt_umask(VIRTIO_MMIO_BLK0_IRQ); -#endif /* RT_USING_VIRTIO_BLK0 */ - - return status; -} -INIT_DEVICE_EXPORT(rt_virtio_blk_init); -#endif /* BSP_USING_VIRTIO_BLK */ diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.h b/bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.h deleted file mode 100644 index 3ab23f7afe..0000000000 --- a/bsp/qemu-virt64-aarch64/driver/virtio/drv_virtio_blk.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2021-9-16 GuEe-GUI the first version - */ - -#ifndef DRV_VIRTIO_BLK_H__ -#define DRV_VIRTIO_BLK_H__ - -#include -#include -#include "virtio.h" - -#define VIRTIO_BLK_BUF_DATA_SIZE 512 -#define VIRTIO_BLK_BYTES_PER_SECTOR 512 -#define VIRTIO_BLK_BLOCK_SIZE 512 -#define VIRTIO_BLK_SECTOR_COUNT 0x40000 /* 128MB */ - -#define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ -#define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru */ -#define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */ -#define VIRTIO_BLK_F_MQ 12 /* Support more than one vq */ - -#define VIRTIO_BLK_T_IN 0 /* Read the blk */ -#define VIRTIO_BLK_T_OUT 1 /* Write the blk */ - -#define VIRTIO_F_ANY_LAYOUT 27 -#define VIRTIO_RING_F_INDIRECT_DESC 28 -#define VIRTIO_RING_F_EVENT_IDX 29 - -struct virtio_blk_buf -{ - int valid; - uint32_t block_no; - uint8_t *data; -}; - -struct virtio_blk_req -{ - uint32_t type; - uint32_t reserved; - uint64_t sector; -}; - -/* - * virtio_blk must be a static variable because - * pages must consist of two contiguous pages of - * page-aligned physical memory - */ -struct virtio_blk -{ - char pages[2 * PAGE_SIZE]; - struct virtq_desc *desc; - struct virtq_avail *avail; - struct virtq_used *used; - - char free[QUEUE_SIZE]; - uint16_t used_idx; - struct - { - struct virtio_blk_buf *buf; - char status; - } info[QUEUE_SIZE]; - - struct virtio_blk_req ops[QUEUE_SIZE]; -} __attribute__ ((aligned (PAGE_SIZE))); - -struct virtio_blk_device -{ - struct rt_device parent; - struct virtio_blk *blk; - - uint32_t *mmio_base; -#ifdef RT_USING_SMP - struct rt_spinlock spinlock; -#endif -}; - -int rt_hw_virtio_blk_init(void); - -#endif /* DRV_VIRTIO_BLK_H__ */ diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio.c b/bsp/qemu-virt64-aarch64/driver/virtio/virtio.c new file mode 100644 index 0000000000..faf05eb297 --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/virtio/virtio.c @@ -0,0 +1,274 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-11-11 GuEe-GUI the first version + */ + +#include +#include + +#include + +rt_inline void _virtio_dev_check(struct virtio_device *dev) +{ + RT_ASSERT(dev != RT_NULL); + RT_ASSERT(dev->mmio_config != RT_NULL); +} + +void virtio_reset_device(struct virtio_device *dev) +{ + _virtio_dev_check(dev); + + dev->mmio_config->status = 0; +} + +void virtio_status_acknowledge_driver(struct virtio_device *dev) +{ + _virtio_dev_check(dev); + + dev->mmio_config->status |= VIRTIO_STATUS_ACKNOWLEDGE | VIRTIO_STATUS_DRIVER; +} + +void virtio_status_driver_ok(struct virtio_device *dev) +{ + _virtio_dev_check(dev); + + dev->mmio_config->status |= VIRTIO_STATUS_FEATURES_OK | VIRTIO_STATUS_DRIVER_OK; +} + +void virtio_interrupt_ack(struct virtio_device *dev, rt_uint32_t ack) +{ + _virtio_dev_check(dev); + + dev->mmio_config->interrupt_ack = ack; +} + +rt_err_t virtio_queue_init(struct virtio_device *dev, rt_uint32_t queue_index, rt_size_t ring_size) +{ + int i; + void *pages; + rt_ubase_t pages_paddr; + rt_size_t pages_total_size; + struct virtq *queue; + + _virtio_dev_check(dev); + + RT_ASSERT(dev->mmio_config->queue_num_max > 0); + RT_ASSERT(dev->mmio_config->queue_num_max > queue_index); + /* ring_size is power of 2 */ + RT_ASSERT(ring_size > 0); + RT_ASSERT(((ring_size - 1) & ring_size) == 0); + + queue = &dev->queues[queue_index]; + pages_total_size = VIRTIO_PAGE_ALIGN( + VIRTQ_DESC_TOTAL_SIZE(ring_size) + VIRTQ_AVAIL_TOTAL_SIZE(ring_size) + VIRTQ_USED_TOTAL_SIZE(ring_size)); + + pages = rt_malloc_align(pages_total_size, VIRTIO_PAGE_SIZE); + + if (pages == RT_NULL) + { + return -RT_ENOMEM; + } + + queue->free = rt_malloc(sizeof(rt_bool_t) * ring_size); + + if (queue->free == RT_NULL) + { + rt_free_align(pages); + return -RT_ENOMEM; + } + + rt_memset(pages, 0, pages_total_size); + pages_paddr = VIRTIO_VA2PA(pages); + + dev->mmio_config->guest_page_size = VIRTIO_PAGE_SIZE; + dev->mmio_config->queue_sel = queue_index; + dev->mmio_config->queue_num = ring_size; + dev->mmio_config->queue_align = VIRTIO_PAGE_SIZE; + dev->mmio_config->queue_pfn = pages_paddr >> VIRTIO_PAGE_SHIFT; + + queue->num = ring_size; + queue->desc = (struct virtq_desc *)pages_paddr; + queue->avail = (struct virtq_avail *)(pages_paddr + VIRTQ_DESC_TOTAL_SIZE(ring_size)); + queue->used = (struct virtq_used *)VIRTIO_PAGE_ALIGN( + (rt_ubase_t)&queue->avail->ring[ring_size] + VIRTQ_AVAIL_RES_SIZE); + + queue->used_idx = 0; + + /* All descriptors start out unused */ + for (i = 0; i < ring_size; ++i) + { + queue->free[i] = RT_TRUE; + } + + return RT_EOK; +} + +void virtio_queue_destroy(struct virtio_device *dev, rt_uint32_t queue_index) +{ + struct virtq *queue; + + _virtio_dev_check(dev); + + RT_ASSERT(dev->mmio_config->queue_num_max > 0); + RT_ASSERT(dev->mmio_config->queue_num_max > queue_index); + + queue = &dev->queues[queue_index]; + + RT_ASSERT(queue->num > 0); + + rt_free(queue->free); + rt_free_align((void *)queue->desc); + + dev->mmio_config->queue_sel = queue_index; + dev->mmio_config->queue_pfn = RT_NULL; + + queue->num = 0; + queue->desc = RT_NULL; + queue->avail = RT_NULL; + queue->used = RT_NULL; +} + +void virtio_queue_notify(struct virtio_device *dev, rt_uint32_t queue_index) +{ + _virtio_dev_check(dev); + + dev->mmio_config->queue_notify = queue_index; +} + +void virtio_submit_chain(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index) +{ + rt_size_t ring_size; + struct virtq *queue; + + _virtio_dev_check(dev); + + queue = &dev->queues[queue_index]; + ring_size = queue->num; + + /* Tell the device the first index in our chain of descriptors */ + queue->avail->ring[queue->avail->idx % ring_size] = desc_index; + rt_hw_dsb(); + + /* Tell the device another avail ring entry is available */ + queue->avail->idx++; + rt_hw_dsb(); +} + +rt_uint16_t virtio_alloc_desc(struct virtio_device *dev, rt_uint32_t queue_index) +{ + int i; + rt_size_t ring_size; + struct virtq *queue; + + _virtio_dev_check(dev); + + RT_ASSERT(queue_index < RT_USING_VIRTIO_QUEUE_MAX_NR); + + queue = &dev->queues[queue_index]; + ring_size = queue->num; + + for (i = 0; i < ring_size; ++i) + { + if (queue->free[i]) + { + queue->free[i] = RT_FALSE; + + return (rt_uint16_t)i; + } + } + + return RT_UINT16_MAX; +} + +void virtio_free_desc(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index) +{ + struct virtq *queue; + + _virtio_dev_check(dev); + + queue = &dev->queues[queue_index]; + + RT_ASSERT(queue_index + 1 < RT_USING_VIRTIO_QUEUE_MAX_NR); + RT_ASSERT(!queue->free[desc_index]); + + queue->desc[desc_index].addr = 0; + queue->desc[desc_index].len = 0; + queue->desc[desc_index].flags = 0; + queue->desc[desc_index].next = 0; + + queue->free[desc_index] = RT_TRUE; +} + +rt_err_t virtio_alloc_desc_chain(struct virtio_device *dev, rt_uint32_t queue_index, rt_size_t count, + rt_uint16_t *indexs) +{ + int i, j; + + _virtio_dev_check(dev); + + RT_ASSERT(indexs != RT_NULL); + + for (i = 0; i < count; ++i) + { + indexs[i] = virtio_alloc_desc(dev, queue_index); + + if (indexs[i] == RT_UINT16_MAX) + { + for (j = 0; j < i; ++j) + { + virtio_free_desc(dev, queue_index, indexs[j]); + } + + return -RT_ERROR; + } + } + + return RT_EOK; +} + +void virtio_free_desc_chain(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index) +{ + rt_uint16_t flags, next; + struct virtq_desc *desc; + + _virtio_dev_check(dev); + + desc = &dev->queues[queue_index].desc[0]; + + for (;;) + { + flags = desc[desc_index].flags; + next = desc[desc_index].next; + + virtio_free_desc(dev, queue_index, desc_index); + + if (flags & VIRTQ_DESC_F_NEXT) + { + desc_index = next; + } + else + { + break; + } + } +} + +void virtio_fill_desc(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index, + rt_uint64_t addr, rt_uint32_t len, rt_uint16_t flags, rt_uint16_t next) +{ + struct virtq_desc *desc; + + _virtio_dev_check(dev); + + desc = &dev->queues[queue_index].desc[desc_index]; + + desc->addr = addr; + desc->len = len; + desc->flags = flags; + desc->next = next; +} diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio.h b/bsp/qemu-virt64-aarch64/driver/virtio/virtio.h index e87b68cd88..8a1dffa8c7 100644 --- a/bsp/qemu-virt64-aarch64/driver/virtio/virtio.h +++ b/bsp/qemu-virt64-aarch64/driver/virtio/virtio.h @@ -6,55 +6,115 @@ * Change Logs: * Date Author Notes * 2021-9-16 GuEe-GUI the first version + * 2021-11-11 GuEe-GUI modify to virtio common interface */ -#ifndef VIRTIO_H__ -#define VIRTIO_H__ +#ifndef __VIRTIO_H__ +#define __VIRTIO_H__ -#include +#include +#include -#define PAGE_SIZE 4096 -#define PAGE_SHIFT 12 +#ifndef RT_USING_VIRTIO_VERSION +#define RT_USING_VIRTIO_VERSION 0x1 +#endif -#define VIRTIO_STAT_ACKNOWLEDGE 1 -#define VIRTIO_STAT_DRIVER 2 -#define VIRTIO_STAT_DRIVER_OK 4 -#define VIRTIO_STAT_FEATURES_OK 8 -#define VIRTIO_STAT_NEEDS_RESET 64 -#define VIRTIO_STAT_FAILED 128 +#ifndef RT_USING_VIRTIO_QUEUE_MAX_NR +#define RT_USING_VIRTIO_QUEUE_MAX_NR 4 +#endif -#define QUEUE_SIZE 8 +#include +#include -struct virtq_desc -{ - uint64_t addr; - uint32_t len; - uint16_t flags; - uint16_t next; -}; +#define VIRTIO_MAGIC_VALUE 0x74726976 /* "virt" */ -#define VRING_DESC_F_NEXT 1 // chained with another descriptor -#define VRING_DESC_F_WRITE 2 // device writes (vs read) +#define VIRTIO_STATUS_ACKNOWLEDGE (1 << 0) +#define VIRTIO_STATUS_DRIVER (1 << 1) +#define VIRTIO_STATUS_DRIVER_OK (1 << 2) +#define VIRTIO_STATUS_FEATURES_OK (1 << 3) +#define VIRTIO_STATUS_NEEDS_RESET (1 << 6) +#define VIRTIO_STATUS_FAILED (1 << 7) -struct virtq_avail -{ - uint16_t flags; // always zero - uint16_t idx; // driver will write ring[idx] next - uint16_t ring[QUEUE_SIZE]; // descriptor numbers of chain heads - uint16_t unused; -}; +#define VIRTIO_F_NOTIFY_ON_EMPTY 24 +#define VIRTIO_F_ANY_LAYOUT 27 +#define VIRTIO_F_RING_INDIRECT_DESC 28 +#define VIRTIO_F_RING_EVENT_IDX 29 +#define VIRTIO_F_VERSION_1 32 +#define VIRTIO_F_RING_PACKED 34 -struct virtq_used_elem +#define VIRTIO_VA2PA(vaddr) ((rt_ubase_t)vaddr) +#define VIRTIO_PAGE_SHIFT 12 +#define VIRTIO_PAGE_SIZE (1 << VIRTIO_PAGE_SHIFT) +#define VIRTIO_PAGE_ALIGN(addr) (RT_ALIGN(addr, VIRTIO_PAGE_SIZE)) + +enum { - uint32_t id; // index of start of completed descriptor chain - uint32_t len; + /* virtio 1.0 */ + VIRTIO_DEVICE_ID_INVALID = 0, /* Invalid device */ + VIRTIO_DEVICE_ID_NET = 1, /* Net */ + VIRTIO_DEVICE_ID_BLOCK = 2, /* Block */ + VIRTIO_DEVICE_ID_CONSOLE = 3, /* Console */ + VIRTIO_DEVICE_ID_RNG = 4, /* Rng */ + VIRTIO_DEVICE_ID_BALLOON = 5, /* Balloon */ + VIRTIO_DEVICE_ID_IOMEM = 6, /* IO memory */ + VIRTIO_DEVICE_ID_RPMSG = 7, /* Remote processor messaging */ + VIRTIO_DEVICE_ID_SCSI = 8, /* SCSI */ + VIRTIO_DEVICE_ID_9P = 9, /* 9p console */ + VIRTIO_DEVICE_ID_MAC80211_WLAN = 10, /* Mac80211 wlan */ + VIRTIO_DEVICE_ID_RPROC_SERIAL = 11, /* Remoteproc serial link */ + VIRTIO_DEVICE_ID_CAIF = 12, /* CAIF */ + VIRTIO_DEVICE_ID_MEM_BALLOON = 13, /* Memory balloon */ + VIRTIO_DEVICE_ID_GPU = 16, /* GPU */ + VIRTIO_DEVICE_ID_TIME = 17, /* Timer/clock device */ + VIRTIO_DEVICE_ID_INPUT = 18, /* Input */ + /* virtio 1.1 */ + VIRTIO_DEVICE_ID_SOCKET = 19, /* Socket device */ + VIRTIO_DEVICE_ID_CRYPTO = 20, /* Crypto device */ + VIRTIO_DEVICE_ID_SIG_DIS_MOD = 21, /* Signal Distribution Module */ + VIRTIO_DEVICE_ID_PSTORE = 22, /* Pstore device */ + VIRTIO_DEVICE_ID_IOMMU = 23, /* IOMMU device */ + VIRTIO_DEVICE_ID_MEM = 24, /* Memory device */ + + VIRTIO_DEVICE_TYPE_SIZE }; -struct virtq_used +struct virtio_device { - uint16_t flags; // always zero - uint16_t idx; // device increments when it adds a ring[] entry - struct virtq_used_elem ring[QUEUE_SIZE]; + rt_uint32_t irq; + + struct virtq queues[RT_USING_VIRTIO_QUEUE_MAX_NR]; + union + { + rt_ubase_t *mmio_base; + struct virtio_mmio_config *mmio_config; + }; + +#ifdef RT_USING_SMP + struct rt_spinlock spinlock; +#endif + + void *priv; }; -#endif /* VIRTIO_H__ */ +typedef rt_err_t (*virtio_device_init_handler)(rt_ubase_t *mmio_base, rt_uint32_t irq); + +void virtio_reset_device(struct virtio_device *dev); +void virtio_status_acknowledge_driver(struct virtio_device *dev); +void virtio_status_driver_ok(struct virtio_device *dev); +void virtio_interrupt_ack(struct virtio_device *dev, rt_uint32_t ack); + +rt_err_t virtio_queue_init(struct virtio_device *dev, rt_uint32_t queue_index, rt_size_t ring_size); +void virtio_queue_destroy(struct virtio_device *dev, rt_uint32_t queue_index); +void virtio_queue_notify(struct virtio_device *dev, rt_uint32_t queue_index); + +void virtio_submit_chain(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index); + +rt_uint16_t virtio_alloc_desc(struct virtio_device *dev, rt_uint32_t queue_index); +void virtio_free_desc(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index); +rt_err_t virtio_alloc_desc_chain(struct virtio_device *dev, rt_uint32_t queue_index, rt_size_t count, + rt_uint16_t *indexs); +void virtio_free_desc_chain(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index); +void virtio_fill_desc(struct virtio_device *dev, rt_uint32_t queue_index, rt_uint16_t desc_index, + rt_uint64_t addr, rt_uint32_t len, rt_uint16_t flags, rt_uint16_t next); + +#endif /* __VIRTIO_H__ */ diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.c b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.c new file mode 100644 index 0000000000..aac6ff7511 --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.c @@ -0,0 +1,216 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-9-16 GuEe-GUI the first version + * 2021-11-11 GuEe-GUI using virtio common interface + */ + +#include +#include +#include + +#include + +#ifdef BSP_USING_VIRTIO_BLK +static void virtio_blk_rw(struct virtio_blk_device *virtio_blk_dev, rt_off_t pos, void *buffer, int flags) +{ + rt_uint16_t idx[3]; + struct virtio_device *virtio_dev = &virtio_blk_dev->virtio_dev; + +#ifdef RT_USING_SMP + rt_base_t level = rt_spin_lock_irqsave(&virtio_dev->spinlock); +#endif + + /* Allocate 3 descriptors */ + while (virtio_alloc_desc_chain(virtio_dev, 0, 3, idx)) + { + } + + virtio_blk_dev->info[idx[0]].status = 0xff; + virtio_blk_dev->info[idx[0]].valid = RT_TRUE; + virtio_blk_dev->info[idx[0]].req.type = flags; + virtio_blk_dev->info[idx[0]].req.ioprio = 0; + virtio_blk_dev->info[idx[0]].req.sector = pos * (VIRTIO_BLK_BUF_DATA_SIZE / 512); + + flags = flags == VIRTIO_BLK_T_OUT ? 0 : VIRTQ_DESC_F_WRITE; + + virtio_fill_desc(virtio_dev, 0, idx[0], + VIRTIO_VA2PA(&virtio_blk_dev->info[idx[0]].req), sizeof(struct virtio_blk_req), VIRTQ_DESC_F_NEXT, idx[1]); + + virtio_fill_desc(virtio_dev, 0, idx[1], + VIRTIO_VA2PA(buffer), VIRTIO_BLK_BUF_DATA_SIZE, flags | VIRTQ_DESC_F_NEXT, idx[2]); + + virtio_fill_desc(virtio_dev, 0, idx[2], + VIRTIO_VA2PA(&virtio_blk_dev->info[idx[0]].status), 1, VIRTQ_DESC_F_WRITE, 0); + + virtio_submit_chain(virtio_dev, 0, idx[0]); + + virtio_queue_notify(virtio_dev, 0); + + /* Wait for virtio_blk_isr() to done */ + while (virtio_blk_dev->info[idx[0]].valid) + { +#ifdef RT_USING_SMP + rt_spin_unlock_irqrestore(&virtio_dev->spinlock, level); +#endif + rt_thread_yield(); + +#ifdef RT_USING_SMP + level = rt_spin_lock_irqsave(&virtio_dev->spinlock); +#endif + } + + virtio_free_desc_chain(virtio_dev, 0, idx[0]); + +#ifdef RT_USING_SMP + rt_spin_unlock_irqrestore(&virtio_dev->spinlock, level); +#endif +} + +static rt_size_t virtio_blk_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) +{ + virtio_blk_rw((struct virtio_blk_device *)dev, pos, buffer, VIRTIO_BLK_T_IN); + + return size; +} + +static rt_size_t virtio_blk_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) +{ + virtio_blk_rw((struct virtio_blk_device *)dev, pos, (void *)buffer, VIRTIO_BLK_T_OUT); + + return size; +} + +static rt_err_t virtio_blk_control(rt_device_t dev, int cmd, void *args) +{ + rt_err_t status = RT_EOK; + struct virtio_blk_device *virtio_blk_dev = (struct virtio_blk_device *)dev; + + switch (cmd) + { + case RT_DEVICE_CTRL_BLK_GETGEOME: + { + struct rt_device_blk_geometry *geometry = (struct rt_device_blk_geometry *)args; + + if (geometry == RT_NULL) + { + status = -RT_ERROR; + break; + } + + geometry->bytes_per_sector = VIRTIO_BLK_BYTES_PER_SECTOR; + geometry->block_size = VIRTIO_BLK_BLOCK_SIZE; + geometry->sector_count = virtio_blk_dev->virtio_dev.mmio_config->config[0]; + } + break; + default: + break; + } + + return status; +} + +const static struct rt_device_ops virtio_blk_ops = +{ + RT_NULL, + RT_NULL, + RT_NULL, + virtio_blk_read, + virtio_blk_write, + virtio_blk_control +}; + +static void virtio_blk_isr(int irqno, void *param) +{ + rt_uint32_t id; + struct virtio_blk_device *virtio_blk_dev = (struct virtio_blk_device *)param; + struct virtio_device *virtio_dev = &virtio_blk_dev->virtio_dev; + +#ifdef RT_USING_SMP + rt_base_t level = rt_spin_lock_irqsave(&virtio_dev->spinlock); +#endif + + virtio_interrupt_ack(virtio_dev, virtio_dev->mmio_config->interrupt_status & 0x3); + rt_hw_dsb(); + + /* The device increments disk.used->idx when it adds an entry to the used ring */ + while (virtio_dev->queues[0].used_idx != virtio_dev->queues[0].used->idx) + { + rt_hw_dsb(); + id = virtio_dev->queues[0].used->ring[virtio_dev->queues[0].used_idx % VIRTIO_BLK_QUEUE_RING_SIZE].id; + + RT_ASSERT(virtio_blk_dev->info[id].status == 0); + + /* Done with buffer */ + virtio_blk_dev->info[id].valid = RT_FALSE; + rt_thread_yield(); + + virtio_dev->queues[0].used_idx++; + } + +#ifdef RT_USING_SMP + rt_spin_unlock_irqrestore(&virtio_dev->spinlock, level); +#endif +} + +rt_err_t rt_virtio_blk_init(rt_ubase_t *mmio_base, rt_uint32_t irq) +{ + static int dev_no = 0; + char dev_name[RT_NAME_MAX]; + struct virtio_device *virtio_dev; + struct virtio_blk_device *virtio_blk_dev; + + virtio_blk_dev = rt_malloc(sizeof(struct virtio_blk_device)); + + if (virtio_blk_dev == RT_NULL) + { + return -RT_ENOMEM; + } + + virtio_dev = &virtio_blk_dev->virtio_dev; + virtio_dev->irq = irq; + virtio_dev->mmio_base = mmio_base; + +#ifdef RT_USING_SMP + rt_spin_lock_init(&virtio_dev->spinlock); +#endif + + virtio_reset_device(virtio_dev); + virtio_status_acknowledge_driver(virtio_dev); + + /* Negotiate features */ + virtio_dev->mmio_config->driver_features = virtio_dev->mmio_config->device_features & ~( + (1 << VIRTIO_BLK_F_RO) | + (1 << VIRTIO_BLK_F_MQ) | + (1 << VIRTIO_BLK_F_SCSI) | + (1 << VIRTIO_BLK_F_CONFIG_WCE) | + (1 << VIRTIO_F_ANY_LAYOUT) | + (1 << VIRTIO_F_RING_EVENT_IDX) | + (1 << VIRTIO_F_RING_INDIRECT_DESC)); + + /* Tell device that feature negotiation is complete and we're completely ready */ + virtio_status_driver_ok(virtio_dev); + + /* Initialize queue 0 */ + if (virtio_queue_init(virtio_dev, 0, VIRTIO_BLK_QUEUE_RING_SIZE) != RT_EOK) + { + rt_free(virtio_blk_dev); + + return -RT_ENOMEM; + } + + virtio_blk_dev->parent.type = RT_Device_Class_Block; + virtio_blk_dev->parent.ops = &virtio_blk_ops; + + rt_snprintf(dev_name, RT_NAME_MAX, "%s%d", "virtio-blk", dev_no++); + + rt_hw_interrupt_install(irq, virtio_blk_isr, virtio_blk_dev, dev_name); + rt_hw_interrupt_umask(irq); + + return rt_device_register((rt_device_t)virtio_blk_dev, dev_name, RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_REMOVABLE); +} +#endif /* BSP_USING_VIRTIO_BLK */ diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.h b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.h new file mode 100644 index 0000000000..dfc08a1c55 --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_blk.h @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-9-16 GuEe-GUI the first version + * 2021-11-11 GuEe-GUI using virtio common interface + */ + +#ifndef __VIRTIO_BLK_H__ +#define __VIRTIO_BLK_H__ + +#include + +#include + +#define VIRTIO_BLK_BUF_DATA_SIZE 512 +#define VIRTIO_BLK_BYTES_PER_SECTOR 512 +#define VIRTIO_BLK_BLOCK_SIZE 512 +#define VIRTIO_BLK_QUEUE_RING_SIZE 4 + +#define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ +#define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru */ +#define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in config */ +#define VIRTIO_BLK_F_MQ 12 /* Support more than one vq */ + +#define VIRTIO_BLK_T_IN 0 /* Read the blk */ +#define VIRTIO_BLK_T_OUT 1 /* Write the blk */ +#define VIRTIO_BLK_T_SCSI_CMD 2 +#define VIRTIO_BLK_T_SCSI_CMD_OUT 3 +#define VIRTIO_BLK_T_FLUSH 4 +#define VIRTIO_BLK_T_FLUSH_OUT 5 + +struct virtio_blk_req +{ + rt_uint32_t type; + rt_uint32_t ioprio; + rt_uint64_t sector; +}; + +struct virtio_blk_device +{ + struct rt_device parent; + + struct virtio_device virtio_dev; + + struct + { + rt_bool_t valid; + rt_uint8_t status; + + struct virtio_blk_req req; + + } info[VIRTIO_BLK_QUEUE_RING_SIZE]; +}; + +rt_err_t rt_virtio_blk_init(rt_ubase_t *mmio_base, rt_uint32_t irq); + +#endif /* __VIRTIO_BLK_H__ */ diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.c b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.c deleted file mode 100644 index 72328bf61c..0000000000 --- a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2021-9-16 GuEe-GUI the first version - */ - -#include -#include - -#include "virtio_mmio.h" - -void virtio_mmio_print_configs(uint32_t *device_base) -{ - rt_kprintf("MagicValue:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_MAGIC_VALUE)); - rt_kprintf("Version:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_VERSION)); - rt_kprintf("DeviceID:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_DEVICE_ID)); - rt_kprintf("VendorID:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_VENDOR_ID)); - rt_kprintf("DeviceFeatures0:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_HOST_FEATURES)); - rt_kprintf("DeviceFeaturesSel0:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_HOST_FEATURES_SEL)); - - virtio_mmio_write32(device_base, VIRTIO_MMIO_HOST_FEATURES_SEL, 1); - rt_hw_dsb(); - - rt_kprintf("DeviceFeatures1:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_HOST_FEATURES)); - rt_kprintf("DriverFeatures:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_GUEST_FEATURES)); - rt_kprintf("DriverFeaturesSel:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_GUEST_FEATURES_SEL)); - rt_kprintf("PageSize:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_GUEST_PAGE_SIZE)); - - virtio_mmio_write32(device_base, VIRTIO_MMIO_QUEUE_SEL, 0); - rt_hw_dsb(); - - rt_kprintf("QueueSel:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_SEL)); - rt_kprintf("QueueNumMax:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_NUM_MAX)); - rt_kprintf("QueueNum:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_NUM)); - - virtio_mmio_write32(device_base, VIRTIO_MMIO_QUEUE_SEL, 1); - rt_hw_dsb(); - - rt_kprintf("QueueSel:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_SEL)); - rt_kprintf("QueueNumMax1:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_NUM_MAX)); - rt_kprintf("QueueNum1:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_NUM)); - rt_kprintf("QueueAlign:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_ALIGN)); - rt_kprintf("QueuePFN:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_PFN)); - rt_kprintf("QueueReady:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_READY)); - rt_kprintf("QueueNotify:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_NOTIFY)); - rt_kprintf("InterruptStatus:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_INTERRUPT_STATUS)); - rt_kprintf("InterruptACK:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_INTERRUPT_ACK)); - rt_kprintf("Status:\t\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_STATUS)); - rt_kprintf("QueueDescLow:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_DESC_LOW)); - rt_kprintf("QueueDescHigh:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_DESC_HIGH)); - rt_kprintf("QueueDriverLow:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_AVAIL_LOW)); - rt_kprintf("QueueDriverHigh:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_AVAIL_HIGH)); - rt_kprintf("QueueDeviceLow:\t\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_USED_LOW)); - rt_kprintf("QueueDeviceHigh:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_QUEUE_USED_HIGH)); - rt_kprintf("ConfigGeneration:\t 0x%x\n", virtio_mmio_read32(device_base, VIRTIO_MMIO_CONFIG_GENERATION)); - rt_kprintf("Config:\t\t\t 0x%x\n", virtio_mmio_read32(device_base,VIRTIO_MMIO_CONFIG)); -} diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.h b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.h index fd7611aa85..4082aa6682 100644 --- a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.h +++ b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_mmio.h @@ -6,70 +6,52 @@ * Change Logs: * Date Author Notes * 2021-9-16 GuEe-GUI the first version + * 2021-11-11 GuEe-GUI modify to virtio common interface */ -#ifndef VIRTIO_MMIO_H -#define VIRTIO_MMIO_H +#ifndef __VIRTIO_MMIO_H__ +#define __VIRTIO_MMIO_H__ -#include -#include +#include -#define VIRTIO_MMIO_MAGIC 0x74726976 -#define VIRTIO_MMIO_VENDOR 0x554d4551 - -#define VIRTIO_MMIO_MAGIC_VALUE 0x000 /* VIRTIO_MMIO_MAGIC */ -#define VIRTIO_MMIO_VERSION 0x004 /* version: 1 is legacy */ -#define VIRTIO_MMIO_DEVICE_ID 0x008 /* device type: 1 is net, 2 is disk */ -#define VIRTIO_MMIO_VENDOR_ID 0x00c /* VIRTIO_MMIO_VENDOR */ -#define VIRTIO_MMIO_DEVICE_FEATURES 0x010 -#define VIRTIO_MMIO_DRIVER_FEATURES 0x020 -#define VIRTIO_MMIO_HOST_FEATURES 0x010 -#define VIRTIO_MMIO_HOST_FEATURES_SEL 0x014 -#define VIRTIO_MMIO_GUEST_FEATURES 0x020 -#define VIRTIO_MMIO_GUEST_FEATURES_SEL 0x024 -#define VIRTIO_MMIO_GUEST_PAGE_SIZE 0x028 /* version 1 only */ -#define VIRTIO_MMIO_QUEUE_SEL 0x030 -#define VIRTIO_MMIO_QUEUE_NUM_MAX 0x034 -#define VIRTIO_MMIO_QUEUE_NUM 0x038 -#define VIRTIO_MMIO_QUEUE_ALIGN 0x03c /* version 1 only */ -#define VIRTIO_MMIO_QUEUE_PFN 0x040 /* version 1 only */ -#define VIRTIO_MMIO_QUEUE_READY 0x044 /* requires version 2 */ -#define VIRTIO_MMIO_QUEUE_NOTIFY 0x050 -#define VIRTIO_MMIO_INTERRUPT_STATUS 0x060 -#define VIRTIO_MMIO_INTERRUPT_ACK 0x064 -#define VIRTIO_MMIO_STATUS 0x070 -#define VIRTIO_MMIO_QUEUE_DESC_LOW 0x080 /* requires version 2 */ -#define VIRTIO_MMIO_QUEUE_DESC_HIGH 0x084 /* requires version 2 */ -#define VIRTIO_MMIO_QUEUE_AVAIL_LOW 0x090 /* requires version 2 */ -#define VIRTIO_MMIO_QUEUE_AVAIL_HIGH 0x094 /* requires version 2 */ -#define VIRTIO_MMIO_QUEUE_USED_LOW 0x0a0 /* requires version 2 */ -#define VIRTIO_MMIO_QUEUE_USED_HIGH 0x0a4 /* requires version 2 */ -#define VIRTIO_MMIO_CONFIG_GENERATION 0x100 /* requires version 2 */ -#define VIRTIO_MMIO_CONFIG 0x100 -#define VIRTIO_MMIO_INT_VRING (1 << 0) -#define VIRTIO_MMIO_INT_CONFIG (1 << 1) -#define VIRTIO_MMIO_VRING_ALIGN 4096 - -static inline uint32_t virtio_mmio_read32(uint32_t *base, size_t offset) -{ - return *((volatile uint32_t*) (((uintptr_t) base) + offset)); -} - -static inline uint16_t virtio_mmio_read16(uint32_t *base, size_t offset) -{ - return *((volatile uint16_t*) (((uintptr_t) base) + offset)); -} - -static inline uint8_t virtio_mmio_read8(uint32_t *base, size_t offset) -{ - return *((volatile uint8_t*) (((uintptr_t) base) + offset)); -} - -static inline void virtio_mmio_write32(uint32_t *base, size_t offset, uint32_t val) +struct virtio_mmio_config { - *((volatile uint32_t*) (((uintptr_t) base) + offset)) = val; -} - -void virtio_mmio_print_configs(uint32_t *device_base); - -#endif /* VIRTIO_MMIO_H */ + rt_uint32_t magic; /* [0x00] Magic value */ + rt_uint32_t version; /* [0x04] Device version number */ + rt_uint32_t device_id; /* [0x08] Virtio Subsystem Device ID */ + rt_uint32_t vendor_id; /* [0x0c] Virtio Subsystem Vendor ID */ + rt_uint32_t device_features; /* [0x10] Flags representing features the device supports */ + rt_uint32_t device_features_sel; /* [0x14] Device (host) features word selection. */ + rt_uint32_t res0[2]; /* [0x18] */ + rt_uint32_t driver_features; /* [0x20] Device features understood and activated by the driver */ + rt_uint32_t driver_features_sel; /* [0x24] Activated (guest) features word selection */ + rt_uint32_t guest_page_size; /* [0x28] Guest page size, this value should be a power of 2 */ + rt_uint32_t res1[1]; /* [0x2c] */ + rt_uint32_t queue_sel; /* [0x30] Virtual queue index */ + rt_uint32_t queue_num_max; /* [0x34] Maximum virtual queue size */ + rt_uint32_t queue_num; /* [0x38] Virtual queue size */ + rt_uint32_t queue_align; /* [0x3c] Used Ring alignment in the virtual queue */ + rt_uint32_t queue_pfn; /* [0x40] Guest physical page number of the virtual queue */ + rt_uint32_t queue_ready; /* [0x44] Virtual queue ready bit */ + rt_uint32_t res2[2]; /* [0x48] */ + rt_uint32_t queue_notify; /* [0x50] Queue notifier */ + rt_uint32_t res3[3]; /* [0x54] */ + rt_uint32_t interrupt_status; /* [0x60] Interrupt status */ + rt_uint32_t interrupt_ack; /* [0x64] Interrupt acknowledge */ + rt_uint32_t res4[2]; /* [0x68] */ + rt_uint32_t status; /* [0x70] Device status */ + rt_uint32_t res5[3]; /* [0x74] */ + rt_uint32_t queue_desc_low; /* [0x80] Virtual queue’s Descriptor Area 64 bit long physical address */ + rt_uint32_t queue_desc_high; /* [0x84] */ + rt_uint32_t res6[2]; /* [0x88] */ + rt_uint32_t queue_driver_low; /* [0x90] Virtual queue’s Driver Area 64 bit long physical address */ + rt_uint32_t queue_driver_high; /* [0x94] */ + rt_uint32_t res7[2]; /* [0x98] */ + rt_uint32_t queue_device_low; /* [0xa0] Virtual queue’s Device Area 64 bit long physical address */ + rt_uint32_t queue_device_high; /* [0xa4] */ + rt_uint32_t res8[21]; /* [0xa8] */ + rt_uint32_t config_generation; /* [0xfc] Configuration atomicity value */ + rt_uint32_t config[]; /* [0x100+] Configuration space */ +} __attribute__((packed)); + +#endif /* __VIRTIO_MMIO_H__ */ diff --git a/bsp/qemu-virt64-aarch64/driver/virtio/virtio_queue.h b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_queue.h new file mode 100644 index 0000000000..ba8d5d4268 --- /dev/null +++ b/bsp/qemu-virt64-aarch64/driver/virtio/virtio_queue.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2006-2021, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2021-11-11 GuEe-GUI the first version + */ + +#ifndef __VIRTIO_QUEUE_H__ +#define __VIRTIO_QUEUE_H__ + +#include + +#define VIRTQ_DESC_F_NEXT 1 /* This marks a buffer as continuing via the next field. */ +#define VIRTQ_DESC_F_WRITE 2 /* This marks a buffer as write-only (otherwise read-only). */ +#define VIRTQ_DESC_F_INDIRECT 4 /* This means the buffer contains a list of buffer descriptors. */ + +/* + * The device uses this in used->flags to advise the driver: don't kick me + * when you add a buffer. It's unreliable, so it's simply an optimization. + */ +#define VIRTQ_USED_F_NO_NOTIFY 1 + +/* + * The driver uses this in avail->flags to advise the device: don't + * interrupt me when you consume a buffer. It's unreliable, so it's + * simply an optimization. + */ +#define VIRTQ_AVAIL_F_NO_INTERRUPT 1 + +/* Virtqueue descriptors: 16 bytes. These can chain together via "next". */ +struct virtq_desc +{ + rt_uint64_t addr; /* Address (guest-physical). */ + rt_uint32_t len; /* Length. */ + rt_uint16_t flags; /* The flags as indicated above. */ + rt_uint16_t next; /* We chain unused descriptors via this, too */ +}; + +struct virtq_avail +{ + rt_uint16_t flags; /* Notifications */ + rt_uint16_t idx; /* Where the driver would put the next descriptor entry in the ring (modulo the queue size) */ + rt_uint16_t ring[]; + + /* + * Only if VIRTIO_F_RING_EVENT_IDX + * rt_uint16_t used_event; + */ +}; + +struct virtq_used_elem +{ + rt_uint32_t id; /* Index of start of used descriptor chain. */ + rt_uint32_t len; /* Total length of the descriptor chain which was written to. */ +}; + +struct virtq_used +{ + rt_uint16_t flags; + rt_uint16_t idx; + struct virtq_used_elem ring[]; + + /* + * Only if VIRTIO_F_RING_EVENT_IDX + * rt_uint16_t avail_event; + */ +}; + +struct virtq +{ + rt_uint32_t num; + + struct virtq_desc *desc; + struct virtq_avail *avail; + struct virtq_used *used; + + /* Helper of driver */ + rt_uint32_t used_idx; + rt_bool_t *free; +}; + +#define VIRTQ_DESC_TOTAL_SIZE(ring_size) (sizeof(struct virtq_desc) * (ring_size)) +/* flags, idx, used_event + ring * ring_size */ +#define VIRTQ_AVAIL_TOTAL_SIZE(ring_size) (sizeof(rt_uint16_t) * 3 + sizeof(rt_uint16_t) * (ring_size)) +/* flags, idx, avail_event + ring * ring_size */ +#define VIRTQ_USED_TOTAL_SIZE(ring_size) (sizeof(rt_uint16_t) * 3 + sizeof(struct virtq_used_elem) * (ring_size)) + +#define VIRTQ_AVAIL_RES_SIZE (sizeof(rt_uint16_t)) /* used_event */ +#define VIRTQ_USED_RES_SIZE (sizeof(rt_uint16_t)) /* avail_event */ + +#endif /* __VIRTIO_QUEUE_H__ */ diff --git a/bsp/qemu-virt64-aarch64/qemu.bat b/bsp/qemu-virt64-aarch64/qemu.bat index 708bd271c5..0e078cfe15 100644 --- a/bsp/qemu-virt64-aarch64/qemu.bat +++ b/bsp/qemu-virt64-aarch64/qemu.bat @@ -3,5 +3,6 @@ if exist sd.bin goto run qemu-img create -f raw sd.bin 64M :run -qemu-system-aarch64 -M virt -cpu cortex-a53 -smp 4 -kernel rtthread.elf -nographic ^ --drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 +qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -smp 4 -kernel rtthread.elf -nographic ^ +-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 ^ +-netdev user,id=net0 -device virtio-net-device,netdev=net0,bus=virtio-mmio-bus.1 diff --git a/bsp/qemu-virt64-aarch64/qemu.sh b/bsp/qemu-virt64-aarch64/qemu.sh index 677d640b01..34886682ee 100644 --- a/bsp/qemu-virt64-aarch64/qemu.sh +++ b/bsp/qemu-virt64-aarch64/qemu.sh @@ -1,5 +1,6 @@ if [ ! -f "sd.bin" ]; then dd if=/dev/zero of=sd.bin bs=1024 count=65536 fi -qemu-system-aarch64 -M virt -cpu cortex-a53 -smp 4 -kernel rtthread.elf -nographic \ --drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 +qemu-system-aarch64 -M virt,gic-version=2 -cpu cortex-a53 -smp 4 -kernel rtthread.elf -nographic \ +-drive if=none,file=sd.bin,format=raw,id=blk0 -device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \ +-netdev user,id=net0 -device virtio-net-device,netdev=net0,bus=virtio-mmio-bus.1 diff --git a/bsp/qemu-virt64-aarch64/rtconfig.h b/bsp/qemu-virt64-aarch64/rtconfig.h index 2aefe60171..51cb859f2a 100644 --- a/bsp/qemu-virt64-aarch64/rtconfig.h +++ b/bsp/qemu-virt64-aarch64/rtconfig.h @@ -61,14 +61,8 @@ #define RT_USING_USER_MAIN #define RT_MAIN_THREAD_STACK_SIZE 8192 #define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - - -/* Command shell */ - -#define RT_USING_FINSH #define RT_USING_MSH +#define RT_USING_FINSH #define FINSH_USING_MSH #define FINSH_THREAD_NAME "tshell" #define FINSH_THREAD_PRIORITY 20 @@ -80,9 +74,6 @@ #define MSH_USING_BUILT_IN_COMMANDS #define FINSH_USING_DESCRIPTION #define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - #define RT_USING_DFS #define DFS_USING_POSIX #define DFS_USING_WORKDIR @@ -109,6 +100,9 @@ /* Device Drivers */ #define RT_USING_DEVICE_IPC +#define RT_USING_SYSTEM_WORKQUEUE +#define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048 +#define RT_SYSTEM_WORKQUEUE_PRIORITY 23 #define RT_USING_SERIAL #define RT_USING_SERIAL_V1 #define RT_SERIAL_RB_BUFSZ 64 @@ -119,7 +113,7 @@ /* Using USB */ -/* POSIX layer and C standard library */ +/* C/C++ and POSIX layer */ #define RT_LIBC_DEFAULT_TIMEZONE 8 @@ -131,21 +125,8 @@ /* Socket is in the 'Network' category */ -/* Network */ - -/* Socket abstraction layer */ - -/* Network interface device */ - - -/* light weight TCP/IP stack */ - - -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ +/* Network */ /* Utilities */ @@ -215,6 +196,8 @@ /* miscellaneous packages */ +/* project laboratory */ + /* samples: kernel and components samples */ @@ -229,7 +212,7 @@ #define BSP_USING_RTC #define BSP_USING_ALARM #define BSP_USING_VIRTIO_BLK -#define RT_USING_VIRTIO_BLK0 #define BSP_USING_GIC +#define BSP_USING_GICV2 #endif diff --git a/bsp/raspberry-pi/raspi4-64/.config b/bsp/raspberry-pi/raspi4-64/.config index a2c217c07a..d5b8d6e0a5 100644 --- a/bsp/raspberry-pi/raspi4-64/.config +++ b/bsp/raspberry-pi/raspi4-64/.config @@ -94,17 +94,8 @@ CONFIG_RT_USING_USER_MAIN=y CONFIG_RT_MAIN_THREAD_STACK_SIZE=4096 CONFIG_RT_MAIN_THREAD_PRIORITY=10 # CONFIG_RT_USING_LEGACY is not set - -# -# C++ features -# -# CONFIG_RT_USING_CPLUSPLUS is not set - -# -# Command shell -# -CONFIG_RT_USING_FINSH=y CONFIG_RT_USING_MSH=y +CONFIG_RT_USING_FINSH=y CONFIG_FINSH_USING_MSH=y CONFIG_FINSH_THREAD_NAME="tshell" CONFIG_FINSH_THREAD_PRIORITY=20 @@ -118,10 +109,6 @@ CONFIG_FINSH_USING_DESCRIPTION=y # CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set # CONFIG_FINSH_USING_AUTH is not set CONFIG_FINSH_ARG_MAX=10 - -# -# Device virtual file system -# CONFIG_RT_USING_DFS=y CONFIG_DFS_USING_POSIX=y CONFIG_DFS_USING_WORKDIR=y @@ -156,6 +143,7 @@ CONFIG_RT_USING_DFS_DEVFS=y # CONFIG_RT_USING_DFS_ROMFS is not set # CONFIG_RT_USING_DFS_RAMFS is not set # CONFIG_RT_USING_DFS_NFS is not set +# CONFIG_RT_USING_FAL is not set # # Device Drivers @@ -209,7 +197,7 @@ CONFIG_RT_USING_WDT=y # CONFIG_RT_USING_USB_DEVICE is not set # -# POSIX layer and C standard library +# C/C++ and POSIX layer # CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 @@ -233,25 +221,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # Socket is in the 'Network' category # - -# -# Interprocess Communication (IPC) -# -# CONFIG_RT_USING_POSIX_PIPE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set -# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set - -# -# Socket is in the 'Network' category -# +# CONFIG_RT_USING_CPLUSPLUS is not set # # Network # - -# -# Socket abstraction layer -# CONFIG_RT_USING_SAL=y CONFIG_SAL_INTERNET_CHECK=y @@ -261,10 +235,6 @@ CONFIG_SAL_INTERNET_CHECK=y CONFIG_SAL_USING_LWIP=y # CONFIG_SAL_USING_POSIX is not set CONFIG_SAL_SOCKETS_NUM=16 - -# -# Network interface device -# CONFIG_RT_USING_NETDEV=y CONFIG_NETDEV_USING_IFCONFIG=y CONFIG_NETDEV_USING_PING=y @@ -274,14 +244,13 @@ CONFIG_NETDEV_USING_AUTO_DEFAULT=y CONFIG_NETDEV_IPV4=1 CONFIG_NETDEV_IPV6=0 # CONFIG_NETDEV_IPV6_SCOPES is not set - -# -# light weight TCP/IP stack -# CONFIG_RT_USING_LWIP=y +# CONFIG_RT_USING_LWIP_LOCAL_VERSION is not set # CONFIG_RT_USING_LWIP141 is not set CONFIG_RT_USING_LWIP203=y # CONFIG_RT_USING_LWIP212 is not set +# CONFIG_RT_USING_LWIP_LATEST is not set +CONFIG_RT_USING_LWIP_VER_NUM=0x20003 # CONFIG_RT_USING_LWIP_IPV6 is not set CONFIG_RT_LWIP_MEM_ALIGNMENT=4 CONFIG_RT_LWIP_IGMP=y @@ -331,18 +300,9 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_RT_LWIP_STATS is not set # CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set CONFIG_RT_LWIP_USING_PING=y +# CONFIG_LWIP_USING_DHCPD is not set # CONFIG_RT_LWIP_DEBUG is not set - -# -# AT commands -# # CONFIG_RT_USING_AT is not set -# CONFIG_LWIP_USING_DHCPD is not set - -# -# VBUS(Virtual Software BUS) -# -# CONFIG_RT_USING_VBUS is not set # # Utilities @@ -354,6 +314,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_RT_USING_UTEST is not set # CONFIG_RT_USING_VAR_EXPORT is not set # CONFIG_RT_USING_RT_LINK is not set +# CONFIG_RT_USING_VBUS is not set # # RT-Thread Utestcases @@ -367,6 +328,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # # IoT - internet of things # +# CONFIG_PKG_USING_LWIP is not set # CONFIG_PKG_USING_LORAWAN_DRIVER is not set # CONFIG_PKG_USING_PAHOMQTT is not set # CONFIG_PKG_USING_UMQTT is not set @@ -383,6 +345,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_FREEMODBUS is not set # CONFIG_PKG_USING_LJSON is not set # CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_SIMPLE_XML is not set # CONFIG_PKG_USING_NANOPB is not set # @@ -422,6 +385,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_JOYLINK is not set # CONFIG_PKG_USING_EZ_IOT_OS is not set # CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set # CONFIG_PKG_USING_OTA_DOWNLOADER is not set # CONFIG_PKG_USING_IPMSG is not set # CONFIG_PKG_USING_LSSDP is not set @@ -629,8 +593,8 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_ARM_2D is not set # CONFIG_PKG_USING_MCUBOOT is not set # CONFIG_PKG_USING_TINYUSB is not set -# CONFIG_PKG_USING_USB_STACK is not set -# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_CHERRYUSB is not set +# CONFIG_PKG_USING_KMULTI_RTIMER is not set # # peripheral libraries and drivers @@ -654,6 +618,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_WM_LIBRARIES is not set # CONFIG_PKG_USING_KENDRYTE_SDK is not set # CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_MULTI_INFRARED is not set # CONFIG_PKG_USING_AGILE_BUTTON is not set # CONFIG_PKG_USING_AGILE_LED is not set # CONFIG_PKG_USING_AT24CXX is not set @@ -710,6 +675,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_SOFT_SERIAL is not set # CONFIG_PKG_USING_MB85RS16 is not set # CONFIG_PKG_USING_CW2015 is not set +# CONFIG_PKG_USING_RFM300 is not set # # AI packages @@ -728,6 +694,10 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # miscellaneous packages # +# +# project laboratory +# + # # samples: kernel and components samples # @@ -760,6 +730,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_CANFESTIVAL is not set # CONFIG_PKG_USING_ZLIB is not set # CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_HEATSHRINK is not set # CONFIG_PKG_USING_DSTR is not set # CONFIG_PKG_USING_TINYFRAME is not set # CONFIG_PKG_USING_KENDRYTE_DEMO is not set @@ -777,6 +748,7 @@ CONFIG_YMODEM_USING_FILE_TRANSFER=y # CONFIG_PKG_USING_DESIGN_PATTERN is not set # CONFIG_PKG_USING_CONTROLLER is not set # CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +# CONFIG_PKG_USING_MFBD is not set CONFIG_BCM2711_SOC=y # @@ -793,6 +765,7 @@ CONFIG_RT_USING_UART0=y # CONFIG_RT_USING_UART4 is not set # CONFIG_RT_USING_UART5 is not set CONFIG_BSP_USING_GIC=y +CONFIG_BSP_USING_GICV2=y CONFIG_BSP_USING_PIN=y CONFIG_BSP_USING_CORETIMER=y # CONFIG_BSP_USING_SYSTIMER is not set diff --git a/bsp/raspberry-pi/raspi4-64/driver/Kconfig b/bsp/raspberry-pi/raspi4-64/driver/Kconfig index 1eaf56faca..ec2a36d289 100644 --- a/bsp/raspberry-pi/raspi4-64/driver/Kconfig +++ b/bsp/raspberry-pi/raspi4-64/driver/Kconfig @@ -31,6 +31,10 @@ menu "Hardware Drivers Config" bool default y + config BSP_USING_GICV2 + bool + default y + config BSP_USING_PIN bool "Using PIN" select RT_USING_PIN diff --git a/bsp/raspberry-pi/raspi4-64/driver/drv_wdt.c b/bsp/raspberry-pi/raspi4-64/driver/drv_wdt.c index 0d2a854ab8..ac7d1addb8 100644 --- a/bsp/raspberry-pi/raspi4-64/driver/drv_wdt.c +++ b/bsp/raspberry-pi/raspi4-64/driver/drv_wdt.c @@ -10,6 +10,8 @@ #include #include "drv_wdt.h" +#include "drv_gpio.h" +#include "mbox.h" #include "raspi4.h" #ifdef BSP_USING_WDT @@ -122,6 +124,48 @@ int rt_hw_wdt_init(void) } INIT_DEVICE_EXPORT(rt_hw_wdt_init); +void poweroff(void) +{ + unsigned long r; + + rt_kprintf("poweroff...\n"); + + /* power off devices one by one */ + for (r = 0; r < 16; ++r) + { + bcm271x_mbox_poweroff_devices(r); + } + + /* power off gpio pins (but not VCC pins) */ + GPIO_REG_GPFSEL0(GPIO_BASE) = 0; + GPIO_REG_GPFSEL1(GPIO_BASE) = 0; + GPIO_REG_GPFSEL2(GPIO_BASE) = 0; + GPIO_REG_GPFSEL3(GPIO_BASE) = 0; + GPIO_REG_GPFSEL4(GPIO_BASE) = 0; + GPIO_REG_GPFSEL5(GPIO_BASE) = 0; + GPIO_REG_GPPUD(GPIO_BASE) = 0; + rt_thread_mdelay(150); + + GPIO_REG_GPPUDCLK0(GPIO_BASE) = 0xffffffff; + GPIO_REG_GPPUDCLK1(GPIO_BASE) = 0xffffffff; + rt_thread_mdelay(150); + + /* flush GPIO setup */ + GPIO_REG_GPPUDCLK0(GPIO_BASE) = 0; + GPIO_REG_GPPUDCLK1(GPIO_BASE) = 0; + + /* power off the SoC (GPU + CPU), partition 63 used to indicate halt */ + r = PM_RSTS; + r &= ~0xfffffaaa; + r |= 0x555; + PM_RSTS |= PM_PASSWORD | r; + PM_WDOG |= PM_PASSWORD | 0x0A; + PM_RSTC |= PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET; + + while (1) {}; +} +MSH_CMD_EXPORT(poweroff, poweroff...); + void reboot(void) { unsigned int r; diff --git a/bsp/raspberry-pi/raspi4-64/driver/mbox.c b/bsp/raspberry-pi/raspi4-64/driver/mbox.c index 6d1c276d78..c497c6365f 100644 --- a/bsp/raspberry-pi/raspi4-64/driver/mbox.c +++ b/bsp/raspberry-pi/raspi4-64/driver/mbox.c @@ -53,6 +53,24 @@ int mbox_call(unsigned char ch, int mmu_enable) return 0; } +int bcm271x_mbox_poweroff_devices(int id) +{ + mbox[0] = 8 * 4; /* length of the message */ + mbox[1] = MBOX_REQUEST; /* this is a request message */ + + mbox[2] = MBOX_TAG_SETPOWER; /* set power state */ + mbox[3] = 8; /* buffer size */ + mbox[4] = 8; /* len */ + + mbox[5] = (unsigned int)id; /* device id */ + mbox[6] = 0; /* bit 0: off, bit 1: no wait */ + + mbox[7] = MBOX_TAG_LAST; + mbox_call(8, MBOX_CH_PROP); + + return 0; +} + int bcm271x_mbox_get_touch(void) { mbox[0] = 8 * 4; // length of the message diff --git a/bsp/raspberry-pi/raspi4-64/driver/mbox.h b/bsp/raspberry-pi/raspi4-64/driver/mbox.h index c13170afba..c3c73c339f 100644 --- a/bsp/raspberry-pi/raspi4-64/driver/mbox.h +++ b/bsp/raspberry-pi/raspi4-64/driver/mbox.h @@ -161,6 +161,7 @@ enum #define PWM_CLK_ID (0x00000000a) int mbox_call(unsigned char ch, int mmu_enable); +int bcm271x_mbox_poweroff_devices(int id); int bcm271x_mbox_get_touch(void); int bcm271x_notify_reboot(void); int bcm271x_notify_xhci_reset(void); diff --git a/bsp/raspberry-pi/raspi4-64/rtconfig.h b/bsp/raspberry-pi/raspi4-64/rtconfig.h index 3091cbfa2e..9d7fa35137 100644 --- a/bsp/raspberry-pi/raspi4-64/rtconfig.h +++ b/bsp/raspberry-pi/raspi4-64/rtconfig.h @@ -56,14 +56,8 @@ #define RT_USING_USER_MAIN #define RT_MAIN_THREAD_STACK_SIZE 4096 #define RT_MAIN_THREAD_PRIORITY 10 - -/* C++ features */ - - -/* Command shell */ - -#define RT_USING_FINSH #define RT_USING_MSH +#define RT_USING_FINSH #define FINSH_USING_MSH #define FINSH_THREAD_NAME "tshell" #define FINSH_THREAD_PRIORITY 20 @@ -75,9 +69,6 @@ #define MSH_USING_BUILT_IN_COMMANDS #define FINSH_USING_DESCRIPTION #define FINSH_ARG_MAX 10 - -/* Device virtual file system */ - #define RT_USING_DFS #define DFS_USING_POSIX #define DFS_USING_WORKDIR @@ -125,7 +116,7 @@ /* Using USB */ -/* POSIX layer and C standard library */ +/* C/C++ and POSIX layer */ #define RT_LIBC_DEFAULT_TIMEZONE 8 @@ -137,9 +128,8 @@ /* Socket is in the 'Network' category */ -/* Network */ -/* Socket abstraction layer */ +/* Network */ #define RT_USING_SAL #define SAL_INTERNET_CHECK @@ -148,9 +138,6 @@ #define SAL_USING_LWIP #define SAL_SOCKETS_NUM 16 - -/* Network interface device */ - #define RT_USING_NETDEV #define NETDEV_USING_IFCONFIG #define NETDEV_USING_PING @@ -158,11 +145,9 @@ #define NETDEV_USING_AUTO_DEFAULT #define NETDEV_IPV4 1 #define NETDEV_IPV6 0 - -/* light weight TCP/IP stack */ - #define RT_USING_LWIP #define RT_USING_LWIP203 +#define RT_USING_LWIP_VER_NUM 0x20003 #define RT_LWIP_MEM_ALIGNMENT 4 #define RT_LWIP_IGMP #define RT_LWIP_ICMP @@ -203,12 +188,6 @@ #define LWIP_NETIF_LOOPBACK 0 #define RT_LWIP_USING_PING -/* AT commands */ - - -/* VBUS(Virtual Software BUS) */ - - /* Utilities */ #define RT_USING_RYM @@ -278,6 +257,8 @@ /* miscellaneous packages */ +/* project laboratory */ + /* samples: kernel and components samples */ @@ -292,6 +273,7 @@ #define BSP_USING_UART #define RT_USING_UART0 #define BSP_USING_GIC +#define BSP_USING_GICV2 #define BSP_USING_PIN #define BSP_USING_CORETIMER #define BSP_USING_WDT diff --git a/bsp/rockchip/rk3568/.config b/bsp/rockchip/rk3568/.config new file mode 100644 index 0000000000..cdd09053ce --- /dev/null +++ b/bsp/rockchip/rk3568/.config @@ -0,0 +1,653 @@ +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Project Configuration +# + +# +# RT-Thread Kernel +# +CONFIG_RT_NAME_MAX=8 +# CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMP is not set +CONFIG_RT_ALIGN_SIZE=4 +# CONFIG_RT_THREAD_PRIORITY_8 is not set +CONFIG_RT_THREAD_PRIORITY_32=y +# CONFIG_RT_THREAD_PRIORITY_256 is not set +CONFIG_RT_THREAD_PRIORITY_MAX=32 +CONFIG_RT_TICK_PER_SECOND=100 +CONFIG_RT_USING_OVERFLOW_CHECK=y +CONFIG_RT_USING_HOOK=y +CONFIG_RT_HOOK_USING_FUNC_PTR=y +CONFIG_RT_USING_IDLE_HOOK=y +CONFIG_RT_IDLE_HOOK_LIST_SIZE=4 +CONFIG_IDLE_THREAD_STACK_SIZE=4096 +CONFIG_RT_USING_TIMER_SOFT=y +CONFIG_RT_TIMER_THREAD_PRIO=4 +CONFIG_RT_TIMER_THREAD_STACK_SIZE=4096 + +# +# kservice optimization +# +# CONFIG_RT_KSERVICE_USING_STDLIB is not set +# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set +# CONFIG_RT_USING_TINY_FFS is not set +# CONFIG_RT_PRINTF_LONGLONG is not set +CONFIG_RT_DEBUG=y +CONFIG_RT_DEBUG_COLOR=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set + +# +# Inter-Thread communication +# +CONFIG_RT_USING_SEMAPHORE=y +CONFIG_RT_USING_MUTEX=y +CONFIG_RT_USING_EVENT=y +CONFIG_RT_USING_MAILBOX=y +CONFIG_RT_USING_MESSAGEQUEUE=y +# CONFIG_RT_USING_SIGNALS is not set + +# +# Memory Management +# +CONFIG_RT_USING_MEMPOOL=y +CONFIG_RT_USING_SMALL_MEM=y +# CONFIG_RT_USING_SLAB is not set +CONFIG_RT_USING_MEMHEAP=y +CONFIG_RT_MEMHEAP_FAST_MODE=y +# CONFIG_RT_MEMHEAP_BSET_MODE is not set +CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y +# CONFIG_RT_USING_MEMHEAP_AS_HEAP is not set +# CONFIG_RT_USING_SLAB_AS_HEAP is not set +# CONFIG_RT_USING_USERHEAP is not set +# CONFIG_RT_USING_NOHEAP is not set +CONFIG_RT_USING_MEMTRACE=y +# CONFIG_RT_USING_HEAP_ISR is not set +CONFIG_RT_USING_HEAP=y + +# +# Kernel Device Object +# +CONFIG_RT_USING_DEVICE=y +CONFIG_RT_USING_DEVICE_OPS=y +# CONFIG_RT_USING_INTERRUPT_INFO is not set +CONFIG_RT_USING_CONSOLE=y +CONFIG_RT_CONSOLEBUF_SIZE=128 +CONFIG_RT_CONSOLE_DEVICE_NAME="uart2" +CONFIG_RT_VER_NUM=0x40100 +CONFIG_ARCH_CPU_64BIT=y +# CONFIG_RT_USING_CPU_FFS is not set +CONFIG_ARCH_ARMV8=y +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set + +# +# RT-Thread Components +# +CONFIG_RT_USING_COMPONENTS_INIT=y +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=8192 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 +# CONFIG_RT_USING_LEGACY is not set +CONFIG_RT_USING_MSH=y +CONFIG_RT_USING_FINSH=y +CONFIG_FINSH_USING_MSH=y +CONFIG_FINSH_THREAD_NAME="tshell" +CONFIG_FINSH_THREAD_PRIORITY=20 +CONFIG_FINSH_THREAD_STACK_SIZE=4096 +CONFIG_FINSH_USING_HISTORY=y +CONFIG_FINSH_HISTORY_LINES=5 +CONFIG_FINSH_USING_SYMTAB=y +CONFIG_FINSH_CMD_SIZE=80 +CONFIG_MSH_USING_BUILT_IN_COMMANDS=y +CONFIG_FINSH_USING_DESCRIPTION=y +# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set +# CONFIG_FINSH_USING_AUTH is not set +CONFIG_FINSH_ARG_MAX=10 +# CONFIG_RT_USING_DFS is not set +# CONFIG_RT_USING_FAL is not set + +# +# Device Drivers +# +CONFIG_RT_USING_DEVICE_IPC=y +# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set +CONFIG_RT_USING_SERIAL=y +CONFIG_RT_USING_SERIAL_V1=y +# CONFIG_RT_USING_SERIAL_V2 is not set +# CONFIG_RT_SERIAL_USING_DMA is not set +CONFIG_RT_SERIAL_RB_BUFSZ=64 +# CONFIG_RT_USING_CAN is not set +# CONFIG_RT_USING_HWTIMER is not set +# CONFIG_RT_USING_CPUTIME is not set +# CONFIG_RT_USING_I2C is not set +# CONFIG_RT_USING_PHY is not set +CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_ADC is not set +# CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_PWM is not set +# CONFIG_RT_USING_MTD_NOR is not set +# CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_RTC is not set +# CONFIG_RT_USING_SDIO is not set +# CONFIG_RT_USING_SPI is not set +# CONFIG_RT_USING_WDT is not set +# CONFIG_RT_USING_AUDIO is not set +# CONFIG_RT_USING_SENSOR is not set +# CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_HWCRYPTO is not set +# CONFIG_RT_USING_PULSE_ENCODER is not set +# CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_WIFI is not set + +# +# Using USB +# +# CONFIG_RT_USING_USB is not set +# CONFIG_RT_USING_USB_HOST is not set +# CONFIG_RT_USING_USB_DEVICE is not set + +# +# C/C++ and POSIX layer +# +CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 + +# +# POSIX (Portable Operating System Interface) layer +# +# CONFIG_RT_USING_POSIX_FS is not set +# CONFIG_RT_USING_POSIX_DELAY is not set +# CONFIG_RT_USING_POSIX_CLOCK is not set +# CONFIG_RT_USING_POSIX_TIMER is not set +# CONFIG_RT_USING_PTHREADS is not set +# CONFIG_RT_USING_MODULE is not set + +# +# Interprocess Communication (IPC) +# +# CONFIG_RT_USING_POSIX_PIPE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set +# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set + +# +# Socket is in the 'Network' category +# +# CONFIG_RT_USING_CPLUSPLUS is not set + +# +# Network +# +# CONFIG_RT_USING_SAL is not set +# CONFIG_RT_USING_NETDEV is not set +# CONFIG_RT_USING_LWIP is not set +# CONFIG_RT_USING_AT is not set + +# +# Utilities +# +# CONFIG_RT_USING_RYM is not set +# CONFIG_RT_USING_ULOG is not set +# CONFIG_RT_USING_UTEST is not set +# CONFIG_RT_USING_VAR_EXPORT is not set +# CONFIG_RT_USING_RT_LINK is not set +# CONFIG_RT_USING_VBUS is not set + +# +# RT-Thread Utestcases +# +# CONFIG_RT_USING_UTESTCASES is not set + +# +# RT-Thread online packages +# + +# +# IoT - internet of things +# +# CONFIG_PKG_USING_LWIP is not set +# CONFIG_PKG_USING_LORAWAN_DRIVER is not set +# CONFIG_PKG_USING_PAHOMQTT is not set +# CONFIG_PKG_USING_UMQTT is not set +# CONFIG_PKG_USING_WEBCLIENT is not set +# CONFIG_PKG_USING_WEBNET is not set +# CONFIG_PKG_USING_MONGOOSE is not set +# CONFIG_PKG_USING_MYMQTT is not set +# CONFIG_PKG_USING_KAWAII_MQTT is not set +# CONFIG_PKG_USING_BC28_MQTT is not set +# CONFIG_PKG_USING_WEBTERMINAL is not set +# CONFIG_PKG_USING_CJSON is not set +# CONFIG_PKG_USING_JSMN is not set +# CONFIG_PKG_USING_LIBMODBUS is not set +# CONFIG_PKG_USING_FREEMODBUS is not set +# CONFIG_PKG_USING_LJSON is not set +# CONFIG_PKG_USING_EZXML is not set +# CONFIG_PKG_USING_SIMPLE_XML is not set +# CONFIG_PKG_USING_NANOPB is not set + +# +# Wi-Fi +# + +# +# Marvell WiFi +# +# CONFIG_PKG_USING_WLANMARVELL is not set + +# +# Wiced WiFi +# +# CONFIG_PKG_USING_WLAN_WICED is not set +# CONFIG_PKG_USING_RW007 is not set +# CONFIG_PKG_USING_COAP is not set +# CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_CMUX is not set +# CONFIG_PKG_USING_PPP_DEVICE is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_ATSRV_SOCKET is not set +# CONFIG_PKG_USING_WIZNET is not set +# CONFIG_PKG_USING_ZB_COORDINATOR is not set + +# +# IoT Cloud +# +# CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set +# CONFIG_PKG_USING_TENCENT_IOT_EXPLORER is not set +# CONFIG_PKG_USING_JIOT-C-SDK is not set +# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set +# CONFIG_PKG_USING_JOYLINK is not set +# CONFIG_PKG_USING_EZ_IOT_OS is not set +# CONFIG_PKG_USING_NIMBLE is not set +# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set +# CONFIG_PKG_USING_OTA_DOWNLOADER is not set +# CONFIG_PKG_USING_IPMSG is not set +# CONFIG_PKG_USING_LSSDP is not set +# CONFIG_PKG_USING_AIRKISS_OPEN is not set +# CONFIG_PKG_USING_LIBRWS is not set +# CONFIG_PKG_USING_TCPSERVER is not set +# CONFIG_PKG_USING_PROTOBUF_C is not set +# CONFIG_PKG_USING_DLT645 is not set +# CONFIG_PKG_USING_QXWZ is not set +# CONFIG_PKG_USING_SMTP_CLIENT is not set +# CONFIG_PKG_USING_ABUP_FOTA is not set +# CONFIG_PKG_USING_LIBCURL2RTT is not set +# CONFIG_PKG_USING_CAPNP is not set +# CONFIG_PKG_USING_RT_CJSON_TOOLS is not set +# CONFIG_PKG_USING_AGILE_TELNET is not set +# CONFIG_PKG_USING_NMEALIB is not set +# CONFIG_PKG_USING_AGILE_JSMN is not set +# CONFIG_PKG_USING_PDULIB is not set +# CONFIG_PKG_USING_BTSTACK is not set +# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set +# CONFIG_PKG_USING_WAYZ_IOTKIT is not set +# CONFIG_PKG_USING_MAVLINK is not set +# CONFIG_PKG_USING_RAPIDJSON is not set +# CONFIG_PKG_USING_BSAL is not set +# CONFIG_PKG_USING_AGILE_MODBUS is not set +# CONFIG_PKG_USING_AGILE_FTP is not set +# CONFIG_PKG_USING_EMBEDDEDPROTO is not set +# CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_LORA_PKT_FWD is not set +# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set +# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set +# CONFIG_PKG_USING_HM is not set +# CONFIG_PKG_USING_SMALL_MODBUS is not set +# CONFIG_PKG_USING_NET_SERVER is not set + +# +# security packages +# +# CONFIG_PKG_USING_MBEDTLS is not set +# CONFIG_PKG_USING_LIBSODIUM is not set +# CONFIG_PKG_USING_TINYCRYPT is not set +# CONFIG_PKG_USING_TFM is not set +# CONFIG_PKG_USING_YD_CRYPTO is not set + +# +# language packages +# +# CONFIG_PKG_USING_LUATOS_SOC is not set +# CONFIG_PKG_USING_LUA is not set +# CONFIG_PKG_USING_JERRYSCRIPT is not set +# CONFIG_PKG_USING_MICROPYTHON is not set +# CONFIG_PKG_USING_PIKASCRIPT is not set + +# +# multimedia packages +# + +# +# LVGL: powerful and easy-to-use embedded GUI library +# +# CONFIG_PKG_USING_LVGL is not set +# CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set + +# +# u8g2: a monochrome graphic library +# +# CONFIG_PKG_USING_U8G2_OFFICIAL is not set +# CONFIG_PKG_USING_U8G2 is not set +# CONFIG_PKG_USING_OPENMV is not set +# CONFIG_PKG_USING_MUPDF is not set +# CONFIG_PKG_USING_STEMWIN is not set +# CONFIG_PKG_USING_WAVPLAYER is not set +# CONFIG_PKG_USING_TJPGD is not set +# CONFIG_PKG_USING_PDFGEN is not set +# CONFIG_PKG_USING_HELIX is not set +# CONFIG_PKG_USING_AZUREGUIX is not set +# CONFIG_PKG_USING_TOUCHGFX2RTT is not set +# CONFIG_PKG_USING_NUEMWIN is not set +# CONFIG_PKG_USING_MP3PLAYER is not set +# CONFIG_PKG_USING_TINYJPEG is not set +# CONFIG_PKG_USING_UGUI is not set + +# +# PainterEngine: A cross-platform graphics application framework written in C language +# +# CONFIG_PKG_USING_PAINTERENGINE is not set +# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set +# CONFIG_PKG_USING_MCURSES is not set +# CONFIG_PKG_USING_TERMBOX is not set +# CONFIG_PKG_USING_VT100 is not set +# CONFIG_PKG_USING_QRCODE is not set + +# +# tools packages +# +# CONFIG_PKG_USING_CMBACKTRACE is not set +# CONFIG_PKG_USING_EASYFLASH is not set +# CONFIG_PKG_USING_EASYLOGGER is not set +# CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_SEGGER_RTT is not set +# CONFIG_PKG_USING_RDB is not set +# CONFIG_PKG_USING_ULOG_EASYFLASH is not set +# CONFIG_PKG_USING_ULOG_FILE is not set +# CONFIG_PKG_USING_LOGMGR is not set +# CONFIG_PKG_USING_ADBD is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_DHRYSTONE is not set +# CONFIG_PKG_USING_MEMORYPERF is not set +# CONFIG_PKG_USING_NR_MICRO_SHELL is not set +# CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set +# CONFIG_PKG_USING_LUNAR_CALENDAR is not set +# CONFIG_PKG_USING_BS8116A is not set +# CONFIG_PKG_USING_GPS_RMC is not set +# CONFIG_PKG_USING_URLENCODE is not set +# CONFIG_PKG_USING_UMCN is not set +# CONFIG_PKG_USING_LWRB2RTT is not set +# CONFIG_PKG_USING_CPU_USAGE is not set +# CONFIG_PKG_USING_GBK2UTF8 is not set +# CONFIG_PKG_USING_VCONSOLE is not set +# CONFIG_PKG_USING_KDB is not set +# CONFIG_PKG_USING_WAMR is not set +# CONFIG_PKG_USING_MICRO_XRCE_DDS_CLIENT is not set +# CONFIG_PKG_USING_LWLOG is not set +# CONFIG_PKG_USING_ANV_TRACE is not set +# CONFIG_PKG_USING_ANV_MEMLEAK is not set +# CONFIG_PKG_USING_ANV_TESTSUIT is not set +# CONFIG_PKG_USING_ANV_BENCH is not set +# CONFIG_PKG_USING_DEVMEM is not set +# CONFIG_PKG_USING_REGEX is not set +# CONFIG_PKG_USING_MEM_SANDBOX is not set +# CONFIG_PKG_USING_SOLAR_TERMS is not set +# CONFIG_PKG_USING_GAN_ZHI is not set +# CONFIG_PKG_USING_FDT is not set + +# +# system packages +# + +# +# enhanced kernel services +# +# CONFIG_PKG_USING_RT_MEMCPY_CM is not set +# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set +# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set + +# +# POSIX extension functions +# +# CONFIG_PKG_USING_POSIX_GETLINE is not set +# CONFIG_PKG_USING_POSIX_WCWIDTH is not set +# CONFIG_PKG_USING_POSIX_ITOA is not set +# CONFIG_PKG_USING_POSIX_STRINGS is not set + +# +# acceleration: Assembly language or algorithmic acceleration packages +# +# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set +# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set +# CONFIG_PKG_USING_QFPLIB_M3 is not set + +# +# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard +# +# CONFIG_PKG_USING_CMSIS_5 is not set +# CONFIG_PKG_USING_CMSIS_RTOS2 is not set + +# +# Micrium: Micrium software products porting for RT-Thread +# +# CONFIG_PKG_USING_UCOSIII_WRAPPER is not set +# CONFIG_PKG_USING_UCOSII_WRAPPER is not set +# CONFIG_PKG_USING_UC_CRC is not set +# CONFIG_PKG_USING_UC_CLK is not set +# CONFIG_PKG_USING_UC_COMMON is not set +# CONFIG_PKG_USING_UC_MODBUS is not set +# CONFIG_RT_USING_ARDUINO is not set +# CONFIG_PKG_USING_GUIENGINE is not set +# CONFIG_PKG_USING_CAIRO is not set +# CONFIG_PKG_USING_PIXMAN is not set +# CONFIG_PKG_USING_PARTITION is not set +# CONFIG_PKG_USING_FAL is not set +# CONFIG_PKG_USING_FLASHDB is not set +# CONFIG_PKG_USING_SQLITE is not set +# CONFIG_PKG_USING_RTI is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set +# CONFIG_PKG_USING_LITTLEFS is not set +# CONFIG_PKG_USING_DFS_JFFS2 is not set +# CONFIG_PKG_USING_DFS_UFFS is not set +# CONFIG_PKG_USING_LWEXT4 is not set +# CONFIG_PKG_USING_THREAD_POOL is not set +# CONFIG_PKG_USING_ROBOTS is not set +# CONFIG_PKG_USING_EV is not set +# CONFIG_PKG_USING_SYSWATCH is not set +# CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set +# CONFIG_PKG_USING_PLCCORE is not set +# CONFIG_PKG_USING_RAMDISK is not set +# CONFIG_PKG_USING_MININI is not set +# CONFIG_PKG_USING_QBOOT is not set +# CONFIG_PKG_USING_PPOOL is not set +# CONFIG_PKG_USING_OPENAMP is not set +# CONFIG_PKG_USING_LPM is not set +# CONFIG_PKG_USING_TLSF is not set +# CONFIG_PKG_USING_EVENT_RECORDER is not set +# CONFIG_PKG_USING_ARM_2D is not set +# CONFIG_PKG_USING_MCUBOOT is not set +# CONFIG_PKG_USING_TINYUSB is not set +# CONFIG_PKG_USING_CHERRYUSB is not set +# CONFIG_PKG_USING_KMULTI_RTIMER is not set + +# +# peripheral libraries and drivers +# +# CONFIG_PKG_USING_SENSORS_DRIVERS is not set +# CONFIG_PKG_USING_REALTEK_AMEBA is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_SHT3X is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_BUTTON is not set +# CONFIG_PKG_USING_PCF8574 is not set +# CONFIG_PKG_USING_SX12XX is not set +# CONFIG_PKG_USING_SIGNAL_LED is not set +# CONFIG_PKG_USING_LEDBLINK is not set +# CONFIG_PKG_USING_LITTLED is not set +# CONFIG_PKG_USING_LKDGUI is not set +# CONFIG_PKG_USING_NRF5X_SDK is not set +# CONFIG_PKG_USING_NRFX is not set +# CONFIG_PKG_USING_WM_LIBRARIES is not set +# CONFIG_PKG_USING_KENDRYTE_SDK is not set +# CONFIG_PKG_USING_INFRARED is not set +# CONFIG_PKG_USING_MULTI_INFRARED is not set +# CONFIG_PKG_USING_AGILE_BUTTON is not set +# CONFIG_PKG_USING_AGILE_LED is not set +# CONFIG_PKG_USING_AT24CXX is not set +# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set +# CONFIG_PKG_USING_AD7746 is not set +# CONFIG_PKG_USING_PCA9685 is not set +# CONFIG_PKG_USING_I2C_TOOLS is not set +# CONFIG_PKG_USING_NRF24L01 is not set +# CONFIG_PKG_USING_TOUCH_DRIVERS is not set +# CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_RPLIDAR is not set +# CONFIG_PKG_USING_AS608 is not set +# CONFIG_PKG_USING_RC522 is not set +# CONFIG_PKG_USING_WS2812B is not set +# CONFIG_PKG_USING_EMBARC_BSP is not set +# CONFIG_PKG_USING_EXTERN_RTC_DRIVERS is not set +# CONFIG_PKG_USING_MULTI_RTIMER is not set +# CONFIG_PKG_USING_MAX7219 is not set +# CONFIG_PKG_USING_BEEP is not set +# CONFIG_PKG_USING_EASYBLINK is not set +# CONFIG_PKG_USING_PMS_SERIES is not set +# CONFIG_PKG_USING_CAN_YMODEM is not set +# CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set +# CONFIG_PKG_USING_QLED is not set +# CONFIG_PKG_USING_PAJ7620 is not set +# CONFIG_PKG_USING_AGILE_CONSOLE is not set +# CONFIG_PKG_USING_LD3320 is not set +# CONFIG_PKG_USING_WK2124 is not set +# CONFIG_PKG_USING_LY68L6400 is not set +# CONFIG_PKG_USING_DM9051 is not set +# CONFIG_PKG_USING_SSD1306 is not set +# CONFIG_PKG_USING_QKEY is not set +# CONFIG_PKG_USING_RS485 is not set +# CONFIG_PKG_USING_RS232 is not set +# CONFIG_PKG_USING_NES is not set +# CONFIG_PKG_USING_VIRTUAL_SENSOR is not set +# CONFIG_PKG_USING_VDEVICE is not set +# CONFIG_PKG_USING_SGM706 is not set +# CONFIG_PKG_USING_STM32WB55_SDK is not set +# CONFIG_PKG_USING_RDA58XX is not set +# CONFIG_PKG_USING_LIBNFC is not set +# CONFIG_PKG_USING_MFOC is not set +# CONFIG_PKG_USING_TMC51XX is not set +# CONFIG_PKG_USING_TCA9534 is not set +# CONFIG_PKG_USING_KOBUKI is not set +# CONFIG_PKG_USING_ROSSERIAL is not set +# CONFIG_PKG_USING_MICRO_ROS is not set +# CONFIG_PKG_USING_MCP23008 is not set +# CONFIG_PKG_USING_BLUETRUM_SDK is not set +# CONFIG_PKG_USING_MISAKA_AT24CXX is not set +# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set +# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set +# CONFIG_PKG_USING_BL_MCU_SDK is not set +# CONFIG_PKG_USING_SOFT_SERIAL is not set +# CONFIG_PKG_USING_MB85RS16 is not set +# CONFIG_PKG_USING_CW2015 is not set +# CONFIG_PKG_USING_RFM300 is not set + +# +# AI packages +# +# CONFIG_PKG_USING_LIBANN is not set +# CONFIG_PKG_USING_NNOM is not set +# CONFIG_PKG_USING_ONNX_BACKEND is not set +# CONFIG_PKG_USING_ONNX_PARSER is not set +# CONFIG_PKG_USING_TENSORFLOWLITEMICRO is not set +# CONFIG_PKG_USING_ELAPACK is not set +# CONFIG_PKG_USING_ULAPACK is not set +# CONFIG_PKG_USING_QUEST is not set +# CONFIG_PKG_USING_NAXOS is not set + +# +# miscellaneous packages +# + +# +# project laboratory +# + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set + +# +# entertainment: terminal games and other interesting software packages +# +# CONFIG_PKG_USING_CMATRIX is not set +# CONFIG_PKG_USING_SL is not set +# CONFIG_PKG_USING_CAL is not set +# CONFIG_PKG_USING_ACLOCK is not set +# CONFIG_PKG_USING_THREES is not set +# CONFIG_PKG_USING_2048 is not set +# CONFIG_PKG_USING_SNAKE is not set +# CONFIG_PKG_USING_TETRIS is not set +# CONFIG_PKG_USING_DONUT is not set +# CONFIG_PKG_USING_COWSAY is not set +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set +# CONFIG_PKG_USING_FASTLZ is not set +# CONFIG_PKG_USING_MINILZO is not set +# CONFIG_PKG_USING_QUICKLZ is not set +# CONFIG_PKG_USING_LZMA is not set +# CONFIG_PKG_USING_MULTIBUTTON is not set +# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set +# CONFIG_PKG_USING_CANFESTIVAL is not set +# CONFIG_PKG_USING_ZLIB is not set +# CONFIG_PKG_USING_MINIZIP is not set +# CONFIG_PKG_USING_HEATSHRINK is not set +# CONFIG_PKG_USING_DSTR is not set +# CONFIG_PKG_USING_TINYFRAME is not set +# CONFIG_PKG_USING_KENDRYTE_DEMO is not set +# CONFIG_PKG_USING_DIGITALCTRL is not set +# CONFIG_PKG_USING_UPACKER is not set +# CONFIG_PKG_USING_UPARAM is not set +# CONFIG_PKG_USING_HELLO is not set +# CONFIG_PKG_USING_VI is not set +# CONFIG_PKG_USING_KI is not set +# CONFIG_PKG_USING_ARMv7M_DWT is not set +# CONFIG_PKG_USING_UKAL is not set +# CONFIG_PKG_USING_CRCLIB is not set +# CONFIG_PKG_USING_LWGPS is not set +# CONFIG_PKG_USING_STATE_MACHINE is not set +# CONFIG_PKG_USING_DESIGN_PATTERN is not set +# CONFIG_PKG_USING_CONTROLLER is not set +# CONFIG_PKG_USING_PHASE_LOCKED_LOOP is not set +# CONFIG_PKG_USING_MFBD is not set +CONFIG_SOC_RK3568=y + +# +# Hardware Drivers Config +# +CONFIG_BSP_USING_UART=y +# CONFIG_RT_USING_UART0 is not set +# CONFIG_RT_USING_UART1 is not set +CONFIG_RT_USING_UART2=y +# CONFIG_RT_USING_UART3 is not set +# CONFIG_RT_USING_UART4 is not set +# CONFIG_RT_USING_UART5 is not set +# CONFIG_RT_USING_UART6 is not set +# CONFIG_RT_USING_UART7 is not set +# CONFIG_RT_USING_UART8 is not set +# CONFIG_RT_USING_UART9 is not set +CONFIG_BSP_USING_GIC=y +CONFIG_BSP_USING_GICV3=y diff --git a/bsp/rockchip/rk3568/Kconfig b/bsp/rockchip/rk3568/Kconfig new file mode 100644 index 0000000000..b784130e0a --- /dev/null +++ b/bsp/rockchip/rk3568/Kconfig @@ -0,0 +1,29 @@ +mainmenu "RT-Thread Project Configuration" + +config BSP_DIR + string + option env="BSP_ROOT" + default "." + +config RTT_DIR + string + option env="RTT_ROOT" + default "../../.." + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" + +config SOC_RK3568 + bool + select ARCH_ARMV8 + select ARCH_CPU_64BIT + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + default y + +source "$BSP_DIR/driver/Kconfig" diff --git a/bsp/rockchip/rk3568/README.md b/bsp/rockchip/rk3568/README.md new file mode 100644 index 0000000000..6522e5a738 --- /dev/null +++ b/bsp/rockchip/rk3568/README.md @@ -0,0 +1,55 @@ +# RK3568 BSP Introduction + +[中文页](README_zh.md) | English + +## 1. Introduction + +RK3568 is a general-purpose SOC, quad-core 64-bit Cortex-A55 processor, with 22nm lithography process, has frequency up to 2.0GHz and Mali G52 GPU, support 4K decoding and 1080P encoding. Support mangy interfaces such as SATA/PCIE/USB3.0, an 0.8T NPU for lightweight AI applications. Support dual Gigabit Ethernet ports, LPDDR4 memory, etc. + +This project ported RT-Thread on RK3568, you can use the RADXA ROCK 3A version of the RK3568 in low-priced, which can even replace the Raspberry Pi 4B. + +## 2. Compiling + +Usage ARM Developer GNU ToolChain, it support Linux and Windows: +``` +https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/ +``` +Download the `xxx-aarch64-none-elf` of x86_64 hosted platform, set the `RTT_EXEC_PATH` is system environment after decompress the binary. + +Enter directory `rt-thread/bsp/qemu-virt64-aarch64` and input: +``` +scons +``` + +## 3. Execution + +RK3568 has different Kernel install methods according to different boardsit, recommend to install into the SD card: ([Official](https://wiki.t-firefly.com/en/ROC-RK3568-PC/hardware_doc.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/install/microSD)). + +After install Kernel, storage the `rtthread.bin` to EFI partition (the second partition), and add this line in the front of `boot.cmd` in this partition: +```shell +fatload mmc 1:1 0x208000 /rtthread.bin;dcache flush;go 0x208000 +``` +After modifying the script, build a binary script `boot.scr ` in this partition: +```shell +# Install the uboot-mkimage package on Linux, or use MSYS2 to install the u-boot-tools package on Windows +mkimage -C none -A arm -T script -d boot.cmd boot.scr +``` + +According to different boards, the serial port can support up to UART0~9, this project uses UART2 ([Official](https://wiki.t-firefly.com/en/ROC-RK3568-PC/debug.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/dev/serial-console)) by default, the baud rate is 1500000, please make sure that the serial port used supports this baud rate. + +``` +heap: [0x002663f0 - 0x042663f0] + + \ | / +- RT - Thread Operating System + / | \ 4.1.0 build Mar 19 2022 17:17:29 + 2006 - 2022 Copyright by RT-Thread team +Hi, this is RT-Thread!! +msh /> +``` + +## 4. Condition + +| Driver | Condition | Remark | +| ------ | --------- | ------ | +| UART | Support | UART0~9 | diff --git a/bsp/rockchip/rk3568/README_zh.md b/bsp/rockchip/rk3568/README_zh.md new file mode 100644 index 0000000000..e4ed2bf4a6 --- /dev/null +++ b/bsp/rockchip/rk3568/README_zh.md @@ -0,0 +1,56 @@ +# RK3568 板级支持包说明 + +中文页 | [English](README.md) + +## 1. 简介 + +RK3568 是一款定位中高端的通用型 SOC,采用 22nm 制程工艺,集成四核 2GHz,Cortex-A55 架构和 Mali G52 GPU,支持 4K 解码和 1080P 编码。支持 SATA/PCIE/USB3.0 等各类型外围接口,内置独立的 0.8T NPU,可用于轻量级 AI 应用。支持双千兆以太网口,LPDDR4 内存等。 + +这份 RT-Thread BSP是针对 RK3568 的一份移植。开发者可选择使用 RADXA ROCK 3A 版本的 RK3568 廉价体验,其甚至可超量替代树莓派4B。 + +## 2. 编译说明 + +建议使用ARM Developer GNU交叉编译工具链,目前支持Linux/Windows平台: +``` +https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/ +``` +下载x86_64 Hosted平台下载对应的`xxx-aarch64-none-elf`二进制包,解压后设置`RTT_EXEC_PATH`环境变量为该编译器的bin目录下即可。 + +进入到`rt-thread/bsp/rockchip/rk3568`目录进行输入: +``` +scons +``` +可以看到正常生成`rtthread.elf`与`rtthread.bin`文件。 + +## 3. 执行 + +RK3568 根据不同的开发板实现有不同的 Kernel 烧写方式,推荐烧录进 SD 卡:([官方板](https://wiki.t-firefly.com/zh_CN/ROC-RK3568-PC/hardware_doc.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/install/microSD))。 + +在烧写完 Kernel 后,将`rtthread.bin`放入 EFI 分区(第二分区),并在该分区的`boot.cmd`最前面中添加如下行: +```shell +fatload mmc 1:1 0x208000 /rtthread.bin;dcache flush;go 0x208000 +``` +修改脚本后,在该分区生成二进制脚本`boot.scr`: +```shell +# Linux 下安装 uboot-mkimage 软件包,Windows 下使用 MSYS2 安装 u-boot-tools 软件包 +mkimage -C none -A arm -T script -d boot.cmd boot.scr +``` + +根据不同的开发板实现串口最多可支持到 UART0~9,本工程默认使用 UART2([官方板](https://wiki.t-firefly.com/zh_CN/ROC-RK3568-PC/debug.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/dev/serial-console)),波特率 1500000,请确保使用的串口支持该波特率。 + +``` +heap: [0x002663f0 - 0x042663f0] + + \ | / +- RT - Thread Operating System + / | \ 4.1.0 build Mar 19 2022 17:17:29 + 2006 - 2022 Copyright by RT-Thread team +Hi, this is RT-Thread!! +msh /> +``` + +## 4.支持情况 + +| 驱动 | 支持情况 | 备注 | +| ------ | ---- | :------: | +| UART | 支持 | UART0~9 | diff --git a/bsp/rockchip/rk3568/SConscript b/bsp/rockchip/rk3568/SConscript new file mode 100644 index 0000000000..744d8d7821 --- /dev/null +++ b/bsp/rockchip/rk3568/SConscript @@ -0,0 +1,14 @@ +# for module compiling +import os +from building import * + +cwd = GetCurrentDir() +objs = [] +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) + +Return('objs') diff --git a/bsp/rockchip/rk3568/SConstruct b/bsp/rockchip/rk3568/SConstruct new file mode 100644 index 0000000000..ec6fe0187f --- /dev/null +++ b/bsp/rockchip/rk3568/SConstruct @@ -0,0 +1,29 @@ +import os +import sys +import rtconfig + +from rtconfig import RTT_ROOT + +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * + +TARGET = 'rtthread.' + rtconfig.TARGET_EXT + +DefaultEnvironment(tools=[]) +env = Environment(tools = ['mingw'], + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) +env.PrependENVPath('PATH', rtconfig.EXEC_PATH) +env['ASCOM'] = env['ASPPCOM'] + +Export('RTT_ROOT') +Export('rtconfig') + +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT, has_libcpu = False) + +# make a building +DoBuilding(TARGET, objs) diff --git a/bsp/rockchip/rk3568/applications/SConscript b/bsp/rockchip/rk3568/applications/SConscript new file mode 100644 index 0000000000..c583d3016e --- /dev/null +++ b/bsp/rockchip/rk3568/applications/SConscript @@ -0,0 +1,9 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') +CPPPATH = [cwd] + +group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/rockchip/rk3568/applications/main.c b/bsp/rockchip/rk3568/applications/main.c new file mode 100644 index 0000000000..780e49d091 --- /dev/null +++ b/bsp/rockchip/rk3568/applications/main.c @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-5-30 Bernard the first version + */ + +#include + +int main(int argc, char** argv) +{ + rt_kprintf("Hi, this is RT-Thread!!\n"); + + return 0; +} diff --git a/bsp/rockchip/rk3568/driver/Kconfig b/bsp/rockchip/rk3568/driver/Kconfig new file mode 100644 index 0000000000..55041eba5b --- /dev/null +++ b/bsp/rockchip/rk3568/driver/Kconfig @@ -0,0 +1,58 @@ +menu "Hardware Drivers Config" + + menuconfig BSP_USING_UART + bool "Using UART" + select RT_USING_SERIAL + default y + + if BSP_USING_UART + config RT_USING_UART0 + bool "Enable UART 0" + default n + + config RT_USING_UART1 + bool "Enable UART 1" + default n + + config RT_USING_UART2 + bool "Enable UART 2" + default y + + config RT_USING_UART3 + bool "Enable UART 3" + default n + + config RT_USING_UART4 + bool "Enable UART 4" + default n + + config RT_USING_UART5 + bool "Enable UART 5" + default n + + config RT_USING_UART6 + bool "Enable UART 6" + default n + + config RT_USING_UART7 + bool "Enable UART 7" + default n + + config RT_USING_UART8 + bool "Enable UART 8" + default n + + config RT_USING_UART9 + bool "Enable UART 9" + default n + endif + + config BSP_USING_GIC + bool + default y + + config BSP_USING_GICV3 + bool + default y + +endmenu diff --git a/bsp/rockchip/rk3568/driver/SConscript b/bsp/rockchip/rk3568/driver/SConscript new file mode 100644 index 0000000000..17f80c100b --- /dev/null +++ b/bsp/rockchip/rk3568/driver/SConscript @@ -0,0 +1,19 @@ +# RT-Thread building script for component + +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +list = os.listdir(cwd) +CPPPATH = [cwd] +objs = [] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) +objs = objs + group + +Return('objs') diff --git a/bsp/rockchip/rk3568/driver/board.c b/bsp/rockchip/rk3568/driver/board.c new file mode 100644 index 0000000000..42e112745d --- /dev/null +++ b/bsp/rockchip/rk3568/driver/board.c @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-3-08 GuEe-GUI the first version + */ + +#include +#include + +#include +#include +#include +#include +#include +#include + +#include +#include + +struct mem_desc platform_mem_desc[] = +{ + {0x200000, 0x80000000, 0x200000, NORMAL_MEM}, + {UART0_MMIO_BASE, UART0_MMIO_BASE + 0x10000, UART0_MMIO_BASE, DEVICE_MEM}, + {UART1_MMIO_BASE, UART1_MMIO_BASE + 0x90000, UART1_MMIO_BASE, DEVICE_MEM}, + {GIC_PL600_DISTRIBUTOR_PPTR, GIC_PL600_DISTRIBUTOR_PPTR + 0x10000, GIC_PL600_DISTRIBUTOR_PPTR, DEVICE_MEM}, + {GIC_PL600_REDISTRIBUTOR_PPTR, GIC_PL600_REDISTRIBUTOR_PPTR + 0xc0000, GIC_PL600_REDISTRIBUTOR_PPTR, DEVICE_MEM}, +}; + +const rt_uint32_t platform_mem_desc_size = sizeof(platform_mem_desc) / sizeof(platform_mem_desc[0]); + +void idle_wfi(void) +{ + __asm__ volatile ("wfi"); +} + +void rt_hw_board_init(void) +{ + rt_hw_init_mmu_table(platform_mem_desc, platform_mem_desc_size); + rt_hw_mmu_init(); + + /* initialize hardware interrupt */ + rt_hw_interrupt_init(); + /* initialize uart */ + rt_hw_uart_init(); + /* initialize timer for os tick */ + rt_hw_gtimer_init(); + + rt_thread_idle_sethook(idle_wfi); + + arm_psci_init(PSCI_METHOD_SMC, RT_NULL, RT_NULL); + +#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) + /* set console device */ + rt_console_set_device(RT_CONSOLE_DEVICE_NAME); +#endif + +#ifdef RT_USING_HEAP + /* initialize memory system */ + rt_kprintf("heap: [0x%08x - 0x%08x]\n", RT_HW_HEAP_BEGIN, RT_HW_HEAP_END); + rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END); +#endif + +#ifdef RT_USING_COMPONENTS_INIT + rt_components_board_init(); +#endif + +#ifdef RT_USING_SMP + /* install IPI handle */ + rt_hw_ipi_handler_install(RT_SCHEDULE_IPI, rt_scheduler_ipi_handler); + arm_gic_umask(0, IRQ_ARM_IPI_KICK); +#endif +} + +void reboot(void) +{ + arm_psci_system_reboot(); +} +MSH_CMD_EXPORT(reboot, reboot...); + +#ifdef RT_USING_SMP +rt_uint64_t rt_cpu_mpidr_early[] = +{ + [0] = 0x81000000, + [1] = 0x81000100, + [2] = 0x81000200, + [3] = 0x81000300, +}; + +void rt_hw_secondary_cpu_up(void) +{ + int i; + extern void secondary_cpu_start(void); + + for (i = 1; i < RT_CPUS_NR; ++i) + { + arm_psci_cpu_on(rt_cpu_mpidr_early[i], (rt_uint64_t)secondary_cpu_start); + } +} + +void secondary_cpu_c_start(void) +{ + rt_hw_mmu_init(); + rt_hw_spin_lock(&_cpus_lock); + + arm_gic_cpu_init(0, platform_get_gic_cpu_base()); + arm_gic_redist_init(0, platform_get_gic_redist_base()); + rt_hw_vector_init(); + rt_hw_gtimer_local_enable(); + arm_gic_umask(0, IRQ_ARM_IPI_KICK); + + rt_kprintf("\rcall cpu %d on success\n", rt_hw_cpu_id()); + + rt_system_scheduler_start(); +} + +void rt_hw_secondary_cpu_idle_exec(void) +{ + __WFE(); +} +#endif diff --git a/bsp/rockchip/rk3568/driver/board.h b/bsp/rockchip/rk3568/driver/board.h new file mode 100644 index 0000000000..d2900cf405 --- /dev/null +++ b/bsp/rockchip/rk3568/driver/board.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-5-30 Bernard the first version + */ + +#ifndef __BOARD_H__ +#define __BOARD_H__ + +#include + +extern unsigned char __bss_start; +extern unsigned char __bss_end; + +#define RT_HW_HEAP_BEGIN (void *)&__bss_end +#define RT_HW_HEAP_END (void *)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024) + +void rt_hw_board_init(void); + +#endif /* __BOARD_H__ */ diff --git a/bsp/rockchip/rk3568/driver/drv_uart.c b/bsp/rockchip/rk3568/driver/drv_uart.c new file mode 100644 index 0000000000..477c2f077d --- /dev/null +++ b/bsp/rockchip/rk3568/driver/drv_uart.c @@ -0,0 +1,358 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-3-08 GuEe-GUI the first version + */ + +#include +#include +#include + +#include + +/* + * The Synopsys DesignWare 8250 has an extra feature whereby it detects if the + * LCR is written whilst busy. If it is, then a busy detect interrupt is + * raised, the LCR needs to be rewritten and the uart status register read. + */ + +#define UART_RX 0 /* In: Receive buffer */ +#define UART_TX 0 /* Out: Transmit buffer */ + +#define UART_DLL 0 /* Out: Divisor Latch Low */ +#define UART_DLM 1 /* Out: Divisor Latch High */ + +#define UART_IER 1 /* Out: Interrupt Enable Register */ +#define UART_IER_RDI 0x01 /* Enable receiver data interrupt */ + +#define UART_SSR 0x22 /* In: Software Reset Register */ +#define UART_USR 0x1f /* UART Status Register */ + +#define UART_LCR 3 /* Out: Line Control Register */ +#define UART_LCR_DLAB 0x80 /* Divisor latch access bit */ +#define UART_LCR_SPAR 0x20 /* Stick parity (?) */ +#define UART_LCR_PARITY 0x8 /* Parity Enable */ +#define UART_LCR_STOP 0x4 /* Stop bits: 0=1 bit, 1=2 bits */ +#define UART_LCR_WLEN8 0x3 /* Wordlength: 8 bits */ + +#define UART_MCR 4 /* Out: Modem Control Register */ +#define UART_MCR_RTS 0x02 /* RTS complement */ + +#define UART_LSR 5 /* In: Line Status Register */ +#define UART_LSR_BI 0x10 /* Break interrupt indicator */ +#define UART_LSR_DR 0x01 /* Receiver data ready */ + +#define UART_IIR 2 /* In: Interrupt ID Register */ +#define UART_IIR_NO_INT 0x01 /* No interrupts pending */ +#define UART_IIR_BUSY 0x07 /* DesignWare APB Busy Detect */ +#define UART_IIR_RX_TIMEOUT 0x0c /* OMAP RX Timeout interrupt */ + +#define UART_FCR 2 /* Out: FIFO Control Register */ +#define UART_FCR_EN_FIFO 0x01 /* Enable the FIFO */ +#define UART_FCR_CLEAR_RCVR 0x02 /* Clear the RCVR FIFO */ +#define UART_FCR_CLEAR_XMIT 0x04 /* Clear the XMIT FIFO */ + +#define UART_REG_SHIFT 0x2 /* Register Shift*/ +#define UART_INPUT_CLK 24000000 + +struct hw_uart_device +{ + rt_ubase_t hw_base; + rt_uint32_t irqno; +#ifdef RT_USING_SMP + struct rt_spinlock spinlock; +#endif +}; + +#define BSP_DEFINE_UART_DEVICE(no) \ +static struct hw_uart_device _uart##no##_device = \ +{ \ + UART##no##_MMIO_BASE, \ + UART##no##_IRQ \ +}; \ +static struct rt_serial_device _serial##no; + +#ifdef RT_USING_UART0 +BSP_DEFINE_UART_DEVICE(0); +#endif + +#ifdef RT_USING_UART1 +BSP_DEFINE_UART_DEVICE(1); +#endif + +#ifdef RT_USING_UART2 +BSP_DEFINE_UART_DEVICE(2); +#endif + +#ifdef RT_USING_UART3 +BSP_DEFINE_UART_DEVICE(3); +#endif + +#ifdef RT_USING_UART4 +BSP_DEFINE_UART_DEVICE(4); +#endif + +#ifdef RT_USING_UART5 +BSP_DEFINE_UART_DEVICE(5); +#endif + +#ifdef RT_USING_UART6 +BSP_DEFINE_UART_DEVICE(6); +#endif + +#ifdef RT_USING_UART7 +BSP_DEFINE_UART_DEVICE(7); +#endif + +#ifdef RT_USING_UART8 +BSP_DEFINE_UART_DEVICE(8); +#endif + +#ifdef RT_USING_UART9 +BSP_DEFINE_UART_DEVICE(9); +#endif + +rt_inline rt_uint32_t dw8250_read32(rt_ubase_t addr, rt_ubase_t offset) +{ + return *((volatile rt_uint32_t *)(addr + (offset << UART_REG_SHIFT))); +} + +rt_inline void dw8250_write32(rt_ubase_t addr, rt_ubase_t offset, rt_uint32_t value) +{ + *((volatile rt_uint32_t *)(addr + (offset << UART_REG_SHIFT))) = value; + + if (offset == UART_LCR) + { + int tries = 1000; + + /* Make sure LCR write wasn't ignored */ + while (tries--) + { + unsigned int lcr = dw8250_read32(addr, UART_LCR); + + if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR)) + { + return; + } + + dw8250_write32(addr, UART_FCR, UART_FCR_EN_FIFO | UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); + dw8250_read32(addr, UART_RX); + + *((volatile rt_uint32_t *)(addr + (offset << UART_REG_SHIFT))) = value; + } + } +} + +static rt_err_t dw8250_uart_configure(struct rt_serial_device *serial, struct serial_configure *cfg) +{ + rt_base_t base, rate; + struct hw_uart_device *uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct hw_uart_device *)serial->parent.user_data; + base = uart->hw_base; + +#ifdef RT_USING_SMP + rt_spin_lock_init(&uart->spinlock); +#endif + + /* Resset UART */ + dw8250_write32(base, UART_SSR, 1); + dw8250_write32(base, UART_SSR, 0); + + dw8250_write32(base, UART_IER, !UART_IER_RDI); + dw8250_write32(base, UART_FCR, UART_FCR_EN_FIFO | UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); + + /* Disable flow ctrl */ + dw8250_write32(base, UART_MCR, 0); + /* Clear RTS */ + dw8250_write32(base, UART_MCR, dw8250_read32(base, UART_MCR) | UART_MCR_RTS); + + rate = UART_INPUT_CLK / 16 / serial->config.baud_rate; + + /* Enable access DLL & DLH */ + dw8250_write32(base, UART_LCR, dw8250_read32(base, UART_LCR) | UART_LCR_DLAB); + dw8250_write32(base, UART_DLL, (rate & 0xff)); + dw8250_write32(base, UART_DLM, (rate & 0xff00) >> 8); + /* Clear DLAB bit */ + dw8250_write32(base, UART_LCR, dw8250_read32(base, UART_LCR) & (~UART_LCR_DLAB)); + + dw8250_write32(base, UART_LCR, (dw8250_read32(base, UART_LCR) & (~UART_LCR_WLEN8)) | UART_LCR_WLEN8); + dw8250_write32(base, UART_LCR, dw8250_read32(base, UART_LCR) & (~UART_LCR_STOP)); + dw8250_write32(base, UART_LCR, dw8250_read32(base, UART_LCR) & (~UART_LCR_PARITY)); + + dw8250_write32(base, UART_IER, UART_IER_RDI); + + return RT_EOK; +} + +static rt_err_t dw8250_uart_control(struct rt_serial_device *serial, int cmd, void *arg) +{ + struct hw_uart_device *uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct hw_uart_device *)serial->parent.user_data; + + switch (cmd) + { + case RT_DEVICE_CTRL_CLR_INT: + /* Disable rx irq */ + dw8250_write32(uart->hw_base, UART_IER, !UART_IER_RDI); + rt_hw_interrupt_mask(uart->irqno); + break; + + case RT_DEVICE_CTRL_SET_INT: + /* Enable rx irq */ + dw8250_write32(uart->hw_base, UART_IER, UART_IER_RDI); + rt_hw_interrupt_umask(uart->irqno); + break; + } + + return RT_EOK; +} + +static int dw8250_uart_putc(struct rt_serial_device *serial, char c) +{ + rt_base_t base; + struct hw_uart_device *uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct hw_uart_device *)serial->parent.user_data; + base = uart->hw_base; + + while ((dw8250_read32(base, UART_USR) & 0x2) == 0) + { + } + + dw8250_write32(base, UART_TX, c); + + return 1; +} + +static int dw8250_uart_getc(struct rt_serial_device *serial) +{ + int ch = -1; + rt_base_t base; + struct hw_uart_device *uart; + + RT_ASSERT(serial != RT_NULL); + uart = (struct hw_uart_device *)serial->parent.user_data; + base = uart->hw_base; + + if ((dw8250_read32(base, UART_LSR) & 0x1)) + { + ch = dw8250_read32(base, UART_RX) & 0xff; + } + + return ch; +} + +static const struct rt_uart_ops _uart_ops = +{ + dw8250_uart_configure, + dw8250_uart_control, + dw8250_uart_putc, + dw8250_uart_getc, +}; + +static void rt_hw_uart_isr(int irqno, void *param) +{ + unsigned int iir, status; + struct rt_serial_device *serial = (struct rt_serial_device *)param; + struct hw_uart_device *uart = (struct hw_uart_device *)serial->parent.user_data; + + iir = dw8250_read32(uart->hw_base, UART_IIR); + + /* If don't do this in non-DMA mode then the "RX TIMEOUT" interrupt will fire forever. */ + if ((iir & 0x3f) == UART_IIR_RX_TIMEOUT) + { +#ifdef RT_USING_SMP + rt_base_t level = rt_spin_lock_irqsave(&uart->spinlock); +#endif + + status = dw8250_read32(uart->hw_base, UART_LSR); + + if (!(status & (UART_LSR_DR | UART_LSR_BI))) + { + dw8250_read32(uart->hw_base, UART_RX); + } + +#ifdef RT_USING_SMP + rt_spin_unlock_irqrestore(&uart->spinlock, level); +#endif + } + + if (!(iir & UART_IIR_NO_INT)) + { + rt_hw_serial_isr(serial, RT_SERIAL_EVENT_RX_IND); + } + + if ((iir & UART_IIR_BUSY) == UART_IIR_BUSY) + { + /* Clear the USR */ + dw8250_read32(uart->hw_base, UART_USR); + + return; + } +} + +int rt_hw_uart_init(void) +{ + struct hw_uart_device *uart; + struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; + + config.baud_rate = 1500000; + +#define BSP_INSTALL_UART_DEVICE(no) \ + uart = &_uart##no##_device; \ + _serial##no.ops = &_uart_ops; \ + _serial##no.config = config; \ + rt_hw_serial_register(&_serial##no, "uart" #no, RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, uart); \ + rt_hw_interrupt_install(uart->irqno, rt_hw_uart_isr, &_serial##no, "uart" #no); + +#ifdef RT_USING_UART0 + BSP_INSTALL_UART_DEVICE(0); +#endif + +#ifdef RT_USING_UART1 + BSP_INSTALL_UART_DEVICE(1); +#endif + +#ifdef RT_USING_UART2 + BSP_INSTALL_UART_DEVICE(2); +#endif + +#ifdef RT_USING_UART3 + BSP_INSTALL_UART_DEVICE(3); +#endif + +#ifdef RT_USING_UART4 + BSP_INSTALL_UART_DEVICE(4); +#endif + +#ifdef RT_USING_UART5 + BSP_INSTALL_UART_DEVICE(5); +#endif + +#ifdef RT_USING_UART6 + BSP_INSTALL_UART_DEVICE(6); +#endif + +#ifdef RT_USING_UART7 + BSP_INSTALL_UART_DEVICE(7); +#endif + +#ifdef RT_USING_UART8 + BSP_INSTALL_UART_DEVICE(8); +#endif + +#ifdef RT_USING_UART9 + BSP_INSTALL_UART_DEVICE(9); +#endif + + return 0; +} diff --git a/bsp/rockchip/rk3568/driver/drv_uart.h b/bsp/rockchip/rk3568/driver/drv_uart.h new file mode 100644 index 0000000000..acc6ac0ea4 --- /dev/null +++ b/bsp/rockchip/rk3568/driver/drv_uart.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-3-08 GuEe-GUI the first version + */ + +#ifndef __DRV_UART_H__ +#define __DRV_UART_H__ + +int rt_hw_uart_init(void); + +#endif /* __DRV_UART_H__ */ diff --git a/bsp/rockchip/rk3568/driver/rk3568.h b/bsp/rockchip/rk3568/driver/rk3568.h new file mode 100644 index 0000000000..f248463323 --- /dev/null +++ b/bsp/rockchip/rk3568/driver/rk3568.h @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-3-08 GuEe-GUI the first version + */ + +#ifndef __RK3568_H__ +#define __RK3568_H__ + +/* UART */ +#define UART_MMIO_BASE 0xfe650000 +#define UART0_MMIO_BASE 0xfdd50000 +#define UART1_MMIO_BASE (UART_MMIO_BASE + 0) +#define UART2_MMIO_BASE (UART_MMIO_BASE + 0x10000) +#define UART3_MMIO_BASE (UART_MMIO_BASE + 0x20000) +#define UART4_MMIO_BASE (UART_MMIO_BASE + 0x30000) +#define UART5_MMIO_BASE (UART_MMIO_BASE + 0x40000) +#define UART6_MMIO_BASE (UART_MMIO_BASE + 0x50000) +#define UART7_MMIO_BASE (UART_MMIO_BASE + 0x60000) +#define UART8_MMIO_BASE (UART_MMIO_BASE + 0x70000) +#define UART9_MMIO_BASE (UART_MMIO_BASE + 0x80000) + +#define UART_MMIO_SIZE 0x100 + +#define UART_IRQ_BASE (32 + 116) +#define UART0_IRQ (UART_IRQ_BASE + 0) +#define UART1_IRQ (UART_IRQ_BASE + 1) +#define UART2_IRQ (UART_IRQ_BASE + 2) +#define UART3_IRQ (UART_IRQ_BASE + 3) +#define UART4_IRQ (UART_IRQ_BASE + 4) +#define UART5_IRQ (UART_IRQ_BASE + 5) +#define UART6_IRQ (UART_IRQ_BASE + 6) +#define UART7_IRQ (UART_IRQ_BASE + 7) +#define UART8_IRQ (UART_IRQ_BASE + 8) +#define UART9_IRQ (UART_IRQ_BASE + 9) + +/* GPIO */ +#define GPIO0_MMIO_BASE 0xfdd60000 +#define GPIO1_MMIO_BASE 0xfe740000 +#define GPIO2_MMIO_BASE 0xfe750000 +#define GPIO3_MMIO_BASE 0xfe760000 +#define GPIO4_MMIO_BASE 0xfe770000 + +#define GPIO_MMIO_SIZE 0x100 + +#define GPIO_IRQ_BASE (32 + 33) +#define GPIO0_IRQ (GPIO_IRQ_BASE + 0) +#define GPIO1_IRQ (GPIO_IRQ_BASE + 1) +#define GPIO2_IRQ (GPIO_IRQ_BASE + 2) +#define GPIO3_IRQ (GPIO_IRQ_BASE + 3) +#define GPIO4_IRQ (GPIO_IRQ_BASE + 4) + +/* MMC */ +#define MMC0_MMIO_BASE 0xfe310000 /* sdhci */ +#define MMC1_MMIO_BASE 0xfe2b0000 /* sdmmc0 */ +#define MMC2_MMIO_BASE 0xfe2c0000 /* sdmmc1 */ +#define MMC3_MMIO_BASE 0xfe000000 /* sdmmc2 */ + +#define MMC0_MMIO_SIZE 0x10000 +#define MMC_MMIO_SIZE 0x4000 + +#define MMC0_IRQ (32 + 19) +#define MMC1_IRQ (32 + 98) +#define MMC2_IRQ (32 + 99) +#define MMC3_IRQ (32 + 100) + +/* Ethernet */ +#define GMAC0_MMIO_BASE 0xfe2a0000 +#define GMAC1_MMIO_BASE 0xfe010000 + +#define GMAC_MMIO_SIZE 0x10000 + +#define GMAC0_MAC_IRQ (32 + 27) +#define GMAC0_WAKE_IRQ (32 + 24) +#define GMAC1_MAC_IRQ (32 + 32) +#define GMAC1_WAKE_IRQ (32 + 29) + +/* GIC */ +#define MAX_HANDLERS 256 +#define GIC_IRQ_START 0 +#define ARM_GIC_NR_IRQS 256 +#define ARM_GIC_MAX_NR 1 + +#define IRQ_ARM_IPI_KICK 0 +#define IRQ_ARM_IPI_CALL 1 + +#define GIC_PL600_DISTRIBUTOR_PPTR 0xfd400000 +#define GIC_PL600_REDISTRIBUTOR_PPTR 0xfd460000 +#define GIC_PL600_CONTROLLER_PPTR RT_NULL +#define GIC_PL600_ITS_PPTR 0xfd440000 + +rt_inline rt_uint32_t platform_get_gic_dist_base(void) +{ + return GIC_PL600_DISTRIBUTOR_PPTR; +} + +rt_inline rt_uint32_t platform_get_gic_redist_base(void) +{ + return GIC_PL600_REDISTRIBUTOR_PPTR; +} + +rt_inline rt_uint32_t platform_get_gic_cpu_base(void) +{ + return GIC_PL600_CONTROLLER_PPTR; +} + +rt_inline rt_uint32_t platform_get_gic_its_base(void) +{ + return GIC_PL600_ITS_PPTR; +} + +#endif /* __RK3568_H__ */ diff --git a/bsp/rockchip/rk3568/link.lds b/bsp/rockchip/rk3568/link.lds new file mode 100644 index 0000000000..406e8c4a6c --- /dev/null +++ b/bsp/rockchip/rk3568/link.lds @@ -0,0 +1,143 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2017-5-30 bernard first version + */ + +OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64") +OUTPUT_ARCH(aarch64) + +SECTIONS +{ + . = 0x208000; + . = ALIGN(4096); + .text : + { + KEEP(*(.text.entrypoint)) /* The entry point */ + *(.vectors) + *(.text) /* remaining code */ + *(.text.*) /* remaining code */ + + *(.rodata) /* read-only data (constants) */ + *(.rodata*) + *(.glue_7) + *(.glue_7t) + *(.gnu.linkonce.t*) + + *(COMMON) + + /* section information for finsh shell */ + . = ALIGN(16); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + . = ALIGN(16); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + . = ALIGN(16); + + /* section information for initial. */ + . = ALIGN(16); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + . = ALIGN(16); + + . = ALIGN(16); + _etext = .; + } + + .eh_frame_hdr : + { + *(.eh_frame_hdr) + *(.eh_frame_entry) + } + .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } + + . = ALIGN(16); + .data : + { + *(.data) + *(.data.*) + + *(.data1) + *(.data1.*) + + . = ALIGN(16); + _gp = ABSOLUTE(.); /* Base of small data */ + + *(.sdata) + *(.sdata.*) + } + + . = ALIGN(16); + .ctors : + { + PROVIDE(__ctors_start__ = .); + KEEP(*(SORT(.ctors.*))) + KEEP(*(.ctors)) + PROVIDE(__ctors_end__ = .); + } + + .dtors : + { + PROVIDE(__dtors_start__ = .); + KEEP(*(SORT(.dtors.*))) + KEEP(*(.dtors)) + PROVIDE(__dtors_end__ = .); + } + + . = ALIGN(16); + .bss : + { + PROVIDE(__bss_start = .); + *(.bss) + *(.bss.*) + *(.dynbss) + + . = ALIGN(16); + PROVIDE(__bss_end = .); + } + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} + +__bss_size = SIZEOF(.bss); diff --git a/bsp/rockchip/rk3568/rtconfig.h b/bsp/rockchip/rk3568/rtconfig.h new file mode 100644 index 0000000000..5b3909cd14 --- /dev/null +++ b/bsp/rockchip/rk3568/rtconfig.h @@ -0,0 +1,188 @@ +#ifndef RT_CONFIG_H__ +#define RT_CONFIG_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Project Configuration */ + +/* RT-Thread Kernel */ + +#define RT_NAME_MAX 8 +#define RT_ALIGN_SIZE 4 +#define RT_THREAD_PRIORITY_32 +#define RT_THREAD_PRIORITY_MAX 32 +#define RT_TICK_PER_SECOND 100 +#define RT_USING_OVERFLOW_CHECK +#define RT_USING_HOOK +#define RT_HOOK_USING_FUNC_PTR +#define RT_USING_IDLE_HOOK +#define RT_IDLE_HOOK_LIST_SIZE 4 +#define IDLE_THREAD_STACK_SIZE 4096 +#define RT_USING_TIMER_SOFT +#define RT_TIMER_THREAD_PRIO 4 +#define RT_TIMER_THREAD_STACK_SIZE 4096 + +/* kservice optimization */ + +#define RT_DEBUG +#define RT_DEBUG_COLOR + +/* Inter-Thread communication */ + +#define RT_USING_SEMAPHORE +#define RT_USING_MUTEX +#define RT_USING_EVENT +#define RT_USING_MAILBOX +#define RT_USING_MESSAGEQUEUE + +/* Memory Management */ + +#define RT_USING_MEMPOOL +#define RT_USING_SMALL_MEM +#define RT_USING_MEMHEAP +#define RT_MEMHEAP_FAST_MODE +#define RT_USING_SMALL_MEM_AS_HEAP +#define RT_USING_MEMTRACE +#define RT_USING_HEAP + +/* Kernel Device Object */ + +#define RT_USING_DEVICE +#define RT_USING_DEVICE_OPS +#define RT_USING_CONSOLE +#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLE_DEVICE_NAME "uart2" +#define RT_VER_NUM 0x40100 +#define ARCH_CPU_64BIT +#define ARCH_ARMV8 + +/* RT-Thread Components */ + +#define RT_USING_COMPONENTS_INIT +#define RT_USING_USER_MAIN +#define RT_MAIN_THREAD_STACK_SIZE 8192 +#define RT_MAIN_THREAD_PRIORITY 10 +#define RT_USING_MSH +#define RT_USING_FINSH +#define FINSH_USING_MSH +#define FINSH_THREAD_NAME "tshell" +#define FINSH_THREAD_PRIORITY 20 +#define FINSH_THREAD_STACK_SIZE 4096 +#define FINSH_USING_HISTORY +#define FINSH_HISTORY_LINES 5 +#define FINSH_USING_SYMTAB +#define FINSH_CMD_SIZE 80 +#define MSH_USING_BUILT_IN_COMMANDS +#define FINSH_USING_DESCRIPTION +#define FINSH_ARG_MAX 10 + +/* Device Drivers */ + +#define RT_USING_DEVICE_IPC +#define RT_USING_SERIAL +#define RT_USING_SERIAL_V1 +#define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_PIN + +/* Using USB */ + + +/* C/C++ and POSIX layer */ + +#define RT_LIBC_DEFAULT_TIMEZONE 8 + +/* POSIX (Portable Operating System Interface) layer */ + + +/* Interprocess Communication (IPC) */ + + +/* Socket is in the 'Network' category */ + + +/* Network */ + + +/* Utilities */ + + +/* RT-Thread Utestcases */ + + +/* RT-Thread online packages */ + +/* IoT - internet of things */ + + +/* Wi-Fi */ + +/* Marvell WiFi */ + + +/* Wiced WiFi */ + + +/* IoT Cloud */ + + +/* security packages */ + + +/* language packages */ + + +/* multimedia packages */ + +/* LVGL: powerful and easy-to-use embedded GUI library */ + + +/* u8g2: a monochrome graphic library */ + + +/* PainterEngine: A cross-platform graphics application framework written in C language */ + + +/* tools packages */ + + +/* system packages */ + +/* enhanced kernel services */ + + +/* POSIX extension functions */ + + +/* acceleration: Assembly language or algorithmic acceleration packages */ + + +/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ + + +/* Micrium: Micrium software products porting for RT-Thread */ + + +/* peripheral libraries and drivers */ + + +/* AI packages */ + + +/* miscellaneous packages */ + +/* project laboratory */ + +/* samples: kernel and components samples */ + + +/* entertainment: terminal games and other interesting software packages */ + +#define SOC_RK3568 + +/* Hardware Drivers Config */ + +#define BSP_USING_UART +#define RT_USING_UART2 +#define BSP_USING_GIC +#define BSP_USING_GICV3 + +#endif diff --git a/bsp/rockchip/rk3568/rtconfig.py b/bsp/rockchip/rk3568/rtconfig.py new file mode 100644 index 0000000000..aad7072dbc --- /dev/null +++ b/bsp/rockchip/rk3568/rtconfig.py @@ -0,0 +1,53 @@ +import os + +# toolchains options +ARCH ='aarch64' +CPU ='cortex-a' +CROSS_TOOL ='gcc' + +if os.getenv('RTT_ROOT'): + RTT_ROOT = os.getenv('RTT_ROOT') +else: + RTT_ROOT = os.path.join(os.getcwd(), '..', '..', '..') + +if os.getenv('RTT_CC'): + CROSS_TOOL = os.getenv('RTT_CC') + +PLATFORM = 'gcc' +EXEC_PATH = r'/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin/' + +if os.getenv('RTT_EXEC_PATH'): + EXEC_PATH = os.getenv('RTT_EXEC_PATH') + +BUILD = 'debug' + +if PLATFORM == 'gcc': + # toolchains + PREFIX = 'aarch64-none-elf-' + CC = PREFIX + 'gcc' + CXX = PREFIX + 'g++' + AS = PREFIX + 'gcc' + AR = PREFIX + 'ar' + LINK = PREFIX + 'gcc' + TARGET_EXT = 'elf' + SIZE = PREFIX + 'size' + OBJDUMP = PREFIX + 'objdump' + OBJCPY = PREFIX + 'objcopy' + + DEVICE = ' -g -march=armv8-a -mtune=cortex-a55' + CFLAGS = DEVICE + ' -Wall' + AFLAGS = ' -c' + ' -x assembler-with-cpp -D__ASSEMBLY__' + LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,system_vectors -T link.lds' + CPATH = '' + LPATH = '' + + if BUILD == 'debug': + CFLAGS += ' -O0 -gdwarf-2' + AFLAGS += ' -gdwarf-2' + else: + CFLAGS += ' -O2' + + CXXFLAGS = CFLAGS + +DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n' +POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' diff --git a/include/rthw.h b/include/rthw.h index 5672a8f992..bf497b4c3f 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -26,6 +26,9 @@ extern "C" { /* * Some macros define */ +#ifndef HWREG64 +#define HWREG64(x) (*((volatile rt_uint64_t *)(x))) +#endif #ifndef HWREG32 #define HWREG32(x) (*((volatile rt_uint32_t *)(x))) #endif diff --git a/libcpu/aarch64/common/SConscript b/libcpu/aarch64/common/SConscript index 915b9d29aa..72fb8e26c3 100644 --- a/libcpu/aarch64/common/SConscript +++ b/libcpu/aarch64/common/SConscript @@ -6,10 +6,6 @@ Import('rtconfig') cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') + Glob('*.S') - -if not GetDepend('BSP_USING_GIC'): - SrcRemove(src, 'gic.c') - CPPPATH = [cwd] group = DefineGroup('common', src, depend = [''], CPPPATH = CPPPATH) diff --git a/libcpu/aarch64/common/gic.c b/libcpu/aarch64/common/gic.c index 7a2c368d23..95a710c480 100644 --- a/libcpu/aarch64/common/gic.c +++ b/libcpu/aarch64/common/gic.c @@ -9,20 +9,25 @@ * 2014-04-03 Grissiom many enhancements * 2018-11-22 Jesven add rt_hw_ipi_send() * add rt_hw_ipi_handler_install() + * 2022-03-08 GuEe-GUI add BSP bind SPI CPU self support */ #include #include +#if defined(BSP_USING_GIC) && defined(BSP_USING_GICV2) + #include #include +#include + struct arm_gic { rt_uint64_t offset; /* the first interrupt index in the vector table */ rt_uint64_t dist_hw_base; /* the base address of the gic distributor */ - rt_uint64_t cpu_hw_base; /* the base addrees of the gic cpu interface */ + rt_uint64_t cpu_hw_base; /* the base address of the gic cpu interface */ }; /* 'ARM_GIC_MAX_NR' is the number of cores */ @@ -30,33 +35,33 @@ static struct arm_gic _gic_table[ARM_GIC_MAX_NR]; /** Macro to access the Generic Interrupt Controller Interface (GICC) */ -#define GIC_CPU_CTRL(hw_base) __REG32((hw_base) + 0x00U) -#define GIC_CPU_PRIMASK(hw_base) __REG32((hw_base) + 0x04U) -#define GIC_CPU_BINPOINT(hw_base) __REG32((hw_base) + 0x08U) -#define GIC_CPU_INTACK(hw_base) __REG32((hw_base) + 0x0cU) -#define GIC_CPU_EOI(hw_base) __REG32((hw_base) + 0x10U) -#define GIC_CPU_RUNNINGPRI(hw_base) __REG32((hw_base) + 0x14U) -#define GIC_CPU_HIGHPRI(hw_base) __REG32((hw_base) + 0x18U) -#define GIC_CPU_IIDR(hw_base) __REG32((hw_base) + 0xFCU) +#define GIC_CPU_CTRL(hw_base) HWREG32((hw_base) + 0x00U) +#define GIC_CPU_PRIMASK(hw_base) HWREG32((hw_base) + 0x04U) +#define GIC_CPU_BINPOINT(hw_base) HWREG32((hw_base) + 0x08U) +#define GIC_CPU_INTACK(hw_base) HWREG32((hw_base) + 0x0cU) +#define GIC_CPU_EOI(hw_base) HWREG32((hw_base) + 0x10U) +#define GIC_CPU_RUNNINGPRI(hw_base) HWREG32((hw_base) + 0x14U) +#define GIC_CPU_HIGHPRI(hw_base) HWREG32((hw_base) + 0x18U) +#define GIC_CPU_IIDR(hw_base) HWREG32((hw_base) + 0xFCU) /** Macro to access the Generic Interrupt Controller Distributor (GICD) */ -#define GIC_DIST_CTRL(hw_base) __REG32((hw_base) + 0x000U) -#define GIC_DIST_TYPE(hw_base) __REG32((hw_base) + 0x004U) -#define GIC_DIST_IGROUP(hw_base, n) __REG32((hw_base) + 0x080U + ((n)/32U) * 4U) -#define GIC_DIST_ENABLE_SET(hw_base, n) __REG32((hw_base) + 0x100U + ((n)/32U) * 4U) -#define GIC_DIST_ENABLE_CLEAR(hw_base, n) __REG32((hw_base) + 0x180U + ((n)/32U) * 4U) -#define GIC_DIST_PENDING_SET(hw_base, n) __REG32((hw_base) + 0x200U + ((n)/32U) * 4U) -#define GIC_DIST_PENDING_CLEAR(hw_base, n) __REG32((hw_base) + 0x280U + ((n)/32U) * 4U) -#define GIC_DIST_ACTIVE_SET(hw_base, n) __REG32((hw_base) + 0x300U + ((n)/32U) * 4U) -#define GIC_DIST_ACTIVE_CLEAR(hw_base, n) __REG32((hw_base) + 0x380U + ((n)/32U) * 4U) -#define GIC_DIST_PRI(hw_base, n) __REG32((hw_base) + 0x400U + ((n)/4U) * 4U) -#define GIC_DIST_TARGET(hw_base, n) __REG32((hw_base) + 0x800U + ((n)/4U) * 4U) -#define GIC_DIST_CONFIG(hw_base, n) __REG32((hw_base) + 0xc00U + ((n)/16U) * 4U) -#define GIC_DIST_SOFTINT(hw_base) __REG32((hw_base) + 0xf00U) -#define GIC_DIST_CPENDSGI(hw_base, n) __REG32((hw_base) + 0xf10U + ((n)/4U) * 4U) -#define GIC_DIST_SPENDSGI(hw_base, n) __REG32((hw_base) + 0xf20U + ((n)/4U) * 4U) -#define GIC_DIST_ICPIDR2(hw_base) __REG32((hw_base) + 0xfe8U) +#define GIC_DIST_CTRL(hw_base) HWREG32((hw_base) + 0x000U) +#define GIC_DIST_TYPE(hw_base) HWREG32((hw_base) + 0x004U) +#define GIC_DIST_IGROUP(hw_base, n) HWREG32((hw_base) + 0x080U + ((n)/32U) * 4U) +#define GIC_DIST_ENABLE_SET(hw_base, n) HWREG32((hw_base) + 0x100U + ((n)/32U) * 4U) +#define GIC_DIST_ENABLE_CLEAR(hw_base, n) HWREG32((hw_base) + 0x180U + ((n)/32U) * 4U) +#define GIC_DIST_PENDING_SET(hw_base, n) HWREG32((hw_base) + 0x200U + ((n)/32U) * 4U) +#define GIC_DIST_PENDING_CLEAR(hw_base, n) HWREG32((hw_base) + 0x280U + ((n)/32U) * 4U) +#define GIC_DIST_ACTIVE_SET(hw_base, n) HWREG32((hw_base) + 0x300U + ((n)/32U) * 4U) +#define GIC_DIST_ACTIVE_CLEAR(hw_base, n) HWREG32((hw_base) + 0x380U + ((n)/32U) * 4U) +#define GIC_DIST_PRI(hw_base, n) HWREG32((hw_base) + 0x400U + ((n)/4U) * 4U) +#define GIC_DIST_TARGET(hw_base, n) HWREG32((hw_base) + 0x800U + ((n)/4U) * 4U) +#define GIC_DIST_CONFIG(hw_base, n) HWREG32((hw_base) + 0xc00U + ((n)/16U) * 4U) +#define GIC_DIST_SOFTINT(hw_base) HWREG32((hw_base) + 0xf00U) +#define GIC_DIST_CPENDSGI(hw_base, n) HWREG32((hw_base) + 0xf10U + ((n)/4U) * 4U) +#define GIC_DIST_SPENDSGI(hw_base, n) HWREG32((hw_base) + 0xf20U + ((n)/4U) * 4U) +#define GIC_DIST_ICPIDR2(hw_base) HWREG32((hw_base) + 0xfe8U) static unsigned int _gic_max_irq; @@ -179,7 +184,7 @@ void arm_gic_clear_pending_irq(rt_uint64_t index, int irq) } } -void arm_gic_set_configuration(rt_uint64_t index, int irq, uint32_t config) +void arm_gic_set_configuration(rt_uint64_t index, int irq, rt_uint32_t config) { rt_uint64_t icfgr; rt_uint64_t shift; @@ -323,6 +328,8 @@ void arm_gic_send_sgi(rt_uint64_t index, int irq, rt_uint64_t target_list, rt_ui GIC_DIST_SOFTINT(_gic_table[index].dist_hw_base) = ((filter_list & 0x3U) << 24U) | ((target_list & 0xFFUL) << 16U) | (irq & 0x0FUL); + + __DSB(); } rt_uint64_t arm_gic_get_high_pending_irq(rt_uint64_t index) @@ -341,8 +348,8 @@ rt_uint64_t arm_gic_get_interface_id(rt_uint64_t index) void arm_gic_set_group(rt_uint64_t index, int irq, rt_uint64_t group) { - uint32_t igroupr; - uint32_t shift; + rt_uint32_t igroupr; + rt_uint32_t shift; RT_ASSERT(index < ARM_GIC_MAX_NR); RT_ASSERT(group <= 1U); @@ -373,6 +380,10 @@ int arm_gic_dist_init(rt_uint64_t index, rt_uint64_t dist_base, int irq_start) unsigned int gic_type, i; rt_uint64_t cpumask = 1U << 0U; +#ifdef ARM_SPI_BIND_CPU_ID + cpumask = 1U << ARM_SPI_BIND_CPU_ID; +#endif + RT_ASSERT(index < ARM_GIC_MAX_NR); _gic_table[index].dist_hw_base = dist_base; @@ -502,3 +513,4 @@ long gic_dump(void) } MSH_CMD_EXPORT(gic_dump, show gic status); +#endif /* defined(BSP_USING_GIC) && defined(BSP_USING_GICV2) */ diff --git a/libcpu/aarch64/common/gic.h b/libcpu/aarch64/common/gic.h index 54ab2bda18..7ea0d6d3af 100644 --- a/libcpu/aarch64/common/gic.h +++ b/libcpu/aarch64/common/gic.h @@ -11,9 +11,9 @@ #ifndef __GIC_H__ #define __GIC_H__ -#include -#include -#include +#include + +#if defined(BSP_USING_GIC) && defined(BSP_USING_GICV2) int arm_gic_get_active_irq(rt_uint64_t index); void arm_gic_ack(rt_uint64_t index, int irq); @@ -25,7 +25,7 @@ rt_uint64_t arm_gic_get_pending_irq(rt_uint64_t index, int irq); void arm_gic_set_pending_irq(rt_uint64_t index, int irq); void arm_gic_clear_pending_irq(rt_uint64_t index, int irq); -void arm_gic_set_configuration(rt_uint64_t index, int irq, uint32_t config); +void arm_gic_set_configuration(rt_uint64_t index, int irq, rt_uint32_t config); rt_uint64_t arm_gic_get_configuration(rt_uint64_t index, int irq); void arm_gic_clear_active(rt_uint64_t index, int irq); @@ -59,5 +59,7 @@ int arm_gic_cpu_init(rt_uint64_t index, rt_uint64_t cpu_base); void arm_gic_dump_type(rt_uint64_t index); void arm_gic_dump(rt_uint64_t index); +#endif /* defined(BSP_USING_GIC) && defined(BSP_USING_GICV2) */ + #endif diff --git a/libcpu/aarch64/common/gicv3.c b/libcpu/aarch64/common/gicv3.c new file mode 100644 index 0000000000..67010f1d57 --- /dev/null +++ b/libcpu/aarch64/common/gicv3.c @@ -0,0 +1,849 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2013-07-20 Bernard first version + * 2014-04-03 Grissiom many enhancements + * 2018-11-22 Jesven add rt_hw_ipi_send() + * add rt_hw_ipi_handler_install() + * 2022-03-08 GuEe-GUI add BSP bind SPI CPU self support + * add GICv3 AArch64 system register interface + * modify arm_gic_redist_init() args + * modify arm_gic_cpu_init() args + * modify arm_gic_send_affinity_sgi() args + * remove arm_gic_redist_address_set() + * remove arm_gic_cpu_interface_address_set() + * remove arm_gic_secondary_cpu_init() + * remove get_main_cpu_affval() + * remove arm_gic_cpumask_to_affval() + */ + +#include +#include + +#if defined(BSP_USING_GIC) && defined(BSP_USING_GICV3) + +#include +#include + +#include + +#ifndef ARM_SPI_BIND_CPU_ID +#define ARM_SPI_BIND_CPU_ID 0 +#endif + +#ifndef RT_USING_SMP +#define RT_CPUS_NR 1 +extern int rt_hw_cpu_id(void); +#else +extern rt_uint64_t rt_cpu_mpidr_early[]; +#endif /* RT_USING_SMP */ + +struct arm_gic +{ + rt_uint64_t offset; /* the first interrupt index in the vector table */ + rt_uint64_t redist_hw_base[RT_CPUS_NR]; /* the pointer of the gic redistributor */ + rt_uint64_t dist_hw_base; /* the base address of the gic distributor */ + rt_uint64_t cpu_hw_base[RT_CPUS_NR]; /* the base address of the gic cpu interface */ +}; + +/* 'ARM_GIC_MAX_NR' is the number of cores */ +static struct arm_gic _gic_table[ARM_GIC_MAX_NR]; +static unsigned int _gic_max_irq; + +#define GET_GICV3_REG(reg, out) __asm__ volatile ("mrs %0, " reg:"=r"(out)::"memory"); +#define SET_GICV3_REG(reg, in) __asm__ volatile ("msr " reg ", %0"::"r"(in):"memory"); + +/* AArch64 System register interface to GICv3 */ +#define ICC_IAR0_EL1 "S3_0_C12_C8_0" +#define ICC_IAR1_EL1 "S3_0_C12_C12_0" +#define ICC_EOIR0_EL1 "S3_0_C12_C8_1" +#define ICC_EOIR1_EL1 "S3_0_C12_C12_1" +#define ICC_HPPIR0_EL1 "S3_0_C12_C8_2" +#define ICC_HPPIR1_EL1 "S3_0_C12_C12_2" +#define ICC_BPR0_EL1 "S3_0_C12_C8_3" +#define ICC_BPR1_EL1 "S3_0_C12_C12_3" +#define ICC_DIR_EL1 "S3_0_C12_C11_1" +#define ICC_PMR_EL1 "S3_0_C4_C6_0" +#define ICC_RPR_EL1 "S3_0_C12_C11_3" +#define ICC_CTLR_EL1 "S3_0_C12_C12_4" +#define ICC_CTLR_EL3 "S3_6_C12_C12_4" +#define ICC_SRE_EL1 "S3_0_C12_C12_5" +#define ICC_SRE_EL2 "S3_4_C12_C9_5" +#define ICC_SRE_EL3 "S3_6_C12_C12_5" +#define ICC_IGRPEN0_EL1 "S3_0_C12_C12_6" +#define ICC_IGRPEN1_EL1 "S3_0_C12_C12_7" +#define ICC_IGRPEN1_EL3 "S3_6_C12_C12_7" +#define ICC_SGI0R_EL1 "S3_0_C12_C11_7" +#define ICC_SGI1R_EL1 "S3_0_C12_C11_5" +#define ICC_ASGI1R_EL1 "S3_0_C12_C11_6" + +/* Macro to access the Distributor Control Register (GICD_CTLR) */ +#define GICD_CTLR_RWP (1 << 31) +#define GICD_CTLR_E1NWF (1 << 7) +#define GICD_CTLR_DS (1 << 6) +#define GICD_CTLR_ARE_NS (1 << 5) +#define GICD_CTLR_ARE_S (1 << 4) +#define GICD_CTLR_ENGRP1S (1 << 2) +#define GICD_CTLR_ENGRP1NS (1 << 1) +#define GICD_CTLR_ENGRP0 (1 << 0) + +/* Macro to access the Redistributor Control Register (GICR_CTLR) */ +#define GICR_CTLR_UWP (1 << 31) +#define GICR_CTLR_DPG1S (1 << 26) +#define GICR_CTLR_DPG1NS (1 << 25) +#define GICR_CTLR_DPG0 (1 << 24) +#define GICR_CTLR_RWP (1 << 3) +#define GICR_CTLR_IR (1 << 2) +#define GICR_CTLR_CES (1 << 1) +#define GICR_CTLR_EnableLPI (1 << 0) + +/* Macro to access the Generic Interrupt Controller Interface (GICC) */ +#define GIC_CPU_CTRL(hw_base) HWREG32((hw_base) + 0x00U) +#define GIC_CPU_PRIMASK(hw_base) HWREG32((hw_base) + 0x04U) +#define GIC_CPU_BINPOINT(hw_base) HWREG32((hw_base) + 0x08U) +#define GIC_CPU_INTACK(hw_base) HWREG32((hw_base) + 0x0cU) +#define GIC_CPU_EOI(hw_base) HWREG32((hw_base) + 0x10U) +#define GIC_CPU_RUNNINGPRI(hw_base) HWREG32((hw_base) + 0x14U) +#define GIC_CPU_HIGHPRI(hw_base) HWREG32((hw_base) + 0x18U) +#define GIC_CPU_IIDR(hw_base) HWREG32((hw_base) + 0xFCU) + +/* Macro to access the Generic Interrupt Controller Distributor (GICD) */ +#define GIC_DIST_CTRL(hw_base) HWREG32((hw_base) + 0x000U) +#define GIC_DIST_TYPE(hw_base) HWREG32((hw_base) + 0x004U) +#define GIC_DIST_IGROUP(hw_base, n) HWREG32((hw_base) + 0x080U + ((n) / 32U) * 4U) +#define GIC_DIST_ENABLE_SET(hw_base, n) HWREG32((hw_base) + 0x100U + ((n) / 32U) * 4U) +#define GIC_DIST_ENABLE_CLEAR(hw_base, n) HWREG32((hw_base) + 0x180U + ((n) / 32U) * 4U) +#define GIC_DIST_PENDING_SET(hw_base, n) HWREG32((hw_base) + 0x200U + ((n) / 32U) * 4U) +#define GIC_DIST_PENDING_CLEAR(hw_base, n) HWREG32((hw_base) + 0x280U + ((n) / 32U) * 4U) +#define GIC_DIST_ACTIVE_SET(hw_base, n) HWREG32((hw_base) + 0x300U + ((n) / 32U) * 4U) +#define GIC_DIST_ACTIVE_CLEAR(hw_base, n) HWREG32((hw_base) + 0x380U + ((n) / 32U) * 4U) +#define GIC_DIST_PRI(hw_base, n) HWREG32((hw_base) + 0x400U + ((n) / 4U) * 4U) +#define GIC_DIST_TARGET(hw_base, n) HWREG32((hw_base) + 0x800U + ((n) / 4U) * 4U) +#define GIC_DIST_CONFIG(hw_base, n) HWREG32((hw_base) + 0xc00U + ((n) / 16U) * 4U) +#define GIC_DIST_SOFTINT(hw_base) HWREG32((hw_base) + 0xf00U) +#define GIC_DIST_CPENDSGI(hw_base, n) HWREG32((hw_base) + 0xf10U + ((n) / 4U) * 4U) +#define GIC_DIST_SPENDSGI(hw_base, n) HWREG32((hw_base) + 0xf20U + ((n) / 4U) * 4U) +#define GIC_DIST_ICPIDR2(hw_base) HWREG32((hw_base) + 0xfe8U) +#define GIC_DIST_IROUTER(hw_base, n) HWREG64((hw_base) + 0x6000U + (n) * 8U) + +/* SGI base address is at 64K offset from Redistributor base address */ +#define GIC_RSGI_OFFSET 0x10000 + +/* Macro to access the Generic Interrupt Controller Redistributor (GICR) */ +#define GIC_RDIST_CTRL(hw_base) HWREG32((hw_base) + 0x000U) +#define GIC_RDIST_IIDR(hw_base) HWREG32((hw_base) + 0x004U) +#define GIC_RDIST_TYPER(hw_base) HWREG64((hw_base) + 0x008U) +#define GIC_RDIST_TSTATUSR(hw_base) HWREG32((hw_base) + 0x010U) +#define GIC_RDIST_WAKER(hw_base) HWREG32((hw_base) + 0x014U) +#define GIC_RDIST_SETLPIR(hw_base) HWREG32((hw_base) + 0x040U) +#define GIC_RDIST_CLRLPIR(hw_base) HWREG32((hw_base) + 0x048U) +#define GIC_RDIST_PROPBASER(hw_base) HWREG32((hw_base) + 0x070U) +#define GIC_RDIST_PENDBASER(hw_base) HWREG32((hw_base) + 0x078U) +#define GIC_RDIST_INVLPIR(hw_base) HWREG32((hw_base) + 0x0A0U) +#define GIC_RDIST_INVALLR(hw_base) HWREG32((hw_base) + 0x0B0U) +#define GIC_RDIST_SYNCR(hw_base) HWREG32((hw_base) + 0x0C0U) + +#define GIC_RDISTSGI_IGROUPR0(hw_base, n) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x080U + (n) * 4U) +#define GIC_RDISTSGI_ISENABLER0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x100U) +#define GIC_RDISTSGI_ICENABLER0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x180U) +#define GIC_RDISTSGI_ISPENDR0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x200U) +#define GIC_RDISTSGI_ICPENDR0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x280U) +#define GIC_RDISTSGI_ISACTIVER0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x300U) +#define GIC_RDISTSGI_ICACTIVER0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x380U) +#define GIC_RDISTSGI_IPRIORITYR(hw_base, n) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0x400U + ((n) / 4U) * 4U) +#define GIC_RDISTSGI_ICFGR0(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0xC00U) +#define GIC_RDISTSGI_ICFGR1(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0xC04U) +#define GIC_RDISTSGI_IGRPMODR0(hw_base, n) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0xD00U + (n) * 4) +#define GIC_RDISTSGI_NSACR(hw_base) HWREG32((hw_base) + GIC_RSGI_OFFSET + 0xE00U) + +int arm_gic_get_active_irq(rt_uint64_t index) +{ + int irq; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + GET_GICV3_REG(ICC_IAR1_EL1, irq); + + irq = (irq & 0x1ffffff) + _gic_table[index].offset; + return irq; +} + +void arm_gic_ack(rt_uint64_t index, int irq) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + RT_ASSERT(irq >= 0); + + __DSB(); + SET_GICV3_REG(ICC_EOIR1_EL1, irq); +} + +void arm_gic_mask(rt_uint64_t index, int irq) +{ + rt_uint64_t mask = 1 << (irq % 32); + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq < 32) + { + rt_int32_t cpu_id = rt_hw_cpu_id(); + + GIC_RDISTSGI_ICENABLER0(_gic_table[index].redist_hw_base[cpu_id]) = mask; + } + else + { + GIC_DIST_ENABLE_CLEAR(_gic_table[index].dist_hw_base, irq) = mask; + } +} + +void arm_gic_umask(rt_uint64_t index, int irq) +{ + rt_uint64_t mask = 1 << (irq % 32); + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq < 32) + { + rt_int32_t cpu_id = rt_hw_cpu_id(); + + GIC_RDISTSGI_ISENABLER0(_gic_table[index].redist_hw_base[cpu_id]) = mask; + } + else + { + GIC_DIST_ENABLE_SET(_gic_table[index].dist_hw_base, irq) = mask; + } +} + +rt_uint64_t arm_gic_get_pending_irq(rt_uint64_t index, int irq) +{ + rt_uint64_t pend; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq >= 16) + { + pend = (GIC_DIST_PENDING_SET(_gic_table[index].dist_hw_base, irq) >> (irq % 32)) & 0x1; + } + else + { + /* INTID 0-15 Software Generated Interrupt */ + pend = (GIC_DIST_SPENDSGI(_gic_table[index].dist_hw_base, irq) >> ((irq % 4) * 8)) & 0xff; + /* No CPU identification offered */ + if (pend != 0) + { + pend = 1; + } + else + { + pend = 0; + } + } + + return pend; +} + +void arm_gic_set_pending_irq(rt_uint64_t index, int irq) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq >= 16) + { + GIC_DIST_PENDING_SET(_gic_table[index].dist_hw_base, irq) = 1 << (irq % 32); + } + else + { + /* INTID 0-15 Software Generated Interrupt */ + /* Forward the interrupt to the CPU interface that requested it */ + GIC_DIST_SOFTINT(_gic_table[index].dist_hw_base) = (irq | 0x02000000); + } +} + +void arm_gic_clear_pending_irq(rt_uint64_t index, int irq) +{ + rt_uint64_t mask; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq >= 16) + { + mask = 1 << (irq % 32); + GIC_DIST_PENDING_CLEAR(_gic_table[index].dist_hw_base, irq) = mask; + } + else + { + mask = 1 << ((irq % 4) * 8); + GIC_DIST_CPENDSGI(_gic_table[index].dist_hw_base, irq) = mask; + } +} + +void arm_gic_set_configuration(rt_uint64_t index, int irq, rt_uint32_t config) +{ + rt_uint64_t icfgr; + rt_uint64_t shift; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + icfgr = GIC_DIST_CONFIG(_gic_table[index].dist_hw_base, irq); + shift = (irq % 16) << 1; + + icfgr &= (~(3 << shift)); + icfgr |= (config << shift); + + GIC_DIST_CONFIG(_gic_table[index].dist_hw_base, irq) = icfgr; +} + +rt_uint64_t arm_gic_get_configuration(rt_uint64_t index, int irq) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + return (GIC_DIST_CONFIG(_gic_table[index].dist_hw_base, irq) >> ((irq % 16) >> 1)); +} + +void arm_gic_clear_active(rt_uint64_t index, int irq) +{ + rt_uint64_t mask = 1 << (irq % 32); + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + GIC_DIST_ACTIVE_CLEAR(_gic_table[index].dist_hw_base, irq) = mask; +} + +/* Set up the cpu mask for the specific interrupt */ +void arm_gic_set_cpu(rt_uint64_t index, int irq, unsigned int cpumask) +{ + rt_uint64_t old_tgt; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + old_tgt = GIC_DIST_TARGET(_gic_table[index].dist_hw_base, irq); + + old_tgt &= ~(0x0ff << ((irq % 4) * 8)); + old_tgt |= cpumask << ((irq % 4) * 8); + + GIC_DIST_TARGET(_gic_table[index].dist_hw_base, irq) = old_tgt; +} + +rt_uint64_t arm_gic_get_target_cpu(rt_uint64_t index, int irq) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + return (GIC_DIST_TARGET(_gic_table[index].dist_hw_base, irq) >> ((irq % 4) * 8)) & 0xff; +} + +void arm_gic_set_priority(rt_uint64_t index, int irq, rt_uint64_t priority) +{ + rt_uint64_t mask; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq < 32) + { + rt_int32_t cpu_id = rt_hw_cpu_id(); + + mask = GIC_RDISTSGI_IPRIORITYR(_gic_table[index].redist_hw_base[cpu_id], irq); + mask &= ~(0xff << ((irq % 4) * 8)); + mask |= ((priority & 0xff) << ((irq % 4) * 8)); + GIC_RDISTSGI_IPRIORITYR(_gic_table[index].redist_hw_base[cpu_id], irq) = mask; + } + else + { + mask = GIC_DIST_PRI(_gic_table[index].dist_hw_base, irq); + mask &= ~(0xff << ((irq % 4) * 8)); + mask |= ((priority & 0xff) << ((irq % 4) * 8)); + GIC_DIST_PRI(_gic_table[index].dist_hw_base, irq) = mask; + } +} + +rt_uint64_t arm_gic_get_priority(rt_uint64_t index, int irq) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + if (irq < 32) + { + rt_int32_t cpu_id = rt_hw_cpu_id(); + + return (GIC_RDISTSGI_IPRIORITYR(_gic_table[index].redist_hw_base[cpu_id], irq) >> ((irq % 4) * 8)) & 0xff; + } + else + { + return (GIC_DIST_PRI(_gic_table[index].dist_hw_base, irq) >> ((irq % 4) * 8)) & 0xff; + } +} + +void arm_gic_set_system_register_enable_mask(rt_uint64_t index, rt_uint64_t value) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + value &= 0xff; + /* set priority mask */ + SET_GICV3_REG(ICC_SRE_EL1, value); + __ISB(); +} + +rt_uint64_t arm_gic_get_system_register_enable_mask(rt_uint64_t index) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + rt_uint64_t value; + + GET_GICV3_REG(ICC_SRE_EL1, value); + return value; +} + +void arm_gic_set_interface_prior_mask(rt_uint64_t index, rt_uint64_t priority) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + priority &= 0xff; + /* set priority mask */ + SET_GICV3_REG(ICC_PMR_EL1, priority); +} + +rt_uint64_t arm_gic_get_interface_prior_mask(rt_uint64_t index) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + rt_uint64_t priority; + + GET_GICV3_REG(ICC_PMR_EL1, priority); + return priority; +} + +void arm_gic_set_binary_point(rt_uint64_t index, rt_uint64_t binary_point) +{ + index = index; + binary_point &= 0x7; + + SET_GICV3_REG(ICC_BPR1_EL1, binary_point); +} + +rt_uint64_t arm_gic_get_binary_point(rt_uint64_t index) +{ + rt_uint64_t binary_point; + + index = index; + GET_GICV3_REG(ICC_BPR1_EL1, binary_point); + return binary_point; +} + +rt_uint64_t arm_gic_get_irq_status(rt_uint64_t index, int irq) +{ + rt_uint64_t pending, active; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + active = (GIC_DIST_ACTIVE_SET(_gic_table[index].dist_hw_base, irq) >> (irq % 32)) & 0x1; + pending = (GIC_DIST_PENDING_SET(_gic_table[index].dist_hw_base, irq) >> (irq % 32)) & 0x1; + + return ((active << 1) | pending); +} + +#ifdef RT_USING_SMP +void arm_gic_send_affinity_sgi(rt_uint64_t index, int irq, rt_uint64_t cpu_masks[], rt_uint64_t routing_mode) +{ + const int cpu_mask_cpu_max_nr = sizeof(cpu_masks[0]) * 8; + rt_uint64_t int_id = (irq & 0xf) << 24; + rt_uint64_t irm = routing_mode << 40; /* Interrupt Routing Mode */ + + if (routing_mode == GICV3_ROUTED_TO_SPEC) + { + int cpu_id, cpu_mask_bit, i, cpu_masks_nr = RT_CPUS_NR / cpu_mask_cpu_max_nr; + rt_uint16_t target_list; + rt_uint64_t rs = 0; /* Range Selector */ + rt_uint64_t affinity_val, next_affinity_val; + + if (cpu_masks_nr * cpu_mask_cpu_max_nr != RT_CPUS_NR) + { + ++cpu_masks_nr; + } + + for (i = cpu_id = 0; i < cpu_masks_nr;) + { + /* No cpu in this mask */ + if (cpu_masks[i] == 0) + { + ++i; + cpu_id += cpu_mask_cpu_max_nr; + continue; + } + + /* Get last cpu affinity value */ + affinity_val = rt_cpu_mpidr_early[cpu_id] & 0xff00ffff00ULL; + + /* Read 16 cpus information */ + for (cpu_mask_bit = 0; cpu_mask_bit < 16; ++cpu_mask_bit, ++cpu_id) + { + /* MPIDR_EL1: aff3[39:32], aff2[23:16], aff1[15:8] */ + next_affinity_val = rt_cpu_mpidr_early[cpu_id] & 0xff00ffff00ULL; + + /* Affinity value is different, read end */ + if (affinity_val != next_affinity_val) + { + break; + } + } + + /* Get all valid cpu mask */ + target_list = (0xffff >> (16 - cpu_mask_bit)) & cpu_masks[i]; + /* Clear read mask */ + cpu_masks[i] >>= cpu_mask_bit; + /* ICC_SGI1R_EL1: aff3[55:48], aff2[39:32], aff1[23:16] */ + affinity_val <<= 8; + + __DSB(); + /* Interrupts routed to the PEs specified by Aff3.Aff2.Aff1.. */ + SET_GICV3_REG(ICC_SGI1R_EL1, affinity_val | (rs << 44) | irm | int_id | target_list); + __ISB(); + + /* Check if reset the range selector */ + rs = affinity_val != next_affinity_val ? 0 : rs + 1; + } + } + else + { + __DSB(); + /* Interrupts routed to all PEs in the system, excluding "self". */ + SET_GICV3_REG(ICC_SGI1R_EL1, irm | int_id); + __ISB(); + } +} +#endif /* RT_USING_SMP */ + +rt_uint64_t arm_gic_get_high_pending_irq(rt_uint64_t index) +{ + rt_uint64_t irq; + RT_ASSERT(index < ARM_GIC_MAX_NR); + + index = index; + GET_GICV3_REG(ICC_HPPIR1_EL1, irq); + + return irq; +} + +rt_uint64_t arm_gic_get_interface_id(rt_uint64_t index) +{ + rt_uint64_t ret = 0; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + if (_gic_table[index].cpu_hw_base != RT_NULL) + { + ret = GIC_CPU_IIDR(_gic_table[index].cpu_hw_base); + } + + return ret; +} + +void arm_gic_set_group(rt_uint64_t index, int irq, rt_uint64_t group) +{ + rt_uint64_t igroupr; + rt_uint64_t shift; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + RT_ASSERT(group <= 1); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + igroupr = GIC_DIST_IGROUP(_gic_table[index].dist_hw_base, irq); + shift = (irq % 32); + igroupr &= (~(1U << shift)); + igroupr |= ((group & 0x1U) << shift); + + GIC_DIST_IGROUP(_gic_table[index].dist_hw_base, irq) = igroupr; +} + +rt_uint64_t arm_gic_get_group(rt_uint64_t index, int irq) +{ + RT_ASSERT(index < ARM_GIC_MAX_NR); + + irq = irq - _gic_table[index].offset; + RT_ASSERT(irq >= 0); + + return (GIC_DIST_IGROUP(_gic_table[index].dist_hw_base, irq) >> (irq % 32)) & 0x1UL; +} + +static int arm_gicv3_wait_rwp(rt_uint64_t index, rt_uint64_t irq) +{ + rt_uint64_t rwp_bit; + rt_uint64_t base; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + if (irq < 32) + { + rt_int32_t cpu_id = rt_hw_cpu_id(); + + base = _gic_table[index].redist_hw_base[cpu_id]; + rwp_bit = GICR_CTLR_RWP; + } + else + { + base = _gic_table[index].dist_hw_base; + rwp_bit = GICD_CTLR_RWP; + } + + while (HWREG32(base) & rwp_bit) + { + } + + return 0; +} + +int arm_gic_dist_init(rt_uint64_t index, rt_uint64_t dist_base, int irq_start) +{ + int i; + unsigned int gic_type; + rt_uint64_t main_cpu_affinity_val; + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + _gic_table[index].dist_hw_base = dist_base; + _gic_table[index].offset = irq_start; + + + /* Find out how many interrupts are supported. */ + gic_type = GIC_DIST_TYPE(dist_base); + _gic_max_irq = ((gic_type & 0x1f) + 1) * 32; + + /* + * The GIC only supports up to 1020 interrupt sources. + * Limit this to either the architected maximum, or the + * platform maximum. + */ + if (_gic_max_irq > 1020) + { + _gic_max_irq = 1020; + } + if (_gic_max_irq > ARM_GIC_NR_IRQS) /* the platform maximum interrupts */ + { + _gic_max_irq = ARM_GIC_NR_IRQS; + } + + GIC_DIST_CTRL(dist_base) = 0; + /* Wait for register write pending */ + arm_gicv3_wait_rwp(0, 32); + + /* Set all global interrupts to be level triggered, active low. */ + for (i = 32; i < _gic_max_irq; i += 16) + { + GIC_DIST_CONFIG(dist_base, i) = 0; + } + + arm_gicv3_wait_rwp(0, 32); + +#ifdef RT_USING_SMP + main_cpu_affinity_val = rt_cpu_mpidr_early[ARM_SPI_BIND_CPU_ID]; +#else + __asm__ volatile ("mrs %0, mpidr_el1":"=r"(main_cpu_affinity_val)); +#endif + + /* aff3[39:32], aff2[23:16], aff1[15:8], aff0[7:0] */ + main_cpu_affinity_val &= 0xff00ffffffULL; + + /* Set all global interrupts to this CPU only. */ + for (i = 32; i < _gic_max_irq; i++) + { + GIC_DIST_IROUTER(dist_base, i) = main_cpu_affinity_val | (GICV3_ROUTED_TO_SPEC << 31); + } + + arm_gicv3_wait_rwp(0, 32); + + /* Set priority on spi interrupts. */ + for (i = 32; i < _gic_max_irq; i += 4) + { + GIC_DIST_PRI(dist_base, i) = 0xa0a0a0a0; + } + + arm_gicv3_wait_rwp(0, 32); + /* Disable all interrupts. */ + for (i = 0; i < _gic_max_irq; i += 32) + { + GIC_DIST_PENDING_CLEAR(dist_base, i) = 0xffffffff; + GIC_DIST_ENABLE_CLEAR(dist_base, i) = 0xffffffff; + } + + arm_gicv3_wait_rwp(0, 32); + /* All interrupts defaults to IGROUP1(IRQ). */ + for (i = 0; i < _gic_max_irq; i += 32) + { + GIC_DIST_IGROUP(dist_base, i) = 0xffffffff; + } + + arm_gicv3_wait_rwp(0, 32); + + /* + * The Distributor control register (GICD_CTLR) must be configured to enable the interrupt groups and to set the routing mode. + * Enable Affinity routing (ARE bits) The ARE bits in GICD_CTLR control whether affinity routing is enabled. + * If affinity routing is not enabled, GICv3 can be configured for legacy operation. + * Whether affinity routing is enabled or not can be controlled separately for Secure and Non-secure state. + * Enables GICD_CTLR contains separate enable bits for Group 0, Secure Group 1 and Non-secure Group 1: + * GICD_CTLR.EnableGrp1S enables distribution of Secure Group 1 interrupts. + * GICD_CTLR.EnableGrp1NS enables distribution of Non-secure Group 1 interrupts. + * GICD_CTLR.EnableGrp0 enables distribution of Group 0 interrupts. + */ + GIC_DIST_CTRL(dist_base) = GICD_CTLR_ARE_NS | GICD_CTLR_ENGRP1NS; + + return 0; +} + +int arm_gic_redist_init(rt_uint64_t index, rt_uint64_t redist_base) +{ + int i; + int cpu_id = rt_hw_cpu_id(); + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + redist_base += cpu_id * (2 << 16); + _gic_table[index].redist_hw_base[cpu_id] = redist_base; + + /* redistributor enable */ + GIC_RDIST_WAKER(redist_base) &= ~(1 << 1); + while (GIC_RDIST_WAKER(redist_base) & (1 << 2)) + { + } + + /* Disable all sgi and ppi interrupt */ + GIC_RDISTSGI_ICENABLER0(redist_base) = 0xffffffff; + arm_gicv3_wait_rwp(0, 0); + + /* Clear all inetrrupt pending */ + GIC_RDISTSGI_ICPENDR0(redist_base) = 0xffffffff; + + /* the corresponding interrupt is Group 1 or Non-secure Group 1. */ + GIC_RDISTSGI_IGROUPR0(redist_base, 0) = 0xffffffff; + GIC_RDISTSGI_IGRPMODR0(redist_base, 0) = 0xffffffff; + + /* Configure default priorities for SGI 0:15 and PPI 16:31. */ + for (i = 0; i < 32; i += 4) + { + GIC_RDISTSGI_IPRIORITYR(redist_base, i) = 0xa0a0a0a0U; + } + + /* Trigger level for PPI interrupts*/ + GIC_RDISTSGI_ICFGR1(redist_base) = 0; + return 0; +} + +int arm_gic_cpu_init(rt_uint64_t index, rt_uint64_t cpu_base) +{ + rt_uint64_t value; + int cpu_id = rt_hw_cpu_id(); + + RT_ASSERT(index < ARM_GIC_MAX_NR); + + _gic_table[index].cpu_hw_base[cpu_id] = cpu_base; + + value = arm_gic_get_system_register_enable_mask(index); + value |= (1 << 0); + arm_gic_set_system_register_enable_mask(index, value); + SET_GICV3_REG(ICC_CTLR_EL1, 0); + + arm_gic_set_interface_prior_mask(index, 0xff); + + /* Enable group1 interrupt */ + value = 1; + SET_GICV3_REG(ICC_IGRPEN1_EL1, value); + + arm_gic_set_binary_point(0, 0); + + /* ICC_BPR0_EL1 determines the preemption group for both Group 0 and Group 1 interrupts. */ + value = 1; /* ICC_BPR0_EL1 determines the preemption group for both Group 0 and Group 1 interrupts.*/ + value |= 1 << 18; /* Targeted SGIs with affinity level 0 values of 0 - 255 are supported. */ + SET_GICV3_REG(ICC_CTLR_EL1, value); + + return 0; +} + +void arm_gic_dump_type(rt_uint64_t index) +{ + unsigned int gic_type; + + gic_type = GIC_DIST_TYPE(_gic_table[index].dist_hw_base); + rt_kprintf("GICv%d on %p, max IRQs: %d, %s security extension(%08x)\n", + (GIC_DIST_ICPIDR2(_gic_table[index].dist_hw_base) >> 4) & 0xf, + _gic_table[index].dist_hw_base, + _gic_max_irq, + gic_type & (1 << 10) ? "has" : "no", + gic_type); +} + +void arm_gic_dump(rt_uint64_t index) +{ + int i; + unsigned int val; + + val = arm_gic_get_high_pending_irq(0); + rt_kprintf("--- high pending priority: %d(%08x)\n", val, val); + + rt_kprintf("--- hw mask ---\n"); + for (i = 0; i < _gic_max_irq / 32; ++i) + { + rt_kprintf("0x%08x, ", GIC_DIST_ENABLE_SET(_gic_table[index].dist_hw_base, i * 32)); + } + + rt_kprintf("\b\b\n--- hw pending ---\n"); + for (i = 0; i < _gic_max_irq / 32; ++i) + { + rt_kprintf("0x%08x, ", GIC_DIST_PENDING_SET(_gic_table[index].dist_hw_base, i * 32)); + } + + rt_kprintf("\b\b\n--- hw active ---\n"); + for (i = 0; i < _gic_max_irq / 32; ++i) + { + rt_kprintf("0x%08x, ", GIC_DIST_ACTIVE_SET(_gic_table[index].dist_hw_base, i * 32)); + } + + rt_kprintf("\b\b\n"); +} + +long gic_dump(void) +{ + arm_gic_dump_type(0); + arm_gic_dump(0); + + return 0; +} +MSH_CMD_EXPORT(gic_dump, show gic status); + +#endif /* defined(BSP_USING_GIC) && defined(BSP_USING_GICV3) */ diff --git a/libcpu/aarch64/common/gicv3.h b/libcpu/aarch64/common/gicv3.h new file mode 100644 index 0000000000..0cb6bda03a --- /dev/null +++ b/libcpu/aarch64/common/gicv3.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2013-07-20 Bernard first version + * 2014-04-03 Grissiom many enhancements + * 2018-11-22 Jesven add rt_hw_ipi_send() + * add rt_hw_ipi_handler_install() + */ + +#ifndef __GICV3_H__ +#define __GICV3_H__ + +#include + +#if defined(BSP_USING_GIC) && defined(BSP_USING_GICV3) + +#define GICV3_ROUTED_TO_ALL 1UL +#define GICV3_ROUTED_TO_SPEC 0UL + +int arm_gic_get_active_irq(rt_uint64_t index); +void arm_gic_ack(rt_uint64_t index, int irq); + +void arm_gic_mask(rt_uint64_t index, int irq); +void arm_gic_umask(rt_uint64_t index, int irq); + +rt_uint64_t arm_gic_get_pending_irq(rt_uint64_t index, int irq); +void arm_gic_set_pending_irq(rt_uint64_t index, int irq); +void arm_gic_clear_pending_irq(rt_uint64_t index, int irq); + +void arm_gic_set_configuration(rt_uint64_t index, int irq, rt_uint32_t config); +rt_uint64_t arm_gic_get_configuration(rt_uint64_t index, int irq); + +void arm_gic_clear_active(rt_uint64_t index, int irq); + +void arm_gic_set_cpu(rt_uint64_t index, int irq, unsigned int cpumask); +rt_uint64_t arm_gic_get_target_cpu(rt_uint64_t index, int irq); + +void arm_gic_set_priority(rt_uint64_t index, int irq, rt_uint64_t priority); +rt_uint64_t arm_gic_get_priority(rt_uint64_t index, int irq); + +void arm_gic_set_interface_prior_mask(rt_uint64_t index, rt_uint64_t priority); +rt_uint64_t arm_gic_get_interface_prior_mask(rt_uint64_t index); + +void arm_gic_set_binary_point(rt_uint64_t index, rt_uint64_t binary_point); +rt_uint64_t arm_gic_get_binary_point(rt_uint64_t index); + +rt_uint64_t arm_gic_get_irq_status(rt_uint64_t index, int irq); + +#ifdef RT_USING_SMP +void arm_gic_send_affinity_sgi(rt_uint64_t index, int irq, rt_uint64_t cpu_masks[], rt_uint64_t routing_mode); +#endif + +rt_uint64_t arm_gic_get_high_pending_irq(rt_uint64_t index); + +rt_uint64_t arm_gic_get_interface_id(rt_uint64_t index); + +void arm_gic_set_group(rt_uint64_t index, int irq, rt_uint64_t group); +rt_uint64_t arm_gic_get_group(rt_uint64_t index, int irq); + +int arm_gic_redist_address_set(rt_uint64_t index, rt_uint64_t redist_addr, int cpu_id); +int arm_gic_cpu_interface_address_set(rt_uint64_t index, rt_uint64_t interface_addr, int cpu_id); + +int arm_gic_dist_init(rt_uint64_t index, rt_uint64_t dist_base, int irq_start); +int arm_gic_redist_init(rt_uint64_t index, rt_uint64_t redist_base); +int arm_gic_cpu_init(rt_uint64_t index, rt_uint64_t cpu_base); + +void arm_gic_dump_type(rt_uint64_t index); +void arm_gic_dump(rt_uint64_t index); + +#endif /* defined(BSP_USING_GIC) && defined(BSP_USING_GICV3) */ + +#endif + diff --git a/libcpu/aarch64/common/interrupt.c b/libcpu/aarch64/common/interrupt.c index f31003b2c0..c5db2d46af 100644 --- a/libcpu/aarch64/common/interrupt.c +++ b/libcpu/aarch64/common/interrupt.c @@ -13,6 +13,7 @@ #include #include "interrupt.h" #include "gic.h" +#include "gicv3.h" #include "armv8.h" #include "mmu.h" #include "cpuport.h" @@ -52,6 +53,9 @@ void rt_hw_interrupt_init(void) /* initialize ARM GIC */ arm_gic_dist_init(0, platform_get_gic_dist_base(), GIC_IRQ_START); arm_gic_cpu_init(0, platform_get_gic_cpu_base()); +#ifdef BSP_USING_GICV3 + arm_gic_redist_init(0, platform_get_gic_redist_base()); +#endif #endif } @@ -346,7 +350,11 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, void rt_hw_ipi_send(int ipi_vector, unsigned int cpu_mask) { #ifdef BSP_USING_GIC +#ifdef BSP_USING_GICV2 arm_gic_send_sgi(0, ipi_vector, cpu_mask, 0); +#else + arm_gic_send_affinity_sgi(0, ipi_vector, (rt_uint64_t *)&cpu_mask, GICV3_ROUTED_TO_SPEC); +#endif #else int i; @@ -359,8 +367,9 @@ void rt_hw_ipi_send(int ipi_vector, unsigned int cpu_mask) IPI_MAILBOX_SET(i) = 1 << ipi_vector; } } -#endif + __DSB(); +#endif } void rt_hw_ipi_handler_install(int ipi_vector, rt_isr_handler_t ipi_isr_handler) diff --git a/libcpu/aarch64/common/psci.c b/libcpu/aarch64/common/psci.c index 400db977ee..65e84ebf0a 100644 --- a/libcpu/aarch64/common/psci.c +++ b/libcpu/aarch64/common/psci.c @@ -29,11 +29,19 @@ static psci_call_handle psci_call = psci_smc_call; static uint64_t shutdown_args[3] = {0, 0, 0}; static uint64_t reboot_args[3] = {0, 0, 0}; -void arm_psci_init(uint64_t *platform_shutdown_args, uint64_t *platform_reboot_args) +void arm_psci_init(uint64_t method, uint64_t *platform_shutdown_args, uint64_t *platform_reboot_args) { - if (rt_hw_get_current_el() < 2) + switch (method) { - psci_call = psci_hvc_call; + case PSCI_METHOD_SMC: + psci_call = psci_smc_call; + break; + case PSCI_METHOD_HVC: + if (rt_hw_get_current_el() < 2) + { + psci_call = psci_hvc_call; + } + break; } if (platform_shutdown_args != RT_NULL) diff --git a/libcpu/aarch64/common/psci.h b/libcpu/aarch64/common/psci.h index e8b2e3129d..999489a801 100644 --- a/libcpu/aarch64/common/psci.h +++ b/libcpu/aarch64/common/psci.h @@ -18,6 +18,9 @@ */ #define PSCI_VER_0_2 0x00000002 +#define PSCI_METHOD_SMC 3 +#define PSCI_METHOD_HVC 2 + /* PSCI 0.2 interface */ #define PSCI_0_2_FN_BASE 0x84000000 #define PSCI_0_2_FN(n) (PSCI_0_2_FN_BASE + (n)) @@ -114,7 +117,7 @@ #define PSCI_RET_DISABLED (-8) #define PSCI_RET_INVALID_ADDRESS (-9) -void arm_psci_init(uint64_t *platform_shutdown_args, uint64_t *platform_reboot_args); +void arm_psci_init(uint64_t method, uint64_t *platform_shutdown_args, uint64_t *platform_reboot_args); uint32_t arm_psci_get_version(); uint32_t arm_psci_get_affinity_info(uint64_t target_affinity, uint64_t lowest_affinity_level); diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S index 5bf2b8a3a6..c605a41631 100644 --- a/libcpu/aarch64/cortex-a/entry_point.S +++ b/libcpu/aarch64/cortex-a/entry_point.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2020, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -11,19 +11,28 @@ */ #include "rtconfig.h" -.section ".text.entrypoint","ax" #define SECONDARY_STACK_SIZE 4096 +.section ".text.entrypoint","ax" + .globl _start .globl secondary_cpu_start _start: +#ifdef RT_USING_SMP mrs x1, mpidr_el1 - and x1, x1, #0xff - cbnz x1, cpu_idle /* If cpu id > 0, stop slave cores */ + adr x4, .boot_cpu_mpidr + str x1, [x4] + dsb sy +#endif + + bl __asm_flush_dcache_all /* The kernel and data must flush to DDR */ secondary_cpu_start: #ifdef RT_USING_SMP + adr x4, .boot_cpu_mpidr + ldr x4, [x4] + dsb sy /* Read cpu mpidr_el1 */ mrs x1, mpidr_el1 @@ -34,6 +43,7 @@ secondary_cpu_start: cpu_id_confirm: add x2, x2, #1 /* Next cpu id inc */ ldr x3, [x0], #8 + dsb sy cmp x3, #0 beq cpu_idle /* Mean that `rt_cpu_mpidr_early' table is end */ cmp x3, x1 @@ -42,7 +52,8 @@ cpu_id_confirm: /* Get cpu id success */ sub x0, x2, #1 msr tpidr_el1, x0 /* Save cpu id global */ - cbz x0, cpu_setup /* Only go to cpu_setup when cpu id = 0 */ + cmp x3, x4 /* If it is boot cpu */ + beq boot_cpu_setup /* Set current cpu's stack top */ sub x0, x0, #1 @@ -53,14 +64,9 @@ cpu_id_confirm: b cpu_check_el #else msr tpidr_el1, xzr - b cpu_setup #endif /* RT_USING_SMP */ -cpu_idle: - wfe - b cpu_idle - -cpu_setup: +boot_cpu_setup: ldr x1, =_start cpu_check_el: @@ -75,7 +81,7 @@ cpu_check_el: mov x2, #(1 << 0) /* EL0 and EL1 are in Non-Secure state */ orr x2, x2, #(1 << 4) /* RES1 */ orr x2, x2, #(1 << 5) /* RES1 */ - orr x2, x2, #(1 << 7) /* SMC instructions are undefined at EL1 and above */ + bic x2, x2, #(1 << 7) /* SMC instructions are enabled at EL1 and above */ orr x2, x2, #(1 << 8) /* HVC instructions are enabled at EL1 and above */ orr x2, x2, #(1 << 10) /* The next lower level is AArch64 */ msr scr_el3, x2 @@ -91,7 +97,7 @@ cpu_check_el: eret cpu_not_in_el3: /* Running at EL2 or EL1 */ - cmp x0, #4 /* EL1 = 0100 */ + cmp x0, #4 /* EL1 = 0100 */ beq cpu_in_el1 cpu_in_el2: @@ -159,9 +165,16 @@ clean_bss_check: jump_to_entry: b rtthread_startup - b cpu_idle /* For failsafe, halt this core too */ + +cpu_idle: + wfe + b cpu_idle #ifdef RT_USING_SMP +.align 3 +.boot_cpu_mpidr: + .quad 0x0 + .align 12 .secondary_cpu_stack: .space (SECONDARY_STACK_SIZE * (RT_CPUS_NR - 1)) -- cgit v1.3.1